This commit is contained in:
liuye
2022-01-14 10:56:52 +08:00
parent 5959781e15
commit 78c8bd01f8
6 changed files with 230 additions and 252 deletions

View File

@@ -1,13 +1,13 @@
<template>
<div class="Statistics">
<div class="top">
<div class="left">
<div class="left" @click="linkTo('./SelectGird')">
<img src="./components/img/gird-icon.png" alt="" />
<div class="girdNmae">{{ girdMsgList.girdName || '' }}</div>
<u-icon name="arrow-down" color="#666"></u-icon>
</div>
<div class="right">网格配置</div>
<div class="right" @click="linkTo('./SetGird')" v-if="checkType == 2">网格配置</div>
</div>
<div class="middle">
@@ -74,6 +74,7 @@ export default {
girdUser: [],
peopleList: {},
girdMsgList: {},
checkType: ''
}
},
computed: {},
@@ -82,12 +83,17 @@ export default {
mounted() {
this.$dict.load('girdType', 'girdLevel').then(() => {})
this.isGirdUser()
uni.$on('goback', (res) => {
this.girdMsgList = res
this.getGirdUserList()
})
},
methods: {
isGirdUser() {
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
if (res.code == 0) {
this.girdUser = res.data
this.checkType = res.data.checkType
if (this.girdUser.checkType != '0') {
this.getList()
if (this.girdUser.appGirdInfo) {
@@ -107,6 +113,9 @@ export default {
}
})
},
linkTo(url) {
uni.navigateTo({url})
}
},
}
</script>