style: 去除样式调整

This commit is contained in:
zhangyu
2021-07-07 18:33:05 +08:00
parent b8b75f0ae2
commit 5f2fd9f07e
3 changed files with 3 additions and 6 deletions

View File

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

View File

@@ -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: [],

View File

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