@zgfe/business-lib 1.2.70-hxd.3 → 1.2.70-hxd.31
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/es/AUMFormulaTarget/components/formula/index.js +6 -4
- package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +2 -2
- package/es/AUMFormulaTarget/components/panel/index.less +1 -1
- package/es/AUMFormulaTarget/demo/index.js +1 -1
- package/es/AUMFormulaTarget/index.d.ts +4 -1
- package/es/addToPanel/components/radioGroup.d.ts +4 -1
- package/es/addToPanel/components/styleList.d.ts +4 -1
- package/es/addToPanel/index.d.ts +4 -1
- package/es/addToPanel/index.js +1 -1
- package/es/addToScene/index.js +3 -8
- package/es/amountSelector/demo/index.d.ts +3 -0
- package/es/amountSelector/demo/index.js +9 -0
- package/es/amountSelector/index.d.ts +10 -0
- package/es/amountSelector/index.js +21 -0
- package/es/amountSelector/styles/index.less +27 -0
- package/es/amountSelector/types.d.ts +4 -0
- package/es/amountSelector/types.js +1 -0
- package/es/amountSelector/util.d.ts +3 -0
- package/es/amountSelector/util.js +18 -0
- package/es/assets/colorIcon/demo_index.html +1023 -492
- package/es/assets/colorIcon/iconfont.css +203 -110
- package/es/assets/colorIcon/iconfont.js +13 -14
- package/es/assets/colorIcon/iconfont.json +433 -272
- package/es/assets/colorIcon/iconfont.ttf +0 -0
- package/es/assets/colorIcon/iconfont.woff +0 -0
- package/es/assets/colorIcon/iconfont.woff2 +0 -0
- package/es/assets/iconfont/demo.css +539 -539
- package/es/assets/iconfont/demo_index.html +5563 -5708
- package/es/assets/iconfont/iconfont.css +1015 -975
- package/es/assets/iconfont/iconfont.js +1 -1
- package/es/assets/iconfont/iconfont.json +1584 -1689
- package/es/assets/styles/resetAntd.less +6 -2
- package/es/assets/styles/variable.less +1 -1
- package/es/assets/theme.js +1 -1
- package/es/attrCondition/demo/group.js +1 -1
- package/es/attrCondition/group.js +11 -6
- package/es/attrCondition/index.js +11 -6
- package/es/attrCondition/styles/index.less +1 -1
- package/es/attrCondition/useAttrCondition.js +7 -5
- package/es/attrConditions/components/operateList.js +6 -3
- package/es/attrConditions/components/stringList.js +3 -8
- package/es/attrConditions/index.d.ts +4 -1
- package/es/attrConditions/index.js +4 -2
- package/es/attrConditions/types.d.ts +4 -0
- package/es/attrConditions/utils/operates.d.ts +4 -0
- package/es/attrConditions/utils/operates.js +37 -0
- package/es/attributeSelector/index.js +11 -11
- package/es/attributeSelector/listPanel.js +312 -100
- package/es/attributeSelector/types.d.ts +2 -0
- package/es/attributeSelector/util.js +3 -0
- package/es/chart/demo/data/data5 copy.js +2 -2
- package/es/chart/demo/index.js +1 -1
- package/es/chart/demo/line_bar_stack.js +4 -4
- package/es/chart/demo/stack.js +1 -1
- package/es/chart/index.js +10 -12
- package/es/chart/styles/index.less +2 -2
- package/es/chart/util/color.js +1 -1
- package/es/colorIcon/index.js +2 -4
- package/es/constants/apis.d.ts +4 -0
- package/es/constants/apis.js +6 -2
- package/es/constants/common.d.ts +11 -0
- package/es/constants/common.js +31 -0
- package/es/context/index.d.ts +2 -0
- package/es/context/index.js +8 -1
- package/es/cycleTime/index.js +6 -8
- package/es/cycleTime/month.js +2 -5
- package/es/dataSetGroup/index.js +0 -1
- package/es/datePicker/index.d.ts +4 -1
- package/es/datePickerV2/demo/index.js +1 -1
- package/es/datePickerV2/index.d.ts +4 -1
- package/es/datePickerV2/index.js +13 -4
- package/es/datePickerV2/popoverContent.js +1 -1
- package/es/datePickerV2/shortcut.js +1 -1
- package/es/datePickerV2/styles/index.less +1 -1
- package/es/datePickerV2/types.d.ts +1 -0
- package/es/datePickerV2/utils.js +8 -2
- package/es/demoWrapper/content.js +9 -10
- package/es/demoWrapper/innerDemo.js +1 -1
- package/es/dialog/index.d.ts +4 -1
- package/es/dnd/demo/index.js +5 -1
- package/es/dnd/demo/styles/index.less +34 -34
- package/es/dnd/index.d.ts +4 -1
- package/es/dnd/item.js +14 -0
- package/es/eventSelector/index.d.ts +4 -1
- package/es/eventSelector/index.js +3 -2
- package/es/eventSelector/listPanel.js +10 -14
- package/es/eventSelector/option.d.ts +1 -0
- package/es/eventSelector/option.js +14 -3
- package/es/eventSelector/styles/index.less +4 -0
- package/es/eventSelector/types.d.ts +1 -0
- package/es/formulaTarget/components/formula/index.js +2 -1
- package/es/formulaTarget/components/formula/index.less +1 -1
- package/es/formulaTarget/components/formula/types.d.ts +1 -0
- package/es/formulaTarget/components/formulaItem/index.js +7 -2
- package/es/formulaTarget/components/formulaItem/types.d.ts +1 -0
- package/es/formulaTarget/components/panel/index.js +2 -1
- package/es/formulaTarget/components/panel/item.js +5 -1
- package/es/formulaTarget/components/panel/types.d.ts +2 -0
- package/es/formulaTarget/index.d.ts +4 -1
- package/es/formulaTarget/index.js +2 -1
- package/es/formulaTarget/types.d.ts +1 -0
- package/es/hooks/useBizStore.js +3 -9
- package/es/icon/iconFont.d.ts +4 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/layout/analysisLayout/index.d.ts +4 -1
- package/es/layout/columnLayout/index.d.ts +4 -1
- package/es/layout/optionTitle/components/btnMenu/index.less +18 -18
- package/es/layout/optionTitle/components/changePanelModal/styles/index.less +3 -3
- package/es/layout/optionTitle/components/title/index.d.ts +1 -2
- package/es/layout/optionTitle/components/title/index.js +10 -6
- package/es/layout/optionTitle/components/title/index.less +43 -43
- package/es/layout/optionTitle/index.js +1 -1
- package/es/layout/optionTitle/styles/index.less +30 -30
- package/es/layout/optionTitle/styles/layout.less +90 -90
- package/es/layout/optionTitle/styles/search.less +27 -27
- package/es/platformSelector/styles/index.less +1 -1
- package/es/productCondition/conditionTypeList.d.ts +4 -1
- package/es/productCondition/conditions/cdpCshCondition.js +9 -6
- package/es/productCondition/conditions/constants.d.ts +2 -0
- package/es/productCondition/conditions/constants.js +2 -0
- package/es/productCondition/conditions/order/runPeriodCondition.js +2 -4
- package/es/productCondition/conditions/periodCondition.d.ts +4 -1
- package/es/productCondition/conditions/propCondition.d.ts +4 -1
- package/es/productCondition/conditions/styles/periodCondition.less +1 -1
- package/es/productCondition/index.d.ts +4 -1
- package/es/productCondition/styles/conditionTypeList.less +4 -2
- package/es/productCondition/styles/relationLabel.less +1 -1
- package/es/productCondition/types.d.ts +3 -1
- package/es/productCondition/util.d.ts +4 -0
- package/es/productCondition/util.js +4 -2
- package/es/quickDatePicker/demo/index.js +31 -11
- package/es/quickDatePicker/index.js +122 -23
- package/es/quickDatePicker/styles/index.less +28 -25
- package/es/quickDatePicker/types.d.ts +13 -0
- package/es/quickDatePicker/utils.d.ts +6 -0
- package/es/quickDatePicker/utils.js +54 -1
- package/es/select/demo/index.js +2 -1
- package/es/select/handle.js +2 -9
- package/es/select/index.d.ts +4 -1
- package/es/select/option.js +1 -1
- package/es/select/overlay.js +2 -2
- package/es/select/styles/handle.less +15 -2
- package/es/socket/demo/demo.js +2 -2
- package/es/subjectWrapper/index.js +3 -1
- package/es/table/demo/data/color.js +1 -1
- package/es/table/index.js +3 -30
- package/es/targetConditionGroup/components/targetDimension.js +147 -53
- package/es/targetConditionGroup/demo/group.js +5 -18
- package/es/targetConditionGroup/index.d.ts +4 -1
- package/es/targetConditionGroup/index.js +12 -10
- package/es/targetConditionGroup/types.d.ts +1 -0
- package/es/targetSelector/editBox.d.ts +1 -0
- package/es/targetSelector/editBox.js +8 -3
- package/es/targetSelector/index.js +2 -1
- package/es/targetSelector/optionIcon.d.ts +4 -1
- package/es/targetSelector/optionIcon.js +3 -0
- package/es/targetSelector/styles/index.less +35 -3
- package/es/userCondition/conditionTypeList.d.ts +4 -1
- package/es/userCondition/conditionTypeList.js +5 -4
- package/es/userCondition/conditions/cdpCondition.js +9 -6
- package/es/userCondition/conditions/cdpCshCondition.js +9 -6
- package/es/userCondition/conditions/constants.d.ts +2 -0
- package/es/userCondition/conditions/constants.js +2 -0
- package/es/userCondition/conditions/dataAttribute.js +11 -7
- package/es/userCondition/conditions/eventCondition.js +16 -24
- package/es/userCondition/conditions/order/runPeriodCondition.d.ts +4 -1
- package/es/userCondition/conditions/periodCondition.d.ts +4 -1
- package/es/userCondition/conditions/periodCondition.js +19 -11
- package/es/userCondition/conditions/propCondition.js +5 -3
- package/es/userCondition/conditions/styles/eventCondition.less +14 -0
- package/es/userCondition/conditions/styles/periodCondition.less +7 -1
- package/es/userCondition/conditions/styles/textDesc.less +3 -4
- package/es/userCondition/conditions/tagsCondition.js +12 -5
- package/es/userCondition/conditions/textDesc.js +9 -5
- package/es/userCondition/demo/index.js +20 -14
- package/es/userCondition/demo/mockData.d.ts +20 -94
- package/es/userCondition/demo/mockData.js +31 -76
- package/es/userCondition/index.d.ts +5 -1
- package/es/userCondition/index.js +37 -21
- package/es/userCondition/styles/conditionTypeList.less +4 -2
- package/es/userCondition/styles/relationLabel.less +1 -1
- package/es/userCondition/types.d.ts +5 -2
- package/es/userCondition/util.d.ts +4 -0
- package/es/userCondition/util.js +4 -2
- package/es/userGroup/demo/index.js +2 -9
- package/es/userGroup/index.d.ts +4 -1
- package/es/userGroup/index.js +63 -15
- package/es/userGroup/overlay.js +17 -3
- package/es/userGroup/styles/index.less +55 -1
- package/es/userGroup/types.d.ts +2 -0
- package/es/userGroup/util.d.ts +2 -0
- package/es/userGroup/util.js +47 -0
- package/es/userGroupHeader/demo/index.js +1 -1
- package/es/userGroupHeader/index.d.ts +1 -0
- package/es/userGroupHeader/index.js +53 -6
- package/es/userGroupHeader/styles/index.less +21 -2
- package/es/userTagsSelector/cascaderOverlay.d.ts +4 -1
- package/es/userTagsSelector/cascaderOverlay.js +9 -2
- package/es/userTagsSelector/components/tagList/index.d.ts +4 -1
- package/es/userTagsSelector/groups/index.d.ts +4 -1
- package/es/userTagsSelector/index.d.ts +4 -1
- package/es/userTagsSelector/index.js +32 -2
- package/es/userTagsSelector/styles/index.less +10 -0
- package/es/userTagsSelector/types.d.ts +2 -0
- package/es/userTagsSelector/util.d.ts +1 -0
- package/es/userTagsSelector/util.js +20 -0
- package/es/utils/ajax.js +77 -27
- package/es/utils/eventApi.d.ts +14 -0
- package/es/utils/eventApi.js +128 -0
- package/es/utils/index.d.ts +2 -1
- package/es/utils/index.js +2 -1
- package/es/utils/type.d.ts +1 -0
- package/es/utils/util.d.ts +1 -0
- package/es/utils/util.js +18 -0
- package/package.json +2 -2
- package/es/assets/colorIcon/iconfont.svg +0 -129
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
export declare const tagList: ({
|
|
2
|
+
labelType: number;
|
|
3
|
+
dataStatus: number;
|
|
4
|
+
editStatus: number;
|
|
5
|
+
labelCreateType: number;
|
|
6
|
+
endProcessTime: string;
|
|
7
|
+
labelGroup: string;
|
|
8
|
+
startProcessTime: string;
|
|
9
|
+
layers: never[];
|
|
10
|
+
expireStatus: string;
|
|
11
|
+
id: number;
|
|
12
|
+
releaseState: number;
|
|
13
|
+
labelName: string;
|
|
14
|
+
labelRemark: string;
|
|
15
|
+
} | {
|
|
2
16
|
labelGroup: string;
|
|
3
17
|
startProcessTime: string;
|
|
4
18
|
labelType: number;
|
|
@@ -6,6 +20,7 @@ export declare const tagList: ({
|
|
|
6
20
|
sequence: number;
|
|
7
21
|
layerLabelId: number;
|
|
8
22
|
layerLabelName: string;
|
|
23
|
+
ancestryState: number;
|
|
9
24
|
}[];
|
|
10
25
|
dataStatus: number;
|
|
11
26
|
editStatus: number;
|
|
@@ -15,6 +30,7 @@ export declare const tagList: ({
|
|
|
15
30
|
endProcessTime: string;
|
|
16
31
|
labelName: string;
|
|
17
32
|
labelRemark: string;
|
|
33
|
+
releaseState?: undefined;
|
|
18
34
|
} | {
|
|
19
35
|
labelGroup: string;
|
|
20
36
|
labelType: number;
|
|
@@ -30,107 +46,17 @@ export declare const tagList: ({
|
|
|
30
46
|
id: number;
|
|
31
47
|
labelName: string;
|
|
32
48
|
labelRemark: string;
|
|
33
|
-
startProcessTime?: undefined;
|
|
34
49
|
endProcessTime?: undefined;
|
|
50
|
+
startProcessTime?: undefined;
|
|
51
|
+
releaseState?: undefined;
|
|
35
52
|
})[];
|
|
36
|
-
export declare const conditions:
|
|
53
|
+
export declare const conditions: {
|
|
37
54
|
attrs: never[];
|
|
38
55
|
labels: {
|
|
39
56
|
values: string[];
|
|
40
57
|
operator: string;
|
|
41
58
|
};
|
|
42
|
-
|
|
43
|
-
data_set_csh?: undefined;
|
|
44
|
-
} | {
|
|
45
|
-
dataset: {
|
|
46
|
-
datasetId: number;
|
|
47
|
-
datasetTable: string;
|
|
48
|
-
datasetName: string;
|
|
49
|
-
fieldName: string;
|
|
50
|
-
fieldType: string;
|
|
51
|
-
webType: string;
|
|
52
|
-
paramType: string;
|
|
53
|
-
operator: string;
|
|
54
|
-
params: string[];
|
|
55
|
-
}[];
|
|
56
|
-
attrs?: undefined;
|
|
57
|
-
labels?: undefined;
|
|
58
|
-
data_set_csh?: undefined;
|
|
59
|
-
} | {
|
|
60
|
-
data_set_csh: {
|
|
61
|
-
datasetName: string;
|
|
62
|
-
datasetTable: string;
|
|
63
|
-
fieldName: string;
|
|
64
|
-
fieldType: string;
|
|
65
|
-
webType: string;
|
|
66
|
-
paramType: string;
|
|
67
|
-
calculate: string;
|
|
68
|
-
operator: string;
|
|
69
|
-
params: string;
|
|
70
|
-
subCondition: {
|
|
71
|
-
operator: string;
|
|
72
|
-
datasetName: string;
|
|
73
|
-
datasetTable: string;
|
|
74
|
-
fieldName: string;
|
|
75
|
-
calculate: string;
|
|
76
|
-
};
|
|
77
|
-
}[];
|
|
78
|
-
attrs?: undefined;
|
|
79
|
-
labels?: undefined;
|
|
80
|
-
dataset?: undefined;
|
|
81
|
-
} | {
|
|
82
|
-
data_set_csh: {
|
|
83
|
-
datasetName: string;
|
|
84
|
-
datasetTable: string;
|
|
85
|
-
fieldName: string;
|
|
86
|
-
fieldType: string;
|
|
87
|
-
webType: string;
|
|
88
|
-
paramType: string;
|
|
89
|
-
calculate: string;
|
|
90
|
-
operator: string;
|
|
91
|
-
between: number[];
|
|
92
|
-
subCondition: {
|
|
93
|
-
operator: string;
|
|
94
|
-
datasetName: string;
|
|
95
|
-
datasetTable: string;
|
|
96
|
-
fieldName: string;
|
|
97
|
-
calculate: string;
|
|
98
|
-
};
|
|
99
|
-
}[];
|
|
100
|
-
attrs?: undefined;
|
|
101
|
-
labels?: undefined;
|
|
102
|
-
dataset?: undefined;
|
|
103
|
-
} | {
|
|
104
|
-
data_set_csh: {
|
|
105
|
-
datasetName: string;
|
|
106
|
-
datasetTable: string;
|
|
107
|
-
fieldName: string;
|
|
108
|
-
fieldType: string;
|
|
109
|
-
webType: string;
|
|
110
|
-
paramType: string;
|
|
111
|
-
calculate: string;
|
|
112
|
-
operator: string;
|
|
113
|
-
params: string;
|
|
114
|
-
}[];
|
|
115
|
-
attrs?: undefined;
|
|
116
|
-
labels?: undefined;
|
|
117
|
-
dataset?: undefined;
|
|
118
|
-
} | {
|
|
119
|
-
data_set_csh: {
|
|
120
|
-
datasetName: string;
|
|
121
|
-
datasetTable: string;
|
|
122
|
-
fieldName: string;
|
|
123
|
-
fieldType: string;
|
|
124
|
-
webType: string;
|
|
125
|
-
paramType: string;
|
|
126
|
-
calculate: string;
|
|
127
|
-
operator: string;
|
|
128
|
-
between: number[];
|
|
129
|
-
}[];
|
|
130
|
-
attrs?: undefined;
|
|
131
|
-
labels?: undefined;
|
|
132
|
-
dataset?: undefined;
|
|
133
|
-
})[][];
|
|
59
|
+
}[][];
|
|
134
60
|
export declare const datasetList: {
|
|
135
61
|
id: number;
|
|
136
62
|
datasetName: string;
|
|
@@ -1,11 +1,40 @@
|
|
|
1
1
|
export var tagList = [{
|
|
2
|
+
labelType: 1,
|
|
3
|
+
dataStatus: 1,
|
|
4
|
+
editStatus: 1,
|
|
5
|
+
labelCreateType: 6,
|
|
6
|
+
endProcessTime: '2025-03-26 15:08:00',
|
|
7
|
+
labelGroup: '基本标签',
|
|
8
|
+
startProcessTime: '',
|
|
9
|
+
layers: [],
|
|
10
|
+
expireStatus: 'effective',
|
|
11
|
+
id: 922,
|
|
12
|
+
releaseState: 1,
|
|
13
|
+
labelName: '事件偏好02',
|
|
14
|
+
labelRemark: ''
|
|
15
|
+
}, {
|
|
16
|
+
labelType: 1,
|
|
17
|
+
dataStatus: 1,
|
|
18
|
+
editStatus: 1,
|
|
19
|
+
labelCreateType: 6,
|
|
20
|
+
endProcessTime: '2025-03-26 15:08:00',
|
|
21
|
+
labelGroup: '基本标签',
|
|
22
|
+
startProcessTime: '',
|
|
23
|
+
layers: [],
|
|
24
|
+
expireStatus: 'effective',
|
|
25
|
+
id: 922,
|
|
26
|
+
releaseState: 1,
|
|
27
|
+
labelName: '事件偏好02',
|
|
28
|
+
labelRemark: ''
|
|
29
|
+
}, {
|
|
2
30
|
labelGroup: '行为标签',
|
|
3
31
|
startProcessTime: '2023-06-26T01:00:00',
|
|
4
32
|
labelType: 0,
|
|
5
33
|
layers: [{
|
|
6
34
|
sequence: 1,
|
|
7
35
|
layerLabelId: 550455830020096,
|
|
8
|
-
layerLabelName: '分层1'
|
|
36
|
+
layerLabelName: '分层1',
|
|
37
|
+
ancestryState: 4
|
|
9
38
|
}],
|
|
10
39
|
dataStatus: 1,
|
|
11
40
|
editStatus: 1,
|
|
@@ -143,83 +172,9 @@ export var tagList = [{
|
|
|
143
172
|
export var conditions = [[{
|
|
144
173
|
attrs: [],
|
|
145
174
|
labels: {
|
|
146
|
-
values: ['371:550455830020096', '522:fd'],
|
|
175
|
+
values: ['371:550455830020096', '522:fd', '666666:888888'],
|
|
147
176
|
operator: 'equal'
|
|
148
177
|
}
|
|
149
|
-
}, {
|
|
150
|
-
dataset: [{
|
|
151
|
-
datasetId: 11,
|
|
152
|
-
datasetTable: '99677e4429fd647bc4ff89f669859be168420',
|
|
153
|
-
datasetName: 'rfm555',
|
|
154
|
-
fieldName: 'price',
|
|
155
|
-
fieldType: 'bigint',
|
|
156
|
-
webType: 'number',
|
|
157
|
-
paramType: 'cont-num',
|
|
158
|
-
operator: 'gt',
|
|
159
|
-
params: ['123']
|
|
160
|
-
}]
|
|
161
|
-
}, {
|
|
162
|
-
data_set_csh: [{
|
|
163
|
-
datasetName: 'rfm555',
|
|
164
|
-
datasetTable: '99677e4429fd647bc4ff89f669859be168420',
|
|
165
|
-
fieldName: 'price',
|
|
166
|
-
fieldType: 'bigint',
|
|
167
|
-
webType: 'number',
|
|
168
|
-
paramType: 'cont-num',
|
|
169
|
-
calculate: 'original',
|
|
170
|
-
operator: 'greater',
|
|
171
|
-
params: '123',
|
|
172
|
-
subCondition: {
|
|
173
|
-
operator: 'add',
|
|
174
|
-
datasetName: 'frm4444',
|
|
175
|
-
datasetTable: '996776d76380838014a92bc6a21c9da99301e',
|
|
176
|
-
fieldName: 'price',
|
|
177
|
-
calculate: 'original'
|
|
178
|
-
}
|
|
179
|
-
}]
|
|
180
|
-
}, {
|
|
181
|
-
data_set_csh: [{
|
|
182
|
-
datasetName: 'rfm555',
|
|
183
|
-
datasetTable: '99677e4429fd647bc4ff89f669859be168420',
|
|
184
|
-
fieldName: 'price',
|
|
185
|
-
fieldType: 'bigint',
|
|
186
|
-
webType: 'number',
|
|
187
|
-
paramType: 'cont-num',
|
|
188
|
-
calculate: 'original',
|
|
189
|
-
operator: 'between',
|
|
190
|
-
between: [100, 200],
|
|
191
|
-
subCondition: {
|
|
192
|
-
operator: 'add',
|
|
193
|
-
datasetName: 'frm4444',
|
|
194
|
-
datasetTable: '996776d76380838014a92bc6a21c9da99301e',
|
|
195
|
-
fieldName: 'price',
|
|
196
|
-
calculate: 'original'
|
|
197
|
-
}
|
|
198
|
-
}]
|
|
199
|
-
}, {
|
|
200
|
-
data_set_csh: [{
|
|
201
|
-
datasetName: 'rfm555',
|
|
202
|
-
datasetTable: '99677e4429fd647bc4ff89f669859be168420',
|
|
203
|
-
fieldName: 'price',
|
|
204
|
-
fieldType: 'bigint',
|
|
205
|
-
webType: 'number',
|
|
206
|
-
paramType: 'cont-num',
|
|
207
|
-
calculate: 'original',
|
|
208
|
-
operator: 'greater',
|
|
209
|
-
params: '123'
|
|
210
|
-
}]
|
|
211
|
-
}, {
|
|
212
|
-
data_set_csh: [{
|
|
213
|
-
datasetName: 'rfm555',
|
|
214
|
-
datasetTable: '99677e4429fd647bc4ff89f669859be168420',
|
|
215
|
-
fieldName: 'price',
|
|
216
|
-
fieldType: 'bigint',
|
|
217
|
-
webType: 'number',
|
|
218
|
-
paramType: 'cont-num',
|
|
219
|
-
calculate: 'original',
|
|
220
|
-
operator: 'between',
|
|
221
|
-
between: [100, 200]
|
|
222
|
-
}]
|
|
223
178
|
}]];
|
|
224
179
|
export var datasetList = [{
|
|
225
180
|
id: 12,
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BizUserConditionT } from './types';
|
|
3
3
|
import './styles/index.less';
|
|
4
|
-
|
|
4
|
+
interface NewGlobalContext extends BizUserConditionT.GlobalContext {
|
|
5
|
+
searchUserTagsData?: [];
|
|
6
|
+
setSearchUserTagsData?: Function;
|
|
7
|
+
}
|
|
8
|
+
export declare const BizUserConditionContext: React.Context<NewGlobalContext>;
|
|
5
9
|
export declare const classPrefix = "biz-user-condition";
|
|
6
10
|
declare const BizUserCondition: React.FC<BizUserConditionT.PropsI>;
|
|
7
11
|
export default BizUserCondition;
|
|
@@ -52,16 +52,28 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
52
52
|
openOrderDataCondition = props.openOrderDataCondition,
|
|
53
53
|
userTagsData = props.userTagsData,
|
|
54
54
|
openCondition = props.openCondition,
|
|
55
|
-
cdpTip = props.cdpTip
|
|
55
|
+
cdpTip = props.cdpTip,
|
|
56
|
+
realTimeTags = props.realTimeTags;
|
|
56
57
|
var _useState = useState([]),
|
|
57
58
|
_useState2 = _slicedToArray(_useState, 2),
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
searchUserTagsData = _useState2[0],
|
|
60
|
+
setSearchUserTagsData = _useState2[1];
|
|
60
61
|
var _useState3 = useState([]),
|
|
61
|
-
_useState4 = _slicedToArray(_useState3,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
_useState4 = _slicedToArray(_useState3, 1),
|
|
63
|
+
errorData = _useState4[0];
|
|
64
|
+
var _useState5 = useState(true),
|
|
65
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
66
|
+
tagsStateLoading = _useState6[0],
|
|
67
|
+
setTagsStateLoading = _useState6[1];
|
|
68
|
+
var _useState7 = useState([]),
|
|
69
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
70
|
+
showList = _useState8[0],
|
|
71
|
+
setShowList = _useState8[1];
|
|
72
|
+
var _useState9 = useState([]),
|
|
73
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
74
|
+
dataList = _useState10[0],
|
|
75
|
+
setDataList = _useState10[1];
|
|
76
|
+
var _useState11 = useState(function () {
|
|
65
77
|
var list = [];
|
|
66
78
|
if (defaultValue) {
|
|
67
79
|
var showTag = openTagCondition && authority[10038];
|
|
@@ -94,17 +106,17 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
94
106
|
}
|
|
95
107
|
return list;
|
|
96
108
|
}),
|
|
97
|
-
|
|
98
|
-
value =
|
|
99
|
-
setValue =
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
loading =
|
|
103
|
-
setLoading =
|
|
104
|
-
var
|
|
105
|
-
|
|
106
|
-
dataset =
|
|
107
|
-
setDataset =
|
|
109
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
110
|
+
value = _useState12[0],
|
|
111
|
+
setValue = _useState12[1];
|
|
112
|
+
var _useState13 = useState(true),
|
|
113
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
114
|
+
loading = _useState14[0],
|
|
115
|
+
setLoading = _useState14[1];
|
|
116
|
+
var _useState15 = useState([]),
|
|
117
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
118
|
+
dataset = _useState16[0],
|
|
119
|
+
setDataset = _useState16[1];
|
|
108
120
|
var envNameList = useMemo(function () {
|
|
109
121
|
return eventEnvList ? eventEnvList.map(function (env) {
|
|
110
122
|
return env.name;
|
|
@@ -124,6 +136,7 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
124
136
|
} else {
|
|
125
137
|
setLoading(false);
|
|
126
138
|
}
|
|
139
|
+
setTagsStateLoading(false);
|
|
127
140
|
}, []);
|
|
128
141
|
function initShowList() {
|
|
129
142
|
var showList = [];
|
|
@@ -213,7 +226,7 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
213
226
|
}));
|
|
214
227
|
return _getDatasetList.apply(this, arguments);
|
|
215
228
|
}
|
|
216
|
-
if (loading) {
|
|
229
|
+
if (loading || tagsStateLoading) {
|
|
217
230
|
return /*#__PURE__*/React.createElement(Spin, null);
|
|
218
231
|
}
|
|
219
232
|
return /*#__PURE__*/React.createElement(BizUserConditionContext.Provider, {
|
|
@@ -227,11 +240,14 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
227
240
|
openBusinessDataCondition: openBusinessDataCondition,
|
|
228
241
|
openOrderDataCondition: openOrderDataCondition,
|
|
229
242
|
cdpTip: cdpTip,
|
|
230
|
-
userTagsData: userTagsData !== null && userTagsData !== void 0 ? userTagsData : [],
|
|
243
|
+
userTagsData: (userTagsData !== null && userTagsData !== void 0 ? userTagsData : []).concat(errorData),
|
|
244
|
+
searchUserTagsData: searchUserTagsData,
|
|
245
|
+
setSearchUserTagsData: setSearchUserTagsData,
|
|
231
246
|
isRealTime: props.isRealTime,
|
|
232
247
|
envNameList: envNameList,
|
|
233
248
|
userPropsMap: userPropsMap,
|
|
234
|
-
datasetList: dataset
|
|
249
|
+
datasetList: dataset,
|
|
250
|
+
realTimeTags: realTimeTags
|
|
235
251
|
}
|
|
236
252
|
}, /*#__PURE__*/React.createElement("div", {
|
|
237
253
|
className: classPrefix
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
list-style: none;
|
|
13
13
|
.condition-type {
|
|
14
14
|
padding: @padding-xss 12px;
|
|
15
|
-
background-color:
|
|
15
|
+
background-color: #fff;
|
|
16
|
+
border: 1px solid #ecedf0;
|
|
16
17
|
border-radius: @border-radius-large;
|
|
17
18
|
cursor: pointer;
|
|
18
19
|
&:nth-child(n + 2) {
|
|
@@ -20,7 +21,8 @@
|
|
|
20
21
|
}
|
|
21
22
|
&:hover {
|
|
22
23
|
color: @primary-color;
|
|
23
|
-
background-color: @primary-color-hover;
|
|
24
|
+
// background-color: @primary-color-hover;
|
|
25
|
+
border: 1px solid #b9ceff;
|
|
24
26
|
}
|
|
25
27
|
&:active {
|
|
26
28
|
border-color: @primary-color;
|
|
@@ -73,13 +73,14 @@ export declare namespace BizUserConditionT {
|
|
|
73
73
|
openCondition?: boolean;
|
|
74
74
|
cdpTip?: string;
|
|
75
75
|
labelCreateType?: number;
|
|
76
|
+
realTimeTags?: boolean;
|
|
76
77
|
}
|
|
77
78
|
interface BusinessPropsI {
|
|
78
79
|
dataId: number;
|
|
79
80
|
condition: BizUserConditionT.BusinessCondition;
|
|
80
81
|
openBusinessDataCondition?: boolean;
|
|
81
82
|
openOrderDataCondition?: boolean;
|
|
82
|
-
label?: string |
|
|
83
|
+
label?: string | any;
|
|
83
84
|
index?: number;
|
|
84
85
|
onChange: (dataId: number, newData: any) => void;
|
|
85
86
|
}
|
|
@@ -100,12 +101,14 @@ export declare namespace BizUserConditionT {
|
|
|
100
101
|
userAmount: number;
|
|
101
102
|
layerNum: number;
|
|
102
103
|
endProcessTime: string;
|
|
104
|
+
ancestryState?: number;
|
|
103
105
|
layers: {
|
|
104
106
|
layerLabelId: number;
|
|
105
107
|
layerLabelName: string;
|
|
106
108
|
layerRemark: string;
|
|
107
109
|
layerCondition: any[][];
|
|
108
110
|
sequence: number;
|
|
111
|
+
ancestryState?: number;
|
|
109
112
|
}[];
|
|
110
113
|
}
|
|
111
114
|
interface AttrCondition {
|
|
@@ -251,7 +254,7 @@ export declare namespace BizUserConditionT {
|
|
|
251
254
|
orConditions: Conditions[number];
|
|
252
255
|
}
|
|
253
256
|
type ShowListT = ShowItemI[];
|
|
254
|
-
type GlobalContext = Pick<BizUserConditionT.PropsI, 'orConditionNum' | 'eventAttrNum' | 'openTagCondition' | 'userTagsData' | 'openCdpCondition' | 'openBusinessDataCondition' | 'openOrderDataCondition' | 'openCondition' | 'textMode' | 'isRealTime' | 'cdpTip'> & {
|
|
257
|
+
type GlobalContext = Pick<BizUserConditionT.PropsI, 'orConditionNum' | 'eventAttrNum' | 'openTagCondition' | 'userTagsData' | 'openCdpCondition' | 'openBusinessDataCondition' | 'openOrderDataCondition' | 'openCondition' | 'textMode' | 'isRealTime' | 'cdpTip' | 'realTimeTags'> & {
|
|
255
258
|
envNameList: string[];
|
|
256
259
|
userPropsMap: {
|
|
257
260
|
[key: string]: UserProp;
|
|
@@ -11,6 +11,7 @@ export declare function buildSelectLayer(data: BizUserConditionT.UserTagsDataI[]
|
|
|
11
11
|
labelCreateType?: undefined;
|
|
12
12
|
layerLabelId?: undefined;
|
|
13
13
|
layerLabelName?: undefined;
|
|
14
|
+
ancestryState?: undefined;
|
|
14
15
|
} | {
|
|
15
16
|
id: number;
|
|
16
17
|
labelName: string;
|
|
@@ -18,9 +19,11 @@ export declare function buildSelectLayer(data: BizUserConditionT.UserTagsDataI[]
|
|
|
18
19
|
labelGroup?: undefined;
|
|
19
20
|
layerLabelId?: undefined;
|
|
20
21
|
layerLabelName?: undefined;
|
|
22
|
+
ancestryState?: undefined;
|
|
21
23
|
} | {
|
|
22
24
|
layerLabelId: string;
|
|
23
25
|
layerLabelName: string;
|
|
26
|
+
ancestryState: number | undefined;
|
|
24
27
|
labelGroup?: undefined;
|
|
25
28
|
id?: undefined;
|
|
26
29
|
labelName?: undefined;
|
|
@@ -28,6 +31,7 @@ export declare function buildSelectLayer(data: BizUserConditionT.UserTagsDataI[]
|
|
|
28
31
|
} | {
|
|
29
32
|
layerLabelId: number;
|
|
30
33
|
layerLabelName: string;
|
|
34
|
+
ancestryState: number | undefined;
|
|
31
35
|
labelGroup?: undefined;
|
|
32
36
|
id?: undefined;
|
|
33
37
|
labelName?: undefined;
|
package/es/userCondition/util.js
CHANGED
|
@@ -181,10 +181,12 @@ export function buildSelectLayer(data) {
|
|
|
181
181
|
labelCreateType: data[j].labelCreateType
|
|
182
182
|
}, type === LabelCreateType.firstAndLastUpdate || type === LabelCreateType.fundingSource || type === LabelCreateType.eventPreference || type === LabelCreateType.sqlCreateTable ? {
|
|
183
183
|
layerLabelId: layerLabelId,
|
|
184
|
-
layerLabelName: ''
|
|
184
|
+
layerLabelName: '',
|
|
185
|
+
ancestryState: data[j].ancestryState
|
|
185
186
|
} : {
|
|
186
187
|
layerLabelId: data[j].layers[i].layerLabelId,
|
|
187
|
-
layerLabelName: data[j].layers[i].layerLabelName
|
|
188
|
+
layerLabelName: data[j].layers[i].layerLabelName,
|
|
189
|
+
ancestryState: data[j].layers[i].ancestryState
|
|
188
190
|
}];
|
|
189
191
|
};
|
|
190
192
|
}
|
|
@@ -79,7 +79,7 @@ var UserGroupDemo = function UserGroupDemo() {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(BizUserGroup, {
|
|
82
|
-
value: ['
|
|
82
|
+
value: ['4230:1313538234793984', '666666:888888'],
|
|
83
83
|
enableDelete: false,
|
|
84
84
|
enableTags: true,
|
|
85
85
|
placeholder: "\u652F\u6301\u6807\u7B7E",
|
|
@@ -98,14 +98,7 @@ var UserGroupDemo = function UserGroupDemo() {
|
|
|
98
98
|
onCancel: function onCancel() {
|
|
99
99
|
setShowUserGroupModal(false);
|
|
100
100
|
}
|
|
101
|
-
}, "\u6DFB\u52A0\u7528\u6237\u7FA4")
|
|
102
|
-
value: 758,
|
|
103
|
-
enableDelete: false,
|
|
104
|
-
placeholder: "\u4E0D\u652F\u6301\u6807\u7B7E",
|
|
105
|
-
onChange: function onChange(value) {
|
|
106
|
-
return console.log(value);
|
|
107
|
-
}
|
|
108
|
-
})));
|
|
101
|
+
}, "\u6DFB\u52A0\u7528\u6237\u7FA4")));
|
|
109
102
|
};
|
|
110
103
|
export default (function () {
|
|
111
104
|
return /*#__PURE__*/React.createElement(UserGroupDemo, null);
|
package/es/userGroup/index.d.ts
CHANGED
|
@@ -2,5 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import './styles/index.less';
|
|
3
3
|
import { UserGroupTypes } from './types';
|
|
4
4
|
export declare const classPrefix = "biz-user-group";
|
|
5
|
-
|
|
5
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
6
|
+
defaultProps?: Partial<P>;
|
|
7
|
+
};
|
|
8
|
+
declare const BizUserGroup: FCWithDefaultProps<UserGroupTypes.Props>;
|
|
6
9
|
export default BizUserGroup;
|