提交 d5717218 authored 作者: pengxiaohui's avatar pengxiaohui

fix: 超级管理员禁止修改、编辑权限

上级 3ec82511
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
<el-table-column prop="updated_at" label="创建时间" min-width="120"></el-table-column> <el-table-column prop="updated_at" label="创建时间" min-width="120"></el-table-column>
<el-table-column label="操作" min-width="140"> <el-table-column label="操作" min-width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="hasPermission" type="text" size="small" @click="handlePermission(scope.row)">设置权限</el-button> <el-button v-if="hasPermission && scope.row.name !== 'administrator'" type="text" size="small" @click="handlePermission(scope.row)">设置权限</el-button>
<el-button v-if="hasRoleManage" type="text" size="small" @click="handleUsers(scope.row)">管理用户</el-button> <el-button v-if="hasRoleManage" type="text" size="small" @click="handleUsers(scope.row)">管理用户</el-button>
<el-button v-if="hasUpdate" type="text" size="small" @click="handleEdit(scope.row)">编辑</el-button> <el-button v-if="hasUpdate && scope.row.name !== 'administrator'" type="text" size="small" @click="handleEdit(scope.row)">编辑</el-button>
<el-button v-if="hasDelete" type="text" size="small" @click="handleDelete(scope.row)">删除</el-button> <el-button v-if="hasDelete && scope.row.name !== 'administrator'" type="text" size="small" @click="handleDelete(scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论