diff --git a/apps/web-antd/src/router/routes/modules/system.ts b/apps/web-antd/src/router/routes/modules/system.ts index 31744d6..f9a8f33 100644 --- a/apps/web-antd/src/router/routes/modules/system.ts +++ b/apps/web-antd/src/router/routes/modules/system.ts @@ -1,6 +1,13 @@ import type { RouteRecordRaw } from 'vue-router'; -import { EosRole, IconLog, IconSystem, MdiUser, RiDept } from '@vben/icons'; +import { + EosRole, + FluentWorkflow, + IconLog, + IconSystem, + MdiUser, + RiDept, +} from '@vben/icons'; const routes: RouteRecordRaw[] = [ { @@ -53,6 +60,16 @@ const routes: RouteRecordRaw[] = [ authority: ['system'], }, }, + { + name: 'workflow', + path: '/system/workflow', + component: () => import('#/views/workflow/list.vue'), + meta: { + icon: FluentWorkflow, + title: '工作流管理', + authority: ['system'], + }, + }, ], }, ]; diff --git a/apps/web-antd/src/views/dept/data.ts b/apps/web-antd/src/views/dept/data.ts index a003f57..b35f469 100644 --- a/apps/web-antd/src/views/dept/data.ts +++ b/apps/web-antd/src/views/dept/data.ts @@ -152,10 +152,10 @@ export function useColumns( code: 'append', text: '新增下级', }, - { - code: 'auth', - text: '权限', - }, + // { + // code: 'auth', + // text: '工作流', + // }, 'edit', // 默认的编辑按钮 { code: 'delete', // 默认的删除按钮 @@ -175,22 +175,22 @@ export function useColumns( ]; } -export function useAuthColumns(): VxeTableGridOptions['columns'] { - return [ - { - field: 'id', - type: 'checkbox', - width: 100, - }, - { - field: 'name', - title: '名称', - width: 200, - }, - { - field: 'remark', - minWidth: 100, - title: '备注', - }, - ]; -} +// export function useAuthColumns(): VxeTableGridOptions['columns'] { +// return [ +// { +// field: 'id', +// type: 'checkbox', +// width: 100, +// }, +// { +// field: 'name', +// title: '名称', +// width: 200, +// }, +// { +// field: 'type', +// minWidth: 100, +// title: '类型', +// }, +// ]; +// } diff --git a/apps/web-antd/src/views/dept/list.vue b/apps/web-antd/src/views/dept/list.vue index 4b973dd..fc7afc9 100644 --- a/apps/web-antd/src/views/dept/list.vue +++ b/apps/web-antd/src/views/dept/list.vue @@ -16,7 +16,7 @@ import { getAllDeptTree, removeDept } from '#/api'; import { $t } from '#/locales'; import { useColumns, useGridFormSchema } from './data'; -import AuthForm from './modules/auth-form.vue'; +// import AuthForm from './modules/auth-form.vue'; import Form from './modules/form.vue'; const [FormModal, formModalApi] = useVbenModal({ @@ -24,10 +24,10 @@ const [FormModal, formModalApi] = useVbenModal({ destroyOnClose: true, }); -const [AuthFormModal, authFormModalApi] = useVbenModal({ - connectedComponent: AuthForm, - destroyOnClose: true, -}); +// const [AuthFormModal, authFormModalApi] = useVbenModal({ +// connectedComponent: AuthForm, +// destroyOnClose: true, +// }); /** * 编辑部门 @@ -84,10 +84,10 @@ function onActionClick({ code, row }: OnActionClickParams) { onAppend(row); break; } - case 'auth': { - authFormModalApi.open(); - break; - } + // case 'auth': { + // authFormModalApi.open(); + // break; + // } case 'delete': { onDelete(row); break; @@ -146,7 +146,7 @@ function refreshGrid() {