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,638 @@
|
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
|
+
var P = (e, t, i) => t in e ? b(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
|
+
var y = (e, t, i) => P(e, typeof t != "symbol" ? t + "" : t, i);
|
|
4
|
+
import { client as s, LONG_TIMEOUT_MS as l } from "./client.js";
|
|
5
|
+
import { runtime as f } from "../lib/runtime.js";
|
|
6
|
+
class u extends Error {
|
|
7
|
+
constructor(i, o, n, r) {
|
|
8
|
+
super(r ?? o ?? `Error ${i}`);
|
|
9
|
+
y(this, "code");
|
|
10
|
+
y(this, "msgKey");
|
|
11
|
+
y(this, "args");
|
|
12
|
+
this.name = "ApiError", this.code = i, this.msgKey = o, this.args = n;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function a(e) {
|
|
16
|
+
const { data: t, error: i, response: o } = e;
|
|
17
|
+
if (i != null) {
|
|
18
|
+
const r = i;
|
|
19
|
+
if (typeof r.code == "number")
|
|
20
|
+
throw new u(r.code, r.msgKey, r.args, r.message);
|
|
21
|
+
const p = i;
|
|
22
|
+
throw new u(
|
|
23
|
+
o.status,
|
|
24
|
+
void 0,
|
|
25
|
+
void 0,
|
|
26
|
+
p.title ?? p.detail ?? o.statusText
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
const n = t ?? {};
|
|
30
|
+
if (typeof n.code == "number" && n.code !== 0)
|
|
31
|
+
throw new u(n.code, n.msgKey, n.args, n.message);
|
|
32
|
+
return n.data;
|
|
33
|
+
}
|
|
34
|
+
function x(e, t, i) {
|
|
35
|
+
const o = s.request;
|
|
36
|
+
return o(e, t, i === void 0 ? void 0 : { body: i }).then((n) => a(n));
|
|
37
|
+
}
|
|
38
|
+
const d = (e) => ({
|
|
39
|
+
Current: e.page,
|
|
40
|
+
Size: e.pageSize
|
|
41
|
+
}), U = (e) => ({
|
|
42
|
+
...d(e),
|
|
43
|
+
Keyword: e.keyword,
|
|
44
|
+
Number: e.number,
|
|
45
|
+
Name: e.name,
|
|
46
|
+
SortField: e.sortField,
|
|
47
|
+
SortOrder: e.sortOrder
|
|
48
|
+
}), S = (e) => !e || e.length !== 2 ? { start: void 0, end: void 0 } : { start: e[0] || void 0, end: e[1] ? `${e[1]} 23:59:59` : void 0 };
|
|
49
|
+
function h(e) {
|
|
50
|
+
const t = a(e);
|
|
51
|
+
return { items: t.items, total: t.total };
|
|
52
|
+
}
|
|
53
|
+
async function v(e) {
|
|
54
|
+
const { data: t, error: i, response: o } = e;
|
|
55
|
+
if (!o.ok) {
|
|
56
|
+
const p = i ?? {};
|
|
57
|
+
throw typeof p.code == "number" ? new u(p.code, p.msgKey, p.args, p.message) : new u(o.status, void 0, void 0, o.statusText);
|
|
58
|
+
}
|
|
59
|
+
const n = t, r = o.headers.get("content-type") ?? "";
|
|
60
|
+
if (r.includes("spreadsheet") || r.includes("octet-stream")) return n;
|
|
61
|
+
if (r.includes("json") || r.includes("text/plain")) {
|
|
62
|
+
const p = JSON.parse(await n.text());
|
|
63
|
+
if (typeof p.code == "number" && p.code !== 0)
|
|
64
|
+
throw new u(p.code, p.msgKey, p.args, p.message);
|
|
65
|
+
} else if (new Uint8Array(await n.slice(0, 1).arrayBuffer())[0] === 123) {
|
|
66
|
+
const c = JSON.parse(await n.text());
|
|
67
|
+
if (typeof c.code == "number" && c.code !== 0)
|
|
68
|
+
throw new u(c.code, c.msgKey, c.args, c.message);
|
|
69
|
+
}
|
|
70
|
+
return n;
|
|
71
|
+
}
|
|
72
|
+
function g(e) {
|
|
73
|
+
return {
|
|
74
|
+
headers: e.headers ?? [],
|
|
75
|
+
mapping: e.mapping ?? {},
|
|
76
|
+
columns: (e.columns ?? []).map((t) => ({
|
|
77
|
+
key: t.key,
|
|
78
|
+
title: t.title,
|
|
79
|
+
required: t.required,
|
|
80
|
+
dictTypeCode: t.dictTypeCode,
|
|
81
|
+
hint: t.hint,
|
|
82
|
+
width: t.width != null ? Number(t.width) : void 0
|
|
83
|
+
})),
|
|
84
|
+
rows: (e.rows ?? []).map(E),
|
|
85
|
+
total: Number(e.total ?? 0),
|
|
86
|
+
errorRows: Number(e.errorRows ?? 0),
|
|
87
|
+
columnErrors: (e.columnErrors ?? []).map((t) => ({
|
|
88
|
+
columnKey: t.columnKey,
|
|
89
|
+
code: Number(t.code),
|
|
90
|
+
args: t.args
|
|
91
|
+
}))
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function E(e) {
|
|
95
|
+
return {
|
|
96
|
+
index: Number(e.index ?? 0),
|
|
97
|
+
cells: { ...e.cells },
|
|
98
|
+
errors: (e.errors ?? []).map((t) => ({
|
|
99
|
+
columnKey: t.columnKey,
|
|
100
|
+
code: Number(t.code),
|
|
101
|
+
args: t.args
|
|
102
|
+
}))
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function O(e) {
|
|
106
|
+
return {
|
|
107
|
+
total: Number(e.total ?? 0),
|
|
108
|
+
inserted: Number(e.inserted ?? 0),
|
|
109
|
+
updated: Number(e.updated ?? 0),
|
|
110
|
+
skipped: Number(e.skipped ?? 0),
|
|
111
|
+
failed: Number(e.failed ?? 0),
|
|
112
|
+
failures: (e.failures ?? []).map(E)
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function T(e) {
|
|
116
|
+
return e.map((t) => {
|
|
117
|
+
const i = {};
|
|
118
|
+
for (const [o, n] of Object.entries(t.cells ?? {})) i[o] = n ?? "";
|
|
119
|
+
return {
|
|
120
|
+
index: t.index,
|
|
121
|
+
cells: i,
|
|
122
|
+
errors: t.errors.map((o) => ({
|
|
123
|
+
columnKey: o.columnKey,
|
|
124
|
+
code: o.code,
|
|
125
|
+
args: o.args
|
|
126
|
+
}))
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
const C = {
|
|
131
|
+
login: (e) => s.POST("/api/v1/auth/login", { body: e }).then((t) => a(t)),
|
|
132
|
+
logout: () => s.POST("/api/v1/auth/logout", {}).then((e) => a(e)),
|
|
133
|
+
captcha: () => s.GET("/api/v1/auth/captcha", {}).then((e) => a(e)),
|
|
134
|
+
/** 短信二次验证:凭密码登录 40009 信令下发的挑战 Id + 短信码完成登录。 */
|
|
135
|
+
smsChallengeLogin: (e) => s.POST("/api/v1/auth/login/sms", { body: e }).then((t) => a(t)),
|
|
136
|
+
/** 短信二次验证:重发验证码(服务端冷却/日上限,过频抛 40008)。 */
|
|
137
|
+
smsChallengeResend: (e) => s.POST("/api/v1/auth/login/sms/resend", { body: e }).then((t) => a(t)),
|
|
138
|
+
/** TOTP 二次验证完成登录(40018 / SSO totpChallenge);走 openapi-fetch → CSRF/credentials 中间件生效。 */
|
|
139
|
+
totpChallengeLogin: (e) => s.POST("/api/v1/auth/login/totp", { body: e }).then((t) => a(t)),
|
|
140
|
+
/** 短时再认证(高危写操作 40024 后由中间件唤起;窗口约 5 分钟)。 */
|
|
141
|
+
reauth: (e) => s.POST("/api/v1/auth/reauth", { body: e }).then((t) => a(t)),
|
|
142
|
+
/** 免密登录发码(图形验证码启用时须携带;响应不区分手机号是否存在,防枚举)。 */
|
|
143
|
+
smsLoginSend: (e) => s.POST("/api/v1/auth/sms/send", { body: e }).then((t) => a(t)),
|
|
144
|
+
/** 免密登录:手机号 + 短信码换令牌。 */
|
|
145
|
+
smsLogin: (e) => s.POST("/api/v1/auth/sms/login", { body: e }).then((t) => a(t))
|
|
146
|
+
}, D = {
|
|
147
|
+
bindStart: (e) => s.POST("/api/v1/auth/mfa/bind/start", { body: e }).then((t) => a(t)),
|
|
148
|
+
bindComplete: (e) => s.POST("/api/v1/auth/mfa/bind/complete", { body: e }).then((t) => a(t)),
|
|
149
|
+
recovery: (e) => s.POST("/api/v1/auth/mfa/recovery", { body: e }).then((t) => a(t)),
|
|
150
|
+
clear: (e) => s.POST("/api/v1/sys/mfa/clear", { body: e }).then((t) => a(t))
|
|
151
|
+
}, N = {
|
|
152
|
+
list: () => s.GET("/api/v1/sys/mfa/high-sensitivity", {}).then((e) => a(e)),
|
|
153
|
+
add: (e) => s.POST("/api/v1/sys/mfa/high-sensitivity", { body: e }).then((t) => a(t)),
|
|
154
|
+
remove: (e) => s.DELETE("/api/v1/sys/mfa/high-sensitivity/{id}", { params: { path: { id: e } } }).then((t) => a(t))
|
|
155
|
+
}, k = {
|
|
156
|
+
/** 登录页可用的外部登录方式(启用的);空数组 = 不显 SSO 区。 */
|
|
157
|
+
providers: () => s.GET("/api/v1/auth/external/providers", {}).then((e) => a(e)),
|
|
158
|
+
/** 管理端全量列表(含已禁用);系统配置「第三方登录」Tab。 */
|
|
159
|
+
providersAll: () => s.GET("/api/v1/auth/external/providers/all", {}).then((e) => a(e)),
|
|
160
|
+
/** 发起某 provider 登录的 URL(顶层浏览器导航,不走 fetch —— 后端 302 跳 IdP)。 */
|
|
161
|
+
authorizeUrl: (e) => `${f.apiBase}/api/v1/auth/external/${encodeURIComponent(e)}/authorize`,
|
|
162
|
+
/** 一次性票据换令牌(登录回调后);票据无效/过期/已用抛 40014。 */
|
|
163
|
+
exchange: (e) => s.POST("/api/v1/auth/external/exchange", { body: { ticket: e } }).then((t) => a(t)),
|
|
164
|
+
/** 认领未绑定 SSO 的 pending-link(账密登录后);票据无效 40014,已被他人绑 40017。 */
|
|
165
|
+
claimPendingLink: (e) => s.POST("/api/v1/auth/external/pending-link/claim", { body: { pendingLink: e } }).then((t) => a(t)),
|
|
166
|
+
/** 我的外部账号绑定列表(个人中心)。 */
|
|
167
|
+
bindings: () => s.GET("/api/v1/auth/external/bindings", {}).then((e) => a(e)),
|
|
168
|
+
/** 发起绑定:返回授权 URL,前端跳转开始 OAuth 往返(回调把身份绑到当前用户)。 */
|
|
169
|
+
bindStart: (e) => s.POST("/api/v1/auth/external/{provider}/bind", { params: { path: { provider: e } } }).then((t) => a(t)),
|
|
170
|
+
/** 解绑某 provider 的外部账号。 */
|
|
171
|
+
unbind: (e) => s.DELETE("/api/v1/auth/external/{provider}/binding", { params: { path: { provider: e } } }).then((t) => a(t))
|
|
172
|
+
}, I = {
|
|
173
|
+
/** 工作台首页统计([ActiveSession]:任何登录用户可取,无需权限码)。 */
|
|
174
|
+
summary: () => s.GET("/api/v1/dashboard/summary", {}).then((e) => a(e))
|
|
175
|
+
}, L = {
|
|
176
|
+
modules: () => s.GET("/api/v1/personal/modules", {}).then((e) => a(e)),
|
|
177
|
+
menu: (e) => s.GET("/api/v1/personal/menu", { params: { query: { moduleId: e } } }).then((t) => a(t)),
|
|
178
|
+
setDefaultModule: (e) => s.PUT("/api/v1/personal/default-module", { body: { moduleId: e } }).then((t) => a(t)),
|
|
179
|
+
profile: () => s.GET("/api/v1/personal/profile", {}).then((e) => a(e)),
|
|
180
|
+
/** 改自己的资料(全量替换语义:缺字段即置空,前端整表单提交)。 */
|
|
181
|
+
updateProfile: (e) => s.PUT("/api/v1/personal/profile", { body: e }).then((t) => a(t)),
|
|
182
|
+
/** 我的活跃会话列表(个人视角;isCurrent = 本次请求所用会话)。 */
|
|
183
|
+
sessions: () => s.GET("/api/v1/personal/sessions", {}).then((e) => a(e)),
|
|
184
|
+
/** 下线自己的某个会话;他人的/不存在的一律 42024(不区分,防探测)。 */
|
|
185
|
+
kickSession: (e) => s.DELETE("/api/v1/personal/sessions/{sessionId}", { params: { path: { sessionId: e } } }).then((t) => a(t)),
|
|
186
|
+
updatePassword: (e) => s.PUT("/api/v1/personal/password", { body: e }).then((t) => a(t)),
|
|
187
|
+
/** 当前用户权限码集合(= 规范化路由);喂给 authStore.permissionCodes 驱动 v-auth。超管返回空集。 */
|
|
188
|
+
permissions: () => s.GET("/api/v1/personal/permissions", {}).then((e) => a(e))
|
|
189
|
+
}, q = {
|
|
190
|
+
/** 归一后端 PagedList<UserItem>({current,size,total,items}) → SmartTable fetcher 契约的 {items,total}。 */
|
|
191
|
+
page: (e) => s.GET("/api/v1/sys/user/page", {
|
|
192
|
+
// 查询参数名沿用后端 record 属性(PascalCase);ASP.NET 绑定大小写不敏感,类型要求 PascalCase。
|
|
193
|
+
// roleId:角色反查(「这个角色有哪些人」/ 删角色前报人数)复用本端点,不另开接口。
|
|
194
|
+
// sortField/sortOrder:SmartTable 排序;后端按实体列白名单校验(非法忽略回退默认),见 PagedListExtensions.OrderBySafe。
|
|
195
|
+
params: {
|
|
196
|
+
query: {
|
|
197
|
+
...d(e),
|
|
198
|
+
Account: e.account,
|
|
199
|
+
Name: e.name,
|
|
200
|
+
OrgId: e.orgId,
|
|
201
|
+
RoleId: e.roleId,
|
|
202
|
+
SortField: e.sortField,
|
|
203
|
+
SortOrder: e.sortOrder
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}).then((t) => h(t)),
|
|
207
|
+
/** 用户详情(含 roleIds,编辑回显 + 提交时原样带回避免清空角色)。 */
|
|
208
|
+
detail: (e) => s.GET("/api/v1/sys/user/{id}", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
209
|
+
/** 新增用户;返回新 Id + 实际生效的初始口令(留空 password 时后端随机生成,不接住就没人知道这个号的密码)。 */
|
|
210
|
+
add: (e) => s.POST("/api/v1/sys/user", { body: e }).then((t) => a(t)),
|
|
211
|
+
update: (e, t) => s.PUT("/api/v1/sys/user/{id}", { params: { path: { id: e } }, body: t }).then((i) => a(i)),
|
|
212
|
+
remove: (e) => s.DELETE("/api/v1/sys/user/{id}", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
213
|
+
/** 批量软删除;集合含超管后端整体拒绝(SuperAdminProtected)。 */
|
|
214
|
+
batchRemove: (e) => s.POST("/api/v1/sys/user/batch-delete", { body: { ids: e } }).then((t) => a(t)),
|
|
215
|
+
/** 重置密码;返回实际生效的初始密码(newPassword 留空 = 后端默认初始密码)。 */
|
|
216
|
+
resetPassword: (e, t) => s.PUT("/api/v1/sys/user/{id}/password", {
|
|
217
|
+
params: { path: { id: e } },
|
|
218
|
+
body: { newPassword: t || null }
|
|
219
|
+
}).then((i) => a(i)),
|
|
220
|
+
/** 专用启停端点(非全量 update)。 */
|
|
221
|
+
setEnabled: (e, t) => s.PUT("/api/v1/sys/user/{id}/enabled", { params: { path: { id: e } }, body: { enabled: t } }).then((i) => a(i)),
|
|
222
|
+
// ── 导入 / 导出 ──
|
|
223
|
+
/** 下载用户导入模板(xlsx)。[ActiveSession],无需独立权限码。 */
|
|
224
|
+
importTemplate: () => s.GET("/api/v1/sys/user/import/template", { parseAs: "blob" }).then((e) => v(e)),
|
|
225
|
+
/**
|
|
226
|
+
* 上传 xlsx 预览校验。multipart:`file` + 可选 `mapping`(JSON 字符串:表头→列 Key)。
|
|
227
|
+
* bodySerializer 建 FormData(坑 3:与 fileApi.upload 同型)。
|
|
228
|
+
*/
|
|
229
|
+
importPreview: (e, t) => s.POST("/api/v1/sys/user/import/preview", {
|
|
230
|
+
timeout: l,
|
|
231
|
+
body: {
|
|
232
|
+
file: e,
|
|
233
|
+
mapping: t ? JSON.stringify(t) : void 0
|
|
234
|
+
},
|
|
235
|
+
bodySerializer: (i) => {
|
|
236
|
+
const o = i, n = new FormData();
|
|
237
|
+
return n.append("file", o.file), o.mapping && n.append("mapping", o.mapping), n;
|
|
238
|
+
}
|
|
239
|
+
}).then((i) => g(a(i))),
|
|
240
|
+
/** 对前端改过的行重新校验(不碰文件)。 */
|
|
241
|
+
importValidate: (e) => s.POST("/api/v1/sys/user/import/validate", {
|
|
242
|
+
timeout: l,
|
|
243
|
+
body: { rows: T(e) }
|
|
244
|
+
}).then((t) => g(a(t))),
|
|
245
|
+
/** 下载错误报告 xlsx(原列 +「错误原因」列)。 */
|
|
246
|
+
importErrorReport: (e) => s.POST("/api/v1/sys/user/import/error-report", {
|
|
247
|
+
timeout: l,
|
|
248
|
+
body: { rows: T(e) },
|
|
249
|
+
parseAs: "blob"
|
|
250
|
+
}).then((t) => v(t)),
|
|
251
|
+
/** 按策略提交导入(部分提交:有错行跳过;服务端重校验,不信任前端 Errors)。 */
|
|
252
|
+
importCommit: (e, t = 0) => s.POST("/api/v1/sys/user/import/commit", {
|
|
253
|
+
timeout: l,
|
|
254
|
+
body: { rows: T(e), strategy: t }
|
|
255
|
+
}).then((i) => O(a(i))),
|
|
256
|
+
/**
|
|
257
|
+
* 导出用户 xlsx。筛选条件与列表同源(Account/Name/OrgId/RoleId…)+ `columns` 逗号分隔列 Key。
|
|
258
|
+
* 返回 blob,不进信封。
|
|
259
|
+
*/
|
|
260
|
+
export: (e) => s.GET("/api/v1/sys/user/export", {
|
|
261
|
+
timeout: l,
|
|
262
|
+
params: {
|
|
263
|
+
query: {
|
|
264
|
+
Account: e.account,
|
|
265
|
+
Name: e.name,
|
|
266
|
+
OrgId: e.orgId,
|
|
267
|
+
RoleId: e.roleId,
|
|
268
|
+
Enabled: e.enabled,
|
|
269
|
+
SortField: e.sortField,
|
|
270
|
+
SortOrder: e.sortOrder,
|
|
271
|
+
columns: e.columns
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
parseAs: "blob"
|
|
275
|
+
}).then((t) => v(t))
|
|
276
|
+
}, R = {
|
|
277
|
+
/** 全部机构(平铺,按 Sort、Id 排序)。前端 buildTree 拼树。下拉 / 树表复用。 */
|
|
278
|
+
list: () => s.GET("/api/v1/sys/org/list", {}).then((e) => a(e)),
|
|
279
|
+
add: (e) => s.POST("/api/v1/sys/org/add", { body: e }).then((t) => a(t)),
|
|
280
|
+
update: (e, t) => s.PUT("/api/v1/sys/org/{id}", { params: { path: { id: e } }, body: t }).then((i) => a(i)),
|
|
281
|
+
remove: (e) => s.DELETE("/api/v1/sys/org/{id}", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
282
|
+
/** 复制机构子树(整支克隆挂到源节点同级),返回新根 Id。 */
|
|
283
|
+
copy: (e, t) => s.POST("/api/v1/sys/org/{id}/copy", { params: { path: { id: e } }, body: t }).then((i) => a(i))
|
|
284
|
+
}, j = {
|
|
285
|
+
/** 职位分页;搜索键 name → PascalCase Name;sortField/sortOrder → 后端安全排序。下拉(拉大页)/ SmartTable 复用。 */
|
|
286
|
+
page: (e) => s.GET("/api/v1/sys/position/page", {
|
|
287
|
+
params: {
|
|
288
|
+
query: {
|
|
289
|
+
...d(e),
|
|
290
|
+
Name: e.name,
|
|
291
|
+
SortField: e.sortField,
|
|
292
|
+
SortOrder: e.sortOrder
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}).then((t) => h(t)),
|
|
296
|
+
add: (e) => s.POST("/api/v1/sys/position/add", { body: e }).then((t) => a(t)),
|
|
297
|
+
update: (e, t) => s.PUT("/api/v1/sys/position/{id}", { params: { path: { id: e } }, body: t }).then((i) => a(i)),
|
|
298
|
+
remove: (e) => s.DELETE("/api/v1/sys/position/{id}", { params: { path: { id: e } } }).then((t) => a(t))
|
|
299
|
+
}, K = {
|
|
300
|
+
/** 角色分页;搜索键 name → PascalCase Name。列表用 + 用户/授权页拉一大页当下拉源。 */
|
|
301
|
+
page: (e) => s.GET("/api/v1/sys/role/page", {
|
|
302
|
+
params: { query: { ...d(e), Name: e.name } }
|
|
303
|
+
}).then((t) => h(t)),
|
|
304
|
+
add: (e) => s.POST("/api/v1/sys/role/add", { body: e }).then((t) => a(t)),
|
|
305
|
+
update: (e, t) => s.PUT("/api/v1/sys/role/{id}", { params: { path: { id: e } }, body: t }).then((i) => a(i)),
|
|
306
|
+
remove: (e) => s.DELETE("/api/v1/sys/role/{id}", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
307
|
+
/** 批量删除角色(各自级联清关联)。 */
|
|
308
|
+
batchRemove: (e) => s.POST("/api/v1/sys/role/batch-delete", { body: { ids: e } }).then((t) => a(t)),
|
|
309
|
+
/** 某角色当前授予的菜单 Id 集合(授权抽屉回显)。 */
|
|
310
|
+
getMenus: (e) => s.GET("/api/v1/sys/role/{id}/menus", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
311
|
+
/** 全量设置角色授予的菜单(空数组 = 收回全部)。 */
|
|
312
|
+
setMenus: (e, t) => s.PUT("/api/v1/sys/role/menu", { body: { roleId: e, menuIds: t } }).then((i) => a(i)),
|
|
313
|
+
/** 某角色的数据范围配置(未配置返回 null)。 */
|
|
314
|
+
getDataScope: (e) => s.GET("/api/v1/sys/role/{id}/datascope", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
315
|
+
/** 设置角色数据范围;customOrgIds 仅 scopeType=Custom(5)时有意义。 */
|
|
316
|
+
setDataScope: (e, t, i) => s.PUT("/api/v1/sys/role/datascope", { body: { roleId: e, scopeType: t, customOrgIds: i } }).then((o) => a(o)),
|
|
317
|
+
/** 某角色当前关联的用户 Id 集合(授权用户抽屉回显)。 */
|
|
318
|
+
getUsers: (e) => s.GET("/api/v1/sys/role/{id}/users", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
319
|
+
/** 全量设置角色关联的用户(空数组 = 收回全部)。 */
|
|
320
|
+
setUsers: (e, t) => s.PUT("/api/v1/sys/role/users", { body: { roleId: e, userIds: t } }).then((i) => a(i))
|
|
321
|
+
}, F = {
|
|
322
|
+
list: () => s.GET("/api/v1/sys/module/list", {}).then((e) => a(e)),
|
|
323
|
+
add: (e) => s.POST("/api/v1/sys/module/add", { body: e }).then((t) => a(t)),
|
|
324
|
+
update: (e, t) => s.PUT("/api/v1/sys/module/{id}", { params: { path: { id: e } }, body: t }).then((i) => a(i)),
|
|
325
|
+
remove: (e) => s.DELETE("/api/v1/sys/module/{id}", { params: { path: { id: e } } }).then((t) => a(t))
|
|
326
|
+
}, z = {
|
|
327
|
+
/** 归一后端 PagedList<SysConfig> → SmartTable {items,total};搜索键 configKey/name/groupCode → PascalCase 查询参。 */
|
|
328
|
+
page: (e) => s.GET("/api/v1/sys/config/page", {
|
|
329
|
+
params: {
|
|
330
|
+
query: {
|
|
331
|
+
...d(e),
|
|
332
|
+
ConfigKey: e.configKey,
|
|
333
|
+
Name: e.name,
|
|
334
|
+
GroupCode: e.groupCode,
|
|
335
|
+
ExcludedGroupCodes: e.excludedGroupCodes
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}).then((t) => h(t)),
|
|
339
|
+
add: (e) => s.POST("/api/v1/sys/config", { body: e }).then((t) => a(t)),
|
|
340
|
+
update: (e, t) => s.PUT("/api/v1/sys/config/{id}", { params: { path: { id: e } }, body: t }).then((i) => a(i)),
|
|
341
|
+
remove: (e) => s.DELETE("/api/v1/sys/config/{id}", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
342
|
+
/**
|
|
343
|
+
* 取某分组下全部配置(完整行,含 id/key/value),供分类配置中心结构化表单回填。
|
|
344
|
+
* 逐页取全:结构化表单按键回写,漏取的字段会拿默认值把库里的真实值覆盖掉。
|
|
345
|
+
*/
|
|
346
|
+
listByGroup: async (e) => {
|
|
347
|
+
const t = [];
|
|
348
|
+
for (let i = 1; ; i++) {
|
|
349
|
+
const o = await s.GET("/api/v1/sys/config/page", {
|
|
350
|
+
params: { query: { Current: i, Size: 100, GroupCode: e } }
|
|
351
|
+
}).then((n) => a(n));
|
|
352
|
+
if (t.push(...o.items), o.items.length === 0 || t.length >= o.total) return t;
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
/** 批量按键回写配置值(结构化表单保存);仅更新已存在键,未知键后端忽略。 */
|
|
356
|
+
saveBatch: (e) => s.PUT("/api/v1/sys/config/batch", { body: e }).then((t) => a(t)),
|
|
357
|
+
/** 站点信息(匿名可读:站点标题/副标题/版权等品牌展示白名单)。 */
|
|
358
|
+
siteInfo: () => s.GET("/api/v1/sys/config/site", {}).then(
|
|
359
|
+
(e) => a(e)
|
|
360
|
+
),
|
|
361
|
+
/** 当前生效密码策略(任何登录用户可读);改密页据此展示真实规则清单,免配置读权限。 */
|
|
362
|
+
passwordPolicy: () => s.GET("/api/v1/sys/config/password-policy", {}).then(
|
|
363
|
+
(e) => a(e)
|
|
364
|
+
)
|
|
365
|
+
};
|
|
366
|
+
function m(e) {
|
|
367
|
+
const { start: t, end: i } = S(e);
|
|
368
|
+
return { StartTime: t, EndTime: i };
|
|
369
|
+
}
|
|
370
|
+
const B = {
|
|
371
|
+
/** 登录日志分页;账号模糊 + 成败 + 时间范围。 */
|
|
372
|
+
loginPage: (e) => s.GET("/api/v1/sys/log/login/page", {
|
|
373
|
+
params: {
|
|
374
|
+
query: {
|
|
375
|
+
...d(e),
|
|
376
|
+
Account: e.account,
|
|
377
|
+
Success: e.success,
|
|
378
|
+
...m(e.createTime)
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}).then((t) => h(t)),
|
|
382
|
+
/** 清空登录日志(硬删,不可恢复)。 */
|
|
383
|
+
loginClear: () => s.DELETE("/api/v1/sys/log/login", {}).then((e) => a(e)),
|
|
384
|
+
/** 操作日志分页;操作名模糊 + 成败 + 操作人(精确)+ 接口路径(模糊)+ 时间范围——审计要能答"谁在什么时候干了什么"。 */
|
|
385
|
+
opPage: (e) => s.GET("/api/v1/sys/log/op/page", {
|
|
386
|
+
params: {
|
|
387
|
+
query: {
|
|
388
|
+
...d(e),
|
|
389
|
+
Title: e.title,
|
|
390
|
+
Success: e.success,
|
|
391
|
+
OperatorId: e.operatorId,
|
|
392
|
+
Path: e.path,
|
|
393
|
+
...m(e.createTime)
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}).then((t) => h(t)),
|
|
397
|
+
/** 清空操作日志(硬删,不可恢复)。 */
|
|
398
|
+
opClear: () => s.DELETE("/api/v1/sys/log/op", {}).then((e) => a(e)),
|
|
399
|
+
/**
|
|
400
|
+
* 导出操作日志 xlsx。筛选与 opPage 同源 + `columns` 逗号分隔列 Key。
|
|
401
|
+
* 返回 blob(坑 2);不进信封。
|
|
402
|
+
*/
|
|
403
|
+
opExport: (e) => s.GET("/api/v1/sys/log/op/export", {
|
|
404
|
+
timeout: l,
|
|
405
|
+
params: {
|
|
406
|
+
query: {
|
|
407
|
+
Title: e.title,
|
|
408
|
+
Success: e.success,
|
|
409
|
+
OperatorId: e.operatorId,
|
|
410
|
+
Path: e.path,
|
|
411
|
+
...m(e.createTime),
|
|
412
|
+
columns: e.columns
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
parseAs: "blob"
|
|
416
|
+
}).then((t) => v(t)),
|
|
417
|
+
/** 异常日志分页;接口路径模糊 + 异常类型模糊 + 时间范围。 */
|
|
418
|
+
exceptionPage: (e) => s.GET("/api/v1/sys/log/exception/page", {
|
|
419
|
+
params: {
|
|
420
|
+
query: {
|
|
421
|
+
...d(e),
|
|
422
|
+
Path: e.path,
|
|
423
|
+
ExceptionType: e.exceptionType,
|
|
424
|
+
...m(e.createTime)
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}).then((t) => h(t)),
|
|
428
|
+
/** 清空异常日志(硬删,不可恢复)。 */
|
|
429
|
+
exceptionClear: () => s.DELETE("/api/v1/sys/log/exception", {}).then((e) => a(e))
|
|
430
|
+
}, M = {
|
|
431
|
+
/** 服务器运行快照(CPU/内存/磁盘/运行时;后端含一次约 500ms 的 CPU 采样)。 */
|
|
432
|
+
server: () => s.GET("/api/v1/sys/monitor/server", {}).then((e) => a(e))
|
|
433
|
+
}, $ = {
|
|
434
|
+
/** 清全部用户的权限/数据范围缓存(返回被清用户数)。 */
|
|
435
|
+
flushAuth: () => s.POST("/api/v1/sys/cache/flush-auth", {}).then((e) => a(e)),
|
|
436
|
+
/** 清全部字典项缓存(返回被清字典类型数)。 */
|
|
437
|
+
flushDict: () => s.POST("/api/v1/sys/cache/flush-dict", {}).then((e) => a(e)),
|
|
438
|
+
/** 清全部系统配置缓存(返回被清配置项数)。 */
|
|
439
|
+
flushConfig: () => s.POST("/api/v1/sys/cache/flush-config", {}).then((e) => a(e)),
|
|
440
|
+
/** 递增门户代际,令所有用户的门户菜单/模块缓存整体失效(返回新代际值)。 */
|
|
441
|
+
rebuildPortal: () => s.POST("/api/v1/sys/cache/rebuild-portal", {}).then((e) => a(e))
|
|
442
|
+
}, J = {
|
|
443
|
+
/** 按类型编码取字典项(服务端已按 sort 排序)。归一 int64 序列化噪音 → DictItem 投影,供 stores/dict 缓存消费。 */
|
|
444
|
+
items: (e) => s.GET("/api/v1/sys/dict/items/{typeCode}", { params: { path: { typeCode: e } } }).then(
|
|
445
|
+
(t) => a(t)
|
|
446
|
+
).then(
|
|
447
|
+
(t) => t.map((i) => ({
|
|
448
|
+
label: i.label ?? "",
|
|
449
|
+
value: i.value ?? "",
|
|
450
|
+
sort: Number(i.sort ?? 0),
|
|
451
|
+
enabled: i.enabled ?? !0
|
|
452
|
+
}))
|
|
453
|
+
)
|
|
454
|
+
}, _ = {
|
|
455
|
+
/** 字典类型分页;搜索键 code/name → PascalCase Code/Name 查询参。 */
|
|
456
|
+
typePage: (e) => s.GET("/api/v1/sys/dict/type/page", {
|
|
457
|
+
params: { query: { ...d(e), Code: e.code, Name: e.name } }
|
|
458
|
+
}).then((t) => h(t)),
|
|
459
|
+
typeAdd: (e) => s.POST("/api/v1/sys/dict/type", { body: e }).then((t) => a(t)),
|
|
460
|
+
typeUpdate: (e, t) => s.PUT("/api/v1/sys/dict/type/{id}", { params: { path: { id: e } }, body: t }).then((i) => a(i)),
|
|
461
|
+
typeRemove: (e) => s.DELETE("/api/v1/sys/dict/type/{id}", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
462
|
+
/** 批量删除字典类型(各自级联删项)。 */
|
|
463
|
+
typeBatchRemove: (e) => s.POST("/api/v1/sys/dict/type/batch-delete", { body: { ids: e } }).then((t) => a(t)),
|
|
464
|
+
/** 某类型下的字典项(管理端:含停用、带 id;非下拉缓存源)。ponytail: 拉一页 200(Api:MaxPageSize 上限),字典项数量小,真超再分页。 */
|
|
465
|
+
items: (e) => s.GET("/api/v1/sys/dict/item/page", {
|
|
466
|
+
params: { query: { TypeCode: e, Current: 1, Size: 200 } }
|
|
467
|
+
}).then((t) => a(t)).then((t) => t.items),
|
|
468
|
+
itemAdd: (e) => s.POST("/api/v1/sys/dict/item", { body: e }).then((t) => a(t)),
|
|
469
|
+
itemUpdate: (e, t) => s.PUT("/api/v1/sys/dict/item/{id}", { params: { path: { id: e } }, body: t }).then((i) => a(i)),
|
|
470
|
+
itemRemove: (e) => s.DELETE("/api/v1/sys/dict/item/{id}", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
471
|
+
/** 批量删除字典项。 */
|
|
472
|
+
itemBatchRemove: (e) => s.POST("/api/v1/sys/dict/item/batch-delete", { body: { ids: e } }).then((t) => a(t))
|
|
473
|
+
}, H = {
|
|
474
|
+
/** 文件分页;搜索键 originalName → 后端 FileName 模糊过滤。 */
|
|
475
|
+
page: (e) => s.GET("/api/v1/sys/file/page", {
|
|
476
|
+
params: { query: { ...d(e), FileName: e.originalName } }
|
|
477
|
+
}).then((t) => h(t)),
|
|
478
|
+
/** 上传单个文件:bodySerializer 建 FormData(字段名 file),openapi-fetch 对 FormData 不注入 json header,浏览器自动补 boundary(client.ts 无需改)。 */
|
|
479
|
+
upload: (e) => s.POST("/api/v1/sys/file/upload", {
|
|
480
|
+
timeout: l,
|
|
481
|
+
body: { file: e },
|
|
482
|
+
bodySerializer: (t) => {
|
|
483
|
+
const i = new FormData();
|
|
484
|
+
return i.append("file", t.file), i;
|
|
485
|
+
}
|
|
486
|
+
}).then((t) => a(t)),
|
|
487
|
+
/** 下载:parseAs blob 取原始字节(非信封,不套 unwrap);Bearer 由 client 拦截器自动带。 */
|
|
488
|
+
download: (e) => s.GET("/api/v1/sys/file/{id}/download", {
|
|
489
|
+
timeout: l,
|
|
490
|
+
params: { path: { id: e } },
|
|
491
|
+
parseAs: "blob"
|
|
492
|
+
}).then((t) => {
|
|
493
|
+
if (!t.response.ok)
|
|
494
|
+
throw new u(t.response.status, void 0, void 0, t.response.statusText);
|
|
495
|
+
return t.data;
|
|
496
|
+
}),
|
|
497
|
+
remove: (e) => s.DELETE("/api/v1/sys/file/{id}", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
498
|
+
/** 批量软删除文件记录(物理文件保留)。 */
|
|
499
|
+
batchRemove: (e) => s.POST("/api/v1/sys/file/batch-delete", { body: { ids: e } }).then((t) => a(t)),
|
|
500
|
+
// ── 分片 / 断点续传上传 ──
|
|
501
|
+
/** 分片初始化:秒传探测 + 已收分片(断点续传)。 */
|
|
502
|
+
chunkInit: (e) => s.POST("/api/v1/sys/file/chunk/init", { body: e }).then((t) => a(t)),
|
|
503
|
+
/** 上传单个分片(multipart:uploadId + index + chunk),同 upload 用 bodySerializer 建 FormData。 */
|
|
504
|
+
chunkUpload: (e, t, i) => s.POST("/api/v1/sys/file/chunk", {
|
|
505
|
+
timeout: l,
|
|
506
|
+
body: { uploadId: e, index: t, chunk: i },
|
|
507
|
+
bodySerializer: (o) => {
|
|
508
|
+
const n = o, r = new FormData();
|
|
509
|
+
return r.append("uploadId", n.uploadId), r.append("index", String(n.index)), r.append("chunk", n.chunk), r;
|
|
510
|
+
}
|
|
511
|
+
}).then((o) => a(o)),
|
|
512
|
+
/** 完成:触发服务端合并 + 哈希校验 + 三道关 + 落库。 */
|
|
513
|
+
chunkComplete: (e) => s.POST("/api/v1/sys/file/chunk/complete", { timeout: l, body: e }).then((t) => a(t))
|
|
514
|
+
}, Q = {
|
|
515
|
+
/** 在线会话分页(只读)。后端仅支持按 UserId 过滤,这里不带业务搜索。 */
|
|
516
|
+
online: (e) => s.GET("/api/v1/sys/session/online", { params: { query: d(e) } }).then((t) => h(t)),
|
|
517
|
+
/** 强制下线:按 sessionId 踢会话。 */
|
|
518
|
+
kick: (e) => s.DELETE("/api/v1/sys/session/{sessionId}", { params: { path: { sessionId: e } } }).then((t) => a(t))
|
|
519
|
+
}, V = {
|
|
520
|
+
// ── 管理端 ──
|
|
521
|
+
/** 管理端分页(全量);搜索键 title/type → PascalCase 查询参。 */
|
|
522
|
+
page: (e) => s.GET("/api/v1/sys/notice/page", {
|
|
523
|
+
params: { query: { ...d(e), Title: e.title, Type: e.type } }
|
|
524
|
+
}).then((t) => h(t)),
|
|
525
|
+
publish: (e) => s.POST("/api/v1/sys/notice", { body: e }).then((t) => a(t)),
|
|
526
|
+
remove: (e) => s.DELETE("/api/v1/sys/notice/{id}", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
527
|
+
// ── 用户端(任何登录用户) ──
|
|
528
|
+
/** 我的通知分页(含已读标记);onlyUnread 供"未读"页签用。 */
|
|
529
|
+
mine: (e) => s.GET("/api/v1/sys/notice/mine", {
|
|
530
|
+
params: { query: { ...d(e), OnlyUnread: e.onlyUnread } }
|
|
531
|
+
}).then((t) => h(t)),
|
|
532
|
+
/** 当前用户未读通知数(顶栏角标轮询)。 */
|
|
533
|
+
unreadCount: () => s.GET("/api/v1/sys/notice/unread-count", {}).then((e) => a(e)),
|
|
534
|
+
markRead: (e) => s.PUT("/api/v1/sys/notice/{id}/read", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
535
|
+
markAllRead: () => s.PUT("/api/v1/sys/notice/read-all", {}).then((e) => a(e))
|
|
536
|
+
}, W = {
|
|
537
|
+
tree: () => s.GET("/api/v1/sys/menu/tree", {}).then((e) => a(e)),
|
|
538
|
+
/** 可授权路由清单(后端 EndpointDataSource 实时算出,含消费方自建控制器);喂菜单表单「权限码」下拉,免手敲。 */
|
|
539
|
+
routes: () => s.GET("/api/v1/sys/menu/routes", {}).then((e) => a(e)),
|
|
540
|
+
add: (e) => s.POST("/api/v1/sys/menu/add", { body: e }).then((t) => a(t)),
|
|
541
|
+
update: (e, t) => s.PUT("/api/v1/sys/menu/{id}", { params: { path: { id: e } }, body: t }).then((i) => a(i)),
|
|
542
|
+
remove: (e) => s.DELETE("/api/v1/sys/menu/{id}", { params: { path: { id: e } } }).then((t) => a(t))
|
|
543
|
+
}, X = {
|
|
544
|
+
/** 任务分页;搜索键 name/status/handlerKind → PascalCase 查询参。行含全列,编辑表单直接用行数据。 */
|
|
545
|
+
page: (e) => s.GET("/api/v1/sys/job/page", {
|
|
546
|
+
params: {
|
|
547
|
+
query: {
|
|
548
|
+
...d(e),
|
|
549
|
+
Name: e.name,
|
|
550
|
+
Status: e.status,
|
|
551
|
+
HandlerKind: e.handlerKind,
|
|
552
|
+
SortField: e.sortField,
|
|
553
|
+
SortOrder: e.sortOrder
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}).then((t) => h(t)),
|
|
557
|
+
add: (e) => s.POST("/api/v1/sys/job", { body: e }).then((t) => a(t)),
|
|
558
|
+
update: (e, t) => s.PUT("/api/v1/sys/job/{id}", { params: { path: { id: e } }, body: t }).then((i) => a(i)),
|
|
559
|
+
remove: (e) => s.DELETE("/api/v1/sys/job/{id}", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
560
|
+
/** 批量删除(命中内置任务后端整批拒绝 47014)。 */
|
|
561
|
+
batchRemove: (e) => s.POST("/api/v1/sys/job/batch-delete", { body: { ids: e } }).then((t) => a(t)),
|
|
562
|
+
/** 专用启停端点:true=恢复调度并重算下次执行时刻(顺带清连败计数),false=暂停。 */
|
|
563
|
+
setEnabled: (e, t) => s.PUT("/api/v1/sys/job/{id}/enabled", { params: { path: { id: e }, query: { enabled: t } } }).then((i) => a(i)),
|
|
564
|
+
/** 执行一次(收到请求的副本本机执行,不经选主、不影响调度节奏)。 */
|
|
565
|
+
run: (e) => s.POST("/api/v1/sys/job/{id}/run", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
566
|
+
/** cron 预览([ActiveSession] 任何登录用户可用;POST 因 cron 含 `? #` 走 query 有转义坑)。 */
|
|
567
|
+
previewCron: (e) => s.POST("/api/v1/sys/job/preview-cron", { body: e }).then((t) => a(t)),
|
|
568
|
+
/** 已注册的编译处理器清单(表单下拉数据源,免手打 HandlerName)。 */
|
|
569
|
+
handlers: () => s.GET("/api/v1/sys/job/handlers", {}).then((e) => a(e)),
|
|
570
|
+
/**
|
|
571
|
+
* 执行记录分页。startRange 是 SmartTable daterange 的 [开始, 结束] 日期串,
|
|
572
|
+
* 拆成后端 StartFrom/StartTo,结束日补 23:59:59(同 splitRange 的理由,但参数名不同,不复用)。
|
|
573
|
+
*/
|
|
574
|
+
logPage: (e) => {
|
|
575
|
+
var t, i;
|
|
576
|
+
return s.GET("/api/v1/sys/job/log/page", {
|
|
577
|
+
params: {
|
|
578
|
+
query: {
|
|
579
|
+
...d(e),
|
|
580
|
+
JobId: e.jobId,
|
|
581
|
+
RunStatus: e.runStatus,
|
|
582
|
+
FireInstanceId: e.fireInstanceId,
|
|
583
|
+
StartFrom: ((t = e.startRange) == null ? void 0 : t[0]) || void 0,
|
|
584
|
+
StartTo: (i = e.startRange) != null && i[1] ? `${e.startRange[1]} 23:59:59` : void 0
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}).then((o) => h(o));
|
|
588
|
+
},
|
|
589
|
+
/** 终止一次执行(跨节点写终止旗标,目标节点最迟 KillPollSeconds 后停)。 */
|
|
590
|
+
kill: (e) => s.POST("/api/v1/sys/job/log/{id}/kill", { params: { path: { id: e } } }).then((t) => a(t)),
|
|
591
|
+
/** 清空执行记录(硬删;运行中的一律保留),返回删除行数。 */
|
|
592
|
+
logClear: (e) => s.POST("/api/v1/sys/job/log/clear", { body: e }).then((t) => a(t)),
|
|
593
|
+
/** 监控仪表盘(今日成败/在飞/趋势/即将执行/集群节点)。 */
|
|
594
|
+
dashboard: () => s.GET("/api/v1/sys/job/dashboard", {}).then((e) => a(e))
|
|
595
|
+
}, Y = {
|
|
596
|
+
page: (e) => (t) => s.GET("/api/v1/sys/recycle/{type}/page", {
|
|
597
|
+
params: { path: { type: e }, query: d(t) }
|
|
598
|
+
}).then((i) => h(i)),
|
|
599
|
+
restore: (e, t) => s.POST("/api/v1/sys/recycle/{type}/{id}/restore", { params: { path: { type: e, id: t } } }).then((i) => a(i)),
|
|
600
|
+
purge: (e, t) => s.DELETE("/api/v1/sys/recycle/{type}/{id}", { params: { path: { type: e, id: t } } }).then((i) => a(i))
|
|
601
|
+
};
|
|
602
|
+
export {
|
|
603
|
+
u as ApiError,
|
|
604
|
+
C as authApi,
|
|
605
|
+
$ as cacheApi,
|
|
606
|
+
x as callApi,
|
|
607
|
+
z as configApi,
|
|
608
|
+
I as dashboardApi,
|
|
609
|
+
S as dayRange,
|
|
610
|
+
_ as dictAdminApi,
|
|
611
|
+
J as dictApi,
|
|
612
|
+
k as externalAuthApi,
|
|
613
|
+
H as fileApi,
|
|
614
|
+
N as highSensApi,
|
|
615
|
+
X as jobApi,
|
|
616
|
+
U as listQuery,
|
|
617
|
+
B as logApi,
|
|
618
|
+
W as menuApi,
|
|
619
|
+
D as mfaApi,
|
|
620
|
+
F as moduleApi,
|
|
621
|
+
M as monitorApi,
|
|
622
|
+
O as normalizeCommit,
|
|
623
|
+
g as normalizePreview,
|
|
624
|
+
V as noticeApi,
|
|
625
|
+
R as orgApi,
|
|
626
|
+
d as pageParams,
|
|
627
|
+
L as personalApi,
|
|
628
|
+
j as positionApi,
|
|
629
|
+
Y as recycleApi,
|
|
630
|
+
K as roleApi,
|
|
631
|
+
Q as sessionApi,
|
|
632
|
+
h as toPage,
|
|
633
|
+
T as toWireRows,
|
|
634
|
+
a as unwrap,
|
|
635
|
+
v as unwrapDownload,
|
|
636
|
+
q as userApi
|
|
637
|
+
};
|
|
638
|
+
//# sourceMappingURL=index.js.map
|