From 23412e0effa27d5d0f79f5796bc4e738cf8cd1fc Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Fri, 03 Mar 2023 16:08:49 +0800
Subject: [PATCH] 更新
---
src/views/system/user/index.vue | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 713c50e..f60a998 100644
--- a/src/views/system/user/index.vue
+++ b/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 () => {
--
Gitblit v1.9.2