@zgfe/business-lib 1.2.57 → 1.2.66-hxd.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 (135) hide show
  1. package/README.md +12 -12
  2. package/config.js +41 -41
  3. package/es/AUMFormulaTarget/components/formula/index.less +86 -82
  4. package/es/AUMFormulaTarget/components/formulaItem/index.js +52 -13
  5. package/es/AUMFormulaTarget/components/panel/index.less +269 -269
  6. package/es/AUMFormulaTarget/components/symbol/index.less +49 -49
  7. package/es/AUMFormulaTarget/demo/index.js +1 -1
  8. package/es/AUMFormulaTarget/styles/index.less +74 -74
  9. package/es/addToPanel/styles/addPanel.less +25 -25
  10. package/es/addToPanel/styles/index.less +17 -17
  11. package/es/addToPanel/styles/style.less +66 -66
  12. package/es/addToScene/styles/index.less +30 -30
  13. package/es/assets/colorIcon/demo.css +539 -539
  14. package/es/assets/colorIcon/demo_index.html +1454 -1454
  15. package/es/assets/colorIcon/iconfont.css +236 -236
  16. package/es/assets/colorIcon/iconfont.json +394 -394
  17. package/es/assets/colorIcon/iconfont.svg +129 -129
  18. package/es/assets/iconfont/demo.css +539 -539
  19. package/es/assets/iconfont/demo_index.html +5363 -5363
  20. package/es/assets/iconfont/iconfont.css +915 -915
  21. package/es/assets/iconfont/iconfont.json +1584 -1584
  22. package/es/assets/images/attention.png +0 -0
  23. package/es/assets/styles/chunks.less +183 -183
  24. package/es/assets/styles/inner.less +3 -3
  25. package/es/assets/styles/resetAntd.less +551 -551
  26. package/es/assets/styles/variable.less +21 -21
  27. package/es/attrCondition/group.js +5 -2
  28. package/es/attrCondition/index.js +6 -2
  29. package/es/attrCondition/styles/index.less +101 -101
  30. package/es/attrConditions/components/stringList.d.ts +10 -0
  31. package/es/attrConditions/components/stringList.js +57 -27
  32. package/es/attrConditions/components/valuesList.d.ts +10 -0
  33. package/es/attrConditions/components/valuesList.js +6 -2
  34. package/es/attrConditions/styles/group.less +49 -49
  35. package/es/attrConditions/styles/index.less +151 -151
  36. package/es/attrConditions/types.d.ts +17 -0
  37. package/es/attributeSelector/index.js +6 -2
  38. package/es/attributeSelector/listPanel.js +6 -2
  39. package/es/attributeSelector/styles/index.less +141 -141
  40. package/es/attributeSelector/types.d.ts +2 -0
  41. package/es/chart/demo/index.js +2 -3
  42. package/es/chart/styles/index.less +113 -113
  43. package/es/chart/util/data/china.js +17 -17
  44. package/es/chart/util/formatOption.js +1 -1
  45. package/es/constants/apis.d.ts +3 -0
  46. package/es/constants/apis.js +4 -1
  47. package/es/cycleTime/styles/index.less +24 -24
  48. package/es/cycleTime/styles/month.less +95 -95
  49. package/es/dataSetGroup/styles/index.less +146 -146
  50. package/es/datePicker/styles/index.less +53 -53
  51. package/es/datePickerV2/styles/index.less +194 -194
  52. package/es/demoWrapper/index.less +3 -3
  53. package/es/dialog/styles/index.less +22 -22
  54. package/es/dnd/styles/index.less +19 -19
  55. package/es/empty/demo/index.d.ts +4 -0
  56. package/es/empty/demo/index.js +16 -0
  57. package/es/empty/index.d.ts +4 -0
  58. package/es/empty/index.js +19 -0
  59. package/es/empty/types.d.ts +7 -0
  60. package/es/empty/types.js +1 -0
  61. package/es/eventSelector/styles/index.less +123 -123
  62. package/es/formulaTarget/components/formula/index.less +76 -76
  63. package/es/formulaTarget/components/panel/index.less +139 -139
  64. package/es/formulaTarget/components/symbol/index.less +49 -49
  65. package/es/formulaTarget/styles/index.less +74 -74
  66. package/es/hooks/types/subject.d.ts +14 -14
  67. package/es/icon/demo/list.less +32 -32
  68. package/es/index.d.ts +3 -1
  69. package/es/index.js +3 -1
  70. package/es/layout/analysisLayout/demo/index.less +12 -12
  71. package/es/layout/analysisLayout/index.less +118 -118
  72. package/es/layout/columnLayout/demo/index.less +15 -15
  73. package/es/layout/columnLayout/index.less +81 -81
  74. package/es/layout/detail/index.less +27 -27
  75. package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
  76. package/es/layout/optionTitle/demo/index.less +12 -12
  77. package/es/loading/styles/index.less +20 -20
  78. package/es/loginForm/index.less +7 -7
  79. package/es/platformSelector/index.js +42 -9
  80. package/es/platformSelector/styles/index.less +26 -22
  81. package/es/platformSelector/util.d.ts +1 -1
  82. package/es/platformSelector/util.js +8 -1
  83. package/es/productCondition/conditions/styles/cdpCondition.less +31 -31
  84. package/es/productCondition/conditions/styles/cdpCshCondition.less +41 -41
  85. package/es/productCondition/conditions/styles/eventCondition.less +51 -51
  86. package/es/productCondition/conditions/styles/periodCondition.less +26 -26
  87. package/es/productCondition/conditions/styles/propCondition.less +43 -43
  88. package/es/productCondition/conditions/styles/runTimesCondition.less +19 -19
  89. package/es/productCondition/conditions/styles/tagsCondition.less +20 -20
  90. package/es/productCondition/conditions/styles/textDesc.less +17 -17
  91. package/es/productCondition/styles/conditionTypeList.less +30 -30
  92. package/es/productCondition/styles/conditionWrap.less +18 -18
  93. package/es/productCondition/styles/index.less +33 -33
  94. package/es/productCondition/styles/orConditions.less +34 -34
  95. package/es/productCondition/styles/relationLabel.less +19 -19
  96. package/es/quickDatePicker/styles/index.less +138 -138
  97. package/es/select/styles/handle.less +193 -193
  98. package/es/select/styles/index.less +129 -129
  99. package/es/socket/demo/index.less +27 -27
  100. package/es/table/styles/index.less +5 -5
  101. package/es/targetConditionGroup/demo/styles/index.less +29 -29
  102. package/es/targetConditionGroup/index.js +5 -4
  103. package/es/targetConditionGroup/styles/index.less +53 -53
  104. package/es/targetSelector/styles/index.less +110 -110
  105. package/es/userCondition/conditionTypeList.js +1 -10
  106. package/es/userCondition/conditions/businessCondition.js +3 -10
  107. package/es/userCondition/conditions/eventCondition.js +36 -4
  108. package/es/userCondition/conditions/styles/cdpCondition.less +37 -37
  109. package/es/userCondition/conditions/styles/cdpCshCondition.less +47 -47
  110. package/es/userCondition/conditions/styles/eventCondition.less +57 -51
  111. package/es/userCondition/conditions/styles/periodCondition.less +26 -26
  112. package/es/userCondition/conditions/styles/propCondition.less +43 -43
  113. package/es/userCondition/conditions/styles/runTimesCondition.less +19 -19
  114. package/es/userCondition/conditions/styles/tagsCondition.less +20 -20
  115. package/es/userCondition/conditions/styles/textDesc.less +17 -17
  116. package/es/userCondition/conditions/textDesc.js +1 -24
  117. package/es/userCondition/orConditions.js +0 -7
  118. package/es/userCondition/styles/conditionTypeList.less +30 -30
  119. package/es/userCondition/styles/conditionWrap.less +18 -18
  120. package/es/userCondition/styles/index.less +33 -33
  121. package/es/userCondition/styles/orConditions.less +34 -34
  122. package/es/userCondition/styles/relationLabel.less +19 -19
  123. package/es/userGroup/styles/index.less +145 -145
  124. package/es/userGroupHeader/styles/index.less +31 -31
  125. package/es/userTagsSelector/cascaderOverlay.js +13 -6
  126. package/es/userTagsSelector/components/search/index.less +6 -6
  127. package/es/userTagsSelector/components/tagList/index.less +13 -13
  128. package/es/userTagsSelector/demo/index.js +1 -0
  129. package/es/userTagsSelector/groups/styles/option.less +55 -55
  130. package/es/userTagsSelector/index.js +6 -3
  131. package/es/userTagsSelector/multipleCheckPanel/styles/option.less +40 -40
  132. package/es/userTagsSelector/styles/cascaderOverlay.less +34 -34
  133. package/es/userTagsSelector/styles/index.less +10 -10
  134. package/es/userTagsSelector/types.d.ts +2 -0
  135. package/package.json +62 -62
@@ -1,5 +1,5 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-table-total {
4
- color: @primary-color;
5
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-table-total {
4
+ color: @primary-color;
5
+ }
@@ -1,29 +1,29 @@
1
- @import '../../../assets/styles/inner.less';
2
-
3
- .biz-add-btn {
4
- width: fit-content;
5
- padding: 0 4px;
6
- line-height: 20px;
7
- background-color: #fff;
8
- border-radius: 4px;
9
-
10
- span {
11
- margin-right: 5px;
12
- }
13
-
14
- &.disabled {
15
- color: @disabled-color;
16
- cursor: not-allowed;
17
- span {
18
- color: @disabled-color;
19
- }
20
- }
21
-
22
- &:hover:not(.disabled) {
23
- .__default-hover();
24
-
25
- span {
26
- color: @primary-color;
27
- }
28
- }
29
- }
1
+ @import '../../../assets/styles/inner.less';
2
+
3
+ .biz-add-btn {
4
+ width: fit-content;
5
+ padding: 0 4px;
6
+ line-height: 20px;
7
+ background-color: #fff;
8
+ border-radius: 4px;
9
+
10
+ span {
11
+ margin-right: 5px;
12
+ }
13
+
14
+ &.disabled {
15
+ color: @disabled-color;
16
+ cursor: not-allowed;
17
+ span {
18
+ color: @disabled-color;
19
+ }
20
+ }
21
+
22
+ &:hover:not(.disabled) {
23
+ .__default-hover();
24
+
25
+ span {
26
+ color: @primary-color;
27
+ }
28
+ }
29
+ }
@@ -21,7 +21,7 @@ import { BuiltinIndicators } from '../constants/common';
21
21
  import { BizAttrConditionGroup, IconFont } from '..';
22
22
  export var classPrefix = 'biz-target';
23
23
  var BizTargetCondition = function BizTargetCondition(props) {
24
- var _targetData$value3, _targetData$value3$gr, _targetData$value4, _targetData$value4$ev, _targetData$value5, _targetData$value5$ev, _targetData$value6, _targetData$value6$ev, _targetData$value7, _targetData$value8, _targetData$value8$ev, _targetData$value9, _targetData$value9$ev;
24
+ var _targetData$value3, _targetData$value3$gr, _targetData$value4, _targetData$value4$ev, _targetData$value5, _targetData$value5$ev, _targetData$value6, _targetData$value6$ev, _targetData$value7, _targetData$value8, _targetData$value8$ev, _targetData$value9, _targetData$value9$ev, _targetData$value10, _targetData$value10$e, _targetData$value11, _targetData$value11$e;
25
25
  var max = props.max;
26
26
  var _useState = useState(),
27
27
  _useState2 = _slicedToArray(_useState, 2),
@@ -30,7 +30,8 @@ var BizTargetCondition = function BizTargetCondition(props) {
30
30
  var _useContext = useContext(BizGlobalDataContext),
31
31
  _useContext$eventGrou = _useContext.eventGroupList,
32
32
  eventGroupList = _useContext$eventGrou === void 0 ? [] : _useContext$eventGrou,
33
- currentApp = _useContext.currentApp;
33
+ currentApp = _useContext.currentApp,
34
+ eventIdMap = _useContext.eventIdMap;
34
35
  var _useState3 = useState({
35
36
  analysisIndex: 'number'
36
37
  }),
@@ -254,13 +255,13 @@ var BizTargetCondition = function BizTargetCondition(props) {
254
255
  className: "".concat(classPrefix, "-icon delete ").concat(!(props.enableDelete !== undefined ? props.enableDelete || !(targetData === null || targetData === void 0 ? void 0 : (_targetData$value7 = targetData.value) === null || _targetData$value7 === void 0 ? void 0 : _targetData$value7.event) : enableDelete) ? 'disabled' : ''),
255
256
  type: "qingchu",
256
257
  onClick: onDelete
257
- })), (filters || isAdd) && /*#__PURE__*/React.createElement(BizAttrConditionGroup, {
258
+ })), (targetData === null || targetData === void 0 ? void 0 : (_targetData$value8 = targetData.value) === null || _targetData$value8 === void 0 ? void 0 : (_targetData$value8$ev = _targetData$value8.event) === null || _targetData$value8$ev === void 0 ? void 0 : _targetData$value8$ev.id) && eventIdMap && eventIdMap[targetData === null || targetData === void 0 ? void 0 : (_targetData$value9 = targetData.value) === null || _targetData$value9 === void 0 ? void 0 : (_targetData$value9$ev = _targetData$value9.event) === null || _targetData$value9$ev === void 0 ? void 0 : _targetData$value9$ev.id] && (filters || isAdd) && /*#__PURE__*/React.createElement(BizAttrConditionGroup, {
258
259
  ref: conditionRef,
259
260
  value: filters,
260
261
  onlyAnd: props.onlyAnd,
261
262
  enableEventProp: true,
262
263
  enableDelete: true,
263
- eventIdList: (targetData === null || targetData === void 0 ? void 0 : (_targetData$value8 = targetData.value) === null || _targetData$value8 === void 0 ? void 0 : (_targetData$value8$ev = _targetData$value8.event) === null || _targetData$value8$ev === void 0 ? void 0 : _targetData$value8$ev.id) ? [targetData === null || targetData === void 0 ? void 0 : (_targetData$value9 = targetData.value) === null || _targetData$value9 === void 0 ? void 0 : (_targetData$value9$ev = _targetData$value9.event) === null || _targetData$value9$ev === void 0 ? void 0 : _targetData$value9$ev.id] : undefined,
264
+ eventIdList: (targetData === null || targetData === void 0 ? void 0 : (_targetData$value10 = targetData.value) === null || _targetData$value10 === void 0 ? void 0 : (_targetData$value10$e = _targetData$value10.event) === null || _targetData$value10$e === void 0 ? void 0 : _targetData$value10$e.id) ? [targetData === null || targetData === void 0 ? void 0 : (_targetData$value11 = targetData.value) === null || _targetData$value11 === void 0 ? void 0 : (_targetData$value11$e = _targetData$value11.event) === null || _targetData$value11$e === void 0 ? void 0 : _targetData$value11$e.id] : undefined,
264
265
  onChange: onChangeFilters,
265
266
  onConditionsCount: setCount
266
267
  })));
@@ -1,53 +1,53 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-target {
4
- &-content {
5
- display: flex;
6
- align-items: center;
7
- }
8
-
9
- .biz-target-select {
10
- min-width: 160px;
11
- max-width: calc(100% - 208px);
12
- &:hover {
13
- .biz-event-select {
14
- max-width: calc(100% - 18px);
15
- }
16
- }
17
- .biz-event-select {
18
- max-width: 100%;
19
- }
20
- .biz-select-handle-content {
21
- max-width: calc(100% - 19px);
22
- }
23
- }
24
-
25
- .biz-attr-condition-group {
26
- margin-top: 12px;
27
- }
28
-
29
- &-dimension {
30
- width: 100px;
31
- margin-left: 16px;
32
- }
33
- &-dropmenu,
34
- &-submenu {
35
- width: 120px;
36
- }
37
-
38
- &-icon {
39
- margin-left: 16px;
40
- .__icon();
41
-
42
- &.shaixuan {
43
- font-size: 20px !important;
44
- }
45
-
46
- &.delete {
47
- font-size: 16px !important;
48
- }
49
- }
50
- .biz-event-select.focus {
51
- box-shadow: none;
52
- }
53
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-target {
4
+ &-content {
5
+ display: flex;
6
+ align-items: center;
7
+ }
8
+
9
+ .biz-target-select {
10
+ min-width: 160px;
11
+ max-width: calc(100% - 208px);
12
+ &:hover {
13
+ .biz-event-select {
14
+ max-width: calc(100% - 18px);
15
+ }
16
+ }
17
+ .biz-event-select {
18
+ max-width: 100%;
19
+ }
20
+ .biz-select-handle-content {
21
+ max-width: calc(100% - 19px);
22
+ }
23
+ }
24
+
25
+ .biz-attr-condition-group {
26
+ margin-top: 12px;
27
+ }
28
+
29
+ &-dimension {
30
+ width: 100px;
31
+ margin-left: 16px;
32
+ }
33
+ &-dropmenu,
34
+ &-submenu {
35
+ width: 120px;
36
+ }
37
+
38
+ &-icon {
39
+ margin-left: 16px;
40
+ .__icon();
41
+
42
+ &.shaixuan {
43
+ font-size: 20px !important;
44
+ }
45
+
46
+ &.delete {
47
+ font-size: 16px !important;
48
+ }
49
+ }
50
+ .biz-event-select.focus {
51
+ box-shadow: none;
52
+ }
53
+ }
@@ -1,110 +1,110 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-target-select {
4
- position: relative;
5
- display: flex;
6
- align-items: center;
7
- height: 32px;
8
- padding: 0;
9
- line-height: 32px;
10
- background-color: @background-color-base;
11
- border-color: @background-color-base;
12
- .__select-handle();
13
-
14
- &:hover {
15
- border-color: @primary-color;
16
- .biz-target-select-option-icon {
17
- display: inline-block;
18
- }
19
- }
20
- &:focus {
21
- background-color: #fff;
22
- .biz-select-handle-input {
23
- background-color: #fff;
24
- }
25
- }
26
-
27
- .biz-select-handle-input.middle {
28
- height: 30px;
29
- line-height: 30px;
30
- }
31
- .biz-event-select {
32
- flex: 1;
33
- }
34
-
35
- .biz-event-select-handle {
36
- flex: none;
37
- padding: 0;
38
- border: none;
39
- }
40
-
41
- &-option-icon {
42
- display: none;
43
- flex: none;
44
- width: 16px;
45
- height: @height-sm;
46
- margin-right: 4px;
47
- color: @text-color-secondary;
48
- line-height: @height-sm;
49
- text-align: center;
50
- border-radius: @border-radius-small;
51
-
52
- &:hover:not(.disabled) {
53
- .__default-hover;
54
- }
55
-
56
- &.disabled {
57
- .__default-disabled;
58
- }
59
- }
60
-
61
- &-del-icon:hover:not(.disabled) {
62
- .__error-hover();
63
- }
64
-
65
- &-menu {
66
- width: 200px;
67
- .__select-panel();
68
-
69
- &-item {
70
- .__select-option();
71
- span:first-child {
72
- margin-right: 15px;
73
- }
74
- }
75
- }
76
- &-divider {
77
- height: 0;
78
- margin: 8px;
79
- border-bottom: 1px solid @border-color-base;
80
- }
81
-
82
- &-modal {
83
- position: absolute;
84
- top: 45px;
85
- left: 0;
86
- z-index: 1000;
87
- width: 100%;
88
- min-width: 280px;
89
- .__select-panel();
90
- }
91
-
92
- &-tip {
93
- margin-top: 2px;
94
- margin-bottom: 12px;
95
- margin-left: 2px;
96
- font-size: 12px;
97
- }
98
-
99
- &-error {
100
- color: @error-color;
101
- }
102
-
103
- &-footer {
104
- text-align: right;
105
- }
106
-
107
- &-mr8 {
108
- margin-right: @margin-xs;
109
- }
110
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-target-select {
4
+ position: relative;
5
+ display: flex;
6
+ align-items: center;
7
+ height: 32px;
8
+ padding: 0;
9
+ line-height: 32px;
10
+ background-color: @background-color-base;
11
+ border-color: @background-color-base;
12
+ .__select-handle();
13
+
14
+ &:hover {
15
+ border-color: @primary-color;
16
+ .biz-target-select-option-icon {
17
+ display: inline-block;
18
+ }
19
+ }
20
+ &:focus {
21
+ background-color: #fff;
22
+ .biz-select-handle-input {
23
+ background-color: #fff;
24
+ }
25
+ }
26
+
27
+ .biz-select-handle-input.middle {
28
+ height: 30px;
29
+ line-height: 30px;
30
+ }
31
+ .biz-event-select {
32
+ flex: 1;
33
+ }
34
+
35
+ .biz-event-select-handle {
36
+ flex: none;
37
+ padding: 0;
38
+ border: none;
39
+ }
40
+
41
+ &-option-icon {
42
+ display: none;
43
+ flex: none;
44
+ width: 16px;
45
+ height: @height-sm;
46
+ margin-right: 4px;
47
+ color: @text-color-secondary;
48
+ line-height: @height-sm;
49
+ text-align: center;
50
+ border-radius: @border-radius-small;
51
+
52
+ &:hover:not(.disabled) {
53
+ .__default-hover;
54
+ }
55
+
56
+ &.disabled {
57
+ .__default-disabled;
58
+ }
59
+ }
60
+
61
+ &-del-icon:hover:not(.disabled) {
62
+ .__error-hover();
63
+ }
64
+
65
+ &-menu {
66
+ width: 200px;
67
+ .__select-panel();
68
+
69
+ &-item {
70
+ .__select-option();
71
+ span:first-child {
72
+ margin-right: 15px;
73
+ }
74
+ }
75
+ }
76
+ &-divider {
77
+ height: 0;
78
+ margin: 8px;
79
+ border-bottom: 1px solid @border-color-base;
80
+ }
81
+
82
+ &-modal {
83
+ position: absolute;
84
+ top: 45px;
85
+ left: 0;
86
+ z-index: 1000;
87
+ width: 100%;
88
+ min-width: 280px;
89
+ .__select-panel();
90
+ }
91
+
92
+ &-tip {
93
+ margin-top: 2px;
94
+ margin-bottom: 12px;
95
+ margin-left: 2px;
96
+ font-size: 12px;
97
+ }
98
+
99
+ &-error {
100
+ color: @error-color;
101
+ }
102
+
103
+ &-footer {
104
+ text-align: right;
105
+ }
106
+
107
+ &-mr8 {
108
+ margin-right: @margin-xs;
109
+ }
110
+ }
@@ -14,7 +14,6 @@ var ConditionTypeList = function ConditionTypeList(props) {
14
14
  openTagCondition = _useContext.openTagCondition,
15
15
  openCdpCondition = _useContext.openCdpCondition,
16
16
  openBusinessDataCondition = _useContext.openBusinessDataCondition,
17
- openOrderDataCondition = _useContext.openOrderDataCondition,
18
17
  openCondition = _useContext.openCondition,
19
18
  cdpTip = _useContext.cdpTip;
20
19
  var _useContext2 = useContext(BizGlobalDataContext),
@@ -92,15 +91,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
92
91
  }
93
92
  }, /*#__PURE__*/React.createElement(Space, {
94
93
  key: "business"
95
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u4E1A\u52A1\u6570\u636E"))) : null, (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' && (openOrderDataCondition || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 0 || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 2) ? /*#__PURE__*/React.createElement("li", {
96
- className: "condition-type",
97
- key: "order",
98
- onClick: function onClick() {
99
- return onAdd('order');
100
- }
101
- }, /*#__PURE__*/React.createElement(Space, {
102
- key: "order"
103
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u8BA2\u5355\u6570\u636E"))) : null));
94
+ }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u4E1A\u52A1\u6570\u636E"))) : null));
104
95
  };
105
96
  ConditionTypeList.defaultProps = {
106
97
  show: true
@@ -45,12 +45,7 @@ var BusinessCondition = function BusinessCondition(props) {
45
45
  key: 'time dimension'
46
46
  }]);
47
47
  }
48
- if (label === '订单数据' && condition.attrs.length < 6) {
49
- items = items.concat([{
50
- label: '订单属性',
51
- key: 'order attribute'
52
- }]);
53
- } else if (label === '业务数据' && condition.attrs.length < 6) {
48
+ if (label === '业务数据' && condition.attrs.length < 6) {
54
49
  items = items.concat([{
55
50
  label: '业务属性',
56
51
  key: 'service attribute'
@@ -162,9 +157,7 @@ var BusinessCondition = function BusinessCondition(props) {
162
157
  },
163
158
  overlayWidth: 120,
164
159
  onChange: onServiceAttributeChange
165
- })) : null, label === '订单数据' ? /*#__PURE__*/React.createElement("div", {
166
- className: "".concat(classPrefix, "-period-condition-label")
167
- }, label) : /*#__PURE__*/React.createElement("div", {
160
+ })) : null, /*#__PURE__*/React.createElement("div", {
168
161
  className: "".concat(classPrefix, "-period-condition-label")
169
162
  }, serviceAttribute === null || serviceAttribute === void 0 ? void 0 : serviceAttribute.name), /*#__PURE__*/React.createElement("div", {
170
163
  className: "".concat(classPrefix, "-period-condition-values")
@@ -226,7 +219,7 @@ var BusinessCondition = function BusinessCondition(props) {
226
219
  }, /*#__PURE__*/React.createElement(IconFont, {
227
220
  type: "qingchu"
228
221
  }))));
229
- }), condition.typeId && label === '业务数据' || label === '订单数据' ? /*#__PURE__*/React.createElement("div", null, ((_condition$timeDimens4 = condition.timeDimensions) === null || _condition$timeDimens4 === void 0 ? void 0 : _condition$timeDimens4.length) !== 3 || ((_condition$attrs2 = condition.attrs) === null || _condition$attrs2 === void 0 ? void 0 : _condition$attrs2.length) !== 6 ? /*#__PURE__*/React.createElement("div", {
222
+ }), condition.typeId && label === '业务数据' ? /*#__PURE__*/React.createElement("div", null, ((_condition$timeDimens4 = condition.timeDimensions) === null || _condition$timeDimens4 === void 0 ? void 0 : _condition$timeDimens4.length) !== 3 || ((_condition$attrs2 = condition.attrs) === null || _condition$attrs2 === void 0 ? void 0 : _condition$attrs2.length) !== 6 ? /*#__PURE__*/React.createElement("div", {
230
223
  style: {
231
224
  margin: '2px 0 0 65px',
232
225
  color: '#4075fd',
@@ -1,10 +1,16 @@
1
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3
+ 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."); }
4
+ 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); }
5
+ 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; }
6
+ 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; } }
7
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2
8
  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
9
  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
10
  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
11
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
12
  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
- import React, { useContext } from 'react';
13
+ import React, { useContext, useEffect, useState } from 'react';
8
14
  import BizEventSelector from '../../eventSelector';
9
15
  import RunTimesCondition from './runTimesCondition';
10
16
  import PeriodCondition from './periodCondition';
@@ -17,12 +23,15 @@ import TimeDimension from './timeDimension';
17
23
  import { Tooltip } from 'antd';
18
24
  import IconFont from '../../icon/iconFont';
19
25
  import BizGlobalDataContext from '../../context';
26
+ import request from '../../utils/ajax';
27
+ import Apis from '../../constants/apis';
20
28
  var EventCondition = function EventCondition(props) {
21
29
  var _condition$timeDimens2, _condition$timeDimens3;
22
30
  var _useContext = useContext(BizUserConditionContext),
23
31
  isRealTime = _useContext.isRealTime;
24
32
  var _useContext2 = useContext(BizGlobalDataContext),
25
- currentUser = _useContext2.currentUser;
33
+ currentUser = _useContext2.currentUser,
34
+ currentApp = _useContext2.currentApp;
26
35
  var condition = props.condition,
27
36
  dataId = props.dataId;
28
37
  function onChange(data) {
@@ -89,6 +98,27 @@ var EventCondition = function EventCondition(props) {
89
98
  condition.timeDimensions.splice(index, 1);
90
99
  onChange(_objectSpread({}, condition));
91
100
  }
101
+ var _useState = useState(),
102
+ _useState2 = _slicedToArray(_useState, 2),
103
+ eventRemovedList = _useState2[0],
104
+ setEventRemovedList = _useState2[1];
105
+ function getEventRemoved() {
106
+ request(Apis.queryEventRemoved, {
107
+ method: 'post',
108
+ data: {
109
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
110
+ }
111
+ }).then(function (res) {
112
+ if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
113
+ setEventRemovedList(res === null || res === void 0 ? void 0 : res.data);
114
+ }
115
+ }).catch(function (err) {
116
+ console.error(err);
117
+ });
118
+ }
119
+ useEffect(function () {
120
+ getEventRemoved();
121
+ }, []);
92
122
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
93
123
  className: "".concat(classPrefix, "-event-condition")
94
124
  }, /*#__PURE__*/React.createElement("div", {
@@ -111,7 +141,9 @@ var EventCondition = function EventCondition(props) {
111
141
  destroyPopupOnHide: true,
112
142
  defaultSelectAble: false,
113
143
  popupContainer: false
114
- })), /*#__PURE__*/React.createElement(Tooltip, {
144
+ }), condition && (eventRemovedList === null || eventRemovedList === void 0 ? void 0 : eventRemovedList.includes(condition.eventId)) && /*#__PURE__*/React.createElement("div", {
145
+ className: "del-log"
146
+ }, "\u4E8B\u4EF6\u5DF2\u88AB\u5220\u9664\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")), /*#__PURE__*/React.createElement(Tooltip, {
115
147
  title: "\u6DFB\u52A0\u7B5B\u9009"
116
148
  }, /*#__PURE__*/React.createElement("div", {
117
149
  className: "".concat(classPrefix, "-event-condition-expand-attr"),
@@ -170,7 +202,7 @@ var EventCondition = function EventCondition(props) {
170
202
  }, /*#__PURE__*/React.createElement(IconFont, {
171
203
  type: "qingchu"
172
204
  }))));
173
- }), ((_condition$timeDimens3 = condition.timeDimensions) === null || _condition$timeDimens3 === void 0 ? void 0 : _condition$timeDimens3.length) < 3 && ((currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 0 || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 2) ? /*#__PURE__*/React.createElement("div", {
205
+ }), condition && !(eventRemovedList === null || eventRemovedList === void 0 ? void 0 : eventRemovedList.includes(condition.eventId)) && ((_condition$timeDimens3 = condition.timeDimensions) === null || _condition$timeDimens3 === void 0 ? void 0 : _condition$timeDimens3.length) < 3 && ((currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 0 || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 2) ? /*#__PURE__*/React.createElement("div", {
174
206
  style: {
175
207
  margin: '2px 0 0 38px',
176
208
  color: '#4075fd',
@@ -1,37 +1,37 @@
1
- @import '../../../assets/styles/variable.less';
2
-
3
- .biz-user-condition-cdp {
4
- display: flex;
5
-
6
- &-content,
7
- &-condition-group {
8
- display: flex;
9
- }
10
-
11
- &-label {
12
- margin-right: @margin-xs;
13
- line-height: 32px;
14
- }
15
-
16
- &-item {
17
- display: flex;
18
- margin-left: @margin-xs;
19
- }
20
-
21
- &-select-dataset {
22
- width: 255px;
23
- }
24
- &-select-tips {
25
- height: 32px;
26
- margin-left: 8px;
27
- color: #9aa1a9;
28
- line-height: 32px;
29
- }
30
- &-select-field {
31
- width: 129px;
32
- }
33
- &-select-condition {
34
- width: 96px;
35
- margin: 0 @margin-xs;
36
- }
37
- }
1
+ @import '../../../assets/styles/variable.less';
2
+
3
+ .biz-user-condition-cdp {
4
+ display: flex;
5
+
6
+ &-content,
7
+ &-condition-group {
8
+ display: flex;
9
+ }
10
+
11
+ &-label {
12
+ margin-right: @margin-xs;
13
+ line-height: 32px;
14
+ }
15
+
16
+ &-item {
17
+ display: flex;
18
+ margin-left: @margin-xs;
19
+ }
20
+
21
+ &-select-dataset {
22
+ width: 255px;
23
+ }
24
+ &-select-tips {
25
+ height: 32px;
26
+ margin-left: 8px;
27
+ color: #9aa1a9;
28
+ line-height: 32px;
29
+ }
30
+ &-select-field {
31
+ width: 129px;
32
+ }
33
+ &-select-condition {
34
+ width: 96px;
35
+ margin: 0 @margin-xs;
36
+ }
37
+ }