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-17 15:45:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1e68e270316c322ab16b095f2e40e421af903696
1e68e270
1 parent
3f952699
抄送节点功能优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
doc/App.vue
doc/App.vue
View file @
1e68e27
...
...
@@ -871,7 +871,7 @@ export default {
return Promise.reject('reject')
}
// 流程图中必须有一个流程节点
let is_flow_node = nodes.filter(node => node.control === 'flow');
let is_flow_node = nodes.filter(node => node.control === 'flow'
|| node.control === 'cc'
);
if (is_flow_node.length === 1) {
ElNotification.error('流程图中必须有一个流程节点')
return Promise.reject('reject')
...
...
@@ -933,6 +933,13 @@ export default {
ElNotification.error('流程不能连线到开始节点')
return Promise.reject('reject')
}
for (let index = 0; index < nodes.length; index++) {
const element = nodes[index]
if (element.id === source && element.control === 'cc') {
ElNotification.error('抄送节点不可以连接线')
return Promise.reject('reject')
}
}
}
if (type === 'node') {
if (model.control === 'start' || model.control === 'end') {
...
...
Please
register
or
login
to post a comment