Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
vue-flow-editor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2023-11-30 14:26:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
15fa082d26fdf59279b5ed73010ea631c599de8e
15fa082d
1 parent
5034e472
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
19 deletions
doc/App.vue
doc/App.vue
View file @
15fa082
...
...
@@ -914,7 +914,7 @@ export default {
const onCloseUserView = (status: boolean) => {
state.dialogUserFormVisible = status
}
const onConfirmUserView = (data: any) => {
const onConfirmUserView =
async
(data: any) => {
state.userTags = data;
// 自动保存流程
let { nodes, edges } = editor.editorState.graph.save();
...
...
@@ -925,26 +925,12 @@ export default {
let flow_id = getFlowId(); // 流程id
if (paths.length) {
axios.post('/admin/?a=save_flow', qs.stringify({
form_id: +form_id,
flow_id: +flow_id,
data: JSON.stringify({ nodes, edges })
}))
.then(res => {
if (res.data.code) {
flow_id = res.data.data; // 更新flow_id
const { code, data } = await saveFlowAPI({ form_id: +form_id, flow_id: +flow_id, data: JSON.stringify({ nodes, edges }) });
if (code) {
flow_id = data; // 更新flow_id
updateFlowId(flow_id); // 更新缓存flow_id
console.log(paths); // 输出满足条件的路径结果数组
} else {
ElMessage({
type: 'error',
message: res.data.msg,
});
console.log('满足条件的路径', paths); // 输出满足条件的路径结果数组
}
})
.catch(err => {
console.log(err);
});
} else {
ElNotification.error('缺少一条从开始节点到结束节点的完整流程!');
}
...
...
Please
register
or
login
to post a comment