This commit is contained in:
shijingjing
2022-04-27 15:28:44 +08:00
parent b0b7e4b9f2
commit a733f00820
2 changed files with 78 additions and 62 deletions

View File

@@ -48,13 +48,32 @@ export default {
this.pass = o.pass, this.pass = o.pass,
this.id = o.id this.id = o.id
this.status = o.status this.status = o.status
console.log(o);
}, },
onShow() { onShow() {
document.title = this.status == 0? '申请纳入监测': '申请解除风险' document.title = this.status == 0? '申请纳入监测': '申请解除风险'
}, },
methods: { methods: {
submit() { submit() {
if(this.pass != '') {
this.$http.post(`/app/apppreventionreturntopoverty/relieve`,null,{
params: {
pass: this.pass,
opinion: this.opinion,
files: this.filesList,
id: this.id,
}
}).then(res => {
if (res.code == 0) {
this.$u.toast('提交成功')
uni.$emit('reload')
setTimeout(() =>{
uni.navigateBack({
delta: 2
})
},600)
}
})
} else {
if(this.status == '0') { if(this.status == '0') {
if(!this.riskType) { if(!this.riskType) {
return this.$u.toast('请选择监测对象类型') return this.$u.toast('请选择监测对象类型')
@@ -65,9 +84,6 @@ export default {
return this.$u.toast('请选择风险消除方式') return this.$u.toast('请选择风险消除方式')
} }
} }
// if(!this.opinion) {
// return this.$u.toast('请输入备注说明')
// }
if(this.file.length > 0) { if(this.file.length > 0) {
var files = [] var files = []
this.file.map(item => { this.file.map(item => {
@@ -79,7 +95,7 @@ export default {
if(this.status == 0) { // 纳入监测 if(this.status == 0) { // 纳入监测
this.$http.post(`/app/apppreventionreturntopoverty/examine`, null,{ this.$http.post(`/app/apppreventionreturntopoverty/examine`, null,{
params: { params: {
pass: this.pass, // pass: this.pass,
id: this.id, id: this.id,
riskType: this.riskType, riskType: this.riskType,
opinion: this.opinion, opinion: this.opinion,
@@ -99,7 +115,7 @@ export default {
} else { // 驳回 } else { // 驳回
this.$http.post(`/app/apppreventionreturntopoverty/relieve`, null,{ this.$http.post(`/app/apppreventionreturntopoverty/relieve`, null,{
params: { params: {
pass: this.pass, // pass: this.pass,
id: this.id, id: this.id,
riskEliminationMethod: this.riskEliminationMethod, riskEliminationMethod: this.riskEliminationMethod,
opinion: this.opinion, opinion: this.opinion,
@@ -117,7 +133,7 @@ export default {
} }
}) })
} }
}
} }
}, },
} }

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="MonitorRemoveView"> <div class="MonitorRemoveView">
<div class="user-info" v-if="info"> <div class="user-info" v-if="info.length">
<div class="title">审核信息</div> <div class="title">审核信息</div>
<div class="info"> <div class="info">
<div class="item"> <div class="item">