This commit is contained in:
liuye
2022-01-13 17:07:59 +08:00
parent 3e7284f6e0
commit e31f3990d2
12 changed files with 26 additions and 16 deletions

View File

@@ -74,6 +74,7 @@ export default {
methods: { methods: {
areaSelect() { areaSelect() {
this.getListInit() this.getListInit()
this.getTotal()
}, },
tabClick(index) { tabClick(index) {
this.tabIndex = index this.tabIndex = index

View File

@@ -27,20 +27,20 @@ export default {
tabIndex: 0, tabIndex: 0,
tabs: [ tabs: [
{ {
img: require('./components/img/handle-icon.png'), img: require('./components/img/statistics-icon.png'),
activeImg: require('./components/img/handle-icon-active.png'), activeImg: require('./components/img/statistics-icon-active.png'),
text: '统计', text: '统计',
component: 'Statistics', component: 'Statistics',
}, },
{ {
img: require('./components/img/statistics-icon.png'), img: require('./components/img/org-icon.png'),
activeImg: require('./components/img/statistics-icon-active.png'), activeImg: require('./components/img/org-icon-active.png'),
text: '组织', text: '组织',
component: 'Organization', component: 'Organization',
}, },
{ {
img: require('./components/img/set-icon.png'), img: require('./components/img/map-icon.png'),
activeImg: require('./components/img/set-icon-active.png'), activeImg: require('./components/img/map-icon-active.png'),
text: '地图', text: '地图',
component: 'Map' component: 'Map'
} }

View File

@@ -9,22 +9,22 @@
<span @click="linkTo('./SetGird')">网格配置</span> <span @click="linkTo('./SetGird')">网格配置</span>
</div> </div>
<div class="title">网格人员</div> <div class="title">网格人员</div>
<div class="user-content"> <div class="user-content" v-for="(item, index) in dataInfo.parentGirdMembers" :key="index">
<img src="./components/img/user-img.png" alt=""> <img src="./components/img/big-user.png" alt="">
<div class="right"> <div class="right">
<div class="name">侯敬兰</div> <div class="name">{{item.name}}</div>
<div class="gird">一级网格长</div> <div class="gird">{{item.checkType == 2 ? '网格长' : '网格员'}}</div>
<p>南湖街道一级网格</p> <p>{{item.girdName}}</p>
</div> </div>
</div> </div>
<div class="user-content user-item"> <div class="user-content user-item" v-for="(item, index) in dataInfo.girdMembers" :key="index">
<img src="./components/img/user-img.png" alt=""> <img src="./components/img/user-img.png" alt="">
<div class="right"> <div class="right">
<div class="name">侯敬兰 <div class="name">{{item.name}}
<span class="gird">一级网格长</span> <span class="gird">{{item.checkType == 2 ? '网格长' : '网格员'}}</span>
<span class="family-btn" @click="linkTo('./FamilyList')">责任家庭 ></span> <span class="family-btn" @click="linkTo('./FamilyList')">责任家庭 ></span>
</div> </div>
<p>南湖街道一级网格</p> <p>{{item.girdName}} </p>
</div> </div>
</div> </div>
</div> </div>
@@ -34,7 +34,8 @@
export default { export default {
data() { data() {
return { return {
userGird: {} userGird: {},
dataInfo: {}
} }
}, },
onShow() { onShow() {
@@ -49,12 +50,20 @@ export default {
if (res.code == 0) { if (res.code == 0) {
if (res.data.checkType) { if (res.data.checkType) {
this.userGird = res.data.appGirdInfo this.userGird = res.data.appGirdInfo
this.getGirdUserList()
} else { } else {
this.$u.toast('当前人员不是网格员或网格管理员') this.$u.toast('当前人员不是网格员或网格管理员')
} }
} }
}) })
}, },
getGirdUserList() {
this.$http.post(`/app/appgirdmemberinfo/listGirdMemberByGirdId?girdId=${this.userGird.id}`).then((res) => {
if (res.code == 0) {
this.dataInfo = res.data
}
})
},
linkTo(url) { linkTo(url) {
uni.navigateTo({url}) uni.navigateTo({url})
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB