@pubinfo-pr/module-rbac 0.204.4 → 0.220.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 (159) 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-Ds-XJRR1.js → breadcrumb_setting-Dx2Li6xt.js} +19 -19
  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/{layout_setting-BUAgQ1Bk.js → layout_setting-79srmFgJ.js} +11 -11
  52. package/dist/layout_setting.css +1 -1
  53. package/dist/{log-vjU7aBPR.js → log-BYris9iT.js} +6 -6
  54. package/dist/{loginHistoryDetail-C7GT2yME.js → loginHistoryDetail-CZnfmbbM.js} +24 -23
  55. package/dist/{login_history-D08W00Qu.js → login_history-BiwaLpxA.js} +33 -33
  56. package/dist/login_history.css +1 -1
  57. package/dist/{menu_setting-5Jet091Q.js → menu_setting-ChueWHs4.js} +42 -42
  58. package/dist/not-data-Bml86wdH.js +3 -0
  59. package/dist/{operateHistoryDetail-BaNJRfwy.js → operateHistoryDetail-HId-EZzy.js} +27 -26
  60. package/dist/{operate_history-kJwIuPg2.js → operate_history-sPd9IHMV.js} +33 -33
  61. package/dist/operate_history.css +1 -1
  62. package/dist/{organization-Cmj3DUXl.js → organization-Dv3FbKke.js} +1438 -1444
  63. package/dist/organization.css +1 -1
  64. package/dist/{other_setting-DQ70WnZK.js → other_setting-BEV_UK0g.js} +86 -86
  65. package/dist/other_setting.css +1 -1
  66. package/dist/{page_animation_setting-Lp6cMuFM.js → page_animation_setting-Cp5OnFpd.js} +33 -33
  67. package/dist/page_animation_setting.css +1 -1
  68. package/dist/{page_w_setting-CD_HtSUv.js → page_w_setting-Q--ct16C.js} +11 -11
  69. package/dist/page_w_setting.css +1 -1
  70. package/dist/{position-CLpbgKGj.js → position-CCZ2MSMP.js} +41 -41
  71. package/dist/{region-Dd9pt_Si.js → region-D3mjqB8H.js} +62 -62
  72. package/dist/{resource-C7dXB0EE.js → resource-DaQ7CvM_.js} +69 -69
  73. package/dist/{role-JGtvRObt.js → role-4UgEw3nH.js} +49 -49
  74. package/dist/{role_group-CKOb_m63.js → role_group-hkRlCnyl.js} +41 -41
  75. package/dist/{safe_setting-G_ZP-jWQ.js → safe_setting-4fv3qNRZ.js} +85 -85
  76. package/dist/{setItem-yKhjmUh0.js → setItem-Vkcwkj-O.js} +33 -32
  77. package/dist/setItem.css +1 -1
  78. package/dist/{tabbar_setting-B3kMhRNm.js → tabbar_setting-kbuTvrLB.js} +36 -36
  79. package/dist/{tenant-BBiCJkU_.js → tenant-lWfGw2u1.js} +48 -48
  80. package/dist/{theme_setting-vhNDLlkc.js → theme_setting-CEb7UYQO.js} +47 -47
  81. package/dist/theme_setting.css +1 -1
  82. package/dist/{toolbar_setting-DNBdxeGP.js → toolbar_setting-BG-k2UFc.js} +32 -32
  83. package/dist/useAppAndResource-B7FmNfKG.js +52 -0
  84. package/dist/{user-DvCyUhZW.js → user-BkUpcQC8.js} +96 -96
  85. package/dist/{vanilla-picker-DcG96G63.js → vanilla-picker-Byb6q187.js} +239 -239
  86. package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +5 -1
  87. package/dist/views/components/setItem.vue.d.ts +5 -1
  88. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -1
  89. package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +5 -1
  90. package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +5 -1
  91. package/dist/views/group/components/drawerGroup.vue.d.ts +5 -1
  92. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +8 -1
  93. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +8 -1
  94. package/dist/views/organization/components/drawerOrganization.vue.d.ts +5 -1
  95. package/dist/views/organization/components/drawerRole.vue.d.ts +5 -1
  96. package/dist/views/other_setting/interface.d.ts +1 -2
  97. package/dist/views/position/components/drawerPosition.vue.d.ts +5 -1
  98. package/dist/views/region/components/drawerRegion.vue.d.ts +5 -1
  99. package/dist/views/resource/components/ImportExport.vue.d.ts +5 -1
  100. package/dist/views/resource/components/ResourceEdit.vue.d.ts +5 -1
  101. package/dist/views/role/components/drawerRole.vue.d.ts +5 -1
  102. package/dist/views/role_group/components/drawerRole.vue.d.ts +5 -1
  103. package/dist/views/tenant/components/TenantEdit.vue.d.ts +5 -1
  104. package/dist/views/user/components/UserAuthorization.vue.d.ts +5 -1
  105. package/dist/views/user/components/UserEdit.vue.d.ts +5 -1
  106. package/dist/{watermark_setting-CXp4Og0Y.js → watermark_setting-Cl2EtPAa.js} +98 -98
  107. package/dist/watermark_setting.css +1 -1
  108. package/package.json +13 -13
  109. package/src/views/other_setting/index.vue +2 -2
  110. package/src/views/other_setting/interface.ts +1 -1
  111. package/dist/ComponentSelect-D0OCk6H1.js +0 -3572
  112. package/dist/ComponentSelect-WO-3S5rH.js +0 -2
  113. package/dist/DynamicRoutesForm-DjZ3eVLW.js +0 -4
  114. package/dist/HCheckList-B5Qk_HBI.js +0 -2
  115. package/dist/HCheckList-DLBewmPw.js +0 -36
  116. package/dist/HoverCard-69ZIOivd.js +0 -2
  117. package/dist/HoverCard-BDFcxxvk.js +0 -43
  118. package/dist/IconSelect-C_Gj5G4I.js +0 -3
  119. package/dist/ImportExport-CL5uPlby.js +0 -342
  120. package/dist/ImportExport-CPy2rvv7.js +0 -4
  121. package/dist/LayoutForm-QFjwakyQ.js +0 -4
  122. package/dist/MetaForm-Bb-um1Zo.js +0 -4
  123. package/dist/OrgAndPosition-DoiGY5xb.js +0 -2
  124. package/dist/ResourceEdit-BTaNdwC_.js +0 -10
  125. package/dist/ResourceRelation-BIOzTOKA.js +0 -2
  126. package/dist/RoleRelation-CyTcqRfZ.js +0 -2
  127. package/dist/TenantEdit-BlMmL6q5.js +0 -2
  128. package/dist/UserAuthorization-qGr1Sdat.js +0 -3
  129. package/dist/UserEdit-CwfyqNWf.js +0 -3
  130. package/dist/animation_item-GzGItm3s.js +0 -2
  131. package/dist/browserType-BXTT4j6i.js +0 -2
  132. package/dist/chunk-Cpsc_9al.js +0 -18
  133. package/dist/cloneDeep-DDAtsK42.js +0 -7
  134. package/dist/createAndEditDataPermission-CChlLDUm.js +0 -5
  135. package/dist/drawerBlackWhiteList-BqIDyn2Q.js +0 -2
  136. package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +0 -119
  137. package/dist/drawerDictionary-D911w7pC.js +0 -2
  138. package/dist/drawerDictionary-dMHs-6Cw.js +0 -125
  139. package/dist/drawerDictionaryItem-CbTa_qL-.js +0 -137
  140. package/dist/drawerDictionaryItem-DLUI5Yuc.js +0 -2
  141. package/dist/drawerGroup-CEEDMBg9.js +0 -3
  142. package/dist/drawerOrganization-CqEMD3gE.js +0 -246
  143. package/dist/drawerOrganization-mks5NMd9.js +0 -2
  144. package/dist/drawerPosition-Bd0s7qze.js +0 -165
  145. package/dist/drawerPosition-DwlTrlGA.js +0 -2
  146. package/dist/drawerRegion-DUbQAZuV.js +0 -182
  147. package/dist/drawerRegion-DwVzsZfT.js +0 -2
  148. package/dist/drawerRole-BNrbcSmr.js +0 -3
  149. package/dist/drawerRole-BxUIekjh.js +0 -3
  150. package/dist/drawerRole-CyA2oFht.js +0 -4
  151. package/dist/drawerRole-D5X7oHB_.js +0 -153
  152. package/dist/isEmpty-BvRqbmpu.js +0 -13
  153. package/dist/loginHistoryDetail-CkH5UUGU.js +0 -3
  154. package/dist/not-data-Cx--tk_h.js +0 -2
  155. package/dist/not-data-tyTawN37.js +0 -2
  156. package/dist/operateHistoryDetail-CeVPJzD6.js +0 -3
  157. package/dist/routeSystem-DXMoWhFo.js +0 -2
  158. package/dist/setItem-Qa7UapHO.js +0 -4
  159. package/dist/useAppAndResource-CPL2VpOJ.js +0 -52
@@ -1,17 +1,17 @@
1
- import "./MetaForm-CVSgktB_.js";
2
- import { t as cloneDeep_default } from "./cloneDeep-DDAtsK42.js";
3
- import "./ComponentSelect-D0OCk6H1.js";
1
+ import "./MetaForm-CcDwS8vh.js";
2
+ import { t as cloneDeep } from "./cloneDeep-CSOSavu3.js";
3
+ import "./ComponentSelect-A7uGTuHW.js";
4
4
  import { I as getRbacResourceResourceDelete, L as getRbacResourceResourceTree } from "./index.js";
5
5
  import "./enum-3mYayxff.js";
6
6
  import { i as resourceOptions, n as RESOURCE_COLOR, r as RESOURCE_TYPE, t as ACTION } from "./enum-3E_sUqRF.js";
7
- import "./DynamicRoutesForm-DP_sq_Uu.js";
8
- import "./HoverCard-BDFcxxvk.js";
9
- import "./IconSelect-CiLpc63Z.js";
10
- import "./dayjs.min-sGDSMYRj.js";
11
- import { t as ImportExport_default } from "./ImportExport-CL5uPlby.js";
12
- import "./LayoutForm-Cp4bBrYl.js";
13
- import { t as ResourceEdit_default } from "./ResourceEdit-w8qh1MFO.js";
14
- import { t as RoleRelation_default } from "./RoleRelation-DzyVn5dk.js";
7
+ import "./DynamicRoutesForm-DSzy_bh5.js";
8
+ import "./HoverCard-CmJCoa2b.js";
9
+ import "./IconSelect-DouEg3xY.js";
10
+ import "./dayjs.min-Cb7gQFd4.js";
11
+ import { t as ImportExport_default } from "./ImportExport-DisdLoY8.js";
12
+ import "./LayoutForm-Bdfs5WeK.js";
13
+ import { t as ResourceEdit_default } from "./ResourceEdit-0BYZRye_.js";
14
+ import { t as RoleRelation_default } from "./RoleRelation-BQQFaum0.js";
15
15
  import { PubinfoIcon, useAuth } from "pubinfo-pr";
16
16
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
17
17
  import { PlusCircleOutlined, SwapOutlined } from "@ant-design/icons-vue";
@@ -26,8 +26,8 @@ var _hoisted_1 = {
26
26
  }, _hoisted_2 = ["onClick"], _hoisted_3 = ["onClick"], _hoisted_4 = ["onClick"], _hoisted_5 = ["onClick"], resource_default = /* @__PURE__ */ defineComponent({
27
27
  name: "Resource",
28
28
  __name: "index",
29
- setup(B) {
30
- let { auth: V } = useAuth(), H = [
29
+ setup(s) {
30
+ let { auth: c } = useAuth(), l = [
31
31
  {
32
32
  valueType: "a-input",
33
33
  width: 200,
@@ -48,11 +48,11 @@ var _hoisted_1 = {
48
48
  allowClear: !0,
49
49
  options: resourceOptions
50
50
  },
51
- customRender({ text: c }) {
51
+ customRender({ text: e }) {
52
52
  return createVNode("div", { class: "flex items-center space-x-1" }, [createVNode(Tag, {
53
- color: RESOURCE_COLOR[c],
53
+ color: RESOURCE_COLOR[e],
54
54
  bordered: !1
55
- }, { default: () => [resourceOptions.find((P) => P.value === c)?.label] })]);
55
+ }, { default: () => [resourceOptions.find((t) => t.value === e)?.label] })]);
56
56
  }
57
57
  },
58
58
  {
@@ -70,8 +70,8 @@ var _hoisted_1 = {
70
70
  dataIndex: "meta",
71
71
  ellipsis: !0,
72
72
  hideInSearch: !0,
73
- customRender({ text: c }) {
74
- return c?.url || "-";
73
+ customRender({ text: e }) {
74
+ return e?.url || "-";
75
75
  }
76
76
  },
77
77
  {
@@ -97,8 +97,8 @@ var _hoisted_1 = {
97
97
  label: "否"
98
98
  }]
99
99
  },
100
- customRender({ text: c }) {
101
- return c ? createVNode(Badge, {
100
+ customRender({ text: e }) {
101
+ return e ? createVNode(Badge, {
102
102
  status: "success",
103
103
  text: "是"
104
104
  }, null) : createVNode(Badge, {
@@ -121,7 +121,7 @@ var _hoisted_1 = {
121
121
  width: 300,
122
122
  hideInSearch: !0,
123
123
  hideInTable() {
124
- return !V([
124
+ return !c([
125
125
  "resource_role_relation",
126
126
  "resource_add_child",
127
127
  "resource_edit",
@@ -130,45 +130,45 @@ var _hoisted_1 = {
130
130
  }
131
131
  }
132
132
  ];
133
- function U(c, P) {
134
- return c?.map((c) => (c.children = c.children && U(c.children, P), P(c))) ?? [];
133
+ function u(e, t) {
134
+ return e?.map((e) => (e.children = e.children && u(e.children, t), t(e))) ?? [];
135
135
  }
136
- let W = ref(), G = computed(() => W.value?.dataSource ?? []);
137
- function K() {
138
- W.value.reload();
136
+ let d = ref(), f = computed(() => d.value?.dataSource ?? []);
137
+ function p() {
138
+ d.value.reload();
139
139
  }
140
- async function q(P) {
141
- let { pageSize: I, current: L, ...R } = cloneDeep_default(P);
140
+ async function m(t) {
141
+ let { pageSize: r, current: i, ...a } = cloneDeep(t);
142
142
  return {
143
143
  success: !0,
144
- data: await getRbacResourceResourceTree({ ...R }, { transform(c) {
145
- return U(c?.data ?? [], (c) => c.leaf ? {
146
- ...c,
144
+ data: await getRbacResourceResourceTree({ ...a }, { transform(e) {
145
+ return u(e?.data ?? [], (e) => e.leaf ? {
146
+ ...e,
147
147
  children: void 0
148
- } : c);
148
+ } : e);
149
149
  } })
150
150
  };
151
151
  }
152
- let J = ref(), Y = ref(), X = ref();
153
- function Z(c, F) {
154
- switch (c) {
152
+ let h = ref(), g = ref(), _ = ref();
153
+ function v(e, n) {
154
+ switch (e) {
155
155
  case ACTION.ROLE_RELATION:
156
- Y.value.open(F);
156
+ g.value.open(n);
157
157
  break;
158
158
  case ACTION.ADD:
159
- J.value.open(c);
159
+ h.value.open(e);
160
160
  break;
161
161
  case ACTION.ADD_CHILD:
162
- J.value.open(c, F);
162
+ h.value.open(e, n);
163
163
  break;
164
164
  case ACTION.EDIT:
165
- J.value.open(c, F);
165
+ h.value.open(e, n);
166
166
  break;
167
167
  case ACTION.IMPORT_EXPORT:
168
- X.value.open();
168
+ _.value.open();
169
169
  break;
170
170
  case ACTION.REMOVE:
171
- if (!F?.leaf) {
171
+ if (!n?.leaf) {
172
172
  message.info("非叶子节点不能删除");
173
173
  return;
174
174
  }
@@ -176,73 +176,73 @@ var _hoisted_1 = {
176
176
  title: "删除",
177
177
  content: "确定要删除该资源吗?",
178
178
  async onOk() {
179
- (await getRbacResourceResourceDelete({ id: F?.id })).success && (message.success("删除成功"), K());
179
+ (await getRbacResourceResourceDelete({ id: n?.id })).success && (message.success("删除成功"), p());
180
180
  }
181
181
  });
182
182
  break;
183
183
  }
184
184
  }
185
- return (c, P) => {
186
- let F = PlusCircleOutlined, I = Button, L = Space$1, z = resolveDirective("auth");
185
+ return (e, t) => {
186
+ let n = PlusCircleOutlined, r = Button, i = Space$1, o = resolveDirective("auth");
187
187
  return openBlock(), createElementBlock("div", _hoisted_1, [
188
188
  createVNode(unref(ProTable), {
189
189
  ref_key: "tableRef",
190
- ref: W,
190
+ ref: d,
191
191
  "row-key": "id",
192
- columns: H,
193
- request: q,
192
+ columns: l,
193
+ request: m,
194
194
  pagination: !1,
195
195
  scroll: { x: 1280 },
196
196
  "auto-height": ""
197
197
  }, {
198
- toolbar: withCtx(() => [createVNode(L, null, {
199
- default: withCtx(() => [withDirectives((openBlock(), createBlock(I, {
198
+ toolbar: withCtx(() => [createVNode(i, null, {
199
+ default: withCtx(() => [withDirectives((openBlock(), createBlock(r, {
200
200
  type: "primary",
201
- onClick: P[0] ||= (c) => Z(unref(ACTION).ADD)
201
+ onClick: t[0] ||= (e) => v(unref(ACTION).ADD)
202
202
  }, {
203
- default: withCtx(() => [createVNode(F), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
203
+ default: withCtx(() => [createVNode(n), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
204
204
  _: 1
205
- })), [[z, "resource_app_add"]]), createVNode(I, { onClick: P[1] ||= (c) => Z(unref(ACTION).IMPORT_EXPORT) }, {
205
+ })), [[o, "resource_app_add"]]), createVNode(r, { onClick: t[1] ||= (e) => v(unref(ACTION).IMPORT_EXPORT) }, {
206
206
  default: withCtx(() => [createVNode(unref(SwapOutlined)), createTextVNode(" " + toDisplayString(unref(ACTION).IMPORT_EXPORT), 1)]),
207
207
  _: 1
208
208
  })]),
209
209
  _: 1
210
210
  })]),
211
- bodyCell: withCtx(({ column: c, record: P }) => [c.dataIndex === "action" ? (openBlock(), createBlock(L, { key: 0 }, {
211
+ bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "action" ? (openBlock(), createBlock(i, { key: 0 }, {
212
212
  default: withCtx(() => [
213
213
  withDirectives((openBlock(), createElementBlock("a", {
214
214
  class: "flex items-center",
215
- onClick: (c) => Z(unref(ACTION).ROLE_RELATION, P)
215
+ onClick: (e) => v(unref(ACTION).ROLE_RELATION, t)
216
216
  }, [createVNode(unref(PubinfoIcon), {
217
217
  name: "view",
218
218
  class: "mr-1 text-base"
219
- }), createElementVNode("span", null, toDisplayString(unref(ACTION).ROLE_RELATION), 1)], 8, _hoisted_2)), [[z, "resource_role_relation"]]),
219
+ }), createElementVNode("span", null, toDisplayString(unref(ACTION).ROLE_RELATION), 1)], 8, _hoisted_2)), [[o, "resource_role_relation"]]),
220
220
  [
221
221
  unref(RESOURCE_TYPE).BUTTON,
222
222
  unref(RESOURCE_TYPE).IFRAME,
223
223
  unref(RESOURCE_TYPE).LINK
224
- ].includes(P.type) ? createCommentVNode("", !0) : withDirectives((openBlock(), createElementBlock("a", {
224
+ ].includes(t.type) ? createCommentVNode("", !0) : withDirectives((openBlock(), createElementBlock("a", {
225
225
  key: 0,
226
226
  class: "flex items-center",
227
- onClick: (c) => Z(unref(ACTION).ADD_CHILD, P)
227
+ onClick: (e) => v(unref(ACTION).ADD_CHILD, t)
228
228
  }, [createVNode(unref(PubinfoIcon), {
229
229
  name: "add-child",
230
230
  class: "mr-1 text-base"
231
- }), createElementVNode("span", null, toDisplayString(unref(ACTION).ADD_CHILD), 1)], 8, _hoisted_3)), [[z, "resource_add_child"]]),
231
+ }), createElementVNode("span", null, toDisplayString(unref(ACTION).ADD_CHILD), 1)], 8, _hoisted_3)), [[o, "resource_add_child"]]),
232
232
  withDirectives((openBlock(), createElementBlock("a", {
233
233
  class: "flex items-center",
234
- onClick: (c) => Z(unref(ACTION).EDIT, P)
234
+ onClick: (e) => v(unref(ACTION).EDIT, t)
235
235
  }, [createVNode(unref(PubinfoIcon), {
236
236
  name: "edit",
237
237
  class: "mr-1 text-base"
238
- }), createElementVNode("span", null, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[z, "resource_edit"]]),
238
+ }), createElementVNode("span", null, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[o, "resource_edit"]]),
239
239
  withDirectives((openBlock(), createElementBlock("span", {
240
240
  class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
241
- onClick: (c) => Z(unref(ACTION).REMOVE, P)
241
+ onClick: (e) => v(unref(ACTION).REMOVE, t)
242
242
  }, [createVNode(unref(PubinfoIcon), {
243
243
  name: "remove",
244
244
  class: "mr-1 text-base"
245
- }), createElementVNode("span", null, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[z, "resource_remove"]])
245
+ }), createElementVNode("span", null, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[o, "resource_remove"]])
246
246
  ]),
247
247
  _: 2
248
248
  }, 1024)) : createCommentVNode("", !0)]),
@@ -250,19 +250,19 @@ var _hoisted_1 = {
250
250
  }, 512),
251
251
  createVNode(ResourceEdit_default, {
252
252
  ref_key: "editRef",
253
- ref: J,
254
- "data-source": unref(G),
255
- onSubmit: K
253
+ ref: h,
254
+ "data-source": unref(f),
255
+ onSubmit: p
256
256
  }, null, 8, ["data-source"]),
257
257
  createVNode(RoleRelation_default, {
258
258
  ref_key: "relationRef",
259
- ref: Y
259
+ ref: g
260
260
  }, null, 512),
261
261
  createVNode(ImportExport_default, {
262
262
  ref_key: "importExportRef",
263
- ref: X,
264
- "data-source": unref(G),
265
- onSubmit: K
263
+ ref: _,
264
+ "data-source": unref(f),
265
+ onSubmit: p
266
266
  }, null, 8, ["data-source"])
267
267
  ]);
268
268
  };
@@ -1,7 +1,7 @@
1
1
  import { _t as postRbacRoleRolePage, mt as getRbacRoleRoleDelete } from "./index.js";
2
- import "./useAppAndResource-CPL2VpOJ.js";
3
- import { t as ResourceRelation_default } from "./ResourceRelation-D_j898zp.js";
4
- import { n as ACTION, r as kjOptions, t as drawerRole_default } from "./drawerRole-Dv61PBZR.js";
2
+ import "./useAppAndResource-B7FmNfKG.js";
3
+ import { t as ResourceRelation_default } from "./ResourceRelation-roz0a8Td.js";
4
+ import { i as kjOptions, r as ACTION, t as drawerRole_default } from "./drawerRole-DK6DrinO.js";
5
5
  import { PubinfoIcon, useAuth } from "pubinfo-pr";
6
6
  import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
7
7
  import { PlusCircleOutlined } from "@ant-design/icons-vue";
@@ -16,24 +16,24 @@ var _hoisted_1 = {
16
16
  }, _hoisted_2 = ["onClick"], _hoisted_3 = ["onClick"], _hoisted_4 = { class: "ml-4px" }, _hoisted_5 = ["onClick"], _hoisted_6 = { class: "ml-4px" }, role_default = /* @__PURE__ */ defineComponent({
17
17
  name: "Role",
18
18
  __name: "index",
19
- setup(M) {
20
- let { auth: F } = useAuth(), I = ref(), L = ref();
21
- function R() {
22
- I.value.reload();
19
+ setup(s) {
20
+ let { auth: u } = useAuth(), d = ref(), f = ref();
21
+ function p() {
22
+ d.value.reload();
23
23
  }
24
- async function z(E) {
25
- let { current: D, pageSize: O, ...k } = E, A = await postRbacRoleRolePage({
26
- currentPage: D,
27
- pageSize: O,
28
- ...k
24
+ async function m(t) {
25
+ let { current: n, pageSize: r, ...i } = t, a = await postRbacRoleRolePage({
26
+ currentPage: n,
27
+ pageSize: r,
28
+ ...i
29
29
  });
30
30
  return {
31
- success: A.success,
32
- data: A.data?.records ?? [],
33
- total: A.data?.total ?? 0
31
+ success: a.success,
32
+ data: a.data?.records ?? [],
33
+ total: a.data?.total ?? 0
34
34
  };
35
35
  }
36
- let B = [
36
+ let h = [
37
37
  {
38
38
  valueType: "a-input",
39
39
  bind: "value",
@@ -51,7 +51,7 @@ var _hoisted_1 = {
51
51
  minWidth: 80,
52
52
  title: "可见范围",
53
53
  dataIndex: "viewScope",
54
- customRender: ({ text: i }) => kjOptions.find((E) => E.value === i)?.label
54
+ customRender: ({ text: e }) => kjOptions.find((t) => t.value === e)?.label
55
55
  },
56
56
  {
57
57
  hideInSearch: !0,
@@ -82,7 +82,7 @@ var _hoisted_1 = {
82
82
  minWidth: 80,
83
83
  title: "角色状态",
84
84
  dataIndex: "enable",
85
- customRender: ({ text: i }) => i ? createVNode(Badge, {
85
+ customRender: ({ text: e }) => e ? createVNode(Badge, {
86
86
  status: "success",
87
87
  text: "正常"
88
88
  }, null) : createVNode(Badge, {
@@ -97,80 +97,80 @@ var _hoisted_1 = {
97
97
  dataIndex: "action",
98
98
  fixed: "right",
99
99
  hideInTable() {
100
- return !F([
100
+ return !u([
101
101
  "role_resource_relation",
102
102
  "role_edit",
103
103
  "role_remove"
104
104
  ]);
105
105
  }
106
106
  }
107
- ], V = ref();
108
- function H(i, D) {
109
- switch (i) {
107
+ ], g = ref();
108
+ function _(e, n) {
109
+ switch (e) {
110
110
  case ACTION.RESOURCE_RELATION:
111
- V.value.open(D);
111
+ g.value.open(n);
112
112
  break;
113
113
  case ACTION.EDIT:
114
- L.value.open(i, D);
114
+ f.value.open(e, n);
115
115
  break;
116
116
  case ACTION.ADD:
117
- L.value.open(i);
117
+ f.value.open(e);
118
118
  break;
119
119
  case ACTION.REMOVE:
120
120
  Modal.confirm({
121
121
  title: "删除",
122
122
  content: "确定要删除该角色吗?",
123
123
  onOk() {
124
- getRbacRoleRoleDelete({ id: D?.id }).then((i) => {
125
- i.success && (message.success("删除成功"), R());
124
+ getRbacRoleRoleDelete({ id: n?.id }).then((e) => {
125
+ e.success && (message.success("删除成功"), p());
126
126
  });
127
127
  }
128
128
  });
129
129
  break;
130
130
  }
131
131
  }
132
- return (i, E) => {
133
- let k = PlusCircleOutlined, j = Button, M = PubinfoIcon, N = Space$1, P = resolveDirective("auth");
132
+ return (e, t) => {
133
+ let r = PlusCircleOutlined, o = Button, s = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
134
134
  return openBlock(), createElementBlock("div", _hoisted_1, [
135
135
  createVNode(unref(ProTable), {
136
136
  ref_key: "tableRef",
137
- ref: I,
137
+ ref: d,
138
138
  "row-key": "id",
139
- request: z,
140
- columns: B,
139
+ request: m,
140
+ columns: h,
141
141
  "auto-height": "",
142
142
  scroll: { x: 1100 }
143
143
  }, {
144
- toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(j, {
144
+ toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(o, {
145
145
  type: "primary",
146
- onClick: E[0] ||= (i) => H(unref(ACTION).ADD)
146
+ onClick: t[0] ||= (e) => _(unref(ACTION).ADD)
147
147
  }, {
148
- default: withCtx(() => [createVNode(k), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
148
+ default: withCtx(() => [createVNode(r), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
149
149
  _: 1
150
- })), [[P, "role_add"]])]),
151
- bodyCell: withCtx(({ column: i, record: E }) => [i.dataIndex === "action" ? (openBlock(), createBlock(N, { key: 0 }, {
150
+ })), [[l, "role_add"]])]),
151
+ bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 0 }, {
152
152
  default: withCtx(() => [
153
153
  withDirectives((openBlock(), createElementBlock("a", {
154
154
  class: "flex items-center",
155
- onClick: (i) => H(unref(ACTION).RESOURCE_RELATION, E)
156
- }, [createVNode(M, {
155
+ onClick: (e) => _(unref(ACTION).RESOURCE_RELATION, t)
156
+ }, [createVNode(s, {
157
157
  name: "view",
158
158
  class: "mr-1 text-base"
159
- }), createElementVNode("span", null, toDisplayString(unref(ACTION).RESOURCE_RELATION), 1)], 8, _hoisted_2)), [[P, "resource_role_relation"]]),
159
+ }), createElementVNode("span", null, toDisplayString(unref(ACTION).RESOURCE_RELATION), 1)], 8, _hoisted_2)), [[l, "resource_role_relation"]]),
160
160
  withDirectives((openBlock(), createElementBlock("a", {
161
161
  class: "flex items-center",
162
- onClick: (i) => H(unref(ACTION).EDIT, E)
163
- }, [createVNode(M, {
162
+ onClick: (e) => _(unref(ACTION).EDIT, t)
163
+ }, [createVNode(s, {
164
164
  name: "edit",
165
165
  class: "text-base"
166
- }), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[P, "role_edit"]]),
166
+ }), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[l, "role_edit"]]),
167
167
  withDirectives((openBlock(), createElementBlock("span", {
168
168
  class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
169
- onClick: (i) => H(unref(ACTION).REMOVE, E)
170
- }, [createVNode(M, {
169
+ onClick: (e) => _(unref(ACTION).REMOVE, t)
170
+ }, [createVNode(s, {
171
171
  name: "remove",
172
172
  class: "text-base"
173
- }), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[P, "role_remove"]])
173
+ }), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[l, "role_remove"]])
174
174
  ]),
175
175
  _: 2
176
176
  }, 1024)) : createCommentVNode("", !0)]),
@@ -178,12 +178,12 @@ var _hoisted_1 = {
178
178
  }, 512),
179
179
  createVNode(drawerRole_default, {
180
180
  ref_key: "drawerRoleRef",
181
- ref: L,
182
- onSubmit: E[1] ||= (i) => R()
181
+ ref: f,
182
+ onSubmit: t[1] ||= (e) => p()
183
183
  }, null, 512),
184
184
  createVNode(ResourceRelation_default, {
185
185
  ref_key: "relationRef",
186
- ref: V
186
+ ref: g
187
187
  }, null, 512)
188
188
  ]);
189
189
  };
@@ -1,6 +1,6 @@
1
1
  import { st as deleteRbacPubRoleGroupDelete, ut as postRbacPubRoleGroupPageQuery } from "./index.js";
2
- import "./RoleSelector-Cd6_RUsc.js";
3
- import { n as ACTION, t as drawerRole_default } from "./drawerRole-DNDyOvXw.js";
2
+ import "./RoleSelector-gkar_UGG.js";
3
+ import { r as ACTION, t as drawerRole_default } from "./drawerRole-DrzMHL0O.js";
4
4
  import { PubinfoIcon, useAuth } from "pubinfo-pr";
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";
@@ -15,24 +15,24 @@ var _hoisted_1 = {
15
15
  }, _hoisted_2 = ["onClick"], _hoisted_3 = { class: "ml-4px" }, _hoisted_4 = ["onClick"], _hoisted_5 = { class: "ml-4px" }, role_group_default = /* @__PURE__ */ defineComponent({
16
16
  name: "Role",
17
17
  __name: "index",
18
- setup(O) {
19
- let { auth: M } = useAuth(), N = ref(), P = ref();
20
- function F() {
21
- N.value.reload();
18
+ setup(o) {
19
+ let { auth: u } = useAuth(), d = ref(), f = ref();
20
+ function p() {
21
+ d.value.reload();
22
22
  }
23
- async function I(t) {
24
- let { current: w, pageSize: T, ...E } = t, D = await postRbacPubRoleGroupPageQuery({
25
- currentPage: w,
26
- pageSize: T,
27
- ...E
23
+ async function m(e) {
24
+ let { current: n, pageSize: r, ...i } = e, a = await postRbacPubRoleGroupPageQuery({
25
+ currentPage: n,
26
+ pageSize: r,
27
+ ...i
28
28
  });
29
29
  return {
30
- success: D.success,
31
- data: D.data?.records ?? [],
32
- total: D.data?.total ?? 0
30
+ success: a.success,
31
+ data: a.data?.records ?? [],
32
+ total: a.data?.total ?? 0
33
33
  };
34
34
  }
35
- let L = [
35
+ let h = [
36
36
  {
37
37
  valueType: "a-input",
38
38
  bind: "value",
@@ -74,7 +74,7 @@ var _hoisted_1 = {
74
74
  minWidth: 80,
75
75
  title: "角色组状态",
76
76
  dataIndex: "enable",
77
- customRender: ({ text: t }) => t ? createVNode(Badge, {
77
+ customRender: ({ text: e }) => e ? createVNode(Badge, {
78
78
  status: "success",
79
79
  text: "正常"
80
80
  }, null) : createVNode(Badge, {
@@ -100,70 +100,70 @@ var _hoisted_1 = {
100
100
  dataIndex: "action",
101
101
  fixed: "right",
102
102
  hideInTable() {
103
- return !M(["role_group_edit", "role_group_remove"]);
103
+ return !u(["role_group_edit", "role_group_remove"]);
104
104
  }
105
105
  }
106
106
  ];
107
- function R(C, T) {
108
- switch (C) {
107
+ function g(t, r) {
108
+ switch (t) {
109
109
  case ACTION.EDIT:
110
- P.value.open(C, T);
110
+ f.value.open(t, r);
111
111
  break;
112
112
  case ACTION.ADD:
113
- P.value.open(C);
113
+ f.value.open(t);
114
114
  break;
115
115
  case ACTION.REMOVE:
116
116
  Modal.confirm({
117
117
  title: "删除",
118
118
  content: "确定要删除该角色组吗?",
119
119
  onOk() {
120
- deleteRbacPubRoleGroupDelete({ id: T?.id }).then((t) => {
121
- t.success && (message.success("删除成功"), F());
120
+ deleteRbacPubRoleGroupDelete({ id: r?.id }).then((e) => {
121
+ e.success && (message.success("删除成功"), p());
122
122
  });
123
123
  }
124
124
  });
125
125
  break;
126
126
  }
127
127
  }
128
- return (t, C) => {
129
- let D = PlusCircleOutlined, O = Button, k = PubinfoIcon, A = Space$1, j = resolveDirective("auth");
128
+ return (e, t) => {
129
+ let a = PlusCircleOutlined, o = Button, s = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
130
130
  return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
131
131
  ref_key: "tableRef",
132
- ref: N,
132
+ ref: d,
133
133
  "row-key": "id",
134
- request: I,
135
- columns: L,
134
+ request: m,
135
+ columns: h,
136
136
  "auto-height": "",
137
137
  scroll: { x: 1100 }
138
138
  }, {
139
- toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(O, {
139
+ toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(o, {
140
140
  type: "primary",
141
- onClick: C[0] ||= (t) => R(unref(ACTION).ADD)
141
+ onClick: t[0] ||= (e) => g(unref(ACTION).ADD)
142
142
  }, {
143
- default: withCtx(() => [createVNode(D), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
143
+ default: withCtx(() => [createVNode(a), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
144
144
  _: 1
145
- })), [[j, "role_group_add"]])]),
146
- bodyCell: withCtx(({ column: t, record: C }) => [t.dataIndex === "action" ? (openBlock(), createBlock(A, { key: 0 }, {
145
+ })), [[l, "role_group_add"]])]),
146
+ bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 0 }, {
147
147
  default: withCtx(() => [withDirectives((openBlock(), createElementBlock("a", {
148
148
  class: "flex items-center",
149
- onClick: (t) => R(unref(ACTION).EDIT, C)
150
- }, [createVNode(k, {
149
+ onClick: (e) => g(unref(ACTION).EDIT, t)
150
+ }, [createVNode(s, {
151
151
  name: "edit",
152
152
  class: "text-base"
153
- }), createElementVNode("span", _hoisted_3, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_2)), [[j, "role_edit"]]), withDirectives((openBlock(), createElementBlock("span", {
153
+ }), createElementVNode("span", _hoisted_3, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_2)), [[l, "role_edit"]]), withDirectives((openBlock(), createElementBlock("span", {
154
154
  class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
155
- onClick: (t) => R(unref(ACTION).REMOVE, C)
156
- }, [createVNode(k, {
155
+ onClick: (e) => g(unref(ACTION).REMOVE, t)
156
+ }, [createVNode(s, {
157
157
  name: "remove",
158
158
  class: "text-base"
159
- }), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_4)), [[j, "role_remove"]])]),
159
+ }), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_4)), [[l, "role_remove"]])]),
160
160
  _: 2
161
161
  }, 1024)) : createCommentVNode("", !0)]),
162
162
  _: 1
163
163
  }, 512), createVNode(drawerRole_default, {
164
164
  ref_key: "drawerRoleRef",
165
- ref: P,
166
- onSubmit: C[1] ||= (t) => F()
165
+ ref: f,
166
+ onSubmit: t[1] ||= (e) => p()
167
167
  }, null, 512)]);
168
168
  };
169
169
  }