This commit is contained in:
花有清香月有阴
2022-01-14 14:35:17 +08:00
parent e0f60e9549
commit 23e216cf8a
2 changed files with 22 additions and 12 deletions

View File

@@ -15,14 +15,14 @@
<div class="card">
<div class="box">
<span class="count" v-if="peopleList && peopleList['网格长']">{{ peopleList['网格长']}}</span>
<span class="count" v-if="peopleList && peopleList['网格长']">{{ peopleList['网格长'] }}</span>
<span class="count" v-else>0</span>
<span class="girdCount">网格长</span>
</div>
<div class="box">
<span class="count" v-if="peopleList && peopleList['网格员'] ">{{ peopleList['网格员']}}</span>
<span class="count" v-else>0</span>
<span class="count" v-if="peopleList && peopleList['网格员']">{{ peopleList['网格员'] }}</span>
<span class="count" v-else>0</span>
<span class="girdCount">网格员</span>
</div>
@@ -77,15 +77,17 @@ export default {
girdUser: [],
peopleList: {},
girdMsgList: {},
checkType: ''
checkType: '',
}
},
computed: {},
watch: {},
onLoad() {},
mounted() {
this.$dict.load('girdType', 'girdLevel').then(() => {})
this.isGirdUser()
this.$dict.load('girdType', 'girdLevel').then(() => {
this.isGirdUser()
})
uni.$on('goback', (res) => {
this.girdMsgList = res
this.getList()
@@ -117,8 +119,8 @@ export default {
})
},
linkTo(url) {
uni.navigateTo({url})
}
uni.navigateTo({ url })
},
},
}
</script>