fix(视图): 汇总表自定义宽度缺少指标字段
This commit is contained in:
parent
ecdd7ee3b8
commit
4cccc3fd68
@ -1824,16 +1824,16 @@ export default {
|
||||
this.sizeForm.wordSpacing = this.sizeForm.wordSpacing ?? DEFAULT_SIZE.wordSpacing
|
||||
|
||||
if (this.chart.type !== 'table-pivot') {
|
||||
let { xaxis, xaxisExt } = this.chart
|
||||
let { xaxis, yaxis } = this.chart
|
||||
if (!(xaxis instanceof Object)) {
|
||||
xaxis = JSON.parse(xaxis)
|
||||
}
|
||||
if (!(xaxisExt instanceof Object)) {
|
||||
xaxisExt = JSON.parse(xaxisExt)
|
||||
if (!(yaxis instanceof Object)) {
|
||||
yaxis = JSON.parse(yaxis)
|
||||
}
|
||||
let allAxis = xaxis
|
||||
if (this.chart.type === 'table-normal') {
|
||||
allAxis = allAxis.concat(xaxisExt)
|
||||
allAxis = allAxis.concat(yaxis)
|
||||
}
|
||||
if (allAxis.length && this.sizeForm.showIndex) {
|
||||
allAxis.unshift({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user