@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,152 +0,0 @@
1
- import { Lt as useToggle, et as deleteRbacPubDataPermissionsDelete, h as _plugin_vue_export_helper_default, it as postRbacPubDataPermissionsPageQuery } from "./index.js";
2
- import "./enum-Cr7uWnB2.js";
3
- import { t as createAndEditDataPermission_default } from "./createAndEditDataPermission-8_KNLzJT.js";
4
- import "./useAppAndResource-B7FmNfKG.js";
5
- import { a as dataPermissionTypeLabel, i as dataPermissionOptionsAll, t as ACTION } from "./enum-3mYayxff.js";
6
- import { PubinfoIcon } from "pubinfo-pr";
7
- import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
8
- import { PlusCircleOutlined } from "@ant-design/icons-vue";
9
- import { Modal, message } from "ant-design-vue";
10
- import { Button, Space as Space$1 } from "ant-design-vue/es";
11
- import { ProTable } from "@pubinfo/pro-components";
12
- import './data-permission.css';var _hoisted_1 = {
13
- "w-full": "",
14
- "h-full": "",
15
- "py-10px": "",
16
- "px-10px": "",
17
- flex: "",
18
- "flex-col": "",
19
- class: "page-data-permission"
20
- }, _hoisted_2 = { key: 0 }, _hoisted_3 = ["onClick"], _hoisted_4 = { class: "ml-4px" }, _hoisted_5 = ["onClick"], _hoisted_6 = { class: "ml-4px" }, data_permission_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
21
- name: "DataPermission",
22
- __name: "index",
23
- setup(n) {
24
- let s = ref(), u = ref(), d = [
25
- {
26
- valueType: "a-input",
27
- title: "数据权限名称",
28
- dataIndex: "name",
29
- fieldProps: {
30
- placeholder: "请输入",
31
- allowClear: !0
32
- }
33
- },
34
- {
35
- valueType: "a-select",
36
- title: "数据权限规则",
37
- dataIndex: "type",
38
- fieldProps: {
39
- placeholder: "请选择",
40
- allowClear: !0,
41
- options: dataPermissionOptionsAll
42
- },
43
- ellipsis: !0
44
- },
45
- {
46
- hideInSearch: !0,
47
- title: "创建时间",
48
- dataIndex: "createTime",
49
- ellipsis: !0
50
- },
51
- {
52
- hideInSearch: !0,
53
- title: "更新时间",
54
- dataIndex: "updateTime",
55
- ellipsis: !0
56
- },
57
- {
58
- hideInSearch: !0,
59
- title: "操作",
60
- dataIndex: "action",
61
- width: 200,
62
- fixed: "right"
63
- }
64
- ];
65
- async function f(e) {
66
- let { current: t, pageSize: n, type: i, name: a } = e, o = await postRbacPubDataPermissionsPageQuery({
67
- pageSize: n,
68
- currentPage: t,
69
- doSearchTotal: !0,
70
- type: i,
71
- name: a
72
- });
73
- return {
74
- success: o.success,
75
- data: o.data?.records ?? [],
76
- total: o.data?.total ?? 0
77
- };
78
- }
79
- function p() {
80
- s.value.reload();
81
- }
82
- let [m, h] = useToggle(!1);
83
- function g(e, n) {
84
- if (!m.value) switch (e) {
85
- case ACTION.ADD:
86
- u.value.open(e);
87
- break;
88
- case ACTION.EDIT:
89
- u.value.open(e, n);
90
- break;
91
- case ACTION.REMOVE:
92
- Modal.confirm({
93
- title: "删除",
94
- content: "确定要删除该权限吗?",
95
- async onOk() {
96
- h(!0), deleteRbacPubDataPermissionsDelete({ id: n?.id }).then((e) => {
97
- e.success && (message.success("删除成功"), p());
98
- }).finally(() => h(!1));
99
- }
100
- });
101
- break;
102
- }
103
- }
104
- return (e, t) => {
105
- let n = PlusCircleOutlined, r = Button, o = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
106
- return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
107
- ref_key: "tableRef",
108
- ref: s,
109
- "row-key": "id",
110
- request: f,
111
- columns: d,
112
- "auto-height": "",
113
- scroll: { x: 1e3 }
114
- }, {
115
- toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(r, {
116
- type: "primary",
117
- onClick: t[0] ||= (e) => g(unref(ACTION).ADD)
118
- }, {
119
- default: withCtx(() => [createVNode(n), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
120
- _: 1
121
- })), [[l, "data_permission_create"]])]),
122
- bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "type" ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref(dataPermissionTypeLabel)[t.type]), 1)) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 1 }, {
123
- default: withCtx(() => [withDirectives((openBlock(), createElementBlock("a", {
124
- class: "flex items-center hover:opacity-80",
125
- onClick: (e) => g(unref(ACTION).EDIT, t)
126
- }, [createVNode(o, {
127
- name: "edit",
128
- class: "text-base"
129
- }), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[l, "data_permission_edit"]]), withDirectives((openBlock(), createElementBlock("span", {
130
- flex: "",
131
- "items-center": "",
132
- "text-red-500": "",
133
- "hover:cursor-pointer": "",
134
- "hover:text-red-500": "",
135
- "hover:opacity-80": "",
136
- onClick: (e) => g(unref(ACTION).REMOVE, t)
137
- }, [createVNode(o, {
138
- name: "remove",
139
- class: "text-base"
140
- }), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[l, "data_permission_delete"]])]),
141
- _: 2
142
- }, 1024)) : createCommentVNode("", !0)]),
143
- _: 1
144
- }, 512), createVNode(createAndEditDataPermission_default, {
145
- ref_key: "drawerRef",
146
- ref: u,
147
- onSubmit: p
148
- }, null, 512)]);
149
- };
150
- }
151
- }), [["__scopeId", "data-v-b32ad41d"]]);
152
- export { data_permission_default as default };
@@ -1,179 +0,0 @@
1
- import { n as deleteDictTypeDeleteById, o as postDictTypePage } from "./index.js";
2
- import { t as ACTION } from "./enum-D2UEJsrC.js";
3
- import { t as drawerDictionary_default } from "./drawerDictionary-DYJTAZr6.js";
4
- import { PubinfoIcon, useAuth } 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 } from "ant-design-vue/es";
9
- import { ProTable } from "@pubinfo/pro-components";
10
- import { useRouter } from "vue-router";
11
- var _hoisted_1 = {
12
- "py-10px": "",
13
- "px-10px": "",
14
- "w-full": "",
15
- "h-full": ""
16
- }, _hoisted_2 = {
17
- key: 0,
18
- class: "flex items-center"
19
- }, _hoisted_3 = { class: "ml-4px" }, _hoisted_4 = ["onClick"], _hoisted_5 = { class: "ml-4px" }, _hoisted_6 = ["onClick"], _hoisted_7 = { class: "ml-4px" }, _hoisted_8 = ["onClick"], _hoisted_9 = { class: "ml-4px" }, dictionary_default = /* @__PURE__ */ defineComponent({
20
- name: "Dictionary",
21
- __name: "index",
22
- setup(o) {
23
- let { auth: u } = useAuth(), d = ref(), f = ref(), p = [
24
- {
25
- valueType: "a-input",
26
- width: 50,
27
- hideInTable: !0,
28
- title: "名称或编码",
29
- dataIndex: "searchName",
30
- fieldProps: {
31
- placeholder: "请输入名称或者编码",
32
- allowClear: !0
33
- }
34
- },
35
- {
36
- hideInSearch: !0,
37
- minWidth: 100,
38
- title: "类型名称",
39
- dataIndex: "name",
40
- ellipsis: !0
41
- },
42
- {
43
- hideInSearch: !0,
44
- minWidth: 80,
45
- title: "类型编码",
46
- dataIndex: "code",
47
- ellipsis: !0
48
- },
49
- {
50
- hideInSearch: !0,
51
- minWidth: 100,
52
- title: "描述",
53
- dataIndex: "description",
54
- ellipsis: !0
55
- },
56
- {
57
- hideInSearch: !0,
58
- width: 80,
59
- minWidth: 60,
60
- title: "排序",
61
- dataIndex: "sort"
62
- },
63
- {
64
- hideInSearch: !0,
65
- title: "操作",
66
- dataIndex: "action",
67
- width: 240,
68
- fixed: "right",
69
- hideInTable() {
70
- return !u([
71
- "dictionary_data",
72
- "dictionary_edit",
73
- "dictionary_remove"
74
- ]);
75
- }
76
- }
77
- ];
78
- async function m(e) {
79
- let { current: n, pageSize: r, searchName: i } = e, a = await postDictTypePage({
80
- currentPage: n,
81
- pageSize: r,
82
- name: i,
83
- doSearchTotal: !0
84
- });
85
- return {
86
- success: a.success,
87
- data: a.data?.records ?? [],
88
- total: a.data?.total ?? 0
89
- };
90
- }
91
- let h = useRouter();
92
- function g(t, r) {
93
- switch (t) {
94
- case ACTION.ADD:
95
- f.value.open(t);
96
- break;
97
- case ACTION.EDIT:
98
- f.value.open(t, r);
99
- break;
100
- case ACTION.REMOVE:
101
- Modal.confirm({
102
- title: "删除",
103
- content: "确定要删除该类型吗?",
104
- onOk() {
105
- deleteDictTypeDeleteById({ id: r?.id }).then((e) => {
106
- e.success && (message.success("删除成功"), _());
107
- });
108
- }
109
- });
110
- break;
111
- case ACTION.ADDNEXT:
112
- h.push({
113
- name: "DictionaryItem",
114
- params: { id: `${r?.id}` },
115
- query: { code: `${r?.code}` }
116
- });
117
- break;
118
- }
119
- }
120
- function _() {
121
- d.value.reload();
122
- }
123
- return (e, t) => {
124
- let a = PlusCircleOutlined, o = Button, s = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
125
- return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
126
- ref_key: "tableRef",
127
- ref: d,
128
- "row-key": "id",
129
- request: m,
130
- columns: p,
131
- "auto-height": "",
132
- scroll: { x: 1040 }
133
- }, {
134
- toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(o, {
135
- type: "primary",
136
- onClick: t[0] ||= (e) => g(unref(ACTION).ADD)
137
- }, {
138
- default: withCtx(() => [createVNode(a), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
139
- _: 1
140
- })), [[l, "dictionary_add"]])]),
141
- bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "code" ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(s, {
142
- name: "icard",
143
- class: "text-20px"
144
- }), createElementVNode("span", _hoisted_3, toDisplayString(t.code), 1)])) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 1 }, {
145
- default: withCtx(() => [
146
- withDirectives((openBlock(), createElementBlock("a", {
147
- class: "flex items-center",
148
- onClick: (e) => g(unref(ACTION).ADDNEXT, t)
149
- }, [createVNode(s, {
150
- name: "zddata",
151
- class: "text-20px"
152
- }), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).ADDNEXT), 1)], 8, _hoisted_4)), [[l, "dictionary_data"]]),
153
- withDirectives((openBlock(), createElementBlock("a", {
154
- class: "flex items-center",
155
- onClick: (e) => g(unref(ACTION).EDIT, t)
156
- }, [createVNode(s, {
157
- name: "edit",
158
- class: "text-base"
159
- }), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_6)), [[l, "dictionary_edit"]]),
160
- withDirectives((openBlock(), createElementBlock("span", {
161
- class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
162
- onClick: (e) => g(unref(ACTION).REMOVE, t)
163
- }, [createVNode(s, {
164
- name: "remove",
165
- class: "text-base"
166
- }), createElementVNode("span", _hoisted_9, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_8)), [[l, "dictionary_remove"]])
167
- ]),
168
- _: 2
169
- }, 1024)) : createCommentVNode("", !0)]),
170
- _: 1
171
- }, 512), createVNode(drawerDictionary_default, {
172
- ref_key: "drawerDictionaryRef",
173
- ref: f,
174
- onSubmit: t[1] ||= (e) => _()
175
- }, null, 512)]);
176
- };
177
- }
178
- });
179
- export { dictionary_default as default };
@@ -1,120 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { Lt as useToggle, f as postBlackWhiteListAddBlackWhiteList, m as postBlackWhiteListUpdateBlackWhiteList } from "./index.js";
3
- import { createBlock, createTextVNode, createVNode, defineComponent, isRef, openBlock, ref, resolveComponent, unref, withCtx } from "vue";
4
- import { message } from "ant-design-vue";
5
- import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, Space as Space$1, Switch, Textarea } from "ant-design-vue/es";
6
- var drawerBlackWhiteList_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
- name: "DrawerBlackWhiteList",
8
- __name: "drawerBlackWhiteList",
9
- props: { type: {} },
10
- emits: ["submit"],
11
- setup(e, { expose: i, emit: o }) {
12
- let c = e, l = o, u = {
13
- ip: [{
14
- required: !0,
15
- validator: v,
16
- trigger: ["blur", "change"]
17
- }],
18
- enable: [{
19
- required: !0,
20
- message: "请选择是否开启",
21
- trigger: ["blur", "change"]
22
- }]
23
- }, d = ref(""), [f, p] = useToggle(!1), m = ref(), h = { enable: !0 }, g = ref({}), _ = ref(!1);
24
- function v(e, t, n) {
25
- t ? /^(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})$/.test(t) ? n() : n(/* @__PURE__ */ Error("ip地址格式不正确")) : n(/* @__PURE__ */ Error("请输入ip地址"));
26
- }
27
- async function y(e, t, n) {
28
- d.value = e, p(!0), t ? (_.value = !0, g.value = { ...n ?? {} }) : (_.value = !1, g.value = { ...h });
29
- }
30
- let [b, x] = useToggle(!1);
31
- function S() {
32
- m.value?.validate().then(() => {
33
- x(!0), (_.value ? postBlackWhiteListUpdateBlackWhiteList : postBlackWhiteListAddBlackWhiteList)({
34
- ...g.value,
35
- type: c.type
36
- }).then((e) => {
37
- e.success && (message.success(`${d.value}成功!`), p(!1), l("submit"));
38
- }).finally(() => x(!1));
39
- });
40
- }
41
- function C() {
42
- p(!1);
43
- }
44
- return i({ open: y }), (e, t) => {
45
- let n = Input$1, r = FormItem, i = Switch, a = Textarea, o = Form$1, s = Button, c = Space$1, l = Drawer;
46
- return openBlock(), createBlock(l, {
47
- open: unref(f),
48
- "onUpdate:open": t[4] ||= (e) => isRef(f) ? f.value = e : null,
49
- title: `${unref(d)}信息`,
50
- placement: "right",
51
- width: 600,
52
- "destroy-on-close": "",
53
- "footer-style": { textAlign: "right" },
54
- onClose: C
55
- }, {
56
- footer: withCtx(() => [createVNode(c, null, {
57
- default: withCtx(() => [createVNode(s, { onClick: C }, {
58
- default: withCtx(() => [...t[5] ||= [createTextVNode(" 取消 ", -1)]]),
59
- _: 1
60
- }), createVNode(s, {
61
- type: "primary",
62
- loading: unref(b),
63
- onClick: t[3] ||= (e) => S()
64
- }, {
65
- default: withCtx(() => [...t[6] ||= [createTextVNode(" 提交 ", -1)]]),
66
- _: 1
67
- }, 8, ["loading"])]),
68
- _: 1
69
- })]),
70
- default: withCtx(() => [createVNode(o, {
71
- ref_key: "formRef",
72
- ref: m,
73
- model: unref(g),
74
- rules: u,
75
- "label-col": { span: 4 }
76
- }, {
77
- default: withCtx(() => [
78
- createVNode(r, {
79
- label: "来源ip地址",
80
- name: "ip"
81
- }, {
82
- default: withCtx(() => [createVNode(n, {
83
- value: unref(g).ip,
84
- "onUpdate:value": t[0] ||= (e) => unref(g).ip = e,
85
- maxlength: 20
86
- }, null, 8, ["value"])]),
87
- _: 1
88
- }),
89
- createVNode(r, {
90
- label: "状态",
91
- name: "enable"
92
- }, {
93
- default: withCtx(() => [createVNode(i, {
94
- checked: unref(g).enable,
95
- "onUpdate:checked": t[1] ||= (e) => unref(g).enable = e
96
- }, null, 8, ["checked"])]),
97
- _: 1
98
- }),
99
- createVNode(r, {
100
- label: "描述",
101
- name: "description"
102
- }, {
103
- default: withCtx(() => [createVNode(a, {
104
- value: unref(g).description,
105
- "onUpdate:value": t[2] ||= (e) => unref(g).description = e,
106
- rows: 3,
107
- "show-count": "",
108
- maxlength: 200
109
- }, null, 8, ["value"])]),
110
- _: 1
111
- })
112
- ]),
113
- _: 1
114
- }, 8, ["model"])]),
115
- _: 1
116
- }, 8, ["open", "title"]);
117
- };
118
- }
119
- }), drawerBlackWhiteList_exports = /* @__PURE__ */ __exportAll({ default: () => drawerBlackWhiteList_default }), drawerBlackWhiteList_default = drawerBlackWhiteList_vue_vue_type_script_setup_true_lang_default;
120
- export { drawerBlackWhiteList_exports as n, drawerBlackWhiteList_default as t };
@@ -1,126 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { Lt as useToggle, s as postDictTypeSave } from "./index.js";
3
- import { t as ACTION } from "./enum-D2UEJsrC.js";
4
- import { createBlock, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, unref, withCtx } from "vue";
5
- import { message } from "ant-design-vue";
6
- import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, InputNumber, Space as Space$1, Textarea } from "ant-design-vue/es";
7
- var drawerDictionary_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
8
- name: "DrawerDictionary",
9
- __name: "drawerDictionary",
10
- emits: ["submit"],
11
- setup(e, { expose: r, emit: o }) {
12
- let c = o, l = {
13
- name: [{
14
- required: !0,
15
- message: "请输入类型名称",
16
- trigger: "blur"
17
- }],
18
- code: [{
19
- required: !0,
20
- message: "请输入类型编码",
21
- trigger: "blur"
22
- }]
23
- }, u = reactive({ title: "" }), [d, f] = useToggle(!1), p = ref(), m = ref({});
24
- async function h(e, t) {
25
- f(!0), u.title = e, e === ACTION.EDIT ? m.value = { ...t ?? {} } : m.value = {};
26
- }
27
- let [g, _] = useToggle(!1);
28
- function v() {
29
- p.value?.validate().then(() => {
30
- _(!0), postDictTypeSave({ ...m.value }).then((e) => {
31
- e.success && (message.success(`${u.title}成功!`), f(!1), c("submit"));
32
- }).finally(() => _(!1));
33
- });
34
- }
35
- function y() {
36
- f(!1);
37
- }
38
- return r({ open: h }), (e, t) => {
39
- let n = Input$1, r = FormItem, i = Textarea, a = InputNumber, o = Form$1, s = Button, c = Space$1, f = Drawer;
40
- return openBlock(), createBlock(f, {
41
- open: unref(d),
42
- "onUpdate:open": t[5] ||= (e) => isRef(d) ? d.value = e : null,
43
- title: `${unref(u).title}类型`,
44
- placement: "right",
45
- width: 520,
46
- "destroy-on-close": "",
47
- "footer-style": { textAlign: "right" },
48
- onClose: y
49
- }, {
50
- footer: withCtx(() => [createVNode(c, null, {
51
- default: withCtx(() => [createVNode(s, { onClick: y }, {
52
- default: withCtx(() => [...t[6] ||= [createTextVNode(" 取消 ", -1)]]),
53
- _: 1
54
- }), createVNode(s, {
55
- type: "primary",
56
- loading: unref(g),
57
- onClick: t[4] ||= (e) => v()
58
- }, {
59
- default: withCtx(() => [...t[7] ||= [createTextVNode(" 提交 ", -1)]]),
60
- _: 1
61
- }, 8, ["loading"])]),
62
- _: 1
63
- })]),
64
- default: withCtx(() => [createVNode(o, {
65
- ref_key: "formRef",
66
- ref: p,
67
- model: unref(m),
68
- rules: l,
69
- "label-col": { span: 4 }
70
- }, {
71
- default: withCtx(() => [
72
- createVNode(r, {
73
- label: "类型名称",
74
- name: "name"
75
- }, {
76
- default: withCtx(() => [createVNode(n, {
77
- value: unref(m).name,
78
- "onUpdate:value": t[0] ||= (e) => unref(m).name = e,
79
- maxlength: 30
80
- }, null, 8, ["value"])]),
81
- _: 1
82
- }),
83
- createVNode(r, {
84
- label: "类型编码",
85
- name: "code"
86
- }, {
87
- default: withCtx(() => [createVNode(n, {
88
- value: unref(m).code,
89
- "onUpdate:value": t[1] ||= (e) => unref(m).code = e,
90
- maxlength: 30,
91
- disabled: unref(u).title === unref(ACTION).EDIT
92
- }, null, 8, ["value", "disabled"])]),
93
- _: 1
94
- }),
95
- createVNode(r, {
96
- label: "描述",
97
- name: "description"
98
- }, {
99
- default: withCtx(() => [createVNode(i, {
100
- value: unref(m).description,
101
- "onUpdate:value": t[2] ||= (e) => unref(m).description = e,
102
- rows: 3,
103
- "show-count": "",
104
- maxlength: 200
105
- }, null, 8, ["value"])]),
106
- _: 1
107
- }),
108
- createVNode(r, {
109
- label: "排序",
110
- name: "sort"
111
- }, {
112
- default: withCtx(() => [createVNode(a, {
113
- value: unref(m).sort,
114
- "onUpdate:value": t[3] ||= (e) => unref(m).sort = e
115
- }, null, 8, ["value"])]),
116
- _: 1
117
- })
118
- ]),
119
- _: 1
120
- }, 8, ["model"])]),
121
- _: 1
122
- }, 8, ["open", "title"]);
123
- };
124
- }
125
- }), drawerDictionary_exports = /* @__PURE__ */ __exportAll({ default: () => drawerDictionary_default }), drawerDictionary_default = drawerDictionary_vue_vue_type_script_setup_true_lang_default;
126
- export { drawerDictionary_exports as n, drawerDictionary_default as t };