smart-admin-web 10.15.0 → 10.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/api/index.d.ts +4 -2
- package/dist/api/index.js +1 -1
- package/dist/api/index.js.map +1 -1
- package/dist/api/schema.d.ts +39 -5
- package/dist/assets/icons/ph-subset.json.js +5 -5
- package/dist/components/AppIcon.vue.js +9 -9
- package/dist/components/AppIcon.vue.js.map +1 -1
- package/dist/components/AppWatermark.vue.d.ts +14 -0
- package/dist/components/AppWatermark.vue.js +38 -0
- package/dist/components/AppWatermark.vue.js.map +1 -0
- package/dist/components/AppWatermark2.vue.js +5 -0
- package/dist/components/AppWatermark2.vue.js.map +1 -0
- package/dist/components/Chart/PieChart.vue.d.ts +1 -1
- package/dist/components/Chart/echarts.js +15 -20
- package/dist/components/Chart/echarts.js.map +1 -1
- package/dist/components/CronEditor/index.vue.js +1 -1
- package/dist/components/CronEditor/index2.vue.js +2 -1
- package/dist/components/CronEditor/index2.vue.js.map +1 -1
- package/dist/components/DetailPage/index.vue.js +2 -2
- package/dist/components/DetailPage/index2.vue.js.map +1 -1
- package/dist/components/DictTag/index.vue.js.map +1 -1
- package/dist/components/ErrorBoundary/index.vue.js +2 -2
- package/dist/components/ErrorBoundary/index2.vue.js +1 -1
- package/dist/components/ErrorBoundary/index2.vue.js.map +1 -1
- package/dist/components/FormContainer/index.vue.js +91 -56
- package/dist/components/FormContainer/index.vue.js.map +1 -1
- package/dist/components/ImportWizard/index.vue.js +1 -1
- package/dist/components/ImportWizard/index2.vue.js +44 -41
- package/dist/components/ImportWizard/index2.vue.js.map +1 -1
- package/dist/components/MenuSearch.vue.js +2 -2
- package/dist/components/MenuSearch2.vue.js +19 -18
- package/dist/components/MenuSearch2.vue.js.map +1 -1
- package/dist/components/PasswordStrength/index.vue.js +2 -2
- package/dist/components/PasswordStrength/index2.vue.js +20 -18
- package/dist/components/PasswordStrength/index2.vue.js.map +1 -1
- package/dist/components/TableTotal/index.vue.d.ts +6 -0
- package/dist/components/{SelectTable → TableTotal}/index.vue.js +1 -1
- package/dist/components/TableTotal/index2.vue.js +16 -0
- package/dist/components/TableTotal/index2.vue.js.map +1 -0
- package/dist/components/TableZoomButton/index.vue.js.map +1 -1
- package/dist/components/UserPicker/index.vue.js +2 -2
- package/dist/components/UserPicker/index2.vue.js +176 -117
- package/dist/components/UserPicker/index2.vue.js.map +1 -1
- package/dist/composables/useBatchDelete.js.map +1 -1
- package/dist/composables/useLayoutMenu.js +17 -16
- package/dist/composables/useLayoutMenu.js.map +1 -1
- package/dist/composables/useModule.js +39 -29
- package/dist/composables/useModule.js.map +1 -1
- package/dist/composables/useShellBreakpoint.d.ts +19 -0
- package/dist/composables/useShellBreakpoint.js +37 -0
- package/dist/composables/useShellBreakpoint.js.map +1 -0
- package/dist/composables/useSite.d.ts +15 -0
- package/dist/composables/useSite.js +16 -14
- package/dist/composables/useSite.js.map +1 -1
- package/dist/composables/useTabTitle.js.map +1 -1
- package/dist/composables/useTableTitle.d.ts +6 -0
- package/dist/composables/useTableTitle.js +11 -0
- package/dist/composables/useTableTitle.js.map +1 -0
- package/dist/composables/useTableZoom.d.ts +5 -0
- package/dist/composables/useTableZoom.js.map +1 -1
- package/dist/composables/useTheme.d.ts +2 -2
- package/dist/composables/useTheme.js +23 -20
- package/dist/composables/useTheme.js.map +1 -1
- package/dist/createSmartAdmin.d.ts +12 -2
- package/dist/createSmartAdmin.js +72 -60
- package/dist/createSmartAdmin.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +219 -205
- package/dist/index.js.map +1 -1
- package/dist/layouts/AccentPicker.vue.js +8 -0
- package/dist/layouts/AccentPicker.vue.js.map +1 -0
- package/dist/layouts/AccentPicker2.vue.js +131 -0
- package/dist/layouts/AccentPicker2.vue.js.map +1 -0
- package/dist/layouts/AppHeader.vue.d.ts +8 -1
- package/dist/layouts/AppHeader.vue.js +2 -2
- package/dist/layouts/AppHeader2.vue.js +317 -235
- package/dist/layouts/AppHeader2.vue.js.map +1 -1
- package/dist/layouts/NoticeBell.vue.js +2 -2
- package/dist/layouts/NoticeBell2.vue.js +1 -1
- package/dist/layouts/NoticeBell2.vue.js.map +1 -1
- package/dist/layouts/PersonalLayout.vue.js +2 -2
- package/dist/layouts/PersonalLayout2.vue.js +69 -47
- package/dist/layouts/PersonalLayout2.vue.js.map +1 -1
- package/dist/layouts/SettingsDrawer.vue.js +3 -3
- package/dist/layouts/SettingsDrawer2.vue.js +261 -325
- package/dist/layouts/SettingsDrawer2.vue.js.map +1 -1
- package/dist/layouts/TabsBar.vue.js +2 -2
- package/dist/layouts/TabsBar2.vue.js +97 -69
- package/dist/layouts/TabsBar2.vue.js.map +1 -1
- package/dist/layouts/components/SideNav.vue.d.ts +3 -0
- package/dist/layouts/components/SideNav.vue.js +1 -1
- package/dist/layouts/components/SideNav2.vue.js +54 -26
- package/dist/layouts/components/SideNav2.vue.js.map +1 -1
- package/dist/layouts/default.vue.js +1 -1
- package/dist/layouts/default2.vue.js +170 -140
- package/dist/layouts/default2.vue.js.map +1 -1
- package/dist/lib/loginHero.d.ts +2 -2
- package/dist/lib/loginHero.js.map +1 -1
- package/dist/lib/runtime.js +1 -1
- package/dist/lib/watermark.d.ts +110 -0
- package/dist/lib/watermark.js +151 -0
- package/dist/lib/watermark.js.map +1 -0
- package/dist/locales/en-US.d.ts +221 -15
- package/dist/locales/en-US.js +230 -21
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/kernelMenuTitles.d.ts +1 -0
- package/dist/locales/kernelMenuTitles.js +128 -0
- package/dist/locales/kernelMenuTitles.js.map +1 -0
- package/dist/locales/menuTitle.d.ts +3 -0
- package/dist/locales/menuTitle.js +14 -12
- package/dist/locales/menuTitle.js.map +1 -1
- package/dist/locales/zh-CN.d.ts +221 -15
- package/dist/locales/zh-CN.js +238 -28
- package/dist/locales/zh-CN.js.map +1 -1
- package/dist/router/index.js +41 -32
- package/dist/router/index.js.map +1 -1
- package/dist/router/namedPage.d.ts +4 -0
- package/dist/router/namedPage.js +7 -7
- package/dist/router/namedPage.js.map +1 -1
- package/dist/router/viewRegistry.js +8 -8
- package/dist/router/viewRegistry.js.map +1 -1
- package/dist/stores/app.d.ts +0 -12
- package/dist/stores/app.js +11 -12
- package/dist/stores/app.js.map +1 -1
- package/dist/stores/tabs.js.map +1 -1
- package/dist/stores/user.d.ts +10 -0
- package/dist/stores/user.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/accentTokens.d.ts +27 -0
- package/dist/theme/accentTokens.js +54 -0
- package/dist/theme/accentTokens.js.map +1 -0
- package/dist/theme/accents.d.ts +21 -1
- package/dist/theme/accents.js +11 -2
- package/dist/theme/accents.js.map +1 -1
- package/dist/theme/mix.d.ts +58 -7
- package/dist/theme/mix.js +115 -30
- package/dist/theme/mix.js.map +1 -1
- package/dist/theme/naive-theme.d.ts +5 -2
- package/dist/theme/naive-theme.js +405 -75
- package/dist/theme/naive-theme.js.map +1 -1
- package/dist/utils/jwt.d.ts +8 -0
- package/dist/utils/jwt.js +14 -0
- package/dist/utils/jwt.js.map +1 -0
- package/dist/utils/menuIcon.d.ts +2 -0
- package/dist/utils/menuIcon.js +8 -0
- package/dist/utils/menuIcon.js.map +1 -0
- package/dist/utils/oauthBrand.js.map +1 -1
- package/dist/utils/tableFilter.d.ts +88 -0
- package/dist/utils/tableFilter.js +116 -0
- package/dist/utils/tableFilter.js.map +1 -0
- package/dist/utils/tableToolbar.d.ts +18 -0
- package/dist/utils/tableToolbar.js +11 -0
- package/dist/utils/tableToolbar.js.map +1 -0
- package/dist/utils/treeFilter.d.ts +20 -0
- package/dist/utils/treeFilter.js +24 -0
- package/dist/utils/treeFilter.js.map +1 -0
- package/dist/views/dashboard/ShortcutPicker.vue.js +1 -1
- package/dist/views/dashboard/ShortcutPicker2.vue.js +73 -48
- package/dist/views/dashboard/ShortcutPicker2.vue.js.map +1 -1
- package/dist/views/dashboard/biz.vue.js +1 -1
- package/dist/views/dashboard/biz2.vue.js +310 -257
- package/dist/views/dashboard/biz2.vue.js.map +1 -1
- package/dist/views/dashboard/workbench.vue.js +2 -2
- package/dist/views/dashboard/workbench2.vue.js +141 -155
- package/dist/views/dashboard/workbench2.vue.js.map +1 -1
- package/dist/views/embed/iframe.vue.js +2 -2
- package/dist/views/embed/iframe2.vue.js +22 -15
- package/dist/views/embed/iframe2.vue.js.map +1 -1
- package/dist/views/error/404.vue.js +2 -2
- package/dist/views/error/4042.vue.js +33 -24
- package/dist/views/error/4042.vue.js.map +1 -1
- package/dist/views/error/BootError.vue.js +1 -1
- package/dist/views/error/BootError2.vue.js +59 -48
- package/dist/views/error/BootError2.vue.js.map +1 -1
- package/dist/views/error/MissingRoute.vue.js +2 -2
- package/dist/views/error/MissingRoute2.vue.js +34 -15
- package/dist/views/error/MissingRoute2.vue.js.map +1 -1
- package/dist/views/login/LoginForm.vue.d.ts +7 -1
- package/dist/views/login/LoginForm.vue.js +2 -2
- package/dist/views/login/LoginForm2.vue.js +580 -488
- package/dist/views/login/LoginForm2.vue.js.map +1 -1
- package/dist/views/login/components/LoginDesk.vue.d.ts +36 -0
- package/dist/views/login/components/LoginDesk.vue.js +9 -0
- package/dist/views/login/components/LoginDesk.vue.js.map +1 -0
- package/dist/views/login/components/LoginDesk2.vue.js +100 -0
- package/dist/views/login/components/LoginDesk2.vue.js.map +1 -0
- package/dist/views/login/components/LoginHeroPanel.vue.js +3 -3
- package/dist/views/login/components/LoginHeroPanel2.vue.js +34 -39
- package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -1
- package/dist/views/login/index.vue.js +1 -1
- package/dist/views/login/index2.vue.js +141 -71
- package/dist/views/login/index2.vue.js.map +1 -1
- package/dist/views/login/layout.d.ts +11 -0
- package/dist/views/login/layout.js +27 -0
- package/dist/views/login/layout.js.map +1 -0
- package/dist/views/mfa/index.vue.js +2 -2
- package/dist/views/mfa/index2.vue.js +367 -321
- package/dist/views/mfa/index2.vue.js.map +1 -1
- package/dist/views/module/index.vue.js +2 -2
- package/dist/views/module/index2.vue.js +132 -99
- package/dist/views/module/index2.vue.js.map +1 -1
- package/dist/views/oauth/callback.vue.js +2 -2
- package/dist/views/oauth/callback2.vue.js +65 -51
- package/dist/views/oauth/callback2.vue.js.map +1 -1
- package/dist/views/personal/bindings.vue.js +2 -2
- package/dist/views/personal/bindings2.vue.js +98 -94
- package/dist/views/personal/bindings2.vue.js.map +1 -1
- package/dist/views/personal/notice2.vue.js +103 -76
- package/dist/views/personal/notice2.vue.js.map +1 -1
- package/dist/views/personal/password2.vue.js +47 -40
- package/dist/views/personal/password2.vue.js.map +1 -1
- package/dist/views/personal/profile.vue.js +3 -3
- package/dist/views/personal/profile2.vue.js +24 -18
- package/dist/views/personal/profile2.vue.js.map +1 -1
- package/dist/views/personal/security.vue.js +2 -2
- package/dist/views/personal/security2.vue.js +65 -53
- package/dist/views/personal/security2.vue.js.map +1 -1
- package/dist/views/personal/sessions.vue.js +2 -2
- package/dist/views/personal/sessions2.vue.js +67 -62
- package/dist/views/personal/sessions2.vue.js.map +1 -1
- package/dist/views/system/ai-model/components/ProviderCard.vue.js +2 -2
- package/dist/views/system/ai-model/components/ProviderCard2.vue.js +142 -130
- package/dist/views/system/ai-model/components/ProviderCard2.vue.js.map +1 -1
- package/dist/views/system/ai-model/components/ProviderForm.vue.js +2 -2
- package/dist/views/system/ai-model/components/ProviderForm2.vue.js +71 -70
- package/dist/views/system/ai-model/components/ProviderForm2.vue.js.map +1 -1
- package/dist/views/system/ai-model/index.vue.js +2 -2
- package/dist/views/system/ai-model/index2.vue.js +99 -99
- package/dist/views/system/ai-model/index2.vue.js.map +1 -1
- package/dist/views/system/ai-model/presets.d.ts +1 -1
- package/dist/views/system/ai-model/presets.js +18 -18
- package/dist/views/system/ai-model/presets.js.map +1 -1
- package/dist/views/system/ai-usage/index.vue.js +2 -2
- package/dist/views/system/ai-usage/index2.vue.js +356 -258
- package/dist/views/system/ai-usage/index2.vue.js.map +1 -1
- package/dist/views/system/api-docs/index.vue.js +5 -2
- package/dist/views/system/api-docs/index.vue.js.map +1 -1
- package/dist/views/system/api-docs/index2.vue.js +92 -42
- package/dist/views/system/api-docs/index2.vue.js.map +1 -1
- package/dist/views/system/cache/index.vue.js +2 -2
- package/dist/views/system/cache/index2.vue.js +74 -80
- package/dist/views/system/cache/index2.vue.js.map +1 -1
- package/dist/views/system/config/components/AdminMock.vue.js +2 -2
- package/dist/views/system/config/components/AdminMock2.vue.js +60 -43
- package/dist/views/system/config/components/AdminMock2.vue.js.map +1 -1
- package/dist/views/system/config/components/AdvancedSection.vue.js +5 -2
- package/dist/views/system/config/components/AdvancedSection.vue.js.map +1 -1
- package/dist/views/system/config/components/AdvancedSection2.vue.js +98 -70
- package/dist/views/system/config/components/AdvancedSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/BrandSection.vue.js +2 -2
- package/dist/views/system/config/components/BrandSection2.vue.js +121 -119
- package/dist/views/system/config/components/BrandSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/CfgGroup.vue.js +3 -3
- package/dist/views/system/config/components/CfgGroup2.vue.js.map +1 -1
- package/dist/views/system/config/components/CfgRow.vue.js +1 -1
- package/dist/views/system/config/components/CfgRow2.vue.js +24 -23
- package/dist/views/system/config/components/CfgRow2.vue.js.map +1 -1
- package/dist/views/system/config/components/CfgSegment.vue.js +1 -1
- package/dist/views/system/config/components/CfgSegment2.vue.js +16 -15
- package/dist/views/system/config/components/CfgSegment2.vue.js.map +1 -1
- package/dist/views/system/config/components/ConfigFormModal.vue.js +2 -2
- package/dist/views/system/config/components/ConfigFormModal2.vue.js +35 -33
- package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -1
- package/dist/views/system/config/components/JobSection.vue.js +2 -2
- package/dist/views/system/config/components/JobSection2.vue.js +46 -44
- package/dist/views/system/config/components/JobSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/LoginMock.vue.js +3 -3
- package/dist/views/system/config/components/LoginMock2.vue.js +83 -72
- package/dist/views/system/config/components/LoginMock2.vue.js.map +1 -1
- package/dist/views/system/config/components/LogoCropper.vue.js +1 -1
- package/dist/views/system/config/components/LogoCropper2.vue.js.map +1 -1
- package/dist/views/system/config/components/LogoEditor.vue.js +2 -2
- package/dist/views/system/config/components/LogoEditor2.vue.js +11 -13
- package/dist/views/system/config/components/LogoEditor2.vue.js.map +1 -1
- package/dist/views/system/config/components/ProviderSheet.vue.js +3 -3
- package/dist/views/system/config/components/ProviderSheet2.vue.js.map +1 -1
- package/dist/views/system/config/components/SectionLayout.vue.d.ts +4 -2
- package/dist/views/system/config/components/SectionLayout.vue.js +2 -2
- package/dist/views/system/config/components/SectionLayout2.vue.js +51 -27
- package/dist/views/system/config/components/SectionLayout2.vue.js.map +1 -1
- package/dist/views/system/config/components/SecuritySection.vue.js +2 -2
- package/dist/views/system/config/components/SecuritySection2.vue.js +207 -206
- package/dist/views/system/config/components/SecuritySection2.vue.js.map +1 -1
- package/dist/views/system/config/components/SensitiveSection.vue.js +2 -2
- package/dist/views/system/config/components/SensitiveSection2.vue.js +107 -102
- package/dist/views/system/config/components/SensitiveSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/UploadSection.vue.js +2 -2
- package/dist/views/system/config/components/UploadSection2.vue.js +86 -77
- package/dist/views/system/config/components/UploadSection2.vue.js.map +1 -1
- package/dist/views/system/config/components/WatermarkSection.vue.js +8 -0
- package/dist/views/system/config/components/WatermarkSection.vue.js.map +1 -0
- package/dist/views/system/config/components/WatermarkSection2.vue.js +284 -0
- package/dist/views/system/config/components/WatermarkSection2.vue.js.map +1 -0
- package/dist/views/system/config/draft.d.ts +2 -2
- package/dist/views/system/config/draft.js.map +1 -1
- package/dist/views/system/config/groups.d.ts +4 -1
- package/dist/views/system/config/groups.js +54 -49
- package/dist/views/system/config/groups.js.map +1 -1
- package/dist/views/system/config/index.vue.js +3 -2
- package/dist/views/system/config/index.vue.js.map +1 -1
- package/dist/views/system/config/index2.vue.js +173 -148
- package/dist/views/system/config/index2.vue.js.map +1 -1
- package/dist/views/system/config/layoutMode.d.ts +23 -0
- package/dist/views/system/config/layoutMode.js +28 -0
- package/dist/views/system/config/layoutMode.js.map +1 -0
- package/dist/views/system/dict/index.vue.js +2 -2
- package/dist/views/system/dict/index2.vue.js +471 -366
- package/dist/views/system/dict/index2.vue.js.map +1 -1
- package/dist/views/system/file/index2.vue.js +91 -76
- package/dist/views/system/file/index2.vue.js.map +1 -1
- package/dist/views/system/job/index.vue.js +3 -3
- package/dist/views/system/job/index2.vue.js +897 -828
- package/dist/views/system/job/index2.vue.js.map +1 -1
- package/dist/views/system/job-log/components/AttemptTable.vue.d.ts +8 -0
- package/dist/views/system/job-log/components/AttemptTable.vue.js +5 -0
- package/dist/views/system/job-log/components/AttemptTable.vue.js.map +1 -0
- package/dist/views/system/job-log/components/AttemptTable2.vue.js +54 -0
- package/dist/views/system/job-log/components/AttemptTable2.vue.js.map +1 -0
- package/dist/views/system/job-log/index.vue.js +2 -2
- package/dist/views/system/job-log/index2.vue.js +193 -207
- package/dist/views/system/job-log/index2.vue.js.map +1 -1
- package/dist/views/system/job-log/runStatus.d.ts +13 -0
- package/dist/views/system/job-log/runStatus.js +26 -0
- package/dist/views/system/job-log/runStatus.js.map +1 -0
- package/dist/views/system/job-monitor/index.vue.js +2 -2
- package/dist/views/system/job-monitor/index2.vue.js +172 -180
- package/dist/views/system/job-monitor/index2.vue.js.map +1 -1
- package/dist/views/system/log/exception/index.vue.js +2 -2
- package/dist/views/system/log/exception/index2.vue.js +135 -96
- package/dist/views/system/log/exception/index2.vue.js.map +1 -1
- package/dist/views/system/log/login/index2.vue.js +62 -41
- package/dist/views/system/log/login/index2.vue.js.map +1 -1
- package/dist/views/system/log/op/index.vue.js +2 -2
- package/dist/views/system/log/op/index2.vue.js +200 -162
- package/dist/views/system/log/op/index2.vue.js.map +1 -1
- package/dist/views/system/menu/components/ButtonManager.vue.js +2 -2
- package/dist/views/system/menu/components/ButtonManager2.vue.js +206 -190
- package/dist/views/system/menu/components/ButtonManager2.vue.js.map +1 -1
- package/dist/views/system/menu/components/MenuFormModal.vue.js +2 -2
- package/dist/views/system/menu/components/MenuFormModal2.vue.js +127 -118
- package/dist/views/system/menu/components/MenuFormModal2.vue.js.map +1 -1
- package/dist/views/system/menu/index.vue.js +1 -1
- package/dist/views/system/menu/index2.vue.js +216 -183
- package/dist/views/system/menu/index2.vue.js.map +1 -1
- package/dist/views/system/module/index.vue.js +1 -1
- package/dist/views/system/module/index2.vue.js +177 -144
- package/dist/views/system/module/index2.vue.js.map +1 -1
- package/dist/views/system/monitor/index.vue.js +2 -2
- package/dist/views/system/monitor/index2.vue.js +134 -149
- package/dist/views/system/monitor/index2.vue.js.map +1 -1
- package/dist/views/system/notice/index.vue.js +1 -1
- package/dist/views/system/notice/index2.vue.js +209 -181
- package/dist/views/system/notice/index2.vue.js.map +1 -1
- package/dist/views/system/org/index.vue.js +1 -1
- package/dist/views/system/org/index2.vue.js +278 -248
- package/dist/views/system/org/index2.vue.js.map +1 -1
- package/dist/views/system/position/index.vue.js +5 -2
- package/dist/views/system/position/index.vue.js.map +1 -1
- package/dist/views/system/position/index2.vue.js +128 -92
- package/dist/views/system/position/index2.vue.js.map +1 -1
- package/dist/views/system/recycle/index.vue.js +2 -2
- package/dist/views/system/recycle/index2.vue.js +90 -67
- package/dist/views/system/recycle/index2.vue.js.map +1 -1
- package/dist/views/system/role/components/GrantMenuSheet.vue.d.ts +20 -0
- package/dist/views/system/role/components/GrantMenuSheet.vue.js +8 -0
- package/dist/views/system/role/components/GrantMenuSheet.vue.js.map +1 -0
- package/dist/views/system/role/components/GrantMenuSheet2.vue.js +117 -0
- package/dist/views/system/role/components/GrantMenuSheet2.vue.js.map +1 -0
- package/dist/views/system/role/components/GrantMenuTable.vue.d.ts +6 -4
- package/dist/views/system/role/components/GrantMenuTable.vue.js +2 -2
- package/dist/views/system/role/components/GrantMenuTable2.vue.js +279 -177
- package/dist/views/system/role/components/GrantMenuTable2.vue.js.map +1 -1
- package/dist/views/system/role/components/MatchText.vue.d.ts +7 -0
- package/dist/views/system/role/components/MatchText.vue.js +8 -0
- package/dist/views/system/role/components/MatchText.vue.js.map +1 -0
- package/dist/views/system/role/components/MatchText2.vue.js +29 -0
- package/dist/views/system/role/components/MatchText2.vue.js.map +1 -0
- package/dist/views/system/role/components/grantMenuGroups.d.ts +36 -0
- package/dist/views/system/role/components/grantMenuGroups.js +110 -48
- package/dist/views/system/role/components/grantMenuGroups.js.map +1 -1
- package/dist/views/system/role/index.vue.js +5 -2
- package/dist/views/system/role/index.vue.js.map +1 -1
- package/dist/views/system/role/index2.vue.js +181 -165
- package/dist/views/system/role/index2.vue.js.map +1 -1
- package/dist/views/system/session/index2.vue.js +75 -49
- package/dist/views/system/session/index2.vue.js.map +1 -1
- package/dist/views/system/user/components/ResetPasswordModal.vue.js +2 -2
- package/dist/views/system/user/components/ResetPasswordModal2.vue.js +2 -0
- package/dist/views/system/user/components/ResetPasswordModal2.vue.js.map +1 -1
- package/dist/views/system/user/components/UserFormModal.vue.js +2 -2
- package/dist/views/system/user/components/UserFormModal2.vue.js +77 -76
- package/dist/views/system/user/components/UserFormModal2.vue.js.map +1 -1
- package/dist/views/system/user/index.vue.js +2 -2
- package/dist/views/system/user/index2.vue.js +362 -275
- package/dist/views/system/user/index2.vue.js.map +1 -1
- package/package.json +3 -5
- package/dist/components/SelectTable/index.vue.d.ts +0 -76
- package/dist/components/SelectTable/index2.vue.js +0 -256
- package/dist/components/SelectTable/index2.vue.js.map +0 -1
- package/dist/composables/useTableRowSort.d.ts +0 -20
- package/dist/composables/useTableRowSort.js +0 -59
- package/dist/composables/useTableRowSort.js.map +0 -1
- package/dist/layouts/LayoutModeCards.vue.js +0 -8
- package/dist/layouts/LayoutModeCards.vue.js.map +0 -1
- package/dist/layouts/LayoutModeCards2.vue.js +0 -67
- package/dist/layouts/LayoutModeCards2.vue.js.map +0 -1
- package/dist/layouts/SettingRow.vue.d.ts +0 -16
- package/dist/layouts/SettingRow.vue.js +0 -8
- package/dist/layouts/SettingRow.vue.js.map +0 -1
- package/dist/layouts/SettingRow2.vue.js +0 -23
- package/dist/layouts/SettingRow2.vue.js.map +0 -1
- package/dist/views/login/skins/AuroraGlass.vue.js +0 -8
- package/dist/views/login/skins/AuroraGlass.vue.js.map +0 -1
- package/dist/views/login/skins/AuroraGlass2.vue.js +0 -80
- package/dist/views/login/skins/AuroraGlass2.vue.js.map +0 -1
- package/dist/views/login/skins/SplitPanel.vue.d.ts +0 -3
- package/dist/views/login/skins/SplitPanel.vue.js +0 -8
- package/dist/views/login/skins/SplitPanel.vue.js.map +0 -1
- package/dist/views/login/skins/SplitPanel2.vue.js +0 -65
- package/dist/views/login/skins/SplitPanel2.vue.js.map +0 -1
- package/dist/views/login/skins/Spotlight.vue.d.ts +0 -3
- package/dist/views/login/skins/Spotlight.vue.js +0 -8
- package/dist/views/login/skins/Spotlight.vue.js.map +0 -1
- package/dist/views/login/skins/Spotlight2.vue.js +0 -36
- package/dist/views/login/skins/Spotlight2.vue.js.map +0 -1
- package/dist/views/login/skins.d.ts +0 -8
- package/dist/views/login/skins.js +0 -13
- package/dist/views/login/skins.js.map +0 -1
- /package/dist/components/{SelectTable → TableTotal}/index.vue.js.map +0 -0
- /package/dist/layouts/{LayoutModeCards.vue.d.ts → AccentPicker.vue.d.ts} +0 -0
- /package/dist/views/{login/skins/AuroraGlass.vue.d.ts → system/config/components/WatermarkSection.vue.d.ts} +0 -0
|
@@ -1,332 +1,352 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useMessage as
|
|
3
|
-
import { SmartTable as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { defineComponent as se, ref as s, shallowRef as H, computed as de, reactive as ce, h as d, resolveDirective as ue, openBlock as F, createElementBlock as me, createVNode as a, unref as o, withCtx as r, createTextVNode as x, toDisplayString as m, withDirectives as pe, createBlock as fe, createSlots as ve, createElementVNode as j } from "vue";
|
|
2
|
+
import { useMessage as ye, NSpace as M, NButton as p, NDropdown as ge, NForm as V, NFormItem as u, NInput as E, NInputNumber as he, NSwitch as be, NModal as we } from "naive-ui";
|
|
3
|
+
import { SmartTable as ke } from "smart-naive-table";
|
|
4
|
+
import { useI18n as _e } from "vue-i18n";
|
|
5
|
+
import I from "../../../components/AppIcon.vue.js";
|
|
6
|
+
import xe from "../../../components/DictSelect/index.vue.js";
|
|
7
|
+
import Ie from "../../../components/DictTag/index.vue.js";
|
|
8
|
+
import Ce from "../../../components/FormContainer/index.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useConfirm as
|
|
13
|
-
import { orgApi as
|
|
14
|
-
import { useAuthStore as
|
|
15
|
-
import { translateError as
|
|
16
|
-
import {
|
|
17
|
-
|
|
10
|
+
import Ne from "../../../components/OrgTreeSelect/index.vue.js";
|
|
11
|
+
import Te from "../../../components/StatusSwitch/index.vue.js";
|
|
12
|
+
import { useConfirm as Se } from "../../../composables/useConfirm.js";
|
|
13
|
+
import { orgApi as f } from "../../../api/index.js";
|
|
14
|
+
import { useAuthStore as Ee } from "../../../stores/auth.js";
|
|
15
|
+
import { translateError as K } from "../../../utils/error.js";
|
|
16
|
+
import { SEARCH_ACTIONS as W, deriveHeaderFilters as Pe } from "../../../utils/tableFilter.js";
|
|
17
|
+
import { TABLE_MIN_ROW_HEIGHT as Ae, TABLE_TOOLBAR as Ue } from "../../../utils/tableToolbar.js";
|
|
18
|
+
import { expandableIds as G, buildTree as Oe } from "../../../utils/tree.js";
|
|
19
|
+
import { filterTreeByParams as ze } from "../../../utils/treeFilter.js";
|
|
20
|
+
const Re = { class: "view fill-page" }, Be = { class: "form-hint" }, De = { class: "copy-tip" }, no = /* @__PURE__ */ se({
|
|
18
21
|
__name: "index",
|
|
19
|
-
setup(
|
|
20
|
-
const { t:
|
|
21
|
-
async function
|
|
22
|
-
|
|
22
|
+
setup(Le) {
|
|
23
|
+
const { t: l } = _e(), C = ye(), { run: J, confirm: Q } = Se(), v = Ee(), N = s(!1), P = H([]);
|
|
24
|
+
async function X() {
|
|
25
|
+
N.value = !0;
|
|
23
26
|
try {
|
|
24
|
-
P.value =
|
|
25
|
-
} catch (
|
|
26
|
-
|
|
27
|
+
P.value = Oe(await f.list());
|
|
28
|
+
} catch (e) {
|
|
29
|
+
C.error(K(e));
|
|
27
30
|
} finally {
|
|
28
|
-
|
|
31
|
+
N.value = !1;
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
const A = s(), h = () => {
|
|
35
|
+
var e;
|
|
36
|
+
return (e = A.value) == null ? void 0 : e.refresh();
|
|
37
|
+
}, Y = {
|
|
38
|
+
name: (e) => e.name,
|
|
39
|
+
code: (e) => e.code
|
|
40
|
+
}, Z = async (e) => {
|
|
41
|
+
await X();
|
|
42
|
+
const t = ze(P.value, e, Y);
|
|
43
|
+
return { items: t, total: t.length };
|
|
44
|
+
}, y = s([]), U = H([]);
|
|
45
|
+
function ee(e) {
|
|
46
|
+
U.value = e, y.value = G(e);
|
|
47
|
+
}
|
|
48
|
+
const T = de(() => y.value.length > 0), oe = () => y.value = T.value ? [] : G(U.value), b = s(!1), O = s(null), c = s(null), le = {
|
|
41
49
|
name: {
|
|
42
50
|
required: !0,
|
|
43
51
|
whitespace: !0,
|
|
44
|
-
message: () =>
|
|
52
|
+
message: () => l("org.nameRequired"),
|
|
45
53
|
trigger: ["input", "blur"]
|
|
46
54
|
}
|
|
47
|
-
},
|
|
55
|
+
}, z = () => ({
|
|
48
56
|
parentId: 0,
|
|
49
57
|
name: "",
|
|
50
58
|
code: "",
|
|
51
59
|
category: null,
|
|
52
60
|
sort: 0,
|
|
53
61
|
enabled: !0
|
|
54
|
-
}), i =
|
|
55
|
-
parentId:
|
|
56
|
-
name:
|
|
57
|
-
code:
|
|
58
|
-
category:
|
|
59
|
-
sort:
|
|
60
|
-
enabled:
|
|
62
|
+
}), i = ce(z()), R = (e) => ({
|
|
63
|
+
parentId: e.parentId,
|
|
64
|
+
name: e.name,
|
|
65
|
+
code: e.code,
|
|
66
|
+
category: e.category ?? null,
|
|
67
|
+
sort: e.sort,
|
|
68
|
+
enabled: e.enabled
|
|
61
69
|
});
|
|
62
|
-
function
|
|
63
|
-
|
|
70
|
+
function B(e = 0) {
|
|
71
|
+
c.value = null, Object.assign(i, z(), { parentId: e }), b.value = !0;
|
|
64
72
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
73
|
+
function te(e) {
|
|
74
|
+
c.value = e.id, Object.assign(i, R(e)), b.value = !0;
|
|
67
75
|
}
|
|
68
|
-
async function
|
|
69
|
-
var
|
|
70
|
-
await ((
|
|
76
|
+
async function ae() {
|
|
77
|
+
var e;
|
|
78
|
+
await ((e = O.value) == null ? void 0 : e.validate());
|
|
71
79
|
try {
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
} catch (
|
|
75
|
-
return
|
|
80
|
+
const t = { ...i, parentId: i.parentId ?? 0 };
|
|
81
|
+
c.value === null ? await f.add(t) : await f.update(c.value, t), C.success(l("org.saved")), await h();
|
|
82
|
+
} catch (t) {
|
|
83
|
+
return C.error(K(t)), !1;
|
|
76
84
|
}
|
|
77
85
|
}
|
|
78
|
-
const
|
|
79
|
-
function
|
|
80
|
-
|
|
86
|
+
const g = s(!1), D = s(0), L = s(""), w = s("");
|
|
87
|
+
function ne(e) {
|
|
88
|
+
D.value = e.id, L.value = e.name, w.value = e.name + l("common.copySuffix"), g.value = !0;
|
|
81
89
|
}
|
|
82
|
-
async function
|
|
83
|
-
await
|
|
90
|
+
async function re() {
|
|
91
|
+
await J(() => f.copy(D.value, { name: w.value }), l("org.copied")) && (g.value = !1, h());
|
|
84
92
|
}
|
|
85
|
-
const
|
|
86
|
-
content:
|
|
93
|
+
const ie = (e) => Q({
|
|
94
|
+
content: l("org.deleteConfirm", { name: e.name }),
|
|
87
95
|
type: "error",
|
|
88
|
-
action: () =>
|
|
89
|
-
successMsg:
|
|
90
|
-
}).then((
|
|
91
|
-
|
|
92
|
-
}),
|
|
93
|
-
|
|
96
|
+
action: () => f.remove(e.id),
|
|
97
|
+
successMsg: l("org.deleted")
|
|
98
|
+
}).then((t) => {
|
|
99
|
+
t && h();
|
|
100
|
+
}), S = (e) => () => d(I, { icon: e, size: 16 }), $ = [
|
|
101
|
+
// 序号与树列同固定左侧:固定列必须在最左连续,否则横向滚动时树列会压在序号列上。
|
|
102
|
+
{ type: "index", title: () => l("common.rowNo"), width: 64, align: "center", fixed: "left" },
|
|
94
103
|
// 树列左对齐,展开缩进才好读;fixed 是为了横向滚动时不丢失「这是哪一行」。
|
|
95
104
|
{
|
|
96
|
-
title: () =>
|
|
105
|
+
title: () => l("org.name"),
|
|
97
106
|
key: "name",
|
|
98
107
|
align: "left",
|
|
99
|
-
minWidth:
|
|
108
|
+
minWidth: 260,
|
|
100
109
|
fixed: "left",
|
|
101
|
-
ellipsis: { tooltip: !0 }
|
|
110
|
+
ellipsis: { tooltip: !0 },
|
|
111
|
+
search: { actions: W.fuzzy }
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
title: () => l("org.code"),
|
|
115
|
+
key: "code",
|
|
116
|
+
ellipsis: { tooltip: !0 },
|
|
117
|
+
render: (e) => d("span", { class: "mono muted" }, e.code),
|
|
118
|
+
search: { actions: W.fuzzy }
|
|
102
119
|
},
|
|
103
|
-
{ title: () => a("org.code"), key: "code", ellipsis: { tooltip: !0 } },
|
|
104
120
|
{
|
|
105
|
-
title: () =>
|
|
121
|
+
title: () => l("org.category"),
|
|
106
122
|
key: "category",
|
|
107
123
|
width: 100,
|
|
108
|
-
render: (
|
|
124
|
+
render: (e) => d(Ie, { typeCode: "org_category", value: e.category })
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
title: () => l("org.sort"),
|
|
128
|
+
key: "sort",
|
|
129
|
+
width: 80,
|
|
130
|
+
render: (e) => d("span", { class: "num muted" }, e.sort)
|
|
109
131
|
},
|
|
110
|
-
{ title: () => a("org.sort"), key: "sort", width: 80 },
|
|
111
132
|
{
|
|
112
|
-
title: () =>
|
|
133
|
+
title: () => l("common.status"),
|
|
113
134
|
key: "enabled",
|
|
114
135
|
width: 90,
|
|
115
|
-
render: (
|
|
116
|
-
value:
|
|
117
|
-
disabled: !
|
|
118
|
-
request: (
|
|
136
|
+
render: (e) => d(Te, {
|
|
137
|
+
value: e.enabled,
|
|
138
|
+
disabled: !v.hasPerm("PUT:/api/v1/sys/org/{id}"),
|
|
139
|
+
request: (t) => f.update(e.id, { ...R(e), enabled: t }),
|
|
119
140
|
// 重拉而非往行对象上写:搜索态下的祖先行是 filterTree 的浅拷贝,写它不会回到源树(开关会弹回去)。
|
|
120
141
|
// StatusSwitch 是悲观更新(请求成功才 emit),所以这里重拉一次就是最终态,和本页其余变更的做法一致。
|
|
121
|
-
"onUpdate:value": () =>
|
|
142
|
+
"onUpdate:value": () => h()
|
|
122
143
|
})
|
|
123
144
|
},
|
|
124
145
|
// 操作收敛成「编辑 + 更多▾」:4 个操作塞 260px 会换行、行高参差,且没 fixed 时横向滚动够不着。
|
|
125
146
|
{
|
|
126
|
-
title: () =>
|
|
147
|
+
title: () => l("common.operation"),
|
|
127
148
|
key: "op",
|
|
128
149
|
width: 150,
|
|
129
150
|
fixed: "right",
|
|
130
|
-
render: (
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
151
|
+
render: (e) => {
|
|
152
|
+
const t = v.hasPerm("POST:/api/v1/sys/org/add"), k = v.hasPerm("POST:/api/v1/sys/org/{id}/copy"), n = v.hasPerm("DELETE:/api/v1/sys/org/{id}"), q = [
|
|
153
|
+
t ? { key: "addChild", label: l("org.addChild"), icon: S("ph:plus") } : null,
|
|
154
|
+
k ? { key: "copy", label: l("org.copy"), icon: S("ph:copy") } : null,
|
|
155
|
+
(t || k) && n ? { type: "divider", key: "divider" } : null,
|
|
156
|
+
n ? {
|
|
157
|
+
key: "delete",
|
|
158
|
+
label: l("common.delete"),
|
|
159
|
+
icon: S("ph:trash"),
|
|
160
|
+
props: { style: "color: var(--err)" }
|
|
161
|
+
} : null
|
|
162
|
+
].filter(
|
|
163
|
+
(_) => _ !== null
|
|
164
|
+
);
|
|
165
|
+
return d(M, { size: 2, wrapItem: !1, justify: "center" }, () => [
|
|
166
|
+
v.hasPerm("PUT:/api/v1/sys/org/{id}") ? d(
|
|
167
|
+
p,
|
|
168
|
+
{ size: "small", quaternary: !0, type: "primary", onClick: () => te(e) },
|
|
169
|
+
() => l("common.edit")
|
|
141
170
|
) : null,
|
|
142
|
-
|
|
143
|
-
|
|
171
|
+
q.length ? d(
|
|
172
|
+
ge,
|
|
144
173
|
{
|
|
145
174
|
trigger: "click",
|
|
146
|
-
options:
|
|
147
|
-
onSelect: (
|
|
148
|
-
|
|
175
|
+
options: q,
|
|
176
|
+
onSelect: (_) => {
|
|
177
|
+
_ === "addChild" ? B(e.id) : _ === "copy" ? ne(e) : ie(e);
|
|
149
178
|
}
|
|
150
179
|
},
|
|
151
|
-
() =>
|
|
180
|
+
() => d(
|
|
181
|
+
p,
|
|
182
|
+
{ size: "small", quaternary: !0, type: "primary", iconPlacement: "right" },
|
|
183
|
+
{
|
|
184
|
+
default: () => l("common.more"),
|
|
185
|
+
icon: () => d(I, { icon: "ph:caret-down", size: 12 })
|
|
186
|
+
}
|
|
187
|
+
)
|
|
152
188
|
) : null
|
|
153
189
|
]);
|
|
154
190
|
}
|
|
155
191
|
}
|
|
156
192
|
];
|
|
157
|
-
return (
|
|
158
|
-
const
|
|
159
|
-
return
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
193
|
+
return Pe($), (e, t) => {
|
|
194
|
+
const k = ue("auth");
|
|
195
|
+
return F(), me("div", Re, [
|
|
196
|
+
a(o(ke), {
|
|
197
|
+
ref_key: "tableRef",
|
|
198
|
+
ref: A,
|
|
199
|
+
columns: $,
|
|
200
|
+
fetcher: Z,
|
|
201
|
+
loading: N.value,
|
|
165
202
|
"row-key": "id",
|
|
166
203
|
pagination: !1,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
"
|
|
204
|
+
search: { container: "table" },
|
|
205
|
+
toolbar: o(Ue),
|
|
206
|
+
"fill-height": "",
|
|
207
|
+
"min-row-height": o(Ae),
|
|
208
|
+
"card-on-narrow": "",
|
|
170
209
|
"storage-key": "sys-org",
|
|
171
|
-
"expanded-row-keys":
|
|
172
|
-
"onUpdate:expandedRowKeys":
|
|
210
|
+
"expanded-row-keys": y.value,
|
|
211
|
+
"onUpdate:expandedRowKeys": t[1] || (t[1] = (n) => y.value = n),
|
|
212
|
+
onLoaded: ee
|
|
173
213
|
}, {
|
|
174
|
-
toolbar:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
clearable: "",
|
|
179
|
-
placeholder: e(a)("org.searchPlaceholder"),
|
|
180
|
-
style: { width: "220px" }
|
|
181
|
-
}, {
|
|
182
|
-
prefix: n(() => [
|
|
183
|
-
t(N, {
|
|
184
|
-
icon: "ph:magnifying-glass",
|
|
185
|
-
size: 16
|
|
186
|
-
})
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
}, 8, ["value", "placeholder"]),
|
|
190
|
-
t(e(u), {
|
|
191
|
-
quaternary: "",
|
|
192
|
-
loading: h.value,
|
|
193
|
-
onClick: c
|
|
194
|
-
}, {
|
|
195
|
-
icon: n(() => [
|
|
196
|
-
t(N, {
|
|
197
|
-
icon: "ph:arrow-clockwise",
|
|
198
|
-
size: 16
|
|
199
|
-
})
|
|
200
|
-
]),
|
|
201
|
-
_: 1
|
|
202
|
-
}, 8, ["loading"]),
|
|
203
|
-
t(e(u), {
|
|
204
|
-
quaternary: "",
|
|
205
|
-
onClick: F
|
|
214
|
+
"toolbar-right": r(() => [
|
|
215
|
+
a(o(p), {
|
|
216
|
+
secondary: "",
|
|
217
|
+
onClick: oe
|
|
206
218
|
}, {
|
|
207
|
-
icon:
|
|
208
|
-
|
|
209
|
-
icon:
|
|
219
|
+
icon: r(() => [
|
|
220
|
+
a(I, {
|
|
221
|
+
icon: T.value ? "ph:arrows-in-line-vertical" : "ph:arrows-out-line-vertical",
|
|
210
222
|
size: 16
|
|
211
223
|
}, null, 8, ["icon"])
|
|
212
224
|
]),
|
|
213
|
-
default:
|
|
214
|
-
|
|
225
|
+
default: r(() => [
|
|
226
|
+
x(" " + m(T.value ? o(l)("common.collapseAll") : o(l)("common.expandAll")), 1)
|
|
215
227
|
]),
|
|
216
228
|
_: 1
|
|
217
229
|
}),
|
|
218
|
-
|
|
230
|
+
pe((F(), fe(o(p), {
|
|
219
231
|
type: "primary",
|
|
220
|
-
onClick:
|
|
232
|
+
onClick: t[0] || (t[0] = (n) => B(0))
|
|
221
233
|
}, {
|
|
222
|
-
icon:
|
|
223
|
-
|
|
234
|
+
icon: r(() => [
|
|
235
|
+
a(I, {
|
|
224
236
|
icon: "ph:plus",
|
|
225
237
|
size: 16
|
|
226
238
|
})
|
|
227
239
|
]),
|
|
228
|
-
default:
|
|
229
|
-
|
|
240
|
+
default: r(() => [
|
|
241
|
+
x(" " + m(o(l)("common.add")), 1)
|
|
230
242
|
]),
|
|
231
243
|
_: 1
|
|
232
244
|
})), [
|
|
233
|
-
[
|
|
245
|
+
[k, "POST:/api/v1/sys/org/add"]
|
|
234
246
|
])
|
|
235
247
|
]),
|
|
236
248
|
_: 1
|
|
237
|
-
}, 8, ["
|
|
238
|
-
|
|
239
|
-
show:
|
|
240
|
-
"onUpdate:show":
|
|
241
|
-
title:
|
|
249
|
+
}, 8, ["loading", "toolbar", "min-row-height", "expanded-row-keys"]),
|
|
250
|
+
a(Ce, {
|
|
251
|
+
show: b.value,
|
|
252
|
+
"onUpdate:show": t[8] || (t[8] = (n) => b.value = n),
|
|
253
|
+
title: c.value === null ? o(l)("org.addTitle") : o(l)("org.editTitle"),
|
|
242
254
|
width: 480,
|
|
243
|
-
"on-confirm":
|
|
244
|
-
"confirm-text":
|
|
255
|
+
"on-confirm": ae,
|
|
256
|
+
"confirm-text": o(l)("common.save")
|
|
245
257
|
}, {
|
|
246
|
-
default:
|
|
247
|
-
|
|
258
|
+
default: r(() => [
|
|
259
|
+
a(o(V), {
|
|
248
260
|
ref_key: "formRef",
|
|
249
|
-
ref:
|
|
261
|
+
ref: O,
|
|
250
262
|
model: i,
|
|
251
|
-
rules:
|
|
263
|
+
rules: le,
|
|
252
264
|
"label-placement": "left",
|
|
253
265
|
"label-width": 80
|
|
254
266
|
}, {
|
|
255
|
-
default:
|
|
256
|
-
|
|
257
|
-
label:
|
|
267
|
+
default: r(() => [
|
|
268
|
+
a(o(u), {
|
|
269
|
+
label: o(l)("org.parent")
|
|
258
270
|
}, {
|
|
259
|
-
default:
|
|
260
|
-
|
|
271
|
+
default: r(() => [
|
|
272
|
+
a(Ne, {
|
|
261
273
|
value: i.parentId,
|
|
262
|
-
"onUpdate:value":
|
|
274
|
+
"onUpdate:value": t[2] || (t[2] = (n) => i.parentId = n),
|
|
263
275
|
clearable: "",
|
|
264
|
-
"exclude-subtree-of":
|
|
265
|
-
placeholder:
|
|
276
|
+
"exclude-subtree-of": c.value,
|
|
277
|
+
placeholder: o(l)("org.parentPlaceholder")
|
|
266
278
|
}, null, 8, ["value", "exclude-subtree-of", "placeholder"])
|
|
267
279
|
]),
|
|
268
280
|
_: 1
|
|
269
281
|
}, 8, ["label"]),
|
|
270
|
-
|
|
271
|
-
label:
|
|
282
|
+
a(o(u), {
|
|
283
|
+
label: o(l)("org.name"),
|
|
272
284
|
path: "name"
|
|
273
285
|
}, {
|
|
274
|
-
default:
|
|
275
|
-
|
|
286
|
+
default: r(() => [
|
|
287
|
+
a(o(E), {
|
|
276
288
|
value: i.name,
|
|
277
|
-
"onUpdate:value":
|
|
278
|
-
placeholder:
|
|
289
|
+
"onUpdate:value": t[3] || (t[3] = (n) => i.name = n),
|
|
290
|
+
placeholder: o(l)("org.name")
|
|
279
291
|
}, null, 8, ["value", "placeholder"])
|
|
280
292
|
]),
|
|
281
293
|
_: 1
|
|
282
294
|
}, 8, ["label"]),
|
|
283
|
-
|
|
284
|
-
label:
|
|
285
|
-
}, {
|
|
286
|
-
default:
|
|
287
|
-
|
|
295
|
+
a(o(u), {
|
|
296
|
+
label: o(l)("org.code")
|
|
297
|
+
}, ve({
|
|
298
|
+
default: r(() => [
|
|
299
|
+
a(o(E), {
|
|
288
300
|
value: i.code,
|
|
289
|
-
"onUpdate:value":
|
|
290
|
-
placeholder:
|
|
291
|
-
disabled:
|
|
301
|
+
"onUpdate:value": t[4] || (t[4] = (n) => i.code = n),
|
|
302
|
+
placeholder: o(l)("org.codePlaceholder"),
|
|
303
|
+
disabled: c.value !== null
|
|
292
304
|
}, null, 8, ["value", "placeholder", "disabled"])
|
|
293
305
|
]),
|
|
294
|
-
_:
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
|
|
306
|
+
_: 2
|
|
307
|
+
}, [
|
|
308
|
+
c.value !== null ? {
|
|
309
|
+
name: "feedback",
|
|
310
|
+
fn: r(() => [
|
|
311
|
+
j("span", Be, m(o(l)("org.codeImmutableHint")), 1)
|
|
312
|
+
]),
|
|
313
|
+
key: "0"
|
|
314
|
+
} : void 0
|
|
315
|
+
]), 1032, ["label"]),
|
|
316
|
+
a(o(u), {
|
|
317
|
+
label: o(l)("org.category")
|
|
298
318
|
}, {
|
|
299
|
-
default:
|
|
300
|
-
|
|
319
|
+
default: r(() => [
|
|
320
|
+
a(xe, {
|
|
301
321
|
value: i.category,
|
|
302
|
-
"onUpdate:value":
|
|
322
|
+
"onUpdate:value": t[5] || (t[5] = (n) => i.category = n),
|
|
303
323
|
"type-code": "org_category",
|
|
304
324
|
clearable: "",
|
|
305
|
-
placeholder:
|
|
325
|
+
placeholder: o(l)("org.categoryPlaceholder")
|
|
306
326
|
}, null, 8, ["value", "placeholder"])
|
|
307
327
|
]),
|
|
308
328
|
_: 1
|
|
309
329
|
}, 8, ["label"]),
|
|
310
|
-
|
|
311
|
-
label:
|
|
330
|
+
a(o(u), {
|
|
331
|
+
label: o(l)("org.sort")
|
|
312
332
|
}, {
|
|
313
|
-
default:
|
|
314
|
-
|
|
333
|
+
default: r(() => [
|
|
334
|
+
a(o(he), {
|
|
315
335
|
value: i.sort,
|
|
316
|
-
"onUpdate:value":
|
|
336
|
+
"onUpdate:value": t[6] || (t[6] = (n) => i.sort = n),
|
|
317
337
|
min: 0,
|
|
318
338
|
style: { width: "160px" }
|
|
319
339
|
}, null, 8, ["value"])
|
|
320
340
|
]),
|
|
321
341
|
_: 1
|
|
322
342
|
}, 8, ["label"]),
|
|
323
|
-
|
|
324
|
-
label:
|
|
343
|
+
a(o(u), {
|
|
344
|
+
label: o(l)("common.status")
|
|
325
345
|
}, {
|
|
326
|
-
default:
|
|
327
|
-
|
|
346
|
+
default: r(() => [
|
|
347
|
+
a(o(be), {
|
|
328
348
|
value: i.enabled,
|
|
329
|
-
"onUpdate:value":
|
|
349
|
+
"onUpdate:value": t[7] || (t[7] = (n) => i.enabled = n)
|
|
330
350
|
}, null, 8, ["value"])
|
|
331
351
|
]),
|
|
332
352
|
_: 1
|
|
@@ -337,61 +357,71 @@ const Ie = { class: "view fill-page" }, Pe = { style: { margin: "0 0 12px" } },
|
|
|
337
357
|
]),
|
|
338
358
|
_: 1
|
|
339
359
|
}, 8, ["show", "title", "confirm-text"]),
|
|
340
|
-
|
|
341
|
-
show:
|
|
342
|
-
"onUpdate:show":
|
|
343
|
-
"
|
|
360
|
+
a(o(we), {
|
|
361
|
+
show: g.value,
|
|
362
|
+
"onUpdate:show": t[11] || (t[11] = (n) => g.value = n),
|
|
363
|
+
preset: "card",
|
|
364
|
+
title: o(l)("org.copyTitle"),
|
|
365
|
+
style: { width: "min(420px, calc(100vw - 24px))" },
|
|
366
|
+
bordered: !1,
|
|
367
|
+
"mask-closable": !1,
|
|
368
|
+
segmented: { footer: "soft" }
|
|
344
369
|
}, {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
}),
|
|
364
|
-
t(e(u), {
|
|
365
|
-
type: "primary",
|
|
366
|
-
onClick: J
|
|
367
|
-
}, {
|
|
368
|
-
default: n(() => [
|
|
369
|
-
C(b(e(a)("common.confirm")), 1)
|
|
370
|
-
]),
|
|
371
|
-
_: 1
|
|
372
|
-
})
|
|
370
|
+
footer: r(() => [
|
|
371
|
+
a(o(M), { justify: "end" }, {
|
|
372
|
+
default: r(() => [
|
|
373
|
+
a(o(p), {
|
|
374
|
+
secondary: "",
|
|
375
|
+
onClick: t[10] || (t[10] = (n) => g.value = !1)
|
|
376
|
+
}, {
|
|
377
|
+
default: r(() => [
|
|
378
|
+
x(m(o(l)("common.cancel")), 1)
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
}),
|
|
382
|
+
a(o(p), {
|
|
383
|
+
type: "primary",
|
|
384
|
+
onClick: re
|
|
385
|
+
}, {
|
|
386
|
+
default: r(() => [
|
|
387
|
+
x(m(o(l)("common.confirm")), 1)
|
|
373
388
|
]),
|
|
374
389
|
_: 1
|
|
375
390
|
})
|
|
376
391
|
]),
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
392
|
+
_: 1
|
|
393
|
+
})
|
|
394
|
+
]),
|
|
395
|
+
default: r(() => [
|
|
396
|
+
j("p", De, m(o(l)("org.copyConfirm", { name: L.value })), 1),
|
|
397
|
+
a(o(V), {
|
|
398
|
+
"label-placement": "top",
|
|
399
|
+
"require-mark-placement": "left"
|
|
400
|
+
}, {
|
|
401
|
+
default: r(() => [
|
|
402
|
+
a(o(u), {
|
|
403
|
+
label: o(l)("org.copyNameLabel")
|
|
404
|
+
}, {
|
|
405
|
+
default: r(() => [
|
|
406
|
+
a(o(E), {
|
|
407
|
+
value: w.value,
|
|
408
|
+
"onUpdate:value": t[9] || (t[9] = (n) => w.value = n),
|
|
409
|
+
placeholder: o(l)("org.copyNameLabel")
|
|
410
|
+
}, null, 8, ["value", "placeholder"])
|
|
411
|
+
]),
|
|
412
|
+
_: 1
|
|
413
|
+
}, 8, ["label"])
|
|
384
414
|
]),
|
|
385
415
|
_: 1
|
|
386
|
-
}
|
|
416
|
+
})
|
|
387
417
|
]),
|
|
388
418
|
_: 1
|
|
389
|
-
}, 8, ["show"])
|
|
419
|
+
}, 8, ["show", "title"])
|
|
390
420
|
]);
|
|
391
421
|
};
|
|
392
422
|
}
|
|
393
423
|
});
|
|
394
424
|
export {
|
|
395
|
-
|
|
425
|
+
no as default
|
|
396
426
|
};
|
|
397
427
|
//# sourceMappingURL=index2.vue.js.map
|