fix: 按钮权限调整
This commit is contained in:
@@ -139,7 +139,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
label: $t('ui.actionTitle.import', [$t('customer.customer')]),
|
||||
type: 'primary',
|
||||
icon: ACTION_ICON.UPLOAD,
|
||||
auth: ['license:customer:export'],
|
||||
auth: ['license:customer:import'],
|
||||
onClick: handleImport,
|
||||
},
|
||||
]"
|
||||
|
||||
@@ -172,7 +172,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
label: $t('license.applyAction', ['License']),
|
||||
type: 'primary',
|
||||
icon: ACTION_ICON.ADD,
|
||||
auth: ['license:license:create'],
|
||||
auth: ['license:license:apply'],
|
||||
onClick: onCreate,
|
||||
},
|
||||
{
|
||||
@@ -186,7 +186,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
label: $t('ui.actionTitle.import', ['License']),
|
||||
type: 'primary',
|
||||
icon: ACTION_ICON.UPLOAD,
|
||||
auth: ['license:license:export'],
|
||||
auth: ['license:license:import'],
|
||||
onClick: handleImport,
|
||||
},
|
||||
]"
|
||||
@@ -199,6 +199,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
{
|
||||
label: $t('license.detail'),
|
||||
type: 'link',
|
||||
auth: ['license:license:query'],
|
||||
onClick: onDetail.bind(null, row),
|
||||
},
|
||||
{
|
||||
@@ -231,7 +232,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
label: $t('license.reapply'),
|
||||
type: 'link',
|
||||
ifShow: row.status === 3,
|
||||
auth: ['license:license:query'],
|
||||
auth: ['license:license:reapply'],
|
||||
onClick: onReapply.bind(null, row),
|
||||
},
|
||||
{
|
||||
|
||||
@@ -465,7 +465,7 @@ export function useGridColumns(
|
||||
{
|
||||
code: 'progress',
|
||||
text: $t('project.progress'),
|
||||
show: hasAccessByCodes(['license:project:update']),
|
||||
show: hasAccessByCodes(['license:project:comment']),
|
||||
},
|
||||
{
|
||||
code: 'delete',
|
||||
|
||||
@@ -174,7 +174,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
label: $t('ui.actionTitle.import', [$t('project.project')]),
|
||||
type: 'primary',
|
||||
icon: ACTION_ICON.UPLOAD,
|
||||
auth: ['license:project:export'],
|
||||
auth: ['license:project:import'],
|
||||
onClick: handleImport,
|
||||
},
|
||||
]"
|
||||
|
||||
Reference in New Issue
Block a user