smart-admin-web 10.5.0
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/LICENSE +201 -0
- package/README.md +78 -0
- package/dist/App.vue.d.ts +3 -0
- package/dist/App.vue.js +54 -0
- package/dist/App.vue.js.map +1 -0
- package/dist/App2.vue.js +5 -0
- package/dist/App2.vue.js.map +1 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/dist/api/client.d.ts +29 -0
- package/dist/api/client.js +139 -0
- package/dist/api/client.js.map +1 -0
- package/dist/api/index.d.ts +672 -0
- package/dist/api/index.js +638 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/reauthGate.d.ts +16 -0
- package/dist/api/reauthGate.js +21 -0
- package/dist/api/reauthGate.js.map +1 -0
- package/dist/api/schema.d.ts +10230 -0
- package/dist/assets/icons/ph-subset.json.js +16 -0
- package/dist/assets/icons/ph-subset.json.js.map +1 -0
- package/dist/assets/oauth/dingtalk.svg.js +5 -0
- package/dist/assets/oauth/dingtalk.svg.js.map +1 -0
- package/dist/assets/oauth/gitee.svg.js +5 -0
- package/dist/assets/oauth/gitee.svg.js.map +1 -0
- package/dist/assets/oauth/github.svg.js +5 -0
- package/dist/assets/oauth/github.svg.js.map +1 -0
- package/dist/assets/oauth/qq.svg.js +5 -0
- package/dist/assets/oauth/qq.svg.js.map +1 -0
- package/dist/assets/oauth/wechat.svg.js +5 -0
- package/dist/assets/oauth/wechat.svg.js.map +1 -0
- package/dist/assets/oauth/wecom.svg.js +5 -0
- package/dist/assets/oauth/wecom.svg.js.map +1 -0
- package/dist/assets/svg/star.svg.js +6 -0
- package/dist/assets/svg/star.svg.js.map +1 -0
- package/dist/components/ApiSelect/index.vue.d.ts +22 -0
- package/dist/components/ApiSelect/index.vue.js +50 -0
- package/dist/components/ApiSelect/index.vue.js.map +1 -0
- package/dist/components/ApiSelect/index2.vue.js +5 -0
- package/dist/components/ApiSelect/index2.vue.js.map +1 -0
- package/dist/components/AppIcon.vue.d.ts +7 -0
- package/dist/components/AppIcon.vue.js +33 -0
- package/dist/components/AppIcon.vue.js.map +1 -0
- package/dist/components/AppIcon2.vue.js +5 -0
- package/dist/components/AppIcon2.vue.js.map +1 -0
- package/dist/components/Chart/BarChart.vue.d.ts +13 -0
- package/dist/components/Chart/BarChart.vue.js +27 -0
- package/dist/components/Chart/BarChart.vue.js.map +1 -0
- package/dist/components/Chart/BarChart2.vue.js +5 -0
- package/dist/components/Chart/BarChart2.vue.js.map +1 -0
- package/dist/components/Chart/LineChart.vue.d.ts +15 -0
- package/dist/components/Chart/LineChart.vue.js +33 -0
- package/dist/components/Chart/LineChart.vue.js.map +1 -0
- package/dist/components/Chart/LineChart2.vue.js +5 -0
- package/dist/components/Chart/LineChart2.vue.js.map +1 -0
- package/dist/components/Chart/PieChart.vue.d.ts +14 -0
- package/dist/components/Chart/PieChart.vue.js +31 -0
- package/dist/components/Chart/PieChart.vue.js.map +1 -0
- package/dist/components/Chart/PieChart2.vue.js +5 -0
- package/dist/components/Chart/PieChart2.vue.js.map +1 -0
- package/dist/components/Chart/echarts.d.ts +57 -0
- package/dist/components/Chart/echarts.js +47 -0
- package/dist/components/Chart/echarts.js.map +1 -0
- package/dist/components/Chart/index.vue.d.ts +12 -0
- package/dist/components/Chart/index.vue.js +8 -0
- package/dist/components/Chart/index.vue.js.map +1 -0
- package/dist/components/Chart/index2.vue.js +27 -0
- package/dist/components/Chart/index2.vue.js.map +1 -0
- package/dist/components/CodeBlock/index.vue.d.ts +17 -0
- package/dist/components/CodeBlock/index.vue.js +8 -0
- package/dist/components/CodeBlock/index.vue.js.map +1 -0
- package/dist/components/CodeBlock/index2.vue.js +48 -0
- package/dist/components/CodeBlock/index2.vue.js.map +1 -0
- package/dist/components/CronEditor/index.vue.d.ts +15 -0
- package/dist/components/CronEditor/index.vue.js +8 -0
- package/dist/components/CronEditor/index.vue.js.map +1 -0
- package/dist/components/CronEditor/index2.vue.js +528 -0
- package/dist/components/CronEditor/index2.vue.js.map +1 -0
- package/dist/components/DetailPage/index.vue.d.ts +26 -0
- package/dist/components/DetailPage/index.vue.js +8 -0
- package/dist/components/DetailPage/index.vue.js.map +1 -0
- package/dist/components/DetailPage/index2.vue.js +51 -0
- package/dist/components/DetailPage/index2.vue.js.map +1 -0
- package/dist/components/DictCheckbox/index.vue.d.ts +6 -0
- package/dist/components/DictCheckbox/index.vue.js +43 -0
- package/dist/components/DictCheckbox/index.vue.js.map +1 -0
- package/dist/components/DictCheckbox/index2.vue.js +5 -0
- package/dist/components/DictCheckbox/index2.vue.js.map +1 -0
- package/dist/components/DictRadio/index.vue.d.ts +6 -0
- package/dist/components/DictRadio/index.vue.js +38 -0
- package/dist/components/DictRadio/index.vue.js.map +1 -0
- package/dist/components/DictRadio/index2.vue.js +5 -0
- package/dist/components/DictRadio/index2.vue.js.map +1 -0
- package/dist/components/DictSelect/index.vue.d.ts +6 -0
- package/dist/components/DictSelect/index.vue.js +37 -0
- package/dist/components/DictSelect/index.vue.js.map +1 -0
- package/dist/components/DictSelect/index2.vue.js +5 -0
- package/dist/components/DictSelect/index2.vue.js.map +1 -0
- package/dist/components/DictTag/index.vue.d.ts +10 -0
- package/dist/components/DictTag/index.vue.js +48 -0
- package/dist/components/DictTag/index.vue.js.map +1 -0
- package/dist/components/DictTag/index2.vue.js +5 -0
- package/dist/components/DictTag/index2.vue.js.map +1 -0
- package/dist/components/ErrorBoundary/index.vue.d.ts +13 -0
- package/dist/components/ErrorBoundary/index.vue.js +8 -0
- package/dist/components/ErrorBoundary/index.vue.js.map +1 -0
- package/dist/components/ErrorBoundary/index2.vue.js +61 -0
- package/dist/components/ErrorBoundary/index2.vue.js.map +1 -0
- package/dist/components/ExportColumnsModal/index.vue.d.ts +19 -0
- package/dist/components/ExportColumnsModal/index.vue.js +8 -0
- package/dist/components/ExportColumnsModal/index.vue.js.map +1 -0
- package/dist/components/ExportColumnsModal/index2.vue.js +121 -0
- package/dist/components/ExportColumnsModal/index2.vue.js.map +1 -0
- package/dist/components/FileUpload/index.vue.d.ts +24 -0
- package/dist/components/FileUpload/index.vue.js +42 -0
- package/dist/components/FileUpload/index.vue.js.map +1 -0
- package/dist/components/FileUpload/index2.vue.js +5 -0
- package/dist/components/FileUpload/index2.vue.js.map +1 -0
- package/dist/components/FormContainer/index.vue.d.ts +51 -0
- package/dist/components/FormContainer/index.vue.js +160 -0
- package/dist/components/FormContainer/index.vue.js.map +1 -0
- package/dist/components/FormContainer/index3.vue.js +6 -0
- package/dist/components/FormContainer/index3.vue.js.map +1 -0
- package/dist/components/IconPicker/index.vue.d.ts +18 -0
- package/dist/components/IconPicker/index.vue.js +43 -0
- package/dist/components/IconPicker/index.vue.js.map +1 -0
- package/dist/components/IconPicker/index2.vue.js +5 -0
- package/dist/components/IconPicker/index2.vue.js.map +1 -0
- package/dist/components/ImportWizard/index.vue.d.ts +39 -0
- package/dist/components/ImportWizard/index.vue.js +8 -0
- package/dist/components/ImportWizard/index.vue.js.map +1 -0
- package/dist/components/ImportWizard/index2.vue.js +634 -0
- package/dist/components/ImportWizard/index2.vue.js.map +1 -0
- package/dist/components/JsonEditor/index.vue.d.ts +12 -0
- package/dist/components/JsonEditor/index.vue.js +87 -0
- package/dist/components/JsonEditor/index.vue.js.map +1 -0
- package/dist/components/JsonEditor/index2.vue.js +5 -0
- package/dist/components/JsonEditor/index2.vue.js.map +1 -0
- package/dist/components/MarkdownEditor/MarkdownView.vue.d.ts +6 -0
- package/dist/components/MarkdownEditor/MarkdownView.vue.js +33 -0
- package/dist/components/MarkdownEditor/MarkdownView.vue.js.map +1 -0
- package/dist/components/MarkdownEditor/MarkdownView2.vue.js +5 -0
- package/dist/components/MarkdownEditor/MarkdownView2.vue.js.map +1 -0
- package/dist/components/MarkdownEditor/index.vue.d.ts +10 -0
- package/dist/components/MarkdownEditor/index.vue.js +35 -0
- package/dist/components/MarkdownEditor/index.vue.js.map +1 -0
- package/dist/components/MarkdownEditor/index2.vue.js +5 -0
- package/dist/components/MarkdownEditor/index2.vue.js.map +1 -0
- package/dist/components/MenuSearch.vue.d.ts +10 -0
- package/dist/components/MenuSearch.vue.js +8 -0
- package/dist/components/MenuSearch.vue.js.map +1 -0
- package/dist/components/MenuSearch2.vue.js +121 -0
- package/dist/components/MenuSearch2.vue.js.map +1 -0
- package/dist/components/OrgTreeSelect/index.vue.d.ts +6 -0
- package/dist/components/OrgTreeSelect/index.vue.js +42 -0
- package/dist/components/OrgTreeSelect/index.vue.js.map +1 -0
- package/dist/components/OrgTreeSelect/index2.vue.js +5 -0
- package/dist/components/OrgTreeSelect/index2.vue.js.map +1 -0
- package/dist/components/PasswordStrength/index.vue.d.ts +6 -0
- package/dist/components/PasswordStrength/index.vue.js +8 -0
- package/dist/components/PasswordStrength/index.vue.js.map +1 -0
- package/dist/components/PasswordStrength/index2.vue.js +91 -0
- package/dist/components/PasswordStrength/index2.vue.js.map +1 -0
- package/dist/components/ReauthModal.vue.d.ts +3 -0
- package/dist/components/ReauthModal.vue.js +8 -0
- package/dist/components/ReauthModal.vue.js.map +1 -0
- package/dist/components/ReauthModal2.vue.js +139 -0
- package/dist/components/ReauthModal2.vue.js.map +1 -0
- package/dist/components/RoleSelect/index.vue.d.ts +8 -0
- package/dist/components/RoleSelect/index.vue.js +26 -0
- package/dist/components/RoleSelect/index.vue.js.map +1 -0
- package/dist/components/RoleSelect/index2.vue.js +5 -0
- package/dist/components/RoleSelect/index2.vue.js.map +1 -0
- package/dist/components/SelectTable/index.vue.d.ts +76 -0
- package/dist/components/SelectTable/index.vue.js +8 -0
- package/dist/components/SelectTable/index.vue.js.map +1 -0
- package/dist/components/SelectTable/index2.vue.js +256 -0
- package/dist/components/SelectTable/index2.vue.js.map +1 -0
- package/dist/components/SmartLogo.vue.d.ts +8 -0
- package/dist/components/SmartLogo.vue.js +8 -0
- package/dist/components/SmartLogo.vue.js.map +1 -0
- package/dist/components/SmartLogo2.vue.js +74 -0
- package/dist/components/SmartLogo2.vue.js.map +1 -0
- package/dist/components/StatusSwitch/index.vue.d.ts +21 -0
- package/dist/components/StatusSwitch/index.vue.js +45 -0
- package/dist/components/StatusSwitch/index.vue.js.map +1 -0
- package/dist/components/StatusSwitch/index2.vue.js +5 -0
- package/dist/components/StatusSwitch/index2.vue.js.map +1 -0
- package/dist/components/TableZoomButton/index.vue.d.ts +13 -0
- package/dist/components/TableZoomButton/index.vue.js +42 -0
- package/dist/components/TableZoomButton/index.vue.js.map +1 -0
- package/dist/components/TableZoomButton/index2.vue.js +5 -0
- package/dist/components/TableZoomButton/index2.vue.js.map +1 -0
- package/dist/components/UserPicker/index.vue.d.ts +13 -0
- package/dist/components/UserPicker/index.vue.js +8 -0
- package/dist/components/UserPicker/index.vue.js.map +1 -0
- package/dist/components/UserPicker/index2.vue.js +214 -0
- package/dist/components/UserPicker/index2.vue.js.map +1 -0
- package/dist/components/UserSelect/index.vue.d.ts +9 -0
- package/dist/components/UserSelect/index.vue.js +32 -0
- package/dist/components/UserSelect/index.vue.js.map +1 -0
- package/dist/components/UserSelect/index2.vue.js +5 -0
- package/dist/components/UserSelect/index2.vue.js.map +1 -0
- package/dist/components/oauth/BrandIcon.vue.d.ts +12 -0
- package/dist/components/oauth/BrandIcon.vue.js +8 -0
- package/dist/components/oauth/BrandIcon.vue.js.map +1 -0
- package/dist/components/oauth/BrandIcon2.vue.js +95 -0
- package/dist/components/oauth/BrandIcon2.vue.js.map +1 -0
- package/dist/composables/authMenuRoute.d.ts +32 -0
- package/dist/composables/authMenuRoute.js +37 -0
- package/dist/composables/authMenuRoute.js.map +1 -0
- package/dist/composables/clearClientCache.d.ts +10 -0
- package/dist/composables/clearClientCache.js +17 -0
- package/dist/composables/clearClientCache.js.map +1 -0
- package/dist/composables/useAuthMenu.d.ts +3 -0
- package/dist/composables/useAuthMenu.js +61 -0
- package/dist/composables/useAuthMenu.js.map +1 -0
- package/dist/composables/useBatchDelete.d.ts +18 -0
- package/dist/composables/useBatchDelete.js +21 -0
- package/dist/composables/useBatchDelete.js.map +1 -0
- package/dist/composables/useCompactScreen.d.ts +12 -0
- package/dist/composables/useCompactScreen.js +17 -0
- package/dist/composables/useCompactScreen.js.map +1 -0
- package/dist/composables/useConfirm.d.ts +18 -0
- package/dist/composables/useConfirm.js +61 -0
- package/dist/composables/useConfirm.js.map +1 -0
- package/dist/composables/useFullscreenToggle.d.ts +11 -0
- package/dist/composables/useFullscreenToggle.js +64 -0
- package/dist/composables/useFullscreenToggle.js.map +1 -0
- package/dist/composables/useHeaderTools.d.ts +31 -0
- package/dist/composables/useHeaderTools.js +15 -0
- package/dist/composables/useHeaderTools.js.map +1 -0
- package/dist/composables/useLayoutMenu.d.ts +17 -0
- package/dist/composables/useLayoutMenu.js +93 -0
- package/dist/composables/useLayoutMenu.js.map +1 -0
- package/dist/composables/useMenuBadge.d.ts +11 -0
- package/dist/composables/useMenuBadge.js +17 -0
- package/dist/composables/useMenuBadge.js.map +1 -0
- package/dist/composables/useMenuFlat.d.ts +8 -0
- package/dist/composables/useMenuFlat.js +29 -0
- package/dist/composables/useMenuFlat.js.map +1 -0
- package/dist/composables/useModule.d.ts +16 -0
- package/dist/composables/useModule.js +44 -0
- package/dist/composables/useModule.js.map +1 -0
- package/dist/composables/useNoticeAction.d.ts +8 -0
- package/dist/composables/useNoticeAction.js +79 -0
- package/dist/composables/useNoticeAction.js.map +1 -0
- package/dist/composables/usePageTitle.d.ts +1 -0
- package/dist/composables/usePageTitle.js +20 -0
- package/dist/composables/usePageTitle.js.map +1 -0
- package/dist/composables/useRealtime.d.ts +31 -0
- package/dist/composables/useRealtime.js +59 -0
- package/dist/composables/useRealtime.js.map +1 -0
- package/dist/composables/useSite.d.ts +24 -0
- package/dist/composables/useSite.js +27 -0
- package/dist/composables/useSite.js.map +1 -0
- package/dist/composables/useTabTitle.d.ts +1 -0
- package/dist/composables/useTabTitle.js +10 -0
- package/dist/composables/useTabTitle.js.map +1 -0
- package/dist/composables/useTableRowSort.d.ts +20 -0
- package/dist/composables/useTableRowSort.js +59 -0
- package/dist/composables/useTableRowSort.js.map +1 -0
- package/dist/composables/useTableZoom.d.ts +5 -0
- package/dist/composables/useTableZoom.js +30 -0
- package/dist/composables/useTableZoom.js.map +1 -0
- package/dist/composables/useTheme.d.ts +13 -0
- package/dist/composables/useTheme.js +30 -0
- package/dist/composables/useTheme.js.map +1 -0
- package/dist/composables/useVisualViewportHeight.d.ts +3 -0
- package/dist/composables/useVisualViewportHeight.js +16 -0
- package/dist/composables/useVisualViewportHeight.js.map +1 -0
- package/dist/createSmartAdmin.d.ts +56 -0
- package/dist/createSmartAdmin.js +76 -0
- package/dist/createSmartAdmin.js.map +1 -0
- package/dist/directives/auth.d.ts +16 -0
- package/dist/directives/auth.js +19 -0
- package/dist/directives/auth.js.map +1 -0
- package/dist/env.d.ts +10 -0
- package/dist/index.d.ts +90 -0
- package/dist/index.js +273 -0
- package/dist/index.js.map +1 -0
- package/dist/layouts/AppHeader.vue.d.ts +12 -0
- package/dist/layouts/AppHeader.vue.js +8 -0
- package/dist/layouts/AppHeader.vue.js.map +1 -0
- package/dist/layouts/AppHeader2.vue.js +352 -0
- package/dist/layouts/AppHeader2.vue.js.map +1 -0
- package/dist/layouts/LayoutModeCards.vue.d.ts +3 -0
- package/dist/layouts/LayoutModeCards.vue.js +8 -0
- package/dist/layouts/LayoutModeCards.vue.js.map +1 -0
- package/dist/layouts/LayoutModeCards2.vue.js +67 -0
- package/dist/layouts/LayoutModeCards2.vue.js.map +1 -0
- package/dist/layouts/NoticeBell.vue.d.ts +3 -0
- package/dist/layouts/NoticeBell.vue.js +8 -0
- package/dist/layouts/NoticeBell.vue.js.map +1 -0
- package/dist/layouts/NoticeBell2.vue.js +292 -0
- package/dist/layouts/NoticeBell2.vue.js.map +1 -0
- package/dist/layouts/PersonalLayout.vue.d.ts +3 -0
- package/dist/layouts/PersonalLayout.vue.js +8 -0
- package/dist/layouts/PersonalLayout.vue.js.map +1 -0
- package/dist/layouts/PersonalLayout2.vue.js +65 -0
- package/dist/layouts/PersonalLayout2.vue.js.map +1 -0
- package/dist/layouts/SettingRow.vue.d.ts +16 -0
- package/dist/layouts/SettingRow.vue.js +8 -0
- package/dist/layouts/SettingRow.vue.js.map +1 -0
- package/dist/layouts/SettingRow2.vue.js +23 -0
- package/dist/layouts/SettingRow2.vue.js.map +1 -0
- package/dist/layouts/SettingsDrawer.vue.d.ts +10 -0
- package/dist/layouts/SettingsDrawer.vue.js +8 -0
- package/dist/layouts/SettingsDrawer.vue.js.map +1 -0
- package/dist/layouts/SettingsDrawer2.vue.js +380 -0
- package/dist/layouts/SettingsDrawer2.vue.js.map +1 -0
- package/dist/layouts/TabsBar.vue.d.ts +3 -0
- package/dist/layouts/TabsBar.vue.js +8 -0
- package/dist/layouts/TabsBar.vue.js.map +1 -0
- package/dist/layouts/TabsBar2.vue.js +132 -0
- package/dist/layouts/TabsBar2.vue.js.map +1 -0
- package/dist/layouts/components/SideNav.vue.d.ts +15 -0
- package/dist/layouts/components/SideNav.vue.js +8 -0
- package/dist/layouts/components/SideNav.vue.js.map +1 -0
- package/dist/layouts/components/SideNav2.vue.js +49 -0
- package/dist/layouts/components/SideNav2.vue.js.map +1 -0
- package/dist/layouts/default.vue.d.ts +3 -0
- package/dist/layouts/default.vue.js +8 -0
- package/dist/layouts/default.vue.js.map +1 -0
- package/dist/layouts/default2.vue.js +213 -0
- package/dist/layouts/default2.vue.js.map +1 -0
- package/dist/lib/chunkReload.d.ts +9 -0
- package/dist/lib/chunkReload.js +24 -0
- package/dist/lib/chunkReload.js.map +1 -0
- package/dist/lib/icons.d.ts +2 -0
- package/dist/lib/icons.js +39 -0
- package/dist/lib/icons.js.map +1 -0
- package/dist/lib/loadingBar.d.ts +7 -0
- package/dist/lib/loadingBar.js +18 -0
- package/dist/lib/loadingBar.js.map +1 -0
- package/dist/lib/markdown.d.ts +8 -0
- package/dist/lib/markdown.js +16 -0
- package/dist/lib/markdown.js.map +1 -0
- package/dist/lib/markdownLinks.d.ts +26 -0
- package/dist/lib/markdownLinks.js +21 -0
- package/dist/lib/markdownLinks.js.map +1 -0
- package/dist/lib/noticeActions.d.ts +13 -0
- package/dist/lib/noticeActions.js +16 -0
- package/dist/lib/noticeActions.js.map +1 -0
- package/dist/lib/runtime.d.ts +21 -0
- package/dist/lib/runtime.js +13 -0
- package/dist/lib/runtime.js.map +1 -0
- package/dist/locales/en-US.d.ts +1358 -0
- package/dist/locales/en-US.js +1362 -0
- package/dist/locales/en-US.js.map +1 -0
- package/dist/locales/index.d.ts +30 -0
- package/dist/locales/index.js +46 -0
- package/dist/locales/index.js.map +1 -0
- package/dist/locales/menuTitle.d.ts +8 -0
- package/dist/locales/menuTitle.js +19 -0
- package/dist/locales/menuTitle.js.map +1 -0
- package/dist/locales/zh-CN.d.ts +1358 -0
- package/dist/locales/zh-CN.js +1368 -0
- package/dist/locales/zh-CN.js.map +1 -0
- package/dist/router/bootFailure.d.ts +8 -0
- package/dist/router/bootFailure.js +11 -0
- package/dist/router/bootFailure.js.map +1 -0
- package/dist/router/detailRoutes.d.ts +2 -0
- package/dist/router/detailRoutes.js +19 -0
- package/dist/router/detailRoutes.js.map +1 -0
- package/dist/router/index.d.ts +3 -0
- package/dist/router/index.js +58 -0
- package/dist/router/index.js.map +1 -0
- package/dist/router/namedPage.d.ts +13 -0
- package/dist/router/namedPage.js +12 -0
- package/dist/router/namedPage.js.map +1 -0
- package/dist/router/routes.d.ts +2 -0
- package/dist/router/routes.js +121 -0
- package/dist/router/routes.js.map +1 -0
- package/dist/router/viewRegistry.d.ts +18 -0
- package/dist/router/viewRegistry.js +26 -0
- package/dist/router/viewRegistry.js.map +1 -0
- package/dist/stores/app.d.ts +83 -0
- package/dist/stores/app.js +82 -0
- package/dist/stores/app.js.map +1 -0
- package/dist/stores/auth.d.ts +106 -0
- package/dist/stores/auth.js +59 -0
- package/dist/stores/auth.js.map +1 -0
- package/dist/stores/dict.d.ts +11 -0
- package/dist/stores/dict.js +36 -0
- package/dist/stores/dict.js.map +1 -0
- package/dist/stores/tabs.d.ts +53 -0
- package/dist/stores/tabs.js +88 -0
- package/dist/stores/tabs.js.map +1 -0
- package/dist/stores/user.d.ts +64 -0
- package/dist/stores/user.js +64 -0
- package/dist/stores/user.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/theme/accents.d.ts +2 -0
- package/dist/theme/accents.js +5 -0
- package/dist/theme/accents.js.map +1 -0
- package/dist/theme/mix.d.ts +26 -0
- package/dist/theme/mix.js +43 -0
- package/dist/theme/mix.js.map +1 -0
- package/dist/theme/naive-theme.d.ts +9 -0
- package/dist/theme/naive-theme.js +89 -0
- package/dist/theme/naive-theme.js.map +1 -0
- package/dist/types/api.d.ts +714 -0
- package/dist/types/api.js +15 -0
- package/dist/types/api.js.map +1 -0
- package/dist/types/menu.d.ts +67 -0
- package/dist/types/menu.js +26 -0
- package/dist/types/menu.js.map +1 -0
- package/dist/utils/chunkUpload.d.ts +6 -0
- package/dist/utils/chunkUpload.js +35 -0
- package/dist/utils/chunkUpload.js.map +1 -0
- package/dist/utils/download.d.ts +8 -0
- package/dist/utils/download.js +8 -0
- package/dist/utils/download.js.map +1 -0
- package/dist/utils/error.d.ts +14 -0
- package/dist/utils/error.js +50 -0
- package/dist/utils/error.js.map +1 -0
- package/dist/utils/format.d.ts +20 -0
- package/dist/utils/format.js +19 -0
- package/dist/utils/format.js.map +1 -0
- package/dist/utils/importDup.d.ts +17 -0
- package/dist/utils/importDup.js +18 -0
- package/dist/utils/importDup.js.map +1 -0
- package/dist/utils/oauthBrand.d.ts +100 -0
- package/dist/utils/oauthBrand.js +97 -0
- package/dist/utils/oauthBrand.js.map +1 -0
- package/dist/utils/tree.d.ts +33 -0
- package/dist/utils/tree.js +47 -0
- package/dist/utils/tree.js.map +1 -0
- package/dist/utils/ua.d.ts +7 -0
- package/dist/utils/ua.js +33 -0
- package/dist/utils/ua.js.map +1 -0
- package/dist/utils/url.d.ts +16 -0
- package/dist/utils/url.js +13 -0
- package/dist/utils/url.js.map +1 -0
- package/dist/views/dashboard/biz.vue.d.ts +3 -0
- package/dist/views/dashboard/biz.vue.js +8 -0
- package/dist/views/dashboard/biz.vue.js.map +1 -0
- package/dist/views/dashboard/biz2.vue.js +136 -0
- package/dist/views/dashboard/biz2.vue.js.map +1 -0
- package/dist/views/dashboard/workbench.vue.d.ts +3 -0
- package/dist/views/dashboard/workbench.vue.js +8 -0
- package/dist/views/dashboard/workbench.vue.js.map +1 -0
- package/dist/views/dashboard/workbench2.vue.js +195 -0
- package/dist/views/dashboard/workbench2.vue.js.map +1 -0
- package/dist/views/embed/iframe.vue.d.ts +3 -0
- package/dist/views/embed/iframe.vue.js +8 -0
- package/dist/views/embed/iframe.vue.js.map +1 -0
- package/dist/views/embed/iframe2.vue.js +21 -0
- package/dist/views/embed/iframe2.vue.js.map +1 -0
- package/dist/views/error/404.vue.d.ts +3 -0
- package/dist/views/error/404.vue.js +8 -0
- package/dist/views/error/404.vue.js.map +1 -0
- package/dist/views/error/4042.vue.js +31 -0
- package/dist/views/error/4042.vue.js.map +1 -0
- package/dist/views/error/BootError.vue.d.ts +3 -0
- package/dist/views/error/BootError.vue.js +8 -0
- package/dist/views/error/BootError.vue.js.map +1 -0
- package/dist/views/error/BootError2.vue.js +57 -0
- package/dist/views/error/BootError2.vue.js.map +1 -0
- package/dist/views/error/MissingRoute.vue.d.ts +3 -0
- package/dist/views/error/MissingRoute.vue.js +8 -0
- package/dist/views/error/MissingRoute.vue.js.map +1 -0
- package/dist/views/error/MissingRoute2.vue.js +23 -0
- package/dist/views/error/MissingRoute2.vue.js.map +1 -0
- package/dist/views/login/LoginForm.vue.d.ts +12 -0
- package/dist/views/login/LoginForm.vue.js +8 -0
- package/dist/views/login/LoginForm.vue.js.map +1 -0
- package/dist/views/login/LoginForm2.vue.js +642 -0
- package/dist/views/login/LoginForm2.vue.js.map +1 -0
- package/dist/views/login/index.vue.d.ts +3 -0
- package/dist/views/login/index.vue.js +8 -0
- package/dist/views/login/index.vue.js.map +1 -0
- package/dist/views/login/index2.vue.js +79 -0
- package/dist/views/login/index2.vue.js.map +1 -0
- package/dist/views/login/skins/AuroraGlass.vue.d.ts +3 -0
- package/dist/views/login/skins/AuroraGlass.vue.js +8 -0
- package/dist/views/login/skins/AuroraGlass.vue.js.map +1 -0
- package/dist/views/login/skins/AuroraGlass2.vue.js +80 -0
- package/dist/views/login/skins/AuroraGlass2.vue.js.map +1 -0
- package/dist/views/login/skins/SplitPanel.vue.d.ts +3 -0
- package/dist/views/login/skins/SplitPanel.vue.js +8 -0
- package/dist/views/login/skins/SplitPanel.vue.js.map +1 -0
- package/dist/views/login/skins/SplitPanel2.vue.js +85 -0
- package/dist/views/login/skins/SplitPanel2.vue.js.map +1 -0
- package/dist/views/login/skins/Spotlight.vue.d.ts +3 -0
- package/dist/views/login/skins/Spotlight.vue.js +8 -0
- package/dist/views/login/skins/Spotlight.vue.js.map +1 -0
- package/dist/views/login/skins/Spotlight2.vue.js +36 -0
- package/dist/views/login/skins/Spotlight2.vue.js.map +1 -0
- package/dist/views/login/skins.d.ts +8 -0
- package/dist/views/login/skins.js +13 -0
- package/dist/views/login/skins.js.map +1 -0
- package/dist/views/mfa/bindComplete.d.ts +7 -0
- package/dist/views/mfa/bindComplete.js +8 -0
- package/dist/views/mfa/bindComplete.js.map +1 -0
- package/dist/views/mfa/index.vue.d.ts +3 -0
- package/dist/views/mfa/index.vue.js +8 -0
- package/dist/views/mfa/index.vue.js.map +1 -0
- package/dist/views/mfa/index2.vue.js +425 -0
- package/dist/views/mfa/index2.vue.js.map +1 -0
- package/dist/views/module/index.vue.d.ts +3 -0
- package/dist/views/module/index.vue.js +8 -0
- package/dist/views/module/index.vue.js.map +1 -0
- package/dist/views/module/index2.vue.js +142 -0
- package/dist/views/module/index2.vue.js.map +1 -0
- package/dist/views/oauth/callback.vue.d.ts +3 -0
- package/dist/views/oauth/callback.vue.js +8 -0
- package/dist/views/oauth/callback.vue.js.map +1 -0
- package/dist/views/oauth/callback2.vue.js +86 -0
- package/dist/views/oauth/callback2.vue.js.map +1 -0
- package/dist/views/personal/bindings.vue.d.ts +3 -0
- package/dist/views/personal/bindings.vue.js +8 -0
- package/dist/views/personal/bindings.vue.js.map +1 -0
- package/dist/views/personal/bindings2.vue.js +220 -0
- package/dist/views/personal/bindings2.vue.js.map +1 -0
- package/dist/views/personal/notice.vue.d.ts +3 -0
- package/dist/views/personal/notice.vue.js +5 -0
- package/dist/views/personal/notice.vue.js.map +1 -0
- package/dist/views/personal/notice2.vue.js +163 -0
- package/dist/views/personal/notice2.vue.js.map +1 -0
- package/dist/views/personal/password.vue.d.ts +3 -0
- package/dist/views/personal/password.vue.js +5 -0
- package/dist/views/personal/password.vue.js.map +1 -0
- package/dist/views/personal/password2.vue.js +147 -0
- package/dist/views/personal/password2.vue.js.map +1 -0
- package/dist/views/personal/profile.vue.d.ts +3 -0
- package/dist/views/personal/profile.vue.js +8 -0
- package/dist/views/personal/profile.vue.js.map +1 -0
- package/dist/views/personal/profile2.vue.js +264 -0
- package/dist/views/personal/profile2.vue.js.map +1 -0
- package/dist/views/personal/security.vue.d.ts +3 -0
- package/dist/views/personal/security.vue.js +8 -0
- package/dist/views/personal/security.vue.js.map +1 -0
- package/dist/views/personal/security2.vue.js +82 -0
- package/dist/views/personal/security2.vue.js.map +1 -0
- package/dist/views/personal/sessions.vue.d.ts +3 -0
- package/dist/views/personal/sessions.vue.js +8 -0
- package/dist/views/personal/sessions.vue.js.map +1 -0
- package/dist/views/personal/sessions2.vue.js +101 -0
- package/dist/views/personal/sessions2.vue.js.map +1 -0
- package/dist/views/system/cache/index.vue.d.ts +3 -0
- package/dist/views/system/cache/index.vue.js +8 -0
- package/dist/views/system/cache/index.vue.js.map +1 -0
- package/dist/views/system/cache/index2.vue.js +113 -0
- package/dist/views/system/cache/index2.vue.js.map +1 -0
- package/dist/views/system/config/components/ConfigFormModal.vue.d.ts +16 -0
- package/dist/views/system/config/components/ConfigFormModal.vue.js +5 -0
- package/dist/views/system/config/components/ConfigFormModal.vue.js.map +1 -0
- package/dist/views/system/config/components/ConfigFormModal2.vue.js +177 -0
- package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -0
- package/dist/views/system/config/components/ExternalAuthConfig.vue.d.ts +3 -0
- package/dist/views/system/config/components/ExternalAuthConfig.vue.js +8 -0
- package/dist/views/system/config/components/ExternalAuthConfig.vue.js.map +1 -0
- package/dist/views/system/config/components/ExternalAuthConfig2.vue.js +218 -0
- package/dist/views/system/config/components/ExternalAuthConfig2.vue.js.map +1 -0
- package/dist/views/system/config/components/GroupExtraConfig.vue.d.ts +9 -0
- package/dist/views/system/config/components/GroupExtraConfig.vue.js +8 -0
- package/dist/views/system/config/components/GroupExtraConfig.vue.js.map +1 -0
- package/dist/views/system/config/components/GroupExtraConfig2.vue.js +108 -0
- package/dist/views/system/config/components/GroupExtraConfig2.vue.js.map +1 -0
- package/dist/views/system/config/components/HighSensConfig.vue.d.ts +3 -0
- package/dist/views/system/config/components/HighSensConfig.vue.js +5 -0
- package/dist/views/system/config/components/HighSensConfig.vue.js.map +1 -0
- package/dist/views/system/config/components/HighSensConfig2.vue.js +134 -0
- package/dist/views/system/config/components/HighSensConfig2.vue.js.map +1 -0
- package/dist/views/system/config/components/JobConfig.vue.d.ts +3 -0
- package/dist/views/system/config/components/JobConfig.vue.js +5 -0
- package/dist/views/system/config/components/JobConfig.vue.js.map +1 -0
- package/dist/views/system/config/components/JobConfig2.vue.js +116 -0
- package/dist/views/system/config/components/JobConfig2.vue.js.map +1 -0
- package/dist/views/system/config/components/OtherConfig.vue.d.ts +3 -0
- package/dist/views/system/config/components/OtherConfig.vue.js +5 -0
- package/dist/views/system/config/components/OtherConfig.vue.js.map +1 -0
- package/dist/views/system/config/components/OtherConfig2.vue.js +121 -0
- package/dist/views/system/config/components/OtherConfig2.vue.js.map +1 -0
- package/dist/views/system/config/components/SecurityConfig.vue.d.ts +3 -0
- package/dist/views/system/config/components/SecurityConfig.vue.js +8 -0
- package/dist/views/system/config/components/SecurityConfig.vue.js.map +1 -0
- package/dist/views/system/config/components/SecurityConfig2.vue.js +456 -0
- package/dist/views/system/config/components/SecurityConfig2.vue.js.map +1 -0
- package/dist/views/system/config/components/SysBaseConfig.vue.d.ts +3 -0
- package/dist/views/system/config/components/SysBaseConfig.vue.js +5 -0
- package/dist/views/system/config/components/SysBaseConfig.vue.js.map +1 -0
- package/dist/views/system/config/components/SysBaseConfig2.vue.js +107 -0
- package/dist/views/system/config/components/SysBaseConfig2.vue.js.map +1 -0
- package/dist/views/system/config/components/UploadConfig.vue.d.ts +3 -0
- package/dist/views/system/config/components/UploadConfig.vue.js +5 -0
- package/dist/views/system/config/components/UploadConfig.vue.js.map +1 -0
- package/dist/views/system/config/components/UploadConfig2.vue.js +135 -0
- package/dist/views/system/config/components/UploadConfig2.vue.js.map +1 -0
- package/dist/views/system/config/groups.d.ts +9 -0
- package/dist/views/system/config/groups.js +18 -0
- package/dist/views/system/config/groups.js.map +1 -0
- package/dist/views/system/config/index.vue.d.ts +3 -0
- package/dist/views/system/config/index.vue.js +5 -0
- package/dist/views/system/config/index.vue.js.map +1 -0
- package/dist/views/system/config/index2.vue.js +127 -0
- package/dist/views/system/config/index2.vue.js.map +1 -0
- package/dist/views/system/dict/index.vue.d.ts +3 -0
- package/dist/views/system/dict/index.vue.js +8 -0
- package/dist/views/system/dict/index.vue.js.map +1 -0
- package/dist/views/system/dict/index2.vue.js +560 -0
- package/dist/views/system/dict/index2.vue.js.map +1 -0
- package/dist/views/system/file/index.vue.d.ts +3 -0
- package/dist/views/system/file/index.vue.js +5 -0
- package/dist/views/system/file/index.vue.js.map +1 -0
- package/dist/views/system/file/index2.vue.js +186 -0
- package/dist/views/system/file/index2.vue.js.map +1 -0
- package/dist/views/system/job/index.vue.d.ts +3 -0
- package/dist/views/system/job/index.vue.js +8 -0
- package/dist/views/system/job/index.vue.js.map +1 -0
- package/dist/views/system/job/index2.vue.js +1167 -0
- package/dist/views/system/job/index2.vue.js.map +1 -0
- package/dist/views/system/job-log/index.vue.d.ts +3 -0
- package/dist/views/system/job-log/index.vue.js +8 -0
- package/dist/views/system/job-log/index.vue.js.map +1 -0
- package/dist/views/system/job-log/index2.vue.js +411 -0
- package/dist/views/system/job-log/index2.vue.js.map +1 -0
- package/dist/views/system/job-monitor/index.vue.d.ts +3 -0
- package/dist/views/system/job-monitor/index.vue.js +8 -0
- package/dist/views/system/job-monitor/index.vue.js.map +1 -0
- package/dist/views/system/job-monitor/index2.vue.js +253 -0
- package/dist/views/system/job-monitor/index2.vue.js.map +1 -0
- package/dist/views/system/log/exception/index.vue.d.ts +3 -0
- package/dist/views/system/log/exception/index.vue.js +8 -0
- package/dist/views/system/log/exception/index.vue.js.map +1 -0
- package/dist/views/system/log/exception/index2.vue.js +216 -0
- package/dist/views/system/log/exception/index2.vue.js.map +1 -0
- package/dist/views/system/log/login/index.vue.d.ts +3 -0
- package/dist/views/system/log/login/index.vue.js +5 -0
- package/dist/views/system/log/login/index.vue.js.map +1 -0
- package/dist/views/system/log/login/index2.vue.js +113 -0
- package/dist/views/system/log/login/index2.vue.js.map +1 -0
- package/dist/views/system/log/op/index.vue.d.ts +3 -0
- package/dist/views/system/log/op/index.vue.js +8 -0
- package/dist/views/system/log/op/index.vue.js.map +1 -0
- package/dist/views/system/log/op/index2.vue.js +332 -0
- package/dist/views/system/log/op/index2.vue.js.map +1 -0
- package/dist/views/system/menu/components/ButtonManager.vue.d.ts +21 -0
- package/dist/views/system/menu/components/ButtonManager.vue.js +8 -0
- package/dist/views/system/menu/components/ButtonManager.vue.js.map +1 -0
- package/dist/views/system/menu/components/ButtonManager2.vue.js +498 -0
- package/dist/views/system/menu/components/ButtonManager2.vue.js.map +1 -0
- package/dist/views/system/menu/components/MenuFormModal.vue.d.ts +22 -0
- package/dist/views/system/menu/components/MenuFormModal.vue.js +8 -0
- package/dist/views/system/menu/components/MenuFormModal.vue.js.map +1 -0
- package/dist/views/system/menu/components/MenuFormModal2.vue.js +259 -0
- package/dist/views/system/menu/components/MenuFormModal2.vue.js.map +1 -0
- package/dist/views/system/menu/index.vue.d.ts +3 -0
- package/dist/views/system/menu/index.vue.js +8 -0
- package/dist/views/system/menu/index.vue.js.map +1 -0
- package/dist/views/system/menu/index2.vue.js +391 -0
- package/dist/views/system/menu/index2.vue.js.map +1 -0
- package/dist/views/system/module/index.vue.d.ts +3 -0
- package/dist/views/system/module/index.vue.js +8 -0
- package/dist/views/system/module/index.vue.js.map +1 -0
- package/dist/views/system/module/index2.vue.js +344 -0
- package/dist/views/system/module/index2.vue.js.map +1 -0
- package/dist/views/system/monitor/index.vue.d.ts +3 -0
- package/dist/views/system/monitor/index.vue.js +8 -0
- package/dist/views/system/monitor/index.vue.js.map +1 -0
- package/dist/views/system/monitor/index2.vue.js +184 -0
- package/dist/views/system/monitor/index2.vue.js.map +1 -0
- package/dist/views/system/notice/index.vue.d.ts +3 -0
- package/dist/views/system/notice/index.vue.js +8 -0
- package/dist/views/system/notice/index.vue.js.map +1 -0
- package/dist/views/system/notice/index2.vue.js +401 -0
- package/dist/views/system/notice/index2.vue.js.map +1 -0
- package/dist/views/system/org/index.vue.d.ts +3 -0
- package/dist/views/system/org/index.vue.js +8 -0
- package/dist/views/system/org/index.vue.js.map +1 -0
- package/dist/views/system/org/index2.vue.js +397 -0
- package/dist/views/system/org/index2.vue.js.map +1 -0
- package/dist/views/system/position/index.vue.d.ts +3 -0
- package/dist/views/system/position/index.vue.js +5 -0
- package/dist/views/system/position/index.vue.js.map +1 -0
- package/dist/views/system/position/index2.vue.js +211 -0
- package/dist/views/system/position/index2.vue.js.map +1 -0
- package/dist/views/system/recycle/index.vue.d.ts +3 -0
- package/dist/views/system/recycle/index.vue.js +8 -0
- package/dist/views/system/recycle/index.vue.js.map +1 -0
- package/dist/views/system/recycle/index2.vue.js +121 -0
- package/dist/views/system/recycle/index2.vue.js.map +1 -0
- package/dist/views/system/role/components/GrantMenuTable.vue.d.ts +18 -0
- package/dist/views/system/role/components/GrantMenuTable.vue.js +8 -0
- package/dist/views/system/role/components/GrantMenuTable.vue.js.map +1 -0
- package/dist/views/system/role/components/GrantMenuTable2.vue.js +212 -0
- package/dist/views/system/role/components/GrantMenuTable2.vue.js.map +1 -0
- package/dist/views/system/role/components/grantMenuGroups.d.ts +31 -0
- package/dist/views/system/role/components/grantMenuGroups.js +76 -0
- package/dist/views/system/role/components/grantMenuGroups.js.map +1 -0
- package/dist/views/system/role/index.vue.d.ts +3 -0
- package/dist/views/system/role/index.vue.js +5 -0
- package/dist/views/system/role/index.vue.js.map +1 -0
- package/dist/views/system/role/index2.vue.js +476 -0
- package/dist/views/system/role/index2.vue.js.map +1 -0
- package/dist/views/system/session/index.vue.d.ts +3 -0
- package/dist/views/system/session/index.vue.js +5 -0
- package/dist/views/system/session/index.vue.js.map +1 -0
- package/dist/views/system/session/index2.vue.js +80 -0
- package/dist/views/system/session/index2.vue.js.map +1 -0
- package/dist/views/system/user/components/ResetPasswordModal.vue.d.ts +10 -0
- package/dist/views/system/user/components/ResetPasswordModal.vue.js +8 -0
- package/dist/views/system/user/components/ResetPasswordModal.vue.js.map +1 -0
- package/dist/views/system/user/components/ResetPasswordModal2.vue.js +111 -0
- package/dist/views/system/user/components/ResetPasswordModal2.vue.js.map +1 -0
- package/dist/views/system/user/components/UserFormModal.vue.d.ts +30 -0
- package/dist/views/system/user/components/UserFormModal.vue.js +8 -0
- package/dist/views/system/user/components/UserFormModal.vue.js.map +1 -0
- package/dist/views/system/user/components/UserFormModal2.vue.js +415 -0
- package/dist/views/system/user/components/UserFormModal2.vue.js.map +1 -0
- package/dist/views/system/user/index.vue.d.ts +3 -0
- package/dist/views/system/user/index.vue.js +8 -0
- package/dist/views/system/user/index.vue.js.map +1 -0
- package/dist/views/system/user/index2.vue.js +427 -0
- package/dist/views/system/user/index2.vue.js.map +1 -0
- package/package.json +99 -0
|
@@ -0,0 +1,672 @@
|
|
|
1
|
+
import { components } from './schema';
|
|
2
|
+
import { AddUserInput, AddUserOutput, ChunkInitOutput, ConfigInput, CronPreviewOutput, DashboardSummary, DataScopeType, DictItem, DictItemInput, DictTypeInput, DuplicateStrategy, FileUploadOutput, ImportCommitResult, ImportPreview, ImportRow, JobDashboard, JobHandlersOutput, JobInput, LoginOutput, ModuleInput, ModuleRow, MyModulesOutput, MySessionItem, NoticeMineItem, NoticePublishInput, OnlineSessionItem, OrgInput, PermissionRouteItem, PositionInput, RoleInput, ServerInfoOutput, SysConfig, SysDictItem, SysDictType, SysExceptionLog, SysFile, SysJob, SysJobLog, SysLoginLog, SysNotice, SysOpLog, SysOrg, SysPosition, SysRole, SysRoleDataScope, UpdateUserInput, UserDetail, UserItem, UserProfile } from '../types/api';
|
|
3
|
+
import { MenuInput, MenuNode, MenuTreeNode } from '../types/menu';
|
|
4
|
+
/** 业务错误(含后端 code / msgKey);视图 catch 后经 translateError 展示。 */
|
|
5
|
+
export declare class ApiError extends Error {
|
|
6
|
+
code: number;
|
|
7
|
+
msgKey?: string;
|
|
8
|
+
args?: Record<string, unknown>;
|
|
9
|
+
constructor(code: number, msgKey?: string, args?: Record<string, unknown>, message?: string);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 解包 openapi-fetch 结果,同时容忍两种形状:
|
|
13
|
+
* - 2xx:body 是 Result<T> 信封;code!==0 抛 ApiError,否则返回 data.data。
|
|
14
|
+
* - 非 2xx:enveloped(401/403/429)有 code → 抛带 code 的 ApiError;
|
|
15
|
+
* ProblemDetails(400 校验 / 500)无 code → 抛 status + title/detail。
|
|
16
|
+
*/
|
|
17
|
+
export declare function unwrap<T>(res: {
|
|
18
|
+
data?: unknown;
|
|
19
|
+
error?: unknown;
|
|
20
|
+
response: Response;
|
|
21
|
+
}): T;
|
|
22
|
+
/**
|
|
23
|
+
* 按「方法 + 站内路径」调一个运行期才知道 url 的接口(通知动作按钮这类场景),
|
|
24
|
+
* 走同一套中间件(令牌 / CSRF / 刷新重放 / 超时)与信封解包。url 必须是 /api/ 开头的站内路径,
|
|
25
|
+
* 调用方先用 lib/noticeActions 的 classifyNoticeAction 把关。
|
|
26
|
+
*/
|
|
27
|
+
export declare function callApi<T = unknown>(method: 'GET' | 'POST', url: string, body?: unknown): Promise<T>;
|
|
28
|
+
/**
|
|
29
|
+
* 分页三件套复用(每个列表端点都重复):
|
|
30
|
+
* - 前端 {page,pageSize} → 后端 record 属性 {Current,Size}(PascalCase;ASP.NET 绑定大小写不敏感但类型要 Pascal)。
|
|
31
|
+
* `...pageParams(p)` 展进各端点自己的 PascalCase 过滤条件,查询对象仍逐端点强类型校验(不走 any)。
|
|
32
|
+
* - 后端 PagedList<T>({current,size,total,items}) → SmartTable fetcher 契约的 {items,total}。
|
|
33
|
+
*
|
|
34
|
+
* 二者连同 unwrap/ApiError 一起从包入口导出,是<b>应用写自己 API 模块的接缝</b>:应用的 `src/api/<域>.ts`
|
|
35
|
+
* 从 smart-admin-web 导入它们,分页端点就与内核端点同一套映射。包内没有别的调用方也必须留着,别当未使用导出清掉。
|
|
36
|
+
*/
|
|
37
|
+
export declare const pageParams: (p: {
|
|
38
|
+
page: number;
|
|
39
|
+
pageSize: number;
|
|
40
|
+
}) => {
|
|
41
|
+
Current: number;
|
|
42
|
+
Size: number;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* 「编号 + 名称 + 关键字 + 排序」这套列表参数是后端 CRUD 模板的默认产出,二十来个端点逐字重复。
|
|
46
|
+
* 不带 Keyword 的端点用 `Omit<ListParams, 'keyword'>`,别把不存在的过滤条件写进签名骗调用方。
|
|
47
|
+
*/
|
|
48
|
+
export interface ListParams {
|
|
49
|
+
page: number;
|
|
50
|
+
pageSize: number;
|
|
51
|
+
keyword?: string;
|
|
52
|
+
number?: string;
|
|
53
|
+
name?: string;
|
|
54
|
+
sortField?: string;
|
|
55
|
+
sortOrder?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* ListParams → 后端 PascalCase 查询串。
|
|
59
|
+
* undefined 字段由 openapi-fetch 的 querySerializer 直接跳过,所以不带 keyword 的端点复用它也不会多发参数。
|
|
60
|
+
*/
|
|
61
|
+
export declare const listQuery: (p: ListParams) => {
|
|
62
|
+
Keyword: string | undefined;
|
|
63
|
+
Number: string | undefined;
|
|
64
|
+
Name: string | undefined;
|
|
65
|
+
SortField: string | undefined;
|
|
66
|
+
SortOrder: string | undefined;
|
|
67
|
+
Current: number;
|
|
68
|
+
Size: number;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* SmartTable 的 daterange 控件回传 `[开始, 结束]`(YYYY-MM-DD),后端要拆成两个参数。
|
|
72
|
+
* 结束日必须补 23:59:59,否则"筛到今天"会把今天已经发生的数据全部漏掉(纯日期串等价于当天 00:00:00)。
|
|
73
|
+
* 各域 API 模块的参数名不同(XxxStart/XxxEnd),所以这里只回中性的 start/end 由调用方改名。
|
|
74
|
+
*/
|
|
75
|
+
export declare const dayRange: (range?: [string, string] | null) => {
|
|
76
|
+
start: string | undefined;
|
|
77
|
+
end: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
export declare function toPage<T>(res: Parameters<typeof unwrap>[0]): {
|
|
80
|
+
items: T[];
|
|
81
|
+
total: number;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* 下载 xlsx 等二进制:parseAs blob + 手查 ok(坑 2:unwrap 假定 JSON 信封)。
|
|
85
|
+
* AdminExceptionFilter 对业务失败仍回 HTTP 200 + JSON 信封,故还要辨 content-type /
|
|
86
|
+
* 是否以 `{` 开头,避免把错误信封当 xlsx 触发下载。
|
|
87
|
+
*
|
|
88
|
+
* 与 unwrap/pageParams/toPage 一样是<b>应用接缝</b>:应用 `src/api/<域>.ts` 的导出端点从 smart-admin-web 导入它,
|
|
89
|
+
* 别在自己文件里再抄一份错误信封嗅探(抄漏一个分支就会把失败信封当 xlsx 存到用户磁盘上)。
|
|
90
|
+
*/
|
|
91
|
+
export declare function unwrapDownload(res: {
|
|
92
|
+
data?: unknown;
|
|
93
|
+
error?: unknown;
|
|
94
|
+
response: Response;
|
|
95
|
+
}): Promise<Blob>;
|
|
96
|
+
/**
|
|
97
|
+
* 归一 ImportPreview:int64/int 序列化噪音 → number,缺省数组补齐。
|
|
98
|
+
* 与 unwrap/unwrapDownload 一样是<b>应用接缝</b>:应用 `src/api/<域>.ts` 接自己的导入端点时从 smart-admin-web 导入它,
|
|
99
|
+
* 别各自抄一份归一逻辑 —— 漏一个 Number() 就会让 ImportWizard 的错误计数错位。
|
|
100
|
+
*/
|
|
101
|
+
export declare function normalizePreview(raw: ImportPreview): ImportPreview;
|
|
102
|
+
export declare function normalizeCommit(raw: ImportCommitResult): ImportCommitResult;
|
|
103
|
+
/**
|
|
104
|
+
* 回传行:schema 把 cells 标成 `Record<string, string>`(无 null),而运行时/编辑态允许空。
|
|
105
|
+
* 发送前把 null/undefined 收成 `''`,避免 openapi-fetch 类型卡死。
|
|
106
|
+
* 同为应用接缝,见 normalizePreview 上的说明。
|
|
107
|
+
*/
|
|
108
|
+
export declare function toWireRows(rows: ImportRow[]): {
|
|
109
|
+
index: number;
|
|
110
|
+
cells: Record<string, string>;
|
|
111
|
+
errors: {
|
|
112
|
+
columnKey: string;
|
|
113
|
+
code: number;
|
|
114
|
+
args: Record<string, never> | null | undefined;
|
|
115
|
+
}[];
|
|
116
|
+
}[];
|
|
117
|
+
export declare const authApi: {
|
|
118
|
+
login: (body: {
|
|
119
|
+
account: string;
|
|
120
|
+
password: string;
|
|
121
|
+
captchaId?: string;
|
|
122
|
+
captchaCode?: string;
|
|
123
|
+
}) => Promise<LoginOutput>;
|
|
124
|
+
logout: () => Promise<boolean>;
|
|
125
|
+
captcha: () => Promise<{
|
|
126
|
+
captchaId: string;
|
|
127
|
+
svg: string;
|
|
128
|
+
type?: string;
|
|
129
|
+
}>;
|
|
130
|
+
/** 短信二次验证:凭密码登录 40009 信令下发的挑战 Id + 短信码完成登录。 */
|
|
131
|
+
smsChallengeLogin: (body: {
|
|
132
|
+
challengeId: string;
|
|
133
|
+
code: string;
|
|
134
|
+
}) => Promise<LoginOutput>;
|
|
135
|
+
/** 短信二次验证:重发验证码(服务端冷却/日上限,过频抛 40008)。 */
|
|
136
|
+
smsChallengeResend: (body: {
|
|
137
|
+
challengeId: string;
|
|
138
|
+
}) => Promise<{
|
|
139
|
+
expiresSeconds: number;
|
|
140
|
+
resendSeconds: number;
|
|
141
|
+
}>;
|
|
142
|
+
/** TOTP 二次验证完成登录(40018 / SSO totpChallenge);走 openapi-fetch → CSRF/credentials 中间件生效。 */
|
|
143
|
+
totpChallengeLogin: (body: {
|
|
144
|
+
challengeId: string;
|
|
145
|
+
code: string;
|
|
146
|
+
}) => Promise<LoginOutput>;
|
|
147
|
+
/** 短时再认证(高危写操作 40024 后由中间件唤起;窗口约 5 分钟)。 */
|
|
148
|
+
reauth: (body: {
|
|
149
|
+
method?: string;
|
|
150
|
+
totpCode?: string;
|
|
151
|
+
password?: string;
|
|
152
|
+
}) => Promise<void>;
|
|
153
|
+
/** 免密登录发码(图形验证码启用时须携带;响应不区分手机号是否存在,防枚举)。 */
|
|
154
|
+
smsLoginSend: (body: {
|
|
155
|
+
phone: string;
|
|
156
|
+
captchaId?: string;
|
|
157
|
+
captchaCode?: string;
|
|
158
|
+
}) => Promise<{
|
|
159
|
+
expiresSeconds: number;
|
|
160
|
+
resendSeconds: number;
|
|
161
|
+
}>;
|
|
162
|
+
/** 免密登录:手机号 + 短信码换令牌。 */
|
|
163
|
+
smsLogin: (body: {
|
|
164
|
+
phone: string;
|
|
165
|
+
code: string;
|
|
166
|
+
}) => Promise<LoginOutput>;
|
|
167
|
+
};
|
|
168
|
+
/** TOTP 自助绑定 / 恢复 / 管理员清除(ADR 0006;无邀请路径)。 */
|
|
169
|
+
export declare const mfaApi: {
|
|
170
|
+
bindStart: (body: components["schemas"]["TotpBindStartInput"]) => Promise<{
|
|
171
|
+
bindChallengeId?: string;
|
|
172
|
+
otpauthUri?: string;
|
|
173
|
+
seed?: string;
|
|
174
|
+
expiresSeconds?: number | string;
|
|
175
|
+
}>;
|
|
176
|
+
bindComplete: (body: components["schemas"]["TotpBindCompleteInput"]) => Promise<{
|
|
177
|
+
recoveryCodes?: string[];
|
|
178
|
+
}>;
|
|
179
|
+
recovery: (body: components["schemas"]["TotpRecoveryInput"]) => Promise<void>;
|
|
180
|
+
clear: (body: components["schemas"]["TotpClearMfaInput"]) => Promise<void>;
|
|
181
|
+
};
|
|
182
|
+
/** 高敏权限自定义追加(内核默认只读;写操作须 reauth)。 */
|
|
183
|
+
export declare const highSensApi: {
|
|
184
|
+
list: () => Promise<{
|
|
185
|
+
defaults?: string[];
|
|
186
|
+
customs?: components["schemas"]["HighSensitivityPermissionItem"][];
|
|
187
|
+
}>;
|
|
188
|
+
add: (body: components["schemas"]["HighSensitivityPermissionInput"]) => Promise<{
|
|
189
|
+
id?: number | string;
|
|
190
|
+
permissionCode?: string;
|
|
191
|
+
remark?: null | string;
|
|
192
|
+
}>;
|
|
193
|
+
remove: (id: number) => Promise<void>;
|
|
194
|
+
};
|
|
195
|
+
export interface ExternalProvider {
|
|
196
|
+
code: string;
|
|
197
|
+
displayName: string;
|
|
198
|
+
icon?: string | null;
|
|
199
|
+
}
|
|
200
|
+
/** 管理端:全部已注册 provider(含已禁用)+ enabled / linkByAccount 两个运营开关。 */
|
|
201
|
+
export interface ExternalProviderAdmin extends ExternalProvider {
|
|
202
|
+
enabled: boolean;
|
|
203
|
+
linkByAccount: boolean;
|
|
204
|
+
}
|
|
205
|
+
export interface ExternalBinding {
|
|
206
|
+
provider: string;
|
|
207
|
+
displayName?: string | null;
|
|
208
|
+
boundAt: string;
|
|
209
|
+
}
|
|
210
|
+
export declare const externalAuthApi: {
|
|
211
|
+
/** 登录页可用的外部登录方式(启用的);空数组 = 不显 SSO 区。 */
|
|
212
|
+
providers: () => Promise<ExternalProvider[]>;
|
|
213
|
+
/** 管理端全量列表(含已禁用);系统配置「第三方登录」Tab。 */
|
|
214
|
+
providersAll: () => Promise<ExternalProviderAdmin[]>;
|
|
215
|
+
/** 发起某 provider 登录的 URL(顶层浏览器导航,不走 fetch —— 后端 302 跳 IdP)。 */
|
|
216
|
+
authorizeUrl: (code: string) => string;
|
|
217
|
+
/** 一次性票据换令牌(登录回调后);票据无效/过期/已用抛 40014。 */
|
|
218
|
+
exchange: (ticket: string) => Promise<LoginOutput>;
|
|
219
|
+
/** 认领未绑定 SSO 的 pending-link(账密登录后);票据无效 40014,已被他人绑 40017。 */
|
|
220
|
+
claimPendingLink: (pendingLink: string) => Promise<boolean>;
|
|
221
|
+
/** 我的外部账号绑定列表(个人中心)。 */
|
|
222
|
+
bindings: () => Promise<ExternalBinding[]>;
|
|
223
|
+
/** 发起绑定:返回授权 URL,前端跳转开始 OAuth 往返(回调把身份绑到当前用户)。 */
|
|
224
|
+
bindStart: (code: string) => Promise<{
|
|
225
|
+
authorizeUrl: string;
|
|
226
|
+
}>;
|
|
227
|
+
/** 解绑某 provider 的外部账号。 */
|
|
228
|
+
unbind: (code: string) => Promise<boolean>;
|
|
229
|
+
};
|
|
230
|
+
export declare const dashboardApi: {
|
|
231
|
+
/** 工作台首页统计([ActiveSession]:任何登录用户可取,无需权限码)。 */
|
|
232
|
+
summary: () => Promise<DashboardSummary>;
|
|
233
|
+
};
|
|
234
|
+
export declare const personalApi: {
|
|
235
|
+
modules: () => Promise<MyModulesOutput>;
|
|
236
|
+
menu: (moduleId: number) => Promise<MenuNode[]>;
|
|
237
|
+
setDefaultModule: (moduleId: number) => Promise<boolean>;
|
|
238
|
+
profile: () => Promise<UserProfile>;
|
|
239
|
+
/** 改自己的资料(全量替换语义:缺字段即置空,前端整表单提交)。 */
|
|
240
|
+
updateProfile: (body: {
|
|
241
|
+
name: string;
|
|
242
|
+
nickname?: string | null;
|
|
243
|
+
phone?: string | null;
|
|
244
|
+
email?: string | null;
|
|
245
|
+
gender?: string | null;
|
|
246
|
+
avatar?: string | null;
|
|
247
|
+
}) => Promise<boolean>;
|
|
248
|
+
/** 我的活跃会话列表(个人视角;isCurrent = 本次请求所用会话)。 */
|
|
249
|
+
sessions: () => Promise<MySessionItem[]>;
|
|
250
|
+
/** 下线自己的某个会话;他人的/不存在的一律 42024(不区分,防探测)。 */
|
|
251
|
+
kickSession: (sessionId: string) => Promise<boolean>;
|
|
252
|
+
updatePassword: (body: {
|
|
253
|
+
oldPassword: string;
|
|
254
|
+
newPassword: string;
|
|
255
|
+
}) => Promise<boolean>;
|
|
256
|
+
/** 当前用户权限码集合(= 规范化路由);喂给 authStore.permissionCodes 驱动 v-auth。超管返回空集。 */
|
|
257
|
+
permissions: () => Promise<string[]>;
|
|
258
|
+
};
|
|
259
|
+
export declare const userApi: {
|
|
260
|
+
/** 归一后端 PagedList<UserItem>({current,size,total,items}) → SmartTable fetcher 契约的 {items,total}。 */
|
|
261
|
+
page: (params: {
|
|
262
|
+
page: number;
|
|
263
|
+
pageSize: number;
|
|
264
|
+
account?: string;
|
|
265
|
+
name?: string;
|
|
266
|
+
orgId?: number;
|
|
267
|
+
roleId?: number;
|
|
268
|
+
sortField?: string;
|
|
269
|
+
sortOrder?: string;
|
|
270
|
+
}) => Promise<{
|
|
271
|
+
items: UserItem[];
|
|
272
|
+
total: number;
|
|
273
|
+
}>;
|
|
274
|
+
/** 用户详情(含 roleIds,编辑回显 + 提交时原样带回避免清空角色)。 */
|
|
275
|
+
detail: (id: number) => Promise<UserDetail>;
|
|
276
|
+
/** 新增用户;返回新 Id + 实际生效的初始口令(留空 password 时后端随机生成,不接住就没人知道这个号的密码)。 */
|
|
277
|
+
add: (body: AddUserInput) => Promise<AddUserOutput>;
|
|
278
|
+
update: (id: number, body: UpdateUserInput) => Promise<boolean>;
|
|
279
|
+
remove: (id: number) => Promise<boolean>;
|
|
280
|
+
/** 批量软删除;集合含超管后端整体拒绝(SuperAdminProtected)。 */
|
|
281
|
+
batchRemove: (ids: number[]) => Promise<boolean>;
|
|
282
|
+
/** 重置密码;返回实际生效的初始密码(newPassword 留空 = 后端默认初始密码)。 */
|
|
283
|
+
resetPassword: (id: number, newPassword?: string | null) => Promise<string>;
|
|
284
|
+
/** 专用启停端点(非全量 update)。 */
|
|
285
|
+
setEnabled: (id: number, enabled: boolean) => Promise<boolean>;
|
|
286
|
+
/** 下载用户导入模板(xlsx)。[ActiveSession],无需独立权限码。 */
|
|
287
|
+
importTemplate: () => Promise<Blob>;
|
|
288
|
+
/**
|
|
289
|
+
* 上传 xlsx 预览校验。multipart:`file` + 可选 `mapping`(JSON 字符串:表头→列 Key)。
|
|
290
|
+
* bodySerializer 建 FormData(坑 3:与 fileApi.upload 同型)。
|
|
291
|
+
*/
|
|
292
|
+
importPreview: (file: File, mapping?: Record<string, string>) => Promise<ImportPreview>;
|
|
293
|
+
/** 对前端改过的行重新校验(不碰文件)。 */
|
|
294
|
+
importValidate: (rows: ImportRow[]) => Promise<ImportPreview>;
|
|
295
|
+
/** 下载错误报告 xlsx(原列 +「错误原因」列)。 */
|
|
296
|
+
importErrorReport: (rows: ImportRow[]) => Promise<Blob>;
|
|
297
|
+
/** 按策略提交导入(部分提交:有错行跳过;服务端重校验,不信任前端 Errors)。 */
|
|
298
|
+
importCommit: (rows: ImportRow[], strategy?: DuplicateStrategy) => Promise<ImportCommitResult>;
|
|
299
|
+
/**
|
|
300
|
+
* 导出用户 xlsx。筛选条件与列表同源(Account/Name/OrgId/RoleId…)+ `columns` 逗号分隔列 Key。
|
|
301
|
+
* 返回 blob,不进信封。
|
|
302
|
+
*/
|
|
303
|
+
export: (params: {
|
|
304
|
+
account?: string;
|
|
305
|
+
name?: string;
|
|
306
|
+
orgId?: number;
|
|
307
|
+
roleId?: number;
|
|
308
|
+
enabled?: boolean;
|
|
309
|
+
sortField?: string;
|
|
310
|
+
sortOrder?: string;
|
|
311
|
+
/** 逗号分隔列 Key;缺省 = 档案 DefaultSelected */
|
|
312
|
+
columns?: string;
|
|
313
|
+
}) => Promise<Blob>;
|
|
314
|
+
};
|
|
315
|
+
export declare const orgApi: {
|
|
316
|
+
/** 全部机构(平铺,按 Sort、Id 排序)。前端 buildTree 拼树。下拉 / 树表复用。 */
|
|
317
|
+
list: () => Promise<SysOrg[]>;
|
|
318
|
+
add: (body: OrgInput) => Promise<number>;
|
|
319
|
+
update: (id: number, body: OrgInput) => Promise<boolean>;
|
|
320
|
+
remove: (id: number) => Promise<boolean>;
|
|
321
|
+
/** 复制机构子树(整支克隆挂到源节点同级),返回新根 Id。 */
|
|
322
|
+
copy: (id: number, body?: {
|
|
323
|
+
name?: string;
|
|
324
|
+
}) => Promise<number>;
|
|
325
|
+
};
|
|
326
|
+
export declare const positionApi: {
|
|
327
|
+
/** 职位分页;搜索键 name → PascalCase Name;sortField/sortOrder → 后端安全排序。下拉(拉大页)/ SmartTable 复用。 */
|
|
328
|
+
page: (params: {
|
|
329
|
+
page: number;
|
|
330
|
+
pageSize: number;
|
|
331
|
+
name?: string;
|
|
332
|
+
sortField?: string;
|
|
333
|
+
sortOrder?: string;
|
|
334
|
+
}) => Promise<{
|
|
335
|
+
items: SysPosition[];
|
|
336
|
+
total: number;
|
|
337
|
+
}>;
|
|
338
|
+
add: (body: PositionInput) => Promise<number>;
|
|
339
|
+
update: (id: number, body: PositionInput) => Promise<boolean>;
|
|
340
|
+
remove: (id: number) => Promise<boolean>;
|
|
341
|
+
};
|
|
342
|
+
export declare const roleApi: {
|
|
343
|
+
/** 角色分页;搜索键 name → PascalCase Name。列表用 + 用户/授权页拉一大页当下拉源。 */
|
|
344
|
+
page: (params: {
|
|
345
|
+
page: number;
|
|
346
|
+
pageSize: number;
|
|
347
|
+
name?: string;
|
|
348
|
+
}) => Promise<{
|
|
349
|
+
items: SysRole[];
|
|
350
|
+
total: number;
|
|
351
|
+
}>;
|
|
352
|
+
add: (body: RoleInput) => Promise<number>;
|
|
353
|
+
update: (id: number, body: RoleInput) => Promise<boolean>;
|
|
354
|
+
remove: (id: number) => Promise<boolean>;
|
|
355
|
+
/** 批量删除角色(各自级联清关联)。 */
|
|
356
|
+
batchRemove: (ids: number[]) => Promise<boolean>;
|
|
357
|
+
/** 某角色当前授予的菜单 Id 集合(授权抽屉回显)。 */
|
|
358
|
+
getMenus: (id: number) => Promise<number[]>;
|
|
359
|
+
/** 全量设置角色授予的菜单(空数组 = 收回全部)。 */
|
|
360
|
+
setMenus: (roleId: number, menuIds: number[]) => Promise<boolean>;
|
|
361
|
+
/** 某角色的数据范围配置(未配置返回 null)。 */
|
|
362
|
+
getDataScope: (id: number) => Promise<SysRoleDataScope | null>;
|
|
363
|
+
/** 设置角色数据范围;customOrgIds 仅 scopeType=Custom(5)时有意义。 */
|
|
364
|
+
setDataScope: (roleId: number, scopeType: DataScopeType, customOrgIds?: number[]) => Promise<boolean>;
|
|
365
|
+
/** 某角色当前关联的用户 Id 集合(授权用户抽屉回显)。 */
|
|
366
|
+
getUsers: (id: number) => Promise<number[]>;
|
|
367
|
+
/** 全量设置角色关联的用户(空数组 = 收回全部)。 */
|
|
368
|
+
setUsers: (roleId: number, userIds: number[]) => Promise<boolean>;
|
|
369
|
+
};
|
|
370
|
+
export declare const moduleApi: {
|
|
371
|
+
list: () => Promise<ModuleRow[]>;
|
|
372
|
+
add: (body: ModuleInput) => Promise<number>;
|
|
373
|
+
update: (id: number, body: ModuleInput) => Promise<boolean>;
|
|
374
|
+
remove: (id: number) => Promise<boolean>;
|
|
375
|
+
};
|
|
376
|
+
export declare const configApi: {
|
|
377
|
+
/** 归一后端 PagedList<SysConfig> → SmartTable {items,total};搜索键 configKey/name/groupCode → PascalCase 查询参。 */
|
|
378
|
+
page: (params: {
|
|
379
|
+
page: number;
|
|
380
|
+
pageSize: number;
|
|
381
|
+
configKey?: string;
|
|
382
|
+
name?: string;
|
|
383
|
+
groupCode?: string;
|
|
384
|
+
excludedGroupCodes?: string[];
|
|
385
|
+
}) => Promise<{
|
|
386
|
+
items: SysConfig[];
|
|
387
|
+
total: number;
|
|
388
|
+
}>;
|
|
389
|
+
add: (body: ConfigInput) => Promise<number>;
|
|
390
|
+
update: (id: number, body: ConfigInput) => Promise<boolean>;
|
|
391
|
+
remove: (id: number) => Promise<boolean>;
|
|
392
|
+
/**
|
|
393
|
+
* 取某分组下全部配置(完整行,含 id/key/value),供分类配置中心结构化表单回填。
|
|
394
|
+
* 逐页取全:结构化表单按键回写,漏取的字段会拿默认值把库里的真实值覆盖掉。
|
|
395
|
+
*/
|
|
396
|
+
listByGroup: (group: string) => Promise<SysConfig[]>;
|
|
397
|
+
/** 批量按键回写配置值(结构化表单保存);仅更新已存在键,未知键后端忽略。 */
|
|
398
|
+
saveBatch: (items: {
|
|
399
|
+
configKey: string;
|
|
400
|
+
configValue?: string | null;
|
|
401
|
+
}[]) => Promise<boolean>;
|
|
402
|
+
/** 站点信息(匿名可读:站点标题/副标题/版权等品牌展示白名单)。 */
|
|
403
|
+
siteInfo: () => Promise<{
|
|
404
|
+
title?: string | null;
|
|
405
|
+
subtitle?: string | null;
|
|
406
|
+
copyright?: string | null;
|
|
407
|
+
copyrightUrl?: string | null;
|
|
408
|
+
logo?: string | null;
|
|
409
|
+
captchaEnabled?: boolean;
|
|
410
|
+
smsLoginEnabled?: boolean;
|
|
411
|
+
}>;
|
|
412
|
+
/** 当前生效密码策略(任何登录用户可读);改密页据此展示真实规则清单,免配置读权限。 */
|
|
413
|
+
passwordPolicy: () => Promise<{
|
|
414
|
+
minLength: number;
|
|
415
|
+
requireUpper: boolean;
|
|
416
|
+
requireLower: boolean;
|
|
417
|
+
requireDigit: boolean;
|
|
418
|
+
requireSpecial: boolean;
|
|
419
|
+
}>;
|
|
420
|
+
};
|
|
421
|
+
export declare const logApi: {
|
|
422
|
+
/** 登录日志分页;账号模糊 + 成败 + 时间范围。 */
|
|
423
|
+
loginPage: (params: {
|
|
424
|
+
page: number;
|
|
425
|
+
pageSize: number;
|
|
426
|
+
account?: string;
|
|
427
|
+
success?: boolean;
|
|
428
|
+
createTime?: [string, string] | null;
|
|
429
|
+
}) => Promise<{
|
|
430
|
+
items: SysLoginLog[];
|
|
431
|
+
total: number;
|
|
432
|
+
}>;
|
|
433
|
+
/** 清空登录日志(硬删,不可恢复)。 */
|
|
434
|
+
loginClear: () => Promise<boolean>;
|
|
435
|
+
/** 操作日志分页;操作名模糊 + 成败 + 操作人(精确)+ 接口路径(模糊)+ 时间范围——审计要能答"谁在什么时候干了什么"。 */
|
|
436
|
+
opPage: (params: {
|
|
437
|
+
page: number;
|
|
438
|
+
pageSize: number;
|
|
439
|
+
title?: string;
|
|
440
|
+
success?: boolean;
|
|
441
|
+
operatorId?: number;
|
|
442
|
+
path?: string;
|
|
443
|
+
createTime?: [string, string] | null;
|
|
444
|
+
}) => Promise<{
|
|
445
|
+
items: SysOpLog[];
|
|
446
|
+
total: number;
|
|
447
|
+
}>;
|
|
448
|
+
/** 清空操作日志(硬删,不可恢复)。 */
|
|
449
|
+
opClear: () => Promise<boolean>;
|
|
450
|
+
/**
|
|
451
|
+
* 导出操作日志 xlsx。筛选与 opPage 同源 + `columns` 逗号分隔列 Key。
|
|
452
|
+
* 返回 blob(坑 2);不进信封。
|
|
453
|
+
*/
|
|
454
|
+
opExport: (params: {
|
|
455
|
+
title?: string;
|
|
456
|
+
success?: boolean;
|
|
457
|
+
operatorId?: number;
|
|
458
|
+
path?: string;
|
|
459
|
+
createTime?: [string, string] | null;
|
|
460
|
+
columns?: string;
|
|
461
|
+
}) => Promise<Blob>;
|
|
462
|
+
/** 异常日志分页;接口路径模糊 + 异常类型模糊 + 时间范围。 */
|
|
463
|
+
exceptionPage: (params: {
|
|
464
|
+
page: number;
|
|
465
|
+
pageSize: number;
|
|
466
|
+
path?: string;
|
|
467
|
+
exceptionType?: string;
|
|
468
|
+
createTime?: [string, string] | null;
|
|
469
|
+
}) => Promise<{
|
|
470
|
+
items: SysExceptionLog[];
|
|
471
|
+
total: number;
|
|
472
|
+
}>;
|
|
473
|
+
/** 清空异常日志(硬删,不可恢复)。 */
|
|
474
|
+
exceptionClear: () => Promise<boolean>;
|
|
475
|
+
};
|
|
476
|
+
export declare const monitorApi: {
|
|
477
|
+
/** 服务器运行快照(CPU/内存/磁盘/运行时;后端含一次约 500ms 的 CPU 采样)。 */
|
|
478
|
+
server: () => Promise<ServerInfoOutput>;
|
|
479
|
+
};
|
|
480
|
+
export declare const cacheApi: {
|
|
481
|
+
/** 清全部用户的权限/数据范围缓存(返回被清用户数)。 */
|
|
482
|
+
flushAuth: () => Promise<number>;
|
|
483
|
+
/** 清全部字典项缓存(返回被清字典类型数)。 */
|
|
484
|
+
flushDict: () => Promise<number>;
|
|
485
|
+
/** 清全部系统配置缓存(返回被清配置项数)。 */
|
|
486
|
+
flushConfig: () => Promise<number>;
|
|
487
|
+
/** 递增门户代际,令所有用户的门户菜单/模块缓存整体失效(返回新代际值)。 */
|
|
488
|
+
rebuildPortal: () => Promise<number>;
|
|
489
|
+
};
|
|
490
|
+
export declare const dictApi: {
|
|
491
|
+
/** 按类型编码取字典项(服务端已按 sort 排序)。归一 int64 序列化噪音 → DictItem 投影,供 stores/dict 缓存消费。 */
|
|
492
|
+
items: (typeCode: string) => Promise<DictItem[]>;
|
|
493
|
+
};
|
|
494
|
+
export declare const dictAdminApi: {
|
|
495
|
+
/** 字典类型分页;搜索键 code/name → PascalCase Code/Name 查询参。 */
|
|
496
|
+
typePage: (params: {
|
|
497
|
+
page: number;
|
|
498
|
+
pageSize: number;
|
|
499
|
+
code?: string;
|
|
500
|
+
name?: string;
|
|
501
|
+
}) => Promise<{
|
|
502
|
+
items: SysDictType[];
|
|
503
|
+
total: number;
|
|
504
|
+
}>;
|
|
505
|
+
typeAdd: (body: DictTypeInput) => Promise<number>;
|
|
506
|
+
typeUpdate: (id: number, body: DictTypeInput) => Promise<boolean>;
|
|
507
|
+
typeRemove: (id: number) => Promise<boolean>;
|
|
508
|
+
/** 批量删除字典类型(各自级联删项)。 */
|
|
509
|
+
typeBatchRemove: (ids: number[]) => Promise<boolean>;
|
|
510
|
+
/** 某类型下的字典项(管理端:含停用、带 id;非下拉缓存源)。ponytail: 拉一页 200(Api:MaxPageSize 上限),字典项数量小,真超再分页。 */
|
|
511
|
+
items: (typeCode: string) => Promise<SysDictItem[]>;
|
|
512
|
+
itemAdd: (body: DictItemInput) => Promise<number>;
|
|
513
|
+
itemUpdate: (id: number, body: DictItemInput) => Promise<boolean>;
|
|
514
|
+
itemRemove: (id: number) => Promise<boolean>;
|
|
515
|
+
/** 批量删除字典项。 */
|
|
516
|
+
itemBatchRemove: (ids: number[]) => Promise<boolean>;
|
|
517
|
+
};
|
|
518
|
+
export declare const fileApi: {
|
|
519
|
+
/** 文件分页;搜索键 originalName → 后端 FileName 模糊过滤。 */
|
|
520
|
+
page: (params: {
|
|
521
|
+
page: number;
|
|
522
|
+
pageSize: number;
|
|
523
|
+
originalName?: string;
|
|
524
|
+
}) => Promise<{
|
|
525
|
+
items: SysFile[];
|
|
526
|
+
total: number;
|
|
527
|
+
}>;
|
|
528
|
+
/** 上传单个文件:bodySerializer 建 FormData(字段名 file),openapi-fetch 对 FormData 不注入 json header,浏览器自动补 boundary(client.ts 无需改)。 */
|
|
529
|
+
upload: (file: File) => Promise<FileUploadOutput>;
|
|
530
|
+
/** 下载:parseAs blob 取原始字节(非信封,不套 unwrap);Bearer 由 client 拦截器自动带。 */
|
|
531
|
+
download: (id: number) => Promise<Blob>;
|
|
532
|
+
remove: (id: number) => Promise<boolean>;
|
|
533
|
+
/** 批量软删除文件记录(物理文件保留)。 */
|
|
534
|
+
batchRemove: (ids: number[]) => Promise<boolean>;
|
|
535
|
+
/** 分片初始化:秒传探测 + 已收分片(断点续传)。 */
|
|
536
|
+
chunkInit: (body: {
|
|
537
|
+
fileHash: string;
|
|
538
|
+
fileName: string;
|
|
539
|
+
totalSize: number;
|
|
540
|
+
chunkCount: number;
|
|
541
|
+
}) => Promise<ChunkInitOutput>;
|
|
542
|
+
/** 上传单个分片(multipart:uploadId + index + chunk),同 upload 用 bodySerializer 建 FormData。 */
|
|
543
|
+
chunkUpload: (uploadId: string, index: number, chunk: Blob) => Promise<boolean>;
|
|
544
|
+
/** 完成:触发服务端合并 + 哈希校验 + 三道关 + 落库。 */
|
|
545
|
+
chunkComplete: (body: {
|
|
546
|
+
uploadId: string;
|
|
547
|
+
fileHash: string;
|
|
548
|
+
fileName: string;
|
|
549
|
+
chunkCount: number;
|
|
550
|
+
}) => Promise<FileUploadOutput>;
|
|
551
|
+
};
|
|
552
|
+
export declare const sessionApi: {
|
|
553
|
+
/** 在线会话分页(只读)。后端仅支持按 UserId 过滤,这里不带业务搜索。 */
|
|
554
|
+
online: (params: {
|
|
555
|
+
page: number;
|
|
556
|
+
pageSize: number;
|
|
557
|
+
}) => Promise<{
|
|
558
|
+
items: OnlineSessionItem[];
|
|
559
|
+
total: number;
|
|
560
|
+
}>;
|
|
561
|
+
/** 强制下线:按 sessionId 踢会话。 */
|
|
562
|
+
kick: (sessionId: string) => Promise<boolean>;
|
|
563
|
+
};
|
|
564
|
+
export declare const noticeApi: {
|
|
565
|
+
/** 管理端分页(全量);搜索键 title/type → PascalCase 查询参。 */
|
|
566
|
+
page: (params: {
|
|
567
|
+
page: number;
|
|
568
|
+
pageSize: number;
|
|
569
|
+
title?: string;
|
|
570
|
+
type?: number;
|
|
571
|
+
}) => Promise<{
|
|
572
|
+
items: SysNotice[];
|
|
573
|
+
total: number;
|
|
574
|
+
}>;
|
|
575
|
+
publish: (body: NoticePublishInput) => Promise<number>;
|
|
576
|
+
remove: (id: number) => Promise<boolean>;
|
|
577
|
+
/** 我的通知分页(含已读标记);onlyUnread 供"未读"页签用。 */
|
|
578
|
+
mine: (params: {
|
|
579
|
+
page: number;
|
|
580
|
+
pageSize: number;
|
|
581
|
+
onlyUnread?: boolean;
|
|
582
|
+
}) => Promise<{
|
|
583
|
+
items: NoticeMineItem[];
|
|
584
|
+
total: number;
|
|
585
|
+
}>;
|
|
586
|
+
/** 当前用户未读通知数(顶栏角标轮询)。 */
|
|
587
|
+
unreadCount: () => Promise<number>;
|
|
588
|
+
markRead: (id: number) => Promise<boolean>;
|
|
589
|
+
markAllRead: () => Promise<boolean>;
|
|
590
|
+
};
|
|
591
|
+
export declare const menuApi: {
|
|
592
|
+
tree: () => Promise<MenuTreeNode[]>;
|
|
593
|
+
/** 可授权路由清单(后端 EndpointDataSource 实时算出,含消费方自建控制器);喂菜单表单「权限码」下拉,免手敲。 */
|
|
594
|
+
routes: () => Promise<PermissionRouteItem[]>;
|
|
595
|
+
add: (body: MenuInput) => Promise<number>;
|
|
596
|
+
update: (id: number, body: MenuInput) => Promise<boolean>;
|
|
597
|
+
remove: (id: number) => Promise<boolean>;
|
|
598
|
+
};
|
|
599
|
+
export declare const jobApi: {
|
|
600
|
+
/** 任务分页;搜索键 name/status/handlerKind → PascalCase 查询参。行含全列,编辑表单直接用行数据。 */
|
|
601
|
+
page: (params: {
|
|
602
|
+
page: number;
|
|
603
|
+
pageSize: number;
|
|
604
|
+
name?: string;
|
|
605
|
+
status?: number;
|
|
606
|
+
handlerKind?: number;
|
|
607
|
+
sortField?: string;
|
|
608
|
+
sortOrder?: string;
|
|
609
|
+
}) => Promise<{
|
|
610
|
+
items: SysJob[];
|
|
611
|
+
total: number;
|
|
612
|
+
}>;
|
|
613
|
+
add: (body: JobInput) => Promise<number>;
|
|
614
|
+
update: (id: number, body: JobInput) => Promise<boolean>;
|
|
615
|
+
remove: (id: number) => Promise<boolean>;
|
|
616
|
+
/** 批量删除(命中内置任务后端整批拒绝 47014)。 */
|
|
617
|
+
batchRemove: (ids: number[]) => Promise<boolean>;
|
|
618
|
+
/** 专用启停端点:true=恢复调度并重算下次执行时刻(顺带清连败计数),false=暂停。 */
|
|
619
|
+
setEnabled: (id: number, enabled: boolean) => Promise<boolean>;
|
|
620
|
+
/** 执行一次(收到请求的副本本机执行,不经选主、不影响调度节奏)。 */
|
|
621
|
+
run: (id: number) => Promise<boolean>;
|
|
622
|
+
/** cron 预览([ActiveSession] 任何登录用户可用;POST 因 cron 含 `? #` 走 query 有转义坑)。 */
|
|
623
|
+
previewCron: (body: {
|
|
624
|
+
cron: string;
|
|
625
|
+
count?: number;
|
|
626
|
+
from?: string | null;
|
|
627
|
+
}) => Promise<CronPreviewOutput>;
|
|
628
|
+
/** 已注册的编译处理器清单(表单下拉数据源,免手打 HandlerName)。 */
|
|
629
|
+
handlers: () => Promise<JobHandlersOutput>;
|
|
630
|
+
/**
|
|
631
|
+
* 执行记录分页。startRange 是 SmartTable daterange 的 [开始, 结束] 日期串,
|
|
632
|
+
* 拆成后端 StartFrom/StartTo,结束日补 23:59:59(同 splitRange 的理由,但参数名不同,不复用)。
|
|
633
|
+
*/
|
|
634
|
+
logPage: (params: {
|
|
635
|
+
page: number;
|
|
636
|
+
pageSize: number;
|
|
637
|
+
jobId?: number;
|
|
638
|
+
runStatus?: number;
|
|
639
|
+
startRange?: [string, string] | null;
|
|
640
|
+
fireInstanceId?: number;
|
|
641
|
+
}) => Promise<{
|
|
642
|
+
items: SysJobLog[];
|
|
643
|
+
total: number;
|
|
644
|
+
}>;
|
|
645
|
+
/** 终止一次执行(跨节点写终止旗标,目标节点最迟 KillPollSeconds 后停)。 */
|
|
646
|
+
kill: (logId: number) => Promise<boolean>;
|
|
647
|
+
/** 清空执行记录(硬删;运行中的一律保留),返回删除行数。 */
|
|
648
|
+
logClear: (body: {
|
|
649
|
+
beforeDays?: number | null;
|
|
650
|
+
jobId?: number | null;
|
|
651
|
+
}) => Promise<number>;
|
|
652
|
+
/** 监控仪表盘(今日成败/在飞/趋势/即将执行/集群节点)。 */
|
|
653
|
+
dashboard: () => Promise<JobDashboard>;
|
|
654
|
+
};
|
|
655
|
+
export interface RecycleBinItem {
|
|
656
|
+
id: number;
|
|
657
|
+
name: string;
|
|
658
|
+
code: string | null;
|
|
659
|
+
deletedAt: string | null;
|
|
660
|
+
deletedBy: number | null;
|
|
661
|
+
}
|
|
662
|
+
export declare const recycleApi: {
|
|
663
|
+
page: (type: string) => (params: {
|
|
664
|
+
page: number;
|
|
665
|
+
pageSize: number;
|
|
666
|
+
}) => Promise<{
|
|
667
|
+
items: RecycleBinItem[];
|
|
668
|
+
total: number;
|
|
669
|
+
}>;
|
|
670
|
+
restore: (type: string, id: number) => Promise<boolean>;
|
|
671
|
+
purge: (type: string, id: number) => Promise<boolean>;
|
|
672
|
+
};
|