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,366 +1,392 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useMessage as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as ie, ref as m, computed as k, h as s, reactive as ne, onMounted as ae, resolveDirective as re, openBlock as _, createElementBlock as ce, createVNode as a, unref as e, withCtx as r, withDirectives as se, createBlock as z, createTextVNode as f, toDisplayString as y, mergeProps as ue, normalizeStyle as q, createCommentVNode as pe, createElementVNode as $ } from "vue";
|
|
2
|
+
import { useMessage as de, NTag as me, NSpace as ve, NButton as U, NPopconfirm as fe, NForm as ye, NFormItem as v, NSelect as h, NInput as A, NDynamicInput as he, NCheckbox as B, NText as be, NModal as ge } from "naive-ui";
|
|
3
|
+
import { useMediaQuery as we } from "@vueuse/core";
|
|
4
|
+
import { useI18n as Te } from "vue-i18n";
|
|
5
|
+
import { SmartTable as Ne } from "smart-naive-table";
|
|
6
|
+
import ke from "../../../components/AppIcon.vue.js";
|
|
7
|
+
import _e from "../../../components/FormContainer/index.vue.js";
|
|
7
8
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useConfirm as
|
|
11
|
-
import { useAuthStore as
|
|
12
|
-
import {
|
|
13
|
-
import { NoticeType as
|
|
14
|
-
import { isSiteRelativeUrl as
|
|
15
|
-
import { translateError as
|
|
16
|
-
import {
|
|
17
|
-
|
|
9
|
+
import Ue from "../../../components/MarkdownEditor/index.vue.js";
|
|
10
|
+
import Ae from "../../../components/MarkdownEditor/MarkdownView.vue.js";
|
|
11
|
+
import { useConfirm as Se } from "../../../composables/useConfirm.js";
|
|
12
|
+
import { useAuthStore as xe } from "../../../stores/auth.js";
|
|
13
|
+
import { noticeApi as S, roleApi as Ie, userApi as Oe } from "../../../api/index.js";
|
|
14
|
+
import { NoticeType as d, ReceiverType as u } from "../../../types/api.js";
|
|
15
|
+
import { isSiteRelativeUrl as Re } from "../../../lib/noticeActions.js";
|
|
16
|
+
import { translateError as D } from "../../../utils/error.js";
|
|
17
|
+
import { SEARCH_ACTIONS as Ce, deriveHeaderFilters as Ee } from "../../../utils/tableFilter.js";
|
|
18
|
+
import { TABLE_MIN_ROW_HEIGHT as Pe, TABLE_TOOLBAR as Me } from "../../../utils/tableToolbar.js";
|
|
19
|
+
import ze from "../../../components/TableTotal/index.vue.js";
|
|
20
|
+
import { fmtDateTime as qe } from "../../../utils/format.js";
|
|
21
|
+
const $e = { class: "fill-page" }, Be = { class: "notice-actions-editor" }, De = { class: "notice-action-row" }, Le = 5, st = /* @__PURE__ */ ie({
|
|
18
22
|
__name: "index",
|
|
19
|
-
setup(
|
|
20
|
-
const { t
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
+
setup(Ve) {
|
|
24
|
+
const { t } = Te(), b = de(), { run: L } = Se(), V = xe(), g = m(), H = (o) => o === d.Announcement ? t("notice.typeAnnouncement") : o === d.Message ? t("notice.typeMessage") : t("notice.typeNotice"), x = we("(max-width: 640px)"), F = k(
|
|
25
|
+
() => x.value ? { labelPlacement: "top", labelWidth: void 0 } : { labelPlacement: "left", labelWidth: 80 }
|
|
26
|
+
), I = k(() => x.value ? void 0 : "width: 160px"), G = (o) => (o ?? "").replace(/```/g, "").replace(/[#>*`]/g, "").replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\s+/g, " ").trim(), J = (o) => o === d.Announcement ? "warning" : o === d.Message ? "success" : "info", O = [
|
|
27
|
+
{ type: "index", title: () => t("common.rowNo"), width: 64, align: "center" },
|
|
28
|
+
{
|
|
29
|
+
key: "title",
|
|
30
|
+
title: () => t("notice.noticeTitle"),
|
|
31
|
+
search: { actions: Ce.fuzzy },
|
|
32
|
+
render: (o) => s("span", { style: "font-weight: 500" }, o.title)
|
|
33
|
+
},
|
|
23
34
|
{
|
|
24
35
|
key: "type",
|
|
25
|
-
title: () =>
|
|
36
|
+
title: () => t("notice.type"),
|
|
26
37
|
width: 90,
|
|
27
|
-
render: (
|
|
38
|
+
render: (o) => s(me, { size: "small", type: J(o.type), bordered: !1 }, () => H(o.type))
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: "content",
|
|
42
|
+
title: () => t("notice.content"),
|
|
43
|
+
ellipsis: { tooltip: !0 },
|
|
44
|
+
render: (o) => s("span", { class: "muted" }, G(o.content))
|
|
28
45
|
},
|
|
29
|
-
{ key: "content", title: () => e("notice.content"), ellipsis: { tooltip: !0 } },
|
|
30
46
|
{
|
|
31
47
|
key: "actionsJson",
|
|
32
|
-
title: () =>
|
|
48
|
+
title: () => t("notice.actions"),
|
|
33
49
|
width: 100,
|
|
34
|
-
render: (
|
|
35
|
-
const
|
|
36
|
-
return
|
|
50
|
+
render: (o) => {
|
|
51
|
+
const l = K(o.actionsJson);
|
|
52
|
+
return l ? s("span", { class: "muted" }, t("notice.actionCount", { count: l })) : s("span", { class: "faint" }, "—");
|
|
37
53
|
}
|
|
38
54
|
},
|
|
39
55
|
{
|
|
40
56
|
key: "createTime",
|
|
41
|
-
title: () =>
|
|
57
|
+
title: () => t("notice.publishTime"),
|
|
42
58
|
width: 170,
|
|
43
|
-
render: (
|
|
59
|
+
render: (o) => s("span", { class: "num muted", style: "white-space: nowrap" }, qe(o.createTime))
|
|
44
60
|
},
|
|
45
61
|
{
|
|
46
62
|
key: "op",
|
|
47
|
-
title: () =>
|
|
63
|
+
title: () => t("common.operation"),
|
|
48
64
|
width: 140,
|
|
65
|
+
align: "right",
|
|
49
66
|
fixed: "right",
|
|
50
67
|
hideInSetting: !0,
|
|
51
|
-
render: (
|
|
52
|
-
|
|
68
|
+
render: (o) => s(ve, { size: 2, justify: "end", wrapItem: !1 }, () => [
|
|
69
|
+
s(
|
|
53
70
|
U,
|
|
54
|
-
{ size: "small", quaternary: !0, type: "primary", onClick: () =>
|
|
55
|
-
() =>
|
|
71
|
+
{ size: "small", quaternary: !0, type: "primary", onClick: () => oe(o) },
|
|
72
|
+
() => t("notice.view")
|
|
56
73
|
),
|
|
57
|
-
|
|
58
|
-
|
|
74
|
+
V.hasPerm("DELETE:/api/v1/sys/notice/{id}") ? s(
|
|
75
|
+
fe,
|
|
59
76
|
{
|
|
60
|
-
onPositiveClick: () =>
|
|
61
|
-
var
|
|
62
|
-
|
|
77
|
+
onPositiveClick: () => L(() => S.remove(o.id), t("notice.deleted")).then((l) => {
|
|
78
|
+
var p;
|
|
79
|
+
l && ((p = g.value) == null || p.refresh());
|
|
63
80
|
})
|
|
64
81
|
},
|
|
65
82
|
{
|
|
66
|
-
trigger: () =>
|
|
83
|
+
trigger: () => s(
|
|
67
84
|
U,
|
|
68
85
|
{ size: "small", quaternary: !0, type: "error" },
|
|
69
|
-
() =>
|
|
86
|
+
() => t("common.delete")
|
|
70
87
|
),
|
|
71
|
-
default: () =>
|
|
88
|
+
default: () => t("notice.deleteConfirm", { title: o.title })
|
|
72
89
|
}
|
|
73
90
|
) : null
|
|
74
91
|
])
|
|
75
92
|
}
|
|
76
|
-
]
|
|
93
|
+
];
|
|
94
|
+
Ee(O);
|
|
95
|
+
const w = m(!1), R = m(null), W = {
|
|
77
96
|
title: {
|
|
78
97
|
required: !0,
|
|
79
98
|
whitespace: !0,
|
|
80
|
-
message: () =>
|
|
99
|
+
message: () => t("notice.titleRequired"),
|
|
81
100
|
trigger: ["input", "blur"]
|
|
82
101
|
},
|
|
83
102
|
receiverIds: {
|
|
84
103
|
// 定向发送必须选接收对象;全体广播无需(validator 读实时 form.receiverType)
|
|
85
104
|
validator: () => {
|
|
86
|
-
var
|
|
87
|
-
return n.receiverType ===
|
|
105
|
+
var o;
|
|
106
|
+
return n.receiverType === u.All || (((o = n.receiverIds) == null ? void 0 : o.length) ?? 0) > 0;
|
|
88
107
|
},
|
|
89
|
-
message: () =>
|
|
108
|
+
message: () => t("notice.receiverRequired"),
|
|
90
109
|
trigger: ["change", "blur"]
|
|
91
110
|
},
|
|
92
111
|
actions: {
|
|
93
112
|
// 与后端同一条规则:文案非空、站内路径单个 / 开头;服务端仍会再校验一遍(45004)
|
|
94
|
-
validator: () => n.actions.every((
|
|
95
|
-
message: () =>
|
|
113
|
+
validator: () => n.actions.every((o) => o.label.trim() && Re(o.url.trim())),
|
|
114
|
+
message: () => t("error.notice.actionInvalid"),
|
|
96
115
|
trigger: ["input", "blur"]
|
|
97
116
|
}
|
|
98
|
-
},
|
|
117
|
+
}, C = () => ({
|
|
99
118
|
title: "",
|
|
100
119
|
content: "",
|
|
101
|
-
type:
|
|
102
|
-
receiverType:
|
|
120
|
+
type: d.Notice,
|
|
121
|
+
receiverType: u.All,
|
|
103
122
|
receiverIds: [],
|
|
104
123
|
actions: []
|
|
105
|
-
}), n =
|
|
124
|
+
}), n = ne(C()), j = () => ({
|
|
106
125
|
label: "",
|
|
107
126
|
method: "GET",
|
|
108
127
|
url: "",
|
|
109
128
|
style: "default",
|
|
110
129
|
confirm: !1,
|
|
111
130
|
comment: !1
|
|
112
|
-
}),
|
|
131
|
+
}), Q = [
|
|
113
132
|
{ label: "GET", value: "GET" },
|
|
114
133
|
{ label: "POST", value: "POST" }
|
|
115
|
-
],
|
|
116
|
-
{ label: () =>
|
|
117
|
-
{ label: () =>
|
|
118
|
-
{ label: () =>
|
|
134
|
+
], X = [
|
|
135
|
+
{ label: () => t("notice.actionStyleDefault"), value: "default" },
|
|
136
|
+
{ label: () => t("notice.actionStylePrimary"), value: "primary" },
|
|
137
|
+
{ label: () => t("notice.actionStyleError"), value: "error" }
|
|
119
138
|
];
|
|
120
|
-
function
|
|
121
|
-
if (!
|
|
139
|
+
function K(o) {
|
|
140
|
+
if (!o) return 0;
|
|
122
141
|
try {
|
|
123
|
-
const
|
|
124
|
-
return Array.isArray(
|
|
142
|
+
const l = JSON.parse(o);
|
|
143
|
+
return Array.isArray(l) ? l.length : 0;
|
|
125
144
|
} catch {
|
|
126
145
|
return 0;
|
|
127
146
|
}
|
|
128
147
|
}
|
|
129
|
-
const
|
|
130
|
-
{ label: () =>
|
|
131
|
-
{ label: () =>
|
|
132
|
-
{ label: () =>
|
|
133
|
-
],
|
|
134
|
-
{ label: () =>
|
|
135
|
-
{ label: () =>
|
|
136
|
-
{ label: () =>
|
|
137
|
-
],
|
|
138
|
-
() => n.receiverType ===
|
|
148
|
+
const Y = [
|
|
149
|
+
{ label: () => t("notice.typeNotice"), value: d.Notice },
|
|
150
|
+
{ label: () => t("notice.typeAnnouncement"), value: d.Announcement },
|
|
151
|
+
{ label: () => t("notice.typeMessage"), value: d.Message }
|
|
152
|
+
], Z = [
|
|
153
|
+
{ label: () => t("notice.receiverAll"), value: u.All },
|
|
154
|
+
{ label: () => t("notice.receiverRole"), value: u.Role },
|
|
155
|
+
{ label: () => t("notice.receiverUser"), value: u.User }
|
|
156
|
+
], E = m([]), P = m([]), ee = k(
|
|
157
|
+
() => n.receiverType === u.Role ? E.value : n.receiverType === u.User ? P.value : []
|
|
139
158
|
);
|
|
140
|
-
|
|
159
|
+
ae(async () => {
|
|
141
160
|
try {
|
|
142
|
-
const { items:
|
|
143
|
-
|
|
161
|
+
const { items: o } = await Ie.page({ page: 1, pageSize: 200 });
|
|
162
|
+
E.value = o.map((l) => ({ label: l.name, value: l.id }));
|
|
144
163
|
} catch {
|
|
145
164
|
}
|
|
146
165
|
try {
|
|
147
|
-
const { items:
|
|
148
|
-
|
|
166
|
+
const { items: o } = await Oe.page({ page: 1, pageSize: 200 });
|
|
167
|
+
P.value = o.map((l) => ({ label: `${l.name}(${l.account})`, value: l.id }));
|
|
149
168
|
} catch {
|
|
150
169
|
}
|
|
151
170
|
});
|
|
152
|
-
function
|
|
153
|
-
Object.assign(n,
|
|
171
|
+
function te() {
|
|
172
|
+
Object.assign(n, C()), w.value = !0;
|
|
154
173
|
}
|
|
155
|
-
const T =
|
|
156
|
-
function
|
|
157
|
-
|
|
174
|
+
const T = m(!1), N = m(null);
|
|
175
|
+
function oe(o) {
|
|
176
|
+
N.value = o, T.value = !0;
|
|
158
177
|
}
|
|
159
|
-
async function
|
|
160
|
-
var
|
|
161
|
-
await ((
|
|
178
|
+
async function le() {
|
|
179
|
+
var o, l;
|
|
180
|
+
await ((o = R.value) == null ? void 0 : o.validate());
|
|
162
181
|
try {
|
|
163
|
-
const
|
|
164
|
-
await
|
|
165
|
-
} catch (
|
|
166
|
-
return b.error(
|
|
182
|
+
const p = n.actions.length ? n.actions : void 0;
|
|
183
|
+
await S.publish({ ...n, actions: p }), b.success(t("notice.published")), await ((l = g.value) == null ? void 0 : l.refresh());
|
|
184
|
+
} catch (p) {
|
|
185
|
+
return b.error(D(p)), !1;
|
|
167
186
|
}
|
|
168
187
|
}
|
|
169
|
-
return (
|
|
170
|
-
var
|
|
171
|
-
const
|
|
172
|
-
return
|
|
173
|
-
a(
|
|
174
|
-
|
|
188
|
+
return (o, l) => {
|
|
189
|
+
var M;
|
|
190
|
+
const p = re("auth");
|
|
191
|
+
return _(), ce("div", $e, [
|
|
192
|
+
a(e(Ne), {
|
|
193
|
+
toolbar: e(Me),
|
|
175
194
|
ref_key: "tableRef",
|
|
176
195
|
ref: g,
|
|
177
|
-
columns:
|
|
178
|
-
fetcher:
|
|
179
|
-
|
|
180
|
-
"
|
|
196
|
+
columns: O,
|
|
197
|
+
fetcher: e(S).page,
|
|
198
|
+
search: { container: "table" },
|
|
199
|
+
"fill-height": "",
|
|
200
|
+
"min-row-height": e(Pe),
|
|
201
|
+
"card-on-narrow": "",
|
|
181
202
|
"storage-key": "sys-notice",
|
|
182
|
-
onError:
|
|
203
|
+
onError: l[0] || (l[0] = (i) => e(b).error(e(D)(i)))
|
|
183
204
|
}, {
|
|
184
|
-
|
|
185
|
-
|
|
205
|
+
"pagination-prefix": r(({ itemCount: i }) => [
|
|
206
|
+
a(ze, { count: i }, null, 8, ["count"])
|
|
207
|
+
]),
|
|
208
|
+
"toolbar-right": r(() => [
|
|
209
|
+
se((_(), z(e(U), {
|
|
186
210
|
type: "primary",
|
|
187
|
-
onClick:
|
|
211
|
+
onClick: te
|
|
188
212
|
}, {
|
|
189
213
|
icon: r(() => [
|
|
190
|
-
a(
|
|
214
|
+
a(ke, {
|
|
191
215
|
icon: "ph:megaphone",
|
|
192
216
|
size: 16
|
|
193
217
|
})
|
|
194
218
|
]),
|
|
195
219
|
default: r(() => [
|
|
196
|
-
|
|
220
|
+
f(" " + y(e(t)("notice.publish")), 1)
|
|
197
221
|
]),
|
|
198
222
|
_: 1
|
|
199
223
|
})), [
|
|
200
|
-
[
|
|
224
|
+
[p, "POST:/api/v1/sys/notice"]
|
|
201
225
|
])
|
|
202
226
|
]),
|
|
203
227
|
_: 1
|
|
204
|
-
}, 8, ["fetcher"]),
|
|
205
|
-
a(
|
|
228
|
+
}, 8, ["toolbar", "fetcher", "min-row-height"]),
|
|
229
|
+
a(_e, {
|
|
206
230
|
show: w.value,
|
|
207
|
-
"onUpdate:show":
|
|
208
|
-
title: t
|
|
231
|
+
"onUpdate:show": l[8] || (l[8] = (i) => w.value = i),
|
|
232
|
+
title: e(t)("notice.publishTitle"),
|
|
209
233
|
width: 820,
|
|
210
|
-
"on-confirm":
|
|
211
|
-
"confirm-text": t
|
|
234
|
+
"on-confirm": le,
|
|
235
|
+
"confirm-text": e(t)("notice.publish")
|
|
212
236
|
}, {
|
|
213
237
|
default: r(() => [
|
|
214
|
-
a(
|
|
238
|
+
a(e(ye), ue({
|
|
215
239
|
ref_key: "formRef",
|
|
216
|
-
ref:
|
|
240
|
+
ref: R,
|
|
217
241
|
model: n,
|
|
218
|
-
rules:
|
|
219
|
-
"
|
|
220
|
-
|
|
221
|
-
}, {
|
|
242
|
+
rules: W,
|
|
243
|
+
"require-mark-placement": "left"
|
|
244
|
+
}, F.value), {
|
|
222
245
|
default: r(() => [
|
|
223
|
-
a(
|
|
224
|
-
label: t
|
|
246
|
+
a(e(v), {
|
|
247
|
+
label: e(t)("notice.type"),
|
|
248
|
+
required: ""
|
|
225
249
|
}, {
|
|
226
250
|
default: r(() => [
|
|
227
|
-
a(
|
|
251
|
+
a(e(h), {
|
|
228
252
|
value: n.type,
|
|
229
|
-
"onUpdate:value":
|
|
230
|
-
options:
|
|
231
|
-
style:
|
|
232
|
-
}, null, 8, ["value"])
|
|
253
|
+
"onUpdate:value": l[1] || (l[1] = (i) => n.type = i),
|
|
254
|
+
options: Y,
|
|
255
|
+
style: q(I.value)
|
|
256
|
+
}, null, 8, ["value", "style"])
|
|
233
257
|
]),
|
|
234
258
|
_: 1
|
|
235
259
|
}, 8, ["label"]),
|
|
236
|
-
a(
|
|
237
|
-
label: t
|
|
260
|
+
a(e(v), {
|
|
261
|
+
label: e(t)("notice.receiver"),
|
|
262
|
+
required: ""
|
|
238
263
|
}, {
|
|
239
264
|
default: r(() => [
|
|
240
|
-
a(
|
|
265
|
+
a(e(h), {
|
|
241
266
|
value: n.receiverType,
|
|
242
267
|
"onUpdate:value": [
|
|
243
|
-
|
|
244
|
-
|
|
268
|
+
l[2] || (l[2] = (i) => n.receiverType = i),
|
|
269
|
+
l[3] || (l[3] = (i) => n.receiverIds = [])
|
|
245
270
|
],
|
|
246
|
-
options:
|
|
247
|
-
style:
|
|
248
|
-
}, null, 8, ["value"])
|
|
271
|
+
options: Z,
|
|
272
|
+
style: q(I.value)
|
|
273
|
+
}, null, 8, ["value", "style"])
|
|
249
274
|
]),
|
|
250
275
|
_: 1
|
|
251
276
|
}, 8, ["label"]),
|
|
252
|
-
n.receiverType !==
|
|
277
|
+
n.receiverType !== e(u).All ? (_(), z(e(v), {
|
|
253
278
|
key: 0,
|
|
254
279
|
path: "receiverIds",
|
|
255
|
-
|
|
280
|
+
required: "",
|
|
281
|
+
label: n.receiverType === e(u).Role ? e(t)("notice.receiverRole") : e(t)("notice.receiverUser")
|
|
256
282
|
}, {
|
|
257
283
|
default: r(() => [
|
|
258
|
-
a(
|
|
284
|
+
a(e(h), {
|
|
259
285
|
value: n.receiverIds,
|
|
260
|
-
"onUpdate:value":
|
|
261
|
-
options:
|
|
286
|
+
"onUpdate:value": l[4] || (l[4] = (i) => n.receiverIds = i),
|
|
287
|
+
options: ee.value,
|
|
262
288
|
multiple: "",
|
|
263
289
|
filterable: "",
|
|
264
290
|
clearable: "",
|
|
265
|
-
placeholder: t
|
|
291
|
+
placeholder: e(t)("notice.receiverPlaceholder")
|
|
266
292
|
}, null, 8, ["value", "options", "placeholder"])
|
|
267
293
|
]),
|
|
268
294
|
_: 1
|
|
269
|
-
}, 8, ["label"])) :
|
|
270
|
-
a(
|
|
271
|
-
label: t
|
|
295
|
+
}, 8, ["label"])) : pe("", !0),
|
|
296
|
+
a(e(v), {
|
|
297
|
+
label: e(t)("notice.noticeTitle"),
|
|
272
298
|
path: "title"
|
|
273
299
|
}, {
|
|
274
300
|
default: r(() => [
|
|
275
|
-
a(
|
|
301
|
+
a(e(A), {
|
|
276
302
|
value: n.title,
|
|
277
|
-
"onUpdate:value":
|
|
278
|
-
placeholder: t
|
|
303
|
+
"onUpdate:value": l[5] || (l[5] = (i) => n.title = i),
|
|
304
|
+
placeholder: e(t)("notice.noticeTitle")
|
|
279
305
|
}, null, 8, ["value", "placeholder"])
|
|
280
306
|
]),
|
|
281
307
|
_: 1
|
|
282
308
|
}, 8, ["label"]),
|
|
283
|
-
a(
|
|
284
|
-
label: t
|
|
309
|
+
a(e(v), {
|
|
310
|
+
label: e(t)("notice.content")
|
|
285
311
|
}, {
|
|
286
312
|
default: r(() => [
|
|
287
|
-
a(
|
|
313
|
+
a(Ue, {
|
|
288
314
|
value: n.content,
|
|
289
|
-
"onUpdate:value":
|
|
315
|
+
"onUpdate:value": l[6] || (l[6] = (i) => n.content = i)
|
|
290
316
|
}, null, 8, ["value"])
|
|
291
317
|
]),
|
|
292
318
|
_: 1
|
|
293
319
|
}, 8, ["label"]),
|
|
294
|
-
a(
|
|
295
|
-
label: t
|
|
320
|
+
a(e(v), {
|
|
321
|
+
label: e(t)("notice.actions"),
|
|
296
322
|
path: "actions"
|
|
297
323
|
}, {
|
|
298
324
|
default: r(() => [
|
|
299
|
-
|
|
300
|
-
a(
|
|
325
|
+
$("div", Be, [
|
|
326
|
+
a(e(he), {
|
|
301
327
|
value: n.actions,
|
|
302
|
-
"onUpdate:value":
|
|
303
|
-
max:
|
|
304
|
-
"on-create":
|
|
328
|
+
"onUpdate:value": l[7] || (l[7] = (i) => n.actions = i),
|
|
329
|
+
max: Le,
|
|
330
|
+
"on-create": j,
|
|
305
331
|
"item-style": "margin-bottom: 8px"
|
|
306
332
|
}, {
|
|
307
333
|
default: r(({ value: i }) => [
|
|
308
|
-
|
|
309
|
-
a(
|
|
334
|
+
$("div", De, [
|
|
335
|
+
a(e(A), {
|
|
310
336
|
value: i.label,
|
|
311
337
|
"onUpdate:value": (c) => i.label = c,
|
|
312
|
-
placeholder: t
|
|
313
|
-
|
|
338
|
+
placeholder: e(t)("notice.actionLabel"),
|
|
339
|
+
class: "act-label"
|
|
314
340
|
}, null, 8, ["value", "onUpdate:value", "placeholder"]),
|
|
315
|
-
a(
|
|
341
|
+
a(e(h), {
|
|
316
342
|
value: i.method,
|
|
317
343
|
"onUpdate:value": (c) => i.method = c,
|
|
318
|
-
options:
|
|
344
|
+
options: Q,
|
|
319
345
|
style: { width: "96px" }
|
|
320
346
|
}, null, 8, ["value", "onUpdate:value"]),
|
|
321
|
-
a(
|
|
347
|
+
a(e(A), {
|
|
322
348
|
value: i.url,
|
|
323
349
|
"onUpdate:value": (c) => i.url = c,
|
|
324
|
-
placeholder: t
|
|
325
|
-
|
|
350
|
+
placeholder: e(t)("notice.actionUrl"),
|
|
351
|
+
class: "act-url mono"
|
|
326
352
|
}, null, 8, ["value", "onUpdate:value", "placeholder"]),
|
|
327
|
-
a(
|
|
353
|
+
a(e(h), {
|
|
328
354
|
value: i.style,
|
|
329
355
|
"onUpdate:value": (c) => i.style = c,
|
|
330
|
-
options:
|
|
356
|
+
options: X,
|
|
331
357
|
style: { width: "96px" }
|
|
332
358
|
}, null, 8, ["value", "onUpdate:value"]),
|
|
333
|
-
a(
|
|
359
|
+
a(e(B), {
|
|
334
360
|
checked: i.confirm,
|
|
335
361
|
"onUpdate:checked": (c) => i.confirm = c
|
|
336
362
|
}, {
|
|
337
363
|
default: r(() => [
|
|
338
|
-
|
|
364
|
+
f(y(e(t)("notice.actionNeedConfirm")), 1)
|
|
339
365
|
]),
|
|
340
366
|
_: 1
|
|
341
367
|
}, 8, ["checked", "onUpdate:checked"]),
|
|
342
|
-
a(
|
|
368
|
+
a(e(B), {
|
|
343
369
|
checked: i.comment,
|
|
344
370
|
"onUpdate:checked": (c) => i.comment = c
|
|
345
371
|
}, {
|
|
346
372
|
default: r(() => [
|
|
347
|
-
|
|
373
|
+
f(y(e(t)("notice.actionNeedComment")), 1)
|
|
348
374
|
]),
|
|
349
375
|
_: 1
|
|
350
376
|
}, 8, ["checked", "onUpdate:checked"])
|
|
351
377
|
])
|
|
352
378
|
]),
|
|
353
379
|
"create-button-default": r(() => [
|
|
354
|
-
|
|
380
|
+
f(y(e(t)("notice.actionAdd")), 1)
|
|
355
381
|
]),
|
|
356
382
|
_: 1
|
|
357
383
|
}, 8, ["value"]),
|
|
358
|
-
a(
|
|
384
|
+
a(e(be), {
|
|
359
385
|
depth: "3",
|
|
360
386
|
class: "notice-actions-hint"
|
|
361
387
|
}, {
|
|
362
388
|
default: r(() => [
|
|
363
|
-
|
|
389
|
+
f(y(e(t)("notice.actionsHint")), 1)
|
|
364
390
|
]),
|
|
365
391
|
_: 1
|
|
366
392
|
})
|
|
@@ -370,22 +396,24 @@ const _e = { class: "fill-page" }, Ae = { class: "notice-actions-editor" }, Se =
|
|
|
370
396
|
}, 8, ["label"])
|
|
371
397
|
]),
|
|
372
398
|
_: 1
|
|
373
|
-
},
|
|
399
|
+
}, 16, ["model"])
|
|
374
400
|
]),
|
|
375
401
|
_: 1
|
|
376
402
|
}, 8, ["show", "title", "confirm-text"]),
|
|
377
|
-
a(
|
|
403
|
+
a(e(ge), {
|
|
378
404
|
show: T.value,
|
|
379
|
-
"onUpdate:show":
|
|
405
|
+
"onUpdate:show": l[9] || (l[9] = (i) => T.value = i),
|
|
380
406
|
preset: "card",
|
|
381
|
-
title: ((
|
|
407
|
+
title: ((M = N.value) == null ? void 0 : M.title) || e(t)("notice.detailTitle"),
|
|
408
|
+
bordered: !1,
|
|
409
|
+
segmented: { content: !0 },
|
|
382
410
|
style: { width: "720px", "max-width": "92vw" }
|
|
383
411
|
}, {
|
|
384
412
|
default: r(() => {
|
|
385
413
|
var i;
|
|
386
414
|
return [
|
|
387
|
-
a(
|
|
388
|
-
value: (i =
|
|
415
|
+
a(Ae, {
|
|
416
|
+
value: (i = N.value) == null ? void 0 : i.content
|
|
389
417
|
}, null, 8, ["value"])
|
|
390
418
|
];
|
|
391
419
|
}),
|
|
@@ -396,6 +424,6 @@ const _e = { class: "fill-page" }, Ae = { class: "notice-actions-editor" }, Se =
|
|
|
396
424
|
}
|
|
397
425
|
});
|
|
398
426
|
export {
|
|
399
|
-
|
|
427
|
+
st as default
|
|
400
428
|
};
|
|
401
429
|
//# sourceMappingURL=index2.vue.js.map
|