From 53a4a074f3e59efb05b2e5ca76d364f53939d957 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Wed, 18 Mar 2026 16:50:44 +0800
Subject: [PATCH] 修改用户管理

---
 src/views/saftyCheckMng/dailyCheck/index.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/views/saftyCheckMng/dailyCheck/index.vue b/src/views/saftyCheckMng/dailyCheck/index.vue
index 98d3652..d74ddc8 100644
--- a/src/views/saftyCheckMng/dailyCheck/index.vue
+++ b/src/views/saftyCheckMng/dailyCheck/index.vue
@@ -75,7 +75,7 @@
           <el-button link type="primary" @click="openDialog('view',scope.row)">查看</el-button>
           <el-button link type="primary" @click="openDialog('edit',scope.row)">编辑</el-button>
           <el-button link type="primary" @click="downloadFile(scope.row)">导出</el-button>
-          <el-button link type="danger" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button v-if="isAuthority" link type="danger" @click="handleDelete(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -244,14 +244,21 @@
   },
   dataLoader: {},
   api: {},
-  checkDate: []
+  checkDate: [],
+  isAuthority: false
 });
 
-const { queryParams, total, dataList,deptList, userList, formConfig, dataLoader, api, checkTypeList, checkDate } = toRefs(state);
+const { queryParams, total, dataList,deptList, userList, formConfig, dataLoader, api, checkTypeList, checkDate, isAuthority } = toRefs(state);
+const userStore = useUserStore()
 onMounted(async ()=>{
   await getList()
   await getDeptList()
   await getUserList()
+  if(userStore.roles.includes('admin') || userStore.roles.includes('sys_admin') || userStore.roles.includes('place_safety_officer')){
+    state.isAuthority = true
+  }else{
+    state.isAuthority = false
+  }
 })
 
 onUnmounted(()=>{

--
Gitblit v1.9.2