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 @@