From 174d3739914b349d6dd30adfddbb9c7a969f2024 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: Fri, 23 Aug 2024 21:38:51 +0800 Subject: [PATCH] =?UTF-8?q?add=E6=B7=BB=E5=8A=A0=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=BF=80=E6=B4=BB=20=E6=8C=82=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/definition/index.ts | 4 +- src/api/workflow/definition/types.ts | 1 + .../workflow/processDefinition/index.vue | 64 ++++++------------- 3 files changed, 24 insertions(+), 45 deletions(-) diff --git a/src/api/workflow/definition/index.ts b/src/api/workflow/definition/index.ts index 775cfa7..50720ff 100644 --- a/src/api/workflow/definition/index.ts +++ b/src/api/workflow/definition/index.ts @@ -65,9 +65,9 @@ export const deleteDefinition = (id: string | string[]) => { * @param definitionId 流程定义id * @returns */ -export const updateDefinitionState = (definitionId: string) => { +export const updateDefinitionState = (definitionId: string, activityStatus: boolean) => { return request({ - url: `/workflow/definition/updateDefinitionState/${definitionId}`, + url: `/workflow/definition/updateDefinitionState/${definitionId}/${activityStatus}`, method: 'put' }); }; diff --git a/src/api/workflow/definition/types.ts b/src/api/workflow/definition/types.ts index 84a3a28..d30cb25 100644 --- a/src/api/workflow/definition/types.ts +++ b/src/api/workflow/definition/types.ts @@ -12,6 +12,7 @@ export interface FlowDefinitionVo extends BaseEntity { flowCode: string; version: string; isPublish: number; + activityStatus: boolean; createTime: Date; updateTime: Date; wfDefinitionConfigVo: DefinitionConfigVO; diff --git a/src/views/workflow/processDefinition/index.vue b/src/views/workflow/processDefinition/index.vue index 0f09949..62fff66 100644 --- a/src/views/workflow/processDefinition/index.vue +++ b/src/views/workflow/processDefinition/index.vue @@ -59,24 +59,19 @@ - + - - - - + - @@ -179,16 +171,12 @@ -