@zgfe/modules-event 1.0.29-zhongyuan.10 → 1.0.29-zhongyuan.12

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.
@@ -201,7 +201,8 @@ var EventFilter = function EventFilter(props) {
201
201
  propCategory: attr.propCategory,
202
202
  category: attr.category,
203
203
  value: _value,
204
- id: attr.id
204
+ id: attr.id,
205
+ encryptionType: attr.encryptionType
205
206
  });
206
207
  }
207
208
  };
@@ -9,6 +9,7 @@ export interface ConditionsnProps {
9
9
  attrName?: string | undefined;
10
10
  label?: string | undefined;
11
11
  dimensionSub?: string | undefined;
12
+ encryptionType?: number;
12
13
  }
13
14
  export interface EventFilterProps {
14
15
  value?: eventProps | number[];
@@ -91,9 +91,12 @@ var EventTable = function EventTable(props) {
91
91
  originalName: '总计',
92
92
  userGroup: Object.keys(item)[0]
93
93
  };
94
+ var sum = 0;
94
95
  Object.values(item)[0].forEach(function (item, index) {
95
96
  data["field".concat(index)] = item;
97
+ sum += item;
96
98
  });
99
+ data.attrSum = sum;
97
100
  dataAll.push(data);
98
101
  });
99
102
  setPvTitle(dataSource.eventPvTitle.split(';').map(function (item) {
@@ -109,7 +112,7 @@ var EventTable = function EventTable(props) {
109
112
  props.changeShowByName(nameGroup);
110
113
  };
111
114
  var onClickToDetail = function onClickToDetail(item, time, count) {
112
- var _searchData$filters;
115
+ var _searchData$dimension, _searchData$filters;
113
116
  var userGroupData = userGroup[0] == null ? [] : [userGroup[0]];
114
117
  if ((userGroup === null || userGroup === void 0 ? void 0 : userGroup.length) > 1) {
115
118
  userGroupList && userGroupList.forEach(function (user) {
@@ -121,7 +124,7 @@ var EventTable = function EventTable(props) {
121
124
  var _time = time.split('|');
122
125
  var groupValue = '';
123
126
  if (searchData.dimension && item.dimension) {
124
- groupValue = item.dimension;
127
+ groupValue = item.originalName;
125
128
  } else {
126
129
  eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (group) {
127
130
  group.eventList.forEach(function (event) {
@@ -138,6 +141,7 @@ var EventTable = function EventTable(props) {
138
141
  module: 'event',
139
142
  params: {
140
143
  groupValue: groupValue,
144
+ groupValueEncry: (((_searchData$dimension = searchData.dimension) === null || _searchData$dimension === void 0 ? void 0 : _searchData$dimension.encryptionType) || 0) > 0,
141
145
  id: searchData.id,
142
146
  userGroup: userGroupData,
143
147
  chartType: searchData.chartType,
@@ -11,7 +11,7 @@ import './styles/index.less';
11
11
  import { requestConfig } from '../../../utils/ajaxConfig';
12
12
  import { Button } from 'antd';
13
13
  export default (function () {
14
- var _useState = useState(false),
14
+ var _useState = useState(true),
15
15
  _useState2 = _slicedToArray(_useState, 2),
16
16
  isDetail = _useState2[0],
17
17
  setIsDetail = _useState2[1];
@@ -24,6 +24,9 @@ export default (function () {
24
24
  setSearchParams = _useState6[1];
25
25
  useEffect(function () {
26
26
  setGlobalConfig(requestConfig);
27
+ setTimeout(function () {
28
+ setIsDetail(false);
29
+ }, 3000);
27
30
  }, []);
28
31
  var afterEditTarget = function afterEditTarget(type, data) {
29
32
  console.log("".concat(type, "\u56DE\u8C03"), data);
package/es/types.d.ts CHANGED
@@ -7,6 +7,7 @@ export interface bizAttributeSelectorValueProp {
7
7
  value?: number | string;
8
8
  id?: number;
9
9
  key?: number | string;
10
+ encryptionType?: number;
10
11
  }
11
12
  export interface AnalysisSubject {
12
13
  subjectId?: number;
@@ -76,6 +77,7 @@ export interface SeriesProps {
76
77
  index?: string;
77
78
  duration?: TableChildrenProps[];
78
79
  diyTarget?: boolean;
80
+ attrSum?: number;
79
81
  }
80
82
  export interface TableChildrenProps {
81
83
  name: string;
@@ -358,10 +358,12 @@ export function formTableData(originalData, userGroups, attrNum, showList) {
358
358
  name: name,
359
359
  userGroup: userGroup,
360
360
  nameGroup: nameGroup,
361
- color: color
361
+ color: color,
362
+ attrSum: item.attrSum
362
363
  };
363
364
  if (attrNum) {
364
365
  data["dimension"] = name;
366
+ data['originalName'] = originalName;
365
367
  } else {
366
368
  data["eventName"] = name;
367
369
  data["originalName"] = originalName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-event",
3
- "version": "1.0.29-zhongyuan.10",
3
+ "version": "1.0.29-zhongyuan.12",
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": "852c33c50880e321ed603c79733eeb0ef6b3774c",
57
+ "gitHead": "071002b3c7c6a94b9f48c13eb7641ce46631c363",
58
58
  "gitHooks": {
59
59
  "pre-commit": "lint-staged"
60
60
  }