|
@@ -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;
|
|
|
}
|
|
|
})
|