@zgfe/modules-dm 1.0.2-dm.6 → 1.0.2-dm.7
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/es/modules/dataCollection/collectionEventList.d.ts +1 -0
- package/es/modules/dataCollection/collectionEventList.js +4 -1
- package/es/modules/dataCollection/index.d.ts +4 -1
- package/es/modules/dataCollection/index.js +4 -1
- package/es/modules/dataCollection/styles/index.less +1 -1
- package/es/modules/dataCollection/tablePlus.d.ts +1 -0
- package/es/modules/dataCollection/tablePlus.js +8 -3
- package/es/modules/dataManage/index.d.ts +4 -1
- package/es/modules/dataManage/index.js +4 -1
- package/package.json +2 -2
|
@@ -26,6 +26,8 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
26
26
|
currentApp = _useContext.currentApp,
|
|
27
27
|
isDemo = _useContext.isDemo;
|
|
28
28
|
|
|
29
|
+
var updateEventMetas = props.updateEventMetas;
|
|
30
|
+
|
|
29
31
|
var _useState = useState(0),
|
|
30
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31
33
|
total = _useState2[0],
|
|
@@ -304,7 +306,8 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
304
306
|
markTypeFilter: markTypeFilter,
|
|
305
307
|
isOpen: props.isOpen,
|
|
306
308
|
queryPlanData: props.queryPlanData,
|
|
307
|
-
eventAttrDataHandle: eventAttrDataHandle
|
|
309
|
+
eventAttrDataHandle: eventAttrDataHandle,
|
|
310
|
+
updateEventMetas: updateEventMetas
|
|
308
311
|
})), eventAttrListShow && /*#__PURE__*/React.createElement(CollectionAttributeList, {
|
|
309
312
|
isOpen: props.isOpen,
|
|
310
313
|
queryPlanData: props.queryPlanData,
|
|
@@ -25,6 +25,8 @@ var DataCollection = function DataCollection(props) {
|
|
|
25
25
|
currentApp = _useContext.currentApp,
|
|
26
26
|
isDemo = _useContext.isDemo;
|
|
27
27
|
|
|
28
|
+
var updateEventMetas = props.updateEventMetas;
|
|
29
|
+
|
|
28
30
|
var _useState = useState(1),
|
|
29
31
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30
32
|
listTab = _useState2[0],
|
|
@@ -86,7 +88,8 @@ var DataCollection = function DataCollection(props) {
|
|
|
86
88
|
key: "2"
|
|
87
89
|
})), listTab == 1 && /*#__PURE__*/React.createElement(EventList, {
|
|
88
90
|
isOpen: isOpen,
|
|
89
|
-
queryPlanData: queryPlanData
|
|
91
|
+
queryPlanData: queryPlanData,
|
|
92
|
+
updateEventMetas: updateEventMetas
|
|
90
93
|
}), listTab == 2 && /*#__PURE__*/React.createElement(UserAttributeList, {
|
|
91
94
|
isOpen: isOpen,
|
|
92
95
|
queryPlanData: queryPlanData,
|
|
@@ -29,7 +29,8 @@ var TablePlus = function TablePlus(props) {
|
|
|
29
29
|
var classPrefix = 'table-plus';
|
|
30
30
|
var tableHandleData = props.tableHandleData,
|
|
31
31
|
queryPlanData = props.queryPlanData,
|
|
32
|
-
isOpen = props.isOpen
|
|
32
|
+
isOpen = props.isOpen,
|
|
33
|
+
updateEventMetas = props.updateEventMetas;
|
|
33
34
|
|
|
34
35
|
var _useContext = useContext(BizGlobalDataContext),
|
|
35
36
|
currentApp = _useContext.currentApp,
|
|
@@ -60,6 +61,8 @@ var TablePlus = function TablePlus(props) {
|
|
|
60
61
|
if (res) {
|
|
61
62
|
message.success('修改成功');
|
|
62
63
|
props.Refresh();
|
|
64
|
+
console.log(updateEventMetas);
|
|
65
|
+
updateEventMetas != undefined ? updateEventMetas() : null; // 更新store
|
|
63
66
|
}
|
|
64
67
|
}).catch(function (err) {
|
|
65
68
|
message.error('修改失败');
|
|
@@ -272,14 +275,16 @@ var TablePlus = function TablePlus(props) {
|
|
|
272
275
|
if (eventGroupId != undefined) _temp = {
|
|
273
276
|
eventGroupId: eventGroupId
|
|
274
277
|
};
|
|
278
|
+
if (type != 'copy') _temp = _objectSpread(_objectSpread({}, _temp), {}, {
|
|
279
|
+
oldEventGroupId: data.groupId
|
|
280
|
+
});
|
|
275
281
|
request(apis.operateGroupRelations, {
|
|
276
282
|
method: 'post',
|
|
277
283
|
data: _objectSpread({
|
|
278
284
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
279
285
|
platform: 0,
|
|
280
286
|
hasPublicAttrView: true,
|
|
281
|
-
eventIds: groupCheckedData[data.groupId].join(',')
|
|
282
|
-
oldEventGroupId: type == 'copy' ? null : data.groupId
|
|
287
|
+
eventIds: groupCheckedData[data.groupId].join(',')
|
|
283
288
|
}, _temp)
|
|
284
289
|
}).then(function (res) {
|
|
285
290
|
message.success('成功');
|
|
@@ -21,6 +21,7 @@ import DataCollection from '../dataCollection';
|
|
|
21
21
|
|
|
22
22
|
var DataManage = function DataManage(props) {
|
|
23
23
|
var classPrefix = 'data-manage';
|
|
24
|
+
var updateEventMetas = props.updateEventMetas;
|
|
24
25
|
|
|
25
26
|
var _useState = useState('0'),
|
|
26
27
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -52,7 +53,9 @@ var DataManage = function DataManage(props) {
|
|
|
52
53
|
defaultSelectedKeys: ['0'],
|
|
53
54
|
onSelect: onSelect,
|
|
54
55
|
items: items
|
|
55
|
-
})), menuTab == '0' && /*#__PURE__*/React.createElement(DataCollection,
|
|
56
|
+
})), menuTab == '0' && /*#__PURE__*/React.createElement(DataCollection, {
|
|
57
|
+
updateEventMetas: updateEventMetas
|
|
58
|
+
}), menuTab == '1' && /*#__PURE__*/React.createElement(PlanList, null));
|
|
56
59
|
};
|
|
57
60
|
|
|
58
61
|
export default DataManage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.2-dm.
|
|
3
|
+
"version": "1.0.2-dm.7",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"license": "ISC",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"umi-request": "^1.4.0",
|
|
54
54
|
"yorkie": "^2.0.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "ebcb846bfe38cd43875714df057c9822d0efe735",
|
|
57
57
|
"gitHooks": {
|
|
58
58
|
"pre-commit": "lint-staged"
|
|
59
59
|
}
|