xto-fronted 0.9.13 → 0.9.15
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/components/Layout/TopMenu.vue.d.ts +1 -0
- package/dist/{index-B2Td6pR9.js → index-B-oRV32U.js} +1 -1
- package/dist/{index-Dqr-rT21.js → index-CRTSR10l.js} +1 -1
- package/dist/{index-COb9F_fj.js → index-DOasEvMf.js} +1 -1
- package/dist/{index-D_wFQxCz.js → index-D_4fIuYz.js} +1248 -1212
- package/dist/{index-D4Ujmkk6.js → index-Dwam1Jgp.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/Layout/TopMenu.vue +8 -0
- 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 g, computed as k, watch as Me, defineComponent as ae, resolveComponent as we, openBlock as a, createBlock as D, unref as l, withCtx as C, createElementBlock as u, Fragment as j, renderList as Y, createTextVNode as Z, toDisplayString as b, normalizeClass as G, createElementVNode as e, withDirectives as Ae, vShow as Nt, createCommentVNode as B, createVNode as f, onMounted as Be, onUnmounted as Ye, vModelText as Xe, Transition as Ie, withModifiers as Oe, normalizeStyle as Ee, nextTick as Re, 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 Rt, DropdownMenu as Vt, DropdownItem as Kt } from "@xto/navigation";
|
|
6
|
+
import { Icon as N, 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 Ve, 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
|
-
|
|
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 = g(z.get("appName") || "XTO App"), r = g(z.get("indexPath") || "/dashboard"), s = g(z.get("loginPath") || "/login"), v = g(t.theme ?? Le("theme") ?? "light"), i = g(v.value === "dark"), h = g(t.layout ?? Le("layout") ?? "sidebar"), m = g(z.get("isCollapsed") || !1), d = g(o.showTabs ?? Le("showTabs") ?? !0), S = g(o.showFooter ?? Le("showFooter") ?? !0), y = g(o.showBreadcrumb ?? Le("showBreadcrumb") ?? !0), c = g(t.primaryColor ?? Le("primaryColor") ?? "#4F46E5"), _ = g(t.allowUserOverride !== !1), E = g([]), A = g([]), V = k(() => i.value ? "dark" : "light"), K = (I) => {
|
|
22
|
+
p.value = I, z.set("appName", I);
|
|
23
|
+
}, W = (I) => {
|
|
24
|
+
r.value = I, z.set("indexPath", I);
|
|
25
|
+
}, ee = (I) => {
|
|
26
|
+
s.value = I, z.set("loginPath", I);
|
|
27
27
|
}, J = () => {
|
|
28
|
-
const
|
|
29
|
-
|
|
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
|
+
i.value ? I.classList.add("dark") : I.classList.remove("dark");
|
|
34
30
|
}, te = () => {
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
31
|
+
i.value = !i.value, v.value = i.value ? "dark" : "light", oe();
|
|
32
|
+
}, X = (I) => {
|
|
33
|
+
v.value = I, i.value = I === "dark", oe();
|
|
34
|
+
}, oe = () => {
|
|
35
|
+
J(), z.set("isDark", i.value), z.set("theme", v.value);
|
|
36
|
+
}, R = () => {
|
|
37
|
+
m.value = !m.value, z.set("isCollapsed", m.value);
|
|
38
|
+
}, T = (I) => {
|
|
39
|
+
h.value = I, z.set("layout", I);
|
|
40
|
+
}, O = () => {
|
|
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
|
|
50
|
-
if (
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
return `#${
|
|
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 pe = Xt(I);
|
|
50
|
+
if (pe) {
|
|
51
|
+
const ve = (ie, Ce) => {
|
|
52
|
+
const ke = Ce ? [255, 255, 255] : [0, 0, 0];
|
|
53
|
+
return `#${pe.map((U, w) => Math.round(U + (ke[w] - U) * ie)).map((U) => U.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}`, ve(ie * 0.1, !0));
|
|
57
|
+
H.style.setProperty("--xto-color-primary-dark-1", ve(0.12, !1)), H.style.setProperty("--xto-color-primary-dark-2", ve(0.28, !1)), H.style.setProperty("--xto-color-primary-dark-3", ve(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
|
-
},
|
|
68
|
-
const
|
|
69
|
-
|
|
62
|
+
Zt.forEach((pe) => z.remove(pe));
|
|
63
|
+
const I = nt(), H = I.features || {};
|
|
64
|
+
h.value = I.layout ?? "sidebar", c.value = I.primaryColor ?? "#4F46E5", v.value = I.theme ?? "light", i.value = v.value === "dark", d.value = H.showTabs ?? !0, S.value = H.showFooter ?? !0, y.value = H.showBreadcrumb ?? !0, J(), le(c.value);
|
|
65
|
+
}, ce = (I) => {
|
|
66
|
+
E.value.includes(I) || E.value.push(I);
|
|
67
|
+
}, me = (I) => {
|
|
68
|
+
const H = E.value.indexOf(I);
|
|
69
|
+
H > -1 && E.value.splice(H, 1);
|
|
70
70
|
}, ye = () => {
|
|
71
|
-
|
|
72
|
-
}, de = (
|
|
73
|
-
|
|
71
|
+
E.value = [];
|
|
72
|
+
}, de = (I) => {
|
|
73
|
+
A.value = I;
|
|
74
74
|
}, re = () => {
|
|
75
75
|
J(), le(c.value);
|
|
76
76
|
};
|
|
77
|
-
return
|
|
77
|
+
return Me(i, J), {
|
|
78
78
|
appName: p,
|
|
79
|
-
indexPath:
|
|
79
|
+
indexPath: r,
|
|
80
80
|
loginPath: s,
|
|
81
|
-
isDark:
|
|
82
|
-
theme:
|
|
83
|
-
layout:
|
|
84
|
-
isCollapsed:
|
|
85
|
-
showTabs:
|
|
86
|
-
showFooter:
|
|
87
|
-
showBreadcrumb:
|
|
81
|
+
isDark: i,
|
|
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:
|
|
91
|
-
mixSubMenus:
|
|
92
|
-
themeClass:
|
|
93
|
-
setAppName:
|
|
89
|
+
allowUserOverride: _,
|
|
90
|
+
cachedViews: E,
|
|
91
|
+
mixSubMenus: A,
|
|
92
|
+
themeClass: V,
|
|
93
|
+
setAppName: K,
|
|
94
94
|
setIndexPath: W,
|
|
95
|
-
setLoginPath:
|
|
96
|
-
toggleTheme:
|
|
97
|
-
toggleCollapse:
|
|
95
|
+
setLoginPath: ee,
|
|
96
|
+
toggleTheme: te,
|
|
97
|
+
toggleCollapse: R,
|
|
98
98
|
setTheme: X,
|
|
99
|
-
setLayout:
|
|
100
|
-
toggleTabs:
|
|
99
|
+
setLayout: T,
|
|
100
|
+
toggleTabs: O,
|
|
101
101
|
toggleFooter: Q,
|
|
102
102
|
toggleBreadcrumb: q,
|
|
103
103
|
setPrimaryColor: _e,
|
|
104
104
|
resetToServerDefaults: xe,
|
|
105
|
-
addCachedView:
|
|
106
|
-
removeCachedView:
|
|
105
|
+
addCachedView: ce,
|
|
106
|
+
removeCachedView: me,
|
|
107
107
|
clearCachedViews: ye,
|
|
108
108
|
setMixSubMenus: de,
|
|
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,60 +120,60 @@ 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) {
|
|
130
130
|
const o = [];
|
|
131
|
-
function p(
|
|
132
|
-
|
|
131
|
+
function p(r) {
|
|
132
|
+
r.forEach((s) => {
|
|
133
133
|
s.type === 1 && s.menuCode && o.push(s.menuCode), s.children && p(s.children);
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
return p(t), o;
|
|
137
137
|
}
|
|
138
|
-
const ge =
|
|
139
|
-
const t =
|
|
138
|
+
const ge = ze("menu", () => {
|
|
139
|
+
const t = g(z.get(Ke()) || []), o = g(z.get(je()) || []), p = k(() => t.value.length > 0);
|
|
140
140
|
return {
|
|
141
141
|
menuList: t,
|
|
142
142
|
permissions: o,
|
|
143
143
|
hasMenu: p,
|
|
144
|
-
setMenuList: (
|
|
145
|
-
o.value = ss(
|
|
146
|
-
const
|
|
147
|
-
t.value = [ts, ...
|
|
144
|
+
setMenuList: (i) => {
|
|
145
|
+
o.value = ss(i), z.set(je(), o.value);
|
|
146
|
+
const h = ft(i);
|
|
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: (
|
|
152
|
+
hasPermission: (i) => Array.isArray(i) ? i.some((h) => o.value.includes(h)) : o.value.includes(i)
|
|
153
153
|
};
|
|
154
|
-
}),
|
|
155
|
-
const t =
|
|
154
|
+
}), We = "user_info", ue = ze("user", () => {
|
|
155
|
+
const t = g(z.get(We)), o = k(() => !!t.value), p = k(() => {
|
|
156
156
|
var c;
|
|
157
157
|
return ((c = t.value) == null ? void 0 : c.userId) || "";
|
|
158
|
-
}),
|
|
158
|
+
}), r = k(() => {
|
|
159
159
|
var c;
|
|
160
160
|
return ((c = t.value) == null ? void 0 : c.userName) || "";
|
|
161
161
|
}), s = k(() => {
|
|
162
162
|
var c;
|
|
163
163
|
return ((c = t.value) == null ? void 0 : c.departmentName) || "";
|
|
164
|
-
}),
|
|
164
|
+
}), v = k(() => {
|
|
165
165
|
var c;
|
|
166
166
|
return ((c = t.value) == null ? void 0 : c.roleName) || "";
|
|
167
|
-
}),
|
|
167
|
+
}), i = k(() => {
|
|
168
168
|
var c;
|
|
169
169
|
return ((c = t.value) == null ? void 0 : c.email) || "";
|
|
170
|
-
}),
|
|
170
|
+
}), h = k(() => {
|
|
171
171
|
var c;
|
|
172
172
|
return ((c = t.value) == null ? void 0 : c.mobilePhone) || "";
|
|
173
|
-
}),
|
|
173
|
+
}), m = k(() => {
|
|
174
174
|
var c;
|
|
175
175
|
return ((c = t.value) == null ? void 0 : c.positionName) || "";
|
|
176
|
-
}),
|
|
176
|
+
}), d = k(() => {
|
|
177
177
|
var c;
|
|
178
178
|
return ((c = t.value) == null ? void 0 : c.avatar) || "";
|
|
179
179
|
});
|
|
@@ -181,29 +181,29 @@ const ge = Pe("menu", () => {
|
|
|
181
181
|
userInfo: t,
|
|
182
182
|
isLoggedIn: o,
|
|
183
183
|
userId: p,
|
|
184
|
-
userName:
|
|
184
|
+
userName: r,
|
|
185
185
|
departmentName: s,
|
|
186
|
-
roleName:
|
|
187
|
-
email:
|
|
188
|
-
mobilePhone:
|
|
189
|
-
positionName:
|
|
190
|
-
avatar:
|
|
186
|
+
roleName: v,
|
|
187
|
+
email: i,
|
|
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 = g(ut()), o = k(() => mt()), p = g(""), r = g(""), s = g(""), v = g("/login");
|
|
200
200
|
return {
|
|
201
201
|
token: t,
|
|
202
202
|
isLoggedIn: o,
|
|
203
203
|
baseUrl: p,
|
|
204
|
-
appId:
|
|
204
|
+
appId: r,
|
|
205
205
|
clientId: s,
|
|
206
|
-
loginPath:
|
|
206
|
+
loginPath: v,
|
|
207
207
|
login: (c) => {
|
|
208
208
|
t.value = c.access_token, vt(c);
|
|
209
209
|
},
|
|
@@ -214,13 +214,13 @@ const ge = Pe("menu", () => {
|
|
|
214
214
|
p.value = c;
|
|
215
215
|
},
|
|
216
216
|
setAppId: (c) => {
|
|
217
|
-
|
|
217
|
+
r.value = c;
|
|
218
218
|
},
|
|
219
219
|
setClientId: (c) => {
|
|
220
220
|
s.value = c;
|
|
221
221
|
},
|
|
222
222
|
setLoginPath: (c) => {
|
|
223
|
-
|
|
223
|
+
v.value = c;
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
}), os = {
|
|
@@ -337,7 +337,7 @@ const ge = Pe("menu", () => {
|
|
|
337
337
|
"sun",
|
|
338
338
|
"theme",
|
|
339
339
|
"skin"
|
|
340
|
-
]),
|
|
340
|
+
]), r = {
|
|
341
341
|
"el-icon-s-platform": "system",
|
|
342
342
|
"el-icon-platform": "system",
|
|
343
343
|
"el-icon-s-data": "database",
|
|
@@ -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 (
|
|
397
|
-
if (
|
|
398
|
-
const
|
|
394
|
+
}, s = (d) => {
|
|
395
|
+
if (!d || d === "") return "";
|
|
396
|
+
if (r[d]) return r[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) : "", i = (d) => p.has(d), h = k(() => o.menu.menuId || o.menu.menuCode || o.menu.menuUrl || ""), m = k(() => o.menu.children && o.menu.children.length > 0);
|
|
433
|
+
return (d, S) => {
|
|
434
|
+
const y = we("SidebarMenuItem", !0);
|
|
435
|
+
return m.value ? (a(), D(l(He), {
|
|
436
436
|
key: 0,
|
|
437
|
-
index:
|
|
437
|
+
index: h.value
|
|
438
438
|
}, {
|
|
439
|
-
icon:
|
|
440
|
-
|
|
439
|
+
icon: C(() => [
|
|
440
|
+
i(s(t.menu.icon)) ? (a(), D(l(N), {
|
|
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, b(v(t.menu.menuName)), 1))
|
|
445
445
|
]),
|
|
446
|
-
title:
|
|
447
|
-
|
|
446
|
+
title: C(() => [
|
|
447
|
+
Z(b(t.menu.menuName), 1)
|
|
448
448
|
]),
|
|
449
|
-
default:
|
|
450
|
-
(a(!0),
|
|
449
|
+
default: C(() => [
|
|
450
|
+
(a(!0), u(j, null, Y(t.menu.children, (c) => (a(), D(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(), D(l(Ue), {
|
|
457
457
|
key: 1,
|
|
458
|
-
index: t.menu.menuUrl ||
|
|
458
|
+
index: t.menu.menuUrl || h.value
|
|
459
459
|
}, {
|
|
460
|
-
icon:
|
|
461
|
-
|
|
460
|
+
icon: C(() => [
|
|
461
|
+
i(s(t.menu.icon)) ? (a(), D(l(N), {
|
|
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, b(v(t.menu.menuName)), 1))
|
|
466
466
|
]),
|
|
467
|
-
default:
|
|
468
|
-
|
|
467
|
+
default: C(() => [
|
|
468
|
+
Z(" " + b(t.menu.menuName), 1)
|
|
469
469
|
]),
|
|
470
470
|
_: 1
|
|
471
471
|
}, 8, ["index"]));
|
|
@@ -473,8 +473,8 @@ const ge = Pe("menu", () => {
|
|
|
473
473
|
}
|
|
474
474
|
}), ne = (t, o) => {
|
|
475
475
|
const p = t.__vccOpts || t;
|
|
476
|
-
for (const [
|
|
477
|
-
p[
|
|
476
|
+
for (const [r, s] of o)
|
|
477
|
+
p[r] = s;
|
|
478
478
|
return p;
|
|
479
479
|
}, ls = /* @__PURE__ */ ne(ns, [["__scopeId", "data-v-7297001c"]]), rs = {
|
|
480
480
|
key: 0,
|
|
@@ -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 = k(() => o.logoSrc ||
|
|
495
|
-
|
|
496
|
-
|
|
494
|
+
const o = t, p = k(() => o.logoSrc || Pe("/vite.svg")), r = Te(), s = be(), v = ge(), i = ue(), h = Fe(), m = fe(), d = k(() => o.menuList.length > 0 ? o.menuList : v.menuList), S = k(() => m.isCollapsed), y = k(() => r.path), c = (R) => R.menuId || R.menuCode || R.menuUrl || "", _ = () => d.value.map(c).join(","), E = z.get(Ge) || "", A = _(), V = E === A ? z.get(qe) || [] : [], K = g(V);
|
|
495
|
+
Me(K, (R) => {
|
|
496
|
+
z.set(qe, R), z.set(Ge, _());
|
|
497
497
|
}, { deep: !0 });
|
|
498
|
-
const W = (
|
|
498
|
+
const W = (R, T, O = []) => {
|
|
499
499
|
var Q;
|
|
500
|
-
for (const q of
|
|
501
|
-
if (q.menuUrl && (
|
|
502
|
-
return [...
|
|
500
|
+
for (const q of R) {
|
|
501
|
+
if (q.menuUrl && (T === q.menuUrl || T.startsWith(q.menuUrl + "/")))
|
|
502
|
+
return [...O, c(q)];
|
|
503
503
|
if ((Q = q.children) != null && Q.length) {
|
|
504
|
-
const le = W(q.children,
|
|
504
|
+
const le = W(q.children, T, [...O, 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 =
|
|
515
|
-
|
|
510
|
+
Me([() => r.path, d], ([R, T]) => {
|
|
511
|
+
if (T.length > 0) {
|
|
512
|
+
const O = W(T, R);
|
|
513
|
+
if (O) {
|
|
514
|
+
const Q = O.slice(0, -1), q = /* @__PURE__ */ new Set([...K.value, ...Q]);
|
|
515
|
+
K.value = Array.from(q);
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
}, { immediate: !0 }),
|
|
519
|
-
|
|
518
|
+
}, { immediate: !0 }), Me(d, (R, T) => {
|
|
519
|
+
R !== T && (K.value = [], z.set(qe, []), z.set(Ge, _()));
|
|
520
520
|
}, { immediate: !1 });
|
|
521
|
-
const
|
|
522
|
-
|
|
523
|
-
},
|
|
524
|
-
|
|
521
|
+
const ee = k(() => m.isDark ? "#161B21" : "#fff"), J = k(() => m.isDark ? "#D9DCE1" : "#4E5566"), te = k(() => m.isDark ? "#818CF8" : "#4F46E5"), X = (R) => {
|
|
522
|
+
R && R !== r.path && s.push(R);
|
|
523
|
+
}, oe = () => {
|
|
524
|
+
h.logout(), i.clearUserInfo(), v.clearMenu(), s.push(m.loginPath);
|
|
525
525
|
};
|
|
526
|
-
return (
|
|
527
|
-
class:
|
|
526
|
+
return (R, T) => (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" }, b(l(m).appName), 513), [
|
|
536
|
+
[Nt, !S.value]
|
|
537
537
|
])
|
|
538
|
-
])) :
|
|
539
|
-
|
|
540
|
-
modelValue:
|
|
541
|
-
"onUpdate:modelValue":
|
|
542
|
-
openeds:
|
|
543
|
-
"onUpdate:openeds":
|
|
538
|
+
])) : B("", !0),
|
|
539
|
+
f(l(tt), {
|
|
540
|
+
modelValue: y.value,
|
|
541
|
+
"onUpdate:modelValue": T[0] || (T[0] = (O) => y.value = O),
|
|
542
|
+
openeds: K.value,
|
|
543
|
+
"onUpdate:openeds": T[1] || (T[1] = (O) => K.value = O),
|
|
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(j, null, Y(d.value, (O) => (a(), D(ls, {
|
|
555
|
+
key: c(O),
|
|
556
|
+
menu: O
|
|
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, b(l(i).userName), 1),
|
|
564
|
+
e("span", ms, b(l(i).departmentName), 1)
|
|
565
565
|
]),
|
|
566
|
-
|
|
566
|
+
f(l(Ne), {
|
|
567
567
|
type: "text",
|
|
568
568
|
size: "small",
|
|
569
|
-
onClick:
|
|
569
|
+
onClick: oe
|
|
570
570
|
}, {
|
|
571
|
-
default:
|
|
572
|
-
|
|
571
|
+
default: C(() => [...T[2] || (T[2] = [
|
|
572
|
+
Z("退出", -1)
|
|
573
573
|
])]),
|
|
574
574
|
_: 1
|
|
575
575
|
})
|
|
576
|
-
])) :
|
|
576
|
+
])) : B("", !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"], Rs = { class: "layout-option__preview" }, Vs = {
|
|
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(), r = fe(), s = ue(), v = Fe(), i = ge(), h = g(!1), m = g(!1), d = g(null), S = g(!1), y = g(!1), c = g(""), _ = g(null), E = g(!1), A = [
|
|
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
|
-
],
|
|
628
|
+
], K = k(() => o.matched.filter((w) => w.meta && w.meta.title).map((w) => ({
|
|
629
629
|
title: w.meta.title,
|
|
630
630
|
path: w.path
|
|
631
|
-
}))), W = (
|
|
631
|
+
}))), W = (U, w = "") => {
|
|
632
632
|
const se = [];
|
|
633
|
-
return
|
|
633
|
+
return U.forEach((L) => {
|
|
634
634
|
L.children && L.children.length > 0 ? se.push(...W(L.children, L.menuName)) : se.push({ ...L, parentTitle: w, title: L.menuName, path: L.menuUrl });
|
|
635
635
|
}), se;
|
|
636
|
-
},
|
|
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 se =
|
|
738
|
+
]), J = (U) => {
|
|
739
|
+
if (!U || U === "") return "";
|
|
740
|
+
if (U.startsWith("tineco-icon-")) {
|
|
741
|
+
const se = U.replace("tineco-icon-", "");
|
|
742
742
|
return {
|
|
743
743
|
home: "home",
|
|
744
744
|
dashboard: "dashboard",
|
|
@@ -771,171 +771,171 @@ const ge = Pe("menu", () => {
|
|
|
771
771
|
app: "app",
|
|
772
772
|
list: "list",
|
|
773
773
|
grid: "grid"
|
|
774
|
-
}[
|
|
775
|
-
},
|
|
774
|
+
}[U] || U;
|
|
775
|
+
}, te = (U) => U ? U.charAt(0) : "", X = (U) => ee.has(U), oe = k(() => c.value.trim() ? W(i.menuList).filter(
|
|
776
776
|
(w) => w.title.toLowerCase().includes(c.value.toLowerCase())
|
|
777
|
-
) : []),
|
|
778
|
-
|
|
779
|
-
},
|
|
780
|
-
|
|
777
|
+
) : []), R = k(() => r.layout), T = () => {
|
|
778
|
+
r.toggleCollapse();
|
|
779
|
+
}, O = () => {
|
|
780
|
+
r.toggleTheme();
|
|
781
781
|
}, Q = () => {
|
|
782
|
-
|
|
783
|
-
}, q = (
|
|
784
|
-
|
|
785
|
-
}, le = (
|
|
786
|
-
|
|
782
|
+
m.value = !0;
|
|
783
|
+
}, q = (U) => {
|
|
784
|
+
r.setLayout(U), m.value = !1;
|
|
785
|
+
}, le = (U) => {
|
|
786
|
+
E.value = U;
|
|
787
787
|
const w = document.documentElement;
|
|
788
|
-
|
|
788
|
+
U ? w.classList.add("grey-mode") : w.classList.remove("grey-mode");
|
|
789
789
|
}, _e = () => {
|
|
790
|
-
le(!
|
|
790
|
+
le(!E.value), m.value = !1;
|
|
791
791
|
}, xe = () => {
|
|
792
|
-
|
|
793
|
-
},
|
|
794
|
-
|
|
795
|
-
},
|
|
792
|
+
r.toggleTheme(), m.value = !1;
|
|
793
|
+
}, ce = () => {
|
|
794
|
+
r.resetToServerDefaults(), m.value = !1;
|
|
795
|
+
}, me = () => {
|
|
796
796
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
797
797
|
}, ye = () => {
|
|
798
|
-
|
|
798
|
+
S.value = !!document.fullscreenElement;
|
|
799
799
|
}, de = () => {
|
|
800
|
-
|
|
800
|
+
h.value = !h.value;
|
|
801
801
|
}, re = () => {
|
|
802
|
-
|
|
803
|
-
},
|
|
804
|
-
|
|
805
|
-
},
|
|
806
|
-
p.push(
|
|
807
|
-
},
|
|
808
|
-
|
|
809
|
-
},
|
|
802
|
+
h.value = !1;
|
|
803
|
+
}, I = () => {
|
|
804
|
+
y.value = !1, c.value = "";
|
|
805
|
+
}, H = (U) => {
|
|
806
|
+
p.push(U), I();
|
|
807
|
+
}, pe = (U) => {
|
|
808
|
+
r.setPrimaryColor(U), m.value = !1;
|
|
809
|
+
}, ve = () => {
|
|
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(), i.clearMenu(), p.push(r.loginPath);
|
|
815
|
+
}, ke = (U) => {
|
|
816
|
+
d.value && !d.value.contains(U.target) && re(), _.value && !_.value.contains(U.target) && I();
|
|
817
|
+
}, $e = (U) => {
|
|
818
|
+
U.key === "Escape" && (I(), re());
|
|
819
819
|
};
|
|
820
|
-
return
|
|
821
|
-
document.addEventListener("click",
|
|
822
|
-
}),
|
|
823
|
-
document.removeEventListener("click",
|
|
824
|
-
}), (
|
|
820
|
+
return Be(() => {
|
|
821
|
+
document.addEventListener("click", ke), document.addEventListener("fullscreenchange", ye), document.addEventListener("keydown", $e), r.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
|
+
}), (U, w) => {
|
|
825
825
|
var se;
|
|
826
|
-
return a(),
|
|
826
|
+
return a(), u("div", vs, [
|
|
827
827
|
e("div", hs, [
|
|
828
828
|
e("div", {
|
|
829
829
|
class: "header__collapse",
|
|
830
|
-
onClick:
|
|
830
|
+
onClick: T
|
|
831
831
|
}, [
|
|
832
|
-
|
|
833
|
-
name:
|
|
832
|
+
f(l(N), {
|
|
833
|
+
name: l(r).isCollapsed ? "menu-unfold" : "menu-fold",
|
|
834
834
|
size: 18
|
|
835
835
|
}, null, 8, ["name"])
|
|
836
836
|
]),
|
|
837
|
-
|
|
838
|
-
(a(!0),
|
|
837
|
+
l(r).showBreadcrumb ? (a(), u("div", fs, [
|
|
838
|
+
(a(!0), u(j, null, Y(K.value, (L, he) => (a(), u("span", {
|
|
839
839
|
key: L.path
|
|
840
840
|
}, [
|
|
841
|
-
|
|
841
|
+
he > 0 ? (a(), u("span", _s, "/")) : B("", !0),
|
|
842
842
|
e("span", {
|
|
843
|
-
class:
|
|
844
|
-
},
|
|
843
|
+
class: G({ "is-current": he === K.value.length - 1 })
|
|
844
|
+
}, b(L.title), 3)
|
|
845
845
|
]))), 128))
|
|
846
|
-
])) :
|
|
846
|
+
])) : B("", !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: _
|
|
853
853
|
}, [
|
|
854
|
-
|
|
854
|
+
f(l(N), {
|
|
855
855
|
name: "search",
|
|
856
856
|
size: 14,
|
|
857
857
|
class: "header__search-icon"
|
|
858
858
|
}),
|
|
859
|
-
|
|
859
|
+
Ae(e("input", {
|
|
860
860
|
"onUpdate:modelValue": w[0] || (w[0] = (L) => c.value = L),
|
|
861
861
|
type: "text",
|
|
862
862
|
class: "header__search-input",
|
|
863
863
|
placeholder: "搜索菜单...",
|
|
864
|
-
onFocus: w[1] || (w[1] = (L) =>
|
|
864
|
+
onFocus: w[1] || (w[1] = (L) => y.value = !0)
|
|
865
865
|
}, null, 544), [
|
|
866
|
-
[
|
|
866
|
+
[Xe, c.value]
|
|
867
867
|
]),
|
|
868
|
-
|
|
869
|
-
default:
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
(a(!0),
|
|
868
|
+
f(Ie, { name: "search-dropdown" }, {
|
|
869
|
+
default: C(() => [
|
|
870
|
+
y.value && (oe.value.length > 0 || c.value) ? (a(), u("div", ys, [
|
|
871
|
+
oe.value.length > 0 ? (a(), u("div", ks, [
|
|
872
|
+
(a(!0), u(j, null, Y(oe.value, (L) => (a(), u("div", {
|
|
873
873
|
key: L.path,
|
|
874
874
|
class: "header__search-item",
|
|
875
|
-
onClick: (
|
|
875
|
+
onClick: (he) => H(L.path)
|
|
876
876
|
}, [
|
|
877
|
-
L.title !== "首页" ? (a(),
|
|
878
|
-
X(J(L.icon)) ? (a(),
|
|
877
|
+
L.title !== "首页" ? (a(), u("span", bs, [
|
|
878
|
+
X(J(L.icon)) ? (a(), D(l(N), {
|
|
879
879
|
key: 0,
|
|
880
880
|
name: J(L.icon),
|
|
881
881
|
size: 16
|
|
882
|
-
}, null, 8, ["name"])) : (a(),
|
|
883
|
-
])) :
|
|
884
|
-
e("span", Cs,
|
|
885
|
-
L.parentTitle ? (a(),
|
|
886
|
-
], 8,
|
|
887
|
-
])) : (a(),
|
|
888
|
-
])) :
|
|
882
|
+
}, null, 8, ["name"])) : (a(), u("span", xs, b(te(L.title)), 1))
|
|
883
|
+
])) : B("", !0),
|
|
884
|
+
e("span", Cs, b(L.title), 1),
|
|
885
|
+
L.parentTitle ? (a(), u("span", $s, b(L.parentTitle), 1)) : B("", !0)
|
|
886
|
+
], 8, ws))), 128))
|
|
887
|
+
])) : (a(), u("div", Ms, " 未找到匹配的菜单 "))
|
|
888
|
+
])) : B("", !0)
|
|
889
889
|
]),
|
|
890
890
|
_: 1
|
|
891
891
|
})
|
|
892
892
|
], 512),
|
|
893
893
|
e("div", {
|
|
894
894
|
class: "header__action",
|
|
895
|
-
onClick:
|
|
896
|
-
title:
|
|
895
|
+
onClick: me,
|
|
896
|
+
title: S.value ? "退出全屏" : "全屏"
|
|
897
897
|
}, [
|
|
898
|
-
|
|
899
|
-
name:
|
|
898
|
+
f(l(N), {
|
|
899
|
+
name: S.value ? "fullscreen-exit" : "fullscreen",
|
|
900
900
|
size: 16
|
|
901
901
|
}, null, 8, ["name"])
|
|
902
|
-
], 8,
|
|
903
|
-
|
|
902
|
+
], 8, Ls),
|
|
903
|
+
l(r).allowUserOverride ? (a(), u("div", {
|
|
904
904
|
key: 0,
|
|
905
905
|
class: "header__action",
|
|
906
906
|
onClick: Q,
|
|
907
907
|
title: "换肤设置"
|
|
908
908
|
}, [
|
|
909
|
-
|
|
909
|
+
f(l(N), {
|
|
910
910
|
name: "skin",
|
|
911
911
|
size: 16
|
|
912
912
|
})
|
|
913
|
-
])) :
|
|
913
|
+
])) : B("", !0),
|
|
914
914
|
e("div", {
|
|
915
915
|
class: "header__action",
|
|
916
|
-
onClick:
|
|
916
|
+
onClick: O,
|
|
917
917
|
title: "切换主题"
|
|
918
918
|
}, [
|
|
919
|
-
|
|
920
|
-
name:
|
|
919
|
+
f(l(N), {
|
|
920
|
+
name: l(r).isDark ? "sun" : "moon",
|
|
921
921
|
size: 16
|
|
922
922
|
}, null, 8, ["name"])
|
|
923
923
|
]),
|
|
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(de, ["stop"])
|
|
932
932
|
}, [
|
|
933
933
|
e("div", Ss, [
|
|
934
|
-
e("span", null,
|
|
934
|
+
e("span", null, b(((se = l(s).userName) == null ? void 0 : se.charAt(0)) || "U"), 1)
|
|
935
935
|
]),
|
|
936
|
-
e("span", Is,
|
|
936
|
+
e("span", Is, b(l(s).userName), 1),
|
|
937
937
|
e("span", {
|
|
938
|
-
class:
|
|
938
|
+
class: G(["header__user-arrow", { "is-active": h.value }])
|
|
939
939
|
}, [...w[3] || (w[3] = [
|
|
940
940
|
e("svg", {
|
|
941
941
|
viewBox: "0 0 12 12",
|
|
@@ -951,27 +951,27 @@ const ge = Pe("menu", () => {
|
|
|
951
951
|
], -1)
|
|
952
952
|
])], 2)
|
|
953
953
|
]),
|
|
954
|
-
|
|
955
|
-
default:
|
|
954
|
+
f(Ie, { name: "dropdown" }, {
|
|
955
|
+
default: C(() => {
|
|
956
956
|
var L;
|
|
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, b(((L = l(s).userName) == null ? void 0 : L.charAt(0)) || "U"), 1)
|
|
962
962
|
]),
|
|
963
963
|
e("div", Us, [
|
|
964
|
-
e("div",
|
|
965
|
-
e("div",
|
|
964
|
+
e("div", Ps, b(l(s).userName), 1),
|
|
965
|
+
e("div", zs, b(l(s).roleName || l(s).departmentName), 1)
|
|
966
966
|
])
|
|
967
967
|
]),
|
|
968
968
|
w[8] || (w[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
|
-
onClick:
|
|
972
|
+
onClick: ve
|
|
973
973
|
}, [
|
|
974
|
-
|
|
974
|
+
f(l(N), {
|
|
975
975
|
name: "user",
|
|
976
976
|
size: 16
|
|
977
977
|
}),
|
|
@@ -981,7 +981,7 @@ const ge = Pe("menu", () => {
|
|
|
981
981
|
class: "header__dropdown-item",
|
|
982
982
|
onClick: ie
|
|
983
983
|
}, [
|
|
984
|
-
|
|
984
|
+
f(l(N), {
|
|
985
985
|
name: "lock",
|
|
986
986
|
size: 16
|
|
987
987
|
}),
|
|
@@ -992,48 +992,48 @@ const ge = Pe("menu", () => {
|
|
|
992
992
|
class: "header__dropdown-item header__dropdown-item--danger",
|
|
993
993
|
onClick: Ce
|
|
994
994
|
}, [
|
|
995
|
-
|
|
995
|
+
f(l(N), {
|
|
996
996
|
name: "logout",
|
|
997
997
|
size: 16
|
|
998
998
|
}),
|
|
999
999
|
w[6] || (w[6] = e("span", null, "退出登录", -1))
|
|
1000
1000
|
])
|
|
1001
1001
|
])
|
|
1002
|
-
])) :
|
|
1002
|
+
])) : B("", !0)
|
|
1003
1003
|
];
|
|
1004
1004
|
}),
|
|
1005
1005
|
_: 1
|
|
1006
1006
|
})
|
|
1007
1007
|
], 512)
|
|
1008
1008
|
]),
|
|
1009
|
-
|
|
1010
|
-
modelValue:
|
|
1011
|
-
"onUpdate:modelValue": w[2] || (w[2] = (L) =>
|
|
1009
|
+
f(l(st), {
|
|
1010
|
+
modelValue: m.value,
|
|
1011
|
+
"onUpdate:modelValue": w[2] || (w[2] = (L) => m.value = L),
|
|
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
|
w[12] || (w[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
|
|
1020
1020
|
e("div", Bs, [
|
|
1021
|
-
(a(),
|
|
1021
|
+
(a(), u(j, null, Y(A, (L) => e("div", {
|
|
1022
1022
|
key: L.value,
|
|
1023
|
-
class:
|
|
1024
|
-
onClick: (
|
|
1023
|
+
class: G(["layout-option", { "is-active": R.value === L.value }]),
|
|
1024
|
+
onClick: (he) => q(L.value)
|
|
1025
1025
|
}, [
|
|
1026
|
-
e("div",
|
|
1027
|
-
L.value === "sidebar" ? (a(),
|
|
1026
|
+
e("div", Rs, [
|
|
1027
|
+
L.value === "sidebar" ? (a(), u("div", Vs, [...w[9] || (w[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
|
-
])])) : L.value === "top" ? (a(),
|
|
1033
|
+
])])) : L.value === "top" ? (a(), u("div", Ks, [...w[10] || (w[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, [...w[11] || (w[11] = [
|
|
1037
1037
|
e("div", { class: "preview-header-mix" }, [
|
|
1038
1038
|
e("div", { class: "preview-mix-left" })
|
|
1039
1039
|
], -1),
|
|
@@ -1043,45 +1043,45 @@ const ge = Pe("menu", () => {
|
|
|
1043
1043
|
], -1)
|
|
1044
1044
|
])]))
|
|
1045
1045
|
]),
|
|
1046
|
-
e("span", Ws,
|
|
1046
|
+
e("span", Ws, b(L.label), 1)
|
|
1047
1047
|
], 10, Os)), 64))
|
|
1048
1048
|
])
|
|
1049
1049
|
]),
|
|
1050
1050
|
e("div", qs, [
|
|
1051
1051
|
w[13] || (w[13] = e("div", { class: "settings-title" }, "主题色", -1)),
|
|
1052
|
-
e("div",
|
|
1053
|
-
(a(),
|
|
1052
|
+
e("div", Gs, [
|
|
1053
|
+
(a(), u(j, null, Y(V, (L) => e("div", {
|
|
1054
1054
|
key: L.value,
|
|
1055
|
-
class:
|
|
1055
|
+
class: G(["color-option", { "is-active": l(r).primaryColor === L.value }]),
|
|
1056
1056
|
style: Ee({ backgroundColor: L.value }),
|
|
1057
1057
|
title: L.label,
|
|
1058
|
-
onClick: (
|
|
1058
|
+
onClick: (he) => pe(L.value)
|
|
1059
1059
|
}, [
|
|
1060
|
-
|
|
1060
|
+
l(r).primaryColor === L.value ? (a(), D(l(N), {
|
|
1061
1061
|
key: 0,
|
|
1062
1062
|
name: "check",
|
|
1063
1063
|
size: 12,
|
|
1064
1064
|
color: "#fff"
|
|
1065
|
-
})) :
|
|
1066
|
-
], 14,
|
|
1065
|
+
})) : B("", !0)
|
|
1066
|
+
], 14, Hs)), 64))
|
|
1067
1067
|
])
|
|
1068
1068
|
]),
|
|
1069
|
-
e("div",
|
|
1069
|
+
e("div", Ys, [
|
|
1070
1070
|
w[18] || (w[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
|
|
1071
1071
|
e("div", Xs, [
|
|
1072
|
-
e("div",
|
|
1072
|
+
e("div", Zs, [
|
|
1073
1073
|
w[15] || (w[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
|
}, [...w[14] || (w[14] = [
|
|
1078
1078
|
e("span", { class: "switch-core" }, null, -1)
|
|
1079
1079
|
])], 2)
|
|
1080
1080
|
]),
|
|
1081
|
-
e("div",
|
|
1081
|
+
e("div", Js, [
|
|
1082
1082
|
w[17] || (w[17] = e("span", null, "暗黑模式", -1)),
|
|
1083
1083
|
e("div", {
|
|
1084
|
-
class:
|
|
1084
|
+
class: G(["switch-wrapper", { "is-checked": l(r).isDark }]),
|
|
1085
1085
|
onClick: xe
|
|
1086
1086
|
}, [...w[16] || (w[16] = [
|
|
1087
1087
|
e("span", { class: "switch-core" }, null, -1)
|
|
@@ -1089,12 +1089,12 @@ const ge = Pe("menu", () => {
|
|
|
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: ce
|
|
1096
1096
|
}, [
|
|
1097
|
-
|
|
1097
|
+
f(l(N), {
|
|
1098
1098
|
name: "refresh",
|
|
1099
1099
|
size: 14
|
|
1100
1100
|
}),
|
|
@@ -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" },
|
|
1153
|
+
}, Oo = { class: "top-menu__dropdown-header" }, Ro = { class: "top-menu__dropdown-avatar" }, Vo = { 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 = k(() => o.logoSrc ||
|
|
1169
|
-
const
|
|
1170
|
-
return
|
|
1171
|
-
|
|
1172
|
-
}),
|
|
1173
|
-
},
|
|
1174
|
-
(
|
|
1175
|
-
) : []), c = k(() =>
|
|
1176
|
-
|
|
1177
|
-
},
|
|
1168
|
+
const o = t, p = k(() => o.logoSrc || Pe("/vite.svg")), r = Te(), s = be(), v = ge(), i = fe(), h = ue(), m = Fe(), d = k(() => r.path), S = (P, M = "") => {
|
|
1169
|
+
const x = [];
|
|
1170
|
+
return P.forEach((n) => {
|
|
1171
|
+
n.children && n.children.length > 0 ? x.push(...S(n.children, n.menuName)) : x.push({ ...n, parentTitle: M, title: n.menuName, path: n.menuUrl });
|
|
1172
|
+
}), x;
|
|
1173
|
+
}, y = k(() => te.value.trim() ? S(v.menuList).filter(
|
|
1174
|
+
(M) => M.title.toLowerCase().includes(te.value.toLowerCase())
|
|
1175
|
+
) : []), c = k(() => i.isDark ? "#1d1e1f" : "#fff"), _ = k(() => i.isDark ? "#cfd3dc" : "#303133"), E = k(() => "#409eff"), A = g(!1), V = g(null), K = g(!1), W = g(!1), ee = g(!1), J = g(!1), te = g(""), X = g(null), oe = (P) => {
|
|
1176
|
+
P && P !== r.path && s.push(P);
|
|
1177
|
+
}, R = /* @__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
|
|
1279
|
+
]), T = (P) => {
|
|
1280
|
+
if (!P || P === "") return "";
|
|
1281
|
+
if (P.startsWith("tineco-icon-")) {
|
|
1282
|
+
const x = P.replace("tineco-icon-", "");
|
|
1283
1283
|
return {
|
|
1284
1284
|
home: "home",
|
|
1285
1285
|
dashboard: "dashboard",
|
|
@@ -1293,7 +1293,7 @@ const ge = Pe("menu", () => {
|
|
|
1293
1293
|
chart: "chart",
|
|
1294
1294
|
report: "report",
|
|
1295
1295
|
analytics: "analytics"
|
|
1296
|
-
}[
|
|
1296
|
+
}[x] || x;
|
|
1297
1297
|
}
|
|
1298
1298
|
return {
|
|
1299
1299
|
dashboard: "dashboard",
|
|
@@ -1312,155 +1312,158 @@ const ge = Pe("menu", () => {
|
|
|
1312
1312
|
app: "app",
|
|
1313
1313
|
list: "list",
|
|
1314
1314
|
grid: "grid"
|
|
1315
|
-
}[
|
|
1316
|
-
},
|
|
1317
|
-
|
|
1315
|
+
}[P] || P;
|
|
1316
|
+
}, O = (P) => P ? P.charAt(0) : "", Q = (P) => R.has(P), q = () => {
|
|
1317
|
+
i.toggleTheme(), W.value = !1;
|
|
1318
1318
|
}, le = () => {
|
|
1319
1319
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
1320
1320
|
}, _e = () => {
|
|
1321
|
-
|
|
1321
|
+
K.value = !!document.fullscreenElement;
|
|
1322
1322
|
}, xe = () => {
|
|
1323
|
-
|
|
1324
|
-
},
|
|
1325
|
-
|
|
1326
|
-
},
|
|
1327
|
-
J.value = !1,
|
|
1328
|
-
}, ye = (
|
|
1329
|
-
s.push(
|
|
1323
|
+
A.value = !A.value;
|
|
1324
|
+
}, ce = () => {
|
|
1325
|
+
A.value = !1;
|
|
1326
|
+
}, me = () => {
|
|
1327
|
+
J.value = !1, te.value = "";
|
|
1328
|
+
}, ye = (P) => {
|
|
1329
|
+
s.push(P), me();
|
|
1330
1330
|
}, de = () => {
|
|
1331
1331
|
W.value = !0;
|
|
1332
|
-
}, re = (
|
|
1333
|
-
|
|
1334
|
-
const
|
|
1335
|
-
|
|
1336
|
-
},
|
|
1337
|
-
re(!
|
|
1338
|
-
},
|
|
1339
|
-
|
|
1340
|
-
},
|
|
1332
|
+
}, re = (P) => {
|
|
1333
|
+
ee.value = P;
|
|
1334
|
+
const M = document.documentElement;
|
|
1335
|
+
P ? M.classList.add("grey-mode") : M.classList.remove("grey-mode");
|
|
1336
|
+
}, I = () => {
|
|
1337
|
+
re(!ee.value), W.value = !1;
|
|
1338
|
+
}, H = () => {
|
|
1339
|
+
i.toggleTheme(), W.value = !1;
|
|
1340
|
+
}, pe = [
|
|
1341
1341
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
1342
1342
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
1343
1343
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
1344
|
-
],
|
|
1345
|
-
|
|
1344
|
+
], ve = k(() => i.layout), ie = (P) => {
|
|
1345
|
+
i.setLayout(P), 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
|
-
|
|
1352
|
+
], ke = (P) => {
|
|
1353
|
+
i.setPrimaryColor(P), W.value = !1;
|
|
1354
1354
|
}, $e = () => {
|
|
1355
|
-
|
|
1356
|
-
},
|
|
1357
|
-
|
|
1355
|
+
ce(), s.push("/profile");
|
|
1356
|
+
}, U = () => {
|
|
1357
|
+
ce(), s.push("/change-password");
|
|
1358
1358
|
}, w = () => {
|
|
1359
|
-
|
|
1360
|
-
}, se = (
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1359
|
+
ce(), m.logout(), h.clearUserInfo(), v.clearMenu(), s.push(i.loginPath);
|
|
1360
|
+
}, se = g(null), L = (P) => {
|
|
1361
|
+
var M, x, n;
|
|
1362
|
+
V.value && !V.value.contains(P.target) && ce(), X.value && !X.value.contains(P.target) && me(), (M = se.value) != null && M.$el && !se.value.$el.contains(P.target) && ((n = (x = se.value).handleCloseAll) == null || n.call(x));
|
|
1363
|
+
}, he = (P) => {
|
|
1364
|
+
P.key === "Escape" && (me(), ce());
|
|
1364
1365
|
};
|
|
1365
|
-
return
|
|
1366
|
-
document.addEventListener("click",
|
|
1367
|
-
}),
|
|
1368
|
-
document.removeEventListener("click",
|
|
1369
|
-
}), (
|
|
1370
|
-
var
|
|
1371
|
-
return a(),
|
|
1366
|
+
return Be(() => {
|
|
1367
|
+
document.addEventListener("click", L), document.addEventListener("fullscreenchange", _e), document.addEventListener("keydown", he), ee.value = document.documentElement.classList.contains("grey-mode");
|
|
1368
|
+
}), Ye(() => {
|
|
1369
|
+
document.removeEventListener("click", L), document.removeEventListener("fullscreenchange", _e), document.removeEventListener("keydown", he);
|
|
1370
|
+
}), (P, M) => {
|
|
1371
|
+
var x;
|
|
1372
|
+
return a(), u("div", so, [
|
|
1372
1373
|
e("div", oo, [
|
|
1373
1374
|
e("img", {
|
|
1374
1375
|
src: p.value,
|
|
1375
1376
|
alt: "Logo",
|
|
1376
1377
|
class: "top-menu__logo-img"
|
|
1377
1378
|
}, null, 8, ao),
|
|
1378
|
-
e("span", no,
|
|
1379
|
+
e("span", no, b(l(i).appName), 1)
|
|
1379
1380
|
]),
|
|
1380
|
-
|
|
1381
|
-
"model-value":
|
|
1381
|
+
f(l(tt), {
|
|
1382
|
+
"model-value": d.value,
|
|
1382
1383
|
mode: "horizontal",
|
|
1383
1384
|
"background-color": c.value,
|
|
1384
|
-
"text-color":
|
|
1385
|
-
"active-text-color":
|
|
1385
|
+
"text-color": _.value,
|
|
1386
|
+
"active-text-color": E.value,
|
|
1386
1387
|
class: "top-menu__menu",
|
|
1387
|
-
|
|
1388
|
+
ref_key: "menuRef",
|
|
1389
|
+
ref: se,
|
|
1390
|
+
onSelect: oe
|
|
1388
1391
|
}, {
|
|
1389
|
-
default:
|
|
1390
|
-
(a(!0),
|
|
1391
|
-
key:
|
|
1392
|
+
default: C(() => [
|
|
1393
|
+
(a(!0), u(j, null, Y(l(v).menuList, (n) => (a(), u(j, {
|
|
1394
|
+
key: n.menuUrl
|
|
1392
1395
|
}, [
|
|
1393
|
-
|
|
1396
|
+
n.children && n.children.length > 0 ? (a(), D(l(He), {
|
|
1394
1397
|
key: 0,
|
|
1395
|
-
index:
|
|
1398
|
+
index: n.menuUrl
|
|
1396
1399
|
}, {
|
|
1397
|
-
title:
|
|
1400
|
+
title: C(() => [
|
|
1398
1401
|
e("span", lo, [
|
|
1399
|
-
|
|
1400
|
-
Q(
|
|
1402
|
+
n.menuName !== "首页" ? (a(), u("span", ro, [
|
|
1403
|
+
Q(T(n.icon)) ? (a(), D(l(N), {
|
|
1401
1404
|
key: 0,
|
|
1402
|
-
name:
|
|
1405
|
+
name: T(n.icon),
|
|
1403
1406
|
size: 16
|
|
1404
|
-
}, null, 8, ["name"])) : (a(),
|
|
1405
|
-
])) :
|
|
1406
|
-
e("span", co,
|
|
1407
|
+
}, null, 8, ["name"])) : (a(), u("span", io, b(O(n.menuName)), 1))
|
|
1408
|
+
])) : B("", !0),
|
|
1409
|
+
e("span", co, b(n.menuName), 1)
|
|
1407
1410
|
])
|
|
1408
1411
|
]),
|
|
1409
|
-
default:
|
|
1410
|
-
(a(!0),
|
|
1411
|
-
key:
|
|
1412
|
+
default: C(() => [
|
|
1413
|
+
(a(!0), u(j, null, Y(n.children, (F) => (a(), u(j, {
|
|
1414
|
+
key: F.menuUrl
|
|
1412
1415
|
}, [
|
|
1413
|
-
|
|
1416
|
+
F.children && F.children.length > 0 ? (a(), D(l(He), {
|
|
1414
1417
|
key: 0,
|
|
1415
|
-
index:
|
|
1418
|
+
index: F.menuUrl
|
|
1416
1419
|
}, {
|
|
1417
|
-
title:
|
|
1420
|
+
title: C(() => [
|
|
1418
1421
|
e("span", uo, [
|
|
1419
1422
|
e("span", mo, [
|
|
1420
|
-
Q(
|
|
1423
|
+
Q(T(F.icon)) ? (a(), D(l(N), {
|
|
1421
1424
|
key: 0,
|
|
1422
|
-
name:
|
|
1425
|
+
name: T(F.icon),
|
|
1423
1426
|
size: 16
|
|
1424
|
-
}, null, 8, ["name"])) : (a(),
|
|
1427
|
+
}, null, 8, ["name"])) : (a(), u("span", po, b(O(F.menuName)), 1))
|
|
1425
1428
|
]),
|
|
1426
|
-
e("span", vo,
|
|
1429
|
+
e("span", vo, b(F.menuName), 1)
|
|
1427
1430
|
])
|
|
1428
1431
|
]),
|
|
1429
|
-
default:
|
|
1430
|
-
(a(!0),
|
|
1431
|
-
key:
|
|
1432
|
-
index:
|
|
1432
|
+
default: C(() => [
|
|
1433
|
+
(a(!0), u(j, null, Y(F.children, ($) => (a(), D(l(Ue), {
|
|
1434
|
+
key: $.menuUrl,
|
|
1435
|
+
index: $.menuUrl
|
|
1433
1436
|
}, {
|
|
1434
|
-
default:
|
|
1437
|
+
default: C(() => [
|
|
1435
1438
|
e("span", ho, [
|
|
1436
|
-
e("span",
|
|
1437
|
-
Q(
|
|
1439
|
+
e("span", fo, [
|
|
1440
|
+
Q(T($.icon)) ? (a(), D(l(N), {
|
|
1438
1441
|
key: 0,
|
|
1439
|
-
name:
|
|
1442
|
+
name: T($.icon),
|
|
1440
1443
|
size: 16
|
|
1441
|
-
}, null, 8, ["name"])) : (a(),
|
|
1444
|
+
}, null, 8, ["name"])) : (a(), u("span", _o, b(O($.menuName)), 1))
|
|
1442
1445
|
]),
|
|
1443
|
-
e("span", go,
|
|
1446
|
+
e("span", go, b($.menuName), 1)
|
|
1444
1447
|
])
|
|
1445
1448
|
]),
|
|
1446
1449
|
_: 2
|
|
1447
1450
|
}, 1032, ["index"]))), 128))
|
|
1448
1451
|
]),
|
|
1449
1452
|
_: 2
|
|
1450
|
-
}, 1032, ["index"])) : (a(),
|
|
1453
|
+
}, 1032, ["index"])) : (a(), D(l(Ue), {
|
|
1451
1454
|
key: 1,
|
|
1452
|
-
index:
|
|
1455
|
+
index: F.menuUrl
|
|
1453
1456
|
}, {
|
|
1454
|
-
default:
|
|
1457
|
+
default: C(() => [
|
|
1455
1458
|
e("span", yo, [
|
|
1456
|
-
e("span",
|
|
1457
|
-
Q(
|
|
1459
|
+
e("span", ko, [
|
|
1460
|
+
Q(T(F.icon)) ? (a(), D(l(N), {
|
|
1458
1461
|
key: 0,
|
|
1459
|
-
name:
|
|
1462
|
+
name: T(F.icon),
|
|
1460
1463
|
size: 16
|
|
1461
|
-
}, null, 8, ["name"])) : (a(),
|
|
1464
|
+
}, null, 8, ["name"])) : (a(), u("span", wo, b(O(F.menuName)), 1))
|
|
1462
1465
|
]),
|
|
1463
|
-
e("span",
|
|
1466
|
+
e("span", bo, b(F.menuName), 1)
|
|
1464
1467
|
])
|
|
1465
1468
|
]),
|
|
1466
1469
|
_: 2
|
|
@@ -1468,20 +1471,20 @@ const ge = Pe("menu", () => {
|
|
|
1468
1471
|
], 64))), 128))
|
|
1469
1472
|
]),
|
|
1470
1473
|
_: 2
|
|
1471
|
-
}, 1032, ["index"])) : (a(),
|
|
1474
|
+
}, 1032, ["index"])) : (a(), D(l(Ue), {
|
|
1472
1475
|
key: 1,
|
|
1473
|
-
index:
|
|
1476
|
+
index: n.menuUrl
|
|
1474
1477
|
}, {
|
|
1475
|
-
default:
|
|
1478
|
+
default: C(() => [
|
|
1476
1479
|
e("span", xo, [
|
|
1477
|
-
|
|
1478
|
-
Q(
|
|
1480
|
+
n.menuName !== "首页" ? (a(), u("span", Co, [
|
|
1481
|
+
Q(T(n.icon)) ? (a(), D(l(N), {
|
|
1479
1482
|
key: 0,
|
|
1480
|
-
name:
|
|
1483
|
+
name: T(n.icon),
|
|
1481
1484
|
size: 16
|
|
1482
|
-
}, null, 8, ["name"])) : (a(),
|
|
1483
|
-
])) :
|
|
1484
|
-
e("span",
|
|
1485
|
+
}, null, 8, ["name"])) : (a(), u("span", $o, b(O(n.menuName)), 1))
|
|
1486
|
+
])) : B("", !0),
|
|
1487
|
+
e("span", Mo, b(n.menuName), 1)
|
|
1485
1488
|
])
|
|
1486
1489
|
]),
|
|
1487
1490
|
_: 2
|
|
@@ -1490,47 +1493,47 @@ const ge = Pe("menu", () => {
|
|
|
1490
1493
|
]),
|
|
1491
1494
|
_: 1
|
|
1492
1495
|
}, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
|
|
1493
|
-
e("div",
|
|
1496
|
+
e("div", Lo, [
|
|
1494
1497
|
e("div", {
|
|
1495
1498
|
class: "top-menu__search",
|
|
1496
1499
|
ref_key: "searchRef",
|
|
1497
1500
|
ref: X
|
|
1498
1501
|
}, [
|
|
1499
|
-
|
|
1502
|
+
f(l(N), {
|
|
1500
1503
|
name: "search",
|
|
1501
1504
|
size: 14,
|
|
1502
1505
|
class: "top-menu__search-icon"
|
|
1503
1506
|
}),
|
|
1504
|
-
|
|
1505
|
-
"onUpdate:modelValue":
|
|
1507
|
+
Ae(e("input", {
|
|
1508
|
+
"onUpdate:modelValue": M[0] || (M[0] = (n) => te.value = n),
|
|
1506
1509
|
type: "text",
|
|
1507
1510
|
class: "top-menu__search-input",
|
|
1508
1511
|
placeholder: "搜索菜单...",
|
|
1509
|
-
onFocus:
|
|
1512
|
+
onFocus: M[1] || (M[1] = (n) => J.value = !0)
|
|
1510
1513
|
}, null, 544), [
|
|
1511
|
-
[
|
|
1514
|
+
[Xe, te.value]
|
|
1512
1515
|
]),
|
|
1513
|
-
|
|
1514
|
-
default:
|
|
1515
|
-
J.value && (
|
|
1516
|
-
|
|
1517
|
-
(a(!0),
|
|
1518
|
-
key:
|
|
1516
|
+
f(Ie, { name: "search-dropdown" }, {
|
|
1517
|
+
default: C(() => [
|
|
1518
|
+
J.value && (y.value.length > 0 || te.value) ? (a(), u("div", So, [
|
|
1519
|
+
y.value.length > 0 ? (a(), u("div", Io, [
|
|
1520
|
+
(a(!0), u(j, null, Y(y.value, (n) => (a(), u("div", {
|
|
1521
|
+
key: n.path,
|
|
1519
1522
|
class: "top-menu__search-item",
|
|
1520
|
-
onClick: (
|
|
1523
|
+
onClick: (F) => ye(n.path)
|
|
1521
1524
|
}, [
|
|
1522
|
-
|
|
1523
|
-
Q(
|
|
1525
|
+
n.title !== "首页" ? (a(), u("span", No, [
|
|
1526
|
+
Q(T(n.icon)) ? (a(), D(l(N), {
|
|
1524
1527
|
key: 0,
|
|
1525
|
-
name:
|
|
1528
|
+
name: T(n.icon),
|
|
1526
1529
|
size: 16
|
|
1527
|
-
}, null, 8, ["name"])) : (a(),
|
|
1528
|
-
])) :
|
|
1529
|
-
e("span", Uo,
|
|
1530
|
-
|
|
1530
|
+
}, null, 8, ["name"])) : (a(), u("span", To, b(O(n.title)), 1))
|
|
1531
|
+
])) : B("", !0),
|
|
1532
|
+
e("span", Uo, b(n.title), 1),
|
|
1533
|
+
n.parentTitle ? (a(), u("span", Po, b(n.parentTitle), 1)) : B("", !0)
|
|
1531
1534
|
], 8, Eo))), 128))
|
|
1532
|
-
])) : (a(),
|
|
1533
|
-
])) :
|
|
1535
|
+
])) : (a(), u("div", zo, " 未找到匹配的菜单 "))
|
|
1536
|
+
])) : B("", !0)
|
|
1534
1537
|
]),
|
|
1535
1538
|
_: 1
|
|
1536
1539
|
})
|
|
@@ -1538,10 +1541,10 @@ const ge = Pe("menu", () => {
|
|
|
1538
1541
|
e("div", {
|
|
1539
1542
|
class: "top-menu__action",
|
|
1540
1543
|
onClick: le,
|
|
1541
|
-
title:
|
|
1544
|
+
title: K.value ? "退出全屏" : "全屏"
|
|
1542
1545
|
}, [
|
|
1543
|
-
|
|
1544
|
-
name:
|
|
1546
|
+
f(l(N), {
|
|
1547
|
+
name: K.value ? "fullscreen-exit" : "fullscreen",
|
|
1545
1548
|
size: 16
|
|
1546
1549
|
}, null, 8, ["name"])
|
|
1547
1550
|
], 8, Fo),
|
|
@@ -1550,7 +1553,7 @@ const ge = Pe("menu", () => {
|
|
|
1550
1553
|
onClick: de,
|
|
1551
1554
|
title: "换肤设置"
|
|
1552
1555
|
}, [
|
|
1553
|
-
|
|
1556
|
+
f(l(N), {
|
|
1554
1557
|
name: "skin",
|
|
1555
1558
|
size: 16
|
|
1556
1559
|
})
|
|
@@ -1560,27 +1563,27 @@ const ge = Pe("menu", () => {
|
|
|
1560
1563
|
onClick: q,
|
|
1561
1564
|
title: "切换主题"
|
|
1562
1565
|
}, [
|
|
1563
|
-
|
|
1564
|
-
name:
|
|
1566
|
+
f(l(N), {
|
|
1567
|
+
name: l(i).isDark ? "sun" : "moon",
|
|
1565
1568
|
size: 16
|
|
1566
1569
|
}, null, 8, ["name"])
|
|
1567
1570
|
]),
|
|
1568
1571
|
e("div", {
|
|
1569
1572
|
class: "top-menu__user",
|
|
1570
1573
|
ref_key: "dropdownRef",
|
|
1571
|
-
ref:
|
|
1574
|
+
ref: V
|
|
1572
1575
|
}, [
|
|
1573
1576
|
e("div", {
|
|
1574
1577
|
class: "top-menu__user-trigger",
|
|
1575
|
-
onClick:
|
|
1578
|
+
onClick: Oe(xe, ["stop"])
|
|
1576
1579
|
}, [
|
|
1577
1580
|
e("div", Do, [
|
|
1578
|
-
e("span", null,
|
|
1581
|
+
e("span", null, b(((x = l(h).userName) == null ? void 0 : x.charAt(0)) || "U"), 1)
|
|
1579
1582
|
]),
|
|
1580
|
-
e("span", Ao,
|
|
1583
|
+
e("span", Ao, b(l(h).userName), 1),
|
|
1581
1584
|
e("span", {
|
|
1582
|
-
class:
|
|
1583
|
-
}, [
|
|
1585
|
+
class: G(["top-menu__user-arrow", { "is-active": A.value }])
|
|
1586
|
+
}, [...M[3] || (M[3] = [
|
|
1584
1587
|
e("svg", {
|
|
1585
1588
|
viewBox: "0 0 12 12",
|
|
1586
1589
|
width: "10",
|
|
@@ -1595,89 +1598,89 @@ const ge = Pe("menu", () => {
|
|
|
1595
1598
|
], -1)
|
|
1596
1599
|
])], 2)
|
|
1597
1600
|
]),
|
|
1598
|
-
|
|
1599
|
-
default:
|
|
1600
|
-
var
|
|
1601
|
+
f(Ie, { name: "dropdown" }, {
|
|
1602
|
+
default: C(() => {
|
|
1603
|
+
var n;
|
|
1601
1604
|
return [
|
|
1602
|
-
|
|
1605
|
+
A.value ? (a(), u("div", Bo, [
|
|
1603
1606
|
e("div", Oo, [
|
|
1604
|
-
e("div", Vo, [
|
|
1605
|
-
e("span", null, C(((i = n(v).userName) == null ? void 0 : i.charAt(0)) || "U"), 1)
|
|
1606
|
-
]),
|
|
1607
1607
|
e("div", Ro, [
|
|
1608
|
-
e("
|
|
1609
|
-
|
|
1608
|
+
e("span", null, b(((n = l(h).userName) == null ? void 0 : n.charAt(0)) || "U"), 1)
|
|
1609
|
+
]),
|
|
1610
|
+
e("div", Vo, [
|
|
1611
|
+
e("div", Ko, b(l(h).userName), 1),
|
|
1612
|
+
e("div", jo, b(l(h).departmentName), 1)
|
|
1610
1613
|
])
|
|
1611
1614
|
]),
|
|
1612
|
-
|
|
1615
|
+
M[8] || (M[8] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
|
|
1613
1616
|
e("div", Wo, [
|
|
1614
1617
|
e("div", {
|
|
1615
1618
|
class: "top-menu__dropdown-item",
|
|
1616
1619
|
onClick: $e
|
|
1617
1620
|
}, [
|
|
1618
|
-
|
|
1621
|
+
f(l(N), {
|
|
1619
1622
|
name: "user",
|
|
1620
1623
|
size: 16
|
|
1621
1624
|
}),
|
|
1622
|
-
|
|
1625
|
+
M[4] || (M[4] = e("span", null, "个人信息", -1))
|
|
1623
1626
|
]),
|
|
1624
1627
|
e("div", {
|
|
1625
1628
|
class: "top-menu__dropdown-item",
|
|
1626
|
-
onClick:
|
|
1629
|
+
onClick: U
|
|
1627
1630
|
}, [
|
|
1628
|
-
|
|
1631
|
+
f(l(N), {
|
|
1629
1632
|
name: "lock",
|
|
1630
1633
|
size: 16
|
|
1631
1634
|
}),
|
|
1632
|
-
|
|
1635
|
+
M[5] || (M[5] = e("span", null, "修改密码", -1))
|
|
1633
1636
|
]),
|
|
1634
|
-
|
|
1637
|
+
M[7] || (M[7] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
|
|
1635
1638
|
e("div", {
|
|
1636
1639
|
class: "top-menu__dropdown-item top-menu__dropdown-item--danger",
|
|
1637
1640
|
onClick: w
|
|
1638
1641
|
}, [
|
|
1639
|
-
|
|
1642
|
+
f(l(N), {
|
|
1640
1643
|
name: "logout",
|
|
1641
1644
|
size: 16
|
|
1642
1645
|
}),
|
|
1643
|
-
|
|
1646
|
+
M[6] || (M[6] = e("span", null, "退出登录", -1))
|
|
1644
1647
|
])
|
|
1645
1648
|
])
|
|
1646
|
-
])) :
|
|
1649
|
+
])) : B("", !0)
|
|
1647
1650
|
];
|
|
1648
1651
|
}),
|
|
1649
1652
|
_: 1
|
|
1650
1653
|
})
|
|
1651
1654
|
], 512)
|
|
1652
1655
|
]),
|
|
1653
|
-
|
|
1656
|
+
f(l(st), {
|
|
1654
1657
|
modelValue: W.value,
|
|
1655
|
-
"onUpdate:modelValue":
|
|
1658
|
+
"onUpdate:modelValue": M[2] || (M[2] = (n) => W.value = n),
|
|
1656
1659
|
title: "换肤设置",
|
|
1657
1660
|
direction: "rtl",
|
|
1658
1661
|
size: "320px"
|
|
1659
1662
|
}, {
|
|
1660
|
-
default:
|
|
1663
|
+
default: C(() => [
|
|
1661
1664
|
e("div", qo, [
|
|
1662
|
-
e("div",
|
|
1663
|
-
|
|
1664
|
-
e("div",
|
|
1665
|
-
(a(),
|
|
1666
|
-
key:
|
|
1667
|
-
class:
|
|
1668
|
-
onClick: (
|
|
1665
|
+
e("div", Go, [
|
|
1666
|
+
M[12] || (M[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
|
|
1667
|
+
e("div", Ho, [
|
|
1668
|
+
(a(), u(j, null, Y(pe, (n) => e("div", {
|
|
1669
|
+
key: n.value,
|
|
1670
|
+
class: G(["layout-option", { "is-active": ve.value === n.value }]),
|
|
1671
|
+
onClick: (F) => ie(n.value)
|
|
1669
1672
|
}, [
|
|
1670
1673
|
e("div", Xo, [
|
|
1671
|
-
|
|
1674
|
+
n.value === "sidebar" ? (a(), u("div", Zo, [...M[9] || (M[9] = [
|
|
1672
1675
|
e("div", { class: "preview-aside" }, null, -1),
|
|
1673
1676
|
e("div", { class: "preview-main" }, [
|
|
1674
1677
|
e("div", { class: "preview-header" }),
|
|
1675
1678
|
e("div", { class: "preview-content" })
|
|
1676
1679
|
], -1)
|
|
1677
|
-
])])) :
|
|
1680
|
+
])])) : n.value === "top" ? (a(), u("div", Jo, [...M[10] || (M[10] = [
|
|
1678
1681
|
e("div", { class: "preview-header-full" }, null, -1),
|
|
1679
1682
|
e("div", { class: "preview-content-full" }, null, -1)
|
|
1680
|
-
])])) : (a(),
|
|
1683
|
+
])])) : (a(), u("div", Qo, [...M[11] || (M[11] = [
|
|
1681
1684
|
e("div", { class: "preview-header-mix" }, [
|
|
1682
1685
|
e("div", { class: "preview-mix-left" })
|
|
1683
1686
|
], -1),
|
|
@@ -1687,47 +1690,47 @@ const ge = Pe("menu", () => {
|
|
|
1687
1690
|
], -1)
|
|
1688
1691
|
])]))
|
|
1689
1692
|
]),
|
|
1690
|
-
e("span", ea,
|
|
1691
|
-
], 10,
|
|
1693
|
+
e("span", ea, b(n.label), 1)
|
|
1694
|
+
], 10, Yo)), 64))
|
|
1692
1695
|
])
|
|
1693
1696
|
]),
|
|
1694
1697
|
e("div", ta, [
|
|
1695
|
-
|
|
1698
|
+
M[13] || (M[13] = e("div", { class: "settings-title" }, "主题色", -1)),
|
|
1696
1699
|
e("div", sa, [
|
|
1697
|
-
(a(),
|
|
1698
|
-
key:
|
|
1699
|
-
class:
|
|
1700
|
-
style: Ee({ backgroundColor:
|
|
1701
|
-
title:
|
|
1702
|
-
onClick: (
|
|
1700
|
+
(a(), u(j, null, Y(Ce, (n) => e("div", {
|
|
1701
|
+
key: n.value,
|
|
1702
|
+
class: G(["color-option", { "is-active": l(i).primaryColor === n.value }]),
|
|
1703
|
+
style: Ee({ backgroundColor: n.value }),
|
|
1704
|
+
title: n.label,
|
|
1705
|
+
onClick: (F) => ke(n.value)
|
|
1703
1706
|
}, [
|
|
1704
|
-
|
|
1707
|
+
l(i).primaryColor === n.value ? (a(), D(l(N), {
|
|
1705
1708
|
key: 0,
|
|
1706
1709
|
name: "check",
|
|
1707
1710
|
size: 12,
|
|
1708
1711
|
color: "#fff"
|
|
1709
|
-
})) :
|
|
1712
|
+
})) : B("", !0)
|
|
1710
1713
|
], 14, oa)), 64))
|
|
1711
1714
|
])
|
|
1712
1715
|
]),
|
|
1713
1716
|
e("div", aa, [
|
|
1714
|
-
|
|
1717
|
+
M[18] || (M[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
|
|
1715
1718
|
e("div", na, [
|
|
1716
1719
|
e("div", la, [
|
|
1717
|
-
|
|
1720
|
+
M[15] || (M[15] = e("span", null, "灰色模式", -1)),
|
|
1718
1721
|
e("div", {
|
|
1719
|
-
class:
|
|
1720
|
-
onClick:
|
|
1721
|
-
}, [
|
|
1722
|
+
class: G(["switch-wrapper", { "is-checked": ee.value }]),
|
|
1723
|
+
onClick: I
|
|
1724
|
+
}, [...M[14] || (M[14] = [
|
|
1722
1725
|
e("span", { class: "switch-core" }, null, -1)
|
|
1723
1726
|
])], 2)
|
|
1724
1727
|
]),
|
|
1725
1728
|
e("div", ra, [
|
|
1726
|
-
|
|
1729
|
+
M[17] || (M[17] = e("span", null, "暗黑模式", -1)),
|
|
1727
1730
|
e("div", {
|
|
1728
|
-
class:
|
|
1729
|
-
onClick:
|
|
1730
|
-
}, [
|
|
1731
|
+
class: G(["switch-wrapper", { "is-checked": l(i).isDark }]),
|
|
1732
|
+
onClick: H
|
|
1733
|
+
}, [...M[16] || (M[16] = [
|
|
1731
1734
|
e("span", { class: "switch-core" }, null, -1)
|
|
1732
1735
|
])], 2)
|
|
1733
1736
|
])
|
|
@@ -1740,19 +1743,19 @@ const ge = Pe("menu", () => {
|
|
|
1740
1743
|
]);
|
|
1741
1744
|
};
|
|
1742
1745
|
}
|
|
1743
|
-
}), ca = /* @__PURE__ */ ne(ia, [["__scopeId", "data-v-
|
|
1746
|
+
}), ca = /* @__PURE__ */ ne(ia, [["__scopeId", "data-v-c06500ff"]]), 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
1747
|
key: 0,
|
|
1745
1748
|
class: "mix-top-menu__menu-icon"
|
|
1746
|
-
},
|
|
1749
|
+
}, fa = {
|
|
1747
1750
|
key: 1,
|
|
1748
1751
|
class: "mix-top-menu__menu-char"
|
|
1749
|
-
},
|
|
1752
|
+
}, _a = { class: "mix-top-menu__menu-text" }, ga = { class: "mix-top-menu__actions" }, ya = {
|
|
1750
1753
|
key: 0,
|
|
1751
1754
|
class: "mix-top-menu__search-dropdown"
|
|
1752
|
-
},
|
|
1755
|
+
}, ka = {
|
|
1753
1756
|
key: 0,
|
|
1754
1757
|
class: "mix-top-menu__search-results"
|
|
1755
|
-
},
|
|
1758
|
+
}, wa = ["onClick"], ba = {
|
|
1756
1759
|
key: 0,
|
|
1757
1760
|
class: "mix-top-menu__search-icon-item"
|
|
1758
1761
|
}, xa = {
|
|
@@ -1761,13 +1764,13 @@ const ge = Pe("menu", () => {
|
|
|
1761
1764
|
}, Ca = { class: "mix-top-menu__search-item-title" }, $a = {
|
|
1762
1765
|
key: 1,
|
|
1763
1766
|
class: "mix-top-menu__search-item-parent"
|
|
1764
|
-
},
|
|
1767
|
+
}, Ma = {
|
|
1765
1768
|
key: 1,
|
|
1766
1769
|
class: "mix-top-menu__search-empty"
|
|
1767
|
-
},
|
|
1770
|
+
}, La = ["title"], Sa = { class: "mix-top-menu__avatar" }, Ia = { class: "mix-top-menu__user-name" }, Ea = {
|
|
1768
1771
|
key: 0,
|
|
1769
1772
|
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" },
|
|
1773
|
+
}, 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"], Ra = { class: "layout-option__preview" }, Va = {
|
|
1771
1774
|
key: 0,
|
|
1772
1775
|
class: "layout-preview-sidebar"
|
|
1773
1776
|
}, Ka = {
|
|
@@ -1776,38 +1779,38 @@ const ge = Pe("menu", () => {
|
|
|
1776
1779
|
}, ja = {
|
|
1777
1780
|
key: 2,
|
|
1778
1781
|
class: "layout-preview-mix"
|
|
1779
|
-
}, Wa = { class: "layout-option__label" }, qa = { class: "settings-section" },
|
|
1782
|
+
}, 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
1783
|
__name: "MixTopMenu",
|
|
1781
1784
|
props: {
|
|
1782
1785
|
logoSrc: {}
|
|
1783
1786
|
},
|
|
1784
1787
|
setup(t) {
|
|
1785
|
-
const o = t, p = k(() => o.logoSrc ||
|
|
1786
|
-
const
|
|
1787
|
-
return
|
|
1788
|
-
|
|
1789
|
-
}),
|
|
1790
|
-
},
|
|
1791
|
-
(
|
|
1788
|
+
const o = t, p = k(() => o.logoSrc || Pe("/vite.svg")), r = Te(), s = be(), v = ge(), i = fe(), h = ue(), m = Fe(), d = g(""), S = (x, n = "") => {
|
|
1789
|
+
const F = [];
|
|
1790
|
+
return x.forEach(($) => {
|
|
1791
|
+
$.children && $.children.length > 0 ? F.push(...S($.children, $.menuName)) : F.push({ ...$, parentTitle: n, title: $.menuName, path: $.menuUrl });
|
|
1792
|
+
}), F;
|
|
1793
|
+
}, y = k(() => T.value.trim() ? S(v.menuList).filter(
|
|
1794
|
+
(n) => n.title.toLowerCase().includes(T.value.toLowerCase())
|
|
1792
1795
|
) : []), c = k(() => {
|
|
1793
|
-
const
|
|
1794
|
-
return (
|
|
1795
|
-
}),
|
|
1796
|
-
|
|
1797
|
-
},
|
|
1798
|
-
|
|
1799
|
-
const
|
|
1800
|
-
if (
|
|
1801
|
-
if (
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1796
|
+
const x = v.menuList.find((n) => n.menuUrl === d.value);
|
|
1797
|
+
return (x == null ? void 0 : x.children) || [];
|
|
1798
|
+
}), _ = k(() => v.menuList.find((x) => !!(r.path === x.menuUrl || x.children && x.children.some((n) => r.path.startsWith(n.menuUrl) || r.path === n.menuUrl)))), E = () => {
|
|
1799
|
+
_.value ? d.value = _.value.menuUrl : v.menuList.length > 0 && (d.value = v.menuList[0].menuUrl);
|
|
1800
|
+
}, A = (x) => {
|
|
1801
|
+
d.value = x;
|
|
1802
|
+
const n = v.menuList.find((F) => F.menuUrl === x);
|
|
1803
|
+
if (n)
|
|
1804
|
+
if (n.children && n.children.length > 0) {
|
|
1805
|
+
const F = n.children[0].menuUrl;
|
|
1806
|
+
r.path !== F && s.push(F);
|
|
1804
1807
|
} else
|
|
1805
|
-
|
|
1806
|
-
},
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
}),
|
|
1810
|
-
|
|
1808
|
+
r.path !== x && s.push(x);
|
|
1809
|
+
}, V = k(() => i.isDark ? "#1d1e1f" : "#fff"), K = k(() => i.isDark ? "#cfd3dc" : "#303133"), W = k(() => "#409eff"), ee = g(!1), J = g(null), te = g(!1), X = g(!1), oe = g(!1), R = g(!1), T = g(""), O = g(null);
|
|
1810
|
+
Me(() => r.path, () => {
|
|
1811
|
+
E(), i.setMixSubMenus(c.value);
|
|
1812
|
+
}), Me(() => v.menuList, (x) => {
|
|
1813
|
+
x && x.length > 0 && (E(), i.setMixSubMenus(c.value));
|
|
1811
1814
|
}, { immediate: !0 });
|
|
1812
1815
|
const Q = /* @__PURE__ */ new Set([
|
|
1813
1816
|
"arrow-up",
|
|
@@ -1911,10 +1914,10 @@ const ge = Pe("menu", () => {
|
|
|
1911
1914
|
"sun",
|
|
1912
1915
|
"theme",
|
|
1913
1916
|
"skin"
|
|
1914
|
-
]), q = (
|
|
1915
|
-
if (!
|
|
1916
|
-
if (
|
|
1917
|
-
const
|
|
1917
|
+
]), q = (x) => {
|
|
1918
|
+
if (!x || x === "") return "";
|
|
1919
|
+
if (x.startsWith("tineco-icon-")) {
|
|
1920
|
+
const F = x.replace("tineco-icon-", "");
|
|
1918
1921
|
return {
|
|
1919
1922
|
home: "home",
|
|
1920
1923
|
dashboard: "dashboard",
|
|
@@ -1928,7 +1931,7 @@ const ge = Pe("menu", () => {
|
|
|
1928
1931
|
chart: "chart",
|
|
1929
1932
|
report: "report",
|
|
1930
1933
|
analytics: "analytics"
|
|
1931
|
-
}[
|
|
1934
|
+
}[F] || F;
|
|
1932
1935
|
}
|
|
1933
1936
|
return {
|
|
1934
1937
|
dashboard: "dashboard",
|
|
@@ -1947,95 +1950,95 @@ const ge = Pe("menu", () => {
|
|
|
1947
1950
|
app: "app",
|
|
1948
1951
|
list: "list",
|
|
1949
1952
|
grid: "grid"
|
|
1950
|
-
}[
|
|
1951
|
-
}, le = (
|
|
1952
|
-
|
|
1953
|
-
},
|
|
1953
|
+
}[x] || x;
|
|
1954
|
+
}, le = (x) => x ? x.charAt(0) : "", _e = (x) => Q.has(x), xe = () => {
|
|
1955
|
+
i.toggleTheme(), X.value = !1;
|
|
1956
|
+
}, ce = () => {
|
|
1954
1957
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
1955
|
-
},
|
|
1956
|
-
|
|
1958
|
+
}, me = () => {
|
|
1959
|
+
te.value = !!document.fullscreenElement;
|
|
1957
1960
|
}, ye = () => {
|
|
1958
|
-
|
|
1961
|
+
ee.value = !ee.value;
|
|
1959
1962
|
}, de = () => {
|
|
1960
|
-
|
|
1963
|
+
ee.value = !1;
|
|
1961
1964
|
}, re = () => {
|
|
1962
|
-
|
|
1963
|
-
},
|
|
1964
|
-
s.push(
|
|
1965
|
-
},
|
|
1965
|
+
R.value = !1, T.value = "";
|
|
1966
|
+
}, I = (x) => {
|
|
1967
|
+
s.push(x), re();
|
|
1968
|
+
}, H = () => {
|
|
1966
1969
|
X.value = !0;
|
|
1967
|
-
},
|
|
1968
|
-
|
|
1969
|
-
const
|
|
1970
|
-
|
|
1971
|
-
},
|
|
1972
|
-
|
|
1970
|
+
}, pe = (x) => {
|
|
1971
|
+
oe.value = x;
|
|
1972
|
+
const n = document.documentElement;
|
|
1973
|
+
x ? n.classList.add("grey-mode") : n.classList.remove("grey-mode");
|
|
1974
|
+
}, ve = () => {
|
|
1975
|
+
pe(!oe.value), X.value = !1;
|
|
1973
1976
|
}, ie = () => {
|
|
1974
|
-
|
|
1977
|
+
i.toggleTheme(), X.value = !1;
|
|
1975
1978
|
}, Ce = [
|
|
1976
1979
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
1977
1980
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
1978
1981
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
1979
|
-
],
|
|
1980
|
-
|
|
1981
|
-
},
|
|
1982
|
+
], ke = k(() => i.layout), $e = (x) => {
|
|
1983
|
+
i.setLayout(x), X.value = !1;
|
|
1984
|
+
}, U = [
|
|
1982
1985
|
{ value: "#409eff", label: "默认蓝" },
|
|
1983
1986
|
{ value: "#0F6FDE", label: "企业蓝" },
|
|
1984
1987
|
{ value: "#00A870", label: "翡翠绿" },
|
|
1985
1988
|
{ value: "#D46B08", label: "琥珀橙" },
|
|
1986
1989
|
{ value: "#1F2329", label: "石墨黑" }
|
|
1987
|
-
], w = (
|
|
1988
|
-
|
|
1990
|
+
], w = (x) => {
|
|
1991
|
+
i.setPrimaryColor(x), X.value = !1;
|
|
1989
1992
|
}, se = () => {
|
|
1990
1993
|
de(), s.push("/profile");
|
|
1991
1994
|
}, L = () => {
|
|
1992
1995
|
de(), s.push("/change-password");
|
|
1993
|
-
},
|
|
1994
|
-
de(),
|
|
1995
|
-
},
|
|
1996
|
-
J.value && !J.value.contains(
|
|
1997
|
-
},
|
|
1998
|
-
|
|
1996
|
+
}, he = () => {
|
|
1997
|
+
de(), m.logout(), h.clearUserInfo(), v.clearMenu(), s.push(i.loginPath);
|
|
1998
|
+
}, P = (x) => {
|
|
1999
|
+
J.value && !J.value.contains(x.target) && de(), O.value && !O.value.contains(x.target) && re();
|
|
2000
|
+
}, M = (x) => {
|
|
2001
|
+
x.key === "Escape" && (re(), de());
|
|
1999
2002
|
};
|
|
2000
|
-
return
|
|
2001
|
-
document.addEventListener("click",
|
|
2002
|
-
}),
|
|
2003
|
-
document.removeEventListener("click",
|
|
2004
|
-
}), (
|
|
2005
|
-
var
|
|
2006
|
-
return a(),
|
|
2007
|
-
e("div",
|
|
2003
|
+
return Be(() => {
|
|
2004
|
+
document.addEventListener("click", P), document.addEventListener("fullscreenchange", me), document.addEventListener("keydown", M), oe.value = document.documentElement.classList.contains("grey-mode"), E();
|
|
2005
|
+
}), Ye(() => {
|
|
2006
|
+
document.removeEventListener("click", P), document.removeEventListener("fullscreenchange", me), document.removeEventListener("keydown", M);
|
|
2007
|
+
}), (x, n) => {
|
|
2008
|
+
var F;
|
|
2009
|
+
return a(), u("div", da, [
|
|
2010
|
+
e("div", ua, [
|
|
2008
2011
|
e("img", {
|
|
2009
2012
|
src: p.value,
|
|
2010
2013
|
alt: "Logo",
|
|
2011
2014
|
class: "mix-top-menu__logo-img"
|
|
2012
2015
|
}, null, 8, ma),
|
|
2013
|
-
e("span", pa,
|
|
2016
|
+
e("span", pa, b(l(i).appName), 1)
|
|
2014
2017
|
]),
|
|
2015
|
-
|
|
2016
|
-
"model-value":
|
|
2018
|
+
f(l(tt), {
|
|
2019
|
+
"model-value": d.value,
|
|
2017
2020
|
mode: "horizontal",
|
|
2018
|
-
"background-color":
|
|
2019
|
-
"text-color":
|
|
2021
|
+
"background-color": V.value,
|
|
2022
|
+
"text-color": K.value,
|
|
2020
2023
|
"active-text-color": W.value,
|
|
2021
2024
|
class: "mix-top-menu__menu",
|
|
2022
|
-
onSelect:
|
|
2025
|
+
onSelect: A
|
|
2023
2026
|
}, {
|
|
2024
|
-
default:
|
|
2025
|
-
(a(!0),
|
|
2026
|
-
key:
|
|
2027
|
-
index:
|
|
2027
|
+
default: C(() => [
|
|
2028
|
+
(a(!0), u(j, null, Y(l(v).menuList, ($) => (a(), D(l(Ue), {
|
|
2029
|
+
key: $.menuUrl,
|
|
2030
|
+
index: $.menuUrl
|
|
2028
2031
|
}, {
|
|
2029
|
-
default:
|
|
2032
|
+
default: C(() => [
|
|
2030
2033
|
e("span", va, [
|
|
2031
|
-
|
|
2032
|
-
_e(q(
|
|
2034
|
+
$.menuName !== "首页" ? (a(), u("span", ha, [
|
|
2035
|
+
_e(q($.icon)) ? (a(), D(l(N), {
|
|
2033
2036
|
key: 0,
|
|
2034
|
-
name: q(
|
|
2037
|
+
name: q($.icon),
|
|
2035
2038
|
size: 16
|
|
2036
|
-
}, null, 8, ["name"])) : (a(),
|
|
2037
|
-
])) :
|
|
2038
|
-
e("span",
|
|
2039
|
+
}, null, 8, ["name"])) : (a(), u("span", fa, b(le($.menuName)), 1))
|
|
2040
|
+
])) : B("", !0),
|
|
2041
|
+
e("span", _a, b($.menuName), 1)
|
|
2039
2042
|
])
|
|
2040
2043
|
]),
|
|
2041
2044
|
_: 2
|
|
@@ -2047,63 +2050,63 @@ const ge = Pe("menu", () => {
|
|
|
2047
2050
|
e("div", {
|
|
2048
2051
|
class: "mix-top-menu__search",
|
|
2049
2052
|
ref_key: "searchRef",
|
|
2050
|
-
ref:
|
|
2053
|
+
ref: O
|
|
2051
2054
|
}, [
|
|
2052
|
-
|
|
2055
|
+
f(l(N), {
|
|
2053
2056
|
name: "search",
|
|
2054
2057
|
size: 14,
|
|
2055
2058
|
class: "mix-top-menu__search-icon"
|
|
2056
2059
|
}),
|
|
2057
|
-
|
|
2058
|
-
"onUpdate:modelValue":
|
|
2060
|
+
Ae(e("input", {
|
|
2061
|
+
"onUpdate:modelValue": n[0] || (n[0] = ($) => T.value = $),
|
|
2059
2062
|
type: "text",
|
|
2060
2063
|
class: "mix-top-menu__search-input",
|
|
2061
2064
|
placeholder: "搜索菜单...",
|
|
2062
|
-
onFocus:
|
|
2065
|
+
onFocus: n[1] || (n[1] = ($) => R.value = !0)
|
|
2063
2066
|
}, null, 544), [
|
|
2064
|
-
[
|
|
2067
|
+
[Xe, T.value]
|
|
2065
2068
|
]),
|
|
2066
|
-
|
|
2067
|
-
default:
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
(a(!0),
|
|
2071
|
-
key:
|
|
2069
|
+
f(Ie, { name: "search-dropdown" }, {
|
|
2070
|
+
default: C(() => [
|
|
2071
|
+
R.value && (y.value.length > 0 || T.value) ? (a(), u("div", ya, [
|
|
2072
|
+
y.value.length > 0 ? (a(), u("div", ka, [
|
|
2073
|
+
(a(!0), u(j, null, Y(y.value, ($) => (a(), u("div", {
|
|
2074
|
+
key: $.path,
|
|
2072
2075
|
class: "mix-top-menu__search-item",
|
|
2073
|
-
onClick: (at) =>
|
|
2076
|
+
onClick: (at) => I($.path)
|
|
2074
2077
|
}, [
|
|
2075
|
-
|
|
2076
|
-
_e(q(
|
|
2078
|
+
$.title !== "首页" ? (a(), u("span", ba, [
|
|
2079
|
+
_e(q($.icon)) ? (a(), D(l(N), {
|
|
2077
2080
|
key: 0,
|
|
2078
|
-
name: q(
|
|
2081
|
+
name: q($.icon),
|
|
2079
2082
|
size: 16
|
|
2080
|
-
}, null, 8, ["name"])) : (a(),
|
|
2081
|
-
])) :
|
|
2082
|
-
e("span", Ca,
|
|
2083
|
-
|
|
2084
|
-
], 8,
|
|
2085
|
-
])) : (a(),
|
|
2086
|
-
])) :
|
|
2083
|
+
}, null, 8, ["name"])) : (a(), u("span", xa, b(le($.title)), 1))
|
|
2084
|
+
])) : B("", !0),
|
|
2085
|
+
e("span", Ca, b($.title), 1),
|
|
2086
|
+
$.parentTitle ? (a(), u("span", $a, b($.parentTitle), 1)) : B("", !0)
|
|
2087
|
+
], 8, wa))), 128))
|
|
2088
|
+
])) : (a(), u("div", Ma, " 未找到匹配的菜单 "))
|
|
2089
|
+
])) : B("", !0)
|
|
2087
2090
|
]),
|
|
2088
2091
|
_: 1
|
|
2089
2092
|
})
|
|
2090
2093
|
], 512),
|
|
2091
2094
|
e("div", {
|
|
2092
2095
|
class: "mix-top-menu__action",
|
|
2093
|
-
onClick:
|
|
2094
|
-
title:
|
|
2096
|
+
onClick: ce,
|
|
2097
|
+
title: te.value ? "退出全屏" : "全屏"
|
|
2095
2098
|
}, [
|
|
2096
|
-
|
|
2097
|
-
name:
|
|
2099
|
+
f(l(N), {
|
|
2100
|
+
name: te.value ? "fullscreen-exit" : "fullscreen",
|
|
2098
2101
|
size: 16
|
|
2099
2102
|
}, null, 8, ["name"])
|
|
2100
|
-
], 8,
|
|
2103
|
+
], 8, La),
|
|
2101
2104
|
e("div", {
|
|
2102
2105
|
class: "mix-top-menu__action",
|
|
2103
|
-
onClick:
|
|
2106
|
+
onClick: H,
|
|
2104
2107
|
title: "换肤设置"
|
|
2105
2108
|
}, [
|
|
2106
|
-
|
|
2109
|
+
f(l(N), {
|
|
2107
2110
|
name: "skin",
|
|
2108
2111
|
size: 16
|
|
2109
2112
|
})
|
|
@@ -2113,8 +2116,8 @@ const ge = Pe("menu", () => {
|
|
|
2113
2116
|
onClick: xe,
|
|
2114
2117
|
title: "切换主题"
|
|
2115
2118
|
}, [
|
|
2116
|
-
|
|
2117
|
-
name:
|
|
2119
|
+
f(l(N), {
|
|
2120
|
+
name: l(i).isDark ? "sun" : "moon",
|
|
2118
2121
|
size: 16
|
|
2119
2122
|
}, null, 8, ["name"])
|
|
2120
2123
|
]),
|
|
@@ -2125,15 +2128,15 @@ const ge = Pe("menu", () => {
|
|
|
2125
2128
|
}, [
|
|
2126
2129
|
e("div", {
|
|
2127
2130
|
class: "mix-top-menu__user-trigger",
|
|
2128
|
-
onClick:
|
|
2131
|
+
onClick: Oe(ye, ["stop"])
|
|
2129
2132
|
}, [
|
|
2130
2133
|
e("div", Sa, [
|
|
2131
|
-
e("span", null,
|
|
2134
|
+
e("span", null, b(((F = l(h).userName) == null ? void 0 : F.charAt(0)) || "U"), 1)
|
|
2132
2135
|
]),
|
|
2133
|
-
e("span", Ia,
|
|
2136
|
+
e("span", Ia, b(l(h).userName), 1),
|
|
2134
2137
|
e("span", {
|
|
2135
|
-
class:
|
|
2136
|
-
}, [...
|
|
2138
|
+
class: G(["mix-top-menu__user-arrow", { "is-active": ee.value }])
|
|
2139
|
+
}, [...n[3] || (n[3] = [
|
|
2137
2140
|
e("svg", {
|
|
2138
2141
|
viewBox: "0 0 12 12",
|
|
2139
2142
|
width: "10",
|
|
@@ -2148,89 +2151,89 @@ const ge = Pe("menu", () => {
|
|
|
2148
2151
|
], -1)
|
|
2149
2152
|
])], 2)
|
|
2150
2153
|
]),
|
|
2151
|
-
|
|
2152
|
-
default:
|
|
2153
|
-
var
|
|
2154
|
+
f(Ie, { name: "dropdown" }, {
|
|
2155
|
+
default: C(() => {
|
|
2156
|
+
var $;
|
|
2154
2157
|
return [
|
|
2155
|
-
|
|
2158
|
+
ee.value ? (a(), u("div", Ea, [
|
|
2156
2159
|
e("div", Na, [
|
|
2157
2160
|
e("div", Ta, [
|
|
2158
|
-
e("span", null,
|
|
2161
|
+
e("span", null, b((($ = l(h).userName) == null ? void 0 : $.charAt(0)) || "U"), 1)
|
|
2159
2162
|
]),
|
|
2160
2163
|
e("div", Ua, [
|
|
2161
|
-
e("div",
|
|
2162
|
-
e("div",
|
|
2164
|
+
e("div", Pa, b(l(h).userName), 1),
|
|
2165
|
+
e("div", za, b(l(h).departmentName), 1)
|
|
2163
2166
|
])
|
|
2164
2167
|
]),
|
|
2165
|
-
|
|
2168
|
+
n[8] || (n[8] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
|
|
2166
2169
|
e("div", Fa, [
|
|
2167
2170
|
e("div", {
|
|
2168
2171
|
class: "mix-top-menu__dropdown-item",
|
|
2169
2172
|
onClick: se
|
|
2170
2173
|
}, [
|
|
2171
|
-
|
|
2174
|
+
f(l(N), {
|
|
2172
2175
|
name: "user",
|
|
2173
2176
|
size: 16
|
|
2174
2177
|
}),
|
|
2175
|
-
|
|
2178
|
+
n[4] || (n[4] = e("span", null, "个人信息", -1))
|
|
2176
2179
|
]),
|
|
2177
2180
|
e("div", {
|
|
2178
2181
|
class: "mix-top-menu__dropdown-item",
|
|
2179
2182
|
onClick: L
|
|
2180
2183
|
}, [
|
|
2181
|
-
|
|
2184
|
+
f(l(N), {
|
|
2182
2185
|
name: "lock",
|
|
2183
2186
|
size: 16
|
|
2184
2187
|
}),
|
|
2185
|
-
|
|
2188
|
+
n[5] || (n[5] = e("span", null, "修改密码", -1))
|
|
2186
2189
|
]),
|
|
2187
|
-
|
|
2190
|
+
n[7] || (n[7] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
|
|
2188
2191
|
e("div", {
|
|
2189
2192
|
class: "mix-top-menu__dropdown-item mix-top-menu__dropdown-item--danger",
|
|
2190
|
-
onClick:
|
|
2193
|
+
onClick: he
|
|
2191
2194
|
}, [
|
|
2192
|
-
|
|
2195
|
+
f(l(N), {
|
|
2193
2196
|
name: "logout",
|
|
2194
2197
|
size: 16
|
|
2195
2198
|
}),
|
|
2196
|
-
|
|
2199
|
+
n[6] || (n[6] = e("span", null, "退出登录", -1))
|
|
2197
2200
|
])
|
|
2198
2201
|
])
|
|
2199
|
-
])) :
|
|
2202
|
+
])) : B("", !0)
|
|
2200
2203
|
];
|
|
2201
2204
|
}),
|
|
2202
2205
|
_: 1
|
|
2203
2206
|
})
|
|
2204
2207
|
], 512)
|
|
2205
2208
|
]),
|
|
2206
|
-
|
|
2209
|
+
f(l(st), {
|
|
2207
2210
|
modelValue: X.value,
|
|
2208
|
-
"onUpdate:modelValue":
|
|
2211
|
+
"onUpdate:modelValue": n[2] || (n[2] = ($) => X.value = $),
|
|
2209
2212
|
title: "换肤设置",
|
|
2210
2213
|
direction: "rtl",
|
|
2211
2214
|
size: "320px"
|
|
2212
2215
|
}, {
|
|
2213
|
-
default:
|
|
2216
|
+
default: C(() => [
|
|
2214
2217
|
e("div", Da, [
|
|
2215
2218
|
e("div", Aa, [
|
|
2216
|
-
|
|
2219
|
+
n[12] || (n[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
|
|
2217
2220
|
e("div", Ba, [
|
|
2218
|
-
(a(),
|
|
2219
|
-
key:
|
|
2220
|
-
class:
|
|
2221
|
-
onClick: (at) => $e(
|
|
2221
|
+
(a(), u(j, null, Y(Ce, ($) => e("div", {
|
|
2222
|
+
key: $.value,
|
|
2223
|
+
class: G(["layout-option", { "is-active": ke.value === $.value }]),
|
|
2224
|
+
onClick: (at) => $e($.value)
|
|
2222
2225
|
}, [
|
|
2223
|
-
e("div",
|
|
2224
|
-
|
|
2226
|
+
e("div", Ra, [
|
|
2227
|
+
$.value === "sidebar" ? (a(), u("div", Va, [...n[9] || (n[9] = [
|
|
2225
2228
|
e("div", { class: "preview-aside" }, null, -1),
|
|
2226
2229
|
e("div", { class: "preview-main" }, [
|
|
2227
2230
|
e("div", { class: "preview-header" }),
|
|
2228
2231
|
e("div", { class: "preview-content" })
|
|
2229
2232
|
], -1)
|
|
2230
|
-
])])) :
|
|
2233
|
+
])])) : $.value === "top" ? (a(), u("div", Ka, [...n[10] || (n[10] = [
|
|
2231
2234
|
e("div", { class: "preview-header-full" }, null, -1),
|
|
2232
2235
|
e("div", { class: "preview-content-full" }, null, -1)
|
|
2233
|
-
])])) : (a(),
|
|
2236
|
+
])])) : (a(), u("div", ja, [...n[11] || (n[11] = [
|
|
2234
2237
|
e("div", { class: "preview-header-mix" }, [
|
|
2235
2238
|
e("div", { class: "preview-mix-left" })
|
|
2236
2239
|
], -1),
|
|
@@ -2240,47 +2243,47 @@ const ge = Pe("menu", () => {
|
|
|
2240
2243
|
], -1)
|
|
2241
2244
|
])]))
|
|
2242
2245
|
]),
|
|
2243
|
-
e("span", Wa,
|
|
2246
|
+
e("span", Wa, b($.label), 1)
|
|
2244
2247
|
], 10, Oa)), 64))
|
|
2245
2248
|
])
|
|
2246
2249
|
]),
|
|
2247
2250
|
e("div", qa, [
|
|
2248
|
-
|
|
2249
|
-
e("div",
|
|
2250
|
-
(a(),
|
|
2251
|
-
key:
|
|
2252
|
-
class:
|
|
2253
|
-
style: Ee({ backgroundColor:
|
|
2254
|
-
title:
|
|
2255
|
-
onClick: (at) => w(
|
|
2251
|
+
n[13] || (n[13] = e("div", { class: "settings-title" }, "主题色", -1)),
|
|
2252
|
+
e("div", Ga, [
|
|
2253
|
+
(a(), u(j, null, Y(U, ($) => e("div", {
|
|
2254
|
+
key: $.value,
|
|
2255
|
+
class: G(["color-option", { "is-active": l(i).primaryColor === $.value }]),
|
|
2256
|
+
style: Ee({ backgroundColor: $.value }),
|
|
2257
|
+
title: $.label,
|
|
2258
|
+
onClick: (at) => w($.value)
|
|
2256
2259
|
}, [
|
|
2257
|
-
|
|
2260
|
+
l(i).primaryColor === $.value ? (a(), D(l(N), {
|
|
2258
2261
|
key: 0,
|
|
2259
2262
|
name: "check",
|
|
2260
2263
|
size: 12,
|
|
2261
2264
|
color: "#fff"
|
|
2262
|
-
})) :
|
|
2263
|
-
], 14,
|
|
2265
|
+
})) : B("", !0)
|
|
2266
|
+
], 14, Ha)), 64))
|
|
2264
2267
|
])
|
|
2265
2268
|
]),
|
|
2266
|
-
e("div",
|
|
2267
|
-
|
|
2269
|
+
e("div", Ya, [
|
|
2270
|
+
n[18] || (n[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
|
|
2268
2271
|
e("div", Xa, [
|
|
2269
|
-
e("div",
|
|
2270
|
-
|
|
2272
|
+
e("div", Za, [
|
|
2273
|
+
n[15] || (n[15] = e("span", null, "灰色模式", -1)),
|
|
2271
2274
|
e("div", {
|
|
2272
|
-
class:
|
|
2273
|
-
onClick:
|
|
2274
|
-
}, [...
|
|
2275
|
+
class: G(["switch-wrapper", { "is-checked": oe.value }]),
|
|
2276
|
+
onClick: ve
|
|
2277
|
+
}, [...n[14] || (n[14] = [
|
|
2275
2278
|
e("span", { class: "switch-core" }, null, -1)
|
|
2276
2279
|
])], 2)
|
|
2277
2280
|
]),
|
|
2278
|
-
e("div",
|
|
2279
|
-
|
|
2281
|
+
e("div", Ja, [
|
|
2282
|
+
n[17] || (n[17] = e("span", null, "暗黑模式", -1)),
|
|
2280
2283
|
e("div", {
|
|
2281
|
-
class:
|
|
2284
|
+
class: G(["switch-wrapper", { "is-checked": l(i).isDark }]),
|
|
2282
2285
|
onClick: ie
|
|
2283
|
-
}, [...
|
|
2286
|
+
}, [...n[16] || (n[16] = [
|
|
2284
2287
|
e("span", { class: "switch-core" }, null, -1)
|
|
2285
2288
|
])], 2)
|
|
2286
2289
|
])
|
|
@@ -2293,34 +2296,34 @@ const ge = Pe("menu", () => {
|
|
|
2293
2296
|
]);
|
|
2294
2297
|
};
|
|
2295
2298
|
}
|
|
2296
|
-
}), en = /* @__PURE__ */ ne(
|
|
2299
|
+
}), en = /* @__PURE__ */ ne(Qa, [["__scopeId", "data-v-ec17777f"]]), tn = {
|
|
2297
2300
|
key: 0,
|
|
2298
2301
|
class: "layout layout--sidebar"
|
|
2299
2302
|
}, sn = { class: "layout__main" }, on = { class: "layout__header" }, an = { class: "layout__content" }, nn = {
|
|
2300
2303
|
key: 1,
|
|
2301
2304
|
class: "layout layout--top"
|
|
2302
|
-
}, ln = { class: "layout__top-menu" }, rn = { class: "layout__main" }, cn = { class: "layout__content" },
|
|
2305
|
+
}, ln = { class: "layout__top-menu" }, rn = { class: "layout__main" }, cn = { class: "layout__content" }, dn = {
|
|
2303
2306
|
key: 2,
|
|
2304
2307
|
class: "layout layout--mix"
|
|
2305
|
-
},
|
|
2308
|
+
}, un = { class: "layout__mix-top-menu" }, mn = { class: "layout__mix-body" }, pn = { class: "layout__content" }, vn = /* @__PURE__ */ ae({
|
|
2306
2309
|
__name: "index",
|
|
2307
2310
|
props: {
|
|
2308
2311
|
logoSrc: {}
|
|
2309
2312
|
},
|
|
2310
2313
|
setup(t) {
|
|
2311
|
-
const o = t, p = k(() => o.logoSrc ||
|
|
2312
|
-
() =>
|
|
2313
|
-
),
|
|
2314
|
-
return (
|
|
2315
|
-
const c =
|
|
2316
|
-
return a(),
|
|
2317
|
-
|
|
2314
|
+
const o = t, p = k(() => o.logoSrc || Pe("/vite.svg")), r = fe(), s = ge(), v = k(
|
|
2315
|
+
() => r.isCollapsed ? "64px" : "210px"
|
|
2316
|
+
), i = k(() => r.layout), h = k(() => i.value === "mix"), m = k(() => i.value === "sidebar" ? s.menuList : i.value === "mix" ? r.mixSubMenus : []), d = k(() => h.value ? m.value.length > 0 : !1);
|
|
2317
|
+
return (S, y) => {
|
|
2318
|
+
const c = we("router-view");
|
|
2319
|
+
return a(), u(j, null, [
|
|
2320
|
+
i.value === "sidebar" ? (a(), u("div", tn, [
|
|
2318
2321
|
e("aside", {
|
|
2319
|
-
class:
|
|
2320
|
-
style: Ee({ width:
|
|
2322
|
+
class: G(["layout__aside", { "layout__aside--collapsed": l(r).isCollapsed }]),
|
|
2323
|
+
style: Ee({ width: v.value })
|
|
2321
2324
|
}, [
|
|
2322
|
-
|
|
2323
|
-
"menu-list":
|
|
2325
|
+
f(dt, {
|
|
2326
|
+
"menu-list": m.value,
|
|
2324
2327
|
"show-logo": !0,
|
|
2325
2328
|
"show-user": !0,
|
|
2326
2329
|
"logo-src": p.value
|
|
@@ -2328,94 +2331,94 @@ const ge = Pe("menu", () => {
|
|
|
2328
2331
|
], 6),
|
|
2329
2332
|
e("div", sn, [
|
|
2330
2333
|
e("header", on, [
|
|
2331
|
-
|
|
2334
|
+
f(to)
|
|
2332
2335
|
]),
|
|
2333
2336
|
e("main", an, [
|
|
2334
|
-
|
|
2337
|
+
f(c)
|
|
2335
2338
|
])
|
|
2336
2339
|
])
|
|
2337
|
-
])) :
|
|
2338
|
-
|
|
2340
|
+
])) : B("", !0),
|
|
2341
|
+
i.value === "top" ? (a(), u("div", nn, [
|
|
2339
2342
|
e("div", ln, [
|
|
2340
|
-
|
|
2343
|
+
f(ca, { "logo-src": p.value }, null, 8, ["logo-src"])
|
|
2341
2344
|
]),
|
|
2342
2345
|
e("div", rn, [
|
|
2343
2346
|
e("main", cn, [
|
|
2344
|
-
|
|
2347
|
+
f(c)
|
|
2345
2348
|
])
|
|
2346
2349
|
])
|
|
2347
|
-
])) :
|
|
2348
|
-
|
|
2349
|
-
e("div",
|
|
2350
|
-
|
|
2350
|
+
])) : B("", !0),
|
|
2351
|
+
i.value === "mix" ? (a(), u("div", dn, [
|
|
2352
|
+
e("div", un, [
|
|
2353
|
+
f(en, { "logo-src": p.value }, null, 8, ["logo-src"])
|
|
2351
2354
|
]),
|
|
2352
2355
|
e("div", mn, [
|
|
2353
|
-
|
|
2356
|
+
d.value ? (a(), u("aside", {
|
|
2354
2357
|
key: 0,
|
|
2355
|
-
class:
|
|
2356
|
-
style: Ee({ width:
|
|
2358
|
+
class: G(["layout__aside", { "layout__aside--collapsed": l(r).isCollapsed }]),
|
|
2359
|
+
style: Ee({ width: v.value })
|
|
2357
2360
|
}, [
|
|
2358
|
-
|
|
2359
|
-
"menu-list":
|
|
2361
|
+
f(dt, {
|
|
2362
|
+
"menu-list": m.value,
|
|
2360
2363
|
"show-logo": !1,
|
|
2361
2364
|
"show-user": !1
|
|
2362
2365
|
}, null, 8, ["menu-list"])
|
|
2363
|
-
], 6)) :
|
|
2366
|
+
], 6)) : B("", !0),
|
|
2364
2367
|
e("main", pn, [
|
|
2365
|
-
|
|
2368
|
+
f(c)
|
|
2366
2369
|
])
|
|
2367
2370
|
])
|
|
2368
|
-
])) :
|
|
2371
|
+
])) : B("", !0)
|
|
2369
2372
|
], 64);
|
|
2370
2373
|
};
|
|
2371
2374
|
}
|
|
2372
|
-
}),
|
|
2375
|
+
}), _t = /* @__PURE__ */ ne(vn, [["__scopeId", "data-v-a1c7e6e2"]]), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2373
2376
|
__proto__: null,
|
|
2374
|
-
default:
|
|
2375
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2377
|
+
default: _t
|
|
2378
|
+
}, Symbol.toStringTag, { value: "Module" })), fn = { class: "tabs-wrapper" }, _n = { class: "tab-label" }, gn = ["onClick"], yn = /* @__PURE__ */ ae({
|
|
2376
2379
|
__name: "Tabs",
|
|
2377
2380
|
setup(t) {
|
|
2378
|
-
const o = Te(), p =
|
|
2379
|
-
const
|
|
2380
|
-
return o.matched.forEach((
|
|
2381
|
-
var
|
|
2382
|
-
(
|
|
2383
|
-
name:
|
|
2384
|
-
title:
|
|
2385
|
-
path:
|
|
2381
|
+
const o = Te(), p = be(), r = k(() => {
|
|
2382
|
+
const h = [];
|
|
2383
|
+
return o.matched.forEach((m) => {
|
|
2384
|
+
var d;
|
|
2385
|
+
(d = m.meta) != null && d.affix && h.push({
|
|
2386
|
+
name: m.name,
|
|
2387
|
+
title: m.meta.title,
|
|
2388
|
+
path: m.path,
|
|
2386
2389
|
affix: !0
|
|
2387
2390
|
});
|
|
2388
|
-
}),
|
|
2389
|
-
}), s = k(() => o.path),
|
|
2390
|
-
p.push(
|
|
2391
|
-
},
|
|
2392
|
-
const
|
|
2393
|
-
if (!(
|
|
2394
|
-
const
|
|
2395
|
-
|
|
2391
|
+
}), h;
|
|
2392
|
+
}), s = k(() => o.path), v = (h) => {
|
|
2393
|
+
p.push(h);
|
|
2394
|
+
}, i = (h) => {
|
|
2395
|
+
const m = r.value.find((d) => d.path === h);
|
|
2396
|
+
if (!(m != null && m.affix) && h === s.value) {
|
|
2397
|
+
const d = r.value.findIndex((y) => y.path === h), S = r.value[d - 1] || r.value[d + 1];
|
|
2398
|
+
S && p.push(S.path);
|
|
2396
2399
|
}
|
|
2397
2400
|
};
|
|
2398
|
-
return (
|
|
2399
|
-
|
|
2401
|
+
return (h, m) => (a(), u("div", fn, [
|
|
2402
|
+
f(l(Bt), {
|
|
2400
2403
|
modelValue: s.value,
|
|
2401
|
-
"onUpdate:modelValue":
|
|
2404
|
+
"onUpdate:modelValue": m[0] || (m[0] = (d) => s.value = d),
|
|
2402
2405
|
type: "card",
|
|
2403
|
-
onTabClick:
|
|
2406
|
+
onTabClick: v
|
|
2404
2407
|
}, {
|
|
2405
|
-
default:
|
|
2406
|
-
(a(!0),
|
|
2407
|
-
key:
|
|
2408
|
-
name:
|
|
2409
|
-
label:
|
|
2410
|
-
closable: !
|
|
2408
|
+
default: C(() => [
|
|
2409
|
+
(a(!0), u(j, null, Y(r.value, (d) => (a(), D(l(Ot), {
|
|
2410
|
+
key: d.path,
|
|
2411
|
+
name: d.path,
|
|
2412
|
+
label: d.title,
|
|
2413
|
+
closable: !d.affix
|
|
2411
2414
|
}, {
|
|
2412
|
-
label:
|
|
2413
|
-
e("span",
|
|
2414
|
-
|
|
2415
|
-
|
|
2415
|
+
label: C(() => [
|
|
2416
|
+
e("span", _n, [
|
|
2417
|
+
Z(b(d.title) + " ", 1),
|
|
2418
|
+
d.affix ? B("", !0) : (a(), u("span", {
|
|
2416
2419
|
key: 0,
|
|
2417
2420
|
class: "tab-close",
|
|
2418
|
-
onClick:
|
|
2421
|
+
onClick: Oe((S) => i(d.path), ["stop"])
|
|
2419
2422
|
}, " ✕ ", 8, gn))
|
|
2420
2423
|
])
|
|
2421
2424
|
]),
|
|
@@ -2426,13 +2429,13 @@ const ge = Pe("menu", () => {
|
|
|
2426
2429
|
}, 8, ["modelValue"])
|
|
2427
2430
|
]));
|
|
2428
2431
|
}
|
|
2429
|
-
}),
|
|
2430
|
-
function
|
|
2431
|
-
return a(),
|
|
2432
|
+
}), kl = /* @__PURE__ */ ne(yn, [["__scopeId", "data-v-0a4ca30d"]]), kn = {}, wn = { class: "footer" };
|
|
2433
|
+
function bn(t, o) {
|
|
2434
|
+
return a(), u("div", wn, [...o[0] || (o[0] = [
|
|
2432
2435
|
e("span", null, "Copyright © 2024 Xto Demo. All Rights Reserved.", -1)
|
|
2433
2436
|
])]);
|
|
2434
2437
|
}
|
|
2435
|
-
const
|
|
2438
|
+
const wl = /* @__PURE__ */ ne(kn, [["render", bn], ["__scopeId", "data-v-ac63e349"]]), xn = /* @__PURE__ */ ae({
|
|
2436
2439
|
name: "FilterBar",
|
|
2437
2440
|
__name: "FilterBar",
|
|
2438
2441
|
props: {
|
|
@@ -2446,81 +2449,81 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2446
2449
|
},
|
|
2447
2450
|
emits: ["search", "reset"],
|
|
2448
2451
|
setup(t, { expose: o, emit: p }) {
|
|
2449
|
-
const
|
|
2450
|
-
var
|
|
2451
|
-
const
|
|
2452
|
-
if (!
|
|
2453
|
-
const
|
|
2454
|
-
|
|
2455
|
-
|
|
2452
|
+
const r = t, s = p, v = g(null), i = g(r.defaultCollapsed), h = g(0), m = () => {
|
|
2453
|
+
var A;
|
|
2454
|
+
const _ = (A = v.value) == null ? void 0 : A.$el;
|
|
2455
|
+
if (!_) return;
|
|
2456
|
+
const E = _.querySelectorAll(":scope > .x-form-item:not(.filter-bar__ops)");
|
|
2457
|
+
h.value = E.length, E.forEach((V, K) => {
|
|
2458
|
+
V.style.display = i.value && K >= r.collapsedCount ? "none" : "";
|
|
2456
2459
|
});
|
|
2457
|
-
},
|
|
2458
|
-
|
|
2460
|
+
}, d = k(() => r.collapsible && h.value > r.collapsedCount), S = () => {
|
|
2461
|
+
i.value = !i.value;
|
|
2459
2462
|
};
|
|
2460
|
-
|
|
2461
|
-
const
|
|
2463
|
+
Me(i, () => Re(m)), Be(() => Re(m)), Tt(() => Re(m));
|
|
2464
|
+
const y = () => s("search"), c = () => s("reset");
|
|
2462
2465
|
return o({
|
|
2463
2466
|
/** 展开筛选项 */
|
|
2464
2467
|
expand: () => {
|
|
2465
|
-
|
|
2468
|
+
i.value = !1;
|
|
2466
2469
|
},
|
|
2467
2470
|
/** 收起筛选项 */
|
|
2468
2471
|
collapse: () => {
|
|
2469
|
-
|
|
2472
|
+
i.value = !0;
|
|
2470
2473
|
}
|
|
2471
|
-
}), (
|
|
2472
|
-
const
|
|
2473
|
-
return a(),
|
|
2474
|
-
default:
|
|
2475
|
-
|
|
2474
|
+
}), (_, E) => {
|
|
2475
|
+
const A = we("x-button"), V = we("x-form-item"), K = we("x-form"), W = we("x-card");
|
|
2476
|
+
return a(), D(W, { class: "filter-bar" }, {
|
|
2477
|
+
default: C(() => [
|
|
2478
|
+
f(K, {
|
|
2476
2479
|
ref_key: "formRef",
|
|
2477
|
-
ref:
|
|
2480
|
+
ref: v,
|
|
2478
2481
|
model: t.model,
|
|
2479
2482
|
layout: "inline",
|
|
2480
|
-
onSubmit:
|
|
2483
|
+
onSubmit: y,
|
|
2481
2484
|
onReset: c
|
|
2482
2485
|
}, {
|
|
2483
|
-
default:
|
|
2484
|
-
De(
|
|
2485
|
-
|
|
2486
|
-
default:
|
|
2487
|
-
|
|
2486
|
+
default: C(() => [
|
|
2487
|
+
De(_.$slots, "default", {}, void 0, !0),
|
|
2488
|
+
f(V, { class: "filter-bar__ops" }, {
|
|
2489
|
+
default: C(() => [
|
|
2490
|
+
f(A, {
|
|
2488
2491
|
type: "primary",
|
|
2489
2492
|
size: "small",
|
|
2490
2493
|
"html-type": "submit",
|
|
2491
2494
|
loading: t.searchLoading
|
|
2492
2495
|
}, {
|
|
2493
|
-
default:
|
|
2494
|
-
|
|
2496
|
+
default: C(() => [
|
|
2497
|
+
Z(b(t.searchText), 1)
|
|
2495
2498
|
]),
|
|
2496
2499
|
_: 1
|
|
2497
2500
|
}, 8, ["loading"]),
|
|
2498
|
-
|
|
2501
|
+
f(A, {
|
|
2499
2502
|
size: "small",
|
|
2500
2503
|
"html-type": "reset"
|
|
2501
2504
|
}, {
|
|
2502
|
-
default:
|
|
2503
|
-
|
|
2505
|
+
default: C(() => [
|
|
2506
|
+
Z(b(t.resetText), 1)
|
|
2504
2507
|
]),
|
|
2505
2508
|
_: 1
|
|
2506
2509
|
}),
|
|
2507
|
-
|
|
2510
|
+
d.value ? (a(), D(A, {
|
|
2508
2511
|
key: 0,
|
|
2509
2512
|
type: "text",
|
|
2510
2513
|
size: "small",
|
|
2511
2514
|
class: "filter-bar__toggle",
|
|
2512
|
-
onClick:
|
|
2515
|
+
onClick: S
|
|
2513
2516
|
}, {
|
|
2514
|
-
default:
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
+
default: C(() => [
|
|
2518
|
+
Z(b(i.value ? "展开" : "收起") + " ", 1),
|
|
2519
|
+
f(l(N), {
|
|
2517
2520
|
name: "caret-down",
|
|
2518
2521
|
size: 12,
|
|
2519
|
-
class:
|
|
2522
|
+
class: G(["filter-bar__caret", { "is-open": !i.value }])
|
|
2520
2523
|
}, null, 8, ["class"])
|
|
2521
2524
|
]),
|
|
2522
2525
|
_: 1
|
|
2523
|
-
})) :
|
|
2526
|
+
})) : B("", !0)
|
|
2524
2527
|
]),
|
|
2525
2528
|
_: 1
|
|
2526
2529
|
})
|
|
@@ -2532,7 +2535,7 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2532
2535
|
});
|
|
2533
2536
|
};
|
|
2534
2537
|
}
|
|
2535
|
-
}),
|
|
2538
|
+
}), 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
2539
|
name: "TableCard",
|
|
2537
2540
|
__name: "TableCard",
|
|
2538
2541
|
props: {
|
|
@@ -2540,23 +2543,23 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2540
2543
|
},
|
|
2541
2544
|
setup(t) {
|
|
2542
2545
|
return (o, p) => {
|
|
2543
|
-
const
|
|
2544
|
-
return a(),
|
|
2545
|
-
default:
|
|
2546
|
+
const r = we("x-card");
|
|
2547
|
+
return a(), D(r, { class: "table-card-frame" }, Ut({
|
|
2548
|
+
default: C(() => [
|
|
2546
2549
|
De(o.$slots, "default", {}, void 0, !0)
|
|
2547
2550
|
]),
|
|
2548
2551
|
_: 2
|
|
2549
2552
|
}, [
|
|
2550
2553
|
t.title || o.$slots.header || o.$slots.actions ? {
|
|
2551
2554
|
name: "header",
|
|
2552
|
-
fn:
|
|
2555
|
+
fn: C(() => [
|
|
2553
2556
|
e("div", Cn, [
|
|
2554
2557
|
e("div", $n, [
|
|
2555
2558
|
De(o.$slots, "header", {}, () => [
|
|
2556
|
-
|
|
2559
|
+
Z(b(t.title), 1)
|
|
2557
2560
|
], !0)
|
|
2558
2561
|
]),
|
|
2559
|
-
e("div",
|
|
2562
|
+
e("div", Mn, [
|
|
2560
2563
|
De(o.$slots, "actions", {}, void 0, !0)
|
|
2561
2564
|
])
|
|
2562
2565
|
])
|
|
@@ -2566,7 +2569,7 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2566
2569
|
]), 1024);
|
|
2567
2570
|
};
|
|
2568
2571
|
}
|
|
2569
|
-
}),
|
|
2572
|
+
}), xl = /* @__PURE__ */ ne(Ln, [["__scopeId", "data-v-ccdd6039"]]), Sn = /* @__PURE__ */ ae({
|
|
2570
2573
|
name: "TableActions",
|
|
2571
2574
|
__name: "TableActions",
|
|
2572
2575
|
props: {
|
|
@@ -2574,39 +2577,39 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2574
2577
|
gap: { default: 6 }
|
|
2575
2578
|
},
|
|
2576
2579
|
setup(t) {
|
|
2577
|
-
const o = t, p =
|
|
2578
|
-
const
|
|
2579
|
-
return
|
|
2580
|
+
const o = t, p = Pt(), r = (m) => {
|
|
2581
|
+
const d = m.props || {}, S = d.type === "danger" || d.danger === !0 || d.danger === "", y = { type: "text" };
|
|
2582
|
+
return d.size == null && (y.size = "small"), S && (y.class = [d.class, "table-actions__danger"]), Ft(m, y);
|
|
2580
2583
|
}, s = k(
|
|
2581
2584
|
() => {
|
|
2582
|
-
var
|
|
2583
|
-
return (((
|
|
2585
|
+
var m;
|
|
2586
|
+
return (((m = p.default) == null ? void 0 : m.call(p)) ?? []).filter((d) => d.type && d.type !== zt && typeof d.type != "symbol").map(r);
|
|
2584
2587
|
}
|
|
2585
|
-
),
|
|
2586
|
-
() =>
|
|
2587
|
-
),
|
|
2588
|
-
return (
|
|
2589
|
-
const
|
|
2590
|
-
return s.value.length ? (a(),
|
|
2588
|
+
), v = k(() => o.max > 0 && s.value.length > o.max), i = k(
|
|
2589
|
+
() => v.value ? s.value.slice(0, Math.max(1, o.max - 1)) : s.value
|
|
2590
|
+
), h = k(() => v.value ? s.value.slice(Math.max(1, o.max - 1)) : []);
|
|
2591
|
+
return (m, d) => {
|
|
2592
|
+
const S = we("x-button");
|
|
2593
|
+
return s.value.length ? (a(), u("div", {
|
|
2591
2594
|
key: 0,
|
|
2592
2595
|
class: "table-actions",
|
|
2593
2596
|
style: Ee({ gap: `${t.gap}px` })
|
|
2594
2597
|
}, [
|
|
2595
|
-
(a(!0),
|
|
2596
|
-
|
|
2598
|
+
(a(!0), u(j, null, Y(i.value, (y, c) => (a(), D(it(y), { key: c }))), 128)),
|
|
2599
|
+
h.value.length ? (a(), D(l(Rt), {
|
|
2597
2600
|
key: 0,
|
|
2598
2601
|
trigger: "click",
|
|
2599
2602
|
placement: "bottom-end"
|
|
2600
2603
|
}, {
|
|
2601
|
-
dropdown:
|
|
2602
|
-
|
|
2603
|
-
default:
|
|
2604
|
-
(a(!0),
|
|
2604
|
+
dropdown: C(() => [
|
|
2605
|
+
f(l(Vt), null, {
|
|
2606
|
+
default: C(() => [
|
|
2607
|
+
(a(!0), u(j, null, Y(h.value, (y, c) => (a(), D(l(Kt), {
|
|
2605
2608
|
key: c,
|
|
2606
2609
|
command: c
|
|
2607
2610
|
}, {
|
|
2608
|
-
default:
|
|
2609
|
-
(a(),
|
|
2611
|
+
default: C(() => [
|
|
2612
|
+
(a(), D(it(y)))
|
|
2610
2613
|
]),
|
|
2611
2614
|
_: 2
|
|
2612
2615
|
}, 1032, ["command"]))), 128))
|
|
@@ -2614,15 +2617,15 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2614
2617
|
_: 1
|
|
2615
2618
|
})
|
|
2616
2619
|
]),
|
|
2617
|
-
default:
|
|
2618
|
-
|
|
2620
|
+
default: C(() => [
|
|
2621
|
+
f(S, {
|
|
2619
2622
|
type: "text",
|
|
2620
2623
|
size: "small",
|
|
2621
2624
|
class: "table-actions__more"
|
|
2622
2625
|
}, {
|
|
2623
|
-
default:
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
+
default: C(() => [
|
|
2627
|
+
d[0] || (d[0] = Z(" 更多 ", -1)),
|
|
2628
|
+
f(l(N), {
|
|
2626
2629
|
name: "caret-down",
|
|
2627
2630
|
size: 12
|
|
2628
2631
|
})
|
|
@@ -2631,176 +2634,209 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2631
2634
|
})
|
|
2632
2635
|
]),
|
|
2633
2636
|
_: 1
|
|
2634
|
-
})) :
|
|
2635
|
-
], 4)) :
|
|
2637
|
+
})) : B("", !0)
|
|
2638
|
+
], 4)) : B("", !0);
|
|
2636
2639
|
};
|
|
2637
2640
|
}
|
|
2638
|
-
}),
|
|
2641
|
+
}), Cl = /* @__PURE__ */ ne(Sn, [["__scopeId", "data-v-4d717970"]]), In = { class: "login-page" }, En = { class: "page" }, Nn = {
|
|
2642
|
+
class: "brand-side",
|
|
2643
|
+
"aria-hidden": "true"
|
|
2644
|
+
}, Tn = { class: "brand-inner" }, Un = { class: "brand-logo" }, Pn = { class: "logo-name" }, zn = { class: "login-side" }, Fn = {
|
|
2645
|
+
class: "login-card",
|
|
2646
|
+
id: "login-card"
|
|
2647
|
+
}, Dn = { class: "card-header" }, An = { class: "welcome-sub" }, Bn = { class: "input-wrapper" }, On = { class: "input-wrapper" }, Rn = { class: "form-options" }, Vn = { class: "footer" }, Kn = /* @__PURE__ */ ae({
|
|
2639
2648
|
__name: "index",
|
|
2640
2649
|
setup(t) {
|
|
2641
|
-
const o =
|
|
2650
|
+
const o = be(), p = Te(), r = fe(), s = k(() => r.appName || "XTO App"), v = (/* @__PURE__ */ new Date()).getFullYear(), i = g(!1), h = g(!1), m = Ze({
|
|
2642
2651
|
uid: "",
|
|
2643
2652
|
password: ""
|
|
2644
|
-
}),
|
|
2653
|
+
}), d = {
|
|
2645
2654
|
uid: [
|
|
2646
|
-
{ required: !0, message: "
|
|
2655
|
+
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
2647
2656
|
],
|
|
2648
2657
|
password: [
|
|
2649
2658
|
{ required: !0, message: "请输入密码", trigger: "blur" },
|
|
2650
2659
|
{ min: 6, message: "密码长度至少6位", trigger: "blur" }
|
|
2651
2660
|
]
|
|
2652
|
-
},
|
|
2653
|
-
var
|
|
2661
|
+
}, S = g(), y = async () => {
|
|
2662
|
+
var c;
|
|
2654
2663
|
try {
|
|
2655
|
-
await ((
|
|
2656
|
-
|
|
2664
|
+
if (await ((c = S.value) == null ? void 0 : c.validate()) === !1) return;
|
|
2665
|
+
i.value = !0;
|
|
2666
|
+
const E = await bt({
|
|
2657
2667
|
appId: Se(),
|
|
2658
2668
|
clientId: ht(),
|
|
2659
2669
|
uid: m.uid,
|
|
2660
2670
|
password: m.password,
|
|
2661
2671
|
code: !0
|
|
2662
2672
|
});
|
|
2663
|
-
vt(
|
|
2664
|
-
const
|
|
2665
|
-
|
|
2666
|
-
} catch (
|
|
2667
|
-
console.error("登录失败:",
|
|
2673
|
+
vt(E), jt.success("登录成功");
|
|
2674
|
+
const A = p.query.redirect;
|
|
2675
|
+
A ? o.push(A) : o.push({ name: "Dashboard" });
|
|
2676
|
+
} catch (_) {
|
|
2677
|
+
console.error("登录失败:", _);
|
|
2668
2678
|
} finally {
|
|
2669
|
-
|
|
2679
|
+
i.value = !1;
|
|
2670
2680
|
}
|
|
2671
2681
|
};
|
|
2672
|
-
return (
|
|
2673
|
-
|
|
2682
|
+
return (c, _) => (a(), u("div", In, [
|
|
2683
|
+
_[18] || (_[18] = e("a", {
|
|
2684
|
+
class: "skip-link",
|
|
2685
|
+
href: "#login-card"
|
|
2686
|
+
}, "跳转到登录表单", -1)),
|
|
2674
2687
|
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
|
-
|
|
2688
|
+
e("aside", Nn, [
|
|
2689
|
+
_[6] || (_[6] = e("div", { class: "deco-grid" }, null, -1)),
|
|
2690
|
+
_[7] || (_[7] = e("div", { class: "deco-glow" }, null, -1)),
|
|
2691
|
+
_[8] || (_[8] = e("div", { class: "deco-line l1" }, null, -1)),
|
|
2692
|
+
_[9] || (_[9] = e("div", { class: "deco-line l2" }, null, -1)),
|
|
2693
|
+
e("div", Tn, [
|
|
2694
|
+
e("div", Un, [
|
|
2695
|
+
_[4] || (_[4] = e("div", { class: "logo-mark" }, "X", -1)),
|
|
2696
|
+
e("div", Pn, [
|
|
2697
|
+
Z(b(s.value) + " ", 1),
|
|
2698
|
+
_[3] || (_[3] = e("small", null, "XTO PLATFORM", -1))
|
|
2699
|
+
])
|
|
2700
|
+
]),
|
|
2701
|
+
_[5] || (_[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))
|
|
2702
|
+
])
|
|
2703
|
+
]),
|
|
2704
|
+
e("main", zn, [
|
|
2705
|
+
e("section", Fn, [
|
|
2706
|
+
e("header", Dn, [
|
|
2707
|
+
_[10] || (_[10] = e("div", {
|
|
2708
|
+
class: "logo-mark",
|
|
2709
|
+
"aria-hidden": "true"
|
|
2710
|
+
}, "X", -1)),
|
|
2711
|
+
_[11] || (_[11] = e("h2", { class: "welcome" }, "账号登录", -1)),
|
|
2712
|
+
e("p", An, "欢迎登录" + b(s.value), 1)
|
|
2713
|
+
]),
|
|
2714
|
+
f(l(Wt), {
|
|
2715
|
+
ref_key: "formRef",
|
|
2716
|
+
ref: S,
|
|
2717
|
+
model: m,
|
|
2718
|
+
rules: d,
|
|
2719
|
+
class: "login-form",
|
|
2720
|
+
"label-width": "0"
|
|
2721
|
+
}, {
|
|
2722
|
+
default: C(() => [
|
|
2723
|
+
f(l(Ve), { prop: "uid" }, {
|
|
2724
|
+
default: C(() => [
|
|
2725
|
+
e("div", Bn, [
|
|
2726
|
+
_[12] || (_[12] = e("label", { class: "input-label" }, "账号", -1)),
|
|
2727
|
+
f(l(ct), {
|
|
2728
|
+
modelValue: m.uid,
|
|
2729
|
+
"onUpdate:modelValue": _[0] || (_[0] = (E) => m.uid = E),
|
|
2730
|
+
placeholder: "请输入账号",
|
|
2731
|
+
size: "large"
|
|
2732
|
+
}, {
|
|
2733
|
+
prefix: C(() => [
|
|
2734
|
+
f(l(N), {
|
|
2735
|
+
name: "user",
|
|
2736
|
+
size: 18
|
|
2737
|
+
})
|
|
2738
|
+
]),
|
|
2739
|
+
_: 1
|
|
2740
|
+
}, 8, ["modelValue"])
|
|
2741
|
+
])
|
|
2742
|
+
]),
|
|
2743
|
+
_: 1
|
|
2744
|
+
}),
|
|
2745
|
+
f(l(Ve), { prop: "password" }, {
|
|
2746
|
+
default: C(() => [
|
|
2747
|
+
e("div", On, [
|
|
2748
|
+
_[13] || (_[13] = e("label", { class: "input-label" }, "密码", -1)),
|
|
2749
|
+
f(l(ct), {
|
|
2750
|
+
modelValue: m.password,
|
|
2751
|
+
"onUpdate:modelValue": _[1] || (_[1] = (E) => m.password = E),
|
|
2752
|
+
type: "password",
|
|
2753
|
+
placeholder: "请输入登录密码",
|
|
2754
|
+
size: "large",
|
|
2755
|
+
"show-password": "",
|
|
2756
|
+
onKeyup: Dt(y, ["enter"])
|
|
2757
|
+
}, {
|
|
2758
|
+
prefix: C(() => [
|
|
2759
|
+
f(l(N), {
|
|
2760
|
+
name: "lock",
|
|
2761
|
+
size: 18
|
|
2762
|
+
})
|
|
2763
|
+
]),
|
|
2764
|
+
_: 1
|
|
2765
|
+
}, 8, ["modelValue"])
|
|
2766
|
+
])
|
|
2767
|
+
]),
|
|
2768
|
+
_: 1
|
|
2769
|
+
}),
|
|
2770
|
+
e("div", Rn, [
|
|
2771
|
+
f(l(qt), {
|
|
2772
|
+
modelValue: h.value,
|
|
2773
|
+
"onUpdate:modelValue": _[2] || (_[2] = (E) => h.value = E)
|
|
2774
|
+
}, {
|
|
2775
|
+
default: C(() => [..._[14] || (_[14] = [
|
|
2776
|
+
Z("记住账号", -1)
|
|
2777
|
+
])]),
|
|
2778
|
+
_: 1
|
|
2779
|
+
}, 8, ["modelValue"]),
|
|
2780
|
+
_[15] || (_[15] = e("a", {
|
|
2781
|
+
href: "#",
|
|
2782
|
+
class: "link"
|
|
2783
|
+
}, "忘记密码?", -1))
|
|
2708
2784
|
]),
|
|
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: "请输入密码",
|
|
2785
|
+
f(l(Ve), null, {
|
|
2786
|
+
default: C(() => [
|
|
2787
|
+
f(l(Ne), {
|
|
2788
|
+
type: "primary",
|
|
2720
2789
|
size: "large",
|
|
2721
|
-
|
|
2722
|
-
|
|
2790
|
+
loading: i.value,
|
|
2791
|
+
class: "btn-login",
|
|
2792
|
+
onClick: y
|
|
2723
2793
|
}, {
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
name: "lock",
|
|
2727
|
-
size: 18
|
|
2728
|
-
})
|
|
2794
|
+
default: C(() => [
|
|
2795
|
+
Z(b(i.value ? "正在登录…" : "登 录"), 1)
|
|
2729
2796
|
]),
|
|
2730
2797
|
_: 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
|
-
])]),
|
|
2798
|
+
}, 8, ["loading"])
|
|
2799
|
+
]),
|
|
2744
2800
|
_: 1
|
|
2745
|
-
}
|
|
2746
|
-
f[6] || (f[6] = e("a", {
|
|
2747
|
-
href: "#",
|
|
2748
|
-
class: "forgot-link"
|
|
2749
|
-
}, "忘记密码?", -1))
|
|
2801
|
+
})
|
|
2750
2802
|
]),
|
|
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))
|
|
2803
|
+
_: 1
|
|
2804
|
+
}, 8, ["model"])
|
|
2805
|
+
]),
|
|
2806
|
+
e("footer", Vn, [
|
|
2807
|
+
Z(" Copyright © " + b(l(v)) + " " + b(s.value) + " All Rights Reserved", 1),
|
|
2808
|
+
_[16] || (_[16] = e("br", null, null, -1)),
|
|
2809
|
+
_[17] || (_[17] = Z(" 建议使用 Chrome / Edge 浏览器访问 ", -1))
|
|
2810
|
+
])
|
|
2811
|
+
])
|
|
2776
2812
|
])
|
|
2777
2813
|
]));
|
|
2778
2814
|
}
|
|
2779
|
-
}),
|
|
2815
|
+
}), jn = /* @__PURE__ */ ne(Kn, [["__scopeId", "data-v-3de04846"]]), Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2780
2816
|
__proto__: null,
|
|
2781
|
-
default:
|
|
2782
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2817
|
+
default: jn
|
|
2818
|
+
}, Symbol.toStringTag, { value: "Module" })), qn = { class: "error-page" }, Gn = { class: "error-container" }, Hn = { class: "error-content" }, Yn = { class: "error-actions" }, Xn = /* @__PURE__ */ ae({
|
|
2783
2819
|
__name: "404",
|
|
2784
2820
|
setup(t) {
|
|
2785
|
-
const o =
|
|
2821
|
+
const o = be(), p = () => {
|
|
2786
2822
|
o.push("/");
|
|
2787
2823
|
};
|
|
2788
|
-
return (
|
|
2789
|
-
e("div",
|
|
2824
|
+
return (r, s) => (a(), u("div", qn, [
|
|
2825
|
+
e("div", Gn, [
|
|
2790
2826
|
s[7] || (s[7] = e("div", { class: "error-bg" }, [
|
|
2791
2827
|
e("div", { class: "bg-circle circle-1" }),
|
|
2792
2828
|
e("div", { class: "bg-circle circle-2" }),
|
|
2793
2829
|
e("div", { class: "bg-circle circle-3" })
|
|
2794
2830
|
], -1)),
|
|
2795
|
-
e("div",
|
|
2796
|
-
s[5] || (s[5] =
|
|
2797
|
-
e("div",
|
|
2798
|
-
|
|
2831
|
+
e("div", Hn, [
|
|
2832
|
+
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)),
|
|
2833
|
+
e("div", Yn, [
|
|
2834
|
+
f(l(Ne), {
|
|
2799
2835
|
type: "primary",
|
|
2800
2836
|
size: "large",
|
|
2801
2837
|
onClick: p
|
|
2802
2838
|
}, {
|
|
2803
|
-
icon:
|
|
2839
|
+
icon: C(() => [...s[1] || (s[1] = [
|
|
2804
2840
|
e("svg", {
|
|
2805
2841
|
viewBox: "0 0 24 24",
|
|
2806
2842
|
fill: "none",
|
|
@@ -2811,16 +2847,16 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2811
2847
|
e("polyline", { points: "9,22 9,12 15,12 15,22" })
|
|
2812
2848
|
], -1)
|
|
2813
2849
|
])]),
|
|
2814
|
-
default:
|
|
2815
|
-
s[2] || (s[2] =
|
|
2850
|
+
default: C(() => [
|
|
2851
|
+
s[2] || (s[2] = Z(" 返回首页 ", -1))
|
|
2816
2852
|
]),
|
|
2817
2853
|
_: 1
|
|
2818
2854
|
}),
|
|
2819
|
-
|
|
2855
|
+
f(l(Ne), {
|
|
2820
2856
|
size: "large",
|
|
2821
|
-
onClick: s[0] || (s[0] = (
|
|
2857
|
+
onClick: s[0] || (s[0] = (v) => l(o).go(-1))
|
|
2822
2858
|
}, {
|
|
2823
|
-
icon:
|
|
2859
|
+
icon: C(() => [...s[3] || (s[3] = [
|
|
2824
2860
|
e("svg", {
|
|
2825
2861
|
viewBox: "0 0 24 24",
|
|
2826
2862
|
fill: "none",
|
|
@@ -2830,8 +2866,8 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2830
2866
|
e("path", { d: "M19 12H5M12 19l-7-7 7-7" })
|
|
2831
2867
|
], -1)
|
|
2832
2868
|
])]),
|
|
2833
|
-
default:
|
|
2834
|
-
s[4] || (s[4] =
|
|
2869
|
+
default: C(() => [
|
|
2870
|
+
s[4] || (s[4] = Z(" 返回上一页 ", -1))
|
|
2835
2871
|
]),
|
|
2836
2872
|
_: 1
|
|
2837
2873
|
})
|
|
@@ -2848,31 +2884,31 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2848
2884
|
])
|
|
2849
2885
|
]));
|
|
2850
2886
|
}
|
|
2851
|
-
}),
|
|
2887
|
+
}), Zn = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-c36cc0ad"]]), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2852
2888
|
__proto__: null,
|
|
2853
|
-
default:
|
|
2854
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2889
|
+
default: Zn
|
|
2890
|
+
}, Symbol.toStringTag, { value: "Module" })), Jn = { class: "error-page" }, Qn = { class: "error-container" }, el = { class: "error-content" }, tl = { class: "error-actions" }, sl = /* @__PURE__ */ ae({
|
|
2855
2891
|
__name: "403",
|
|
2856
2892
|
setup(t) {
|
|
2857
|
-
const o =
|
|
2893
|
+
const o = be(), p = () => {
|
|
2858
2894
|
o.push("/");
|
|
2859
2895
|
};
|
|
2860
|
-
return (
|
|
2861
|
-
e("div",
|
|
2896
|
+
return (r, s) => (a(), u("div", Jn, [
|
|
2897
|
+
e("div", Qn, [
|
|
2862
2898
|
s[7] || (s[7] = e("div", { class: "error-bg" }, [
|
|
2863
2899
|
e("div", { class: "bg-circle circle-1" }),
|
|
2864
2900
|
e("div", { class: "bg-circle circle-2" }),
|
|
2865
2901
|
e("div", { class: "bg-circle circle-3" })
|
|
2866
2902
|
], -1)),
|
|
2867
|
-
e("div",
|
|
2868
|
-
s[5] || (s[5] =
|
|
2869
|
-
e("div",
|
|
2870
|
-
|
|
2903
|
+
e("div", el, [
|
|
2904
|
+
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)),
|
|
2905
|
+
e("div", tl, [
|
|
2906
|
+
f(l(Ne), {
|
|
2871
2907
|
type: "primary",
|
|
2872
2908
|
size: "large",
|
|
2873
2909
|
onClick: p
|
|
2874
2910
|
}, {
|
|
2875
|
-
icon:
|
|
2911
|
+
icon: C(() => [...s[1] || (s[1] = [
|
|
2876
2912
|
e("svg", {
|
|
2877
2913
|
viewBox: "0 0 24 24",
|
|
2878
2914
|
fill: "none",
|
|
@@ -2883,16 +2919,16 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2883
2919
|
e("polyline", { points: "9,22 9,12 15,12 15,22" })
|
|
2884
2920
|
], -1)
|
|
2885
2921
|
])]),
|
|
2886
|
-
default:
|
|
2887
|
-
s[2] || (s[2] =
|
|
2922
|
+
default: C(() => [
|
|
2923
|
+
s[2] || (s[2] = Z(" 返回首页 ", -1))
|
|
2888
2924
|
]),
|
|
2889
2925
|
_: 1
|
|
2890
2926
|
}),
|
|
2891
|
-
|
|
2927
|
+
f(l(Ne), {
|
|
2892
2928
|
size: "large",
|
|
2893
|
-
onClick: s[0] || (s[0] = (
|
|
2929
|
+
onClick: s[0] || (s[0] = (v) => l(o).go(-1))
|
|
2894
2930
|
}, {
|
|
2895
|
-
icon:
|
|
2931
|
+
icon: C(() => [...s[3] || (s[3] = [
|
|
2896
2932
|
e("svg", {
|
|
2897
2933
|
viewBox: "0 0 24 24",
|
|
2898
2934
|
fill: "none",
|
|
@@ -2902,8 +2938,8 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2902
2938
|
e("path", { d: "M19 12H5M12 19l-7-7 7-7" })
|
|
2903
2939
|
], -1)
|
|
2904
2940
|
])]),
|
|
2905
|
-
default:
|
|
2906
|
-
s[4] || (s[4] =
|
|
2941
|
+
default: C(() => [
|
|
2942
|
+
s[4] || (s[4] = Z(" 返回上一页 ", -1))
|
|
2907
2943
|
]),
|
|
2908
2944
|
_: 1
|
|
2909
2945
|
})
|
|
@@ -2920,18 +2956,18 @@ const hl = /* @__PURE__ */ ne(bn, [["render", wn], ["__scopeId", "data-v-ac63e34
|
|
|
2920
2956
|
])
|
|
2921
2957
|
]));
|
|
2922
2958
|
}
|
|
2923
|
-
}),
|
|
2924
|
-
function
|
|
2925
|
-
const t = fe(), o =
|
|
2959
|
+
}), $l = /* @__PURE__ */ ne(sl, [["__scopeId", "data-v-e6e1f7ac"]]);
|
|
2960
|
+
function Ml() {
|
|
2961
|
+
const t = fe(), o = ue(), p = Fe(), r = k(() => o.userName || ""), s = k(() => o.userInfo), v = k(() => t.appName), i = k(() => p.isLoggedIn), h = k(() => t.isDark), m = k(() => t.theme), d = k(() => t.isCollapsed), S = k(() => t.layout);
|
|
2926
2962
|
return {
|
|
2927
|
-
userName:
|
|
2963
|
+
userName: r,
|
|
2928
2964
|
userInfo: s,
|
|
2929
|
-
appName:
|
|
2930
|
-
isLoggedIn:
|
|
2931
|
-
isDark:
|
|
2932
|
-
theme:
|
|
2933
|
-
isCollapsed:
|
|
2934
|
-
layout:
|
|
2965
|
+
appName: v,
|
|
2966
|
+
isLoggedIn: i,
|
|
2967
|
+
isDark: h,
|
|
2968
|
+
theme: m,
|
|
2969
|
+
isCollapsed: d,
|
|
2970
|
+
layout: S,
|
|
2935
2971
|
toggleTheme: () => {
|
|
2936
2972
|
t.toggleTheme();
|
|
2937
2973
|
},
|
|
@@ -2940,123 +2976,123 @@ function bl() {
|
|
|
2940
2976
|
}
|
|
2941
2977
|
};
|
|
2942
2978
|
}
|
|
2943
|
-
function
|
|
2944
|
-
const t =
|
|
2979
|
+
function Ll() {
|
|
2980
|
+
const t = ue();
|
|
2945
2981
|
return {
|
|
2946
2982
|
isLoggedIn: k(() => t.isLoggedIn)
|
|
2947
2983
|
};
|
|
2948
2984
|
}
|
|
2949
|
-
function
|
|
2950
|
-
const { rules: p, onSubmit:
|
|
2951
|
-
c(),
|
|
2952
|
-
},
|
|
2953
|
-
Object.assign(
|
|
2954
|
-
},
|
|
2955
|
-
|
|
2985
|
+
function Sl(t, o = {}) {
|
|
2986
|
+
const { rules: p, onSubmit: r } = o, s = g(), v = Ze({ ...t }), i = g(!1), h = g(!1), m = g(!1), d = () => {
|
|
2987
|
+
c(), m.value = !1, h.value = !0;
|
|
2988
|
+
}, S = (E) => {
|
|
2989
|
+
Object.assign(v, E), m.value = !0, h.value = !0;
|
|
2990
|
+
}, y = () => {
|
|
2991
|
+
h.value = !1, c();
|
|
2956
2992
|
}, c = () => {
|
|
2957
|
-
var
|
|
2958
|
-
Object.keys(t).forEach((
|
|
2959
|
-
|
|
2960
|
-
}), (
|
|
2993
|
+
var E;
|
|
2994
|
+
Object.keys(t).forEach((A) => {
|
|
2995
|
+
v[A] = t[A];
|
|
2996
|
+
}), (E = s.value) == null || E.resetFields();
|
|
2961
2997
|
};
|
|
2962
2998
|
return {
|
|
2963
2999
|
formRef: s,
|
|
2964
|
-
formData:
|
|
3000
|
+
formData: v,
|
|
2965
3001
|
rules: p,
|
|
2966
|
-
loading:
|
|
2967
|
-
visible:
|
|
2968
|
-
isEdit:
|
|
2969
|
-
openAdd:
|
|
2970
|
-
openEdit:
|
|
2971
|
-
close:
|
|
3002
|
+
loading: i,
|
|
3003
|
+
visible: h,
|
|
3004
|
+
isEdit: m,
|
|
3005
|
+
openAdd: d,
|
|
3006
|
+
openEdit: S,
|
|
3007
|
+
close: y,
|
|
2972
3008
|
resetForm: c,
|
|
2973
3009
|
handleSubmit: async () => {
|
|
2974
|
-
var
|
|
3010
|
+
var E;
|
|
2975
3011
|
try {
|
|
2976
|
-
await ((
|
|
2977
|
-
} catch (
|
|
2978
|
-
console.error(
|
|
3012
|
+
await ((E = s.value) == null ? void 0 : E.validate()), i.value = !0, await (r == null ? void 0 : r(v)), y();
|
|
3013
|
+
} catch (A) {
|
|
3014
|
+
console.error(A);
|
|
2979
3015
|
} finally {
|
|
2980
|
-
|
|
3016
|
+
i.value = !1;
|
|
2981
3017
|
}
|
|
2982
3018
|
}
|
|
2983
3019
|
};
|
|
2984
3020
|
}
|
|
2985
|
-
function
|
|
2986
|
-
const { fetchData: o, defaultPageSize: p = 10 } = t,
|
|
2987
|
-
|
|
3021
|
+
function Il(t) {
|
|
3022
|
+
const { fetchData: o, defaultPageSize: p = 10 } = t, r = g(!1), s = g([]), v = g(0), i = g(1), h = g(p), m = Ze({}), d = async () => {
|
|
3023
|
+
r.value = !0;
|
|
2988
3024
|
try {
|
|
2989
|
-
const
|
|
2990
|
-
...
|
|
2991
|
-
page:
|
|
2992
|
-
pageSize:
|
|
2993
|
-
},
|
|
2994
|
-
s.value =
|
|
2995
|
-
} catch (
|
|
2996
|
-
console.error(
|
|
3025
|
+
const V = {
|
|
3026
|
+
...m,
|
|
3027
|
+
page: i.value,
|
|
3028
|
+
pageSize: h.value
|
|
3029
|
+
}, K = await o(V);
|
|
3030
|
+
s.value = K.list, v.value = K.total;
|
|
3031
|
+
} catch (V) {
|
|
3032
|
+
console.error(V);
|
|
2997
3033
|
} finally {
|
|
2998
|
-
|
|
3034
|
+
r.value = !1;
|
|
2999
3035
|
}
|
|
3000
|
-
},
|
|
3001
|
-
|
|
3002
|
-
},
|
|
3003
|
-
Object.keys(
|
|
3004
|
-
|
|
3005
|
-
}),
|
|
3006
|
-
}, c = (
|
|
3007
|
-
|
|
3008
|
-
},
|
|
3009
|
-
|
|
3010
|
-
},
|
|
3011
|
-
|
|
3012
|
-
},
|
|
3013
|
-
current:
|
|
3014
|
-
pageSize:
|
|
3015
|
-
total:
|
|
3036
|
+
}, S = () => {
|
|
3037
|
+
i.value = 1, d();
|
|
3038
|
+
}, y = () => {
|
|
3039
|
+
Object.keys(m).forEach((V) => {
|
|
3040
|
+
m[V] = void 0;
|
|
3041
|
+
}), i.value = 1, d();
|
|
3042
|
+
}, c = (V) => {
|
|
3043
|
+
i.value = V, d();
|
|
3044
|
+
}, _ = (V) => {
|
|
3045
|
+
h.value = V, i.value = 1, d();
|
|
3046
|
+
}, E = () => {
|
|
3047
|
+
d();
|
|
3048
|
+
}, A = k(() => ({
|
|
3049
|
+
current: i.value,
|
|
3050
|
+
pageSize: h.value,
|
|
3051
|
+
total: v.value
|
|
3016
3052
|
}));
|
|
3017
3053
|
return {
|
|
3018
|
-
loading:
|
|
3054
|
+
loading: r,
|
|
3019
3055
|
data: s,
|
|
3020
|
-
total:
|
|
3021
|
-
currentPage:
|
|
3022
|
-
pageSize:
|
|
3023
|
-
searchParams:
|
|
3024
|
-
pagination:
|
|
3025
|
-
getData:
|
|
3026
|
-
handleSearch:
|
|
3027
|
-
handleReset:
|
|
3056
|
+
total: v,
|
|
3057
|
+
currentPage: i,
|
|
3058
|
+
pageSize: h,
|
|
3059
|
+
searchParams: m,
|
|
3060
|
+
pagination: A,
|
|
3061
|
+
getData: d,
|
|
3062
|
+
handleSearch: S,
|
|
3063
|
+
handleReset: y,
|
|
3028
3064
|
handlePageChange: c,
|
|
3029
|
-
handleSizeChange:
|
|
3030
|
-
refresh:
|
|
3065
|
+
handleSizeChange: _,
|
|
3066
|
+
refresh: E
|
|
3031
3067
|
};
|
|
3032
3068
|
}
|
|
3033
|
-
const ot =
|
|
3034
|
-
const t =
|
|
3035
|
-
const c =
|
|
3069
|
+
const ot = ze("locale", () => {
|
|
3070
|
+
const t = z.get("locale") || "zh-CN", o = Gt(t), p = g(t), r = Ht(), { t: s, messages: v, setLocale: i, mergeMessages: h } = Yt(), m = k(() => {
|
|
3071
|
+
const c = r.find((_) => _.code === p.value);
|
|
3036
3072
|
return (c == null ? void 0 : c.name) || p.value;
|
|
3037
3073
|
});
|
|
3038
3074
|
return {
|
|
3039
3075
|
locale: p,
|
|
3040
|
-
localeName:
|
|
3041
|
-
locales:
|
|
3042
|
-
messages:
|
|
3076
|
+
localeName: m,
|
|
3077
|
+
locales: r,
|
|
3078
|
+
messages: v,
|
|
3043
3079
|
t: s,
|
|
3044
3080
|
changeLocale: (c) => {
|
|
3045
|
-
p.value = c,
|
|
3081
|
+
p.value = c, i(c), z.set("locale", c), o.setLocale(c);
|
|
3046
3082
|
},
|
|
3047
3083
|
addMessages: (c) => {
|
|
3048
|
-
|
|
3084
|
+
h(c);
|
|
3049
3085
|
},
|
|
3050
3086
|
initLocale: () => {
|
|
3051
|
-
|
|
3087
|
+
i(t);
|
|
3052
3088
|
},
|
|
3053
3089
|
provider: o
|
|
3054
3090
|
};
|
|
3055
|
-
}),
|
|
3091
|
+
}), ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3056
3092
|
__proto__: null,
|
|
3057
3093
|
useLocaleStore: ot
|
|
3058
3094
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3059
|
-
function
|
|
3095
|
+
function El() {
|
|
3060
3096
|
const t = ot();
|
|
3061
3097
|
return {
|
|
3062
3098
|
/** 当前语言代码 */
|
|
@@ -3075,30 +3111,30 @@ function Cl() {
|
|
|
3075
3111
|
addMessages: t.addMessages
|
|
3076
3112
|
};
|
|
3077
3113
|
}
|
|
3078
|
-
function
|
|
3114
|
+
function Nl() {
|
|
3079
3115
|
return ot().t;
|
|
3080
3116
|
}
|
|
3081
|
-
function
|
|
3082
|
-
const o =
|
|
3117
|
+
function Tl(t) {
|
|
3118
|
+
const o = ue(), p = ge();
|
|
3083
3119
|
return o.isLoggedIn ? p.hasPermission(t) : !1;
|
|
3084
3120
|
}
|
|
3085
|
-
function
|
|
3086
|
-
return
|
|
3121
|
+
function Ul(t) {
|
|
3122
|
+
return ue().isLoggedIn;
|
|
3087
3123
|
}
|
|
3088
|
-
function
|
|
3124
|
+
function Pl() {
|
|
3089
3125
|
return !0;
|
|
3090
3126
|
}
|
|
3091
3127
|
const yt = [
|
|
3092
3128
|
{
|
|
3093
3129
|
path: "/login",
|
|
3094
3130
|
name: "Login",
|
|
3095
|
-
component: () => Promise.resolve().then(() =>
|
|
3131
|
+
component: () => Promise.resolve().then(() => Wn),
|
|
3096
3132
|
meta: {
|
|
3097
3133
|
title: "登录",
|
|
3098
3134
|
hidden: !0
|
|
3099
3135
|
}
|
|
3100
3136
|
}
|
|
3101
|
-
],
|
|
3137
|
+
], kt = {
|
|
3102
3138
|
path: "/",
|
|
3103
3139
|
name: "Layout",
|
|
3104
3140
|
component: () => Promise.resolve().then(() => hn),
|
|
@@ -3107,7 +3143,7 @@ const yt = [
|
|
|
3107
3143
|
{
|
|
3108
3144
|
path: "/dashboard",
|
|
3109
3145
|
name: "Dashboard",
|
|
3110
|
-
component: () => import("./index-
|
|
3146
|
+
component: () => import("./index-Dwam1Jgp.js"),
|
|
3111
3147
|
meta: {
|
|
3112
3148
|
title: "仪表盘",
|
|
3113
3149
|
icon: "dashboard",
|
|
@@ -3118,7 +3154,7 @@ const yt = [
|
|
|
3118
3154
|
{
|
|
3119
3155
|
path: "/system/user",
|
|
3120
3156
|
name: "SystemUser",
|
|
3121
|
-
component: () => import("./index-
|
|
3157
|
+
component: () => import("./index-CRTSR10l.js"),
|
|
3122
3158
|
meta: {
|
|
3123
3159
|
title: "用户管理",
|
|
3124
3160
|
icon: "user",
|
|
@@ -3128,7 +3164,7 @@ const yt = [
|
|
|
3128
3164
|
{
|
|
3129
3165
|
path: "/system/role",
|
|
3130
3166
|
name: "SystemRole",
|
|
3131
|
-
component: () => import("./index-
|
|
3167
|
+
component: () => import("./index-DOasEvMf.js"),
|
|
3132
3168
|
meta: {
|
|
3133
3169
|
title: "角色管理",
|
|
3134
3170
|
icon: "role",
|
|
@@ -3138,7 +3174,7 @@ const yt = [
|
|
|
3138
3174
|
{
|
|
3139
3175
|
path: "/system/menu",
|
|
3140
3176
|
name: "SystemMenu",
|
|
3141
|
-
component: () => import("./index-
|
|
3177
|
+
component: () => import("./index-B-oRV32U.js"),
|
|
3142
3178
|
meta: {
|
|
3143
3179
|
title: "菜单管理",
|
|
3144
3180
|
icon: "menu",
|
|
@@ -3156,11 +3192,11 @@ const yt = [
|
|
|
3156
3192
|
}
|
|
3157
3193
|
}
|
|
3158
3194
|
]
|
|
3159
|
-
},
|
|
3195
|
+
}, zl = [
|
|
3160
3196
|
{
|
|
3161
3197
|
path: "/dashboard",
|
|
3162
3198
|
name: "Dashboard",
|
|
3163
|
-
component: () => import("./index-
|
|
3199
|
+
component: () => import("./index-Dwam1Jgp.js"),
|
|
3164
3200
|
meta: {
|
|
3165
3201
|
title: "仪表盘",
|
|
3166
3202
|
icon: "dashboard",
|
|
@@ -3180,7 +3216,7 @@ const yt = [
|
|
|
3180
3216
|
{
|
|
3181
3217
|
path: "user",
|
|
3182
3218
|
name: "SystemUser",
|
|
3183
|
-
component: () => import("./index-
|
|
3219
|
+
component: () => import("./index-CRTSR10l.js"),
|
|
3184
3220
|
meta: {
|
|
3185
3221
|
title: "用户管理",
|
|
3186
3222
|
icon: "user",
|
|
@@ -3190,7 +3226,7 @@ const yt = [
|
|
|
3190
3226
|
{
|
|
3191
3227
|
path: "role",
|
|
3192
3228
|
name: "SystemRole",
|
|
3193
|
-
component: () => import("./index-
|
|
3229
|
+
component: () => import("./index-DOasEvMf.js"),
|
|
3194
3230
|
meta: {
|
|
3195
3231
|
title: "角色管理",
|
|
3196
3232
|
icon: "role",
|
|
@@ -3200,7 +3236,7 @@ const yt = [
|
|
|
3200
3236
|
{
|
|
3201
3237
|
path: "menu",
|
|
3202
3238
|
name: "SystemMenu",
|
|
3203
|
-
component: () => import("./index-
|
|
3239
|
+
component: () => import("./index-B-oRV32U.js"),
|
|
3204
3240
|
meta: {
|
|
3205
3241
|
title: "菜单管理",
|
|
3206
3242
|
icon: "menu",
|
|
@@ -3209,7 +3245,7 @@ const yt = [
|
|
|
3209
3245
|
}
|
|
3210
3246
|
]
|
|
3211
3247
|
}
|
|
3212
|
-
],
|
|
3248
|
+
], al = [
|
|
3213
3249
|
{
|
|
3214
3250
|
menuCode: "dashboard",
|
|
3215
3251
|
menuName: "仪表盘",
|
|
@@ -3257,18 +3293,18 @@ const yt = [
|
|
|
3257
3293
|
}
|
|
3258
3294
|
]
|
|
3259
3295
|
}
|
|
3260
|
-
],
|
|
3296
|
+
], wt = Qe({
|
|
3261
3297
|
history: et(),
|
|
3262
|
-
routes: [...yt,
|
|
3298
|
+
routes: [...yt, kt],
|
|
3263
3299
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
3264
|
-
}),
|
|
3265
|
-
|
|
3266
|
-
const
|
|
3267
|
-
if (
|
|
3300
|
+
}), nl = ["/login"];
|
|
3301
|
+
wt.beforeEach(async (t, o, p) => {
|
|
3302
|
+
const r = fe();
|
|
3303
|
+
if (r.initTheme(), mt())
|
|
3268
3304
|
if (t.path === "/login")
|
|
3269
3305
|
p({ path: "/" });
|
|
3270
3306
|
else {
|
|
3271
|
-
const s =
|
|
3307
|
+
const s = ue();
|
|
3272
3308
|
s.isLoggedIn || (s.setUserInfo({
|
|
3273
3309
|
appId: Se(),
|
|
3274
3310
|
userId: "1",
|
|
@@ -3278,20 +3314,20 @@ kt.beforeEach(async (t, o, p) => {
|
|
|
3278
3314
|
mobilePhone: "13800138000",
|
|
3279
3315
|
positionName: "管理员",
|
|
3280
3316
|
avatar: ""
|
|
3281
|
-
}), ge().setMenuList(
|
|
3317
|
+
}), ge().setMenuList(al)), t.name && t.meta.keepAlive && r.addCachedView(t.name), p();
|
|
3282
3318
|
}
|
|
3283
3319
|
else
|
|
3284
|
-
|
|
3320
|
+
nl.includes(t.path) ? p() : p("/login");
|
|
3285
3321
|
});
|
|
3286
|
-
function
|
|
3287
|
-
const t =
|
|
3322
|
+
function Fl() {
|
|
3323
|
+
const t = Qe({
|
|
3288
3324
|
history: et(),
|
|
3289
|
-
routes: [...yt,
|
|
3325
|
+
routes: [...yt, kt]
|
|
3290
3326
|
});
|
|
3291
|
-
|
|
3327
|
+
wt.matcher = t.matcher;
|
|
3292
3328
|
}
|
|
3293
|
-
function
|
|
3294
|
-
const p = o.indexPath || "/dashboard",
|
|
3329
|
+
function Dl(t, o = {}) {
|
|
3330
|
+
const p = o.indexPath || "/dashboard", r = o.logoSrc, s = {
|
|
3295
3331
|
path: "/:pathMatch(.*)*",
|
|
3296
3332
|
name: "CatchAll",
|
|
3297
3333
|
component: () => Promise.resolve().then(() => gt),
|
|
@@ -3305,81 +3341,81 @@ function Nl(t, o = {}) {
|
|
|
3305
3341
|
component: ae({
|
|
3306
3342
|
name: "LayoutWrapper",
|
|
3307
3343
|
render() {
|
|
3308
|
-
return At(
|
|
3344
|
+
return At(_t, { logoSrc: r || Pe("/vite.svg") });
|
|
3309
3345
|
}
|
|
3310
3346
|
}),
|
|
3311
3347
|
redirect: p,
|
|
3312
3348
|
children: [...t, s]
|
|
3313
3349
|
};
|
|
3314
3350
|
}
|
|
3315
|
-
function
|
|
3351
|
+
function Al(t, o = {}) {
|
|
3316
3352
|
const p = o.base || xt();
|
|
3317
|
-
return
|
|
3353
|
+
return Qe({
|
|
3318
3354
|
history: et(p),
|
|
3319
3355
|
routes: t,
|
|
3320
3356
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
3321
3357
|
});
|
|
3322
3358
|
}
|
|
3323
|
-
const
|
|
3324
|
-
function
|
|
3359
|
+
const ll = ["login", "404", "403", "/login", "/404", "/403"];
|
|
3360
|
+
function rl(t, o) {
|
|
3325
3361
|
if (o.includes(t)) return !0;
|
|
3326
3362
|
const p = t.startsWith("/") ? t.slice(1) : t;
|
|
3327
3363
|
return o.includes(p);
|
|
3328
3364
|
}
|
|
3329
|
-
function
|
|
3330
|
-
const p = o.whiteList ||
|
|
3331
|
-
t.beforeEach(async (
|
|
3332
|
-
const
|
|
3333
|
-
if (
|
|
3334
|
-
if (
|
|
3335
|
-
|
|
3336
|
-
else if (
|
|
3337
|
-
if (!
|
|
3365
|
+
function Bl(t, o = {}) {
|
|
3366
|
+
const p = o.whiteList || ll;
|
|
3367
|
+
t.beforeEach(async (r, s, v) => {
|
|
3368
|
+
const i = fe(), h = ue(), m = ge(), d = i.loginPath || o.loginPath || "/login";
|
|
3369
|
+
if (i.initTheme(), ut())
|
|
3370
|
+
if (r.path === d || r.name === "Login")
|
|
3371
|
+
v({ name: "Dashboard" });
|
|
3372
|
+
else if (h.isLoggedIn) {
|
|
3373
|
+
if (!m.hasMenu)
|
|
3338
3374
|
try {
|
|
3339
|
-
const
|
|
3340
|
-
|
|
3341
|
-
} catch (
|
|
3342
|
-
console.warn("补拉菜单失败:",
|
|
3375
|
+
const y = o.fetchMenu ? await o.fetchMenu() : await lt(o.appId);
|
|
3376
|
+
m.setMenuList(y);
|
|
3377
|
+
} catch (y) {
|
|
3378
|
+
console.warn("补拉菜单失败:", y);
|
|
3343
3379
|
}
|
|
3344
|
-
|
|
3380
|
+
r.name && r.meta.keepAlive && i.addCachedView(r.name), v();
|
|
3345
3381
|
} else
|
|
3346
3382
|
try {
|
|
3347
3383
|
if (o.fetchUserInfo) {
|
|
3348
|
-
const
|
|
3349
|
-
|
|
3384
|
+
const y = await o.fetchUserInfo();
|
|
3385
|
+
h.setUserInfo(y);
|
|
3350
3386
|
} else {
|
|
3351
|
-
const
|
|
3352
|
-
|
|
3387
|
+
const y = await Ct();
|
|
3388
|
+
h.setUserInfo(y);
|
|
3353
3389
|
}
|
|
3354
3390
|
if (o.fetchMenu) {
|
|
3355
|
-
const
|
|
3356
|
-
|
|
3391
|
+
const y = await o.fetchMenu();
|
|
3392
|
+
m.setMenuList(y);
|
|
3357
3393
|
} else {
|
|
3358
|
-
const
|
|
3359
|
-
|
|
3394
|
+
const y = await lt(o.appId);
|
|
3395
|
+
m.setMenuList(y);
|
|
3360
3396
|
}
|
|
3361
|
-
o.onLoginSuccess && o.onLoginSuccess(),
|
|
3362
|
-
} catch (
|
|
3363
|
-
console.error("获取用户信息失败:",
|
|
3397
|
+
o.onLoginSuccess && o.onLoginSuccess(), r.name && r.meta.keepAlive && i.addCachedView(r.name), v({ ...r, replace: !0 });
|
|
3398
|
+
} catch (y) {
|
|
3399
|
+
console.error("获取用户信息失败:", y), h.clearUserInfo(), m.clearMenu(), pt(), v({ name: "Login", query: { redirect: r.fullPath } });
|
|
3364
3400
|
}
|
|
3365
3401
|
else
|
|
3366
|
-
|
|
3402
|
+
rl(r.path, p) || r.name === "Login" || r.name === "NotFound" || r.name === "Forbidden" ? v() : v({ name: "Login", query: { redirect: r.fullPath } });
|
|
3367
3403
|
}), t.afterEach(() => {
|
|
3368
3404
|
});
|
|
3369
3405
|
}
|
|
3370
|
-
var
|
|
3371
|
-
const
|
|
3406
|
+
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 || {});
|
|
3407
|
+
const Ol = {
|
|
3372
3408
|
1: "启用",
|
|
3373
3409
|
0: "禁用"
|
|
3374
|
-
},
|
|
3410
|
+
}, Rl = {
|
|
3375
3411
|
0: "未知",
|
|
3376
3412
|
1: "男",
|
|
3377
3413
|
2: "女"
|
|
3378
|
-
},
|
|
3414
|
+
}, Vl = {
|
|
3379
3415
|
0: "目录",
|
|
3380
3416
|
1: "菜单",
|
|
3381
3417
|
2: "按钮"
|
|
3382
|
-
},
|
|
3418
|
+
}, Kl = [
|
|
3383
3419
|
{
|
|
3384
3420
|
label: "启用",
|
|
3385
3421
|
value: 1
|
|
@@ -3390,7 +3426,7 @@ const zl = {
|
|
|
3390
3426
|
value: 0
|
|
3391
3427
|
/* DISABLED */
|
|
3392
3428
|
}
|
|
3393
|
-
],
|
|
3429
|
+
], jl = [
|
|
3394
3430
|
{
|
|
3395
3431
|
label: "未知",
|
|
3396
3432
|
value: 0
|
|
@@ -3406,7 +3442,7 @@ const zl = {
|
|
|
3406
3442
|
value: 2
|
|
3407
3443
|
/* FEMALE */
|
|
3408
3444
|
}
|
|
3409
|
-
],
|
|
3445
|
+
], Wl = [
|
|
3410
3446
|
{
|
|
3411
3447
|
label: "目录",
|
|
3412
3448
|
value: 0
|
|
@@ -3422,42 +3458,42 @@ const zl = {
|
|
|
3422
3458
|
value: 2
|
|
3423
3459
|
/* BUTTON */
|
|
3424
3460
|
}
|
|
3425
|
-
],
|
|
3461
|
+
], ql = {
|
|
3426
3462
|
mounted(t, o) {
|
|
3427
|
-
var
|
|
3428
|
-
const p =
|
|
3463
|
+
var i, h;
|
|
3464
|
+
const p = ue(), r = ge();
|
|
3429
3465
|
if (!p.isLoggedIn) {
|
|
3430
|
-
(
|
|
3466
|
+
(i = t.parentNode) == null || i.removeChild(t);
|
|
3431
3467
|
return;
|
|
3432
3468
|
}
|
|
3433
|
-
const s = o.value,
|
|
3434
|
-
|
|
3469
|
+
const s = o.value, v = Array.isArray(s) ? s : [s];
|
|
3470
|
+
r.hasPermission(v) || (h = t.parentNode) == null || h.removeChild(t);
|
|
3435
3471
|
}
|
|
3436
3472
|
};
|
|
3437
|
-
async function
|
|
3473
|
+
async function Gl(t) {
|
|
3438
3474
|
await $t(t.basePath);
|
|
3439
3475
|
const o = rt();
|
|
3440
|
-
o &&
|
|
3476
|
+
o && Mt(o), Lt({
|
|
3441
3477
|
appId: t.appId,
|
|
3442
3478
|
clientId: t.clientId,
|
|
3443
3479
|
apiBaseUrl: o || t.apiBaseUrl,
|
|
3444
3480
|
basePath: t.basePath
|
|
3445
3481
|
}), t.basePath && St(t.basePath);
|
|
3446
|
-
const p = typeof window < "u" && window.location.pathname.includes("/h5/"),
|
|
3447
|
-
if (
|
|
3482
|
+
const p = typeof window < "u" && window.location.pathname.includes("/h5/"), r = t.appId || Se();
|
|
3483
|
+
if (r && !p)
|
|
3448
3484
|
try {
|
|
3449
3485
|
const s = await Promise.race([
|
|
3450
|
-
It(
|
|
3451
|
-
new Promise((
|
|
3486
|
+
It(r),
|
|
3487
|
+
new Promise((v) => setTimeout(() => v(null), 2e3))
|
|
3452
3488
|
]);
|
|
3453
3489
|
s && typeof s == "object" && Et(s);
|
|
3454
3490
|
} catch (s) {
|
|
3455
3491
|
console.warn("加载应用界面配置失败,使用内置默认", s);
|
|
3456
3492
|
}
|
|
3457
|
-
return Promise.resolve().then(() =>
|
|
3458
|
-
const
|
|
3459
|
-
t.appName &&
|
|
3460
|
-
}), t.locale && Promise.resolve().then(() =>
|
|
3493
|
+
return Promise.resolve().then(() => Jt).then(({ useAppStore: s }) => {
|
|
3494
|
+
const v = s();
|
|
3495
|
+
t.appName && v.setAppName(t.appName), t.indexPath && v.setIndexPath(t.indexPath), t.loginPath && v.setLoginPath(t.loginPath);
|
|
3496
|
+
}), t.locale && Promise.resolve().then(() => ol).then(({ useLocaleStore: s }) => {
|
|
3461
3497
|
s().changeLocale(t.locale);
|
|
3462
3498
|
}), {
|
|
3463
3499
|
config: {
|
|
@@ -3473,50 +3509,50 @@ async function Vl(t) {
|
|
|
3473
3509
|
};
|
|
3474
3510
|
}
|
|
3475
3511
|
export {
|
|
3476
|
-
|
|
3512
|
+
Bl as A,
|
|
3477
3513
|
yt as B,
|
|
3478
|
-
|
|
3514
|
+
Ml as C,
|
|
3479
3515
|
fe as D,
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3516
|
+
Ll as E,
|
|
3517
|
+
bl as F,
|
|
3518
|
+
cl as G,
|
|
3483
3519
|
to as H,
|
|
3484
3520
|
Fe as I,
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3521
|
+
Sl as J,
|
|
3522
|
+
El as K,
|
|
3523
|
+
_t as L,
|
|
3524
|
+
dl as M,
|
|
3489
3525
|
ot as N,
|
|
3490
3526
|
ge as O,
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3527
|
+
Il as P,
|
|
3528
|
+
ue as Q,
|
|
3529
|
+
il as S,
|
|
3530
|
+
Cl as T,
|
|
3495
3531
|
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
|
-
|
|
3532
|
+
Kl as a,
|
|
3533
|
+
Wl as b,
|
|
3534
|
+
wl as c,
|
|
3535
|
+
$l as d,
|
|
3536
|
+
jl as e,
|
|
3537
|
+
Rl as f,
|
|
3538
|
+
Vl as g,
|
|
3539
|
+
Zn as h,
|
|
3540
|
+
jn as i,
|
|
3541
|
+
dt as j,
|
|
3542
|
+
Ol as k,
|
|
3543
|
+
xl as l,
|
|
3544
|
+
kl as m,
|
|
3545
|
+
Dl as n,
|
|
3546
|
+
Al as o,
|
|
3547
|
+
Nl as p,
|
|
3548
|
+
Gl as q,
|
|
3549
|
+
zl as r,
|
|
3550
|
+
Tl as s,
|
|
3551
|
+
Ul as t,
|
|
3552
|
+
Pl as u,
|
|
3553
|
+
kt as v,
|
|
3554
|
+
al as w,
|
|
3555
|
+
ql as x,
|
|
3556
|
+
Fl as y,
|
|
3557
|
+
wt as z
|
|
3522
3558
|
};
|