报错
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')
|
||||
@@ -90,6 +111,7 @@ export default {
|
||||
points: e.points.map(p => [p.lng, p.lat])
|
||||
}
|
||||
})
|
||||
|
||||
arr.length > 0 && this.renderGridMap(arr)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<p>{{item.girdName}} </p>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" v-if="!dataInfo.parentGirdMembers.length && !dataInfo.girdMembers.length"></AiEmpty>
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" v-if="dataInfo.parentGirdMembers && !dataInfo.parentGirdMembers.length && !dataInfo.girdMembers.length"></AiEmpty>
|
||||
<div class="pad-b112"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -83,7 +83,7 @@ export default {
|
||||
computed: {},
|
||||
watch: {},
|
||||
onLoad() {},
|
||||
mounted() {
|
||||
created() {
|
||||
this.$dict.load('girdType', 'girdLevel').then(() => {
|
||||
this.isGirdUser()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user