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()
|
||||
|
||||
@@ -99,8 +99,8 @@ export default {
|
||||
},
|
||||
],
|
||||
currentTabs: 0,
|
||||
userList: [],
|
||||
data: [{name: '123'}],
|
||||
totalInfo: {},
|
||||
data: [],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -110,13 +110,13 @@ export default {
|
||||
onLoad() {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
// this.getList()
|
||||
// this.getUserList()
|
||||
this.getList()
|
||||
this.getTotal()
|
||||
|
||||
uni.$on('updateLists', () => {
|
||||
this.current = 1
|
||||
this.getList()
|
||||
this.getUserList()
|
||||
this.getTotal()
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
@@ -125,7 +125,7 @@ export default {
|
||||
methods: {
|
||||
getList() {
|
||||
this.$http
|
||||
.post('/app/appepidemicreportmember/list', null, {
|
||||
.post('/app/appepidemicpreventionhealthreportinfo/list', null, {
|
||||
params: { size: this.size, current: this.current, status: this.currentTabs == 1 ? '0' : '', areaId: this.areaId, name: this.keyword },
|
||||
})
|
||||
.then((res) => {
|
||||
@@ -142,10 +142,10 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
getUserList() {
|
||||
this.$http.post(`/app/appepidemicreportmember/statistic?areaId=${this.areaId}`).then((res) => {
|
||||
getTotal() {
|
||||
this.$http.post(`/app/appepidemicpreventionhealthreportinfo/listStatistics?areaId=${this.areaId}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.userList = res.data
|
||||
// this.userList = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -159,7 +159,7 @@ export default {
|
||||
areaSelect(e) {
|
||||
this.areaId = e
|
||||
this.getList()
|
||||
this.getUserList()
|
||||
this.getTotal()
|
||||
},
|
||||
|
||||
change(index) {
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<div class="value">{{$dict.getLabel('EP_registerPersonType', info.type)}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line-bg"></div>
|
||||
<div class="info" v-if="info.riskDisposalList.length">
|
||||
<div class="title">异常情况记录</div>
|
||||
<div class="error-list">
|
||||
@@ -303,5 +304,10 @@ export default {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
.line-bg{
|
||||
width: 100%;
|
||||
height: 24px;
|
||||
background-color: #F3F6F9;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user