地图
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user