xieqy há 3 anos atrás
pai
commit
6e037dbfd5

+ 6 - 6
src/views/groupPage/districtPageModules/customTools/infoComponents/pipeInfo.vue

@@ -52,24 +52,24 @@ export default class pipeInfo extends Vue {
   isExist = null
   isShow = false
   displayData = {
-    name: '',
-    roadName: '',
-    code: '',
+    name: '',
+    roadName: '',
+    code: '',
     design: {
-      name: '',
+      name: '',
       total: 0,
       pipe: 0,
       node: 0
     },
     spv: {
-      name: '',
+      name: '',
       pipeLen: 0,
       times: 0,
       part: 0,
       pictures: 0
     },
     con: {
-      name: '',
+      name: '',
       pipeLen: 0,
       times: 0,
       part: 0,

+ 6 - 1
src/views/groupPage/districtPageModules/customTools/pbsTree.vue

@@ -184,6 +184,7 @@ export default {
     handleNodeClick(data) {
       this.tipShow = false
       this.viewer = window.viewer
+      this.clearWall()
       if (!this.viewer) return
       if (!data.longitude || !data.latitude) return
       const position = [Number(data.longitude), Number(data.latitude)]
@@ -398,11 +399,15 @@ export default {
     //清除搜索结果
     clearInput() {
       this.treeData = this.fatherNodesData
+    },
+    //清除范围显示
+    clearWall() {
+      if (this.viewer.entities.getById('dynamicWall')) this.viewer.entities.removeById('dynamicWall')
     }
   },
   beforeDestroy() {
     if (this.viewer) {
-      if (this.viewer.entities.getById('dynamicWall')) this.viewer.entities.removeById('dynamicWall')
+      this.clearWall()
       if (this.prjInfo) this.prjInfo.remove()
     }
   }

+ 0 - 5
src/views/groupPage/districtPageModules/customTools/projectPipeSpeedInfoCheck.vue

@@ -69,7 +69,6 @@ const SuperMap = (window as any).SuperMap
 const Cesium = (window as any).Cesium
 let gCustomDataSource = null
 let gPrimitiveCollection = null
-let gPpostUpdate = undefined
 let gHandler = null
 //进度查看模块
 @Component({ name: 'ProjectPipeSpeedInfoCheck' })
@@ -506,10 +505,6 @@ export default class ProjectPipeSpeedInfoCheck extends Vue {
     this.viewer.scene.layers.releaseSelection()
     this.removeLabels()
     this.clearPrimitives()
-    // if (gPpostUpdate) {
-    //   gPpostUpdate()
-    //   gPpostUpdate = undefined
-    // }
   }
   //该方法用于清除entity label
   removeLabels() {