From abc687fb91639183a7f991dc6dddefb17420f58b Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 7 Jan 2022 17:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=8F=E6=89=8B=E6=8B=8D=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppHandSnapshot/PercentageDetail.vue | 8 +- src/apps/AppHandSnapshot/SelectUser.vue | 6 +- src/apps/AppHandSnapshot/Statistics.vue | 83 ++++++++++++------- 3 files changed, 59 insertions(+), 38 deletions(-) diff --git a/src/apps/AppHandSnapshot/PercentageDetail.vue b/src/apps/AppHandSnapshot/PercentageDetail.vue index b56086fe..dfd5e63d 100644 --- a/src/apps/AppHandSnapshot/PercentageDetail.vue +++ b/src/apps/AppHandSnapshot/PercentageDetail.vue @@ -16,19 +16,19 @@
小区管理
-
共11条 | 已办结9 +
共11条 | 已办结9
小区管理
-
共11条 | 已办结9 +
共11条 | 已办结9
小区管理
-
共11条 | 已办结9 +
共11条 | 已办结9
@@ -186,7 +186,7 @@ export default { line-height: 48px; .line-bg{ display: inline-block; - width: 63%; + width: 56%; height: 14px; background: #D7D8D9; border-radius: 8px; diff --git a/src/apps/AppHandSnapshot/SelectUser.vue b/src/apps/AppHandSnapshot/SelectUser.vue index 47452aaa..3d3e78a2 100644 --- a/src/apps/AppHandSnapshot/SelectUser.vue +++ b/src/apps/AppHandSnapshot/SelectUser.vue @@ -115,11 +115,7 @@ export default { } }) }else { //查网格员 - this.$http.post(`/app/appgirdmemberinfo/listByGirdId`, { - appGirdMemberInfo: { - girdId: row.id - } - }).then((res) => { + this.$http.post(`/app/appgirdmemberinfo/listByGirdId`, {girdId: row.id}).then((res) => { if (res?.data) { this.userList = res.data this.userList.map((item) => { diff --git a/src/apps/AppHandSnapshot/Statistics.vue b/src/apps/AppHandSnapshot/Statistics.vue index 7e1c7262..80302deb 100644 --- a/src/apps/AppHandSnapshot/Statistics.vue +++ b/src/apps/AppHandSnapshot/Statistics.vue @@ -1,10 +1,11 @@ @@ -89,10 +78,16 @@ export default { data() { return { todayList: [], - info: {} + info: {}, + pageShow: false, + myGirdList: [], + showSelect: false, + myGirdList: [], + girdName: '全部网格' } }, mounted() { + this.girdList() this.getStatistics() }, methods: { @@ -107,7 +102,18 @@ export default { } this.todayList.push(info) }) + if(this.info.groupList.length) { + this.info.groupList.map((item, index) => { + if(item.finishNum) { + item.percentage = (item.finishNum/item.totalNum).toFixed(2) + }else { + item.percentage = 0 + } + item.width = 56-(index*10) + }) + } } + this.pageShow = true }) }, @@ -125,6 +131,27 @@ export default { }, toUserList() { uni.navigateTo({url: './UserList'}) + }, + + girdList() { + this.$http.post(`/app/appgirdmemberinfo/queryMyGirdList`, null, { + params: { + size: 9999, + }, + }) + .then((res) => { + if (res.code == 0) { + this.myGirdList = res.data + var all = { + id: '', + girdName: '全部' + } + this.myGirdList.unshift(all) + } + }) + }, + confirm(e) { + } }, } @@ -291,13 +318,11 @@ export default { line-height: 48px; .line-bg{ display: inline-block; - width: 56%; height: 14px; background: #D7D8D9; border-radius: 8px; margin-right: 12px; .active-bg{ - width: 80%; height: 100%; background: #257FF1; border-radius: 8px;