|
@@ -3,7 +3,7 @@
|
|
|
<div class="saga-build-mess">
|
|
|
<span style="padding-right:12px;color:#999999;">建筑楼层</span>
|
|
|
<el-cascader :options="options" v-model="buildFloorSelectd" :props="props" @change="changeCascader"></el-cascader>
|
|
|
- <el-button @click="importOutline">导入业务空间轮廓线</el-button>
|
|
|
+ <!-- <el-button @click="importOutline">导入业务空间轮廓线</el-button> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -103,6 +103,7 @@ export default {
|
|
|
let arr = t.BIMID.split(":");
|
|
|
this.allSiListMap[t.RoomID] = arr[1];
|
|
|
})
|
|
|
+ console.log(this.allSiListMap)
|
|
|
})
|
|
|
},
|
|
|
// 获取业务空间与元空间的关系
|
|
@@ -152,6 +153,7 @@ export default {
|
|
|
this.floorIdToMap[item.FloorID] = item.StructureInfo ? item.StructureInfo.FloorMap : ''
|
|
|
return item;
|
|
|
})
|
|
|
+ console.log(this.floorIdToMap)
|
|
|
} else {
|
|
|
t.Floor = []
|
|
|
}
|
|
@@ -192,11 +194,15 @@ export default {
|
|
|
Outline: []
|
|
|
}
|
|
|
t.children.map(item => {
|
|
|
- obj.Outline.push(this.sourceIdToOutline[this.allSiListMap[item]]);
|
|
|
+ if (this.sourceIdToOutline[this.allSiListMap[item]]) {
|
|
|
+ obj.Outline.push(this.sourceIdToOutline[this.allSiListMap[item]]);
|
|
|
+ }
|
|
|
})
|
|
|
pa.data.Content.push(obj);
|
|
|
})
|
|
|
- updateZone(pa, res => { console.log(res) })
|
|
|
+ updateZone(pa, res => {
|
|
|
+ this.$message.success(`success-----${Code}`)
|
|
|
+ })
|
|
|
},
|
|
|
// 查询绑定了元空间的业务空间
|
|
|
getHasSpace(Code, Reltype) {
|
|
@@ -252,6 +258,7 @@ export default {
|
|
|
data.SpaceList.map(items => {
|
|
|
_this.sourceIdToOutline[items.BimId] = items.Paths;
|
|
|
});
|
|
|
+ console.log(_this.sourceIdToOutline)
|
|
|
} else {
|
|
|
_this.$message("没有元空间数据")
|
|
|
}
|