@zgfe/modules-dm 1.0.57-zhongyuan.76 → 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.
@@ -18,7 +18,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
18
18
  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; } }
19
19
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
20
20
  import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
21
- import { Input, Table, Select, message, Modal, Popover, Space, Radio, Checkbox, Form, Button, notification, Typography, Tag, Drawer } from 'antd';
21
+ import { Input, Table, Select, message, Modal, Popover, Space, Radio, Checkbox, Form, Button, notification, Typography, Tag, Drawer, Tooltip } from 'antd';
22
22
  import request from '../../../utils/ajax';
23
23
  import apis from '../../../constants/api';
24
24
  import React, { useEffect, useState, useContext } from 'react';
@@ -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,28 +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(',').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 + '' == item;
902
+ return obj.value == item;
864
903
  })[0]) === null || _maidianList$filter$ === void 0 ? void 0 : _maidianList$filter$.label);
865
- }), /*#__PURE__*/React.createElement(IconFont, {
866
- type: "bianji1",
867
- onClick: function onClick() {
868
- setIsMaidianModal(true);
869
- text && setCurrentMaidian(text.split(','));
870
- setCurrentRow(record);
871
- }
872
- }));
904
+ }) : text.split(',').slice(0, 3).map(function (item, index) {
905
+ var _maidianList$filter$2;
906
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
907
+ placement: "top",
908
+ title: getName(text).join()
909
+ }, /*#__PURE__*/React.createElement(Tag, {
910
+ key: index
911
+ }, (_maidianList$filter$2 = maidianList.filter(function (obj) {
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, "..."));
873
915
  }
874
916
  }, {
875
917
  title: '末次上报时间',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.57-zhongyuan.76",
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": "b4fb83b97bc310bc21dd5e06fffa35e849d85137",
60
+ "gitHead": "16f3f5e3572db2b0a6bdacc19b0d45fe91acd89f",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }