@zgfe/modules-event 1.0.29-zhongyuan.2 → 1.0.29-zhongyuan.21
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/components/eventFilter/index.js +3 -2
- package/es/components/eventFilter/types.d.ts +1 -0
- package/es/components/searchPanel/index.js +3 -1
- 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/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/modules/chart/index.js +2 -1
- package/es/modules/content/index.js +2 -2
- package/es/modules/content/utils.js +2 -1
- package/es/modules/home/demo/index.js +4 -1
- package/es/types.d.ts +2 -0
- package/es/utils/formData.js +29 -10
- package/package.json +3 -3
|
@@ -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',
|
|
@@ -201,7 +201,8 @@ var EventFilter = function EventFilter(props) {
|
|
|
201
201
|
propCategory: attr.propCategory,
|
|
202
202
|
category: attr.category,
|
|
203
203
|
value: _value,
|
|
204
|
-
id: attr.id
|
|
204
|
+
id: attr.id,
|
|
205
|
+
encryptionType: attr.encryptionType
|
|
205
206
|
});
|
|
206
207
|
}
|
|
207
208
|
};
|
|
@@ -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';
|
|
@@ -95,7 +96,8 @@ var SearchPanel = function SearchPanel(props) {
|
|
|
95
96
|
}, /*#__PURE__*/React.createElement(BizDatePickerV2, {
|
|
96
97
|
defaultValue: time,
|
|
97
98
|
onChange: onChangeTime,
|
|
98
|
-
selectRange:
|
|
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,
|
|
@@ -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;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
.event-mi-table {
|
|
2
|
+
margin-top: 16px;
|
|
3
|
+
}
|
|
4
|
+
.event-mi-table-loading {
|
|
5
|
+
min-height: 300px;
|
|
6
|
+
}
|
|
7
|
+
.event-mi-table-table-header {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
height: 50px;
|
|
12
|
+
margin-bottom: -1px;
|
|
13
|
+
padding: 0 12px;
|
|
14
|
+
line-height: 50px;
|
|
15
|
+
background: #fafafb;
|
|
16
|
+
border: 1px solid #e6e7ea;
|
|
17
|
+
border-radius: 8px 8px 0 0;
|
|
18
|
+
}
|
|
19
|
+
.event-mi-table-table-header > :nth-child(2) {
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
.event-mi-table-table-header > :nth-child(2) > :nth-child(1) {
|
|
23
|
+
margin-right: 16px;
|
|
24
|
+
}
|
|
25
|
+
.event-mi-table-table-header > :nth-child(2) div {
|
|
26
|
+
height: 32px;
|
|
27
|
+
padding: 0 16px;
|
|
28
|
+
line-height: 32px;
|
|
29
|
+
background: #fff;
|
|
30
|
+
border: 1px solid #f2f3f4;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
.event-mi-table-table-header > :nth-child(2) div .xiazai1 {
|
|
35
|
+
margin-right: 4px;
|
|
36
|
+
font-size: 18px !important;
|
|
37
|
+
vertical-align: -2px;
|
|
38
|
+
}
|
|
39
|
+
.event-mi-table-table-header > :nth-child(2) div:hover {
|
|
40
|
+
color: #165dff;
|
|
41
|
+
background: #e8efff;
|
|
42
|
+
border: 1px solid #165dff;
|
|
43
|
+
}
|
|
44
|
+
.event-mi-table-table-header > :nth-child(2) div:active {
|
|
45
|
+
color: #1454e5;
|
|
46
|
+
background: #e8efff;
|
|
47
|
+
border: 1px solid #1454e5;
|
|
48
|
+
}
|
|
49
|
+
.event-mi-table-table-header-left {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex: 1;
|
|
52
|
+
flex-direction: row;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
}
|
|
55
|
+
.event-mi-table-table-header-left-box {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex: 1;
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
color: #67727f;
|
|
61
|
+
}
|
|
62
|
+
.event-mi-table-table-header-left-content {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex: 1;
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
color: #67727f;
|
|
68
|
+
}
|
|
69
|
+
.event-mi-table-table-header-left-content > span {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: row;
|
|
72
|
+
max-width: 33.33%;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
}
|
|
75
|
+
.event-mi-table-table-header-left-content > span :first-child {
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
text-overflow: ellipsis;
|
|
79
|
+
}
|
|
80
|
+
.event-mi-table-table-header-left-content > span :nth-child(2) {
|
|
81
|
+
flex: 1;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
84
|
+
.event-mi-table .ant-table {
|
|
85
|
+
border-radius: 0 0 8px 8px;
|
|
86
|
+
}
|
|
87
|
+
.event-mi-table .sourcepanel-table-header {
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
border-radius: 8px 8px 0 0;
|
|
90
|
+
}
|
|
91
|
+
.event-mi-table .sourcepanel-table-header .ant-table {
|
|
92
|
+
max-height: none;
|
|
93
|
+
}
|
|
94
|
+
.event-mi-table .ant-pagination {
|
|
95
|
+
margin-top: 24px !important;
|
|
96
|
+
}
|
|
97
|
+
.event-mi-table .ant-table .ant-table-thead .ant-table-cell.ant-table-column-has-sorters .ant-table-column-sorters {
|
|
98
|
+
justify-content: flex-end !important;
|
|
99
|
+
}
|
|
100
|
+
.event-mi-table .ant-table-cell-with-append {
|
|
101
|
+
padding-left: 20px;
|
|
102
|
+
}
|
|
103
|
+
.event-mi-table .ant-table-cell-with-append .ant-table-row-expand-icon {
|
|
104
|
+
position: absolute;
|
|
105
|
+
left: 0;
|
|
106
|
+
margin-top: 0;
|
|
107
|
+
}
|
|
108
|
+
.event-mi-table .tooltip-userGroup-box {
|
|
109
|
+
display: flex;
|
|
110
|
+
max-width: 330px;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
text-overflow: ellipsis;
|
|
114
|
+
}
|
|
115
|
+
.event-mi-table .tooltip-userGroup-box div {
|
|
116
|
+
max-width: 330px;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
text-overflow: ellipsis;
|
|
120
|
+
}
|
|
121
|
+
.event-mi-table .tooltip-name-box {
|
|
122
|
+
display: flex;
|
|
123
|
+
}
|
|
124
|
+
.event-mi-table .tooltip-name-box-market {
|
|
125
|
+
width: 180px;
|
|
126
|
+
margin-right: 8px;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
text-overflow: ellipsis;
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
-webkit-line-clamp: 1;
|
|
132
|
+
-webkit-box-orient: vertical;
|
|
133
|
+
}
|
|
134
|
+
.event-mi-table .tooltip-name-box-market .shoucang {
|
|
135
|
+
color: #fd9f41;
|
|
136
|
+
font-size: 16px !important;
|
|
137
|
+
}
|
|
138
|
+
.event-mi-table .tooltip-name-box-market .notshoucang {
|
|
139
|
+
opacity: 0;
|
|
140
|
+
}
|
|
141
|
+
.event-mi-table .tooltip-name-box .fuzhi1 {
|
|
142
|
+
display: none;
|
|
143
|
+
font-size: 16px !important;
|
|
144
|
+
}
|
|
145
|
+
.event-mi-table .tooltip-name-box .fuzhi1:hover {
|
|
146
|
+
color: #165dff;
|
|
147
|
+
}
|
|
148
|
+
.event-mi-table .tooltip-name-box:hover .fuzhi1 {
|
|
149
|
+
display: block;
|
|
150
|
+
}
|
|
151
|
+
.event-mi-table-table-empty img {
|
|
152
|
+
width: 50px !important;
|
|
153
|
+
height: auto;
|
|
154
|
+
margin-top: 30px;
|
|
155
|
+
margin-bottom: 10px;
|
|
156
|
+
}
|
|
157
|
+
.event-mi-table-table-empty p {
|
|
158
|
+
color: rgba(0, 0, 0, 0.25);
|
|
159
|
+
}
|
|
160
|
+
.event-mi-table-chart-box {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
width: 100%;
|
|
164
|
+
}
|
|
165
|
+
.event-mi-table-chart-box-tooltip {
|
|
166
|
+
width: 200px;
|
|
167
|
+
margin-bottom: 24px;
|
|
168
|
+
color: #67727f;
|
|
169
|
+
font-size: 12px;
|
|
170
|
+
}
|
|
171
|
+
.event-table-sql-modal .ant-modal {
|
|
172
|
+
width: 720px !important;
|
|
173
|
+
}
|
|
174
|
+
.event-table-sql-modal .ant-modal-header {
|
|
175
|
+
position: relative;
|
|
176
|
+
z-index: 1;
|
|
177
|
+
height: 82px;
|
|
178
|
+
background: transparent;
|
|
179
|
+
}
|
|
180
|
+
.event-table-sql-modal .ant-modal-body {
|
|
181
|
+
padding: 0 24px 24px 24px;
|
|
182
|
+
}
|
|
183
|
+
.event-table-sql-modal .ant-modal-close-x {
|
|
184
|
+
margin-top: 13px;
|
|
185
|
+
margin-right: 8px;
|
|
186
|
+
}
|
|
187
|
+
.event-table-sql-modal img {
|
|
188
|
+
width: 100%;
|
|
189
|
+
}
|
|
190
|
+
.event-table-sql-modal .qingchu {
|
|
191
|
+
font-weight: 500;
|
|
192
|
+
font-size: 22px !important;
|
|
193
|
+
}
|
|
194
|
+
.event-table-sql-modal .modal-bg {
|
|
195
|
+
position: absolute;
|
|
196
|
+
top: 0;
|
|
197
|
+
left: 0;
|
|
198
|
+
width: 100%;
|
|
199
|
+
height: auto;
|
|
200
|
+
}
|
|
201
|
+
.event-table-sql-modal pre {
|
|
202
|
+
margin-bottom: 0;
|
|
203
|
+
}
|
|
204
|
+
.event-table-sql-modal .hljs {
|
|
205
|
+
height: 400px;
|
|
206
|
+
padding: 16px;
|
|
207
|
+
padding-bottom: 0;
|
|
208
|
+
background: #fafafb;
|
|
209
|
+
border-radius: 8px;
|
|
210
|
+
}
|
|
211
|
+
.event-table-sql-modal .copy-box {
|
|
212
|
+
position: absolute;
|
|
213
|
+
top: 98px;
|
|
214
|
+
right: 40px;
|
|
215
|
+
padding: 0 8px;
|
|
216
|
+
background: #f2f3f4;
|
|
217
|
+
border-radius: 4px;
|
|
218
|
+
}
|
|
219
|
+
.event-table-sql-modal .copy-box .fuzhi1 {
|
|
220
|
+
margin-right: 8px;
|
|
221
|
+
}
|
|
222
|
+
.event-table-sql-modal .copy-box:hover {
|
|
223
|
+
color: #165dff;
|
|
224
|
+
background: #e8efff;
|
|
225
|
+
}
|
|
226
|
+
.event-table-sql-modal .copy-box:active {
|
|
227
|
+
color: #1454e5;
|
|
228
|
+
background: #e8efff;
|
|
229
|
+
}
|
|
230
|
+
.ant-modal-content {
|
|
231
|
+
position: relative;
|
|
232
|
+
}
|
|
233
|
+
.ant-modal-content .sql-tip {
|
|
234
|
+
position: absolute;
|
|
235
|
+
bottom: 30px;
|
|
236
|
+
}
|
|
@@ -1,241 +1,249 @@
|
|
|
1
|
-
.event-mi-table {
|
|
2
|
-
margin-top: 16px;
|
|
3
|
-
&-loading {
|
|
4
|
-
min-height: 300px;
|
|
5
|
-
}
|
|
6
|
-
&-table-header {
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: space-between;
|
|
10
|
-
height: 50px;
|
|
11
|
-
margin-bottom: -1px;
|
|
12
|
-
padding: 0 12px;
|
|
13
|
-
line-height: 50px;
|
|
14
|
-
background: #fafafb;
|
|
15
|
-
border: 1px solid #e6e7ea;
|
|
16
|
-
border-radius: 8px 8px 0 0;
|
|
17
|
-
> :nth-child(2) {
|
|
18
|
-
display: flex;
|
|
19
|
-
> :nth-child(1) {
|
|
20
|
-
margin-right: 16px;
|
|
21
|
-
}
|
|
22
|
-
div {
|
|
23
|
-
height: 32px;
|
|
24
|
-
padding: 0 16px;
|
|
25
|
-
line-height: 32px;
|
|
26
|
-
background: #fff;
|
|
27
|
-
border: 1px solid #f2f3f4;
|
|
28
|
-
border-radius: 4px;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
.xiazai1 {
|
|
31
|
-
margin-right: 4px;
|
|
32
|
-
font-size: 18px !important;
|
|
33
|
-
vertical-align: -2px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
div:hover {
|
|
37
|
-
color: #165dff;
|
|
38
|
-
background: #e8efff;
|
|
39
|
-
border: 1px solid #165dff;
|
|
40
|
-
}
|
|
41
|
-
div:active {
|
|
42
|
-
color: #1454e5;
|
|
43
|
-
background: #e8efff;
|
|
44
|
-
border: 1px solid #1454e5;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
&-left {
|
|
48
|
-
display: flex;
|
|
49
|
-
flex: 1;
|
|
50
|
-
flex-direction: row;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
&-box {
|
|
53
|
-
display: flex;
|
|
54
|
-
flex: 1;
|
|
55
|
-
flex-direction: row;
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
color: #67727f;
|
|
58
|
-
}
|
|
59
|
-
&-content {
|
|
60
|
-
display: flex;
|
|
61
|
-
flex: 1;
|
|
62
|
-
flex-direction: row;
|
|
63
|
-
overflow: hidden;
|
|
64
|
-
color: #67727f;
|
|
65
|
-
> span {
|
|
66
|
-
display: flex;
|
|
67
|
-
flex-direction: row;
|
|
68
|
-
max-width: 33.33%;
|
|
69
|
-
overflow: hidden;
|
|
70
|
-
:first-child {
|
|
71
|
-
overflow: hidden;
|
|
72
|
-
white-space: nowrap;
|
|
73
|
-
text-overflow: ellipsis;
|
|
74
|
-
}
|
|
75
|
-
:nth-child(2) {
|
|
76
|
-
flex: 1;
|
|
77
|
-
white-space: nowrap;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
.ant-table {
|
|
84
|
-
border-radius: 0 0 8px 8px;
|
|
85
|
-
}
|
|
86
|
-
.sourcepanel-table-header {
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
border-radius: 8px 8px 0 0;
|
|
89
|
-
.ant-table {
|
|
90
|
-
max-height: none;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
.ant-pagination {
|
|
94
|
-
margin-top: 24px !important;
|
|
95
|
-
}
|
|
96
|
-
.ant-table
|
|
97
|
-
.ant-table-thead
|
|
98
|
-
.ant-table-cell.ant-table-column-has-sorters
|
|
99
|
-
.ant-table-column-sorters {
|
|
100
|
-
justify-content: flex-end !important;
|
|
101
|
-
}
|
|
102
|
-
.ant-table-cell-with-append {
|
|
103
|
-
padding-left: 20px;
|
|
104
|
-
.ant-table-row-expand-icon {
|
|
105
|
-
position: absolute;
|
|
106
|
-
left: 0;
|
|
107
|
-
margin-top: 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
.tooltip-userGroup-box {
|
|
111
|
-
display: flex;
|
|
112
|
-
max-width: 330px;
|
|
113
|
-
overflow: hidden;
|
|
114
|
-
white-space: nowrap;
|
|
115
|
-
text-overflow: ellipsis;
|
|
116
|
-
div {
|
|
117
|
-
max-width: 330px;
|
|
118
|
-
overflow: hidden;
|
|
119
|
-
white-space: nowrap;
|
|
120
|
-
text-overflow: ellipsis;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
.tooltip-name-box {
|
|
124
|
-
display: flex;
|
|
125
|
-
&-market {
|
|
126
|
-
// max-width: calc(100% - 20px);
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
-webkit-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
margin-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
margin-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
font-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
padding
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}
|
|
1
|
+
.event-mi-table {
|
|
2
|
+
margin-top: 16px;
|
|
3
|
+
&-loading {
|
|
4
|
+
min-height: 300px;
|
|
5
|
+
}
|
|
6
|
+
&-table-header {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
height: 50px;
|
|
11
|
+
margin-bottom: -1px;
|
|
12
|
+
padding: 0 12px;
|
|
13
|
+
line-height: 50px;
|
|
14
|
+
background: #fafafb;
|
|
15
|
+
border: 1px solid #e6e7ea;
|
|
16
|
+
border-radius: 8px 8px 0 0;
|
|
17
|
+
> :nth-child(2) {
|
|
18
|
+
display: flex;
|
|
19
|
+
> :nth-child(1) {
|
|
20
|
+
margin-right: 16px;
|
|
21
|
+
}
|
|
22
|
+
div {
|
|
23
|
+
height: 32px;
|
|
24
|
+
padding: 0 16px;
|
|
25
|
+
line-height: 32px;
|
|
26
|
+
background: #fff;
|
|
27
|
+
border: 1px solid #f2f3f4;
|
|
28
|
+
border-radius: 4px;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
.xiazai1 {
|
|
31
|
+
margin-right: 4px;
|
|
32
|
+
font-size: 18px !important;
|
|
33
|
+
vertical-align: -2px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
div:hover {
|
|
37
|
+
color: #165dff;
|
|
38
|
+
background: #e8efff;
|
|
39
|
+
border: 1px solid #165dff;
|
|
40
|
+
}
|
|
41
|
+
div:active {
|
|
42
|
+
color: #1454e5;
|
|
43
|
+
background: #e8efff;
|
|
44
|
+
border: 1px solid #1454e5;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
&-left {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex: 1;
|
|
50
|
+
flex-direction: row;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
&-box {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex: 1;
|
|
55
|
+
flex-direction: row;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
color: #67727f;
|
|
58
|
+
}
|
|
59
|
+
&-content {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex: 1;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
color: #67727f;
|
|
65
|
+
> span {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: row;
|
|
68
|
+
max-width: 33.33%;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
:first-child {
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
}
|
|
75
|
+
:nth-child(2) {
|
|
76
|
+
flex: 1;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.ant-table {
|
|
84
|
+
border-radius: 0 0 8px 8px;
|
|
85
|
+
}
|
|
86
|
+
.sourcepanel-table-header {
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
border-radius: 8px 8px 0 0;
|
|
89
|
+
.ant-table {
|
|
90
|
+
max-height: none;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.ant-pagination {
|
|
94
|
+
margin-top: 24px !important;
|
|
95
|
+
}
|
|
96
|
+
.ant-table
|
|
97
|
+
.ant-table-thead
|
|
98
|
+
.ant-table-cell.ant-table-column-has-sorters
|
|
99
|
+
.ant-table-column-sorters {
|
|
100
|
+
justify-content: flex-end !important;
|
|
101
|
+
}
|
|
102
|
+
.ant-table-cell-with-append {
|
|
103
|
+
padding-left: 20px;
|
|
104
|
+
.ant-table-row-expand-icon {
|
|
105
|
+
position: absolute;
|
|
106
|
+
left: 0;
|
|
107
|
+
margin-top: 0;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
.tooltip-userGroup-box {
|
|
111
|
+
display: flex;
|
|
112
|
+
max-width: 330px;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
white-space: nowrap;
|
|
115
|
+
text-overflow: ellipsis;
|
|
116
|
+
div {
|
|
117
|
+
max-width: 330px;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
text-overflow: ellipsis;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
.tooltip-name-box {
|
|
124
|
+
display: flex;
|
|
125
|
+
&-market {
|
|
126
|
+
// max-width: calc(100% - 20px);
|
|
127
|
+
width: 180px;
|
|
128
|
+
margin-right: 8px;
|
|
129
|
+
overflow: hidden;
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
text-overflow: ellipsis;
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
-webkit-line-clamp: 1;
|
|
134
|
+
-webkit-box-orient: vertical;
|
|
135
|
+
.shoucang {
|
|
136
|
+
color: #fd9f41;
|
|
137
|
+
font-size: 16px !important;
|
|
138
|
+
}
|
|
139
|
+
.notshoucang {
|
|
140
|
+
opacity: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.fuzhi1 {
|
|
145
|
+
display: none;
|
|
146
|
+
font-size: 16px !important;
|
|
147
|
+
}
|
|
148
|
+
.fuzhi1:hover {
|
|
149
|
+
color: #165dff;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
.tooltip-name-box:hover {
|
|
153
|
+
.fuzhi1 {
|
|
154
|
+
display: block;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&-table-empty {
|
|
159
|
+
img {
|
|
160
|
+
width: 50px !important;
|
|
161
|
+
height: auto;
|
|
162
|
+
margin-top: 30px;
|
|
163
|
+
margin-bottom: 10px;
|
|
164
|
+
}
|
|
165
|
+
p {
|
|
166
|
+
color: rgba(0, 0, 0, 0.25);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&-chart-box {
|
|
171
|
+
display: flex;
|
|
172
|
+
flex-direction: column;
|
|
173
|
+
width: 100%;
|
|
174
|
+
&-tooltip {
|
|
175
|
+
width: 200px;
|
|
176
|
+
margin-bottom: 24px;
|
|
177
|
+
color: #67727f;
|
|
178
|
+
font-size: 12px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
.event-table-sql-modal {
|
|
183
|
+
.ant-modal {
|
|
184
|
+
width: 720px !important;
|
|
185
|
+
}
|
|
186
|
+
.ant-modal-header {
|
|
187
|
+
position: relative;
|
|
188
|
+
z-index: 1;
|
|
189
|
+
height: 82px;
|
|
190
|
+
background: transparent;
|
|
191
|
+
}
|
|
192
|
+
.ant-modal-body {
|
|
193
|
+
padding: 0 24px 24px 24px;
|
|
194
|
+
}
|
|
195
|
+
.ant-modal-close-x {
|
|
196
|
+
margin-top: 13px;
|
|
197
|
+
margin-right: 8px;
|
|
198
|
+
}
|
|
199
|
+
img {
|
|
200
|
+
width: 100%;
|
|
201
|
+
}
|
|
202
|
+
.qingchu {
|
|
203
|
+
font-weight: 500;
|
|
204
|
+
font-size: 22px !important;
|
|
205
|
+
}
|
|
206
|
+
.modal-bg {
|
|
207
|
+
position: absolute;
|
|
208
|
+
top: 0;
|
|
209
|
+
left: 0;
|
|
210
|
+
width: 100%;
|
|
211
|
+
height: auto;
|
|
212
|
+
}
|
|
213
|
+
pre {
|
|
214
|
+
margin-bottom: 0;
|
|
215
|
+
}
|
|
216
|
+
.hljs {
|
|
217
|
+
height: 400px;
|
|
218
|
+
padding: 16px;
|
|
219
|
+
padding-bottom: 0;
|
|
220
|
+
background: #fafafb;
|
|
221
|
+
border-radius: 8px;
|
|
222
|
+
}
|
|
223
|
+
.copy-box {
|
|
224
|
+
position: absolute;
|
|
225
|
+
top: 98px;
|
|
226
|
+
right: 40px;
|
|
227
|
+
padding: 0 8px;
|
|
228
|
+
background: #f2f3f4;
|
|
229
|
+
border-radius: 4px;
|
|
230
|
+
.fuzhi1 {
|
|
231
|
+
margin-right: 8px;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
.copy-box:hover {
|
|
235
|
+
color: #165dff;
|
|
236
|
+
background: #e8efff;
|
|
237
|
+
}
|
|
238
|
+
.copy-box:active {
|
|
239
|
+
color: #1454e5;
|
|
240
|
+
background: #e8efff;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
.ant-modal-content {
|
|
244
|
+
position: relative;
|
|
245
|
+
.sql-tip {
|
|
246
|
+
position: absolute;
|
|
247
|
+
bottom: 30px;
|
|
248
|
+
}
|
|
249
|
+
}
|
package/es/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@
|
|
|
2
2
|
import EventChart from './modules/chart';
|
|
3
3
|
import ModuleEvent from './modules/home';
|
|
4
4
|
import { getNumberPanelData } from './modules/content/utils';
|
|
5
|
-
|
|
5
|
+
import EventFilter from './components/eventFilter';
|
|
6
|
+
export { ModuleEvent, EventChart, getNumberPanelData, EventFilter };
|
package/es/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import EventChart from './modules/chart';
|
|
2
2
|
import ModuleEvent from './modules/home';
|
|
3
3
|
import { getNumberPanelData } from './modules/content/utils';
|
|
4
|
-
|
|
4
|
+
import EventFilter from './components/eventFilter';
|
|
5
|
+
export { ModuleEvent, EventChart, getNumberPanelData, EventFilter };
|
|
@@ -181,8 +181,9 @@ var EventChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
181
181
|
title: '当前图表数据实时更新,约每分钟更新一次'
|
|
182
182
|
}, /*#__PURE__*/React.createElement("div", null, "\u6570\u636E\u66F4\u65B0\u65F6\u95F4\uFF1A", moment().format('YYYY-MM-DD HH:mm')));
|
|
183
183
|
};
|
|
184
|
-
var tooltipFormatter = function tooltipFormatter(
|
|
184
|
+
var tooltipFormatter = function tooltipFormatter(data) {
|
|
185
185
|
var xLabel = '';
|
|
186
|
+
var params = data[0] ? data : [data];
|
|
186
187
|
var array = params[0].name.split('|');
|
|
187
188
|
if (array.length > 1) {
|
|
188
189
|
xLabel = moment(array[0]).format('MM-DD') + '~' + moment(array[1]).format('MM-DD');
|
|
@@ -165,9 +165,9 @@ var EventContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
165
165
|
if (['bar', 'pie', 'map'].indexOf(searchData.chartType) !== -1) {
|
|
166
166
|
_data = getSortData(_data);
|
|
167
167
|
} else {
|
|
168
|
-
var
|
|
168
|
+
var _data2, _data2$series$;
|
|
169
169
|
_sortData = sortOriginalData(dataTemp, {
|
|
170
|
-
columnKey: "field".concat(((_data$series$ =
|
|
170
|
+
columnKey: "field".concat(((_data2 = _data) === null || _data2 === void 0 ? void 0 : (_data2$series$ = _data2.series[0]) === null || _data2$series$ === void 0 ? void 0 : _data2$series$.values.length) - 1),
|
|
171
171
|
order: 'descend'
|
|
172
172
|
});
|
|
173
173
|
}
|
|
@@ -8,8 +8,9 @@ import { ajax } from '@zgfe/business-lib';
|
|
|
8
8
|
import { Apis } from '../../constants';
|
|
9
9
|
import _ from 'lodash';
|
|
10
10
|
export var getMapChartData = function getMapChartData(data) {
|
|
11
|
+
var _data$series;
|
|
11
12
|
var _data = _.cloneDeep(data);
|
|
12
|
-
_data.series.map(function (item) {
|
|
13
|
+
_data === null || _data === void 0 ? void 0 : (_data$series = _data.series) === null || _data$series === void 0 ? void 0 : _data$series.map(function (item) {
|
|
13
14
|
if (item.names.length > 1) {
|
|
14
15
|
if (item.names[1] === '新疆维吾尔自治区') {
|
|
15
16
|
item.names = [item.names[0], '新疆'];
|
|
@@ -11,7 +11,7 @@ import './styles/index.less';
|
|
|
11
11
|
import { requestConfig } from '../../../utils/ajaxConfig';
|
|
12
12
|
import { Button } from 'antd';
|
|
13
13
|
export default (function () {
|
|
14
|
-
var _useState = useState(
|
|
14
|
+
var _useState = useState(true),
|
|
15
15
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16
16
|
isDetail = _useState2[0],
|
|
17
17
|
setIsDetail = _useState2[1];
|
|
@@ -24,6 +24,9 @@ export default (function () {
|
|
|
24
24
|
setSearchParams = _useState6[1];
|
|
25
25
|
useEffect(function () {
|
|
26
26
|
setGlobalConfig(requestConfig);
|
|
27
|
+
setTimeout(function () {
|
|
28
|
+
setIsDetail(false);
|
|
29
|
+
}, 3000);
|
|
27
30
|
}, []);
|
|
28
31
|
var afterEditTarget = function afterEditTarget(type, data) {
|
|
29
32
|
console.log("".concat(type, "\u56DE\u8C03"), data);
|
package/es/types.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface bizAttributeSelectorValueProp {
|
|
|
7
7
|
value?: number | string;
|
|
8
8
|
id?: number;
|
|
9
9
|
key?: number | string;
|
|
10
|
+
encryptionType?: number;
|
|
10
11
|
}
|
|
11
12
|
export interface AnalysisSubject {
|
|
12
13
|
subjectId?: number;
|
|
@@ -76,6 +77,7 @@ export interface SeriesProps {
|
|
|
76
77
|
index?: string;
|
|
77
78
|
duration?: TableChildrenProps[];
|
|
78
79
|
diyTarget?: boolean;
|
|
80
|
+
attrSum?: number;
|
|
79
81
|
}
|
|
80
82
|
export interface TableChildrenProps {
|
|
81
83
|
name: string;
|
package/es/utils/formData.js
CHANGED
|
@@ -82,7 +82,7 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
82
82
|
var _getValue;
|
|
83
83
|
data.push({
|
|
84
84
|
title: (_getValue = getValue(searchData.dimension, eventGroupList, eventEnvList, userPropList)) === null || _getValue === void 0 ? void 0 : _getValue.label,
|
|
85
|
-
width:
|
|
85
|
+
width: 180,
|
|
86
86
|
dataIndex: 'dimension',
|
|
87
87
|
key: 'dimension',
|
|
88
88
|
ellipsis: true,
|
|
@@ -114,7 +114,7 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
114
114
|
paddingLeft: '16px'
|
|
115
115
|
}
|
|
116
116
|
}, "\u4E8B\u4EF6"),
|
|
117
|
-
width:
|
|
117
|
+
width: 180,
|
|
118
118
|
dataIndex: 'eventName',
|
|
119
119
|
key: 'eventName',
|
|
120
120
|
ellipsis: true,
|
|
@@ -146,6 +146,23 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
+
data.push({
|
|
150
|
+
title: '合计',
|
|
151
|
+
width: 50,
|
|
152
|
+
dataIndex: 'attrSum',
|
|
153
|
+
ellipsis: true,
|
|
154
|
+
key: 'attrSum',
|
|
155
|
+
align: 'center',
|
|
156
|
+
className: "".concat(classPrefix, "-table-td"),
|
|
157
|
+
fixed: 'left',
|
|
158
|
+
render: function render(text) {
|
|
159
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
160
|
+
className: "tooltip-userGroup-box"
|
|
161
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
162
|
+
title: text
|
|
163
|
+
}, /*#__PURE__*/React.createElement("div", null, text)));
|
|
164
|
+
}
|
|
165
|
+
});
|
|
149
166
|
var _loop = function _loop(i) {
|
|
150
167
|
var value = columnData[i];
|
|
151
168
|
if (/^\d{4}-\d{2}-\d{2}$/.test(value)) {
|
|
@@ -192,7 +209,7 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
|
|
|
192
209
|
export function getChartDataEventAliasName(dataSource, eventGroupList) {
|
|
193
210
|
var data = _.cloneDeep(dataSource);
|
|
194
211
|
var series = [];
|
|
195
|
-
data.series.map(function (item) {
|
|
212
|
+
data === null || data === void 0 ? void 0 : data.series.map(function (item) {
|
|
196
213
|
item.originalNames = item.names;
|
|
197
214
|
item.names = item.names.length > 1 ? [item.names[0], getEventAliasName(item.names[1], eventGroupList)] : [getEventAliasName(item.names[0], eventGroupList)];
|
|
198
215
|
series.push(item);
|
|
@@ -223,7 +240,7 @@ export function getEventAliasId(name, eventGroupList) {
|
|
|
223
240
|
return eventId;
|
|
224
241
|
}
|
|
225
242
|
export function getSortData(data) {
|
|
226
|
-
var series = data.series;
|
|
243
|
+
var series = data === null || data === void 0 ? void 0 : data.series;
|
|
227
244
|
var sort = function sort(obj1, obj2) {
|
|
228
245
|
var val1 = obj1.values[0];
|
|
229
246
|
var val2 = obj2.values[0];
|
|
@@ -239,20 +256,20 @@ export function getSortData(data) {
|
|
|
239
256
|
return data;
|
|
240
257
|
}
|
|
241
258
|
export function getUserGroupsCompareData(data) {
|
|
242
|
-
if (data.series.length <= 0) {
|
|
259
|
+
if ((data === null || data === void 0 ? void 0 : data.series.length) <= 0) {
|
|
243
260
|
return data;
|
|
244
261
|
} else {
|
|
245
262
|
var _data = _.cloneDeep(data);
|
|
246
263
|
var _series = [];
|
|
247
|
-
_data.series.map(function (item, index) {
|
|
264
|
+
_data === null || _data === void 0 ? void 0 : _data.series.map(function (item, index) {
|
|
248
265
|
_series.push(item);
|
|
249
|
-
_data.series.map(function (_item, _index) {
|
|
266
|
+
_data === null || _data === void 0 ? void 0 : _data.series.map(function (_item, _index) {
|
|
250
267
|
if (item.names[1] === _item.names[1] && index !== _index) {
|
|
251
268
|
_series.push(_item);
|
|
252
|
-
delete _data.series[_index];
|
|
269
|
+
_data === null || _data === void 0 ? true : delete _data.series[_index];
|
|
253
270
|
}
|
|
254
271
|
});
|
|
255
|
-
delete _data.series[index];
|
|
272
|
+
_data === null || _data === void 0 ? true : delete _data.series[index];
|
|
256
273
|
});
|
|
257
274
|
_data.series = _series;
|
|
258
275
|
return _data;
|
|
@@ -341,10 +358,12 @@ export function formTableData(originalData, userGroups, attrNum, showList) {
|
|
|
341
358
|
name: name,
|
|
342
359
|
userGroup: userGroup,
|
|
343
360
|
nameGroup: nameGroup,
|
|
344
|
-
color: color
|
|
361
|
+
color: color,
|
|
362
|
+
attrSum: item.attrSum
|
|
345
363
|
};
|
|
346
364
|
if (attrNum) {
|
|
347
365
|
data["dimension"] = name;
|
|
366
|
+
data['originalName'] = originalName;
|
|
348
367
|
} else {
|
|
349
368
|
data["eventName"] = name;
|
|
350
369
|
data["originalName"] = originalName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-event",
|
|
3
|
-
"version": "1.0.29-zhongyuan.
|
|
3
|
+
"version": "1.0.29-zhongyuan.21",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"private": false,
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/lodash": "^4.14.191",
|
|
42
42
|
"@umijs/fabric": "^2.8.1",
|
|
43
43
|
"@umijs/test": "^3.0.5",
|
|
44
|
-
"@zgfe/business-lib": "1.2.
|
|
44
|
+
"@zgfe/business-lib": "1.2.71-hxd.9",
|
|
45
45
|
"antd": "^4.22.6",
|
|
46
46
|
"dumi": "^1.1.0",
|
|
47
47
|
"echarts": "^5.3.2",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react": "^16.12.0 || ^17.0.0",
|
|
55
55
|
"yorkie": "^2.0.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "b81ed8cc4605d6b49bcd961a85f714fb9b460392",
|
|
58
58
|
"gitHooks": {
|
|
59
59
|
"pre-commit": "lint-staged"
|
|
60
60
|
}
|