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,17 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as Ue, computed as r, ref as d, reactive as _e, openBlock as m, createElementBlock as M, Fragment as te, createVNode as a, unref as l, withCtx as u, createBlock as v, createTextVNode as x, toDisplayString as h, createCommentVNode as O, mergeProps as Be, createElementVNode as le, renderList as Ae, h as p } from "vue";
|
|
2
|
+
import { useMediaQuery as Ee } from "@vueuse/core";
|
|
3
|
+
import { useMessage as Se, NButton as C, NSpace as b, NForm as ze, NGrid as Re, NFormItemGi as I, NInput as q, NSelect as ne, NCheckbox as j, NInputNumber as Le, NSwitch as Oe, NEmpty as oe, NTag as $e, NPopconfirm as Me } from "naive-ui";
|
|
4
|
+
import { SmartTable as qe } from "smart-naive-table";
|
|
5
|
+
import { useI18n as je } from "vue-i18n";
|
|
6
|
+
import D from "../../../../components/AppIcon.vue.js";
|
|
7
|
+
import F from "../../../../components/FormContainer/index.vue.js";
|
|
7
8
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
import { useConfirm as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
9
|
+
import De from "../../../../components/StatusSwitch/index.vue.js";
|
|
10
|
+
import { useConfirm as Fe } from "../../../../composables/useConfirm.js";
|
|
11
|
+
import { translateMenuTitle as ae } from "../../../../locales/menuTitle.js";
|
|
12
|
+
import { useAuthStore as Ve } from "../../../../stores/auth.js";
|
|
13
|
+
import { menuApi as N } from "../../../../api/index.js";
|
|
14
|
+
import { translateError as ue } from "../../../../utils/error.js";
|
|
15
|
+
import { TABLE_TOOLBAR as Ge } from "../../../../utils/tableToolbar.js";
|
|
16
|
+
import { MenuType as P, splitPermission as V, joinPermission as We } from "../../../../types/menu.js";
|
|
17
|
+
const He = { class: "perm-hint" }, Qe = { class: "batch-route mono muted" }, mt = /* @__PURE__ */ Ue({
|
|
15
18
|
__name: "ButtonManager",
|
|
16
19
|
props: {
|
|
17
20
|
tree: {},
|
|
@@ -19,8 +22,10 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
|
|
|
19
22
|
appPrefix: {}
|
|
20
23
|
},
|
|
21
24
|
emits: ["changed"],
|
|
22
|
-
setup(
|
|
23
|
-
const f =
|
|
25
|
+
setup(se, { expose: ie, emit: re }) {
|
|
26
|
+
const f = se, T = re, { t: o } = je(), U = Se(), { run: de } = Fe(), $ = Ve(), G = r(() => $.hasPerm("POST:/api/v1/sys/menu/add")), me = r(() => $.hasPerm("PUT:/api/v1/sys/menu/{id}")), ce = r(() => $.hasPerm("DELETE:/api/v1/sys/menu/{id}")), pe = Ee("(max-width: 640px)"), fe = r(
|
|
27
|
+
() => pe.value ? { labelPlacement: "top", labelWidth: void 0 } : { labelPlacement: "left", labelWidth: 80 }
|
|
28
|
+
), _ = d(!1), y = d(null), W = d("");
|
|
24
29
|
function H(e, t) {
|
|
25
30
|
for (const n of e) {
|
|
26
31
|
if (n.id === t) return n;
|
|
@@ -29,45 +34,48 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
|
|
|
29
34
|
}
|
|
30
35
|
return null;
|
|
31
36
|
}
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
34
|
-
const e = H(f.tree,
|
|
35
|
-
return ((e == null ? void 0 : e.children) ?? []).filter((t) => t.type ===
|
|
36
|
-
}),
|
|
37
|
-
const t =
|
|
37
|
+
const Q = r(() => {
|
|
38
|
+
if (y.value == null) return [];
|
|
39
|
+
const e = H(f.tree, y.value);
|
|
40
|
+
return ((e == null ? void 0 : e.children) ?? []).filter((t) => t.type === P.Button);
|
|
41
|
+
}), ve = r(() => new Set(Q.value.flatMap((e) => V(e.permission)))), B = r(() => (f.appPrefix ?? "").trim().replace(/^\/+|\/+$/g, "")), A = (e) => {
|
|
42
|
+
const t = B.value;
|
|
38
43
|
return t ? e.includes(`/${t}/`) || e.endsWith(`/${t}`) : !0;
|
|
39
|
-
},
|
|
40
|
-
() =>
|
|
41
|
-
),
|
|
42
|
-
if (!
|
|
43
|
-
const t = f.routes.filter((s) =>
|
|
44
|
-
if (!
|
|
45
|
-
const n = f.routes.filter((s) => !
|
|
44
|
+
}, K = r(
|
|
45
|
+
() => B.value !== "" && f.routes.some((e) => !A(e.path))
|
|
46
|
+
), c = d(!1), E = (e) => ({ label: `${e.method} ${e.path}`, value: e.code }), he = r(() => {
|
|
47
|
+
if (!B.value) return f.routes.map(E);
|
|
48
|
+
const t = f.routes.filter((s) => A(s.path));
|
|
49
|
+
if (!c.value) return t.map(E);
|
|
50
|
+
const n = f.routes.filter((s) => !A(s.path));
|
|
46
51
|
return [
|
|
47
|
-
{ type: "group", key: "__inApp", label: o("menu.routesInApp"), children: t.map(
|
|
48
|
-
{ type: "group", key: "__other", label: o("menu.routesOther"), children: n.map(
|
|
52
|
+
{ type: "group", key: "__inApp", label: o("menu.routesInApp"), children: t.map(E) },
|
|
53
|
+
{ type: "group", key: "__other", label: o("menu.routesOther"), children: n.map(E) }
|
|
49
54
|
];
|
|
50
|
-
}),
|
|
55
|
+
}), be = r(() => {
|
|
51
56
|
const e = [], t = (n, s) => {
|
|
52
|
-
for (const
|
|
53
|
-
|
|
57
|
+
for (const w of n)
|
|
58
|
+
w.type !== P.Button && (e.push({
|
|
59
|
+
label: `${" ".repeat(s)}${ae(w.title, w.path || void 0)}`,
|
|
60
|
+
value: w.id
|
|
61
|
+
}), t(w.children, s + 1));
|
|
54
62
|
};
|
|
55
63
|
return t(f.tree, 0), e;
|
|
56
64
|
});
|
|
57
|
-
function
|
|
58
|
-
|
|
65
|
+
function ye(e) {
|
|
66
|
+
y.value = e.id, W.value = ae(e.title), _.value = !0;
|
|
59
67
|
}
|
|
60
|
-
|
|
61
|
-
const S =
|
|
68
|
+
ie({ open: ye });
|
|
69
|
+
const S = d(!1), g = d(null), J = d(null), ge = {
|
|
62
70
|
title: {
|
|
63
71
|
required: !0,
|
|
64
72
|
whitespace: !0,
|
|
65
73
|
message: () => o("menu.titleRequired"),
|
|
66
74
|
trigger: ["input", "blur"]
|
|
67
75
|
}
|
|
68
|
-
},
|
|
69
|
-
parentId:
|
|
70
|
-
type:
|
|
76
|
+
}, X = () => ({
|
|
77
|
+
parentId: y.value ?? 0,
|
|
78
|
+
type: P.Button,
|
|
71
79
|
title: "",
|
|
72
80
|
permission: "",
|
|
73
81
|
sort: 0,
|
|
@@ -77,7 +85,7 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
|
|
|
77
85
|
component: "",
|
|
78
86
|
icon: "",
|
|
79
87
|
visible: !0
|
|
80
|
-
}), i =
|
|
88
|
+
}), i = _e(X()), k = d([]), Y = (e) => ({
|
|
81
89
|
parentId: e.parentId,
|
|
82
90
|
type: e.type,
|
|
83
91
|
title: e.title,
|
|
@@ -90,54 +98,54 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
|
|
|
90
98
|
icon: e.icon ?? "",
|
|
91
99
|
visible: e.visible
|
|
92
100
|
});
|
|
93
|
-
function
|
|
94
|
-
g.value = null,
|
|
101
|
+
function ke() {
|
|
102
|
+
g.value = null, c.value = !1, Object.assign(i, X()), k.value = [], S.value = !0;
|
|
95
103
|
}
|
|
96
|
-
function
|
|
97
|
-
g.value = e.id,
|
|
104
|
+
function we(e) {
|
|
105
|
+
g.value = e.id, c.value = !0, Object.assign(i, Y(e)), k.value = V(e.permission), S.value = !0;
|
|
98
106
|
}
|
|
99
|
-
async function
|
|
107
|
+
async function xe() {
|
|
100
108
|
var e;
|
|
101
|
-
await ((e =
|
|
109
|
+
await ((e = J.value) == null ? void 0 : e.validate());
|
|
102
110
|
try {
|
|
103
111
|
const t = {
|
|
104
112
|
...i,
|
|
105
|
-
permission:
|
|
106
|
-
type:
|
|
113
|
+
permission: We(k.value),
|
|
114
|
+
type: P.Button,
|
|
107
115
|
moduleId: null
|
|
108
116
|
};
|
|
109
|
-
g.value === null ? await
|
|
117
|
+
g.value === null ? await N.add(t) : await N.update(g.value, t), U.success(o("menu.saved")), T("changed");
|
|
110
118
|
} catch (t) {
|
|
111
|
-
return
|
|
119
|
+
return U.error(ue(t)), !1;
|
|
112
120
|
}
|
|
113
121
|
}
|
|
114
|
-
const
|
|
115
|
-
const e =
|
|
116
|
-
return
|
|
122
|
+
const z = d(!1), R = d([]), Z = d(!1), L = d(""), ee = r(() => {
|
|
123
|
+
const e = L.value.trim().toLowerCase(), t = B.value;
|
|
124
|
+
return R.value.filter((n) => t && !c.value && !A(n.path) ? !1 : e ? n.method.toLowerCase().includes(e) || n.path.toLowerCase().includes(e) || n.title.toLowerCase().includes(e) : !0);
|
|
117
125
|
});
|
|
118
|
-
function
|
|
126
|
+
function Ce(e) {
|
|
119
127
|
const t = e.toUpperCase();
|
|
120
128
|
return t === "GET" ? o("menu.btnQuery") : t === "POST" ? o("menu.btnCreate") : t === "PUT" || t === "PATCH" ? o("menu.btnUpdate") : t === "DELETE" ? o("menu.btnDelete") : e;
|
|
121
129
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
130
|
+
function Ie() {
|
|
131
|
+
L.value = "", c.value = !1, R.value = f.routes.filter((e) => !ve.value.has(e.code)).map((e) => ({
|
|
124
132
|
code: e.code,
|
|
125
133
|
method: e.method,
|
|
126
134
|
path: e.path,
|
|
127
|
-
title:
|
|
135
|
+
title: Ce(e.method),
|
|
128
136
|
checked: !1
|
|
129
|
-
})),
|
|
137
|
+
})), z.value = !0;
|
|
130
138
|
}
|
|
131
|
-
const
|
|
132
|
-
async function
|
|
133
|
-
const e =
|
|
139
|
+
const Ne = r(() => R.value.filter((e) => e.checked));
|
|
140
|
+
async function Pe() {
|
|
141
|
+
const e = Ne.value;
|
|
134
142
|
if (!e.length) return !1;
|
|
135
|
-
|
|
143
|
+
Z.value = !0;
|
|
136
144
|
try {
|
|
137
145
|
for (const t of e)
|
|
138
|
-
await
|
|
139
|
-
parentId:
|
|
140
|
-
type:
|
|
146
|
+
await N.add({
|
|
147
|
+
parentId: y.value ?? 0,
|
|
148
|
+
type: P.Button,
|
|
141
149
|
title: t.title.trim() || t.method,
|
|
142
150
|
permission: t.code,
|
|
143
151
|
sort: 0,
|
|
@@ -148,61 +156,67 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
|
|
|
148
156
|
icon: "",
|
|
149
157
|
visible: !0
|
|
150
158
|
});
|
|
151
|
-
|
|
159
|
+
U.success(o("menu.saved")), T("changed"), z.value = !1;
|
|
152
160
|
} catch (t) {
|
|
153
|
-
return
|
|
161
|
+
return U.error(ue(t)), !1;
|
|
154
162
|
} finally {
|
|
155
|
-
|
|
163
|
+
Z.value = !1;
|
|
156
164
|
}
|
|
157
165
|
}
|
|
158
|
-
const
|
|
166
|
+
const Te = [
|
|
159
167
|
{ type: "index", title: () => o("common.rowNo"), width: 64, align: "center" },
|
|
160
|
-
{ title: () => o("menu.title"), key: "title", align: "left" },
|
|
168
|
+
{ title: () => o("menu.title"), key: "title", align: "left", search: {} },
|
|
161
169
|
{
|
|
162
170
|
title: () => o("menu.permission"),
|
|
163
171
|
key: "permission",
|
|
164
172
|
// 多码按钮逐条成 tag,一眼看出「查询」挂了哪几条路由
|
|
165
173
|
render: (e) => {
|
|
166
|
-
const t =
|
|
167
|
-
return t.length ?
|
|
168
|
-
|
|
174
|
+
const t = V(e.permission);
|
|
175
|
+
return t.length ? p(
|
|
176
|
+
b,
|
|
169
177
|
{ size: 4, wrapItem: !1 },
|
|
170
|
-
() => t.map((n) =>
|
|
171
|
-
) : "—";
|
|
178
|
+
() => t.map((n) => p($e, { size: "small", bordered: !1, key: n }, () => n))
|
|
179
|
+
) : p("span", { class: "faint" }, "—");
|
|
172
180
|
}
|
|
173
181
|
},
|
|
174
|
-
{
|
|
182
|
+
{
|
|
183
|
+
title: () => o("menu.sort"),
|
|
184
|
+
key: "sort",
|
|
185
|
+
width: 70,
|
|
186
|
+
render: (e) => p("span", { class: "num muted" }, e.sort)
|
|
187
|
+
},
|
|
175
188
|
{
|
|
176
189
|
title: () => o("common.status"),
|
|
177
190
|
key: "enabled",
|
|
178
191
|
width: 84,
|
|
179
|
-
render: (e) =>
|
|
192
|
+
render: (e) => p(De, {
|
|
180
193
|
value: e.enabled,
|
|
181
|
-
request: (t) =>
|
|
182
|
-
"onUpdate:value": () =>
|
|
194
|
+
request: (t) => N.update(e.id, { ...Y(e), enabled: t }),
|
|
195
|
+
"onUpdate:value": () => T("changed")
|
|
183
196
|
})
|
|
184
197
|
},
|
|
185
198
|
{
|
|
186
199
|
title: () => o("common.operation"),
|
|
187
200
|
key: "op",
|
|
188
201
|
width: 130,
|
|
202
|
+
align: "right",
|
|
189
203
|
fixed: "right",
|
|
190
|
-
render: (e) =>
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
{ size: "small", quaternary: !0, type: "primary", onClick: () =>
|
|
204
|
+
render: (e) => p(b, { size: 2, justify: "end", wrapItem: !1 }, () => [
|
|
205
|
+
me.value ? p(
|
|
206
|
+
C,
|
|
207
|
+
{ size: "small", quaternary: !0, type: "primary", onClick: () => we(e) },
|
|
194
208
|
() => o("common.edit")
|
|
195
209
|
) : null,
|
|
196
|
-
|
|
197
|
-
|
|
210
|
+
ce.value ? p(
|
|
211
|
+
Me,
|
|
198
212
|
{
|
|
199
|
-
onPositiveClick: () =>
|
|
200
|
-
t &&
|
|
213
|
+
onPositiveClick: () => de(() => N.remove(e.id), o("menu.deleted")).then((t) => {
|
|
214
|
+
t && T("changed");
|
|
201
215
|
})
|
|
202
216
|
},
|
|
203
217
|
{
|
|
204
|
-
trigger: () =>
|
|
205
|
-
|
|
218
|
+
trigger: () => p(
|
|
219
|
+
C,
|
|
206
220
|
{ size: "small", quaternary: !0, type: "error" },
|
|
207
221
|
() => o("common.delete")
|
|
208
222
|
),
|
|
@@ -212,21 +226,21 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
|
|
|
212
226
|
])
|
|
213
227
|
}
|
|
214
228
|
];
|
|
215
|
-
return (e, t) => (m(),
|
|
216
|
-
a(
|
|
217
|
-
show:
|
|
218
|
-
"onUpdate:show": t[1] || (t[1] = (n) =>
|
|
219
|
-
title: l(o)("menu.buttonManagerTitle", { title:
|
|
229
|
+
return (e, t) => (m(), M(te, null, [
|
|
230
|
+
a(F, {
|
|
231
|
+
show: _.value,
|
|
232
|
+
"onUpdate:show": t[1] || (t[1] = (n) => _.value = n),
|
|
233
|
+
title: l(o)("menu.buttonManagerTitle", { title: W.value }),
|
|
220
234
|
width: 960
|
|
221
235
|
}, {
|
|
222
236
|
footer: u(() => [
|
|
223
|
-
a(l(
|
|
237
|
+
a(l(b), { justify: "end" }, {
|
|
224
238
|
default: u(() => [
|
|
225
|
-
a(l(
|
|
226
|
-
onClick: t[0] || (t[0] = (n) =>
|
|
239
|
+
a(l(C), {
|
|
240
|
+
onClick: t[0] || (t[0] = (n) => _.value = !1)
|
|
227
241
|
}, {
|
|
228
242
|
default: u(() => [
|
|
229
|
-
|
|
243
|
+
x(h(l(o)("common.close")), 1)
|
|
230
244
|
]),
|
|
231
245
|
_: 1
|
|
232
246
|
})
|
|
@@ -235,80 +249,83 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
|
|
|
235
249
|
})
|
|
236
250
|
]),
|
|
237
251
|
default: u(() => [
|
|
238
|
-
a(l(
|
|
239
|
-
|
|
240
|
-
|
|
252
|
+
a(l(qe), {
|
|
253
|
+
columns: Te,
|
|
254
|
+
data: Q.value,
|
|
255
|
+
toolbar: l(Ge),
|
|
256
|
+
search: { container: "table" },
|
|
257
|
+
pagination: !1,
|
|
258
|
+
"row-key": "id",
|
|
259
|
+
"card-on-narrow": "",
|
|
260
|
+
"storage-key": "sys-menu-buttons"
|
|
241
261
|
}, {
|
|
242
|
-
|
|
243
|
-
|
|
262
|
+
"toolbar-right": u(() => [
|
|
263
|
+
G.value ? (m(), v(l(C), {
|
|
264
|
+
key: 0,
|
|
265
|
+
secondary: "",
|
|
266
|
+
onClick: Ie
|
|
267
|
+
}, {
|
|
268
|
+
icon: u(() => [
|
|
269
|
+
a(D, {
|
|
270
|
+
icon: "ph:list-plus",
|
|
271
|
+
size: 16
|
|
272
|
+
})
|
|
273
|
+
]),
|
|
244
274
|
default: u(() => [
|
|
245
|
-
|
|
246
|
-
key: 0,
|
|
247
|
-
type: "primary",
|
|
248
|
-
size: "small",
|
|
249
|
-
onClick: he
|
|
250
|
-
}, {
|
|
251
|
-
default: u(() => [
|
|
252
|
-
w(h(l(o)("menu.addButton")), 1)
|
|
253
|
-
]),
|
|
254
|
-
_: 1
|
|
255
|
-
})) : L("", !0),
|
|
256
|
-
V.value ? (m(), v(l(x), {
|
|
257
|
-
key: 1,
|
|
258
|
-
size: "small",
|
|
259
|
-
onClick: ke
|
|
260
|
-
}, {
|
|
261
|
-
default: u(() => [
|
|
262
|
-
w(h(l(o)("menu.batchFromRoutes")), 1)
|
|
263
|
-
]),
|
|
264
|
-
_: 1
|
|
265
|
-
})) : L("", !0)
|
|
275
|
+
x(" " + h(l(o)("menu.batchFromRoutes")), 1)
|
|
266
276
|
]),
|
|
267
277
|
_: 1
|
|
268
|
-
}),
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
278
|
+
})) : O("", !0),
|
|
279
|
+
G.value ? (m(), v(l(C), {
|
|
280
|
+
key: 1,
|
|
281
|
+
type: "primary",
|
|
282
|
+
onClick: ke
|
|
283
|
+
}, {
|
|
284
|
+
icon: u(() => [
|
|
285
|
+
a(D, {
|
|
286
|
+
icon: "ph:plus",
|
|
287
|
+
size: 16
|
|
288
|
+
})
|
|
289
|
+
]),
|
|
290
|
+
default: u(() => [
|
|
291
|
+
x(" " + h(l(o)("menu.addButton")), 1)
|
|
292
|
+
]),
|
|
293
|
+
_: 1
|
|
294
|
+
})) : O("", !0)
|
|
277
295
|
]),
|
|
278
296
|
_: 1
|
|
279
|
-
})
|
|
297
|
+
}, 8, ["data", "toolbar"])
|
|
280
298
|
]),
|
|
281
299
|
_: 1
|
|
282
300
|
}, 8, ["show", "title"]),
|
|
283
|
-
a(
|
|
301
|
+
a(F, {
|
|
284
302
|
show: S.value,
|
|
285
303
|
"onUpdate:show": t[8] || (t[8] = (n) => S.value = n),
|
|
286
304
|
title: g.value === null ? l(o)("menu.addButton") : l(o)("common.edit"),
|
|
287
305
|
width: 600,
|
|
288
|
-
"on-confirm":
|
|
306
|
+
"on-confirm": xe,
|
|
289
307
|
"confirm-text": l(o)("common.save")
|
|
290
308
|
}, {
|
|
291
309
|
default: u(() => [
|
|
292
|
-
a(l(ze), {
|
|
310
|
+
a(l(ze), Be({
|
|
293
311
|
ref_key: "formRef",
|
|
294
|
-
ref:
|
|
312
|
+
ref: J,
|
|
295
313
|
model: i,
|
|
296
|
-
rules:
|
|
297
|
-
"
|
|
298
|
-
|
|
299
|
-
}, {
|
|
314
|
+
rules: ge,
|
|
315
|
+
"require-mark-placement": "left"
|
|
316
|
+
}, fe.value), {
|
|
300
317
|
default: u(() => [
|
|
301
|
-
a(l(
|
|
318
|
+
a(l(Re), {
|
|
302
319
|
cols: 1,
|
|
303
320
|
"y-gap": 4
|
|
304
321
|
}, {
|
|
305
322
|
default: u(() => [
|
|
306
|
-
a(l(
|
|
323
|
+
a(l(I), {
|
|
307
324
|
label: l(o)("menu.title"),
|
|
308
325
|
path: "title"
|
|
309
326
|
}, {
|
|
310
327
|
default: u(() => [
|
|
311
|
-
a(l(
|
|
328
|
+
a(l(q), {
|
|
312
329
|
value: i.title,
|
|
313
330
|
"onUpdate:value": t[2] || (t[2] = (n) => i.title = n),
|
|
314
331
|
placeholder: l(o)("menu.title")
|
|
@@ -316,62 +333,62 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
|
|
|
316
333
|
]),
|
|
317
334
|
_: 1
|
|
318
335
|
}, 8, ["label"]),
|
|
319
|
-
a(l(
|
|
336
|
+
a(l(I), {
|
|
320
337
|
label: l(o)("menu.buttonParent")
|
|
321
338
|
}, {
|
|
322
339
|
default: u(() => [
|
|
323
|
-
a(l(
|
|
340
|
+
a(l(ne), {
|
|
324
341
|
value: i.parentId,
|
|
325
342
|
"onUpdate:value": t[3] || (t[3] = (n) => i.parentId = n),
|
|
326
|
-
options:
|
|
343
|
+
options: be.value,
|
|
327
344
|
filterable: ""
|
|
328
345
|
}, null, 8, ["value", "options"])
|
|
329
346
|
]),
|
|
330
347
|
_: 1
|
|
331
348
|
}, 8, ["label"]),
|
|
332
|
-
a(l(
|
|
349
|
+
a(l(I), {
|
|
333
350
|
label: l(o)("menu.permission")
|
|
334
351
|
}, {
|
|
335
352
|
default: u(() => [
|
|
336
|
-
a(l(
|
|
353
|
+
a(l(b), {
|
|
337
354
|
vertical: "",
|
|
338
355
|
size: 4,
|
|
339
356
|
style: { width: "100%" }
|
|
340
357
|
}, {
|
|
341
358
|
default: u(() => [
|
|
342
|
-
a(l(
|
|
359
|
+
a(l(ne), {
|
|
343
360
|
value: k.value,
|
|
344
361
|
"onUpdate:value": t[4] || (t[4] = (n) => k.value = n),
|
|
345
|
-
options:
|
|
362
|
+
options: he.value,
|
|
346
363
|
multiple: "",
|
|
347
364
|
filterable: "",
|
|
348
365
|
tag: "",
|
|
349
366
|
clearable: "",
|
|
350
367
|
placeholder: l(o)("menu.permissionPlaceholder")
|
|
351
368
|
}, null, 8, ["value", "options", "placeholder"]),
|
|
352
|
-
|
|
353
|
-
|
|
369
|
+
le("span", He, h(l(o)("menu.permissionHint")), 1),
|
|
370
|
+
K.value ? (m(), v(l(j), {
|
|
354
371
|
key: 0,
|
|
355
|
-
checked:
|
|
356
|
-
"onUpdate:checked": t[5] || (t[5] = (n) =>
|
|
372
|
+
checked: c.value,
|
|
373
|
+
"onUpdate:checked": t[5] || (t[5] = (n) => c.value = n),
|
|
357
374
|
size: "small"
|
|
358
375
|
}, {
|
|
359
376
|
default: u(() => [
|
|
360
|
-
|
|
377
|
+
x(h(l(o)("menu.showAllRoutes")), 1)
|
|
361
378
|
]),
|
|
362
379
|
_: 1
|
|
363
|
-
}, 8, ["checked"])) :
|
|
380
|
+
}, 8, ["checked"])) : O("", !0)
|
|
364
381
|
]),
|
|
365
382
|
_: 1
|
|
366
383
|
})
|
|
367
384
|
]),
|
|
368
385
|
_: 1
|
|
369
386
|
}, 8, ["label"]),
|
|
370
|
-
a(l(
|
|
387
|
+
a(l(I), {
|
|
371
388
|
label: l(o)("menu.sort")
|
|
372
389
|
}, {
|
|
373
390
|
default: u(() => [
|
|
374
|
-
a(l(
|
|
391
|
+
a(l(Le), {
|
|
375
392
|
value: i.sort,
|
|
376
393
|
"onUpdate:value": t[6] || (t[6] = (n) => i.sort = n),
|
|
377
394
|
min: 0,
|
|
@@ -380,11 +397,11 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
|
|
|
380
397
|
]),
|
|
381
398
|
_: 1
|
|
382
399
|
}, 8, ["label"]),
|
|
383
|
-
a(l(
|
|
400
|
+
a(l(I), {
|
|
384
401
|
label: l(o)("common.status")
|
|
385
402
|
}, {
|
|
386
403
|
default: u(() => [
|
|
387
|
-
a(l(
|
|
404
|
+
a(l(Oe), {
|
|
388
405
|
value: i.enabled,
|
|
389
406
|
"onUpdate:value": t[7] || (t[7] = (n) => i.enabled = n)
|
|
390
407
|
}, null, 8, ["value"])
|
|
@@ -396,92 +413,91 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
|
|
|
396
413
|
})
|
|
397
414
|
]),
|
|
398
415
|
_: 1
|
|
399
|
-
},
|
|
416
|
+
}, 16, ["model"])
|
|
400
417
|
]),
|
|
401
418
|
_: 1
|
|
402
419
|
}, 8, ["show", "title", "confirm-text"]),
|
|
403
|
-
a(
|
|
404
|
-
show:
|
|
405
|
-
"onUpdate:show": t[11] || (t[11] = (n) =>
|
|
420
|
+
a(F, {
|
|
421
|
+
show: z.value,
|
|
422
|
+
"onUpdate:show": t[11] || (t[11] = (n) => z.value = n),
|
|
406
423
|
title: l(o)("menu.batchTitle"),
|
|
407
424
|
width: 640,
|
|
408
|
-
"on-confirm":
|
|
425
|
+
"on-confirm": Pe,
|
|
409
426
|
"confirm-text": l(o)("common.save")
|
|
410
427
|
}, {
|
|
411
428
|
default: u(() => [
|
|
412
|
-
|
|
429
|
+
R.value.length ? (m(), v(l(b), {
|
|
413
430
|
key: 1,
|
|
414
431
|
vertical: "",
|
|
415
432
|
size: 10
|
|
416
433
|
}, {
|
|
417
434
|
default: u(() => [
|
|
418
|
-
a(l(
|
|
435
|
+
a(l(b), {
|
|
419
436
|
align: "center",
|
|
420
437
|
size: 12
|
|
421
438
|
}, {
|
|
422
439
|
default: u(() => [
|
|
423
|
-
a(l(
|
|
424
|
-
value:
|
|
425
|
-
"onUpdate:value": t[9] || (t[9] = (n) =>
|
|
440
|
+
a(l(q), {
|
|
441
|
+
value: L.value,
|
|
442
|
+
"onUpdate:value": t[9] || (t[9] = (n) => L.value = n),
|
|
426
443
|
clearable: "",
|
|
427
444
|
placeholder: l(o)("menu.batchSearchPlaceholder"),
|
|
428
445
|
style: { flex: "1" }
|
|
429
446
|
}, {
|
|
430
447
|
prefix: u(() => [
|
|
431
|
-
a(
|
|
448
|
+
a(D, {
|
|
432
449
|
icon: "ph:magnifying-glass",
|
|
433
450
|
size: 16
|
|
434
451
|
})
|
|
435
452
|
]),
|
|
436
453
|
_: 1
|
|
437
454
|
}, 8, ["value", "placeholder"]),
|
|
438
|
-
|
|
455
|
+
K.value ? (m(), v(l(j), {
|
|
439
456
|
key: 0,
|
|
440
|
-
checked:
|
|
441
|
-
"onUpdate:checked": t[10] || (t[10] = (n) =>
|
|
457
|
+
checked: c.value,
|
|
458
|
+
"onUpdate:checked": t[10] || (t[10] = (n) => c.value = n)
|
|
442
459
|
}, {
|
|
443
460
|
default: u(() => [
|
|
444
|
-
|
|
461
|
+
x(h(l(o)("menu.showAllRoutes")), 1)
|
|
445
462
|
]),
|
|
446
463
|
_: 1
|
|
447
|
-
}, 8, ["checked"])) :
|
|
464
|
+
}, 8, ["checked"])) : O("", !0)
|
|
448
465
|
]),
|
|
449
466
|
_: 1
|
|
450
467
|
}),
|
|
451
|
-
|
|
468
|
+
ee.value.length ? (m(), v(l(b), {
|
|
452
469
|
key: 1,
|
|
453
470
|
vertical: "",
|
|
454
471
|
size: 6,
|
|
455
472
|
style: { "max-height": "55vh", overflow: "auto" }
|
|
456
473
|
}, {
|
|
457
474
|
default: u(() => [
|
|
458
|
-
(m(!0),
|
|
475
|
+
(m(!0), M(te, null, Ae(ee.value, (n) => (m(), M("div", {
|
|
459
476
|
key: n.code,
|
|
460
|
-
|
|
477
|
+
class: "batch-row"
|
|
461
478
|
}, [
|
|
462
|
-
a(l(
|
|
479
|
+
a(l(j), {
|
|
463
480
|
checked: n.checked,
|
|
464
481
|
"onUpdate:checked": (s) => n.checked = s
|
|
465
482
|
}, null, 8, ["checked", "onUpdate:checked"]),
|
|
466
|
-
|
|
467
|
-
a(l(
|
|
483
|
+
le("span", Qe, h(n.method) + " " + h(n.path), 1),
|
|
484
|
+
a(l(q), {
|
|
468
485
|
value: n.title,
|
|
469
486
|
"onUpdate:value": (s) => n.title = s,
|
|
470
|
-
size: "small",
|
|
471
487
|
disabled: !n.checked,
|
|
472
|
-
|
|
488
|
+
class: "batch-title"
|
|
473
489
|
}, null, 8, ["value", "onUpdate:value", "disabled"])
|
|
474
490
|
]))), 128))
|
|
475
491
|
]),
|
|
476
492
|
_: 1
|
|
477
|
-
})) : (m(), v(l(
|
|
493
|
+
})) : (m(), v(l(oe), {
|
|
478
494
|
key: 0,
|
|
479
495
|
description: l(o)("menu.noRoutesLeft"),
|
|
480
496
|
style: { padding: "16px 0" }
|
|
481
497
|
}, null, 8, ["description"]))
|
|
482
498
|
]),
|
|
483
499
|
_: 1
|
|
484
|
-
})) : (m(), v(l(
|
|
500
|
+
})) : (m(), v(l(oe), {
|
|
485
501
|
key: 0,
|
|
486
502
|
description: l(o)("menu.noRoutesLeft"),
|
|
487
503
|
style: { padding: "24px 0" }
|
|
@@ -493,6 +509,6 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
|
|
|
493
509
|
}
|
|
494
510
|
});
|
|
495
511
|
export {
|
|
496
|
-
|
|
512
|
+
mt as default
|
|
497
513
|
};
|
|
498
514
|
//# sourceMappingURL=ButtonManager2.vue.js.map
|