纳入
This commit is contained in:
@@ -50,9 +50,16 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
if(this.status == '0') {
|
||||
if(!this.riskType) {
|
||||
return this.$u.toast('请选择监测对象类型')
|
||||
}
|
||||
}
|
||||
if(this.status == '1') {
|
||||
if(!this.riskEliminationMethod) {
|
||||
return this.$u.toast('请选择风险消除方式')
|
||||
}
|
||||
}
|
||||
if(!this.opinion) {
|
||||
return this.$u.toast('请输入备注说明')
|
||||
}
|
||||
@@ -63,6 +70,8 @@ export default {
|
||||
})
|
||||
this.filesList = files.join(',')
|
||||
}
|
||||
|
||||
if(this.status == 0) {
|
||||
this.$http.post(`/app/apppreventionreturntopoverty/examine`, null,{
|
||||
params: {
|
||||
pass: this.pass,
|
||||
@@ -74,16 +83,36 @@ export default {
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$u.toast('操作成功')
|
||||
setTimeout(() => {
|
||||
uni.$emit('reload')
|
||||
this.getInfo()
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({
|
||||
delta: 2
|
||||
})
|
||||
},600)
|
||||
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$http.post(`/app/apppreventionreturntopoverty/relieve`, null,{
|
||||
params: {
|
||||
pass: this.pass,
|
||||
id: this.id,
|
||||
riskEliminationMethod: this.riskEliminationMethod,
|
||||
opinion: this.opinion,
|
||||
files: this.filesList,
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$u.toast('操作成功')
|
||||
uni.$emit('reload')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({
|
||||
delta: 2
|
||||
})
|
||||
},600)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="MonitorRemoveView">
|
||||
<div class="user-info">
|
||||
<div class="user-info" v-if="info.length">
|
||||
<div class="title">审核信息</div>
|
||||
<div class="info">
|
||||
<div class="item">
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
this.status = o.status;
|
||||
this.form.pass = this.pass;
|
||||
},
|
||||
onShow() {
|
||||
created() {
|
||||
this.getInfo()
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user