@zgfe/modules-event 1.0.29-zhongyuan.25 → 1.0.29-zhongyuan.26

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/README.md CHANGED
@@ -1,35 +1,37 @@
1
- # modules-event
2
-
3
- 事件分析
4
-
5
- ## Getting Started
6
-
7
- Install dependencies,
8
-
9
- ```bash
10
- $ npm i
11
- ```
12
-
13
- Start the dev server,
14
-
15
- ```bash
16
- $ npm start
17
- ```
18
-
19
- Build documentation,
20
-
21
- ```bash
22
- $ npm run docs:build
23
- ```
24
-
25
- Run test,
26
-
27
- ```bash
28
- $ npm test
29
- ```
30
-
31
- Build library via `father-build`,
32
-
33
- ```bash
34
- $ npm run build
35
- ```
1
+ # modules-event
2
+
3
+ 事件分析
4
+
5
+ ## Getting Started
6
+
7
+ Install dependencies,
8
+
9
+ ```bash
10
+ $ npm i
11
+ ```
12
+
13
+ Start the dev server,
14
+
15
+ ```bash
16
+ $ npm start
17
+ ```
18
+
19
+ Build documentation,
20
+
21
+ ```bash
22
+ $ npm run docs:build
23
+ ```
24
+
25
+ Run test,
26
+
27
+ ```bash
28
+ $ npm test
29
+ ```
30
+
31
+ Build library via `father-build`,
32
+
33
+ ```bash
34
+ $ npm run build
35
+ ```
36
+
37
+ pub
@@ -73,10 +73,10 @@ var EventTable = function EventTable(props) {
73
73
  _useState12 = _slicedToArray(_useState11, 2),
74
74
  total = _useState12[0],
75
75
  setTotal = _useState12[1];
76
- var _useState13 = useState(),
76
+ var _useState13 = useState([]),
77
77
  _useState14 = _slicedToArray(_useState13, 2),
78
- pvTitle = _useState14[0],
79
- setPvTitle = _useState14[1];
78
+ userGroupEventCounts = _useState14[0],
79
+ setUserGroupEventCounts = _useState14[1];
80
80
  useEffect(function () {
81
81
  var gLen = (searchData === null || searchData === void 0 ? void 0 : searchData.dimension) ? 1 : 0;
82
82
  var _data = formTableData(dataSource, searchData.userGroup || [0], gLen);
@@ -102,9 +102,7 @@ var EventTable = function EventTable(props) {
102
102
  data.attrSum = sum;
103
103
  dataAll.push(data);
104
104
  });
105
- setPvTitle(dataSource.eventPvTitle.split(';').map(function (item) {
106
- return item.split(' ');
107
- }));
105
+ setUserGroupEventCounts(dataSource.userGroupEventCounts);
108
106
  }
109
107
  setTableData([].concat(dataAll, _toConsumableArray(_data)));
110
108
  }, []);
@@ -231,15 +229,18 @@ var EventTable = function EventTable(props) {
231
229
  className: "".concat(classPrefix, "-table-header")
232
230
  }, /*#__PURE__*/React.createElement("span", {
233
231
  className: "".concat(classPrefix, "-table-header-left")
234
- }, "\u6307\u6807\u8BE6\u60C5", pvTitle && pvTitle.length ? /*#__PURE__*/React.createElement("div", {
232
+ }, /*#__PURE__*/React.createElement("span", null, "\u6307\u6807\u8BE6\u60C5"), userGroupEventCounts && userGroupEventCounts.length ? /*#__PURE__*/React.createElement("div", {
235
233
  className: "".concat(classPrefix, "-table-header-left-box")
236
- }, "\uFF08\u4E8B\u4EF6\u603B\u91CF\uFF1A", /*#__PURE__*/React.createElement("div", {
237
- className: "".concat(classPrefix, "-table-header-left-content")
238
- }, pvTitle.map(function (item, index) {
239
- return /*#__PURE__*/React.createElement(Tooltip, {
240
- title: item[0] + ':' + item[1],
241
- key: index
242
- }, /*#__PURE__*/React.createElement("span", null, item[0], "\uFF1A"), /*#__PURE__*/React.createElement("span", null, item[1], index === pvTitle.length - 1 ? '' : ' | '));
234
+ }, /*#__PURE__*/React.createElement("span", null, "\uFF08\u4E8B\u4EF6\u89E6\u53D1\u6B21\u6570\uFF1A"), /*#__PURE__*/React.createElement(Tooltip, {
235
+ overlayStyle: {
236
+ maxWidth: '500px'
237
+ },
238
+ placement: "topLeft",
239
+ title: userGroupEventCounts.map(function (item) {
240
+ return item.num + '【群组名称:' + item.groupName + '';
241
+ }).join('|')
242
+ }, userGroupEventCounts.map(function (item, index) {
243
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", null, item.num), /*#__PURE__*/React.createElement("span", null, "\u3010\u7FA4\u7EC4\u540D\u79F0\uFF1A", item.groupName, "\u3011", index !== userGroupEventCounts.length - 1 && ' | '));
243
244
  }), "\uFF09")) : null), /*#__PURE__*/React.createElement("div", null, authority[100051] && /*#__PURE__*/React.createElement("div", {
244
245
  onClick: seeSql
245
246
  }, "\u67E5\u770BSQL"), authority[100050] && showProdDownload && /*#__PURE__*/React.createElement("div", {
@@ -49,12 +49,14 @@
49
49
  flex: 1;
50
50
  flex-direction: row;
51
51
  overflow: hidden;
52
+ span:first-child {
53
+ flex: 0 0 57px;
54
+ }
52
55
  &-box {
53
- display: flex;
54
- flex: 1;
55
- flex-direction: row;
56
56
  overflow: hidden;
57
57
  color: #67727f;
58
+ white-space: nowrap;
59
+ text-overflow: ellipsis;
58
60
  }
59
61
  &-content {
60
62
  display: flex;
@@ -62,20 +64,13 @@
62
64
  flex-direction: row;
63
65
  overflow: hidden;
64
66
  color: #67727f;
67
+ white-space: nowrap;
68
+ text-overflow: ellipsis;
65
69
  > span {
66
70
  display: flex;
67
71
  flex-direction: row;
68
72
  max-width: 33.33%;
69
73
  overflow: hidden;
70
- :first-child {
71
- overflow: hidden;
72
- white-space: nowrap;
73
- text-overflow: ellipsis;
74
- }
75
- :nth-child(2) {
76
- flex: 1;
77
- white-space: nowrap;
78
- }
79
74
  }
80
75
  }
81
76
  }
@@ -1,62 +1,49 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/variable.less';
2
- .event-form-data {
3
- &-table-td {
4
- padding: 0 !important;
5
-
6
- &-show {
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
- min-width: 60px;
11
- height: 48px;
12
- cursor: pointer;
13
- span {
14
- width: 10px;
15
- height: 10px;
16
- border-radius: 50%;
17
- cursor: pointer;
18
- }
19
- }
20
-
21
- &-name {
22
- display: flex;
23
- align-items: center;
24
- .bsicon {
25
- margin-right: 4px;
26
- color: #fd9f41;
27
- }
28
-
29
- &-content {
30
- display: inline-block;
31
- max-width: 300px;
32
- overflow: hidden;
33
- white-space: nowrap;
34
- text-overflow: ellipsis;
35
- cursor: pointer;
36
- }
37
- }
38
-
39
- &-link {
40
- display: flex;
41
- justify-content: flex-end;
42
- &:hover {
43
- .a-yanjingkai {
44
- display: block;
45
- }
46
- }
47
- .a-yanjingkai {
48
- display: none;
49
- margin-right: 10px;
50
- }
51
- }
52
- &-link:not(.not-to-detail) {
53
- cursor: pointer;
54
- &:hover {
55
- color: @primary-color;
56
- }
57
- }
58
- }
59
- &-table-event-data {
60
- text-align: right !important;
61
- }
62
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/variable.less';
2
+ .event-form-data {
3
+ &-table-td {
4
+ padding: 0 !important;
5
+
6
+ &-show {
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ min-width: 60px;
11
+ height: 48px;
12
+ cursor: pointer;
13
+ span {
14
+ width: 10px;
15
+ height: 10px;
16
+ border-radius: 50%;
17
+ cursor: pointer;
18
+ }
19
+ }
20
+
21
+ &-name {
22
+ display: flex;
23
+ align-items: center;
24
+ .bsicon {
25
+ margin-right: 4px;
26
+ color: #fd9f41;
27
+ }
28
+
29
+ &-content {
30
+ display: inline-block;
31
+ max-width: 300px;
32
+ overflow: hidden;
33
+ white-space: nowrap;
34
+ text-overflow: ellipsis;
35
+ cursor: pointer;
36
+ }
37
+ }
38
+ &-link:not(.not-to-detail) {
39
+ text-decoration: underline;
40
+ cursor: pointer;
41
+ &:hover {
42
+ color: @primary-color;
43
+ }
44
+ }
45
+ }
46
+ &-table-event-data {
47
+ text-align: right !important;
48
+ }
49
+ }
package/es/types.d.ts CHANGED
@@ -69,6 +69,7 @@ export interface ResponseDataProps {
69
69
  [k: string]: number[];
70
70
  }];
71
71
  eventPvTitle: string;
72
+ userGroupEventCounts: any[];
72
73
  }
73
74
  export interface SeriesProps {
74
75
  names?: string[];
@@ -195,9 +195,7 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
195
195
  onClick: function onClick() {
196
196
  !record.isAdd && click ? onClickToDetailCallback(record, columnData[i], text) : null;
197
197
  }
198
- }, !record.isAdd && click && /*#__PURE__*/React.createElement(IconFont, {
199
- type: "a-yanjingkai"
200
- }), text);
198
+ }, text);
201
199
  }
202
200
  });
203
201
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-event",
3
- "version": "1.0.29-zhongyuan.25",
3
+ "version": "1.0.29-zhongyuan.26",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "private": false,
@@ -54,7 +54,7 @@
54
54
  "react": "^16.12.0 || ^17.0.0",
55
55
  "yorkie": "^2.0.0"
56
56
  },
57
- "gitHead": "6ceab13dbbc5574ea49e0027329d5f173ab9045b",
57
+ "gitHead": "59a0aa05cde75d92d5be09d230608aafe3097d33",
58
58
  "gitHooks": {
59
59
  "pre-commit": "lint-staged"
60
60
  }