@pubinfo-pr/module-rbac 0.203.3 → 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,189 @@
1
+ import { r as e } from "./chunk-WQLz0Won.js";
2
+ import { n as t } from "./dist-DxAYQq3U.js";
3
+ import { a as n, i as r, r as i } from "./assist-BRMYD-oT.js";
4
+ import { r as a } from "./index.js";
5
+ import { createBlock as o, createCommentVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, isRef as d, openBlock as f, reactive as p, ref as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
6
+ import { message as v } from "ant-design-vue";
7
+ import { Button as y, Drawer as b, Form as x, FormItem as S, Input as C, InputNumber as w, Select as T, Space as E } from "ant-design-vue/es";
8
+ //#region src/views/region/enum.ts
9
+ var D = /* @__PURE__ */ function(e) {
10
+ return e.ADD = "新增", e.EDIT = "编辑", e.REMOVE = "删除", e.ADDNEXT = "新建下级", e;
11
+ }({}), O = /* @__PURE__ */ function(e) {
12
+ return e.PROVINCE = "1", e.CITY = "2", e.COUNTY = "3", e;
13
+ }({});
14
+ O.PROVINCE, O.CITY, O.COUNTY;
15
+ //#endregion
16
+ //#region src/views/region/components/drawerRegion.vue?vue&type=script&setup=true&lang.ts
17
+ var k = /* @__PURE__ */ u({
18
+ name: "DrawerRegion",
19
+ __name: "drawerRegion",
20
+ emits: ["submit"],
21
+ setup(e, { expose: u, emit: O }) {
22
+ let k = O, A = {
23
+ name: [{
24
+ required: !0,
25
+ message: "请输入区域名称",
26
+ trigger: "blur"
27
+ }, {
28
+ max: 128,
29
+ message: "长度不能超过128位",
30
+ trigger: "change"
31
+ }],
32
+ type: [{
33
+ required: !0,
34
+ message: "请选择区域范围",
35
+ trigger: "blur"
36
+ }],
37
+ regionCode: [{
38
+ required: !0,
39
+ message: "请输入区域编码",
40
+ trigger: "blur"
41
+ }, {
42
+ max: 16,
43
+ message: "长度不能超过16位",
44
+ trigger: "change"
45
+ }],
46
+ code: [{
47
+ required: !0,
48
+ message: "请输入行政区划编码",
49
+ trigger: "blur"
50
+ }, {
51
+ max: 16,
52
+ message: "长度不能超过16位",
53
+ trigger: "change"
54
+ }]
55
+ }, j = p({
56
+ title: "",
57
+ type: ""
58
+ }), [M, N] = t(!1), P = m(), F = m({ parentId: "" }), I = m([]);
59
+ a({ dictCode: "regionType" }).then((e) => {
60
+ I.value = e.data?.map((e) => ({
61
+ label: e.dictLabel,
62
+ value: e.dictValue
63
+ }));
64
+ });
65
+ async function L(e, t) {
66
+ if (N(!0), j.title = e, e === D.EDIT) {
67
+ let e = await i({ code: t?.code });
68
+ e.success && (F.value = e.data ?? {});
69
+ } else e === D.ADDNEXT ? F.value = {
70
+ parentName: t?.name,
71
+ parentId: t?.id
72
+ } : F.value = { parentId: "" };
73
+ }
74
+ let [R, z] = t(!1);
75
+ function B() {
76
+ let e = j.title === D.EDIT ? n : r;
77
+ P.value?.validate().then(() => {
78
+ z(!0), e({ ...F.value }).then((e) => {
79
+ e.success && (v.success(`${j.title}成功!`), N(!1), k("submit"));
80
+ }).finally(() => z(!1));
81
+ });
82
+ }
83
+ function V() {
84
+ F.value = { parentId: "" }, N(!1);
85
+ }
86
+ return u({ open: L }), (e, t) => {
87
+ let n = S, r = C, i = T, a = w, u = x, p = y, m = E, v = b;
88
+ return f(), o(v, {
89
+ open: g(M),
90
+ "onUpdate:open": t[6] ||= (e) => d(M) ? M.value = e : null,
91
+ title: `${g(j).title}区域`,
92
+ placement: "right",
93
+ width: 600,
94
+ "destroy-on-close": "",
95
+ "footer-style": { textAlign: "right" },
96
+ onClose: V
97
+ }, {
98
+ footer: _(() => [l(m, null, {
99
+ default: _(() => [l(p, { onClick: V }, {
100
+ default: _(() => [...t[7] ||= [c(" 取消 ", -1)]]),
101
+ _: 1
102
+ }), l(p, {
103
+ type: "primary",
104
+ loading: g(R),
105
+ onClick: t[5] ||= (e) => B()
106
+ }, {
107
+ default: _(() => [...t[8] ||= [c(" 提交 ", -1)]]),
108
+ _: 1
109
+ }, 8, ["loading"])]),
110
+ _: 1
111
+ })]),
112
+ default: _(() => [l(u, {
113
+ ref_key: "formRef",
114
+ ref: P,
115
+ model: g(F),
116
+ rules: A,
117
+ "label-col": { span: 5 },
118
+ "label-wrap": !0
119
+ }, {
120
+ default: _(() => [
121
+ g(F).parentId !== "" && g(F).parentId !== "0" ? (f(), o(n, {
122
+ key: 0,
123
+ label: "上级区域"
124
+ }, {
125
+ default: _(() => [c(h(g(F).parentName), 1)]),
126
+ _: 1
127
+ })) : s("", !0),
128
+ l(n, {
129
+ label: "区域名称",
130
+ name: "name"
131
+ }, {
132
+ default: _(() => [l(r, {
133
+ value: g(F).name,
134
+ "onUpdate:value": t[0] ||= (e) => g(F).name = e,
135
+ maxlength: 128
136
+ }, null, 8, ["value"])]),
137
+ _: 1
138
+ }),
139
+ l(n, {
140
+ label: "区域范围",
141
+ name: "type"
142
+ }, {
143
+ default: _(() => [l(i, {
144
+ value: g(F).type,
145
+ "onUpdate:value": t[1] ||= (e) => g(F).type = e,
146
+ options: g(I)
147
+ }, null, 8, ["value", "options"])]),
148
+ _: 1
149
+ }),
150
+ l(n, {
151
+ label: "区域编码",
152
+ name: "regionCode"
153
+ }, {
154
+ default: _(() => [l(r, {
155
+ value: g(F).regionCode,
156
+ "onUpdate:value": t[2] ||= (e) => g(F).regionCode = e,
157
+ maxlength: 16
158
+ }, null, 8, ["value"])]),
159
+ _: 1
160
+ }),
161
+ l(n, {
162
+ label: "行政区划编码",
163
+ name: "code"
164
+ }, {
165
+ default: _(() => [l(r, {
166
+ value: g(F).code,
167
+ "onUpdate:value": t[3] ||= (e) => g(F).code = e,
168
+ disabled: g(j).title === g(D).EDIT,
169
+ maxlength: 16
170
+ }, null, 8, ["value", "disabled"])]),
171
+ _: 1
172
+ }),
173
+ l(n, { label: "排序" }, {
174
+ default: _(() => [l(a, {
175
+ value: g(F).sort,
176
+ "onUpdate:value": t[4] ||= (e) => g(F).sort = e
177
+ }, null, 8, ["value"])]),
178
+ _: 1
179
+ })
180
+ ]),
181
+ _: 1
182
+ }, 8, ["model"])]),
183
+ _: 1
184
+ }, 8, ["open", "title"]);
185
+ };
186
+ }
187
+ }), A = /* @__PURE__ */ e({ default: () => j }), j = k;
188
+ //#endregion
189
+ export { A as n, D as r, j as t };
@@ -0,0 +1,214 @@
1
+ import { r as e } from "./chunk-WQLz0Won.js";
2
+ import { n as t } from "./dist-DxAYQq3U.js";
3
+ import { dt as n, lt as r, ot as i } from "./rbac-B59CVHDt.js";
4
+ import { ResourceSelector as a } from "./index.js";
5
+ import { t as o } from "./useAppAndResource-D6WnpUPR.js";
6
+ import { Fragment as s, createBlock as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, isRef as m, openBlock as h, reactive as g, ref as _, renderList as ee, toDisplayString as v, unref as y, withCtx as b } from "vue";
7
+ import { message as x } from "ant-design-vue";
8
+ import { Button as S, Drawer as te, Form as C, FormItem as w, Input as T, Select as E, Space as D, Switch as O, Textarea as k, Tooltip as A } from "ant-design-vue/es";
9
+ //#region src/views/role/enum.ts
10
+ var j = /* @__PURE__ */ function(e) {
11
+ return e.ADD = "新增", e.EDIT = "修改", e.REMOVE = "删除", e.RESOURCE_RELATION = "分配查看", e;
12
+ }({}), M = /* @__PURE__ */ function(e) {
13
+ return e.OWNER = "1", e.ALL = "2", e;
14
+ }({}), N = /* @__PURE__ */ function(e) {
15
+ return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
16
+ }({}), P = [{
17
+ label: "仅自己",
18
+ value: M.OWNER
19
+ }, {
20
+ label: "全部可见",
21
+ value: M.ALL
22
+ }];
23
+ N.ON, N.OFF;
24
+ //#endregion
25
+ //#region src/views/role/components/drawerRole.vue?vue&type=script&setup=true&lang.ts
26
+ var F = { class: "pt-10px" }, I = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, L = {
27
+ key: 1,
28
+ class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
29
+ }, R = /* @__PURE__ */ p({
30
+ name: "DrawerRole",
31
+ __name: "drawerRole",
32
+ emits: ["submit"],
33
+ setup(e, { expose: p, emit: M }) {
34
+ let N = M, { resourceModelRef: R, selectedResources: z, updateTreeDataAndResourceMap: B, setSelectedResources: V, updateSelectedResources: H, clearSelectedResources: U, openResourceModel: W } = o(), G = {
35
+ name: [{
36
+ required: !0,
37
+ message: "请输入名称",
38
+ trigger: "change"
39
+ }, {
40
+ min: 2,
41
+ max: 32,
42
+ message: "角色名称长度不能少于2位,不能超过32位",
43
+ trigger: "change"
44
+ }],
45
+ code: [{
46
+ required: !0,
47
+ message: "请输入编号",
48
+ trigger: "change"
49
+ }, {
50
+ min: 2,
51
+ max: 32,
52
+ message: "角色编码长度不能少于2位,不能超过32位",
53
+ trigger: "change"
54
+ }],
55
+ viewScope: [{
56
+ required: !0,
57
+ message: "请选择可见范围",
58
+ trigger: "change"
59
+ }],
60
+ resourceIds: [{
61
+ required: !0,
62
+ validator: K,
63
+ trigger: ["blur", "change"]
64
+ }]
65
+ };
66
+ function K(e, t) {
67
+ return t && t.length > 0 ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请选择所属资源"));
68
+ }
69
+ let q = g({
70
+ title: "",
71
+ type: ""
72
+ }), [J, Y] = t(!1), X = _(), Z = _({ enable: !0 });
73
+ async function ne(e, t) {
74
+ if (q.title = e, e === j.EDIT) {
75
+ let e = await i({ id: t?.id });
76
+ e.success && (Z.value = e.data ?? {}, await B(""), Z.value.resourceIds && H(Z.value.resourceIds));
77
+ } else Z.value = { enable: !0 }, U(), await B("");
78
+ Y(!0);
79
+ }
80
+ let [re, Q] = t(!1);
81
+ function ie() {
82
+ let e = q.title === j.EDIT ? n : r;
83
+ X.value?.validate().then(() => {
84
+ Q(!0), e({ ...Z.value }).then((e) => {
85
+ e.success && (x.success(`${q.title}成功!`), Y(!1), N("submit"));
86
+ }).finally(() => Q(!1));
87
+ });
88
+ }
89
+ function $() {
90
+ Z.value = { enable: !0 }, Y(!1);
91
+ }
92
+ function ae() {
93
+ Z.value.resourceIds ? W(Z.value.resourceIds) : W([]);
94
+ }
95
+ function oe(e) {
96
+ Z.value.resourceIds = e.map((e) => e.id), V(e);
97
+ }
98
+ return p({ open: ne }), (e, t) => {
99
+ let n = T, r = w, i = E, o = O, p = k, g = S, _ = A, x = C, M = D, N = te;
100
+ return h(), c(N, {
101
+ open: y(J),
102
+ "onUpdate:open": t[6] ||= (e) => m(J) ? J.value = e : null,
103
+ title: `${y(q).title}角色`,
104
+ placement: "right",
105
+ width: 600,
106
+ "destroy-on-close": "",
107
+ "footer-style": { textAlign: "right" },
108
+ onClose: $
109
+ }, {
110
+ footer: b(() => [f(M, null, {
111
+ default: b(() => [f(g, { onClick: $ }, {
112
+ default: b(() => [...t[8] ||= [d(" 取消 ", -1)]]),
113
+ _: 1
114
+ }), f(g, {
115
+ type: "primary",
116
+ loading: y(re),
117
+ onClick: t[5] ||= (e) => ie()
118
+ }, {
119
+ default: b(() => [...t[9] ||= [d(" 提交 ", -1)]]),
120
+ _: 1
121
+ }, 8, ["loading"])]),
122
+ _: 1
123
+ })]),
124
+ default: b(() => [f(x, {
125
+ ref_key: "formRef",
126
+ ref: X,
127
+ model: y(Z),
128
+ rules: G,
129
+ "label-col": { span: 4 }
130
+ }, {
131
+ default: b(() => [
132
+ f(r, {
133
+ label: "角色名称",
134
+ name: "name"
135
+ }, {
136
+ default: b(() => [f(n, {
137
+ value: y(Z).name,
138
+ "onUpdate:value": t[0] ||= (e) => y(Z).name = e,
139
+ maxlength: 32
140
+ }, null, 8, ["value"])]),
141
+ _: 1
142
+ }),
143
+ f(r, {
144
+ label: "角色编号",
145
+ name: "code"
146
+ }, {
147
+ default: b(() => [f(n, {
148
+ value: y(Z).code,
149
+ "onUpdate:value": t[1] ||= (e) => y(Z).code = e,
150
+ disabled: y(q).title === y(j).EDIT,
151
+ maxlength: 32
152
+ }, null, 8, ["value", "disabled"])]),
153
+ _: 1
154
+ }),
155
+ f(r, {
156
+ label: "可见范围",
157
+ name: "viewScope"
158
+ }, {
159
+ default: b(() => [f(i, {
160
+ value: y(Z).viewScope,
161
+ "onUpdate:value": t[2] ||= (e) => y(Z).viewScope = e,
162
+ options: y(P)
163
+ }, null, 8, ["value", "options"])]),
164
+ _: 1
165
+ }),
166
+ f(r, { label: "是否启用" }, {
167
+ default: b(() => [f(o, {
168
+ checked: y(Z).enable,
169
+ "onUpdate:checked": t[3] ||= (e) => y(Z).enable = e
170
+ }, null, 8, ["checked"])]),
171
+ _: 1
172
+ }),
173
+ f(r, { label: "角色描述" }, {
174
+ default: b(() => [f(p, {
175
+ value: y(Z).description,
176
+ "onUpdate:value": t[4] ||= (e) => y(Z).description = e,
177
+ maxlength: 250,
178
+ "show-count": ""
179
+ }, null, 8, ["value"])]),
180
+ _: 1
181
+ }),
182
+ f(r, {
183
+ label: "所属资源",
184
+ name: "resourceIds"
185
+ }, {
186
+ default: b(() => [f(g, {
187
+ type: "primary",
188
+ onClick: ae
189
+ }, {
190
+ default: b(() => [...t[7] ||= [d(" 编辑资源 ", -1)]]),
191
+ _: 1
192
+ }), u("div", F, [(h(!0), l(s, null, ee(y(z), (e) => (h(), l(s, { key: e }, [e.name.length > 20 ? (h(), c(_, {
193
+ key: 0,
194
+ title: e.name
195
+ }, {
196
+ default: b(() => [u("span", I, v(`${e.name.slice(0, 20)}...`), 1)]),
197
+ _: 2
198
+ }, 1032, ["title"])) : (h(), l("span", L, v(e.name), 1))], 64))), 128))])]),
199
+ _: 1
200
+ })
201
+ ]),
202
+ _: 1
203
+ }, 8, ["model"]), f(a, {
204
+ ref_key: "resourceModelRef",
205
+ ref: R,
206
+ onSelect: oe
207
+ }, null, 512)]),
208
+ _: 1
209
+ }, 8, ["open", "title"]);
210
+ };
211
+ }
212
+ }), z = /* @__PURE__ */ e({ default: () => B }), B = R;
213
+ //#endregion
214
+ export { P as i, z as n, j as r, B as t };
@@ -0,0 +1,172 @@
1
+ import { r as e } from "./chunk-WQLz0Won.js";
2
+ import { n as t } from "./dist-DxAYQq3U.js";
3
+ import { at as n, it as r, nt as i } from "./rbac-B59CVHDt.js";
4
+ import { t as a } from "./RoleSelector-BTNYbcC6.js";
5
+ import { Fragment as o, createBlock as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, isRef as p, openBlock as m, reactive as h, ref as g, renderList as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
6
+ import { message as x } from "ant-design-vue";
7
+ import { Button as S, Drawer as C, Form as w, FormItem as T, Input as E, Space as D, Switch as O, Textarea as k, Tooltip as A } from "ant-design-vue/es";
8
+ //#region src/views/role_group/enum.ts
9
+ var j = /* @__PURE__ */ function(e) {
10
+ return e.ADD = "新增", e.EDIT = "修改", e.REMOVE = "删除", e.RESOURCE_RELATION = "分配查看", e;
11
+ }({}), M = /* @__PURE__ */ function(e) {
12
+ return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
13
+ }({});
14
+ M.ON, M.OFF;
15
+ //#endregion
16
+ //#region src/views/role_group/components/drawerRole.vue?vue&type=script&setup=true&lang.ts
17
+ var N = { class: "pt-10px" }, P = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, F = {
18
+ key: 1,
19
+ class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
20
+ }, I = /* @__PURE__ */ f({
21
+ name: "DrawerRoleGroup",
22
+ __name: "drawerRole",
23
+ emits: ["submit"],
24
+ setup(e, { expose: f, emit: M }) {
25
+ let I = M, L = {
26
+ name: [{
27
+ required: !0,
28
+ message: "请输入名称",
29
+ trigger: "blur"
30
+ }, {
31
+ min: 2,
32
+ max: 32,
33
+ message: "角色组名称长度不能少于2位,不能超过32位",
34
+ trigger: "change"
35
+ }],
36
+ roleIds: [{
37
+ required: !0,
38
+ validator: R,
39
+ trigger: ["blur", "change"]
40
+ }]
41
+ };
42
+ function R(e, t) {
43
+ return t && t.length > 0 ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请选择角色"));
44
+ }
45
+ let z = h({ title: "" }), [B, V] = t(!1), H = g(), U = g({ enable: !0 }), W = g([]);
46
+ async function G(e, t) {
47
+ if (z.title = e, e === j.EDIT) {
48
+ let e = await i({ id: t?.id });
49
+ e.success && (U.value = e.data ?? {}, W.value = e.data?.roles || []);
50
+ } else U.value = { enable: !0 }, W.value = [];
51
+ V(!0);
52
+ }
53
+ let [K, q] = t(!1);
54
+ function J() {
55
+ let e = z.title === j.EDIT ? n : r;
56
+ H.value?.validate().then(() => {
57
+ q(!0), e({ ...U.value }).then((e) => {
58
+ e.success && (x.success(`${z.title}成功!`), V(!1), I("submit"));
59
+ }).finally(() => q(!1));
60
+ });
61
+ }
62
+ function Y() {
63
+ U.value = { enable: !0 }, V(!1);
64
+ }
65
+ let X = g();
66
+ function Z() {
67
+ let e = W.value.map((e) => ({
68
+ value: e.id,
69
+ label: e.name
70
+ }));
71
+ X.value.open(e);
72
+ }
73
+ function Q(e) {
74
+ U.value.roleIds = e.map((e) => e.value).join(","), W.value = e.map((e) => ({
75
+ id: e.value,
76
+ name: e.label
77
+ }));
78
+ }
79
+ return f({ open: G }), (e, t) => {
80
+ let n = E, r = T, i = O, f = k, h = S, g = A, x = w, j = D, M = C;
81
+ return m(), s(M, {
82
+ open: y(B),
83
+ "onUpdate:open": t[4] ||= (e) => p(B) ? B.value = e : null,
84
+ title: `${y(z).title}角色组`,
85
+ placement: "right",
86
+ width: 600,
87
+ "destroy-on-close": "",
88
+ "footer-style": { textAlign: "right" },
89
+ onClose: Y
90
+ }, {
91
+ footer: b(() => [d(j, null, {
92
+ default: b(() => [d(h, { onClick: Y }, {
93
+ default: b(() => [...t[6] ||= [u(" 取消 ", -1)]]),
94
+ _: 1
95
+ }), d(h, {
96
+ type: "primary",
97
+ loading: y(K),
98
+ onClick: t[3] ||= (e) => J()
99
+ }, {
100
+ default: b(() => [...t[7] ||= [u(" 提交 ", -1)]]),
101
+ _: 1
102
+ }, 8, ["loading"])]),
103
+ _: 1
104
+ })]),
105
+ default: b(() => [d(x, {
106
+ ref_key: "formRef",
107
+ ref: H,
108
+ model: y(U),
109
+ rules: L,
110
+ "label-col": { span: 4 }
111
+ }, {
112
+ default: b(() => [
113
+ d(r, {
114
+ label: "角色组名称",
115
+ name: "name"
116
+ }, {
117
+ default: b(() => [d(n, {
118
+ value: y(U).name,
119
+ "onUpdate:value": t[0] ||= (e) => y(U).name = e,
120
+ maxlength: 32
121
+ }, null, 8, ["value"])]),
122
+ _: 1
123
+ }),
124
+ d(r, { label: "是否启用" }, {
125
+ default: b(() => [d(i, {
126
+ checked: y(U).enable,
127
+ "onUpdate:checked": t[1] ||= (e) => y(U).enable = e
128
+ }, null, 8, ["checked"])]),
129
+ _: 1
130
+ }),
131
+ d(r, { label: "角色组描述" }, {
132
+ default: b(() => [d(f, {
133
+ value: y(U).description,
134
+ "onUpdate:value": t[2] ||= (e) => y(U).description = e,
135
+ maxlength: 250,
136
+ "show-count": ""
137
+ }, null, 8, ["value"])]),
138
+ _: 1
139
+ }),
140
+ d(r, {
141
+ label: "所属角色",
142
+ name: "roleIds"
143
+ }, {
144
+ default: b(() => [d(h, {
145
+ type: "primary",
146
+ onClick: Z
147
+ }, {
148
+ default: b(() => [...t[5] ||= [u(" 编辑角色 ", -1)]]),
149
+ _: 1
150
+ }), l("div", N, [(m(!0), c(o, null, _(y(W), (e) => (m(), c(o, { key: e }, [(e?.name || "").length > 20 ? (m(), s(g, {
151
+ key: 0,
152
+ title: e.name
153
+ }, {
154
+ default: b(() => [l("span", P, v(`${e?.name?.slice(0, 20)}...`), 1)]),
155
+ _: 2
156
+ }, 1032, ["title"])) : (m(), c("span", F, v(e.name), 1))], 64))), 128))])]),
157
+ _: 1
158
+ })
159
+ ]),
160
+ _: 1
161
+ }, 8, ["model"]), d(y(a), {
162
+ ref_key: "roleModelRef",
163
+ ref: X,
164
+ onSelect: Q
165
+ }, null, 512)]),
166
+ _: 1
167
+ }, 8, ["open", "title"]);
168
+ };
169
+ }
170
+ }), L = /* @__PURE__ */ e({ default: () => R }), R = I;
171
+ //#endregion
172
+ export { L as n, j as r, R as t };