@pubinfo-pr/module-rbac 0.223.1 → 0.224.2

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 (325) hide show
  1. package/dist/{ComponentSelect-A7uGTuHW.js → ComponentSelect-CYmAgdm3.js} +998 -963
  2. package/dist/DynamicRoutesForm-CMF3oh8h.js +171 -0
  3. package/dist/HCheckList-CAhQwX7m.js +39 -0
  4. package/dist/HoverCard-B-uU48hF.js +46 -0
  5. package/dist/IconSelect-CvxGRN_O.js +719 -0
  6. package/dist/ImportExport-CzZssb7_.js +345 -0
  7. package/dist/ImportExport-b1SnWRLj.js +6 -0
  8. package/dist/LayoutForm-Bpdyi_2o.js +129 -0
  9. package/dist/MetaForm-ZLzLz68d.js +39037 -0
  10. package/dist/OrgAndPosition-B0RE1Vc_.js +187 -0
  11. package/dist/OrgSelector-C2rPIonI.js +4877 -0
  12. package/dist/OrgSelector.css +1 -0
  13. package/dist/ResourceEdit-9fvxbd0K.js +383 -0
  14. package/dist/ResourceEdit-BMqfJ3aQ.js +13 -0
  15. package/dist/ResourceRelation-BrluMHdX.js +81 -0
  16. package/dist/ResourceRelation-IJvXnlpo.js +95 -0
  17. package/dist/RoleRelation-DuRuQG08.js +82 -0
  18. package/dist/RoleSelector-BTNYbcC6.js +282 -0
  19. package/dist/TenantEdit-Df3gZKLA.js +249 -0
  20. package/dist/UserAuthorization-DX7jNDDe.js +237 -0
  21. package/dist/UserEdit-BLb0n7WM.js +322 -0
  22. package/dist/_baseClone-C7vkGgsW.js +138 -0
  23. package/dist/_initCloneObject-r-eWKqzl.js +531 -0
  24. package/dist/add-child-DPb_m2by.js +4 -0
  25. package/dist/{animation_item-DBOz2rcX.js → animation_item-Coe-B0jQ.js} +24 -19
  26. package/dist/api/modules/assist/index.d.ts +0 -1
  27. package/dist/api/modules/assist/qunzujiekou.d.ts +28 -0
  28. package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -0
  29. package/dist/api/modules/rbac/jiaosejiekou.d.ts +14 -0
  30. package/dist/api/modules/rbac/yonghujiekou.d.ts +42 -0
  31. package/dist/api/modules/rbac/ziyuanjiekou.d.ts +7 -0
  32. package/dist/api/modules/rbac/zuzhijiekou.d.ts +7 -0
  33. package/dist/assist-BRMYD-oT.js +89 -0
  34. package/dist/authority-B9wtmsQd.js +4 -0
  35. package/dist/authorize-DxrutyIG.js +4 -0
  36. package/dist/blackWhiteList-d6TVsK48.js +214 -0
  37. package/dist/blacklist-disable-BKSw91qq.js +4 -0
  38. package/dist/blacklist-enable-CIB1fOHT.js +4 -0
  39. package/dist/breadcrumb_setting-DMbvWP5t.js +111 -0
  40. package/dist/browser-chrome-CM60RcrG.js +4 -0
  41. package/dist/browser-edge-4LBRzooM.js +4 -0
  42. package/dist/browser-ie-BF-wqbf6.js +4 -0
  43. package/dist/browser-other-iXJH-9iL.js +4 -0
  44. package/dist/browser-safari-CIpt0yPc.js +4 -0
  45. package/dist/browserType-Bik20-72.js +28 -0
  46. package/dist/chunk-WQLz0Won.js +20 -0
  47. package/dist/cloneDeep-REaxTPsZ.js +8 -0
  48. package/dist/createAndEditDataPermission-OunqmBu_.js +438 -0
  49. package/dist/data-permission-2pzeFLxP.js +159 -0
  50. package/dist/{dayjs.min-Cb7gQFd4.js → dayjs.min-CJunOGCc.js} +5 -3
  51. package/dist/dictionary-DGqlAhRk.js +182 -0
  52. package/dist/dist-DxAYQq3U.js +21 -0
  53. package/dist/drawerBlackWhiteList-VxyjaBkA.js +123 -0
  54. package/dist/drawerDictionary-DhAB-LV9.js +129 -0
  55. package/dist/drawerDictionaryItem-DYsJzZ2f.js +141 -0
  56. package/dist/drawerGroup-CTO8Lmbb.js +189 -0
  57. package/dist/drawerOrganization-CeCOW2N1.js +288 -0
  58. package/dist/drawerPosition-BmM9mLlP.js +169 -0
  59. package/dist/drawerRegion-BD-xc1x2.js +189 -0
  60. package/dist/drawerRole-B348x40k.js +214 -0
  61. package/dist/drawerRole-CgAPM-0g.js +172 -0
  62. package/dist/drawerRole-Cjp9iDsa.js +157 -0
  63. package/dist/edit-Drp8yjRe.js +4 -0
  64. package/dist/enum-CG0P82pn.js +6 -0
  65. package/dist/{enum-3E_sUqRF.js → enum-CR5ztb5v2.js} +15 -14
  66. package/dist/enum-CYCebJeC.js +62 -0
  67. package/dist/enum-DS4SGhiF.js +6 -0
  68. package/dist/enum-zdKA3Jy-.js +23 -0
  69. package/dist/group-C6Rj3K5I.js +178 -0
  70. package/dist/icard-BULUUV5m.js +4 -0
  71. package/dist/icon_animation-DuEY1FMm.js +4 -0
  72. package/dist/icon_breadcrumb-Y788iP_T.js +4 -0
  73. package/dist/icon_copyright-C1BER6kq.js +4 -0
  74. package/dist/icon_jt-ICOdrIF6.js +4 -0
  75. package/dist/icon_layout-D_wV9rX3.js +4 -0
  76. package/dist/icon_mainpage-Cz6_cxpJ.js +4 -0
  77. package/dist/icon_menu-y7SblUoR.js +4 -0
  78. package/dist/icon_page_size-BjwT656E.js +4 -0
  79. package/dist/icon_position_type-CPxcDgmM.js +4 -0
  80. package/dist/icon_safe_manage-CoqVRBLl.js +4 -0
  81. package/dist/icon_screen_scale-DURlkq3C.js +4 -0
  82. package/dist/icon_system_manage-BLXs2CQg.js +4 -0
  83. package/dist/icon_tabbar-_0QWhSBV.js +4 -0
  84. package/dist/icon_toolbar-BXpfu0iq.js +4 -0
  85. package/dist/icon_topbar-DrwvB8Jw.js +4 -0
  86. package/dist/icon_watermark-DwNqjAiA.js +4 -0
  87. package/dist/index.css +1 -1
  88. package/dist/index.js +588 -6776
  89. package/dist/isEmpty-2rx9iUQv.js +14 -0
  90. package/dist/isEqual-CNeQLaCM.js +474 -0
  91. package/dist/itemlist-BGe-z1IR.js +159 -0
  92. package/dist/json-asset-03f0a035.json +1 -0
  93. package/dist/json-asset-0ee63e7f.json +1 -0
  94. package/dist/json-asset-10eef4fe.json +1 -0
  95. package/dist/json-asset-13f452f1.json +1 -0
  96. package/dist/json-asset-14b7b290.json +1 -0
  97. package/dist/json-asset-15b8cef1.json +1 -0
  98. package/dist/json-asset-15f77960.json +1 -0
  99. package/dist/json-asset-1ae9b726.json +1 -0
  100. package/dist/json-asset-1b02359f.json +1 -0
  101. package/dist/json-asset-1ef286cd.json +1 -0
  102. package/dist/json-asset-23cfd18c.json +1 -0
  103. package/dist/json-asset-265a0a5d.json +1 -0
  104. package/dist/json-asset-28d57c49.json +1 -0
  105. package/dist/json-asset-2b54ed10.json +1 -0
  106. package/dist/json-asset-2bb6f642.json +1 -0
  107. package/dist/json-asset-2cdc07bd.json +1 -0
  108. package/dist/json-asset-31c58607.json +1 -0
  109. package/dist/json-asset-32884f23.json +1 -0
  110. package/dist/json-asset-32fca43a.json +1 -0
  111. package/dist/json-asset-3a75445b.json +1 -0
  112. package/dist/json-asset-3f27d67c.json +1 -0
  113. package/dist/json-asset-4189453f.json +1 -0
  114. package/dist/json-asset-4702b37c.json +1 -0
  115. package/dist/json-asset-520a5c68.json +1 -0
  116. package/dist/json-asset-56bea508.json +1 -0
  117. package/dist/json-asset-57c732a3.json +1 -0
  118. package/dist/json-asset-5be4a28f.json +1 -0
  119. package/dist/json-asset-5e6d7cfa.json +1 -0
  120. package/dist/json-asset-64e176c9.json +1 -0
  121. package/dist/json-asset-6583dca6.json +1 -0
  122. package/dist/json-asset-66c640c6.json +1 -0
  123. package/dist/json-asset-68393156.json +1 -0
  124. package/dist/json-asset-688465aa.json +1 -0
  125. package/dist/json-asset-6bf334f4.json +1 -0
  126. package/dist/json-asset-7b4f72ce.json +1 -0
  127. package/dist/json-asset-837ec087.json +1 -0
  128. package/dist/json-asset-838ac1ba.json +1 -0
  129. package/dist/json-asset-8465c2cf.json +1 -0
  130. package/dist/json-asset-9e9f04a4.json +1 -0
  131. package/dist/json-asset-a13964cb.json +1 -0
  132. package/dist/json-asset-ab93a057.json +1 -0
  133. package/dist/json-asset-abe308fc.json +1 -0
  134. package/dist/json-asset-b24f2cd3.json +1 -0
  135. package/dist/json-asset-bf00eaed.json +1 -0
  136. package/dist/json-asset-cb22efd7.json +1 -0
  137. package/dist/json-asset-cb953f20.json +1 -0
  138. package/dist/json-asset-cc209e34.json +1 -0
  139. package/dist/json-asset-cfdffceb.json +1 -0
  140. package/dist/json-asset-d33c0299.json +1 -0
  141. package/dist/json-asset-d430c8ca.json +1 -0
  142. package/dist/json-asset-d8cfa560.json +1 -0
  143. package/dist/json-asset-da91beb6.json +1 -0
  144. package/dist/json-asset-e2bdf85c.json +1 -0
  145. package/dist/json-asset-e34ad826.json +1 -0
  146. package/dist/json-asset-e80720aa.json +1 -0
  147. package/dist/json-asset-e894bc92.json +1 -0
  148. package/dist/json-asset-f28020f2.json +1 -0
  149. package/dist/json-asset-f71ebbf4.json +1 -0
  150. package/dist/json-asset-fb1f4917.json +1 -0
  151. package/dist/json-asset-ff2e97c4.json +1 -0
  152. package/dist/layout_setting-Cds3TCHc.js +71 -0
  153. package/dist/log-DOMU9MyH.js +18 -0
  154. package/dist/log-center-BrGlNhMd.js +4 -0
  155. package/dist/loginHistoryDetail-Coba_ajy.js +80 -0
  156. package/dist/{login_history-BiwaLpxA.js → login_history-CrXkEsHb.js} +38 -35
  157. package/dist/menu_setting-Br5dOEUk.js +158 -0
  158. package/dist/not-data-C-MacYF3.js +5 -0
  159. package/dist/operateHistoryDetail-DfDQL5BF.js +92 -0
  160. package/dist/{operate_history-sPd9IHMV.js → operate_history-BtHgPhmF.js} +38 -35
  161. package/dist/org-main-BRMBumDm.js +4 -0
  162. package/dist/org-unmain-0BHnrNdD.js +4 -0
  163. package/dist/organization-HuRdzTFX.js +15413 -0
  164. package/dist/other_setting-D92SlFvl.js +216 -0
  165. package/dist/page_animation_setting-Cy2R0vZy.js +111 -0
  166. package/dist/page_w_setting-DryWrqcx.js +66 -0
  167. package/dist/position-B1bqGly6.js +169 -0
  168. package/dist/rbac-B59CVHDt.js +460 -0
  169. package/dist/region-B_n1KXMG.js +182 -0
  170. package/dist/remove-BTME2Fhs.js +4 -0
  171. package/dist/request-7X2hpUru.js +5 -0
  172. package/dist/resource-CPNNd1l0.js +275 -0
  173. package/dist/resource-app-D8to3Lkn.js +4 -0
  174. package/dist/resource-btn-Cz-A_EQF.js +4 -0
  175. package/dist/resource-dynamic-BUqWxUiU.js +4 -0
  176. package/dist/resource-index-D2roT002.js +4 -0
  177. package/dist/resource-menu-BRER68rK.js +4 -0
  178. package/dist/resource-micro-Hyucl9de.js +4 -0
  179. package/dist/resource-nonmenu-7FcPEpHv.js +4 -0
  180. package/dist/role-CMd7WDRC.js +195 -0
  181. package/dist/role_group-DHh2s911.js +174 -0
  182. package/dist/safe_setting-CuTBmUve.js +225 -0
  183. package/dist/setItem-BwXZ5Uqx.js +4 -0
  184. package/dist/setItem-DlhIkIgh.js +78 -0
  185. package/dist/setting-manage-UHelpLrr.js +4 -0
  186. package/dist/stores-C-zbXsms.js +2 -0
  187. package/dist/tabbar_setting-CjW9LGPp.js +142 -0
  188. package/dist/tenant-B_vgufMG.js +180 -0
  189. package/dist/theme-check-mark-DRzx4sTs.js +4 -0
  190. package/dist/theme-title-BRvQ_qPg.js +4 -0
  191. package/dist/theme_setting-DMP0_nZ1.js +114 -0
  192. package/dist/toolbar_setting-ClxxvA7R.js +143 -0
  193. package/dist/useAppAndResource-D6WnpUPR.js +55 -0
  194. package/dist/user-BhytPqnx.js +348 -0
  195. package/dist/{vanilla-picker-Byb6q187.js → vanilla-picker-2HFham9c.js} +61 -59
  196. package/dist/view-Cridj7u2.js +4 -0
  197. package/dist/view-lBxqXfPW.js +114 -0
  198. package/dist/watermark_setting-b3vBYWwY.js +194 -0
  199. package/dist/zddata-CnvPWtIW.js +4 -0
  200. package/dist/zy_checked-C25HQlnr.js +4 -0
  201. package/dist/zy_default-B7RKtyqy.js +4 -0
  202. package/package.json +3 -3
  203. package/src/api/modules/assist/index.ts +0 -1
  204. package/src/api/modules/assist/qunzujiekou.ts +72 -0
  205. package/src/api/modules/assist/typings.d.ts +17 -129
  206. package/src/api/modules/rbac/gangweijiekou.ts +18 -0
  207. package/src/api/modules/rbac/jiaosejiekou.ts +36 -0
  208. package/src/api/modules/rbac/typings.d.ts +133 -1
  209. package/src/api/modules/rbac/yonghujiekou.ts +122 -0
  210. package/src/api/modules/rbac/ziyuanjiekou.ts +21 -0
  211. package/src/api/modules/rbac/zuzhijiekou.ts +18 -0
  212. package/src/views/organization/components/drawerOrganization.vue +43 -0
  213. package/dist/DynamicRoutesForm-DSzy_bh5.js +0 -169
  214. package/dist/HCheckList-ODQHidN8.js +0 -37
  215. package/dist/HoverCard-CmJCoa2b.js +0 -44
  216. package/dist/IconSelect-DouEg3xY.js +0 -717
  217. package/dist/ImportExport-DisdLoY8.js +0 -342
  218. package/dist/LayoutForm-Bdfs5WeK.js +0 -125
  219. package/dist/MetaForm-CcDwS8vh.js +0 -38902
  220. package/dist/OrgAndPosition-jDX7m0HD.js +0 -184
  221. package/dist/ResourceEdit-0BYZRye_.js +0 -381
  222. package/dist/ResourceRelation-CU-QpUhP.js +0 -76
  223. package/dist/ResourceRelation-roz0a8Td.js +0 -91
  224. package/dist/RoleRelation-BQQFaum0.js +0 -79
  225. package/dist/RoleSelector-gkar_UGG.js +0 -275
  226. package/dist/TenantEdit-BsahDUlf.js +0 -246
  227. package/dist/UserAuthorization-2Fl4IGw7.js +0 -233
  228. package/dist/UserEdit-CX3Qau8T.js +0 -320
  229. package/dist/add-child-CFHHkjfg.js +0 -2
  230. package/dist/api/modules/assist/gonggaofuwu.d.ts +0 -43
  231. package/dist/authority-L7SfiMdP.js +0 -2
  232. package/dist/authorize-qMpV_BXT.js +0 -2
  233. package/dist/blackWhiteList-DbG7JH8n.js +0 -211
  234. package/dist/blacklist-disable-BT6Xx-JG.js +0 -2
  235. package/dist/blacklist-enable-CJ6DK_V2.js +0 -2
  236. package/dist/breadcrumb_setting-Dx2Li6xt.js +0 -108
  237. package/dist/browser-chrome-DuAegVCe.js +0 -2
  238. package/dist/browser-edge-DzkWdXRd.js +0 -2
  239. package/dist/browser-ie-DZ9g_MXr.js +0 -2
  240. package/dist/browser-other-BmkifoYq.js +0 -2
  241. package/dist/browser-safari-CXrCuF2a.js +0 -2
  242. package/dist/browserType-B8A1Osvk.js +0 -26
  243. package/dist/chunk-DiMWNkAf.js +0 -18
  244. package/dist/cloneDeep-CSOSavu3.js +0 -6
  245. package/dist/createAndEditDataPermission-8_KNLzJT.js +0 -431
  246. package/dist/data-permission-LpuDLDm0.js +0 -152
  247. package/dist/dictionary-CEaxjqZe.js +0 -179
  248. package/dist/drawerBlackWhiteList-DXLdWurZ.js +0 -120
  249. package/dist/drawerDictionary-DYJTAZr6.js +0 -126
  250. package/dist/drawerDictionaryItem-BChXD2-q.js +0 -138
  251. package/dist/drawerGroup-CdnZkZxi.js +0 -185
  252. package/dist/drawerOrganization-CwtSFUj0.js +0 -247
  253. package/dist/drawerPosition-CfyfeQCN.js +0 -166
  254. package/dist/drawerRegion-DAwY_29K.js +0 -183
  255. package/dist/drawerRole-B7uCfHk-.js +0 -154
  256. package/dist/drawerRole-DK6DrinO.js +0 -209
  257. package/dist/drawerRole-DrzMHL0O.js +0 -167
  258. package/dist/edit-fZ7h_z_Z.js +0 -2
  259. package/dist/enum-3mYayxff.js +0 -61
  260. package/dist/enum-Cr7uWnB2.js +0 -23
  261. package/dist/enum-D2UEJsrC.js +0 -4
  262. package/dist/group-CaOhkh72.js +0 -172
  263. package/dist/icard-H-d9Pip-.js +0 -2
  264. package/dist/icon_animation-BCdRKkE5.js +0 -2
  265. package/dist/icon_breadcrumb-BR6LK8hP.js +0 -2
  266. package/dist/icon_copyright-BfWn1s6t.js +0 -2
  267. package/dist/icon_jt-DOMTq9De.js +0 -2
  268. package/dist/icon_layout-DKqAThpM.js +0 -2
  269. package/dist/icon_mainpage-CXB9JMGv.js +0 -2
  270. package/dist/icon_menu-BYQtWV-Q.js +0 -2
  271. package/dist/icon_page_size-r-z4oHWp.js +0 -2
  272. package/dist/icon_position_type-JDFdklRh.js +0 -2
  273. package/dist/icon_safe_manage-BDTIOduB.js +0 -2
  274. package/dist/icon_screen_scale-vEaAdr9S.js +0 -2
  275. package/dist/icon_system_manage-CkhQtieE.js +0 -2
  276. package/dist/icon_tabbar-DZNj-h-p.js +0 -2
  277. package/dist/icon_toolbar-BBYhGmEf.js +0 -2
  278. package/dist/icon_topbar-Bc379eaS.js +0 -2
  279. package/dist/icon_watermark-CTP8r-e2.js +0 -2
  280. package/dist/isEmpty-BjEzPyCa.js +0 -12
  281. package/dist/itemlist-CFwRUV2Y.js +0 -156
  282. package/dist/layout_setting-79srmFgJ.js +0 -68
  283. package/dist/log-BYris9iT.js +0 -14
  284. package/dist/log-center-CGT-BGAN.js +0 -2
  285. package/dist/loginHistoryDetail-CZnfmbbM.js +0 -78
  286. package/dist/menu_setting-ChueWHs4.js +0 -155
  287. package/dist/not-data-Bml86wdH.js +0 -3
  288. package/dist/operateHistoryDetail-HId-EZzy.js +0 -90
  289. package/dist/org-main-DnftBa38.js +0 -2
  290. package/dist/org-unmain-ByMarqFw.js +0 -2
  291. package/dist/organization-Dv3FbKke.js +0 -15316
  292. package/dist/other_setting-BEV_UK0g.js +0 -213
  293. package/dist/page_animation_setting-Cp5OnFpd.js +0 -108
  294. package/dist/page_w_setting-Q--ct16C.js +0 -63
  295. package/dist/position-CCZ2MSMP.js +0 -166
  296. package/dist/region-D3mjqB8H.js +0 -179
  297. package/dist/remove-DfZZBE2T.js +0 -2
  298. package/dist/resource-DaQ7CvM_.js +0 -271
  299. package/dist/resource-app-QSLZ7Hts.js +0 -2
  300. package/dist/resource-btn-BcB4xMgR.js +0 -2
  301. package/dist/resource-dynamic-D69oEbaO.js +0 -2
  302. package/dist/resource-index-BIHr3PZY.js +0 -2
  303. package/dist/resource-menu-0JSNn7S7.js +0 -2
  304. package/dist/resource-micro-CcX_pmaJ.js +0 -2
  305. package/dist/resource-nonmenu-DFItasMT.js +0 -2
  306. package/dist/role-4UgEw3nH.js +0 -192
  307. package/dist/role_group-hkRlCnyl.js +0 -171
  308. package/dist/safe_setting-4fv3qNRZ.js +0 -221
  309. package/dist/setItem-Vkcwkj-O.js +0 -77
  310. package/dist/setting-manage-C9whamLP.js +0 -2
  311. package/dist/stores-DPQF8JRt.js +0 -2
  312. package/dist/tabbar_setting-kbuTvrLB.js +0 -139
  313. package/dist/tenant-lWfGw2u1.js +0 -177
  314. package/dist/theme-check-mark-DG4oWCQN.js +0 -2
  315. package/dist/theme-title-BCYnl2jK.js +0 -2
  316. package/dist/theme_setting-CEb7UYQO.js +0 -111
  317. package/dist/toolbar_setting-BG-k2UFc.js +0 -140
  318. package/dist/useAppAndResource-B7FmNfKG.js +0 -52
  319. package/dist/user-BkUpcQC8.js +0 -339
  320. package/dist/view-Bnu34EJT.js +0 -2
  321. package/dist/watermark_setting-Cl2EtPAa.js +0 -191
  322. package/dist/zddata-Ceyga3_2.js +0 -2
  323. package/dist/zy_checked-DvD7k9F8.js +0 -2
  324. package/dist/zy_default-DJ2tB3Fo.js +0 -2
  325. package/src/api/modules/assist/gonggaofuwu.ts +0 -124
@@ -18,6 +18,24 @@ export function postRbacRoleAddRole<
18
18
  });
19
19
  }
20
20
 
21
+ /**
22
+ * @description 获得拥有多个角色的用户编号集合
23
+ * @url /rbac/role/getUserRoleIdListByRoleIds
24
+ * @method POST
25
+ * @author @pubinfo/openapi
26
+ */
27
+ export function postRbacRoleGetUserRoleIdListByRoleIds<
28
+ R = API.ResponseDataPubUserRoleBo,
29
+ T = API.ResponseDataPubUserRoleBo,
30
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
31
+ return request.Post<R, T>('/rbac/role/getUserRoleIdListByRoleIds', body, {
32
+ headers: {
33
+ 'Content-Type': 'application/json',
34
+ },
35
+ ...(options || {}),
36
+ });
37
+ }
38
+
21
39
  /**
22
40
  * @description 根据id查询
23
41
  * @url /rbac/role/info
@@ -137,3 +155,21 @@ export function postRbacRoleRoleUserPage<
137
155
  ...(options || {}),
138
156
  });
139
157
  }
158
+
159
+ /**
160
+ * @description 校验角色们是否有效
161
+ * @url /rbac/role/validRoleList
162
+ * @method POST
163
+ * @author @pubinfo/openapi
164
+ */
165
+ export function postRbacRoleValidRoleList<
166
+ R = API.ResponseDataVoid,
167
+ T = API.ResponseDataVoid,
168
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
169
+ return request.Post<R, T>('/rbac/role/validRoleList', body, {
170
+ headers: {
171
+ 'Content-Type': 'application/json',
172
+ },
173
+ ...(options || {}),
174
+ });
175
+ }
@@ -332,6 +332,20 @@ declare namespace API {
332
332
  type postRbacResourceMineOrAllResourceTreeParams = {
333
333
  needAll?: boolean;
334
334
  enable?: boolean;
335
+ appResourceCodes?: string;
336
+ };
337
+
338
+ type postRbacUserCaptchaChangePasswordWithVerifyCodeParams = {
339
+ /** 原密码(使用公钥加密) */
340
+ oldPassword: string;
341
+ /** 新密码(使用公钥加密) */
342
+ newPassword: string;
343
+ /** 验证码hash,imageCode必填 */
344
+ codeHash: string;
345
+ /** 验证码/token */
346
+ code: string;
347
+ /** 验证码类型 */
348
+ captchaType: string;
335
349
  };
336
350
 
337
351
  type postRbacUserChangePasswordParams = {
@@ -352,6 +366,10 @@ declare namespace API {
352
366
  code: string;
353
367
  };
354
368
 
369
+ type postRbacUserGetUserParams = {
370
+ id: string;
371
+ };
372
+
355
373
  type postRbacUserResetPasswordParams = {
356
374
  /** 用户id */
357
375
  userId: string;
@@ -433,6 +451,12 @@ declare namespace API {
433
451
  collect?: boolean;
434
452
  /** 租户id */
435
453
  tenantId?: string;
454
+ /** 组织负责人id */
455
+ leaderUserId?: string;
456
+ /** 组织负责人的orgId */
457
+ leaderUserOrgId?: string;
458
+ /** 组织负责人姓名 */
459
+ leaderUserName?: string;
436
460
  };
437
461
 
438
462
  type PubOrgAddDto = {
@@ -460,6 +484,12 @@ declare namespace API {
460
484
  contactMobile?: string;
461
485
  /** 扩展信息 */
462
486
  extendInfo?: Record<string, any>;
487
+ /** 组织负责人id */
488
+ leaderUserId?: string;
489
+ /** 组织负责人的orgId */
490
+ leaderUserOrgId?: string;
491
+ /** 组织负责人姓名 */
492
+ leaderUserName?: string;
463
493
  };
464
494
 
465
495
  type PubOrgBo = {
@@ -515,6 +545,12 @@ declare namespace API {
515
545
  collect?: boolean;
516
546
  /** 租户id */
517
547
  tenantId?: string;
548
+ /** 组织负责人id */
549
+ leaderUserId?: string;
550
+ /** 组织负责人的orgId */
551
+ leaderUserOrgId?: string;
552
+ /** 组织负责人姓名 */
553
+ leaderUserName?: string;
518
554
  /** 父组织名称 */
519
555
  parentName?: string;
520
556
  /** 是否继承,0:否,1:是 */
@@ -608,6 +644,12 @@ declare namespace API {
608
644
  collect?: boolean;
609
645
  /** 租户id */
610
646
  tenantId?: string;
647
+ /** 组织负责人id */
648
+ leaderUserId?: string;
649
+ /** 组织负责人的orgId */
650
+ leaderUserOrgId?: string;
651
+ /** 组织负责人姓名 */
652
+ leaderUserName?: string;
611
653
  /** 子节点 */
612
654
  children?: PubOrgTreeBo[];
613
655
  };
@@ -637,6 +679,12 @@ declare namespace API {
637
679
  contactMobile?: string;
638
680
  /** 扩展信息 */
639
681
  extendInfo?: Record<string, any>;
682
+ /** 组织负责人id */
683
+ leaderUserId?: string;
684
+ /** 组织负责人的orgId */
685
+ leaderUserOrgId?: string;
686
+ /** 组织负责人姓名 */
687
+ leaderUserName?: string;
640
688
  };
641
689
 
642
690
  type PubPost = {
@@ -801,6 +849,13 @@ declare namespace API {
801
849
  md5?: string;
802
850
  };
803
851
 
852
+ type PubResourceReSortUpdateDTO = {
853
+ /** 资源id */
854
+ id?: string;
855
+ /** 子资源列表 */
856
+ children?: PubResourceReSortUpdateDTO[];
857
+ };
858
+
804
859
  type PubResourceTreeBo = {
805
860
  /** 主键 */
806
861
  id?: string;
@@ -1215,6 +1270,53 @@ declare namespace API {
1215
1270
  createTime?: string;
1216
1271
  };
1217
1272
 
1273
+ type PubUser = {
1274
+ /** 主键 */
1275
+ id?: string;
1276
+ /** 所属组织,当前为组织 */
1277
+ orgId?: string;
1278
+ /** 登录账号 */
1279
+ loginName?: string;
1280
+ /** 登录密码 */
1281
+ loginPassword?: string;
1282
+ /** 真实姓名 */
1283
+ realName?: string;
1284
+ /** 性别 0:未知,1:男,2:女 */
1285
+ sex?: string;
1286
+ /** 昵称 */
1287
+ nickName?: string;
1288
+ /** 手机号 */
1289
+ mobile?: string;
1290
+ /** 联系地址 */
1291
+ address?: string;
1292
+ /** 身份证号码 */
1293
+ idCard?: string;
1294
+ /** 用户头像 */
1295
+ userPic?: string;
1296
+ /** 电子邮箱 */
1297
+ email?: string;
1298
+ /** 描述 */
1299
+ description?: string;
1300
+ /** 是否启用,0:否,1:是 */
1301
+ enable?: boolean;
1302
+ /** 是否删除,0:否,1:是 */
1303
+ deleted?: boolean;
1304
+ /** 创建id */
1305
+ createdBy?: string;
1306
+ /** 创建时间 */
1307
+ createTime?: string;
1308
+ /** 更新人id */
1309
+ updatedBy?: string;
1310
+ /** 更新时间 */
1311
+ updateTime?: string;
1312
+ userType?: string;
1313
+ /** 扩展信息 */
1314
+ extendInfo?: Record<string, any>;
1315
+ /** 是否收藏 */
1316
+ collect?: boolean;
1317
+ tenantId?: string;
1318
+ };
1319
+
1218
1320
  type PubUserAddDto = {
1219
1321
  /** 登录账号 */
1220
1322
  loginName?: string;
@@ -1471,6 +1573,12 @@ declare namespace API {
1471
1573
  showIsCollect?: boolean;
1472
1574
  };
1473
1575
 
1576
+ type PubUserRoleBo = {
1577
+ orgIdSet?: string[];
1578
+ userIdSet?: string[];
1579
+ userIdOrgIdSet?: string[];
1580
+ };
1581
+
1474
1582
  type PubUserSplitOrgQueryDto = {
1475
1583
  currentPage?: number;
1476
1584
  pageSize?: number;
@@ -1666,6 +1774,14 @@ declare namespace API {
1666
1774
  success?: boolean;
1667
1775
  };
1668
1776
 
1777
+ type ResponseDataListPubUser = {
1778
+ code?: number;
1779
+ msg?: string;
1780
+ hint?: string;
1781
+ data?: PubUser[];
1782
+ success?: boolean;
1783
+ };
1784
+
1669
1785
  type ResponseDataListPubUserDto = {
1670
1786
  code?: number;
1671
1787
  msg?: string;
@@ -1890,6 +2006,14 @@ declare namespace API {
1890
2006
  success?: boolean;
1891
2007
  };
1892
2008
 
2009
+ type ResponseDataPubUser = {
2010
+ code?: number;
2011
+ msg?: string;
2012
+ hint?: string;
2013
+ data?: PubUser;
2014
+ success?: boolean;
2015
+ };
2016
+
1893
2017
  type ResponseDataPubUserBo = {
1894
2018
  code?: number;
1895
2019
  msg?: string;
@@ -1906,6 +2030,14 @@ declare namespace API {
1906
2030
  success?: boolean;
1907
2031
  };
1908
2032
 
2033
+ type ResponseDataPubUserRoleBo = {
2034
+ code?: number;
2035
+ msg?: string;
2036
+ hint?: string;
2037
+ data?: PubUserRoleBo;
2038
+ success?: boolean;
2039
+ };
2040
+
1909
2041
  type ResponseDataPubUserUsed = {
1910
2042
  code?: number;
1911
2043
  msg?: string;
@@ -1985,7 +2117,7 @@ declare namespace API {
1985
2117
  /** 群组id */
1986
2118
  groups?: shujuquanxianmokuaihuixiandequnzuduixiang[];
1987
2119
  /** 资源id */
1988
- resources?: PubResourceTreeBo[];
2120
+ resources?: PubResource[];
1989
2121
  };
1990
2122
 
1991
2123
  type shujuquanxianchaxunduixiang = {
@@ -1,5 +1,30 @@
1
1
  import { basic as request } from '@/api/request';
2
2
 
3
+ /**
4
+ * @description 验证码-修改登录密码
5
+ * @url /rbac/user/captcha/changePasswordWithVerifyCode
6
+ * @method POST
7
+ * @author @pubinfo/openapi
8
+ */
9
+ export function postRbacUserCaptchaChangePasswordWithVerifyCode<
10
+ R = API.ResponseDataVoid,
11
+ T = API.ResponseDataVoid,
12
+ >(
13
+ params: API.postRbacUserCaptchaChangePasswordWithVerifyCodeParams,
14
+ options?: Parameters<typeof request.Post<R, T>>[2],
15
+ ) {
16
+ return request.Post<R, T>(
17
+ '/rbac/user/captcha/changePasswordWithVerifyCode',
18
+ {},
19
+ {
20
+ params: {
21
+ ...params,
22
+ },
23
+ ...(options || {}),
24
+ },
25
+ );
26
+ }
27
+
3
28
  /**
4
29
  * @description 修改登录密码
5
30
  * @url /rbac/user/changePassword
@@ -75,6 +100,85 @@ export function postRbacUserChangePasswordWithVerifyCode<
75
100
  );
76
101
  }
77
102
 
103
+ /**
104
+ * @description 根据id查询
105
+ * @url /rbac/user/getUser
106
+ * @method POST
107
+ * @author @pubinfo/openapi
108
+ */
109
+ export function postRbacUserGetUser<
110
+ R = API.ResponseDataPubUser,
111
+ T = API.ResponseDataPubUser,
112
+ >(
113
+ params: API.postRbacUserGetUserParams,
114
+ options?: Parameters<typeof request.Post<R, T>>[2],
115
+ ) {
116
+ return request.Post<R, T>(
117
+ '/rbac/user/getUser',
118
+ {},
119
+ {
120
+ params: {
121
+ ...params,
122
+ },
123
+ ...(options || {}),
124
+ },
125
+ );
126
+ }
127
+
128
+ /**
129
+ * @description 通过用户ID查询用户们
130
+ * @url /rbac/user/getUserList
131
+ * @method POST
132
+ * @author @pubinfo/openapi
133
+ */
134
+ export function postRbacUserGetUserList<
135
+ R = API.ResponseDataListPubUser,
136
+ T = API.ResponseDataListPubUser,
137
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
138
+ return request.Post<R, T>('/rbac/user/getUserList', body, {
139
+ headers: {
140
+ 'Content-Type': 'application/json',
141
+ },
142
+ ...(options || {}),
143
+ });
144
+ }
145
+
146
+ /**
147
+ * @description 获得指定组织的用户数组
148
+ * @url /rbac/user/getUserListByOrgIds
149
+ * @method POST
150
+ * @author @pubinfo/openapi
151
+ */
152
+ export function postRbacUserGetUserListByOrgIds<
153
+ R = API.ResponseDataListPubUser,
154
+ T = API.ResponseDataListPubUser,
155
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
156
+ return request.Post<R, T>('/rbac/user/getUserListByOrgIds', body, {
157
+ headers: {
158
+ 'Content-Type': 'application/json',
159
+ },
160
+ ...(options || {}),
161
+ });
162
+ }
163
+
164
+ /**
165
+ * @description 获得指定岗位的用户数组
166
+ * @url /rbac/user/getUserListByPostIds
167
+ * @method POST
168
+ * @author @pubinfo/openapi
169
+ */
170
+ export function postRbacUserGetUserListByPostIds<
171
+ R = API.ResponseDataListPubUser,
172
+ T = API.ResponseDataListPubUser,
173
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
174
+ return request.Post<R, T>('/rbac/user/getUserListByPostIds', body, {
175
+ headers: {
176
+ 'Content-Type': 'application/json',
177
+ },
178
+ ...(options || {}),
179
+ });
180
+ }
181
+
78
182
  /**
79
183
  * @description 编辑角色和授权数据权限
80
184
  * @url /rbac/user/grantUserRoleAndDatPermission
@@ -325,3 +429,21 @@ export function postRbacUserUserUpdateV2<
325
429
  ...(options || {}),
326
430
  });
327
431
  }
432
+
433
+ /**
434
+ * @description 校验用户们是否有效
435
+ * @url /rbac/user/validateUserList
436
+ * @method POST
437
+ * @author @pubinfo/openapi
438
+ */
439
+ export function postRbacUserValidateUserList<
440
+ R = API.ResponseDataVoid,
441
+ T = API.ResponseDataVoid,
442
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
443
+ return request.Post<R, T>('/rbac/user/validateUserList', body, {
444
+ headers: {
445
+ 'Content-Type': 'application/json',
446
+ },
447
+ ...(options || {}),
448
+ });
449
+ }
@@ -160,6 +160,27 @@ export function postRbacResourceMineOrAllResourceTree<
160
160
  );
161
161
  }
162
162
 
163
+ /**
164
+ * @description 资源拖拉拽更新
165
+ * @url /rbac/resource/reSortUpdate
166
+ * @method POST
167
+ * @author @pubinfo/openapi
168
+ */
169
+ export function postRbacResourceReSortUpdate<
170
+ R = API.ResponseDataVoid,
171
+ T = API.ResponseDataVoid,
172
+ >(
173
+ body: API.PubResourceReSortUpdateDTO[],
174
+ options?: Parameters<typeof request.Post<R, T>>[2],
175
+ ) {
176
+ return request.Post<R, T>('/rbac/resource/reSortUpdate', body, {
177
+ headers: {
178
+ 'Content-Type': 'application/json',
179
+ },
180
+ ...(options || {}),
181
+ });
182
+ }
183
+
163
184
  /**
164
185
  * @description 资源删除
165
186
  * @url /rbac/resource/resourceDelete
@@ -187,3 +187,21 @@ export function postRbacOrgUpdateOrg<
187
187
  ...(options || {}),
188
188
  });
189
189
  }
190
+
191
+ /**
192
+ * @description 校验组织们是否有效
193
+ * @url /rbac/org/validateOrgList
194
+ * @method POST
195
+ * @author @pubinfo/openapi
196
+ */
197
+ export function postRbacOrgValidateOrgList<
198
+ R = API.ResponseDataVoid,
199
+ T = API.ResponseDataVoid,
200
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
201
+ return request.Post<R, T>('/rbac/org/validateOrgList', body, {
202
+ headers: {
203
+ 'Content-Type': 'application/json',
204
+ },
205
+ ...(options || {}),
206
+ });
207
+ }
@@ -5,6 +5,7 @@ import { useToggle } from '@vueuse/core';
5
5
  import { message } from 'ant-design-vue';
6
6
  import { getDictItemList } from '@/api/modules/configData';
7
7
  import { getRbacOrgInfo, postRbacOrgAddOrg, postRbacOrgUpdateOrg } from '@/api/modules/rbac';
8
+ import { selectUser } from '@/components/OrgUserSelector';
8
9
  import { ACTION } from '../enum';
9
10
 
10
11
  defineOptions({
@@ -41,13 +42,25 @@ getDictItemList({ dictCode: 'orgType' }).then((res: API.ResponseDataListDictItem
41
42
  });
42
43
  });
43
44
  const form = ref<Partial<API.PubOrg & { parentName: string }>>({ parentId: '', enable: true });
45
+ const selectedUsers = ref<
46
+ {
47
+ orgId?: string
48
+ userId?: string
49
+ userName?: string
50
+ }[]>([]);
44
51
  async function onOpen(key: ACTION, record?: API.PubOrg) {
45
52
  setOpen(true);
46
53
  state.title = key;
54
+ selectedUsers.value = [];
47
55
  if (key === ACTION.EDIT) {
48
56
  const res = await getRbacOrgInfo({ id: record?.id as string });
49
57
  if (res.success) {
50
58
  form.value = res.data ?? {};
59
+ selectedUsers.value = [{
60
+ orgId: res.data?.leaderUserOrgId ?? '',
61
+ userId: res.data?.leaderUserId ?? '',
62
+ userName: res.data?.leaderUserName ?? '',
63
+ }];
51
64
  }
52
65
  }
53
66
  else if (key === ACTION.ADDNEXT) {
@@ -67,12 +80,34 @@ async function onOpen(key: ACTION, record?: API.PubOrg) {
67
80
  }
68
81
  }
69
82
 
83
+ function chooseLeader() {
84
+ selectUser({
85
+ modelValue: selectedUsers.value, // 回显时选中的数据
86
+ multiple: false,
87
+ onSubmit(selected = []) {
88
+ // console.log(selected); // 点击确认后返回选中的数据
89
+ selectedUsers.value = selected.map((user) => {
90
+ return {
91
+ orgId: user.orgId as string,
92
+ userId: user.userId as string,
93
+ userName: user.userName as string,
94
+ };
95
+ });
96
+ },
97
+ });
98
+ }
99
+
70
100
  const [loading, setLoading] = useToggle(false);
71
101
  function onSubmit() {
72
102
  const request = state.title === ACTION.EDIT ? postRbacOrgUpdateOrg : postRbacOrgAddOrg;
73
103
  formRef.value?.validate().then(() => {
74
104
  setLoading(true);
75
105
  const params: any = { ...form.value };
106
+ if (selectedUsers.value.length > 0) {
107
+ params.leaderUserId = selectedUsers.value[0].userId;
108
+ params.leaderUserName = selectedUsers.value[0].userName;
109
+ params.leaderUserOrgId = selectedUsers.value[0].orgId;
110
+ }
76
111
  request(params)
77
112
  .then((res: API.ResponseDataPubOrg) => {
78
113
  if (res.success) {
@@ -137,6 +172,14 @@ defineExpose({
137
172
  <a-form-item label="排序">
138
173
  <a-input-number v-model:value="form.sort" />
139
174
  </a-form-item>
175
+ <a-form-item label="组织负责人">
176
+ <div flex items-center>
177
+ <span v-if="selectedUsers.length > 0" mr-6px>{{ selectedUsers[0]?.userName }}</span>
178
+ <a-button type="primary" @click="chooseLeader">
179
+ 选择负责人
180
+ </a-button>
181
+ </div>
182
+ </a-form-item>
140
183
  <a-form-item label="统一社会信用代码" name="creditCode">
141
184
  <a-input v-model:value="form.creditCode" />
142
185
  </a-form-item>