From 87e6e97d0d85c45a27f86bff569f7e22b322234b Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Wed, 20 Jul 2022 15:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8E=92=E5=BA=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/api.js | 9 ++ src/views/Statistics/BuildingContrast.vue | 42 ++++-- src/views/Statistics/ConsultantBrand.vue | 39 +++-- src/views/Statistics/ReceptionStatistical.vue | 135 +++++++++++------- src/views/admin/role/index.vue | 3 +- 5 files changed, 156 insertions(+), 72 deletions(-) diff --git a/src/api/modules/api.js b/src/api/modules/api.js index 74570a0..ae55350 100644 --- a/src/api/modules/api.js +++ b/src/api/modules/api.js @@ -1230,4 +1230,13 @@ export function insertSelective(data) { method: 'post', data: data }) +} + +// 修改角色权限 +export function updateMessageType(data) { + return request({ + url: '/admin/role/updateMessageType', + method: 'post', + data: data + }) } \ No newline at end of file diff --git a/src/views/Statistics/BuildingContrast.vue b/src/views/Statistics/BuildingContrast.vue index ef095b4..ade081f 100644 --- a/src/views/Statistics/BuildingContrast.vue +++ b/src/views/Statistics/BuildingContrast.vue @@ -67,7 +67,7 @@
- + - + - + - + - + - + - + - + - +
{ + return a[e.prop] - b[e.prop]; + }); + } + if (e.order == "descending") { + this.tableData.sort((a, b) => { + return b[e.prop] - a[e.prop]; + }); + } + console.log(this.tableData); + let index = this.tableData.findIndex((item) => { + return item.houseName == this.total; + }); + if (index != -1) { + let obj = this.tableData.splice(index, 1); + this.tableData.push(obj[0]); + } + }, + getSummaries(param) { const { columns, data } = param; const sums = []; diff --git a/src/views/Statistics/ConsultantBrand.vue b/src/views/Statistics/ConsultantBrand.vue index cd4d9ef..1d8612b 100644 --- a/src/views/Statistics/ConsultantBrand.vue +++ b/src/views/Statistics/ConsultantBrand.vue @@ -94,9 +94,9 @@