| | |
| | | {{ parseNumber(scope.row.positionId) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="type" label="职务" show-overflow-tooltip> |
| | | <template #default="scope"> |
| | | {{ `${userTypeList.find(item => item.id === scope.row.type)?.name}` }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="department.depName" label="部门" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="phone" label="手机号" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="email" label="邮箱" show-overflow-tooltip></el-table-column> |
| | |
| | | departmentList: []; |
| | | roleList: []; |
| | | dutyList: []; |
| | | userTypeList: Array<{id:number,name:string}>; |
| | | props:{} |
| | | } |
| | | |
| | |
| | | value: 'depId', |
| | | checkStrictly: true, |
| | | emitPath: false |
| | | } |
| | | }, |
| | | userTypeList: [ |
| | | { id: 1, name: '超级管理员' }, |
| | | { id: 2, name: '管理员' }, |
| | | { id: 3, name: '普通员工' } |
| | | ] |
| | | }); |
| | | // 初始化表格数据 |
| | | const initUserTableData = async () => { |