antd-management-fast-framework 2.1.0 → 2.1.1
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/index.js +3 -9771
- package/package.json +7 -7
- package/es/configGroup/configGeneral.d.ts +0 -28
- package/es/configGroup/configGeneral.js +0 -36
- package/es/configGroup/index.d.ts +0 -2
- package/es/configGroup/themeCollection.d.ts +0 -7
- package/es/configGroup/themeCollection.js +0 -9
- package/es/configGroup/webpackPlugin.d.ts +0 -4
- package/es/configGroup/webpackPlugin.js +0 -351
- package/es/customComponents/ApplicationProvider/index.d.ts +0 -12
- package/es/customComponents/ApplicationWrapper/index.d.ts +0 -9
- package/es/customComponents/Bootstrap/index.d.ts +0 -3
- package/es/customComponents/Bootstrap/index.js +0 -67
- package/es/customComponents/DataPreviewDrawer/index.d.ts +0 -31
- package/es/customComponents/DataPreviewDrawer/index.js +0 -169
- package/es/customComponents/LoadingOverlay/index.d.ts +0 -6
- package/es/customComponents/LoadingOverloay/index.d.ts +0 -3
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.d.ts +0 -10
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.js +0 -83
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.d.ts +0 -75
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +0 -193
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.d.ts +0 -54
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +0 -157
- package/es/customComponents/MobileContainor/index.d.ts +0 -8
- package/es/customComponents/index.d.ts +0 -5
- package/es/framework/AuthorizationWrapper/index.js +0 -108
- package/es/framework/ButtonExtension/SelectButton/Base/index.js +0 -98
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +0 -149
- package/es/framework/Common/CardCollectionItemContent/index.d.ts +0 -14
- package/es/framework/Common/CommonInternal/index.d.ts +0 -167
- package/es/framework/Common/InternalMake/index.d.ts +0 -9
- package/es/framework/Common/index.js +0 -39
- package/es/framework/Core/index.js +0 -38
- package/es/framework/CustomWrapper/Supplement/index.js +0 -67
- package/es/framework/CustomWrapper/SupplementCore/index.js +0 -131
- package/es/framework/CustomWrapper/SupplementWrapper/index.js +0 -61
- package/es/framework/DataDrawer/Base/index.js +0 -335
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +0 -95
- package/es/framework/DataDrawer/BaseLoadDrawer/index.js +0 -82
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +0 -94
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +0 -85
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +0 -83
- package/es/framework/DataForm/BaseAddForm/index.js +0 -261
- package/es/framework/DataForm/BaseUpdateForm/index.js +0 -183
- package/es/framework/DataForm/BaseUpdateFormContent/index.js +0 -72
- package/es/framework/DataForm/BaseUpdateFormTab/index.js +0 -66
- package/es/framework/DataListView/Base/index.js +0 -1261
- package/es/framework/DataListView/BatchAction/index.js +0 -73
- package/es/framework/DataListView/ColumnSetting/DndItem.js +0 -116
- package/es/framework/DataListView/ColumnSetting/index.js +0 -319
- package/es/framework/DataListView/DensityAction/index.js +0 -63
- package/es/framework/DataMenuContainer/index.js +0 -282
- package/es/framework/DataModal/Base/index.js +0 -231
- package/es/framework/DataModal/BaseAddModal/index.js +0 -72
- package/es/framework/DataModal/BaseLoadModal/index.js +0 -80
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +0 -106
- package/es/framework/DataModal/BaseSelectModal/index.js +0 -74
- package/es/framework/DataModal/BaseUpdateModal/index.js +0 -62
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +0 -140
- package/es/framework/DataMultiPageView/InnerMultiPage/index.js +0 -82
- package/es/framework/DataMultiPageView/MultiPage/index.js +0 -299
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +0 -457
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +0 -123
- package/es/framework/DataOperation/Base/index.js +0 -322
- package/es/framework/DataOperation/BaseView/index.js +0 -83
- package/es/framework/DataOperation/BaseWindow/index.js +0 -330
- package/es/framework/DataSinglePageView/InnerSinglePage/index.js +0 -82
- package/es/framework/DataSinglePageView/SinglePage/index.js +0 -254
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +0 -438
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +0 -126
- package/es/framework/DataSingleView/DataCore/index.js +0 -260
- package/es/framework/DataSingleView/DataLoad/index.js +0 -151
- package/es/framework/DataTabContainer/index.js +0 -254
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +0 -158
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +0 -159
- package/es/framework/LayoutWrapper/index.d.ts +0 -2
- package/es/framework/Wrapper/index.js +0 -59
- package/es/get.js +0 -28
- package/es/getPrototypeOf.js +0 -76
- package/es/index2.js +0 -2075
- package/es/index3.js +0 -383
- package/es/models/index.d.ts +0 -1
- package/es/models/schedulingControl.d.ts +0 -46
- package/es/models/schedulingControl.js +0 -171
- package/es/objectSpread2.js +0 -40
- package/es/services/schedulingControl.js +0 -135
- package/es/slicedToArray.js +0 -43
- package/es/toConsumableArray.js +0 -19
- package/es/toPropertyKey.js +0 -19
- package/es/typeof.js +0 -11
- package/es/unsupportedIterableToArray.js +0 -16
- package/es/utils/appListDataAssist.js +0 -69
- package/es/utils/applicationAssist.js +0 -28
- package/es/utils/bootstrap.js +0 -58
- package/es/utils/layoutSettingAssist.js +0 -60
- package/es/utils/metaDataAssist.js +0 -69
- package/es/utils/storageAssist.js +0 -153
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
import { _ as _inherits, a as _classCallCheck, e as _assertThisInitialized, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../getPrototypeOf.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { pretreatmentRequestParams } from 'antd-management-fast-common/es/utils/requestAssistor';
|
|
4
|
-
import { isFunction, logObject, isUndefined, showWarningMessage } from 'antd-management-fast-common/es/utils/tools';
|
|
5
|
-
import Base from '../Base/index.js';
|
|
6
|
-
import '../../../toPropertyKey.js';
|
|
7
|
-
import '../../../typeof.js';
|
|
8
|
-
import '../../../objectSpread2.js';
|
|
9
|
-
import 'antd';
|
|
10
|
-
import '../../AuthorizationWrapper/index.js';
|
|
11
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
12
|
-
import '../../CustomWrapper/SupplementWrapper/index.js';
|
|
13
|
-
import '../../CustomWrapper/Supplement/index.js';
|
|
14
|
-
import '../../CustomWrapper/SupplementCore/index.js';
|
|
15
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
16
|
-
import '../../../index2.js';
|
|
17
|
-
import 'antd-management-fast-common/es/utils/constants';
|
|
18
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
19
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
24
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
25
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
32
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
33
|
-
import 'antd-management-fast-component/es/customComponents/Icon';
|
|
34
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
35
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
36
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
37
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
38
|
-
import '../../../utils/metaDataAssist.js';
|
|
39
|
-
import '../../../index3.js';
|
|
40
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
41
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
42
|
-
import '../../../utils/storageAssist.js';
|
|
43
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
44
|
-
import '../../Core/index.js';
|
|
45
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
46
|
-
|
|
47
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
48
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
49
|
-
var BaseWindow = /*#__PURE__*/function (_Base) {
|
|
50
|
-
_inherits(BaseWindow, _Base);
|
|
51
|
-
var _super = _createSuper(BaseWindow);
|
|
52
|
-
function BaseWindow() {
|
|
53
|
-
var _this;
|
|
54
|
-
_classCallCheck(this, BaseWindow);
|
|
55
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
56
|
-
args[_key] = arguments[_key];
|
|
57
|
-
}
|
|
58
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
59
|
-
_this.reloadWhenShow = false;
|
|
60
|
-
_this.loadDataAfterMount = false;
|
|
61
|
-
_this.formRef = /*#__PURE__*/React.createRef();
|
|
62
|
-
_this.submitWithForm = true;
|
|
63
|
-
_this.goToUpdateWhenProcessed = false;
|
|
64
|
-
_this.doWorkWhenDidUpdate = function (preProps, preState, snapshot) {
|
|
65
|
-
var visiblePre = preState.visible;
|
|
66
|
-
var visible = _this.state.visible;
|
|
67
|
-
if (visiblePre !== visible) {
|
|
68
|
-
_this.doOtherWhenChangeVisible(preProps, preState, snapshot, visible);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
_this.doOtherWhenChangeVisible = function (preProps, preState, snapshot, currentVisible) {
|
|
72
|
-
if (currentVisible) {
|
|
73
|
-
_this.doOtherWhenChangeVisibleToShow(preProps, preState, snapshot);
|
|
74
|
-
_this.executeAfterDoOtherWhenChangeVisibleToShow(preProps, preState, snapshot);
|
|
75
|
-
} else {
|
|
76
|
-
_this.doOtherWhenChangeVisibleToHide(preProps, preState, snapshot);
|
|
77
|
-
_this.executeAfterDoOtherWhenChangeVisibleToHide(preProps, preState, snapshot);
|
|
78
|
-
}
|
|
79
|
-
_this.executeOtherAfterDoOtherWhenChangeVisible(preProps, preState, snapshot);
|
|
80
|
-
};
|
|
81
|
-
_this.doOtherWhenChangeVisibleToShow = function (preProps, preState, snapshot) {};
|
|
82
|
-
_this.executeAfterDoOtherWhenChangeVisibleToShow = function (
|
|
83
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
84
|
-
preProps,
|
|
85
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
86
|
-
preState,
|
|
87
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
88
|
-
snapshot) {};
|
|
89
|
-
_this.doOtherWhenChangeVisibleToHide = function (preProps, preState, snapshot) {};
|
|
90
|
-
_this.executeAfterDoOtherWhenChangeVisibleToHide = function (
|
|
91
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
92
|
-
preProps,
|
|
93
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
94
|
-
preState,
|
|
95
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
96
|
-
snapshot) {};
|
|
97
|
-
_this.executeOtherAfterDoOtherWhenChangeVisible = function (
|
|
98
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
99
|
-
preProps,
|
|
100
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
101
|
-
preState,
|
|
102
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
103
|
-
snapshot) {};
|
|
104
|
-
_this.getTargetForm = function () {
|
|
105
|
-
return _this.formRef.current;
|
|
106
|
-
};
|
|
107
|
-
_this.supplementSubmitRequestParams = function (o) {
|
|
108
|
-
return o;
|
|
109
|
-
};
|
|
110
|
-
_this.afterLoadSuccess = function (_ref) {
|
|
111
|
-
var metaData = _ref.metaData,
|
|
112
|
-
metaListData = _ref.metaListData,
|
|
113
|
-
metaExtra = _ref.metaExtra,
|
|
114
|
-
metaOriginalData = _ref.metaOriginalData;
|
|
115
|
-
_this.fillData({
|
|
116
|
-
metaData: metaData,
|
|
117
|
-
metaListData: metaListData,
|
|
118
|
-
metaExtra: metaExtra,
|
|
119
|
-
metaOriginalData: metaOriginalData
|
|
120
|
-
});
|
|
121
|
-
_this.doOtherAfterLoadSuccess({
|
|
122
|
-
metaData: metaData,
|
|
123
|
-
metaListData: metaListData,
|
|
124
|
-
metaExtra: metaExtra,
|
|
125
|
-
metaOriginalData: metaOriginalData
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
_this.doOtherAfterLoadSuccess = function (_ref2) {
|
|
129
|
-
_ref2.metaData;
|
|
130
|
-
_ref2.metaListData;
|
|
131
|
-
_ref2.metaExtra;
|
|
132
|
-
_ref2.metaOriginalData;
|
|
133
|
-
};
|
|
134
|
-
_this.fillData = function (_ref3) {
|
|
135
|
-
var _ref3$metaData = _ref3.metaData,
|
|
136
|
-
metaData = _ref3$metaData === void 0 ? null : _ref3$metaData,
|
|
137
|
-
_ref3$metaListData = _ref3.metaListData,
|
|
138
|
-
metaListData = _ref3$metaListData === void 0 ? [] : _ref3$metaListData,
|
|
139
|
-
_ref3$metaExtra = _ref3.metaExtra,
|
|
140
|
-
metaExtra = _ref3$metaExtra === void 0 ? null : _ref3$metaExtra,
|
|
141
|
-
_ref3$metaOriginalDat = _ref3.metaOriginalData,
|
|
142
|
-
metaOriginalData = _ref3$metaOriginalDat === void 0 ? null : _ref3$metaOriginalDat;
|
|
143
|
-
var initialValues = _this.buildInitialValues({
|
|
144
|
-
metaData: metaData,
|
|
145
|
-
metaListData: metaListData,
|
|
146
|
-
metaExtra: metaExtra,
|
|
147
|
-
metaOriginalData: metaOriginalData
|
|
148
|
-
});
|
|
149
|
-
if (initialValues != null) {
|
|
150
|
-
_this.setFormFieldsValue(initialValues);
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
_this.setFormFieldsValue = function (v) {
|
|
154
|
-
var form = _this.getTargetForm();
|
|
155
|
-
if (form != null) {
|
|
156
|
-
form.setFieldsValue(v);
|
|
157
|
-
_this.afterSetFieldsValue(v);
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
_this.afterSetFieldsValue = function (v) {};
|
|
161
|
-
_this.afterCheckSubmitRequestParams = function (o) {
|
|
162
|
-
return o;
|
|
163
|
-
};
|
|
164
|
-
_this.execSubmitApi = function () {
|
|
165
|
-
var values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
166
|
-
var afterSubmitCallback = arguments.length > 1 ? arguments[1] : undefined;
|
|
167
|
-
var submitApiPath = _this.state.submitApiPath;
|
|
168
|
-
if ((submitApiPath || '') === '') {
|
|
169
|
-
var text = "\u7F3A\u5C11 submitApiPath \u914D\u7F6E\uFF01";
|
|
170
|
-
showRuntimeError({
|
|
171
|
-
message: text
|
|
172
|
-
});
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
var submitData = pretreatmentRequestParams(values || {});
|
|
176
|
-
submitData = _this.supplementSubmitRequestParams(submitData);
|
|
177
|
-
var checkResult = _this.checkSubmitData(submitData);
|
|
178
|
-
submitData = _this.afterCheckSubmitRequestParams(submitData);
|
|
179
|
-
if (checkResult) {
|
|
180
|
-
var that = _assertThisInitialized(_this);
|
|
181
|
-
that.setState({
|
|
182
|
-
processing: true
|
|
183
|
-
}, function () {
|
|
184
|
-
that.setState({
|
|
185
|
-
dispatchComplete: false
|
|
186
|
-
}, function () {
|
|
187
|
-
that.dispatchApi({
|
|
188
|
-
type: submitApiPath,
|
|
189
|
-
payload: submitData
|
|
190
|
-
}).then(function (remoteData) {
|
|
191
|
-
if (that.mounted) {
|
|
192
|
-
var dataSuccess = remoteData.dataSuccess;
|
|
193
|
-
if (dataSuccess) {
|
|
194
|
-
var metaListData = remoteData.list,
|
|
195
|
-
metaData = remoteData.data,
|
|
196
|
-
metaExtra = remoteData.extra;
|
|
197
|
-
that.afterSubmitSuccess({
|
|
198
|
-
singleData: metaData || null,
|
|
199
|
-
listData: metaListData || [],
|
|
200
|
-
extraData: metaExtra || null,
|
|
201
|
-
responseOriginalData: remoteData || null,
|
|
202
|
-
submitData: submitData || null
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
if (isFunction(afterSubmitCallback)) {
|
|
206
|
-
afterSubmitCallback(remoteData);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
that.setState({
|
|
210
|
-
processing: false,
|
|
211
|
-
dispatchComplete: true
|
|
212
|
-
});
|
|
213
|
-
})["catch"](function (res) {
|
|
214
|
-
logObject(res);
|
|
215
|
-
that.setState({
|
|
216
|
-
processing: false,
|
|
217
|
-
dispatchComplete: true
|
|
218
|
-
});
|
|
219
|
-
});
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
_this.handleOkWithForm = function (successCallback) {
|
|
225
|
-
var form = _this.getTargetForm();
|
|
226
|
-
if (form == null) {
|
|
227
|
-
return;
|
|
228
|
-
}
|
|
229
|
-
var validateFields = form.validateFields;
|
|
230
|
-
validateFields().then(function (values) {
|
|
231
|
-
_this.execSubmitApi(values, function (remoteData) {
|
|
232
|
-
if (isFunction(successCallback)) {
|
|
233
|
-
successCallback(remoteData);
|
|
234
|
-
}
|
|
235
|
-
if (_this.goToUpdateWhenProcessed) {
|
|
236
|
-
_this.reloadByUrl();
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
})["catch"](function (error) {
|
|
240
|
-
var errorFields = error.errorFields;
|
|
241
|
-
if (!isUndefined(errorFields)) {
|
|
242
|
-
var m = [];
|
|
243
|
-
Object.values(errorFields).forEach(function (o) {
|
|
244
|
-
m.push(o.errors[0]);
|
|
245
|
-
});
|
|
246
|
-
var maxLength = 5;
|
|
247
|
-
var beyondMax = false;
|
|
248
|
-
if (m.length > maxLength) {
|
|
249
|
-
m.length = maxLength;
|
|
250
|
-
beyondMax = true;
|
|
251
|
-
}
|
|
252
|
-
var errorMessage = m.join(', ');
|
|
253
|
-
if (beyondMax) {
|
|
254
|
-
errorMessage += ' ...';
|
|
255
|
-
}
|
|
256
|
-
showWarningMessage({
|
|
257
|
-
message: errorMessage
|
|
258
|
-
});
|
|
259
|
-
} else {
|
|
260
|
-
showRuntimeError({
|
|
261
|
-
message: error
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
};
|
|
266
|
-
_this.handleOk = function (e) {
|
|
267
|
-
var successCallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
268
|
-
if (_this.submitWithForm) {
|
|
269
|
-
_this.handleOkWithForm(e, successCallback);
|
|
270
|
-
} else {
|
|
271
|
-
_this.execSubmitApi({}, successCallback);
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
_this.afterSubmitSuccess = function (_ref4) {
|
|
275
|
-
var _ref4$singleData = _ref4.singleData,
|
|
276
|
-
singleData = _ref4$singleData === void 0 ? null : _ref4$singleData,
|
|
277
|
-
_ref4$listData = _ref4.listData,
|
|
278
|
-
listData = _ref4$listData === void 0 ? [] : _ref4$listData,
|
|
279
|
-
_ref4$extraData = _ref4.extraData,
|
|
280
|
-
extraData = _ref4$extraData === void 0 ? null : _ref4$extraData,
|
|
281
|
-
_ref4$responseOrigina = _ref4.responseOriginalData,
|
|
282
|
-
responseOriginalData = _ref4$responseOrigina === void 0 ? null : _ref4$responseOrigina,
|
|
283
|
-
_ref4$submitData = _ref4.submitData,
|
|
284
|
-
submitData = _ref4$submitData === void 0 ? null : _ref4$submitData;
|
|
285
|
-
_this.doAfterSubmitSuccess({
|
|
286
|
-
singleData: singleData,
|
|
287
|
-
listData: listData,
|
|
288
|
-
extraData: extraData,
|
|
289
|
-
responseOriginalData: responseOriginalData,
|
|
290
|
-
submitData: submitData
|
|
291
|
-
});
|
|
292
|
-
};
|
|
293
|
-
_this.handleCancel = function () {
|
|
294
|
-
var afterCancel = _this.props.afterCancel;
|
|
295
|
-
if (isFunction(afterCancel)) {
|
|
296
|
-
afterCancel();
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
_this.getFormClassName = function () {
|
|
300
|
-
return null;
|
|
301
|
-
};
|
|
302
|
-
_this.getSaveButtonDisabled = function () {
|
|
303
|
-
var _this$state = _this.state,
|
|
304
|
-
loadApiPath = _this$state.loadApiPath,
|
|
305
|
-
dataLoading = _this$state.dataLoading,
|
|
306
|
-
processing = _this$state.processing,
|
|
307
|
-
loadSuccess = _this$state.loadSuccess;
|
|
308
|
-
return dataLoading || processing || !checkStringIsNullOrWhiteSpace(loadApiPath || '') && !loadSuccess;
|
|
309
|
-
};
|
|
310
|
-
return _this;
|
|
311
|
-
}
|
|
312
|
-
_createClass(BaseWindow, null, [{
|
|
313
|
-
key: "getDerivedStateFromProps",
|
|
314
|
-
value:
|
|
315
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
316
|
-
function getDerivedStateFromProps(nextProps, prevState) {
|
|
317
|
-
var visible = nextProps.visible,
|
|
318
|
-
externalData = nextProps.externalData;
|
|
319
|
-
return {
|
|
320
|
-
visible: visible,
|
|
321
|
-
externalData: externalData
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
326
|
-
}]);
|
|
327
|
-
return BaseWindow;
|
|
328
|
-
}(Base);
|
|
329
|
-
|
|
330
|
-
export { BaseWindow as default };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { _ as _objectSpread2 } from '../../../objectSpread2.js';
|
|
2
|
-
import { _ as _inherits, a as _classCallCheck, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../getPrototypeOf.js';
|
|
3
|
-
import SinglePage from '../SinglePage/index.js';
|
|
4
|
-
import '../../../toPropertyKey.js';
|
|
5
|
-
import '../../../typeof.js';
|
|
6
|
-
import 'antd-management-fast-common/es/utils/tools';
|
|
7
|
-
import '../../DataListView/Base/index.js';
|
|
8
|
-
import '../../../index2.js';
|
|
9
|
-
import 'antd';
|
|
10
|
-
import 'react';
|
|
11
|
-
import 'antd-management-fast-common/es/utils/constants';
|
|
12
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
13
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
14
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
15
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
16
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
17
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
18
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
19
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
24
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
25
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/Icon';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
32
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
33
|
-
import '../../../utils/metaDataAssist.js';
|
|
34
|
-
import '../../../index3.js';
|
|
35
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
36
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
37
|
-
import '../../../utils/storageAssist.js';
|
|
38
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
39
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
40
|
-
import '../../Core/index.js';
|
|
41
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
42
|
-
import '../../../toConsumableArray.js';
|
|
43
|
-
import '../../../unsupportedIterableToArray.js';
|
|
44
|
-
import 'classnames';
|
|
45
|
-
import '@ant-design/pro-layout';
|
|
46
|
-
import 'antd-management-fast-common/es/utils/routeAssist';
|
|
47
|
-
import 'antd-management-fast-component/es/customComponents/DecorateAvatar';
|
|
48
|
-
import 'antd-management-fast-component/es/customComponents/StandardTableCustom';
|
|
49
|
-
import '../../AuthorizationWrapper/index.js';
|
|
50
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
51
|
-
import '../../CustomWrapper/SupplementWrapper/index.js';
|
|
52
|
-
import '../../CustomWrapper/Supplement/index.js';
|
|
53
|
-
import '../../CustomWrapper/SupplementCore/index.js';
|
|
54
|
-
import '../../DataListView/BatchAction/index.js';
|
|
55
|
-
import 'antd/lib/config-provider/context';
|
|
56
|
-
import '../../DataListView/ColumnSetting/index.js';
|
|
57
|
-
import 'react-dnd';
|
|
58
|
-
import 'react-dnd-html5-backend';
|
|
59
|
-
import '@ant-design/icons';
|
|
60
|
-
import '../../DataListView/ColumnSetting/DndItem.js';
|
|
61
|
-
import '../../../slicedToArray.js';
|
|
62
|
-
import '../../DataListView/DensityAction/index.js';
|
|
63
|
-
|
|
64
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
65
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
66
|
-
var InnerSinglePage = /*#__PURE__*/function (_SinglePage) {
|
|
67
|
-
_inherits(InnerSinglePage, _SinglePage);
|
|
68
|
-
var _super = _createSuper(InnerSinglePage);
|
|
69
|
-
function InnerSinglePage(props) {
|
|
70
|
-
var _this;
|
|
71
|
-
_classCallCheck(this, InnerSinglePage);
|
|
72
|
-
_this = _super.call(this, props);
|
|
73
|
-
_this.restoreSearch = false;
|
|
74
|
-
_this.state = _objectSpread2(_objectSpread2({}, _this.state), {
|
|
75
|
-
renderPageContainer: false
|
|
76
|
-
});
|
|
77
|
-
return _this;
|
|
78
|
-
}
|
|
79
|
-
return _createClass(InnerSinglePage);
|
|
80
|
-
}(SinglePage);
|
|
81
|
-
|
|
82
|
-
export { InnerSinglePage as default };
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import { _ as _objectSpread2 } from '../../../objectSpread2.js';
|
|
2
|
-
import { _ as _inherits, a as _classCallCheck, e as _assertThisInitialized, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../getPrototypeOf.js';
|
|
3
|
-
import { logObject, isUndefined, showWarningMessage, toNumber, defaultListState } from 'antd-management-fast-common/es/utils/tools';
|
|
4
|
-
import ListBase from '../../DataListView/Base/index.js';
|
|
5
|
-
import '../../../toPropertyKey.js';
|
|
6
|
-
import '../../../typeof.js';
|
|
7
|
-
import '../../../index2.js';
|
|
8
|
-
import 'antd';
|
|
9
|
-
import 'react';
|
|
10
|
-
import 'antd-management-fast-common/es/utils/constants';
|
|
11
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
12
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
13
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
14
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
15
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
16
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
17
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
18
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
19
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
24
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
25
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/Icon';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
32
|
-
import '../../../utils/metaDataAssist.js';
|
|
33
|
-
import '../../../index3.js';
|
|
34
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
35
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
36
|
-
import '../../../utils/storageAssist.js';
|
|
37
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
38
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
39
|
-
import '../../Core/index.js';
|
|
40
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
41
|
-
import '../../../toConsumableArray.js';
|
|
42
|
-
import '../../../unsupportedIterableToArray.js';
|
|
43
|
-
import 'classnames';
|
|
44
|
-
import '@ant-design/pro-layout';
|
|
45
|
-
import 'antd-management-fast-common/es/utils/routeAssist';
|
|
46
|
-
import 'antd-management-fast-component/es/customComponents/DecorateAvatar';
|
|
47
|
-
import 'antd-management-fast-component/es/customComponents/StandardTableCustom';
|
|
48
|
-
import '../../AuthorizationWrapper/index.js';
|
|
49
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
50
|
-
import '../../CustomWrapper/SupplementWrapper/index.js';
|
|
51
|
-
import '../../CustomWrapper/Supplement/index.js';
|
|
52
|
-
import '../../CustomWrapper/SupplementCore/index.js';
|
|
53
|
-
import '../../DataListView/BatchAction/index.js';
|
|
54
|
-
import 'antd/lib/config-provider/context';
|
|
55
|
-
import '../../DataListView/ColumnSetting/index.js';
|
|
56
|
-
import 'react-dnd';
|
|
57
|
-
import 'react-dnd-html5-backend';
|
|
58
|
-
import '@ant-design/icons';
|
|
59
|
-
import '../../DataListView/ColumnSetting/DndItem.js';
|
|
60
|
-
import '../../../slicedToArray.js';
|
|
61
|
-
import '../../DataListView/DensityAction/index.js';
|
|
62
|
-
|
|
63
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
64
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
65
|
-
var SinglePage = /*#__PURE__*/function (_Base) {
|
|
66
|
-
_inherits(SinglePage, _Base);
|
|
67
|
-
var _super = _createSuper(SinglePage);
|
|
68
|
-
/**
|
|
69
|
-
* 使用远端分页
|
|
70
|
-
*/
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* 使用前台模拟分页,有助于优化长列表页面交互操作导致的延迟
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
function SinglePage(props) {
|
|
77
|
-
var _this;
|
|
78
|
-
_classCallCheck(this, SinglePage);
|
|
79
|
-
_this = _super.call(this, props);
|
|
80
|
-
_this.useRemotePagination = false;
|
|
81
|
-
_this.useFrontendPagination = true;
|
|
82
|
-
_this.handleSearchReset = function () {
|
|
83
|
-
var form = _this.getSearchCard();
|
|
84
|
-
if (form) {
|
|
85
|
-
form.resetFields();
|
|
86
|
-
}
|
|
87
|
-
_this.handleAdditionalSearchReset();
|
|
88
|
-
_this.reloadData({
|
|
89
|
-
formValues: {},
|
|
90
|
-
startTime: '',
|
|
91
|
-
endTime: ''
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
_this.adjustLoadRequestParams = function (o) {
|
|
95
|
-
return o || {};
|
|
96
|
-
};
|
|
97
|
-
_this.initLoadRequestParams = function () {
|
|
98
|
-
var o = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
99
|
-
var d = o;
|
|
100
|
-
var _this$state = _this.state,
|
|
101
|
-
loadApiPath = _this$state.loadApiPath,
|
|
102
|
-
formValues = _this$state.formValues,
|
|
103
|
-
filters = _this$state.filters,
|
|
104
|
-
sorter = _this$state.sorter;
|
|
105
|
-
if ((loadApiPath || '') === '') {
|
|
106
|
-
var text = 'loadApiPath需要配置';
|
|
107
|
-
showRuntimeError({
|
|
108
|
-
message: text
|
|
109
|
-
});
|
|
110
|
-
logObject(_assertThisInitialized(_this));
|
|
111
|
-
return d;
|
|
112
|
-
}
|
|
113
|
-
var _this$state2 = _this.state,
|
|
114
|
-
startTimeAlias = _this$state2.startTimeAlias,
|
|
115
|
-
endTimeAlias = _this$state2.endTimeAlias,
|
|
116
|
-
startTime = _this$state2.startTime,
|
|
117
|
-
endTime = _this$state2.endTime;
|
|
118
|
-
if (!checkStringIsNullOrWhiteSpace(startTime)) {
|
|
119
|
-
if (!checkStringIsNullOrWhiteSpace(startTimeAlias)) {
|
|
120
|
-
d[startTimeAlias] = startTime;
|
|
121
|
-
} else {
|
|
122
|
-
d.startTime = startTime;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
if (!checkStringIsNullOrWhiteSpace(endTime)) {
|
|
126
|
-
if (!checkStringIsNullOrWhiteSpace(endTimeAlias)) {
|
|
127
|
-
d[endTimeAlias] = endTime;
|
|
128
|
-
} else {
|
|
129
|
-
d.endTime = endTime;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
d = _objectSpread2(_objectSpread2({}, d), _objectSpread2(_objectSpread2(_objectSpread2({}, formValues || {}), filters || {}), sorter || {}));
|
|
133
|
-
delete d.dateRange;
|
|
134
|
-
return _this.adjustLoadRequestParams(d);
|
|
135
|
-
};
|
|
136
|
-
_this.handleSearch = function () {
|
|
137
|
-
if (_this.checkWorkDoing()) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
var form = _this.getSearchCard();
|
|
141
|
-
if (!form) {
|
|
142
|
-
var text = '查询表单不存在';
|
|
143
|
-
showErrorMessage({
|
|
144
|
-
message: text
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
var validateFields = form.validateFields;
|
|
148
|
-
validateFields().then(function (fieldsValue) {
|
|
149
|
-
var values = _objectSpread2(_objectSpread2({}, fieldsValue), {}, {
|
|
150
|
-
updatedAt: fieldsValue.updatedAt && fieldsValue.updatedAt.valueOf()
|
|
151
|
-
});
|
|
152
|
-
_this.searchData({
|
|
153
|
-
formValues: values
|
|
154
|
-
});
|
|
155
|
-
})["catch"](function (error) {
|
|
156
|
-
var errorFields = error.errorFields;
|
|
157
|
-
if (!isUndefined(errorFields)) {
|
|
158
|
-
var m = [];
|
|
159
|
-
Object.values(errorFields).forEach(function (o) {
|
|
160
|
-
m.push(o.errors[0]);
|
|
161
|
-
});
|
|
162
|
-
var maxLength = 5;
|
|
163
|
-
var beyondMax = false;
|
|
164
|
-
if (m.length > maxLength) {
|
|
165
|
-
m.length = maxLength;
|
|
166
|
-
beyondMax = true;
|
|
167
|
-
}
|
|
168
|
-
var errorMessage = m.join(', ');
|
|
169
|
-
if (beyondMax) {
|
|
170
|
-
errorMessage += ' ...';
|
|
171
|
-
}
|
|
172
|
-
showWarningMessage({
|
|
173
|
-
message: errorMessage
|
|
174
|
-
});
|
|
175
|
-
} else {
|
|
176
|
-
showRuntimeError({
|
|
177
|
-
message: error
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
};
|
|
182
|
-
_this.establishViewDataSource = function () {
|
|
183
|
-
var metaOriginalData = _this.state.metaOriginalData;
|
|
184
|
-
var _list = _objectSpread2(_objectSpread2({}, {
|
|
185
|
-
list: []
|
|
186
|
-
}), metaOriginalData || {}),
|
|
187
|
-
list = _list.list;
|
|
188
|
-
return list;
|
|
189
|
-
};
|
|
190
|
-
_this.adjustFrontendPaginationViewDataSource = function () {
|
|
191
|
-
var _this$state3 = _this.state,
|
|
192
|
-
pageNo = _this$state3.pageNo,
|
|
193
|
-
pageSize = _this$state3.pageSize;
|
|
194
|
-
return _this.buildFrontendPaginationListData({
|
|
195
|
-
pageNo: pageNo,
|
|
196
|
-
pageSize: pageSize
|
|
197
|
-
});
|
|
198
|
-
};
|
|
199
|
-
_this.buildFrontendPaginationListData = function (_ref) {
|
|
200
|
-
var pageNo = _ref.pageNo,
|
|
201
|
-
pageSize = _ref.pageSize;
|
|
202
|
-
var list = _this.adjustViewDataSource();
|
|
203
|
-
var listData = !!_this.getCanUseFrontendPagination() ? list.slice((pageNo - 1) * pageSize, pageNo * pageSize) : list;
|
|
204
|
-
return listData;
|
|
205
|
-
};
|
|
206
|
-
_this.establishTableAdditionalConfig = function () {
|
|
207
|
-
return {};
|
|
208
|
-
};
|
|
209
|
-
_this.establishViewPaginationConfig = function () {
|
|
210
|
-
return null;
|
|
211
|
-
};
|
|
212
|
-
_this.establishViewPaginationConfig = function () {
|
|
213
|
-
var list = _this.establishViewDataSource();
|
|
214
|
-
var paginationConfig = {
|
|
215
|
-
total: (list || []).length
|
|
216
|
-
};
|
|
217
|
-
return paginationConfig;
|
|
218
|
-
};
|
|
219
|
-
_this.handlePaginationChange = function (page, pageSize) {
|
|
220
|
-
_this.setState({
|
|
221
|
-
pageNo: page,
|
|
222
|
-
frontendPageNo: page
|
|
223
|
-
});
|
|
224
|
-
_this.handleAdditionalPaginationChange(page, pageSize);
|
|
225
|
-
};
|
|
226
|
-
_this.handleAdditionalStandardTableChange = function (pagination, filtersArg, sorter) {
|
|
227
|
-
var frontendPageNoSource = pagination.current;
|
|
228
|
-
var frontendPageNo = toNumber(frontendPageNoSource);
|
|
229
|
-
_this.setState({
|
|
230
|
-
pageNo: frontendPageNo,
|
|
231
|
-
frontendPageNo: frontendPageNo
|
|
232
|
-
});
|
|
233
|
-
};
|
|
234
|
-
_this.getFrontendPageNo = function () {
|
|
235
|
-
var frontendPageNo = _this.state.frontendPageNo;
|
|
236
|
-
return toNumber(frontendPageNo);
|
|
237
|
-
};
|
|
238
|
-
_this.renderPaginationView = function () {
|
|
239
|
-
if (!!!_this.getCanUseFrontendPagination()) {
|
|
240
|
-
return null;
|
|
241
|
-
}
|
|
242
|
-
return _this.buildPaginationBar();
|
|
243
|
-
};
|
|
244
|
-
_this.lastLoadParams = null;
|
|
245
|
-
var defaultState = defaultListState();
|
|
246
|
-
_this.state = _objectSpread2(_objectSpread2(_objectSpread2({}, _this.state), defaultState), {
|
|
247
|
-
frontendPageNo: 1
|
|
248
|
-
});
|
|
249
|
-
return _this;
|
|
250
|
-
}
|
|
251
|
-
return _createClass(SinglePage);
|
|
252
|
-
}(ListBase);
|
|
253
|
-
|
|
254
|
-
export { SinglePage as default };
|