无等级网格版合并
This commit is contained in:
@@ -8,15 +8,9 @@
|
||||
<div class="area-select">
|
||||
<div class="select-content">
|
||||
<div class="area-content fill">
|
||||
<AiPagePicker type="gird" isMyGird @select="handleGridSelect">
|
||||
<AiPagePicker type="custom" @select="handleGridSelect" :ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
|
||||
<AiMore v-model="gridName" placeholder="选择网格"/>
|
||||
</AiPagePicker>
|
||||
<!-- <AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName">-->
|
||||
<!-- <img src="./img/local-icon.png" alt=""/>-->
|
||||
<!-- <span class="label" v-if="areaName">{{ areaName }}</span>-->
|
||||
<!-- <span v-else>请选择</span>-->
|
||||
<!-- <u-icon name="arrow-down" color="#666" size="24"/>-->
|
||||
<!-- </AiAreaPicker>-->
|
||||
</div>
|
||||
<div class="search-input" v-if="tabIndex">
|
||||
<img src="./img/search-icon.png" alt=""/>
|
||||
@@ -132,8 +126,8 @@ export default {
|
||||
this.$forceUpdate()
|
||||
},
|
||||
handleGridSelect(e) {
|
||||
this.gridName = e?.[0]?.girdName
|
||||
this.search.girdId = e?.[0]?.id
|
||||
this.gridName = e?.girdName
|
||||
this.search.girdId = e?.id
|
||||
this.getDatas()
|
||||
},
|
||||
areaSelect(e) {
|
||||
@@ -149,13 +143,7 @@ export default {
|
||||
params: {...this.search, type: 0, range: 0}
|
||||
}).then((res) => {
|
||||
if (res?.data) {
|
||||
for (let i in res.data) {
|
||||
let obj = {
|
||||
label: i,
|
||||
value: res.data[i],
|
||||
}
|
||||
this.statisticsList.push(obj)
|
||||
}
|
||||
this.statisticsList = Object.keys(res.data).map((label, i, arr) => ({label, value: res.data[label]}))
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -165,13 +153,7 @@ export default {
|
||||
params: {...this.search, type: 0, range: 1}
|
||||
}).then((res) => {
|
||||
if (res?.data) {
|
||||
for (let i in res.data) {
|
||||
let obj = {
|
||||
label: i,
|
||||
value: res.data[i],
|
||||
}
|
||||
this.statisticsListMon.push(obj)
|
||||
}
|
||||
this.statisticsListMon = Object.keys(res.data).map((label, i, arr) => ({label, value: res.data[label]}))
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user