地图
This commit is contained in:
@@ -86,7 +86,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getGridInfo (id) {
|
getGridInfo (id) {
|
||||||
|
this.$loading()
|
||||||
this.$http.post(`/app/appgirdinfo/queryDetailById?id=${id}`).then((res) => {
|
this.$http.post(`/app/appgirdinfo/queryDetailById?id=${id}`).then((res) => {
|
||||||
|
this.$hideLoading()
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.form = res.data
|
this.form = res.data
|
||||||
|
|
||||||
@@ -94,6 +96,8 @@ export default {
|
|||||||
this.show = true
|
this.show = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.$hideLoading()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -129,6 +133,12 @@ export default {
|
|||||||
const id = e.target.id
|
const id = e.target.id
|
||||||
this.getGridInfo(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) => {
|
bounds = bounds.reduce((a, b) => {
|
||||||
return fitBounds([
|
return fitBounds([
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ export default {
|
|||||||
center: new TMap.LatLng(this.config.lat, this.config.lng),
|
center: new TMap.LatLng(this.config.lat, this.config.lng),
|
||||||
...this.ops
|
...this.ops
|
||||||
})
|
})
|
||||||
|
console.log(TMap)
|
||||||
this.$emit('loaded')
|
this.$emit('loaded')
|
||||||
this.$emit('update:lib', TMap)
|
this.$emit('update:lib', TMap)
|
||||||
this.$emit('update:map', this.tmap)
|
this.$emit('update:map', this.tmap)
|
||||||
|
|||||||
Reference in New Issue
Block a user