@zgfe/business-lib 1.0.27-adanalysis.0 → 1.0.27-adanalysis.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.
- package/es/addToPanel/index.js +33 -16
- package/es/assets/iconfont/demo_index.html +647 -3
- package/es/assets/iconfont/iconfont.css +115 -3
- package/es/assets/iconfont/iconfont.js +37 -33
- package/es/assets/iconfont/iconfont.json +196 -0
- package/es/assets/iconfont/iconfont.ttf +0 -0
- package/es/assets/iconfont/iconfont.woff +0 -0
- package/es/assets/iconfont/iconfont.woff2 +0 -0
- package/es/assets/styles/resetAntd.less +7 -2
- package/es/attrConditions/components/stringList.js +1 -1
- package/es/attrConditions/components/valuesList.js +7 -5
- package/es/attrConditions/group.js +4 -4
- package/es/attrConditions/types.d.ts +1 -0
- package/es/attributeSelector/styles/index.less +31 -2
- package/es/attributeSelector/util.js +9 -1
- package/es/chart/demo/bar.js +3 -4
- package/es/chart/demo/data/data.d.ts +7 -0
- package/es/chart/demo/data/data.js +10 -0
- package/es/chart/demo/data/data3.d.ts +0 -2
- package/es/chart/demo/data/data3.js +15 -574
- package/es/chart/demo/map.js +1 -2
- package/es/chart/index.js +2 -2
- package/es/chart/util/chartOptionConfig.d.ts +1 -54
- package/es/chart/util/chartOptionConfig.js +13 -7
- package/es/chart/util/formatData.js +2 -1
- package/es/chart/util/formatOption.js +7 -23
- package/es/chart/util/mapUtil.d.ts +2 -2
- package/es/chart/util/mapUtil.js +59 -75
- package/es/cycleTime/demo/disable.d.ts +2 -0
- package/es/cycleTime/demo/disable.js +17 -0
- package/es/cycleTime/index.d.ts +1 -0
- package/es/cycleTime/index.js +12 -5
- package/es/cycleTime/month.d.ts +1 -0
- package/es/cycleTime/month.js +6 -3
- package/es/cycleTime/styles/month.less +12 -0
- package/es/datePicker/utils.js +3 -0
- package/es/eventSelector/index.js +2 -2
- package/es/eventSelector/listPanel.js +20 -5
- package/es/eventSelector/types.d.ts +1 -1
- package/es/layout/analysisLayout/demo/index.js +5 -1
- package/es/layout/analysisLayout/index.js +5 -5
- package/es/layout/analysisLayout/index.less +0 -6
- package/es/select/demo/multiple.js +3 -2
- package/es/select/handle.js +50 -12
- package/es/select/index.js +44 -9
- package/es/select/overlay.d.ts +1 -1
- package/es/select/overlay.js +4 -5
- package/es/select/styles/handle.less +50 -28
- package/es/select/types.d.ts +6 -0
- package/es/targetConditionGroup/index.js +3 -1
- package/es/targetConditionGroup/types.d.ts +1 -0
- package/es/targetSelector/index.js +13 -0
- package/es/targetSelector/styles/index.less +1 -0
- package/es/userCondition/conditions/styles/eventCondition.less +1 -1
- package/es/userCondition/conditions/styles/tagsCondition.less +1 -1
- package/es/userCondition/conditions/tagsCondition.js +26 -13
- package/es/userCondition/conditions/textDesc.js +29 -8
- package/es/userCondition/demo/index.js +5 -228
- package/es/userCondition/demo/mockData.d.ts +85 -0
- package/es/userCondition/demo/mockData.js +546 -0
- package/es/userCondition/types.d.ts +21 -3
- package/es/userCondition/util.d.ts +23 -1
- package/es/userCondition/util.js +39 -5
- package/es/userTagsSelector/cascaderOverlay.js +132 -42
- package/es/userTagsSelector/demo/index.js +12 -5
- package/es/userTagsSelector/groups/groupOption.js +3 -2
- package/es/userTagsSelector/groups/index.js +18 -11
- package/es/userTagsSelector/groups/styles/option.less +6 -1
- package/es/userTagsSelector/index.js +17 -3
- package/es/userTagsSelector/multipleCheckPanel/checkOption.js +2 -1
- package/es/userTagsSelector/multipleCheckPanel/index.js +7 -16
- package/es/userTagsSelector/styles/cascaderOverlay.less +9 -4
- package/es/userTagsSelector/types.d.ts +1 -10
- package/es/userTagsSelector/util.d.ts +1 -1
- package/es/userTagsSelector/util.js +6 -2
- package/es/utils/ajax.js +5 -1
- package/package.json +3 -3
|
@@ -15,216 +15,8 @@ import eventData from '../../mock/event';
|
|
|
15
15
|
import envData from '../../mock/env';
|
|
16
16
|
import userData from '../../mock/user';
|
|
17
17
|
import { BizUserCondition, BizGlobalDataContext, convertAttributeData } from '@zgfe/business-lib';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
createTime: '2022-07-05T13:48:51',
|
|
21
|
-
del: 0,
|
|
22
|
-
id: 286,
|
|
23
|
-
isInner: 0,
|
|
24
|
-
isStartup: 0,
|
|
25
|
-
labelGroup: '行为标签',
|
|
26
|
-
labelId: 66284406603776,
|
|
27
|
-
labelName: 'test8(新增)',
|
|
28
|
-
labelStatus: 1,
|
|
29
|
-
updateTime: '2022-07-05T13:48:51'
|
|
30
|
-
}, {
|
|
31
|
-
appId: 51,
|
|
32
|
-
createTime: '2022-07-05T13:47:38',
|
|
33
|
-
del: 0,
|
|
34
|
-
id: 285,
|
|
35
|
-
isInner: 0,
|
|
36
|
-
isStartup: 0,
|
|
37
|
-
labelGroup: '预测标签',
|
|
38
|
-
labelId: 66283215683584,
|
|
39
|
-
labelName: 'test7(新增)',
|
|
40
|
-
labelStatus: 1,
|
|
41
|
-
updateTime: '2022-07-05T13:47:38'
|
|
42
|
-
}, {
|
|
43
|
-
appId: 51,
|
|
44
|
-
createTime: '2022-07-05T13:47:10',
|
|
45
|
-
del: 0,
|
|
46
|
-
id: 284,
|
|
47
|
-
isInner: 0,
|
|
48
|
-
isStartup: 0,
|
|
49
|
-
labelGroup: '其他标签',
|
|
50
|
-
labelId: 66282747314176,
|
|
51
|
-
labelName: 'test6(新增)',
|
|
52
|
-
labelStatus: 1,
|
|
53
|
-
updateTime: '2022-07-05T13:47:10'
|
|
54
|
-
}, {
|
|
55
|
-
appId: 51,
|
|
56
|
-
createTime: '2022-07-05T13:44:20',
|
|
57
|
-
del: 0,
|
|
58
|
-
id: 283,
|
|
59
|
-
isInner: 0,
|
|
60
|
-
isStartup: 0,
|
|
61
|
-
labelGroup: '其他标签',
|
|
62
|
-
labelId: 66279963361280,
|
|
63
|
-
labelName: 'test5(新增)',
|
|
64
|
-
labelStatus: 1,
|
|
65
|
-
updateTime: '2022-07-05T13:44:20'
|
|
66
|
-
}, {
|
|
67
|
-
appId: 51,
|
|
68
|
-
createTime: '2022-07-05T13:43:08',
|
|
69
|
-
del: 0,
|
|
70
|
-
id: 282,
|
|
71
|
-
isInner: 0,
|
|
72
|
-
isStartup: 0,
|
|
73
|
-
labelGroup: '活跃标签',
|
|
74
|
-
labelId: 66278784057344,
|
|
75
|
-
labelName: 'test3(新增)',
|
|
76
|
-
labelStatus: 1,
|
|
77
|
-
updateTime: '2022-07-05T13:43:08'
|
|
78
|
-
}, {
|
|
79
|
-
appId: 51,
|
|
80
|
-
createTime: '2022-07-05T13:42:44',
|
|
81
|
-
del: 0,
|
|
82
|
-
id: 281,
|
|
83
|
-
isInner: 0,
|
|
84
|
-
isStartup: 0,
|
|
85
|
-
labelGroup: '其他标签',
|
|
86
|
-
labelId: 66278393724928,
|
|
87
|
-
labelName: 'test2(新增)',
|
|
88
|
-
labelStatus: 1,
|
|
89
|
-
updateTime: '2022-07-05T13:42:44'
|
|
90
|
-
}, {
|
|
91
|
-
appId: 51,
|
|
92
|
-
createTime: '2022-07-05T13:42:30',
|
|
93
|
-
del: 0,
|
|
94
|
-
id: 280,
|
|
95
|
-
isInner: 0,
|
|
96
|
-
isStartup: 0,
|
|
97
|
-
labelGroup: '预测标签',
|
|
98
|
-
labelId: 66278158696448,
|
|
99
|
-
labelName: 'test1(新增)',
|
|
100
|
-
labelStatus: 1,
|
|
101
|
-
updateTime: '2022-07-05T13:42:30'
|
|
102
|
-
}, {
|
|
103
|
-
appId: 51,
|
|
104
|
-
createTime: '2022-06-21T15:04:24',
|
|
105
|
-
del: 0,
|
|
106
|
-
id: 277,
|
|
107
|
-
isInner: 0,
|
|
108
|
-
isStartup: 0,
|
|
109
|
-
labelGroup: '活跃标签',
|
|
110
|
-
labelId: 46540583010304,
|
|
111
|
-
labelName: '匿名用户',
|
|
112
|
-
labelStatus: 0,
|
|
113
|
-
updateTime: '2022-06-21T15:04:24'
|
|
114
|
-
}, {
|
|
115
|
-
appId: 51,
|
|
116
|
-
createTime: '2022-06-10T11:10:52',
|
|
117
|
-
del: 0,
|
|
118
|
-
id: 197,
|
|
119
|
-
isInner: 0,
|
|
120
|
-
isStartup: 0,
|
|
121
|
-
labelGroup: '活跃标签',
|
|
122
|
-
labelId: 77384417755136,
|
|
123
|
-
labelName: '手动更新1',
|
|
124
|
-
labelStatus: 0,
|
|
125
|
-
updateTime: '2022-06-10T11:32:31'
|
|
126
|
-
}, {
|
|
127
|
-
appId: 51,
|
|
128
|
-
createTime: '2022-06-10T11:10:36',
|
|
129
|
-
del: 0,
|
|
130
|
-
id: 196,
|
|
131
|
-
isInner: 0,
|
|
132
|
-
isStartup: 0,
|
|
133
|
-
labelGroup: '活跃标签',
|
|
134
|
-
labelId: 77383474429952,
|
|
135
|
-
labelName: '自动更新修改',
|
|
136
|
-
labelStatus: 0,
|
|
137
|
-
updateTime: '2022-06-10T11:11:13'
|
|
138
|
-
}, {
|
|
139
|
-
appId: 51,
|
|
140
|
-
createTime: '2022-06-10T10:49:57',
|
|
141
|
-
del: 0,
|
|
142
|
-
id: 191,
|
|
143
|
-
isInner: 0,
|
|
144
|
-
isStartup: 0,
|
|
145
|
-
labelGroup: '基本标签',
|
|
146
|
-
labelId: 77388914425856,
|
|
147
|
-
labelName: '一般价值',
|
|
148
|
-
labelStatus: 0,
|
|
149
|
-
updateTime: '2022-06-10T10:49:57'
|
|
150
|
-
}]);
|
|
151
|
-
var data = {
|
|
152
|
-
json: [[{
|
|
153
|
-
eventId: -4,
|
|
154
|
-
attrs: [],
|
|
155
|
-
runPeriod: {
|
|
156
|
-
operator: 'relative',
|
|
157
|
-
values: ['30', '1']
|
|
158
|
-
},
|
|
159
|
-
runTimes: {
|
|
160
|
-
operator: '>=',
|
|
161
|
-
values: ['1']
|
|
162
|
-
}
|
|
163
|
-
}, {
|
|
164
|
-
eventId: -3,
|
|
165
|
-
attrs: [],
|
|
166
|
-
runPeriod: {
|
|
167
|
-
operator: 'absolute',
|
|
168
|
-
values: ['2022-07-13', '2022-07-19']
|
|
169
|
-
},
|
|
170
|
-
runTimes: {
|
|
171
|
-
operator: '>=',
|
|
172
|
-
values: ['1']
|
|
173
|
-
}
|
|
174
|
-
}], [{
|
|
175
|
-
attrs: [{
|
|
176
|
-
attrId: 0,
|
|
177
|
-
attrName: 'zg_id',
|
|
178
|
-
operator: '>',
|
|
179
|
-
params: ['20'],
|
|
180
|
-
attrType: 'cont-num',
|
|
181
|
-
category: 'fixed'
|
|
182
|
-
}]
|
|
183
|
-
}, {
|
|
184
|
-
attrs: [{
|
|
185
|
-
attrId: 0,
|
|
186
|
-
attrName: 'app_user_id',
|
|
187
|
-
operator: 'equal',
|
|
188
|
-
params: ['20'],
|
|
189
|
-
attrType: 'cont-string',
|
|
190
|
-
category: 'fixed'
|
|
191
|
-
}]
|
|
192
|
-
}], [{
|
|
193
|
-
attrs: [{
|
|
194
|
-
attrId: 0,
|
|
195
|
-
attrName: 'duration',
|
|
196
|
-
operator: 'not equal',
|
|
197
|
-
params: [1198800, '1'],
|
|
198
|
-
attrType: 'cont-num',
|
|
199
|
-
category: 'fixed'
|
|
200
|
-
}]
|
|
201
|
-
}, {
|
|
202
|
-
eventId: 24143017,
|
|
203
|
-
runTimes: {
|
|
204
|
-
operator: '>=',
|
|
205
|
-
values: ['1']
|
|
206
|
-
},
|
|
207
|
-
attrs: [{
|
|
208
|
-
attrId: 0,
|
|
209
|
-
attrName: 'resolution_l',
|
|
210
|
-
category: 'fixed',
|
|
211
|
-
operator: '>',
|
|
212
|
-
params: ['10'],
|
|
213
|
-
attrType: 'cont-num'
|
|
214
|
-
}, {
|
|
215
|
-
attrId: 30183430,
|
|
216
|
-
attrName: '扫码场景描述',
|
|
217
|
-
category: 'custom',
|
|
218
|
-
operator: 'equal',
|
|
219
|
-
params: ['Microsoft Edge', 'Safari', 'Apple WebKit'],
|
|
220
|
-
attrType: 'cont-string'
|
|
221
|
-
}],
|
|
222
|
-
runPeriod: {
|
|
223
|
-
operator: 'relative',
|
|
224
|
-
values: ['30', '0']
|
|
225
|
-
}
|
|
226
|
-
}]]
|
|
227
|
-
};
|
|
18
|
+
import { conditions, tagList } from './mockData';
|
|
19
|
+
var getTagList = Promise.resolve(tagList);
|
|
228
20
|
export default (function () {
|
|
229
21
|
var _useState = useState({
|
|
230
22
|
eventGroupList: [],
|
|
@@ -248,28 +40,13 @@ export default (function () {
|
|
|
248
40
|
setStore(newStore);
|
|
249
41
|
}, []);
|
|
250
42
|
useEffect(function () {
|
|
251
|
-
var tagsMap = {};
|
|
252
43
|
getTagList.then(function (list) {
|
|
253
|
-
|
|
254
|
-
list.forEach(function (item) {
|
|
255
|
-
var labelGroup = item.labelGroup;
|
|
256
|
-
|
|
257
|
-
if (tagsMap[labelGroup]) {
|
|
258
|
-
tagsMap[labelGroup].push(item);
|
|
259
|
-
} else {
|
|
260
|
-
tagsMap[labelGroup] = [item];
|
|
261
|
-
data.push({
|
|
262
|
-
labelGroup: labelGroup,
|
|
263
|
-
children: tagsMap[labelGroup]
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
setUserTagsData(data);
|
|
44
|
+
setUserTagsData(list);
|
|
268
45
|
});
|
|
269
46
|
}, []);
|
|
270
47
|
var defaultValue = useMemo(function () {
|
|
271
|
-
return
|
|
272
|
-
}, [
|
|
48
|
+
return conditions;
|
|
49
|
+
}, [conditions]);
|
|
273
50
|
|
|
274
51
|
function onChange(value) {
|
|
275
52
|
console.log(JSON.stringify(value));
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const tagList: ({
|
|
2
|
+
dataStatus: number;
|
|
3
|
+
endProcessTime: string;
|
|
4
|
+
id: number;
|
|
5
|
+
labelGroup: string;
|
|
6
|
+
labelName: string;
|
|
7
|
+
labelRemark: string;
|
|
8
|
+
labelType: number;
|
|
9
|
+
layers: {
|
|
10
|
+
layerCondition: ({
|
|
11
|
+
eventId: number;
|
|
12
|
+
runPeriod: {
|
|
13
|
+
values: string[];
|
|
14
|
+
operator: string;
|
|
15
|
+
};
|
|
16
|
+
runTimes: {
|
|
17
|
+
values: string[];
|
|
18
|
+
operator: string;
|
|
19
|
+
};
|
|
20
|
+
attrs: never[];
|
|
21
|
+
}[] | {
|
|
22
|
+
eventId: string;
|
|
23
|
+
runPeriod: {
|
|
24
|
+
values: string[];
|
|
25
|
+
operator: string;
|
|
26
|
+
};
|
|
27
|
+
runTimes: {
|
|
28
|
+
values: string[];
|
|
29
|
+
operator: string;
|
|
30
|
+
};
|
|
31
|
+
attrs: never[];
|
|
32
|
+
}[])[];
|
|
33
|
+
layerLabelId: number;
|
|
34
|
+
layerLabelName: string;
|
|
35
|
+
layerRemark: string;
|
|
36
|
+
sequence: number;
|
|
37
|
+
}[];
|
|
38
|
+
startProcessTime: string;
|
|
39
|
+
} | {
|
|
40
|
+
dataStatus: number;
|
|
41
|
+
endProcessTime: string;
|
|
42
|
+
id: number;
|
|
43
|
+
labelGroup: string;
|
|
44
|
+
labelName: string;
|
|
45
|
+
labelRemark: string;
|
|
46
|
+
labelType: number;
|
|
47
|
+
layers: {
|
|
48
|
+
layerCondition: ({
|
|
49
|
+
attrs: {
|
|
50
|
+
attrId: number;
|
|
51
|
+
category: string;
|
|
52
|
+
params: string[];
|
|
53
|
+
attrName: string;
|
|
54
|
+
operator: string;
|
|
55
|
+
attrType: string;
|
|
56
|
+
}[];
|
|
57
|
+
}[] | {
|
|
58
|
+
eventId: string;
|
|
59
|
+
runPeriod: {
|
|
60
|
+
values: string[];
|
|
61
|
+
operator: string;
|
|
62
|
+
};
|
|
63
|
+
runTimes: {
|
|
64
|
+
values: string[];
|
|
65
|
+
operator: string;
|
|
66
|
+
};
|
|
67
|
+
attrs: never[];
|
|
68
|
+
}[])[];
|
|
69
|
+
layerLabelId: number;
|
|
70
|
+
layerLabelName: string;
|
|
71
|
+
layerRemark: string;
|
|
72
|
+
sequence: number;
|
|
73
|
+
}[];
|
|
74
|
+
startProcessTime: string;
|
|
75
|
+
})[];
|
|
76
|
+
export declare const conditions: {
|
|
77
|
+
attrs: {
|
|
78
|
+
attrId: number;
|
|
79
|
+
attrName: string;
|
|
80
|
+
category: string;
|
|
81
|
+
operator: string;
|
|
82
|
+
params: string[];
|
|
83
|
+
attrType: string;
|
|
84
|
+
}[];
|
|
85
|
+
}[][];
|