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