@zgfe/modules-dm 1.0.34 → 1.0.36

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 +10 -0
  3. package/es/constants/api.js +25 -12
  4. package/es/modules/dataCollection/collectionAttributeList.js +32 -20
  5. package/es/modules/dataCollection/collectionEventList.js +62 -87
  6. package/es/modules/dataCollection/components/createVirtualDrawer.d.ts +4 -0
  7. package/es/modules/dataCollection/components/createVirtualDrawer.js +280 -0
  8. package/es/modules/dataCollection/components/eventFilter/index.d.ts +5 -0
  9. package/es/modules/dataCollection/components/eventFilter/index.js +154 -0
  10. package/es/modules/dataCollection/components/eventFilter/styles/index.less +72 -0
  11. package/es/modules/dataCollection/components/eventFilter/types.d.ts +52 -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 +452 -0
  15. package/es/modules/dataCollection/components/eventItem.d.ts +3 -0
  16. package/es/modules/dataCollection/components/eventItem.js +53 -0
  17. package/es/modules/dataCollection/components/selectAttributes.d.ts +3 -0
  18. package/es/modules/dataCollection/components/selectAttributes.js +219 -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} +162 -143
  21. package/es/modules/dataCollection/components/virtualTablePlus.d.ts +5 -0
  22. package/es/modules/dataCollection/components/virtualTablePlus.js +400 -0
  23. package/es/modules/dataCollection/index.js +7 -6
  24. package/es/modules/dataCollection/styles/index.less +535 -20
  25. package/es/modules/dataCollection/types.d.ts +78 -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 +343 -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 +49 -0
  37. package/es/utils/index.js +315 -0
  38. package/package.json +6 -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
@@ -1,10 +1,13 @@
1
1
  @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
2
  .data-collection {
3
3
  position: relative;
4
- height: 100%;
4
+ height: calc(100vh - 80px);
5
5
  padding: 24px;
6
6
  background: #fff;
7
7
  border-radius: 8px;
8
+ .ant-select{
9
+ border-radius: 4px!important;
10
+ }
8
11
  .loading {
9
12
  position: fixed;
10
13
  top: 70%;
@@ -15,12 +18,24 @@
15
18
  }
16
19
  .creact-group {
17
20
  .ant-modal-body {
18
- padding: 3px 20px 20px 20px;
21
+ padding: 3px 20px 20px 20px !important;
22
+ }
23
+ }
24
+ .ant-radio-group {
25
+ > :nth-child(1) {
26
+ border-radius: 4px 0px 0px 4px;
19
27
  }
28
+ > :last-child {
29
+ border-radius: 0px 4px 4px 0px;
30
+ }
31
+ }
32
+ .ant-radio-button-wrapper-checked {
33
+ background: #e8efff;
20
34
  }
21
35
  }
22
36
 
23
37
  .attr-list,
38
+ .virtual-event-list,
24
39
  .event-list {
25
40
  position: relative;
26
41
  min-height: 550px;
@@ -46,6 +61,7 @@
46
61
  }
47
62
  }
48
63
 
64
+ .virtual-event-list,
49
65
  .event-list {
50
66
  &-top-box {
51
67
  position: relative;
@@ -59,8 +75,7 @@
59
75
  width: 264px;
60
76
  margin-right: 12px;
61
77
  .ant-input-prefix {
62
- margin-right: 20px;
63
- transform: scale(1.5);
78
+ margin-right: 8px;
64
79
  }
65
80
  }
66
81
  .top-total {
@@ -75,14 +90,35 @@
75
90
  position: absolute;
76
91
  top: 0;
77
92
  right: 0;
93
+ display: flex;
94
+ gap: 16px;
78
95
  line-height: 100%;
96
+ > :nth-child(2),
97
+ > :nth-child(3) {
98
+ color: #1454e5;
99
+ border: 1px solid #1454e5;
100
+ }
79
101
  }
80
102
  }
81
103
  .table-plus {
82
104
  &-table {
105
+ overflow: hidden;
106
+ border-radius: 8px !important;
83
107
  .ant-table {
108
+ .ant-table-thead {
109
+ > tr > th {
110
+ height: 50px;
111
+ padding: 0 16px;
112
+ }
113
+ }
114
+ .ant-table-body {
115
+ min-height: 300px;
116
+ }
84
117
  .ant-table-tbody {
85
- // height: 500px;
118
+ > tr > td {
119
+ height: 50px;
120
+ padding: 0 16px;
121
+ }
86
122
  }
87
123
  table {
88
124
  border-collapse: collapse;
@@ -98,11 +134,6 @@
98
134
  word-break: break-all;
99
135
  background: red;
100
136
  }
101
- .alias_name {
102
- background: #fff !important;
103
- border: none;
104
- cursor: pointer;
105
- }
106
137
  .ant-input:focus,
107
138
  .ant-input-focused {
108
139
  background-color: #fff !important;
@@ -111,7 +142,11 @@
111
142
  box-shadow: none !important;
112
143
  }
113
144
  .group-row {
114
- border-top: 12px solid #f5f5f5;
145
+ // border-top: 12px solid #f5f5f5;
146
+ > :nth-child(1) {
147
+ display: flex !important;
148
+ align-items: center !important;
149
+ }
115
150
  .ant-table-cell-fix-left {
116
151
  left: 0px;
117
152
  display: block;
@@ -144,13 +179,6 @@
144
179
  margin-right: 4px;
145
180
  font-size: 18px !important;
146
181
  }
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
182
  .group-handle {
155
183
  margin-left: 30px;
156
184
  cursor: pointer;
@@ -170,6 +198,14 @@
170
198
  color: red;
171
199
  }
172
200
  }
201
+ .set-box {
202
+ display: flex;
203
+ color: #165dff;
204
+ cursor: pointer;
205
+ > :nth-child(1) {
206
+ margin-right: 16px;
207
+ }
208
+ }
173
209
  .select-style {
174
210
  width: 126px;
175
211
  .ant-select-selection-item {
@@ -188,17 +224,30 @@
188
224
  }
189
225
  .event_name {
190
226
  display: flex;
191
- cursor: pointer;
192
227
  .event_name-text {
193
228
  display: -webkit-box;
229
+ // max-width: 120px;
194
230
  overflow: hidden;
231
+ cursor: pointer;
195
232
  -webkit-box-orient: vertical;
196
233
  -webkit-line-clamp: 1;
197
234
  }
235
+ .expired {
236
+ display: flex;
237
+ gap: 4px;
238
+ align-items: flex-start;
239
+ margin-left: 8px;
240
+ padding: 2px 8px;
241
+ color: #fd9f41;
242
+ font-size: 14px;
243
+ background: #ffecd9;
244
+ border-radius: 2px;
245
+ }
198
246
  .copy-text {
199
247
  display: none;
200
248
  margin-left: 10px;
201
249
  font-size: 16px !important;
250
+ cursor: pointer;
202
251
  }
203
252
  .copy-text:hover {
204
253
  color: @primary-color;
@@ -207,6 +256,7 @@
207
256
  .collect-icon-active {
208
257
  margin: 0 4px;
209
258
  font-size: 16px !important;
259
+ cursor: pointer;
210
260
  }
211
261
  .collect-icon {
212
262
  color: #999;
@@ -223,6 +273,36 @@
223
273
  margin-top: -6px;
224
274
  }
225
275
  }
276
+ .alias_name {
277
+ display: flex;
278
+ border: none;
279
+ cursor: pointer;
280
+ .alias_name_text {
281
+ display: -webkit-box;
282
+ max-width: 167px;
283
+ overflow: hidden;
284
+ cursor: pointer;
285
+ -webkit-box-orient: vertical;
286
+ -webkit-line-clamp: 1;
287
+ }
288
+ .edit-alias-name {
289
+ display: none;
290
+ margin-left: 10px;
291
+ font-size: 16px !important;
292
+ }
293
+ .edit-alias-name:hover {
294
+ color: @primary-color;
295
+ }
296
+ }
297
+ .bind-event,
298
+ .description {
299
+ display: -webkit-box;
300
+ max-width: 180px;
301
+ overflow: hidden;
302
+ cursor: pointer;
303
+ -webkit-box-orient: vertical;
304
+ -webkit-line-clamp: 1;
305
+ }
226
306
  .ant-table-row:hover {
227
307
  .collect-icon {
228
308
  opacity: 1;
@@ -230,6 +310,9 @@
230
310
  .copy-text {
231
311
  display: block;
232
312
  }
313
+ .edit-alias-name {
314
+ display: block;
315
+ }
233
316
  }
234
317
  .set {
235
318
  color: @primary-color;
@@ -245,6 +328,11 @@
245
328
  }
246
329
 
247
330
  .attr-list {
331
+ .ant-table {
332
+ overflow: hidden;
333
+ border: 1px solid #ecedf0;
334
+ border-radius: 8px;
335
+ }
248
336
  .attr-name {
249
337
  display: flex;
250
338
  .attr-name-text {
@@ -265,7 +353,6 @@
265
353
  }
266
354
  }
267
355
  .alias_name {
268
- background: #fff !important;
269
356
  border: none;
270
357
  cursor: pointer;
271
358
  }
@@ -304,7 +391,20 @@
304
391
  }
305
392
  }
306
393
 
394
+ .virtual-event-list {
395
+ .table-plus {
396
+ &-table {
397
+ .event_name-text:hover {
398
+ color: #165dff;
399
+ }
400
+ }
401
+ }
402
+ }
403
+
307
404
  .event-list-drawer {
405
+ .ant-select{
406
+ border-radius: 4px!important;
407
+ }
308
408
  .ant-drawer-header-title {
309
409
  height: 20px;
310
410
  .ant-drawer-close {
@@ -317,7 +417,422 @@
317
417
  }
318
418
  }
319
419
 
420
+ .create-virtual-drawer {
421
+ .ant-select{
422
+ border-radius: 4px!important;
423
+ }
424
+ #basic {
425
+ padding-bottom: 100px;
426
+ .ant-input {
427
+ border: none;
428
+ }
429
+ }
430
+ &-desc {
431
+ .ant-form-item-control {
432
+ max-width: 100%;
433
+ }
434
+ }
435
+ &-add {
436
+ color: #165dff;
437
+ cursor: pointer;
438
+ &-icon {
439
+ margin-right: 8px;
440
+ font-weight: 900;
441
+ font-size: 18px !important;
442
+ vertical-align: -2px;
443
+ }
444
+ }
445
+ &-see-box {
446
+ > div {
447
+ display: flex;
448
+ gap: 8px;
449
+ margin-bottom: 16px;
450
+ color: #021429;
451
+ span {
452
+ width: 84px;
453
+ min-width: 84px;
454
+ color: #5f6085;
455
+ text-align: right;
456
+ }
457
+ }
458
+ }
459
+ .ant-drawer-close {
460
+ display: none;
461
+ }
462
+ .qingchu {
463
+ font-size: 20px !important;
464
+ cursor: pointer;
465
+ }
466
+ &-eventDataBox {
467
+ margin-top: 24px;
468
+ padding-bottom: 24px;
469
+ > :nth-child(1) {
470
+ color: #5f6085;
471
+ }
472
+ > :nth-child(1)::before {
473
+ display: inline-block;
474
+ margin-right: 4px;
475
+ color: #ff4d4f;
476
+ font-size: 14px;
477
+ font-family: SimSun, sans-serif;
478
+ line-height: 1;
479
+ content: '*';
480
+ }
481
+ > :nth-child(2) {
482
+ margin-top: 8px;
483
+ color: #67727f;
484
+ font-size: 12px;
485
+ }
486
+ }
487
+ &-eventDataBox.see {
488
+ > :nth-child(1) {
489
+ color: #5f6085;
490
+ }
491
+ > :nth-child(2) {
492
+ color: #67727f;
493
+ }
494
+ }
495
+ &-formList {
496
+ margin-top: 16px;
497
+ .ant-form-item {
498
+ width: 100%;
499
+ max-width: 100%;
500
+ margin-bottom: 16px !important;
501
+ .ant-col {
502
+ width: 100%;
503
+ max-width: 100%;
504
+ }
505
+ }
506
+ }
507
+ &-formSubmit {
508
+ position: absolute;
509
+ right: 0;
510
+ bottom: 0;
511
+ display: flex;
512
+ gap: 16px;
513
+ justify-content: end;
514
+ width: 100%;
515
+ padding: 16px;
516
+ padding-right: 24px;
517
+ background: #fff;
518
+ border-top: 1px solid #f2f3f4;
519
+ }
520
+ .ant-drawer-content,
521
+ .ant-drawer-wrapper-body {
522
+ overflow: hidden !important;
523
+ }
524
+ }
525
+
526
+ .event-grouping-drawer {
527
+ &-box {
528
+ &-header {
529
+ display: flex;
530
+ align-items: center;
531
+ justify-content: space-between;
532
+ margin-top: 16px;
533
+ margin-bottom: 12px;
534
+ > div {
535
+ display: flex;
536
+ gap: 12px;
537
+ align-items: center;
538
+ justify-content: start;
539
+ }
540
+ .operate-left {
541
+ display: flex;
542
+ gap: 12px;
543
+ align-items: center;
544
+ justify-content: start;
545
+ .fangxiangshang {
546
+ transform: rotateZ(90deg);
547
+ }
548
+ > :nth-child(1) {
549
+ display: flex;
550
+ gap: 8px;
551
+ align-items: center;
552
+ justify-content: start;
553
+ > :nth-child(1) {
554
+ color: #9aa1a9;
555
+ }
556
+ > :nth-child(2) {
557
+ font-weight: 500;
558
+ }
559
+ .zhongmingming {
560
+ cursor: pointer;
561
+ }
562
+ .zhongmingming:hover {
563
+ color: #165dff;
564
+ }
565
+ }
566
+ > :last-child {
567
+ color: #9aa1a9;
568
+ }
569
+ }
570
+ .operate-right {
571
+ > :not(.ant-checkbox-wrapper):not(:last-child) {
572
+ padding: 0 8px;
573
+ cursor: pointer;
574
+ }
575
+ .tuozhuai1 {
576
+ font-size: 18px !important;
577
+ cursor: move;
578
+ }
579
+ .handle:hover {
580
+ color: #165dff;
581
+ }
582
+ .handle-delete:hover {
583
+ color: #fb5547;
584
+ }
585
+ }
586
+ }
587
+ &-content {
588
+ display: flex;
589
+ flex-wrap: wrap;
590
+ > div {
591
+ display: flex;
592
+ flex-wrap: wrap;
593
+ gap: 12px;
594
+ justify-content: flex-start;
595
+ width: 100%;
596
+ .checkbox-item {
597
+ display: flex;
598
+ flex-shrink: 0;
599
+ align-items: center;
600
+ width: calc(25% - 9px);
601
+ height: 40px;
602
+ margin: 0;
603
+ padding: 9px 0 9px 16px;
604
+ background: #fafafb;
605
+ border-radius: 4px;
606
+ .ant-checkbox {
607
+ margin-top: -6px;
608
+ }
609
+ .ant-checkbox + span {
610
+ display: -webkit-box;
611
+ max-width: 100%;
612
+ overflow: hidden;
613
+ cursor: pointer;
614
+ user-select: none;
615
+ -webkit-box-orient: vertical;
616
+ -webkit-line-clamp: 1;
617
+ }
618
+ }
619
+ }
620
+ .event-hidden {
621
+ color: #ccd0d4;
622
+ }
623
+ }
624
+ &-content.close {
625
+ display: none;
626
+ }
627
+ }
628
+ &-top-box {
629
+ display: flex;
630
+ align-items: center;
631
+ justify-content: space-between;
632
+ margin-top: -8px;
633
+ .ant-btn {
634
+ height: 32px;
635
+ }
636
+ .ant-input-affix-wrapper {
637
+ width: 374px;
638
+ border: none;
639
+ }
640
+ .ant-input-prefix {
641
+ margin-right: 10px;
642
+ }
643
+ }
644
+ .ant-drawer-content-wrapper {
645
+ overflow-x: hidden;
646
+ }
647
+ .ant-drawer-content,
648
+ .ant-drawer-wrapper-body {
649
+ overflow: hidden !important;
650
+ }
651
+ .ant-drawer-title {
652
+ span {
653
+ margin-left: 8px;
654
+ color: #9aa1a9;
655
+ font-size: 12px;
656
+ }
657
+ }
658
+ .ant-drawer-close {
659
+ display: none;
660
+ }
661
+ .ant-drawer-extra {
662
+ .qingchu {
663
+ font-size: 20px !important;
664
+ cursor: pointer;
665
+ }
666
+ }
667
+ }
668
+
669
+ .event-grouping-drawer-sortablelist {
670
+ z-index: 99999;
671
+ }
672
+
673
+ .group-delete-modal {
674
+ .ant-modal-body {
675
+ padding: 24px;
676
+ }
677
+ .ant-modal-confirm-body {
678
+ .tishi1 {
679
+ margin-right: 2px;
680
+ color: #fd9f41;
681
+ font-size: 24px !important;
682
+ }
683
+ }
684
+ .ant-modal-confirm-title {
685
+ display: inline !important;
686
+ color: #021429 !important;
687
+ font-weight: 500;
688
+ font-size: 24px !important;
689
+ }
690
+ .ant-modal-confirm-content {
691
+ margin-top: 20px !important;
692
+ }
693
+ }
694
+
695
+ .move-popover {
696
+ .ant-popover-inner-content {
697
+ padding: 22px 16px 30px 16px;
698
+ .move-content {
699
+ > div {
700
+ margin-bottom: 8px;
701
+ }
702
+ > :last-child {
703
+ display: flex;
704
+ gap: 8px;
705
+ align-items: center;
706
+ justify-content: end;
707
+ margin-bottom: 0;
708
+ }
709
+ }
710
+ }
711
+ }
712
+ .move-popover.hidden {
713
+ display: none;
714
+ }
715
+
320
716
  .ant-input-disabled,
321
717
  .disabled {
322
718
  cursor: not-allowed !important;
323
719
  }
720
+
721
+ .select-attributes {
722
+ &-box {
723
+ display: flex;
724
+ width: 616px;
725
+ height: 380px;
726
+ background: #fff;
727
+ border-radius: 10px;
728
+ box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
729
+ &-left {
730
+ display: flex;
731
+ flex-direction: column;
732
+ width: 205px;
733
+ height: 380px;
734
+ padding: 8px;
735
+ overflow-y: auto;
736
+ box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
737
+ > div {
738
+ display: flex;
739
+ justify-content: space-between;
740
+ padding: 6px 12px;
741
+ }
742
+ .active {
743
+ color: #fff;
744
+ background: #165dff;
745
+ border-radius: 4px;
746
+ > :nth-child(2) {
747
+ padding: 0px 4px;
748
+ border: 1px solid #fff;
749
+ border-radius: 10px;
750
+ }
751
+ }
752
+ }
753
+ &-right {
754
+ width: 100%;
755
+ height: 380px;
756
+ padding: 8px;
757
+ > :nth-child(2) {
758
+ display: flex;
759
+ flex-direction: column;
760
+ gap: 8px;
761
+ align-items: flex-start;
762
+ width: 100%;
763
+ height: 320px;
764
+ margin-top: 8px;
765
+ overflow-y: auto;
766
+ > div {
767
+ display: flex;
768
+ flex-shrink: 0;
769
+ gap: 10px;
770
+ align-items: center;
771
+ align-self: stretch;
772
+ height: 32px;
773
+ padding: 0px 16px;
774
+ }
775
+ .active {
776
+ background: #e8efff;
777
+ }
778
+ }
779
+ }
780
+ }
781
+ &-select {
782
+ display: flex;
783
+ gap: 10px;
784
+ align-items: center;
785
+ justify-content: flex-start;
786
+ margin-top: 16px;
787
+ > :nth-child(1) {
788
+ width: 32px;
789
+ color: #5f6085;
790
+ }
791
+ }
792
+ &-modal-box {
793
+ .ant-modal-header {
794
+ padding-bottom: 0 !important;
795
+ }
796
+ .ant-modal-body {
797
+ > :nth-child(1) {
798
+ color: #021429;
799
+ }
800
+ }
801
+ .ant-modal-close-x {
802
+ display: none;
803
+ }
804
+ .ant-modal-title {
805
+ position: relative;
806
+ .tishi1 {
807
+ margin-right: 8px;
808
+ color: #fd9f41;
809
+ }
810
+ .qingchu {
811
+ position: absolute;
812
+ top: 0;
813
+ right: 0;
814
+ }
815
+ }
816
+ }
817
+ }
818
+ #select-attributes-select {
819
+ .ant-select-dropdown {
820
+ display: none !important;
821
+ }
822
+ }
823
+
824
+ .not-operable {
825
+ color: #ccd0d4;
826
+ cursor: not-allowed !important;
827
+ user-select: none;
828
+ }
829
+
830
+ // dm项目中modal-confirm公用的样式
831
+ .dm-modal-confirm {
832
+ .ant-modal-confirm-btns {
833
+ .ant-btn-primary {
834
+ margin-left: 16px !important;
835
+ background: #165dff;
836
+ }
837
+ }
838
+ }