2022-08-08 14:37:30 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="AppSpecialGroups">
|
2022-08-09 11:00:35 +08:00
|
|
|
<div class="title">特殊人群总计 : {{ total }}人</div>
|
|
|
|
|
<div class="item" @click="toList(item.label)" v-for="(item, index) in statisticsList" :key="index">
|
2022-08-08 14:37:30 +08:00
|
|
|
<div class="left">
|
|
|
|
|
<img src="./img/user-icon-mini.png" alt="">
|
2022-08-09 11:00:35 +08:00
|
|
|
<span>{{ item.label }}</span>
|
2022-08-08 14:37:30 +08:00
|
|
|
</div>
|
|
|
|
|
<div class="right">
|
2022-08-09 11:00:35 +08:00
|
|
|
{{ item.value }}<img src="./img/down-icon-666.png" alt="">
|
2022-08-08 14:37:30 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: "AppSpecialGroups",
|
|
|
|
|
appName: "特殊人群",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2022-08-09 11:00:35 +08:00
|
|
|
statisticsList: [],
|
|
|
|
|
total: 0
|
2022-08-08 14:37:30 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2022-08-09 11:00:35 +08:00
|
|
|
getStatistic() {
|
|
|
|
|
this.statisticsList = []
|
|
|
|
|
this.total = 0
|
|
|
|
|
this.$http.post(`/app/appspecialadjustment/statistic?type=0&range=0`).then((res) => {
|
|
|
|
|
if (res?.data) {
|
|
|
|
|
for (let i in res.data.map) {
|
|
|
|
|
var obj = {
|
|
|
|
|
label: i,
|
|
|
|
|
value: res.data.map[i],
|
|
|
|
|
}
|
|
|
|
|
this.total = this.total + res.data.map[i]
|
|
|
|
|
this.statisticsList.push(obj)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
toList(label) {
|
|
|
|
|
uni.navigateTo({ url: `./List?label=${label}`})
|
2022-08-08 14:37:30 +08:00
|
|
|
}
|
|
|
|
|
},
|
2022-08-09 11:00:35 +08:00
|
|
|
created() {
|
|
|
|
|
this.getStatistic()
|
|
|
|
|
},
|
2022-08-08 14:37:30 +08:00
|
|
|
onShow() {
|
|
|
|
|
document.title = "特殊人群"
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.AppSpecialGroups {
|
|
|
|
|
.title {
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #666666;
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
padding: 40px 0 20px 30px;
|
|
|
|
|
}
|
|
|
|
|
.item {
|
|
|
|
|
display: flex;
|
|
|
|
|
padding: 30px;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
border-radius: 8px;
|
2022-08-16 16:32:15 +08:00
|
|
|
margin: 0 30px 30px 30px;
|
|
|
|
|
width: calc(100% - 60px);
|
2022-08-08 14:37:30 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
.left {
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #666;
|
|
|
|
|
line-height: 48px;
|
|
|
|
|
width: calc(100% - 200px);
|
|
|
|
|
img {
|
|
|
|
|
width: 44px;
|
|
|
|
|
height: 44px;
|
|
|
|
|
margin-right: 16px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
span {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: calc(100% - 60px);
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
vertical-align: text-top;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.right {
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #000;
|
|
|
|
|
line-height: 48px;
|
|
|
|
|
width: 200px;
|
|
|
|
|
text-align: right;
|
|
|
|
|
img {
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
margin: -4px 0 0 16px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
transform: rotate(270deg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|