瀏覽代碼

修改业务空间 创建 默认名称从元空间取值

haojianlong 5 年之前
父節點
當前提交
604fa8f3bd
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/components/business_space/newGraphy/graphy.vue

+ 4 - 1
src/components/business_space/newGraphy/graphy.vue

@@ -121,6 +121,7 @@ export default {
       isAction: false,
       curOutline: [],
       BIMIDToSID: {}, //bimid映射元空间id
+      BIMIDToSIName: {}, //bimid映射元空间名称
       curZoneItem: {}, //当前选中的业务空间item
       allUnRelatISP: [], //
       zoneList: [], // 业务空间-canvas图中
@@ -173,8 +174,10 @@ export default {
       }
       queryZone(pa, res => {
         this.BIMIDToSID = {}
+        this.BIMIDToSIName = {}
         res.Content.map(t => {
           this.BIMIDToSID[t.BIMID.split(":")[1]] = t.RoomID;
+          this.BIMIDToSIName[t.BIMID.split(":")[1]] = t.RoomLocalName || t.RoomName;
         })
       })
     },
@@ -437,7 +440,7 @@ export default {
       if (arr.length) {
         let tempArr = [];
         arr.map(t => {
-          tempArr.push(t.data.Name);
+          tempArr.push(this.BIMIDToSIName[t.data.SourceId]);
         })
         this.$refs.createBSP.showDialog(tempArr.toString());
       } else {