This commit is contained in:
shijingjing
2022-07-06 09:54:19 +08:00
parent 6858c11ab5
commit aeb5e58efa

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="MonitorAddView"> <div class="MonitorAddView">
<div class="containter"> <div class="containter">
<div class="type" v-if="status == 3 || status == 4 || status == 0"> <div class="type" v-if="status == 3 || status == 4 || status == 0 || status == 5">
<div><span style="color: #FF4466">*</span>风险因素</div> <div><span style="color: #FF4466">*</span>风险因素</div>
<div> <div>
<AiSelect dict="fpRiskType" v-model="riskType" /> <AiSelect dict="fpRiskType" v-model="riskType" />
@@ -50,7 +50,7 @@ export default {
this.status = o.status this.status = o.status
}, },
onShow() { onShow() {
document.title = (this.status == 3 || this.status == 4 ) && this.pass ==''? '申请纳入监测': this.status == 1 && this.pass ==''? '申请解除风险' : this.status == 1 && this.pass ==1? '解除风险': (this.status == 4 || this.status==3) && this.pass == 1? '纳入监测':'' document.title = (this.status == 3 || this.status == 4 || this.status==5) && this.pass ==''? '申请纳入监测': this.status == 1 && this.pass ==''? '申请解除风险' : this.status == 1 && this.pass ==1? '解除风险': (this.status == 4 || this.status==3 || this.status==5) && this.pass == 1? '纳入监测':''
}, },
methods: { methods: {
submit() { submit() {
@@ -63,14 +63,14 @@ export default {
riskType: this.riskType, riskType: this.riskType,
riskEliminationMethod: this.riskEliminationMethod, riskEliminationMethod: this.riskEliminationMethod,
} }
// 0待纳入、1监测中、2待解除、3已解除、4已驳回 // 0待纳入、1监测中、2待解除、3已解除、4已驳回、5已脱贫
if(this.pass == 1) { // 网格长 if(this.pass == 1) { // 网格长
if(this.status == 1) { if(this.status == 1) {
if(!this.riskEliminationMethod) { if(!this.riskEliminationMethod) {
return this.$u.toast('请选择风险消除方式') return this.$u.toast('请选择风险消除方式')
} }
url = '/app/apppreventionreturntopoverty/relieve' // 解除 url = '/app/apppreventionreturntopoverty/relieve' // 解除
} else if (this.status == 3 || this.status == 4) { } else if (this.status == 3 || this.status == 4 || this.status == 5) {
if(!this.riskType) { if(!this.riskType) {
return this.$u.toast('请选择风险因素') return this.$u.toast('请选择风险因素')
} }
@@ -78,7 +78,7 @@ export default {
} }
} }
if (this.pass == '') { // 网格员 if (this.pass == '') { // 网格员
if(this.status == '0' || this.status == '3' || this.status == '4') { if(this.status == '0' || this.status == '3' || this.status == '4' || this.status == '5') {
if(!this.riskType) { if(!this.riskType) {
return this.$u.toast('请选择风险因素') return this.$u.toast('请选择风险因素')
} }
@@ -96,7 +96,7 @@ export default {
this.filesList = files.join(',') this.filesList = files.join(',')
} }
if(this.status == 0 || this.status == 3 || this.status == 4) { if(this.status == 0 || this.status == 3 || this.status == 4 || this.status == 5) {
url = `/app/apppreventionreturntopoverty/examine` // 纳入监测申请 url = `/app/apppreventionreturntopoverty/examine` // 纳入监测申请
} else { } else {
url = `/app/apppreventionreturntopoverty/relieve` // 消除申请 url = `/app/apppreventionreturntopoverty/relieve` // 消除申请