@pubinfo/module-rbac 2.0.0-beta.3 → 2.0.0-beta.5

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