Browse Source

竖井平面图编辑模式

haojianlong 4 years ago
parent
commit
30b6cd489d

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

@@ -379,7 +379,7 @@
       that.canvasLoading = false;
       if (res == 'error') {
         this.FloorMap = '';
-        this.$message.warning('数据解析异常');
+        console.log('数据解析异常');
         return;
       }
       that.view.scene = that.scene;

+ 1 - 1
src/components/ledger/lib/bimDialog.vue

@@ -139,7 +139,7 @@
           this.canvasLoading = false
           if (res == 'error') {
             this.FloorMap = ''
-            this.$message.warning('数据解析异常')
+            console.log('数据解析异常')
             return
           }
           if (res.Result == 'failure') {

+ 1 - 1
src/components/ledger/lib/cenoteGraphy.vue

@@ -114,7 +114,7 @@ export default {
         that.canvasLoading = false;
         if (res == 'error') {
           this.floorMap = '';
-          this.$message.warning('数据解析异常');
+          console.log('数据解析异常');
           return;
         }
         that.view.scene = that.scene;

+ 1 - 1
src/views/data_admin/buildGraphy/graphyCanvas.vue

@@ -95,7 +95,7 @@ export default {
         that.canvasLoading = false;
         if (res == 'error') {
           this.floorMap = '';
-          this.$message.warning('数据解析异常');
+          console.log('数据解析异常');
           return;
         }
         that.view.scene = that.scene;

+ 8 - 8
src/views/ledger/cenotelist/relatedSpace.vue

@@ -3,7 +3,7 @@
     <div class="condition">
       <div class="header">
         <el-button style="float:left;" size="small" type="default" icon="el-icon-back" @click="goBack"></el-button>
-        <div class="edit-tool" v-if="!(cenoteObj.onlyRead == 'true')">
+        <div class="edit-tool" v-if="!(cenoteObj.onlyRead.toString() == 'true')">
           <el-button v-if="isMyTab == 2" size="small" style="float:right" @click="dialogVisible = true">添加</el-button>
           <div v-else>
             <el-button v-show="!isEdit" @click="changeEditType" size="small" style="float:right">编辑</el-button>
@@ -33,7 +33,7 @@
               :value="item.BuildID"></el-option>
           </el-select>
         </el-badge>
-        <el-switch v-if="!(cenoteObj.onlyRead == 'true')" style="margin-left:15px;" v-model="isAI" @change="handleChangeAI" active-text="打开AI">
+        <el-switch v-if="!(cenoteObj.onlyRead.toString() == 'true')" style="margin-left:15px;" v-model="isAI" @change="handleChangeAI" active-text="打开AI">
         </el-switch>
         <div style="height:calc(100% - 42px);margin:10px 0 0 0;width:100%;">
           <el-row style="height:100%;margin:0;width:55%;position:relative;display:inline-block;border:1px solid #e4e4e4;">
@@ -53,7 +53,7 @@
             </el-col>
           </el-row>
           <div class="elevation-box">
-            <elevation-map ref="elevationMap" :onlyRead="cenoteObj.onlyRead=='true'" :isEdit="isEdit" :isAI="isAI" @elevationChecked="handleCheckedSpace"
+            <elevation-map ref="elevationMap" :onlyRead="cenoteObj.onlyRead.toString()=='true'" :isEdit="isEdit" :isAI="isAI" @elevationChecked="handleCheckedSpace"
               @elevationUncheck="handleUncheckSpace" :params="{BuildingId: building, ObjectType: ObjectType, ShaftId: $route.query.ShaftId}">
             </elevation-map>
           </div>
@@ -103,10 +103,10 @@ export default {
       return this.$route.query;
     },
     showSpaceDot() {
-      return this.spaceList.length > 1 && this.cenoteObj.onlyRead == 'true' ? true : false;
+      return this.spaceList.length > 1 && this.cenoteObj.onlyRead.toString() == 'true' ? true : false;
     },
     showBuildDot() {
-      return this.buildingList.length > 1 && this.cenoteObj.onlyRead == 'true' ? true : false;
+      return this.buildingList.length > 1 && this.cenoteObj.onlyRead.toString() == 'true' ? true : false;
     },
     ...mapGetters("layout", ["projectId"])
   },
@@ -127,7 +127,7 @@ export default {
   methods: {
     //获取空间信息
     getSpaceData() {
-      if (this.cenoteObj.onlyRead == 'true') {
+      if (this.cenoteObj.onlyRead.toString() == 'true') {
         let pa = {
           shaftId: this.$route.query.ShaftId
         }
@@ -171,7 +171,7 @@ export default {
     },
     //默认显示默认分区,无默认分区显示第一个分区
     showDefaultSpace() {
-      if (this.spaceList.length && this.cenoteObj.onlyRead == "true") {
+      if (this.spaceList.length && this.cenoteObj.onlyRead.toString() == "true") {
         this.space = this.spaceList.find((item) => { return item.Code == "GeneralZone" }) ? ["GeneralZone"] : [this.spaceList[0].Code];
         this.ObjectType = this.space[0];
       }
@@ -186,7 +186,7 @@ export default {
     },
     //获取楼层信息
     loadBuildingData() {
-      if (this.cenoteObj.onlyRead == 'true') {
+      if (this.cenoteObj.onlyRead.toString() == 'true') {
         let param = {
           ShaftId: this.$route.query.ShaftId,
           ObjectType: this.ObjectType

+ 1 - 1
src/views/ledger/facility/batchPoint.vue

@@ -525,7 +525,7 @@ export default {
       this.canvasLoading = false;
       if (res == 'error') {
         this.FloorMap = '';
-        this.$message.warning('数据解析异常');
+        console.log('数据解析异常');
         return;
       }
       this.view.scene = this.scene;

+ 1 - 1
src/views/ledger/rentlist/manageTenantZone.vue

@@ -389,7 +389,7 @@ export default {
         this.canvasLoading = true;
         this.scene.loadUrl(`/image-service/common/file_get?systemId=revit&key=${floorMap}`).then(res => {
           if (res == 'error') {
-            this.$message.warning('数据解析异常');
+            console.log('数据解析异常');
             this.hasMap = false;
             this.canvasLoading = false;
             return;

+ 1 - 1
src/views/model/report/deleted.vue

@@ -247,7 +247,7 @@ export default {
         that.canvasLoading = false;
         if (res == 'error') {
           this.FloorMap = '';
-          this.$message.warning('数据解析异常');
+          console.log('数据解析异常');
           return;
         }
         let modelID = can[this.i].dataset.modelid

+ 1 - 1
src/views/model/report/supplement.vue

@@ -214,7 +214,7 @@ export default {
         that.canvasLoading = false;
         if (res == 'error') {
           this.FloorMap = '';
-          this.$message.warning('数据解析异常');
+          console.log('数据解析异常');
           return;
         }
         let modelID = can[this.i].dataset.modelid

+ 1 - 1
src/views/ready/buildfloor/drawGraphy/drawFloor.vue

@@ -109,7 +109,7 @@ export default {
       this.canvasLoading = false;
       if (res == 'error') {
         this.FloorMap = '';
-        this.$message.warning('数据解析异常');
+        console.log('数据解析异常');
         return;
       }
       if (res.Result == 'failure') {

+ 1 - 1
src/views/relation/overview/detail/index.vue

@@ -187,7 +187,7 @@ export default {
         this.canvasLoading = false;
         if (res == 'error') {
           this.FloorMap = '';
-          this.$message.warning('数据解析异常');
+          console.log('数据解析异常');
           return;
         }
         this.view.scene = this.scene;

+ 1 - 1
src/views/screen/splitscreen/spaceledger/index.vue

@@ -276,7 +276,7 @@
           that.canvasLoading = false;
           if (res == 'error') {
             this.FloorMap = '';
-            this.$message.warning('数据解析异常');
+            console.log('数据解析异常');
             return;
           }
           that.view.scene = that.scene;