@zgfe/modules-dm 1.0.34-heyh.2 → 1.0.34-heyh.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/demo.js +1 -1
- package/es/constants/api.js +1 -1
- package/es/modules/dataCollection/collectionEventList.js +4 -6
- package/es/modules/dataCollection/components/createVirtualDrawer.js +77 -30
- package/es/modules/dataCollection/components/eventFilter/index.js +12 -3
- package/es/modules/dataCollection/components/eventFilter/types.d.ts +1 -0
- package/es/modules/dataCollection/components/eventGroupingDrawer.js +95 -55
- package/es/modules/dataCollection/components/selectAttributes.js +5 -2
- package/es/modules/dataCollection/components/sortableComponnet.js +24 -8
- package/es/modules/dataCollection/components/tablePlus.js +4 -2
- package/es/modules/dataCollection/components/virtualTablePlus.js +47 -7
- package/es/modules/dataCollection/index.js +2 -2
- package/es/modules/dataCollection/styles/index.less +172 -81
- package/es/modules/dataCollection/types.d.ts +2 -0
- package/es/modules/dataCollection/virtualEventList.js +8 -7
- package/es/utils/index.d.ts +9 -4
- package/es/utils/index.js +51 -16
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
2
|
-
import { Checkbox } from 'antd';
|
|
2
|
+
import { Checkbox, Tooltip } from 'antd';
|
|
3
3
|
import request from '../../../utils/ajax';
|
|
4
4
|
import apis from '../../../constants/api';
|
|
5
5
|
import React, { useContext } from 'react';
|
|
@@ -15,40 +15,54 @@ var SortableComponnet = function SortableComponnet(props) {
|
|
|
15
15
|
componnetIndex = props.componnetIndex,
|
|
16
16
|
groupId = props.groupId,
|
|
17
17
|
groupingData = props.groupingData,
|
|
18
|
-
setGroupingData = props.setGroupingData
|
|
18
|
+
setGroupingData = props.setGroupingData,
|
|
19
|
+
refresh = props.refresh,
|
|
20
|
+
searchData = props.searchData;
|
|
19
21
|
// 需要拖动的元素的容器
|
|
20
22
|
var SortableItem = SortableElement(function (data) {
|
|
21
23
|
var _data$value = data.value,
|
|
22
24
|
item = _data$value.item,
|
|
23
25
|
index = _data$value.index;
|
|
24
|
-
|
|
26
|
+
var name = item.alias_name ? item.alias_name : item.event_name;
|
|
27
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
28
|
+
title: "".concat(item.owner === 'zg_vtl' ? '虚拟事件' : '元事件', " | ").concat(name),
|
|
29
|
+
key: index
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
25
31
|
className: "checkbox-item ".concat(item.event_hidden ? 'event-hidden' : '', " column-").concat(groupId),
|
|
26
32
|
checked: item.checked,
|
|
27
33
|
key: index,
|
|
28
34
|
onChange: function onChange() {
|
|
29
35
|
return onChangeItem(groupId, item.event_id);
|
|
30
36
|
}
|
|
31
|
-
},
|
|
37
|
+
}, name));
|
|
32
38
|
});
|
|
33
39
|
// 不可拖动的元素(未分组数据)
|
|
34
40
|
var SortableItemNotDrag = function SortableItemNotDrag(data) {
|
|
35
41
|
var item = data.item,
|
|
36
42
|
index = data.index;
|
|
37
|
-
|
|
43
|
+
var name = item.alias_name ? item.alias_name : item.event_name;
|
|
44
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
45
|
+
title: "".concat(item.owner === 'zg_vtl' ? '虚拟事件' : '元事件', " | ").concat(name),
|
|
46
|
+
key: index
|
|
47
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
38
48
|
className: "checkbox-item ".concat(item.event_hidden ? 'event-hidden' : '', " column-").concat(groupId),
|
|
39
49
|
checked: item.checked,
|
|
40
50
|
key: index,
|
|
41
51
|
onChange: function onChange() {
|
|
42
52
|
return onChangeItem(groupId, item.event_id);
|
|
43
53
|
}
|
|
44
|
-
},
|
|
54
|
+
}, name));
|
|
45
55
|
};
|
|
56
|
+
// const onScroll = (e: React.UIEvent<HTMLElement, UIEvent>) => {
|
|
57
|
+
// if (e.currentTarget.scrollHeight - e.currentTarget.scrollTop === 400) {
|
|
58
|
+
// }
|
|
59
|
+
// };
|
|
46
60
|
// 整个元素排序的容器
|
|
47
61
|
var SortableList = SortableContainer(function () {
|
|
48
62
|
return /*#__PURE__*/React.createElement("div", {
|
|
49
63
|
key: componnetIndex
|
|
50
64
|
}, componnetData.map(function (item, index) {
|
|
51
|
-
if (groupId !== -1) {
|
|
65
|
+
if (groupId !== -1 && searchData === "") {
|
|
52
66
|
return /*#__PURE__*/React.createElement(SortableItem, {
|
|
53
67
|
key: "item-".concat(index),
|
|
54
68
|
index: index,
|
|
@@ -89,7 +103,9 @@ var SortableComponnet = function SortableComponnet(props) {
|
|
|
89
103
|
groupId: groupId,
|
|
90
104
|
ids: ids.join(',')
|
|
91
105
|
}
|
|
92
|
-
}).then(function () {
|
|
106
|
+
}).then(function () {
|
|
107
|
+
refresh();
|
|
108
|
+
});
|
|
93
109
|
};
|
|
94
110
|
return /*#__PURE__*/React.createElement(SortableList, {
|
|
95
111
|
distance: 5,
|
|
@@ -154,7 +154,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
154
154
|
}).then(function (res) {
|
|
155
155
|
// 该事件在虚拟事件中有使用
|
|
156
156
|
if (res.data === 1) {
|
|
157
|
-
eventDelModal(record.event_id, '
|
|
157
|
+
eventDelModal(record.event_id, '检测到该事件在虚拟事件中使用, 删除后,将停止采集该事件数据,也将不在分析平台中显示!');
|
|
158
158
|
} else {
|
|
159
159
|
eventDelModal(record.event_id, '删除后,将停止采集该事件数据,也将不在分析平台中显示!');
|
|
160
160
|
}
|
|
@@ -411,7 +411,9 @@ var TablePlus = function TablePlus(props) {
|
|
|
411
411
|
}, record.alias_name),
|
|
412
412
|
trigger: "hover",
|
|
413
413
|
placement: "top"
|
|
414
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
414
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
415
|
+
className: 'alias_name_text'
|
|
416
|
+
}, record.alias_name)), /*#__PURE__*/React.createElement(IconFont, {
|
|
415
417
|
className: "edit-alias-name",
|
|
416
418
|
onClick: function onClick() {
|
|
417
419
|
setAliasNameInput(record.alias_name);
|
|
@@ -192,7 +192,9 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
192
192
|
key: 'aliasName',
|
|
193
193
|
width: 167,
|
|
194
194
|
render: function render(_, record) {
|
|
195
|
-
return /*#__PURE__*/React.createElement(
|
|
195
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
196
|
+
className: "alias_name"
|
|
197
|
+
}, /*#__PURE__*/React.createElement(Popover, {
|
|
196
198
|
content: /*#__PURE__*/React.createElement("div", {
|
|
197
199
|
style: {
|
|
198
200
|
width: '200px',
|
|
@@ -201,7 +203,9 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
201
203
|
}, record.aliasName),
|
|
202
204
|
trigger: "hover",
|
|
203
205
|
placement: "top"
|
|
204
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
206
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
207
|
+
className: 'alias_name_text'
|
|
208
|
+
}, record.aliasName)));
|
|
205
209
|
}
|
|
206
210
|
}, {
|
|
207
211
|
title: '首次上报时间',
|
|
@@ -209,7 +213,7 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
209
213
|
key: 'insertTime',
|
|
210
214
|
width: 187,
|
|
211
215
|
render: function render(text) {
|
|
212
|
-
return /*#__PURE__*/React.createElement("div", null, moment(text).format('YYYY-MM-DD HH:mm:ss'));
|
|
216
|
+
return /*#__PURE__*/React.createElement("div", null, text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '');
|
|
213
217
|
}
|
|
214
218
|
}, {
|
|
215
219
|
title: '末次上报时间',
|
|
@@ -217,18 +221,54 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
217
221
|
key: 'lastInsertTime',
|
|
218
222
|
width: 187,
|
|
219
223
|
render: function render(text) {
|
|
220
|
-
return /*#__PURE__*/React.createElement("div", null, moment(text).format('YYYY-MM-DD HH:mm:ss'));
|
|
224
|
+
return /*#__PURE__*/React.createElement("div", null, text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '');
|
|
225
|
+
}
|
|
226
|
+
}, {
|
|
227
|
+
title: '显示状态',
|
|
228
|
+
dataIndex: 'hidden',
|
|
229
|
+
key: 'hidden',
|
|
230
|
+
width: 187,
|
|
231
|
+
render: function render(text) {
|
|
232
|
+
return /*#__PURE__*/React.createElement("div", null, text === 0 ? '显示' : '隐藏');
|
|
221
233
|
}
|
|
222
234
|
}, {
|
|
223
235
|
title: '描述',
|
|
224
236
|
dataIndex: 'description',
|
|
225
237
|
key: 'description',
|
|
226
|
-
width: 187
|
|
238
|
+
width: 187,
|
|
239
|
+
render: function render(text) {
|
|
240
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Popover, {
|
|
241
|
+
content: /*#__PURE__*/React.createElement("div", {
|
|
242
|
+
style: {
|
|
243
|
+
width: '200px',
|
|
244
|
+
wordBreak: 'break-all'
|
|
245
|
+
}
|
|
246
|
+
}, text),
|
|
247
|
+
trigger: "hover",
|
|
248
|
+
placement: "top"
|
|
249
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
250
|
+
className: 'description'
|
|
251
|
+
}, text)));
|
|
252
|
+
}
|
|
227
253
|
}, {
|
|
228
|
-
title: '
|
|
254
|
+
title: '包含元事件',
|
|
229
255
|
dataIndex: 'bindEvent',
|
|
230
256
|
key: 'bindEvent',
|
|
231
|
-
width: 187
|
|
257
|
+
width: 187,
|
|
258
|
+
render: function render(text) {
|
|
259
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Popover, {
|
|
260
|
+
content: /*#__PURE__*/React.createElement("div", {
|
|
261
|
+
style: {
|
|
262
|
+
width: '200px',
|
|
263
|
+
wordBreak: 'break-all'
|
|
264
|
+
}
|
|
265
|
+
}, text),
|
|
266
|
+
trigger: "hover",
|
|
267
|
+
placement: "top"
|
|
268
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
269
|
+
className: 'bind-event'
|
|
270
|
+
}, text)));
|
|
271
|
+
}
|
|
232
272
|
}, {
|
|
233
273
|
title: '创建人',
|
|
234
274
|
dataIndex: 'createUser',
|
|
@@ -19,7 +19,7 @@ var DataCollection = function DataCollection(props) {
|
|
|
19
19
|
var _useContext = useContext(BizGlobalDataContext),
|
|
20
20
|
currentApp = _useContext.currentApp,
|
|
21
21
|
authority = _useContext.authority;
|
|
22
|
-
var _useState = useState(
|
|
22
|
+
var _useState = useState(1),
|
|
23
23
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24
24
|
listTab = _useState2[0],
|
|
25
25
|
setListTab = _useState2[1];
|
|
@@ -72,7 +72,7 @@ var DataCollection = function DataCollection(props) {
|
|
|
72
72
|
}
|
|
73
73
|
}, authority[100020] && /*#__PURE__*/React.createElement(Radio.Button, {
|
|
74
74
|
value: 1
|
|
75
|
-
}, "\
|
|
75
|
+
}, "\u5143\u4E8B\u4EF6"), /*#__PURE__*/React.createElement(Radio.Button, {
|
|
76
76
|
value: 3
|
|
77
77
|
}, "\u865A\u62DF\u4E8B\u4EF6"), authority[100021] && /*#__PURE__*/React.createElement(Radio.Button, {
|
|
78
78
|
value: 2
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
.creact-group {
|
|
17
17
|
.ant-modal-body {
|
|
18
|
-
padding: 3px 20px 20px 20px;
|
|
18
|
+
padding: 3px 20px 20px 20px !important;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -115,10 +115,6 @@
|
|
|
115
115
|
word-break: break-all;
|
|
116
116
|
background: red;
|
|
117
117
|
}
|
|
118
|
-
.alias_name {
|
|
119
|
-
border: none;
|
|
120
|
-
cursor: pointer;
|
|
121
|
-
}
|
|
122
118
|
.ant-input:focus,
|
|
123
119
|
.ant-input-focused {
|
|
124
120
|
background-color: #fff !important;
|
|
@@ -260,6 +256,16 @@
|
|
|
260
256
|
}
|
|
261
257
|
.alias_name {
|
|
262
258
|
display: flex;
|
|
259
|
+
border: none;
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
.alias_name_text {
|
|
262
|
+
display: -webkit-box;
|
|
263
|
+
max-width: 167px;
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
cursor: pointer;
|
|
266
|
+
-webkit-box-orient: vertical;
|
|
267
|
+
-webkit-line-clamp: 1;
|
|
268
|
+
}
|
|
263
269
|
.edit-alias-name {
|
|
264
270
|
display: none;
|
|
265
271
|
margin-left: 10px;
|
|
@@ -269,6 +275,15 @@
|
|
|
269
275
|
color: @primary-color;
|
|
270
276
|
}
|
|
271
277
|
}
|
|
278
|
+
.bind-event,
|
|
279
|
+
.description {
|
|
280
|
+
display: -webkit-box;
|
|
281
|
+
max-width: 180px;
|
|
282
|
+
overflow: hidden;
|
|
283
|
+
cursor: pointer;
|
|
284
|
+
-webkit-box-orient: vertical;
|
|
285
|
+
-webkit-line-clamp: 1;
|
|
286
|
+
}
|
|
272
287
|
.ant-table-row:hover {
|
|
273
288
|
.collect-icon {
|
|
274
289
|
opacity: 1;
|
|
@@ -376,6 +391,26 @@
|
|
|
376
391
|
}
|
|
377
392
|
|
|
378
393
|
.create-virtual-drawer {
|
|
394
|
+
#basic {
|
|
395
|
+
padding-bottom: 100px;
|
|
396
|
+
.ant-input {
|
|
397
|
+
border: none;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
&-desc {
|
|
401
|
+
.ant-form-item-control {
|
|
402
|
+
max-width: 100%;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
&-add {
|
|
406
|
+
color: #165dff;
|
|
407
|
+
&-icon {
|
|
408
|
+
margin-right: 8px;
|
|
409
|
+
font-weight: 900;
|
|
410
|
+
font-size: 18px !important;
|
|
411
|
+
vertical-align: -2px;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
379
414
|
&-see-box {
|
|
380
415
|
> div {
|
|
381
416
|
display: flex;
|
|
@@ -384,6 +419,7 @@
|
|
|
384
419
|
color: #021429;
|
|
385
420
|
span {
|
|
386
421
|
width: 84px;
|
|
422
|
+
min-width: 84px;
|
|
387
423
|
color: #5f6085;
|
|
388
424
|
text-align: right;
|
|
389
425
|
}
|
|
@@ -402,6 +438,15 @@
|
|
|
402
438
|
> :nth-child(2) {
|
|
403
439
|
margin-top: 8px;
|
|
404
440
|
}
|
|
441
|
+
> :nth-child(1)::before {
|
|
442
|
+
display: inline-block;
|
|
443
|
+
margin-right: 4px;
|
|
444
|
+
color: #ff4d4f;
|
|
445
|
+
font-size: 14px;
|
|
446
|
+
font-family: SimSun, sans-serif;
|
|
447
|
+
line-height: 1;
|
|
448
|
+
content: '*';
|
|
449
|
+
}
|
|
405
450
|
}
|
|
406
451
|
&-eventDataBox.see {
|
|
407
452
|
> :nth-child(1) {
|
|
@@ -424,10 +469,15 @@
|
|
|
424
469
|
}
|
|
425
470
|
&-formSubmit {
|
|
426
471
|
position: absolute;
|
|
427
|
-
right:
|
|
428
|
-
bottom:
|
|
472
|
+
right: 0;
|
|
473
|
+
bottom: 0;
|
|
429
474
|
display: flex;
|
|
430
|
-
gap:
|
|
475
|
+
gap: 16px;
|
|
476
|
+
justify-content: end;
|
|
477
|
+
width: 100%;
|
|
478
|
+
padding: 24px;
|
|
479
|
+
background: #fff;
|
|
480
|
+
border-top: 1px solid #f2f3f4;
|
|
431
481
|
}
|
|
432
482
|
}
|
|
433
483
|
|
|
@@ -482,22 +532,37 @@
|
|
|
482
532
|
> div {
|
|
483
533
|
display: flex;
|
|
484
534
|
flex-wrap: wrap;
|
|
535
|
+
gap: 12px;
|
|
485
536
|
justify-content: flex-start;
|
|
486
537
|
width: 100%;
|
|
487
538
|
.checkbox-item {
|
|
488
|
-
|
|
539
|
+
display: flex;
|
|
540
|
+
flex-shrink: 0;
|
|
541
|
+
align-items: center;
|
|
542
|
+
width: calc(25% - 9px);
|
|
543
|
+
height: 40px;
|
|
544
|
+
margin: 0;
|
|
545
|
+
padding: 9px 0 9px 16px;
|
|
546
|
+
background: #fafafb;
|
|
547
|
+
.ant-checkbox {
|
|
548
|
+
margin-top: -6px;
|
|
549
|
+
}
|
|
550
|
+
.ant-checkbox + span {
|
|
551
|
+
display: -webkit-box;
|
|
552
|
+
max-width: 100%;
|
|
553
|
+
overflow: hidden;
|
|
554
|
+
cursor: pointer;
|
|
555
|
+
user-select: none;
|
|
556
|
+
-webkit-box-orient: vertical;
|
|
557
|
+
-webkit-line-clamp: 1;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
.checkbox-item.show{
|
|
561
|
+
display: flex;
|
|
562
|
+
}
|
|
563
|
+
.checkbox-item.hidden{
|
|
564
|
+
display: none;
|
|
489
565
|
}
|
|
490
|
-
// width: 25%;
|
|
491
|
-
// .ant-checkbox {
|
|
492
|
-
// top: 0em;
|
|
493
|
-
// }
|
|
494
|
-
}
|
|
495
|
-
.checkbox-item {
|
|
496
|
-
display: flex;
|
|
497
|
-
flex-shrink: 0;
|
|
498
|
-
align-items: center;
|
|
499
|
-
height: 40px;
|
|
500
|
-
margin: 0;
|
|
501
566
|
}
|
|
502
567
|
.event-hidden {
|
|
503
568
|
color: #ccd0d4;
|
|
@@ -507,6 +572,15 @@
|
|
|
507
572
|
display: none;
|
|
508
573
|
}
|
|
509
574
|
}
|
|
575
|
+
&-top-box {
|
|
576
|
+
display: flex;
|
|
577
|
+
align-items: center;
|
|
578
|
+
justify-content: space-between;
|
|
579
|
+
.ant-input {
|
|
580
|
+
width: 374px;
|
|
581
|
+
border: none;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
510
584
|
.ant-drawer-title {
|
|
511
585
|
span {
|
|
512
586
|
margin-left: 8px;
|
|
@@ -518,11 +592,6 @@
|
|
|
518
592
|
display: none;
|
|
519
593
|
}
|
|
520
594
|
.ant-drawer-extra {
|
|
521
|
-
display: flex;
|
|
522
|
-
justify-content: center;
|
|
523
|
-
> :nth-child(1) {
|
|
524
|
-
margin-right: 15px;
|
|
525
|
-
}
|
|
526
595
|
.qingchu {
|
|
527
596
|
font-size: 20px !important;
|
|
528
597
|
cursor: pointer;
|
|
@@ -542,13 +611,13 @@
|
|
|
542
611
|
}
|
|
543
612
|
}
|
|
544
613
|
.ant-modal-confirm-title {
|
|
545
|
-
display: inline;
|
|
546
|
-
color: #021429;
|
|
614
|
+
display: inline !important;
|
|
615
|
+
color: #021429 !important;
|
|
547
616
|
font-weight: 500;
|
|
548
|
-
font-size: 24px;
|
|
617
|
+
font-size: 24px !important;
|
|
549
618
|
}
|
|
550
619
|
.ant-modal-confirm-content {
|
|
551
|
-
margin-top: 20px;
|
|
620
|
+
margin-top: 20px !important;
|
|
552
621
|
}
|
|
553
622
|
}
|
|
554
623
|
|
|
@@ -579,68 +648,84 @@
|
|
|
579
648
|
}
|
|
580
649
|
|
|
581
650
|
.select-attributes {
|
|
582
|
-
&-
|
|
583
|
-
.ant-select-dropdown {
|
|
584
|
-
display: none !important;
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.select-attributes-box {
|
|
590
|
-
display: flex;
|
|
591
|
-
width: 616px;
|
|
592
|
-
height: 380px;
|
|
593
|
-
background: #fff;
|
|
594
|
-
border-radius: 10px;
|
|
595
|
-
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
|
|
596
|
-
&-left {
|
|
651
|
+
&-box {
|
|
597
652
|
display: flex;
|
|
598
|
-
|
|
599
|
-
width: 205px;
|
|
653
|
+
width: 616px;
|
|
600
654
|
height: 380px;
|
|
601
|
-
|
|
602
|
-
|
|
655
|
+
background: #fff;
|
|
656
|
+
border-radius: 10px;
|
|
603
657
|
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
|
|
604
|
-
|
|
605
|
-
display: flex;
|
|
606
|
-
justify-content: space-between;
|
|
607
|
-
padding: 6px 12px;
|
|
608
|
-
}
|
|
609
|
-
.active {
|
|
610
|
-
color: #fff;
|
|
611
|
-
background: #165dff;
|
|
612
|
-
border-radius: 4px;
|
|
613
|
-
> :nth-child(2) {
|
|
614
|
-
padding: 0px 4px;
|
|
615
|
-
border: 1px solid #fff;
|
|
616
|
-
border-radius: 10px;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
&-right {
|
|
621
|
-
width: 100%;
|
|
622
|
-
height: 380px;
|
|
623
|
-
padding: 8px;
|
|
624
|
-
> :nth-child(2) {
|
|
658
|
+
&-left {
|
|
625
659
|
display: flex;
|
|
626
660
|
flex-direction: column;
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
height: 320px;
|
|
631
|
-
margin-top: 8px;
|
|
661
|
+
width: 205px;
|
|
662
|
+
height: 380px;
|
|
663
|
+
padding: 8px;
|
|
632
664
|
overflow-y: auto;
|
|
665
|
+
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
|
|
633
666
|
> div {
|
|
634
667
|
display: flex;
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
align-items: center;
|
|
638
|
-
align-self: stretch;
|
|
639
|
-
height: 32px;
|
|
640
|
-
padding: 0px 16px;
|
|
668
|
+
justify-content: space-between;
|
|
669
|
+
padding: 6px 12px;
|
|
641
670
|
}
|
|
642
671
|
.active {
|
|
643
|
-
|
|
672
|
+
color: #fff;
|
|
673
|
+
background: #165dff;
|
|
674
|
+
border-radius: 4px;
|
|
675
|
+
> :nth-child(2) {
|
|
676
|
+
padding: 0px 4px;
|
|
677
|
+
border: 1px solid #fff;
|
|
678
|
+
border-radius: 10px;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
&-right {
|
|
683
|
+
width: 100%;
|
|
684
|
+
height: 380px;
|
|
685
|
+
padding: 8px;
|
|
686
|
+
> :nth-child(2) {
|
|
687
|
+
display: flex;
|
|
688
|
+
flex-direction: column;
|
|
689
|
+
gap: 8px;
|
|
690
|
+
align-items: flex-start;
|
|
691
|
+
width: 100%;
|
|
692
|
+
height: 320px;
|
|
693
|
+
margin-top: 8px;
|
|
694
|
+
overflow-y: auto;
|
|
695
|
+
> div {
|
|
696
|
+
display: flex;
|
|
697
|
+
flex-shrink: 0;
|
|
698
|
+
gap: 10px;
|
|
699
|
+
align-items: center;
|
|
700
|
+
align-self: stretch;
|
|
701
|
+
height: 32px;
|
|
702
|
+
padding: 0px 16px;
|
|
703
|
+
}
|
|
704
|
+
.active {
|
|
705
|
+
background: #e8efff;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
&-select {
|
|
711
|
+
.ant-select-dropdown {
|
|
712
|
+
display: none !important;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
&-modal-box {
|
|
716
|
+
.ant-modal-close-x {
|
|
717
|
+
display: none;
|
|
718
|
+
}
|
|
719
|
+
.ant-modal-title {
|
|
720
|
+
position: relative;
|
|
721
|
+
.tishi1 {
|
|
722
|
+
margin-right: 8px;
|
|
723
|
+
color: #fd9f41;
|
|
724
|
+
}
|
|
725
|
+
.qingchu {
|
|
726
|
+
position: absolute;
|
|
727
|
+
top: 0;
|
|
728
|
+
right: 0;
|
|
644
729
|
}
|
|
645
730
|
}
|
|
646
731
|
}
|
|
@@ -649,3 +734,9 @@
|
|
|
649
734
|
.sortable-componnet-sortableList {
|
|
650
735
|
z-index: 9999;
|
|
651
736
|
}
|
|
737
|
+
|
|
738
|
+
.not-operable {
|
|
739
|
+
color: #ccd0d4;
|
|
740
|
+
cursor: not-allowed !important;
|
|
741
|
+
user-select: none;
|
|
742
|
+
}
|
|
@@ -22,6 +22,7 @@ export interface eventJsonProps {
|
|
|
22
22
|
}
|
|
23
23
|
export interface VirtualEventProps extends VirtualEventBase {
|
|
24
24
|
eventGroupId: number;
|
|
25
|
+
groupId?: number;
|
|
25
26
|
eventJson: eventJsonProps[];
|
|
26
27
|
id: number;
|
|
27
28
|
}
|
|
@@ -72,4 +73,5 @@ export interface SubmitDataProps {
|
|
|
72
73
|
export interface EventGroupingDrawerProps {
|
|
73
74
|
eventGroupingShow: boolean;
|
|
74
75
|
setEventGroupingShow: Function;
|
|
76
|
+
refresh: Function;
|
|
75
77
|
}
|
|
@@ -120,10 +120,12 @@ var VirtualEventList = function VirtualEventList() {
|
|
|
120
120
|
};
|
|
121
121
|
// 筛选事件
|
|
122
122
|
var eventNameChange = function eventNameChange(e) {
|
|
123
|
+
setPageNumber(1);
|
|
123
124
|
setEventNameChangeData(e.currentTarget.value);
|
|
124
125
|
};
|
|
125
126
|
// 筛选收藏
|
|
126
127
|
var markTypeFilter = function markTypeFilter(markActive) {
|
|
128
|
+
setPageNumber(1);
|
|
127
129
|
setMarkTypeData(markActive ? 1 : 0);
|
|
128
130
|
};
|
|
129
131
|
// 获取虚拟事件列表
|
|
@@ -218,10 +220,6 @@ var VirtualEventList = function VirtualEventList() {
|
|
|
218
220
|
message.error('请输入分组名称');
|
|
219
221
|
return;
|
|
220
222
|
}
|
|
221
|
-
if (eventNameInput.length > 20) {
|
|
222
|
-
message.error('名称不可超过20字符');
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
223
|
request(apis.upsertEventGroup, {
|
|
226
224
|
method: 'post',
|
|
227
225
|
data: {
|
|
@@ -256,7 +254,7 @@ var VirtualEventList = function VirtualEventList() {
|
|
|
256
254
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
257
255
|
className: "top-input",
|
|
258
256
|
onChange: eventNameChange,
|
|
259
|
-
placeholder: "\
|
|
257
|
+
placeholder: "\u8BF7\u8F93\u5165\u4E8B\u4EF6\u540D\u79F0\u6216\u522B\u540D",
|
|
260
258
|
prefix: /*#__PURE__*/React.createElement(IconFont, {
|
|
261
259
|
type: "sousuo"
|
|
262
260
|
})
|
|
@@ -298,8 +296,9 @@ var VirtualEventList = function VirtualEventList() {
|
|
|
298
296
|
textAlign: 'right'
|
|
299
297
|
},
|
|
300
298
|
showQuickJumper: true,
|
|
301
|
-
showSizeChanger: total >
|
|
299
|
+
showSizeChanger: total > pageSize,
|
|
302
300
|
defaultCurrent: 1,
|
|
301
|
+
defaultPageSize: pageSize,
|
|
303
302
|
current: pageNumber,
|
|
304
303
|
total: total,
|
|
305
304
|
onChange: onPaginationChange
|
|
@@ -312,7 +311,8 @@ var VirtualEventList = function VirtualEventList() {
|
|
|
312
311
|
refresh: queryList
|
|
313
312
|
}), /*#__PURE__*/React.createElement(EventGroupingDrawer, {
|
|
314
313
|
eventGroupingShow: eventGroupingShow,
|
|
315
|
-
setEventGroupingShow: setEventGroupingShow
|
|
314
|
+
setEventGroupingShow: setEventGroupingShow,
|
|
315
|
+
refresh: queryList
|
|
316
316
|
}), /*#__PURE__*/React.createElement(Modal, {
|
|
317
317
|
title: "\u521B\u5EFA\u5206\u7EC4",
|
|
318
318
|
className: "creact-group",
|
|
@@ -327,6 +327,7 @@ var VirtualEventList = function VirtualEventList() {
|
|
|
327
327
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
328
328
|
placeholder: "\u8BF7\u8F93\u5165\u5206\u7EC4\u540D",
|
|
329
329
|
value: eventNameInput,
|
|
330
|
+
maxLength: 20,
|
|
330
331
|
onChange: function onChange(e) {
|
|
331
332
|
return setEventNameInput(e.currentTarget.value);
|
|
332
333
|
}
|
package/es/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 虚拟事件编辑 判断内容是否有改动;有改动返回true
|
|
3
|
+
*/
|
|
4
|
+
export declare const getVirtualContentChange: (oldData: any, newData: any) => boolean;
|
|
1
5
|
/**
|
|
2
6
|
* 虚拟事件属性超过100个,选择属性后的回调,处理提交数据
|
|
3
7
|
*/
|
|
@@ -22,10 +26,6 @@ export declare const eventMoveData: (groupId: number, groupingData: any, setGrou
|
|
|
22
26
|
* 指标分组管理:显示或隐藏
|
|
23
27
|
*/
|
|
24
28
|
export declare const eventShowOrHiddenData: (type: number, groupId: number, groupingData: any, setGroupingData: Function) => any;
|
|
25
|
-
/**
|
|
26
|
-
* 指标分组管理:删除分组
|
|
27
|
-
*/
|
|
28
|
-
export declare const groupDeleteData: (groupId: number, groupingData: any, setGroupingData: Function) => void;
|
|
29
29
|
/**
|
|
30
30
|
* 指标分组管理:分组展开与关闭
|
|
31
31
|
*/
|
|
@@ -34,6 +34,10 @@ export declare const openChangeData: (groupId: number, groupingData: any) => any
|
|
|
34
34
|
* 指标分组管理:事件全选处理
|
|
35
35
|
*/
|
|
36
36
|
export declare const eventCheckedAll: (groupId: number, groupingData: any) => any;
|
|
37
|
+
/**
|
|
38
|
+
* 指标分组管理:搜索事件名称或别名,判断是否展示
|
|
39
|
+
*/
|
|
40
|
+
export declare const eventShow: (data: any, searchData: string) => any;
|
|
37
41
|
/**
|
|
38
42
|
* 指标分组管理:单个事件选中处理
|
|
39
43
|
*/
|
|
@@ -47,6 +51,7 @@ export declare const groupListSort: (result: any, groupingData: any, setGrouping
|
|
|
47
51
|
*/
|
|
48
52
|
export declare const eventListHandle: (data: any) => void;
|
|
49
53
|
export declare const getAppID: (currentApp: any) => any;
|
|
54
|
+
export declare const nullToEmptyString: (data: any) => any;
|
|
50
55
|
/**
|
|
51
56
|
* 获取第一个表格的可视化高度
|
|
52
57
|
* @param {*} extraHeight 额外的高度(表格底部的内容高度 Number类型,默认为74)
|