社区管理

This commit is contained in:
liuye
2022-11-25 13:23:36 +08:00
parent 49b6c428b3
commit fbfcc47702
5 changed files with 176 additions and 14 deletions

View File

@@ -218,6 +218,9 @@ export default {
if(!this.form.startAreaId) {
return this.$u.toast('请选择出发地')
}
if (this.form.startAreaId.substr(4,this.form.startAreaId.length - 4) === '00000000') {
return this.$toast('出发地必须选至县级及以下')
}
if(!this.form.arriveTime) {
return this.$u.toast('请选择抵平时间')
}
@@ -287,10 +290,20 @@ export default {
this.form[this.selectFormName] = e[0].value
},
areaSelectStart(e) {
this.startAreaId = e
this.form.startAreaId = e
console.log(11)
this.getRiskLevel(e)
},
areaSelectArrive(e) {
this.arriveAreaId = e
this.form.arriveAreaId = e
},
// 获取风险等级
getRiskLevel(areaId) {
this.$http.post(`/app/appepidemicpreventionriskarea/queryAreaRiskLevel?areaId=${areaId}`).then(res=> {
if(res?.data) {
this.form.riskLevel = res.data
}
})
},
idNumberChange(e) {
if(e.detail.value.length) {
@@ -299,7 +312,7 @@ export default {
},
// 获取个人信息
getOwnerInfo(idNumber) {
this.$instance.post(`/app/appepidemicpreventionregisterinfo/queryDetailByIdNumber`, null, {
this.$http.post(`/app/appepidemicpreventionregisterinfo/queryDetailByIdNumber`, null, {
params: {
idNumber: idNumber,
}