管理员申请

This commit is contained in:
shijingjing
2022-04-26 14:17:48 +08:00
parent d7cb903c17
commit 8c54d439eb
3 changed files with 192 additions and 21 deletions

View File

@@ -231,26 +231,29 @@
<div @click="del">删除人员</div>
</div>
<div class="footer-btn" v-if="info.status == 1">
<div class="confirm-btn" @click="remove('您确认要申请解除此监测对象的风险吗?', '')">申请解除风险</div>
<div class="confirm-btn" @click="toAddView('您确认要申请解除此监测对象的风险吗?', '')">申请解除风险</div>
</div>
<div class="footer-btn" v-if="info.status == null || info.status == 3">
<div class="confirm-btn" @click="toAddView('您确认要申请纳入此监测对象吗?', '')">申请纳入监测</div>
</div>
</div>
<div v-if="checkType == 2 && currIndex != 1">
<div class="footer-btn" v-if="info.status == 0">
<div @click="examine('您确认要驳回此居民的监测对象申请吗?', 0)">驳回申请</div>
<div class="confirm-btn" @click="examine('您确认要将此居民纳入监测对象吗?', 1)">纳入监测</div>
<div class="confirm-btn" @click="toRemove('您确认要将此居民纳入监测对象吗?', 1)">纳入监测</div>
</div>
<div class="footer-btn" v-if="info.status == 1">
<div @click="del">删除人员</div>
<div class="confirm-btn" @click="remove('您确认要解除此监测对象的风险吗?', 1)">消除风险</div>
<div class="confirm-btn" @click="toRemove('您确认要解除此监测对象的风险吗?', 1)">消除风险</div>
</div>
<div class="footer-btn" v-if="info.status == 2">
<div @click="examine('您确认要继续监测该居民?', 0)">继续监测</div>
<div class="confirm-btn" @click="remove('您确认要解除此监测对象的风险吗?', 1)">消除风险</div>
<div class="confirm-btn" @click="toRemove('您确认要解除此监测对象的风险吗?', 1)">消除风险</div>
</div>
<div class="footer-btn" v-if="info.status == 3">
<div @click="del">删除人员</div>
<div class="confirm-btn" @click="examine('您确认要将此居民纳入监测对象吗?', 1)">纳入监测</div>
<div class="confirm-btn" @click="toRemove('您确认要将此居民纳入监测对象吗?', 1)">纳入监测</div>
</div>
<div class="footer-btn" v-if="info.status == 4">
<div @click="del">删除人员</div>
@@ -432,15 +435,18 @@ export default {
})
},
examine(text, pass) {
toAddView(text, pass) {
// console.log(111);
this.$confirm('', text).then(() => {
this.$http.post(`/app/apppreventionreturntopoverty/examine?id=${this.id}&pass=${pass}`).then(res => {
if (res.code === 0) {
this.$u.toast('操作成功')
uni.$emit('reload')
this.getInfo()
}
})
uni.navigateTo({url: `./MonitorAddView?pass=${pass}&id=${this.info.id}&status=${this.info.status}`})
// console.log(222);
// this.$http.post(`/app/apppreventionreturntopoverty/examine?id=${this.id}&pass=${pass}`).then(res => {
// if (res.code === 0) {
// this.$u.toast('操作成功')
// uni.$emit('reload')
// this.getInfo()
// }
// })
})
},
@@ -458,15 +464,16 @@ export default {
})
},
remove(text, pass) {
toRemove(text, pass) {
this.$confirm('', text).then(() => {
this.$http.post(`/app/apppreventionreturntopoverty/relieve?id=${this.id}&pass=${pass}`).then(res => {
if (res.code === 0) {
this.$u.toast('操作成功')
uni.$emit('reload')
this.getInfo()
}
})
uni.navigateTo({url: `./MonitorAddView?pass=${pass}&id=${this.info.id}`})
// this.$http.post(`/app/apppreventionreturntopoverty/relieve?id=${this.id}&pass=${pass}`).then(res => {
// if (res.code === 0) {
// this.$u.toast('操作成功')
// uni.$emit('reload')
// this.getInfo()
// }
// })
})
},