ss-component-new 1.1.429 → 1.1.430
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-C3OjTdFF.cjs → array-BE8kxwbF.cjs} +1 -1
- package/dist/{array-DriW7TrH.js → array-CmTW1wXQ.js} +1 -1
- package/dist/icons/svg/EyeFill.svg +1 -0
- package/dist/{index-BHxlvMv6.js → index-B3sv--5l.js} +10 -10
- package/dist/{index-CeMds4uE.cjs → index-B8ONEgpW.cjs} +1 -1
- package/dist/{index-C041luJT.cjs → index-BCFtIIf_.cjs} +1 -1
- package/dist/{index-B1X-bNE0.js → index-BWHERznY.js} +4 -4
- package/dist/{index-DAgE3WO9.cjs → index-BZkQ29Tz.cjs} +1 -1
- package/dist/{index-D9rAVZEL.cjs → index-B_AUqKy_.cjs} +1 -1
- package/dist/{index-o4WPwqzp.cjs → index-Bb7GoIJp.cjs} +2 -2
- package/dist/{index-DdLcYvE3.js → index-BiuhwvlL.js} +9 -9
- package/dist/{index-BGLizV4G.js → index-BnlhM9YS.js} +7 -7
- package/dist/{index-DjBjjDpg.js → index-BwhVhBYj.js} +5 -5
- package/dist/index-C-jjWrUl.cjs +1 -0
- package/dist/{index-X7EJLhQp.js → index-CMBrDaM5.js} +1 -1
- package/dist/{index-De1s3ea7.cjs → index-CNpklHzK.cjs} +1 -1
- package/dist/index-CONyMR2I.cjs +74 -0
- package/dist/{index-DuomA_Ys.js → index-CSj1osh5.js} +6 -6
- package/dist/{index-CLr3y5Du.js → index-CYOSbBn4.js} +212 -219
- package/dist/{index-DGnJNcjc.cjs → index-CjlMUufz.cjs} +1 -1
- package/dist/{index-Drc2BWLn.cjs → index-Clor83sA.cjs} +1 -1
- package/dist/{index-DB1AfPdQ.cjs → index-CqaFuVhy.cjs} +1 -1
- package/dist/{index-CrsymeXk.js → index-Cqd4dRu7.js} +4 -4
- package/dist/{index-exhk8lMr.js → index-CrtuDvMe.js} +1 -1
- package/dist/{index-D2PXGh3y.cjs → index-CsHPoVQL.cjs} +1 -1
- package/dist/{index-BDHFJwhX.js → index-CzfGrSpV.js} +7021 -7051
- package/dist/{index-Ci4dnyyZ.cjs → index-D2aIlMCu.cjs} +1 -1
- package/dist/{index-DErdQiE5.cjs → index-D3ah-UXX.cjs} +1 -1
- package/dist/{index-DMqZtCR1.cjs → index-D5JRjtWD.cjs} +1 -1
- package/dist/{index-B7NzplQm.cjs → index-D6iTzH06.cjs} +1 -1
- package/dist/{index-dpjmnZm7.js → index-DDoTCY3C.js} +5 -5
- package/dist/{index-BHO7rTdQ.js → index-DFilfUFX.js} +3 -3
- package/dist/{index-CaW2QXnl.cjs → index-DIxSv5u4.cjs} +1 -1
- package/dist/{index-oM_7BEoi.cjs → index-DOm1fXtU.cjs} +1 -1
- package/dist/{index-C5htghVN.js → index-DQq3rsff.js} +5 -5
- package/dist/{index-DpCi5S7b.cjs → index-DUPkZILz.cjs} +1 -1
- package/dist/{index-ByT2pf2G.js → index-DXtXtduX.js} +4 -4
- package/dist/{index-Cu9nFCcK.cjs → index-D_j7_Hn_.cjs} +1 -1
- package/dist/{index-BkvkvC9V.js → index-Daqdy9e9.js} +17274 -17247
- package/dist/{index-DOdaH5Dk.js → index-DeXnZk4X.js} +6 -6
- package/dist/{index-uSX5QLdo.js → index-Di1ajNKI.js} +4 -4
- package/dist/{index-F-6m4uLc.js → index-DkiBGvqU.js} +1 -1
- package/dist/{index-C4I9I7dr.js → index-DxCiQhlC.js} +2 -2
- package/dist/{index-DhsJZNDO.cjs → index-DxNyBY1w.cjs} +1 -1
- package/dist/{index-b6bi-mnI.cjs → index-DygfoHkC.cjs} +1 -1
- package/dist/{index-BNA4Hofc.js → index-EzZiR3ly.js} +4 -4
- package/dist/{index-BMTUQiR1.js → index-LoH8EwXA.js} +3 -3
- package/dist/{index-Nzu-Yg3L.cjs → index-N9Y_z5k_.cjs} +1 -1
- package/dist/{index-CRBAzfEs.cjs → index-PdwN7EaB.cjs} +1 -1
- package/dist/{index-DqlG2nHS.js → index-eH2F0oMQ.js} +3 -3
- package/dist/{index-AFInDriS.cjs → index-gXA0eS6O.cjs} +13 -13
- package/dist/{index-BGNfD1q7.cjs → index-o5dof3CA.cjs} +1 -1
- package/dist/{index-BEBs6lDF.js → index-pvjM6t0d.js} +6 -6
- package/dist/{index-1lEb6AxE.js → index-qEFkFDy8.js} +7 -7
- package/dist/{index-d_3spDmN.js → index-uatggqnf.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-CQS0yIXC.cjs → index.vue_vue_type_script_setup_true_lang-EaaJleWP.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-r5ntXx1H.js → index.vue_vue_type_script_setup_true_lang-YlUeUQJ4.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BcnUrtwr.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bw_ydbnW.cjs} +58 -58
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DhjhVvbJ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CClJxB6F.js} +6849 -6849
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B95fnBYd.cjs → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B2duMdZT.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-_nLEVa23.js → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-CcYfjXoA.js} +8 -8
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-TQjM60R4.js +1947 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-Z8fBYrL9.cjs +1 -0
- package/dist/{login-Dz-Choxe.js → login-B520hsEu.js} +1 -1
- package/dist/{login-4CQsNYqj.cjs → login-BMAi9yYX.cjs} +1 -1
- package/dist/{main-D4TIX5ZJ.js → main-Dpbg9Pxc.js} +6 -6
- package/dist/{main-Dr2n-t77.cjs → main-yzKa6bxy.cjs} +1 -1
- package/dist/{menu-DRqy2FlY.cjs → menu-BAEUpxbd.cjs} +8 -8
- package/dist/{menu-C47R8xaz.js → menu-qAL8FiSW.js} +5 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-DC6dUe7Z.js → threeModel-ClGUp5fG.js} +628 -752
- package/dist/threeModel-CxKWxMlL.cjs +1 -0
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_e7dd7d83_lang-P-VgKxw9.cjs → threeModel.vue_vue_type_style_index_0_scoped_3e87dec6_lang-BOT5Tivd.cjs} +181 -181
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_e7dd7d83_lang-DHvoNEJo.js → threeModel.vue_vue_type_style_index_0_scoped_3e87dec6_lang-DYhzYEGg.js} +4567 -5349
- package/package.json +1 -1
- package/public/icons/svg/EyeFill.svg +1 -0
- package/dist/index-D5QWCaxA.cjs +0 -87
- package/dist/index-DsAxFIrB.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-B9DK4OqF.js +0 -1929
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CBxAbUn1.cjs +0 -1
- package/dist/threeModel-CiX5oIo9.cjs +0 -1
|
@@ -0,0 +1,1947 @@
|
|
|
1
|
+
import { a as Ma, s as Pa, d as Ia, e as Na, f as ja, g as xa } from "./index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-CcYfjXoA.js";
|
|
2
|
+
import { ref as fe, reactive as La, defineComponent as ya, h as Ae, Transition as Ta, withCtx as Ba, withDirectives as ma, createVNode as Oa, vShow as _a, createApp as Ua, toRefs as Ra, nextTick as da, isRef as Ca, defineProps as $a, computed as $e, onMounted as Ja, watch as be } from "vue";
|
|
3
|
+
import { g as ne, c as Oe, d as Ee, u as Re, e as Ga, f as Ce, h as ha, p as Pe, s as ke, E as he } from "./menu-qAL8FiSW.js";
|
|
4
|
+
import { useRouter as Ha } from "vue-router";
|
|
5
|
+
import { u as ga } from "./login-B520hsEu.js";
|
|
6
|
+
import { g as za } from "./index-Daqdy9e9.js";
|
|
7
|
+
import { g as qa, t as va, b as ye, c as Xe, d as ze, e as Ze, f as we, u as Ya, h as Wa, i as Xa, j as Za, k as Qa, I as pe } from "./index-uatggqnf.js";
|
|
8
|
+
import { c as d, a as xe, J as Va } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CClJxB6F.js";
|
|
9
|
+
import { g as Fa, d as Qe } from "./crypto-BRyGpjGR.js";
|
|
10
|
+
import { t as es, g as Ve } from "./index-CSj1osh5.js";
|
|
11
|
+
import { t as as, u as ss } from "./index-BWHERznY.js";
|
|
12
|
+
import { t as ls } from "./index-LoH8EwXA.js";
|
|
13
|
+
import { t as rs } from "./index-eH2F0oMQ.js";
|
|
14
|
+
import { u as ka } from "./threeModel.vue_vue_type_style_index_0_scoped_3e87dec6_lang-DYhzYEGg.js";
|
|
15
|
+
import { a as ns, b as _e, i as ts, c as Aa, g as Se, d as Fe, e as Sa, h as os } from "./index-B3sv--5l.js";
|
|
16
|
+
import { g as cs } from "./index-BnlhM9YS.js";
|
|
17
|
+
import { v as is } from "./index-DxCiQhlC.js";
|
|
18
|
+
import { c as us, m as fs, g as ps, b as ys, p as ds } from "./array-CmTW1wXQ.js";
|
|
19
|
+
function hs(e, a) {
|
|
20
|
+
let s;
|
|
21
|
+
const r = fe(!1), l = La({
|
|
22
|
+
...e,
|
|
23
|
+
originalPosition: "",
|
|
24
|
+
originalOverflow: "",
|
|
25
|
+
visible: !1
|
|
26
|
+
});
|
|
27
|
+
function t(y) {
|
|
28
|
+
l.text = y;
|
|
29
|
+
}
|
|
30
|
+
function i() {
|
|
31
|
+
const y = l.parent, E = v.ns;
|
|
32
|
+
if (!y.vLoadingAddClassList) {
|
|
33
|
+
let k = y.getAttribute("loading-number");
|
|
34
|
+
k = Number.parseInt(k) - 1, k ? y.setAttribute("loading-number", k.toString()) : (_e(y, E.bm("parent", "relative")), y.removeAttribute("loading-number")), _e(y, E.bm("parent", "hidden"));
|
|
35
|
+
}
|
|
36
|
+
p(), c.unmount();
|
|
37
|
+
}
|
|
38
|
+
function p() {
|
|
39
|
+
var y, E;
|
|
40
|
+
(E = (y = v.$el) == null ? void 0 : y.parentNode) == null || E.removeChild(v.$el);
|
|
41
|
+
}
|
|
42
|
+
function u() {
|
|
43
|
+
var y;
|
|
44
|
+
e.beforeClose && !e.beforeClose() || (r.value = !0, clearTimeout(s), s = setTimeout(n, 400), l.visible = !1, (y = e.closed) == null || y.call(e));
|
|
45
|
+
}
|
|
46
|
+
function n() {
|
|
47
|
+
if (!r.value)
|
|
48
|
+
return;
|
|
49
|
+
const y = l.parent;
|
|
50
|
+
r.value = !1, y.vLoadingAddClassList = void 0, i();
|
|
51
|
+
}
|
|
52
|
+
const o = ya({
|
|
53
|
+
name: "ElLoading",
|
|
54
|
+
setup(y, { expose: E }) {
|
|
55
|
+
const { ns: k, zIndex: A } = ns("loading");
|
|
56
|
+
return E({
|
|
57
|
+
ns: k,
|
|
58
|
+
zIndex: A
|
|
59
|
+
}), () => {
|
|
60
|
+
const D = l.spinner || l.svg, S = Ae("svg", {
|
|
61
|
+
class: "circular",
|
|
62
|
+
viewBox: l.svgViewBox ? l.svgViewBox : "0 0 50 50",
|
|
63
|
+
...D ? { innerHTML: D } : {}
|
|
64
|
+
}, [
|
|
65
|
+
Ae("circle", {
|
|
66
|
+
class: "path",
|
|
67
|
+
cx: "25",
|
|
68
|
+
cy: "25",
|
|
69
|
+
r: "20",
|
|
70
|
+
fill: "none"
|
|
71
|
+
})
|
|
72
|
+
]), m = l.text ? Ae("p", { class: k.b("text") }, [l.text]) : void 0;
|
|
73
|
+
return Ae(Ta, {
|
|
74
|
+
name: k.b("fade"),
|
|
75
|
+
onAfterLeave: n
|
|
76
|
+
}, {
|
|
77
|
+
default: Ba(() => [
|
|
78
|
+
ma(Oa("div", {
|
|
79
|
+
style: {
|
|
80
|
+
backgroundColor: l.background || ""
|
|
81
|
+
},
|
|
82
|
+
class: [
|
|
83
|
+
k.b("mask"),
|
|
84
|
+
l.customClass,
|
|
85
|
+
l.fullscreen ? "is-fullscreen" : ""
|
|
86
|
+
]
|
|
87
|
+
}, [
|
|
88
|
+
Ae("div", {
|
|
89
|
+
class: k.b("spinner")
|
|
90
|
+
}, [S, m])
|
|
91
|
+
]), [[_a, l.visible]])
|
|
92
|
+
])
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
}), c = Ua(o);
|
|
97
|
+
Object.assign(c._context, a ?? {});
|
|
98
|
+
const v = c.mount(document.createElement("div"));
|
|
99
|
+
return {
|
|
100
|
+
...Ra(l),
|
|
101
|
+
setText: t,
|
|
102
|
+
removeElLoadingChild: p,
|
|
103
|
+
close: u,
|
|
104
|
+
handleAfterLeave: n,
|
|
105
|
+
vm: v,
|
|
106
|
+
get $el() {
|
|
107
|
+
return v.$el;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
let Le;
|
|
112
|
+
const ve = function(e = {}) {
|
|
113
|
+
if (!ts)
|
|
114
|
+
return;
|
|
115
|
+
const a = gs(e);
|
|
116
|
+
if (a.fullscreen && Le)
|
|
117
|
+
return Le;
|
|
118
|
+
const s = hs({
|
|
119
|
+
...a,
|
|
120
|
+
closed: () => {
|
|
121
|
+
var l;
|
|
122
|
+
(l = a.closed) == null || l.call(a), a.fullscreen && (Le = void 0);
|
|
123
|
+
}
|
|
124
|
+
}, ve._context);
|
|
125
|
+
vs(a, a.parent, s), ea(a, a.parent, s), a.parent.vLoadingAddClassList = () => ea(a, a.parent, s);
|
|
126
|
+
let r = a.parent.getAttribute("loading-number");
|
|
127
|
+
return r ? r = `${Number.parseInt(r) + 1}` : r = "1", a.parent.setAttribute("loading-number", r), a.parent.appendChild(s.$el), da(() => s.visible.value = a.visible), a.fullscreen && (Le = s), s;
|
|
128
|
+
}, gs = (e) => {
|
|
129
|
+
var a, s, r, l;
|
|
130
|
+
let t;
|
|
131
|
+
return Aa(e.target) ? t = (a = document.querySelector(e.target)) != null ? a : document.body : t = e.target || document.body, {
|
|
132
|
+
parent: t === document.body || e.body ? document.body : t,
|
|
133
|
+
background: e.background || "",
|
|
134
|
+
svg: e.svg || "",
|
|
135
|
+
svgViewBox: e.svgViewBox || "",
|
|
136
|
+
spinner: e.spinner || !1,
|
|
137
|
+
text: e.text || "",
|
|
138
|
+
fullscreen: t === document.body && ((s = e.fullscreen) != null ? s : !0),
|
|
139
|
+
lock: (r = e.lock) != null ? r : !1,
|
|
140
|
+
customClass: e.customClass || "",
|
|
141
|
+
visible: (l = e.visible) != null ? l : !0,
|
|
142
|
+
beforeClose: e.beforeClose,
|
|
143
|
+
closed: e.closed,
|
|
144
|
+
target: t
|
|
145
|
+
};
|
|
146
|
+
}, vs = async (e, a, s) => {
|
|
147
|
+
const { nextZIndex: r } = s.vm.zIndex || s.vm._.exposed.zIndex, l = {};
|
|
148
|
+
if (e.fullscreen)
|
|
149
|
+
s.originalPosition.value = Se(document.body, "position"), s.originalOverflow.value = Se(document.body, "overflow"), l.zIndex = r();
|
|
150
|
+
else if (e.parent === document.body) {
|
|
151
|
+
s.originalPosition.value = Se(document.body, "position"), await da();
|
|
152
|
+
for (const t of ["top", "left"]) {
|
|
153
|
+
const i = t === "top" ? "scrollTop" : "scrollLeft";
|
|
154
|
+
l[t] = `${e.target.getBoundingClientRect()[t] + document.body[i] + document.documentElement[i] - Number.parseInt(Se(document.body, `margin-${t}`), 10)}px`;
|
|
155
|
+
}
|
|
156
|
+
for (const t of ["height", "width"])
|
|
157
|
+
l[t] = `${e.target.getBoundingClientRect()[t]}px`;
|
|
158
|
+
} else
|
|
159
|
+
s.originalPosition.value = Se(a, "position");
|
|
160
|
+
for (const [t, i] of Object.entries(l))
|
|
161
|
+
s.$el.style[t] = i;
|
|
162
|
+
}, ea = (e, a, s) => {
|
|
163
|
+
const r = s.vm.ns || s.vm._.exposed.ns;
|
|
164
|
+
["absolute", "fixed", "sticky"].includes(s.originalPosition.value) ? _e(a, r.bm("parent", "relative")) : Fe(a, r.bm("parent", "relative")), e.fullscreen && e.lock ? Fe(a, r.bm("parent", "hidden")) : _e(a, r.bm("parent", "hidden"));
|
|
165
|
+
};
|
|
166
|
+
ve._context = null;
|
|
167
|
+
const Be = Symbol("ElLoading"), aa = (e, a) => {
|
|
168
|
+
var s, r, l, t;
|
|
169
|
+
const i = a.instance, p = (y) => Sa(a.value) ? a.value[y] : void 0, u = (y) => {
|
|
170
|
+
const E = Aa(y) && (i == null ? void 0 : i[y]) || y;
|
|
171
|
+
return E && fe(E);
|
|
172
|
+
}, n = (y) => u(p(y) || e.getAttribute(`element-loading-${os(y)}`)), o = (s = p("fullscreen")) != null ? s : a.modifiers.fullscreen, c = {
|
|
173
|
+
text: n("text"),
|
|
174
|
+
svg: n("svg"),
|
|
175
|
+
svgViewBox: n("svgViewBox"),
|
|
176
|
+
spinner: n("spinner"),
|
|
177
|
+
background: n("background"),
|
|
178
|
+
customClass: n("customClass"),
|
|
179
|
+
fullscreen: o,
|
|
180
|
+
target: (r = p("target")) != null ? r : o ? void 0 : e,
|
|
181
|
+
body: (l = p("body")) != null ? l : a.modifiers.body,
|
|
182
|
+
lock: (t = p("lock")) != null ? t : a.modifiers.lock
|
|
183
|
+
}, v = ve(c);
|
|
184
|
+
v._context = Ke._context, e[Be] = {
|
|
185
|
+
options: c,
|
|
186
|
+
instance: v
|
|
187
|
+
};
|
|
188
|
+
}, ks = (e, a) => {
|
|
189
|
+
for (const s of Object.keys(a))
|
|
190
|
+
Ca(a[s]) && (a[s].value = e[s]);
|
|
191
|
+
}, Ke = {
|
|
192
|
+
mounted(e, a) {
|
|
193
|
+
a.value && aa(e, a);
|
|
194
|
+
},
|
|
195
|
+
updated(e, a) {
|
|
196
|
+
const s = e[Be];
|
|
197
|
+
a.oldValue !== a.value && (a.value && !a.oldValue ? aa(e, a) : a.value && a.oldValue ? Sa(a.value) && ks(a.value, s.options) : s == null || s.instance.close());
|
|
198
|
+
},
|
|
199
|
+
unmounted(e) {
|
|
200
|
+
var a;
|
|
201
|
+
(a = e[Be]) == null || a.instance.close(), e[Be] = null;
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
Ke._context = null;
|
|
205
|
+
const As = {
|
|
206
|
+
install(e) {
|
|
207
|
+
ve._context = e._context, Ke._context = e._context, e.directive("loading", Ke), e.config.globalProperties.$loading = ve;
|
|
208
|
+
},
|
|
209
|
+
directive: Ke,
|
|
210
|
+
service: ve
|
|
211
|
+
};
|
|
212
|
+
Re();
|
|
213
|
+
const Ss = (e, a) => {
|
|
214
|
+
var r;
|
|
215
|
+
return (r = va(d(e))) == null ? void 0 : r.map((l) => {
|
|
216
|
+
var t, i, p, u;
|
|
217
|
+
if (e.comp === "Table")
|
|
218
|
+
return {
|
|
219
|
+
key: {
|
|
220
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
221
|
+
pageKey: a.name,
|
|
222
|
+
type: "structure",
|
|
223
|
+
version: 1,
|
|
224
|
+
parentTable: (l == null ? void 0 : l.parentTableContents) ?? ""
|
|
225
|
+
},
|
|
226
|
+
value: {
|
|
227
|
+
pageData: {
|
|
228
|
+
comp: (t = ye(d(l))) == null ? void 0 : t.comp,
|
|
229
|
+
compData: (i = ye(d(l))) == null ? void 0 : i.compData,
|
|
230
|
+
name: (p = ye(d(l))) == null ? void 0 : p.name
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
if ((l == null ? void 0 : l.key) === "extraButton") {
|
|
235
|
+
if (((u = Object.values(l == null ? void 0 : l.value)) == null ? void 0 : u.length) !== 0)
|
|
236
|
+
return {
|
|
237
|
+
key: {
|
|
238
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
239
|
+
pageKey: a.name,
|
|
240
|
+
type: "structureMethod",
|
|
241
|
+
version: 1
|
|
242
|
+
},
|
|
243
|
+
value: {
|
|
244
|
+
pageData: l.value
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
} else
|
|
248
|
+
return {
|
|
249
|
+
key: {
|
|
250
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
251
|
+
pageKey: a.name,
|
|
252
|
+
type: "structure",
|
|
253
|
+
version: 1,
|
|
254
|
+
parentTable: (l == null ? void 0 : l.parentTableContents) ?? ""
|
|
255
|
+
},
|
|
256
|
+
value: {
|
|
257
|
+
pageData: l
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
});
|
|
261
|
+
}, Ds = async (e) => {
|
|
262
|
+
var i, p, u;
|
|
263
|
+
let a = [], s = [], r = await ne({
|
|
264
|
+
key: {
|
|
265
|
+
type: "structure",
|
|
266
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
if (((i = r == null ? void 0 : r.data) == null ? void 0 : i.code) !== 200) return;
|
|
270
|
+
let l = /* @__PURE__ */ new Map(), t = (u = (p = r == null ? void 0 : r.data) == null ? void 0 : p.result) == null ? void 0 : u.filter((n) => {
|
|
271
|
+
var o;
|
|
272
|
+
return ((o = n == null ? void 0 : n.key) == null ? void 0 : o.pageKey) !== "menu";
|
|
273
|
+
});
|
|
274
|
+
(t == null ? void 0 : t.length) === 0 || t == null || t.forEach((n) => {
|
|
275
|
+
l[n.key.pageKey] = {
|
|
276
|
+
id: n == null ? void 0 : n.id,
|
|
277
|
+
contents: n == null ? void 0 : n.value
|
|
278
|
+
};
|
|
279
|
+
}), e == null || e.map(async (n) => {
|
|
280
|
+
var o;
|
|
281
|
+
await ((o = n.compData) == null ? void 0 : o.forEach(async (c) => {
|
|
282
|
+
var y, E, k;
|
|
283
|
+
const v = (y = d(c == null ? void 0 : c.contents)) == null ? void 0 : y.map((A) => {
|
|
284
|
+
if (!Array.isArray(A)) {
|
|
285
|
+
const D = Ss(d(A), n);
|
|
286
|
+
return D == null ? void 0 : D[0];
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
if (s.push({
|
|
290
|
+
parentKey: qa((E = d(n)) == null ? void 0 : E.name),
|
|
291
|
+
content: v
|
|
292
|
+
}), (v == null ? void 0 : v.length) > 0) {
|
|
293
|
+
const A = await Oe({
|
|
294
|
+
dataList: v
|
|
295
|
+
});
|
|
296
|
+
a.push(A);
|
|
297
|
+
}
|
|
298
|
+
(k = c.contents) == null || k.map(async (A) => {
|
|
299
|
+
var D;
|
|
300
|
+
Array.isArray(A) || (D = va(d(A))) == null || D.forEach(async (S) => {
|
|
301
|
+
var m, P, C, J, H, R, O;
|
|
302
|
+
if (A.comp === "Table") {
|
|
303
|
+
const g = (H = (J = (await ne({
|
|
304
|
+
key: {
|
|
305
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
306
|
+
pageKey: n.name,
|
|
307
|
+
type: "structure",
|
|
308
|
+
version: 1,
|
|
309
|
+
parentTable: (S == null ? void 0 : S.parentTableContents) ?? ""
|
|
310
|
+
},
|
|
311
|
+
value: {
|
|
312
|
+
pageData: {
|
|
313
|
+
comp: (m = ye(d(S))) == null ? void 0 : m.comp,
|
|
314
|
+
compData: (P = ye(d(S))) == null ? void 0 : P.compData,
|
|
315
|
+
name: (C = ye(d(S))) == null ? void 0 : C.name
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
})).data.result) == null ? void 0 : J[0]) == null ? void 0 : H.id, T = (R = Xe(d(S))) == null ? void 0 : R.map((U) => {
|
|
319
|
+
var I, q, ee, Q;
|
|
320
|
+
if ((U == null ? void 0 : U.length) !== 0)
|
|
321
|
+
return {
|
|
322
|
+
key: {
|
|
323
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
324
|
+
pageKey: n.name,
|
|
325
|
+
type: "data",
|
|
326
|
+
tableId: g
|
|
327
|
+
},
|
|
328
|
+
value: {
|
|
329
|
+
tableData: ze(U, (Q = Ze((ee = (q = (I = ye(d(S))) == null ? void 0 : I.compData) == null ? void 0 : q.find((W) => (W == null ? void 0 : W.key) === "header")) == null ? void 0 : ee.contents)) == null ? void 0 : Q.filter((W) => W !== "操作"))
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
}), _ = await Oe({
|
|
333
|
+
dataList: T
|
|
334
|
+
});
|
|
335
|
+
a.push(_);
|
|
336
|
+
const G = await ((O = Xe(d(S))) == null ? void 0 : O.map(async (U) => {
|
|
337
|
+
var Q, W, te, ae, oe;
|
|
338
|
+
let I;
|
|
339
|
+
return (U == null ? void 0 : U.length) !== 0 && (I = await ne({
|
|
340
|
+
key: {
|
|
341
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
342
|
+
pageKey: n.name,
|
|
343
|
+
type: "data",
|
|
344
|
+
tableId: g
|
|
345
|
+
},
|
|
346
|
+
value: {
|
|
347
|
+
tableData: ze(U, (ae = Ze((te = (W = (Q = ye(d(S))) == null ? void 0 : Q.compData) == null ? void 0 : W.find((j) => (j == null ? void 0 : j.key) === "header")) == null ? void 0 : te.contents)) == null ? void 0 : ae.filter((j) => j !== "操作"))
|
|
348
|
+
}
|
|
349
|
+
})), await ((oe = (await ne({
|
|
350
|
+
key: {
|
|
351
|
+
parentTable: U,
|
|
352
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
353
|
+
pageKey: n.name,
|
|
354
|
+
type: "structure"
|
|
355
|
+
}
|
|
356
|
+
})).data.result) == null ? void 0 : oe.map(async (j) => {
|
|
357
|
+
var Y, se;
|
|
358
|
+
return await Ee({
|
|
359
|
+
id: j.id,
|
|
360
|
+
key: {
|
|
361
|
+
systemKey: j.key.systemKey,
|
|
362
|
+
pageKey: j.key.pageKey,
|
|
363
|
+
type: j.key.type,
|
|
364
|
+
version: j.key.version,
|
|
365
|
+
parentTable: j.key.parentTable === "" ? "" : (se = (Y = I.data.result) == null ? void 0 : Y[0]) == null ? void 0 : se.id
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
}));
|
|
369
|
+
}));
|
|
370
|
+
a.push(G);
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
}));
|
|
375
|
+
}), await Promise.all(a);
|
|
376
|
+
}, De = (e) => {
|
|
377
|
+
var r;
|
|
378
|
+
let a = "", s = [];
|
|
379
|
+
return (r = d(e).split("/")) == null || r.forEach((l, t) => {
|
|
380
|
+
t !== d(e).split("/").length - 1 && s.push(l);
|
|
381
|
+
}), s == null || s.forEach((l) => {
|
|
382
|
+
a = a === "" ? a + l : a + "/" + l;
|
|
383
|
+
}), a;
|
|
384
|
+
}, sa = (e, a) => {
|
|
385
|
+
var l;
|
|
386
|
+
let s = (l = e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.label) !== "操作")) == null ? void 0 : l.map((t) => t == null ? void 0 : t.label);
|
|
387
|
+
return a == null ? void 0 : a.map((t) => ze(t, s));
|
|
388
|
+
}, la = (e, a) => {
|
|
389
|
+
var s, r, l, t, i, p, u, n;
|
|
390
|
+
return ((r = (s = e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : s.contents) == null ? void 0 : r.length) === 0 ? sa((i = (t = (l = a == null ? void 0 : a.value) == null ? void 0 : l.compData) == null ? void 0 : t.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : i.contents, (p = e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.key) === "tableContents")) == null ? void 0 : p.contents) : sa((u = e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : u.contents, (n = e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.key) === "tableContents")) == null ? void 0 : n.contents);
|
|
391
|
+
}, ra = (e, a) => {
|
|
392
|
+
var r;
|
|
393
|
+
let s = d(e);
|
|
394
|
+
return s.compData = (r = d(s.compData)) == null ? void 0 : r.map((l) => ((l == null ? void 0 : l.key) === "formContent" && (l.contents = a == null ? void 0 : a.map((t) => {
|
|
395
|
+
var i, p;
|
|
396
|
+
return t.value = ((p = (i = l.contents) == null ? void 0 : i.find((u) => u.key === t.key)) == null ? void 0 : p.value) ?? "", t;
|
|
397
|
+
})), l)), s;
|
|
398
|
+
}, bs = async (e) => {
|
|
399
|
+
var i, p, u;
|
|
400
|
+
let a = (i = d(e)) == null ? void 0 : i.map((n) => n == null ? void 0 : n.path);
|
|
401
|
+
const s = await ne({
|
|
402
|
+
key: {
|
|
403
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
404
|
+
type: "structure"
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
if (s.data.code !== 200) return;
|
|
408
|
+
let r = /* @__PURE__ */ new Map();
|
|
409
|
+
(p = s.data.result) == null || p.forEach((n) => {
|
|
410
|
+
var c, v, y, E;
|
|
411
|
+
let o = [{
|
|
412
|
+
key: n == null ? void 0 : n.id,
|
|
413
|
+
name: ((v = (c = n == null ? void 0 : n.value) == null ? void 0 : c.pageData) == null ? void 0 : v.name) ?? "",
|
|
414
|
+
value: (y = n == null ? void 0 : n.value) == null ? void 0 : y.pageData
|
|
415
|
+
}];
|
|
416
|
+
r[n.key.pageKey] = ((E = r[n.key.pageKey]) == null ? void 0 : E.length) > 0 ? [...r[n.key.pageKey], ...o] : o;
|
|
417
|
+
});
|
|
418
|
+
let l = /* @__PURE__ */ new Map();
|
|
419
|
+
a == null || a.forEach((n) => {
|
|
420
|
+
r[n] && (l[n] = r[n]);
|
|
421
|
+
});
|
|
422
|
+
let t = d(e);
|
|
423
|
+
t = (u = d(t)) == null ? void 0 : u.map((n) => {
|
|
424
|
+
var c, v, y, E;
|
|
425
|
+
let o = (c = d(n)) == null ? void 0 : c.key;
|
|
426
|
+
return o.tableId = (y = (v = l[n == null ? void 0 : n.path]) == null ? void 0 : v.find((k) => {
|
|
427
|
+
var A;
|
|
428
|
+
return (k == null ? void 0 : k.name) === ((A = d(n)) == null ? void 0 : A.name);
|
|
429
|
+
})) == null ? void 0 : y.key, n = {
|
|
430
|
+
key: o,
|
|
431
|
+
value: (E = d(n)) == null ? void 0 : E.value
|
|
432
|
+
}, n;
|
|
433
|
+
}), t.length !== 0 && await Oe({
|
|
434
|
+
dataList: t
|
|
435
|
+
});
|
|
436
|
+
}, Te = (e, a) => {
|
|
437
|
+
var s, r, l, t, i, p, u, n, o, c, v, y, E, k, A;
|
|
438
|
+
if (((r = (s = d(e)) == null ? void 0 : s.filter((D) => {
|
|
439
|
+
var S;
|
|
440
|
+
return (D == null ? void 0 : D.name) === ((S = d(a)) == null ? void 0 : S.name);
|
|
441
|
+
})) == null ? void 0 : r.length) === 1)
|
|
442
|
+
return {
|
|
443
|
+
contents: (u = (p = (i = (t = (l = d(e)) == null ? void 0 : l.find((D) => {
|
|
444
|
+
var S;
|
|
445
|
+
return (D == null ? void 0 : D.name) === ((S = d(a)) == null ? void 0 : S.name);
|
|
446
|
+
})) == null ? void 0 : t.value) == null ? void 0 : i.compData) == null ? void 0 : p.find((D) => (D == null ? void 0 : D.key) === "formContent")) == null ? void 0 : u.contents,
|
|
447
|
+
key: (o = (n = d(e)) == null ? void 0 : n.find((D) => {
|
|
448
|
+
var S;
|
|
449
|
+
return (D == null ? void 0 : D.name) === ((S = d(a)) == null ? void 0 : S.name);
|
|
450
|
+
})) == null ? void 0 : o.key
|
|
451
|
+
};
|
|
452
|
+
{
|
|
453
|
+
let D, S, m = (E = (y = (v = (c = d(a)) == null ? void 0 : c.compData) == null ? void 0 : v.find((P) => (P == null ? void 0 : P.key) === "formContent")) == null ? void 0 : y.contents) == null ? void 0 : E.map((P) => P == null ? void 0 : P.key);
|
|
454
|
+
return (A = (k = d(e)) == null ? void 0 : k.filter((P) => {
|
|
455
|
+
var C;
|
|
456
|
+
return (P == null ? void 0 : P.name) === ((C = d(a)) == null ? void 0 : C.name);
|
|
457
|
+
})) == null || A.forEach((P) => {
|
|
458
|
+
var J, H, R, O, x, g, T, _;
|
|
459
|
+
let C = (x = (O = (R = (H = (J = d(P)) == null ? void 0 : J.value) == null ? void 0 : H.compData) == null ? void 0 : R.find((G) => (G == null ? void 0 : G.key) === "formContent")) == null ? void 0 : O.contents) == null ? void 0 : x.map((G) => G == null ? void 0 : G.key);
|
|
460
|
+
m.every((G) => C.includes(G)) && (D = (_ = (T = (g = P == null ? void 0 : P.value) == null ? void 0 : g.compData) == null ? void 0 : T.find((G) => (G == null ? void 0 : G.key) === "formContent")) == null ? void 0 : _.contents, S = P == null ? void 0 : P.key);
|
|
461
|
+
}), {
|
|
462
|
+
contents: D,
|
|
463
|
+
key: S
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
}, Ks = async (e) => {
|
|
467
|
+
var u, n, o;
|
|
468
|
+
let a = [];
|
|
469
|
+
(u = d(e)) == null || u.forEach((c) => {
|
|
470
|
+
a.push(c.name);
|
|
471
|
+
let v = De(d(c.name));
|
|
472
|
+
v !== "" && a.push(v);
|
|
473
|
+
}), a = [...new Set(a)];
|
|
474
|
+
const s = await ne({
|
|
475
|
+
key: {
|
|
476
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
477
|
+
type: "structure"
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
if (s.data.code !== 200) return;
|
|
481
|
+
let r = /* @__PURE__ */ new Map();
|
|
482
|
+
(n = s.data.result) == null || n.forEach((c) => {
|
|
483
|
+
var y, E, k, A;
|
|
484
|
+
let v = [{
|
|
485
|
+
key: c == null ? void 0 : c.id,
|
|
486
|
+
name: ((E = (y = c == null ? void 0 : c.value) == null ? void 0 : y.pageData) == null ? void 0 : E.name) ?? "",
|
|
487
|
+
value: (k = c == null ? void 0 : c.value) == null ? void 0 : k.pageData
|
|
488
|
+
}];
|
|
489
|
+
r[c.key.pageKey] = ((A = r[c.key.pageKey]) == null ? void 0 : A.length) > 0 ? [...r[c.key.pageKey], ...v] : v;
|
|
490
|
+
});
|
|
491
|
+
let l = /* @__PURE__ */ new Map();
|
|
492
|
+
for (let c in r)
|
|
493
|
+
a != null && a.find((v) => v === c) && (l[c] = r[c]);
|
|
494
|
+
let t = [], i = [], p = [];
|
|
495
|
+
(o = d(e)) == null || o.forEach((c) => {
|
|
496
|
+
var v, y;
|
|
497
|
+
l != null && l[c.name] ? (v = c == null ? void 0 : c.compData) == null || v.forEach((E) => {
|
|
498
|
+
var k;
|
|
499
|
+
(k = E == null ? void 0 : E.contents) == null || k.forEach((A) => {
|
|
500
|
+
var D, S, m, P, C, J, H;
|
|
501
|
+
if ((A == null ? void 0 : A.comp) === "Table") {
|
|
502
|
+
let R = la((D = d(A)) == null ? void 0 : D.compData, (S = d(l == null ? void 0 : l[c.name])) == null ? void 0 : S.find((O) => (O == null ? void 0 : O.name) === (A == null ? void 0 : A.name)));
|
|
503
|
+
R == null || R.forEach((O) => {
|
|
504
|
+
var x, g;
|
|
505
|
+
i.push({
|
|
506
|
+
key: {
|
|
507
|
+
type: "data",
|
|
508
|
+
pageKey: c == null ? void 0 : c.name,
|
|
509
|
+
tableId: (g = (x = l == null ? void 0 : l[c.name]) == null ? void 0 : x.find((T) => (T == null ? void 0 : T.name) === (A == null ? void 0 : A.name))) == null ? void 0 : g.key,
|
|
510
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
511
|
+
},
|
|
512
|
+
value: {
|
|
513
|
+
tableData: O
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
});
|
|
517
|
+
} else if ((P = Te((m = d(l)) == null ? void 0 : m[c.name], d(A))) != null && P.contents) {
|
|
518
|
+
let R = ra(d(A), (C = Te(l == null ? void 0 : l[c.name], d(A))) == null ? void 0 : C.contents);
|
|
519
|
+
t != null && t.find((O) => {
|
|
520
|
+
var x, g;
|
|
521
|
+
return (O == null ? void 0 : O.id) === ((g = Te((x = d(l)) == null ? void 0 : x[c.name], d(A))) == null ? void 0 : g.key);
|
|
522
|
+
}) || t.push({
|
|
523
|
+
id: (H = Te((J = d(l)) == null ? void 0 : J[c.name], d(A))) == null ? void 0 : H.key,
|
|
524
|
+
value: {
|
|
525
|
+
pageData: R
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
});
|
|
530
|
+
}) : l != null && l[De(c.name)] && ((y = c == null ? void 0 : c.compData) == null || y.forEach((E) => {
|
|
531
|
+
var k;
|
|
532
|
+
(k = E == null ? void 0 : E.contents) == null || k.forEach((A) => {
|
|
533
|
+
var D, S, m, P, C, J, H, R, O;
|
|
534
|
+
if ((A == null ? void 0 : A.comp) === "Table") {
|
|
535
|
+
let x = (S = (D = l == null ? void 0 : l[De(c.name)]) == null ? void 0 : D.find((T) => (T == null ? void 0 : T.name) === (A == null ? void 0 : A.name))) == null ? void 0 : S.value;
|
|
536
|
+
i.push({
|
|
537
|
+
key: {
|
|
538
|
+
type: "structure",
|
|
539
|
+
pageKey: c == null ? void 0 : c.name,
|
|
540
|
+
parentTable: "",
|
|
541
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
542
|
+
version: 1
|
|
543
|
+
},
|
|
544
|
+
value: {
|
|
545
|
+
pageData: x
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
let g = la((m = d(A)) == null ? void 0 : m.compData, (P = d(l == null ? void 0 : l[De(c.name)])) == null ? void 0 : P.find((T) => (T == null ? void 0 : T.name) === (A == null ? void 0 : A.name)));
|
|
549
|
+
g == null || g.forEach((T) => {
|
|
550
|
+
p.push({
|
|
551
|
+
name: A.name,
|
|
552
|
+
path: c.name,
|
|
553
|
+
key: {
|
|
554
|
+
type: "data",
|
|
555
|
+
pageKey: c == null ? void 0 : c.name,
|
|
556
|
+
tableId: "",
|
|
557
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
558
|
+
},
|
|
559
|
+
value: {
|
|
560
|
+
tableData: T
|
|
561
|
+
}
|
|
562
|
+
});
|
|
563
|
+
});
|
|
564
|
+
} else {
|
|
565
|
+
let x = ra(d(A), (O = (R = (H = (J = (C = d(l == null ? void 0 : l[De(c.name)])) == null ? void 0 : C.find((g) => (g == null ? void 0 : g.name) === (A == null ? void 0 : A.name))) == null ? void 0 : J.value) == null ? void 0 : H.compData) == null ? void 0 : R.find((g) => (g == null ? void 0 : g.key) === "formContent")) == null ? void 0 : O.contents);
|
|
566
|
+
i.push({
|
|
567
|
+
key: {
|
|
568
|
+
type: "structure",
|
|
569
|
+
pageKey: c == null ? void 0 : c.name,
|
|
570
|
+
parentTable: "",
|
|
571
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
572
|
+
version: 1
|
|
573
|
+
},
|
|
574
|
+
value: {
|
|
575
|
+
pageData: x
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
}));
|
|
581
|
+
}), i.length !== 0 && (await Oe({
|
|
582
|
+
dataList: i
|
|
583
|
+
}), p.length !== 0 && await bs(p), t.length !== 0 && await Ga({
|
|
584
|
+
dataList: t
|
|
585
|
+
}));
|
|
586
|
+
}, Da = Re(), qe = (e) => e == null ? void 0 : e.map((a) => (a.contents && (a.contents = a.contents.filter((s) => {
|
|
587
|
+
var r;
|
|
588
|
+
return ((r = s.comp) == null ? void 0 : r.toUpperCase()) !== "CALCULATOR";
|
|
589
|
+
})), a.compData && (a.compData = qe(a.compData)), a)), Es = async (e) => {
|
|
590
|
+
var s, r, l, t, i, p, u, n, o, c, v, y, E, k, A, D, S, m, P, C, J, H, R;
|
|
591
|
+
const a = await ne({
|
|
592
|
+
key: {
|
|
593
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
594
|
+
layer: "superAdmin"
|
|
595
|
+
}
|
|
596
|
+
});
|
|
597
|
+
if ((e == null ? void 0 : e.length) === 0) {
|
|
598
|
+
if (((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) === 200 && (t = (l = (r = a == null ? void 0 : a.data) == null ? void 0 : r.result) == null ? void 0 : l[0]) != null && t.id) {
|
|
599
|
+
const O = (p = (i = a == null ? void 0 : a.data) == null ? void 0 : i.result) == null ? void 0 : p[0], x = (o = (n = (u = a == null ? void 0 : a.data) == null ? void 0 : u.result) == null ? void 0 : n[0]) == null ? void 0 : o.key;
|
|
600
|
+
x.systemType = "管理系统", await Ee({
|
|
601
|
+
id: O == null ? void 0 : O.id,
|
|
602
|
+
key: x
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
try {
|
|
608
|
+
if (((c = a == null ? void 0 : a.data) == null ? void 0 : c.code) === 200 && (E = (y = (v = a == null ? void 0 : a.data) == null ? void 0 : v.result) == null ? void 0 : y[0]) != null && E.id) {
|
|
609
|
+
const O = (A = (k = a == null ? void 0 : a.data) == null ? void 0 : k.result) == null ? void 0 : A[0], x = (m = (S = (D = a == null ? void 0 : a.data) == null ? void 0 : D.result) == null ? void 0 : S[0]) == null ? void 0 : m.key, g = (P = d(e)) == null ? void 0 : P.map((T) => {
|
|
610
|
+
var _;
|
|
611
|
+
return (_ = T.compData) == null ? void 0 : _[0];
|
|
612
|
+
});
|
|
613
|
+
x.systemType = (J = (C = g == null ? void 0 : g.find((T) => (T == null ? void 0 : T.key) === "type")) == null ? void 0 : C.contents) == null ? void 0 : J[0], x.name = (R = (H = g == null ? void 0 : g.find((T) => (T == null ? void 0 : T.key) === "name")) == null ? void 0 : H.contents) == null ? void 0 : R[0], await Ee({
|
|
614
|
+
id: O == null ? void 0 : O.id,
|
|
615
|
+
key: x
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
} catch (O) {
|
|
619
|
+
return Promise.reject(O);
|
|
620
|
+
}
|
|
621
|
+
}, na = async (e) => {
|
|
622
|
+
var a, s, r, l;
|
|
623
|
+
try {
|
|
624
|
+
const t = await Ce({
|
|
625
|
+
key: {
|
|
626
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
627
|
+
pageKey: "menu",
|
|
628
|
+
type: "structure"
|
|
629
|
+
},
|
|
630
|
+
value: {
|
|
631
|
+
pageData: e
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
if (((a = t == null ? void 0 : t.data) == null ? void 0 : a.code) === 200) {
|
|
635
|
+
const i = (r = (s = e == null ? void 0 : e.compData) == null ? void 0 : s[0]) == null ? void 0 : r.contents;
|
|
636
|
+
Da.setRawMenus(i ?? []);
|
|
637
|
+
}
|
|
638
|
+
return (l = t == null ? void 0 : t.data) == null ? void 0 : l.code;
|
|
639
|
+
} catch (t) {
|
|
640
|
+
return Promise.reject(t);
|
|
641
|
+
}
|
|
642
|
+
}, ws = async () => {
|
|
643
|
+
var e, a, s, r, l, t, i, p;
|
|
644
|
+
try {
|
|
645
|
+
const u = await ne({
|
|
646
|
+
key: {
|
|
647
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
648
|
+
pageKey: "menu",
|
|
649
|
+
type: "structure"
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
return ((e = u == null ? void 0 : u.data) == null ? void 0 : e.code) === 200 && ((r = (s = (a = u == null ? void 0 : u.data) == null ? void 0 : a.result) == null ? void 0 : s[0]) != null && r.id) && await ha({
|
|
653
|
+
id: (i = (t = (l = u == null ? void 0 : u.data) == null ? void 0 : l.result) == null ? void 0 : t[0]) == null ? void 0 : i.id
|
|
654
|
+
}), (p = u == null ? void 0 : u.data) == null ? void 0 : p.code;
|
|
655
|
+
} catch (u) {
|
|
656
|
+
return Promise.reject(u);
|
|
657
|
+
}
|
|
658
|
+
}, Ms = async (e, a) => {
|
|
659
|
+
var s, r, l, t;
|
|
660
|
+
try {
|
|
661
|
+
const i = await Ee({
|
|
662
|
+
id: e,
|
|
663
|
+
value: {
|
|
664
|
+
pageData: a
|
|
665
|
+
}
|
|
666
|
+
});
|
|
667
|
+
if (((s = i == null ? void 0 : i.data) == null ? void 0 : s.code) === 200) {
|
|
668
|
+
const p = (l = (r = a == null ? void 0 : a.compData) == null ? void 0 : r[0]) == null ? void 0 : l.contents;
|
|
669
|
+
Da.setRawMenus(p ?? []);
|
|
670
|
+
}
|
|
671
|
+
return (t = i == null ? void 0 : i.data) == null ? void 0 : t.code;
|
|
672
|
+
} catch (i) {
|
|
673
|
+
return Promise.reject(i);
|
|
674
|
+
}
|
|
675
|
+
}, Ps = async () => {
|
|
676
|
+
var e;
|
|
677
|
+
try {
|
|
678
|
+
const a = Fa(), s = await Ce({
|
|
679
|
+
key: {
|
|
680
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
681
|
+
pageKey: "secret",
|
|
682
|
+
type: "system"
|
|
683
|
+
},
|
|
684
|
+
value: {
|
|
685
|
+
cryptoInfo: {
|
|
686
|
+
publicKey: a.publicKey,
|
|
687
|
+
privateKey: a.privateKey
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
return ((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 200;
|
|
692
|
+
} catch (a) {
|
|
693
|
+
throw a;
|
|
694
|
+
}
|
|
695
|
+
}, Is = async () => {
|
|
696
|
+
var a, s, r;
|
|
697
|
+
const e = await ne({
|
|
698
|
+
key: {
|
|
699
|
+
type: "structure",
|
|
700
|
+
pageKey: "menu",
|
|
701
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
return !(((a = e == null ? void 0 : e.data) == null ? void 0 : a.code) === 200 && ((r = (s = e == null ? void 0 : e.data) == null ? void 0 : s.result) == null ? void 0 : r.length) > 0);
|
|
705
|
+
}, Ns = async () => {
|
|
706
|
+
var a, s, r;
|
|
707
|
+
const e = await ne({
|
|
708
|
+
key: {
|
|
709
|
+
type: "system",
|
|
710
|
+
pageKey: "secret",
|
|
711
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
return !(((a = e == null ? void 0 : e.data) == null ? void 0 : a.code) === 200 && ((r = (s = e == null ? void 0 : e.data) == null ? void 0 : s.result) == null ? void 0 : r.length) > 0);
|
|
715
|
+
}, bl = async (e) => {
|
|
716
|
+
var s, r;
|
|
717
|
+
let a = d(e);
|
|
718
|
+
if (a = [...a, es, as, ls, rs], sessionStorage.getItem("systemKey"))
|
|
719
|
+
if (e != null && e.find((l) => (l == null ? void 0 : l.comp) === "MenuTop")) {
|
|
720
|
+
const l = a == null ? void 0 : a.find((n) => n.comp === "Menu"), t = a == null ? void 0 : a.filter((n) => n.comp === "System"), i = await Is(), p = await Ns();
|
|
721
|
+
i && await na(l), await Es(t), p && Ps();
|
|
722
|
+
const u = (s = qe(d(a))) == null ? void 0 : s.filter((n) => {
|
|
723
|
+
var o, c, v;
|
|
724
|
+
return ((o = n == null ? void 0 : n.comp) == null ? void 0 : o.toUpperCase()) !== "MENU" && ((c = n == null ? void 0 : n.comp) == null ? void 0 : c.toUpperCase()) !== "MENUTOP" && ((v = n == null ? void 0 : n.comp) == null ? void 0 : v.toUpperCase()) !== "SYSTEM";
|
|
725
|
+
});
|
|
726
|
+
await Ds(u);
|
|
727
|
+
} else {
|
|
728
|
+
const l = a == null ? void 0 : a.find((i) => i.comp === "Menu");
|
|
729
|
+
await ws(), await na(l);
|
|
730
|
+
const t = (r = qe(d(a))) == null ? void 0 : r.filter((i) => {
|
|
731
|
+
var p, u, n;
|
|
732
|
+
return ((p = i == null ? void 0 : i.comp) == null ? void 0 : p.toUpperCase()) !== "MENU" && ((u = i == null ? void 0 : i.comp) == null ? void 0 : u.toUpperCase()) !== "MENUTOP" && ((n = i == null ? void 0 : i.comp) == null ? void 0 : n.toUpperCase()) !== "SYSTEM";
|
|
733
|
+
});
|
|
734
|
+
await Ks(t);
|
|
735
|
+
}
|
|
736
|
+
}, Kl = ya({
|
|
737
|
+
name: "menu",
|
|
738
|
+
components: {
|
|
739
|
+
ssMenu: Pa,
|
|
740
|
+
DynamicIcon: Ma
|
|
741
|
+
},
|
|
742
|
+
setup() {
|
|
743
|
+
const e = $a({
|
|
744
|
+
mode: {
|
|
745
|
+
type: String,
|
|
746
|
+
default: "vertical"
|
|
747
|
+
}
|
|
748
|
+
}), a = fe("sub-menu-more"), s = Re(), r = ka(Pe), l = fe(0), t = Ha(), {
|
|
749
|
+
rawMenus: i,
|
|
750
|
+
activeTopMenuPath: p,
|
|
751
|
+
isRefreshMenus: u,
|
|
752
|
+
menuTriggerType: n,
|
|
753
|
+
permissionSideMenus: o,
|
|
754
|
+
platform: c,
|
|
755
|
+
cacheInputMenu: v,
|
|
756
|
+
activeMainMenu: y
|
|
757
|
+
} = ke(s), E = ga(), { structureData: k } = ke(E), A = fe([]), D = fe([]), S = $e(() => e == null ? void 0 : e.mode), m = (f) => {
|
|
758
|
+
const h = As.service({
|
|
759
|
+
lock: !0,
|
|
760
|
+
text: "Loading",
|
|
761
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
762
|
+
});
|
|
763
|
+
f || h.close();
|
|
764
|
+
}, P = (f) => {
|
|
765
|
+
let h = [], K = [];
|
|
766
|
+
return f == null || f.forEach((b) => {
|
|
767
|
+
h = C(b, K);
|
|
768
|
+
}), h;
|
|
769
|
+
}, C = (f, h) => {
|
|
770
|
+
const K = h, b = [];
|
|
771
|
+
f == null || f.forEach((M) => {
|
|
772
|
+
Array.isArray(M) ? b.push({ children: C(M, []) }) : b.push({ title: M });
|
|
773
|
+
});
|
|
774
|
+
let w = b.reduce((M, z) => (Object.entries(z).forEach(([N, B]) => {
|
|
775
|
+
M[N] === void 0 ? B != null && B.title ? M[N] = [B] : M[N] = B : (Array.isArray(M[N]) || (M[N] = [{ title: M[N] }]), B != null && B.title || Array.isArray(B) ? M[N].push(B) : M[N].push({ title: B }));
|
|
776
|
+
}), M), {});
|
|
777
|
+
return w = J(d(w)), K.push(w), Array.isArray(K) && (K == null ? void 0 : K.length) > 1 ? K : K == null ? void 0 : K[0];
|
|
778
|
+
}, J = (f) => {
|
|
779
|
+
var h, K, b;
|
|
780
|
+
return Array.isArray(f == null ? void 0 : f.title) && ((h = f == null ? void 0 : f.title) == null ? void 0 : h.length) === ((b = (K = f == null ? void 0 : f.title) == null ? void 0 : K.filter((w) => w.title)) == null ? void 0 : b.length) ? f == null ? void 0 : f.title : Array.isArray(f == null ? void 0 : f.children) ? H(f) : f;
|
|
781
|
+
}, H = (f) => {
|
|
782
|
+
var K;
|
|
783
|
+
const h = f;
|
|
784
|
+
return h.children = (K = h.children) == null ? void 0 : K.map((b) => {
|
|
785
|
+
var w;
|
|
786
|
+
return (w = b == null ? void 0 : b.title) != null && w.children ? b == null ? void 0 : b.title : b;
|
|
787
|
+
}), h;
|
|
788
|
+
}, R = fe({}), O = (f) => f == null ? void 0 : f.map((h) => h.children && h.children.length > 0 ? {
|
|
789
|
+
...h,
|
|
790
|
+
// 水平菜单仅显示一层
|
|
791
|
+
children: h.level === 0 ? [] : h.children ?? [],
|
|
792
|
+
childMenus: O(h.children)
|
|
793
|
+
} : h), x = (f, h) => {
|
|
794
|
+
var K, b;
|
|
795
|
+
return h === 0 ? ((b = (K = D.value) == null ? void 0 : K.find((w) => {
|
|
796
|
+
var M;
|
|
797
|
+
return (M = f.title) == null ? void 0 : M.includes(w.value);
|
|
798
|
+
})) == null ? void 0 : b.value) ?? "wenjianjia" : h === 1 ? "wenjianjia" : "wenjian";
|
|
799
|
+
}, g = (f) => {
|
|
800
|
+
var h, K;
|
|
801
|
+
return (K = (h = D.value) == null ? void 0 : h.find((b) => {
|
|
802
|
+
var w;
|
|
803
|
+
return (w = f.title) == null ? void 0 : w.includes(b.value);
|
|
804
|
+
})) == null ? void 0 : K.value;
|
|
805
|
+
}, T = (f, h = "", K = 0) => {
|
|
806
|
+
var z;
|
|
807
|
+
let b, w = d(f);
|
|
808
|
+
const M = (z = k.value) == null ? void 0 : z.map((N) => {
|
|
809
|
+
var B;
|
|
810
|
+
return (B = N == null ? void 0 : N.key) == null ? void 0 : B.pageKey;
|
|
811
|
+
});
|
|
812
|
+
return Array.isArray(w) || (w = [w]), b = w == null ? void 0 : w.map((N) => {
|
|
813
|
+
const B = h ? `${h}/${N.title}` : N.title, Z = {
|
|
814
|
+
...N,
|
|
815
|
+
path: B,
|
|
816
|
+
level: K,
|
|
817
|
+
show: !0,
|
|
818
|
+
// icon: Icon[`${level}`],
|
|
819
|
+
icon: c.value === "client" ? x(N, K) : g(N),
|
|
820
|
+
carryData: M == null ? void 0 : M.includes(B),
|
|
821
|
+
//便于角色授权菜单那里给叶子节点添加按钮节点
|
|
822
|
+
isPenultimate: !N.children,
|
|
823
|
+
// 便于自定义新增菜单
|
|
824
|
+
children: [],
|
|
825
|
+
childMenus: []
|
|
826
|
+
};
|
|
827
|
+
return N.children && N.children.length > 0 && (Z.children = T(N.children, B, K + 1)), Z;
|
|
828
|
+
}), b;
|
|
829
|
+
}, _ = $e(() => {
|
|
830
|
+
let f = d(A.value);
|
|
831
|
+
if (f = [...f, ...o.value], (f == null ? void 0 : f.length) === 0)
|
|
832
|
+
return t.push("/"), [];
|
|
833
|
+
const h = L(f, oe.value);
|
|
834
|
+
h.isFlag || (f = h == null ? void 0 : h.data);
|
|
835
|
+
const K = O(f);
|
|
836
|
+
return s.setMenus(K), K;
|
|
837
|
+
}), G = async (f) => {
|
|
838
|
+
var w, M, z;
|
|
839
|
+
let h, K;
|
|
840
|
+
(f == null ? void 0 : f.level) === 0 ? K = {
|
|
841
|
+
key: {
|
|
842
|
+
type: "menuConfigData",
|
|
843
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
844
|
+
rootNodePath: f == null ? void 0 : f.path,
|
|
845
|
+
tableId: ""
|
|
846
|
+
}
|
|
847
|
+
} : K = {
|
|
848
|
+
key: {
|
|
849
|
+
type: "menuConfigData",
|
|
850
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
851
|
+
pageKey: "/平台管理/菜单管理/" + (f == null ? void 0 : f.path),
|
|
852
|
+
tableId: ""
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
const b = await ne(K);
|
|
856
|
+
return ((w = b == null ? void 0 : b.data) == null ? void 0 : w.code) === 200 && (h = (z = (M = b.data) == null ? void 0 : M.result) == null ? void 0 : z.map((N) => {
|
|
857
|
+
var B;
|
|
858
|
+
return {
|
|
859
|
+
id: N == null ? void 0 : N.id,
|
|
860
|
+
...(B = N == null ? void 0 : N.value) == null ? void 0 : B.tableData
|
|
861
|
+
};
|
|
862
|
+
}), (f == null ? void 0 : f.level) === 0 && (R.value = d(h), console.log(77782, R.value))), (h == null ? void 0 : h.length) > 0 ? h : null;
|
|
863
|
+
}, U = async (f, h) => {
|
|
864
|
+
var K, b;
|
|
865
|
+
if (!Array.isArray(h)) return f;
|
|
866
|
+
for (const w of h) {
|
|
867
|
+
let M = (w == null ? void 0 : w.path) === f.path;
|
|
868
|
+
if (console.log("findMatchingMenu", w, f), M)
|
|
869
|
+
return {
|
|
870
|
+
...f,
|
|
871
|
+
config: await G(f),
|
|
872
|
+
icon: (b = (K = w == null ? void 0 : w.data) == null ? void 0 : K.menuConfig) == null ? void 0 : b.menuIcon
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
return f;
|
|
876
|
+
}, I = fe(null), q = async (f, h = null) => await Promise.all(
|
|
877
|
+
f == null ? void 0 : f.map(async (K) => {
|
|
878
|
+
var M;
|
|
879
|
+
let b = await U(K, R.value);
|
|
880
|
+
console.log("recurseFormatAsideMenus", b, R.value);
|
|
881
|
+
const w = (b == null ? void 0 : b.config) ?? ((M = h == null ? void 0 : h.filter((z) => z.allowInherit)) == null ? void 0 : M.map((z) => {
|
|
882
|
+
var N, B;
|
|
883
|
+
return {
|
|
884
|
+
...z,
|
|
885
|
+
structureIds: (B = (N = h == null ? void 0 : h.find((Z) => {
|
|
886
|
+
var $;
|
|
887
|
+
return (($ = Z == null ? void 0 : Z.structureIds) == null ? void 0 : $.length) > 0;
|
|
888
|
+
})) == null ? void 0 : N.structureIds) == null ? void 0 : B.filter((Z) => (Z == null ? void 0 : Z.key) === "contentConfig")
|
|
889
|
+
};
|
|
890
|
+
}));
|
|
891
|
+
return b != null && b.childMenus && (b == null ? void 0 : b.childMenus.length) > 0 && (b = {
|
|
892
|
+
...b,
|
|
893
|
+
config: w,
|
|
894
|
+
children: await q(K == null ? void 0 : K.childMenus, w),
|
|
895
|
+
childMenus: await q(K == null ? void 0 : K.childMenus, w)
|
|
896
|
+
}), {
|
|
897
|
+
...b,
|
|
898
|
+
config: w
|
|
899
|
+
};
|
|
900
|
+
})
|
|
901
|
+
), ee = async (f) => {
|
|
902
|
+
var K;
|
|
903
|
+
const h = await ne({
|
|
904
|
+
key: {
|
|
905
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
906
|
+
// pageKey: '平台管理/菜单管理/' + menu?.path,
|
|
907
|
+
type: "structure",
|
|
908
|
+
rootNodePath: f == null ? void 0 : f.path,
|
|
909
|
+
structureBelong: "dialogConfig",
|
|
910
|
+
parentTable: "",
|
|
911
|
+
version: 1
|
|
912
|
+
}
|
|
913
|
+
});
|
|
914
|
+
if (((K = h == null ? void 0 : h.data) == null ? void 0 : K.code) === 200) {
|
|
915
|
+
I.value = null;
|
|
916
|
+
const b = d(h.data.result);
|
|
917
|
+
return (b == null ? void 0 : b.length) === 0 ? b : await q(f.childMenus);
|
|
918
|
+
}
|
|
919
|
+
}, Q = async (f) => {
|
|
920
|
+
var h, K, b;
|
|
921
|
+
if (s.setMenuTriggerType("click"), r.setRouteToChildPath(""), s.setActiveTopMenuPath(f == null ? void 0 : f.path), s.setActiveMainMenu(f), await G(f), I.value = null, f != null && f.childMenus && ((h = f == null ? void 0 : f.childMenus) == null ? void 0 : h.length) > 0) {
|
|
922
|
+
const w = (b = (K = f == null ? void 0 : f.childMenus) == null ? void 0 : K[0]) == null ? void 0 : b.path;
|
|
923
|
+
s.setActiveMenuPath(w);
|
|
924
|
+
const M = await ee(f);
|
|
925
|
+
console.log(666, M);
|
|
926
|
+
const z = (M == null ? void 0 : M.length) === 0 ? f == null ? void 0 : f.childMenus : M;
|
|
927
|
+
s.setAsideMenus(z);
|
|
928
|
+
} else
|
|
929
|
+
s.setAsideMenus([]);
|
|
930
|
+
f.isRouter ? t.push(f.path) : t.push("/");
|
|
931
|
+
}, W = (f) => {
|
|
932
|
+
r.setRouteToChildPath(""), n.value === "click" ? l.value === 1 ? s.setActiveMenuPath(sessionStorage.getItem("pageKey")) : f !== a.value && s.setActiveMenuPath(f) : s.setMenuTriggerType("click"), f != null && f.startsWith("/") ? t.push(f) : t.push("/"), l.value++;
|
|
933
|
+
}, te = (f) => {
|
|
934
|
+
f !== a.value && s.setActiveMenuPath(f);
|
|
935
|
+
}, ae = (f) => {
|
|
936
|
+
const h = document.documentElement;
|
|
937
|
+
f == null || f.forEach((K) => {
|
|
938
|
+
h.style.setProperty(K.name, K.value);
|
|
939
|
+
});
|
|
940
|
+
};
|
|
941
|
+
Ja(() => {
|
|
942
|
+
l.value = 1, D.value = za();
|
|
943
|
+
});
|
|
944
|
+
const oe = $e(() => {
|
|
945
|
+
const f = sessionStorage.getItem("authority");
|
|
946
|
+
return f ? JSON.parse(f) : [];
|
|
947
|
+
});
|
|
948
|
+
be(() => c.value, (f) => {
|
|
949
|
+
f === "browser" ? (ae(Ia), ae(Na)) : f === "client" && (ae(ja), ae(xa));
|
|
950
|
+
}, { immediate: !0 }), be(() => i.value, (f) => {
|
|
951
|
+
if (f) {
|
|
952
|
+
const h = f;
|
|
953
|
+
A.value = T(P(h));
|
|
954
|
+
} else
|
|
955
|
+
s.setActiveMenuPath("");
|
|
956
|
+
}, {
|
|
957
|
+
immediate: !0
|
|
958
|
+
});
|
|
959
|
+
const j = (f, h) => {
|
|
960
|
+
function K(b) {
|
|
961
|
+
b == null || b.forEach((w) => {
|
|
962
|
+
w.show = h == null ? void 0 : h.some((M) => M == null ? void 0 : M.includes(w.path)), w.children && K(w.children);
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
return K(f), f;
|
|
966
|
+
}, L = (f, h) => {
|
|
967
|
+
if (Array.isArray(h)) {
|
|
968
|
+
const K = Array.from(new Set(h == null ? void 0 : h.map((b) => b.substring(0, b.lastIndexOf("/")))));
|
|
969
|
+
return {
|
|
970
|
+
data: j(f, K),
|
|
971
|
+
isFlag: !1
|
|
972
|
+
};
|
|
973
|
+
} else
|
|
974
|
+
return {
|
|
975
|
+
isFlag: (h == null ? void 0 : h.toUpperCase()) === "SUPERADMIN"
|
|
976
|
+
};
|
|
977
|
+
}, Y = (f) => {
|
|
978
|
+
var K;
|
|
979
|
+
const h = [f == null ? void 0 : f.title];
|
|
980
|
+
if (f != null && f.children && ((K = f == null ? void 0 : f.children) == null ? void 0 : K.length) > 0) {
|
|
981
|
+
const b = f.children.map((w) => Y(w));
|
|
982
|
+
h.push(...b);
|
|
983
|
+
}
|
|
984
|
+
return h;
|
|
985
|
+
}, se = (f, h, K, b) => f.map((w) => {
|
|
986
|
+
var M, z;
|
|
987
|
+
if (w.path === K) {
|
|
988
|
+
const N = { ...w };
|
|
989
|
+
return console.log(7771, N, b), b === "create" ? N.children.push(h) : b === "update" ? N.children = (M = N.children) == null ? void 0 : M.map((B) => (B == null ? void 0 : B.path) === (h == null ? void 0 : h.path) ? h : B) : b === "delete" && (N.children = (z = N.children) == null ? void 0 : z.filter((B) => (B == null ? void 0 : B.path) !== (h == null ? void 0 : h.path))), N;
|
|
990
|
+
} else
|
|
991
|
+
return {
|
|
992
|
+
...w,
|
|
993
|
+
children: se(w.children, h, K, b)
|
|
994
|
+
// 递归更新子节点
|
|
995
|
+
};
|
|
996
|
+
}), X = async (f) => {
|
|
997
|
+
var K, b, w, M, z, N;
|
|
998
|
+
const h = (K = k.value) == null ? void 0 : K.find((B) => {
|
|
999
|
+
var Z;
|
|
1000
|
+
return ((Z = B == null ? void 0 : B.key) == null ? void 0 : Z.pageKey) === "menu";
|
|
1001
|
+
});
|
|
1002
|
+
if (h) {
|
|
1003
|
+
const B = {
|
|
1004
|
+
...(b = h.value) == null ? void 0 : b.pageData,
|
|
1005
|
+
compData: (z = (M = (w = h.value) == null ? void 0 : w.pageData) == null ? void 0 : M.compData) == null ? void 0 : z.map(($) => $.key === "menuContents" ? {
|
|
1006
|
+
...$,
|
|
1007
|
+
contents: f
|
|
1008
|
+
} : $)
|
|
1009
|
+
};
|
|
1010
|
+
await Ms(h == null ? void 0 : h.id, B);
|
|
1011
|
+
const Z = (N = _.value) == null ? void 0 : N.find(($) => ($ == null ? void 0 : $.path) === p.value);
|
|
1012
|
+
await Q(Z), m(!1), he.success("响应成功");
|
|
1013
|
+
}
|
|
1014
|
+
}, ce = async (f) => {
|
|
1015
|
+
var b, w, M, z, N;
|
|
1016
|
+
const h = await ne({
|
|
1017
|
+
id: f
|
|
1018
|
+
});
|
|
1019
|
+
let K;
|
|
1020
|
+
return ((b = h == null ? void 0 : h.data) == null ? void 0 : b.code) === 200 && (K = (N = (z = (M = (w = h == null ? void 0 : h.data) == null ? void 0 : w.result) == null ? void 0 : M[0]) == null ? void 0 : z.value) == null ? void 0 : N.pageData, console.log(1829, h)), K;
|
|
1021
|
+
}, F = async (f) => {
|
|
1022
|
+
var N, B, Z;
|
|
1023
|
+
const h = (Z = (B = (N = f == null ? void 0 : f.config) == null ? void 0 : N.find(($) => ($ == null ? void 0 : $.operateType) === "新增")) == null ? void 0 : B.structureIds) == null ? void 0 : Z.filter(($) => ($ == null ? void 0 : $.key) === "contentConfig"), K = h == null ? void 0 : h.map(($) => $ == null ? void 0 : $.id);
|
|
1024
|
+
let b = [], w = [];
|
|
1025
|
+
K == null || K.forEach(($) => {
|
|
1026
|
+
$ && b.push(ce($));
|
|
1027
|
+
});
|
|
1028
|
+
const M = await Promise.all(b);
|
|
1029
|
+
M == null || M.forEach(($) => {
|
|
1030
|
+
$ && w.push(Ce({
|
|
1031
|
+
key: {
|
|
1032
|
+
pageKey: f == null ? void 0 : f.path,
|
|
1033
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
1034
|
+
parentTable: "",
|
|
1035
|
+
version: 1
|
|
1036
|
+
},
|
|
1037
|
+
value: {
|
|
1038
|
+
pageData: $
|
|
1039
|
+
}
|
|
1040
|
+
}));
|
|
1041
|
+
});
|
|
1042
|
+
const z = await Promise.all(w);
|
|
1043
|
+
console.log("handleStoreNewMenuStructure-0", M, z, f, K);
|
|
1044
|
+
};
|
|
1045
|
+
return be(() => u.value, async (f) => {
|
|
1046
|
+
var h, K, b, w, M, z, N, B, Z;
|
|
1047
|
+
if (f)
|
|
1048
|
+
try {
|
|
1049
|
+
const $ = (b = (K = (h = v.value) == null ? void 0 : h.data) == null ? void 0 : K.path) == null ? void 0 : b.split("/").slice(0, -1).join("/"), Ie = se(A.value, (w = v.value) == null ? void 0 : w.data, $, (M = v.value) == null ? void 0 : M.type), We = (z = Ie == null ? void 0 : Ie.filter((je) => je.path !== "系统管理" && je.path !== "平台管理")) == null ? void 0 : z.map((je) => Y(je));
|
|
1050
|
+
console.log(777, Ie, We, (N = v.value) == null ? void 0 : N.data), await F((B = v.value) == null ? void 0 : B.data), m(!0), await X(We);
|
|
1051
|
+
const Ne = await ee(y.value), wa = (Ne == null ? void 0 : Ne.length) === 0 ? (Z = y.value) == null ? void 0 : Z.childMenus : Ne;
|
|
1052
|
+
s.setAsideMenus(wa);
|
|
1053
|
+
} catch ($) {
|
|
1054
|
+
throw he.error($), new Error($);
|
|
1055
|
+
}
|
|
1056
|
+
}, { immediate: !0 }), {
|
|
1057
|
+
mode: S,
|
|
1058
|
+
renderMenuList: _,
|
|
1059
|
+
clickMenu: Q,
|
|
1060
|
+
openMenu: W,
|
|
1061
|
+
closeMenu: te,
|
|
1062
|
+
changeMenuStyle: ae
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
var me = { exports: {} }, js = me.exports, ta;
|
|
1067
|
+
function xs() {
|
|
1068
|
+
return ta || (ta = 1, function(e, a) {
|
|
1069
|
+
(function(s, r) {
|
|
1070
|
+
r();
|
|
1071
|
+
})(js, function() {
|
|
1072
|
+
function s(n, o) {
|
|
1073
|
+
return typeof o > "u" ? o = { autoBom: !1 } : typeof o != "object" && (console.warn("Deprecated: Expected third argument to be a object"), o = { autoBom: !o }), o.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type) ? new Blob(["\uFEFF", n], { type: n.type }) : n;
|
|
1074
|
+
}
|
|
1075
|
+
function r(n, o, c) {
|
|
1076
|
+
var v = new XMLHttpRequest();
|
|
1077
|
+
v.open("GET", n), v.responseType = "blob", v.onload = function() {
|
|
1078
|
+
u(v.response, o, c);
|
|
1079
|
+
}, v.onerror = function() {
|
|
1080
|
+
console.error("could not download file");
|
|
1081
|
+
}, v.send();
|
|
1082
|
+
}
|
|
1083
|
+
function l(n) {
|
|
1084
|
+
var o = new XMLHttpRequest();
|
|
1085
|
+
o.open("HEAD", n, !1);
|
|
1086
|
+
try {
|
|
1087
|
+
o.send();
|
|
1088
|
+
} catch {
|
|
1089
|
+
}
|
|
1090
|
+
return 200 <= o.status && 299 >= o.status;
|
|
1091
|
+
}
|
|
1092
|
+
function t(n) {
|
|
1093
|
+
try {
|
|
1094
|
+
n.dispatchEvent(new MouseEvent("click"));
|
|
1095
|
+
} catch {
|
|
1096
|
+
var o = document.createEvent("MouseEvents");
|
|
1097
|
+
o.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), n.dispatchEvent(o);
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
var i = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof xe == "object" && xe.global === xe ? xe : void 0, p = i.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = i.saveAs || (typeof window != "object" || window !== i ? function() {
|
|
1101
|
+
} : "download" in HTMLAnchorElement.prototype && !p ? function(n, o, c) {
|
|
1102
|
+
var v = i.URL || i.webkitURL, y = document.createElement("a");
|
|
1103
|
+
o = o || n.name || "download", y.download = o, y.rel = "noopener", typeof n == "string" ? (y.href = n, y.origin === location.origin ? t(y) : l(y.href) ? r(n, o, c) : t(y, y.target = "_blank")) : (y.href = v.createObjectURL(n), setTimeout(function() {
|
|
1104
|
+
v.revokeObjectURL(y.href);
|
|
1105
|
+
}, 4e4), setTimeout(function() {
|
|
1106
|
+
t(y);
|
|
1107
|
+
}, 0));
|
|
1108
|
+
} : "msSaveOrOpenBlob" in navigator ? function(n, o, c) {
|
|
1109
|
+
if (o = o || n.name || "download", typeof n != "string") navigator.msSaveOrOpenBlob(s(n, c), o);
|
|
1110
|
+
else if (l(n)) r(n, o, c);
|
|
1111
|
+
else {
|
|
1112
|
+
var v = document.createElement("a");
|
|
1113
|
+
v.href = n, v.target = "_blank", setTimeout(function() {
|
|
1114
|
+
t(v);
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
} : function(n, o, c, v) {
|
|
1118
|
+
if (v = v || open("", "_blank"), v && (v.document.title = v.document.body.innerText = "downloading..."), typeof n == "string") return r(n, o, c);
|
|
1119
|
+
var y = n.type === "application/octet-stream", E = /constructor/i.test(i.HTMLElement) || i.safari, k = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
1120
|
+
if ((k || y && E || p) && typeof FileReader < "u") {
|
|
1121
|
+
var A = new FileReader();
|
|
1122
|
+
A.onloadend = function() {
|
|
1123
|
+
var m = A.result;
|
|
1124
|
+
m = k ? m : m.replace(/^data:[^;]*;/, "data:attachment/file;"), v ? v.location.href = m : location = m, v = null;
|
|
1125
|
+
}, A.readAsDataURL(n);
|
|
1126
|
+
} else {
|
|
1127
|
+
var D = i.URL || i.webkitURL, S = D.createObjectURL(n);
|
|
1128
|
+
v ? v.location = S : location.href = S, v = null, setTimeout(function() {
|
|
1129
|
+
D.revokeObjectURL(S);
|
|
1130
|
+
}, 4e4);
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
i.saveAs = u.saveAs = u, e.exports = u;
|
|
1134
|
+
});
|
|
1135
|
+
}(me)), me.exports;
|
|
1136
|
+
}
|
|
1137
|
+
var Ls = xs();
|
|
1138
|
+
const Ts = ga(), { loginUserInfo: oa, cryptoInfo: ge } = ke(Ts), V = ka(Pe), {
|
|
1139
|
+
itemData: Bs,
|
|
1140
|
+
curStructureCompIds: ca,
|
|
1141
|
+
isSubmitCurStructure: ms,
|
|
1142
|
+
isRefreshCurStructure: Os,
|
|
1143
|
+
freshContent: ia
|
|
1144
|
+
} = ke(V), ba = Re(Pe), { activeMenuPath: ie, platform: ua, buttonTriggerType: _s } = ke(ba), ue = Ya(Pe), { selectTitle: de } = ke(ue);
|
|
1145
|
+
ss(Pe);
|
|
1146
|
+
const Us = (e, a) => {
|
|
1147
|
+
const s = new Va();
|
|
1148
|
+
e.forEach((r) => {
|
|
1149
|
+
s.file(r.name, r.content);
|
|
1150
|
+
}), s.generateAsync({ type: "blob" }).then((r) => {
|
|
1151
|
+
Ls.saveAs(r, `${a}.zip`);
|
|
1152
|
+
});
|
|
1153
|
+
}, El = () => {
|
|
1154
|
+
const e = [
|
|
1155
|
+
{ name: ua.value === "browser" ? "insoftest-SSIP.exe" : "insofrobot-TubeBending.exe", content: "欢迎使用" }
|
|
1156
|
+
], a = ua.value === "browser" ? "insoftest-SSIP" : "insofrobot-TubeBending";
|
|
1157
|
+
Us(e, a);
|
|
1158
|
+
}, wl = () => {
|
|
1159
|
+
V.setIsEdit("edit"), V.setSubmitCurStructure(ie.value !== "/平台管理/菜单管理");
|
|
1160
|
+
}, Ml = () => {
|
|
1161
|
+
V.setIsEdit("view"), V.setRefreshCurStructure(!0);
|
|
1162
|
+
}, Pl = async (e) => {
|
|
1163
|
+
var a;
|
|
1164
|
+
if ((e == null ? void 0 : e.key) === "main" || de.value.length === 1)
|
|
1165
|
+
le.value = await we(ie.value, sessionStorage.getItem("systemKey")), ue.setSelectIndex(""), ue.setSelectMenu(""), ue.setSelectTitle([]);
|
|
1166
|
+
else {
|
|
1167
|
+
const s = [], r = (e == null ? void 0 : e.key) === "" || !(e != null && e.key) ? "" : parseInt(e == null ? void 0 : e.key);
|
|
1168
|
+
le.value = await we(ie.value, sessionStorage.getItem("systemKey"), r);
|
|
1169
|
+
let l = -1;
|
|
1170
|
+
(a = de.value) == null || a.forEach((t, i) => {
|
|
1171
|
+
(t == null ? void 0 : t.key) === (e == null ? void 0 : e.key) && (l = i), (l === -1 || l >= i) && s.push(t);
|
|
1172
|
+
}), ue.setSelectTitle(s), r !== "" ? ue.setSelectMenu(e == null ? void 0 : e.key) : (ue.setSelectIndex(""), ue.setSelectMenu(""));
|
|
1173
|
+
}
|
|
1174
|
+
V.setItemData(le.value), V.setOriginalData(le.value);
|
|
1175
|
+
}, Je = async (e, a, s, r = "contentConfig") => {
|
|
1176
|
+
var l, t, i;
|
|
1177
|
+
try {
|
|
1178
|
+
let p, u;
|
|
1179
|
+
a === "create" ? (p = {
|
|
1180
|
+
key: {
|
|
1181
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
1182
|
+
pageKey: s,
|
|
1183
|
+
type: "structure",
|
|
1184
|
+
structureBelong: r,
|
|
1185
|
+
parentTable: "",
|
|
1186
|
+
version: 1
|
|
1187
|
+
},
|
|
1188
|
+
value: {
|
|
1189
|
+
pageData: {
|
|
1190
|
+
...e,
|
|
1191
|
+
compData: (l = e == null ? void 0 : e.compData) == null ? void 0 : l.filter((o) => (o == null ? void 0 : o.key) !== "tableContents")
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}, u = Ce) : a === "update" ? (p = {
|
|
1195
|
+
id: e == null ? void 0 : e.id,
|
|
1196
|
+
key: {
|
|
1197
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
1198
|
+
pageKey: s,
|
|
1199
|
+
type: "structure",
|
|
1200
|
+
structureBelong: r,
|
|
1201
|
+
parentTable: "",
|
|
1202
|
+
version: 1
|
|
1203
|
+
},
|
|
1204
|
+
value: {
|
|
1205
|
+
pageData: {
|
|
1206
|
+
...e,
|
|
1207
|
+
compData: (t = e == null ? void 0 : e.compData) == null ? void 0 : t.filter((o) => (o == null ? void 0 : o.key) !== "tableContents")
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
}, u = Ee) : a === "delete" && (p = {
|
|
1211
|
+
id: e,
|
|
1212
|
+
key: {
|
|
1213
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
1214
|
+
pageKey: s,
|
|
1215
|
+
type: "structure",
|
|
1216
|
+
structureBelong: r,
|
|
1217
|
+
parentTable: "",
|
|
1218
|
+
version: 1
|
|
1219
|
+
}
|
|
1220
|
+
}, u = ha);
|
|
1221
|
+
const n = await u(p);
|
|
1222
|
+
if (((i = n == null ? void 0 : n.data) == null ? void 0 : i.code) === 200)
|
|
1223
|
+
return n.data.result;
|
|
1224
|
+
throw he.error("保存响应失败"), new Error("保存响应失败");
|
|
1225
|
+
} catch {
|
|
1226
|
+
he.error("保存响应失败");
|
|
1227
|
+
}
|
|
1228
|
+
}, Il = async (e) => {
|
|
1229
|
+
var n;
|
|
1230
|
+
const a = JSON.parse(d(JSON.stringify(Bs.value)));
|
|
1231
|
+
if (!ms.value)
|
|
1232
|
+
return ba.setCacheStructures({
|
|
1233
|
+
key: _s.value,
|
|
1234
|
+
data: a
|
|
1235
|
+
}), he.success("已暂存");
|
|
1236
|
+
const s = a == null ? void 0 : a.map((o) => o.id), r = s.filter((o) => {
|
|
1237
|
+
var c;
|
|
1238
|
+
return !((c = ca.value) != null && c.includes(o));
|
|
1239
|
+
}), l = (n = ca.value) == null ? void 0 : n.filter((o) => !s.includes(o)), t = [...r, ...l], i = a == null ? void 0 : a.filter((o) => !o.id), p = a == null ? void 0 : a.filter((o) => o.id);
|
|
1240
|
+
let u = [];
|
|
1241
|
+
t && (t == null ? void 0 : t.length) > 0 && (t == null || t.forEach((o) => {
|
|
1242
|
+
o && u.push(Je(o, "delete", e));
|
|
1243
|
+
})), i && (i == null ? void 0 : i.length) > 0 && (i == null || i.forEach((o) => {
|
|
1244
|
+
o && u.push(Je(o, "create", e));
|
|
1245
|
+
})), p && (p == null ? void 0 : p.length) > 0 && (p == null || p.forEach((o) => {
|
|
1246
|
+
s != null && s.includes(o.id) && (console.log("clickSavePage5", "包含"), o && u.push(Je(o, "update", e)));
|
|
1247
|
+
})), Promise.all(u).then(() => {
|
|
1248
|
+
he.success("保存成功"), V.setRefreshCurStructure(!0);
|
|
1249
|
+
}).catch((o) => {
|
|
1250
|
+
he.success(o);
|
|
1251
|
+
});
|
|
1252
|
+
}, Nl = (e) => cs(e), le = fe([]), jl = async (e, a = "data") => {
|
|
1253
|
+
var r, l, t, i, p, u;
|
|
1254
|
+
if ((e == null ? void 0 : e.type) === "delete")
|
|
1255
|
+
await Xa((r = e == null ? void 0 : e.singleContent) == null ? void 0 : r.id);
|
|
1256
|
+
else if ((e == null ? void 0 : e.buttonName) === "新增") {
|
|
1257
|
+
let n = {};
|
|
1258
|
+
for (let o in e == null ? void 0 : e.singleContent)
|
|
1259
|
+
o !== "id" && o !== "index" && (n[o] = e == null ? void 0 : e.singleContent[o]);
|
|
1260
|
+
await Za(
|
|
1261
|
+
a,
|
|
1262
|
+
ie.value,
|
|
1263
|
+
e == null ? void 0 : e.index,
|
|
1264
|
+
sessionStorage.getItem("systemKey"),
|
|
1265
|
+
Object.values(n),
|
|
1266
|
+
e == null ? void 0 : e.column,
|
|
1267
|
+
e
|
|
1268
|
+
);
|
|
1269
|
+
} else if ((e == null ? void 0 : e.buttonName) === "编辑") {
|
|
1270
|
+
let n = {}, o = (l = e == null ? void 0 : e.singleContent) == null ? void 0 : l.id;
|
|
1271
|
+
for (let c in e == null ? void 0 : e.singleContent)
|
|
1272
|
+
c !== "id" && c !== "index" && (n[c] = e == null ? void 0 : e.singleContent[c]);
|
|
1273
|
+
await Qa(
|
|
1274
|
+
a,
|
|
1275
|
+
ie.value,
|
|
1276
|
+
e == null ? void 0 : e.index,
|
|
1277
|
+
o,
|
|
1278
|
+
sessionStorage.getItem("systemKey"),
|
|
1279
|
+
Object.values(n),
|
|
1280
|
+
e == null ? void 0 : e.column
|
|
1281
|
+
);
|
|
1282
|
+
}
|
|
1283
|
+
let s = (i = (t = de.value) == null ? void 0 : t[de.value.length - 1]) != null && i.key ? parseInt((u = (p = de.value) == null ? void 0 : p[de.value.length - 1]) == null ? void 0 : u.key) : "";
|
|
1284
|
+
le.value = await we(ie.value, sessionStorage.getItem("systemKey"), s), V.setItemData(le.value), V.setOriginalData(le.value);
|
|
1285
|
+
}, Rs = async (e) => {
|
|
1286
|
+
var s, r, l, t, i;
|
|
1287
|
+
const a = await ne({
|
|
1288
|
+
id: e
|
|
1289
|
+
});
|
|
1290
|
+
return (i = (t = (l = (r = (s = a == null ? void 0 : a.data) == null ? void 0 : s.result) == null ? void 0 : r[0]) == null ? void 0 : l.value) == null ? void 0 : t.pageData) == null ? void 0 : i.name;
|
|
1291
|
+
}, xl = async (e) => {
|
|
1292
|
+
var r, l;
|
|
1293
|
+
const a = await Rs(e == null ? void 0 : e.index);
|
|
1294
|
+
await Wa(e == null ? void 0 : e.index, {
|
|
1295
|
+
comp: "Form",
|
|
1296
|
+
compData: (r = d(e == null ? void 0 : e.contents)) == null ? void 0 : r.filter((t) => t.contents),
|
|
1297
|
+
name: a
|
|
1298
|
+
});
|
|
1299
|
+
const s = (l = d(le.value)) == null ? void 0 : l.map((t) => ((t == null ? void 0 : t.id) === (e == null ? void 0 : e.index) && (t.compData = e == null ? void 0 : e.contents), t));
|
|
1300
|
+
V.setItemData(s), V.setOriginalData(s);
|
|
1301
|
+
}, Ll = (e) => {
|
|
1302
|
+
le.value = e, V.setItemData(le.value), V.setOriginalData(le.value);
|
|
1303
|
+
}, fa = (e) => {
|
|
1304
|
+
var a, s, r;
|
|
1305
|
+
return ((s = (a = oa.value) == null ? void 0 : a.layer) == null ? void 0 : s.toUpperCase()) === "SUPERADMIN" ? !0 : ((r = oa.value) == null ? void 0 : r.account) === (e == null ? void 0 : e.account);
|
|
1306
|
+
}, pa = async (e, a, s) => {
|
|
1307
|
+
const r = Ve("/系统管理/角色管理"), l = Ve("/系统管理/部门管理");
|
|
1308
|
+
return await Promise.all([r, l]).then((i) => {
|
|
1309
|
+
var n, o;
|
|
1310
|
+
const p = (n = i == null ? void 0 : i[0]) == null ? void 0 : n.map((c) => ({
|
|
1311
|
+
label: c == null ? void 0 : c.roleName,
|
|
1312
|
+
value: c == null ? void 0 : c.roleName
|
|
1313
|
+
})), u = (o = i == null ? void 0 : i[1]) == null ? void 0 : o.map((c) => ({
|
|
1314
|
+
label: c == null ? void 0 : c.deptName,
|
|
1315
|
+
value: c == null ? void 0 : c.deptName
|
|
1316
|
+
}));
|
|
1317
|
+
return s ? e == null ? void 0 : e.map((c) => {
|
|
1318
|
+
var v;
|
|
1319
|
+
return {
|
|
1320
|
+
...c,
|
|
1321
|
+
compData: (v = c == null ? void 0 : c.compData) == null ? void 0 : v.map((y) => {
|
|
1322
|
+
var E, k;
|
|
1323
|
+
return (y == null ? void 0 : y.key) === "header" ? {
|
|
1324
|
+
...y,
|
|
1325
|
+
contents: (E = y == null ? void 0 : y.contents) == null ? void 0 : E.map((A) => A.prop === "userDept" ? {
|
|
1326
|
+
...A,
|
|
1327
|
+
options: u
|
|
1328
|
+
} : A.prop === "userRoles" ? {
|
|
1329
|
+
...A,
|
|
1330
|
+
options: p
|
|
1331
|
+
} : A)
|
|
1332
|
+
} : (y == null ? void 0 : y.key) === "tableContents" ? {
|
|
1333
|
+
...y,
|
|
1334
|
+
contents: (k = y == null ? void 0 : y.contents) == null ? void 0 : k.map((A) => {
|
|
1335
|
+
var D;
|
|
1336
|
+
return {
|
|
1337
|
+
...A,
|
|
1338
|
+
password: fa(A) ? Qe(A == null ? void 0 : A.password, (D = ge == null ? void 0 : ge.value) == null ? void 0 : D.privateKey) : A == null ? void 0 : A.password
|
|
1339
|
+
};
|
|
1340
|
+
})
|
|
1341
|
+
} : y;
|
|
1342
|
+
})
|
|
1343
|
+
};
|
|
1344
|
+
}) : e == null ? void 0 : e.map((c) => {
|
|
1345
|
+
var v;
|
|
1346
|
+
return {
|
|
1347
|
+
...c,
|
|
1348
|
+
compData: (v = c == null ? void 0 : c.compData) == null ? void 0 : v.map((y) => {
|
|
1349
|
+
var E, k, A;
|
|
1350
|
+
return (y == null ? void 0 : y.key) === "rowButton" || (y == null ? void 0 : y.key) === "extraButton" ? {
|
|
1351
|
+
...y,
|
|
1352
|
+
contents: (E = y == null ? void 0 : y.contents) == null ? void 0 : E.filter((D) => a == null ? void 0 : a.includes(D == null ? void 0 : D.label))
|
|
1353
|
+
} : (y == null ? void 0 : y.key) === "header" ? {
|
|
1354
|
+
...y,
|
|
1355
|
+
contents: (k = y == null ? void 0 : y.contents) == null ? void 0 : k.map((D) => D.prop === "userDept" ? {
|
|
1356
|
+
...D,
|
|
1357
|
+
options: u
|
|
1358
|
+
} : D.prop === "userRoles" ? {
|
|
1359
|
+
...D,
|
|
1360
|
+
options: p
|
|
1361
|
+
} : D)
|
|
1362
|
+
} : (y == null ? void 0 : y.key) === "tableContents" ? {
|
|
1363
|
+
...y,
|
|
1364
|
+
contents: (A = y == null ? void 0 : y.contents) == null ? void 0 : A.map((D) => {
|
|
1365
|
+
var S;
|
|
1366
|
+
return {
|
|
1367
|
+
...D,
|
|
1368
|
+
password: fa(D) ? Qe(D == null ? void 0 : D.password, (S = ge == null ? void 0 : ge.value) == null ? void 0 : S.privateKey) : D == null ? void 0 : D.password
|
|
1369
|
+
};
|
|
1370
|
+
})
|
|
1371
|
+
} : y;
|
|
1372
|
+
})
|
|
1373
|
+
};
|
|
1374
|
+
});
|
|
1375
|
+
});
|
|
1376
|
+
}, Cs = async (e, a) => {
|
|
1377
|
+
const s = sessionStorage.getItem("authority"), r = JSON.parse(s || "");
|
|
1378
|
+
if (console.log("点击菜单获取页面结构:", e, a, r), Array.isArray(r)) {
|
|
1379
|
+
const l = Array.isArray(r) && (r == null ? void 0 : r.filter((p) => p == null ? void 0 : p.includes(e))), t = l == null ? void 0 : l.map((p) => {
|
|
1380
|
+
var u;
|
|
1381
|
+
return ((u = p == null ? void 0 : p.split("/")) == null ? void 0 : u.pop()) || "";
|
|
1382
|
+
});
|
|
1383
|
+
return e === "/系统管理/用户管理" ? await pa(a, t, !1) : a == null ? void 0 : a.map((p) => {
|
|
1384
|
+
var u;
|
|
1385
|
+
return {
|
|
1386
|
+
...p,
|
|
1387
|
+
compData: (u = p == null ? void 0 : p.compData) == null ? void 0 : u.map((n) => {
|
|
1388
|
+
var o;
|
|
1389
|
+
return (n == null ? void 0 : n.key) === "rowButton" || (n == null ? void 0 : n.key) === "extraButton" ? {
|
|
1390
|
+
...n,
|
|
1391
|
+
contents: (o = n == null ? void 0 : n.contents) == null ? void 0 : o.filter((c) => t == null ? void 0 : t.includes(c == null ? void 0 : c.label))
|
|
1392
|
+
} : n;
|
|
1393
|
+
})
|
|
1394
|
+
};
|
|
1395
|
+
});
|
|
1396
|
+
} else return typeof r == "string" && (r == null ? void 0 : r.toUpperCase()) === "SUPERADMIN" ? e === "/系统管理/用户管理" ? await pa(a, null, !0) : a : [];
|
|
1397
|
+
};
|
|
1398
|
+
be(
|
|
1399
|
+
() => [ie.value, Os.value],
|
|
1400
|
+
async (e) => {
|
|
1401
|
+
var r, l;
|
|
1402
|
+
const a = e == null ? void 0 : e[0], s = e == null ? void 0 : e[1];
|
|
1403
|
+
if (a || s) {
|
|
1404
|
+
await is(), sessionStorage.setItem("pageKey", ie.value);
|
|
1405
|
+
const t = await we(a, sessionStorage.getItem("systemKey"), "", ie.value);
|
|
1406
|
+
V.setExtraContents([]), le.value = await Cs(a, t), ue.setSelectTitle([]), ue.setSelectIndex(""), ue.setSelectMenu(""), V.setItemData(le.value), V.setOriginalData(le.value), V.setCurStructureCompIds((r = le.value) == null ? void 0 : r.map((i) => i == null ? void 0 : i.id)), V.setRefreshCurStructure(!1), de.value = (l = ie.value) == null ? void 0 : l.split("/").filter((i) => i !== "").map((i) => ({ value: i.trim() }));
|
|
1407
|
+
}
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
immediate: !0
|
|
1411
|
+
}
|
|
1412
|
+
);
|
|
1413
|
+
be(
|
|
1414
|
+
() => ia.value,
|
|
1415
|
+
async () => {
|
|
1416
|
+
ia.value && (le.value = await we(ie.value, sessionStorage.getItem("systemKey"), "", ie.value), V.setFreshContent(!1));
|
|
1417
|
+
},
|
|
1418
|
+
{ deep: !0 }
|
|
1419
|
+
);
|
|
1420
|
+
const $s = (e) => {
|
|
1421
|
+
var l, t, i;
|
|
1422
|
+
const a = (l = e.map((p) => {
|
|
1423
|
+
var n, o;
|
|
1424
|
+
let u = (o = (n = p.key.split("(")) == null ? void 0 : n[1]) == null ? void 0 : o.trim();
|
|
1425
|
+
return u == null ? void 0 : u.slice(0, u.length - 1);
|
|
1426
|
+
})) == null ? void 0 : l.filter((p) => p), s = [];
|
|
1427
|
+
a == null || a.forEach((p) => {
|
|
1428
|
+
var n, o;
|
|
1429
|
+
const u = [];
|
|
1430
|
+
if ((n = us(p)) == null || n.forEach((c) => {
|
|
1431
|
+
var v, y, E, k, A, D, S, m, P, C, J, H, R, O;
|
|
1432
|
+
if (c.includes("{") && c.includes("[")) {
|
|
1433
|
+
let x = d(c).split(":");
|
|
1434
|
+
c = (D = (y = (v = d(x)) == null ? void 0 : v[0]) == null ? void 0 : y.split("{")) == null ? void 0 : D[((A = (k = (E = d(x)) == null ? void 0 : E[0]) == null ? void 0 : k.split("{")) == null ? void 0 : A.length) - 1].replaceAll("'", ""), u.push(c);
|
|
1435
|
+
let g = (P = (m = (S = x == null ? void 0 : x[(x == null ? void 0 : x.length) - 1]) == null ? void 0 : S.split("}")) == null ? void 0 : m[0]) == null ? void 0 : P.replaceAll("'", '"'), T = [];
|
|
1436
|
+
(J = (C = g.slice(1, g.length - 1)) == null ? void 0 : C.split(",")) == null || J.forEach((_) => {
|
|
1437
|
+
T.push(_);
|
|
1438
|
+
}), u.push(T);
|
|
1439
|
+
} else if (c.includes("{")) {
|
|
1440
|
+
let x = (H = c.split(":")) == null ? void 0 : H[0];
|
|
1441
|
+
c = (O = x == null ? void 0 : x.split("{")) == null ? void 0 : O[((R = x == null ? void 0 : x.split("{")) == null ? void 0 : R.length) - 1].replaceAll("'", ""), u.push(c);
|
|
1442
|
+
} else
|
|
1443
|
+
u.push(c);
|
|
1444
|
+
}), !u.some((c) => Array.isArray(c)))
|
|
1445
|
+
s.push(u);
|
|
1446
|
+
else {
|
|
1447
|
+
let c = [];
|
|
1448
|
+
u == null || u.forEach((v, y) => {
|
|
1449
|
+
y !== u.length - 1 && c.push(v);
|
|
1450
|
+
}), (o = u == null ? void 0 : u[(u == null ? void 0 : u.length) - 1]) == null || o.forEach((v) => {
|
|
1451
|
+
let y = d(c);
|
|
1452
|
+
y.push(v), s.push(y);
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1455
|
+
});
|
|
1456
|
+
const r = (i = (t = s.filter((p) => p.length !== 0)) == null ? void 0 : t.filter((p) => p.length !== 0)) == null ? void 0 : i.map((p) => {
|
|
1457
|
+
let u = "";
|
|
1458
|
+
return p.forEach((n) => {
|
|
1459
|
+
n.includes("{") || (u = u === "" ? u + d(n) : u + "/" + d(n));
|
|
1460
|
+
}), u;
|
|
1461
|
+
});
|
|
1462
|
+
return fs([...new Set(r)]);
|
|
1463
|
+
}, Js = (e) => ({
|
|
1464
|
+
comp: "Menu",
|
|
1465
|
+
compData: [{
|
|
1466
|
+
contents: $s(d(e)),
|
|
1467
|
+
key: "menuContents"
|
|
1468
|
+
}],
|
|
1469
|
+
name: ""
|
|
1470
|
+
}), Gs = (e) => ({
|
|
1471
|
+
comp: "MenuTop",
|
|
1472
|
+
compData: [
|
|
1473
|
+
{
|
|
1474
|
+
key: "menuContents",
|
|
1475
|
+
contents: JSON.parse(e == null ? void 0 : e.value.trim().replaceAll("'", '"'))
|
|
1476
|
+
}
|
|
1477
|
+
],
|
|
1478
|
+
name: ""
|
|
1479
|
+
}), Hs = (e) => {
|
|
1480
|
+
const a = e == null ? void 0 : e.filter((r) => {
|
|
1481
|
+
var l;
|
|
1482
|
+
return !((l = r == null ? void 0 : r.key) != null && l.includes("("));
|
|
1483
|
+
}), s = a == null ? void 0 : a.find((r) => {
|
|
1484
|
+
var l;
|
|
1485
|
+
return pe(r.value.replaceAll("'", '"')) && ((l = JSON.parse(r.value.replaceAll("'", '"'))) == null ? void 0 : l.every((t) => typeof t == "string"));
|
|
1486
|
+
});
|
|
1487
|
+
if (s)
|
|
1488
|
+
return Gs(s);
|
|
1489
|
+
}, zs = (e) => {
|
|
1490
|
+
var l;
|
|
1491
|
+
let a = [];
|
|
1492
|
+
const s = e == null ? void 0 : e.filter((t) => {
|
|
1493
|
+
var i;
|
|
1494
|
+
return !((i = t == null ? void 0 : t.key) != null && i.includes("("));
|
|
1495
|
+
}), r = s == null ? void 0 : s.find((t) => {
|
|
1496
|
+
var i;
|
|
1497
|
+
return pe(t.value.replaceAll("'", '"')) && !((i = JSON.parse(t.value.replaceAll("'", '"'))) != null && i.every((p) => typeof p == "string"));
|
|
1498
|
+
});
|
|
1499
|
+
if (r)
|
|
1500
|
+
return (l = JSON.parse(r.value.replaceAll("'", '"'))) == null || l.forEach((t) => {
|
|
1501
|
+
var i, p, u, n;
|
|
1502
|
+
((i = Object.keys(t)) == null ? void 0 : i[0]) === "类型" ? a.push({
|
|
1503
|
+
comp: "System",
|
|
1504
|
+
compData: [
|
|
1505
|
+
{
|
|
1506
|
+
key: "type",
|
|
1507
|
+
contents: [(p = Object.values(t)) == null ? void 0 : p[0]]
|
|
1508
|
+
}
|
|
1509
|
+
]
|
|
1510
|
+
}) : ((u = Object.keys(t)) == null ? void 0 : u[0]) === "名称" && a.push({
|
|
1511
|
+
comp: "System",
|
|
1512
|
+
compData: [
|
|
1513
|
+
{
|
|
1514
|
+
key: "name",
|
|
1515
|
+
contents: [(n = Object.values(t)) == null ? void 0 : n[0]]
|
|
1516
|
+
}
|
|
1517
|
+
]
|
|
1518
|
+
});
|
|
1519
|
+
}), a;
|
|
1520
|
+
}, Ka = (e) => {
|
|
1521
|
+
const a = [];
|
|
1522
|
+
let s = !1;
|
|
1523
|
+
return e.forEach((r) => {
|
|
1524
|
+
Array.isArray(r) && (s = !0, r.forEach((l) => {
|
|
1525
|
+
const t = e.map((i) => i === r ? l : i);
|
|
1526
|
+
a.push(...Ka(t));
|
|
1527
|
+
}));
|
|
1528
|
+
}), s ? a : [e];
|
|
1529
|
+
}, qs = (e) => {
|
|
1530
|
+
var i, p;
|
|
1531
|
+
if (!e) return;
|
|
1532
|
+
let a = [];
|
|
1533
|
+
const s = ps(e), r = d(s).replaceAll("{", "").replaceAll("}", "").trim();
|
|
1534
|
+
let l = [];
|
|
1535
|
+
return r.split(":").forEach((u) => {
|
|
1536
|
+
var n;
|
|
1537
|
+
if (u.includes("[")) {
|
|
1538
|
+
const o = (n = u.slice(1, u.length - 1)) == null ? void 0 : n.split(",");
|
|
1539
|
+
l.push(o);
|
|
1540
|
+
} else
|
|
1541
|
+
l.push(u);
|
|
1542
|
+
}), (i = Ka(l)) == null || i.forEach((u) => {
|
|
1543
|
+
a.push(u);
|
|
1544
|
+
}), (p = a == null ? void 0 : a.filter((u) => u.length !== 0)) == null ? void 0 : p.map((u) => {
|
|
1545
|
+
let n = "";
|
|
1546
|
+
return u.forEach((o) => {
|
|
1547
|
+
o.includes("{") || (n = n === "" ? n + d(o).trim() : n + "/" + d(o).trim());
|
|
1548
|
+
}), n;
|
|
1549
|
+
});
|
|
1550
|
+
}, Ge = (e) => {
|
|
1551
|
+
var p, u, n, o, c, v, y, E, k, A, D, S, m, P, C, J, H, R, O, x, g, T, _, G;
|
|
1552
|
+
const a = Ye(e) ? (p = Me(d(e))) == null ? void 0 : p[0] : "[]", s = Ye(e) ? "[" + ((u = Me(d(e))) == null ? void 0 : u[2]) + "]" : "[" + e + "]";
|
|
1553
|
+
let r = [], l = [], t = "";
|
|
1554
|
+
const i = (o = (n = s == null ? void 0 : s.trim()) == null ? void 0 : n.slice(1, (s == null ? void 0 : s.trim().length) - 1)) == null ? void 0 : o.replaceAll("'", '"');
|
|
1555
|
+
if (pe(i) ? r = JSON.parse(i) : pe((y = (v = (c = i == null ? void 0 : i.split("}")) == null ? void 0 : c[0]) == null ? void 0 : v.replace(":", "")) == null ? void 0 : y.replaceAll("\\", "\\\\")) && (r = JSON.parse((A = (k = (E = i == null ? void 0 : i.split("}")) == null ? void 0 : E[0]) == null ? void 0 : k.replace(":", "")) == null ? void 0 : A.replaceAll("\\", "\\\\"))), r = r != null && r.every((U) => Array.isArray(U) && U.every((I) => Array.isArray(I))) ? r == null ? void 0 : r[0] : r, !(a != null && a.includes("(")))
|
|
1556
|
+
!a.includes("{") && pe(a == null ? void 0 : a.replaceAll("'", '"')) ? l = JSON.parse(a == null ? void 0 : a.replaceAll("'", '"')) : pe((S = (D = a == null ? void 0 : a.split("{")) == null ? void 0 : D[1]) == null ? void 0 : S.replaceAll("'", '"')) && (l = JSON.parse((P = (m = a == null ? void 0 : a.split("{")) == null ? void 0 : m[1]) == null ? void 0 : P.replaceAll("'", '"')));
|
|
1557
|
+
else {
|
|
1558
|
+
let U = [];
|
|
1559
|
+
if (((J = (C = a == null ? void 0 : a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : C.split(",")) == null ? void 0 : J.length) > 1)
|
|
1560
|
+
(R = (H = a == null ? void 0 : a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : H.split(",")) == null || R.forEach((I) => {
|
|
1561
|
+
var q, ee, Q, W, te, ae, oe, j, L, Y, se, X, ce, F, f, h, K, b;
|
|
1562
|
+
if (!(I != null && I.includes("(")))
|
|
1563
|
+
U.push(I == null ? void 0 : I.replaceAll("'", ""));
|
|
1564
|
+
else if (I != null && I.includes("[")) {
|
|
1565
|
+
let w = (F = (ce = (X = (se = I == null ? void 0 : I.split("[")) == null ? void 0 : se[((Y = I == null ? void 0 : I.split("[")) == null ? void 0 : Y.length) - 1]) == null ? void 0 : X.split("]")) == null ? void 0 : ce[0]) == null ? void 0 : F.replaceAll("'", "");
|
|
1566
|
+
w = w + "[" + ((b = (K = (h = I == null ? void 0 : I.split("(")) == null ? void 0 : h[((f = I == null ? void 0 : I.split("(")) == null ? void 0 : f.length) - 1]) == null ? void 0 : K.split(")")) == null ? void 0 : b[0].replaceAll(":", "/").replaceAll("'", "")) + "]()", U.push(w);
|
|
1567
|
+
} else {
|
|
1568
|
+
let w = (te = (W = (Q = (ee = I == null ? void 0 : I.split(":")) == null ? void 0 : ee[((q = I == null ? void 0 : I.split(":")) == null ? void 0 : q.length) - 1]) == null ? void 0 : Q.split(")")) == null ? void 0 : W[0]) == null ? void 0 : te.replaceAll("'", "");
|
|
1569
|
+
w = w + "[" + ((L = (j = (oe = I == null ? void 0 : I.split("(")) == null ? void 0 : oe[((ae = I == null ? void 0 : I.split("(")) == null ? void 0 : ae.length) - 1]) == null ? void 0 : j.split(")")) == null ? void 0 : L[0].replaceAll(":", "/").replaceAll("'", "")) + "]", U.push(w);
|
|
1570
|
+
}
|
|
1571
|
+
}), l = U;
|
|
1572
|
+
else {
|
|
1573
|
+
const I = ((T = (g = (x = (O = a == null ? void 0 : a.slice(1, a == null ? void 0 : a.length)) == null ? void 0 : O.split("(")) == null ? void 0 : x[1]) == null ? void 0 : g.split(")")) == null ? void 0 : T[0]).replaceAll("{", "").replaceAll("}", "").replaceAll(":", "/").replaceAll("'", "");
|
|
1574
|
+
t = t + I + "[" + ((G = (_ = a == null ? void 0 : a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : _.split("[")) == null ? void 0 : G[1]);
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
return {
|
|
1578
|
+
tableColumns: l,
|
|
1579
|
+
tableContents: r != null && r.every((U) => Array.isArray(U)) ? r : [r],
|
|
1580
|
+
tablePath: t
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
let re = "$R";
|
|
1584
|
+
const Ys = (e) => /^'[^']+':\{.*\}$/.exec(d(e)), Ws = (e) => /^'([^']+)':.*$/.exec(d(e)), Me = (e) => {
|
|
1585
|
+
let a = e;
|
|
1586
|
+
const s = [];
|
|
1587
|
+
let r = "";
|
|
1588
|
+
for (const l of a)
|
|
1589
|
+
l.includes("{") || r.includes("{") || l.includes("[") || r.includes("[") || l.includes("【") || r.includes("【") || l.includes("(") || r.includes("(") || l.includes("(") || r.includes("(") || l.includes("/*") || r.includes("/*") ? (r += l.trim(), d(r).split("{").length - 1 === d(r).split("}").length - 1 && d(r).split("【").length - 1 === d(r).split("】").length - 1 && d(r).split("[").length - 1 === d(r).split("]").length - 1 && d(r).split("(").length - 1 === d(r).split(")").length - 1 && d(r).split("(").length - 1 === d(r).split(")").length - 1 && d(r).split("/*").length - 1 === d(r).split("*/").length - 1 && r[r.length - 1] !== "," && (s.push(r.replace(/\/\*[\s\S]*?\*\//g, "")), r = "")) : s.push(l.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
1590
|
+
return s;
|
|
1591
|
+
}, Ye = (e) => /^\[.*?\]:\[.*?\]$/.exec(d(e)), Xs = (e) => {
|
|
1592
|
+
var a, s, r, l, t, i, p, u, n, o, c, v, y, E, k, A, D;
|
|
1593
|
+
if (Ws(e)) {
|
|
1594
|
+
let S = {}, m = (r = (s = (a = e == null ? void 0 : e.replace(":", re)) == null ? void 0 : a.split(re)) == null ? void 0 : s[0]) == null ? void 0 : r.replaceAll("'", ""), P = "";
|
|
1595
|
+
return P = P + ((p = (i = (t = (l = e == null ? void 0 : e.split("{")) == null ? void 0 : l[1]) == null ? void 0 : t.split("}")) == null ? void 0 : i[0]) == null ? void 0 : p.replace(":", "/").replaceAll("'", "")) + "[", P = P + ((o = (n = (u = e == null ? void 0 : e.split("[")) == null ? void 0 : u[1]) == null ? void 0 : n.split("]")) == null ? void 0 : o[0]) + "]", S[m] = P, {
|
|
1596
|
+
groupName: "",
|
|
1597
|
+
formContents: [[S]]
|
|
1598
|
+
};
|
|
1599
|
+
} else {
|
|
1600
|
+
let S = {}, m = "", P = (y = (v = (c = e == null ? void 0 : e.split("]")) == null ? void 0 : c[0]) == null ? void 0 : v.split("[")) == null ? void 0 : y[1];
|
|
1601
|
+
(E = P == null ? void 0 : P.split(":")) == null || E.forEach((J, H) => {
|
|
1602
|
+
var R;
|
|
1603
|
+
((R = P == null ? void 0 : P.split(":")) == null ? void 0 : R.length) - 1 === H && (m = J == null ? void 0 : J.replaceAll("'", ""));
|
|
1604
|
+
});
|
|
1605
|
+
let C = "";
|
|
1606
|
+
return C = (D = (A = (k = e == null ? void 0 : e.split("]")) == null ? void 0 : k[1]) == null ? void 0 : A.replace(":", re).split(re)) == null ? void 0 : D[1].replaceAll("'", ""), S[m] = C, {
|
|
1607
|
+
groupName: "",
|
|
1608
|
+
formContents: [[S]]
|
|
1609
|
+
};
|
|
1610
|
+
}
|
|
1611
|
+
}, Zs = (e) => (e == null ? void 0 : e[0]) === "[" && (e == null ? void 0 : e[e.length - 1]) === "]" && !(e != null && e.includes("{")), Ea = (e) => {
|
|
1612
|
+
var r, l, t, i, p, u, n, o, c, v, y, E, k, A, D, S, m, P, C, J, H, R, O, x, g, T, _, G, U, I, q, ee, Q, W, te, ae, oe;
|
|
1613
|
+
let a = "";
|
|
1614
|
+
e = e.replace(/:([^=]*)==/g, ":");
|
|
1615
|
+
let s = e;
|
|
1616
|
+
if (Ys(d(e)) !== null && (a = (l = (r = d(e).replace(":", re).split(re)) == null ? void 0 : r[0]) == null ? void 0 : l.replaceAll("'", ""), s = (t = d(e).replace(":", re).split(re)) == null ? void 0 : t[1]), Ye(d(s).slice(1, ((i = d(s)) == null ? void 0 : i.length) - 1)) || Zs(d(s).slice(1, ((p = d(s)) == null ? void 0 : p.length) - 1)))
|
|
1617
|
+
if (((n = d(s).slice(1, ((u = d(s)) == null ? void 0 : u.length) - 1)) == null ? void 0 : n[1]) !== "[") {
|
|
1618
|
+
const j = Ge(d(s).slice(1, ((o = d(s)) == null ? void 0 : o.length) - 1));
|
|
1619
|
+
return {
|
|
1620
|
+
groupName: a,
|
|
1621
|
+
tableColumn: j == null ? void 0 : j.tableColumns,
|
|
1622
|
+
tableContents: j == null ? void 0 : j.tableContents,
|
|
1623
|
+
tableColumnPath: j == null ? void 0 : j.tablePath
|
|
1624
|
+
};
|
|
1625
|
+
} else if (d(s).slice(1, ((c = d(s)) == null ? void 0 : c.length) - 1).includes("{")) {
|
|
1626
|
+
let j = d(s).slice(1, ((v = d(s)) == null ? void 0 : v.length) - 1), L = j.indexOf("{"), Y = j.slice(L, (j == null ? void 0 : j.length) - L);
|
|
1627
|
+
return (E = (y = Me(Y)) == null ? void 0 : y.filter((X) => X == null ? void 0 : X.includes("{"))) == null ? void 0 : E.map((X, ce) => {
|
|
1628
|
+
var f;
|
|
1629
|
+
let F = Ge(d(X).slice(1, ((f = d(X)) == null ? void 0 : f.length) - 1));
|
|
1630
|
+
return {
|
|
1631
|
+
groupName: ce === 0 ? a : "",
|
|
1632
|
+
tableColumn: F == null ? void 0 : F.tableColumns,
|
|
1633
|
+
tableContents: F == null ? void 0 : F.tableContents,
|
|
1634
|
+
tableColumnPath: F == null ? void 0 : F.tablePath
|
|
1635
|
+
};
|
|
1636
|
+
});
|
|
1637
|
+
} else {
|
|
1638
|
+
const j = Ge(d(s).slice(1, ((k = d(s)) == null ? void 0 : k.length) - 1));
|
|
1639
|
+
return {
|
|
1640
|
+
groupName: a,
|
|
1641
|
+
tableColumn: j == null ? void 0 : j.tableColumns,
|
|
1642
|
+
tableContents: j == null ? void 0 : j.tableContents,
|
|
1643
|
+
tableColumnPath: j == null ? void 0 : j.tablePath
|
|
1644
|
+
};
|
|
1645
|
+
}
|
|
1646
|
+
else {
|
|
1647
|
+
let j = [];
|
|
1648
|
+
if (pe((A = s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : A.replaceAll("'", '"')))
|
|
1649
|
+
j = JSON.parse((D = s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : D.replaceAll("'", '"'));
|
|
1650
|
+
else if (s.includes("(")) {
|
|
1651
|
+
if ((s == null ? void 0 : s[0]) !== "{") {
|
|
1652
|
+
let L = (_ = (T = (g = s == null ? void 0 : s.split("]")) == null ? void 0 : g[0]) == null ? void 0 : T.split("[")) == null ? void 0 : _[1], Y = "", X = ((ee = (q = (I = (U = (G = s == null ? void 0 : s.split(")")) == null ? void 0 : G[0]) == null ? void 0 : U.split("(")) == null ? void 0 : I[1]) == null ? void 0 : q.replaceAll("[", "")) == null ? void 0 : ee.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
|
|
1653
|
+
return (Q = X == null ? void 0 : X.split("/")) == null || Q.forEach((ce, F) => {
|
|
1654
|
+
var f;
|
|
1655
|
+
F !== ((f = X == null ? void 0 : X.split("/")) == null ? void 0 : f.length) - 1 && (Y = Y === "" ? Y + ce : Y + "/" + ce);
|
|
1656
|
+
}), {
|
|
1657
|
+
groupName: "",
|
|
1658
|
+
extraButton: (te = L == null ? void 0 : L.split(":")) == null ? void 0 : te[((W = L == null ? void 0 : L.split(":")) == null ? void 0 : W.length) - 1].replaceAll("'", ""),
|
|
1659
|
+
extraPath: Y
|
|
1660
|
+
};
|
|
1661
|
+
} else if (s = s.slice(1, (s == null ? void 0 : s.length) - 1), (s == null ? void 0 : s[0]) !== "[") {
|
|
1662
|
+
let L = Xs(s);
|
|
1663
|
+
return {
|
|
1664
|
+
groupName: L == null ? void 0 : L.groupName,
|
|
1665
|
+
formContents: L == null ? void 0 : L.formContents
|
|
1666
|
+
};
|
|
1667
|
+
} else if ((s == null ? void 0 : s[0]) === "[" && (s == null ? void 0 : s[1]) === "[") {
|
|
1668
|
+
s = s.slice(1, (s == null ? void 0 : s.length) - 1);
|
|
1669
|
+
let L = [];
|
|
1670
|
+
return (oe = (ae = Me(s)) == null ? void 0 : ae.filter((Y) => Y !== ",")) == null || oe.forEach((Y) => {
|
|
1671
|
+
var se;
|
|
1672
|
+
Array.isArray(Ue(Y)) || L.push((se = Ue(Y)) == null ? void 0 : se.formContents);
|
|
1673
|
+
}), {
|
|
1674
|
+
groupName: a,
|
|
1675
|
+
formContents: L
|
|
1676
|
+
};
|
|
1677
|
+
}
|
|
1678
|
+
} else if (s = "[[" + s + "]]", pe((S = s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : S.replaceAll("'", '"')))
|
|
1679
|
+
j = JSON.parse((m = s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : m.replaceAll("'", '"'));
|
|
1680
|
+
else if (s = s.slice(2, s.length - 2), ((J = (C = (P = s == null ? void 0 : s.replace(":", re)) == null ? void 0 : P.split(re)) == null ? void 0 : C[1]) == null ? void 0 : J[0]) !== "{") {
|
|
1681
|
+
s = ((R = (H = s == null ? void 0 : s.replace(":", re)) == null ? void 0 : H.split(re)) == null ? void 0 : R[0]) + ":{[" + ((x = (O = s == null ? void 0 : s.replace(":", re)) == null ? void 0 : O.split(re)) == null ? void 0 : x[1]) + "]}";
|
|
1682
|
+
const L = Ea(s);
|
|
1683
|
+
return L != null && L.tableColumn ? {
|
|
1684
|
+
groupName: L == null ? void 0 : L.groupName,
|
|
1685
|
+
tableColumn: L == null ? void 0 : L.tableColumn,
|
|
1686
|
+
tableContents: L == null ? void 0 : L.tableContents
|
|
1687
|
+
} : {
|
|
1688
|
+
groupName: L == null ? void 0 : L.groupName,
|
|
1689
|
+
formContents: L == null ? void 0 : L.formContents
|
|
1690
|
+
};
|
|
1691
|
+
}
|
|
1692
|
+
return {
|
|
1693
|
+
groupName: a,
|
|
1694
|
+
formContents: j
|
|
1695
|
+
};
|
|
1696
|
+
}
|
|
1697
|
+
}, Ue = (e) => Ea(d(e).slice(1, d(e).length - 1)), Qs = (e) => {
|
|
1698
|
+
var s;
|
|
1699
|
+
let a = [];
|
|
1700
|
+
if (!((e == null ? void 0 : e[0]) === "[" && (e == null ? void 0 : e[1]) === "[")) {
|
|
1701
|
+
let r = (s = Me(e)) == null ? void 0 : s.filter((l) => l !== ",");
|
|
1702
|
+
r == null || r.forEach((l) => {
|
|
1703
|
+
a.push(Ue(l));
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
return a;
|
|
1707
|
+
};
|
|
1708
|
+
fe(0);
|
|
1709
|
+
const Vs = (e) => {
|
|
1710
|
+
const a = [];
|
|
1711
|
+
let s = [];
|
|
1712
|
+
return e == null || e.forEach((r, l) => {
|
|
1713
|
+
var t;
|
|
1714
|
+
(s == null ? void 0 : s.length) === 0 ? s.push(r) : (s.push(r), ((t = e[l + 1]) == null ? void 0 : t.key) === "groupName" && (a.push(s), s = []));
|
|
1715
|
+
}), a.push(s), a;
|
|
1716
|
+
}, He = fe(0), Fs = (e, a) => {
|
|
1717
|
+
var l;
|
|
1718
|
+
let s = [], r = a == null ? void 0 : a.length;
|
|
1719
|
+
return (l = d(a)) == null || l.forEach((t, i) => {
|
|
1720
|
+
let p = [];
|
|
1721
|
+
t == null || t.forEach((u) => {
|
|
1722
|
+
var n, o, c, v, y, E;
|
|
1723
|
+
if (p.push(d(u)), pe(d(e).replaceAll("'", '"')) && ((n = JSON.parse(d(e).replaceAll("'", '"'))) != null && n.every((k) => typeof k == "string")))
|
|
1724
|
+
(o = JSON.parse(d(e).replaceAll("'", '"'))) == null || o.forEach((k) => {
|
|
1725
|
+
var A, D;
|
|
1726
|
+
s.push([{
|
|
1727
|
+
key: (A = d(u)) == null ? void 0 : A.key,
|
|
1728
|
+
value: ((D = d(u)) == null ? void 0 : D.value) + "/" + k
|
|
1729
|
+
}]);
|
|
1730
|
+
});
|
|
1731
|
+
else {
|
|
1732
|
+
let k = [];
|
|
1733
|
+
if (((c = d(e)) == null ? void 0 : c[0]) === "[" && ((v = d(e)) == null ? void 0 : v[1]) === "[") {
|
|
1734
|
+
let A = e.slice(1, (e == null ? void 0 : e.length) - 1);
|
|
1735
|
+
const D = Qs(A.trim());
|
|
1736
|
+
D == null || D.forEach((S) => {
|
|
1737
|
+
var m;
|
|
1738
|
+
S != null && S.tableColumn ? (p.push({
|
|
1739
|
+
key: "groupName",
|
|
1740
|
+
value: S == null ? void 0 : S.groupName
|
|
1741
|
+
}), p.push({
|
|
1742
|
+
key: "tableColumn",
|
|
1743
|
+
value: S == null ? void 0 : S.tableColumn
|
|
1744
|
+
}), p.push({
|
|
1745
|
+
key: "tableContents",
|
|
1746
|
+
value: S == null ? void 0 : S.tableContents
|
|
1747
|
+
}), p.push({
|
|
1748
|
+
key: "tablePath",
|
|
1749
|
+
value: (S == null ? void 0 : S.tableColumnPath) ?? ""
|
|
1750
|
+
})) : S != null && S.extraButton ? (p.push({
|
|
1751
|
+
key: "groupName",
|
|
1752
|
+
value: S == null ? void 0 : S.groupName
|
|
1753
|
+
}), p.push({
|
|
1754
|
+
key: "extraButton",
|
|
1755
|
+
value: S == null ? void 0 : S.extraButton,
|
|
1756
|
+
path: S == null ? void 0 : S.extraPath
|
|
1757
|
+
})) : (p.push({
|
|
1758
|
+
key: "groupName",
|
|
1759
|
+
value: S == null ? void 0 : S.groupName
|
|
1760
|
+
}), p.push({
|
|
1761
|
+
key: "formContent",
|
|
1762
|
+
value: r === 1 ? S == null ? void 0 : S.formContents : (m = S == null ? void 0 : S.formContents) == null ? void 0 : m[i]
|
|
1763
|
+
}));
|
|
1764
|
+
});
|
|
1765
|
+
} else
|
|
1766
|
+
k = Ue(d(e.trim())), k != null && k.tableColumn ? (p.push({
|
|
1767
|
+
key: "groupName",
|
|
1768
|
+
value: k == null ? void 0 : k.groupName
|
|
1769
|
+
}), p.push({
|
|
1770
|
+
key: "tableColumn",
|
|
1771
|
+
value: k == null ? void 0 : k.tableColumn
|
|
1772
|
+
}), p.push({
|
|
1773
|
+
key: "tableContents",
|
|
1774
|
+
value: r !== 1 ? [(y = k == null ? void 0 : k.tableContents) == null ? void 0 : y[i]] : k == null ? void 0 : k.tableContents
|
|
1775
|
+
})) : (p.push({
|
|
1776
|
+
key: "groupName",
|
|
1777
|
+
value: k == null ? void 0 : k.groupName
|
|
1778
|
+
}), p.push({
|
|
1779
|
+
key: "formContent",
|
|
1780
|
+
value: r !== 1 ? [(E = k == null ? void 0 : k.formContents) == null ? void 0 : E[i]] : k == null ? void 0 : k.formContents
|
|
1781
|
+
}));
|
|
1782
|
+
}
|
|
1783
|
+
}), s.push(p);
|
|
1784
|
+
}), s;
|
|
1785
|
+
}, el = (e) => {
|
|
1786
|
+
var l, t;
|
|
1787
|
+
const a = [], s = qs((l = d(e)) == null ? void 0 : l.key);
|
|
1788
|
+
return s && (s == null ? void 0 : s.length) > 0 && (s == null || s.forEach((i) => {
|
|
1789
|
+
a.push([{
|
|
1790
|
+
key: "contentPath",
|
|
1791
|
+
value: i
|
|
1792
|
+
}]);
|
|
1793
|
+
})), Fs((t = d(e)) == null ? void 0 : t.value, a);
|
|
1794
|
+
}, al = (e) => e.length === 1 && (e == null ? void 0 : e[0]) === void 0 ? [] : e, sl = (e) => {
|
|
1795
|
+
var s, r;
|
|
1796
|
+
return (r = (s = d(e)) == null ? void 0 : s.map((l) => {
|
|
1797
|
+
var i, p;
|
|
1798
|
+
let t = [];
|
|
1799
|
+
if ((i = Vs(l == null ? void 0 : l.filter((u) => (u == null ? void 0 : u.key) !== "contentPath"))) == null || i.forEach((u) => {
|
|
1800
|
+
var c, v, y, E, k, A, D, S, m, P, C, J, H, R, O, x;
|
|
1801
|
+
let n = [];
|
|
1802
|
+
if (u.length === 0)
|
|
1803
|
+
return;
|
|
1804
|
+
let o = (v = (c = u.find((g) => (g == null ? void 0 : g.key) === "tableColumn")) == null ? void 0 : c.value) == null ? void 0 : v.map((g) => ({
|
|
1805
|
+
label: g
|
|
1806
|
+
}));
|
|
1807
|
+
if (Array.isArray(o) && ((y = u == null ? void 0 : u.find((g) => (g == null ? void 0 : g.key) === "tablePath")) != null && y.value && ((E = u == null ? void 0 : u.find((g) => (g == null ? void 0 : g.key) === "tablePath")) == null ? void 0 : E.value) !== "" && o.push({
|
|
1808
|
+
columnPath: (k = u == null ? void 0 : u.find((g) => (g == null ? void 0 : g.key) === "tablePath")) == null ? void 0 : k.value
|
|
1809
|
+
}), o = (A = d(o)) == null ? void 0 : A.map((g) => {
|
|
1810
|
+
var T, _, G, U, I, q, ee, Q, W;
|
|
1811
|
+
return g != null && g.label && !((T = g == null ? void 0 : g.label) != null && T.includes("[")) ? g : {
|
|
1812
|
+
label: (G = (_ = d(g == null ? void 0 : g.label)) == null ? void 0 : _.split("[")) == null ? void 0 : G[0],
|
|
1813
|
+
formMenuSelect: (Q = (ee = (q = (I = (U = d(g == null ? void 0 : g.label)) == null ? void 0 : U.split("[")) == null ? void 0 : I[1]) == null ? void 0 : q.split("]")) == null ? void 0 : ee[0]) == null ? void 0 : Q.split("/"),
|
|
1814
|
+
columnPath: (g == null ? void 0 : g.columnPath) ?? "",
|
|
1815
|
+
isRoute: (W = g == null ? void 0 : g.label) == null ? void 0 : W.includes("(")
|
|
1816
|
+
};
|
|
1817
|
+
}), o.length !== 0 && o.push({
|
|
1818
|
+
label: "操作"
|
|
1819
|
+
})), u != null && u.find((g) => (g == null ? void 0 : g.key) === "formContent")) {
|
|
1820
|
+
const g = (D = u.find((_) => (_ == null ? void 0 : _.key) === "formContent")) == null ? void 0 : D.value;
|
|
1821
|
+
let T = [];
|
|
1822
|
+
Array.isArray(g) && g.forEach((_) => {
|
|
1823
|
+
let G = 1;
|
|
1824
|
+
Array.isArray(_) && (_ != null && _.every((U) => !Array.isArray(U))) && (G = _.length), _ && (Array.isArray(_) || (_ = [_]), _.forEach((U) => {
|
|
1825
|
+
Array.isArray(U) || (U = [U]);
|
|
1826
|
+
let I = [];
|
|
1827
|
+
U == null || U.forEach((q) => {
|
|
1828
|
+
var ee, Q, W, te, ae, oe, j, L, Y, se, X, ce, F, f, h, K;
|
|
1829
|
+
if (He.value++, !((Q = (ee = Object.values(q)) == null ? void 0 : ee[0]) != null && Q.includes("/") && ((te = (W = Object.values(q)) == null ? void 0 : W[0]) != null && te.includes("["))))
|
|
1830
|
+
I.push({
|
|
1831
|
+
id: He.value,
|
|
1832
|
+
key: (ae = Object.keys(q)) == null ? void 0 : ae[0],
|
|
1833
|
+
value: (oe = Object.values(q)) == null ? void 0 : oe[0],
|
|
1834
|
+
width: Math.max(G, U.length)
|
|
1835
|
+
});
|
|
1836
|
+
else {
|
|
1837
|
+
let b = (se = (Y = (L = (j = Object.values(q)) == null ? void 0 : j[0]) == null ? void 0 : L.split("[")) == null ? void 0 : Y[0]) == null ? void 0 : se.split("/"), w = (F = (ce = (X = Object.values(q)) == null ? void 0 : X[0]) == null ? void 0 : ce.split("[")) == null ? void 0 : F[1], M = (h = (f = w == null ? void 0 : w.slice(0, w.length - 1)) == null ? void 0 : f.split(":")) == null ? void 0 : h.map((N) => N.replaceAll("'", "")), z = M;
|
|
1838
|
+
(M == null ? void 0 : M.length) === 1 && z.unshift(""), I.push({
|
|
1839
|
+
id: He.value,
|
|
1840
|
+
key: (K = Object.keys(q)) == null ? void 0 : K[0],
|
|
1841
|
+
value: "",
|
|
1842
|
+
width: Math.max(G, U.length),
|
|
1843
|
+
type: "Select",
|
|
1844
|
+
optionUrl: {
|
|
1845
|
+
type: "Select",
|
|
1846
|
+
selectRelateType: "关联绑定列",
|
|
1847
|
+
menuSelect: b,
|
|
1848
|
+
groupSelect: z
|
|
1849
|
+
}
|
|
1850
|
+
});
|
|
1851
|
+
}
|
|
1852
|
+
}), I == null || I.forEach((q) => {
|
|
1853
|
+
T.push(q);
|
|
1854
|
+
});
|
|
1855
|
+
}));
|
|
1856
|
+
}), n.push({
|
|
1857
|
+
key: "formFlex",
|
|
1858
|
+
contents: ""
|
|
1859
|
+
}), n.push({
|
|
1860
|
+
key: "formContent",
|
|
1861
|
+
contents: T
|
|
1862
|
+
}), t.push({
|
|
1863
|
+
comp: "Form",
|
|
1864
|
+
compData: d(n),
|
|
1865
|
+
name: (m = (S = u.find((_) => (_ == null ? void 0 : _.key) === "groupName")) == null ? void 0 : S.value) == null ? void 0 : m.replaceAll("'", "")
|
|
1866
|
+
});
|
|
1867
|
+
} else u != null && u.find((g) => (g == null ? void 0 : g.key) === "extraButton") ? t.push({
|
|
1868
|
+
key: "extraButton",
|
|
1869
|
+
value: {
|
|
1870
|
+
method: (P = u == null ? void 0 : u.find((g) => (g == null ? void 0 : g.key) === "extraButton")) == null ? void 0 : P.value,
|
|
1871
|
+
value: [],
|
|
1872
|
+
path: (C = u == null ? void 0 : u.find((g) => (g == null ? void 0 : g.key) === "extraButton")) == null ? void 0 : C.path
|
|
1873
|
+
}
|
|
1874
|
+
}) : ((o == null ? void 0 : o.length) !== 0 || ((H = (J = u.find((g) => (g == null ? void 0 : g.key) === "tableContents")) == null ? void 0 : J.value) == null ? void 0 : H.length) > 0) && (n.push({
|
|
1875
|
+
key: "header",
|
|
1876
|
+
contents: o
|
|
1877
|
+
}), n.push({
|
|
1878
|
+
key: "tableContents",
|
|
1879
|
+
contents: al((R = u.find((g) => (g == null ? void 0 : g.key) === "tableContents")) == null ? void 0 : R.value)
|
|
1880
|
+
}), n.push({
|
|
1881
|
+
key: "extraButton",
|
|
1882
|
+
contents: [{ label: "新增" }]
|
|
1883
|
+
}), n.push({
|
|
1884
|
+
key: "rowButton",
|
|
1885
|
+
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
1886
|
+
}), t.push({
|
|
1887
|
+
comp: "Table",
|
|
1888
|
+
compData: n,
|
|
1889
|
+
name: (x = (O = u.find((g) => (g == null ? void 0 : g.key) === "groupName")) == null ? void 0 : O.value) == null ? void 0 : x.replaceAll("'", "")
|
|
1890
|
+
}));
|
|
1891
|
+
}), (t == null ? void 0 : t.length) > 0)
|
|
1892
|
+
return {
|
|
1893
|
+
comp: "Group",
|
|
1894
|
+
compData: [{
|
|
1895
|
+
key: "groupContents",
|
|
1896
|
+
contents: t
|
|
1897
|
+
}],
|
|
1898
|
+
name: (p = l == null ? void 0 : l.find((n) => (n == null ? void 0 : n.key) === "contentPath")) == null ? void 0 : p.value
|
|
1899
|
+
};
|
|
1900
|
+
})) == null ? void 0 : r.filter((l) => l);
|
|
1901
|
+
}, ll = (e) => {
|
|
1902
|
+
var p, u;
|
|
1903
|
+
let a = [];
|
|
1904
|
+
const s = Js(d(e));
|
|
1905
|
+
a.push(s);
|
|
1906
|
+
const r = Hs(d(e));
|
|
1907
|
+
r && a.push(r);
|
|
1908
|
+
const l = zs(d(e));
|
|
1909
|
+
l && ((p = d(l)) == null || p.forEach((n) => {
|
|
1910
|
+
a.push(n);
|
|
1911
|
+
}));
|
|
1912
|
+
const t = (u = d(e)) == null ? void 0 : u.filter((n) => {
|
|
1913
|
+
var o;
|
|
1914
|
+
return (o = n == null ? void 0 : n.key) == null ? void 0 : o.includes("(");
|
|
1915
|
+
}).map((n) => el(n)).filter((n) => (n == null ? void 0 : n.length) !== 0);
|
|
1916
|
+
let i = [];
|
|
1917
|
+
return t == null || t.forEach((n) => {
|
|
1918
|
+
n == null || n.forEach((o) => {
|
|
1919
|
+
i != null && i.find((c) => {
|
|
1920
|
+
var v, y;
|
|
1921
|
+
return ((v = c == null ? void 0 : c.find((E) => (E == null ? void 0 : E.key) === "contentPath")) == null ? void 0 : v.value) === ((y = o == null ? void 0 : o.find((E) => (E == null ? void 0 : E.key) === "contentPath")) == null ? void 0 : y.value);
|
|
1922
|
+
}) ? i = i == null ? void 0 : i.map((c) => {
|
|
1923
|
+
var y, E;
|
|
1924
|
+
return ((y = c == null ? void 0 : c.find((k) => (k == null ? void 0 : k.key) === "contentPath")) == null ? void 0 : y.value) === ((E = o == null ? void 0 : o.find((k) => (k == null ? void 0 : k.key) === "contentPath")) == null ? void 0 : E.value) && (c = [...c, ...o.filter((k) => (k == null ? void 0 : k.key) !== "contentPath")]), c;
|
|
1925
|
+
}) : i.push(o);
|
|
1926
|
+
});
|
|
1927
|
+
}), a = [...a, ...sl(i)], a;
|
|
1928
|
+
}, Tl = (e) => {
|
|
1929
|
+
var l, t, i;
|
|
1930
|
+
const a = (t = (l = ys(d(e))) == null ? void 0 : l.filter((p) => p !== "")) == null ? void 0 : t.map((p) => p.replaceAll("<", "[").replaceAll(">", "]")), s = (i = a == null ? void 0 : a.filter((p) => !p.includes("/*"))) == null ? void 0 : i.map((p) => ds(p));
|
|
1931
|
+
return ll(s);
|
|
1932
|
+
};
|
|
1933
|
+
export {
|
|
1934
|
+
Kl as _,
|
|
1935
|
+
Pl as a,
|
|
1936
|
+
El as b,
|
|
1937
|
+
Il as c,
|
|
1938
|
+
wl as d,
|
|
1939
|
+
Ll as e,
|
|
1940
|
+
xl as f,
|
|
1941
|
+
Nl as g,
|
|
1942
|
+
jl as h,
|
|
1943
|
+
Tl as i,
|
|
1944
|
+
bl as j,
|
|
1945
|
+
Ml as o,
|
|
1946
|
+
le as s
|
|
1947
|
+
};
|