@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
@@ -0,0 +1,182 @@
1
+ import "./request-7X2hpUru.js";
2
+ import { n as e, o as t } from "./index.js";
3
+ import { t as n } from "./enum-DS4SGhiF.js";
4
+ import { t as r } from "./drawerDictionary-DhAB-LV9.js";
5
+ import { PubinfoIcon as i, useAuth as a } from "pubinfo-pr";
6
+ import { createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, openBlock as p, ref as m, resolveDirective as h, toDisplayString as g, unref as _, withCtx as v, withDirectives as y } from "vue";
7
+ import { PlusCircleOutlined as b } from "@ant-design/icons-vue";
8
+ import { Modal as x, message as S } from "ant-design-vue";
9
+ import { Button as C, Space as w } from "ant-design-vue/es";
10
+ import { ProTable as T } from "@pubinfo/pro-components";
11
+ import { useRouter as E } from "vue-router";
12
+ //#region src/views/dictionary/index.vue?vue&type=script&setup=true&lang.tsx
13
+ var D = {
14
+ "py-10px": "",
15
+ "px-10px": "",
16
+ "w-full": "",
17
+ "h-full": ""
18
+ }, O = {
19
+ key: 0,
20
+ class: "flex items-center"
21
+ }, k = { class: "ml-4px" }, A = ["onClick"], j = { class: "ml-4px" }, M = ["onClick"], N = { class: "ml-4px" }, P = ["onClick"], F = { class: "ml-4px" }, I = /* @__PURE__ */ f({
22
+ name: "Dictionary",
23
+ __name: "index",
24
+ setup(f) {
25
+ let { auth: I } = a(), L = m(), R = m(), z = [
26
+ {
27
+ valueType: "a-input",
28
+ width: 50,
29
+ hideInTable: !0,
30
+ title: "名称或编码",
31
+ dataIndex: "searchName",
32
+ fieldProps: {
33
+ placeholder: "请输入名称或者编码",
34
+ allowClear: !0
35
+ }
36
+ },
37
+ {
38
+ hideInSearch: !0,
39
+ minWidth: 100,
40
+ title: "类型名称",
41
+ dataIndex: "name",
42
+ ellipsis: !0
43
+ },
44
+ {
45
+ hideInSearch: !0,
46
+ minWidth: 80,
47
+ title: "类型编码",
48
+ dataIndex: "code",
49
+ ellipsis: !0
50
+ },
51
+ {
52
+ hideInSearch: !0,
53
+ minWidth: 100,
54
+ title: "描述",
55
+ dataIndex: "description",
56
+ ellipsis: !0
57
+ },
58
+ {
59
+ hideInSearch: !0,
60
+ width: 80,
61
+ minWidth: 60,
62
+ title: "排序",
63
+ dataIndex: "sort"
64
+ },
65
+ {
66
+ hideInSearch: !0,
67
+ title: "操作",
68
+ dataIndex: "action",
69
+ width: 240,
70
+ fixed: "right",
71
+ hideInTable() {
72
+ return !I([
73
+ "dictionary_data",
74
+ "dictionary_edit",
75
+ "dictionary_remove"
76
+ ]);
77
+ }
78
+ }
79
+ ];
80
+ async function B(e) {
81
+ let { current: n, pageSize: r, searchName: i } = e, a = await t({
82
+ currentPage: n,
83
+ pageSize: r,
84
+ name: i,
85
+ doSearchTotal: !0
86
+ });
87
+ return {
88
+ success: a.success,
89
+ data: a.data?.records ?? [],
90
+ total: a.data?.total ?? 0
91
+ };
92
+ }
93
+ let V = E();
94
+ function H(t, r) {
95
+ switch (t) {
96
+ case n.ADD:
97
+ R.value.open(t);
98
+ break;
99
+ case n.EDIT:
100
+ R.value.open(t, r);
101
+ break;
102
+ case n.REMOVE:
103
+ x.confirm({
104
+ title: "删除",
105
+ content: "确定要删除该类型吗?",
106
+ onOk() {
107
+ e({ id: r?.id }).then((e) => {
108
+ e.success && (S.success("删除成功"), U());
109
+ });
110
+ }
111
+ });
112
+ break;
113
+ case n.ADDNEXT:
114
+ V.push({
115
+ name: "DictionaryItem",
116
+ params: { id: `${r?.id}` },
117
+ query: { code: `${r?.code}` }
118
+ });
119
+ break;
120
+ }
121
+ }
122
+ function U() {
123
+ L.value.reload();
124
+ }
125
+ return (e, t) => {
126
+ let a = b, f = C, m = i, x = w, S = h("auth");
127
+ return p(), c("div", D, [d(_(T), {
128
+ ref_key: "tableRef",
129
+ ref: L,
130
+ "row-key": "id",
131
+ request: B,
132
+ columns: z,
133
+ "auto-height": "",
134
+ scroll: { x: 1040 }
135
+ }, {
136
+ toolbar: v(() => [y((p(), o(f, {
137
+ type: "primary",
138
+ onClick: t[0] ||= (e) => H(_(n).ADD)
139
+ }, {
140
+ default: v(() => [d(a), u(" " + g(_(n).ADD), 1)]),
141
+ _: 1
142
+ })), [[S, "dictionary_add"]])]),
143
+ bodyCell: v(({ column: e, record: t }) => [e.dataIndex === "code" ? (p(), c("div", O, [d(m, {
144
+ name: "icard",
145
+ class: "text-20px"
146
+ }), l("span", k, g(t.code), 1)])) : s("", !0), e.dataIndex === "action" ? (p(), o(x, { key: 1 }, {
147
+ default: v(() => [
148
+ y((p(), c("a", {
149
+ class: "flex items-center",
150
+ onClick: (e) => H(_(n).ADDNEXT, t)
151
+ }, [d(m, {
152
+ name: "zddata",
153
+ class: "text-20px"
154
+ }), l("span", j, g(_(n).ADDNEXT), 1)], 8, A)), [[S, "dictionary_data"]]),
155
+ y((p(), c("a", {
156
+ class: "flex items-center",
157
+ onClick: (e) => H(_(n).EDIT, t)
158
+ }, [d(m, {
159
+ name: "edit",
160
+ class: "text-base"
161
+ }), l("span", N, g(_(n).EDIT), 1)], 8, M)), [[S, "dictionary_edit"]]),
162
+ y((p(), c("span", {
163
+ class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
164
+ onClick: (e) => H(_(n).REMOVE, t)
165
+ }, [d(m, {
166
+ name: "remove",
167
+ class: "text-base"
168
+ }), l("span", F, g(_(n).REMOVE), 1)], 8, P)), [[S, "dictionary_remove"]])
169
+ ]),
170
+ _: 2
171
+ }, 1024)) : s("", !0)]),
172
+ _: 1
173
+ }, 512), d(r, {
174
+ ref_key: "drawerDictionaryRef",
175
+ ref: R,
176
+ onSubmit: t[1] ||= (e) => U()
177
+ }, null, 512)]);
178
+ };
179
+ }
180
+ });
181
+ //#endregion
182
+ export { I as default };
@@ -0,0 +1,21 @@
1
+ import { getCurrentInstance as e, isRef as t, nextTick as n, onMounted as r, shallowRef as i, toValue as a } from "vue";
2
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3
+ function o(t) {
4
+ return t || e();
5
+ }
6
+ function s(e, t = !0, i) {
7
+ o(i) ? r(e, i) : t ? e() : n(e);
8
+ }
9
+ function c(e = !1, n = {}) {
10
+ let { truthyValue: r = !0, falsyValue: o = !1 } = n, s = t(e), c = i(e);
11
+ function l(e) {
12
+ if (arguments.length) return c.value = e, c.value;
13
+ {
14
+ let e = a(r);
15
+ return c.value = c.value === e ? a(o) : e, c.value;
16
+ }
17
+ }
18
+ return s ? l : [c, l];
19
+ }
20
+ //#endregion
21
+ export { c as n, s as t };
@@ -0,0 +1,123 @@
1
+ import { r as e } from "./chunk-WQLz0Won.js";
2
+ import { n as t } from "./dist-DxAYQq3U.js";
3
+ import { f as n, m as r } from "./index.js";
4
+ import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, isRef as c, openBlock as l, ref as u, unref as d, withCtx as f } from "vue";
5
+ import { message as p } from "ant-design-vue";
6
+ import { Button as m, Drawer as h, Form as g, FormItem as _, Input as v, Space as y, Switch as b, Textarea as x } from "ant-design-vue/es";
7
+ //#region src/views/blackWhiteList/components/drawerBlackWhiteList.vue?vue&type=script&setup=true&lang.ts
8
+ var S = /* @__PURE__ */ s({
9
+ name: "DrawerBlackWhiteList",
10
+ __name: "drawerBlackWhiteList",
11
+ props: { type: {} },
12
+ emits: ["submit"],
13
+ setup(e, { expose: s, emit: S }) {
14
+ let C = e, w = S, T = {
15
+ ip: [{
16
+ required: !0,
17
+ validator: N,
18
+ trigger: ["blur", "change"]
19
+ }],
20
+ enable: [{
21
+ required: !0,
22
+ message: "请选择是否开启",
23
+ trigger: ["blur", "change"]
24
+ }]
25
+ }, E = u(""), [D, O] = t(!1), k = u(), A = { enable: !0 }, j = u({}), M = u(!1);
26
+ function N(e, t, n) {
27
+ 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地址"));
28
+ }
29
+ async function P(e, t, n) {
30
+ E.value = e, O(!0), t ? (M.value = !0, j.value = { ...n ?? {} }) : (M.value = !1, j.value = { ...A });
31
+ }
32
+ let [F, I] = t(!1);
33
+ function L() {
34
+ k.value?.validate().then(() => {
35
+ I(!0), (M.value ? r : n)({
36
+ ...j.value,
37
+ type: C.type
38
+ }).then((e) => {
39
+ e.success && (p.success(`${E.value}成功!`), O(!1), w("submit"));
40
+ }).finally(() => I(!1));
41
+ });
42
+ }
43
+ function R() {
44
+ O(!1);
45
+ }
46
+ return s({ open: P }), (e, t) => {
47
+ let n = v, r = _, s = b, u = x, p = g, S = m, C = y, w = h;
48
+ return l(), i(w, {
49
+ open: d(D),
50
+ "onUpdate:open": t[4] ||= (e) => c(D) ? D.value = e : null,
51
+ title: `${d(E)}信息`,
52
+ placement: "right",
53
+ width: 600,
54
+ "destroy-on-close": "",
55
+ "footer-style": { textAlign: "right" },
56
+ onClose: R
57
+ }, {
58
+ footer: f(() => [o(C, null, {
59
+ default: f(() => [o(S, { onClick: R }, {
60
+ default: f(() => [...t[5] ||= [a(" 取消 ", -1)]]),
61
+ _: 1
62
+ }), o(S, {
63
+ type: "primary",
64
+ loading: d(F),
65
+ onClick: t[3] ||= (e) => L()
66
+ }, {
67
+ default: f(() => [...t[6] ||= [a(" 提交 ", -1)]]),
68
+ _: 1
69
+ }, 8, ["loading"])]),
70
+ _: 1
71
+ })]),
72
+ default: f(() => [o(p, {
73
+ ref_key: "formRef",
74
+ ref: k,
75
+ model: d(j),
76
+ rules: T,
77
+ "label-col": { span: 4 }
78
+ }, {
79
+ default: f(() => [
80
+ o(r, {
81
+ label: "来源ip地址",
82
+ name: "ip"
83
+ }, {
84
+ default: f(() => [o(n, {
85
+ value: d(j).ip,
86
+ "onUpdate:value": t[0] ||= (e) => d(j).ip = e,
87
+ maxlength: 20
88
+ }, null, 8, ["value"])]),
89
+ _: 1
90
+ }),
91
+ o(r, {
92
+ label: "状态",
93
+ name: "enable"
94
+ }, {
95
+ default: f(() => [o(s, {
96
+ checked: d(j).enable,
97
+ "onUpdate:checked": t[1] ||= (e) => d(j).enable = e
98
+ }, null, 8, ["checked"])]),
99
+ _: 1
100
+ }),
101
+ o(r, {
102
+ label: "描述",
103
+ name: "description"
104
+ }, {
105
+ default: f(() => [o(u, {
106
+ value: d(j).description,
107
+ "onUpdate:value": t[2] ||= (e) => d(j).description = e,
108
+ rows: 3,
109
+ "show-count": "",
110
+ maxlength: 200
111
+ }, null, 8, ["value"])]),
112
+ _: 1
113
+ })
114
+ ]),
115
+ _: 1
116
+ }, 8, ["model"])]),
117
+ _: 1
118
+ }, 8, ["open", "title"]);
119
+ };
120
+ }
121
+ }), C = /* @__PURE__ */ e({ default: () => w }), w = S;
122
+ //#endregion
123
+ export { C as n, w as t };
@@ -0,0 +1,129 @@
1
+ import { r as e } from "./chunk-WQLz0Won.js";
2
+ import { n as t } from "./dist-DxAYQq3U.js";
3
+ import { s as n } from "./index.js";
4
+ import { t as r } from "./enum-DS4SGhiF.js";
5
+ import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, isRef as c, openBlock as l, reactive as u, ref as d, unref as f, withCtx as p } from "vue";
6
+ import { message as m } from "ant-design-vue";
7
+ import { Button as h, Drawer as g, Form as _, FormItem as v, Input as y, InputNumber as b, Space as x, Textarea as S } from "ant-design-vue/es";
8
+ //#region src/views/dictionary/components/drawerDictionary.vue?vue&type=script&setup=true&lang.ts
9
+ var C = /* @__PURE__ */ s({
10
+ name: "DrawerDictionary",
11
+ __name: "drawerDictionary",
12
+ emits: ["submit"],
13
+ setup(e, { expose: s, emit: C }) {
14
+ let w = C, T = {
15
+ name: [{
16
+ required: !0,
17
+ message: "请输入类型名称",
18
+ trigger: "blur"
19
+ }],
20
+ code: [{
21
+ required: !0,
22
+ message: "请输入类型编码",
23
+ trigger: "blur"
24
+ }]
25
+ }, E = u({ title: "" }), [D, O] = t(!1), k = d(), A = d({});
26
+ async function j(e, t) {
27
+ O(!0), E.title = e, e === r.EDIT ? A.value = { ...t ?? {} } : A.value = {};
28
+ }
29
+ let [M, N] = t(!1);
30
+ function P() {
31
+ k.value?.validate().then(() => {
32
+ N(!0), n({ ...A.value }).then((e) => {
33
+ e.success && (m.success(`${E.title}成功!`), O(!1), w("submit"));
34
+ }).finally(() => N(!1));
35
+ });
36
+ }
37
+ function F() {
38
+ O(!1);
39
+ }
40
+ return s({ open: j }), (e, t) => {
41
+ let n = y, s = v, u = S, d = b, m = _, C = h, w = x, O = g;
42
+ return l(), i(O, {
43
+ open: f(D),
44
+ "onUpdate:open": t[5] ||= (e) => c(D) ? D.value = e : null,
45
+ title: `${f(E).title}类型`,
46
+ placement: "right",
47
+ width: 520,
48
+ "destroy-on-close": "",
49
+ "footer-style": { textAlign: "right" },
50
+ onClose: F
51
+ }, {
52
+ footer: p(() => [o(w, null, {
53
+ default: p(() => [o(C, { onClick: F }, {
54
+ default: p(() => [...t[6] ||= [a(" 取消 ", -1)]]),
55
+ _: 1
56
+ }), o(C, {
57
+ type: "primary",
58
+ loading: f(M),
59
+ onClick: t[4] ||= (e) => P()
60
+ }, {
61
+ default: p(() => [...t[7] ||= [a(" 提交 ", -1)]]),
62
+ _: 1
63
+ }, 8, ["loading"])]),
64
+ _: 1
65
+ })]),
66
+ default: p(() => [o(m, {
67
+ ref_key: "formRef",
68
+ ref: k,
69
+ model: f(A),
70
+ rules: T,
71
+ "label-col": { span: 4 }
72
+ }, {
73
+ default: p(() => [
74
+ o(s, {
75
+ label: "类型名称",
76
+ name: "name"
77
+ }, {
78
+ default: p(() => [o(n, {
79
+ value: f(A).name,
80
+ "onUpdate:value": t[0] ||= (e) => f(A).name = e,
81
+ maxlength: 30
82
+ }, null, 8, ["value"])]),
83
+ _: 1
84
+ }),
85
+ o(s, {
86
+ label: "类型编码",
87
+ name: "code"
88
+ }, {
89
+ default: p(() => [o(n, {
90
+ value: f(A).code,
91
+ "onUpdate:value": t[1] ||= (e) => f(A).code = e,
92
+ maxlength: 30,
93
+ disabled: f(E).title === f(r).EDIT
94
+ }, null, 8, ["value", "disabled"])]),
95
+ _: 1
96
+ }),
97
+ o(s, {
98
+ label: "描述",
99
+ name: "description"
100
+ }, {
101
+ default: p(() => [o(u, {
102
+ value: f(A).description,
103
+ "onUpdate:value": t[2] ||= (e) => f(A).description = e,
104
+ rows: 3,
105
+ "show-count": "",
106
+ maxlength: 200
107
+ }, null, 8, ["value"])]),
108
+ _: 1
109
+ }),
110
+ o(s, {
111
+ label: "排序",
112
+ name: "sort"
113
+ }, {
114
+ default: p(() => [o(d, {
115
+ value: f(A).sort,
116
+ "onUpdate:value": t[3] ||= (e) => f(A).sort = e
117
+ }, null, 8, ["value"])]),
118
+ _: 1
119
+ })
120
+ ]),
121
+ _: 1
122
+ }, 8, ["model"])]),
123
+ _: 1
124
+ }, 8, ["open", "title"]);
125
+ };
126
+ }
127
+ }), w = /* @__PURE__ */ e({ default: () => T }), T = C;
128
+ //#endregion
129
+ export { w as n, T as t };
@@ -0,0 +1,141 @@
1
+ import { r as e } from "./chunk-WQLz0Won.js";
2
+ import { n as t } from "./dist-DxAYQq3U.js";
3
+ import { a as n } from "./index.js";
4
+ import { t as r } from "./enum-DS4SGhiF.js";
5
+ import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, isRef as c, openBlock as l, reactive as u, ref as d, unref as f, withCtx as p } from "vue";
6
+ import { message as m } from "ant-design-vue";
7
+ import { Button as h, Drawer as g, Form as _, FormItem as v, Input as y, InputNumber as b, Space as x, Switch as S, Textarea as C } from "ant-design-vue/es";
8
+ //#region src/views/dictionary/components/drawerDictionaryItem.vue?vue&type=script&setup=true&lang.ts
9
+ var w = /* @__PURE__ */ s({
10
+ name: "DrawerDictionaryItem",
11
+ __name: "drawerDictionaryItem",
12
+ emits: ["submit"],
13
+ setup(e, { expose: s, emit: w }) {
14
+ let T = w, E = {
15
+ dictLabel: [{
16
+ required: !0,
17
+ message: "请输入字典项名称",
18
+ trigger: "blur"
19
+ }],
20
+ dictValue: [{
21
+ required: !0,
22
+ message: "请输入字典项值",
23
+ trigger: "blur"
24
+ }]
25
+ }, D = u({
26
+ title: "",
27
+ code: ""
28
+ }), [O, k] = t(!1), A = d(), j = d({});
29
+ async function M(e, t, n) {
30
+ k(!0), D.title = e, D.code = t, e === r.EDIT ? j.value = n ?? {} : (j.value = {}, j.value.enable = !0, j.value.code = t);
31
+ }
32
+ let [N, P] = t(!1);
33
+ function F() {
34
+ A.value?.validate().then(() => {
35
+ P(!0), n({ ...j.value }).then((e) => {
36
+ e.success && (m.success(`${D.title}成功!`), k(!1), T("submit"));
37
+ }).finally(() => P(!1));
38
+ });
39
+ }
40
+ function I() {
41
+ k(!1);
42
+ }
43
+ return s({ open: M }), (e, t) => {
44
+ let n = y, r = v, s = C, u = b, d = S, m = _, w = h, T = x, k = g;
45
+ return l(), i(k, {
46
+ open: f(O),
47
+ "onUpdate:open": t[6] ||= (e) => c(O) ? O.value = e : null,
48
+ title: `${f(D).title}字典数据`,
49
+ placement: "right",
50
+ width: 520,
51
+ "destroy-on-close": "",
52
+ "footer-style": { textAlign: "right" },
53
+ onClose: I
54
+ }, {
55
+ footer: p(() => [o(T, null, {
56
+ default: p(() => [o(w, { onClick: I }, {
57
+ default: p(() => [...t[7] ||= [a(" 取消 ", -1)]]),
58
+ _: 1
59
+ }), o(w, {
60
+ type: "primary",
61
+ loading: f(N),
62
+ onClick: t[5] ||= (e) => F()
63
+ }, {
64
+ default: p(() => [...t[8] ||= [a(" 提交 ", -1)]]),
65
+ _: 1
66
+ }, 8, ["loading"])]),
67
+ _: 1
68
+ })]),
69
+ default: p(() => [o(m, {
70
+ ref_key: "formRef",
71
+ ref: A,
72
+ model: f(j),
73
+ rules: E,
74
+ "label-col": { span: 5 }
75
+ }, {
76
+ default: p(() => [
77
+ o(r, {
78
+ label: "字典项名称",
79
+ name: "dictLabel"
80
+ }, {
81
+ default: p(() => [o(n, {
82
+ value: f(j).dictLabel,
83
+ "onUpdate:value": t[0] ||= (e) => f(j).dictLabel = e,
84
+ maxlength: 100
85
+ }, null, 8, ["value"])]),
86
+ _: 1
87
+ }),
88
+ o(r, {
89
+ label: "字典项值",
90
+ name: "dictValue"
91
+ }, {
92
+ default: p(() => [o(n, {
93
+ value: f(j).dictValue,
94
+ "onUpdate:value": t[1] ||= (e) => f(j).dictValue = e,
95
+ maxlength: 100
96
+ }, null, 8, ["value"])]),
97
+ _: 1
98
+ }),
99
+ o(r, {
100
+ label: "描述",
101
+ name: "description"
102
+ }, {
103
+ default: p(() => [o(s, {
104
+ value: f(j).description,
105
+ "onUpdate:value": t[2] ||= (e) => f(j).description = e,
106
+ rows: 3,
107
+ "show-count": "",
108
+ maxlength: 200
109
+ }, null, 8, ["value"])]),
110
+ _: 1
111
+ }),
112
+ o(r, {
113
+ label: "排序",
114
+ name: "sort"
115
+ }, {
116
+ default: p(() => [o(u, {
117
+ value: f(j).sort,
118
+ "onUpdate:value": t[3] ||= (e) => f(j).sort = e
119
+ }, null, 8, ["value"])]),
120
+ _: 1
121
+ }),
122
+ o(r, {
123
+ label: "是否启动",
124
+ name: "enable"
125
+ }, {
126
+ default: p(() => [o(d, {
127
+ checked: f(j).enable,
128
+ "onUpdate:checked": t[4] ||= (e) => f(j).enable = e
129
+ }, null, 8, ["checked"])]),
130
+ _: 1
131
+ })
132
+ ]),
133
+ _: 1
134
+ }, 8, ["model"])]),
135
+ _: 1
136
+ }, 8, ["open", "title"]);
137
+ };
138
+ }
139
+ }), T = /* @__PURE__ */ e({ default: () => E }), E = w;
140
+ //#endregion
141
+ export { T as n, E as t };