ss-component-new 1.1.415 → 1.1.416
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/array-58d570LL.cjs +7 -0
- package/dist/array-DEqtaw54.js +346 -0
- package/dist/{crypto-BRyGpjGR.js → crypto-Cq-QCViO.js} +178 -186
- package/dist/{crypto-CRbcEKIz.cjs → crypto-DX0stRPJ.cjs} +5 -5
- package/dist/{index-DuwxEG2Y.js → index-B36maAk9.js} +1 -1
- package/dist/index-B3ZWxITJ.js +1145 -0
- package/dist/{index-BJiXsb3E.cjs → index-B7pGY6s-.cjs} +1 -1
- package/dist/{index-WPbX9sqP.cjs → index-BEJ2yw6L.cjs} +1 -1
- package/dist/{index-9QTlnrEQ.cjs → index-BEZVG2w4.cjs} +1 -1
- package/dist/{index-BOzZXj2f.js → index-BMDwIj9Q.js} +7 -7
- package/dist/index-BN5_bPlI.js +711 -0
- package/dist/index-BQE6u3FY.cjs +7 -0
- package/dist/{index-DrUjNhjW.js → index-BTjvMH2-.js} +1 -1
- package/dist/{index-9srnYnzT.js → index-BXxCcVg9.js} +9 -9
- package/dist/{index-DIv5glVC.js → index-BZFpxFyZ.js} +422 -422
- package/dist/{index-Dm1_86kX.js → index-BgYMdBaM.js} +4 -5
- package/dist/index-BgwUuCZn.cjs +1 -0
- package/dist/{index-BJitBJZu.cjs → index-BvLNLX2m.cjs} +2 -2
- package/dist/{index-DoIHM98M.js → index-BvQxCFwq.js} +1 -1
- package/dist/{index-CilqH8oC.cjs → index-BvYov-FM.cjs} +1 -1
- package/dist/{index-DjhZHYH_.cjs → index-BxqdT6ZG.cjs} +1 -1
- package/dist/{index-B6_X9xq9.js → index-C-BnL_J8.js} +5 -6
- package/dist/{index-FBp-XX6h.js → index-C43LmEa1.js} +7051 -7021
- package/dist/{index-DbuzlHfh.js → index-C4kRcJZB.js} +21 -21
- package/dist/{index-8nzu3dKT.js → index-C9jJnj5S.js} +7 -7
- package/dist/{index-BVuLbYm9.cjs → index-CEGtcyt7.cjs} +1 -1
- package/dist/{index-Bhg9ISur.js → index-CHVY3mt7.js} +8 -9
- package/dist/index-CHXbD46C.cjs +87 -0
- package/dist/{index-BSAEf__V.js → index-CJja2QG9.js} +7 -7
- package/dist/{index-CNQtTLfb.cjs → index-CK03QmTY.cjs} +1 -1
- package/dist/index-CbfDuVGd.cjs +1 -0
- package/dist/{index-BxHhG5PY.js → index-CcbpKTyr.js} +3 -3
- package/dist/{index-BHxsT1eb.cjs → index-CiowzSFS.cjs} +1 -1
- package/dist/{index-CTTEAggF.cjs → index-CvagfQk6.cjs} +1 -1
- package/dist/{index-DrCpGMdZ.js → index-D-45U022.js} +11 -12
- package/dist/{index-UYsrvpRs.js → index-D9Mgi3hi.js} +4 -4
- package/dist/{index-AzrB9NlT.js → index-DGX_omwS.js} +4 -4
- package/dist/{index-BibIA5-P.cjs → index-DHhoPw_A.cjs} +1 -1
- package/dist/{index-CffNkMWN.cjs → index-DQycMGEY.cjs} +1 -1
- package/dist/{index-C8jmJvXd.cjs → index-DRpTJPjg.cjs} +1 -1
- package/dist/{index-BJIMXITA.js → index-DT0rIFKm.js} +6 -6
- package/dist/index-DcIVU-Ov.cjs +1 -0
- package/dist/{index-3dpRV7yS.cjs → index-DgY-01TT.cjs} +1 -1
- package/dist/{index-DHhMROzm.cjs → index-Dp0i47OJ.cjs} +1 -1
- package/dist/{index-DPm-3I4S.js → index-DqHrwwb1.js} +6 -6
- package/dist/{index-CA9lI4P8.js → index-DseMLCbI.js} +5 -5
- package/dist/{index-ZUmqWSaw.cjs → index-Dt5TGPLg.cjs} +1 -1
- package/dist/{index-BPDslvev.js → index-DtYFEnXc.js} +2 -2
- package/dist/{index-eSv5uzFM.js → index-NEUjKmq0.js} +354 -359
- package/dist/{index-VOSN3Mnh.js → index-NIMrswsz.js} +9 -9
- package/dist/{index-DMp2zGXo.js → index-ZuGl0u3I.js} +7 -7
- package/dist/{index-BimZK7wy.cjs → index-jESujSgy.cjs} +1 -1
- package/dist/{index-Dxfzna5p.cjs → index-jghM2Y0h.cjs} +1 -1
- package/dist/{index-BszUQuvL.cjs → index-sKVluUJX.cjs} +1 -1
- package/dist/{index-CdLmmvxi.cjs → index-uVl30He2.cjs} +1 -1
- package/dist/index-zMtEEusk.cjs +1 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dr6igsfU.cjs → index.vue_vue_type_script_setup_true_lang-BaYvLcMI.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CKDefrVd.js → index.vue_vue_type_script_setup_true_lang-CAcdw_AX.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-x_oCFRtr.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B4LEhoqI.cjs} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CaGB6aRQ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CopMGaPW.js} +11 -17
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CMsb25AU.js → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-BOZV3S47.js} +90 -89
- package/dist/index.vue_vue_type_style_index_0_scoped_306ecd73_lang-Dt5xjsaj.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CTM5_Xpt.js +1429 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DhLcXmdy.cjs +1 -0
- package/dist/login-BkG9ft6j.js +75 -0
- package/dist/login-uBBsyOif.cjs +1 -0
- package/dist/{main-C7zpT64X.js → main-B29DPpx0.js} +6 -6
- package/dist/{main-NoOanZcQ.cjs → main-DqvMBu9E.cjs} +1 -1
- package/dist/{menu-B-Z5KAh5.cjs → menu-CEY-shM3.cjs} +4 -4
- package/dist/{menu-D9x5_s9p.js → menu-Dz_fVXUK.js} +8 -8
- package/dist/menuIndex-BWim3TlH.js +33 -0
- package/dist/menuIndex-Cg6xI-jR.cjs +1 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-MVkoDB-c.cjs → threeModel-Djd02U60.cjs} +1 -1
- package/dist/{threeModel-BazaxATJ.js → threeModel-V5HRhps2.js} +5 -6
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CnQhvwfL.js → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-B08ZEGHO.js} +2 -2
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CBBWsMHp.cjs → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-BTtFKEwD.cjs} +1 -1
- package/package.json +1 -1
- package/dist/array-CYOvmzeK.js +0 -1310
- package/dist/array-DAoy3WS9.cjs +0 -7
- package/dist/index-BA-Qtevs.cjs +0 -1
- package/dist/index-Bvr0YvSP.cjs +0 -74
- package/dist/index-CyOcoFxe.cjs +0 -1
- package/dist/index-D68A4TXc.cjs +0 -1
- package/dist/index-DBB_scdx.cjs +0 -1
- package/dist/index-Dnq8JVuW.cjs +0 -7
- package/dist/index-TEDdJfFz.js +0 -677
- package/dist/index-faxMOO3y.js +0 -1717
- package/dist/index.vue_vue_type_style_index_0_scoped_306ecd73_lang-B7CgbfdF.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-COxDD0Fj.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DDi07ZiD.js +0 -1593
- package/dist/login-CARNmuDg.js +0 -103
- package/dist/login-DsWsywlE.cjs +0 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as ir, s as ts, i as es, u as rs, p as as } from "./menu-
|
|
1
|
+
import { g as ir, s as ts, i as es, u as rs, p as as } from "./menu-Dz_fVXUK.js";
|
|
2
2
|
import { ref as ns, computed as is } from "vue";
|
|
3
|
-
import {
|
|
3
|
+
import { a4 as lr, a5 as Se, o as Zn, a6 as ss, a7 as os, a8 as cr, a9 as Hr, aa as ls, m as Aa, ab as Da, ac as Or, ad as cs, ae as Fe, S as Xa } from "./index-C4kRcJZB.js";
|
|
4
4
|
var la = lr(Se, "WeakMap"), Ya = Object.create, hs = /* @__PURE__ */ function() {
|
|
5
5
|
function a() {
|
|
6
6
|
}
|
|
@@ -9084,12 +9084,10 @@ async function id(a, e, t, r) {
|
|
|
9084
9084
|
return await Wu(i, e, t, r), i;
|
|
9085
9085
|
}
|
|
9086
9086
|
export {
|
|
9087
|
-
id as A,
|
|
9088
9087
|
yh as C,
|
|
9089
9088
|
td as F,
|
|
9090
9089
|
kh as J,
|
|
9091
|
-
|
|
9092
|
-
on as U,
|
|
9090
|
+
it as S,
|
|
9093
9091
|
mr as a,
|
|
9094
9092
|
ed as b,
|
|
9095
9093
|
Qt as c,
|
|
@@ -9103,17 +9101,13 @@ export {
|
|
|
9103
9101
|
ps as k,
|
|
9104
9102
|
vs as l,
|
|
9105
9103
|
Qu as m,
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9104
|
+
Gu as n,
|
|
9105
|
+
Zu as o,
|
|
9106
|
+
Ku as p,
|
|
9107
|
+
qu as q,
|
|
9108
|
+
Ju as r,
|
|
9111
9109
|
nd as s,
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
Ju as w,
|
|
9116
|
-
Vu as x,
|
|
9117
|
-
it as y,
|
|
9118
|
-
_c as z
|
|
9110
|
+
Vu as t,
|
|
9111
|
+
_c as u,
|
|
9112
|
+
id as v
|
|
9119
9113
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
-
import { E as
|
|
4
|
-
import { u as
|
|
5
|
-
import { s as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
import { g as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { defineAsyncComponent as ne, computed as z, onMounted as N, resolveComponent as te, createBlock as R, openBlock as W, withCtx as ae, resolveDynamicComponent as oe, defineComponent as le, defineProps as re, ref as g, watch as ue, reactive as se } from "vue";
|
|
2
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CopMGaPW.js";
|
|
3
|
+
import { E as ie } from "./index-C4kRcJZB.js";
|
|
4
|
+
import { u as me, p as ce, s as ve, g as pe } from "./menu-Dz_fVXUK.js";
|
|
5
|
+
import { s as ge } from "./index-D9Mgi3hi.js";
|
|
6
|
+
import { useRouter as he } from "vue-router";
|
|
7
|
+
import { g as fe } from "./index-ZuGl0u3I.js";
|
|
8
|
+
import { u as be } from "./threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-B08ZEGHO.js";
|
|
9
|
+
import { f as de } from "./menuIndex-BWim3TlH.js";
|
|
10
|
+
import { E as Fe } from "./index-NEUjKmq0.js";
|
|
11
|
+
const E = ne(() => import("./index-D9Mgi3hi.js").then((c) => c.i));
|
|
12
|
+
E.install = (c) => {
|
|
13
|
+
c.component("ssMenu", E);
|
|
13
14
|
};
|
|
14
15
|
const Ce = {
|
|
15
16
|
__name: "index",
|
|
@@ -17,13 +18,13 @@ const Ce = {
|
|
|
17
18
|
name: String
|
|
18
19
|
},
|
|
19
20
|
setup(c) {
|
|
20
|
-
const u = c, F = z(() =>
|
|
21
|
-
return
|
|
21
|
+
const u = c, F = z(() => ie[u.name]);
|
|
22
|
+
return N(() => {
|
|
22
23
|
}), (C, v) => {
|
|
23
|
-
const y =
|
|
24
|
-
return
|
|
25
|
-
default:
|
|
26
|
-
(
|
|
24
|
+
const y = te("el-icon");
|
|
25
|
+
return W(), R(y, null, {
|
|
26
|
+
default: ae(() => [
|
|
27
|
+
(W(), R(oe(F.value)))
|
|
27
28
|
]),
|
|
28
29
|
_: 1
|
|
29
30
|
});
|
|
@@ -102,7 +103,7 @@ const Ce = {
|
|
|
102
103
|
name: "--vertical-menu-padding",
|
|
103
104
|
value: "0.5rem"
|
|
104
105
|
}
|
|
105
|
-
],
|
|
106
|
+
], Re = [
|
|
106
107
|
{
|
|
107
108
|
name: "--horizontal-menu-bg",
|
|
108
109
|
value: "#051E37"
|
|
@@ -273,7 +274,7 @@ const Ce = {
|
|
|
273
274
|
name: "--horizontal-menuitem-font",
|
|
274
275
|
value: "SourceHanSansSC, SourceHanSansSC"
|
|
275
276
|
}
|
|
276
|
-
],
|
|
277
|
+
], We = [
|
|
277
278
|
{
|
|
278
279
|
name: "--ssbutton-theme-color",
|
|
279
280
|
value: "#FFFFFF"
|
|
@@ -298,7 +299,7 @@ const Ce = {
|
|
|
298
299
|
name: "--ssComponent-theme-watermark",
|
|
299
300
|
value: "url('/public/icons/img/watermark-blue.png')"
|
|
300
301
|
}
|
|
301
|
-
],
|
|
302
|
+
], Ne = [
|
|
302
303
|
{
|
|
303
304
|
name: "--ssbutton-theme-color",
|
|
304
305
|
value: "#323333"
|
|
@@ -323,107 +324,107 @@ const Ce = {
|
|
|
323
324
|
name: "--ssComponent-theme-watermark",
|
|
324
325
|
value: "url('/public/icons/img/watermark.png')"
|
|
325
326
|
}
|
|
326
|
-
],
|
|
327
|
+
], Oe = le({
|
|
327
328
|
name: "menu",
|
|
328
329
|
components: {
|
|
329
|
-
ssMenu:
|
|
330
|
+
ssMenu: E,
|
|
330
331
|
DynamicIcon: Ce,
|
|
331
|
-
ssDialog:
|
|
332
|
+
ssDialog: ge
|
|
332
333
|
},
|
|
333
334
|
setup() {
|
|
334
|
-
const c =
|
|
335
|
+
const c = re({
|
|
335
336
|
mode: {
|
|
336
337
|
type: String,
|
|
337
338
|
default: "vertical"
|
|
338
339
|
}
|
|
339
|
-
}), u =
|
|
340
|
+
}), u = me(), F = be(ce), C = g(0), v = he(), { asideMenus: y, menuTriggerType: O, platform: U } = ve(u), V = z(() => c == null ? void 0 : c.mode), w = z(() => {
|
|
340
341
|
let e = [...y.value];
|
|
341
342
|
if ((e == null ? void 0 : e.length) === 0)
|
|
342
343
|
return v.push("/"), [];
|
|
343
|
-
const n =
|
|
344
|
+
const n = q(e, L.value);
|
|
344
345
|
return n.isFlag || (e = n == null ? void 0 : n.data), e;
|
|
345
|
-
}),
|
|
346
|
-
F.setRouteToChildPath(""), u.setMenuTriggerType("click"), u.setActiveMenuPath(e == null ? void 0 : e.path), u.setActiveAsideMenu(e), e.isRouter ? v.push(e.path) : v.push("/");
|
|
347
|
-
},
|
|
346
|
+
}), $ = async (e) => {
|
|
347
|
+
F.setRouteToChildPath(""), u.setMenuTriggerType("click"), u.setActiveMenuPath(e == null ? void 0 : e.path), console.log("当前菜单的结构clickMenu", e), u.setActiveAsideMenu(e), e.isRouter ? v.push(e.path) : v.push("/");
|
|
348
|
+
}, J = async (e) => {
|
|
348
349
|
u.setActiveMenuPath(e);
|
|
349
|
-
const n =
|
|
350
|
-
u.setActiveAsideMenu(n), F.setRouteToChildPath(""),
|
|
351
|
-
},
|
|
350
|
+
const n = de(w.value, "path", e);
|
|
351
|
+
u.setActiveAsideMenu(n), F.setRouteToChildPath(""), O.value === "click" ? C.value === 1 ? u.setActiveMenuPath(sessionStorage.getItem("pageKey")) : u.setActiveMenuPath(e) : u.setMenuTriggerType("click"), e != null && e.startsWith("/") ? v.push(e) : v.push("/"), C.value++;
|
|
352
|
+
}, K = (e) => {
|
|
352
353
|
u.setActiveMenuPath(e);
|
|
353
354
|
}, M = (e) => {
|
|
354
355
|
const n = document.documentElement;
|
|
355
|
-
e == null || e.forEach((
|
|
356
|
-
n.style.setProperty(
|
|
356
|
+
e == null || e.forEach((l) => {
|
|
357
|
+
n.style.setProperty(l.name, l.value);
|
|
357
358
|
});
|
|
358
359
|
};
|
|
359
|
-
|
|
360
|
+
N(() => {
|
|
360
361
|
C.value = 1;
|
|
361
362
|
});
|
|
362
|
-
const
|
|
363
|
+
const L = z(() => {
|
|
363
364
|
const e = sessionStorage.getItem("authority");
|
|
364
365
|
return e ? JSON.parse(e) : [];
|
|
365
366
|
});
|
|
366
|
-
|
|
367
|
+
ue(() => U.value, (e) => {
|
|
367
368
|
e === "browser" ? M(Me) : e === "client" && (M(ze), M(Se));
|
|
368
369
|
}, { immediate: !0 });
|
|
369
|
-
const
|
|
370
|
-
function
|
|
370
|
+
const j = (e, n) => {
|
|
371
|
+
function l(r) {
|
|
371
372
|
r == null || r.forEach((s) => {
|
|
372
|
-
s.show = n == null ? void 0 : n.some((
|
|
373
|
+
s.show = n == null ? void 0 : n.some((t) => t == null ? void 0 : t.includes(s.path)), s.children && l(s.children);
|
|
373
374
|
});
|
|
374
375
|
}
|
|
375
|
-
return
|
|
376
|
-
},
|
|
376
|
+
return l(e), e;
|
|
377
|
+
}, q = (e, n) => {
|
|
377
378
|
if (Array.isArray(n)) {
|
|
378
|
-
const
|
|
379
|
+
const l = Array.from(new Set(n == null ? void 0 : n.map((r) => r.substring(0, r.lastIndexOf("/")))));
|
|
379
380
|
return {
|
|
380
|
-
data:
|
|
381
|
+
data: j(e, l),
|
|
381
382
|
isFlag: !1
|
|
382
383
|
};
|
|
383
384
|
} else
|
|
384
385
|
return {
|
|
385
386
|
isFlag: (n == null ? void 0 : n.toUpperCase()) === "SUPERADMIN"
|
|
386
387
|
};
|
|
387
|
-
}, i =
|
|
388
|
+
}, i = se({
|
|
388
389
|
show: !1,
|
|
389
390
|
title: "菜单配置",
|
|
390
391
|
width: "30%",
|
|
391
392
|
type: "create"
|
|
392
|
-
}),
|
|
393
|
+
}), G = (e) => fe(e), Q = g({}), D = g([]), X = async (e, n, l) => {
|
|
393
394
|
var B, _, P;
|
|
394
395
|
if (((B = e == null ? void 0 : e.structureIds) == null ? void 0 : B.length) === 0) return;
|
|
395
|
-
const r = (P = (_ = e == null ? void 0 : e.structureIds) == null ? void 0 : _.filter((
|
|
396
|
-
let s = r == null ? void 0 : r.map((
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
399
|
-
var
|
|
400
|
-
return ((
|
|
396
|
+
const r = (P = (_ = e == null ? void 0 : e.structureIds) == null ? void 0 : _.filter((a) => (a == null ? void 0 : a.key) === "dialogConfig")) == null ? void 0 : P.map((a) => a == null ? void 0 : a.id);
|
|
397
|
+
let s = r == null ? void 0 : r.map((a) => pe({ id: a }));
|
|
398
|
+
const t = await Promise.all(s);
|
|
399
|
+
if (t == null ? void 0 : t.every((a) => {
|
|
400
|
+
var o;
|
|
401
|
+
return ((o = a == null ? void 0 : a.data) == null ? void 0 : o.code) === 200;
|
|
401
402
|
})) {
|
|
402
|
-
const
|
|
403
|
-
var f, b, m, d, S, x, H
|
|
403
|
+
const a = t == null ? void 0 : t.map((o) => {
|
|
404
|
+
var f, b, m, d, S, x, H;
|
|
404
405
|
return {
|
|
405
|
-
id: (m = (b = (f =
|
|
406
|
-
...(
|
|
406
|
+
id: (m = (b = (f = o == null ? void 0 : o.data) == null ? void 0 : f.result) == null ? void 0 : b[0]) == null ? void 0 : m.id,
|
|
407
|
+
...(H = (x = (S = (d = o == null ? void 0 : o.data) == null ? void 0 : d.result) == null ? void 0 : S[0]) == null ? void 0 : x.value) == null ? void 0 : H.pageData
|
|
407
408
|
};
|
|
408
409
|
});
|
|
409
|
-
n === "create" && (D.value =
|
|
410
|
+
console.log("getMenuDialogStructureAsync", t), n === "create" && (D.value = a), n === "update" && (D.value = a == null ? void 0 : a.map((o) => {
|
|
410
411
|
var f, b;
|
|
411
|
-
return ((f =
|
|
412
|
-
...
|
|
413
|
-
compData: (b =
|
|
412
|
+
return ((f = o == null ? void 0 : o.comp) == null ? void 0 : f.toUpperCase()) === "FORM" ? {
|
|
413
|
+
...o,
|
|
414
|
+
compData: (b = o == null ? void 0 : o.compData) == null ? void 0 : b.map((m) => {
|
|
414
415
|
var d;
|
|
415
416
|
return (m == null ? void 0 : m.key) === "formContent" ? {
|
|
416
417
|
...m,
|
|
417
418
|
contents: (d = m == null ? void 0 : m.contents) == null ? void 0 : d.map((S) => ({
|
|
418
419
|
...S,
|
|
419
|
-
value:
|
|
420
|
+
value: l == null ? void 0 : l.title
|
|
420
421
|
}))
|
|
421
422
|
} : m;
|
|
422
423
|
})
|
|
423
|
-
} :
|
|
424
|
+
} : o;
|
|
424
425
|
}));
|
|
425
426
|
}
|
|
426
|
-
}, h = g({}), p = g({}),
|
|
427
|
+
}, h = g({}), p = g({}), Y = (e) => {
|
|
427
428
|
switch (e) {
|
|
428
429
|
case "新增":
|
|
429
430
|
return "create";
|
|
@@ -437,61 +438,61 @@ const Ce = {
|
|
|
437
438
|
type: i.type,
|
|
438
439
|
data: e
|
|
439
440
|
});
|
|
440
|
-
},
|
|
441
|
-
i.type =
|
|
441
|
+
}, Z = async (e, n) => {
|
|
442
|
+
i.type = Y(n == null ? void 0 : n.operateType), await X(n, i.type, e), u.setIsRefreshMenus(!1), p.value = e, A.value = n, (n == null ? void 0 : n.operateType) !== "删除" ? (i.show = (n == null ? void 0 : n.trigger) === "openDialog", i.title = (n == null ? void 0 : n.operateType) + "菜单") : Fe.confirm(`是否确认要删除【${e == null ? void 0 : e.title}】`, "", {
|
|
442
443
|
confirmButtonText: "确认",
|
|
443
444
|
cancelButtonText: "取消",
|
|
444
445
|
type: "warning"
|
|
445
446
|
}).then(() => {
|
|
446
447
|
T(e);
|
|
447
448
|
}), console.log("clickMenuIcon", e, n, i);
|
|
448
|
-
},
|
|
449
|
+
}, I = () => {
|
|
449
450
|
i.show = !1;
|
|
450
|
-
},
|
|
451
|
+
}, ee = (e) => e == null ? void 0 : e.filter((n) => n.allowInherit);
|
|
451
452
|
return {
|
|
452
453
|
handleCompChange: (e) => {
|
|
453
|
-
var
|
|
454
|
-
const n = (
|
|
455
|
-
n && (h.value = (r = n == null ? void 0 : n.contents) == null ? void 0 : r.reduce((s,
|
|
454
|
+
var l, r;
|
|
455
|
+
const n = (l = e == null ? void 0 : e.contents) == null ? void 0 : l.find((s) => s.key === "formContent");
|
|
456
|
+
n && (h.value = (r = n == null ? void 0 : n.contents) == null ? void 0 : r.reduce((s, t) => (s[t.key] = t.value, s.prop = t.key, s), {}));
|
|
456
457
|
},
|
|
457
|
-
dialogForm:
|
|
458
|
+
dialogForm: Q,
|
|
458
459
|
dialogRenderComps: D,
|
|
459
|
-
getComponents:
|
|
460
|
+
getComponents: G,
|
|
460
461
|
clickSubmitForm: () => {
|
|
461
|
-
var
|
|
462
|
+
var l, r, s, t, k;
|
|
462
463
|
let e;
|
|
463
|
-
i.type === "create" && (e = ((
|
|
464
|
+
i.type === "create" && (e = ((l = p.value) == null ? void 0 : l.path) + "/" + h.value[(r = h.value) == null ? void 0 : r.prop]), i.type === "update" && (e = (s = p.value) == null ? void 0 : s.path);
|
|
464
465
|
const n = {
|
|
465
466
|
...p.value,
|
|
466
467
|
//是否继承父菜单的配置
|
|
467
|
-
config:
|
|
468
|
+
config: ee((t = p.value) == null ? void 0 : t.config),
|
|
468
469
|
children: [],
|
|
469
470
|
childMenus: [],
|
|
470
|
-
title: h.value[(
|
|
471
|
+
title: h.value[(k = h.value) == null ? void 0 : k.prop],
|
|
471
472
|
path: e
|
|
472
473
|
};
|
|
473
|
-
console.log("clickSubmitForm", A.value, p.value), T(n), i.show = !1;
|
|
474
|
+
console.log("clickSubmitForm", A.value, p.value, n), T(n), i.show = !1;
|
|
474
475
|
},
|
|
475
476
|
dialogInfo: i,
|
|
476
|
-
beforeDialogDestroy:
|
|
477
|
-
clickMenuIcon:
|
|
478
|
-
mode:
|
|
477
|
+
beforeDialogDestroy: I,
|
|
478
|
+
clickMenuIcon: Z,
|
|
479
|
+
mode: V,
|
|
479
480
|
renderMenuList: w,
|
|
480
|
-
clickMenu:
|
|
481
|
-
openMenu:
|
|
482
|
-
closeMenu:
|
|
481
|
+
clickMenu: $,
|
|
482
|
+
openMenu: J,
|
|
483
|
+
closeMenu: K,
|
|
483
484
|
changeMenuStyle: M
|
|
484
485
|
};
|
|
485
486
|
}
|
|
486
487
|
});
|
|
487
488
|
export {
|
|
488
|
-
|
|
489
|
+
Oe as _,
|
|
489
490
|
Ce as a,
|
|
490
|
-
|
|
491
|
-
|
|
491
|
+
We as b,
|
|
492
|
+
Ne as c,
|
|
492
493
|
Me as d,
|
|
493
|
-
|
|
494
|
+
Re as e,
|
|
494
495
|
ze as f,
|
|
495
496
|
Se as g,
|
|
496
|
-
|
|
497
|
+
E as s
|
|
497
498
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B4LEhoqI.cjs");const te=require("./index-BvLNLX2m.cjs"),z=require("./menu-CEY-shM3.cjs"),ae=require("./index-DRpTJPjg.cjs"),oe=require("vue-router"),re=require("./index-DgY-01TT.cjs"),le=require("./threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-BTtFKEwD.cjs"),ue=require("./menuIndex-Cg6xI-jR.cjs"),se=require("./index-BQE6u3FY.cjs"),y=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DRpTJPjg.cjs")).then(v=>v.index));y.install=v=>{v.component("ssMenu",y)};const q={__name:"index",props:{name:String},setup(v){const s=v,C=t.computed(()=>te.ElIcons[s.name]);return t.onMounted(()=>{}),(F,g)=>{const D=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(D,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(C.value)))]),_:1})}}},R=[{name:"--vertical-menu-bg",value:"transparent"},{name:"--vertical-submenu-hover-bg",value:"#3356E8"},{name:"--vertical-submenu-open-bg",value:"#3356E8"},{name:"--vertical-submenu-open-inline-bg",value:"#F6F6F6"},{name:"--vertical-submenu-menuitem-color",value:"#051E37"},{name:"--vertical-submenu-menuitem-active-color",value:"#3356E8"},{name:"--vertical-submenu-color",value:"#051E37"},{name:"--vertical-submenu-active-color",value:"#ffffff"},{name:"--vertical-menuitem-hover-bg",value:"#3356E8"},{name:"--vertical-menuitem-active-bg",value:"#3356E8"},{name:"--vertical-menuitem-color",value:"#051E37"},{name:"--vertical-menuitem-active-color",value:"#ffffff"},{name:"--vertical-menuitem-fontSize",value:"1rem"},{name:"--vertical-menuitem-fontWeight",value:"400"},{name:"--vertical-menuitem-active-fontWeight",value:"600"},{name:"--vertical-menuitem-font",value:"SourceHanSansCN, SourceHanSansCN"},{name:"--vertical-menuitem-radius",value:"8px"},{name:"--vertical-menu-padding",value:"0.5rem"}],ie=[{name:"--horizontal-menu-bg",value:"#051E37"},{name:"--horizontal-submenu-hover-bg",value:"#3356E8"},{name:"--horizontal-submenu-open-bg",value:"#3356E8"},{name:"--horizontal-submenu-open-inline-bg",value:"#3356E8"},{name:"--horizontal-menuitem-hover-bg",value:"#3356E8"},{name:"--horizontal-menuitem-active-bg",value:"#3356E8"},{name:"--horizontal-menuitem-color",value:"#FFFFFF"},{name:"--horizontal-menuitem-active-color",value:"#FFFFFF"},{name:"--horizontal-menuitem-fontSize",value:"1.25rem"},{name:"--horizontal-menuitem-fontWeight",value:"400"},{name:"--horizontal-menuitem-active-fontWeight",value:"600"},{name:"--horizontal-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"}],W=[{name:"--vertical-menu-bg",value:"transparent"},{name:"--vertical-submenu-hover-bg",value:"#72B02D"},{name:"--vertical-submenu-active-color",value:"#323333"},{name:"--vertical-submenu-open-bg",value:"#72B02D"},{name:"--vertical-submenu-open-inline-bg",value:"#F6F6F6"},{name:"--vertical-submenu-color",value:"#323333"},{name:"--vertical-submenu-menuitem-color",value:"#323333"},{name:"--vertical-submenu-menuitem-active-color",value:"#72B02D"},{name:"--vertical-menuitem-hover-bg",value:"#72B02D"},{name:"--vertical-menuitem-active-bg",value:"#72B02D"},{name:"--vertical-menuitem-color",value:"#323333"},{name:"--vertical-menuitem-active-color",value:"#323333"},{name:"--vertical-menuitem-fontSize",value:"1rem"},{name:"--vertical-menuitem-fontWeight",value:"400"},{name:"--vertical-menuitem-active-fontWeight",value:"600"},{name:"--vertical-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"},{name:"--vertical-menuitem-radius",value:"8px"},{name:"--vertical-menu-padding",value:"0"}],N=[{name:"--horizontal-menu-bg",value:"#323333"},{name:"--horizontal-submenu-hover-bg",value:"#FFFFFF"},{name:"--horizontal-submenu-open-bg",value:"#72B02D"},{name:"--horizontal-submenu-open-inline-bg",value:"#1C4275"},{name:"--horizontal-menuitem-hover-bg",value:"#72B02D"},{name:"--horizontal-menuitem-active-bg",value:"#72B02D"},{name:"--horizontal-menuitem-color",value:"#FFFFFF"},{name:"--horizontal-menuitem-active-color",value:"#323333"},{name:"--horizontal-menuitem-fontSize",value:"1.25rem"},{name:"--horizontal-menuitem-fontWeight",value:"400"},{name:"--horizontal-menuitem-active-fontWeight",value:"600"},{name:"--horizontal-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"}],ce=[{name:"--ssbutton-theme-color",value:"#FFFFFF"},{name:"--ssbutton-theme-bg",value:"#3356E8"},{name:"--ssbutton-special-bg",value:"rgba(255,255,255,0.2)"},{name:"--ssgroup-background",value:"linear-gradient(to right, #D6DDFA, #ffffff)"},{name:"--ssComponent-theme-color",value:"#3356E8"},{name:"--ssComponent-theme-watermark",value:"url('/public/icons/img/watermark-blue.png')"}],me=[{name:"--ssbutton-theme-color",value:"#323333"},{name:"--ssbutton-theme-bg",value:"#72B02D"},{name:"--ssbutton-special-bg",value:"rgba(255, 255, 255, 0.2)"},{name:"--ssgroup-background",value:"linear-gradient(to right, #ddf6e0, #ffffff)"},{name:"--ssComponent-theme-color",value:"#72B02D"},{name:"--ssComponent-theme-watermark",value:"url('/public/icons/img/watermark.png')"}],ve=t.defineComponent({name:"menu",components:{ssMenu:y,DynamicIcon:q,ssDialog:ae.ssDialog},setup(){const v=t.defineProps({mode:{type:String,default:"vertical"}}),s=z.useMenuState(),C=le.useModelComp(z.pinia),F=t.ref(0),g=oe.useRouter(),{asideMenus:D,menuTriggerType:O,platform:V}=z.storeToRefs(s),U=t.computed(()=>v==null?void 0:v.mode),_=t.computed(()=>{let e=[...D.value];if((e==null?void 0:e.length)===0)return g.push("/"),[];const n=G(e,$.value);return n.isFlag||(e=n==null?void 0:n.data),e}),J=async e=>{C.setRouteToChildPath(""),s.setMenuTriggerType("click"),s.setActiveMenuPath(e==null?void 0:e.path),console.log("当前菜单的结构clickMenu",e),s.setActiveAsideMenu(e),e.isRouter?g.push(e.path):g.push("/")},K=async e=>{s.setActiveMenuPath(e);const n=ue.findNodeByPropInTree(_.value,"path",e);s.setActiveAsideMenu(n),C.setRouteToChildPath(""),O.value==="click"?F.value===1?s.setActiveMenuPath(sessionStorage.getItem("pageKey")):s.setActiveMenuPath(e):s.setMenuTriggerType("click"),e!=null&&e.startsWith("/")?g.push(e):g.push("/"),F.value++},L=e=>{s.setActiveMenuPath(e)},M=e=>{const n=document.documentElement;e==null||e.forEach(l=>{n.style.setProperty(l.name,l.value)})};t.onMounted(()=>{F.value=1});const $=t.computed(()=>{const e=sessionStorage.getItem("authority");return e?JSON.parse(e):[]});t.watch(()=>V.value,e=>{e==="browser"?M(R):e==="client"&&(M(N),M(W))},{immediate:!0});const j=(e,n)=>{function l(u){u==null||u.forEach(i=>{i.show=n==null?void 0:n.some(a=>a==null?void 0:a.includes(i.path)),i.children&&l(i.children)})}return l(e),e},G=(e,n)=>{if(Array.isArray(n)){const l=Array.from(new Set(n==null?void 0:n.map(u=>u.substring(0,u.lastIndexOf("/")))));return{data:j(e,l),isFlag:!1}}else return{isFlag:(n==null?void 0:n.toUpperCase())==="SUPERADMIN"}},c=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Q=e=>re.getComponent(e),X=t.ref({}),k=t.ref([]),Y=async(e,n,l)=>{var T,B,x;if(((T=e==null?void 0:e.structureIds)==null?void 0:T.length)===0)return;const u=(x=(B=e==null?void 0:e.structureIds)==null?void 0:B.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:x.map(o=>o==null?void 0:o.id);let i=u==null?void 0:u.map(o=>z.getInsofDataApi({id:o}));const a=await Promise.all(i);if(a==null?void 0:a.every(o=>{var r;return((r=o==null?void 0:o.data)==null?void 0:r.code)===200})){const o=a==null?void 0:a.map(r=>{var f,b,m,d,S,P,H;return{id:(m=(b=(f=r==null?void 0:r.data)==null?void 0:f.result)==null?void 0:b[0])==null?void 0:m.id,...(H=(P=(S=(d=r==null?void 0:r.data)==null?void 0:d.result)==null?void 0:S[0])==null?void 0:P.value)==null?void 0:H.pageData}});console.log("getMenuDialogStructureAsync",a),n==="create"&&(k.value=o),n==="update"&&(k.value=o==null?void 0:o.map(r=>{var f,b;return((f=r==null?void 0:r.comp)==null?void 0:f.toUpperCase())==="FORM"?{...r,compData:(b=r==null?void 0:r.compData)==null?void 0:b.map(m=>{var d;return(m==null?void 0:m.key)==="formContent"?{...m,contents:(d=m==null?void 0:m.contents)==null?void 0:d.map(S=>({...S,value:l==null?void 0:l.title}))}:m})}:r}))}},h=t.ref({}),p=t.ref({}),Z=e=>{switch(e){case"新增":return"create";case"编辑":return"update";case"删除":return"delete"}},E=t.ref({}),A=e=>{s.setIsRefreshMenus(!0),s.setCacheInputMenu({type:c.type,data:e})},I=async(e,n)=>{c.type=Z(n==null?void 0:n.operateType),await Y(n,c.type,e),s.setIsRefreshMenus(!1),p.value=e,E.value=n,(n==null?void 0:n.operateType)!=="删除"?(c.show=(n==null?void 0:n.trigger)==="openDialog",c.title=(n==null?void 0:n.operateType)+"菜单"):se.ElMessageBox.confirm(`是否确认要删除【${e==null?void 0:e.title}】`,"",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{A(e)}),console.log("clickMenuIcon",e,n,c)},ee=()=>{c.show=!1},ne=e=>e==null?void 0:e.filter(n=>n.allowInherit);return{handleCompChange:e=>{var l,u;const n=(l=e==null?void 0:e.contents)==null?void 0:l.find(i=>i.key==="formContent");n&&(h.value=(u=n==null?void 0:n.contents)==null?void 0:u.reduce((i,a)=>(i[a.key]=a.value,i.prop=a.key,i),{}))},dialogForm:X,dialogRenderComps:k,getComponents:Q,clickSubmitForm:()=>{var l,u,i,a,w;let e;c.type==="create"&&(e=((l=p.value)==null?void 0:l.path)+"/"+h.value[(u=h.value)==null?void 0:u.prop]),c.type==="update"&&(e=(i=p.value)==null?void 0:i.path);const n={...p.value,config:ne((a=p.value)==null?void 0:a.config),children:[],childMenus:[],title:h.value[(w=h.value)==null?void 0:w.prop],path:e};console.log("clickSubmitForm",E.value,p.value,n),A(n),c.show=!1},dialogInfo:c,beforeDialogDestroy:ee,clickMenuIcon:I,mode:U,renderMenuList:_,clickMenu:J,openMenu:K,closeMenu:L,changeMenuStyle:M}}});exports._sfc_main=ve;exports._sfc_main$1=q;exports.browserHorizontalMenuClasses=ie;exports.browserThemeConfig=ce;exports.browserVerticalMenuClasses=R;exports.clientHorizontalMenuClasses=N;exports.clientThemeConfig=me;exports.clientVerticalMenuClasses=W;exports.ssMenu=y;
|