jmash-core 0.0.84 → 0.0.86
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-BOgGx9Jd.mjs → 401-DwHfhZm2.mjs} +43 -44
- package/dist/{404-BYxlSqoT.mjs → 404-CeKwDY4M.mjs} +1 -1
- package/dist/{BarChart-C22Beea1.mjs → BarChart-BOhw_pWJ.mjs} +30 -31
- package/dist/{FunnelChart-CcCVox9E.mjs → FunnelChart-DPisFRDu.mjs} +1 -1
- package/dist/{PieChart-Dksdgtfs.mjs → PieChart-Ceza7eIr.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-BAW7aMk4.mjs → PieChart.vue_vue_type_script_setup_true_lang-CjKWzA-2.mjs} +12 -14
- package/dist/{RadarChart-DquLnQ6V.mjs → RadarChart-Dvq6tgrV.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-B9md22Se.mjs → RadarChart.vue_vue_type_script_setup_true_lang-DxP18bev.mjs} +13 -15
- package/dist/index-B2hxZbIl.mjs +367 -0
- package/dist/{index-BjqMDjBg.mjs → index-D5Fo3f2g.mjs} +7651 -7892
- package/dist/index-D6FGEmgO.mjs +20014 -0
- package/dist/index-DJbI5eJZ.mjs +1639 -0
- package/dist/index-DahMKAi2.mjs +267 -0
- package/dist/index.mjs +49 -48
- package/dist/picture-CBRsHLZl.mjs +22 -0
- package/dist/profile-DxHeZsWs.mjs +263 -0
- package/dist/{runAs-aDp4HoyI.mjs → runAs-DZDdNkz3.mjs} +1 -1
- package/dist/runAs.vue_vue_type_script_setup_true_lang-D6N1cGUB.mjs +2496 -0
- package/dist/style.css +1 -1
- package/dist/{types-kVtKPxE9.mjs → types-qe4hLo3U.mjs} +79 -80
- package/dist/{updatePwd-D54MmOmU.mjs → updatePwd-6rHSVF-g.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-DA30m6c3.mjs → updatePwd.vue_vue_type_script_setup_true_lang-BnWzu-me.mjs} +38 -45
- package/dts/src/components/DictSelect/index.vue.d.ts +1 -1
- package/dts/src/components/JmashPagination/index.vue.d.ts +1 -1
- package/dts/src/components/Pagination/index.vue.d.ts +5 -5
- package/dts/src/components/SvgIcon/index.vue.d.ts +1 -1
- package/dts/src/index.d.ts +1 -0
- package/dts/src/views/dashboard/components/BarChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/PieChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +1 -1
- package/package.json +2 -3
- package/dist/el-card-BW_8jVxk.mjs +0 -61
- package/dist/el-col-Dd32wlSH.mjs +0 -135
- package/dist/el-form-item-3aV6p-oZ.mjs +0 -1117
- package/dist/index-B07mUqAa.mjs +0 -269
- package/dist/index-B8sKaF6F.mjs +0 -55
- package/dist/index-CgRfmdyq.mjs +0 -33076
- package/dist/index-CmaHwUB-.mjs +0 -449
- package/dist/index-RUqoTfAx.mjs +0 -3462
- package/dist/picture-DVndT_xi.mjs +0 -587
- package/dist/position-RPjzcrqL.mjs +0 -23
- package/dist/profile-CNIhXiv-.mjs +0 -4924
- package/dist/runAs.vue_vue_type_script_setup_true_lang-CZdXga19.mjs +0 -645
|
@@ -1,645 +0,0 @@
|
|
|
1
|
-
import { A as we, t as Be, I as Te, s as ke, H as Ie, E as Me, bi as Se, bj as Ae, bk as Ve, bl as ne, bm as te, bn as Re, bo as $e, _ as Oe, bp as Le, c as Pe, g as de, j as oe, V as Ne, a$ as ze, am as se, aO as ae, z as De, a2 as R, bq as Ue, br as Fe, bs as He, X as Ke, Y as je, bt as qe, ar as Xe } from "./index-CgRfmdyq.mjs";
|
|
2
|
-
import { nextTick as D, defineComponent as ce, computed as M, ref as T, reactive as fe, watch as le, onMounted as Ge, onBeforeUnmount as We, toRefs as Ye, resolveComponent as $, openBlock as m, createBlock as h, Transition as Ze, withCtx as p, withDirectives as O, createVNode as g, createElementVNode as y, normalizeClass as c, normalizeStyle as re, withModifiers as q, createElementBlock as U, resolveDynamicComponent as X, createCommentVNode as k, toDisplayString as C, withKeys as G, renderSlot as Je, createTextVNode as S, vShow as F, isVNode as me, render as pe, useModel as Qe, resolveDirective as _e, unref as z } from "vue";
|
|
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])', en = (e) => process.env.NODE_ENV === "test" ? !0 : getComputedStyle(e).position === "fixed" ? !1 : e.offsetParent !== null, ie = (e) => Array.from(e.querySelectorAll(xe)).filter((n) => nn(n) && en(n)), nn = (e) => {
|
|
4
|
-
if (e.tabIndex > 0 || e.tabIndex === 0 && e.getAttribute("tabIndex") !== null)
|
|
5
|
-
return !0;
|
|
6
|
-
if (e.disabled)
|
|
7
|
-
return !1;
|
|
8
|
-
switch (e.nodeName) {
|
|
9
|
-
case "A":
|
|
10
|
-
return !!e.href && e.rel !== "ignore";
|
|
11
|
-
case "INPUT":
|
|
12
|
-
return !(e.type === "hidden" || e.type === "file");
|
|
13
|
-
case "BUTTON":
|
|
14
|
-
case "SELECT":
|
|
15
|
-
case "TEXTAREA":
|
|
16
|
-
return !0;
|
|
17
|
-
default:
|
|
18
|
-
return !1;
|
|
19
|
-
}
|
|
20
|
-
}, wn = function(e, n, ...o) {
|
|
21
|
-
let s;
|
|
22
|
-
n.includes("mouse") || n.includes("click") ? s = "MouseEvents" : n.includes("key") ? s = "KeyboardEvent" : s = "HTMLEvents";
|
|
23
|
-
const a = document.createEvent(s);
|
|
24
|
-
return a.initEvent(n, ...o), e.dispatchEvent(a), e;
|
|
25
|
-
}, Y = "_trap-focus-children", A = [], ue = (e) => {
|
|
26
|
-
var n;
|
|
27
|
-
if (A.length === 0)
|
|
28
|
-
return;
|
|
29
|
-
const o = A[A.length - 1][Y];
|
|
30
|
-
if (o.length > 0 && e.code === we.tab) {
|
|
31
|
-
if (o.length === 1) {
|
|
32
|
-
e.preventDefault(), document.activeElement !== o[0] && o[0].focus();
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
const s = e.shiftKey, a = e.target === o[0], l = e.target === o[o.length - 1];
|
|
36
|
-
if (a && s && (e.preventDefault(), o[o.length - 1].focus()), l && !s && (e.preventDefault(), o[0].focus()), process.env.NODE_ENV === "test") {
|
|
37
|
-
const u = o.indexOf(e.target);
|
|
38
|
-
u !== -1 && ((n = o[s ? u - 1 : u + 1]) == null || n.focus());
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}, tn = {
|
|
42
|
-
beforeMount(e) {
|
|
43
|
-
e[Y] = ie(e), A.push(e), A.length <= 1 && document.addEventListener("keydown", ue);
|
|
44
|
-
},
|
|
45
|
-
updated(e) {
|
|
46
|
-
D(() => {
|
|
47
|
-
e[Y] = ie(e);
|
|
48
|
-
});
|
|
49
|
-
},
|
|
50
|
-
unmounted() {
|
|
51
|
-
A.shift(), A.length === 0 && document.removeEventListener("keydown", ue);
|
|
52
|
-
}
|
|
53
|
-
}, on = ce({
|
|
54
|
-
name: "ElMessageBox",
|
|
55
|
-
directives: {
|
|
56
|
-
TrapFocus: tn
|
|
57
|
-
},
|
|
58
|
-
components: {
|
|
59
|
-
ElButton: Be,
|
|
60
|
-
ElFocusTrap: Te,
|
|
61
|
-
ElInput: ke,
|
|
62
|
-
ElOverlay: Ie,
|
|
63
|
-
ElIcon: Me,
|
|
64
|
-
...Se
|
|
65
|
-
},
|
|
66
|
-
inheritAttrs: !1,
|
|
67
|
-
props: {
|
|
68
|
-
buttonSize: {
|
|
69
|
-
type: String,
|
|
70
|
-
validator: Ae
|
|
71
|
-
},
|
|
72
|
-
modal: {
|
|
73
|
-
type: Boolean,
|
|
74
|
-
default: !0
|
|
75
|
-
},
|
|
76
|
-
lockScroll: {
|
|
77
|
-
type: Boolean,
|
|
78
|
-
default: !0
|
|
79
|
-
},
|
|
80
|
-
showClose: {
|
|
81
|
-
type: Boolean,
|
|
82
|
-
default: !0
|
|
83
|
-
},
|
|
84
|
-
closeOnClickModal: {
|
|
85
|
-
type: Boolean,
|
|
86
|
-
default: !0
|
|
87
|
-
},
|
|
88
|
-
closeOnPressEscape: {
|
|
89
|
-
type: Boolean,
|
|
90
|
-
default: !0
|
|
91
|
-
},
|
|
92
|
-
closeOnHashChange: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: !0
|
|
95
|
-
},
|
|
96
|
-
center: Boolean,
|
|
97
|
-
draggable: Boolean,
|
|
98
|
-
overflow: Boolean,
|
|
99
|
-
roundButton: {
|
|
100
|
-
default: !1,
|
|
101
|
-
type: Boolean
|
|
102
|
-
},
|
|
103
|
-
container: {
|
|
104
|
-
type: String,
|
|
105
|
-
default: "body"
|
|
106
|
-
},
|
|
107
|
-
boxType: {
|
|
108
|
-
type: String,
|
|
109
|
-
default: ""
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
emits: ["vanish", "action"],
|
|
113
|
-
setup(e, { emit: n }) {
|
|
114
|
-
const {
|
|
115
|
-
locale: o,
|
|
116
|
-
zIndex: s,
|
|
117
|
-
ns: a,
|
|
118
|
-
size: l
|
|
119
|
-
} = Ve("message-box", M(() => e.buttonSize)), { t: u } = o, { nextZIndex: v } = s, f = T(!1), t = fe({
|
|
120
|
-
autofocus: !0,
|
|
121
|
-
beforeClose: null,
|
|
122
|
-
callback: null,
|
|
123
|
-
cancelButtonText: "",
|
|
124
|
-
cancelButtonClass: "",
|
|
125
|
-
confirmButtonText: "",
|
|
126
|
-
confirmButtonClass: "",
|
|
127
|
-
customClass: "",
|
|
128
|
-
customStyle: {},
|
|
129
|
-
dangerouslyUseHTMLString: !1,
|
|
130
|
-
distinguishCancelAndClose: !1,
|
|
131
|
-
icon: "",
|
|
132
|
-
inputPattern: null,
|
|
133
|
-
inputPlaceholder: "",
|
|
134
|
-
inputType: "text",
|
|
135
|
-
inputValue: null,
|
|
136
|
-
inputValidator: null,
|
|
137
|
-
inputErrorMessage: "",
|
|
138
|
-
message: null,
|
|
139
|
-
modalFade: !0,
|
|
140
|
-
modalClass: "",
|
|
141
|
-
showCancelButton: !1,
|
|
142
|
-
showConfirmButton: !0,
|
|
143
|
-
type: "",
|
|
144
|
-
title: void 0,
|
|
145
|
-
showInput: !1,
|
|
146
|
-
action: "",
|
|
147
|
-
confirmButtonLoading: !1,
|
|
148
|
-
cancelButtonLoading: !1,
|
|
149
|
-
confirmButtonDisabled: !1,
|
|
150
|
-
editorErrorMessage: "",
|
|
151
|
-
validateError: !1,
|
|
152
|
-
zIndex: v()
|
|
153
|
-
}), E = M(() => {
|
|
154
|
-
const i = t.type;
|
|
155
|
-
return { [a.bm("icon", i)]: i && ne[i] };
|
|
156
|
-
}), I = te(), d = te(), W = M(() => t.icon || ne[t.type] || ""), r = M(() => !!t.message), b = T(), Z = T(), P = T(), K = T(), J = T(), ve = M(() => t.confirmButtonClass);
|
|
157
|
-
le(() => t.inputValue, async (i) => {
|
|
158
|
-
await D(), e.boxType === "prompt" && i !== null && _();
|
|
159
|
-
}, { immediate: !0 }), le(() => f.value, (i) => {
|
|
160
|
-
var w, V;
|
|
161
|
-
i && (e.boxType !== "prompt" && (t.autofocus ? P.value = (V = (w = J.value) == null ? void 0 : w.$el) != null ? V : b.value : P.value = b.value), t.zIndex = v()), e.boxType === "prompt" && (i ? D().then(() => {
|
|
162
|
-
var ee;
|
|
163
|
-
K.value && K.value.$el && (t.autofocus ? P.value = (ee = Ce()) != null ? ee : b.value : P.value = b.value);
|
|
164
|
-
}) : (t.editorErrorMessage = "", t.validateError = !1));
|
|
165
|
-
});
|
|
166
|
-
const ge = M(() => e.draggable), be = M(() => e.overflow);
|
|
167
|
-
Re(b, Z, ge, be), Ge(async () => {
|
|
168
|
-
await D(), e.closeOnHashChange && window.addEventListener("hashchange", N);
|
|
169
|
-
}), We(() => {
|
|
170
|
-
e.closeOnHashChange && window.removeEventListener("hashchange", N);
|
|
171
|
-
});
|
|
172
|
-
function N() {
|
|
173
|
-
f.value && (f.value = !1, D(() => {
|
|
174
|
-
t.action && n("action", t.action);
|
|
175
|
-
}));
|
|
176
|
-
}
|
|
177
|
-
const Q = () => {
|
|
178
|
-
e.closeOnClickModal && j(t.distinguishCancelAndClose ? "close" : "cancel");
|
|
179
|
-
}, ye = Le(Q), he = (i) => {
|
|
180
|
-
if (t.inputType !== "textarea")
|
|
181
|
-
return i.preventDefault(), j("confirm");
|
|
182
|
-
}, j = (i) => {
|
|
183
|
-
var w;
|
|
184
|
-
e.boxType === "prompt" && i === "confirm" && !_() || (t.action = i, t.beforeClose ? (w = t.beforeClose) == null || w.call(t, i, t, N) : N());
|
|
185
|
-
}, _ = () => {
|
|
186
|
-
if (e.boxType === "prompt") {
|
|
187
|
-
const i = t.inputPattern;
|
|
188
|
-
if (i && !i.test(t.inputValue || ""))
|
|
189
|
-
return t.editorErrorMessage = t.inputErrorMessage || u("el.messagebox.error"), t.validateError = !0, !1;
|
|
190
|
-
const w = t.inputValidator;
|
|
191
|
-
if (typeof w == "function") {
|
|
192
|
-
const V = w(t.inputValue);
|
|
193
|
-
if (V === !1)
|
|
194
|
-
return t.editorErrorMessage = t.inputErrorMessage || u("el.messagebox.error"), t.validateError = !0, !1;
|
|
195
|
-
if (typeof V == "string")
|
|
196
|
-
return t.editorErrorMessage = V, t.validateError = !0, !1;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
return t.editorErrorMessage = "", t.validateError = !1, !0;
|
|
200
|
-
}, Ce = () => {
|
|
201
|
-
const i = K.value.$refs;
|
|
202
|
-
return i.input || i.textarea;
|
|
203
|
-
}, x = () => {
|
|
204
|
-
j("close");
|
|
205
|
-
}, Ee = () => {
|
|
206
|
-
e.closeOnPressEscape && x();
|
|
207
|
-
};
|
|
208
|
-
return e.lockScroll && $e(f), {
|
|
209
|
-
...Ye(t),
|
|
210
|
-
ns: a,
|
|
211
|
-
overlayEvent: ye,
|
|
212
|
-
visible: f,
|
|
213
|
-
hasMessage: r,
|
|
214
|
-
typeClass: E,
|
|
215
|
-
contentId: I,
|
|
216
|
-
inputId: d,
|
|
217
|
-
btnSize: l,
|
|
218
|
-
iconComponent: W,
|
|
219
|
-
confirmButtonClasses: ve,
|
|
220
|
-
rootRef: b,
|
|
221
|
-
focusStartRef: P,
|
|
222
|
-
headerRef: Z,
|
|
223
|
-
inputRef: K,
|
|
224
|
-
confirmRef: J,
|
|
225
|
-
doClose: N,
|
|
226
|
-
handleClose: x,
|
|
227
|
-
onCloseRequested: Ee,
|
|
228
|
-
handleWrapperClick: Q,
|
|
229
|
-
handleInputEnter: he,
|
|
230
|
-
handleAction: j,
|
|
231
|
-
t: u
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
}), sn = ["aria-label", "aria-describedby"], an = ["aria-label"], ln = ["id"];
|
|
235
|
-
function rn(e, n, o, s, a, l) {
|
|
236
|
-
const u = $("el-icon"), v = $("close"), f = $("el-input"), t = $("el-button"), E = $("el-focus-trap"), I = $("el-overlay");
|
|
237
|
-
return m(), h(Ze, {
|
|
238
|
-
name: "fade-in-linear",
|
|
239
|
-
onAfterLeave: n[11] || (n[11] = (d) => e.$emit("vanish")),
|
|
240
|
-
persisted: ""
|
|
241
|
-
}, {
|
|
242
|
-
default: p(() => [
|
|
243
|
-
O(g(I, {
|
|
244
|
-
"z-index": e.zIndex,
|
|
245
|
-
"overlay-class": [e.ns.is("message-box"), e.modalClass],
|
|
246
|
-
mask: e.modal
|
|
247
|
-
}, {
|
|
248
|
-
default: p(() => [
|
|
249
|
-
y("div", {
|
|
250
|
-
role: "dialog",
|
|
251
|
-
"aria-label": e.title,
|
|
252
|
-
"aria-modal": "true",
|
|
253
|
-
"aria-describedby": e.showInput ? void 0 : e.contentId,
|
|
254
|
-
class: c(`${e.ns.namespace.value}-overlay-message-box`),
|
|
255
|
-
onClick: n[8] || (n[8] = (...d) => e.overlayEvent.onClick && e.overlayEvent.onClick(...d)),
|
|
256
|
-
onMousedown: n[9] || (n[9] = (...d) => e.overlayEvent.onMousedown && e.overlayEvent.onMousedown(...d)),
|
|
257
|
-
onMouseup: n[10] || (n[10] = (...d) => e.overlayEvent.onMouseup && e.overlayEvent.onMouseup(...d))
|
|
258
|
-
}, [
|
|
259
|
-
g(E, {
|
|
260
|
-
loop: "",
|
|
261
|
-
trapped: e.visible,
|
|
262
|
-
"focus-trap-el": e.rootRef,
|
|
263
|
-
"focus-start-el": e.focusStartRef,
|
|
264
|
-
onReleaseRequested: e.onCloseRequested
|
|
265
|
-
}, {
|
|
266
|
-
default: p(() => [
|
|
267
|
-
y("div", {
|
|
268
|
-
ref: "rootRef",
|
|
269
|
-
class: c([
|
|
270
|
-
e.ns.b(),
|
|
271
|
-
e.customClass,
|
|
272
|
-
e.ns.is("draggable", e.draggable),
|
|
273
|
-
{ [e.ns.m("center")]: e.center }
|
|
274
|
-
]),
|
|
275
|
-
style: re(e.customStyle),
|
|
276
|
-
tabindex: "-1",
|
|
277
|
-
onClick: n[7] || (n[7] = q(() => {
|
|
278
|
-
}, ["stop"]))
|
|
279
|
-
}, [
|
|
280
|
-
e.title !== null && e.title !== void 0 ? (m(), U("div", {
|
|
281
|
-
key: 0,
|
|
282
|
-
ref: "headerRef",
|
|
283
|
-
class: c([e.ns.e("header"), { "show-close": e.showClose }])
|
|
284
|
-
}, [
|
|
285
|
-
y("div", {
|
|
286
|
-
class: c(e.ns.e("title"))
|
|
287
|
-
}, [
|
|
288
|
-
e.iconComponent && e.center ? (m(), h(u, {
|
|
289
|
-
key: 0,
|
|
290
|
-
class: c([e.ns.e("status"), e.typeClass])
|
|
291
|
-
}, {
|
|
292
|
-
default: p(() => [
|
|
293
|
-
(m(), h(X(e.iconComponent)))
|
|
294
|
-
]),
|
|
295
|
-
_: 1
|
|
296
|
-
}, 8, ["class"])) : k("v-if", !0),
|
|
297
|
-
y("span", null, C(e.title), 1)
|
|
298
|
-
], 2),
|
|
299
|
-
e.showClose ? (m(), U("button", {
|
|
300
|
-
key: 0,
|
|
301
|
-
type: "button",
|
|
302
|
-
class: c(e.ns.e("headerbtn")),
|
|
303
|
-
"aria-label": e.t("el.messagebox.close"),
|
|
304
|
-
onClick: n[0] || (n[0] = (d) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel")),
|
|
305
|
-
onKeydown: n[1] || (n[1] = G(q((d) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"]))
|
|
306
|
-
}, [
|
|
307
|
-
g(u, {
|
|
308
|
-
class: c(e.ns.e("close"))
|
|
309
|
-
}, {
|
|
310
|
-
default: p(() => [
|
|
311
|
-
g(v)
|
|
312
|
-
]),
|
|
313
|
-
_: 1
|
|
314
|
-
}, 8, ["class"])
|
|
315
|
-
], 42, an)) : k("v-if", !0)
|
|
316
|
-
], 2)) : k("v-if", !0),
|
|
317
|
-
y("div", {
|
|
318
|
-
id: e.contentId,
|
|
319
|
-
class: c(e.ns.e("content"))
|
|
320
|
-
}, [
|
|
321
|
-
y("div", {
|
|
322
|
-
class: c(e.ns.e("container"))
|
|
323
|
-
}, [
|
|
324
|
-
e.iconComponent && !e.center && e.hasMessage ? (m(), h(u, {
|
|
325
|
-
key: 0,
|
|
326
|
-
class: c([e.ns.e("status"), e.typeClass])
|
|
327
|
-
}, {
|
|
328
|
-
default: p(() => [
|
|
329
|
-
(m(), h(X(e.iconComponent)))
|
|
330
|
-
]),
|
|
331
|
-
_: 1
|
|
332
|
-
}, 8, ["class"])) : k("v-if", !0),
|
|
333
|
-
e.hasMessage ? (m(), U("div", {
|
|
334
|
-
key: 1,
|
|
335
|
-
class: c(e.ns.e("message"))
|
|
336
|
-
}, [
|
|
337
|
-
Je(e.$slots, "default", {}, () => [
|
|
338
|
-
e.dangerouslyUseHTMLString ? (m(), h(X(e.showInput ? "label" : "p"), {
|
|
339
|
-
key: 1,
|
|
340
|
-
for: e.showInput ? e.inputId : void 0,
|
|
341
|
-
innerHTML: e.message
|
|
342
|
-
}, null, 8, ["for", "innerHTML"])) : (m(), h(X(e.showInput ? "label" : "p"), {
|
|
343
|
-
key: 0,
|
|
344
|
-
for: e.showInput ? e.inputId : void 0
|
|
345
|
-
}, {
|
|
346
|
-
default: p(() => [
|
|
347
|
-
S(C(e.dangerouslyUseHTMLString ? "" : e.message), 1)
|
|
348
|
-
]),
|
|
349
|
-
_: 1
|
|
350
|
-
}, 8, ["for"]))
|
|
351
|
-
])
|
|
352
|
-
], 2)) : k("v-if", !0)
|
|
353
|
-
], 2),
|
|
354
|
-
O(y("div", {
|
|
355
|
-
class: c(e.ns.e("input"))
|
|
356
|
-
}, [
|
|
357
|
-
g(f, {
|
|
358
|
-
id: e.inputId,
|
|
359
|
-
ref: "inputRef",
|
|
360
|
-
modelValue: e.inputValue,
|
|
361
|
-
"onUpdate:modelValue": n[2] || (n[2] = (d) => e.inputValue = d),
|
|
362
|
-
type: e.inputType,
|
|
363
|
-
placeholder: e.inputPlaceholder,
|
|
364
|
-
"aria-invalid": e.validateError,
|
|
365
|
-
class: c({ invalid: e.validateError }),
|
|
366
|
-
onKeydown: G(e.handleInputEnter, ["enter"])
|
|
367
|
-
}, null, 8, ["id", "modelValue", "type", "placeholder", "aria-invalid", "class", "onKeydown"]),
|
|
368
|
-
y("div", {
|
|
369
|
-
class: c(e.ns.e("errormsg")),
|
|
370
|
-
style: re({
|
|
371
|
-
visibility: e.editorErrorMessage ? "visible" : "hidden"
|
|
372
|
-
})
|
|
373
|
-
}, C(e.editorErrorMessage), 7)
|
|
374
|
-
], 2), [
|
|
375
|
-
[F, e.showInput]
|
|
376
|
-
])
|
|
377
|
-
], 10, ln),
|
|
378
|
-
y("div", {
|
|
379
|
-
class: c(e.ns.e("btns"))
|
|
380
|
-
}, [
|
|
381
|
-
e.showCancelButton ? (m(), h(t, {
|
|
382
|
-
key: 0,
|
|
383
|
-
loading: e.cancelButtonLoading,
|
|
384
|
-
class: c([e.cancelButtonClass]),
|
|
385
|
-
round: e.roundButton,
|
|
386
|
-
size: e.btnSize,
|
|
387
|
-
onClick: n[3] || (n[3] = (d) => e.handleAction("cancel")),
|
|
388
|
-
onKeydown: n[4] || (n[4] = G(q((d) => e.handleAction("cancel"), ["prevent"]), ["enter"]))
|
|
389
|
-
}, {
|
|
390
|
-
default: p(() => [
|
|
391
|
-
S(C(e.cancelButtonText || e.t("el.messagebox.cancel")), 1)
|
|
392
|
-
]),
|
|
393
|
-
_: 1
|
|
394
|
-
}, 8, ["loading", "class", "round", "size"])) : k("v-if", !0),
|
|
395
|
-
O(g(t, {
|
|
396
|
-
ref: "confirmRef",
|
|
397
|
-
type: "primary",
|
|
398
|
-
loading: e.confirmButtonLoading,
|
|
399
|
-
class: c([e.confirmButtonClasses]),
|
|
400
|
-
round: e.roundButton,
|
|
401
|
-
disabled: e.confirmButtonDisabled,
|
|
402
|
-
size: e.btnSize,
|
|
403
|
-
onClick: n[5] || (n[5] = (d) => e.handleAction("confirm")),
|
|
404
|
-
onKeydown: n[6] || (n[6] = G(q((d) => e.handleAction("confirm"), ["prevent"]), ["enter"]))
|
|
405
|
-
}, {
|
|
406
|
-
default: p(() => [
|
|
407
|
-
S(C(e.confirmButtonText || e.t("el.messagebox.confirm")), 1)
|
|
408
|
-
]),
|
|
409
|
-
_: 1
|
|
410
|
-
}, 8, ["loading", "class", "round", "disabled", "size"]), [
|
|
411
|
-
[F, e.showConfirmButton]
|
|
412
|
-
])
|
|
413
|
-
], 2)
|
|
414
|
-
], 6)
|
|
415
|
-
]),
|
|
416
|
-
_: 3
|
|
417
|
-
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
|
|
418
|
-
], 42, sn)
|
|
419
|
-
]),
|
|
420
|
-
_: 3
|
|
421
|
-
}, 8, ["z-index", "overlay-class", "mask"]), [
|
|
422
|
-
[F, e.visible]
|
|
423
|
-
])
|
|
424
|
-
]),
|
|
425
|
-
_: 3
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
var un = /* @__PURE__ */ Oe(on, [["render", rn], ["__file", "index.vue"]]);
|
|
429
|
-
const H = /* @__PURE__ */ new Map(), dn = (e) => {
|
|
430
|
-
let n = document.body;
|
|
431
|
-
return e.appendTo && (de(e.appendTo) && (n = document.querySelector(e.appendTo)), ae(e.appendTo) && (n = e.appendTo), ae(n) || (De("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body."), n = document.body)), n;
|
|
432
|
-
}, cn = (e, n, o = null) => {
|
|
433
|
-
const s = g(un, e, se(e.message) || me(e.message) ? {
|
|
434
|
-
default: se(e.message) ? e.message : () => e.message
|
|
435
|
-
} : null);
|
|
436
|
-
return s.appContext = o, pe(s, n), dn(e).appendChild(n.firstElementChild), s.component;
|
|
437
|
-
}, fn = () => document.createElement("div"), mn = (e, n) => {
|
|
438
|
-
const o = fn();
|
|
439
|
-
e.onVanish = () => {
|
|
440
|
-
pe(null, o), H.delete(a);
|
|
441
|
-
}, e.onAction = (l) => {
|
|
442
|
-
const u = H.get(a);
|
|
443
|
-
let v;
|
|
444
|
-
e.showInput ? v = { value: a.inputValue, action: l } : v = l, e.callback ? e.callback(v, s.proxy) : l === "cancel" || l === "close" ? e.distinguishCancelAndClose && l !== "cancel" ? u.reject("close") : u.reject("cancel") : u.resolve(v);
|
|
445
|
-
};
|
|
446
|
-
const s = cn(e, o, n), a = s.proxy;
|
|
447
|
-
for (const l in e)
|
|
448
|
-
oe(e, l) && !oe(a.$props, l) && (a[l] = e[l]);
|
|
449
|
-
return a.visible = !0, a;
|
|
450
|
-
};
|
|
451
|
-
function L(e, n = null) {
|
|
452
|
-
if (!Pe)
|
|
453
|
-
return Promise.reject();
|
|
454
|
-
let o;
|
|
455
|
-
return de(e) || me(e) ? e = {
|
|
456
|
-
message: e
|
|
457
|
-
} : o = e.callback, new Promise((s, a) => {
|
|
458
|
-
const l = mn(e, n ?? L._context);
|
|
459
|
-
H.set(l, {
|
|
460
|
-
options: e,
|
|
461
|
-
callback: o,
|
|
462
|
-
resolve: s,
|
|
463
|
-
reject: a
|
|
464
|
-
});
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
const pn = ["alert", "confirm", "prompt"], vn = {
|
|
468
|
-
alert: { closeOnPressEscape: !1, closeOnClickModal: !1 },
|
|
469
|
-
confirm: { showCancelButton: !0 },
|
|
470
|
-
prompt: { showCancelButton: !0, showInput: !0 }
|
|
471
|
-
};
|
|
472
|
-
pn.forEach((e) => {
|
|
473
|
-
L[e] = gn(e);
|
|
474
|
-
});
|
|
475
|
-
function gn(e) {
|
|
476
|
-
return (n, o, s, a) => {
|
|
477
|
-
let l = "";
|
|
478
|
-
return Ne(o) ? (s = o, l = "") : ze(o) ? l = "" : l = o, L(Object.assign({
|
|
479
|
-
title: l,
|
|
480
|
-
message: n,
|
|
481
|
-
type: "",
|
|
482
|
-
...vn[e]
|
|
483
|
-
}, s, {
|
|
484
|
-
boxType: e
|
|
485
|
-
}), a);
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
L.close = () => {
|
|
489
|
-
H.forEach((e, n) => {
|
|
490
|
-
n.doClose();
|
|
491
|
-
}), H.clear();
|
|
492
|
-
};
|
|
493
|
-
L._context = null;
|
|
494
|
-
const B = L;
|
|
495
|
-
B.install = (e) => {
|
|
496
|
-
B._context = e._context, e.config.globalProperties.$msgbox = B, e.config.globalProperties.$messageBox = B, e.config.globalProperties.$alert = B.alert, e.config.globalProperties.$confirm = B.confirm, e.config.globalProperties.$prompt = B.prompt;
|
|
497
|
-
};
|
|
498
|
-
const bn = B, yn = {
|
|
499
|
-
key: 0,
|
|
500
|
-
class: "distance-left"
|
|
501
|
-
}, hn = ["onClick"], Bn = /* @__PURE__ */ ce({
|
|
502
|
-
__name: "runAs",
|
|
503
|
-
props: {
|
|
504
|
-
modelValue: { type: Boolean },
|
|
505
|
-
modelModifiers: {}
|
|
506
|
-
},
|
|
507
|
-
emits: ["update:modelValue"],
|
|
508
|
-
setup(e) {
|
|
509
|
-
const n = T(!1), o = T([]), s = R().user, a = Qe(e, "modelValue"), l = fe([
|
|
510
|
-
{
|
|
511
|
-
label: "用户名",
|
|
512
|
-
prop: "loginName",
|
|
513
|
-
width: "100",
|
|
514
|
-
sortable: !0,
|
|
515
|
-
isColumn: !0
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
label: "用户昵称",
|
|
519
|
-
prop: "nickName",
|
|
520
|
-
width: "100",
|
|
521
|
-
isColumn: !0
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
label: "手机号",
|
|
525
|
-
prop: "mobilePhone",
|
|
526
|
-
slotName: "mobilePhone",
|
|
527
|
-
columnType: "slot",
|
|
528
|
-
width: "120",
|
|
529
|
-
isColumn: !0,
|
|
530
|
-
sortable: !0
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
label: "邮箱",
|
|
534
|
-
prop: "email",
|
|
535
|
-
width: "180",
|
|
536
|
-
slotName: "email",
|
|
537
|
-
columnType: "slot",
|
|
538
|
-
isColumn: !0,
|
|
539
|
-
sortable: !0
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
label: "状态",
|
|
543
|
-
width: "101",
|
|
544
|
-
slotName: "status",
|
|
545
|
-
columnType: "slot",
|
|
546
|
-
isColumn: !0
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
label: "操作",
|
|
550
|
-
width: "100",
|
|
551
|
-
slotName: "operation",
|
|
552
|
-
columnType: "slot",
|
|
553
|
-
fixed: "right",
|
|
554
|
-
isColumn: !0
|
|
555
|
-
}
|
|
556
|
-
]);
|
|
557
|
-
n.value = !0;
|
|
558
|
-
function u(f) {
|
|
559
|
-
f.showEncrypt = !f.showEncrypt;
|
|
560
|
-
}
|
|
561
|
-
Ue().then(({ data: f }) => {
|
|
562
|
-
n.value = !1, o.value = f.results;
|
|
563
|
-
});
|
|
564
|
-
function v(f) {
|
|
565
|
-
bn.confirm("确定切换用户身份吗?", "提示", {
|
|
566
|
-
confirmButtonText: "确定",
|
|
567
|
-
cancelButtonText: "取消",
|
|
568
|
-
type: "warning"
|
|
569
|
-
}).then(() => {
|
|
570
|
-
console.log(R()), Fe(f.userId).then(async (t) => {
|
|
571
|
-
if (t.status === 200) {
|
|
572
|
-
R().user.roleCodes = [], R().user.permCodes = [];
|
|
573
|
-
const { roleCodes: E } = await R().getRoleInfo(), I = await R().getUserInfo();
|
|
574
|
-
await He().generateRoutes(E, I), Ke({
|
|
575
|
-
message: "切换成功",
|
|
576
|
-
type: "success"
|
|
577
|
-
}), a.value = !1, location.reload();
|
|
578
|
-
}
|
|
579
|
-
});
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
return (f, t) => {
|
|
583
|
-
const E = je, I = qe, d = Xe, W = _e("hasRole");
|
|
584
|
-
return m(), h(d, {
|
|
585
|
-
title: "切换身份",
|
|
586
|
-
modelValue: a.value,
|
|
587
|
-
"onUpdate:modelValue": t[0] || (t[0] = (r) => a.value = r),
|
|
588
|
-
width: "800px"
|
|
589
|
-
}, {
|
|
590
|
-
default: p(() => [
|
|
591
|
-
g(I, {
|
|
592
|
-
class: "table-top",
|
|
593
|
-
ref: "multipleTableRef",
|
|
594
|
-
"row-keys": "userId",
|
|
595
|
-
"list-loading": z(n),
|
|
596
|
-
"table-data": z(o),
|
|
597
|
-
"table-label": z(l)
|
|
598
|
-
}, {
|
|
599
|
-
mobilePhone: p((r) => [
|
|
600
|
-
S(C(r.data.row.showEncrypt ? r.data.row.mobilePhone : r.data.row.mobilePhoneIns), 1)
|
|
601
|
-
]),
|
|
602
|
-
email: p((r) => [
|
|
603
|
-
S(C(r.data.row.showEncrypt ? r.data.row.email : r.data.row.emailIns), 1)
|
|
604
|
-
]),
|
|
605
|
-
status: p((r) => [
|
|
606
|
-
S(C(r.data.row.runAs ? "原身份" : "") + " " + C(r.data.row.userId === z(s).userId ? "当前身份" : ""), 1)
|
|
607
|
-
]),
|
|
608
|
-
operation: p((r) => [
|
|
609
|
-
r.data.row.mobilePhoneIns ? (m(), U("span", yn, [
|
|
610
|
-
O(g(E, {
|
|
611
|
-
"icon-class": "close-eye",
|
|
612
|
-
onClick: (b) => u(r.data.row)
|
|
613
|
-
}, null, 8, ["onClick"]), [
|
|
614
|
-
[F, !r.data.row.showEncrypt]
|
|
615
|
-
]),
|
|
616
|
-
O(g(E, {
|
|
617
|
-
"icon-class": "eye-open",
|
|
618
|
-
onClick: (b) => u(r.data.row)
|
|
619
|
-
}, null, 8, ["onClick"]), [
|
|
620
|
-
[F, r.data.row.showEncrypt]
|
|
621
|
-
])
|
|
622
|
-
])) : k("", !0),
|
|
623
|
-
r.data.row.userId !== z(s).userId ? O((m(), U("span", {
|
|
624
|
-
key: 1,
|
|
625
|
-
class: "el-button-color",
|
|
626
|
-
onClick: (b) => v(r.data.row)
|
|
627
|
-
}, [
|
|
628
|
-
S(" 切换 ")
|
|
629
|
-
], 8, hn)), [
|
|
630
|
-
[W, ["tester"]]
|
|
631
|
-
]) : k("", !0)
|
|
632
|
-
]),
|
|
633
|
-
_: 1
|
|
634
|
-
}, 8, ["list-loading", "table-data", "table-label"])
|
|
635
|
-
]),
|
|
636
|
-
_: 1
|
|
637
|
-
}, 8, ["modelValue"]);
|
|
638
|
-
};
|
|
639
|
-
}
|
|
640
|
-
});
|
|
641
|
-
export {
|
|
642
|
-
bn as E,
|
|
643
|
-
Bn as _,
|
|
644
|
-
wn as t
|
|
645
|
-
};
|