@zgfe/modules-event 1.0.29-zhongyuanE.2 → 1.0.29-zhongyuanE.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.
@@ -1,236 +1,236 @@
1
- .event-mi-table {
2
- margin-top: 16px;
3
- }
4
- .event-mi-table-loading {
5
- min-height: 300px;
6
- }
7
- .event-mi-table-table-header {
8
- display: flex;
9
- align-items: center;
10
- justify-content: space-between;
11
- height: 50px;
12
- margin-bottom: -1px;
13
- padding: 0 12px;
14
- line-height: 50px;
15
- background: #fafafb;
16
- border: 1px solid #e6e7ea;
17
- border-radius: 8px 8px 0 0;
18
- }
19
- .event-mi-table-table-header > :nth-child(2) {
20
- display: flex;
21
- }
22
- .event-mi-table-table-header > :nth-child(2) > :nth-child(1) {
23
- margin-right: 16px;
24
- }
25
- .event-mi-table-table-header > :nth-child(2) div {
26
- height: 32px;
27
- padding: 0 16px;
28
- line-height: 32px;
29
- background: #fff;
30
- border: 1px solid #f2f3f4;
31
- border-radius: 4px;
32
- cursor: pointer;
33
- }
34
- .event-mi-table-table-header > :nth-child(2) div .xiazai1 {
35
- margin-right: 4px;
36
- font-size: 18px !important;
37
- vertical-align: -2px;
38
- }
39
- .event-mi-table-table-header > :nth-child(2) div:hover {
40
- color: #165dff;
41
- background: #e8efff;
42
- border: 1px solid #165dff;
43
- }
44
- .event-mi-table-table-header > :nth-child(2) div:active {
45
- color: #1454e5;
46
- background: #e8efff;
47
- border: 1px solid #1454e5;
48
- }
49
- .event-mi-table-table-header-left {
50
- display: flex;
51
- flex: 1;
52
- flex-direction: row;
53
- overflow: hidden;
54
- }
55
- .event-mi-table-table-header-left-box {
56
- display: flex;
57
- flex: 1;
58
- flex-direction: row;
59
- overflow: hidden;
60
- color: #67727f;
61
- }
62
- .event-mi-table-table-header-left-content {
63
- display: flex;
64
- flex: 1;
65
- flex-direction: row;
66
- overflow: hidden;
67
- color: #67727f;
68
- }
69
- .event-mi-table-table-header-left-content > span {
70
- display: flex;
71
- flex-direction: row;
72
- max-width: 33.33%;
73
- overflow: hidden;
74
- }
75
- .event-mi-table-table-header-left-content > span :first-child {
76
- overflow: hidden;
77
- white-space: nowrap;
78
- text-overflow: ellipsis;
79
- }
80
- .event-mi-table-table-header-left-content > span :nth-child(2) {
81
- flex: 1;
82
- white-space: nowrap;
83
- }
84
- .event-mi-table .ant-table {
85
- border-radius: 0 0 8px 8px;
86
- }
87
- .event-mi-table .sourcepanel-table-header {
88
- overflow: hidden;
89
- border-radius: 8px 8px 0 0;
90
- }
91
- .event-mi-table .sourcepanel-table-header .ant-table {
92
- max-height: none;
93
- }
94
- .event-mi-table .ant-pagination {
95
- margin-top: 24px !important;
96
- }
97
- .event-mi-table .ant-table .ant-table-thead .ant-table-cell.ant-table-column-has-sorters .ant-table-column-sorters {
98
- justify-content: flex-end !important;
99
- }
100
- .event-mi-table .ant-table-cell-with-append {
101
- padding-left: 20px;
102
- }
103
- .event-mi-table .ant-table-cell-with-append .ant-table-row-expand-icon {
104
- position: absolute;
105
- left: 0;
106
- margin-top: 0;
107
- }
108
- .event-mi-table .tooltip-userGroup-box {
109
- display: flex;
110
- max-width: 330px;
111
- overflow: hidden;
112
- white-space: nowrap;
113
- text-overflow: ellipsis;
114
- }
115
- .event-mi-table .tooltip-userGroup-box div {
116
- max-width: 330px;
117
- overflow: hidden;
118
- white-space: nowrap;
119
- text-overflow: ellipsis;
120
- }
121
- .event-mi-table .tooltip-name-box {
122
- display: flex;
123
- }
124
- .event-mi-table .tooltip-name-box-market {
125
- width: 180px;
126
- margin-right: 8px;
127
- overflow: hidden;
128
- white-space: nowrap;
129
- text-overflow: ellipsis;
130
- cursor: pointer;
131
- -webkit-line-clamp: 1;
132
- -webkit-box-orient: vertical;
133
- }
134
- .event-mi-table .tooltip-name-box-market .shoucang {
135
- color: #fd9f41;
136
- font-size: 16px !important;
137
- }
138
- .event-mi-table .tooltip-name-box-market .notshoucang {
139
- opacity: 0;
140
- }
141
- .event-mi-table .tooltip-name-box .fuzhi1 {
142
- display: none;
143
- font-size: 16px !important;
144
- }
145
- .event-mi-table .tooltip-name-box .fuzhi1:hover {
146
- color: #165dff;
147
- }
148
- .event-mi-table .tooltip-name-box:hover .fuzhi1 {
149
- display: block;
150
- }
151
- .event-mi-table-table-empty img {
152
- width: 50px !important;
153
- height: auto;
154
- margin-top: 30px;
155
- margin-bottom: 10px;
156
- }
157
- .event-mi-table-table-empty p {
158
- color: rgba(0, 0, 0, 0.25);
159
- }
160
- .event-mi-table-chart-box {
161
- display: flex;
162
- flex-direction: column;
163
- width: 100%;
164
- }
165
- .event-mi-table-chart-box-tooltip {
166
- width: 200px;
167
- margin-bottom: 24px;
168
- color: #67727f;
169
- font-size: 12px;
170
- }
171
- .event-table-sql-modal .ant-modal {
172
- width: 720px !important;
173
- }
174
- .event-table-sql-modal .ant-modal-header {
175
- position: relative;
176
- z-index: 1;
177
- height: 82px;
178
- background: transparent;
179
- }
180
- .event-table-sql-modal .ant-modal-body {
181
- padding: 0 24px 24px 24px;
182
- }
183
- .event-table-sql-modal .ant-modal-close-x {
184
- margin-top: 13px;
185
- margin-right: 8px;
186
- }
187
- .event-table-sql-modal img {
188
- width: 100%;
189
- }
190
- .event-table-sql-modal .qingchu {
191
- font-weight: 500;
192
- font-size: 22px !important;
193
- }
194
- .event-table-sql-modal .modal-bg {
195
- position: absolute;
196
- top: 0;
197
- left: 0;
198
- width: 100%;
199
- height: auto;
200
- }
201
- .event-table-sql-modal pre {
202
- margin-bottom: 0;
203
- }
204
- .event-table-sql-modal .hljs {
205
- height: 400px;
206
- padding: 16px;
207
- padding-bottom: 0;
208
- background: #fafafb;
209
- border-radius: 8px;
210
- }
211
- .event-table-sql-modal .copy-box {
212
- position: absolute;
213
- top: 98px;
214
- right: 40px;
215
- padding: 0 8px;
216
- background: #f2f3f4;
217
- border-radius: 4px;
218
- }
219
- .event-table-sql-modal .copy-box .fuzhi1 {
220
- margin-right: 8px;
221
- }
222
- .event-table-sql-modal .copy-box:hover {
223
- color: #165dff;
224
- background: #e8efff;
225
- }
226
- .event-table-sql-modal .copy-box:active {
227
- color: #1454e5;
228
- background: #e8efff;
229
- }
230
- .ant-modal-content {
231
- position: relative;
232
- }
233
- .ant-modal-content .sql-tip {
234
- position: absolute;
235
- bottom: 30px;
236
- }
1
+ .event-mi-table {
2
+ margin-top: 16px;
3
+ }
4
+ .event-mi-table-loading {
5
+ min-height: 300px;
6
+ }
7
+ .event-mi-table-table-header {
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-between;
11
+ height: 50px;
12
+ margin-bottom: -1px;
13
+ padding: 0 12px;
14
+ line-height: 50px;
15
+ background: #fafafb;
16
+ border: 1px solid #e6e7ea;
17
+ border-radius: 8px 8px 0 0;
18
+ }
19
+ .event-mi-table-table-header > :nth-child(2) {
20
+ display: flex;
21
+ }
22
+ .event-mi-table-table-header > :nth-child(2) > :nth-child(1) {
23
+ margin-right: 16px;
24
+ }
25
+ .event-mi-table-table-header > :nth-child(2) div {
26
+ height: 32px;
27
+ padding: 0 16px;
28
+ line-height: 32px;
29
+ background: #fff;
30
+ border: 1px solid #f2f3f4;
31
+ border-radius: 4px;
32
+ cursor: pointer;
33
+ }
34
+ .event-mi-table-table-header > :nth-child(2) div .xiazai1 {
35
+ margin-right: 4px;
36
+ font-size: 18px !important;
37
+ vertical-align: -2px;
38
+ }
39
+ .event-mi-table-table-header > :nth-child(2) div:hover {
40
+ color: #165dff;
41
+ background: #e8efff;
42
+ border: 1px solid #165dff;
43
+ }
44
+ .event-mi-table-table-header > :nth-child(2) div:active {
45
+ color: #1454e5;
46
+ background: #e8efff;
47
+ border: 1px solid #1454e5;
48
+ }
49
+ .event-mi-table-table-header-left {
50
+ display: flex;
51
+ flex: 1;
52
+ flex-direction: row;
53
+ overflow: hidden;
54
+ }
55
+ .event-mi-table-table-header-left-box {
56
+ display: flex;
57
+ flex: 1;
58
+ flex-direction: row;
59
+ overflow: hidden;
60
+ color: #67727f;
61
+ }
62
+ .event-mi-table-table-header-left-content {
63
+ display: flex;
64
+ flex: 1;
65
+ flex-direction: row;
66
+ overflow: hidden;
67
+ color: #67727f;
68
+ }
69
+ .event-mi-table-table-header-left-content > span {
70
+ display: flex;
71
+ flex-direction: row;
72
+ max-width: 33.33%;
73
+ overflow: hidden;
74
+ }
75
+ .event-mi-table-table-header-left-content > span :first-child {
76
+ overflow: hidden;
77
+ white-space: nowrap;
78
+ text-overflow: ellipsis;
79
+ }
80
+ .event-mi-table-table-header-left-content > span :nth-child(2) {
81
+ flex: 1;
82
+ white-space: nowrap;
83
+ }
84
+ .event-mi-table .ant-table {
85
+ border-radius: 0 0 8px 8px;
86
+ }
87
+ .event-mi-table .sourcepanel-table-header {
88
+ overflow: hidden;
89
+ border-radius: 8px 8px 0 0;
90
+ }
91
+ .event-mi-table .sourcepanel-table-header .ant-table {
92
+ max-height: none;
93
+ }
94
+ .event-mi-table .ant-pagination {
95
+ margin-top: 24px !important;
96
+ }
97
+ .event-mi-table .ant-table .ant-table-thead .ant-table-cell.ant-table-column-has-sorters .ant-table-column-sorters {
98
+ justify-content: flex-end !important;
99
+ }
100
+ .event-mi-table .ant-table-cell-with-append {
101
+ padding-left: 20px;
102
+ }
103
+ .event-mi-table .ant-table-cell-with-append .ant-table-row-expand-icon {
104
+ position: absolute;
105
+ left: 0;
106
+ margin-top: 0;
107
+ }
108
+ .event-mi-table .tooltip-userGroup-box {
109
+ display: flex;
110
+ max-width: 330px;
111
+ overflow: hidden;
112
+ white-space: nowrap;
113
+ text-overflow: ellipsis;
114
+ }
115
+ .event-mi-table .tooltip-userGroup-box div {
116
+ max-width: 330px;
117
+ overflow: hidden;
118
+ white-space: nowrap;
119
+ text-overflow: ellipsis;
120
+ }
121
+ .event-mi-table .tooltip-name-box {
122
+ display: flex;
123
+ }
124
+ .event-mi-table .tooltip-name-box-market {
125
+ width: 180px;
126
+ margin-right: 8px;
127
+ overflow: hidden;
128
+ white-space: nowrap;
129
+ text-overflow: ellipsis;
130
+ cursor: pointer;
131
+ -webkit-line-clamp: 1;
132
+ -webkit-box-orient: vertical;
133
+ }
134
+ .event-mi-table .tooltip-name-box-market .shoucang {
135
+ color: #fd9f41;
136
+ font-size: 16px !important;
137
+ }
138
+ .event-mi-table .tooltip-name-box-market .notshoucang {
139
+ opacity: 0;
140
+ }
141
+ .event-mi-table .tooltip-name-box .fuzhi1 {
142
+ display: none;
143
+ font-size: 16px !important;
144
+ }
145
+ .event-mi-table .tooltip-name-box .fuzhi1:hover {
146
+ color: #165dff;
147
+ }
148
+ .event-mi-table .tooltip-name-box:hover .fuzhi1 {
149
+ display: block;
150
+ }
151
+ .event-mi-table-table-empty img {
152
+ width: 50px !important;
153
+ height: auto;
154
+ margin-top: 30px;
155
+ margin-bottom: 10px;
156
+ }
157
+ .event-mi-table-table-empty p {
158
+ color: rgba(0, 0, 0, 0.25);
159
+ }
160
+ .event-mi-table-chart-box {
161
+ display: flex;
162
+ flex-direction: column;
163
+ width: 100%;
164
+ }
165
+ .event-mi-table-chart-box-tooltip {
166
+ width: 200px;
167
+ margin-bottom: 24px;
168
+ color: #67727f;
169
+ font-size: 12px;
170
+ }
171
+ .event-table-sql-modal .ant-modal {
172
+ width: 720px !important;
173
+ }
174
+ .event-table-sql-modal .ant-modal-header {
175
+ position: relative;
176
+ z-index: 1;
177
+ height: 82px;
178
+ background: transparent;
179
+ }
180
+ .event-table-sql-modal .ant-modal-body {
181
+ padding: 0 24px 24px 24px;
182
+ }
183
+ .event-table-sql-modal .ant-modal-close-x {
184
+ margin-top: 13px;
185
+ margin-right: 8px;
186
+ }
187
+ .event-table-sql-modal img {
188
+ width: 100%;
189
+ }
190
+ .event-table-sql-modal .qingchu {
191
+ font-weight: 500;
192
+ font-size: 22px !important;
193
+ }
194
+ .event-table-sql-modal .modal-bg {
195
+ position: absolute;
196
+ top: 0;
197
+ left: 0;
198
+ width: 100%;
199
+ height: auto;
200
+ }
201
+ .event-table-sql-modal pre {
202
+ margin-bottom: 0;
203
+ }
204
+ .event-table-sql-modal .hljs {
205
+ height: 400px;
206
+ padding: 16px;
207
+ padding-bottom: 0;
208
+ background: #fafafb;
209
+ border-radius: 8px;
210
+ }
211
+ .event-table-sql-modal .copy-box {
212
+ position: absolute;
213
+ top: 98px;
214
+ right: 40px;
215
+ padding: 0 8px;
216
+ background: #f2f3f4;
217
+ border-radius: 4px;
218
+ }
219
+ .event-table-sql-modal .copy-box .fuzhi1 {
220
+ margin-right: 8px;
221
+ }
222
+ .event-table-sql-modal .copy-box:hover {
223
+ color: #165dff;
224
+ background: #e8efff;
225
+ }
226
+ .event-table-sql-modal .copy-box:active {
227
+ color: #1454e5;
228
+ background: #e8efff;
229
+ }
230
+ .ant-modal-content {
231
+ position: relative;
232
+ }
233
+ .ant-modal-content .sql-tip {
234
+ position: absolute;
235
+ bottom: 30px;
236
+ }
@@ -1,15 +1,15 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
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
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
8
8
  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
- 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); }
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
- 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
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
10
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
13
13
  import { Button } from 'antd';
14
14
  import React, { useContext, useState, useEffect } from 'react';
15
15
  import { BizAddToPanel, BizAddToScene, BizGlobalDataContext, BizPlatformSelector, IconFont } from '@zgfe/business-lib';
@@ -55,9 +55,9 @@ var TopBar = function TopBar(props) {
55
55
  warningId = _useState8[0],
56
56
  setWarningId = _useState8[1];
57
57
  var _useState9 = useState((searchData === null || searchData === void 0 ? void 0 : searchData.platform) === undefined ? 0 : searchData.platform),
58
- _useState10 = _slicedToArray(_useState9, 2),
59
- selectPlatform = _useState10[0],
60
- setselectPlatform = _useState10[1];
58
+ _useState0 = _slicedToArray(_useState9, 2),
59
+ selectPlatform = _useState0[0],
60
+ setselectPlatform = _useState0[1];
61
61
  useEffect(function () {
62
62
  setWarningId(getWarningId(searchData, eventData, eventGroupList));
63
63
  }, [searchData, eventData, eventGroupList]);
@@ -73,10 +73,10 @@ var TopBar = function TopBar(props) {
73
73
  return item;
74
74
  }), setOptions(options);
75
75
  }, [searchData, enableSelectChart]);
76
- var _useState11 = useState(),
77
- _useState12 = _slicedToArray(_useState11, 2),
78
- panelType = _useState12[0],
79
- setPanelType = _useState12[1];
76
+ var _useState1 = useState(),
77
+ _useState10 = _slicedToArray(_useState1, 2),
78
+ panelType = _useState10[0],
79
+ setPanelType = _useState10[1];
80
80
  var closeHandle = function closeHandle(type) {
81
81
  if (type === 'panel') {
82
82
  setPanelType(undefined);
@@ -93,7 +93,7 @@ var TopBar = function TopBar(props) {
93
93
  className: classPrefix
94
94
  }, /*#__PURE__*/React.createElement("div", {
95
95
  className: "".concat(classPrefix, "-title")
96
- }, !panelId && enableGenerateReport && /*#__PURE__*/React.createElement(IconFont, {
96
+ }, !panelId && enableGenerateReport && (/*#__PURE__*/React.createElement(IconFont, {
97
97
  type: "fanhuiicon",
98
98
  onClick: function onClick() {
99
99
  if (!router) return;
@@ -107,16 +107,16 @@ var TopBar = function TopBar(props) {
107
107
  }
108
108
  });
109
109
  }
110
- }, "\u8FD4\u56DE"), /*#__PURE__*/React.createElement("span", null, "\u4E8B\u4EF6\u5206\u6790")), /*#__PURE__*/React.createElement("div", {
110
+ }, "\u8FD4\u56DE")), /*#__PURE__*/React.createElement("span", null, "\u4E8B\u4EF6\u5206\u6790")), /*#__PURE__*/React.createElement("div", {
111
111
  className: "".concat(classPrefix, "-right")
112
- }, !panelId && /*#__PURE__*/React.createElement("div", {
112
+ }, !panelId && (/*#__PURE__*/React.createElement("div", {
113
113
  className: "".concat(classPrefix, "-panel")
114
114
  }, /*#__PURE__*/React.createElement(Button, {
115
115
  disabled: !authority[100049],
116
116
  onClick: function onClick() {
117
117
  setShowPanel(true);
118
118
  }
119
- }, "\u6DFB\u52A0\u5230\u770B\u677F"), showPanel && /*#__PURE__*/React.createElement(BizAddToPanel, {
119
+ }, "\u6DFB\u52A0\u5230\u770B\u677F"), showPanel && (/*#__PURE__*/React.createElement(BizAddToPanel, {
120
120
  type: panelType,
121
121
  params: _objectSpread({
122
122
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
@@ -131,14 +131,14 @@ var TopBar = function TopBar(props) {
131
131
  onOk: function onOk(data) {
132
132
  return _onOk('panel', data);
133
133
  }
134
- })), !panelId && /*#__PURE__*/React.createElement("div", {
134
+ })))), !panelId && (/*#__PURE__*/React.createElement("div", {
135
135
  className: "".concat(classPrefix, "-scene")
136
136
  }, /*#__PURE__*/React.createElement(Button, {
137
137
  disabled: !authority[100048],
138
138
  onClick: function onClick() {
139
139
  setShowScene(true);
140
140
  }
141
- }, "\u6DFB\u52A0\u5E38\u7528\u573A\u666F"), showScene && /*#__PURE__*/React.createElement(BizAddToScene, {
141
+ }, "\u6DFB\u52A0\u5E38\u7528\u573A\u666F"), showScene && (/*#__PURE__*/React.createElement(BizAddToScene, {
142
142
  params: _objectSpread({
143
143
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
144
144
  platform: (searchData === null || searchData === void 0 ? void 0 : searchData.platform) || 0,
@@ -150,18 +150,18 @@ var TopBar = function TopBar(props) {
150
150
  onCancel: function onCancel() {
151
151
  return closeHandle('scene');
152
152
  }
153
- })), !panelId && enableGenerateReport && /*#__PURE__*/React.createElement("div", {
153
+ })))), !panelId && enableGenerateReport && (/*#__PURE__*/React.createElement("div", {
154
154
  className: "".concat(classPrefix, "-panel")
155
155
  }, /*#__PURE__*/React.createElement(Button, {
156
156
  onClick: onClickGenerateReport
157
- }, "\u6DFB\u52A0\u5230\u6570\u636E\u62A5\u544A")), showWarning && /*#__PURE__*/React.createElement(Button, {
157
+ }, "\u6DFB\u52A0\u5230\u6570\u636E\u62A5\u544A"))), showWarning && (/*#__PURE__*/React.createElement(Button, {
158
158
  className: "".concat(classPrefix, "-earlywarning"),
159
159
  type: "primary",
160
160
  disabled: loading || !authority[100141],
161
161
  onClick: function onClick() {
162
162
  return onLossWarning(warningId);
163
163
  }
164
- }, "\u8BBE\u7F6E\u6D41\u5931\u9884\u8B66"), /*#__PURE__*/React.createElement("div", {
164
+ }, "\u8BBE\u7F6E\u6D41\u5931\u9884\u8B66")), /*#__PURE__*/React.createElement("div", {
165
165
  className: "".concat(classPrefix, "-platform")
166
166
  }, /*#__PURE__*/React.createElement(BizPlatformSelector, {
167
167
  value: selectPlatform,
@@ -1,9 +1,9 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
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; }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
7
  import React, { useState } from 'react';
8
8
  import { EventChart } from '@zgfe/modules-event';
9
9
  import { result, searchData, totalResult } from './data';