mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-10 01:08:21 +08:00
修复超级管理员角色bug
This commit is contained in:
@@ -29,7 +29,11 @@
|
||||
|
||||
<!-- 角色选择框 -->
|
||||
<el-form-item label="角色:" prop="role">
|
||||
<el-select v-model="formData.role" placeholder="请选择角色">
|
||||
<el-select
|
||||
v-model="formData.role"
|
||||
placeholder="请选择角色"
|
||||
:disabled="formData.id == 1"
|
||||
>
|
||||
<el-option
|
||||
v-for="(item, index) in roleList"
|
||||
:key="index"
|
||||
@@ -176,6 +180,10 @@ export default defineComponent({
|
||||
page_type: 1
|
||||
}).then((res: any) => {
|
||||
roleList.value = res.lists
|
||||
roleList.value.push({
|
||||
id: 0,
|
||||
name: '超级管理员'
|
||||
})
|
||||
console.log('roleList.value', roleList.value)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -88,7 +88,10 @@
|
||||
>
|
||||
<el-button type="text">编辑</el-button>
|
||||
</router-link>
|
||||
|
||||
<div v-if="row.id == 1"></div>
|
||||
<popup
|
||||
v-else
|
||||
v-perm="['system:admin:del']"
|
||||
class="m-r-10 inline"
|
||||
@confirm="handleDelete(row.id)"
|
||||
|
||||
Reference in New Issue
Block a user