diff --git a/src/apps/AppSpecialPeople/components/detail.vue b/src/apps/AppSpecialPeople/components/detail.vue index ae16141c..1090da75 100644 --- a/src/apps/AppSpecialPeople/components/detail.vue +++ b/src/apps/AppSpecialPeople/components/detail.vue @@ -1,84 +1,85 @@ @@ -100,14 +101,20 @@ export default { search: {name: ''} } }, - computed: {...mapState(['user'])}, + computed: { + ...mapState(['user']), + hasGridPermit() { + return this.gridType != 0 + } + }, created() { this.$dict.load('appSpecialTypeFive') }, onShow() { document.title = '特殊人群管理' - this.isGirdUser() - this.getDatas() + this.isGirdUser().then(() => { + this.hasGridPermit && this.getDatas() + }) }, methods: { getDatas() { @@ -219,9 +226,10 @@ export default { }) }, isGirdUser() { - this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => { + return this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => { if (res?.data) { - this.gridType = res.data.checkType + this.search.girdId = res.data.girdId + return this.gridType = res.data.checkType } }) },