BUG 30837

This commit is contained in:
aixianling
2022-08-17 09:03:12 +08:00
parent 3bdc3f089f
commit 1879187f01

View File

@@ -42,7 +42,7 @@
src="./components/img/check-icon.png" alt=""></div> src="./components/img/check-icon.png" alt=""></div>
<div class="check-item" :class="{active:form.pass=='0'}" @click="form.pass='0'">驳回申请<img src="./components/img/check-icon.png"/></div> <div class="check-item" :class="{active:form.pass=='0'}" @click="form.pass='0'">驳回申请<img src="./components/img/check-icon.png"/></div>
</AiItem> </AiItem>
<AiItem label="监测对象类型"> <AiItem label="监测对象类型" required>
<AiSelect v-model="form.objectType" dict="fpType"/> <AiSelect v-model="form.objectType" dict="fpType"/>
</AiItem> </AiItem>
<AiItem label="备注说明" topLabel> <AiItem label="备注说明" topLabel>
@@ -107,8 +107,10 @@ export default {
}, },
submit() { submit() {
var url = '' if (!this.form.objectType) {
var params = { return this.$u.toast('请选择监测对象类型')
}
let url = '', params = {
...this.form, ...this.form,
id: this.id, id: this.id,
} }
@@ -117,12 +119,10 @@ export default {
} else if (this.type == 1) { // 解除审核 } else if (this.type == 1) { // 解除审核
url = `/app/apppreventionreturntopoverty/relieve` url = `/app/apppreventionreturntopoverty/relieve`
} }
const formData = new FormData()
var formData = new FormData()
for (let key in params) { for (let key in params) {
formData.append(key, params[key]) formData.append(key, params[key])
} }
this.$http.post(url, formData).then(res => { this.$http.post(url, formData).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$u.toast('提交成功') this.$u.toast('提交成功')