dtable-statistic 5.0.29-alpha.0 → 5.0.29-alpha.2
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.
|
@@ -59,7 +59,6 @@ class ChartPreview extends _react.Component {
|
|
|
59
59
|
};
|
|
60
60
|
this.onNewTableDialogToggle = () => {
|
|
61
61
|
const statisticalResult = this.chartView && this.chartView.getStatData();
|
|
62
|
-
console.log('statisticalResult', statisticalResult);
|
|
63
62
|
statisticalResult && this.props.showNewTableDialog({
|
|
64
63
|
statisticalResult
|
|
65
64
|
});
|
package/es/stat-list/index.js
CHANGED
|
@@ -62,7 +62,6 @@ class StatList extends _react.Component {
|
|
|
62
62
|
};
|
|
63
63
|
this.exportChart2Table = (tableName, chart) => {
|
|
64
64
|
var _chart$config;
|
|
65
|
-
console.log('exportChart2Table', tableName, chart);
|
|
66
65
|
if ((chart === null || chart === void 0 ? void 0 : (_chart$config = chart.config) === null || _chart$config === void 0 ? void 0 : _chart$config.type) !== _seaChart.CHART_TYPE.TABLE) {
|
|
67
66
|
this.statisticalResult4Export = null;
|
|
68
67
|
_toaster2.default.danger(_reactIntlUniversal.default.get('Failed_export_statistic_to_Table'));
|
|
@@ -73,23 +72,19 @@ class StatList extends _react.Component {
|
|
|
73
72
|
if (!this.statisticalResult4Export) {
|
|
74
73
|
return;
|
|
75
74
|
}
|
|
76
|
-
console.log('this.statisticalResult4Export', this.statisticalResult4Export);
|
|
77
75
|
const {
|
|
78
76
|
columns,
|
|
79
77
|
rows
|
|
80
78
|
} = (0, _exportTableUtils.exportStatisticToTable)({
|
|
81
79
|
statisticalResult: this.statisticalResult4Export
|
|
82
80
|
});
|
|
83
|
-
console.log('columns-rows', columns, rows);
|
|
84
81
|
if (window.app && window.app.onExportStatisticToTable) {
|
|
85
|
-
console.log(111);
|
|
86
82
|
window.app.onExportStatisticToTable({
|
|
87
83
|
tableName,
|
|
88
84
|
columns,
|
|
89
85
|
rows
|
|
90
86
|
});
|
|
91
87
|
}
|
|
92
|
-
console.log(222);
|
|
93
88
|
this.statisticalResult4Export = null;
|
|
94
89
|
this.props.onCloseDashboard();
|
|
95
90
|
};
|
|
@@ -105,16 +100,20 @@ class StatList extends _react.Component {
|
|
|
105
100
|
});
|
|
106
101
|
};
|
|
107
102
|
this.updateChart2Table = (selectedTableId, chartUpdate2Table) => {
|
|
103
|
+
var _chartUpdate2Table$co;
|
|
104
|
+
console.log('updateChart2Table', selectedTableId, chartUpdate2Table);
|
|
108
105
|
const {
|
|
109
106
|
getTableById
|
|
110
107
|
} = this.props;
|
|
111
|
-
if (chartUpdate2Table.type !== _seaChart.CHART_TYPE.TABLE) {
|
|
108
|
+
if ((chartUpdate2Table === null || chartUpdate2Table === void 0 ? void 0 : (_chartUpdate2Table$co = chartUpdate2Table.config) === null || _chartUpdate2Table$co === void 0 ? void 0 : _chartUpdate2Table$co.type) !== _seaChart.CHART_TYPE.TABLE) {
|
|
112
109
|
this.statisticalResult4Update = null;
|
|
113
110
|
_toaster2.default.danger(_reactIntlUniversal.default.get('Failed_export_statistic_to_Table'));
|
|
114
111
|
this.closeSelectTableDialog();
|
|
115
112
|
return;
|
|
116
113
|
}
|
|
117
114
|
const updateTable = getTableById(selectedTableId);
|
|
115
|
+
console.log('this.statisticalResult4Update', this.statisticalResult4Update);
|
|
116
|
+
console.log('updateTable', updateTable);
|
|
118
117
|
this.closeSelectTableDialog();
|
|
119
118
|
if (!this.statisticalResult4Update || !updateTable) {
|
|
120
119
|
return;
|
|
@@ -128,7 +127,9 @@ class StatList extends _react.Component {
|
|
|
128
127
|
updateTable,
|
|
129
128
|
statisticalResult: this.statisticalResult4Update
|
|
130
129
|
});
|
|
130
|
+
console.log('newRows, updatedRows, rowIds, oldRows', newRows, updatedRows, rowIds, oldRows);
|
|
131
131
|
if (window.app && window.app.onUpdateStatisticToTable) {
|
|
132
|
+
console.log(111);
|
|
132
133
|
window.app.onUpdateStatisticToTable({
|
|
133
134
|
tableId: selectedTableId,
|
|
134
135
|
newRows,
|