@zgfe/modules-dm 1.0.57-zhongyuan.81 → 1.0.57-zhongyuan.82
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.
|
@@ -105,10 +105,9 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
105
105
|
var _useState27 = useState([{
|
|
106
106
|
label: '全部埋点平台',
|
|
107
107
|
value: -1
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}, {
|
|
108
|
+
},
|
|
109
|
+
// { label: 'Unknown', value: 0 },
|
|
110
|
+
{
|
|
112
111
|
label: 'JS',
|
|
113
112
|
value: 3
|
|
114
113
|
}, {
|
|
@@ -453,10 +452,8 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
453
452
|
if (_renderData && _renderData.length > 0 && _renderData[0].groupId == undefined) {
|
|
454
453
|
_renderData.map(function (item) {
|
|
455
454
|
groupData.map(function (_item) {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
var _item$_groupId2;
|
|
459
|
-
_tempGroupIdList.push((_item$_groupId2 = item._groupId) !== null && _item$_groupId2 !== void 0 ? _item$_groupId2 : _item.groupId);
|
|
455
|
+
if (_item.groupId === item._groupId && _tempGroupIdList.indexOf(item._groupId) === -1) {
|
|
456
|
+
_tempGroupIdList.push(item._groupId);
|
|
460
457
|
_tempRenderData.push(_item);
|
|
461
458
|
}
|
|
462
459
|
});
|
|
@@ -407,10 +407,9 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
407
407
|
return true;
|
|
408
408
|
};
|
|
409
409
|
// 埋点平台列表
|
|
410
|
-
var _useState19 = useState([
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
}, {
|
|
410
|
+
var _useState19 = useState([
|
|
411
|
+
// { label: 'Unknown', value: 0 },
|
|
412
|
+
{
|
|
414
413
|
label: 'JS',
|
|
415
414
|
value: 3
|
|
416
415
|
}, {
|
|
@@ -494,10 +494,9 @@ var TablePlus = function TablePlus(props) {
|
|
|
494
494
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
495
495
|
currentRow = _useState28[0],
|
|
496
496
|
setCurrentRow = _useState28[1];
|
|
497
|
-
var _useState29 = useState([
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
}, {
|
|
497
|
+
var _useState29 = useState([
|
|
498
|
+
// { label: 'Unknown', value: '0' },
|
|
499
|
+
{
|
|
501
500
|
label: 'JS',
|
|
502
501
|
value: '3'
|
|
503
502
|
}, {
|
|
@@ -868,26 +867,29 @@ var TablePlus = function TablePlus(props) {
|
|
|
868
867
|
key: 'plats',
|
|
869
868
|
width: 260,
|
|
870
869
|
render: function render(text, record) {
|
|
870
|
+
var arr = text ? text.filter(function (o) {
|
|
871
|
+
return o != 0;
|
|
872
|
+
}) : [];
|
|
871
873
|
return /*#__PURE__*/React.createElement("div", {
|
|
872
874
|
className: "event_attrs"
|
|
873
|
-
},
|
|
875
|
+
}, arr && (arr.length <= 3 ? arr.map(function (item, index) {
|
|
874
876
|
var _maidianList$find2;
|
|
875
877
|
return /*#__PURE__*/React.createElement(Tag, {
|
|
876
878
|
key: index
|
|
877
879
|
}, (_maidianList$find2 = maidianList.find(function (obj) {
|
|
878
880
|
return obj.value == item + '';
|
|
879
881
|
})) === null || _maidianList$find2 === void 0 ? void 0 : _maidianList$find2.label);
|
|
880
|
-
}) :
|
|
882
|
+
}) : arr.slice(0, 3).map(function (item, index) {
|
|
881
883
|
var _maidianList$find3;
|
|
882
884
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
883
885
|
placement: "top",
|
|
884
|
-
title: getName(
|
|
886
|
+
title: getName(arr.join()).join()
|
|
885
887
|
}, /*#__PURE__*/React.createElement(Tag, {
|
|
886
888
|
key: index
|
|
887
889
|
}, (_maidianList$find3 = maidianList.find(function (obj) {
|
|
888
890
|
return obj.value == item + '';
|
|
889
891
|
})) === null || _maidianList$find3 === void 0 ? void 0 : _maidianList$find3.label)));
|
|
890
|
-
})),
|
|
892
|
+
})), arr && arr.length > 3 && /*#__PURE__*/React.createElement("span", null, "..."));
|
|
891
893
|
}
|
|
892
894
|
}, {
|
|
893
895
|
title: '预期埋点平台',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.57-zhongyuan.
|
|
3
|
+
"version": "1.0.57-zhongyuan.82",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"umi-request": "^1.4.0",
|
|
58
58
|
"yorkie": "^2.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "9bc823b835e5613e4da0aadfaf4ffefd6fb02184",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|