smart-admin-web 10.15.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 +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 +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/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 +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.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,85 +1,108 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useMessage as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as qe, ref as m, computed as ie, h as u, reactive as oe, resolveDirective as ze, openBlock as y, createElementBlock as ne, Fragment as Ae, createElementVNode as re, createVNode as n, unref as t, withCtx as o, withDirectives as R, createBlock as w, createTextVNode as I, toDisplayString as T, createCommentVNode as de, mergeProps as se } from "vue";
|
|
2
|
+
import { useMessage as Be, NSpace as ue, NButton as f, NPopconfirm as ce, NCard as Le, NEmpty as Fe, NDrawer as Ve, NDrawerContent as je, NForm as me, NFormItem as h, NInput as x, NInputNumber as pe, NSwitch as ve } from "naive-ui";
|
|
3
|
+
import { useElementSize as Ke, useMediaQuery as He } from "@vueuse/core";
|
|
4
|
+
import { useI18n as Me } from "vue-i18n";
|
|
5
|
+
import { SmartTable as j } from "smart-naive-table";
|
|
6
|
+
import z from "../../../components/AppIcon.vue.js";
|
|
7
|
+
import ye from "../../../components/FormContainer/index.vue.js";
|
|
7
8
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
import { useConfirm as
|
|
10
|
-
import { useBatchDelete as
|
|
11
|
-
import { dictAdminApi as
|
|
12
|
-
import { useAuthStore as
|
|
13
|
-
import { useDictStore as
|
|
14
|
-
import { translateError as
|
|
15
|
-
|
|
9
|
+
import fe from "../../../components/StatusSwitch/index.vue.js";
|
|
10
|
+
import { useConfirm as We } from "../../../composables/useConfirm.js";
|
|
11
|
+
import { useBatchDelete as he } from "../../../composables/useBatchDelete.js";
|
|
12
|
+
import { dictAdminApi as p } from "../../../api/index.js";
|
|
13
|
+
import { useAuthStore as $e } from "../../../stores/auth.js";
|
|
14
|
+
import { useDictStore as Ge } from "../../../stores/dict.js";
|
|
15
|
+
import { translateError as A } from "../../../utils/error.js";
|
|
16
|
+
import { SEARCH_ACTIONS as Qe, deriveHeaderFilters as be } from "../../../utils/tableFilter.js";
|
|
17
|
+
import { TABLE_TOOLBAR as Ye, TABLE_MIN_ROW_HEIGHT as ke } from "../../../utils/tableToolbar.js";
|
|
18
|
+
import K from "../../../components/TableTotal/index.vue.js";
|
|
19
|
+
const Je = { class: "sheet-foot" }, Xe = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "field-hint"
|
|
22
|
+
}, bt = /* @__PURE__ */ qe({
|
|
16
23
|
__name: "index",
|
|
17
|
-
setup(
|
|
18
|
-
const { t: a } =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
setup(Ze) {
|
|
25
|
+
const { t: a } = Me(), C = Be(), { run: H } = We(), E = $e(), b = Ge(), U = m(), B = { ...Ye, maximize: !1 }, M = m(), { width: W } = Ke(M), P = ie(() => W.value > 0 && W.value < 600), L = m(!1), we = He("(max-width: 640px)"), $ = ie(
|
|
26
|
+
() => we.value ? { labelPlacement: "top", labelWidth: void 0 } : { labelPlacement: "left", labelWidth: 80 }
|
|
27
|
+
), r = m(null), g = m([]), N = m(!1);
|
|
28
|
+
async function _() {
|
|
29
|
+
var l, s, v, i;
|
|
30
|
+
const e = (l = r.value) == null ? void 0 : l.code;
|
|
31
|
+
if (!e) {
|
|
23
32
|
g.value = [];
|
|
24
33
|
return;
|
|
25
34
|
}
|
|
26
|
-
|
|
35
|
+
N.value = !0;
|
|
27
36
|
try {
|
|
28
|
-
const
|
|
29
|
-
((
|
|
30
|
-
} catch (
|
|
31
|
-
((
|
|
37
|
+
const V = await p.items(e);
|
|
38
|
+
((s = r.value) == null ? void 0 : s.code) === e && (g.value = V);
|
|
39
|
+
} catch (V) {
|
|
40
|
+
((v = r.value) == null ? void 0 : v.code) === e && (C.error(A(V)), g.value = []);
|
|
32
41
|
} finally {
|
|
33
|
-
((
|
|
42
|
+
((i = r.value) == null ? void 0 : i.code) === e && (N.value = !1);
|
|
34
43
|
}
|
|
35
44
|
}
|
|
36
|
-
async function
|
|
37
|
-
r.value =
|
|
45
|
+
async function ge(e) {
|
|
46
|
+
r.value = e, await _();
|
|
38
47
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
remove: c.typeBatchRemove,
|
|
48
|
+
function Te(e) {
|
|
49
|
+
return P.value && (L.value = !0), ge(e);
|
|
50
|
+
}
|
|
51
|
+
const { checkedKeys: G, run: Ce } = he({
|
|
52
|
+
remove: p.typeBatchRemove,
|
|
45
53
|
refresh: () => {
|
|
46
|
-
var
|
|
47
|
-
r.value = null, g.value = [],
|
|
54
|
+
var e;
|
|
55
|
+
r.value = null, g.value = [], b.invalidate(), (e = U.value) == null || e.refresh();
|
|
48
56
|
},
|
|
49
57
|
successMsg: a("dict.typeDeleted")
|
|
50
58
|
}), {
|
|
51
|
-
checkedKeys:
|
|
52
|
-
hasSelection:
|
|
53
|
-
run:
|
|
54
|
-
} =
|
|
55
|
-
remove:
|
|
59
|
+
checkedKeys: D,
|
|
60
|
+
hasSelection: Re,
|
|
61
|
+
run: Q
|
|
62
|
+
} = he({
|
|
63
|
+
remove: p.itemBatchRemove,
|
|
56
64
|
refresh: () => {
|
|
57
|
-
|
|
65
|
+
b.invalidate(), _();
|
|
58
66
|
},
|
|
59
67
|
successMsg: a("dict.itemDeleted")
|
|
60
|
-
}),
|
|
61
|
-
code:
|
|
62
|
-
name:
|
|
63
|
-
sort:
|
|
64
|
-
enabled:
|
|
65
|
-
remark:
|
|
66
|
-
}),
|
|
68
|
+
}), Y = (e) => ({
|
|
69
|
+
code: e.code,
|
|
70
|
+
name: e.name,
|
|
71
|
+
sort: e.sort,
|
|
72
|
+
enabled: e.enabled,
|
|
73
|
+
remark: e.remark ?? ""
|
|
74
|
+
}), J = [
|
|
67
75
|
{ type: "selection" },
|
|
68
76
|
{ type: "index", title: () => a("common.rowNo"), width: 64, align: "center" },
|
|
69
|
-
{
|
|
70
|
-
|
|
71
|
-
|
|
77
|
+
{
|
|
78
|
+
key: "code",
|
|
79
|
+
title: () => a("dict.code"),
|
|
80
|
+
render: (e) => u("span", { class: "mono muted" }, e.code)
|
|
81
|
+
},
|
|
82
|
+
// 窄档卡片以类型名称作标题(默认取第一个数据列 = 编码,不如名称好认)
|
|
83
|
+
{
|
|
84
|
+
key: "name",
|
|
85
|
+
title: () => a("dict.name"),
|
|
86
|
+
card: "title",
|
|
87
|
+
search: { actions: Qe.fuzzy }
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
key: "sort",
|
|
91
|
+
title: () => a("dict.sort"),
|
|
92
|
+
width: 70,
|
|
93
|
+
render: (e) => u("span", { class: "num muted" }, e.sort)
|
|
94
|
+
},
|
|
72
95
|
{
|
|
73
96
|
key: "enabled",
|
|
74
97
|
title: () => a("common.status"),
|
|
75
98
|
width: 90,
|
|
76
99
|
// 包一层 stopPropagation:开关点击不得冒泡到行 onClick(否则误切选中类型)
|
|
77
|
-
render: (
|
|
78
|
-
|
|
79
|
-
value:
|
|
80
|
-
request: (l) =>
|
|
100
|
+
render: (e) => u("div", { onClick: (l) => l.stopPropagation() }, [
|
|
101
|
+
u(fe, {
|
|
102
|
+
value: e.enabled,
|
|
103
|
+
request: (l) => p.typeUpdate(e.id, { ...Y(e), enabled: l }),
|
|
81
104
|
"onUpdate:value": (l) => {
|
|
82
|
-
|
|
105
|
+
e.enabled = l, b.invalidate(e.code);
|
|
83
106
|
}
|
|
84
107
|
})
|
|
85
108
|
])
|
|
@@ -88,35 +111,47 @@ const Ne = { class: "dict-layout side-page" }, $e = /* @__PURE__ */ be({
|
|
|
88
111
|
key: "op",
|
|
89
112
|
title: () => a("common.operation"),
|
|
90
113
|
width: 130,
|
|
114
|
+
align: "right",
|
|
91
115
|
fixed: "right",
|
|
92
116
|
hideInSetting: !0,
|
|
93
117
|
// stopPropagation:操作按钮点击不得冒泡到行 onClick(否则误切选中类型)
|
|
94
|
-
render: (
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
()
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
+
render: (e) => u(
|
|
119
|
+
ue,
|
|
120
|
+
{ size: 2, justify: "end", wrapItem: !1, onClick: (l) => l.stopPropagation() },
|
|
121
|
+
() => [
|
|
122
|
+
E.hasPerm("PUT:/api/v1/sys/dict/type/{id}") ? u(
|
|
123
|
+
f,
|
|
124
|
+
{
|
|
125
|
+
size: "small",
|
|
126
|
+
quaternary: !0,
|
|
127
|
+
type: "primary",
|
|
128
|
+
onClick: () => xe(e)
|
|
129
|
+
},
|
|
130
|
+
() => a("common.edit")
|
|
131
|
+
) : null,
|
|
132
|
+
E.hasPerm("DELETE:/api/v1/sys/dict/type/{id}") ? u(
|
|
133
|
+
ce,
|
|
134
|
+
{
|
|
135
|
+
onPositiveClick: () => H(() => p.typeRemove(e.id), a("dict.typeDeleted")).then((l) => {
|
|
136
|
+
var s, v;
|
|
137
|
+
l && (b.invalidate(e.code), ((s = r.value) == null ? void 0 : s.id) === e.id && (r.value = null, g.value = []), (v = U.value) == null || v.refresh());
|
|
138
|
+
})
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
trigger: () => u(
|
|
142
|
+
f,
|
|
143
|
+
{ size: "small", quaternary: !0, type: "error" },
|
|
144
|
+
() => a("common.delete")
|
|
145
|
+
),
|
|
146
|
+
default: () => a("dict.typeDeleteConfirm", { name: e.name })
|
|
147
|
+
}
|
|
148
|
+
) : null
|
|
149
|
+
]
|
|
150
|
+
)
|
|
118
151
|
}
|
|
119
|
-
]
|
|
152
|
+
];
|
|
153
|
+
be(J);
|
|
154
|
+
const O = m(!1), X = m(null), k = m(null), Ie = {
|
|
120
155
|
code: {
|
|
121
156
|
required: !0,
|
|
122
157
|
whitespace: !0,
|
|
@@ -129,81 +164,90 @@ const Ne = { class: "dict-layout side-page" }, $e = /* @__PURE__ */ be({
|
|
|
129
164
|
message: () => a("dict.nameRequired"),
|
|
130
165
|
trigger: ["input", "blur"]
|
|
131
166
|
}
|
|
132
|
-
},
|
|
133
|
-
function
|
|
134
|
-
|
|
167
|
+
}, Z = () => ({ code: "", name: "", sort: 0, enabled: !0, remark: "" }), d = oe(Z());
|
|
168
|
+
function Se() {
|
|
169
|
+
k.value = null, Object.assign(d, Z()), O.value = !0;
|
|
135
170
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
171
|
+
function xe(e) {
|
|
172
|
+
k.value = e.id, Object.assign(d, Y(e)), O.value = !0;
|
|
138
173
|
}
|
|
139
|
-
async function
|
|
140
|
-
var
|
|
141
|
-
await ((
|
|
174
|
+
async function Ee() {
|
|
175
|
+
var e, l, s;
|
|
176
|
+
await ((e = X.value) == null ? void 0 : e.validate());
|
|
142
177
|
try {
|
|
143
|
-
|
|
144
|
-
} catch (
|
|
145
|
-
return
|
|
178
|
+
k.value === null ? await p.typeAdd({ ...d }) : await p.typeUpdate(k.value, { ...d }), b.invalidate(d.code), C.success(a("dict.typeSaved")), await ((l = U.value) == null ? void 0 : l.refresh()), ((s = r.value) == null ? void 0 : s.id) === k.value && Object.assign(r.value, { name: d.name });
|
|
179
|
+
} catch (v) {
|
|
180
|
+
return C.error(A(v)), !1;
|
|
146
181
|
}
|
|
147
182
|
}
|
|
148
|
-
const
|
|
149
|
-
dictTypeCode:
|
|
150
|
-
label:
|
|
151
|
-
value:
|
|
152
|
-
sort:
|
|
153
|
-
enabled:
|
|
154
|
-
}),
|
|
183
|
+
const ee = (e) => ({
|
|
184
|
+
dictTypeCode: e.dictTypeCode,
|
|
185
|
+
label: e.label,
|
|
186
|
+
value: e.value,
|
|
187
|
+
sort: e.sort,
|
|
188
|
+
enabled: e.enabled
|
|
189
|
+
}), Ue = (e) => (l) => p.itemUpdate(e.id, { ...ee(e), enabled: l });
|
|
190
|
+
function Pe(e, l) {
|
|
191
|
+
e.enabled = l, b.invalidate(e.dictTypeCode);
|
|
192
|
+
}
|
|
193
|
+
const Ne = (e) => H(() => p.itemRemove(e.id), a("dict.itemDeleted")).then((l) => {
|
|
194
|
+
l && (b.invalidate(e.dictTypeCode), _());
|
|
195
|
+
}), F = [
|
|
155
196
|
{ type: "selection" },
|
|
197
|
+
{ type: "index", title: () => a("common.rowNo"), width: 64, align: "center" },
|
|
198
|
+
{ title: () => a("dict.itemLabel"), key: "label", card: "title", search: {} },
|
|
199
|
+
{
|
|
200
|
+
title: () => a("dict.itemValue"),
|
|
201
|
+
key: "value",
|
|
202
|
+
search: {},
|
|
203
|
+
render: (e) => u("span", { class: "mono muted" }, e.value)
|
|
204
|
+
},
|
|
156
205
|
{
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
width:
|
|
160
|
-
|
|
161
|
-
render: (t, l) => l + 1
|
|
206
|
+
title: () => a("dict.sort"),
|
|
207
|
+
key: "sort",
|
|
208
|
+
width: 70,
|
|
209
|
+
render: (e) => u("span", { class: "num muted" }, e.sort)
|
|
162
210
|
},
|
|
163
|
-
{ title: () => a("dict.itemLabel"), key: "label" },
|
|
164
|
-
{ title: () => a("dict.itemValue"), key: "value" },
|
|
165
|
-
{ title: () => a("dict.sort"), key: "sort", width: 70 },
|
|
166
211
|
{
|
|
167
212
|
title: () => a("common.status"),
|
|
168
213
|
key: "enabled",
|
|
169
214
|
width: 90,
|
|
170
|
-
render: (
|
|
171
|
-
value:
|
|
172
|
-
request: (
|
|
173
|
-
"onUpdate:value": (l) =>
|
|
174
|
-
t.enabled = l, y.invalidate(t.dictTypeCode);
|
|
175
|
-
}
|
|
215
|
+
render: (e) => u(fe, {
|
|
216
|
+
value: e.enabled,
|
|
217
|
+
request: Ue(e),
|
|
218
|
+
"onUpdate:value": (l) => Pe(e, l)
|
|
176
219
|
})
|
|
177
220
|
},
|
|
178
221
|
{
|
|
179
222
|
title: () => a("common.operation"),
|
|
180
223
|
key: "op",
|
|
181
224
|
width: 130,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
225
|
+
align: "right",
|
|
226
|
+
fixed: "right",
|
|
227
|
+
hideInSetting: !0,
|
|
228
|
+
render: (e) => u(ue, { size: 2, justify: "end", wrapItem: !1 }, () => [
|
|
229
|
+
E.hasPerm("PUT:/api/v1/sys/dict/item/{id}") ? u(
|
|
230
|
+
f,
|
|
231
|
+
{ size: "small", quaternary: !0, type: "primary", onClick: () => De(e) },
|
|
186
232
|
() => a("common.edit")
|
|
187
233
|
) : null,
|
|
188
|
-
|
|
189
|
-
|
|
234
|
+
E.hasPerm("DELETE:/api/v1/sys/dict/item/{id}") ? u(
|
|
235
|
+
ce,
|
|
236
|
+
{ onPositiveClick: () => Ne(e) },
|
|
190
237
|
{
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
})
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
trigger: () => m(
|
|
197
|
-
b,
|
|
238
|
+
trigger: () => u(
|
|
239
|
+
f,
|
|
198
240
|
{ size: "small", quaternary: !0, type: "error" },
|
|
199
241
|
() => a("common.delete")
|
|
200
242
|
),
|
|
201
|
-
default: () => a("dict.itemDeleteConfirm", { label:
|
|
243
|
+
default: () => a("dict.itemDeleteConfirm", { label: e.label })
|
|
202
244
|
}
|
|
203
245
|
) : null
|
|
204
246
|
])
|
|
205
247
|
}
|
|
206
|
-
]
|
|
248
|
+
];
|
|
249
|
+
be(F);
|
|
250
|
+
const q = m(!1), te = m(null), S = m(null), _e = {
|
|
207
251
|
label: {
|
|
208
252
|
required: !0,
|
|
209
253
|
whitespace: !0,
|
|
@@ -216,337 +260,398 @@ const Ne = { class: "dict-layout side-page" }, $e = /* @__PURE__ */ be({
|
|
|
216
260
|
message: () => a("dict.itemValueRequired"),
|
|
217
261
|
trigger: ["input", "blur"]
|
|
218
262
|
}
|
|
219
|
-
},
|
|
263
|
+
}, le = () => ({
|
|
220
264
|
dictTypeCode: "",
|
|
221
265
|
label: "",
|
|
222
266
|
value: "",
|
|
223
267
|
sort: 0,
|
|
224
268
|
enabled: !0
|
|
225
|
-
}),
|
|
226
|
-
function
|
|
227
|
-
r.value && (
|
|
269
|
+
}), c = oe(le());
|
|
270
|
+
function ae() {
|
|
271
|
+
r.value && (S.value = null, Object.assign(c, le(), { dictTypeCode: r.value.code }), q.value = !0);
|
|
228
272
|
}
|
|
229
|
-
function
|
|
230
|
-
|
|
273
|
+
function De(e) {
|
|
274
|
+
S.value = e.id, Object.assign(c, ee(e)), q.value = !0;
|
|
231
275
|
}
|
|
232
|
-
async function
|
|
233
|
-
var
|
|
234
|
-
await ((
|
|
276
|
+
async function Oe() {
|
|
277
|
+
var e;
|
|
278
|
+
await ((e = te.value) == null ? void 0 : e.validate());
|
|
235
279
|
try {
|
|
236
|
-
|
|
280
|
+
S.value === null ? await p.itemAdd({ ...c }) : await p.itemUpdate(S.value, { ...c }), b.invalidate(c.dictTypeCode), C.success(a("dict.itemSaved")), await _();
|
|
237
281
|
} catch (l) {
|
|
238
|
-
return
|
|
282
|
+
return C.error(A(l)), !1;
|
|
239
283
|
}
|
|
240
284
|
}
|
|
241
|
-
return (
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
285
|
+
return (e, l) => {
|
|
286
|
+
var v;
|
|
287
|
+
const s = ze("auth");
|
|
288
|
+
return y(), ne(Ae, null, [
|
|
289
|
+
re("div", {
|
|
290
|
+
ref_key: "layoutRef",
|
|
291
|
+
ref: M,
|
|
292
|
+
class: "dict-layout fill-page fill-page--soft fill-split"
|
|
293
|
+
}, [
|
|
294
|
+
n(t(j), {
|
|
295
|
+
toolbar: B,
|
|
296
|
+
ref_key: "typeTableRef",
|
|
297
|
+
ref: U,
|
|
298
|
+
columns: J,
|
|
299
|
+
fetcher: t(p).typePage,
|
|
300
|
+
"fill-height": "",
|
|
301
|
+
"min-row-height": t(ke),
|
|
302
|
+
"card-on-narrow": "",
|
|
303
|
+
search: { container: "table" },
|
|
304
|
+
"storage-key": "sys-dict-type",
|
|
305
|
+
"active-row-key": ((v = r.value) == null ? void 0 : v.id) ?? null,
|
|
306
|
+
"row-props": () => ({ style: "cursor: pointer" }),
|
|
307
|
+
"checked-row-keys": t(G),
|
|
308
|
+
onRowClick: l[0] || (l[0] = (i) => Te(i)),
|
|
309
|
+
"onUpdate:checkedRowKeys": l[1] || (l[1] = (i) => G.value = i),
|
|
310
|
+
onError: l[2] || (l[2] = (i) => t(C).error(t(A)(i)))
|
|
249
311
|
}, {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
"
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
}, {
|
|
293
|
-
icon: d(() => [
|
|
294
|
-
o(E, {
|
|
295
|
-
icon: "ph:trash",
|
|
296
|
-
size: 16
|
|
297
|
-
})
|
|
298
|
-
]),
|
|
299
|
-
default: d(() => [
|
|
300
|
-
z(" " + P(e(a)("common.batchDelete")), 1)
|
|
301
|
-
]),
|
|
302
|
-
_: 1
|
|
303
|
-
}, 8, ["disabled", "onClick"])), [
|
|
304
|
-
[u, "POST:/api/v1/sys/dict/type/batch-delete"]
|
|
305
|
-
])
|
|
306
|
-
]),
|
|
307
|
-
_: 1
|
|
308
|
-
}, 8, ["fetcher", "active-row-key", "checked-row-keys"])
|
|
309
|
-
];
|
|
310
|
-
}),
|
|
312
|
+
"pagination-prefix": o(({ itemCount: i }) => [
|
|
313
|
+
n(K, { count: i }, null, 8, ["count"])
|
|
314
|
+
]),
|
|
315
|
+
"toolbar-right": o(() => [
|
|
316
|
+
R((y(), w(t(f), {
|
|
317
|
+
type: "primary",
|
|
318
|
+
onClick: Se
|
|
319
|
+
}, {
|
|
320
|
+
icon: o(() => [
|
|
321
|
+
n(z, {
|
|
322
|
+
icon: "ph:plus",
|
|
323
|
+
size: 16
|
|
324
|
+
})
|
|
325
|
+
]),
|
|
326
|
+
default: o(() => [
|
|
327
|
+
I(" " + T(t(a)("common.add")), 1)
|
|
328
|
+
]),
|
|
329
|
+
_: 1
|
|
330
|
+
})), [
|
|
331
|
+
[s, "POST:/api/v1/sys/dict/type"]
|
|
332
|
+
])
|
|
333
|
+
]),
|
|
334
|
+
batch: o(() => [
|
|
335
|
+
R((y(), w(t(f), {
|
|
336
|
+
secondary: "",
|
|
337
|
+
type: "error",
|
|
338
|
+
onClick: t(Ce)
|
|
339
|
+
}, {
|
|
340
|
+
icon: o(() => [
|
|
341
|
+
n(z, {
|
|
342
|
+
icon: "ph:trash",
|
|
343
|
+
size: 16
|
|
344
|
+
})
|
|
345
|
+
]),
|
|
346
|
+
default: o(() => [
|
|
347
|
+
I(" " + T(t(a)("common.batchDelete")), 1)
|
|
348
|
+
]),
|
|
349
|
+
_: 1
|
|
350
|
+
}, 8, ["onClick"])), [
|
|
351
|
+
[s, "POST:/api/v1/sys/dict/type/batch-delete"]
|
|
352
|
+
])
|
|
353
|
+
]),
|
|
311
354
|
_: 1
|
|
312
|
-
}),
|
|
313
|
-
r.value ? (
|
|
355
|
+
}, 8, ["fetcher", "min-row-height", "active-row-key", "checked-row-keys"]),
|
|
356
|
+
!P.value && r.value ? (y(), w(t(j), {
|
|
314
357
|
key: 0,
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
358
|
+
columns: F,
|
|
359
|
+
data: g.value,
|
|
360
|
+
"row-key": "id",
|
|
361
|
+
loading: N.value,
|
|
362
|
+
toolbar: B,
|
|
363
|
+
search: { container: "table" },
|
|
364
|
+
"checked-row-keys": t(D),
|
|
365
|
+
"fill-height": "",
|
|
366
|
+
"min-row-height": t(ke),
|
|
367
|
+
"storage-key": "sys-dict-item",
|
|
368
|
+
"onUpdate:checkedRowKeys": l[3] || (l[3] = (i) => D.value = i)
|
|
318
369
|
}, {
|
|
319
|
-
"
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
z(" " + P(e(a)("common.batchDelete")), 1)
|
|
336
|
-
]),
|
|
337
|
-
_: 1
|
|
338
|
-
}, 8, ["disabled", "onClick"])), [
|
|
339
|
-
[u, "POST:/api/v1/sys/dict/item/batch-delete"]
|
|
340
|
-
]),
|
|
341
|
-
N((k(), T(e(b), {
|
|
342
|
-
size: "small",
|
|
343
|
-
type: "primary",
|
|
344
|
-
onClick: ve
|
|
345
|
-
}, {
|
|
346
|
-
icon: d(() => [
|
|
347
|
-
o(E, {
|
|
348
|
-
icon: "ph:plus",
|
|
349
|
-
size: 15
|
|
350
|
-
})
|
|
351
|
-
]),
|
|
352
|
-
default: d(() => [
|
|
353
|
-
z(" " + P(e(a)("dict.addItem")), 1)
|
|
354
|
-
]),
|
|
355
|
-
_: 1
|
|
356
|
-
})), [
|
|
357
|
-
[u, "POST:/api/v1/sys/dict/item"]
|
|
358
|
-
])
|
|
370
|
+
"pagination-prefix": o(({ itemCount: i }) => [
|
|
371
|
+
n(K, { count: i }, null, 8, ["count"])
|
|
372
|
+
]),
|
|
373
|
+
"toolbar-right": o(() => [
|
|
374
|
+
R((y(), w(t(f), {
|
|
375
|
+
type: "primary",
|
|
376
|
+
onClick: ae
|
|
377
|
+
}, {
|
|
378
|
+
icon: o(() => [
|
|
379
|
+
n(z, {
|
|
380
|
+
icon: "ph:plus",
|
|
381
|
+
size: 16
|
|
382
|
+
})
|
|
383
|
+
]),
|
|
384
|
+
default: o(() => [
|
|
385
|
+
I(" " + T(t(a)("dict.addItem")), 1)
|
|
359
386
|
]),
|
|
360
387
|
_: 1
|
|
361
|
-
})
|
|
388
|
+
})), [
|
|
389
|
+
[s, "POST:/api/v1/sys/dict/item"]
|
|
390
|
+
])
|
|
362
391
|
]),
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
392
|
+
batch: o(() => [
|
|
393
|
+
R((y(), w(t(f), {
|
|
394
|
+
secondary: "",
|
|
395
|
+
type: "error",
|
|
396
|
+
onClick: t(Q)
|
|
397
|
+
}, {
|
|
398
|
+
icon: o(() => [
|
|
399
|
+
n(z, {
|
|
400
|
+
icon: "ph:trash",
|
|
401
|
+
size: 16
|
|
402
|
+
})
|
|
403
|
+
]),
|
|
404
|
+
default: o(() => [
|
|
405
|
+
I(" " + T(t(a)("common.batchDelete")), 1)
|
|
406
|
+
]),
|
|
407
|
+
_: 1
|
|
408
|
+
}, 8, ["onClick"])), [
|
|
409
|
+
[s, "POST:/api/v1/sys/dict/item/batch-delete"]
|
|
410
|
+
])
|
|
375
411
|
]),
|
|
376
412
|
_: 1
|
|
377
|
-
}, 8, ["
|
|
413
|
+
}, 8, ["data", "loading", "checked-row-keys", "min-row-height"])) : P.value ? de("", !0) : (y(), w(t(Le), {
|
|
378
414
|
key: 1,
|
|
379
|
-
class: "dict-pane",
|
|
415
|
+
class: "dict-pane fill-main",
|
|
380
416
|
bordered: !0
|
|
381
417
|
}, {
|
|
382
|
-
default:
|
|
383
|
-
|
|
384
|
-
description:
|
|
385
|
-
style: { padding: "48px 0" }
|
|
418
|
+
default: o(() => [
|
|
419
|
+
n(t(Fe), {
|
|
420
|
+
description: t(a)("dict.selectTypeHint"),
|
|
421
|
+
style: { padding: "48px 0", margin: "auto" }
|
|
386
422
|
}, null, 8, ["description"])
|
|
387
423
|
]),
|
|
388
424
|
_: 1
|
|
389
425
|
}))
|
|
390
|
-
]),
|
|
391
|
-
|
|
392
|
-
show:
|
|
393
|
-
|
|
394
|
-
|
|
426
|
+
], 512),
|
|
427
|
+
n(t(Ve), {
|
|
428
|
+
show: L.value && P.value && !!r.value,
|
|
429
|
+
placement: "bottom",
|
|
430
|
+
height: "85vh",
|
|
431
|
+
style: { "border-radius": "16px 16px 0 0" },
|
|
432
|
+
"onUpdate:show": l[5] || (l[5] = (i) => L.value = i)
|
|
433
|
+
}, {
|
|
434
|
+
default: o(() => [
|
|
435
|
+
n(t(je), {
|
|
436
|
+
title: r.value ? t(a)("dict.itemsOf", { name: r.value.name }) : t(a)("dict.itemsSheetTitle"),
|
|
437
|
+
closable: ""
|
|
438
|
+
}, {
|
|
439
|
+
footer: o(() => [
|
|
440
|
+
re("div", Je, [
|
|
441
|
+
R((y(), w(t(f), {
|
|
442
|
+
secondary: "",
|
|
443
|
+
type: "error",
|
|
444
|
+
size: "large",
|
|
445
|
+
disabled: !t(Re),
|
|
446
|
+
onClick: t(Q)
|
|
447
|
+
}, {
|
|
448
|
+
default: o(() => [
|
|
449
|
+
I(T(t(a)("common.batchDelete")), 1)
|
|
450
|
+
]),
|
|
451
|
+
_: 1
|
|
452
|
+
}, 8, ["disabled", "onClick"])), [
|
|
453
|
+
[s, "POST:/api/v1/sys/dict/item/batch-delete"]
|
|
454
|
+
]),
|
|
455
|
+
R((y(), w(t(f), {
|
|
456
|
+
type: "primary",
|
|
457
|
+
size: "large",
|
|
458
|
+
onClick: ae
|
|
459
|
+
}, {
|
|
460
|
+
default: o(() => [
|
|
461
|
+
I(T(t(a)("dict.addItem")), 1)
|
|
462
|
+
]),
|
|
463
|
+
_: 1
|
|
464
|
+
})), [
|
|
465
|
+
[s, "POST:/api/v1/sys/dict/item"]
|
|
466
|
+
])
|
|
467
|
+
])
|
|
468
|
+
]),
|
|
469
|
+
default: o(() => [
|
|
470
|
+
n(t(j), {
|
|
471
|
+
columns: F,
|
|
472
|
+
data: g.value,
|
|
473
|
+
"row-key": "id",
|
|
474
|
+
loading: N.value,
|
|
475
|
+
toolbar: B,
|
|
476
|
+
search: { container: "table" },
|
|
477
|
+
"checked-row-keys": t(D),
|
|
478
|
+
"card-on-narrow": "",
|
|
479
|
+
"storage-key": "sys-dict-item-sheet",
|
|
480
|
+
"onUpdate:checkedRowKeys": l[4] || (l[4] = (i) => D.value = i)
|
|
481
|
+
}, {
|
|
482
|
+
"pagination-prefix": o(({ itemCount: i }) => [
|
|
483
|
+
n(K, { count: i }, null, 8, ["count"])
|
|
484
|
+
]),
|
|
485
|
+
_: 1
|
|
486
|
+
}, 8, ["data", "loading", "checked-row-keys"])
|
|
487
|
+
]),
|
|
488
|
+
_: 1
|
|
489
|
+
}, 8, ["title"])
|
|
490
|
+
]),
|
|
491
|
+
_: 1
|
|
492
|
+
}, 8, ["show"]),
|
|
493
|
+
n(ye, {
|
|
494
|
+
show: O.value,
|
|
495
|
+
"onUpdate:show": l[11] || (l[11] = (i) => O.value = i),
|
|
496
|
+
title: k.value === null ? t(a)("dict.addTypeTitle") : t(a)("dict.editTypeTitle"),
|
|
395
497
|
width: 480,
|
|
396
|
-
"on-confirm":
|
|
397
|
-
"confirm-text":
|
|
498
|
+
"on-confirm": Ee,
|
|
499
|
+
"confirm-text": t(a)("common.save")
|
|
398
500
|
}, {
|
|
399
|
-
default:
|
|
400
|
-
|
|
501
|
+
default: o(() => [
|
|
502
|
+
n(t(me), se({
|
|
401
503
|
ref_key: "typeFormRef",
|
|
402
|
-
ref:
|
|
403
|
-
model:
|
|
404
|
-
rules:
|
|
405
|
-
"
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
label: e(a)("dict.code"),
|
|
504
|
+
ref: X,
|
|
505
|
+
model: d,
|
|
506
|
+
rules: Ie,
|
|
507
|
+
"require-mark-placement": "left"
|
|
508
|
+
}, $.value), {
|
|
509
|
+
default: o(() => [
|
|
510
|
+
n(t(h), {
|
|
511
|
+
label: t(a)("dict.code"),
|
|
411
512
|
path: "code"
|
|
412
513
|
}, {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
514
|
+
feedback: o(() => [
|
|
515
|
+
k.value !== null ? (y(), ne("span", Xe, T(t(a)("dict.codeImmutable")), 1)) : de("", !0)
|
|
516
|
+
]),
|
|
517
|
+
default: o(() => [
|
|
518
|
+
n(t(x), {
|
|
519
|
+
value: d.code,
|
|
520
|
+
"onUpdate:value": l[6] || (l[6] = (i) => d.code = i),
|
|
521
|
+
class: "mono",
|
|
522
|
+
placeholder: t(a)("dict.code"),
|
|
523
|
+
disabled: k.value !== null
|
|
419
524
|
}, null, 8, ["value", "placeholder", "disabled"])
|
|
420
525
|
]),
|
|
421
526
|
_: 1
|
|
422
527
|
}, 8, ["label"]),
|
|
423
|
-
|
|
424
|
-
label:
|
|
528
|
+
n(t(h), {
|
|
529
|
+
label: t(a)("dict.name"),
|
|
425
530
|
path: "name"
|
|
426
531
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
|
|
429
|
-
value:
|
|
430
|
-
"onUpdate:value": l[
|
|
431
|
-
placeholder:
|
|
532
|
+
default: o(() => [
|
|
533
|
+
n(t(x), {
|
|
534
|
+
value: d.name,
|
|
535
|
+
"onUpdate:value": l[7] || (l[7] = (i) => d.name = i),
|
|
536
|
+
placeholder: t(a)("dict.name")
|
|
432
537
|
}, null, 8, ["value", "placeholder"])
|
|
433
538
|
]),
|
|
434
539
|
_: 1
|
|
435
540
|
}, 8, ["label"]),
|
|
436
|
-
|
|
437
|
-
label:
|
|
541
|
+
n(t(h), {
|
|
542
|
+
label: t(a)("dict.sort")
|
|
438
543
|
}, {
|
|
439
|
-
default:
|
|
440
|
-
|
|
441
|
-
value:
|
|
442
|
-
"onUpdate:value": l[
|
|
544
|
+
default: o(() => [
|
|
545
|
+
n(t(pe), {
|
|
546
|
+
value: d.sort,
|
|
547
|
+
"onUpdate:value": l[8] || (l[8] = (i) => d.sort = i),
|
|
443
548
|
min: 0,
|
|
444
549
|
style: { width: "160px" }
|
|
445
550
|
}, null, 8, ["value"])
|
|
446
551
|
]),
|
|
447
552
|
_: 1
|
|
448
553
|
}, 8, ["label"]),
|
|
449
|
-
|
|
450
|
-
label:
|
|
554
|
+
n(t(h), {
|
|
555
|
+
label: t(a)("dict.remark")
|
|
451
556
|
}, {
|
|
452
|
-
default:
|
|
453
|
-
|
|
454
|
-
value:
|
|
455
|
-
"onUpdate:value": l[
|
|
557
|
+
default: o(() => [
|
|
558
|
+
n(t(x), {
|
|
559
|
+
value: d.remark,
|
|
560
|
+
"onUpdate:value": l[9] || (l[9] = (i) => d.remark = i),
|
|
456
561
|
type: "textarea",
|
|
457
562
|
autosize: { minRows: 2 }
|
|
458
563
|
}, null, 8, ["value"])
|
|
459
564
|
]),
|
|
460
565
|
_: 1
|
|
461
566
|
}, 8, ["label"]),
|
|
462
|
-
|
|
463
|
-
label:
|
|
567
|
+
n(t(h), {
|
|
568
|
+
label: t(a)("common.status")
|
|
464
569
|
}, {
|
|
465
|
-
default:
|
|
466
|
-
|
|
467
|
-
value:
|
|
468
|
-
"onUpdate:value": l[
|
|
570
|
+
default: o(() => [
|
|
571
|
+
n(t(ve), {
|
|
572
|
+
value: d.enabled,
|
|
573
|
+
"onUpdate:value": l[10] || (l[10] = (i) => d.enabled = i)
|
|
469
574
|
}, null, 8, ["value"])
|
|
470
575
|
]),
|
|
471
576
|
_: 1
|
|
472
577
|
}, 8, ["label"])
|
|
473
578
|
]),
|
|
474
579
|
_: 1
|
|
475
|
-
},
|
|
580
|
+
}, 16, ["model"])
|
|
476
581
|
]),
|
|
477
582
|
_: 1
|
|
478
583
|
}, 8, ["show", "title", "confirm-text"]),
|
|
479
|
-
|
|
480
|
-
show:
|
|
481
|
-
"onUpdate:show": l[
|
|
482
|
-
title:
|
|
584
|
+
n(ye, {
|
|
585
|
+
show: q.value,
|
|
586
|
+
"onUpdate:show": l[16] || (l[16] = (i) => q.value = i),
|
|
587
|
+
title: S.value === null ? t(a)("dict.addItemTitle") : t(a)("dict.editItemTitle"),
|
|
483
588
|
width: 480,
|
|
484
|
-
"on-confirm":
|
|
485
|
-
"confirm-text":
|
|
589
|
+
"on-confirm": Oe,
|
|
590
|
+
"confirm-text": t(a)("common.save")
|
|
486
591
|
}, {
|
|
487
|
-
default:
|
|
488
|
-
|
|
592
|
+
default: o(() => [
|
|
593
|
+
n(t(me), se({
|
|
489
594
|
ref_key: "itemFormRef",
|
|
490
|
-
ref:
|
|
491
|
-
model:
|
|
492
|
-
rules:
|
|
493
|
-
"
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
label: e(a)("dict.itemLabel"),
|
|
595
|
+
ref: te,
|
|
596
|
+
model: c,
|
|
597
|
+
rules: _e,
|
|
598
|
+
"require-mark-placement": "left"
|
|
599
|
+
}, $.value), {
|
|
600
|
+
default: o(() => [
|
|
601
|
+
n(t(h), {
|
|
602
|
+
label: t(a)("dict.itemLabel"),
|
|
499
603
|
path: "label"
|
|
500
604
|
}, {
|
|
501
|
-
default:
|
|
502
|
-
|
|
503
|
-
value:
|
|
504
|
-
"onUpdate:value": l[
|
|
505
|
-
placeholder:
|
|
605
|
+
default: o(() => [
|
|
606
|
+
n(t(x), {
|
|
607
|
+
value: c.label,
|
|
608
|
+
"onUpdate:value": l[12] || (l[12] = (i) => c.label = i),
|
|
609
|
+
placeholder: t(a)("dict.itemLabel")
|
|
506
610
|
}, null, 8, ["value", "placeholder"])
|
|
507
611
|
]),
|
|
508
612
|
_: 1
|
|
509
613
|
}, 8, ["label"]),
|
|
510
|
-
|
|
511
|
-
label:
|
|
614
|
+
n(t(h), {
|
|
615
|
+
label: t(a)("dict.itemValue"),
|
|
512
616
|
path: "value"
|
|
513
617
|
}, {
|
|
514
|
-
default:
|
|
515
|
-
|
|
516
|
-
value:
|
|
517
|
-
"onUpdate:value": l[
|
|
518
|
-
|
|
618
|
+
default: o(() => [
|
|
619
|
+
n(t(x), {
|
|
620
|
+
value: c.value,
|
|
621
|
+
"onUpdate:value": l[13] || (l[13] = (i) => c.value = i),
|
|
622
|
+
class: "mono",
|
|
623
|
+
placeholder: t(a)("dict.itemValue")
|
|
519
624
|
}, null, 8, ["value", "placeholder"])
|
|
520
625
|
]),
|
|
521
626
|
_: 1
|
|
522
627
|
}, 8, ["label"]),
|
|
523
|
-
|
|
524
|
-
label:
|
|
628
|
+
n(t(h), {
|
|
629
|
+
label: t(a)("dict.sort")
|
|
525
630
|
}, {
|
|
526
|
-
default:
|
|
527
|
-
|
|
528
|
-
value:
|
|
529
|
-
"onUpdate:value": l[
|
|
631
|
+
default: o(() => [
|
|
632
|
+
n(t(pe), {
|
|
633
|
+
value: c.sort,
|
|
634
|
+
"onUpdate:value": l[14] || (l[14] = (i) => c.sort = i),
|
|
530
635
|
min: 0,
|
|
531
636
|
style: { width: "160px" }
|
|
532
637
|
}, null, 8, ["value"])
|
|
533
638
|
]),
|
|
534
639
|
_: 1
|
|
535
640
|
}, 8, ["label"]),
|
|
536
|
-
|
|
537
|
-
label:
|
|
641
|
+
n(t(h), {
|
|
642
|
+
label: t(a)("common.status")
|
|
538
643
|
}, {
|
|
539
|
-
default:
|
|
540
|
-
|
|
541
|
-
value:
|
|
542
|
-
"onUpdate:value": l[
|
|
644
|
+
default: o(() => [
|
|
645
|
+
n(t(ve), {
|
|
646
|
+
value: c.enabled,
|
|
647
|
+
"onUpdate:value": l[15] || (l[15] = (i) => c.enabled = i)
|
|
543
648
|
}, null, 8, ["value"])
|
|
544
649
|
]),
|
|
545
650
|
_: 1
|
|
546
651
|
}, 8, ["label"])
|
|
547
652
|
]),
|
|
548
653
|
_: 1
|
|
549
|
-
},
|
|
654
|
+
}, 16, ["model"])
|
|
550
655
|
]),
|
|
551
656
|
_: 1
|
|
552
657
|
}, 8, ["show", "title", "confirm-text"])
|
|
@@ -555,6 +660,6 @@ const Ne = { class: "dict-layout side-page" }, $e = /* @__PURE__ */ be({
|
|
|
555
660
|
}
|
|
556
661
|
});
|
|
557
662
|
export {
|
|
558
|
-
|
|
663
|
+
bt as default
|
|
559
664
|
};
|
|
560
665
|
//# sourceMappingURL=index2.vue.js.map
|