dtable-statistic 5.0.42-alpha.29 → 5.0.42-alpha.30

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.
@@ -605,10 +605,10 @@ const updatedOneDimensionToTable = _ref5 => {
605
605
  } = item;
606
606
  const groupName = isEmptyName(original_name) ? _reactIntlUniversal.default.get(_constants.EMPTY_NAME) : name;
607
607
  const row = tableRows.find(row => row[nameColumnKey] === groupName);
608
+ let rowTotal = 0;
608
609
  if (row) {
609
610
  let updateRow = {};
610
611
  let oldRow = {};
611
- let rowTotal = 0;
612
612
  Array.isArray(pivot_columns) && pivot_columns.forEach(item => {
613
613
  const {
614
614
  key
@@ -619,11 +619,14 @@ const updatedOneDimensionToTable = _ref5 => {
619
619
  if (column && (0, _cellValue.isCellValueChanged)(row[column.key], totalCellValue, column.type)) {
620
620
  updateRow[column.key] = totalCellValue;
621
621
  oldRow[column.key] = row[column.key];
622
+ console.log('totalCellValue', Number(totalCellValue));
622
623
  rowTotal = rowTotal + Number(totalCellValue);
623
624
  }
624
625
  });
625
626
 
626
627
  // total column
628
+ console.log('row', row);
629
+ console.log('item', item);
627
630
  console.log('rowTotal', rowTotal);
628
631
  updateRow[_reactIntlUniversal.default.get('Total')] = rowTotal;
629
632
  oldRow[_reactIntlUniversal.default.get('Total')] = row[_reactIntlUniversal.default.get('Total')];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "5.0.42-alpha.29",
3
+ "version": "5.0.42-alpha.30",
4
4
  "description": "statistics",
5
5
  "main": "dist/dtable-statistic.js",
6
6
  "author": "seafile",