smart-admin-web 10.14.0 → 10.20.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/README.md +6 -6
- package/dist/api/index.d.ts +41 -2
- package/dist/api/index.js +36 -15
- package/dist/api/index.js.map +1 -1
- package/dist/api/schema.d.ts +418 -6
- package/dist/assets/icons/ph-subset.json.js +7 -7
- package/dist/assets/smart-logo.svg.js +5 -0
- package/dist/assets/smart-logo.svg.js.map +1 -0
- package/dist/components/AppIcon.vue.js +9 -9
- package/dist/components/AppIcon.vue.js.map +1 -1
- package/dist/components/AppWatermark.vue.d.ts +14 -0
- package/dist/components/AppWatermark.vue.js +38 -0
- package/dist/components/AppWatermark.vue.js.map +1 -0
- package/dist/components/AppWatermark2.vue.js +5 -0
- package/dist/components/AppWatermark2.vue.js.map +1 -0
- package/dist/components/Chart/PieChart.vue.d.ts +1 -1
- package/dist/components/Chart/echarts.js +15 -20
- package/dist/components/Chart/echarts.js.map +1 -1
- package/dist/components/CronEditor/index.vue.js +1 -1
- package/dist/components/CronEditor/index2.vue.js +2 -1
- package/dist/components/CronEditor/index2.vue.js.map +1 -1
- package/dist/components/DetailPage/index.vue.js +2 -2
- package/dist/components/DetailPage/index2.vue.js.map +1 -1
- package/dist/components/DictTag/index.vue.js.map +1 -1
- package/dist/components/ErrorBoundary/index.vue.js +2 -2
- package/dist/components/ErrorBoundary/index2.vue.js +1 -1
- package/dist/components/ErrorBoundary/index2.vue.js.map +1 -1
- package/dist/components/FormContainer/index.vue.js +91 -56
- package/dist/components/FormContainer/index.vue.js.map +1 -1
- package/dist/components/ImportWizard/index.vue.js +1 -1
- package/dist/components/ImportWizard/index2.vue.js +44 -41
- package/dist/components/ImportWizard/index2.vue.js.map +1 -1
- package/dist/components/MenuSearch.vue.js +2 -2
- package/dist/components/MenuSearch2.vue.js +19 -18
- package/dist/components/MenuSearch2.vue.js.map +1 -1
- package/dist/components/PasswordStrength/index.vue.js +2 -2
- package/dist/components/PasswordStrength/index2.vue.js +20 -18
- package/dist/components/PasswordStrength/index2.vue.js.map +1 -1
- package/dist/components/SmartLogo.vue.d.ts +3 -0
- package/dist/components/SmartLogo.vue.js +1 -1
- package/dist/components/SmartLogo2.vue.js +22 -64
- package/dist/components/SmartLogo2.vue.js.map +1 -1
- package/dist/{views/system/config/components/GroupExtraConfig.vue.d.ts → components/TableTotal/index.vue.d.ts} +1 -4
- package/dist/components/{SelectTable → TableTotal}/index.vue.js +1 -1
- package/dist/components/TableTotal/index2.vue.js +16 -0
- package/dist/components/TableTotal/index2.vue.js.map +1 -0
- package/dist/components/TableZoomButton/index.vue.js.map +1 -1
- package/dist/components/UserPicker/index.vue.js +2 -2
- package/dist/components/UserPicker/index2.vue.js +176 -117
- package/dist/components/UserPicker/index2.vue.js.map +1 -1
- package/dist/composables/useBatchDelete.js.map +1 -1
- package/dist/composables/useLayoutMenu.js +17 -16
- package/dist/composables/useLayoutMenu.js.map +1 -1
- package/dist/composables/useLoginHero.d.ts +2 -0
- package/dist/composables/useLoginHero.js +22 -0
- package/dist/composables/useLoginHero.js.map +1 -0
- package/dist/composables/useModule.js +39 -29
- package/dist/composables/useModule.js.map +1 -1
- package/dist/composables/usePageTitle.js +16 -14
- package/dist/composables/usePageTitle.js.map +1 -1
- package/dist/composables/useShellBreakpoint.d.ts +19 -0
- package/dist/composables/useShellBreakpoint.js +37 -0
- package/dist/composables/useShellBreakpoint.js.map +1 -0
- package/dist/composables/useSite.d.ts +20 -0
- package/dist/composables/useSite.js +18 -13
- package/dist/composables/useSite.js.map +1 -1
- package/dist/composables/useTabTitle.js.map +1 -1
- package/dist/composables/useTableTitle.d.ts +6 -0
- package/dist/composables/useTableTitle.js +11 -0
- package/dist/composables/useTableTitle.js.map +1 -0
- package/dist/composables/useTableZoom.d.ts +5 -0
- package/dist/composables/useTableZoom.js.map +1 -1
- package/dist/composables/useTheme.d.ts +2 -2
- package/dist/composables/useTheme.js +23 -20
- package/dist/composables/useTheme.js.map +1 -1
- package/dist/createSmartAdmin.d.ts +12 -2
- package/dist/createSmartAdmin.js +72 -60
- package/dist/createSmartAdmin.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +223 -208
- package/dist/index.js.map +1 -1
- package/dist/layouts/AccentPicker.vue.js +8 -0
- package/dist/layouts/AccentPicker.vue.js.map +1 -0
- package/dist/layouts/AccentPicker2.vue.js +131 -0
- package/dist/layouts/AccentPicker2.vue.js.map +1 -0
- package/dist/layouts/AppHeader.vue.d.ts +8 -1
- package/dist/layouts/AppHeader.vue.js +2 -2
- package/dist/layouts/AppHeader2.vue.js +317 -235
- package/dist/layouts/AppHeader2.vue.js.map +1 -1
- package/dist/layouts/NoticeBell.vue.js +2 -2
- package/dist/layouts/NoticeBell2.vue.js +1 -1
- package/dist/layouts/NoticeBell2.vue.js.map +1 -1
- package/dist/layouts/PersonalLayout.vue.js +2 -2
- package/dist/layouts/PersonalLayout2.vue.js +69 -47
- package/dist/layouts/PersonalLayout2.vue.js.map +1 -1
- package/dist/layouts/SettingsDrawer.vue.js +3 -3
- package/dist/layouts/SettingsDrawer2.vue.js +261 -325
- package/dist/layouts/SettingsDrawer2.vue.js.map +1 -1
- package/dist/layouts/TabsBar.vue.js +2 -2
- package/dist/layouts/TabsBar2.vue.js +97 -69
- package/dist/layouts/TabsBar2.vue.js.map +1 -1
- package/dist/layouts/components/SideNav.vue.d.ts +3 -0
- package/dist/layouts/components/SideNav.vue.js +1 -1
- package/dist/layouts/components/SideNav2.vue.js +54 -26
- package/dist/layouts/components/SideNav2.vue.js.map +1 -1
- package/dist/layouts/default.vue.js +1 -1
- package/dist/layouts/default2.vue.js +170 -140
- package/dist/layouts/default2.vue.js.map +1 -1
- package/dist/lib/favicon.d.ts +1 -0
- package/dist/lib/favicon.js +12 -0
- package/dist/lib/favicon.js.map +1 -0
- package/dist/lib/loginHero.d.ts +16 -0
- package/dist/lib/loginHero.js +33 -0
- package/dist/lib/loginHero.js.map +1 -0
- package/dist/lib/logoCrop.d.ts +25 -0
- package/dist/lib/logoCrop.js +22 -0
- package/dist/lib/logoCrop.js.map +1 -0
- package/dist/lib/runtime.d.ts +2 -0
- package/dist/lib/runtime.js +1 -1
- package/dist/lib/runtime.js.map +1 -1
- package/dist/lib/securityRules.d.ts +26 -0
- package/dist/lib/securityRules.js +86 -0
- package/dist/lib/securityRules.js.map +1 -0
- package/dist/lib/watermark.d.ts +110 -0
- package/dist/lib/watermark.js +151 -0
- package/dist/lib/watermark.js.map +1 -0
- package/dist/locales/en-US.d.ts +462 -42
- package/dist/locales/en-US.js +491 -78
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/kernelMenuTitles.d.ts +1 -0
- package/dist/locales/kernelMenuTitles.js +128 -0
- package/dist/locales/kernelMenuTitles.js.map +1 -0
- package/dist/locales/menuTitle.d.ts +3 -0
- package/dist/locales/menuTitle.js +14 -12
- package/dist/locales/menuTitle.js.map +1 -1
- package/dist/locales/zh-CN.d.ts +462 -42
- package/dist/locales/zh-CN.js +490 -81
- package/dist/locales/zh-CN.js.map +1 -1
- package/dist/router/index.js +41 -32
- package/dist/router/index.js.map +1 -1
- package/dist/router/namedPage.d.ts +4 -0
- package/dist/router/namedPage.js +7 -7
- package/dist/router/namedPage.js.map +1 -1
- package/dist/router/viewRegistry.js +12 -12
- package/dist/router/viewRegistry.js.map +1 -1
- package/dist/stores/app.d.ts +0 -12
- package/dist/stores/app.js +11 -12
- package/dist/stores/app.js.map +1 -1
- package/dist/stores/tabs.js.map +1 -1
- package/dist/stores/user.d.ts +10 -0
- package/dist/stores/user.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/accentTokens.d.ts +27 -0
- package/dist/theme/accentTokens.js +54 -0
- package/dist/theme/accentTokens.js.map +1 -0
- package/dist/theme/accents.d.ts +21 -1
- package/dist/theme/accents.js +11 -2
- package/dist/theme/accents.js.map +1 -1
- package/dist/theme/mix.d.ts +58 -7
- package/dist/theme/mix.js +115 -30
- package/dist/theme/mix.js.map +1 -1
- package/dist/theme/naive-theme.d.ts +5 -2
- package/dist/theme/naive-theme.js +405 -75
- package/dist/theme/naive-theme.js.map +1 -1
- package/dist/utils/jwt.d.ts +8 -0
- package/dist/utils/jwt.js +14 -0
- package/dist/utils/jwt.js.map +1 -0
- package/dist/utils/menuIcon.d.ts +2 -0
- package/dist/utils/menuIcon.js +8 -0
- package/dist/utils/menuIcon.js.map +1 -0
- package/dist/utils/oauthBrand.d.ts +34 -9
- package/dist/utils/oauthBrand.js +70 -74
- package/dist/utils/oauthBrand.js.map +1 -1
- package/dist/utils/tableFilter.d.ts +88 -0
- package/dist/utils/tableFilter.js +116 -0
- package/dist/utils/tableFilter.js.map +1 -0
- package/dist/utils/tableToolbar.d.ts +18 -0
- package/dist/utils/tableToolbar.js +11 -0
- package/dist/utils/tableToolbar.js.map +1 -0
- package/dist/utils/treeFilter.d.ts +20 -0
- package/dist/utils/treeFilter.js +24 -0
- package/dist/utils/treeFilter.js.map +1 -0
- package/dist/views/dashboard/ShortcutPicker.vue.js +1 -1
- package/dist/views/dashboard/ShortcutPicker2.vue.js +73 -48
- package/dist/views/dashboard/ShortcutPicker2.vue.js.map +1 -1
- package/dist/views/dashboard/biz.vue.js +1 -1
- package/dist/views/dashboard/biz2.vue.js +310 -257
- package/dist/views/dashboard/biz2.vue.js.map +1 -1
- package/dist/views/dashboard/workbench.vue.js +2 -2
- package/dist/views/dashboard/workbench2.vue.js +141 -155
- package/dist/views/dashboard/workbench2.vue.js.map +1 -1
- package/dist/views/embed/iframe.vue.js +2 -2
- package/dist/views/embed/iframe2.vue.js +22 -15
- package/dist/views/embed/iframe2.vue.js.map +1 -1
- package/dist/views/error/404.vue.js +2 -2
- package/dist/views/error/4042.vue.js +33 -24
- package/dist/views/error/4042.vue.js.map +1 -1
- package/dist/views/error/BootError.vue.js +1 -1
- package/dist/views/error/BootError2.vue.js +59 -48
- package/dist/views/error/BootError2.vue.js.map +1 -1
- package/dist/views/error/MissingRoute.vue.js +2 -2
- package/dist/views/error/MissingRoute2.vue.js +34 -15
- package/dist/views/error/MissingRoute2.vue.js.map +1 -1
- package/dist/views/login/LoginForm.vue.d.ts +7 -1
- package/dist/views/login/LoginForm.vue.js +2 -2
- package/dist/views/login/LoginForm2.vue.js +580 -488
- package/dist/views/login/LoginForm2.vue.js.map +1 -1
- package/dist/views/login/components/LoginDesk.vue.d.ts +36 -0
- package/dist/views/login/components/LoginDesk.vue.js +9 -0
- package/dist/views/login/components/LoginDesk.vue.js.map +1 -0
- package/dist/views/login/components/LoginDesk2.vue.js +100 -0
- package/dist/views/login/components/LoginDesk2.vue.js.map +1 -0
- package/dist/views/login/components/LoginHeroPanel.vue.d.ts +18 -0
- package/dist/views/login/components/LoginHeroPanel.vue.js +8 -0
- package/dist/views/login/components/LoginHeroPanel.vue.js.map +1 -0
- package/dist/views/login/components/LoginHeroPanel2.vue.js +61 -0
- package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -0
- package/dist/views/login/index.vue.js +1 -1
- package/dist/views/login/index2.vue.js +141 -71
- package/dist/views/login/index2.vue.js.map +1 -1
- package/dist/views/login/layout.d.ts +11 -0
- package/dist/views/login/layout.js +27 -0
- package/dist/views/login/layout.js.map +1 -0
- package/dist/views/mfa/index.vue.js +2 -2
- package/dist/views/mfa/index2.vue.js +367 -321
- package/dist/views/mfa/index2.vue.js.map +1 -1
- package/dist/views/module/index.vue.js +2 -2
- package/dist/views/module/index2.vue.js +132 -99
- package/dist/views/module/index2.vue.js.map +1 -1
- package/dist/views/oauth/callback.vue.js +2 -2
- package/dist/views/oauth/callback2.vue.js +65 -51
- package/dist/views/oauth/callback2.vue.js.map +1 -1
- package/dist/views/personal/bindings.vue.js +2 -2
- package/dist/views/personal/bindings2.vue.js +98 -94
- package/dist/views/personal/bindings2.vue.js.map +1 -1
- package/dist/views/personal/notice2.vue.js +103 -76
- package/dist/views/personal/notice2.vue.js.map +1 -1
- package/dist/views/personal/password2.vue.js +47 -40
- package/dist/views/personal/password2.vue.js.map +1 -1
- package/dist/views/personal/profile.vue.js +3 -3
- package/dist/views/personal/profile2.vue.js +24 -18
- package/dist/views/personal/profile2.vue.js.map +1 -1
- package/dist/views/personal/security.vue.js +2 -2
- package/dist/views/personal/security2.vue.js +65 -53
- package/dist/views/personal/security2.vue.js.map +1 -1
- package/dist/views/personal/sessions.vue.js +2 -2
- package/dist/views/personal/sessions2.vue.js +67 -62
- package/dist/views/personal/sessions2.vue.js.map +1 -1
- package/dist/views/system/ai-model/components/ProviderCard.vue.js +2 -2
- package/dist/views/system/ai-model/components/ProviderCard2.vue.js +142 -130
- package/dist/views/system/ai-model/components/ProviderCard2.vue.js.map +1 -1
- package/dist/views/system/ai-model/components/ProviderForm.vue.js +2 -2
- package/dist/views/system/ai-model/components/ProviderForm2.vue.js +71 -70
- package/dist/views/system/ai-model/components/ProviderForm2.vue.js.map +1 -1
- package/dist/views/system/ai-model/index.vue.js +2 -2
- package/dist/views/system/ai-model/index2.vue.js +99 -99
- package/dist/views/system/ai-model/index2.vue.js.map +1 -1
- package/dist/views/system/ai-model/presets.d.ts +1 -1
- package/dist/views/system/ai-model/presets.js +18 -18
- package/dist/views/system/ai-model/presets.js.map +1 -1
- package/dist/views/system/ai-usage/index.vue.js +2 -2
- package/dist/views/system/ai-usage/index2.vue.js +356 -258
- package/dist/views/system/ai-usage/index2.vue.js.map +1 -1
- package/dist/views/system/api-docs/index.vue.js +5 -2
- package/dist/views/system/api-docs/index.vue.js.map +1 -1
- package/dist/views/system/api-docs/index2.vue.js +92 -42
- package/dist/views/system/api-docs/index2.vue.js.map +1 -1
- package/dist/views/system/cache/index.vue.js +2 -2
- package/dist/views/system/cache/index2.vue.js +74 -80
- package/dist/views/system/cache/index2.vue.js.map +1 -1
- package/dist/views/system/config/components/AdminMock.vue.js +8 -0
- package/dist/views/system/config/components/AdminMock.vue.js.map +1 -0
- package/dist/views/system/config/components/AdminMock2.vue.js +93 -0
- package/dist/views/system/config/components/AdminMock2.vue.js.map +1 -0
- package/dist/views/system/config/components/AdvancedSection.vue.js +8 -0
- package/dist/views/system/config/components/AdvancedSection.vue.js.map +1 -0
- package/dist/views/system/config/components/AdvancedSection2.vue.js +163 -0
- package/dist/views/system/config/components/AdvancedSection2.vue.js.map +1 -0
- package/dist/views/system/config/components/BrandSection.vue.d.ts +7 -0
- package/dist/views/system/config/components/BrandSection.vue.js +8 -0
- package/dist/views/system/config/components/BrandSection.vue.js.map +1 -0
- package/dist/views/system/config/components/BrandSection2.vue.js +266 -0
- package/dist/views/system/config/components/BrandSection2.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgGroup.vue.d.ts +18 -0
- package/dist/views/system/config/components/CfgGroup.vue.js +8 -0
- package/dist/views/system/config/components/CfgGroup.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgGroup2.vue.js +22 -0
- package/dist/views/system/config/components/CfgGroup2.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgRow.vue.d.ts +26 -0
- package/dist/views/system/config/components/CfgRow.vue.js +9 -0
- package/dist/views/system/config/components/CfgRow.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgRow2.vue.js +54 -0
- package/dist/views/system/config/components/CfgRow2.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgSegment.vue.d.ts +28 -0
- package/dist/views/system/config/components/CfgSegment.vue.js +8 -0
- package/dist/views/system/config/components/CfgSegment.vue.js.map +1 -0
- package/dist/views/system/config/components/CfgSegment2.vue.js +45 -0
- package/dist/views/system/config/components/CfgSegment2.vue.js.map +1 -0
- package/dist/views/system/config/components/ConfigFormModal.vue.js +4 -1
- package/dist/views/system/config/components/ConfigFormModal.vue.js.map +1 -1
- package/dist/views/system/config/components/ConfigFormModal2.vue.js +72 -60
- package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -1
- package/dist/views/system/config/components/JobSection.vue.js +8 -0
- package/dist/views/system/config/components/JobSection.vue.js.map +1 -0
- package/dist/views/system/config/components/JobSection2.vue.js +140 -0
- package/dist/views/system/config/components/JobSection2.vue.js.map +1 -0
- package/dist/views/system/config/components/LoginMock.vue.d.ts +8 -0
- package/dist/views/system/config/components/LoginMock.vue.js +8 -0
- package/dist/views/system/config/components/LoginMock.vue.js.map +1 -0
- package/dist/views/system/config/components/LoginMock2.vue.js +132 -0
- package/dist/views/system/config/components/LoginMock2.vue.js.map +1 -0
- package/dist/views/system/config/components/LogoCropper.vue.d.ts +10 -0
- package/dist/views/system/config/components/LogoCropper.vue.js +8 -0
- package/dist/views/system/config/components/LogoCropper.vue.js.map +1 -0
- package/dist/views/system/config/components/LogoCropper2.vue.js +122 -0
- package/dist/views/system/config/components/LogoCropper2.vue.js.map +1 -0
- package/dist/views/system/config/components/LogoEditor.vue.js +8 -0
- package/dist/views/system/config/components/LogoEditor.vue.js.map +1 -0
- package/dist/views/system/config/components/LogoEditor2.vue.js +161 -0
- package/dist/views/system/config/components/LogoEditor2.vue.js.map +1 -0
- package/dist/views/system/config/components/ProviderSheet.vue.d.ts +17 -0
- package/dist/views/system/config/components/ProviderSheet.vue.js +8 -0
- package/dist/views/system/config/components/ProviderSheet.vue.js.map +1 -0
- package/dist/views/system/config/components/ProviderSheet2.vue.js +343 -0
- package/dist/views/system/config/components/ProviderSheet2.vue.js.map +1 -0
- package/dist/{layouts/SettingRow.vue.d.ts → views/system/config/components/ScaleToFit.vue.d.ts} +2 -1
- package/dist/views/system/config/components/ScaleToFit.vue.js +8 -0
- package/dist/views/system/config/components/ScaleToFit.vue.js.map +1 -0
- package/dist/views/system/config/components/ScaleToFit2.vue.js +41 -0
- package/dist/views/system/config/components/ScaleToFit2.vue.js.map +1 -0
- package/dist/views/system/config/components/SectionLayout.vue.d.ts +30 -0
- package/dist/views/system/config/components/SectionLayout.vue.js +8 -0
- package/dist/views/system/config/components/SectionLayout.vue.js.map +1 -0
- package/dist/views/system/config/components/SectionLayout2.vue.js +69 -0
- package/dist/views/system/config/components/SectionLayout2.vue.js.map +1 -0
- package/dist/views/system/config/components/SecuritySection.vue.js +8 -0
- package/dist/views/system/config/components/SecuritySection.vue.js.map +1 -0
- package/dist/views/system/config/components/SecuritySection2.vue.js +417 -0
- package/dist/views/system/config/components/SecuritySection2.vue.js.map +1 -0
- package/dist/views/system/config/components/SensitiveSection.vue.js +8 -0
- package/dist/views/system/config/components/SensitiveSection.vue.js.map +1 -0
- package/dist/views/system/config/components/SensitiveSection2.vue.js +214 -0
- package/dist/views/system/config/components/SensitiveSection2.vue.js.map +1 -0
- package/dist/views/system/config/components/SigninSection.vue.js +8 -0
- package/dist/views/system/config/components/SigninSection.vue.js.map +1 -0
- package/dist/views/system/config/components/SigninSection2.vue.js +201 -0
- package/dist/views/system/config/components/SigninSection2.vue.js.map +1 -0
- package/dist/views/system/config/components/UploadSection.vue.js +8 -0
- package/dist/views/system/config/components/UploadSection.vue.js.map +1 -0
- package/dist/views/system/config/components/UploadSection2.vue.js +176 -0
- package/dist/views/system/config/components/UploadSection2.vue.js.map +1 -0
- package/dist/views/system/config/components/WatermarkSection.vue.js +8 -0
- package/dist/views/system/config/components/WatermarkSection.vue.js.map +1 -0
- package/dist/views/system/config/components/WatermarkSection2.vue.js +284 -0
- package/dist/views/system/config/components/WatermarkSection2.vue.js.map +1 -0
- package/dist/views/system/config/draft.d.ts +148 -0
- package/dist/views/system/config/draft.js +170 -0
- package/dist/views/system/config/draft.js.map +1 -0
- package/dist/views/system/config/flash.d.ts +2 -0
- package/dist/views/system/config/flash.js +9 -0
- package/dist/views/system/config/flash.js.map +1 -0
- package/dist/views/system/config/groups.d.ts +38 -7
- package/dist/views/system/config/groups.js +104 -14
- package/dist/views/system/config/groups.js.map +1 -1
- package/dist/views/system/config/index.vue.js +6 -2
- package/dist/views/system/config/index.vue.js.map +1 -1
- package/dist/views/system/config/index2.vue.js +201 -111
- package/dist/views/system/config/index2.vue.js.map +1 -1
- package/dist/views/system/config/layoutMode.d.ts +23 -0
- package/dist/views/system/config/layoutMode.js +28 -0
- package/dist/views/system/config/layoutMode.js.map +1 -0
- package/dist/views/system/config/providerForm.d.ts +33 -0
- package/dist/views/system/config/providerForm.js +63 -0
- package/dist/views/system/config/providerForm.js.map +1 -0
- package/dist/views/system/dict/index.vue.js +2 -2
- package/dist/views/system/dict/index2.vue.js +471 -366
- package/dist/views/system/dict/index2.vue.js.map +1 -1
- package/dist/views/system/file/index2.vue.js +91 -76
- package/dist/views/system/file/index2.vue.js.map +1 -1
- package/dist/views/system/job/index.vue.js +3 -3
- package/dist/views/system/job/index2.vue.js +897 -828
- package/dist/views/system/job/index2.vue.js.map +1 -1
- package/dist/views/system/job-log/components/AttemptTable.vue.d.ts +8 -0
- package/dist/views/system/job-log/components/AttemptTable.vue.js +5 -0
- package/dist/views/system/job-log/components/AttemptTable.vue.js.map +1 -0
- package/dist/views/system/job-log/components/AttemptTable2.vue.js +54 -0
- package/dist/views/system/job-log/components/AttemptTable2.vue.js.map +1 -0
- package/dist/views/system/job-log/index.vue.js +2 -2
- package/dist/views/system/job-log/index2.vue.js +193 -207
- package/dist/views/system/job-log/index2.vue.js.map +1 -1
- package/dist/views/system/job-log/runStatus.d.ts +13 -0
- package/dist/views/system/job-log/runStatus.js +26 -0
- package/dist/views/system/job-log/runStatus.js.map +1 -0
- package/dist/views/system/job-monitor/index.vue.js +2 -2
- package/dist/views/system/job-monitor/index2.vue.js +172 -180
- package/dist/views/system/job-monitor/index2.vue.js.map +1 -1
- package/dist/views/system/log/exception/index.vue.js +2 -2
- package/dist/views/system/log/exception/index2.vue.js +135 -96
- package/dist/views/system/log/exception/index2.vue.js.map +1 -1
- package/dist/views/system/log/login/index2.vue.js +62 -41
- package/dist/views/system/log/login/index2.vue.js.map +1 -1
- package/dist/views/system/log/op/index.vue.js +2 -2
- package/dist/views/system/log/op/index2.vue.js +200 -162
- package/dist/views/system/log/op/index2.vue.js.map +1 -1
- package/dist/views/system/menu/components/ButtonManager.vue.js +2 -2
- package/dist/views/system/menu/components/ButtonManager2.vue.js +206 -190
- package/dist/views/system/menu/components/ButtonManager2.vue.js.map +1 -1
- package/dist/views/system/menu/components/MenuFormModal.vue.js +2 -2
- package/dist/views/system/menu/components/MenuFormModal2.vue.js +127 -118
- package/dist/views/system/menu/components/MenuFormModal2.vue.js.map +1 -1
- package/dist/views/system/menu/index.vue.js +1 -1
- package/dist/views/system/menu/index2.vue.js +216 -183
- package/dist/views/system/menu/index2.vue.js.map +1 -1
- package/dist/views/system/module/index.vue.js +1 -1
- package/dist/views/system/module/index2.vue.js +177 -144
- package/dist/views/system/module/index2.vue.js.map +1 -1
- package/dist/views/system/monitor/index.vue.js +2 -2
- package/dist/views/system/monitor/index2.vue.js +134 -149
- package/dist/views/system/monitor/index2.vue.js.map +1 -1
- package/dist/views/system/notice/index.vue.js +1 -1
- package/dist/views/system/notice/index2.vue.js +209 -181
- package/dist/views/system/notice/index2.vue.js.map +1 -1
- package/dist/views/system/org/index.vue.js +1 -1
- package/dist/views/system/org/index2.vue.js +278 -248
- package/dist/views/system/org/index2.vue.js.map +1 -1
- package/dist/views/system/position/index.vue.js +5 -2
- package/dist/views/system/position/index.vue.js.map +1 -1
- package/dist/views/system/position/index2.vue.js +128 -92
- package/dist/views/system/position/index2.vue.js.map +1 -1
- package/dist/views/system/recycle/index.vue.js +2 -2
- package/dist/views/system/recycle/index2.vue.js +90 -67
- package/dist/views/system/recycle/index2.vue.js.map +1 -1
- package/dist/views/system/role/components/GrantMenuSheet.vue.d.ts +20 -0
- package/dist/views/system/role/components/GrantMenuSheet.vue.js +8 -0
- package/dist/views/system/role/components/GrantMenuSheet.vue.js.map +1 -0
- package/dist/views/system/role/components/GrantMenuSheet2.vue.js +117 -0
- package/dist/views/system/role/components/GrantMenuSheet2.vue.js.map +1 -0
- package/dist/views/system/role/components/GrantMenuTable.vue.d.ts +6 -4
- package/dist/views/system/role/components/GrantMenuTable.vue.js +2 -2
- package/dist/views/system/role/components/GrantMenuTable2.vue.js +279 -177
- package/dist/views/system/role/components/GrantMenuTable2.vue.js.map +1 -1
- package/dist/views/system/role/components/MatchText.vue.d.ts +7 -0
- package/dist/views/system/role/components/MatchText.vue.js +8 -0
- package/dist/views/system/role/components/MatchText.vue.js.map +1 -0
- package/dist/views/system/role/components/MatchText2.vue.js +29 -0
- package/dist/views/system/role/components/MatchText2.vue.js.map +1 -0
- package/dist/views/system/role/components/grantMenuGroups.d.ts +36 -0
- package/dist/views/system/role/components/grantMenuGroups.js +110 -48
- package/dist/views/system/role/components/grantMenuGroups.js.map +1 -1
- package/dist/views/system/role/index.vue.js +5 -2
- package/dist/views/system/role/index.vue.js.map +1 -1
- package/dist/views/system/role/index2.vue.js +181 -165
- package/dist/views/system/role/index2.vue.js.map +1 -1
- package/dist/views/system/session/index2.vue.js +75 -49
- package/dist/views/system/session/index2.vue.js.map +1 -1
- package/dist/views/system/user/components/ResetPasswordModal.vue.js +2 -2
- package/dist/views/system/user/components/ResetPasswordModal2.vue.js +2 -0
- package/dist/views/system/user/components/ResetPasswordModal2.vue.js.map +1 -1
- package/dist/views/system/user/components/UserFormModal.vue.js +2 -2
- package/dist/views/system/user/components/UserFormModal2.vue.js +77 -76
- package/dist/views/system/user/components/UserFormModal2.vue.js.map +1 -1
- package/dist/views/system/user/index.vue.js +2 -2
- package/dist/views/system/user/index2.vue.js +362 -275
- package/dist/views/system/user/index2.vue.js.map +1 -1
- package/package.json +6 -8
- package/dist/components/SelectTable/index.vue.d.ts +0 -76
- package/dist/components/SelectTable/index2.vue.js +0 -256
- package/dist/components/SelectTable/index2.vue.js.map +0 -1
- package/dist/composables/useTableRowSort.d.ts +0 -20
- package/dist/composables/useTableRowSort.js +0 -59
- package/dist/composables/useTableRowSort.js.map +0 -1
- package/dist/layouts/LayoutModeCards.vue.js +0 -8
- package/dist/layouts/LayoutModeCards.vue.js.map +0 -1
- package/dist/layouts/LayoutModeCards2.vue.js +0 -67
- package/dist/layouts/LayoutModeCards2.vue.js.map +0 -1
- package/dist/layouts/SettingRow.vue.js +0 -8
- package/dist/layouts/SettingRow.vue.js.map +0 -1
- package/dist/layouts/SettingRow2.vue.js +0 -23
- package/dist/layouts/SettingRow2.vue.js.map +0 -1
- package/dist/views/login/skins/AuroraGlass.vue.js +0 -8
- package/dist/views/login/skins/AuroraGlass.vue.js.map +0 -1
- package/dist/views/login/skins/AuroraGlass2.vue.js +0 -80
- package/dist/views/login/skins/AuroraGlass2.vue.js.map +0 -1
- package/dist/views/login/skins/SplitPanel.vue.js +0 -8
- package/dist/views/login/skins/SplitPanel.vue.js.map +0 -1
- package/dist/views/login/skins/SplitPanel2.vue.js +0 -85
- package/dist/views/login/skins/SplitPanel2.vue.js.map +0 -1
- package/dist/views/login/skins/Spotlight.vue.js +0 -8
- package/dist/views/login/skins/Spotlight.vue.js.map +0 -1
- package/dist/views/login/skins/Spotlight2.vue.js +0 -36
- package/dist/views/login/skins/Spotlight2.vue.js.map +0 -1
- package/dist/views/login/skins.d.ts +0 -8
- package/dist/views/login/skins.js +0 -13
- package/dist/views/login/skins.js.map +0 -1
- package/dist/views/system/config/components/ExternalAuthConfig.vue.js +0 -8
- package/dist/views/system/config/components/ExternalAuthConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/ExternalAuthConfig2.vue.js +0 -218
- package/dist/views/system/config/components/ExternalAuthConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/GroupExtraConfig.vue.js +0 -8
- package/dist/views/system/config/components/GroupExtraConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/GroupExtraConfig2.vue.js +0 -108
- package/dist/views/system/config/components/GroupExtraConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/HighSensConfig.vue.js +0 -5
- package/dist/views/system/config/components/HighSensConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/HighSensConfig2.vue.js +0 -134
- package/dist/views/system/config/components/HighSensConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/JobConfig.vue.js +0 -5
- package/dist/views/system/config/components/JobConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/JobConfig2.vue.js +0 -116
- package/dist/views/system/config/components/JobConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/OtherConfig.vue.js +0 -5
- package/dist/views/system/config/components/OtherConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/OtherConfig2.vue.js +0 -121
- package/dist/views/system/config/components/OtherConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/SecurityConfig.vue.js +0 -8
- package/dist/views/system/config/components/SecurityConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/SecurityConfig2.vue.js +0 -456
- package/dist/views/system/config/components/SecurityConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/SysBaseConfig.vue.js +0 -5
- package/dist/views/system/config/components/SysBaseConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/SysBaseConfig2.vue.js +0 -107
- package/dist/views/system/config/components/SysBaseConfig2.vue.js.map +0 -1
- package/dist/views/system/config/components/UploadConfig.vue.d.ts +0 -3
- package/dist/views/system/config/components/UploadConfig.vue.js +0 -5
- package/dist/views/system/config/components/UploadConfig.vue.js.map +0 -1
- package/dist/views/system/config/components/UploadConfig2.vue.js +0 -135
- package/dist/views/system/config/components/UploadConfig2.vue.js.map +0 -1
- /package/dist/components/{SelectTable → TableTotal}/index.vue.js.map +0 -0
- /package/dist/layouts/{LayoutModeCards.vue.d.ts → AccentPicker.vue.d.ts} +0 -0
- /package/dist/views/{login/skins/AuroraGlass.vue.d.ts → system/config/components/AdminMock.vue.d.ts} +0 -0
- /package/dist/views/{login/skins/SplitPanel.vue.d.ts → system/config/components/AdvancedSection.vue.d.ts} +0 -0
- /package/dist/views/{login/skins/Spotlight.vue.d.ts → system/config/components/JobSection.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{ExternalAuthConfig.vue.d.ts → LogoEditor.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{HighSensConfig.vue.d.ts → SecuritySection.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{JobConfig.vue.d.ts → SensitiveSection.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{OtherConfig.vue.d.ts → SigninSection.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{SecurityConfig.vue.d.ts → UploadSection.vue.d.ts} +0 -0
- /package/dist/views/system/config/components/{SysBaseConfig.vue.d.ts → WatermarkSection.vue.d.ts} +0 -0
|
@@ -1,74 +1,89 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { defineComponent as Z, ref as d, computed as B, h as g, watch as ee, resolveDirective as le, openBlock as v, createElementBlock as O, Fragment as A, createVNode as r, unref as l, withCtx as a, withDirectives as te, createBlock as x, createTextVNode as m, toDisplayString as n, createElementVNode as w, normalizeStyle as oe, normalizeClass as ae, createCommentVNode as N } from "vue";
|
|
2
|
+
import { useShellBreakpoint as re } from "../../../composables/useShellBreakpoint.js";
|
|
3
|
+
import { useMessage as ie, NTag as E, NSpace as se, NButton as I, NForm as ne, NFormItem as ue, NSelect as de, NDrawer as me, NDrawerContent as ce, NDescriptions as be, NDescriptionsItem as u } from "naive-ui";
|
|
4
|
+
import { useRoute as pe } from "vue-router";
|
|
5
|
+
import { useI18n as fe } from "vue-i18n";
|
|
6
|
+
import { SmartTable as ge } from "smart-naive-table";
|
|
7
|
+
import ve from "../../../components/AppIcon.vue.js";
|
|
8
|
+
import he from "../../../components/FormContainer/index.vue.js";
|
|
8
9
|
/* empty css */
|
|
9
|
-
import { useConfirm as
|
|
10
|
-
import { useAuthStore as
|
|
11
|
-
import { jobApi as
|
|
12
|
-
import { translateError as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
10
|
+
import { useConfirm as ye } from "../../../composables/useConfirm.js";
|
|
11
|
+
import { useAuthStore as je } from "../../../stores/auth.js";
|
|
12
|
+
import { jobApi as h } from "../../../api/index.js";
|
|
13
|
+
import { translateError as F } from "../../../utils/error.js";
|
|
14
|
+
import { createFlatFilterSerializer as we, SEARCH_ACTIONS as z, deriveHeaderFilters as Te, presetEqualFilter as Se } from "../../../utils/tableFilter.js";
|
|
15
|
+
import { TABLE_MIN_ROW_HEIGHT as _e, TABLE_TOOLBAR as ke } from "../../../utils/tableToolbar.js";
|
|
16
|
+
import Me from "../../../components/TableTotal/index.vue.js";
|
|
17
|
+
import xe from "./components/AttemptTable2.vue.js";
|
|
18
|
+
import { isAlive as q, runStatusTagType as Ne, runStatusLabel as Ie } from "./runStatus.js";
|
|
19
|
+
import { fmtDateTime as $ } from "../../../utils/format.js";
|
|
20
|
+
import { JobFireMode as c, JobRunStatus as f } from "../../../types/api.js";
|
|
21
|
+
const ze = { class: "clear-hint" }, Ce = { class: "log-output" }, De = { class: "log-output log-error" }, Re = { class: "attempts-title" }, ll = /* @__PURE__ */ Z({
|
|
16
22
|
__name: "index",
|
|
17
|
-
setup(
|
|
18
|
-
const { t: e } =
|
|
23
|
+
setup(Be) {
|
|
24
|
+
const { t: e } = fe(), T = ie(), { confirm: H } = ye(), L = je(), y = d(), { bp: P } = re(), b = B(() => P.value === "narrow"), C = d([]);
|
|
19
25
|
async function V() {
|
|
20
26
|
try {
|
|
21
|
-
const { items: t } = await
|
|
22
|
-
|
|
27
|
+
const { items: t } = await h.page({ page: 1, pageSize: 200 });
|
|
28
|
+
C.value = t.map((o) => ({ label: o.name, value: o.id }));
|
|
23
29
|
} catch {
|
|
24
30
|
}
|
|
25
31
|
}
|
|
26
32
|
V();
|
|
27
|
-
const
|
|
33
|
+
const J = [
|
|
28
34
|
{
|
|
29
35
|
label: () => e("job.log.fireModeSchedule"),
|
|
30
|
-
value:
|
|
36
|
+
value: c.Schedule,
|
|
31
37
|
tagType: "default"
|
|
32
38
|
},
|
|
33
|
-
{ label: () => e("job.log.fireModeManual"), value:
|
|
39
|
+
{ label: () => e("job.log.fireModeManual"), value: c.Manual, tagType: "info" },
|
|
34
40
|
{
|
|
35
41
|
label: () => e("job.log.fireModeBackfill"),
|
|
36
|
-
value:
|
|
42
|
+
value: c.Misfire,
|
|
37
43
|
tagType: "warning"
|
|
38
44
|
},
|
|
39
45
|
{
|
|
40
46
|
label: () => e("job.log.fireModeMisfireSkip"),
|
|
41
|
-
value:
|
|
47
|
+
value: c.MissedSkipped,
|
|
42
48
|
tagType: "default"
|
|
43
49
|
}
|
|
44
|
-
],
|
|
45
|
-
{ label: () => e("job.log.running"), value:
|
|
46
|
-
{ label: () => e("job.log.success"), value:
|
|
47
|
-
{ label: () => e("job.log.failed"), value:
|
|
48
|
-
{ label: () => e("job.log.timeout"), value:
|
|
50
|
+
], U = [
|
|
51
|
+
{ label: () => e("job.log.running"), value: f.Running, tagType: "info" },
|
|
52
|
+
{ label: () => e("job.log.success"), value: f.Success, tagType: "success" },
|
|
53
|
+
{ label: () => e("job.log.failed"), value: f.Failed, tagType: "error" },
|
|
54
|
+
{ label: () => e("job.log.timeout"), value: f.Timeout, tagType: "warning" },
|
|
49
55
|
{
|
|
50
56
|
label: () => e("job.log.cancelled"),
|
|
51
|
-
value:
|
|
57
|
+
value: f.Cancelled,
|
|
52
58
|
tagType: "default"
|
|
53
59
|
},
|
|
54
|
-
{ label: () => e("job.log.skipped"), value:
|
|
55
|
-
],
|
|
60
|
+
{ label: () => e("job.log.skipped"), value: f.Skipped, tagType: "default" }
|
|
61
|
+
], W = we({
|
|
62
|
+
ranges: ["startTime"],
|
|
63
|
+
rename: { startTime: "startRange" }
|
|
64
|
+
}), D = [
|
|
56
65
|
{ type: "index", title: () => e("common.rowNo"), width: 64, align: "center" },
|
|
57
66
|
{
|
|
58
67
|
key: "jobId",
|
|
59
68
|
title: () => e("job.log.job"),
|
|
60
69
|
hideInTable: !0,
|
|
61
70
|
// 只作搜索项:表格里已有任务名快照列
|
|
62
|
-
options:
|
|
63
|
-
search: { props: { clearable: !0, filterable: !0 } }
|
|
71
|
+
options: C,
|
|
72
|
+
search: { actions: z.exact, props: { clearable: !0, filterable: !0 } }
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: "jobName",
|
|
76
|
+
title: () => e("job.log.job"),
|
|
77
|
+
minWidth: 140,
|
|
78
|
+
ellipsis: { tooltip: !0 },
|
|
79
|
+
card: "title"
|
|
64
80
|
},
|
|
65
|
-
{ key: "jobName", title: () => e("job.log.job"), minWidth: 140, ellipsis: { tooltip: !0 } },
|
|
66
81
|
{
|
|
67
82
|
key: "fireMode",
|
|
68
83
|
title: () => e("job.log.fireMode"),
|
|
69
84
|
width: 100,
|
|
70
85
|
tag: !0,
|
|
71
|
-
options:
|
|
86
|
+
options: J
|
|
72
87
|
},
|
|
73
88
|
{ key: "scheduledTime", title: () => e("job.log.scheduledTime"), width: 160, format: "datetime" },
|
|
74
89
|
{
|
|
@@ -76,22 +91,23 @@ const fe = { class: "clear-body" }, ge = { class: "clear-hint" }, ye = { class:
|
|
|
76
91
|
title: () => e("job.log.startTime"),
|
|
77
92
|
width: 160,
|
|
78
93
|
format: "datetime",
|
|
79
|
-
//
|
|
80
|
-
|
|
94
|
+
// 时间范围筛选:条件构造器里是同一字段的两行(大于等于 + 小于等于),序列化器合并成 [起, 止],
|
|
95
|
+
// api 层再拆成 StartFrom/StartTo 并补秒
|
|
96
|
+
search: { type: "daterange", actions: z.dayRange }
|
|
81
97
|
},
|
|
82
98
|
{
|
|
83
99
|
key: "elapsedMs",
|
|
84
100
|
title: () => e("job.log.elapsed"),
|
|
85
101
|
width: 110,
|
|
86
|
-
render: (t) =>
|
|
102
|
+
render: (t) => q(t) ? g(E, { size: "small", type: "info", bordered: !1 }, () => e("job.log.running")) : g("span", { class: "tabular" }, `${t.elapsedMs} ms`)
|
|
87
103
|
},
|
|
88
104
|
{
|
|
89
105
|
key: "runStatus",
|
|
90
106
|
title: () => e("job.log.runStatus"),
|
|
91
107
|
width: 100,
|
|
92
108
|
tag: !0,
|
|
93
|
-
search:
|
|
94
|
-
options:
|
|
109
|
+
search: { actions: z.exact },
|
|
110
|
+
options: U
|
|
95
111
|
},
|
|
96
112
|
{
|
|
97
113
|
key: "retryIndex",
|
|
@@ -107,305 +123,275 @@ const fe = { class: "clear-body" }, ge = { class: "clear-hint" }, ye = { class:
|
|
|
107
123
|
width: 130,
|
|
108
124
|
fixed: "right",
|
|
109
125
|
hideInSetting: !0,
|
|
110
|
-
render: (t) =>
|
|
111
|
-
|
|
126
|
+
render: (t) => g(se, { size: 4, wrapItem: !1 }, () => [
|
|
127
|
+
g(
|
|
112
128
|
I,
|
|
113
|
-
{ size: "small", quaternary: !0, type: "primary", onClick: () =>
|
|
129
|
+
{ size: "small", quaternary: !0, type: "primary", onClick: () => K(t) },
|
|
114
130
|
() => e("common.detail")
|
|
115
131
|
),
|
|
116
|
-
|
|
132
|
+
q(t) && L.hasPerm("POST:/api/v1/sys/job/log/{id}/kill") ? g(
|
|
117
133
|
I,
|
|
118
|
-
{ size: "small", quaternary: !0, type: "error", onClick: () =>
|
|
134
|
+
{ size: "small", quaternary: !0, type: "error", onClick: () => Q(t) },
|
|
119
135
|
() => e("job.log.kill")
|
|
120
136
|
) : null
|
|
121
137
|
])
|
|
122
138
|
}
|
|
123
|
-
]
|
|
124
|
-
|
|
125
|
-
|
|
139
|
+
];
|
|
140
|
+
Te(D);
|
|
141
|
+
const R = pe();
|
|
142
|
+
ee(
|
|
143
|
+
[y, () => R.query.jobId],
|
|
126
144
|
([t, o]) => {
|
|
127
|
-
|
|
128
|
-
const d = o == null ? void 0 : Number(o);
|
|
129
|
-
t.params.jobId !== d && (t.params.jobId = d, t.search());
|
|
145
|
+
t && R.path === "/system/job-log" && Se(t, "jobId", o == null ? void 0 : Number(o));
|
|
130
146
|
},
|
|
131
147
|
{ immediate: !0 }
|
|
132
148
|
);
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
[
|
|
136
|
-
[u.Failed]: "error",
|
|
137
|
-
[u.Timeout]: "warning",
|
|
138
|
-
[u.Cancelled]: "default",
|
|
139
|
-
[u.Skipped]: "default"
|
|
140
|
-
}, O = (t) => {
|
|
141
|
-
const o = {
|
|
142
|
-
1: "running",
|
|
143
|
-
2: "success",
|
|
144
|
-
3: "failed",
|
|
145
|
-
4: "timeout",
|
|
146
|
-
5: "cancelled",
|
|
147
|
-
6: "skipped"
|
|
148
|
-
}[t];
|
|
149
|
-
return o ? e(`job.log.${o}`) : String(t);
|
|
150
|
-
}, H = [
|
|
151
|
-
{
|
|
152
|
-
key: "rowNo",
|
|
153
|
-
title: () => e("common.rowNo"),
|
|
154
|
-
width: 64,
|
|
155
|
-
align: "center",
|
|
156
|
-
render: (t, o) => o + 1
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
title: () => e("job.log.retryIndex"),
|
|
160
|
-
key: "retryIndex",
|
|
161
|
-
width: 110,
|
|
162
|
-
render: (t) => t.retryIndex === 0 ? e("job.log.firstTry") : e("job.log.retryN", { n: t.retryIndex })
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
title: () => e("job.log.runStatus"),
|
|
166
|
-
key: "runStatus",
|
|
167
|
-
width: 90,
|
|
168
|
-
render: (t) => f(
|
|
169
|
-
C,
|
|
170
|
-
{ size: "small", bordered: !1, type: B[t.runStatus] },
|
|
171
|
-
() => O(t.runStatus)
|
|
172
|
-
)
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
title: () => e("job.log.startTime"),
|
|
176
|
-
key: "startTime",
|
|
177
|
-
render: (t) => D(t.startTime)
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
title: () => e("job.log.elapsed"),
|
|
181
|
-
key: "elapsedMs",
|
|
182
|
-
width: 100,
|
|
183
|
-
render: (t) => w(t) ? "—" : `${t.elapsedMs} ms`
|
|
184
|
-
}
|
|
185
|
-
];
|
|
186
|
-
async function L(t) {
|
|
187
|
-
a.value = t, T.value = !0, S.value = [], M.value = !0;
|
|
149
|
+
const S = d(!1), i = d(null), _ = d([]), k = d(!1), G = (t) => Ie(e, t);
|
|
150
|
+
async function K(t) {
|
|
151
|
+
i.value = t, S.value = !0, _.value = [], k.value = !0;
|
|
188
152
|
try {
|
|
189
|
-
const { items: o } = await
|
|
153
|
+
const { items: o } = await h.logPage({
|
|
190
154
|
page: 1,
|
|
191
155
|
pageSize: 100,
|
|
192
156
|
fireInstanceId: t.fireInstanceId
|
|
193
157
|
});
|
|
194
|
-
|
|
158
|
+
_.value = o.toSorted((p, s) => p.retryIndex - s.retryIndex);
|
|
195
159
|
} catch {
|
|
196
160
|
} finally {
|
|
197
|
-
|
|
161
|
+
k.value = !1;
|
|
198
162
|
}
|
|
199
163
|
}
|
|
200
|
-
function
|
|
201
|
-
|
|
164
|
+
function Q(t) {
|
|
165
|
+
H({
|
|
202
166
|
type: "error",
|
|
203
167
|
content: e("job.log.killConfirm", { name: t.jobName }),
|
|
204
|
-
action: () =>
|
|
168
|
+
action: () => h.kill(t.id),
|
|
205
169
|
successMsg: e("job.log.killed")
|
|
206
170
|
}).then((o) => {
|
|
207
|
-
var
|
|
208
|
-
o && ((
|
|
171
|
+
var p;
|
|
172
|
+
o && ((p = y.value) == null || p.refresh());
|
|
209
173
|
});
|
|
210
174
|
}
|
|
211
|
-
const
|
|
175
|
+
const M = d(!1), j = d(0), X = B(() => [
|
|
212
176
|
{ label: e("job.log.clearAll"), value: 0 },
|
|
213
177
|
...[7, 30, 90].map((t) => ({ label: e("job.log.beforeDays", { n: t }), value: t }))
|
|
214
178
|
]);
|
|
215
|
-
async function
|
|
179
|
+
async function Y() {
|
|
216
180
|
var t;
|
|
217
181
|
try {
|
|
218
|
-
const o = await
|
|
219
|
-
beforeDays:
|
|
182
|
+
const o = await h.logClear({
|
|
183
|
+
beforeDays: j.value === 0 ? null : j.value
|
|
220
184
|
});
|
|
221
|
-
|
|
185
|
+
T.success(e("job.log.cleared", { n: o })), await ((t = y.value) == null ? void 0 : t.refresh());
|
|
222
186
|
} catch (o) {
|
|
223
|
-
return
|
|
187
|
+
return T.error(F(o)), !1;
|
|
224
188
|
}
|
|
225
189
|
}
|
|
226
190
|
return (t, o) => {
|
|
227
|
-
const
|
|
228
|
-
return
|
|
229
|
-
|
|
230
|
-
|
|
191
|
+
const p = le("auth");
|
|
192
|
+
return v(), O(A, null, [
|
|
193
|
+
r(l(ge), {
|
|
194
|
+
toolbar: l(ke),
|
|
231
195
|
ref_key: "tableRef",
|
|
232
|
-
ref:
|
|
233
|
-
columns:
|
|
234
|
-
fetcher: l(
|
|
235
|
-
|
|
236
|
-
"
|
|
196
|
+
ref: y,
|
|
197
|
+
columns: D,
|
|
198
|
+
fetcher: l(h).logPage,
|
|
199
|
+
search: { container: "table" },
|
|
200
|
+
"filter-serializer": l(W),
|
|
201
|
+
"fill-height": "",
|
|
202
|
+
"min-row-height": l(_e),
|
|
203
|
+
"card-on-narrow": "",
|
|
237
204
|
"storage-key": "sys-job-log",
|
|
238
|
-
onError: o[1] || (o[1] = (s) => l(
|
|
205
|
+
onError: o[1] || (o[1] = (s) => l(T).error(l(F)(s)))
|
|
239
206
|
}, {
|
|
240
|
-
|
|
241
|
-
|
|
207
|
+
"pagination-prefix": a(({ itemCount: s }) => [
|
|
208
|
+
r(Me, { count: s }, null, 8, ["count"])
|
|
209
|
+
]),
|
|
210
|
+
"toolbar-right": a(() => [
|
|
211
|
+
te((v(), x(l(I), {
|
|
242
212
|
type: "error",
|
|
243
213
|
secondary: "",
|
|
244
|
-
onClick: o[0] || (o[0] = (s) =>
|
|
214
|
+
onClick: o[0] || (o[0] = (s) => M.value = !0)
|
|
245
215
|
}, {
|
|
246
|
-
icon:
|
|
247
|
-
|
|
216
|
+
icon: a(() => [
|
|
217
|
+
r(ve, {
|
|
248
218
|
icon: "ph:trash",
|
|
249
219
|
size: 16
|
|
250
220
|
})
|
|
251
221
|
]),
|
|
252
|
-
default:
|
|
253
|
-
|
|
222
|
+
default: a(() => [
|
|
223
|
+
m(" " + n(l(e)("job.log.clear")), 1)
|
|
254
224
|
]),
|
|
255
225
|
_: 1
|
|
256
226
|
})), [
|
|
257
|
-
[
|
|
227
|
+
[p, "POST:/api/v1/sys/job/log/clear"]
|
|
258
228
|
])
|
|
259
229
|
]),
|
|
260
230
|
_: 1
|
|
261
|
-
}, 8, ["fetcher"]),
|
|
262
|
-
|
|
263
|
-
show:
|
|
264
|
-
"onUpdate:show": o[3] || (o[3] = (s) =>
|
|
231
|
+
}, 8, ["toolbar", "fetcher", "filter-serializer", "min-row-height"]),
|
|
232
|
+
r(he, {
|
|
233
|
+
show: M.value,
|
|
234
|
+
"onUpdate:show": o[3] || (o[3] = (s) => M.value = s),
|
|
265
235
|
title: l(e)("job.log.clearTitle"),
|
|
266
236
|
width: 420,
|
|
267
|
-
"on-confirm":
|
|
237
|
+
"on-confirm": Y,
|
|
268
238
|
"confirm-text": l(e)("common.confirm")
|
|
269
239
|
}, {
|
|
270
|
-
default:
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
240
|
+
default: a(() => [
|
|
241
|
+
r(l(ne), {
|
|
242
|
+
"label-placement": "left",
|
|
243
|
+
"label-width": 60,
|
|
244
|
+
"require-mark-placement": "left"
|
|
245
|
+
}, {
|
|
246
|
+
default: a(() => [
|
|
247
|
+
r(l(ue), {
|
|
248
|
+
label: l(e)("job.log.clearRange"),
|
|
249
|
+
required: ""
|
|
250
|
+
}, {
|
|
251
|
+
default: a(() => [
|
|
252
|
+
r(l(de), {
|
|
253
|
+
value: j.value,
|
|
254
|
+
"onUpdate:value": o[2] || (o[2] = (s) => j.value = s),
|
|
255
|
+
options: X.value
|
|
256
|
+
}, null, 8, ["value", "options"])
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
}, 8, ["label"]),
|
|
260
|
+
w("div", ze, n(l(e)("job.log.clearHint")), 1)
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
})
|
|
279
264
|
]),
|
|
280
265
|
_: 1
|
|
281
266
|
}, 8, ["show", "title", "confirm-text"]),
|
|
282
|
-
|
|
283
|
-
show:
|
|
284
|
-
"onUpdate:show": o[4] || (o[4] = (s) =>
|
|
285
|
-
|
|
286
|
-
|
|
267
|
+
r(l(me), {
|
|
268
|
+
show: S.value,
|
|
269
|
+
"onUpdate:show": o[4] || (o[4] = (s) => S.value = s),
|
|
270
|
+
placement: b.value ? "bottom" : "right",
|
|
271
|
+
width: b.value ? void 0 : "min(600px, 100vw)",
|
|
272
|
+
height: b.value ? "auto" : void 0,
|
|
273
|
+
class: ae({ "st-sheet": b.value }),
|
|
274
|
+
style: oe(b.value ? "max-height: 85vh" : void 0)
|
|
287
275
|
}, {
|
|
288
|
-
default:
|
|
289
|
-
|
|
276
|
+
default: a(() => [
|
|
277
|
+
r(l(ce), {
|
|
290
278
|
title: l(e)("common.detail"),
|
|
291
|
-
closable: ""
|
|
279
|
+
closable: "",
|
|
280
|
+
"native-scrollbar": b.value
|
|
292
281
|
}, {
|
|
293
|
-
default:
|
|
294
|
-
|
|
295
|
-
|
|
282
|
+
default: a(() => [
|
|
283
|
+
i.value ? (v(), O(A, { key: 0 }, [
|
|
284
|
+
r(l(be), {
|
|
296
285
|
"label-placement": "left",
|
|
297
286
|
column: 1,
|
|
298
287
|
bordered: "",
|
|
299
|
-
size: "small"
|
|
288
|
+
size: "small",
|
|
289
|
+
"label-style": "width: 100px"
|
|
300
290
|
}, {
|
|
301
|
-
default:
|
|
302
|
-
|
|
291
|
+
default: a(() => [
|
|
292
|
+
r(l(u), {
|
|
303
293
|
label: l(e)("job.log.job")
|
|
304
294
|
}, {
|
|
305
|
-
default:
|
|
306
|
-
|
|
295
|
+
default: a(() => [
|
|
296
|
+
m(n(i.value.jobName), 1)
|
|
307
297
|
]),
|
|
308
298
|
_: 1
|
|
309
299
|
}, 8, ["label"]),
|
|
310
|
-
|
|
300
|
+
r(l(u), {
|
|
311
301
|
label: l(e)("job.log.fireMode")
|
|
312
302
|
}, {
|
|
313
|
-
default:
|
|
314
|
-
|
|
303
|
+
default: a(() => [
|
|
304
|
+
m(n(i.value.fireMode === l(c).Manual ? l(e)("job.log.fireModeManual") : i.value.fireMode === l(c).Misfire ? l(e)("job.log.fireModeBackfill") : i.value.fireMode === l(c).MissedSkipped ? l(e)("job.log.fireModeMisfireSkip") : l(e)("job.log.fireModeSchedule")), 1)
|
|
315
305
|
]),
|
|
316
306
|
_: 1
|
|
317
307
|
}, 8, ["label"]),
|
|
318
|
-
|
|
308
|
+
r(l(u), {
|
|
319
309
|
label: l(e)("job.log.runStatus")
|
|
320
310
|
}, {
|
|
321
|
-
default:
|
|
322
|
-
|
|
311
|
+
default: a(() => [
|
|
312
|
+
r(l(E), {
|
|
323
313
|
size: "small",
|
|
324
314
|
bordered: !1,
|
|
325
|
-
type:
|
|
315
|
+
type: l(Ne)[i.value.runStatus]
|
|
326
316
|
}, {
|
|
327
|
-
default:
|
|
328
|
-
|
|
317
|
+
default: a(() => [
|
|
318
|
+
m(n(G(i.value.runStatus)), 1)
|
|
329
319
|
]),
|
|
330
320
|
_: 1
|
|
331
321
|
}, 8, ["type"])
|
|
332
322
|
]),
|
|
333
323
|
_: 1
|
|
334
324
|
}, 8, ["label"]),
|
|
335
|
-
|
|
325
|
+
r(l(u), {
|
|
336
326
|
label: l(e)("job.log.scheduledTime")
|
|
337
327
|
}, {
|
|
338
|
-
default:
|
|
339
|
-
|
|
328
|
+
default: a(() => [
|
|
329
|
+
m(n(l($)(i.value.scheduledTime)), 1)
|
|
340
330
|
]),
|
|
341
331
|
_: 1
|
|
342
332
|
}, 8, ["label"]),
|
|
343
|
-
|
|
333
|
+
r(l(u), {
|
|
344
334
|
label: l(e)("job.log.startTime")
|
|
345
335
|
}, {
|
|
346
|
-
default:
|
|
347
|
-
|
|
336
|
+
default: a(() => [
|
|
337
|
+
m(n(l($)(i.value.startTime)), 1)
|
|
348
338
|
]),
|
|
349
339
|
_: 1
|
|
350
340
|
}, 8, ["label"]),
|
|
351
|
-
|
|
341
|
+
r(l(u), {
|
|
352
342
|
label: l(e)("job.log.elapsed")
|
|
353
343
|
}, {
|
|
354
|
-
default:
|
|
355
|
-
|
|
344
|
+
default: a(() => [
|
|
345
|
+
m(n(i.value.endTime == null ? l(e)("job.log.running") : `${i.value.elapsedMs} ms`), 1)
|
|
356
346
|
]),
|
|
357
347
|
_: 1
|
|
358
348
|
}, 8, ["label"]),
|
|
359
|
-
|
|
349
|
+
r(l(u), {
|
|
360
350
|
label: l(e)("job.log.node")
|
|
361
351
|
}, {
|
|
362
|
-
default:
|
|
363
|
-
|
|
352
|
+
default: a(() => [
|
|
353
|
+
m(n(i.value.nodeName || "—"), 1)
|
|
364
354
|
]),
|
|
365
355
|
_: 1
|
|
366
356
|
}, 8, ["label"]),
|
|
367
|
-
|
|
357
|
+
i.value.messageText ? (v(), x(l(u), {
|
|
368
358
|
key: 0,
|
|
369
359
|
label: l(e)("job.log.message")
|
|
370
360
|
}, {
|
|
371
|
-
default:
|
|
372
|
-
|
|
361
|
+
default: a(() => [
|
|
362
|
+
w("pre", Ce, n(i.value.messageText), 1)
|
|
373
363
|
]),
|
|
374
364
|
_: 1
|
|
375
365
|
}, 8, ["label"])) : N("", !0),
|
|
376
|
-
|
|
366
|
+
i.value.errorText ? (v(), x(l(u), {
|
|
377
367
|
key: 1,
|
|
378
368
|
label: l(e)("job.log.error")
|
|
379
369
|
}, {
|
|
380
|
-
default:
|
|
381
|
-
|
|
370
|
+
default: a(() => [
|
|
371
|
+
w("pre", De, n(i.value.errorText), 1)
|
|
382
372
|
]),
|
|
383
373
|
_: 1
|
|
384
374
|
}, 8, ["label"])) : N("", !0)
|
|
385
375
|
]),
|
|
386
376
|
_: 1
|
|
387
377
|
}),
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
loading: M.value,
|
|
394
|
-
"row-key": (s) => s.id,
|
|
395
|
-
pagination: !1
|
|
396
|
-
}, null, 8, ["data", "loading", "row-key"])
|
|
378
|
+
w("div", Re, n(l(e)("job.log.attempts")), 1),
|
|
379
|
+
r(xe, {
|
|
380
|
+
rows: _.value,
|
|
381
|
+
loading: k.value
|
|
382
|
+
}, null, 8, ["rows", "loading"])
|
|
397
383
|
], 64)) : N("", !0)
|
|
398
384
|
]),
|
|
399
385
|
_: 1
|
|
400
|
-
}, 8, ["title"])
|
|
386
|
+
}, 8, ["title", "native-scrollbar"])
|
|
401
387
|
]),
|
|
402
388
|
_: 1
|
|
403
|
-
}, 8, ["show"])
|
|
389
|
+
}, 8, ["show", "placement", "width", "height", "class", "style"])
|
|
404
390
|
], 64);
|
|
405
391
|
};
|
|
406
392
|
}
|
|
407
393
|
});
|
|
408
394
|
export {
|
|
409
|
-
|
|
395
|
+
ll as default
|
|
410
396
|
};
|
|
411
397
|
//# sourceMappingURL=index2.vue.js.map
|