仿钉钉流程设计器- 后端接口调整
This commit is contained in:
parent
0e7dbbb04d
commit
b768632b0c
@ -1,15 +1,15 @@
|
|||||||
import request from '@/config/axios'
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
|
||||||
export const saveBpmSimpleModel = async (data) => {
|
export const updateBpmSimpleModel = async (data) => {
|
||||||
return await request.post({
|
return await request.post({
|
||||||
url: '/bpm/simple/save',
|
url: '/bpm/model/simple/update',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getBpmSimpleModel = async (modelId) => {
|
export const getBpmSimpleModel = async (modelId) => {
|
||||||
return await request.get({
|
return await request.get({
|
||||||
url: '/bpm/simple/get?modelId=' + modelId
|
url: '/bpm/model/simple/get?modelId=' + modelId
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import ProcessNodeTree from './ProcessNodeTree.vue';
|
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'
|
import { SimpleFlowNode, NodeType,NODE_DEFAULT_TEXT } from './consts'
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
@ -86,7 +86,7 @@ const saveSimpleFlowModel = async () => {
|
|||||||
simpleModelBody: processNodeTree.value
|
simpleModelBody: processNodeTree.value
|
||||||
}
|
}
|
||||||
|
|
||||||
const result = await saveBpmSimpleModel(data)
|
const result = await updateBpmSimpleModel(data)
|
||||||
if (result) {
|
if (result) {
|
||||||
message.success('修改成功')
|
message.success('修改成功')
|
||||||
close()
|
close()
|
||||||
|
Loading…
Reference in New Issue
Block a user