This commit is contained in:
yanran200730
2022-07-02 16:17:55 +08:00
parent 54f0d57b37
commit 58022d5154
7 changed files with 230 additions and 123 deletions

View File

@@ -15,7 +15,7 @@
</div>
<div class="gird-item" v-if="tertiaryGrid.length">
<h2>三级网格</h2>
<div class="gird-item__wrapper level3" @click="isShowVillage = true">
<div class="gird-item__wrapper level3" @click="getSubInfo">
<h3>专属网格</h3>
<p>{{ tertiaryGrid.length }}</p>
</div>
@@ -42,12 +42,12 @@
<scroll-view scroll-y class="street-wrapper">
<h2 class="title">数据统计</h2>
<div class="street-item__wrapper">
<div class="street-item" v-for="(item, index) in 9" :key="index">
<div class="street-item" v-for="(item, index) in tertiaryInfo" :key="index">
<div class="left">
<i></i>
<h2>网格数</h2>
<h2>{{ index }}</h2>
</div>
<span>12</span>
<span>{{ item }}</span>
</div>
</div>
<h2 class="title">网格列表</h2>
@@ -75,7 +75,8 @@
isShowVillage: false,
topGrid: [],
secondaryGrid: [],
tertiaryGrid: []
tertiaryGrid: [],
tertiaryInfo: {}
}
},
@@ -94,6 +95,16 @@
})
},
getSubInfo () {
this.$loading()
this.$http.post(`/api/appgirdinfo/girdInfoCountByThree`).then(res => {
if (res.code === 0) {
this.isShowVillage = true
this.tertiaryInfo = res.data
}
})
},
getInfo () {
this.$http.post(`/api/appgirdinfo/listAllByTop`).then(res => {
if (res.code === 0) {