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,13 +1,5 @@
<template>
<div class="Organization">
<div class="select-gird">
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
<div @click="linkTo('./SelectGird')">
{{userGird.girdName}}
<img src="./components/img/down-icon.png" alt="" class="down-icon">
</div>
<span @click="linkTo('./SetGird')" v-if="checkType == 2">网格配置</span>
</div>
<div class="title">网格人员</div>
<div class="user-content" v-for="(item, index) in dataInfo.parentGirdMembers" :key="index">
<image :src="item.photo" alt="" mode="aspectFill" v-if="item.photo" />
@@ -40,32 +32,22 @@ export default {
return {
userGird: {},
dataInfo: {},
checkType: ''
}
},
props: ['params'],
onShow() {
document.title = '网格管理'
},
mounted() {
this.isGirdUser()
this.userGird = this.params
this.getGirdUserList()
uni.$on('goback', (res) => {
this.userGird = res
this.getGirdUserList()
})
},
methods: {
isGirdUser() {
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
if (res.code == 0) {
if (res.data.checkType != '0') {
this.checkType = res.data.checkType
this.userGird = res.data.appGirdInfo
this.getGirdUserList()
}
}
})
},
getGirdUserList() {
this.$http.post(`/app/appgirdmemberinfo/listGirdMemberByGirdId?girdId=${this.userGird.id}`).then((res) => {
if (res.code == 0) {
@@ -82,45 +64,7 @@ export default {
<style lang="scss" scoped>
.Organization {
padding-top: 32px;
background-color: #f5f5f5;
.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;