@pubinfo-pr/module-rbac 0.224.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 (306) 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/assist-BRMYD-oT.js +89 -0
  27. package/dist/authority-B9wtmsQd.js +4 -0
  28. package/dist/authorize-DxrutyIG.js +4 -0
  29. package/dist/blackWhiteList-d6TVsK48.js +214 -0
  30. package/dist/blacklist-disable-BKSw91qq.js +4 -0
  31. package/dist/blacklist-enable-CIB1fOHT.js +4 -0
  32. package/dist/breadcrumb_setting-DMbvWP5t.js +111 -0
  33. package/dist/browser-chrome-CM60RcrG.js +4 -0
  34. package/dist/browser-edge-4LBRzooM.js +4 -0
  35. package/dist/browser-ie-BF-wqbf6.js +4 -0
  36. package/dist/browser-other-iXJH-9iL.js +4 -0
  37. package/dist/browser-safari-CIpt0yPc.js +4 -0
  38. package/dist/browserType-Bik20-72.js +28 -0
  39. package/dist/chunk-WQLz0Won.js +20 -0
  40. package/dist/cloneDeep-REaxTPsZ.js +8 -0
  41. package/dist/createAndEditDataPermission-OunqmBu_.js +438 -0
  42. package/dist/data-permission-2pzeFLxP.js +159 -0
  43. package/dist/{dayjs.min-Cb7gQFd4.js → dayjs.min-CJunOGCc.js} +5 -3
  44. package/dist/dictionary-DGqlAhRk.js +182 -0
  45. package/dist/dist-DxAYQq3U.js +21 -0
  46. package/dist/drawerBlackWhiteList-VxyjaBkA.js +123 -0
  47. package/dist/drawerDictionary-DhAB-LV9.js +129 -0
  48. package/dist/drawerDictionaryItem-DYsJzZ2f.js +141 -0
  49. package/dist/drawerGroup-CTO8Lmbb.js +189 -0
  50. package/dist/drawerOrganization-CeCOW2N1.js +288 -0
  51. package/dist/drawerPosition-BmM9mLlP.js +169 -0
  52. package/dist/drawerRegion-BD-xc1x2.js +189 -0
  53. package/dist/drawerRole-B348x40k.js +214 -0
  54. package/dist/drawerRole-CgAPM-0g.js +172 -0
  55. package/dist/drawerRole-Cjp9iDsa.js +157 -0
  56. package/dist/edit-Drp8yjRe.js +4 -0
  57. package/dist/enum-CG0P82pn.js +6 -0
  58. package/dist/{enum-3E_sUqRF.js → enum-CR5ztb5v2.js} +15 -14
  59. package/dist/enum-CYCebJeC.js +62 -0
  60. package/dist/enum-DS4SGhiF.js +6 -0
  61. package/dist/enum-zdKA3Jy-.js +23 -0
  62. package/dist/group-C6Rj3K5I.js +178 -0
  63. package/dist/icard-BULUUV5m.js +4 -0
  64. package/dist/icon_animation-DuEY1FMm.js +4 -0
  65. package/dist/icon_breadcrumb-Y788iP_T.js +4 -0
  66. package/dist/icon_copyright-C1BER6kq.js +4 -0
  67. package/dist/icon_jt-ICOdrIF6.js +4 -0
  68. package/dist/icon_layout-D_wV9rX3.js +4 -0
  69. package/dist/icon_mainpage-Cz6_cxpJ.js +4 -0
  70. package/dist/icon_menu-y7SblUoR.js +4 -0
  71. package/dist/icon_page_size-BjwT656E.js +4 -0
  72. package/dist/icon_position_type-CPxcDgmM.js +4 -0
  73. package/dist/icon_safe_manage-CoqVRBLl.js +4 -0
  74. package/dist/icon_screen_scale-DURlkq3C.js +4 -0
  75. package/dist/icon_system_manage-BLXs2CQg.js +4 -0
  76. package/dist/icon_tabbar-_0QWhSBV.js +4 -0
  77. package/dist/icon_toolbar-BXpfu0iq.js +4 -0
  78. package/dist/icon_topbar-DrwvB8Jw.js +4 -0
  79. package/dist/icon_watermark-DwNqjAiA.js +4 -0
  80. package/dist/index.css +1 -1
  81. package/dist/index.js +588 -6776
  82. package/dist/isEmpty-2rx9iUQv.js +14 -0
  83. package/dist/isEqual-CNeQLaCM.js +474 -0
  84. package/dist/itemlist-BGe-z1IR.js +159 -0
  85. package/dist/json-asset-03f0a035.json +1 -0
  86. package/dist/json-asset-0ee63e7f.json +1 -0
  87. package/dist/json-asset-10eef4fe.json +1 -0
  88. package/dist/json-asset-13f452f1.json +1 -0
  89. package/dist/json-asset-14b7b290.json +1 -0
  90. package/dist/json-asset-15b8cef1.json +1 -0
  91. package/dist/json-asset-15f77960.json +1 -0
  92. package/dist/json-asset-1ae9b726.json +1 -0
  93. package/dist/json-asset-1b02359f.json +1 -0
  94. package/dist/json-asset-1ef286cd.json +1 -0
  95. package/dist/json-asset-23cfd18c.json +1 -0
  96. package/dist/json-asset-265a0a5d.json +1 -0
  97. package/dist/json-asset-28d57c49.json +1 -0
  98. package/dist/json-asset-2b54ed10.json +1 -0
  99. package/dist/json-asset-2bb6f642.json +1 -0
  100. package/dist/json-asset-2cdc07bd.json +1 -0
  101. package/dist/json-asset-31c58607.json +1 -0
  102. package/dist/json-asset-32884f23.json +1 -0
  103. package/dist/json-asset-32fca43a.json +1 -0
  104. package/dist/json-asset-3a75445b.json +1 -0
  105. package/dist/json-asset-3f27d67c.json +1 -0
  106. package/dist/json-asset-4189453f.json +1 -0
  107. package/dist/json-asset-4702b37c.json +1 -0
  108. package/dist/json-asset-520a5c68.json +1 -0
  109. package/dist/json-asset-56bea508.json +1 -0
  110. package/dist/json-asset-57c732a3.json +1 -0
  111. package/dist/json-asset-5be4a28f.json +1 -0
  112. package/dist/json-asset-5e6d7cfa.json +1 -0
  113. package/dist/json-asset-64e176c9.json +1 -0
  114. package/dist/json-asset-6583dca6.json +1 -0
  115. package/dist/json-asset-66c640c6.json +1 -0
  116. package/dist/json-asset-68393156.json +1 -0
  117. package/dist/json-asset-688465aa.json +1 -0
  118. package/dist/json-asset-6bf334f4.json +1 -0
  119. package/dist/json-asset-7b4f72ce.json +1 -0
  120. package/dist/json-asset-837ec087.json +1 -0
  121. package/dist/json-asset-838ac1ba.json +1 -0
  122. package/dist/json-asset-8465c2cf.json +1 -0
  123. package/dist/json-asset-9e9f04a4.json +1 -0
  124. package/dist/json-asset-a13964cb.json +1 -0
  125. package/dist/json-asset-ab93a057.json +1 -0
  126. package/dist/json-asset-abe308fc.json +1 -0
  127. package/dist/json-asset-b24f2cd3.json +1 -0
  128. package/dist/json-asset-bf00eaed.json +1 -0
  129. package/dist/json-asset-cb22efd7.json +1 -0
  130. package/dist/json-asset-cb953f20.json +1 -0
  131. package/dist/json-asset-cc209e34.json +1 -0
  132. package/dist/json-asset-cfdffceb.json +1 -0
  133. package/dist/json-asset-d33c0299.json +1 -0
  134. package/dist/json-asset-d430c8ca.json +1 -0
  135. package/dist/json-asset-d8cfa560.json +1 -0
  136. package/dist/json-asset-da91beb6.json +1 -0
  137. package/dist/json-asset-e2bdf85c.json +1 -0
  138. package/dist/json-asset-e34ad826.json +1 -0
  139. package/dist/json-asset-e80720aa.json +1 -0
  140. package/dist/json-asset-e894bc92.json +1 -0
  141. package/dist/json-asset-f28020f2.json +1 -0
  142. package/dist/json-asset-f71ebbf4.json +1 -0
  143. package/dist/json-asset-fb1f4917.json +1 -0
  144. package/dist/json-asset-ff2e97c4.json +1 -0
  145. package/dist/layout_setting-Cds3TCHc.js +71 -0
  146. package/dist/log-DOMU9MyH.js +18 -0
  147. package/dist/log-center-BrGlNhMd.js +4 -0
  148. package/dist/loginHistoryDetail-Coba_ajy.js +80 -0
  149. package/dist/{login_history-BiwaLpxA.js → login_history-CrXkEsHb.js} +38 -35
  150. package/dist/menu_setting-Br5dOEUk.js +158 -0
  151. package/dist/not-data-C-MacYF3.js +5 -0
  152. package/dist/operateHistoryDetail-DfDQL5BF.js +92 -0
  153. package/dist/{operate_history-sPd9IHMV.js → operate_history-BtHgPhmF.js} +38 -35
  154. package/dist/org-main-BRMBumDm.js +4 -0
  155. package/dist/org-unmain-0BHnrNdD.js +4 -0
  156. package/dist/organization-HuRdzTFX.js +15413 -0
  157. package/dist/other_setting-D92SlFvl.js +216 -0
  158. package/dist/page_animation_setting-Cy2R0vZy.js +111 -0
  159. package/dist/page_w_setting-DryWrqcx.js +66 -0
  160. package/dist/position-B1bqGly6.js +169 -0
  161. package/dist/rbac-B59CVHDt.js +460 -0
  162. package/dist/region-B_n1KXMG.js +182 -0
  163. package/dist/remove-BTME2Fhs.js +4 -0
  164. package/dist/request-7X2hpUru.js +5 -0
  165. package/dist/resource-CPNNd1l0.js +275 -0
  166. package/dist/resource-app-D8to3Lkn.js +4 -0
  167. package/dist/resource-btn-Cz-A_EQF.js +4 -0
  168. package/dist/resource-dynamic-BUqWxUiU.js +4 -0
  169. package/dist/resource-index-D2roT002.js +4 -0
  170. package/dist/resource-menu-BRER68rK.js +4 -0
  171. package/dist/resource-micro-Hyucl9de.js +4 -0
  172. package/dist/resource-nonmenu-7FcPEpHv.js +4 -0
  173. package/dist/role-CMd7WDRC.js +195 -0
  174. package/dist/role_group-DHh2s911.js +174 -0
  175. package/dist/safe_setting-CuTBmUve.js +225 -0
  176. package/dist/setItem-BwXZ5Uqx.js +4 -0
  177. package/dist/setItem-DlhIkIgh.js +78 -0
  178. package/dist/setting-manage-UHelpLrr.js +4 -0
  179. package/dist/stores-C-zbXsms.js +2 -0
  180. package/dist/tabbar_setting-CjW9LGPp.js +142 -0
  181. package/dist/tenant-B_vgufMG.js +180 -0
  182. package/dist/theme-check-mark-DRzx4sTs.js +4 -0
  183. package/dist/theme-title-BRvQ_qPg.js +4 -0
  184. package/dist/theme_setting-DMP0_nZ1.js +114 -0
  185. package/dist/toolbar_setting-ClxxvA7R.js +143 -0
  186. package/dist/useAppAndResource-D6WnpUPR.js +55 -0
  187. package/dist/user-BhytPqnx.js +348 -0
  188. package/dist/{vanilla-picker-Byb6q187.js → vanilla-picker-2HFham9c.js} +61 -59
  189. package/dist/view-Cridj7u2.js +4 -0
  190. package/dist/view-lBxqXfPW.js +114 -0
  191. package/dist/watermark_setting-b3vBYWwY.js +194 -0
  192. package/dist/zddata-CnvPWtIW.js +4 -0
  193. package/dist/zy_checked-C25HQlnr.js +4 -0
  194. package/dist/zy_default-B7RKtyqy.js +4 -0
  195. package/package.json +3 -3
  196. package/dist/DynamicRoutesForm-DSzy_bh5.js +0 -169
  197. package/dist/HCheckList-ODQHidN8.js +0 -37
  198. package/dist/HoverCard-CmJCoa2b.js +0 -44
  199. package/dist/IconSelect-DouEg3xY.js +0 -717
  200. package/dist/ImportExport-DisdLoY8.js +0 -342
  201. package/dist/LayoutForm-Bdfs5WeK.js +0 -125
  202. package/dist/MetaForm-CcDwS8vh.js +0 -38902
  203. package/dist/OrgAndPosition-jDX7m0HD.js +0 -184
  204. package/dist/ResourceEdit-0BYZRye_.js +0 -381
  205. package/dist/ResourceRelation-CU-QpUhP.js +0 -76
  206. package/dist/ResourceRelation-roz0a8Td.js +0 -91
  207. package/dist/RoleRelation-BQQFaum0.js +0 -79
  208. package/dist/RoleSelector-gkar_UGG.js +0 -275
  209. package/dist/TenantEdit-BsahDUlf.js +0 -246
  210. package/dist/UserAuthorization-2Fl4IGw7.js +0 -233
  211. package/dist/UserEdit-CX3Qau8T.js +0 -320
  212. package/dist/add-child-CFHHkjfg.js +0 -2
  213. package/dist/authority-L7SfiMdP.js +0 -2
  214. package/dist/authorize-qMpV_BXT.js +0 -2
  215. package/dist/blackWhiteList-DbG7JH8n.js +0 -211
  216. package/dist/blacklist-disable-BT6Xx-JG.js +0 -2
  217. package/dist/blacklist-enable-CJ6DK_V2.js +0 -2
  218. package/dist/breadcrumb_setting-Dx2Li6xt.js +0 -108
  219. package/dist/browser-chrome-DuAegVCe.js +0 -2
  220. package/dist/browser-edge-DzkWdXRd.js +0 -2
  221. package/dist/browser-ie-DZ9g_MXr.js +0 -2
  222. package/dist/browser-other-BmkifoYq.js +0 -2
  223. package/dist/browser-safari-CXrCuF2a.js +0 -2
  224. package/dist/browserType-B8A1Osvk.js +0 -26
  225. package/dist/chunk-DiMWNkAf.js +0 -18
  226. package/dist/cloneDeep-CSOSavu3.js +0 -6
  227. package/dist/createAndEditDataPermission-8_KNLzJT.js +0 -431
  228. package/dist/data-permission-LpuDLDm0.js +0 -152
  229. package/dist/dictionary-CEaxjqZe.js +0 -179
  230. package/dist/drawerBlackWhiteList-DXLdWurZ.js +0 -120
  231. package/dist/drawerDictionary-DYJTAZr6.js +0 -126
  232. package/dist/drawerDictionaryItem-BChXD2-q.js +0 -138
  233. package/dist/drawerGroup-CdnZkZxi.js +0 -185
  234. package/dist/drawerOrganization-CPsQlz-f.js +0 -282
  235. package/dist/drawerPosition-CfyfeQCN.js +0 -166
  236. package/dist/drawerRegion-DAwY_29K.js +0 -183
  237. package/dist/drawerRole-B7uCfHk-.js +0 -154
  238. package/dist/drawerRole-DK6DrinO.js +0 -209
  239. package/dist/drawerRole-DrzMHL0O.js +0 -167
  240. package/dist/edit-fZ7h_z_Z.js +0 -2
  241. package/dist/enum-3mYayxff.js +0 -61
  242. package/dist/enum-Cr7uWnB2.js +0 -23
  243. package/dist/enum-D2UEJsrC.js +0 -4
  244. package/dist/group-CaOhkh72.js +0 -172
  245. package/dist/icard-H-d9Pip-.js +0 -2
  246. package/dist/icon_animation-BCdRKkE5.js +0 -2
  247. package/dist/icon_breadcrumb-BR6LK8hP.js +0 -2
  248. package/dist/icon_copyright-BfWn1s6t.js +0 -2
  249. package/dist/icon_jt-DOMTq9De.js +0 -2
  250. package/dist/icon_layout-DKqAThpM.js +0 -2
  251. package/dist/icon_mainpage-CXB9JMGv.js +0 -2
  252. package/dist/icon_menu-BYQtWV-Q.js +0 -2
  253. package/dist/icon_page_size-r-z4oHWp.js +0 -2
  254. package/dist/icon_position_type-JDFdklRh.js +0 -2
  255. package/dist/icon_safe_manage-BDTIOduB.js +0 -2
  256. package/dist/icon_screen_scale-vEaAdr9S.js +0 -2
  257. package/dist/icon_system_manage-CkhQtieE.js +0 -2
  258. package/dist/icon_tabbar-DZNj-h-p.js +0 -2
  259. package/dist/icon_toolbar-BBYhGmEf.js +0 -2
  260. package/dist/icon_topbar-Bc379eaS.js +0 -2
  261. package/dist/icon_watermark-CTP8r-e2.js +0 -2
  262. package/dist/isEmpty-BjEzPyCa.js +0 -12
  263. package/dist/itemlist-CFwRUV2Y.js +0 -156
  264. package/dist/layout_setting-79srmFgJ.js +0 -68
  265. package/dist/log-BYris9iT.js +0 -14
  266. package/dist/log-center-CGT-BGAN.js +0 -2
  267. package/dist/loginHistoryDetail-CZnfmbbM.js +0 -78
  268. package/dist/menu_setting-ChueWHs4.js +0 -155
  269. package/dist/not-data-Bml86wdH.js +0 -3
  270. package/dist/operateHistoryDetail-HId-EZzy.js +0 -90
  271. package/dist/org-main-DnftBa38.js +0 -2
  272. package/dist/org-unmain-ByMarqFw.js +0 -2
  273. package/dist/organization-BXGT-lb7.js +0 -15316
  274. package/dist/other_setting-BEV_UK0g.js +0 -213
  275. package/dist/page_animation_setting-Cp5OnFpd.js +0 -108
  276. package/dist/page_w_setting-Q--ct16C.js +0 -63
  277. package/dist/position-CCZ2MSMP.js +0 -166
  278. package/dist/region-D3mjqB8H.js +0 -179
  279. package/dist/remove-DfZZBE2T.js +0 -2
  280. package/dist/resource-DaQ7CvM_.js +0 -271
  281. package/dist/resource-app-QSLZ7Hts.js +0 -2
  282. package/dist/resource-btn-BcB4xMgR.js +0 -2
  283. package/dist/resource-dynamic-D69oEbaO.js +0 -2
  284. package/dist/resource-index-BIHr3PZY.js +0 -2
  285. package/dist/resource-menu-0JSNn7S7.js +0 -2
  286. package/dist/resource-micro-CcX_pmaJ.js +0 -2
  287. package/dist/resource-nonmenu-DFItasMT.js +0 -2
  288. package/dist/role-4UgEw3nH.js +0 -192
  289. package/dist/role_group-hkRlCnyl.js +0 -171
  290. package/dist/safe_setting-4fv3qNRZ.js +0 -221
  291. package/dist/setItem-Vkcwkj-O.js +0 -77
  292. package/dist/setting-manage-C9whamLP.js +0 -2
  293. package/dist/stores-DPQF8JRt.js +0 -2
  294. package/dist/tabbar_setting-kbuTvrLB.js +0 -139
  295. package/dist/tenant-lWfGw2u1.js +0 -177
  296. package/dist/theme-check-mark-DG4oWCQN.js +0 -2
  297. package/dist/theme-title-BCYnl2jK.js +0 -2
  298. package/dist/theme_setting-CEb7UYQO.js +0 -111
  299. package/dist/toolbar_setting-BG-k2UFc.js +0 -140
  300. package/dist/useAppAndResource-B7FmNfKG.js +0 -52
  301. package/dist/user-BkUpcQC8.js +0 -339
  302. package/dist/view-Bnu34EJT.js +0 -2
  303. package/dist/watermark_setting-Cl2EtPAa.js +0 -191
  304. package/dist/zddata-Ceyga3_2.js +0 -2
  305. package/dist/zy_checked-DvD7k9F8.js +0 -2
  306. package/dist/zy_default-DJ2tB3Fo.js +0 -2
@@ -1,209 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { Lt as useToggle, ResourceSelector as ResourceSelector_default, gt as postRbacRoleAddRole, pt as getRbacRoleInfo, vt as postRbacRoleRoleUpdate } from "./index.js";
3
- import { t as useAppAndResource } from "./useAppAndResource-B7FmNfKG.js";
4
- import { Fragment, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, renderList, resolveComponent, toDisplayString, unref, withCtx } from "vue";
5
- import { message } from "ant-design-vue";
6
- import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, Select, Space as Space$1, Switch, Textarea, Tooltip as Tooltip$1 } from "ant-design-vue/es";
7
- let ACTION = /* @__PURE__ */ function(e) {
8
- return e.ADD = "新增", e.EDIT = "修改", e.REMOVE = "删除", e.RESOURCE_RELATION = "分配查看", e;
9
- }({}), RESOURCE_TYPE = /* @__PURE__ */ function(e) {
10
- return e.OWNER = "1", e.ALL = "2", e;
11
- }({}), ENABLE_TYPE = /* @__PURE__ */ function(e) {
12
- return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
13
- }({});
14
- const kjOptions = [{
15
- label: "仅自己",
16
- value: RESOURCE_TYPE.OWNER
17
- }, {
18
- label: "全部可见",
19
- value: RESOURCE_TYPE.ALL
20
- }];
21
- ENABLE_TYPE.ON, ENABLE_TYPE.OFF;
22
- var _hoisted_1 = { class: "pt-10px" }, _hoisted_2 = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, _hoisted_3 = {
23
- key: 1,
24
- class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
25
- }, drawerRole_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
26
- name: "DrawerRole",
27
- __name: "drawerRole",
28
- emits: ["submit"],
29
- setup(e, { expose: o, emit: l }) {
30
- let d = l, { resourceModelRef: f, selectedResources: p, updateTreeDataAndResourceMap: m, setSelectedResources: h, updateSelectedResources: g, clearSelectedResources: _, openResourceModel: v } = useAppAndResource(), y = {
31
- name: [{
32
- required: !0,
33
- message: "请输入名称",
34
- trigger: "change"
35
- }, {
36
- min: 2,
37
- max: 32,
38
- message: "角色名称长度不能少于2位,不能超过32位",
39
- trigger: "change"
40
- }],
41
- code: [{
42
- required: !0,
43
- message: "请输入编号",
44
- trigger: "change"
45
- }, {
46
- min: 2,
47
- max: 32,
48
- message: "角色编码长度不能少于2位,不能超过32位",
49
- trigger: "change"
50
- }],
51
- viewScope: [{
52
- required: !0,
53
- message: "请选择可见范围",
54
- trigger: "change"
55
- }],
56
- resourceIds: [{
57
- required: !0,
58
- validator: b,
59
- trigger: ["blur", "change"]
60
- }]
61
- };
62
- function b(e, t) {
63
- return t && t.length > 0 ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请选择所属资源"));
64
- }
65
- let x = reactive({
66
- title: "",
67
- type: ""
68
- }), [S, C] = useToggle(!1), w = ref(), T = ref({ enable: !0 });
69
- async function E(e, t) {
70
- if (x.title = e, e === ACTION.EDIT) {
71
- let e = await getRbacRoleInfo({ id: t?.id });
72
- e.success && (T.value = e.data ?? {}, await m(""), T.value.resourceIds && g(T.value.resourceIds));
73
- } else T.value = { enable: !0 }, _(), await m("");
74
- C(!0);
75
- }
76
- let [D, O] = useToggle(!1);
77
- function k() {
78
- let e = x.title === ACTION.EDIT ? postRbacRoleRoleUpdate : postRbacRoleAddRole;
79
- w.value?.validate().then(() => {
80
- O(!0), e({ ...T.value }).then((e) => {
81
- e.success && (message.success(`${x.title}成功!`), C(!1), d("submit"));
82
- }).finally(() => O(!1));
83
- });
84
- }
85
- function A() {
86
- T.value = { enable: !0 }, C(!1);
87
- }
88
- function j() {
89
- T.value.resourceIds ? v(T.value.resourceIds) : v([]);
90
- }
91
- function M(e) {
92
- T.value.resourceIds = e.map((e) => e.id), h(e);
93
- }
94
- return o({ open: E }), (e, t) => {
95
- let n = Input$1, r = FormItem, i = Select, a = Switch, o = Textarea, s = Button, c = Tooltip$1, l = Form$1, u = Space$1, d = Drawer;
96
- return openBlock(), createBlock(d, {
97
- open: unref(S),
98
- "onUpdate:open": t[6] ||= (e) => isRef(S) ? S.value = e : null,
99
- title: `${unref(x).title}角色`,
100
- placement: "right",
101
- width: 600,
102
- "destroy-on-close": "",
103
- "footer-style": { textAlign: "right" },
104
- onClose: A
105
- }, {
106
- footer: withCtx(() => [createVNode(u, null, {
107
- default: withCtx(() => [createVNode(s, { onClick: A }, {
108
- default: withCtx(() => [...t[8] ||= [createTextVNode(" 取消 ", -1)]]),
109
- _: 1
110
- }), createVNode(s, {
111
- type: "primary",
112
- loading: unref(D),
113
- onClick: t[5] ||= (e) => k()
114
- }, {
115
- default: withCtx(() => [...t[9] ||= [createTextVNode(" 提交 ", -1)]]),
116
- _: 1
117
- }, 8, ["loading"])]),
118
- _: 1
119
- })]),
120
- default: withCtx(() => [createVNode(l, {
121
- ref_key: "formRef",
122
- ref: w,
123
- model: unref(T),
124
- rules: y,
125
- "label-col": { span: 4 }
126
- }, {
127
- default: withCtx(() => [
128
- createVNode(r, {
129
- label: "角色名称",
130
- name: "name"
131
- }, {
132
- default: withCtx(() => [createVNode(n, {
133
- value: unref(T).name,
134
- "onUpdate:value": t[0] ||= (e) => unref(T).name = e,
135
- maxlength: 32
136
- }, null, 8, ["value"])]),
137
- _: 1
138
- }),
139
- createVNode(r, {
140
- label: "角色编号",
141
- name: "code"
142
- }, {
143
- default: withCtx(() => [createVNode(n, {
144
- value: unref(T).code,
145
- "onUpdate:value": t[1] ||= (e) => unref(T).code = e,
146
- disabled: unref(x).title === unref(ACTION).EDIT,
147
- maxlength: 32
148
- }, null, 8, ["value", "disabled"])]),
149
- _: 1
150
- }),
151
- createVNode(r, {
152
- label: "可见范围",
153
- name: "viewScope"
154
- }, {
155
- default: withCtx(() => [createVNode(i, {
156
- value: unref(T).viewScope,
157
- "onUpdate:value": t[2] ||= (e) => unref(T).viewScope = e,
158
- options: unref(kjOptions)
159
- }, null, 8, ["value", "options"])]),
160
- _: 1
161
- }),
162
- createVNode(r, { label: "是否启用" }, {
163
- default: withCtx(() => [createVNode(a, {
164
- checked: unref(T).enable,
165
- "onUpdate:checked": t[3] ||= (e) => unref(T).enable = e
166
- }, null, 8, ["checked"])]),
167
- _: 1
168
- }),
169
- createVNode(r, { label: "角色描述" }, {
170
- default: withCtx(() => [createVNode(o, {
171
- value: unref(T).description,
172
- "onUpdate:value": t[4] ||= (e) => unref(T).description = e,
173
- maxlength: 250,
174
- "show-count": ""
175
- }, null, 8, ["value"])]),
176
- _: 1
177
- }),
178
- createVNode(r, {
179
- label: "所属资源",
180
- name: "resourceIds"
181
- }, {
182
- default: withCtx(() => [createVNode(s, {
183
- type: "primary",
184
- onClick: j
185
- }, {
186
- default: withCtx(() => [...t[7] ||= [createTextVNode(" 编辑资源 ", -1)]]),
187
- _: 1
188
- }), createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(p), (e) => (openBlock(), createElementBlock(Fragment, { key: e }, [e.name.length > 20 ? (openBlock(), createBlock(c, {
189
- key: 0,
190
- title: e.name
191
- }, {
192
- default: withCtx(() => [createElementVNode("span", _hoisted_2, toDisplayString(`${e.name.slice(0, 20)}...`), 1)]),
193
- _: 2
194
- }, 1032, ["title"])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(e.name), 1))], 64))), 128))])]),
195
- _: 1
196
- })
197
- ]),
198
- _: 1
199
- }, 8, ["model"]), createVNode(ResourceSelector_default, {
200
- ref_key: "resourceModelRef",
201
- ref: f,
202
- onSelect: M
203
- }, null, 512)]),
204
- _: 1
205
- }, 8, ["open", "title"]);
206
- };
207
- }
208
- }), drawerRole_exports = /* @__PURE__ */ __exportAll({ default: () => drawerRole_default }), drawerRole_default = drawerRole_vue_vue_type_script_setup_true_lang_default;
209
- export { kjOptions as i, drawerRole_exports as n, ACTION as r, drawerRole_default as t };
@@ -1,167 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { Lt as useToggle, dt as postRbacPubRoleGroupSave, ft as postRbacPubRoleGroupUpdate, lt as getRbacPubRoleGroupGetById } from "./index.js";
3
- import { t as RoleSelector_default } from "./RoleSelector-gkar_UGG.js";
4
- import { Fragment, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, renderList, resolveComponent, toDisplayString, unref, withCtx } from "vue";
5
- import { message } from "ant-design-vue";
6
- import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, Space as Space$1, Switch, Textarea, Tooltip as Tooltip$1 } from "ant-design-vue/es";
7
- let ACTION = /* @__PURE__ */ function(e) {
8
- return e.ADD = "新增", e.EDIT = "修改", e.REMOVE = "删除", e.RESOURCE_RELATION = "分配查看", e;
9
- }({}), ENABLE_TYPE = /* @__PURE__ */ function(e) {
10
- return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
11
- }({});
12
- ENABLE_TYPE.ON, ENABLE_TYPE.OFF;
13
- var _hoisted_1 = { class: "pt-10px" }, _hoisted_2 = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, _hoisted_3 = {
14
- key: 1,
15
- class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
16
- }, drawerRole_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
17
- name: "DrawerRoleGroup",
18
- __name: "drawerRole",
19
- emits: ["submit"],
20
- setup(e, { expose: a, emit: c }) {
21
- let d = c, f = {
22
- name: [{
23
- required: !0,
24
- message: "请输入名称",
25
- trigger: "blur"
26
- }, {
27
- min: 2,
28
- max: 32,
29
- message: "角色组名称长度不能少于2位,不能超过32位",
30
- trigger: "change"
31
- }],
32
- roleIds: [{
33
- required: !0,
34
- validator: p,
35
- trigger: ["blur", "change"]
36
- }]
37
- };
38
- function p(e, t) {
39
- return t && t.length > 0 ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请选择角色"));
40
- }
41
- let m = reactive({ title: "" }), [h, g] = useToggle(!1), _ = ref(), v = ref({ enable: !0 }), y = ref([]);
42
- async function b(e, t) {
43
- if (m.title = e, e === ACTION.EDIT) {
44
- let e = await getRbacPubRoleGroupGetById({ id: t?.id });
45
- e.success && (v.value = e.data ?? {}, y.value = e.data?.roles || []);
46
- } else v.value = { enable: !0 }, y.value = [];
47
- g(!0);
48
- }
49
- let [x, S] = useToggle(!1);
50
- function C() {
51
- let e = m.title === ACTION.EDIT ? postRbacPubRoleGroupUpdate : postRbacPubRoleGroupSave;
52
- _.value?.validate().then(() => {
53
- S(!0), e({ ...v.value }).then((e) => {
54
- e.success && (message.success(`${m.title}成功!`), g(!1), d("submit"));
55
- }).finally(() => S(!1));
56
- });
57
- }
58
- function w() {
59
- v.value = { enable: !0 }, g(!1);
60
- }
61
- let T = ref();
62
- function E() {
63
- let e = y.value.map((e) => ({
64
- value: e.id,
65
- label: e.name
66
- }));
67
- T.value.open(e);
68
- }
69
- function D(e) {
70
- v.value.roleIds = e.map((e) => e.value).join(","), y.value = e.map((e) => ({
71
- id: e.value,
72
- name: e.label
73
- }));
74
- }
75
- return a({ open: b }), (e, t) => {
76
- let n = Input$1, r = FormItem, i = Switch, a = Textarea, o = Button, s = Tooltip$1, c = Form$1, l = Space$1, u = Drawer;
77
- return openBlock(), createBlock(u, {
78
- open: unref(h),
79
- "onUpdate:open": t[4] ||= (e) => isRef(h) ? h.value = e : null,
80
- title: `${unref(m).title}角色组`,
81
- placement: "right",
82
- width: 600,
83
- "destroy-on-close": "",
84
- "footer-style": { textAlign: "right" },
85
- onClose: w
86
- }, {
87
- footer: withCtx(() => [createVNode(l, null, {
88
- default: withCtx(() => [createVNode(o, { onClick: w }, {
89
- default: withCtx(() => [...t[6] ||= [createTextVNode(" 取消 ", -1)]]),
90
- _: 1
91
- }), createVNode(o, {
92
- type: "primary",
93
- loading: unref(x),
94
- onClick: t[3] ||= (e) => C()
95
- }, {
96
- default: withCtx(() => [...t[7] ||= [createTextVNode(" 提交 ", -1)]]),
97
- _: 1
98
- }, 8, ["loading"])]),
99
- _: 1
100
- })]),
101
- default: withCtx(() => [createVNode(c, {
102
- ref_key: "formRef",
103
- ref: _,
104
- model: unref(v),
105
- rules: f,
106
- "label-col": { span: 4 }
107
- }, {
108
- default: withCtx(() => [
109
- createVNode(r, {
110
- label: "角色组名称",
111
- name: "name"
112
- }, {
113
- default: withCtx(() => [createVNode(n, {
114
- value: unref(v).name,
115
- "onUpdate:value": t[0] ||= (e) => unref(v).name = e,
116
- maxlength: 32
117
- }, null, 8, ["value"])]),
118
- _: 1
119
- }),
120
- createVNode(r, { label: "是否启用" }, {
121
- default: withCtx(() => [createVNode(i, {
122
- checked: unref(v).enable,
123
- "onUpdate:checked": t[1] ||= (e) => unref(v).enable = e
124
- }, null, 8, ["checked"])]),
125
- _: 1
126
- }),
127
- createVNode(r, { label: "角色组描述" }, {
128
- default: withCtx(() => [createVNode(a, {
129
- value: unref(v).description,
130
- "onUpdate:value": t[2] ||= (e) => unref(v).description = e,
131
- maxlength: 250,
132
- "show-count": ""
133
- }, null, 8, ["value"])]),
134
- _: 1
135
- }),
136
- createVNode(r, {
137
- label: "所属角色",
138
- name: "roleIds"
139
- }, {
140
- default: withCtx(() => [createVNode(o, {
141
- type: "primary",
142
- onClick: E
143
- }, {
144
- default: withCtx(() => [...t[5] ||= [createTextVNode(" 编辑角色 ", -1)]]),
145
- _: 1
146
- }), createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(y), (e) => (openBlock(), createElementBlock(Fragment, { key: e }, [(e?.name || "").length > 20 ? (openBlock(), createBlock(s, {
147
- key: 0,
148
- title: e.name
149
- }, {
150
- default: withCtx(() => [createElementVNode("span", _hoisted_2, toDisplayString(`${e?.name?.slice(0, 20)}...`), 1)]),
151
- _: 2
152
- }, 1032, ["title"])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(e.name), 1))], 64))), 128))])]),
153
- _: 1
154
- })
155
- ]),
156
- _: 1
157
- }, 8, ["model"]), createVNode(unref(RoleSelector_default), {
158
- ref_key: "roleModelRef",
159
- ref: T,
160
- onSelect: D
161
- }, null, 512)]),
162
- _: 1
163
- }, 8, ["open", "title"]);
164
- };
165
- }
166
- }), drawerRole_exports = /* @__PURE__ */ __exportAll({ default: () => drawerRole_default }), drawerRole_default = drawerRole_vue_vue_type_script_setup_true_lang_default;
167
- export { drawerRole_exports as n, ACTION as r, drawerRole_default as t };
@@ -1,2 +0,0 @@
1
- var edit_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2016%2017'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23165DFF'%20d='M9.295%206.292%206.537%209.05l-.707-.707%202.758-2.758zm-2.44%207.495-4.03-4.03.708-.707%204.03%204.03z'/%3e%3cpath%20stroke='%23165DFF'%20d='M7.173%2013.374a.5.5%200%200%201-.292.143l-3.982.489a.5.5%200%200%201-.557-.557l.49-3.982a.5.5%200%200%201%20.142-.293L9.74%202.41a.5.5%200%200%201%20.707%200l3.492%203.49a.5.5%200%200%201%200%20.707z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%20.175h16v16H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
2
- export { edit_default as default };
@@ -1,61 +0,0 @@
1
- let ACTION = /* @__PURE__ */ function(e) {
2
- return e.ADD = "新增", e.EDIT = "编辑", e.VIEW = "查看", e.REMOVE = "删除", e;
3
- }({}), DATA_PERMISSION_TYPE = /* @__PURE__ */ function(e) {
4
- return e.ALL = "1", e.ONLY_SELF = "2", e.SELF_DEPT_ONLY = "3", e.SELF_DEPT_AND_SUB = "4", e.CUSTOM_DEPT_ONLY = "5", e.CUSTOM_DEPT_AND_SUB = "6", e.CUSTOM_GROUP = "7", e;
5
- }({});
6
- const dataPermissionTypeLabel = {
7
- [DATA_PERMISSION_TYPE.ALL]: "查看全部",
8
- [DATA_PERMISSION_TYPE.ONLY_SELF]: "仅看自己",
9
- [DATA_PERMISSION_TYPE.SELF_DEPT_ONLY]: "仅看所在部门",
10
- [DATA_PERMISSION_TYPE.SELF_DEPT_AND_SUB]: "仅看所在部门及子部门",
11
- [DATA_PERMISSION_TYPE.CUSTOM_DEPT_AND_SUB]: "自选部门及子部门",
12
- [DATA_PERMISSION_TYPE.CUSTOM_DEPT_ONLY]: "仅自选部门",
13
- [DATA_PERMISSION_TYPE.CUSTOM_GROUP]: "指定群组"
14
- }, dataPermissionOptions = [
15
- {
16
- label: "查看全部",
17
- value: DATA_PERMISSION_TYPE.ALL
18
- },
19
- {
20
- label: "仅看自己",
21
- value: DATA_PERMISSION_TYPE.ONLY_SELF
22
- },
23
- {
24
- label: "仅看所在部门",
25
- value: DATA_PERMISSION_TYPE.SELF_DEPT_ONLY
26
- },
27
- {
28
- label: "仅看所在部门及子部门",
29
- value: DATA_PERMISSION_TYPE.SELF_DEPT_AND_SUB
30
- }
31
- ], dataPermissionOptionsAll = [
32
- {
33
- label: "查看全部",
34
- value: DATA_PERMISSION_TYPE.ALL
35
- },
36
- {
37
- label: "仅看自己",
38
- value: DATA_PERMISSION_TYPE.ONLY_SELF
39
- },
40
- {
41
- label: "仅看所在部门",
42
- value: DATA_PERMISSION_TYPE.SELF_DEPT_ONLY
43
- },
44
- {
45
- label: "仅看所在部门及子部门",
46
- value: DATA_PERMISSION_TYPE.SELF_DEPT_AND_SUB
47
- },
48
- {
49
- label: "自选部门及子部门",
50
- value: DATA_PERMISSION_TYPE.CUSTOM_DEPT_AND_SUB
51
- },
52
- {
53
- label: "仅自选部门",
54
- value: DATA_PERMISSION_TYPE.CUSTOM_DEPT_ONLY
55
- },
56
- {
57
- label: "指定群组",
58
- value: DATA_PERMISSION_TYPE.CUSTOM_GROUP
59
- }
60
- ];
61
- export { dataPermissionTypeLabel as a, dataPermissionOptionsAll as i, DATA_PERMISSION_TYPE as n, dataPermissionOptions as r, ACTION as t };
@@ -1,23 +0,0 @@
1
- let ACTION = /* @__PURE__ */ function(e) {
2
- return e.ADD = "新增", e.EDIT = "编辑", e.REMOVE = "删除", e;
3
- }({}), GROUP_USE_TYPE = /* @__PURE__ */ function(e) {
4
- return e.OWNER = "1", e.PARENT = "2", e.ALL = "3", e;
5
- }({});
6
- const useOptions = [
7
- {
8
- label: "本部门",
9
- value: GROUP_USE_TYPE.OWNER
10
- },
11
- {
12
- label: "本部门及子部门",
13
- value: GROUP_USE_TYPE.PARENT
14
- },
15
- {
16
- label: "全部",
17
- value: GROUP_USE_TYPE.ALL
18
- }
19
- ];
20
- let GROUP_TYPE = /* @__PURE__ */ function(e) {
21
- return e.ORG = "1", e.PER = "2", e;
22
- }({});
23
- export { GROUP_TYPE as n, useOptions as r, ACTION as t };
@@ -1,4 +0,0 @@
1
- let ACTION = /* @__PURE__ */ function(e) {
2
- return e.ADD = "新增", e.ADDNEXT = "字典数据", e.EDIT = "修改", e.REMOVE = "删除", e;
3
- }({});
4
- export { ACTION as t };
@@ -1,172 +0,0 @@
1
- import { At as deleteGroupDeleteById, Mt as postGroupFindPage, h as _plugin_vue_export_helper_default } from "./index.js";
2
- import { t as ACTION } from "./enum-Cr7uWnB2.js";
3
- import { t as drawerGroup_default } from "./drawerGroup-CdnZkZxi.js";
4
- import { PubinfoIcon } from "pubinfo-pr";
5
- import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
6
- import { PlusCircleOutlined } from "@ant-design/icons-vue";
7
- import { Modal, message } from "ant-design-vue";
8
- import { Button, Space as Space$1, TabPane, Tabs } from "ant-design-vue/es";
9
- import { ProTable } from "@pubinfo/pro-components";
10
- import './group.css';var _hoisted_1 = {
11
- "py-10px": "",
12
- "px-10px": "",
13
- "w-full": "",
14
- "h-full": ""
15
- }, _hoisted_2 = {
16
- "h-full": "",
17
- "w-full": "",
18
- "bg-white": "",
19
- "rounded-8px": "",
20
- class: "dark:bg-[#141414]"
21
- }, _hoisted_3 = { style: { height: "calc(100% - 48px)" } }, _hoisted_4 = ["onClick"], _hoisted_5 = { class: "ml-4px" }, _hoisted_6 = ["onClick"], _hoisted_7 = { class: "ml-4px" }, group_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
22
- name: "GroupManage",
23
- __name: "index",
24
- setup(n) {
25
- let o = ref({ type: "1" }), u = ref([]), d = ref(), f = ref();
26
- function p() {
27
- d.value?.reload();
28
- }
29
- async function m(e) {
30
- let { current: n, pageSize: r, ...i } = e, a = await postGroupFindPage({
31
- currentPage: n,
32
- pageSize: r,
33
- ...i,
34
- type: o.value.type
35
- });
36
- return {
37
- success: !0,
38
- data: a.data?.records ?? [],
39
- total: a.data?.total
40
- };
41
- }
42
- let h = [
43
- {
44
- valueType: "a-input",
45
- bind: "value",
46
- minWidth: 200,
47
- title: "群组名称",
48
- dataIndex: "name",
49
- ellipsis: !0,
50
- fieldProps: {
51
- placeholder: "请输入群组名称",
52
- allowClear: !0
53
- }
54
- },
55
- {
56
- hideInSearch: !0,
57
- minWidth: 80,
58
- title: "群组描述",
59
- dataIndex: "remark",
60
- ellipsis: !0
61
- },
62
- {
63
- hideInSearch: !0,
64
- minWidth: 100,
65
- title: "群组使用范围",
66
- dataIndex: "viewScope",
67
- customRender: ({ text: e }) => e === "1" ? "本部门" : e === "2" ? "本部门及子部门" : "全部"
68
- },
69
- {
70
- hideInSearch: !0,
71
- minWidth: 100,
72
- title: "最后一次编辑时间",
73
- dataIndex: "updateTime",
74
- ellipsis: !0
75
- },
76
- {
77
- hideInSearch: !0,
78
- minWidth: 100,
79
- title: "编辑人",
80
- dataIndex: "updatedUserName"
81
- },
82
- {
83
- hideInSearch: !0,
84
- width: 160,
85
- title: "操作",
86
- dataIndex: "action",
87
- fixed: "right"
88
- }
89
- ];
90
- function g() {
91
- d.value?.reload();
92
- }
93
- function _(t, n, i) {
94
- switch (t) {
95
- case ACTION.EDIT:
96
- f.value?.open(t, n, i);
97
- break;
98
- case ACTION.ADD:
99
- f.value?.open(t, n);
100
- break;
101
- case ACTION.REMOVE:
102
- Modal.confirm({
103
- title: "删除",
104
- content: "确定要删除该群组吗?",
105
- onOk() {
106
- deleteGroupDeleteById({ id: i?.id }).then(({ success: e }) => {
107
- e && (message.success("删除成功"), p());
108
- });
109
- }
110
- });
111
- break;
112
- }
113
- }
114
- return (e, t) => {
115
- let n = TabPane, s = Tabs, c = PlusCircleOutlined, l = Button, v = PubinfoIcon, y = Space$1, b = resolveDirective("auth");
116
- return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createVNode(s, {
117
- "active-key": unref(o).type,
118
- "onUpdate:activeKey": t[0] ||= (e) => unref(o).type = e,
119
- class: "tabs_custom",
120
- onChange: g
121
- }, {
122
- default: withCtx(() => [createVNode(n, {
123
- key: "1",
124
- tab: "组织群组"
125
- }), createVNode(n, {
126
- key: "2",
127
- tab: "人员群组"
128
- })]),
129
- _: 1
130
- }, 8, ["active-key"]), createElementVNode("div", _hoisted_3, [createVNode(unref(ProTable), {
131
- ref_key: "tableRef",
132
- ref: d,
133
- "row-key": "id",
134
- request: m,
135
- columns: h,
136
- "data-source": unref(u),
137
- "auto-height": "",
138
- scroll: { x: 1100 }
139
- }, {
140
- toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(l, {
141
- type: "primary",
142
- onClick: t[1] ||= (e) => _(unref(ACTION).ADD, unref(o).type)
143
- }, {
144
- default: withCtx(() => [createVNode(c), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
145
- _: 1
146
- })), [[b, "group_save"]])]),
147
- bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "action" ? (openBlock(), createBlock(y, { key: 0 }, {
148
- default: withCtx(() => [withDirectives((openBlock(), createElementBlock("a", {
149
- class: "flex items-center",
150
- onClick: (e) => _(unref(ACTION).EDIT, unref(o).type, t)
151
- }, [createVNode(v, {
152
- name: "edit",
153
- class: "text-base"
154
- }), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[b, "group_edit"]]), withDirectives((openBlock(), createElementBlock("span", {
155
- class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
156
- onClick: (e) => _(unref(ACTION).REMOVE, unref(o).type, t)
157
- }, [createVNode(v, {
158
- name: "remove",
159
- class: "text-base"
160
- }), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_6)), [[b, "group_delete"]])]),
161
- _: 2
162
- }, 1024)) : createCommentVNode("", !0)]),
163
- _: 1
164
- }, 8, ["data-source"])])]), createVNode(drawerGroup_default, {
165
- ref_key: "drawerGroupRef",
166
- ref: f,
167
- onSubmit: t[2] ||= (e) => p()
168
- }, null, 512)]);
169
- };
170
- }
171
- }), [["__scopeId", "data-v-fb537441"]]);
172
- export { group_default as default };
@@ -1,2 +0,0 @@
1
- var icard_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2020%2020'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20clip-path='url(%23a)'%3e%3cg%20filter='url(%23b)'%3e%3crect%20width='16'%20height='14'%20x='2.642'%20y='3'%20fill='%23D9D9D9'%20rx='1'/%3e%3crect%20width='16'%20height='14'%20x='2.642'%20y='3'%20fill='url(%23c)'%20rx='1'/%3e%3crect%20width='16'%20height='14'%20x='2.642'%20y='3'%20fill='url(%23d)'%20rx='1'/%3e%3crect%20width='16'%20height='14'%20x='2.642'%20y='3'%20fill='url(%23e)'%20rx='1'/%3e%3c/g%3e%3crect%20width='14'%20height='12'%20x='3.642'%20y='4'%20fill='%23fff'%20opacity='.3'%20rx='1'/%3e%3cpath%20fill='%23fff'%20d='M10.706%2012.095h4.795v1.598h-4.795zM8.043%209.698l-2.26-2.26%201.13-1.131%203.39%203.39-3.39%203.392-1.13-1.132z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='c'%20x1='10.642'%20x2='10.642'%20y1='3'%20y2='17'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2354CCFF'/%3e%3cstop%20offset='1'%20stop-color='%231B69FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='d'%20x1='20.379'%20x2='13.408'%20y1='7.015'%20y2='18.657'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23AAFFB8'%20stop-opacity='.68'/%3e%3cstop%20offset='.397'%20stop-color='%2348FF65'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='e'%20x1='17.468'%20x2='5.174'%20y1='7.268'%20y2='18.22'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.51'%20stop-color='%23A244FF'%20stop-opacity='0'/%3e%3cstop%20offset='.978'%20stop-color='%23A244FF'/%3e%3c/linearGradient%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h20v20H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20width='20'%20height='18'%20x='.642'%20y='2'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200.215686%200%200%200%200%200.6%200%200%200%200%201%200%200%200%200.4%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_62_2506'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_62_2506'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";
2
- export { icard_default as default };
@@ -1,2 +0,0 @@
1
- var icon_animation_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2026%2026'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20filter='url(%23a)'%3e%3cpath%20fill='url(%23b)'%20d='M4%204.5a1%201%200%200%201%201-1h16a1%201%200%200%201%201%201v15a1%201%200%200%201-1%201H5a1%201%200%200%201-1-1z'%20shape-rendering='crispEdges'/%3e%3c/g%3e%3cpath%20fill='url(%23c)'%20d='M5%205.5a1%201%200%200%201%201-1h14a1%201%200%200%201%201%201v13a1%201%200%200%201-1%201H6a1%201%200%200%201-1-1z'/%3e%3cg%20filter='url(%23d)'%20shape-rendering='crispEdges'%3e%3crect%20width='6'%20height='6'%20x='14'%20y='10.5'%20fill='%23fff'%20fill-opacity='.2'%20rx='1'%20transform='rotate(90%2014%2010.5)'/%3e%3crect%20width='7'%20height='7'%20x='14.5'%20y='10'%20stroke='%23fff'%20rx='1.5'%20transform='rotate(90%2014.5%2010)'/%3e%3c/g%3e%3cg%20filter='url(%23e)'%20shape-rendering='crispEdges'%3e%3crect%20width='6'%20height='6'%20x='18'%20y='7.5'%20fill='%23fff'%20fill-opacity='.2'%20rx='3'%20transform='rotate(90%2018%207.5)'/%3e%3crect%20width='7'%20height='7'%20x='18.5'%20y='7'%20stroke='%23fff'%20rx='3.5'%20transform='rotate(90%2018.5%207)'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='a'%20width='26'%20height='25'%20x='0'%20y='.5'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200.0885876%200%200%200%200%200.240744%200%200%200%200%200.626988%200%200%200%200.2%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_189_27166'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_189_27166'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='d'%20width='12'%20height='12'%20x='5'%20y='8.5'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200.0885876%200%200%200%200%200.240744%200%200%200%200%200.626988%200%200%200%200.4%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_189_27166'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_189_27166'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='e'%20width='12'%20height='12'%20x='9'%20y='5.5'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200.0885876%200%200%200%200%200.240744%200%200%200%200%200.626988%200%200%200%200.4%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_189_27166'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_189_27166'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='b'%20x1='13'%20x2='13'%20y1='3.5'%20y2='20.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23fff'/%3e%3cstop%20offset='1'%20stop-color='%23fff'%20stop-opacity='.38'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='13'%20x2='13'%20y1='4.5'%20y2='19.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2389AAFC'/%3e%3cstop%20offset='1'%20stop-color='%23DFEAFF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
2
- export { icon_animation_default as default };
@@ -1,2 +0,0 @@
1
- var icon_breadcrumb_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2026%2026'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20filter='url(%23a)'%3e%3cpath%20fill='url(%23b)'%20d='M4%204.5a1%201%200%200%201%201-1h16a1%201%200%200%201%201%201v15a1%201%200%200%201-1%201H5a1%201%200%200%201-1-1z'%20shape-rendering='crispEdges'/%3e%3c/g%3e%3cpath%20fill='url(%23c)'%20d='M5%205.5a1%201%200%200%201%201-1h14a1%201%200%200%201%201%201v13a1%201%200%200%201-1%201H6a1%201%200%200%201-1-1z'/%3e%3cg%20filter='url(%23d)'%20shape-rendering='crispEdges'%3e%3crect%20width='2.01'%20height='9.975'%20x='10.184'%20y='16.237'%20fill='%23fff'%20fill-opacity='.2'%20rx='1'%20transform='rotate(-135%2010.184%2016.237)'/%3e%3crect%20width='3.01'%20height='10.975'%20x='10.184'%20y='16.944'%20stroke='%23fff'%20rx='1.5'%20transform='rotate(-135%2010.184%2016.944)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='b'%20x1='13'%20x2='13'%20y1='3.5'%20y2='20.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23fff'/%3e%3cstop%20offset='1'%20stop-color='%23fff'%20stop-opacity='.38'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='13'%20x2='13'%20y1='4.5'%20y2='19.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2389AAFC'/%3e%3cstop%20offset='1'%20stop-color='%23DFEAFF'/%3e%3c/linearGradient%3e%3cfilter%20id='a'%20width='26'%20height='25'%20x='0'%20y='.5'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200.0885876%200%200%200%200%200.240744%200%200%200%200%200.626988%200%200%200%200.2%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_517_22249'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_517_22249'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='d'%20width='13.643'%20height='13.643'%20x='6.178'%20y='6.179'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200.0885876%200%200%200%200%200.240744%200%200%200%200%200.626988%200%200%200%200.4%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_517_22249'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_517_22249'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";
2
- export { icon_breadcrumb_default as default };