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 } // 统计数据的查询参数