diff --git a/src/saas/AppBackUserList/AppBackUserList.vue b/src/saas/AppBackUserList/AppBackUserList.vue index 026a4e95..c9386747 100644 --- a/src/saas/AppBackUserList/AppBackUserList.vue +++ b/src/saas/AppBackUserList/AppBackUserList.vue @@ -112,6 +112,8 @@ export default { }, onLoad() { this.isGirdUser() + this.girdId = this.user.girdId + this.confirmSelect(this.user) uni.$on('updateBackList', () => { this.getListInit() this.getTotal() @@ -143,9 +145,9 @@ export default { } this.$http.post(`/app/appepidemicbackhomerecord/list?current=${this.current}&size=10&status=${status}&name=${this.name}&arriveGirdId=${this.girdId}`) .then((res) => { - if (res.code == 0) { + if (res?.data) { res.data.records.map((item) => { - item.idNumber = item.idNumber.replace(/(.{6}).*(.{4})/, "$1********$2") + item.idNumber = this.$idCardNoUtil.hideId(item.idNumber) }) this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records } @@ -153,7 +155,7 @@ export default { }, getTotal() { this.$http.post(`/app/appepidemicbackhomerecord/statistic?arriveGirdId=${this.girdId}`).then((res) => { - if (res.code == 0) { + if (res?.data) { this.totalInfo = res.data } }) @@ -168,9 +170,7 @@ export default { this.isAdmin = false this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => { if (res?.data) { - if (res.data.checkType != '0') { - this.isAdmin = true - } + this.isAdmin = res.data.checkType != '0' } }) }, diff --git a/src/saas/AppHealthUp/AppHealthUp.vue b/src/saas/AppHealthUp/AppHealthUp.vue index 7546e907..6d8c095a 100644 --- a/src/saas/AppHealthUp/AppHealthUp.vue +++ b/src/saas/AppHealthUp/AppHealthUp.vue @@ -1,7 +1,7 @@