dtable-statistic 5.0.42-alpha.17 → 5.0.42-alpha.19

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.
@@ -507,7 +507,6 @@ const updatedOneDimensionToTable = _ref5 => {
507
507
  if (summaryColumn) {
508
508
  columnMap['sumary_column'] = (0, _dtableUtils.getTableColumnByName)(updateTable, summaryColumn.name);
509
509
  }
510
- console.log('columnMap', columnMap);
511
510
 
512
511
  // updated rows
513
512
  pivot_rows.forEach(item => {
@@ -520,6 +519,8 @@ const updatedOneDimensionToTable = _ref5 => {
520
519
  const row = tableRows.find(row => row[nameColumn.key] === groupName);
521
520
  const totalColumn = columnMap['total'];
522
521
  const sumary_column = columnMap['sumary_column'];
522
+ console.log('totalColumn', totalColumn);
523
+ console.log('sumary_column', sumary_column);
523
524
  if (row) {
524
525
  // update old row
525
526
  let updateRow = {};
@@ -530,14 +531,9 @@ const updatedOneDimensionToTable = _ref5 => {
530
531
  oldRow[totalColumn.key] = row[totalColumn.key];
531
532
  }
532
533
  const validSummaryCellValue = getValidValueForColumn(sumary_column, total.total);
533
- console.log(22, row);
534
- console.log(33, validSummaryCellValue);
535
- console.log(44, sumary_column);
536
- console.log(55, (0, _cellValue.isCellValueChanged)(row[sumary_column.key]));
537
534
  if (sumary_column && (0, _cellValue.isCellValueChanged)(row[sumary_column.key], validSummaryCellValue, sumary_column.type)) {
538
535
  updateRow[sumary_column.key] = validSummaryCellValue;
539
536
  oldRow[sumary_column.key] = row[sumary_column.key];
540
- console.log(66, row[sumary_column.key]);
541
537
  }
542
538
  if (Object.keys(updateRow).length > 0) {
543
539
  const rowId = row._id;
@@ -547,6 +543,7 @@ const updatedOneDimensionToTable = _ref5 => {
547
543
  }
548
544
  } else {
549
545
  // insert new row
546
+ console.log('insertrow');
550
547
  let newRow = {};
551
548
  newRow[nameColumn.key] = groupName;
552
549
  if (totalColumn) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "5.0.42-alpha.17",
3
+ "version": "5.0.42-alpha.19",
4
4
  "description": "statistics",
5
5
  "main": "dist/dtable-statistic.js",
6
6
  "author": "seafile",