Procházet zdrojové kódy

修改bug请求错误

haojianlong před 4 roky
rodič
revize
fb1722f094

+ 11 - 6
src/components/business_space/newGraphy/graphy.vue

@@ -1,7 +1,7 @@
 <template>
   <div id="graphy" ref="graphy" v-loading="canvasLoading">
     <div v-show="!FloorMap">
-        <!-- 平面图其他分区 -->
+      <!-- 平面图其他分区 -->
       <!-- <div style="margin-right:10px;width: 100%;margin-bottom: 10px" v-if="showOtherFlag">
         <el-button type="primary" @click="addZoneBtn">添加分区</el-button>
         <el-select v-model="OtherValue" placeholder="请选择分区类型" @change="changeOtherZone">
@@ -444,11 +444,16 @@ export default {
               Infected: t.state
             }
           }).filter(item => item)
-          this.scene.removeAllZone();
-          this.scene.addZoneList(tempArr);
-          this.scene.click(this, this.canvasClick);
-          this.zoneList = this.scene.zoneList;
-          this.view._needDraw = true;
+          try {
+            this.scene.removeAllZone();
+            this.scene.addZoneList(tempArr);
+            this.scene.click(this, this.canvasClick);
+            this.zoneList = this.scene.zoneList;
+            this.view._needDraw = true;
+          } catch (err) {
+            console.log(err);
+            console.log(this)
+          }
           this.canvasLoading = false;
         }
       })

+ 1 - 0
src/views/ledger/spacelist/index.vue

@@ -142,6 +142,7 @@ export default {
   created() {
     this.getRelations()
     this.childBackParam = this.$route.params;
+    console.log(this.childBackParam);
   },
   mounted() {
   },