@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.
@@ -8,6 +8,7 @@ interface queryPlanType {
8
8
  interface PropsType {
9
9
  isOpen: number;
10
10
  queryPlanData: queryPlanType;
11
+ updateEventMetas: Function;
11
12
  }
12
13
  declare const CollectionEventList: React.FC<PropsType>;
13
14
  export default CollectionEventList;
@@ -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,
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
- declare const DataCollection: React.FC;
2
+ interface DataCollectionProps {
3
+ updateEventMetas: Function;
4
+ }
5
+ declare const DataCollection: React.FC<DataCollectionProps>;
3
6
  export default DataCollection;
@@ -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,
@@ -121,7 +121,7 @@
121
121
  }
122
122
  .group-box {
123
123
  display: flex;
124
- width: 500px;
124
+ width: 800px;
125
125
  line-height: 30px;
126
126
  .ant-input {
127
127
  width: 150px;
@@ -22,6 +22,7 @@ interface queryPlanType {
22
22
  }
23
23
  interface TablePlusType {
24
24
  tableHandleData: DataType[];
25
+ updateEventMetas: Function;
25
26
  Refresh: Function;
26
27
  eventActiveFilter: Function;
27
28
  markTypeFilter: Function;
@@ -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('成功');
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import './styles/index.less';
3
- declare const DataManage: React.FC;
3
+ interface DataManageProps {
4
+ updateEventMetas: Function;
5
+ }
6
+ declare const DataManage: React.FC<DataManageProps>;
4
7
  export default DataManage;
@@ -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, null), menuTab == '1' && /*#__PURE__*/React.createElement(PlanList, null));
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.6",
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": "a5df84fee76da638681affd4c57d4b27acdf91d8",
56
+ "gitHead": "ebcb846bfe38cd43875714df057c9822d0efe735",
57
57
  "gitHooks": {
58
58
  "pre-commit": "lint-staged"
59
59
  }