From d5bd0e88c1eec6bb2947d2bfa57348d89edbc1c3 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期五, 18 七月 2025 16:20:45 +0800
Subject: [PATCH] 修改

---
 src/views/build/conpanyFunctionConsult/staffManage/staffRegister/index.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/views/build/conpanyFunctionConsult/staffManage/staffRegister/index.vue b/src/views/build/conpanyFunctionConsult/staffManage/staffRegister/index.vue
index 4c3c7d3..35b800c 100644
--- a/src/views/build/conpanyFunctionConsult/staffManage/staffRegister/index.vue
+++ b/src/views/build/conpanyFunctionConsult/staffManage/staffRegister/index.vue
@@ -68,7 +68,7 @@
       <el-table-column label="职称" prop="positional" align="center"/>
       <el-table-column label="人员类别" prop="personType" align="center">
         <template #default="scope">
-          {{ scope.row.personType == 1?'技术':'管理' }}
+          {{ scope.row.personType == 1?'技术':scope.row.personType == 2?'管理':'行政' }}
         </template>
       </el-table-column>
       <el-table-column label="身份证号" prop="idCard" align="center" />
@@ -186,7 +186,7 @@
     data.dataList = res.data.list.map(item => {
       return {
         ...item,
-        userTypeName: item.userType === 0 ? '管理员' : item.userType === 1 ? '企业级' : item.userType === 2 ? '部门级' : item.userType === 3 ? '车间级' :'其他',
+        userTypeName: item.userType === 0 ? '系统管理员' : (item.userType === 1 || item.userType === 2 || item.userType === 3) ? '企业用户': item.userType === 6 ? '企业管理员':'其他',
         entryTime: item.entryTime?.substring(0, 10)
       }
     })
@@ -225,7 +225,7 @@
       return {
         ...item,
         index: index + 1,
-        userTypeName: item.userType === 0 ? '管理员' : item.userType === 1 ? '企业级' : item.userType === 2 ? '部门级' : item.userType === 3 ? '车间级' :'其他',
+        userTypeName: item.userType === 0 ? '系统管理员' : (item.userType === 1 || item.userType === 2 || item.userType === 3) ? '企业用户': item.userType === 6 ? '企业管理员':'其他',
         entryTime: item.entryTime?.substring(0, 10)
       }
     })
@@ -235,8 +235,8 @@
 }
 
 const openDialog = (type, value) => {
-  if(userInfo.value.userType === 3){
-    ElMessage.warning('车间级用户不能新增')
+  if(userInfo.value.userType !== 0 && userInfo.value.userType !== 6){
+    ElMessage.warning('非管理员身份不可操作')
     return;
   }
   dialogRef.value.openDialog(type, value, data.queryParams.companyId);

--
Gitblit v1.9.2