xto-fronted 0.4.67 → 0.4.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-2RwL0s53.js → index-BvMcnGze.js} +1 -1
- package/dist/{index-B3_VQZ-d.js → index-D0JXJmlJ.js} +1 -1
- package/dist/{index-B1VS4tRU.js → index-DZEVfuKk.js} +1 -1
- package/dist/{index-B05xso4D.js → index-Df8leAO9.js} +1 -1
- package/dist/{index-C69vu_ot.js → index-XgM0GMu2.js} +961 -945
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Layout/Sidebar.vue +40 -1
- package/dist/assets/404-ByYjFnhI.js +0 -1
- package/dist/assets/404-sqW80Hc-.css +0 -1
- package/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js +0 -1
- package/dist/assets/index-BBhC8PX4.js +0 -1
- package/dist/assets/index-BOEFG4lP.css +0 -1
- package/dist/assets/index-BRR97dc6.js +0 -1
- package/dist/assets/index-BihVoviB.js +0 -1
- package/dist/assets/index-BrvR0Fn_.css +0 -1
- package/dist/assets/index-C4ZCZoPp.js +0 -1
- package/dist/assets/index-CUh_s55Z.css +0 -1
- package/dist/assets/index-D0OnMilp.js +0 -1
- package/dist/assets/index-D9wlAuR_.js +0 -1
- package/dist/assets/index-DPkO-STg.js +0 -1
- package/dist/assets/index-DawJb02s.css +0 -1
- package/dist/assets/index-DiHSZ6SJ.js +0 -2
- package/dist/assets/index-GDP-IkXE.css +0 -1
- package/dist/assets/index-PfV8pzQz.css +0 -1
- package/dist/assets/index-Swfu6yvD.css +0 -1
- package/dist/assets/vendor-42ANG6Sg.js +0 -6
- package/dist/assets/vite-Dw-pgLOX.js +0 -1
- package/dist/assets/vue-vendor-Br-l7wbK.js +0 -29
- package/dist/assets/xto-base-C-IBqjVs.js +0 -1
- package/dist/assets/xto-base-C6eqMPdO.css +0 -1
- package/dist/assets/xto-business--V1F5Gwb.css +0 -1
- package/dist/assets/xto-core-DZK7Cyg0.js +0 -1
- package/dist/assets/xto-data-BFpiDgJi.js +0 -1
- package/dist/assets/xto-data-CnAQAQH2.css +0 -1
- package/dist/assets/xto-feedback-B2M02fn3.js +0 -1
- package/dist/assets/xto-feedback-ByaS-C7_.css +0 -1
- package/dist/assets/xto-form-CrsyAjyr.css +0 -1
- package/dist/assets/xto-form-NRjKKNcY.js +0 -1
- package/dist/assets/xto-layout-D1stVnJI.css +0 -1
- package/dist/assets/xto-navigation-BuRQVoD8.css +0 -1
- package/dist/assets/xto-navigation-qLRTxo68.js +0 -1
- package/dist/index-0h_oG71z.js +0 -345
- package/dist/index-1EEezXR3.js +0 -142
- package/dist/index-1EkaJDoD.js +0 -142
- package/dist/index-1VN-SSaj.js +0 -2873
- package/dist/index-23nX2t9j.js +0 -142
- package/dist/index-2tvOdd6w.js +0 -372
- package/dist/index-3zeoNaqT.js +0 -345
- package/dist/index-8oCLh51t.js +0 -475
- package/dist/index-AF5JN8Up.js +0 -142
- package/dist/index-B02xiP9g.js +0 -372
- package/dist/index-B3kL6i_g.js +0 -345
- package/dist/index-B4Wny0vt.js +0 -345
- package/dist/index-B5RdBQ-f.js +0 -475
- package/dist/index-B5rbuoWS.js +0 -2835
- package/dist/index-BAFpPlnI.js +0 -475
- package/dist/index-BAJakzRz.js +0 -142
- package/dist/index-BAOHlfVd.js +0 -142
- package/dist/index-BAzJWzWG.js +0 -2852
- package/dist/index-BEIxh_R3.js +0 -2982
- package/dist/index-BEWrRNps.js +0 -475
- package/dist/index-BFtKVmzo.js +0 -142
- package/dist/index-BHPrW1wN.js +0 -142
- package/dist/index-BHQIqN1E.js +0 -372
- package/dist/index-BHZ_y8lp.js +0 -2067
- package/dist/index-BHvnTk5Z.js +0 -475
- package/dist/index-BIf7CYCW.js +0 -475
- package/dist/index-BK1Y1z9_.js +0 -142
- package/dist/index-BK8qDl14.js +0 -372
- package/dist/index-BKnta6nv.js +0 -372
- package/dist/index-BLIem13z.js +0 -345
- package/dist/index-BNBv_FCu.js +0 -142
- package/dist/index-BNwtCm83.js +0 -345
- package/dist/index-BOEMA7WH.js +0 -345
- package/dist/index-BOwDukt-.js +0 -2346
- package/dist/index-BR9WVjrV.js +0 -2851
- package/dist/index-BRMkw154.js +0 -475
- package/dist/index-BRQBannD.js +0 -345
- package/dist/index-BShKtLTm.js +0 -475
- package/dist/index-BVpqTdd2.js +0 -3132
- package/dist/index-BWGQANAN.js +0 -2851
- package/dist/index-BZKw7U60.js +0 -475
- package/dist/index-BadGWG4q.js +0 -475
- package/dist/index-BbeWpCd3.js +0 -345
- package/dist/index-BeUYNx5P.js +0 -475
- package/dist/index-BgiGtxRr.js +0 -142
- package/dist/index-BhKJLk9M.js +0 -2824
- package/dist/index-BijsKQ3r.js +0 -475
- package/dist/index-BjEfspqP.js +0 -475
- package/dist/index-BjEnT8WQ.js +0 -372
- package/dist/index-BpOcz1m4.js +0 -142
- package/dist/index-BrRdLbLB.js +0 -142
- package/dist/index-BsHOXfCq.js +0 -372
- package/dist/index-Bt5ocakb.js +0 -475
- package/dist/index-BtE24Mt4.js +0 -142
- package/dist/index-BvcBQjw6.js +0 -2836
- package/dist/index-C0krZRWf.js +0 -2859
- package/dist/index-C1cKUqmA.js +0 -372
- package/dist/index-C3ANmIDM.js +0 -475
- package/dist/index-C5JrEkwD.js +0 -345
- package/dist/index-C5m4qNMQ.js +0 -2851
- package/dist/index-C6Um6eFy.js +0 -475
- package/dist/index-C75ePQYC.js +0 -372
- package/dist/index-C7wKLGhC.js +0 -142
- package/dist/index-C8DBDnxx.js +0 -2836
- package/dist/index-CAnqlIjX.js +0 -475
- package/dist/index-CB36fztK.js +0 -345
- package/dist/index-CBKo6Enz.js +0 -345
- package/dist/index-CBcuyFIa.js +0 -2326
- package/dist/index-CCxIu4ex.js +0 -372
- package/dist/index-CD1ZEMzL.js +0 -2836
- package/dist/index-CDx-6tvY.js +0 -345
- package/dist/index-CGrvOpdb.js +0 -372
- package/dist/index-CHJWNf3f.js +0 -475
- package/dist/index-CIb06BxE.js +0 -372
- package/dist/index-CLiJcB9v.js +0 -142
- package/dist/index-CNS6Ohfw.js +0 -2853
- package/dist/index-COkjB5Jm.js +0 -142
- package/dist/index-CS5h1O5W.js +0 -345
- package/dist/index-CT0deRSL.js +0 -372
- package/dist/index-CTQQBaf4.js +0 -345
- package/dist/index-CUAC0ZFB.js +0 -475
- package/dist/index-CVMV9Tfg.js +0 -142
- package/dist/index-CWOx59Vc.js +0 -142
- package/dist/index-CWdSR99B.js +0 -372
- package/dist/index-CWvOcS8Y.js +0 -345
- package/dist/index-C_8yJlf1.js +0 -475
- package/dist/index-C_MzXmh2.js +0 -2830
- package/dist/index-Cb7HXiBR.js +0 -372
- package/dist/index-CbA8oUvZ.js +0 -142
- package/dist/index-CbEIzXG9.js +0 -475
- package/dist/index-Cb_m0zz1.js +0 -475
- package/dist/index-Cc6HgGzc.js +0 -142
- package/dist/index-CcWdW9Mj.js +0 -372
- package/dist/index-CdAqkP8L.js +0 -345
- package/dist/index-CeVUHSt9.js +0 -2847
- package/dist/index-CejRpy0a.js +0 -475
- package/dist/index-Cg5wO_jJ.js +0 -372
- package/dist/index-CgZM1vHq.js +0 -372
- package/dist/index-CgofFg1D.js +0 -372
- package/dist/index-ChheXGDK.js +0 -372
- package/dist/index-ChuFHoI0.js +0 -372
- package/dist/index-CiOJZ6_b.js +0 -372
- package/dist/index-ClCWmz_7.js +0 -2844
- package/dist/index-CmajGrKA.js +0 -142
- package/dist/index-Cn_4o3fi.js +0 -345
- package/dist/index-CoJBI1vE.js +0 -345
- package/dist/index-CqLLaQ-P.js +0 -372
- package/dist/index-CsRhLwmR.js +0 -475
- package/dist/index-CttJvDTG.js +0 -475
- package/dist/index-Cu3m9UeX.js +0 -345
- package/dist/index-CyQbOMHa.js +0 -2859
- package/dist/index-D-NcbLKL.js +0 -345
- package/dist/index-D0gstkiI.js +0 -2836
- package/dist/index-D0krzDtx.js +0 -475
- package/dist/index-D1moFd4V.js +0 -372
- package/dist/index-D2Hs4bZj.js +0 -345
- package/dist/index-D4QhrTZs.js +0 -475
- package/dist/index-D6CC02F-.js +0 -372
- package/dist/index-D6s7Za5s.js +0 -142
- package/dist/index-D7i5bck2.js +0 -3132
- package/dist/index-D8YBeNfn.js +0 -345
- package/dist/index-D93bv6lU.js +0 -372
- package/dist/index-DAX_bFj5.js +0 -142
- package/dist/index-DBii9cjr.js +0 -475
- package/dist/index-DBzpSkNi.js +0 -345
- package/dist/index-DCuKNBck.js +0 -3153
- package/dist/index-DE3uKf0K.js +0 -142
- package/dist/index-DGAqp0QX.js +0 -372
- package/dist/index-DGh_w_v1.js +0 -475
- package/dist/index-DItKvJyI.js +0 -475
- package/dist/index-DKAyB0fv.js +0 -345
- package/dist/index-DKN4xsXi.js +0 -2851
- package/dist/index-DN_iIn8V.js +0 -345
- package/dist/index-DONIBpuJ.js +0 -345
- package/dist/index-DPDK8Ht4.js +0 -2851
- package/dist/index-DPr3ldST.js +0 -2354
- package/dist/index-DS1wfdxM.js +0 -142
- package/dist/index-DUW5cCh8.js +0 -372
- package/dist/index-DUv28uVd.js +0 -142
- package/dist/index-DVS-5SZn.js +0 -475
- package/dist/index-DWI51JAp.js +0 -372
- package/dist/index-DWVmEexu.js +0 -475
- package/dist/index-DXf9wUqQ.js +0 -142
- package/dist/index-DXmB-sjP.js +0 -345
- package/dist/index-DY_e_Dxv.js +0 -372
- package/dist/index-DZar-us7.js +0 -142
- package/dist/index-D_nwqVrw.js +0 -2847
- package/dist/index-DbEeir7h.js +0 -2834
- package/dist/index-Dbf5ypbh.js +0 -142
- package/dist/index-DcSK-2pt.js +0 -345
- package/dist/index-DclK-Mc7.js +0 -2864
- package/dist/index-DcnzaxVi.js +0 -142
- package/dist/index-Dd8PlF0M.js +0 -2857
- package/dist/index-DdkVT39s.js +0 -345
- package/dist/index-DeLbU1t-.js +0 -345
- package/dist/index-DfV_J8Te.js +0 -345
- package/dist/index-DgPnNd8U.js +0 -475
- package/dist/index-Dg_JLa7s.js +0 -345
- package/dist/index-Di2VPQjn.js +0 -345
- package/dist/index-DibHUbqc.js +0 -372
- package/dist/index-DjCVSrpw.js +0 -475
- package/dist/index-Djdb936p.js +0 -142
- package/dist/index-DmFL_GSt.js +0 -142
- package/dist/index-DmP4X2k0.js +0 -372
- package/dist/index-DmtmRd1r.js +0 -372
- package/dist/index-Dn8MA3kh.js +0 -475
- package/dist/index-Do7uXDSi.js +0 -2071
- package/dist/index-Dpv1M9Hu.js +0 -372
- package/dist/index-DqUuZC8f.js +0 -372
- package/dist/index-DtEXQIjn.js +0 -372
- package/dist/index-Dtw-qZ0V.js +0 -372
- package/dist/index-Dv3hIz8H.js +0 -345
- package/dist/index-Dv9jnaWp.js +0 -345
- package/dist/index-Dw8KZwGJ.js +0 -2354
- package/dist/index-DwJILh-Q.js +0 -3149
- package/dist/index-DwzGV3B9.js +0 -142
- package/dist/index-DyybaRkK.js +0 -345
- package/dist/index-DzerABZq.js +0 -372
- package/dist/index-F53NVkhc.js +0 -142
- package/dist/index-Fl0_k4XF.js +0 -475
- package/dist/index-HMYRCPrs.js +0 -2326
- package/dist/index-I49wpmT-.js +0 -372
- package/dist/index-IPv1O8Zq.js +0 -345
- package/dist/index-JLqnaery.js +0 -372
- package/dist/index-JRCQ1CYj.js +0 -142
- package/dist/index-L86-iO8O.js +0 -345
- package/dist/index-Q56EoFor.js +0 -142
- package/dist/index-QxKMr6p0.js +0 -2829
- package/dist/index-THRvW9Xm.js +0 -2856
- package/dist/index-WIUmTlfL.js +0 -345
- package/dist/index-WRrsK0pR.js +0 -475
- package/dist/index-Wq652QGf.js +0 -2836
- package/dist/index-YnSLCdjP.js +0 -475
- package/dist/index-Ynf0lvBE.js +0 -142
- package/dist/index-_OtTmb9i.js +0 -142
- package/dist/index-_oqoy_3D.js +0 -142
- package/dist/index-cl4Y-BWw.js +0 -475
- package/dist/index-d_eHJkDW.js +0 -475
- package/dist/index-dnmEyUWB.js +0 -372
- package/dist/index-dz6CwD6A.js +0 -142
- package/dist/index-g4rkaRry.js +0 -475
- package/dist/index-g9bRMdAX.js +0 -142
- package/dist/index-h4z4-a2p.js +0 -2852
- package/dist/index-h7BhcQYM.js +0 -475
- package/dist/index-hI3qofTF.js +0 -345
- package/dist/index-iyQQumAA.js +0 -372
- package/dist/index-js_OhKON.js +0 -345
- package/dist/index-kgb4MdHr.js +0 -475
- package/dist/index-logKl0VM.js +0 -3144
- package/dist/index-lrFMrOlR.js +0 -3132
- package/dist/index-mEHxtQWj.js +0 -372
- package/dist/index-mNm1BV3n.js +0 -2857
- package/dist/index-oOzAFXfr.js +0 -142
- package/dist/index-s3vGq0ro.js +0 -345
- package/dist/index-wt7AbUqc.js +0 -2342
- package/dist/index.html +0 -28
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import { useRoute as we, useRouter as de, createRouter as
|
|
4
|
-
import { SubMenu as
|
|
5
|
-
import { Icon as I, Button as
|
|
6
|
-
import { Drawer as
|
|
7
|
-
import { Form as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
t.appId && (
|
|
1
|
+
import { ref as f, computed as b, watch as Ge, defineComponent as le, resolveComponent as pt, openBlock as l, createBlock as V, unref as r, withCtx as E, createElementBlock as u, Fragment as j, renderList as W, createElementVNode as e, toDisplayString as $, createCommentVNode as U, onMounted as Ve, normalizeClass as q, withDirectives as Fe, vShow as Ct, createVNode as y, createTextVNode as ye, onUnmounted as Je, vModelText as Qe, Transition as ke, withModifiers as Be, normalizeStyle as Ee, reactive as Ze, withKeys as $t } from "vue";
|
|
2
|
+
import { defineStore as Ke } from "pinia";
|
|
3
|
+
import { useRoute as we, useRouter as de, createRouter as et, createWebHistory as tt } from "vue-router";
|
|
4
|
+
import { SubMenu as ht, MenuItem as Re, Menu as st, Tabs as Lt, TabPane as Mt } from "@xto/navigation";
|
|
5
|
+
import { Icon as I, Button as je } from "@xto/base";
|
|
6
|
+
import { Drawer as ot, Message as ae } from "@xto/feedback";
|
|
7
|
+
import { Form as It, FormItem as Ne, Input as dt, Checkbox as St } from "@xto/form";
|
|
8
|
+
import Et from "axios";
|
|
9
|
+
const Pe = f(""), Ae = f(""), Oe = f("");
|
|
10
|
+
function Tt(t) {
|
|
11
|
+
t.appId && (Pe.value = t.appId), t.clientId && (Ae.value = t.clientId), t.apiBaseUrl && (Oe.value = t.apiBaseUrl);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
return
|
|
13
|
+
function qe() {
|
|
14
|
+
if (Pe.value)
|
|
15
|
+
return Pe.value;
|
|
16
16
|
try {
|
|
17
17
|
return "";
|
|
18
18
|
} catch {
|
|
19
19
|
return "";
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
24
|
-
return
|
|
22
|
+
function vt() {
|
|
23
|
+
if (Ae.value)
|
|
24
|
+
return Ae.value;
|
|
25
25
|
try {
|
|
26
26
|
return "";
|
|
27
27
|
} catch {
|
|
28
28
|
return "";
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
if (
|
|
33
|
-
return
|
|
31
|
+
function Nt() {
|
|
32
|
+
if (Oe.value)
|
|
33
|
+
return Oe.value;
|
|
34
34
|
try {
|
|
35
35
|
return "";
|
|
36
36
|
} catch {
|
|
37
37
|
return "";
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
appId:
|
|
42
|
-
clientId:
|
|
43
|
-
apiBaseUrl:
|
|
44
|
-
}, Ie = "xto_",
|
|
40
|
+
const Ua = {
|
|
41
|
+
appId: Pe,
|
|
42
|
+
clientId: Ae,
|
|
43
|
+
apiBaseUrl: Oe
|
|
44
|
+
}, Ie = "xto_", _t = (t) => ({
|
|
45
45
|
get(s) {
|
|
46
46
|
const o = t.getItem(Ie + s);
|
|
47
47
|
if (!o) return null;
|
|
@@ -67,53 +67,53 @@ const Na = {
|
|
|
67
67
|
o.startsWith(Ie) && t.removeItem(o);
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
}), Ue =
|
|
70
|
+
}), Ue = _t(window.localStorage), ze = _t(window.sessionStorage), C = {
|
|
71
71
|
get: Ue.get,
|
|
72
72
|
set: Ue.set,
|
|
73
73
|
remove: Ue.remove,
|
|
74
74
|
clear: Ue.clear
|
|
75
|
-
},
|
|
75
|
+
}, za = {
|
|
76
76
|
get: ze.get,
|
|
77
77
|
set: ze.set,
|
|
78
78
|
remove: ze.remove,
|
|
79
79
|
clear: ze.clear
|
|
80
|
-
}, me =
|
|
81
|
-
const t =
|
|
82
|
-
t.value = T,
|
|
83
|
-
},
|
|
84
|
-
s.value = T,
|
|
85
|
-
}, V = () => {
|
|
86
|
-
o.value = !o.value, i.value = o.value ? "dark" : "light", z();
|
|
87
|
-
}, N = (T) => {
|
|
88
|
-
i.value = T, o.value = T === "dark", z();
|
|
89
|
-
}, z = () => {
|
|
90
|
-
const T = document.documentElement;
|
|
91
|
-
o.value ? T.classList.add("dark") : T.classList.remove("dark"), L.set("isDark", o.value), L.set("theme", i.value);
|
|
92
|
-
}, q = () => {
|
|
93
|
-
m.value = !m.value, L.set("isCollapsed", m.value);
|
|
94
|
-
}, W = (T) => {
|
|
95
|
-
a.value = T, L.set("layout", T);
|
|
80
|
+
}, me = Ke("app", () => {
|
|
81
|
+
const t = f(C.get("appName") || "XTO App"), s = f(C.get("indexPath") || "/dashboard"), o = f(C.get("isDark") || !1), i = f(C.get("theme") || "light"), a = f(C.get("layout") || "sidebar"), m = f(C.get("isCollapsed") || !1), M = f(C.get("showTabs") ?? !0), d = f(C.get("showFooter") ?? !0), g = f(C.get("showBreadcrumb") ?? !0), p = f(C.get("primaryColor") || "#409eff"), _ = f([]), v = f([]), L = b(() => o.value ? "dark" : "light"), F = (T) => {
|
|
82
|
+
t.value = T, C.set("appName", T);
|
|
83
|
+
}, R = (T) => {
|
|
84
|
+
s.value = T, C.set("indexPath", T);
|
|
96
85
|
}, B = () => {
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
|
|
86
|
+
o.value = !o.value, i.value = o.value ? "dark" : "light", P();
|
|
87
|
+
}, z = (T) => {
|
|
88
|
+
i.value = T, o.value = T === "dark", P();
|
|
89
|
+
}, P = () => {
|
|
90
|
+
const T = document.documentElement;
|
|
91
|
+
o.value ? T.classList.add("dark") : T.classList.remove("dark"), C.set("isDark", o.value), C.set("theme", i.value);
|
|
92
|
+
}, Y = () => {
|
|
93
|
+
m.value = !m.value, C.set("isCollapsed", m.value);
|
|
94
|
+
}, D = (T) => {
|
|
95
|
+
a.value = T, C.set("layout", T);
|
|
96
|
+
}, N = () => {
|
|
97
|
+
M.value = !M.value, C.set("showTabs", M.value);
|
|
98
|
+
}, K = () => {
|
|
99
|
+
d.value = !d.value, C.set("showFooter", d.value);
|
|
100
|
+
}, te = () => {
|
|
101
|
+
g.value = !g.value, C.set("showBreadcrumb", g.value);
|
|
102
|
+
}, A = (T) => {
|
|
103
|
+
p.value = T, document.documentElement.style.setProperty("--color-primary", T), C.set("primaryColor", T);
|
|
104
|
+
}, G = (T) => {
|
|
105
|
+
_.value.includes(T) || _.value.push(T);
|
|
106
|
+
}, se = (T) => {
|
|
107
|
+
const J = _.value.indexOf(T);
|
|
108
|
+
J > -1 && _.value.splice(J, 1);
|
|
109
|
+
}, oe = () => {
|
|
110
|
+
_.value = [];
|
|
111
111
|
}, ue = (T) => {
|
|
112
|
-
|
|
112
|
+
v.value = T;
|
|
113
113
|
}, re = () => {
|
|
114
|
-
|
|
114
|
+
P(), p.value !== "#409eff" && document.documentElement.style.setProperty("--color-primary", p.value);
|
|
115
115
|
};
|
|
116
|
-
return
|
|
116
|
+
return Ge(o, P), {
|
|
117
117
|
appName: t,
|
|
118
118
|
indexPath: s,
|
|
119
119
|
isDark: o,
|
|
@@ -124,26 +124,26 @@ const Na = {
|
|
|
124
124
|
showFooter: d,
|
|
125
125
|
showBreadcrumb: g,
|
|
126
126
|
primaryColor: p,
|
|
127
|
-
cachedViews:
|
|
128
|
-
mixSubMenus:
|
|
129
|
-
themeClass:
|
|
130
|
-
setAppName:
|
|
131
|
-
setIndexPath:
|
|
132
|
-
toggleTheme:
|
|
133
|
-
toggleCollapse:
|
|
134
|
-
setTheme:
|
|
135
|
-
setLayout:
|
|
136
|
-
toggleTabs:
|
|
137
|
-
toggleFooter:
|
|
138
|
-
toggleBreadcrumb:
|
|
139
|
-
setPrimaryColor:
|
|
140
|
-
addCachedView:
|
|
141
|
-
removeCachedView:
|
|
142
|
-
clearCachedViews:
|
|
127
|
+
cachedViews: _,
|
|
128
|
+
mixSubMenus: v,
|
|
129
|
+
themeClass: L,
|
|
130
|
+
setAppName: F,
|
|
131
|
+
setIndexPath: R,
|
|
132
|
+
toggleTheme: B,
|
|
133
|
+
toggleCollapse: Y,
|
|
134
|
+
setTheme: z,
|
|
135
|
+
setLayout: D,
|
|
136
|
+
toggleTabs: N,
|
|
137
|
+
toggleFooter: K,
|
|
138
|
+
toggleBreadcrumb: te,
|
|
139
|
+
setPrimaryColor: A,
|
|
140
|
+
addCachedView: G,
|
|
141
|
+
removeCachedView: se,
|
|
142
|
+
clearCachedViews: oe,
|
|
143
143
|
setMixSubMenus: ue,
|
|
144
144
|
initTheme: re
|
|
145
145
|
};
|
|
146
|
-
}),
|
|
146
|
+
}), Xe = "menu_list", Ut = {
|
|
147
147
|
menuCode: "home",
|
|
148
148
|
menuName: "首页",
|
|
149
149
|
menuUrl: "/dashboard",
|
|
@@ -151,40 +151,40 @@ const Na = {
|
|
|
151
151
|
closable: !1,
|
|
152
152
|
isDefault: !1,
|
|
153
153
|
isOut: !1
|
|
154
|
-
}, ve =
|
|
155
|
-
const t =
|
|
154
|
+
}, ve = Ke("menu", () => {
|
|
155
|
+
const t = f(C.get(Xe) || []), s = b(() => t.value.length > 0);
|
|
156
156
|
return {
|
|
157
157
|
menuList: t,
|
|
158
158
|
hasMenu: s,
|
|
159
159
|
setMenuList: (a) => {
|
|
160
|
-
t.value = [
|
|
160
|
+
t.value = [Ut, ...a], C.set(Xe, t.value);
|
|
161
161
|
},
|
|
162
162
|
clearMenu: () => {
|
|
163
|
-
t.value = [],
|
|
163
|
+
t.value = [], C.remove(Xe);
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
}),
|
|
167
|
-
const t =
|
|
168
|
-
var
|
|
169
|
-
return ((
|
|
166
|
+
}), We = "/vite.svg", He = "user_info", Z = Ke("user", () => {
|
|
167
|
+
const t = f(C.get(He)), s = b(() => !!t.value), o = b(() => {
|
|
168
|
+
var v;
|
|
169
|
+
return ((v = t.value) == null ? void 0 : v.userId) || "";
|
|
170
170
|
}), i = b(() => {
|
|
171
|
-
var
|
|
172
|
-
return ((
|
|
171
|
+
var v;
|
|
172
|
+
return ((v = t.value) == null ? void 0 : v.userName) || "";
|
|
173
173
|
}), a = b(() => {
|
|
174
|
-
var
|
|
175
|
-
return ((
|
|
174
|
+
var v;
|
|
175
|
+
return ((v = t.value) == null ? void 0 : v.departmentName) || "";
|
|
176
176
|
}), m = b(() => {
|
|
177
|
-
var
|
|
178
|
-
return ((
|
|
177
|
+
var v;
|
|
178
|
+
return ((v = t.value) == null ? void 0 : v.email) || "";
|
|
179
179
|
}), M = b(() => {
|
|
180
|
-
var
|
|
181
|
-
return ((
|
|
180
|
+
var v;
|
|
181
|
+
return ((v = t.value) == null ? void 0 : v.mobilePhone) || "";
|
|
182
182
|
}), d = b(() => {
|
|
183
|
-
var
|
|
184
|
-
return ((
|
|
183
|
+
var v;
|
|
184
|
+
return ((v = t.value) == null ? void 0 : v.positionName) || "";
|
|
185
185
|
}), g = b(() => {
|
|
186
|
-
var
|
|
187
|
-
return ((
|
|
186
|
+
var v;
|
|
187
|
+
return ((v = t.value) == null ? void 0 : v.avatar) || "";
|
|
188
188
|
});
|
|
189
189
|
return {
|
|
190
190
|
userInfo: t,
|
|
@@ -196,34 +196,34 @@ const Na = {
|
|
|
196
196
|
mobilePhone: M,
|
|
197
197
|
positionName: d,
|
|
198
198
|
avatar: g,
|
|
199
|
-
setUserInfo: (
|
|
200
|
-
t.value =
|
|
199
|
+
setUserInfo: (v) => {
|
|
200
|
+
t.value = v, C.set(He, v);
|
|
201
201
|
},
|
|
202
202
|
clearUserInfo: () => {
|
|
203
|
-
t.value = null,
|
|
203
|
+
t.value = null, C.remove(He);
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
-
}),
|
|
207
|
-
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
},
|
|
215
|
-
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
},
|
|
219
|
-
|
|
206
|
+
}), nt = "token", at = "token_type", lt = "refresh_token", rt = "expires_time", it = "refresh_time", ut = "code", Ye = () => C.get(nt), zt = (t) => {
|
|
207
|
+
C.set(nt, t);
|
|
208
|
+
}, Dt = () => C.get(at), Rt = (t) => {
|
|
209
|
+
C.set(at, t);
|
|
210
|
+
}, Da = () => C.get(lt), Pt = (t) => {
|
|
211
|
+
C.set(lt, t);
|
|
212
|
+
}, At = () => C.get(rt), Ot = (t) => {
|
|
213
|
+
C.set(rt, t);
|
|
214
|
+
}, Ra = () => C.get(it), Vt = (t) => {
|
|
215
|
+
C.set(it, t);
|
|
216
|
+
}, Pa = () => C.get(ut), Ft = (t) => {
|
|
217
|
+
C.set(ut, t);
|
|
218
|
+
}, ft = (t) => {
|
|
219
|
+
zt(t.access_token), Rt(t.token_type || "Bearer"), Pt(t.refresh_token), Ot(t.expires_time), Vt(t.refresh_time), t.code && Ft(t.code);
|
|
220
220
|
}, Se = () => {
|
|
221
|
-
|
|
222
|
-
},
|
|
223
|
-
const t =
|
|
221
|
+
C.remove(nt), C.remove(at), C.remove(lt), C.remove(rt), C.remove(it), C.remove(ut);
|
|
222
|
+
}, Bt = () => {
|
|
223
|
+
const t = At();
|
|
224
224
|
return t ? Date.now() > t : !0;
|
|
225
|
-
},
|
|
226
|
-
const t =
|
|
225
|
+
}, gt = () => !!Ye() && !Bt(), Te = Ke("auth", () => {
|
|
226
|
+
const t = f(Ye()), s = b(() => gt()), o = f(""), i = f(""), a = f(""), m = f("/login");
|
|
227
227
|
return {
|
|
228
228
|
token: t,
|
|
229
229
|
isLoggedIn: s,
|
|
@@ -231,35 +231,35 @@ const Na = {
|
|
|
231
231
|
appId: i,
|
|
232
232
|
clientId: a,
|
|
233
233
|
loginPath: m,
|
|
234
|
-
login: (
|
|
235
|
-
t.value =
|
|
234
|
+
login: (L) => {
|
|
235
|
+
t.value = L.access_token, ft(L);
|
|
236
236
|
},
|
|
237
237
|
logout: () => {
|
|
238
238
|
t.value = null, Se();
|
|
239
239
|
},
|
|
240
|
-
setBaseUrl: (
|
|
241
|
-
o.value =
|
|
240
|
+
setBaseUrl: (L) => {
|
|
241
|
+
o.value = L;
|
|
242
242
|
},
|
|
243
|
-
setAppId: (
|
|
244
|
-
i.value =
|
|
243
|
+
setAppId: (L) => {
|
|
244
|
+
i.value = L;
|
|
245
245
|
},
|
|
246
|
-
setClientId: (
|
|
247
|
-
a.value =
|
|
246
|
+
setClientId: (L) => {
|
|
247
|
+
a.value = L;
|
|
248
248
|
},
|
|
249
|
-
setLoginPath: (
|
|
250
|
-
m.value =
|
|
249
|
+
setLoginPath: (L) => {
|
|
250
|
+
m.value = L;
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
|
-
}),
|
|
253
|
+
}), Kt = { class: "menu-item__content" }, jt = { class: "menu-item__icon" }, qt = {
|
|
254
254
|
key: 1,
|
|
255
255
|
class: "menu-item__char"
|
|
256
|
-
},
|
|
256
|
+
}, Wt = { class: "menu-item__text" }, Yt = { class: "menu-item__content" }, Xt = {
|
|
257
257
|
key: 0,
|
|
258
258
|
class: "menu-item__icon"
|
|
259
|
-
},
|
|
259
|
+
}, Ht = {
|
|
260
260
|
key: 1,
|
|
261
261
|
class: "menu-item__char"
|
|
262
|
-
},
|
|
262
|
+
}, Gt = { class: "menu-item__text" }, Jt = /* @__PURE__ */ le({
|
|
263
263
|
__name: "SidebarMenuItem",
|
|
264
264
|
props: {
|
|
265
265
|
menu: {}
|
|
@@ -406,62 +406,62 @@ const Na = {
|
|
|
406
406
|
}[d] || d;
|
|
407
407
|
}, a = (d) => d ? d.charAt(0) : "", m = (d) => o.has(d), M = b(() => s.menu.children && s.menu.children.length > 0);
|
|
408
408
|
return (d, g) => {
|
|
409
|
-
const p =
|
|
410
|
-
return M.value ? (l(),
|
|
409
|
+
const p = pt("SidebarMenuItem", !0);
|
|
410
|
+
return M.value ? (l(), V(r(ht), {
|
|
411
411
|
key: 0,
|
|
412
412
|
index: t.menu.menuUrl
|
|
413
413
|
}, {
|
|
414
414
|
title: E(() => [
|
|
415
|
-
e("span",
|
|
416
|
-
e("span",
|
|
417
|
-
m(i(t.menu.icon)) ? (l(),
|
|
415
|
+
e("span", Kt, [
|
|
416
|
+
e("span", jt, [
|
|
417
|
+
m(i(t.menu.icon)) ? (l(), V(r(I), {
|
|
418
418
|
key: 0,
|
|
419
419
|
name: i(t.menu.icon),
|
|
420
420
|
size: 16
|
|
421
|
-
}, null, 8, ["name"])) : (l(), u("span",
|
|
421
|
+
}, null, 8, ["name"])) : (l(), u("span", qt, $(a(t.menu.menuName)), 1))
|
|
422
422
|
]),
|
|
423
|
-
e("span",
|
|
423
|
+
e("span", Wt, $(t.menu.menuName), 1)
|
|
424
424
|
])
|
|
425
425
|
]),
|
|
426
426
|
default: E(() => [
|
|
427
|
-
(l(!0), u(
|
|
428
|
-
key:
|
|
429
|
-
menu:
|
|
427
|
+
(l(!0), u(j, null, W(t.menu.children, (_) => (l(), V(p, {
|
|
428
|
+
key: _.menuUrl,
|
|
429
|
+
menu: _
|
|
430
430
|
}, null, 8, ["menu"]))), 128))
|
|
431
431
|
]),
|
|
432
432
|
_: 1
|
|
433
|
-
}, 8, ["index"])) : (l(),
|
|
433
|
+
}, 8, ["index"])) : (l(), V(r(Re), {
|
|
434
434
|
key: 1,
|
|
435
435
|
index: t.menu.menuUrl
|
|
436
436
|
}, {
|
|
437
437
|
default: E(() => [
|
|
438
|
-
e("span",
|
|
439
|
-
t.menu.menuName !== "首页" ? (l(), u("span",
|
|
440
|
-
m(i(t.menu.icon)) ? (l(),
|
|
438
|
+
e("span", Yt, [
|
|
439
|
+
t.menu.menuName !== "首页" ? (l(), u("span", Xt, [
|
|
440
|
+
m(i(t.menu.icon)) ? (l(), V(r(I), {
|
|
441
441
|
key: 0,
|
|
442
442
|
name: i(t.menu.icon),
|
|
443
443
|
size: 16
|
|
444
|
-
}, null, 8, ["name"])) : (l(), u("span",
|
|
444
|
+
}, null, 8, ["name"])) : (l(), u("span", Ht, $(a(t.menu.menuName)), 1))
|
|
445
445
|
])) : U("", !0),
|
|
446
|
-
e("span",
|
|
446
|
+
e("span", Gt, $(t.menu.menuName), 1)
|
|
447
447
|
])
|
|
448
448
|
]),
|
|
449
449
|
_: 1
|
|
450
450
|
}, 8, ["index"]));
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
}),
|
|
453
|
+
}), ee = (t, s) => {
|
|
454
454
|
const o = t.__vccOpts || t;
|
|
455
455
|
for (const [i, a] of s)
|
|
456
456
|
o[i] = a;
|
|
457
457
|
return o;
|
|
458
|
-
},
|
|
458
|
+
}, Qt = /* @__PURE__ */ ee(Jt, [["__scopeId", "data-v-d160ae6a"]]), Zt = {
|
|
459
459
|
key: 0,
|
|
460
460
|
class: "sidebar__logo"
|
|
461
|
-
},
|
|
461
|
+
}, es = {
|
|
462
462
|
key: 1,
|
|
463
463
|
class: "sidebar__user"
|
|
464
|
-
},
|
|
464
|
+
}, ts = { class: "sidebar__user-info" }, ss = { class: "sidebar__user-name" }, os = { class: "sidebar__user-role" }, De = "sidebar_opened_menus", ns = /* @__PURE__ */ le({
|
|
465
465
|
__name: "Sidebar",
|
|
466
466
|
props: {
|
|
467
467
|
menuList: { default: () => [] },
|
|
@@ -469,54 +469,70 @@ const Na = {
|
|
|
469
469
|
showUser: { type: Boolean, default: !0 }
|
|
470
470
|
},
|
|
471
471
|
setup(t) {
|
|
472
|
-
const s = t, o = we(), i = de(), a = ve(), m =
|
|
473
|
-
|
|
474
|
-
},
|
|
472
|
+
const s = t, o = we(), i = de(), a = ve(), m = Z(), M = Te(), d = me(), g = b(() => s.menuList.length > 0 ? s.menuList : a.menuList), p = b(() => d.isCollapsed), _ = b(() => o.path), v = f(C.get(De) || []), L = (D) => {
|
|
473
|
+
v.value.includes(D) || (v.value.push(D), C.set(De, v.value));
|
|
474
|
+
}, F = (D) => {
|
|
475
|
+
const N = v.value.indexOf(D);
|
|
476
|
+
N > -1 && (v.value.splice(N, 1), C.set(De, v.value));
|
|
477
|
+
};
|
|
478
|
+
Ve(() => {
|
|
479
|
+
var N;
|
|
480
|
+
const D = o.path;
|
|
481
|
+
for (const K of g.value)
|
|
482
|
+
(N = K.children) != null && N.length && K.children.some((A) => D.startsWith(A.menuUrl)) && !v.value.includes(K.menuUrl) && v.value.push(K.menuUrl);
|
|
483
|
+
C.set(De, v.value);
|
|
484
|
+
});
|
|
485
|
+
const R = b(() => d.isDark ? "#1d1e1f" : "#fff"), B = b(() => d.isDark ? "#cfd3dc" : "#303133"), z = b(() => "#409eff"), P = (D) => {
|
|
486
|
+
D && D !== o.path && i.push(D);
|
|
487
|
+
}, Y = () => {
|
|
475
488
|
M.logout(), m.clearUserInfo(), a.clearMenu(), i.push("/login");
|
|
476
489
|
};
|
|
477
|
-
return (
|
|
478
|
-
class:
|
|
490
|
+
return (D, N) => (l(), u("div", {
|
|
491
|
+
class: q(["sidebar", { "sidebar--collapsed": p.value }])
|
|
479
492
|
}, [
|
|
480
|
-
s.showLogo ? (l(), u("div",
|
|
481
|
-
|
|
482
|
-
src:
|
|
493
|
+
s.showLogo ? (l(), u("div", Zt, [
|
|
494
|
+
N[0] || (N[0] = e("img", {
|
|
495
|
+
src: We,
|
|
483
496
|
alt: "Logo",
|
|
484
497
|
class: "sidebar__logo-img"
|
|
485
498
|
}, null, -1)),
|
|
486
|
-
|
|
487
|
-
[
|
|
499
|
+
Fe(e("span", { class: "sidebar__logo-text" }, $(r(d).appName), 513), [
|
|
500
|
+
[Ct, !p.value]
|
|
488
501
|
])
|
|
489
502
|
])) : U("", !0),
|
|
490
|
-
|
|
491
|
-
"model-value":
|
|
503
|
+
y(r(st), {
|
|
504
|
+
"model-value": _.value,
|
|
492
505
|
mode: "vertical",
|
|
493
506
|
collapse: p.value,
|
|
494
507
|
"collapse-transition": !1,
|
|
495
|
-
"background-color":
|
|
496
|
-
"text-color":
|
|
497
|
-
"active-text-color":
|
|
508
|
+
"background-color": R.value,
|
|
509
|
+
"text-color": B.value,
|
|
510
|
+
"active-text-color": z.value,
|
|
511
|
+
"default-openeds": v.value,
|
|
498
512
|
class: "sidebar__menu",
|
|
499
|
-
onSelect:
|
|
513
|
+
onSelect: P,
|
|
514
|
+
onOpen: L,
|
|
515
|
+
onClose: F
|
|
500
516
|
}, {
|
|
501
517
|
default: E(() => [
|
|
502
|
-
(l(!0), u(
|
|
503
|
-
key:
|
|
504
|
-
menu:
|
|
518
|
+
(l(!0), u(j, null, W(g.value, (K) => (l(), V(Qt, {
|
|
519
|
+
key: K.menuUrl,
|
|
520
|
+
menu: K
|
|
505
521
|
}, null, 8, ["menu"]))), 128))
|
|
506
522
|
]),
|
|
507
523
|
_: 1
|
|
508
|
-
}, 8, ["model-value", "collapse", "background-color", "text-color", "active-text-color"]),
|
|
509
|
-
s.showUser && !p.value ? (l(), u("div",
|
|
510
|
-
e("div",
|
|
511
|
-
e("span",
|
|
512
|
-
e("span",
|
|
524
|
+
}, 8, ["model-value", "collapse", "background-color", "text-color", "active-text-color", "default-openeds"]),
|
|
525
|
+
s.showUser && !p.value ? (l(), u("div", es, [
|
|
526
|
+
e("div", ts, [
|
|
527
|
+
e("span", ss, $(r(m).userName), 1),
|
|
528
|
+
e("span", os, $(r(m).departmentName), 1)
|
|
513
529
|
]),
|
|
514
|
-
|
|
530
|
+
y(r(je), {
|
|
515
531
|
type: "text",
|
|
516
532
|
size: "small",
|
|
517
|
-
onClick:
|
|
533
|
+
onClick: Y
|
|
518
534
|
}, {
|
|
519
|
-
default: E(() => [...
|
|
535
|
+
default: E(() => [...N[1] || (N[1] = [
|
|
520
536
|
ye("退出", -1)
|
|
521
537
|
])]),
|
|
522
538
|
_: 1
|
|
@@ -524,65 +540,65 @@ const Na = {
|
|
|
524
540
|
])) : U("", !0)
|
|
525
541
|
], 2));
|
|
526
542
|
}
|
|
527
|
-
}),
|
|
543
|
+
}), mt = /* @__PURE__ */ ee(ns, [["__scopeId", "data-v-bc9f0622"]]), as = { class: "header" }, ls = { class: "header__left" }, rs = {
|
|
528
544
|
key: 0,
|
|
529
545
|
class: "header__breadcrumb"
|
|
530
|
-
},
|
|
546
|
+
}, is = {
|
|
531
547
|
key: 0,
|
|
532
548
|
class: "breadcrumb-separator"
|
|
533
|
-
},
|
|
549
|
+
}, us = { class: "header__right" }, cs = {
|
|
534
550
|
key: 0,
|
|
535
551
|
class: "header__search-dropdown"
|
|
536
|
-
},
|
|
552
|
+
}, ds = {
|
|
537
553
|
key: 0,
|
|
538
554
|
class: "header__search-results"
|
|
539
|
-
},
|
|
555
|
+
}, ms = ["onClick"], ps = {
|
|
540
556
|
key: 0,
|
|
541
557
|
class: "header__search-icon"
|
|
542
|
-
},
|
|
558
|
+
}, hs = {
|
|
543
559
|
key: 1,
|
|
544
560
|
class: "header__search-char"
|
|
545
|
-
},
|
|
561
|
+
}, vs = { class: "header__search-item-title" }, _s = {
|
|
546
562
|
key: 1,
|
|
547
563
|
class: "header__search-item-parent"
|
|
548
|
-
},
|
|
564
|
+
}, fs = {
|
|
549
565
|
key: 1,
|
|
550
566
|
class: "header__search-empty"
|
|
551
|
-
},
|
|
567
|
+
}, gs = ["title"], ys = { class: "header__avatar" }, ks = { class: "header__user-name" }, ws = {
|
|
552
568
|
key: 0,
|
|
553
569
|
class: "header__dropdown"
|
|
554
|
-
},
|
|
570
|
+
}, bs = { class: "header__dropdown-header" }, xs = { class: "header__dropdown-avatar" }, Cs = { class: "header__dropdown-info" }, $s = { class: "header__dropdown-name" }, Ls = { class: "header__dropdown-role" }, Ms = { class: "header__dropdown-menu" }, Is = { class: "settings-drawer" }, Ss = { class: "settings-section" }, Es = { class: "settings-layout-options" }, Ts = ["onClick"], Ns = { class: "layout-option__preview" }, Us = {
|
|
555
571
|
key: 0,
|
|
556
572
|
class: "layout-preview-sidebar"
|
|
557
|
-
},
|
|
573
|
+
}, zs = {
|
|
558
574
|
key: 1,
|
|
559
575
|
class: "layout-preview-top"
|
|
560
|
-
},
|
|
576
|
+
}, Ds = {
|
|
561
577
|
key: 2,
|
|
562
578
|
class: "layout-preview-mix"
|
|
563
|
-
},
|
|
579
|
+
}, Rs = { class: "layout-option__label" }, Ps = { class: "settings-section" }, As = { class: "settings-color-options" }, Os = ["title", "onClick"], Vs = { class: "settings-section" }, Fs = { class: "settings-switch-list" }, Bs = { class: "settings-switch-item" }, Ks = { class: "settings-switch-item" }, js = /* @__PURE__ */ le({
|
|
564
580
|
__name: "Header",
|
|
565
581
|
setup(t) {
|
|
566
|
-
const s = we(), o = de(), i = me(), a =
|
|
582
|
+
const s = we(), o = de(), i = me(), a = Z(), m = Te(), M = ve(), d = f(!1), g = f(!1), p = f(null), _ = f(!1), v = f(!1), L = f(""), F = f(null), R = f(!1), B = [
|
|
567
583
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
568
584
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
569
585
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
570
|
-
],
|
|
586
|
+
], z = [
|
|
571
587
|
{ value: "#409eff", label: "默认蓝" },
|
|
572
588
|
{ value: "#1890ff", label: "科技蓝" },
|
|
573
589
|
{ value: "#52c41a", label: "极光绿" },
|
|
574
590
|
{ value: "#faad14", label: "日落橙" },
|
|
575
591
|
{ value: "#f5222d", label: "薄暮红" },
|
|
576
592
|
{ value: "#722ed1", label: "酱紫" }
|
|
577
|
-
],
|
|
593
|
+
], P = b(() => s.matched.filter((k) => k.meta && k.meta.title).map((k) => ({
|
|
578
594
|
title: k.meta.title,
|
|
579
595
|
path: k.path
|
|
580
|
-
}))),
|
|
581
|
-
const
|
|
596
|
+
}))), Y = (S, k = "") => {
|
|
597
|
+
const X = [];
|
|
582
598
|
return S.forEach((c) => {
|
|
583
|
-
c.children && c.children.length > 0 ?
|
|
584
|
-
}),
|
|
585
|
-
},
|
|
599
|
+
c.children && c.children.length > 0 ? X.push(...Y(c.children, c.menuName)) : X.push({ ...c, parentTitle: k, title: c.menuName, path: c.menuUrl });
|
|
600
|
+
}), X;
|
|
601
|
+
}, D = /* @__PURE__ */ new Set([
|
|
586
602
|
"arrow-up",
|
|
587
603
|
"arrow-down",
|
|
588
604
|
"arrow-left",
|
|
@@ -684,10 +700,10 @@ const Na = {
|
|
|
684
700
|
"sun",
|
|
685
701
|
"theme",
|
|
686
702
|
"skin"
|
|
687
|
-
]),
|
|
703
|
+
]), N = (S) => {
|
|
688
704
|
if (!S || S === "") return "";
|
|
689
705
|
if (S.startsWith("tineco-icon-")) {
|
|
690
|
-
const
|
|
706
|
+
const X = S.replace("tineco-icon-", "");
|
|
691
707
|
return {
|
|
692
708
|
home: "home",
|
|
693
709
|
dashboard: "dashboard",
|
|
@@ -701,7 +717,7 @@ const Na = {
|
|
|
701
717
|
chart: "chart",
|
|
702
718
|
report: "report",
|
|
703
719
|
analytics: "analytics"
|
|
704
|
-
}[
|
|
720
|
+
}[X] || X;
|
|
705
721
|
}
|
|
706
722
|
return {
|
|
707
723
|
dashboard: "dashboard",
|
|
@@ -721,34 +737,34 @@ const Na = {
|
|
|
721
737
|
list: "list",
|
|
722
738
|
grid: "grid"
|
|
723
739
|
}[S] || S;
|
|
724
|
-
},
|
|
725
|
-
(k) => k.title.toLowerCase().includes(
|
|
726
|
-
) : []),
|
|
740
|
+
}, K = (S) => S ? S.charAt(0) : "", te = (S) => D.has(S), A = b(() => L.value.trim() ? Y(M.menuList).filter(
|
|
741
|
+
(k) => k.title.toLowerCase().includes(L.value.toLowerCase())
|
|
742
|
+
) : []), G = b(() => i.layout), se = () => {
|
|
727
743
|
i.toggleCollapse();
|
|
728
|
-
},
|
|
744
|
+
}, oe = () => {
|
|
729
745
|
i.toggleTheme();
|
|
730
746
|
}, ue = () => {
|
|
731
747
|
g.value = !0;
|
|
732
748
|
}, re = (S) => {
|
|
733
749
|
i.setLayout(S), g.value = !1;
|
|
734
750
|
}, T = (S) => {
|
|
735
|
-
|
|
751
|
+
R.value = S;
|
|
736
752
|
const k = document.documentElement;
|
|
737
753
|
S ? k.classList.add("grey-mode") : k.classList.remove("grey-mode");
|
|
738
|
-
},
|
|
739
|
-
T(!
|
|
754
|
+
}, J = () => {
|
|
755
|
+
T(!R.value), g.value = !1;
|
|
740
756
|
}, ce = () => {
|
|
741
757
|
i.toggleTheme(), g.value = !1;
|
|
742
758
|
}, be = () => {
|
|
743
759
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
744
|
-
},
|
|
745
|
-
|
|
760
|
+
}, ne = () => {
|
|
761
|
+
_.value = !!document.fullscreenElement;
|
|
746
762
|
}, pe = () => {
|
|
747
763
|
d.value = !d.value;
|
|
748
764
|
}, ie = () => {
|
|
749
765
|
d.value = !1;
|
|
750
766
|
}, he = () => {
|
|
751
|
-
|
|
767
|
+
v.value = !1, L.value = "";
|
|
752
768
|
}, xe = (S) => {
|
|
753
769
|
o.push(S), he();
|
|
754
770
|
}, Ce = (S) => {
|
|
@@ -760,78 +776,78 @@ const Na = {
|
|
|
760
776
|
}, Me = () => {
|
|
761
777
|
ie(), m.logout(), a.clearUserInfo(), M.clearMenu(), o.push("/login");
|
|
762
778
|
}, _e = (S) => {
|
|
763
|
-
p.value && !p.value.contains(S.target) && ie(),
|
|
779
|
+
p.value && !p.value.contains(S.target) && ie(), F.value && !F.value.contains(S.target) && he();
|
|
764
780
|
}, fe = (S) => {
|
|
765
781
|
S.key === "Escape" && (he(), ie());
|
|
766
782
|
};
|
|
767
|
-
return
|
|
768
|
-
document.addEventListener("click", _e), document.addEventListener("fullscreenchange",
|
|
769
|
-
}),
|
|
770
|
-
document.removeEventListener("click", _e), document.removeEventListener("fullscreenchange",
|
|
783
|
+
return Ve(() => {
|
|
784
|
+
document.addEventListener("click", _e), document.addEventListener("fullscreenchange", ne), document.addEventListener("keydown", fe), i.initTheme(), R.value = document.documentElement.classList.contains("grey-mode");
|
|
785
|
+
}), Je(() => {
|
|
786
|
+
document.removeEventListener("click", _e), document.removeEventListener("fullscreenchange", ne), document.removeEventListener("keydown", fe);
|
|
771
787
|
}), (S, k) => {
|
|
772
|
-
var
|
|
773
|
-
return l(), u("div",
|
|
774
|
-
e("div",
|
|
788
|
+
var X;
|
|
789
|
+
return l(), u("div", as, [
|
|
790
|
+
e("div", ls, [
|
|
775
791
|
e("div", {
|
|
776
792
|
class: "header__collapse",
|
|
777
|
-
onClick:
|
|
793
|
+
onClick: se
|
|
778
794
|
}, [
|
|
779
|
-
|
|
795
|
+
y(r(I), {
|
|
780
796
|
name: r(i).isCollapsed ? "menu-unfold" : "menu-fold",
|
|
781
797
|
size: 18
|
|
782
798
|
}, null, 8, ["name"])
|
|
783
799
|
]),
|
|
784
|
-
r(i).showBreadcrumb ? (l(), u("div",
|
|
785
|
-
(l(!0), u(
|
|
800
|
+
r(i).showBreadcrumb ? (l(), u("div", rs, [
|
|
801
|
+
(l(!0), u(j, null, W(P.value, (c, w) => (l(), u("span", {
|
|
786
802
|
key: c.path
|
|
787
803
|
}, [
|
|
788
|
-
w > 0 ? (l(), u("span",
|
|
804
|
+
w > 0 ? (l(), u("span", is, "/")) : U("", !0),
|
|
789
805
|
e("span", {
|
|
790
|
-
class:
|
|
791
|
-
},
|
|
806
|
+
class: q({ "is-current": w === P.value.length - 1 })
|
|
807
|
+
}, $(c.title), 3)
|
|
792
808
|
]))), 128))
|
|
793
809
|
])) : U("", !0)
|
|
794
810
|
]),
|
|
795
|
-
e("div",
|
|
811
|
+
e("div", us, [
|
|
796
812
|
e("div", {
|
|
797
813
|
class: "header__search",
|
|
798
814
|
ref_key: "searchRef",
|
|
799
|
-
ref:
|
|
815
|
+
ref: F
|
|
800
816
|
}, [
|
|
801
|
-
|
|
817
|
+
y(r(I), {
|
|
802
818
|
name: "search",
|
|
803
819
|
size: 14,
|
|
804
820
|
class: "header__search-icon"
|
|
805
821
|
}),
|
|
806
|
-
|
|
807
|
-
"onUpdate:modelValue": k[0] || (k[0] = (c) =>
|
|
822
|
+
Fe(e("input", {
|
|
823
|
+
"onUpdate:modelValue": k[0] || (k[0] = (c) => L.value = c),
|
|
808
824
|
type: "text",
|
|
809
825
|
class: "header__search-input",
|
|
810
826
|
placeholder: "搜索菜单...",
|
|
811
|
-
onFocus: k[1] || (k[1] = (c) =>
|
|
827
|
+
onFocus: k[1] || (k[1] = (c) => v.value = !0)
|
|
812
828
|
}, null, 544), [
|
|
813
|
-
[
|
|
829
|
+
[Qe, L.value]
|
|
814
830
|
]),
|
|
815
|
-
|
|
831
|
+
y(ke, { name: "search-dropdown" }, {
|
|
816
832
|
default: E(() => [
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
(l(!0), u(
|
|
833
|
+
v.value && (A.value.length > 0 || L.value) ? (l(), u("div", cs, [
|
|
834
|
+
A.value.length > 0 ? (l(), u("div", ds, [
|
|
835
|
+
(l(!0), u(j, null, W(A.value, (c) => (l(), u("div", {
|
|
820
836
|
key: c.path,
|
|
821
837
|
class: "header__search-item",
|
|
822
838
|
onClick: (w) => xe(c.path)
|
|
823
839
|
}, [
|
|
824
|
-
c.title !== "首页" ? (l(), u("span",
|
|
825
|
-
|
|
840
|
+
c.title !== "首页" ? (l(), u("span", ps, [
|
|
841
|
+
te(N(c.icon)) ? (l(), V(r(I), {
|
|
826
842
|
key: 0,
|
|
827
|
-
name:
|
|
843
|
+
name: N(c.icon),
|
|
828
844
|
size: 16
|
|
829
|
-
}, null, 8, ["name"])) : (l(), u("span",
|
|
845
|
+
}, null, 8, ["name"])) : (l(), u("span", hs, $(K(c.title)), 1))
|
|
830
846
|
])) : U("", !0),
|
|
831
|
-
e("span",
|
|
832
|
-
c.parentTitle ? (l(), u("span",
|
|
833
|
-
], 8,
|
|
834
|
-
])) : (l(), u("div",
|
|
847
|
+
e("span", vs, $(c.title), 1),
|
|
848
|
+
c.parentTitle ? (l(), u("span", _s, $(c.parentTitle), 1)) : U("", !0)
|
|
849
|
+
], 8, ms))), 128))
|
|
850
|
+
])) : (l(), u("div", fs, " 未找到匹配的菜单 "))
|
|
835
851
|
])) : U("", !0)
|
|
836
852
|
]),
|
|
837
853
|
_: 1
|
|
@@ -840,29 +856,29 @@ const Na = {
|
|
|
840
856
|
e("div", {
|
|
841
857
|
class: "header__action",
|
|
842
858
|
onClick: be,
|
|
843
|
-
title:
|
|
859
|
+
title: _.value ? "退出全屏" : "全屏"
|
|
844
860
|
}, [
|
|
845
|
-
|
|
846
|
-
name:
|
|
861
|
+
y(r(I), {
|
|
862
|
+
name: _.value ? "fullscreen-exit" : "fullscreen",
|
|
847
863
|
size: 16
|
|
848
864
|
}, null, 8, ["name"])
|
|
849
|
-
], 8,
|
|
865
|
+
], 8, gs),
|
|
850
866
|
e("div", {
|
|
851
867
|
class: "header__action",
|
|
852
868
|
onClick: ue,
|
|
853
869
|
title: "换肤设置"
|
|
854
870
|
}, [
|
|
855
|
-
|
|
871
|
+
y(r(I), {
|
|
856
872
|
name: "skin",
|
|
857
873
|
size: 16
|
|
858
874
|
})
|
|
859
875
|
]),
|
|
860
876
|
e("div", {
|
|
861
877
|
class: "header__action",
|
|
862
|
-
onClick:
|
|
878
|
+
onClick: oe,
|
|
863
879
|
title: "切换主题"
|
|
864
880
|
}, [
|
|
865
|
-
|
|
881
|
+
y(r(I), {
|
|
866
882
|
name: r(i).isDark ? "sun" : "moon",
|
|
867
883
|
size: 16
|
|
868
884
|
}, null, 8, ["name"])
|
|
@@ -874,37 +890,37 @@ const Na = {
|
|
|
874
890
|
}, [
|
|
875
891
|
e("div", {
|
|
876
892
|
class: "header__user-trigger",
|
|
877
|
-
onClick:
|
|
893
|
+
onClick: Be(pe, ["stop"])
|
|
878
894
|
}, [
|
|
879
|
-
e("div",
|
|
880
|
-
e("span", null,
|
|
895
|
+
e("div", ys, [
|
|
896
|
+
e("span", null, $(((X = r(a).userName) == null ? void 0 : X.charAt(0)) || "U"), 1)
|
|
881
897
|
]),
|
|
882
|
-
e("span",
|
|
898
|
+
e("span", ks, $(r(a).userName), 1),
|
|
883
899
|
e("span", {
|
|
884
|
-
class:
|
|
900
|
+
class: q(["header__user-arrow", { "is-active": d.value }])
|
|
885
901
|
}, "▼", 2)
|
|
886
902
|
]),
|
|
887
|
-
|
|
903
|
+
y(ke, { name: "dropdown" }, {
|
|
888
904
|
default: E(() => {
|
|
889
905
|
var c;
|
|
890
906
|
return [
|
|
891
|
-
d.value ? (l(), u("div",
|
|
892
|
-
e("div",
|
|
893
|
-
e("div", bs, [
|
|
894
|
-
e("span", null, C(((c = r(a).userName) == null ? void 0 : c.charAt(0)) || "U"), 1)
|
|
895
|
-
]),
|
|
907
|
+
d.value ? (l(), u("div", ws, [
|
|
908
|
+
e("div", bs, [
|
|
896
909
|
e("div", xs, [
|
|
897
|
-
e("
|
|
898
|
-
|
|
910
|
+
e("span", null, $(((c = r(a).userName) == null ? void 0 : c.charAt(0)) || "U"), 1)
|
|
911
|
+
]),
|
|
912
|
+
e("div", Cs, [
|
|
913
|
+
e("div", $s, $(r(a).userName), 1),
|
|
914
|
+
e("div", Ls, $(r(a).departmentName), 1)
|
|
899
915
|
])
|
|
900
916
|
]),
|
|
901
917
|
k[7] || (k[7] = e("div", { class: "header__dropdown-divider" }, null, -1)),
|
|
902
|
-
e("div",
|
|
918
|
+
e("div", Ms, [
|
|
903
919
|
e("div", {
|
|
904
920
|
class: "header__dropdown-item",
|
|
905
921
|
onClick: $e
|
|
906
922
|
}, [
|
|
907
|
-
|
|
923
|
+
y(r(I), {
|
|
908
924
|
name: "user",
|
|
909
925
|
size: 16
|
|
910
926
|
}),
|
|
@@ -914,7 +930,7 @@ const Na = {
|
|
|
914
930
|
class: "header__dropdown-item",
|
|
915
931
|
onClick: Le
|
|
916
932
|
}, [
|
|
917
|
-
|
|
933
|
+
y(r(I), {
|
|
918
934
|
name: "lock",
|
|
919
935
|
size: 16
|
|
920
936
|
}),
|
|
@@ -925,7 +941,7 @@ const Na = {
|
|
|
925
941
|
class: "header__dropdown-item header__dropdown-item--danger",
|
|
926
942
|
onClick: Me
|
|
927
943
|
}, [
|
|
928
|
-
|
|
944
|
+
y(r(I), {
|
|
929
945
|
name: "logout",
|
|
930
946
|
size: 16
|
|
931
947
|
}),
|
|
@@ -939,7 +955,7 @@ const Na = {
|
|
|
939
955
|
})
|
|
940
956
|
], 512)
|
|
941
957
|
]),
|
|
942
|
-
|
|
958
|
+
y(r(ot), {
|
|
943
959
|
modelValue: g.value,
|
|
944
960
|
"onUpdate:modelValue": k[2] || (k[2] = (c) => g.value = c),
|
|
945
961
|
title: "换肤设置",
|
|
@@ -947,26 +963,26 @@ const Na = {
|
|
|
947
963
|
size: "320px"
|
|
948
964
|
}, {
|
|
949
965
|
default: E(() => [
|
|
950
|
-
e("div",
|
|
951
|
-
e("div",
|
|
966
|
+
e("div", Is, [
|
|
967
|
+
e("div", Ss, [
|
|
952
968
|
k[11] || (k[11] = e("div", { class: "settings-title" }, "布局模式", -1)),
|
|
953
|
-
e("div",
|
|
954
|
-
(l(), u(
|
|
969
|
+
e("div", Es, [
|
|
970
|
+
(l(), u(j, null, W(B, (c) => e("div", {
|
|
955
971
|
key: c.value,
|
|
956
|
-
class:
|
|
972
|
+
class: q(["layout-option", { "is-active": G.value === c.value }]),
|
|
957
973
|
onClick: (w) => re(c.value)
|
|
958
974
|
}, [
|
|
959
|
-
e("div",
|
|
960
|
-
c.value === "sidebar" ? (l(), u("div",
|
|
975
|
+
e("div", Ns, [
|
|
976
|
+
c.value === "sidebar" ? (l(), u("div", Us, [...k[8] || (k[8] = [
|
|
961
977
|
e("div", { class: "preview-aside" }, null, -1),
|
|
962
978
|
e("div", { class: "preview-main" }, [
|
|
963
979
|
e("div", { class: "preview-header" }),
|
|
964
980
|
e("div", { class: "preview-content" })
|
|
965
981
|
], -1)
|
|
966
|
-
])])) : c.value === "top" ? (l(), u("div",
|
|
982
|
+
])])) : c.value === "top" ? (l(), u("div", zs, [...k[9] || (k[9] = [
|
|
967
983
|
e("div", { class: "preview-header-full" }, null, -1),
|
|
968
984
|
e("div", { class: "preview-content-full" }, null, -1)
|
|
969
|
-
])])) : (l(), u("div",
|
|
985
|
+
])])) : (l(), u("div", Ds, [...k[10] || (k[10] = [
|
|
970
986
|
e("div", { class: "preview-header-mix" }, [
|
|
971
987
|
e("div", { class: "preview-mix-left" })
|
|
972
988
|
], -1),
|
|
@@ -976,45 +992,45 @@ const Na = {
|
|
|
976
992
|
], -1)
|
|
977
993
|
])]))
|
|
978
994
|
]),
|
|
979
|
-
e("span",
|
|
980
|
-
], 10,
|
|
995
|
+
e("span", Rs, $(c.label), 1)
|
|
996
|
+
], 10, Ts)), 64))
|
|
981
997
|
])
|
|
982
998
|
]),
|
|
983
|
-
e("div",
|
|
999
|
+
e("div", Ps, [
|
|
984
1000
|
k[12] || (k[12] = e("div", { class: "settings-title" }, "主题色", -1)),
|
|
985
|
-
e("div",
|
|
986
|
-
(l(), u(
|
|
1001
|
+
e("div", As, [
|
|
1002
|
+
(l(), u(j, null, W(z, (c) => e("div", {
|
|
987
1003
|
key: c.value,
|
|
988
|
-
class:
|
|
1004
|
+
class: q(["color-option", { "is-active": r(i).primaryColor === c.value }]),
|
|
989
1005
|
style: Ee({ backgroundColor: c.value }),
|
|
990
1006
|
title: c.label,
|
|
991
1007
|
onClick: (w) => Ce(c.value)
|
|
992
1008
|
}, [
|
|
993
|
-
r(i).primaryColor === c.value ? (l(),
|
|
1009
|
+
r(i).primaryColor === c.value ? (l(), V(r(I), {
|
|
994
1010
|
key: 0,
|
|
995
1011
|
name: "check",
|
|
996
1012
|
size: 12,
|
|
997
1013
|
color: "#fff"
|
|
998
1014
|
})) : U("", !0)
|
|
999
|
-
], 14,
|
|
1015
|
+
], 14, Os)), 64))
|
|
1000
1016
|
])
|
|
1001
1017
|
]),
|
|
1002
|
-
e("div",
|
|
1018
|
+
e("div", Vs, [
|
|
1003
1019
|
k[17] || (k[17] = e("div", { class: "settings-title" }, "功能设置", -1)),
|
|
1004
|
-
e("div",
|
|
1005
|
-
e("div",
|
|
1020
|
+
e("div", Fs, [
|
|
1021
|
+
e("div", Bs, [
|
|
1006
1022
|
k[14] || (k[14] = e("span", null, "灰色模式", -1)),
|
|
1007
1023
|
e("div", {
|
|
1008
|
-
class:
|
|
1009
|
-
onClick:
|
|
1024
|
+
class: q(["switch-wrapper", { "is-checked": R.value }]),
|
|
1025
|
+
onClick: J
|
|
1010
1026
|
}, [...k[13] || (k[13] = [
|
|
1011
1027
|
e("span", { class: "switch-core" }, null, -1)
|
|
1012
1028
|
])], 2)
|
|
1013
1029
|
]),
|
|
1014
|
-
e("div",
|
|
1030
|
+
e("div", Ks, [
|
|
1015
1031
|
k[16] || (k[16] = e("span", null, "暗黑模式", -1)),
|
|
1016
1032
|
e("div", {
|
|
1017
|
-
class:
|
|
1033
|
+
class: q(["switch-wrapper", { "is-checked": r(i).isDark }]),
|
|
1018
1034
|
onClick: ce
|
|
1019
1035
|
}, [...k[15] || (k[15] = [
|
|
1020
1036
|
e("span", { class: "switch-core" }, null, -1)
|
|
@@ -1029,64 +1045,64 @@ const Na = {
|
|
|
1029
1045
|
]);
|
|
1030
1046
|
};
|
|
1031
1047
|
}
|
|
1032
|
-
}),
|
|
1048
|
+
}), qs = /* @__PURE__ */ ee(js, [["__scopeId", "data-v-89179947"]]), Ws = { class: "top-menu" }, Ys = { class: "top-menu__logo" }, Xs = { class: "top-menu__logo-text" }, Hs = { class: "top-menu__menu-content" }, Gs = {
|
|
1033
1049
|
key: 0,
|
|
1034
1050
|
class: "top-menu__menu-icon"
|
|
1035
|
-
},
|
|
1051
|
+
}, Js = {
|
|
1036
1052
|
key: 1,
|
|
1037
1053
|
class: "top-menu__menu-char"
|
|
1038
|
-
},
|
|
1054
|
+
}, Qs = { class: "top-menu__menu-text" }, Zs = { class: "top-menu__menu-content" }, eo = { class: "top-menu__menu-icon" }, to = {
|
|
1039
1055
|
key: 1,
|
|
1040
1056
|
class: "top-menu__menu-char"
|
|
1041
|
-
},
|
|
1057
|
+
}, so = { class: "top-menu__menu-text" }, oo = { class: "top-menu__menu-content" }, no = {
|
|
1042
1058
|
key: 0,
|
|
1043
1059
|
class: "top-menu__menu-icon"
|
|
1044
|
-
},
|
|
1060
|
+
}, ao = {
|
|
1045
1061
|
key: 1,
|
|
1046
1062
|
class: "top-menu__menu-char"
|
|
1047
|
-
},
|
|
1063
|
+
}, lo = { class: "top-menu__menu-text" }, ro = { class: "top-menu__actions" }, io = {
|
|
1048
1064
|
key: 0,
|
|
1049
1065
|
class: "top-menu__search-dropdown"
|
|
1050
|
-
},
|
|
1066
|
+
}, uo = {
|
|
1051
1067
|
key: 0,
|
|
1052
1068
|
class: "top-menu__search-results"
|
|
1053
|
-
},
|
|
1069
|
+
}, co = ["onClick"], mo = {
|
|
1054
1070
|
key: 0,
|
|
1055
1071
|
class: "top-menu__search-icon-item"
|
|
1056
|
-
},
|
|
1072
|
+
}, po = {
|
|
1057
1073
|
key: 1,
|
|
1058
1074
|
class: "top-menu__search-char"
|
|
1059
|
-
},
|
|
1075
|
+
}, ho = { class: "top-menu__search-item-title" }, vo = {
|
|
1060
1076
|
key: 1,
|
|
1061
1077
|
class: "top-menu__search-item-parent"
|
|
1062
|
-
},
|
|
1078
|
+
}, _o = {
|
|
1063
1079
|
key: 1,
|
|
1064
1080
|
class: "top-menu__search-empty"
|
|
1065
|
-
},
|
|
1081
|
+
}, fo = ["title"], go = { class: "top-menu__avatar" }, yo = { class: "top-menu__user-name" }, ko = {
|
|
1066
1082
|
key: 0,
|
|
1067
1083
|
class: "top-menu__dropdown"
|
|
1068
|
-
},
|
|
1084
|
+
}, wo = { class: "top-menu__dropdown-header" }, bo = { class: "top-menu__dropdown-avatar" }, xo = { class: "top-menu__dropdown-info" }, Co = { class: "top-menu__dropdown-name" }, $o = { class: "top-menu__dropdown-role" }, Lo = { class: "top-menu__dropdown-menu" }, Mo = { class: "settings-drawer" }, Io = { class: "settings-section" }, So = { class: "settings-layout-options" }, Eo = ["onClick"], To = { class: "layout-option__preview" }, No = {
|
|
1069
1085
|
key: 0,
|
|
1070
1086
|
class: "layout-preview-sidebar"
|
|
1071
|
-
},
|
|
1087
|
+
}, Uo = {
|
|
1072
1088
|
key: 1,
|
|
1073
1089
|
class: "layout-preview-top"
|
|
1074
|
-
},
|
|
1090
|
+
}, zo = {
|
|
1075
1091
|
key: 2,
|
|
1076
1092
|
class: "layout-preview-mix"
|
|
1077
|
-
},
|
|
1093
|
+
}, Do = { class: "layout-option__label" }, Ro = { class: "settings-section" }, Po = { class: "settings-color-options" }, Ao = ["title", "onClick"], Oo = { class: "settings-section" }, Vo = { class: "settings-switch-list" }, Fo = { class: "settings-switch-item" }, Bo = { class: "settings-switch-item" }, Ko = /* @__PURE__ */ le({
|
|
1078
1094
|
__name: "TopMenu",
|
|
1079
1095
|
setup(t) {
|
|
1080
|
-
const s = we(), o = de(), i = ve(), a = me(), m =
|
|
1081
|
-
const
|
|
1096
|
+
const s = we(), o = de(), i = ve(), a = me(), m = Z(), M = Te(), d = b(() => s.path), g = (c, w = "") => {
|
|
1097
|
+
const Q = [];
|
|
1082
1098
|
return c.forEach((n) => {
|
|
1083
|
-
n.children && n.children.length > 0 ?
|
|
1084
|
-
}),
|
|
1085
|
-
}, p = b(() =>
|
|
1086
|
-
(w) => w.title.toLowerCase().includes(
|
|
1087
|
-
) : []),
|
|
1099
|
+
n.children && n.children.length > 0 ? Q.push(...g(n.children, n.menuName)) : Q.push({ ...n, parentTitle: w, title: n.menuName, path: n.menuUrl });
|
|
1100
|
+
}), Q;
|
|
1101
|
+
}, p = b(() => D.value.trim() ? g(i.menuList).filter(
|
|
1102
|
+
(w) => w.title.toLowerCase().includes(D.value.toLowerCase())
|
|
1103
|
+
) : []), _ = b(() => a.isDark ? "#1d1e1f" : "#fff"), v = b(() => a.isDark ? "#cfd3dc" : "#303133"), L = b(() => "#409eff"), F = f(!1), R = f(null), B = f(!1), z = f(!1), P = f(!1), Y = f(!1), D = f(""), N = f(null), K = (c) => {
|
|
1088
1104
|
c && c !== s.path && o.push(c);
|
|
1089
|
-
},
|
|
1105
|
+
}, te = /* @__PURE__ */ new Set([
|
|
1090
1106
|
"arrow-up",
|
|
1091
1107
|
"arrow-down",
|
|
1092
1108
|
"arrow-left",
|
|
@@ -1188,10 +1204,10 @@ const Na = {
|
|
|
1188
1204
|
"sun",
|
|
1189
1205
|
"theme",
|
|
1190
1206
|
"skin"
|
|
1191
|
-
]),
|
|
1207
|
+
]), A = (c) => {
|
|
1192
1208
|
if (!c || c === "") return "";
|
|
1193
1209
|
if (c.startsWith("tineco-icon-")) {
|
|
1194
|
-
const
|
|
1210
|
+
const Q = c.replace("tineco-icon-", "");
|
|
1195
1211
|
return {
|
|
1196
1212
|
home: "home",
|
|
1197
1213
|
dashboard: "dashboard",
|
|
@@ -1205,7 +1221,7 @@ const Na = {
|
|
|
1205
1221
|
chart: "chart",
|
|
1206
1222
|
report: "report",
|
|
1207
1223
|
analytics: "analytics"
|
|
1208
|
-
}[
|
|
1224
|
+
}[Q] || Q;
|
|
1209
1225
|
}
|
|
1210
1226
|
return {
|
|
1211
1227
|
dashboard: "dashboard",
|
|
@@ -1225,36 +1241,36 @@ const Na = {
|
|
|
1225
1241
|
list: "list",
|
|
1226
1242
|
grid: "grid"
|
|
1227
1243
|
}[c] || c;
|
|
1228
|
-
},
|
|
1229
|
-
a.toggleTheme(),
|
|
1244
|
+
}, G = (c) => c ? c.charAt(0) : "", se = (c) => te.has(c), oe = () => {
|
|
1245
|
+
a.toggleTheme(), z.value = !1;
|
|
1230
1246
|
}, ue = () => {
|
|
1231
1247
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
1232
1248
|
}, re = () => {
|
|
1233
|
-
|
|
1249
|
+
B.value = !!document.fullscreenElement;
|
|
1234
1250
|
}, T = () => {
|
|
1235
|
-
|
|
1236
|
-
},
|
|
1237
|
-
|
|
1251
|
+
F.value = !F.value;
|
|
1252
|
+
}, J = () => {
|
|
1253
|
+
F.value = !1;
|
|
1238
1254
|
}, ce = () => {
|
|
1239
|
-
|
|
1255
|
+
Y.value = !1, D.value = "";
|
|
1240
1256
|
}, be = (c) => {
|
|
1241
1257
|
o.push(c), ce();
|
|
1242
|
-
},
|
|
1243
|
-
|
|
1258
|
+
}, ne = () => {
|
|
1259
|
+
z.value = !0;
|
|
1244
1260
|
}, pe = (c) => {
|
|
1245
|
-
|
|
1261
|
+
P.value = c;
|
|
1246
1262
|
const w = document.documentElement;
|
|
1247
1263
|
c ? w.classList.add("grey-mode") : w.classList.remove("grey-mode");
|
|
1248
1264
|
}, ie = () => {
|
|
1249
|
-
pe(!
|
|
1265
|
+
pe(!P.value), z.value = !1;
|
|
1250
1266
|
}, he = () => {
|
|
1251
|
-
a.toggleTheme(),
|
|
1267
|
+
a.toggleTheme(), z.value = !1;
|
|
1252
1268
|
}, xe = [
|
|
1253
1269
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
1254
1270
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
1255
1271
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
1256
1272
|
], Ce = b(() => a.layout), $e = (c) => {
|
|
1257
|
-
a.setLayout(c),
|
|
1273
|
+
a.setLayout(c), z.value = !1;
|
|
1258
1274
|
}, Le = [
|
|
1259
1275
|
{ value: "#409eff", label: "默认蓝" },
|
|
1260
1276
|
{ value: "#1890ff", label: "科技蓝" },
|
|
@@ -1263,97 +1279,97 @@ const Na = {
|
|
|
1263
1279
|
{ value: "#f5222d", label: "薄暮红" },
|
|
1264
1280
|
{ value: "#722ed1", label: "酱紫" }
|
|
1265
1281
|
], Me = (c) => {
|
|
1266
|
-
a.setPrimaryColor(c),
|
|
1282
|
+
a.setPrimaryColor(c), z.value = !1;
|
|
1267
1283
|
}, _e = () => {
|
|
1268
|
-
|
|
1284
|
+
J(), o.push("/profile");
|
|
1269
1285
|
}, fe = () => {
|
|
1270
|
-
|
|
1286
|
+
J(), o.push("/change-password");
|
|
1271
1287
|
}, S = () => {
|
|
1272
|
-
|
|
1288
|
+
J(), M.logout(), m.clearUserInfo(), i.clearMenu(), o.push("/login");
|
|
1273
1289
|
}, k = (c) => {
|
|
1274
|
-
|
|
1275
|
-
},
|
|
1276
|
-
c.key === "Escape" && (ce(),
|
|
1290
|
+
R.value && !R.value.contains(c.target) && J(), N.value && !N.value.contains(c.target) && ce();
|
|
1291
|
+
}, X = (c) => {
|
|
1292
|
+
c.key === "Escape" && (ce(), J());
|
|
1277
1293
|
};
|
|
1278
|
-
return
|
|
1279
|
-
document.addEventListener("click", k), document.addEventListener("fullscreenchange", re), document.addEventListener("keydown",
|
|
1280
|
-
}),
|
|
1281
|
-
document.removeEventListener("click", k), document.removeEventListener("fullscreenchange", re), document.removeEventListener("keydown",
|
|
1294
|
+
return Ve(() => {
|
|
1295
|
+
document.addEventListener("click", k), document.addEventListener("fullscreenchange", re), document.addEventListener("keydown", X), P.value = document.documentElement.classList.contains("grey-mode");
|
|
1296
|
+
}), Je(() => {
|
|
1297
|
+
document.removeEventListener("click", k), document.removeEventListener("fullscreenchange", re), document.removeEventListener("keydown", X);
|
|
1282
1298
|
}), (c, w) => {
|
|
1283
|
-
var
|
|
1284
|
-
return l(), u("div",
|
|
1285
|
-
e("div",
|
|
1299
|
+
var Q;
|
|
1300
|
+
return l(), u("div", Ws, [
|
|
1301
|
+
e("div", Ys, [
|
|
1286
1302
|
w[3] || (w[3] = e("img", {
|
|
1287
|
-
src:
|
|
1303
|
+
src: We,
|
|
1288
1304
|
alt: "Logo",
|
|
1289
1305
|
class: "top-menu__logo-img"
|
|
1290
1306
|
}, null, -1)),
|
|
1291
|
-
e("span",
|
|
1307
|
+
e("span", Xs, $(r(a).appName), 1)
|
|
1292
1308
|
]),
|
|
1293
|
-
|
|
1309
|
+
y(r(st), {
|
|
1294
1310
|
"model-value": d.value,
|
|
1295
1311
|
mode: "horizontal",
|
|
1296
|
-
"background-color":
|
|
1297
|
-
"text-color":
|
|
1298
|
-
"active-text-color":
|
|
1312
|
+
"background-color": _.value,
|
|
1313
|
+
"text-color": v.value,
|
|
1314
|
+
"active-text-color": L.value,
|
|
1299
1315
|
class: "top-menu__menu",
|
|
1300
|
-
onSelect:
|
|
1316
|
+
onSelect: K
|
|
1301
1317
|
}, {
|
|
1302
1318
|
default: E(() => [
|
|
1303
|
-
(l(!0), u(
|
|
1319
|
+
(l(!0), u(j, null, W(r(i).menuList, (n) => (l(), u(j, {
|
|
1304
1320
|
key: n.menuUrl
|
|
1305
1321
|
}, [
|
|
1306
|
-
n.children && n.children.length > 0 ? (l(),
|
|
1322
|
+
n.children && n.children.length > 0 ? (l(), V(r(ht), {
|
|
1307
1323
|
key: 0,
|
|
1308
1324
|
index: n.menuUrl
|
|
1309
1325
|
}, {
|
|
1310
1326
|
title: E(() => [
|
|
1311
|
-
e("span",
|
|
1312
|
-
n.menuName !== "首页" ? (l(), u("span",
|
|
1313
|
-
|
|
1327
|
+
e("span", Hs, [
|
|
1328
|
+
n.menuName !== "首页" ? (l(), u("span", Gs, [
|
|
1329
|
+
se(A(n.icon)) ? (l(), V(r(I), {
|
|
1314
1330
|
key: 0,
|
|
1315
|
-
name:
|
|
1331
|
+
name: A(n.icon),
|
|
1316
1332
|
size: 16
|
|
1317
|
-
}, null, 8, ["name"])) : (l(), u("span",
|
|
1333
|
+
}, null, 8, ["name"])) : (l(), u("span", Js, $(G(n.menuName)), 1))
|
|
1318
1334
|
])) : U("", !0),
|
|
1319
|
-
e("span",
|
|
1335
|
+
e("span", Qs, $(n.menuName), 1)
|
|
1320
1336
|
])
|
|
1321
1337
|
]),
|
|
1322
1338
|
default: E(() => [
|
|
1323
|
-
(l(!0), u(
|
|
1339
|
+
(l(!0), u(j, null, W(n.children, (h) => (l(), V(r(Re), {
|
|
1324
1340
|
key: h.menuUrl,
|
|
1325
1341
|
index: h.menuUrl
|
|
1326
1342
|
}, {
|
|
1327
1343
|
default: E(() => [
|
|
1328
|
-
e("span",
|
|
1329
|
-
e("span",
|
|
1330
|
-
|
|
1344
|
+
e("span", Zs, [
|
|
1345
|
+
e("span", eo, [
|
|
1346
|
+
se(A(h.icon)) ? (l(), V(r(I), {
|
|
1331
1347
|
key: 0,
|
|
1332
|
-
name:
|
|
1348
|
+
name: A(h.icon),
|
|
1333
1349
|
size: 16
|
|
1334
|
-
}, null, 8, ["name"])) : (l(), u("span",
|
|
1350
|
+
}, null, 8, ["name"])) : (l(), u("span", to, $(G(h.menuName)), 1))
|
|
1335
1351
|
]),
|
|
1336
|
-
e("span",
|
|
1352
|
+
e("span", so, $(h.menuName), 1)
|
|
1337
1353
|
])
|
|
1338
1354
|
]),
|
|
1339
1355
|
_: 2
|
|
1340
1356
|
}, 1032, ["index"]))), 128))
|
|
1341
1357
|
]),
|
|
1342
1358
|
_: 2
|
|
1343
|
-
}, 1032, ["index"])) : (l(),
|
|
1359
|
+
}, 1032, ["index"])) : (l(), V(r(Re), {
|
|
1344
1360
|
key: 1,
|
|
1345
1361
|
index: n.menuUrl
|
|
1346
1362
|
}, {
|
|
1347
1363
|
default: E(() => [
|
|
1348
|
-
e("span",
|
|
1349
|
-
n.menuName !== "首页" ? (l(), u("span",
|
|
1350
|
-
|
|
1364
|
+
e("span", oo, [
|
|
1365
|
+
n.menuName !== "首页" ? (l(), u("span", no, [
|
|
1366
|
+
se(A(n.icon)) ? (l(), V(r(I), {
|
|
1351
1367
|
key: 0,
|
|
1352
|
-
name:
|
|
1368
|
+
name: A(n.icon),
|
|
1353
1369
|
size: 16
|
|
1354
|
-
}, null, 8, ["name"])) : (l(), u("span",
|
|
1370
|
+
}, null, 8, ["name"])) : (l(), u("span", ao, $(G(n.menuName)), 1))
|
|
1355
1371
|
])) : U("", !0),
|
|
1356
|
-
e("span",
|
|
1372
|
+
e("span", lo, $(n.menuName), 1)
|
|
1357
1373
|
])
|
|
1358
1374
|
]),
|
|
1359
1375
|
_: 2
|
|
@@ -1362,46 +1378,46 @@ const Na = {
|
|
|
1362
1378
|
]),
|
|
1363
1379
|
_: 1
|
|
1364
1380
|
}, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
|
|
1365
|
-
e("div",
|
|
1381
|
+
e("div", ro, [
|
|
1366
1382
|
e("div", {
|
|
1367
1383
|
class: "top-menu__search",
|
|
1368
1384
|
ref_key: "searchRef",
|
|
1369
|
-
ref:
|
|
1385
|
+
ref: N
|
|
1370
1386
|
}, [
|
|
1371
|
-
|
|
1387
|
+
y(r(I), {
|
|
1372
1388
|
name: "search",
|
|
1373
1389
|
size: 14,
|
|
1374
1390
|
class: "top-menu__search-icon"
|
|
1375
1391
|
}),
|
|
1376
|
-
|
|
1377
|
-
"onUpdate:modelValue": w[0] || (w[0] = (n) =>
|
|
1392
|
+
Fe(e("input", {
|
|
1393
|
+
"onUpdate:modelValue": w[0] || (w[0] = (n) => D.value = n),
|
|
1378
1394
|
type: "text",
|
|
1379
1395
|
class: "top-menu__search-input",
|
|
1380
1396
|
placeholder: "搜索菜单...",
|
|
1381
|
-
onFocus: w[1] || (w[1] = (n) =>
|
|
1397
|
+
onFocus: w[1] || (w[1] = (n) => Y.value = !0)
|
|
1382
1398
|
}, null, 544), [
|
|
1383
|
-
[
|
|
1399
|
+
[Qe, D.value]
|
|
1384
1400
|
]),
|
|
1385
|
-
|
|
1401
|
+
y(ke, { name: "search-dropdown" }, {
|
|
1386
1402
|
default: E(() => [
|
|
1387
|
-
|
|
1388
|
-
p.value.length > 0 ? (l(), u("div",
|
|
1389
|
-
(l(!0), u(
|
|
1403
|
+
Y.value && (p.value.length > 0 || D.value) ? (l(), u("div", io, [
|
|
1404
|
+
p.value.length > 0 ? (l(), u("div", uo, [
|
|
1405
|
+
(l(!0), u(j, null, W(p.value, (n) => (l(), u("div", {
|
|
1390
1406
|
key: n.path,
|
|
1391
1407
|
class: "top-menu__search-item",
|
|
1392
1408
|
onClick: (h) => be(n.path)
|
|
1393
1409
|
}, [
|
|
1394
|
-
n.title !== "首页" ? (l(), u("span",
|
|
1395
|
-
|
|
1410
|
+
n.title !== "首页" ? (l(), u("span", mo, [
|
|
1411
|
+
se(A(n.icon)) ? (l(), V(r(I), {
|
|
1396
1412
|
key: 0,
|
|
1397
|
-
name:
|
|
1413
|
+
name: A(n.icon),
|
|
1398
1414
|
size: 16
|
|
1399
|
-
}, null, 8, ["name"])) : (l(), u("span",
|
|
1415
|
+
}, null, 8, ["name"])) : (l(), u("span", po, $(G(n.title)), 1))
|
|
1400
1416
|
])) : U("", !0),
|
|
1401
|
-
e("span",
|
|
1402
|
-
n.parentTitle ? (l(), u("span",
|
|
1403
|
-
], 8,
|
|
1404
|
-
])) : (l(), u("div",
|
|
1417
|
+
e("span", ho, $(n.title), 1),
|
|
1418
|
+
n.parentTitle ? (l(), u("span", vo, $(n.parentTitle), 1)) : U("", !0)
|
|
1419
|
+
], 8, co))), 128))
|
|
1420
|
+
])) : (l(), u("div", _o, " 未找到匹配的菜单 "))
|
|
1405
1421
|
])) : U("", !0)
|
|
1406
1422
|
]),
|
|
1407
1423
|
_: 1
|
|
@@ -1410,29 +1426,29 @@ const Na = {
|
|
|
1410
1426
|
e("div", {
|
|
1411
1427
|
class: "top-menu__action",
|
|
1412
1428
|
onClick: ue,
|
|
1413
|
-
title:
|
|
1429
|
+
title: B.value ? "退出全屏" : "全屏"
|
|
1414
1430
|
}, [
|
|
1415
|
-
|
|
1416
|
-
name:
|
|
1431
|
+
y(r(I), {
|
|
1432
|
+
name: B.value ? "fullscreen-exit" : "fullscreen",
|
|
1417
1433
|
size: 16
|
|
1418
1434
|
}, null, 8, ["name"])
|
|
1419
|
-
], 8,
|
|
1435
|
+
], 8, fo),
|
|
1420
1436
|
e("div", {
|
|
1421
1437
|
class: "top-menu__action",
|
|
1422
|
-
onClick:
|
|
1438
|
+
onClick: ne,
|
|
1423
1439
|
title: "换肤设置"
|
|
1424
1440
|
}, [
|
|
1425
|
-
|
|
1441
|
+
y(r(I), {
|
|
1426
1442
|
name: "skin",
|
|
1427
1443
|
size: 16
|
|
1428
1444
|
})
|
|
1429
1445
|
]),
|
|
1430
1446
|
e("div", {
|
|
1431
1447
|
class: "top-menu__action",
|
|
1432
|
-
onClick:
|
|
1448
|
+
onClick: oe,
|
|
1433
1449
|
title: "切换主题"
|
|
1434
1450
|
}, [
|
|
1435
|
-
|
|
1451
|
+
y(r(I), {
|
|
1436
1452
|
name: r(a).isDark ? "sun" : "moon",
|
|
1437
1453
|
size: 16
|
|
1438
1454
|
}, null, 8, ["name"])
|
|
@@ -1440,41 +1456,41 @@ const Na = {
|
|
|
1440
1456
|
e("div", {
|
|
1441
1457
|
class: "top-menu__user",
|
|
1442
1458
|
ref_key: "dropdownRef",
|
|
1443
|
-
ref:
|
|
1459
|
+
ref: R
|
|
1444
1460
|
}, [
|
|
1445
1461
|
e("div", {
|
|
1446
1462
|
class: "top-menu__user-trigger",
|
|
1447
|
-
onClick:
|
|
1463
|
+
onClick: Be(T, ["stop"])
|
|
1448
1464
|
}, [
|
|
1449
|
-
e("div",
|
|
1450
|
-
e("span", null,
|
|
1465
|
+
e("div", go, [
|
|
1466
|
+
e("span", null, $(((Q = r(m).userName) == null ? void 0 : Q.charAt(0)) || "U"), 1)
|
|
1451
1467
|
]),
|
|
1452
|
-
e("span",
|
|
1468
|
+
e("span", yo, $(r(m).userName), 1),
|
|
1453
1469
|
e("span", {
|
|
1454
|
-
class:
|
|
1470
|
+
class: q(["top-menu__user-arrow", { "is-active": F.value }])
|
|
1455
1471
|
}, "▼", 2)
|
|
1456
1472
|
]),
|
|
1457
|
-
|
|
1473
|
+
y(ke, { name: "dropdown" }, {
|
|
1458
1474
|
default: E(() => {
|
|
1459
1475
|
var n;
|
|
1460
1476
|
return [
|
|
1461
|
-
|
|
1462
|
-
e("div",
|
|
1463
|
-
e("div", wo, [
|
|
1464
|
-
e("span", null, C(((n = r(m).userName) == null ? void 0 : n.charAt(0)) || "U"), 1)
|
|
1465
|
-
]),
|
|
1477
|
+
F.value ? (l(), u("div", ko, [
|
|
1478
|
+
e("div", wo, [
|
|
1466
1479
|
e("div", bo, [
|
|
1467
|
-
e("
|
|
1468
|
-
|
|
1480
|
+
e("span", null, $(((n = r(m).userName) == null ? void 0 : n.charAt(0)) || "U"), 1)
|
|
1481
|
+
]),
|
|
1482
|
+
e("div", xo, [
|
|
1483
|
+
e("div", Co, $(r(m).userName), 1),
|
|
1484
|
+
e("div", $o, $(r(m).departmentName), 1)
|
|
1469
1485
|
])
|
|
1470
1486
|
]),
|
|
1471
1487
|
w[8] || (w[8] = e("div", { class: "top-menu__dropdown-divider" }, null, -1)),
|
|
1472
|
-
e("div",
|
|
1488
|
+
e("div", Lo, [
|
|
1473
1489
|
e("div", {
|
|
1474
1490
|
class: "top-menu__dropdown-item",
|
|
1475
1491
|
onClick: _e
|
|
1476
1492
|
}, [
|
|
1477
|
-
|
|
1493
|
+
y(r(I), {
|
|
1478
1494
|
name: "user",
|
|
1479
1495
|
size: 16
|
|
1480
1496
|
}),
|
|
@@ -1484,7 +1500,7 @@ const Na = {
|
|
|
1484
1500
|
class: "top-menu__dropdown-item",
|
|
1485
1501
|
onClick: fe
|
|
1486
1502
|
}, [
|
|
1487
|
-
|
|
1503
|
+
y(r(I), {
|
|
1488
1504
|
name: "lock",
|
|
1489
1505
|
size: 16
|
|
1490
1506
|
}),
|
|
@@ -1495,7 +1511,7 @@ const Na = {
|
|
|
1495
1511
|
class: "top-menu__dropdown-item top-menu__dropdown-item--danger",
|
|
1496
1512
|
onClick: S
|
|
1497
1513
|
}, [
|
|
1498
|
-
|
|
1514
|
+
y(r(I), {
|
|
1499
1515
|
name: "logout",
|
|
1500
1516
|
size: 16
|
|
1501
1517
|
}),
|
|
@@ -1509,34 +1525,34 @@ const Na = {
|
|
|
1509
1525
|
})
|
|
1510
1526
|
], 512)
|
|
1511
1527
|
]),
|
|
1512
|
-
|
|
1513
|
-
modelValue:
|
|
1514
|
-
"onUpdate:modelValue": w[2] || (w[2] = (n) =>
|
|
1528
|
+
y(r(ot), {
|
|
1529
|
+
modelValue: z.value,
|
|
1530
|
+
"onUpdate:modelValue": w[2] || (w[2] = (n) => z.value = n),
|
|
1515
1531
|
title: "换肤设置",
|
|
1516
1532
|
direction: "rtl",
|
|
1517
1533
|
size: "320px"
|
|
1518
1534
|
}, {
|
|
1519
1535
|
default: E(() => [
|
|
1520
|
-
e("div",
|
|
1521
|
-
e("div",
|
|
1536
|
+
e("div", Mo, [
|
|
1537
|
+
e("div", Io, [
|
|
1522
1538
|
w[12] || (w[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
|
|
1523
|
-
e("div",
|
|
1524
|
-
(l(), u(
|
|
1539
|
+
e("div", So, [
|
|
1540
|
+
(l(), u(j, null, W(xe, (n) => e("div", {
|
|
1525
1541
|
key: n.value,
|
|
1526
|
-
class:
|
|
1542
|
+
class: q(["layout-option", { "is-active": Ce.value === n.value }]),
|
|
1527
1543
|
onClick: (h) => $e(n.value)
|
|
1528
1544
|
}, [
|
|
1529
|
-
e("div",
|
|
1530
|
-
n.value === "sidebar" ? (l(), u("div",
|
|
1545
|
+
e("div", To, [
|
|
1546
|
+
n.value === "sidebar" ? (l(), u("div", No, [...w[9] || (w[9] = [
|
|
1531
1547
|
e("div", { class: "preview-aside" }, null, -1),
|
|
1532
1548
|
e("div", { class: "preview-main" }, [
|
|
1533
1549
|
e("div", { class: "preview-header" }),
|
|
1534
1550
|
e("div", { class: "preview-content" })
|
|
1535
1551
|
], -1)
|
|
1536
|
-
])])) : n.value === "top" ? (l(), u("div",
|
|
1552
|
+
])])) : n.value === "top" ? (l(), u("div", Uo, [...w[10] || (w[10] = [
|
|
1537
1553
|
e("div", { class: "preview-header-full" }, null, -1),
|
|
1538
1554
|
e("div", { class: "preview-content-full" }, null, -1)
|
|
1539
|
-
])])) : (l(), u("div",
|
|
1555
|
+
])])) : (l(), u("div", zo, [...w[11] || (w[11] = [
|
|
1540
1556
|
e("div", { class: "preview-header-mix" }, [
|
|
1541
1557
|
e("div", { class: "preview-mix-left" })
|
|
1542
1558
|
], -1),
|
|
@@ -1546,45 +1562,45 @@ const Na = {
|
|
|
1546
1562
|
], -1)
|
|
1547
1563
|
])]))
|
|
1548
1564
|
]),
|
|
1549
|
-
e("span",
|
|
1550
|
-
], 10,
|
|
1565
|
+
e("span", Do, $(n.label), 1)
|
|
1566
|
+
], 10, Eo)), 64))
|
|
1551
1567
|
])
|
|
1552
1568
|
]),
|
|
1553
|
-
e("div",
|
|
1569
|
+
e("div", Ro, [
|
|
1554
1570
|
w[13] || (w[13] = e("div", { class: "settings-title" }, "主题色", -1)),
|
|
1555
|
-
e("div",
|
|
1556
|
-
(l(), u(
|
|
1571
|
+
e("div", Po, [
|
|
1572
|
+
(l(), u(j, null, W(Le, (n) => e("div", {
|
|
1557
1573
|
key: n.value,
|
|
1558
|
-
class:
|
|
1574
|
+
class: q(["color-option", { "is-active": r(a).primaryColor === n.value }]),
|
|
1559
1575
|
style: Ee({ backgroundColor: n.value }),
|
|
1560
1576
|
title: n.label,
|
|
1561
1577
|
onClick: (h) => Me(n.value)
|
|
1562
1578
|
}, [
|
|
1563
|
-
r(a).primaryColor === n.value ? (l(),
|
|
1579
|
+
r(a).primaryColor === n.value ? (l(), V(r(I), {
|
|
1564
1580
|
key: 0,
|
|
1565
1581
|
name: "check",
|
|
1566
1582
|
size: 12,
|
|
1567
1583
|
color: "#fff"
|
|
1568
1584
|
})) : U("", !0)
|
|
1569
|
-
], 14,
|
|
1585
|
+
], 14, Ao)), 64))
|
|
1570
1586
|
])
|
|
1571
1587
|
]),
|
|
1572
|
-
e("div",
|
|
1588
|
+
e("div", Oo, [
|
|
1573
1589
|
w[18] || (w[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
|
|
1574
|
-
e("div",
|
|
1575
|
-
e("div",
|
|
1590
|
+
e("div", Vo, [
|
|
1591
|
+
e("div", Fo, [
|
|
1576
1592
|
w[15] || (w[15] = e("span", null, "灰色模式", -1)),
|
|
1577
1593
|
e("div", {
|
|
1578
|
-
class:
|
|
1594
|
+
class: q(["switch-wrapper", { "is-checked": P.value }]),
|
|
1579
1595
|
onClick: ie
|
|
1580
1596
|
}, [...w[14] || (w[14] = [
|
|
1581
1597
|
e("span", { class: "switch-core" }, null, -1)
|
|
1582
1598
|
])], 2)
|
|
1583
1599
|
]),
|
|
1584
|
-
e("div",
|
|
1600
|
+
e("div", Bo, [
|
|
1585
1601
|
w[17] || (w[17] = e("span", null, "暗黑模式", -1)),
|
|
1586
1602
|
e("div", {
|
|
1587
|
-
class:
|
|
1603
|
+
class: q(["switch-wrapper", { "is-checked": r(a).isDark }]),
|
|
1588
1604
|
onClick: he
|
|
1589
1605
|
}, [...w[16] || (w[16] = [
|
|
1590
1606
|
e("span", { class: "switch-core" }, null, -1)
|
|
@@ -1599,73 +1615,73 @@ const Na = {
|
|
|
1599
1615
|
]);
|
|
1600
1616
|
};
|
|
1601
1617
|
}
|
|
1602
|
-
}),
|
|
1618
|
+
}), jo = /* @__PURE__ */ ee(Ko, [["__scopeId", "data-v-ff5f8764"]]), qo = { class: "mix-top-menu" }, Wo = { class: "mix-top-menu__logo" }, Yo = { class: "mix-top-menu__logo-text" }, Xo = { class: "mix-top-menu__menu-content" }, Ho = {
|
|
1603
1619
|
key: 0,
|
|
1604
1620
|
class: "mix-top-menu__menu-icon"
|
|
1605
|
-
},
|
|
1621
|
+
}, Go = {
|
|
1606
1622
|
key: 1,
|
|
1607
1623
|
class: "mix-top-menu__menu-char"
|
|
1608
|
-
},
|
|
1624
|
+
}, Jo = { class: "mix-top-menu__menu-text" }, Qo = { class: "mix-top-menu__actions" }, Zo = {
|
|
1609
1625
|
key: 0,
|
|
1610
1626
|
class: "mix-top-menu__search-dropdown"
|
|
1611
|
-
},
|
|
1627
|
+
}, en = {
|
|
1612
1628
|
key: 0,
|
|
1613
1629
|
class: "mix-top-menu__search-results"
|
|
1614
|
-
},
|
|
1630
|
+
}, tn = ["onClick"], sn = {
|
|
1615
1631
|
key: 0,
|
|
1616
1632
|
class: "mix-top-menu__search-icon-item"
|
|
1617
|
-
},
|
|
1633
|
+
}, on = {
|
|
1618
1634
|
key: 1,
|
|
1619
1635
|
class: "mix-top-menu__search-char"
|
|
1620
|
-
},
|
|
1636
|
+
}, nn = { class: "mix-top-menu__search-item-title" }, an = {
|
|
1621
1637
|
key: 1,
|
|
1622
1638
|
class: "mix-top-menu__search-item-parent"
|
|
1623
|
-
},
|
|
1639
|
+
}, ln = {
|
|
1624
1640
|
key: 1,
|
|
1625
1641
|
class: "mix-top-menu__search-empty"
|
|
1626
|
-
},
|
|
1642
|
+
}, rn = ["title"], un = { class: "mix-top-menu__avatar" }, cn = { class: "mix-top-menu__user-name" }, dn = {
|
|
1627
1643
|
key: 0,
|
|
1628
1644
|
class: "mix-top-menu__dropdown"
|
|
1629
|
-
},
|
|
1645
|
+
}, mn = { class: "mix-top-menu__dropdown-header" }, pn = { class: "mix-top-menu__dropdown-avatar" }, hn = { class: "mix-top-menu__dropdown-info" }, vn = { class: "mix-top-menu__dropdown-name" }, _n = { class: "mix-top-menu__dropdown-role" }, fn = { class: "mix-top-menu__dropdown-menu" }, gn = { class: "settings-drawer" }, yn = { class: "settings-section" }, kn = { class: "settings-layout-options" }, wn = ["onClick"], bn = { class: "layout-option__preview" }, xn = {
|
|
1630
1646
|
key: 0,
|
|
1631
1647
|
class: "layout-preview-sidebar"
|
|
1632
|
-
},
|
|
1648
|
+
}, Cn = {
|
|
1633
1649
|
key: 1,
|
|
1634
1650
|
class: "layout-preview-top"
|
|
1635
|
-
},
|
|
1651
|
+
}, $n = {
|
|
1636
1652
|
key: 2,
|
|
1637
1653
|
class: "layout-preview-mix"
|
|
1638
|
-
},
|
|
1654
|
+
}, Ln = { class: "layout-option__label" }, Mn = { class: "settings-section" }, In = { class: "settings-color-options" }, Sn = ["title", "onClick"], En = { class: "settings-section" }, Tn = { class: "settings-switch-list" }, Nn = { class: "settings-switch-item" }, Un = { class: "settings-switch-item" }, zn = /* @__PURE__ */ le({
|
|
1639
1655
|
__name: "MixTopMenu",
|
|
1640
1656
|
setup(t) {
|
|
1641
|
-
const s = we(), o = de(), i = ve(), a = me(), m =
|
|
1642
|
-
const
|
|
1657
|
+
const s = we(), o = de(), i = ve(), a = me(), m = Z(), M = Te(), d = f(""), g = (n, h = "") => {
|
|
1658
|
+
const H = [];
|
|
1643
1659
|
return n.forEach((x) => {
|
|
1644
|
-
x.children && x.children.length > 0 ?
|
|
1645
|
-
}),
|
|
1646
|
-
}, p = b(() =>
|
|
1647
|
-
(h) => h.title.toLowerCase().includes(
|
|
1648
|
-
) : []),
|
|
1660
|
+
x.children && x.children.length > 0 ? H.push(...g(x.children, x.menuName)) : H.push({ ...x, parentTitle: h, title: x.menuName, path: x.menuUrl });
|
|
1661
|
+
}), H;
|
|
1662
|
+
}, p = b(() => A.value.trim() ? g(i.menuList).filter(
|
|
1663
|
+
(h) => h.title.toLowerCase().includes(A.value.toLowerCase())
|
|
1664
|
+
) : []), _ = b(() => {
|
|
1649
1665
|
const n = i.menuList.find((h) => h.menuUrl === d.value);
|
|
1650
1666
|
return (n == null ? void 0 : n.children) || [];
|
|
1651
|
-
}),
|
|
1652
|
-
|
|
1653
|
-
},
|
|
1667
|
+
}), v = b(() => i.menuList.find((n) => !!(s.path === n.menuUrl || n.children && n.children.some((h) => s.path.startsWith(h.menuUrl) || s.path === h.menuUrl)))), L = () => {
|
|
1668
|
+
v.value ? d.value = v.value.menuUrl : i.menuList.length > 0 && (d.value = i.menuList[0].menuUrl);
|
|
1669
|
+
}, F = (n) => {
|
|
1654
1670
|
d.value = n;
|
|
1655
|
-
const h = i.menuList.find((
|
|
1671
|
+
const h = i.menuList.find((H) => H.menuUrl === n);
|
|
1656
1672
|
if (h)
|
|
1657
1673
|
if (h.children && h.children.length > 0) {
|
|
1658
|
-
const
|
|
1659
|
-
s.path !==
|
|
1674
|
+
const H = h.children[0].menuUrl;
|
|
1675
|
+
s.path !== H && o.push(H);
|
|
1660
1676
|
} else
|
|
1661
1677
|
s.path !== n && o.push(n);
|
|
1662
|
-
},
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
}),
|
|
1666
|
-
n && n.length > 0 && (
|
|
1678
|
+
}, R = b(() => a.isDark ? "#1d1e1f" : "#fff"), B = b(() => a.isDark ? "#cfd3dc" : "#303133"), z = b(() => "#409eff"), P = f(!1), Y = f(null), D = f(!1), N = f(!1), K = f(!1), te = f(!1), A = f(""), G = f(null);
|
|
1679
|
+
Ge(() => s.path, () => {
|
|
1680
|
+
L(), a.setMixSubMenus(_.value);
|
|
1681
|
+
}), Ge(() => i.menuList, (n) => {
|
|
1682
|
+
n && n.length > 0 && (L(), a.setMixSubMenus(_.value));
|
|
1667
1683
|
}, { immediate: !0 });
|
|
1668
|
-
const
|
|
1684
|
+
const se = /* @__PURE__ */ new Set([
|
|
1669
1685
|
"arrow-up",
|
|
1670
1686
|
"arrow-down",
|
|
1671
1687
|
"arrow-left",
|
|
@@ -1767,10 +1783,10 @@ const Na = {
|
|
|
1767
1783
|
"sun",
|
|
1768
1784
|
"theme",
|
|
1769
1785
|
"skin"
|
|
1770
|
-
]),
|
|
1786
|
+
]), oe = (n) => {
|
|
1771
1787
|
if (!n || n === "") return "";
|
|
1772
1788
|
if (n.startsWith("tineco-icon-")) {
|
|
1773
|
-
const
|
|
1789
|
+
const H = n.replace("tineco-icon-", "");
|
|
1774
1790
|
return {
|
|
1775
1791
|
home: "home",
|
|
1776
1792
|
dashboard: "dashboard",
|
|
@@ -1784,7 +1800,7 @@ const Na = {
|
|
|
1784
1800
|
chart: "chart",
|
|
1785
1801
|
report: "report",
|
|
1786
1802
|
analytics: "analytics"
|
|
1787
|
-
}[
|
|
1803
|
+
}[H] || H;
|
|
1788
1804
|
}
|
|
1789
1805
|
return {
|
|
1790
1806
|
dashboard: "dashboard",
|
|
@@ -1804,36 +1820,36 @@ const Na = {
|
|
|
1804
1820
|
list: "list",
|
|
1805
1821
|
grid: "grid"
|
|
1806
1822
|
}[n] || n;
|
|
1807
|
-
}, ue = (n) => n ? n.charAt(0) : "", re = (n) =>
|
|
1808
|
-
a.toggleTheme(),
|
|
1809
|
-
},
|
|
1823
|
+
}, ue = (n) => n ? n.charAt(0) : "", re = (n) => se.has(n), T = () => {
|
|
1824
|
+
a.toggleTheme(), N.value = !1;
|
|
1825
|
+
}, J = () => {
|
|
1810
1826
|
document.fullscreenElement ? document.exitFullscreen() : document.documentElement.requestFullscreen();
|
|
1811
1827
|
}, ce = () => {
|
|
1812
|
-
|
|
1828
|
+
D.value = !!document.fullscreenElement;
|
|
1813
1829
|
}, be = () => {
|
|
1814
|
-
|
|
1815
|
-
},
|
|
1816
|
-
|
|
1830
|
+
P.value = !P.value;
|
|
1831
|
+
}, ne = () => {
|
|
1832
|
+
P.value = !1;
|
|
1817
1833
|
}, pe = () => {
|
|
1818
|
-
|
|
1834
|
+
te.value = !1, A.value = "";
|
|
1819
1835
|
}, ie = (n) => {
|
|
1820
1836
|
o.push(n), pe();
|
|
1821
1837
|
}, he = () => {
|
|
1822
|
-
|
|
1838
|
+
N.value = !0;
|
|
1823
1839
|
}, xe = (n) => {
|
|
1824
|
-
|
|
1840
|
+
K.value = n;
|
|
1825
1841
|
const h = document.documentElement;
|
|
1826
1842
|
n ? h.classList.add("grey-mode") : h.classList.remove("grey-mode");
|
|
1827
1843
|
}, Ce = () => {
|
|
1828
|
-
xe(!
|
|
1844
|
+
xe(!K.value), N.value = !1;
|
|
1829
1845
|
}, $e = () => {
|
|
1830
|
-
a.toggleTheme(),
|
|
1846
|
+
a.toggleTheme(), N.value = !1;
|
|
1831
1847
|
}, Le = [
|
|
1832
1848
|
{ value: "sidebar", label: "左侧菜单", icon: "sidebar-left" },
|
|
1833
1849
|
{ value: "top", label: "顶部菜单", icon: "menu" },
|
|
1834
1850
|
{ value: "mix", label: "混合菜单", icon: "grid" }
|
|
1835
1851
|
], Me = b(() => a.layout), _e = (n) => {
|
|
1836
|
-
a.setLayout(n),
|
|
1852
|
+
a.setLayout(n), N.value = !1;
|
|
1837
1853
|
}, fe = [
|
|
1838
1854
|
{ value: "#409eff", label: "默认蓝" },
|
|
1839
1855
|
{ value: "#1890ff", label: "科技蓝" },
|
|
@@ -1842,57 +1858,57 @@ const Na = {
|
|
|
1842
1858
|
{ value: "#f5222d", label: "薄暮红" },
|
|
1843
1859
|
{ value: "#722ed1", label: "酱紫" }
|
|
1844
1860
|
], S = (n) => {
|
|
1845
|
-
a.setPrimaryColor(n),
|
|
1861
|
+
a.setPrimaryColor(n), N.value = !1;
|
|
1846
1862
|
}, k = () => {
|
|
1847
|
-
|
|
1848
|
-
},
|
|
1849
|
-
|
|
1863
|
+
ne(), o.push("/profile");
|
|
1864
|
+
}, X = () => {
|
|
1865
|
+
ne(), o.push("/change-password");
|
|
1850
1866
|
}, c = () => {
|
|
1851
|
-
|
|
1867
|
+
ne(), M.logout(), m.clearUserInfo(), i.clearMenu(), o.push("/login");
|
|
1852
1868
|
}, w = (n) => {
|
|
1853
|
-
|
|
1854
|
-
},
|
|
1855
|
-
n.key === "Escape" && (pe(),
|
|
1869
|
+
Y.value && !Y.value.contains(n.target) && ne(), G.value && !G.value.contains(n.target) && pe();
|
|
1870
|
+
}, Q = (n) => {
|
|
1871
|
+
n.key === "Escape" && (pe(), ne());
|
|
1856
1872
|
};
|
|
1857
|
-
return
|
|
1858
|
-
document.addEventListener("click", w), document.addEventListener("fullscreenchange", ce), document.addEventListener("keydown",
|
|
1859
|
-
}),
|
|
1860
|
-
document.removeEventListener("click", w), document.removeEventListener("fullscreenchange", ce), document.removeEventListener("keydown",
|
|
1873
|
+
return Ve(() => {
|
|
1874
|
+
document.addEventListener("click", w), document.addEventListener("fullscreenchange", ce), document.addEventListener("keydown", Q), K.value = document.documentElement.classList.contains("grey-mode"), L();
|
|
1875
|
+
}), Je(() => {
|
|
1876
|
+
document.removeEventListener("click", w), document.removeEventListener("fullscreenchange", ce), document.removeEventListener("keydown", Q);
|
|
1861
1877
|
}), (n, h) => {
|
|
1862
|
-
var
|
|
1863
|
-
return l(), u("div",
|
|
1864
|
-
e("div",
|
|
1878
|
+
var H;
|
|
1879
|
+
return l(), u("div", qo, [
|
|
1880
|
+
e("div", Wo, [
|
|
1865
1881
|
h[3] || (h[3] = e("img", {
|
|
1866
|
-
src:
|
|
1882
|
+
src: We,
|
|
1867
1883
|
alt: "Logo",
|
|
1868
1884
|
class: "mix-top-menu__logo-img"
|
|
1869
1885
|
}, null, -1)),
|
|
1870
|
-
e("span",
|
|
1886
|
+
e("span", Yo, $(r(a).appName), 1)
|
|
1871
1887
|
]),
|
|
1872
|
-
|
|
1888
|
+
y(r(st), {
|
|
1873
1889
|
"model-value": d.value,
|
|
1874
1890
|
mode: "horizontal",
|
|
1875
|
-
"background-color":
|
|
1876
|
-
"text-color":
|
|
1877
|
-
"active-text-color":
|
|
1891
|
+
"background-color": R.value,
|
|
1892
|
+
"text-color": B.value,
|
|
1893
|
+
"active-text-color": z.value,
|
|
1878
1894
|
class: "mix-top-menu__menu",
|
|
1879
|
-
onSelect:
|
|
1895
|
+
onSelect: F
|
|
1880
1896
|
}, {
|
|
1881
1897
|
default: E(() => [
|
|
1882
|
-
(l(!0), u(
|
|
1898
|
+
(l(!0), u(j, null, W(r(i).menuList, (x) => (l(), V(r(Re), {
|
|
1883
1899
|
key: x.menuUrl,
|
|
1884
1900
|
index: x.menuUrl
|
|
1885
1901
|
}, {
|
|
1886
1902
|
default: E(() => [
|
|
1887
|
-
e("span",
|
|
1888
|
-
x.menuName !== "首页" ? (l(), u("span",
|
|
1889
|
-
re(
|
|
1903
|
+
e("span", Xo, [
|
|
1904
|
+
x.menuName !== "首页" ? (l(), u("span", Ho, [
|
|
1905
|
+
re(oe(x.icon)) ? (l(), V(r(I), {
|
|
1890
1906
|
key: 0,
|
|
1891
|
-
name:
|
|
1907
|
+
name: oe(x.icon),
|
|
1892
1908
|
size: 16
|
|
1893
|
-
}, null, 8, ["name"])) : (l(), u("span",
|
|
1909
|
+
}, null, 8, ["name"])) : (l(), u("span", Go, $(ue(x.menuName)), 1))
|
|
1894
1910
|
])) : U("", !0),
|
|
1895
|
-
e("span",
|
|
1911
|
+
e("span", Jo, $(x.menuName), 1)
|
|
1896
1912
|
])
|
|
1897
1913
|
]),
|
|
1898
1914
|
_: 2
|
|
@@ -1900,46 +1916,46 @@ const Na = {
|
|
|
1900
1916
|
]),
|
|
1901
1917
|
_: 1
|
|
1902
1918
|
}, 8, ["model-value", "background-color", "text-color", "active-text-color"]),
|
|
1903
|
-
e("div",
|
|
1919
|
+
e("div", Qo, [
|
|
1904
1920
|
e("div", {
|
|
1905
1921
|
class: "mix-top-menu__search",
|
|
1906
1922
|
ref_key: "searchRef",
|
|
1907
|
-
ref:
|
|
1923
|
+
ref: G
|
|
1908
1924
|
}, [
|
|
1909
|
-
|
|
1925
|
+
y(r(I), {
|
|
1910
1926
|
name: "search",
|
|
1911
1927
|
size: 14,
|
|
1912
1928
|
class: "mix-top-menu__search-icon"
|
|
1913
1929
|
}),
|
|
1914
|
-
|
|
1915
|
-
"onUpdate:modelValue": h[0] || (h[0] = (x) =>
|
|
1930
|
+
Fe(e("input", {
|
|
1931
|
+
"onUpdate:modelValue": h[0] || (h[0] = (x) => A.value = x),
|
|
1916
1932
|
type: "text",
|
|
1917
1933
|
class: "mix-top-menu__search-input",
|
|
1918
1934
|
placeholder: "搜索菜单...",
|
|
1919
|
-
onFocus: h[1] || (h[1] = (x) =>
|
|
1935
|
+
onFocus: h[1] || (h[1] = (x) => te.value = !0)
|
|
1920
1936
|
}, null, 544), [
|
|
1921
|
-
[
|
|
1937
|
+
[Qe, A.value]
|
|
1922
1938
|
]),
|
|
1923
|
-
|
|
1939
|
+
y(ke, { name: "search-dropdown" }, {
|
|
1924
1940
|
default: E(() => [
|
|
1925
|
-
|
|
1926
|
-
p.value.length > 0 ? (l(), u("div",
|
|
1927
|
-
(l(!0), u(
|
|
1941
|
+
te.value && (p.value.length > 0 || A.value) ? (l(), u("div", Zo, [
|
|
1942
|
+
p.value.length > 0 ? (l(), u("div", en, [
|
|
1943
|
+
(l(!0), u(j, null, W(p.value, (x) => (l(), u("div", {
|
|
1928
1944
|
key: x.path,
|
|
1929
1945
|
class: "mix-top-menu__search-item",
|
|
1930
|
-
onClick: (
|
|
1946
|
+
onClick: (ct) => ie(x.path)
|
|
1931
1947
|
}, [
|
|
1932
|
-
x.title !== "首页" ? (l(), u("span",
|
|
1933
|
-
re(
|
|
1948
|
+
x.title !== "首页" ? (l(), u("span", sn, [
|
|
1949
|
+
re(oe(x.icon)) ? (l(), V(r(I), {
|
|
1934
1950
|
key: 0,
|
|
1935
|
-
name:
|
|
1951
|
+
name: oe(x.icon),
|
|
1936
1952
|
size: 16
|
|
1937
|
-
}, null, 8, ["name"])) : (l(), u("span",
|
|
1953
|
+
}, null, 8, ["name"])) : (l(), u("span", on, $(ue(x.title)), 1))
|
|
1938
1954
|
])) : U("", !0),
|
|
1939
|
-
e("span",
|
|
1940
|
-
x.parentTitle ? (l(), u("span",
|
|
1941
|
-
], 8,
|
|
1942
|
-
])) : (l(), u("div",
|
|
1955
|
+
e("span", nn, $(x.title), 1),
|
|
1956
|
+
x.parentTitle ? (l(), u("span", an, $(x.parentTitle), 1)) : U("", !0)
|
|
1957
|
+
], 8, tn))), 128))
|
|
1958
|
+
])) : (l(), u("div", ln, " 未找到匹配的菜单 "))
|
|
1943
1959
|
])) : U("", !0)
|
|
1944
1960
|
]),
|
|
1945
1961
|
_: 1
|
|
@@ -1947,20 +1963,20 @@ const Na = {
|
|
|
1947
1963
|
], 512),
|
|
1948
1964
|
e("div", {
|
|
1949
1965
|
class: "mix-top-menu__action",
|
|
1950
|
-
onClick:
|
|
1951
|
-
title:
|
|
1966
|
+
onClick: J,
|
|
1967
|
+
title: D.value ? "退出全屏" : "全屏"
|
|
1952
1968
|
}, [
|
|
1953
|
-
|
|
1954
|
-
name:
|
|
1969
|
+
y(r(I), {
|
|
1970
|
+
name: D.value ? "fullscreen-exit" : "fullscreen",
|
|
1955
1971
|
size: 16
|
|
1956
1972
|
}, null, 8, ["name"])
|
|
1957
|
-
], 8,
|
|
1973
|
+
], 8, rn),
|
|
1958
1974
|
e("div", {
|
|
1959
1975
|
class: "mix-top-menu__action",
|
|
1960
1976
|
onClick: he,
|
|
1961
1977
|
title: "换肤设置"
|
|
1962
1978
|
}, [
|
|
1963
|
-
|
|
1979
|
+
y(r(I), {
|
|
1964
1980
|
name: "skin",
|
|
1965
1981
|
size: 16
|
|
1966
1982
|
})
|
|
@@ -1970,7 +1986,7 @@ const Na = {
|
|
|
1970
1986
|
onClick: T,
|
|
1971
1987
|
title: "切换主题"
|
|
1972
1988
|
}, [
|
|
1973
|
-
|
|
1989
|
+
y(r(I), {
|
|
1974
1990
|
name: r(a).isDark ? "sun" : "moon",
|
|
1975
1991
|
size: 16
|
|
1976
1992
|
}, null, 8, ["name"])
|
|
@@ -1978,41 +1994,41 @@ const Na = {
|
|
|
1978
1994
|
e("div", {
|
|
1979
1995
|
class: "mix-top-menu__user",
|
|
1980
1996
|
ref_key: "dropdownRef",
|
|
1981
|
-
ref:
|
|
1997
|
+
ref: Y
|
|
1982
1998
|
}, [
|
|
1983
1999
|
e("div", {
|
|
1984
2000
|
class: "mix-top-menu__user-trigger",
|
|
1985
|
-
onClick:
|
|
2001
|
+
onClick: Be(be, ["stop"])
|
|
1986
2002
|
}, [
|
|
1987
|
-
e("div",
|
|
1988
|
-
e("span", null,
|
|
2003
|
+
e("div", un, [
|
|
2004
|
+
e("span", null, $(((H = r(m).userName) == null ? void 0 : H.charAt(0)) || "U"), 1)
|
|
1989
2005
|
]),
|
|
1990
|
-
e("span",
|
|
2006
|
+
e("span", cn, $(r(m).userName), 1),
|
|
1991
2007
|
e("span", {
|
|
1992
|
-
class:
|
|
2008
|
+
class: q(["mix-top-menu__user-arrow", { "is-active": P.value }])
|
|
1993
2009
|
}, "▼", 2)
|
|
1994
2010
|
]),
|
|
1995
|
-
|
|
2011
|
+
y(ke, { name: "dropdown" }, {
|
|
1996
2012
|
default: E(() => {
|
|
1997
2013
|
var x;
|
|
1998
2014
|
return [
|
|
1999
|
-
|
|
2000
|
-
e("div",
|
|
2001
|
-
e("div", mn, [
|
|
2002
|
-
e("span", null, C(((x = r(m).userName) == null ? void 0 : x.charAt(0)) || "U"), 1)
|
|
2003
|
-
]),
|
|
2015
|
+
P.value ? (l(), u("div", dn, [
|
|
2016
|
+
e("div", mn, [
|
|
2004
2017
|
e("div", pn, [
|
|
2005
|
-
e("
|
|
2006
|
-
|
|
2018
|
+
e("span", null, $(((x = r(m).userName) == null ? void 0 : x.charAt(0)) || "U"), 1)
|
|
2019
|
+
]),
|
|
2020
|
+
e("div", hn, [
|
|
2021
|
+
e("div", vn, $(r(m).userName), 1),
|
|
2022
|
+
e("div", _n, $(r(m).departmentName), 1)
|
|
2007
2023
|
])
|
|
2008
2024
|
]),
|
|
2009
2025
|
h[8] || (h[8] = e("div", { class: "mix-top-menu__dropdown-divider" }, null, -1)),
|
|
2010
|
-
e("div",
|
|
2026
|
+
e("div", fn, [
|
|
2011
2027
|
e("div", {
|
|
2012
2028
|
class: "mix-top-menu__dropdown-item",
|
|
2013
2029
|
onClick: k
|
|
2014
2030
|
}, [
|
|
2015
|
-
|
|
2031
|
+
y(r(I), {
|
|
2016
2032
|
name: "user",
|
|
2017
2033
|
size: 16
|
|
2018
2034
|
}),
|
|
@@ -2020,9 +2036,9 @@ const Na = {
|
|
|
2020
2036
|
]),
|
|
2021
2037
|
e("div", {
|
|
2022
2038
|
class: "mix-top-menu__dropdown-item",
|
|
2023
|
-
onClick:
|
|
2039
|
+
onClick: X
|
|
2024
2040
|
}, [
|
|
2025
|
-
|
|
2041
|
+
y(r(I), {
|
|
2026
2042
|
name: "lock",
|
|
2027
2043
|
size: 16
|
|
2028
2044
|
}),
|
|
@@ -2033,7 +2049,7 @@ const Na = {
|
|
|
2033
2049
|
class: "mix-top-menu__dropdown-item mix-top-menu__dropdown-item--danger",
|
|
2034
2050
|
onClick: c
|
|
2035
2051
|
}, [
|
|
2036
|
-
|
|
2052
|
+
y(r(I), {
|
|
2037
2053
|
name: "logout",
|
|
2038
2054
|
size: 16
|
|
2039
2055
|
}),
|
|
@@ -2047,34 +2063,34 @@ const Na = {
|
|
|
2047
2063
|
})
|
|
2048
2064
|
], 512)
|
|
2049
2065
|
]),
|
|
2050
|
-
|
|
2051
|
-
modelValue:
|
|
2052
|
-
"onUpdate:modelValue": h[2] || (h[2] = (x) =>
|
|
2066
|
+
y(r(ot), {
|
|
2067
|
+
modelValue: N.value,
|
|
2068
|
+
"onUpdate:modelValue": h[2] || (h[2] = (x) => N.value = x),
|
|
2053
2069
|
title: "换肤设置",
|
|
2054
2070
|
direction: "rtl",
|
|
2055
2071
|
size: "320px"
|
|
2056
2072
|
}, {
|
|
2057
2073
|
default: E(() => [
|
|
2058
|
-
e("div",
|
|
2059
|
-
e("div",
|
|
2074
|
+
e("div", gn, [
|
|
2075
|
+
e("div", yn, [
|
|
2060
2076
|
h[12] || (h[12] = e("div", { class: "settings-title" }, "布局模式", -1)),
|
|
2061
|
-
e("div",
|
|
2062
|
-
(l(), u(
|
|
2077
|
+
e("div", kn, [
|
|
2078
|
+
(l(), u(j, null, W(Le, (x) => e("div", {
|
|
2063
2079
|
key: x.value,
|
|
2064
|
-
class:
|
|
2065
|
-
onClick: (
|
|
2080
|
+
class: q(["layout-option", { "is-active": Me.value === x.value }]),
|
|
2081
|
+
onClick: (ct) => _e(x.value)
|
|
2066
2082
|
}, [
|
|
2067
|
-
e("div",
|
|
2068
|
-
x.value === "sidebar" ? (l(), u("div",
|
|
2083
|
+
e("div", bn, [
|
|
2084
|
+
x.value === "sidebar" ? (l(), u("div", xn, [...h[9] || (h[9] = [
|
|
2069
2085
|
e("div", { class: "preview-aside" }, null, -1),
|
|
2070
2086
|
e("div", { class: "preview-main" }, [
|
|
2071
2087
|
e("div", { class: "preview-header" }),
|
|
2072
2088
|
e("div", { class: "preview-content" })
|
|
2073
2089
|
], -1)
|
|
2074
|
-
])])) : x.value === "top" ? (l(), u("div",
|
|
2090
|
+
])])) : x.value === "top" ? (l(), u("div", Cn, [...h[10] || (h[10] = [
|
|
2075
2091
|
e("div", { class: "preview-header-full" }, null, -1),
|
|
2076
2092
|
e("div", { class: "preview-content-full" }, null, -1)
|
|
2077
|
-
])])) : (l(), u("div",
|
|
2093
|
+
])])) : (l(), u("div", $n, [...h[11] || (h[11] = [
|
|
2078
2094
|
e("div", { class: "preview-header-mix" }, [
|
|
2079
2095
|
e("div", { class: "preview-mix-left" })
|
|
2080
2096
|
], -1),
|
|
@@ -2084,45 +2100,45 @@ const Na = {
|
|
|
2084
2100
|
], -1)
|
|
2085
2101
|
])]))
|
|
2086
2102
|
]),
|
|
2087
|
-
e("span",
|
|
2088
|
-
], 10,
|
|
2103
|
+
e("span", Ln, $(x.label), 1)
|
|
2104
|
+
], 10, wn)), 64))
|
|
2089
2105
|
])
|
|
2090
2106
|
]),
|
|
2091
|
-
e("div",
|
|
2107
|
+
e("div", Mn, [
|
|
2092
2108
|
h[13] || (h[13] = e("div", { class: "settings-title" }, "主题色", -1)),
|
|
2093
|
-
e("div",
|
|
2094
|
-
(l(), u(
|
|
2109
|
+
e("div", In, [
|
|
2110
|
+
(l(), u(j, null, W(fe, (x) => e("div", {
|
|
2095
2111
|
key: x.value,
|
|
2096
|
-
class:
|
|
2112
|
+
class: q(["color-option", { "is-active": r(a).primaryColor === x.value }]),
|
|
2097
2113
|
style: Ee({ backgroundColor: x.value }),
|
|
2098
2114
|
title: x.label,
|
|
2099
|
-
onClick: (
|
|
2115
|
+
onClick: (ct) => S(x.value)
|
|
2100
2116
|
}, [
|
|
2101
|
-
r(a).primaryColor === x.value ? (l(),
|
|
2117
|
+
r(a).primaryColor === x.value ? (l(), V(r(I), {
|
|
2102
2118
|
key: 0,
|
|
2103
2119
|
name: "check",
|
|
2104
2120
|
size: 12,
|
|
2105
2121
|
color: "#fff"
|
|
2106
2122
|
})) : U("", !0)
|
|
2107
|
-
], 14,
|
|
2123
|
+
], 14, Sn)), 64))
|
|
2108
2124
|
])
|
|
2109
2125
|
]),
|
|
2110
|
-
e("div",
|
|
2126
|
+
e("div", En, [
|
|
2111
2127
|
h[18] || (h[18] = e("div", { class: "settings-title" }, "功能设置", -1)),
|
|
2112
|
-
e("div",
|
|
2113
|
-
e("div",
|
|
2128
|
+
e("div", Tn, [
|
|
2129
|
+
e("div", Nn, [
|
|
2114
2130
|
h[15] || (h[15] = e("span", null, "灰色模式", -1)),
|
|
2115
2131
|
e("div", {
|
|
2116
|
-
class:
|
|
2132
|
+
class: q(["switch-wrapper", { "is-checked": K.value }]),
|
|
2117
2133
|
onClick: Ce
|
|
2118
2134
|
}, [...h[14] || (h[14] = [
|
|
2119
2135
|
e("span", { class: "switch-core" }, null, -1)
|
|
2120
2136
|
])], 2)
|
|
2121
2137
|
]),
|
|
2122
|
-
e("div",
|
|
2138
|
+
e("div", Un, [
|
|
2123
2139
|
h[17] || (h[17] = e("span", null, "暗黑模式", -1)),
|
|
2124
2140
|
e("div", {
|
|
2125
|
-
class:
|
|
2141
|
+
class: q(["switch-wrapper", { "is-checked": r(a).isDark }]),
|
|
2126
2142
|
onClick: $e
|
|
2127
2143
|
}, [...h[16] || (h[16] = [
|
|
2128
2144
|
e("span", { class: "switch-core" }, null, -1)
|
|
@@ -2137,82 +2153,82 @@ const Na = {
|
|
|
2137
2153
|
]);
|
|
2138
2154
|
};
|
|
2139
2155
|
}
|
|
2140
|
-
}),
|
|
2156
|
+
}), Dn = /* @__PURE__ */ ee(zn, [["__scopeId", "data-v-25806305"]]), Rn = {
|
|
2141
2157
|
key: 0,
|
|
2142
2158
|
class: "layout layout--sidebar"
|
|
2143
|
-
},
|
|
2159
|
+
}, Pn = { class: "layout__main" }, An = { class: "layout__header" }, On = { class: "layout__content" }, Vn = {
|
|
2144
2160
|
key: 1,
|
|
2145
2161
|
class: "layout layout--top"
|
|
2146
|
-
},
|
|
2162
|
+
}, Fn = { class: "layout__top-menu" }, Bn = { class: "layout__main" }, Kn = { class: "layout__content" }, jn = {
|
|
2147
2163
|
key: 2,
|
|
2148
2164
|
class: "layout layout--mix"
|
|
2149
|
-
},
|
|
2165
|
+
}, qn = { class: "layout__mix-top-menu" }, Wn = { class: "layout__mix-body" }, Yn = { class: "layout__content" }, Xn = /* @__PURE__ */ le({
|
|
2150
2166
|
__name: "index",
|
|
2151
2167
|
setup(t) {
|
|
2152
2168
|
const s = me(), o = ve(), i = b(
|
|
2153
2169
|
() => s.isCollapsed ? "64px" : "210px"
|
|
2154
2170
|
), a = b(() => s.layout), m = b(() => a.value === "mix"), M = b(() => a.value === "sidebar" ? o.menuList : a.value === "mix" ? s.mixSubMenus : []), d = b(() => m.value ? M.value.length > 0 : !1);
|
|
2155
2171
|
return (g, p) => {
|
|
2156
|
-
const
|
|
2157
|
-
return l(), u(
|
|
2158
|
-
a.value === "sidebar" ? (l(), u("div",
|
|
2172
|
+
const _ = pt("router-view");
|
|
2173
|
+
return l(), u(j, null, [
|
|
2174
|
+
a.value === "sidebar" ? (l(), u("div", Rn, [
|
|
2159
2175
|
e("aside", {
|
|
2160
2176
|
class: "layout__aside",
|
|
2161
2177
|
style: Ee({ width: i.value })
|
|
2162
2178
|
}, [
|
|
2163
|
-
|
|
2179
|
+
y(mt, {
|
|
2164
2180
|
"menu-list": M.value,
|
|
2165
2181
|
"show-logo": !0,
|
|
2166
2182
|
"show-user": !0
|
|
2167
2183
|
}, null, 8, ["menu-list"])
|
|
2168
2184
|
], 4),
|
|
2169
|
-
e("div",
|
|
2170
|
-
e("header",
|
|
2171
|
-
|
|
2185
|
+
e("div", Pn, [
|
|
2186
|
+
e("header", An, [
|
|
2187
|
+
y(qs)
|
|
2172
2188
|
]),
|
|
2173
|
-
e("main",
|
|
2174
|
-
|
|
2189
|
+
e("main", On, [
|
|
2190
|
+
y(_)
|
|
2175
2191
|
])
|
|
2176
2192
|
])
|
|
2177
2193
|
])) : U("", !0),
|
|
2178
|
-
a.value === "top" ? (l(), u("div",
|
|
2179
|
-
e("div", Vn, [
|
|
2180
|
-
f(Ko)
|
|
2181
|
-
]),
|
|
2194
|
+
a.value === "top" ? (l(), u("div", Vn, [
|
|
2182
2195
|
e("div", Fn, [
|
|
2183
|
-
|
|
2184
|
-
|
|
2196
|
+
y(jo)
|
|
2197
|
+
]),
|
|
2198
|
+
e("div", Bn, [
|
|
2199
|
+
e("main", Kn, [
|
|
2200
|
+
y(_)
|
|
2185
2201
|
])
|
|
2186
2202
|
])
|
|
2187
2203
|
])) : U("", !0),
|
|
2188
|
-
a.value === "mix" ? (l(), u("div",
|
|
2189
|
-
e("div", jn, [
|
|
2190
|
-
f(zn)
|
|
2191
|
-
]),
|
|
2204
|
+
a.value === "mix" ? (l(), u("div", jn, [
|
|
2192
2205
|
e("div", qn, [
|
|
2206
|
+
y(Dn)
|
|
2207
|
+
]),
|
|
2208
|
+
e("div", Wn, [
|
|
2193
2209
|
d.value ? (l(), u("aside", {
|
|
2194
2210
|
key: 0,
|
|
2195
2211
|
class: "layout__aside",
|
|
2196
2212
|
style: Ee({ width: i.value })
|
|
2197
2213
|
}, [
|
|
2198
|
-
|
|
2214
|
+
y(mt, {
|
|
2199
2215
|
"menu-list": M.value,
|
|
2200
2216
|
"show-logo": !1,
|
|
2201
2217
|
"show-user": !1
|
|
2202
2218
|
}, null, 8, ["menu-list"])
|
|
2203
2219
|
], 4)) : U("", !0),
|
|
2204
|
-
e("main",
|
|
2205
|
-
|
|
2220
|
+
e("main", Yn, [
|
|
2221
|
+
y(_)
|
|
2206
2222
|
])
|
|
2207
2223
|
])
|
|
2208
2224
|
])) : U("", !0)
|
|
2209
2225
|
], 64);
|
|
2210
2226
|
};
|
|
2211
2227
|
}
|
|
2212
|
-
}),
|
|
2228
|
+
}), yt = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-70b115a5"]]), Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2213
2229
|
__proto__: null,
|
|
2214
|
-
default:
|
|
2215
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2230
|
+
default: yt
|
|
2231
|
+
}, Symbol.toStringTag, { value: "Module" })), Gn = { class: "tabs-wrapper" }, Jn = { class: "tab-label" }, Qn = ["onClick"], Zn = /* @__PURE__ */ le({
|
|
2216
2232
|
__name: "Tabs",
|
|
2217
2233
|
setup(t) {
|
|
2218
2234
|
const s = we(), o = de(), i = b(() => {
|
|
@@ -2231,32 +2247,32 @@ const Na = {
|
|
|
2231
2247
|
}, M = (d) => {
|
|
2232
2248
|
const g = i.value.find((p) => p.path === d);
|
|
2233
2249
|
if (!(g != null && g.affix) && d === a.value) {
|
|
2234
|
-
const p = i.value.findIndex((
|
|
2235
|
-
|
|
2250
|
+
const p = i.value.findIndex((v) => v.path === d), _ = i.value[p - 1] || i.value[p + 1];
|
|
2251
|
+
_ && o.push(_.path);
|
|
2236
2252
|
}
|
|
2237
2253
|
};
|
|
2238
|
-
return (d, g) => (l(), u("div",
|
|
2239
|
-
|
|
2254
|
+
return (d, g) => (l(), u("div", Gn, [
|
|
2255
|
+
y(r(Lt), {
|
|
2240
2256
|
modelValue: a.value,
|
|
2241
2257
|
"onUpdate:modelValue": g[0] || (g[0] = (p) => a.value = p),
|
|
2242
2258
|
type: "card",
|
|
2243
2259
|
onTabClick: m
|
|
2244
2260
|
}, {
|
|
2245
2261
|
default: E(() => [
|
|
2246
|
-
(l(!0), u(
|
|
2262
|
+
(l(!0), u(j, null, W(i.value, (p) => (l(), V(r(Mt), {
|
|
2247
2263
|
key: p.path,
|
|
2248
2264
|
name: p.path,
|
|
2249
2265
|
label: p.title,
|
|
2250
2266
|
closable: !p.affix
|
|
2251
2267
|
}, {
|
|
2252
2268
|
label: E(() => [
|
|
2253
|
-
e("span",
|
|
2254
|
-
ye(
|
|
2269
|
+
e("span", Jn, [
|
|
2270
|
+
ye($(p.title) + " ", 1),
|
|
2255
2271
|
p.affix ? U("", !0) : (l(), u("span", {
|
|
2256
2272
|
key: 0,
|
|
2257
2273
|
class: "tab-close",
|
|
2258
|
-
onClick:
|
|
2259
|
-
}, " ✕ ", 8,
|
|
2274
|
+
onClick: Be((_) => M(p.path), ["stop"])
|
|
2275
|
+
}, " ✕ ", 8, Qn))
|
|
2260
2276
|
])
|
|
2261
2277
|
]),
|
|
2262
2278
|
_: 2
|
|
@@ -2266,14 +2282,14 @@ const Na = {
|
|
|
2266
2282
|
}, 8, ["modelValue"])
|
|
2267
2283
|
]));
|
|
2268
2284
|
}
|
|
2269
|
-
}),
|
|
2270
|
-
function
|
|
2271
|
-
return l(), u("div",
|
|
2285
|
+
}), Aa = /* @__PURE__ */ ee(Zn, [["__scopeId", "data-v-9156d8cd"]]), ea = {}, ta = { class: "footer" };
|
|
2286
|
+
function sa(t, s) {
|
|
2287
|
+
return l(), u("div", ta, [...s[0] || (s[0] = [
|
|
2272
2288
|
e("span", null, "Copyright © 2024 Xto Demo. All Rights Reserved.", -1)
|
|
2273
2289
|
])]);
|
|
2274
2290
|
}
|
|
2275
|
-
const
|
|
2276
|
-
const t =
|
|
2291
|
+
const Oa = /* @__PURE__ */ ee(ea, [["render", sa], ["__scopeId", "data-v-4852826a"]]), oa = () => {
|
|
2292
|
+
const t = Et.create({
|
|
2277
2293
|
baseURL: void 0,
|
|
2278
2294
|
timeout: 3e4,
|
|
2279
2295
|
headers: {
|
|
@@ -2282,14 +2298,14 @@ const Aa = /* @__PURE__ */ Z(Zn, [["render", ta], ["__scopeId", "data-v-4852826a
|
|
|
2282
2298
|
});
|
|
2283
2299
|
return t.interceptors.request.use(
|
|
2284
2300
|
(s) => {
|
|
2285
|
-
const o =
|
|
2301
|
+
const o = Ye(), i = Dt() || "Bearer";
|
|
2286
2302
|
return o && (s.headers.Authorization = `${i} ${o}`), s;
|
|
2287
2303
|
},
|
|
2288
2304
|
(s) => Promise.reject(s)
|
|
2289
2305
|
), t.interceptors.response.use(
|
|
2290
2306
|
(s) => {
|
|
2291
2307
|
const { data: o } = s;
|
|
2292
|
-
return o.code === 200 || o.code === 0 ? o.data : o.code === 9121 ? (
|
|
2308
|
+
return o.code === 200 || o.code === 0 ? o.data : o.code === 9121 ? (ae.error("登录已过期,请重新登录"), Se(), window.location.href = "/login", Promise.reject(new Error(o.message || "EXPIRED OR INVALID TOKEN"))) : (ae.error(o.message || "请求失败"), Promise.reject(new Error(o.message || "请求失败")));
|
|
2293
2309
|
},
|
|
2294
2310
|
(s) => {
|
|
2295
2311
|
var i;
|
|
@@ -2297,29 +2313,29 @@ const Aa = /* @__PURE__ */ Z(Zn, [["render", ta], ["__scopeId", "data-v-4852826a
|
|
|
2297
2313
|
if (o) {
|
|
2298
2314
|
const { data: a } = o;
|
|
2299
2315
|
if ((a == null ? void 0 : a.code) === 9121)
|
|
2300
|
-
return
|
|
2316
|
+
return ae.error("登录已过期,请重新登录"), Se(), window.location.href = "/login", Promise.reject(s);
|
|
2301
2317
|
switch (o.status) {
|
|
2302
2318
|
case 401:
|
|
2303
|
-
|
|
2319
|
+
ae.error("登录已过期,请重新登录"), Se(), window.location.href = "/login";
|
|
2304
2320
|
break;
|
|
2305
2321
|
case 403:
|
|
2306
|
-
|
|
2322
|
+
ae.error("没有权限访问");
|
|
2307
2323
|
break;
|
|
2308
2324
|
case 404:
|
|
2309
|
-
|
|
2325
|
+
ae.error("请求资源不存在");
|
|
2310
2326
|
break;
|
|
2311
2327
|
case 500:
|
|
2312
|
-
|
|
2328
|
+
ae.error("服务器错误");
|
|
2313
2329
|
break;
|
|
2314
2330
|
default:
|
|
2315
|
-
|
|
2331
|
+
ae.error(((i = o.data) == null ? void 0 : i.message) || "请求失败");
|
|
2316
2332
|
}
|
|
2317
2333
|
} else
|
|
2318
|
-
|
|
2334
|
+
ae.error("网络连接失败");
|
|
2319
2335
|
return Promise.reject(s);
|
|
2320
2336
|
}
|
|
2321
2337
|
), t;
|
|
2322
|
-
}, ge =
|
|
2338
|
+
}, ge = oa(), O = {
|
|
2323
2339
|
get(t, s) {
|
|
2324
2340
|
return ge.get(t, s);
|
|
2325
2341
|
},
|
|
@@ -2340,22 +2356,22 @@ const Aa = /* @__PURE__ */ Z(Zn, [["render", ta], ["__scopeId", "data-v-4852826a
|
|
|
2340
2356
|
return ge.get(t, { ...s, responseType: "blob" });
|
|
2341
2357
|
}
|
|
2342
2358
|
};
|
|
2343
|
-
function
|
|
2344
|
-
return
|
|
2359
|
+
function na(t) {
|
|
2360
|
+
return O.post("/user/v1.0/login/by-domain", t);
|
|
2345
2361
|
}
|
|
2346
|
-
function
|
|
2347
|
-
return
|
|
2362
|
+
function Va() {
|
|
2363
|
+
return O.put("/user/v1.0/user/logout");
|
|
2348
2364
|
}
|
|
2349
|
-
function
|
|
2350
|
-
return
|
|
2365
|
+
function aa() {
|
|
2366
|
+
return O.get("/user/v1.0/user/get-me");
|
|
2351
2367
|
}
|
|
2352
|
-
function
|
|
2353
|
-
return
|
|
2368
|
+
function Fa(t) {
|
|
2369
|
+
return O.post("/user/v1.0/refresh", { refreshToken: t });
|
|
2354
2370
|
}
|
|
2355
|
-
const
|
|
2371
|
+
const la = { class: "login" }, ra = { class: "login__container" }, ia = /* @__PURE__ */ le({
|
|
2356
2372
|
__name: "index",
|
|
2357
2373
|
setup(t) {
|
|
2358
|
-
const s = de(), o = we(), i =
|
|
2374
|
+
const s = de(), o = we(), i = f(!1), a = f(!1), m = Ze({
|
|
2359
2375
|
uid: "",
|
|
2360
2376
|
password: ""
|
|
2361
2377
|
}), M = {
|
|
@@ -2366,38 +2382,38 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
|
|
|
2366
2382
|
{ required: !0, message: "请输入密码", trigger: "blur" },
|
|
2367
2383
|
{ min: 6, message: "密码长度至少6位", trigger: "blur" }
|
|
2368
2384
|
]
|
|
2369
|
-
}, d =
|
|
2385
|
+
}, d = f(), g = async () => {
|
|
2370
2386
|
var p;
|
|
2371
2387
|
try {
|
|
2372
2388
|
await ((p = d.value) == null ? void 0 : p.validate()), i.value = !0;
|
|
2373
|
-
const
|
|
2374
|
-
appId:
|
|
2375
|
-
clientId:
|
|
2389
|
+
const _ = await na({
|
|
2390
|
+
appId: qe(),
|
|
2391
|
+
clientId: vt(),
|
|
2376
2392
|
uid: m.uid,
|
|
2377
2393
|
password: m.password,
|
|
2378
2394
|
code: !0
|
|
2379
2395
|
});
|
|
2380
|
-
|
|
2381
|
-
const
|
|
2382
|
-
s.push(
|
|
2383
|
-
} catch (
|
|
2384
|
-
console.error("登录失败:",
|
|
2396
|
+
ft(_), ae.success("登录成功");
|
|
2397
|
+
const v = o.query.redirect || "/";
|
|
2398
|
+
s.push(v);
|
|
2399
|
+
} catch (_) {
|
|
2400
|
+
console.error("登录失败:", _);
|
|
2385
2401
|
} finally {
|
|
2386
2402
|
i.value = !1;
|
|
2387
2403
|
}
|
|
2388
2404
|
};
|
|
2389
|
-
return (p,
|
|
2390
|
-
e("div",
|
|
2391
|
-
|
|
2405
|
+
return (p, _) => (l(), u("div", la, [
|
|
2406
|
+
e("div", ra, [
|
|
2407
|
+
_[5] || (_[5] = e("div", { class: "login__header" }, [
|
|
2392
2408
|
e("img", {
|
|
2393
|
-
src:
|
|
2409
|
+
src: We,
|
|
2394
2410
|
alt: "Logo",
|
|
2395
2411
|
class: "login__logo"
|
|
2396
2412
|
}),
|
|
2397
2413
|
e("h1", { class: "login__title" }, "Xto Demo"),
|
|
2398
2414
|
e("p", { class: "login__subtitle" }, "后台管理系统")
|
|
2399
2415
|
], -1)),
|
|
2400
|
-
|
|
2416
|
+
y(r(It), {
|
|
2401
2417
|
ref_key: "formRef",
|
|
2402
2418
|
ref: d,
|
|
2403
2419
|
model: m,
|
|
@@ -2406,16 +2422,16 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
|
|
|
2406
2422
|
"label-width": "0"
|
|
2407
2423
|
}, {
|
|
2408
2424
|
default: E(() => [
|
|
2409
|
-
|
|
2425
|
+
y(r(Ne), { prop: "uid" }, {
|
|
2410
2426
|
default: E(() => [
|
|
2411
|
-
|
|
2427
|
+
y(r(dt), {
|
|
2412
2428
|
modelValue: m.uid,
|
|
2413
|
-
"onUpdate:modelValue":
|
|
2429
|
+
"onUpdate:modelValue": _[0] || (_[0] = (v) => m.uid = v),
|
|
2414
2430
|
placeholder: "用户名",
|
|
2415
2431
|
size: "large"
|
|
2416
2432
|
}, {
|
|
2417
2433
|
prefix: E(() => [
|
|
2418
|
-
|
|
2434
|
+
y(r(I), {
|
|
2419
2435
|
name: "user",
|
|
2420
2436
|
size: 18
|
|
2421
2437
|
})
|
|
@@ -2425,19 +2441,19 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
|
|
|
2425
2441
|
]),
|
|
2426
2442
|
_: 1
|
|
2427
2443
|
}),
|
|
2428
|
-
|
|
2444
|
+
y(r(Ne), { prop: "password" }, {
|
|
2429
2445
|
default: E(() => [
|
|
2430
|
-
|
|
2446
|
+
y(r(dt), {
|
|
2431
2447
|
modelValue: m.password,
|
|
2432
|
-
"onUpdate:modelValue":
|
|
2448
|
+
"onUpdate:modelValue": _[1] || (_[1] = (v) => m.password = v),
|
|
2433
2449
|
type: "password",
|
|
2434
2450
|
placeholder: "密码",
|
|
2435
2451
|
size: "large",
|
|
2436
2452
|
"show-password": "",
|
|
2437
|
-
onKeyup:
|
|
2453
|
+
onKeyup: $t(g, ["enter"])
|
|
2438
2454
|
}, {
|
|
2439
2455
|
prefix: E(() => [
|
|
2440
|
-
|
|
2456
|
+
y(r(I), {
|
|
2441
2457
|
name: "lock",
|
|
2442
2458
|
size: 18
|
|
2443
2459
|
})
|
|
@@ -2447,13 +2463,13 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
|
|
|
2447
2463
|
]),
|
|
2448
2464
|
_: 1
|
|
2449
2465
|
}),
|
|
2450
|
-
|
|
2466
|
+
y(r(Ne), null, {
|
|
2451
2467
|
default: E(() => [
|
|
2452
|
-
|
|
2468
|
+
y(r(St), {
|
|
2453
2469
|
modelValue: a.value,
|
|
2454
|
-
"onUpdate:modelValue":
|
|
2470
|
+
"onUpdate:modelValue": _[2] || (_[2] = (v) => a.value = v)
|
|
2455
2471
|
}, {
|
|
2456
|
-
default: E(() => [...
|
|
2472
|
+
default: E(() => [..._[3] || (_[3] = [
|
|
2457
2473
|
ye("记住我", -1)
|
|
2458
2474
|
])]),
|
|
2459
2475
|
_: 1
|
|
@@ -2461,16 +2477,16 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
|
|
|
2461
2477
|
]),
|
|
2462
2478
|
_: 1
|
|
2463
2479
|
}),
|
|
2464
|
-
|
|
2480
|
+
y(r(Ne), null, {
|
|
2465
2481
|
default: E(() => [
|
|
2466
|
-
|
|
2482
|
+
y(r(je), {
|
|
2467
2483
|
type: "primary",
|
|
2468
2484
|
size: "large",
|
|
2469
2485
|
loading: i.value,
|
|
2470
2486
|
class: "login__submit",
|
|
2471
2487
|
onClick: g
|
|
2472
2488
|
}, {
|
|
2473
|
-
default: E(() => [...
|
|
2489
|
+
default: E(() => [..._[4] || (_[4] = [
|
|
2474
2490
|
ye(" 登录 ", -1)
|
|
2475
2491
|
])]),
|
|
2476
2492
|
_: 1
|
|
@@ -2481,27 +2497,27 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
|
|
|
2481
2497
|
]),
|
|
2482
2498
|
_: 1
|
|
2483
2499
|
}, 8, ["model"]),
|
|
2484
|
-
|
|
2500
|
+
_[6] || (_[6] = e("div", { class: "login__footer" }, [
|
|
2485
2501
|
e("p", null, "请输入您的用户名和密码")
|
|
2486
2502
|
], -1))
|
|
2487
2503
|
])
|
|
2488
2504
|
]));
|
|
2489
2505
|
}
|
|
2490
|
-
}),
|
|
2506
|
+
}), ua = /* @__PURE__ */ ee(ia, [["__scopeId", "data-v-f3e724b6"]]), ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2491
2507
|
__proto__: null,
|
|
2492
|
-
default:
|
|
2493
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2508
|
+
default: ua
|
|
2509
|
+
}, Symbol.toStringTag, { value: "Module" })), da = { class: "error-page" }, ma = { class: "error-page__content" }, pa = /* @__PURE__ */ le({
|
|
2494
2510
|
__name: "404",
|
|
2495
2511
|
setup(t) {
|
|
2496
2512
|
const s = de(), o = () => {
|
|
2497
2513
|
s.push("/");
|
|
2498
2514
|
};
|
|
2499
|
-
return (i, a) => (l(), u("div",
|
|
2500
|
-
e("div",
|
|
2515
|
+
return (i, a) => (l(), u("div", da, [
|
|
2516
|
+
e("div", ma, [
|
|
2501
2517
|
a[1] || (a[1] = e("div", { class: "error-page__code" }, "404", -1)),
|
|
2502
2518
|
a[2] || (a[2] = e("div", { class: "error-page__title" }, "页面不存在", -1)),
|
|
2503
2519
|
a[3] || (a[3] = e("div", { class: "error-page__desc" }, "抱歉,您访问的页面不存在或已被删除", -1)),
|
|
2504
|
-
|
|
2520
|
+
y(r(je), {
|
|
2505
2521
|
type: "primary",
|
|
2506
2522
|
onClick: o
|
|
2507
2523
|
}, {
|
|
@@ -2513,21 +2529,21 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
|
|
|
2513
2529
|
])
|
|
2514
2530
|
]));
|
|
2515
2531
|
}
|
|
2516
|
-
}),
|
|
2532
|
+
}), ha = /* @__PURE__ */ ee(pa, [["__scopeId", "data-v-3b47f5bc"]]), kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2517
2533
|
__proto__: null,
|
|
2518
|
-
default:
|
|
2519
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2534
|
+
default: ha
|
|
2535
|
+
}, Symbol.toStringTag, { value: "Module" })), va = { class: "error-page" }, _a = { class: "error-page__content" }, fa = /* @__PURE__ */ le({
|
|
2520
2536
|
__name: "403",
|
|
2521
2537
|
setup(t) {
|
|
2522
2538
|
const s = de(), o = () => {
|
|
2523
2539
|
s.push("/");
|
|
2524
2540
|
};
|
|
2525
|
-
return (i, a) => (l(), u("div",
|
|
2526
|
-
e("div",
|
|
2541
|
+
return (i, a) => (l(), u("div", va, [
|
|
2542
|
+
e("div", _a, [
|
|
2527
2543
|
a[1] || (a[1] = e("div", { class: "error-page__code" }, "403", -1)),
|
|
2528
2544
|
a[2] || (a[2] = e("div", { class: "error-page__title" }, "无访问权限", -1)),
|
|
2529
2545
|
a[3] || (a[3] = e("div", { class: "error-page__desc" }, "抱歉,您没有权限访问此页面", -1)),
|
|
2530
|
-
|
|
2546
|
+
y(r(je), {
|
|
2531
2547
|
type: "primary",
|
|
2532
2548
|
onClick: o
|
|
2533
2549
|
}, {
|
|
@@ -2539,9 +2555,9 @@ const aa = { class: "login" }, la = { class: "login__container" }, ra = /* @__PU
|
|
|
2539
2555
|
])
|
|
2540
2556
|
]));
|
|
2541
2557
|
}
|
|
2542
|
-
}),
|
|
2543
|
-
function
|
|
2544
|
-
const t = me(), s =
|
|
2558
|
+
}), Ba = /* @__PURE__ */ ee(fa, [["__scopeId", "data-v-3081df6c"]]);
|
|
2559
|
+
function Ka() {
|
|
2560
|
+
const t = me(), s = Z(), o = Te(), i = b(() => s.userName || ""), a = b(() => s.userInfo), m = b(() => t.appName), M = b(() => o.isLoggedIn), d = b(() => t.isDark), g = b(() => t.theme), p = b(() => t.isCollapsed), _ = b(() => t.layout);
|
|
2545
2561
|
return {
|
|
2546
2562
|
userName: i,
|
|
2547
2563
|
userInfo: a,
|
|
@@ -2550,7 +2566,7 @@ function Ba() {
|
|
|
2550
2566
|
isDark: d,
|
|
2551
2567
|
theme: g,
|
|
2552
2568
|
isCollapsed: p,
|
|
2553
|
-
layout:
|
|
2569
|
+
layout: _,
|
|
2554
2570
|
toggleTheme: () => {
|
|
2555
2571
|
t.toggleTheme();
|
|
2556
2572
|
},
|
|
@@ -2559,24 +2575,24 @@ function Ba() {
|
|
|
2559
2575
|
}
|
|
2560
2576
|
};
|
|
2561
2577
|
}
|
|
2562
|
-
function
|
|
2563
|
-
const t =
|
|
2578
|
+
function ja() {
|
|
2579
|
+
const t = Z();
|
|
2564
2580
|
return {
|
|
2565
2581
|
isLoggedIn: b(() => t.isLoggedIn)
|
|
2566
2582
|
};
|
|
2567
2583
|
}
|
|
2568
|
-
function
|
|
2569
|
-
const { rules: o, onSubmit: i } = s, a =
|
|
2570
|
-
|
|
2571
|
-
},
|
|
2572
|
-
Object.assign(m,
|
|
2573
|
-
},
|
|
2574
|
-
d.value = !1,
|
|
2575
|
-
},
|
|
2576
|
-
var
|
|
2577
|
-
Object.keys(t).forEach((
|
|
2578
|
-
m[
|
|
2579
|
-
}), (
|
|
2584
|
+
function qa(t, s = {}) {
|
|
2585
|
+
const { rules: o, onSubmit: i } = s, a = f(), m = Ze({ ...t }), M = f(!1), d = f(!1), g = f(!1), p = () => {
|
|
2586
|
+
L(), g.value = !1, d.value = !0;
|
|
2587
|
+
}, _ = (R) => {
|
|
2588
|
+
Object.assign(m, R), g.value = !0, d.value = !0;
|
|
2589
|
+
}, v = () => {
|
|
2590
|
+
d.value = !1, L();
|
|
2591
|
+
}, L = () => {
|
|
2592
|
+
var R;
|
|
2593
|
+
Object.keys(t).forEach((B) => {
|
|
2594
|
+
m[B] = t[B];
|
|
2595
|
+
}), (R = a.value) == null || R.resetFields();
|
|
2580
2596
|
};
|
|
2581
2597
|
return {
|
|
2582
2598
|
formRef: a,
|
|
@@ -2586,49 +2602,49 @@ function ja(t, s = {}) {
|
|
|
2586
2602
|
visible: d,
|
|
2587
2603
|
isEdit: g,
|
|
2588
2604
|
openAdd: p,
|
|
2589
|
-
openEdit:
|
|
2590
|
-
close:
|
|
2591
|
-
resetForm:
|
|
2605
|
+
openEdit: _,
|
|
2606
|
+
close: v,
|
|
2607
|
+
resetForm: L,
|
|
2592
2608
|
handleSubmit: async () => {
|
|
2593
|
-
var
|
|
2609
|
+
var R;
|
|
2594
2610
|
try {
|
|
2595
|
-
await ((
|
|
2596
|
-
} catch (
|
|
2597
|
-
console.error(
|
|
2611
|
+
await ((R = a.value) == null ? void 0 : R.validate()), M.value = !0, await (i == null ? void 0 : i(m)), v();
|
|
2612
|
+
} catch (B) {
|
|
2613
|
+
console.error(B);
|
|
2598
2614
|
} finally {
|
|
2599
2615
|
M.value = !1;
|
|
2600
2616
|
}
|
|
2601
2617
|
}
|
|
2602
2618
|
};
|
|
2603
2619
|
}
|
|
2604
|
-
function
|
|
2605
|
-
const { fetchData: s, defaultPageSize: o = 10 } = t, i =
|
|
2620
|
+
function Wa(t) {
|
|
2621
|
+
const { fetchData: s, defaultPageSize: o = 10 } = t, i = f(!1), a = f([]), m = f(0), M = f(1), d = f(o), g = Ze({}), p = async () => {
|
|
2606
2622
|
i.value = !0;
|
|
2607
2623
|
try {
|
|
2608
|
-
const
|
|
2624
|
+
const z = {
|
|
2609
2625
|
...g,
|
|
2610
2626
|
page: M.value,
|
|
2611
2627
|
pageSize: d.value
|
|
2612
|
-
},
|
|
2613
|
-
a.value =
|
|
2614
|
-
} catch (
|
|
2615
|
-
console.error(
|
|
2628
|
+
}, P = await s(z);
|
|
2629
|
+
a.value = P.list, m.value = P.total;
|
|
2630
|
+
} catch (z) {
|
|
2631
|
+
console.error(z);
|
|
2616
2632
|
} finally {
|
|
2617
2633
|
i.value = !1;
|
|
2618
2634
|
}
|
|
2619
|
-
},
|
|
2635
|
+
}, _ = () => {
|
|
2620
2636
|
M.value = 1, p();
|
|
2621
|
-
},
|
|
2622
|
-
Object.keys(g).forEach((
|
|
2623
|
-
g[
|
|
2637
|
+
}, v = () => {
|
|
2638
|
+
Object.keys(g).forEach((z) => {
|
|
2639
|
+
g[z] = void 0;
|
|
2624
2640
|
}), M.value = 1, p();
|
|
2625
|
-
},
|
|
2626
|
-
M.value =
|
|
2627
|
-
},
|
|
2628
|
-
d.value =
|
|
2629
|
-
},
|
|
2641
|
+
}, L = (z) => {
|
|
2642
|
+
M.value = z, p();
|
|
2643
|
+
}, F = (z) => {
|
|
2644
|
+
d.value = z, M.value = 1, p();
|
|
2645
|
+
}, R = () => {
|
|
2630
2646
|
p();
|
|
2631
|
-
},
|
|
2647
|
+
}, B = b(() => ({
|
|
2632
2648
|
current: M.value,
|
|
2633
2649
|
pageSize: d.value,
|
|
2634
2650
|
total: m.value
|
|
@@ -2640,44 +2656,44 @@ function qa(t) {
|
|
|
2640
2656
|
currentPage: M,
|
|
2641
2657
|
pageSize: d,
|
|
2642
2658
|
searchParams: g,
|
|
2643
|
-
pagination:
|
|
2659
|
+
pagination: B,
|
|
2644
2660
|
getData: p,
|
|
2645
|
-
handleSearch:
|
|
2646
|
-
handleReset:
|
|
2647
|
-
handlePageChange:
|
|
2648
|
-
handleSizeChange:
|
|
2649
|
-
refresh:
|
|
2661
|
+
handleSearch: _,
|
|
2662
|
+
handleReset: v,
|
|
2663
|
+
handlePageChange: L,
|
|
2664
|
+
handleSizeChange: F,
|
|
2665
|
+
refresh: R
|
|
2650
2666
|
};
|
|
2651
2667
|
}
|
|
2652
|
-
function Wa(t) {
|
|
2653
|
-
return Q().isLoggedIn;
|
|
2654
|
-
}
|
|
2655
2668
|
function Ya(t) {
|
|
2656
|
-
return
|
|
2669
|
+
return Z().isLoggedIn;
|
|
2670
|
+
}
|
|
2671
|
+
function Xa(t) {
|
|
2672
|
+
return Z().isLoggedIn;
|
|
2657
2673
|
}
|
|
2658
|
-
function
|
|
2674
|
+
function Ha() {
|
|
2659
2675
|
return !0;
|
|
2660
2676
|
}
|
|
2661
|
-
const
|
|
2677
|
+
const wt = [
|
|
2662
2678
|
{
|
|
2663
2679
|
path: "/login",
|
|
2664
2680
|
name: "Login",
|
|
2665
|
-
component: () => Promise.resolve().then(() =>
|
|
2681
|
+
component: () => Promise.resolve().then(() => ca),
|
|
2666
2682
|
meta: {
|
|
2667
2683
|
title: "登录",
|
|
2668
2684
|
hidden: !0
|
|
2669
2685
|
}
|
|
2670
2686
|
}
|
|
2671
|
-
],
|
|
2687
|
+
], bt = {
|
|
2672
2688
|
path: "/",
|
|
2673
2689
|
name: "Layout",
|
|
2674
|
-
component: () => Promise.resolve().then(() =>
|
|
2690
|
+
component: () => Promise.resolve().then(() => Hn),
|
|
2675
2691
|
redirect: "/dashboard",
|
|
2676
2692
|
children: [
|
|
2677
2693
|
{
|
|
2678
2694
|
path: "/dashboard",
|
|
2679
2695
|
name: "Dashboard",
|
|
2680
|
-
component: () => import("./index-
|
|
2696
|
+
component: () => import("./index-BvMcnGze.js"),
|
|
2681
2697
|
meta: {
|
|
2682
2698
|
title: "仪表盘",
|
|
2683
2699
|
icon: "dashboard",
|
|
@@ -2688,7 +2704,7 @@ const kt = [
|
|
|
2688
2704
|
{
|
|
2689
2705
|
path: "/system/user",
|
|
2690
2706
|
name: "SystemUser",
|
|
2691
|
-
component: () => import("./index-
|
|
2707
|
+
component: () => import("./index-D0JXJmlJ.js"),
|
|
2692
2708
|
meta: {
|
|
2693
2709
|
title: "用户管理",
|
|
2694
2710
|
icon: "user",
|
|
@@ -2698,7 +2714,7 @@ const kt = [
|
|
|
2698
2714
|
{
|
|
2699
2715
|
path: "/system/role",
|
|
2700
2716
|
name: "SystemRole",
|
|
2701
|
-
component: () => import("./index-
|
|
2717
|
+
component: () => import("./index-Df8leAO9.js"),
|
|
2702
2718
|
meta: {
|
|
2703
2719
|
title: "角色管理",
|
|
2704
2720
|
icon: "role",
|
|
@@ -2708,7 +2724,7 @@ const kt = [
|
|
|
2708
2724
|
{
|
|
2709
2725
|
path: "/system/menu",
|
|
2710
2726
|
name: "SystemMenu",
|
|
2711
|
-
component: () => import("./index-
|
|
2727
|
+
component: () => import("./index-DZEVfuKk.js"),
|
|
2712
2728
|
meta: {
|
|
2713
2729
|
title: "菜单管理",
|
|
2714
2730
|
icon: "menu",
|
|
@@ -2719,18 +2735,18 @@ const kt = [
|
|
|
2719
2735
|
{
|
|
2720
2736
|
path: "/:pathMatch(.*)*",
|
|
2721
2737
|
name: "CatchAll",
|
|
2722
|
-
component: () => Promise.resolve().then(() =>
|
|
2738
|
+
component: () => Promise.resolve().then(() => kt),
|
|
2723
2739
|
meta: {
|
|
2724
2740
|
title: "404",
|
|
2725
2741
|
hidden: !0
|
|
2726
2742
|
}
|
|
2727
2743
|
}
|
|
2728
2744
|
]
|
|
2729
|
-
},
|
|
2745
|
+
}, Ga = [
|
|
2730
2746
|
{
|
|
2731
2747
|
path: "/dashboard",
|
|
2732
2748
|
name: "Dashboard",
|
|
2733
|
-
component: () => import("./index-
|
|
2749
|
+
component: () => import("./index-BvMcnGze.js"),
|
|
2734
2750
|
meta: {
|
|
2735
2751
|
title: "仪表盘",
|
|
2736
2752
|
icon: "dashboard",
|
|
@@ -2750,7 +2766,7 @@ const kt = [
|
|
|
2750
2766
|
{
|
|
2751
2767
|
path: "user",
|
|
2752
2768
|
name: "SystemUser",
|
|
2753
|
-
component: () => import("./index-
|
|
2769
|
+
component: () => import("./index-D0JXJmlJ.js"),
|
|
2754
2770
|
meta: {
|
|
2755
2771
|
title: "用户管理",
|
|
2756
2772
|
icon: "user",
|
|
@@ -2760,7 +2776,7 @@ const kt = [
|
|
|
2760
2776
|
{
|
|
2761
2777
|
path: "role",
|
|
2762
2778
|
name: "SystemRole",
|
|
2763
|
-
component: () => import("./index-
|
|
2779
|
+
component: () => import("./index-Df8leAO9.js"),
|
|
2764
2780
|
meta: {
|
|
2765
2781
|
title: "角色管理",
|
|
2766
2782
|
icon: "role",
|
|
@@ -2770,7 +2786,7 @@ const kt = [
|
|
|
2770
2786
|
{
|
|
2771
2787
|
path: "menu",
|
|
2772
2788
|
name: "SystemMenu",
|
|
2773
|
-
component: () => import("./index-
|
|
2789
|
+
component: () => import("./index-DZEVfuKk.js"),
|
|
2774
2790
|
meta: {
|
|
2775
2791
|
title: "菜单管理",
|
|
2776
2792
|
icon: "menu",
|
|
@@ -2779,7 +2795,7 @@ const kt = [
|
|
|
2779
2795
|
}
|
|
2780
2796
|
]
|
|
2781
2797
|
}
|
|
2782
|
-
],
|
|
2798
|
+
], ga = [
|
|
2783
2799
|
{
|
|
2784
2800
|
menuCode: "dashboard",
|
|
2785
2801
|
menuName: "仪表盘",
|
|
@@ -2827,20 +2843,20 @@ const kt = [
|
|
|
2827
2843
|
}
|
|
2828
2844
|
]
|
|
2829
2845
|
}
|
|
2830
|
-
],
|
|
2831
|
-
history:
|
|
2832
|
-
routes: [...
|
|
2846
|
+
], xt = et({
|
|
2847
|
+
history: tt(),
|
|
2848
|
+
routes: [...wt, bt],
|
|
2833
2849
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
2834
|
-
}),
|
|
2835
|
-
|
|
2850
|
+
}), ya = ["/login"];
|
|
2851
|
+
xt.beforeEach(async (t, s, o) => {
|
|
2836
2852
|
const i = me();
|
|
2837
|
-
if (i.initTheme(),
|
|
2853
|
+
if (i.initTheme(), gt())
|
|
2838
2854
|
if (t.path === "/login")
|
|
2839
2855
|
o({ path: "/" });
|
|
2840
2856
|
else {
|
|
2841
|
-
const a =
|
|
2857
|
+
const a = Z();
|
|
2842
2858
|
a.isLoggedIn || (a.setUserInfo({
|
|
2843
|
-
appId:
|
|
2859
|
+
appId: qe(),
|
|
2844
2860
|
userId: "1",
|
|
2845
2861
|
userName: "管理员",
|
|
2846
2862
|
departmentName: "技术部",
|
|
@@ -2848,23 +2864,23 @@ bt.beforeEach(async (t, s, o) => {
|
|
|
2848
2864
|
mobilePhone: "13800138000",
|
|
2849
2865
|
positionName: "管理员",
|
|
2850
2866
|
avatar: ""
|
|
2851
|
-
}), ve().setMenuList(
|
|
2867
|
+
}), ve().setMenuList(ga)), t.name && t.meta.keepAlive && i.addCachedView(t.name), o();
|
|
2852
2868
|
}
|
|
2853
2869
|
else
|
|
2854
|
-
|
|
2870
|
+
ya.includes(t.path) ? o() : o("/login");
|
|
2855
2871
|
});
|
|
2856
|
-
function
|
|
2857
|
-
const t =
|
|
2858
|
-
history:
|
|
2859
|
-
routes: [...
|
|
2872
|
+
function Ja() {
|
|
2873
|
+
const t = et({
|
|
2874
|
+
history: tt(),
|
|
2875
|
+
routes: [...wt, bt]
|
|
2860
2876
|
});
|
|
2861
|
-
|
|
2877
|
+
xt.matcher = t.matcher;
|
|
2862
2878
|
}
|
|
2863
|
-
function
|
|
2879
|
+
function Qa(t, s = {}) {
|
|
2864
2880
|
const o = s.indexPath || "/dashboard", i = {
|
|
2865
2881
|
path: "/:pathMatch(.*)*",
|
|
2866
2882
|
name: "CatchAll",
|
|
2867
|
-
component: () => Promise.resolve().then(() =>
|
|
2883
|
+
component: () => Promise.resolve().then(() => kt),
|
|
2868
2884
|
meta: {
|
|
2869
2885
|
title: "404"
|
|
2870
2886
|
}
|
|
@@ -2872,58 +2888,58 @@ function Ja(t, s = {}) {
|
|
|
2872
2888
|
return {
|
|
2873
2889
|
path: "/",
|
|
2874
2890
|
name: "Layout",
|
|
2875
|
-
component:
|
|
2891
|
+
component: yt,
|
|
2876
2892
|
redirect: o,
|
|
2877
2893
|
children: [...t, i]
|
|
2878
2894
|
};
|
|
2879
2895
|
}
|
|
2880
|
-
function
|
|
2881
|
-
return
|
|
2882
|
-
history:
|
|
2896
|
+
function Za(t) {
|
|
2897
|
+
return et({
|
|
2898
|
+
history: tt(),
|
|
2883
2899
|
routes: t,
|
|
2884
2900
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
2885
2901
|
});
|
|
2886
2902
|
}
|
|
2887
|
-
function Za(t) {
|
|
2888
|
-
return R.get("/role/list", { params: t });
|
|
2889
|
-
}
|
|
2890
2903
|
function el(t) {
|
|
2891
|
-
return
|
|
2904
|
+
return O.get("/role/list", { params: t });
|
|
2892
2905
|
}
|
|
2893
2906
|
function tl(t) {
|
|
2894
|
-
return
|
|
2907
|
+
return O.get(`/role/${t}`);
|
|
2895
2908
|
}
|
|
2896
|
-
function sl(t
|
|
2897
|
-
return
|
|
2909
|
+
function sl(t) {
|
|
2910
|
+
return O.post("/role", t);
|
|
2898
2911
|
}
|
|
2899
|
-
function ol(t) {
|
|
2900
|
-
return
|
|
2912
|
+
function ol(t, s) {
|
|
2913
|
+
return O.put(`/role/${t}`, s);
|
|
2901
2914
|
}
|
|
2902
|
-
function nl(t
|
|
2903
|
-
return
|
|
2915
|
+
function nl(t) {
|
|
2916
|
+
return O.delete(`/role/${t}`);
|
|
2904
2917
|
}
|
|
2905
|
-
function al() {
|
|
2906
|
-
return
|
|
2918
|
+
function al(t, s) {
|
|
2919
|
+
return O.patch(`/role/${t}/status`, { status: s });
|
|
2907
2920
|
}
|
|
2908
|
-
function
|
|
2909
|
-
|
|
2910
|
-
return R.get(`/user/v1.0/menu/get-menu?appId=${s}`);
|
|
2921
|
+
function ll() {
|
|
2922
|
+
return O.get("/user/v1.0/menu/list");
|
|
2911
2923
|
}
|
|
2912
|
-
function
|
|
2913
|
-
|
|
2924
|
+
function ka(t) {
|
|
2925
|
+
const s = t || qe();
|
|
2926
|
+
return O.get(`/user/v1.0/menu/get-menu?appId=${s}`);
|
|
2914
2927
|
}
|
|
2915
|
-
function rl(t
|
|
2916
|
-
return
|
|
2928
|
+
function rl(t) {
|
|
2929
|
+
return O.post("/menu", t);
|
|
2917
2930
|
}
|
|
2918
|
-
function il(t) {
|
|
2919
|
-
return
|
|
2931
|
+
function il(t, s) {
|
|
2932
|
+
return O.put(`/menu/${t}`, s);
|
|
2920
2933
|
}
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2934
|
+
function ul(t) {
|
|
2935
|
+
return O.delete(`/menu/${t}`);
|
|
2936
|
+
}
|
|
2937
|
+
const wa = ["/login", "/404", "/403"];
|
|
2938
|
+
function cl(t, s = {}) {
|
|
2939
|
+
const o = s.whiteList || wa, i = s.loginPath || "/login", a = s.homePath || "/";
|
|
2924
2940
|
t.beforeEach(async (m, M, d) => {
|
|
2925
|
-
const g = me(), p =
|
|
2926
|
-
if (g.initTheme(),
|
|
2941
|
+
const g = me(), p = Z(), _ = ve();
|
|
2942
|
+
if (g.initTheme(), Ye())
|
|
2927
2943
|
if (m.path === i)
|
|
2928
2944
|
d({ path: a });
|
|
2929
2945
|
else if (p.isLoggedIn)
|
|
@@ -2931,65 +2947,65 @@ function ul(t, s = {}) {
|
|
|
2931
2947
|
else
|
|
2932
2948
|
try {
|
|
2933
2949
|
if (s.fetchUserInfo) {
|
|
2934
|
-
const
|
|
2935
|
-
p.setUserInfo(
|
|
2950
|
+
const L = await s.fetchUserInfo();
|
|
2951
|
+
p.setUserInfo(L);
|
|
2936
2952
|
} else {
|
|
2937
|
-
const
|
|
2938
|
-
p.setUserInfo(
|
|
2953
|
+
const L = await aa();
|
|
2954
|
+
p.setUserInfo(L);
|
|
2939
2955
|
}
|
|
2940
2956
|
if (s.fetchMenu) {
|
|
2941
|
-
const
|
|
2942
|
-
|
|
2957
|
+
const L = await s.fetchMenu();
|
|
2958
|
+
_.setMenuList(L);
|
|
2943
2959
|
} else {
|
|
2944
|
-
const
|
|
2945
|
-
|
|
2960
|
+
const L = await ka(s.appId);
|
|
2961
|
+
_.setMenuList(L);
|
|
2946
2962
|
}
|
|
2947
2963
|
s.onLoginSuccess && s.onLoginSuccess(), m.name && m.meta.keepAlive && g.addCachedView(m.name), d({ ...m, replace: !0 });
|
|
2948
|
-
} catch (
|
|
2949
|
-
console.error("获取用户信息失败:",
|
|
2964
|
+
} catch (L) {
|
|
2965
|
+
console.error("获取用户信息失败:", L), p.clearUserInfo(), _.clearMenu(), Se(), d({ path: i, query: { redirect: m.fullPath } });
|
|
2950
2966
|
}
|
|
2951
2967
|
else
|
|
2952
2968
|
o.includes(m.path) ? d() : d({ path: i, query: { redirect: m.fullPath } });
|
|
2953
2969
|
}), t.afterEach(() => {
|
|
2954
2970
|
});
|
|
2955
2971
|
}
|
|
2956
|
-
function cl(t) {
|
|
2957
|
-
return R.get("/user/list", { params: t });
|
|
2958
|
-
}
|
|
2959
2972
|
function dl(t) {
|
|
2960
|
-
return
|
|
2973
|
+
return O.get("/user/list", { params: t });
|
|
2961
2974
|
}
|
|
2962
2975
|
function ml(t) {
|
|
2963
|
-
return
|
|
2976
|
+
return O.get(`/user/${t}`);
|
|
2964
2977
|
}
|
|
2965
|
-
function pl(t
|
|
2966
|
-
return
|
|
2978
|
+
function pl(t) {
|
|
2979
|
+
return O.post("/user", t);
|
|
2967
2980
|
}
|
|
2968
|
-
function hl(t) {
|
|
2969
|
-
return
|
|
2981
|
+
function hl(t, s) {
|
|
2982
|
+
return O.put(`/user/${t}`, s);
|
|
2970
2983
|
}
|
|
2971
2984
|
function vl(t) {
|
|
2972
|
-
return
|
|
2985
|
+
return O.delete(`/user/${t}`);
|
|
2973
2986
|
}
|
|
2974
|
-
function _l(t
|
|
2975
|
-
return
|
|
2987
|
+
function _l(t) {
|
|
2988
|
+
return O.post("/user/batch-delete", { ids: t });
|
|
2976
2989
|
}
|
|
2977
|
-
function fl(t) {
|
|
2978
|
-
return
|
|
2990
|
+
function fl(t, s) {
|
|
2991
|
+
return O.patch(`/user/${t}/status`, { status: s });
|
|
2979
2992
|
}
|
|
2980
|
-
|
|
2981
|
-
|
|
2993
|
+
function gl(t) {
|
|
2994
|
+
return O.post(`/user/${t}/reset-password`);
|
|
2995
|
+
}
|
|
2996
|
+
var ba = /* @__PURE__ */ ((t) => (t[t.ENABLED = 1] = "ENABLED", t[t.DISABLED = 0] = "DISABLED", t))(ba || {}), xa = /* @__PURE__ */ ((t) => (t[t.UNKNOWN = 0] = "UNKNOWN", t[t.MALE = 1] = "MALE", t[t.FEMALE = 2] = "FEMALE", t))(xa || {}), Ca = /* @__PURE__ */ ((t) => (t[t.DIRECTORY = 0] = "DIRECTORY", t[t.MENU = 1] = "MENU", t[t.BUTTON = 2] = "BUTTON", t))(Ca || {});
|
|
2997
|
+
const yl = {
|
|
2982
2998
|
1: "启用",
|
|
2983
2999
|
0: "禁用"
|
|
2984
|
-
},
|
|
3000
|
+
}, kl = {
|
|
2985
3001
|
0: "未知",
|
|
2986
3002
|
1: "男",
|
|
2987
3003
|
2: "女"
|
|
2988
|
-
},
|
|
3004
|
+
}, wl = {
|
|
2989
3005
|
0: "目录",
|
|
2990
3006
|
1: "菜单",
|
|
2991
3007
|
2: "按钮"
|
|
2992
|
-
},
|
|
3008
|
+
}, bl = [
|
|
2993
3009
|
{
|
|
2994
3010
|
label: "启用",
|
|
2995
3011
|
value: 1
|
|
@@ -3000,7 +3016,7 @@ const gl = {
|
|
|
3000
3016
|
value: 0
|
|
3001
3017
|
/* DISABLED */
|
|
3002
3018
|
}
|
|
3003
|
-
],
|
|
3019
|
+
], xl = [
|
|
3004
3020
|
{
|
|
3005
3021
|
label: "未知",
|
|
3006
3022
|
value: 0
|
|
@@ -3016,7 +3032,7 @@ const gl = {
|
|
|
3016
3032
|
value: 2
|
|
3017
3033
|
/* FEMALE */
|
|
3018
3034
|
}
|
|
3019
|
-
],
|
|
3035
|
+
], Cl = [
|
|
3020
3036
|
{
|
|
3021
3037
|
label: "目录",
|
|
3022
3038
|
value: 0
|
|
@@ -3032,116 +3048,116 @@ const gl = {
|
|
|
3032
3048
|
value: 2
|
|
3033
3049
|
/* BUTTON */
|
|
3034
3050
|
}
|
|
3035
|
-
],
|
|
3051
|
+
], $l = {
|
|
3036
3052
|
mounted(t, s) {
|
|
3037
3053
|
var i;
|
|
3038
|
-
|
|
3054
|
+
Z().isLoggedIn || (i = t.parentNode) == null || i.removeChild(t);
|
|
3039
3055
|
}
|
|
3040
3056
|
};
|
|
3041
|
-
function
|
|
3042
|
-
return
|
|
3057
|
+
function Ll(t) {
|
|
3058
|
+
return Tt({
|
|
3043
3059
|
appId: t.appId,
|
|
3044
3060
|
clientId: t.clientId,
|
|
3045
3061
|
apiBaseUrl: t.apiBaseUrl
|
|
3046
3062
|
}), {
|
|
3047
3063
|
config: {
|
|
3048
3064
|
appName: t.appName || "XTO App",
|
|
3049
|
-
appId:
|
|
3050
|
-
clientId:
|
|
3051
|
-
apiBaseUrl:
|
|
3065
|
+
appId: qe(),
|
|
3066
|
+
clientId: vt(),
|
|
3067
|
+
apiBaseUrl: Nt(),
|
|
3052
3068
|
indexPath: t.indexPath || "/dashboard",
|
|
3053
3069
|
loginPath: t.loginPath || "/login"
|
|
3054
3070
|
}
|
|
3055
3071
|
};
|
|
3056
3072
|
}
|
|
3057
3073
|
export {
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3074
|
+
Bt as $,
|
|
3075
|
+
Pa as A,
|
|
3076
|
+
ll as B,
|
|
3077
|
+
ka as C,
|
|
3078
|
+
Ra as D,
|
|
3079
|
+
Da as E,
|
|
3080
|
+
Oa as F,
|
|
3081
|
+
xa as G,
|
|
3082
|
+
qs as H,
|
|
3083
|
+
tl as I,
|
|
3084
|
+
el as J,
|
|
3085
|
+
Ye as K,
|
|
3086
|
+
yt as L,
|
|
3087
|
+
Ca as M,
|
|
3088
|
+
At as N,
|
|
3089
|
+
Dt as O,
|
|
3090
|
+
ml as P,
|
|
3091
|
+
aa as Q,
|
|
3092
|
+
dl as R,
|
|
3093
|
+
ba as S,
|
|
3094
|
+
Aa as T,
|
|
3095
|
+
Ya as U,
|
|
3096
|
+
Xa as V,
|
|
3097
|
+
gt as W,
|
|
3098
|
+
O as X,
|
|
3099
|
+
Tt as Y,
|
|
3100
|
+
Ha as Z,
|
|
3101
|
+
ee as _,
|
|
3102
|
+
bl as a,
|
|
3103
|
+
bt as a0,
|
|
3104
|
+
C as a1,
|
|
3089
3105
|
Ue as a2,
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3106
|
+
na as a3,
|
|
3107
|
+
Va as a4,
|
|
3108
|
+
ga as a5,
|
|
3109
|
+
$l as a6,
|
|
3110
|
+
Fa as a7,
|
|
3111
|
+
gl as a8,
|
|
3112
|
+
Ja as a9,
|
|
3113
|
+
xt as aa,
|
|
3114
|
+
za as ab,
|
|
3099
3115
|
ze as ac,
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3116
|
+
Ft as ad,
|
|
3117
|
+
Vt as ae,
|
|
3118
|
+
Pt as af,
|
|
3119
|
+
zt as ag,
|
|
3120
|
+
Ot as ah,
|
|
3121
|
+
ft as ai,
|
|
3122
|
+
Rt as aj,
|
|
3123
|
+
cl as ak,
|
|
3124
|
+
wt as al,
|
|
3125
|
+
il as am,
|
|
3126
|
+
ol as an,
|
|
3127
|
+
al as ao,
|
|
3128
|
+
hl as ap,
|
|
3129
|
+
fl as aq,
|
|
3130
|
+
Ka as ar,
|
|
3115
3131
|
me as as,
|
|
3116
|
-
|
|
3132
|
+
ja as at,
|
|
3117
3133
|
Te as au,
|
|
3118
|
-
|
|
3134
|
+
qa as av,
|
|
3119
3135
|
ve as aw,
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3136
|
+
Wa as ax,
|
|
3137
|
+
Z as ay,
|
|
3138
|
+
Cl as b,
|
|
3139
|
+
Ba as c,
|
|
3140
|
+
xl as d,
|
|
3141
|
+
kl as e,
|
|
3142
|
+
wl as f,
|
|
3143
|
+
ha as g,
|
|
3144
|
+
mt as h,
|
|
3145
|
+
ua as i,
|
|
3146
|
+
yl as j,
|
|
3147
|
+
Ua as k,
|
|
3148
|
+
_l as l,
|
|
3133
3149
|
Se as m,
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3150
|
+
Qa as n,
|
|
3151
|
+
rl as o,
|
|
3152
|
+
sl as p,
|
|
3153
|
+
Za as q,
|
|
3154
|
+
pl as r,
|
|
3155
|
+
Ll as s,
|
|
3156
|
+
Ga as t,
|
|
3157
|
+
ul as u,
|
|
3158
|
+
nl as v,
|
|
3159
|
+
vl as w,
|
|
3160
|
+
Nt as x,
|
|
3161
|
+
qe as y,
|
|
3162
|
+
vt as z
|
|
3147
3163
|
};
|