@pubinfo/module-rbac 2.0.12 → 2.0.14

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 (97) hide show
  1. package/dist/{DynamicRoutesForm-DzOGoyf3.js → DynamicRoutesForm-BU4EAISs.js} +1 -1
  2. package/dist/{DynamicRoutesForm.vue_vue_type_script_setup_true_lang-lpCaLpPL.js → DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js} +6 -6
  3. package/dist/{IconSelect-CkqLR5Dg.js → IconSelect-DtNpk3Rj.js} +1 -1
  4. package/dist/IconSelect.css +1 -1
  5. package/dist/IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js +757 -0
  6. package/dist/{ImportExport-BD8o7IvB.js → ImportExport-DAe_Sl13.js} +1 -1
  7. package/dist/{ImportExport.vue_vue_type_script_setup_true_lang-BzdP0ADd.js → ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js} +1 -1
  8. package/dist/LayoutForm-C-vNwp3q.js +173 -0
  9. package/dist/LayoutForm.css +1 -0
  10. package/dist/{MetaForm-DtlyvzoM.js → MetaForm-13JASu7v.js} +142 -105
  11. package/dist/MetaForm.css +1 -1
  12. package/dist/{ResourceEdit-WpEdbzaw.js → ResourceEdit-D2YFu-Gk.js} +1 -1
  13. package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-Cb0mKIlJ.js +429 -0
  14. package/dist/{ResourceRelation-DGiGYy6V.js → ResourceRelation-CeM9Eq39.js} +10 -11
  15. package/dist/{ResourceRelation-26FnHEfU.js → ResourceRelation-qhIdXLAy.js} +12 -13
  16. package/dist/{TenantEdit-B24X5nND.js → TenantEdit-C61O1pSu.js} +1 -1
  17. package/dist/{TenantEdit.vue_vue_type_script_setup_true_lang-Bu5HcJJv.js → TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js} +39 -40
  18. package/dist/{UserAuthorization-Co6JV0py.js → UserAuthorization-rqttVub5.js} +9 -10
  19. package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +1 -1
  20. package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +1 -1
  21. package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +3 -0
  22. package/dist/components/ResourceIcones/Select.vue.d.ts +3 -0
  23. package/dist/{createAndEditDataPermission-BhOLGGna.js → createAndEditDataPermission-DPeFulie.js} +1 -1
  24. package/dist/{createAndEditDataPermission.vue_vue_type_script_setup_true_lang-D5wInKwO.js → createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js} +98 -101
  25. package/dist/{drawerRole-DHLv47_z.js → drawerRole-CXGVqxPX.js} +1 -1
  26. package/dist/{drawerRole-DUWRM43j.js → drawerRole-CfJjf3v_.js} +1 -1
  27. package/dist/{drawerRole.vue_vue_type_script_setup_true_lang-BET5ukoo.js → drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js} +42 -43
  28. package/dist/{drawerRole.vue_vue_type_script_setup_true_lang-BK3zjhop.js → drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js} +1 -1
  29. package/dist/{enum-CjyX3J0o.js → enum-D5iPiZiT.js} +0 -1
  30. package/dist/{index-Csfu3kAr.js → index-B5aP0re3.js} +6 -7
  31. package/dist/{index-DwpOyfRe.js → index-BEB4liGe.js} +8 -9
  32. package/dist/{index-DfuGXjYh.js → index-BNwGLzXe.js} +21 -22
  33. package/dist/{index-DdoOaWs-.js → index-BPkJOFXE.js} +3 -3
  34. package/dist/{index-ioZh8Qom.js → index-BXvJhqJD.js} +6 -7
  35. package/dist/{index-BFx8F5lO.js → index-C2G4xRrJ.js} +8 -9
  36. package/dist/{index-x9Iim2eD.js → index-C5WD-YUu.js} +7 -8
  37. package/dist/{index-rNYtJ7Om.js → index-CbVJdR5M.js} +6 -7
  38. package/dist/{index-DECno0gv.js → index-ChWnVs6j.js} +2 -2
  39. package/dist/{index-C9hHp4Iw.js → index-CoZM8pyH.js} +1 -1
  40. package/dist/{index-B2tTTlBE.js → index-Copy5kiW.js} +276 -273
  41. package/dist/index-D3Xw_aOi.js +144 -0
  42. package/dist/{index-CCw3ZJgQ.js → index-DHVEXch0.js} +8 -9
  43. package/dist/{index-COWUocfL.js → index-Dl0hWfIE.js} +7 -8
  44. package/dist/{index-BIpmC999.js → index-En8oOf9e.js} +8 -9
  45. package/dist/{index-ZQuRR9fG.js → index-VZuizuKs.js} +1 -1
  46. package/dist/{index-BwWrE3dY.js → index-XhYtVVT9.js} +6 -7
  47. package/dist/{index-BUmMaC21.js → index-nAPHtTM7.js} +5 -6
  48. package/dist/{index-y9CQTo95.js → index-qn7U9T51.js} +9 -10
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.js +2578 -2303
  51. package/dist/index10.css +1 -1
  52. package/dist/index11.css +1 -1
  53. package/dist/index12.css +1 -1
  54. package/dist/index13.css +1 -1
  55. package/dist/index14.css +1 -1
  56. package/dist/index15.css +1 -1
  57. package/dist/index16.css +1 -1
  58. package/dist/index17.css +1 -1
  59. package/dist/index4.css +1 -1
  60. package/dist/index5.css +1 -1
  61. package/dist/index6.css +1 -1
  62. package/dist/index7.css +1 -1
  63. package/dist/index8.css +1 -1
  64. package/dist/index9.css +1 -1
  65. package/dist/{loginHistoryDetail-B6eI-TmJ.js → loginHistoryDetail-BZVwG8m2.js} +1 -1
  66. package/dist/{login_history-B4Q1NCJn.js → login_history-CMZGS2PN.js} +5 -6
  67. package/dist/{operateHistoryDetail-CLZ9lyua.js → operateHistoryDetail-Badx3zl-.js} +1 -1
  68. package/dist/{operate_history-KASZ7_JO.js → operate_history-B42WNY1u.js} +5 -6
  69. package/dist/{setItem-BwMHXOUm.js → setItem-Blb3dox4.js} +1 -1
  70. package/dist/{useAppAndResource-38HCqYKa.js → useAppAndResource-DDywX2iz.js} +11 -12
  71. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +3 -3
  72. package/dist/views/data-permission/index.vue.d.ts +3 -3
  73. package/dist/views/resource/components/LayoutForm.vue.d.ts +10 -0
  74. package/dist/views/resource/hooks/useLayoutForm.d.ts +12 -0
  75. package/dist/views/resource/model.d.ts +13 -0
  76. package/package.json +7 -7
  77. package/src/components/ResourceIcones/BoxColorPicker.vue +64 -8
  78. package/src/components/ResourceIcones/Select.vue +13 -5
  79. package/src/index.ts +1 -0
  80. package/src/views/organization/index.vue +17 -10
  81. package/src/views/resource/components/DynamicRoutesForm.vue +1 -1
  82. package/src/views/resource/components/IconSelect.vue +7 -3
  83. package/src/views/resource/components/LayoutForm.vue +92 -0
  84. package/src/views/resource/components/MetaForm.vue +11 -0
  85. package/src/views/resource/components/ResourceEdit.vue +26 -8
  86. package/src/views/resource/enum.ts +0 -1
  87. package/src/views/resource/hooks/useLayoutForm.ts +57 -0
  88. package/src/views/resource/hooks/useMetaForm.ts +4 -0
  89. package/src/views/resource/index.vue +0 -3
  90. package/src/views/resource/model.ts +23 -1
  91. package/dist/IconSelect.vue_vue_type_script_setup_true_lang-BoGxAoNd.js +0 -703
  92. package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-id6jZAko.js +0 -392
  93. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  94. package/dist/enum-CTUzwCYG.js +0 -4
  95. package/dist/index-53oBz1jp.js +0 -299
  96. package/dist/index-DVt5k9xh.js +0 -145
  97. package/dist/index18.css +0 -1
@@ -1,13 +1,10 @@
1
- import { Modal as ye, Tabs as ke, TabPane as Ie, CheckboxGroup as Re, Tooltip as pe, Tag as he, Button as de, Drawer as Fe, Form as Oe, FormItem as Se, Input as we, Select as Ge, Space as Ce } from "ant-design-vue/es";
2
- import { defineComponent as ie, mergeModels as De, ref as c, computed as z, useModel as Ee, createBlock as y, openBlock as u, withCtx as n, createElementVNode as m, createVNode as s, unref as l, isRef as Y, createElementBlock as g, Fragment as C, renderList as j, createTextVNode as k, toDisplayString as F, createCommentVNode as ue } from "vue";
1
+ import { Modal as ye, Tabs as ke, TabPane as Ie, CheckboxGroup as Re, Tooltip as pe, Tag as Se, Button as de, Drawer as he, Form as Fe, FormItem as Oe, Input as we, Select as Ge, Space as Ce } from "ant-design-vue/es";
2
+ import { defineComponent as ie, mergeModels as De, ref as c, computed as z, useModel as Ee, createBlock as y, openBlock as u, withCtx as l, createElementVNode as m, createVNode as s, unref as n, isRef as Y, createElementBlock as g, Fragment as C, renderList as j, createTextVNode as k, toDisplayString as h, createCommentVNode as ue } from "vue";
3
3
  import { message as Pe } from "ant-design-vue";
4
- import { p as Ue, u as ne, OrgSelector as Te } from "./index.js";
5
- import { g as Me, a as Ne, b as $e } from "./shujuquanxianzhubiaokongzhiqi-SpN37fyO.js";
4
+ import { p as Ue, u as le, _ as Te, R as Me, OrgSelector as Ne, ResourceSelector as $e } from "./index.js";
5
+ import { g as Ae, a as Le, b as Be } from "./shujuquanxianzhubiaokongzhiqi-SpN37fyO.js";
6
6
  import { G as te } from "./enum-DDKThkSw.js";
7
- import { _ as Ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- import { R as Le } from "./enum-CTUzwCYG.js";
9
- import { u as Be } from "./useAppAndResource-38HCqYKa.js";
10
- import { _ as Ve } from "./index-53oBz1jp.js";
7
+ import { u as Ve } from "./useAppAndResource-DDywX2iz.js";
11
8
  import { D as ae, d as qe } from "./enum-DkSNwGbC.js";
12
9
  import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1px border-solid flex flex-row border_color" }, Ye = { class: "w-360px" }, je = { class: "flex-1 flex flex-col border-solid border-0px border-l-1px border_color" }, ze = { class: "flex-1 p-10px overflow-auto" }, He = /* @__PURE__ */ ie({
13
10
  name: "GroupSelector",
@@ -17,11 +14,11 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
17
14
  openModifiers: {}
18
15
  },
19
16
  emits: /* @__PURE__ */ De(["select"], ["update:open"]),
20
- setup(le, { expose: H, emit: J }) {
21
- const Q = J, O = c("OrgGroup"), S = z(() => O.value === "OrgGroup"), T = c([]), D = c([]), v = c([]), _ = c([]), L = z(() => {
22
- const d = S.value ? T : D, o = S.value ? v : _;
17
+ setup(ne, { expose: H, emit: J }) {
18
+ const Q = J, F = c("OrgGroup"), O = z(() => F.value === "OrgGroup"), T = c([]), D = c([]), v = c([]), _ = c([]), L = z(() => {
19
+ const d = O.value ? T : D, o = O.value ? v : _;
23
20
  return d.value.filter((i) => o.value.includes(i.value));
24
- }), M = Ee(le, "open"), N = ne(M);
21
+ }), M = Ee(ne, "open"), N = le(M);
25
22
  W();
26
23
  function W() {
27
24
  E(te.ORG), E(te.PER);
@@ -45,13 +42,13 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
45
42
  function B(d) {
46
43
  if (d && d.length) {
47
44
  const o = d.map((i) => i.value);
48
- S.value ? v.value = o : _.value = o;
45
+ O.value ? v.value = o : _.value = o;
49
46
  } else
50
47
  v.value = [], _.value = [];
51
48
  N(!0);
52
49
  }
53
50
  function I() {
54
- S.value ? X() : a();
51
+ O.value ? X() : a();
55
52
  }
56
53
  function X() {
57
54
  v.value = [];
@@ -60,7 +57,7 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
60
57
  _.value = [];
61
58
  }
62
59
  function $(d) {
63
- const o = S.value ? v : _, i = o.value.findIndex((b) => b === d);
60
+ const o = O.value ? v : _, i = o.value.findIndex((b) => b === d);
64
61
  i !== -1 && o.value.splice(i, 1);
65
62
  }
66
63
  function V() {
@@ -69,7 +66,7 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
69
66
  return H({
70
67
  open: B
71
68
  }), (d, o) => {
72
- const i = Re, b = Ie, f = ke, x = he, R = pe, q = de, Z = ye;
69
+ const i = Re, b = Ie, f = ke, x = Se, R = pe, q = de, Z = ye;
73
70
  return u(), y(Z, {
74
71
  open: M.value,
75
72
  "onUpdate:open": o[4] || (o[4] = (p) => M.value = p),
@@ -78,11 +75,11 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
78
75
  "mask-closable": !1,
79
76
  width: 750
80
77
  }, {
81
- footer: n(() => [
78
+ footer: l(() => [
82
79
  s(q, {
83
- onClick: o[3] || (o[3] = (p) => l(N)(!1))
80
+ onClick: o[3] || (o[3] = (p) => n(N)(!1))
84
81
  }, {
85
- default: n(() => o[6] || (o[6] = [
82
+ default: l(() => o[6] || (o[6] = [
86
83
  k(" 取消 ")
87
84
  ])),
88
85
  _: 1,
@@ -92,31 +89,31 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
92
89
  type: "primary",
93
90
  onClick: V
94
91
  }, {
95
- default: n(() => o[7] || (o[7] = [
92
+ default: l(() => o[7] || (o[7] = [
96
93
  k(" 确定 ")
97
94
  ])),
98
95
  _: 1,
99
96
  __: [7]
100
97
  })
101
98
  ]),
102
- default: n(() => [
99
+ default: l(() => [
103
100
  m("div", Ke, [
104
101
  m("div", Ye, [
105
102
  s(f, {
106
- "active-key": l(O),
107
- "onUpdate:activeKey": o[2] || (o[2] = (p) => Y(O) ? O.value = p : null),
103
+ "active-key": n(F),
104
+ "onUpdate:activeKey": o[2] || (o[2] = (p) => Y(F) ? F.value = p : null),
108
105
  class: "h-full overflow-hidden"
109
106
  }, {
110
- default: n(() => [
107
+ default: l(() => [
111
108
  s(b, {
112
109
  key: "OrgGroup",
113
110
  tab: "组织群组"
114
111
  }, {
115
- default: n(() => [
112
+ default: l(() => [
116
113
  s(i, {
117
- value: l(v),
114
+ value: n(v),
118
115
  "onUpdate:value": o[0] || (o[0] = (p) => Y(v) ? v.value = p : null),
119
- options: l(T)
116
+ options: n(T)
120
117
  }, null, 8, ["value", "options"])
121
118
  ]),
122
119
  _: 1
@@ -126,11 +123,11 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
126
123
  tab: "用户群组",
127
124
  "force-render": ""
128
125
  }, {
129
- default: n(() => [
126
+ default: l(() => [
130
127
  s(i, {
131
- value: l(_),
128
+ value: n(_),
132
129
  "onUpdate:value": o[1] || (o[1] = (p) => Y(_) ? _.value = p : null),
133
- options: l(D)
130
+ options: n(D)
134
131
  }, null, 8, ["value", "options"])
135
132
  ]),
136
133
  _: 1
@@ -148,7 +145,7 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
148
145
  }, " 清空 ")
149
146
  ]),
150
147
  m("div", ze, [
151
- (u(!0), g(C, null, j(l(L), (p) => (u(), g("div", {
148
+ (u(!0), g(C, null, j(n(L), (p) => (u(), g("div", {
152
149
  key: p.value,
153
150
  class: "inline-block mb-6px max-w-300px"
154
151
  }, [
@@ -156,14 +153,14 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
156
153
  key: 0,
157
154
  title: p.name
158
155
  }, {
159
- default: n(() => [
156
+ default: l(() => [
160
157
  s(x, {
161
158
  class: "custom_tag bg-[#e8f3ff] dark:bg-[#141414]",
162
159
  closable: "",
163
160
  onClose: (ee) => $(p.value)
164
161
  }, {
165
- default: n(() => [
166
- k(F(p.label), 1)
162
+ default: l(() => [
163
+ k(h(p.label), 1)
167
164
  ]),
168
165
  _: 2
169
166
  }, 1032, ["onClose"])
@@ -175,8 +172,8 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
175
172
  closable: "",
176
173
  onClose: (ee) => $(p.value)
177
174
  }, {
178
- default: n(() => [
179
- k(F(p.label), 1)
175
+ default: l(() => [
176
+ k(h(p.label), 1)
180
177
  ]),
181
178
  _: 2
182
179
  }, 1032, ["onClose"]))
@@ -189,22 +186,22 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
189
186
  }, 8, ["open"]);
190
187
  };
191
188
  }
192
- }), Je = /* @__PURE__ */ Ae(He, [["__scopeId", "data-v-2ec81ba8"]]), Qe = { class: "pt-10px" }, We = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, Xe = {
189
+ }), Je = /* @__PURE__ */ Te(He, [["__scopeId", "data-v-2ec81ba8"]]), Qe = { class: "pt-10px" }, We = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, Xe = {
193
190
  key: 1,
194
191
  class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
195
192
  }, Ze = { class: "pt-10px" }, eo = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, oo = {
196
193
  key: 1,
197
194
  class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
198
- }, to = { class: "pt-10px" }, ao = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, no = {
195
+ }, to = { class: "pt-10px" }, ao = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, lo = {
199
196
  key: 1,
200
197
  class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
201
- }, vo = /* @__PURE__ */ ie({
198
+ }, fo = /* @__PURE__ */ ie({
202
199
  name: "CreateAndEditDataPermission",
203
200
  __name: "createAndEditDataPermission",
204
201
  emits: ["submit"],
205
- setup(le, { expose: H, emit: J }) {
206
- const Q = J, O = Le.DATA_PERMISSION, {
207
- appList: S,
202
+ setup(ne, { expose: H, emit: J }) {
203
+ const Q = J, F = Me.DATA_PERMISSION, {
204
+ appList: O,
208
205
  resourceModelRef: T,
209
206
  selectedResources: D,
210
207
  getAppList: v,
@@ -213,7 +210,7 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
213
210
  updateSelectedResources: M,
214
211
  clearSelectedResources: N,
215
212
  openResourceModel: W
216
- } = Be(O), E = c(""), B = {
213
+ } = Ve(F), E = c(""), B = {
217
214
  name: "",
218
215
  type: "",
219
216
  appId: "",
@@ -240,16 +237,16 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
240
237
  groupIds: [{ type: "array", required: !0, message: "请选择群组", trigger: ["blur", "change"] }]
241
238
  }, a = c({
242
239
  ...B
243
- }), $ = z(() => a.value.type === ae.CUSTOM_DEPT_AND_SUB || a.value.type === ae.CUSTOM_DEPT_ONLY), V = z(() => a.value.type === ae.CUSTOM_GROUP), d = c(!1), [o, i] = ne(!1), b = c(), f = c([]), x = c(), R = c([]);
240
+ }), $ = z(() => a.value.type === ae.CUSTOM_DEPT_AND_SUB || a.value.type === ae.CUSTOM_DEPT_ONLY), V = z(() => a.value.type === ae.CUSTOM_GROUP), d = c(!1), [o, i] = le(!1), b = c(), f = c([]), x = c(), R = c([]);
244
241
  v();
245
242
  async function q(r, t) {
246
243
  if (E.value = r, d.value = !1, a.value = { ...B }, N(), fe(), _e(), t) {
247
244
  d.value = !0;
248
- const w = await Me({ id: t?.id });
245
+ const w = await Ae({ id: t?.id });
249
246
  if (w.success && w.data) {
250
- const { id: h, type: K, name: G, appId: A, orgs: P, resources: oe, groups: U } = w.data;
247
+ const { id: S, type: K, name: G, appId: A, orgs: P, resources: oe, groups: U } = w.data;
251
248
  a.value = {
252
- id: h,
249
+ id: S,
253
250
  type: K,
254
251
  appId: A,
255
252
  name: G || "",
@@ -299,11 +296,11 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
299
296
  function ve(r) {
300
297
  R.value = r, r.length ? (a.value.groupIds = r.map((t) => t.id || ""), I.value?.clearValidate(["groupIds"])) : a.value.groupIds = [];
301
298
  }
302
- const [be, se] = ne(!1);
299
+ const [be, se] = le(!1);
303
300
  function xe() {
304
301
  I.value?.validate().then(() => {
305
302
  se(!0);
306
- const r = d.value ? Ne : $e, t = {
303
+ const r = d.value ? Le : Be, t = {
307
304
  ...a.value
308
305
  };
309
306
  $.value || delete t.orgIds, V.value || delete t.groupIds, r(t).then((w) => {
@@ -317,22 +314,22 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
317
314
  return H({
318
315
  open: q
319
316
  }), (r, t) => {
320
- const w = we, h = Se, K = Ge, G = de, A = pe, P = Oe, oe = Ce, U = Fe;
317
+ const w = we, S = Oe, K = Ge, G = de, A = pe, P = Fe, oe = Ce, U = he;
321
318
  return u(), y(U, {
322
- open: l(o),
319
+ open: n(o),
323
320
  "onUpdate:open": t[4] || (t[4] = (e) => Y(o) ? o.value = e : null),
324
- title: `${l(E)}数据权限`,
321
+ title: `${n(E)}数据权限`,
325
322
  placement: "right",
326
323
  width: 600,
327
324
  "destroy-on-close": "",
328
325
  "footer-style": { textAlign: "right" },
329
326
  onClose: re
330
327
  }, {
331
- footer: n(() => [
328
+ footer: l(() => [
332
329
  s(oe, null, {
333
- default: n(() => [
330
+ default: l(() => [
334
331
  s(G, { onClick: re }, {
335
- default: n(() => t[8] || (t[8] = [
332
+ default: l(() => t[8] || (t[8] = [
336
333
  k(" 取消 ")
337
334
  ])),
338
335
  _: 1,
@@ -340,10 +337,10 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
340
337
  }),
341
338
  s(G, {
342
339
  type: "primary",
343
- loading: l(be),
340
+ loading: n(be),
344
341
  onClick: t[3] || (t[3] = (e) => xe())
345
342
  }, {
346
- default: n(() => t[9] || (t[9] = [
343
+ default: l(() => t[9] || (t[9] = [
347
344
  k(" 提交 ")
348
345
  ])),
349
346
  _: 1,
@@ -353,147 +350,147 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
353
350
  _: 1
354
351
  })
355
352
  ]),
356
- default: n(() => [
353
+ default: l(() => [
357
354
  s(P, {
358
355
  ref_key: "formRef",
359
356
  ref: I,
360
- model: l(a),
357
+ model: n(a),
361
358
  rules: X,
362
359
  "label-col": { span: 6 }
363
360
  }, {
364
- default: n(() => [
365
- s(h, {
361
+ default: l(() => [
362
+ s(S, {
366
363
  label: "数据权限名称",
367
364
  name: "name"
368
365
  }, {
369
- default: n(() => [
366
+ default: l(() => [
370
367
  s(w, {
371
- value: l(a).name,
372
- "onUpdate:value": t[0] || (t[0] = (e) => l(a).name = e),
368
+ value: n(a).name,
369
+ "onUpdate:value": t[0] || (t[0] = (e) => n(a).name = e),
373
370
  maxlength: 20
374
371
  }, null, 8, ["value"])
375
372
  ]),
376
373
  _: 1
377
374
  }),
378
- s(h, {
375
+ s(S, {
379
376
  label: "数据权限规则",
380
377
  name: "type"
381
378
  }, {
382
- default: n(() => [
379
+ default: l(() => [
383
380
  s(K, {
384
- value: l(a).type,
385
- "onUpdate:value": t[1] || (t[1] = (e) => l(a).type = e),
386
- options: l(qe),
381
+ value: n(a).type,
382
+ "onUpdate:value": t[1] || (t[1] = (e) => n(a).type = e),
383
+ options: n(qe),
387
384
  placeholder: "请选择"
388
385
  }, null, 8, ["value", "options"])
389
386
  ]),
390
387
  _: 1
391
388
  }),
392
- s(h, {
389
+ s(S, {
393
390
  label: "所属应用",
394
391
  name: "appId"
395
392
  }, {
396
- default: n(() => [
393
+ default: l(() => [
397
394
  s(K, {
398
- value: l(a).appId,
399
- "onUpdate:value": t[2] || (t[2] = (e) => l(a).appId = e),
400
- disabled: l(d),
401
- options: l(S),
395
+ value: n(a).appId,
396
+ "onUpdate:value": t[2] || (t[2] = (e) => n(a).appId = e),
397
+ disabled: n(d),
398
+ options: n(O),
402
399
  onChange: Z
403
400
  }, null, 8, ["value", "disabled", "options"])
404
401
  ]),
405
402
  _: 1
406
403
  }),
407
- s(h, {
404
+ s(S, {
408
405
  label: "所属资源",
409
406
  name: "resourceIds"
410
407
  }, {
411
- default: n(() => [
408
+ default: l(() => [
412
409
  s(G, {
413
410
  type: "primary",
414
411
  onClick: p
415
412
  }, {
416
- default: n(() => t[5] || (t[5] = [
413
+ default: l(() => t[5] || (t[5] = [
417
414
  k(" 编辑资源 ")
418
415
  ])),
419
416
  _: 1,
420
417
  __: [5]
421
418
  }),
422
419
  m("div", Qe, [
423
- (u(!0), g(C, null, j(l(D), (e) => (u(), g(C, { key: e }, [
420
+ (u(!0), g(C, null, j(n(D), (e) => (u(), g(C, { key: e }, [
424
421
  e.name.length > 20 ? (u(), y(A, {
425
422
  key: 0,
426
423
  title: e.name
427
424
  }, {
428
- default: n(() => [
429
- m("span", We, F(`${e.name.slice(0, 20)}...`), 1)
425
+ default: l(() => [
426
+ m("span", We, h(`${e.name.slice(0, 20)}...`), 1)
430
427
  ]),
431
428
  _: 2
432
- }, 1032, ["title"])) : (u(), g("span", Xe, F(e.name), 1))
429
+ }, 1032, ["title"])) : (u(), g("span", Xe, h(e.name), 1))
433
430
  ], 64))), 128))
434
431
  ])
435
432
  ]),
436
433
  _: 1
437
434
  }),
438
- l($) ? (u(), y(h, {
435
+ n($) ? (u(), y(S, {
439
436
  key: 0,
440
437
  label: "所属部门",
441
438
  name: "orgIds"
442
439
  }, {
443
- default: n(() => [
440
+ default: l(() => [
444
441
  s(G, {
445
442
  type: "primary",
446
443
  onClick: ce
447
444
  }, {
448
- default: n(() => t[6] || (t[6] = [
445
+ default: l(() => t[6] || (t[6] = [
449
446
  k(" 编辑部门 ")
450
447
  ])),
451
448
  _: 1,
452
449
  __: [6]
453
450
  }),
454
451
  m("div", Ze, [
455
- (u(!0), g(C, null, j(l(f), (e) => (u(), g(C, { key: e }, [
452
+ (u(!0), g(C, null, j(n(f), (e) => (u(), g(C, { key: e }, [
456
453
  e.orgName && e.orgName.length > 20 ? (u(), y(A, {
457
454
  key: 0,
458
455
  title: e.orgName
459
456
  }, {
460
- default: n(() => [
461
- m("span", eo, F(`${e.orgName?.slice(0, 20)}...`), 1)
457
+ default: l(() => [
458
+ m("span", eo, h(`${e.orgName?.slice(0, 20)}...`), 1)
462
459
  ]),
463
460
  _: 2
464
- }, 1032, ["title"])) : (u(), g("span", oo, F(e.orgName), 1))
461
+ }, 1032, ["title"])) : (u(), g("span", oo, h(e.orgName), 1))
465
462
  ], 64))), 128))
466
463
  ])
467
464
  ]),
468
465
  _: 1
469
466
  })) : ue("", !0),
470
- l(V) ? (u(), y(h, {
467
+ n(V) ? (u(), y(S, {
471
468
  key: 1,
472
469
  label: "所属群组",
473
470
  name: "groupIds"
474
471
  }, {
475
- default: n(() => [
472
+ default: l(() => [
476
473
  s(G, {
477
474
  type: "primary",
478
475
  onClick: me
479
476
  }, {
480
- default: n(() => t[7] || (t[7] = [
477
+ default: l(() => t[7] || (t[7] = [
481
478
  k(" 编辑群组 ")
482
479
  ])),
483
480
  _: 1,
484
481
  __: [7]
485
482
  }),
486
483
  m("div", to, [
487
- (u(!0), g(C, null, j(l(R), (e) => (u(), g(C, { key: e }, [
484
+ (u(!0), g(C, null, j(n(R), (e) => (u(), g(C, { key: e }, [
488
485
  e.name && e.name.length > 20 ? (u(), y(A, {
489
486
  key: 0,
490
487
  title: e.name
491
488
  }, {
492
- default: n(() => [
493
- m("span", ao, F(`${e.name?.slice(0, 20)}...`), 1)
489
+ default: l(() => [
490
+ m("span", ao, h(`${e.name?.slice(0, 20)}...`), 1)
494
491
  ]),
495
492
  _: 2
496
- }, 1032, ["title"])) : (u(), g("span", no, F(e.name), 1))
493
+ }, 1032, ["title"])) : (u(), g("span", lo, h(e.name), 1))
497
494
  ], 64))), 128))
498
495
  ])
499
496
  ]),
@@ -502,17 +499,17 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
502
499
  ]),
503
500
  _: 1
504
501
  }, 8, ["model"]),
505
- s(Te, {
502
+ s(Ne, {
506
503
  ref_key: "orgRef",
507
504
  ref: b,
508
- "model-value": l(f),
505
+ "model-value": n(f),
509
506
  multiple: "",
510
507
  onSubmit: ge
511
508
  }, null, 8, ["model-value"]),
512
- s(Ve, {
509
+ s($e, {
513
510
  ref_key: "resourceModelRef",
514
511
  ref: T,
515
- mode: l(O),
512
+ mode: n(F),
516
513
  onSelect: ee
517
514
  }, null, 8, ["mode"]),
518
515
  s(Je, {
@@ -527,5 +524,5 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
527
524
  }
528
525
  });
529
526
  export {
530
- vo as _
527
+ fo as _
531
528
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./drawerRole.vue_vue_type_script_setup_true_lang-BET5ukoo.js";
1
+ import { _ as f } from "./drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./drawerRole.vue_vue_type_script_setup_true_lang-BK3zjhop.js";
1
+ import { _ as f } from "./drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js";
2
2
  export {
3
3
  f as default
4
4
  };