This commit is contained in:
yanran200730
2022-01-14 14:45:55 +08:00
parent 579703112f
commit 8a4ca75e01
2 changed files with 11 additions and 0 deletions

View File

@@ -86,7 +86,9 @@ export default {
},
getGridInfo (id) {
this.$loading()
this.$http.post(`/app/appgirdinfo/queryDetailById?id=${id}`).then((res) => {
this.$hideLoading()
if (res?.data) {
this.form = res.data
@@ -94,6 +96,8 @@ export default {
this.show = true
})
}
}).catch(() => {
this.$hideLoading()
})
},
@@ -129,6 +133,12 @@ export default {
const id = e.target.id
this.getGridInfo(id)
})
const points = path.points.map(e => new TMap.LatLng(e[1], e[0]))
// console.log(TMap)
// var position = TMap.geometry.computeCentroid(points)
})
bounds = bounds.reduce((a, b) => {
return fitBounds([

View File

@@ -57,6 +57,7 @@ export default {
center: new TMap.LatLng(this.config.lat, this.config.lng),
...this.ops
})
console.log(TMap)
this.$emit('loaded')
this.$emit('update:lib', TMap)
this.$emit('update:map', this.tmap)