@zgfe/modules-event 1.0.29-zhongyuan.9 → 1.0.29-zhongyuanE.0
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 +9 -6
- package/es/components/eventFilter/styles/index.less +148 -148
- package/es/components/eventFilter/types.d.ts +1 -0
- package/es/components/renderContent/styles/index.less +19 -19
- package/es/components/searchPanel/index.js +2 -0
- package/es/components/searchPanel/styles/index.less +22 -22
- package/es/components/table/index.js +27 -7
- package/es/components/table/styles/index.css +236 -0
- package/es/components/table/styles/index.less +249 -241
- package/es/components/topBar/styles/index.less +58 -58
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/modules/chart/index.js +8 -2
- package/es/modules/content/styles/index.less +19 -19
- package/es/modules/home/demo/index.js +4 -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/types.d.ts +2 -0
- package/es/utils/formData.js +22 -3
- 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
|
+
```
|
|
@@ -96,12 +96,14 @@ var EventFilter = function EventFilter(props) {
|
|
|
96
96
|
if (_data && _data.id) {
|
|
97
97
|
setShowDimension(true);
|
|
98
98
|
}
|
|
99
|
-
if (_data.filters) {
|
|
100
|
-
setFilter(_data.filters);
|
|
101
|
-
setCount(_data.filters.conditions.length);
|
|
99
|
+
if (_data === null || _data === void 0 ? void 0 : _data.filters) {
|
|
100
|
+
setFilter(_data === null || _data === void 0 ? void 0 : _data.filters);
|
|
101
|
+
setCount(_data === null || _data === void 0 ? void 0 : _data.filters.conditions.length);
|
|
102
102
|
}
|
|
103
103
|
if (_data.dimension) {
|
|
104
|
-
setBizAttributeSelectorValue(
|
|
104
|
+
setBizAttributeSelectorValue(function () {
|
|
105
|
+
return _objectSpread({}, _data.dimension);
|
|
106
|
+
});
|
|
105
107
|
}
|
|
106
108
|
}
|
|
107
109
|
ajax(Apis.getEventSwitch, {
|
|
@@ -115,7 +117,7 @@ var EventFilter = function EventFilter(props) {
|
|
|
115
117
|
queryRelationConfig();
|
|
116
118
|
}
|
|
117
119
|
});
|
|
118
|
-
}, [
|
|
120
|
+
}, []);
|
|
119
121
|
var queryRelationConfig = function queryRelationConfig() {
|
|
120
122
|
ajax(Apis.queryRelationConfig, {
|
|
121
123
|
method: 'post',
|
|
@@ -201,7 +203,8 @@ var EventFilter = function EventFilter(props) {
|
|
|
201
203
|
propCategory: attr.propCategory,
|
|
202
204
|
category: attr.category,
|
|
203
205
|
value: _value,
|
|
204
|
-
id: attr.id
|
|
206
|
+
id: attr.id,
|
|
207
|
+
encryptionType: attr.encryptionType
|
|
205
208
|
});
|
|
206
209
|
}
|
|
207
210
|
};
|
|
@@ -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
|
+
}
|
|
@@ -12,6 +12,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { BizSelect, BizTargetDimension, useChanged, IconFont, BizDatePickerV2 } from '@zgfe/business-lib';
|
|
14
14
|
import { Button } from 'antd';
|
|
15
|
+
import { DatePickerTypes } from '@zgfe/business-lib/es/datePickerV2/types';
|
|
15
16
|
import React, { useContext, useEffect, useState } from 'react';
|
|
16
17
|
import { chartTypeOptions, getInitDate } from '../../constants';
|
|
17
18
|
import { EventContext } from '../../types';
|
|
@@ -96,6 +97,7 @@ var SearchPanel = function SearchPanel(props) {
|
|
|
96
97
|
defaultValue: time,
|
|
97
98
|
onChange: onChangeTime,
|
|
98
99
|
selectRange: 6000,
|
|
100
|
+
dateTypeList: [DatePickerTypes.Unit.minute, DatePickerTypes.Unit.hour, DatePickerTypes.Unit.day, DatePickerTypes.Unit.week, DatePickerTypes.Unit.month],
|
|
99
101
|
selectRangeUnit: "days"
|
|
100
102
|
}), /*#__PURE__*/React.createElement(BizTargetDimension, {
|
|
101
103
|
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
|
+
}
|
|
@@ -21,13 +21,15 @@ import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
|
21
21
|
import 'highlight.js/styles/vs.css';
|
|
22
22
|
import base64 from '../../utils/base64';
|
|
23
23
|
import { Apis } from '../../constants';
|
|
24
|
-
import { Modal, message, Table, ConfigProvider, Empty, Tooltip } from 'antd';
|
|
24
|
+
import { Modal, message, Table, ConfigProvider, Empty, Tooltip, Typography } from 'antd';
|
|
25
|
+
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
|
25
26
|
import { formTableData, getColumns } from '../../utils/formData';
|
|
26
27
|
import './styles/index.less';
|
|
27
28
|
import { getValue } from '../../modules/content/utils';
|
|
28
29
|
import { EventContext } from '../../types';
|
|
29
30
|
import { getEventAliasName } from '../../utils/formData';
|
|
30
31
|
var classPrefix = 'event-mi-table';
|
|
32
|
+
var Text = Typography.Text;
|
|
31
33
|
var EventTable = function EventTable(props) {
|
|
32
34
|
var dataSource = props.dataSource,
|
|
33
35
|
searchData = props.searchData,
|
|
@@ -43,7 +45,8 @@ var EventTable = function EventTable(props) {
|
|
|
43
45
|
eventEnvList = _useContext.eventEnvList,
|
|
44
46
|
userPropList = _useContext.userPropList,
|
|
45
47
|
userGroupList = _useContext.userGroupList,
|
|
46
|
-
authority = _useContext.authority
|
|
48
|
+
authority = _useContext.authority,
|
|
49
|
+
showProdDownload = _useContext.showProdDownload;
|
|
47
50
|
var _useContext2 = useContext(EventContext),
|
|
48
51
|
onUserDrill = _useContext2.onUserDrill,
|
|
49
52
|
_useContext2$defaultS = _useContext2.defaultSearch,
|
|
@@ -91,9 +94,12 @@ var EventTable = function EventTable(props) {
|
|
|
91
94
|
originalName: '总计',
|
|
92
95
|
userGroup: Object.keys(item)[0]
|
|
93
96
|
};
|
|
97
|
+
var sum = 0;
|
|
94
98
|
Object.values(item)[0].forEach(function (item, index) {
|
|
95
99
|
data["field".concat(index)] = item;
|
|
100
|
+
sum += item;
|
|
96
101
|
});
|
|
102
|
+
data.attrSum = sum;
|
|
97
103
|
dataAll.push(data);
|
|
98
104
|
});
|
|
99
105
|
setPvTitle(dataSource.eventPvTitle.split(';').map(function (item) {
|
|
@@ -109,7 +115,7 @@ var EventTable = function EventTable(props) {
|
|
|
109
115
|
props.changeShowByName(nameGroup);
|
|
110
116
|
};
|
|
111
117
|
var onClickToDetail = function onClickToDetail(item, time, count) {
|
|
112
|
-
var _searchData$filters;
|
|
118
|
+
var _searchData$dimension, _searchData$filters;
|
|
113
119
|
var userGroupData = userGroup[0] == null ? [] : [userGroup[0]];
|
|
114
120
|
if ((userGroup === null || userGroup === void 0 ? void 0 : userGroup.length) > 1) {
|
|
115
121
|
userGroupList && userGroupList.forEach(function (user) {
|
|
@@ -121,7 +127,7 @@ var EventTable = function EventTable(props) {
|
|
|
121
127
|
var _time = time.split('|');
|
|
122
128
|
var groupValue = '';
|
|
123
129
|
if (searchData.dimension && item.dimension) {
|
|
124
|
-
groupValue = item.
|
|
130
|
+
groupValue = item.originalName;
|
|
125
131
|
} else {
|
|
126
132
|
eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (group) {
|
|
127
133
|
group.eventList.forEach(function (event) {
|
|
@@ -138,6 +144,7 @@ var EventTable = function EventTable(props) {
|
|
|
138
144
|
module: 'event',
|
|
139
145
|
params: {
|
|
140
146
|
groupValue: groupValue,
|
|
147
|
+
groupValueEncry: (((_searchData$dimension = searchData.dimension) === null || _searchData$dimension === void 0 ? void 0 : _searchData$dimension.encryptionType) || 0) > 0,
|
|
141
148
|
id: searchData.id,
|
|
142
149
|
userGroup: userGroupData,
|
|
143
150
|
chartType: searchData.chartType,
|
|
@@ -168,7 +175,7 @@ var EventTable = function EventTable(props) {
|
|
|
168
175
|
data: _objectSpread({
|
|
169
176
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
170
177
|
platform: (searchData === null || searchData === void 0 ? void 0 : searchData.platform) || 0,
|
|
171
|
-
service:
|
|
178
|
+
service: searchData.id ? 'event_sql' : 'event/overview_sql'
|
|
172
179
|
}, searchData)
|
|
173
180
|
}).then(function (res) {
|
|
174
181
|
if (res === null || res === void 0 ? void 0 : res.data) {
|
|
@@ -235,7 +242,7 @@ var EventTable = function EventTable(props) {
|
|
|
235
242
|
}, /*#__PURE__*/React.createElement("span", null, item[0], "\uFF1A"), /*#__PURE__*/React.createElement("span", null, item[1], index === pvTitle.length - 1 ? '' : ' | '));
|
|
236
243
|
}), "\uFF09")) : null), /*#__PURE__*/React.createElement("div", null, authority[100051] && /*#__PURE__*/React.createElement("div", {
|
|
237
244
|
onClick: seeSql
|
|
238
|
-
}, "\u67E5\u770BSQL"), authority[100050] && /*#__PURE__*/React.createElement("div", {
|
|
245
|
+
}, "\u67E5\u770BSQL"), authority[100050] && showProdDownload && /*#__PURE__*/React.createElement("div", {
|
|
239
246
|
onClick: download
|
|
240
247
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
241
248
|
type: "xiazai1"
|
|
@@ -294,6 +301,19 @@ var EventTable = function EventTable(props) {
|
|
|
294
301
|
className: "copy-box"
|
|
295
302
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
296
303
|
type: "fuzhi1"
|
|
297
|
-
}), "\u590D\u5236\u4EE3\u7801"))
|
|
304
|
+
}), "\u590D\u5236\u4EE3\u7801")), /*#__PURE__*/React.createElement("div", {
|
|
305
|
+
style: {
|
|
306
|
+
margin: '10px 0px 0px'
|
|
307
|
+
},
|
|
308
|
+
className: "sql-tip"
|
|
309
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
310
|
+
type: "warning"
|
|
311
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
312
|
+
title: "\u771F\u5B9E\u4E1A\u52A1\u573A\u666F\u4E0B\u7684\u67E5\u8BE2\u903B\u8F91\uFF0C\u6D89\u53CA\u590D\u6742\u4E1A\u52A1\u89C4\u5219\u4E0E\u7A0B\u5E8F\u5904\u7406\u903B\u8F91\u4EA4\u7EC7\u3002\u6B64\u5904\u5C55\u793A\u7684 SQL \u4EC5\u4F5C\u4E3A\u7B80\u5355\u4E8B\u4EF6\u67E5\u8BE2\u7684\u903B\u8F91\u53C2\u8003\u793A\u4F8B \uFF0C\u4E0D\u4EE3\u8868\u4E0E\u5F53\u524D\u754C\u9762\u6240\u9009\u67E5\u8BE2\u6761\u4EF6\u5B8C\u5168\u6620\u5C04"
|
|
313
|
+
}, /*#__PURE__*/React.createElement(ExclamationCircleOutlined, {
|
|
314
|
+
style: {
|
|
315
|
+
margin: '0px 8px 0px 0px'
|
|
316
|
+
}
|
|
317
|
+
})), "SQL \u4EC5\u4F5C\u4E3A\u7B80\u5355\u4E8B\u4EF6\u67E5\u8BE2\u7684\u903B\u8F91\u53C2\u8003\u793A\u4F8B"))));
|
|
298
318
|
};
|
|
299
319
|
export default EventTable;
|