@zgfe/modules-event 1.0.29-zhongyuan.15 → 1.0.29-zhongyuan.17
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.
|
@@ -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,
|
|
@@ -172,7 +174,7 @@ var EventTable = function EventTable(props) {
|
|
|
172
174
|
data: _objectSpread({
|
|
173
175
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
174
176
|
platform: (searchData === null || searchData === void 0 ? void 0 : searchData.platform) || 0,
|
|
175
|
-
service:
|
|
177
|
+
service: searchData.id ? 'event_sql' : 'event/overview_sql'
|
|
176
178
|
}, searchData)
|
|
177
179
|
}).then(function (res) {
|
|
178
180
|
if (res === null || res === void 0 ? void 0 : res.data) {
|
|
@@ -298,6 +300,19 @@ var EventTable = function EventTable(props) {
|
|
|
298
300
|
className: "copy-box"
|
|
299
301
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
300
302
|
type: "fuzhi1"
|
|
301
|
-
}), "\u590D\u5236\u4EE3\u7801"))
|
|
303
|
+
}), "\u590D\u5236\u4EE3\u7801")), /*#__PURE__*/React.createElement("div", {
|
|
304
|
+
style: {
|
|
305
|
+
margin: '10px 0px 0px'
|
|
306
|
+
},
|
|
307
|
+
className: "sql-tip"
|
|
308
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
309
|
+
type: "warning"
|
|
310
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
311
|
+
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"
|
|
312
|
+
}, /*#__PURE__*/React.createElement(ExclamationCircleOutlined, {
|
|
313
|
+
style: {
|
|
314
|
+
margin: '0px 8px 0px 0px'
|
|
315
|
+
}
|
|
316
|
+
})), "SQL \u4EC5\u4F5C\u4E3A\u7B80\u5355\u4E8B\u4EF6\u67E5\u8BE2\u7684\u903B\u8F91\u53C2\u8003\u793A\u4F8B"))));
|
|
302
317
|
};
|
|
303
318
|
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
|
+
}
|
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.17",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"private": false,
|
|
@@ -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": "504096fb9f0ed359d11033efccc99e30f058a4e4",
|
|
58
58
|
"gitHooks": {
|
|
59
59
|
"pre-commit": "lint-staged"
|
|
60
60
|
}
|