@zgfe/modules-dm 1.0.8 → 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;
|
|
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('');
|
|
@@ -509,6 +514,7 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
509
514
|
textAlign: 'right'
|
|
510
515
|
},
|
|
511
516
|
showQuickJumper: true,
|
|
517
|
+
showSizeChanger: total > 10,
|
|
512
518
|
defaultCurrent: 1,
|
|
513
519
|
current: pageNumber,
|
|
514
520
|
total: total,
|
|
@@ -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
|
}
|
|
@@ -205,6 +205,7 @@ var PlanList = function PlanList(props) {
|
|
|
205
205
|
lineHeight: '32px'
|
|
206
206
|
}
|
|
207
207
|
}, "\u57CB\u70B9\u65B9\u6848\u63A7\u5236"), /*#__PURE__*/React.createElement(Switch, {
|
|
208
|
+
disabled: isDemo || listData.length <= 0,
|
|
208
209
|
onChange: isOpenChang,
|
|
209
210
|
checkedChildren: "\u5F00",
|
|
210
211
|
unCheckedChildren: "\u5173",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.
|
|
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": "
|
|
56
|
+
"gitHead": "422e6a38d446c4c9b2bee8070abceb0d693ebd4d",
|
|
57
57
|
"gitHooks": {
|
|
58
58
|
"pre-commit": "lint-staged"
|
|
59
59
|
}
|