From 66a58a8dafba1b7d83acd1da70a066fdd7301f40 Mon Sep 17 00:00:00 2001
From: wanglei <1336977847@qq.com>
Date: Thu, 10 Feb 2022 14:36:31 +0800
Subject: [PATCH] bug
---
src/saas/AppConflictMediation/List.vue | 13 +++----------
src/saas/AppSpecialPeople/detail.vue | 25 ++++++++-----------------
2 files changed, 11 insertions(+), 27 deletions(-)
diff --git a/src/saas/AppConflictMediation/List.vue b/src/saas/AppConflictMediation/List.vue
index dd478f40..ed41b648 100644
--- a/src/saas/AppConflictMediation/List.vue
+++ b/src/saas/AppConflictMediation/List.vue
@@ -4,12 +4,8 @@
-
- {{item.value}}
-
-
- {{item.label}}
-
+
{{ item.value }}
+
{{ item.label }}
@@ -17,7 +13,7 @@
事件列表
-
{{ status? status: '全部' }}
+
{{ status? status: '全部类型' }}
@@ -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 = {
diff --git a/src/saas/AppSpecialPeople/detail.vue b/src/saas/AppSpecialPeople/detail.vue
index 8a045c50..742e6244 100644
--- a/src/saas/AppSpecialPeople/detail.vue
+++ b/src/saas/AppSpecialPeople/detail.vue
@@ -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)
}
- }
- })
- },
- 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]
+ for(let n in res.data.monthMap){
+ var objmon = {
+ label: n,
+ value: res.data.monthMap[n]
}
- 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
}