社区管理

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

@@ -148,6 +148,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.travelType.length) {
return this.$u.toast('请选择出行方式')
}
@@ -197,7 +200,6 @@ export default {
if(res.data.arriveTime) {
this.form.arriveTime = res.data.arriveTime.substring(0, 16)
}
console.log(this.travelType)
}
})
},
@@ -220,10 +222,19 @@ export default {
this.form[this.selectFormName] = e[0].value
},
areaSelectStart(e) {
this.startAreaId = e
this.form.startAreaId = e
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
}
})
},
},
}