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,714 @@
|
|
|
1
|
+
import { AppModule } from './menu';
|
|
2
|
+
/** 登录/刷新出参(后端 LoginOutput)。 */
|
|
3
|
+
export interface LoginOutput {
|
|
4
|
+
accessToken: string;
|
|
5
|
+
expiresAt: string;
|
|
6
|
+
refreshToken: string;
|
|
7
|
+
refreshExpiresAt: string;
|
|
8
|
+
userId: number;
|
|
9
|
+
account: string;
|
|
10
|
+
name: string;
|
|
11
|
+
/** 是否需强制改密(管理员建号/重置后首登为 true)。 */
|
|
12
|
+
mustChangePassword: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 会话交付模式(可选)。
|
|
15
|
+
* - `body`:刷新令牌在 JSON 体(默认,前端 localStorage 持久化)
|
|
16
|
+
* - `cookie`:刷新令牌在 HttpOnly Cookie,access 仅内存
|
|
17
|
+
* 旧后端/未 regen 的 schema 可能缺此字段,前端用 refreshToken 空串 + csrfRequired 兜底判定。
|
|
18
|
+
*/
|
|
19
|
+
sessionMode?: 'body' | 'cookie' | string | null;
|
|
20
|
+
/**
|
|
21
|
+
* 是否要求双提交 CSRF(`X-Smart-CSRF` + `smart_csrf` Cookie)。
|
|
22
|
+
* Cookie 会话为 true;默认模式为 false/缺省。
|
|
23
|
+
*/
|
|
24
|
+
csrfRequired?: boolean | null;
|
|
25
|
+
/** 是否超管;前端据此在 profile 接口故障时仍能正确 fail-open v-auth。 */
|
|
26
|
+
isSuperAdmin?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/** 我的应用列表(后端 MyModulesOutput)。 */
|
|
29
|
+
export interface MyModulesOutput {
|
|
30
|
+
modules: AppModule[];
|
|
31
|
+
defaultModuleId?: number | null;
|
|
32
|
+
}
|
|
33
|
+
/** 个人资料(后端 UserProfile)。 */
|
|
34
|
+
export interface UserProfile {
|
|
35
|
+
id: number;
|
|
36
|
+
account: string;
|
|
37
|
+
name: string;
|
|
38
|
+
orgId?: number | null;
|
|
39
|
+
positionId?: number | null;
|
|
40
|
+
/** 机构名称(未分配/已删则 null) */
|
|
41
|
+
orgName?: string | null;
|
|
42
|
+
/** 职位名称(未分配/已删则 null) */
|
|
43
|
+
positionName?: string | null;
|
|
44
|
+
nickname?: string | null;
|
|
45
|
+
phone?: string | null;
|
|
46
|
+
email?: string | null;
|
|
47
|
+
/** 性别:字典 gender 的项 Value("1"男/"2"女/"0"未知) */
|
|
48
|
+
gender?: string | null;
|
|
49
|
+
/** 头像(文件签名直链 ViewUrl,直接进 img) */
|
|
50
|
+
avatar?: string | null;
|
|
51
|
+
isSuperAdmin: boolean;
|
|
52
|
+
}
|
|
53
|
+
/** 我的会话项(后端 MySessionItem;个人视角,isCurrent 标记本次请求所用会话)。 */
|
|
54
|
+
export interface MySessionItem {
|
|
55
|
+
sessionId: string;
|
|
56
|
+
ip?: string | null;
|
|
57
|
+
userAgent?: string | null;
|
|
58
|
+
loginTime: string;
|
|
59
|
+
expiresAt: string;
|
|
60
|
+
isCurrent: boolean;
|
|
61
|
+
}
|
|
62
|
+
/** 后端统一分页结果 PagedList<T>。 */
|
|
63
|
+
export interface PagedList<T> {
|
|
64
|
+
current: number;
|
|
65
|
+
size: number;
|
|
66
|
+
total: number;
|
|
67
|
+
pages: number;
|
|
68
|
+
items: T[];
|
|
69
|
+
}
|
|
70
|
+
/** 用户列表项(后端 UserItem;刻意不含密码)。 */
|
|
71
|
+
export interface UserItem {
|
|
72
|
+
id: number;
|
|
73
|
+
account: string;
|
|
74
|
+
name: string;
|
|
75
|
+
nickname?: string | null;
|
|
76
|
+
phone?: string | null;
|
|
77
|
+
email?: string | null;
|
|
78
|
+
gender?: string | null;
|
|
79
|
+
avatar?: string | null;
|
|
80
|
+
orgId?: number | null;
|
|
81
|
+
positionId?: number | null;
|
|
82
|
+
directorId?: number | null;
|
|
83
|
+
orgName?: string | null;
|
|
84
|
+
positionName?: string | null;
|
|
85
|
+
directorName?: string | null;
|
|
86
|
+
enabled: boolean;
|
|
87
|
+
isSuperAdmin: boolean;
|
|
88
|
+
/** 管理员显式强制 TOTP(只能加严)。 */
|
|
89
|
+
forceTotp?: boolean;
|
|
90
|
+
/** 是否已绑定 TOTP(只读)。 */
|
|
91
|
+
totpEnabled?: boolean;
|
|
92
|
+
createTime: string;
|
|
93
|
+
}
|
|
94
|
+
/** 模块/应用管理行(后端 SysModule;列表全字段)。 */
|
|
95
|
+
export interface ModuleRow {
|
|
96
|
+
id: number;
|
|
97
|
+
code: string;
|
|
98
|
+
title: string;
|
|
99
|
+
icon?: string | null;
|
|
100
|
+
defaultRoute?: string | null;
|
|
101
|
+
/** 后端路由匹配前缀(如 sys/biz):菜单配按钮时权限路由下拉据此按应用软过滤;留空=不过滤。 */
|
|
102
|
+
apiPrefix?: string | null;
|
|
103
|
+
sort: number;
|
|
104
|
+
enabled: boolean;
|
|
105
|
+
remark?: string | null;
|
|
106
|
+
createTime?: string;
|
|
107
|
+
}
|
|
108
|
+
/** 工作台首页统计(后端 DashboardSummaryOutput)。趋势三条数组等长(近 7 日,含今天,无登录的日子为 0)。 */
|
|
109
|
+
export interface DashboardSummary {
|
|
110
|
+
roles: number;
|
|
111
|
+
users: number;
|
|
112
|
+
perms: number;
|
|
113
|
+
onlineSessions: number;
|
|
114
|
+
trendDays: string[];
|
|
115
|
+
trendLogins: number[];
|
|
116
|
+
trendActiveUsers: number[];
|
|
117
|
+
}
|
|
118
|
+
/** 字典项消费投影(后端 SysDictItem;sort 归一为 number,甩掉 int64 序列化的 number|string 噪音)。 */
|
|
119
|
+
export interface DictItem {
|
|
120
|
+
label: string;
|
|
121
|
+
value: string;
|
|
122
|
+
sort: number;
|
|
123
|
+
enabled: boolean;
|
|
124
|
+
}
|
|
125
|
+
/** 模块新增/编辑入参(后端 ModuleInput)。 */
|
|
126
|
+
export interface ModuleInput {
|
|
127
|
+
code: string;
|
|
128
|
+
title: string;
|
|
129
|
+
icon?: string | null;
|
|
130
|
+
defaultRoute?: string | null;
|
|
131
|
+
apiPrefix?: string | null;
|
|
132
|
+
sort: number;
|
|
133
|
+
enabled: boolean;
|
|
134
|
+
remark?: string | null;
|
|
135
|
+
}
|
|
136
|
+
/** 系统配置行(后端 SysConfig;列表返回全字段,int64 收敛为 number)。 */
|
|
137
|
+
export interface SysConfig {
|
|
138
|
+
id: number;
|
|
139
|
+
configKey: string;
|
|
140
|
+
configValue?: string | null;
|
|
141
|
+
name: string;
|
|
142
|
+
groupCode?: string | null;
|
|
143
|
+
sort: number;
|
|
144
|
+
remark?: string | null;
|
|
145
|
+
createTime?: string;
|
|
146
|
+
}
|
|
147
|
+
/** 配置新增/编辑入参(后端 ConfigInput;configKey 创建后不可改)。 */
|
|
148
|
+
export interface ConfigInput {
|
|
149
|
+
configKey: string;
|
|
150
|
+
configValue?: string | null;
|
|
151
|
+
name: string;
|
|
152
|
+
groupCode?: string | null;
|
|
153
|
+
sort: number;
|
|
154
|
+
remark?: string | null;
|
|
155
|
+
}
|
|
156
|
+
/** 字典类型行(后端 SysDictType;Code 创建后不可改)。int64 收敛为 number。 */
|
|
157
|
+
export interface SysDictType {
|
|
158
|
+
id: number;
|
|
159
|
+
code: string;
|
|
160
|
+
name: string;
|
|
161
|
+
sort: number;
|
|
162
|
+
enabled: boolean;
|
|
163
|
+
remark?: string | null;
|
|
164
|
+
createTime?: string;
|
|
165
|
+
}
|
|
166
|
+
/** 字典项行(后端 SysDictItem;管理端分页含停用项,带 id——区别于下拉投影 DictItem)。int64 收敛为 number。 */
|
|
167
|
+
export interface SysDictItem {
|
|
168
|
+
id: number;
|
|
169
|
+
dictTypeCode: string;
|
|
170
|
+
label: string;
|
|
171
|
+
value: string;
|
|
172
|
+
sort: number;
|
|
173
|
+
enabled: boolean;
|
|
174
|
+
createTime?: string;
|
|
175
|
+
}
|
|
176
|
+
/** 字典类型新增/编辑入参(后端 DictTypeInput;code 创建后不可改,更新时服务端忽略)。 */
|
|
177
|
+
export interface DictTypeInput {
|
|
178
|
+
code: string;
|
|
179
|
+
name: string;
|
|
180
|
+
sort: number;
|
|
181
|
+
enabled: boolean;
|
|
182
|
+
remark?: string | null;
|
|
183
|
+
}
|
|
184
|
+
/** 字典项新增/编辑入参(后端 DictItemInput;dictTypeCode = 当前类型,表单隐藏)。 */
|
|
185
|
+
export interface DictItemInput {
|
|
186
|
+
dictTypeCode: string;
|
|
187
|
+
label: string;
|
|
188
|
+
value: string;
|
|
189
|
+
sort: number;
|
|
190
|
+
enabled: boolean;
|
|
191
|
+
}
|
|
192
|
+
/** 文件记录行(后端 SysFile;列表返回,int64 收敛为 number)。 */
|
|
193
|
+
export interface SysFile {
|
|
194
|
+
id: number;
|
|
195
|
+
originalName: string;
|
|
196
|
+
storagePath: string;
|
|
197
|
+
extension: string;
|
|
198
|
+
contentType?: string | null;
|
|
199
|
+
sizeBytes: number;
|
|
200
|
+
fileHash?: string | null;
|
|
201
|
+
createTime?: string;
|
|
202
|
+
}
|
|
203
|
+
/** 上传出参(后端 FileUploadOutput)。 */
|
|
204
|
+
export interface FileUploadOutput {
|
|
205
|
+
id: number;
|
|
206
|
+
originalName: string;
|
|
207
|
+
/** 存储层相对路径。**别当 URL 用**:后端默认不静态托管上传目录,当 src 必然坏链。要展示图片用 viewUrl。 */
|
|
208
|
+
storagePath: string;
|
|
209
|
+
sizeBytes: number;
|
|
210
|
+
fileHash?: string | null;
|
|
211
|
+
/** 签名直链(匿名可取、不可伪造),可直接塞进 `<img src>`;后端签发,前端不自己拼。 */
|
|
212
|
+
viewUrl?: string | null;
|
|
213
|
+
}
|
|
214
|
+
/** 分片上传初始化出参(后端 ChunkInitOutput)。 */
|
|
215
|
+
export interface ChunkInitOutput {
|
|
216
|
+
/** 秒传命中(同内容哈希已存在,无需再传)。 */
|
|
217
|
+
uploaded: boolean;
|
|
218
|
+
/** 秒传命中时的既有文件。 */
|
|
219
|
+
file?: FileUploadOutput | null;
|
|
220
|
+
/** 上传会话 Id(= 文件哈希);非秒传时返回。 */
|
|
221
|
+
uploadId?: string | null;
|
|
222
|
+
/** 服务端已收到的分片下标(断点续传:跳过已传)。 */
|
|
223
|
+
receivedIndexes: number[];
|
|
224
|
+
}
|
|
225
|
+
/** 在线会话行(后端 OnlineSessionItem;只读 + 强退按 sessionId)。int64 收敛为 number。 */
|
|
226
|
+
export interface OnlineSessionItem {
|
|
227
|
+
sessionId: string;
|
|
228
|
+
userId: number;
|
|
229
|
+
account: string;
|
|
230
|
+
ip?: string | null;
|
|
231
|
+
userAgent?: string | null;
|
|
232
|
+
loginTime?: string;
|
|
233
|
+
expiresAt?: string;
|
|
234
|
+
}
|
|
235
|
+
/** 登录日志行(后端 SysLoginLog;只读,int64 收敛为 number)。 */
|
|
236
|
+
export interface SysLoginLog {
|
|
237
|
+
id: number;
|
|
238
|
+
account: string;
|
|
239
|
+
success: boolean;
|
|
240
|
+
resultCode: number;
|
|
241
|
+
userId?: number | null;
|
|
242
|
+
name?: string | null;
|
|
243
|
+
ip?: string | null;
|
|
244
|
+
userAgent?: string | null;
|
|
245
|
+
createTime: string;
|
|
246
|
+
}
|
|
247
|
+
/** 操作日志行(后端 SysOpLog;只读,分页项已含全字段,详情抽屉直接用行数据)。 */
|
|
248
|
+
export interface SysOpLog {
|
|
249
|
+
id: number;
|
|
250
|
+
title: string;
|
|
251
|
+
httpMethod: string;
|
|
252
|
+
path: string;
|
|
253
|
+
paramJson?: string | null;
|
|
254
|
+
resultCode: number;
|
|
255
|
+
success: boolean;
|
|
256
|
+
exceptionMessage?: string | null;
|
|
257
|
+
elapsedMs: number;
|
|
258
|
+
operatorId?: number | null;
|
|
259
|
+
operatorName?: string | null;
|
|
260
|
+
ip?: string | null;
|
|
261
|
+
userAgent?: string | null;
|
|
262
|
+
createTime: string;
|
|
263
|
+
}
|
|
264
|
+
/** 磁盘分区容量(后端 DiskInfo)。 */
|
|
265
|
+
export interface DiskInfo {
|
|
266
|
+
name: string;
|
|
267
|
+
totalBytes: number;
|
|
268
|
+
freeBytes: number;
|
|
269
|
+
}
|
|
270
|
+
/** 服务器运行快照(后端 ServerInfoOutput;进程/主机基础指标)。 */
|
|
271
|
+
export interface ServerInfoOutput {
|
|
272
|
+
machineName: string;
|
|
273
|
+
osDescription: string;
|
|
274
|
+
frameworkDescription: string;
|
|
275
|
+
processArchitecture: string;
|
|
276
|
+
processorCount: number;
|
|
277
|
+
processUptimeSeconds: number;
|
|
278
|
+
processCpuPercent: number;
|
|
279
|
+
processWorkingSetBytes: number;
|
|
280
|
+
gcHeapBytes: number;
|
|
281
|
+
totalAvailableMemoryBytes: number;
|
|
282
|
+
threadCount: number;
|
|
283
|
+
disks: DiskInfo[];
|
|
284
|
+
}
|
|
285
|
+
/** 异常日志行(后端 SysExceptionLog;未捕获异常留痕,只读,分页项已含全字段)。 */
|
|
286
|
+
export interface SysExceptionLog {
|
|
287
|
+
id: number;
|
|
288
|
+
httpMethod: string;
|
|
289
|
+
path: string;
|
|
290
|
+
traceId?: string | null;
|
|
291
|
+
exceptionType: string;
|
|
292
|
+
message?: string | null;
|
|
293
|
+
stackTrace?: string | null;
|
|
294
|
+
operatorId?: number | null;
|
|
295
|
+
operatorName?: string | null;
|
|
296
|
+
ip?: string | null;
|
|
297
|
+
userAgent?: string | null;
|
|
298
|
+
createTime: string;
|
|
299
|
+
}
|
|
300
|
+
/** 机构行(后端 SysOrg;平铺,前端 buildTree)。int64 收敛为 number。 */
|
|
301
|
+
export interface SysOrg {
|
|
302
|
+
id: number;
|
|
303
|
+
parentId: number;
|
|
304
|
+
name: string;
|
|
305
|
+
code: string;
|
|
306
|
+
category?: string | null;
|
|
307
|
+
sort: number;
|
|
308
|
+
enabled: boolean;
|
|
309
|
+
createTime?: string;
|
|
310
|
+
}
|
|
311
|
+
/** 机构新增/编辑入参(后端 OrgInput;parentId 0=根,code 编辑禁用)。 */
|
|
312
|
+
export interface OrgInput {
|
|
313
|
+
parentId: number;
|
|
314
|
+
name: string;
|
|
315
|
+
code: string;
|
|
316
|
+
category?: string | null;
|
|
317
|
+
sort: number;
|
|
318
|
+
enabled: boolean;
|
|
319
|
+
}
|
|
320
|
+
/** 职位行(后端 SysPosition)。int64 收敛为 number。 */
|
|
321
|
+
export interface SysPosition {
|
|
322
|
+
id: number;
|
|
323
|
+
name: string;
|
|
324
|
+
code: string;
|
|
325
|
+
sort: number;
|
|
326
|
+
enabled: boolean;
|
|
327
|
+
createTime?: string;
|
|
328
|
+
}
|
|
329
|
+
/** 职位新增/编辑入参(后端 PositionInput;增改同一份字段,code 编辑禁用)。 */
|
|
330
|
+
export interface PositionInput {
|
|
331
|
+
name: string;
|
|
332
|
+
code: string;
|
|
333
|
+
sort: number;
|
|
334
|
+
enabled: boolean;
|
|
335
|
+
}
|
|
336
|
+
/** 角色行(后端 SysRole)。int64 收敛为 number。 */
|
|
337
|
+
export interface SysRole {
|
|
338
|
+
id: number;
|
|
339
|
+
name: string;
|
|
340
|
+
code: string;
|
|
341
|
+
sort: number;
|
|
342
|
+
enabled: boolean;
|
|
343
|
+
remark?: string | null;
|
|
344
|
+
isDelegatable?: boolean | null;
|
|
345
|
+
createTime?: string;
|
|
346
|
+
}
|
|
347
|
+
/** 角色新增/编辑入参(后端 RoleInput;增改同一份字段,code 编辑禁用)。 */
|
|
348
|
+
export interface RoleInput {
|
|
349
|
+
name: string;
|
|
350
|
+
code: string;
|
|
351
|
+
sort: number;
|
|
352
|
+
enabled: boolean;
|
|
353
|
+
remark?: string | null;
|
|
354
|
+
isDelegatable?: boolean | null;
|
|
355
|
+
}
|
|
356
|
+
/** 数据范围类型(后端 DataScopeType;存库为 int,枚举值须与后端一致)。 */
|
|
357
|
+
export declare enum DataScopeType {
|
|
358
|
+
All = 1,
|
|
359
|
+
Org = 2,
|
|
360
|
+
OrgAndChildren = 3,
|
|
361
|
+
Self = 4,
|
|
362
|
+
Custom = 5
|
|
363
|
+
}
|
|
364
|
+
/** 角色数据范围配置(后端 SysRoleDataScope;数据范围抽屉回显)。customOrgIds 逗号分隔。 */
|
|
365
|
+
export interface SysRoleDataScope {
|
|
366
|
+
id: number;
|
|
367
|
+
roleId: number;
|
|
368
|
+
scopeType: DataScopeType;
|
|
369
|
+
customOrgIds: string;
|
|
370
|
+
}
|
|
371
|
+
/** 新增用户入参(后端 AddUserInput;account 建后不可改,password 留空=系统生成随机强口令)。 */
|
|
372
|
+
export interface AddUserInput {
|
|
373
|
+
account: string;
|
|
374
|
+
password?: string | null;
|
|
375
|
+
name: string;
|
|
376
|
+
nickname?: string | null;
|
|
377
|
+
phone?: string | null;
|
|
378
|
+
email?: string | null;
|
|
379
|
+
gender?: string | null;
|
|
380
|
+
avatar?: string | null;
|
|
381
|
+
orgId?: number | null;
|
|
382
|
+
positionId?: number | null;
|
|
383
|
+
directorId?: number | null;
|
|
384
|
+
enabled: boolean;
|
|
385
|
+
/** 建号即强制 TOTP。 */
|
|
386
|
+
forceTotp?: boolean;
|
|
387
|
+
roleIds: number[];
|
|
388
|
+
}
|
|
389
|
+
/** 新增用户出参(后端 AddUserOutput):新 Id + 实际生效的初始口令明文——留空口令时是随机生成的,不展示给管理员就没人知道。 */
|
|
390
|
+
export interface AddUserOutput {
|
|
391
|
+
id: number;
|
|
392
|
+
initialPassword: string;
|
|
393
|
+
}
|
|
394
|
+
/** 一条可授权路由(后端 PermissionRouteItem);喂菜单表单权限码下拉,code 即写进 SysMenu.Permission 的值。 */
|
|
395
|
+
export interface PermissionRouteItem {
|
|
396
|
+
code: string;
|
|
397
|
+
method: string;
|
|
398
|
+
path: string;
|
|
399
|
+
}
|
|
400
|
+
/** 更新用户入参(后端 UpdateUserInput;无 account/password。roleIds 由 detail 原样带回避免清空)。 */
|
|
401
|
+
export interface UpdateUserInput {
|
|
402
|
+
name: string;
|
|
403
|
+
nickname?: string | null;
|
|
404
|
+
phone?: string | null;
|
|
405
|
+
email?: string | null;
|
|
406
|
+
gender?: string | null;
|
|
407
|
+
avatar?: string | null;
|
|
408
|
+
orgId?: number | null;
|
|
409
|
+
positionId?: number | null;
|
|
410
|
+
directorId?: number | null;
|
|
411
|
+
enabled: boolean;
|
|
412
|
+
forceTotp?: boolean;
|
|
413
|
+
roleIds: number[];
|
|
414
|
+
}
|
|
415
|
+
/** 用户详情(后端 UserDetail;列表字段 + roleIds,编辑回显用)。 */
|
|
416
|
+
export interface UserDetail {
|
|
417
|
+
id: number;
|
|
418
|
+
account: string;
|
|
419
|
+
name: string;
|
|
420
|
+
nickname?: string | null;
|
|
421
|
+
phone?: string | null;
|
|
422
|
+
email?: string | null;
|
|
423
|
+
gender?: string | null;
|
|
424
|
+
avatar?: string | null;
|
|
425
|
+
orgId?: number | null;
|
|
426
|
+
positionId?: number | null;
|
|
427
|
+
directorId?: number | null;
|
|
428
|
+
enabled: boolean;
|
|
429
|
+
isSuperAdmin: boolean;
|
|
430
|
+
forceTotp?: boolean;
|
|
431
|
+
totpEnabled?: boolean;
|
|
432
|
+
roleIds: number[];
|
|
433
|
+
createTime?: string;
|
|
434
|
+
}
|
|
435
|
+
/** 通知类型(后端 NoticeType;存库 int,枚举值须与后端一致)。 */
|
|
436
|
+
export declare enum NoticeType {
|
|
437
|
+
Notice = 1,
|
|
438
|
+
Announcement = 2,
|
|
439
|
+
Message = 3
|
|
440
|
+
}
|
|
441
|
+
/** 接收范围(后端 ReceiverType;All=0 对全体广播,Role/User 定向)。 */
|
|
442
|
+
export declare enum ReceiverType {
|
|
443
|
+
All = 0,
|
|
444
|
+
Role = 1,
|
|
445
|
+
User = 2
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* 通知动作(后端 NoticeAction):前端渲染成正文下的按钮。url 以 /api/ 开头是接口调用(按 method 发请求),
|
|
449
|
+
* 其它单个 / 开头的站内路径是页面跳转;协议相对 URL(//host、/\host)发布时即被拒绝。
|
|
450
|
+
* label 含 `.` 视为 i18n key。comment=true 先弹意见框,把 { comment } 作为请求体带上。
|
|
451
|
+
*/
|
|
452
|
+
export interface NoticeAction {
|
|
453
|
+
label: string;
|
|
454
|
+
method: 'GET' | 'POST';
|
|
455
|
+
url: string;
|
|
456
|
+
style?: 'primary' | 'default' | 'error' | null;
|
|
457
|
+
confirm?: boolean;
|
|
458
|
+
comment?: boolean;
|
|
459
|
+
}
|
|
460
|
+
/** 通知行(后端 SysNotice;管理端列表全字段,int64 收敛为 number)。 */
|
|
461
|
+
export interface SysNotice {
|
|
462
|
+
id: number;
|
|
463
|
+
title: string;
|
|
464
|
+
content?: string | null;
|
|
465
|
+
type: NoticeType;
|
|
466
|
+
createTime?: string;
|
|
467
|
+
/** 动作列表原文(JSON 数组);管理端只展示条数 */
|
|
468
|
+
actionsJson?: string | null;
|
|
469
|
+
}
|
|
470
|
+
/** 我的通知项(后端 NoticeMineItem;含当前用户已读标记)。 */
|
|
471
|
+
export interface NoticeMineItem {
|
|
472
|
+
id: number;
|
|
473
|
+
title: string;
|
|
474
|
+
content?: string | null;
|
|
475
|
+
type: NoticeType;
|
|
476
|
+
publishTime: string;
|
|
477
|
+
isRead: boolean;
|
|
478
|
+
actions?: NoticeAction[] | null;
|
|
479
|
+
}
|
|
480
|
+
/** 发布通知入参(后端 NoticePublishInput)。 */
|
|
481
|
+
export interface NoticePublishInput {
|
|
482
|
+
title: string;
|
|
483
|
+
content?: string | null;
|
|
484
|
+
type: NoticeType;
|
|
485
|
+
/** 接收范围;缺省 All 广播全体。 */
|
|
486
|
+
receiverType: ReceiverType;
|
|
487
|
+
/** 接收目标 Id(角色 Id 或用户 Id,取决于 receiverType);All 时忽略。 */
|
|
488
|
+
receiverIds?: number[];
|
|
489
|
+
/** 动作列表(可选,最多 5 条) */
|
|
490
|
+
actions?: NoticeAction[] | null;
|
|
491
|
+
}
|
|
492
|
+
/** 导入列声明。 */
|
|
493
|
+
export interface ImportColumn {
|
|
494
|
+
key: string;
|
|
495
|
+
title: string;
|
|
496
|
+
required?: boolean;
|
|
497
|
+
dictTypeCode?: string | null;
|
|
498
|
+
hint?: string | null;
|
|
499
|
+
width?: number;
|
|
500
|
+
}
|
|
501
|
+
/** 导出列声明(前端选列弹窗用;DefaultSelected 决定默认勾选)。 */
|
|
502
|
+
export interface ExportColumnDef {
|
|
503
|
+
key: string;
|
|
504
|
+
title: string;
|
|
505
|
+
defaultSelected?: boolean;
|
|
506
|
+
}
|
|
507
|
+
/** 单元格级错误:只带码,文案由前端 translateError(code) 渲染。 */
|
|
508
|
+
export interface CellError {
|
|
509
|
+
columnKey: string;
|
|
510
|
+
code: number;
|
|
511
|
+
args?: Record<string, unknown> | null;
|
|
512
|
+
}
|
|
513
|
+
/** 一行导入数据;单元格一律字符串。 */
|
|
514
|
+
export interface ImportRow {
|
|
515
|
+
index: number;
|
|
516
|
+
cells: Record<string, string | null | undefined>;
|
|
517
|
+
errors: CellError[];
|
|
518
|
+
}
|
|
519
|
+
/** 预览 / 重验结果。 */
|
|
520
|
+
export interface ImportPreview {
|
|
521
|
+
headers: string[];
|
|
522
|
+
/** 表头文本 → 列 Key */
|
|
523
|
+
mapping: Record<string, string>;
|
|
524
|
+
columns: ImportColumn[];
|
|
525
|
+
rows: ImportRow[];
|
|
526
|
+
total: number;
|
|
527
|
+
errorRows: number;
|
|
528
|
+
columnErrors: CellError[];
|
|
529
|
+
}
|
|
530
|
+
/** 重复处理策略(与后端 DuplicateStrategy 一致)。 */
|
|
531
|
+
export declare enum DuplicateStrategy {
|
|
532
|
+
Skip = 0,
|
|
533
|
+
Overwrite = 1,
|
|
534
|
+
Error = 2
|
|
535
|
+
}
|
|
536
|
+
/** 提交结果。 */
|
|
537
|
+
export interface ImportCommitResult {
|
|
538
|
+
total: number;
|
|
539
|
+
inserted: number;
|
|
540
|
+
updated: number;
|
|
541
|
+
skipped: number;
|
|
542
|
+
failed: number;
|
|
543
|
+
failures: ImportRow[];
|
|
544
|
+
}
|
|
545
|
+
/** 载荷类型(后端 JobHandlerKind;存库 int)。 */
|
|
546
|
+
export declare enum JobHandlerKind {
|
|
547
|
+
Compiled = 1,
|
|
548
|
+
Http = 2,
|
|
549
|
+
Sql = 3
|
|
550
|
+
}
|
|
551
|
+
/** 触发类型(后端 JobTriggerKind)。 */
|
|
552
|
+
export declare enum JobTriggerKind {
|
|
553
|
+
Cron = 1,
|
|
554
|
+
Interval = 2,
|
|
555
|
+
OneShot = 3
|
|
556
|
+
}
|
|
557
|
+
/** 错过策略(后端 JobMisfireStrategy)。 */
|
|
558
|
+
export declare enum JobMisfireStrategy {
|
|
559
|
+
Skip = 1,
|
|
560
|
+
FireOnceNow = 2
|
|
561
|
+
}
|
|
562
|
+
/** 并发模式(后端 JobConcurrencyMode;SerialSkip=上次未结束则跳过本次)。 */
|
|
563
|
+
export declare enum JobConcurrencyMode {
|
|
564
|
+
SerialSkip = 1,
|
|
565
|
+
Parallel = 2
|
|
566
|
+
}
|
|
567
|
+
/** 任务状态(后端 JobStatus;无 Running 态——"正在运行"由未闭合执行记录推导)。 */
|
|
568
|
+
export declare enum JobStatus {
|
|
569
|
+
Ready = 1,
|
|
570
|
+
Paused = 2,
|
|
571
|
+
Completed = 3,
|
|
572
|
+
Panic = 4
|
|
573
|
+
}
|
|
574
|
+
/** 单次执行结果(后端 JobRunStatus)。 */
|
|
575
|
+
export declare enum JobRunStatus {
|
|
576
|
+
Running = 1,
|
|
577
|
+
Success = 2,
|
|
578
|
+
Failed = 3,
|
|
579
|
+
Timeout = 4,
|
|
580
|
+
Cancelled = 5,
|
|
581
|
+
Skipped = 6
|
|
582
|
+
}
|
|
583
|
+
/** 触发来源(后端 JobFireMode)。 */
|
|
584
|
+
export declare enum JobFireMode {
|
|
585
|
+
Schedule = 1,
|
|
586
|
+
Manual = 2,
|
|
587
|
+
Misfire = 3,
|
|
588
|
+
MissedSkipped = 4
|
|
589
|
+
}
|
|
590
|
+
/** 任务行(后端 SysJob;page 返回整行,编辑表单直接用行数据回填)。 */
|
|
591
|
+
export interface SysJob {
|
|
592
|
+
id: number;
|
|
593
|
+
code: string;
|
|
594
|
+
name: string;
|
|
595
|
+
handlerKind: JobHandlerKind;
|
|
596
|
+
handlerName: string;
|
|
597
|
+
/** 属性包 JSON(Dictionary<string,string?> 字符串化;HTTP 的 headers 值读取时已被掩码)。 */
|
|
598
|
+
propsJson?: string | null;
|
|
599
|
+
triggerKind: JobTriggerKind;
|
|
600
|
+
cronExpression?: string | null;
|
|
601
|
+
intervalSeconds?: number | null;
|
|
602
|
+
oneShotTime?: string | null;
|
|
603
|
+
startTime?: string | null;
|
|
604
|
+
endTime?: string | null;
|
|
605
|
+
misfireStrategy: JobMisfireStrategy;
|
|
606
|
+
concurrencyMode: JobConcurrencyMode;
|
|
607
|
+
status: JobStatus;
|
|
608
|
+
nextRunTime?: string | null;
|
|
609
|
+
lastRunTime?: string | null;
|
|
610
|
+
numberOfRuns: number;
|
|
611
|
+
numberOfErrors: number;
|
|
612
|
+
consecutiveErrors: number;
|
|
613
|
+
timeoutSeconds: number;
|
|
614
|
+
retryCount: number;
|
|
615
|
+
retryIntervalSeconds: number;
|
|
616
|
+
failAlertThreshold: number;
|
|
617
|
+
alertByNotice: boolean;
|
|
618
|
+
alertEmails?: string | null;
|
|
619
|
+
isSystem: boolean;
|
|
620
|
+
remark?: string | null;
|
|
621
|
+
createTime?: string;
|
|
622
|
+
}
|
|
623
|
+
/** 任务新增/编辑入参(后端 JobInput;code 仅新增时生效,更新被服务层忽略)。 */
|
|
624
|
+
export interface JobInput {
|
|
625
|
+
code: string;
|
|
626
|
+
name: string;
|
|
627
|
+
handlerKind: JobHandlerKind;
|
|
628
|
+
/** 编译类填处理器标识;HTTP/SQL 由服务端固定填内置处理器名,传空即可。 */
|
|
629
|
+
handlerName: string;
|
|
630
|
+
/** 属性包对象(非字符串!后端存成 propsJson;HTTP 的 headers 子键值对序列化成 JSON 字符串放 properties.headers)。 */
|
|
631
|
+
properties?: Record<string, string> | null;
|
|
632
|
+
triggerKind: JobTriggerKind;
|
|
633
|
+
cronExpression?: string | null;
|
|
634
|
+
/** ≥5(<5 后端拒 47004)。 */
|
|
635
|
+
intervalSeconds?: number | null;
|
|
636
|
+
oneShotTime?: string | null;
|
|
637
|
+
startTime?: string | null;
|
|
638
|
+
endTime?: string | null;
|
|
639
|
+
misfireStrategy: JobMisfireStrategy;
|
|
640
|
+
concurrencyMode: JobConcurrencyMode;
|
|
641
|
+
timeoutSeconds: number;
|
|
642
|
+
retryCount: number;
|
|
643
|
+
retryIntervalSeconds: number;
|
|
644
|
+
failAlertThreshold: number;
|
|
645
|
+
alertByNotice: boolean;
|
|
646
|
+
alertEmails?: string | null;
|
|
647
|
+
remark?: string | null;
|
|
648
|
+
}
|
|
649
|
+
/** 执行记录行(后端 SysJobLog;endTime 为空 = 运行中,同 fireInstanceId 聚合重试)。 */
|
|
650
|
+
export interface SysJobLog {
|
|
651
|
+
id: number;
|
|
652
|
+
jobId: number;
|
|
653
|
+
jobName: string;
|
|
654
|
+
fireInstanceId: number;
|
|
655
|
+
retryIndex: number;
|
|
656
|
+
fireMode: JobFireMode;
|
|
657
|
+
scheduledTime: string;
|
|
658
|
+
startTime: string;
|
|
659
|
+
endTime?: string | null;
|
|
660
|
+
runStatus: JobRunStatus;
|
|
661
|
+
elapsedMs: number;
|
|
662
|
+
nodeName: string;
|
|
663
|
+
killRequested: boolean;
|
|
664
|
+
messageText?: string | null;
|
|
665
|
+
errorText?: string | null;
|
|
666
|
+
createTime?: string;
|
|
667
|
+
}
|
|
668
|
+
/** cron 预览结果(后端 CronPreviewOutput)。 */
|
|
669
|
+
export interface CronPreviewOutput {
|
|
670
|
+
normalized: string;
|
|
671
|
+
occurrences: string[];
|
|
672
|
+
/** 秒段等效每秒执行的告警(仅提示,不拦截)。 */
|
|
673
|
+
everySecondWarning: boolean;
|
|
674
|
+
}
|
|
675
|
+
/** 处理器清单(后端 JobHandlersOutput)。 */
|
|
676
|
+
export interface JobHandlersOutput {
|
|
677
|
+
/** 已注册的编译类处理器名(IAdminJob.Name)。 */
|
|
678
|
+
handlers: string[];
|
|
679
|
+
/** SQL 载荷总闸(SmartAdmin:Jobs:Sql:Enabled);false 时前端禁选 SQL 并提示。 */
|
|
680
|
+
sqlEnabled: boolean;
|
|
681
|
+
}
|
|
682
|
+
/** 成败趋势的一天。 */
|
|
683
|
+
export interface JobTrendPoint {
|
|
684
|
+
date: string;
|
|
685
|
+
success: number;
|
|
686
|
+
failed: number;
|
|
687
|
+
}
|
|
688
|
+
/** 即将执行的一项。 */
|
|
689
|
+
export interface JobUpcomingItem {
|
|
690
|
+
jobId: number;
|
|
691
|
+
name: string;
|
|
692
|
+
nextRunTime: string;
|
|
693
|
+
}
|
|
694
|
+
/** 集群节点一行(角色由与锁行比对得出)。 */
|
|
695
|
+
export interface JobNodeItem {
|
|
696
|
+
nodeName: string;
|
|
697
|
+
hostName: string;
|
|
698
|
+
isLeader: boolean;
|
|
699
|
+
lastHeartbeat: string;
|
|
700
|
+
workerId: number;
|
|
701
|
+
pid: number;
|
|
702
|
+
}
|
|
703
|
+
/** 任务监控仪表盘(后端 JobDashboardOutput)。 */
|
|
704
|
+
export interface JobDashboard {
|
|
705
|
+
todaySuccess: number;
|
|
706
|
+
todayFailed: number;
|
|
707
|
+
running: number;
|
|
708
|
+
totalJobs: number;
|
|
709
|
+
/** 按状态的任务数(键 = Ready/Paused/Completed/Panic)。 */
|
|
710
|
+
statusCounts: Record<string, number>;
|
|
711
|
+
trend: JobTrendPoint[];
|
|
712
|
+
upcoming: JobUpcomingItem[];
|
|
713
|
+
nodes: JobNodeItem[];
|
|
714
|
+
}
|