This commit is contained in:
yanran200730
2022-01-14 18:03:17 +08:00
parent a71cf23522
commit ff8058418f
3 changed files with 25 additions and 3 deletions

View File

@@ -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)
}
})