ct
This commit is contained in:
@@ -4,12 +4,8 @@
|
||||
<div class="content-box">
|
||||
<div class="content-list">
|
||||
<div class="list-item" v-for="(item, index) in statisticsList" :key="index">
|
||||
<h3>
|
||||
{{item.value}}
|
||||
</h3>
|
||||
<p>
|
||||
{{item.label}}
|
||||
</p>
|
||||
<h3>{{ item.value }}</h3>
|
||||
<p>{{ item.label }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -17,7 +13,7 @@
|
||||
<!-- 事件列表 -->
|
||||
<div class="title">
|
||||
<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>
|
||||
|
||||
<template>
|
||||
@@ -105,8 +101,6 @@ export default {
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
|
||||
onShow() {
|
||||
document.title = '矛盾调解'
|
||||
this.getList()
|
||||
@@ -142,7 +136,6 @@ export default {
|
||||
},
|
||||
getStaticList() {
|
||||
this.$http.post('/app/appclapeventinfo/clapEventStatisticByGirdMember').then((res) => {
|
||||
// console.log(res);
|
||||
if (res.code == 0){
|
||||
for (let i in res.data) {
|
||||
var obj = {
|
||||
|
||||
@@ -101,13 +101,11 @@ export default {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.getStatistic()
|
||||
this.getStatisticMon()
|
||||
this.getUserList()
|
||||
})
|
||||
|
||||
uni.$on('specialPeopleList', () => {
|
||||
this.getStatistic()
|
||||
this.getStatisticMon()
|
||||
this.getUserList()
|
||||
})
|
||||
},
|
||||
@@ -119,7 +117,6 @@ export default {
|
||||
areaSelect(e) {
|
||||
this.areaId = e
|
||||
this.getStatistic()
|
||||
this.getStatisticMon()
|
||||
this.getUserList()
|
||||
},
|
||||
tabClick(index) {
|
||||
@@ -127,8 +124,9 @@ export default {
|
||||
},
|
||||
getStatistic() {
|
||||
this.statisticsList = []
|
||||
this.statisticsListMon = []
|
||||
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) {
|
||||
var obj = {
|
||||
label: i,
|
||||
@@ -136,19 +134,12 @@ export default {
|
||||
}
|
||||
this.statisticsList.push(obj)
|
||||
}
|
||||
for(let n in res.data.monthMap){
|
||||
var objmon = {
|
||||
label: n,
|
||||
value: res.data.monthMap[n]
|
||||
}
|
||||
})
|
||||
},
|
||||
getStatisticMon() {
|
||||
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() {
|
||||
this.userList = []
|
||||
this.$http.post(`app/appspecialadjustment/allList?size=20¤t=${this.current}`,{type: this.type, name: this.name}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
if (res?.data) {
|
||||
if(this.current > res.data.total) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user