| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div v-if="type !== 'detail'" class="vfe-chart-panel"> |
| | | <div class="vfe-chart-panel"> |
| | | <div class="vfe-chart-panel-detail"> |
| | | <editor-detail-panel |
| | | ref="EditorDetailPanel" |
| | |
| | | onAfterChange(e) { |
| | | console.log(e) |
| | | try { |
| | | if('edit' === this.$store.state.flow.type){ |
| | | this.$refs.flowChart.propsAPI.remove(e.item); |
| | | if(e.action === 'remove'){ |
| | | this.$message.error('编辑状态下不能切换选中项!'); |
| | | } |
| | | return; |
| | | } |
| | | // if('edit' === this.$store.state.flow.type){ |
| | | // this.$refs.flowChart.propsAPI.remove(e.item); |
| | | // if(e.action === 'remove'){ |
| | | // this.$message.error('编辑状态下不能切换选中项!'); |
| | | // } |
| | | // return; |
| | | // } |
| | | // 如果添加了节点且节点没有被更改过 |
| | | if (e.action === "add" && e.model.type === "node") { |
| | | if (!e.model.change) { |
| | |
| | | } |
| | | } |
| | | } catch (err) { |
| | | console.log(err) |
| | | // 处理节点 ID 冲突错误 |
| | | if ( |
| | | err.message === |