@pubinfo-pr/module-rbac 0.189.2 → 0.197.1

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 (236) hide show
  1. package/dist/{ComponentSelect-oZAtd4wH.js → ComponentSelect-BTaxN2iT.js} +1 -1
  2. package/dist/{ComponentSelect-CZCdwf92.js → ComponentSelect-Bsyx8WZL.js} +1063 -1140
  3. package/dist/{DynamicRoutesForm-DsjExKfm.js → DynamicRoutesForm-DEWzomS7.js} +1 -1
  4. package/dist/{DynamicRoutesForm-CYFZYd3h.js → DynamicRoutesForm-uNihUvAS.js} +2 -2
  5. package/dist/HCheckList-B5Qk_HBI.js +2 -0
  6. package/dist/{HCheckList-dHyYM7wQ.js → HCheckList-DLBewmPw.js} +3 -3
  7. package/dist/HoverCard-69ZIOivd.js +2 -0
  8. package/dist/{HoverCard-DM23tFv4.js → HoverCard-BDFcxxvk.js} +3 -3
  9. package/dist/{IconSelect-BMDn5KYI.js → IconSelect-1pVgA_5l.js} +8 -10
  10. package/dist/{IconSelect-AR3QMGQ1.js → IconSelect-C5KTdyzv.js} +1 -1
  11. package/dist/{ImportExport-yiI4wd1A.js → ImportExport-CgvABcRb.js} +10 -14
  12. package/dist/ImportExport-D1e963eV.js +4 -0
  13. package/dist/{LayoutForm-CYBKLlSy.js → LayoutForm-Cp4bBrYl.js} +9 -14
  14. package/dist/LayoutForm-QFjwakyQ.js +4 -0
  15. package/dist/{MetaForm-LDukYEwP.js → MetaForm-DhSo6Ods.js} +40 -48
  16. package/dist/MetaForm-DmUbrFlb.js +4 -0
  17. package/dist/{OrgAndPosition-Dp33AYU-.js → OrgAndPosition-ClASobEv.js} +7 -10
  18. package/dist/OrgAndPosition-DoiGY5xb.js +2 -0
  19. package/dist/{ResourceEdit-C5Xqu79p.js → ResourceEdit-BHqmmcC7.js} +9 -11
  20. package/dist/ResourceEdit-Bznnmb9d.js +10 -0
  21. package/dist/{ResourceRelation-l2XXebMl.js → ResourceRelation-BIOzTOKA.js} +1 -1
  22. package/dist/{ResourceRelation-DZrmMWPf.js → ResourceRelation-ChEwIbWM.js} +2 -2
  23. package/dist/{ResourceRelation-DeoM1DDo.js → ResourceRelation-D_j898zp.js} +4 -5
  24. package/dist/{RoleSelector-ZmjR8m3i.js → RoleSelector-Cd6_RUsc.js} +23 -24
  25. package/dist/{TenantEdit-BDTS1Fca.js → TenantEdit-BOvXk7BZ.js} +6 -9
  26. package/dist/TenantEdit-BlMmL6q5.js +2 -0
  27. package/dist/{UserAuthorization-C1QIiu2F.js → UserAuthorization-DLeivbs7.js} +10 -13
  28. package/dist/{UserAuthorization-CotnhBvL.js → UserAuthorization-qGr1Sdat.js} +2 -2
  29. package/dist/UserEdit-CwfyqNWf.js +3 -0
  30. package/dist/{UserEdit-C3mqGMtl.js → UserEdit-YKS1FVW_.js} +5 -7
  31. package/dist/animation_item-BAILNZWQ.js +2 -0
  32. package/dist/{animation_item-DRuXSAya.js → animation_item-DrJJHbmN.js} +1 -1
  33. package/dist/api/modules/assist/gonggaofuwu.d.ts +7 -7
  34. package/dist/api/modules/assist/qunzujiekou.d.ts +7 -7
  35. package/dist/api/modules/assist/quyujiekou.d.ts +6 -6
  36. package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +6 -6
  37. package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +15 -15
  38. package/dist/api/modules/configData/zidifuwu.d.ts +11 -11
  39. package/dist/api/modules/log/caozuorizhifuwu.d.ts +3 -3
  40. package/dist/api/modules/log/denglurizhifuwu.d.ts +3 -3
  41. package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -7
  42. package/dist/api/modules/rbac/jiaosejiekou.d.ts +8 -8
  43. package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +8 -8
  44. package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +10 -10
  45. package/dist/api/modules/rbac/yonghujiekou.d.ts +16 -16
  46. package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +6 -6
  47. package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +5 -5
  48. package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +7 -7
  49. package/dist/api/modules/rbac/ziyuanjiekou.d.ts +14 -14
  50. package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +6 -6
  51. package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +5 -5
  52. package/dist/api/modules/rbac/zuzhijiekou.d.ts +10 -10
  53. package/dist/api/request.d.ts +1 -1
  54. package/dist/{blackWhiteList-Lyj2w8Xc.js → blackWhiteList-CNQltBqC.js} +59 -58
  55. package/dist/blackWhiteList.css +1 -1
  56. package/dist/breadcrumb_setting-DjBboFwU.js +108 -0
  57. package/dist/{chunk-BgHNfURc.js → chunk-DITB-ELH.js} +3 -5
  58. package/dist/components/DirectoryIcones/ComponentsIcones.vue.d.ts +3 -2
  59. package/dist/components/DirectoryIcones/FolderIcones.vue.d.ts +3 -2
  60. package/dist/components/DirectoryIcones/ModuleIcones.vue.d.ts +3 -2
  61. package/dist/components/DirectoryIcones/PackagesIcones.vue.d.ts +3 -2
  62. package/dist/components/DirectoryIcones/SrcIcones.vue.d.ts +3 -2
  63. package/dist/components/DirectoryIcones/ViewIcones.vue.d.ts +3 -2
  64. package/dist/components/DirectoryIcones/VueIcones.vue.d.ts +2 -1
  65. package/dist/components/GroupSelector/index.vue.d.ts +9 -8
  66. package/dist/components/JsonEditorModal/index.vue.d.ts +20 -0
  67. package/dist/components/OrgTree/index.vue.d.ts +6 -0
  68. package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +15 -18
  69. package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +15 -18
  70. package/dist/components/OrgUserSelector/index.d.ts +4 -2
  71. package/dist/components/OrgUserSelector/provider.d.ts +1 -1
  72. package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +4 -6
  73. package/dist/components/ResourceIcones/Select.vue.d.ts +14 -22
  74. package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +16 -7
  75. package/dist/components/ResourceSelector/index.vue.d.ts +13 -11
  76. package/dist/components/RoleSelector/RoleSearch.vue.d.ts +11 -9
  77. package/dist/components/RoleSelector/RoleSelector.vue.d.ts +11 -9
  78. package/dist/components/RoleSelector/TooltipLabel.vue.d.ts +3 -2
  79. package/dist/components/RoleSelector/useRole.d.ts +68 -4
  80. package/dist/composables/useLottie.d.ts +1 -1
  81. package/dist/context.d.ts +2 -2
  82. package/dist/{createAndEditDataPermission-ClTyi4Ri.js → createAndEditDataPermission-CChlLDUm.js} +1 -1
  83. package/dist/{createAndEditDataPermission-BwUEAkBP.js → createAndEditDataPermission-CaOBJgoV.js} +16 -23
  84. package/dist/{data-permission-DXJBqtlO.js → data-permission-ZRQ-Aoib.js} +3 -3
  85. package/dist/{dayjs.min-Bsh92e4H.js → dayjs.min-Dz51Rwu9.js} +1 -1
  86. package/dist/{dictionary-W_1X6Rbi.js → dictionary-CtGgtPfc.js} +1 -1
  87. package/dist/{drawerBlackWhiteList-83S8Dj3z.js → drawerBlackWhiteList-BqIDyn2Q.js} +1 -1
  88. package/dist/{drawerBlackWhiteList-B1oIt5J_.js → drawerBlackWhiteList-CkbZ_9PZ.js} +4 -6
  89. package/dist/{drawerDictionary-CQhYvl_i.js → drawerDictionary-D911w7pC.js} +1 -1
  90. package/dist/{drawerDictionary-D3yiuJSQ.js → drawerDictionary-dMHs-6Cw.js} +4 -6
  91. package/dist/{drawerDictionaryItem-DgMdlr4F.js → drawerDictionaryItem-CbTa_qL-.js} +4 -6
  92. package/dist/{drawerDictionaryItem-DPNqG0Ow.js → drawerDictionaryItem-DLUI5Yuc.js} +1 -1
  93. package/dist/{drawerGroup-i0awz56c.js → drawerGroup-CEEDMBg9.js} +1 -1
  94. package/dist/{drawerGroup-AZQsI1zw.js → drawerGroup-DEuiiDPP.js} +6 -9
  95. package/dist/{drawerOrganization-oZcaL3zo.js → drawerOrganization-CqEMD3gE.js} +4 -6
  96. package/dist/{drawerOrganization-BLSFSwWp.js → drawerOrganization-mks5NMd9.js} +1 -1
  97. package/dist/{drawerPosition-BQDRnJxo.js → drawerPosition-Bd0s7qze.js} +4 -6
  98. package/dist/drawerPosition-DwlTrlGA.js +2 -0
  99. package/dist/{drawerRegion-DGs1NFgB.js → drawerRegion-DUbQAZuV.js} +4 -6
  100. package/dist/drawerRegion-DwVzsZfT.js +2 -0
  101. package/dist/{drawerRole-IoKzu2MV.js → drawerRole-BNrbcSmr.js} +1 -1
  102. package/dist/drawerRole-BxUIekjh.js +3 -0
  103. package/dist/drawerRole-CyA2oFht.js +4 -0
  104. package/dist/{drawerRole-D74a8YGf.js → drawerRole-D5X7oHB_.js} +7 -10
  105. package/dist/{drawerRole-CI92ltBG.js → drawerRole-DNDyOvXw.js} +7 -10
  106. package/dist/{drawerRole-BVGZbMiQ.js → drawerRole-Dv61PBZR.js} +6 -9
  107. package/dist/{group-CFfGOevD.js → group-BbkZjv5e.js} +3 -3
  108. package/dist/index.d.ts +2 -2
  109. package/dist/index.js +1026 -990
  110. package/dist/interface.d.ts +2 -2
  111. package/dist/{itemlist-B6JOJttB.js → itemlist-By-FV6pN.js} +1 -1
  112. package/dist/{layout_setting-B_bXRf0W.js → layout_setting-BUAgQ1Bk.js} +3 -3
  113. package/dist/{loginHistoryDetail-DRBKf4C8.js → loginHistoryDetail-C7GT2yME.js} +2 -2
  114. package/dist/{loginHistoryDetail-BvdsnTFV.js → loginHistoryDetail-CkH5UUGU.js} +1 -1
  115. package/dist/{login_history-glJa2J1x.js → login_history-D08W00Qu.js} +3 -3
  116. package/dist/menu_setting-BUADDjYJ.js +155 -0
  117. package/dist/{operateHistoryDetail-B3es707H.js → operateHistoryDetail-BaNJRfwy.js} +2 -2
  118. package/dist/{operateHistoryDetail-CxD6LUWE.js → operateHistoryDetail-CeVPJzD6.js} +1 -1
  119. package/dist/{operate_history-YpetdRIT.js → operate_history-kJwIuPg2.js} +3 -3
  120. package/dist/{organization-B0yFeY4J.js → organization-2bEjUTJD.js} +1631 -1647
  121. package/dist/other_setting-COpfREkp.js +213 -0
  122. package/dist/page_animation_setting-BcxbEvNQ.js +108 -0
  123. package/dist/{page_w_setting-CBvXCWRR.js → page_w_setting-CD_HtSUv.js} +2 -2
  124. package/dist/{position-Qh2Cl1Hq.js → position-CLpbgKGj.js} +1 -1
  125. package/dist/{region-r_QWszyO.js → region-Dd9pt_Si.js} +1 -1
  126. package/dist/{resource-DKpLkyJH.js → resource-DLj7QoGf.js} +9 -9
  127. package/dist/{role-Pm5bxxjk.js → role-JGtvRObt.js} +2 -2
  128. package/dist/{role_group-D86PNA85.js → role_group-CKOb_m63.js} +2 -2
  129. package/dist/routes/index.d.ts +2 -2
  130. package/dist/routes/modules/authority.manage.menu.d.ts +1 -1
  131. package/dist/routes/modules/log.manage.menu.d.ts +1 -1
  132. package/dist/routes/modules/safe.manage.menu.d.ts +1 -1
  133. package/dist/routes/modules/stylesetting.manage.menu.d.ts +1 -1
  134. package/dist/routes/modules/system.manage.menu.d.ts +1 -1
  135. package/dist/{safe_setting-CWQngC4j.js → safe_setting-G_ZP-jWQ.js} +7 -10
  136. package/dist/setItem-Cke-0D4q.js +4 -0
  137. package/dist/{setItem-C5euZYfz.js → setItem-kPUYTKCP.js} +13 -13
  138. package/dist/stores/view.d.ts +127 -22
  139. package/dist/tabbar_setting-n1Id5cS0.js +139 -0
  140. package/dist/{tenant-DTjNtlwf.js → tenant-Ol7Zskue.js} +3 -3
  141. package/dist/{theme_setting-j1mXqCfa.js → theme_setting-vhNDLlkc.js} +4 -4
  142. package/dist/{toolbar_setting-BbJEvTPu.js → toolbar_setting-Dqrvui07.js} +20 -20
  143. package/dist/{user-BFOmEjwR.js → user-DvCyUhZW.js} +6 -6
  144. package/dist/utils/routeSystem.d.ts +133 -28
  145. package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +5 -6
  146. package/dist/views/blackWhiteList/index.vue.d.ts +2 -1534
  147. package/dist/views/breadcrumb_setting/animationData.d.ts +6 -6
  148. package/dist/views/breadcrumb_setting/index.vue.d.ts +2 -1
  149. package/dist/views/components/HCheckList.vue.d.ts +4 -3
  150. package/dist/views/components/animation_item.vue.d.ts +4 -5
  151. package/dist/views/components/setItem.vue.d.ts +4 -32
  152. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -167
  153. package/dist/views/data-permission/index.vue.d.ts +2 -1690
  154. package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +5 -6
  155. package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +5 -6
  156. package/dist/views/dictionary/index.vue.d.ts +2 -1531
  157. package/dist/views/dictionary/itemlist.vue.d.ts +2 -1531
  158. package/dist/views/group/components/drawerGroup.vue.d.ts +5 -6
  159. package/dist/views/group/index.vue.d.ts +2 -1531
  160. package/dist/views/layout_setting/index.vue.d.ts +2 -1
  161. package/dist/views/log_center/components/browserType.vue.d.ts +4 -3
  162. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +5 -4
  163. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +5 -4
  164. package/dist/views/log_center/login_history.vue.d.ts +2 -1510
  165. package/dist/views/log_center/operate_history.vue.d.ts +2 -1510
  166. package/dist/views/menu_setting/animationData.d.ts +12 -12
  167. package/dist/views/menu_setting/index.vue.d.ts +2 -1
  168. package/dist/views/organization/components/drawerOrganization.vue.d.ts +5 -6
  169. package/dist/views/organization/components/drawerRole.vue.d.ts +5 -39
  170. package/dist/views/organization/index.vue.d.ts +2 -80
  171. package/dist/views/other_setting/animationData.d.ts +6 -6
  172. package/dist/views/other_setting/index.vue.d.ts +2 -1
  173. package/dist/views/other_setting/interface.d.ts +1 -1
  174. package/dist/views/page_animation_setting/animationData.d.ts +10 -10
  175. package/dist/views/page_animation_setting/index.vue.d.ts +2 -1
  176. package/dist/views/page_w_setting/index.vue.d.ts +2 -1
  177. package/dist/views/position/components/drawerPosition.vue.d.ts +5 -6
  178. package/dist/views/position/index.vue.d.ts +2 -1531
  179. package/dist/views/region/components/drawerRegion.vue.d.ts +5 -6
  180. package/dist/views/region/index.vue.d.ts +2 -1532
  181. package/dist/views/resource/components/ComponentSelect.vue.d.ts +5 -6
  182. package/dist/views/resource/components/DynamicRoutesForm.vue.d.ts +8 -6
  183. package/dist/views/resource/components/HoverCard.vue.d.ts +9 -12
  184. package/dist/views/resource/components/IconSelect.vue.d.ts +6 -5
  185. package/dist/views/resource/components/ImportExport.vue.d.ts +6 -5
  186. package/dist/views/resource/components/LayoutForm.vue.d.ts +6 -5
  187. package/dist/views/resource/components/MetaForm.vue.d.ts +6 -5
  188. package/dist/views/resource/components/ResourceEdit.vue.d.ts +6 -7
  189. package/dist/views/resource/components/RoleRelation.vue.d.ts +4 -3
  190. package/dist/views/resource/hooks/useLayoutForm.d.ts +5 -4
  191. package/dist/views/resource/hooks/useMetaForm.d.ts +12 -3
  192. package/dist/views/resource/index.vue.d.ts +2 -1570
  193. package/dist/views/resource/interface.d.ts +1 -1
  194. package/dist/views/role/components/ResourceRelation.vue.d.ts +4 -1512
  195. package/dist/views/role/components/drawerRole.vue.d.ts +5 -43
  196. package/dist/views/role/index.vue.d.ts +2 -3089
  197. package/dist/views/role_group/components/drawerRole.vue.d.ts +5 -39
  198. package/dist/views/role_group/index.vue.d.ts +2 -1564
  199. package/dist/views/safe_setting/index.vue.d.ts +2 -3
  200. package/dist/views/tabbar_setting/animationData.d.ts +10 -10
  201. package/dist/views/tabbar_setting/index.vue.d.ts +2 -1
  202. package/dist/views/tenant/components/TenantEdit.vue.d.ts +6 -8
  203. package/dist/views/tenant/index.vue.d.ts +2 -1533
  204. package/dist/views/theme_setting/index.vue.d.ts +2 -1
  205. package/dist/views/toolbar_setting/animationData.d.ts +14 -14
  206. package/dist/views/toolbar_setting/index.vue.d.ts +2 -1
  207. package/dist/views/user/components/OrgAndPosition.vue.d.ts +8 -7
  208. package/dist/views/user/components/UserAuthorization.vue.d.ts +5 -39
  209. package/dist/views/user/components/UserEdit.vue.d.ts +6 -7
  210. package/dist/views/user/index.vue.d.ts +2 -1593
  211. package/dist/views/watermark_setting/animationData.d.ts +2 -2
  212. package/dist/views/watermark_setting/index.vue.d.ts +2 -30
  213. package/dist/{watermark_setting-B1FGbTop.js → watermark_setting-CvakGNc4.js} +11 -14
  214. package/package.json +16 -16
  215. package/src/views/blackWhiteList/index.vue +2 -1
  216. package/dist/HCheckList-B6K018cG.js +0 -2
  217. package/dist/HoverCard-CfI-SLTb.js +0 -2
  218. package/dist/ImportExport-Ch2KgeOH.js +0 -4
  219. package/dist/LayoutForm-Qwrxmybp.js +0 -4
  220. package/dist/MetaForm-BswxCCuV.js +0 -4
  221. package/dist/OrgAndPosition-CyoItQuu.js +0 -2
  222. package/dist/ResourceEdit-DlnTxHoF.js +0 -10
  223. package/dist/TenantEdit-BOMpr4z8.js +0 -2
  224. package/dist/UserEdit-CJYVcFZw.js +0 -3
  225. package/dist/animation_item-DVbSAJ9x.js +0 -2
  226. package/dist/breadcrumb_setting-DmZAQdwS.js +0 -108
  227. package/dist/drawerPosition-Dv6sl-Lf.js +0 -2
  228. package/dist/drawerRegion-5FtwY5Rd.js +0 -2
  229. package/dist/drawerRole-B7LqcyGf.js +0 -4
  230. package/dist/drawerRole-Bq08YzR7.js +0 -3
  231. package/dist/menu_setting-CuMAvx0k.js +0 -155
  232. package/dist/other_setting-vOU1Lnfp.js +0 -215
  233. package/dist/page_animation_setting-DSAKNmb1.js +0 -108
  234. package/dist/routeSystem-DXMoWhFo.js +0 -2
  235. package/dist/setItem-BxDHeWlp.js +0 -4
  236. package/dist/tabbar_setting-D7enWjw4.js +0 -139
@@ -1,5 +1,5 @@
1
- import { Lt as useToggle, d as getBlackWhiteListDeleteById, h as __plugin_vue_export_helper_default, m as postBlackWhiteListUpdateBlackWhiteList, p as postBlackWhiteListGetBlackWhiteListPageList } from "./index.js";
2
- import { t as drawerBlackWhiteList_default } from "./drawerBlackWhiteList-B1oIt5J_.js";
1
+ import { Lt as useToggle, d as getBlackWhiteListDeleteById, h as _plugin_vue_export_helper_default, m as postBlackWhiteListUpdateBlackWhiteList, p as postBlackWhiteListGetBlackWhiteListPageList } from "./index.js";
2
+ import { t as drawerBlackWhiteList_default } from "./drawerBlackWhiteList-CkbZ_9PZ.js";
3
3
  import { PubinfoIcon, useAuth } from "pubinfo-pr";
4
4
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
5
5
  import { PlusCircleOutlined } from "@ant-design/icons-vue";
@@ -11,21 +11,13 @@ import './blackWhiteList.css';let ACTION = /* @__PURE__ */ function(e) {
11
11
  return e.ADD = "新增", e.EDIT = "编辑", e.REMOVE = "删除", e.ENABLE = "启用", e.DISABLE = "停用", e;
12
12
  }({});
13
13
  var _hoisted_1 = {
14
- "w-full": "",
15
- "h-full": "",
16
- "py-10px": "",
17
- "px-10px": "",
18
- flex: "",
19
- "flex-col": "",
20
- class: "page-black-white-list"
21
- }, _hoisted_2 = {
22
14
  key: 0,
23
15
  class: "flex items-center"
24
- }, _hoisted_3 = { class: "ml-4px" }, _hoisted_4 = ["onClick"], _hoisted_5 = { class: "ml-4px" }, _hoisted_6 = ["onClick"], _hoisted_7 = { class: "ml-4px" }, _hoisted_8 = ["onClick"], _hoisted_9 = { class: "ml-4px" }, _hoisted_10 = ["onClick"], _hoisted_11 = { class: "ml-4px" }, blackWhiteList_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
16
+ }, _hoisted_2 = { class: "ml-4px" }, _hoisted_3 = ["onClick"], _hoisted_4 = { class: "ml-4px" }, _hoisted_5 = ["onClick"], _hoisted_6 = { class: "ml-4px" }, _hoisted_7 = ["onClick"], _hoisted_8 = { class: "ml-4px" }, _hoisted_9 = ["onClick"], _hoisted_10 = { class: "ml-4px" }, blackWhiteList_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
25
17
  name: "BlackWhiteList",
26
18
  __name: "index",
27
- setup(O) {
28
- let F = ref(useRoute().path.includes("blacklist")), I = computed(() => F.value ? 0 : 1), L = computed(() => F.value ? "blacklist" : "whitelist"), R = computed(() => `${L.value}_add`), z = computed(() => `${L.value}_edit`), B = computed(() => `${L.value}_delete`), V = computed(() => `${L.value}_enable`), H = computed(() => `${L.value}_disable`), { auth: U } = useAuth(), W = ref(), G = ref(), K = [
19
+ setup(D) {
20
+ let P = useRoute(), F = computed(() => P.path.includes("blacklist")), I = computed(() => F.value ? 0 : 1), L = computed(() => F.value ? "blacklist" : "whitelist"), R = computed(() => `${L.value}_add`), z = computed(() => `${L.value}_edit`), B = computed(() => `${L.value}_delete`), V = computed(() => `${L.value}_enable`), H = computed(() => `${L.value}_disable`), { auth: U } = useAuth(), W = ref(), G = ref(), K = [
29
21
  {
30
22
  valueType: "a-input",
31
23
  minWidth: 60,
@@ -80,31 +72,31 @@ var _hoisted_1 = {
80
72
  }
81
73
  ];
82
74
  async function q(e) {
83
- let { current: D, pageSize: O, ip: k, enable: j } = e, M = {
84
- ip: k,
85
- pageSize: O,
86
- currentPage: D,
75
+ let { current: E, pageSize: D, ip: O, enable: A } = e, j = {
76
+ ip: O,
77
+ pageSize: D,
78
+ currentPage: E,
87
79
  doSearchTotal: !0,
88
80
  type: I.value
89
81
  };
90
- j !== void 0 && (M.enable = j);
91
- let N = await postBlackWhiteListGetBlackWhiteListPageList(M);
82
+ A !== void 0 && (j.enable = A);
83
+ let M = await postBlackWhiteListGetBlackWhiteListPageList(j);
92
84
  return {
93
- success: N.success,
94
- data: N.data?.records ?? [],
95
- total: N.data?.total ?? 0
85
+ success: M.success,
86
+ data: M.data?.records ?? [],
87
+ total: M.data?.total ?? 0
96
88
  };
97
89
  }
98
90
  function J() {
99
91
  W.value.reload();
100
92
  }
101
93
  let [Y, X] = useToggle(!1);
102
- function Z(e, O) {
94
+ function Z(e, D) {
103
95
  Modal.confirm({
104
96
  title: "删除",
105
97
  content: `确定要删除该条${e}数据吗?`,
106
98
  async onOk() {
107
- X(!0), getBlackWhiteListDeleteById({ id: O?.id }).then((e) => {
99
+ X(!0), getBlackWhiteListDeleteById({ id: D?.id }).then((e) => {
108
100
  e.success && (message.success("删除成功"), J());
109
101
  }).finally(() => X(!1));
110
102
  }
@@ -114,35 +106,44 @@ var _hoisted_1 = {
114
106
  X(!0), postBlackWhiteListUpdateBlackWhiteList({
115
107
  id: e?.id,
116
108
  enable: !e?.enable
117
- }).then((D) => {
118
- if (D.success) {
119
- let D = "";
120
- D = e?.enable ? "停用成功!" : "启用成功!", message.success(D), J();
109
+ }).then((E) => {
110
+ if (E.success) {
111
+ let E = "";
112
+ E = e?.enable ? "停用成功!" : "启用成功!", message.success(E), J();
121
113
  }
122
114
  }).finally(() => X(!1));
123
115
  }
124
- function $(e, D) {
116
+ function $(e, E) {
125
117
  if (Y.value) return;
126
- let O = "";
127
- switch (O = F.value ? "黑名单" : "白名单", e) {
118
+ let D = "";
119
+ switch (D = F.value ? "黑名单" : "白名单", e) {
128
120
  case ACTION.ADD:
129
- G.value.open(e + O, !1);
121
+ G.value.open(e + D, !1);
130
122
  break;
131
123
  case ACTION.EDIT:
132
- G.value.open(e + O, !0, D);
124
+ G.value.open(e + D, !0, E);
133
125
  break;
134
126
  case ACTION.REMOVE:
135
- Z(O, D);
127
+ Z(D, E);
136
128
  break;
137
129
  case ACTION.ENABLE:
138
130
  case ACTION.DISABLE:
139
- Q(D);
131
+ Q(E);
140
132
  break;
141
133
  }
142
134
  }
143
- return (e, D) => {
144
- let O = PlusCircleOutlined, k = Button, A = PubinfoIcon, N = Space$1, P = resolveDirective("auth");
145
- return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
135
+ return (e, E) => {
136
+ let D = PlusCircleOutlined, O = Button, k = PubinfoIcon, M = Space$1, N = resolveDirective("auth");
137
+ return openBlock(), createElementBlock("div", {
138
+ key: unref(I),
139
+ "w-full": "",
140
+ "h-full": "",
141
+ "py-10px": "",
142
+ "px-10px": "",
143
+ flex: "",
144
+ "flex-col": "",
145
+ class: "page-black-white-list"
146
+ }, [createVNode(unref(ProTable), {
146
147
  ref_key: "tableRef",
147
148
  ref: W,
148
149
  "row-key": "id",
@@ -151,22 +152,22 @@ var _hoisted_1 = {
151
152
  "auto-height": "",
152
153
  scroll: { x: 1e3 }
153
154
  }, {
154
- toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(k, {
155
+ toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(O, {
155
156
  type: "primary",
156
- onClick: D[0] ||= (e) => $(unref(ACTION).ADD)
157
+ onClick: E[0] ||= (e) => $(unref(ACTION).ADD)
157
158
  }, {
158
- default: withCtx(() => [createVNode(O), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
159
+ default: withCtx(() => [createVNode(D), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
159
160
  _: 1
160
- })), [[P, unref(R)]])]),
161
- bodyCell: withCtx(({ column: e, record: D }) => [e.dataIndex === "enable" ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("i", { class: normalizeClass(["status-mark", [{ active: D.enable }]]) }, null, 2), createElementVNode("span", _hoisted_3, toDisplayString(D.enable ? "启用" : "停用"), 1)])) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(N, { key: 1 }, {
161
+ })), [[N, unref(R)]])]),
162
+ bodyCell: withCtx(({ column: e, record: E }) => [e.dataIndex === "enable" ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("i", { class: normalizeClass(["status-mark", [{ active: E.enable }]]) }, null, 2), createElementVNode("span", _hoisted_2, toDisplayString(E.enable ? "启用" : "停用"), 1)])) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(M, { key: 1 }, {
162
163
  default: withCtx(() => [
163
164
  withDirectives((openBlock(), createElementBlock("a", {
164
165
  class: "flex items-center hover:opacity-80",
165
- onClick: (e) => $(unref(ACTION).EDIT, D)
166
- }, [createVNode(A, {
166
+ onClick: (e) => $(unref(ACTION).EDIT, E)
167
+ }, [createVNode(k, {
167
168
  name: "edit",
168
169
  class: "text-base"
169
- }), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[P, unref(z)]]),
170
+ }), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[N, unref(z)]]),
170
171
  withDirectives((openBlock(), createElementBlock("span", {
171
172
  flex: "",
172
173
  "items-center": "",
@@ -174,26 +175,26 @@ var _hoisted_1 = {
174
175
  "hover:cursor-pointer": "",
175
176
  "hover:text-red-500": "",
176
177
  "hover:opacity-80": "",
177
- onClick: (e) => $(unref(ACTION).REMOVE, D)
178
- }, [createVNode(A, {
178
+ onClick: (e) => $(unref(ACTION).REMOVE, E)
179
+ }, [createVNode(k, {
179
180
  name: "remove",
180
181
  class: "text-base"
181
- }), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_6)), [[P, unref(B)]]),
182
- D.enable ? withDirectives((openBlock(), createElementBlock("a", {
182
+ }), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[N, unref(B)]]),
183
+ E.enable ? withDirectives((openBlock(), createElementBlock("a", {
183
184
  key: 0,
184
185
  class: "flex items-center",
185
- onClick: (e) => $(unref(ACTION).DISABLE, D)
186
- }, [createVNode(A, {
186
+ onClick: (e) => $(unref(ACTION).DISABLE, E)
187
+ }, [createVNode(k, {
187
188
  name: "blacklist-disable",
188
189
  class: "text-20px"
189
- }), createElementVNode("span", _hoisted_9, toDisplayString(unref(ACTION).DISABLE), 1)], 8, _hoisted_8)), [[P, unref(H)]]) : withDirectives((openBlock(), createElementBlock("a", {
190
+ }), createElementVNode("span", _hoisted_8, toDisplayString(unref(ACTION).DISABLE), 1)], 8, _hoisted_7)), [[N, unref(H)]]) : withDirectives((openBlock(), createElementBlock("a", {
190
191
  key: 1,
191
192
  class: "flex items-center",
192
- onClick: (e) => $(unref(ACTION).ENABLE, D)
193
- }, [createVNode(A, {
193
+ onClick: (e) => $(unref(ACTION).ENABLE, E)
194
+ }, [createVNode(k, {
194
195
  name: "blacklist-enable",
195
196
  class: "text-20px"
196
- }), createElementVNode("span", _hoisted_11, toDisplayString(unref(ACTION).ENABLE), 1)], 8, _hoisted_10)), [[P, unref(V)]])
197
+ }), createElementVNode("span", _hoisted_10, toDisplayString(unref(ACTION).ENABLE), 1)], 8, _hoisted_9)), [[N, unref(V)]])
197
198
  ]),
198
199
  _: 2
199
200
  }, 1024)) : createCommentVNode("", !0)]),
@@ -202,9 +203,9 @@ var _hoisted_1 = {
202
203
  ref_key: "drawerRef",
203
204
  ref: G,
204
205
  type: unref(I),
205
- onSubmit: D[1] ||= (e) => J()
206
+ onSubmit: E[1] ||= (e) => J()
206
207
  }, null, 8, ["type"])]);
207
208
  };
208
209
  }
209
- }), [["__scopeId", "data-v-f5caa334"]]);
210
+ }), [["__scopeId", "data-v-f7d838c2"]]);
210
211
  export { blackWhiteList_default as default };
@@ -1 +1 @@
1
- .page-black-white-list[data-v-f5caa334] .ant-card.pro-table{border-top-left-radius:0;border-top-right-radius:0}.page-black-white-list .status-mark[data-v-f5caa334]{--un-bg-opacity:1;background-color:rgb(174 174 174/var(--un-bg-opacity));border-radius:50%;width:.5rem;height:.5rem;margin-right:.25rem;display:inline-block}.page-black-white-list .status-mark.active[data-v-f5caa334]{background:#01d689}
1
+ .page-black-white-list[data-v-f7d838c2] .ant-card.pro-table{border-top-left-radius:0;border-top-right-radius:0}.page-black-white-list .status-mark[data-v-f7d838c2]{--un-bg-opacity:1;background-color:rgb(174 174 174/var(--un-bg-opacity));border-radius:50%;width:.5rem;height:.5rem;margin-right:.25rem;display:inline-block}.page-black-white-list .status-mark.active[data-v-f7d838c2]{background:#01d689}