@zgfe/modules-dm 1.0.33 → 1.0.34-heyh.11

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 (42) 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 +52 -28
  5. package/es/modules/dataCollection/collectionEventList.js +52 -81
  6. package/es/modules/dataCollection/components/createVirtualDrawer.d.ts +4 -0
  7. package/es/modules/dataCollection/components/createVirtualDrawer.js +227 -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 +388 -0
  15. package/es/modules/dataCollection/components/selectAttributes.d.ts +3 -0
  16. package/es/modules/dataCollection/components/selectAttributes.js +210 -0
  17. package/es/modules/dataCollection/components/sortableComponnet.d.ts +3 -0
  18. package/es/modules/dataCollection/components/sortableComponnet.js +109 -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} +150 -140
  21. package/es/modules/dataCollection/components/virtualTablePlus.d.ts +5 -0
  22. package/es/modules/dataCollection/components/virtualTablePlus.js +383 -0
  23. package/es/modules/dataCollection/index.js +7 -6
  24. package/es/modules/dataCollection/styles/index.less +390 -18
  25. package/es/modules/dataCollection/types.d.ts +76 -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 +337 -0
  29. package/es/modules/dataManage/demo/index.js +16 -12
  30. package/es/modules/dataPlan/addEventOrUser.js +1 -2
  31. package/es/modules/dataPlan/addPlan.js +3 -12
  32. package/es/modules/dataPlan/eventList.js +0 -1
  33. package/es/modules/dataPlan/index.js +8 -9
  34. package/es/modules/dataPlan/tablePlus.js +0 -1
  35. package/es/modules/dataPlan/userAttributeList.js +0 -1
  36. package/es/utils/index.d.ts +48 -0
  37. package/es/utils/index.js +247 -0
  38. package/package.json +7 -4
  39. package/es/modules/dataCollection/demo/index.d.ts +0 -2
  40. package/es/modules/dataCollection/demo/index.js +0 -7
  41. package/es/modules/dataPlan/demo/index.d.ts +0 -2
  42. 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;
@@ -98,11 +115,6 @@
98
115
  word-break: break-all;
99
116
  background: red;
100
117
  }
101
- .alias_name {
102
- background: #fff !important;
103
- border: none;
104
- cursor: pointer;
105
- }
106
118
  .ant-input:focus,
107
119
  .ant-input-focused {
108
120
  background-color: #fff !important;
@@ -111,7 +123,11 @@
111
123
  box-shadow: none !important;
112
124
  }
113
125
  .group-row {
114
- border-top: 12px solid #f5f5f5;
126
+ // border-top: 12px solid #f5f5f5;
127
+ > :nth-child(1) {
128
+ display: flex !important;
129
+ align-items: center !important;
130
+ }
115
131
  .ant-table-cell-fix-left {
116
132
  left: 0px;
117
133
  display: block;
@@ -144,13 +160,6 @@
144
160
  margin-right: 4px;
145
161
  font-size: 18px !important;
146
162
  }
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
163
  .group-handle {
155
164
  margin-left: 30px;
156
165
  cursor: pointer;
@@ -170,6 +179,14 @@
170
179
  color: red;
171
180
  }
172
181
  }
182
+ .set-box {
183
+ display: flex;
184
+ color: #165dff;
185
+ cursor: pointer;
186
+ > :nth-child(1) {
187
+ margin-right: 16px;
188
+ }
189
+ }
173
190
  .select-style {
174
191
  width: 126px;
175
192
  .ant-select-selection-item {
@@ -188,18 +205,30 @@
188
205
  }
189
206
  .event_name {
190
207
  display: flex;
191
- cursor: pointer;
192
208
  .event_name-text {
193
209
  display: -webkit-box;
194
- width: 120px;
210
+ max-width: 120px;
195
211
  overflow: hidden;
212
+ cursor: pointer;
196
213
  -webkit-box-orient: vertical;
197
214
  -webkit-line-clamp: 1;
198
215
  }
216
+ .expired {
217
+ display: flex;
218
+ gap: 4px;
219
+ align-items: flex-start;
220
+ margin-left: 8px;
221
+ padding: 2px 8px;
222
+ color: #fd9f41;
223
+ font-size: 14px;
224
+ background: #ffecd9;
225
+ border-radius: 2px;
226
+ }
199
227
  .copy-text {
200
228
  display: none;
201
229
  margin-left: 10px;
202
230
  font-size: 16px !important;
231
+ cursor: pointer;
203
232
  }
204
233
  .copy-text:hover {
205
234
  color: @primary-color;
@@ -208,6 +237,7 @@
208
237
  .collect-icon-active {
209
238
  margin: 0 4px;
210
239
  font-size: 16px !important;
240
+ cursor: pointer;
211
241
  }
212
242
  .collect-icon {
213
243
  color: #999;
@@ -224,6 +254,36 @@
224
254
  margin-top: -6px;
225
255
  }
226
256
  }
257
+ .alias_name {
258
+ display: flex;
259
+ border: none;
260
+ cursor: pointer;
261
+ .alias_name_text {
262
+ display: -webkit-box;
263
+ max-width: 167px;
264
+ overflow: hidden;
265
+ cursor: pointer;
266
+ -webkit-box-orient: vertical;
267
+ -webkit-line-clamp: 1;
268
+ }
269
+ .edit-alias-name {
270
+ display: none;
271
+ margin-left: 10px;
272
+ font-size: 16px !important;
273
+ }
274
+ .edit-alias-name:hover {
275
+ color: @primary-color;
276
+ }
277
+ }
278
+ .bind-event,
279
+ .description {
280
+ display: -webkit-box;
281
+ max-width: 180px;
282
+ overflow: hidden;
283
+ cursor: pointer;
284
+ -webkit-box-orient: vertical;
285
+ -webkit-line-clamp: 1;
286
+ }
227
287
  .ant-table-row:hover {
228
288
  .collect-icon {
229
289
  opacity: 1;
@@ -231,6 +291,9 @@
231
291
  .copy-text {
232
292
  display: block;
233
293
  }
294
+ .edit-alias-name {
295
+ display: block;
296
+ }
234
297
  }
235
298
  .set {
236
299
  color: @primary-color;
@@ -266,7 +329,6 @@
266
329
  }
267
330
  }
268
331
  .alias_name {
269
- background: #fff !important;
270
332
  border: none;
271
333
  cursor: pointer;
272
334
  }
@@ -305,6 +367,16 @@
305
367
  }
306
368
  }
307
369
 
370
+ .virtual-event-list {
371
+ .table-plus {
372
+ &-table {
373
+ .event_name-text:hover {
374
+ color: #165dff;
375
+ }
376
+ }
377
+ }
378
+ }
379
+
308
380
  .event-list-drawer {
309
381
  .ant-drawer-header-title {
310
382
  height: 20px;
@@ -318,7 +390,307 @@
318
390
  }
319
391
  }
320
392
 
393
+ .create-virtual-drawer {
394
+ &-see-box {
395
+ > div {
396
+ display: flex;
397
+ gap: 8px;
398
+ margin-bottom: 16px;
399
+ color: #021429;
400
+ span {
401
+ width: 84px;
402
+ color: #5f6085;
403
+ text-align: right;
404
+ }
405
+ }
406
+ }
407
+ .ant-drawer-close {
408
+ display: none;
409
+ }
410
+ .qingchu {
411
+ font-size: 20px !important;
412
+ cursor: pointer;
413
+ }
414
+ &-eventDataBox {
415
+ margin-top: 24px;
416
+ padding-bottom: 24px;
417
+ > :nth-child(2) {
418
+ margin-top: 8px;
419
+ }
420
+ }
421
+ &-eventDataBox.see {
422
+ > :nth-child(1) {
423
+ color: #5f6085;
424
+ }
425
+ > :nth-child(2) {
426
+ color: #67727f;
427
+ }
428
+ }
429
+ &-formList {
430
+ margin-top: 24px;
431
+ .ant-form-item {
432
+ width: 100%;
433
+ max-width: 100%;
434
+ .ant-col {
435
+ width: 100%;
436
+ max-width: 100%;
437
+ }
438
+ }
439
+ }
440
+ &-formSubmit {
441
+ position: absolute;
442
+ right: 24px;
443
+ bottom: 24px;
444
+ display: flex;
445
+ gap: 8px;
446
+ }
447
+ }
448
+
449
+ .event-grouping-drawer {
450
+ &-box {
451
+ &-header {
452
+ display: flex;
453
+ align-items: center;
454
+ justify-content: space-between;
455
+ margin-top: 16px;
456
+ margin-bottom: 12px;
457
+ > div {
458
+ display: flex;
459
+ gap: 12px;
460
+ align-items: center;
461
+ justify-content: start;
462
+ }
463
+ .operate-left {
464
+ display: flex;
465
+ gap: 12px;
466
+ align-items: center;
467
+ justify-content: start;
468
+ > :nth-child(1) {
469
+ display: flex;
470
+ gap: 8px;
471
+ align-items: center;
472
+ justify-content: start;
473
+ > :nth-child(2) {
474
+ font-weight: 500;
475
+ }
476
+ .zhongmingming {
477
+ cursor: pointer;
478
+ }
479
+ }
480
+ > :last-child {
481
+ color: #9aa1a9;
482
+ }
483
+ }
484
+ .operate-right {
485
+ > :not(.ant-checkbox-wrapper):not(:last-child) {
486
+ padding: 0 8px;
487
+ cursor: pointer;
488
+ }
489
+ .tuozhuai1 {
490
+ font-size: 18px !important;
491
+ }
492
+ }
493
+ }
494
+ &-content {
495
+ display: flex;
496
+ flex-wrap: wrap;
497
+ > div {
498
+ display: flex;
499
+ flex-wrap: wrap;
500
+ justify-content: flex-start;
501
+ width: 100%;
502
+ gap: 12px;
503
+ .checkbox-item {
504
+ width: calc(25% - 9px);
505
+ background: #FAFAFB;
506
+ padding: 9px 0 9px 16px;
507
+ .ant-checkbox + span {
508
+ user-select: none;
509
+ display: -webkit-box;
510
+ max-width: 100%;
511
+ overflow: hidden;
512
+ cursor: pointer;
513
+ -webkit-box-orient: vertical;
514
+ -webkit-line-clamp: 1;
515
+ }
516
+ }
517
+ }
518
+ .checkbox-item {
519
+ display: flex;
520
+ flex-shrink: 0;
521
+ align-items: center;
522
+ height: 40px;
523
+ margin: 0;
524
+ }
525
+ .event-hidden {
526
+ color: #ccd0d4;
527
+ }
528
+ }
529
+ &-content.close {
530
+ display: none;
531
+ }
532
+ }
533
+ .ant-drawer-title {
534
+ span {
535
+ margin-left: 8px;
536
+ color: #9aa1a9;
537
+ font-size: 12px;
538
+ }
539
+ }
540
+ .ant-drawer-close {
541
+ display: none;
542
+ }
543
+ .ant-drawer-extra {
544
+ display: flex;
545
+ justify-content: center;
546
+ > :nth-child(1) {
547
+ margin-right: 15px;
548
+ }
549
+ .qingchu {
550
+ font-size: 20px !important;
551
+ cursor: pointer;
552
+ }
553
+ }
554
+ }
555
+
556
+ .group-delete-modal {
557
+ .ant-modal-body {
558
+ padding: 24px;
559
+ }
560
+ .ant-modal-confirm-body {
561
+ .tishi1 {
562
+ margin-right: 2px;
563
+ color: #fd9f41;
564
+ font-size: 24px !important;
565
+ }
566
+ }
567
+ .ant-modal-confirm-title {
568
+ display: inline;
569
+ color: #021429;
570
+ font-weight: 500;
571
+ font-size: 24px;
572
+ }
573
+ .ant-modal-confirm-content {
574
+ margin-top: 20px;
575
+ }
576
+ }
577
+
578
+ .move-popover {
579
+ .ant-popover-inner-content {
580
+ padding: 22px 16px 30px 16px;
581
+ .move-content {
582
+ > div {
583
+ margin-bottom: 8px;
584
+ }
585
+ > :last-child {
586
+ display: flex;
587
+ gap: 8px;
588
+ align-items: center;
589
+ justify-content: end;
590
+ margin-bottom: 0;
591
+ }
592
+ }
593
+ }
594
+ }
595
+ .move-popover.hidden {
596
+ display: none;
597
+ }
598
+
321
599
  .ant-input-disabled,
322
600
  .disabled {
323
601
  cursor: not-allowed !important;
324
602
  }
603
+
604
+ .select-attributes {
605
+ &-box {
606
+ display: flex;
607
+ width: 616px;
608
+ height: 380px;
609
+ background: #fff;
610
+ border-radius: 10px;
611
+ box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
612
+ &-left {
613
+ display: flex;
614
+ flex-direction: column;
615
+ width: 205px;
616
+ height: 380px;
617
+ padding: 8px;
618
+ overflow-y: auto;
619
+ box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
620
+ > div {
621
+ display: flex;
622
+ justify-content: space-between;
623
+ padding: 6px 12px;
624
+ }
625
+ .active {
626
+ color: #fff;
627
+ background: #165dff;
628
+ border-radius: 4px;
629
+ > :nth-child(2) {
630
+ padding: 0px 4px;
631
+ border: 1px solid #fff;
632
+ border-radius: 10px;
633
+ }
634
+ }
635
+ }
636
+ &-right {
637
+ width: 100%;
638
+ height: 380px;
639
+ padding: 8px;
640
+ > :nth-child(2) {
641
+ display: flex;
642
+ flex-direction: column;
643
+ gap: 8px;
644
+ align-items: flex-start;
645
+ width: 100%;
646
+ height: 320px;
647
+ margin-top: 8px;
648
+ overflow-y: auto;
649
+ > div {
650
+ display: flex;
651
+ flex-shrink: 0;
652
+ gap: 10px;
653
+ align-items: center;
654
+ align-self: stretch;
655
+ height: 32px;
656
+ padding: 0px 16px;
657
+ }
658
+ .active {
659
+ background: #e8efff;
660
+ }
661
+ }
662
+ }
663
+ }
664
+ &-select {
665
+ .ant-select-dropdown {
666
+ display: none !important;
667
+ }
668
+ }
669
+ &-modal-box {
670
+ .ant-modal-close-x {
671
+ display: none;
672
+ }
673
+ .ant-modal-title {
674
+ position: relative;
675
+ .tishi1 {
676
+ margin-right: 8px;
677
+ color: #fd9f41;
678
+ }
679
+ .qingchu {
680
+ position: absolute;
681
+ top: 0;
682
+ right: 0;
683
+ }
684
+ }
685
+ }
686
+ }
687
+
688
+ .sortable-componnet-sortableList {
689
+ z-index: 9999;
690
+ }
691
+
692
+ .not-operable{
693
+ color: #ccd0d4;
694
+ cursor: not-allowed!important;
695
+ user-select: none;
696
+ }
@@ -0,0 +1,76 @@
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
+ refresh: Function;
76
+ }
@@ -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;