@pubinfo/module-rbac 2.0.0-beta.10

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 (470) hide show
  1. package/dist/OrgSelector.vue_vue_type_script_setup_true_lang-BcL0IFuA.js +567 -0
  2. package/dist/_baseClone-CQ44TFeq.js +191 -0
  3. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  4. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  5. package/dist/animation_item.vue_vue_type_script_setup_true_lang-BQvmwheq.js +4864 -0
  6. package/dist/api/modules/assist/gonggaofuwu.d.ts +43 -0
  7. package/dist/api/modules/assist/index.d.ts +3 -0
  8. package/dist/api/modules/assist/qunzujiekou.d.ts +36 -0
  9. package/dist/api/modules/assist/quyujiekou.d.ts +36 -0
  10. package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
  11. package/dist/api/modules/configData/index.d.ts +3 -0
  12. package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
  13. package/dist/api/modules/configData/zidianfuwu.d.ts +57 -0
  14. package/dist/api/modules/log/caozuorizhifuwu.d.ts +15 -0
  15. package/dist/api/modules/log/denglurizhifuwu.d.ts +15 -0
  16. package/dist/api/modules/log/index.d.ts +2 -0
  17. package/dist/api/modules/rbac/gangweijiekou.d.ts +36 -0
  18. package/dist/api/modules/rbac/index.d.ts +11 -0
  19. package/dist/api/modules/rbac/jiaosejiekou.d.ts +50 -0
  20. package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +43 -0
  21. package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
  22. package/dist/api/modules/rbac/yonghujiekou.d.ts +85 -0
  23. package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
  24. package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
  25. package/dist/api/modules/rbac/ziyuanjiekou.d.ts +85 -0
  26. package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
  27. package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
  28. package/dist/api/modules/rbac/zuzhijiekou.d.ts +64 -0
  29. package/dist/api/request.d.ts +1 -0
  30. package/dist/browserType.vue_vue_type_script_setup_true_lang-Cv8wph6G.js +38 -0
  31. package/dist/cloneDeep-BI4WNBQ9.js +8 -0
  32. package/dist/components/GroupSelector/index.vue.d.ts +15 -0
  33. package/dist/components/GroupSelector/interface.d.ts +6 -0
  34. package/dist/components/OrgTree/index.vue.d.ts +5 -0
  35. package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +68 -0
  36. package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +72 -0
  37. package/dist/components/OrgUserSelector/index.d.ts +8 -0
  38. package/dist/components/OrgUserSelector/provider.d.ts +24 -0
  39. package/dist/components/ResourceSelector/enum.d.ts +5 -0
  40. package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +29 -0
  41. package/dist/components/ResourceSelector/index.vue.d.ts +24 -0
  42. package/dist/composables/useLottie.d.ts +11 -0
  43. package/dist/enum-BEHz_Q18.js +74 -0
  44. package/dist/enum-C9ihxJe7.js +4 -0
  45. package/dist/enum-CTUzwCYG.js +4 -0
  46. package/dist/enum-DDKThkSw.js +24 -0
  47. package/dist/gangweijiekou-BxJq_m0o.js +46 -0
  48. package/dist/index-BS45K9vK.js +685 -0
  49. package/dist/index-Bbsiwecf.js +1631 -0
  50. package/dist/index-BhcAk-IH.js +399 -0
  51. package/dist/index-Bl4v-7On.js +125 -0
  52. package/dist/index-BleenJqT.js +168 -0
  53. package/dist/index-CFPhIFyG.js +140 -0
  54. package/dist/index-CLSeuhTv.js +872 -0
  55. package/dist/index-CLxqmFPw.js +317 -0
  56. package/dist/index-CTiFd9M0.js +303 -0
  57. package/dist/index-Cej8u1qo.js +274 -0
  58. package/dist/index-Cr17VOfm.js +389 -0
  59. package/dist/index-CsHj-xDw.js +283 -0
  60. package/dist/index-D0yB_8b0.js +181 -0
  61. package/dist/index-DFR8dd2B.js +785 -0
  62. package/dist/index-DNf0NPrD.js +131 -0
  63. package/dist/index-Dm4sOX43.js +27 -0
  64. package/dist/index-KboUdpTh.js +18588 -0
  65. package/dist/index-MtXfNGqS.js +1246 -0
  66. package/dist/index-U8kjKY6p.js +462 -0
  67. package/dist/index-UZeQsp70.js +177 -0
  68. package/dist/index-a0E9oj3q.js +703 -0
  69. package/dist/index-gmUZUdNl.js +634 -0
  70. package/dist/index-j_ln_NSt.js +455 -0
  71. package/dist/index-s32GbmsJ.js +164 -0
  72. package/dist/index-yEpViVkx.js +409 -0
  73. package/dist/index-zh8PZXw2.js +862 -0
  74. package/dist/index.d.ts +7 -0
  75. package/dist/index.js +6 -0
  76. package/dist/interface.d.ts +47 -0
  77. package/dist/itemlist-xAbIKRVj.js +369 -0
  78. package/dist/jiaosejiekou-BfY4h7uI.js +58 -0
  79. package/dist/login_history-CuQv9Iw3.js +430 -0
  80. package/dist/operate_history-CGP-1Xy2.js +468 -0
  81. package/dist/pubJiaosezukongzhiqi-CvYfc8Uz.js +57 -0
  82. package/dist/request-DQLgc7lT.js +5 -0
  83. package/dist/routes/index.d.ts +14 -0
  84. package/dist/routes/modules/authority.manage.menu.d.ts +3 -0
  85. package/dist/routes/modules/log.manage.menu.d.ts +3 -0
  86. package/dist/routes/modules/safe.manage.menu.d.ts +3 -0
  87. package/dist/routes/modules/stylesetting.manage.menu.d.ts +3 -0
  88. package/dist/routes/modules/system.manage.menu.d.ts +3 -0
  89. package/dist/setItem-DkOvmWXP.js +152 -0
  90. package/dist/shujuquanxianzhubiaokongzhiqi-DyNgf1y6.js +65 -0
  91. package/dist/stores/index.d.ts +1 -0
  92. package/dist/style.css +1 -0
  93. package/dist/useAppAndResource-D_b19V4t.js +55 -0
  94. package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +14 -0
  95. package/dist/views/blackWhiteList/enum.d.ts +7 -0
  96. package/dist/views/blackWhiteList/index.vue.d.ts +1535 -0
  97. package/dist/views/blackWhiteList/types.d.ts +4 -0
  98. package/dist/views/breadcrumb_setting/animationData.d.ts +7 -0
  99. package/dist/views/breadcrumb_setting/index.vue.d.ts +2 -0
  100. package/dist/views/components/HCheckList.vue.d.ts +20 -0
  101. package/dist/views/components/animation_item.vue.d.ts +14 -0
  102. package/dist/views/components/setItem.vue.d.ts +61 -0
  103. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +172 -0
  104. package/dist/views/data-permission/enum.d.ts +34 -0
  105. package/dist/views/data-permission/index.vue.d.ts +1691 -0
  106. package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +12 -0
  107. package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +12 -0
  108. package/dist/views/dictionary/enum.d.ts +8 -0
  109. package/dist/views/dictionary/index.vue.d.ts +1532 -0
  110. package/dist/views/dictionary/itemlist.vue.d.ts +1532 -0
  111. package/dist/views/group/components/drawerGroup.vue.d.ts +12 -0
  112. package/dist/views/group/enum.d.ts +21 -0
  113. package/dist/views/group/index.vue.d.ts +1532 -0
  114. package/dist/views/layout_setting/index.vue.d.ts +2 -0
  115. package/dist/views/log_center/components/browserType.vue.d.ts +12 -0
  116. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +14 -0
  117. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +14 -0
  118. package/dist/views/log_center/login_history.vue.d.ts +1511 -0
  119. package/dist/views/log_center/operate_history.vue.d.ts +1511 -0
  120. package/dist/views/menu_setting/animationData.d.ts +13 -0
  121. package/dist/views/menu_setting/index.vue.d.ts +2 -0
  122. package/dist/views/organization/components/drawerOrganization.vue.d.ts +12 -0
  123. package/dist/views/organization/components/drawerRole.vue.d.ts +36 -0
  124. package/dist/views/organization/components/roleSelect.vue.d.ts +14 -0
  125. package/dist/views/organization/enum.d.ts +25 -0
  126. package/dist/views/organization/index.vue.d.ts +73 -0
  127. package/dist/views/other_setting/animationData.d.ts +7 -0
  128. package/dist/views/other_setting/index.vue.d.ts +2 -0
  129. package/dist/views/other_setting/interface.d.ts +23 -0
  130. package/dist/views/page_animation_setting/animationData.d.ts +11 -0
  131. package/dist/views/page_animation_setting/index.vue.d.ts +2 -0
  132. package/dist/views/page_w_setting/index.vue.d.ts +2 -0
  133. package/dist/views/position/components/drawerPosition.vue.d.ts +12 -0
  134. package/dist/views/position/enum.d.ts +8 -0
  135. package/dist/views/position/index.vue.d.ts +1532 -0
  136. package/dist/views/region/components/drawerRegion.vue.d.ts +12 -0
  137. package/dist/views/region/enum.d.ts +22 -0
  138. package/dist/views/region/index.vue.d.ts +1533 -0
  139. package/dist/views/resource/components/ResourceEdit.vue.d.ts +16 -0
  140. package/dist/views/resource/components/RoleRelation.vue.d.ts +6 -0
  141. package/dist/views/resource/enum.d.ts +30 -0
  142. package/dist/views/resource/index.vue.d.ts +1549 -0
  143. package/dist/views/resource/interface.d.ts +6 -0
  144. package/dist/views/role/components/ResourceRelation.vue.d.ts +1515 -0
  145. package/dist/views/role/components/drawerRole.vue.d.ts +49 -0
  146. package/dist/views/role/enum.d.ts +25 -0
  147. package/dist/views/role/index.vue.d.ts +3090 -0
  148. package/dist/views/role/interface.d.ts +6 -0
  149. package/dist/views/role_group/components/drawerRole.vue.d.ts +37 -0
  150. package/dist/views/role_group/components/roleSelect.vue.d.ts +14 -0
  151. package/dist/views/role_group/enum.d.ts +21 -0
  152. package/dist/views/role_group/index.vue.d.ts +1557 -0
  153. package/dist/views/role_group/interface.d.ts +6 -0
  154. package/dist/views/safe_setting/index.vue.d.ts +4 -0
  155. package/dist/views/tabbar_setting/animationData.d.ts +11 -0
  156. package/dist/views/tabbar_setting/index.vue.d.ts +2 -0
  157. package/dist/views/tenant/components/TenantEdit.vue.d.ts +50 -0
  158. package/dist/views/tenant/enum.d.ts +7 -0
  159. package/dist/views/tenant/index.vue.d.ts +1570 -0
  160. package/dist/views/tenant/interface.d.ts +6 -0
  161. package/dist/views/theme_setting/index.vue.d.ts +2 -0
  162. package/dist/views/toolbar_setting/animationData.d.ts +17 -0
  163. package/dist/views/toolbar_setting/index.vue.d.ts +2 -0
  164. package/dist/views/user/components/OrgAndPosition.vue.d.ts +14 -0
  165. package/dist/views/user/components/UserAuthorization.vue.d.ts +39 -0
  166. package/dist/views/user/components/UserEdit.vue.d.ts +16 -0
  167. package/dist/views/user/components/roleSelect.vue.d.ts +14 -0
  168. package/dist/views/user/enum.d.ts +13 -0
  169. package/dist/views/user/index.vue.d.ts +1586 -0
  170. package/dist/views/user/interface.d.ts +39 -0
  171. package/dist/views/watermark_setting/animationData.d.ts +3 -0
  172. package/dist/views/watermark_setting/index.vue.d.ts +31 -0
  173. package/dist/xitongpeizhifuwu-C1Vm-W1B.js +23 -0
  174. package/dist/zidianfuwu-yCWHhOfO.js +65 -0
  175. package/dist/ziyuanjiekou-DhrAbneq.js +69 -0
  176. package/dist/zuzhijiaosebiaokongzhiqi-B1g74RqL.js +28 -0
  177. package/dist/zuzhijiekou-PeZuFtCO.js +85 -0
  178. package/package.json +52 -0
  179. package/src/api/modules/assist/gonggaofuwu.ts +109 -0
  180. package/src/api/modules/assist/index.ts +5 -0
  181. package/src/api/modules/assist/qunzujiekou.ts +95 -0
  182. package/src/api/modules/assist/quyujiekou.ts +97 -0
  183. package/src/api/modules/assist/typings.d.ts +364 -0
  184. package/src/api/modules/configData/heibaimingdanfuwu.ts +95 -0
  185. package/src/api/modules/configData/index.ts +5 -0
  186. package/src/api/modules/configData/typings.d.ts +347 -0
  187. package/src/api/modules/configData/xitongpeizhifuwu.ts +322 -0
  188. package/src/api/modules/configData/zidianfuwu.ts +151 -0
  189. package/src/api/modules/log/caozuorizhifuwu.ts +37 -0
  190. package/src/api/modules/log/denglurizhifuwu.ts +37 -0
  191. package/src/api/modules/log/index.ts +4 -0
  192. package/src/api/modules/log/typings.d.ts +179 -0
  193. package/src/api/modules/rbac/gangweijiekou.ts +93 -0
  194. package/src/api/modules/rbac/index.ts +13 -0
  195. package/src/api/modules/rbac/jiaosejiekou.ts +124 -0
  196. package/src/api/modules/rbac/pubJiaosezukongzhiqi.ts +113 -0
  197. package/src/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +186 -0
  198. package/src/api/modules/rbac/typings.d.ts +2001 -0
  199. package/src/api/modules/rbac/yonghujiekou.ts +225 -0
  200. package/src/api/modules/rbac/yonghushoucangbiaojiekou.ts +93 -0
  201. package/src/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +72 -0
  202. package/src/api/modules/rbac/ziyuanjiekou.ts +223 -0
  203. package/src/api/modules/rbac/zuhuguanlijiekou.ts +91 -0
  204. package/src/api/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +76 -0
  205. package/src/api/modules/rbac/zuzhijiekou.ts +171 -0
  206. package/src/api/request.ts +3 -0
  207. package/src/assets/icons/403.svg +1 -0
  208. package/src/assets/icons/403_dark.svg +1 -0
  209. package/src/assets/icons/404.svg +1 -0
  210. package/src/assets/icons/404_dark.svg +1 -0
  211. package/src/assets/icons/add-child.svg +1 -0
  212. package/src/assets/icons/authority.svg +1 -0
  213. package/src/assets/icons/authorize.svg +1 -0
  214. package/src/assets/icons/blacklist-disable.svg +1 -0
  215. package/src/assets/icons/blacklist-enable.svg +1 -0
  216. package/src/assets/icons/browser-360.svg +1 -0
  217. package/src/assets/icons/browser-chrome.svg +1 -0
  218. package/src/assets/icons/browser-edge.svg +1 -0
  219. package/src/assets/icons/browser-ie.svg +1 -0
  220. package/src/assets/icons/browser-other.svg +1 -0
  221. package/src/assets/icons/browser-qq.svg +1 -0
  222. package/src/assets/icons/browser-safari.svg +1 -0
  223. package/src/assets/icons/browser-uc.svg +1 -0
  224. package/src/assets/icons/change-org.svg +1 -0
  225. package/src/assets/icons/edit.svg +1 -0
  226. package/src/assets/icons/empty-data.svg +1 -0
  227. package/src/assets/icons/favorites.svg +1 -0
  228. package/src/assets/icons/icard.svg +1 -0
  229. package/src/assets/icons/icon_animation.svg +1 -0
  230. package/src/assets/icons/icon_breadcrumb.svg +1 -0
  231. package/src/assets/icons/icon_copyright.svg +1 -0
  232. package/src/assets/icons/icon_jt.svg +1 -0
  233. package/src/assets/icons/icon_layout.svg +1 -0
  234. package/src/assets/icons/icon_mainpage.svg +1 -0
  235. package/src/assets/icons/icon_menu.svg +1 -0
  236. package/src/assets/icons/icon_page_size.svg +1 -0
  237. package/src/assets/icons/icon_position_type.svg +1 -0
  238. package/src/assets/icons/icon_safe_manage.svg +1 -0
  239. package/src/assets/icons/icon_screen_scale.svg +6 -0
  240. package/src/assets/icons/icon_system_manage.svg +1 -0
  241. package/src/assets/icons/icon_tabbar.svg +1 -0
  242. package/src/assets/icons/icon_toolbar.svg +1 -0
  243. package/src/assets/icons/icon_topbar.svg +1 -0
  244. package/src/assets/icons/icon_watermark.svg +1 -0
  245. package/src/assets/icons/image-load-fail.svg +1 -0
  246. package/src/assets/icons/log-center.svg +1 -0
  247. package/src/assets/icons/logo-sig.svg +1 -0
  248. package/src/assets/icons/logo.svg +1 -0
  249. package/src/assets/icons/mima.svg +1 -0
  250. package/src/assets/icons/not-data.svg +1 -0
  251. package/src/assets/icons/org-main.svg +1 -0
  252. package/src/assets/icons/org-unmain.svg +1 -0
  253. package/src/assets/icons/process-management.svg +1 -0
  254. package/src/assets/icons/project-management.svg +1 -0
  255. package/src/assets/icons/rbac.svg +1 -0
  256. package/src/assets/icons/remove.svg +1 -0
  257. package/src/assets/icons/resource-app.svg +1 -0
  258. package/src/assets/icons/resource-btn.svg +1 -0
  259. package/src/assets/icons/resource-index.svg +1 -0
  260. package/src/assets/icons/resource-menu.svg +1 -0
  261. package/src/assets/icons/resource-nonmenu.svg +1 -0
  262. package/src/assets/icons/setting-manage.svg +1 -0
  263. package/src/assets/icons/test.svg +1 -0
  264. package/src/assets/icons/theme-check-mark.svg +1 -0
  265. package/src/assets/icons/theme-title.svg +1 -0
  266. package/src/assets/icons/toolbar-collapse.svg +1 -0
  267. package/src/assets/icons/tree_icon.svg +1 -0
  268. package/src/assets/icons/tree_icon_checked.svg +1 -0
  269. package/src/assets/icons/view.svg +1 -0
  270. package/src/assets/icons/workbench.svg +1 -0
  271. package/src/assets/icons/zddata.svg +1 -0
  272. package/src/assets/icons/zy_checked.svg +1 -0
  273. package/src/assets/icons/zy_default.svg +1 -0
  274. package/src/assets/images/layout/item1.webp +0 -0
  275. package/src/assets/images/layout/item1_dark.webp +0 -0
  276. package/src/assets/images/layout/item2.webp +0 -0
  277. package/src/assets/images/layout/item2_dark.webp +0 -0
  278. package/src/assets/images/layout/item3.webp +0 -0
  279. package/src/assets/images/layout/item3_dark.webp +0 -0
  280. package/src/assets/images/layout/item4.webp +0 -0
  281. package/src/assets/images/layout/item4_dark.webp +0 -0
  282. package/src/assets/images/layout/item5.webp +0 -0
  283. package/src/assets/images/layout/item5_dark.webp +0 -0
  284. package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
  285. package/src/assets/images/page-width/auto.webp +0 -0
  286. package/src/assets/images/page-width/auto_dark.webp +0 -0
  287. package/src/assets/images/page-width/auto_min_w.webp +0 -0
  288. package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
  289. package/src/assets/images/page-width/icon_auto.webp +0 -0
  290. package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
  291. package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
  292. package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
  293. package/src/assets/images/page-width/icon_middle.webp +0 -0
  294. package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
  295. package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
  296. package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
  297. package/src/assets/images/page-width/middle.webp +0 -0
  298. package/src/assets/images/page-width/middle_dark.webp +0 -0
  299. package/src/assets/images/page-width/middle_max_w.webp +0 -0
  300. package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
  301. package/src/assets/lottie/breadcrumb/dark/enable.json +1 -0
  302. package/src/assets/lottie/breadcrumb/dark/enableMainMenu.json +1 -0
  303. package/src/assets/lottie/breadcrumb/dark/style.json +1 -0
  304. package/src/assets/lottie/breadcrumb/light/enable.json +1 -0
  305. package/src/assets/lottie/breadcrumb/light/enableMainMenu.json +1 -0
  306. package/src/assets/lottie/breadcrumb/light/style.json +1 -0
  307. package/src/assets/lottie/layout/data-test.json +1 -0
  308. package/src/assets/lottie/layout/data.json +1 -0
  309. package/src/assets/lottie/menu/dark/enableHotkeys.json +1 -0
  310. package/src/assets/lottie/menu/dark/enableSubMenuCollapseButton.json +1 -0
  311. package/src/assets/lottie/menu/dark/isRounded.json +1 -0
  312. package/src/assets/lottie/menu/dark/menuActiveStyle.json +1 -0
  313. package/src/assets/lottie/menu/dark/subMenuCollapse.json +1 -0
  314. package/src/assets/lottie/menu/dark/subMenuUniqueOpened.json +1 -0
  315. package/src/assets/lottie/menu/light/enableHotkeys.json +1 -0
  316. package/src/assets/lottie/menu/light/enableSubMenuCollapseButton.json +1 -0
  317. package/src/assets/lottie/menu/light/isRounded.json +1 -0
  318. package/src/assets/lottie/menu/light/menuActiveStyle.json +1 -0
  319. package/src/assets/lottie/menu/light/subMenuCollapse.json +1 -0
  320. package/src/assets/lottie/menu/light/subMenuUniqueOpened.json +1 -0
  321. package/src/assets/lottie/other/dark/enableCopyright.json +1 -0
  322. package/src/assets/lottie/other/dark/enableHotkeys.json +1 -0
  323. package/src/assets/lottie/other/dark/switchTabbarAndToolbar.json +1 -0
  324. package/src/assets/lottie/other/light/enableCopyright.json +1 -0
  325. package/src/assets/lottie/other/light/enableHotkeys.json +1 -0
  326. package/src/assets/lottie/other/light/switchTabbarAndToolbar.json +1 -0
  327. package/src/assets/lottie/page_animation/dark/fadeinout.json +1 -0
  328. package/src/assets/lottie/page_animation/dark/fadeinout_old.json +1 -0
  329. package/src/assets/lottie/page_animation/dark/tobottom.json +1 -0
  330. package/src/assets/lottie/page_animation/dark/tobottom_old.json +1 -0
  331. package/src/assets/lottie/page_animation/dark/toleft.json +1 -0
  332. package/src/assets/lottie/page_animation/dark/toleft_old.json +1 -0
  333. package/src/assets/lottie/page_animation/dark/toright.json +1 -0
  334. package/src/assets/lottie/page_animation/dark/toright_old.json +1 -0
  335. package/src/assets/lottie/page_animation/dark/totop.json +1 -0
  336. package/src/assets/lottie/page_animation/dark/totop_old.json +1 -0
  337. package/src/assets/lottie/page_animation/light/fadeinout.json +1 -0
  338. package/src/assets/lottie/page_animation/light/tobottom.json +1 -0
  339. package/src/assets/lottie/page_animation/light/toleft.json +1 -0
  340. package/src/assets/lottie/page_animation/light/toright.json +1 -0
  341. package/src/assets/lottie/page_animation/light/totop.json +1 -0
  342. package/src/assets/lottie/tabbar/dark/enable.json +1 -0
  343. package/src/assets/lottie/tabbar/dark/enableHotkeys.json +1 -0
  344. package/src/assets/lottie/tabbar/dark/enableIcon.json +1 -0
  345. package/src/assets/lottie/tabbar/dark/enableMemory.json +1 -0
  346. package/src/assets/lottie/tabbar/dark/style.json +1 -0
  347. package/src/assets/lottie/tabbar/light/enable.json +1 -0
  348. package/src/assets/lottie/tabbar/light/enableHotkeys.json +1 -0
  349. package/src/assets/lottie/tabbar/light/enableIcon.json +1 -0
  350. package/src/assets/lottie/tabbar/light/enableMemory.json +1 -0
  351. package/src/assets/lottie/tabbar/light/style.json +1 -0
  352. package/src/assets/lottie/toolbar/dark/enableColorScheme.json +1 -0
  353. package/src/assets/lottie/toolbar/dark/enableFullscreen.json +1 -0
  354. package/src/assets/lottie/toolbar/dark/enableI18n.json +1 -0
  355. package/src/assets/lottie/toolbar/dark/enableNotification.json +1 -0
  356. package/src/assets/lottie/toolbar/dark/enablePageReload.json +1 -0
  357. package/src/assets/lottie/toolbar/dark/enableUserPreferences.json +1 -0
  358. package/src/assets/lottie/toolbar/dark/navSearchEnable.json +1 -0
  359. package/src/assets/lottie/toolbar/dark/navSearchEnableHotkeys.json +1 -0
  360. package/src/assets/lottie/toolbar/light/enableColorScheme.json +1 -0
  361. package/src/assets/lottie/toolbar/light/enableFullscreen.json +1 -0
  362. package/src/assets/lottie/toolbar/light/enableI18n.json +1 -0
  363. package/src/assets/lottie/toolbar/light/enableNotification.json +1 -0
  364. package/src/assets/lottie/toolbar/light/enablePageReload.json +1 -0
  365. package/src/assets/lottie/toolbar/light/enableUserPreferences.json +1 -0
  366. package/src/assets/lottie/toolbar/light/navSearchEnable.json +1 -0
  367. package/src/assets/lottie/toolbar/light/navSearchEnableHotkeys.json +1 -0
  368. package/src/assets/lottie/watermark/dark/enableWatermark.json +1 -0
  369. package/src/assets/lottie/watermark/light/enableWatermark.json +1 -0
  370. package/src/assets/styles/vxe-table.css +13 -0
  371. package/src/components/GroupSelector/index.vue +305 -0
  372. package/src/components/GroupSelector/interface.ts +6 -0
  373. package/src/components/OrgTree/index.vue +91 -0
  374. package/src/components/OrgUserSelector/OrgSelector.vue +135 -0
  375. package/src/components/OrgUserSelector/UserSelector.vue +164 -0
  376. package/src/components/OrgUserSelector/index.ts +47 -0
  377. package/src/components/OrgUserSelector/provider.ts +373 -0
  378. package/src/components/ResourceSelector/enum.ts +5 -0
  379. package/src/components/ResourceSelector/hooks/useAppAndResource.ts +96 -0
  380. package/src/components/ResourceSelector/index.vue +431 -0
  381. package/src/composables/useLottie.ts +65 -0
  382. package/src/index.ts +31 -0
  383. package/src/interface.ts +54 -0
  384. package/src/routes/index.ts +156 -0
  385. package/src/routes/modules/authority.manage.menu.ts +105 -0
  386. package/src/routes/modules/log.manage.menu.ts +45 -0
  387. package/src/routes/modules/safe.manage.menu.ts +71 -0
  388. package/src/routes/modules/stylesetting.manage.menu.ts +130 -0
  389. package/src/routes/modules/system.manage.menu.ts +92 -0
  390. package/src/stores/index.ts +1 -0
  391. package/src/views/blackWhiteList/components/drawerBlackWhiteList.vue +132 -0
  392. package/src/views/blackWhiteList/enum.ts +7 -0
  393. package/src/views/blackWhiteList/index.vue +309 -0
  394. package/src/views/blackWhiteList/types.ts +4 -0
  395. package/src/views/breadcrumb_setting/animationData.ts +15 -0
  396. package/src/views/breadcrumb_setting/index.vue +147 -0
  397. package/src/views/components/HCheckList.vue +47 -0
  398. package/src/views/components/animation_item.vue +37 -0
  399. package/src/views/components/setItem.vue +126 -0
  400. package/src/views/data-permission/components/createAndEditDataPermission.vue +354 -0
  401. package/src/views/data-permission/enum.ts +59 -0
  402. package/src/views/data-permission/index.vue +190 -0
  403. package/src/views/dictionary/components/drawerDictionary.vue +108 -0
  404. package/src/views/dictionary/components/drawerDictionaryItem.vue +115 -0
  405. package/src/views/dictionary/enum.ts +8 -0
  406. package/src/views/dictionary/index.vue +194 -0
  407. package/src/views/dictionary/itemlist.vue +164 -0
  408. package/src/views/group/components/drawerGroup.vue +177 -0
  409. package/src/views/group/enum.ts +25 -0
  410. package/src/views/group/index.vue +207 -0
  411. package/src/views/layout_setting/index.vue +306 -0
  412. package/src/views/log_center/components/browserType.vue +35 -0
  413. package/src/views/log_center/components/loginHistoryDetail.vue +71 -0
  414. package/src/views/log_center/components/operateHistoryDetail.vue +80 -0
  415. package/src/views/log_center/login_history.vue +239 -0
  416. package/src/views/log_center/operate_history.vue +233 -0
  417. package/src/views/menu_setting/animationData.ts +27 -0
  418. package/src/views/menu_setting/index.vue +207 -0
  419. package/src/views/organization/components/drawerOrganization.vue +161 -0
  420. package/src/views/organization/components/drawerRole.vue +159 -0
  421. package/src/views/organization/components/roleSelect.vue +258 -0
  422. package/src/views/organization/enum.ts +26 -0
  423. package/src/views/organization/index.vue +516 -0
  424. package/src/views/other_setting/animationData.ts +15 -0
  425. package/src/views/other_setting/index.vue +250 -0
  426. package/src/views/other_setting/interface.ts +26 -0
  427. package/src/views/page_animation_setting/animationData.ts +23 -0
  428. package/src/views/page_animation_setting/index.vue +200 -0
  429. package/src/views/page_w_setting/index.vue +238 -0
  430. package/src/views/position/components/drawerPosition.vue +131 -0
  431. package/src/views/position/enum.ts +8 -0
  432. package/src/views/position/index.vue +167 -0
  433. package/src/views/region/components/drawerRegion.vue +143 -0
  434. package/src/views/region/enum.ts +24 -0
  435. package/src/views/region/index.vue +246 -0
  436. package/src/views/resource/components/ResourceEdit.vue +209 -0
  437. package/src/views/resource/components/RoleRelation.vue +100 -0
  438. package/src/views/resource/enum.ts +35 -0
  439. package/src/views/resource/index.vue +237 -0
  440. package/src/views/resource/interface.ts +6 -0
  441. package/src/views/role/components/ResourceRelation.vue +113 -0
  442. package/src/views/role/components/drawerRole.vue +191 -0
  443. package/src/views/role/enum.ts +26 -0
  444. package/src/views/role/index.vue +183 -0
  445. package/src/views/role/interface.ts +6 -0
  446. package/src/views/role_group/components/ResourceRelation.vue +91 -0
  447. package/src/views/role_group/components/drawerRole.vue +153 -0
  448. package/src/views/role_group/components/roleSelect.vue +224 -0
  449. package/src/views/role_group/enum.ts +22 -0
  450. package/src/views/role_group/index.vue +170 -0
  451. package/src/views/role_group/interface.ts +6 -0
  452. package/src/views/safe_setting/index.vue +237 -0
  453. package/src/views/tabbar_setting/animationData.ts +23 -0
  454. package/src/views/tabbar_setting/index.vue +186 -0
  455. package/src/views/tenant/components/TenantEdit.vue +219 -0
  456. package/src/views/tenant/enum.ts +7 -0
  457. package/src/views/tenant/index.vue +185 -0
  458. package/src/views/tenant/interface.ts +4 -0
  459. package/src/views/theme_setting/index.vue +465 -0
  460. package/src/views/toolbar_setting/animationData.ts +42 -0
  461. package/src/views/toolbar_setting/index.vue +189 -0
  462. package/src/views/user/components/OrgAndPosition.vue +156 -0
  463. package/src/views/user/components/UserAuthorization.vue +260 -0
  464. package/src/views/user/components/UserEdit.vue +267 -0
  465. package/src/views/user/components/roleSelect.vue +258 -0
  466. package/src/views/user/enum.ts +13 -0
  467. package/src/views/user/index.vue +266 -0
  468. package/src/views/user/interface.ts +43 -0
  469. package/src/views/watermark_setting/animationData.ts +7 -0
  470. package/src/views/watermark_setting/index.vue +236 -0
@@ -0,0 +1,872 @@
1
+ import { Drawer as _e, Form as be, FormItem as De, Input as ye, RangePicker as xe, Switch as Me, Button as he, Tooltip as Te, Space as ge } from "ant-design-vue/es";
2
+ import { useAuth as we, PubinfoIcon as Se } from "pubinfo";
3
+ import { PlusCircleOutlined as ke } from "@ant-design/icons-vue";
4
+ import { defineComponent as ve, reactive as Ie, ref as J, computed as Ce, onMounted as Oe, createBlock as oe, openBlock as W, unref as d, isRef as Ee, withCtx as b, createVNode as p, createTextVNode as te, createElementVNode as ue, toDisplayString as Z, createElementBlock as G, Fragment as ce, renderList as Re, resolveDirective as Ye, createCommentVNode as Pe, withDirectives as le } from "vue";
5
+ import { b as ne } from "./request-DQLgc7lT.js";
6
+ import { ProTable as Ae } from "@pubinfo/pro-components";
7
+ import { message as $e, Badge as de, Modal as Ue } from "ant-design-vue";
8
+ import { g as je } from "./_commonjsHelpers-C6fGbg64.js";
9
+ import { _ as We } from "./index-BhcAk-IH.js";
10
+ import { h as Fe } from "./ziyuanjiekou-DhrAbneq.js";
11
+ import { c as fe } from "./cloneDeep-BI4WNBQ9.js";
12
+ import { u as pe } from "./index-Dm4sOX43.js";
13
+ function Le(D, A) {
14
+ return ne.Post("/rbac/tenant/pubTenantAdd", D, {
15
+ headers: {
16
+ "Content-Type": "application/json"
17
+ },
18
+ ...A || {}
19
+ });
20
+ }
21
+ function He(D, A) {
22
+ return ne.Get("/rbac/tenant/pubTenantDelete", {
23
+ params: {
24
+ ...D
25
+ }
26
+ });
27
+ }
28
+ function Ve(D, A) {
29
+ return ne.Get("/rbac/tenant/pubTenantInfo", {
30
+ params: {
31
+ ...D
32
+ }
33
+ });
34
+ }
35
+ function qe(D, A) {
36
+ return ne.Post("/rbac/tenant/pubTenantPage", D, {
37
+ headers: {
38
+ "Content-Type": "application/json"
39
+ }
40
+ });
41
+ }
42
+ function Be(D, A) {
43
+ return ne.Post("/rbac/tenant/pubTenantUpdate", D, {
44
+ headers: {
45
+ "Content-Type": "application/json"
46
+ },
47
+ ...A || {}
48
+ });
49
+ }
50
+ var ie = { exports: {} }, Ne = ie.exports, me;
51
+ function ze() {
52
+ return me || (me = 1, function(D, A) {
53
+ (function(L, U) {
54
+ D.exports = U();
55
+ })(Ne, function() {
56
+ var L = 1e3, U = 6e4, V = 36e5, M = "millisecond", R = "second", Y = "minute", C = "hour", u = "day", y = "week", _ = "month", w = "quarter", v = "year", O = "date", S = "Invalid Date", j = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
57
+ var r = ["th", "st", "nd", "rd"], e = s % 100;
58
+ return "[" + s + (r[(e - 20) % 10] || r[e] || r[0]) + "]";
59
+ } }, K = function(s, r, e) {
60
+ var n = String(s);
61
+ return !n || n.length >= r ? s : "" + Array(r + 1 - n.length).join(e) + s;
62
+ }, re = { s: K, z: function(s) {
63
+ var r = -s.utcOffset(), e = Math.abs(r), n = Math.floor(e / 60), t = e % 60;
64
+ return (r <= 0 ? "+" : "-") + K(n, 2, "0") + ":" + K(t, 2, "0");
65
+ }, m: function s(r, e) {
66
+ if (r.date() < e.date()) return -s(e, r);
67
+ var n = 12 * (e.year() - r.year()) + (e.month() - r.month()), t = r.clone().add(n, _), i = e - t < 0, o = r.clone().add(n + (i ? -1 : 1), _);
68
+ return +(-(n + (e - t) / (i ? t - o : o - t)) || 0);
69
+ }, a: function(s) {
70
+ return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
71
+ }, p: function(s) {
72
+ return { M: _, y: v, w: y, d: u, D: O, h: C, m: Y, s: R, ms: M, Q: w }[s] || String(s || "").toLowerCase().replace(/s$/, "");
73
+ }, u: function(s) {
74
+ return s === void 0;
75
+ } }, h = "en", a = {};
76
+ a[h] = Q;
77
+ var c = "$isDayjsObject", $ = function(s) {
78
+ return s instanceof N || !(!s || !s[c]);
79
+ }, E = function s(r, e, n) {
80
+ var t;
81
+ if (!r) return h;
82
+ if (typeof r == "string") {
83
+ var i = r.toLowerCase();
84
+ a[i] && (t = i), e && (a[i] = e, t = i);
85
+ var o = r.split("-");
86
+ if (!t && o.length > 1) return s(o[0]);
87
+ } else {
88
+ var f = r.name;
89
+ a[f] = r, t = f;
90
+ }
91
+ return !n && t && (h = t), t || !n && h;
92
+ }, m = function(s, r) {
93
+ if ($(s)) return s.clone();
94
+ var e = typeof r == "object" ? r : {};
95
+ return e.date = s, e.args = arguments, new N(e);
96
+ }, l = re;
97
+ l.l = E, l.i = $, l.w = function(s, r) {
98
+ return m(s, { locale: r.$L, utc: r.$u, x: r.$x, $offset: r.$offset });
99
+ };
100
+ var N = function() {
101
+ function s(e) {
102
+ this.$L = E(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[c] = !0;
103
+ }
104
+ var r = s.prototype;
105
+ return r.parse = function(e) {
106
+ this.$d = function(n) {
107
+ var t = n.date, i = n.utc;
108
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
109
+ if (l.u(t)) return /* @__PURE__ */ new Date();
110
+ if (t instanceof Date) return new Date(t);
111
+ if (typeof t == "string" && !/Z$/i.test(t)) {
112
+ var o = t.match(j);
113
+ if (o) {
114
+ var f = o[2] - 1 || 0, g = (o[7] || "0").substring(0, 3);
115
+ return i ? new Date(Date.UTC(o[1], f, o[3] || 1, o[4] || 0, o[5] || 0, o[6] || 0, g)) : new Date(o[1], f, o[3] || 1, o[4] || 0, o[5] || 0, o[6] || 0, g);
116
+ }
117
+ }
118
+ return new Date(t);
119
+ }(e), this.init();
120
+ }, r.init = function() {
121
+ var e = this.$d;
122
+ this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
123
+ }, r.$utils = function() {
124
+ return l;
125
+ }, r.isValid = function() {
126
+ return this.$d.toString() !== S;
127
+ }, r.isSame = function(e, n) {
128
+ var t = m(e);
129
+ return this.startOf(n) <= t && t <= this.endOf(n);
130
+ }, r.isAfter = function(e, n) {
131
+ return m(e) < this.startOf(n);
132
+ }, r.isBefore = function(e, n) {
133
+ return this.endOf(n) < m(e);
134
+ }, r.$g = function(e, n, t) {
135
+ return l.u(e) ? this[n] : this.set(t, e);
136
+ }, r.unix = function() {
137
+ return Math.floor(this.valueOf() / 1e3);
138
+ }, r.valueOf = function() {
139
+ return this.$d.getTime();
140
+ }, r.startOf = function(e, n) {
141
+ var t = this, i = !!l.u(n) || n, o = l.p(e), f = function(B, k) {
142
+ var H = l.w(t.$u ? Date.UTC(t.$y, k, B) : new Date(t.$y, k, B), t);
143
+ return i ? H : H.endOf(u);
144
+ }, g = function(B, k) {
145
+ return l.w(t.toDate()[B].apply(t.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(k)), t);
146
+ }, x = this.$W, T = this.$M, P = this.$D, z = "set" + (this.$u ? "UTC" : "");
147
+ switch (o) {
148
+ case v:
149
+ return i ? f(1, 0) : f(31, 11);
150
+ case _:
151
+ return i ? f(1, T) : f(0, T + 1);
152
+ case y:
153
+ var q = this.$locale().weekStart || 0, X = (x < q ? x + 7 : x) - q;
154
+ return f(i ? P - X : P + (6 - X), T);
155
+ case u:
156
+ case O:
157
+ return g(z + "Hours", 0);
158
+ case C:
159
+ return g(z + "Minutes", 1);
160
+ case Y:
161
+ return g(z + "Seconds", 2);
162
+ case R:
163
+ return g(z + "Milliseconds", 3);
164
+ default:
165
+ return this.clone();
166
+ }
167
+ }, r.endOf = function(e) {
168
+ return this.startOf(e, !1);
169
+ }, r.$set = function(e, n) {
170
+ var t, i = l.p(e), o = "set" + (this.$u ? "UTC" : ""), f = (t = {}, t[u] = o + "Date", t[O] = o + "Date", t[_] = o + "Month", t[v] = o + "FullYear", t[C] = o + "Hours", t[Y] = o + "Minutes", t[R] = o + "Seconds", t[M] = o + "Milliseconds", t)[i], g = i === u ? this.$D + (n - this.$W) : n;
171
+ if (i === _ || i === v) {
172
+ var x = this.clone().set(O, 1);
173
+ x.$d[f](g), x.init(), this.$d = x.set(O, Math.min(this.$D, x.daysInMonth())).$d;
174
+ } else f && this.$d[f](g);
175
+ return this.init(), this;
176
+ }, r.set = function(e, n) {
177
+ return this.clone().$set(e, n);
178
+ }, r.get = function(e) {
179
+ return this[l.p(e)]();
180
+ }, r.add = function(e, n) {
181
+ var t, i = this;
182
+ e = Number(e);
183
+ var o = l.p(n), f = function(T) {
184
+ var P = m(i);
185
+ return l.w(P.date(P.date() + Math.round(T * e)), i);
186
+ };
187
+ if (o === _) return this.set(_, this.$M + e);
188
+ if (o === v) return this.set(v, this.$y + e);
189
+ if (o === u) return f(1);
190
+ if (o === y) return f(7);
191
+ var g = (t = {}, t[Y] = U, t[C] = V, t[R] = L, t)[o] || 1, x = this.$d.getTime() + e * g;
192
+ return l.w(x, this);
193
+ }, r.subtract = function(e, n) {
194
+ return this.add(-1 * e, n);
195
+ }, r.format = function(e) {
196
+ var n = this, t = this.$locale();
197
+ if (!this.isValid()) return t.invalidDate || S;
198
+ var i = e || "YYYY-MM-DDTHH:mm:ssZ", o = l.z(this), f = this.$H, g = this.$m, x = this.$M, T = t.weekdays, P = t.months, z = t.meridiem, q = function(k, H, ee, se) {
199
+ return k && (k[H] || k(n, i)) || ee[H].slice(0, se);
200
+ }, X = function(k) {
201
+ return l.s(f % 12 || 12, k, "0");
202
+ }, B = z || function(k, H, ee) {
203
+ var se = k < 12 ? "AM" : "PM";
204
+ return ee ? se.toLowerCase() : se;
205
+ };
206
+ return i.replace(F, function(k, H) {
207
+ return H || function(ee) {
208
+ switch (ee) {
209
+ case "YY":
210
+ return String(n.$y).slice(-2);
211
+ case "YYYY":
212
+ return l.s(n.$y, 4, "0");
213
+ case "M":
214
+ return x + 1;
215
+ case "MM":
216
+ return l.s(x + 1, 2, "0");
217
+ case "MMM":
218
+ return q(t.monthsShort, x, P, 3);
219
+ case "MMMM":
220
+ return q(P, x);
221
+ case "D":
222
+ return n.$D;
223
+ case "DD":
224
+ return l.s(n.$D, 2, "0");
225
+ case "d":
226
+ return String(n.$W);
227
+ case "dd":
228
+ return q(t.weekdaysMin, n.$W, T, 2);
229
+ case "ddd":
230
+ return q(t.weekdaysShort, n.$W, T, 3);
231
+ case "dddd":
232
+ return T[n.$W];
233
+ case "H":
234
+ return String(f);
235
+ case "HH":
236
+ return l.s(f, 2, "0");
237
+ case "h":
238
+ return X(1);
239
+ case "hh":
240
+ return X(2);
241
+ case "a":
242
+ return B(f, g, !0);
243
+ case "A":
244
+ return B(f, g, !1);
245
+ case "m":
246
+ return String(g);
247
+ case "mm":
248
+ return l.s(g, 2, "0");
249
+ case "s":
250
+ return String(n.$s);
251
+ case "ss":
252
+ return l.s(n.$s, 2, "0");
253
+ case "SSS":
254
+ return l.s(n.$ms, 3, "0");
255
+ case "Z":
256
+ return o;
257
+ }
258
+ return null;
259
+ }(k) || o.replace(":", "");
260
+ });
261
+ }, r.utcOffset = function() {
262
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
263
+ }, r.diff = function(e, n, t) {
264
+ var i, o = this, f = l.p(n), g = m(e), x = (g.utcOffset() - this.utcOffset()) * U, T = this - g, P = function() {
265
+ return l.m(o, g);
266
+ };
267
+ switch (f) {
268
+ case v:
269
+ i = P() / 12;
270
+ break;
271
+ case _:
272
+ i = P();
273
+ break;
274
+ case w:
275
+ i = P() / 3;
276
+ break;
277
+ case y:
278
+ i = (T - x) / 6048e5;
279
+ break;
280
+ case u:
281
+ i = (T - x) / 864e5;
282
+ break;
283
+ case C:
284
+ i = T / V;
285
+ break;
286
+ case Y:
287
+ i = T / U;
288
+ break;
289
+ case R:
290
+ i = T / L;
291
+ break;
292
+ default:
293
+ i = T;
294
+ }
295
+ return t ? i : l.a(i);
296
+ }, r.daysInMonth = function() {
297
+ return this.endOf(_).$D;
298
+ }, r.$locale = function() {
299
+ return a[this.$L];
300
+ }, r.locale = function(e, n) {
301
+ if (!e) return this.$L;
302
+ var t = this.clone(), i = E(e, n, !0);
303
+ return i && (t.$L = i), t;
304
+ }, r.clone = function() {
305
+ return l.w(this.$d, this);
306
+ }, r.toDate = function() {
307
+ return new Date(this.valueOf());
308
+ }, r.toJSON = function() {
309
+ return this.isValid() ? this.toISOString() : null;
310
+ }, r.toISOString = function() {
311
+ return this.$d.toISOString();
312
+ }, r.toString = function() {
313
+ return this.$d.toUTCString();
314
+ }, s;
315
+ }(), ae = N.prototype;
316
+ return m.prototype = ae, [["$ms", M], ["$s", R], ["$m", Y], ["$H", C], ["$W", u], ["$M", _], ["$y", v], ["$D", O]].forEach(function(s) {
317
+ ae[s[1]] = function(r) {
318
+ return this.$g(r, s[0], s[1]);
319
+ };
320
+ }), m.extend = function(s, r) {
321
+ return s.$i || (s(r, N, m), s.$i = !0), m;
322
+ }, m.locale = E, m.isDayjs = $, m.unix = function(s) {
323
+ return m(1e3 * s);
324
+ }, m.en = a[h], m.Ls = a, m.p = {}, m;
325
+ });
326
+ }(ie)), ie.exports;
327
+ }
328
+ var Je = ze();
329
+ const Ze = /* @__PURE__ */ je(Je);
330
+ var I = /* @__PURE__ */ ((D) => (D.ADD = "新增", D.EDIT = "修改", D.REMOVE = "删除", D))(I || {});
331
+ const Ge = { class: "pt-10px" }, Qe = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, Ke = {
332
+ key: 1,
333
+ class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
334
+ }, Xe = /* @__PURE__ */ ve({
335
+ name: "TenantEdit",
336
+ __name: "TenantEdit",
337
+ emits: ["submit"],
338
+ setup(D, { expose: A, emit: L }) {
339
+ const U = L, V = {
340
+ name: [
341
+ { required: !0, message: "请输入名称", trigger: "blur" },
342
+ { min: 2, max: 32, message: "租户名称长度不能少于2位,不能超过32位", trigger: "change" }
343
+ ],
344
+ tenantCode: [
345
+ { required: !0, message: "请输入编码", trigger: "blur" },
346
+ { min: 2, max: 64, message: "租户编码长度不能少于2位,不能超过64位", trigger: "change" }
347
+ ],
348
+ pubUserAdmin: [
349
+ { required: !0, message: "请输入租户管理员", trigger: "blur" },
350
+ { min: 2, max: 32, message: "租户管理员长度不能少于2位,不能超过32位", trigger: "change" }
351
+ ],
352
+ resourceIds: [
353
+ { type: "array", required: !0, message: "请选择所属资源", trigger: "change" }
354
+ ]
355
+ }, M = Ie({
356
+ title: "",
357
+ record: {},
358
+ initData: {
359
+ enable: !0
360
+ }
361
+ }), [R, Y] = pe(!1), C = J(), u = J({ enable: !0 });
362
+ async function y(h, a) {
363
+ if (M.title = h, u.value = fe(M.initData), h === I.EDIT) {
364
+ const c = await Ve({ id: a.id });
365
+ if (c.success) {
366
+ const { tenantStartTime: $, tenantEndTime: E, ...m } = (c == null ? void 0 : c.data) ?? {};
367
+ u.value = {
368
+ ...m,
369
+ tenantTime: [$, E]
370
+ };
371
+ }
372
+ }
373
+ Y(!0);
374
+ }
375
+ const [_, w] = pe(!1);
376
+ function v() {
377
+ var a;
378
+ const h = M.title === I.EDIT ? Be : Le;
379
+ (a = C.value) == null || a.validate().then(() => {
380
+ const { tenantTime: c, resourceIds: $ = [], ...E } = u.value, m = {
381
+ ...E,
382
+ tenantStartTime: c == null ? void 0 : c[0],
383
+ tenantEndTime: c == null ? void 0 : c[1],
384
+ pubTenantResourcelist: $.map((l) => ({ resourceId: l }))
385
+ };
386
+ w(!0), h(m).then((l) => {
387
+ l.success && ($e.success(`${M.title}成功!`), Y(!1), U("submit"));
388
+ }).finally(() => w(!1));
389
+ });
390
+ }
391
+ const O = J(), S = J([]), j = Ce(() => {
392
+ var h;
393
+ return ((h = u.value.resourceIds) == null ? void 0 : h.map((a) => {
394
+ const c = re(S.value).find(($) => $.id === a);
395
+ return { name: (c == null ? void 0 : c.name) ?? "" };
396
+ })) ?? [];
397
+ });
398
+ function F() {
399
+ const h = u.value.resourceIds ?? [], a = S.value, c = re(a).reduce(($, E) => ($[E.id] = E.name, $), {});
400
+ O.value.open(h, a, c);
401
+ }
402
+ function Q(h = []) {
403
+ u.value.resourceIds = h.map((a) => a.id);
404
+ }
405
+ function K() {
406
+ Fe().then((h) => {
407
+ h.success && (S.value = h.data ?? []);
408
+ });
409
+ }
410
+ function re(h) {
411
+ const a = fe(h);
412
+ for (let c = 0; c < a.length; c++)
413
+ a[c].children && (a.splice(c + 1, 0, ...a[c].children), a[c].children = void 0);
414
+ return a;
415
+ }
416
+ return Oe(() => {
417
+ K();
418
+ }), A({
419
+ open: y
420
+ }), (h, a) => {
421
+ const c = ye, $ = De, E = xe, m = Me, l = he, N = We, ae = Te, s = be, r = ge, e = _e;
422
+ return W(), oe(e, {
423
+ open: d(R),
424
+ "onUpdate:open": a[9] || (a[9] = (n) => Ee(R) ? R.value = n : null),
425
+ title: `${d(M).title}租户`,
426
+ placement: "right",
427
+ width: 600,
428
+ "destroy-on-close": "",
429
+ "footer-style": { textAlign: "right" }
430
+ }, {
431
+ footer: b(() => [
432
+ p(r, null, {
433
+ default: b(() => [
434
+ p(l, {
435
+ onClick: a[7] || (a[7] = (n) => d(Y)(!1))
436
+ }, {
437
+ default: b(() => a[11] || (a[11] = [
438
+ te(" 取消 ")
439
+ ])),
440
+ _: 1
441
+ /* STABLE */
442
+ }),
443
+ p(l, {
444
+ type: "primary",
445
+ loading: d(_),
446
+ onClick: a[8] || (a[8] = (n) => v())
447
+ }, {
448
+ default: b(() => a[12] || (a[12] = [
449
+ te(" 提交 ")
450
+ ])),
451
+ _: 1
452
+ /* STABLE */
453
+ }, 8, ["loading"])
454
+ ]),
455
+ _: 1
456
+ /* STABLE */
457
+ })
458
+ ]),
459
+ default: b(() => [
460
+ p(s, {
461
+ ref_key: "formRef",
462
+ ref: C,
463
+ model: d(u),
464
+ rules: V,
465
+ "label-col": { span: 6 }
466
+ }, {
467
+ default: b(() => [
468
+ p($, {
469
+ label: "租户名称",
470
+ name: "name"
471
+ }, {
472
+ default: b(() => [
473
+ p(c, {
474
+ value: d(u).name,
475
+ "onUpdate:value": a[0] || (a[0] = (n) => d(u).name = n),
476
+ maxlength: 32,
477
+ placeholder: "请输入租户名称"
478
+ }, null, 8, ["value"])
479
+ ]),
480
+ _: 1
481
+ /* STABLE */
482
+ }),
483
+ p($, {
484
+ label: "租户编码",
485
+ name: "tenantCode"
486
+ }, {
487
+ default: b(() => [
488
+ p(c, {
489
+ value: d(u).tenantCode,
490
+ "onUpdate:value": a[1] || (a[1] = (n) => d(u).tenantCode = n),
491
+ disabled: d(M).title === d(I).EDIT,
492
+ maxlength: 64,
493
+ placeholder: "请输入租户编码"
494
+ }, null, 8, ["value", "disabled"])
495
+ ]),
496
+ _: 1
497
+ /* STABLE */
498
+ }),
499
+ p($, {
500
+ label: "开始至到期时间",
501
+ name: "tenantTime"
502
+ }, {
503
+ default: b(() => [
504
+ p(E, {
505
+ value: d(u).tenantTime,
506
+ "onUpdate:value": a[2] || (a[2] = (n) => d(u).tenantTime = n),
507
+ format: "YYYY-MM-DD",
508
+ "value-format": "YYYY-MM-DD"
509
+ }, null, 8, ["value"])
510
+ ]),
511
+ _: 1
512
+ /* STABLE */
513
+ }),
514
+ p($, {
515
+ label: "二级域名",
516
+ name: "subDomain"
517
+ }, {
518
+ default: b(() => [
519
+ p(c, {
520
+ value: d(u).subDomain,
521
+ "onUpdate:value": a[3] || (a[3] = (n) => d(u).subDomain = n),
522
+ maxlength: 64,
523
+ placeholder: "请输入二级域名"
524
+ }, null, 8, ["value"])
525
+ ]),
526
+ _: 1
527
+ /* STABLE */
528
+ }),
529
+ p($, {
530
+ label: "租户管理员",
531
+ name: "pubUserAdmin"
532
+ }, {
533
+ default: b(() => [
534
+ p(c, {
535
+ value: d(u).pubUserAdmin,
536
+ "onUpdate:value": a[4] || (a[4] = (n) => d(u).pubUserAdmin = n),
537
+ disabled: d(M).title === d(I).EDIT,
538
+ maxlength: 32,
539
+ placeholder: "请输入租户管理员"
540
+ }, null, 8, ["value", "disabled"])
541
+ ]),
542
+ _: 1
543
+ /* STABLE */
544
+ }),
545
+ p($, { label: "是否启用" }, {
546
+ default: b(() => [
547
+ p(m, {
548
+ checked: d(u).enable,
549
+ "onUpdate:checked": a[5] || (a[5] = (n) => d(u).enable = n)
550
+ }, null, 8, ["checked"])
551
+ ]),
552
+ _: 1
553
+ /* STABLE */
554
+ }),
555
+ p($, {
556
+ label: "所属资源",
557
+ name: "resourceIds"
558
+ }, {
559
+ default: b(() => {
560
+ var n;
561
+ return [
562
+ p(l, {
563
+ type: "primary",
564
+ onClick: a[6] || (a[6] = (t) => F())
565
+ }, {
566
+ default: b(() => a[10] || (a[10] = [
567
+ te(" 选择资源 ")
568
+ ])),
569
+ _: 1
570
+ /* STABLE */
571
+ }),
572
+ te(
573
+ " (已选" + Z(((n = d(u).resourceIds) == null ? void 0 : n.length) ?? 0) + "条数据) ",
574
+ 1
575
+ /* TEXT */
576
+ ),
577
+ p(
578
+ N,
579
+ {
580
+ ref_key: "resourceRef",
581
+ ref: O,
582
+ onSelect: Q
583
+ },
584
+ null,
585
+ 512
586
+ /* NEED_PATCH */
587
+ ),
588
+ ue("div", Ge, [
589
+ (W(!0), G(
590
+ ce,
591
+ null,
592
+ Re(d(j), (t) => {
593
+ var i;
594
+ return W(), G(
595
+ ce,
596
+ { key: t },
597
+ [
598
+ ((i = t.name) == null ? void 0 : i.length) > 20 ? (W(), oe(ae, {
599
+ key: 0,
600
+ title: t.name
601
+ }, {
602
+ default: b(() => {
603
+ var o;
604
+ return [
605
+ ue(
606
+ "span",
607
+ Qe,
608
+ Z(`${(o = t.name) == null ? void 0 : o.slice(0, 20)}...`),
609
+ 1
610
+ /* TEXT */
611
+ )
612
+ ];
613
+ }),
614
+ _: 2
615
+ /* DYNAMIC */
616
+ }, 1032, ["title"])) : (W(), G(
617
+ "span",
618
+ Ke,
619
+ Z(t.name),
620
+ 1
621
+ /* TEXT */
622
+ ))
623
+ ],
624
+ 64
625
+ /* STABLE_FRAGMENT */
626
+ );
627
+ }),
628
+ 128
629
+ /* KEYED_FRAGMENT */
630
+ ))
631
+ ])
632
+ ];
633
+ }),
634
+ _: 1
635
+ /* STABLE */
636
+ })
637
+ ]),
638
+ _: 1
639
+ /* STABLE */
640
+ }, 8, ["model"])
641
+ ]),
642
+ _: 1
643
+ /* STABLE */
644
+ }, 8, ["open", "title"]);
645
+ };
646
+ }
647
+ }), et = {
648
+ "py-10px": "",
649
+ "px-10px": "",
650
+ "w-full": "",
651
+ "h-full": ""
652
+ }, tt = ["onClick"], nt = {
653
+ class: "ml-4px"
654
+ }, rt = ["onClick"], at = {
655
+ class: "ml-4px"
656
+ }, vt = /* @__PURE__ */ ve({
657
+ name: "Tenant",
658
+ __name: "index",
659
+ setup(D) {
660
+ const {
661
+ auth: A
662
+ } = we(), L = J(), U = J();
663
+ function V() {
664
+ L.value.reload();
665
+ }
666
+ function M(u) {
667
+ return u ? Ze(u).format("YYYY-MM-DD") : null;
668
+ }
669
+ async function R(u) {
670
+ var j, F;
671
+ const {
672
+ current: y,
673
+ pageSize: _,
674
+ tenantStartTime: w,
675
+ tenantEndTime: v,
676
+ ...O
677
+ } = u, S = await qe({
678
+ currentPage: y,
679
+ pageSize: _,
680
+ tenantStartTime: M(w == null ? void 0 : w[0]),
681
+ tenantStartTimeEnd: M(w == null ? void 0 : w[1]),
682
+ tenantEndTimeStart: M(v == null ? void 0 : v[0]),
683
+ tenantEndTimeEnd: M(v == null ? void 0 : v[1]),
684
+ ...O
685
+ });
686
+ return {
687
+ success: S.success,
688
+ data: ((j = S.data) == null ? void 0 : j.records) ?? [],
689
+ total: ((F = S.data) == null ? void 0 : F.total) ?? 0
690
+ };
691
+ }
692
+ const Y = [{
693
+ valueType: "a-input",
694
+ minWidth: 200,
695
+ title: "租户名称",
696
+ dataIndex: "name",
697
+ ellipsis: !0,
698
+ fieldProps: {
699
+ placeholder: "请输入租户名称",
700
+ allowClear: !0
701
+ }
702
+ }, {
703
+ valueType: "a-input",
704
+ minWidth: 200,
705
+ title: "租户编码",
706
+ dataIndex: "tenantCode",
707
+ ellipsis: !0,
708
+ fieldProps: {
709
+ placeholder: "请输入租户编码",
710
+ allowClear: !0
711
+ }
712
+ }, {
713
+ valueType: "a-range-picker",
714
+ minWidth: 200,
715
+ title: "开始时间",
716
+ dataIndex: "tenantStartTime",
717
+ ellipsis: !0,
718
+ fieldProps: {
719
+ allowClear: !0
720
+ }
721
+ }, {
722
+ valueType: "a-range-picker",
723
+ minWidth: 200,
724
+ title: "到期时间",
725
+ dataIndex: "tenantEndTime",
726
+ ellipsis: !0,
727
+ fieldProps: {
728
+ allowClear: !0
729
+ }
730
+ }, {
731
+ minWidth: 200,
732
+ title: "二级域名",
733
+ dataIndex: "subDomain",
734
+ ellipsis: !0,
735
+ hideInSearch: !0
736
+ }, {
737
+ hideInSearch: !0,
738
+ minWidth: 80,
739
+ title: "状态",
740
+ dataIndex: "enable",
741
+ customRender: ({
742
+ text: u
743
+ }) => u ? p(de, {
744
+ status: "success",
745
+ text: "正常"
746
+ }, null) : p(de, {
747
+ status: "error",
748
+ text: "关闭"
749
+ }, null)
750
+ }, {
751
+ hideInSearch: !0,
752
+ width: 160,
753
+ title: "操作",
754
+ dataIndex: "action",
755
+ fixed: "right",
756
+ hideInTable() {
757
+ return !A(["tenant_edit", "tenant_remove"]);
758
+ }
759
+ }];
760
+ function C(u, y) {
761
+ switch (u) {
762
+ case I.EDIT:
763
+ U.value.open(u, y);
764
+ break;
765
+ case I.ADD:
766
+ U.value.open(u);
767
+ break;
768
+ case I.REMOVE:
769
+ Ue.confirm({
770
+ title: "删除",
771
+ content: "确定要删除该租户吗?",
772
+ onOk() {
773
+ He({
774
+ id: y == null ? void 0 : y.id
775
+ }).then((_) => {
776
+ _.success && ($e.success("删除成功"), V());
777
+ });
778
+ }
779
+ });
780
+ break;
781
+ }
782
+ }
783
+ return (u, y) => {
784
+ const _ = ke, w = he, v = Se, O = ge, S = Ye("auth");
785
+ return W(), G("div", et, [p(
786
+ d(Ae),
787
+ {
788
+ ref_key: "tableRef",
789
+ ref: L,
790
+ "row-key": "id",
791
+ request: R,
792
+ columns: Y,
793
+ "auto-height": "",
794
+ scroll: {
795
+ x: 1100
796
+ }
797
+ },
798
+ {
799
+ toolbar: b(() => [le((W(), oe(w, {
800
+ type: "primary",
801
+ onClick: y[0] || (y[0] = (j) => C(d(I).ADD))
802
+ }, {
803
+ default: b(() => [p(_), te(
804
+ " " + Z(d(I).ADD),
805
+ 1
806
+ /* TEXT */
807
+ )]),
808
+ _: 1
809
+ /* STABLE */
810
+ })), [[S, "tenant_add"]])]),
811
+ bodyCell: b(({
812
+ column: j,
813
+ record: F
814
+ }) => [j.dataIndex === "action" ? (W(), oe(
815
+ O,
816
+ {
817
+ key: 0
818
+ },
819
+ {
820
+ default: b(() => [le((W(), G("a", {
821
+ class: "flex items-center",
822
+ onClick: (Q) => C(d(I).EDIT, F)
823
+ }, [p(v, {
824
+ name: "edit",
825
+ class: "text-base"
826
+ }), ue(
827
+ "span",
828
+ nt,
829
+ Z(d(I).EDIT),
830
+ 1
831
+ /* TEXT */
832
+ )], 8, tt)), [[S, "tenant_edit"]]), le((W(), G("span", {
833
+ class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
834
+ onClick: (Q) => C(d(I).REMOVE, F)
835
+ }, [p(v, {
836
+ name: "remove",
837
+ class: "text-base"
838
+ }), ue(
839
+ "span",
840
+ at,
841
+ Z(d(I).REMOVE),
842
+ 1
843
+ /* TEXT */
844
+ )], 8, rt)), [[S, "tenant_remove"]])]),
845
+ _: 2
846
+ /* DYNAMIC */
847
+ },
848
+ 1024
849
+ /* DYNAMIC_SLOTS */
850
+ )) : Pe("v-if", !0)]),
851
+ _: 1
852
+ /* STABLE */
853
+ },
854
+ 512
855
+ /* NEED_PATCH */
856
+ ), p(
857
+ Xe,
858
+ {
859
+ ref_key: "drawerRef",
860
+ ref: U,
861
+ onSubmit: y[1] || (y[1] = (j) => V())
862
+ },
863
+ null,
864
+ 512
865
+ /* NEED_PATCH */
866
+ )]);
867
+ };
868
+ }
869
+ });
870
+ export {
871
+ vt as default
872
+ };