This commit is contained in:
liuye
2022-02-10 14:44:40 +08:00
2 changed files with 11 additions and 27 deletions

View File

@@ -4,12 +4,8 @@
<div class="content-box"> <div class="content-box">
<div class="content-list"> <div class="content-list">
<div class="list-item" v-for="(item, index) in statisticsList" :key="index"> <div class="list-item" v-for="(item, index) in statisticsList" :key="index">
<h3> <h3>{{ item.value }}</h3>
{{item.value}} <p>{{ item.label }}</p>
</h3>
<p>
{{item.label}}
</p>
</div> </div>
</div> </div>
</div> </div>
@@ -17,7 +13,7 @@
<!-- 事件列表 --> <!-- 事件列表 -->
<div class="title"> <div class="title">
<div class="title-name">事件列表</div> <div class="title-name">事件列表</div>
<div class="title-type" @click="showGird = true">{{ status? status: '全部' }}<u-icon name="arrow-down"></u-icon></div> <div class="title-type" @click="showGird = true">{{ status? status: '全部类型' }}<u-icon name="arrow-down"></u-icon></div>
</div> </div>
<template> <template>
@@ -105,8 +101,6 @@ export default {
}) })
}, },
onShow() { onShow() {
document.title = '矛盾调解' document.title = '矛盾调解'
this.getList() this.getList()
@@ -142,7 +136,6 @@ export default {
}, },
getStaticList() { getStaticList() {
this.$http.post('/app/appclapeventinfo/clapEventStatisticByGirdMember').then((res) => { this.$http.post('/app/appclapeventinfo/clapEventStatisticByGirdMember').then((res) => {
// console.log(res);
if (res.code == 0){ if (res.code == 0){
for (let i in res.data) { for (let i in res.data) {
var obj = { var obj = {

View File

@@ -101,13 +101,11 @@ export default {
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.areaName = this.user.areaName this.areaName = this.user.areaName
this.getStatistic() this.getStatistic()
this.getStatisticMon()
this.getUserList() this.getUserList()
}) })
uni.$on('specialPeopleList', () => { uni.$on('specialPeopleList', () => {
this.getStatistic() this.getStatistic()
this.getStatisticMon()
this.getUserList() this.getUserList()
}) })
}, },
@@ -119,7 +117,6 @@ export default {
areaSelect(e) { areaSelect(e) {
this.areaId = e this.areaId = e
this.getStatistic() this.getStatistic()
this.getStatisticMon()
this.getUserList() this.getUserList()
}, },
tabClick(index) { tabClick(index) {
@@ -127,8 +124,9 @@ export default {
}, },
getStatistic() { getStatistic() {
this.statisticsList = [] this.statisticsList = []
this.statisticsListMon = []
this.$http.post(`app/appspecialadjustment/statistic?type=0&range=0`).then((res) => { this.$http.post(`app/appspecialadjustment/statistic?type=0&range=0`).then((res) => {
if (res.code == 0) { if (res?.data) {
for (let i in res.data.map) { for (let i in res.data.map) {
var obj = { var obj = {
label: i, label: i,
@@ -136,19 +134,12 @@ export default {
} }
this.statisticsList.push(obj) this.statisticsList.push(obj)
} }
} for(let n in res.data.monthMap){
}) var objmon = {
}, label: n,
getStatisticMon() { value: res.data.monthMap[n]
this.statisticsListMon = []
this.$http.post(`app/appspecialadjustment/statistic?type=0&range=0`).then((res) => {
if (res.code == 0) {
for(let i in res.data.monthMap){
var obj = {
label: i,
value: res.data.monthMap[i]
} }
this.statisticsListMon.push(obj) this.statisticsListMon.push(objmon)
} }
} }
}) })
@@ -156,7 +147,7 @@ export default {
getUserList() { getUserList() {
this.userList = [] this.userList = []
this.$http.post(`app/appspecialadjustment/allList?size=20&current=${this.current}`,{type: this.type, name: this.name}).then((res) => { this.$http.post(`app/appspecialadjustment/allList?size=20&current=${this.current}`,{type: this.type, name: this.name}).then((res) => {
if (res.code == 0) { if (res?.data) {
if(this.current > res.data.total) { if(this.current > res.data.total) {
return return
} }