|
@@ -113,6 +113,7 @@ export default class spaceGraph extends Vue {
|
|
BIMIDToSID = {};
|
|
BIMIDToSID = {};
|
|
BIMIDToSIName = {};
|
|
BIMIDToSIName = {};
|
|
sourceIdToISP = {};
|
|
sourceIdToISP = {};
|
|
|
|
+ localFun = [];
|
|
|
|
|
|
get mapBaseUrl() {
|
|
get mapBaseUrl() {
|
|
return AppModule.mapBaseUrl;
|
|
return AppModule.mapBaseUrl;
|
|
@@ -262,7 +263,7 @@ export default class spaceGraph extends Vue {
|
|
if (this.scene) {
|
|
if (this.scene) {
|
|
this.scene.isSpaceSelectable = true;
|
|
this.scene.isSpaceSelectable = true;
|
|
this.scene.isZoneSelectable = false;
|
|
this.scene.isZoneSelectable = false;
|
|
- this.scene.selectContainer.clear()
|
|
|
|
|
|
+ this.scene.selectContainer.clear();
|
|
}
|
|
}
|
|
this.view?.update();
|
|
this.view?.update();
|
|
}
|
|
}
|
|
@@ -271,8 +272,17 @@ export default class spaceGraph extends Vue {
|
|
let arr = this.scene?.selectContainer.itemList;
|
|
let arr = this.scene?.selectContainer.itemList;
|
|
if (arr.length) {
|
|
if (arr.length) {
|
|
let tempArr = [];
|
|
let tempArr = [];
|
|
|
|
+ this.localFun = [];
|
|
arr.map((t) => {
|
|
arr.map((t) => {
|
|
tempArr.push(this.BIMIDToSIName[t.data.SourceId]);
|
|
tempArr.push(this.BIMIDToSIName[t.data.SourceId]);
|
|
|
|
+ if (
|
|
|
|
+ this.sourceIdToISP[t.data.SourceId] &&
|
|
|
|
+ this.sourceIdToISP[t.data.SourceId].infos
|
|
|
|
+ ) {
|
|
|
|
+ this.localFun.push(
|
|
|
|
+ this.sourceIdToISP[t.data.SourceId].infos
|
|
|
|
+ );
|
|
|
|
+ }
|
|
});
|
|
});
|
|
this.$refs.createBSP.showDialog(tempArr.toString());
|
|
this.$refs.createBSP.showDialog(tempArr.toString());
|
|
} else {
|
|
} else {
|
|
@@ -362,6 +372,18 @@ export default class spaceGraph extends Vue {
|
|
classCode: this.curZoneType,
|
|
classCode: this.curZoneType,
|
|
outline: [],
|
|
outline: [],
|
|
};
|
|
};
|
|
|
|
+ // 没有业务空间,也没有绘制切割区域
|
|
|
|
+ let arr = this.scene?.selectContainer.itemList;
|
|
|
|
+ let temp = arr
|
|
|
|
+ ?.map((t) => {
|
|
|
|
+ return this.sourceIdToISP[t.data.SourceId]
|
|
|
|
+ ? this.sourceIdToISP[t.data.SourceId].infos
|
|
|
|
+ : undefined;
|
|
|
|
+ })
|
|
|
|
+ .filter((item) => item);
|
|
|
|
+ if (temp?.length) {
|
|
|
|
+ zoneObj.infos = temp[0];
|
|
|
|
+ }
|
|
if (this.scene) {
|
|
if (this.scene) {
|
|
zoneObj = this.calIntersect(zoneObj);
|
|
zoneObj = this.calIntersect(zoneObj);
|
|
this.handleUpdateZone(zoneObj);
|
|
this.handleUpdateZone(zoneObj);
|
|
@@ -410,6 +432,9 @@ export default class spaceGraph extends Vue {
|
|
floorId: this.floor.id,
|
|
floorId: this.floor.id,
|
|
classCode: this.curZoneType,
|
|
classCode: this.curZoneType,
|
|
};
|
|
};
|
|
|
|
+ if (this.localFun.length) {
|
|
|
|
+ zoneObj.infos = this.localFun[0];
|
|
|
|
+ }
|
|
if (this.scene) {
|
|
if (this.scene) {
|
|
zoneObj = this.calIntersect(zoneObj);
|
|
zoneObj = this.calIntersect(zoneObj);
|
|
this.handleCreateZone(zoneObj);
|
|
this.handleCreateZone(zoneObj);
|
|
@@ -526,7 +551,7 @@ export default class spaceGraph extends Vue {
|
|
// 切割划分
|
|
// 切割划分
|
|
divide() {
|
|
divide() {
|
|
if (this.scene) {
|
|
if (this.scene) {
|
|
- this.scene.drawCmd = 'cut';
|
|
|
|
|
|
+ this.scene.drawCmd = "cut";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 清除切割划分
|
|
// 清除切割划分
|