@zgfe/modules-event 1.0.6 → 1.0.29-zhongyuan-event.1
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 +111 -55
- package/es/components/eventFilter/setCascade.d.ts +3 -0
- package/es/components/eventFilter/setCascade.js +286 -0
- package/es/components/eventFilter/styles/index.less +148 -36
- package/es/components/eventFilter/types.d.ts +1 -0
- package/es/components/renderContent/index.js +16 -27
- package/es/components/renderContent/styles/index.less +19 -19
- package/es/components/renderContent/types.d.ts +0 -1
- package/es/components/searchPanel/index.js +35 -17
- package/es/components/searchPanel/styles/index.less +22 -18
- package/es/components/searchPanel/types.d.ts +2 -2
- package/es/components/table/index.js +106 -35
- package/es/components/table/styles/index.css +236 -0
- package/es/components/table/styles/index.less +249 -193
- package/es/components/table/types.d.ts +0 -1
- package/es/components/topBar/index.d.ts +6 -1
- package/es/components/topBar/index.js +62 -45
- package/es/components/topBar/styles/index.less +58 -63
- package/es/components/topBar/types.d.ts +0 -1
- package/es/constants/apis.d.ts +3 -1
- package/es/constants/apis.js +4 -2
- package/es/constants/fields.d.ts +0 -14
- package/es/constants/fields.js +1 -45
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/modules/chart/demo/index.js +5 -5
- package/es/modules/chart/demo/panel.js +7 -2
- package/es/modules/chart/index.js +120 -45
- package/es/modules/chart/types.d.ts +3 -0
- package/es/modules/content/index.d.ts +1 -1
- package/es/modules/content/index.js +116 -75
- package/es/modules/content/styles/index.less +19 -7
- package/es/modules/content/utils.d.ts +3 -2
- package/es/modules/content/utils.js +63 -34
- package/es/modules/home/demo/create.js +8 -8
- package/es/modules/home/demo/edit.js +14 -15
- package/es/modules/home/demo/index.js +13 -10
- package/es/modules/home/demo/scene.js +8 -8
- package/es/modules/home/demo/styles/index.less +33 -33
- package/es/modules/home/index.js +59 -41
- package/es/modules/home/styles/index.less +49 -49
- package/es/modules/topPanel/index.js +51 -23
- package/es/modules/topPanel/styles/index.less +50 -49
- package/es/style/image/ring.svg +8 -8
- package/es/style/index.less +62 -62
- package/es/types.d.ts +8 -0
- package/es/utils/formData.d.ts +2 -1
- package/es/utils/formData.js +67 -18
- package/package.json +24 -20
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
8
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
10
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
11
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
12
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
17
|
import { ajax, BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
14
18
|
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
15
19
|
import Highlight from 'react-highlight';
|
|
@@ -17,13 +21,15 @@ import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
|
17
21
|
import 'highlight.js/styles/vs.css';
|
|
18
22
|
import base64 from '../../utils/base64';
|
|
19
23
|
import { Apis } from '../../constants';
|
|
20
|
-
import { Modal, message, Table, ConfigProvider, Empty } from 'antd';
|
|
24
|
+
import { Modal, message, Table, ConfigProvider, Empty, Tooltip, Typography } from 'antd';
|
|
25
|
+
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
|
21
26
|
import { formTableData, getColumns } from '../../utils/formData';
|
|
22
27
|
import './styles/index.less';
|
|
23
28
|
import { getValue } from '../../modules/content/utils';
|
|
24
29
|
import { EventContext } from '../../types';
|
|
25
30
|
import { getEventAliasName } from '../../utils/formData';
|
|
26
31
|
var classPrefix = 'event-mi-table';
|
|
32
|
+
var Text = Typography.Text;
|
|
27
33
|
var EventTable = function EventTable(props) {
|
|
28
34
|
var dataSource = props.dataSource,
|
|
29
35
|
searchData = props.searchData,
|
|
@@ -34,17 +40,19 @@ var EventTable = function EventTable(props) {
|
|
|
34
40
|
tableData = _useState2[0],
|
|
35
41
|
setTableData = _useState2[1];
|
|
36
42
|
var _useContext = useContext(BizGlobalDataContext),
|
|
37
|
-
currentApp = _useContext.currentApp,
|
|
38
43
|
_useContext$eventGrou = _useContext.eventGroupList,
|
|
39
44
|
eventGroupList = _useContext$eventGrou === void 0 ? [] : _useContext$eventGrou,
|
|
40
45
|
eventEnvList = _useContext.eventEnvList,
|
|
41
46
|
userPropList = _useContext.userPropList,
|
|
42
|
-
|
|
47
|
+
userGroupList = _useContext.userGroupList,
|
|
48
|
+
authority = _useContext.authority,
|
|
49
|
+
showProdDownload = _useContext.showProdDownload;
|
|
43
50
|
var _useContext2 = useContext(EventContext),
|
|
44
51
|
onUserDrill = _useContext2.onUserDrill,
|
|
45
52
|
_useContext2$defaultS = _useContext2.defaultSearch,
|
|
46
53
|
defaultSearch = _useContext2$defaultS === void 0 ? {} : _useContext2$defaultS,
|
|
47
|
-
panelName = _useContext2.panelName
|
|
54
|
+
panelName = _useContext2.panelName,
|
|
55
|
+
currentApp = _useContext2.currentApp;
|
|
48
56
|
var _useState3 = useState(false),
|
|
49
57
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
50
58
|
sqlModal = _useState4[0],
|
|
@@ -58,18 +66,47 @@ var EventTable = function EventTable(props) {
|
|
|
58
66
|
current = _useState8[0],
|
|
59
67
|
setCurrent = _useState8[1];
|
|
60
68
|
var _useState9 = useState(10),
|
|
61
|
-
|
|
62
|
-
pageSize =
|
|
63
|
-
setPageSize =
|
|
64
|
-
var
|
|
69
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
70
|
+
pageSize = _useState0[0],
|
|
71
|
+
setPageSize = _useState0[1];
|
|
72
|
+
var _useState1 = useState(0),
|
|
73
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
74
|
+
total = _useState10[0],
|
|
75
|
+
setTotal = _useState10[1];
|
|
76
|
+
var _useState11 = useState(),
|
|
65
77
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
66
|
-
|
|
67
|
-
|
|
78
|
+
pvTitle = _useState12[0],
|
|
79
|
+
setPvTitle = _useState12[1];
|
|
68
80
|
useEffect(function () {
|
|
69
81
|
var gLen = (searchData === null || searchData === void 0 ? void 0 : searchData.dimension) ? 1 : 0;
|
|
70
82
|
var _data = formTableData(dataSource, searchData.userGroup || [0], gLen);
|
|
71
83
|
setTotal(_data.length);
|
|
72
|
-
|
|
84
|
+
var dataAll = [];
|
|
85
|
+
if (dataSource.userGroupEventTimeSum) {
|
|
86
|
+
dataSource.userGroupEventTimeSum.map(function (item) {
|
|
87
|
+
var data = {
|
|
88
|
+
eventName: '总计',
|
|
89
|
+
dimension: '总计',
|
|
90
|
+
isAdd: true,
|
|
91
|
+
id: Math.random(),
|
|
92
|
+
name: '总计',
|
|
93
|
+
nameGroup: '总计',
|
|
94
|
+
originalName: '总计',
|
|
95
|
+
userGroup: Object.keys(item)[0]
|
|
96
|
+
};
|
|
97
|
+
var sum = 0;
|
|
98
|
+
Object.values(item)[0].forEach(function (item, index) {
|
|
99
|
+
data["field".concat(index)] = item;
|
|
100
|
+
sum += item;
|
|
101
|
+
});
|
|
102
|
+
data.attrSum = sum;
|
|
103
|
+
dataAll.push(data);
|
|
104
|
+
});
|
|
105
|
+
setPvTitle(dataSource.eventPvTitle.split(';').map(function (item) {
|
|
106
|
+
return item.split(' ');
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
setTableData([].concat(dataAll, _toConsumableArray(_data)));
|
|
73
110
|
}, []);
|
|
74
111
|
var columns = useMemo(function () {
|
|
75
112
|
var _searchData$userGroup = searchData.userGroup,
|
|
@@ -78,11 +115,19 @@ var EventTable = function EventTable(props) {
|
|
|
78
115
|
props.changeShowByName(nameGroup);
|
|
79
116
|
};
|
|
80
117
|
var onClickToDetail = function onClickToDetail(item, time, count) {
|
|
81
|
-
var _searchData$filters;
|
|
118
|
+
var _searchData$dimension, _searchData$filters;
|
|
119
|
+
var userGroupData = userGroup[0] == null ? [] : [userGroup[0]];
|
|
120
|
+
if ((userGroup === null || userGroup === void 0 ? void 0 : userGroup.length) > 1) {
|
|
121
|
+
userGroupList && userGroupList.forEach(function (user) {
|
|
122
|
+
if (user.name === item.userGroup) {
|
|
123
|
+
userGroupData = [user.id];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
82
127
|
var _time = time.split('|');
|
|
83
128
|
var groupValue = '';
|
|
84
129
|
if (searchData.dimension && item.dimension) {
|
|
85
|
-
groupValue = item.
|
|
130
|
+
groupValue = item.originalName;
|
|
86
131
|
} else {
|
|
87
132
|
eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (group) {
|
|
88
133
|
group.eventList.forEach(function (event) {
|
|
@@ -99,8 +144,9 @@ var EventTable = function EventTable(props) {
|
|
|
99
144
|
module: 'event',
|
|
100
145
|
params: {
|
|
101
146
|
groupValue: groupValue,
|
|
147
|
+
groupValueEncry: (((_searchData$dimension = searchData.dimension) === null || _searchData$dimension === void 0 ? void 0 : _searchData$dimension.encryptionType) || 0) > 0,
|
|
102
148
|
id: searchData.id,
|
|
103
|
-
userGroup:
|
|
149
|
+
userGroup: userGroupData,
|
|
104
150
|
chartType: searchData.chartType,
|
|
105
151
|
conditions: (_searchData$filters = searchData.filters) === null || _searchData$filters === void 0 ? void 0 : _searchData$filters.conditions,
|
|
106
152
|
dimension: searchData.dimension,
|
|
@@ -128,8 +174,8 @@ var EventTable = function EventTable(props) {
|
|
|
128
174
|
method: 'post',
|
|
129
175
|
data: _objectSpread({
|
|
130
176
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
131
|
-
platform: (
|
|
132
|
-
service:
|
|
177
|
+
platform: (searchData === null || searchData === void 0 ? void 0 : searchData.platform) || 0,
|
|
178
|
+
service: searchData.id ? 'event_sql' : 'event/overview_sql'
|
|
133
179
|
}, searchData)
|
|
134
180
|
}).then(function (res) {
|
|
135
181
|
if (res === null || res === void 0 ? void 0 : res.data) {
|
|
@@ -140,11 +186,11 @@ var EventTable = function EventTable(props) {
|
|
|
140
186
|
};
|
|
141
187
|
var download = function download() {
|
|
142
188
|
var seriesNames = [];
|
|
143
|
-
if (searchData.userGroup && searchData.userGroup.length > 1) {
|
|
189
|
+
if (searchData.userGroup && (searchData.userGroup.length > 1 || searchData.userGroup[0] !== 0)) {
|
|
144
190
|
seriesNames.push(base64.encode('用户群'));
|
|
145
191
|
}
|
|
146
192
|
if (searchData.dimension) {
|
|
147
|
-
seriesNames.push(base64.encode(getValue(searchData.dimension, eventGroupList, eventEnvList, userPropList).label));
|
|
193
|
+
seriesNames.push(base64.encode(getValue(searchData.dimension, eventGroupList, eventEnvList, userPropList, searchData).label));
|
|
148
194
|
}
|
|
149
195
|
if (searchData.id && !searchData.dimension || !searchData.id) {
|
|
150
196
|
seriesNames.push(base64.encode('事件'));
|
|
@@ -152,7 +198,7 @@ var EventTable = function EventTable(props) {
|
|
|
152
198
|
var fname = "\u4E8B\u4EF6\u5206\u6790-".concat((searchData === null || searchData === void 0 ? void 0 : searchData.name) ? getEventAliasName(searchData === null || searchData === void 0 ? void 0 : searchData.name, eventGroupList) : '事件概览');
|
|
153
199
|
var params = _objectSpread(_objectSpread({
|
|
154
200
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
155
|
-
platform: (
|
|
201
|
+
platform: (searchData === null || searchData === void 0 ? void 0 : searchData.platform) || 0
|
|
156
202
|
}, searchData), {}, {
|
|
157
203
|
down: {
|
|
158
204
|
fname: base64.encode(fname),
|
|
@@ -181,15 +227,26 @@ var EventTable = function EventTable(props) {
|
|
|
181
227
|
};
|
|
182
228
|
return /*#__PURE__*/React.createElement("div", {
|
|
183
229
|
className: classPrefix
|
|
184
|
-
}, !sourcePanel && /*#__PURE__*/React.createElement("div", {
|
|
230
|
+
}, !sourcePanel && (/*#__PURE__*/React.createElement("div", {
|
|
185
231
|
className: "".concat(classPrefix, "-table-header")
|
|
186
|
-
}, /*#__PURE__*/React.createElement("span",
|
|
232
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
233
|
+
className: "".concat(classPrefix, "-table-header-left")
|
|
234
|
+
}, "\u6307\u6807\u8BE6\u60C5", pvTitle && pvTitle.length ? (/*#__PURE__*/React.createElement("div", {
|
|
235
|
+
className: "".concat(classPrefix, "-table-header-left-box")
|
|
236
|
+
}, "\uFF08\u4E8B\u4EF6\u603B\u91CF\uFF1A", /*#__PURE__*/React.createElement("div", {
|
|
237
|
+
className: "".concat(classPrefix, "-table-header-left-content")
|
|
238
|
+
}, pvTitle.map(function (item, index) {
|
|
239
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
240
|
+
title: item[0] + ':' + item[1],
|
|
241
|
+
key: index
|
|
242
|
+
}, /*#__PURE__*/React.createElement("span", null, item[0], "\uFF1A"), /*#__PURE__*/React.createElement("span", null, item[1], index === pvTitle.length - 1 ? '' : ' | '));
|
|
243
|
+
}), "\uFF09"))) : null), /*#__PURE__*/React.createElement("div", null, authority[100051] && /*#__PURE__*/React.createElement("div", {
|
|
187
244
|
onClick: seeSql
|
|
188
|
-
}, "\u67E5\u770BSQL"), authority[100050] && /*#__PURE__*/React.createElement("div", {
|
|
245
|
+
}, "\u67E5\u770BSQL"), authority[100050] && showProdDownload && (/*#__PURE__*/React.createElement("div", {
|
|
189
246
|
onClick: download
|
|
190
247
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
191
248
|
type: "xiazai1"
|
|
192
|
-
}), "\u4E0B\u8F7D\u6570\u636E"))), /*#__PURE__*/React.createElement("div", {
|
|
249
|
+
}), "\u4E0B\u8F7D\u6570\u636E"))))), /*#__PURE__*/React.createElement("div", {
|
|
193
250
|
className: "table-area ".concat(sourcePanel ? 'sourcepanel-table-header' : '')
|
|
194
251
|
}, /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
195
252
|
renderEmpty: tableEmptyRender
|
|
@@ -203,6 +260,7 @@ var EventTable = function EventTable(props) {
|
|
|
203
260
|
},
|
|
204
261
|
pagination: {
|
|
205
262
|
showQuickJumper: true,
|
|
263
|
+
showSizeChanger: true,
|
|
206
264
|
total: total,
|
|
207
265
|
defaultPageSize: 10,
|
|
208
266
|
defaultCurrent: 1,
|
|
@@ -243,6 +301,19 @@ var EventTable = function EventTable(props) {
|
|
|
243
301
|
className: "copy-box"
|
|
244
302
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
245
303
|
type: "fuzhi1"
|
|
246
|
-
}), "\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"))));
|
|
247
318
|
};
|
|
248
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
|
+
}
|