BUG 29517
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="AppHandSnapshot">
|
||||
<component v-if="refresh && isAdmin" :is="component" @change="onChange" :params="params"> </component>
|
||||
<div v-if="!isAdmin" class="empty">
|
||||
<component v-if="refresh && isGridMember" :is="component" @change="onChange" :params="params"> </component>
|
||||
<div v-if="!isGridMember" class="empty">
|
||||
<img src="./components/img/no-admin.png" alt="">
|
||||
<p>没有网格员权限<br />无法查看矛盾调解信息哦~</p>
|
||||
</div>
|
||||
@@ -10,11 +10,11 @@
|
||||
|
||||
<script>
|
||||
import List from './List.vue'
|
||||
import {mapState} from "vuex";
|
||||
|
||||
export default {
|
||||
name: 'AppConflictMediation',
|
||||
appName: '矛盾调解',
|
||||
|
||||
data() {
|
||||
return {
|
||||
component: 'List',
|
||||
@@ -22,33 +22,20 @@ export default {
|
||||
refresh: true,
|
||||
tabIndex: 0,
|
||||
isTab: true,
|
||||
isAdmin: false
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
List,
|
||||
components: {List},
|
||||
computed:{
|
||||
...mapState(['user']),
|
||||
isGridMember() {
|
||||
return this.user.girdCheckType > 0
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
onChange(e) {
|
||||
this.params = e.params
|
||||
this.component = e.type
|
||||
},
|
||||
|
||||
isGirdUser() {
|
||||
this.isAdmin = false
|
||||
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
||||
if (res?.data) {
|
||||
if (res.data.checkType != '0') {
|
||||
this.isAdmin = true
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
onLoad() {
|
||||
this.isGirdUser()
|
||||
},
|
||||
onShow() {
|
||||
document.title = '矛盾调解'
|
||||
@@ -58,7 +45,7 @@ export default {
|
||||
uni.$on('showTab', () => {
|
||||
this.isTab = true
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
onReachBottom() {
|
||||
if(!this.tabIndex) {
|
||||
|
||||
Reference in New Issue
Block a user