feat(iot):补充产品分类的 auth 操作校验

pull/345/head
YunaiV 2026-05-18 08:50:23 +08:00
parent 58f8b7fb22
commit 179881bd3d
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: $t('ui.actionTitle.create', ['分类']),
type: 'primary',
icon: ACTION_ICON.ADD,
auth: ['iot:product-category:create'],
onClick: handleCreate,
},
]"
@ -107,6 +108,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
label: $t('common.edit'),
type: 'link',
icon: ACTION_ICON.EDIT,
auth: ['iot:product-category:update'],
onClick: handleEdit.bind(null, row),
},
{
@ -114,6 +116,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
type: 'link',
danger: true,
icon: ACTION_ICON.DELETE,
auth: ['iot:product-category:delete'],
popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.name]),
confirm: handleDelete.bind(null, row),