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
|
||||
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 {
|
||||
...item,
|
||||
|
||||
@@ -521,6 +521,8 @@ export default {
|
||||
}
|
||||
if (item.text && !item.display) {
|
||||
item.display = item.text
|
||||
} else if (!item.display) {
|
||||
item.display = '{{A.$value}}'
|
||||
}
|
||||
if (item.columns && !item.column) {
|
||||
item.column = item.columns
|
||||
|
||||
Reference in New Issue
Block a user