走访慰问,返乡登记页面未刷新

This commit is contained in:
liuye
2022-03-16 09:12:50 +08:00
parent 713ec624eb
commit 913857bab0
4 changed files with 17 additions and 7 deletions

View File

@@ -546,15 +546,19 @@ export default {
checkPhoto: JSON.stringify(this.form.checkPhoto),
})
.then((res) => {
this.$hideLoading();
this.flag = false;
if (res.code == 0) {
uni.$emit("update");
console.log(res)
uni.$emit("updateBackList");
setTimeout(() => {
uni.navigateTo({url: `./Success?status=1&corpId=${this.form.corpId}`})
}, 400);
}
}).catch(() => {
}).catch((err) => {
console.log(err)
uni.$emit("updateBackList");
uni.navigateTo({url: `./Success?status=1&corpId=${this.form.corpId}`})
})
},

View File

@@ -104,8 +104,10 @@ export default {
},
onLoad() {
this.isGirdUser()
uni.$on('update').then(() => {
this.isGirdUser()
uni.$on('updateBackList', () => {
console.log(123)
this.getListInit()
this.getTotal()
})
},
onShow() {

View File

@@ -102,9 +102,9 @@
</div>
</div>
<div class="line-bg"></div>
<div class="info">
<div class="title">异常处理情况</div>
<div class="error-list" v-if="list.length">
<div class="info" v-if="list.length || info.releaseName">
<div class="title" >异常处理情况</div>
<div class="error-list" v-if="list.length">
<div class="item" v-for="(item, index) in list" :key="index">
<p>{{item.content}}</p>
<div>{{item.createTime}}

View File

@@ -82,6 +82,10 @@ export default {
this.$dict.load('appSpecialTypeFive').then(() => {
this.typeList = this.$dict.getDict('appSpecialTypeFive')
})
uni.$on('specialPeopleList', () => {
this.current = 1
this.getUsers()
})
},
methods: {
toAdd() {