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