agregar console.log para debuggear cunción de aplicar formato
This commit is contained in:
parent
43e3abb8c7
commit
1914edfe7a
@ -257,11 +257,16 @@ function makeRenderer() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var getFormatedValue = function getFormatedValue(aggregator, rowKey, colKey) {
|
var getFormatedValue = function getFormatedValue(aggregator, rowKey, colKey) {
|
||||||
|
console.log('--------------getFormatedValue-----------------');
|
||||||
var valToFormat = aggregator.value();
|
var valToFormat = aggregator.value();
|
||||||
|
console.log('valToFormat', valToFormat);
|
||||||
var resultValue = aggregator.format(valToFormat);
|
var resultValue = aggregator.format(valToFormat);
|
||||||
var keyColumnaCalculo = _this2.props.vals != null && _this2.props.vals.length ? _this2.props.vals[0] : null;
|
var keyColumnaCalculo = _this2.props.vals != null && _this2.props.vals.length ? _this2.props.vals[0] : null;
|
||||||
|
console.log('keyColumnaCalculo', keyColumnaCalculo);
|
||||||
|
console.log('this.props.headersDefinitions', _this2.props.headersDefinitions);
|
||||||
if (keyColumnaCalculo != null && _this2.props.headersDefinitions != null && _this2.props.headersDefinitions.length) {
|
if (keyColumnaCalculo != null && _this2.props.headersDefinitions != null && _this2.props.headersDefinitions.length) {
|
||||||
var _definition = _this2.props.headersDefinitions[keyColumnaCalculo];
|
var _definition = _this2.props.headersDefinitions[keyColumnaCalculo];
|
||||||
|
console.log('_definition', _definition);
|
||||||
if (_definition != null && _definition.value != null) {
|
if (_definition != null && _definition.value != null) {
|
||||||
if (_definition.value.startsWith('count_') || _definition.value.startsWith('countd_')) {
|
if (_definition.value.startsWith('count_') || _definition.value.startsWith('countd_')) {
|
||||||
resultValue = _this2.props.functions != null ? _this2.props.functions.formatedValue(valToFormat, '0,0', 'number', true, '') : resultValue;
|
resultValue = _this2.props.functions != null ? _this2.props.functions.formatedValue(valToFormat, '0,0', 'number', true, '') : resultValue;
|
||||||
@ -369,7 +374,7 @@ function makeRenderer() {
|
|||||||
onClick: getClickHandler && getClickHandler(aggregator.value(), rowKey, colKey),
|
onClick: getClickHandler && getClickHandler(aggregator.value(), rowKey, colKey),
|
||||||
style: valueCellColors(rowKey, colKey, aggregator.value())
|
style: valueCellColors(rowKey, colKey, aggregator.value())
|
||||||
},
|
},
|
||||||
aggregator.format(aggregator.value()),
|
!(j < 10) && aggregator.format(aggregator.value()),
|
||||||
j < 10 && getFormatedValue(aggregator, rowKey, colKey)
|
j < 10 && getFormatedValue(aggregator, rowKey, colKey)
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "v-react-pivottable",
|
"name": "v-react-pivottable",
|
||||||
"version": "0.11.24",
|
"version": "0.11.25",
|
||||||
"description": "A React-based pivot table",
|
"description": "A React-based pivot table",
|
||||||
"main": "PivotTableUI.js",
|
"main": "PivotTableUI.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
Loading…
Reference in New Issue
Block a user