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