xto-fronted 0.9.13 → 0.9.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.
- package/dist/{index-D_wFQxCz.js → index-0D0QxIuy.js} +1158 -1125
- package/dist/{index-D4Ujmkk6.js → index-BmlwXD1Z.js} +1 -1
- package/dist/{index-COb9F_fj.js → index-CkBG2FzY.js} +1 -1
- package/dist/{index-B2Td6pR9.js → index-CvLee0YB.js} +1 -1
- package/dist/{index-Dqr-rT21.js → index-DKL8X5Zu.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/views/login/index.vue +501 -413
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
import { y as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { defineStore as
|
|
4
|
-
import { useRoute as Te, useRouter as
|
|
5
|
-
import { SubMenu as
|
|
6
|
-
import { Icon as
|
|
1
|
+
import { y as z, z as nt, A as Se, B as ut, C as mt, D as pt, E as vt, F as Pe, p as bt, G as ht, H as xt, j as lt, n as Ct, I as $t, J as rt, K as Mt, L as Lt, M as St, h as It, N as Et } from "./user-B0q24FmO.js";
|
|
2
|
+
import { ref as k, computed as w, watch as Me, defineComponent as ae, resolveComponent as we, openBlock as a, createBlock as F, unref as n, withCtx as C, createElementBlock as u, Fragment as K, renderList as Y, createTextVNode as Z, toDisplayString as x, normalizeClass as G, createElementVNode as e, withDirectives as Ae, vShow as Nt, createCommentVNode as A, createVNode as _, onMounted as Be, onUnmounted as Ye, vModelText as Xe, Transition as Ie, withModifiers as Oe, normalizeStyle as Ee, nextTick as Ve, onUpdated as Tt, renderSlot as De, createSlots as Ut, useSlots as Pt, Comment as zt, resolveDynamicComponent as it, cloneVNode as Ft, reactive as Ze, createStaticVNode as Je, withKeys as Dt, h as At } from "vue";
|
|
3
|
+
import { defineStore as ze } from "pinia";
|
|
4
|
+
import { useRoute as Te, useRouter as be, createRouter as Qe, createWebHistory as et } from "vue-router";
|
|
5
|
+
import { SubMenu as He, MenuItem as Ue, Menu as tt, Tabs as Bt, TabPane as Ot, Dropdown as Vt, DropdownMenu as Rt, DropdownItem as Kt } from "@xto/navigation";
|
|
6
|
+
import { Icon as T, Button as Ne } from "@xto/base";
|
|
7
7
|
import { Drawer as st, Message as jt } from "@xto/feedback";
|
|
8
|
-
import { Form as Wt, FormItem as
|
|
9
|
-
import { createLocaleProvider as
|
|
8
|
+
import { Form as Wt, FormItem as Re, Input as ct, Checkbox as qt } from "@xto/form";
|
|
9
|
+
import { createLocaleProvider as Gt, getSupportedLocales as Ht, useLocale as Yt } from "@xto/core/locale";
|
|
10
10
|
function Xt(t) {
|
|
11
11
|
const o = /^#?([0-9a-f]{6})$/i.exec(t.trim());
|
|
12
12
|
if (!o) return null;
|
|
13
13
|
const p = parseInt(o[1], 16);
|
|
14
14
|
return [p >> 16 & 255, p >> 8 & 255, p & 255];
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
const o =
|
|
16
|
+
function Le(t) {
|
|
17
|
+
const o = z.get(t);
|
|
18
18
|
return o === null || o === "" ? void 0 : o;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
21
|
-
const t = nt(), o = t.features || {}, p =
|
|
22
|
-
p.value =
|
|
23
|
-
}, W = (
|
|
24
|
-
l.value =
|
|
25
|
-
},
|
|
26
|
-
s.value =
|
|
20
|
+
const Zt = ["layout", "primaryColor", "theme", "isDark", "showTabs", "showBreadcrumb", "showFooter"], fe = ze("app", () => {
|
|
21
|
+
const t = nt(), o = t.features || {}, p = k(z.get("appName") || "XTO App"), l = k(z.get("indexPath") || "/dashboard"), s = k(z.get("loginPath") || "/login"), v = k(t.theme ?? Le("theme") ?? "light"), r = k(v.value === "dark"), h = k(t.layout ?? Le("layout") ?? "sidebar"), m = k(z.get("isCollapsed") || !1), d = k(o.showTabs ?? Le("showTabs") ?? !0), S = k(o.showFooter ?? Le("showFooter") ?? !0), y = k(o.showBreadcrumb ?? Le("showBreadcrumb") ?? !0), c = k(t.primaryColor ?? Le("primaryColor") ?? "#4F46E5"), g = k(t.allowUserOverride !== !1), E = k([]), D = k([]), V = w(() => r.value ? "dark" : "light"), R = (I) => {
|
|
22
|
+
p.value = I, z.set("appName", I);
|
|
23
|
+
}, W = (I) => {
|
|
24
|
+
l.value = I, z.set("indexPath", I);
|
|
25
|
+
}, ee = (I) => {
|
|
26
|
+
s.value = I, z.set("loginPath", I);
|
|
27
27
|
}, J = () => {
|
|
28
|
-
const
|
|
29
|
-
r.value ?
|
|
30
|
-
}, ee = () => {
|
|
31
|
-
r.value = !r.value, m.value = r.value ? "dark" : "light", te();
|
|
32
|
-
}, X = (S) => {
|
|
33
|
-
m.value = S, r.value = S === "dark", te();
|
|
28
|
+
const I = document.documentElement;
|
|
29
|
+
r.value ? I.classList.add("dark") : I.classList.remove("dark");
|
|
34
30
|
}, te = () => {
|
|
35
|
-
|
|
31
|
+
r.value = !r.value, v.value = r.value ? "dark" : "light", se();
|
|
32
|
+
}, X = (I) => {
|
|
33
|
+
v.value = I, r.value = I === "dark", se();
|
|
34
|
+
}, se = () => {
|
|
35
|
+
J(), z.set("isDark", r.value), z.set("theme", v.value);
|
|
36
|
+
}, O = () => {
|
|
37
|
+
m.value = !m.value, z.set("isCollapsed", m.value);
|
|
38
|
+
}, U = (I) => {
|
|
39
|
+
h.value = I, z.set("layout", I);
|
|
36
40
|
}, B = () => {
|
|
37
|
-
|
|
38
|
-
}, N = (S) => {
|
|
39
|
-
v.value = S, U.set("layout", S);
|
|
40
|
-
}, A = () => {
|
|
41
|
-
u.value = !u.value, U.set("showTabs", u.value);
|
|
41
|
+
d.value = !d.value, z.set("showTabs", d.value);
|
|
42
42
|
}, Q = () => {
|
|
43
|
-
|
|
43
|
+
S.value = !S.value, z.set("showFooter", S.value);
|
|
44
44
|
}, q = () => {
|
|
45
|
-
|
|
46
|
-
}, le = (
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
const ve = Xt(
|
|
45
|
+
y.value = !y.value, z.set("showBreadcrumb", y.value);
|
|
46
|
+
}, le = (I) => {
|
|
47
|
+
const H = document.documentElement;
|
|
48
|
+
H.style.setProperty("--xto-color-primary", I);
|
|
49
|
+
const ve = Xt(I);
|
|
50
50
|
if (ve) {
|
|
51
51
|
const he = (ie, Ce) => {
|
|
52
|
-
const
|
|
53
|
-
return `#${ve.map((
|
|
52
|
+
const ke = Ce ? [255, 255, 255] : [0, 0, 0];
|
|
53
|
+
return `#${ve.map((P, b) => Math.round(P + (ke[b] - P) * ie)).map((P) => P.toString(16).padStart(2, "0")).join("")}`;
|
|
54
54
|
};
|
|
55
55
|
for (let ie = 1; ie <= 9; ie++)
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
H.style.setProperty(`--xto-color-primary-light-${ie}`, he(ie * 0.1, !0));
|
|
57
|
+
H.style.setProperty("--xto-color-primary-dark-1", he(0.12, !1)), H.style.setProperty("--xto-color-primary-dark-2", he(0.28, !1)), H.style.setProperty("--xto-color-primary-dark-3", he(0.45, !1)), H.style.setProperty("--xto-color-ring", I);
|
|
58
58
|
}
|
|
59
|
-
}, _e = (
|
|
60
|
-
c.value =
|
|
59
|
+
}, _e = (I) => {
|
|
60
|
+
c.value = I, le(I), z.set("primaryColor", I);
|
|
61
61
|
}, xe = () => {
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
}, pe = (
|
|
68
|
-
const
|
|
69
|
-
|
|
62
|
+
Zt.forEach((ve) => z.remove(ve));
|
|
63
|
+
const I = nt(), H = I.features || {};
|
|
64
|
+
h.value = I.layout ?? "sidebar", c.value = I.primaryColor ?? "#4F46E5", v.value = I.theme ?? "light", r.value = v.value === "dark", d.value = H.showTabs ?? !0, S.value = H.showFooter ?? !0, y.value = H.showBreadcrumb ?? !0, J(), le(c.value);
|
|
65
|
+
}, de = (I) => {
|
|
66
|
+
E.value.includes(I) || E.value.push(I);
|
|
67
|
+
}, pe = (I) => {
|
|
68
|
+
const H = E.value.indexOf(I);
|
|
69
|
+
H > -1 && E.value.splice(H, 1);
|
|
70
70
|
}, ye = () => {
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
D.value =
|
|
71
|
+
E.value = [];
|
|
72
|
+
}, ue = (I) => {
|
|
73
|
+
D.value = I;
|
|
74
74
|
}, re = () => {
|
|
75
75
|
J(), le(c.value);
|
|
76
76
|
};
|
|
77
|
-
return
|
|
77
|
+
return Me(r, J), {
|
|
78
78
|
appName: p,
|
|
79
79
|
indexPath: l,
|
|
80
80
|
loginPath: s,
|
|
81
81
|
isDark: r,
|
|
82
|
-
theme:
|
|
83
|
-
layout:
|
|
84
|
-
isCollapsed:
|
|
85
|
-
showTabs:
|
|
86
|
-
showFooter:
|
|
87
|
-
showBreadcrumb:
|
|
82
|
+
theme: v,
|
|
83
|
+
layout: h,
|
|
84
|
+
isCollapsed: m,
|
|
85
|
+
showTabs: d,
|
|
86
|
+
showFooter: S,
|
|
87
|
+
showBreadcrumb: y,
|
|
88
88
|
primaryColor: c,
|
|
89
|
-
allowUserOverride:
|
|
90
|
-
cachedViews:
|
|
89
|
+
allowUserOverride: g,
|
|
90
|
+
cachedViews: E,
|
|
91
91
|
mixSubMenus: D,
|
|
92
|
-
themeClass:
|
|
92
|
+
themeClass: V,
|
|
93
93
|
setAppName: R,
|
|
94
94
|
setIndexPath: W,
|
|
95
|
-
setLoginPath:
|
|
96
|
-
toggleTheme:
|
|
97
|
-
toggleCollapse:
|
|
95
|
+
setLoginPath: ee,
|
|
96
|
+
toggleTheme: te,
|
|
97
|
+
toggleCollapse: O,
|
|
98
98
|
setTheme: X,
|
|
99
|
-
setLayout:
|
|
100
|
-
toggleTabs:
|
|
99
|
+
setLayout: U,
|
|
100
|
+
toggleTabs: B,
|
|
101
101
|
toggleFooter: Q,
|
|
102
102
|
toggleBreadcrumb: q,
|
|
103
103
|
setPrimaryColor: _e,
|
|
104
104
|
resetToServerDefaults: xe,
|
|
105
|
-
addCachedView:
|
|
105
|
+
addCachedView: de,
|
|
106
106
|
removeCachedView: pe,
|
|
107
107
|
clearCachedViews: ye,
|
|
108
|
-
setMixSubMenus:
|
|
108
|
+
setMixSubMenus: ue,
|
|
109
109
|
initTheme: re
|
|
110
110
|
};
|
|
111
|
-
}),
|
|
111
|
+
}), Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
112
112
|
__proto__: null,
|
|
113
113
|
useAppStore: fe
|
|
114
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
114
|
+
}, Symbol.toStringTag, { value: "Module" })), Qt = "menu_list", es = "permission_list", Ke = () => `${Qt}_${Se()}`, je = () => `${es}_${Se()}`, ts = {
|
|
115
115
|
menuCode: "home",
|
|
116
116
|
menuName: "首页",
|
|
117
117
|
menuUrl: "/dashboard",
|
|
@@ -120,10 +120,10 @@ const Jt = ["layout", "primaryColor", "theme", "isDark", "showTabs", "showBreadc
|
|
|
120
120
|
isDefault: !1,
|
|
121
121
|
isOut: !1
|
|
122
122
|
};
|
|
123
|
-
function
|
|
123
|
+
function ft(t) {
|
|
124
124
|
return t.filter((o) => o.type !== 1).map((o) => ({
|
|
125
125
|
...o,
|
|
126
|
-
children: o.children ?
|
|
126
|
+
children: o.children ? ft(o.children) : void 0
|
|
127
127
|
}));
|
|
128
128
|
}
|
|
129
129
|
function ss(t) {
|
|
@@ -135,45 +135,45 @@ function ss(t) {
|
|
|
135
135
|
}
|
|
136
136
|
return p(t), o;
|
|
137
137
|
}
|
|
138
|
-
const ge =
|
|
139
|
-
const t =
|
|
138
|
+
const ge = ze("menu", () => {
|
|
139
|
+
const t = k(z.get(Ke()) || []), o = k(z.get(je()) || []), p = w(() => t.value.length > 0);
|
|
140
140
|
return {
|
|
141
141
|
menuList: t,
|
|
142
142
|
permissions: o,
|
|
143
143
|
hasMenu: p,
|
|
144
144
|
setMenuList: (r) => {
|
|
145
|
-
o.value = ss(r),
|
|
146
|
-
const
|
|
147
|
-
t.value = [ts, ...
|
|
145
|
+
o.value = ss(r), z.set(je(), o.value);
|
|
146
|
+
const h = ft(r);
|
|
147
|
+
t.value = [ts, ...h], z.set(Ke(), t.value);
|
|
148
148
|
},
|
|
149
149
|
clearMenu: () => {
|
|
150
|
-
t.value = [], o.value = [],
|
|
150
|
+
t.value = [], o.value = [], z.remove(Ke()), z.remove(je());
|
|
151
151
|
},
|
|
152
|
-
hasPermission: (r) => Array.isArray(r) ? r.some((
|
|
152
|
+
hasPermission: (r) => Array.isArray(r) ? r.some((h) => o.value.includes(h)) : o.value.includes(r)
|
|
153
153
|
};
|
|
154
|
-
}),
|
|
155
|
-
const t =
|
|
154
|
+
}), We = "user_info", me = ze("user", () => {
|
|
155
|
+
const t = k(z.get(We)), o = w(() => !!t.value), p = w(() => {
|
|
156
156
|
var c;
|
|
157
157
|
return ((c = t.value) == null ? void 0 : c.userId) || "";
|
|
158
|
-
}), l =
|
|
158
|
+
}), l = w(() => {
|
|
159
159
|
var c;
|
|
160
160
|
return ((c = t.value) == null ? void 0 : c.userName) || "";
|
|
161
|
-
}), s =
|
|
161
|
+
}), s = w(() => {
|
|
162
162
|
var c;
|
|
163
163
|
return ((c = t.value) == null ? void 0 : c.departmentName) || "";
|
|
164
|
-
}),
|
|
164
|
+
}), v = w(() => {
|
|
165
165
|
var c;
|
|
166
166
|
return ((c = t.value) == null ? void 0 : c.roleName) || "";
|
|
167
|
-
}), r =
|
|
167
|
+
}), r = w(() => {
|
|
168
168
|
var c;
|
|
169
169
|
return ((c = t.value) == null ? void 0 : c.email) || "";
|
|
170
|
-
}),
|
|
170
|
+
}), h = w(() => {
|
|
171
171
|
var c;
|
|
172
172
|
return ((c = t.value) == null ? void 0 : c.mobilePhone) || "";
|
|
173
|
-
}),
|
|
173
|
+
}), m = w(() => {
|
|
174
174
|
var c;
|
|
175
175
|
return ((c = t.value) == null ? void 0 : c.positionName) || "";
|
|
176
|
-
}),
|
|
176
|
+
}), d = w(() => {
|
|
177
177
|
var c;
|
|
178
178
|
return ((c = t.value) == null ? void 0 : c.avatar) || "";
|
|
179
179
|
});
|
|
@@ -183,27 +183,27 @@ const ge = Pe("menu", () => {
|
|
|
183
183
|
userId: p,
|
|
184
184
|
userName: l,
|
|
185
185
|
departmentName: s,
|
|
186
|
-
roleName:
|
|
186
|
+
roleName: v,
|
|
187
187
|
email: r,
|
|
188
|
-
mobilePhone:
|
|
189
|
-
positionName:
|
|
190
|
-
avatar:
|
|
188
|
+
mobilePhone: h,
|
|
189
|
+
positionName: m,
|
|
190
|
+
avatar: d,
|
|
191
191
|
setUserInfo: (c) => {
|
|
192
|
-
t.value = c,
|
|
192
|
+
t.value = c, z.set(We, c);
|
|
193
193
|
},
|
|
194
194
|
clearUserInfo: () => {
|
|
195
|
-
t.value = null,
|
|
195
|
+
t.value = null, z.remove(We);
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
|
-
}), Fe =
|
|
199
|
-
const t =
|
|
198
|
+
}), Fe = ze("auth", () => {
|
|
199
|
+
const t = k(ut()), o = w(() => mt()), p = k(""), l = k(""), s = k(""), v = k("/login");
|
|
200
200
|
return {
|
|
201
201
|
token: t,
|
|
202
202
|
isLoggedIn: o,
|
|
203
203
|
baseUrl: p,
|
|
204
204
|
appId: l,
|
|
205
205
|
clientId: s,
|
|
206
|
-
loginPath:
|
|
206
|
+
loginPath: v,
|
|
207
207
|
login: (c) => {
|
|
208
208
|
t.value = c.access_token, vt(c);
|
|
209
209
|
},
|
|
@@ -220,7 +220,7 @@ const ge = Pe("menu", () => {
|
|
|
220
220
|
s.value = c;
|
|
221
221
|
},
|
|
222
222
|
setLoginPath: (c) => {
|
|
223
|
-
|
|
223
|
+
v.value = c;
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
}), os = {
|
|
@@ -391,11 +391,11 @@ const ge = Pe("menu", () => {
|
|
|
391
391
|
"el-icon-chat-dot-round": "chat",
|
|
392
392
|
"el-icon-cpu": "server",
|
|
393
393
|
"el-icon-cloudy": "cloud"
|
|
394
|
-
}, s = (
|
|
395
|
-
if (!
|
|
396
|
-
if (l[
|
|
397
|
-
if (
|
|
398
|
-
const
|
|
394
|
+
}, s = (d) => {
|
|
395
|
+
if (!d || d === "") return "";
|
|
396
|
+
if (l[d]) return l[d];
|
|
397
|
+
if (d.startsWith("tineco-icon-")) {
|
|
398
|
+
const y = d.replace("tineco-icon-", "");
|
|
399
399
|
return {
|
|
400
400
|
home: "home",
|
|
401
401
|
dashboard: "dashboard",
|
|
@@ -409,7 +409,7 @@ const ge = Pe("menu", () => {
|
|
|
409
409
|
chart: "chart",
|
|
410
410
|
report: "report",
|
|
411
411
|
analytics: "analytics"
|
|
412
|
-
}[
|
|
412
|
+
}[y] || y;
|
|
413
413
|
}
|
|
414
414
|
return {
|
|
415
415
|
dashboard: "dashboard",
|
|
@@ -428,44 +428,44 @@ const ge = Pe("menu", () => {
|
|
|
428
428
|
app: "app",
|
|
429
429
|
list: "list",
|
|
430
430
|
grid: "grid"
|
|
431
|
-
}[
|
|
432
|
-
},
|
|
433
|
-
return (
|
|
434
|
-
const
|
|
435
|
-
return
|
|
431
|
+
}[d] || d;
|
|
432
|
+
}, v = (d) => d ? d.charAt(0) : "", r = (d) => p.has(d), h = w(() => o.menu.menuId || o.menu.menuCode || o.menu.menuUrl || ""), m = w(() => o.menu.children && o.menu.children.length > 0);
|
|
433
|
+
return (d, S) => {
|
|
434
|
+
const y = we("SidebarMenuItem", !0);
|
|
435
|
+
return m.value ? (a(), F(n(He), {
|
|
436
436
|
key: 0,
|
|
437
|
-
index:
|
|
437
|
+
index: h.value
|
|
438
438
|
}, {
|
|
439
|
-
icon:
|
|
440
|
-
r(s(t.menu.icon)) ? (a(),
|
|
439
|
+
icon: C(() => [
|
|
440
|
+
r(s(t.menu.icon)) ? (a(), F(n(T), {
|
|
441
441
|
key: 0,
|
|
442
442
|
name: s(t.menu.icon),
|
|
443
443
|
size: 16
|
|
444
|
-
}, null, 8, ["name"])) : (a(),
|
|
444
|
+
}, null, 8, ["name"])) : (a(), u("span", os, x(v(t.menu.menuName)), 1))
|
|
445
445
|
]),
|
|
446
|
-
title:
|
|
447
|
-
|
|
446
|
+
title: C(() => [
|
|
447
|
+
Z(x(t.menu.menuName), 1)
|
|
448
448
|
]),
|
|
449
|
-
default:
|
|
450
|
-
(a(!0),
|
|
449
|
+
default: C(() => [
|
|
450
|
+
(a(!0), u(K, null, Y(t.menu.children, (c) => (a(), F(y, {
|
|
451
451
|
key: c.menuId || c.menuCode || c.menuUrl,
|
|
452
452
|
menu: c
|
|
453
453
|
}, null, 8, ["menu"]))), 128))
|
|
454
454
|
]),
|
|
455
455
|
_: 1
|
|
456
|
-
}, 8, ["index"])) : (a(),
|
|
456
|
+
}, 8, ["index"])) : (a(), F(n(Ue), {
|
|
457
457
|
key: 1,
|
|
458
|
-
index: t.menu.menuUrl ||
|
|
458
|
+
index: t.menu.menuUrl || h.value
|
|
459
459
|
}, {
|
|
460
|
-
icon:
|
|
461
|
-
r(s(t.menu.icon)) ? (a(),
|
|
460
|
+
icon: C(() => [
|
|
461
|
+
r(s(t.menu.icon)) ? (a(), F(n(T), {
|
|
462
462
|
key: 0,
|
|
463
463
|
name: s(t.menu.icon),
|
|
464
464
|
size: 16
|
|
465
|
-
}, null, 8, ["name"])) : (a(),
|
|
465
|
+
}, null, 8, ["name"])) : (a(), u("span", as, x(v(t.menu.menuName)), 1))
|
|
466
466
|
]),
|
|
467
|
-
default:
|
|
468
|
-
|
|
467
|
+
default: C(() => [
|
|
468
|
+
Z(" " + x(t.menu.menuName), 1)
|
|
469
469
|
]),
|
|
470
470
|
_: 1
|
|
471
471
|
}, 8, ["index"]));
|
|
@@ -482,7 +482,7 @@ const ge = Pe("menu", () => {
|
|
|
482
482
|
}, is = ["src"], cs = {
|
|
483
483
|
key: 1,
|
|
484
484
|
class: "sidebar__user"
|
|
485
|
-
},
|
|
485
|
+
}, ds = { class: "sidebar__user-info" }, us = { class: "sidebar__user-name" }, ms = { class: "sidebar__user-role" }, qe = "sidebar_opened_menus", Ge = "sidebar_menu_list_key", ps = /* @__PURE__ */ ae({
|
|
486
486
|
__name: "Sidebar",
|
|
487
487
|
props: {
|
|
488
488
|
menuList: { default: () => [] },
|
|
@@ -491,104 +491,104 @@ const ge = Pe("menu", () => {
|
|
|
491
491
|
logoSrc: {}
|
|
492
492
|
},
|
|
493
493
|
setup(t) {
|
|
494
|
-
const o = t, p =
|
|
495
|
-
|
|
496
|
-
|
|
494
|
+
const o = t, p = w(() => o.logoSrc || Pe("/vite.svg")), l = Te(), s = be(), v = ge(), r = me(), h = Fe(), m = fe(), d = w(() => o.menuList.length > 0 ? o.menuList : v.menuList), S = w(() => m.isCollapsed), y = w(() => l.path), c = (O) => O.menuId || O.menuCode || O.menuUrl || "", g = () => d.value.map(c).join(","), E = z.get(Ge) || "", D = g(), V = E === D ? z.get(qe) || [] : [], R = k(V);
|
|
495
|
+
Me(R, (O) => {
|
|
496
|
+
z.set(qe, O), z.set(Ge, g());
|
|
497
497
|
}, { deep: !0 });
|
|
498
|
-
const W = (
|
|
498
|
+
const W = (O, U, B = []) => {
|
|
499
499
|
var Q;
|
|
500
|
-
for (const q of
|
|
501
|
-
if (q.menuUrl && (
|
|
502
|
-
return [...
|
|
500
|
+
for (const q of O) {
|
|
501
|
+
if (q.menuUrl && (U === q.menuUrl || U.startsWith(q.menuUrl + "/")))
|
|
502
|
+
return [...B, c(q)];
|
|
503
503
|
if ((Q = q.children) != null && Q.length) {
|
|
504
|
-
const le = W(q.children,
|
|
504
|
+
const le = W(q.children, U, [...B, c(q)]);
|
|
505
505
|
if (le) return le;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
return null;
|
|
509
509
|
};
|
|
510
|
-
|
|
511
|
-
if (
|
|
512
|
-
const
|
|
513
|
-
if (
|
|
514
|
-
const Q =
|
|
510
|
+
Me([() => l.path, d], ([O, U]) => {
|
|
511
|
+
if (U.length > 0) {
|
|
512
|
+
const B = W(U, O);
|
|
513
|
+
if (B) {
|
|
514
|
+
const Q = B.slice(0, -1), q = /* @__PURE__ */ new Set([...R.value, ...Q]);
|
|
515
515
|
R.value = Array.from(q);
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
}, { immediate: !0 }),
|
|
519
|
-
|
|
518
|
+
}, { immediate: !0 }), Me(d, (O, U) => {
|
|
519
|
+
O !== U && (R.value = [], z.set(qe, []), z.set(Ge, g()));
|
|
520
520
|
}, { immediate: !1 });
|
|
521
|
-
const
|
|
522
|
-
|
|
523
|
-
},
|
|
524
|
-
|
|
521
|
+
const ee = w(() => m.isDark ? "#161B21" : "#fff"), J = w(() => m.isDark ? "#D9DCE1" : "#4E5566"), te = w(() => m.isDark ? "#818CF8" : "#4F46E5"), X = (O) => {
|
|
522
|
+
O && O !== l.path && s.push(O);
|
|
523
|
+
}, se = () => {
|
|
524
|
+
h.logout(), r.clearUserInfo(), v.clearMenu(), s.push(m.loginPath);
|
|
525
525
|
};
|
|
526
|
-
return (
|
|
527
|
-
class:
|
|
526
|
+
return (O, U) => (a(), u("div", {
|
|
527
|
+
class: G(["sidebar", { "sidebar--collapsed": S.value }])
|
|
528
528
|
}, [
|
|
529
|
-
o.showLogo ? (a(),
|
|
529
|
+
o.showLogo ? (a(), u("div", rs, [
|
|
530
530
|
e("img", {
|
|
531
531
|
src: p.value,
|
|
532
532
|
alt: "Logo",
|
|
533
533
|
class: "sidebar__logo-img"
|
|
534
534
|
}, null, 8, is),
|
|
535
|
-
|
|
536
|
-
[Nt, !
|
|
535
|
+
Ae(e("span", { class: "sidebar__logo-text" }, x(n(m).appName), 513), [
|
|
536
|
+
[Nt, !S.value]
|
|
537
537
|
])
|
|
538
|
-
])) :
|
|
539
|
-
|
|
540
|
-
modelValue:
|
|
541
|
-
"onUpdate:modelValue":
|
|
538
|
+
])) : A("", !0),
|
|
539
|
+
_(n(tt), {
|
|
540
|
+
modelValue: y.value,
|
|
541
|
+
"onUpdate:modelValue": U[0] || (U[0] = (B) => y.value = B),
|
|
542
542
|
openeds: R.value,
|
|
543
|
-
"onUpdate:openeds":
|
|
543
|
+
"onUpdate:openeds": U[1] || (U[1] = (B) => R.value = B),
|
|
544
544
|
mode: "vertical",
|
|
545
|
-
collapse:
|
|
545
|
+
collapse: S.value,
|
|
546
546
|
"collapse-transition": !1,
|
|
547
|
-
"background-color":
|
|
547
|
+
"background-color": ee.value,
|
|
548
548
|
"text-color": J.value,
|
|
549
|
-
"active-text-color":
|
|
549
|
+
"active-text-color": te.value,
|
|
550
550
|
class: "sidebar__menu",
|
|
551
551
|
onSelect: X
|
|
552
552
|
}, {
|
|
553
|
-
default:
|
|
554
|
-
(a(!0),
|
|
555
|
-
key: c(
|
|
556
|
-
menu:
|
|
553
|
+
default: C(() => [
|
|
554
|
+
(a(!0), u(K, null, Y(d.value, (B) => (a(), F(ls, {
|
|
555
|
+
key: c(B),
|
|
556
|
+
menu: B
|
|
557
557
|
}, null, 8, ["menu"]))), 128))
|
|
558
558
|
]),
|
|
559
559
|
_: 1
|
|
560
560
|
}, 8, ["modelValue", "openeds", "collapse", "background-color", "text-color", "active-text-color"]),
|
|
561
|
-
o.showUser && !
|
|
562
|
-
e("div",
|
|
563
|
-
e("span",
|
|
564
|
-
e("span", ms,
|
|
561
|
+
o.showUser && !S.value ? (a(), u("div", cs, [
|
|
562
|
+
e("div", ds, [
|
|
563
|
+
e("span", us, x(n(r).userName), 1),
|
|
564
|
+
e("span", ms, x(n(r).departmentName), 1)
|
|
565
565
|
]),
|
|
566
|
-
|
|
566
|
+
_(n(Ne), {
|
|
567
567
|
type: "text",
|
|
568
568
|
size: "small",
|
|
569
|
-
onClick:
|
|
569
|
+
onClick: se
|
|
570
570
|
}, {
|
|
571
|
-
default:
|
|
572
|
-
|
|
571
|
+
default: C(() => [...U[2] || (U[2] = [
|
|
572
|
+
Z("退出", -1)
|
|
573
573
|
])]),
|
|
574
574
|
_: 1
|
|
575
575
|
})
|
|
576
|
-
])) :
|
|
576
|
+
])) : A("", !0)
|
|
577
577
|
], 2));
|
|
578
578
|
}
|
|
579
|
-
}),
|
|
579
|
+
}), dt = /* @__PURE__ */ ne(ps, [["__scopeId", "data-v-0322d1ab"]]), vs = { class: "header" }, hs = { class: "header__left" }, fs = {
|
|
580
580
|
key: 0,
|
|
581
581
|
class: "header__breadcrumb"
|
|
582
|
-
},
|
|
582
|
+
}, _s = {
|
|
583
583
|
key: 0,
|
|
584
584
|
class: "breadcrumb-separator"
|
|
585
585
|
}, gs = { class: "header__right" }, ys = {
|
|
586
586
|
key: 0,
|
|
587
587
|
class: "header__search-dropdown"
|
|
588
|
-
},
|
|
588
|
+
}, ks = {
|
|
589
589
|
key: 0,
|
|
590
590
|
class: "header__search-results"
|
|
591
|
-
},
|
|
591
|
+
}, ws = ["onClick"], bs = {
|
|
592
592
|
key: 0,
|
|
593
593
|
class: "header__search-icon"
|
|
594
594
|
}, xs = {
|
|
@@ -597,13 +597,13 @@ const ge = Pe("menu", () => {
|
|
|
597
597
|
}, Cs = { class: "header__search-item-title" }, $s = {
|
|
598
598
|
key: 1,
|
|
599
599
|
class: "header__search-item-parent"
|
|
600
|
-
},
|
|
600
|
+
}, Ms = {
|
|
601
601
|
key: 1,
|
|
602
602
|
class: "header__search-empty"
|
|
603
|
-
},
|
|
603
|
+
}, Ls = ["title"], Ss = { class: "header__avatar" }, Is = { class: "header__user-name" }, Es = {
|
|
604
604
|
key: 0,
|
|
605
605
|
class: "header__dropdown"
|
|
606
|
-
}, Ns = { class: "header__dropdown-header" }, Ts = { class: "header__dropdown-avatar" }, Us = { class: "header__dropdown-info" },
|
|
606
|
+
}, Ns = { class: "header__dropdown-header" }, Ts = { class: "header__dropdown-avatar" }, Us = { class: "header__dropdown-info" }, Ps = { class: "header__dropdown-name" }, zs = { class: "header__dropdown-role" }, Fs = { class: "header__dropdown-menu" }, Ds = { class: "settings-drawer" }, As = { class: "settings-section" }, Bs = { class: "settings-layout-options" }, Os = ["onClick"], Vs = { class: "layout-option__preview" }, Rs = {
|
|
607
607
|
key: 0,
|
|
608
608
|
class: "layout-preview-sidebar"
|
|
609
609
|
}, Ks = {
|
|
@@ -612,28 +612,28 @@ const ge = Pe("menu", () => {
|
|
|
612
612
|
}, js = {
|
|
613
613
|
key: 2,
|
|
614
614
|
class: "layout-preview-mix"
|
|
615
|
-
}, Ws = { class: "layout-option__label" }, qs = { class: "settings-section" },
|
|
615
|
+
}, Ws = { class: "layout-option__label" }, qs = { class: "settings-section" }, Gs = { class: "settings-color-options" }, Hs = ["title", "onClick"], Ys = { class: "settings-section" }, Xs = { class: "settings-switch-list" }, Zs = { class: "settings-switch-item" }, Js = { class: "settings-switch-item" }, Qs = { class: "settings-section" }, eo = /* @__PURE__ */ ae({
|
|
616
616
|
__name: "Header",
|
|
617
617
|
setup(t) {
|
|
618
|
-
const o = Te(), p =
|
|
618
|
+
const o = Te(), p = be(), l = fe(), s = me(), v = Fe(), r = ge(), h = k(!1), m = k(!1), d = k(null), S = k(!1), y = k(!1), c = k(""), g = k(null), E = k(!1), D = [
|
|
619
619
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
620
620
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
621
621
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
622
|
-
],
|
|
622
|
+
], V = [
|
|
623
623
|
{ value: "#4F46E5", label: "品牌蓝" },
|
|
624
624
|
{ value: "#0F6FDE", label: "企业蓝" },
|
|
625
625
|
{ value: "#00A870", label: "翡翠绿" },
|
|
626
626
|
{ value: "#D46B08", label: "琥珀橙" },
|
|
627
627
|
{ value: "#1F2329", label: "石墨黑" }
|
|
628
|
-
], R =
|
|
629
|
-
title:
|
|
630
|
-
path:
|
|
631
|
-
}))), W = (
|
|
632
|
-
const
|
|
633
|
-
return
|
|
634
|
-
|
|
635
|
-
}),
|
|
636
|
-
},
|
|
628
|
+
], R = w(() => o.matched.filter((b) => b.meta && b.meta.title).map((b) => ({
|
|
629
|
+
title: b.meta.title,
|
|
630
|
+
path: b.path
|
|
631
|
+
}))), W = (P, b = "") => {
|
|
632
|
+
const oe = [];
|
|
633
|
+
return P.forEach((M) => {
|
|
634
|
+
M.children && M.children.length > 0 ? oe.push(...W(M.children, M.menuName)) : oe.push({ ...M, parentTitle: b, title: M.menuName, path: M.menuUrl });
|
|
635
|
+
}), oe;
|
|
636
|
+
}, ee = /* @__PURE__ */ new Set([
|
|
637
637
|
"arrow-up",
|
|
638
638
|
"arrow-down",
|
|
639
639
|
"arrow-left",
|
|
@@ -735,10 +735,10 @@ const ge = Pe("menu", () => {
|
|
|
735
735
|
"sun",
|
|
736
736
|
"theme",
|
|
737
737
|
"skin"
|
|
738
|
-
]), J = (
|
|
739
|
-
if (!
|
|
740
|
-
if (
|
|
741
|
-
const
|
|
738
|
+
]), J = (P) => {
|
|
739
|
+
if (!P || P === "") return "";
|
|
740
|
+
if (P.startsWith("tineco-icon-")) {
|
|
741
|
+
const oe = P.replace("tineco-icon-", "");
|
|
742
742
|
return {
|
|
743
743
|
home: "home",
|
|
744
744
|
dashboard: "dashboard",
|
|
@@ -752,7 +752,7 @@ const ge = Pe("menu", () => {
|
|
|
752
752
|
chart: "chart",
|
|
753
753
|
report: "report",
|
|
754
754
|
analytics: "analytics"
|
|
755
|
-
}[
|
|
755
|
+
}[oe] || oe;
|
|
756
756
|
}
|
|
757
757
|
return {
|
|
758
758
|
dashboard: "dashboard",
|
|
@@ -771,121 +771,121 @@ const ge = Pe("menu", () => {
|
|
|
771
771
|
app: "app",
|
|
772
772
|
list: "list",
|
|
773
773
|
grid: "grid"
|
|
774
|
-
}[
|
|
775
|
-
},
|
|
776
|
-
(
|
|
777
|
-
) : []),
|
|
774
|
+
}[P] || P;
|
|
775
|
+
}, te = (P) => P ? P.charAt(0) : "", X = (P) => ee.has(P), se = w(() => c.value.trim() ? W(r.menuList).filter(
|
|
776
|
+
(b) => b.title.toLowerCase().includes(c.value.toLowerCase())
|
|
777
|
+
) : []), O = w(() => l.layout), U = () => {
|
|
778
778
|
l.toggleCollapse();
|
|
779
|
-
},
|
|
779
|
+
}, B = () => {
|
|
780
780
|
l.toggleTheme();
|
|
781
781
|
}, Q = () => {
|
|
782
|
-
|
|
783
|
-
}, q = (
|
|
784
|
-
l.setLayout(
|
|
785
|
-
}, le = (
|
|
786
|
-
|
|
787
|
-
const
|
|
788
|
-
|
|
782
|
+
m.value = !0;
|
|
783
|
+
}, q = (P) => {
|
|
784
|
+
l.setLayout(P), m.value = !1;
|
|
785
|
+
}, le = (P) => {
|
|
786
|
+
E.value = P;
|
|
787
|
+
const b = document.documentElement;
|
|
788
|
+
P ? b.classList.add("grey-mode") : b.classList.remove("grey-mode");
|
|
789
789
|
}, _e = () => {
|
|
790
|
-
le(!
|
|
790
|
+
le(!E.value), m.value = !1;
|
|
791
791
|
}, xe = () => {
|
|
792
|
-
l.toggleTheme(),
|
|
793
|
-
},
|
|
794
|
-
l.resetToServerDefaults(),
|
|
792
|
+
l.toggleTheme(), m.value = !1;
|
|
793
|
+
}, de = () => {
|
|
794
|
+
l.resetToServerDefaults(), m.value = !1;
|
|
795
795
|
}, pe = () => {
|
|
796
796
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
797
797
|
}, ye = () => {
|
|
798
|
-
|
|
799
|
-
},
|
|
800
|
-
|
|
798
|
+
S.value = !!document.fullscreenElement;
|
|
799
|
+
}, ue = () => {
|
|
800
|
+
h.value = !h.value;
|
|
801
801
|
}, re = () => {
|
|
802
|
-
|
|
803
|
-
},
|
|
804
|
-
|
|
805
|
-
},
|
|
806
|
-
p.push(
|
|
807
|
-
}, ve = (
|
|
808
|
-
l.setPrimaryColor(
|
|
802
|
+
h.value = !1;
|
|
803
|
+
}, I = () => {
|
|
804
|
+
y.value = !1, c.value = "";
|
|
805
|
+
}, H = (P) => {
|
|
806
|
+
p.push(P), I();
|
|
807
|
+
}, ve = (P) => {
|
|
808
|
+
l.setPrimaryColor(P), m.value = !1;
|
|
809
809
|
}, he = () => {
|
|
810
810
|
re(), p.push("/profile");
|
|
811
811
|
}, ie = () => {
|
|
812
812
|
re(), p.push("/change-password");
|
|
813
813
|
}, Ce = () => {
|
|
814
|
-
re(),
|
|
815
|
-
},
|
|
816
|
-
|
|
817
|
-
}, $e = (
|
|
818
|
-
|
|
814
|
+
re(), v.logout(), s.clearUserInfo(), r.clearMenu(), p.push(l.loginPath);
|
|
815
|
+
}, ke = (P) => {
|
|
816
|
+
d.value && !d.value.contains(P.target) && re(), g.value && !g.value.contains(P.target) && I();
|
|
817
|
+
}, $e = (P) => {
|
|
818
|
+
P.key === "Escape" && (I(), re());
|
|
819
819
|
};
|
|
820
|
-
return
|
|
821
|
-
document.addEventListener("click",
|
|
822
|
-
}),
|
|
823
|
-
document.removeEventListener("click",
|
|
824
|
-
}), (
|
|
825
|
-
var
|
|
826
|
-
return a(),
|
|
820
|
+
return Be(() => {
|
|
821
|
+
document.addEventListener("click", ke), document.addEventListener("fullscreenchange", ye), document.addEventListener("keydown", $e), l.initTheme(), E.value = document.documentElement.classList.contains("grey-mode");
|
|
822
|
+
}), Ye(() => {
|
|
823
|
+
document.removeEventListener("click", ke), document.removeEventListener("fullscreenchange", ye), document.removeEventListener("keydown", $e);
|
|
824
|
+
}), (P, b) => {
|
|
825
|
+
var oe;
|
|
826
|
+
return a(), u("div", vs, [
|
|
827
827
|
e("div", hs, [
|
|
828
828
|
e("div", {
|
|
829
829
|
class: "header__collapse",
|
|
830
|
-
onClick:
|
|
830
|
+
onClick: U
|
|
831
831
|
}, [
|
|
832
|
-
|
|
832
|
+
_(n(T), {
|
|
833
833
|
name: n(l).isCollapsed ? "menu-unfold" : "menu-fold",
|
|
834
834
|
size: 18
|
|
835
835
|
}, null, 8, ["name"])
|
|
836
836
|
]),
|
|
837
|
-
n(l).showBreadcrumb ? (a(),
|
|
838
|
-
(a(!0),
|
|
839
|
-
key:
|
|
837
|
+
n(l).showBreadcrumb ? (a(), u("div", fs, [
|
|
838
|
+
(a(!0), u(K, null, Y(R.value, (M, N) => (a(), u("span", {
|
|
839
|
+
key: M.path
|
|
840
840
|
}, [
|
|
841
|
-
|
|
841
|
+
N > 0 ? (a(), u("span", _s, "/")) : A("", !0),
|
|
842
842
|
e("span", {
|
|
843
|
-
class:
|
|
844
|
-
},
|
|
843
|
+
class: G({ "is-current": N === R.value.length - 1 })
|
|
844
|
+
}, x(M.title), 3)
|
|
845
845
|
]))), 128))
|
|
846
|
-
])) :
|
|
846
|
+
])) : A("", !0)
|
|
847
847
|
]),
|
|
848
848
|
e("div", gs, [
|
|
849
849
|
e("div", {
|
|
850
850
|
class: "header__search",
|
|
851
851
|
ref_key: "searchRef",
|
|
852
|
-
ref:
|
|
852
|
+
ref: g
|
|
853
853
|
}, [
|
|
854
|
-
|
|
854
|
+
_(n(T), {
|
|
855
855
|
name: "search",
|
|
856
856
|
size: 14,
|
|
857
857
|
class: "header__search-icon"
|
|
858
858
|
}),
|
|
859
|
-
|
|
860
|
-
"onUpdate:modelValue":
|
|
859
|
+
Ae(e("input", {
|
|
860
|
+
"onUpdate:modelValue": b[0] || (b[0] = (M) => c.value = M),
|
|
861
861
|
type: "text",
|
|
862
862
|
class: "header__search-input",
|
|
863
863
|
placeholder: "搜索菜单...",
|
|
864
|
-
onFocus:
|
|
864
|
+
onFocus: b[1] || (b[1] = (M) => y.value = !0)
|
|
865
865
|
}, null, 544), [
|
|
866
|
-
[
|
|
866
|
+
[Xe, c.value]
|
|
867
867
|
]),
|
|
868
|
-
|
|
869
|
-
default:
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
(a(!0),
|
|
873
|
-
key:
|
|
868
|
+
_(Ie, { name: "search-dropdown" }, {
|
|
869
|
+
default: C(() => [
|
|
870
|
+
y.value && (se.value.length > 0 || c.value) ? (a(), u("div", ys, [
|
|
871
|
+
se.value.length > 0 ? (a(), u("div", ks, [
|
|
872
|
+
(a(!0), u(K, null, Y(se.value, (M) => (a(), u("div", {
|
|
873
|
+
key: M.path,
|
|
874
874
|
class: "header__search-item",
|
|
875
|
-
onClick: (
|
|
875
|
+
onClick: (N) => H(M.path)
|
|
876
876
|
}, [
|
|
877
|
-
|
|
878
|
-
X(J(
|
|
877
|
+
M.title !== "首页" ? (a(), u("span", bs, [
|
|
878
|
+
X(J(M.icon)) ? (a(), F(n(T), {
|
|
879
879
|
key: 0,
|
|
880
|
-
name: J(
|
|
880
|
+
name: J(M.icon),
|
|
881
881
|
size: 16
|
|
882
|
-
}, null, 8, ["name"])) : (a(),
|
|
883
|
-
])) :
|
|
884
|
-
e("span", Cs,
|
|
885
|
-
|
|
886
|
-
], 8,
|
|
887
|
-
])) : (a(),
|
|
888
|
-
])) :
|
|
882
|
+
}, null, 8, ["name"])) : (a(), u("span", xs, x(te(M.title)), 1))
|
|
883
|
+
])) : A("", !0),
|
|
884
|
+
e("span", Cs, x(M.title), 1),
|
|
885
|
+
M.parentTitle ? (a(), u("span", $s, x(M.parentTitle), 1)) : A("", !0)
|
|
886
|
+
], 8, ws))), 128))
|
|
887
|
+
])) : (a(), u("div", Ms, " 未找到匹配的菜单 "))
|
|
888
|
+
])) : A("", !0)
|
|
889
889
|
]),
|
|
890
890
|
_: 1
|
|
891
891
|
})
|
|
@@ -893,30 +893,30 @@ const ge = Pe("menu", () => {
|
|
|
893
893
|
e("div", {
|
|
894
894
|
class: "header__action",
|
|
895
895
|
onClick: pe,
|
|
896
|
-
title:
|
|
896
|
+
title: S.value ? "退出全屏" : "全屏"
|
|
897
897
|
}, [
|
|
898
|
-
|
|
899
|
-
name:
|
|
898
|
+
_(n(T), {
|
|
899
|
+
name: S.value ? "fullscreen-exit" : "fullscreen",
|
|
900
900
|
size: 16
|
|
901
901
|
}, null, 8, ["name"])
|
|
902
|
-
], 8,
|
|
903
|
-
n(l).allowUserOverride ? (a(),
|
|
902
|
+
], 8, Ls),
|
|
903
|
+
n(l).allowUserOverride ? (a(), u("div", {
|
|
904
904
|
key: 0,
|
|
905
905
|
class: "header__action",
|
|
906
906
|
onClick: Q,
|
|
907
907
|
title: "换肤设置"
|
|
908
908
|
}, [
|
|
909
|
-
|
|
909
|
+
_(n(T), {
|
|
910
910
|
name: "skin",
|
|
911
911
|
size: 16
|
|
912
912
|
})
|
|
913
|
-
])) :
|
|
913
|
+
])) : A("", !0),
|
|
914
914
|
e("div", {
|
|
915
915
|
class: "header__action",
|
|
916
|
-
onClick:
|
|
916
|
+
onClick: B,
|
|
917
917
|
title: "切换主题"
|
|
918
918
|
}, [
|
|
919
|
-
|
|
919
|
+
_(n(T), {
|
|
920
920
|
name: n(l).isDark ? "sun" : "moon",
|
|
921
921
|
size: 16
|
|
922
922
|
}, null, 8, ["name"])
|
|
@@ -924,19 +924,19 @@ const ge = Pe("menu", () => {
|
|
|
924
924
|
e("div", {
|
|
925
925
|
class: "header__user",
|
|
926
926
|
ref_key: "dropdownRef",
|
|
927
|
-
ref:
|
|
927
|
+
ref: d
|
|
928
928
|
}, [
|
|
929
929
|
e("div", {
|
|
930
930
|
class: "header__user-trigger",
|
|
931
|
-
onClick:
|
|
931
|
+
onClick: Oe(ue, ["stop"])
|
|
932
932
|
}, [
|
|
933
933
|
e("div", Ss, [
|
|
934
|
-
e("span", null,
|
|
934
|
+
e("span", null, x(((oe = n(s).userName) == null ? void 0 : oe.charAt(0)) || "U"), 1)
|
|
935
935
|
]),
|
|
936
|
-
e("span", Is,
|
|
936
|
+
e("span", Is, x(n(s).userName), 1),
|
|
937
937
|
e("span", {
|
|
938
|
-
class:
|
|
939
|
-
}, [...
|
|
938
|
+
class: G(["header__user-arrow", { "is-active": h.value }])
|
|
939
|
+
}, [...b[3] || (b[3] = [
|
|
940
940
|
e("svg", {
|
|
941
941
|
viewBox: "0 0 12 12",
|
|
942
942
|
width: "10",
|
|
@@ -951,89 +951,89 @@ const ge = Pe("menu", () => {
|
|
|
951
951
|
], -1)
|
|
952
952
|
])], 2)
|
|
953
953
|
]),
|
|
954
|
-
|
|
955
|
-
default:
|
|
956
|
-
var
|
|
954
|
+
_(Ie, { name: "dropdown" }, {
|
|
955
|
+
default: C(() => {
|
|
956
|
+
var M;
|
|
957
957
|
return [
|
|
958
|
-
|
|
958
|
+
h.value ? (a(), u("div", Es, [
|
|
959
959
|
e("div", Ns, [
|
|
960
960
|
e("div", Ts, [
|
|
961
|
-
e("span", null,
|
|
961
|
+
e("span", null, x(((M = n(s).userName) == null ? void 0 : M.charAt(0)) || "U"), 1)
|
|
962
962
|
]),
|
|
963
963
|
e("div", Us, [
|
|
964
|
-
e("div",
|
|
965
|
-
e("div",
|
|
964
|
+
e("div", Ps, x(n(s).userName), 1),
|
|
965
|
+
e("div", zs, x(n(s).roleName || n(s).departmentName), 1)
|
|
966
966
|
])
|
|
967
967
|
]),
|
|
968
|
-
|
|
968
|
+
b[8] || (b[8] = e("div", { class: "header__dropdown-divider" }, null, -1)),
|
|
969
969
|
e("div", Fs, [
|
|
970
970
|
e("div", {
|
|
971
971
|
class: "header__dropdown-item",
|
|
972
972
|
onClick: he
|
|
973
973
|
}, [
|
|
974
|
-
|
|
974
|
+
_(n(T), {
|
|
975
975
|
name: "user",
|
|
976
976
|
size: 16
|
|
977
977
|
}),
|
|
978
|
-
|
|
978
|
+
b[4] || (b[4] = e("span", null, "个人信息", -1))
|
|
979
979
|
]),
|
|
980
980
|
e("div", {
|
|
981
981
|
class: "header__dropdown-item",
|
|
982
982
|
onClick: ie
|
|
983
983
|
}, [
|
|
984
|
-
|
|
984
|
+
_(n(T), {
|
|
985
985
|
name: "lock",
|
|
986
986
|
size: 16
|
|
987
987
|
}),
|
|
988
|
-
|
|
988
|
+
b[5] || (b[5] = e("span", null, "修改密码", -1))
|
|
989
989
|
]),
|
|
990
|
-
|
|
990
|
+
b[7] || (b[7] = e("div", { class: "header__dropdown-divider" }, null, -1)),
|
|
991
991
|
e("div", {
|
|
992
992
|
class: "header__dropdown-item header__dropdown-item--danger",
|
|
993
993
|
onClick: Ce
|
|
994
994
|
}, [
|
|
995
|
-
|
|
995
|
+
_(n(T), {
|
|
996
996
|
name: "logout",
|
|
997
997
|
size: 16
|
|
998
998
|
}),
|
|
999
|
-
|
|
999
|
+
b[6] || (b[6] = e("span", null, "退出登录", -1))
|
|
1000
1000
|
])
|
|
1001
1001
|
])
|
|
1002
|
-
])) :
|
|
1002
|
+
])) : A("", !0)
|
|
1003
1003
|
];
|
|
1004
1004
|
}),
|
|
1005
1005
|
_: 1
|
|
1006
1006
|
})
|
|
1007
1007
|
], 512)
|
|
1008
1008
|
]),
|
|
1009
|
-
|
|
1010
|
-
modelValue:
|
|
1011
|
-
"onUpdate:modelValue":
|
|
1009
|
+
_(n(st), {
|
|
1010
|
+
modelValue: m.value,
|
|
1011
|
+
"onUpdate:modelValue": b[2] || (b[2] = (M) => m.value = M),
|
|
1012
1012
|
title: "换肤设置",
|
|
1013
1013
|
direction: "rtl",
|
|
1014
1014
|
size: "320px"
|
|
1015
1015
|
}, {
|
|
1016
|
-
default:
|
|
1016
|
+
default: C(() => [
|
|
1017
1017
|
e("div", Ds, [
|
|
1018
1018
|
e("div", As, [
|
|
1019
|
-
|
|
1019
|
+
b[12] || (b[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
|
|
1020
1020
|
e("div", Bs, [
|
|
1021
|
-
(a(),
|
|
1022
|
-
key:
|
|
1023
|
-
class:
|
|
1024
|
-
onClick: (
|
|
1021
|
+
(a(), u(K, null, Y(D, (M) => e("div", {
|
|
1022
|
+
key: M.value,
|
|
1023
|
+
class: G(["layout-option", { "is-active": O.value === M.value }]),
|
|
1024
|
+
onClick: (N) => q(M.value)
|
|
1025
1025
|
}, [
|
|
1026
1026
|
e("div", Vs, [
|
|
1027
|
-
|
|
1027
|
+
M.value === "sidebar" ? (a(), u("div", Rs, [...b[9] || (b[9] = [
|
|
1028
1028
|
e("div", { class: "preview-aside" }, null, -1),
|
|
1029
1029
|
e("div", { class: "preview-main" }, [
|
|
1030
1030
|
e("div", { class: "preview-header" }),
|
|
1031
1031
|
e("div", { class: "preview-content" })
|
|
1032
1032
|
], -1)
|
|
1033
|
-
])])) :
|
|
1033
|
+
])])) : M.value === "top" ? (a(), u("div", Ks, [...b[10] || (b[10] = [
|
|
1034
1034
|
e("div", { class: "preview-header-full" }, null, -1),
|
|
1035
1035
|
e("div", { class: "preview-content-full" }, null, -1)
|
|
1036
|
-
])])) : (a(),
|
|
1036
|
+
])])) : (a(), u("div", js, [...b[11] || (b[11] = [
|
|
1037
1037
|
e("div", { class: "preview-header-mix" }, [
|
|
1038
1038
|
e("div", { class: "preview-mix-left" })
|
|
1039
1039
|
], -1),
|
|
@@ -1043,62 +1043,62 @@ const ge = Pe("menu", () => {
|
|
|
1043
1043
|
], -1)
|
|
1044
1044
|
])]))
|
|
1045
1045
|
]),
|
|
1046
|
-
e("span", Ws,
|
|
1046
|
+
e("span", Ws, x(M.label), 1)
|
|
1047
1047
|
], 10, Os)), 64))
|
|
1048
1048
|
])
|
|
1049
1049
|
]),
|
|
1050
1050
|
e("div", qs, [
|
|
1051
|
-
|
|
1052
|
-
e("div",
|
|
1053
|
-
(a(),
|
|
1054
|
-
key:
|
|
1055
|
-
class:
|
|
1056
|
-
style: Ee({ backgroundColor:
|
|
1057
|
-
title:
|
|
1058
|
-
onClick: (
|
|
1051
|
+
b[13] || (b[13] = e("div", { class: "settings-title" }, "主题色", -1)),
|
|
1052
|
+
e("div", Gs, [
|
|
1053
|
+
(a(), u(K, null, Y(V, (M) => e("div", {
|
|
1054
|
+
key: M.value,
|
|
1055
|
+
class: G(["color-option", { "is-active": n(l).primaryColor === M.value }]),
|
|
1056
|
+
style: Ee({ backgroundColor: M.value }),
|
|
1057
|
+
title: M.label,
|
|
1058
|
+
onClick: (N) => ve(M.value)
|
|
1059
1059
|
}, [
|
|
1060
|
-
n(l).primaryColor ===
|
|
1060
|
+
n(l).primaryColor === M.value ? (a(), F(n(T), {
|
|
1061
1061
|
key: 0,
|
|
1062
1062
|
name: "check",
|
|
1063
1063
|
size: 12,
|
|
1064
1064
|
color: "#fff"
|
|
1065
|
-
})) :
|
|
1066
|
-
], 14,
|
|
1065
|
+
})) : A("", !0)
|
|
1066
|
+
], 14, Hs)), 64))
|
|
1067
1067
|
])
|
|
1068
1068
|
]),
|
|
1069
|
-
e("div",
|
|
1070
|
-
|
|
1069
|
+
e("div", Ys, [
|
|
1070
|
+
b[18] || (b[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
|
|
1071
1071
|
e("div", Xs, [
|
|
1072
|
-
e("div",
|
|
1073
|
-
|
|
1072
|
+
e("div", Zs, [
|
|
1073
|
+
b[15] || (b[15] = e("span", null, "灰色模式", -1)),
|
|
1074
1074
|
e("div", {
|
|
1075
|
-
class:
|
|
1075
|
+
class: G(["switch-wrapper", { "is-checked": E.value }]),
|
|
1076
1076
|
onClick: _e
|
|
1077
|
-
}, [...
|
|
1077
|
+
}, [...b[14] || (b[14] = [
|
|
1078
1078
|
e("span", { class: "switch-core" }, null, -1)
|
|
1079
1079
|
])], 2)
|
|
1080
1080
|
]),
|
|
1081
|
-
e("div",
|
|
1082
|
-
|
|
1081
|
+
e("div", Js, [
|
|
1082
|
+
b[17] || (b[17] = e("span", null, "暗黑模式", -1)),
|
|
1083
1083
|
e("div", {
|
|
1084
|
-
class:
|
|
1084
|
+
class: G(["switch-wrapper", { "is-checked": n(l).isDark }]),
|
|
1085
1085
|
onClick: xe
|
|
1086
|
-
}, [...
|
|
1086
|
+
}, [...b[16] || (b[16] = [
|
|
1087
1087
|
e("span", { class: "switch-core" }, null, -1)
|
|
1088
1088
|
])], 2)
|
|
1089
1089
|
])
|
|
1090
1090
|
])
|
|
1091
1091
|
]),
|
|
1092
|
-
e("div",
|
|
1092
|
+
e("div", Qs, [
|
|
1093
1093
|
e("div", {
|
|
1094
1094
|
class: "settings-reset",
|
|
1095
|
-
onClick:
|
|
1095
|
+
onClick: de
|
|
1096
1096
|
}, [
|
|
1097
|
-
|
|
1097
|
+
_(n(T), {
|
|
1098
1098
|
name: "refresh",
|
|
1099
1099
|
size: 14
|
|
1100
1100
|
}),
|
|
1101
|
-
|
|
1101
|
+
b[19] || (b[19] = e("span", null, "恢复默认", -1))
|
|
1102
1102
|
])
|
|
1103
1103
|
])
|
|
1104
1104
|
])
|
|
@@ -1117,19 +1117,19 @@ const ge = Pe("menu", () => {
|
|
|
1117
1117
|
}, co = { class: "top-menu__menu-text" }, uo = { class: "top-menu__menu-content" }, mo = { class: "top-menu__menu-icon" }, po = {
|
|
1118
1118
|
key: 1,
|
|
1119
1119
|
class: "top-menu__menu-char"
|
|
1120
|
-
}, vo = { class: "top-menu__menu-text" }, ho = { class: "top-menu__menu-content" },
|
|
1120
|
+
}, vo = { class: "top-menu__menu-text" }, ho = { class: "top-menu__menu-content" }, fo = { class: "top-menu__menu-icon" }, _o = {
|
|
1121
1121
|
key: 1,
|
|
1122
1122
|
class: "top-menu__menu-char"
|
|
1123
|
-
}, go = { class: "top-menu__menu-text" }, yo = { class: "top-menu__menu-content" },
|
|
1123
|
+
}, go = { class: "top-menu__menu-text" }, yo = { class: "top-menu__menu-content" }, ko = { class: "top-menu__menu-icon" }, wo = {
|
|
1124
1124
|
key: 1,
|
|
1125
1125
|
class: "top-menu__menu-char"
|
|
1126
|
-
},
|
|
1126
|
+
}, bo = { class: "top-menu__menu-text" }, xo = { class: "top-menu__menu-content" }, Co = {
|
|
1127
1127
|
key: 0,
|
|
1128
1128
|
class: "top-menu__menu-icon"
|
|
1129
1129
|
}, $o = {
|
|
1130
1130
|
key: 1,
|
|
1131
1131
|
class: "top-menu__menu-char"
|
|
1132
|
-
},
|
|
1132
|
+
}, Mo = { class: "top-menu__menu-text" }, Lo = { class: "top-menu__actions" }, So = {
|
|
1133
1133
|
key: 0,
|
|
1134
1134
|
class: "top-menu__search-dropdown"
|
|
1135
1135
|
}, Io = {
|
|
@@ -1141,22 +1141,22 @@ const ge = Pe("menu", () => {
|
|
|
1141
1141
|
}, To = {
|
|
1142
1142
|
key: 1,
|
|
1143
1143
|
class: "top-menu__search-char"
|
|
1144
|
-
}, Uo = { class: "top-menu__search-item-title" },
|
|
1144
|
+
}, Uo = { class: "top-menu__search-item-title" }, Po = {
|
|
1145
1145
|
key: 1,
|
|
1146
1146
|
class: "top-menu__search-item-parent"
|
|
1147
|
-
},
|
|
1147
|
+
}, zo = {
|
|
1148
1148
|
key: 1,
|
|
1149
1149
|
class: "top-menu__search-empty"
|
|
1150
1150
|
}, Fo = ["title"], Do = { class: "top-menu__avatar" }, Ao = { class: "top-menu__user-name" }, Bo = {
|
|
1151
1151
|
key: 0,
|
|
1152
1152
|
class: "top-menu__dropdown"
|
|
1153
|
-
}, Oo = { class: "top-menu__dropdown-header" }, Vo = { class: "top-menu__dropdown-avatar" }, Ro = { class: "top-menu__dropdown-info" }, Ko = { class: "top-menu__dropdown-name" }, jo = { class: "top-menu__dropdown-role" }, Wo = { class: "top-menu__dropdown-menu" }, qo = { class: "settings-drawer" },
|
|
1153
|
+
}, Oo = { class: "top-menu__dropdown-header" }, Vo = { class: "top-menu__dropdown-avatar" }, Ro = { class: "top-menu__dropdown-info" }, Ko = { class: "top-menu__dropdown-name" }, jo = { class: "top-menu__dropdown-role" }, Wo = { class: "top-menu__dropdown-menu" }, qo = { class: "settings-drawer" }, Go = { class: "settings-section" }, Ho = { class: "settings-layout-options" }, Yo = ["onClick"], Xo = { class: "layout-option__preview" }, Zo = {
|
|
1154
1154
|
key: 0,
|
|
1155
1155
|
class: "layout-preview-sidebar"
|
|
1156
|
-
},
|
|
1156
|
+
}, Jo = {
|
|
1157
1157
|
key: 1,
|
|
1158
1158
|
class: "layout-preview-top"
|
|
1159
|
-
},
|
|
1159
|
+
}, Qo = {
|
|
1160
1160
|
key: 2,
|
|
1161
1161
|
class: "layout-preview-mix"
|
|
1162
1162
|
}, ea = { class: "layout-option__label" }, ta = { class: "settings-section" }, sa = { class: "settings-color-options" }, oa = ["title", "onClick"], aa = { class: "settings-section" }, na = { class: "settings-switch-list" }, la = { class: "settings-switch-item" }, ra = { class: "settings-switch-item" }, ia = /* @__PURE__ */ ae({
|
|
@@ -1165,16 +1165,16 @@ const ge = Pe("menu", () => {
|
|
|
1165
1165
|
logoSrc: {}
|
|
1166
1166
|
},
|
|
1167
1167
|
setup(t) {
|
|
1168
|
-
const o = t, p =
|
|
1168
|
+
const o = t, p = w(() => o.logoSrc || Pe("/vite.svg")), l = Te(), s = be(), v = ge(), r = fe(), h = me(), m = Fe(), d = w(() => l.path), S = (N, $ = "") => {
|
|
1169
1169
|
const ce = [];
|
|
1170
|
-
return
|
|
1171
|
-
i.children && i.children.length > 0 ? ce.push(...
|
|
1170
|
+
return N.forEach((i) => {
|
|
1171
|
+
i.children && i.children.length > 0 ? ce.push(...S(i.children, i.menuName)) : ce.push({ ...i, parentTitle: $, title: i.menuName, path: i.menuUrl });
|
|
1172
1172
|
}), ce;
|
|
1173
|
-
},
|
|
1174
|
-
($) => $.title.toLowerCase().includes(
|
|
1175
|
-
) : []), c =
|
|
1176
|
-
|
|
1177
|
-
},
|
|
1173
|
+
}, y = w(() => te.value.trim() ? S(v.menuList).filter(
|
|
1174
|
+
($) => $.title.toLowerCase().includes(te.value.toLowerCase())
|
|
1175
|
+
) : []), c = w(() => r.isDark ? "#1d1e1f" : "#fff"), g = w(() => r.isDark ? "#cfd3dc" : "#303133"), E = w(() => "#409eff"), D = k(!1), V = k(null), R = k(!1), W = k(!1), ee = k(!1), J = k(!1), te = k(""), X = k(null), se = (N) => {
|
|
1176
|
+
N && N !== l.path && s.push(N);
|
|
1177
|
+
}, O = /* @__PURE__ */ new Set([
|
|
1178
1178
|
"arrow-up",
|
|
1179
1179
|
"arrow-down",
|
|
1180
1180
|
"arrow-left",
|
|
@@ -1276,10 +1276,10 @@ const ge = Pe("menu", () => {
|
|
|
1276
1276
|
"sun",
|
|
1277
1277
|
"theme",
|
|
1278
1278
|
"skin"
|
|
1279
|
-
]),
|
|
1280
|
-
if (!
|
|
1281
|
-
if (
|
|
1282
|
-
const ce =
|
|
1279
|
+
]), U = (N) => {
|
|
1280
|
+
if (!N || N === "") return "";
|
|
1281
|
+
if (N.startsWith("tineco-icon-")) {
|
|
1282
|
+
const ce = N.replace("tineco-icon-", "");
|
|
1283
1283
|
return {
|
|
1284
1284
|
home: "home",
|
|
1285
1285
|
dashboard: "dashboard",
|
|
@@ -1312,8 +1312,8 @@ const ge = Pe("menu", () => {
|
|
|
1312
1312
|
app: "app",
|
|
1313
1313
|
list: "list",
|
|
1314
1314
|
grid: "grid"
|
|
1315
|
-
}[
|
|
1316
|
-
},
|
|
1315
|
+
}[N] || N;
|
|
1316
|
+
}, B = (N) => N ? N.charAt(0) : "", Q = (N) => O.has(N), q = () => {
|
|
1317
1317
|
r.toggleTheme(), W.value = !1;
|
|
1318
1318
|
}, le = () => {
|
|
1319
1319
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
@@ -1321,146 +1321,146 @@ const ge = Pe("menu", () => {
|
|
|
1321
1321
|
R.value = !!document.fullscreenElement;
|
|
1322
1322
|
}, xe = () => {
|
|
1323
1323
|
D.value = !D.value;
|
|
1324
|
-
},
|
|
1324
|
+
}, de = () => {
|
|
1325
1325
|
D.value = !1;
|
|
1326
1326
|
}, pe = () => {
|
|
1327
|
-
J.value = !1,
|
|
1328
|
-
}, ye = (
|
|
1329
|
-
s.push(
|
|
1330
|
-
},
|
|
1327
|
+
J.value = !1, te.value = "";
|
|
1328
|
+
}, ye = (N) => {
|
|
1329
|
+
s.push(N), pe();
|
|
1330
|
+
}, ue = () => {
|
|
1331
1331
|
W.value = !0;
|
|
1332
|
-
}, re = (
|
|
1333
|
-
|
|
1332
|
+
}, re = (N) => {
|
|
1333
|
+
ee.value = N;
|
|
1334
1334
|
const $ = document.documentElement;
|
|
1335
|
-
|
|
1336
|
-
},
|
|
1337
|
-
re(!
|
|
1338
|
-
},
|
|
1335
|
+
N ? $.classList.add("grey-mode") : $.classList.remove("grey-mode");
|
|
1336
|
+
}, I = () => {
|
|
1337
|
+
re(!ee.value), W.value = !1;
|
|
1338
|
+
}, H = () => {
|
|
1339
1339
|
r.toggleTheme(), W.value = !1;
|
|
1340
1340
|
}, ve = [
|
|
1341
1341
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
1342
1342
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
1343
1343
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
1344
|
-
], he =
|
|
1345
|
-
r.setLayout(
|
|
1344
|
+
], he = w(() => r.layout), ie = (N) => {
|
|
1345
|
+
r.setLayout(N), W.value = !1;
|
|
1346
1346
|
}, Ce = [
|
|
1347
1347
|
{ value: "#409eff", label: "默认蓝" },
|
|
1348
1348
|
{ value: "#0F6FDE", label: "企业蓝" },
|
|
1349
1349
|
{ value: "#00A870", label: "翡翠绿" },
|
|
1350
1350
|
{ value: "#D46B08", label: "琥珀橙" },
|
|
1351
1351
|
{ value: "#1F2329", label: "石墨黑" }
|
|
1352
|
-
],
|
|
1353
|
-
r.setPrimaryColor(
|
|
1352
|
+
], ke = (N) => {
|
|
1353
|
+
r.setPrimaryColor(N), W.value = !1;
|
|
1354
1354
|
}, $e = () => {
|
|
1355
|
-
|
|
1356
|
-
},
|
|
1357
|
-
|
|
1358
|
-
},
|
|
1359
|
-
|
|
1360
|
-
},
|
|
1361
|
-
|
|
1362
|
-
},
|
|
1363
|
-
|
|
1355
|
+
de(), s.push("/profile");
|
|
1356
|
+
}, P = () => {
|
|
1357
|
+
de(), s.push("/change-password");
|
|
1358
|
+
}, b = () => {
|
|
1359
|
+
de(), m.logout(), h.clearUserInfo(), v.clearMenu(), s.push(r.loginPath);
|
|
1360
|
+
}, oe = (N) => {
|
|
1361
|
+
V.value && !V.value.contains(N.target) && de(), X.value && !X.value.contains(N.target) && pe();
|
|
1362
|
+
}, M = (N) => {
|
|
1363
|
+
N.key === "Escape" && (pe(), de());
|
|
1364
1364
|
};
|
|
1365
|
-
return
|
|
1366
|
-
document.addEventListener("click",
|
|
1367
|
-
}),
|
|
1368
|
-
document.removeEventListener("click",
|
|
1369
|
-
}), (
|
|
1365
|
+
return Be(() => {
|
|
1366
|
+
document.addEventListener("click", oe), document.addEventListener("fullscreenchange", _e), document.addEventListener("keydown", M), ee.value = document.documentElement.classList.contains("grey-mode");
|
|
1367
|
+
}), Ye(() => {
|
|
1368
|
+
document.removeEventListener("click", oe), document.removeEventListener("fullscreenchange", _e), document.removeEventListener("keydown", M);
|
|
1369
|
+
}), (N, $) => {
|
|
1370
1370
|
var ce;
|
|
1371
|
-
return a(),
|
|
1371
|
+
return a(), u("div", so, [
|
|
1372
1372
|
e("div", oo, [
|
|
1373
1373
|
e("img", {
|
|
1374
1374
|
src: p.value,
|
|
1375
1375
|
alt: "Logo",
|
|
1376
1376
|
class: "top-menu__logo-img"
|
|
1377
1377
|
}, null, 8, ao),
|
|
1378
|
-
e("span", no,
|
|
1378
|
+
e("span", no, x(n(r).appName), 1)
|
|
1379
1379
|
]),
|
|
1380
|
-
|
|
1381
|
-
"model-value":
|
|
1380
|
+
_(n(tt), {
|
|
1381
|
+
"model-value": d.value,
|
|
1382
1382
|
mode: "horizontal",
|
|
1383
1383
|
"background-color": c.value,
|
|
1384
|
-
"text-color":
|
|
1385
|
-
"active-text-color":
|
|
1384
|
+
"text-color": g.value,
|
|
1385
|
+
"active-text-color": E.value,
|
|
1386
1386
|
class: "top-menu__menu",
|
|
1387
|
-
onSelect:
|
|
1387
|
+
onSelect: se
|
|
1388
1388
|
}, {
|
|
1389
|
-
default:
|
|
1390
|
-
(a(!0),
|
|
1389
|
+
default: C(() => [
|
|
1390
|
+
(a(!0), u(K, null, Y(n(v).menuList, (i) => (a(), u(K, {
|
|
1391
1391
|
key: i.menuUrl
|
|
1392
1392
|
}, [
|
|
1393
|
-
i.children && i.children.length > 0 ? (a(),
|
|
1393
|
+
i.children && i.children.length > 0 ? (a(), F(n(He), {
|
|
1394
1394
|
key: 0,
|
|
1395
1395
|
index: i.menuUrl
|
|
1396
1396
|
}, {
|
|
1397
|
-
title:
|
|
1397
|
+
title: C(() => [
|
|
1398
1398
|
e("span", lo, [
|
|
1399
|
-
i.menuName !== "首页" ? (a(),
|
|
1400
|
-
Q(
|
|
1399
|
+
i.menuName !== "首页" ? (a(), u("span", ro, [
|
|
1400
|
+
Q(U(i.icon)) ? (a(), F(n(T), {
|
|
1401
1401
|
key: 0,
|
|
1402
|
-
name:
|
|
1402
|
+
name: U(i.icon),
|
|
1403
1403
|
size: 16
|
|
1404
|
-
}, null, 8, ["name"])) : (a(),
|
|
1405
|
-
])) :
|
|
1406
|
-
e("span", co,
|
|
1404
|
+
}, null, 8, ["name"])) : (a(), u("span", io, x(B(i.menuName)), 1))
|
|
1405
|
+
])) : A("", !0),
|
|
1406
|
+
e("span", co, x(i.menuName), 1)
|
|
1407
1407
|
])
|
|
1408
1408
|
]),
|
|
1409
|
-
default:
|
|
1410
|
-
(a(!0),
|
|
1411
|
-
key:
|
|
1409
|
+
default: C(() => [
|
|
1410
|
+
(a(!0), u(K, null, Y(i.children, (f) => (a(), u(K, {
|
|
1411
|
+
key: f.menuUrl
|
|
1412
1412
|
}, [
|
|
1413
|
-
|
|
1413
|
+
f.children && f.children.length > 0 ? (a(), F(n(He), {
|
|
1414
1414
|
key: 0,
|
|
1415
|
-
index:
|
|
1415
|
+
index: f.menuUrl
|
|
1416
1416
|
}, {
|
|
1417
|
-
title:
|
|
1417
|
+
title: C(() => [
|
|
1418
1418
|
e("span", uo, [
|
|
1419
1419
|
e("span", mo, [
|
|
1420
|
-
Q(
|
|
1420
|
+
Q(U(f.icon)) ? (a(), F(n(T), {
|
|
1421
1421
|
key: 0,
|
|
1422
|
-
name:
|
|
1422
|
+
name: U(f.icon),
|
|
1423
1423
|
size: 16
|
|
1424
|
-
}, null, 8, ["name"])) : (a(),
|
|
1424
|
+
}, null, 8, ["name"])) : (a(), u("span", po, x(B(f.menuName)), 1))
|
|
1425
1425
|
]),
|
|
1426
|
-
e("span", vo,
|
|
1426
|
+
e("span", vo, x(f.menuName), 1)
|
|
1427
1427
|
])
|
|
1428
1428
|
]),
|
|
1429
|
-
default:
|
|
1430
|
-
(a(!0),
|
|
1429
|
+
default: C(() => [
|
|
1430
|
+
(a(!0), u(K, null, Y(f.children, (j) => (a(), F(n(Ue), {
|
|
1431
1431
|
key: j.menuUrl,
|
|
1432
1432
|
index: j.menuUrl
|
|
1433
1433
|
}, {
|
|
1434
|
-
default:
|
|
1434
|
+
default: C(() => [
|
|
1435
1435
|
e("span", ho, [
|
|
1436
|
-
e("span",
|
|
1437
|
-
Q(
|
|
1436
|
+
e("span", fo, [
|
|
1437
|
+
Q(U(j.icon)) ? (a(), F(n(T), {
|
|
1438
1438
|
key: 0,
|
|
1439
|
-
name:
|
|
1439
|
+
name: U(j.icon),
|
|
1440
1440
|
size: 16
|
|
1441
|
-
}, null, 8, ["name"])) : (a(),
|
|
1441
|
+
}, null, 8, ["name"])) : (a(), u("span", _o, x(B(j.menuName)), 1))
|
|
1442
1442
|
]),
|
|
1443
|
-
e("span", go,
|
|
1443
|
+
e("span", go, x(j.menuName), 1)
|
|
1444
1444
|
])
|
|
1445
1445
|
]),
|
|
1446
1446
|
_: 2
|
|
1447
1447
|
}, 1032, ["index"]))), 128))
|
|
1448
1448
|
]),
|
|
1449
1449
|
_: 2
|
|
1450
|
-
}, 1032, ["index"])) : (a(),
|
|
1450
|
+
}, 1032, ["index"])) : (a(), F(n(Ue), {
|
|
1451
1451
|
key: 1,
|
|
1452
|
-
index:
|
|
1452
|
+
index: f.menuUrl
|
|
1453
1453
|
}, {
|
|
1454
|
-
default:
|
|
1454
|
+
default: C(() => [
|
|
1455
1455
|
e("span", yo, [
|
|
1456
|
-
e("span",
|
|
1457
|
-
Q(
|
|
1456
|
+
e("span", ko, [
|
|
1457
|
+
Q(U(f.icon)) ? (a(), F(n(T), {
|
|
1458
1458
|
key: 0,
|
|
1459
|
-
name:
|
|
1459
|
+
name: U(f.icon),
|
|
1460
1460
|
size: 16
|
|
1461
|
-
}, null, 8, ["name"])) : (a(),
|
|
1461
|
+
}, null, 8, ["name"])) : (a(), u("span", wo, x(B(f.menuName)), 1))
|
|
1462
1462
|
]),
|
|
1463
|
-
e("span",
|
|
1463
|
+
e("span", bo, x(f.menuName), 1)
|
|
1464
1464
|
])
|
|
1465
1465
|
]),
|
|
1466
1466
|
_: 2
|
|
@@ -1468,20 +1468,20 @@ const ge = Pe("menu", () => {
|
|
|
1468
1468
|
], 64))), 128))
|
|
1469
1469
|
]),
|
|
1470
1470
|
_: 2
|
|
1471
|
-
}, 1032, ["index"])) : (a(),
|
|
1471
|
+
}, 1032, ["index"])) : (a(), F(n(Ue), {
|
|
1472
1472
|
key: 1,
|
|
1473
1473
|
index: i.menuUrl
|
|
1474
1474
|
}, {
|
|
1475
|
-
default:
|
|
1475
|
+
default: C(() => [
|
|
1476
1476
|
e("span", xo, [
|
|
1477
|
-
i.menuName !== "首页" ? (a(),
|
|
1478
|
-
Q(
|
|
1477
|
+
i.menuName !== "首页" ? (a(), u("span", Co, [
|
|
1478
|
+
Q(U(i.icon)) ? (a(), F(n(T), {
|
|
1479
1479
|
key: 0,
|
|
1480
|
-
name:
|
|
1480
|
+
name: U(i.icon),
|
|
1481
1481
|
size: 16
|
|
1482
|
-
}, null, 8, ["name"])) : (a(),
|
|
1483
|
-
])) :
|
|
1484
|
-
e("span",
|
|
1482
|
+
}, null, 8, ["name"])) : (a(), u("span", $o, x(B(i.menuName)), 1))
|
|
1483
|
+
])) : A("", !0),
|
|
1484
|
+
e("span", Mo, x(i.menuName), 1)
|
|
1485
1485
|
])
|
|
1486
1486
|
]),
|
|
1487
1487
|
_: 2
|
|
@@ -1490,47 +1490,47 @@ const ge = Pe("menu", () => {
|
|
|
1490
1490
|
]),
|
|
1491
1491
|
_: 1
|
|
1492
1492
|
}, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
|
|
1493
|
-
e("div",
|
|
1493
|
+
e("div", Lo, [
|
|
1494
1494
|
e("div", {
|
|
1495
1495
|
class: "top-menu__search",
|
|
1496
1496
|
ref_key: "searchRef",
|
|
1497
1497
|
ref: X
|
|
1498
1498
|
}, [
|
|
1499
|
-
|
|
1499
|
+
_(n(T), {
|
|
1500
1500
|
name: "search",
|
|
1501
1501
|
size: 14,
|
|
1502
1502
|
class: "top-menu__search-icon"
|
|
1503
1503
|
}),
|
|
1504
|
-
|
|
1505
|
-
"onUpdate:modelValue": $[0] || ($[0] = (i) =>
|
|
1504
|
+
Ae(e("input", {
|
|
1505
|
+
"onUpdate:modelValue": $[0] || ($[0] = (i) => te.value = i),
|
|
1506
1506
|
type: "text",
|
|
1507
1507
|
class: "top-menu__search-input",
|
|
1508
1508
|
placeholder: "搜索菜单...",
|
|
1509
1509
|
onFocus: $[1] || ($[1] = (i) => J.value = !0)
|
|
1510
1510
|
}, null, 544), [
|
|
1511
|
-
[
|
|
1511
|
+
[Xe, te.value]
|
|
1512
1512
|
]),
|
|
1513
|
-
|
|
1514
|
-
default:
|
|
1515
|
-
J.value && (
|
|
1516
|
-
|
|
1517
|
-
(a(!0),
|
|
1513
|
+
_(Ie, { name: "search-dropdown" }, {
|
|
1514
|
+
default: C(() => [
|
|
1515
|
+
J.value && (y.value.length > 0 || te.value) ? (a(), u("div", So, [
|
|
1516
|
+
y.value.length > 0 ? (a(), u("div", Io, [
|
|
1517
|
+
(a(!0), u(K, null, Y(y.value, (i) => (a(), u("div", {
|
|
1518
1518
|
key: i.path,
|
|
1519
1519
|
class: "top-menu__search-item",
|
|
1520
|
-
onClick: (
|
|
1520
|
+
onClick: (f) => ye(i.path)
|
|
1521
1521
|
}, [
|
|
1522
|
-
i.title !== "首页" ? (a(),
|
|
1523
|
-
Q(
|
|
1522
|
+
i.title !== "首页" ? (a(), u("span", No, [
|
|
1523
|
+
Q(U(i.icon)) ? (a(), F(n(T), {
|
|
1524
1524
|
key: 0,
|
|
1525
|
-
name:
|
|
1525
|
+
name: U(i.icon),
|
|
1526
1526
|
size: 16
|
|
1527
|
-
}, null, 8, ["name"])) : (a(),
|
|
1528
|
-
])) :
|
|
1529
|
-
e("span", Uo,
|
|
1530
|
-
i.parentTitle ? (a(),
|
|
1527
|
+
}, null, 8, ["name"])) : (a(), u("span", To, x(B(i.title)), 1))
|
|
1528
|
+
])) : A("", !0),
|
|
1529
|
+
e("span", Uo, x(i.title), 1),
|
|
1530
|
+
i.parentTitle ? (a(), u("span", Po, x(i.parentTitle), 1)) : A("", !0)
|
|
1531
1531
|
], 8, Eo))), 128))
|
|
1532
|
-
])) : (a(),
|
|
1533
|
-
])) :
|
|
1532
|
+
])) : (a(), u("div", zo, " 未找到匹配的菜单 "))
|
|
1533
|
+
])) : A("", !0)
|
|
1534
1534
|
]),
|
|
1535
1535
|
_: 1
|
|
1536
1536
|
})
|
|
@@ -1540,17 +1540,17 @@ const ge = Pe("menu", () => {
|
|
|
1540
1540
|
onClick: le,
|
|
1541
1541
|
title: R.value ? "退出全屏" : "全屏"
|
|
1542
1542
|
}, [
|
|
1543
|
-
|
|
1543
|
+
_(n(T), {
|
|
1544
1544
|
name: R.value ? "fullscreen-exit" : "fullscreen",
|
|
1545
1545
|
size: 16
|
|
1546
1546
|
}, null, 8, ["name"])
|
|
1547
1547
|
], 8, Fo),
|
|
1548
1548
|
e("div", {
|
|
1549
1549
|
class: "top-menu__action",
|
|
1550
|
-
onClick:
|
|
1550
|
+
onClick: ue,
|
|
1551
1551
|
title: "换肤设置"
|
|
1552
1552
|
}, [
|
|
1553
|
-
|
|
1553
|
+
_(n(T), {
|
|
1554
1554
|
name: "skin",
|
|
1555
1555
|
size: 16
|
|
1556
1556
|
})
|
|
@@ -1560,7 +1560,7 @@ const ge = Pe("menu", () => {
|
|
|
1560
1560
|
onClick: q,
|
|
1561
1561
|
title: "切换主题"
|
|
1562
1562
|
}, [
|
|
1563
|
-
|
|
1563
|
+
_(n(T), {
|
|
1564
1564
|
name: n(r).isDark ? "sun" : "moon",
|
|
1565
1565
|
size: 16
|
|
1566
1566
|
}, null, 8, ["name"])
|
|
@@ -1568,18 +1568,18 @@ const ge = Pe("menu", () => {
|
|
|
1568
1568
|
e("div", {
|
|
1569
1569
|
class: "top-menu__user",
|
|
1570
1570
|
ref_key: "dropdownRef",
|
|
1571
|
-
ref:
|
|
1571
|
+
ref: V
|
|
1572
1572
|
}, [
|
|
1573
1573
|
e("div", {
|
|
1574
1574
|
class: "top-menu__user-trigger",
|
|
1575
|
-
onClick:
|
|
1575
|
+
onClick: Oe(xe, ["stop"])
|
|
1576
1576
|
}, [
|
|
1577
1577
|
e("div", Do, [
|
|
1578
|
-
e("span", null,
|
|
1578
|
+
e("span", null, x(((ce = n(h).userName) == null ? void 0 : ce.charAt(0)) || "U"), 1)
|
|
1579
1579
|
]),
|
|
1580
|
-
e("span", Ao,
|
|
1580
|
+
e("span", Ao, x(n(h).userName), 1),
|
|
1581
1581
|
e("span", {
|
|
1582
|
-
class:
|
|
1582
|
+
class: G(["top-menu__user-arrow", { "is-active": D.value }])
|
|
1583
1583
|
}, [...$[3] || ($[3] = [
|
|
1584
1584
|
e("svg", {
|
|
1585
1585
|
viewBox: "0 0 12 12",
|
|
@@ -1595,18 +1595,18 @@ const ge = Pe("menu", () => {
|
|
|
1595
1595
|
], -1)
|
|
1596
1596
|
])], 2)
|
|
1597
1597
|
]),
|
|
1598
|
-
|
|
1599
|
-
default:
|
|
1598
|
+
_(Ie, { name: "dropdown" }, {
|
|
1599
|
+
default: C(() => {
|
|
1600
1600
|
var i;
|
|
1601
1601
|
return [
|
|
1602
|
-
D.value ? (a(),
|
|
1602
|
+
D.value ? (a(), u("div", Bo, [
|
|
1603
1603
|
e("div", Oo, [
|
|
1604
1604
|
e("div", Vo, [
|
|
1605
|
-
e("span", null,
|
|
1605
|
+
e("span", null, x(((i = n(h).userName) == null ? void 0 : i.charAt(0)) || "U"), 1)
|
|
1606
1606
|
]),
|
|
1607
1607
|
e("div", Ro, [
|
|
1608
|
-
e("div", Ko,
|
|
1609
|
-
e("div", jo,
|
|
1608
|
+
e("div", Ko, x(n(h).userName), 1),
|
|
1609
|
+
e("div", jo, x(n(h).departmentName), 1)
|
|
1610
1610
|
])
|
|
1611
1611
|
]),
|
|
1612
1612
|
$[8] || ($[8] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
|
|
@@ -1615,7 +1615,7 @@ const ge = Pe("menu", () => {
|
|
|
1615
1615
|
class: "top-menu__dropdown-item",
|
|
1616
1616
|
onClick: $e
|
|
1617
1617
|
}, [
|
|
1618
|
-
|
|
1618
|
+
_(n(T), {
|
|
1619
1619
|
name: "user",
|
|
1620
1620
|
size: 16
|
|
1621
1621
|
}),
|
|
@@ -1623,9 +1623,9 @@ const ge = Pe("menu", () => {
|
|
|
1623
1623
|
]),
|
|
1624
1624
|
e("div", {
|
|
1625
1625
|
class: "top-menu__dropdown-item",
|
|
1626
|
-
onClick:
|
|
1626
|
+
onClick: P
|
|
1627
1627
|
}, [
|
|
1628
|
-
|
|
1628
|
+
_(n(T), {
|
|
1629
1629
|
name: "lock",
|
|
1630
1630
|
size: 16
|
|
1631
1631
|
}),
|
|
@@ -1634,50 +1634,50 @@ const ge = Pe("menu", () => {
|
|
|
1634
1634
|
$[7] || ($[7] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
|
|
1635
1635
|
e("div", {
|
|
1636
1636
|
class: "top-menu__dropdown-item top-menu__dropdown-item--danger",
|
|
1637
|
-
onClick:
|
|
1637
|
+
onClick: b
|
|
1638
1638
|
}, [
|
|
1639
|
-
|
|
1639
|
+
_(n(T), {
|
|
1640
1640
|
name: "logout",
|
|
1641
1641
|
size: 16
|
|
1642
1642
|
}),
|
|
1643
1643
|
$[6] || ($[6] = e("span", null, "退出登录", -1))
|
|
1644
1644
|
])
|
|
1645
1645
|
])
|
|
1646
|
-
])) :
|
|
1646
|
+
])) : A("", !0)
|
|
1647
1647
|
];
|
|
1648
1648
|
}),
|
|
1649
1649
|
_: 1
|
|
1650
1650
|
})
|
|
1651
1651
|
], 512)
|
|
1652
1652
|
]),
|
|
1653
|
-
|
|
1653
|
+
_(n(st), {
|
|
1654
1654
|
modelValue: W.value,
|
|
1655
1655
|
"onUpdate:modelValue": $[2] || ($[2] = (i) => W.value = i),
|
|
1656
1656
|
title: "换肤设置",
|
|
1657
1657
|
direction: "rtl",
|
|
1658
1658
|
size: "320px"
|
|
1659
1659
|
}, {
|
|
1660
|
-
default:
|
|
1660
|
+
default: C(() => [
|
|
1661
1661
|
e("div", qo, [
|
|
1662
|
-
e("div",
|
|
1662
|
+
e("div", Go, [
|
|
1663
1663
|
$[12] || ($[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
|
|
1664
|
-
e("div",
|
|
1665
|
-
(a(),
|
|
1664
|
+
e("div", Ho, [
|
|
1665
|
+
(a(), u(K, null, Y(ve, (i) => e("div", {
|
|
1666
1666
|
key: i.value,
|
|
1667
|
-
class:
|
|
1668
|
-
onClick: (
|
|
1667
|
+
class: G(["layout-option", { "is-active": he.value === i.value }]),
|
|
1668
|
+
onClick: (f) => ie(i.value)
|
|
1669
1669
|
}, [
|
|
1670
1670
|
e("div", Xo, [
|
|
1671
|
-
i.value === "sidebar" ? (a(),
|
|
1671
|
+
i.value === "sidebar" ? (a(), u("div", Zo, [...$[9] || ($[9] = [
|
|
1672
1672
|
e("div", { class: "preview-aside" }, null, -1),
|
|
1673
1673
|
e("div", { class: "preview-main" }, [
|
|
1674
1674
|
e("div", { class: "preview-header" }),
|
|
1675
1675
|
e("div", { class: "preview-content" })
|
|
1676
1676
|
], -1)
|
|
1677
|
-
])])) : i.value === "top" ? (a(),
|
|
1677
|
+
])])) : i.value === "top" ? (a(), u("div", Jo, [...$[10] || ($[10] = [
|
|
1678
1678
|
e("div", { class: "preview-header-full" }, null, -1),
|
|
1679
1679
|
e("div", { class: "preview-content-full" }, null, -1)
|
|
1680
|
-
])])) : (a(),
|
|
1680
|
+
])])) : (a(), u("div", Qo, [...$[11] || ($[11] = [
|
|
1681
1681
|
e("div", { class: "preview-header-mix" }, [
|
|
1682
1682
|
e("div", { class: "preview-mix-left" })
|
|
1683
1683
|
], -1),
|
|
@@ -1687,26 +1687,26 @@ const ge = Pe("menu", () => {
|
|
|
1687
1687
|
], -1)
|
|
1688
1688
|
])]))
|
|
1689
1689
|
]),
|
|
1690
|
-
e("span", ea,
|
|
1691
|
-
], 10,
|
|
1690
|
+
e("span", ea, x(i.label), 1)
|
|
1691
|
+
], 10, Yo)), 64))
|
|
1692
1692
|
])
|
|
1693
1693
|
]),
|
|
1694
1694
|
e("div", ta, [
|
|
1695
1695
|
$[13] || ($[13] = e("div", { class: "settings-title" }, "主题色", -1)),
|
|
1696
1696
|
e("div", sa, [
|
|
1697
|
-
(a(),
|
|
1697
|
+
(a(), u(K, null, Y(Ce, (i) => e("div", {
|
|
1698
1698
|
key: i.value,
|
|
1699
|
-
class:
|
|
1699
|
+
class: G(["color-option", { "is-active": n(r).primaryColor === i.value }]),
|
|
1700
1700
|
style: Ee({ backgroundColor: i.value }),
|
|
1701
1701
|
title: i.label,
|
|
1702
|
-
onClick: (
|
|
1702
|
+
onClick: (f) => ke(i.value)
|
|
1703
1703
|
}, [
|
|
1704
|
-
n(r).primaryColor === i.value ? (a(),
|
|
1704
|
+
n(r).primaryColor === i.value ? (a(), F(n(T), {
|
|
1705
1705
|
key: 0,
|
|
1706
1706
|
name: "check",
|
|
1707
1707
|
size: 12,
|
|
1708
1708
|
color: "#fff"
|
|
1709
|
-
})) :
|
|
1709
|
+
})) : A("", !0)
|
|
1710
1710
|
], 14, oa)), 64))
|
|
1711
1711
|
])
|
|
1712
1712
|
]),
|
|
@@ -1716,8 +1716,8 @@ const ge = Pe("menu", () => {
|
|
|
1716
1716
|
e("div", la, [
|
|
1717
1717
|
$[15] || ($[15] = e("span", null, "灰色模式", -1)),
|
|
1718
1718
|
e("div", {
|
|
1719
|
-
class:
|
|
1720
|
-
onClick:
|
|
1719
|
+
class: G(["switch-wrapper", { "is-checked": ee.value }]),
|
|
1720
|
+
onClick: I
|
|
1721
1721
|
}, [...$[14] || ($[14] = [
|
|
1722
1722
|
e("span", { class: "switch-core" }, null, -1)
|
|
1723
1723
|
])], 2)
|
|
@@ -1725,8 +1725,8 @@ const ge = Pe("menu", () => {
|
|
|
1725
1725
|
e("div", ra, [
|
|
1726
1726
|
$[17] || ($[17] = e("span", null, "暗黑模式", -1)),
|
|
1727
1727
|
e("div", {
|
|
1728
|
-
class:
|
|
1729
|
-
onClick:
|
|
1728
|
+
class: G(["switch-wrapper", { "is-checked": n(r).isDark }]),
|
|
1729
|
+
onClick: H
|
|
1730
1730
|
}, [...$[16] || ($[16] = [
|
|
1731
1731
|
e("span", { class: "switch-core" }, null, -1)
|
|
1732
1732
|
])], 2)
|
|
@@ -1740,19 +1740,19 @@ const ge = Pe("menu", () => {
|
|
|
1740
1740
|
]);
|
|
1741
1741
|
};
|
|
1742
1742
|
}
|
|
1743
|
-
}), ca = /* @__PURE__ */ ne(ia, [["__scopeId", "data-v-711d5b8d"]]),
|
|
1743
|
+
}), ca = /* @__PURE__ */ ne(ia, [["__scopeId", "data-v-711d5b8d"]]), da = { class: "mix-top-menu" }, ua = { class: "mix-top-menu__logo" }, ma = ["src"], pa = { class: "mix-top-menu__logo-text" }, va = { class: "mix-top-menu__menu-content" }, ha = {
|
|
1744
1744
|
key: 0,
|
|
1745
1745
|
class: "mix-top-menu__menu-icon"
|
|
1746
|
-
},
|
|
1746
|
+
}, fa = {
|
|
1747
1747
|
key: 1,
|
|
1748
1748
|
class: "mix-top-menu__menu-char"
|
|
1749
|
-
},
|
|
1749
|
+
}, _a = { class: "mix-top-menu__menu-text" }, ga = { class: "mix-top-menu__actions" }, ya = {
|
|
1750
1750
|
key: 0,
|
|
1751
1751
|
class: "mix-top-menu__search-dropdown"
|
|
1752
|
-
},
|
|
1752
|
+
}, ka = {
|
|
1753
1753
|
key: 0,
|
|
1754
1754
|
class: "mix-top-menu__search-results"
|
|
1755
|
-
},
|
|
1755
|
+
}, wa = ["onClick"], ba = {
|
|
1756
1756
|
key: 0,
|
|
1757
1757
|
class: "mix-top-menu__search-icon-item"
|
|
1758
1758
|
}, xa = {
|
|
@@ -1761,13 +1761,13 @@ const ge = Pe("menu", () => {
|
|
|
1761
1761
|
}, Ca = { class: "mix-top-menu__search-item-title" }, $a = {
|
|
1762
1762
|
key: 1,
|
|
1763
1763
|
class: "mix-top-menu__search-item-parent"
|
|
1764
|
-
},
|
|
1764
|
+
}, Ma = {
|
|
1765
1765
|
key: 1,
|
|
1766
1766
|
class: "mix-top-menu__search-empty"
|
|
1767
|
-
},
|
|
1767
|
+
}, La = ["title"], Sa = { class: "mix-top-menu__avatar" }, Ia = { class: "mix-top-menu__user-name" }, Ea = {
|
|
1768
1768
|
key: 0,
|
|
1769
1769
|
class: "mix-top-menu__dropdown"
|
|
1770
|
-
}, Na = { class: "mix-top-menu__dropdown-header" }, Ta = { class: "mix-top-menu__dropdown-avatar" }, Ua = { class: "mix-top-menu__dropdown-info" },
|
|
1770
|
+
}, Na = { class: "mix-top-menu__dropdown-header" }, Ta = { class: "mix-top-menu__dropdown-avatar" }, Ua = { class: "mix-top-menu__dropdown-info" }, Pa = { class: "mix-top-menu__dropdown-name" }, za = { class: "mix-top-menu__dropdown-role" }, Fa = { class: "mix-top-menu__dropdown-menu" }, Da = { class: "settings-drawer" }, Aa = { class: "settings-section" }, Ba = { class: "settings-layout-options" }, Oa = ["onClick"], Va = { class: "layout-option__preview" }, Ra = {
|
|
1771
1771
|
key: 0,
|
|
1772
1772
|
class: "layout-preview-sidebar"
|
|
1773
1773
|
}, Ka = {
|
|
@@ -1776,38 +1776,38 @@ const ge = Pe("menu", () => {
|
|
|
1776
1776
|
}, ja = {
|
|
1777
1777
|
key: 2,
|
|
1778
1778
|
class: "layout-preview-mix"
|
|
1779
|
-
}, Wa = { class: "layout-option__label" }, qa = { class: "settings-section" },
|
|
1779
|
+
}, Wa = { class: "layout-option__label" }, qa = { class: "settings-section" }, Ga = { class: "settings-color-options" }, Ha = ["title", "onClick"], Ya = { class: "settings-section" }, Xa = { class: "settings-switch-list" }, Za = { class: "settings-switch-item" }, Ja = { class: "settings-switch-item" }, Qa = /* @__PURE__ */ ae({
|
|
1780
1780
|
__name: "MixTopMenu",
|
|
1781
1781
|
props: {
|
|
1782
1782
|
logoSrc: {}
|
|
1783
1783
|
},
|
|
1784
1784
|
setup(t) {
|
|
1785
|
-
const o = t, p =
|
|
1785
|
+
const o = t, p = w(() => o.logoSrc || Pe("/vite.svg")), l = Te(), s = be(), v = ge(), r = fe(), h = me(), m = Fe(), d = k(""), S = (i, f = "") => {
|
|
1786
1786
|
const j = [];
|
|
1787
|
-
return i.forEach((
|
|
1788
|
-
|
|
1787
|
+
return i.forEach((L) => {
|
|
1788
|
+
L.children && L.children.length > 0 ? j.push(...S(L.children, L.menuName)) : j.push({ ...L, parentTitle: f, title: L.menuName, path: L.menuUrl });
|
|
1789
1789
|
}), j;
|
|
1790
|
-
},
|
|
1791
|
-
(
|
|
1792
|
-
) : []), c =
|
|
1793
|
-
const i =
|
|
1790
|
+
}, y = w(() => U.value.trim() ? S(v.menuList).filter(
|
|
1791
|
+
(f) => f.title.toLowerCase().includes(U.value.toLowerCase())
|
|
1792
|
+
) : []), c = w(() => {
|
|
1793
|
+
const i = v.menuList.find((f) => f.menuUrl === d.value);
|
|
1794
1794
|
return (i == null ? void 0 : i.children) || [];
|
|
1795
|
-
}),
|
|
1796
|
-
|
|
1795
|
+
}), g = w(() => v.menuList.find((i) => !!(l.path === i.menuUrl || i.children && i.children.some((f) => l.path.startsWith(f.menuUrl) || l.path === f.menuUrl)))), E = () => {
|
|
1796
|
+
g.value ? d.value = g.value.menuUrl : v.menuList.length > 0 && (d.value = v.menuList[0].menuUrl);
|
|
1797
1797
|
}, D = (i) => {
|
|
1798
|
-
|
|
1799
|
-
const
|
|
1800
|
-
if (
|
|
1801
|
-
if (
|
|
1802
|
-
const j =
|
|
1798
|
+
d.value = i;
|
|
1799
|
+
const f = v.menuList.find((j) => j.menuUrl === i);
|
|
1800
|
+
if (f)
|
|
1801
|
+
if (f.children && f.children.length > 0) {
|
|
1802
|
+
const j = f.children[0].menuUrl;
|
|
1803
1803
|
l.path !== j && s.push(j);
|
|
1804
1804
|
} else
|
|
1805
1805
|
l.path !== i && s.push(i);
|
|
1806
|
-
},
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
}),
|
|
1810
|
-
i && i.length > 0 && (
|
|
1806
|
+
}, V = w(() => r.isDark ? "#1d1e1f" : "#fff"), R = w(() => r.isDark ? "#cfd3dc" : "#303133"), W = w(() => "#409eff"), ee = k(!1), J = k(null), te = k(!1), X = k(!1), se = k(!1), O = k(!1), U = k(""), B = k(null);
|
|
1807
|
+
Me(() => l.path, () => {
|
|
1808
|
+
E(), r.setMixSubMenus(c.value);
|
|
1809
|
+
}), Me(() => v.menuList, (i) => {
|
|
1810
|
+
i && i.length > 0 && (E(), r.setMixSubMenus(c.value));
|
|
1811
1811
|
}, { immediate: !0 });
|
|
1812
1812
|
const Q = /* @__PURE__ */ new Set([
|
|
1813
1813
|
"arrow-up",
|
|
@@ -1950,92 +1950,92 @@ const ge = Pe("menu", () => {
|
|
|
1950
1950
|
}[i] || i;
|
|
1951
1951
|
}, le = (i) => i ? i.charAt(0) : "", _e = (i) => Q.has(i), xe = () => {
|
|
1952
1952
|
r.toggleTheme(), X.value = !1;
|
|
1953
|
-
},
|
|
1953
|
+
}, de = () => {
|
|
1954
1954
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
1955
1955
|
}, pe = () => {
|
|
1956
|
-
|
|
1956
|
+
te.value = !!document.fullscreenElement;
|
|
1957
1957
|
}, ye = () => {
|
|
1958
|
-
|
|
1959
|
-
},
|
|
1960
|
-
|
|
1958
|
+
ee.value = !ee.value;
|
|
1959
|
+
}, ue = () => {
|
|
1960
|
+
ee.value = !1;
|
|
1961
1961
|
}, re = () => {
|
|
1962
|
-
|
|
1963
|
-
},
|
|
1962
|
+
O.value = !1, U.value = "";
|
|
1963
|
+
}, I = (i) => {
|
|
1964
1964
|
s.push(i), re();
|
|
1965
|
-
},
|
|
1965
|
+
}, H = () => {
|
|
1966
1966
|
X.value = !0;
|
|
1967
1967
|
}, ve = (i) => {
|
|
1968
|
-
|
|
1969
|
-
const
|
|
1970
|
-
i ?
|
|
1968
|
+
se.value = i;
|
|
1969
|
+
const f = document.documentElement;
|
|
1970
|
+
i ? f.classList.add("grey-mode") : f.classList.remove("grey-mode");
|
|
1971
1971
|
}, he = () => {
|
|
1972
|
-
ve(!
|
|
1972
|
+
ve(!se.value), X.value = !1;
|
|
1973
1973
|
}, ie = () => {
|
|
1974
1974
|
r.toggleTheme(), X.value = !1;
|
|
1975
1975
|
}, Ce = [
|
|
1976
1976
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
1977
1977
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
1978
1978
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
1979
|
-
],
|
|
1979
|
+
], ke = w(() => r.layout), $e = (i) => {
|
|
1980
1980
|
r.setLayout(i), X.value = !1;
|
|
1981
|
-
},
|
|
1981
|
+
}, P = [
|
|
1982
1982
|
{ value: "#409eff", label: "默认蓝" },
|
|
1983
1983
|
{ value: "#0F6FDE", label: "企业蓝" },
|
|
1984
1984
|
{ value: "#00A870", label: "翡翠绿" },
|
|
1985
1985
|
{ value: "#D46B08", label: "琥珀橙" },
|
|
1986
1986
|
{ value: "#1F2329", label: "石墨黑" }
|
|
1987
|
-
],
|
|
1987
|
+
], b = (i) => {
|
|
1988
1988
|
r.setPrimaryColor(i), X.value = !1;
|
|
1989
|
-
},
|
|
1990
|
-
|
|
1991
|
-
},
|
|
1992
|
-
|
|
1993
|
-
},
|
|
1994
|
-
|
|
1989
|
+
}, oe = () => {
|
|
1990
|
+
ue(), s.push("/profile");
|
|
1991
|
+
}, M = () => {
|
|
1992
|
+
ue(), s.push("/change-password");
|
|
1993
|
+
}, N = () => {
|
|
1994
|
+
ue(), m.logout(), h.clearUserInfo(), v.clearMenu(), s.push(r.loginPath);
|
|
1995
1995
|
}, $ = (i) => {
|
|
1996
|
-
J.value && !J.value.contains(i.target) &&
|
|
1996
|
+
J.value && !J.value.contains(i.target) && ue(), B.value && !B.value.contains(i.target) && re();
|
|
1997
1997
|
}, ce = (i) => {
|
|
1998
|
-
i.key === "Escape" && (re(),
|
|
1998
|
+
i.key === "Escape" && (re(), ue());
|
|
1999
1999
|
};
|
|
2000
|
-
return
|
|
2001
|
-
document.addEventListener("click", $), document.addEventListener("fullscreenchange", pe), document.addEventListener("keydown", ce),
|
|
2002
|
-
}),
|
|
2000
|
+
return Be(() => {
|
|
2001
|
+
document.addEventListener("click", $), document.addEventListener("fullscreenchange", pe), document.addEventListener("keydown", ce), se.value = document.documentElement.classList.contains("grey-mode"), E();
|
|
2002
|
+
}), Ye(() => {
|
|
2003
2003
|
document.removeEventListener("click", $), document.removeEventListener("fullscreenchange", pe), document.removeEventListener("keydown", ce);
|
|
2004
|
-
}), (i,
|
|
2004
|
+
}), (i, f) => {
|
|
2005
2005
|
var j;
|
|
2006
|
-
return a(),
|
|
2007
|
-
e("div",
|
|
2006
|
+
return a(), u("div", da, [
|
|
2007
|
+
e("div", ua, [
|
|
2008
2008
|
e("img", {
|
|
2009
2009
|
src: p.value,
|
|
2010
2010
|
alt: "Logo",
|
|
2011
2011
|
class: "mix-top-menu__logo-img"
|
|
2012
2012
|
}, null, 8, ma),
|
|
2013
|
-
e("span", pa,
|
|
2013
|
+
e("span", pa, x(n(r).appName), 1)
|
|
2014
2014
|
]),
|
|
2015
|
-
|
|
2016
|
-
"model-value":
|
|
2015
|
+
_(n(tt), {
|
|
2016
|
+
"model-value": d.value,
|
|
2017
2017
|
mode: "horizontal",
|
|
2018
|
-
"background-color":
|
|
2018
|
+
"background-color": V.value,
|
|
2019
2019
|
"text-color": R.value,
|
|
2020
2020
|
"active-text-color": W.value,
|
|
2021
2021
|
class: "mix-top-menu__menu",
|
|
2022
2022
|
onSelect: D
|
|
2023
2023
|
}, {
|
|
2024
|
-
default:
|
|
2025
|
-
(a(!0),
|
|
2026
|
-
key:
|
|
2027
|
-
index:
|
|
2024
|
+
default: C(() => [
|
|
2025
|
+
(a(!0), u(K, null, Y(n(v).menuList, (L) => (a(), F(n(Ue), {
|
|
2026
|
+
key: L.menuUrl,
|
|
2027
|
+
index: L.menuUrl
|
|
2028
2028
|
}, {
|
|
2029
|
-
default:
|
|
2029
|
+
default: C(() => [
|
|
2030
2030
|
e("span", va, [
|
|
2031
|
-
|
|
2032
|
-
_e(q(
|
|
2031
|
+
L.menuName !== "首页" ? (a(), u("span", ha, [
|
|
2032
|
+
_e(q(L.icon)) ? (a(), F(n(T), {
|
|
2033
2033
|
key: 0,
|
|
2034
|
-
name: q(
|
|
2034
|
+
name: q(L.icon),
|
|
2035
2035
|
size: 16
|
|
2036
|
-
}, null, 8, ["name"])) : (a(),
|
|
2037
|
-
])) :
|
|
2038
|
-
e("span",
|
|
2036
|
+
}, null, 8, ["name"])) : (a(), u("span", fa, x(le(L.menuName)), 1))
|
|
2037
|
+
])) : A("", !0),
|
|
2038
|
+
e("span", _a, x(L.menuName), 1)
|
|
2039
2039
|
])
|
|
2040
2040
|
]),
|
|
2041
2041
|
_: 2
|
|
@@ -2047,63 +2047,63 @@ const ge = Pe("menu", () => {
|
|
|
2047
2047
|
e("div", {
|
|
2048
2048
|
class: "mix-top-menu__search",
|
|
2049
2049
|
ref_key: "searchRef",
|
|
2050
|
-
ref:
|
|
2050
|
+
ref: B
|
|
2051
2051
|
}, [
|
|
2052
|
-
|
|
2052
|
+
_(n(T), {
|
|
2053
2053
|
name: "search",
|
|
2054
2054
|
size: 14,
|
|
2055
2055
|
class: "mix-top-menu__search-icon"
|
|
2056
2056
|
}),
|
|
2057
|
-
|
|
2058
|
-
"onUpdate:modelValue":
|
|
2057
|
+
Ae(e("input", {
|
|
2058
|
+
"onUpdate:modelValue": f[0] || (f[0] = (L) => U.value = L),
|
|
2059
2059
|
type: "text",
|
|
2060
2060
|
class: "mix-top-menu__search-input",
|
|
2061
2061
|
placeholder: "搜索菜单...",
|
|
2062
|
-
onFocus:
|
|
2062
|
+
onFocus: f[1] || (f[1] = (L) => O.value = !0)
|
|
2063
2063
|
}, null, 544), [
|
|
2064
|
-
[
|
|
2064
|
+
[Xe, U.value]
|
|
2065
2065
|
]),
|
|
2066
|
-
|
|
2067
|
-
default:
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
(a(!0),
|
|
2071
|
-
key:
|
|
2066
|
+
_(Ie, { name: "search-dropdown" }, {
|
|
2067
|
+
default: C(() => [
|
|
2068
|
+
O.value && (y.value.length > 0 || U.value) ? (a(), u("div", ya, [
|
|
2069
|
+
y.value.length > 0 ? (a(), u("div", ka, [
|
|
2070
|
+
(a(!0), u(K, null, Y(y.value, (L) => (a(), u("div", {
|
|
2071
|
+
key: L.path,
|
|
2072
2072
|
class: "mix-top-menu__search-item",
|
|
2073
|
-
onClick: (at) =>
|
|
2073
|
+
onClick: (at) => I(L.path)
|
|
2074
2074
|
}, [
|
|
2075
|
-
|
|
2076
|
-
_e(q(
|
|
2075
|
+
L.title !== "首页" ? (a(), u("span", ba, [
|
|
2076
|
+
_e(q(L.icon)) ? (a(), F(n(T), {
|
|
2077
2077
|
key: 0,
|
|
2078
|
-
name: q(
|
|
2078
|
+
name: q(L.icon),
|
|
2079
2079
|
size: 16
|
|
2080
|
-
}, null, 8, ["name"])) : (a(),
|
|
2081
|
-
])) :
|
|
2082
|
-
e("span", Ca,
|
|
2083
|
-
|
|
2084
|
-
], 8,
|
|
2085
|
-
])) : (a(),
|
|
2086
|
-
])) :
|
|
2080
|
+
}, null, 8, ["name"])) : (a(), u("span", xa, x(le(L.title)), 1))
|
|
2081
|
+
])) : A("", !0),
|
|
2082
|
+
e("span", Ca, x(L.title), 1),
|
|
2083
|
+
L.parentTitle ? (a(), u("span", $a, x(L.parentTitle), 1)) : A("", !0)
|
|
2084
|
+
], 8, wa))), 128))
|
|
2085
|
+
])) : (a(), u("div", Ma, " 未找到匹配的菜单 "))
|
|
2086
|
+
])) : A("", !0)
|
|
2087
2087
|
]),
|
|
2088
2088
|
_: 1
|
|
2089
2089
|
})
|
|
2090
2090
|
], 512),
|
|
2091
2091
|
e("div", {
|
|
2092
2092
|
class: "mix-top-menu__action",
|
|
2093
|
-
onClick:
|
|
2094
|
-
title:
|
|
2093
|
+
onClick: de,
|
|
2094
|
+
title: te.value ? "退出全屏" : "全屏"
|
|
2095
2095
|
}, [
|
|
2096
|
-
|
|
2097
|
-
name:
|
|
2096
|
+
_(n(T), {
|
|
2097
|
+
name: te.value ? "fullscreen-exit" : "fullscreen",
|
|
2098
2098
|
size: 16
|
|
2099
2099
|
}, null, 8, ["name"])
|
|
2100
|
-
], 8,
|
|
2100
|
+
], 8, La),
|
|
2101
2101
|
e("div", {
|
|
2102
2102
|
class: "mix-top-menu__action",
|
|
2103
|
-
onClick:
|
|
2103
|
+
onClick: H,
|
|
2104
2104
|
title: "换肤设置"
|
|
2105
2105
|
}, [
|
|
2106
|
-
|
|
2106
|
+
_(n(T), {
|
|
2107
2107
|
name: "skin",
|
|
2108
2108
|
size: 16
|
|
2109
2109
|
})
|
|
@@ -2113,7 +2113,7 @@ const ge = Pe("menu", () => {
|
|
|
2113
2113
|
onClick: xe,
|
|
2114
2114
|
title: "切换主题"
|
|
2115
2115
|
}, [
|
|
2116
|
-
|
|
2116
|
+
_(n(T), {
|
|
2117
2117
|
name: n(r).isDark ? "sun" : "moon",
|
|
2118
2118
|
size: 16
|
|
2119
2119
|
}, null, 8, ["name"])
|
|
@@ -2125,15 +2125,15 @@ const ge = Pe("menu", () => {
|
|
|
2125
2125
|
}, [
|
|
2126
2126
|
e("div", {
|
|
2127
2127
|
class: "mix-top-menu__user-trigger",
|
|
2128
|
-
onClick:
|
|
2128
|
+
onClick: Oe(ye, ["stop"])
|
|
2129
2129
|
}, [
|
|
2130
2130
|
e("div", Sa, [
|
|
2131
|
-
e("span", null,
|
|
2131
|
+
e("span", null, x(((j = n(h).userName) == null ? void 0 : j.charAt(0)) || "U"), 1)
|
|
2132
2132
|
]),
|
|
2133
|
-
e("span", Ia,
|
|
2133
|
+
e("span", Ia, x(n(h).userName), 1),
|
|
2134
2134
|
e("span", {
|
|
2135
|
-
class:
|
|
2136
|
-
}, [...
|
|
2135
|
+
class: G(["mix-top-menu__user-arrow", { "is-active": ee.value }])
|
|
2136
|
+
}, [...f[3] || (f[3] = [
|
|
2137
2137
|
e("svg", {
|
|
2138
2138
|
viewBox: "0 0 12 12",
|
|
2139
2139
|
width: "10",
|
|
@@ -2148,89 +2148,89 @@ const ge = Pe("menu", () => {
|
|
|
2148
2148
|
], -1)
|
|
2149
2149
|
])], 2)
|
|
2150
2150
|
]),
|
|
2151
|
-
|
|
2152
|
-
default:
|
|
2153
|
-
var
|
|
2151
|
+
_(Ie, { name: "dropdown" }, {
|
|
2152
|
+
default: C(() => {
|
|
2153
|
+
var L;
|
|
2154
2154
|
return [
|
|
2155
|
-
|
|
2155
|
+
ee.value ? (a(), u("div", Ea, [
|
|
2156
2156
|
e("div", Na, [
|
|
2157
2157
|
e("div", Ta, [
|
|
2158
|
-
e("span", null,
|
|
2158
|
+
e("span", null, x(((L = n(h).userName) == null ? void 0 : L.charAt(0)) || "U"), 1)
|
|
2159
2159
|
]),
|
|
2160
2160
|
e("div", Ua, [
|
|
2161
|
-
e("div",
|
|
2162
|
-
e("div",
|
|
2161
|
+
e("div", Pa, x(n(h).userName), 1),
|
|
2162
|
+
e("div", za, x(n(h).departmentName), 1)
|
|
2163
2163
|
])
|
|
2164
2164
|
]),
|
|
2165
|
-
|
|
2165
|
+
f[8] || (f[8] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
|
|
2166
2166
|
e("div", Fa, [
|
|
2167
2167
|
e("div", {
|
|
2168
2168
|
class: "mix-top-menu__dropdown-item",
|
|
2169
|
-
onClick:
|
|
2169
|
+
onClick: oe
|
|
2170
2170
|
}, [
|
|
2171
|
-
|
|
2171
|
+
_(n(T), {
|
|
2172
2172
|
name: "user",
|
|
2173
2173
|
size: 16
|
|
2174
2174
|
}),
|
|
2175
|
-
|
|
2175
|
+
f[4] || (f[4] = e("span", null, "个人信息", -1))
|
|
2176
2176
|
]),
|
|
2177
2177
|
e("div", {
|
|
2178
2178
|
class: "mix-top-menu__dropdown-item",
|
|
2179
|
-
onClick:
|
|
2179
|
+
onClick: M
|
|
2180
2180
|
}, [
|
|
2181
|
-
|
|
2181
|
+
_(n(T), {
|
|
2182
2182
|
name: "lock",
|
|
2183
2183
|
size: 16
|
|
2184
2184
|
}),
|
|
2185
|
-
|
|
2185
|
+
f[5] || (f[5] = e("span", null, "修改密码", -1))
|
|
2186
2186
|
]),
|
|
2187
|
-
|
|
2187
|
+
f[7] || (f[7] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
|
|
2188
2188
|
e("div", {
|
|
2189
2189
|
class: "mix-top-menu__dropdown-item mix-top-menu__dropdown-item--danger",
|
|
2190
|
-
onClick:
|
|
2190
|
+
onClick: N
|
|
2191
2191
|
}, [
|
|
2192
|
-
|
|
2192
|
+
_(n(T), {
|
|
2193
2193
|
name: "logout",
|
|
2194
2194
|
size: 16
|
|
2195
2195
|
}),
|
|
2196
|
-
|
|
2196
|
+
f[6] || (f[6] = e("span", null, "退出登录", -1))
|
|
2197
2197
|
])
|
|
2198
2198
|
])
|
|
2199
|
-
])) :
|
|
2199
|
+
])) : A("", !0)
|
|
2200
2200
|
];
|
|
2201
2201
|
}),
|
|
2202
2202
|
_: 1
|
|
2203
2203
|
})
|
|
2204
2204
|
], 512)
|
|
2205
2205
|
]),
|
|
2206
|
-
|
|
2206
|
+
_(n(st), {
|
|
2207
2207
|
modelValue: X.value,
|
|
2208
|
-
"onUpdate:modelValue":
|
|
2208
|
+
"onUpdate:modelValue": f[2] || (f[2] = (L) => X.value = L),
|
|
2209
2209
|
title: "换肤设置",
|
|
2210
2210
|
direction: "rtl",
|
|
2211
2211
|
size: "320px"
|
|
2212
2212
|
}, {
|
|
2213
|
-
default:
|
|
2213
|
+
default: C(() => [
|
|
2214
2214
|
e("div", Da, [
|
|
2215
2215
|
e("div", Aa, [
|
|
2216
|
-
|
|
2216
|
+
f[12] || (f[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
|
|
2217
2217
|
e("div", Ba, [
|
|
2218
|
-
(a(),
|
|
2219
|
-
key:
|
|
2220
|
-
class:
|
|
2221
|
-
onClick: (at) => $e(
|
|
2218
|
+
(a(), u(K, null, Y(Ce, (L) => e("div", {
|
|
2219
|
+
key: L.value,
|
|
2220
|
+
class: G(["layout-option", { "is-active": ke.value === L.value }]),
|
|
2221
|
+
onClick: (at) => $e(L.value)
|
|
2222
2222
|
}, [
|
|
2223
2223
|
e("div", Va, [
|
|
2224
|
-
|
|
2224
|
+
L.value === "sidebar" ? (a(), u("div", Ra, [...f[9] || (f[9] = [
|
|
2225
2225
|
e("div", { class: "preview-aside" }, null, -1),
|
|
2226
2226
|
e("div", { class: "preview-main" }, [
|
|
2227
2227
|
e("div", { class: "preview-header" }),
|
|
2228
2228
|
e("div", { class: "preview-content" })
|
|
2229
2229
|
], -1)
|
|
2230
|
-
])])) :
|
|
2230
|
+
])])) : L.value === "top" ? (a(), u("div", Ka, [...f[10] || (f[10] = [
|
|
2231
2231
|
e("div", { class: "preview-header-full" }, null, -1),
|
|
2232
2232
|
e("div", { class: "preview-content-full" }, null, -1)
|
|
2233
|
-
])])) : (a(),
|
|
2233
|
+
])])) : (a(), u("div", ja, [...f[11] || (f[11] = [
|
|
2234
2234
|
e("div", { class: "preview-header-mix" }, [
|
|
2235
2235
|
e("div", { class: "preview-mix-left" })
|
|
2236
2236
|
], -1),
|
|
@@ -2240,47 +2240,47 @@ const ge = Pe("menu", () => {
|
|
|
2240
2240
|
], -1)
|
|
2241
2241
|
])]))
|
|
2242
2242
|
]),
|
|
2243
|
-
e("span", Wa,
|
|
2243
|
+
e("span", Wa, x(L.label), 1)
|
|
2244
2244
|
], 10, Oa)), 64))
|
|
2245
2245
|
])
|
|
2246
2246
|
]),
|
|
2247
2247
|
e("div", qa, [
|
|
2248
|
-
|
|
2249
|
-
e("div",
|
|
2250
|
-
(a(),
|
|
2251
|
-
key:
|
|
2252
|
-
class:
|
|
2253
|
-
style: Ee({ backgroundColor:
|
|
2254
|
-
title:
|
|
2255
|
-
onClick: (at) =>
|
|
2248
|
+
f[13] || (f[13] = e("div", { class: "settings-title" }, "主题色", -1)),
|
|
2249
|
+
e("div", Ga, [
|
|
2250
|
+
(a(), u(K, null, Y(P, (L) => e("div", {
|
|
2251
|
+
key: L.value,
|
|
2252
|
+
class: G(["color-option", { "is-active": n(r).primaryColor === L.value }]),
|
|
2253
|
+
style: Ee({ backgroundColor: L.value }),
|
|
2254
|
+
title: L.label,
|
|
2255
|
+
onClick: (at) => b(L.value)
|
|
2256
2256
|
}, [
|
|
2257
|
-
n(r).primaryColor ===
|
|
2257
|
+
n(r).primaryColor === L.value ? (a(), F(n(T), {
|
|
2258
2258
|
key: 0,
|
|
2259
2259
|
name: "check",
|
|
2260
2260
|
size: 12,
|
|
2261
2261
|
color: "#fff"
|
|
2262
|
-
})) :
|
|
2263
|
-
], 14,
|
|
2262
|
+
})) : A("", !0)
|
|
2263
|
+
], 14, Ha)), 64))
|
|
2264
2264
|
])
|
|
2265
2265
|
]),
|
|
2266
|
-
e("div",
|
|
2267
|
-
|
|
2266
|
+
e("div", Ya, [
|
|
2267
|
+
f[18] || (f[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
|
|
2268
2268
|
e("div", Xa, [
|
|
2269
|
-
e("div",
|
|
2270
|
-
|
|
2269
|
+
e("div", Za, [
|
|
2270
|
+
f[15] || (f[15] = e("span", null, "灰色模式", -1)),
|
|
2271
2271
|
e("div", {
|
|
2272
|
-
class:
|
|
2272
|
+
class: G(["switch-wrapper", { "is-checked": se.value }]),
|
|
2273
2273
|
onClick: he
|
|
2274
|
-
}, [...
|
|
2274
|
+
}, [...f[14] || (f[14] = [
|
|
2275
2275
|
e("span", { class: "switch-core" }, null, -1)
|
|
2276
2276
|
])], 2)
|
|
2277
2277
|
]),
|
|
2278
|
-
e("div",
|
|
2279
|
-
|
|
2278
|
+
e("div", Ja, [
|
|
2279
|
+
f[17] || (f[17] = e("span", null, "暗黑模式", -1)),
|
|
2280
2280
|
e("div", {
|
|
2281
|
-
class:
|
|
2281
|
+
class: G(["switch-wrapper", { "is-checked": n(r).isDark }]),
|
|
2282
2282
|
onClick: ie
|
|
2283
|
-
}, [...
|
|
2283
|
+
}, [...f[16] || (f[16] = [
|
|
2284
2284
|
e("span", { class: "switch-core" }, null, -1)
|
|
2285
2285
|
])], 2)
|
|
2286
2286
|
])
|
|
@@ -2293,34 +2293,34 @@ const ge = Pe("menu", () => {
|
|
|
2293
2293
|
]);
|
|
2294
2294
|
};
|
|
2295
2295
|
}
|
|
2296
|
-
}), en = /* @__PURE__ */ ne(
|
|
2296
|
+
}), en = /* @__PURE__ */ ne(Qa, [["__scopeId", "data-v-ec17777f"]]), tn = {
|
|
2297
2297
|
key: 0,
|
|
2298
2298
|
class: "layout layout--sidebar"
|
|
2299
2299
|
}, sn = { class: "layout__main" }, on = { class: "layout__header" }, an = { class: "layout__content" }, nn = {
|
|
2300
2300
|
key: 1,
|
|
2301
2301
|
class: "layout layout--top"
|
|
2302
|
-
}, ln = { class: "layout__top-menu" }, rn = { class: "layout__main" }, cn = { class: "layout__content" },
|
|
2302
|
+
}, ln = { class: "layout__top-menu" }, rn = { class: "layout__main" }, cn = { class: "layout__content" }, dn = {
|
|
2303
2303
|
key: 2,
|
|
2304
2304
|
class: "layout layout--mix"
|
|
2305
|
-
},
|
|
2305
|
+
}, un = { class: "layout__mix-top-menu" }, mn = { class: "layout__mix-body" }, pn = { class: "layout__content" }, vn = /* @__PURE__ */ ae({
|
|
2306
2306
|
__name: "index",
|
|
2307
2307
|
props: {
|
|
2308
2308
|
logoSrc: {}
|
|
2309
2309
|
},
|
|
2310
2310
|
setup(t) {
|
|
2311
|
-
const o = t, p =
|
|
2311
|
+
const o = t, p = w(() => o.logoSrc || Pe("/vite.svg")), l = fe(), s = ge(), v = w(
|
|
2312
2312
|
() => l.isCollapsed ? "64px" : "210px"
|
|
2313
|
-
), r =
|
|
2314
|
-
return (
|
|
2315
|
-
const c =
|
|
2316
|
-
return a(),
|
|
2317
|
-
r.value === "sidebar" ? (a(),
|
|
2313
|
+
), r = w(() => l.layout), h = w(() => r.value === "mix"), m = w(() => r.value === "sidebar" ? s.menuList : r.value === "mix" ? l.mixSubMenus : []), d = w(() => h.value ? m.value.length > 0 : !1);
|
|
2314
|
+
return (S, y) => {
|
|
2315
|
+
const c = we("router-view");
|
|
2316
|
+
return a(), u(K, null, [
|
|
2317
|
+
r.value === "sidebar" ? (a(), u("div", tn, [
|
|
2318
2318
|
e("aside", {
|
|
2319
|
-
class:
|
|
2320
|
-
style: Ee({ width:
|
|
2319
|
+
class: G(["layout__aside", { "layout__aside--collapsed": n(l).isCollapsed }]),
|
|
2320
|
+
style: Ee({ width: v.value })
|
|
2321
2321
|
}, [
|
|
2322
|
-
|
|
2323
|
-
"menu-list":
|
|
2322
|
+
_(dt, {
|
|
2323
|
+
"menu-list": m.value,
|
|
2324
2324
|
"show-logo": !0,
|
|
2325
2325
|
"show-user": !0,
|
|
2326
2326
|
"logo-src": p.value
|
|
@@ -2328,94 +2328,94 @@ const ge = Pe("menu", () => {
|
|
|
2328
2328
|
], 6),
|
|
2329
2329
|
e("div", sn, [
|
|
2330
2330
|
e("header", on, [
|
|
2331
|
-
|
|
2331
|
+
_(to)
|
|
2332
2332
|
]),
|
|
2333
2333
|
e("main", an, [
|
|
2334
|
-
|
|
2334
|
+
_(c)
|
|
2335
2335
|
])
|
|
2336
2336
|
])
|
|
2337
|
-
])) :
|
|
2338
|
-
r.value === "top" ? (a(),
|
|
2337
|
+
])) : A("", !0),
|
|
2338
|
+
r.value === "top" ? (a(), u("div", nn, [
|
|
2339
2339
|
e("div", ln, [
|
|
2340
|
-
|
|
2340
|
+
_(ca, { "logo-src": p.value }, null, 8, ["logo-src"])
|
|
2341
2341
|
]),
|
|
2342
2342
|
e("div", rn, [
|
|
2343
2343
|
e("main", cn, [
|
|
2344
|
-
|
|
2344
|
+
_(c)
|
|
2345
2345
|
])
|
|
2346
2346
|
])
|
|
2347
|
-
])) :
|
|
2348
|
-
r.value === "mix" ? (a(),
|
|
2349
|
-
e("div",
|
|
2350
|
-
|
|
2347
|
+
])) : A("", !0),
|
|
2348
|
+
r.value === "mix" ? (a(), u("div", dn, [
|
|
2349
|
+
e("div", un, [
|
|
2350
|
+
_(en, { "logo-src": p.value }, null, 8, ["logo-src"])
|
|
2351
2351
|
]),
|
|
2352
2352
|
e("div", mn, [
|
|
2353
|
-
|
|
2353
|
+
d.value ? (a(), u("aside", {
|
|
2354
2354
|
key: 0,
|
|
2355
|
-
class:
|
|
2356
|
-
style: Ee({ width:
|
|
2355
|
+
class: G(["layout__aside", { "layout__aside--collapsed": n(l).isCollapsed }]),
|
|
2356
|
+
style: Ee({ width: v.value })
|
|
2357
2357
|
}, [
|
|
2358
|
-
|
|
2359
|
-
"menu-list":
|
|
2358
|
+
_(dt, {
|
|
2359
|
+
"menu-list": m.value,
|
|
2360
2360
|
"show-logo": !1,
|
|
2361
2361
|
"show-user": !1
|
|
2362
2362
|
}, null, 8, ["menu-list"])
|
|
2363
|
-
], 6)) :
|
|
2363
|
+
], 6)) : A("", !0),
|
|
2364
2364
|
e("main", pn, [
|
|
2365
|
-
|
|
2365
|
+
_(c)
|
|
2366
2366
|
])
|
|
2367
2367
|
])
|
|
2368
|
-
])) :
|
|
2368
|
+
])) : A("", !0)
|
|
2369
2369
|
], 64);
|
|
2370
2370
|
};
|
|
2371
2371
|
}
|
|
2372
|
-
}),
|
|
2372
|
+
}), _t = /* @__PURE__ */ ne(vn, [["__scopeId", "data-v-a1c7e6e2"]]), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2373
2373
|
__proto__: null,
|
|
2374
|
-
default:
|
|
2375
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2374
|
+
default: _t
|
|
2375
|
+
}, Symbol.toStringTag, { value: "Module" })), fn = { class: "tabs-wrapper" }, _n = { class: "tab-label" }, gn = ["onClick"], yn = /* @__PURE__ */ ae({
|
|
2376
2376
|
__name: "Tabs",
|
|
2377
2377
|
setup(t) {
|
|
2378
|
-
const o = Te(), p =
|
|
2379
|
-
const
|
|
2380
|
-
return o.matched.forEach((
|
|
2381
|
-
var
|
|
2382
|
-
(
|
|
2383
|
-
name:
|
|
2384
|
-
title:
|
|
2385
|
-
path:
|
|
2378
|
+
const o = Te(), p = be(), l = w(() => {
|
|
2379
|
+
const h = [];
|
|
2380
|
+
return o.matched.forEach((m) => {
|
|
2381
|
+
var d;
|
|
2382
|
+
(d = m.meta) != null && d.affix && h.push({
|
|
2383
|
+
name: m.name,
|
|
2384
|
+
title: m.meta.title,
|
|
2385
|
+
path: m.path,
|
|
2386
2386
|
affix: !0
|
|
2387
2387
|
});
|
|
2388
|
-
}),
|
|
2389
|
-
}), s =
|
|
2390
|
-
p.push(
|
|
2391
|
-
}, r = (
|
|
2392
|
-
const
|
|
2393
|
-
if (!(
|
|
2394
|
-
const
|
|
2395
|
-
|
|
2388
|
+
}), h;
|
|
2389
|
+
}), s = w(() => o.path), v = (h) => {
|
|
2390
|
+
p.push(h);
|
|
2391
|
+
}, r = (h) => {
|
|
2392
|
+
const m = l.value.find((d) => d.path === h);
|
|
2393
|
+
if (!(m != null && m.affix) && h === s.value) {
|
|
2394
|
+
const d = l.value.findIndex((y) => y.path === h), S = l.value[d - 1] || l.value[d + 1];
|
|
2395
|
+
S && p.push(S.path);
|
|
2396
2396
|
}
|
|
2397
2397
|
};
|
|
2398
|
-
return (
|
|
2399
|
-
|
|
2398
|
+
return (h, m) => (a(), u("div", fn, [
|
|
2399
|
+
_(n(Bt), {
|
|
2400
2400
|
modelValue: s.value,
|
|
2401
|
-
"onUpdate:modelValue":
|
|
2401
|
+
"onUpdate:modelValue": m[0] || (m[0] = (d) => s.value = d),
|
|
2402
2402
|
type: "card",
|
|
2403
|
-
onTabClick:
|
|
2403
|
+
onTabClick: v
|
|
2404
2404
|
}, {
|
|
2405
|
-
default:
|
|
2406
|
-
(a(!0),
|
|
2407
|
-
key:
|
|
2408
|
-
name:
|
|
2409
|
-
label:
|
|
2410
|
-
closable: !
|
|
2405
|
+
default: C(() => [
|
|
2406
|
+
(a(!0), u(K, null, Y(l.value, (d) => (a(), F(n(Ot), {
|
|
2407
|
+
key: d.path,
|
|
2408
|
+
name: d.path,
|
|
2409
|
+
label: d.title,
|
|
2410
|
+
closable: !d.affix
|
|
2411
2411
|
}, {
|
|
2412
|
-
label:
|
|
2413
|
-
e("span",
|
|
2414
|
-
|
|
2415
|
-
|
|
2412
|
+
label: C(() => [
|
|
2413
|
+
e("span", _n, [
|
|
2414
|
+
Z(x(d.title) + " ", 1),
|
|
2415
|
+
d.affix ? A("", !0) : (a(), u("span", {
|
|
2416
2416
|
key: 0,
|
|
2417
2417
|
class: "tab-close",
|
|
2418
|
-
onClick:
|
|
2418
|
+
onClick: Oe((S) => r(d.path), ["stop"])
|
|
2419
2419
|
}, " ✕ ", 8, gn))
|
|
2420
2420
|
])
|
|
2421
2421
|
]),
|
|
@@ -2426,13 +2426,13 @@ const ge = Pe("menu", () => {
|
|
|
2426
2426
|
}, 8, ["modelValue"])
|
|
2427
2427
|
]));
|
|
2428
2428
|
}
|
|
2429
|
-
}),
|
|
2430
|
-
function
|
|
2431
|
-
return a(),
|
|
2429
|
+
}), kl = /* @__PURE__ */ ne(yn, [["__scopeId", "data-v-0a4ca30d"]]), kn = {}, wn = { class: "footer" };
|
|
2430
|
+
function bn(t, o) {
|
|
2431
|
+
return a(), u("div", wn, [...o[0] || (o[0] = [
|
|
2432
2432
|
e("span", null, "Copyright © 2024 Xto Demo. All Rights Reserved.", -1)
|
|
2433
2433
|
])]);
|
|
2434
2434
|
}
|
|
2435
|
-
const
|
|
2435
|
+
const wl = /* @__PURE__ */ ne(kn, [["render", bn], ["__scopeId", "data-v-ac63e349"]]), xn = /* @__PURE__ */ ae({
|
|
2436
2436
|
name: "FilterBar",
|
|
2437
2437
|
__name: "FilterBar",
|
|
2438
2438
|
props: {
|
|
@@ -2446,19 +2446,19 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2446
2446
|
},
|
|
2447
2447
|
emits: ["search", "reset"],
|
|
2448
2448
|
setup(t, { expose: o, emit: p }) {
|
|
2449
|
-
const l = t, s = p,
|
|
2449
|
+
const l = t, s = p, v = k(null), r = k(l.defaultCollapsed), h = k(0), m = () => {
|
|
2450
2450
|
var D;
|
|
2451
|
-
const
|
|
2452
|
-
if (!
|
|
2453
|
-
const
|
|
2454
|
-
|
|
2455
|
-
|
|
2451
|
+
const g = (D = v.value) == null ? void 0 : D.$el;
|
|
2452
|
+
if (!g) return;
|
|
2453
|
+
const E = g.querySelectorAll(":scope > .x-form-item:not(.filter-bar__ops)");
|
|
2454
|
+
h.value = E.length, E.forEach((V, R) => {
|
|
2455
|
+
V.style.display = r.value && R >= l.collapsedCount ? "none" : "";
|
|
2456
2456
|
});
|
|
2457
|
-
},
|
|
2457
|
+
}, d = w(() => l.collapsible && h.value > l.collapsedCount), S = () => {
|
|
2458
2458
|
r.value = !r.value;
|
|
2459
2459
|
};
|
|
2460
|
-
|
|
2461
|
-
const
|
|
2460
|
+
Me(r, () => Ve(m)), Be(() => Ve(m)), Tt(() => Ve(m));
|
|
2461
|
+
const y = () => s("search"), c = () => s("reset");
|
|
2462
2462
|
return o({
|
|
2463
2463
|
/** 展开筛选项 */
|
|
2464
2464
|
expand: () => {
|
|
@@ -2468,59 +2468,59 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2468
2468
|
collapse: () => {
|
|
2469
2469
|
r.value = !0;
|
|
2470
2470
|
}
|
|
2471
|
-
}), (
|
|
2472
|
-
const D =
|
|
2473
|
-
return a(),
|
|
2474
|
-
default:
|
|
2475
|
-
|
|
2471
|
+
}), (g, E) => {
|
|
2472
|
+
const D = we("x-button"), V = we("x-form-item"), R = we("x-form"), W = we("x-card");
|
|
2473
|
+
return a(), F(W, { class: "filter-bar" }, {
|
|
2474
|
+
default: C(() => [
|
|
2475
|
+
_(R, {
|
|
2476
2476
|
ref_key: "formRef",
|
|
2477
|
-
ref:
|
|
2477
|
+
ref: v,
|
|
2478
2478
|
model: t.model,
|
|
2479
2479
|
layout: "inline",
|
|
2480
|
-
onSubmit:
|
|
2480
|
+
onSubmit: y,
|
|
2481
2481
|
onReset: c
|
|
2482
2482
|
}, {
|
|
2483
|
-
default:
|
|
2484
|
-
De(
|
|
2485
|
-
|
|
2486
|
-
default:
|
|
2487
|
-
|
|
2483
|
+
default: C(() => [
|
|
2484
|
+
De(g.$slots, "default", {}, void 0, !0),
|
|
2485
|
+
_(V, { class: "filter-bar__ops" }, {
|
|
2486
|
+
default: C(() => [
|
|
2487
|
+
_(D, {
|
|
2488
2488
|
type: "primary",
|
|
2489
2489
|
size: "small",
|
|
2490
2490
|
"html-type": "submit",
|
|
2491
2491
|
loading: t.searchLoading
|
|
2492
2492
|
}, {
|
|
2493
|
-
default:
|
|
2494
|
-
|
|
2493
|
+
default: C(() => [
|
|
2494
|
+
Z(x(t.searchText), 1)
|
|
2495
2495
|
]),
|
|
2496
2496
|
_: 1
|
|
2497
2497
|
}, 8, ["loading"]),
|
|
2498
|
-
|
|
2498
|
+
_(D, {
|
|
2499
2499
|
size: "small",
|
|
2500
2500
|
"html-type": "reset"
|
|
2501
2501
|
}, {
|
|
2502
|
-
default:
|
|
2503
|
-
|
|
2502
|
+
default: C(() => [
|
|
2503
|
+
Z(x(t.resetText), 1)
|
|
2504
2504
|
]),
|
|
2505
2505
|
_: 1
|
|
2506
2506
|
}),
|
|
2507
|
-
|
|
2507
|
+
d.value ? (a(), F(D, {
|
|
2508
2508
|
key: 0,
|
|
2509
2509
|
type: "text",
|
|
2510
2510
|
size: "small",
|
|
2511
2511
|
class: "filter-bar__toggle",
|
|
2512
|
-
onClick:
|
|
2512
|
+
onClick: S
|
|
2513
2513
|
}, {
|
|
2514
|
-
default:
|
|
2515
|
-
|
|
2516
|
-
|
|
2514
|
+
default: C(() => [
|
|
2515
|
+
Z(x(r.value ? "展开" : "收起") + " ", 1),
|
|
2516
|
+
_(n(T), {
|
|
2517
2517
|
name: "caret-down",
|
|
2518
2518
|
size: 12,
|
|
2519
|
-
class:
|
|
2519
|
+
class: G(["filter-bar__caret", { "is-open": !r.value }])
|
|
2520
2520
|
}, null, 8, ["class"])
|
|
2521
2521
|
]),
|
|
2522
2522
|
_: 1
|
|
2523
|
-
})) :
|
|
2523
|
+
})) : A("", !0)
|
|
2524
2524
|
]),
|
|
2525
2525
|
_: 1
|
|
2526
2526
|
})
|
|
@@ -2532,7 +2532,7 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2532
2532
|
});
|
|
2533
2533
|
};
|
|
2534
2534
|
}
|
|
2535
|
-
}),
|
|
2535
|
+
}), bl = /* @__PURE__ */ ne(xn, [["__scopeId", "data-v-caa0ce56"]]), Cn = { class: "table-card__header" }, $n = { class: "table-card__title" }, Mn = { class: "table-card__actions" }, Ln = /* @__PURE__ */ ae({
|
|
2536
2536
|
name: "TableCard",
|
|
2537
2537
|
__name: "TableCard",
|
|
2538
2538
|
props: {
|
|
@@ -2540,23 +2540,23 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2540
2540
|
},
|
|
2541
2541
|
setup(t) {
|
|
2542
2542
|
return (o, p) => {
|
|
2543
|
-
const l =
|
|
2544
|
-
return a(),
|
|
2545
|
-
default:
|
|
2543
|
+
const l = we("x-card");
|
|
2544
|
+
return a(), F(l, { class: "table-card-frame" }, Ut({
|
|
2545
|
+
default: C(() => [
|
|
2546
2546
|
De(o.$slots, "default", {}, void 0, !0)
|
|
2547
2547
|
]),
|
|
2548
2548
|
_: 2
|
|
2549
2549
|
}, [
|
|
2550
2550
|
t.title || o.$slots.header || o.$slots.actions ? {
|
|
2551
2551
|
name: "header",
|
|
2552
|
-
fn:
|
|
2552
|
+
fn: C(() => [
|
|
2553
2553
|
e("div", Cn, [
|
|
2554
2554
|
e("div", $n, [
|
|
2555
2555
|
De(o.$slots, "header", {}, () => [
|
|
2556
|
-
|
|
2556
|
+
Z(x(t.title), 1)
|
|
2557
2557
|
], !0)
|
|
2558
2558
|
]),
|
|
2559
|
-
e("div",
|
|
2559
|
+
e("div", Mn, [
|
|
2560
2560
|
De(o.$slots, "actions", {}, void 0, !0)
|
|
2561
2561
|
])
|
|
2562
2562
|
])
|
|
@@ -2566,7 +2566,7 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2566
2566
|
]), 1024);
|
|
2567
2567
|
};
|
|
2568
2568
|
}
|
|
2569
|
-
}),
|
|
2569
|
+
}), xl = /* @__PURE__ */ ne(Ln, [["__scopeId", "data-v-ccdd6039"]]), Sn = /* @__PURE__ */ ae({
|
|
2570
2570
|
name: "TableActions",
|
|
2571
2571
|
__name: "TableActions",
|
|
2572
2572
|
props: {
|
|
@@ -2574,39 +2574,39 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2574
2574
|
gap: { default: 6 }
|
|
2575
2575
|
},
|
|
2576
2576
|
setup(t) {
|
|
2577
|
-
const o = t, p =
|
|
2578
|
-
const
|
|
2579
|
-
return
|
|
2580
|
-
}, s =
|
|
2577
|
+
const o = t, p = Pt(), l = (m) => {
|
|
2578
|
+
const d = m.props || {}, S = d.type === "danger" || d.danger === !0 || d.danger === "", y = { type: "text" };
|
|
2579
|
+
return d.size == null && (y.size = "small"), S && (y.class = [d.class, "table-actions__danger"]), Ft(m, y);
|
|
2580
|
+
}, s = w(
|
|
2581
2581
|
() => {
|
|
2582
|
-
var
|
|
2583
|
-
return (((
|
|
2582
|
+
var m;
|
|
2583
|
+
return (((m = p.default) == null ? void 0 : m.call(p)) ?? []).filter((d) => d.type && d.type !== zt && typeof d.type != "symbol").map(l);
|
|
2584
2584
|
}
|
|
2585
|
-
),
|
|
2586
|
-
() =>
|
|
2587
|
-
),
|
|
2588
|
-
return (
|
|
2589
|
-
const
|
|
2590
|
-
return s.value.length ? (a(),
|
|
2585
|
+
), v = w(() => o.max > 0 && s.value.length > o.max), r = w(
|
|
2586
|
+
() => v.value ? s.value.slice(0, Math.max(1, o.max - 1)) : s.value
|
|
2587
|
+
), h = w(() => v.value ? s.value.slice(Math.max(1, o.max - 1)) : []);
|
|
2588
|
+
return (m, d) => {
|
|
2589
|
+
const S = we("x-button");
|
|
2590
|
+
return s.value.length ? (a(), u("div", {
|
|
2591
2591
|
key: 0,
|
|
2592
2592
|
class: "table-actions",
|
|
2593
2593
|
style: Ee({ gap: `${t.gap}px` })
|
|
2594
2594
|
}, [
|
|
2595
|
-
(a(!0),
|
|
2596
|
-
|
|
2595
|
+
(a(!0), u(K, null, Y(r.value, (y, c) => (a(), F(it(y), { key: c }))), 128)),
|
|
2596
|
+
h.value.length ? (a(), F(n(Vt), {
|
|
2597
2597
|
key: 0,
|
|
2598
2598
|
trigger: "click",
|
|
2599
2599
|
placement: "bottom-end"
|
|
2600
2600
|
}, {
|
|
2601
|
-
dropdown:
|
|
2602
|
-
|
|
2603
|
-
default:
|
|
2604
|
-
(a(!0),
|
|
2601
|
+
dropdown: C(() => [
|
|
2602
|
+
_(n(Rt), null, {
|
|
2603
|
+
default: C(() => [
|
|
2604
|
+
(a(!0), u(K, null, Y(h.value, (y, c) => (a(), F(n(Kt), {
|
|
2605
2605
|
key: c,
|
|
2606
2606
|
command: c
|
|
2607
2607
|
}, {
|
|
2608
|
-
default:
|
|
2609
|
-
(a(),
|
|
2608
|
+
default: C(() => [
|
|
2609
|
+
(a(), F(it(y)))
|
|
2610
2610
|
]),
|
|
2611
2611
|
_: 2
|
|
2612
2612
|
}, 1032, ["command"]))), 128))
|
|
@@ -2614,15 +2614,15 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2614
2614
|
_: 1
|
|
2615
2615
|
})
|
|
2616
2616
|
]),
|
|
2617
|
-
default:
|
|
2618
|
-
|
|
2617
|
+
default: C(() => [
|
|
2618
|
+
_(S, {
|
|
2619
2619
|
type: "text",
|
|
2620
2620
|
size: "small",
|
|
2621
2621
|
class: "table-actions__more"
|
|
2622
2622
|
}, {
|
|
2623
|
-
default:
|
|
2624
|
-
|
|
2625
|
-
|
|
2623
|
+
default: C(() => [
|
|
2624
|
+
d[0] || (d[0] = Z(" 更多 ", -1)),
|
|
2625
|
+
_(n(T), {
|
|
2626
2626
|
name: "caret-down",
|
|
2627
2627
|
size: 12
|
|
2628
2628
|
})
|
|
@@ -2631,176 +2631,209 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2631
2631
|
})
|
|
2632
2632
|
]),
|
|
2633
2633
|
_: 1
|
|
2634
|
-
})) :
|
|
2635
|
-
], 4)) :
|
|
2634
|
+
})) : A("", !0)
|
|
2635
|
+
], 4)) : A("", !0);
|
|
2636
2636
|
};
|
|
2637
2637
|
}
|
|
2638
|
-
}),
|
|
2638
|
+
}), Cl = /* @__PURE__ */ ne(Sn, [["__scopeId", "data-v-4d717970"]]), In = { class: "login-page" }, En = { class: "page" }, Nn = {
|
|
2639
|
+
class: "brand-side",
|
|
2640
|
+
"aria-hidden": "true"
|
|
2641
|
+
}, Tn = { class: "brand-inner" }, Un = { class: "brand-logo" }, Pn = { class: "logo-name" }, zn = { class: "login-side" }, Fn = {
|
|
2642
|
+
class: "login-card",
|
|
2643
|
+
id: "login-card"
|
|
2644
|
+
}, Dn = { class: "card-header" }, An = { class: "welcome-sub" }, Bn = { class: "input-wrapper" }, On = { class: "input-wrapper" }, Vn = { class: "form-options" }, Rn = { class: "footer" }, Kn = /* @__PURE__ */ ae({
|
|
2639
2645
|
__name: "index",
|
|
2640
2646
|
setup(t) {
|
|
2641
|
-
const o =
|
|
2647
|
+
const o = be(), p = Te(), l = fe(), s = w(() => l.appName || "XTO App"), v = (/* @__PURE__ */ new Date()).getFullYear(), r = k(!1), h = k(!1), m = Ze({
|
|
2642
2648
|
uid: "",
|
|
2643
2649
|
password: ""
|
|
2644
|
-
}),
|
|
2650
|
+
}), d = {
|
|
2645
2651
|
uid: [
|
|
2646
|
-
{ required: !0, message: "
|
|
2652
|
+
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
2647
2653
|
],
|
|
2648
2654
|
password: [
|
|
2649
2655
|
{ required: !0, message: "请输入密码", trigger: "blur" },
|
|
2650
2656
|
{ min: 6, message: "密码长度至少6位", trigger: "blur" }
|
|
2651
2657
|
]
|
|
2652
|
-
},
|
|
2653
|
-
var
|
|
2658
|
+
}, S = k(), y = async () => {
|
|
2659
|
+
var c;
|
|
2654
2660
|
try {
|
|
2655
|
-
await ((
|
|
2656
|
-
|
|
2661
|
+
if (await ((c = S.value) == null ? void 0 : c.validate()) === !1) return;
|
|
2662
|
+
r.value = !0;
|
|
2663
|
+
const E = await bt({
|
|
2657
2664
|
appId: Se(),
|
|
2658
2665
|
clientId: ht(),
|
|
2659
2666
|
uid: m.uid,
|
|
2660
2667
|
password: m.password,
|
|
2661
2668
|
code: !0
|
|
2662
2669
|
});
|
|
2663
|
-
vt(
|
|
2664
|
-
const
|
|
2665
|
-
|
|
2666
|
-
} catch (
|
|
2667
|
-
console.error("登录失败:",
|
|
2670
|
+
vt(E), jt.success("登录成功");
|
|
2671
|
+
const D = p.query.redirect;
|
|
2672
|
+
D ? o.push(D) : o.push({ name: "Dashboard" });
|
|
2673
|
+
} catch (g) {
|
|
2674
|
+
console.error("登录失败:", g);
|
|
2668
2675
|
} finally {
|
|
2669
|
-
|
|
2676
|
+
r.value = !1;
|
|
2670
2677
|
}
|
|
2671
2678
|
};
|
|
2672
|
-
return (
|
|
2673
|
-
|
|
2679
|
+
return (c, g) => (a(), u("div", In, [
|
|
2680
|
+
g[18] || (g[18] = e("a", {
|
|
2681
|
+
class: "skip-link",
|
|
2682
|
+
href: "#login-card"
|
|
2683
|
+
}, "跳转到登录表单", -1)),
|
|
2674
2684
|
e("div", En, [
|
|
2675
|
-
e("
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
], -1)),
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2685
|
+
e("aside", Nn, [
|
|
2686
|
+
g[6] || (g[6] = e("div", { class: "deco-grid" }, null, -1)),
|
|
2687
|
+
g[7] || (g[7] = e("div", { class: "deco-glow" }, null, -1)),
|
|
2688
|
+
g[8] || (g[8] = e("div", { class: "deco-line l1" }, null, -1)),
|
|
2689
|
+
g[9] || (g[9] = e("div", { class: "deco-line l2" }, null, -1)),
|
|
2690
|
+
e("div", Tn, [
|
|
2691
|
+
e("div", Un, [
|
|
2692
|
+
g[4] || (g[4] = e("div", { class: "logo-mark" }, "X", -1)),
|
|
2693
|
+
e("div", Pn, [
|
|
2694
|
+
Z(x(s.value) + " ", 1),
|
|
2695
|
+
g[3] || (g[3] = e("small", null, "XTO PLATFORM", -1))
|
|
2696
|
+
])
|
|
2697
|
+
]),
|
|
2698
|
+
g[5] || (g[5] = Je('<h1 class="brand-title" data-v-3de04846> 统一身份认证<br data-v-3de04846>数字化赋能<em data-v-3de04846>高效协同</em></h1><p class="brand-desc" data-v-3de04846> 一站式访问所有业务系统<br data-v-3de04846> 安全、高效、可信的企业级数字化工作入口 </p><svg class="brand-visual" viewBox="0 0 460 290" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-3de04846><defs data-v-3de04846><linearGradient id="gShield" x1="160" y1="60" x2="300" y2="250" gradientUnits="userSpaceOnUse" data-v-3de04846><stop offset="0" stop-color="#4fa3ff" data-v-3de04846></stop><stop offset="1" stop-color="#1e5fd6" data-v-3de04846></stop></linearGradient><linearGradient id="gOrbit" x1="0" y1="0" x2="460" y2="290" gradientUnits="userSpaceOnUse" data-v-3de04846><stop offset="0" stop-color="#67e8f9" stop-opacity=".5" data-v-3de04846></stop><stop offset=".5" stop-color="#818cf8" stop-opacity=".35" data-v-3de04846></stop><stop offset="1" stop-color="#34d399" stop-opacity=".4" data-v-3de04846></stop></linearGradient><radialGradient id="gHalo" cx=".5" cy=".5" r=".5" data-v-3de04846><stop offset="0" stop-color="#38bdf8" stop-opacity=".3" data-v-3de04846></stop><stop offset="1" stop-color="#38bdf8" stop-opacity="0" data-v-3de04846></stop></radialGradient><linearGradient id="gViolet" x1="0" y1="0" x2="0" y2="1" data-v-3de04846><stop offset="0" stop-color="#a78bfa" data-v-3de04846></stop><stop offset="1" stop-color="#7c5cf0" data-v-3de04846></stop></linearGradient></defs><circle cx="230" cy="160" r="130" fill="url(#gHalo)" data-v-3de04846></circle><ellipse cx="230" cy="165" rx="190" ry="105" stroke="url(#gOrbit)" stroke-width="1.5" stroke-dasharray="3 8" data-v-3de04846></ellipse><ellipse cx="230" cy="165" rx="145" ry="78" stroke="rgba(255,255,255,.14)" stroke-width="1" data-v-3de04846></ellipse><circle cx="52" cy="120" r="4" fill="#67e8f9" data-v-3de04846></circle><circle cx="410" cy="98" r="4" fill="#fbbf24" data-v-3de04846></circle><circle cx="392" cy="228" r="3.5" fill="#818cf8" data-v-3de04846></circle><path d="M52 120 C 110 90, 140 78, 178 92" stroke="#67e8f9" stroke-opacity=".45" stroke-width="1.2" stroke-dasharray="2 6" data-v-3de04846></path><path d="M410 98 C 360 80, 320 76, 286 92" stroke="#fbbf24" stroke-opacity=".45" stroke-width="1.2" stroke-dasharray="2 6" data-v-3de04846></path><g class="float-a" data-v-3de04846><path d="M230 58 L296 84 V150 C296 200 268 232 230 246 C192 232 164 200 164 150 V84 Z" fill="url(#gShield)" data-v-3de04846></path><path d="M230 58 L296 84 V150 C296 200 268 232 230 246 Z" fill="#0b3f9e" fill-opacity=".25" data-v-3de04846></path><rect x="206" y="130" width="48" height="40" rx="8" fill="#fff" data-v-3de04846></rect><path d="M214 130 v-8 a16 16 0 0 1 32 0 v8" stroke="#fff" stroke-width="7" stroke-linecap="round" fill="none" data-v-3de04846></path><circle cx="230" cy="148" r="5.5" fill="#1e5fd6" data-v-3de04846></circle><rect x="227.5" y="150" width="5" height="11" rx="2.5" fill="#1e5fd6" data-v-3de04846></rect></g><g class="float-b" data-v-3de04846><rect x="66" y="120" width="96" height="74" rx="12" fill="#ffffff" data-v-3de04846></rect><rect x="66" y="120" width="96" height="74" rx="12" stroke="#e2e8f0" stroke-width="1" data-v-3de04846></rect><rect x="80" y="134" width="42" height="7" rx="3.5" fill="#cbd5e1" data-v-3de04846></rect><rect x="80" y="168" width="10" height="16" rx="3" fill="#f59e0b" data-v-3de04846></rect><rect x="96" y="158" width="10" height="26" rx="3" fill="#fbbf24" data-v-3de04846></rect><rect x="112" y="150" width="10" height="34" rx="3" fill="#10b981" data-v-3de04846></rect><path d="M124 146 L138 134" stroke="#10b981" stroke-width="2.5" stroke-linecap="round" data-v-3de04846></path><path d="M133 133 h6 v6" stroke="#10b981" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none" data-v-3de04846></path></g><g class="float-c" data-v-3de04846><circle cx="330" cy="86" r="30" fill="url(#gViolet)" data-v-3de04846></circle><g fill="#fff" data-v-3de04846><rect x="326.5" y="60" width="7" height="10" rx="2" data-v-3de04846></rect><rect x="326.5" y="102" width="7" height="10" rx="2" data-v-3de04846></rect><rect x="304" y="82.5" width="10" height="7" rx="2" data-v-3de04846></rect><rect x="346" y="82.5" width="10" height="7" rx="2" data-v-3de04846></rect><rect x="310.5" y="63" width="7" height="10" rx="2" transform="rotate(-45 314 68)" data-v-3de04846></rect><rect x="342.5" y="99" width="7" height="10" rx="2" transform="rotate(-45 346 104)" data-v-3de04846></rect><rect x="310.5" y="99" width="7" height="10" rx="2" transform="rotate(45 314 104)" data-v-3de04846></rect><rect x="342.5" y="63" width="7" height="10" rx="2" transform="rotate(45 346 68)" data-v-3de04846></rect></g><circle cx="330" cy="86" r="12" fill="#fff" data-v-3de04846></circle><circle cx="330" cy="86" r="6" fill="#7c5cf0" data-v-3de04846></circle></g><g class="float-b" data-v-3de04846><rect x="312" y="150" width="104" height="66" rx="12" fill="#ffffff" data-v-3de04846></rect><rect x="312" y="150" width="104" height="66" rx="12" stroke="#e2e8f0" stroke-width="1" data-v-3de04846></rect><circle cx="330" cy="168" r="6" fill="#22d3ee" data-v-3de04846></circle><rect x="342" y="164" width="52" height="7" rx="3.5" fill="#cbd5e1" data-v-3de04846></rect><circle cx="330" cy="186" r="6" fill="#fbbf24" data-v-3de04846></circle><rect x="342" y="182" width="40" height="7" rx="3.5" fill="#cbd5e1" data-v-3de04846></rect><circle cx="330" cy="204" r="6" fill="#a78bfa" data-v-3de04846></circle><rect x="342" y="200" width="46" height="7" rx="3.5" fill="#cbd5e1" data-v-3de04846></rect></g><g class="float-c" data-v-3de04846><circle cx="128" cy="232" r="24" fill="#10b981" data-v-3de04846></circle><circle cx="128" cy="232" r="24" stroke="#34d399" stroke-width="4" stroke-opacity=".5" data-v-3de04846></circle><path d="M118 232 l7 7 14 -15" stroke="#fff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" fill="none" data-v-3de04846></path></g><path d="M84 62 l0 12 M78 68 l12 0" stroke="#818cf8" stroke-width="2" stroke-linecap="round" data-v-3de04846></path><path d="M372 262 l0 10 M367 267 l10 0" stroke="#67e8f9" stroke-width="2" stroke-linecap="round" data-v-3de04846></path><circle cx="416" cy="180" r="2.5" fill="#f59e0b" data-v-3de04846></circle><circle cx="98" cy="180" r="2.5" fill="#a78bfa" data-v-3de04846></circle></svg>', 3))
|
|
2699
|
+
])
|
|
2700
|
+
]),
|
|
2701
|
+
e("main", zn, [
|
|
2702
|
+
e("section", Fn, [
|
|
2703
|
+
e("header", Dn, [
|
|
2704
|
+
g[10] || (g[10] = e("div", {
|
|
2705
|
+
class: "logo-mark",
|
|
2706
|
+
"aria-hidden": "true"
|
|
2707
|
+
}, "X", -1)),
|
|
2708
|
+
g[11] || (g[11] = e("h2", { class: "welcome" }, "账号登录", -1)),
|
|
2709
|
+
e("p", An, "欢迎登录" + x(s.value), 1)
|
|
2710
|
+
]),
|
|
2711
|
+
_(n(Wt), {
|
|
2712
|
+
ref_key: "formRef",
|
|
2713
|
+
ref: S,
|
|
2714
|
+
model: m,
|
|
2715
|
+
rules: d,
|
|
2716
|
+
class: "login-form",
|
|
2717
|
+
"label-width": "0"
|
|
2718
|
+
}, {
|
|
2719
|
+
default: C(() => [
|
|
2720
|
+
_(n(Re), { prop: "uid" }, {
|
|
2721
|
+
default: C(() => [
|
|
2722
|
+
e("div", Bn, [
|
|
2723
|
+
g[12] || (g[12] = e("label", { class: "input-label" }, "账号", -1)),
|
|
2724
|
+
_(n(ct), {
|
|
2725
|
+
modelValue: m.uid,
|
|
2726
|
+
"onUpdate:modelValue": g[0] || (g[0] = (E) => m.uid = E),
|
|
2727
|
+
placeholder: "请输入账号",
|
|
2728
|
+
size: "large"
|
|
2729
|
+
}, {
|
|
2730
|
+
prefix: C(() => [
|
|
2731
|
+
_(n(T), {
|
|
2732
|
+
name: "user",
|
|
2733
|
+
size: 18
|
|
2734
|
+
})
|
|
2735
|
+
]),
|
|
2736
|
+
_: 1
|
|
2737
|
+
}, 8, ["modelValue"])
|
|
2738
|
+
])
|
|
2739
|
+
]),
|
|
2740
|
+
_: 1
|
|
2741
|
+
}),
|
|
2742
|
+
_(n(Re), { prop: "password" }, {
|
|
2743
|
+
default: C(() => [
|
|
2744
|
+
e("div", On, [
|
|
2745
|
+
g[13] || (g[13] = e("label", { class: "input-label" }, "密码", -1)),
|
|
2746
|
+
_(n(ct), {
|
|
2747
|
+
modelValue: m.password,
|
|
2748
|
+
"onUpdate:modelValue": g[1] || (g[1] = (E) => m.password = E),
|
|
2749
|
+
type: "password",
|
|
2750
|
+
placeholder: "请输入登录密码",
|
|
2751
|
+
size: "large",
|
|
2752
|
+
"show-password": "",
|
|
2753
|
+
onKeyup: Dt(y, ["enter"])
|
|
2754
|
+
}, {
|
|
2755
|
+
prefix: C(() => [
|
|
2756
|
+
_(n(T), {
|
|
2757
|
+
name: "lock",
|
|
2758
|
+
size: 18
|
|
2759
|
+
})
|
|
2760
|
+
]),
|
|
2761
|
+
_: 1
|
|
2762
|
+
}, 8, ["modelValue"])
|
|
2763
|
+
])
|
|
2764
|
+
]),
|
|
2765
|
+
_: 1
|
|
2766
|
+
}),
|
|
2767
|
+
e("div", Vn, [
|
|
2768
|
+
_(n(qt), {
|
|
2769
|
+
modelValue: h.value,
|
|
2770
|
+
"onUpdate:modelValue": g[2] || (g[2] = (E) => h.value = E)
|
|
2771
|
+
}, {
|
|
2772
|
+
default: C(() => [...g[14] || (g[14] = [
|
|
2773
|
+
Z("记住账号", -1)
|
|
2774
|
+
])]),
|
|
2775
|
+
_: 1
|
|
2776
|
+
}, 8, ["modelValue"]),
|
|
2777
|
+
g[15] || (g[15] = e("a", {
|
|
2778
|
+
href: "#",
|
|
2779
|
+
class: "link"
|
|
2780
|
+
}, "忘记密码?", -1))
|
|
2708
2781
|
]),
|
|
2709
|
-
_
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
e("div", Un, [
|
|
2714
|
-
f[4] || (f[4] = e("label", { class: "input-label" }, "密码", -1)),
|
|
2715
|
-
y(n(ct), {
|
|
2716
|
-
modelValue: m.password,
|
|
2717
|
-
"onUpdate:modelValue": f[1] || (f[1] = (g) => m.password = g),
|
|
2718
|
-
type: "password",
|
|
2719
|
-
placeholder: "请输入密码",
|
|
2782
|
+
_(n(Re), null, {
|
|
2783
|
+
default: C(() => [
|
|
2784
|
+
_(n(Ne), {
|
|
2785
|
+
type: "primary",
|
|
2720
2786
|
size: "large",
|
|
2721
|
-
|
|
2722
|
-
|
|
2787
|
+
loading: r.value,
|
|
2788
|
+
class: "btn-login",
|
|
2789
|
+
onClick: y
|
|
2723
2790
|
}, {
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
name: "lock",
|
|
2727
|
-
size: 18
|
|
2728
|
-
})
|
|
2791
|
+
default: C(() => [
|
|
2792
|
+
Z(x(r.value ? "正在登录…" : "登 录"), 1)
|
|
2729
2793
|
]),
|
|
2730
2794
|
_: 1
|
|
2731
|
-
}, 8, ["
|
|
2732
|
-
])
|
|
2733
|
-
]),
|
|
2734
|
-
_: 1
|
|
2735
|
-
}),
|
|
2736
|
-
e("div", zn, [
|
|
2737
|
-
y(n(qt), {
|
|
2738
|
-
modelValue: s.value,
|
|
2739
|
-
"onUpdate:modelValue": f[2] || (f[2] = (g) => s.value = g)
|
|
2740
|
-
}, {
|
|
2741
|
-
default: x(() => [...f[5] || (f[5] = [
|
|
2742
|
-
oe("记住我", -1)
|
|
2743
|
-
])]),
|
|
2795
|
+
}, 8, ["loading"])
|
|
2796
|
+
]),
|
|
2744
2797
|
_: 1
|
|
2745
|
-
}
|
|
2746
|
-
f[6] || (f[6] = e("a", {
|
|
2747
|
-
href: "#",
|
|
2748
|
-
class: "forgot-link"
|
|
2749
|
-
}, "忘记密码?", -1))
|
|
2798
|
+
})
|
|
2750
2799
|
]),
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
default: x(() => [
|
|
2761
|
-
l.value ? (a(), d("span", Fn, "登录中...")) : (a(), d("span", Pn, "登 录"))
|
|
2762
|
-
]),
|
|
2763
|
-
_: 1
|
|
2764
|
-
}, 8, ["loading"])
|
|
2765
|
-
]),
|
|
2766
|
-
_: 1
|
|
2767
|
-
})
|
|
2768
|
-
]),
|
|
2769
|
-
_: 1
|
|
2770
|
-
}, 8, ["model"]),
|
|
2771
|
-
f[8] || (f[8] = Ae('<div class="form-footer" data-v-20b19b53><p data-v-20b19b53>其他登录方式</p><div class="social-login" data-v-20b19b53><button class="social-btn" title="企业微信" data-v-20b19b53><svg viewBox="0 0 24 24" fill="currentColor" data-v-20b19b53><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z" data-v-20b19b53></path></svg></button><button class="social-btn" title="钉钉" data-v-20b19b53><svg viewBox="0 0 24 24" fill="currentColor" data-v-20b19b53><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .38z" data-v-20b19b53></path></svg></button><button class="social-btn" title="飞书" data-v-20b19b53><svg viewBox="0 0 24 24" fill="currentColor" data-v-20b19b53><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" data-v-20b19b53></path></svg></button></div></div>', 1))
|
|
2772
|
-
]),
|
|
2773
|
-
f[9] || (f[9] = e("div", { class: "copyright" }, [
|
|
2774
|
-
e("p", null, "© 2024 XTO Team. All rights reserved.")
|
|
2775
|
-
], -1))
|
|
2800
|
+
_: 1
|
|
2801
|
+
}, 8, ["model"])
|
|
2802
|
+
]),
|
|
2803
|
+
e("footer", Rn, [
|
|
2804
|
+
Z(" Copyright © " + x(n(v)) + " " + x(s.value) + " All Rights Reserved", 1),
|
|
2805
|
+
g[16] || (g[16] = e("br", null, null, -1)),
|
|
2806
|
+
g[17] || (g[17] = Z(" 建议使用 Chrome / Edge 浏览器访问 ", -1))
|
|
2807
|
+
])
|
|
2808
|
+
])
|
|
2776
2809
|
])
|
|
2777
2810
|
]));
|
|
2778
2811
|
}
|
|
2779
|
-
}),
|
|
2812
|
+
}), jn = /* @__PURE__ */ ne(Kn, [["__scopeId", "data-v-3de04846"]]), Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2780
2813
|
__proto__: null,
|
|
2781
|
-
default:
|
|
2782
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2814
|
+
default: jn
|
|
2815
|
+
}, Symbol.toStringTag, { value: "Module" })), qn = { class: "error-page" }, Gn = { class: "error-container" }, Hn = { class: "error-content" }, Yn = { class: "error-actions" }, Xn = /* @__PURE__ */ ae({
|
|
2783
2816
|
__name: "404",
|
|
2784
2817
|
setup(t) {
|
|
2785
|
-
const o =
|
|
2818
|
+
const o = be(), p = () => {
|
|
2786
2819
|
o.push("/");
|
|
2787
2820
|
};
|
|
2788
|
-
return (l, s) => (a(),
|
|
2789
|
-
e("div",
|
|
2821
|
+
return (l, s) => (a(), u("div", qn, [
|
|
2822
|
+
e("div", Gn, [
|
|
2790
2823
|
s[7] || (s[7] = e("div", { class: "error-bg" }, [
|
|
2791
2824
|
e("div", { class: "bg-circle circle-1" }),
|
|
2792
2825
|
e("div", { class: "bg-circle circle-2" }),
|
|
2793
2826
|
e("div", { class: "bg-circle circle-3" })
|
|
2794
2827
|
], -1)),
|
|
2795
|
-
e("div",
|
|
2796
|
-
s[5] || (s[5] =
|
|
2797
|
-
e("div",
|
|
2798
|
-
|
|
2828
|
+
e("div", Hn, [
|
|
2829
|
+
s[5] || (s[5] = Je('<div class="error-code" data-v-c36cc0ad><span class="code-digit" data-v-c36cc0ad>4</span><span class="code-zero" data-v-c36cc0ad><span class="zero-inner" data-v-c36cc0ad>0</span></span><span class="code-digit" data-v-c36cc0ad>4</span></div><div class="error-illustration" data-v-c36cc0ad><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c36cc0ad><rect x="40" y="20" width="120" height="80" rx="8" fill="var(--xto-fill-color, #F2F3F5)" stroke="var(--xto-border-color, #D9DCE1)" stroke-width="2" data-v-c36cc0ad></rect><rect x="50" y="30" width="100" height="60" rx="4" fill="var(--xto-bg-color, #FFFFFF)" data-v-c36cc0ad></rect><line x1="60" y1="45" x2="140" y2="45" stroke="var(--xto-border-color-light, #E5E6EB)" stroke-width="2" data-v-c36cc0ad></line><line x1="60" y1="55" x2="120" y2="55" stroke="var(--xto-border-color-light, #E5E6EB)" stroke-width="2" data-v-c36cc0ad></line><line x1="60" y1="65" x2="100" y2="65" stroke="var(--xto-border-color-light, #E5E6EB)" stroke-width="2" data-v-c36cc0ad></line><text x="100" y="75" text-anchor="middle" fill="var(--xto-color-primary, #4F46E5)" font-size="24" font-weight="600" data-v-c36cc0ad>?</text><circle cx="150" cy="35" r="12" stroke="var(--xto-color-primary, #4F46E5)" stroke-width="2" fill="none" data-v-c36cc0ad></circle><line x1="158" y1="43" x2="168" y2="53" stroke="var(--xto-color-primary, #4F46E5)" stroke-width="2" stroke-linecap="round" data-v-c36cc0ad></line></svg></div><h1 class="error-title" data-v-c36cc0ad>页面不存在</h1><p class="error-desc" data-v-c36cc0ad>抱歉,您访问的页面不存在或已被删除</p>', 4)),
|
|
2830
|
+
e("div", Yn, [
|
|
2831
|
+
_(n(Ne), {
|
|
2799
2832
|
type: "primary",
|
|
2800
2833
|
size: "large",
|
|
2801
2834
|
onClick: p
|
|
2802
2835
|
}, {
|
|
2803
|
-
icon:
|
|
2836
|
+
icon: C(() => [...s[1] || (s[1] = [
|
|
2804
2837
|
e("svg", {
|
|
2805
2838
|
viewBox: "0 0 24 24",
|
|
2806
2839
|
fill: "none",
|
|
@@ -2811,16 +2844,16 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2811
2844
|
e("polyline", { points: "9,22 9,12 15,12 15,22" })
|
|
2812
2845
|
], -1)
|
|
2813
2846
|
])]),
|
|
2814
|
-
default:
|
|
2815
|
-
s[2] || (s[2] =
|
|
2847
|
+
default: C(() => [
|
|
2848
|
+
s[2] || (s[2] = Z(" 返回首页 ", -1))
|
|
2816
2849
|
]),
|
|
2817
2850
|
_: 1
|
|
2818
2851
|
}),
|
|
2819
|
-
|
|
2852
|
+
_(n(Ne), {
|
|
2820
2853
|
size: "large",
|
|
2821
|
-
onClick: s[0] || (s[0] = (
|
|
2854
|
+
onClick: s[0] || (s[0] = (v) => n(o).go(-1))
|
|
2822
2855
|
}, {
|
|
2823
|
-
icon:
|
|
2856
|
+
icon: C(() => [...s[3] || (s[3] = [
|
|
2824
2857
|
e("svg", {
|
|
2825
2858
|
viewBox: "0 0 24 24",
|
|
2826
2859
|
fill: "none",
|
|
@@ -2830,8 +2863,8 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2830
2863
|
e("path", { d: "M19 12H5M12 19l-7-7 7-7" })
|
|
2831
2864
|
], -1)
|
|
2832
2865
|
])]),
|
|
2833
|
-
default:
|
|
2834
|
-
s[4] || (s[4] =
|
|
2866
|
+
default: C(() => [
|
|
2867
|
+
s[4] || (s[4] = Z(" 返回上一页 ", -1))
|
|
2835
2868
|
]),
|
|
2836
2869
|
_: 1
|
|
2837
2870
|
})
|
|
@@ -2848,31 +2881,31 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2848
2881
|
])
|
|
2849
2882
|
]));
|
|
2850
2883
|
}
|
|
2851
|
-
}),
|
|
2884
|
+
}), Zn = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-c36cc0ad"]]), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2852
2885
|
__proto__: null,
|
|
2853
|
-
default:
|
|
2854
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2886
|
+
default: Zn
|
|
2887
|
+
}, Symbol.toStringTag, { value: "Module" })), Jn = { class: "error-page" }, Qn = { class: "error-container" }, el = { class: "error-content" }, tl = { class: "error-actions" }, sl = /* @__PURE__ */ ae({
|
|
2855
2888
|
__name: "403",
|
|
2856
2889
|
setup(t) {
|
|
2857
|
-
const o =
|
|
2890
|
+
const o = be(), p = () => {
|
|
2858
2891
|
o.push("/");
|
|
2859
2892
|
};
|
|
2860
|
-
return (l, s) => (a(),
|
|
2861
|
-
e("div",
|
|
2893
|
+
return (l, s) => (a(), u("div", Jn, [
|
|
2894
|
+
e("div", Qn, [
|
|
2862
2895
|
s[7] || (s[7] = e("div", { class: "error-bg" }, [
|
|
2863
2896
|
e("div", { class: "bg-circle circle-1" }),
|
|
2864
2897
|
e("div", { class: "bg-circle circle-2" }),
|
|
2865
2898
|
e("div", { class: "bg-circle circle-3" })
|
|
2866
2899
|
], -1)),
|
|
2867
|
-
e("div",
|
|
2868
|
-
s[5] || (s[5] =
|
|
2869
|
-
e("div",
|
|
2870
|
-
|
|
2900
|
+
e("div", el, [
|
|
2901
|
+
s[5] || (s[5] = Je('<div class="error-code" data-v-e6e1f7ac><span class="code-digit" data-v-e6e1f7ac>4</span><span class="code-zero warning" data-v-e6e1f7ac><span class="zero-inner" data-v-e6e1f7ac>0</span></span><span class="code-digit" data-v-e6e1f7ac>3</span></div><div class="error-illustration" data-v-e6e1f7ac><svg viewBox="0 0 200 120" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-e6e1f7ac><path d="M100 15 L150 35 L150 70 C150 95 100 110 100 110 C100 110 50 95 50 70 L50 35 Z" fill="var(--xto-color-warning-light-9, #FFF3E8)" stroke="var(--xto-color-warning, #FF7D00)" stroke-width="2" data-v-e6e1f7ac></path><rect x="85" y="55" width="30" height="25" rx="4" fill="var(--xto-color-warning, #FF7D00)" data-v-e6e1f7ac></rect><path d="M92 55 V48 A8 8 0 0 1 108 48 V55" fill="none" stroke="var(--xto-color-warning, #FF7D00)" stroke-width="3" data-v-e6e1f7ac></path><circle cx="100" cy="67" r="6" fill="none" stroke="#fff" stroke-width="2" data-v-e6e1f7ac></circle><line x1="96" y1="63" x2="104" y2="71" stroke="#fff" stroke-width="2" data-v-e6e1f7ac></line></svg></div><h1 class="error-title" data-v-e6e1f7ac>无访问权限</h1><p class="error-desc" data-v-e6e1f7ac>抱歉,您没有权限访问此页面,请联系管理员获取权限</p>', 4)),
|
|
2902
|
+
e("div", tl, [
|
|
2903
|
+
_(n(Ne), {
|
|
2871
2904
|
type: "primary",
|
|
2872
2905
|
size: "large",
|
|
2873
2906
|
onClick: p
|
|
2874
2907
|
}, {
|
|
2875
|
-
icon:
|
|
2908
|
+
icon: C(() => [...s[1] || (s[1] = [
|
|
2876
2909
|
e("svg", {
|
|
2877
2910
|
viewBox: "0 0 24 24",
|
|
2878
2911
|
fill: "none",
|
|
@@ -2883,16 +2916,16 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2883
2916
|
e("polyline", { points: "9,22 9,12 15,12 15,22" })
|
|
2884
2917
|
], -1)
|
|
2885
2918
|
])]),
|
|
2886
|
-
default:
|
|
2887
|
-
s[2] || (s[2] =
|
|
2919
|
+
default: C(() => [
|
|
2920
|
+
s[2] || (s[2] = Z(" 返回首页 ", -1))
|
|
2888
2921
|
]),
|
|
2889
2922
|
_: 1
|
|
2890
2923
|
}),
|
|
2891
|
-
|
|
2924
|
+
_(n(Ne), {
|
|
2892
2925
|
size: "large",
|
|
2893
|
-
onClick: s[0] || (s[0] = (
|
|
2926
|
+
onClick: s[0] || (s[0] = (v) => n(o).go(-1))
|
|
2894
2927
|
}, {
|
|
2895
|
-
icon:
|
|
2928
|
+
icon: C(() => [...s[3] || (s[3] = [
|
|
2896
2929
|
e("svg", {
|
|
2897
2930
|
viewBox: "0 0 24 24",
|
|
2898
2931
|
fill: "none",
|
|
@@ -2902,8 +2935,8 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2902
2935
|
e("path", { d: "M19 12H5M12 19l-7-7 7-7" })
|
|
2903
2936
|
], -1)
|
|
2904
2937
|
])]),
|
|
2905
|
-
default:
|
|
2906
|
-
s[4] || (s[4] =
|
|
2938
|
+
default: C(() => [
|
|
2939
|
+
s[4] || (s[4] = Z(" 返回上一页 ", -1))
|
|
2907
2940
|
]),
|
|
2908
2941
|
_: 1
|
|
2909
2942
|
})
|
|
@@ -2920,18 +2953,18 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2920
2953
|
])
|
|
2921
2954
|
]));
|
|
2922
2955
|
}
|
|
2923
|
-
}),
|
|
2924
|
-
function
|
|
2925
|
-
const t = fe(), o = me(), p = Fe(), l =
|
|
2956
|
+
}), $l = /* @__PURE__ */ ne(sl, [["__scopeId", "data-v-e6e1f7ac"]]);
|
|
2957
|
+
function Ml() {
|
|
2958
|
+
const t = fe(), o = me(), p = Fe(), l = w(() => o.userName || ""), s = w(() => o.userInfo), v = w(() => t.appName), r = w(() => p.isLoggedIn), h = w(() => t.isDark), m = w(() => t.theme), d = w(() => t.isCollapsed), S = w(() => t.layout);
|
|
2926
2959
|
return {
|
|
2927
2960
|
userName: l,
|
|
2928
2961
|
userInfo: s,
|
|
2929
|
-
appName:
|
|
2962
|
+
appName: v,
|
|
2930
2963
|
isLoggedIn: r,
|
|
2931
|
-
isDark:
|
|
2932
|
-
theme:
|
|
2933
|
-
isCollapsed:
|
|
2934
|
-
layout:
|
|
2964
|
+
isDark: h,
|
|
2965
|
+
theme: m,
|
|
2966
|
+
isCollapsed: d,
|
|
2967
|
+
layout: S,
|
|
2935
2968
|
toggleTheme: () => {
|
|
2936
2969
|
t.toggleTheme();
|
|
2937
2970
|
},
|
|
@@ -2940,40 +2973,40 @@ function bl() {
|
|
|
2940
2973
|
}
|
|
2941
2974
|
};
|
|
2942
2975
|
}
|
|
2943
|
-
function
|
|
2976
|
+
function Ll() {
|
|
2944
2977
|
const t = me();
|
|
2945
2978
|
return {
|
|
2946
|
-
isLoggedIn:
|
|
2979
|
+
isLoggedIn: w(() => t.isLoggedIn)
|
|
2947
2980
|
};
|
|
2948
2981
|
}
|
|
2949
|
-
function
|
|
2950
|
-
const { rules: p, onSubmit: l } = o, s =
|
|
2951
|
-
c(),
|
|
2952
|
-
},
|
|
2953
|
-
Object.assign(
|
|
2954
|
-
},
|
|
2955
|
-
|
|
2982
|
+
function Sl(t, o = {}) {
|
|
2983
|
+
const { rules: p, onSubmit: l } = o, s = k(), v = Ze({ ...t }), r = k(!1), h = k(!1), m = k(!1), d = () => {
|
|
2984
|
+
c(), m.value = !1, h.value = !0;
|
|
2985
|
+
}, S = (E) => {
|
|
2986
|
+
Object.assign(v, E), m.value = !0, h.value = !0;
|
|
2987
|
+
}, y = () => {
|
|
2988
|
+
h.value = !1, c();
|
|
2956
2989
|
}, c = () => {
|
|
2957
|
-
var
|
|
2990
|
+
var E;
|
|
2958
2991
|
Object.keys(t).forEach((D) => {
|
|
2959
|
-
|
|
2960
|
-
}), (
|
|
2992
|
+
v[D] = t[D];
|
|
2993
|
+
}), (E = s.value) == null || E.resetFields();
|
|
2961
2994
|
};
|
|
2962
2995
|
return {
|
|
2963
2996
|
formRef: s,
|
|
2964
|
-
formData:
|
|
2997
|
+
formData: v,
|
|
2965
2998
|
rules: p,
|
|
2966
2999
|
loading: r,
|
|
2967
|
-
visible:
|
|
2968
|
-
isEdit:
|
|
2969
|
-
openAdd:
|
|
2970
|
-
openEdit:
|
|
2971
|
-
close:
|
|
3000
|
+
visible: h,
|
|
3001
|
+
isEdit: m,
|
|
3002
|
+
openAdd: d,
|
|
3003
|
+
openEdit: S,
|
|
3004
|
+
close: y,
|
|
2972
3005
|
resetForm: c,
|
|
2973
3006
|
handleSubmit: async () => {
|
|
2974
|
-
var
|
|
3007
|
+
var E;
|
|
2975
3008
|
try {
|
|
2976
|
-
await ((
|
|
3009
|
+
await ((E = s.value) == null ? void 0 : E.validate()), r.value = !0, await (l == null ? void 0 : l(v)), y();
|
|
2977
3010
|
} catch (D) {
|
|
2978
3011
|
console.error(D);
|
|
2979
3012
|
} finally {
|
|
@@ -2982,81 +3015,81 @@ function wl(t, o = {}) {
|
|
|
2982
3015
|
}
|
|
2983
3016
|
};
|
|
2984
3017
|
}
|
|
2985
|
-
function
|
|
2986
|
-
const { fetchData: o, defaultPageSize: p = 10 } = t, l =
|
|
3018
|
+
function Il(t) {
|
|
3019
|
+
const { fetchData: o, defaultPageSize: p = 10 } = t, l = k(!1), s = k([]), v = k(0), r = k(1), h = k(p), m = Ze({}), d = async () => {
|
|
2987
3020
|
l.value = !0;
|
|
2988
3021
|
try {
|
|
2989
|
-
const
|
|
2990
|
-
...
|
|
3022
|
+
const V = {
|
|
3023
|
+
...m,
|
|
2991
3024
|
page: r.value,
|
|
2992
|
-
pageSize:
|
|
2993
|
-
}, R = await o(
|
|
2994
|
-
s.value = R.list,
|
|
2995
|
-
} catch (
|
|
2996
|
-
console.error(
|
|
3025
|
+
pageSize: h.value
|
|
3026
|
+
}, R = await o(V);
|
|
3027
|
+
s.value = R.list, v.value = R.total;
|
|
3028
|
+
} catch (V) {
|
|
3029
|
+
console.error(V);
|
|
2997
3030
|
} finally {
|
|
2998
3031
|
l.value = !1;
|
|
2999
3032
|
}
|
|
3000
|
-
},
|
|
3001
|
-
r.value = 1,
|
|
3002
|
-
},
|
|
3003
|
-
Object.keys(
|
|
3004
|
-
|
|
3005
|
-
}), r.value = 1,
|
|
3006
|
-
}, c = (
|
|
3007
|
-
r.value =
|
|
3008
|
-
},
|
|
3009
|
-
|
|
3010
|
-
},
|
|
3011
|
-
|
|
3012
|
-
}, D =
|
|
3033
|
+
}, S = () => {
|
|
3034
|
+
r.value = 1, d();
|
|
3035
|
+
}, y = () => {
|
|
3036
|
+
Object.keys(m).forEach((V) => {
|
|
3037
|
+
m[V] = void 0;
|
|
3038
|
+
}), r.value = 1, d();
|
|
3039
|
+
}, c = (V) => {
|
|
3040
|
+
r.value = V, d();
|
|
3041
|
+
}, g = (V) => {
|
|
3042
|
+
h.value = V, r.value = 1, d();
|
|
3043
|
+
}, E = () => {
|
|
3044
|
+
d();
|
|
3045
|
+
}, D = w(() => ({
|
|
3013
3046
|
current: r.value,
|
|
3014
|
-
pageSize:
|
|
3015
|
-
total:
|
|
3047
|
+
pageSize: h.value,
|
|
3048
|
+
total: v.value
|
|
3016
3049
|
}));
|
|
3017
3050
|
return {
|
|
3018
3051
|
loading: l,
|
|
3019
3052
|
data: s,
|
|
3020
|
-
total:
|
|
3053
|
+
total: v,
|
|
3021
3054
|
currentPage: r,
|
|
3022
|
-
pageSize:
|
|
3023
|
-
searchParams:
|
|
3055
|
+
pageSize: h,
|
|
3056
|
+
searchParams: m,
|
|
3024
3057
|
pagination: D,
|
|
3025
|
-
getData:
|
|
3026
|
-
handleSearch:
|
|
3027
|
-
handleReset:
|
|
3058
|
+
getData: d,
|
|
3059
|
+
handleSearch: S,
|
|
3060
|
+
handleReset: y,
|
|
3028
3061
|
handlePageChange: c,
|
|
3029
|
-
handleSizeChange:
|
|
3030
|
-
refresh:
|
|
3062
|
+
handleSizeChange: g,
|
|
3063
|
+
refresh: E
|
|
3031
3064
|
};
|
|
3032
3065
|
}
|
|
3033
|
-
const ot =
|
|
3034
|
-
const t =
|
|
3035
|
-
const c = l.find((
|
|
3066
|
+
const ot = ze("locale", () => {
|
|
3067
|
+
const t = z.get("locale") || "zh-CN", o = Gt(t), p = k(t), l = Ht(), { t: s, messages: v, setLocale: r, mergeMessages: h } = Yt(), m = w(() => {
|
|
3068
|
+
const c = l.find((g) => g.code === p.value);
|
|
3036
3069
|
return (c == null ? void 0 : c.name) || p.value;
|
|
3037
3070
|
});
|
|
3038
3071
|
return {
|
|
3039
3072
|
locale: p,
|
|
3040
|
-
localeName:
|
|
3073
|
+
localeName: m,
|
|
3041
3074
|
locales: l,
|
|
3042
|
-
messages:
|
|
3075
|
+
messages: v,
|
|
3043
3076
|
t: s,
|
|
3044
3077
|
changeLocale: (c) => {
|
|
3045
|
-
p.value = c, r(c),
|
|
3078
|
+
p.value = c, r(c), z.set("locale", c), o.setLocale(c);
|
|
3046
3079
|
},
|
|
3047
3080
|
addMessages: (c) => {
|
|
3048
|
-
|
|
3081
|
+
h(c);
|
|
3049
3082
|
},
|
|
3050
3083
|
initLocale: () => {
|
|
3051
3084
|
r(t);
|
|
3052
3085
|
},
|
|
3053
3086
|
provider: o
|
|
3054
3087
|
};
|
|
3055
|
-
}),
|
|
3088
|
+
}), ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3056
3089
|
__proto__: null,
|
|
3057
3090
|
useLocaleStore: ot
|
|
3058
3091
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3059
|
-
function
|
|
3092
|
+
function El() {
|
|
3060
3093
|
const t = ot();
|
|
3061
3094
|
return {
|
|
3062
3095
|
/** 当前语言代码 */
|
|
@@ -3075,30 +3108,30 @@ function Cl() {
|
|
|
3075
3108
|
addMessages: t.addMessages
|
|
3076
3109
|
};
|
|
3077
3110
|
}
|
|
3078
|
-
function
|
|
3111
|
+
function Nl() {
|
|
3079
3112
|
return ot().t;
|
|
3080
3113
|
}
|
|
3081
|
-
function
|
|
3114
|
+
function Tl(t) {
|
|
3082
3115
|
const o = me(), p = ge();
|
|
3083
3116
|
return o.isLoggedIn ? p.hasPermission(t) : !1;
|
|
3084
3117
|
}
|
|
3085
|
-
function
|
|
3118
|
+
function Ul(t) {
|
|
3086
3119
|
return me().isLoggedIn;
|
|
3087
3120
|
}
|
|
3088
|
-
function
|
|
3121
|
+
function Pl() {
|
|
3089
3122
|
return !0;
|
|
3090
3123
|
}
|
|
3091
3124
|
const yt = [
|
|
3092
3125
|
{
|
|
3093
3126
|
path: "/login",
|
|
3094
3127
|
name: "Login",
|
|
3095
|
-
component: () => Promise.resolve().then(() =>
|
|
3128
|
+
component: () => Promise.resolve().then(() => Wn),
|
|
3096
3129
|
meta: {
|
|
3097
3130
|
title: "登录",
|
|
3098
3131
|
hidden: !0
|
|
3099
3132
|
}
|
|
3100
3133
|
}
|
|
3101
|
-
],
|
|
3134
|
+
], kt = {
|
|
3102
3135
|
path: "/",
|
|
3103
3136
|
name: "Layout",
|
|
3104
3137
|
component: () => Promise.resolve().then(() => hn),
|
|
@@ -3107,7 +3140,7 @@ const yt = [
|
|
|
3107
3140
|
{
|
|
3108
3141
|
path: "/dashboard",
|
|
3109
3142
|
name: "Dashboard",
|
|
3110
|
-
component: () => import("./index-
|
|
3143
|
+
component: () => import("./index-BmlwXD1Z.js"),
|
|
3111
3144
|
meta: {
|
|
3112
3145
|
title: "仪表盘",
|
|
3113
3146
|
icon: "dashboard",
|
|
@@ -3118,7 +3151,7 @@ const yt = [
|
|
|
3118
3151
|
{
|
|
3119
3152
|
path: "/system/user",
|
|
3120
3153
|
name: "SystemUser",
|
|
3121
|
-
component: () => import("./index-
|
|
3154
|
+
component: () => import("./index-DKL8X5Zu.js"),
|
|
3122
3155
|
meta: {
|
|
3123
3156
|
title: "用户管理",
|
|
3124
3157
|
icon: "user",
|
|
@@ -3128,7 +3161,7 @@ const yt = [
|
|
|
3128
3161
|
{
|
|
3129
3162
|
path: "/system/role",
|
|
3130
3163
|
name: "SystemRole",
|
|
3131
|
-
component: () => import("./index-
|
|
3164
|
+
component: () => import("./index-CkBG2FzY.js"),
|
|
3132
3165
|
meta: {
|
|
3133
3166
|
title: "角色管理",
|
|
3134
3167
|
icon: "role",
|
|
@@ -3138,7 +3171,7 @@ const yt = [
|
|
|
3138
3171
|
{
|
|
3139
3172
|
path: "/system/menu",
|
|
3140
3173
|
name: "SystemMenu",
|
|
3141
|
-
component: () => import("./index-
|
|
3174
|
+
component: () => import("./index-CvLee0YB.js"),
|
|
3142
3175
|
meta: {
|
|
3143
3176
|
title: "菜单管理",
|
|
3144
3177
|
icon: "menu",
|
|
@@ -3156,11 +3189,11 @@ const yt = [
|
|
|
3156
3189
|
}
|
|
3157
3190
|
}
|
|
3158
3191
|
]
|
|
3159
|
-
},
|
|
3192
|
+
}, zl = [
|
|
3160
3193
|
{
|
|
3161
3194
|
path: "/dashboard",
|
|
3162
3195
|
name: "Dashboard",
|
|
3163
|
-
component: () => import("./index-
|
|
3196
|
+
component: () => import("./index-BmlwXD1Z.js"),
|
|
3164
3197
|
meta: {
|
|
3165
3198
|
title: "仪表盘",
|
|
3166
3199
|
icon: "dashboard",
|
|
@@ -3180,7 +3213,7 @@ const yt = [
|
|
|
3180
3213
|
{
|
|
3181
3214
|
path: "user",
|
|
3182
3215
|
name: "SystemUser",
|
|
3183
|
-
component: () => import("./index-
|
|
3216
|
+
component: () => import("./index-DKL8X5Zu.js"),
|
|
3184
3217
|
meta: {
|
|
3185
3218
|
title: "用户管理",
|
|
3186
3219
|
icon: "user",
|
|
@@ -3190,7 +3223,7 @@ const yt = [
|
|
|
3190
3223
|
{
|
|
3191
3224
|
path: "role",
|
|
3192
3225
|
name: "SystemRole",
|
|
3193
|
-
component: () => import("./index-
|
|
3226
|
+
component: () => import("./index-CkBG2FzY.js"),
|
|
3194
3227
|
meta: {
|
|
3195
3228
|
title: "角色管理",
|
|
3196
3229
|
icon: "role",
|
|
@@ -3200,7 +3233,7 @@ const yt = [
|
|
|
3200
3233
|
{
|
|
3201
3234
|
path: "menu",
|
|
3202
3235
|
name: "SystemMenu",
|
|
3203
|
-
component: () => import("./index-
|
|
3236
|
+
component: () => import("./index-CvLee0YB.js"),
|
|
3204
3237
|
meta: {
|
|
3205
3238
|
title: "菜单管理",
|
|
3206
3239
|
icon: "menu",
|
|
@@ -3209,7 +3242,7 @@ const yt = [
|
|
|
3209
3242
|
}
|
|
3210
3243
|
]
|
|
3211
3244
|
}
|
|
3212
|
-
],
|
|
3245
|
+
], al = [
|
|
3213
3246
|
{
|
|
3214
3247
|
menuCode: "dashboard",
|
|
3215
3248
|
menuName: "仪表盘",
|
|
@@ -3257,12 +3290,12 @@ const yt = [
|
|
|
3257
3290
|
}
|
|
3258
3291
|
]
|
|
3259
3292
|
}
|
|
3260
|
-
],
|
|
3293
|
+
], wt = Qe({
|
|
3261
3294
|
history: et(),
|
|
3262
|
-
routes: [...yt,
|
|
3295
|
+
routes: [...yt, kt],
|
|
3263
3296
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
3264
|
-
}),
|
|
3265
|
-
|
|
3297
|
+
}), nl = ["/login"];
|
|
3298
|
+
wt.beforeEach(async (t, o, p) => {
|
|
3266
3299
|
const l = fe();
|
|
3267
3300
|
if (l.initTheme(), mt())
|
|
3268
3301
|
if (t.path === "/login")
|
|
@@ -3278,19 +3311,19 @@ kt.beforeEach(async (t, o, p) => {
|
|
|
3278
3311
|
mobilePhone: "13800138000",
|
|
3279
3312
|
positionName: "管理员",
|
|
3280
3313
|
avatar: ""
|
|
3281
|
-
}), ge().setMenuList(
|
|
3314
|
+
}), ge().setMenuList(al)), t.name && t.meta.keepAlive && l.addCachedView(t.name), p();
|
|
3282
3315
|
}
|
|
3283
3316
|
else
|
|
3284
|
-
|
|
3317
|
+
nl.includes(t.path) ? p() : p("/login");
|
|
3285
3318
|
});
|
|
3286
|
-
function
|
|
3287
|
-
const t =
|
|
3319
|
+
function Fl() {
|
|
3320
|
+
const t = Qe({
|
|
3288
3321
|
history: et(),
|
|
3289
|
-
routes: [...yt,
|
|
3322
|
+
routes: [...yt, kt]
|
|
3290
3323
|
});
|
|
3291
|
-
|
|
3324
|
+
wt.matcher = t.matcher;
|
|
3292
3325
|
}
|
|
3293
|
-
function
|
|
3326
|
+
function Dl(t, o = {}) {
|
|
3294
3327
|
const p = o.indexPath || "/dashboard", l = o.logoSrc, s = {
|
|
3295
3328
|
path: "/:pathMatch(.*)*",
|
|
3296
3329
|
name: "CatchAll",
|
|
@@ -3305,81 +3338,81 @@ function Nl(t, o = {}) {
|
|
|
3305
3338
|
component: ae({
|
|
3306
3339
|
name: "LayoutWrapper",
|
|
3307
3340
|
render() {
|
|
3308
|
-
return At(
|
|
3341
|
+
return At(_t, { logoSrc: l || Pe("/vite.svg") });
|
|
3309
3342
|
}
|
|
3310
3343
|
}),
|
|
3311
3344
|
redirect: p,
|
|
3312
3345
|
children: [...t, s]
|
|
3313
3346
|
};
|
|
3314
3347
|
}
|
|
3315
|
-
function
|
|
3348
|
+
function Al(t, o = {}) {
|
|
3316
3349
|
const p = o.base || xt();
|
|
3317
|
-
return
|
|
3350
|
+
return Qe({
|
|
3318
3351
|
history: et(p),
|
|
3319
3352
|
routes: t,
|
|
3320
3353
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
3321
3354
|
});
|
|
3322
3355
|
}
|
|
3323
|
-
const
|
|
3324
|
-
function
|
|
3356
|
+
const ll = ["login", "404", "403", "/login", "/404", "/403"];
|
|
3357
|
+
function rl(t, o) {
|
|
3325
3358
|
if (o.includes(t)) return !0;
|
|
3326
3359
|
const p = t.startsWith("/") ? t.slice(1) : t;
|
|
3327
3360
|
return o.includes(p);
|
|
3328
3361
|
}
|
|
3329
|
-
function
|
|
3330
|
-
const p = o.whiteList ||
|
|
3331
|
-
t.beforeEach(async (l, s,
|
|
3332
|
-
const r = fe(),
|
|
3333
|
-
if (r.initTheme(),
|
|
3334
|
-
if (l.path ===
|
|
3335
|
-
|
|
3336
|
-
else if (
|
|
3337
|
-
if (!
|
|
3362
|
+
function Bl(t, o = {}) {
|
|
3363
|
+
const p = o.whiteList || ll;
|
|
3364
|
+
t.beforeEach(async (l, s, v) => {
|
|
3365
|
+
const r = fe(), h = me(), m = ge(), d = r.loginPath || o.loginPath || "/login";
|
|
3366
|
+
if (r.initTheme(), ut())
|
|
3367
|
+
if (l.path === d || l.name === "Login")
|
|
3368
|
+
v({ name: "Dashboard" });
|
|
3369
|
+
else if (h.isLoggedIn) {
|
|
3370
|
+
if (!m.hasMenu)
|
|
3338
3371
|
try {
|
|
3339
|
-
const
|
|
3340
|
-
|
|
3341
|
-
} catch (
|
|
3342
|
-
console.warn("补拉菜单失败:",
|
|
3372
|
+
const y = o.fetchMenu ? await o.fetchMenu() : await lt(o.appId);
|
|
3373
|
+
m.setMenuList(y);
|
|
3374
|
+
} catch (y) {
|
|
3375
|
+
console.warn("补拉菜单失败:", y);
|
|
3343
3376
|
}
|
|
3344
|
-
l.name && l.meta.keepAlive && r.addCachedView(l.name),
|
|
3377
|
+
l.name && l.meta.keepAlive && r.addCachedView(l.name), v();
|
|
3345
3378
|
} else
|
|
3346
3379
|
try {
|
|
3347
3380
|
if (o.fetchUserInfo) {
|
|
3348
|
-
const
|
|
3349
|
-
|
|
3381
|
+
const y = await o.fetchUserInfo();
|
|
3382
|
+
h.setUserInfo(y);
|
|
3350
3383
|
} else {
|
|
3351
|
-
const
|
|
3352
|
-
|
|
3384
|
+
const y = await Ct();
|
|
3385
|
+
h.setUserInfo(y);
|
|
3353
3386
|
}
|
|
3354
3387
|
if (o.fetchMenu) {
|
|
3355
|
-
const
|
|
3356
|
-
|
|
3388
|
+
const y = await o.fetchMenu();
|
|
3389
|
+
m.setMenuList(y);
|
|
3357
3390
|
} else {
|
|
3358
|
-
const
|
|
3359
|
-
|
|
3391
|
+
const y = await lt(o.appId);
|
|
3392
|
+
m.setMenuList(y);
|
|
3360
3393
|
}
|
|
3361
|
-
o.onLoginSuccess && o.onLoginSuccess(), l.name && l.meta.keepAlive && r.addCachedView(l.name),
|
|
3362
|
-
} catch (
|
|
3363
|
-
console.error("获取用户信息失败:",
|
|
3394
|
+
o.onLoginSuccess && o.onLoginSuccess(), l.name && l.meta.keepAlive && r.addCachedView(l.name), v({ ...l, replace: !0 });
|
|
3395
|
+
} catch (y) {
|
|
3396
|
+
console.error("获取用户信息失败:", y), h.clearUserInfo(), m.clearMenu(), pt(), v({ name: "Login", query: { redirect: l.fullPath } });
|
|
3364
3397
|
}
|
|
3365
3398
|
else
|
|
3366
|
-
|
|
3399
|
+
rl(l.path, p) || l.name === "Login" || l.name === "NotFound" || l.name === "Forbidden" ? v() : v({ name: "Login", query: { redirect: l.fullPath } });
|
|
3367
3400
|
}), t.afterEach(() => {
|
|
3368
3401
|
});
|
|
3369
3402
|
}
|
|
3370
|
-
var
|
|
3371
|
-
const
|
|
3403
|
+
var il = /* @__PURE__ */ ((t) => (t[t.ENABLED = 1] = "ENABLED", t[t.DISABLED = 0] = "DISABLED", t))(il || {}), cl = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.MALE = 1] = "MALE", t[t.FEMALE = 2] = "FEMALE", t))(cl || {}), dl = /* @__PURE__ */ ((t) => (t[t.DIRECTORY = 0] = "DIRECTORY", t[t.MENU = 1] = "MENU", t[t.BUTTON = 2] = "BUTTON", t))(dl || {});
|
|
3404
|
+
const Ol = {
|
|
3372
3405
|
1: "启用",
|
|
3373
3406
|
0: "禁用"
|
|
3374
|
-
},
|
|
3407
|
+
}, Vl = {
|
|
3375
3408
|
0: "未知",
|
|
3376
3409
|
1: "男",
|
|
3377
3410
|
2: "女"
|
|
3378
|
-
},
|
|
3411
|
+
}, Rl = {
|
|
3379
3412
|
0: "目录",
|
|
3380
3413
|
1: "菜单",
|
|
3381
3414
|
2: "按钮"
|
|
3382
|
-
},
|
|
3415
|
+
}, Kl = [
|
|
3383
3416
|
{
|
|
3384
3417
|
label: "启用",
|
|
3385
3418
|
value: 1
|
|
@@ -3390,7 +3423,7 @@ const zl = {
|
|
|
3390
3423
|
value: 0
|
|
3391
3424
|
/* DISABLED */
|
|
3392
3425
|
}
|
|
3393
|
-
],
|
|
3426
|
+
], jl = [
|
|
3394
3427
|
{
|
|
3395
3428
|
label: "未知",
|
|
3396
3429
|
value: 0
|
|
@@ -3406,7 +3439,7 @@ const zl = {
|
|
|
3406
3439
|
value: 2
|
|
3407
3440
|
/* FEMALE */
|
|
3408
3441
|
}
|
|
3409
|
-
],
|
|
3442
|
+
], Wl = [
|
|
3410
3443
|
{
|
|
3411
3444
|
label: "目录",
|
|
3412
3445
|
value: 0
|
|
@@ -3422,22 +3455,22 @@ const zl = {
|
|
|
3422
3455
|
value: 2
|
|
3423
3456
|
/* BUTTON */
|
|
3424
3457
|
}
|
|
3425
|
-
],
|
|
3458
|
+
], ql = {
|
|
3426
3459
|
mounted(t, o) {
|
|
3427
|
-
var r,
|
|
3460
|
+
var r, h;
|
|
3428
3461
|
const p = me(), l = ge();
|
|
3429
3462
|
if (!p.isLoggedIn) {
|
|
3430
3463
|
(r = t.parentNode) == null || r.removeChild(t);
|
|
3431
3464
|
return;
|
|
3432
3465
|
}
|
|
3433
|
-
const s = o.value,
|
|
3434
|
-
l.hasPermission(
|
|
3466
|
+
const s = o.value, v = Array.isArray(s) ? s : [s];
|
|
3467
|
+
l.hasPermission(v) || (h = t.parentNode) == null || h.removeChild(t);
|
|
3435
3468
|
}
|
|
3436
3469
|
};
|
|
3437
|
-
async function
|
|
3470
|
+
async function Gl(t) {
|
|
3438
3471
|
await $t(t.basePath);
|
|
3439
3472
|
const o = rt();
|
|
3440
|
-
o &&
|
|
3473
|
+
o && Mt(o), Lt({
|
|
3441
3474
|
appId: t.appId,
|
|
3442
3475
|
clientId: t.clientId,
|
|
3443
3476
|
apiBaseUrl: o || t.apiBaseUrl,
|
|
@@ -3448,16 +3481,16 @@ async function Vl(t) {
|
|
|
3448
3481
|
try {
|
|
3449
3482
|
const s = await Promise.race([
|
|
3450
3483
|
It(l),
|
|
3451
|
-
new Promise((
|
|
3484
|
+
new Promise((v) => setTimeout(() => v(null), 2e3))
|
|
3452
3485
|
]);
|
|
3453
3486
|
s && typeof s == "object" && Et(s);
|
|
3454
3487
|
} catch (s) {
|
|
3455
3488
|
console.warn("加载应用界面配置失败,使用内置默认", s);
|
|
3456
3489
|
}
|
|
3457
|
-
return Promise.resolve().then(() =>
|
|
3458
|
-
const
|
|
3459
|
-
t.appName &&
|
|
3460
|
-
}), t.locale && Promise.resolve().then(() =>
|
|
3490
|
+
return Promise.resolve().then(() => Jt).then(({ useAppStore: s }) => {
|
|
3491
|
+
const v = s();
|
|
3492
|
+
t.appName && v.setAppName(t.appName), t.indexPath && v.setIndexPath(t.indexPath), t.loginPath && v.setLoginPath(t.loginPath);
|
|
3493
|
+
}), t.locale && Promise.resolve().then(() => ol).then(({ useLocaleStore: s }) => {
|
|
3461
3494
|
s().changeLocale(t.locale);
|
|
3462
3495
|
}), {
|
|
3463
3496
|
config: {
|
|
@@ -3473,50 +3506,50 @@ async function Vl(t) {
|
|
|
3473
3506
|
};
|
|
3474
3507
|
}
|
|
3475
3508
|
export {
|
|
3476
|
-
|
|
3509
|
+
Bl as A,
|
|
3477
3510
|
yt as B,
|
|
3478
|
-
|
|
3511
|
+
Ml as C,
|
|
3479
3512
|
fe as D,
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3513
|
+
Ll as E,
|
|
3514
|
+
bl as F,
|
|
3515
|
+
cl as G,
|
|
3483
3516
|
to as H,
|
|
3484
3517
|
Fe as I,
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3518
|
+
Sl as J,
|
|
3519
|
+
El as K,
|
|
3520
|
+
_t as L,
|
|
3521
|
+
dl as M,
|
|
3489
3522
|
ot as N,
|
|
3490
3523
|
ge as O,
|
|
3491
|
-
|
|
3524
|
+
Il as P,
|
|
3492
3525
|
me as Q,
|
|
3493
|
-
|
|
3494
|
-
|
|
3526
|
+
il as S,
|
|
3527
|
+
Cl as T,
|
|
3495
3528
|
ne as _,
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3529
|
+
Kl as a,
|
|
3530
|
+
Wl as b,
|
|
3531
|
+
wl as c,
|
|
3532
|
+
$l as d,
|
|
3533
|
+
jl as e,
|
|
3534
|
+
Vl as f,
|
|
3535
|
+
Rl as g,
|
|
3536
|
+
Zn as h,
|
|
3537
|
+
jn as i,
|
|
3538
|
+
dt as j,
|
|
3539
|
+
Ol as k,
|
|
3540
|
+
xl as l,
|
|
3541
|
+
kl as m,
|
|
3542
|
+
Dl as n,
|
|
3543
|
+
Al as o,
|
|
3544
|
+
Nl as p,
|
|
3545
|
+
Gl as q,
|
|
3546
|
+
zl as r,
|
|
3547
|
+
Tl as s,
|
|
3548
|
+
Ul as t,
|
|
3549
|
+
Pl as u,
|
|
3550
|
+
kt as v,
|
|
3551
|
+
al as w,
|
|
3552
|
+
ql as x,
|
|
3553
|
+
Fl as y,
|
|
3554
|
+
wt as z
|
|
3522
3555
|
};
|