From 39dfa81f58544ddc6c70333a384e09a931dd824e Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Mon, 30 Dec 2024 18:55:47 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=20=E6=94=B9=E4=B8=BAtab=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/workflow/definition/index.ts | 17 ++ .../views/workflow/processDefinition/data.tsx | 2 +- .../workflow/processDefinition/index.vue | 70 ++++--- .../process-definition-history-modal.vue | 184 ------------------ 4 files changed, 62 insertions(+), 211 deletions(-) delete mode 100644 apps/web-antd/src/views/workflow/processDefinition/process-definition-history-modal.vue diff --git a/apps/web-antd/src/api/workflow/definition/index.ts b/apps/web-antd/src/api/workflow/definition/index.ts index 46c26738..e21255c3 100644 --- a/apps/web-antd/src/api/workflow/definition/index.ts +++ b/apps/web-antd/src/api/workflow/definition/index.ts @@ -4,6 +4,11 @@ import type { ID, IDS, PageQuery, PageResult } from '#/api/common'; import { requestClient } from '#/api/request'; +/** + * 全部的流程定义 + * @param params 查询参数 + * @returns 分页 + */ export function workflowDefinitionList(params?: PageQuery) { return requestClient.get>( '/workflow/definition/list', @@ -11,6 +16,18 @@ export function workflowDefinitionList(params?: PageQuery) { ); } +/** + * 未发布的流程定义 + * @param params 查询参数 + * @returns 分页 + */ +export function unPublishList(params?: PageQuery) { + return requestClient.get>( + '/workflow/definition/unPublishList', + { params }, + ); +} + /** * 获取历史流程定义列表 * @param flowCode diff --git a/apps/web-antd/src/views/workflow/processDefinition/data.tsx b/apps/web-antd/src/views/workflow/processDefinition/data.tsx index 1fc74dec..2ec6a7a3 100644 --- a/apps/web-antd/src/views/workflow/processDefinition/data.tsx +++ b/apps/web-antd/src/views/workflow/processDefinition/data.tsx @@ -63,7 +63,7 @@ export const columns: VxeGridProps['columns'] = [ slots: { default: 'action' }, title: '操作', resizable: false, - width: 280, + width: 200, }, ]; diff --git a/apps/web-antd/src/views/workflow/processDefinition/index.vue b/apps/web-antd/src/views/workflow/processDefinition/index.vue index 02bd1bff..2d5392ae 100644 --- a/apps/web-antd/src/views/workflow/processDefinition/index.vue +++ b/apps/web-antd/src/views/workflow/processDefinition/index.vue @@ -1,18 +1,28 @@ + - -