@pubinfo-pr/module-rbac 0.203.4 → 0.203.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/dist/{ComponentSelect-A7uGTuHW.js → ComponentSelect-CYmAgdm3.js} +998 -963
  2. package/dist/DynamicRoutesForm-CMF3oh8h.js +171 -0
  3. package/dist/HCheckList-CAhQwX7m.js +39 -0
  4. package/dist/HoverCard-B-uU48hF.js +46 -0
  5. package/dist/IconSelect-CvxGRN_O.js +719 -0
  6. package/dist/ImportExport-CzZssb7_.js +345 -0
  7. package/dist/ImportExport-b1SnWRLj.js +6 -0
  8. package/dist/LayoutForm-Bpdyi_2o.js +129 -0
  9. package/dist/MetaForm-ZLzLz68d.js +39037 -0
  10. package/dist/OrgAndPosition-B0RE1Vc_.js +187 -0
  11. package/dist/OrgSelector-C2rPIonI.js +4877 -0
  12. package/dist/OrgSelector.css +1 -0
  13. package/dist/ResourceEdit-9fvxbd0K.js +383 -0
  14. package/dist/ResourceEdit-BMqfJ3aQ.js +13 -0
  15. package/dist/ResourceRelation-BrluMHdX.js +81 -0
  16. package/dist/ResourceRelation-IJvXnlpo.js +95 -0
  17. package/dist/RoleRelation-DuRuQG08.js +82 -0
  18. package/dist/RoleSelector-BTNYbcC6.js +282 -0
  19. package/dist/TenantEdit-Df3gZKLA.js +249 -0
  20. package/dist/UserAuthorization-DX7jNDDe.js +237 -0
  21. package/dist/UserEdit-BLb0n7WM.js +322 -0
  22. package/dist/_baseClone-C7vkGgsW.js +138 -0
  23. package/dist/_initCloneObject-r-eWKqzl.js +531 -0
  24. package/dist/add-child-DPb_m2by.js +4 -0
  25. package/dist/{animation_item-DBOz2rcX.js → animation_item-Coe-B0jQ.js} +24 -19
  26. package/dist/api/modules/assist/index.d.ts +0 -1
  27. package/dist/api/modules/assist/qunzujiekou.d.ts +28 -0
  28. package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -0
  29. package/dist/api/modules/rbac/jiaosejiekou.d.ts +14 -0
  30. package/dist/api/modules/rbac/yonghujiekou.d.ts +42 -0
  31. package/dist/api/modules/rbac/ziyuanjiekou.d.ts +7 -0
  32. package/dist/api/modules/rbac/zuzhijiekou.d.ts +7 -0
  33. package/dist/assist-BRMYD-oT.js +89 -0
  34. package/dist/authority-B9wtmsQd.js +4 -0
  35. package/dist/authorize-DxrutyIG.js +4 -0
  36. package/dist/blackWhiteList-d6TVsK48.js +214 -0
  37. package/dist/blacklist-disable-BKSw91qq.js +4 -0
  38. package/dist/blacklist-enable-CIB1fOHT.js +4 -0
  39. package/dist/breadcrumb_setting-DMbvWP5t.js +111 -0
  40. package/dist/browser-chrome-CM60RcrG.js +4 -0
  41. package/dist/browser-edge-4LBRzooM.js +4 -0
  42. package/dist/browser-ie-BF-wqbf6.js +4 -0
  43. package/dist/browser-other-iXJH-9iL.js +4 -0
  44. package/dist/browser-safari-CIpt0yPc.js +4 -0
  45. package/dist/browserType-Bik20-72.js +28 -0
  46. package/dist/chunk-WQLz0Won.js +20 -0
  47. package/dist/cloneDeep-REaxTPsZ.js +8 -0
  48. package/dist/createAndEditDataPermission-OunqmBu_.js +438 -0
  49. package/dist/data-permission-2pzeFLxP.js +159 -0
  50. package/dist/{dayjs.min-Cb7gQFd4.js → dayjs.min-CJunOGCc.js} +5 -3
  51. package/dist/dictionary-DGqlAhRk.js +182 -0
  52. package/dist/dist-DxAYQq3U.js +21 -0
  53. package/dist/drawerBlackWhiteList-VxyjaBkA.js +123 -0
  54. package/dist/drawerDictionary-DhAB-LV9.js +129 -0
  55. package/dist/drawerDictionaryItem-DYsJzZ2f.js +141 -0
  56. package/dist/drawerGroup-CTO8Lmbb.js +189 -0
  57. package/dist/drawerOrganization-CeCOW2N1.js +288 -0
  58. package/dist/drawerPosition-BmM9mLlP.js +169 -0
  59. package/dist/drawerRegion-BD-xc1x2.js +189 -0
  60. package/dist/drawerRole-B348x40k.js +214 -0
  61. package/dist/drawerRole-CgAPM-0g.js +172 -0
  62. package/dist/drawerRole-Cjp9iDsa.js +157 -0
  63. package/dist/edit-Drp8yjRe.js +4 -0
  64. package/dist/enum-CG0P82pn.js +6 -0
  65. package/dist/{enum-3E_sUqRF.js → enum-CR5ztb5v2.js} +15 -14
  66. package/dist/enum-CYCebJeC.js +62 -0
  67. package/dist/enum-DS4SGhiF.js +6 -0
  68. package/dist/enum-zdKA3Jy-.js +23 -0
  69. package/dist/group-C6Rj3K5I.js +178 -0
  70. package/dist/icard-BULUUV5m.js +4 -0
  71. package/dist/icon_animation-DuEY1FMm.js +4 -0
  72. package/dist/icon_breadcrumb-Y788iP_T.js +4 -0
  73. package/dist/icon_copyright-C1BER6kq.js +4 -0
  74. package/dist/icon_jt-ICOdrIF6.js +4 -0
  75. package/dist/icon_layout-D_wV9rX3.js +4 -0
  76. package/dist/icon_mainpage-Cz6_cxpJ.js +4 -0
  77. package/dist/icon_menu-y7SblUoR.js +4 -0
  78. package/dist/icon_page_size-BjwT656E.js +4 -0
  79. package/dist/icon_position_type-CPxcDgmM.js +4 -0
  80. package/dist/icon_safe_manage-CoqVRBLl.js +4 -0
  81. package/dist/icon_screen_scale-DURlkq3C.js +4 -0
  82. package/dist/icon_system_manage-BLXs2CQg.js +4 -0
  83. package/dist/icon_tabbar-_0QWhSBV.js +4 -0
  84. package/dist/icon_toolbar-BXpfu0iq.js +4 -0
  85. package/dist/icon_topbar-DrwvB8Jw.js +4 -0
  86. package/dist/icon_watermark-DwNqjAiA.js +4 -0
  87. package/dist/index.css +1 -1
  88. package/dist/index.js +588 -6776
  89. package/dist/isEmpty-2rx9iUQv.js +14 -0
  90. package/dist/isEqual-CNeQLaCM.js +474 -0
  91. package/dist/itemlist-BGe-z1IR.js +159 -0
  92. package/dist/json-asset-03f0a035.json +1 -0
  93. package/dist/json-asset-0ee63e7f.json +1 -0
  94. package/dist/json-asset-10eef4fe.json +1 -0
  95. package/dist/json-asset-13f452f1.json +1 -0
  96. package/dist/json-asset-14b7b290.json +1 -0
  97. package/dist/json-asset-15b8cef1.json +1 -0
  98. package/dist/json-asset-15f77960.json +1 -0
  99. package/dist/json-asset-1ae9b726.json +1 -0
  100. package/dist/json-asset-1b02359f.json +1 -0
  101. package/dist/json-asset-1ef286cd.json +1 -0
  102. package/dist/json-asset-23cfd18c.json +1 -0
  103. package/dist/json-asset-265a0a5d.json +1 -0
  104. package/dist/json-asset-28d57c49.json +1 -0
  105. package/dist/json-asset-2b54ed10.json +1 -0
  106. package/dist/json-asset-2bb6f642.json +1 -0
  107. package/dist/json-asset-2cdc07bd.json +1 -0
  108. package/dist/json-asset-31c58607.json +1 -0
  109. package/dist/json-asset-32884f23.json +1 -0
  110. package/dist/json-asset-32fca43a.json +1 -0
  111. package/dist/json-asset-3a75445b.json +1 -0
  112. package/dist/json-asset-3f27d67c.json +1 -0
  113. package/dist/json-asset-4189453f.json +1 -0
  114. package/dist/json-asset-4702b37c.json +1 -0
  115. package/dist/json-asset-520a5c68.json +1 -0
  116. package/dist/json-asset-56bea508.json +1 -0
  117. package/dist/json-asset-57c732a3.json +1 -0
  118. package/dist/json-asset-5be4a28f.json +1 -0
  119. package/dist/json-asset-5e6d7cfa.json +1 -0
  120. package/dist/json-asset-64e176c9.json +1 -0
  121. package/dist/json-asset-6583dca6.json +1 -0
  122. package/dist/json-asset-66c640c6.json +1 -0
  123. package/dist/json-asset-68393156.json +1 -0
  124. package/dist/json-asset-688465aa.json +1 -0
  125. package/dist/json-asset-6bf334f4.json +1 -0
  126. package/dist/json-asset-7b4f72ce.json +1 -0
  127. package/dist/json-asset-837ec087.json +1 -0
  128. package/dist/json-asset-838ac1ba.json +1 -0
  129. package/dist/json-asset-8465c2cf.json +1 -0
  130. package/dist/json-asset-9e9f04a4.json +1 -0
  131. package/dist/json-asset-a13964cb.json +1 -0
  132. package/dist/json-asset-ab93a057.json +1 -0
  133. package/dist/json-asset-abe308fc.json +1 -0
  134. package/dist/json-asset-b24f2cd3.json +1 -0
  135. package/dist/json-asset-bf00eaed.json +1 -0
  136. package/dist/json-asset-cb22efd7.json +1 -0
  137. package/dist/json-asset-cb953f20.json +1 -0
  138. package/dist/json-asset-cc209e34.json +1 -0
  139. package/dist/json-asset-cfdffceb.json +1 -0
  140. package/dist/json-asset-d33c0299.json +1 -0
  141. package/dist/json-asset-d430c8ca.json +1 -0
  142. package/dist/json-asset-d8cfa560.json +1 -0
  143. package/dist/json-asset-da91beb6.json +1 -0
  144. package/dist/json-asset-e2bdf85c.json +1 -0
  145. package/dist/json-asset-e34ad826.json +1 -0
  146. package/dist/json-asset-e80720aa.json +1 -0
  147. package/dist/json-asset-e894bc92.json +1 -0
  148. package/dist/json-asset-f28020f2.json +1 -0
  149. package/dist/json-asset-f71ebbf4.json +1 -0
  150. package/dist/json-asset-fb1f4917.json +1 -0
  151. package/dist/json-asset-ff2e97c4.json +1 -0
  152. package/dist/layout_setting-Cds3TCHc.js +71 -0
  153. package/dist/log-DOMU9MyH.js +18 -0
  154. package/dist/log-center-BrGlNhMd.js +4 -0
  155. package/dist/loginHistoryDetail-Coba_ajy.js +80 -0
  156. package/dist/{login_history-BiwaLpxA.js → login_history-CrXkEsHb.js} +38 -35
  157. package/dist/menu_setting-Br5dOEUk.js +158 -0
  158. package/dist/not-data-C-MacYF3.js +5 -0
  159. package/dist/operateHistoryDetail-DfDQL5BF.js +92 -0
  160. package/dist/{operate_history-sPd9IHMV.js → operate_history-BtHgPhmF.js} +38 -35
  161. package/dist/org-main-BRMBumDm.js +4 -0
  162. package/dist/org-unmain-0BHnrNdD.js +4 -0
  163. package/dist/organization-HuRdzTFX.js +15413 -0
  164. package/dist/other_setting-D92SlFvl.js +216 -0
  165. package/dist/page_animation_setting-Cy2R0vZy.js +111 -0
  166. package/dist/page_w_setting-DryWrqcx.js +66 -0
  167. package/dist/position-B1bqGly6.js +169 -0
  168. package/dist/rbac-B59CVHDt.js +460 -0
  169. package/dist/region-B_n1KXMG.js +182 -0
  170. package/dist/remove-BTME2Fhs.js +4 -0
  171. package/dist/request-7X2hpUru.js +5 -0
  172. package/dist/resource-CPNNd1l0.js +275 -0
  173. package/dist/resource-app-D8to3Lkn.js +4 -0
  174. package/dist/resource-btn-Cz-A_EQF.js +4 -0
  175. package/dist/resource-dynamic-BUqWxUiU.js +4 -0
  176. package/dist/resource-index-D2roT002.js +4 -0
  177. package/dist/resource-menu-BRER68rK.js +4 -0
  178. package/dist/resource-micro-Hyucl9de.js +4 -0
  179. package/dist/resource-nonmenu-7FcPEpHv.js +4 -0
  180. package/dist/role-CMd7WDRC.js +195 -0
  181. package/dist/role_group-DHh2s911.js +174 -0
  182. package/dist/safe_setting-CuTBmUve.js +225 -0
  183. package/dist/setItem-BwXZ5Uqx.js +4 -0
  184. package/dist/setItem-DlhIkIgh.js +78 -0
  185. package/dist/setting-manage-UHelpLrr.js +4 -0
  186. package/dist/stores-C-zbXsms.js +2 -0
  187. package/dist/tabbar_setting-CjW9LGPp.js +142 -0
  188. package/dist/tenant-B_vgufMG.js +180 -0
  189. package/dist/theme-check-mark-DRzx4sTs.js +4 -0
  190. package/dist/theme-title-BRvQ_qPg.js +4 -0
  191. package/dist/theme_setting-DMP0_nZ1.js +114 -0
  192. package/dist/toolbar_setting-ClxxvA7R.js +143 -0
  193. package/dist/useAppAndResource-D6WnpUPR.js +55 -0
  194. package/dist/user-BhytPqnx.js +348 -0
  195. package/dist/{vanilla-picker-Byb6q187.js → vanilla-picker-2HFham9c.js} +61 -59
  196. package/dist/view-Cridj7u2.js +4 -0
  197. package/dist/view-lBxqXfPW.js +114 -0
  198. package/dist/watermark_setting-b3vBYWwY.js +194 -0
  199. package/dist/zddata-CnvPWtIW.js +4 -0
  200. package/dist/zy_checked-C25HQlnr.js +4 -0
  201. package/dist/zy_default-B7RKtyqy.js +4 -0
  202. package/package.json +3 -3
  203. package/src/api/modules/assist/index.ts +0 -1
  204. package/src/api/modules/assist/qunzujiekou.ts +72 -0
  205. package/src/api/modules/assist/typings.d.ts +17 -129
  206. package/src/api/modules/rbac/gangweijiekou.ts +18 -0
  207. package/src/api/modules/rbac/jiaosejiekou.ts +36 -0
  208. package/src/api/modules/rbac/typings.d.ts +133 -1
  209. package/src/api/modules/rbac/yonghujiekou.ts +122 -0
  210. package/src/api/modules/rbac/ziyuanjiekou.ts +21 -0
  211. package/src/api/modules/rbac/zuzhijiekou.ts +18 -0
  212. package/src/views/organization/components/drawerOrganization.vue +43 -0
  213. package/dist/DynamicRoutesForm-DSzy_bh5.js +0 -169
  214. package/dist/HCheckList-ODQHidN8.js +0 -37
  215. package/dist/HoverCard-CmJCoa2b.js +0 -44
  216. package/dist/IconSelect-DouEg3xY.js +0 -717
  217. package/dist/ImportExport-DisdLoY8.js +0 -342
  218. package/dist/LayoutForm-Bdfs5WeK.js +0 -125
  219. package/dist/MetaForm-CcDwS8vh.js +0 -38902
  220. package/dist/OrgAndPosition-jDX7m0HD.js +0 -184
  221. package/dist/ResourceEdit-0BYZRye_.js +0 -381
  222. package/dist/ResourceRelation-CU-QpUhP.js +0 -76
  223. package/dist/ResourceRelation-roz0a8Td.js +0 -91
  224. package/dist/RoleRelation-BQQFaum0.js +0 -79
  225. package/dist/RoleSelector-gkar_UGG.js +0 -275
  226. package/dist/TenantEdit-BsahDUlf.js +0 -246
  227. package/dist/UserAuthorization-2Fl4IGw7.js +0 -233
  228. package/dist/UserEdit-CX3Qau8T.js +0 -320
  229. package/dist/add-child-CFHHkjfg.js +0 -2
  230. package/dist/api/modules/assist/gonggaofuwu.d.ts +0 -43
  231. package/dist/authority-L7SfiMdP.js +0 -2
  232. package/dist/authorize-qMpV_BXT.js +0 -2
  233. package/dist/blackWhiteList-DbG7JH8n.js +0 -211
  234. package/dist/blacklist-disable-BT6Xx-JG.js +0 -2
  235. package/dist/blacklist-enable-CJ6DK_V2.js +0 -2
  236. package/dist/breadcrumb_setting-Dx2Li6xt.js +0 -108
  237. package/dist/browser-chrome-DuAegVCe.js +0 -2
  238. package/dist/browser-edge-DzkWdXRd.js +0 -2
  239. package/dist/browser-ie-DZ9g_MXr.js +0 -2
  240. package/dist/browser-other-BmkifoYq.js +0 -2
  241. package/dist/browser-safari-CXrCuF2a.js +0 -2
  242. package/dist/browserType-B8A1Osvk.js +0 -26
  243. package/dist/chunk-DiMWNkAf.js +0 -18
  244. package/dist/cloneDeep-CSOSavu3.js +0 -6
  245. package/dist/createAndEditDataPermission-8_KNLzJT.js +0 -431
  246. package/dist/data-permission-LpuDLDm0.js +0 -152
  247. package/dist/dictionary-CEaxjqZe.js +0 -179
  248. package/dist/drawerBlackWhiteList-DXLdWurZ.js +0 -120
  249. package/dist/drawerDictionary-DYJTAZr6.js +0 -126
  250. package/dist/drawerDictionaryItem-BChXD2-q.js +0 -138
  251. package/dist/drawerGroup-CdnZkZxi.js +0 -185
  252. package/dist/drawerOrganization-CwtSFUj0.js +0 -247
  253. package/dist/drawerPosition-CfyfeQCN.js +0 -166
  254. package/dist/drawerRegion-DAwY_29K.js +0 -183
  255. package/dist/drawerRole-B7uCfHk-.js +0 -154
  256. package/dist/drawerRole-DK6DrinO.js +0 -209
  257. package/dist/drawerRole-DrzMHL0O.js +0 -167
  258. package/dist/edit-fZ7h_z_Z.js +0 -2
  259. package/dist/enum-3mYayxff.js +0 -61
  260. package/dist/enum-Cr7uWnB2.js +0 -23
  261. package/dist/enum-D2UEJsrC.js +0 -4
  262. package/dist/group-CaOhkh72.js +0 -172
  263. package/dist/icard-H-d9Pip-.js +0 -2
  264. package/dist/icon_animation-BCdRKkE5.js +0 -2
  265. package/dist/icon_breadcrumb-BR6LK8hP.js +0 -2
  266. package/dist/icon_copyright-BfWn1s6t.js +0 -2
  267. package/dist/icon_jt-DOMTq9De.js +0 -2
  268. package/dist/icon_layout-DKqAThpM.js +0 -2
  269. package/dist/icon_mainpage-CXB9JMGv.js +0 -2
  270. package/dist/icon_menu-BYQtWV-Q.js +0 -2
  271. package/dist/icon_page_size-r-z4oHWp.js +0 -2
  272. package/dist/icon_position_type-JDFdklRh.js +0 -2
  273. package/dist/icon_safe_manage-BDTIOduB.js +0 -2
  274. package/dist/icon_screen_scale-vEaAdr9S.js +0 -2
  275. package/dist/icon_system_manage-CkhQtieE.js +0 -2
  276. package/dist/icon_tabbar-DZNj-h-p.js +0 -2
  277. package/dist/icon_toolbar-BBYhGmEf.js +0 -2
  278. package/dist/icon_topbar-Bc379eaS.js +0 -2
  279. package/dist/icon_watermark-CTP8r-e2.js +0 -2
  280. package/dist/isEmpty-BjEzPyCa.js +0 -12
  281. package/dist/itemlist-CFwRUV2Y.js +0 -156
  282. package/dist/layout_setting-79srmFgJ.js +0 -68
  283. package/dist/log-BYris9iT.js +0 -14
  284. package/dist/log-center-CGT-BGAN.js +0 -2
  285. package/dist/loginHistoryDetail-CZnfmbbM.js +0 -78
  286. package/dist/menu_setting-ChueWHs4.js +0 -155
  287. package/dist/not-data-Bml86wdH.js +0 -3
  288. package/dist/operateHistoryDetail-HId-EZzy.js +0 -90
  289. package/dist/org-main-DnftBa38.js +0 -2
  290. package/dist/org-unmain-ByMarqFw.js +0 -2
  291. package/dist/organization-Dv3FbKke.js +0 -15316
  292. package/dist/other_setting-BEV_UK0g.js +0 -213
  293. package/dist/page_animation_setting-Cp5OnFpd.js +0 -108
  294. package/dist/page_w_setting-Q--ct16C.js +0 -63
  295. package/dist/position-CCZ2MSMP.js +0 -166
  296. package/dist/region-D3mjqB8H.js +0 -179
  297. package/dist/remove-DfZZBE2T.js +0 -2
  298. package/dist/resource-DaQ7CvM_.js +0 -271
  299. package/dist/resource-app-QSLZ7Hts.js +0 -2
  300. package/dist/resource-btn-BcB4xMgR.js +0 -2
  301. package/dist/resource-dynamic-D69oEbaO.js +0 -2
  302. package/dist/resource-index-BIHr3PZY.js +0 -2
  303. package/dist/resource-menu-0JSNn7S7.js +0 -2
  304. package/dist/resource-micro-CcX_pmaJ.js +0 -2
  305. package/dist/resource-nonmenu-DFItasMT.js +0 -2
  306. package/dist/role-4UgEw3nH.js +0 -192
  307. package/dist/role_group-hkRlCnyl.js +0 -171
  308. package/dist/safe_setting-4fv3qNRZ.js +0 -221
  309. package/dist/setItem-Vkcwkj-O.js +0 -77
  310. package/dist/setting-manage-C9whamLP.js +0 -2
  311. package/dist/stores-DPQF8JRt.js +0 -2
  312. package/dist/tabbar_setting-kbuTvrLB.js +0 -139
  313. package/dist/tenant-lWfGw2u1.js +0 -177
  314. package/dist/theme-check-mark-DG4oWCQN.js +0 -2
  315. package/dist/theme-title-BCYnl2jK.js +0 -2
  316. package/dist/theme_setting-CEb7UYQO.js +0 -111
  317. package/dist/toolbar_setting-BG-k2UFc.js +0 -140
  318. package/dist/useAppAndResource-B7FmNfKG.js +0 -52
  319. package/dist/user-BkUpcQC8.js +0 -339
  320. package/dist/view-Bnu34EJT.js +0 -2
  321. package/dist/watermark_setting-Cl2EtPAa.js +0 -191
  322. package/dist/zddata-Ceyga3_2.js +0 -2
  323. package/dist/zy_checked-DvD7k9F8.js +0 -2
  324. package/dist/zy_default-DJ2tB3Fo.js +0 -2
  325. package/src/api/modules/assist/gonggaofuwu.ts +0 -124
@@ -1,138 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { Lt as useToggle, a as postDictItemSave } 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, Switch, Textarea } from "ant-design-vue/es";
7
- var drawerDictionaryItem_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
8
- name: "DrawerDictionaryItem",
9
- __name: "drawerDictionaryItem",
10
- emits: ["submit"],
11
- setup(e, { expose: i, emit: s }) {
12
- let l = s, u = {
13
- dictLabel: [{
14
- required: !0,
15
- message: "请输入字典项名称",
16
- trigger: "blur"
17
- }],
18
- dictValue: [{
19
- required: !0,
20
- message: "请输入字典项值",
21
- trigger: "blur"
22
- }]
23
- }, d = reactive({
24
- title: "",
25
- code: ""
26
- }), [f, p] = useToggle(!1), m = ref(), h = ref({});
27
- async function g(e, t, n) {
28
- p(!0), d.title = e, d.code = t, e === ACTION.EDIT ? h.value = n ?? {} : (h.value = {}, h.value.enable = !0, h.value.code = t);
29
- }
30
- let [_, v] = useToggle(!1);
31
- function y() {
32
- m.value?.validate().then(() => {
33
- v(!0), postDictItemSave({ ...h.value }).then((e) => {
34
- e.success && (message.success(`${d.title}成功!`), p(!1), l("submit"));
35
- }).finally(() => v(!1));
36
- });
37
- }
38
- function b() {
39
- p(!1);
40
- }
41
- return i({ open: g }), (e, t) => {
42
- let n = Input$1, r = FormItem, i = Textarea, a = InputNumber, o = Switch, s = Form$1, c = Button, l = Space$1, p = Drawer;
43
- return openBlock(), createBlock(p, {
44
- open: unref(f),
45
- "onUpdate:open": t[6] ||= (e) => isRef(f) ? f.value = e : null,
46
- title: `${unref(d).title}字典数据`,
47
- placement: "right",
48
- width: 520,
49
- "destroy-on-close": "",
50
- "footer-style": { textAlign: "right" },
51
- onClose: b
52
- }, {
53
- footer: withCtx(() => [createVNode(l, null, {
54
- default: withCtx(() => [createVNode(c, { onClick: b }, {
55
- default: withCtx(() => [...t[7] ||= [createTextVNode(" 取消 ", -1)]]),
56
- _: 1
57
- }), createVNode(c, {
58
- type: "primary",
59
- loading: unref(_),
60
- onClick: t[5] ||= (e) => y()
61
- }, {
62
- default: withCtx(() => [...t[8] ||= [createTextVNode(" 提交 ", -1)]]),
63
- _: 1
64
- }, 8, ["loading"])]),
65
- _: 1
66
- })]),
67
- default: withCtx(() => [createVNode(s, {
68
- ref_key: "formRef",
69
- ref: m,
70
- model: unref(h),
71
- rules: u,
72
- "label-col": { span: 5 }
73
- }, {
74
- default: withCtx(() => [
75
- createVNode(r, {
76
- label: "字典项名称",
77
- name: "dictLabel"
78
- }, {
79
- default: withCtx(() => [createVNode(n, {
80
- value: unref(h).dictLabel,
81
- "onUpdate:value": t[0] ||= (e) => unref(h).dictLabel = e,
82
- maxlength: 100
83
- }, null, 8, ["value"])]),
84
- _: 1
85
- }),
86
- createVNode(r, {
87
- label: "字典项值",
88
- name: "dictValue"
89
- }, {
90
- default: withCtx(() => [createVNode(n, {
91
- value: unref(h).dictValue,
92
- "onUpdate:value": t[1] ||= (e) => unref(h).dictValue = e,
93
- maxlength: 100
94
- }, null, 8, ["value"])]),
95
- _: 1
96
- }),
97
- createVNode(r, {
98
- label: "描述",
99
- name: "description"
100
- }, {
101
- default: withCtx(() => [createVNode(i, {
102
- value: unref(h).description,
103
- "onUpdate:value": t[2] ||= (e) => unref(h).description = e,
104
- rows: 3,
105
- "show-count": "",
106
- maxlength: 200
107
- }, null, 8, ["value"])]),
108
- _: 1
109
- }),
110
- createVNode(r, {
111
- label: "排序",
112
- name: "sort"
113
- }, {
114
- default: withCtx(() => [createVNode(a, {
115
- value: unref(h).sort,
116
- "onUpdate:value": t[3] ||= (e) => unref(h).sort = e
117
- }, null, 8, ["value"])]),
118
- _: 1
119
- }),
120
- createVNode(r, {
121
- label: "是否启动",
122
- name: "enable"
123
- }, {
124
- default: withCtx(() => [createVNode(o, {
125
- checked: unref(h).enable,
126
- "onUpdate:checked": t[4] ||= (e) => unref(h).enable = e
127
- }, null, 8, ["checked"])]),
128
- _: 1
129
- })
130
- ]),
131
- _: 1
132
- }, 8, ["model"])]),
133
- _: 1
134
- }, 8, ["open", "title"]);
135
- };
136
- }
137
- }), drawerDictionaryItem_exports = /* @__PURE__ */ __exportAll({ default: () => drawerDictionaryItem_default }), drawerDictionaryItem_default = drawerDictionaryItem_vue_vue_type_script_setup_true_lang_default;
138
- export { drawerDictionaryItem_exports as n, drawerDictionaryItem_default as t };
@@ -1,185 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { Lt as useToggle, Pt as postGroupSaveOrUpdate, jt as getGroupDetailById, selectOrg, selectUser } from "./index.js";
3
- import { n as GROUP_TYPE, r as useOptions, t as ACTION } from "./enum-Cr7uWnB2.js";
4
- import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, renderList, resolveComponent, toDisplayString, unref, withCtx } from "vue";
5
- import { message } from "ant-design-vue";
6
- import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, Select, Space as Space$1, Textarea, Tooltip as Tooltip$1 } from "ant-design-vue/es";
7
- var _hoisted_1 = { class: "pt-10px" }, _hoisted_2 = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, _hoisted_3 = {
8
- key: 1,
9
- class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
10
- }, drawerGroup_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
11
- name: "DrawerGroup",
12
- __name: "drawerGroup",
13
- emits: ["submit"],
14
- setup(e, { expose: c, emit: d }) {
15
- let f = d, p = reactive({
16
- title: "",
17
- type: ""
18
- }), m = {
19
- name: [{
20
- required: !0,
21
- message: "请输入群组名称",
22
- trigger: "blur"
23
- }, {
24
- max: 128,
25
- message: "长度不能超过128位",
26
- trigger: "change"
27
- }],
28
- remark: [{
29
- max: 250,
30
- message: "长度不能超过250位",
31
- trigger: ["blur", "change"]
32
- }],
33
- viewScope: [{
34
- required: !0,
35
- message: "请选择使用范围",
36
- trigger: ["blur", "change"]
37
- }],
38
- pubGroupMemberList: [{
39
- required: !0,
40
- message: "请选择群组成员",
41
- trigger: ["blur", "change"]
42
- }]
43
- }, [h, g] = useToggle(!1), _ = ref(), v = ref({}), y = computed(() => v.value?.pubGroupMemberList?.map((e) => ({
44
- ...e,
45
- name: p.type === GROUP_TYPE.ORG ? e.orgName : e.userName
46
- })));
47
- async function b(e, t, n) {
48
- if (g(!0), p.title = e, p.type = t, v.value = {}, e === ACTION.EDIT) {
49
- let e = await getGroupDetailById({ id: n?.id });
50
- e.success && (v.value = e?.data ?? {});
51
- }
52
- }
53
- function x() {
54
- p.type === GROUP_TYPE.ORG && selectOrg({
55
- modelValue: v.value.pubGroupMemberList ?? [],
56
- multiple: !0,
57
- onSubmit(e = []) {
58
- v.value.pubGroupMemberList = e;
59
- }
60
- }), p.type === GROUP_TYPE.PER && selectUser({
61
- modelValue: v.value.pubGroupMemberList ?? [],
62
- multiple: !0,
63
- onSubmit(e = []) {
64
- v.value.pubGroupMemberList = e;
65
- }
66
- });
67
- }
68
- let [S, C] = useToggle(!1);
69
- function w() {
70
- _.value?.validate().then(() => {
71
- C(!0);
72
- let { pubGroupMemberList: e = [], ...t } = v.value, r = {
73
- ...t,
74
- type: p.type,
75
- pubGroupMemberList: e?.map((e) => ({
76
- orgId: e?.orgId,
77
- userId: e?.userId
78
- }))
79
- };
80
- delete r.createTime, delete r.updateTime, postGroupSaveOrUpdate(r).then((e) => {
81
- e.success && (message.success(`${p.title}成功!`), g(!1), f("submit"));
82
- }).finally(() => C(!1));
83
- });
84
- }
85
- function T() {
86
- g(!1);
87
- }
88
- return c({ open: b }), (e, t) => {
89
- let n = Input$1, r = FormItem, i = Textarea, a = Select, o = Button, s = Tooltip$1, c = Form$1, l = Space$1, u = Drawer;
90
- return openBlock(), createBlock(u, {
91
- open: unref(h),
92
- "onUpdate:open": t[4] ||= (e) => isRef(h) ? h.value = e : null,
93
- title: `${unref(p).title}${unref(p).type === unref(GROUP_TYPE).ORG ? "组织" : "人员"}群组`,
94
- placement: "right",
95
- width: 600,
96
- "destroy-on-close": "",
97
- "footer-style": { textAlign: "right" },
98
- onClose: T
99
- }, {
100
- footer: withCtx(() => [createVNode(l, null, {
101
- default: withCtx(() => [createVNode(o, { onClick: T }, {
102
- default: withCtx(() => [...t[6] ||= [createTextVNode(" 取消 ", -1)]]),
103
- _: 1
104
- }), createVNode(o, {
105
- type: "primary",
106
- loading: unref(S),
107
- onClick: t[3] ||= (e) => w()
108
- }, {
109
- default: withCtx(() => [...t[7] ||= [createTextVNode(" 提交 ", -1)]]),
110
- _: 1
111
- }, 8, ["loading"])]),
112
- _: 1
113
- })]),
114
- default: withCtx(() => [createVNode(c, {
115
- ref_key: "formRef",
116
- ref: _,
117
- model: unref(v),
118
- rules: m,
119
- "label-col": { span: 5 },
120
- "label-wrap": !0
121
- }, {
122
- default: withCtx(() => [
123
- createVNode(r, {
124
- label: "群组名称",
125
- name: "name"
126
- }, {
127
- default: withCtx(() => [createVNode(n, {
128
- value: unref(v).name,
129
- "onUpdate:value": t[0] ||= (e) => unref(v).name = e,
130
- maxlength: 128
131
- }, null, 8, ["value"])]),
132
- _: 1
133
- }),
134
- createVNode(r, {
135
- label: "群组描述",
136
- name: "remark"
137
- }, {
138
- default: withCtx(() => [createVNode(i, {
139
- value: unref(v).remark,
140
- "onUpdate:value": t[1] ||= (e) => unref(v).remark = e,
141
- maxlength: 250,
142
- "show-count": ""
143
- }, null, 8, ["value"])]),
144
- _: 1
145
- }),
146
- createVNode(r, {
147
- label: "群组使用范围",
148
- name: "viewScope"
149
- }, {
150
- default: withCtx(() => [createVNode(a, {
151
- value: unref(v).viewScope,
152
- "onUpdate:value": t[2] ||= (e) => unref(v).viewScope = e,
153
- options: unref(useOptions),
154
- placeholder: "本部门/本部门及子部门/全部"
155
- }, null, 8, ["value", "options"])]),
156
- _: 1
157
- }),
158
- createVNode(r, {
159
- label: "群组成员",
160
- name: "pubGroupMemberList"
161
- }, {
162
- default: withCtx(() => [createVNode(o, {
163
- type: "primary",
164
- onClick: x
165
- }, {
166
- default: withCtx(() => [...t[5] ||= [createTextVNode(" 编辑成员 ", -1)]]),
167
- _: 1
168
- }), createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(y), (e) => (openBlock(), createElementBlock(Fragment, { key: e }, [e.name && e.name?.length > 20 ? (openBlock(), createBlock(s, {
169
- key: 0,
170
- title: e.name
171
- }, {
172
- default: withCtx(() => [createElementVNode("span", _hoisted_2, toDisplayString(`${e.name?.slice(0, 20)}...`), 1)]),
173
- _: 2
174
- }, 1032, ["title"])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(e.name), 1))], 64))), 128))])]),
175
- _: 1
176
- })
177
- ]),
178
- _: 1
179
- }, 8, ["model"])]),
180
- _: 1
181
- }, 8, ["open", "title"]);
182
- };
183
- }
184
- }), drawerGroup_exports = /* @__PURE__ */ __exportAll({ default: () => drawerGroup_default }), drawerGroup_default = drawerGroup_vue_vue_type_script_setup_true_lang_default;
185
- export { drawerGroup_exports as n, drawerGroup_default as t };
@@ -1,247 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { C as postRbacOrgUpdateOrg, Lt as useToggle, r as getDictItemList, v as getRbacOrgInfo, x as postRbacOrgAddOrg } from "./index.js";
3
- import { createBlock, createCommentVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
4
- import { message } from "ant-design-vue";
5
- import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, InputNumber, Select, Space as Space$1, Switch } from "ant-design-vue/es";
6
- let ACTION = /* @__PURE__ */ function(e) {
7
- return e.AUTHORIZE = "授权", e.ADD = "新增", e.ADDNEXT = "新增下级", e.EDIT = "编辑", e.REMOVE = "删除", e;
8
- }({}), RESOURCE_TYPE = /* @__PURE__ */ function(e) {
9
- return e.OWNER = "1", e.ALL = "2", e;
10
- }({}), ENABLE_TYPE = /* @__PURE__ */ function(e) {
11
- return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
12
- }({});
13
- RESOURCE_TYPE.OWNER, RESOURCE_TYPE.ALL, ENABLE_TYPE.ON, ENABLE_TYPE.OFF;
14
- var drawerOrganization_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
15
- name: "OrganizationEdit",
16
- __name: "drawerOrganization",
17
- emits: ["submit"],
18
- setup(e, { expose: o, emit: l }) {
19
- let d = l, f = {
20
- name: [{
21
- required: !0,
22
- message: "请输入组织名称",
23
- trigger: "blur"
24
- }, {
25
- max: 128,
26
- message: "长度不能超过128位",
27
- trigger: "change"
28
- }],
29
- code: [{
30
- required: !0,
31
- message: "请输入组织编码",
32
- trigger: "blur"
33
- }, {
34
- max: 50,
35
- message: "长度不能超过50位",
36
- trigger: "change"
37
- }],
38
- type: [{
39
- required: !0,
40
- message: "请输入组织类型",
41
- trigger: "blur"
42
- }],
43
- areaCode: [{
44
- max: 16,
45
- message: "长度不能超过16位",
46
- trigger: "change"
47
- }],
48
- creditCode: [{
49
- max: 50,
50
- message: "长度不能超过50位",
51
- trigger: "change"
52
- }],
53
- contactPerson: [{
54
- max: 50,
55
- message: "长度不能超过50位",
56
- trigger: "change"
57
- }],
58
- contactMobile: [{
59
- max: 20,
60
- message: "长度不能超过20位",
61
- trigger: "change"
62
- }]
63
- }, p = reactive({
64
- title: "",
65
- type: ""
66
- }), [m, h] = useToggle(!1), g = ref(), _ = ref([]);
67
- getDictItemList({ dictCode: "orgType" }).then((e) => {
68
- _.value = e.data?.map((e) => ({
69
- label: e.dictLabel,
70
- value: e.dictValue
71
- }));
72
- });
73
- let v = ref({
74
- parentId: "",
75
- enable: !0
76
- });
77
- async function y(e, t) {
78
- if (h(!0), p.title = e, e === ACTION.EDIT) {
79
- let e = await getRbacOrgInfo({ id: t?.id });
80
- e.success && (v.value = e.data ?? {});
81
- } else e === ACTION.ADDNEXT ? v.value = {
82
- parentName: t?.name,
83
- parentId: t?.id,
84
- enable: !0,
85
- district: !1
86
- } : v.value = {
87
- parentId: "",
88
- enable: !0,
89
- district: !1
90
- };
91
- }
92
- let [b, x] = useToggle(!1);
93
- function S() {
94
- let e = p.title === ACTION.EDIT ? postRbacOrgUpdateOrg : postRbacOrgAddOrg;
95
- g.value?.validate().then(() => {
96
- x(!0), e({ ...v.value }).then((e) => {
97
- e.success && (message.success(`${p.title}成功!`), h(!1), d("submit", { ...v.value }));
98
- }).finally(() => x(!1));
99
- });
100
- }
101
- function C() {
102
- v.value = { enable: !1 }, h(!1);
103
- }
104
- return o({ open: y }), (e, t) => {
105
- let n = FormItem, r = Input$1, i = Select, a = Switch, o = InputNumber, s = Form$1, c = Button, l = Space$1, u = Drawer;
106
- return openBlock(), createBlock(u, {
107
- open: unref(m),
108
- "onUpdate:open": t[11] ||= (e) => isRef(m) ? m.value = e : null,
109
- title: `${unref(p).title}组织`,
110
- placement: "right",
111
- width: 600,
112
- "destroy-on-close": "",
113
- "footer-style": { textAlign: "right" },
114
- onClose: C
115
- }, {
116
- footer: withCtx(() => [createVNode(l, null, {
117
- default: withCtx(() => [createVNode(c, { onClick: C }, {
118
- default: withCtx(() => [...t[12] ||= [createTextVNode(" 取消 ", -1)]]),
119
- _: 1
120
- }), createVNode(c, {
121
- type: "primary",
122
- loading: unref(b),
123
- onClick: t[10] ||= (e) => S()
124
- }, {
125
- default: withCtx(() => [...t[13] ||= [createTextVNode(" 提交 ", -1)]]),
126
- _: 1
127
- }, 8, ["loading"])]),
128
- _: 1
129
- })]),
130
- default: withCtx(() => [createVNode(s, {
131
- ref_key: "formRef",
132
- ref: g,
133
- model: unref(v),
134
- rules: f,
135
- "label-col": { span: 6 },
136
- "label-wrap": !0
137
- }, {
138
- default: withCtx(() => [
139
- unref(v).parentId !== "" && unref(v).parentId !== "0" ? (openBlock(), createBlock(n, {
140
- key: 0,
141
- label: "所属上级"
142
- }, {
143
- default: withCtx(() => [createTextVNode(toDisplayString(unref(v).parentName), 1)]),
144
- _: 1
145
- })) : createCommentVNode("", !0),
146
- createVNode(n, {
147
- label: "组织名称",
148
- name: "name"
149
- }, {
150
- default: withCtx(() => [createVNode(r, {
151
- value: unref(v).name,
152
- "onUpdate:value": t[0] ||= (e) => unref(v).name = e
153
- }, null, 8, ["value"])]),
154
- _: 1
155
- }),
156
- createVNode(n, {
157
- label: "组织编码",
158
- name: "code"
159
- }, {
160
- default: withCtx(() => [createVNode(r, {
161
- value: unref(v).code,
162
- "onUpdate:value": t[1] ||= (e) => unref(v).code = e
163
- }, null, 8, ["value"])]),
164
- _: 1
165
- }),
166
- createVNode(n, {
167
- label: "组织类型",
168
- name: "type"
169
- }, {
170
- default: withCtx(() => [createVNode(i, {
171
- value: unref(v).type,
172
- "onUpdate:value": t[2] ||= (e) => unref(v).type = e,
173
- options: unref(_)
174
- }, null, 8, ["value", "options"])]),
175
- _: 1
176
- }),
177
- createVNode(n, { label: "是否行政区划" }, {
178
- default: withCtx(() => [createVNode(a, {
179
- checked: unref(v).district,
180
- "onUpdate:checked": t[3] ||= (e) => unref(v).district = e
181
- }, null, 8, ["checked"])]),
182
- _: 1
183
- }),
184
- unref(v).district ? (openBlock(), createBlock(n, {
185
- key: 1,
186
- label: "行政区划编码",
187
- name: "areaCode"
188
- }, {
189
- default: withCtx(() => [createVNode(r, {
190
- value: unref(v).areaCode,
191
- "onUpdate:value": t[4] ||= (e) => unref(v).areaCode = e
192
- }, null, 8, ["value"])]),
193
- _: 1
194
- })) : createCommentVNode("", !0),
195
- createVNode(n, { label: "是否启用" }, {
196
- default: withCtx(() => [createVNode(a, {
197
- checked: unref(v).enable,
198
- "onUpdate:checked": t[5] ||= (e) => unref(v).enable = e
199
- }, null, 8, ["checked"])]),
200
- _: 1
201
- }),
202
- createVNode(n, { label: "排序" }, {
203
- default: withCtx(() => [createVNode(o, {
204
- value: unref(v).sort,
205
- "onUpdate:value": t[6] ||= (e) => unref(v).sort = e
206
- }, null, 8, ["value"])]),
207
- _: 1
208
- }),
209
- createVNode(n, {
210
- label: "统一社会信用代码",
211
- name: "creditCode"
212
- }, {
213
- default: withCtx(() => [createVNode(r, {
214
- value: unref(v).creditCode,
215
- "onUpdate:value": t[7] ||= (e) => unref(v).creditCode = e
216
- }, null, 8, ["value"])]),
217
- _: 1
218
- }),
219
- createVNode(n, {
220
- label: "联系人",
221
- name: "contactPerson"
222
- }, {
223
- default: withCtx(() => [createVNode(r, {
224
- value: unref(v).contactPerson,
225
- "onUpdate:value": t[8] ||= (e) => unref(v).contactPerson = e
226
- }, null, 8, ["value"])]),
227
- _: 1
228
- }),
229
- createVNode(n, {
230
- label: "联系方式",
231
- name: "contactMobile"
232
- }, {
233
- default: withCtx(() => [createVNode(r, {
234
- value: unref(v).contactMobile,
235
- "onUpdate:value": t[9] ||= (e) => unref(v).contactMobile = e
236
- }, null, 8, ["value"])]),
237
- _: 1
238
- })
239
- ]),
240
- _: 1
241
- }, 8, ["model"])]),
242
- _: 1
243
- }, 8, ["open", "title"]);
244
- };
245
- }
246
- }), drawerOrganization_exports = /* @__PURE__ */ __exportAll({ default: () => drawerOrganization_default }), drawerOrganization_default = drawerOrganization_vue_vue_type_script_setup_true_lang_default;
247
- export { drawerOrganization_exports as n, ACTION as r, drawerOrganization_default as t };