@zgfe/modules-event 1.0.7 → 1.0.29-zhongyuan.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.
Files changed (43) hide show
  1. package/README.md +35 -35
  2. package/es/components/eventFilter/index.js +68 -20
  3. package/es/components/eventFilter/setCascade.d.ts +3 -0
  4. package/es/components/eventFilter/setCascade.js +286 -0
  5. package/es/components/eventFilter/styles/index.less +148 -36
  6. package/es/components/renderContent/index.js +14 -25
  7. package/es/components/renderContent/styles/index.less +19 -19
  8. package/es/components/renderContent/types.d.ts +0 -1
  9. package/es/components/searchPanel/index.js +19 -6
  10. package/es/components/searchPanel/styles/index.less +22 -18
  11. package/es/components/searchPanel/types.d.ts +2 -2
  12. package/es/components/table/index.js +60 -9
  13. package/es/components/table/styles/index.less +241 -193
  14. package/es/components/table/types.d.ts +0 -1
  15. package/es/components/topBar/index.d.ts +6 -1
  16. package/es/components/topBar/index.js +39 -22
  17. package/es/components/topBar/styles/index.less +58 -63
  18. package/es/components/topBar/types.d.ts +0 -1
  19. package/es/constants/apis.d.ts +3 -1
  20. package/es/constants/apis.js +4 -2
  21. package/es/constants/fields.d.ts +0 -14
  22. package/es/constants/fields.js +1 -45
  23. package/es/modules/chart/demo/panel.js +7 -2
  24. package/es/modules/chart/index.js +105 -36
  25. package/es/modules/chart/types.d.ts +3 -0
  26. package/es/modules/content/index.d.ts +1 -1
  27. package/es/modules/content/index.js +94 -55
  28. package/es/modules/content/styles/index.less +19 -7
  29. package/es/modules/content/utils.d.ts +1 -1
  30. package/es/modules/content/utils.js +19 -18
  31. package/es/modules/home/demo/edit.js +6 -7
  32. package/es/modules/home/demo/index.js +1 -1
  33. package/es/modules/home/demo/styles/index.less +33 -33
  34. package/es/modules/home/index.js +53 -35
  35. package/es/modules/home/styles/index.less +49 -49
  36. package/es/modules/topPanel/index.js +36 -8
  37. package/es/modules/topPanel/styles/index.less +50 -49
  38. package/es/style/image/ring.svg +8 -8
  39. package/es/style/index.less +62 -62
  40. package/es/types.d.ts +6 -0
  41. package/es/utils/formData.d.ts +2 -1
  42. package/es/utils/formData.js +39 -9
  43. package/package.json +24 -20
@@ -1,11 +1,4 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import { Empty } from 'antd';
8
- import React, { useState, useContext, useEffect } from 'react';
1
+ import React, { useContext } from 'react';
9
2
  import { BizLoading } from '@zgfe/business-lib';
10
3
  import { EventContext } from '../../types';
11
4
  import './styles/index.less';
@@ -16,19 +9,15 @@ var ContentPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
16
9
  searchData = props.searchData;
17
10
  var _useContext = useContext(EventContext),
18
11
  loading = _useContext.loading,
19
- onSelectEvent = _useContext.onSelectEvent;
20
- var _useState = useState(props.showList || []),
21
- _useState2 = _slicedToArray(_useState, 2),
22
- showList = _useState2[0],
23
- setShowList = _useState2[1];
24
- useEffect(function () {
25
- setShowList(props.showList);
26
- }, [eventData]);
12
+ refreshLoading = _useContext.refreshLoading,
13
+ onSelectEvent = _useContext.onSelectEvent,
14
+ showListHome = _useContext.showListHome,
15
+ setShowListHome = _useContext.setShowListHome,
16
+ completedSearchData = _useContext.completedSearchData;
27
17
  var onChangeShow = function onChangeShow(names) {
28
- setShowList(names);
29
- if (props.onChangeShow) props.onChangeShow(names);
18
+ setShowListHome(names);
30
19
  };
31
- if (loading) {
20
+ if (loading || refreshLoading) {
32
21
  return /*#__PURE__*/React.createElement(BizLoading, {
33
22
  className: "".concat(classPrefix, "-loading")
34
23
  });
@@ -37,19 +26,19 @@ var ContentPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
37
26
  className: classPrefix
38
27
  }, /*#__PURE__*/React.createElement("div", {
39
28
  className: "".concat(classPrefix, "-chart-container")
40
- }, eventData ? /*#__PURE__*/React.createElement(EventChart, {
29
+ }, /*#__PURE__*/React.createElement(EventChart, {
41
30
  ref: ref,
42
31
  dataSource: eventData,
43
32
  params: searchData,
44
- showList: showList
45
- }) : /*#__PURE__*/React.createElement(Empty, {
46
- image: Empty.PRESENTED_IMAGE_SIMPLE,
47
- description: "\u6682\u65E0\u6570\u636E"
33
+ completedSearchData: completedSearchData,
34
+ showList: showListHome
48
35
  })), eventData && eventData.series.length > 0 ? /*#__PURE__*/React.createElement(EventChart, {
49
36
  type: "grid",
37
+ isHideDel: true,
50
38
  dataSource: eventData,
51
39
  params: searchData,
52
- showList: showList,
40
+ completedSearchData: completedSearchData,
41
+ showList: showListHome,
53
42
  onChangeShow: onChangeShow,
54
43
  onSelectEvent: onSelectEvent
55
44
  }) : null);
@@ -1,19 +1,19 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/variable.less';
2
-
3
- .render-content {
4
- &-chart-container {
5
- display: flex;
6
- align-items: center;
7
- justify-content: center;
8
- height: 392px;
9
- padding: @padding-lg;
10
- border: 1px solid @border-color-base;
11
- border-radius: @border-radius-normal;
12
- .echarts-for-react {
13
- width: 100%;
14
- }
15
- }
16
- &-loading {
17
- min-height: 300px;
18
- }
19
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/variable.less';
2
+
3
+ .render-content {
4
+ &-chart-container {
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ height: 392px;
9
+ padding: @padding-lg;
10
+ border: 1px solid @border-color-base;
11
+ border-radius: @border-radius-normal;
12
+ .echarts-for-react {
13
+ width: 100%;
14
+ }
15
+ }
16
+ &-loading {
17
+ min-height: 300px;
18
+ }
19
+ }
@@ -2,7 +2,6 @@ import { SearchValue, ResponseDataProps } from '../../types';
2
2
  export interface RenderContentProps {
3
3
  eventData?: ResponseDataProps;
4
4
  searchData?: SearchValue;
5
- showList: string[];
6
5
  isCity?: boolean;
7
6
  afterEditTarget?: (type: string, value?: any) => void;
8
7
  onChangeShow?: (data: string[]) => void;
@@ -10,7 +10,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
10
10
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
11
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
- import { BizDatePicker, BizSelect, BizTargetDimension, useChanged } from '@zgfe/business-lib';
13
+ import { BizSelect, BizTargetDimension, useChanged, IconFont, BizDatePickerV2 } from '@zgfe/business-lib';
14
+ import { Button } from 'antd';
14
15
  import React, { useContext, useEffect, useState } from 'react';
15
16
  import { chartTypeOptions, getInitDate } from '../../constants';
16
17
  import { EventContext } from '../../types';
@@ -20,7 +21,9 @@ var classPrefix = 'search-panel';
20
21
  var SearchPanel = function SearchPanel(props) {
21
22
  var _useContext = useContext(EventContext),
22
23
  includeToday = _useContext.includeToday,
23
- searchData = _useContext.searchData;
24
+ searchData = _useContext.searchData,
25
+ currentApp = _useContext.currentApp,
26
+ refreshLoading = _useContext.refreshLoading;
24
27
  var analysisSubjectType = props.analysisSubjectType,
25
28
  dimension = props.dimension,
26
29
  setDimension = props.setDimension;
@@ -32,7 +35,7 @@ var SearchPanel = function SearchPanel(props) {
32
35
  _useState4 = _slicedToArray(_useState3, 2),
33
36
  chart = _useState4[0],
34
37
  setChart = _useState4[1];
35
- var currentNormalOptions = analysisSubjectType === 'user' ? normalOptions : normalEventOptions;
38
+ var currentNormalOptions = analysisSubjectType === 'user' ? normalOptions(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) : normalEventOptions;
36
39
  useEffect(function () {
37
40
  if (searchData.chartType && searchData.chartType !== chart.value) {
38
41
  if (searchData.chartType.indexOf(',') !== -1) {
@@ -89,10 +92,11 @@ var SearchPanel = function SearchPanel(props) {
89
92
  style: {
90
93
  display: 'flex'
91
94
  }
92
- }, /*#__PURE__*/React.createElement(BizDatePicker, {
95
+ }, /*#__PURE__*/React.createElement(BizDatePickerV2, {
93
96
  defaultValue: time,
94
97
  onChange: onChangeTime,
95
- selectRange: 365
98
+ selectRange: 365,
99
+ selectRangeUnit: "days"
96
100
  }), /*#__PURE__*/React.createElement(BizTargetDimension, {
97
101
  normalOptions: currentNormalOptions,
98
102
  value: dimension,
@@ -101,7 +105,16 @@ var SearchPanel = function SearchPanel(props) {
101
105
  onChange: onDimensionChange
102
106
  })), /*#__PURE__*/React.createElement("div", {
103
107
  className: "".concat(classPrefix, "-search-right")
104
- }, props.optionNode, /*#__PURE__*/React.createElement(BizSelect, {
108
+ }, /*#__PURE__*/React.createElement(Button, {
109
+ className: "".concat(classPrefix, "-search-right-refresh"),
110
+ icon: /*#__PURE__*/React.createElement(IconFont, {
111
+ type: "zhongxinjiazai"
112
+ }),
113
+ loading: refreshLoading,
114
+ onClick: function onClick() {
115
+ return props.refreshHandle();
116
+ }
117
+ }, "\u5237\u65B0"), /*#__PURE__*/React.createElement(BizSelect, {
105
118
  className: "".concat(classPrefix, "-select"),
106
119
  options: chartTypeOptions,
107
120
  defaultValue: chart,
@@ -1,18 +1,22 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/variable.less';
2
-
3
- .search-panel {
4
- display: flex;
5
- align-items: center;
6
- justify-content: space-between;
7
- height: 32px;
8
- margin-bottom: 24px;
9
-
10
- &-search-right {
11
- display: flex;
12
- }
13
-
14
- &-select {
15
- width: 112px;
16
- margin-left: 16px;
17
- }
18
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/variable.less';
2
+
3
+ .search-panel {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ height: 32px;
8
+ margin-bottom: 24px;
9
+
10
+ &-search-right {
11
+ display: flex;
12
+ gap: 16px;
13
+ &-refresh {
14
+ display: flex !important;
15
+ gap: 4px;
16
+ }
17
+ }
18
+
19
+ &-select {
20
+ width: 112px;
21
+ }
22
+ }
@@ -1,6 +1,5 @@
1
1
  import { DatePickerTypes } from '@zgfe/business-lib/es/datePicker/types';
2
2
  import { EventChartTypes } from '../../types';
3
- import { ReactNode } from 'react';
4
3
  import { TargetConditionTypes } from '@zgfe/business-lib';
5
4
  export interface AnalysisSubject {
6
5
  subjectId?: number;
@@ -11,13 +10,13 @@ export interface AnalysisSubject {
11
10
  subjectName?: string;
12
11
  }
13
12
  export interface SearchPanelProps {
13
+ refreshHandle: Function;
14
14
  analysisIndex?: string;
15
15
  analysisAttr?: string;
16
16
  enableSelectChart?: boolean;
17
17
  time?: DatePickerTypes.Value;
18
18
  eventId?: number;
19
19
  chartType?: EventChartTypes;
20
- optionNode?: ReactNode;
21
20
  onChange?: (data: SearchPanelProps) => void;
22
21
  setIsCity?: Function;
23
22
  setEnableSelectChart?: Function;
@@ -25,4 +24,5 @@ export interface SearchPanelProps {
25
24
  analysisSubject?: AnalysisSubject;
26
25
  dimension?: TargetConditionTypes.DimensionValue;
27
26
  setDimension?: Function;
27
+ optionNode?: any;
28
28
  }
@@ -4,6 +4,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
6
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
8
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
10
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
11
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
12
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
13
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -17,7 +21,7 @@ import { CopyToClipboard } from 'react-copy-to-clipboard';
17
21
  import 'highlight.js/styles/vs.css';
18
22
  import base64 from '../../utils/base64';
19
23
  import { Apis } from '../../constants';
20
- import { Modal, message, Table, ConfigProvider, Empty } from 'antd';
24
+ import { Modal, message, Table, ConfigProvider, Empty, Tooltip } from 'antd';
21
25
  import { formTableData, getColumns } from '../../utils/formData';
22
26
  import './styles/index.less';
23
27
  import { getValue } from '../../modules/content/utils';
@@ -34,17 +38,18 @@ var EventTable = function EventTable(props) {
34
38
  tableData = _useState2[0],
35
39
  setTableData = _useState2[1];
36
40
  var _useContext = useContext(BizGlobalDataContext),
37
- currentApp = _useContext.currentApp,
38
41
  _useContext$eventGrou = _useContext.eventGroupList,
39
42
  eventGroupList = _useContext$eventGrou === void 0 ? [] : _useContext$eventGrou,
40
43
  eventEnvList = _useContext.eventEnvList,
41
44
  userPropList = _useContext.userPropList,
45
+ userGroupList = _useContext.userGroupList,
42
46
  authority = _useContext.authority;
43
47
  var _useContext2 = useContext(EventContext),
44
48
  onUserDrill = _useContext2.onUserDrill,
45
49
  _useContext2$defaultS = _useContext2.defaultSearch,
46
50
  defaultSearch = _useContext2$defaultS === void 0 ? {} : _useContext2$defaultS,
47
- panelName = _useContext2.panelName;
51
+ panelName = _useContext2.panelName,
52
+ currentApp = _useContext2.currentApp;
48
53
  var _useState3 = useState(false),
49
54
  _useState4 = _slicedToArray(_useState3, 2),
50
55
  sqlModal = _useState4[0],
@@ -65,11 +70,37 @@ var EventTable = function EventTable(props) {
65
70
  _useState12 = _slicedToArray(_useState11, 2),
66
71
  total = _useState12[0],
67
72
  setTotal = _useState12[1];
73
+ var _useState13 = useState(),
74
+ _useState14 = _slicedToArray(_useState13, 2),
75
+ pvTitle = _useState14[0],
76
+ setPvTitle = _useState14[1];
68
77
  useEffect(function () {
69
78
  var gLen = (searchData === null || searchData === void 0 ? void 0 : searchData.dimension) ? 1 : 0;
70
79
  var _data = formTableData(dataSource, searchData.userGroup || [0], gLen);
71
80
  setTotal(_data.length);
72
- setTableData(_data);
81
+ var dataAll = [];
82
+ if (dataSource.userGroupEventTimeSum) {
83
+ dataSource.userGroupEventTimeSum.map(function (item) {
84
+ var data = {
85
+ eventName: '总计',
86
+ dimension: '总计',
87
+ isAdd: true,
88
+ id: Math.random(),
89
+ name: '总计',
90
+ nameGroup: '总计',
91
+ originalName: '总计',
92
+ userGroup: Object.keys(item)[0]
93
+ };
94
+ Object.values(item)[0].forEach(function (item, index) {
95
+ data["field".concat(index)] = item;
96
+ });
97
+ dataAll.push(data);
98
+ });
99
+ setPvTitle(dataSource.eventPvTitle.split(';').map(function (item) {
100
+ return item.split(' ');
101
+ }));
102
+ }
103
+ setTableData([].concat(dataAll, _toConsumableArray(_data)));
73
104
  }, []);
74
105
  var columns = useMemo(function () {
75
106
  var _searchData$userGroup = searchData.userGroup,
@@ -79,6 +110,14 @@ var EventTable = function EventTable(props) {
79
110
  };
80
111
  var onClickToDetail = function onClickToDetail(item, time, count) {
81
112
  var _searchData$filters;
113
+ var userGroupData = userGroup[0] == null ? [] : [userGroup[0]];
114
+ if ((userGroup === null || userGroup === void 0 ? void 0 : userGroup.length) > 1) {
115
+ userGroupList && userGroupList.forEach(function (user) {
116
+ if (user.name === item.userGroup) {
117
+ userGroupData = [user.id];
118
+ }
119
+ });
120
+ }
82
121
  var _time = time.split('|');
83
122
  var groupValue = '';
84
123
  if (searchData.dimension && item.dimension) {
@@ -100,7 +139,7 @@ var EventTable = function EventTable(props) {
100
139
  params: {
101
140
  groupValue: groupValue,
102
141
  id: searchData.id,
103
- userGroup: searchData.userGroup,
142
+ userGroup: userGroupData,
104
143
  chartType: searchData.chartType,
105
144
  conditions: (_searchData$filters = searchData.filters) === null || _searchData$filters === void 0 ? void 0 : _searchData$filters.conditions,
106
145
  dimension: searchData.dimension,
@@ -128,7 +167,7 @@ var EventTable = function EventTable(props) {
128
167
  method: 'post',
129
168
  data: _objectSpread({
130
169
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
131
- platform: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform) || 0,
170
+ platform: (searchData === null || searchData === void 0 ? void 0 : searchData.platform) || 0,
132
171
  service: !searchData.dimension ? 'event/overview_sql' : 'event_sql'
133
172
  }, searchData)
134
173
  }).then(function (res) {
@@ -140,7 +179,7 @@ var EventTable = function EventTable(props) {
140
179
  };
141
180
  var download = function download() {
142
181
  var seriesNames = [];
143
- if (searchData.userGroup && searchData.userGroup.length > 1) {
182
+ if (searchData.userGroup && (searchData.userGroup.length > 1 || searchData.userGroup[0] !== 0)) {
144
183
  seriesNames.push(base64.encode('用户群'));
145
184
  }
146
185
  if (searchData.dimension) {
@@ -152,7 +191,7 @@ var EventTable = function EventTable(props) {
152
191
  var fname = "\u4E8B\u4EF6\u5206\u6790-".concat((searchData === null || searchData === void 0 ? void 0 : searchData.name) ? getEventAliasName(searchData === null || searchData === void 0 ? void 0 : searchData.name, eventGroupList) : '事件概览');
153
192
  var params = _objectSpread(_objectSpread({
154
193
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
155
- platform: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform) || 0
194
+ platform: (searchData === null || searchData === void 0 ? void 0 : searchData.platform) || 0
156
195
  }, searchData), {}, {
157
196
  down: {
158
197
  fname: base64.encode(fname),
@@ -183,7 +222,18 @@ var EventTable = function EventTable(props) {
183
222
  className: classPrefix
184
223
  }, !sourcePanel && /*#__PURE__*/React.createElement("div", {
185
224
  className: "".concat(classPrefix, "-table-header")
186
- }, /*#__PURE__*/React.createElement("span", null, "\u6307\u6807\u8BE6\u60C5"), /*#__PURE__*/React.createElement("div", null, authority[100051] && /*#__PURE__*/React.createElement("div", {
225
+ }, /*#__PURE__*/React.createElement("span", {
226
+ className: "".concat(classPrefix, "-table-header-left")
227
+ }, "\u6307\u6807\u8BE6\u60C5", pvTitle && pvTitle.length ? /*#__PURE__*/React.createElement("div", {
228
+ className: "".concat(classPrefix, "-table-header-left-box")
229
+ }, "\uFF08\u4E8B\u4EF6\u603B\u91CF\uFF1A", /*#__PURE__*/React.createElement("div", {
230
+ className: "".concat(classPrefix, "-table-header-left-content")
231
+ }, pvTitle.map(function (item, index) {
232
+ return /*#__PURE__*/React.createElement(Tooltip, {
233
+ title: item[0] + ':' + item[1],
234
+ key: index
235
+ }, /*#__PURE__*/React.createElement("span", null, item[0], "\uFF1A"), /*#__PURE__*/React.createElement("span", null, item[1], index === pvTitle.length - 1 ? '' : ' | '));
236
+ }), "\uFF09")) : null), /*#__PURE__*/React.createElement("div", null, authority[100051] && /*#__PURE__*/React.createElement("div", {
187
237
  onClick: seeSql
188
238
  }, "\u67E5\u770BSQL"), authority[100050] && /*#__PURE__*/React.createElement("div", {
189
239
  onClick: download
@@ -203,6 +253,7 @@ var EventTable = function EventTable(props) {
203
253
  },
204
254
  pagination: {
205
255
  showQuickJumper: true,
256
+ showSizeChanger: true,
206
257
  total: total,
207
258
  defaultPageSize: 10,
208
259
  defaultCurrent: 1,