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')
@@ -90,6 +111,7 @@ export default {
points: e.points.map(p => [p.lng, p.lat])
}
})
arr.length > 0 && this.renderGridMap(arr)
}
})

View File

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

View File

@@ -83,7 +83,7 @@ export default {
computed: {},
watch: {},
onLoad() {},
mounted() {
created() {
this.$dict.load('girdType', 'girdLevel').then(() => {
this.isGirdUser()
})