From ce60c7194deafc00c628d31c8ac97dcfd26c68a9 Mon Sep 17 00:00:00 2001 From: Kven <2955163637@qq.com> Date: Wed, 4 Jun 2025 20:17:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(@vben/web-antd):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6=E5=B9=B6?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A6=96=E9=A1=B5=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/router/routes/modules/person.ts | 2 +- apps/web-antd/src/router/routes/modules/system.ts | 4 ++-- apps/web-antd/src/views/dept/data.ts | 8 +++++++- apps/web-antd/src/views/log/list.vue | 9 ++++++++- apps/web-antd/src/views/role/data.ts | 12 ++++++++++++ apps/web-antd/src/views/role/list.vue | 6 +++++- apps/web-antd/src/views/user/data.ts | 3 +++ apps/web-antd/src/views/user/list.vue | 6 +++++- apps/web-antd/src/views/workflow/data.ts | 6 +++++- packages/constants/src/core.ts | 2 +- 10 files changed, 49 insertions(+), 9 deletions(-) diff --git a/apps/web-antd/src/router/routes/modules/person.ts b/apps/web-antd/src/router/routes/modules/person.ts index d20d237..234e02e 100644 --- a/apps/web-antd/src/router/routes/modules/person.ts +++ b/apps/web-antd/src/router/routes/modules/person.ts @@ -11,7 +11,7 @@ const routes: RouteRecordRaw[] = [ icon: MaterPerson, title: '个人', order: 5, - authority: ['dashboard'], + authority: ['user'], }, }, ]; diff --git a/apps/web-antd/src/router/routes/modules/system.ts b/apps/web-antd/src/router/routes/modules/system.ts index f9a8f33..2916096 100644 --- a/apps/web-antd/src/router/routes/modules/system.ts +++ b/apps/web-antd/src/router/routes/modules/system.ts @@ -57,7 +57,7 @@ const routes: RouteRecordRaw[] = [ meta: { icon: IconLog, title: '系统日志', - authority: ['system'], + authority: ['system:operationLog'], }, }, { @@ -67,7 +67,7 @@ const routes: RouteRecordRaw[] = [ meta: { icon: FluentWorkflow, title: '工作流管理', - authority: ['system'], + authority: ['system:workflow'], }, }, ], diff --git a/apps/web-antd/src/views/dept/data.ts b/apps/web-antd/src/views/dept/data.ts index b35f469..9fd37b7 100644 --- a/apps/web-antd/src/views/dept/data.ts +++ b/apps/web-antd/src/views/dept/data.ts @@ -151,14 +151,20 @@ export function useColumns( { code: 'append', text: '新增下级', + permission: 'system:dept:create', }, // { // code: 'auth', // text: '工作流', // }, - 'edit', // 默认的编辑按钮 + { + code: 'edit', + text: '修改', + permission: 'system:dept:update', + }, { code: 'delete', // 默认的删除按钮 + permission: 'system:dept:delete', disabled: (row: DeptApi.Dept) => { return !!(row.children && row.children.length > 0); }, diff --git a/apps/web-antd/src/views/log/list.vue b/apps/web-antd/src/views/log/list.vue index 32faae9..f82a942 100644 --- a/apps/web-antd/src/views/log/list.vue +++ b/apps/web-antd/src/views/log/list.vue @@ -80,7 +80,14 @@ async function onDelete() {