hookehuyr

抄送节点功能优化

...@@ -871,7 +871,7 @@ export default { ...@@ -871,7 +871,7 @@ export default {
871 return Promise.reject('reject') 871 return Promise.reject('reject')
872 } 872 }
873 // 流程图中必须有一个流程节点 873 // 流程图中必须有一个流程节点
874 - let is_flow_node = nodes.filter(node => node.control === 'flow'); 874 + let is_flow_node = nodes.filter(node => node.control === 'flow' || node.control === 'cc');
875 if (is_flow_node.length === 1) { 875 if (is_flow_node.length === 1) {
876 ElNotification.error('流程图中必须有一个流程节点') 876 ElNotification.error('流程图中必须有一个流程节点')
877 return Promise.reject('reject') 877 return Promise.reject('reject')
...@@ -933,6 +933,13 @@ export default { ...@@ -933,6 +933,13 @@ export default {
933 ElNotification.error('流程不能连线到开始节点') 933 ElNotification.error('流程不能连线到开始节点')
934 return Promise.reject('reject') 934 return Promise.reject('reject')
935 } 935 }
936 + for (let index = 0; index < nodes.length; index++) {
937 + const element = nodes[index]
938 + if (element.id === source && element.control === 'cc') {
939 + ElNotification.error('抄送节点不可以连接线')
940 + return Promise.reject('reject')
941 + }
942 + }
936 } 943 }
937 if (type === 'node') { 944 if (type === 'node') {
938 if (model.control === 'start' || model.control === 'end') { 945 if (model.control === 'start' || model.control === 'end') {
......