fix: 部分权限标识, 修复部门编辑bug
This commit is contained in:
@@ -135,14 +135,14 @@ const tableConfig = reactive({
|
||||
showOverflowTooltip: false,
|
||||
currentRender: ({row, index}) => {
|
||||
let btn = [{label: '修改', auth: auths.edit, func: ()=>handleEdit(row) , type: 'primary'}]
|
||||
btn.push(
|
||||
{
|
||||
label: '分配用户',
|
||||
auth: auths.edit,
|
||||
func: ()=>handleAssign(row),
|
||||
type: 'primary'
|
||||
}
|
||||
)
|
||||
// btn.push(
|
||||
// {
|
||||
// label: '分配用户',
|
||||
// auth: auths.edit,
|
||||
// func: ()=>handleAssign(row),
|
||||
// type: 'primary'
|
||||
// }
|
||||
// )
|
||||
if(authStore.roles.includes('superAdmin')) {
|
||||
btn.push({label: '删除', auth: auths.edit, func: ()=>handleDel(row) , type: 'danger'})
|
||||
} else if(!row.template) {
|
||||
|
||||
Reference in New Issue
Block a user