@zgfe/business-lib 1.2.58-ljy.0 → 1.2.70-hxd.1
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/README.md +1 -1
- package/es/AUMFormulaTarget/components/formula/index.less +5 -1
- package/es/AUMFormulaTarget/components/formulaItem/index.js +52 -13
- package/es/AUMFormulaTarget/demo/index.js +1 -1
- package/es/assets/iconfont/demo_index.html +233 -3
- package/es/assets/iconfont/iconfont.css +43 -3
- package/es/assets/iconfont/iconfont.js +8 -8
- package/es/assets/iconfont/iconfont.json +70 -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/images/attention.png +0 -0
- package/es/assets/styles/resetAntd.less +20 -7
- package/es/attrCondition/group.js +5 -2
- package/es/attrCondition/index.js +6 -2
- package/es/attrConditions/components/operateList.js +4 -4
- package/es/attrConditions/components/stringList.d.ts +10 -0
- package/es/attrConditions/components/stringList.js +57 -27
- package/es/attrConditions/components/valuesList.d.ts +10 -0
- package/es/attrConditions/components/valuesList.js +7 -3
- package/es/attrConditions/types.d.ts +17 -0
- package/es/attributeSelector/index.js +9 -3
- package/es/attributeSelector/listPanel.js +8 -4
- package/es/attributeSelector/types.d.ts +3 -0
- package/es/attributeSelector/util.js +1 -0
- package/es/chart/demo/data/data7.d.ts +54 -0
- package/es/chart/demo/data/data7.js +1527 -0
- package/es/chart/demo/index.js +2 -3
- package/es/chart/demo/stack.d.ts +3 -0
- package/es/chart/demo/stack.js +31 -0
- package/es/chart/index.js +16 -6
- package/es/chart/types.d.ts +4 -1
- package/es/chart/util/chartOptionConfig.d.ts +4 -3
- package/es/chart/util/chartOptionConfig.js +84 -4
- package/es/chart/util/formatData.d.ts +1 -0
- package/es/chart/util/formatData.js +13 -0
- package/es/chart/util/formatOption.js +1 -1
- package/es/constants/apis.d.ts +3 -0
- package/es/constants/apis.js +4 -1
- package/es/cycleTime/index.js +1 -1
- package/es/datePicker/index.js +6 -6
- package/es/datePickerV2/index.js +6 -3
- package/es/datePickerV2/popoverContent.d.ts +1 -0
- package/es/datePickerV2/popoverContent.js +3 -1
- package/es/datePickerV2/shortcut.d.ts +2 -0
- package/es/datePickerV2/shortcut.js +4 -3
- package/es/datePickerV2/types.d.ts +2 -0
- package/es/datePickerV2/utils.d.ts +1 -1
- package/es/datePickerV2/utils.js +5 -5
- package/es/empty/demo/index.d.ts +4 -0
- package/es/empty/demo/index.js +16 -0
- package/es/empty/index.d.ts +4 -0
- package/es/empty/index.js +19 -0
- package/es/empty/types.d.ts +7 -0
- package/es/empty/types.js +1 -0
- package/es/hooks/useBizStore.d.ts +4 -2
- package/es/hooks/useBizStore.js +18 -14
- package/es/index.d.ts +6 -1
- package/es/index.js +6 -1
- package/es/platformSelector/index.js +42 -9
- package/es/platformSelector/styles/index.less +6 -2
- package/es/platformSelector/util.d.ts +1 -1
- package/es/platformSelector/util.js +8 -1
- package/es/productCondition/conditions/order/runPeriodCondition.js +1 -1
- package/es/productCondition/conditions/periodCondition.js +1 -1
- package/es/productCondition/conditions/runTimesCondition.js +1 -1
- package/es/select/index.js +9 -1
- package/es/select/types.d.ts +3 -2
- package/es/subjectWrapper/demo/index.d.ts +3 -0
- package/es/subjectWrapper/demo/index.js +28 -0
- package/es/subjectWrapper/index.d.ts +5 -0
- package/es/subjectWrapper/index.js +98 -0
- package/es/subjectWrapper/index.less +12 -0
- package/es/subjectWrapper/types.d.ts +14 -0
- package/es/subjectWrapper/types.js +4 -0
- package/es/targetConditionGroup/index.js +5 -4
- package/es/userCondition/conditionTypeList.js +1 -10
- package/es/userCondition/conditions/businessCondition.js +3 -10
- package/es/userCondition/conditions/cdpCshCondition.js +0 -1
- package/es/userCondition/conditions/eventCondition.js +36 -4
- package/es/userCondition/conditions/order/runPeriodCondition.js +1 -1
- package/es/userCondition/conditions/periodCondition.js +1 -1
- package/es/userCondition/conditions/runTimesCondition.js +1 -1
- package/es/userCondition/conditions/styles/eventCondition.less +6 -0
- package/es/userCondition/conditions/textDesc.js +1 -24
- package/es/userCondition/orConditions.js +0 -7
- package/es/userGroup/index.js +2 -2
- package/es/userGroupHeader/demo/index.js +1 -1
- package/es/userTagsSelector/cascaderOverlay.js +13 -6
- package/es/userTagsSelector/demo/index.js +1 -0
- package/es/userTagsSelector/index.js +6 -3
- package/es/userTagsSelector/types.d.ts +2 -0
- package/es/utils/util.d.ts +3 -0
- package/es/utils/util.js +10 -0
- package/package.json +4 -4
|
@@ -5,6 +5,76 @@
|
|
|
5
5
|
"css_prefix_text": "",
|
|
6
6
|
"description": "诸葛业务平台",
|
|
7
7
|
"glyphs": [
|
|
8
|
+
{
|
|
9
|
+
"icon_id": "42421332",
|
|
10
|
+
"name": "分享",
|
|
11
|
+
"font_class": "fenxiang",
|
|
12
|
+
"unicode": "e656",
|
|
13
|
+
"unicode_decimal": 58966
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"icon_id": "42402282",
|
|
17
|
+
"name": "icon 注意",
|
|
18
|
+
"font_class": "a-iconzhuyi",
|
|
19
|
+
"unicode": "e655",
|
|
20
|
+
"unicode_decimal": 58965
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"icon_id": "42390038",
|
|
24
|
+
"name": "姓名排序A-Z",
|
|
25
|
+
"font_class": "xingmingpaixuA-Z",
|
|
26
|
+
"unicode": "e7d9",
|
|
27
|
+
"unicode_decimal": 59353
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"icon_id": "42390037",
|
|
31
|
+
"name": "姓名排序Z-A",
|
|
32
|
+
"font_class": "xingmingpaixuZ-A",
|
|
33
|
+
"unicode": "e7da",
|
|
34
|
+
"unicode_decimal": 59354
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"icon_id": "42372608",
|
|
38
|
+
"name": "属性分析",
|
|
39
|
+
"font_class": "shuxingfenxi",
|
|
40
|
+
"unicode": "e654",
|
|
41
|
+
"unicode_decimal": 58964
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"icon_id": "42169337",
|
|
45
|
+
"name": "放大镜",
|
|
46
|
+
"font_class": "fangdajing",
|
|
47
|
+
"unicode": "e652",
|
|
48
|
+
"unicode_decimal": 58962
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"icon_id": "42169336",
|
|
52
|
+
"name": "缩小",
|
|
53
|
+
"font_class": "suoxiao1",
|
|
54
|
+
"unicode": "e653",
|
|
55
|
+
"unicode_decimal": 58963
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"icon_id": "42132750",
|
|
59
|
+
"name": "关系图",
|
|
60
|
+
"font_class": "a-node-tree2",
|
|
61
|
+
"unicode": "e650",
|
|
62
|
+
"unicode_decimal": 58960
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"icon_id": "42132749",
|
|
66
|
+
"name": "表格模式",
|
|
67
|
+
"font_class": "a-table-view1",
|
|
68
|
+
"unicode": "e651",
|
|
69
|
+
"unicode_decimal": 58961
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"icon_id": "41866164",
|
|
73
|
+
"name": "提交",
|
|
74
|
+
"font_class": "tijiao",
|
|
75
|
+
"unicode": "e7d8",
|
|
76
|
+
"unicode_decimal": 59352
|
|
77
|
+
},
|
|
8
78
|
{
|
|
9
79
|
"icon_id": "41736285",
|
|
10
80
|
"name": "更多",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
background-color: @background-color-base!important;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
> .ant-input:hover {
|
|
16
|
+
border-color: #165dff00 !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
> .ant-input:focus {
|
|
20
|
+
border-color: #165dff00 !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
15
23
|
&:hover {
|
|
16
24
|
border-color: @primary-color!important;
|
|
17
25
|
}
|
|
@@ -46,15 +54,16 @@
|
|
|
46
54
|
// 输入框
|
|
47
55
|
.ant-input {
|
|
48
56
|
background-color: @background-color-base!important;
|
|
57
|
+
border: 1px solid #ecedf000 !important;
|
|
49
58
|
// border-color: @background-color-base!important;
|
|
50
59
|
border-radius: @border-radius-small!important;
|
|
51
60
|
&:hover {
|
|
52
|
-
border-color: @primary-color;
|
|
61
|
+
border-color: @primary-color !important;
|
|
53
62
|
}
|
|
54
63
|
&:focus,
|
|
55
64
|
&-focused {
|
|
56
65
|
background-color: #fff !important;
|
|
57
|
-
border-color: @primary-color;
|
|
66
|
+
border-color: @primary-color !important;
|
|
58
67
|
box-shadow: 0 0 0 4px @custom-focus !important;
|
|
59
68
|
}
|
|
60
69
|
&.ant-input-status-error {
|
|
@@ -62,11 +71,16 @@
|
|
|
62
71
|
&:focus,
|
|
63
72
|
&-focused {
|
|
64
73
|
&:not(.ant-input-disable):not(.ant-input-borderless) {
|
|
65
|
-
box-shadow: 0 0 0 4px rgba(#ff8170, 0
|
|
74
|
+
box-shadow: 0 0 0 4px rgba(#ff8170, 0) !important;
|
|
66
75
|
}
|
|
67
76
|
}
|
|
68
77
|
}
|
|
69
78
|
}
|
|
79
|
+
.ant-input[disabled] {
|
|
80
|
+
color: rgba(2, 20, 41, 1) !important;
|
|
81
|
+
background-color: #f2f3f4 !important;
|
|
82
|
+
border-color: #ecedf000 !important;
|
|
83
|
+
}
|
|
70
84
|
|
|
71
85
|
.ant-input-group-addon {
|
|
72
86
|
color: @text-color-secondary!important;
|
|
@@ -519,24 +533,23 @@
|
|
|
519
533
|
}
|
|
520
534
|
|
|
521
535
|
.ant-btn-text {
|
|
522
|
-
background-color:
|
|
536
|
+
background-color: none !important;
|
|
523
537
|
border: none !important;
|
|
524
538
|
|
|
525
539
|
&:hover {
|
|
526
540
|
color: @text-color!important;
|
|
527
|
-
background-color:
|
|
541
|
+
background-color: none !important;
|
|
528
542
|
}
|
|
529
543
|
|
|
530
544
|
&:focus {
|
|
531
545
|
color: @text-color!important;
|
|
532
|
-
background-color:
|
|
546
|
+
background-color: none !important;
|
|
533
547
|
}
|
|
534
548
|
}
|
|
535
549
|
.ant-form-item-explain-error {
|
|
536
550
|
color: @error-color!important;
|
|
537
551
|
}
|
|
538
552
|
|
|
539
|
-
//dropdown
|
|
540
553
|
.ant-dropdown,
|
|
541
554
|
.ant-picker-dropdown,
|
|
542
555
|
.ant-dropdown-menu-submenu-popup {
|
|
@@ -11,7 +11,8 @@ var BizAttrConditionGroup = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
11
11
|
enableEnvProp = props.enableEnvProp,
|
|
12
12
|
disableItemList = props.disableItemList,
|
|
13
13
|
overlayClassName = props.overlayClassName,
|
|
14
|
-
extra = props.extra
|
|
14
|
+
extra = props.extra,
|
|
15
|
+
relationConfig = props.relationConfig;
|
|
15
16
|
var _useConditionGroup = useConditionGroup(props, ref),
|
|
16
17
|
loading = _useConditionGroup.loading,
|
|
17
18
|
conditions = _useConditionGroup.conditions,
|
|
@@ -61,7 +62,9 @@ var BizAttrConditionGroup = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
61
62
|
},
|
|
62
63
|
onDelete: function onDelete() {
|
|
63
64
|
return _onDelete(index);
|
|
64
|
-
}
|
|
65
|
+
},
|
|
66
|
+
relationSup: index ? conditions[index - 1] : undefined,
|
|
67
|
+
relationConfig: relationConfig
|
|
65
68
|
}));
|
|
66
69
|
}))));
|
|
67
70
|
});
|
|
@@ -23,7 +23,9 @@ var BizAttrCondition = function BizAttrCondition(props) {
|
|
|
23
23
|
enableEnvProp = props.enableEnvProp,
|
|
24
24
|
disableItemList = props.disableItemList,
|
|
25
25
|
theme = props.theme,
|
|
26
|
-
overlayClassName = props.overlayClassName
|
|
26
|
+
overlayClassName = props.overlayClassName,
|
|
27
|
+
relationSup = props.relationSup,
|
|
28
|
+
relationConfig = props.relationConfig;
|
|
27
29
|
var _useAttrCondition = useAttrCondition(props),
|
|
28
30
|
loading = _useAttrCondition.loading,
|
|
29
31
|
attr = _useAttrCondition.attr,
|
|
@@ -85,7 +87,9 @@ var BizAttrCondition = function BizAttrCondition(props) {
|
|
|
85
87
|
defaultValue: values,
|
|
86
88
|
onChange: onChangeValues,
|
|
87
89
|
theme: theme,
|
|
88
|
-
status: isValueError ? 'error' : ''
|
|
90
|
+
status: isValueError ? 'error' : '',
|
|
91
|
+
relationSup: relationSup,
|
|
92
|
+
relationConfig: relationConfig
|
|
89
93
|
}), isValueError ? /*#__PURE__*/React.createElement("div", {
|
|
90
94
|
className: "".concat(classPrefix, "-error")
|
|
91
95
|
}, "\u5C5E\u6027\u503C\u4E0D\u53EF\u4E3A\u7A7A") : null), enableDelete && /*#__PURE__*/React.createElement(IconFont, {
|
|
@@ -35,9 +35,9 @@ var BizOperateList = function BizOperateList(props) {
|
|
|
35
35
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
36
36
|
ready = _useState8[0],
|
|
37
37
|
setReady = _useState8[1];
|
|
38
|
-
var specialOperateHandle = function specialOperateHandle(
|
|
39
|
-
var _special = ['
|
|
40
|
-
return
|
|
38
|
+
var specialOperateHandle = function specialOperateHandle(name) {
|
|
39
|
+
var _special = ['platform', 'network', 'mccmnc', 'device_model'];
|
|
40
|
+
return name && _special.indexOf(name) !== -1 ? true : false;
|
|
41
41
|
};
|
|
42
42
|
useEffect(function () {
|
|
43
43
|
if (/place/.test(props.defaultValue || '')) {
|
|
@@ -63,7 +63,7 @@ var BizOperateList = function BizOperateList(props) {
|
|
|
63
63
|
var _props$attr2, _props$attr3;
|
|
64
64
|
if (((_props$attr2 = props.attr) === null || _props$attr2 === void 0 ? void 0 : _props$attr2.id) == 31415926) {
|
|
65
65
|
optionData = stringBusinessOperate;
|
|
66
|
-
} else if (specialOperateHandle((_props$attr3 = props.attr) === null || _props$attr3 === void 0 ? void 0 : _props$attr3.
|
|
66
|
+
} else if (specialOperateHandle((_props$attr3 = props.attr) === null || _props$attr3 === void 0 ? void 0 : _props$attr3.name)) {
|
|
67
67
|
optionData = specialOperate;
|
|
68
68
|
} else {
|
|
69
69
|
optionData = stringOperate;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AttributeSelect } from '../../attributeSelector/types';
|
|
3
|
+
import { AttrConditionTypes } from '../types';
|
|
3
4
|
import { BizSelectTypes } from '../../select/types';
|
|
4
5
|
declare const StringList: React.FC<{
|
|
5
6
|
attr: AttributeSelect.Value;
|
|
@@ -8,5 +9,14 @@ declare const StringList: React.FC<{
|
|
|
8
9
|
onChange?: (value: string[]) => void;
|
|
9
10
|
theme: BizSelectTypes.Props['theme'];
|
|
10
11
|
status?: string;
|
|
12
|
+
relationSup?: AttrConditionTypes.GroupAddKey;
|
|
13
|
+
relationConfig?: {
|
|
14
|
+
eventId: number;
|
|
15
|
+
eventName: string;
|
|
16
|
+
eventAttrIdSup: number;
|
|
17
|
+
eventAttrNameSup: string;
|
|
18
|
+
eventAttrIdSub: number;
|
|
19
|
+
eventAttrNameSub: string;
|
|
20
|
+
}[];
|
|
11
21
|
}>;
|
|
12
22
|
export default StringList;
|
|
@@ -86,34 +86,64 @@ var StringList = function StringList(props) {
|
|
|
86
86
|
case 0:
|
|
87
87
|
fetch = function fetch() {
|
|
88
88
|
var attrData = props.attr;
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
attr: (attrData === null || attrData === void 0 ? void 0 : attrData.id) || 0,
|
|
94
|
-
dimension_sub: attrData === null || attrData === void 0 ? void 0 : attrData.dimensionSub,
|
|
95
|
-
v: searchValue || ''
|
|
96
|
-
};
|
|
97
|
-
var formData = util.transformRequest(requestData);
|
|
98
|
-
request(Apis.esQuery, {
|
|
99
|
-
method: 'post',
|
|
100
|
-
data: formData,
|
|
101
|
-
headers: {
|
|
102
|
-
'Content-Type': 'application/x-www-form-urlencoded'
|
|
103
|
-
}
|
|
104
|
-
}).then(function (result) {
|
|
105
|
-
setOptions(function () {
|
|
106
|
-
return result && result.sources ? result.sources.map(function (item) {
|
|
107
|
-
return {
|
|
108
|
-
name: item,
|
|
109
|
-
value: item
|
|
110
|
-
};
|
|
111
|
-
}) : [];
|
|
112
|
-
});
|
|
113
|
-
}).catch(function (e) {
|
|
114
|
-
console.error(e);
|
|
115
|
-
setOptions([]);
|
|
89
|
+
var relationSup = props.relationSup;
|
|
90
|
+
var relationConfig = props.relationConfig || [];
|
|
91
|
+
var dealConfig = relationConfig.filter(function (item) {
|
|
92
|
+
return attrData && item.eventId === attrData.eventId && relationSup && relationSup.data && item.eventAttrIdSup === relationSup.data.attrId && item.eventAttrIdSub === (attrData === null || attrData === void 0 ? void 0 : attrData.id);
|
|
116
93
|
});
|
|
94
|
+
if (dealConfig && dealConfig.length && relationSup.data.values && relationSup.data.values.length) {
|
|
95
|
+
request(Apis.queryRelationResult, {
|
|
96
|
+
method: 'post',
|
|
97
|
+
data: {
|
|
98
|
+
app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
99
|
+
eventId: attrData.eventId,
|
|
100
|
+
attrId: relationSup.data.attrId,
|
|
101
|
+
attrValues: relationSup.data.values,
|
|
102
|
+
subAttrId: attrData === null || attrData === void 0 ? void 0 : attrData.id
|
|
103
|
+
}
|
|
104
|
+
}).then(function (result) {
|
|
105
|
+
setOptions(function () {
|
|
106
|
+
return result && result.data ? result.data.map(function (item) {
|
|
107
|
+
return {
|
|
108
|
+
name: item,
|
|
109
|
+
value: item
|
|
110
|
+
};
|
|
111
|
+
}) : [];
|
|
112
|
+
});
|
|
113
|
+
}).catch(function (e) {
|
|
114
|
+
console.error(e);
|
|
115
|
+
setOptions([]);
|
|
116
|
+
});
|
|
117
|
+
} else {
|
|
118
|
+
var requestData = {
|
|
119
|
+
app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
120
|
+
platform: 0,
|
|
121
|
+
limit: 20,
|
|
122
|
+
attr: (attrData === null || attrData === void 0 ? void 0 : attrData.id) || 0,
|
|
123
|
+
dimension_sub: attrData === null || attrData === void 0 ? void 0 : attrData.dimensionSub,
|
|
124
|
+
v: searchValue || ''
|
|
125
|
+
};
|
|
126
|
+
var formData = util.transformRequest(requestData);
|
|
127
|
+
request(Apis.esQuery, {
|
|
128
|
+
method: 'post',
|
|
129
|
+
data: formData,
|
|
130
|
+
headers: {
|
|
131
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
132
|
+
}
|
|
133
|
+
}).then(function (result) {
|
|
134
|
+
setOptions(function () {
|
|
135
|
+
return result && result.sources ? result.sources.map(function (item) {
|
|
136
|
+
return {
|
|
137
|
+
name: item,
|
|
138
|
+
value: item
|
|
139
|
+
};
|
|
140
|
+
}) : [];
|
|
141
|
+
});
|
|
142
|
+
}).catch(function (e) {
|
|
143
|
+
console.error(e);
|
|
144
|
+
setOptions([]);
|
|
145
|
+
});
|
|
146
|
+
}
|
|
117
147
|
};
|
|
118
148
|
if (timer) clearTimeout(timer);
|
|
119
149
|
setTimer(setTimeout(function () {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AttributeSelect } from '../../attributeSelector/types';
|
|
3
|
+
import { AttrConditionTypes } from '../types';
|
|
3
4
|
import { BizSelectTypes } from '../../select/types';
|
|
4
5
|
declare const ValuesList: React.FC<{
|
|
5
6
|
attr?: AttributeSelect.Value;
|
|
@@ -8,5 +9,14 @@ declare const ValuesList: React.FC<{
|
|
|
8
9
|
onChange?: (value: string[]) => void;
|
|
9
10
|
theme: BizSelectTypes.Props['theme'];
|
|
10
11
|
status?: string;
|
|
12
|
+
relationSup?: AttrConditionTypes.GroupAddKey;
|
|
13
|
+
relationConfig?: {
|
|
14
|
+
eventId: number;
|
|
15
|
+
eventName: string;
|
|
16
|
+
eventAttrIdSup: number;
|
|
17
|
+
eventAttrNameSup: string;
|
|
18
|
+
eventAttrIdSub: number;
|
|
19
|
+
eventAttrNameSub: string;
|
|
20
|
+
}[];
|
|
11
21
|
}>;
|
|
12
22
|
export default ValuesList;
|
|
@@ -21,7 +21,9 @@ var ValuesList = function ValuesList(props) {
|
|
|
21
21
|
defaultValue = props.defaultValue,
|
|
22
22
|
operate = props.operate,
|
|
23
23
|
theme = props.theme,
|
|
24
|
-
status = props.status
|
|
24
|
+
status = props.status,
|
|
25
|
+
relationSup = props.relationSup,
|
|
26
|
+
relationConfig = props.relationConfig;
|
|
25
27
|
var initValue = [moment().subtract(1, 'weeks').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')];
|
|
26
28
|
var _useState = useState(),
|
|
27
29
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -116,7 +118,9 @@ var ValuesList = function ValuesList(props) {
|
|
|
116
118
|
operate: operate,
|
|
117
119
|
value: current,
|
|
118
120
|
status: status,
|
|
119
|
-
onChange: onChange
|
|
121
|
+
onChange: onChange,
|
|
122
|
+
relationSup: relationSup,
|
|
123
|
+
relationConfig: relationConfig
|
|
120
124
|
});
|
|
121
125
|
} else if (attr.type === PropType.NUMBER) {
|
|
122
126
|
var numberAfter = /*#__PURE__*/React.createElement(BizSelect, {
|
|
@@ -166,7 +170,7 @@ var ValuesList = function ValuesList(props) {
|
|
|
166
170
|
} else {
|
|
167
171
|
return /*#__PURE__*/React.createElement(Input, {
|
|
168
172
|
className: "".concat(classPrefix, "-input"),
|
|
169
|
-
value: current && current[0] ? current[0] :
|
|
173
|
+
value: current && current[0] ? current[0] : '',
|
|
170
174
|
placeholder: "\u8BF7\u8F93\u5165\u5C5E\u6027\u503C",
|
|
171
175
|
type: "number",
|
|
172
176
|
suffix: "\u5929",
|
|
@@ -38,6 +38,15 @@ export declare namespace AttrConditionTypes {
|
|
|
38
38
|
destroyPopupOnHide?: boolean;
|
|
39
39
|
overlayClassName?: string;
|
|
40
40
|
supportNPlace?: boolean;
|
|
41
|
+
relationSup?: GroupAddKey;
|
|
42
|
+
relationConfig?: {
|
|
43
|
+
eventId: number;
|
|
44
|
+
eventName: string;
|
|
45
|
+
eventAttrIdSup: number;
|
|
46
|
+
eventAttrNameSup: string;
|
|
47
|
+
eventAttrIdSub: number;
|
|
48
|
+
eventAttrNameSub: string;
|
|
49
|
+
}[];
|
|
41
50
|
}
|
|
42
51
|
interface GroupProp extends BasicAttrTypes {
|
|
43
52
|
defaultValue?: GroupValue;
|
|
@@ -47,6 +56,14 @@ export declare namespace AttrConditionTypes {
|
|
|
47
56
|
onChange?: (value: GroupValue) => void;
|
|
48
57
|
onConditionsCount?: (value: number) => void;
|
|
49
58
|
overlayClassName?: string;
|
|
59
|
+
relationConfig?: {
|
|
60
|
+
eventId: number;
|
|
61
|
+
eventName: string;
|
|
62
|
+
eventAttrIdSup: number;
|
|
63
|
+
eventAttrNameSup: string;
|
|
64
|
+
eventAttrIdSub: number;
|
|
65
|
+
eventAttrNameSub: string;
|
|
66
|
+
}[];
|
|
50
67
|
}
|
|
51
68
|
interface Option {
|
|
52
69
|
name: string;
|
|
@@ -23,9 +23,12 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
|
|
|
23
23
|
placeholder = props.placeholder,
|
|
24
24
|
theme = props.theme,
|
|
25
25
|
extra = props.extra,
|
|
26
|
+
extraUser = props.extraUser,
|
|
26
27
|
isNumber = props.isNumber,
|
|
27
28
|
overlayClassName = props.overlayClassName,
|
|
28
|
-
isStrNum = props.isStrNum
|
|
29
|
+
isStrNum = props.isStrNum,
|
|
30
|
+
isString = props.isString,
|
|
31
|
+
isHideYeWu = props.isHideYeWu;
|
|
29
32
|
var _useState = useState(),
|
|
30
33
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31
34
|
currentAttr = _useState2[0],
|
|
@@ -71,7 +74,8 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
|
|
|
71
74
|
});
|
|
72
75
|
if (res && param.step !== undefined) res.step = param.step;
|
|
73
76
|
} else if ((param === null || param === void 0 ? void 0 : param.propCategory) === 'userProp') {
|
|
74
|
-
|
|
77
|
+
var _concat;
|
|
78
|
+
(_concat = (extraUser ? extraUser : []).concat(userPropList ? userPropList : [])) === null || _concat === void 0 ? void 0 : _concat.forEach(function (attr) {
|
|
75
79
|
if (attr.id === param.id && attr.category === param.category && attr.name === (param.name || param.value)) res = attr;
|
|
76
80
|
});
|
|
77
81
|
} else {
|
|
@@ -107,7 +111,9 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
|
|
|
107
111
|
value: currentAttr,
|
|
108
112
|
onChange: onChange,
|
|
109
113
|
isNumber: isNumber,
|
|
110
|
-
isStrNum: isStrNum
|
|
114
|
+
isStrNum: isStrNum,
|
|
115
|
+
isString: isString,
|
|
116
|
+
isHideYeWu: isHideYeWu
|
|
111
117
|
}));
|
|
112
118
|
},
|
|
113
119
|
trigger: ['click'],
|
|
@@ -24,8 +24,11 @@ var AttrListPanel = function AttrListPanel(props) {
|
|
|
24
24
|
eventIdList = props.eventIdList,
|
|
25
25
|
funnelEventIdList = props.funnelEventIdList,
|
|
26
26
|
extra = props.extra,
|
|
27
|
+
extraUser = props.extraUser,
|
|
27
28
|
isNumber = props.isNumber,
|
|
28
|
-
isStrNum = props.isStrNum
|
|
29
|
+
isStrNum = props.isStrNum,
|
|
30
|
+
isString = props.isString,
|
|
31
|
+
isHideYeWu = props.isHideYeWu;
|
|
29
32
|
var _useState = useState(''),
|
|
30
33
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31
34
|
searchValue = _useState2[0],
|
|
@@ -160,7 +163,9 @@ var AttrListPanel = function AttrListPanel(props) {
|
|
|
160
163
|
anchor: hasAnchor ? String(Math.random()) : anchor.event,
|
|
161
164
|
key: "event-".concat(event.id),
|
|
162
165
|
children: event.attrList.slice().filter(function (item) {
|
|
163
|
-
return
|
|
166
|
+
return isHideYeWu ? item.id != 31415926 : true;
|
|
167
|
+
}).filter(function (item) {
|
|
168
|
+
return isStrNum ? item.type === 2 || item.type === 1 : isNumber ? item.type === 2 : isString ? item.type === 1 : true;
|
|
164
169
|
})
|
|
165
170
|
};
|
|
166
171
|
list.push(group);
|
|
@@ -191,7 +196,7 @@ var AttrListPanel = function AttrListPanel(props) {
|
|
|
191
196
|
groupName: "".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u5C5E\u6027"),
|
|
192
197
|
key: 'userProps',
|
|
193
198
|
anchor: anchor.user,
|
|
194
|
-
children: userPropList
|
|
199
|
+
children: (extraUser ? extraUser : []).concat(userPropList)
|
|
195
200
|
});
|
|
196
201
|
}
|
|
197
202
|
if (enableEnvProp) {
|
|
@@ -206,7 +211,6 @@ var AttrListPanel = function AttrListPanel(props) {
|
|
|
206
211
|
setOptionList(list);
|
|
207
212
|
}, [anchor, eventIdMap, userPropList, eventEnvList, eventIdList, props.showCommonProp]);
|
|
208
213
|
useEffect(function () {
|
|
209
|
-
console.log('currentAttr', props.value);
|
|
210
214
|
setCurrentAttr(props.value);
|
|
211
215
|
}, [props.value]);
|
|
212
216
|
function onClick(option) {
|
|
@@ -96,8 +96,11 @@ export declare namespace AttributeSelect {
|
|
|
96
96
|
size?: SizeType;
|
|
97
97
|
status?: string;
|
|
98
98
|
extra?: AttributeExtra[];
|
|
99
|
+
extraUser?: ExtraProp[];
|
|
99
100
|
isNumber?: Boolean;
|
|
100
101
|
isStrNum?: Boolean;
|
|
102
|
+
isString?: Boolean;
|
|
103
|
+
isHideYeWu?: Boolean;
|
|
101
104
|
}
|
|
102
105
|
interface AttributeExtra {
|
|
103
106
|
type: string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
delEventName: null;
|
|
3
|
+
huanbi: never[];
|
|
4
|
+
md5: string;
|
|
5
|
+
numberCard: number;
|
|
6
|
+
series: {
|
|
7
|
+
diyTarget: boolean;
|
|
8
|
+
duration: never[];
|
|
9
|
+
groupId: number;
|
|
10
|
+
index: string;
|
|
11
|
+
names: string[];
|
|
12
|
+
orderNum: null;
|
|
13
|
+
originalNames: never[];
|
|
14
|
+
pNext: never[];
|
|
15
|
+
pTotal: never[];
|
|
16
|
+
proMd5: null;
|
|
17
|
+
resultFormat: null;
|
|
18
|
+
sum: null;
|
|
19
|
+
total: never[];
|
|
20
|
+
values: number[];
|
|
21
|
+
}[];
|
|
22
|
+
table: string;
|
|
23
|
+
tongbi: never[];
|
|
24
|
+
total: never[];
|
|
25
|
+
updateTime: string;
|
|
26
|
+
xAxis: string[];
|
|
27
|
+
yesterDay: never[];
|
|
28
|
+
seriesOriginal: {
|
|
29
|
+
diyTarget: boolean;
|
|
30
|
+
duration: never[];
|
|
31
|
+
groupId: number;
|
|
32
|
+
index: string;
|
|
33
|
+
names: string[];
|
|
34
|
+
orderNum: null;
|
|
35
|
+
originalNames: never[];
|
|
36
|
+
pNext: never[];
|
|
37
|
+
pTotal: never[];
|
|
38
|
+
proMd5: null;
|
|
39
|
+
resultFormat: null;
|
|
40
|
+
sum: null;
|
|
41
|
+
total: never[];
|
|
42
|
+
values: number[];
|
|
43
|
+
}[];
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
46
|
+
export declare const barData: {
|
|
47
|
+
xAxis: string[];
|
|
48
|
+
series: {
|
|
49
|
+
names: string[];
|
|
50
|
+
values: number[];
|
|
51
|
+
orderNum: number;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
export declare const showCharts: string[];
|