fix: system dept

pull/131/head
xingyu4j 2025-06-06 14:35:02 +08:00
parent 4ba864c734
commit 082bb7167f
1 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ onMounted(async () => {
<TableAction <TableAction
:actions="[ :actions="[
{ {
label: $t('ui.actionTitle.create', ['菜单']), label: $t('ui.actionTitle.create', ['部门']),
type: 'primary', type: 'primary',
icon: ACTION_ICON.ADD, icon: ACTION_ICON.ADD,
auth: ['system:dept:create'], auth: ['system:dept:create'],
@ -140,14 +140,14 @@ onMounted(async () => {
label: '新增下级', label: '新增下级',
type: 'link', type: 'link',
icon: ACTION_ICON.ADD, icon: ACTION_ICON.ADD,
auth: ['system:menu:create'], auth: ['system:dept:create'],
onClick: handleAppend.bind(null, row), onClick: handleAppend.bind(null, row),
}, },
{ {
label: $t('common.edit'), label: $t('common.edit'),
type: 'link', type: 'link',
icon: ACTION_ICON.EDIT, icon: ACTION_ICON.EDIT,
auth: ['system:menu:update'], auth: ['system:dept:update'],
onClick: handleEdit.bind(null, row), onClick: handleEdit.bind(null, row),
}, },
{ {
@ -155,7 +155,7 @@ onMounted(async () => {
type: 'link', type: 'link',
danger: true, danger: true,
icon: ACTION_ICON.DELETE, icon: ACTION_ICON.DELETE,
auth: ['system:menu:delete'], auth: ['system:dept:delete'],
disabled: !!(row.children && row.children.length > 0), disabled: !!(row.children && row.children.length > 0),
popConfirm: { popConfirm: {
title: $t('ui.actionMessage.deleteConfirm', [row.name]), title: $t('ui.actionMessage.deleteConfirm', [row.name]),