antd-management-fast-framework 1.12.103 → 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/components/ApplicationWrapper/index.d.ts +9 -0
- package/es/components/Bootstrap/index.d.ts +3 -0
- package/es/{customComponents → components}/DataPreviewDrawer/index.d.ts +5 -6
- package/es/{customComponents/Exception → components/LoadingOverlay}/index.d.ts +1 -3
- package/es/components/MobileContainor/MobileHtmlPreviewBox/index.d.ts +10 -0
- package/es/components/MobileContainor/MobilePreviewArea/index.d.ts +75 -0
- package/es/{customComponents → components}/MobileContainor/MobilePreviewDrawer/index.d.ts +8 -8
- package/es/components/MobileContainor/index.d.ts +8 -0
- package/es/components/index.d.ts +5 -0
- package/es/configs/index.d.ts +2 -0
- package/es/configs/themeCollection.d.ts +7 -0
- package/es/{configGroup → configs}/webpackPlugin.d.ts +0 -7
- package/es/framework/AuthorizationWrapper/index.d.ts +8 -5
- package/es/framework/ButtonExtension/SelectButton/Base/index.d.ts +5 -6
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.d.ts +6 -7
- package/es/framework/ButtonExtension/SelectButton/index.d.ts +6 -0
- package/es/framework/ButtonExtension/index.d.ts +1 -0
- package/es/framework/Common/InternalBuild/index.d.ts +26 -0
- package/es/framework/Common/InternalFlow/index.d.ts +149 -0
- package/es/framework/Common/InternalLayout/index.d.ts +9 -0
- package/es/framework/Common/InternalTabFlow/index.d.ts +12 -0
- package/es/framework/Common/index.d.ts +2 -205
- package/es/framework/Core/index.d.ts +17 -6
- package/es/framework/CustomWrapper/Supplement/index.d.ts +2 -3
- package/es/framework/CustomWrapper/SupplementCore/index.d.ts +2 -4
- package/es/framework/CustomWrapper/SupplementWrapper/index.d.ts +2 -3
- package/es/framework/CustomWrapper/index.d.ts +3 -0
- package/es/framework/DataDrawer/Base/index.d.ts +16 -18
- package/es/framework/DataDrawer/BaseAddDrawer/index.d.ts +3 -4
- package/es/framework/DataDrawer/BaseLoadDrawer/index.d.ts +3 -4
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +3 -4
- package/es/framework/DataDrawer/BaseSaveDrawer/index.d.ts +2 -3
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.d.ts +2 -3
- package/es/framework/DataDrawer/index.d.ts +14 -0
- package/es/framework/DataForm/BaseAddForm/index.d.ts +7 -7
- package/es/framework/DataForm/BaseUpdateForm/index.d.ts +3 -4
- package/es/framework/DataForm/BaseUpdateFormContent/index.d.ts +2 -3
- package/es/framework/DataForm/BaseUpdateFormTab/index.d.ts +3 -3
- package/es/framework/DataForm/index.d.ts +10 -0
- package/es/framework/DataListView/Base/index.d.ts +38 -82
- package/es/framework/DataListView/BatchAction/index.d.ts +3 -3
- package/es/framework/DataListView/ColumnSetting/DndItem.d.ts +1 -2
- package/es/framework/DataListView/ColumnSetting/index.d.ts +1 -2
- package/es/framework/DataListView/DensityAction/index.d.ts +2 -3
- package/es/framework/DataListView/index.d.ts +10 -0
- package/es/framework/DataMenuContainer/index.d.ts +8 -10
- package/es/framework/DataModal/Base/index.d.ts +10 -12
- package/es/framework/DataModal/BaseAddModal/index.d.ts +2 -3
- package/es/framework/DataModal/BaseLoadModal/index.d.ts +3 -4
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +6 -6
- package/es/framework/DataModal/BaseSelectModal/index.d.ts +4 -4
- package/es/framework/DataModal/BaseUpdateModal/index.d.ts +2 -3
- package/es/framework/DataModal/BaseUpdateTransferModal/index.d.ts +5 -5
- package/es/framework/DataModal/index.d.ts +16 -0
- package/es/framework/DataMultiPageView/InnerMultiPage/index.d.ts +3 -3
- package/es/framework/DataMultiPageView/MultiPage/index.d.ts +4 -3
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +19 -21
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.d.ts +4 -5
- package/es/framework/DataMultiPageView/index.d.ts +10 -0
- package/es/framework/DataOperation/Base/index.d.ts +2 -3
- package/es/framework/DataOperation/BaseView/index.d.ts +2 -3
- package/es/framework/DataOperation/BaseWindow/index.d.ts +13 -14
- package/es/framework/DataOperation/index.d.ts +8 -0
- package/es/framework/DataSinglePageView/InnerSinglePage/index.d.ts +3 -3
- package/es/framework/DataSinglePageView/SinglePage/index.d.ts +9 -4
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +19 -21
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.d.ts +4 -5
- package/es/framework/DataSinglePageView/index.d.ts +10 -0
- package/es/framework/DataSingleView/DataCore/index.d.ts +13 -40
- package/es/framework/DataSingleView/DataLoad/index.d.ts +5 -5
- package/es/framework/DataSingleView/index.d.ts +6 -0
- package/es/framework/DataTabContainer/index.d.ts +6 -29
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.d.ts +6 -7
- package/es/framework/FieldExtension/SelectFieldDrawer/{SelectFieldDrawerBase → SelectFieldInteractiveBase}/index.d.ts +6 -7
- package/es/framework/FieldExtension/SelectFieldDrawer/index.d.ts +6 -0
- package/es/framework/FieldExtension/index.d.ts +4 -0
- package/es/framework/Wrapper/index.d.ts +2 -3
- package/es/framework/index.d.ts +17 -7
- package/es/index.css +12 -0
- package/es/index.d.ts +5 -1
- package/es/index.js +3 -8
- package/es/modelBuilders/index.d.ts +1 -0
- package/es/modelBuilders/schedulingControl.d.ts +68 -0
- package/es/services/schedulingControl.d.ts +4 -0
- package/es/utils/applicationListDataAssist.d.ts +4 -0
- package/es/utils/applicationListDataCacheAssist.d.ts +24 -0
- package/es/utils/bootstrap.d.ts +4 -0
- package/es/utils/configAssist.d.ts +1 -0
- package/es/utils/currentOperatorAssist.d.ts +5 -0
- package/es/utils/definition.d.ts +4 -0
- package/es/utils/index.d.ts +8 -0
- package/es/utils/layoutSettingAssist.d.ts +2 -0
- package/es/utils/metaDataAssist.d.ts +5 -0
- package/es/utils/schedulingControlAssist.d.ts +10 -0
- package/package.json +122 -195
- package/License.txt +0 -21
- package/README.md +0 -35
- package/es/configGroup/configGeneral.d.ts +0 -56
- package/es/configGroup/configGeneral.js +0 -143
- package/es/configGroup/themeCollection.d.ts +0 -29
- package/es/configGroup/themeCollection.js +0 -117
- package/es/configGroup/webpackPlugin.js +0 -166
- package/es/customComponents/AMap/UIPoiPicker.d.ts +0 -8
- package/es/customComponents/AMap/UIPoiPicker.js +0 -78
- package/es/customComponents/AMap/UIPositionPicker.d.ts +0 -8
- package/es/customComponents/AMap/UIPositionPicker.js +0 -87
- package/es/customComponents/ActiveChart/index.d.ts +0 -17
- package/es/customComponents/ActiveChart/index.js +0 -168
- package/es/customComponents/ActiveChart/index.less +0 -58
- package/es/customComponents/AnimalBox/FadeBox/index.d.ts +0 -14
- package/es/customComponents/AnimalBox/FadeBox/index.js +0 -82
- package/es/customComponents/AnimalBox/FadeBox/index.less +0 -61
- package/es/customComponents/AnimalBox/QueueBox/index.d.ts +0 -12
- package/es/customComponents/AnimalBox/QueueBox/index.js +0 -76
- package/es/customComponents/AnimalBox/QueueListBox/index.d.ts +0 -15
- package/es/customComponents/AnimalBox/QueueListBox/index.js +0 -117
- package/es/customComponents/AnimalBox/QueueListBox/index.less +0 -16
- package/es/customComponents/AnimalBox/RotateBox/index.d.ts +0 -14
- package/es/customComponents/AnimalBox/RotateBox/index.js +0 -85
- package/es/customComponents/ArticleListContent/index.d.ts +0 -10
- package/es/customComponents/ArticleListContent/index.js +0 -49
- package/es/customComponents/ArticleListContent/index.less +0 -41
- package/es/customComponents/AudioUpload/index.d.ts +0 -39
- package/es/customComponents/AudioUpload/index.js +0 -478
- package/es/customComponents/Authorized/Authorized.d.ts +0 -6
- package/es/customComponents/Authorized/Authorized.js +0 -33
- package/es/customComponents/Authorized/AuthorizedRoute.d.ts +0 -8
- package/es/customComponents/Authorized/AuthorizedRoute.js +0 -50
- package/es/customComponents/Authorized/CheckPermissions.d.ts +0 -11
- package/es/customComponents/Authorized/CheckPermissions.js +0 -106
- package/es/customComponents/Authorized/PromiseRender.d.ts +0 -13
- package/es/customComponents/Authorized/PromiseRender.js +0 -151
- package/es/customComponents/Authorized/Secured.d.ts +0 -18
- package/es/customComponents/Authorized/Secured.js +0 -95
- package/es/customComponents/Authorized/index.d.ts +0 -2
- package/es/customComponents/Authorized/index.js +0 -22
- package/es/customComponents/Authorized/renderAuthorize.d.ts +0 -3
- package/es/customComponents/Authorized/renderAuthorize.js +0 -37
- package/es/customComponents/AvatarList/index.d.ts +0 -17
- package/es/customComponents/AvatarList/index.js +0 -99
- package/es/customComponents/AvatarList/index.less +0 -53
- package/es/customComponents/AvatarList/index.test.d.ts +0 -1
- package/es/customComponents/Canvas/Bubbly/index.d.ts +0 -20
- package/es/customComponents/Canvas/Bubbly/index.js +0 -182
- package/es/customComponents/Canvas/Core/index.d.ts +0 -28
- package/es/customComponents/Canvas/Core/index.js +0 -163
- package/es/customComponents/Canvas/RadarScanning/index.d.ts +0 -20
- package/es/customComponents/Canvas/RadarScanning/index.js +0 -251
- package/es/customComponents/Canvas/Ribbon.7z +0 -0
- package/es/customComponents/Canvas/Spirit/index.d.ts +0 -23
- package/es/customComponents/Canvas/Spirit/index.js +0 -119
- package/es/customComponents/Canvas/index.d.ts +0 -12
- package/es/customComponents/Canvas/index.js +0 -27
- package/es/customComponents/CenterBox/index.d.ts +0 -7
- package/es/customComponents/CenterBox/index.js +0 -70
- package/es/customComponents/Charts/Bar/index.d.ts +0 -10
- package/es/customComponents/Charts/Bar/index.js +0 -129
- package/es/customComponents/Charts/ChartCard/index.d.ts +0 -8
- package/es/customComponents/Charts/ChartCard/index.js +0 -160
- package/es/customComponents/Charts/ChartCard/index.less +0 -90
- package/es/customComponents/Charts/Field/index.d.ts +0 -6
- package/es/customComponents/Charts/Field/index.js +0 -37
- package/es/customComponents/Charts/Field/index.less +0 -19
- package/es/customComponents/Charts/Gauge/index.d.ts +0 -2
- package/es/customComponents/Charts/Gauge/index.js +0 -185
- package/es/customComponents/Charts/MiniArea/index.d.ts +0 -2
- package/es/customComponents/Charts/MiniArea/index.js +0 -107
- package/es/customComponents/Charts/MiniBar/index.d.ts +0 -2
- package/es/customComponents/Charts/MiniBar/index.js +0 -62
- package/es/customComponents/Charts/MiniProgress/index.d.ts +0 -8
- package/es/customComponents/Charts/MiniProgress/index.js +0 -55
- package/es/customComponents/Charts/MiniProgress/index.less +0 -42
- package/es/customComponents/Charts/Pie/index.d.ts +0 -10
- package/es/customComponents/Charts/Pie/index.js +0 -195
- package/es/customComponents/Charts/Pie/index.less +0 -104
- package/es/customComponents/Charts/TagCloud/index.d.ts +0 -23
- package/es/customComponents/Charts/TagCloud/index.js +0 -276
- package/es/customComponents/Charts/TagCloud/index.less +0 -7
- package/es/customComponents/Charts/TimelineChart/index.d.ts +0 -2
- package/es/customComponents/Charts/TimelineChart/index.js +0 -173
- package/es/customComponents/Charts/TimelineChart/index.less +0 -5
- package/es/customComponents/Charts/WaterWave/index.d.ts +0 -18
- package/es/customComponents/Charts/WaterWave/index.js +0 -319
- package/es/customComponents/Charts/WaterWave/index.less +0 -32
- package/es/customComponents/Charts/autoHeight.d.ts +0 -13
- package/es/customComponents/Charts/autoHeight.js +0 -123
- package/es/customComponents/Charts/bizcharts.d.ts +0 -2
- package/es/customComponents/Charts/bizcharts.js +0 -17
- package/es/customComponents/Charts/index.d.ts +0 -27
- package/es/customComponents/Charts/index.js +0 -119
- package/es/customComponents/Charts/index.less +0 -26
- package/es/customComponents/ColorText/index.d.ts +0 -22
- package/es/customComponents/ColorText/index.js +0 -139
- package/es/customComponents/Countdown/index.d.ts +0 -22
- package/es/customComponents/Countdown/index.js +0 -158
- package/es/customComponents/Countdown/index.less +0 -5
- package/es/customComponents/DataPreviewDrawer/index.js +0 -178
- package/es/customComponents/DataPreviewDrawer/index.less +0 -10
- package/es/customComponents/DecorateAvatar/index.d.ts +0 -37
- package/es/customComponents/DecorateAvatar/index.js +0 -199
- package/es/customComponents/DisplayCopyData/index.d.ts +0 -10
- package/es/customComponents/DisplayCopyData/index.js +0 -86
- package/es/customComponents/EditableItem/index.d.ts +0 -12
- package/es/customComponents/EditableItem/index.js +0 -121
- package/es/customComponents/EditableItem/index.less +0 -25
- package/es/customComponents/EditableLinkGroup/index.d.ts +0 -23
- package/es/customComponents/EditableLinkGroup/index.js +0 -99
- package/es/customComponents/EditableLinkGroup/index.less +0 -18
- package/es/customComponents/Editor/TinymceWrapper/index.d.ts +0 -19
- package/es/customComponents/Editor/TinymceWrapper/index.js +0 -254
- package/es/customComponents/Ellipsis/index.d.ts +0 -26
- package/es/customComponents/Ellipsis/index.js +0 -389
- package/es/customComponents/Ellipsis/index.less +0 -28
- package/es/customComponents/Ellipsis/index.test.d.ts +0 -1
- package/es/customComponents/EllipsisCustom/index.d.ts +0 -26
- package/es/customComponents/EllipsisCustom/index.js +0 -355
- package/es/customComponents/EllipsisCustom/index.less +0 -27
- package/es/customComponents/EverySpace/index.d.ts +0 -16
- package/es/customComponents/EverySpace/index.js +0 -105
- package/es/customComponents/Exception/index.js +0 -121
- package/es/customComponents/Exception/index.less +0 -92
- package/es/customComponents/Exception/typeConfig.d.ts +0 -18
- package/es/customComponents/Exception/typeConfig.js +0 -25
- package/es/customComponents/FigureRange/index.d.ts +0 -133
- package/es/customComponents/FigureRange/index.js +0 -335
- package/es/customComponents/FigureRange/index.less +0 -73
- package/es/customComponents/FileBase64Upload/index.d.ts +0 -27
- package/es/customComponents/FileBase64Upload/index.js +0 -205
- package/es/customComponents/FileUpload/index.d.ts +0 -35
- package/es/customComponents/FileUpload/index.js +0 -402
- package/es/customComponents/FlexBox/index.d.ts +0 -24
- package/es/customComponents/FlexBox/index.js +0 -186
- package/es/customComponents/FlexText/index.d.ts +0 -21
- package/es/customComponents/FlexText/index.js +0 -109
- package/es/customComponents/FlexText/index.less +0 -3
- package/es/customComponents/FooterToolbar/index.d.ts +0 -16
- package/es/customComponents/FooterToolbar/index.js +0 -132
- package/es/customComponents/FooterToolbar/index.less +0 -33
- package/es/customComponents/FromDisplayItem/index.d.ts +0 -14
- package/es/customComponents/FromDisplayItem/index.js +0 -73
- package/es/customComponents/FromDisplayItem/index.less +0 -5
- package/es/customComponents/FunctionComponent/index.d.ts +0 -443
- package/es/customComponents/FunctionComponent/index.js +0 -3404
- package/es/customComponents/FunctionComponent/index.less +0 -63
- package/es/customComponents/FunctionSupplement/Whether/index.d.ts +0 -46
- package/es/customComponents/FunctionSupplement/Whether/index.js +0 -181
- package/es/customComponents/GlobalFooter/index.d.ts +0 -6
- package/es/customComponents/GlobalFooter/index.js +0 -39
- package/es/customComponents/GlobalFooter/index.less +0 -29
- package/es/customComponents/HelpBox/index.d.ts +0 -18
- package/es/customComponents/HelpBox/index.js +0 -192
- package/es/customComponents/HelpBox/index.less +0 -16
- package/es/customComponents/HelpCard/index.d.ts +0 -18
- package/es/customComponents/HelpCard/index.js +0 -91
- package/es/customComponents/HtmlBox/index.d.ts +0 -20
- package/es/customComponents/HtmlBox/index.js +0 -118
- package/es/customComponents/HtmlBox/index.less +0 -7
- package/es/customComponents/IconFont/index.d.ts +0 -2
- package/es/customComponents/IconFont/index.js +0 -14
- package/es/customComponents/IconInfo/index.d.ts +0 -32
- package/es/customComponents/IconInfo/index.js +0 -373
- package/es/customComponents/IconInfo/index.less +0 -5
- package/es/customComponents/ImageBox/index.d.ts +0 -60
- package/es/customComponents/ImageBox/index.js +0 -376
- package/es/customComponents/ImageBox/index.less +0 -114
- package/es/customComponents/ImageContentPreview/index.d.ts +0 -21
- package/es/customComponents/ImageContentPreview/index.js +0 -173
- package/es/customComponents/ImageContentPreview/index.less +0 -9
- package/es/customComponents/ImageUpload/index.d.ts +0 -45
- package/es/customComponents/ImageUpload/index.js +0 -413
- package/es/customComponents/ImageUpload/index.less +0 -81
- package/es/customComponents/MobileContainor/ContentView/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/ContentView/index.js +0 -152
- package/es/customComponents/MobileContainor/ContentView/index.less +0 -30
- package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.d.ts +0 -19
- package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.js +0 -121
- package/es/customComponents/MobileContainor/Devices/IPhone5S/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/IPhone5S/index.js +0 -124
- package/es/customComponents/MobileContainor/Devices/Iphone8/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/Iphone8/index.js +0 -124
- package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.js +0 -124
- package/es/customComponents/MobileContainor/Devices/IphoneX/index.d.ts +0 -20
- package/es/customComponents/MobileContainor/Devices/IphoneX/index.js +0 -130
- package/es/customComponents/MobileContainor/Devices/RoughSketch/index.d.ts +0 -19
- package/es/customComponents/MobileContainor/Devices/RoughSketch/index.js +0 -97
- package/es/customComponents/MobileContainor/Devices/RoughSketch/index.less +0 -34
- package/es/customComponents/MobileContainor/Devices/devices.less +0 -2815
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.d.ts +0 -12
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.js +0 -80
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.d.ts +0 -49
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +0 -220
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +0 -176
- package/es/customComponents/MobileContainor/MobileSimulation/index.d.ts +0 -23
- package/es/customComponents/MobileContainor/MobileSimulation/index.js +0 -243
- package/es/customComponents/NoticeIconCustom/NoticeList.d.ts +0 -10
- package/es/customComponents/NoticeIconCustom/NoticeList.js +0 -81
- package/es/customComponents/NoticeIconCustom/NoticeList.less +0 -90
- package/es/customComponents/NoticeIconCustom/index.d.ts +0 -25
- package/es/customComponents/NoticeIconCustom/index.js +0 -201
- package/es/customComponents/NoticeIconCustom/index.less +0 -31
- package/es/customComponents/NumberInfo/index.d.ts +0 -12
- package/es/customComponents/NumberInfo/index.js +0 -60
- package/es/customComponents/NumberInfo/index.less +0 -77
- package/es/customComponents/PageLoading/index.d.ts +0 -2
- package/es/customComponents/PageLoading/index.js +0 -13
- package/es/customComponents/PercentageBox/index.d.ts +0 -12
- package/es/customComponents/PercentageBox/index.js +0 -70
- package/es/customComponents/PriceBox/index.d.ts +0 -18
- package/es/customComponents/PriceBox/index.js +0 -115
- package/es/customComponents/Result/index.d.ts +0 -9
- package/es/customComponents/Result/index.js +0 -57
- package/es/customComponents/Result/index.less +0 -58
- package/es/customComponents/StandardFormRow/index.d.ts +0 -9
- package/es/customComponents/StandardFormRow/index.js +0 -47
- package/es/customComponents/StandardFormRow/index.less +0 -81
- package/es/customComponents/StandardTable/index.d.ts +0 -17
- package/es/customComponents/StandardTable/index.js +0 -217
- package/es/customComponents/StandardTable/index.less +0 -7
- package/es/customComponents/StandardTableCustom/index.d.ts +0 -22
- package/es/customComponents/StandardTableCustom/index.js +0 -234
- package/es/customComponents/StandardTableCustom/index.less +0 -21
- package/es/customComponents/StatusBar/index.d.ts +0 -13
- package/es/customComponents/StatusBar/index.js +0 -128
- package/es/customComponents/TagSelect/index.d.ts +0 -34
- package/es/customComponents/TagSelect/index.js +0 -226
- package/es/customComponents/TagSelect/index.less +0 -38
- package/es/customComponents/TimeLineCustom/index.d.ts +0 -37
- package/es/customComponents/TimeLineCustom/index.js +0 -273
- package/es/customComponents/TimeLineCustom/index.less +0 -180
- package/es/customComponents/Trend/index.d.ts +0 -10
- package/es/customComponents/Trend/index.js +0 -49
- package/es/customComponents/Trend/index.less +0 -41
- package/es/customComponents/VerticalBox/index.d.ts +0 -15
- package/es/customComponents/VerticalBox/index.js +0 -138
- package/es/customComponents/VerticalBox/index.less +0 -7
- package/es/customComponents/VideoUpload/index.d.ts +0 -39
- package/es/customComponents/VideoUpload/index.js +0 -472
- package/es/customComponents/_utils/pathTools.d.ts +0 -1
- package/es/customComponents/_utils/pathTools.js +0 -15
- package/es/customComponents/_utils/pathTools.test.d.ts +0 -1
- package/es/customComponents/index.d.ts +0 -7
- package/es/customComponents/index.js +0 -16
- package/es/framework/AuthorizationWrapper/index.js +0 -117
- package/es/framework/Base/index.d.ts +0 -68
- package/es/framework/Base/index.js +0 -338
- package/es/framework/ButtonExtension/SelectButton/Base/index.js +0 -116
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +0 -177
- package/es/framework/Common/index.js +0 -2481
- package/es/framework/Common/index.less +0 -13
- package/es/framework/Core/index.js +0 -79
- package/es/framework/CustomBase/index.d.ts +0 -8
- package/es/framework/CustomBase/index.js +0 -77
- package/es/framework/CustomWrapper/Supplement/index.js +0 -64
- package/es/framework/CustomWrapper/SupplementCore/index.js +0 -150
- package/es/framework/CustomWrapper/SupplementWrapper/index.js +0 -58
- package/es/framework/DataDrawer/Base/index.js +0 -447
- package/es/framework/DataDrawer/Base/index.less +0 -27
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +0 -98
- package/es/framework/DataDrawer/BaseLoadDrawer/index.js +0 -75
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +0 -100
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +0 -87
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +0 -83
- package/es/framework/DataForm/BaseAddForm/index.js +0 -328
- package/es/framework/DataForm/BaseAddForm/index.less +0 -51
- package/es/framework/DataForm/BaseUpdateForm/index.js +0 -202
- package/es/framework/DataForm/BaseUpdateFormContent/index.js +0 -62
- package/es/framework/DataForm/BaseUpdateFormTab/index.js +0 -49
- package/es/framework/DataListView/Base/index.js +0 -1578
- package/es/framework/DataListView/Base/index.less +0 -161
- package/es/framework/DataListView/BatchAction/index.js +0 -103
- package/es/framework/DataListView/BatchAction/index.less +0 -5
- package/es/framework/DataListView/ColumnSetting/DndItem.js +0 -139
- package/es/framework/DataListView/ColumnSetting/index.js +0 -368
- package/es/framework/DataListView/ColumnSetting/index.less +0 -60
- package/es/framework/DataListView/DensityAction/index.js +0 -118
- package/es/framework/DataMenuContainer/index.js +0 -341
- package/es/framework/DataMenuContainer/index.less +0 -100
- package/es/framework/DataModal/Base/index.js +0 -285
- package/es/framework/DataModal/Base/index.less +0 -6
- package/es/framework/DataModal/BaseAddModal/index.js +0 -70
- package/es/framework/DataModal/BaseLoadModal/index.js +0 -75
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +0 -113
- package/es/framework/DataModal/BaseSelectModal/index.js +0 -73
- package/es/framework/DataModal/BaseUpdateModal/index.js +0 -49
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +0 -162
- package/es/framework/DataMultiPageView/InnerMultiPage/index.js +0 -62
- package/es/framework/DataMultiPageView/InnerMultiPage/index.less +0 -125
- package/es/framework/DataMultiPageView/MultiPage/index.js +0 -333
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +0 -511
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.less +0 -65
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +0 -117
- package/es/framework/DataOperation/Base/index.js +0 -380
- package/es/framework/DataOperation/BaseView/index.js +0 -78
- package/es/framework/DataOperation/BaseWindow/index.js +0 -378
- package/es/framework/DataSinglePageView/InnerSinglePage/index.js +0 -62
- package/es/framework/DataSinglePageView/InnerSinglePage/index.less +0 -50
- package/es/framework/DataSinglePageView/SinglePage/index.js +0 -278
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +0 -489
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.less +0 -33
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +0 -120
- package/es/framework/DataSingleView/DataCore/index.js +0 -330
- package/es/framework/DataSingleView/DataCore/index.less +0 -7
- package/es/framework/DataSingleView/DataLoad/index.js +0 -169
- package/es/framework/DataTabContainer/index.js +0 -280
- package/es/framework/DataTabContainer/index.less +0 -51
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +0 -185
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +0 -191
- package/es/framework/Wrapper/index.js +0 -58
- package/es/framework/index.js +0 -60
- package/es/utils/Authorized.d.ts +0 -4
- package/es/utils/Authorized.js +0 -52
- package/es/utils/Yuan.d.ts +0 -13
- package/es/utils/Yuan.js +0 -92
- package/es/utils/actionAssist.d.ts +0 -44
- package/es/utils/actionAssist.js +0 -467
- package/es/utils/appConfiguration.d.ts +0 -70
- package/es/utils/appConfiguration.js +0 -403
- package/es/utils/authority.d.ts +0 -7
- package/es/utils/authority.js +0 -259
- package/es/utils/cacheAssist.d.ts +0 -85
- package/es/utils/cacheAssist.js +0 -317
- package/es/utils/constants.d.ts +0 -859
- package/es/utils/constants.js +0 -1540
- package/es/utils/core.d.ts +0 -25
- package/es/utils/core.js +0 -95
- package/es/utils/defaultSettingsSpecial.d.ts +0 -67
- package/es/utils/defaultSettingsSpecial.js +0 -53
- package/es/utils/developAssist.d.ts +0 -41
- package/es/utils/developAssist.js +0 -224
- package/es/utils/dva.d.ts +0 -31
- package/es/utils/dva.js +0 -54
- package/es/utils/globalModel.d.ts +0 -17
- package/es/utils/globalModel.js +0 -40
- package/es/utils/globalStorageAssist.d.ts +0 -78
- package/es/utils/globalStorageAssist.js +0 -239
- package/es/utils/localStorageAssist.d.ts +0 -47
- package/es/utils/localStorageAssist.js +0 -116
- package/es/utils/mediaDefault.d.ts +0 -11
- package/es/utils/mediaDefault.js +0 -24
- package/es/utils/proLayoutCollection.d.ts +0 -12
- package/es/utils/proLayoutCollection.js +0 -76
- package/es/utils/request.d.ts +0 -5
- package/es/utils/request.js +0 -243
- package/es/utils/requestAssistor.d.ts +0 -79
- package/es/utils/requestAssistor.js +0 -596
- package/es/utils/sessionStorageAssist.d.ts +0 -47
- package/es/utils/sessionStorageAssist.js +0 -116
- package/es/utils/tools.d.ts +0 -698
- package/es/utils/tools.js +0 -2205
- package/es/utils/typeCheck.d.ts +0 -21
- package/es/utils/typeCheck.js +0 -58
- package/es/utils/typeConvert.d.ts +0 -7
- package/es/utils/typeConvert.js +0 -16
- package/es/utils/utils.d.ts +0 -5
- package/es/utils/utils.js +0 -70
- package/es/utils/utils.less +0 -63
- package/es/utils/utils.test.d.ts +0 -1
- package/es/utils/virtualRequest.d.ts +0 -51
- package/es/utils/virtualRequest.js +0 -320
|
@@ -1,596 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.corsTargetWithApiVersion = corsTargetWithApiVersion;
|
|
9
|
-
exports.empty = empty;
|
|
10
|
-
exports.getApiVersion = getApiVersion;
|
|
11
|
-
exports.handleCommonDataAssist = handleCommonDataAssist;
|
|
12
|
-
exports.handleListDataAssist = handleListDataAssist;
|
|
13
|
-
exports.handlePageListDataAssist = handlePageListDataAssist;
|
|
14
|
-
exports.pretreatmentRemoteListData = pretreatmentRemoteListData;
|
|
15
|
-
exports.pretreatmentRemotePageListData = pretreatmentRemotePageListData;
|
|
16
|
-
exports.pretreatmentRemoteSingleData = pretreatmentRemoteSingleData;
|
|
17
|
-
exports.pretreatmentRequestParams = pretreatmentRequestParams;
|
|
18
|
-
exports.request = request;
|
|
19
|
-
|
|
20
|
-
require("antd/es/message/style");
|
|
21
|
-
|
|
22
|
-
var _message2 = _interopRequireDefault(require("antd/es/message"));
|
|
23
|
-
|
|
24
|
-
var _defaultSettingsSpecial = require("./defaultSettingsSpecial");
|
|
25
|
-
|
|
26
|
-
var _globalStorageAssist = require("./globalStorageAssist");
|
|
27
|
-
|
|
28
|
-
var _request2 = _interopRequireDefault(require("./request"));
|
|
29
|
-
|
|
30
|
-
var _tools = require("./tools");
|
|
31
|
-
|
|
32
|
-
var _virtualRequest = require("./virtualRequest");
|
|
33
|
-
|
|
34
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
|
-
|
|
36
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
37
|
-
|
|
38
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
39
|
-
|
|
40
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
41
|
-
|
|
42
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
43
|
-
|
|
44
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
45
|
-
|
|
46
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 错误数据模型
|
|
50
|
-
*/
|
|
51
|
-
function errorCustomData() {
|
|
52
|
-
return {
|
|
53
|
-
code: -1,
|
|
54
|
-
message: '',
|
|
55
|
-
data: null,
|
|
56
|
-
list: [],
|
|
57
|
-
extra: null
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* 数据异常通知
|
|
62
|
-
* @param {*} d 异常数据
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
function dataExceptionNotice(d) {
|
|
67
|
-
var code = d.code,
|
|
68
|
-
messageText = d.message;
|
|
69
|
-
var c = errorCustomData();
|
|
70
|
-
var lastCustomMessage = window.lastCustomMessage || {
|
|
71
|
-
code: -1,
|
|
72
|
-
message: '',
|
|
73
|
-
time: new Date().getTime()
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
if (code !== c.code) {
|
|
77
|
-
if ((messageText || '') !== '') {
|
|
78
|
-
var currentTime = new Date().getTime();
|
|
79
|
-
|
|
80
|
-
if (code === lastCustomMessage.code) {
|
|
81
|
-
if (currentTime - lastCustomMessage.time > 800) {
|
|
82
|
-
requestAnimationFrame(function () {
|
|
83
|
-
_message2.default.error(messageText);
|
|
84
|
-
});
|
|
85
|
-
window.lastCustomMessage = {
|
|
86
|
-
code: code,
|
|
87
|
-
message: messageText,
|
|
88
|
-
time: currentTime
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
} else {
|
|
92
|
-
requestAnimationFrame(function () {
|
|
93
|
-
_message2.default.error(messageText);
|
|
94
|
-
});
|
|
95
|
-
window.lastCustomMessage = {
|
|
96
|
-
code: code,
|
|
97
|
-
message: messageText,
|
|
98
|
-
time: currentTime
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var entrancePath = _defaultSettingsSpecial.defaultSettingsLayoutCustom.getEntrancePath();
|
|
104
|
-
|
|
105
|
-
var authenticationFailCode = _defaultSettingsSpecial.defaultSettingsLayoutCustom.getAuthenticationFailCode();
|
|
106
|
-
|
|
107
|
-
if (code === authenticationFailCode) {
|
|
108
|
-
if ((0, _tools.stringIsNullOrWhiteSpace)(entrancePath)) {
|
|
109
|
-
throw new Error('缺少登录页面路径配置');
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
requestAnimationFrame(function () {
|
|
113
|
-
(0, _tools.redirectToPath)(entrancePath);
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* 预处理单项数据返回
|
|
120
|
-
*
|
|
121
|
-
* @export
|
|
122
|
-
* @param {*} d
|
|
123
|
-
* @returns
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
function pretreatmentRemoteSingleData(d) {
|
|
128
|
-
var _ref = d || errorCustomData(),
|
|
129
|
-
code = _ref.code,
|
|
130
|
-
messageText = _ref.message;
|
|
131
|
-
|
|
132
|
-
var v = {};
|
|
133
|
-
|
|
134
|
-
var apiSuccessCode = _defaultSettingsSpecial.defaultSettingsLayoutCustom.getApiSuccessCode();
|
|
135
|
-
|
|
136
|
-
if (code === apiSuccessCode) {
|
|
137
|
-
var data = d.data,
|
|
138
|
-
extra = d.extra;
|
|
139
|
-
v = {
|
|
140
|
-
code: code,
|
|
141
|
-
message: messageText,
|
|
142
|
-
data: data || {},
|
|
143
|
-
extra: extra || {},
|
|
144
|
-
dataSuccess: true
|
|
145
|
-
};
|
|
146
|
-
} else {
|
|
147
|
-
v = {
|
|
148
|
-
code: code,
|
|
149
|
-
message: messageText || '网络异常',
|
|
150
|
-
data: null,
|
|
151
|
-
extra: null,
|
|
152
|
-
dataSuccess: false
|
|
153
|
-
};
|
|
154
|
-
dataExceptionNotice(v);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
return v;
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* 预处理集合数据返回
|
|
161
|
-
*
|
|
162
|
-
* @export
|
|
163
|
-
* @param {*} d
|
|
164
|
-
* @returns
|
|
165
|
-
*/
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
function pretreatmentRemoteListData(d, itemHandler) {
|
|
169
|
-
var _ref2 = d || errorCustomData(),
|
|
170
|
-
code = _ref2.code,
|
|
171
|
-
messageText = _ref2.message;
|
|
172
|
-
|
|
173
|
-
var v = {};
|
|
174
|
-
|
|
175
|
-
if (code === _defaultSettingsSpecial.defaultSettingsLayoutCustom.getApiSuccessCode()) {
|
|
176
|
-
var listData = d.list,
|
|
177
|
-
extraData = d.extra;
|
|
178
|
-
var list = (listData || []).map(function (item, index) {
|
|
179
|
-
var o = item;
|
|
180
|
-
|
|
181
|
-
if ((o.key || null) == null) {
|
|
182
|
-
o.key = "list-".concat(index);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
if (typeof itemHandler === 'function') {
|
|
186
|
-
o = itemHandler(o);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
return o;
|
|
190
|
-
});
|
|
191
|
-
v = {
|
|
192
|
-
code: code,
|
|
193
|
-
message: messageText,
|
|
194
|
-
count: (list || []).length,
|
|
195
|
-
list: list,
|
|
196
|
-
extra: extraData,
|
|
197
|
-
dataSuccess: true
|
|
198
|
-
};
|
|
199
|
-
} else {
|
|
200
|
-
v = {
|
|
201
|
-
code: code,
|
|
202
|
-
message: messageText || '网络异常',
|
|
203
|
-
count: 0,
|
|
204
|
-
list: [],
|
|
205
|
-
extra: null,
|
|
206
|
-
dataSuccess: false
|
|
207
|
-
};
|
|
208
|
-
dataExceptionNotice(v);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
return v;
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* 预处理分页数据返回
|
|
215
|
-
*
|
|
216
|
-
* @export
|
|
217
|
-
* @param {*} d
|
|
218
|
-
* @returns
|
|
219
|
-
*/
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
function pretreatmentRemotePageListData(d, listItemHandler) {
|
|
223
|
-
var _ref3 = d || errorCustomData(),
|
|
224
|
-
code = _ref3.code,
|
|
225
|
-
messageText = _ref3.message;
|
|
226
|
-
|
|
227
|
-
var v = {};
|
|
228
|
-
|
|
229
|
-
if (code === _defaultSettingsSpecial.defaultSettingsLayoutCustom.getApiSuccessCode()) {
|
|
230
|
-
var listData = d.list,
|
|
231
|
-
extraData = d.extra;
|
|
232
|
-
var pageNo = extraData.pageNo;
|
|
233
|
-
var list = (listData || []).map(function (item, index) {
|
|
234
|
-
var o = item;
|
|
235
|
-
|
|
236
|
-
if ((o.key || null) == null) {
|
|
237
|
-
o.key = "".concat(pageNo, "-").concat(index);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
if (typeof listItemHandler === 'function') {
|
|
241
|
-
o = listItemHandler(o);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
return o;
|
|
245
|
-
});
|
|
246
|
-
v = {
|
|
247
|
-
code: code,
|
|
248
|
-
message: messageText,
|
|
249
|
-
count: (list || []).length,
|
|
250
|
-
list: list,
|
|
251
|
-
pagination: {
|
|
252
|
-
total: extraData.total,
|
|
253
|
-
pageSize: extraData.pageSize,
|
|
254
|
-
current: parseInt(pageNo || 1, 10) || 1
|
|
255
|
-
},
|
|
256
|
-
extra: extraData,
|
|
257
|
-
dataSuccess: true
|
|
258
|
-
};
|
|
259
|
-
} else {
|
|
260
|
-
v = {
|
|
261
|
-
code: code,
|
|
262
|
-
message: messageText || '网络异常',
|
|
263
|
-
count: 0,
|
|
264
|
-
list: [],
|
|
265
|
-
extra: null,
|
|
266
|
-
pagination: {
|
|
267
|
-
total: 0,
|
|
268
|
-
pageSize: 10,
|
|
269
|
-
current: 1
|
|
270
|
-
},
|
|
271
|
-
dataSuccess: false
|
|
272
|
-
};
|
|
273
|
-
dataExceptionNotice(v);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
return v;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* 预处理数据请求
|
|
280
|
-
*
|
|
281
|
-
* @export
|
|
282
|
-
* @param {*} d
|
|
283
|
-
* @returns
|
|
284
|
-
*/
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
function pretreatmentRequestParams(params, customHandle) {
|
|
288
|
-
var submitData = params || {};
|
|
289
|
-
|
|
290
|
-
if (typeof customHandle === 'function') {
|
|
291
|
-
submitData = customHandle(submitData);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
return submitData;
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* 常规数据出库辅助方法
|
|
298
|
-
* @param {*} state
|
|
299
|
-
* @param {*} action
|
|
300
|
-
* @param {*} callback
|
|
301
|
-
* @returns
|
|
302
|
-
*/
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
function handleCommonDataAssist(state, action) {
|
|
306
|
-
var callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
307
|
-
var d = action.payload,
|
|
308
|
-
alias = action.alias;
|
|
309
|
-
var v = pretreatmentRemoteSingleData(d);
|
|
310
|
-
|
|
311
|
-
if ((0, _tools.isFunction)(callback)) {
|
|
312
|
-
v = callback(v);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
if ((0, _tools.isUndefined)(alias)) {
|
|
316
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
317
|
-
data: v,
|
|
318
|
-
fromRemote: true
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
var aliasData = {};
|
|
323
|
-
aliasData[alias] = v;
|
|
324
|
-
return _objectSpread(_objectSpread(_objectSpread({}, state), aliasData), {}, {
|
|
325
|
-
fromRemote: true
|
|
326
|
-
});
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
* handleListDataAssist
|
|
330
|
-
* @param {*} state
|
|
331
|
-
* @param {*} action
|
|
332
|
-
* @param {*} pretreatment
|
|
333
|
-
* @param {*} callback
|
|
334
|
-
* @returns
|
|
335
|
-
*/
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
function handleListDataAssist(state, action) {
|
|
339
|
-
var pretreatment = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
340
|
-
var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
341
|
-
var d = action.payload,
|
|
342
|
-
alias = action.alias;
|
|
343
|
-
var v = pretreatmentRemoteListData(d, pretreatment);
|
|
344
|
-
|
|
345
|
-
if ((0, _tools.isFunction)(callback)) {
|
|
346
|
-
v = callback(v);
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
if ((0, _tools.isUndefined)(alias)) {
|
|
350
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
351
|
-
data: v,
|
|
352
|
-
fromRemote: true
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
var aliasData = {};
|
|
357
|
-
aliasData[alias] = v;
|
|
358
|
-
return _objectSpread(_objectSpread(_objectSpread({}, state), aliasData), {}, {
|
|
359
|
-
fromRemote: true
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
function handlePageListDataAssist(state, action) {
|
|
364
|
-
var pretreatment = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
365
|
-
var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
366
|
-
var d = action.payload,
|
|
367
|
-
alias = action.alias;
|
|
368
|
-
var v = pretreatmentRemotePageListData(d, pretreatment);
|
|
369
|
-
|
|
370
|
-
if ((0, _tools.isFunction)(callback)) {
|
|
371
|
-
v = callback(v);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
if ((0, _tools.isUndefined)(alias)) {
|
|
375
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
376
|
-
data: v,
|
|
377
|
-
fromRemote: true
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
var aliasData = {};
|
|
382
|
-
aliasData[alias] = v;
|
|
383
|
-
return _objectSpread(_objectSpread(_objectSpread({}, state), aliasData), {}, {
|
|
384
|
-
fromRemote: true
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
* begin request(remote request / local virtual requests)
|
|
389
|
-
* @param {*} api [string]: request address
|
|
390
|
-
* @param {*} params [object]: request params
|
|
391
|
-
* @param {*} method [string]: ’GET‘ or ’POST‘, default is ’POST‘
|
|
392
|
-
* @param {*} useVirtualRequest [bool]: whether to apply virtual requests
|
|
393
|
-
* @param {*} showUseVirtualRequestMessage [bool]: whether display virtual request message prompt
|
|
394
|
-
* @param {*} virtualSuccessResponse [object]: virtual request success response data
|
|
395
|
-
* @param {*} virtualFailResponse [object]: virtual request fail response data
|
|
396
|
-
* @param {*} virtualRequestResult [object]:mandatory set virtual request result, generally used to debug
|
|
397
|
-
* @param {*} virtualNeedAuthorize [object]:set virtual request whether check token, only check mull or empty, generally used to debug
|
|
398
|
-
* @returns
|
|
399
|
-
*/
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
function request(_x) {
|
|
403
|
-
return _request.apply(this, arguments);
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* 获取配置的 api 版本号
|
|
407
|
-
*/
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
function _request() {
|
|
411
|
-
_request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref4) {
|
|
412
|
-
var api, _ref4$urlParams, urlParams, _ref4$params, params, _ref4$method, method, _ref4$useVirtualReque, useVirtualRequest, _ref4$showUseVirtualR, showUseVirtualRequestMessage, _ref4$showUseVirtualR2, showUseVirtualRequestMessageDelay, _ref4$virtualRequestD, virtualRequestDelay, _ref4$virtualSuccessR, virtualSuccessResponse, _ref4$virtualFailResp, virtualFailResponse, _ref4$virtualRequestR, virtualRequestResult, _ref4$virtualNeedAuth, virtualNeedAuthorize, apiVersion, url, showRequestInfo, result, verifyToken, token, entrancePath;
|
|
413
|
-
|
|
414
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
415
|
-
while (1) {
|
|
416
|
-
switch (_context.prev = _context.next) {
|
|
417
|
-
case 0:
|
|
418
|
-
api = _ref4.api, _ref4$urlParams = _ref4.urlParams, urlParams = _ref4$urlParams === void 0 ? null : _ref4$urlParams, _ref4$params = _ref4.params, params = _ref4$params === void 0 ? {} : _ref4$params, _ref4$method = _ref4.method, method = _ref4$method === void 0 ? 'POST' : _ref4$method, _ref4$useVirtualReque = _ref4.useVirtualRequest, useVirtualRequest = _ref4$useVirtualReque === void 0 ? _defaultSettingsSpecial.defaultSettingsLayoutCustom.getUseVirtualRequest() : _ref4$useVirtualReque, _ref4$showUseVirtualR = _ref4.showUseVirtualRequestMessage, showUseVirtualRequestMessage = _ref4$showUseVirtualR === void 0 ? _defaultSettingsSpecial.defaultSettingsLayoutCustom.getShowUseVirtualRequestMessage() : _ref4$showUseVirtualR, _ref4$showUseVirtualR2 = _ref4.showUseVirtualRequestMessageDelay, showUseVirtualRequestMessageDelay = _ref4$showUseVirtualR2 === void 0 ? 500 : _ref4$showUseVirtualR2, _ref4$virtualRequestD = _ref4.virtualRequestDelay, virtualRequestDelay = _ref4$virtualRequestD === void 0 ? 0 : _ref4$virtualRequestD, _ref4$virtualSuccessR = _ref4.virtualSuccessResponse, virtualSuccessResponse = _ref4$virtualSuccessR === void 0 ? {} : _ref4$virtualSuccessR, _ref4$virtualFailResp = _ref4.virtualFailResponse, virtualFailResponse = _ref4$virtualFailResp === void 0 ? {
|
|
419
|
-
code: 1001,
|
|
420
|
-
message: '虚拟未知错误'
|
|
421
|
-
} : _ref4$virtualFailResp, _ref4$virtualRequestR = _ref4.virtualRequestResult, virtualRequestResult = _ref4$virtualRequestR === void 0 ? true : _ref4$virtualRequestR, _ref4$virtualNeedAuth = _ref4.virtualNeedAuthorize, virtualNeedAuthorize = _ref4$virtualNeedAuth === void 0 ? true : _ref4$virtualNeedAuth;
|
|
422
|
-
apiVersion = _defaultSettingsSpecial.defaultSettingsLayoutCustom.getApiVersion();
|
|
423
|
-
|
|
424
|
-
if ((0, _tools.isString)(apiVersion)) {
|
|
425
|
-
_context.next = 5;
|
|
426
|
-
break;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
(0, _tools.recordObject)(apiVersion);
|
|
430
|
-
throw new Error('apiVersion is not string');
|
|
431
|
-
|
|
432
|
-
case 5:
|
|
433
|
-
if ((0, _tools.isString)(api)) {
|
|
434
|
-
_context.next = 8;
|
|
435
|
-
break;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
(0, _tools.recordObject)(api);
|
|
439
|
-
throw new Error('api is not string');
|
|
440
|
-
|
|
441
|
-
case 8:
|
|
442
|
-
if (!(0, _tools.stringIsNullOrWhiteSpace)(apiVersion)) {
|
|
443
|
-
apiVersion = "/".concat(apiVersion, "/");
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
url = "".concat(apiVersion).concat(api).replace('//', '/');
|
|
447
|
-
|
|
448
|
-
if ((urlParams || null) != null) {
|
|
449
|
-
if ((0, _tools.isString)(urlParams)) {
|
|
450
|
-
url = "".concat(url, "?").concat(urlParams);
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
if ((0, _tools.isObject)(urlParams)) {
|
|
454
|
-
url = "".concat(url, "?").concat((0, _tools.queryStringify)(urlParams));
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
showRequestInfo = _defaultSettingsSpecial.defaultSettingsLayoutCustom.getShowRequestInfo();
|
|
459
|
-
|
|
460
|
-
if (!useVirtualRequest) {
|
|
461
|
-
_context.next = 29;
|
|
462
|
-
break;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
if (showUseVirtualRequestMessage) {
|
|
466
|
-
setTimeout(function () {
|
|
467
|
-
var text = '由虚拟访问返回';
|
|
468
|
-
(0, _tools.notifyInfo)(text);
|
|
469
|
-
}, showUseVirtualRequestMessageDelay > 0 ? showUseVirtualRequestMessageDelay : 0);
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
result = {};
|
|
473
|
-
verifyToken = false;
|
|
474
|
-
|
|
475
|
-
if (virtualNeedAuthorize) {
|
|
476
|
-
token = (0, _globalStorageAssist.getToken)();
|
|
477
|
-
|
|
478
|
-
if (!(0, _tools.stringIsNullOrWhiteSpace)(token)) {
|
|
479
|
-
verifyToken = true;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
if (!(virtualNeedAuthorize && !verifyToken)) {
|
|
484
|
-
_context.next = 24;
|
|
485
|
-
break;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
entrancePath = _defaultSettingsSpecial.defaultSettingsLayoutCustom.getEntrancePath();
|
|
489
|
-
|
|
490
|
-
if (!(0, _tools.stringIsNullOrWhiteSpace)(entrancePath)) {
|
|
491
|
-
_context.next = 21;
|
|
492
|
-
break;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
throw new Error('缺少登录页面路径配置');
|
|
496
|
-
|
|
497
|
-
case 21:
|
|
498
|
-
setTimeout(function () {
|
|
499
|
-
(0, _globalStorageAssist.clearCustomData)();
|
|
500
|
-
|
|
501
|
-
_message2.default.info('登陆超时,请重新登录!', 0.6);
|
|
502
|
-
|
|
503
|
-
(0, _tools.redirectToPath)(entrancePath);
|
|
504
|
-
}, 400);
|
|
505
|
-
_context.next = 27;
|
|
506
|
-
break;
|
|
507
|
-
|
|
508
|
-
case 24:
|
|
509
|
-
_context.next = 26;
|
|
510
|
-
return (0, _virtualRequest.apiVirtualAccess)({
|
|
511
|
-
virtualRequestDelay: virtualRequestDelay,
|
|
512
|
-
dataBuild: function dataBuild(resolve) {
|
|
513
|
-
if (virtualRequestResult) {
|
|
514
|
-
resolve((0, _virtualRequest.apiVirtualSuccessData)({
|
|
515
|
-
remoteResponse: virtualSuccessResponse,
|
|
516
|
-
needAuthorize: virtualNeedAuthorize
|
|
517
|
-
}));
|
|
518
|
-
} else {
|
|
519
|
-
resolve((0, _virtualRequest.apiVirtualFailData)(_objectSpread(_objectSpread({}, virtualFailResponse || {}), {
|
|
520
|
-
needAuthorize: virtualNeedAuthorize
|
|
521
|
-
})));
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
});
|
|
525
|
-
|
|
526
|
-
case 26:
|
|
527
|
-
result = _context.sent;
|
|
528
|
-
|
|
529
|
-
case 27:
|
|
530
|
-
if (showRequestInfo) {
|
|
531
|
-
(0, _tools.recordObject)({
|
|
532
|
-
url: url,
|
|
533
|
-
useVirtualRequest: useVirtualRequest,
|
|
534
|
-
virtualResponse: result,
|
|
535
|
-
params: params
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
return _context.abrupt("return", result);
|
|
540
|
-
|
|
541
|
-
case 29:
|
|
542
|
-
if (showRequestInfo) {
|
|
543
|
-
(0, _tools.recordObject)({
|
|
544
|
-
api: api,
|
|
545
|
-
apiVersion: apiVersion,
|
|
546
|
-
apiChange: url,
|
|
547
|
-
params: params
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
return _context.abrupt("return", (0, _request2.default)(url, {
|
|
552
|
-
method: method,
|
|
553
|
-
data: params
|
|
554
|
-
}));
|
|
555
|
-
|
|
556
|
-
case 31:
|
|
557
|
-
case "end":
|
|
558
|
-
return _context.stop();
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
}, _callee);
|
|
562
|
-
}));
|
|
563
|
-
return _request.apply(this, arguments);
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
function getApiVersion() {
|
|
567
|
-
var version = _defaultSettingsSpecial.defaultSettingsLayoutCustom.getApiVersion();
|
|
568
|
-
|
|
569
|
-
return version;
|
|
570
|
-
}
|
|
571
|
-
/**
|
|
572
|
-
* 构建跨域请求域前缀
|
|
573
|
-
*/
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
function corsTargetWithApiVersion() {
|
|
577
|
-
var apiVersion = getApiVersion();
|
|
578
|
-
|
|
579
|
-
if (!(0, _tools.stringIsNullOrWhiteSpace)(apiVersion)) {
|
|
580
|
-
apiVersion = "/".concat(apiVersion);
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
var path = "".concat((0, _tools.corsTarget)()).concat(apiVersion);
|
|
584
|
-
return path;
|
|
585
|
-
}
|
|
586
|
-
/**
|
|
587
|
-
* 占位函数
|
|
588
|
-
*
|
|
589
|
-
* @export
|
|
590
|
-
* @returns
|
|
591
|
-
*/
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
function empty() {
|
|
595
|
-
return {};
|
|
596
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取SessionStorage数据
|
|
3
|
-
* @export
|
|
4
|
-
* @param {*} key
|
|
5
|
-
* @param {*} value
|
|
6
|
-
*/
|
|
7
|
-
export function getStringFromSessionStorage(key: any): any;
|
|
8
|
-
/**
|
|
9
|
-
* 获取SessionStorage数据
|
|
10
|
-
* @export
|
|
11
|
-
* @param {*} key
|
|
12
|
-
* @param {*} value
|
|
13
|
-
*/
|
|
14
|
-
export function getJsonFromSessionStorage(key: any): any;
|
|
15
|
-
/**
|
|
16
|
-
* 存储SessionStorage数据
|
|
17
|
-
* @export
|
|
18
|
-
* @param {*} key
|
|
19
|
-
* @param {*} value
|
|
20
|
-
*/
|
|
21
|
-
export function saveStringToSessionStorage(key: any, value: any): void;
|
|
22
|
-
/**
|
|
23
|
-
* 存储SessionStorage数据
|
|
24
|
-
* @export
|
|
25
|
-
* @param {*} key
|
|
26
|
-
* @param {*} value
|
|
27
|
-
*/
|
|
28
|
-
export function saveJsonToSessionStorage(key: any, json: any): void;
|
|
29
|
-
/**
|
|
30
|
-
* 移除SessionStorage数据
|
|
31
|
-
* @export
|
|
32
|
-
* @param {*} key
|
|
33
|
-
*/
|
|
34
|
-
export function removeSessionStorage(key: any): void;
|
|
35
|
-
/**
|
|
36
|
-
* 清空SessionStorage数据
|
|
37
|
-
* @export
|
|
38
|
-
* @param {*} key
|
|
39
|
-
*/
|
|
40
|
-
export function clearSessionStorage(): void;
|
|
41
|
-
/**
|
|
42
|
-
* 占位函数
|
|
43
|
-
*
|
|
44
|
-
* @export
|
|
45
|
-
* @returns
|
|
46
|
-
*/
|
|
47
|
-
export function empty(): {};
|