ss-component-new 1.3.876 → 1.3.878
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-CVae_qVg.js → array-0Dv5wA0B.js} +74 -74
- package/dist/{index-BSLO4HIT.js → index-BLjOAzqD.js} +2 -2
- package/dist/{index-CLjSo7P8.js → index-CAotDRAh.js} +1 -1
- package/dist/{index-LMNbQhfM.js → index-CT9AmRJY.js} +1 -1
- package/dist/{index-CQXjRaJR.js → index-CxrF-I9V.js} +1 -1
- package/dist/{index-C8XSIM4d.js → index-D2eGznaq.js} +2 -2
- package/dist/{index-CmxJ3w8x.js → index-DFFKpe3X.js} +1888 -1885
- package/dist/{index-DTL6ZFSS.js → index-DKjHCtzj.js} +1 -1
- package/dist/{index-B2_Fi3rR.js → index-DY6Ud0CB.js} +1 -1
- package/dist/{index-HDbLzAgU.js → index-De3OLFSD.js} +25511 -25480
- package/dist/{index-Bx0XRp6Q.js → index-DodjEuLF.js} +2 -2
- package/dist/{index-3BuUKr5w.js → index-Dv6TC5Ab.js} +1 -1
- package/dist/{index-Cxhq9Mws.js → index-g9y6kMY3.js} +98 -101
- package/dist/{main-yhu4A9HX.js → main-hBDStGQ7.js} +2 -2
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-CI9lUpYY.js → threeModel-BBTwstcP.js} +33 -33
- package/dist/{threePreview-fQeV-h6i.js → threePreview-POTR8gIo.js} +1 -1
- package/dist/{threeSceneView-Dsnee9I5.js → threeSceneView-dJv_6pl5.js} +3 -3
- package/dist/{threeSceneViewForCPMPIP-DHH32F74.js → threeSceneViewForCPMPIP-DyCNU1Sm.js} +1 -1
- package/dist/{threeViewerHost-DosngfPO.js → threeViewerHost-CjC-mF9r.js} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as m, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
|
|
2
2
|
import { S as x } from "./index-C7XHYOkz.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Z as B } from "./index-De3OLFSD.js";
|
|
4
4
|
import { s as F } from "./index-11kpzK0A.js";
|
|
5
|
-
import { a as y } from "./index-
|
|
5
|
+
import { a as y } from "./index-CT9AmRJY.js";
|
|
6
6
|
import { u as S, p as I, s as N } from "./index-CD8ntnXQ.js";
|
|
7
7
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const E = { class: "menu-module" }, M = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
|
|
2
2
|
import { u as h, p as k, s as x, c as m } from "./index-CD8ntnXQ.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Z as M } from "./index-De3OLFSD.js";
|
|
4
4
|
import { a as D, d as T, f as S } from "./index-BrU5J7vP.js";
|
|
5
5
|
import { g as w } from "./index-CSNsYiCg.js";
|
|
6
6
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as vt, computed as _e, onMounted as qe, resolveComponent as Z, createBlock as
|
|
2
|
-
import { u as It, a as bt, p as Ke, b as Tt, s as Me, c as
|
|
1
|
+
import { defineAsyncComponent as vt, computed as _e, onMounted as qe, resolveComponent as Z, createBlock as Ae, openBlock as O, withCtx as V, resolveDynamicComponent as xe, defineComponent as yt, defineProps as gt, ref as U, watch as Ue, reactive as Ct, nextTick as kt, createElementBlock as X, Fragment as Oe, createVNode as Y, createCommentVNode as Te, normalizeStyle as Dt, toDisplayString as St, createElementVNode as je, createTextVNode as Re, renderList as _t } from "vue";
|
|
2
|
+
import { u as It, a as bt, p as Ke, b as Tt, s as Me, c as Be, v as ue } from "./index-CD8ntnXQ.js";
|
|
3
3
|
import { S as Mt } from "./index-BHtNKL1L.js";
|
|
4
4
|
import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-DZleBV8W.js";
|
|
5
5
|
import { I as ut } from "./request-BQZTUjLG.js";
|
|
6
|
-
import { s as
|
|
7
|
-
import { d as
|
|
8
|
-
import { useRouter as
|
|
9
|
-
import { a as
|
|
6
|
+
import { s as At } from "./index-11kpzK0A.js";
|
|
7
|
+
import { d as wt } from "./index-CT9AmRJY.js";
|
|
8
|
+
import { useRouter as Bt } from "vue-router";
|
|
9
|
+
import { a as Et, e as Pt, f as Ft, g as Lt, h as Ut } from "./index-ChNfRlIP.js";
|
|
10
10
|
import { g as $e, u as Ot, b as ze, c as jt, a as Rt } from "./index-CSNsYiCg.js";
|
|
11
|
-
import { g as Kt } from "./index-
|
|
11
|
+
import { g as Kt } from "./index-De3OLFSD.js";
|
|
12
12
|
import { f as $t } from "./menuIndex-DwtQ4RvM.js";
|
|
13
13
|
import { e as We, f as Je, n as zt } from "./index-BMN1ZPR6.js";
|
|
14
14
|
import { u as Wt } from "./index-4QYsEJAi.js";
|
|
15
15
|
import { _ as Jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
i.component("ssMenu",
|
|
16
|
+
const we = vt(() => import("./index-CT9AmRJY.js").then((i) => i.v));
|
|
17
|
+
we.install = (i) => {
|
|
18
|
+
i.component("ssMenu", we);
|
|
19
19
|
};
|
|
20
20
|
const qt = {
|
|
21
21
|
__name: "index",
|
|
@@ -23,45 +23,45 @@ const qt = {
|
|
|
23
23
|
name: String
|
|
24
24
|
},
|
|
25
25
|
setup(i) {
|
|
26
|
-
const
|
|
26
|
+
const n = i, _ = _e(() => ut[n.name]);
|
|
27
27
|
return qe(() => {
|
|
28
28
|
}), (f, o) => {
|
|
29
29
|
const l = Z("el-icon");
|
|
30
|
-
return O(),
|
|
30
|
+
return O(), Ae(l, null, {
|
|
31
31
|
default: V(() => [
|
|
32
|
-
(O(),
|
|
32
|
+
(O(), Ae(xe(_.value)))
|
|
33
33
|
]),
|
|
34
34
|
_: 1
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, Ge = (i, n, _ = 0) => {
|
|
39
39
|
let f = i;
|
|
40
|
-
return f != null && f.every((o) => Array.isArray(o)) && (f != null && f.every((o) => Array.isArray(o) && o.length === 1) ? f = f == null ? void 0 : f.filter((o) => (o == null ? void 0 : o[0]) !== (
|
|
41
|
-
if (o != null && o.find((l) => l === (
|
|
42
|
-
let l =
|
|
43
|
-
I.push(o == null ? void 0 : o[0]),
|
|
40
|
+
return f != null && f.every((o) => Array.isArray(o)) && (f != null && f.every((o) => Array.isArray(o) && o.length === 1) ? f = f == null ? void 0 : f.filter((o) => (o == null ? void 0 : o[0]) !== (n == null ? void 0 : n[_])) : f = f == null ? void 0 : f.map((o) => {
|
|
41
|
+
if (o != null && o.find((l) => l === (n == null ? void 0 : n[_])) && (n == null ? void 0 : n.length) !== 1) {
|
|
42
|
+
let l = Be(n), r = o == null ? void 0 : o.filter((g) => g !== (l == null ? void 0 : l[_])), M = _ + 1, A = Ge(r, l, M), I = [];
|
|
43
|
+
I.push(o == null ? void 0 : o[0]), A == null || A.forEach((g) => {
|
|
44
44
|
I.push(g);
|
|
45
45
|
}), o = I;
|
|
46
46
|
}
|
|
47
47
|
return o;
|
|
48
48
|
})), f;
|
|
49
|
-
},
|
|
49
|
+
}, Ne = (i, n, _, f = 0) => {
|
|
50
50
|
let o = i;
|
|
51
51
|
return o != null && o.every((l) => Array.isArray(l)) && (o != null && o.every((l) => Array.isArray(l) && l.length === 1) ? o.push([_]) : o = o == null ? void 0 : o.map((l) => {
|
|
52
|
-
if (l != null && l.find((r) => r === (
|
|
53
|
-
let r =
|
|
52
|
+
if (l != null && l.find((r) => r === (n == null ? void 0 : n[f])) && (n == null ? void 0 : n.length) !== 1) {
|
|
53
|
+
let r = Be(n), M = l == null ? void 0 : l.filter((u) => u !== (r == null ? void 0 : r[f])), A = f + 1, I = Ne(M, r, _, A), g = [];
|
|
54
54
|
g.push(l == null ? void 0 : l[0]), I == null || I.forEach((u) => {
|
|
55
55
|
g.push(u);
|
|
56
56
|
}), l = g;
|
|
57
57
|
}
|
|
58
58
|
return l;
|
|
59
59
|
})), o;
|
|
60
|
-
},
|
|
60
|
+
}, Ee = (i, n, _, f, o = 0) => {
|
|
61
61
|
let l = i;
|
|
62
62
|
return l != null && l.every((r) => Array.isArray(r)) && (l != null && l.every((r) => Array.isArray(r) && r.length === 1) ? l = l == null ? void 0 : l.map((r) => ((r == null ? void 0 : r[0]) === _ && (r = [f]), r)) : l = l == null ? void 0 : l.map((r) => {
|
|
63
|
-
if (r != null && r.find((M) => M === (
|
|
64
|
-
let M =
|
|
63
|
+
if (r != null && r.find((M) => M === (n == null ? void 0 : n[o])) && (n == null ? void 0 : n.length) !== 1) {
|
|
64
|
+
let M = Be(n), A = r == null ? void 0 : r.filter((a) => a !== (M == null ? void 0 : M[o])), I = o + 1, g = Ee(A, M, _, f, I), u = [];
|
|
65
65
|
u.push(r == null ? void 0 : r[0]), g == null || g.forEach((a) => {
|
|
66
66
|
u.push(a);
|
|
67
67
|
}), r = u;
|
|
@@ -74,12 +74,12 @@ function Qe(i = "menu") {
|
|
|
74
74
|
name: i,
|
|
75
75
|
components: {
|
|
76
76
|
SvgIcon: Mt,
|
|
77
|
-
ssMenu:
|
|
77
|
+
ssMenu: we,
|
|
78
78
|
DynamicIcon: qt,
|
|
79
|
-
ssDialog:
|
|
80
|
-
ssInput:
|
|
79
|
+
ssDialog: At,
|
|
80
|
+
ssInput: wt
|
|
81
81
|
},
|
|
82
|
-
setup(
|
|
82
|
+
setup(n, { emit: _ }) {
|
|
83
83
|
const f = gt({
|
|
84
84
|
mode: {
|
|
85
85
|
type: String,
|
|
@@ -101,28 +101,25 @@ function Qe(i = "menu") {
|
|
|
101
101
|
operateType: "修改菜单名",
|
|
102
102
|
operateIcon: "FixedMenu"
|
|
103
103
|
}
|
|
104
|
-
]), l = It(), r = bt(Ke), M = Tt(Ke), { loginUserInfo:
|
|
105
|
-
var
|
|
106
|
-
return !(e != null && e.children) || ((
|
|
104
|
+
]), l = It(), r = bt(Ke), M = Tt(Ke), { loginUserInfo: A } = Me(M), I = U(0), g = Bt(), u = U(), { asideMenus: a, menuTriggerType: H, platform: Se, jumpMenuInform: j } = Me(l), { fixMenuStatus: Ie } = Me(r), { isSuperAdmin: Xe } = Wt(), Ye = _e(() => f == null ? void 0 : f.mode), Pe = (t) => t == null ? void 0 : t.map((e) => {
|
|
105
|
+
var c, h;
|
|
106
|
+
return !(e != null && e.children) || ((c = e == null ? void 0 : e.children) == null ? void 0 : c.length) === 0 ? e.config = o.value : e != null && e.children && ((h = e == null ? void 0 : e.children) == null ? void 0 : h.length) > 0 && (e.children = Pe(e.children)), e;
|
|
107
107
|
}), Fe = _e(() => {
|
|
108
108
|
let t = [...a.value];
|
|
109
109
|
if ((t == null ? void 0 : t.length) === 0)
|
|
110
110
|
return g.push("/"), [];
|
|
111
111
|
const s = et(t, me.value);
|
|
112
112
|
return s.isFlag || (t = s == null ? void 0 : s.data), t = t == null ? void 0 : t.map((e) => {
|
|
113
|
-
var
|
|
114
|
-
return !(e != null && e.children) || ((
|
|
113
|
+
var c, h;
|
|
114
|
+
return !(e != null && e.children) || ((c = e == null ? void 0 : e.children) == null ? void 0 : c.length) === 0 ? e.config = o.value : e != null && e.children && ((h = e == null ? void 0 : e.children) == null ? void 0 : h.length) > 0 && (e.children = Pe(e.children)), e;
|
|
115
115
|
}), t;
|
|
116
116
|
}), Ze = async (t, s) => {
|
|
117
117
|
r.setRouteToChildPath(""), l.setMenuTriggerType("click"), l.setActiveMenuPath(t == null ? void 0 : t.path), l.setActiveAsideMenu(t), t.isRouter ? g.push(t.path) : g.push("/"), _("node-click", t, s);
|
|
118
118
|
}, Ve = async (t) => {
|
|
119
|
-
const s = $t(Fe.value, "path", t), e = String(t ?? "").replace(/^\/+|\/+$/g, ""),
|
|
120
|
-
l.setActiveAsideMenu(s), r.setRouteToChildPath(""), Ie.value ? r.setFixMenuStatus(!1) : (
|
|
121
|
-
openedPath: e,
|
|
122
|
-
activeMenuPath: n
|
|
123
|
-
}) : N.value || (l.setMenuTriggerType("click"), !j.value && !h && l.setActiveMenuPath(t))), t != null && t.startsWith("/") ? g.push(t) : g.push("/"), I.value++;
|
|
119
|
+
const s = $t(Fe.value, "path", t), e = String(t ?? "").replace(/^\/+|\/+$/g, ""), h = String(l.activeMenuPath ?? "").replace(/^\/+|\/+$/g, "").startsWith(`${e}/`);
|
|
120
|
+
l.setActiveAsideMenu(s), r.setRouteToChildPath(""), Ie.value ? r.setFixMenuStatus(!1) : (x.value && (H.value = "open"), H.value === "click" ? !j.value && !h ? l.setActiveMenuPath(t) : h && e.startsWith("试验任务/试验准备") : x.value || (l.setMenuTriggerType("click"), !j.value && !h && l.setActiveMenuPath(t))), t != null && t.startsWith("/") ? g.push(t) : g.push("/"), I.value++;
|
|
124
121
|
}, He = (t) => {
|
|
125
|
-
|
|
122
|
+
x.value || setTimeout(() => {
|
|
126
123
|
l.setActiveMenuPath(t);
|
|
127
124
|
}, 200);
|
|
128
125
|
}, J = (t) => {
|
|
@@ -141,7 +138,7 @@ function Qe(i = "menu") {
|
|
|
141
138
|
Ue(
|
|
142
139
|
() => Se.value,
|
|
143
140
|
(t) => {
|
|
144
|
-
t === "browser" ? J(
|
|
141
|
+
t === "browser" ? J(Et) : t === "client" ? (J(Pt), J(Ft)) : t === "three" && (J(Lt), J(Ut));
|
|
145
142
|
},
|
|
146
143
|
{ immediate: !0 }
|
|
147
144
|
);
|
|
@@ -167,9 +164,9 @@ function Qe(i = "menu") {
|
|
|
167
164
|
data: t
|
|
168
165
|
}), l.setIsRefreshMenus(!0);
|
|
169
166
|
}, it = async (t, s, e) => {
|
|
170
|
-
var
|
|
167
|
+
var c, h, C, $, b, G, E, ee, te, le, se, oe, ae, ie, re, ne, ce, pe, fe, he, de, ve, ye, ge, Ce, ke, De;
|
|
171
168
|
if (s === "create") {
|
|
172
|
-
let
|
|
169
|
+
let P = (e == null ? void 0 : e.title) + "(1)", L = (h = (c = e == null ? void 0 : e.path) == null ? void 0 : c.split("/")) == null ? void 0 : h.filter((D, v) => {
|
|
173
170
|
var k, T;
|
|
174
171
|
return v !== ((T = (k = e == null ? void 0 : e.path) == null ? void 0 : k.split("/")) == null ? void 0 : T.length) - 1;
|
|
175
172
|
}), F = await We(
|
|
@@ -180,8 +177,8 @@ function Qe(i = "menu") {
|
|
|
180
177
|
sessionStorage.getItem("systemKey"),
|
|
181
178
|
""
|
|
182
179
|
);
|
|
183
|
-
if (L.push(
|
|
184
|
-
let D = F == null ? void 0 : F[0], v = (
|
|
180
|
+
if (L.push(P), L = L == null ? void 0 : L.join("/"), (F == null ? void 0 : F.length) > 0) {
|
|
181
|
+
let D = F == null ? void 0 : F[0], v = (E = (G = D == null ? void 0 : D.compData) == null ? void 0 : G.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : E.contents;
|
|
185
182
|
if (((ee = v == null ? void 0 : v[0]) == null ? void 0 : ee.directiveLabel) === "#isMain") {
|
|
186
183
|
let k = (te = v == null ? void 0 : v[0]) == null ? void 0 : te.prop, T = (se = (le = D == null ? void 0 : D.compData) == null ? void 0 : le.find(
|
|
187
184
|
(S) => (S == null ? void 0 : S.key) === "tableContents"
|
|
@@ -189,10 +186,10 @@ function Qe(i = "menu") {
|
|
|
189
186
|
T == null || T.forEach((S) => {
|
|
190
187
|
var W, K;
|
|
191
188
|
if (S.length === 1)
|
|
192
|
-
((W = S == null ? void 0 : S[0]) == null ? void 0 : W[k]) === (e == null ? void 0 : e.title) && (z = S == null ? void 0 : S[0], z[k] =
|
|
189
|
+
((W = S == null ? void 0 : S[0]) == null ? void 0 : W[k]) === (e == null ? void 0 : e.title) && (z = S == null ? void 0 : S[0], z[k] = P);
|
|
193
190
|
else {
|
|
194
|
-
let p = (K = v == null ? void 0 : v.filter((d) => d !== "操作")) == null ? void 0 : K.map((d) => d == null ? void 0 : d.prop),
|
|
195
|
-
|
|
191
|
+
let p = (K = v == null ? void 0 : v.filter((d) => d !== "操作")) == null ? void 0 : K.map((d) => d == null ? void 0 : d.prop), B = S == null ? void 0 : S.filter((d) => !(d != null && d.id)), w = Je(B, p);
|
|
192
|
+
w[k] = P, z = w;
|
|
196
193
|
}
|
|
197
194
|
}), await jt({
|
|
198
195
|
key: {
|
|
@@ -203,8 +200,8 @@ function Qe(i = "menu") {
|
|
|
203
200
|
})) == null ? void 0 : ie.join("/"),
|
|
204
201
|
tableId: D == null ? void 0 : D.id,
|
|
205
202
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
206
|
-
createUserId: (re =
|
|
207
|
-
createUserLayer: ((ne =
|
|
203
|
+
createUserId: (re = A.value) == null ? void 0 : re.id,
|
|
204
|
+
createUserLayer: ((ne = A.value) == null ? void 0 : ne.dept) || ((ce = A.value) == null ? void 0 : ce.部门名称)
|
|
208
205
|
},
|
|
209
206
|
value: {
|
|
210
207
|
tableData: z
|
|
@@ -221,9 +218,9 @@ function Qe(i = "menu") {
|
|
|
221
218
|
} else if (s === "update")
|
|
222
219
|
u.value = e;
|
|
223
220
|
else if (s === "delete") {
|
|
224
|
-
let
|
|
225
|
-
(
|
|
226
|
-
ids:
|
|
221
|
+
let P = [];
|
|
222
|
+
(P == null ? void 0 : P.length) > 0 && await Rt({
|
|
223
|
+
ids: P
|
|
227
224
|
}), l.setUpdateMenuStatus(!1), await ue(), l.setActiveMenuPath(
|
|
228
225
|
(Ce = (ge = (ye = e == null ? void 0 : e.path) == null ? void 0 : ye.split("/")) == null ? void 0 : ge.filter((L, F) => {
|
|
229
226
|
var D, v;
|
|
@@ -232,41 +229,41 @@ function Qe(i = "menu") {
|
|
|
232
229
|
), l.setActiveTopMenuPath((De = (ke = e == null ? void 0 : e.path) == null ? void 0 : ke.split("/")) == null ? void 0 : De[0]), l.setIsRefreshMenus(!1), l.setIsRefreshMenus(!0);
|
|
233
230
|
}
|
|
234
231
|
}, rt = async (t, s) => {
|
|
235
|
-
var ee, te, le, se, oe, ae, ie, re, ne, ce, pe, fe, he, de, ve, ye, ge, Ce, ke, De,
|
|
232
|
+
var ee, te, le, se, oe, ae, ie, re, ne, ce, pe, fe, he, de, ve, ye, ge, Ce, ke, De, P, L, F, D, v, k, T, z, S, W, K;
|
|
236
233
|
let e = await $e({
|
|
237
234
|
key: {
|
|
238
235
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
239
236
|
pageKey: "menu"
|
|
240
237
|
}
|
|
241
|
-
}),
|
|
238
|
+
}), c = (te = (ee = e == null ? void 0 : e.data) == null ? void 0 : ee.result) == null ? void 0 : te[0], h = (le = c == null ? void 0 : c.value) == null ? void 0 : le.pageData;
|
|
242
239
|
h.compData = (se = h.compData) == null ? void 0 : se.map((p) => {
|
|
243
|
-
var
|
|
244
|
-
return (p == null ? void 0 : p.key) === "menuContents" && (p.contents =
|
|
245
|
-
}),
|
|
246
|
-
id:
|
|
240
|
+
var B, w;
|
|
241
|
+
return (p == null ? void 0 : p.key) === "menuContents" && (p.contents = Ee(p.contents, (B = s == null ? void 0 : s.path) == null ? void 0 : B.split("/"), s == null ? void 0 : s.title, (w = t == null ? void 0 : t.target) == null ? void 0 : w.value)), p;
|
|
242
|
+
}), c != null && c.id && await Ot({
|
|
243
|
+
id: c == null ? void 0 : c.id,
|
|
247
244
|
value: {
|
|
248
245
|
pageData: h
|
|
249
246
|
}
|
|
250
247
|
});
|
|
251
|
-
let C = (ae = (oe = s == null ? void 0 : s.path) == null ? void 0 : oe.split("/")) == null ? void 0 : ae.filter((p,
|
|
252
|
-
var
|
|
253
|
-
return
|
|
248
|
+
let C = (ae = (oe = s == null ? void 0 : s.path) == null ? void 0 : oe.split("/")) == null ? void 0 : ae.filter((p, B) => {
|
|
249
|
+
var w, d;
|
|
250
|
+
return B !== ((d = (w = s == null ? void 0 : s.path) == null ? void 0 : w.split("/")) == null ? void 0 : d.length) - 1;
|
|
254
251
|
}), $ = C == null ? void 0 : C.join("/");
|
|
255
252
|
C.push((ie = t == null ? void 0 : t.target) == null ? void 0 : ie.value), C = C == null ? void 0 : C.join("/");
|
|
256
253
|
let b = await We($, sessionStorage.getItem("systemKey"), "");
|
|
257
254
|
if (((fe = (pe = (ce = (ne = (re = b == null ? void 0 : b[0]) == null ? void 0 : re.compData) == null ? void 0 : ne.find((p) => (p == null ? void 0 : p.key) === "header")) == null ? void 0 : ce.contents) == null ? void 0 : pe[0]) == null ? void 0 : fe.directiveLabel) === "#isMain") {
|
|
258
|
-
let p = (ge = (ye = (ve = (de = (he = b == null ? void 0 : b[0]) == null ? void 0 : he.compData) == null ? void 0 : de.find((y) => (y == null ? void 0 : y.key) === "header")) == null ? void 0 : ve.contents) == null ? void 0 : ye[0]) == null ? void 0 : ge.prop,
|
|
255
|
+
let p = (ge = (ye = (ve = (de = (he = b == null ? void 0 : b[0]) == null ? void 0 : he.compData) == null ? void 0 : de.find((y) => (y == null ? void 0 : y.key) === "header")) == null ? void 0 : ve.contents) == null ? void 0 : ye[0]) == null ? void 0 : ge.prop, B = (De = (ke = (Ce = b == null ? void 0 : b[0]) == null ? void 0 : Ce.compData) == null ? void 0 : ke.find(
|
|
259
256
|
(y) => (y == null ? void 0 : y.key) === "tableContents"
|
|
260
|
-
)) == null ? void 0 : De.contents,
|
|
261
|
-
if (
|
|
257
|
+
)) == null ? void 0 : De.contents, w = (D = (F = (L = (P = b == null ? void 0 : b[0]) == null ? void 0 : P.compData) == null ? void 0 : L.find((y) => (y == null ? void 0 : y.key) === "header")) == null ? void 0 : F.contents) == null ? void 0 : D.map((y) => y == null ? void 0 : y.prop), d;
|
|
258
|
+
if (B == null || B.forEach((y) => {
|
|
262
259
|
var Q;
|
|
263
|
-
let
|
|
264
|
-
(
|
|
260
|
+
let N = Je(y, w);
|
|
261
|
+
(N == null ? void 0 : N[p]) === s.title && (d = N, d[p] = (Q = t == null ? void 0 : t.target) == null ? void 0 : Q.value);
|
|
265
262
|
}), d) {
|
|
266
263
|
let y = {};
|
|
267
264
|
for (let Q in d)
|
|
268
265
|
Q !== "id" && (y[Q] = d == null ? void 0 : d[Q]);
|
|
269
|
-
let
|
|
266
|
+
let N = [
|
|
270
267
|
{
|
|
271
268
|
id: d == null ? void 0 : d.id,
|
|
272
269
|
value: {
|
|
@@ -275,25 +272,25 @@ function Qe(i = "menu") {
|
|
|
275
272
|
}
|
|
276
273
|
];
|
|
277
274
|
await ze({
|
|
278
|
-
dataList:
|
|
275
|
+
dataList: N
|
|
279
276
|
});
|
|
280
277
|
}
|
|
281
278
|
}
|
|
282
|
-
let
|
|
279
|
+
let G = await $e({
|
|
283
280
|
key: {
|
|
284
281
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
285
282
|
pageKey: s == null ? void 0 : s.path
|
|
286
283
|
}
|
|
287
|
-
}),
|
|
284
|
+
}), E = (k = (v = G == null ? void 0 : G.data) == null ? void 0 : v.result) == null ? void 0 : k.map((p) => ({
|
|
288
285
|
id: p == null ? void 0 : p.id,
|
|
289
286
|
key: p == null ? void 0 : p.key
|
|
290
287
|
}));
|
|
291
|
-
|
|
292
|
-
dataList:
|
|
288
|
+
E = E == null ? void 0 : E.map((p) => (p.key.pageKey = C, p)), (E == null ? void 0 : E.length) > 0 && await ze({
|
|
289
|
+
dataList: E
|
|
293
290
|
}), l.setUpdateMenuStatus(!1), await ue(), l.setActiveMenuPath(
|
|
294
|
-
(S = (z = (T = s == null ? void 0 : s.path) == null ? void 0 : T.split("/")) == null ? void 0 : z.filter((p,
|
|
295
|
-
var
|
|
296
|
-
return
|
|
291
|
+
(S = (z = (T = s == null ? void 0 : s.path) == null ? void 0 : T.split("/")) == null ? void 0 : z.filter((p, B) => {
|
|
292
|
+
var w, d;
|
|
293
|
+
return B !== ((d = (w = s == null ? void 0 : s.path) == null ? void 0 : w.split("/")) == null ? void 0 : d.length) - 1;
|
|
297
294
|
})) == null ? void 0 : S.join("/")
|
|
298
295
|
), l.setActiveTopMenuPath((K = (W = s == null ? void 0 : s.path) == null ? void 0 : W.split("/")) == null ? void 0 : K[0]), l.setIsRefreshMenus(!1), l.setIsRefreshMenus(!0), u.value = void 0;
|
|
299
296
|
}, nt = async (t, s) => {
|
|
@@ -301,9 +298,9 @@ function Qe(i = "menu") {
|
|
|
301
298
|
}, ct = () => {
|
|
302
299
|
R.show = !1;
|
|
303
300
|
}, pt = (t) => t == null ? void 0 : t.filter((s) => s.allowInherit), ft = () => {
|
|
304
|
-
var e,
|
|
301
|
+
var e, c, h, C, $;
|
|
305
302
|
let t;
|
|
306
|
-
R.type === "create" && (t = ((e = q.value) == null ? void 0 : e.path) + "/" + m.value[(
|
|
303
|
+
R.type === "create" && (t = ((e = q.value) == null ? void 0 : e.path) + "/" + m.value[(c = m.value) == null ? void 0 : c.prop]), R.type === "update" && (t = (h = q.value) == null ? void 0 : h.path);
|
|
307
304
|
const s = {
|
|
308
305
|
...q.value,
|
|
309
306
|
//是否继承父菜单的配置
|
|
@@ -315,29 +312,29 @@ function Qe(i = "menu") {
|
|
|
315
312
|
};
|
|
316
313
|
console.log("clickSubmitForm", Le.value, q.value, s), at(s), R.show = !1;
|
|
317
314
|
}, ht = (t) => {
|
|
318
|
-
var e,
|
|
315
|
+
var e, c;
|
|
319
316
|
const s = (e = t == null ? void 0 : t.contents) == null ? void 0 : e.find((h) => h.key === "formContent");
|
|
320
|
-
s && (m.value = (
|
|
317
|
+
s && (m.value = (c = s == null ? void 0 : s.contents) == null ? void 0 : c.reduce(
|
|
321
318
|
(h, C) => (h[C.key] = C.value, h.prop = C.key, h),
|
|
322
319
|
{}
|
|
323
320
|
));
|
|
324
|
-
},
|
|
325
|
-
|
|
321
|
+
}, x = U(!1), dt = () => {
|
|
322
|
+
x.value = !x.value;
|
|
326
323
|
}, be = U(null);
|
|
327
324
|
return Ue(() => a.value, async (t) => {
|
|
328
325
|
var s, e;
|
|
329
326
|
if (t) {
|
|
330
327
|
await kt();
|
|
331
|
-
const
|
|
332
|
-
if (((s =
|
|
333
|
-
const h =
|
|
328
|
+
const c = t == null ? void 0 : t[0];
|
|
329
|
+
if (((s = c == null ? void 0 : c.children) == null ? void 0 : s.length) > 0) {
|
|
330
|
+
const h = c == null ? void 0 : c.path;
|
|
334
331
|
be.value && ((e = be.value) == null || e.openMenuRefByIndex(h));
|
|
335
332
|
} else
|
|
336
|
-
j != null && j.value ? l.setJumpMenuInform(!1) : l.setActiveMenuPath((
|
|
333
|
+
j != null && j.value ? l.setJumpMenuInform(!1) : l.setActiveMenuPath((c == null ? void 0 : c.path) ?? "");
|
|
337
334
|
}
|
|
338
335
|
}, { immediate: !0 }), {
|
|
339
336
|
menuRef: be,
|
|
340
|
-
isCollapse:
|
|
337
|
+
isCollapse: x,
|
|
341
338
|
handleMenuCollapse: dt,
|
|
342
339
|
handleCompChange: ht,
|
|
343
340
|
dialogForm: lt,
|
|
@@ -360,14 +357,14 @@ function Qe(i = "menu") {
|
|
|
360
357
|
}
|
|
361
358
|
};
|
|
362
359
|
}
|
|
363
|
-
const
|
|
360
|
+
const xt = yt(Qe()), Gt = ["title"], Nt = {
|
|
364
361
|
key: 1,
|
|
365
362
|
class: "menu-title",
|
|
366
363
|
style: { display: "flex", width: "100px" }
|
|
367
364
|
}, Qt = { class: "module-dialog-content" };
|
|
368
|
-
function Xt(i,
|
|
365
|
+
function Xt(i, n, _, f, o, l) {
|
|
369
366
|
var u;
|
|
370
|
-
const r = Z("ss-input"), M = Z("ss-menu"),
|
|
367
|
+
const r = Z("ss-input"), M = Z("ss-menu"), A = Z("svg-icon"), I = Z("el-button"), g = Z("ss-dialog");
|
|
371
368
|
return O(), X(Oe, null, [
|
|
372
369
|
Y(M, {
|
|
373
370
|
ref: "menuRef",
|
|
@@ -388,8 +385,8 @@ function Xt(i, c, _, f, o, l) {
|
|
|
388
385
|
title: a.title,
|
|
389
386
|
class: "menu-title",
|
|
390
387
|
style: Dt({ marginRight: a != null && a.config && ((Se = a == null ? void 0 : a.config) == null ? void 0 : Se.length) > 0 ? "25px" : "1px" })
|
|
391
|
-
}, St(a.title ?? ""), 13,
|
|
392
|
-
i.fixElement && (a == null ? void 0 : a.path) === ((j = i.fixElement) == null ? void 0 : j.path) ? (O(), X("span",
|
|
388
|
+
}, St(a.title ?? ""), 13, Gt)) : Te("", !0),
|
|
389
|
+
i.fixElement && (a == null ? void 0 : a.path) === ((j = i.fixElement) == null ? void 0 : j.path) ? (O(), X("span", Nt, [
|
|
393
390
|
Y(r, {
|
|
394
391
|
value: a.title,
|
|
395
392
|
onBlur: (Ie) => i.onBlur(Ie, a)
|
|
@@ -402,9 +399,9 @@ function Xt(i, c, _, f, o, l) {
|
|
|
402
399
|
((u = i.renderMenuList) == null ? void 0 : u.length) > 0 ? (O(), X("div", {
|
|
403
400
|
key: 0,
|
|
404
401
|
class: "fold-icon",
|
|
405
|
-
onClick:
|
|
402
|
+
onClick: n[0] || (n[0] = (...a) => i.handleMenuCollapse && i.handleMenuCollapse(...a))
|
|
406
403
|
}, [
|
|
407
|
-
Y(
|
|
404
|
+
Y(A, {
|
|
408
405
|
name: i.isCollapse ? "expand" : "pack",
|
|
409
406
|
style: { width: "15px", height: "15px" }
|
|
410
407
|
}, null, 8, ["name"])
|
|
@@ -421,7 +418,7 @@ function Xt(i, c, _, f, o, l) {
|
|
|
421
418
|
(O(!0), X(Oe, null, _t(i.dialogRenderComps, (a) => (O(), X("div", {
|
|
422
419
|
key: a.id
|
|
423
420
|
}, [
|
|
424
|
-
(O(),
|
|
421
|
+
(O(), Ae(xe(i.getComponents((a == null ? void 0 : a.comp) ?? "Input")), {
|
|
425
422
|
itemData: a == null ? void 0 : a.compData,
|
|
426
423
|
key: a == null ? void 0 : a.id,
|
|
427
424
|
content: (a == null ? void 0 : a.contents) ?? [],
|
|
@@ -437,7 +434,7 @@ function Xt(i, c, _, f, o, l) {
|
|
|
437
434
|
id: "themeBorderButton",
|
|
438
435
|
onClick: i.beforeDialogDestroy
|
|
439
436
|
}, {
|
|
440
|
-
default: V(() =>
|
|
437
|
+
default: V(() => n[1] || (n[1] = [
|
|
441
438
|
Re("取消")
|
|
442
439
|
])),
|
|
443
440
|
_: 1,
|
|
@@ -447,7 +444,7 @@ function Xt(i, c, _, f, o, l) {
|
|
|
447
444
|
id: "themeButton",
|
|
448
445
|
onClick: i.clickSubmitForm
|
|
449
446
|
}, {
|
|
450
|
-
default: V(() =>
|
|
447
|
+
default: V(() => n[2] || (n[2] = [
|
|
451
448
|
Re(" 确认 ")
|
|
452
449
|
])),
|
|
453
450
|
_: 1,
|
|
@@ -459,17 +456,17 @@ function Xt(i, c, _, f, o, l) {
|
|
|
459
456
|
}, 8, ["title", "visible", "width", "onBeforeDestroy"])
|
|
460
457
|
], 64);
|
|
461
458
|
}
|
|
462
|
-
const Yt = /* @__PURE__ */ Jt(
|
|
459
|
+
const Yt = /* @__PURE__ */ Jt(xt, [["render", Xt], ["__scopeId", "data-v-2be684bc"]]), fl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
463
460
|
__proto__: null,
|
|
464
|
-
addSelectMenu:
|
|
461
|
+
addSelectMenu: Ne,
|
|
465
462
|
default: Yt,
|
|
466
|
-
deleteSelectMenu:
|
|
467
|
-
fixSelectMenu:
|
|
463
|
+
deleteSelectMenu: Ge,
|
|
464
|
+
fixSelectMenu: Ee,
|
|
468
465
|
setComponent: Qe
|
|
469
466
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
470
467
|
export {
|
|
471
468
|
qt as _,
|
|
472
469
|
Yt as a,
|
|
473
470
|
fl as i,
|
|
474
|
-
|
|
471
|
+
we as s
|
|
475
472
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as U, watch as v, createElementBlock as E, createCommentVNode as q, openBlock as I, Fragment as de, renderList as fe, createElementVNode as S, createBlock as se, toDisplayString as oe, resolveDynamicComponent as ye, onMounted as he, onUnmounted as ke, createVNode as te } from "vue";
|
|
2
|
-
import { m as ge, a as _e, b as Ce, c as be } from "./array-
|
|
2
|
+
import { m as ge, a as _e, b as Ce, c as be } from "./array-0Dv5wA0B.js";
|
|
3
3
|
import { c, a as ce, p as re, s as ue, u as Oe } from "./index-CD8ntnXQ.js";
|
|
4
|
-
import { g as Ae } from "./index-
|
|
4
|
+
import { g as Ae } from "./index-De3OLFSD.js";
|
|
5
5
|
import { v as H, a as K } from "./index-BMN1ZPR6.js";
|
|
6
6
|
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const B = [
|