仿钉钉流程设计器- 后端接口调整

This commit is contained in:
jason 2024-05-27 21:20:18 +08:00
parent 0e7dbbb04d
commit b768632b0c
2 changed files with 6 additions and 6 deletions

View File

@ -1,15 +1,15 @@
import request from '@/config/axios'
export const saveBpmSimpleModel = async (data) => {
export const updateBpmSimpleModel = async (data) => {
return await request.post({
url: '/bpm/simple/save',
url: '/bpm/model/simple/update',
data: data
})
}
export const getBpmSimpleModel = async (modelId) => {
return await request.get({
url: '/bpm/simple/get?modelId=' + modelId
url: '/bpm/model/simple/get?modelId=' + modelId
})
}
}

View File

@ -32,7 +32,7 @@
<script setup lang="ts">
import ProcessNodeTree from './ProcessNodeTree.vue';
import { saveBpmSimpleModel, getBpmSimpleModel } from '@/api/bpm/simple'
import { updateBpmSimpleModel, getBpmSimpleModel } from '@/api/bpm/simple'
import { SimpleFlowNode, NodeType,NODE_DEFAULT_TEXT } from './consts'
defineOptions({
@ -86,7 +86,7 @@ const saveSimpleFlowModel = async () => {
simpleModelBody: processNodeTree.value
}
const result = await saveBpmSimpleModel(data)
const result = await updateBpmSimpleModel(data)
if (result) {
message.success('修改成功')
close()