antd-management-fast-framework 2.1.0 → 2.1.2
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/components/ApplicationWrapper/index.d.ts +9 -9
- package/es/components/Bootstrap/index.d.ts +3 -3
- package/es/components/DataPreviewDrawer/index.d.ts +31 -31
- package/es/components/LoadingOverlay/index.d.ts +6 -6
- package/es/components/MobileContainor/MobileHtmlPreviewBox/index.d.ts +10 -10
- package/es/components/MobileContainor/MobilePreviewArea/index.d.ts +75 -75
- package/es/components/MobileContainor/MobilePreviewDrawer/index.d.ts +54 -54
- package/es/components/MobileContainor/index.d.ts +8 -8
- package/es/components/index.d.ts +5 -5
- package/es/configs/index.d.ts +2 -2
- package/es/configs/themeCollection.d.ts +7 -7
- package/es/configs/webpackPlugin.d.ts +4 -4
- package/es/framework/AuthorizationWrapper/index.d.ts +11 -12
- package/es/framework/ButtonExtension/SelectButton/Base/index.d.ts +14 -14
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.d.ts +18 -18
- package/es/framework/ButtonExtension/SelectButton/index.d.ts +6 -6
- package/es/framework/ButtonExtension/index.d.ts +1 -1
- package/es/framework/Common/InternalBuild/index.d.ts +26 -26
- package/es/framework/Common/InternalFlow/index.d.ts +149 -149
- package/es/framework/Common/InternalLayout/index.d.ts +9 -9
- package/es/framework/Common/InternalTabFlow/index.d.ts +12 -12
- package/es/framework/Common/index.d.ts +3 -3
- package/es/framework/Core/index.d.ts +20 -20
- package/es/framework/CustomWrapper/Supplement/index.d.ts +9 -9
- package/es/framework/CustomWrapper/SupplementCore/index.d.ts +18 -18
- package/es/framework/CustomWrapper/SupplementWrapper/index.d.ts +3 -3
- package/es/framework/CustomWrapper/index.d.ts +3 -3
- package/es/framework/DataDrawer/Base/index.d.ts +55 -55
- package/es/framework/DataDrawer/BaseAddDrawer/index.d.ts +19 -19
- package/es/framework/DataDrawer/BaseLoadDrawer/index.d.ts +4 -4
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +6 -6
- package/es/framework/DataDrawer/BaseSaveDrawer/index.d.ts +4 -4
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.d.ts +3 -3
- package/es/framework/DataDrawer/index.d.ts +14 -14
- package/es/framework/DataForm/BaseAddForm/index.d.ts +34 -34
- package/es/framework/DataForm/BaseUpdateForm/index.d.ts +9 -9
- package/es/framework/DataForm/BaseUpdateFormContent/index.d.ts +3 -3
- package/es/framework/DataForm/BaseUpdateFormTab/index.d.ts +4 -4
- package/es/framework/DataForm/index.d.ts +10 -10
- package/es/framework/DataListView/Base/index.d.ts +180 -180
- package/es/framework/DataListView/BatchAction/index.d.ts +21 -21
- package/es/framework/DataListView/ColumnSetting/DndItem.d.ts +7 -7
- package/es/framework/DataListView/ColumnSetting/index.d.ts +2 -2
- package/es/framework/DataListView/DensityAction/index.d.ts +6 -6
- package/es/framework/DataListView/index.d.ts +10 -10
- package/es/framework/DataMenuContainer/index.d.ts +28 -28
- package/es/framework/DataModal/Base/index.d.ts +65 -65
- package/es/framework/DataModal/BaseAddModal/index.d.ts +3 -3
- package/es/framework/DataModal/BaseLoadModal/index.d.ts +4 -4
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +35 -35
- package/es/framework/DataModal/BaseSelectModal/index.d.ts +28 -28
- package/es/framework/DataModal/BaseUpdateModal/index.d.ts +3 -3
- package/es/framework/DataModal/BaseUpdateTransferModal/index.d.ts +44 -44
- package/es/framework/DataModal/index.d.ts +16 -16
- package/es/framework/DataMultiPageView/InnerMultiPage/index.d.ts +4 -4
- package/es/framework/DataMultiPageView/MultiPage/index.d.ts +32 -32
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +69 -69
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.d.ts +10 -10
- package/es/framework/DataMultiPageView/index.d.ts +10 -10
- package/es/framework/DataOperation/Base/index.d.ts +76 -76
- package/es/framework/DataOperation/BaseView/index.d.ts +10 -10
- package/es/framework/DataOperation/BaseWindow/index.d.ts +89 -89
- package/es/framework/DataOperation/index.d.ts +8 -8
- package/es/framework/DataSinglePageView/InnerSinglePage/index.d.ts +5 -5
- package/es/framework/DataSinglePageView/SinglePage/index.d.ts +32 -32
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +71 -71
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.d.ts +13 -13
- package/es/framework/DataSinglePageView/index.d.ts +10 -10
- package/es/framework/DataSingleView/DataCore/index.d.ts +30 -30
- package/es/framework/DataSingleView/DataLoad/index.d.ts +51 -51
- package/es/framework/DataSingleView/index.d.ts +6 -6
- package/es/framework/DataTabContainer/index.d.ts +36 -36
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.d.ts +24 -24
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldInteractiveBase/index.d.ts +19 -19
- package/es/framework/FieldExtension/SelectFieldDrawer/index.d.ts +6 -6
- package/es/framework/FieldExtension/index.d.ts +4 -4
- package/es/framework/Wrapper/index.d.ts +3 -3
- package/es/framework/index.d.ts +17 -17
- package/es/index.css +1 -1
- package/es/index.d.ts +5 -5
- package/es/index.js +3 -9771
- package/es/modelBuilders/currentOperator.d.ts +26 -0
- package/es/modelBuilders/entrance.d.ts +40 -0
- package/es/modelBuilders/index.d.ts +1 -1
- package/es/modelBuilders/schedulingControl.d.ts +48 -68
- package/es/services/currentOperator.d.ts +2 -0
- package/es/services/entrance.d.ts +6 -0
- package/es/services/schedulingControl.d.ts +4 -4
- package/es/utils/applicationListDataAssist.d.ts +5 -4
- package/es/utils/applicationListDataCacheAssist.d.ts +24 -24
- package/es/utils/bootstrap.d.ts +4 -4
- package/es/utils/configAssist.d.ts +1 -1
- package/es/utils/currentOperatorAssist.d.ts +19 -5
- package/es/utils/definition.d.ts +4 -4
- package/es/utils/index.d.ts +10 -8
- package/es/utils/interfaceSettingAssist.d.ts +10 -0
- package/es/utils/interfaceSettingCacheAssist.d.ts +18 -0
- package/es/utils/metaDataAssist.d.ts +5 -5
- package/es/utils/schedulingControlAssist.d.ts +34 -10
- package/es/utils/signInAssist.d.ts +6 -0
- package/package.json +24 -21
- 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.d.ts +0 -2
- package/es/utils/layoutSettingAssist.js +0 -60
- package/es/utils/metaDataAssist.js +0 -69
- package/es/utils/storageAssist.js +0 -153
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
import { _ as _extends } from '../../../index2.js';
|
|
2
|
-
import { _ as _objectSpread2 } from '../../../objectSpread2.js';
|
|
3
|
-
import { _ as _inherits, a as _classCallCheck, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../getPrototypeOf.js';
|
|
4
|
-
import { FloatButton, Avatar, Tooltip, Button, Form } from 'antd';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { PageContainer } from '@ant-design/pro-layout';
|
|
7
|
-
import { pageHeaderRenderType } from 'antd-management-fast-common/es/utils/constants';
|
|
8
|
-
import { getDerivedStateFromPropsForUrlParams } from 'antd-management-fast-common/es/utils/tools';
|
|
9
|
-
import { avatarImageLoadResultCollection, decorateAvatar } from 'antd-management-fast-component/es/customComponents/DecorateAvatar';
|
|
10
|
-
import { buildTagList, buildPageHeaderContent, pageHeaderExtraContent, buildPageHeaderTitle, buildPageHeaderTagWrapper } from 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
11
|
-
import { iconBuilder } from 'antd-management-fast-component/es/customComponents/Icon';
|
|
12
|
-
import BaseView from '../../DataOperation/BaseView/index.js';
|
|
13
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
14
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
15
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
16
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
17
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
18
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
19
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
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/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 '../../../typeof.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 '../../../toPropertyKey.js';
|
|
41
|
-
import '../../Core/index.js';
|
|
42
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
43
|
-
import '../../DataOperation/Base/index.js';
|
|
44
|
-
import '../../AuthorizationWrapper/index.js';
|
|
45
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
46
|
-
import '../../CustomWrapper/SupplementWrapper/index.js';
|
|
47
|
-
import '../../CustomWrapper/Supplement/index.js';
|
|
48
|
-
import '../../CustomWrapper/SupplementCore/index.js';
|
|
49
|
-
|
|
50
|
-
var styles = {"cardTitle":"index_cardTitle__8PcER"};
|
|
51
|
-
|
|
52
|
-
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); }; }
|
|
53
|
-
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; } }
|
|
54
|
-
var BackTop = FloatButton.BackTop;
|
|
55
|
-
var DataCore = /*#__PURE__*/function (_BaseView) {
|
|
56
|
-
_inherits(DataCore, _BaseView);
|
|
57
|
-
var _super = _createSuper(DataCore);
|
|
58
|
-
function DataCore(_props) {
|
|
59
|
-
var _this;
|
|
60
|
-
_classCallCheck(this, DataCore);
|
|
61
|
-
_this = _super.call(this, _props);
|
|
62
|
-
_this.enableActionBack = true;
|
|
63
|
-
_this.reloadByUrlOp = false;
|
|
64
|
-
_this.actionBackProps = {};
|
|
65
|
-
_this.formRef = /*#__PURE__*/React.createRef();
|
|
66
|
-
_this.setFormFieldsValue = function (v) {
|
|
67
|
-
var form = _this.getTargetForm();
|
|
68
|
-
if (form != null) {
|
|
69
|
-
form.setFieldsValue(v);
|
|
70
|
-
_this.afterSetFieldsValue(v);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
_this.afterSetFieldsValue = function (v) {};
|
|
74
|
-
_this.getTargetForm = function () {
|
|
75
|
-
return _this.formRef.current;
|
|
76
|
-
};
|
|
77
|
-
_this.onPageHeaderAvatarLoadErrorCallback = function () {
|
|
78
|
-
_this.setState({
|
|
79
|
-
avatarImageLoadResult: avatarImageLoadResultCollection.fail
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
_this.establishPageHeaderAvatarConfig = function () {
|
|
83
|
-
return null;
|
|
84
|
-
};
|
|
85
|
-
_this.establishPageHeaderContentGridConfig = function () {
|
|
86
|
-
return [];
|
|
87
|
-
};
|
|
88
|
-
_this.establishPageHeaderContentCollectionGridConfig = function () {
|
|
89
|
-
return {
|
|
90
|
-
type: pageHeaderRenderType.descriptionGrid,
|
|
91
|
-
list: _this.establishPageHeaderContentGridConfig()
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
_this.establishPageHeaderContentParagraphCollectionConfig = function () {
|
|
95
|
-
return [];
|
|
96
|
-
};
|
|
97
|
-
_this.establishPageHeaderContentParagraphConfig = function () {
|
|
98
|
-
return {
|
|
99
|
-
type: pageHeaderRenderType.paragraph,
|
|
100
|
-
list: _this.establishPageHeaderContentParagraphCollectionConfig()
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
_this.establishPageHeaderContentActionCollectionConfig = function () {
|
|
104
|
-
return [];
|
|
105
|
-
};
|
|
106
|
-
_this.establishPageHeaderContentActionConfig = function () {
|
|
107
|
-
return {
|
|
108
|
-
type: pageHeaderRenderType.action,
|
|
109
|
-
list: _this.establishPageHeaderContentActionCollectionConfig()
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
_this.establishPageHeaderContentConfig = function () {
|
|
113
|
-
return {
|
|
114
|
-
list: [_this.establishPageHeaderContentCollectionGridConfig(), _this.establishPageHeaderContentParagraphConfig(), _this.establishPageHeaderContentActionConfig()]
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
_this.establishPageHeaderTagCollectionConfig = function () {
|
|
118
|
-
return [];
|
|
119
|
-
};
|
|
120
|
-
_this.establishPageHeaderExtraContentConfig = function () {
|
|
121
|
-
return null;
|
|
122
|
-
};
|
|
123
|
-
_this.establishPageHeaderTitlePrefix = function () {
|
|
124
|
-
return '';
|
|
125
|
-
};
|
|
126
|
-
_this.establishPageHeaderTagConfig = function () {
|
|
127
|
-
return buildTagList({
|
|
128
|
-
list: _this.establishPageHeaderTagCollectionConfig()
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
_this.buildPageHeaderSubTitle = function () {
|
|
132
|
-
return null;
|
|
133
|
-
};
|
|
134
|
-
_this.pageHeaderLogo = function () {
|
|
135
|
-
return /*#__PURE__*/React.createElement(Avatar, {
|
|
136
|
-
shape: "square",
|
|
137
|
-
icon: iconBuilder.plus()
|
|
138
|
-
});
|
|
139
|
-
};
|
|
140
|
-
_this.getPageName = function () {
|
|
141
|
-
var pageName = _this.state.pageName;
|
|
142
|
-
return pageName;
|
|
143
|
-
};
|
|
144
|
-
_this.buildExtraBackAction = function () {
|
|
145
|
-
var backPath = _this.state.backPath;
|
|
146
|
-
if (!_this.enableActionBack) {
|
|
147
|
-
return null;
|
|
148
|
-
}
|
|
149
|
-
if ((backPath || '') === '') {
|
|
150
|
-
return null;
|
|
151
|
-
}
|
|
152
|
-
var props = _objectSpread2(_objectSpread2({}, {
|
|
153
|
-
icon: iconBuilder.rollback(),
|
|
154
|
-
type: 'dashed'
|
|
155
|
-
}), _this.actionBackProps || {});
|
|
156
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
157
|
-
placement: "top",
|
|
158
|
-
title: "\u8FD4\u56DE\u5217\u8868\u9875"
|
|
159
|
-
}, /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
160
|
-
onClick: function onClick(e) {
|
|
161
|
-
_this.backToList(e);
|
|
162
|
-
}
|
|
163
|
-
}), "\u5217\u8868\u9875"));
|
|
164
|
-
};
|
|
165
|
-
_this.buildFormLayout = function () {
|
|
166
|
-
return 'vertical';
|
|
167
|
-
};
|
|
168
|
-
_this.getFormClassName = function () {
|
|
169
|
-
return null;
|
|
170
|
-
};
|
|
171
|
-
_this.renderMainTitleIcon = function () {
|
|
172
|
-
return iconBuilder.contacts();
|
|
173
|
-
};
|
|
174
|
-
_this.renderMainTitleText = function () {
|
|
175
|
-
return '基本信息';
|
|
176
|
-
};
|
|
177
|
-
_this.renderMainTitle = function () {
|
|
178
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.renderMainTitleIcon(), /*#__PURE__*/React.createElement("span", {
|
|
179
|
-
className: styles.cardTitle
|
|
180
|
-
}, " ", _this.renderMainTitleText()));
|
|
181
|
-
};
|
|
182
|
-
_this.renderFormWrapper = function () {
|
|
183
|
-
return _this.renderForm();
|
|
184
|
-
};
|
|
185
|
-
_this.renderForm = function () {
|
|
186
|
-
var _this$state = _this.state,
|
|
187
|
-
metaData = _this$state.metaData,
|
|
188
|
-
metaListData = _this$state.metaListData,
|
|
189
|
-
metaExtra = _this$state.metaExtra,
|
|
190
|
-
metaOriginalData = _this$state.metaOriginalData;
|
|
191
|
-
var initialValues = _this.buildInitialValues({
|
|
192
|
-
metaData: metaData,
|
|
193
|
-
metaListData: metaListData,
|
|
194
|
-
metaExtra: metaExtra,
|
|
195
|
-
metaOriginalData: metaOriginalData
|
|
196
|
-
});
|
|
197
|
-
var otherFormProps = _this.establishFormAdditionalConfig();
|
|
198
|
-
return /*#__PURE__*/React.createElement(Form, _extends({
|
|
199
|
-
ref: _this.formRef,
|
|
200
|
-
initialValues: initialValues,
|
|
201
|
-
className: _this.getFormClassName(),
|
|
202
|
-
layout: _this.buildFormLayout()
|
|
203
|
-
}, otherFormProps), _this.formContent());
|
|
204
|
-
};
|
|
205
|
-
_this.establishCardCollectionConfig = function () {
|
|
206
|
-
return null;
|
|
207
|
-
};
|
|
208
|
-
_this.renderPageHeaderContent = function () {
|
|
209
|
-
return buildPageHeaderContent(_this.establishPageHeaderContentConfig() || {});
|
|
210
|
-
};
|
|
211
|
-
_this.renderPageHeaderExtraContent = function () {
|
|
212
|
-
return pageHeaderExtraContent(_this.establishPageHeaderExtraContentConfig());
|
|
213
|
-
};
|
|
214
|
-
_this.formContent = function () {
|
|
215
|
-
return _this.buildCardCollection(_this.establishCardCollectionConfig());
|
|
216
|
-
};
|
|
217
|
-
_this.state = _objectSpread2(_objectSpread2({}, _this.state), {}, {
|
|
218
|
-
avatarImageLoadResult: avatarImageLoadResultCollection.wait
|
|
219
|
-
});
|
|
220
|
-
return _this;
|
|
221
|
-
}
|
|
222
|
-
_createClass(DataCore, [{
|
|
223
|
-
key: "renderFurther",
|
|
224
|
-
value: function renderFurther() {
|
|
225
|
-
var _this2 = this;
|
|
226
|
-
var _this$state2 = this.state,
|
|
227
|
-
defaultAvatarIcon = _this$state2.defaultAvatarIcon,
|
|
228
|
-
showPageHeaderAvatar = _this$state2.showPageHeaderAvatar,
|
|
229
|
-
dataLoading = _this$state2.dataLoading,
|
|
230
|
-
reloading = _this$state2.reloading,
|
|
231
|
-
avatarImageLoadResult = _this$state2.avatarImageLoadResult;
|
|
232
|
-
var avatarProps = showPageHeaderAvatar ? decorateAvatar(this.establishPageHeaderAvatarConfig(), defaultAvatarIcon, showPageHeaderAvatar, dataLoading, reloading, avatarImageLoadResult, function () {
|
|
233
|
-
_this2.onPageHeaderAvatarLoadErrorCallback();
|
|
234
|
-
}) : null;
|
|
235
|
-
return /*#__PURE__*/React.createElement(PageContainer, {
|
|
236
|
-
logo: this.pageHeaderLogo(),
|
|
237
|
-
avatar: avatarProps,
|
|
238
|
-
title: buildPageHeaderTitle(this.getPageName(), this.establishPageHeaderTitlePrefix()),
|
|
239
|
-
subTitle: this.buildPageHeaderSubTitle(),
|
|
240
|
-
tags: buildPageHeaderTagWrapper(this.establishPageHeaderTagConfig()),
|
|
241
|
-
extra: this.buildExtraAction(),
|
|
242
|
-
content: this.renderPageHeaderContent(),
|
|
243
|
-
extraContent: this.renderPageHeaderExtraContent()
|
|
244
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
245
|
-
className: styles.containorBox,
|
|
246
|
-
style: {
|
|
247
|
-
overflowX: 'hidden'
|
|
248
|
-
}
|
|
249
|
-
}, this.renderFormWrapper(), this.renderOther()), /*#__PURE__*/React.createElement(BackTop, null));
|
|
250
|
-
}
|
|
251
|
-
}], [{
|
|
252
|
-
key: "getDerivedStateFromProps",
|
|
253
|
-
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
254
|
-
return getDerivedStateFromPropsForUrlParams(nextProps, prevState);
|
|
255
|
-
}
|
|
256
|
-
}]);
|
|
257
|
-
return DataCore;
|
|
258
|
-
}(BaseView);
|
|
259
|
-
|
|
260
|
-
export { DataCore as default };
|
|
@@ -1,151 +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 { defaultFormState, getDerivedStateFromPropsForUrlParams } from 'antd-management-fast-common/es/utils/tools';
|
|
4
|
-
import DataCore from '../DataCore/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 '@ant-design/pro-layout';
|
|
42
|
-
import 'antd-management-fast-component/es/customComponents/DecorateAvatar';
|
|
43
|
-
import '../../DataOperation/BaseView/index.js';
|
|
44
|
-
import '../../DataOperation/Base/index.js';
|
|
45
|
-
import '../../AuthorizationWrapper/index.js';
|
|
46
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
47
|
-
import '../../CustomWrapper/SupplementWrapper/index.js';
|
|
48
|
-
import '../../CustomWrapper/Supplement/index.js';
|
|
49
|
-
import '../../CustomWrapper/SupplementCore/index.js';
|
|
50
|
-
|
|
51
|
-
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); }; }
|
|
52
|
-
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; } }
|
|
53
|
-
var DataLoad = /*#__PURE__*/function (_DataCore) {
|
|
54
|
-
_inherits(DataLoad, _DataCore);
|
|
55
|
-
var _super = _createSuper(DataLoad);
|
|
56
|
-
function DataLoad(props) {
|
|
57
|
-
var _this;
|
|
58
|
-
_classCallCheck(this, DataLoad);
|
|
59
|
-
_this = _super.call(this, props);
|
|
60
|
-
_this.doOtherWhenChangeVisibleToShow = function (preProps, preState, snapshot) {
|
|
61
|
-
var urlParams = _this.state.urlParams;
|
|
62
|
-
var urlParamsPrev = preState.urlParams;
|
|
63
|
-
if ((urlParams || null) == null || (urlParamsPrev || null) == null) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
var op = urlParams.op;
|
|
67
|
-
var prevOp = urlParamsPrev.op;
|
|
68
|
-
var dataLoading = _this.state.dataLoading;
|
|
69
|
-
if (!dataLoading) {
|
|
70
|
-
if (prevOp === 'load' && op === 'update' || _this.checkNeedUpdate(preProps, preState, snapshot)) {
|
|
71
|
-
if (_this.reloadByUrlOp) {
|
|
72
|
-
_this.reloadData();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
_this.afterLoadSuccess = function (_ref) {
|
|
78
|
-
var metaData = _ref.metaData,
|
|
79
|
-
metaListData = _ref.metaListData,
|
|
80
|
-
metaExtra = _ref.metaExtra,
|
|
81
|
-
metaOriginalData = _ref.metaOriginalData;
|
|
82
|
-
_this.fillData({
|
|
83
|
-
metaData: metaData,
|
|
84
|
-
metaListData: metaListData,
|
|
85
|
-
metaExtra: metaExtra,
|
|
86
|
-
metaOriginalData: metaOriginalData
|
|
87
|
-
});
|
|
88
|
-
_this.doOtherAfterLoadSuccess({
|
|
89
|
-
metaData: metaData,
|
|
90
|
-
metaListData: metaListData,
|
|
91
|
-
metaExtra: metaExtra,
|
|
92
|
-
metaOriginalData: metaOriginalData
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
_this.doOtherAfterLoadSuccess = function (_ref2) {
|
|
96
|
-
_ref2.metaData;
|
|
97
|
-
_ref2.metaListData;
|
|
98
|
-
_ref2.metaExtra;
|
|
99
|
-
_ref2.metaOriginalData;
|
|
100
|
-
};
|
|
101
|
-
_this.fillData = function (_ref3) {
|
|
102
|
-
var _ref3$metaData = _ref3.metaData,
|
|
103
|
-
metaData = _ref3$metaData === void 0 ? null : _ref3$metaData,
|
|
104
|
-
_ref3$metaListData = _ref3.metaListData,
|
|
105
|
-
metaListData = _ref3$metaListData === void 0 ? [] : _ref3$metaListData,
|
|
106
|
-
_ref3$metaExtra = _ref3.metaExtra,
|
|
107
|
-
metaExtra = _ref3$metaExtra === void 0 ? null : _ref3$metaExtra,
|
|
108
|
-
_ref3$metaOriginalDat = _ref3.metaOriginalData,
|
|
109
|
-
metaOriginalData = _ref3$metaOriginalDat === void 0 ? null : _ref3$metaOriginalDat;
|
|
110
|
-
var initialValues = _this.buildInitialValues({
|
|
111
|
-
metaData: metaData,
|
|
112
|
-
metaListData: metaListData,
|
|
113
|
-
metaExtra: metaExtra,
|
|
114
|
-
metaOriginalData: metaOriginalData
|
|
115
|
-
});
|
|
116
|
-
var form = _this.getTargetForm();
|
|
117
|
-
if (form != null) {
|
|
118
|
-
form.setFieldsValue(initialValues);
|
|
119
|
-
_this.afterFillForm({
|
|
120
|
-
metaData: metaData,
|
|
121
|
-
metaListData: metaListData,
|
|
122
|
-
metaExtra: metaExtra,
|
|
123
|
-
metaOriginalData: metaOriginalData
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
_this.afterFillForm = function (_ref4) {
|
|
128
|
-
_ref4.metaData;
|
|
129
|
-
_ref4.metaListData;
|
|
130
|
-
_ref4.metaExtra;
|
|
131
|
-
_ref4.metaOriginalData;
|
|
132
|
-
};
|
|
133
|
-
_this.lastLoadParams = null;
|
|
134
|
-
var defaultState = defaultFormState();
|
|
135
|
-
_this.state = _objectSpread2(_objectSpread2({}, defaultState), {
|
|
136
|
-
showReloadButton: true
|
|
137
|
-
});
|
|
138
|
-
return _this;
|
|
139
|
-
}
|
|
140
|
-
_createClass(DataLoad, null, [{
|
|
141
|
-
key: "getDerivedStateFromProps",
|
|
142
|
-
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
143
|
-
return getDerivedStateFromPropsForUrlParams(nextProps, prevState);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
147
|
-
}]);
|
|
148
|
-
return DataLoad;
|
|
149
|
-
}(DataCore);
|
|
150
|
-
|
|
151
|
-
export { DataLoad as default };
|
|
@@ -1,254 +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 { _ as _get } from '../../get.js';
|
|
4
|
-
import { Space, Divider, Tabs } from 'antd';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { PageContainer } from '@ant-design/pro-layout';
|
|
7
|
-
import { isArray, isObject, isBoolean } from 'antd-management-fast-common/es/utils/tools';
|
|
8
|
-
import { decorateAvatar } from 'antd-management-fast-component/es/customComponents/DecorateAvatar';
|
|
9
|
-
import { buildPageHeaderTitle, buildPageHeaderTagWrapper, buildPageHeaderContent, pageHeaderExtraContent } from 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
10
|
-
import { iconBuilder } from 'antd-management-fast-component/es/customComponents/Icon';
|
|
11
|
-
import DataLoad from '../DataSingleView/DataLoad/index.js';
|
|
12
|
-
import '../../toPropertyKey.js';
|
|
13
|
-
import '../../typeof.js';
|
|
14
|
-
import '../DataSingleView/DataCore/index.js';
|
|
15
|
-
import '../../index2.js';
|
|
16
|
-
import 'antd-management-fast-common/es/utils/constants';
|
|
17
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
18
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
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/FunctionSupplement/Whether';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
32
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
33
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
34
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
35
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
36
|
-
import '../../utils/metaDataAssist.js';
|
|
37
|
-
import '../../index3.js';
|
|
38
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
39
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
40
|
-
import '../../utils/storageAssist.js';
|
|
41
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
42
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
43
|
-
import '../Core/index.js';
|
|
44
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
45
|
-
import '../DataOperation/BaseView/index.js';
|
|
46
|
-
import '../DataOperation/Base/index.js';
|
|
47
|
-
import '../AuthorizationWrapper/index.js';
|
|
48
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
49
|
-
import '../CustomWrapper/SupplementWrapper/index.js';
|
|
50
|
-
import '../CustomWrapper/Supplement/index.js';
|
|
51
|
-
import '../CustomWrapper/SupplementCore/index.js';
|
|
52
|
-
|
|
53
|
-
var styles = {"customContainor":"index_customContainor__kV-JA","ant-tabs-tab-active":"index_ant-tabs-tab-active__OkoZD"};
|
|
54
|
-
|
|
55
|
-
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); }; }
|
|
56
|
-
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; } }
|
|
57
|
-
var DataTabContainer = /*#__PURE__*/function (_DataSingleView) {
|
|
58
|
-
_inherits(DataTabContainer, _DataSingleView);
|
|
59
|
-
var _super = _createSuper(DataTabContainer);
|
|
60
|
-
function DataTabContainer(props) {
|
|
61
|
-
var _this;
|
|
62
|
-
_classCallCheck(this, DataTabContainer);
|
|
63
|
-
_this = _super.call(this, props);
|
|
64
|
-
_this.resetDataAfterLoad = false;
|
|
65
|
-
_this.currentKey = '';
|
|
66
|
-
_this.tabList = [];
|
|
67
|
-
_this.doWorkWhenDidUpdate = function (preProps, preState, snapshot) {
|
|
68
|
-
var urlParams = _this.state.urlParams;
|
|
69
|
-
var urlParamsPrev = preState.urlParams;
|
|
70
|
-
if ((urlParams || null) == null || (urlParamsPrev || null) == null) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
var op = urlParams.op;
|
|
74
|
-
var prevOp = urlParamsPrev.op;
|
|
75
|
-
var dataLoading = _this.state.dataLoading;
|
|
76
|
-
if (!dataLoading) {
|
|
77
|
-
if (prevOp === 'load' && op === 'update' || _this.checkNeedUpdate(preProps, preState, snapshot)) {
|
|
78
|
-
_this.reloadData();
|
|
79
|
-
var pathname = _this.props.location.pathname;
|
|
80
|
-
_this.redirectToPath("".concat(pathname.replace('/update/', '/load/')));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
_this.handleTabChange = function (key) {
|
|
85
|
-
_this.currentKey = key;
|
|
86
|
-
};
|
|
87
|
-
_this.adjustTabListAvailable = function (tabListAvailable) {
|
|
88
|
-
return tabListAvailable;
|
|
89
|
-
};
|
|
90
|
-
_this.getTabActiveKey = function () {
|
|
91
|
-
return _this.currentKey;
|
|
92
|
-
};
|
|
93
|
-
_this.fillInitialValuesAfterLoad = function (_ref) {
|
|
94
|
-
_ref.metaData;
|
|
95
|
-
_ref.metaListData;
|
|
96
|
-
_ref.metaExtra;
|
|
97
|
-
_ref.metaOriginalData;
|
|
98
|
-
return null;
|
|
99
|
-
};
|
|
100
|
-
_this.getTabListAvailable = function () {
|
|
101
|
-
var tabListAvailable = [];
|
|
102
|
-
(_this.tabList || []).forEach(function (o) {
|
|
103
|
-
var v = typeof o.show === 'undefined' ? true : o.show === true;
|
|
104
|
-
if (v) {
|
|
105
|
-
tabListAvailable.push(o);
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
return _this.adjustTabListAvailable(tabListAvailable);
|
|
109
|
-
};
|
|
110
|
-
_this.buildOtherTabProps = function () {
|
|
111
|
-
var tabListAvailable = _this.getTabListAvailable();
|
|
112
|
-
if (tabListAvailable.length > 0) {
|
|
113
|
-
return {
|
|
114
|
-
// destroyInactiveTabPane: true,
|
|
115
|
-
type: 'card',
|
|
116
|
-
size: 'small',
|
|
117
|
-
tabBarStyle: {
|
|
118
|
-
marginBottom: 0,
|
|
119
|
-
backgroundColor: '#fff',
|
|
120
|
-
paddingTop: '16px',
|
|
121
|
-
paddingLeft: '24px',
|
|
122
|
-
paddingRight: '24px'
|
|
123
|
-
},
|
|
124
|
-
tabBarGutter: 3,
|
|
125
|
-
animated: {
|
|
126
|
-
inkBar: true,
|
|
127
|
-
tabPane: true
|
|
128
|
-
},
|
|
129
|
-
// activeKey: this.getTabActiveKey(),
|
|
130
|
-
tabBarExtraContent: _this.buildTabBarExtraContent(),
|
|
131
|
-
items: tabListAvailable.map(function (o) {
|
|
132
|
-
return _objectSpread2(_objectSpread2({}, {
|
|
133
|
-
style: {
|
|
134
|
-
padding: '24px'
|
|
135
|
-
}
|
|
136
|
-
}), o);
|
|
137
|
-
}),
|
|
138
|
-
onChange: _this.handleTabChange()
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
return null;
|
|
142
|
-
};
|
|
143
|
-
_this.establishTabBarExtraContentLeftConfig = function () {
|
|
144
|
-
return null;
|
|
145
|
-
};
|
|
146
|
-
_this.establishTabBarExtraContentRightConfig = function () {
|
|
147
|
-
return null;
|
|
148
|
-
};
|
|
149
|
-
_this.buildTabBarExtraContentItems = function (_ref2) {
|
|
150
|
-
var _ref2$keyPrefix = _ref2.keyPrefix,
|
|
151
|
-
keyPrefix = _ref2$keyPrefix === void 0 ? '' : _ref2$keyPrefix,
|
|
152
|
-
configListSource = _ref2.list,
|
|
153
|
-
_ref2$split = _ref2.split,
|
|
154
|
-
splitSource = _ref2$split === void 0 ? false : _ref2$split;
|
|
155
|
-
var _split$list$split$lis = _objectSpread2(_objectSpread2({}, {
|
|
156
|
-
split: false,
|
|
157
|
-
list: []
|
|
158
|
-
}), {
|
|
159
|
-
split: splitSource,
|
|
160
|
-
list: configListSource
|
|
161
|
-
}),
|
|
162
|
-
split = _split$list$split$lis.split,
|
|
163
|
-
list = _split$list$split$lis.list;
|
|
164
|
-
var configList = isArray(list) ? list : isObject(list) ? [list] : [];
|
|
165
|
-
if (configList.length <= 0) {
|
|
166
|
-
return null;
|
|
167
|
-
}
|
|
168
|
-
var listItem = _this.buildByExtraBuildType({
|
|
169
|
-
keyPrefix: keyPrefix || 'tabBarExtraContentItem',
|
|
170
|
-
configList: configList
|
|
171
|
-
});
|
|
172
|
-
return /*#__PURE__*/React.createElement(Space, {
|
|
173
|
-
split: isBoolean(split) ? split ? /*#__PURE__*/React.createElement(Divider, {
|
|
174
|
-
type: "vertical"
|
|
175
|
-
}) : null : split
|
|
176
|
-
}, listItem);
|
|
177
|
-
};
|
|
178
|
-
_this.buildTabBarExtraContent = function () {
|
|
179
|
-
var leftItems = _this.buildTabBarExtraContentItems({
|
|
180
|
-
keyPrefix: "data_tab_container_tab_bar_left_action_key",
|
|
181
|
-
list: _this.establishTabBarExtraContentLeftConfig()
|
|
182
|
-
});
|
|
183
|
-
var rightItems = _this.buildTabBarExtraContentItems({
|
|
184
|
-
keyPrefix: "data_tab_container_tab_bar_right_action_key",
|
|
185
|
-
list: _this.establishTabBarExtraContentRightConfig()
|
|
186
|
-
});
|
|
187
|
-
return {
|
|
188
|
-
left: leftItems,
|
|
189
|
-
right: rightItems
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
_this.state = _objectSpread2(_objectSpread2({}, _this.state), {
|
|
193
|
-
defaultAvatarIcon: iconBuilder.picture(),
|
|
194
|
-
showPageHeaderAvatar: true,
|
|
195
|
-
customTabActiveKey: false
|
|
196
|
-
});
|
|
197
|
-
return _this;
|
|
198
|
-
}
|
|
199
|
-
_createClass(DataTabContainer, [{
|
|
200
|
-
key: "renderFurther",
|
|
201
|
-
value: function renderFurther() {
|
|
202
|
-
var _this2 = this;
|
|
203
|
-
var _this$state = this.state,
|
|
204
|
-
defaultAvatarIcon = _this$state.defaultAvatarIcon,
|
|
205
|
-
showPageHeaderAvatar = _this$state.showPageHeaderAvatar,
|
|
206
|
-
dataLoading = _this$state.dataLoading,
|
|
207
|
-
reloading = _this$state.reloading,
|
|
208
|
-
avatarImageLoadResult = _this$state.avatarImageLoadResult;
|
|
209
|
-
var avatarProps = showPageHeaderAvatar ? decorateAvatar(this.establishPageHeaderAvatarConfig(), defaultAvatarIcon, showPageHeaderAvatar, dataLoading, reloading, avatarImageLoadResult, function () {
|
|
210
|
-
_this2.onPageHeaderAvatarLoadErrorCallback();
|
|
211
|
-
}) : null;
|
|
212
|
-
var pageHeaderContentConfig = this.establishPageHeaderContentConfig();
|
|
213
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
214
|
-
style: {
|
|
215
|
-
background: '#f0f2f5'
|
|
216
|
-
}
|
|
217
|
-
}, /*#__PURE__*/React.createElement(PageContainer, {
|
|
218
|
-
className: styles.customContainor,
|
|
219
|
-
header: {
|
|
220
|
-
ghost: false,
|
|
221
|
-
style: {
|
|
222
|
-
backgroundColor: '#fff',
|
|
223
|
-
paddingBottom: '0',
|
|
224
|
-
paddingLeft: '24px',
|
|
225
|
-
paddingRight: '24px'
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
childrenContentStyle: {
|
|
229
|
-
padding: '0px'
|
|
230
|
-
},
|
|
231
|
-
avatar: avatarProps,
|
|
232
|
-
title: buildPageHeaderTitle(this.getPageName(), this.establishPageHeaderTitlePrefix()),
|
|
233
|
-
subTitle: this.buildPageHeaderSubTitle(),
|
|
234
|
-
tags: buildPageHeaderTagWrapper(this.establishPageHeaderTagConfig()),
|
|
235
|
-
extra: this.buildExtraAction(),
|
|
236
|
-
content: buildPageHeaderContent(pageHeaderContentConfig),
|
|
237
|
-
extraContent: pageHeaderExtraContent(this.establishPageHeaderExtraContentConfig())
|
|
238
|
-
// onBack={() => {
|
|
239
|
-
// this.backToList();
|
|
240
|
-
// }}
|
|
241
|
-
}, /*#__PURE__*/React.createElement(Tabs, this.buildOtherTabProps()), this.renderOther()));
|
|
242
|
-
}
|
|
243
|
-
}], [{
|
|
244
|
-
key: "getDerivedStateFromProps",
|
|
245
|
-
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
246
|
-
return _get(_getPrototypeOf(DataTabContainer), "getDerivedStateFromProps", this).call(this, nextProps, prevState);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
250
|
-
}]);
|
|
251
|
-
return DataTabContainer;
|
|
252
|
-
}(DataLoad);
|
|
253
|
-
|
|
254
|
-
export { DataTabContainer as default };
|