From 898593696c536876e4a77206a7694a563d19681c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 26 Aug 2024 18:38:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E3=80=91=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=9ABPM=20Model=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20type=20=E6=A0=87=E8=AE=B0=E6=98=AF=20BPMN?= =?UTF-8?q?=20=E8=AE=BE=E8=AE=A1=E5=99=A8=EF=BC=8C=E8=BF=98=E6=98=AF=20SIM?= =?UTF-8?q?PLE=20=E9=92=89=E9=92=89=E8=AE=BE=E8=AE=A1=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm/model/index.ts | 4 + src/utils/constants.ts | 12 ++ src/utils/dict.ts | 1 + src/views/bpm/model/ModelForm.vue | 166 +++++++++++++++------------ src/views/bpm/model/editor/index.vue | 6 +- src/views/bpm/model/index.vue | 51 ++++---- 6 files changed, 135 insertions(+), 105 deletions(-) diff --git a/src/api/bpm/model/index.ts b/src/api/bpm/model/index.ts index 7e9a3614..46728637 100644 --- a/src/api/bpm/model/index.ts +++ b/src/api/bpm/model/index.ts @@ -38,6 +38,10 @@ export const updateModel = async (data: ModelVO) => { return await request.put({ url: '/bpm/model/update', data: data }) } +export const updateModelBpmn = async (data: ModelVO) => { + return await request.put({ url: '/bpm/model/update-bpmn', data: data }) +} + // 任务状态修改 export const updateModelState = async (id: number, state: number) => { const data = { diff --git a/src/utils/constants.ts b/src/utils/constants.ts index cfa785b0..874f5da0 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -437,3 +437,15 @@ export const ErpBizType = { SALE_OUT: 21, SALE_RETURN: 22 } + +// ========== BPM 模块 ========== + +export const BpmModelType = { + BPMN: 10, // BPMN 设计器 + SIMPLE: 20 // 简易设计器 +} + +export const BpmModelFormType = { + NORMAL: 10, // 流程表单 + CUSTOM: 20 // 业务表单 +} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 7fbcfebc..611c6b2d 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -143,6 +143,7 @@ export enum DICT_TYPE { INFRA_OPERATE_TYPE = 'infra_operate_type', // ========== BPM 模块 ========== + BPM_MODEL_TYPE = 'bpm_model_type', BPM_MODEL_FORM_TYPE = 'bpm_model_form_type', BPM_TASK_CANDIDATE_STRATEGY = 'bpm_task_candidate_strategy', BPM_PROCESS_INSTANCE_STATUS = 'bpm_process_instance_status', diff --git a/src/views/bpm/model/ModelForm.vue b/src/views/bpm/model/ModelForm.vue index ce60edca..9c31172a 100644 --- a/src/views/bpm/model/ModelForm.vue +++ b/src/views/bpm/model/ModelForm.vue @@ -35,7 +35,7 @@ placeholder="请输入流程名称" /> - + - - + + -
- - - - {{ dict.label }} - - - - - - - - - - - + + - - - - - - + + + + + - - - -
+ {{ dict.label }} + + +
+ + + + + + + + + + + + + + + + + + + + + {{ dict.label }} + + +