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,111 +1,130 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
1
|
+
import { defineComponent as Ee, ref as n, computed as f, watch as F, onMounted as Ne, h as d, resolveDirective as Se, openBlock as x, createElementBlock as oe, Fragment as Te, createVNode as l, unref as a, withCtx as i, createElementVNode as h, createBlock as B, createTextVNode as P, toDisplayString as E, createCommentVNode as ae, normalizeClass as Ae, createSlots as Ce, withDirectives as le } from "vue";
|
|
2
|
+
import { useElementSize as Pe, createReusableTemplate as Ie } from "@vueuse/core";
|
|
3
|
+
import { useRoute as Oe } from "vue-router";
|
|
4
|
+
import { useMessage as _e, NAvatar as ze, NTag as Me, NSpace as Re, NButton as w, NPopconfirm as De, NDropdown as Ue, NTooltip as Fe, NInput as Be, NSpin as Le, NTree as qe, NDrawer as $e, NDrawerContent as Ke } from "naive-ui";
|
|
5
|
+
import { useI18n as He } from "vue-i18n";
|
|
6
|
+
import { SmartTable as Ve } from "smart-naive-table";
|
|
7
|
+
import v from "../../../components/AppIcon.vue.js";
|
|
8
|
+
import Ge from "../../../components/StatusSwitch/index.vue.js";
|
|
9
|
+
import We from "../../../components/DictTag/index.vue.js";
|
|
10
|
+
import je from "../../../components/ImportWizard/index.vue.js";
|
|
11
|
+
import Je from "../../../components/ExportColumnsModal/index.vue.js";
|
|
12
|
+
import Qe from "./components/UserFormModal.vue.js";
|
|
13
|
+
import Xe from "./components/ResetPasswordModal.vue.js";
|
|
14
|
+
import { useConfirm as Ye } from "../../../composables/useConfirm.js";
|
|
15
|
+
import { useBatchDelete as Ze } from "../../../composables/useBatchDelete.js";
|
|
16
|
+
import { userApi as m, positionApi as er, roleApi as rr, orgApi as tr, mfaApi as or } from "../../../api/index.js";
|
|
17
|
+
import { useAuthStore as ar } from "../../../stores/auth.js";
|
|
18
|
+
import { translateError as se } from "../../../utils/error.js";
|
|
19
|
+
import { presetEqualFilter as lr, SEARCH_ACTIONS as L, deriveHeaderFilters as sr, flatSearchOf as nr } from "../../../utils/tableFilter.js";
|
|
20
|
+
import { TABLE_TOOLBAR as ir, TABLE_MIN_ROW_HEIGHT as ur } from "../../../utils/tableToolbar.js";
|
|
21
|
+
import dr from "../../../components/TableTotal/index.vue.js";
|
|
22
|
+
import { triggerBlobDownload as mr } from "../../../utils/download.js";
|
|
23
|
+
import { buildTree as pr, expandableIds as cr } from "../../../utils/tree.js";
|
|
24
|
+
const fr = { class: "side-filter__head" }, vr = { class: "side-filter__actions" }, yr = { class: "side-row__label" }, gr = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "side-filter"
|
|
27
|
+
}, hr = { class: "org-drawer-body" }, wr = 1e3, Hr = /* @__PURE__ */ Ee({
|
|
21
28
|
__name: "index",
|
|
22
|
-
setup(
|
|
23
|
-
const { t } =
|
|
24
|
-
|
|
25
|
-
hasSelection: H,
|
|
26
|
-
run: J
|
|
27
|
-
} = Oe({
|
|
28
|
-
remove: u.batchRemove,
|
|
29
|
+
setup(br) {
|
|
30
|
+
const { t } = He(), I = _e(), { run: ne, confirm: ie } = Ye(), y = ar(), p = n(), { checkedKeys: q, run: ue } = Ze({
|
|
31
|
+
remove: m.batchRemove,
|
|
29
32
|
refresh: () => {
|
|
30
|
-
var
|
|
31
|
-
return (
|
|
33
|
+
var e;
|
|
34
|
+
return (e = p.value) == null ? void 0 : e.refresh();
|
|
32
35
|
},
|
|
33
36
|
successMsg: t("user.deleted")
|
|
34
|
-
}),
|
|
35
|
-
async function
|
|
36
|
-
var
|
|
37
|
+
}), O = n(null), _ = n(null), N = n(!1);
|
|
38
|
+
async function de(e) {
|
|
39
|
+
var r;
|
|
37
40
|
N.value = !0;
|
|
38
41
|
try {
|
|
39
|
-
await
|
|
40
|
-
content: t("user.clearMfaConfirm", { name:
|
|
41
|
-
action: () =>
|
|
42
|
+
await ie({
|
|
43
|
+
content: t("user.clearMfaConfirm", { name: e.name }),
|
|
44
|
+
action: () => or.clear({ userId: e.id }),
|
|
42
45
|
successMsg: t("user.mfaCleared")
|
|
43
|
-
}) && ((
|
|
46
|
+
}) && ((r = p.value) == null || r.refresh());
|
|
44
47
|
} finally {
|
|
45
48
|
N.value = !1;
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
|
-
const
|
|
49
|
-
() =>
|
|
51
|
+
const $ = n([]), z = n([]), K = n([]), S = n([]), H = n(!0), V = f(() => pr(S.value)), c = n(null), G = f(
|
|
52
|
+
() => c.value == null ? {} : { orgId: c.value }
|
|
50
53
|
);
|
|
51
|
-
function
|
|
52
|
-
|
|
54
|
+
function me(e) {
|
|
55
|
+
Q(e.length ? Number(e[0]) : null);
|
|
53
56
|
}
|
|
54
|
-
const
|
|
55
|
-
function
|
|
56
|
-
|
|
57
|
-
if (!a) return !0;
|
|
58
|
-
const o = e;
|
|
59
|
-
return o.name.toLowerCase().includes(a) || (o.code ?? "").toLowerCase().includes(a);
|
|
57
|
+
const W = n(), { width: j } = Pe(W), J = f(() => j.value > 0 && j.value < wr), T = n(!1);
|
|
58
|
+
function Q(e) {
|
|
59
|
+
c.value = e, T.value = !1;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
62
|
-
() =>
|
|
61
|
+
const [pe, X] = Ie(), ce = f(
|
|
62
|
+
() => {
|
|
63
|
+
var e;
|
|
64
|
+
return ((e = S.value.find((r) => r.id === c.value)) == null ? void 0 : e.name) ?? t("user.orgFilter");
|
|
65
|
+
}
|
|
66
|
+
), M = n("");
|
|
67
|
+
function fe(e, r) {
|
|
68
|
+
const u = e.trim().toLowerCase();
|
|
69
|
+
if (!u) return !0;
|
|
70
|
+
const o = r;
|
|
71
|
+
return o.name.toLowerCase().includes(u) || (o.code ?? "").toLowerCase().includes(u);
|
|
72
|
+
}
|
|
73
|
+
const g = n([]), b = f(() => cr(V.value)), A = f(
|
|
74
|
+
() => b.value.length > 0 && g.value.length >= b.value.length
|
|
63
75
|
);
|
|
64
|
-
function
|
|
65
|
-
|
|
76
|
+
function ve() {
|
|
77
|
+
g.value = A.value ? [] : [...b.value];
|
|
66
78
|
}
|
|
67
|
-
|
|
68
|
-
var
|
|
69
|
-
if (
|
|
70
|
-
const
|
|
71
|
-
let o = ((
|
|
72
|
-
for (; o &&
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}),
|
|
79
|
+
F(b, (e) => g.value = e, { immediate: !0 }), F(c, (e) => {
|
|
80
|
+
var s;
|
|
81
|
+
if (e == null) return;
|
|
82
|
+
const r = new Map(S.value.map((te) => [te.id, te])), u = new Set(g.value);
|
|
83
|
+
let o = ((s = r.get(e)) == null ? void 0 : s.parentId) ?? 0;
|
|
84
|
+
for (; o && r.has(o); )
|
|
85
|
+
u.add(o), o = r.get(o).parentId;
|
|
86
|
+
g.value = [...u];
|
|
87
|
+
}), Ne(async () => {
|
|
76
88
|
try {
|
|
77
|
-
const { items:
|
|
78
|
-
|
|
89
|
+
const { items: e } = await er.page({ page: 1, pageSize: 200 });
|
|
90
|
+
$.value = e.map((r) => ({ label: r.name, value: r.id }));
|
|
79
91
|
} catch {
|
|
80
92
|
}
|
|
81
93
|
try {
|
|
82
|
-
const { items:
|
|
83
|
-
z.value =
|
|
94
|
+
const { items: e } = await rr.page({ page: 1, pageSize: 200 });
|
|
95
|
+
z.value = e.map((r) => ({ label: r.name, value: r.id }));
|
|
84
96
|
} catch {
|
|
85
97
|
}
|
|
86
98
|
try {
|
|
87
|
-
const { items:
|
|
88
|
-
|
|
99
|
+
const { items: e } = await m.page({ page: 1, pageSize: 200 });
|
|
100
|
+
K.value = e.map((r) => ({ label: `${r.name}(${r.account})`, value: r.id }));
|
|
89
101
|
} catch {
|
|
90
102
|
}
|
|
91
103
|
try {
|
|
92
|
-
|
|
104
|
+
S.value = await tr.list();
|
|
93
105
|
} catch {
|
|
94
106
|
} finally {
|
|
95
|
-
|
|
107
|
+
H.value = !1;
|
|
96
108
|
}
|
|
97
109
|
});
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
[p, () =>
|
|
101
|
-
([
|
|
102
|
-
|
|
103
|
-
const a = e == null ? void 0 : Number(e);
|
|
104
|
-
r.params.roleId !== a && (r.params.roleId = a, r.search());
|
|
110
|
+
const Y = Oe();
|
|
111
|
+
F(
|
|
112
|
+
[p, () => Y.query.roleId],
|
|
113
|
+
([e, r]) => {
|
|
114
|
+
e && Y.path === "/system/user" && lr(e, "roleId", r == null ? void 0 : Number(r));
|
|
105
115
|
},
|
|
106
116
|
{ immediate: !0 }
|
|
107
117
|
);
|
|
108
|
-
const
|
|
118
|
+
const Z = (e) => (e || "?").slice(0, 1), R = n(!1), C = n(!1), D = n(!1), ye = f(
|
|
119
|
+
() => [
|
|
120
|
+
y.hasPerm("POST:/api/v1/sys/user/import/preview") ? { label: t("import.button"), key: "import" } : null,
|
|
121
|
+
y.hasPerm("GET:/api/v1/sys/user/export") ? { label: t("export.button"), key: "export" } : null
|
|
122
|
+
].filter((e) => e !== null)
|
|
123
|
+
), ge = f(() => ({ ...ir, more: ye.value }));
|
|
124
|
+
function he(e) {
|
|
125
|
+
e === "import" ? R.value = !0 : e === "export" && (C.value = !0);
|
|
126
|
+
}
|
|
127
|
+
const we = [
|
|
109
128
|
{ key: "Account", title: t("userExport.account") },
|
|
110
129
|
{ key: "Name", title: t("userExport.name") },
|
|
111
130
|
{ key: "Nickname", title: t("userExport.nickname") },
|
|
@@ -118,60 +137,82 @@ const Ke = { class: "user-layout side-page" }, Le = { class: "side-filter" }, Ve
|
|
|
118
137
|
{ key: "Enabled", title: t("userExport.enabled") },
|
|
119
138
|
{ key: "IsSuperAdmin", title: t("userExport.superAdmin"), defaultSelected: !1 },
|
|
120
139
|
{ key: "CreateTime", title: t("userExport.createTime") }
|
|
121
|
-
],
|
|
122
|
-
downloadTemplate: () =>
|
|
123
|
-
preview: (
|
|
124
|
-
validate: (
|
|
125
|
-
commit: (
|
|
126
|
-
errorReport: (
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
140
|
+
], be = {
|
|
141
|
+
downloadTemplate: () => m.importTemplate(),
|
|
142
|
+
preview: (e, r) => m.importPreview(e, r),
|
|
143
|
+
validate: (e) => m.importValidate(e),
|
|
144
|
+
commit: (e, r) => m.importCommit(e, r),
|
|
145
|
+
errorReport: (e) => m.importErrorReport(e)
|
|
146
|
+
}, U = n(null);
|
|
147
|
+
function ke(e) {
|
|
148
|
+
const r = Array.isArray(e) ? e[0] : e;
|
|
149
|
+
U.value = r && r.order ? { field: String(r.columnKey), order: r.order === "ascend" ? "asc" : "desc" } : null;
|
|
150
|
+
}
|
|
151
|
+
async function xe(e) {
|
|
152
|
+
var u, o;
|
|
153
|
+
const r = nr(p.value);
|
|
154
|
+
D.value = !0;
|
|
132
155
|
try {
|
|
133
|
-
const
|
|
134
|
-
account:
|
|
135
|
-
name:
|
|
136
|
-
orgId:
|
|
137
|
-
roleId:
|
|
138
|
-
sortField:
|
|
139
|
-
sortOrder:
|
|
140
|
-
columns:
|
|
156
|
+
const s = await m.export({
|
|
157
|
+
account: r.account || void 0,
|
|
158
|
+
name: r.name || void 0,
|
|
159
|
+
orgId: G.value.orgId,
|
|
160
|
+
roleId: r.roleId != null ? Number(r.roleId) : void 0,
|
|
161
|
+
sortField: (u = U.value) == null ? void 0 : u.field,
|
|
162
|
+
sortOrder: (o = U.value) == null ? void 0 : o.order,
|
|
163
|
+
columns: e.join(",")
|
|
141
164
|
});
|
|
142
|
-
|
|
143
|
-
} catch (
|
|
144
|
-
|
|
165
|
+
mr(s, t("userExport.fileName")), C.value = !1, I.success(t("export.done"));
|
|
166
|
+
} catch (s) {
|
|
167
|
+
I.error(se(s));
|
|
145
168
|
} finally {
|
|
146
|
-
|
|
169
|
+
D.value = !1;
|
|
147
170
|
}
|
|
148
171
|
}
|
|
149
|
-
const
|
|
172
|
+
const k = () => d("span", { class: "faint" }, "—"), ee = (e) => () => d(v, { icon: e, size: 16 }), re = [
|
|
150
173
|
{ type: "index", title: () => t("common.rowNo"), width: 64, align: "center" },
|
|
151
174
|
// 超管行禁勾:批量删除同样不可含超管(后端也会整体拒绝)
|
|
152
|
-
{ type: "selection", disabled: (
|
|
175
|
+
{ type: "selection", disabled: (e) => e.isSuperAdmin },
|
|
153
176
|
{
|
|
154
177
|
key: "avatar",
|
|
155
178
|
title: () => t("user.avatar"),
|
|
156
179
|
width: 64,
|
|
157
180
|
align: "center",
|
|
158
181
|
hideInSetting: !1,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
182
|
+
card: !1,
|
|
183
|
+
// 窄档卡片的标题是姓名,头像不进卡片
|
|
184
|
+
render: (e) => d(
|
|
185
|
+
ze,
|
|
186
|
+
{ round: !0, size: "small", src: e.avatar || void 0 },
|
|
187
|
+
e.avatar ? { fallback: () => Z(e.name) } : { default: () => Z(e.name) }
|
|
163
188
|
)
|
|
164
189
|
},
|
|
165
|
-
{
|
|
166
|
-
|
|
167
|
-
|
|
190
|
+
{
|
|
191
|
+
key: "account",
|
|
192
|
+
title: () => t("user.account"),
|
|
193
|
+
search: { actions: L.fuzzy },
|
|
194
|
+
sorter: !0
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
key: "name",
|
|
198
|
+
title: () => t("user.name"),
|
|
199
|
+
card: "title",
|
|
200
|
+
search: { actions: L.fuzzy },
|
|
201
|
+
sorter: !0
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
key: "phone",
|
|
205
|
+
title: () => t("user.phone"),
|
|
206
|
+
sorter: !0,
|
|
207
|
+
render: (e) => e.phone ? d("span", { class: "num" }, e.phone) : k()
|
|
208
|
+
},
|
|
168
209
|
{
|
|
169
210
|
key: "gender",
|
|
170
211
|
title: () => t("user.gender"),
|
|
171
212
|
width: 80,
|
|
172
213
|
hideInTable: !0,
|
|
173
214
|
// 次要列:默认隐藏收窄整表,列设置抽屉可打开
|
|
174
|
-
render: (
|
|
215
|
+
render: (e) => e.gender ? d(We, { typeCode: "gender", value: e.gender }) : k()
|
|
175
216
|
},
|
|
176
217
|
// 只作搜索项,不进表格也不进列设置。options 直接吃编辑表单已拉好的 roleOptions(SmartTable 支持 Ref 选项源),不额外发请求;
|
|
177
218
|
// 列上有 options,搜索控件自动是 select。
|
|
@@ -180,27 +221,28 @@ const Ke = { class: "user-layout side-page" }, Le = { class: "side-filter" }, Ve
|
|
|
180
221
|
title: () => t("user.roles"),
|
|
181
222
|
hideInTable: !0,
|
|
182
223
|
options: z,
|
|
183
|
-
search: { props: { clearable: !0 } }
|
|
224
|
+
search: { actions: L.exact, props: { clearable: !0 } }
|
|
184
225
|
},
|
|
185
|
-
{ key: "orgName", title: () => t("user.org"), render: (
|
|
226
|
+
{ key: "orgName", title: () => t("user.org"), render: (e) => e.orgName || k() },
|
|
186
227
|
{
|
|
187
228
|
key: "positionName",
|
|
188
229
|
title: () => t("user.position"),
|
|
189
230
|
hideInTable: !0,
|
|
190
|
-
render: (
|
|
231
|
+
render: (e) => e.positionName || k()
|
|
191
232
|
},
|
|
192
233
|
{
|
|
193
234
|
key: "enabled",
|
|
194
235
|
title: () => t("user.status"),
|
|
195
236
|
width: 90,
|
|
196
|
-
|
|
197
|
-
|
|
237
|
+
sorter: !0,
|
|
238
|
+
render: (e) => d(Ge, {
|
|
239
|
+
value: e.enabled,
|
|
198
240
|
// 超管不可停用(防自锁 —— 停了就没法从 UI 恢复;后端也保护);无启停权限亦置灰。
|
|
199
|
-
disabled:
|
|
200
|
-
confirm: (
|
|
201
|
-
request: (
|
|
202
|
-
"onUpdate:value": (
|
|
203
|
-
|
|
241
|
+
disabled: e.isSuperAdmin || !y.hasPerm("PUT:/api/v1/sys/user/{id}/enabled"),
|
|
242
|
+
confirm: (r) => r ? null : t("user.disableConfirm", { name: e.name }),
|
|
243
|
+
request: (r) => m.setEnabled(e.id, r),
|
|
244
|
+
"onUpdate:value": (r) => {
|
|
245
|
+
e.enabled = r;
|
|
204
246
|
}
|
|
205
247
|
})
|
|
206
248
|
},
|
|
@@ -208,7 +250,7 @@ const Ke = { class: "user-layout side-page" }, Le = { class: "side-filter" }, Ve
|
|
|
208
250
|
key: "isSuperAdmin",
|
|
209
251
|
title: () => t("user.superAdmin"),
|
|
210
252
|
width: 90,
|
|
211
|
-
render: (
|
|
253
|
+
render: (e) => e.isSuperAdmin ? d(Me, { type: "warning", size: "small", bordered: !1 }, () => t("user.superAdmin")) : k()
|
|
212
254
|
},
|
|
213
255
|
{ key: "createTime", title: () => t("user.createTime"), format: "datetime", sorter: !0 },
|
|
214
256
|
// 操作:编辑/删除外露;重置密码、解绑验证器进「更多」(放操作列末尾)。
|
|
@@ -220,127 +262,142 @@ const Ke = { class: "user-layout side-page" }, Le = { class: "side-filter" }, Ve
|
|
|
220
262
|
fixed: "right",
|
|
221
263
|
// 钉右:横向滚动时操作列始终可见
|
|
222
264
|
hideInSetting: !0,
|
|
223
|
-
render: (
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
265
|
+
render: (e) => {
|
|
266
|
+
const u = [
|
|
267
|
+
y.hasPerm("PUT:/api/v1/sys/user/{id}/password") ? { key: "resetPassword", label: t("user.resetPassword"), icon: ee("ph:key") } : null,
|
|
268
|
+
e.totpEnabled && y.hasPerm("POST:/api/v1/sys/mfa/clear") ? {
|
|
269
|
+
key: "clearMfa",
|
|
270
|
+
label: t("user.clearMfa"),
|
|
271
|
+
icon: ee("ph:link-break"),
|
|
272
|
+
disabled: N.value
|
|
273
|
+
} : null
|
|
274
|
+
].filter((o) => o !== null);
|
|
275
|
+
return d(Re, { size: 4, wrap: !1, wrapItem: !1 }, () => [
|
|
276
|
+
y.hasPerm("PUT:/api/v1/sys/user/{id}") ? d(
|
|
277
|
+
w,
|
|
231
278
|
{
|
|
232
279
|
size: "small",
|
|
233
280
|
quaternary: !0,
|
|
234
281
|
type: "primary",
|
|
235
282
|
onClick: () => {
|
|
236
|
-
var
|
|
237
|
-
return (
|
|
283
|
+
var o;
|
|
284
|
+
return (o = O.value) == null ? void 0 : o.openEdit(e);
|
|
238
285
|
}
|
|
239
286
|
},
|
|
240
287
|
() => t("common.edit")
|
|
241
288
|
) : null,
|
|
242
|
-
|
|
243
|
-
|
|
289
|
+
e.isSuperAdmin || !y.hasPerm("DELETE:/api/v1/sys/user/{id}") ? null : d(
|
|
290
|
+
De,
|
|
244
291
|
{
|
|
245
|
-
onPositiveClick: () =>
|
|
246
|
-
var
|
|
247
|
-
|
|
292
|
+
onPositiveClick: () => ne(() => m.remove(e.id), t("user.deleted")).then((o) => {
|
|
293
|
+
var s;
|
|
294
|
+
o && ((s = p.value) == null || s.refresh());
|
|
248
295
|
})
|
|
249
296
|
},
|
|
250
297
|
{
|
|
251
298
|
trigger: () => d(
|
|
252
|
-
|
|
299
|
+
w,
|
|
253
300
|
{ size: "small", quaternary: !0, type: "error" },
|
|
254
301
|
() => t("common.delete")
|
|
255
302
|
),
|
|
256
|
-
default: () => t("user.deleteConfirm", { name:
|
|
303
|
+
default: () => t("user.deleteConfirm", { name: e.name })
|
|
257
304
|
}
|
|
258
305
|
),
|
|
259
|
-
|
|
260
|
-
|
|
306
|
+
u.length ? d(
|
|
307
|
+
Ue,
|
|
261
308
|
{
|
|
262
309
|
trigger: "click",
|
|
263
|
-
options:
|
|
264
|
-
onSelect: (
|
|
265
|
-
var
|
|
266
|
-
|
|
310
|
+
options: u,
|
|
311
|
+
onSelect: (o) => {
|
|
312
|
+
var s;
|
|
313
|
+
o === "resetPassword" ? (s = _.value) == null || s.openReset(e) : o === "clearMfa" && de(e);
|
|
267
314
|
}
|
|
268
315
|
},
|
|
269
316
|
() => d(
|
|
270
|
-
|
|
271
|
-
{
|
|
272
|
-
|
|
317
|
+
w,
|
|
318
|
+
{
|
|
319
|
+
size: "small",
|
|
320
|
+
quaternary: !0,
|
|
321
|
+
type: "primary",
|
|
322
|
+
iconPlacement: "right",
|
|
323
|
+
loading: N.value
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
default: () => t("common.more"),
|
|
327
|
+
icon: () => d(v, { icon: "ph:caret-down", size: 12 })
|
|
328
|
+
}
|
|
273
329
|
)
|
|
274
330
|
) : null
|
|
275
331
|
]);
|
|
276
332
|
}
|
|
277
333
|
}
|
|
278
334
|
];
|
|
279
|
-
return (
|
|
280
|
-
const
|
|
281
|
-
return
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
b.value.length ? (
|
|
287
|
-
trigger:
|
|
288
|
-
|
|
335
|
+
return sr(re), (e, r) => {
|
|
336
|
+
const u = Se("auth");
|
|
337
|
+
return x(), oe(Te, null, [
|
|
338
|
+
l(a(pe), null, {
|
|
339
|
+
default: i(() => [
|
|
340
|
+
h("div", fr, [
|
|
341
|
+
h("div", vr, [
|
|
342
|
+
b.value.length ? (x(), B(a(Fe), { key: 0 }, {
|
|
343
|
+
trigger: i(() => [
|
|
344
|
+
l(a(w), {
|
|
289
345
|
quaternary: "",
|
|
290
346
|
circle: "",
|
|
291
347
|
size: "small",
|
|
292
|
-
|
|
348
|
+
"aria-label": A.value ? a(t)("common.collapseAll") : a(t)("common.expandAll"),
|
|
349
|
+
onClick: ve
|
|
293
350
|
}, {
|
|
294
|
-
icon:
|
|
295
|
-
|
|
296
|
-
icon:
|
|
351
|
+
icon: i(() => [
|
|
352
|
+
l(v, {
|
|
353
|
+
icon: A.value ? "ph:arrows-in-line-vertical" : "ph:arrows-out-line-vertical",
|
|
297
354
|
size: 18
|
|
298
355
|
}, null, 8, ["icon"])
|
|
299
356
|
]),
|
|
300
357
|
_: 1
|
|
301
|
-
})
|
|
358
|
+
}, 8, ["aria-label"])
|
|
302
359
|
]),
|
|
303
|
-
default:
|
|
304
|
-
|
|
360
|
+
default: i(() => [
|
|
361
|
+
P(" " + E(A.value ? a(t)("common.collapseAll") : a(t)("common.expandAll")), 1)
|
|
305
362
|
]),
|
|
306
363
|
_: 1
|
|
307
|
-
})) :
|
|
364
|
+
})) : ae("", !0)
|
|
308
365
|
])
|
|
309
366
|
]),
|
|
310
|
-
|
|
311
|
-
value:
|
|
312
|
-
"onUpdate:value":
|
|
367
|
+
l(a(Be), {
|
|
368
|
+
value: M.value,
|
|
369
|
+
"onUpdate:value": r[0] || (r[0] = (o) => M.value = o),
|
|
313
370
|
size: "small",
|
|
314
371
|
clearable: "",
|
|
315
|
-
placeholder:
|
|
372
|
+
placeholder: a(t)("org.searchPlaceholder")
|
|
316
373
|
}, {
|
|
317
|
-
prefix:
|
|
318
|
-
|
|
374
|
+
prefix: i(() => [
|
|
375
|
+
l(v, {
|
|
319
376
|
icon: "ph:magnifying-glass",
|
|
320
377
|
size: 14
|
|
321
378
|
})
|
|
322
379
|
]),
|
|
323
380
|
_: 1
|
|
324
381
|
}, 8, ["value", "placeholder"]),
|
|
325
|
-
|
|
382
|
+
h("button", {
|
|
326
383
|
type: "button",
|
|
327
|
-
class:
|
|
328
|
-
onClick:
|
|
384
|
+
class: Ae(["side-row", { "is-active": c.value === null }]),
|
|
385
|
+
onClick: r[1] || (r[1] = (o) => Q(null))
|
|
329
386
|
}, [
|
|
330
|
-
|
|
387
|
+
l(v, {
|
|
331
388
|
class: "side-row__icon",
|
|
332
389
|
icon: "ph:squares-four",
|
|
333
390
|
size: 15
|
|
334
391
|
}),
|
|
335
|
-
|
|
392
|
+
h("span", yr, E(a(t)("user.allOrgs")), 1)
|
|
336
393
|
], 2),
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
show:
|
|
394
|
+
r[13] || (r[13] = h("div", { class: "side-filter__divider" }, null, -1)),
|
|
395
|
+
l(a(Le), {
|
|
396
|
+
show: H.value,
|
|
340
397
|
class: "fill-pass"
|
|
341
398
|
}, {
|
|
342
|
-
default:
|
|
343
|
-
|
|
399
|
+
default: i(() => [
|
|
400
|
+
l(a(qe), {
|
|
344
401
|
class: "side-tree",
|
|
345
402
|
"block-line": "",
|
|
346
403
|
selectable: "",
|
|
@@ -348,150 +405,180 @@ const Ke = { class: "user-layout side-page" }, Le = { class: "side-filter" }, Ve
|
|
|
348
405
|
"key-field": "id",
|
|
349
406
|
"label-field": "name",
|
|
350
407
|
"children-field": "children",
|
|
351
|
-
data:
|
|
352
|
-
pattern:
|
|
353
|
-
filter:
|
|
408
|
+
data: V.value,
|
|
409
|
+
pattern: M.value,
|
|
410
|
+
filter: fe,
|
|
354
411
|
"show-irrelevant-nodes": !1,
|
|
355
|
-
"selected-keys":
|
|
356
|
-
"expanded-keys":
|
|
357
|
-
"onUpdate:selectedKeys":
|
|
358
|
-
"onUpdate:expandedKeys":
|
|
412
|
+
"selected-keys": c.value == null ? [] : [c.value],
|
|
413
|
+
"expanded-keys": g.value,
|
|
414
|
+
"onUpdate:selectedKeys": me,
|
|
415
|
+
"onUpdate:expandedKeys": r[2] || (r[2] = (o) => g.value = o)
|
|
359
416
|
}, null, 8, ["data", "pattern", "selected-keys", "expanded-keys"])
|
|
360
417
|
]),
|
|
361
418
|
_: 1
|
|
362
419
|
}, 8, ["show"])
|
|
363
420
|
]),
|
|
364
|
-
|
|
365
|
-
|
|
421
|
+
_: 1
|
|
422
|
+
}),
|
|
423
|
+
h("div", {
|
|
424
|
+
ref_key: "layoutRef",
|
|
425
|
+
ref: W,
|
|
426
|
+
class: "user-layout side-page"
|
|
427
|
+
}, [
|
|
428
|
+
J.value ? ae("", !0) : (x(), oe("aside", gr, [
|
|
429
|
+
l(a(X))
|
|
430
|
+
])),
|
|
431
|
+
l(a(Ve), {
|
|
366
432
|
ref_key: "tableRef",
|
|
367
433
|
ref: p,
|
|
368
|
-
columns:
|
|
369
|
-
fetcher:
|
|
370
|
-
params:
|
|
371
|
-
|
|
372
|
-
|
|
434
|
+
columns: re,
|
|
435
|
+
fetcher: a(m).page,
|
|
436
|
+
params: G.value,
|
|
437
|
+
search: { container: "table" },
|
|
438
|
+
toolbar: ge.value,
|
|
439
|
+
"fill-height": "",
|
|
440
|
+
"min-row-height": a(ur),
|
|
441
|
+
"card-on-narrow": "",
|
|
373
442
|
"storage-key": "sys-user",
|
|
374
|
-
"checked-row-keys":
|
|
375
|
-
"onUpdate:
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
443
|
+
"checked-row-keys": a(q),
|
|
444
|
+
"onUpdate:sorter": ke,
|
|
445
|
+
"onUpdate:checkedRowKeys": r[5] || (r[5] = (o) => q.value = o),
|
|
446
|
+
onMoreSelect: he,
|
|
447
|
+
onError: r[6] || (r[6] = (o) => a(I).error(a(se)(o)))
|
|
448
|
+
}, Ce({
|
|
449
|
+
"pagination-prefix": i(({ itemCount: o }) => [
|
|
450
|
+
l(dr, { count: o }, null, 8, ["count"])
|
|
451
|
+
]),
|
|
452
|
+
"toolbar-right": i(() => [
|
|
453
|
+
le((x(), B(a(w), {
|
|
380
454
|
type: "primary",
|
|
381
|
-
onClick:
|
|
382
|
-
var
|
|
383
|
-
return (
|
|
455
|
+
onClick: r[4] || (r[4] = (o) => {
|
|
456
|
+
var s;
|
|
457
|
+
return (s = O.value) == null ? void 0 : s.openAdd();
|
|
384
458
|
})
|
|
385
459
|
}, {
|
|
386
|
-
icon:
|
|
387
|
-
|
|
460
|
+
icon: i(() => [
|
|
461
|
+
l(v, {
|
|
388
462
|
icon: "ph:plus",
|
|
389
463
|
size: 16
|
|
390
464
|
})
|
|
391
465
|
]),
|
|
392
|
-
default:
|
|
393
|
-
|
|
466
|
+
default: i(() => [
|
|
467
|
+
P(" " + E(a(t)("common.add")), 1)
|
|
394
468
|
]),
|
|
395
469
|
_: 1
|
|
396
470
|
})), [
|
|
397
|
-
[
|
|
398
|
-
])
|
|
399
|
-
|
|
471
|
+
[u, "POST:/api/v1/sys/user"]
|
|
472
|
+
])
|
|
473
|
+
]),
|
|
474
|
+
batch: i(() => [
|
|
475
|
+
le((x(), B(a(w), {
|
|
476
|
+
secondary: "",
|
|
400
477
|
type: "error",
|
|
401
|
-
|
|
402
|
-
onClick: l(J)
|
|
478
|
+
onClick: a(ue)
|
|
403
479
|
}, {
|
|
404
|
-
icon:
|
|
405
|
-
|
|
480
|
+
icon: i(() => [
|
|
481
|
+
l(v, {
|
|
406
482
|
icon: "ph:trash",
|
|
407
483
|
size: 16
|
|
408
484
|
})
|
|
409
485
|
]),
|
|
410
|
-
default:
|
|
411
|
-
|
|
412
|
-
]),
|
|
413
|
-
_: 1
|
|
414
|
-
}, 8, ["disabled", "onClick"])), [
|
|
415
|
-
[a, "POST:/api/v1/sys/user/batch-delete"]
|
|
416
|
-
]),
|
|
417
|
-
I((h(), x(l(f), {
|
|
418
|
-
onClick: e[4] || (e[4] = (o) => R.value = !0)
|
|
419
|
-
}, {
|
|
420
|
-
icon: n(() => [
|
|
421
|
-
s(y, {
|
|
422
|
-
icon: "ph:upload-simple",
|
|
423
|
-
size: 16
|
|
424
|
-
})
|
|
425
|
-
]),
|
|
426
|
-
default: n(() => [
|
|
427
|
-
E(" " + k(l(t)("import.button")), 1)
|
|
428
|
-
]),
|
|
429
|
-
_: 1
|
|
430
|
-
})), [
|
|
431
|
-
[a, "POST:/api/v1/sys/user/import/preview"]
|
|
432
|
-
]),
|
|
433
|
-
I((h(), x(l(f), {
|
|
434
|
-
onClick: e[5] || (e[5] = (o) => S.value = !0)
|
|
435
|
-
}, {
|
|
436
|
-
icon: n(() => [
|
|
437
|
-
s(y, {
|
|
438
|
-
icon: "ph:download-simple",
|
|
439
|
-
size: 16
|
|
440
|
-
})
|
|
441
|
-
]),
|
|
442
|
-
default: n(() => [
|
|
443
|
-
E(" " + k(l(t)("export.button")), 1)
|
|
486
|
+
default: i(() => [
|
|
487
|
+
P(" " + E(a(t)("common.batchDelete")), 1)
|
|
444
488
|
]),
|
|
445
489
|
_: 1
|
|
446
|
-
})), [
|
|
447
|
-
[
|
|
490
|
+
}, 8, ["onClick"])), [
|
|
491
|
+
[u, "POST:/api/v1/sys/user/batch-delete"]
|
|
448
492
|
])
|
|
449
493
|
]),
|
|
450
|
-
_:
|
|
451
|
-
},
|
|
452
|
-
|
|
453
|
-
|
|
494
|
+
_: 2
|
|
495
|
+
}, [
|
|
496
|
+
J.value ? {
|
|
497
|
+
name: "toolbar",
|
|
498
|
+
fn: i(() => [
|
|
499
|
+
l(a(w), {
|
|
500
|
+
secondary: "",
|
|
501
|
+
onClick: r[3] || (r[3] = (o) => T.value = !0)
|
|
502
|
+
}, {
|
|
503
|
+
icon: i(() => [
|
|
504
|
+
l(v, {
|
|
505
|
+
icon: "ph:tree-structure",
|
|
506
|
+
size: 16
|
|
507
|
+
})
|
|
508
|
+
]),
|
|
509
|
+
default: i(() => [
|
|
510
|
+
P(" " + E(ce.value), 1)
|
|
511
|
+
]),
|
|
512
|
+
_: 1
|
|
513
|
+
})
|
|
514
|
+
]),
|
|
515
|
+
key: "0"
|
|
516
|
+
} : void 0
|
|
517
|
+
]), 1032, ["fetcher", "params", "toolbar", "min-row-height", "checked-row-keys"])
|
|
518
|
+
], 512),
|
|
519
|
+
l(a($e), {
|
|
520
|
+
show: T.value,
|
|
521
|
+
"onUpdate:show": r[7] || (r[7] = (o) => T.value = o),
|
|
522
|
+
placement: "left",
|
|
523
|
+
width: "min(300px, 88vw)"
|
|
524
|
+
}, {
|
|
525
|
+
default: i(() => [
|
|
526
|
+
l(a(Ke), {
|
|
527
|
+
title: a(t)("user.orgFilter"),
|
|
528
|
+
closable: ""
|
|
529
|
+
}, {
|
|
530
|
+
default: i(() => [
|
|
531
|
+
h("div", hr, [
|
|
532
|
+
l(a(X))
|
|
533
|
+
])
|
|
534
|
+
]),
|
|
535
|
+
_: 1
|
|
536
|
+
}, 8, ["title"])
|
|
537
|
+
]),
|
|
538
|
+
_: 1
|
|
539
|
+
}, 8, ["show"]),
|
|
540
|
+
l(Qe, {
|
|
454
541
|
ref_key: "userFormRef",
|
|
455
|
-
ref:
|
|
456
|
-
"position-options":
|
|
542
|
+
ref: O,
|
|
543
|
+
"position-options": $.value,
|
|
457
544
|
"role-options": z.value,
|
|
458
|
-
"director-options":
|
|
459
|
-
onSaved:
|
|
545
|
+
"director-options": K.value,
|
|
546
|
+
onSaved: r[8] || (r[8] = () => {
|
|
460
547
|
var o;
|
|
461
548
|
return (o = p.value) == null ? void 0 : o.refresh();
|
|
462
549
|
}),
|
|
463
|
-
onPasswordGenerated:
|
|
464
|
-
var
|
|
465
|
-
return (
|
|
550
|
+
onPasswordGenerated: r[9] || (r[9] = (o) => {
|
|
551
|
+
var s;
|
|
552
|
+
return (s = _.value) == null ? void 0 : s.showResult(o, !0);
|
|
466
553
|
})
|
|
467
554
|
}, null, 8, ["position-options", "role-options", "director-options"]),
|
|
468
|
-
|
|
555
|
+
l(Xe, {
|
|
469
556
|
ref_key: "resetModalRef",
|
|
470
|
-
ref:
|
|
557
|
+
ref: _
|
|
471
558
|
}, null, 512),
|
|
472
|
-
|
|
559
|
+
l(je, {
|
|
473
560
|
show: R.value,
|
|
474
|
-
"onUpdate:show":
|
|
475
|
-
api:
|
|
476
|
-
"template-file-name":
|
|
477
|
-
"error-report-file-name":
|
|
478
|
-
onDone:
|
|
561
|
+
"onUpdate:show": r[10] || (r[10] = (o) => R.value = o),
|
|
562
|
+
api: be,
|
|
563
|
+
"template-file-name": a(t)("userExport.importTemplateName"),
|
|
564
|
+
"error-report-file-name": a(t)("userExport.errorReportName"),
|
|
565
|
+
onDone: r[11] || (r[11] = () => {
|
|
479
566
|
var o;
|
|
480
567
|
return (o = p.value) == null ? void 0 : o.refresh();
|
|
481
568
|
})
|
|
482
569
|
}, null, 8, ["show", "template-file-name", "error-report-file-name"]),
|
|
483
|
-
|
|
484
|
-
show:
|
|
485
|
-
"onUpdate:show":
|
|
486
|
-
columns:
|
|
487
|
-
loading:
|
|
488
|
-
onConfirm:
|
|
570
|
+
l(Je, {
|
|
571
|
+
show: C.value,
|
|
572
|
+
"onUpdate:show": r[12] || (r[12] = (o) => C.value = o),
|
|
573
|
+
columns: we,
|
|
574
|
+
loading: D.value,
|
|
575
|
+
onConfirm: xe
|
|
489
576
|
}, null, 8, ["show", "loading"])
|
|
490
577
|
], 64);
|
|
491
578
|
};
|
|
492
579
|
}
|
|
493
580
|
});
|
|
494
581
|
export {
|
|
495
|
-
|
|
582
|
+
Hr as default
|
|
496
583
|
};
|
|
497
584
|
//# sourceMappingURL=index2.vue.js.map
|