@zgfe/modules-dm 1.0.31 → 1.0.34-heyh.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/es/components/demo.js +2 -1
  2. package/es/constants/api.d.ts +11 -0
  3. package/es/constants/api.js +27 -12
  4. package/es/modules/dataCollection/collectionAttributeList.js +51 -26
  5. package/es/modules/dataCollection/collectionEventList.js +53 -83
  6. package/es/modules/dataCollection/components/createVirtualDrawer.d.ts +4 -0
  7. package/es/modules/dataCollection/components/createVirtualDrawer.js +222 -0
  8. package/es/modules/dataCollection/components/eventFilter/index.d.ts +5 -0
  9. package/es/modules/dataCollection/components/eventFilter/index.js +145 -0
  10. package/es/modules/dataCollection/components/eventFilter/styles/index.less +64 -0
  11. package/es/modules/dataCollection/components/eventFilter/types.d.ts +51 -0
  12. package/es/modules/dataCollection/components/eventFilter/types.js +1 -0
  13. package/es/modules/dataCollection/components/eventGroupingDrawer.d.ts +4 -0
  14. package/es/modules/dataCollection/components/eventGroupingDrawer.js +375 -0
  15. package/es/modules/dataCollection/components/selectAttributes.d.ts +3 -0
  16. package/es/modules/dataCollection/components/selectAttributes.js +207 -0
  17. package/es/modules/dataCollection/components/sortableComponnet.d.ts +3 -0
  18. package/es/modules/dataCollection/components/sortableComponnet.js +101 -0
  19. package/es/modules/dataCollection/{tablePlus.d.ts → components/tablePlus.d.ts} +2 -1
  20. package/es/modules/dataCollection/{tablePlus.js → components/tablePlus.js} +160 -147
  21. package/es/modules/dataCollection/components/virtualTablePlus.d.ts +5 -0
  22. package/es/modules/dataCollection/components/virtualTablePlus.js +351 -0
  23. package/es/modules/dataCollection/index.js +11 -10
  24. package/es/modules/dataCollection/styles/index.less +341 -14
  25. package/es/modules/dataCollection/types.d.ts +75 -0
  26. package/es/modules/dataCollection/types.js +1 -0
  27. package/es/modules/dataCollection/virtualEventList.d.ts +4 -0
  28. package/es/modules/dataCollection/virtualEventList.js +335 -0
  29. package/es/modules/dataManage/demo/index.js +16 -12
  30. package/es/modules/dataManage/index.js +4 -4
  31. package/es/modules/dataPlan/addEventOrUser.js +1 -2
  32. package/es/modules/dataPlan/addPlan.js +3 -12
  33. package/es/modules/dataPlan/eventList.js +0 -1
  34. package/es/modules/dataPlan/index.js +15 -15
  35. package/es/modules/dataPlan/tablePlus.js +0 -1
  36. package/es/modules/dataPlan/userAttributeList.js +0 -1
  37. package/es/utils/index.d.ts +48 -0
  38. package/es/utils/index.js +247 -0
  39. package/package.json +7 -4
  40. package/es/modules/dataCollection/demo/index.d.ts +0 -2
  41. package/es/modules/dataCollection/demo/index.js +0 -7
  42. package/es/modules/dataPlan/demo/index.d.ts +0 -2
  43. package/es/modules/dataPlan/demo/index.js +0 -6
@@ -21,6 +21,7 @@
21
21
  }
22
22
 
23
23
  .attr-list,
24
+ .virtual-event-list,
24
25
  .event-list {
25
26
  position: relative;
26
27
  min-height: 550px;
@@ -46,6 +47,7 @@
46
47
  }
47
48
  }
48
49
 
50
+ .virtual-event-list,
49
51
  .event-list {
50
52
  &-top-box {
51
53
  position: relative;
@@ -60,7 +62,6 @@
60
62
  margin-right: 12px;
61
63
  .ant-input-prefix {
62
64
  margin-right: 20px;
63
- transform: scale(1.5);
64
65
  }
65
66
  }
66
67
  .top-total {
@@ -75,14 +76,30 @@
75
76
  position: absolute;
76
77
  top: 0;
77
78
  right: 0;
79
+ display: flex;
80
+ gap: 8px;
78
81
  line-height: 100%;
82
+ > :nth-child(2),
83
+ > :nth-child(3) {
84
+ color: #1454e5;
85
+ border: 1px solid #1454e5;
86
+ }
79
87
  }
80
88
  }
81
89
  .table-plus {
82
90
  &-table {
83
91
  .ant-table {
92
+ .ant-table-thead {
93
+ > tr > th {
94
+ height: 50px;
95
+ padding: 0 16px;
96
+ }
97
+ }
84
98
  .ant-table-tbody {
85
- // height: 500px;
99
+ > tr > td {
100
+ height: 50px;
101
+ padding: 0 16px;
102
+ }
86
103
  }
87
104
  table {
88
105
  border-collapse: collapse;
@@ -99,7 +116,6 @@
99
116
  background: red;
100
117
  }
101
118
  .alias_name {
102
- background: #fff !important;
103
119
  border: none;
104
120
  cursor: pointer;
105
121
  }
@@ -111,7 +127,11 @@
111
127
  box-shadow: none !important;
112
128
  }
113
129
  .group-row {
114
- border-top: 12px solid #f5f5f5;
130
+ // border-top: 12px solid #f5f5f5;
131
+ > :nth-child(1) {
132
+ display: flex !important;
133
+ align-items: center !important;
134
+ }
115
135
  .ant-table-cell-fix-left {
116
136
  left: 0px;
117
137
  display: block;
@@ -144,13 +164,6 @@
144
164
  margin-right: 4px;
145
165
  font-size: 18px !important;
146
166
  }
147
- // .group-text {
148
- // display: -webkit-box;
149
- // width: 120px;
150
- // overflow: hidden;
151
- // -webkit-box-orient: vertical;
152
- // -webkit-line-clamp: 1;
153
- // }
154
167
  .group-handle {
155
168
  margin-left: 30px;
156
169
  cursor: pointer;
@@ -170,6 +183,14 @@
170
183
  color: red;
171
184
  }
172
185
  }
186
+ .set-box {
187
+ display: flex;
188
+ color: #165dff;
189
+ cursor: pointer;
190
+ > :nth-child(1) {
191
+ margin-right: 16px;
192
+ }
193
+ }
173
194
  .select-style {
174
195
  width: 126px;
175
196
  .ant-select-selection-item {
@@ -188,18 +209,30 @@
188
209
  }
189
210
  .event_name {
190
211
  display: flex;
191
- cursor: pointer;
192
212
  .event_name-text {
193
213
  display: -webkit-box;
194
- width: 120px;
214
+ max-width: 120px;
195
215
  overflow: hidden;
216
+ cursor: pointer;
196
217
  -webkit-box-orient: vertical;
197
218
  -webkit-line-clamp: 1;
198
219
  }
220
+ .expired {
221
+ display: flex;
222
+ gap: 4px;
223
+ align-items: flex-start;
224
+ margin-left: 8px;
225
+ padding: 2px 8px;
226
+ color: #fd9f41;
227
+ font-size: 14px;
228
+ background: #ffecd9;
229
+ border-radius: 2px;
230
+ }
199
231
  .copy-text {
200
232
  display: none;
201
233
  margin-left: 10px;
202
234
  font-size: 16px !important;
235
+ cursor: pointer;
203
236
  }
204
237
  .copy-text:hover {
205
238
  color: @primary-color;
@@ -208,6 +241,7 @@
208
241
  .collect-icon-active {
209
242
  margin: 0 4px;
210
243
  font-size: 16px !important;
244
+ cursor: pointer;
211
245
  }
212
246
  .collect-icon {
213
247
  color: #999;
@@ -224,6 +258,17 @@
224
258
  margin-top: -6px;
225
259
  }
226
260
  }
261
+ .alias_name {
262
+ display: flex;
263
+ .edit-alias-name {
264
+ display: none;
265
+ margin-left: 10px;
266
+ font-size: 16px !important;
267
+ }
268
+ .edit-alias-name:hover {
269
+ color: @primary-color;
270
+ }
271
+ }
227
272
  .ant-table-row:hover {
228
273
  .collect-icon {
229
274
  opacity: 1;
@@ -231,6 +276,9 @@
231
276
  .copy-text {
232
277
  display: block;
233
278
  }
279
+ .edit-alias-name {
280
+ display: block;
281
+ }
234
282
  }
235
283
  .set {
236
284
  color: @primary-color;
@@ -266,7 +314,6 @@
266
314
  }
267
315
  }
268
316
  .alias_name {
269
- background: #fff !important;
270
317
  border: none;
271
318
  cursor: pointer;
272
319
  }
@@ -305,6 +352,16 @@
305
352
  }
306
353
  }
307
354
 
355
+ .virtual-event-list {
356
+ .table-plus {
357
+ &-table {
358
+ .event_name-text:hover {
359
+ color: #165dff;
360
+ }
361
+ }
362
+ }
363
+ }
364
+
308
365
  .event-list-drawer {
309
366
  .ant-drawer-header-title {
310
367
  height: 20px;
@@ -318,7 +375,277 @@
318
375
  }
319
376
  }
320
377
 
378
+ .create-virtual-drawer {
379
+ &-see-box {
380
+ > div {
381
+ display: flex;
382
+ gap: 8px;
383
+ margin-bottom: 16px;
384
+ color: #021429;
385
+ span {
386
+ width: 84px;
387
+ color: #5f6085;
388
+ text-align: right;
389
+ }
390
+ }
391
+ }
392
+ .ant-drawer-close {
393
+ display: none;
394
+ }
395
+ .qingchu {
396
+ font-size: 20px !important;
397
+ cursor: pointer;
398
+ }
399
+ &-eventDataBox {
400
+ margin-top: 24px;
401
+ padding-bottom: 24px;
402
+ > :nth-child(2) {
403
+ margin-top: 8px;
404
+ }
405
+ }
406
+ &-eventDataBox.see {
407
+ > :nth-child(1) {
408
+ color: #5f6085;
409
+ }
410
+ > :nth-child(2) {
411
+ color: #67727f;
412
+ }
413
+ }
414
+ &-formList {
415
+ margin-top: 24px;
416
+ .ant-form-item {
417
+ width: 100%;
418
+ max-width: 100%;
419
+ .ant-col {
420
+ width: 100%;
421
+ max-width: 100%;
422
+ }
423
+ }
424
+ }
425
+ &-formSubmit {
426
+ position: absolute;
427
+ right: 24px;
428
+ bottom: 24px;
429
+ display: flex;
430
+ gap: 8px;
431
+ }
432
+ }
433
+
434
+ .event-grouping-drawer {
435
+ &-box {
436
+ &-header {
437
+ display: flex;
438
+ align-items: center;
439
+ justify-content: space-between;
440
+ margin-top: 16px;
441
+ margin-bottom: 12px;
442
+ > div {
443
+ display: flex;
444
+ gap: 12px;
445
+ align-items: center;
446
+ justify-content: start;
447
+ }
448
+ .operate-left {
449
+ display: flex;
450
+ gap: 12px;
451
+ align-items: center;
452
+ justify-content: start;
453
+ > :nth-child(1) {
454
+ display: flex;
455
+ gap: 8px;
456
+ align-items: center;
457
+ justify-content: start;
458
+ > :nth-child(2) {
459
+ font-weight: 500;
460
+ }
461
+ .zhongmingming {
462
+ cursor: pointer;
463
+ }
464
+ }
465
+ > :last-child {
466
+ color: #9aa1a9;
467
+ }
468
+ }
469
+ .operate-right {
470
+ > :not(.ant-checkbox-wrapper):not(:last-child) {
471
+ padding: 0 8px;
472
+ cursor: pointer;
473
+ }
474
+ .tuozhuai1 {
475
+ font-size: 18px !important;
476
+ }
477
+ }
478
+ }
479
+ &-content {
480
+ display: flex;
481
+ flex-wrap: wrap;
482
+ > div {
483
+ display: flex;
484
+ flex-wrap: wrap;
485
+ justify-content: flex-start;
486
+ width: 100%;
487
+ .checkbox-item {
488
+ width: 25%;
489
+ }
490
+ // width: 25%;
491
+ // .ant-checkbox {
492
+ // top: 0em;
493
+ // }
494
+ }
495
+ .checkbox-item {
496
+ display: flex;
497
+ flex-shrink: 0;
498
+ align-items: center;
499
+ height: 40px;
500
+ margin: 0;
501
+ }
502
+ .event-hidden {
503
+ color: #ccd0d4;
504
+ }
505
+ }
506
+ &-content.close {
507
+ display: none;
508
+ }
509
+ }
510
+ .ant-drawer-title {
511
+ span {
512
+ margin-left: 8px;
513
+ color: #9aa1a9;
514
+ font-size: 12px;
515
+ }
516
+ }
517
+ .ant-drawer-close {
518
+ display: none;
519
+ }
520
+ .ant-drawer-extra {
521
+ display: flex;
522
+ justify-content: center;
523
+ > :nth-child(1) {
524
+ margin-right: 15px;
525
+ }
526
+ .qingchu {
527
+ font-size: 20px !important;
528
+ cursor: pointer;
529
+ }
530
+ }
531
+ }
532
+
533
+ .group-delete-modal {
534
+ .ant-modal-body {
535
+ padding: 24px;
536
+ }
537
+ .ant-modal-confirm-body {
538
+ .tishi1 {
539
+ margin-right: 2px;
540
+ color: #fd9f41;
541
+ font-size: 24px !important;
542
+ }
543
+ }
544
+ .ant-modal-confirm-title {
545
+ display: inline;
546
+ color: #021429;
547
+ font-weight: 500;
548
+ font-size: 24px;
549
+ }
550
+ .ant-modal-confirm-content {
551
+ margin-top: 20px;
552
+ }
553
+ }
554
+
555
+ .move-popover {
556
+ .ant-popover-inner-content {
557
+ padding: 22px 16px 30px 16px;
558
+ .move-content {
559
+ > div {
560
+ margin-bottom: 8px;
561
+ }
562
+ > :last-child {
563
+ display: flex;
564
+ gap: 8px;
565
+ align-items: center;
566
+ justify-content: end;
567
+ margin-bottom: 0;
568
+ }
569
+ }
570
+ }
571
+ }
572
+ .move-popover.hidden {
573
+ display: none;
574
+ }
575
+
321
576
  .ant-input-disabled,
322
577
  .disabled {
323
578
  cursor: not-allowed !important;
324
579
  }
580
+
581
+ .select-attributes {
582
+ &-select {
583
+ .ant-select-dropdown {
584
+ display: none !important;
585
+ }
586
+ }
587
+ }
588
+
589
+ .select-attributes-box {
590
+ display: flex;
591
+ width: 616px;
592
+ height: 380px;
593
+ background: #fff;
594
+ border-radius: 10px;
595
+ box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
596
+ &-left {
597
+ display: flex;
598
+ flex-direction: column;
599
+ width: 205px;
600
+ height: 380px;
601
+ padding: 8px;
602
+ overflow-y: auto;
603
+ box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
604
+ > div {
605
+ display: flex;
606
+ justify-content: space-between;
607
+ padding: 6px 12px;
608
+ }
609
+ .active {
610
+ color: #fff;
611
+ background: #165dff;
612
+ border-radius: 4px;
613
+ > :nth-child(2) {
614
+ padding: 0px 4px;
615
+ border: 1px solid #fff;
616
+ border-radius: 10px;
617
+ }
618
+ }
619
+ }
620
+ &-right {
621
+ width: 100%;
622
+ height: 380px;
623
+ padding: 8px;
624
+ > :nth-child(2) {
625
+ display: flex;
626
+ flex-direction: column;
627
+ gap: 8px;
628
+ align-items: flex-start;
629
+ width: 100%;
630
+ height: 320px;
631
+ margin-top: 8px;
632
+ overflow-y: auto;
633
+ > div {
634
+ display: flex;
635
+ flex-shrink: 0;
636
+ gap: 10px;
637
+ align-items: center;
638
+ align-self: stretch;
639
+ height: 32px;
640
+ padding: 0px 16px;
641
+ }
642
+ .active {
643
+ background: #e8efff;
644
+ }
645
+ }
646
+ }
647
+ }
648
+
649
+ .sortable-componnet-sortableList {
650
+ z-index: 9999;
651
+ }
@@ -0,0 +1,75 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * 虚拟事件基础属性
4
+ */
5
+ export interface VirtualEventBase {
6
+ aliasName: string;
7
+ bindEvent: string;
8
+ createUser: string;
9
+ description: string;
10
+ eventName: string;
11
+ insertTime: number;
12
+ updateTime: number;
13
+ lastInsertTime: number;
14
+ isStop: number;
15
+ markType: number;
16
+ owner: string;
17
+ }
18
+ export interface eventJsonProps {
19
+ eventId: number;
20
+ eventName: string;
21
+ owner: string;
22
+ }
23
+ export interface VirtualEventProps extends VirtualEventBase {
24
+ eventGroupId: number;
25
+ eventJson: eventJsonProps[];
26
+ id: number;
27
+ }
28
+ export interface DataType extends VirtualEventBase {
29
+ key: React.Key;
30
+ groupId?: number;
31
+ groupName?: string;
32
+ _groupId?: number;
33
+ }
34
+ export interface TableItemType {
35
+ groupId: number;
36
+ groupName: string;
37
+ eventList: [];
38
+ }
39
+ export interface GroupOptionsType {
40
+ value?: number;
41
+ label?: string;
42
+ }
43
+ export interface TablePlusType {
44
+ tableRenderData: DataType[];
45
+ editOrSeeVirtualEvent: Function;
46
+ refresh: Function;
47
+ markTypeFilter: Function;
48
+ loading: boolean;
49
+ }
50
+ export interface CreateVirtualDrawerProps {
51
+ createVirtualShow: boolean;
52
+ setCreateVirtualShow: Function;
53
+ editVirtualEventData: VirtualEventProps;
54
+ virtualDrawerType: 'create' | 'edit' | 'see';
55
+ groupOptions: GroupOptionsType[];
56
+ refresh: Function;
57
+ }
58
+ export interface DelectAttributesDataProps {
59
+ name: string;
60
+ id: number;
61
+ attrList: {
62
+ ofEventId: number[];
63
+ }[];
64
+ }
65
+ export interface SubmitDataProps {
66
+ aliasName: string;
67
+ desc: string;
68
+ eventGroupId: number;
69
+ eventName: string;
70
+ eventJson: eventJsonProps[];
71
+ }
72
+ export interface EventGroupingDrawerProps {
73
+ eventGroupingShow: boolean;
74
+ setEventGroupingShow: Function;
75
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './styles/index.less';
3
+ declare const VirtualEventList: React.FC;
4
+ export default VirtualEventList;