@zgfe/modules-event 0.0.2-event.21 → 0.0.2-event.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.
|
@@ -35,6 +35,7 @@ var ContentPanel = function ContentPanel(props) {
|
|
|
35
35
|
indicator: /*#__PURE__*/React.createElement(MiSpin, null)
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
+
console.log('hhhh', searchData);
|
|
38
39
|
return /*#__PURE__*/React.createElement("div", {
|
|
39
40
|
className: classPrefix
|
|
40
41
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -42,8 +43,7 @@ var ContentPanel = function ContentPanel(props) {
|
|
|
42
43
|
}, eventData ? /*#__PURE__*/React.createElement(EventChart, {
|
|
43
44
|
dataSource: eventData,
|
|
44
45
|
params: searchData,
|
|
45
|
-
showList: showList
|
|
46
|
-
onSelectEvent: onSelectEvent
|
|
46
|
+
showList: showList
|
|
47
47
|
}) : /*#__PURE__*/React.createElement(MiNone, {
|
|
48
48
|
label: "\u6682\u65E0\u6570\u636E"
|
|
49
49
|
})), eventData && eventData.series.length > 0 ? /*#__PURE__*/React.createElement(EventChart, {
|
|
@@ -144,12 +144,13 @@ var EventTable = function EventTable(props) {
|
|
|
144
144
|
if (searchData.id && !searchData.dimension || !searchData.id) {
|
|
145
145
|
seriesNames.push(base64.encode('事件'));
|
|
146
146
|
}
|
|
147
|
+
var fname = base64.encode("\u4E8B\u4EF6_".concat((searchData === null || searchData === void 0 ? void 0 : searchData.name) ? searchData === null || searchData === void 0 ? void 0 : searchData.name : '事件概览'));
|
|
147
148
|
var params = _objectSpread(_objectSpread({
|
|
148
149
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
149
150
|
platform: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform) || 0
|
|
150
151
|
}, searchData), {}, {
|
|
151
152
|
down: {
|
|
152
|
-
fname:
|
|
153
|
+
fname: fname,
|
|
153
154
|
titles: seriesNames
|
|
154
155
|
}
|
|
155
156
|
});
|
|
@@ -157,7 +158,7 @@ var EventTable = function EventTable(props) {
|
|
|
157
158
|
method: 'post',
|
|
158
159
|
data: params,
|
|
159
160
|
responseType: 'blob',
|
|
160
|
-
fileName:
|
|
161
|
+
fileName: fname,
|
|
161
162
|
getResponse: true
|
|
162
163
|
}).then(function () {
|
|
163
164
|
message.success('下载成功!');
|
|
@@ -78,6 +78,7 @@ var EventChart = function EventChart(props) {
|
|
|
78
78
|
if (!params) return;
|
|
79
79
|
var chartData = ((_params$chartType = params.chartType) === null || _params$chartType === void 0 ? void 0 : _params$chartType.split(',')) || ['line'];
|
|
80
80
|
var type = (chartData === null || chartData === void 0 ? void 0 : chartData.length) > 1 ? chartData[chartData.length - 1] : chartData[0];
|
|
81
|
+
console.log('更新图表-params', props.type, type, params);
|
|
81
82
|
setChartType(props.type || type);
|
|
82
83
|
if (params.id) {
|
|
83
84
|
var dimensions = params.dimension;
|
|
@@ -146,6 +147,7 @@ var EventChart = function EventChart(props) {
|
|
|
146
147
|
src: emptyImg
|
|
147
148
|
}), /*#__PURE__*/React.createElement("p", null, "\u6682\u65E0\u6570\u636E"));
|
|
148
149
|
} else {
|
|
150
|
+
console.log('chartBox渲染BizChart', chartType);
|
|
149
151
|
return /*#__PURE__*/React.createElement("div", {
|
|
150
152
|
className: "".concat(classPrefix, "-chart-box")
|
|
151
153
|
}, dataUpdateTime(), /*#__PURE__*/React.createElement(BizChart, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-event",
|
|
3
|
-
"version": "0.0.2-event.
|
|
3
|
+
"version": "0.0.2-event.23",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react": "^16.12.0 || ^17.0.0",
|
|
50
50
|
"yorkie": "^2.0.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "67c03895b134eb0fa0d9f18229efe15dd4ead27f",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"react-copy-to-clipboard": "^5.1.0",
|
|
55
55
|
"react-highlight": "^0.15.0"
|