BUG 28265

This commit is contained in:
aixianling
2022-03-16 14:35:42 +08:00
parent 926c185170
commit d9d41a240c
2 changed files with 24 additions and 39 deletions

View File

@@ -96,7 +96,6 @@ export default {
statisticsList: [],
statisticsListMon: [],
userList: [],
gridType: 0,
gridName: "请选择",
search: {name: ''}
}
@@ -104,17 +103,16 @@ export default {
computed: {
...mapState(['user']),
hasGridPermit() {
return this.gridType != 0
return this.user.girdCheckType != 0
}
},
created() {
this.$dict.load('appSpecialTypeFive')
},
onShow() {
document.title = '特殊人群管理'
this.isGirdUser().then(() => {
this.hasGridPermit && this.getDatas()
})
if (this.hasGridPermit) {
this.search.girdId = this.user.girdId
this.getDatas()
}
},
methods: {
getDatas() {
@@ -225,14 +223,6 @@ export default {
}).catch(() => {
})
},
isGirdUser() {
return this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
if (res?.data) {
this.search.girdId = res.data.girdId
return this.gridType = res.data.checkType
}
})
},
showDetail(e) {
uni.navigateTo({url: `/mods/AppPeopleList/DetailCard?id=${e.id}`})
}