@pubinfo/module-rbac 2.1.10-beta.2 → 2.1.11

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 (226) hide show
  1. package/dist/ComponentSelect-A7uGTuHW.js +3498 -0
  2. package/dist/{DynamicRoutesForm-DP_sq_Uu.js → DynamicRoutesForm-DSzy_bh5.js} +43 -42
  3. package/dist/HCheckList-ODQHidN8.js +37 -0
  4. package/dist/HoverCard-CmJCoa2b.js +44 -0
  5. package/dist/{IconSelect-CiLpc63Z.js → IconSelect-DouEg3xY.js} +89 -88
  6. package/dist/ImportExport-DisdLoY8.js +342 -0
  7. package/dist/{LayoutForm-Cp4bBrYl.js → LayoutForm-Bdfs5WeK.js} +35 -34
  8. package/dist/{MetaForm-CVSgktB_.js → MetaForm-CcDwS8vh.js} +6128 -6143
  9. package/dist/{OrgAndPosition-ClASobEv.js → OrgAndPosition-jDX7m0HD.js} +61 -60
  10. package/dist/{ResourceEdit-w8qh1MFO.js → ResourceEdit-0BYZRye_.js} +128 -127
  11. package/dist/{ResourceRelation-ChEwIbWM.js → ResourceRelation-CU-QpUhP.js} +25 -25
  12. package/dist/{ResourceRelation-D_j898zp.js → ResourceRelation-roz0a8Td.js} +35 -34
  13. package/dist/{RoleRelation-DzyVn5dk.js → RoleRelation-BQQFaum0.js} +28 -27
  14. package/dist/{RoleSelector-Cd6_RUsc.js → RoleSelector-gkar_UGG.js} +89 -89
  15. package/dist/{TenantEdit-BOvXk7BZ.js → TenantEdit-BsahDUlf.js} +94 -93
  16. package/dist/{UserAuthorization-DLeivbs7.js → UserAuthorization-2Fl4IGw7.js} +81 -80
  17. package/dist/{UserEdit-YKS1FVW_.js → UserEdit-CX3Qau8T.js} +102 -101
  18. package/dist/{animation_item-BU-LInxP.js → animation_item-DBOz2rcX.js} +20 -22
  19. package/dist/{blackWhiteList-CNQltBqC.js → blackWhiteList-DbG7JH8n.js} +69 -69
  20. package/dist/blackWhiteList.css +1 -1
  21. package/dist/breadcrumb_setting-DTR6CPZQ.js +108 -0
  22. package/dist/{browserType-Dn_hQtAN.js → browserType-B8A1Osvk.js} +11 -10
  23. package/dist/chunk-DiMWNkAf.js +18 -0
  24. package/dist/cloneDeep-CSOSavu3.js +6 -0
  25. package/dist/components/GroupSelector/index.vue.d.ts +7 -1
  26. package/dist/components/ResourceIcones/Select.vue.d.ts +2 -1
  27. package/dist/components/ResourceSelector/index.vue.d.ts +7 -1
  28. package/dist/components/RoleSelector/RoleSearch.vue.d.ts +9 -1
  29. package/dist/components/RoleSelector/RoleSelector.vue.d.ts +7 -1
  30. package/dist/{createAndEditDataPermission-CaOBJgoV.js → createAndEditDataPermission-8_KNLzJT.js} +49 -48
  31. package/dist/createAndEditDataPermission.css +1 -1
  32. package/dist/{data-permission-ZRQ-Aoib.js → data-permission-LpuDLDm0.js} +41 -41
  33. package/dist/{dayjs.min-sGDSMYRj.js → dayjs.min-Cb7gQFd4.js} +1 -1
  34. package/dist/{dictionary-CtGgtPfc.js → dictionary-CEaxjqZe.js} +46 -46
  35. package/dist/drawerBlackWhiteList-DXLdWurZ.js +120 -0
  36. package/dist/drawerDictionary-DYJTAZr6.js +126 -0
  37. package/dist/drawerDictionaryItem-BChXD2-q.js +138 -0
  38. package/dist/{drawerGroup-DEuiiDPP.js → drawerGroup-CdnZkZxi.js} +67 -66
  39. package/dist/drawerOrganization-CwtSFUj0.js +247 -0
  40. package/dist/drawerPosition-CfyfeQCN.js +166 -0
  41. package/dist/drawerRegion-DAwY_29K.js +183 -0
  42. package/dist/drawerRole-B7uCfHk-.js +154 -0
  43. package/dist/{drawerRole-Dv61PBZR.js → drawerRole-DK6DrinO.js} +77 -76
  44. package/dist/{drawerRole-DNDyOvXw.js → drawerRole-DrzMHL0O.js} +69 -68
  45. package/dist/{group-BbkZjv5e.js → group-CaOhkh72.js} +48 -48
  46. package/dist/group.css +1 -1
  47. package/dist/index.css +1 -1
  48. package/dist/index.js +613 -689
  49. package/dist/isEmpty-BjEzPyCa.js +12 -0
  50. package/dist/{itemlist-By-FV6pN.js → itemlist-CFwRUV2Y.js} +44 -44
  51. package/dist/json-asset-03f0a035.json +1 -0
  52. package/dist/json-asset-0ee63e7f.json +1 -0
  53. package/dist/json-asset-10eef4fe.json +1 -0
  54. package/dist/json-asset-13f452f1.json +1 -0
  55. package/dist/json-asset-14b7b290.json +1 -0
  56. package/dist/json-asset-15b8cef1.json +1 -0
  57. package/dist/json-asset-15f77960.json +1 -0
  58. package/dist/json-asset-1ae9b726.json +1 -0
  59. package/dist/json-asset-1b02359f.json +1 -0
  60. package/dist/json-asset-1ef286cd.json +1 -0
  61. package/dist/json-asset-23cfd18c.json +1 -0
  62. package/dist/json-asset-265a0a5d.json +1 -0
  63. package/dist/json-asset-28d57c49.json +1 -0
  64. package/dist/json-asset-2b54ed10.json +1 -0
  65. package/dist/json-asset-2bb6f642.json +1 -0
  66. package/dist/json-asset-2cdc07bd.json +1 -0
  67. package/dist/json-asset-31c58607.json +1 -0
  68. package/dist/json-asset-32884f23.json +1 -0
  69. package/dist/json-asset-32fca43a.json +1 -0
  70. package/dist/json-asset-3a75445b.json +1 -0
  71. package/dist/json-asset-3f27d67c.json +1 -0
  72. package/dist/json-asset-4189453f.json +1 -0
  73. package/dist/json-asset-4702b37c.json +1 -0
  74. package/dist/json-asset-520a5c68.json +1 -0
  75. package/dist/json-asset-56bea508.json +1 -0
  76. package/dist/json-asset-57c732a3.json +1 -0
  77. package/dist/json-asset-5be4a28f.json +1 -0
  78. package/dist/json-asset-5e6d7cfa.json +1 -0
  79. package/dist/json-asset-64e176c9.json +1 -0
  80. package/dist/json-asset-6583dca6.json +1 -0
  81. package/dist/json-asset-66c640c6.json +1 -0
  82. package/dist/json-asset-68393156.json +1 -0
  83. package/dist/json-asset-688465aa.json +1 -0
  84. package/dist/json-asset-6bf334f4.json +1 -0
  85. package/dist/json-asset-7b4f72ce.json +1 -0
  86. package/dist/json-asset-837ec087.json +1 -0
  87. package/dist/json-asset-838ac1ba.json +1 -0
  88. package/dist/json-asset-8465c2cf.json +1 -0
  89. package/dist/json-asset-9e9f04a4.json +1 -0
  90. package/dist/json-asset-a13964cb.json +1 -0
  91. package/dist/json-asset-ab93a057.json +1 -0
  92. package/dist/json-asset-abe308fc.json +1 -0
  93. package/dist/json-asset-b24f2cd3.json +1 -0
  94. package/dist/json-asset-bf00eaed.json +1 -0
  95. package/dist/json-asset-cb22efd7.json +1 -0
  96. package/dist/json-asset-cb953f20.json +1 -0
  97. package/dist/json-asset-cc209e34.json +1 -0
  98. package/dist/json-asset-cfdffceb.json +1 -0
  99. package/dist/json-asset-d33c0299.json +1 -0
  100. package/dist/json-asset-d430c8ca.json +1 -0
  101. package/dist/json-asset-d8cfa560.json +1 -0
  102. package/dist/json-asset-da91beb6.json +1 -0
  103. package/dist/json-asset-e2bdf85c.json +1 -0
  104. package/dist/json-asset-e34ad826.json +1 -0
  105. package/dist/json-asset-e80720aa.json +1 -0
  106. package/dist/json-asset-e894bc92.json +1 -0
  107. package/dist/json-asset-f28020f2.json +1 -0
  108. package/dist/json-asset-f71ebbf4.json +1 -0
  109. package/dist/json-asset-fb1f4917.json +1 -0
  110. package/dist/json-asset-ff2e97c4.json +1 -0
  111. package/dist/{layout_setting-BUAgQ1Bk.js → layout_setting-79srmFgJ.js} +11 -11
  112. package/dist/layout_setting.css +1 -1
  113. package/dist/{log-vjU7aBPR.js → log-BYris9iT.js} +6 -6
  114. package/dist/{loginHistoryDetail-C7GT2yME.js → loginHistoryDetail-CZnfmbbM.js} +24 -23
  115. package/dist/{login_history-D08W00Qu.js → login_history-BiwaLpxA.js} +33 -33
  116. package/dist/login_history.css +1 -1
  117. package/dist/menu_setting-C2GciMXz.js +155 -0
  118. package/dist/not-data-Bml86wdH.js +3 -0
  119. package/dist/{operateHistoryDetail-BaNJRfwy.js → operateHistoryDetail-HId-EZzy.js} +27 -26
  120. package/dist/{operate_history-kJwIuPg2.js → operate_history-sPd9IHMV.js} +33 -33
  121. package/dist/operate_history.css +1 -1
  122. package/dist/{organization-Cmj3DUXl.js → organization-Dv3FbKke.js} +1438 -1444
  123. package/dist/organization.css +1 -1
  124. package/dist/other_setting-oVuhA70c.js +213 -0
  125. package/dist/other_setting.css +1 -1
  126. package/dist/page_animation_setting-D0CtzyOZ.js +108 -0
  127. package/dist/page_animation_setting.css +1 -1
  128. package/dist/{page_w_setting-CD_HtSUv.js → page_w_setting-Q--ct16C.js} +11 -11
  129. package/dist/page_w_setting.css +1 -1
  130. package/dist/{position-CLpbgKGj.js → position-CCZ2MSMP.js} +41 -41
  131. package/dist/{region-Dd9pt_Si.js → region-D3mjqB8H.js} +62 -62
  132. package/dist/{resource-C7dXB0EE.js → resource-DaQ7CvM_.js} +69 -69
  133. package/dist/{role-JGtvRObt.js → role-4UgEw3nH.js} +49 -49
  134. package/dist/{role_group-CKOb_m63.js → role_group-hkRlCnyl.js} +41 -41
  135. package/dist/{safe_setting-G_ZP-jWQ.js → safe_setting-4fv3qNRZ.js} +85 -85
  136. package/dist/{setItem-yKhjmUh0.js → setItem-Vkcwkj-O.js} +33 -32
  137. package/dist/setItem.css +1 -1
  138. package/dist/tabbar_setting-DhrW4Jj5.js +139 -0
  139. package/dist/{tenant-BBiCJkU_.js → tenant-lWfGw2u1.js} +48 -48
  140. package/dist/{theme_setting-vhNDLlkc.js → theme_setting-CEb7UYQO.js} +47 -47
  141. package/dist/theme_setting.css +1 -1
  142. package/dist/toolbar_setting-znESrYgi.js +140 -0
  143. package/dist/useAppAndResource-B7FmNfKG.js +52 -0
  144. package/dist/{user-DvCyUhZW.js → user-BkUpcQC8.js} +96 -96
  145. package/dist/{vanilla-picker-DcG96G63.js → vanilla-picker-Byb6q187.js} +239 -239
  146. package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +5 -1
  147. package/dist/views/components/setItem.vue.d.ts +5 -1
  148. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -1
  149. package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +5 -1
  150. package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +5 -1
  151. package/dist/views/group/components/drawerGroup.vue.d.ts +5 -1
  152. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +8 -1
  153. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +8 -1
  154. package/dist/views/organization/components/drawerOrganization.vue.d.ts +5 -1
  155. package/dist/views/organization/components/drawerRole.vue.d.ts +5 -1
  156. package/dist/views/other_setting/interface.d.ts +1 -2
  157. package/dist/views/position/components/drawerPosition.vue.d.ts +5 -1
  158. package/dist/views/region/components/drawerRegion.vue.d.ts +5 -1
  159. package/dist/views/resource/components/ImportExport.vue.d.ts +5 -1
  160. package/dist/views/resource/components/ResourceEdit.vue.d.ts +5 -1
  161. package/dist/views/role/components/drawerRole.vue.d.ts +5 -1
  162. package/dist/views/role_group/components/drawerRole.vue.d.ts +5 -1
  163. package/dist/views/tenant/components/TenantEdit.vue.d.ts +5 -1
  164. package/dist/views/user/components/UserAuthorization.vue.d.ts +5 -1
  165. package/dist/views/user/components/UserEdit.vue.d.ts +5 -1
  166. package/dist/watermark_setting-DYirSIAn.js +191 -0
  167. package/dist/watermark_setting.css +1 -1
  168. package/package.json +13 -13
  169. package/src/views/other_setting/index.vue +2 -2
  170. package/src/views/other_setting/interface.ts +1 -1
  171. package/dist/ComponentSelect-D0OCk6H1.js +0 -3572
  172. package/dist/ComponentSelect-WO-3S5rH.js +0 -2
  173. package/dist/DynamicRoutesForm-DjZ3eVLW.js +0 -4
  174. package/dist/HCheckList-B5Qk_HBI.js +0 -2
  175. package/dist/HCheckList-DLBewmPw.js +0 -36
  176. package/dist/HoverCard-69ZIOivd.js +0 -2
  177. package/dist/HoverCard-BDFcxxvk.js +0 -43
  178. package/dist/IconSelect-C_Gj5G4I.js +0 -3
  179. package/dist/ImportExport-CL5uPlby.js +0 -342
  180. package/dist/ImportExport-CPy2rvv7.js +0 -4
  181. package/dist/LayoutForm-QFjwakyQ.js +0 -4
  182. package/dist/MetaForm-Bb-um1Zo.js +0 -4
  183. package/dist/OrgAndPosition-DoiGY5xb.js +0 -2
  184. package/dist/ResourceEdit-BTaNdwC_.js +0 -10
  185. package/dist/ResourceRelation-BIOzTOKA.js +0 -2
  186. package/dist/RoleRelation-CyTcqRfZ.js +0 -2
  187. package/dist/TenantEdit-BlMmL6q5.js +0 -2
  188. package/dist/UserAuthorization-qGr1Sdat.js +0 -3
  189. package/dist/UserEdit-CwfyqNWf.js +0 -3
  190. package/dist/animation_item-GzGItm3s.js +0 -2
  191. package/dist/breadcrumb_setting-Ds-XJRR1.js +0 -108
  192. package/dist/browserType-BXTT4j6i.js +0 -2
  193. package/dist/chunk-Cpsc_9al.js +0 -18
  194. package/dist/cloneDeep-DDAtsK42.js +0 -7
  195. package/dist/createAndEditDataPermission-CChlLDUm.js +0 -5
  196. package/dist/drawerBlackWhiteList-BqIDyn2Q.js +0 -2
  197. package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +0 -119
  198. package/dist/drawerDictionary-D911w7pC.js +0 -2
  199. package/dist/drawerDictionary-dMHs-6Cw.js +0 -125
  200. package/dist/drawerDictionaryItem-CbTa_qL-.js +0 -137
  201. package/dist/drawerDictionaryItem-DLUI5Yuc.js +0 -2
  202. package/dist/drawerGroup-CEEDMBg9.js +0 -3
  203. package/dist/drawerOrganization-CqEMD3gE.js +0 -246
  204. package/dist/drawerOrganization-mks5NMd9.js +0 -2
  205. package/dist/drawerPosition-Bd0s7qze.js +0 -165
  206. package/dist/drawerPosition-DwlTrlGA.js +0 -2
  207. package/dist/drawerRegion-DUbQAZuV.js +0 -182
  208. package/dist/drawerRegion-DwVzsZfT.js +0 -2
  209. package/dist/drawerRole-BNrbcSmr.js +0 -3
  210. package/dist/drawerRole-BxUIekjh.js +0 -3
  211. package/dist/drawerRole-CyA2oFht.js +0 -4
  212. package/dist/drawerRole-D5X7oHB_.js +0 -153
  213. package/dist/isEmpty-BvRqbmpu.js +0 -13
  214. package/dist/loginHistoryDetail-CkH5UUGU.js +0 -3
  215. package/dist/menu_setting-5Jet091Q.js +0 -155
  216. package/dist/not-data-Cx--tk_h.js +0 -2
  217. package/dist/not-data-tyTawN37.js +0 -2
  218. package/dist/operateHistoryDetail-CeVPJzD6.js +0 -3
  219. package/dist/other_setting-DQ70WnZK.js +0 -213
  220. package/dist/page_animation_setting-Lp6cMuFM.js +0 -108
  221. package/dist/routeSystem-DXMoWhFo.js +0 -2
  222. package/dist/setItem-Qa7UapHO.js +0 -4
  223. package/dist/tabbar_setting-B3kMhRNm.js +0 -139
  224. package/dist/toolbar_setting-DNBdxeGP.js +0 -140
  225. package/dist/useAppAndResource-CPL2VpOJ.js +0 -52
  226. package/dist/watermark_setting-CXp4Og0Y.js +0 -191
@@ -1,6 +1,7 @@
1
+ import { r as __exportAll } from "./chunk-DiMWNkAf.js";
1
2
  import { Lt as useToggle, Nt as postGroupList, OrgSelector as OrgSelector_default, ResourceSelector as ResourceSelector_default, at as postRbacPubDataPermissionsSave, g as RESOURCE_MODE, h as _plugin_vue_export_helper_default, nt as getRbacPubDataPermissionsGetById, ot as postRbacPubDataPermissionsUpdate } from "./index.js";
2
3
  import { n as GROUP_TYPE } from "./enum-Cr7uWnB2.js";
3
- import { t as useAppAndResource } from "./useAppAndResource-CPL2VpOJ.js";
4
+ import { t as useAppAndResource } from "./useAppAndResource-B7FmNfKG.js";
4
5
  import { i as dataPermissionOptionsAll, n as DATA_PERMISSION_TYPE } from "./enum-3mYayxff.js";
5
6
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, mergeModels, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, useModel, withCtx } from "vue";
6
7
  import { message } from "ant-design-vue";
@@ -13,16 +14,16 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
13
14
  openModifiers: {}
14
15
  },
15
16
  emits: /* @__PURE__ */ mergeModels(["select"], ["update:open"]),
16
- setup(n, { expose: r, emit: i }) {
17
- let a = i, o = ref("OrgGroup"), s = computed(() => o.value === "OrgGroup"), c = ref([]), u = ref([]), d = ref([]), f = ref([]), m = computed(() => {
18
- let e = s.value ? c : u, t = s.value ? d : f;
17
+ setup(e, { expose: r, emit: i }) {
18
+ let a = i, o = ref("OrgGroup"), s = computed(() => o.value === "OrgGroup"), c = ref([]), l = ref([]), d = ref([]), f = ref([]), p = computed(() => {
19
+ let e = s.value ? c : l, t = s.value ? d : f;
19
20
  return e.value.filter((e) => t.value.includes(e.value));
20
- }), h = useModel(n, "open"), g = useToggle(h);
21
+ }), h = useModel(e, "open"), g = useToggle(h);
21
22
  _();
22
23
  function _() {
23
- y(GROUP_TYPE.ORG), y(GROUP_TYPE.PER);
24
+ v(GROUP_TYPE.ORG), v(GROUP_TYPE.PER);
24
25
  }
25
- function y(e) {
26
+ function v(e) {
26
27
  postGroupList({ type: e }).then((t) => {
27
28
  if (t && t.data && t.data.length) {
28
29
  let n = t.data.map((e) => {
@@ -34,36 +35,36 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
34
35
  id: n
35
36
  };
36
37
  });
37
- e === GROUP_TYPE.ORG ? c.value = n : u.value = n;
38
+ e === GROUP_TYPE.ORG ? c.value = n : l.value = n;
38
39
  }
39
40
  });
40
41
  }
41
- function Te(e) {
42
+ function b(e) {
42
43
  if (e && e.length) {
43
44
  let t = e.map((e) => e.value);
44
45
  s.value ? d.value = t : f.value = t;
45
46
  } else d.value = [], f.value = [];
46
47
  g(!0);
47
48
  }
48
- function Ee() {
49
- s.value ? x() : S();
49
+ function S() {
50
+ s.value ? C() : ee();
50
51
  }
51
- function x() {
52
+ function C() {
52
53
  d.value = [];
53
54
  }
54
- function S() {
55
+ function ee() {
55
56
  f.value = [];
56
57
  }
57
58
  function w(e) {
58
59
  let t = s.value ? d : f, n = t.value.findIndex((t) => t === e);
59
60
  n !== -1 && t.value.splice(n, 1);
60
61
  }
61
- function T() {
62
- a("select", m.value), g(!1);
62
+ function E() {
63
+ a("select", p.value), g(!1);
63
64
  }
64
- return r({ open: Te }), (e, t) => {
65
- let n = CheckboxGroup$1, r = TabPane, i = Tabs, a = Tag$1, s = Tooltip$1, l = Button, p = Modal$1;
66
- return openBlock(), createBlock(p, {
65
+ return r({ open: b }), (e, t) => {
66
+ let n = CheckboxGroup$1, r = TabPane, i = Tabs, a = Tag$1, s = Tooltip$1, u = Button, m = Modal$1;
67
+ return openBlock(), createBlock(m, {
67
68
  open: h.value,
68
69
  "onUpdate:open": t[4] ||= (e) => h.value = e,
69
70
  class: "group-modal",
@@ -71,12 +72,12 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
71
72
  "mask-closable": !1,
72
73
  width: 750
73
74
  }, {
74
- footer: withCtx(() => [createVNode(l, { onClick: t[3] ||= (e) => unref(g)(!1) }, {
75
+ footer: withCtx(() => [createVNode(u, { onClick: t[3] ||= (e) => unref(g)(!1) }, {
75
76
  default: withCtx(() => [...t[6] ||= [createTextVNode(" 取消 ", -1)]]),
76
77
  _: 1
77
- }), createVNode(l, {
78
+ }), createVNode(u, {
78
79
  type: "primary",
79
- onClick: T
80
+ onClick: E
80
81
  }, {
81
82
  default: withCtx(() => [...t[7] ||= [createTextVNode(" 确定 ", -1)]]),
82
83
  _: 1
@@ -104,15 +105,15 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
104
105
  default: withCtx(() => [createVNode(n, {
105
106
  value: unref(f),
106
107
  "onUpdate:value": t[1] ||= (e) => isRef(f) ? f.value = e : null,
107
- options: unref(u)
108
+ options: unref(l)
108
109
  }, null, 8, ["value", "options"])]),
109
110
  _: 1
110
111
  })]),
111
112
  _: 1
112
113
  }, 8, ["active-key"])]), createElementVNode("div", _hoisted_3$1, [createElementVNode("div", { class: "w-full h-38px bg-[rgb(245,245,245)] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#000] dark:text-[#F2F3F5]" }, [t[5] ||= createElementVNode("div", { class: "" }, " 已选群组 ", -1), createElementVNode("div", {
113
114
  class: "cursor-pointer text-[#165DFF]",
114
- onClick: Ee
115
- }, " 清空 ")]), createElementVNode("div", _hoisted_4$1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(m), (e) => (openBlock(), createElementBlock("div", {
115
+ onClick: S
116
+ }, " 清空 ")]), createElementVNode("div", _hoisted_4$1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(p), (e) => (openBlock(), createElementBlock("div", {
116
117
  key: e.value,
117
118
  class: "inline-block mb-6px max-w-300px"
118
119
  }, [e.name && e.name.length > 20 ? (openBlock(), createBlock(s, {
@@ -150,18 +151,18 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
150
151
  }, _hoisted_7 = { class: "pt-10px" }, _hoisted_8 = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, _hoisted_9 = {
151
152
  key: 1,
152
153
  class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
153
- }, createAndEditDataPermission_default = /* @__PURE__ */ defineComponent({
154
+ }, createAndEditDataPermission_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
154
155
  name: "CreateAndEditDataPermission",
155
156
  __name: "createAndEditDataPermission",
156
157
  emits: ["submit"],
157
- setup(t, { expose: o, emit: l }) {
158
- let h = l, g = RESOURCE_MODE.DATA_PERMISSION, { appList: _, resourceModelRef: v, selectedResources: b, getAppList: C, updateTreeDataAndResourceMap: E, setSelectedResources: D, updateSelectedResources: O, clearSelectedResources: k, openResourceModel: A } = useAppAndResource(g), j = ref(""), M = {
158
+ setup(e, { expose: n, emit: s }) {
159
+ let u = s, g = RESOURCE_MODE.DATA_PERMISSION, { appList: _, resourceModelRef: v, selectedResources: y, getAppList: x, updateTreeDataAndResourceMap: T, setSelectedResources: D, updateSelectedResources: O, clearSelectedResources: k, openResourceModel: A } = useAppAndResource(g), j = ref(""), M = {
159
160
  name: "",
160
161
  type: "",
161
162
  appId: "",
162
163
  orgIds: [],
163
164
  resourceIds: []
164
- }, N = ref(), De = {
165
+ }, N = ref(), te = {
165
166
  name: [{
166
167
  required: !0,
167
168
  message: "请输入数据权限名称",
@@ -196,7 +197,7 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
196
197
  trigger: ["blur", "change"]
197
198
  }]
198
199
  }, P = ref({ ...M }), F = computed(() => P.value.type === DATA_PERMISSION_TYPE.CUSTOM_DEPT_AND_SUB || P.value.type === DATA_PERMISSION_TYPE.CUSTOM_DEPT_ONLY), I = computed(() => P.value.type === DATA_PERMISSION_TYPE.CUSTOM_GROUP), L = ref(!1), [R, z] = useToggle(!1), B = ref(), V = ref([]), H = ref(), U = ref([]);
199
- C();
200
+ x();
200
201
  async function W(e, t) {
201
202
  if (j.value = e, L.value = !1, P.value = { ...M }, k(), X(), Z(), t) {
202
203
  L.value = !0;
@@ -219,13 +220,13 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
219
220
  name: e.name,
220
221
  value: e.id,
221
222
  label: e.name && e.name.length > 20 ? e.name.slice(0, 20) : e.name
222
- }))), await E(P.value.appId), P.value.resourceIds && O(P.value.resourceIds);
223
+ }))), await T(P.value.appId), P.value.resourceIds && O(P.value.resourceIds);
223
224
  }
224
225
  }
225
226
  z(!0);
226
227
  }
227
228
  function G(e) {
228
- P.value.resourceIds = [], b.value = [], e && E(e);
229
+ P.value.resourceIds = [], y.value = [], e && T(e);
229
230
  }
230
231
  function K() {
231
232
  N.value?.validateFields(["appId"]).then(() => {
@@ -247,28 +248,28 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
247
248
  function Z() {
248
249
  U.value = [];
249
250
  }
250
- function Oe(e) {
251
+ function ne(e) {
251
252
  V.value = e, e.length ? (P.value.orgIds = e.map((e) => e.orgId || ""), N.value?.clearValidate(["orgIds"])) : P.value.orgIds = [];
252
253
  }
253
- function ke(e) {
254
+ function re(e) {
254
255
  U.value = e, e.length ? (P.value.groupIds = e.map((e) => e.id || ""), N.value?.clearValidate(["groupIds"])) : P.value.groupIds = [];
255
256
  }
256
- let [Ae, Q] = useToggle(!1);
257
- function je() {
257
+ let [ie, Q] = useToggle(!1);
258
+ function ae() {
258
259
  N.value?.validate().then(() => {
259
260
  Q(!0);
260
261
  let e = L.value ? postRbacPubDataPermissionsUpdate : postRbacPubDataPermissionsSave, t = { ...P.value };
261
262
  F.value || delete t.orgIds, I.value || delete t.groupIds, e(t).then((e) => {
262
- e.success && (message.success(`${j.value}成功!`), z(!1), h("submit"));
263
+ e.success && (message.success(`${j.value}成功!`), z(!1), u("submit"));
263
264
  }).finally(() => Q(!1));
264
265
  });
265
266
  }
266
267
  function $() {
267
268
  z(!1);
268
269
  }
269
- return o({ open: W }), (e, t) => {
270
- let i = Input$1, a = FormItem, o = Select, s = Button, c = Tooltip$1, l = Form$1, u = Space$1, f = Drawer;
271
- return openBlock(), createBlock(f, {
270
+ return n({ open: W }), (e, t) => {
271
+ let n = Input$1, a = FormItem, o = Select, s = Button, c = Tooltip$1, l = Form$1, u = Space$1, d = Drawer;
272
+ return openBlock(), createBlock(d, {
272
273
  open: unref(R),
273
274
  "onUpdate:open": t[4] ||= (e) => isRef(R) ? R.value = e : null,
274
275
  title: `${unref(j)}数据权限`,
@@ -284,8 +285,8 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
284
285
  _: 1
285
286
  }), createVNode(s, {
286
287
  type: "primary",
287
- loading: unref(Ae),
288
- onClick: t[3] ||= (e) => je()
288
+ loading: unref(ie),
289
+ onClick: t[3] ||= (e) => ae()
289
290
  }, {
290
291
  default: withCtx(() => [...t[9] ||= [createTextVNode(" 提交 ", -1)]]),
291
292
  _: 1
@@ -297,7 +298,7 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
297
298
  ref_key: "formRef",
298
299
  ref: N,
299
300
  model: unref(P),
300
- rules: De,
301
+ rules: te,
301
302
  "label-col": { span: 6 }
302
303
  }, {
303
304
  default: withCtx(() => [
@@ -305,7 +306,7 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
305
306
  label: "数据权限名称",
306
307
  name: "name"
307
308
  }, {
308
- default: withCtx(() => [createVNode(i, {
309
+ default: withCtx(() => [createVNode(n, {
309
310
  value: unref(P).name,
310
311
  "onUpdate:value": t[0] ||= (e) => unref(P).name = e,
311
312
  maxlength: 20
@@ -351,7 +352,7 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
351
352
  }, {
352
353
  default: withCtx(() => [...t[5] ||= [createTextVNode(" 编辑资源 ", -1)]]),
353
354
  _: 1
354
- }), createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(b), (e) => (openBlock(), createElementBlock(Fragment, { key: e }, [e.name.length > 20 ? (openBlock(), createBlock(c, {
355
+ }), createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(y), (e) => (openBlock(), createElementBlock(Fragment, { key: e }, [e.name.length > 20 ? (openBlock(), createBlock(c, {
355
356
  key: 0,
356
357
  title: e.name
357
358
  }, {
@@ -408,7 +409,7 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
408
409
  ref: B,
409
410
  "model-value": unref(V),
410
411
  multiple: "",
411
- onSubmit: Oe
412
+ onSubmit: ne
412
413
  }, null, 8, ["model-value"]),
413
414
  createVNode(ResourceSelector_default, {
414
415
  ref_key: "resourceModelRef",
@@ -419,12 +420,12 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
419
420
  createVNode(GroupSelector_default, {
420
421
  ref_key: "groupRef",
421
422
  ref: H,
422
- onSelect: ke
423
+ onSelect: re
423
424
  }, null, 512)
424
425
  ]),
425
426
  _: 1
426
427
  }, 8, ["open", "title"]);
427
428
  };
428
429
  }
429
- });
430
- export { createAndEditDataPermission_default as t };
430
+ }), createAndEditDataPermission_exports = /* @__PURE__ */ __exportAll({ default: () => createAndEditDataPermission_default }), createAndEditDataPermission_default = createAndEditDataPermission_vue_vue_type_script_setup_true_lang_default;
431
+ export { createAndEditDataPermission_exports as n, createAndEditDataPermission_default as t };
@@ -1 +1 @@
1
- .group-modal .ant-tabs-content-holder{padding:0 1rem .5rem;overflow:auto}.group-modal .ant-tabs-nav:before{display:none}.group-modal .ant-tabs-nav-wrap{background:#f5f5f5;height:38px}.group-modal .ant-tabs-tab{margin:0;padding:0 .75rem}.group-modal .ant-tabs-tab+.ant-tabs-tab{margin-left:0!important}.group-modal .ant-tabs-tab-active{background:#fff}.group-modal .ant-checkbox-group{display:block}.group-modal .ant-checkbox-wrapper{margin-bottom:.5rem;display:flex}.group-modal .ant-tabs-ink-bar{display:none}.dark .group-modal .ant-tabs-nav-wrap{--un-text-opacity:1;color:rgb(242 243 245/var(--un-text-opacity));background:#000}.dark .group-modal .ant-tabs-tab-active{background:#141414}.group-modal[data-v-2ec81ba8] .ant-modal-content{border-radius:0;padding:0}.group-modal[data-v-2ec81ba8] .ant-modal-header{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-width:1px;border-bottom-color:rgb(229 230 235/var(--un-border-bottom-opacity));border-style:solid;margin-bottom:0;padding:.75rem 1rem}.group-modal[data-v-2ec81ba8] .ant-modal-title{--un-text-opacity:1;color:rgb(29 33 41/var(--un-text-opacity));font-size:1rem;font-weight:500;line-height:1}.group-modal[data-v-2ec81ba8] .ant-modal-body{padding:1rem}.group-modal[data-v-2ec81ba8] .ant-modal-footer{--un-border-opacity:1;--un-border-top-opacity:var(--un-border-opacity);border-top-width:1px;border-top-color:rgb(229 230 235/var(--un-border-top-opacity));border-style:solid;padding:1rem}.group-modal[data-v-2ec81ba8] .ant-modal-footer .ant-btn{border-radius:.125rem}[data-v-2ec81ba8] .ant-tree-checkbox{margin-block-start:0;margin-inline-end:2px}[data-v-2ec81ba8] .ant-tree-checkbox+span .ant-tree-iconEle{margin-right:.25rem}.custom_tag[data-v-2ec81ba8]{border-width:0;border-radius:.125rem;padding:3px .5rem}.custom_tag[data-v-2ec81ba8] .ant-tag-close-icon{--un-text-opacity:.6;color:rgb(22 93 255/var(--un-text-opacity))}.custom_tag[data-v-2ec81ba8] .ant-tag-close-icon:hover{--un-text-opacity:1;color:rgb(22 93 255/var(--un-text-opacity))}.border_color[data-v-2ec81ba8]{--un-border-opacity:1;border-color:rgb(229 230 235/var(--un-border-opacity))}[data-theme=dark] .border_color[data-v-2ec81ba8]{--un-border-opacity:.12;border-color:rgb(253 253 253/var(--un-border-opacity))}.border_c[data-v-2ec81ba8]{--un-border-opacity:1;border-width:1px;border-color:rgb(204 204 204/var(--un-border-opacity));border-style:dashed;border-radius:10px}[data-v-2ec81ba8] .ant-dropdown-link{--un-scale-x:.7;--un-scale-y:.7;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z));border-radius:.125rem;padding:.25rem .375rem;font-size:.75rem;line-height:1rem}
1
+ .group-modal .ant-tabs-content-holder{padding:0 1rem .5rem;overflow:auto}.group-modal .ant-tabs-nav:before{display:none}.group-modal .ant-tabs-nav-wrap{background:#f5f5f5;height:38px}.group-modal .ant-tabs-tab{margin:0;padding:0 .75rem}.group-modal .ant-tabs-tab+.ant-tabs-tab{margin-left:0!important}.group-modal .ant-tabs-tab-active{background:#fff}.group-modal .ant-checkbox-group{display:block}.group-modal .ant-checkbox-wrapper{margin-bottom:.5rem;display:flex}.group-modal .ant-tabs-ink-bar{display:none}.dark .group-modal .ant-tabs-nav-wrap{--un-text-opacity:1;color:rgb(242 243 245/var(--un-text-opacity)) ;background:#000}.dark .group-modal .ant-tabs-tab-active{background:#141414}.group-modal[data-v-2ec81ba8] .ant-modal-content{border-radius:0;padding:0}.group-modal[data-v-2ec81ba8] .ant-modal-header{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-width:1px;border-bottom-color:rgb(229 230 235/var(--un-border-bottom-opacity));border-style:solid;margin-bottom:0;padding:.75rem 1rem}.group-modal[data-v-2ec81ba8] .ant-modal-title{--un-text-opacity:1;color:rgb(29 33 41/var(--un-text-opacity)) ;font-size:1rem;font-weight:500;line-height:1}.group-modal[data-v-2ec81ba8] .ant-modal-body{padding:1rem}.group-modal[data-v-2ec81ba8] .ant-modal-footer{--un-border-opacity:1;--un-border-top-opacity:var(--un-border-opacity);border-top-width:1px;border-top-color:rgb(229 230 235/var(--un-border-top-opacity));border-style:solid;padding:1rem}.group-modal[data-v-2ec81ba8] .ant-modal-footer .ant-btn{border-radius:.125rem}[data-v-2ec81ba8] .ant-tree-checkbox{margin-block-start:0;margin-inline-end:2px}[data-v-2ec81ba8] .ant-tree-checkbox+span .ant-tree-iconEle{margin-right:.25rem}.custom_tag[data-v-2ec81ba8]{border-width:0;border-radius:.125rem;padding:3px .5rem}.custom_tag[data-v-2ec81ba8] .ant-tag-close-icon{--un-text-opacity:.6;color:rgb(22 93 255/var(--un-text-opacity)) }.custom_tag[data-v-2ec81ba8] .ant-tag-close-icon:hover{--un-text-opacity:1;color:rgb(22 93 255/var(--un-text-opacity)) }.border_color[data-v-2ec81ba8]{--un-border-opacity:1;border-color:rgb(229 230 235/var(--un-border-opacity))}[data-theme=dark] .border_color[data-v-2ec81ba8]{--un-border-opacity:.12;border-color:rgb(253 253 253/var(--un-border-opacity))}.border_c[data-v-2ec81ba8]{--un-border-opacity:1;border-width:1px;border-color:rgb(204 204 204/var(--un-border-opacity));border-style:dashed;border-radius:10px}[data-v-2ec81ba8] .ant-dropdown-link{--un-scale-x:.7;--un-scale-y:.7;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));border-radius:.125rem;padding:.25rem .375rem;font-size:.75rem;line-height:1rem}
@@ -1,7 +1,7 @@
1
1
  import { Lt as useToggle, et as deleteRbacPubDataPermissionsDelete, h as _plugin_vue_export_helper_default, it as postRbacPubDataPermissionsPageQuery } from "./index.js";
2
2
  import "./enum-Cr7uWnB2.js";
3
- import { t as createAndEditDataPermission_default } from "./createAndEditDataPermission-CaOBJgoV.js";
4
- import "./useAppAndResource-CPL2VpOJ.js";
3
+ import { t as createAndEditDataPermission_default } from "./createAndEditDataPermission-8_KNLzJT.js";
4
+ import "./useAppAndResource-B7FmNfKG.js";
5
5
  import { a as dataPermissionTypeLabel, i as dataPermissionOptionsAll, t as ACTION } from "./enum-3mYayxff.js";
6
6
  import { PubinfoIcon } from "pubinfo";
7
7
  import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
@@ -20,8 +20,8 @@ import './data-permission.css';var _hoisted_1 = {
20
20
  }, _hoisted_2 = { key: 0 }, _hoisted_3 = ["onClick"], _hoisted_4 = { class: "ml-4px" }, _hoisted_5 = ["onClick"], _hoisted_6 = { class: "ml-4px" }, data_permission_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
21
21
  name: "DataPermission",
22
22
  __name: "index",
23
- setup(D) {
24
- let M = ref(), F = ref(), I = [
23
+ setup(n) {
24
+ let s = ref(), u = ref(), d = [
25
25
  {
26
26
  valueType: "a-input",
27
27
  title: "数据权限名称",
@@ -62,89 +62,89 @@ import './data-permission.css';var _hoisted_1 = {
62
62
  fixed: "right"
63
63
  }
64
64
  ];
65
- async function L(a) {
66
- let { current: E, pageSize: D, type: k, name: A } = a, j = await postRbacPubDataPermissionsPageQuery({
67
- pageSize: D,
68
- currentPage: E,
65
+ async function f(e) {
66
+ let { current: t, pageSize: n, type: i, name: a } = e, o = await postRbacPubDataPermissionsPageQuery({
67
+ pageSize: n,
68
+ currentPage: t,
69
69
  doSearchTotal: !0,
70
- type: k,
71
- name: A
70
+ type: i,
71
+ name: a
72
72
  });
73
73
  return {
74
- success: j.success,
75
- data: j.data?.records ?? [],
76
- total: j.data?.total ?? 0
74
+ success: o.success,
75
+ data: o.data?.records ?? [],
76
+ total: o.data?.total ?? 0
77
77
  };
78
78
  }
79
- function R() {
80
- M.value.reload();
79
+ function p() {
80
+ s.value.reload();
81
81
  }
82
- let [z, B] = useToggle(!1);
83
- function V(a, D) {
84
- if (!z.value) switch (a) {
82
+ let [m, h] = useToggle(!1);
83
+ function g(e, n) {
84
+ if (!m.value) switch (e) {
85
85
  case ACTION.ADD:
86
- F.value.open(a);
86
+ u.value.open(e);
87
87
  break;
88
88
  case ACTION.EDIT:
89
- F.value.open(a, D);
89
+ u.value.open(e, n);
90
90
  break;
91
91
  case ACTION.REMOVE:
92
92
  Modal.confirm({
93
93
  title: "删除",
94
94
  content: "确定要删除该权限吗?",
95
95
  async onOk() {
96
- B(!0), deleteRbacPubDataPermissionsDelete({ id: D?.id }).then((a) => {
97
- a.success && (message.success("删除成功"), R());
98
- }).finally(() => B(!1));
96
+ h(!0), deleteRbacPubDataPermissionsDelete({ id: n?.id }).then((e) => {
97
+ e.success && (message.success("删除成功"), p());
98
+ }).finally(() => h(!1));
99
99
  }
100
100
  });
101
101
  break;
102
102
  }
103
103
  }
104
- return (a, E) => {
105
- let D = PlusCircleOutlined, O = Button, j = PubinfoIcon, N = Space$1, P = resolveDirective("auth");
104
+ return (e, t) => {
105
+ let n = PlusCircleOutlined, r = Button, o = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
106
106
  return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
107
107
  ref_key: "tableRef",
108
- ref: M,
108
+ ref: s,
109
109
  "row-key": "id",
110
- request: L,
111
- columns: I,
110
+ request: f,
111
+ columns: d,
112
112
  "auto-height": "",
113
113
  scroll: { x: 1e3 }
114
114
  }, {
115
- toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(O, {
115
+ toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(r, {
116
116
  type: "primary",
117
- onClick: E[0] ||= (a) => V(unref(ACTION).ADD)
117
+ onClick: t[0] ||= (e) => g(unref(ACTION).ADD)
118
118
  }, {
119
- default: withCtx(() => [createVNode(D), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
119
+ default: withCtx(() => [createVNode(n), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
120
120
  _: 1
121
- })), [[P, "data_permission_create"]])]),
122
- bodyCell: withCtx(({ column: a, record: E }) => [a.dataIndex === "type" ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref(dataPermissionTypeLabel)[E.type]), 1)) : createCommentVNode("", !0), a.dataIndex === "action" ? (openBlock(), createBlock(N, { key: 1 }, {
121
+ })), [[l, "data_permission_create"]])]),
122
+ bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "type" ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref(dataPermissionTypeLabel)[t.type]), 1)) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 1 }, {
123
123
  default: withCtx(() => [withDirectives((openBlock(), createElementBlock("a", {
124
124
  class: "flex items-center hover:opacity-80",
125
- onClick: (a) => V(unref(ACTION).EDIT, E)
126
- }, [createVNode(j, {
125
+ onClick: (e) => g(unref(ACTION).EDIT, t)
126
+ }, [createVNode(o, {
127
127
  name: "edit",
128
128
  class: "text-base"
129
- }), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[P, "data_permission_edit"]]), withDirectives((openBlock(), createElementBlock("span", {
129
+ }), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[l, "data_permission_edit"]]), withDirectives((openBlock(), createElementBlock("span", {
130
130
  flex: "",
131
131
  "items-center": "",
132
132
  "text-red-500": "",
133
133
  "hover:cursor-pointer": "",
134
134
  "hover:text-red-500": "",
135
135
  "hover:opacity-80": "",
136
- onClick: (a) => V(unref(ACTION).REMOVE, E)
137
- }, [createVNode(j, {
136
+ onClick: (e) => g(unref(ACTION).REMOVE, t)
137
+ }, [createVNode(o, {
138
138
  name: "remove",
139
139
  class: "text-base"
140
- }), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[P, "data_permission_delete"]])]),
140
+ }), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[l, "data_permission_delete"]])]),
141
141
  _: 2
142
142
  }, 1024)) : createCommentVNode("", !0)]),
143
143
  _: 1
144
144
  }, 512), createVNode(createAndEditDataPermission_default, {
145
145
  ref_key: "drawerRef",
146
- ref: F,
147
- onSubmit: R
146
+ ref: u,
147
+ onSubmit: p
148
148
  }, null, 512)]);
149
149
  };
150
150
  }
@@ -1,4 +1,4 @@
1
- import { t as __commonJSMin } from "./chunk-Cpsc_9al.js";
1
+ import { t as __commonJSMin } from "./chunk-DiMWNkAf.js";
2
2
  var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((e, t) => {
3
3
  (function(n, r) {
4
4
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
@@ -1,6 +1,6 @@
1
1
  import { n as deleteDictTypeDeleteById, o as postDictTypePage } from "./index.js";
2
2
  import { t as ACTION } from "./enum-D2UEJsrC.js";
3
- import { t as drawerDictionary_default } from "./drawerDictionary-dMHs-6Cw.js";
3
+ import { t as drawerDictionary_default } from "./drawerDictionary-DYJTAZr6.js";
4
4
  import { PubinfoIcon, useAuth } from "pubinfo";
5
5
  import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
6
6
  import { PlusCircleOutlined } from "@ant-design/icons-vue";
@@ -19,8 +19,8 @@ var _hoisted_1 = {
19
19
  }, _hoisted_3 = { class: "ml-4px" }, _hoisted_4 = ["onClick"], _hoisted_5 = { class: "ml-4px" }, _hoisted_6 = ["onClick"], _hoisted_7 = { class: "ml-4px" }, _hoisted_8 = ["onClick"], _hoisted_9 = { class: "ml-4px" }, dictionary_default = /* @__PURE__ */ defineComponent({
20
20
  name: "Dictionary",
21
21
  __name: "index",
22
- setup(M) {
23
- let { auth: I } = useAuth(), L = ref(), R = ref(), z = [
22
+ setup(o) {
23
+ let { auth: u } = useAuth(), d = ref(), f = ref(), p = [
24
24
  {
25
25
  valueType: "a-input",
26
26
  width: 50,
@@ -67,7 +67,7 @@ var _hoisted_1 = {
67
67
  width: 240,
68
68
  fixed: "right",
69
69
  hideInTable() {
70
- return !I([
70
+ return !u([
71
71
  "dictionary_data",
72
72
  "dictionary_edit",
73
73
  "dictionary_remove"
@@ -75,103 +75,103 @@ var _hoisted_1 = {
75
75
  }
76
76
  }
77
77
  ];
78
- async function B(n) {
79
- let { current: O, pageSize: k, searchName: A } = n, j = await postDictTypePage({
80
- currentPage: O,
81
- pageSize: k,
82
- name: A,
78
+ async function m(e) {
79
+ let { current: n, pageSize: r, searchName: i } = e, a = await postDictTypePage({
80
+ currentPage: n,
81
+ pageSize: r,
82
+ name: i,
83
83
  doSearchTotal: !0
84
84
  });
85
85
  return {
86
- success: j.success,
87
- data: j.data?.records ?? [],
88
- total: j.data?.total ?? 0
86
+ success: a.success,
87
+ data: a.data?.records ?? [],
88
+ total: a.data?.total ?? 0
89
89
  };
90
90
  }
91
- let V = useRouter();
92
- function H(D, k) {
93
- switch (D) {
91
+ let h = useRouter();
92
+ function g(t, r) {
93
+ switch (t) {
94
94
  case ACTION.ADD:
95
- R.value.open(D);
95
+ f.value.open(t);
96
96
  break;
97
97
  case ACTION.EDIT:
98
- R.value.open(D, k);
98
+ f.value.open(t, r);
99
99
  break;
100
100
  case ACTION.REMOVE:
101
101
  Modal.confirm({
102
102
  title: "删除",
103
103
  content: "确定要删除该类型吗?",
104
104
  onOk() {
105
- deleteDictTypeDeleteById({ id: k?.id }).then((n) => {
106
- n.success && (message.success("删除成功"), U());
105
+ deleteDictTypeDeleteById({ id: r?.id }).then((e) => {
106
+ e.success && (message.success("删除成功"), _());
107
107
  });
108
108
  }
109
109
  });
110
110
  break;
111
111
  case ACTION.ADDNEXT:
112
- V.push({
112
+ h.push({
113
113
  name: "DictionaryItem",
114
- params: { id: `${k?.id}` },
115
- query: { code: `${k?.code}` }
114
+ params: { id: `${r?.id}` },
115
+ query: { code: `${r?.code}` }
116
116
  });
117
117
  break;
118
118
  }
119
119
  }
120
- function U() {
121
- L.value.reload();
120
+ function _() {
121
+ d.value.reload();
122
122
  }
123
- return (n, D) => {
124
- let j = PlusCircleOutlined, M = Button, N = PubinfoIcon, P = Space$1, F = resolveDirective("auth");
123
+ return (e, t) => {
124
+ let a = PlusCircleOutlined, o = Button, s = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
125
125
  return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
126
126
  ref_key: "tableRef",
127
- ref: L,
127
+ ref: d,
128
128
  "row-key": "id",
129
- request: B,
130
- columns: z,
129
+ request: m,
130
+ columns: p,
131
131
  "auto-height": "",
132
132
  scroll: { x: 1040 }
133
133
  }, {
134
- toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(M, {
134
+ toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(o, {
135
135
  type: "primary",
136
- onClick: D[0] ||= (n) => H(unref(ACTION).ADD)
136
+ onClick: t[0] ||= (e) => g(unref(ACTION).ADD)
137
137
  }, {
138
- default: withCtx(() => [createVNode(j), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
138
+ default: withCtx(() => [createVNode(a), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
139
139
  _: 1
140
- })), [[F, "dictionary_add"]])]),
141
- bodyCell: withCtx(({ column: n, record: D }) => [n.dataIndex === "code" ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(N, {
140
+ })), [[l, "dictionary_add"]])]),
141
+ bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "code" ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(s, {
142
142
  name: "icard",
143
143
  class: "text-20px"
144
- }), createElementVNode("span", _hoisted_3, toDisplayString(D.code), 1)])) : createCommentVNode("", !0), n.dataIndex === "action" ? (openBlock(), createBlock(P, { key: 1 }, {
144
+ }), createElementVNode("span", _hoisted_3, toDisplayString(t.code), 1)])) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 1 }, {
145
145
  default: withCtx(() => [
146
146
  withDirectives((openBlock(), createElementBlock("a", {
147
147
  class: "flex items-center",
148
- onClick: (n) => H(unref(ACTION).ADDNEXT, D)
149
- }, [createVNode(N, {
148
+ onClick: (e) => g(unref(ACTION).ADDNEXT, t)
149
+ }, [createVNode(s, {
150
150
  name: "zddata",
151
151
  class: "text-20px"
152
- }), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).ADDNEXT), 1)], 8, _hoisted_4)), [[F, "dictionary_data"]]),
152
+ }), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).ADDNEXT), 1)], 8, _hoisted_4)), [[l, "dictionary_data"]]),
153
153
  withDirectives((openBlock(), createElementBlock("a", {
154
154
  class: "flex items-center",
155
- onClick: (n) => H(unref(ACTION).EDIT, D)
156
- }, [createVNode(N, {
155
+ onClick: (e) => g(unref(ACTION).EDIT, t)
156
+ }, [createVNode(s, {
157
157
  name: "edit",
158
158
  class: "text-base"
159
- }), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_6)), [[F, "dictionary_edit"]]),
159
+ }), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_6)), [[l, "dictionary_edit"]]),
160
160
  withDirectives((openBlock(), createElementBlock("span", {
161
161
  class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
162
- onClick: (n) => H(unref(ACTION).REMOVE, D)
163
- }, [createVNode(N, {
162
+ onClick: (e) => g(unref(ACTION).REMOVE, t)
163
+ }, [createVNode(s, {
164
164
  name: "remove",
165
165
  class: "text-base"
166
- }), createElementVNode("span", _hoisted_9, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_8)), [[F, "dictionary_remove"]])
166
+ }), createElementVNode("span", _hoisted_9, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_8)), [[l, "dictionary_remove"]])
167
167
  ]),
168
168
  _: 2
169
169
  }, 1024)) : createCommentVNode("", !0)]),
170
170
  _: 1
171
171
  }, 512), createVNode(drawerDictionary_default, {
172
172
  ref_key: "drawerDictionaryRef",
173
- ref: R,
174
- onSubmit: D[1] ||= (n) => U()
173
+ ref: f,
174
+ onSubmit: t[1] ||= (e) => _()
175
175
  }, null, 512)]);
176
176
  };
177
177
  }