cropAreaId
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<u-icon name="close-circle" color="#666" size="34" style="margin-left: 4px" v-else @click="clearDate" />
|
||||
</div>
|
||||
<div class="area-select">
|
||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
||||
<AiAreaPicker v-model="areaId" :areaId="cropAreaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
|
||||
<span v-if="areaName" class="area-name">{{ areaName }}</span>
|
||||
<span v-else>地区选择</span>
|
||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
|
||||
@@ -86,6 +86,7 @@ export default {
|
||||
backVal: 0,
|
||||
pointVal: 0,
|
||||
firstGet: true, //第一次请求
|
||||
cropAreaId: ''
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
@@ -93,11 +94,18 @@ export default {
|
||||
document.title = '排查统计'
|
||||
},
|
||||
onLoad() {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.getData()
|
||||
this.getCropAreaId()
|
||||
},
|
||||
methods: {
|
||||
getCropAreaId() {
|
||||
this.$http.post(`/app/appdvcpconfig/getCorpArea`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.areaId = res.data
|
||||
this.cropAreaId = res.data
|
||||
this.getData()
|
||||
}
|
||||
})
|
||||
},
|
||||
areaSelect(e) {
|
||||
this.areaId = e
|
||||
this.getData()
|
||||
|
||||
Reference in New Issue
Block a user