dtable-statistic 5.0.29-alpha.0 → 5.0.29-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.
|
@@ -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,10 +100,11 @@ class StatList extends _react.Component {
|
|
|
105
100
|
});
|
|
106
101
|
};
|
|
107
102
|
this.updateChart2Table = (selectedTableId, chartUpdate2Table) => {
|
|
103
|
+
var _chartUpdate2Table$co;
|
|
108
104
|
const {
|
|
109
105
|
getTableById
|
|
110
106
|
} = this.props;
|
|
111
|
-
if (chartUpdate2Table.type !== _seaChart.CHART_TYPE.TABLE) {
|
|
107
|
+
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
108
|
this.statisticalResult4Update = null;
|
|
113
109
|
_toaster2.default.danger(_reactIntlUniversal.default.get('Failed_export_statistic_to_Table'));
|
|
114
110
|
this.closeSelectTableDialog();
|