2022-01-13 11:13:06 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="Organization">
|
|
|
|
|
<div class="select-gird">
|
|
|
|
|
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
2022-01-13 14:41:10 +08:00
|
|
|
<div @click="linkTo('./SelectGird')">
|
|
|
|
|
{{userGird.girdName}}
|
2022-01-13 11:13:06 +08:00
|
|
|
<img src="./components/img/down-icon.png" alt="" class="down-icon">
|
|
|
|
|
</div>
|
2022-01-14 13:54:17 +08:00
|
|
|
<span @click="linkTo('./SetGird')" v-if="checkType == 2">网格配置</span>
|
2022-01-13 11:13:06 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="title">网格人员</div>
|
2022-01-13 17:07:59 +08:00
|
|
|
<div class="user-content" v-for="(item, index) in dataInfo.parentGirdMembers" :key="index">
|
2022-01-13 18:42:09 +08:00
|
|
|
<img :src="item.photo" alt="" v-if="item.photo">
|
|
|
|
|
<img src="./components/img/big-user.png" alt="" v-else>
|
2022-01-13 11:13:06 +08:00
|
|
|
<div class="right">
|
2022-01-13 17:07:59 +08:00
|
|
|
<div class="name">{{item.name}}</div>
|
|
|
|
|
<div class="gird">{{item.checkType == 2 ? '网格长' : '网格员'}}</div>
|
|
|
|
|
<p>{{item.girdName}}</p>
|
2022-01-13 11:13:06 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-01-13 17:07:59 +08:00
|
|
|
<div class="user-content user-item" v-for="(item, index) in dataInfo.girdMembers" :key="index">
|
2022-01-13 18:42:09 +08:00
|
|
|
<img :src="item.photo" alt="" v-if="item.photo">
|
|
|
|
|
<img src="./components/img/user-img.png" alt="" v-else>
|
2022-01-13 11:13:06 +08:00
|
|
|
<div class="right">
|
2022-01-13 17:07:59 +08:00
|
|
|
<div class="name">{{item.name}}
|
|
|
|
|
<span class="gird">{{item.checkType == 2 ? '网格长' : '网格员'}}</span>
|
2022-01-14 13:57:47 +08:00
|
|
|
<span class="family-btn" @click="linkTo(`./FamilyList?id=${item.id}`)">责任家庭 ></span>
|
2022-01-13 11:13:06 +08:00
|
|
|
</div>
|
2022-01-13 17:07:59 +08:00
|
|
|
<p>{{item.girdName}} </p>
|
2022-01-13 11:13:06 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-01-14 10:56:52 +08:00
|
|
|
<div class="pad-b112"></div>
|
2022-01-13 11:13:06 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2022-01-13 17:07:59 +08:00
|
|
|
userGird: {},
|
2022-01-14 10:56:52 +08:00
|
|
|
dataInfo: {},
|
|
|
|
|
checkType: ''
|
2022-01-13 11:13:06 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
document.title = '网格管理'
|
2022-01-14 10:56:52 +08:00
|
|
|
|
2022-01-13 11:13:06 +08:00
|
|
|
},
|
2022-01-13 14:41:10 +08:00
|
|
|
mounted() {
|
|
|
|
|
this.isGirdUser()
|
2022-01-14 10:56:52 +08:00
|
|
|
uni.$on('goback', (res) => {
|
|
|
|
|
this.userGird = res
|
|
|
|
|
this.getGirdUserList()
|
|
|
|
|
})
|
2022-01-13 14:41:10 +08:00
|
|
|
},
|
2022-01-13 11:13:06 +08:00
|
|
|
methods: {
|
2022-01-13 14:41:10 +08:00
|
|
|
isGirdUser() {
|
|
|
|
|
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
if (res.data.checkType) {
|
2022-01-14 10:56:52 +08:00
|
|
|
this.checkType = res.data.checkType
|
2022-01-13 14:41:10 +08:00
|
|
|
this.userGird = res.data.appGirdInfo
|
2022-01-13 17:07:59 +08:00
|
|
|
this.getGirdUserList()
|
2022-01-13 14:41:10 +08:00
|
|
|
} else {
|
|
|
|
|
this.$u.toast('当前人员不是网格员或网格管理员')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2022-01-13 17:07:59 +08:00
|
|
|
getGirdUserList() {
|
|
|
|
|
this.$http.post(`/app/appgirdmemberinfo/listGirdMemberByGirdId?girdId=${this.userGird.id}`).then((res) => {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
this.dataInfo = res.data
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2022-01-13 11:13:06 +08:00
|
|
|
linkTo(url) {
|
|
|
|
|
uni.navigateTo({url})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.Organization {
|
|
|
|
|
padding-top: 32px;
|
2022-01-14 10:56:52 +08:00
|
|
|
background-color: #f3f6f9;
|
2022-01-13 11:13:06 +08:00
|
|
|
.select-gird{
|
|
|
|
|
width: calc(100% - 60px);
|
|
|
|
|
padding: 24px 32px;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
margin: 0 30px 32px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
img{
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
div{
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: calc(100% - 144px);
|
|
|
|
|
padding-left: 20px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #333;
|
|
|
|
|
line-height: 48px;
|
|
|
|
|
img{
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
span{
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 112px;
|
|
|
|
|
height: 48px;
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #3F8DF5;
|
|
|
|
|
line-height: 48px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.title{
|
|
|
|
|
font-size: 38px;
|
|
|
|
|
font-family: PingFangSC-Semibold, PingFang SC;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #333;
|
|
|
|
|
line-height: 52px;
|
|
|
|
|
padding-left: 32px;
|
|
|
|
|
margin-bottom: 32px;
|
|
|
|
|
}
|
|
|
|
|
.user-content{
|
|
|
|
|
width: calc(100% - 64px);
|
|
|
|
|
margin: 0 0 32px 32px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
padding: 32px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
display: flex;
|
|
|
|
|
img{
|
|
|
|
|
width: 200px;
|
|
|
|
|
height: 200px;
|
|
|
|
|
margin-right: 32px;
|
|
|
|
|
}
|
|
|
|
|
.right{
|
|
|
|
|
width: 100%;
|
|
|
|
|
.name{
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #333;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
}
|
|
|
|
|
.gird{
|
|
|
|
|
display: inline-block;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
background: #E8EFFF;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
padding: 0 8px;
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #26F;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
}
|
|
|
|
|
p{
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #666;
|
|
|
|
|
line-height: 36px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.user-item{
|
|
|
|
|
img{
|
|
|
|
|
width: 96px;
|
|
|
|
|
height: 96px;
|
|
|
|
|
}
|
|
|
|
|
.gird{
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-left: 16px;
|
|
|
|
|
margin-bottom: 0!important;
|
|
|
|
|
}
|
|
|
|
|
.name{
|
|
|
|
|
margin-bottom: 8px!important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.family-btn{
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #3975C6;
|
|
|
|
|
line-height: 36px;
|
|
|
|
|
float: right;
|
|
|
|
|
}
|
2022-01-14 10:56:52 +08:00
|
|
|
.pad-b112{
|
|
|
|
|
padding-bottom: 112px;
|
|
|
|
|
}
|
2022-01-13 11:13:06 +08:00
|
|
|
}
|
|
|
|
|
</style>
|