@pubinfo/module-rbac 2.0.11 → 2.0.13

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 (87) hide show
  1. package/dist/{IconSelect-CkqLR5Dg.js → IconSelect-Cco4lJFZ.js} +1 -1
  2. package/dist/IconSelect.css +1 -1
  3. package/dist/IconSelect.vue_vue_type_script_setup_true_lang-C9GJFjrV.js +757 -0
  4. package/dist/LayoutForm-DqDnsQcr.js +173 -0
  5. package/dist/LayoutForm.css +1 -0
  6. package/dist/{MetaForm-DtlyvzoM.js → MetaForm-s74FbAc9.js} +51 -43
  7. package/dist/{ResourceEdit-WpEdbzaw.js → ResourceEdit-CNYAteRE.js} +1 -1
  8. package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-BLqs77A8.js +433 -0
  9. package/dist/{ResourceRelation-DGiGYy6V.js → ResourceRelation-CeM9Eq39.js} +10 -11
  10. package/dist/{ResourceRelation-26FnHEfU.js → ResourceRelation-qhIdXLAy.js} +12 -13
  11. package/dist/{TenantEdit-B24X5nND.js → TenantEdit-C61O1pSu.js} +1 -1
  12. package/dist/{TenantEdit.vue_vue_type_script_setup_true_lang-Bu5HcJJv.js → TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js} +39 -40
  13. package/dist/{UserAuthorization-Co6JV0py.js → UserAuthorization-rqttVub5.js} +9 -10
  14. package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +1 -1
  15. package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +1 -1
  16. package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +3 -0
  17. package/dist/components/ResourceIcones/Select.vue.d.ts +3 -0
  18. package/dist/{createAndEditDataPermission-BhOLGGna.js → createAndEditDataPermission-DPeFulie.js} +1 -1
  19. package/dist/{createAndEditDataPermission.vue_vue_type_script_setup_true_lang-D5wInKwO.js → createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js} +98 -101
  20. package/dist/{drawerRole-DHLv47_z.js → drawerRole-CXGVqxPX.js} +1 -1
  21. package/dist/{drawerRole-DUWRM43j.js → drawerRole-CfJjf3v_.js} +1 -1
  22. 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
  23. 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
  24. package/dist/{index-Csfu3kAr.js → index-B5aP0re3.js} +6 -7
  25. package/dist/{index-DwpOyfRe.js → index-BEB4liGe.js} +8 -9
  26. package/dist/{index-DfuGXjYh.js → index-BNwGLzXe.js} +21 -22
  27. package/dist/{index-ioZh8Qom.js → index-BXvJhqJD.js} +6 -7
  28. package/dist/{index-DdoOaWs-.js → index-BsZjgoZQ.js} +1 -1
  29. package/dist/{index-BFx8F5lO.js → index-C2G4xRrJ.js} +8 -9
  30. package/dist/{index-x9Iim2eD.js → index-C5WD-YUu.js} +7 -8
  31. package/dist/{index-rNYtJ7Om.js → index-CbVJdR5M.js} +6 -7
  32. package/dist/{index-DECno0gv.js → index-ChWnVs6j.js} +2 -2
  33. package/dist/{index-C9hHp4Iw.js → index-CoZM8pyH.js} +1 -1
  34. package/dist/{index-B2tTTlBE.js → index-Copy5kiW.js} +276 -273
  35. package/dist/index-D3Xw_aOi.js +144 -0
  36. package/dist/{index-CCw3ZJgQ.js → index-DHVEXch0.js} +8 -9
  37. package/dist/{index-COWUocfL.js → index-Dl0hWfIE.js} +7 -8
  38. package/dist/{index-BIpmC999.js → index-En8oOf9e.js} +8 -9
  39. package/dist/{index-ZQuRR9fG.js → index-VZuizuKs.js} +1 -1
  40. package/dist/{index-BwWrE3dY.js → index-XhYtVVT9.js} +6 -7
  41. package/dist/{index-BUmMaC21.js → index-nAPHtTM7.js} +5 -6
  42. package/dist/{index-y9CQTo95.js → index-qn7U9T51.js} +9 -10
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.js +2588 -2289
  45. package/dist/index10.css +1 -1
  46. package/dist/index11.css +1 -1
  47. package/dist/index12.css +1 -1
  48. package/dist/index13.css +1 -1
  49. package/dist/index14.css +1 -1
  50. package/dist/index15.css +1 -1
  51. package/dist/index16.css +1 -1
  52. package/dist/index17.css +1 -1
  53. package/dist/index4.css +1 -1
  54. package/dist/index5.css +1 -1
  55. package/dist/index6.css +1 -1
  56. package/dist/index7.css +1 -1
  57. package/dist/index8.css +1 -1
  58. package/dist/index9.css +1 -1
  59. package/dist/{loginHistoryDetail-B6eI-TmJ.js → loginHistoryDetail-BZVwG8m2.js} +1 -1
  60. package/dist/{login_history-B4Q1NCJn.js → login_history-CMZGS2PN.js} +5 -6
  61. package/dist/{operateHistoryDetail-CLZ9lyua.js → operateHistoryDetail-Badx3zl-.js} +1 -1
  62. package/dist/{operate_history-KASZ7_JO.js → operate_history-B42WNY1u.js} +5 -6
  63. package/dist/{setItem-BwMHXOUm.js → setItem-Blb3dox4.js} +1 -1
  64. package/dist/{useAppAndResource-38HCqYKa.js → useAppAndResource-DDywX2iz.js} +11 -12
  65. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +3 -3
  66. package/dist/views/data-permission/index.vue.d.ts +3 -3
  67. package/dist/views/resource/components/LayoutForm.vue.d.ts +10 -0
  68. package/dist/views/resource/hooks/useLayoutForm.d.ts +12 -0
  69. package/dist/views/resource/model.d.ts +12 -0
  70. package/package.json +3 -3
  71. package/src/components/ResourceIcones/BoxColorPicker.vue +64 -8
  72. package/src/components/ResourceIcones/Select.vue +13 -5
  73. package/src/index.ts +1 -0
  74. package/src/views/organization/index.vue +17 -10
  75. package/src/views/resource/components/IconSelect.vue +6 -2
  76. package/src/views/resource/components/LayoutForm.vue +92 -0
  77. package/src/views/resource/components/ResourceEdit.vue +24 -0
  78. package/src/views/resource/hooks/useLayoutForm.ts +57 -0
  79. package/src/views/resource/hooks/useMetaForm.ts +2 -0
  80. package/src/views/resource/model.ts +21 -1
  81. package/dist/IconSelect.vue_vue_type_script_setup_true_lang-BoGxAoNd.js +0 -703
  82. package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-id6jZAko.js +0 -392
  83. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  84. package/dist/enum-CTUzwCYG.js +0 -4
  85. package/dist/index-53oBz1jp.js +0 -299
  86. package/dist/index-DVt5k9xh.js +0 -145
  87. package/dist/index18.css +0 -1
@@ -0,0 +1,433 @@
1
+ import { Drawer as ne, Spin as le, Form as re, Row as se, Col as ue, FormItem as ie, Tag as me, RadioGroup as de, Input as pe, InputNumber as fe, Textarea as ce, Switch as _e, Select as ve, Space as ge, Button as be } from "ant-design-vue/es";
2
+ import { DatabaseOutlined as ye } from "@ant-design/icons-vue";
3
+ import { defineComponent as Ne, ref as L, reactive as Ie, computed as E, createBlock as p, openBlock as d, unref as t, isRef as _, withCtx as n, createVNode as o, createCommentVNode as v, createTextVNode as g, toDisplayString as x, createElementBlock as Pe } from "vue";
4
+ import { message as De } from "ant-design-vue";
5
+ import { RESOURCE_TYPE as s, PartyLoginModal as Re } from "pubinfo";
6
+ import { u as C } from "./index.js";
7
+ import { d as Ue, p as Ee, e as Ce } from "./ziyuanjiekou-BC65-bFK.js";
8
+ import { D as Te, b as Ae } from "./enum-DkSNwGbC.js";
9
+ import { r as I, A as P, R as Me } from "./enum-CjyX3J0o.js";
10
+ import { u as Oe, M as Ve, d as Le } from "./MetaForm-s74FbAc9.js";
11
+ import { _ as xe } from "./DynamicRoutesForm.vue_vue_type_script_setup_true_lang-lpCaLpPL.js";
12
+ import { _ as ke } from "./IconSelect.vue_vue_type_script_setup_true_lang-C9GJFjrV.js";
13
+ import we from "./LayoutForm-DqDnsQcr.js";
14
+ import { c as k } from "./cloneDeep-BOLZdR62.js";
15
+ const Se = {
16
+ key: 0,
17
+ class: "flex items-center space-x-1"
18
+ }, We = /* @__PURE__ */ Ne({
19
+ name: "ResourceEdit",
20
+ __name: "ResourceEdit",
21
+ props: {
22
+ dataSource: {}
23
+ },
24
+ emits: ["submit"],
25
+ setup(w, { expose: S, emit: F }) {
26
+ const B = w, q = F, [D, R] = C(!1), T = L(), e = L({}), f = Ie({
27
+ title: "",
28
+ record: {},
29
+ initData: {
30
+ type: s.DYNAMIC_APP,
31
+ sort: 0,
32
+ enable: !0,
33
+ enableDataPermission: !1,
34
+ dataPermissionType: Te.ALL,
35
+ meta: {
36
+ url: "",
37
+ component: ""
38
+ }
39
+ }
40
+ }), Y = {
41
+ name: [{ required: !0, message: "请输入资源名称", trigger: "blur" }],
42
+ type: [{ required: !0, message: "请选择资源类型", trigger: "change" }],
43
+ code: [{ required: !0, message: "请输入资源编码", trigger: "blur" }],
44
+ sort: [{ type: "number", required: !0, message: "请输入排序", trigger: "blur" }],
45
+ enable: [{ type: "boolean", required: !0, message: "请选择是否启用", trigger: "change" }]
46
+ }, b = E(() => $(B.dataSource, (r) => r.id === e.value.parentId) ?? {});
47
+ function $(r, a) {
48
+ const m = [...r];
49
+ for (const u of m) {
50
+ if (a(u))
51
+ return u;
52
+ u.children && m.push(...u.children);
53
+ }
54
+ return null;
55
+ }
56
+ const U = E(() => {
57
+ switch (b.value?.type) {
58
+ case s.APP:
59
+ case s.MICRO_APP:
60
+ case s.DYNAMIC_APP:
61
+ return I.filter((r) => [s.INDEX, s.MENU, s.IFRAME, s.LINK].includes(r.value));
62
+ case s.INDEX:
63
+ return I.filter((r) => [s.INDEX, s.MENU, s.IFRAME, s.LINK, s.NON_MENU].includes(r.value));
64
+ case s.MENU:
65
+ case s.NON_MENU:
66
+ return I.filter((r) => [s.BUTTON, s.NON_MENU].includes(r.value));
67
+ case s.BUTTON:
68
+ case s.IFRAME:
69
+ case s.LINK:
70
+ return [];
71
+ default:
72
+ return I.filter((r) => [
73
+ s.APP,
74
+ /* RESOURCE_TYPE.MICRO_APP, */
75
+ s.DYNAMIC_APP
76
+ ].includes(r.value));
77
+ }
78
+ }), { show: y, resetIncompatibleOptions: A } = Oe(e), h = E(() => e.value.meta?.iframe || e.value.meta?.link || ""), [K, M] = C(!1);
79
+ async function X(r, a) {
80
+ f.title = r, e.value = k(f.initData), R(!0);
81
+ try {
82
+ if (M(!0), r === P.ADD_CHILD && (e.value.parentId = a?.id, e.value.type = U.value[0].value, A()), r === P.EDIT) {
83
+ const m = await Ue({ id: a?.id });
84
+ m.success && (e.value = m.data ?? {}, e.value.meta = { ...Le, ...m.data?.meta }, A());
85
+ }
86
+ } finally {
87
+ M(!1);
88
+ }
89
+ }
90
+ const [z, O] = C(!1);
91
+ function G() {
92
+ T.value?.validate().then(() => {
93
+ const r = k({
94
+ ...e.value,
95
+ icon: e.value.icon || void 0
96
+ });
97
+ y.value.dataPermission || (r.enableDataPermission = !1), y.value.devMode && e.value.meta?.isDev && console.warn("开发模式应用的子路由将不会在生产环境中注册到vue-router,请确保这是预期行为。"), r.meta?.cache && r.meta.cacheName && (r.meta.cache = r.meta.cacheName.split(",")), r.meta?.noCache && (r.meta.noCache = r.meta.noCache.split(",")), r.meta?.cache || delete r?.meta?.noCache, delete r?.meta?.cacheName;
98
+ const a = f.title === P.EDIT ? Ee(r) : Ce({ parentId: "", ...r });
99
+ O(!0), a.then((m) => {
100
+ m?.success && (De.success(`${f.title}成功!`), R(!1), q("submit"));
101
+ }).finally(() => O(!1));
102
+ });
103
+ }
104
+ return S({
105
+ open: X
106
+ }), (r, a) => {
107
+ const m = ye, u = ie, i = ue, H = me, j = de, c = se, N = pe, J = fe, Q = ce, W = _e, Z = ve, ee = re, te = le, V = be, ae = ge, oe = ne;
108
+ return d(), p(oe, {
109
+ open: t(D),
110
+ "onUpdate:open": a[15] || (a[15] = (l) => _(D) ? D.value = l : null),
111
+ title: t(f).title,
112
+ placement: "right",
113
+ width: 800,
114
+ "destroy-on-close": "",
115
+ "footer-style": { textAlign: "right" }
116
+ }, {
117
+ footer: n(() => [
118
+ o(ae, null, {
119
+ default: n(() => [
120
+ o(V, {
121
+ onClick: a[13] || (a[13] = (l) => t(R)(!1))
122
+ }, {
123
+ default: n(() => a[17] || (a[17] = [
124
+ g(" 取消 ")
125
+ ])),
126
+ _: 1,
127
+ __: [17]
128
+ }),
129
+ o(V, {
130
+ type: "primary",
131
+ loading: t(z),
132
+ onClick: a[14] || (a[14] = (l) => G())
133
+ }, {
134
+ default: n(() => a[18] || (a[18] = [
135
+ g(" 提交 ")
136
+ ])),
137
+ _: 1,
138
+ __: [18]
139
+ }, 8, ["loading"])
140
+ ]),
141
+ _: 1
142
+ })
143
+ ]),
144
+ default: n(() => [
145
+ o(te, { spinning: t(K) }, {
146
+ default: n(() => [
147
+ o(ee, {
148
+ ref_key: "formRef",
149
+ ref: T,
150
+ model: t(e),
151
+ rules: Y,
152
+ "label-col": { style: { width: "100px" } }
153
+ }, {
154
+ default: n(() => [
155
+ o(c, { gutter: 8 }, {
156
+ default: n(() => [
157
+ t(b)?.name ? (d(), p(i, {
158
+ key: 0,
159
+ span: 24
160
+ }, {
161
+ default: n(() => [
162
+ o(u, { name: "parentId" }, {
163
+ label: n(() => [
164
+ o(m, { class: "mr-1" }),
165
+ a[16] || (a[16] = g(" 父资源 "))
166
+ ]),
167
+ default: n(() => [
168
+ g(" " + x(t(b)?.name), 1)
169
+ ]),
170
+ _: 1
171
+ })
172
+ ]),
173
+ _: 1
174
+ })) : v("", !0),
175
+ o(i, { span: 24 }, {
176
+ default: n(() => [
177
+ o(u, {
178
+ label: "资源类型",
179
+ name: "type"
180
+ }, {
181
+ default: n(() => [
182
+ t(f).title === t(P).EDIT ? (d(), Pe("div", Se, [
183
+ t(e).type ? (d(), p(H, {
184
+ key: 0,
185
+ color: t(Me)[Number(t(e).type)],
186
+ bordered: !1
187
+ }, {
188
+ default: n(() => [
189
+ g(x(t(U).find((l) => l.value === t(e).type)?.label), 1)
190
+ ]),
191
+ _: 1
192
+ }, 8, ["color"])) : v("", !0)
193
+ ])) : (d(), p(j, {
194
+ key: 1,
195
+ value: t(e).type,
196
+ "onUpdate:value": a[0] || (a[0] = (l) => t(e).type = l),
197
+ options: t(U),
198
+ "option-type": "button",
199
+ "button-style": "solid"
200
+ }, null, 8, ["value", "options"]))
201
+ ]),
202
+ _: 1
203
+ })
204
+ ]),
205
+ _: 1
206
+ }),
207
+ o(i, { span: 24 }, {
208
+ default: n(() => [
209
+ o(ke, {
210
+ modelValue: t(e),
211
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => _(e) ? e.value = l : null)
212
+ }, null, 8, ["modelValue"])
213
+ ]),
214
+ _: 1
215
+ })
216
+ ]),
217
+ _: 1
218
+ }),
219
+ o(c, { gutter: 8 }, {
220
+ default: n(() => [
221
+ o(i, { span: 12 }, {
222
+ default: n(() => [
223
+ o(u, {
224
+ label: "资源名称",
225
+ name: "name"
226
+ }, {
227
+ default: n(() => [
228
+ o(N, {
229
+ value: t(e).name,
230
+ "onUpdate:value": a[2] || (a[2] = (l) => t(e).name = l),
231
+ placeholder: "请输入资源名称",
232
+ maxlength: 128
233
+ }, null, 8, ["value"])
234
+ ]),
235
+ _: 1
236
+ })
237
+ ]),
238
+ _: 1
239
+ }),
240
+ o(xe, {
241
+ modelValue: t(e),
242
+ "onUpdate:modelValue": a[3] || (a[3] = (l) => _(e) ? e.value = l : null),
243
+ parent: t(b)
244
+ }, null, 8, ["modelValue", "parent"]),
245
+ o(i, { span: 12 }, {
246
+ default: n(() => [
247
+ o(u, {
248
+ label: "资源编码",
249
+ name: "code"
250
+ }, {
251
+ default: n(() => [
252
+ o(N, {
253
+ value: t(e).code,
254
+ "onUpdate:value": a[4] || (a[4] = (l) => t(e).code = l),
255
+ placeholder: "请输入资源编码(权限码)",
256
+ maxlength: 50
257
+ }, null, 8, ["value"])
258
+ ]),
259
+ _: 1
260
+ })
261
+ ]),
262
+ _: 1
263
+ }),
264
+ o(i, { span: 12 }, {
265
+ default: n(() => [
266
+ o(u, {
267
+ label: "接口权限",
268
+ name: "permissionCode"
269
+ }, {
270
+ default: n(() => [
271
+ o(N, {
272
+ value: t(e).permissionCode,
273
+ "onUpdate:value": a[5] || (a[5] = (l) => t(e).permissionCode = l),
274
+ placeholder: "请输入接口权限(接口地址,多个使用逗号分隔)",
275
+ maxlength: 256
276
+ }, null, 8, ["value"])
277
+ ]),
278
+ _: 1
279
+ })
280
+ ]),
281
+ _: 1
282
+ }),
283
+ o(i, { span: 12 }, {
284
+ default: n(() => [
285
+ o(u, {
286
+ label: "显示顺序",
287
+ name: "sort"
288
+ }, {
289
+ default: n(() => [
290
+ o(J, {
291
+ value: t(e).sort,
292
+ "onUpdate:value": a[6] || (a[6] = (l) => t(e).sort = l),
293
+ max: 999
294
+ }, null, 8, ["value"])
295
+ ]),
296
+ _: 1
297
+ })
298
+ ]),
299
+ _: 1
300
+ })
301
+ ]),
302
+ _: 1
303
+ }),
304
+ t(y).dynamic ? (d(), p(c, {
305
+ key: 0,
306
+ gutter: 8
307
+ }, {
308
+ default: n(() => [
309
+ o(i, { span: 24 }, {
310
+ default: n(() => [
311
+ o(u, {
312
+ label: "对接第三方",
313
+ name: "description",
314
+ "label-col": { span: 3 }
315
+ }, {
316
+ default: n(() => [
317
+ o(t(Re), {
318
+ modelValue: t(e).meta.partyLogin,
319
+ "onUpdate:modelValue": a[7] || (a[7] = (l) => t(e).meta.partyLogin = l),
320
+ "target-url": t(h)
321
+ }, {
322
+ trigger: n(() => [
323
+ o(N, {
324
+ value: t(e).meta.partyLogin && t(e).meta.partyLogin.length > 0 ? "已配置第三方登录流程" : "",
325
+ placeholder: "配置第三方登录流程",
326
+ readonly: ""
327
+ }, null, 8, ["value"])
328
+ ]),
329
+ _: 1
330
+ }, 8, ["modelValue", "target-url"])
331
+ ]),
332
+ _: 1
333
+ })
334
+ ]),
335
+ _: 1
336
+ })
337
+ ]),
338
+ _: 1
339
+ })) : v("", !0),
340
+ o(c, { gutter: 8 }, {
341
+ default: n(() => [
342
+ o(i, { span: 24 }, {
343
+ default: n(() => [
344
+ o(u, {
345
+ label: "描述",
346
+ name: "description",
347
+ "label-col": { span: 3 }
348
+ }, {
349
+ default: n(() => [
350
+ o(Q, {
351
+ value: t(e).description,
352
+ "onUpdate:value": a[8] || (a[8] = (l) => t(e).description = l),
353
+ placeholder: "请输入描述",
354
+ maxlength: 255,
355
+ "auto-size": { minRows: 2 },
356
+ "show-count": ""
357
+ }, null, 8, ["value"])
358
+ ]),
359
+ _: 1
360
+ })
361
+ ]),
362
+ _: 1
363
+ })
364
+ ]),
365
+ _: 1
366
+ }),
367
+ t(y).dataPermission ? (d(), p(c, {
368
+ key: 1,
369
+ gutter: 8
370
+ }, {
371
+ default: n(() => [
372
+ o(i, { span: 8 }, {
373
+ default: n(() => [
374
+ o(u, {
375
+ label: "启用数据权限",
376
+ name: "enableDataPermission"
377
+ }, {
378
+ default: n(() => [
379
+ o(W, {
380
+ checked: t(e).enableDataPermission,
381
+ "onUpdate:checked": a[9] || (a[9] = (l) => t(e).enableDataPermission = l)
382
+ }, null, 8, ["checked"])
383
+ ]),
384
+ _: 1
385
+ })
386
+ ]),
387
+ _: 1
388
+ }),
389
+ o(i, { span: 16 }, {
390
+ default: n(() => [
391
+ t(e).enableDataPermission ? (d(), p(u, {
392
+ key: 0,
393
+ label: "数据权限规则",
394
+ name: "dataPermissionType"
395
+ }, {
396
+ default: n(() => [
397
+ o(Z, {
398
+ value: t(e).dataPermissionType,
399
+ "onUpdate:value": a[10] || (a[10] = (l) => t(e).dataPermissionType = l),
400
+ options: t(Ae)
401
+ }, null, 8, ["value", "options"])
402
+ ]),
403
+ _: 1
404
+ })) : v("", !0)
405
+ ]),
406
+ _: 1
407
+ })
408
+ ]),
409
+ _: 1
410
+ })) : v("", !0),
411
+ o(Ve, {
412
+ modelValue: t(e),
413
+ "onUpdate:modelValue": a[11] || (a[11] = (l) => _(e) ? e.value = l : null)
414
+ }, null, 8, ["modelValue"]),
415
+ o(we, {
416
+ modelValue: t(e),
417
+ "onUpdate:modelValue": a[12] || (a[12] = (l) => _(e) ? e.value = l : null)
418
+ }, null, 8, ["modelValue"])
419
+ ]),
420
+ _: 1
421
+ }, 8, ["model"])
422
+ ]),
423
+ _: 1
424
+ }, 8, ["spinning"])
425
+ ]),
426
+ _: 1
427
+ }, 8, ["open", "title"]);
428
+ };
429
+ }
430
+ });
431
+ export {
432
+ We as _
433
+ };
@@ -1,10 +1,9 @@
1
1
  import { Drawer as x, Avatar as h } from "ant-design-vue/es";
2
- import { defineComponent as k, ref as b, createBlock as v, openBlock as d, unref as s, isRef as w, withCtx as l, createVNode as p, createElementBlock as N, createCommentVNode as I, createElementVNode as C, normalizeStyle as z, createTextVNode as P, toDisplayString as u } from "vue";
2
+ import { defineComponent as k, ref as b, createBlock as v, openBlock as d, unref as s, isRef as w, withCtx as l, createVNode as u, createElementBlock as N, createCommentVNode as I, createElementVNode as C, normalizeStyle as z, createTextVNode as P, toDisplayString as p } from "vue";
3
3
  import { ProTable as S } from "@pubinfo/pro-components";
4
4
  import { theme as T } from "ant-design-vue";
5
- import { u as V } from "./index.js";
6
- import { e as B } from "./jiaosejiekou-p42Hm9h3.js";
7
- import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import { u as V, _ as B } from "./index.js";
6
+ import { e as A } from "./jiaosejiekou-p42Hm9h3.js";
8
7
  import './ResourceRelation2.css';const D = {
9
8
  key: 0,
10
9
  class: "w-full truncate space-x-2"
@@ -15,7 +14,7 @@ import './ResourceRelation2.css';const D = {
15
14
  const { token: f } = T.useToken(), [a, _] = V(!1), c = b("");
16
15
  async function g(t) {
17
16
  t.pageSize = 15, t.roleId = c.value;
18
- const { current: o, pageSize: r, ...n } = t, e = await B({
17
+ const { current: o, pageSize: r, ...n } = t, e = await A({
19
18
  currentPage: o,
20
19
  pageSize: r,
21
20
  ...n
@@ -56,7 +55,7 @@ import './ResourceRelation2.css';const D = {
56
55
  "body-style": { paddingLeft: 0, paddingRight: 0 }
57
56
  }, {
58
57
  default: l(() => [
59
- p(s(S), {
58
+ u(s(S), {
60
59
  "row-key": "id",
61
60
  request: g,
62
61
  columns: y,
@@ -66,16 +65,16 @@ import './ResourceRelation2.css';const D = {
66
65
  }, {
67
66
  bodyCell: l(({ column: e, text: i }) => [
68
67
  e.dataIndex === "realName" ? (d(), N("div", D, [
69
- p(r, {
68
+ u(r, {
70
69
  size: "small",
71
70
  style: z({ backgroundColor: s(f).colorPrimary })
72
71
  }, {
73
72
  default: l(() => [
74
- P(u(i[0]), 1)
73
+ P(p(i[0]), 1)
75
74
  ]),
76
75
  _: 2
77
76
  }, 1032, ["style"]),
78
- C("span", null, u(i), 1)
77
+ C("span", null, p(i), 1)
79
78
  ])) : I("", !0)
80
79
  ]),
81
80
  _: 1
@@ -85,7 +84,7 @@ import './ResourceRelation2.css';const D = {
85
84
  }, 8, ["open"]);
86
85
  };
87
86
  }
88
- }), J = /* @__PURE__ */ A(E, [["__scopeId", "data-v-f5867bc7"]]);
87
+ }), H = /* @__PURE__ */ B(E, [["__scopeId", "data-v-f5867bc7"]]);
89
88
  export {
90
- J as default
89
+ H as default
91
90
  };
@@ -1,10 +1,9 @@
1
1
  import { Drawer as N, Segmented as O, Tag as P } from "ant-design-vue/es";
2
- import { defineComponent as S, ref as s, computed as T, createBlock as g, openBlock as c, unref as a, isRef as x, withCtx as p, createElementVNode as v, createVNode as R, createElementBlock as V, createCommentVNode as y, toDisplayString as q, createTextVNode as B } from "vue";
2
+ import { defineComponent as S, ref as s, computed as T, createBlock as g, openBlock as c, unref as a, isRef as x, withCtx as u, createElementVNode as v, createVNode as R, createElementBlock as V, createCommentVNode as y, toDisplayString as q, createTextVNode as B } from "vue";
3
3
  import { ProTable as U } from "@pubinfo/pro-components";
4
- import { u as z } from "./index.js";
5
- import { e as D } from "./jiaosejiekou-p42Hm9h3.js";
6
- import { a as E } from "./zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js";
7
- import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { u as z, _ as D } from "./index.js";
5
+ import { e as E } from "./jiaosejiekou-p42Hm9h3.js";
6
+ import { a as A } from "./zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js";
8
7
  import './ResourceRelation.css';const L = { class: "mb-20px p-x-15px" }, j = {
9
8
  key: 0,
10
9
  class: "flex items-center"
@@ -12,13 +11,13 @@ import './ResourceRelation.css';const L = { class: "mb-20px p-x-15px" }, j = {
12
11
  name: "ResourceRelation",
13
12
  __name: "ResourceRelation",
14
13
  setup(H, { expose: b }) {
15
- const u = s(["用户自选角色", "组织基础角色"]), n = s(u.value[0]), [r, h] = z(!1), d = s(""), m = s();
14
+ const p = s(["用户自选角色", "组织基础角色"]), n = s(p.value[0]), [r, h] = z(!1), d = s(""), m = s();
16
15
  function k() {
17
16
  m.value.fetch();
18
17
  }
19
18
  async function I(o) {
20
19
  o.pageSize = 15, o.roleId = d.value;
21
- const { current: t, pageSize: l, ...i } = o, e = await (n.value === "用户自选角色" ? D : E)({
20
+ const { current: t, pageSize: l, ...i } = o, e = await (n.value === "用户自选角色" ? E : A)({
22
21
  currentPage: t,
23
22
  pageSize: l,
24
23
  ...i
@@ -64,13 +63,13 @@ import './ResourceRelation.css';const L = { class: "mb-20px p-x-15px" }, j = {
64
63
  "footer-style": { textAlign: "right" },
65
64
  "body-style": { paddingLeft: 0, paddingRight: 0 }
66
65
  }, {
67
- default: p(() => [
66
+ default: u(() => [
68
67
  v("div", L, [
69
68
  R(l, {
70
69
  value: a(n),
71
70
  "onUpdate:value": t[0] || (t[0] = (e) => x(n) ? n.value = e : null),
72
71
  block: "",
73
- options: a(u),
72
+ options: a(p),
74
73
  onChange: k
75
74
  }, null, 8, ["value", "options"])
76
75
  ]),
@@ -84,14 +83,14 @@ import './ResourceRelation.css';const L = { class: "mb-20px p-x-15px" }, j = {
84
83
  toolbar: !1,
85
84
  "auto-height": { offset: 50 }
86
85
  }, {
87
- bodyCell: p(({ column: e, record: _ }) => [
86
+ bodyCell: u(({ column: e, record: _ }) => [
88
87
  e.dataIndex === "name" ? (c(), V("div", j, [
89
88
  v("span", F, q(_.name), 1),
90
89
  _.isInherit === "1" ? (c(), g(i, {
91
90
  key: 0,
92
91
  color: "processing"
93
92
  }, {
94
- default: p(() => t[2] || (t[2] = [
93
+ default: u(() => t[2] || (t[2] = [
95
94
  B(" 及子组织 ")
96
95
  ])),
97
96
  _: 1,
@@ -106,7 +105,7 @@ import './ResourceRelation.css';const L = { class: "mb-20px p-x-15px" }, j = {
106
105
  }, 8, ["open"]);
107
106
  };
108
107
  }
109
- }), Z = /* @__PURE__ */ A(G, [["__scopeId", "data-v-1167727f"]]);
108
+ }), Y = /* @__PURE__ */ D(G, [["__scopeId", "data-v-1167727f"]]);
110
109
  export {
111
- Z as default
110
+ Y as default
112
111
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./TenantEdit.vue_vue_type_script_setup_true_lang-Bu5HcJJv.js";
1
+ import { _ as f } from "./TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js";
2
2
  export {
3
3
  f as default
4
4
  };