Commit b768632b by jason

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

parent 0e7dbbb0
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 @@ ...@@ -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 () => { ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment