This commit is contained in:
shijingjing
2022-04-27 15:07:38 +08:00
parent 1725cb78ef
commit b0b7e4b9f2

View File

@@ -1,6 +1,6 @@
<template>
<div class="form">
<div class="help">
<div class="help" v-if="type == 1">
<div><span style="color: #FF4466;">*</span>帮扶类型</div>
<AiSelect dict="fpAssistanceMeasures" v-model="operationDesc"></AiSelect>
</div>
@@ -68,12 +68,19 @@ export default {
},
submit() {
if(this.flag) return
if (!this.operationDesc) {
return this.$u.toast('请选择帮扶类型')
}
if (!this.detail) {
return this.$u.toast('请输入帮扶内容')
if(this.type == 1) {
if (!this.operationDesc) {
return this.$u.toast('请选择帮扶类型')
}
if (!this.detail) {
return this.$u.toast('请输入帮扶内容')
}
} else {
if (!this.detail) {
return this.$u.toast('请输入走访内容')
}
}
this.flag = true
this.$http.post('/app/apppreventionreturntopovertylog/addOrUpdate', {
detail: this.detail,