Files
dvcp_v2_wxcp_app/library/apps/AppGridManagement/Statistics.vue

168 lines
3.9 KiB
Vue
Raw Normal View History

2022-01-13 10:12:49 +08:00
<template>
<div class="Statistics">
<div class="middle">
<div class="girdPeople">网格内人员情况</div>
<div class="card">
<div class="box">
2022-01-14 14:35:17 +08:00
<span class="count" v-if="peopleList && peopleList['网格长']">{{ peopleList['网格长'] }}</span>
2022-01-14 13:54:17 +08:00
<span class="count" v-else>0</span>
2022-01-13 10:12:49 +08:00
<span class="girdCount">网格长</span>
</div>
<div class="box">
2022-01-14 14:35:17 +08:00
<span class="count" v-if="peopleList && peopleList['网格员']">{{ peopleList['网格员'] }}</span>
<span class="count" v-else>0</span>
2022-01-13 10:12:49 +08:00
<span class="girdCount">网格员</span>
</div>
<div class="box">
2022-01-14 13:54:17 +08:00
<span class="count" v-if="peopleList && peopleList['责任家庭数']">{{ peopleList['责任家庭数'] }}</span>
<span class="count" v-else>0</span>
2022-01-13 10:12:49 +08:00
<span class="girdCount">责任家庭数</span>
</div>
</div>
</div>
<div class="bottom">
<div class="girdMsg">网格信息</div>
<div class="girdCont">
<div class="boxes">
<span class="boxesLeft">网格名称</span>
2022-06-13 09:57:52 +08:00
<span class="boxesRight">{{ gridInfo.girdName || '' }}</span>
2022-01-13 10:12:49 +08:00
</div>
<div class="boxes">
2022-06-13 09:57:52 +08:00
<span class="boxesLeft">标绘状态</span>
<span class="boxesRight">{{ gridInfo.plottingStatus == 1 ? '已标绘' : '未标绘' }}</span>
2022-01-13 10:12:49 +08:00
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'Statistics',
components: {},
props: {
dict: Object,
instance: Function,
params: Object,
},
data() {
2022-01-13 11:04:45 +08:00
return {
peopleList: {},
2022-06-13 09:57:52 +08:00
gridInfo: {},
2022-01-14 14:35:17 +08:00
checkType: '',
2022-01-13 11:04:45 +08:00
}
2022-01-13 10:12:49 +08:00
},
2022-01-14 18:03:17 +08:00
created() {
2022-06-13 09:57:52 +08:00
this.gridInfo = this.params
this.getList()
2022-01-14 10:56:52 +08:00
uni.$on('goback', (res) => {
2022-06-13 09:57:52 +08:00
this.gridInfo = res
2022-01-14 11:03:51 +08:00
this.getList()
2022-01-14 14:29:41 +08:00
})
2022-01-13 11:04:45 +08:00
},
methods: {
getList() {
2022-06-13 09:57:52 +08:00
this.$http.post(`/app/appgirdmemberinfo/girdMemberAndResidentStatistic?girdId=${this.gridInfo.id}`).then((res) => {
if (res?.data) {
2022-01-13 11:04:45 +08:00
this.peopleList = res.data
}
})
},
2022-01-14 10:56:52 +08:00
linkTo(url) {
2022-06-13 09:57:52 +08:00
uni.navigateTo({url})
2022-01-14 14:35:17 +08:00
},
2022-01-13 11:04:45 +08:00
},
2022-01-13 10:12:49 +08:00
}
</script>
<style scoped lang="scss">
.Statistics {
2022-06-13 09:57:52 +08:00
padding: 0 30px;
2022-01-13 10:12:49 +08:00
box-sizing: border-box;
.middle {
background: #ffffff;
border-radius: 16px;
margin-top: 32px;
padding: 32px 0 60px 0;
2022-06-13 09:57:52 +08:00
2022-01-13 10:12:49 +08:00
.girdPeople {
padding: 0 0 56px 24px;
font-size: 32px;
font-family: PingFangSC-Regular, PingFang SC;
color: #333333;
}
2022-06-13 09:57:52 +08:00
2022-01-13 10:12:49 +08:00
.card {
display: flex;
justify-content: space-around;
2022-06-13 09:57:52 +08:00
2022-01-13 10:12:49 +08:00
.box {
display: flex;
flex-direction: column;
align-items: center;
2022-06-13 09:57:52 +08:00
2022-01-13 10:12:49 +08:00
.count {
font-size: 64px;
font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold;
color: #3b424a;
}
2022-06-13 09:57:52 +08:00
2022-01-13 10:12:49 +08:00
.girdCount {
margin-top: 8px;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
}
}
}
}
.bottom {
background: #ffffff;
border-radius: 16px;
margin-top: 32px;
padding: 0 24px 64px 24px;
2022-06-13 09:57:52 +08:00
2022-01-13 10:12:49 +08:00
.girdMsg {
padding: 32px 0;
font-size: 32px;
font-family: PingFangSC-Regular, PingFang SC;
color: #333333;
}
2022-06-13 09:57:52 +08:00
2022-01-13 10:12:49 +08:00
.girdCont {
.boxes {
padding: 24px 0 30px 0;
box-shadow: inset 0px -1px 0px 0px #d8dde6;
2022-06-13 09:57:52 +08:00
2022-01-13 10:12:49 +08:00
.boxesLeft {
font-size: 30px;
font-family: PingFang-SC-Heavy, PingFang-SC;
font-weight: 800;
color: #333333;
2022-02-11 15:36:55 +08:00
display: inline-block;
width: 140px;
vertical-align: top;
2022-01-13 10:12:49 +08:00
}
2022-06-13 09:57:52 +08:00
2022-01-13 10:12:49 +08:00
.boxesRight {
margin-left: 40px;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #666666;
2022-02-11 15:36:55 +08:00
display: inline-block;
width: calc(100% - 200px);
2022-01-13 10:12:49 +08:00
}
}
}
}
}
</style>