mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-05-01 14:49:00 +08:00
feat: 添加PH函数,根据按钮权限判断当前按钮是否渲染
This commit is contained in:
parent
e74856040a
commit
2ff0befdd4
@ -219,7 +219,7 @@ const columns = [
|
|||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
key: 'actions',
|
key: 'actions',
|
||||||
width: 320,
|
width: 380,
|
||||||
align: 'right',
|
align: 'right',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
hideInExcel: true,
|
hideInExcel: true,
|
||||||
@ -233,11 +233,25 @@ const columns = [
|
|||||||
secondary: true,
|
secondary: true,
|
||||||
onClick: () => handleOpenRolesSet(row),
|
onClick: () => handleOpenRolesSet(row),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
default: () => '超管专属',
|
||||||
|
icon: () => h('i', { class: 'i-carbon:user-role text-14' }),
|
||||||
|
},
|
||||||
|
'superAdmin',
|
||||||
|
),
|
||||||
|
h(
|
||||||
|
NButton,
|
||||||
|
{
|
||||||
|
size: 'small',
|
||||||
|
type: 'primary',
|
||||||
|
class: 'ml-12px',
|
||||||
|
secondary: true,
|
||||||
|
onClick: () => handleOpenRolesSet(row),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
default: () => '分配角色',
|
default: () => '分配角色',
|
||||||
icon: () => h('i', { class: 'i-carbon:user-role text-14' }),
|
icon: () => h('i', { class: 'i-carbon:user-role text-14' }),
|
||||||
},
|
},
|
||||||
'setRole',
|
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
NButton,
|
NButton,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user