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('修改成功')