dtable-statistic 5.0.42-alpha.22 → 5.0.42-alpha.23
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.
|
@@ -126,6 +126,7 @@ const exportOneDimensionToTable = _ref => {
|
|
|
126
126
|
name: _reactIntlUniversal.default.get('Total'),
|
|
127
127
|
data: columnData
|
|
128
128
|
};
|
|
129
|
+
console.log('totalColumn', totalColumn);
|
|
129
130
|
columns.push(totalColumn);
|
|
130
131
|
|
|
131
132
|
// generator rows
|
|
@@ -162,6 +163,7 @@ const exportOneDimensionToTable = _ref => {
|
|
|
162
163
|
} = item;
|
|
163
164
|
const column = statisticTableColumns.find(column => column.key === key);
|
|
164
165
|
if (column) {
|
|
166
|
+
console.log('column', column);
|
|
165
167
|
const columnName = column.name;
|
|
166
168
|
let columnData;
|
|
167
169
|
let columnType = _dtableUtils.CellType.NUMBER;
|
|
@@ -204,6 +206,18 @@ const exportOneDimensionToTable = _ref => {
|
|
|
204
206
|
}
|
|
205
207
|
});
|
|
206
208
|
|
|
209
|
+
// total column
|
|
210
|
+
const totalColumn = {
|
|
211
|
+
type: _isDateSummaryColumn ? _dtableUtils.CellType.DATE : _dtableUtils.CellType.NUMBER,
|
|
212
|
+
name: _reactIntlUniversal.default.get('Total'),
|
|
213
|
+
// data: columnData,
|
|
214
|
+
data: {
|
|
215
|
+
format: 'number'
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
columnMap[key] = totalColumn;
|
|
219
|
+
columns.push(totalColumn);
|
|
220
|
+
|
|
207
221
|
// generator rows
|
|
208
222
|
pivot_rows.forEach(item => {
|
|
209
223
|
const {
|