smart-admin-web 10.15.0 → 10.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/api/index.d.ts +4 -2
- package/dist/api/index.js +1 -1
- package/dist/api/index.js.map +1 -1
- package/dist/api/schema.d.ts +39 -5
- package/dist/assets/icons/ph-subset.json.js +5 -5
- 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/TableTotal/index.vue.d.ts +6 -0
- 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/useModule.js +39 -29
- package/dist/composables/useModule.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 +15 -0
- package/dist/composables/useSite.js +16 -14
- 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 +219 -205
- 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 +19 -18
- 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/loginHero.d.ts +2 -2
- package/dist/lib/loginHero.js.map +1 -1
- package/dist/lib/runtime.js +1 -1
- 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 +221 -15
- package/dist/locales/en-US.js +230 -21
- 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 +221 -15
- package/dist/locales/zh-CN.js +238 -28
- 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 +8 -8
- 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 +407 -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.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.js +3 -3
- package/dist/views/login/components/LoginHeroPanel2.vue.js +34 -39
- package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -1
- 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 +2 -2
- package/dist/views/system/config/components/AdminMock2.vue.js +60 -43
- package/dist/views/system/config/components/AdminMock2.vue.js.map +1 -1
- package/dist/views/system/config/components/AdvancedSection.vue.js +5 -2
- package/dist/views/system/config/components/AdvancedSection.vue.js.map +1 -1
- package/dist/views/system/config/components/AdvancedSection2.vue.js +98 -70
- package/dist/views/system/config/components/AdvancedSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/BrandSection.vue.js +2 -2
- package/dist/views/system/config/components/BrandSection2.vue.js +121 -119
- package/dist/views/system/config/components/BrandSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/CfgGroup.vue.js +3 -3
- package/dist/views/system/config/components/CfgGroup2.vue.js.map +1 -1
- package/dist/views/system/config/components/CfgRow.vue.js +1 -1
- package/dist/views/system/config/components/CfgRow2.vue.js +24 -23
- package/dist/views/system/config/components/CfgRow2.vue.js.map +1 -1
- package/dist/views/system/config/components/CfgSegment.vue.js +1 -1
- package/dist/views/system/config/components/CfgSegment2.vue.js +16 -15
- package/dist/views/system/config/components/CfgSegment2.vue.js.map +1 -1
- package/dist/views/system/config/components/ConfigFormModal.vue.js +2 -2
- package/dist/views/system/config/components/ConfigFormModal2.vue.js +35 -33
- package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -1
- package/dist/views/system/config/components/JobSection.vue.js +2 -2
- package/dist/views/system/config/components/JobSection2.vue.js +46 -44
- package/dist/views/system/config/components/JobSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/LoginMock.vue.js +3 -3
- package/dist/views/system/config/components/LoginMock2.vue.js +83 -72
- package/dist/views/system/config/components/LoginMock2.vue.js.map +1 -1
- package/dist/views/system/config/components/LogoCropper.vue.js +1 -1
- package/dist/views/system/config/components/LogoCropper2.vue.js.map +1 -1
- package/dist/views/system/config/components/LogoEditor.vue.js +2 -2
- package/dist/views/system/config/components/LogoEditor2.vue.js +11 -13
- package/dist/views/system/config/components/LogoEditor2.vue.js.map +1 -1
- package/dist/views/system/config/components/ProviderSheet.vue.js +3 -3
- package/dist/views/system/config/components/ProviderSheet2.vue.js.map +1 -1
- package/dist/views/system/config/components/SectionLayout.vue.d.ts +4 -2
- package/dist/views/system/config/components/SectionLayout.vue.js +2 -2
- package/dist/views/system/config/components/SectionLayout2.vue.js +51 -27
- package/dist/views/system/config/components/SectionLayout2.vue.js.map +1 -1
- package/dist/views/system/config/components/SecuritySection.vue.js +2 -2
- package/dist/views/system/config/components/SecuritySection2.vue.js +207 -206
- package/dist/views/system/config/components/SecuritySection2.vue.js.map +1 -1
- package/dist/views/system/config/components/SensitiveSection.vue.js +2 -2
- package/dist/views/system/config/components/SensitiveSection2.vue.js +107 -102
- package/dist/views/system/config/components/SensitiveSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/UploadSection.vue.js +2 -2
- package/dist/views/system/config/components/UploadSection2.vue.js +86 -77
- package/dist/views/system/config/components/UploadSection2.vue.js.map +1 -1
- 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 +2 -2
- package/dist/views/system/config/draft.js.map +1 -1
- package/dist/views/system/config/groups.d.ts +4 -1
- package/dist/views/system/config/groups.js +54 -49
- package/dist/views/system/config/groups.js.map +1 -1
- package/dist/views/system/config/index.vue.js +3 -2
- package/dist/views/system/config/index.vue.js.map +1 -1
- package/dist/views/system/config/index2.vue.js +173 -148
- 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/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 +3 -5
- 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.d.ts +0 -16
- 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.d.ts +0 -3
- 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 -65
- package/dist/views/login/skins/SplitPanel2.vue.js.map +0 -1
- package/dist/views/login/skins/Spotlight.vue.d.ts +0 -3
- 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/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/WatermarkSection.vue.d.ts} +0 -0
|
@@ -1,222 +1,234 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { useAuthStore as
|
|
14
|
-
import { jobApi as
|
|
15
|
-
import { translateError as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
1
|
+
import { defineComponent as Ke, ref as w, computed as ze, h as m, reactive as Re, onDeactivated as Oe, resolveDirective as Pe, openBlock as c, createElementBlock as k, Fragment as P, createVNode as o, unref as e, withCtx as n, withDirectives as ie, createBlock as z, createTextVNode as p, toDisplayString as d, normalizeClass as de, createElementVNode as y, createCommentVNode as x, renderList as ue } from "vue";
|
|
2
|
+
import { useMediaQuery as Me } from "@vueuse/core";
|
|
3
|
+
import { useMessage as Ie, NSpace as U, NButton as h, NTooltip as me, NPopconfirm as Be, NDrawer as He, NDrawerContent as Ae, NForm as De, NCollapse as Le, NCollapseItem as A, NGrid as D, NFormItemGi as u, NInput as g, NRadioGroup as L, NRadio as j, NInputNumber as M, NDatePicker as Q, NSelect as pe, NSwitch as Ve, NTag as X } from "naive-ui";
|
|
4
|
+
import { useRouter as Je } from "vue-router";
|
|
5
|
+
import { useI18n as Fe } from "vue-i18n";
|
|
6
|
+
import { SmartTable as Ge } from "smart-naive-table";
|
|
7
|
+
import R from "../../../components/AppIcon.vue.js";
|
|
8
|
+
import $e from "../../../components/StatusSwitch/index.vue.js";
|
|
9
|
+
import We from "../../../components/CronEditor/index.vue.js";
|
|
10
|
+
import { useConfirm as Qe } from "../../../composables/useConfirm.js";
|
|
11
|
+
import { useBatchDelete as Xe } from "../../../composables/useBatchDelete.js";
|
|
12
|
+
import { useShellBreakpoint as Ye } from "../../../composables/useShellBreakpoint.js";
|
|
13
|
+
import { useAuthStore as Ze } from "../../../stores/auth.js";
|
|
14
|
+
import { jobApi as C } from "../../../api/index.js";
|
|
15
|
+
import { translateError as ce } from "../../../utils/error.js";
|
|
16
|
+
import { SEARCH_ACTIONS as Y, deriveHeaderFilters as el } from "../../../utils/tableFilter.js";
|
|
17
|
+
import { TABLE_MIN_ROW_HEIGHT as ll, TABLE_TOOLBAR as al } from "../../../utils/tableToolbar.js";
|
|
18
|
+
import tl from "../../../components/TableTotal/index.vue.js";
|
|
19
|
+
import { fmtDateTime as rl } from "../../../utils/format.js";
|
|
20
|
+
import { JobHandlerKind as f, JobStatus as b, JobTriggerKind as v, JobMisfireStrategy as V, JobConcurrencyMode as J } from "../../../types/api.js";
|
|
21
|
+
const ol = { class: "job-sec-text" }, nl = { class: "job-sec-text" }, sl = { class: "job-sec-text" }, il = {
|
|
19
22
|
key: 0,
|
|
20
23
|
class: "job-hint"
|
|
21
|
-
},
|
|
24
|
+
}, dl = { class: "kv-editor" }, ul = { class: "kv-editor" }, ml = {
|
|
22
25
|
key: 0,
|
|
23
26
|
class: "kv-hint"
|
|
24
|
-
},
|
|
27
|
+
}, pl = { class: "job-sec-text" }, cl = { class: "job-hint" }, fl = { class: "job-inline" }, bl = { class: "job-hint" }, hl = { class: "job-inline" }, vl = { class: "job-hint" }, Bl = /* @__PURE__ */ Ke({
|
|
25
28
|
__name: "index",
|
|
26
|
-
setup(
|
|
27
|
-
const { t:
|
|
28
|
-
|
|
29
|
-
hasSelection: me,
|
|
30
|
-
run: pe
|
|
31
|
-
} = Ae({
|
|
32
|
-
remove: x.batchRemove,
|
|
29
|
+
setup(yl) {
|
|
30
|
+
const { t: a } = Fe(), F = Ie(), fe = Je(), { run: be, confirm: he } = Qe(), I = Ze(), q = w(), Z = Me("(min-width: 820px)"), { bp: ve } = Ye(), O = ze(() => ve.value === "narrow"), { checkedKeys: ee, run: ye } = Xe({
|
|
31
|
+
remove: C.batchRemove,
|
|
33
32
|
refresh: () => {
|
|
34
|
-
var
|
|
35
|
-
return (
|
|
33
|
+
var t;
|
|
34
|
+
return (t = q.value) == null ? void 0 : t.refresh();
|
|
36
35
|
},
|
|
37
|
-
successMsg:
|
|
38
|
-
}),
|
|
36
|
+
successMsg: a("job.deleted")
|
|
37
|
+
}), ge = [
|
|
39
38
|
{
|
|
40
|
-
label: () =>
|
|
39
|
+
label: () => a("job.handler.compiled"),
|
|
41
40
|
value: f.Compiled,
|
|
42
41
|
tagType: "info"
|
|
43
42
|
},
|
|
44
|
-
{ label: () =>
|
|
45
|
-
{ label: () =>
|
|
46
|
-
],
|
|
47
|
-
{ label: () =>
|
|
48
|
-
{ label: () =>
|
|
43
|
+
{ label: () => a("job.handler.http"), value: f.Http, tagType: "success" },
|
|
44
|
+
{ label: () => a("job.handler.sql"), value: f.Sql, tagType: "warning" }
|
|
45
|
+
], je = [
|
|
46
|
+
{ label: () => a("job.status.ready"), value: b.Ready, tagType: "success" },
|
|
47
|
+
{ label: () => a("job.status.paused"), value: b.Paused, tagType: "default" },
|
|
49
48
|
{
|
|
50
|
-
label: () =>
|
|
49
|
+
label: () => a("job.status.completed"),
|
|
51
50
|
value: b.Completed,
|
|
52
51
|
tagType: "default"
|
|
53
52
|
},
|
|
54
|
-
{ label: () =>
|
|
53
|
+
{ label: () => a("job.status.panic"), value: b.Panic, tagType: "error" }
|
|
55
54
|
];
|
|
56
|
-
function
|
|
57
|
-
switch (
|
|
55
|
+
function Se(t) {
|
|
56
|
+
switch (t.triggerKind) {
|
|
58
57
|
case v.Interval:
|
|
59
|
-
return
|
|
58
|
+
return a("job.trigger.everySeconds", { n: t.intervalSeconds ?? 0 });
|
|
60
59
|
case v.OneShot:
|
|
61
|
-
return
|
|
60
|
+
return rl(t.oneShotTime, { empty: "—" });
|
|
62
61
|
default:
|
|
63
|
-
return
|
|
62
|
+
return t.cronExpression || "—";
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
|
-
const
|
|
65
|
+
const ke = {
|
|
67
66
|
[b.Ready]: "success",
|
|
68
67
|
[b.Paused]: "default",
|
|
69
68
|
[b.Completed]: "default",
|
|
70
69
|
[b.Panic]: "error"
|
|
71
|
-
},
|
|
72
|
-
|
|
70
|
+
}, le = (t) => a(
|
|
71
|
+
t === b.Ready ? "job.status.ready" : t === b.Paused ? "job.status.paused" : t === b.Completed ? "job.status.completed" : "job.status.panic"
|
|
73
72
|
);
|
|
74
|
-
function
|
|
75
|
-
if (
|
|
76
|
-
return m(
|
|
77
|
-
if (!
|
|
73
|
+
function Te(t) {
|
|
74
|
+
if (t.status === b.Completed)
|
|
75
|
+
return m(X, { size: "small", bordered: !1 }, () => le(t.status));
|
|
76
|
+
if (!I.hasPerm("PUT:/api/v1/sys/job/{id}/enabled"))
|
|
78
77
|
return m(
|
|
79
|
-
|
|
80
|
-
{ size: "small", bordered: !1, type:
|
|
81
|
-
() =>
|
|
78
|
+
X,
|
|
79
|
+
{ size: "small", bordered: !1, type: ke[t.status] },
|
|
80
|
+
() => le(t.status)
|
|
82
81
|
);
|
|
83
|
-
const r = m(
|
|
84
|
-
value:
|
|
85
|
-
confirm: (i) => i ? null :
|
|
86
|
-
request: (i) =>
|
|
82
|
+
const r = m($e, {
|
|
83
|
+
value: t.status === b.Ready,
|
|
84
|
+
confirm: (i) => i ? null : a("job.pauseConfirm", { name: t.name }),
|
|
85
|
+
request: (i) => C.setEnabled(t.id, i),
|
|
87
86
|
// 启停会重算 nextRunTime / 清连败计数,本地写回拼不出来 → 直接重拉
|
|
88
87
|
"onUpdate:value": () => {
|
|
89
88
|
var i;
|
|
90
|
-
return (i =
|
|
89
|
+
return (i = q.value) == null ? void 0 : i.refresh();
|
|
91
90
|
}
|
|
92
91
|
});
|
|
93
|
-
return
|
|
92
|
+
return t.status !== b.Panic ? r : m(U, { size: 6, wrapItem: !1, align: "center" }, () => [
|
|
94
93
|
r,
|
|
95
|
-
m(
|
|
96
|
-
trigger: () => m(
|
|
97
|
-
default: () =>
|
|
94
|
+
m(me, null, {
|
|
95
|
+
trigger: () => m(X, { size: "small", bordered: !1, type: "error" }, () => a("job.status.panic")),
|
|
96
|
+
default: () => a("job.panicTooltip", { n: t.consecutiveErrors })
|
|
98
97
|
})
|
|
99
98
|
]);
|
|
100
99
|
}
|
|
101
|
-
const
|
|
102
|
-
{ type: "index", title: () =>
|
|
100
|
+
const ae = [
|
|
101
|
+
{ type: "index", title: () => a("common.rowNo"), width: 64, align: "center", fixed: "left" },
|
|
103
102
|
// 内置任务禁删,批量删除同样不可含内置(后端整批拒绝 47014)
|
|
104
|
-
{ type: "selection", disabled: (
|
|
103
|
+
{ type: "selection", width: 44, fixed: "left", disabled: (t) => t.isSystem },
|
|
105
104
|
{
|
|
106
105
|
key: "name",
|
|
107
|
-
title: () =>
|
|
108
|
-
search:
|
|
109
|
-
minWidth:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
m("div", { style: "font-
|
|
106
|
+
title: () => a("job.name"),
|
|
107
|
+
search: { actions: Y.fuzzy },
|
|
108
|
+
minWidth: 180,
|
|
109
|
+
card: "title",
|
|
110
|
+
render: (t) => m("div", null, [
|
|
111
|
+
m("div", { style: "font-weight:500;" }, t.name),
|
|
112
|
+
m(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
style: "font-size:12px;color:var(--text-3);font-family:var(--font-mono,ui-monospace,monospace);"
|
|
116
|
+
},
|
|
117
|
+
t.code
|
|
118
|
+
)
|
|
113
119
|
])
|
|
114
120
|
},
|
|
115
121
|
{
|
|
116
122
|
key: "handlerKind",
|
|
117
|
-
title: () =>
|
|
123
|
+
title: () => a("job.handler.kind"),
|
|
118
124
|
width: 100,
|
|
119
125
|
tag: !0,
|
|
120
|
-
search:
|
|
121
|
-
options:
|
|
126
|
+
search: { actions: Y.exact },
|
|
127
|
+
options: ge
|
|
122
128
|
},
|
|
123
129
|
{
|
|
124
130
|
key: "trigger",
|
|
125
|
-
title: () =>
|
|
126
|
-
minWidth:
|
|
131
|
+
title: () => a("job.trigger.kind"),
|
|
132
|
+
minWidth: 150,
|
|
127
133
|
ellipsis: { tooltip: !0 },
|
|
128
|
-
|
|
134
|
+
// cron 原文用等宽字体,间隔 / 一次性时刻用等宽数字
|
|
135
|
+
render: (t) => m(
|
|
136
|
+
"span",
|
|
137
|
+
{ class: t.triggerKind === v.Cron ? "job-mono" : "tabular" },
|
|
138
|
+
Se(t)
|
|
139
|
+
)
|
|
129
140
|
},
|
|
130
141
|
{
|
|
131
142
|
key: "status",
|
|
132
|
-
title: () =>
|
|
143
|
+
title: () => a("common.status"),
|
|
133
144
|
width: 130,
|
|
134
|
-
search:
|
|
135
|
-
options:
|
|
136
|
-
render:
|
|
145
|
+
search: { actions: Y.exact },
|
|
146
|
+
options: je,
|
|
147
|
+
render: Te
|
|
137
148
|
},
|
|
138
|
-
{ key: "nextRunTime", title: () =>
|
|
139
|
-
{ key: "lastRunTime", title: () =>
|
|
149
|
+
{ key: "nextRunTime", title: () => a("job.nextRunTime"), width: 176, format: "datetime" },
|
|
150
|
+
{ key: "lastRunTime", title: () => a("job.lastRunTime"), width: 176, format: "datetime" },
|
|
140
151
|
{
|
|
141
152
|
key: "numberOfRuns",
|
|
142
|
-
title: () =>
|
|
153
|
+
title: () => a("job.runCount"),
|
|
143
154
|
width: 110,
|
|
144
155
|
align: "center",
|
|
145
|
-
render: (
|
|
146
|
-
m("span", null, String(
|
|
147
|
-
m("span", { style: "color:var(--
|
|
156
|
+
render: (t) => m("span", { class: "tabular" }, [
|
|
157
|
+
m("span", null, String(t.numberOfRuns)),
|
|
158
|
+
m("span", { style: "color:var(--text-3);" }, " / "),
|
|
148
159
|
m(
|
|
149
160
|
"span",
|
|
150
|
-
{ style:
|
|
151
|
-
String(
|
|
161
|
+
{ style: t.numberOfErrors > 0 ? "color:var(--err);" : "" },
|
|
162
|
+
String(t.numberOfErrors)
|
|
152
163
|
)
|
|
153
164
|
])
|
|
154
165
|
},
|
|
155
166
|
{
|
|
156
167
|
key: "op",
|
|
157
|
-
title: () =>
|
|
168
|
+
title: () => a("common.operation"),
|
|
158
169
|
width: 240,
|
|
159
170
|
fixed: "right",
|
|
160
171
|
hideInSetting: !0,
|
|
161
|
-
render: (
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
{ size: "small", quaternary: !0, type: "primary", onClick: () =>
|
|
165
|
-
() =>
|
|
172
|
+
render: (t) => m(U, { size: 4, wrapItem: !1 }, () => [
|
|
173
|
+
I.hasPerm("PUT:/api/v1/sys/job/{id}") ? m(
|
|
174
|
+
h,
|
|
175
|
+
{ size: "small", quaternary: !0, type: "primary", onClick: () => Ee(t) },
|
|
176
|
+
() => a("common.edit")
|
|
166
177
|
) : null,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
{ size: "small", quaternary: !0, onClick: () =>
|
|
170
|
-
() =>
|
|
178
|
+
I.hasPerm("POST:/api/v1/sys/job/{id}/run") ? m(
|
|
179
|
+
h,
|
|
180
|
+
{ size: "small", quaternary: !0, onClick: () => we(t) },
|
|
181
|
+
() => a("job.runOnce")
|
|
171
182
|
) : null,
|
|
172
183
|
// 记录:携 jobId 跳执行记录页(那边 watch query 自动带上筛选)
|
|
173
184
|
m(
|
|
174
|
-
|
|
185
|
+
h,
|
|
175
186
|
{
|
|
176
187
|
size: "small",
|
|
177
188
|
quaternary: !0,
|
|
178
|
-
onClick: () =>
|
|
189
|
+
onClick: () => fe.push({ path: "/system/job-log", query: { jobId: String(t.id) } })
|
|
179
190
|
},
|
|
180
|
-
() =>
|
|
191
|
+
() => a("job.viewLogs")
|
|
181
192
|
),
|
|
182
|
-
|
|
193
|
+
I.hasPerm("DELETE:/api/v1/sys/job/{id}") ? t.isSystem ? m(me, null, {
|
|
183
194
|
trigger: () => m(
|
|
184
|
-
|
|
195
|
+
h,
|
|
185
196
|
{ size: "small", quaternary: !0, type: "error", disabled: !0 },
|
|
186
|
-
() =>
|
|
197
|
+
() => a("common.delete")
|
|
187
198
|
),
|
|
188
|
-
default: () =>
|
|
199
|
+
default: () => a("job.protectedTip")
|
|
189
200
|
}) : m(
|
|
190
|
-
|
|
201
|
+
Be,
|
|
191
202
|
{
|
|
192
|
-
onPositiveClick: () =>
|
|
203
|
+
onPositiveClick: () => be(() => C.remove(t.id), a("job.deleted")).then((r) => {
|
|
193
204
|
var i;
|
|
194
|
-
r && ((i =
|
|
205
|
+
r && ((i = q.value) == null || i.refresh());
|
|
195
206
|
})
|
|
196
207
|
},
|
|
197
208
|
{
|
|
198
209
|
trigger: () => m(
|
|
199
|
-
|
|
210
|
+
h,
|
|
200
211
|
{ size: "small", quaternary: !0, type: "error" },
|
|
201
|
-
() =>
|
|
212
|
+
() => a("common.delete")
|
|
202
213
|
),
|
|
203
|
-
default: () =>
|
|
214
|
+
default: () => a("job.deleteConfirm", { name: t.name })
|
|
204
215
|
}
|
|
205
216
|
) : null
|
|
206
217
|
])
|
|
207
218
|
}
|
|
208
219
|
];
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
220
|
+
el(ae);
|
|
221
|
+
function we(t) {
|
|
222
|
+
he({
|
|
223
|
+
content: a("job.runConfirm", { name: t.name }),
|
|
224
|
+
action: () => C.run(t.id),
|
|
225
|
+
successMsg: a("job.runStarted")
|
|
214
226
|
}).then((r) => {
|
|
215
227
|
var i;
|
|
216
|
-
r && ((i =
|
|
228
|
+
r && ((i = q.value) == null || i.refresh());
|
|
217
229
|
});
|
|
218
230
|
}
|
|
219
|
-
const
|
|
231
|
+
const N = w(!1), te = w(null), _ = w(null), G = () => ({
|
|
220
232
|
code: "",
|
|
221
233
|
name: "",
|
|
222
234
|
remark: "",
|
|
@@ -228,8 +240,8 @@ const Je = { class: "job-sec-text" }, Le = { class: "job-sec-text" }, $e = { cla
|
|
|
228
240
|
oneShotTime: null,
|
|
229
241
|
startTime: null,
|
|
230
242
|
endTime: null,
|
|
231
|
-
misfireStrategy:
|
|
232
|
-
concurrencyMode:
|
|
243
|
+
misfireStrategy: V.Skip,
|
|
244
|
+
concurrencyMode: J.SerialSkip,
|
|
233
245
|
handlerKind: f.Compiled,
|
|
234
246
|
handlerName: "",
|
|
235
247
|
props: [],
|
|
@@ -245,923 +257,980 @@ const Je = { class: "job-sec-text" }, Le = { class: "job-sec-text" }, $e = { cla
|
|
|
245
257
|
failAlertThreshold: 0,
|
|
246
258
|
alertByNotice: !0,
|
|
247
259
|
alertEmails: ""
|
|
248
|
-
}),
|
|
260
|
+
}), l = Re(G()), xe = {
|
|
249
261
|
code: {
|
|
250
262
|
required: !0,
|
|
251
263
|
whitespace: !0,
|
|
252
|
-
message: () =>
|
|
264
|
+
message: () => a("job.codeRequired"),
|
|
253
265
|
trigger: ["input", "blur"]
|
|
254
266
|
},
|
|
255
267
|
name: {
|
|
256
268
|
required: !0,
|
|
257
269
|
whitespace: !0,
|
|
258
|
-
message: () =>
|
|
270
|
+
message: () => a("job.nameRequired"),
|
|
259
271
|
trigger: ["input", "blur"]
|
|
260
272
|
},
|
|
261
273
|
// 条件字段的 form-item 随 triggerKind/handlerKind v-if 切换,只有挂着的才参与校验
|
|
262
274
|
cronExpression: {
|
|
263
275
|
required: !0,
|
|
264
|
-
validator: () => !!
|
|
265
|
-
message: () =>
|
|
276
|
+
validator: () => !!l.cronExpression.trim(),
|
|
277
|
+
message: () => a("job.trigger.cronRequired"),
|
|
266
278
|
trigger: ["change", "blur"]
|
|
267
279
|
},
|
|
268
280
|
intervalSeconds: {
|
|
269
281
|
required: !0,
|
|
270
|
-
validator: () =>
|
|
271
|
-
message: () =>
|
|
282
|
+
validator: () => l.intervalSeconds != null && l.intervalSeconds >= 5,
|
|
283
|
+
message: () => a("job.trigger.intervalRequired"),
|
|
272
284
|
trigger: ["change", "blur"]
|
|
273
285
|
},
|
|
274
286
|
oneShotTime: {
|
|
275
287
|
required: !0,
|
|
276
|
-
validator: () => !!
|
|
277
|
-
message: () =>
|
|
288
|
+
validator: () => !!l.oneShotTime,
|
|
289
|
+
message: () => a("job.trigger.oneShotRequired"),
|
|
278
290
|
trigger: ["change", "blur"]
|
|
279
291
|
},
|
|
280
292
|
handlerName: {
|
|
281
293
|
required: !0,
|
|
282
|
-
validator: () => !!
|
|
283
|
-
message: () =>
|
|
294
|
+
validator: () => !!l.handlerName,
|
|
295
|
+
message: () => a("job.handler.nameRequired"),
|
|
284
296
|
trigger: ["change", "blur"]
|
|
285
297
|
},
|
|
286
298
|
httpUrl: {
|
|
287
299
|
required: !0,
|
|
288
300
|
whitespace: !0,
|
|
289
|
-
message: () =>
|
|
301
|
+
message: () => a("job.handler.httpUrlRequired"),
|
|
290
302
|
trigger: ["input", "blur"]
|
|
291
303
|
},
|
|
292
304
|
sqlText: {
|
|
293
305
|
required: !0,
|
|
294
306
|
whitespace: !0,
|
|
295
|
-
message: () =>
|
|
307
|
+
message: () => a("job.handler.sqlRequired"),
|
|
296
308
|
trigger: ["input", "blur"]
|
|
297
309
|
}
|
|
298
|
-
},
|
|
299
|
-
let
|
|
300
|
-
async function
|
|
301
|
-
if (!
|
|
310
|
+
}, re = w([]), $ = w(!0);
|
|
311
|
+
let oe = !1;
|
|
312
|
+
async function ne() {
|
|
313
|
+
if (!oe)
|
|
302
314
|
try {
|
|
303
|
-
const
|
|
304
|
-
|
|
315
|
+
const t = await C.handlers();
|
|
316
|
+
re.value = t.handlers.map((r) => ({ label: r, value: r })), $.value = t.sqlEnabled, oe = !0;
|
|
305
317
|
} catch {
|
|
306
318
|
}
|
|
307
319
|
}
|
|
308
|
-
const
|
|
309
|
-
label:
|
|
310
|
-
value:
|
|
320
|
+
const Ce = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"].map((t) => ({
|
|
321
|
+
label: t,
|
|
322
|
+
value: t
|
|
311
323
|
})), T = {
|
|
312
324
|
basic: "basic",
|
|
313
325
|
trigger: "trigger",
|
|
314
326
|
handler: "handler",
|
|
315
327
|
advanced: "advanced"
|
|
316
|
-
},
|
|
317
|
-
function
|
|
318
|
-
return !!
|
|
328
|
+
}, B = [T.basic, T.trigger, T.handler], H = w([...B]);
|
|
329
|
+
function Ne(t) {
|
|
330
|
+
return !!t.startTime || !!t.endTime || t.misfireStrategy !== V.Skip || t.concurrencyMode !== J.SerialSkip || t.timeoutSeconds > 0 || t.retryCount > 0 || t.retryIntervalSeconds !== 30 || t.failAlertThreshold > 0 || !t.alertByNotice || !!t.alertEmails;
|
|
319
331
|
}
|
|
320
|
-
const
|
|
321
|
-
function
|
|
322
|
-
|
|
332
|
+
const W = (t) => t ? t.slice(0, 19) : null;
|
|
333
|
+
function _e() {
|
|
334
|
+
_.value = null, Object.assign(l, G()), H.value = [...B], N.value = !0, ne();
|
|
323
335
|
}
|
|
324
|
-
function
|
|
325
|
-
|
|
336
|
+
function Ee(t) {
|
|
337
|
+
_.value = t.id, Object.assign(l, G()), H.value = Ne(t) ? [...B, T.advanced] : [...B];
|
|
326
338
|
let r = {};
|
|
327
339
|
try {
|
|
328
|
-
r = JSON.parse(
|
|
340
|
+
r = JSON.parse(t.propsJson || "{}");
|
|
329
341
|
} catch {
|
|
330
342
|
}
|
|
331
|
-
if (
|
|
332
|
-
|
|
343
|
+
if (l.code = t.code, l.name = t.name, l.remark = t.remark ?? "", l.triggerKind = t.triggerKind, l.cronExpression = t.cronExpression ?? "", l.intervalSeconds = t.intervalSeconds ?? 60, l.oneShotTime = W(t.oneShotTime), l.startTime = W(t.startTime), l.endTime = W(t.endTime), l.misfireStrategy = t.misfireStrategy, l.concurrencyMode = t.concurrencyMode, l.handlerKind = t.handlerKind, l.timeoutSeconds = t.timeoutSeconds, l.retryCount = t.retryCount, l.retryIntervalSeconds = t.retryIntervalSeconds, l.failAlertThreshold = t.failAlertThreshold, l.alertByNotice = t.alertByNotice, l.alertEmails = t.alertEmails ?? "", t.handlerKind === f.Http) {
|
|
344
|
+
l.httpUrl = r.url ?? "", l.httpMethod = (r.method ?? "GET").toUpperCase(), l.httpBody = r.body ?? "", l.successStatuses = r.successStatuses ?? "";
|
|
333
345
|
let i = {};
|
|
334
346
|
try {
|
|
335
347
|
i = JSON.parse(r.headers || "{}");
|
|
336
348
|
} catch {
|
|
337
349
|
}
|
|
338
|
-
|
|
339
|
-
} else
|
|
340
|
-
|
|
350
|
+
l.headers = Object.entries(i).map(([s, E]) => ({ key: s, value: E ?? "" }));
|
|
351
|
+
} else t.handlerKind === f.Sql ? l.sqlText = r.sql ?? "" : (l.handlerName = t.handlerName, l.props = Object.entries(r).map(([i, s]) => ({ key: i, value: s ?? "" })));
|
|
352
|
+
N.value = !0, ne();
|
|
341
353
|
}
|
|
342
|
-
function
|
|
343
|
-
const
|
|
344
|
-
if (
|
|
345
|
-
|
|
354
|
+
function se() {
|
|
355
|
+
const t = {};
|
|
356
|
+
if (l.handlerKind === f.Http) {
|
|
357
|
+
t.url = l.httpUrl.trim(), t.method = l.httpMethod;
|
|
346
358
|
const r = {};
|
|
347
|
-
for (const i of
|
|
348
|
-
Object.keys(r).length && (
|
|
349
|
-
} else if (
|
|
350
|
-
|
|
359
|
+
for (const i of l.headers) i.key.trim() && (r[i.key.trim()] = i.value);
|
|
360
|
+
Object.keys(r).length && (t.headers = JSON.stringify(r)), l.httpBody.trim() && (t.body = l.httpBody), l.successStatuses.trim() && (t.successStatuses = l.successStatuses.trim());
|
|
361
|
+
} else if (l.handlerKind === f.Sql)
|
|
362
|
+
t.sql = l.sqlText;
|
|
351
363
|
else
|
|
352
|
-
for (const r of
|
|
364
|
+
for (const r of l.props) r.key.trim() && (t[r.key.trim()] = r.value);
|
|
353
365
|
return {
|
|
354
|
-
code:
|
|
355
|
-
name:
|
|
356
|
-
handlerKind:
|
|
366
|
+
code: l.code.trim(),
|
|
367
|
+
name: l.name.trim(),
|
|
368
|
+
handlerKind: l.handlerKind,
|
|
357
369
|
// HTTP/SQL 的处理器名由服务端固定填内置处理器,这里传空即可
|
|
358
|
-
handlerName:
|
|
359
|
-
properties:
|
|
360
|
-
triggerKind:
|
|
361
|
-
cronExpression:
|
|
362
|
-
intervalSeconds:
|
|
363
|
-
oneShotTime:
|
|
364
|
-
startTime:
|
|
365
|
-
endTime:
|
|
366
|
-
misfireStrategy:
|
|
367
|
-
concurrencyMode:
|
|
368
|
-
timeoutSeconds:
|
|
369
|
-
retryCount:
|
|
370
|
-
retryIntervalSeconds:
|
|
371
|
-
failAlertThreshold:
|
|
372
|
-
alertByNotice:
|
|
373
|
-
alertEmails:
|
|
374
|
-
remark:
|
|
370
|
+
handlerName: l.handlerKind === f.Compiled ? l.handlerName : "",
|
|
371
|
+
properties: t,
|
|
372
|
+
triggerKind: l.triggerKind,
|
|
373
|
+
cronExpression: l.triggerKind === v.Cron ? l.cronExpression.trim() : null,
|
|
374
|
+
intervalSeconds: l.triggerKind === v.Interval ? l.intervalSeconds : null,
|
|
375
|
+
oneShotTime: l.triggerKind === v.OneShot ? l.oneShotTime : null,
|
|
376
|
+
startTime: l.startTime || null,
|
|
377
|
+
endTime: l.endTime || null,
|
|
378
|
+
misfireStrategy: l.misfireStrategy,
|
|
379
|
+
concurrencyMode: l.concurrencyMode,
|
|
380
|
+
timeoutSeconds: l.timeoutSeconds,
|
|
381
|
+
retryCount: l.retryCount,
|
|
382
|
+
retryIntervalSeconds: l.retryIntervalSeconds,
|
|
383
|
+
failAlertThreshold: l.failAlertThreshold,
|
|
384
|
+
alertByNotice: l.alertByNotice,
|
|
385
|
+
alertEmails: l.alertEmails.trim() || null,
|
|
386
|
+
remark: l.remark.trim() || null
|
|
375
387
|
};
|
|
376
388
|
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
389
|
+
const K = w(!1);
|
|
390
|
+
async function Ue() {
|
|
391
|
+
K.value = !0;
|
|
392
|
+
try {
|
|
393
|
+
await qe() !== !1 && (N.value = !1);
|
|
394
|
+
} catch {
|
|
395
|
+
} finally {
|
|
396
|
+
K.value = !1;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
Oe(() => {
|
|
400
|
+
N.value = !1;
|
|
401
|
+
});
|
|
402
|
+
async function qe() {
|
|
403
|
+
var t, r;
|
|
404
|
+
await ((t = te.value) == null ? void 0 : t.validate());
|
|
380
405
|
try {
|
|
381
|
-
|
|
406
|
+
_.value === null ? await C.add(se()) : await C.update(_.value, se()), F.success(a("job.saved")), await ((r = q.value) == null ? void 0 : r.refresh());
|
|
382
407
|
} catch (i) {
|
|
383
|
-
return
|
|
408
|
+
return F.error(ce(i)), !1;
|
|
384
409
|
}
|
|
385
410
|
}
|
|
386
|
-
return (
|
|
387
|
-
const i =
|
|
388
|
-
return
|
|
389
|
-
o(e(
|
|
390
|
-
|
|
411
|
+
return (t, r) => {
|
|
412
|
+
const i = Pe("auth");
|
|
413
|
+
return c(), k(P, null, [
|
|
414
|
+
o(e(Ge), {
|
|
415
|
+
toolbar: e(al),
|
|
391
416
|
ref_key: "tableRef",
|
|
392
|
-
ref:
|
|
393
|
-
columns:
|
|
394
|
-
fetcher: e(
|
|
395
|
-
|
|
396
|
-
"
|
|
417
|
+
ref: q,
|
|
418
|
+
columns: ae,
|
|
419
|
+
fetcher: e(C).page,
|
|
420
|
+
search: { container: "table" },
|
|
421
|
+
"fill-height": "",
|
|
422
|
+
"min-row-height": e(ll),
|
|
423
|
+
"card-on-narrow": "",
|
|
397
424
|
"storage-key": "sys-job",
|
|
398
|
-
"checked-row-keys": e(
|
|
399
|
-
"onUpdate:checkedRowKeys": r[0] || (r[0] = (s) =>
|
|
400
|
-
onError: r[1] || (r[1] = (s) => e(
|
|
425
|
+
"checked-row-keys": e(ee),
|
|
426
|
+
"onUpdate:checkedRowKeys": r[0] || (r[0] = (s) => ee.value = s),
|
|
427
|
+
onError: r[1] || (r[1] = (s) => e(F).error(e(ce)(s)))
|
|
401
428
|
}, {
|
|
402
|
-
|
|
403
|
-
|
|
429
|
+
"pagination-prefix": n(({ itemCount: s }) => [
|
|
430
|
+
o(tl, { count: s }, null, 8, ["count"])
|
|
431
|
+
]),
|
|
432
|
+
"toolbar-right": n(() => [
|
|
433
|
+
ie((c(), z(e(h), {
|
|
404
434
|
type: "primary",
|
|
405
|
-
onClick:
|
|
435
|
+
onClick: _e
|
|
406
436
|
}, {
|
|
407
437
|
icon: n(() => [
|
|
408
|
-
o(
|
|
438
|
+
o(R, {
|
|
409
439
|
icon: "ph:plus",
|
|
410
440
|
size: 16
|
|
411
441
|
})
|
|
412
442
|
]),
|
|
413
443
|
default: n(() => [
|
|
414
|
-
|
|
444
|
+
p(" " + d(e(a)("common.add")), 1)
|
|
415
445
|
]),
|
|
416
446
|
_: 1
|
|
417
447
|
})), [
|
|
418
448
|
[i, "POST:/api/v1/sys/job"]
|
|
419
|
-
])
|
|
420
|
-
|
|
449
|
+
])
|
|
450
|
+
]),
|
|
451
|
+
batch: n(() => [
|
|
452
|
+
ie((c(), z(e(h), {
|
|
421
453
|
type: "error",
|
|
422
|
-
|
|
423
|
-
onClick: e(pe)
|
|
454
|
+
onClick: e(ye)
|
|
424
455
|
}, {
|
|
425
456
|
icon: n(() => [
|
|
426
|
-
o(
|
|
457
|
+
o(R, {
|
|
427
458
|
icon: "ph:trash",
|
|
428
459
|
size: 16
|
|
429
460
|
})
|
|
430
461
|
]),
|
|
431
462
|
default: n(() => [
|
|
432
|
-
|
|
463
|
+
p(" " + d(e(a)("common.batchDelete")), 1)
|
|
433
464
|
]),
|
|
434
465
|
_: 1
|
|
435
|
-
}, 8, ["
|
|
466
|
+
}, 8, ["onClick"])), [
|
|
436
467
|
[i, "POST:/api/v1/sys/job/batch-delete"]
|
|
437
468
|
])
|
|
438
469
|
]),
|
|
439
470
|
_: 1
|
|
440
|
-
}, 8, ["fetcher", "checked-row-keys"]),
|
|
441
|
-
o(
|
|
442
|
-
show:
|
|
443
|
-
"onUpdate:show": r[
|
|
444
|
-
|
|
445
|
-
width:
|
|
446
|
-
"
|
|
447
|
-
"
|
|
471
|
+
}, 8, ["toolbar", "fetcher", "min-row-height", "checked-row-keys"]),
|
|
472
|
+
o(e(He), {
|
|
473
|
+
show: N.value,
|
|
474
|
+
"onUpdate:show": r[30] || (r[30] = (s) => N.value = s),
|
|
475
|
+
placement: O.value ? "bottom" : "right",
|
|
476
|
+
width: "min(880px, 100vw)",
|
|
477
|
+
height: "92vh",
|
|
478
|
+
class: de({ "st-sheet": O.value }),
|
|
479
|
+
"mask-closable": !1,
|
|
480
|
+
"close-on-esc": !K.value
|
|
448
481
|
}, {
|
|
449
482
|
default: n(() => [
|
|
450
|
-
o(e(
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
rules: je,
|
|
455
|
-
"label-placement": "left",
|
|
456
|
-
"label-width": 112,
|
|
457
|
-
class: "job-form"
|
|
483
|
+
o(e(Ae), {
|
|
484
|
+
title: _.value === null ? e(a)("job.addTitle") : e(a)("job.editTitle"),
|
|
485
|
+
closable: !K.value,
|
|
486
|
+
"native-scrollbar": !1
|
|
458
487
|
}, {
|
|
488
|
+
footer: n(() => [
|
|
489
|
+
y("div", {
|
|
490
|
+
class: de(["drawer-foot", { "sheet-foot": O.value }])
|
|
491
|
+
}, [
|
|
492
|
+
o(e(h), {
|
|
493
|
+
size: O.value ? "large" : "medium",
|
|
494
|
+
disabled: K.value,
|
|
495
|
+
onClick: r[29] || (r[29] = (s) => N.value = !1)
|
|
496
|
+
}, {
|
|
497
|
+
default: n(() => [
|
|
498
|
+
p(d(e(a)("common.cancel")), 1)
|
|
499
|
+
]),
|
|
500
|
+
_: 1
|
|
501
|
+
}, 8, ["size", "disabled"]),
|
|
502
|
+
o(e(h), {
|
|
503
|
+
type: "primary",
|
|
504
|
+
size: O.value ? "large" : "medium",
|
|
505
|
+
loading: K.value,
|
|
506
|
+
onClick: Ue
|
|
507
|
+
}, {
|
|
508
|
+
default: n(() => [
|
|
509
|
+
p(d(e(a)("common.save")), 1)
|
|
510
|
+
]),
|
|
511
|
+
_: 1
|
|
512
|
+
}, 8, ["size", "loading"])
|
|
513
|
+
], 2)
|
|
514
|
+
]),
|
|
459
515
|
default: n(() => [
|
|
460
|
-
o(e(
|
|
461
|
-
"
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
516
|
+
o(e(De), {
|
|
517
|
+
ref_key: "formRef",
|
|
518
|
+
ref: te,
|
|
519
|
+
model: l,
|
|
520
|
+
rules: xe,
|
|
521
|
+
"label-placement": e(Z) ? "left" : "top",
|
|
522
|
+
"label-width": e(Z) ? 112 : void 0,
|
|
523
|
+
class: "job-form"
|
|
465
524
|
}, {
|
|
466
525
|
default: n(() => [
|
|
467
|
-
o(e(
|
|
468
|
-
|
|
526
|
+
o(e(Le), {
|
|
527
|
+
"expanded-names": H.value,
|
|
528
|
+
"onUpdate:expandedNames": r[28] || (r[28] = (s) => H.value = s),
|
|
529
|
+
"display-directive": "show",
|
|
530
|
+
class: "job-sections"
|
|
469
531
|
}, {
|
|
470
|
-
header: n(() => [
|
|
471
|
-
y("span", Je, u(e(l)("job.form.sectionBasic")), 1)
|
|
472
|
-
]),
|
|
473
532
|
default: n(() => [
|
|
474
|
-
o(e(
|
|
475
|
-
|
|
476
|
-
responsive: "screen",
|
|
477
|
-
"x-gap": 16,
|
|
478
|
-
"y-gap": 0
|
|
533
|
+
o(e(A), {
|
|
534
|
+
name: T.basic
|
|
479
535
|
}, {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
label: e(l)("job.code"),
|
|
483
|
-
path: "code"
|
|
484
|
-
}, {
|
|
485
|
-
default: n(() => [
|
|
486
|
-
o(e(h), {
|
|
487
|
-
value: t.code,
|
|
488
|
-
"onUpdate:value": r[2] || (r[2] = (s) => t.code = s),
|
|
489
|
-
placeholder: e(l)("job.codePlaceholder"),
|
|
490
|
-
disabled: C.value !== null
|
|
491
|
-
}, null, 8, ["value", "placeholder", "disabled"])
|
|
492
|
-
]),
|
|
493
|
-
_: 1
|
|
494
|
-
}, 8, ["label"]),
|
|
495
|
-
o(e(d), {
|
|
496
|
-
label: e(l)("job.name"),
|
|
497
|
-
path: "name"
|
|
498
|
-
}, {
|
|
499
|
-
default: n(() => [
|
|
500
|
-
o(e(h), {
|
|
501
|
-
value: t.name,
|
|
502
|
-
"onUpdate:value": r[3] || (r[3] = (s) => t.name = s),
|
|
503
|
-
placeholder: e(l)("job.name")
|
|
504
|
-
}, null, 8, ["value", "placeholder"])
|
|
505
|
-
]),
|
|
506
|
-
_: 1
|
|
507
|
-
}, 8, ["label"]),
|
|
508
|
-
o(e(d), {
|
|
509
|
-
span: 2,
|
|
510
|
-
label: e(l)("job.remark"),
|
|
511
|
-
"show-feedback": !1
|
|
512
|
-
}, {
|
|
513
|
-
default: n(() => [
|
|
514
|
-
o(e(h), {
|
|
515
|
-
value: t.remark,
|
|
516
|
-
"onUpdate:value": r[4] || (r[4] = (s) => t.remark = s),
|
|
517
|
-
type: "textarea",
|
|
518
|
-
autosize: { minRows: 1, maxRows: 2 }
|
|
519
|
-
}, null, 8, ["value"])
|
|
520
|
-
]),
|
|
521
|
-
_: 1
|
|
522
|
-
}, 8, ["label"])
|
|
536
|
+
header: n(() => [
|
|
537
|
+
y("span", ol, d(e(a)("job.form.sectionBasic")), 1)
|
|
523
538
|
]),
|
|
524
|
-
_: 1
|
|
525
|
-
})
|
|
526
|
-
]),
|
|
527
|
-
_: 1
|
|
528
|
-
}, 8, ["name"]),
|
|
529
|
-
o(e(B), {
|
|
530
|
-
name: T.trigger
|
|
531
|
-
}, {
|
|
532
|
-
header: n(() => [
|
|
533
|
-
y("span", Le, u(e(l)("job.form.sectionTrigger")), 1)
|
|
534
|
-
]),
|
|
535
|
-
default: n(() => [
|
|
536
|
-
o(e(H), {
|
|
537
|
-
cols: "1 s:2",
|
|
538
|
-
responsive: "screen",
|
|
539
|
-
"x-gap": 16,
|
|
540
|
-
"y-gap": 0
|
|
541
|
-
}, {
|
|
542
539
|
default: n(() => [
|
|
543
|
-
o(e(
|
|
544
|
-
|
|
545
|
-
"
|
|
540
|
+
o(e(D), {
|
|
541
|
+
cols: "1 s:2",
|
|
542
|
+
responsive: "screen",
|
|
543
|
+
"x-gap": 16,
|
|
544
|
+
"y-gap": 0
|
|
546
545
|
}, {
|
|
547
546
|
default: n(() => [
|
|
548
|
-
o(e(
|
|
549
|
-
|
|
550
|
-
|
|
547
|
+
o(e(u), {
|
|
548
|
+
label: e(a)("job.code"),
|
|
549
|
+
path: "code"
|
|
551
550
|
}, {
|
|
552
551
|
default: n(() => [
|
|
553
|
-
o(e(
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
c(u(e(l)("job.trigger.cron")), 1)
|
|
560
|
-
]),
|
|
561
|
-
_: 1
|
|
562
|
-
}, 8, ["value"]),
|
|
563
|
-
o(e(j), {
|
|
564
|
-
value: e(v).Interval
|
|
565
|
-
}, {
|
|
566
|
-
default: n(() => [
|
|
567
|
-
c(u(e(l)("job.trigger.interval")), 1)
|
|
568
|
-
]),
|
|
569
|
-
_: 1
|
|
570
|
-
}, 8, ["value"]),
|
|
571
|
-
o(e(j), {
|
|
572
|
-
value: e(v).OneShot
|
|
573
|
-
}, {
|
|
574
|
-
default: n(() => [
|
|
575
|
-
c(u(e(l)("job.trigger.oneShot")), 1)
|
|
576
|
-
]),
|
|
577
|
-
_: 1
|
|
578
|
-
}, 8, ["value"])
|
|
579
|
-
]),
|
|
580
|
-
_: 1
|
|
581
|
-
})
|
|
552
|
+
o(e(g), {
|
|
553
|
+
value: l.code,
|
|
554
|
+
"onUpdate:value": r[2] || (r[2] = (s) => l.code = s),
|
|
555
|
+
placeholder: e(a)("job.codePlaceholder"),
|
|
556
|
+
disabled: _.value !== null
|
|
557
|
+
}, null, 8, ["value", "placeholder", "disabled"])
|
|
582
558
|
]),
|
|
583
559
|
_: 1
|
|
584
|
-
}, 8, ["
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
t.triggerKind === e(v).Interval ? (p(), q(e(d), {
|
|
589
|
-
key: 0,
|
|
590
|
-
label: e(l)("job.trigger.intervalSeconds"),
|
|
591
|
-
path: "intervalSeconds"
|
|
592
|
-
}, {
|
|
593
|
-
default: n(() => [
|
|
594
|
-
o(e(P), {
|
|
595
|
-
value: t.intervalSeconds,
|
|
596
|
-
"onUpdate:value": r[6] || (r[6] = (s) => t.intervalSeconds = s),
|
|
597
|
-
min: 5,
|
|
598
|
-
style: { width: "200px" }
|
|
560
|
+
}, 8, ["label"]),
|
|
561
|
+
o(e(u), {
|
|
562
|
+
label: e(a)("job.name"),
|
|
563
|
+
path: "name"
|
|
599
564
|
}, {
|
|
600
|
-
|
|
601
|
-
|
|
565
|
+
default: n(() => [
|
|
566
|
+
o(e(g), {
|
|
567
|
+
value: l.name,
|
|
568
|
+
"onUpdate:value": r[3] || (r[3] = (s) => l.name = s),
|
|
569
|
+
placeholder: e(a)("job.name")
|
|
570
|
+
}, null, 8, ["value", "placeholder"])
|
|
602
571
|
]),
|
|
603
572
|
_: 1
|
|
604
|
-
}, 8, ["
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
style: { width: "240px" }
|
|
621
|
-
}, null, 8, ["formatted-value"])
|
|
622
|
-
]),
|
|
623
|
-
_: 1
|
|
624
|
-
}, 8, ["label"])) : w("", !0),
|
|
625
|
-
t.triggerKind === e(v).Cron ? (p(), q(e(d), {
|
|
626
|
-
key: 2,
|
|
627
|
-
span: 2,
|
|
628
|
-
label: e(l)("job.trigger.cronExpression"),
|
|
629
|
-
path: "cronExpression"
|
|
630
|
-
}, {
|
|
631
|
-
default: n(() => [
|
|
632
|
-
o(Be, {
|
|
633
|
-
"model-value": t.cronExpression,
|
|
634
|
-
"onUpdate:modelValue": r[8] || (r[8] = (s) => t.cronExpression = s)
|
|
635
|
-
}, null, 8, ["model-value"])
|
|
573
|
+
}, 8, ["label"]),
|
|
574
|
+
o(e(u), {
|
|
575
|
+
span: 2,
|
|
576
|
+
label: e(a)("job.remark"),
|
|
577
|
+
"show-feedback": !1
|
|
578
|
+
}, {
|
|
579
|
+
default: n(() => [
|
|
580
|
+
o(e(g), {
|
|
581
|
+
value: l.remark,
|
|
582
|
+
"onUpdate:value": r[4] || (r[4] = (s) => l.remark = s),
|
|
583
|
+
type: "textarea",
|
|
584
|
+
autosize: { minRows: 1, maxRows: 2 }
|
|
585
|
+
}, null, 8, ["value"])
|
|
586
|
+
]),
|
|
587
|
+
_: 1
|
|
588
|
+
}, 8, ["label"])
|
|
636
589
|
]),
|
|
637
590
|
_: 1
|
|
638
|
-
}
|
|
591
|
+
})
|
|
639
592
|
]),
|
|
640
593
|
_: 1
|
|
641
|
-
})
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
}, 8, ["name"]),
|
|
645
|
-
o(e(B), {
|
|
646
|
-
name: T.handler
|
|
647
|
-
}, {
|
|
648
|
-
header: n(() => [
|
|
649
|
-
y("span", $e, u(e(l)("job.form.sectionHandler")), 1)
|
|
650
|
-
]),
|
|
651
|
-
default: n(() => [
|
|
652
|
-
o(e(H), {
|
|
653
|
-
cols: "1 s:2",
|
|
654
|
-
responsive: "screen",
|
|
655
|
-
"x-gap": 16,
|
|
656
|
-
"y-gap": 0
|
|
594
|
+
}, 8, ["name"]),
|
|
595
|
+
o(e(A), {
|
|
596
|
+
name: T.trigger
|
|
657
597
|
}, {
|
|
598
|
+
header: n(() => [
|
|
599
|
+
y("span", nl, d(e(a)("job.form.sectionTrigger")), 1)
|
|
600
|
+
]),
|
|
658
601
|
default: n(() => [
|
|
659
|
-
o(e(
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
"
|
|
602
|
+
o(e(D), {
|
|
603
|
+
cols: "1 s:2",
|
|
604
|
+
responsive: "screen",
|
|
605
|
+
"x-gap": 16,
|
|
606
|
+
"y-gap": 0
|
|
663
607
|
}, {
|
|
664
608
|
default: n(() => [
|
|
665
|
-
o(e(
|
|
609
|
+
o(e(u), {
|
|
610
|
+
label: e(a)("job.trigger.kind"),
|
|
611
|
+
"show-feedback": !1
|
|
612
|
+
}, {
|
|
666
613
|
default: n(() => [
|
|
667
|
-
o(e(
|
|
668
|
-
value:
|
|
669
|
-
"onUpdate:value": r[
|
|
614
|
+
o(e(L), {
|
|
615
|
+
value: l.triggerKind,
|
|
616
|
+
"onUpdate:value": r[5] || (r[5] = (s) => l.triggerKind = s)
|
|
670
617
|
}, {
|
|
671
618
|
default: n(() => [
|
|
672
|
-
o(e(
|
|
619
|
+
o(e(U), null, {
|
|
673
620
|
default: n(() => [
|
|
674
621
|
o(e(j), {
|
|
675
|
-
value: e(
|
|
622
|
+
value: e(v).Cron
|
|
676
623
|
}, {
|
|
677
624
|
default: n(() => [
|
|
678
|
-
|
|
625
|
+
p(d(e(a)("job.trigger.cron")), 1)
|
|
679
626
|
]),
|
|
680
627
|
_: 1
|
|
681
628
|
}, 8, ["value"]),
|
|
682
629
|
o(e(j), {
|
|
683
|
-
value: e(
|
|
630
|
+
value: e(v).Interval
|
|
684
631
|
}, {
|
|
685
632
|
default: n(() => [
|
|
686
|
-
|
|
633
|
+
p(d(e(a)("job.trigger.interval")), 1)
|
|
687
634
|
]),
|
|
688
635
|
_: 1
|
|
689
636
|
}, 8, ["value"]),
|
|
690
637
|
o(e(j), {
|
|
691
|
-
value: e(
|
|
692
|
-
disabled: !$.value
|
|
638
|
+
value: e(v).OneShot
|
|
693
639
|
}, {
|
|
694
640
|
default: n(() => [
|
|
695
|
-
|
|
641
|
+
p(d(e(a)("job.trigger.oneShot")), 1)
|
|
696
642
|
]),
|
|
697
643
|
_: 1
|
|
698
|
-
}, 8, ["value"
|
|
644
|
+
}, 8, ["value"])
|
|
699
645
|
]),
|
|
700
646
|
_: 1
|
|
701
647
|
})
|
|
702
648
|
]),
|
|
703
649
|
_: 1
|
|
704
|
-
}, 8, ["value"])
|
|
705
|
-
$.value ? w("", !0) : (p(), k("span", Fe, u(e(l)("job.handler.sqlDisabledHint")), 1))
|
|
650
|
+
}, 8, ["value"])
|
|
706
651
|
]),
|
|
707
652
|
_: 1
|
|
708
|
-
})
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
value: t.handlerName,
|
|
721
|
-
"onUpdate:value": r[10] || (r[10] = (s) => t.handlerName = s),
|
|
722
|
-
filterable: "",
|
|
723
|
-
options: Z.value,
|
|
724
|
-
placeholder: e(l)("job.handler.namePlaceholder")
|
|
725
|
-
}, null, 8, ["value", "options", "placeholder"])
|
|
726
|
-
]),
|
|
727
|
-
_: 1
|
|
728
|
-
}, 8, ["label"]),
|
|
729
|
-
o(e(d), {
|
|
730
|
-
span: 2,
|
|
731
|
-
label: e(l)("job.handler.props"),
|
|
732
|
-
"show-feedback": !1
|
|
733
|
-
}, {
|
|
734
|
-
default: n(() => [
|
|
735
|
-
y("div", Ge, [
|
|
736
|
-
(p(!0), k(R, null, re(t.props, (s, U) => (p(), k("div", {
|
|
737
|
-
key: U,
|
|
738
|
-
class: "kv-row"
|
|
739
|
-
}, [
|
|
740
|
-
o(e(h), {
|
|
741
|
-
value: s.key,
|
|
742
|
-
"onUpdate:value": (S) => s.key = S,
|
|
743
|
-
size: "small",
|
|
744
|
-
placeholder: e(l)("job.handler.propKey")
|
|
745
|
-
}, null, 8, ["value", "onUpdate:value", "placeholder"]),
|
|
746
|
-
o(e(h), {
|
|
747
|
-
value: s.value,
|
|
748
|
-
"onUpdate:value": (S) => s.value = S,
|
|
749
|
-
size: "small",
|
|
750
|
-
placeholder: e(l)("job.handler.propValue")
|
|
751
|
-
}, null, 8, ["value", "onUpdate:value", "placeholder"]),
|
|
752
|
-
o(e(g), {
|
|
753
|
-
quaternary: "",
|
|
754
|
-
circle: "",
|
|
755
|
-
size: "small",
|
|
756
|
-
"aria-label": e(l)("common.delete"),
|
|
757
|
-
onClick: (S) => t.props.splice(U, 1)
|
|
758
|
-
}, {
|
|
759
|
-
icon: n(() => [
|
|
760
|
-
o(K, {
|
|
761
|
-
icon: "ph:x",
|
|
762
|
-
size: 14
|
|
763
|
-
})
|
|
764
|
-
]),
|
|
765
|
-
_: 1
|
|
766
|
-
}, 8, ["aria-label", "onClick"])
|
|
767
|
-
]))), 128)),
|
|
768
|
-
o(e(g), {
|
|
769
|
-
dashed: "",
|
|
770
|
-
size: "small",
|
|
771
|
-
onClick: r[11] || (r[11] = (s) => t.props.push({ key: "", value: "" }))
|
|
653
|
+
}, 8, ["label"]),
|
|
654
|
+
l.triggerKind === e(v).Interval ? (c(), z(e(u), {
|
|
655
|
+
key: 0,
|
|
656
|
+
label: e(a)("job.trigger.intervalSeconds"),
|
|
657
|
+
path: "intervalSeconds"
|
|
658
|
+
}, {
|
|
659
|
+
default: n(() => [
|
|
660
|
+
o(e(M), {
|
|
661
|
+
value: l.intervalSeconds,
|
|
662
|
+
"onUpdate:value": r[6] || (r[6] = (s) => l.intervalSeconds = s),
|
|
663
|
+
min: 5,
|
|
664
|
+
style: { width: "200px" }
|
|
772
665
|
}, {
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
icon: "ph:plus",
|
|
776
|
-
size: 14
|
|
777
|
-
})
|
|
778
|
-
]),
|
|
779
|
-
default: n(() => [
|
|
780
|
-
c(" " + u(e(l)("job.handler.addProp")), 1)
|
|
666
|
+
suffix: n(() => [
|
|
667
|
+
p(d(e(a)("job.trigger.seconds")), 1)
|
|
781
668
|
]),
|
|
782
669
|
_: 1
|
|
783
|
-
})
|
|
784
|
-
])
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
o(e(d), {
|
|
819
|
-
label: e(l)("job.handler.successStatuses"),
|
|
820
|
-
"show-feedback": !1
|
|
821
|
-
}, {
|
|
822
|
-
default: n(() => [
|
|
823
|
-
o(e(h), {
|
|
824
|
-
value: t.successStatuses,
|
|
825
|
-
"onUpdate:value": r[14] || (r[14] = (s) => t.successStatuses = s),
|
|
826
|
-
placeholder: e(l)("job.handler.successStatusesPlaceholder"),
|
|
827
|
-
style: { width: "240px" }
|
|
828
|
-
}, null, 8, ["value", "placeholder"])
|
|
829
|
-
]),
|
|
830
|
-
_: 1
|
|
831
|
-
}, 8, ["label"]),
|
|
832
|
-
o(e(d), {
|
|
833
|
-
span: 2,
|
|
834
|
-
label: e(l)("job.handler.httpHeaders"),
|
|
835
|
-
"show-feedback": !1
|
|
836
|
-
}, {
|
|
837
|
-
default: n(() => [
|
|
838
|
-
y("div", We, [
|
|
839
|
-
(p(!0), k(R, null, re(t.headers, (s, U) => (p(), k("div", {
|
|
840
|
-
key: U,
|
|
841
|
-
class: "kv-row"
|
|
842
|
-
}, [
|
|
843
|
-
o(e(h), {
|
|
844
|
-
value: s.key,
|
|
845
|
-
"onUpdate:value": (S) => s.key = S,
|
|
846
|
-
size: "small",
|
|
847
|
-
placeholder: e(l)("job.handler.propKey")
|
|
848
|
-
}, null, 8, ["value", "onUpdate:value", "placeholder"]),
|
|
849
|
-
o(e(h), {
|
|
850
|
-
value: s.value,
|
|
851
|
-
"onUpdate:value": (S) => s.value = S,
|
|
852
|
-
size: "small",
|
|
853
|
-
placeholder: e(l)("job.handler.propValue")
|
|
854
|
-
}, null, 8, ["value", "onUpdate:value", "placeholder"]),
|
|
855
|
-
o(e(g), {
|
|
856
|
-
quaternary: "",
|
|
857
|
-
circle: "",
|
|
858
|
-
size: "small",
|
|
859
|
-
"aria-label": e(l)("common.delete"),
|
|
860
|
-
onClick: (S) => t.headers.splice(U, 1)
|
|
861
|
-
}, {
|
|
862
|
-
icon: n(() => [
|
|
863
|
-
o(K, {
|
|
864
|
-
icon: "ph:x",
|
|
865
|
-
size: 14
|
|
866
|
-
})
|
|
867
|
-
]),
|
|
868
|
-
_: 1
|
|
869
|
-
}, 8, ["aria-label", "onClick"])
|
|
870
|
-
]))), 128)),
|
|
871
|
-
o(e(g), {
|
|
872
|
-
dashed: "",
|
|
873
|
-
size: "small",
|
|
874
|
-
onClick: r[15] || (r[15] = (s) => t.headers.push({ key: "", value: "" }))
|
|
875
|
-
}, {
|
|
876
|
-
icon: n(() => [
|
|
877
|
-
o(K, {
|
|
878
|
-
icon: "ph:plus",
|
|
879
|
-
size: 14
|
|
880
|
-
})
|
|
881
|
-
]),
|
|
882
|
-
default: n(() => [
|
|
883
|
-
c(" " + u(e(l)("job.handler.addProp")), 1)
|
|
884
|
-
]),
|
|
885
|
-
_: 1
|
|
886
|
-
}),
|
|
887
|
-
C.value !== null ? (p(), k("span", Qe, u(e(l)("job.handler.headersMaskHint")), 1)) : w("", !0)
|
|
888
|
-
])
|
|
889
|
-
]),
|
|
890
|
-
_: 1
|
|
891
|
-
}, 8, ["label"]),
|
|
892
|
-
o(e(d), {
|
|
893
|
-
span: 2,
|
|
894
|
-
label: e(l)("job.handler.httpBody"),
|
|
895
|
-
"show-feedback": !1
|
|
896
|
-
}, {
|
|
897
|
-
default: n(() => [
|
|
898
|
-
o(e(h), {
|
|
899
|
-
value: t.httpBody,
|
|
900
|
-
"onUpdate:value": r[16] || (r[16] = (s) => t.httpBody = s),
|
|
901
|
-
type: "textarea",
|
|
902
|
-
autosize: { minRows: 2, maxRows: 5 }
|
|
903
|
-
}, null, 8, ["value"])
|
|
904
|
-
]),
|
|
905
|
-
_: 1
|
|
906
|
-
}, 8, ["label"])
|
|
907
|
-
], 64)) : w("", !0),
|
|
908
|
-
t.handlerKind === e(f).Sql ? (p(), q(e(d), {
|
|
909
|
-
key: 2,
|
|
910
|
-
span: 2,
|
|
911
|
-
label: e(l)("job.handler.sqlText"),
|
|
912
|
-
path: "sqlText"
|
|
913
|
-
}, {
|
|
914
|
-
default: n(() => [
|
|
915
|
-
o(e(h), {
|
|
916
|
-
value: t.sqlText,
|
|
917
|
-
"onUpdate:value": r[17] || (r[17] = (s) => t.sqlText = s),
|
|
918
|
-
type: "textarea",
|
|
919
|
-
autosize: { minRows: 3, maxRows: 8 },
|
|
920
|
-
placeholder: "UPDATE ..."
|
|
921
|
-
}, null, 8, ["value"])
|
|
670
|
+
}, 8, ["value"])
|
|
671
|
+
]),
|
|
672
|
+
_: 1
|
|
673
|
+
}, 8, ["label"])) : x("", !0),
|
|
674
|
+
l.triggerKind === e(v).OneShot ? (c(), z(e(u), {
|
|
675
|
+
key: 1,
|
|
676
|
+
label: e(a)("job.trigger.oneShotTime"),
|
|
677
|
+
path: "oneShotTime"
|
|
678
|
+
}, {
|
|
679
|
+
default: n(() => [
|
|
680
|
+
o(e(Q), {
|
|
681
|
+
"formatted-value": l.oneShotTime,
|
|
682
|
+
"onUpdate:formattedValue": r[7] || (r[7] = (s) => l.oneShotTime = s),
|
|
683
|
+
type: "datetime",
|
|
684
|
+
"value-format": "yyyy-MM-dd'T'HH:mm:ss",
|
|
685
|
+
clearable: "",
|
|
686
|
+
style: { width: "240px" }
|
|
687
|
+
}, null, 8, ["formatted-value"])
|
|
688
|
+
]),
|
|
689
|
+
_: 1
|
|
690
|
+
}, 8, ["label"])) : x("", !0),
|
|
691
|
+
l.triggerKind === e(v).Cron ? (c(), z(e(u), {
|
|
692
|
+
key: 2,
|
|
693
|
+
span: 2,
|
|
694
|
+
label: e(a)("job.trigger.cronExpression"),
|
|
695
|
+
path: "cronExpression"
|
|
696
|
+
}, {
|
|
697
|
+
default: n(() => [
|
|
698
|
+
o(We, {
|
|
699
|
+
"model-value": l.cronExpression,
|
|
700
|
+
"onUpdate:modelValue": r[8] || (r[8] = (s) => l.cronExpression = s)
|
|
701
|
+
}, null, 8, ["model-value"])
|
|
702
|
+
]),
|
|
703
|
+
_: 1
|
|
704
|
+
}, 8, ["label"])) : x("", !0)
|
|
922
705
|
]),
|
|
923
706
|
_: 1
|
|
924
|
-
}
|
|
707
|
+
})
|
|
925
708
|
]),
|
|
926
709
|
_: 1
|
|
927
|
-
})
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
}, 8, ["name"]),
|
|
931
|
-
o(e(B), {
|
|
932
|
-
name: T.advanced,
|
|
933
|
-
class: "job-advanced"
|
|
934
|
-
}, {
|
|
935
|
-
header: n(() => [
|
|
936
|
-
y("span", Xe, u(e(l)("job.form.sectionAdvanced")), 1),
|
|
937
|
-
y("span", Ye, u(e(l)("job.form.sectionAdvancedHint")), 1)
|
|
938
|
-
]),
|
|
939
|
-
default: n(() => [
|
|
940
|
-
o(e(H), {
|
|
941
|
-
cols: "1 s:2",
|
|
942
|
-
responsive: "screen",
|
|
943
|
-
"x-gap": 24,
|
|
944
|
-
"y-gap": 4
|
|
710
|
+
}, 8, ["name"]),
|
|
711
|
+
o(e(A), {
|
|
712
|
+
name: T.handler
|
|
945
713
|
}, {
|
|
714
|
+
header: n(() => [
|
|
715
|
+
y("span", sl, d(e(a)("job.form.sectionHandler")), 1)
|
|
716
|
+
]),
|
|
946
717
|
default: n(() => [
|
|
947
|
-
o(e(
|
|
948
|
-
|
|
949
|
-
"
|
|
718
|
+
o(e(D), {
|
|
719
|
+
cols: "1 s:2",
|
|
720
|
+
responsive: "screen",
|
|
721
|
+
"x-gap": 16,
|
|
722
|
+
"y-gap": 0
|
|
950
723
|
}, {
|
|
951
724
|
default: n(() => [
|
|
952
|
-
o(e(
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
"value-format": "yyyy-MM-dd'T'HH:mm:ss",
|
|
957
|
-
clearable: "",
|
|
958
|
-
placeholder: e(l)("job.form.windowPlaceholder"),
|
|
959
|
-
style: { width: "100%" }
|
|
960
|
-
}, null, 8, ["formatted-value", "placeholder"])
|
|
961
|
-
]),
|
|
962
|
-
_: 1
|
|
963
|
-
}, 8, ["label"]),
|
|
964
|
-
o(e(d), {
|
|
965
|
-
label: e(l)("job.form.endTime"),
|
|
966
|
-
"show-feedback": !1
|
|
967
|
-
}, {
|
|
968
|
-
default: n(() => [
|
|
969
|
-
o(e(G), {
|
|
970
|
-
"formatted-value": t.endTime,
|
|
971
|
-
"onUpdate:formattedValue": r[19] || (r[19] = (s) => t.endTime = s),
|
|
972
|
-
type: "datetime",
|
|
973
|
-
"value-format": "yyyy-MM-dd'T'HH:mm:ss",
|
|
974
|
-
clearable: "",
|
|
975
|
-
placeholder: e(l)("job.form.windowPlaceholder"),
|
|
976
|
-
style: { width: "100%" }
|
|
977
|
-
}, null, 8, ["formatted-value", "placeholder"])
|
|
978
|
-
]),
|
|
979
|
-
_: 1
|
|
980
|
-
}, 8, ["label"]),
|
|
981
|
-
o(e(d), {
|
|
982
|
-
span: 2,
|
|
983
|
-
label: e(l)("job.form.misfireStrategy"),
|
|
984
|
-
"show-feedback": !1
|
|
985
|
-
}, {
|
|
986
|
-
default: n(() => [
|
|
987
|
-
o(e(A), {
|
|
988
|
-
value: t.misfireStrategy,
|
|
989
|
-
"onUpdate:value": r[20] || (r[20] = (s) => t.misfireStrategy = s)
|
|
725
|
+
o(e(u), {
|
|
726
|
+
span: 2,
|
|
727
|
+
label: e(a)("job.handler.kind"),
|
|
728
|
+
"show-feedback": !1
|
|
990
729
|
}, {
|
|
991
730
|
default: n(() => [
|
|
992
|
-
o(e(
|
|
731
|
+
o(e(U), { align: "center" }, {
|
|
993
732
|
default: n(() => [
|
|
994
|
-
o(e(
|
|
995
|
-
value:
|
|
733
|
+
o(e(L), {
|
|
734
|
+
value: l.handlerKind,
|
|
735
|
+
"onUpdate:value": r[9] || (r[9] = (s) => l.handlerKind = s)
|
|
996
736
|
}, {
|
|
997
737
|
default: n(() => [
|
|
998
|
-
|
|
738
|
+
o(e(U), null, {
|
|
739
|
+
default: n(() => [
|
|
740
|
+
o(e(j), {
|
|
741
|
+
value: e(f).Compiled
|
|
742
|
+
}, {
|
|
743
|
+
default: n(() => [
|
|
744
|
+
p(d(e(a)("job.handler.compiled")), 1)
|
|
745
|
+
]),
|
|
746
|
+
_: 1
|
|
747
|
+
}, 8, ["value"]),
|
|
748
|
+
o(e(j), {
|
|
749
|
+
value: e(f).Http
|
|
750
|
+
}, {
|
|
751
|
+
default: n(() => [
|
|
752
|
+
p(d(e(a)("job.handler.http")), 1)
|
|
753
|
+
]),
|
|
754
|
+
_: 1
|
|
755
|
+
}, 8, ["value"]),
|
|
756
|
+
o(e(j), {
|
|
757
|
+
value: e(f).Sql,
|
|
758
|
+
disabled: !$.value
|
|
759
|
+
}, {
|
|
760
|
+
default: n(() => [
|
|
761
|
+
p(d(e(a)("job.handler.sql")), 1)
|
|
762
|
+
]),
|
|
763
|
+
_: 1
|
|
764
|
+
}, 8, ["value", "disabled"])
|
|
765
|
+
]),
|
|
766
|
+
_: 1
|
|
767
|
+
})
|
|
999
768
|
]),
|
|
1000
769
|
_: 1
|
|
1001
770
|
}, 8, ["value"]),
|
|
1002
|
-
|
|
1003
|
-
|
|
771
|
+
$.value ? x("", !0) : (c(), k("span", il, d(e(a)("job.handler.sqlDisabledHint")), 1))
|
|
772
|
+
]),
|
|
773
|
+
_: 1
|
|
774
|
+
})
|
|
775
|
+
]),
|
|
776
|
+
_: 1
|
|
777
|
+
}, 8, ["label"]),
|
|
778
|
+
l.handlerKind === e(f).Compiled ? (c(), k(P, { key: 0 }, [
|
|
779
|
+
o(e(u), {
|
|
780
|
+
span: 2,
|
|
781
|
+
label: e(a)("job.handler.name"),
|
|
782
|
+
path: "handlerName"
|
|
783
|
+
}, {
|
|
784
|
+
default: n(() => [
|
|
785
|
+
o(e(pe), {
|
|
786
|
+
value: l.handlerName,
|
|
787
|
+
"onUpdate:value": r[10] || (r[10] = (s) => l.handlerName = s),
|
|
788
|
+
filterable: "",
|
|
789
|
+
options: re.value,
|
|
790
|
+
placeholder: e(a)("job.handler.namePlaceholder")
|
|
791
|
+
}, null, 8, ["value", "options", "placeholder"])
|
|
792
|
+
]),
|
|
793
|
+
_: 1
|
|
794
|
+
}, 8, ["label"]),
|
|
795
|
+
o(e(u), {
|
|
796
|
+
span: 2,
|
|
797
|
+
label: e(a)("job.handler.props"),
|
|
798
|
+
"show-feedback": !1
|
|
799
|
+
}, {
|
|
800
|
+
default: n(() => [
|
|
801
|
+
y("div", dl, [
|
|
802
|
+
(c(!0), k(P, null, ue(l.props, (s, E) => (c(), k("div", {
|
|
803
|
+
key: E,
|
|
804
|
+
class: "kv-row"
|
|
805
|
+
}, [
|
|
806
|
+
o(e(g), {
|
|
807
|
+
value: s.key,
|
|
808
|
+
"onUpdate:value": (S) => s.key = S,
|
|
809
|
+
size: "small",
|
|
810
|
+
placeholder: e(a)("job.handler.propKey")
|
|
811
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder"]),
|
|
812
|
+
o(e(g), {
|
|
813
|
+
value: s.value,
|
|
814
|
+
"onUpdate:value": (S) => s.value = S,
|
|
815
|
+
size: "small",
|
|
816
|
+
placeholder: e(a)("job.handler.propValue")
|
|
817
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder"]),
|
|
818
|
+
o(e(h), {
|
|
819
|
+
quaternary: "",
|
|
820
|
+
circle: "",
|
|
821
|
+
size: "small",
|
|
822
|
+
"aria-label": e(a)("common.delete"),
|
|
823
|
+
onClick: (S) => l.props.splice(E, 1)
|
|
824
|
+
}, {
|
|
825
|
+
icon: n(() => [
|
|
826
|
+
o(R, {
|
|
827
|
+
icon: "ph:x",
|
|
828
|
+
size: 14
|
|
829
|
+
})
|
|
830
|
+
]),
|
|
831
|
+
_: 1
|
|
832
|
+
}, 8, ["aria-label", "onClick"])
|
|
833
|
+
]))), 128)),
|
|
834
|
+
o(e(h), {
|
|
835
|
+
dashed: "",
|
|
836
|
+
size: "small",
|
|
837
|
+
onClick: r[11] || (r[11] = (s) => l.props.push({ key: "", value: "" }))
|
|
1004
838
|
}, {
|
|
839
|
+
icon: n(() => [
|
|
840
|
+
o(R, {
|
|
841
|
+
icon: "ph:plus",
|
|
842
|
+
size: 14
|
|
843
|
+
})
|
|
844
|
+
]),
|
|
1005
845
|
default: n(() => [
|
|
1006
|
-
|
|
846
|
+
p(" " + d(e(a)("job.handler.addProp")), 1)
|
|
1007
847
|
]),
|
|
1008
848
|
_: 1
|
|
1009
|
-
}
|
|
1010
|
-
])
|
|
1011
|
-
|
|
1012
|
-
|
|
849
|
+
})
|
|
850
|
+
])
|
|
851
|
+
]),
|
|
852
|
+
_: 1
|
|
853
|
+
}, 8, ["label"])
|
|
854
|
+
], 64)) : x("", !0),
|
|
855
|
+
l.handlerKind === e(f).Http ? (c(), k(P, { key: 1 }, [
|
|
856
|
+
o(e(u), {
|
|
857
|
+
span: 2,
|
|
858
|
+
label: e(a)("job.handler.httpUrl"),
|
|
859
|
+
path: "httpUrl"
|
|
860
|
+
}, {
|
|
861
|
+
default: n(() => [
|
|
862
|
+
o(e(g), {
|
|
863
|
+
value: l.httpUrl,
|
|
864
|
+
"onUpdate:value": r[12] || (r[12] = (s) => l.httpUrl = s),
|
|
865
|
+
placeholder: "https://example.com/api/task"
|
|
866
|
+
}, null, 8, ["value"])
|
|
867
|
+
]),
|
|
868
|
+
_: 1
|
|
869
|
+
}, 8, ["label"]),
|
|
870
|
+
o(e(u), {
|
|
871
|
+
label: e(a)("job.handler.httpMethod"),
|
|
872
|
+
"show-feedback": !1
|
|
873
|
+
}, {
|
|
874
|
+
default: n(() => [
|
|
875
|
+
o(e(pe), {
|
|
876
|
+
value: l.httpMethod,
|
|
877
|
+
"onUpdate:value": r[13] || (r[13] = (s) => l.httpMethod = s),
|
|
878
|
+
options: e(Ce),
|
|
879
|
+
style: { width: "160px" }
|
|
880
|
+
}, null, 8, ["value", "options"])
|
|
881
|
+
]),
|
|
882
|
+
_: 1
|
|
883
|
+
}, 8, ["label"]),
|
|
884
|
+
o(e(u), {
|
|
885
|
+
label: e(a)("job.handler.successStatuses"),
|
|
886
|
+
"show-feedback": !1
|
|
887
|
+
}, {
|
|
888
|
+
default: n(() => [
|
|
889
|
+
o(e(g), {
|
|
890
|
+
value: l.successStatuses,
|
|
891
|
+
"onUpdate:value": r[14] || (r[14] = (s) => l.successStatuses = s),
|
|
892
|
+
placeholder: e(a)("job.handler.successStatusesPlaceholder"),
|
|
893
|
+
style: { width: "240px" }
|
|
894
|
+
}, null, 8, ["value", "placeholder"])
|
|
895
|
+
]),
|
|
896
|
+
_: 1
|
|
897
|
+
}, 8, ["label"]),
|
|
898
|
+
o(e(u), {
|
|
899
|
+
span: 2,
|
|
900
|
+
label: e(a)("job.handler.httpHeaders"),
|
|
901
|
+
"show-feedback": !1
|
|
902
|
+
}, {
|
|
903
|
+
default: n(() => [
|
|
904
|
+
y("div", ul, [
|
|
905
|
+
(c(!0), k(P, null, ue(l.headers, (s, E) => (c(), k("div", {
|
|
906
|
+
key: E,
|
|
907
|
+
class: "kv-row"
|
|
908
|
+
}, [
|
|
909
|
+
o(e(g), {
|
|
910
|
+
value: s.key,
|
|
911
|
+
"onUpdate:value": (S) => s.key = S,
|
|
912
|
+
size: "small",
|
|
913
|
+
placeholder: e(a)("job.handler.propKey")
|
|
914
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder"]),
|
|
915
|
+
o(e(g), {
|
|
916
|
+
value: s.value,
|
|
917
|
+
"onUpdate:value": (S) => s.value = S,
|
|
918
|
+
size: "small",
|
|
919
|
+
placeholder: e(a)("job.handler.propValue")
|
|
920
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder"]),
|
|
921
|
+
o(e(h), {
|
|
922
|
+
quaternary: "",
|
|
923
|
+
circle: "",
|
|
924
|
+
size: "small",
|
|
925
|
+
"aria-label": e(a)("common.delete"),
|
|
926
|
+
onClick: (S) => l.headers.splice(E, 1)
|
|
927
|
+
}, {
|
|
928
|
+
icon: n(() => [
|
|
929
|
+
o(R, {
|
|
930
|
+
icon: "ph:x",
|
|
931
|
+
size: 14
|
|
932
|
+
})
|
|
933
|
+
]),
|
|
934
|
+
_: 1
|
|
935
|
+
}, 8, ["aria-label", "onClick"])
|
|
936
|
+
]))), 128)),
|
|
937
|
+
o(e(h), {
|
|
938
|
+
dashed: "",
|
|
939
|
+
size: "small",
|
|
940
|
+
onClick: r[15] || (r[15] = (s) => l.headers.push({ key: "", value: "" }))
|
|
941
|
+
}, {
|
|
942
|
+
icon: n(() => [
|
|
943
|
+
o(R, {
|
|
944
|
+
icon: "ph:plus",
|
|
945
|
+
size: 14
|
|
946
|
+
})
|
|
947
|
+
]),
|
|
948
|
+
default: n(() => [
|
|
949
|
+
p(" " + d(e(a)("job.handler.addProp")), 1)
|
|
950
|
+
]),
|
|
951
|
+
_: 1
|
|
952
|
+
}),
|
|
953
|
+
_.value !== null ? (c(), k("span", ml, d(e(a)("job.handler.headersMaskHint")), 1)) : x("", !0)
|
|
954
|
+
])
|
|
955
|
+
]),
|
|
956
|
+
_: 1
|
|
957
|
+
}, 8, ["label"]),
|
|
958
|
+
o(e(u), {
|
|
959
|
+
span: 2,
|
|
960
|
+
label: e(a)("job.handler.httpBody"),
|
|
961
|
+
"show-feedback": !1
|
|
962
|
+
}, {
|
|
963
|
+
default: n(() => [
|
|
964
|
+
o(e(g), {
|
|
965
|
+
value: l.httpBody,
|
|
966
|
+
"onUpdate:value": r[16] || (r[16] = (s) => l.httpBody = s),
|
|
967
|
+
type: "textarea",
|
|
968
|
+
autosize: { minRows: 2, maxRows: 5 }
|
|
969
|
+
}, null, 8, ["value"])
|
|
970
|
+
]),
|
|
971
|
+
_: 1
|
|
972
|
+
}, 8, ["label"])
|
|
973
|
+
], 64)) : x("", !0),
|
|
974
|
+
l.handlerKind === e(f).Sql ? (c(), z(e(u), {
|
|
975
|
+
key: 2,
|
|
976
|
+
span: 2,
|
|
977
|
+
label: e(a)("job.handler.sqlText"),
|
|
978
|
+
path: "sqlText"
|
|
979
|
+
}, {
|
|
980
|
+
default: n(() => [
|
|
981
|
+
o(e(g), {
|
|
982
|
+
value: l.sqlText,
|
|
983
|
+
"onUpdate:value": r[17] || (r[17] = (s) => l.sqlText = s),
|
|
984
|
+
type: "textarea",
|
|
985
|
+
autosize: { minRows: 3, maxRows: 8 },
|
|
986
|
+
placeholder: "UPDATE ..."
|
|
987
|
+
}, null, 8, ["value"])
|
|
1013
988
|
]),
|
|
1014
989
|
_: 1
|
|
1015
|
-
}, 8, ["
|
|
990
|
+
}, 8, ["label"])) : x("", !0)
|
|
1016
991
|
]),
|
|
1017
992
|
_: 1
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
993
|
+
})
|
|
994
|
+
]),
|
|
995
|
+
_: 1
|
|
996
|
+
}, 8, ["name"]),
|
|
997
|
+
o(e(A), {
|
|
998
|
+
name: T.advanced,
|
|
999
|
+
class: "job-advanced"
|
|
1000
|
+
}, {
|
|
1001
|
+
header: n(() => [
|
|
1002
|
+
y("span", pl, d(e(a)("job.form.sectionAdvanced")), 1),
|
|
1003
|
+
y("span", cl, d(e(a)("job.form.sectionAdvancedHint")), 1)
|
|
1004
|
+
]),
|
|
1005
|
+
default: n(() => [
|
|
1006
|
+
o(e(D), {
|
|
1007
|
+
cols: "1 s:2",
|
|
1008
|
+
responsive: "screen",
|
|
1009
|
+
"x-gap": 24,
|
|
1010
|
+
"y-gap": 4
|
|
1023
1011
|
}, {
|
|
1024
1012
|
default: n(() => [
|
|
1025
|
-
o(e(
|
|
1026
|
-
|
|
1027
|
-
"
|
|
1013
|
+
o(e(u), {
|
|
1014
|
+
label: e(a)("job.form.startTime"),
|
|
1015
|
+
"show-feedback": !1
|
|
1028
1016
|
}, {
|
|
1029
1017
|
default: n(() => [
|
|
1030
|
-
o(e(
|
|
1018
|
+
o(e(Q), {
|
|
1019
|
+
"formatted-value": l.startTime,
|
|
1020
|
+
"onUpdate:formattedValue": r[18] || (r[18] = (s) => l.startTime = s),
|
|
1021
|
+
type: "datetime",
|
|
1022
|
+
"value-format": "yyyy-MM-dd'T'HH:mm:ss",
|
|
1023
|
+
clearable: "",
|
|
1024
|
+
placeholder: e(a)("job.form.windowPlaceholder"),
|
|
1025
|
+
style: { width: "100%" }
|
|
1026
|
+
}, null, 8, ["formatted-value", "placeholder"])
|
|
1027
|
+
]),
|
|
1028
|
+
_: 1
|
|
1029
|
+
}, 8, ["label"]),
|
|
1030
|
+
o(e(u), {
|
|
1031
|
+
label: e(a)("job.form.endTime"),
|
|
1032
|
+
"show-feedback": !1
|
|
1033
|
+
}, {
|
|
1034
|
+
default: n(() => [
|
|
1035
|
+
o(e(Q), {
|
|
1036
|
+
"formatted-value": l.endTime,
|
|
1037
|
+
"onUpdate:formattedValue": r[19] || (r[19] = (s) => l.endTime = s),
|
|
1038
|
+
type: "datetime",
|
|
1039
|
+
"value-format": "yyyy-MM-dd'T'HH:mm:ss",
|
|
1040
|
+
clearable: "",
|
|
1041
|
+
placeholder: e(a)("job.form.windowPlaceholder"),
|
|
1042
|
+
style: { width: "100%" }
|
|
1043
|
+
}, null, 8, ["formatted-value", "placeholder"])
|
|
1044
|
+
]),
|
|
1045
|
+
_: 1
|
|
1046
|
+
}, 8, ["label"]),
|
|
1047
|
+
o(e(u), {
|
|
1048
|
+
span: 2,
|
|
1049
|
+
label: e(a)("job.form.misfireStrategy"),
|
|
1050
|
+
"show-feedback": !1
|
|
1051
|
+
}, {
|
|
1052
|
+
default: n(() => [
|
|
1053
|
+
o(e(L), {
|
|
1054
|
+
value: l.misfireStrategy,
|
|
1055
|
+
"onUpdate:value": r[20] || (r[20] = (s) => l.misfireStrategy = s)
|
|
1056
|
+
}, {
|
|
1031
1057
|
default: n(() => [
|
|
1032
|
-
o(e(
|
|
1033
|
-
value: e(V).SerialSkip
|
|
1034
|
-
}, {
|
|
1058
|
+
o(e(U), { size: 16 }, {
|
|
1035
1059
|
default: n(() => [
|
|
1036
|
-
|
|
1060
|
+
o(e(j), {
|
|
1061
|
+
value: e(V).Skip
|
|
1062
|
+
}, {
|
|
1063
|
+
default: n(() => [
|
|
1064
|
+
p(d(e(a)("job.form.misfireSkip")), 1)
|
|
1065
|
+
]),
|
|
1066
|
+
_: 1
|
|
1067
|
+
}, 8, ["value"]),
|
|
1068
|
+
o(e(j), {
|
|
1069
|
+
value: e(V).FireOnceNow
|
|
1070
|
+
}, {
|
|
1071
|
+
default: n(() => [
|
|
1072
|
+
p(d(e(a)("job.form.misfireFireOnceNow")), 1)
|
|
1073
|
+
]),
|
|
1074
|
+
_: 1
|
|
1075
|
+
}, 8, ["value"])
|
|
1037
1076
|
]),
|
|
1038
1077
|
_: 1
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1078
|
+
})
|
|
1079
|
+
]),
|
|
1080
|
+
_: 1
|
|
1081
|
+
}, 8, ["value"])
|
|
1082
|
+
]),
|
|
1083
|
+
_: 1
|
|
1084
|
+
}, 8, ["label"]),
|
|
1085
|
+
o(e(u), {
|
|
1086
|
+
span: 2,
|
|
1087
|
+
label: e(a)("job.form.concurrencyMode"),
|
|
1088
|
+
"show-feedback": !1
|
|
1089
|
+
}, {
|
|
1090
|
+
default: n(() => [
|
|
1091
|
+
o(e(L), {
|
|
1092
|
+
value: l.concurrencyMode,
|
|
1093
|
+
"onUpdate:value": r[21] || (r[21] = (s) => l.concurrencyMode = s)
|
|
1094
|
+
}, {
|
|
1095
|
+
default: n(() => [
|
|
1096
|
+
o(e(U), { size: 16 }, {
|
|
1043
1097
|
default: n(() => [
|
|
1044
|
-
|
|
1098
|
+
o(e(j), {
|
|
1099
|
+
value: e(J).SerialSkip
|
|
1100
|
+
}, {
|
|
1101
|
+
default: n(() => [
|
|
1102
|
+
p(d(e(a)("job.form.concurrencySerial")), 1)
|
|
1103
|
+
]),
|
|
1104
|
+
_: 1
|
|
1105
|
+
}, 8, ["value"]),
|
|
1106
|
+
o(e(j), {
|
|
1107
|
+
value: e(J).Parallel
|
|
1108
|
+
}, {
|
|
1109
|
+
default: n(() => [
|
|
1110
|
+
p(d(e(a)("job.form.concurrencyParallel")), 1)
|
|
1111
|
+
]),
|
|
1112
|
+
_: 1
|
|
1113
|
+
}, 8, ["value"])
|
|
1045
1114
|
]),
|
|
1046
1115
|
_: 1
|
|
1047
|
-
}
|
|
1116
|
+
})
|
|
1048
1117
|
]),
|
|
1049
1118
|
_: 1
|
|
1050
|
-
})
|
|
1119
|
+
}, 8, ["value"])
|
|
1051
1120
|
]),
|
|
1052
1121
|
_: 1
|
|
1053
|
-
}, 8, ["
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
])
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
},
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
},
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
])
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
},
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
},
|
|
1122
|
+
}, 8, ["label"]),
|
|
1123
|
+
o(e(u), {
|
|
1124
|
+
label: e(a)("job.form.timeoutSeconds"),
|
|
1125
|
+
"show-feedback": !1
|
|
1126
|
+
}, {
|
|
1127
|
+
default: n(() => [
|
|
1128
|
+
y("div", fl, [
|
|
1129
|
+
o(e(M), {
|
|
1130
|
+
value: l.timeoutSeconds,
|
|
1131
|
+
"onUpdate:value": r[22] || (r[22] = (s) => l.timeoutSeconds = s),
|
|
1132
|
+
min: 0,
|
|
1133
|
+
style: { width: "140px" }
|
|
1134
|
+
}, null, 8, ["value"]),
|
|
1135
|
+
y("span", bl, d(e(a)("job.form.timeoutHint")), 1)
|
|
1136
|
+
])
|
|
1137
|
+
]),
|
|
1138
|
+
_: 1
|
|
1139
|
+
}, 8, ["label"]),
|
|
1140
|
+
o(e(u), {
|
|
1141
|
+
label: e(a)("job.form.retryCount"),
|
|
1142
|
+
"show-feedback": !1
|
|
1143
|
+
}, {
|
|
1144
|
+
default: n(() => [
|
|
1145
|
+
o(e(M), {
|
|
1146
|
+
value: l.retryCount,
|
|
1147
|
+
"onUpdate:value": r[23] || (r[23] = (s) => l.retryCount = s),
|
|
1148
|
+
min: 0,
|
|
1149
|
+
max: 10,
|
|
1150
|
+
style: { width: "140px" }
|
|
1151
|
+
}, null, 8, ["value"])
|
|
1152
|
+
]),
|
|
1153
|
+
_: 1
|
|
1154
|
+
}, 8, ["label"]),
|
|
1155
|
+
o(e(u), {
|
|
1156
|
+
label: e(a)("job.form.retryIntervalSeconds"),
|
|
1157
|
+
"show-feedback": !1
|
|
1158
|
+
}, {
|
|
1159
|
+
default: n(() => [
|
|
1160
|
+
o(e(M), {
|
|
1161
|
+
value: l.retryIntervalSeconds,
|
|
1162
|
+
"onUpdate:value": r[24] || (r[24] = (s) => l.retryIntervalSeconds = s),
|
|
1163
|
+
min: 0,
|
|
1164
|
+
style: { width: "140px" }
|
|
1165
|
+
}, null, 8, ["value"])
|
|
1166
|
+
]),
|
|
1167
|
+
_: 1
|
|
1168
|
+
}, 8, ["label"]),
|
|
1169
|
+
o(e(u), {
|
|
1170
|
+
label: e(a)("job.form.failAlertThreshold"),
|
|
1171
|
+
"show-feedback": !1
|
|
1172
|
+
}, {
|
|
1173
|
+
default: n(() => [
|
|
1174
|
+
y("div", hl, [
|
|
1175
|
+
o(e(M), {
|
|
1176
|
+
value: l.failAlertThreshold,
|
|
1177
|
+
"onUpdate:value": r[25] || (r[25] = (s) => l.failAlertThreshold = s),
|
|
1178
|
+
min: 0,
|
|
1179
|
+
style: { width: "140px" }
|
|
1180
|
+
}, null, 8, ["value"]),
|
|
1181
|
+
y("span", vl, d(e(a)("job.form.failAlertHint")), 1)
|
|
1182
|
+
])
|
|
1183
|
+
]),
|
|
1184
|
+
_: 1
|
|
1185
|
+
}, 8, ["label"]),
|
|
1186
|
+
o(e(u), {
|
|
1187
|
+
label: e(a)("job.form.alertByNotice"),
|
|
1188
|
+
"show-feedback": !1
|
|
1189
|
+
}, {
|
|
1190
|
+
default: n(() => [
|
|
1191
|
+
o(e(Ve), {
|
|
1192
|
+
value: l.alertByNotice,
|
|
1193
|
+
"onUpdate:value": r[26] || (r[26] = (s) => l.alertByNotice = s)
|
|
1194
|
+
}, null, 8, ["value"])
|
|
1195
|
+
]),
|
|
1196
|
+
_: 1
|
|
1197
|
+
}, 8, ["label"]),
|
|
1198
|
+
o(e(u), {
|
|
1199
|
+
label: e(a)("job.form.alertEmails"),
|
|
1200
|
+
"show-feedback": !1
|
|
1201
|
+
}, {
|
|
1202
|
+
default: n(() => [
|
|
1203
|
+
o(e(g), {
|
|
1204
|
+
value: l.alertEmails,
|
|
1205
|
+
"onUpdate:value": r[27] || (r[27] = (s) => l.alertEmails = s),
|
|
1206
|
+
placeholder: e(a)("job.form.alertEmailsPlaceholder")
|
|
1207
|
+
}, null, 8, ["value", "placeholder"])
|
|
1208
|
+
]),
|
|
1209
|
+
_: 1
|
|
1210
|
+
}, 8, ["label"])
|
|
1142
1211
|
]),
|
|
1143
1212
|
_: 1
|
|
1144
|
-
}
|
|
1213
|
+
})
|
|
1145
1214
|
]),
|
|
1146
1215
|
_: 1
|
|
1147
|
-
})
|
|
1216
|
+
}, 8, ["name"])
|
|
1148
1217
|
]),
|
|
1149
1218
|
_: 1
|
|
1150
|
-
}, 8, ["
|
|
1219
|
+
}, 8, ["expanded-names"])
|
|
1151
1220
|
]),
|
|
1152
1221
|
_: 1
|
|
1153
|
-
}, 8, ["
|
|
1222
|
+
}, 8, ["model", "label-placement", "label-width"])
|
|
1154
1223
|
]),
|
|
1155
1224
|
_: 1
|
|
1156
|
-
}, 8, ["
|
|
1225
|
+
}, 8, ["title", "closable"])
|
|
1157
1226
|
]),
|
|
1158
1227
|
_: 1
|
|
1159
|
-
}, 8, ["show", "
|
|
1228
|
+
}, 8, ["show", "placement", "class", "close-on-esc"])
|
|
1160
1229
|
], 64);
|
|
1161
1230
|
};
|
|
1162
1231
|
}
|
|
1163
1232
|
});
|
|
1164
1233
|
export {
|
|
1165
|
-
|
|
1234
|
+
Bl as default
|
|
1166
1235
|
};
|
|
1167
1236
|
//# sourceMappingURL=index2.vue.js.map
|