@zgfe/modules-event 1.0.29-zhongyuan.0 → 1.0.29-zhongyuan.10
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 +35 -35
- package/es/components/eventFilter/index.js +2 -2
- package/es/components/eventFilter/setCascade.js +1 -1
- package/es/components/eventFilter/styles/index.less +148 -148
- package/es/components/renderContent/styles/index.less +19 -19
- package/es/components/searchPanel/index.js +1 -1
- package/es/components/searchPanel/styles/index.less +22 -22
- package/es/components/table/styles/index.less +241 -241
- package/es/components/topBar/styles/index.less +58 -58
- package/es/modules/content/index.js +3 -3
- package/es/modules/content/styles/index.less +19 -19
- package/es/modules/content/utils.js +2 -1
- package/es/modules/home/demo/styles/index.less +33 -33
- package/es/modules/home/styles/index.less +49 -49
- package/es/modules/topPanel/styles/index.less +50 -50
- package/es/style/image/ring.svg +8 -8
- package/es/style/index.less +62 -62
- package/es/utils/formData.js +24 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
# modules-event
|
|
2
|
-
|
|
3
|
-
事件分析
|
|
4
|
-
|
|
5
|
-
## Getting Started
|
|
6
|
-
|
|
7
|
-
Install dependencies,
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
$ npm i
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Start the dev server,
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
$ npm start
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Build documentation,
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
$ npm run docs:build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Run test,
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
$ npm test
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Build library via `father-build`,
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
$ npm run build
|
|
35
|
-
```
|
|
1
|
+
# modules-event
|
|
2
|
+
|
|
3
|
+
事件分析
|
|
4
|
+
|
|
5
|
+
## Getting Started
|
|
6
|
+
|
|
7
|
+
Install dependencies,
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
$ npm i
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Start the dev server,
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
$ npm start
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Build documentation,
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
$ npm run docs:build
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Run test,
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
$ npm test
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Build library via `father-build`,
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
$ npm run build
|
|
35
|
+
```
|
|
@@ -78,7 +78,7 @@ var EventFilter = function EventFilter(props) {
|
|
|
78
78
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
79
79
|
eventList = _useState16[0],
|
|
80
80
|
setEventList = _useState16[1];
|
|
81
|
-
var _useState17 = useState(
|
|
81
|
+
var _useState17 = useState(true),
|
|
82
82
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
83
83
|
isCascadeOpen = _useState18[0],
|
|
84
84
|
setIsCascadeOpen = _useState18[1];
|
|
@@ -115,7 +115,7 @@ var EventFilter = function EventFilter(props) {
|
|
|
115
115
|
queryRelationConfig();
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
}, []);
|
|
118
|
+
}, [isCascadeShow]);
|
|
119
119
|
var queryRelationConfig = function queryRelationConfig() {
|
|
120
120
|
ajax(Apis.queryRelationConfig, {
|
|
121
121
|
method: 'post',
|
|
@@ -132,7 +132,7 @@ var SelectAttributes = function SelectAttributes(props) {
|
|
|
132
132
|
deleteIds: deleteIds
|
|
133
133
|
}
|
|
134
134
|
}).then(function (res) {
|
|
135
|
-
if (res === null || res === void 0 ? void 0 : res.
|
|
135
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
136
136
|
props.submit && props.submit();
|
|
137
137
|
message.success('保存成功');
|
|
138
138
|
}
|
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
.eventfilter-box {
|
|
2
|
-
.attr-box-show {
|
|
3
|
-
margin-top: 4px;
|
|
4
|
-
}
|
|
5
|
-
> div:nth-child(1) {
|
|
6
|
-
display: flex;
|
|
7
|
-
padding: 4px 0 4px 24px;
|
|
8
|
-
&:hover {
|
|
9
|
-
background: #e8efff;
|
|
10
|
-
}
|
|
11
|
-
.biz-event-select,
|
|
12
|
-
.biz-attr-select {
|
|
13
|
-
min-width: 208px;
|
|
14
|
-
margin-right: 16px;
|
|
15
|
-
}
|
|
16
|
-
.shaixuan,
|
|
17
|
-
.guanli {
|
|
18
|
-
margin-top: 2px;
|
|
19
|
-
color: #9aa1a9;
|
|
20
|
-
font-size: 20px !important;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
}
|
|
23
|
-
.shaixuan:hover,
|
|
24
|
-
.guanli:hover {
|
|
25
|
-
color: #165dff;
|
|
26
|
-
}
|
|
27
|
-
.disable {
|
|
28
|
-
color: #ccd0d4 !important;
|
|
29
|
-
cursor: not-allowed !important;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
&-multiple {
|
|
33
|
-
.biz-event-select {
|
|
34
|
-
width: auto !important;
|
|
35
|
-
min-width: 208px;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.set-cascade-modal-box {
|
|
41
|
-
.ant-modal-header {
|
|
42
|
-
padding-bottom: 0;
|
|
43
|
-
}
|
|
44
|
-
.ant-modal-body {
|
|
45
|
-
padding: 0;
|
|
46
|
-
}
|
|
47
|
-
&-tips {
|
|
48
|
-
padding: 16px 24px;
|
|
49
|
-
color: #67727f;
|
|
50
|
-
font-weight: 400;
|
|
51
|
-
font-size: 14px;
|
|
52
|
-
line-height: 22px;
|
|
53
|
-
}
|
|
54
|
-
&-set::-webkit-scrollbar {
|
|
55
|
-
display: none;
|
|
56
|
-
}
|
|
57
|
-
&-set {
|
|
58
|
-
display: flex;
|
|
59
|
-
flex-direction: column;
|
|
60
|
-
gap: 16px;
|
|
61
|
-
height: 328px;
|
|
62
|
-
padding-right: 24px;
|
|
63
|
-
padding-bottom: 16px;
|
|
64
|
-
padding-left: 24px;
|
|
65
|
-
overflow-y: auto;
|
|
66
|
-
&-empty {
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
justify-content: center;
|
|
70
|
-
height: 328px;
|
|
71
|
-
}
|
|
72
|
-
&-item {
|
|
73
|
-
display: flex;
|
|
74
|
-
flex-direction: row;
|
|
75
|
-
gap: 16px;
|
|
76
|
-
align-self: stretch;
|
|
77
|
-
justify-content: space-between;
|
|
78
|
-
padding: 16px 16px 16px 24px;
|
|
79
|
-
color: var(--io-N8-, #354354);
|
|
80
|
-
font-weight: 400;
|
|
81
|
-
font-size: 14px;
|
|
82
|
-
font-family: 'PingFang SC';
|
|
83
|
-
font-style: normal;
|
|
84
|
-
line-height: 22px;
|
|
85
|
-
border: 1px solid var(--io-i1-, #e8efff);
|
|
86
|
-
border-radius: 4px;
|
|
87
|
-
&-info {
|
|
88
|
-
display: flex;
|
|
89
|
-
flex: 1;
|
|
90
|
-
flex-direction: column;
|
|
91
|
-
gap: 16px;
|
|
92
|
-
&-item {
|
|
93
|
-
display: flex;
|
|
94
|
-
flex-direction: row;
|
|
95
|
-
align-items: center;
|
|
96
|
-
height: 32px;
|
|
97
|
-
.biz-event-select,
|
|
98
|
-
.biz-attr-select {
|
|
99
|
-
flex: 1;
|
|
100
|
-
}
|
|
101
|
-
.biz-attr-select-handle {
|
|
102
|
-
width: inherit;
|
|
103
|
-
}
|
|
104
|
-
&-shu {
|
|
105
|
-
width: 1px;
|
|
106
|
-
height: 32px;
|
|
107
|
-
background: #e8efff;
|
|
108
|
-
}
|
|
109
|
-
&-heng {
|
|
110
|
-
width: 12px;
|
|
111
|
-
height: 1px;
|
|
112
|
-
margin-right: 8px;
|
|
113
|
-
background: #e8efff;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
.qingchu {
|
|
118
|
-
color: #9aa1a9;
|
|
119
|
-
cursor: pointer;
|
|
120
|
-
}
|
|
121
|
-
.qingchu:hover {
|
|
122
|
-
color: #fb5547;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
&-footer {
|
|
127
|
-
display: flex;
|
|
128
|
-
align-items: center;
|
|
129
|
-
justify-content: space-between;
|
|
130
|
-
height: 80px;
|
|
131
|
-
padding: 24px;
|
|
132
|
-
background: #fff;
|
|
133
|
-
border-top: 1px solid var(--io-n-05, #f2f3f4);
|
|
134
|
-
border-bottom-right-radius: 8px;
|
|
135
|
-
border-bottom-left-radius: 8px;
|
|
136
|
-
.addEvent {
|
|
137
|
-
padding: 0 16px;
|
|
138
|
-
div {
|
|
139
|
-
display: flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
.button:not(.disabled):not(.ant-btn-primary) {
|
|
144
|
-
color: #1454e5;
|
|
145
|
-
border: 1px solid #1454e5;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
1
|
+
.eventfilter-box {
|
|
2
|
+
.attr-box-show {
|
|
3
|
+
margin-top: 4px;
|
|
4
|
+
}
|
|
5
|
+
> div:nth-child(1) {
|
|
6
|
+
display: flex;
|
|
7
|
+
padding: 4px 0 4px 24px;
|
|
8
|
+
&:hover {
|
|
9
|
+
background: #e8efff;
|
|
10
|
+
}
|
|
11
|
+
.biz-event-select,
|
|
12
|
+
.biz-attr-select {
|
|
13
|
+
min-width: 208px;
|
|
14
|
+
margin-right: 16px;
|
|
15
|
+
}
|
|
16
|
+
.shaixuan,
|
|
17
|
+
.guanli {
|
|
18
|
+
margin-top: 2px;
|
|
19
|
+
color: #9aa1a9;
|
|
20
|
+
font-size: 20px !important;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
.shaixuan:hover,
|
|
24
|
+
.guanli:hover {
|
|
25
|
+
color: #165dff;
|
|
26
|
+
}
|
|
27
|
+
.disable {
|
|
28
|
+
color: #ccd0d4 !important;
|
|
29
|
+
cursor: not-allowed !important;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
&-multiple {
|
|
33
|
+
.biz-event-select {
|
|
34
|
+
width: auto !important;
|
|
35
|
+
min-width: 208px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.set-cascade-modal-box {
|
|
41
|
+
.ant-modal-header {
|
|
42
|
+
padding-bottom: 0;
|
|
43
|
+
}
|
|
44
|
+
.ant-modal-body {
|
|
45
|
+
padding: 0;
|
|
46
|
+
}
|
|
47
|
+
&-tips {
|
|
48
|
+
padding: 16px 24px;
|
|
49
|
+
color: #67727f;
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
font-size: 14px;
|
|
52
|
+
line-height: 22px;
|
|
53
|
+
}
|
|
54
|
+
&-set::-webkit-scrollbar {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
&-set {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
gap: 16px;
|
|
61
|
+
height: 328px;
|
|
62
|
+
padding-right: 24px;
|
|
63
|
+
padding-bottom: 16px;
|
|
64
|
+
padding-left: 24px;
|
|
65
|
+
overflow-y: auto;
|
|
66
|
+
&-empty {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
height: 328px;
|
|
71
|
+
}
|
|
72
|
+
&-item {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: row;
|
|
75
|
+
gap: 16px;
|
|
76
|
+
align-self: stretch;
|
|
77
|
+
justify-content: space-between;
|
|
78
|
+
padding: 16px 16px 16px 24px;
|
|
79
|
+
color: var(--io-N8-, #354354);
|
|
80
|
+
font-weight: 400;
|
|
81
|
+
font-size: 14px;
|
|
82
|
+
font-family: 'PingFang SC';
|
|
83
|
+
font-style: normal;
|
|
84
|
+
line-height: 22px;
|
|
85
|
+
border: 1px solid var(--io-i1-, #e8efff);
|
|
86
|
+
border-radius: 4px;
|
|
87
|
+
&-info {
|
|
88
|
+
display: flex;
|
|
89
|
+
flex: 1;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
gap: 16px;
|
|
92
|
+
&-item {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
align-items: center;
|
|
96
|
+
height: 32px;
|
|
97
|
+
.biz-event-select,
|
|
98
|
+
.biz-attr-select {
|
|
99
|
+
flex: 1;
|
|
100
|
+
}
|
|
101
|
+
.biz-attr-select-handle {
|
|
102
|
+
width: inherit;
|
|
103
|
+
}
|
|
104
|
+
&-shu {
|
|
105
|
+
width: 1px;
|
|
106
|
+
height: 32px;
|
|
107
|
+
background: #e8efff;
|
|
108
|
+
}
|
|
109
|
+
&-heng {
|
|
110
|
+
width: 12px;
|
|
111
|
+
height: 1px;
|
|
112
|
+
margin-right: 8px;
|
|
113
|
+
background: #e8efff;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.qingchu {
|
|
118
|
+
color: #9aa1a9;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
}
|
|
121
|
+
.qingchu:hover {
|
|
122
|
+
color: #fb5547;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
&-footer {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
height: 80px;
|
|
131
|
+
padding: 24px;
|
|
132
|
+
background: #fff;
|
|
133
|
+
border-top: 1px solid var(--io-n-05, #f2f3f4);
|
|
134
|
+
border-bottom-right-radius: 8px;
|
|
135
|
+
border-bottom-left-radius: 8px;
|
|
136
|
+
.addEvent {
|
|
137
|
+
padding: 0 16px;
|
|
138
|
+
div {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
.button:not(.disabled):not(.ant-btn-primary) {
|
|
144
|
+
color: #1454e5;
|
|
145
|
+
border: 1px solid #1454e5;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/variable.less';
|
|
2
|
-
|
|
3
|
-
.render-content {
|
|
4
|
-
&-chart-container {
|
|
5
|
-
display: flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
height: 392px;
|
|
9
|
-
padding: @padding-lg;
|
|
10
|
-
border: 1px solid @border-color-base;
|
|
11
|
-
border-radius: @border-radius-normal;
|
|
12
|
-
.echarts-for-react {
|
|
13
|
-
width: 100%;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
&-loading {
|
|
17
|
-
min-height: 300px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/variable.less';
|
|
2
|
+
|
|
3
|
+
.render-content {
|
|
4
|
+
&-chart-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
height: 392px;
|
|
9
|
+
padding: @padding-lg;
|
|
10
|
+
border: 1px solid @border-color-base;
|
|
11
|
+
border-radius: @border-radius-normal;
|
|
12
|
+
.echarts-for-react {
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
&-loading {
|
|
17
|
+
min-height: 300px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -95,7 +95,7 @@ var SearchPanel = function SearchPanel(props) {
|
|
|
95
95
|
}, /*#__PURE__*/React.createElement(BizDatePickerV2, {
|
|
96
96
|
defaultValue: time,
|
|
97
97
|
onChange: onChangeTime,
|
|
98
|
-
selectRange:
|
|
98
|
+
selectRange: 6000,
|
|
99
99
|
selectRangeUnit: "days"
|
|
100
100
|
}), /*#__PURE__*/React.createElement(BizTargetDimension, {
|
|
101
101
|
normalOptions: currentNormalOptions,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/variable.less';
|
|
2
|
-
|
|
3
|
-
.search-panel {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
height: 32px;
|
|
8
|
-
margin-bottom: 24px;
|
|
9
|
-
|
|
10
|
-
&-search-right {
|
|
11
|
-
display: flex;
|
|
12
|
-
gap: 16px;
|
|
13
|
-
&-refresh {
|
|
14
|
-
display: flex !important;
|
|
15
|
-
gap: 4px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&-select {
|
|
20
|
-
width: 112px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/variable.less';
|
|
2
|
+
|
|
3
|
+
.search-panel {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
height: 32px;
|
|
8
|
+
margin-bottom: 24px;
|
|
9
|
+
|
|
10
|
+
&-search-right {
|
|
11
|
+
display: flex;
|
|
12
|
+
gap: 16px;
|
|
13
|
+
&-refresh {
|
|
14
|
+
display: flex !important;
|
|
15
|
+
gap: 4px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-select {
|
|
20
|
+
width: 112px;
|
|
21
|
+
}
|
|
22
|
+
}
|