|
@@ -263,7 +263,7 @@ export default {
|
|
}
|
|
}
|
|
this.scene.addItem(item);
|
|
this.scene.addItem(item);
|
|
// 如果为设备则存于vuex中便于联动
|
|
// 如果为设备则存于vuex中便于联动
|
|
- if (item instanceof SBaseEquipment) {
|
|
|
|
|
|
+ if (item.legendData.properties.type == "BaseEquipment") {
|
|
anchorList = anchorList.concat(item.anchorList);
|
|
anchorList = anchorList.concat(item.anchorList);
|
|
this.ADDEQUIPITEM(item);
|
|
this.ADDEQUIPITEM(item);
|
|
}
|
|
}
|
|
@@ -282,7 +282,6 @@ export default {
|
|
startAnc.isConnected = true;
|
|
startAnc.isConnected = true;
|
|
startAnc.parent?.connect("changePos", t, t.changePos);
|
|
startAnc.parent?.connect("changePos", t, t.changePos);
|
|
t.startAnchor = startAnc || null;
|
|
t.startAnchor = startAnc || null;
|
|
- console.log("startAnc", startAnc);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (t.anchor12d) {
|
|
if (t.anchor12d) {
|
|
@@ -412,6 +411,7 @@ export default {
|
|
},
|
|
},
|
|
// 手动添加设备
|
|
// 手动添加设备
|
|
addEquipmentList(list) {
|
|
addEquipmentList(list) {
|
|
|
|
+ console.log('listlist',list)
|
|
const parse = new PTopoParser();
|
|
const parse = new PTopoParser();
|
|
list.forEach((item, i) => {
|
|
list.forEach((item, i) => {
|
|
const x = (i + 1) * 100 + 300;
|
|
const x = (i + 1) * 100 + 300;
|
|
@@ -460,7 +460,7 @@ export default {
|
|
}
|
|
}
|
|
this.scene.addItem(item);
|
|
this.scene.addItem(item);
|
|
// 如果为设备则存于vuex中便于联动
|
|
// 如果为设备则存于vuex中便于联动
|
|
- if (item instanceof SBaseEquipment) {
|
|
|
|
|
|
+ if (item.legendData.properties.type == "BaseEquipment") {
|
|
this.ADDEQUIPITEM(item);
|
|
this.ADDEQUIPITEM(item);
|
|
}
|
|
}
|
|
});
|
|
});
|