@zgfe/modules-dm 1.0.9 → 1.0.11
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;
|
|
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
|
}
|
|
@@ -293,6 +295,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
293
295
|
|
|
294
296
|
delete _groupCheckedData[eventGroupId];
|
|
295
297
|
setGroupCheckedData({});
|
|
298
|
+
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
296
299
|
}
|
|
297
300
|
}).catch(function (err) {}).finally(function () {
|
|
298
301
|
props.Refresh();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
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": "9bf2dfb5d13441120a011db3cd0ca8e2b37e3c56",
|
|
57
57
|
"gitHooks": {
|
|
58
58
|
"pre-commit": "lint-staged"
|
|
59
59
|
}
|