@zgfe/modules-dm 1.0.57-zhongyuan.8 → 1.0.57-zhongyuan.81
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/constants/api.d.ts +9 -1
- package/es/constants/api.js +11 -2
- package/es/modules/CutsModal.d.ts +8 -0
- package/es/modules/clearRule/addRule.d.ts +1 -0
- package/es/modules/clearRule/addRule.js +313 -171
- package/es/modules/clearRule/css/index.css +265 -256
- package/es/modules/clearRule/css/index.less +279 -270
- package/es/modules/clearRule/index.js +172 -89
- package/es/modules/dataManage/collectionAttributeList.d.ts +2 -0
- package/es/modules/dataManage/collectionAttributeList.js +40 -26
- package/es/modules/dataManage/collectionEventList.js +79 -23
- package/es/modules/dataManage/components/createMetaDrawer.js +101 -9
- package/es/modules/dataManage/components/developModal/index.js +5 -5
- package/es/modules/dataManage/components/eventFilter/index.js +7 -5
- package/es/modules/dataManage/components/eventGroupingDrawer.js +1 -4
- package/es/modules/dataManage/components/panelList.js +4 -2
- package/es/modules/dataManage/components/tablePlus.d.ts +8 -0
- package/es/modules/dataManage/components/tablePlus.js +367 -163
- package/es/modules/dataManage/detailedData/useColumns.js +1 -1
- package/es/modules/dataManage/styles/index.less +1210 -1205
- package/es/modules/dataManage/types.d.ts +4 -0
- package/es/modules/dataMap/component/drawerAdd.js +3 -2
- package/es/modules/dataMap/component/leftTree.js +7 -5
- package/es/modules/dataMap/component/rightDetail.js +94 -57
- package/es/modules/dataPlan/addPlan.js +5 -4
- package/es/modules/formulateRule/addFormulate.d.ts +1 -0
- package/es/modules/formulateRule/addFormulate.js +141 -36
- package/es/modules/formulateRule/addRule.d.ts +2 -0
- package/es/modules/formulateRule/addRule.js +201 -27
- package/es/modules/formulateRule/index.js +108 -64
- package/es/utils/index.d.ts +4 -0
- package/es/utils/index.js +29 -1
- package/package.json +3 -3
|
@@ -37,7 +37,8 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
37
37
|
currentApp = _useContext.currentApp,
|
|
38
38
|
authority = _useContext.authority,
|
|
39
39
|
route = _useContext.route,
|
|
40
|
-
isDemo = _useContext.isDemo
|
|
40
|
+
isDemo = _useContext.isDemo,
|
|
41
|
+
showProdDownload = _useContext.showProdDownload;
|
|
41
42
|
var _useContext2 = useContext(DmContext),
|
|
42
43
|
state = _useContext2.state;
|
|
43
44
|
var _useState = useState(0),
|
|
@@ -104,21 +105,39 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
104
105
|
var _useState27 = useState([{
|
|
105
106
|
label: '全部埋点平台',
|
|
106
107
|
value: -1
|
|
108
|
+
}, {
|
|
109
|
+
label: 'Unknown',
|
|
110
|
+
value: 0
|
|
107
111
|
}, {
|
|
108
112
|
label: 'JS',
|
|
109
|
-
value:
|
|
113
|
+
value: 3
|
|
110
114
|
}, {
|
|
111
115
|
label: 'Android',
|
|
112
|
-
value:
|
|
116
|
+
value: 1
|
|
113
117
|
}, {
|
|
114
118
|
label: 'IOS',
|
|
115
|
-
value:
|
|
119
|
+
value: 2
|
|
120
|
+
},
|
|
121
|
+
// { label: '其他', value: 99 },
|
|
122
|
+
{
|
|
123
|
+
label: '微信小程序',
|
|
124
|
+
value: 4
|
|
116
125
|
}, {
|
|
117
|
-
label: '
|
|
118
|
-
value:
|
|
126
|
+
label: '服务端',
|
|
127
|
+
value: 5
|
|
128
|
+
}, {
|
|
129
|
+
label: '鸿蒙',
|
|
130
|
+
value: 6
|
|
119
131
|
}]),
|
|
120
132
|
_useState28 = _slicedToArray(_useState27, 1),
|
|
121
133
|
maidianList = _useState28[0];
|
|
134
|
+
// {"id":0,"name":"Unknown","keys":["none"]},
|
|
135
|
+
// {"id":1,"name":"Android","keys":["and"]},
|
|
136
|
+
// {"id":2,"name":"IOS","keys":["ios"]},
|
|
137
|
+
// {"id":3,"name":"Javascript","keys":["js"]},
|
|
138
|
+
// {"id":4,"name":"微信小程序","keys":["wxa"]},
|
|
139
|
+
// {"id":5,"name":"服务端","keys":["server"]},
|
|
140
|
+
// {"id":6,"name":"鸿蒙","keys":["harmonyos"]}
|
|
122
141
|
var _useState29 = useState([-1]),
|
|
123
142
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
124
143
|
currentMaidian = _useState30[0],
|
|
@@ -434,8 +453,10 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
434
453
|
if (_renderData && _renderData.length > 0 && _renderData[0].groupId == undefined) {
|
|
435
454
|
_renderData.map(function (item) {
|
|
436
455
|
groupData.map(function (_item) {
|
|
437
|
-
|
|
438
|
-
|
|
456
|
+
var _item$_groupId;
|
|
457
|
+
if (_item.groupId === item._groupId && _tempGroupIdList.indexOf((_item$_groupId = item._groupId) !== null && _item$_groupId !== void 0 ? _item$_groupId : _item.groupId) === -1) {
|
|
458
|
+
var _item$_groupId2;
|
|
459
|
+
_tempGroupIdList.push((_item$_groupId2 = item._groupId) !== null && _item$_groupId2 !== void 0 ? _item$_groupId2 : _item.groupId);
|
|
439
460
|
_tempRenderData.push(_item);
|
|
440
461
|
}
|
|
441
462
|
});
|
|
@@ -459,7 +480,7 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
459
480
|
fileName: "\u5143\u4E8B\u4EF6\u5217\u8868_".concat(moment().format('YYYYMMDD'))
|
|
460
481
|
}).then(function (res) {});
|
|
461
482
|
};
|
|
462
|
-
var items = [{
|
|
483
|
+
var items = showProdDownload ? [{
|
|
463
484
|
key: '2',
|
|
464
485
|
disabled: !authority[1700636282],
|
|
465
486
|
label: (/*#__PURE__*/React.createElement("a", {
|
|
@@ -484,7 +505,7 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
484
505
|
type: "xiazai1",
|
|
485
506
|
size: 16,
|
|
486
507
|
className: "creditPopClickIcon"
|
|
487
|
-
}),
|
|
508
|
+
}), ' ', /*#__PURE__*/React.createElement("span", null, "\u5BFC\u5165\u4E8B\u4EF6")))
|
|
488
509
|
}, {
|
|
489
510
|
key: '4',
|
|
490
511
|
disabled: isDemo || !authority[1722837261],
|
|
@@ -495,7 +516,7 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
495
516
|
type: "daochu1",
|
|
496
517
|
size: 16,
|
|
497
518
|
className: "creditPopClickIcon"
|
|
498
|
-
}),
|
|
519
|
+
}), ' ', /*#__PURE__*/React.createElement("span", null, "\u5BFC\u51FA\u4E8B\u4EF6")))
|
|
499
520
|
}, {
|
|
500
521
|
key: '5',
|
|
501
522
|
label: (/*#__PURE__*/React.createElement("a", {
|
|
@@ -532,6 +553,31 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
532
553
|
size: 16,
|
|
533
554
|
className: "creditPopClickIcon"
|
|
534
555
|
}), /*#__PURE__*/React.createElement("span", null, "\u5BFC\u51FA\u6570\u636E\u5305")))
|
|
556
|
+
}] : [{
|
|
557
|
+
key: '2',
|
|
558
|
+
disabled: !authority[1700636282],
|
|
559
|
+
label: (/*#__PURE__*/React.createElement("a", {
|
|
560
|
+
className: "".concat(classPrefix, "-downItems"),
|
|
561
|
+
onClick: function onClick() {
|
|
562
|
+
return setEventGroupingShow(true);
|
|
563
|
+
}
|
|
564
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
565
|
+
type: "guanli",
|
|
566
|
+
size: 16,
|
|
567
|
+
className: "creditPopClickIcon"
|
|
568
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u4E8B\u4EF6\u5206\u7EC4\u7BA1\u7406")))
|
|
569
|
+
}, {
|
|
570
|
+
key: '5',
|
|
571
|
+
label: (/*#__PURE__*/React.createElement("a", {
|
|
572
|
+
className: "".concat(classPrefix, "-downItems"),
|
|
573
|
+
onClick: function onClick() {
|
|
574
|
+
return setIsDevModalState(true);
|
|
575
|
+
}
|
|
576
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
577
|
+
type: "icon-shishigailan",
|
|
578
|
+
size: 16,
|
|
579
|
+
className: "creditPopClickIcon"
|
|
580
|
+
}), ' ', /*#__PURE__*/React.createElement("span", null, "\u5F00\u53D1\u7BA1\u7406")))
|
|
535
581
|
}];
|
|
536
582
|
// 提交测试报告
|
|
537
583
|
var _Form$useForm = Form.useForm(),
|
|
@@ -551,7 +597,8 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
551
597
|
request(apis.createExport, {
|
|
552
598
|
method: 'get',
|
|
553
599
|
params: {
|
|
554
|
-
demandId: values === null || values === void 0 ? void 0 : values.demandId
|
|
600
|
+
demandId: values === null || values === void 0 ? void 0 : values.demandId,
|
|
601
|
+
appId: getAppID(currentApp)
|
|
555
602
|
},
|
|
556
603
|
responseType: 'blob',
|
|
557
604
|
fileName: "\u6D4B\u8BD5\u62A5\u544A_".concat(moment().format('YYYYMMDD'))
|
|
@@ -559,18 +606,22 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
559
606
|
notification.success({
|
|
560
607
|
message: '生成测试报告成功!'
|
|
561
608
|
});
|
|
609
|
+
// 清空需求id
|
|
610
|
+
formReport.setFieldsValue({
|
|
611
|
+
demandId: ''
|
|
612
|
+
});
|
|
562
613
|
setIsTextReport(false);
|
|
563
|
-
_context.next =
|
|
614
|
+
_context.next = 13;
|
|
564
615
|
break;
|
|
565
|
-
case
|
|
566
|
-
_context.prev =
|
|
616
|
+
case 10:
|
|
617
|
+
_context.prev = 10;
|
|
567
618
|
_context.t0 = _context["catch"](0);
|
|
568
619
|
console.log(_context.t0, '测试报告验证失败');
|
|
569
|
-
case
|
|
620
|
+
case 13:
|
|
570
621
|
case "end":
|
|
571
622
|
return _context.stop();
|
|
572
623
|
}
|
|
573
|
-
}, _callee, null, [[0,
|
|
624
|
+
}, _callee, null, [[0, 10]]);
|
|
574
625
|
}));
|
|
575
626
|
return function submitReport() {
|
|
576
627
|
return _ref.apply(this, arguments);
|
|
@@ -594,7 +645,8 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
594
645
|
request(apis.exportData, {
|
|
595
646
|
method: 'get',
|
|
596
647
|
params: {
|
|
597
|
-
demandId: values === null || values === void 0 ? void 0 : values.demandId
|
|
648
|
+
demandId: values === null || values === void 0 ? void 0 : values.demandId,
|
|
649
|
+
appId: getAppID(currentApp)
|
|
598
650
|
},
|
|
599
651
|
responseType: 'blob',
|
|
600
652
|
fileName: "\u6570\u636E\u5305_".concat(moment().format('YYYYMMDD'))
|
|
@@ -603,17 +655,21 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
603
655
|
message: '生成数据包成功!'
|
|
604
656
|
});
|
|
605
657
|
setIsExportData(false);
|
|
606
|
-
|
|
658
|
+
// 清空需求id
|
|
659
|
+
formExport.setFieldsValue({
|
|
660
|
+
demandId: ''
|
|
661
|
+
});
|
|
662
|
+
_context2.next = 13;
|
|
607
663
|
break;
|
|
608
|
-
case
|
|
609
|
-
_context2.prev =
|
|
664
|
+
case 10:
|
|
665
|
+
_context2.prev = 10;
|
|
610
666
|
_context2.t0 = _context2["catch"](0);
|
|
611
667
|
console.log(_context2.t0, '测试数据包失败');
|
|
612
|
-
case
|
|
668
|
+
case 13:
|
|
613
669
|
case "end":
|
|
614
670
|
return _context2.stop();
|
|
615
671
|
}
|
|
616
|
-
}, _callee2, null, [[0,
|
|
672
|
+
}, _callee2, null, [[0, 10]]);
|
|
617
673
|
}));
|
|
618
674
|
return function submitExport() {
|
|
619
675
|
return _ref2.apply(this, arguments);
|
|
@@ -58,7 +58,10 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
58
58
|
if (props.isShow) {
|
|
59
59
|
form.resetFields(); // 重置表单数据
|
|
60
60
|
setEventAttrList([]);
|
|
61
|
+
setTriTagId(undefined);
|
|
61
62
|
setIsChange(false);
|
|
63
|
+
getTagList(2);
|
|
64
|
+
getTagList(3);
|
|
62
65
|
}
|
|
63
66
|
}, [props.isShow]);
|
|
64
67
|
var submit = /*#__PURE__*/function () {
|
|
@@ -98,10 +101,13 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
98
101
|
eventName: values.eventName,
|
|
99
102
|
aliasName: values.aliasName,
|
|
100
103
|
demandId: values.demandId,
|
|
101
|
-
triggeringOccasion: values.triggeringOccasion,
|
|
104
|
+
// triggeringOccasion: values.triggeringOccasion,
|
|
102
105
|
eventAttrList: eventAttrList,
|
|
103
106
|
platformStr: values === null || values === void 0 ? void 0 : values.maidianID.join(),
|
|
104
|
-
remark: values === null || values === void 0 ? void 0 : values.remark
|
|
107
|
+
remark: values === null || values === void 0 ? void 0 : values.remark,
|
|
108
|
+
businessLabelId: values.businessLabelId,
|
|
109
|
+
triggerLabelId: triTagId,
|
|
110
|
+
triggeringOccasion: triTagInput
|
|
105
111
|
}
|
|
106
112
|
}).then(function (res) {
|
|
107
113
|
if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
|
|
@@ -402,20 +408,78 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
402
408
|
};
|
|
403
409
|
// 埋点平台列表
|
|
404
410
|
var _useState19 = useState([{
|
|
411
|
+
label: 'Unknown',
|
|
412
|
+
value: 0
|
|
413
|
+
}, {
|
|
405
414
|
label: 'JS',
|
|
406
|
-
value:
|
|
415
|
+
value: 3
|
|
407
416
|
}, {
|
|
408
417
|
label: 'Android',
|
|
409
|
-
value:
|
|
418
|
+
value: 1
|
|
410
419
|
}, {
|
|
411
420
|
label: 'IOS',
|
|
412
|
-
value:
|
|
421
|
+
value: 2
|
|
422
|
+
},
|
|
423
|
+
// { label: '其他', value: 99 },
|
|
424
|
+
{
|
|
425
|
+
label: '微信小程序',
|
|
426
|
+
value: 4
|
|
427
|
+
}, {
|
|
428
|
+
label: '服务端',
|
|
429
|
+
value: 5
|
|
413
430
|
}, {
|
|
414
|
-
label: '
|
|
415
|
-
value:
|
|
431
|
+
label: '鸿蒙',
|
|
432
|
+
value: 6
|
|
416
433
|
}]),
|
|
417
434
|
_useState20 = _slicedToArray(_useState19, 1),
|
|
418
435
|
maidianList = _useState20[0];
|
|
436
|
+
var _useState21 = useState([]),
|
|
437
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
438
|
+
bizTag = _useState22[0],
|
|
439
|
+
setBizTag = _useState22[1];
|
|
440
|
+
var _useState23 = useState([]),
|
|
441
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
442
|
+
triTag = _useState24[0],
|
|
443
|
+
setTriTag = _useState24[1];
|
|
444
|
+
var _useState25 = useState(),
|
|
445
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
446
|
+
triTagId = _useState26[0],
|
|
447
|
+
setTriTagId = _useState26[1];
|
|
448
|
+
var _useState27 = useState(),
|
|
449
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
450
|
+
triTagInput = _useState28[0],
|
|
451
|
+
setTriTagInput = _useState28[1];
|
|
452
|
+
//标签列表数据 2:业务标签 3:触发标签
|
|
453
|
+
var getTagList = function getTagList(type) {
|
|
454
|
+
request(apis.dict.eventTag, {
|
|
455
|
+
method: 'post',
|
|
456
|
+
data: {
|
|
457
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.id,
|
|
458
|
+
labelType: type
|
|
459
|
+
}
|
|
460
|
+
}).then(function (res) {
|
|
461
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
462
|
+
switch (type) {
|
|
463
|
+
case 2:
|
|
464
|
+
setBizTag(res.data.map(function (res) {
|
|
465
|
+
return {
|
|
466
|
+
label: res.labelName,
|
|
467
|
+
value: res.id
|
|
468
|
+
};
|
|
469
|
+
}));
|
|
470
|
+
break;
|
|
471
|
+
case 3:
|
|
472
|
+
setTriTag(res.data.map(function (res) {
|
|
473
|
+
return {
|
|
474
|
+
label: res.labelName,
|
|
475
|
+
value: res.id
|
|
476
|
+
};
|
|
477
|
+
}));
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
};
|
|
419
483
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Drawer, {
|
|
420
484
|
className: classPrefix,
|
|
421
485
|
width: 1000,
|
|
@@ -485,14 +549,42 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
485
549
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
486
550
|
name: "triggeringOccasion",
|
|
487
551
|
label: "\u89E6\u53D1\u65F6\u673A"
|
|
488
|
-
}, /*#__PURE__*/React.createElement(
|
|
552
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
553
|
+
allowClear: true,
|
|
554
|
+
style: {
|
|
555
|
+
border: 0,
|
|
556
|
+
width: '160px',
|
|
557
|
+
marginRight: '10px'
|
|
558
|
+
},
|
|
559
|
+
placeholder: "\u8BF7\u8F93\u5165\u89E6\u53D1\u6807\u7B7E",
|
|
560
|
+
defaultValue: triTagId,
|
|
561
|
+
options: triTag,
|
|
562
|
+
onChange: function onChange(value) {
|
|
563
|
+
setTriTagId(value);
|
|
564
|
+
setIsChange(true);
|
|
565
|
+
}
|
|
566
|
+
}), "\u6216", /*#__PURE__*/React.createElement(Input, {
|
|
489
567
|
style: {
|
|
490
|
-
border: 0
|
|
568
|
+
border: 0,
|
|
569
|
+
width: 'calc(100% - 195px)',
|
|
570
|
+
marginLeft: '10px'
|
|
491
571
|
},
|
|
492
572
|
placeholder: "\u8BF7\u8F93\u5165\u89E6\u53D1\u65F6\u673A\uFF0C\u4F8B\u5982\uFF1A\u7528\u6237\u70B9\u51FB\u786E\u8BA4\u6309\u94AE",
|
|
573
|
+
defaultValue: triTagInput,
|
|
493
574
|
showCount: true,
|
|
494
575
|
maxLength: 128,
|
|
495
576
|
onChange: function onChange(e) {
|
|
577
|
+
setTriTagInput(e.target.value);
|
|
578
|
+
setIsChange(true);
|
|
579
|
+
}
|
|
580
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
581
|
+
name: "businessLabelId",
|
|
582
|
+
label: "\u4E1A\u52A1\u6807\u7B7E"
|
|
583
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
584
|
+
allowClear: true,
|
|
585
|
+
placeholder: "\u8BF7\u8F93\u5165\u4E1A\u52A1\u6807\u7B7E",
|
|
586
|
+
options: bizTag,
|
|
587
|
+
onChange: function onChange() {
|
|
496
588
|
setIsChange(true);
|
|
497
589
|
}
|
|
498
590
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
@@ -18,15 +18,15 @@ var classNames = 'devModel';
|
|
|
18
18
|
export default (function (props) {
|
|
19
19
|
var _useState = useState([{
|
|
20
20
|
name: 'JS',
|
|
21
|
-
id: '
|
|
21
|
+
id: '3',
|
|
22
22
|
icon: 'a-js2'
|
|
23
23
|
}, {
|
|
24
|
-
name: '
|
|
25
|
-
id: '
|
|
24
|
+
name: 'Android',
|
|
25
|
+
id: '1',
|
|
26
26
|
icon: 'ios1'
|
|
27
27
|
}, {
|
|
28
|
-
name: '
|
|
29
|
-
id: '
|
|
28
|
+
name: 'IOS',
|
|
29
|
+
id: '2',
|
|
30
30
|
icon: 'android1'
|
|
31
31
|
}, {
|
|
32
32
|
name: '更多',
|
|
@@ -11,8 +11,8 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
11
11
|
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; } }
|
|
12
12
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
13
|
import { Tooltip, message } from 'antd';
|
|
14
|
-
import React, { useEffect, useRef, useState } from 'react';
|
|
15
|
-
import { BizEventSelector, BizAttrConditionGroup, IconFont } from '@zgfe/business-lib';
|
|
14
|
+
import React, { useEffect, useRef, useState, useContext } from 'react';
|
|
15
|
+
import { BizEventSelector, BizAttrConditionGroup, IconFont, BizGlobalDataContext } from '@zgfe/business-lib';
|
|
16
16
|
import './styles/index.less';
|
|
17
17
|
var classPrefix = 'virtual-event-eventfilter-box';
|
|
18
18
|
var EventFilter = function EventFilter(props) {
|
|
@@ -20,6 +20,8 @@ var EventFilter = function EventFilter(props) {
|
|
|
20
20
|
index = props.index,
|
|
21
21
|
virtualDrawerType = props.virtualDrawerType,
|
|
22
22
|
selectList = props.selectList;
|
|
23
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
24
|
+
envs = _useContext.envs;
|
|
23
25
|
// 筛选条件个数
|
|
24
26
|
var _useState = useState(props.value && props.value.filters && props.value.filters.conditions ? props.value.filters.conditions.length : 0),
|
|
25
27
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -56,8 +58,8 @@ var EventFilter = function EventFilter(props) {
|
|
|
56
58
|
// 添加筛选
|
|
57
59
|
var onAdd = function onAdd() {
|
|
58
60
|
// 最多可添加5条属性筛选
|
|
59
|
-
if (count >= 5) {
|
|
60
|
-
message.error(
|
|
61
|
+
if (count >= ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 5)) {
|
|
62
|
+
message.error("\u6700\u591A\u53EF\u6DFB\u52A0".concat((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 5, "\u6761\u5C5E\u6027\u7B5B\u9009"));
|
|
61
63
|
return;
|
|
62
64
|
}
|
|
63
65
|
if (selectList.length <= 0) {
|
|
@@ -122,7 +124,7 @@ var EventFilter = function EventFilter(props) {
|
|
|
122
124
|
placement: "top",
|
|
123
125
|
title: '添加属性筛选'
|
|
124
126
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
125
|
-
className: "".concat(count < 5 && selectList.length > 0 ? '' : 'disable'),
|
|
127
|
+
className: "".concat(count < ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 5) && selectList.length > 0 ? '' : 'disable'),
|
|
126
128
|
type: "shaixuan",
|
|
127
129
|
onClick: function onClick() {
|
|
128
130
|
return onAdd();
|
|
@@ -139,7 +139,6 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
139
139
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
140
140
|
eventMoveShow = _useState8[0],
|
|
141
141
|
setEventMoveShow = _useState8[1];
|
|
142
|
-
var eventMoveChangeId = -1;
|
|
143
142
|
var _useState9 = useState([]),
|
|
144
143
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
145
144
|
eventMoveOption = _useState10[0],
|
|
@@ -160,7 +159,6 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
160
159
|
if (data.length > 0) {
|
|
161
160
|
setEventMoveShow(groupId);
|
|
162
161
|
dmEventGroupId = groupId;
|
|
163
|
-
eventMoveChangeId = data.groupingOption[0].value;
|
|
164
162
|
dmEventMoveChangeId = data.groupingOption[0].value;
|
|
165
163
|
} else {
|
|
166
164
|
setEventMoveShow(undefined);
|
|
@@ -197,7 +195,6 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
197
195
|
});
|
|
198
196
|
};
|
|
199
197
|
var moveContent = function moveContent() {
|
|
200
|
-
eventMoveChangeId = eventMoveOption[0].value || -1;
|
|
201
198
|
return /*#__PURE__*/React.createElement("div", {
|
|
202
199
|
className: "move-content"
|
|
203
200
|
}, /*#__PURE__*/React.createElement("div", null, "\u5C06", eventMoveLength, "\u4E2A\u6307\u6807\u79FB\u52A8\u5230\u4EE5\u4E0B\u5206\u7EC4"), /*#__PURE__*/React.createElement("div", null, "\u9009\u62E9\u5206\u7EC4", ' ', /*#__PURE__*/React.createElement(Select, {
|
|
@@ -206,7 +203,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
206
203
|
width: 120
|
|
207
204
|
},
|
|
208
205
|
onChange: function onChange(id) {
|
|
209
|
-
|
|
206
|
+
dmEventMoveChangeId = id;
|
|
210
207
|
},
|
|
211
208
|
options: eventMoveOption
|
|
212
209
|
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -93,7 +93,7 @@ var panelList = function panelList(props) {
|
|
|
93
93
|
onClick: function onClick() {
|
|
94
94
|
routerPanel(text);
|
|
95
95
|
}
|
|
96
|
-
},
|
|
96
|
+
}, "\u94FE\u63A5");
|
|
97
97
|
}
|
|
98
98
|
}];
|
|
99
99
|
// 用户属性列表
|
|
@@ -120,7 +120,9 @@ var panelList = function panelList(props) {
|
|
|
120
120
|
pie: '饼图',
|
|
121
121
|
number: '数值',
|
|
122
122
|
grid: '表格',
|
|
123
|
-
funnelBar: '漏斗图'
|
|
123
|
+
funnelBar: '漏斗图',
|
|
124
|
+
map: '地图',
|
|
125
|
+
boxplot: '盒须图'
|
|
124
126
|
};
|
|
125
127
|
//查询看板列表
|
|
126
128
|
var eventCiteEvent = function eventCiteEvent() {
|
|
@@ -18,6 +18,14 @@ interface DataType {
|
|
|
18
18
|
owner: string;
|
|
19
19
|
triggeringOccasion: string;
|
|
20
20
|
canDel: boolean;
|
|
21
|
+
businessLabelId: number;
|
|
22
|
+
triggerLabelId: number;
|
|
23
|
+
triggerLabel: labelData;
|
|
24
|
+
businessLabel: labelData;
|
|
25
|
+
}
|
|
26
|
+
interface labelData {
|
|
27
|
+
labelName: string;
|
|
28
|
+
id: number;
|
|
21
29
|
}
|
|
22
30
|
interface queryPlanType {
|
|
23
31
|
unexpectedPropList: string[];
|