派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-21 bb588bddeaee7ea617f8ad019ba9f5e1825d9e27
src/components/panel/topicSearch/SewersSelect/AnalysisChoose/Flow.vue
@@ -175,7 +175,11 @@
        const geom = JSON.parse(itm.geomText)
        const points = []
        geom.coordinates.forEach((it, id) => {
          points.push(it.reverse())
          const item = it.reverse()
          if (it.length > 2) {
            item.shift()
          }
          points.push(item)
        })
        linkPipe.push(points)
      })
@@ -203,6 +207,11 @@
        this.currentSelectResultLine.remove()
        this.currentSelectResultLine = null
      }
      if (this.linkPipeline.length > 0) {
        this.linkPipeline.forEach((itm, idx) => {
          itm.remove()
        })
      }
    }
  }
}