@zgfe/business-lib 1.2.58-ljy.0 → 1.2.66-hxd.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -12
- package/config.js +41 -41
- package/es/AUMFormulaTarget/components/formula/index.less +86 -82
- package/es/AUMFormulaTarget/components/formulaItem/index.js +52 -13
- package/es/AUMFormulaTarget/components/panel/index.less +269 -269
- package/es/AUMFormulaTarget/components/symbol/index.less +49 -49
- package/es/AUMFormulaTarget/demo/index.js +1 -1
- package/es/AUMFormulaTarget/styles/index.less +74 -74
- package/es/addToPanel/styles/addPanel.less +25 -25
- package/es/addToPanel/styles/index.less +17 -17
- package/es/addToPanel/styles/style.less +66 -66
- package/es/addToScene/styles/index.less +30 -30
- package/es/assets/colorIcon/demo.css +539 -539
- package/es/assets/colorIcon/demo_index.html +1454 -1454
- package/es/assets/colorIcon/iconfont.css +236 -236
- package/es/assets/colorIcon/iconfont.json +394 -394
- package/es/assets/colorIcon/iconfont.svg +129 -129
- package/es/assets/iconfont/demo.css +539 -539
- package/es/assets/iconfont/demo_index.html +5363 -5363
- package/es/assets/iconfont/iconfont.css +915 -915
- package/es/assets/iconfont/iconfont.json +1584 -1584
- package/es/assets/images/attention.png +0 -0
- package/es/assets/styles/chunks.less +183 -183
- package/es/assets/styles/inner.less +3 -3
- package/es/assets/styles/resetAntd.less +551 -551
- package/es/assets/styles/variable.less +21 -21
- package/es/attrCondition/group.js +5 -2
- package/es/attrCondition/index.js +6 -2
- package/es/attrCondition/styles/index.less +101 -101
- 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 +6 -2
- package/es/attrConditions/styles/group.less +49 -49
- package/es/attrConditions/styles/index.less +151 -151
- package/es/attrConditions/types.d.ts +17 -0
- package/es/attributeSelector/index.js +6 -2
- package/es/attributeSelector/listPanel.js +6 -2
- package/es/attributeSelector/styles/index.less +141 -141
- package/es/attributeSelector/types.d.ts +2 -0
- package/es/chart/demo/index.js +2 -3
- package/es/chart/styles/index.less +113 -113
- package/es/chart/util/data/china.js +17 -17
- 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/styles/index.less +24 -24
- package/es/cycleTime/styles/month.less +95 -95
- package/es/dataSetGroup/styles/index.less +146 -146
- package/es/datePicker/styles/index.less +53 -53
- package/es/datePickerV2/styles/index.less +194 -194
- package/es/demoWrapper/index.less +3 -3
- package/es/dialog/styles/index.less +22 -22
- package/es/dnd/styles/index.less +19 -19
- 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/eventSelector/styles/index.less +123 -123
- package/es/formulaTarget/components/formula/index.less +76 -76
- package/es/formulaTarget/components/panel/index.less +139 -139
- package/es/formulaTarget/components/symbol/index.less +49 -49
- package/es/formulaTarget/styles/index.less +74 -74
- package/es/hooks/types/subject.d.ts +14 -14
- package/es/hooks/useBizStore.d.ts +4 -2
- package/es/hooks/useBizStore.js +16 -15
- package/es/icon/demo/list.less +32 -32
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -1
- package/es/layout/analysisLayout/demo/index.less +12 -12
- package/es/layout/analysisLayout/index.less +118 -118
- package/es/layout/columnLayout/demo/index.less +15 -15
- package/es/layout/columnLayout/index.less +81 -81
- package/es/layout/detail/index.less +27 -27
- package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
- package/es/layout/optionTitle/demo/index.less +12 -12
- package/es/loading/styles/index.less +20 -20
- package/es/loginForm/index.less +7 -7
- package/es/platformSelector/index.js +42 -9
- package/es/platformSelector/styles/index.less +26 -22
- package/es/platformSelector/util.d.ts +1 -1
- package/es/platformSelector/util.js +8 -1
- package/es/productCondition/conditions/styles/cdpCondition.less +31 -31
- package/es/productCondition/conditions/styles/cdpCshCondition.less +41 -41
- package/es/productCondition/conditions/styles/eventCondition.less +51 -51
- package/es/productCondition/conditions/styles/periodCondition.less +26 -26
- package/es/productCondition/conditions/styles/propCondition.less +43 -43
- package/es/productCondition/conditions/styles/runTimesCondition.less +19 -19
- package/es/productCondition/conditions/styles/tagsCondition.less +20 -20
- package/es/productCondition/conditions/styles/textDesc.less +17 -17
- package/es/productCondition/styles/conditionTypeList.less +30 -30
- package/es/productCondition/styles/conditionWrap.less +18 -18
- package/es/productCondition/styles/index.less +33 -33
- package/es/productCondition/styles/orConditions.less +34 -34
- package/es/productCondition/styles/relationLabel.less +19 -19
- package/es/quickDatePicker/styles/index.less +138 -138
- package/es/select/styles/handle.less +193 -193
- package/es/select/styles/index.less +129 -129
- package/es/socket/demo/index.less +27 -27
- package/es/table/styles/index.less +5 -5
- package/es/targetConditionGroup/demo/styles/index.less +29 -29
- package/es/targetConditionGroup/index.js +5 -4
- package/es/targetConditionGroup/styles/index.less +53 -53
- package/es/targetSelector/styles/index.less +110 -110
- package/es/userCondition/conditionTypeList.js +1 -10
- package/es/userCondition/conditions/businessCondition.js +3 -10
- package/es/userCondition/conditions/eventCondition.js +36 -4
- package/es/userCondition/conditions/styles/cdpCondition.less +37 -37
- package/es/userCondition/conditions/styles/cdpCshCondition.less +47 -47
- package/es/userCondition/conditions/styles/eventCondition.less +57 -51
- package/es/userCondition/conditions/styles/periodCondition.less +26 -26
- package/es/userCondition/conditions/styles/propCondition.less +43 -43
- package/es/userCondition/conditions/styles/runTimesCondition.less +19 -19
- package/es/userCondition/conditions/styles/tagsCondition.less +20 -20
- package/es/userCondition/conditions/styles/textDesc.less +17 -17
- package/es/userCondition/conditions/textDesc.js +1 -24
- package/es/userCondition/orConditions.js +0 -7
- package/es/userCondition/styles/conditionTypeList.less +30 -30
- package/es/userCondition/styles/conditionWrap.less +18 -18
- package/es/userCondition/styles/index.less +33 -33
- package/es/userCondition/styles/orConditions.less +34 -34
- package/es/userCondition/styles/relationLabel.less +19 -19
- package/es/userGroup/styles/index.less +145 -145
- package/es/userGroupHeader/styles/index.less +31 -31
- package/es/userTagsSelector/cascaderOverlay.js +13 -6
- package/es/userTagsSelector/components/search/index.less +6 -6
- package/es/userTagsSelector/components/tagList/index.less +13 -13
- package/es/userTagsSelector/demo/index.js +1 -0
- package/es/userTagsSelector/groups/styles/option.less +55 -55
- package/es/userTagsSelector/index.js +6 -3
- package/es/userTagsSelector/multipleCheckPanel/styles/option.less +40 -40
- package/es/userTagsSelector/styles/cascaderOverlay.less +34 -34
- package/es/userTagsSelector/styles/index.less +10 -10
- package/es/userTagsSelector/types.d.ts +2 -0
- package/package.json +62 -62
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
.formula-symbol {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
width: 16px;
|
|
6
|
-
height: 16px;
|
|
7
|
-
margin: 0 4px;
|
|
8
|
-
color: #354354;
|
|
9
|
-
|
|
10
|
-
&-group {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
}
|
|
14
|
-
&-item {
|
|
15
|
-
color: #b9ceff;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
&.active {
|
|
18
|
-
color: #354354;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&-line {
|
|
23
|
-
width: 1px;
|
|
24
|
-
height: 16px;
|
|
25
|
-
margin: 0 12px;
|
|
26
|
-
background-color: #e6e7ea;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&-pop {
|
|
30
|
-
&.ant-popover-placement-top,
|
|
31
|
-
&.ant-popover-placement-topLeft,
|
|
32
|
-
&.ant-popover-placement-topRight {
|
|
33
|
-
padding-bottom: 0px;
|
|
34
|
-
}
|
|
35
|
-
.ant-popover-inner {
|
|
36
|
-
border-radius: 10px;
|
|
37
|
-
}
|
|
38
|
-
.ant-popover-inner-content {
|
|
39
|
-
padding: 8px 16px;
|
|
40
|
-
}
|
|
41
|
-
.ant-popover-content {
|
|
42
|
-
margin-bottom: 8px;
|
|
43
|
-
}
|
|
44
|
-
// .ant-popover-arrow {
|
|
45
|
-
// display: none;
|
|
46
|
-
// transform: none;
|
|
47
|
-
// }
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
.formula-symbol {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: 16px;
|
|
6
|
+
height: 16px;
|
|
7
|
+
margin: 0 4px;
|
|
8
|
+
color: #354354;
|
|
9
|
+
|
|
10
|
+
&-group {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
&-item {
|
|
15
|
+
color: #b9ceff;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
&.active {
|
|
18
|
+
color: #354354;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&-line {
|
|
23
|
+
width: 1px;
|
|
24
|
+
height: 16px;
|
|
25
|
+
margin: 0 12px;
|
|
26
|
+
background-color: #e6e7ea;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-pop {
|
|
30
|
+
&.ant-popover-placement-top,
|
|
31
|
+
&.ant-popover-placement-topLeft,
|
|
32
|
+
&.ant-popover-placement-topRight {
|
|
33
|
+
padding-bottom: 0px;
|
|
34
|
+
}
|
|
35
|
+
.ant-popover-inner {
|
|
36
|
+
border-radius: 10px;
|
|
37
|
+
}
|
|
38
|
+
.ant-popover-inner-content {
|
|
39
|
+
padding: 8px 16px;
|
|
40
|
+
}
|
|
41
|
+
.ant-popover-content {
|
|
42
|
+
margin-bottom: 8px;
|
|
43
|
+
}
|
|
44
|
+
// .ant-popover-arrow {
|
|
45
|
+
// display: none;
|
|
46
|
+
// transform: none;
|
|
47
|
+
// }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
@import '../../assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.biz-formula-target {
|
|
4
|
-
&:hover {
|
|
5
|
-
.biz-formula-target-title-option {
|
|
6
|
-
display: flex;
|
|
7
|
-
}
|
|
8
|
-
.formula-container-option:not(.active) {
|
|
9
|
-
display: flex;
|
|
10
|
-
color: #b9ceff;
|
|
11
|
-
&.disabled {
|
|
12
|
-
color: #ccd0d4;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&-title {
|
|
18
|
-
margin-bottom: 12px;
|
|
19
|
-
&-panel {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
height: 24px;
|
|
23
|
-
color: @text-color-secondary;
|
|
24
|
-
}
|
|
25
|
-
&-content {
|
|
26
|
-
.ant-input {
|
|
27
|
-
padding: 0 4px;
|
|
28
|
-
|
|
29
|
-
&:focus,
|
|
30
|
-
&.focused,
|
|
31
|
-
&.ant-input-focused {
|
|
32
|
-
background: #fff !important;
|
|
33
|
-
border: 1px solid @primary-color;
|
|
34
|
-
box-shadow: none !important;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&-option {
|
|
40
|
-
display: none;
|
|
41
|
-
align-items: center;
|
|
42
|
-
color: #67727f;
|
|
43
|
-
&.show {
|
|
44
|
-
display: flex;
|
|
45
|
-
}
|
|
46
|
-
& > div {
|
|
47
|
-
height: 24px;
|
|
48
|
-
padding: 0px 8px;
|
|
49
|
-
line-height: 24px;
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&-icon {
|
|
54
|
-
margin: 0 8px;
|
|
55
|
-
font-size: 16px !important;
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.primary {
|
|
60
|
-
color: @primary-color;
|
|
61
|
-
}
|
|
62
|
-
.disable {
|
|
63
|
-
cursor: not-allowed;
|
|
64
|
-
}
|
|
65
|
-
.delete:not(.disable):hover {
|
|
66
|
-
color: @error-color;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&-error {
|
|
72
|
-
color: @error-color;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
1
|
+
@import '../../assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.biz-formula-target {
|
|
4
|
+
&:hover {
|
|
5
|
+
.biz-formula-target-title-option {
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
.formula-container-option:not(.active) {
|
|
9
|
+
display: flex;
|
|
10
|
+
color: #b9ceff;
|
|
11
|
+
&.disabled {
|
|
12
|
+
color: #ccd0d4;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-title {
|
|
18
|
+
margin-bottom: 12px;
|
|
19
|
+
&-panel {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
height: 24px;
|
|
23
|
+
color: @text-color-secondary;
|
|
24
|
+
}
|
|
25
|
+
&-content {
|
|
26
|
+
.ant-input {
|
|
27
|
+
padding: 0 4px;
|
|
28
|
+
|
|
29
|
+
&:focus,
|
|
30
|
+
&.focused,
|
|
31
|
+
&.ant-input-focused {
|
|
32
|
+
background: #fff !important;
|
|
33
|
+
border: 1px solid @primary-color;
|
|
34
|
+
box-shadow: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-option {
|
|
40
|
+
display: none;
|
|
41
|
+
align-items: center;
|
|
42
|
+
color: #67727f;
|
|
43
|
+
&.show {
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
& > div {
|
|
47
|
+
height: 24px;
|
|
48
|
+
padding: 0px 8px;
|
|
49
|
+
line-height: 24px;
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-icon {
|
|
54
|
+
margin: 0 8px;
|
|
55
|
+
font-size: 16px !important;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.primary {
|
|
60
|
+
color: @primary-color;
|
|
61
|
+
}
|
|
62
|
+
.disable {
|
|
63
|
+
cursor: not-allowed;
|
|
64
|
+
}
|
|
65
|
+
.delete:not(.disable):hover {
|
|
66
|
+
color: @error-color;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&-error {
|
|
72
|
+
color: @error-color;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
namespace SubjectTypes {
|
|
2
|
-
export interface Subject {
|
|
3
|
-
id: number;
|
|
4
|
-
createTime: Date;
|
|
5
|
-
createUser: string;
|
|
6
|
-
createUserId?: number;
|
|
7
|
-
unit: string;
|
|
8
|
-
subjectName: string;
|
|
9
|
-
subjectAlias?: string;
|
|
10
|
-
appId: number;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default SubjectTypes;
|
|
1
|
+
namespace SubjectTypes {
|
|
2
|
+
export interface Subject {
|
|
3
|
+
id: number;
|
|
4
|
+
createTime: Date;
|
|
5
|
+
createUser: string;
|
|
6
|
+
createUserId?: number;
|
|
7
|
+
unit: string;
|
|
8
|
+
subjectName: string;
|
|
9
|
+
subjectAlias?: string;
|
|
10
|
+
appId: number;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default SubjectTypes;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { UserTagsSelectorTypes } from '../userTagsSelector/types';
|
|
2
2
|
import { UserGroupTypes } from '../userGroup/types';
|
|
3
|
-
|
|
3
|
+
import { AppInfoProps } from '../context';
|
|
4
|
+
declare function useBizStore({ currentApp }: {
|
|
5
|
+
currentApp: AppInfoProps;
|
|
6
|
+
}): {
|
|
4
7
|
eventGroupList?: import("../attributeSelector/types").EventGroup[] | undefined;
|
|
5
8
|
userPropList?: import("../attributeSelector/types").UserProp[] | undefined;
|
|
6
9
|
envPropList?: import("../attributeSelector/types").EnvProp[] | undefined;
|
|
7
10
|
eventNameMap?: Record<string, import("../attributeSelector/types").AnalysisEvent> | undefined;
|
|
8
11
|
eventIdMap?: Record<number, import("../attributeSelector/types").AnalysisEvent> | undefined;
|
|
9
12
|
useBizStoreLoading: boolean;
|
|
10
|
-
setUseBizStoreLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
11
13
|
groupLoading: boolean;
|
|
12
14
|
userGroupList: UserGroupTypes.Group[];
|
|
13
15
|
tagList: UserTagsSelectorTypes.Tag[];
|
package/es/hooks/useBizStore.js
CHANGED
|
@@ -14,7 +14,8 @@ import { useEffect, useState, useCallback } from 'react';
|
|
|
14
14
|
import { ajax } from '../utils';
|
|
15
15
|
import Apis from '../constants/apis';
|
|
16
16
|
import convertAttributeData from '../attributeSelector/util';
|
|
17
|
-
function useBizStore(
|
|
17
|
+
function useBizStore(_ref) {
|
|
18
|
+
var currentApp = _ref.currentApp;
|
|
18
19
|
var _useState = useState([]),
|
|
19
20
|
_useState2 = _slicedToArray(_useState, 2),
|
|
20
21
|
userGroupList = _useState2[0],
|
|
@@ -62,7 +63,7 @@ function useBizStore(appId) {
|
|
|
62
63
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
63
64
|
store = _useState24[0],
|
|
64
65
|
setStore = _useState24[1];
|
|
65
|
-
var _useState25 = useState(
|
|
66
|
+
var _useState25 = useState(false),
|
|
66
67
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
67
68
|
useBizStoreLoading = _useState26[0],
|
|
68
69
|
setUseBizStoreLoading = _useState26[1];
|
|
@@ -71,7 +72,7 @@ function useBizStore(appId) {
|
|
|
71
72
|
ajax(Apis.queryUserGroup, {
|
|
72
73
|
method: 'post',
|
|
73
74
|
data: {
|
|
74
|
-
appId: appId,
|
|
75
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
75
76
|
platform: 0,
|
|
76
77
|
includeDefault: true,
|
|
77
78
|
includeToday: true
|
|
@@ -82,13 +83,13 @@ function useBizStore(appId) {
|
|
|
82
83
|
}).finally(function () {
|
|
83
84
|
setGroupLoading(false);
|
|
84
85
|
});
|
|
85
|
-
}, [appId]);
|
|
86
|
+
}, [currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId]);
|
|
86
87
|
var queryTags = useCallback(function () {
|
|
87
88
|
setTagLoading(true);
|
|
88
89
|
ajax(Apis.queryAllTags, {
|
|
89
90
|
method: 'post',
|
|
90
91
|
data: {
|
|
91
|
-
appId: appId,
|
|
92
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
92
93
|
platform: 0
|
|
93
94
|
}
|
|
94
95
|
}).then(function (res) {
|
|
@@ -97,13 +98,13 @@ function useBizStore(appId) {
|
|
|
97
98
|
}).finally(function () {
|
|
98
99
|
setTagLoading(false);
|
|
99
100
|
});
|
|
100
|
-
}, [appId]);
|
|
101
|
+
}, [currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId]);
|
|
101
102
|
var loadEvents = useCallback(function () {
|
|
102
103
|
setLoadEvent(true);
|
|
103
104
|
ajax('/zg/web/v2/data/queryEventMetasOfGroup', {
|
|
104
105
|
method: 'post',
|
|
105
106
|
data: {
|
|
106
|
-
appId: appId,
|
|
107
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
107
108
|
platform: 0,
|
|
108
109
|
isAll: true
|
|
109
110
|
}
|
|
@@ -111,33 +112,33 @@ function useBizStore(appId) {
|
|
|
111
112
|
setEventGroups(res.data);
|
|
112
113
|
setLoadEvent(false);
|
|
113
114
|
});
|
|
114
|
-
}, [appId]);
|
|
115
|
+
}, [currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId]);
|
|
115
116
|
var loadUserProps = useCallback(function () {
|
|
116
117
|
setLoadUsers(true);
|
|
117
118
|
ajax('/zg/web/v2/appusergroup/getUserPropMeta', {
|
|
118
119
|
method: 'post',
|
|
119
120
|
data: {
|
|
120
|
-
appId: appId,
|
|
121
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
121
122
|
platform: 0
|
|
122
123
|
}
|
|
123
124
|
}).then(function (res) {
|
|
124
125
|
setUserProps(res.data);
|
|
125
126
|
setLoadUsers(false);
|
|
126
127
|
});
|
|
127
|
-
}, [appId]);
|
|
128
|
+
}, [currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId]);
|
|
128
129
|
var loadEnvList = useCallback(function () {
|
|
129
130
|
setLoadEnv(true);
|
|
130
131
|
ajax('/zg/web/v2/appusergroup/getEventEnvData', {
|
|
131
132
|
method: 'post',
|
|
132
133
|
data: {
|
|
133
|
-
appId: appId,
|
|
134
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
134
135
|
platform: 0
|
|
135
136
|
}
|
|
136
137
|
}).then(function (res) {
|
|
137
138
|
setEnvList(res.data.eventEnv);
|
|
138
139
|
setLoadEnv(false);
|
|
139
140
|
});
|
|
140
|
-
}, [appId]);
|
|
141
|
+
}, [currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId]);
|
|
141
142
|
useEffect(function () {
|
|
142
143
|
if (loadEnv || loadEvent || loadUsers) return;
|
|
143
144
|
setStore(convertAttributeData({
|
|
@@ -151,12 +152,13 @@ function useBizStore(appId) {
|
|
|
151
152
|
setUseBizStoreLoading(false);
|
|
152
153
|
}, [loadEvent, loadEnv, loadUsers, groupLoading, tagLoading]);
|
|
153
154
|
useEffect(function () {
|
|
154
|
-
if (!appId) return;
|
|
155
|
+
if (!currentApp || !currentApp.appId) return;
|
|
155
156
|
setTimer(function (pre) {
|
|
156
157
|
if (pre) {
|
|
157
158
|
clearTimeout(pre);
|
|
158
159
|
}
|
|
159
160
|
return setTimeout(function () {
|
|
161
|
+
setUseBizStoreLoading(true);
|
|
160
162
|
queryGroups();
|
|
161
163
|
queryTags();
|
|
162
164
|
loadUserProps();
|
|
@@ -164,10 +166,9 @@ function useBizStore(appId) {
|
|
|
164
166
|
loadEnvList();
|
|
165
167
|
}, 300);
|
|
166
168
|
});
|
|
167
|
-
}, [appId]);
|
|
169
|
+
}, [currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId]);
|
|
168
170
|
return _objectSpread({
|
|
169
171
|
useBizStoreLoading: useBizStoreLoading,
|
|
170
|
-
setUseBizStoreLoading: setUseBizStoreLoading,
|
|
171
172
|
groupLoading: groupLoading,
|
|
172
173
|
userGroupList: userGroupList,
|
|
173
174
|
tagList: tagList,
|
package/es/icon/demo/list.less
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
@size: 64px;
|
|
2
|
-
.item {
|
|
3
|
-
display: inline-block;
|
|
4
|
-
width: @size * 3;
|
|
5
|
-
height: 100px;
|
|
6
|
-
margin: 0 6px 6px 0;
|
|
7
|
-
padding-bottom: 12px;
|
|
8
|
-
text-align: center;
|
|
9
|
-
vertical-align: bottom;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
&:hover {
|
|
12
|
-
background: hsv(0, 0, 96%);
|
|
13
|
-
.icon {
|
|
14
|
-
font-size: 42px !important;
|
|
15
|
-
}
|
|
16
|
-
.label {
|
|
17
|
-
font-size: 14px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
.icon {
|
|
22
|
-
display: inline-block;
|
|
23
|
-
width: @size * 2;
|
|
24
|
-
height: @size;
|
|
25
|
-
line-height: @size;
|
|
26
|
-
transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
27
|
-
}
|
|
28
|
-
.label {
|
|
29
|
-
font-size: 12px;
|
|
30
|
-
vertical-align: bottom;
|
|
31
|
-
transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
32
|
-
}
|
|
1
|
+
@size: 64px;
|
|
2
|
+
.item {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
width: @size * 3;
|
|
5
|
+
height: 100px;
|
|
6
|
+
margin: 0 6px 6px 0;
|
|
7
|
+
padding-bottom: 12px;
|
|
8
|
+
text-align: center;
|
|
9
|
+
vertical-align: bottom;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
&:hover {
|
|
12
|
+
background: hsv(0, 0, 96%);
|
|
13
|
+
.icon {
|
|
14
|
+
font-size: 42px !important;
|
|
15
|
+
}
|
|
16
|
+
.label {
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.icon {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: @size * 2;
|
|
24
|
+
height: @size;
|
|
25
|
+
line-height: @size;
|
|
26
|
+
transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
27
|
+
}
|
|
28
|
+
.label {
|
|
29
|
+
font-size: 12px;
|
|
30
|
+
vertical-align: bottom;
|
|
31
|
+
transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
32
|
+
}
|
package/es/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import BizConditionGroup from './attrConditions/group';
|
|
|
10
10
|
import BizDatePicker from './datePicker';
|
|
11
11
|
import BizQuickDatePicker from './quickDatePicker';
|
|
12
12
|
import BizLoading from './loading';
|
|
13
|
+
import BizEmpty from './empty';
|
|
13
14
|
import BizSelect from './select';
|
|
14
15
|
import BizDialog from './dialog';
|
|
15
16
|
import BizChart from './chart';
|
|
@@ -49,7 +50,8 @@ import useSubject from './hooks/useSubject';
|
|
|
49
50
|
import BizPlatformSelector from './platformSelector';
|
|
50
51
|
import DataSetGroup from './dataSetGroup';
|
|
51
52
|
import BizDatePickerV2 from './datePickerV2';
|
|
52
|
-
|
|
53
|
+
import ValuesList from './attrConditions/components/valuesList';
|
|
54
|
+
export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizEmpty, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizDatePickerV2, BizPlatformSelector, ValuesList, };
|
|
53
55
|
export type { UserGroupTypes } from './userGroup/types';
|
|
54
56
|
export type { BizProductConditionT } from './productCondition/types';
|
|
55
57
|
export type { BizSelectTypes } from './select/types';
|
package/es/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import BizConditionGroup from './attrConditions/group';
|
|
|
9
9
|
import BizDatePicker from './datePicker';
|
|
10
10
|
import BizQuickDatePicker from './quickDatePicker';
|
|
11
11
|
import BizLoading from './loading';
|
|
12
|
+
import BizEmpty from './empty';
|
|
12
13
|
import BizSelect from './select';
|
|
13
14
|
import BizDialog from './dialog';
|
|
14
15
|
import BizChart from './chart';
|
|
@@ -48,4 +49,5 @@ import useSubject from './hooks/useSubject';
|
|
|
48
49
|
import BizPlatformSelector from './platformSelector';
|
|
49
50
|
import DataSetGroup from './dataSetGroup';
|
|
50
51
|
import BizDatePickerV2 from './datePickerV2';
|
|
51
|
-
|
|
52
|
+
import ValuesList from './attrConditions/components/valuesList';
|
|
53
|
+
export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizEmpty, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizDatePickerV2, BizPlatformSelector, ValuesList };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*demo数据*/
|
|
2
|
-
.root {
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 300px;
|
|
5
|
-
overflow: auto;
|
|
6
|
-
border: 1px solid #ecedf0;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.left-content {
|
|
10
|
-
width: 100%;
|
|
11
|
-
// height: 400px;
|
|
12
|
-
}
|
|
1
|
+
/*demo数据*/
|
|
2
|
+
.root {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 300px;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
border: 1px solid #ecedf0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.left-content {
|
|
10
|
+
width: 100%;
|
|
11
|
+
// height: 400px;
|
|
12
|
+
}
|