29356
This commit is contained in:
@@ -48,76 +48,92 @@ export default {
|
||||
this.pass = o.pass,
|
||||
this.id = o.id
|
||||
this.status = o.status
|
||||
console.log(o);
|
||||
},
|
||||
onShow() {
|
||||
document.title = this.status == 0? '申请纳入监测': '申请解除风险'
|
||||
},
|
||||
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('请输入备注说明')
|
||||
// }
|
||||
if(this.file.length > 0) {
|
||||
var files = []
|
||||
this.file.map(item => {
|
||||
files.push(item.id)
|
||||
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)
|
||||
}
|
||||
})
|
||||
this.filesList = files.join(',')
|
||||
}
|
||||
} else {
|
||||
if(this.status == '0') {
|
||||
if(!this.riskType) {
|
||||
return this.$u.toast('请选择监测对象类型')
|
||||
}
|
||||
}
|
||||
if(this.status == '1') {
|
||||
if(!this.riskEliminationMethod) {
|
||||
return this.$u.toast('请选择风险消除方式')
|
||||
}
|
||||
}
|
||||
if(this.file.length > 0) {
|
||||
var files = []
|
||||
this.file.map(item => {
|
||||
files.push(item.id)
|
||||
})
|
||||
this.filesList = files.join(',')
|
||||
}
|
||||
|
||||
if(this.status == 0) { // 纳入监测
|
||||
this.$http.post(`/app/apppreventionreturntopoverty/examine`, null,{
|
||||
params: {
|
||||
pass: this.pass,
|
||||
id: this.id,
|
||||
riskType: this.riskType,
|
||||
opinion: this.opinion,
|
||||
files: this.filesList,
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$u.toast('提交成功')
|
||||
uni.$emit('reload')
|
||||
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)
|
||||
}
|
||||
})
|
||||
if(this.status == 0) { // 纳入监测
|
||||
this.$http.post(`/app/apppreventionreturntopoverty/examine`, null,{
|
||||
params: {
|
||||
// pass: this.pass,
|
||||
id: this.id,
|
||||
riskType: this.riskType,
|
||||
opinion: this.opinion,
|
||||
files: this.filesList,
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$u.toast('提交成功')
|
||||
uni.$emit('reload')
|
||||
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" v-if="info">
|
||||
<div class="user-info" v-if="info.length">
|
||||
<div class="title">审核信息</div>
|
||||
<div class="info">
|
||||
<div class="item">
|
||||
|
||||
Reference in New Issue
Block a user