仿钉钉流程设计器- 后端结构调整
This commit is contained in:
parent
b768632b0c
commit
94cdb2ed29
@ -83,7 +83,7 @@ const saveSimpleFlowModel = async () => {
|
|||||||
}
|
}
|
||||||
const data = {
|
const data = {
|
||||||
modelId: props.modelId,
|
modelId: props.modelId,
|
||||||
simpleModelBody: processNodeTree.value
|
simpleModel: processNodeTree.value
|
||||||
}
|
}
|
||||||
|
|
||||||
const result = await updateBpmSimpleModel(data)
|
const result = await updateBpmSimpleModel(data)
|
||||||
|
@ -26,7 +26,7 @@ import approverDrawer from '@/components/SimpleProcessDesigner/src/drawer/approv
|
|||||||
import copyerDrawer from '@/components/SimpleProcessDesigner/src/drawer/copyerDrawer.vue'
|
import copyerDrawer from '@/components/SimpleProcessDesigner/src/drawer/copyerDrawer.vue'
|
||||||
import { WorkFlowNode } from '@/components/SimpleProcessDesigner/src/consts'
|
import { WorkFlowNode } from '@/components/SimpleProcessDesigner/src/consts'
|
||||||
import { ref } from 'vue'
|
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 { getModel } from '@/api/bpm/model'
|
||||||
import { getForm, FormVO } from '@/api/bpm/form'
|
import { getForm, FormVO } from '@/api/bpm/form'
|
||||||
defineOptions({ name: 'SimpleWorkflowDesignEditor2' })
|
defineOptions({ name: 'SimpleWorkflowDesignEditor2' })
|
||||||
@ -65,7 +65,7 @@ const test = async () => {
|
|||||||
simpleModelBody: nodeConfig.value
|
simpleModelBody: nodeConfig.value
|
||||||
}
|
}
|
||||||
console.log('request json data1 is ', data1)
|
console.log('request json data1 is ', data1)
|
||||||
const result = await saveBpmSimpleModel(data)
|
const result = await updateBpmSimpleModel(data)
|
||||||
console.log('save the result is ', result)
|
console.log('save the result is ', result)
|
||||||
if (result) {
|
if (result) {
|
||||||
message.success('修改成功')
|
message.success('修改成功')
|
||||||
|
Loading…
Reference in New Issue
Block a user