修改角色管理
This commit is contained in:
parent
eab207256a
commit
f4c273bf4e
@ -30,10 +30,10 @@
|
||||
<el-table-column prop="createtime" label="创建时间" :formatter="dateFormatter" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="操作" width="100">
|
||||
<template #default="scope">
|
||||
<el-button :disabled="scope.row.name === '管理员'" size="small" text type="primary" @click="onOpenEditRole('edit', scope.row)"
|
||||
<el-button size="small" text type="primary" @click="onOpenEditRole('edit', scope.row)"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button :disabled="scope.row.name === '管理员'" size="small" text type="primary" @click="onRowDel(scope.row)">删除</el-button>
|
||||
<el-button size="small" text type="primary" @click="onRowDel(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -125,15 +125,6 @@ const getTableData = async() => {
|
||||
}
|
||||
};
|
||||
|
||||
//查询角色
|
||||
const getroleDetail = async() =>{
|
||||
try{
|
||||
const res = await roleapi.getRoleDetail();
|
||||
}catch(error){
|
||||
console.error(error)
|
||||
}
|
||||
};
|
||||
|
||||
// 打开新增角色弹窗
|
||||
const onOpenAddRole = (type: string) => {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user