|
|
@@ -47,19 +47,16 @@ export const mapMixin = {
|
|
|
if (psource && dsource && [...dsource.entities.values, ...psource.entities.values].length !== 0) {
|
|
|
this.setPipeAndDefectVisible()
|
|
|
} else {
|
|
|
- // this.$store.dispatch('map/mapLaoding', true)
|
|
|
getDefectData().then(res => {
|
|
|
console.log('获取数据')
|
|
|
let data = res.result
|
|
|
let { strucDefectFeatures, funcDefectFeatures, pipeDefectFeatures } = this.getFeatures(data)
|
|
|
if ([...strucDefectFeatures, ...funcDefectFeatures, ...pipeDefectFeatures].length !== 0) {
|
|
|
let lines = [...strucDefectFeatures, ...funcDefectFeatures]
|
|
|
- // this.cesiumUitl.flyTo(lines[0])
|
|
|
this.addLines(lines)
|
|
|
this.addDefects(pipeDefectFeatures)
|
|
|
this.setPipeAndDefectVisible()
|
|
|
}
|
|
|
- // this.$store.dispatch('map/mapLaoding', false)
|
|
|
})
|
|
|
}
|
|
|
},
|