| | |
| | | <!-- row.id !== userInfo.id &&--> |
| | | <template v-if="isAdmin || (row.roles.findIndex(r => r.code === adminCode) === -1)" slot-scope="{row}"> |
| | | <el-button type="text" icon="el-icon-edit" @click="$refs.operaUserWindow.open('编辑用户', {...row, departmentId: [row.departmentId]})" v-permissions="['system:user:update']">编辑</el-button> |
| | | <el-button type="text" @click="$refs.allocationEnterprises.open('分配企业', row)" v-if="userInfo.type !== 1">分配企业</el-button> |
| | | <el-button type="text" @click="$refs.allocationEnterprises.open('分配企业', row)" v-if="userInfo.type === 0">分配企业</el-button> |
| | | <el-button type="text" icon="el-icon-s-custom" @click="$refs.roleConfigWindow.open(row)" v-permissions="['system:user:createUserRole']">配置角色</el-button> |
| | | <el-button type="text" @click="$refs.resetPwdWindow.open(row)" v-permissions="['system:user:resetPwd']">重置密码</el-button> |
| | | <!-- <el-button v-if="!row.fixed" type="text" icon="el-icon-delete" @click="deleteById(row)" v-permissions="['system:user:delete']">删除</el-button>--> |
| | |
| | | import DepartmentSelect from '@/components/common/DepartmentSelect' |
| | | import PositionSelect from '@/components/common/PositionSelect' |
| | | import { updUserStatus, updateHead } from '@/api/system/user' |
| | | |
| | | import { mapState } from 'vuex' |
| | | export default { |
| | | name: 'SystemUser', |
| | | extends: BaseTable, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | components: { allocationEnterprises, PositionSelect, DepartmentSelect, ResetPwdWindow, RoleConfigWindow, OperaUserWindow, TableLayout, Pagination }, |
| | | data () { |
| | | return { |
| | |
| | | rootDeptId: null, // 部门ID |
| | | positionId: null, // 岗位ID |
| | | mobile: '', // 手机号码 |
| | | type: '', |
| | | companyDepartmentPathName: '' // 部门名称 |
| | | } |
| | | } |
| | |
| | | direction: 'DESC' |
| | | }] |
| | | }) |
| | | this.searchForm.type = this.userInfo.type |
| | | this.search() |
| | | }, |
| | | methods: { |