补充权限控制

This commit is contained in:
xie7654
2025-07-03 17:08:10 +08:00
parent 18f9afb924
commit 6dfc242166
12 changed files with 52 additions and 32 deletions

View File

@@ -2,6 +2,7 @@ import type { OnActionClickFn, VxeTableGridOptions } from '#/adapter/vxe-table';
import type { SystemMenuApi } from '#/api/system/menu';
import { $t } from '#/locales';
import {op} from "#/utils/permission";
export function getMenuTypeOptions() {
return [
@@ -95,12 +96,12 @@ export function useColumns(
},
name: 'CellOperation',
options: [
{
op('system:menu:create', {
code: 'append',
text: '新增下级',
},
'edit', // 默认的编辑按钮
'delete', // 默认的删除按钮
}),
op('system:menu:edit', 'edit'),
op('system:menu:delete', 'delete'),
],
},
field: 'operation',