Forráskód Böngészése

项目自定义字段添加

haojianlong 4 éve
szülő
commit
cc69d60c26
1 módosított fájl, 8 hozzáadás és 1 törlés
  1. 8 1
      src/components/business_space/newGraphy/graphy.vue

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

@@ -539,7 +539,7 @@ export default {
             return undefined;
           }
           text.push(t.RoomLocalName || t.RoomName)
-          return {
+          let obj = {
             IspaceId: t.RoomID,
             RoomLocalName: t.RoomLocalName || t.RoomName,
             Outline: [t.Outline],
@@ -547,6 +547,10 @@ export default {
             FloorId: this.buildFloor[1],
             Height: this.spaceHeight
           }
+          if (t.CustomParam) {
+            obj.CustomParam = t.CustomParam
+          }
+          return obj;
         } else {
           return undefined
         }
@@ -1021,11 +1025,14 @@ export default {
       spaces = spaces.map(t => {
         t.ObjectType = ObjectType;
         t.BIMLocation = this.getAverageVal(t.Outline);
+
         return t;
       })
       let pa = {
         Content: spaces,
       }
+      console.log(pa);
+      return
       zoneCreate(pa, res => {
         res.EntityList.map(t => {
           spaces = spaces.map(item => {