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,87 +1,104 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useMessage as Se,
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { SmartTable as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as ye, ref as m, shallowRef as x, onMounted as be, h as f, reactive as j, computed as K, resolveDirective as ge, openBlock as g, createElementBlock as J, Fragment as we, createVNode as a, unref as o, withCtx as s, withDirectives as Q, createBlock as D, createTextVNode as X, toDisplayString as w, createCommentVNode as k, createElementVNode as ke } from "vue";
|
|
2
|
+
import { useMessage as Se, NSpace as Ue, NButton as S, NDropdown as Te, NForm as Y, NFormItem as v, NInput as M, NInputNumber as Ae, NSwitch as Z, NSelect as Ce } from "naive-ui";
|
|
3
|
+
import { useI18n as De } from "vue-i18n";
|
|
4
|
+
import { SmartTable as Ie } from "smart-naive-table";
|
|
5
|
+
import ee from "../../../components/AppIcon.vue.js";
|
|
6
|
+
import le from "../../../components/FormContainer/index.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
8
|
+
import Oe from "../../../components/StatusSwitch/index.vue.js";
|
|
9
9
|
import Ne from "../../../components/OrgTreeSelect/index.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useConfirm as
|
|
13
|
-
import { useBatchDelete as
|
|
14
|
-
import { moduleApi as
|
|
15
|
-
import { useAuthStore as
|
|
16
|
-
import { translateError as
|
|
10
|
+
import _e from "../../../components/UserPicker/index.vue.js";
|
|
11
|
+
import Pe from "./components/GrantMenuSheet.vue.js";
|
|
12
|
+
import { useConfirm as Re } from "../../../composables/useConfirm.js";
|
|
13
|
+
import { useBatchDelete as xe } from "../../../composables/useBatchDelete.js";
|
|
14
|
+
import { moduleApi as Me, roleApi as d, menuApi as Ee, userApi as ze } from "../../../api/index.js";
|
|
15
|
+
import { useAuthStore as Be } from "../../../stores/auth.js";
|
|
16
|
+
import { translateError as h } from "../../../utils/error.js";
|
|
17
|
+
import { SEARCH_ACTIONS as qe, deriveHeaderFilters as He } from "../../../utils/tableFilter.js";
|
|
18
|
+
import { TABLE_MIN_ROW_HEIGHT as Fe, TABLE_TOOLBAR as Ge } from "../../../utils/tableToolbar.js";
|
|
19
|
+
import Le from "../../../components/TableTotal/index.vue.js";
|
|
17
20
|
import { DataScopeType as y } from "../../../types/api.js";
|
|
18
|
-
const
|
|
21
|
+
const Ve = { class: "form-hint" }, $e = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "scope-who"
|
|
24
|
+
}, te = 0, pl = /* @__PURE__ */ ye({
|
|
19
25
|
__name: "index",
|
|
20
|
-
setup(
|
|
21
|
-
const { t } =
|
|
26
|
+
setup(We) {
|
|
27
|
+
const { t } = De(), c = Se(), { confirm: oe } = Re(), i = Be(), U = m(), I = x([]);
|
|
22
28
|
be(async () => {
|
|
23
29
|
try {
|
|
24
|
-
I.value = await
|
|
30
|
+
I.value = await Me.list();
|
|
25
31
|
} catch {
|
|
26
32
|
}
|
|
27
33
|
});
|
|
28
|
-
async function
|
|
34
|
+
async function E(l) {
|
|
29
35
|
try {
|
|
30
|
-
const { total: e } = await
|
|
36
|
+
const { total: e } = await ze.page({ page: 1, pageSize: 1, roleId: l });
|
|
31
37
|
return e;
|
|
32
38
|
} catch {
|
|
33
39
|
return null;
|
|
34
40
|
}
|
|
35
41
|
}
|
|
36
|
-
const {
|
|
37
|
-
checkedKeys: z,
|
|
38
|
-
hasSelection: le,
|
|
39
|
-
run: te
|
|
40
|
-
} = Re({
|
|
42
|
+
const { checkedKeys: z, run: re } = xe({
|
|
41
43
|
remove: d.batchRemove,
|
|
42
44
|
refresh: () => {
|
|
43
45
|
var l;
|
|
44
|
-
return (l =
|
|
46
|
+
return (l = U.value) == null ? void 0 : l.refresh();
|
|
45
47
|
},
|
|
46
48
|
successMsg: t("role.deleted"),
|
|
47
49
|
content: async (l) => {
|
|
48
|
-
const e = await Promise.all(l.map(
|
|
50
|
+
const e = await Promise.all(l.map(E));
|
|
49
51
|
if (e.some((r) => r === null)) return t("common.batchDeleteConfirm", { count: l.length });
|
|
50
|
-
const n = e.reduce((r,
|
|
52
|
+
const n = e.reduce((r, C) => r + C, 0);
|
|
51
53
|
return n === 0 ? t("common.batchDeleteConfirm", { count: l.length }) : t("role.batchDeleteWithUsers", { count: l.length, users: n });
|
|
52
54
|
}
|
|
53
55
|
});
|
|
54
|
-
async function
|
|
55
|
-
var
|
|
56
|
-
const e = await
|
|
57
|
-
await
|
|
56
|
+
async function ae(l) {
|
|
57
|
+
var C;
|
|
58
|
+
const e = await E(l.id), n = e === null ? t("role.deleteConfirm", { name: l.name }) : e === 0 ? t("role.deleteConfirmNoUsers", { name: l.name }) : t("role.deleteConfirmWithUsers", { name: l.name, count: e });
|
|
59
|
+
await oe({
|
|
58
60
|
content: n,
|
|
59
61
|
type: "error",
|
|
60
62
|
action: () => d.remove(l.id),
|
|
61
63
|
successMsg: t("role.deleted")
|
|
62
|
-
}) && ((
|
|
64
|
+
}) && ((C = U.value) == null || C.refresh());
|
|
63
65
|
}
|
|
64
|
-
const
|
|
66
|
+
const B = (l) => ({
|
|
65
67
|
name: l.name,
|
|
66
68
|
code: l.code,
|
|
67
69
|
sort: l.sort,
|
|
68
70
|
enabled: l.enabled,
|
|
69
71
|
remark: l.remark ?? "",
|
|
70
72
|
isDelegatable: l.isDelegatable ?? !1
|
|
71
|
-
}),
|
|
73
|
+
}), q = [
|
|
72
74
|
{ type: "selection" },
|
|
73
75
|
{ type: "index", title: () => t("common.rowNo"), width: 64, align: "center" },
|
|
74
|
-
{
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
{
|
|
77
|
+
key: "code",
|
|
78
|
+
title: () => t("role.code"),
|
|
79
|
+
render: (l) => f("span", { class: "mono muted" }, l.code)
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
key: "name",
|
|
83
|
+
title: () => t("role.name"),
|
|
84
|
+
card: "title",
|
|
85
|
+
// 窄档卡片以角色名称为标题,编码作为字段
|
|
86
|
+
search: { actions: qe.fuzzy }
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "sort",
|
|
90
|
+
title: () => t("role.sort"),
|
|
91
|
+
width: 80,
|
|
92
|
+
render: (l) => f("span", { class: "num muted" }, l.sort)
|
|
93
|
+
},
|
|
77
94
|
{
|
|
78
95
|
key: "enabled",
|
|
79
96
|
title: () => t("common.status"),
|
|
80
97
|
width: 90,
|
|
81
|
-
render: (l) =>
|
|
98
|
+
render: (l) => f(Oe, {
|
|
82
99
|
value: l.enabled,
|
|
83
100
|
disabled: !i.isSuperAdmin || !i.hasPerm("PUT:/api/v1/sys/role/{id}"),
|
|
84
|
-
request: (e) => d.update(l.id, { ...
|
|
101
|
+
request: (e) => d.update(l.id, { ...B(l), enabled: e }),
|
|
85
102
|
"onUpdate:value": (e) => {
|
|
86
103
|
l.enabled = e;
|
|
87
104
|
}
|
|
@@ -91,7 +108,7 @@ const Z = 0, ol = /* @__PURE__ */ he({
|
|
|
91
108
|
key: "remark",
|
|
92
109
|
title: () => t("role.remark"),
|
|
93
110
|
ellipsis: { tooltip: !0 },
|
|
94
|
-
render: (l) => l.remark || "—"
|
|
111
|
+
render: (l) => l.remark || f("span", { class: "faint" }, "—")
|
|
95
112
|
},
|
|
96
113
|
{
|
|
97
114
|
key: "op",
|
|
@@ -105,31 +122,33 @@ const Z = 0, ol = /* @__PURE__ */ he({
|
|
|
105
122
|
i.isSuperAdmin && i.hasPerm("PUT:/api/v1/sys/role/datascope") ? { label: t("role.dataScope"), key: "scope" } : null,
|
|
106
123
|
i.hasPerm("PUT:/api/v1/sys/role/users") ? { label: t("role.grantUsers"), key: "users" } : null
|
|
107
124
|
].filter((n) => n !== null);
|
|
108
|
-
return
|
|
109
|
-
i.isSuperAdmin && i.hasPerm("PUT:/api/v1/sys/role/{id}") ?
|
|
110
|
-
|
|
111
|
-
{ size: "small", quaternary: !0, type: "primary", onClick: () =>
|
|
125
|
+
return f(Ue, { size: 4, wrapItem: !1 }, () => [
|
|
126
|
+
i.isSuperAdmin && i.hasPerm("PUT:/api/v1/sys/role/{id}") ? f(
|
|
127
|
+
S,
|
|
128
|
+
{ size: "small", quaternary: !0, type: "primary", onClick: () => ue(l) },
|
|
112
129
|
() => t("common.edit")
|
|
113
130
|
) : null,
|
|
114
|
-
i.isSuperAdmin && i.hasPerm("DELETE:/api/v1/sys/role/{id}") ?
|
|
115
|
-
|
|
116
|
-
{ size: "small", quaternary: !0, type: "error", onClick: () =>
|
|
131
|
+
i.isSuperAdmin && i.hasPerm("DELETE:/api/v1/sys/role/{id}") ? f(
|
|
132
|
+
S,
|
|
133
|
+
{ size: "small", quaternary: !0, type: "error", onClick: () => ae(l) },
|
|
117
134
|
() => t("common.delete")
|
|
118
135
|
) : null,
|
|
119
|
-
e.length ?
|
|
120
|
-
|
|
136
|
+
e.length ? f(
|
|
137
|
+
Te,
|
|
121
138
|
{
|
|
122
139
|
options: e,
|
|
123
140
|
onSelect: (n) => {
|
|
124
|
-
n === "menus" ?
|
|
141
|
+
n === "menus" ? ce(l) : n === "scope" ? ve(l) : de(l);
|
|
125
142
|
}
|
|
126
143
|
},
|
|
127
|
-
() =>
|
|
144
|
+
() => f(S, { size: "small", quaternary: !0 }, () => t("common.more"))
|
|
128
145
|
) : null
|
|
129
146
|
]);
|
|
130
147
|
}
|
|
131
148
|
}
|
|
132
|
-
]
|
|
149
|
+
];
|
|
150
|
+
He(q);
|
|
151
|
+
const T = m(!1), H = m(null), b = m(null), ne = {
|
|
133
152
|
code: {
|
|
134
153
|
required: !0,
|
|
135
154
|
whitespace: !0,
|
|
@@ -149,67 +168,63 @@ const Z = 0, ol = /* @__PURE__ */ he({
|
|
|
149
168
|
enabled: !0,
|
|
150
169
|
remark: "",
|
|
151
170
|
isDelegatable: !1
|
|
152
|
-
}), u =
|
|
153
|
-
function
|
|
154
|
-
|
|
171
|
+
}), u = j(F());
|
|
172
|
+
function se() {
|
|
173
|
+
b.value = null, Object.assign(u, F()), T.value = !0;
|
|
155
174
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
175
|
+
function ue(l) {
|
|
176
|
+
b.value = l.id, Object.assign(u, B(l)), T.value = !0;
|
|
158
177
|
}
|
|
159
|
-
async function
|
|
178
|
+
async function ie() {
|
|
160
179
|
var l, e;
|
|
161
|
-
await ((l =
|
|
180
|
+
await ((l = H.value) == null ? void 0 : l.validate());
|
|
162
181
|
try {
|
|
163
|
-
|
|
182
|
+
b.value === null ? await d.add({ ...u }) : await d.update(b.value, { ...u }), c.success(t("role.saved")), await ((e = U.value) == null ? void 0 : e.refresh());
|
|
164
183
|
} catch (n) {
|
|
165
|
-
return c.error(
|
|
184
|
+
return c.error(h(n)), !1;
|
|
166
185
|
}
|
|
167
186
|
}
|
|
168
|
-
const O = m(!1),
|
|
169
|
-
async function
|
|
187
|
+
const O = m(!1), G = x([]), L = x([]), N = m(null), V = m(te);
|
|
188
|
+
async function ce(l) {
|
|
170
189
|
var e;
|
|
171
|
-
A.value = l.id;
|
|
172
190
|
try {
|
|
173
|
-
const [n, r] = await Promise.all([
|
|
174
|
-
|
|
191
|
+
const [n, r] = await Promise.all([Ee.tree(), d.getMenus(l.id)]);
|
|
192
|
+
N.value = l, G.value = n, L.value = r, V.value = i.currentModuleId ?? ((e = I.value[0]) == null ? void 0 : e.id) ?? te, O.value = !0;
|
|
175
193
|
} catch (n) {
|
|
176
|
-
c.error(
|
|
194
|
+
c.error(h(n));
|
|
177
195
|
}
|
|
178
196
|
}
|
|
179
|
-
function
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
async function de() {
|
|
183
|
-
if (A.value !== null)
|
|
197
|
+
async function me(l) {
|
|
198
|
+
if (N.value !== null)
|
|
184
199
|
try {
|
|
185
|
-
await d.setMenus(
|
|
186
|
-
} catch (
|
|
187
|
-
return c.error(
|
|
200
|
+
await d.setMenus(N.value.id, l), c.success(t("role.grantSaved"));
|
|
201
|
+
} catch (e) {
|
|
202
|
+
return c.error(h(e)), !1;
|
|
188
203
|
}
|
|
189
204
|
}
|
|
190
|
-
const
|
|
191
|
-
async function
|
|
205
|
+
const $ = m(null), _ = m(null);
|
|
206
|
+
async function de(l) {
|
|
192
207
|
var e;
|
|
193
|
-
|
|
208
|
+
_.value = l.id;
|
|
194
209
|
try {
|
|
195
210
|
const n = await d.getUsers(l.id);
|
|
196
|
-
(e =
|
|
211
|
+
(e = $.value) == null || e.open(n);
|
|
197
212
|
} catch (n) {
|
|
198
|
-
c.error(
|
|
213
|
+
c.error(h(n));
|
|
199
214
|
}
|
|
200
215
|
}
|
|
201
216
|
async function pe(l) {
|
|
202
|
-
if (
|
|
217
|
+
if (_.value !== null)
|
|
203
218
|
try {
|
|
204
|
-
await d.setUsers(
|
|
219
|
+
await d.setUsers(_.value, l), c.success(t("role.grantUsersSaved"));
|
|
205
220
|
} catch (e) {
|
|
206
|
-
c.error(
|
|
221
|
+
c.error(h(e));
|
|
207
222
|
}
|
|
208
223
|
}
|
|
209
|
-
const P = m(!1),
|
|
224
|
+
const P = m(!1), R = m(null), A = m(null), p = j({
|
|
210
225
|
scopeType: y.Org,
|
|
211
226
|
customOrgIds: []
|
|
212
|
-
}),
|
|
227
|
+
}), W = K(() => p.scopeType === y.Custom), fe = K(() => [
|
|
213
228
|
{ label: t("role.scope.all"), value: y.All },
|
|
214
229
|
{ label: t("role.scope.org"), value: y.Org },
|
|
215
230
|
{ label: t("role.scope.orgAndChildren"), value: y.OrgAndChildren },
|
|
@@ -217,121 +232,128 @@ const Z = 0, ol = /* @__PURE__ */ he({
|
|
|
217
232
|
{ label: t("role.scope.custom"), value: y.Custom }
|
|
218
233
|
]);
|
|
219
234
|
async function ve(l) {
|
|
220
|
-
|
|
235
|
+
R.value = l.id, A.value = l;
|
|
221
236
|
try {
|
|
222
237
|
const e = await d.getDataScope(l.id);
|
|
223
238
|
p.scopeType = (e == null ? void 0 : e.scopeType) ?? y.Org, p.customOrgIds = e != null && e.customOrgIds ? e.customOrgIds.split(",").filter(Boolean).map(Number) : [], P.value = !0;
|
|
224
239
|
} catch (e) {
|
|
225
|
-
c.error(
|
|
240
|
+
c.error(h(e));
|
|
226
241
|
}
|
|
227
242
|
}
|
|
228
|
-
async function
|
|
229
|
-
if (
|
|
243
|
+
async function he() {
|
|
244
|
+
if (R.value !== null)
|
|
230
245
|
try {
|
|
231
246
|
await d.setDataScope(
|
|
232
|
-
|
|
247
|
+
R.value,
|
|
233
248
|
p.scopeType,
|
|
234
|
-
|
|
249
|
+
W.value ? p.customOrgIds : void 0
|
|
235
250
|
), c.success(t("role.scopeSaved"));
|
|
236
251
|
} catch (l) {
|
|
237
|
-
return c.error(
|
|
252
|
+
return c.error(h(l)), !1;
|
|
238
253
|
}
|
|
239
254
|
}
|
|
240
255
|
return (l, e) => {
|
|
241
256
|
const n = ge("auth");
|
|
242
|
-
return g(), we
|
|
243
|
-
a(o(
|
|
244
|
-
|
|
257
|
+
return g(), J(we, null, [
|
|
258
|
+
a(o(Ie), {
|
|
259
|
+
toolbar: o(Ge),
|
|
245
260
|
ref_key: "tableRef",
|
|
246
|
-
ref:
|
|
247
|
-
columns:
|
|
261
|
+
ref: U,
|
|
262
|
+
columns: q,
|
|
248
263
|
fetcher: o(d).page,
|
|
249
|
-
|
|
250
|
-
"
|
|
264
|
+
search: { container: "table" },
|
|
265
|
+
"fill-height": "",
|
|
266
|
+
"min-row-height": o(Fe),
|
|
267
|
+
"card-on-narrow": "",
|
|
251
268
|
"storage-key": "sys-role",
|
|
252
269
|
"checked-row-keys": o(z),
|
|
253
270
|
"onUpdate:checkedRowKeys": e[0] || (e[0] = (r) => z.value = r),
|
|
254
|
-
onError: e[1] || (e[1] = (r) => o(c).error(o(
|
|
271
|
+
onError: e[1] || (e[1] = (r) => o(c).error(o(h)(r)))
|
|
255
272
|
}, {
|
|
256
|
-
|
|
257
|
-
|
|
273
|
+
"pagination-prefix": s(({ itemCount: r }) => [
|
|
274
|
+
a(Le, { count: r }, null, 8, ["count"])
|
|
275
|
+
]),
|
|
276
|
+
"toolbar-right": s(() => [
|
|
277
|
+
o(i).isSuperAdmin ? Q((g(), D(o(S), {
|
|
258
278
|
key: 0,
|
|
259
279
|
type: "primary",
|
|
260
|
-
onClick:
|
|
280
|
+
onClick: se
|
|
261
281
|
}, {
|
|
262
282
|
icon: s(() => [
|
|
263
|
-
a(
|
|
283
|
+
a(ee, {
|
|
264
284
|
icon: "ph:plus",
|
|
265
285
|
size: 16
|
|
266
286
|
})
|
|
267
287
|
]),
|
|
268
288
|
default: s(() => [
|
|
269
|
-
|
|
289
|
+
X(" " + w(o(t)("common.add")), 1)
|
|
270
290
|
]),
|
|
271
291
|
_: 1
|
|
272
292
|
})), [
|
|
273
293
|
[n, "POST:/api/v1/sys/role/add"]
|
|
274
|
-
]) :
|
|
275
|
-
|
|
276
|
-
|
|
294
|
+
]) : k("", !0)
|
|
295
|
+
]),
|
|
296
|
+
batch: s(() => [
|
|
297
|
+
o(i).isSuperAdmin ? Q((g(), D(o(S), {
|
|
298
|
+
key: 0,
|
|
299
|
+
secondary: "",
|
|
277
300
|
type: "error",
|
|
278
|
-
|
|
279
|
-
onClick: o(te)
|
|
301
|
+
onClick: o(re)
|
|
280
302
|
}, {
|
|
281
303
|
icon: s(() => [
|
|
282
|
-
a(
|
|
304
|
+
a(ee, {
|
|
283
305
|
icon: "ph:trash",
|
|
284
306
|
size: 16
|
|
285
307
|
})
|
|
286
308
|
]),
|
|
287
309
|
default: s(() => [
|
|
288
|
-
|
|
310
|
+
X(" " + w(o(t)("common.batchDelete")), 1)
|
|
289
311
|
]),
|
|
290
312
|
_: 1
|
|
291
|
-
}, 8, ["
|
|
313
|
+
}, 8, ["onClick"])), [
|
|
292
314
|
[n, "POST:/api/v1/sys/role/batch-delete"]
|
|
293
|
-
]) :
|
|
315
|
+
]) : k("", !0)
|
|
294
316
|
]),
|
|
295
317
|
_: 1
|
|
296
|
-
}, 8, ["fetcher", "checked-row-keys"]),
|
|
297
|
-
a(
|
|
298
|
-
show:
|
|
299
|
-
"onUpdate:show": e[8] || (e[8] = (r) =>
|
|
300
|
-
title:
|
|
318
|
+
}, 8, ["toolbar", "fetcher", "min-row-height", "checked-row-keys"]),
|
|
319
|
+
a(le, {
|
|
320
|
+
show: T.value,
|
|
321
|
+
"onUpdate:show": e[8] || (e[8] = (r) => T.value = r),
|
|
322
|
+
title: b.value === null ? o(t)("role.addTitle") : o(t)("role.editTitle"),
|
|
301
323
|
width: 480,
|
|
302
|
-
"on-confirm":
|
|
324
|
+
"on-confirm": ie,
|
|
303
325
|
"confirm-text": o(t)("common.save")
|
|
304
326
|
}, {
|
|
305
327
|
default: s(() => [
|
|
306
|
-
a(o(
|
|
328
|
+
a(o(Y), {
|
|
307
329
|
ref_key: "formRef",
|
|
308
|
-
ref:
|
|
330
|
+
ref: H,
|
|
309
331
|
model: u,
|
|
310
|
-
rules:
|
|
332
|
+
rules: ne,
|
|
311
333
|
"label-placement": "left",
|
|
312
334
|
"label-width": 80
|
|
313
335
|
}, {
|
|
314
336
|
default: s(() => [
|
|
315
|
-
a(o(
|
|
337
|
+
a(o(v), {
|
|
316
338
|
label: o(t)("role.code"),
|
|
317
339
|
path: "code"
|
|
318
340
|
}, {
|
|
319
341
|
default: s(() => [
|
|
320
|
-
a(o(
|
|
342
|
+
a(o(M), {
|
|
321
343
|
value: u.code,
|
|
322
344
|
"onUpdate:value": e[2] || (e[2] = (r) => u.code = r),
|
|
323
345
|
placeholder: o(t)("role.code"),
|
|
324
|
-
disabled:
|
|
346
|
+
disabled: b.value !== null
|
|
325
347
|
}, null, 8, ["value", "placeholder", "disabled"])
|
|
326
348
|
]),
|
|
327
349
|
_: 1
|
|
328
350
|
}, 8, ["label"]),
|
|
329
|
-
a(o(
|
|
351
|
+
a(o(v), {
|
|
330
352
|
label: o(t)("role.name"),
|
|
331
353
|
path: "name"
|
|
332
354
|
}, {
|
|
333
355
|
default: s(() => [
|
|
334
|
-
a(o(
|
|
356
|
+
a(o(M), {
|
|
335
357
|
value: u.name,
|
|
336
358
|
"onUpdate:value": e[3] || (e[3] = (r) => u.name = r),
|
|
337
359
|
placeholder: o(t)("role.name")
|
|
@@ -339,11 +361,11 @@ const Z = 0, ol = /* @__PURE__ */ he({
|
|
|
339
361
|
]),
|
|
340
362
|
_: 1
|
|
341
363
|
}, 8, ["label"]),
|
|
342
|
-
a(o(
|
|
364
|
+
a(o(v), {
|
|
343
365
|
label: o(t)("role.sort")
|
|
344
366
|
}, {
|
|
345
367
|
default: s(() => [
|
|
346
|
-
a(o(
|
|
368
|
+
a(o(Ae), {
|
|
347
369
|
value: u.sort,
|
|
348
370
|
"onUpdate:value": e[4] || (e[4] = (r) => u.sort = r),
|
|
349
371
|
min: 0,
|
|
@@ -352,11 +374,11 @@ const Z = 0, ol = /* @__PURE__ */ he({
|
|
|
352
374
|
]),
|
|
353
375
|
_: 1
|
|
354
376
|
}, 8, ["label"]),
|
|
355
|
-
a(o(
|
|
377
|
+
a(o(v), {
|
|
356
378
|
label: o(t)("role.remark")
|
|
357
379
|
}, {
|
|
358
380
|
default: s(() => [
|
|
359
|
-
a(o(
|
|
381
|
+
a(o(M), {
|
|
360
382
|
value: u.remark,
|
|
361
383
|
"onUpdate:value": e[5] || (e[5] = (r) => u.remark = r),
|
|
362
384
|
type: "textarea",
|
|
@@ -366,79 +388,73 @@ const Z = 0, ol = /* @__PURE__ */ he({
|
|
|
366
388
|
]),
|
|
367
389
|
_: 1
|
|
368
390
|
}, 8, ["label"]),
|
|
369
|
-
a(o(
|
|
391
|
+
a(o(v), {
|
|
370
392
|
label: o(t)("common.status")
|
|
371
393
|
}, {
|
|
372
394
|
default: s(() => [
|
|
373
|
-
a(o(
|
|
395
|
+
a(o(Z), {
|
|
374
396
|
value: u.enabled,
|
|
375
397
|
"onUpdate:value": e[6] || (e[6] = (r) => u.enabled = r)
|
|
376
398
|
}, null, 8, ["value"])
|
|
377
399
|
]),
|
|
378
400
|
_: 1
|
|
379
401
|
}, 8, ["label"]),
|
|
380
|
-
o(i).isSuperAdmin ? (g(),
|
|
402
|
+
o(i).isSuperAdmin ? (g(), D(o(v), {
|
|
381
403
|
key: 0,
|
|
382
404
|
label: o(t)("role.isDelegatable")
|
|
383
405
|
}, {
|
|
406
|
+
feedback: s(() => [
|
|
407
|
+
ke("span", Ve, w(o(t)("role.isDelegatableHint")), 1)
|
|
408
|
+
]),
|
|
384
409
|
default: s(() => [
|
|
385
|
-
a(o(
|
|
410
|
+
a(o(Z), {
|
|
386
411
|
value: u.isDelegatable,
|
|
387
412
|
"onUpdate:value": e[7] || (e[7] = (r) => u.isDelegatable = r)
|
|
388
413
|
}, null, 8, ["value"])
|
|
389
414
|
]),
|
|
390
415
|
_: 1
|
|
391
|
-
}, 8, ["label"])) :
|
|
416
|
+
}, 8, ["label"])) : k("", !0)
|
|
392
417
|
]),
|
|
393
418
|
_: 1
|
|
394
419
|
}, 8, ["model"])
|
|
395
420
|
]),
|
|
396
421
|
_: 1
|
|
397
422
|
}, 8, ["show", "title", "confirm-text"]),
|
|
398
|
-
a(
|
|
423
|
+
a(Pe, {
|
|
399
424
|
show: O.value,
|
|
400
425
|
"onUpdate:show": e[9] || (e[9] = (r) => O.value = r),
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
"
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
tree: $.value,
|
|
409
|
-
granted: U.value,
|
|
410
|
-
modules: I.value,
|
|
411
|
-
"default-module-id": G.value,
|
|
412
|
-
"onUpdate:checked": ce
|
|
413
|
-
}, null, 8, ["tree", "granted", "modules", "default-module-id"])
|
|
414
|
-
]),
|
|
415
|
-
_: 1
|
|
416
|
-
}, 8, ["show", "title", "confirm-text"]),
|
|
417
|
-
a(Pe, {
|
|
426
|
+
tree: G.value,
|
|
427
|
+
granted: L.value,
|
|
428
|
+
modules: I.value,
|
|
429
|
+
"default-module-id": V.value,
|
|
430
|
+
"on-save": me
|
|
431
|
+
}, null, 8, ["show", "tree", "granted", "modules", "default-module-id"]),
|
|
432
|
+
a(_e, {
|
|
418
433
|
ref_key: "userPickerRef",
|
|
419
|
-
ref:
|
|
434
|
+
ref: $,
|
|
420
435
|
onConfirm: pe
|
|
421
436
|
}, null, 512),
|
|
422
|
-
a(
|
|
437
|
+
a(le, {
|
|
423
438
|
show: P.value,
|
|
424
439
|
"onUpdate:show": e[12] || (e[12] = (r) => P.value = r),
|
|
425
440
|
title: o(t)("role.dataScope"),
|
|
426
441
|
width: 480,
|
|
427
|
-
"on-confirm":
|
|
442
|
+
"on-confirm": he,
|
|
428
443
|
"confirm-text": o(t)("common.save")
|
|
429
444
|
}, {
|
|
430
445
|
default: s(() => [
|
|
431
|
-
|
|
446
|
+
A.value ? (g(), J("div", $e, w(A.value.name) + " · " + w(A.value.code), 1)) : k("", !0),
|
|
447
|
+
a(o(Y), {
|
|
432
448
|
model: p,
|
|
433
449
|
"label-placement": "left",
|
|
434
450
|
"label-width": 90
|
|
435
451
|
}, {
|
|
436
452
|
default: s(() => [
|
|
437
|
-
a(o(
|
|
453
|
+
a(o(v), {
|
|
438
454
|
label: o(t)("role.scopeType")
|
|
439
455
|
}, {
|
|
440
456
|
default: s(() => [
|
|
441
|
-
a(o(
|
|
457
|
+
a(o(Ce), {
|
|
442
458
|
value: p.scopeType,
|
|
443
459
|
"onUpdate:value": e[10] || (e[10] = (r) => p.scopeType = r),
|
|
444
460
|
options: fe.value
|
|
@@ -446,7 +462,7 @@ const Z = 0, ol = /* @__PURE__ */ he({
|
|
|
446
462
|
]),
|
|
447
463
|
_: 1
|
|
448
464
|
}, 8, ["label"]),
|
|
449
|
-
|
|
465
|
+
W.value ? (g(), D(o(v), {
|
|
450
466
|
key: 0,
|
|
451
467
|
label: o(t)("role.customOrgs")
|
|
452
468
|
}, {
|
|
@@ -459,7 +475,7 @@ const Z = 0, ol = /* @__PURE__ */ he({
|
|
|
459
475
|
}, null, 8, ["value", "placeholder"])
|
|
460
476
|
]),
|
|
461
477
|
_: 1
|
|
462
|
-
}, 8, ["label"])) :
|
|
478
|
+
}, 8, ["label"])) : k("", !0)
|
|
463
479
|
]),
|
|
464
480
|
_: 1
|
|
465
481
|
}, 8, ["model"])
|
|
@@ -471,6 +487,6 @@ const Z = 0, ol = /* @__PURE__ */ he({
|
|
|
471
487
|
}
|
|
472
488
|
});
|
|
473
489
|
export {
|
|
474
|
-
|
|
490
|
+
pl as default
|
|
475
491
|
};
|
|
476
492
|
//# sourceMappingURL=index2.vue.js.map
|