From 94cdb2ed29f1e9d27a6be0cd53691d7de8724763 Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Fri, 31 May 2024 09:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E9=92=89=E9=92=89=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=99=A8-=20=E5=90=8E=E7=AB=AF=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SimpleProcessDesignerV2/src/SimpleProcessDesigner.vue | 2 +- src/views/bpm/simpleWorkflow/index1.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/SimpleProcessDesignerV2/src/SimpleProcessDesigner.vue b/src/components/SimpleProcessDesignerV2/src/SimpleProcessDesigner.vue index cd47e896..8b7efff4 100644 --- a/src/components/SimpleProcessDesignerV2/src/SimpleProcessDesigner.vue +++ b/src/components/SimpleProcessDesignerV2/src/SimpleProcessDesigner.vue @@ -83,7 +83,7 @@ const saveSimpleFlowModel = async () => { } const data = { modelId: props.modelId, - simpleModelBody: processNodeTree.value + simpleModel: processNodeTree.value } const result = await updateBpmSimpleModel(data) diff --git a/src/views/bpm/simpleWorkflow/index1.vue b/src/views/bpm/simpleWorkflow/index1.vue index 6ee5b4e3..04eb8d89 100644 --- a/src/views/bpm/simpleWorkflow/index1.vue +++ b/src/views/bpm/simpleWorkflow/index1.vue @@ -26,7 +26,7 @@ import approverDrawer from '@/components/SimpleProcessDesigner/src/drawer/approv import copyerDrawer from '@/components/SimpleProcessDesigner/src/drawer/copyerDrawer.vue' import { WorkFlowNode } from '@/components/SimpleProcessDesigner/src/consts' import { ref } from 'vue' -import { saveBpmSimpleModel, getBpmSimpleModel } from '@/api/bpm/simple' +import { updateBpmSimpleModel, getBpmSimpleModel } from '@/api/bpm/simple' import { getModel } from '@/api/bpm/model' import { getForm, FormVO } from '@/api/bpm/form' defineOptions({ name: 'SimpleWorkflowDesignEditor2' }) @@ -65,7 +65,7 @@ const test = async () => { simpleModelBody: nodeConfig.value } console.log('request json data1 is ', data1) - const result = await saveBpmSimpleModel(data) + const result = await updateBpmSimpleModel(data) console.log('save the result is ', result) if (result) { message.success('修改成功')