dtable-statistic 5.0.38-alpha.0 → 5.0.38-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -666,12 +666,15 @@ const updateTwoDimensionToTable = _ref6 => {
|
|
|
666
666
|
let updatedRow = {};
|
|
667
667
|
let oldRow = {}; // op used
|
|
668
668
|
const validTotalCellValue = getValidValueForColumn(totalColumn, total);
|
|
669
|
+
console.log('22validTotalCellValue', validTotalCellValue);
|
|
669
670
|
if (totalColumn && (0, _cellValue.isCellValueChanged)(row[totalColumn.key], validTotalCellValue, totalColumn.type)) {
|
|
671
|
+
console.log('33', validTotalCellValue);
|
|
670
672
|
updatedRow[totalColumn.key] = validTotalCellValue;
|
|
671
673
|
oldRow[totalColumn.key] = row[totalColumn.key];
|
|
672
674
|
}
|
|
673
675
|
const keys = Object.keys(cells);
|
|
674
676
|
if (keys.length === 0) {
|
|
677
|
+
console.log('44', updateColumns);
|
|
675
678
|
updateColumns.forEach(column => {
|
|
676
679
|
const {
|
|
677
680
|
key,
|
|
@@ -684,6 +687,7 @@ const updateTwoDimensionToTable = _ref6 => {
|
|
|
684
687
|
}
|
|
685
688
|
});
|
|
686
689
|
} else {
|
|
690
|
+
console.log('55', cells);
|
|
687
691
|
keys.forEach(key => {
|
|
688
692
|
const columnName = isEmptyName(key) ? _reactIntlUniversal.default.get(_constants.EMPTY_NAME) : key;
|
|
689
693
|
const column = columnMap[columnName];
|
|
@@ -701,7 +705,6 @@ const updateTwoDimensionToTable = _ref6 => {
|
|
|
701
705
|
}
|
|
702
706
|
} else {
|
|
703
707
|
// insert new row
|
|
704
|
-
console.log(22);
|
|
705
708
|
let newRow = {};
|
|
706
709
|
newRow[nameColumnKey] = name;
|
|
707
710
|
if (totalColumn) {
|