From 5f2fd9f07ec5702b1312c6d71958c13e8fde7110 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 7 Jul 2021 18:33:05 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=20=E5=8E=BB=E9=99=A4=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/charts/PieTable.vue | 2 +- src/components/charts/chart-options.js | 6 +----- src/views/charts/Chart.vue | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/charts/PieTable.vue b/src/components/charts/PieTable.vue index 4f1c762c..9770c468 100644 --- a/src/components/charts/PieTable.vue +++ b/src/components/charts/PieTable.vue @@ -179,7 +179,7 @@ export default { // this.$refs.table.toggleRowExpansion(row) // }, currentChange (row, expandedRows) { - if (this.expandRowKeys[0] && row.domain === this.expandRowKeys[0].domain) { + if (this.expandRowKeys[0] && (row.domain === this.expandRowKeys[0])) { this.expandRowKeys = [] } else { this.expandRowKeys = [row.domain] diff --git a/src/components/charts/chart-options.js b/src/components/charts/chart-options.js index 211e9908..b098968d 100644 --- a/src/components/charts/chart-options.js +++ b/src/components/charts/chart-options.js @@ -188,16 +188,12 @@ const pieWithTable = { itemHeight: 10, // 设置高度 itemGap: 20, selectedMode: false, - formatter: tooLongFormatter + // formatter: tooLongFormatter }, series: [ { type: 'pie', selectedMode: 'single', - itemStyle: { - borderRadius: 5, - borderWidth: 1 - }, radius: ['42%', '70%'], center: ['30%', '50%'], data: [], diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue index 28cb689a..0735acef 100644 --- a/src/views/charts/Chart.vue +++ b/src/views/charts/Chart.vue @@ -424,6 +424,7 @@ export default { this.chartWithPieTableInit(chartParams) }, chartWithPieTableInit (chartParams) { + const self = this chartParams.valueColumn = this.orderPieTable const queryParams = { startTime: parseInt(this.startTime / 1000), endTime: parseInt(this.endTime / 1000), limit: 10, order: this.orderPieTable } // 统计数据的查询参数 const tableQueryParams = { startTime: parseInt(this.startTime / 1000), endTime: this.endTime, limit: 10, order: this.orderPieTable } // 统计数据的查询参数