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: { methods: {
getLeafNodes() { 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) => { this.$http.post(`/app/appgirdinfo/queryGirdMemberGirdsById`).then((res) => {
if (res?.data) { if (res?.data) {
this.treeList = res.data.filter(v => v.girdLevel === '2') this.treeList = res.data.filter(v => v.girdLevel === '2')
@@ -90,6 +111,7 @@ export default {
points: e.points.map(p => [p.lng, p.lat]) points: e.points.map(p => [p.lng, p.lat])
} }
}) })
arr.length > 0 && this.renderGridMap(arr) arr.length > 0 && this.renderGridMap(arr)
} }
}) })

View File

@@ -29,7 +29,7 @@
<p>{{item.girdName}} </p> <p>{{item.girdName}} </p>
</div> </div>
</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 class="pad-b112"></div>
</div> </div>
</template> </template>

View File

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