@zgfe/modules-event 1.0.29-zhongyuan.11 → 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.
|
@@ -112,7 +112,7 @@ var EventTable = function EventTable(props) {
|
|
|
112
112
|
props.changeShowByName(nameGroup);
|
|
113
113
|
};
|
|
114
114
|
var onClickToDetail = function onClickToDetail(item, time, count) {
|
|
115
|
-
var _searchData$filters;
|
|
115
|
+
var _searchData$dimension, _searchData$filters;
|
|
116
116
|
var userGroupData = userGroup[0] == null ? [] : [userGroup[0]];
|
|
117
117
|
if ((userGroup === null || userGroup === void 0 ? void 0 : userGroup.length) > 1) {
|
|
118
118
|
userGroupList && userGroupList.forEach(function (user) {
|
|
@@ -124,7 +124,7 @@ var EventTable = function EventTable(props) {
|
|
|
124
124
|
var _time = time.split('|');
|
|
125
125
|
var groupValue = '';
|
|
126
126
|
if (searchData.dimension && item.dimension) {
|
|
127
|
-
groupValue = item.
|
|
127
|
+
groupValue = item.originalName;
|
|
128
128
|
} else {
|
|
129
129
|
eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (group) {
|
|
130
130
|
group.eventList.forEach(function (event) {
|
|
@@ -141,6 +141,7 @@ var EventTable = function EventTable(props) {
|
|
|
141
141
|
module: 'event',
|
|
142
142
|
params: {
|
|
143
143
|
groupValue: groupValue,
|
|
144
|
+
groupValueEncry: (((_searchData$dimension = searchData.dimension) === null || _searchData$dimension === void 0 ? void 0 : _searchData$dimension.encryptionType) || 0) > 0,
|
|
144
145
|
id: searchData.id,
|
|
145
146
|
userGroup: userGroupData,
|
|
146
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(
|
|
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
package/es/utils/formData.js
CHANGED
|
@@ -363,6 +363,7 @@ export function formTableData(originalData, userGroups, attrNum, showList) {
|
|
|
363
363
|
};
|
|
364
364
|
if (attrNum) {
|
|
365
365
|
data["dimension"] = name;
|
|
366
|
+
data['originalName'] = originalName;
|
|
366
367
|
} else {
|
|
367
368
|
data["eventName"] = name;
|
|
368
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.
|
|
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": "
|
|
57
|
+
"gitHead": "071002b3c7c6a94b9f48c13eb7641ce46631c363",
|
|
58
58
|
"gitHooks": {
|
|
59
59
|
"pre-commit": "lint-staged"
|
|
60
60
|
}
|