jmash-core 0.0.49 → 0.0.51
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.
- package/dist/{401-DETaRps-.mjs → 401-BNXZCfFE.mjs} +2 -2
- package/dist/{404-DiHT3ACX.mjs → 404-CFy70k1a.mjs} +1 -1
- package/dist/{BarChart-BmIdQB_Y.mjs → BarChart-BCSD0J0w.mjs} +14 -14
- package/dist/{PieChart-CZI2A5fL.mjs → PieChart-xFbnMnB3.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-FP9Ll0HI.mjs → PieChart.vue_vue_type_script_setup_true_lang-uDgwp-T9.mjs} +2 -2
- package/dist/{RadarChart-2E0mVDiY.mjs → RadarChart-C4Jm8jEz.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-BeX8n7rQ.mjs → RadarChart.vue_vue_type_script_setup_true_lang-ivjJs5nk.mjs} +2 -2
- package/dist/{el-card-DRX29o4Y.mjs → el-card-aEhcMOBr.mjs} +1 -1
- package/dist/{el-col-XlT_QA9e.mjs → el-col-DcA4Ygq4.mjs} +1 -1
- package/dist/{el-form-item-CUvx-umO.mjs → el-form-item-DmksiVqL.mjs} +149 -156
- package/dist/{index-D9xST3GD.mjs → index-4dMskZsZ.mjs} +13 -14
- package/dist/{index-KDg1i5nh.mjs → index-BpKRuP9j.mjs} +8301 -7591
- package/dist/{index-Dg2Ro1Aj.mjs → index-Ci01gGSz.mjs} +1 -1
- package/dist/{index-CQwmlUU7.mjs → index-D5H2nl9-.mjs} +17 -17
- package/dist/{index-D_cuhZko.mjs → index-DVQShZJq.mjs} +92 -97
- package/dist/index.mjs +34 -34
- package/dist/{picture-CNWzaHoy.mjs → picture-p9QHxsl8.mjs} +128 -128
- package/dist/{position-FpyBpUqO.mjs → position-vzMtlIQ5.mjs} +1 -1
- package/dist/{profile-LtIhvqPx.mjs → profile-CLv06oKl.mjs} +307 -307
- package/dist/{runAs-D-8Yqmaw.mjs → runAs-BJzJfiZp.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-B6mXrD2I.mjs → runAs.vue_vue_type_script_setup_true_lang-Bz10ZbFN.mjs} +68 -68
- package/dist/style.css +1 -1
- package/dist/{types-BPvl-t72.mjs → types-C8new8Gl.mjs} +5 -5
- package/dist/{updatePwd-BIAxPH4m.mjs → updatePwd-B0qsc3G5.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-CtvWgb-b.mjs → updatePwd.vue_vue_type_script_setup_true_lang-Deg3HNUC.mjs} +6 -6
- package/package.json +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-D1uid99B.mjs +0 -720
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as we, t as Be, I as Te, s as Me, H as ke, E as Se,
|
|
2
|
-
import { nextTick as $, defineComponent as ue, computed as w, ref as C, reactive as de, watch as se, onMounted as Xe, onBeforeUnmount as Ge, toRefs as We, resolveComponent as k, openBlock as f, createBlock as g, Transition as Ze, withCtx as m, withDirectives as H, createVNode as h, createElementVNode as v, normalizeClass as d, normalizeStyle as le, withModifiers as D, createElementBlock as K, resolveDynamicComponent as U, createCommentVNode as S, toDisplayString as O, withKeys as F, renderSlot as Je, createTextVNode as
|
|
1
|
+
import { A as we, t as Be, I as Te, s as Me, H as ke, E as Se, bf as Ie, bg as Ae, bh as Ve, bi as _, bj as ee, bk as Re, bl as Le, _ as Oe, bm as $e, c as Ne, g as ie, j as ne, V as Pe, aZ as ze, al as oe, aM as te, z as De, bn as Ue, a2 as L, bo as Fe, bp as He, X as Ke, bq as qe, aq as je } from "./index-BpKRuP9j.mjs";
|
|
2
|
+
import { nextTick as $, defineComponent as ue, computed as w, ref as C, reactive as de, watch as se, onMounted as Xe, onBeforeUnmount as Ge, toRefs as We, resolveComponent as k, openBlock as f, createBlock as g, Transition as Ze, withCtx as m, withDirectives as H, createVNode as h, createElementVNode as v, normalizeClass as d, normalizeStyle as le, withModifiers as D, createElementBlock as K, resolveDynamicComponent as U, createCommentVNode as S, toDisplayString as O, withKeys as F, renderSlot as Je, createTextVNode as q, vShow as j, isVNode as ce, render as fe, useModel as Qe, resolveDirective as Ye, unref as X } from "vue";
|
|
3
3
|
const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])', _e = (e) => process.env.NODE_ENV === "test" ? !0 : getComputedStyle(e).position === "fixed" ? !1 : e.offsetParent !== null, ae = (e) => Array.from(e.querySelectorAll(xe)).filter((n) => en(n) && _e(n)), en = (e) => {
|
|
4
4
|
if (e.tabIndex > 0 || e.tabIndex === 0 && e.getAttribute("tabIndex") !== null)
|
|
5
5
|
return !0;
|
|
@@ -17,25 +17,25 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
|
|
|
17
17
|
default:
|
|
18
18
|
return !1;
|
|
19
19
|
}
|
|
20
|
-
}, hn = function(e, n, ...
|
|
20
|
+
}, hn = function(e, n, ...t) {
|
|
21
21
|
let s;
|
|
22
22
|
n.includes("mouse") || n.includes("click") ? s = "MouseEvents" : n.includes("key") ? s = "KeyboardEvent" : s = "HTMLEvents";
|
|
23
23
|
const a = document.createEvent(s);
|
|
24
|
-
return a.initEvent(n, ...
|
|
24
|
+
return a.initEvent(n, ...t), e.dispatchEvent(a), e;
|
|
25
25
|
}, G = "_trap-focus-children", B = [], re = (e) => {
|
|
26
26
|
var n;
|
|
27
27
|
if (B.length === 0)
|
|
28
28
|
return;
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
if (
|
|
32
|
-
e.preventDefault(), document.activeElement !==
|
|
29
|
+
const t = B[B.length - 1][G];
|
|
30
|
+
if (t.length > 0 && e.code === we.tab) {
|
|
31
|
+
if (t.length === 1) {
|
|
32
|
+
e.preventDefault(), document.activeElement !== t[0] && t[0].focus();
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
|
-
const s = e.shiftKey, a = e.target ===
|
|
36
|
-
if (a && s && (e.preventDefault(),
|
|
37
|
-
const r =
|
|
38
|
-
r !== -1 && ((n =
|
|
35
|
+
const s = e.shiftKey, a = e.target === t[0], l = e.target === t[t.length - 1];
|
|
36
|
+
if (a && s && (e.preventDefault(), t[t.length - 1].focus()), l && !s && (e.preventDefault(), t[0].focus()), process.env.NODE_ENV === "test") {
|
|
37
|
+
const r = t.indexOf(e.target);
|
|
38
|
+
r !== -1 && ((n = t[s ? r - 1 : r + 1]) == null || n.focus());
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}, nn = {
|
|
@@ -50,7 +50,7 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
|
|
|
50
50
|
unmounted() {
|
|
51
51
|
B.shift(), B.length === 0 && document.removeEventListener("keydown", re);
|
|
52
52
|
}
|
|
53
|
-
},
|
|
53
|
+
}, on = ue({
|
|
54
54
|
name: "ElMessageBox",
|
|
55
55
|
directives: {
|
|
56
56
|
TrapFocus: nn
|
|
@@ -112,11 +112,11 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
|
|
|
112
112
|
emits: ["vanish", "action"],
|
|
113
113
|
setup(e, { emit: n }) {
|
|
114
114
|
const {
|
|
115
|
-
locale:
|
|
115
|
+
locale: t,
|
|
116
116
|
zIndex: s,
|
|
117
117
|
ns: a,
|
|
118
118
|
size: l
|
|
119
|
-
} = Ve("message-box", w(() => e.buttonSize)), { t: r } =
|
|
119
|
+
} = Ve("message-box", w(() => e.buttonSize)), { t: r } = t, { nextZIndex: c } = s, p = C(!1), o = de({
|
|
120
120
|
autofocus: !0,
|
|
121
121
|
beforeClose: null,
|
|
122
122
|
callback: null,
|
|
@@ -151,17 +151,17 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
|
|
|
151
151
|
validateError: !1,
|
|
152
152
|
zIndex: c()
|
|
153
153
|
}), A = w(() => {
|
|
154
|
-
const i =
|
|
154
|
+
const i = o.type;
|
|
155
155
|
return { [a.bm("icon", i)]: i && _[i] };
|
|
156
|
-
}), E = ee(), u = ee(), pe = w(() =>
|
|
157
|
-
se(() =>
|
|
156
|
+
}), E = ee(), u = ee(), pe = w(() => o.icon || _[o.type] || ""), me = w(() => !!o.message), T = C(), W = C(), V = C(), P = C(), Z = C(), ve = w(() => o.confirmButtonClass);
|
|
157
|
+
se(() => o.inputValue, async (i) => {
|
|
158
158
|
await $(), e.boxType === "prompt" && i !== null && Q();
|
|
159
159
|
}, { immediate: !0 }), se(() => p.value, (i) => {
|
|
160
160
|
var b, M;
|
|
161
|
-
i && (e.boxType !== "prompt" && (
|
|
161
|
+
i && (e.boxType !== "prompt" && (o.autofocus ? V.value = (M = (b = Z.value) == null ? void 0 : b.$el) != null ? M : T.value : V.value = T.value), o.zIndex = c()), e.boxType === "prompt" && (i ? $().then(() => {
|
|
162
162
|
var x;
|
|
163
|
-
P.value && P.value.$el && (
|
|
164
|
-
}) : (
|
|
163
|
+
P.value && P.value.$el && (o.autofocus ? V.value = (x = he()) != null ? x : T.value : V.value = T.value);
|
|
164
|
+
}) : (o.editorErrorMessage = "", o.validateError = !1));
|
|
165
165
|
});
|
|
166
166
|
const ge = w(() => e.draggable), be = w(() => e.overflow);
|
|
167
167
|
Re(T, W, ge, be), Xe(async () => {
|
|
@@ -171,32 +171,32 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
|
|
|
171
171
|
});
|
|
172
172
|
function R() {
|
|
173
173
|
p.value && (p.value = !1, $(() => {
|
|
174
|
-
|
|
174
|
+
o.action && n("action", o.action);
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
177
|
const J = () => {
|
|
178
|
-
e.closeOnClickModal && z(
|
|
178
|
+
e.closeOnClickModal && z(o.distinguishCancelAndClose ? "close" : "cancel");
|
|
179
179
|
}, ye = $e(J), Ce = (i) => {
|
|
180
|
-
if (
|
|
180
|
+
if (o.inputType !== "textarea")
|
|
181
181
|
return i.preventDefault(), z("confirm");
|
|
182
182
|
}, z = (i) => {
|
|
183
183
|
var b;
|
|
184
|
-
e.boxType === "prompt" && i === "confirm" && !Q() || (
|
|
184
|
+
e.boxType === "prompt" && i === "confirm" && !Q() || (o.action = i, o.beforeClose ? (b = o.beforeClose) == null || b.call(o, i, o, R) : R());
|
|
185
185
|
}, Q = () => {
|
|
186
186
|
if (e.boxType === "prompt") {
|
|
187
|
-
const i =
|
|
188
|
-
if (i && !i.test(
|
|
189
|
-
return
|
|
190
|
-
const b =
|
|
187
|
+
const i = o.inputPattern;
|
|
188
|
+
if (i && !i.test(o.inputValue || ""))
|
|
189
|
+
return o.editorErrorMessage = o.inputErrorMessage || r("el.messagebox.error"), o.validateError = !0, !1;
|
|
190
|
+
const b = o.inputValidator;
|
|
191
191
|
if (typeof b == "function") {
|
|
192
|
-
const M = b(
|
|
192
|
+
const M = b(o.inputValue);
|
|
193
193
|
if (M === !1)
|
|
194
|
-
return
|
|
194
|
+
return o.editorErrorMessage = o.inputErrorMessage || r("el.messagebox.error"), o.validateError = !0, !1;
|
|
195
195
|
if (typeof M == "string")
|
|
196
|
-
return
|
|
196
|
+
return o.editorErrorMessage = M, o.validateError = !0, !1;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
return
|
|
199
|
+
return o.editorErrorMessage = "", o.validateError = !1, !0;
|
|
200
200
|
}, he = () => {
|
|
201
201
|
const i = P.value.$refs;
|
|
202
202
|
return i.input || i.textarea;
|
|
@@ -206,7 +206,7 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
|
|
|
206
206
|
e.closeOnPressEscape && Y();
|
|
207
207
|
};
|
|
208
208
|
return e.lockScroll && Le(p), {
|
|
209
|
-
...We(
|
|
209
|
+
...We(o),
|
|
210
210
|
ns: a,
|
|
211
211
|
overlayEvent: ye,
|
|
212
212
|
visible: p,
|
|
@@ -231,9 +231,9 @@ const xe = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
|
|
|
231
231
|
t: r
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
|
-
}),
|
|
235
|
-
function an(e, n,
|
|
236
|
-
const r = k("el-icon"), c = k("close"), p = k("el-input"),
|
|
234
|
+
}), tn = ["aria-label", "aria-describedby"], sn = ["aria-label"], ln = ["id"];
|
|
235
|
+
function an(e, n, t, s, a, l) {
|
|
236
|
+
const r = k("el-icon"), c = k("close"), p = k("el-input"), o = k("el-button"), A = k("el-focus-trap"), E = k("el-overlay");
|
|
237
237
|
return f(), g(Ze, {
|
|
238
238
|
name: "fade-in-linear",
|
|
239
239
|
onAfterLeave: n[11] || (n[11] = (u) => e.$emit("vanish")),
|
|
@@ -344,7 +344,7 @@ function an(e, n, o, s, a, l) {
|
|
|
344
344
|
for: e.showInput ? e.inputId : void 0
|
|
345
345
|
}, {
|
|
346
346
|
default: m(() => [
|
|
347
|
-
|
|
347
|
+
q(O(e.dangerouslyUseHTMLString ? "" : e.message), 1)
|
|
348
348
|
]),
|
|
349
349
|
_: 1
|
|
350
350
|
}, 8, ["for"]))
|
|
@@ -372,13 +372,13 @@ function an(e, n, o, s, a, l) {
|
|
|
372
372
|
})
|
|
373
373
|
}, O(e.editorErrorMessage), 7)
|
|
374
374
|
], 2), [
|
|
375
|
-
[
|
|
375
|
+
[j, e.showInput]
|
|
376
376
|
])
|
|
377
377
|
], 10, ln),
|
|
378
378
|
v("div", {
|
|
379
379
|
class: d(e.ns.e("btns"))
|
|
380
380
|
}, [
|
|
381
|
-
e.showCancelButton ? (f(), g(
|
|
381
|
+
e.showCancelButton ? (f(), g(o, {
|
|
382
382
|
key: 0,
|
|
383
383
|
loading: e.cancelButtonLoading,
|
|
384
384
|
class: d([e.cancelButtonClass]),
|
|
@@ -388,11 +388,11 @@ function an(e, n, o, s, a, l) {
|
|
|
388
388
|
onKeydown: n[4] || (n[4] = F(D((u) => e.handleAction("cancel"), ["prevent"]), ["enter"]))
|
|
389
389
|
}, {
|
|
390
390
|
default: m(() => [
|
|
391
|
-
|
|
391
|
+
q(O(e.cancelButtonText || e.t("el.messagebox.cancel")), 1)
|
|
392
392
|
]),
|
|
393
393
|
_: 1
|
|
394
394
|
}, 8, ["loading", "class", "round", "size"])) : S("v-if", !0),
|
|
395
|
-
H(h(
|
|
395
|
+
H(h(o, {
|
|
396
396
|
ref: "confirmRef",
|
|
397
397
|
type: "primary",
|
|
398
398
|
loading: e.confirmButtonLoading,
|
|
@@ -404,46 +404,46 @@ function an(e, n, o, s, a, l) {
|
|
|
404
404
|
onKeydown: n[6] || (n[6] = F(D((u) => e.handleAction("confirm"), ["prevent"]), ["enter"]))
|
|
405
405
|
}, {
|
|
406
406
|
default: m(() => [
|
|
407
|
-
|
|
407
|
+
q(O(e.confirmButtonText || e.t("el.messagebox.confirm")), 1)
|
|
408
408
|
]),
|
|
409
409
|
_: 1
|
|
410
410
|
}, 8, ["loading", "class", "round", "disabled", "size"]), [
|
|
411
|
-
[
|
|
411
|
+
[j, e.showConfirmButton]
|
|
412
412
|
])
|
|
413
413
|
], 2)
|
|
414
414
|
], 6)
|
|
415
415
|
]),
|
|
416
416
|
_: 3
|
|
417
417
|
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
|
|
418
|
-
], 42,
|
|
418
|
+
], 42, tn)
|
|
419
419
|
]),
|
|
420
420
|
_: 3
|
|
421
421
|
}, 8, ["z-index", "overlay-class", "mask"]), [
|
|
422
|
-
[
|
|
422
|
+
[j, e.visible]
|
|
423
423
|
])
|
|
424
424
|
]),
|
|
425
425
|
_: 3
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
|
-
var rn = /* @__PURE__ */ Oe(
|
|
428
|
+
var rn = /* @__PURE__ */ Oe(on, [["render", an], ["__file", "index.vue"]]);
|
|
429
429
|
const N = /* @__PURE__ */ new Map(), un = (e) => {
|
|
430
430
|
let n = document.body;
|
|
431
|
-
return e.appendTo && (ie(e.appendTo) && (n = document.querySelector(e.appendTo)),
|
|
432
|
-
}, dn = (e, n,
|
|
433
|
-
const s = h(rn, e,
|
|
434
|
-
default:
|
|
431
|
+
return e.appendTo && (ie(e.appendTo) && (n = document.querySelector(e.appendTo)), te(e.appendTo) && (n = e.appendTo), te(n) || (De("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body."), n = document.body)), n;
|
|
432
|
+
}, dn = (e, n, t = null) => {
|
|
433
|
+
const s = h(rn, e, oe(e.message) || ce(e.message) ? {
|
|
434
|
+
default: oe(e.message) ? e.message : () => e.message
|
|
435
435
|
} : null);
|
|
436
|
-
return s.appContext =
|
|
436
|
+
return s.appContext = t, fe(s, n), un(e).appendChild(n.firstElementChild), s.component;
|
|
437
437
|
}, cn = () => document.createElement("div"), fn = (e, n) => {
|
|
438
|
-
const
|
|
438
|
+
const t = cn();
|
|
439
439
|
e.onVanish = () => {
|
|
440
|
-
fe(null,
|
|
440
|
+
fe(null, t), N.delete(a);
|
|
441
441
|
}, e.onAction = (l) => {
|
|
442
442
|
const r = N.get(a);
|
|
443
443
|
let c;
|
|
444
444
|
e.showInput ? c = { value: a.inputValue, action: l } : c = l, e.callback ? e.callback(c, s.proxy) : l === "cancel" || l === "close" ? e.distinguishCancelAndClose && l !== "cancel" ? r.reject("close") : r.reject("cancel") : r.resolve(c);
|
|
445
445
|
};
|
|
446
|
-
const s = dn(e,
|
|
446
|
+
const s = dn(e, t, n), a = s.proxy;
|
|
447
447
|
for (const l in e)
|
|
448
448
|
ne(e, l) && !ne(a.$props, l) && (a[l] = e[l]);
|
|
449
449
|
return a.visible = !0, a;
|
|
@@ -451,14 +451,14 @@ const N = /* @__PURE__ */ new Map(), un = (e) => {
|
|
|
451
451
|
function I(e, n = null) {
|
|
452
452
|
if (!Ne)
|
|
453
453
|
return Promise.reject();
|
|
454
|
-
let
|
|
454
|
+
let t;
|
|
455
455
|
return ie(e) || ce(e) ? e = {
|
|
456
456
|
message: e
|
|
457
|
-
} :
|
|
457
|
+
} : t = e.callback, new Promise((s, a) => {
|
|
458
458
|
const l = fn(e, n ?? I._context);
|
|
459
459
|
N.set(l, {
|
|
460
460
|
options: e,
|
|
461
|
-
callback:
|
|
461
|
+
callback: t,
|
|
462
462
|
resolve: s,
|
|
463
463
|
reject: a
|
|
464
464
|
});
|
|
@@ -473,9 +473,9 @@ pn.forEach((e) => {
|
|
|
473
473
|
I[e] = vn(e);
|
|
474
474
|
});
|
|
475
475
|
function vn(e) {
|
|
476
|
-
return (n,
|
|
476
|
+
return (n, t, s, a) => {
|
|
477
477
|
let l = "";
|
|
478
|
-
return Pe(
|
|
478
|
+
return Pe(t) ? (s = t, l = "") : ze(t) ? l = "" : l = t, I(Object.assign({
|
|
479
479
|
title: l,
|
|
480
480
|
message: n,
|
|
481
481
|
type: "",
|
|
@@ -503,7 +503,7 @@ const gn = y, bn = ["onClick"], En = /* @__PURE__ */ ue({
|
|
|
503
503
|
},
|
|
504
504
|
emits: ["update:modelValue"],
|
|
505
505
|
setup(e) {
|
|
506
|
-
const n = C(!1),
|
|
506
|
+
const n = C(!1), t = C([]), s = Qe(e, "modelValue"), a = de([
|
|
507
507
|
{
|
|
508
508
|
label: "用户名",
|
|
509
509
|
prop: "loginName",
|
|
@@ -548,7 +548,7 @@ const gn = y, bn = ["onClick"], En = /* @__PURE__ */ ue({
|
|
|
548
548
|
}
|
|
549
549
|
]);
|
|
550
550
|
n.value = !0, Ue().then(({ data: r }) => {
|
|
551
|
-
console.log(r), n.value = !1,
|
|
551
|
+
console.log(r), n.value = !1, t.value = r.results;
|
|
552
552
|
});
|
|
553
553
|
function l(r) {
|
|
554
554
|
gn.confirm("确定切换用户身份吗?", "提示", {
|
|
@@ -559,8 +559,8 @@ const gn = y, bn = ["onClick"], En = /* @__PURE__ */ ue({
|
|
|
559
559
|
console.log(L()), Fe(r.userId).then(async (c) => {
|
|
560
560
|
if (c.status === 200) {
|
|
561
561
|
L().user.roleCodes = [], L().user.permCodes = [];
|
|
562
|
-
const { roleCodes: p } = await L().getRoleInfo(),
|
|
563
|
-
await He().generateRoutes(p,
|
|
562
|
+
const { roleCodes: p } = await L().getRoleInfo(), o = await L().getUserInfo();
|
|
563
|
+
await He().generateRoutes(p, o), Ke({
|
|
564
564
|
message: "切换成功",
|
|
565
565
|
type: "success"
|
|
566
566
|
}), s.value = !1;
|
|
@@ -569,8 +569,8 @@ const gn = y, bn = ["onClick"], En = /* @__PURE__ */ ue({
|
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
return (r, c) => {
|
|
572
|
-
const p =
|
|
573
|
-
return f(), g(
|
|
572
|
+
const p = qe, o = je, A = Ye("hasPerm");
|
|
573
|
+
return f(), g(o, {
|
|
574
574
|
title: "切换身份",
|
|
575
575
|
modelValue: s.value,
|
|
576
576
|
"onUpdate:modelValue": c[0] || (c[0] = (E) => s.value = E),
|
|
@@ -582,7 +582,7 @@ const gn = y, bn = ["onClick"], En = /* @__PURE__ */ ue({
|
|
|
582
582
|
ref: "multipleTableRef",
|
|
583
583
|
"row-keys": "userId",
|
|
584
584
|
"list-loading": X(n),
|
|
585
|
-
"table-data": X(
|
|
585
|
+
"table-data": X(t),
|
|
586
586
|
"table-label": X(a)
|
|
587
587
|
}, {
|
|
588
588
|
operation: m((E) => [
|
|
@@ -590,7 +590,7 @@ const gn = y, bn = ["onClick"], En = /* @__PURE__ */ ue({
|
|
|
590
590
|
class: "el-button-color",
|
|
591
591
|
onClick: (u) => l(E.data.row)
|
|
592
592
|
}, [
|
|
593
|
-
|
|
593
|
+
q(" 切换 ")
|
|
594
594
|
], 8, bn)), [
|
|
595
595
|
[A, ["rbac:user:switch"]]
|
|
596
596
|
])
|