This commit is contained in:
shijingjing
2022-04-29 15:52:11 +08:00
parent ff7fda2b30
commit 455d0b2064
4 changed files with 19 additions and 11 deletions

View File

@@ -174,7 +174,7 @@
<div v-if="checkType == 2 && currIndex != 1"> <div v-if="checkType == 2 && currIndex != 1">
<div class="footer-btn" v-if="info.status == 0 && userInfo == ''"> <div class="footer-btn" v-if="info.status == 0 && userInfo != ''">
<div class="confirm-btn" @click="toRemove('您确认要将此居民纳入监测对象吗?', 1,0)">纳入监测审核</div> <div class="confirm-btn" @click="toRemove('您确认要将此居民纳入监测对象吗?', 1,0)">纳入监测审核</div>
</div> </div>
@@ -186,7 +186,7 @@
<div class="confirm-btn" @click="toRemove('您确认要解除此监测对象的风险吗?', 1,1)">消除风险审核</div> <div class="confirm-btn" @click="toRemove('您确认要解除此监测对象的风险吗?', 1,1)">消除风险审核</div>
</div> </div>
<div class="footer-btn" v-if="(info.status == 4 || info.status == 3 || info.status == 0) && userInfo != ''"> <div class="footer-btn" v-if="(info.status == 4 || info.status == 3) && userInfo != ''">
<div @click="del">删除人员</div> <div @click="del">删除人员</div>
<div class="confirm-btn" @click="toAddView('您确认要将此居民纳入监测对象吗?', 1)">纳入监测</div> <div class="confirm-btn" @click="toAddView('您确认要将此居民纳入监测对象吗?', 1)">纳入监测</div>
</div> </div>

View File

@@ -163,7 +163,7 @@ export default {
} }
}, },
onReachBottom() { onReachBottom() {
this.current = this.current + 1 this.current++
this.getList() this.getList()
}, },
} }

View File

@@ -61,17 +61,24 @@ export default {
files: this.filesList, files: this.filesList,
id: this.id, id: this.id,
riskType: this.riskType, riskType: this.riskType,
riskEliminationMethod: '',
} }
if(this.pass == 1) { // 网格长 if(this.pass == 1) { // 网格长
if(this.status == 1) { if(!this.riskEliminationMethod) {
return this.$u.toast('请选择风险消除方式')
}
if(this.status == 1) {
url = '/app/apppreventionreturntopoverty/relieve' // 解除 url = '/app/apppreventionreturntopoverty/relieve' // 解除
} else if (this.status == 4 || this.status == 3) { } else if (this.status == 4 || this.status == 3) {
if(!this.riskType) {
return this.$u.toast('请选择风险因素')
}
url = `/app/apppreventionreturntopoverty/examine` // 纳入监测 url = `/app/apppreventionreturntopoverty/examine` // 纳入监测
} }
} else { // 网格员 } else { // 网格员
if(this.status == '0') { if(this.status == '0') {
if(!this.riskType) { if(!this.riskType) {
return this.$u.toast('请选择监测对象类型') return this.$u.toast('请选择风险因素')
} }
} }
if(this.status == '1') { if(this.status == '1') {

View File

@@ -114,12 +114,13 @@ export default {
}, },
submit() { submit() {
var url = ''
var params = {
...this.form,
id: this.id,
}
if (this.type == 0) { // 纳入审核 if (this.type == 0) { // 纳入审核
var url = `/app/apppreventionreturntopoverty/examine` url = `/app/apppreventionreturntopoverty/examine`
var params = {
...this.form,
id: this.id,
}
} else if (this.type == 1){ // 解除审核 } else if (this.type == 1){ // 解除审核
url = `/app/apppreventionreturntopoverty/relieve` url = `/app/apppreventionreturntopoverty/relieve`
} }