浏览代码

调整超级管理员角色的权限

Lijy 3 年之前
父节点
当前提交
fe22faba56
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      fhKeeper/formulahousekeeper/timesheet/src/views/quanx/quanx.vue

+ 3 - 3
fhKeeper/formulahousekeeper/timesheet/src/views/quanx/quanx.vue

@@ -29,9 +29,9 @@
         <el-table-column prop="date" label="操作">
             <template slot-scope="scope">
                 <div>
-                    <el-button size="small" @click="handleAdd('编辑角色', '立即修改', scope.row)">编辑角色</el-button>
-                    <el-button type="primary" size="small" @click="shisha(scope.row.id), roleName = scope.row.rolename">分配权限</el-button>
-                    <el-button type="danger" size="small" @click="deteHand(scope.row)">删除</el-button>
+                    <el-button size="small" @click="handleAdd('编辑角色', '立即修改', scope.row)" v-if="scope.row.rolename != '超级管理员'">编辑角色</el-button>
+                    <el-button type="primary" size="small" @click="shisha(scope.row.id), roleName = scope.row.rolename" v-if="user.roleName == '超级管理员'">分配权限</el-button>
+                    <el-button type="danger" size="small" @click="deteHand(scope.row)" v-if="scope.row.rolename != '超级管理员'">删除</el-button>
                 </div>
             </template>
         </el-table-column>