This commit is contained in:
shijingjing
2022-04-28 18:10:44 +08:00
parent 99f9962338
commit 292c557180
3 changed files with 27 additions and 35 deletions

View File

@@ -113,7 +113,7 @@
</div> </div>
<!-- 风险解除 --> <!-- 风险解除 -->
<!-- v-if="info.status == 3" --> <!-- v-if="info.status == 3" -->
<div class="item-wrapper"> <div class="item-wrapper" v-if="info.status == 3">
<div class="item-header"> <div class="item-header">
<div class="left"> <div class="left">
<h2>风险解除跟踪</h2> <h2>风险解除跟踪</h2>

View File

@@ -93,9 +93,9 @@ export default {
} }
} }
let fromData = new FormData() var formData = new FormData()
for (let key in params) { for (let key in params) {
fromData.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) {

View File

@@ -112,42 +112,34 @@ export default {
current: img current: img
}) })
}, },
submit() { submit() {
if (this.type == 0) { // 纳入审核 if (this.type == 0) { // 纳入审核
this.$http.post(`/app/apppreventionreturntopoverty/examine`,null,{ var url = `/app/apppreventionreturntopoverty/examine`
params: { var params = {
...this.form, ...this.form,
id: this.id, id: this.id,
} }
}).then(res => {
if (res.code == 0) {
this.$u.toast('提交成功')
uni.$emit('reload')
setTimeout(() =>{
uni.navigateBack({
delta: 2
})
},600)
}
})
} else if (this.type == 1){ // 解除审核 } else if (this.type == 1){ // 解除审核
this.$http.post(`/app/apppreventionreturntopoverty/relieve`,null,{ url = `/app/apppreventionreturntopoverty/relieve`
params: {
...this.form,
id: this.id,
}
}).then(res => {
if (res.code == 0) {
this.$u.toast('提交成功')
uni.$emit('reload')
setTimeout(() =>{
uni.navigateBack({
delta: 2
})
},600)
}
})
} }
var formData = new FormData()
for (let key in params) {
formData.append(key, params[key])
}
this.$http.post(url,formData).then(res => {
if (res.code == 0) {
this.$u.toast('提交成功')
uni.$emit('reload')
setTimeout(() =>{
uni.navigateBack({
delta: 2
})
},600)
}
})
} }
}, },
} }