antd-management-fast-framework 1.12.48 → 1.12.49
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/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +1 -1
- package/es/framework/DataForm/BaseAddForm/index.js +1 -1
- package/es/framework/DataForm/BaseUpdateForm/index.js +1 -1
- package/es/framework/DataListView/Base/index.js +7 -0
- package/es/framework/DataModal/BaseLoadModal/index.js +1 -1
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +1 -1
- package/es/framework/DataMultiPageView/MultiPage/index.js +13 -3
- package/es/framework/DataSinglePageView/SinglePage/index.js +8 -1
- package/package.json +2 -2
|
@@ -346,6 +346,13 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
346
346
|
|
|
347
347
|
var form = _this.getSearchCard();
|
|
348
348
|
|
|
349
|
+
if (!form) {
|
|
350
|
+
var text = '查询表单不存在';
|
|
351
|
+
showErrorMessage({
|
|
352
|
+
message: text
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
|
|
349
356
|
var validateFields = form.validateFields;
|
|
350
357
|
validateFields().then(function (fieldsValue) {
|
|
351
358
|
var values = _objectSpread(_objectSpread({}, fieldsValue), {}, {
|
|
@@ -90,7 +90,10 @@ var MultiPage = /*#__PURE__*/function (_Base) {
|
|
|
90
90
|
var form = _this.getSearchCard();
|
|
91
91
|
|
|
92
92
|
var pageSize = _this.state.pageSize;
|
|
93
|
-
|
|
93
|
+
|
|
94
|
+
if (form) {
|
|
95
|
+
form.resetFields();
|
|
96
|
+
}
|
|
94
97
|
|
|
95
98
|
_this.handleAdditionalSearchReset();
|
|
96
99
|
|
|
@@ -116,7 +119,7 @@ var MultiPage = /*#__PURE__*/function (_Base) {
|
|
|
116
119
|
filters = _this$state.filters,
|
|
117
120
|
sorter = _this$state.sorter;
|
|
118
121
|
|
|
119
|
-
if ((
|
|
122
|
+
if ((0, _tools.stringIsNullOrWhiteSpace)(loadApiPath)) {
|
|
120
123
|
var text = 'loadApiPath需要配置';
|
|
121
124
|
(0, _tools.showRuntimeError)({
|
|
122
125
|
message: text
|
|
@@ -126,7 +129,7 @@ var MultiPage = /*#__PURE__*/function (_Base) {
|
|
|
126
129
|
}
|
|
127
130
|
|
|
128
131
|
if (_this.restoreSearch && !!!_this.restoreSearchComplete) {
|
|
129
|
-
if ((
|
|
132
|
+
if ((0, _tools.stringIsNullOrWhiteSpace)(paramsKey)) {
|
|
130
133
|
var _text = 'paramsKey需要配置';
|
|
131
134
|
(0, _tools.showRuntimeError)({
|
|
132
135
|
message: _text
|
|
@@ -197,6 +200,13 @@ var MultiPage = /*#__PURE__*/function (_Base) {
|
|
|
197
200
|
|
|
198
201
|
var form = _this.getSearchCard();
|
|
199
202
|
|
|
203
|
+
if (!form) {
|
|
204
|
+
var text = '查询表单不存在';
|
|
205
|
+
(0, _tools.showErrorMessage)({
|
|
206
|
+
message: text
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
|
|
200
210
|
var validateFields = form.validateFields;
|
|
201
211
|
var pageSize = _this.state.pageSize;
|
|
202
212
|
validateFields().then(function (fieldsValue) {
|
|
@@ -67,7 +67,7 @@ var SinglePage = /*#__PURE__*/function (_Base) {
|
|
|
67
67
|
_this.handleSearchReset = function () {
|
|
68
68
|
var form = _this.getSearchCard();
|
|
69
69
|
|
|
70
|
-
if (
|
|
70
|
+
if (form) {
|
|
71
71
|
form.resetFields();
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -136,6 +136,13 @@ var SinglePage = /*#__PURE__*/function (_Base) {
|
|
|
136
136
|
|
|
137
137
|
var form = _this.getSearchCard();
|
|
138
138
|
|
|
139
|
+
if (!form) {
|
|
140
|
+
var text = '查询表单不存在';
|
|
141
|
+
showErrorMessage({
|
|
142
|
+
message: text
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
|
|
139
146
|
var validateFields = form.validateFields;
|
|
140
147
|
validateFields().then(function (fieldsValue) {
|
|
141
148
|
var values = _objectSpread(_objectSpread({}, fieldsValue), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-framework",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.49",
|
|
4
4
|
"description": "antd-management-fast-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd-management-fast-framework"
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"src/framework",
|
|
172
172
|
"src/utils"
|
|
173
173
|
],
|
|
174
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "c53d9325e1ec1f77a4e3a2a27886dc8733df9954",
|
|
175
175
|
"gitHooks": {
|
|
176
176
|
"pre-commit": "lint-staged"
|
|
177
177
|
}
|