|
@@ -373,15 +373,9 @@ export default {
|
|
|
showCrossingDalogs(nodeData) {
|
|
showCrossingDalogs(nodeData) {
|
|
|
console.log('路口多选', nodeData.id, nodeData.label);
|
|
console.log('路口多选', nodeData.id, nodeData.label);
|
|
|
|
|
|
|
|
- // 1. 已选中 → 取消选中
|
|
|
|
|
|
|
+ // 1. 已选中 → 不重复操作
|
|
|
const existIndex = this.crossingSelections.findIndex(c => c.id === nodeData.id);
|
|
const existIndex = this.crossingSelections.findIndex(c => c.id === nodeData.id);
|
|
|
if (existIndex !== -1) {
|
|
if (existIndex !== -1) {
|
|
|
- this.crossingSelections.splice(existIndex, 1);
|
|
|
|
|
- if (this.crossingSelections.length === 0) {
|
|
|
|
|
- this.$refs.layout.handleDialogClose('crossing-multi-view');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- this.openCrossingMultiView();
|
|
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|