@zgfe/modules-dm 1.0.57-zhongyuan.77 → 1.0.57-zhongyuan.78
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.
|
@@ -672,6 +672,18 @@ var TablePlus = function TablePlus(props) {
|
|
|
672
672
|
}
|
|
673
673
|
});
|
|
674
674
|
};
|
|
675
|
+
var getName = function getName(str) {
|
|
676
|
+
var arrName = [];
|
|
677
|
+
if (str) {
|
|
678
|
+
str.split(',').forEach(function (o) {
|
|
679
|
+
var _maidianList$find;
|
|
680
|
+
arrName.push((_maidianList$find = maidianList.find(function (j) {
|
|
681
|
+
return j.value == o;
|
|
682
|
+
})) === null || _maidianList$find === void 0 ? void 0 : _maidianList$find.label);
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
return arrName;
|
|
686
|
+
};
|
|
675
687
|
var columns = [{
|
|
676
688
|
title: (/*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(IconFont, {
|
|
677
689
|
style: {
|
|
@@ -848,38 +860,58 @@ var TablePlus = function TablePlus(props) {
|
|
|
848
860
|
}));
|
|
849
861
|
}
|
|
850
862
|
}, {
|
|
851
|
-
title: '
|
|
863
|
+
title: '实际埋点平台',
|
|
864
|
+
dataIndex: 'plats',
|
|
865
|
+
key: 'plats',
|
|
866
|
+
width: 260,
|
|
867
|
+
render: function render(text, record) {
|
|
868
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
869
|
+
className: "event_attrs"
|
|
870
|
+
}, text && (text.length <= 3 ? text.map(function (item, index) {
|
|
871
|
+
var _maidianList$find2;
|
|
872
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
873
|
+
key: index
|
|
874
|
+
}, (_maidianList$find2 = maidianList.find(function (obj) {
|
|
875
|
+
return obj.value == item + '';
|
|
876
|
+
})) === null || _maidianList$find2 === void 0 ? void 0 : _maidianList$find2.label);
|
|
877
|
+
}) : text.slice(0, 3).map(function (item, index) {
|
|
878
|
+
var _maidianList$find3;
|
|
879
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
880
|
+
placement: "top",
|
|
881
|
+
title: getName(text.join()).join()
|
|
882
|
+
}, /*#__PURE__*/React.createElement(Tag, {
|
|
883
|
+
key: index
|
|
884
|
+
}, (_maidianList$find3 = maidianList.find(function (obj) {
|
|
885
|
+
return obj.value == item + '';
|
|
886
|
+
})) === null || _maidianList$find3 === void 0 ? void 0 : _maidianList$find3.label)));
|
|
887
|
+
})), text && text.length > 3 && /*#__PURE__*/React.createElement("span", null, "..."));
|
|
888
|
+
}
|
|
889
|
+
}, {
|
|
890
|
+
title: '预期埋点平台',
|
|
852
891
|
dataIndex: 'platformStr',
|
|
853
892
|
key: 'platformStr',
|
|
854
893
|
width: 260,
|
|
855
894
|
render: function render(text, record) {
|
|
856
895
|
return /*#__PURE__*/React.createElement("div", {
|
|
857
896
|
className: "event_attrs"
|
|
858
|
-
}, text && text.split(',').length <= 3 ? text.split(',').map(function (item, index) {
|
|
897
|
+
}, text && (text.split(',').length <= 3 ? text.split(',').map(function (item, index) {
|
|
859
898
|
var _maidianList$filter$;
|
|
860
899
|
return /*#__PURE__*/React.createElement(Tag, {
|
|
861
900
|
key: index
|
|
862
901
|
}, (_maidianList$filter$ = maidianList.filter(function (obj) {
|
|
863
|
-
return obj.value
|
|
902
|
+
return obj.value == item;
|
|
864
903
|
})[0]) === null || _maidianList$filter$ === void 0 ? void 0 : _maidianList$filter$.label);
|
|
865
904
|
}) : text.split(',').slice(0, 3).map(function (item, index) {
|
|
866
905
|
var _maidianList$filter$2;
|
|
867
906
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
868
907
|
placement: "top",
|
|
869
|
-
title: text
|
|
908
|
+
title: getName(text).join()
|
|
870
909
|
}, /*#__PURE__*/React.createElement(Tag, {
|
|
871
910
|
key: index
|
|
872
911
|
}, (_maidianList$filter$2 = maidianList.filter(function (obj) {
|
|
873
|
-
return obj.value
|
|
874
|
-
})[0]) === null || _maidianList$filter$2 === void 0 ? void 0 : _maidianList$filter$2.label))
|
|
875
|
-
}), /*#__PURE__*/React.createElement(
|
|
876
|
-
type: "bianji1",
|
|
877
|
-
onClick: function onClick() {
|
|
878
|
-
setIsMaidianModal(true);
|
|
879
|
-
text && setCurrentMaidian(text.split(','));
|
|
880
|
-
setCurrentRow(record);
|
|
881
|
-
}
|
|
882
|
-
}));
|
|
912
|
+
return obj.value == item;
|
|
913
|
+
})[0]) === null || _maidianList$filter$2 === void 0 ? void 0 : _maidianList$filter$2.label)));
|
|
914
|
+
})), text && text.split(',').length > 3 && /*#__PURE__*/React.createElement("span", null, "..."));
|
|
883
915
|
}
|
|
884
916
|
}, {
|
|
885
917
|
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.78",
|
|
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": "16f3f5e3572db2b0a6bdacc19b0d45fe91acd89f",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|