ss-component-new 1.1.255 → 1.1.256
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-NRuqpA_a.js +4978 -0
- package/dist/array-uS_jzZMI.cjs +7 -0
- package/dist/{cloneDeep-Dyt41_L-.js → cloneDeep-D65qCr1M.js} +1 -1
- package/dist/{cloneDeep-C-pGUQKf.cjs → cloneDeep-DpFtWtui.cjs} +1 -1
- package/dist/{index-D2mqkg4c.cjs → index-5143SE2R.cjs} +1 -1
- package/dist/index-7eRz67Nr.js +908 -0
- package/dist/{index-CXnqXm6c.cjs → index-7hpm5RMu.cjs} +1 -1
- package/dist/index-9qLLF6Sz.cjs +1 -0
- package/dist/{index-DV6L8VsR.js → index-B1hAxVvT.js} +5 -5
- package/dist/index-B6QzxKzK.js +2115 -0
- package/dist/{index-BJGqjruN.js → index-BFWs_38B.js} +1 -1
- package/dist/{index-DY1Iv1Nz.js → index-BLY3jSMo.js} +8 -8
- package/dist/index-BLZ2LAOD.cjs +1 -0
- package/dist/{index-ZO1MQu0A.js → index-BOHz7nwR.js} +4 -4
- package/dist/index-BTruFGQP.cjs +1 -0
- package/dist/{index-ChBbyPw-.cjs → index-BZFuXIEF.cjs} +1 -1
- package/dist/index-BZRyqDKA.cjs +1 -0
- package/dist/index-Bb3Boi4X.js +373 -0
- package/dist/index-BgvNGJEj.cjs +1 -0
- package/dist/{index-VEIBSb0L.cjs → index-BjXTv-yp.cjs} +1 -1
- package/dist/{index-ChLhaUgK.cjs → index-BjoY1ow9.cjs} +175 -175
- package/dist/{index-Bvff3Rjc.js → index-BrNejk6v.js} +5 -5
- package/dist/{index-4QOp-GFW.js → index-BsDpqg06.js} +7 -7
- package/dist/{index-BPhMb7pK.js → index-BsqfcSII.js} +4 -4
- package/dist/{index-ByA8EBvo.cjs → index-CH5mx9VZ.cjs} +1 -1
- package/dist/index-CInyuIT4.cjs +1 -0
- package/dist/index-CRmbzY0-.cjs +1 -0
- package/dist/index-CSFgUZmi.cjs +9 -0
- package/dist/{index-BCY2xvgA.js → index-CVisVgQj.js} +1 -1
- package/dist/{index-Bb_UeGKJ.cjs → index-C_lPyJRy.cjs} +1 -1
- package/dist/{index-BqgOQWUB.js → index-Cs2XSpjM.js} +6 -6
- package/dist/{index-D_zly77U.js → index-Cs6aYNpY.js} +1985 -1932
- package/dist/index-CudxvfIs.js +33 -0
- package/dist/{index-D5Bz4nyQ.js → index-CwGC8R8R.js} +1 -1
- package/dist/{index-DsP7FB21.cjs → index-D4b6fLCT.cjs} +1 -1
- package/dist/index-DAwFQtgR.cjs +6 -0
- package/dist/{index-D2pc-BzQ.cjs → index-DG-rX-h9.cjs} +1 -1
- package/dist/{index-AmZEXNoQ.cjs → index-DKlDs6rr.cjs} +1 -1
- package/dist/{index-ChC7cQXw.cjs → index-DRO-doj3.cjs} +1 -1
- package/dist/{index-XqdyrkBW.js → index-DSSzfbXz.js} +8 -7
- package/dist/{index-exmBUjmZ.js → index-Ddt-py_9.js} +5 -5
- package/dist/index-DfM5skGF.cjs +1 -0
- package/dist/{index-CJz4osvs.js → index-DjljbsvQ.js} +6 -6
- package/dist/{index-Hiw-v6tJ.cjs → index-DmhJL6si.cjs} +1 -1
- package/dist/{index-CgreBJdF.js → index-DoVdmhVZ.js} +21 -20
- package/dist/{index-4zv-tITd.cjs → index-DordXHzi.cjs} +1 -1
- package/dist/{index-DmOEedex.js → index-GcvQB1OB.js} +13 -12
- package/dist/{index-DVpKjSNf.cjs → index-OGxpX9cx.cjs} +1 -1
- package/dist/index-S5bHuqsW.cjs +1 -0
- package/dist/{index-Bs2mNVJb.js → index-X2R-1WGH.js} +3 -3
- package/dist/{index-C9zbvQ_u.js → index-XU2dA5Uv.js} +24 -23
- package/dist/{index-DokJCYVc.cjs → index-jXB4NUd1.cjs} +1 -1
- package/dist/{index-BZCF6V6l.js → index-nfabzKkp.js} +4 -4
- package/dist/{index-DFaF-8_G.js → index-w1UtzHv-.js} +14 -17
- package/dist/index-yxASh3FK.js +3761 -0
- package/dist/{index-DVg2yzki.js → index-zRUxy31r.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BJKLFe1B.cjs → index.vue_vue_type_script_setup_true_lang-CIP77JiD.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DKt1jWSZ.js → index.vue_vue_type_script_setup_true_lang-Tw6PfjMa.js} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-CO9vJuxe.js +607 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-DwrbQWhT.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Br85-Gf0.js +304 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CaalWbFo.cjs +1 -0
- package/dist/{login-l8Wv_G2i.js → login-Cvjr869W.js} +6 -6
- package/dist/login-hlCYwdtY.cjs +1 -0
- package/dist/{main-WNNH9wBa.cjs → main-Cc3OSRwO.cjs} +1 -1
- package/dist/{main-AjMVz5uU.js → main-DNxdz1id.js} +6 -6
- package/dist/menu-BChIacAp.cjs +11 -0
- package/dist/menu-BjsF_u0O.js +4867 -0
- package/dist/{modelComp-CxFffZnZ.js → modelComp-BTVOfrd2.js} +1 -1
- package/dist/{modelComp-CyktectM.cjs → modelComp-BxHtQcEE.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +16 -16
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/array-D0ksMxBm.js +0 -4732
- package/dist/array-FnDBAqr_.cjs +0 -7
- package/dist/index-1L58FxXE.cjs +0 -1
- package/dist/index-BHBz_g9I.cjs +0 -1
- package/dist/index-BKvrNIq2.js +0 -4199
- package/dist/index-BLMAsu2L.cjs +0 -1
- package/dist/index-BT1bqIxy.js +0 -29
- package/dist/index-Bb-62WPF.cjs +0 -1
- package/dist/index-BeYOMEs2.js +0 -674
- package/dist/index-BipikeGR.js +0 -199
- package/dist/index-BjjXJSlm.cjs +0 -1
- package/dist/index-CNw33JR-.js +0 -371
- package/dist/index-DALSlEkV.cjs +0 -1
- package/dist/index-DRIDbmGM.cjs +0 -1
- package/dist/index-DeUj3yRd.cjs +0 -9
- package/dist/index-Dxbc5WoF.cjs +0 -1
- package/dist/index-HW8r5PRa.cjs +0 -1
- package/dist/index-JN1a_LH1.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-B7wukF06.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BJ_xZq3T.js +0 -304
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-ByetdKK8.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CUy9QkFH.js +0 -908
- package/dist/login-Bps4AQ46.cjs +0 -1
- package/dist/menu-BEvMDEbJ.js +0 -6783
- package/dist/menu-Cj-UKXED.cjs +0 -16
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -0,0 +1,908 @@
|
|
|
1
|
+
import { ref as x, onMounted as me, watch as q, createElementBlock as b, openBlock as h, Fragment as I, renderList as K, createElementVNode as m, createCommentVNode as O, normalizeStyle as Me, toDisplayString as B, resolveComponent as T, resolveDirective as ye, withDirectives as ve, createBlock as N, withCtx as w, createVNode as g, unref as r, createTextVNode as W, renderSlot as Z, resolveDynamicComponent as se, defineComponent as Ee, nextTick as xe } from "vue";
|
|
2
|
+
import { m as de, a as pe, b as _e } from "./index-BsDpqg06.js";
|
|
3
|
+
import ke from "./index-zRUxy31r.js";
|
|
4
|
+
import { p as z } from "./index-B6QzxKzK.js";
|
|
5
|
+
import { u as te } from "./modelComp-BTVOfrd2.js";
|
|
6
|
+
import { s as U, u as ae } from "./menu-BjsF_u0O.js";
|
|
7
|
+
import { c as Te, p as Pe, m as Ne, b as Ve, i as je, e as Fe, d as Ce, f as ge, a as Be } from "./array-NRuqpA_a.js";
|
|
8
|
+
import { I as le, u as Je, a as fe, t as Oe, l as we } from "./index-Cs6aYNpY.js";
|
|
9
|
+
import { o as be, c as Ae, a as Se, b as ee, s as Y, g as re, d as ue, e as ce, f as ie, _ as Le, h as Ue } from "./index.vue_vue_type_style_index_0_scoped_0cbc0899_lang-CO9vJuxe.js";
|
|
10
|
+
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
import { u as De } from "./login-Cvjr869W.js";
|
|
12
|
+
import { S as ne } from "./index-BHtNKL1L.js";
|
|
13
|
+
import { E as ze } from "./index-BLY3jSMo.js";
|
|
14
|
+
import { c as S } from "./cloneDeep-D65qCr1M.js";
|
|
15
|
+
const Re = { class: "bread-content" }, Ge = ["onClick"], We = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "split-title"
|
|
18
|
+
}, He = {
|
|
19
|
+
__name: "index",
|
|
20
|
+
props: {
|
|
21
|
+
breadArray: {
|
|
22
|
+
type: Array,
|
|
23
|
+
default: () => []
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["click"],
|
|
27
|
+
setup(a, { emit: i }) {
|
|
28
|
+
const e = a, s = x([]), _ = i;
|
|
29
|
+
me(() => {
|
|
30
|
+
s.value = e == null ? void 0 : e.breadArray;
|
|
31
|
+
}), q(
|
|
32
|
+
() => e == null ? void 0 : e.breadArray,
|
|
33
|
+
() => {
|
|
34
|
+
s.value = e == null ? void 0 : e.breadArray;
|
|
35
|
+
},
|
|
36
|
+
{ deep: !0, immediate: !0 }
|
|
37
|
+
);
|
|
38
|
+
const n = (o) => {
|
|
39
|
+
_("click", o);
|
|
40
|
+
};
|
|
41
|
+
return (o, l) => (h(), b("div", Re, [
|
|
42
|
+
(h(!0), b(I, null, K(s.value, (t, d) => {
|
|
43
|
+
var f;
|
|
44
|
+
return h(), b("div", {
|
|
45
|
+
key: d,
|
|
46
|
+
class: "bread-item"
|
|
47
|
+
}, [
|
|
48
|
+
m("div", {
|
|
49
|
+
class: "bread-title",
|
|
50
|
+
onClick: (y) => n(t),
|
|
51
|
+
style: Me({ opacity: ((f = s.value) == null ? void 0 : f.length) - 1 === d ? "0.7" : "1" })
|
|
52
|
+
}, B(t.value), 13, Ge),
|
|
53
|
+
d !== s.value.length - 1 && Array.isArray(s.value) ? (h(), b("div", We, B("/"))) : O("", !0)
|
|
54
|
+
]);
|
|
55
|
+
}), 128))
|
|
56
|
+
]));
|
|
57
|
+
}
|
|
58
|
+
}, $e = /* @__PURE__ */ Q(He, [["__scopeId", "data-v-ded7e2bd"]]), oe = (a) => {
|
|
59
|
+
const i = [];
|
|
60
|
+
let e = 0, s = "";
|
|
61
|
+
for (; e < a.length; ) {
|
|
62
|
+
const _ = a[e];
|
|
63
|
+
s = s + _, s[s.length - 1] === "]" && s[s.length - 2] === "}" && (i.push(s), s = ""), e++;
|
|
64
|
+
}
|
|
65
|
+
return i;
|
|
66
|
+
}, qe = (a) => {
|
|
67
|
+
let i = "";
|
|
68
|
+
return a == null || a.forEach((e, s) => {
|
|
69
|
+
s !== 0 && (i = i + e);
|
|
70
|
+
}), i;
|
|
71
|
+
}, Qe = (a, i) => {
|
|
72
|
+
var _;
|
|
73
|
+
const e = [], s = i.length;
|
|
74
|
+
return (_ = S(i)) == null || _.forEach((n, o) => {
|
|
75
|
+
let l = [];
|
|
76
|
+
n == null || n.forEach((t) => {
|
|
77
|
+
var d, f, y, v, J, V;
|
|
78
|
+
if (le(a.replaceAll("'", '"')))
|
|
79
|
+
(d = JSON.parse(a.replaceAll("'", '"'))) == null || d.forEach((k) => {
|
|
80
|
+
e.push([{
|
|
81
|
+
key: t == null ? void 0 : t.key,
|
|
82
|
+
value: (t == null ? void 0 : t.value) + "/" + k
|
|
83
|
+
}]);
|
|
84
|
+
});
|
|
85
|
+
else {
|
|
86
|
+
l.push(t);
|
|
87
|
+
let k;
|
|
88
|
+
S(oe(a)).length === 1 ? k = S(oe(a)) : k = (f = S(oe(a))) == null ? void 0 : f.map((p) => p.slice(1, p.length)), k = k == null ? void 0 : k.map((p) => {
|
|
89
|
+
var u, A, P;
|
|
90
|
+
const D = p.slice(1, p.length - 1), c = (u = S(D).split(":")) == null ? void 0 : u[0];
|
|
91
|
+
let j = "{" + ((A = D.split("{")) == null ? void 0 : A[1]);
|
|
92
|
+
j = S(j).slice(1, j.length - 1);
|
|
93
|
+
let F = qe(j.split(":")), M = le(F.replaceAll("'", '"')) ? JSON.parse(F.replaceAll("'", '"')) : JSON.parse(F.slice(0, F.length - 1).replaceAll("'", '"'));
|
|
94
|
+
return {
|
|
95
|
+
groupName: c.slice(1, c.length - 1).includes("[") ? "" : c.slice(1, c.length - 1),
|
|
96
|
+
tableColumn: JSON.parse(((P = j.split(":")) == null ? void 0 : P[0]).replaceAll("'", '"')),
|
|
97
|
+
tableContents: M
|
|
98
|
+
};
|
|
99
|
+
}), s > 1 && k.length === 1 ? (l.push({
|
|
100
|
+
key: "groupName",
|
|
101
|
+
value: (y = k == null ? void 0 : k[0]) == null ? void 0 : y.groupName
|
|
102
|
+
}), l.push({
|
|
103
|
+
key: "tableColumn",
|
|
104
|
+
value: (v = k == null ? void 0 : k[0]) == null ? void 0 : v.tableColumn
|
|
105
|
+
}), l.push({
|
|
106
|
+
key: "tableContents",
|
|
107
|
+
value: [(V = (J = k == null ? void 0 : k[0]) == null ? void 0 : J.tableContents) == null ? void 0 : V[o]]
|
|
108
|
+
})) : k == null || k.forEach((p) => {
|
|
109
|
+
var c, j, F, M, u, A;
|
|
110
|
+
let D;
|
|
111
|
+
Array.isArray((c = p == null ? void 0 : p.tableContents) == null ? void 0 : c[o]) ? D = (F = (j = p == null ? void 0 : p.tableContents) == null ? void 0 : j[o]) != null && F.every((P) => Array.isArray(P)) ? (M = p == null ? void 0 : p.tableContents) == null ? void 0 : M[o] : [(u = p == null ? void 0 : p.tableContents) == null ? void 0 : u[o]] : D = [[(A = p == null ? void 0 : p.tableContents) == null ? void 0 : A[o]]], l.push({
|
|
112
|
+
key: "groupName",
|
|
113
|
+
value: p == null ? void 0 : p.groupName
|
|
114
|
+
}), l.push({
|
|
115
|
+
key: "tableColumn",
|
|
116
|
+
value: p == null ? void 0 : p.tableColumn
|
|
117
|
+
}), l.push({
|
|
118
|
+
key: "tableContents",
|
|
119
|
+
value: D
|
|
120
|
+
});
|
|
121
|
+
}), e.push(l);
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}), e;
|
|
125
|
+
}, he = (a) => {
|
|
126
|
+
const i = [];
|
|
127
|
+
let e = !1;
|
|
128
|
+
return a.forEach((s) => {
|
|
129
|
+
Array.isArray(s) && (e = !0, s.forEach((_) => {
|
|
130
|
+
const n = a.map((o) => o === s ? _ : o);
|
|
131
|
+
i.push(...he(n));
|
|
132
|
+
}));
|
|
133
|
+
}), e ? i : [a];
|
|
134
|
+
}, Xe = (a) => {
|
|
135
|
+
var _, n;
|
|
136
|
+
const i = (_ = a.map((o) => {
|
|
137
|
+
var t, d;
|
|
138
|
+
let l = (d = (t = o.key.split("(")) == null ? void 0 : t[1]) == null ? void 0 : d.trim();
|
|
139
|
+
return l == null ? void 0 : l.slice(0, l.length - 1);
|
|
140
|
+
})) == null ? void 0 : _.filter((o) => o), e = [];
|
|
141
|
+
i == null || i.forEach((o) => {
|
|
142
|
+
var d;
|
|
143
|
+
const l = S(o).replaceAll("{", "").replaceAll("}", "").trim();
|
|
144
|
+
let t = [];
|
|
145
|
+
l.split(":").forEach((f) => {
|
|
146
|
+
var y;
|
|
147
|
+
if (f.includes("[")) {
|
|
148
|
+
const v = (y = f.slice(1, f.length - 1)) == null ? void 0 : y.split(",");
|
|
149
|
+
t.push(v);
|
|
150
|
+
} else
|
|
151
|
+
t.push(f);
|
|
152
|
+
}), (d = he(t)) == null || d.forEach((f) => {
|
|
153
|
+
e.push(f);
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
const s = (n = e == null ? void 0 : e.filter((o) => o.length !== 0)) == null ? void 0 : n.map((o) => {
|
|
157
|
+
let l = "";
|
|
158
|
+
return o.forEach((t) => {
|
|
159
|
+
t.includes("{") || (l = l === "" ? l + S(t) : l + "/" + S(t));
|
|
160
|
+
}), l;
|
|
161
|
+
});
|
|
162
|
+
return Ne([...new Set(s)]);
|
|
163
|
+
}, Ye = (a) => {
|
|
164
|
+
var o, l;
|
|
165
|
+
if (!a) return;
|
|
166
|
+
let i = [];
|
|
167
|
+
const e = Ve(a), s = S(e).replaceAll("{", "").replaceAll("}", "").trim();
|
|
168
|
+
let _ = [];
|
|
169
|
+
return s.split(":").forEach((t) => {
|
|
170
|
+
var d;
|
|
171
|
+
if (t.includes("[")) {
|
|
172
|
+
const f = (d = t.slice(1, t.length - 1)) == null ? void 0 : d.split(",");
|
|
173
|
+
_.push(f);
|
|
174
|
+
} else
|
|
175
|
+
_.push(t);
|
|
176
|
+
}), (o = he(_)) == null || o.forEach((t) => {
|
|
177
|
+
i.push(t);
|
|
178
|
+
}), (l = i == null ? void 0 : i.filter((t) => t.length !== 0)) == null ? void 0 : l.map((t) => {
|
|
179
|
+
let d = "";
|
|
180
|
+
return t.forEach((f) => {
|
|
181
|
+
f.includes("{") || (d = d === "" ? d + S(f) : d + "/" + S(f));
|
|
182
|
+
}), d;
|
|
183
|
+
});
|
|
184
|
+
}, Ze = (a) => ({
|
|
185
|
+
comp: "MenuTop",
|
|
186
|
+
compData: [
|
|
187
|
+
{
|
|
188
|
+
key: "menuContents",
|
|
189
|
+
contents: JSON.parse(a == null ? void 0 : a.value.trim().replaceAll("'", '"'))
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
name: ""
|
|
193
|
+
}), Ie = (a) => {
|
|
194
|
+
const i = [], e = Ye(a == null ? void 0 : a.key);
|
|
195
|
+
return e && (e == null ? void 0 : e.length) > 0 && (e == null || e.forEach((_) => {
|
|
196
|
+
i.push([{
|
|
197
|
+
key: "contentPath",
|
|
198
|
+
value: _
|
|
199
|
+
}]);
|
|
200
|
+
})), Qe(a == null ? void 0 : a.value, i);
|
|
201
|
+
}, Ke = (a) => {
|
|
202
|
+
const i = [];
|
|
203
|
+
let e = [];
|
|
204
|
+
return a == null || a.forEach((s, _) => {
|
|
205
|
+
var n;
|
|
206
|
+
(e == null ? void 0 : e.length) === 0 ? e.push(s) : (e.push(s), ((n = a[_ + 1]) == null ? void 0 : n.key) === "groupName" && (i.push(e), e = []));
|
|
207
|
+
}), i.push(e), i;
|
|
208
|
+
}, en = (a) => {
|
|
209
|
+
var e;
|
|
210
|
+
return (e = S(a)) == null ? void 0 : e.map((s) => {
|
|
211
|
+
var o, l;
|
|
212
|
+
let _ = [];
|
|
213
|
+
return (o = Ke(s == null ? void 0 : s.filter((t) => (t == null ? void 0 : t.key) !== "contentPath"))) == null || o.forEach((t) => {
|
|
214
|
+
var y, v, J, V, k, p, D;
|
|
215
|
+
let d = [];
|
|
216
|
+
if (!((y = t.find((c) => (c == null ? void 0 : c.key) === "tableColumn")) != null && y.value))
|
|
217
|
+
return;
|
|
218
|
+
const f = Array.isArray((v = t.find((c) => (c == null ? void 0 : c.key) === "tableColumn")) == null ? void 0 : v.value) ? (V = (J = t.find((c) => (c == null ? void 0 : c.key) === "tableColumn")) == null ? void 0 : J.value) == null ? void 0 : V.map((c) => ({
|
|
219
|
+
label: c
|
|
220
|
+
})) : [(k = t.find((c) => (c == null ? void 0 : c.key) === "tableColumn")) == null ? void 0 : k.value].map((c) => ({
|
|
221
|
+
label: c
|
|
222
|
+
}));
|
|
223
|
+
f.length !== 0 && f.push({
|
|
224
|
+
label: "操作"
|
|
225
|
+
}), d.push({
|
|
226
|
+
key: "header",
|
|
227
|
+
contents: f
|
|
228
|
+
}), d.push({
|
|
229
|
+
key: "tableContents",
|
|
230
|
+
contents: (p = t.find((c) => (c == null ? void 0 : c.key) === "tableContents")) == null ? void 0 : p.value
|
|
231
|
+
}), d.push({
|
|
232
|
+
key: "extraButton",
|
|
233
|
+
contents: [{ label: "新增" }]
|
|
234
|
+
}), d.push({
|
|
235
|
+
key: "rowButton",
|
|
236
|
+
contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
|
|
237
|
+
}), _.push({
|
|
238
|
+
comp: "Table",
|
|
239
|
+
compData: d,
|
|
240
|
+
name: (D = t.find((c) => (c == null ? void 0 : c.key) === "groupName")) == null ? void 0 : D.value
|
|
241
|
+
});
|
|
242
|
+
}), {
|
|
243
|
+
comp: "Group",
|
|
244
|
+
compData: [{
|
|
245
|
+
key: "groupContents",
|
|
246
|
+
contents: _
|
|
247
|
+
}],
|
|
248
|
+
name: (l = s == null ? void 0 : s.find((t) => (t == null ? void 0 : t.key) === "contentPath")) == null ? void 0 : l.value
|
|
249
|
+
};
|
|
250
|
+
});
|
|
251
|
+
}, nn = (a) => {
|
|
252
|
+
var _;
|
|
253
|
+
let i = [];
|
|
254
|
+
i.push({
|
|
255
|
+
comp: "Menu",
|
|
256
|
+
compData: [{
|
|
257
|
+
contents: Xe(S(a)),
|
|
258
|
+
key: "menuContents"
|
|
259
|
+
}],
|
|
260
|
+
name: ""
|
|
261
|
+
}), a != null && a.find((n) => {
|
|
262
|
+
var o;
|
|
263
|
+
return !((o = n == null ? void 0 : n.key) != null && o.includes("("));
|
|
264
|
+
}) && ((_ = a == null ? void 0 : a.filter((n) => {
|
|
265
|
+
var o;
|
|
266
|
+
return !((o = n == null ? void 0 : n.key) != null && o.includes("("));
|
|
267
|
+
})) == null || _.forEach((n) => {
|
|
268
|
+
le(n.value.replaceAll("'", '"')) && Array.isArray(JSON.parse(n.value.replaceAll("'", '"'))) ? i.push(Ze(n)) : i.push({
|
|
269
|
+
comp: "System",
|
|
270
|
+
compData: [
|
|
271
|
+
{
|
|
272
|
+
key: "type",
|
|
273
|
+
contents: [n.value]
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
});
|
|
277
|
+
}));
|
|
278
|
+
const e = a == null ? void 0 : a.filter((n) => {
|
|
279
|
+
var o;
|
|
280
|
+
return (o = n == null ? void 0 : n.key) == null ? void 0 : o.includes("(");
|
|
281
|
+
}).map((n) => Ie(n)).filter((n) => (n == null ? void 0 : n.length) !== 0);
|
|
282
|
+
let s = [];
|
|
283
|
+
return e == null || e.forEach((n) => {
|
|
284
|
+
n == null || n.forEach((o) => {
|
|
285
|
+
s != null && s.find((l) => {
|
|
286
|
+
var t, d;
|
|
287
|
+
return ((t = l == null ? void 0 : l.find((f) => (f == null ? void 0 : f.key) === "contentPath")) == null ? void 0 : t.value) === ((d = o == null ? void 0 : o.find((f) => (f == null ? void 0 : f.key) === "contentPath")) == null ? void 0 : d.value);
|
|
288
|
+
}) ? s = s == null ? void 0 : s.map((l) => {
|
|
289
|
+
var d, f;
|
|
290
|
+
return ((d = l == null ? void 0 : l.find((y) => (y == null ? void 0 : y.key) === "contentPath")) == null ? void 0 : d.value) === ((f = o == null ? void 0 : o.find((y) => (y == null ? void 0 : y.key) === "contentPath")) == null ? void 0 : f.value) && (l = [...l, ...o.filter((y) => (y == null ? void 0 : y.key) !== "contentPath")]), l;
|
|
291
|
+
}) : s.push(o);
|
|
292
|
+
});
|
|
293
|
+
}), i = [...i, ...en(s)], i;
|
|
294
|
+
}, tn = (a) => {
|
|
295
|
+
var _, n, o, l, t;
|
|
296
|
+
const i = (o = Te((n = (_ = S(a)) == null ? void 0 : _.replace("(", "(")) == null ? void 0 : n.replace(")", ")"))) == null ? void 0 : o.filter((d) => d !== ""), e = (t = (l = S(i)) == null ? void 0 : l.filter((d) => !d.includes("/*"))) == null ? void 0 : t.map((d) => Pe(d));
|
|
297
|
+
return nn(e);
|
|
298
|
+
}, an = { class: "item-menu-content" }, on = { class: "item-left-content" }, sn = {
|
|
299
|
+
key: 0,
|
|
300
|
+
class: "page-icon"
|
|
301
|
+
}, ln = { class: "avatar" }, rn = { style: { display: "flex" } }, un = { class: "select-icon" }, cn = {
|
|
302
|
+
key: 0,
|
|
303
|
+
class: "model-operate",
|
|
304
|
+
style: { width: "0px" }
|
|
305
|
+
}, dn = { class: "model-select" }, pn = { class: "model-fill" }, _n = {
|
|
306
|
+
key: 1,
|
|
307
|
+
class: "show-main-content"
|
|
308
|
+
}, fn = { class: "show-content" }, hn = { class: "item-view-group" }, Cn = { class: "show-item-content" }, gn = { class: "item-view-group" }, mn = {
|
|
309
|
+
key: 2,
|
|
310
|
+
class: "show-main-content"
|
|
311
|
+
}, yn = {
|
|
312
|
+
__name: "browser",
|
|
313
|
+
props: {
|
|
314
|
+
content: String,
|
|
315
|
+
jsonContents: Array
|
|
316
|
+
},
|
|
317
|
+
emits: ["change", "contentChange"],
|
|
318
|
+
setup(a, { emit: i }) {
|
|
319
|
+
const e = De(), { loginUserInfo: s, cryptoInfo: _ } = U(e);
|
|
320
|
+
me(() => {
|
|
321
|
+
ze({
|
|
322
|
+
title: "温馨提示:",
|
|
323
|
+
type: "success",
|
|
324
|
+
message: "欢迎使用系统",
|
|
325
|
+
duration: 1e3
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
const n = te(z);
|
|
329
|
+
Je(z), x(!0);
|
|
330
|
+
const o = ae();
|
|
331
|
+
x(!0);
|
|
332
|
+
const { itemData: l, isEdit: t, isRefreshCurStructure: d, curStructureCompIds: f } = U(n), y = fe(z), { activeMenuPath: v, menus: J, importLoading: V } = U(o), { selectIndex: k, selectTitle: p } = U(y);
|
|
333
|
+
return x([]), x(!1), (D, c) => {
|
|
334
|
+
const j = T("el-aside"), F = T("el-button"), M = T("el-avatar"), u = T("el-header"), A = T("router-view"), P = T("el-main"), E = T("el-container"), H = ye("loading");
|
|
335
|
+
return ve((h(), N(E, { "element-loading-text": "正在加载页面数据..." }, {
|
|
336
|
+
default: w(() => [
|
|
337
|
+
r(t) === "view" ? (h(), N(j, {
|
|
338
|
+
key: 0,
|
|
339
|
+
width: "250px"
|
|
340
|
+
}, {
|
|
341
|
+
default: w(() => [
|
|
342
|
+
g(ke, { mode: "vertical" })
|
|
343
|
+
]),
|
|
344
|
+
_: 1
|
|
345
|
+
})) : O("", !0),
|
|
346
|
+
g(E, null, {
|
|
347
|
+
default: w(() => [
|
|
348
|
+
g(u, null, {
|
|
349
|
+
default: w(() => {
|
|
350
|
+
var $;
|
|
351
|
+
return [
|
|
352
|
+
m("div", an, [
|
|
353
|
+
m("div", on, [
|
|
354
|
+
r(t) === "edit" ? (h(), b("div", sn, [
|
|
355
|
+
g(F, {
|
|
356
|
+
text: "",
|
|
357
|
+
onClick: r(be)
|
|
358
|
+
}, {
|
|
359
|
+
default: w(() => c[2] || (c[2] = [
|
|
360
|
+
W(" 返回页面 ")
|
|
361
|
+
])),
|
|
362
|
+
_: 1,
|
|
363
|
+
__: [2]
|
|
364
|
+
}, 8, ["onClick"]),
|
|
365
|
+
g(F, {
|
|
366
|
+
text: "",
|
|
367
|
+
onClick: c[0] || (c[0] = (L) => {
|
|
368
|
+
var R, X;
|
|
369
|
+
return r(Ae)((X = (R = r(p)) == null ? void 0 : R.map((C) => C.value)) == null ? void 0 : X.join("/"));
|
|
370
|
+
})
|
|
371
|
+
}, {
|
|
372
|
+
icon: w(() => [
|
|
373
|
+
g(ne, { name: "Store" })
|
|
374
|
+
]),
|
|
375
|
+
default: w(() => [
|
|
376
|
+
c[3] || (c[3] = W(" 保存页面 "))
|
|
377
|
+
]),
|
|
378
|
+
_: 1,
|
|
379
|
+
__: [3]
|
|
380
|
+
})
|
|
381
|
+
])) : O("", !0),
|
|
382
|
+
(h(), N($e, {
|
|
383
|
+
key: r(p),
|
|
384
|
+
breadArray: r(p),
|
|
385
|
+
onClick: r(Se)
|
|
386
|
+
}, null, 8, ["breadArray", "onClick"]))
|
|
387
|
+
]),
|
|
388
|
+
m("div", ln, [
|
|
389
|
+
r(t) === "view" ? (h(), b("div", {
|
|
390
|
+
key: 0,
|
|
391
|
+
class: "select-icon",
|
|
392
|
+
onClick: c[1] || (c[1] = (...L) => r(ee) && r(ee)(...L))
|
|
393
|
+
}, [
|
|
394
|
+
m("div", rn, [
|
|
395
|
+
g(ne, {
|
|
396
|
+
name: "write",
|
|
397
|
+
style: { width: "16px", height: "16px" }
|
|
398
|
+
})
|
|
399
|
+
]),
|
|
400
|
+
c[4] || (c[4] = m("div", null, B("修改布局"), -1))
|
|
401
|
+
])) : O("", !0),
|
|
402
|
+
m("div", un, [
|
|
403
|
+
Z(D.$slots, "default", {}, void 0, !0)
|
|
404
|
+
]),
|
|
405
|
+
g(M, {
|
|
406
|
+
size: 35,
|
|
407
|
+
src: ($ = r(s)) == null ? void 0 : $.avatarUrl
|
|
408
|
+
}, {
|
|
409
|
+
default: w(() => {
|
|
410
|
+
var L;
|
|
411
|
+
return [
|
|
412
|
+
W(B(((L = r(s)) == null ? void 0 : L.account) ?? "未知"), 1)
|
|
413
|
+
];
|
|
414
|
+
}),
|
|
415
|
+
_: 1
|
|
416
|
+
}, 8, ["src"])
|
|
417
|
+
])
|
|
418
|
+
])
|
|
419
|
+
];
|
|
420
|
+
}),
|
|
421
|
+
_: 3
|
|
422
|
+
}),
|
|
423
|
+
g(P, null, {
|
|
424
|
+
default: w(() => {
|
|
425
|
+
var $, L, R, X;
|
|
426
|
+
return [
|
|
427
|
+
r(t) === "edit" ? (h(), b("div", cn, [
|
|
428
|
+
m("div", dn, [
|
|
429
|
+
g(de)
|
|
430
|
+
]),
|
|
431
|
+
(h(), b("div", {
|
|
432
|
+
class: "model-show",
|
|
433
|
+
key: D.innerWidth
|
|
434
|
+
}, [
|
|
435
|
+
g(pe)
|
|
436
|
+
])),
|
|
437
|
+
m("div", pn, [
|
|
438
|
+
g(_e)
|
|
439
|
+
])
|
|
440
|
+
])) : D.$route.path === "/" && (($ = r(Y)) == null ? void 0 : $.length) > 0 && r(t) === "view" ? (h(), b("div", _n, [
|
|
441
|
+
m("div", fn, [
|
|
442
|
+
(L = r(S)(r(Y))) != null && L.find((C) => C.comp === "FormTop") ? (h(), b("div", {
|
|
443
|
+
class: "show-header",
|
|
444
|
+
key: D.index
|
|
445
|
+
}, [
|
|
446
|
+
(h(!0), b(I, null, K((R = r(S)(r(Y))) == null ? void 0 : R.filter((C) => C.comp === "FormTop"), (C, G) => (h(), b("div", {
|
|
447
|
+
class: "item-content",
|
|
448
|
+
key: G
|
|
449
|
+
}, [
|
|
450
|
+
m("div", hn, B(C.name), 1),
|
|
451
|
+
(h(), N(se(r(re)(C.comp)), {
|
|
452
|
+
itemData: C == null ? void 0 : C.compData,
|
|
453
|
+
childItemData: C == null ? void 0 : C.itemChildData,
|
|
454
|
+
key: (C == null ? void 0 : C.id) ?? G,
|
|
455
|
+
onChange: r(ie),
|
|
456
|
+
index: (C == null ? void 0 : C.id) ?? G,
|
|
457
|
+
onContentChange: r(ce),
|
|
458
|
+
onPageChange: r(ue)
|
|
459
|
+
}, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
460
|
+
]))), 128))
|
|
461
|
+
])) : O("", !0),
|
|
462
|
+
m("div", Cn, [
|
|
463
|
+
(h(!0), b(I, null, K((X = r(S)(r(Y))) == null ? void 0 : X.filter((C) => C.comp !== "FormTop"), (C, G) => (h(), b("div", {
|
|
464
|
+
class: "item-content",
|
|
465
|
+
key: G
|
|
466
|
+
}, [
|
|
467
|
+
m("div", gn, B(C.name), 1),
|
|
468
|
+
(h(), N(se(r(re)(C.comp)), {
|
|
469
|
+
itemData: C == null ? void 0 : C.compData,
|
|
470
|
+
childItemData: C == null ? void 0 : C.itemChildData,
|
|
471
|
+
key: (C == null ? void 0 : C.id) ?? G,
|
|
472
|
+
onChange: r(ie),
|
|
473
|
+
index: (C == null ? void 0 : C.id) ?? G,
|
|
474
|
+
onContentChange: r(ce),
|
|
475
|
+
onPageChange: r(ue)
|
|
476
|
+
}, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
477
|
+
]))), 128))
|
|
478
|
+
])
|
|
479
|
+
])
|
|
480
|
+
])) : r(t) === "view" ? (h(), b("div", mn, [
|
|
481
|
+
g(A)
|
|
482
|
+
])) : O("", !0)
|
|
483
|
+
];
|
|
484
|
+
}),
|
|
485
|
+
_: 1
|
|
486
|
+
})
|
|
487
|
+
]),
|
|
488
|
+
_: 3
|
|
489
|
+
})
|
|
490
|
+
]),
|
|
491
|
+
_: 3
|
|
492
|
+
})), [
|
|
493
|
+
[H, r(V)]
|
|
494
|
+
]);
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
}, vn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-ef767374"]]);
|
|
498
|
+
function kn(a, i, e, s, _, n) {
|
|
499
|
+
const o = T("DynamicIcon"), l = T("ssMenu");
|
|
500
|
+
return h(), N(l, {
|
|
501
|
+
mode: a.mode,
|
|
502
|
+
menuList: a.renderMenuList,
|
|
503
|
+
onClickMenu: a.clickMenu,
|
|
504
|
+
onOpenMenu: a.openMenu,
|
|
505
|
+
onCloseMenu: a.closeMenu
|
|
506
|
+
}, {
|
|
507
|
+
title: w(({ menu: t }) => [
|
|
508
|
+
g(o, {
|
|
509
|
+
name: t.icon ?? ""
|
|
510
|
+
}, null, 8, ["name"]),
|
|
511
|
+
m("span", null, B(t.title ?? ""), 1)
|
|
512
|
+
]),
|
|
513
|
+
_: 1
|
|
514
|
+
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
515
|
+
}
|
|
516
|
+
const wn = /* @__PURE__ */ Q(Le, [["render", kn], ["__scopeId", "data-v-93a3198a"]]), bn = { class: "structure-buttons" }, An = { class: "structure-paths" }, Sn = { class: "client-header-user" }, Dn = { class: "select-icon" }, $n = { class: "model-select" }, Mn = { class: "model-show" }, En = { class: "model-fill" }, xn = { class: "client-header-menu" }, Tn = { class: "client-header-user" }, Pn = { style: { display: "flex" } }, Nn = { class: "select-icon" }, Vn = { class: "client-main-content" }, jn = { class: "client-main-operate" }, Fn = { class: "item-view-group" }, Bn = /* @__PURE__ */ Ee({
|
|
517
|
+
__name: "client",
|
|
518
|
+
setup(a) {
|
|
519
|
+
const i = fe(z), { selectTitle: e } = U(i), s = De(), { loginUserInfo: _ } = U(s), n = te(z), { isEdit: o } = U(n), l = ae(), { importLoading: t, activeMenuPath: d } = U(l), f = x(!1);
|
|
520
|
+
return q(() => d.value, async (y) => {
|
|
521
|
+
y && (await xe(), f.value = !f.value);
|
|
522
|
+
}, { immediate: !0 }), (y, v) => {
|
|
523
|
+
const J = T("el-button"), V = T("el-avatar"), k = T("el-header"), p = T("el-container"), D = T("el-aside"), c = T("el-main"), j = T("router-view"), F = ye("loading");
|
|
524
|
+
return r(o) === "edit" ? (h(), N(p, {
|
|
525
|
+
key: 0,
|
|
526
|
+
class: "client-container"
|
|
527
|
+
}, {
|
|
528
|
+
default: w(() => [
|
|
529
|
+
g(k, { class: "client-structure-header" }, {
|
|
530
|
+
default: w(() => {
|
|
531
|
+
var M;
|
|
532
|
+
return [
|
|
533
|
+
m("div", bn, [
|
|
534
|
+
g(J, {
|
|
535
|
+
class: "select-icon",
|
|
536
|
+
onClick: r(be)
|
|
537
|
+
}, {
|
|
538
|
+
default: w(() => v[2] || (v[2] = [
|
|
539
|
+
W(" 返回页面 ")
|
|
540
|
+
])),
|
|
541
|
+
_: 1,
|
|
542
|
+
__: [2]
|
|
543
|
+
}, 8, ["onClick"]),
|
|
544
|
+
g(J, {
|
|
545
|
+
class: "select-icon",
|
|
546
|
+
onClick: v[0] || (v[0] = (u) => {
|
|
547
|
+
var A, P;
|
|
548
|
+
return r(Ae)((P = (A = r(e)) == null ? void 0 : A.map((E) => E.value)) == null ? void 0 : P.join("/"));
|
|
549
|
+
})
|
|
550
|
+
}, {
|
|
551
|
+
icon: w(() => [
|
|
552
|
+
g(ne, { name: "Store" })
|
|
553
|
+
]),
|
|
554
|
+
default: w(() => [
|
|
555
|
+
v[3] || (v[3] = W(" 保存页面 "))
|
|
556
|
+
]),
|
|
557
|
+
_: 1,
|
|
558
|
+
__: [3]
|
|
559
|
+
})
|
|
560
|
+
]),
|
|
561
|
+
m("div", An, [
|
|
562
|
+
(h(), N($e, {
|
|
563
|
+
key: r(e),
|
|
564
|
+
breadArray: r(e),
|
|
565
|
+
onClick: r(Se)
|
|
566
|
+
}, null, 8, ["breadArray", "onClick"]))
|
|
567
|
+
]),
|
|
568
|
+
m("div", Sn, [
|
|
569
|
+
m("div", Dn, [
|
|
570
|
+
Z(y.$slots, "default", {}, void 0, !0)
|
|
571
|
+
]),
|
|
572
|
+
g(V, {
|
|
573
|
+
size: 35,
|
|
574
|
+
src: (M = r(_)) == null ? void 0 : M.avatarUrl
|
|
575
|
+
}, {
|
|
576
|
+
default: w(() => {
|
|
577
|
+
var u;
|
|
578
|
+
return [
|
|
579
|
+
W(B(((u = r(_)) == null ? void 0 : u.account) ?? "未知"), 1)
|
|
580
|
+
];
|
|
581
|
+
}),
|
|
582
|
+
_: 1
|
|
583
|
+
}, 8, ["src"])
|
|
584
|
+
])
|
|
585
|
+
];
|
|
586
|
+
}),
|
|
587
|
+
_: 3
|
|
588
|
+
}),
|
|
589
|
+
r(o) === "edit" ? (h(), N(p, {
|
|
590
|
+
key: 0,
|
|
591
|
+
class: "model-operate",
|
|
592
|
+
style: { "margin-top": "10px", height: "0px" }
|
|
593
|
+
}, {
|
|
594
|
+
default: w(() => [
|
|
595
|
+
m("div", $n, [
|
|
596
|
+
g(de)
|
|
597
|
+
]),
|
|
598
|
+
m("div", Mn, [
|
|
599
|
+
g(pe)
|
|
600
|
+
]),
|
|
601
|
+
m("div", En, [
|
|
602
|
+
g(_e)
|
|
603
|
+
])
|
|
604
|
+
]),
|
|
605
|
+
_: 1
|
|
606
|
+
})) : O("", !0)
|
|
607
|
+
]),
|
|
608
|
+
_: 3
|
|
609
|
+
})) : ve((h(), N(p, {
|
|
610
|
+
key: 1,
|
|
611
|
+
class: "client-container",
|
|
612
|
+
"element-loading-text": "正在加载页面数据..."
|
|
613
|
+
}, {
|
|
614
|
+
default: w(() => [
|
|
615
|
+
g(k, { class: "client-header" }, {
|
|
616
|
+
default: w(() => {
|
|
617
|
+
var M;
|
|
618
|
+
return [
|
|
619
|
+
v[5] || (v[5] = m("div", { class: "client-header-logo" }, " 复杂型面一体化软硬件平台 ", -1)),
|
|
620
|
+
m("div", xn, [
|
|
621
|
+
g(wn, { mode: "horizontal" })
|
|
622
|
+
]),
|
|
623
|
+
m("div", Tn, [
|
|
624
|
+
r(o) === "view" ? (h(), b("div", {
|
|
625
|
+
key: 0,
|
|
626
|
+
class: "select-icon",
|
|
627
|
+
onClick: v[1] || (v[1] = //@ts-ignore
|
|
628
|
+
(...u) => r(ee) && r(ee)(...u))
|
|
629
|
+
}, [
|
|
630
|
+
m("div", Pn, [
|
|
631
|
+
g(ne, {
|
|
632
|
+
name: "write",
|
|
633
|
+
style: { width: "16px", height: "16px" }
|
|
634
|
+
})
|
|
635
|
+
]),
|
|
636
|
+
v[4] || (v[4] = m("div", null, B("修改布局"), -1))
|
|
637
|
+
])) : O("", !0),
|
|
638
|
+
m("div", Nn, [
|
|
639
|
+
Z(y.$slots, "default", {}, void 0, !0)
|
|
640
|
+
]),
|
|
641
|
+
g(V, {
|
|
642
|
+
size: 35,
|
|
643
|
+
src: (M = r(_)) == null ? void 0 : M.avatarUrl
|
|
644
|
+
}, {
|
|
645
|
+
default: w(() => {
|
|
646
|
+
var u;
|
|
647
|
+
return [
|
|
648
|
+
W(B(((u = r(_)) == null ? void 0 : u.account) ?? "未知"), 1)
|
|
649
|
+
];
|
|
650
|
+
}),
|
|
651
|
+
_: 1
|
|
652
|
+
}, 8, ["src"])
|
|
653
|
+
])
|
|
654
|
+
];
|
|
655
|
+
}),
|
|
656
|
+
_: 3,
|
|
657
|
+
__: [5]
|
|
658
|
+
}),
|
|
659
|
+
g(p, { class: "client-body" }, {
|
|
660
|
+
default: w(() => [
|
|
661
|
+
g(D, {
|
|
662
|
+
class: "client-aside",
|
|
663
|
+
width: "250px"
|
|
664
|
+
}, {
|
|
665
|
+
default: w(() => [
|
|
666
|
+
g(ke, { mode: "vertical" })
|
|
667
|
+
]),
|
|
668
|
+
_: 1
|
|
669
|
+
}),
|
|
670
|
+
y.$route.path === "/" ? (h(), N(c, {
|
|
671
|
+
key: 0,
|
|
672
|
+
class: "client-main"
|
|
673
|
+
}, {
|
|
674
|
+
default: w(() => {
|
|
675
|
+
var M;
|
|
676
|
+
return [
|
|
677
|
+
m("div", Vn, [
|
|
678
|
+
g(Oe, { isShow: f.value }, null, 8, ["isShow"])
|
|
679
|
+
]),
|
|
680
|
+
m("div", jn, [
|
|
681
|
+
(h(!0), b(I, null, K((M = r(S)(r(Y))) == null ? void 0 : M.filter((u) => u.comp !== "FormTop"), (u, A) => (h(), b("div", {
|
|
682
|
+
class: "item-view-content",
|
|
683
|
+
key: A
|
|
684
|
+
}, [
|
|
685
|
+
m("div", Fn, B(u.name), 1),
|
|
686
|
+
(h(), N(se(r(re)(u.comp)), {
|
|
687
|
+
itemData: u == null ? void 0 : u.compData,
|
|
688
|
+
childItemData: u == null ? void 0 : u.itemChildData,
|
|
689
|
+
key: (u == null ? void 0 : u.id) ?? A,
|
|
690
|
+
onChange: r(ie),
|
|
691
|
+
index: (u == null ? void 0 : u.id) ?? A,
|
|
692
|
+
onContentChange: r(ce),
|
|
693
|
+
onPageChange: r(ue)
|
|
694
|
+
}, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
695
|
+
]))), 128))
|
|
696
|
+
])
|
|
697
|
+
];
|
|
698
|
+
}),
|
|
699
|
+
_: 1
|
|
700
|
+
})) : (h(), N(c, {
|
|
701
|
+
key: 1,
|
|
702
|
+
class: "client-router"
|
|
703
|
+
}, {
|
|
704
|
+
default: w(() => [
|
|
705
|
+
g(j)
|
|
706
|
+
]),
|
|
707
|
+
_: 1
|
|
708
|
+
}))
|
|
709
|
+
]),
|
|
710
|
+
_: 1
|
|
711
|
+
})
|
|
712
|
+
]),
|
|
713
|
+
_: 3
|
|
714
|
+
})), [
|
|
715
|
+
[F, r(t)]
|
|
716
|
+
]);
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
}), Jn = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-b72df896"]]), On = { class: "system-wrap" }, Ln = {
|
|
720
|
+
__name: "index",
|
|
721
|
+
props: {
|
|
722
|
+
platform: {
|
|
723
|
+
type: String,
|
|
724
|
+
default: "browser"
|
|
725
|
+
},
|
|
726
|
+
content: String,
|
|
727
|
+
jsonContents: Array
|
|
728
|
+
},
|
|
729
|
+
setup(a) {
|
|
730
|
+
const i = te(z), e = fe(z), s = ae();
|
|
731
|
+
x(!1);
|
|
732
|
+
const _ = x(!0), n = a;
|
|
733
|
+
return q(
|
|
734
|
+
() => [n == null ? void 0 : n.content, n == null ? void 0 : n.jsonContents],
|
|
735
|
+
async () => {
|
|
736
|
+
var t, d, f, y;
|
|
737
|
+
if (((t = n == null ? void 0 : n.jsonContents) == null ? void 0 : t.length) > 0) {
|
|
738
|
+
i.setOriginalData(n == null ? void 0 : n.jsonContents);
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
if (!(n != null && n.content) || ((d = n == null ? void 0 : n.content) == null ? void 0 : d.length) === 0) return;
|
|
742
|
+
_.value = !0, s.setImportLoading(!0);
|
|
743
|
+
let o = [], l = [];
|
|
744
|
+
e.setSelectTitle([]), e.setSelectIndex(""), e.setSelectMenu(""), (y = (f = n == null ? void 0 : n.content) == null ? void 0 : f.filter((v) => v !== "")) == null || y.forEach((v) => {
|
|
745
|
+
je(v) ? l.push(Fe(v)) : Ce(v) ? l.push(Ce(v)) : ge(v) ? l.push(ge(v)) : l.push(tn(v));
|
|
746
|
+
}), o = l == null ? void 0 : l[0], await Ue(o), await we(), i.setOriginalData(o), s.setImportLoading(!1);
|
|
747
|
+
},
|
|
748
|
+
{ deep: !0, immediate: !0 }
|
|
749
|
+
), (o, l) => (h(), b("div", On, [
|
|
750
|
+
a.platform === "browser" ? (h(), N(vn, { key: 0 }, {
|
|
751
|
+
default: w(() => [
|
|
752
|
+
Z(o.$slots, "default", {}, void 0, !0)
|
|
753
|
+
]),
|
|
754
|
+
_: 3
|
|
755
|
+
})) : (h(), N(Jn, { key: 1 }, {
|
|
756
|
+
default: w(() => [
|
|
757
|
+
Z(o.$slots, "default", {}, void 0, !0)
|
|
758
|
+
]),
|
|
759
|
+
_: 3
|
|
760
|
+
}))
|
|
761
|
+
]));
|
|
762
|
+
}
|
|
763
|
+
}, Un = /* @__PURE__ */ Q(Ln, [["__scopeId", "data-v-3fc52d23"]]), zn = { class: "add-model-content" }, Rn = {
|
|
764
|
+
key: 0,
|
|
765
|
+
class: "model-operate"
|
|
766
|
+
}, Gn = { class: "model-select" }, Wn = { class: "model-fill" }, Hn = {
|
|
767
|
+
key: 1,
|
|
768
|
+
class: "model-view"
|
|
769
|
+
}, qn = {
|
|
770
|
+
key: 0,
|
|
771
|
+
class: "model-import-data"
|
|
772
|
+
}, Qn = { class: "import-button" }, Xn = {
|
|
773
|
+
__name: "index",
|
|
774
|
+
props: {
|
|
775
|
+
mode: {
|
|
776
|
+
type: String,
|
|
777
|
+
default: "view"
|
|
778
|
+
},
|
|
779
|
+
content: {
|
|
780
|
+
type: String,
|
|
781
|
+
default: ""
|
|
782
|
+
},
|
|
783
|
+
jsonContents: {
|
|
784
|
+
type: Array,
|
|
785
|
+
default: () => []
|
|
786
|
+
},
|
|
787
|
+
showButton: {
|
|
788
|
+
type: Boolean,
|
|
789
|
+
default: !0
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
emits: ["change", "contentChange"],
|
|
793
|
+
setup(a, { emit: i }) {
|
|
794
|
+
const e = a, s = i, _ = x([]), n = x([]), o = x([]), l = x(0), t = te(z), d = ae(z), { itemData: f, originalData: y } = U(t), { activeMenuPath: v, platform: J } = U(d), V = x(null), k = x(0), p = x([]);
|
|
795
|
+
x("");
|
|
796
|
+
const D = x(0), c = (u) => {
|
|
797
|
+
s("contentChange", u);
|
|
798
|
+
}, j = (u) => {
|
|
799
|
+
var P;
|
|
800
|
+
const A = (P = S(u == null ? void 0 : u.wholeValue)) == null ? void 0 : P.map((E) => {
|
|
801
|
+
var H;
|
|
802
|
+
return (E == null ? void 0 : E.comp) === "Form" && (E.compData = (H = E.compData) == null ? void 0 : H.map(($) => (($ == null ? void 0 : $.key) === "formContent" && ($.contents = Be($ == null ? void 0 : $.contents)), $))), E;
|
|
803
|
+
});
|
|
804
|
+
s("change", {
|
|
805
|
+
originalContents: y.value,
|
|
806
|
+
currentContents: u == null ? void 0 : u.wholeValue,
|
|
807
|
+
editContent: u == null ? void 0 : u.editValue,
|
|
808
|
+
arrayToContents: A
|
|
809
|
+
});
|
|
810
|
+
};
|
|
811
|
+
q(
|
|
812
|
+
() => n.value,
|
|
813
|
+
() => {
|
|
814
|
+
D.value === n.value.length && n.value.length !== 0 && (_.value = n.value);
|
|
815
|
+
},
|
|
816
|
+
{ deep: !0, immediate: !0 }
|
|
817
|
+
);
|
|
818
|
+
const F = () => {
|
|
819
|
+
V.value.click();
|
|
820
|
+
}, M = async (u) => {
|
|
821
|
+
const A = u.target.files;
|
|
822
|
+
if (!A) return;
|
|
823
|
+
new FileReader(), _.value = [], n.value = [], D.value = A.length;
|
|
824
|
+
const P = Array.from(A).map(async (E) => await new Promise((H) => {
|
|
825
|
+
const $ = new FileReader();
|
|
826
|
+
$.onload = (L) => {
|
|
827
|
+
try {
|
|
828
|
+
n.value.push(L.target.result), k.value++;
|
|
829
|
+
} catch (R) {
|
|
830
|
+
console.error("解析失败:", R);
|
|
831
|
+
return;
|
|
832
|
+
}
|
|
833
|
+
}, $.onerror = () => H(`读取 ${E.name} 失败`), $.readAsText(E), u.target.value = "", V.value = null;
|
|
834
|
+
}));
|
|
835
|
+
await Promise.all(P);
|
|
836
|
+
};
|
|
837
|
+
return q(
|
|
838
|
+
() => [e == null ? void 0 : e.content, e == null ? void 0 : e.jsonContents],
|
|
839
|
+
async () => {
|
|
840
|
+
await we(), _.value = e.content, o.value = e == null ? void 0 : e.jsonContents;
|
|
841
|
+
},
|
|
842
|
+
{ deep: !0, immediate: !0 }
|
|
843
|
+
), q(
|
|
844
|
+
() => k.value,
|
|
845
|
+
() => {
|
|
846
|
+
var u;
|
|
847
|
+
((u = p.value) == null ? void 0 : u.length) !== 0 && (t.setOriginalData(p.value), t.setItemData(p.value));
|
|
848
|
+
},
|
|
849
|
+
{ deep: !0, immediate: !0 }
|
|
850
|
+
), (u, A) => {
|
|
851
|
+
const P = T("svg-icon");
|
|
852
|
+
return h(), b("div", zn, [
|
|
853
|
+
(e == null ? void 0 : e.mode) === "edit" ? (h(), b("div", Rn, [
|
|
854
|
+
m("div", Gn, [
|
|
855
|
+
g(de)
|
|
856
|
+
]),
|
|
857
|
+
(h(), b("div", {
|
|
858
|
+
class: "model-show",
|
|
859
|
+
key: l.value
|
|
860
|
+
}, [
|
|
861
|
+
g(pe)
|
|
862
|
+
])),
|
|
863
|
+
m("div", Wn, [
|
|
864
|
+
g(_e)
|
|
865
|
+
])
|
|
866
|
+
])) : O("", !0),
|
|
867
|
+
(e == null ? void 0 : e.mode) === "view" ? (h(), b("div", Hn, [
|
|
868
|
+
(h(), N(Un, {
|
|
869
|
+
platform: r(J),
|
|
870
|
+
content: _.value,
|
|
871
|
+
onChange: j,
|
|
872
|
+
jsonContents: o.value,
|
|
873
|
+
onContentChange: c,
|
|
874
|
+
key: l.value
|
|
875
|
+
}, {
|
|
876
|
+
default: w(() => {
|
|
877
|
+
var E;
|
|
878
|
+
return [
|
|
879
|
+
((E = e == null ? void 0 : e.jsonContents) == null ? void 0 : E.length) === 0 && (e != null && e.showButton) ? (h(), b("div", qn, [
|
|
880
|
+
m("div", Qn, [
|
|
881
|
+
m("input", {
|
|
882
|
+
type: "file",
|
|
883
|
+
ref_key: "fileInput",
|
|
884
|
+
ref: V,
|
|
885
|
+
accept: ".txt, .inm",
|
|
886
|
+
onChange: M,
|
|
887
|
+
style: { display: "none" },
|
|
888
|
+
multiple: ""
|
|
889
|
+
}, null, 544),
|
|
890
|
+
g(P, {
|
|
891
|
+
name: "import",
|
|
892
|
+
style: { width: "16px", height: "16px" }
|
|
893
|
+
}),
|
|
894
|
+
m("div", { onClick: F }, B("导入模型"))
|
|
895
|
+
])
|
|
896
|
+
])) : O("", !0)
|
|
897
|
+
];
|
|
898
|
+
}),
|
|
899
|
+
_: 1
|
|
900
|
+
}, 8, ["platform", "content", "jsonContents"]))
|
|
901
|
+
])) : O("", !0)
|
|
902
|
+
]);
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
}, it = /* @__PURE__ */ Q(Xn, [["__scopeId", "data-v-0cbc0899"]]);
|
|
906
|
+
export {
|
|
907
|
+
it as default
|
|
908
|
+
};
|