@zgfe/modules-dm 1.0.9 → 1.0.10

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.
@@ -28,13 +28,17 @@ import TablePlus from './tablePlus';
28
28
  import _ from 'lodash';
29
29
  import { getAppID } from '../../utils';
30
30
  import CollectionAttributeList from './collectionAttributeList';
31
+ import { DmContext } from '../../store';
31
32
 
32
33
  var CollectionEventList = function CollectionEventList(props) {
33
34
  var classPrefix = 'event-list';
34
35
 
35
36
  var _useContext = useContext(BizGlobalDataContext),
36
37
  currentApp = _useContext.currentApp,
37
- isDemo = _useContext.isDemo; // const { updateEventMetas } = props;
38
+ isDemo = _useContext.isDemo;
39
+
40
+ var _useContext2 = useContext(DmContext),
41
+ state = _useContext2.state; // const { updateEventMetas } = props;
38
42
 
39
43
 
40
44
  var _useState = useState(0),
@@ -190,6 +194,7 @@ var CollectionEventList = function CollectionEventList(props) {
190
194
  if (res.code == '00') {
191
195
  message.success('创建成功');
192
196
  queryList();
197
+ state.updateEventMetas && state.updateEventMetas(); // 更新store
193
198
  }
194
199
  }).catch(function (err) {}).finally(function () {
195
200
  setEventNameInput('');
@@ -120,6 +120,7 @@ var TablePlus = function TablePlus(props) {
120
120
  if (res.code == '00') {
121
121
  message.success('修改成功');
122
122
  props.Refresh();
123
+ state.updateEventMetas && state.updateEventMetas(); // 更新store
123
124
  }
124
125
  }).catch(function (err) {}).finally(function () {
125
126
  setEventNameShow(false);
@@ -150,6 +151,7 @@ var TablePlus = function TablePlus(props) {
150
151
  if (res) {
151
152
  message.success('删除成功');
152
153
  props.Refresh();
154
+ state.updateEventMetas && state.updateEventMetas(); // 更新store
153
155
  }
154
156
  }).catch(function (err) {}).finally(function () {});
155
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
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": "86e48cc5f42569b154c32167155a6008cc892665",
56
+ "gitHead": "422e6a38d446c4c9b2bee8070abceb0d693ebd4d",
57
57
  "gitHooks": {
58
58
  "pre-commit": "lint-staged"
59
59
  }