Your Name
2023-03-03 23412e0effa27d5d0f79f5796bc4e738cf8cd1fc
src/views/system/user/index.vue
@@ -41,6 +41,11 @@
                    {{ 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>
@@ -110,6 +115,7 @@
    departmentList: [];
    roleList: [];
    dutyList: [];
    userTypeList: Array<{id:number,name:string}>;
    props:{}
}
@@ -141,7 +147,12 @@
              value: 'depId',
              checkStrictly: true,
              emitPath: false
            }
            },
            userTypeList: [
                { id: 1, name: '超级管理员' },
                { id: 2, name: '管理员' },
                { id: 3, name: '普通员工' }
            ]
        });
        // 初始化表格数据
        const initUserTableData = async () => {