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-29 12:02:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
becf60980f250149a3c9ae74f2b2d3e5951810c3
becf6098
1 parent
cb75c1aa
fix 新增流程逻辑优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
doc/App.vue
doc/App.vue
View file @
becf609
...
...
@@ -780,9 +780,6 @@ export default {
updateUrl(id); // 更新URL
getFlowData(id); // 更新流程图数据
state.flow_version = code;
state.versionForm.id = id;
state.versionForm.code = code;
state.versionForm.note = note;
}
const showEditFlowVersion = (id: number, code: number, note: string) => {
// 切换版本信息
...
...
@@ -810,7 +807,30 @@ export default {
type: 'success',
message: '新增成功',
});
getVersionList(); // 刷新版本列表
axios.get('/admin/?a=flow_version&form_id=' + form_id)
.then(res => {
if (res.data.code) {
// 版本列表
state.version_list = res.data.data;
state.version_list.forEach((ele) => {
if (ele.id === flow_id) {
// 选中新增的版本
state.flow_version = ele.code;
}
if (ele.status === '1') {
state.current_version_code = ele.code;
}
});
} else {
ElMessage({
type: 'error',
message: res.data.msg,
});
}
})
.catch(err => {
console.error(err);
});
}
})
.catch(err => {
...
...
Please
register
or
login
to post a comment