@pubinfo-pr/module-rbac 0.203.4 → 0.203.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 (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-DWhTc1fB.js +253 -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-BbFERZ1l.js +15411 -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-CwtSFUj0.js +0 -247
  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-Dv3FbKke.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
@@ -0,0 +1,275 @@
1
+ import "./view-lBxqXfPW.js";
2
+ import "./request-7X2hpUru.js";
3
+ import "./MetaForm-ZLzLz68d.js";
4
+ import { t as e } from "./cloneDeep-REaxTPsZ.js";
5
+ import "./ComponentSelect-CYmAgdm3.js";
6
+ import { C as t, S as n } from "./rbac-B59CVHDt.js";
7
+ import "./enum-CYCebJeC.js";
8
+ import { i as r, n as i, r as a, t as o } from "./enum-CR5ztb5v2.js";
9
+ import "./DynamicRoutesForm-CMF3oh8h.js";
10
+ import "./HoverCard-B-uU48hF.js";
11
+ import "./IconSelect-CvxGRN_O.js";
12
+ import "./dayjs.min-CJunOGCc.js";
13
+ import { t as s } from "./ImportExport-CzZssb7_.js";
14
+ import "./LayoutForm-Bpdyi_2o.js";
15
+ import { t as c } from "./ResourceEdit-9fvxbd0K.js";
16
+ import { t as l } from "./RoleRelation-DuRuQG08.js";
17
+ import { PubinfoIcon as u, useAuth as d } from "pubinfo-pr";
18
+ import { computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, openBlock as b, ref as x, resolveDirective as S, toDisplayString as C, unref as w, withCtx as T, withDirectives as E } from "vue";
19
+ import { PlusCircleOutlined as D, SwapOutlined as O } from "@ant-design/icons-vue";
20
+ import { Badge as k, Modal as A, Tag as j, message as M } from "ant-design-vue";
21
+ import { Button as N, Space as P } from "ant-design-vue/es";
22
+ import { ProTable as F } from "@pubinfo/pro-components";
23
+ //#region src/views/resource/index.vue?vue&type=script&setup=true&lang.tsx
24
+ var I = {
25
+ "w-full": "",
26
+ "h-full": "",
27
+ "py-10px": "",
28
+ "px-10px": ""
29
+ }, L = ["onClick"], R = ["onClick"], z = ["onClick"], B = ["onClick"], V = /* @__PURE__ */ y({
30
+ name: "Resource",
31
+ __name: "index",
32
+ setup(y) {
33
+ let { auth: V } = d(), H = [
34
+ {
35
+ valueType: "a-input",
36
+ width: 200,
37
+ title: "资源名称",
38
+ dataIndex: "name",
39
+ ellipsis: !0,
40
+ fieldProps: {
41
+ placeholder: "请输入资源名称",
42
+ allowClear: !0
43
+ }
44
+ },
45
+ {
46
+ valueType: "a-select",
47
+ title: "资源类型",
48
+ dataIndex: "type",
49
+ fieldProps: {
50
+ placeholder: "请选择资源类型",
51
+ allowClear: !0,
52
+ options: r
53
+ },
54
+ customRender({ text: e }) {
55
+ return v("div", { class: "flex items-center space-x-1" }, [v(j, {
56
+ color: i[e],
57
+ bordered: !1
58
+ }, { default: () => [r.find((t) => t.value === e)?.label] })]);
59
+ }
60
+ },
61
+ {
62
+ valueType: "a-input",
63
+ title: "资源编码",
64
+ dataIndex: "code",
65
+ ellipsis: !0,
66
+ fieldProps: {
67
+ placeholder: "请输入资源编码",
68
+ allowClear: !0
69
+ }
70
+ },
71
+ {
72
+ title: "资源路径",
73
+ dataIndex: "meta",
74
+ ellipsis: !0,
75
+ hideInSearch: !0,
76
+ customRender({ text: e }) {
77
+ return e?.url || "-";
78
+ }
79
+ },
80
+ {
81
+ title: "接口权限",
82
+ dataIndex: "permissionCode",
83
+ ellipsis: !0,
84
+ hideInSearch: !0
85
+ },
86
+ {
87
+ valueType: "a-select",
88
+ title: "是否启用",
89
+ dataIndex: "enable",
90
+ width: 80,
91
+ align: "center",
92
+ fieldProps: {
93
+ placeholder: "请选择是否启用",
94
+ allowClear: !0,
95
+ options: [{
96
+ value: 1,
97
+ label: "是"
98
+ }, {
99
+ value: 0,
100
+ label: "否"
101
+ }]
102
+ },
103
+ customRender({ text: e }) {
104
+ return e ? v(k, {
105
+ status: "success",
106
+ text: "是"
107
+ }, null) : v(k, {
108
+ status: "error",
109
+ text: "否"
110
+ }, null);
111
+ }
112
+ },
113
+ {
114
+ title: "排序",
115
+ dataIndex: "sort",
116
+ width: 60,
117
+ align: "center",
118
+ hideInSearch: !0
119
+ },
120
+ {
121
+ title: "操作",
122
+ dataIndex: "action",
123
+ fixed: "right",
124
+ width: 300,
125
+ hideInSearch: !0,
126
+ hideInTable() {
127
+ return !V([
128
+ "resource_role_relation",
129
+ "resource_add_child",
130
+ "resource_edit",
131
+ "resource_remove"
132
+ ]);
133
+ }
134
+ }
135
+ ];
136
+ function U(e, t) {
137
+ return e?.map((e) => (e.children = e.children && U(e.children, t), t(e))) ?? [];
138
+ }
139
+ let W = x(), G = f(() => W.value?.dataSource ?? []);
140
+ function K() {
141
+ W.value.reload();
142
+ }
143
+ async function q(n) {
144
+ let { pageSize: r, current: i, ...a } = e(n);
145
+ return {
146
+ success: !0,
147
+ data: await t({ ...a }, { transform(e) {
148
+ return U(e?.data ?? [], (e) => e.leaf ? {
149
+ ...e,
150
+ children: void 0
151
+ } : e);
152
+ } })
153
+ };
154
+ }
155
+ let J = x(), Y = x(), X = x();
156
+ function Z(e, t) {
157
+ switch (e) {
158
+ case o.ROLE_RELATION:
159
+ Y.value.open(t);
160
+ break;
161
+ case o.ADD:
162
+ J.value.open(e);
163
+ break;
164
+ case o.ADD_CHILD:
165
+ J.value.open(e, t);
166
+ break;
167
+ case o.EDIT:
168
+ J.value.open(e, t);
169
+ break;
170
+ case o.IMPORT_EXPORT:
171
+ X.value.open();
172
+ break;
173
+ case o.REMOVE:
174
+ if (!t?.leaf) {
175
+ M.info("非叶子节点不能删除");
176
+ return;
177
+ }
178
+ A.confirm({
179
+ title: "删除",
180
+ content: "确定要删除该资源吗?",
181
+ async onOk() {
182
+ (await n({ id: t?.id })).success && (M.success("删除成功"), K());
183
+ }
184
+ });
185
+ break;
186
+ }
187
+ }
188
+ return (e, t) => {
189
+ let n = D, r = N, i = P, d = S("auth");
190
+ return b(), h("div", I, [
191
+ v(w(F), {
192
+ ref_key: "tableRef",
193
+ ref: W,
194
+ "row-key": "id",
195
+ columns: H,
196
+ request: q,
197
+ pagination: !1,
198
+ scroll: { x: 1280 },
199
+ "auto-height": ""
200
+ }, {
201
+ toolbar: T(() => [v(i, null, {
202
+ default: T(() => [E((b(), p(r, {
203
+ type: "primary",
204
+ onClick: t[0] ||= (e) => Z(w(o).ADD)
205
+ }, {
206
+ default: T(() => [v(n), _(" " + C(w(o).ADD), 1)]),
207
+ _: 1
208
+ })), [[d, "resource_app_add"]]), v(r, { onClick: t[1] ||= (e) => Z(w(o).IMPORT_EXPORT) }, {
209
+ default: T(() => [v(w(O)), _(" " + C(w(o).IMPORT_EXPORT), 1)]),
210
+ _: 1
211
+ })]),
212
+ _: 1
213
+ })]),
214
+ bodyCell: T(({ column: e, record: t }) => [e.dataIndex === "action" ? (b(), p(i, { key: 0 }, {
215
+ default: T(() => [
216
+ E((b(), h("a", {
217
+ class: "flex items-center",
218
+ onClick: (e) => Z(w(o).ROLE_RELATION, t)
219
+ }, [v(w(u), {
220
+ name: "view",
221
+ class: "mr-1 text-base"
222
+ }), g("span", null, C(w(o).ROLE_RELATION), 1)], 8, L)), [[d, "resource_role_relation"]]),
223
+ [
224
+ w(a).BUTTON,
225
+ w(a).IFRAME,
226
+ w(a).LINK
227
+ ].includes(t.type) ? m("", !0) : E((b(), h("a", {
228
+ key: 0,
229
+ class: "flex items-center",
230
+ onClick: (e) => Z(w(o).ADD_CHILD, t)
231
+ }, [v(w(u), {
232
+ name: "add-child",
233
+ class: "mr-1 text-base"
234
+ }), g("span", null, C(w(o).ADD_CHILD), 1)], 8, R)), [[d, "resource_add_child"]]),
235
+ E((b(), h("a", {
236
+ class: "flex items-center",
237
+ onClick: (e) => Z(w(o).EDIT, t)
238
+ }, [v(w(u), {
239
+ name: "edit",
240
+ class: "mr-1 text-base"
241
+ }), g("span", null, C(w(o).EDIT), 1)], 8, z)), [[d, "resource_edit"]]),
242
+ E((b(), h("span", {
243
+ class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
244
+ onClick: (e) => Z(w(o).REMOVE, t)
245
+ }, [v(w(u), {
246
+ name: "remove",
247
+ class: "mr-1 text-base"
248
+ }), g("span", null, C(w(o).REMOVE), 1)], 8, B)), [[d, "resource_remove"]])
249
+ ]),
250
+ _: 2
251
+ }, 1024)) : m("", !0)]),
252
+ _: 1
253
+ }, 512),
254
+ v(c, {
255
+ ref_key: "editRef",
256
+ ref: J,
257
+ "data-source": w(G),
258
+ onSubmit: K
259
+ }, null, 8, ["data-source"]),
260
+ v(l, {
261
+ ref_key: "relationRef",
262
+ ref: Y
263
+ }, null, 512),
264
+ v(s, {
265
+ ref_key: "importExportRef",
266
+ ref: X,
267
+ "data-source": w(G),
268
+ onSubmit: K
269
+ }, null, 8, ["data-source"])
270
+ ]);
271
+ };
272
+ }
273
+ });
274
+ //#endregion
275
+ export { V as default };
@@ -0,0 +1,4 @@
1
+ //#region src/assets/icons/resource-app.svg
2
+ var e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2020%2021'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20clip-path='url(%23a)'%3e%3cg%20filter='url(%23b)'%3e%3cpath%20fill='url(%23c)'%20d='M17.358%2013.486V6.864c0-.572-.327-1.145-.818-1.39l-5.723-3.27a1.49%201.49%200%200%200-1.635%200L3.46%205.474c-.49.327-.817.818-.817%201.39v6.622c0%20.573.327%201.145.817%201.39l5.723%203.27c.49.328%201.145.328%201.635%200l5.723-3.27c.49-.245.818-.817.818-1.39'/%3e%3cpath%20fill='url(%23d)'%20d='M17.358%2013.486V6.864c0-.572-.327-1.145-.818-1.39l-5.723-3.27a1.49%201.49%200%200%200-1.635%200L3.46%205.474c-.49.327-.817.818-.817%201.39v6.622c0%20.573.327%201.145.817%201.39l5.723%203.27c.49.328%201.145.328%201.635%200l5.723-3.27c.49-.245.818-.817.818-1.39'/%3e%3cpath%20fill='url(%23e)'%20d='M17.358%2013.486V6.864c0-.572-.327-1.145-.818-1.39l-5.723-3.27a1.49%201.49%200%200%200-1.635%200L3.46%205.474c-.49.327-.817.818-.817%201.39v6.622c0%20.573.327%201.145.817%201.39l5.723%203.27c.49.328%201.145.328%201.635%200l5.723-3.27c.49-.245.818-.817.818-1.39'/%3e%3c/g%3e%3cpath%20fill='%23fff'%20d='M4.865%208.284a.5.5%200%200%200-.752.432v4.196a1%201%200%200%200%20.496.864l3.658%202.133a.5.5%200%200%200%20.752-.432v-4.196a1%201%200%200%200-.496-.864z'%20opacity='.3'/%3e%3cpath%20fill='%23fff'%20d='M13.985%206.884a.5.5%200%200%200%20.005-.867l-3.65-2.13a1%201%200%200%200-1.008%200l-3.65%202.13a.5.5%200%200%200%20.005.867l3.656%202.072a1%201%200%200%200%20.986%200z'%20opacity='.5'/%3e%3cpath%20fill='%23fff'%20d='M15.559%208.716a.5.5%200%200%200-.752-.432l-3.658%202.133a1%201%200%200%200-.496.864v4.196a.5.5%200%200%200%20.752.432l3.658-2.133a1%201%200%200%200%20.496-.864z'%20opacity='.3'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='c'%20x1='10'%20x2='10'%20y1='1.959'%20y2='18.392'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2354CCFF'/%3e%3cstop%20offset='1'%20stop-color='%231B69FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='d'%20x1='18.956'%20x2='10'%20y1='6.671'%20y2='18.392'%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='16.278'%20x2='2.642'%20y1='6.968'%20y2='16.488'%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%20.175h20v20H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20width='18.716'%20height='20.433'%20x='.642'%20y='.959'%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_32_8274'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_32_8274'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,4 @@
1
+ //#region src/assets/icons/resource-btn.svg
2
+ var e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2020%2021'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20filter='url(%23a)'%3e%3crect%20width='14.716'%20height='11.192'%20x='2.642'%20y='4.579'%20fill='%23D9D9D9'%20rx='2'/%3e%3crect%20width='14.716'%20height='11.192'%20x='2.642'%20y='4.579'%20fill='url(%23b)'%20rx='2'/%3e%3crect%20width='14.716'%20height='11.192'%20x='2.642'%20y='4.579'%20fill='url(%23c)'%20rx='2'/%3e%3crect%20width='14.716'%20height='11.192'%20x='2.642'%20y='4.579'%20fill='url(%23d)'%20rx='2'/%3e%3c/g%3e%3cpath%20fill='%23fff'%20d='M5.49%208.033h1.96q.64%200%201.002.306.335.288.336.774-.002.36-.174.612c-.114.156-.276.27-.492.354q.422.081.636.342c.138.168.21.402.21.69q-.001.648-.444.954c-.252.168-.612.252-1.068.252H5.49zm.701.576v1.224h1.074c.3%200%20.51-.054.636-.15.12-.102.186-.264.186-.486%200-.204-.066-.354-.186-.444-.132-.096-.336-.144-.624-.144zm0%201.8v1.332h1.164q.397%200%20.624-.126c.192-.108.288-.276.288-.516q-.002-.367-.21-.528-.216-.162-.684-.162zm4.353-2.196v1.002h.69v.564h-.69v1.752c0%20.072.012.126.048.168.036.036.084.054.156.054h.408v.564h-.522q-.405%200-.594-.216c-.12-.132-.18-.318-.18-.57V9.78h-.558v-.564h.558v-.72zm2.804.918c.774%200%201.164.42%201.164%201.272v1.914h-.684v-1.854q0-.764-.702-.762a.63.63%200%200%200-.444.18q-.216.2-.252.57v1.866h-.684V9.215h.684v.36a1.2%201.2%200%200%201%20.408-.33q.232-.115.51-.114'%20opacity='.5'/%3e%3cdefs%3e%3clinearGradient%20id='b'%20x1='10'%20x2='10'%20y1='4.579'%20y2='15.771'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2354CCFF'/%3e%3cstop%20offset='1'%20stop-color='%231B69FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='c'%20x1='18.955'%20x2='13.778'%20y1='7.789'%20y2='17.737'%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='d'%20x1='16.278'%20x2='6.387'%20y1='7.991'%20y2='18.129'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.51'%20stop-color='%23A244FF'%20stop-opacity='0'/%3e%3cstop%20offset='.978'%20stop-color='%23A244FF'/%3e%3c/linearGradient%3e%3cfilter%20id='a'%20width='18.716'%20height='15.192'%20x='.642'%20y='3.579'%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_32_8298'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_32_8298'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,4 @@
1
+ //#region src/assets/icons/resource-dynamic.svg
2
+ var e = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20clip-path='url(%23clip0_1047_18776)'%3e%3cg%20filter='url(%23filter0_d_1047_18776)'%3e%3cpath%20d='M17.3578%2013.3111V6.68884C17.3578%206.11654%2017.0307%205.54425%2016.5402%205.29898L10.8173%202.02872C10.3267%201.70169%209.67266%201.70169%209.18212%202.02872L3.45917%205.29898C2.96863%205.626%202.6416%206.11654%202.6416%206.68884V13.3111C2.6416%2013.8834%202.96863%2014.4557%203.45917%2014.701L9.18212%2017.9712C9.67266%2018.2983%2010.3267%2018.2983%2010.8173%2017.9712L16.5402%2014.701C17.0307%2014.4557%2017.3578%2013.8834%2017.3578%2013.3111Z'%20fill='url(%23paint0_linear_1047_18776)'/%3e%3cpath%20d='M17.3578%2013.3111V6.68884C17.3578%206.11654%2017.0307%205.54425%2016.5402%205.29898L10.8173%202.02872C10.3267%201.70169%209.67266%201.70169%209.18212%202.02872L3.45917%205.29898C2.96863%205.626%202.6416%206.11654%202.6416%206.68884V13.3111C2.6416%2013.8834%202.96863%2014.4557%203.45917%2014.701L9.18212%2017.9712C9.67266%2018.2983%2010.3267%2018.2983%2010.8173%2017.9712L16.5402%2014.701C17.0307%2014.4557%2017.3578%2013.8834%2017.3578%2013.3111Z'%20fill='url(%23paint1_linear_1047_18776)'/%3e%3cpath%20d='M17.3578%2013.3111V6.68884C17.3578%206.11654%2017.0307%205.54425%2016.5402%205.29898L10.8173%202.02872C10.3267%201.70169%209.67266%201.70169%209.18212%202.02872L3.45917%205.29898C2.96863%205.626%202.6416%206.11654%202.6416%206.68884V13.3111C2.6416%2013.8834%202.96863%2014.4557%203.45917%2014.701L9.18212%2017.9712C9.67266%2018.2983%2010.3267%2018.2983%2010.8173%2017.9712L16.5402%2014.701C17.0307%2014.4557%2017.3578%2013.8834%2017.3578%2013.3111Z'%20fill='url(%23paint2_linear_1047_18776)'/%3e%3c/g%3e%3cpath%20opacity='0.2'%20d='M4.71383%2012.4012L9.49481%209.78656C9.59954%209.72926%209.71701%209.69922%209.8364%209.69922C9.9558%209.69922%2010.0733%209.72926%2010.178%209.78656L14.959%2012.4012C15.0151%2012.4318%2015.062%2012.477%2015.0946%2012.532C15.1273%2012.587%2015.1445%2012.6497%2015.1445%2012.7136C15.1445%2012.7776%2015.1273%2012.8403%2015.0946%2012.8953C15.062%2012.9503%2015.0151%2012.9955%2014.959%2013.0261L10.178%2015.6407C10.0733%2015.698%209.9558%2015.7281%209.8364%2015.7281C9.71701%2015.7281%209.59954%2015.698%209.49481%2015.6407L4.71383%2013.0261C4.65769%2012.9955%204.61084%2012.9503%204.57819%2012.8953C4.54555%2012.8403%204.52832%2012.7776%204.52832%2012.7136C4.52832%2012.6497%204.54555%2012.587%204.57819%2012.532C4.61084%2012.477%204.65769%2012.4318%204.71383%2012.4012Z'%20fill='white'/%3e%3cpath%20opacity='0.4'%20d='M4.71383%209.70079L9.49481%207.08612C9.59954%207.02882%209.71701%206.99878%209.8364%206.99878C9.9558%206.99878%2010.0733%207.02882%2010.178%207.08612L14.959%209.70079C15.0151%209.73139%2015.062%209.77656%2015.0946%209.83153C15.1273%209.88651%2015.1445%209.94927%2015.1445%2010.0132C15.1445%2010.0771%2015.1273%2010.1399%2015.0946%2010.1949C15.062%2010.2499%2015.0151%2010.295%2014.959%2010.3256L10.178%2012.9403C10.0733%2012.9976%209.9558%2013.0276%209.8364%2013.0276C9.71701%2013.0276%209.59954%2012.9976%209.49481%2012.9403L4.71383%2010.3256C4.65769%2010.295%204.61084%2010.2499%204.57819%2010.1949C4.54555%2010.1399%204.52832%2010.0771%204.52832%2010.0132C4.52832%209.94927%204.54555%209.88651%204.57819%209.83153C4.61084%209.77656%204.65769%209.73139%204.71383%209.70079Z'%20fill='white'/%3e%3cpath%20d='M4.71383%207.00059L9.49481%204.38593C9.59954%204.32862%209.71701%204.29858%209.8364%204.29858C9.9558%204.29858%2010.0733%204.32862%2010.178%204.38593L14.959%207.00059C15.0151%207.0312%2015.062%207.07636%2015.0946%207.13134C15.1273%207.18632%2015.1445%207.24907%2015.1445%207.31301C15.1445%207.37695%2015.1273%207.43971%2015.0946%207.49469C15.062%207.54966%2015.0151%207.59483%2014.959%207.62543L10.178%2010.2401C10.0733%2010.2974%209.9558%2010.3274%209.8364%2010.3274C9.71701%2010.3274%209.59954%2010.2974%209.49481%2010.2401L4.71383%207.62543C4.65769%207.59483%204.61084%207.54966%204.57819%207.49469C4.54555%207.43971%204.52832%207.37695%204.52832%207.31301C4.52832%207.24907%204.54555%207.18632%204.57819%207.13134C4.61084%207.07636%204.65769%207.0312%204.71383%207.00059Z'%20fill='%23DFEFFF'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_1047_18776'%20x='0.641602'%20y='0.783447'%20width='18.7158'%20height='20.4331'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%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%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_1047_18776'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_1047_18776'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_1047_18776'%20x1='9.99969'%20y1='1.78345'%20x2='9.99969'%20y2='18.2165'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2354CCFF'/%3e%3cstop%20offset='1'%20stop-color='%231B69FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_1047_18776'%20x1='18.9557'%20y1='6.49578'%20x2='9.99969'%20y2='18.2165'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23AAFFB8'%20stop-opacity='0.68'/%3e%3cstop%20offset='0.396549'%20stop-color='%2348FF65'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_1047_18776'%20x1='16.2784'%20y1='6.79325'%20x2='2.6416'%20y2='16.3125'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.510458'%20stop-color='%23A244FF'%20stop-opacity='0'/%3e%3cstop%20offset='0.977913'%20stop-color='%23A244FF'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_1047_18776'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,4 @@
1
+ //#region src/assets/icons/resource-index.svg
2
+ var e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2020%2021'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20clip-path='url(%23a)'%3e%3cg%20filter='url(%23b)'%3e%3crect%20width='14.716'%20height='14.857'%20x='2.642'%20y='2.747'%20fill='%23D9D9D9'%20rx='2'/%3e%3crect%20width='14.716'%20height='14.857'%20x='2.642'%20y='2.747'%20fill='url(%23c)'%20rx='2'/%3e%3crect%20width='14.716'%20height='14.857'%20x='2.642'%20y='2.747'%20fill='url(%23d)'%20rx='2'/%3e%3crect%20width='14.716'%20height='14.857'%20x='2.642'%20y='2.747'%20fill='url(%23e)'%20rx='2'/%3e%3c/g%3e%3crect%20width='2'%20height='2'%20x='6.169'%20y='5.641'%20fill='%23fff'%20opacity='.5'%20rx='1'/%3e%3crect%20width='2'%20height='2'%20x='6.169'%20y='9.379'%20fill='%23fff'%20opacity='.5'%20rx='1'/%3e%3crect%20width='2'%20height='2'%20x='6.169'%20y='13.118'%20fill='%23fff'%20opacity='.5'%20rx='1'/%3e%3crect%20width='4.747'%20height='1.3'%20x='9.597'%20y='5.991'%20fill='%23fff'%20opacity='.5'%20rx='.65'/%3e%3crect%20width='4.747'%20height='1.3'%20x='9.597'%20y='9.729'%20fill='%23fff'%20opacity='.5'%20rx='.65'/%3e%3crect%20width='4.747'%20height='1.3'%20x='9.597'%20y='13.468'%20fill='%23fff'%20opacity='.5'%20rx='.65'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='c'%20x1='10'%20x2='10'%20y1='2.747'%20y2='17.604'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2354CCFF'/%3e%3cstop%20offset='1'%20stop-color='%231B69FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='d'%20x1='18.955'%20x2='11.107'%20y1='7.007'%20y2='18.368'%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='16.278'%20x2='3.572'%20y1='7.276'%20y2='17.087'%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%20.175h20v20H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20width='18.716'%20height='18.857'%20x='.642'%20y='1.747'%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_32_8282'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_32_8282'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,4 @@
1
+ //#region src/assets/icons/resource-menu.svg
2
+ var e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2020%2021'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20clip-path='url(%23a)'%3e%3cg%20filter='url(%23b)'%3e%3crect%20width='14.716'%20height='14.857'%20x='2.642'%20y='2.747'%20fill='%23D9D9D9'%20rx='2'/%3e%3crect%20width='14.716'%20height='14.857'%20x='2.642'%20y='2.747'%20fill='url(%23c)'%20rx='2'/%3e%3crect%20width='14.716'%20height='14.857'%20x='2.642'%20y='2.747'%20fill='url(%23d)'%20rx='2'/%3e%3crect%20width='14.716'%20height='14.857'%20x='2.642'%20y='2.747'%20fill='url(%23e)'%20rx='2'/%3e%3c/g%3e%3crect%20width='4.69'%20height='4.69'%20x='4.827'%20y='4.944'%20fill='%23fff'%20opacity='.5'%20rx='1'/%3e%3crect%20width='4.69'%20height='4.69'%20x='10.482'%20y='4.944'%20fill='%23fff'%20opacity='.5'%20rx='2.345'/%3e%3crect%20width='4.69'%20height='4.69'%20x='4.827'%20y='10.716'%20fill='%23fff'%20opacity='.5'%20rx='1'/%3e%3crect%20width='4.69'%20height='4.69'%20x='10.482'%20y='10.716'%20fill='%23fff'%20opacity='.5'%20rx='1'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='c'%20x1='10'%20x2='10'%20y1='2.747'%20y2='17.604'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2354CCFF'/%3e%3cstop%20offset='1'%20stop-color='%231B69FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='d'%20x1='18.955'%20x2='11.107'%20y1='7.007'%20y2='18.368'%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='16.278'%20x2='3.572'%20y1='7.276'%20y2='17.087'%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%20.175h20v20H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20width='18.716'%20height='18.857'%20x='.642'%20y='1.747'%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_32_8290'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_32_8290'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,4 @@
1
+ //#region src/assets/icons/resource-micro.svg
2
+ var e = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20clip-path='url(%23clip0_1047_18784)'%3e%3cg%20filter='url(%23filter0_d_1047_18784)'%3e%3cpath%20d='M17.3578%2013.3111V6.68884C17.3578%206.11654%2017.0307%205.54425%2016.5402%205.29898L10.8173%202.02872C10.3267%201.70169%209.67266%201.70169%209.18212%202.02872L3.45917%205.29898C2.96863%205.626%202.6416%206.11654%202.6416%206.68884V13.3111C2.6416%2013.8834%202.96863%2014.4557%203.45917%2014.701L9.18212%2017.9712C9.67266%2018.2983%2010.3267%2018.2983%2010.8173%2017.9712L16.5402%2014.701C17.0307%2014.4557%2017.3578%2013.8834%2017.3578%2013.3111Z'%20fill='url(%23paint0_linear_1047_18784)'/%3e%3cpath%20d='M17.3578%2013.3111V6.68884C17.3578%206.11654%2017.0307%205.54425%2016.5402%205.29898L10.8173%202.02872C10.3267%201.70169%209.67266%201.70169%209.18212%202.02872L3.45917%205.29898C2.96863%205.626%202.6416%206.11654%202.6416%206.68884V13.3111C2.6416%2013.8834%202.96863%2014.4557%203.45917%2014.701L9.18212%2017.9712C9.67266%2018.2983%2010.3267%2018.2983%2010.8173%2017.9712L16.5402%2014.701C17.0307%2014.4557%2017.3578%2013.8834%2017.3578%2013.3111Z'%20fill='url(%23paint1_linear_1047_18784)'/%3e%3cpath%20d='M17.3578%2013.3111V6.68884C17.3578%206.11654%2017.0307%205.54425%2016.5402%205.29898L10.8173%202.02872C10.3267%201.70169%209.67266%201.70169%209.18212%202.02872L3.45917%205.29898C2.96863%205.626%202.6416%206.11654%202.6416%206.68884V13.3111C2.6416%2013.8834%202.96863%2014.4557%203.45917%2014.701L9.18212%2017.9712C9.67266%2018.2983%2010.3267%2018.2983%2010.8173%2017.9712L16.5402%2014.701C17.0307%2014.4557%2017.3578%2013.8834%2017.3578%2013.3111Z'%20fill='url(%23paint2_linear_1047_18784)'/%3e%3c/g%3e%3cpath%20opacity='0.5'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.18525%2010.5802V14.6637C9.18525%2015.0229%209.47644%2015.3141%209.83564%2015.3141C10.1948%2015.3141%2010.486%2015.0229%2010.486%2014.6637V10.4977L14.1176%208.401C14.4287%208.2214%2014.5353%207.82363%2014.3557%207.51255C14.1761%207.20148%2013.7783%207.09489%2013.4672%207.27449L9.88458%209.34294L6.17341%207.2003C5.83354%207.00408%205.39896%207.12052%205.20274%207.46039C5.00652%207.80025%205.12297%208.23483%205.46283%208.43105L9.18525%2010.5802Z'%20fill='white'/%3e%3ccircle%20cx='6.18799'%20cy='8.12402'%20r='1.37842'%20fill='%23DFEFFF'/%3e%3ccircle%20cx='13.4849'%20cy='8.12402'%20r='1.37842'%20fill='%23DFEFFF'/%3e%3ccircle%20cx='9.83545'%20cy='14.5059'%20r='1.37842'%20fill='%23DFEFFF'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_1047_18784'%20x='0.641602'%20y='0.783447'%20width='18.7158'%20height='20.4331'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%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%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_1047_18784'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_1047_18784'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_1047_18784'%20x1='9.99969'%20y1='1.78345'%20x2='9.99969'%20y2='18.2165'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2354CCFF'/%3e%3cstop%20offset='1'%20stop-color='%231B69FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_1047_18784'%20x1='18.9557'%20y1='6.49578'%20x2='9.99969'%20y2='18.2165'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23AAFFB8'%20stop-opacity='0.68'/%3e%3cstop%20offset='0.396549'%20stop-color='%2348FF65'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_1047_18784'%20x1='16.2784'%20y1='6.79325'%20x2='2.6416'%20y2='16.3125'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.510458'%20stop-color='%23A244FF'%20stop-opacity='0'/%3e%3cstop%20offset='0.977913'%20stop-color='%23A244FF'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_1047_18784'%3e%3crect%20width='20'%20height='20'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,4 @@
1
+ //#region src/assets/icons/resource-nonmenu.svg
2
+ var e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20class='design-iconfont'%20viewBox='0%200%2020%2021'%20width='24'%20height='24'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20clip-path='url(%23a)'%3e%3cg%20filter='url(%23b)'%3e%3crect%20width='14.716'%20height='14.857'%20x='2.643'%20y='2.747'%20fill='%23D9D9D9'%20rx='2'/%3e%3crect%20width='14.716'%20height='14.857'%20x='2.643'%20y='2.747'%20fill='url(%23c)'%20rx='2'/%3e%3crect%20width='14.716'%20height='14.857'%20x='2.643'%20y='2.747'%20fill='url(%23d)'%20rx='2'/%3e%3crect%20width='14.716'%20height='14.857'%20x='2.643'%20y='2.747'%20fill='url(%23e)'%20rx='2'/%3e%3c/g%3e%3cpath%20fill='%23fff'%20d='M3.963%205.304a1%201%200%200%201%201-1h10.075a1%201%200%200%201%201%201v3.344H3.963zm0%2010.013a1%201%200%200%200%201%201h2.082v-6.204H3.963zm4.633%201h6.442a1%201%200%200%200%201-1v-5.204H8.596z'%20opacity='.5'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='c'%20x1='10.001'%20x2='10.001'%20y1='2.747'%20y2='17.604'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2354CCFF'/%3e%3cstop%20offset='1'%20stop-color='%231B69FF'/%3e%3c/linearGradient%3e%3clinearGradient%20id='d'%20x1='18.956'%20x2='11.108'%20y1='7.007'%20y2='18.368'%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='16.279'%20x2='3.573'%20y1='7.276'%20y2='17.087'%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%20.175h20v20H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20width='18.716'%20height='18.857'%20x='.643'%20y='1.747'%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_32_8306'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_32_8306'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,195 @@
1
+ import "./request-7X2hpUru.js";
2
+ import { st as e, ut as t } from "./rbac-B59CVHDt.js";
3
+ import "./useAppAndResource-D6WnpUPR.js";
4
+ import { t as n } from "./ResourceRelation-IJvXnlpo.js";
5
+ import { i as r, r as i, t as a } from "./drawerRole-B348x40k.js";
6
+ import { PubinfoIcon as o, useAuth as s } from "pubinfo-pr";
7
+ import { createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, openBlock as h, ref as g, resolveDirective as _, toDisplayString as v, unref as y, withCtx as b, withDirectives as x } from "vue";
8
+ import { PlusCircleOutlined as S } from "@ant-design/icons-vue";
9
+ import { Badge as C, Modal as w, message as T } from "ant-design-vue";
10
+ import { Button as E, Space as D } from "ant-design-vue/es";
11
+ import { ProTable as O } from "@pubinfo/pro-components";
12
+ //#region src/views/role/index.vue?vue&type=script&setup=true&lang.tsx
13
+ var k = {
14
+ "py-10px": "",
15
+ "px-10px": "",
16
+ "w-full": "",
17
+ "h-full": ""
18
+ }, A = ["onClick"], j = ["onClick"], M = { class: "ml-4px" }, N = ["onClick"], P = { class: "ml-4px" }, F = /* @__PURE__ */ m({
19
+ name: "Role",
20
+ __name: "index",
21
+ setup(m) {
22
+ let { auth: F } = s(), I = g(), L = g();
23
+ function R() {
24
+ I.value.reload();
25
+ }
26
+ async function z(e) {
27
+ let { current: n, pageSize: r, ...i } = e, a = await t({
28
+ currentPage: n,
29
+ pageSize: r,
30
+ ...i
31
+ });
32
+ return {
33
+ success: a.success,
34
+ data: a.data?.records ?? [],
35
+ total: a.data?.total ?? 0
36
+ };
37
+ }
38
+ let B = [
39
+ {
40
+ valueType: "a-input",
41
+ bind: "value",
42
+ minWidth: 200,
43
+ title: "角色名称",
44
+ dataIndex: "name",
45
+ ellipsis: !0,
46
+ fieldProps: {
47
+ placeholder: "请输入角色名称",
48
+ allowClear: !0
49
+ }
50
+ },
51
+ {
52
+ hideInSearch: !0,
53
+ minWidth: 80,
54
+ title: "可见范围",
55
+ dataIndex: "viewScope",
56
+ customRender: ({ text: e }) => r.find((t) => t.value === e)?.label
57
+ },
58
+ {
59
+ hideInSearch: !0,
60
+ minWidth: 80,
61
+ title: "创建人",
62
+ dataIndex: "createUserName"
63
+ },
64
+ {
65
+ hideInSearch: !0,
66
+ minWidth: 100,
67
+ title: "创建部门",
68
+ dataIndex: "createOrgName"
69
+ },
70
+ {
71
+ hideInSearch: !0,
72
+ minWidth: 100,
73
+ title: "创建时间",
74
+ dataIndex: "createTime"
75
+ },
76
+ {
77
+ hideInSearch: !0,
78
+ minWidth: 100,
79
+ title: "修改时间",
80
+ dataIndex: "updateTime"
81
+ },
82
+ {
83
+ hideInSearch: !0,
84
+ minWidth: 80,
85
+ title: "角色状态",
86
+ dataIndex: "enable",
87
+ customRender: ({ text: e }) => e ? p(C, {
88
+ status: "success",
89
+ text: "正常"
90
+ }, null) : p(C, {
91
+ status: "error",
92
+ text: "关闭"
93
+ }, null)
94
+ },
95
+ {
96
+ hideInSearch: !0,
97
+ width: 240,
98
+ title: "操作",
99
+ dataIndex: "action",
100
+ fixed: "right",
101
+ hideInTable() {
102
+ return !F([
103
+ "role_resource_relation",
104
+ "role_edit",
105
+ "role_remove"
106
+ ]);
107
+ }
108
+ }
109
+ ], V = g();
110
+ function H(t, n) {
111
+ switch (t) {
112
+ case i.RESOURCE_RELATION:
113
+ V.value.open(n);
114
+ break;
115
+ case i.EDIT:
116
+ L.value.open(t, n);
117
+ break;
118
+ case i.ADD:
119
+ L.value.open(t);
120
+ break;
121
+ case i.REMOVE:
122
+ w.confirm({
123
+ title: "删除",
124
+ content: "确定要删除该角色吗?",
125
+ onOk() {
126
+ e({ id: n?.id }).then((e) => {
127
+ e.success && (T.success("删除成功"), R());
128
+ });
129
+ }
130
+ });
131
+ break;
132
+ }
133
+ }
134
+ return (e, t) => {
135
+ let r = S, s = E, m = o, g = D, C = _("auth");
136
+ return h(), u("div", k, [
137
+ p(y(O), {
138
+ ref_key: "tableRef",
139
+ ref: I,
140
+ "row-key": "id",
141
+ request: z,
142
+ columns: B,
143
+ "auto-height": "",
144
+ scroll: { x: 1100 }
145
+ }, {
146
+ toolbar: b(() => [x((h(), c(s, {
147
+ type: "primary",
148
+ onClick: t[0] ||= (e) => H(y(i).ADD)
149
+ }, {
150
+ default: b(() => [p(r), f(" " + v(y(i).ADD), 1)]),
151
+ _: 1
152
+ })), [[C, "role_add"]])]),
153
+ bodyCell: b(({ column: e, record: t }) => [e.dataIndex === "action" ? (h(), c(g, { key: 0 }, {
154
+ default: b(() => [
155
+ x((h(), u("a", {
156
+ class: "flex items-center",
157
+ onClick: (e) => H(y(i).RESOURCE_RELATION, t)
158
+ }, [p(m, {
159
+ name: "view",
160
+ class: "mr-1 text-base"
161
+ }), d("span", null, v(y(i).RESOURCE_RELATION), 1)], 8, A)), [[C, "resource_role_relation"]]),
162
+ x((h(), u("a", {
163
+ class: "flex items-center",
164
+ onClick: (e) => H(y(i).EDIT, t)
165
+ }, [p(m, {
166
+ name: "edit",
167
+ class: "text-base"
168
+ }), d("span", M, v(y(i).EDIT), 1)], 8, j)), [[C, "role_edit"]]),
169
+ x((h(), u("span", {
170
+ class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
171
+ onClick: (e) => H(y(i).REMOVE, t)
172
+ }, [p(m, {
173
+ name: "remove",
174
+ class: "text-base"
175
+ }), d("span", P, v(y(i).REMOVE), 1)], 8, N)), [[C, "role_remove"]])
176
+ ]),
177
+ _: 2
178
+ }, 1024)) : l("", !0)]),
179
+ _: 1
180
+ }, 512),
181
+ p(a, {
182
+ ref_key: "drawerRoleRef",
183
+ ref: L,
184
+ onSubmit: t[1] ||= (e) => R()
185
+ }, null, 512),
186
+ p(n, {
187
+ ref_key: "relationRef",
188
+ ref: V
189
+ }, null, 512)
190
+ ]);
191
+ };
192
+ }
193
+ });
194
+ //#endregion
195
+ export { F as default };