NEZ-1776 fix:chart params参数错误的问题
This commit is contained in:
@@ -449,6 +449,19 @@ export default {
|
|||||||
// }
|
// }
|
||||||
height = (item.type === 'group' && item.param.collapse) ? this.headerH : item.height
|
height = (item.type === 'group' && item.param.collapse) ? this.headerH : item.height
|
||||||
param.showHeader = true
|
param.showHeader = true
|
||||||
|
if (param.valueMapping) {
|
||||||
|
param.valueMapping.forEach(valueMapping => {
|
||||||
|
if (!valueMapping.show) {
|
||||||
|
valueMapping.show = false
|
||||||
|
}
|
||||||
|
if (valueMapping.text && !valueMapping.display) {
|
||||||
|
valueMapping.display = valueMapping.text
|
||||||
|
}
|
||||||
|
if (valueMapping.columns && !valueMapping.column) {
|
||||||
|
valueMapping.column = valueMapping.columns
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
|
|||||||
@@ -521,6 +521,8 @@ export default {
|
|||||||
}
|
}
|
||||||
if (item.text && !item.display) {
|
if (item.text && !item.display) {
|
||||||
item.display = item.text
|
item.display = item.text
|
||||||
|
} else if (!item.display) {
|
||||||
|
item.display = '{{A.$value}}'
|
||||||
}
|
}
|
||||||
if (item.columns && !item.column) {
|
if (item.columns && !item.column) {
|
||||||
item.column = item.columns
|
item.column = item.columns
|
||||||
|
|||||||
Reference in New Issue
Block a user