diff --git a/apps/web-antd/src/api/bpm/category/index.ts b/apps/web-antd/src/api/bpm/category/index.ts index 0a558f6d..4b509d29 100644 --- a/apps/web-antd/src/api/bpm/category/index.ts +++ b/apps/web-antd/src/api/bpm/category/index.ts @@ -1,7 +1,5 @@ import type { PageParam, PageResult } from '@vben/request'; -import type { BpmModelApi } from '#/api/bpm/model'; - import { requestClient } from '#/api/request'; export namespace BpmCategoryApi { @@ -11,16 +9,9 @@ export namespace BpmCategoryApi { name: string; code: string; status: number; + description?: string; sort: number; // 分类排序 } - - /** 模型分类信息 */ - // TODO @jason:这个应该非 api 的,可以考虑抽到页面里哈。 - export interface ModelCategoryInfo { - id: number; - name: string; - modelList: BpmModelApi.ModelVO[]; - } } /** 查询流程分类分页 */ diff --git a/apps/web-antd/src/api/bpm/model/index.ts b/apps/web-antd/src/api/bpm/model/index.ts index 72ae8e9f..4f9a51c1 100644 --- a/apps/web-antd/src/api/bpm/model/index.ts +++ b/apps/web-antd/src/api/bpm/model/index.ts @@ -40,13 +40,13 @@ export namespace BpmModelApi { bpmnXml: string; startUsers?: UserInfo[]; } +} - /** 模型分类信息 */ - export interface ModelCategoryInfo { - id: number; - name: string; - modelList: ModelVO[]; - } +/** 模型分类信息 */ +export interface ModelCategoryInfo { + id: number; + name: string; + modelList: BpmModelApi.ModelVO[]; } /** 获取流程模型列表 */ diff --git a/apps/web-antd/src/views/bpm/category/data.ts b/apps/web-antd/src/views/bpm/category/data.ts index db53d57e..1df6ba2d 100644 --- a/apps/web-antd/src/views/bpm/category/data.ts +++ b/apps/web-antd/src/views/bpm/category/data.ts @@ -64,6 +64,7 @@ export function useFormSchema(): VbenFormSchema[] { min: 0, controlsPosition: 'right', placeholder: '请输入分类排序', + class: 'w-full', }, }, ]; diff --git a/apps/web-antd/src/views/bpm/category/modules/rename-form.vue b/apps/web-antd/src/views/bpm/category/modules/rename-form.vue new file mode 100644 index 00000000..ba68a44e --- /dev/null +++ b/apps/web-antd/src/views/bpm/category/modules/rename-form.vue @@ -0,0 +1,102 @@ + + + + + + + diff --git a/apps/web-antd/src/views/bpm/model/index.vue b/apps/web-antd/src/views/bpm/model/index.vue index c40c53e8..118b27b9 100644 --- a/apps/web-antd/src/views/bpm/model/index.vue +++ b/apps/web-antd/src/views/bpm/model/index.vue @@ -1,9 +1,9 @@ @@ -205,20 +253,39 @@ const customRow = (_record: any) => { - + 排序 + + + + + + 分类 + + + handleCommand(e.key as string)"> + 重命名 + 删除分类 + + + @@ -370,6 +437,9 @@ const customRow = (_record: any) => { + + +