浏览代码

隐藏功能按钮

haojianlong 5 年之前
父节点
当前提交
3d334065fb
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/relation/overview/detail/index.vue

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

@@ -16,7 +16,7 @@
           </el-option>
         </el-select>
       </el-col>
-      <el-col :span="0.5" style="float:right;" v-show='1'>
+      <el-col :span="0.5" style="float:right;" v-show='0'>
         <span style="margin-right:10px;">当前状态 {{description}}</span>
         <el-button @click="cancel">取消</el-button>
         <el-button @click="removeRelation">清除</el-button>
@@ -224,7 +224,9 @@ export default {
       let scale = this.view.scale;
       this.view.scaleByPoint(val / scale, this.canvasWidth / 2, this.canvasHeight / 2);
     },
-    goback() { },
+    goback() {
+      this.$router.push({ name: 'overView' })
+    },
     // 获取项目下建筑
     getBuilding() {
       let pa = {
@@ -265,7 +267,6 @@ export default {
       let pa = {
         Filters: `FloorId='${this.buildFloor[1]}';GraphType='${this.type}';ZoneType='${this.zoneType}'`
       }
-      this.canvasLoading = true;
       querySpaceNeighborhood(pa, res => {
         let tempArr = res.Content.map(t => {
           let p1 = t.LocationOne.split(',');
@@ -327,7 +328,6 @@ export default {
         this.scene.click(this, this.canvasClick)
         // 绘制关系
         this.getRelations();
-        this.canvasLoading = false;
       })
     },
     // 创建邻接关系