@zgfe/modules-interval 1.0.0-interval.9 → 1.0.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.
- package/dist/esm/assets/business/demo_index.html +164 -26
- package/dist/esm/assets/business/iconfont.css +31 -7
- package/dist/esm/assets/business/iconfont.js +10 -10
- package/dist/esm/assets/business/iconfont.json +49 -7
- package/dist/esm/assets/business/iconfont.ttf +0 -0
- package/dist/esm/assets/business/iconfont.woff +0 -0
- package/dist/esm/assets/business/iconfont.woff2 +0 -0
- package/dist/esm/components/common/index.js +9 -9
- package/dist/esm/components/common/styles/index.less +21 -8
- package/dist/esm/components/eventFilter/index.js +20 -13
- package/dist/esm/components/eventFilter/styles/index.less +1 -4
- package/dist/esm/components/eventFilter/types.d.ts +2 -0
- package/dist/esm/components/renderContent/index.js +4 -4
- package/dist/esm/components/renderContent/styles/index.less +1 -1
- package/dist/esm/components/searchPanel/index.js +3 -2
- package/dist/esm/components/searchPanel/styles/index.less +34 -28
- package/dist/esm/components/table/styles/index.less +20 -5
- package/dist/esm/components/topBar/index.js +35 -21
- package/dist/esm/components/topBar/styles/index.less +1 -0
- package/dist/esm/components/topBar/types.d.ts +1 -0
- package/dist/esm/constants/fields.d.ts +6 -78
- package/dist/esm/constants/fields.js +7 -47
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/modules/chart/customTooltip.js +9 -3
- package/dist/esm/modules/chart/demo/data.d.ts +34 -71
- package/dist/esm/modules/chart/demo/data.js +36 -488
- package/dist/esm/modules/chart/demo/index.js +8 -37
- package/dist/esm/modules/chart/index.d.ts +2 -2
- package/dist/esm/modules/chart/index.js +41 -34
- package/dist/esm/modules/chart/index.less +28 -18
- package/dist/esm/modules/chart/intervalChart.js +10 -3
- package/dist/esm/modules/content/index.js +17 -14
- package/dist/esm/modules/content/types.d.ts +1 -0
- package/dist/esm/modules/content/utils.d.ts +2 -5
- package/dist/esm/modules/content/utils.js +17 -9
- package/dist/esm/modules/home/demo/index.js +5 -0
- package/dist/esm/modules/home/index.js +3 -1
- package/dist/esm/modules/home/styles/index.less +10 -3
- package/dist/esm/modules/home/types.d.ts +5 -0
- package/dist/esm/modules/topPanel/index.js +80 -79
- package/dist/esm/modules/topPanel/styles/index.less +116 -4
- package/dist/esm/modules/topPanel/types.d.ts +3 -1
- package/dist/esm/style/image/empty.png +0 -0
- package/dist/esm/types.d.ts +26 -2
- package/dist/esm/utils/formData.js +3 -3
- package/package.json +2 -2
- package/dist/esm/modules/chart/demo/panel.d.ts +0 -3
- package/dist/esm/modules/chart/demo/panel.js +0 -30
|
@@ -1,495 +1,43 @@
|
|
|
1
|
-
//
|
|
2
|
-
export var result = {
|
|
3
|
-
xAxis: ['2023-06-14', '2023-06-15', '2023-06-16', '2023-06-17', '2023-06-18', '2023-06-19', '2023-06-20', '2023-06-21'],
|
|
4
|
-
series: [{
|
|
5
|
-
duration: [],
|
|
6
|
-
index: '人数',
|
|
7
|
-
names: ['崩溃1(人数)'],
|
|
8
|
-
values: [20, 20, 20, 20, 20, 20, 20, 20]
|
|
9
|
-
}, {
|
|
10
|
-
duration: [],
|
|
11
|
-
index: null,
|
|
12
|
-
names: ['访问次数'],
|
|
13
|
-
values: [170, 170, 170, 170, 170, 170, 170, 170]
|
|
14
|
-
}, {
|
|
15
|
-
duration: [],
|
|
16
|
-
index: null,
|
|
17
|
-
names: ['活跃用户'],
|
|
18
|
-
values: [80, 80, 80, 80, 80, 80, 80, 80]
|
|
19
|
-
}, {
|
|
20
|
-
duration: [],
|
|
21
|
-
index: '人数',
|
|
22
|
-
names: ['间隔事件-01(人数)'],
|
|
23
|
-
values: [10, 10, 10, 10, 10, 10, 10, 10]
|
|
24
|
-
}, {
|
|
25
|
-
duration: [],
|
|
26
|
-
index: '人数',
|
|
27
|
-
names: ['间隔事件-02(人数)'],
|
|
28
|
-
values: [10, 10, 10, 10, 10, 10, 10, 10]
|
|
29
|
-
}, {
|
|
30
|
-
duration: [],
|
|
31
|
-
index: '人数',
|
|
32
|
-
names: ['埋点事件-01(人数)'],
|
|
33
|
-
values: [70, 70, 70, 70, 70, 70, 70, 70]
|
|
34
|
-
}, {
|
|
35
|
-
duration: [],
|
|
36
|
-
index: '人数',
|
|
37
|
-
names: ['埋点事件-02(人数)'],
|
|
38
|
-
values: [60, 60, 60, 60, 60, 60, 60, 60]
|
|
39
|
-
}, {
|
|
40
|
-
duration: [],
|
|
41
|
-
index: '人数',
|
|
42
|
-
names: ['埋点事件-03(人数)'],
|
|
43
|
-
values: [60, 60, 60, 60, 60, 60, 60, 60]
|
|
44
|
-
}, {
|
|
45
|
-
duration: [],
|
|
46
|
-
index: '人数',
|
|
47
|
-
names: ['埋点事件-04(人数)'],
|
|
48
|
-
values: [60, 60, 60, 60, 60, 60, 60, 60]
|
|
49
|
-
}, {
|
|
50
|
-
duration: [],
|
|
51
|
-
index: '人数',
|
|
52
|
-
names: ['埋点事件-05(人数)'],
|
|
53
|
-
values: [50, 50, 50, 50, 50, 50, 50, 50]
|
|
54
|
-
}, {
|
|
55
|
-
duration: [],
|
|
56
|
-
index: '人数',
|
|
57
|
-
names: ['埋点事件-06(人数)'],
|
|
58
|
-
values: [50, 50, 50, 50, 50, 50, 50, 50]
|
|
59
|
-
}, {
|
|
60
|
-
duration: [],
|
|
61
|
-
index: '人数',
|
|
62
|
-
names: ['埋点事件-07(人数)'],
|
|
63
|
-
values: [50, 50, 50, 50, 50, 50, 50, 50]
|
|
64
|
-
}, {
|
|
65
|
-
duration: [],
|
|
66
|
-
index: '人数',
|
|
67
|
-
names: ['埋点事件-08(人数)'],
|
|
68
|
-
values: [50, 50, 50, 50, 50, 50, 50, 50]
|
|
69
|
-
}, {
|
|
70
|
-
duration: [],
|
|
71
|
-
index: '人数',
|
|
72
|
-
names: ['埋点事件-09(人数)'],
|
|
73
|
-
values: [50, 50, 50, 50, 50, 50, 50, 50]
|
|
74
|
-
}, {
|
|
75
|
-
duration: [],
|
|
76
|
-
index: '人数',
|
|
77
|
-
names: ['埋点事件-10(人数)'],
|
|
78
|
-
values: [50, 50, 50, 50, 50, 50, 50, 50]
|
|
79
|
-
}, {
|
|
80
|
-
duration: [],
|
|
81
|
-
index: '人数',
|
|
82
|
-
names: ['埋点事件-11(人数)'],
|
|
83
|
-
values: [40, 40, 40, 40, 40, 40, 40, 40]
|
|
84
|
-
}, {
|
|
85
|
-
duration: [],
|
|
86
|
-
index: '人数',
|
|
87
|
-
names: ['埋点事件-12(人数)'],
|
|
88
|
-
values: [40, 40, 40, 40, 40, 40, 40, 40]
|
|
89
|
-
}, {
|
|
90
|
-
duration: [],
|
|
91
|
-
index: '人数',
|
|
92
|
-
names: ['埋点事件-13(人数)'],
|
|
93
|
-
values: [40, 40, 40, 40, 40, 40, 40, 40]
|
|
94
|
-
}, {
|
|
95
|
-
duration: [],
|
|
96
|
-
index: '人数',
|
|
97
|
-
names: ['埋点事件-14(人数)'],
|
|
98
|
-
values: [40, 40, 40, 40, 40, 40, 40, 40]
|
|
99
|
-
}, {
|
|
100
|
-
duration: [],
|
|
101
|
-
index: '人数',
|
|
102
|
-
names: ['埋点事件-15(人数)'],
|
|
103
|
-
values: [40, 40, 40, 40, 40, 40, 40, 40]
|
|
104
|
-
}, {
|
|
105
|
-
duration: [],
|
|
106
|
-
index: '人数',
|
|
107
|
-
names: ['埋点事件-16(人数)'],
|
|
108
|
-
values: [40, 40, 40, 40, 40, 40, 40, 40]
|
|
109
|
-
}, {
|
|
110
|
-
duration: [],
|
|
111
|
-
index: '人数',
|
|
112
|
-
names: ['埋点事件-17(人数)'],
|
|
113
|
-
values: [40, 40, 40, 40, 40, 40, 40, 40]
|
|
114
|
-
}, {
|
|
115
|
-
duration: [],
|
|
116
|
-
index: '人数',
|
|
117
|
-
names: ['埋点事件-18(人数)'],
|
|
118
|
-
values: [40, 40, 40, 40, 40, 40, 40, 40]
|
|
119
|
-
}, {
|
|
120
|
-
duration: [],
|
|
121
|
-
index: '人数',
|
|
122
|
-
names: ['埋点事件-19(人数)'],
|
|
123
|
-
values: [40, 40, 40, 40, 40, 40, 40, 40]
|
|
124
|
-
}, {
|
|
125
|
-
duration: [],
|
|
126
|
-
index: '人数',
|
|
127
|
-
names: ['埋点事件-20(人数)'],
|
|
128
|
-
values: [40, 40, 40, 40, 40, 40, 40, 40]
|
|
129
|
-
}, {
|
|
130
|
-
duration: [],
|
|
131
|
-
index: null,
|
|
132
|
-
names: ['平均使用时长(s)'],
|
|
133
|
-
values: [2.04, 2.04, 2.02, 944.18, 944.18, 944.18, 944.18, 0]
|
|
134
|
-
}, {
|
|
135
|
-
duration: [{
|
|
136
|
-
name: '1-5秒',
|
|
137
|
-
values: [163, 164, 164, 10, 10, 10, 10, 0]
|
|
138
|
-
}, {
|
|
139
|
-
name: '6-30秒',
|
|
140
|
-
values: [7, 6, 6, 0, 0, 0, 0, 0]
|
|
141
|
-
}, {
|
|
142
|
-
name: '31-60秒',
|
|
143
|
-
values: [0, 0, 0, 0, 0, 0, 0, 0]
|
|
144
|
-
}, {
|
|
145
|
-
name: '1-3分',
|
|
146
|
-
values: [0, 0, 0, 2, 2, 2, 2, 0]
|
|
147
|
-
}, {
|
|
148
|
-
name: '3-10分',
|
|
149
|
-
values: [0, 0, 0, 27, 27, 27, 27, 0]
|
|
150
|
-
}, {
|
|
151
|
-
name: '10-30分',
|
|
152
|
-
values: [0, 0, 0, 131, 131, 131, 131, 0]
|
|
153
|
-
}, {
|
|
154
|
-
name: '30-60分',
|
|
155
|
-
values: [0, 0, 0, 0, 0, 0, 0, 0]
|
|
156
|
-
}, {
|
|
157
|
-
name: '1小时以上',
|
|
158
|
-
values: [0, 0, 0, 0, 0, 0, 0, 0]
|
|
159
|
-
}],
|
|
160
|
-
index: null,
|
|
161
|
-
names: ['使用时长分布(访问次数)'],
|
|
162
|
-
values: [170, 170, 170, 170, 170, 170, 170, 0]
|
|
163
|
-
}, {
|
|
164
|
-
duration: [{
|
|
165
|
-
name: '1-5秒',
|
|
166
|
-
values: [73, 74, 74, 10, 10, 10, 10, 0]
|
|
167
|
-
}, {
|
|
168
|
-
name: '6-30秒',
|
|
169
|
-
values: [7, 6, 6, 0, 0, 0, 0, 0]
|
|
170
|
-
}, {
|
|
171
|
-
name: '31-60秒',
|
|
172
|
-
values: [0, 0, 0, 0, 0, 0, 0, 0]
|
|
173
|
-
}, {
|
|
174
|
-
name: '1-3分',
|
|
175
|
-
values: [0, 0, 0, 2, 2, 2, 2, 0]
|
|
176
|
-
}, {
|
|
177
|
-
name: '3-10分',
|
|
178
|
-
values: [0, 0, 0, 27, 27, 27, 27, 0]
|
|
179
|
-
}, {
|
|
180
|
-
name: '10-30分',
|
|
181
|
-
values: [0, 0, 0, 41, 41, 41, 41, 0]
|
|
182
|
-
}, {
|
|
183
|
-
name: '30-60分',
|
|
184
|
-
values: [0, 0, 0, 0, 0, 0, 0, 0]
|
|
185
|
-
}, {
|
|
186
|
-
name: '1小时以上',
|
|
187
|
-
values: [0, 0, 0, 0, 0, 0, 0, 0]
|
|
188
|
-
}],
|
|
189
|
-
index: null,
|
|
190
|
-
names: ['使用时长分布(活跃用户)'],
|
|
191
|
-
values: [80, 80, 80, 80, 80, 80, 80, 0]
|
|
192
|
-
}, {
|
|
193
|
-
duration: [],
|
|
194
|
-
index: '人数',
|
|
195
|
-
names: ['收入(人数)'],
|
|
196
|
-
values: [10, 10, 10, 10, 10, 10, 10, 10]
|
|
197
|
-
}, {
|
|
198
|
-
duration: [],
|
|
199
|
-
index: null,
|
|
200
|
-
names: ['新增用户'],
|
|
201
|
-
values: [70, 70, 70, 70, 70, 70, 70, 0]
|
|
202
|
-
}, {
|
|
203
|
-
duration: [],
|
|
204
|
-
index: '人数',
|
|
205
|
-
names: ['页面访问(人数)'],
|
|
206
|
-
values: [50, 50, 50, 50, 50, 50, 50, 50]
|
|
207
|
-
}, {
|
|
208
|
-
duration: [],
|
|
209
|
-
index: '人数',
|
|
210
|
-
names: ['页面停留时长(人数)'],
|
|
211
|
-
values: [50, 50, 50, 50, 50, 50, 50, 50]
|
|
212
|
-
}]
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
// 柱图/饼图
|
|
216
|
-
export var totalResult = {
|
|
217
|
-
xAxis: ['2023-06-22|2023-06-29'],
|
|
218
|
-
series: [{
|
|
219
|
-
duration: [],
|
|
220
|
-
index: '人数',
|
|
221
|
-
names: ['所有用户', '埋点事件-01'],
|
|
222
|
-
original_names: [],
|
|
223
|
-
p_total: [],
|
|
224
|
-
total: [],
|
|
225
|
-
values: [130]
|
|
226
|
-
}, {
|
|
227
|
-
duration: [],
|
|
228
|
-
index: '人数',
|
|
229
|
-
names: ['所有用户', '埋点事件-04'],
|
|
230
|
-
original_names: [],
|
|
231
|
-
p_total: [],
|
|
232
|
-
total: [],
|
|
233
|
-
values: [110]
|
|
234
|
-
}, {
|
|
235
|
-
duration: [],
|
|
236
|
-
index: '人数',
|
|
237
|
-
names: ['所有用户', '埋点事件-03'],
|
|
238
|
-
original_names: [],
|
|
239
|
-
p_total: [],
|
|
240
|
-
total: [],
|
|
241
|
-
values: [110]
|
|
242
|
-
}, {
|
|
243
|
-
duration: [],
|
|
244
|
-
index: '人数',
|
|
245
|
-
names: ['所有用户', '埋点事件-02'],
|
|
246
|
-
original_names: [],
|
|
247
|
-
p_total: [],
|
|
248
|
-
total: [],
|
|
249
|
-
values: [110]
|
|
250
|
-
}, {
|
|
251
|
-
duration: [],
|
|
252
|
-
index: '人数',
|
|
253
|
-
names: ['所有用户', '页面访问'],
|
|
254
|
-
original_names: [],
|
|
255
|
-
p_total: [],
|
|
256
|
-
total: [],
|
|
257
|
-
values: [90]
|
|
258
|
-
}, {
|
|
259
|
-
duration: [],
|
|
260
|
-
index: '人数',
|
|
261
|
-
names: ['所有用户', '页面停留时长'],
|
|
262
|
-
original_names: [],
|
|
263
|
-
p_total: [],
|
|
264
|
-
total: [],
|
|
265
|
-
values: [90]
|
|
266
|
-
}, {
|
|
267
|
-
duration: [],
|
|
268
|
-
index: '人数',
|
|
269
|
-
names: ['所有用户', '埋点事件-06'],
|
|
270
|
-
original_names: [],
|
|
271
|
-
p_total: [],
|
|
272
|
-
total: [],
|
|
273
|
-
values: [90]
|
|
274
|
-
}, {
|
|
275
|
-
duration: [],
|
|
276
|
-
index: '人数',
|
|
277
|
-
names: ['所有用户', '埋点事件-07'],
|
|
278
|
-
original_names: [],
|
|
279
|
-
p_total: [],
|
|
280
|
-
total: [],
|
|
281
|
-
values: [90]
|
|
282
|
-
}, {
|
|
283
|
-
duration: [],
|
|
284
|
-
index: '人数',
|
|
285
|
-
names: ['所有用户', '埋点事件-09'],
|
|
286
|
-
original_names: [],
|
|
287
|
-
p_total: [],
|
|
288
|
-
total: [],
|
|
289
|
-
values: [90]
|
|
290
|
-
}, {
|
|
291
|
-
duration: [],
|
|
292
|
-
index: '人数',
|
|
293
|
-
names: ['所有用户', '埋点事件-08'],
|
|
294
|
-
original_names: [],
|
|
295
|
-
p_total: [],
|
|
296
|
-
total: [],
|
|
297
|
-
values: [90]
|
|
298
|
-
}, {
|
|
299
|
-
duration: [],
|
|
300
|
-
index: '人数',
|
|
301
|
-
names: ['所有用户', '埋点事件-10'],
|
|
302
|
-
original_names: [],
|
|
303
|
-
p_total: [],
|
|
304
|
-
total: [],
|
|
305
|
-
values: [90]
|
|
306
|
-
}, {
|
|
307
|
-
duration: [],
|
|
308
|
-
index: '人数',
|
|
309
|
-
names: ['所有用户', '埋点事件-05'],
|
|
310
|
-
original_names: [],
|
|
311
|
-
p_total: [],
|
|
312
|
-
total: [],
|
|
313
|
-
values: [90]
|
|
314
|
-
}, {
|
|
315
|
-
duration: [],
|
|
316
|
-
index: '人数',
|
|
317
|
-
names: ['所有用户', '埋点事件-14'],
|
|
318
|
-
original_names: [],
|
|
319
|
-
p_total: [],
|
|
320
|
-
total: [],
|
|
321
|
-
values: [70]
|
|
322
|
-
}, {
|
|
323
|
-
duration: [],
|
|
324
|
-
index: '人数',
|
|
325
|
-
names: ['所有用户', '埋点事件-12'],
|
|
326
|
-
original_names: [],
|
|
327
|
-
p_total: [],
|
|
328
|
-
total: [],
|
|
329
|
-
values: [70]
|
|
330
|
-
}, {
|
|
331
|
-
duration: [],
|
|
332
|
-
index: '人数',
|
|
333
|
-
names: ['所有用户', '埋点事件-19'],
|
|
334
|
-
original_names: [],
|
|
335
|
-
p_total: [],
|
|
336
|
-
total: [],
|
|
337
|
-
values: [70]
|
|
338
|
-
}, {
|
|
339
|
-
duration: [],
|
|
340
|
-
index: '人数',
|
|
341
|
-
names: ['所有用户', '埋点事件-18'],
|
|
342
|
-
original_names: [],
|
|
343
|
-
p_total: [],
|
|
344
|
-
total: [],
|
|
345
|
-
values: [70]
|
|
346
|
-
}, {
|
|
347
|
-
duration: [],
|
|
348
|
-
index: '人数',
|
|
349
|
-
names: ['所有用户', '埋点事件-15'],
|
|
350
|
-
original_names: [],
|
|
351
|
-
p_total: [],
|
|
352
|
-
total: [],
|
|
353
|
-
values: [70]
|
|
354
|
-
}, {
|
|
355
|
-
duration: [],
|
|
356
|
-
index: '人数',
|
|
357
|
-
names: ['所有用户', '埋点事件-11'],
|
|
358
|
-
original_names: [],
|
|
359
|
-
p_total: [],
|
|
360
|
-
total: [],
|
|
361
|
-
values: [70]
|
|
362
|
-
}, {
|
|
363
|
-
duration: [],
|
|
364
|
-
index: '人数',
|
|
365
|
-
names: ['所有用户', '埋点事件-16'],
|
|
366
|
-
original_names: [],
|
|
367
|
-
p_total: [],
|
|
368
|
-
total: [],
|
|
369
|
-
values: [70]
|
|
370
|
-
}, {
|
|
371
|
-
duration: [],
|
|
372
|
-
index: '人数',
|
|
373
|
-
names: ['所有用户', '埋点事件-20'],
|
|
374
|
-
original_names: [],
|
|
375
|
-
p_total: [],
|
|
376
|
-
total: [],
|
|
377
|
-
values: [70]
|
|
378
|
-
}, {
|
|
379
|
-
duration: [],
|
|
380
|
-
index: '人数',
|
|
381
|
-
names: ['所有用户', '埋点事件-17'],
|
|
382
|
-
original_names: [],
|
|
383
|
-
p_total: [],
|
|
384
|
-
total: [],
|
|
385
|
-
values: [70]
|
|
386
|
-
}, {
|
|
387
|
-
duration: [],
|
|
388
|
-
index: '人数',
|
|
389
|
-
names: ['所有用户', '埋点事件-13'],
|
|
390
|
-
original_names: [],
|
|
391
|
-
p_total: [],
|
|
392
|
-
total: [],
|
|
393
|
-
values: [70]
|
|
394
|
-
}, {
|
|
395
|
-
duration: [],
|
|
396
|
-
index: '人数',
|
|
397
|
-
names: ['所有用户', '崩溃'],
|
|
398
|
-
original_names: [],
|
|
399
|
-
p_total: [],
|
|
400
|
-
total: [],
|
|
401
|
-
values: [40]
|
|
402
|
-
}, {
|
|
403
|
-
duration: [],
|
|
404
|
-
index: '人数',
|
|
405
|
-
names: ['所有用户', '收入'],
|
|
406
|
-
original_names: [],
|
|
407
|
-
p_total: [],
|
|
408
|
-
total: [],
|
|
409
|
-
values: [20]
|
|
410
|
-
}, {
|
|
411
|
-
duration: [],
|
|
412
|
-
index: '人数',
|
|
413
|
-
names: ['所有用户', '间隔事件-02'],
|
|
414
|
-
original_names: [],
|
|
415
|
-
p_total: [],
|
|
416
|
-
total: [],
|
|
417
|
-
values: [20]
|
|
418
|
-
}, {
|
|
419
|
-
duration: [],
|
|
420
|
-
index: '人数',
|
|
421
|
-
names: ['所有用户', '间隔事件-01'],
|
|
422
|
-
original_names: [],
|
|
423
|
-
p_total: [],
|
|
424
|
-
total: [],
|
|
425
|
-
values: [20]
|
|
426
|
-
}, {
|
|
427
|
-
duration: [],
|
|
428
|
-
index: null,
|
|
429
|
-
names: ['所有用户', '新增用户'],
|
|
430
|
-
original_names: [],
|
|
431
|
-
p_total: [],
|
|
432
|
-
total: [],
|
|
433
|
-
values: [0]
|
|
434
|
-
}, {
|
|
435
|
-
duration: [],
|
|
436
|
-
index: null,
|
|
437
|
-
names: ['所有用户', '活跃用户'],
|
|
438
|
-
original_names: [],
|
|
439
|
-
p_total: [],
|
|
440
|
-
total: [],
|
|
441
|
-
values: [150]
|
|
442
|
-
}, {
|
|
443
|
-
duration: [],
|
|
444
|
-
index: null,
|
|
445
|
-
names: ['所有用户', '访问次数'],
|
|
446
|
-
original_names: [],
|
|
447
|
-
p_total: [],
|
|
448
|
-
total: [],
|
|
449
|
-
values: [340]
|
|
450
|
-
}]
|
|
451
|
-
};
|
|
452
|
-
// 趋势图查询条件
|
|
1
|
+
// 盒须图查询条件
|
|
453
2
|
export var searchData = {
|
|
454
|
-
|
|
455
|
-
type: 'event',
|
|
456
|
-
alias: '事件概览',
|
|
457
|
-
eventId: -100,
|
|
458
|
-
eventName: '事件概览',
|
|
459
|
-
eventGroupId: 0,
|
|
460
|
-
analysisDimension: {
|
|
461
|
-
analysisIndex: 'number'
|
|
462
|
-
}
|
|
463
|
-
}],
|
|
464
|
-
userGroup: [0],
|
|
3
|
+
appId: 225,
|
|
465
4
|
time: {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
end: '2023-06-21'
|
|
5
|
+
dimensionDate: 'day',
|
|
6
|
+
beginDate: '2023-08-14',
|
|
7
|
+
endDate: '2023-09-13'
|
|
470
8
|
},
|
|
471
|
-
chartType: 'line'
|
|
472
|
-
};
|
|
473
|
-
// 柱图/饼图 查询条件
|
|
474
|
-
export var totalSearchData = {
|
|
475
|
-
appId: 96,
|
|
476
9
|
platform: 0,
|
|
477
|
-
targets: [{
|
|
478
|
-
type: 'event',
|
|
479
|
-
alias: '事件概览',
|
|
480
|
-
eventId: -100,
|
|
481
|
-
eventName: '事件概览',
|
|
482
|
-
eventGroupId: 0,
|
|
483
|
-
analysisDimension: {
|
|
484
|
-
analysisIndex: 'number'
|
|
485
|
-
}
|
|
486
|
-
}],
|
|
487
10
|
userGroup: [0],
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
11
|
+
start: {
|
|
12
|
+
operator: 'and',
|
|
13
|
+
eventId: 16704,
|
|
14
|
+
eventName: '搜索商品'
|
|
15
|
+
},
|
|
16
|
+
end: {
|
|
17
|
+
operator: 'and',
|
|
18
|
+
eventId: 16706,
|
|
19
|
+
eventName: '加购商品'
|
|
493
20
|
},
|
|
494
|
-
|
|
21
|
+
dimension: null
|
|
22
|
+
};
|
|
23
|
+
export var searchDataParams = {
|
|
24
|
+
appData: {
|
|
25
|
+
huanbi: [],
|
|
26
|
+
series: [{
|
|
27
|
+
diyTarget: false,
|
|
28
|
+
duration: [],
|
|
29
|
+
index: null,
|
|
30
|
+
names: [],
|
|
31
|
+
originalNames: [],
|
|
32
|
+
pNext: [],
|
|
33
|
+
pTotal: [],
|
|
34
|
+
resultFormat: null,
|
|
35
|
+
total: [],
|
|
36
|
+
values: [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [1, 2, 1, 1, 2, 1, 102], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]]
|
|
37
|
+
}],
|
|
38
|
+
tongbi: [],
|
|
39
|
+
total: [],
|
|
40
|
+
xAxis: ['2023-08-14', '2023-08-15', '2023-08-16', '2023-08-17', '2023-08-18', '2023-08-19', '2023-08-20', '2023-08-21', '2023-08-22', '2023-08-23', '2023-08-24', '2023-08-25', '2023-08-26', '2023-08-27', '2023-08-28', '2023-08-29', '2023-08-30', '2023-08-31', '2023-09-01', '2023-09-02', '2023-09-03', '2023-09-04', '2023-09-05', '2023-09-06', '2023-09-07', '2023-09-08', '2023-09-09', '2023-09-10', '2023-09-11', '2023-09-12', '2023-09-13'],
|
|
41
|
+
yesterDay: []
|
|
42
|
+
}
|
|
495
43
|
};
|
|
@@ -5,47 +5,18 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
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
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useState } from 'react';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { chartTypeOptions } from "../../../constants";
|
|
8
|
+
import { IntervalEventChart } from '@zgfe/modules-interval';
|
|
9
|
+
import { searchData } from "./data";
|
|
10
|
+
import { DemoWrapper } from '@zgfe/business-lib';
|
|
12
11
|
export default (function () {
|
|
13
12
|
var _useState = useState({
|
|
14
|
-
label: '
|
|
15
|
-
value: '
|
|
13
|
+
label: '盒须图',
|
|
14
|
+
value: 'boxplot'
|
|
16
15
|
}),
|
|
17
|
-
_useState2 = _slicedToArray(_useState,
|
|
18
|
-
chart = _useState2[0]
|
|
19
|
-
|
|
20
|
-
var _useState3 = useState(result),
|
|
21
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
22
|
-
searchResult = _useState4[0],
|
|
23
|
-
setSearchResult = _useState4[1];
|
|
24
|
-
var onChange = function onChange(val) {
|
|
25
|
-
setChart(val);
|
|
26
|
-
setSearchResult(val.value === 'bar' || val.value === 'pie' ? totalResult : result);
|
|
27
|
-
};
|
|
28
|
-
return /*#__PURE__*/React.createElement(DemoWrapper, null, /*#__PURE__*/React.createElement("div", {
|
|
29
|
-
style: {
|
|
30
|
-
display: 'flex',
|
|
31
|
-
flexDirection: 'row-reverse',
|
|
32
|
-
marginBottom: 20
|
|
33
|
-
}
|
|
34
|
-
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
35
|
-
overlayWidth: 120,
|
|
36
|
-
options: chartTypeOptions,
|
|
37
|
-
defaultValue: chart,
|
|
38
|
-
value: chart,
|
|
39
|
-
labelField: "label",
|
|
40
|
-
keyField: "value",
|
|
41
|
-
theme: "secondary",
|
|
42
|
-
onChange: onChange
|
|
43
|
-
})), /*#__PURE__*/React.createElement(EventChart, {
|
|
16
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
17
|
+
chart = _useState2[0];
|
|
18
|
+
return /*#__PURE__*/React.createElement(DemoWrapper, null, /*#__PURE__*/React.createElement(IntervalEventChart, {
|
|
44
19
|
type: chart.value,
|
|
45
20
|
params: searchData
|
|
46
|
-
}), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(EventChart, {
|
|
47
|
-
type: "grid",
|
|
48
|
-
dataSource: searchResult,
|
|
49
|
-
params: searchData
|
|
50
21
|
}));
|
|
51
22
|
});
|