@zgfe/business-lib 1.2.70-hxd.11 → 1.2.70-hxd.19
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 +269 -269
- 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 +1 -1
- 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 +555 -394
- 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_index.html +203 -348
- package/es/assets/iconfont/iconfont.css +103 -63
- package/es/assets/iconfont/iconfont.js +1 -1
- package/es/assets/iconfont/iconfont.json +1584 -1689
- package/es/assets/styles/resetAntd.less +568 -564
- package/es/assets/styles/variable.less +21 -21
- 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 +101 -101
- package/es/attrCondition/useAttrCondition.js +4 -5
- package/es/attrConditions/components/operateList.js +6 -3
- package/es/attrConditions/index.d.ts +4 -1
- package/es/attrConditions/index.js +4 -2
- package/es/attrConditions/types.d.ts +3 -0
- package/es/attrConditions/utils/operates.d.ts +4 -0
- package/es/attrConditions/utils/operates.js +37 -0
- package/es/attributeSelector/index.d.ts +4 -1
- package/es/attributeSelector/index.js +4 -2
- package/es/attributeSelector/listPanel.d.ts +4 -1
- package/es/attributeSelector/listPanel.js +6 -3
- package/es/attributeSelector/types.d.ts +1 -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 +113 -113
- package/es/chart/util/color.js +1 -1
- package/es/colorIcon/index.js +2 -4
- package/es/constants/apis.d.ts +1 -0
- package/es/constants/apis.js +2 -1
- package/es/constants/common.d.ts +11 -0
- package/es/constants/common.js +31 -0
- package/es/context/index.d.ts +1 -0
- 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 +194 -194
- package/es/datePickerV2/types.d.ts +1 -0
- package/es/datePickerV2/utils.js +8 -2
- package/es/demoWrapper/content.js +6 -1
- 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/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 +9 -13
- package/es/eventSelector/option.d.ts +1 -0
- package/es/eventSelector/option.js +14 -3
- package/es/eventSelector/styles/index.less +127 -123
- package/es/eventSelector/types.d.ts +1 -0
- package/es/formulaTarget/components/formula/index.js +2 -1
- package/es/formulaTarget/components/formula/index.less +76 -76
- 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/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/changePanelModal/styles/index.less +92 -92
- 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/index.js +1 -1
- package/es/layout/optionTitle/styles/layout.less +90 -90
- package/es/platformSelector/styles/index.less +26 -26
- 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 +26 -26
- package/es/productCondition/index.d.ts +4 -1
- package/es/productCondition/styles/conditionTypeList.less +32 -30
- package/es/productCondition/styles/relationLabel.less +19 -19
- 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 +141 -138
- 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 +206 -193
- 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.d.ts +4 -1
- package/es/targetConditionGroup/demo/group.js +5 -18
- package/es/targetConditionGroup/index.d.ts +4 -1
- package/es/targetConditionGroup/index.js +6 -4
- 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 +142 -110
- 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 +71 -57
- package/es/userCondition/conditions/styles/periodCondition.less +32 -26
- package/es/userCondition/conditions/styles/textDesc.less +16 -17
- 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 +98 -20
- package/es/userCondition/styles/conditionTypeList.less +32 -30
- package/es/userCondition/styles/relationLabel.less +19 -19
- 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 +121 -16
- package/es/userGroup/overlay.js +17 -3
- package/es/userGroup/styles/index.less +199 -145
- 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 +109 -6
- package/es/userGroupHeader/styles/index.less +50 -31
- 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 +20 -10
- 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 +63 -26
- 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,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,29 @@ 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
62
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
var _useState5 = useState(
|
|
63
|
+
errorData = _useState4[0],
|
|
64
|
+
setErrorData = _useState4[1];
|
|
65
|
+
var _useState5 = useState(true),
|
|
66
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
67
|
+
tagsStateLoading = _useState6[0],
|
|
68
|
+
setTagsStateLoading = _useState6[1];
|
|
69
|
+
var _useState7 = useState([]),
|
|
70
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
71
|
+
showList = _useState8[0],
|
|
72
|
+
setShowList = _useState8[1];
|
|
73
|
+
var _useState9 = useState([]),
|
|
74
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
75
|
+
dataList = _useState10[0],
|
|
76
|
+
setDataList = _useState10[1];
|
|
77
|
+
var _useState11 = useState(function () {
|
|
65
78
|
var list = [];
|
|
66
79
|
if (defaultValue) {
|
|
67
80
|
var showTag = openTagCondition && authority[10038];
|
|
@@ -94,17 +107,17 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
94
107
|
}
|
|
95
108
|
return list;
|
|
96
109
|
}),
|
|
97
|
-
|
|
98
|
-
value =
|
|
99
|
-
setValue =
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
loading =
|
|
103
|
-
setLoading =
|
|
104
|
-
var
|
|
105
|
-
|
|
106
|
-
dataset =
|
|
107
|
-
setDataset =
|
|
110
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
111
|
+
value = _useState12[0],
|
|
112
|
+
setValue = _useState12[1];
|
|
113
|
+
var _useState13 = useState(true),
|
|
114
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
115
|
+
loading = _useState14[0],
|
|
116
|
+
setLoading = _useState14[1];
|
|
117
|
+
var _useState15 = useState([]),
|
|
118
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
119
|
+
dataset = _useState16[0],
|
|
120
|
+
setDataset = _useState16[1];
|
|
108
121
|
var envNameList = useMemo(function () {
|
|
109
122
|
return eventEnvList ? eventEnvList.map(function (env) {
|
|
110
123
|
return env.name;
|
|
@@ -124,6 +137,7 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
124
137
|
} else {
|
|
125
138
|
setLoading(false);
|
|
126
139
|
}
|
|
140
|
+
queryTagsState();
|
|
127
141
|
}, []);
|
|
128
142
|
function initShowList() {
|
|
129
143
|
var showList = [];
|
|
@@ -213,7 +227,68 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
213
227
|
}));
|
|
214
228
|
return _getDatasetList.apply(this, arguments);
|
|
215
229
|
}
|
|
216
|
-
|
|
230
|
+
function queryTagsState() {
|
|
231
|
+
return _queryTagsState.apply(this, arguments);
|
|
232
|
+
}
|
|
233
|
+
function _queryTagsState() {
|
|
234
|
+
_queryTagsState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
235
|
+
var _tagsData, _res$data, _res$data2, res, _res$data3;
|
|
236
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
237
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
238
|
+
case 0:
|
|
239
|
+
if (!(defaultValue.length > 0)) {
|
|
240
|
+
_context2.next = 17;
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
_tagsData = [];
|
|
244
|
+
defaultValue.map(function (item) {
|
|
245
|
+
item.map(function (_item) {
|
|
246
|
+
var _item$labels;
|
|
247
|
+
if ((_item === null || _item === void 0 ? void 0 : _item.labels) && (_item === null || _item === void 0 ? void 0 : (_item$labels = _item.labels) === null || _item$labels === void 0 ? void 0 : _item$labels.values)) {
|
|
248
|
+
var _item$labels2;
|
|
249
|
+
_item === null || _item === void 0 ? void 0 : (_item$labels2 = _item.labels) === null || _item$labels2 === void 0 ? void 0 : _item$labels2.values.map(function (__item) {
|
|
250
|
+
if (_tagsData.indexOf(__item) === -1) _tagsData.push(__item);
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
_context2.prev = 3;
|
|
256
|
+
_context2.next = 6;
|
|
257
|
+
return request(Apis.tagsState, {
|
|
258
|
+
method: 'post',
|
|
259
|
+
data: {
|
|
260
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
261
|
+
platform: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform) || 0,
|
|
262
|
+
userGroup: [_tagsData]
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
case 6:
|
|
266
|
+
res = _context2.sent;
|
|
267
|
+
if (res.data && ((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.labels) && ((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.labels.length) > 0) {
|
|
268
|
+
setErrorData((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.labels);
|
|
269
|
+
}
|
|
270
|
+
setTagsStateLoading(false);
|
|
271
|
+
_context2.next = 15;
|
|
272
|
+
break;
|
|
273
|
+
case 11:
|
|
274
|
+
_context2.prev = 11;
|
|
275
|
+
_context2.t0 = _context2["catch"](3);
|
|
276
|
+
console.error(_context2.t0);
|
|
277
|
+
setTagsStateLoading(false);
|
|
278
|
+
case 15:
|
|
279
|
+
_context2.next = 18;
|
|
280
|
+
break;
|
|
281
|
+
case 17:
|
|
282
|
+
setTagsStateLoading(false);
|
|
283
|
+
case 18:
|
|
284
|
+
case "end":
|
|
285
|
+
return _context2.stop();
|
|
286
|
+
}
|
|
287
|
+
}, _callee2, null, [[3, 11]]);
|
|
288
|
+
}));
|
|
289
|
+
return _queryTagsState.apply(this, arguments);
|
|
290
|
+
}
|
|
291
|
+
if (loading || tagsStateLoading) {
|
|
217
292
|
return /*#__PURE__*/React.createElement(Spin, null);
|
|
218
293
|
}
|
|
219
294
|
return /*#__PURE__*/React.createElement(BizUserConditionContext.Provider, {
|
|
@@ -227,11 +302,14 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
227
302
|
openBusinessDataCondition: openBusinessDataCondition,
|
|
228
303
|
openOrderDataCondition: openOrderDataCondition,
|
|
229
304
|
cdpTip: cdpTip,
|
|
230
|
-
userTagsData: userTagsData !== null && userTagsData !== void 0 ? userTagsData : [],
|
|
305
|
+
userTagsData: (userTagsData !== null && userTagsData !== void 0 ? userTagsData : []).concat(errorData),
|
|
306
|
+
searchUserTagsData: searchUserTagsData,
|
|
307
|
+
setSearchUserTagsData: setSearchUserTagsData,
|
|
231
308
|
isRealTime: props.isRealTime,
|
|
232
309
|
envNameList: envNameList,
|
|
233
310
|
userPropsMap: userPropsMap,
|
|
234
|
-
datasetList: dataset
|
|
311
|
+
datasetList: dataset,
|
|
312
|
+
realTimeTags: realTimeTags
|
|
235
313
|
}
|
|
236
314
|
}, /*#__PURE__*/React.createElement("div", {
|
|
237
315
|
className: classPrefix
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
@import '../../assets/styles/inner.less';
|
|
2
|
-
.biz-user-condition-type-list {
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
.biz-user-condition-type-label {
|
|
6
|
-
margin-right: 10px;
|
|
7
|
-
}
|
|
8
|
-
.biz-user-condition-type-container {
|
|
9
|
-
display: flex;
|
|
10
|
-
margin: 0;
|
|
11
|
-
padding: 0;
|
|
12
|
-
list-style: none;
|
|
13
|
-
.condition-type {
|
|
14
|
-
padding: @padding-xss 12px;
|
|
15
|
-
background-color:
|
|
16
|
-
border
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
1
|
+
@import '../../assets/styles/inner.less';
|
|
2
|
+
.biz-user-condition-type-list {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
.biz-user-condition-type-label {
|
|
6
|
+
margin-right: 10px;
|
|
7
|
+
}
|
|
8
|
+
.biz-user-condition-type-container {
|
|
9
|
+
display: flex;
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
list-style: none;
|
|
13
|
+
.condition-type {
|
|
14
|
+
padding: @padding-xss 12px;
|
|
15
|
+
background-color: #fff;
|
|
16
|
+
border: 1px solid #ecedf0;
|
|
17
|
+
border-radius: @border-radius-large;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
&:nth-child(n + 2) {
|
|
20
|
+
margin-left: @margin-md;
|
|
21
|
+
}
|
|
22
|
+
&:hover {
|
|
23
|
+
color: @primary-color;
|
|
24
|
+
// background-color: @primary-color-hover;
|
|
25
|
+
border: 1px solid #b9ceff;
|
|
26
|
+
}
|
|
27
|
+
&:active {
|
|
28
|
+
border-color: @primary-color;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
@import '../../assets/styles/inner.less';
|
|
2
|
-
.biz-user-condition-relation {
|
|
3
|
-
position: relative;
|
|
4
|
-
width: 2px;
|
|
5
|
-
margin-right: @margin-lg;
|
|
6
|
-
background-color:
|
|
7
|
-
&-label {
|
|
8
|
-
position: absolute;
|
|
9
|
-
top: 50%;
|
|
10
|
-
left: 50%;
|
|
11
|
-
width: 24px;
|
|
12
|
-
height: 24px;
|
|
13
|
-
line-height: 24px;
|
|
14
|
-
text-align: center;
|
|
15
|
-
background-color: @border-color-split;
|
|
16
|
-
border-radius: @border-radius-small;
|
|
17
|
-
transform: translate(-50%, -50%);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
@import '../../assets/styles/inner.less';
|
|
2
|
+
.biz-user-condition-relation {
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 2px;
|
|
5
|
+
margin-right: @margin-lg;
|
|
6
|
+
background-color: #b9ceff;
|
|
7
|
+
&-label {
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 50%;
|
|
10
|
+
left: 50%;
|
|
11
|
+
width: 24px;
|
|
12
|
+
height: 24px;
|
|
13
|
+
line-height: 24px;
|
|
14
|
+
text-align: center;
|
|
15
|
+
background-color: @border-color-split;
|
|
16
|
+
border-radius: @border-radius-small;
|
|
17
|
+
transform: translate(-50%, -50%);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -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;
|