This commit is contained in:
liuye
2022-01-17 14:24:54 +08:00
parent 0073e30a2b
commit 4a4d152c10
3 changed files with 64 additions and 113 deletions

View File

@@ -1,15 +1,5 @@
<template>
<div class="Statistics">
<div class="top">
<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" @click="linkTo('./SetGird')" v-if="checkType == 2">网格配置</div>
</div>
<div class="middle">
<div class="girdPeople">网格内人员情况</div>
@@ -86,6 +76,8 @@ export default {
created() {
this.$dict.load('girdType', 'girdLevel').then(() => {
this.isGirdUser()
this.girdMsgList = this.params
this.getList()
})
uni.$on('goback', (res) => {
@@ -98,14 +90,6 @@ export default {
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') {
if (this.girdUser.appGirdInfo) {
this.girdMsgList = this.girdUser.appGirdInfo
this.getList()
}
}
}
})
},
@@ -129,43 +113,8 @@ uni-page-body {
height: 100%;
}
.Statistics {
height: 100%;
background: #f3f7f8;
padding: 0 30px;
padding-top: 30px;
box-sizing: border-box;
.top {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px 32px;
background: #fff;
border-radius: 16px;
.left {
display: flex;
align-items: center;
img {
width: 32px;
height: 32px;
}
.girdNmae {
margin-left: 20px;
font-size: 34px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
}
.u-icon {
margin-left: 8px;
}
}
.right {
font-size: 28px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #3f8df5;
}
}
.middle {
background: #ffffff;