BUG 30883

This commit is contained in:
aixianling
2022-08-17 15:18:06 +08:00
parent 115bde1294
commit 916a28ddb9
2 changed files with 7 additions and 14 deletions

View File

@@ -37,7 +37,7 @@
action="/admin/file/add2"></AiUploader>
</AiItem>
</AiGroup>
<div class="btn" @click="submit">提交</div>
<div class="btn" @click="$u.debounce(submit)">提交</div>
</div>
</template>
@@ -45,17 +45,10 @@
export default {
data() {
return {
name: null,
areaId: null,
areaName: null,
detail: '',
pid: '',
files: [],
id: '',
type: '',
operationDesc: '',
flag: false,
form: {detail: ""}
form: {detail: "", files: []}
}
},
computed: {
@@ -88,7 +81,6 @@ export default {
})
},
submit() {
if (this.flag) return
if (this.type == 1) {
if (!this.form.operationDesc) {
return this.$u.toast('请选择帮扶类型')
@@ -105,7 +97,6 @@ export default {
return this.$u.toast('请输入走访内容')
}
}
this.flag = true
const {form, type, pid} = this
this.$http.post('/app/apppreventionreturntopovertylog/addOrUpdate', {...form, type, pid}).then(res => {
if (res.code == 0) {