修改角色管理

This commit is contained in:
夕阳微笑1 2024-12-23 21:49:38 +08:00
parent eab207256a
commit f4c273bf4e

View File

@ -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) => {