报错
This commit is contained in:
@@ -79,6 +79,27 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getLeafNodes() {
|
||||
// this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
||||
// if (res.code == 0) {
|
||||
// if (res.data.checkType != '0') {
|
||||
// this.$http.post(`/app/appgirdinfo/queryGirdMemberGirdsById?id=${res.data.appGirdInfo.id}`).then((res) => {
|
||||
// if (res?.data) {
|
||||
// this.treeList = res.data.filter(v => v.girdLevel === '2')
|
||||
|
||||
// const arr = res.data.filter(v => v.points).map(e => {
|
||||
// return {
|
||||
// id: e.id,
|
||||
// girdName: e.girdName,
|
||||
// points: e.points.map(p => [p.lng, p.lat])
|
||||
// }
|
||||
// })
|
||||
|
||||
// arr.length > 0 && this.renderGridMap(arr)
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
this.$http.post(`/app/appgirdinfo/queryGirdMemberGirdsById`).then((res) => {
|
||||
if (res?.data) {
|
||||
this.treeList = res.data.filter(v => v.girdLevel === '2')
|
||||
@@ -88,8 +109,9 @@ export default {
|
||||
id: e.id,
|
||||
girdName: e.girdName,
|
||||
points: e.points.map(p => [p.lng, p.lat])
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
arr.length > 0 && this.renderGridMap(arr)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user