ss-component-new 1.1.237 → 1.1.239

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.
Files changed (82) hide show
  1. package/dist/{array-DI6hm2O5.cjs → array-D-J_e91G.cjs} +1 -1
  2. package/dist/{array-XiW93OPp.js → array-DAwa7XAV.js} +8 -8
  3. package/dist/{cloneDeep-DD6IIacv.js → cloneDeep-BcK4cO7a.js} +1 -1
  4. package/dist/{cloneDeep-CJYxvbkp.cjs → cloneDeep-kbsGGN_Q.cjs} +1 -1
  5. package/dist/{index-BfFcoIcW.js → index-3g7rW5vQ.js} +1 -1
  6. package/dist/{index-ItBGckSL.cjs → index-5JXCiHw3.cjs} +1 -1
  7. package/dist/{index-BxOh6BEJ.js → index-8hwiS85r.js} +5 -5
  8. package/dist/{index-Ya4rFbSY.cjs → index-B2KK3HzA.cjs} +1 -1
  9. package/dist/{index-DRxCMsAf.js → index-B66Qf5rw.js} +6 -6
  10. package/dist/{index-C0dpqsuW.js → index-B9K0EIpS.js} +5 -5
  11. package/dist/{index-DkotFjz2.js → index-BAWROpdj.js} +1 -1
  12. package/dist/{index-C4DMm-9q.cjs → index-BFPZALXc.cjs} +1 -1
  13. package/dist/{index-DhHo9ub3.js → index-BMrHnCTf.js} +4 -4
  14. package/dist/{index-Bs4dpkna.cjs → index-BOzSvFJA.cjs} +1 -1
  15. package/dist/{index-BYxKXFVW.cjs → index-BUga6nNK.cjs} +1 -1
  16. package/dist/{index-D5HzgxVF.cjs → index-BZHxtM--.cjs} +1 -1
  17. package/dist/{index-DIBaD8Dz.js → index-B_VMMfxb.js} +3 -3
  18. package/dist/{index-D0S1Fwnn.cjs → index-BdiQsOpb.cjs} +1 -1
  19. package/dist/index-Be4n2ecn.js +906 -0
  20. package/dist/{index-CnbFplgw.cjs → index-BhOckTgC.cjs} +1 -1
  21. package/dist/{index-BOcg5OyD.js → index-Bkc0R0j5.js} +89 -93
  22. package/dist/{index-CbTnDm6Y.js → index-BoA0FuEi.js} +7 -7
  23. package/dist/{index-xzKwlwN1.cjs → index-C3UTqVyv.cjs} +11 -11
  24. package/dist/{index-BoGW0rHI.js → index-C7Y_BQCw.js} +7 -7
  25. package/dist/{index-DrDjMudp.js → index-C8nLtJQB.js} +6 -6
  26. package/dist/{index-C6r0D7bs.js → index-CG01yKU1.js} +367 -353
  27. package/dist/{index-lSUKeup-.cjs → index-CK7nt4bL.cjs} +1 -1
  28. package/dist/{index-CJCpFXP6.cjs → index-CQ0bJWFx.cjs} +1 -1
  29. package/dist/{index-DSx-_9X6.cjs → index-CWsALJ8f.cjs} +1 -1
  30. package/dist/{index-BaXDQtLf.cjs → index-Cbj_oJPC.cjs} +1 -1
  31. package/dist/{index-Qvf8lEEi.js → index-CgxSbKBz.js} +4 -4
  32. package/dist/{index-C2Yo86eF.js → index-CiTgFX9o.js} +7 -7
  33. package/dist/{index-Dzd-BSIy.cjs → index-CoH0G-uS.cjs} +1 -1
  34. package/dist/{index-BvPVHCZ9.cjs → index-CrSVdnus.cjs} +1 -1
  35. package/dist/{index-CRFv3mU8.js → index-CrdlZPHq.js} +4 -4
  36. package/dist/{index-Cu4Nrk6I.js → index-D-auhS5f.js} +3 -3
  37. package/dist/{index-CqvUtrx4.cjs → index-D0FNjq6G.cjs} +1 -1
  38. package/dist/{index-XfC1YU_R.cjs → index-D0hUHQHn.cjs} +1 -1
  39. package/dist/{index-BjgJwjU0.js → index-DRcuI2gm.js} +4 -4
  40. package/dist/{index-BP6-wpOt.js → index-DX3jtjLG.js} +3 -3
  41. package/dist/{index-4oU6C2JI.js → index-DcymGmWj.js} +1 -1
  42. package/dist/{index-pdOAGERi.cjs → index-DqLOgQsT.cjs} +1 -1
  43. package/dist/{index-BRtYsist.js → index-DreX5xyP.js} +5 -5
  44. package/dist/{index-Gd5o0mO3.js → index-Du-s_IGe.js} +1 -1
  45. package/dist/{index-DBbaEqVU.cjs → index-DxzvUr7M.cjs} +1 -1
  46. package/dist/{index-Bg25SwqX.cjs → index-FX9zIOBz.cjs} +1 -1
  47. package/dist/{index-BR4fdQ1R.js → index-FaQ9vBep.js} +4 -4
  48. package/dist/{index-rKrFVhox.cjs → index-Gc1epwAE.cjs} +1 -1
  49. package/dist/{index-CCJsj4V5.cjs → index-GlyYi8eO.cjs} +1 -1
  50. package/dist/{index-DI7LyQuc.js → index-NdocPiqA.js} +9 -9
  51. package/dist/{index-DMKQK1ps.js → index-P_6AmAJ6.js} +1 -1
  52. package/dist/{index-_PQG-wQ3.cjs → index-V9D4K_Sf.cjs} +1 -1
  53. package/dist/index-VVRul53o.cjs +1 -0
  54. package/dist/{index-BTwMwAiQ.cjs → index-bC_377mt.cjs} +2 -2
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-DUR36an7.cjs → index.vue_vue_type_script_setup_true_lang-7hOFb1P0.cjs} +1 -1
  56. package/dist/{index.vue_vue_type_script_setup_true_lang-CRHsd8hz.js → index.vue_vue_type_script_setup_true_lang-DVmAEsPP.js} +1 -1
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_11cfc8a8_lang-DawuGbvY.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DI887Xui.cjs} +1 -1
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_11cfc8a8_lang-CND-nizm.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Rrc8X2Wa.js} +6 -6
  59. package/dist/index.vue_vue_type_style_index_0_scoped_aefda2d8_lang-CMvvh_Fa.js +612 -0
  60. package/dist/index.vue_vue_type_style_index_0_scoped_aefda2d8_lang-Df3FKHF1.cjs +1 -0
  61. package/dist/{login-5hYAfzY7.cjs → login-C0pHH-1V.cjs} +1 -1
  62. package/dist/{login-C8oHBbmr.js → login-CbLjVnvi.js} +2 -2
  63. package/dist/{main-B6KpGooi.js → main-DLdZKJUK.js} +6 -6
  64. package/dist/{main-BrPLM7nL.cjs → main-wtI2yJ--.cjs} +1 -1
  65. package/dist/{menu-G9lGQLbm.js → menu-CAlO6ojx.js} +4 -4
  66. package/dist/{menu-BCqnRbPI.cjs → menu-LlBjM6b8.cjs} +3 -3
  67. package/dist/{modelComp-DWhwoJ78.cjs → modelComp-Af3CYJjb.cjs} +1 -1
  68. package/dist/{modelComp-CYG_7mmb.js → modelComp-D9gZ6ZkE.js} +1 -1
  69. package/dist/obj/model.mtl +42 -0
  70. package/dist/obj/model.obj +26110 -0
  71. package/dist/ss-component.cjs +1 -1
  72. package/dist/ss-component.css +2 -2
  73. package/dist/ss-component.js +7 -7
  74. package/dist/ss-component3.cjs +1 -1
  75. package/dist/ss-component3.js +1 -1
  76. package/package.json +1 -1
  77. package/public/obj/model.mtl +42 -0
  78. package/public/obj/model.obj +26110 -0
  79. package/dist/index-BeiMmjtu.js +0 -913
  80. package/dist/index-Ctlqzbp7.cjs +0 -1
  81. package/dist/index.vue_vue_type_style_index_0_scoped_4d31b674_lang-C0YpKhME.cjs +0 -1
  82. package/dist/index.vue_vue_type_style_index_0_scoped_4d31b674_lang-C6BHHnmI.js +0 -563
@@ -1,913 +0,0 @@
1
- import { ref as I, onMounted as ue, watch as Q, createElementBlock as k, openBlock as p, Fragment as K, renderList as ee, createElementVNode as C, createCommentVNode as j, normalizeStyle as ve, toDisplayString as B, resolveComponent as x, resolveDirective as ke, withDirectives as we, createBlock as P, withCtx as v, createVNode as m, unref as c, createTextVNode as H, renderSlot as Z, resolveDynamicComponent as ae, defineComponent as Ae, nextTick as Me } from "vue";
2
- import { m as ie, a as de, b as he } from "./index-C2Yo86eF.js";
3
- import be from "./index-DIBaD8Dz.js";
4
- import { p as R } from "./index-Gd5o0mO3.js";
5
- import { u as te } from "./modelComp-CYG_7mmb.js";
6
- import { s as z, u as ne } from "./menu-G9lGQLbm.js";
7
- import { c as xe, p as Ee, m as Pe, b as Te, i as Ne, e as Ve, d as ge, f as me, a as Fe } from "./array-XiW93OPp.js";
8
- import { I as Ce, u as je, a as Se, g as ye, t as Be } from "./index-C6r0D7bs.js";
9
- import { o as De, c as $e, a as q, s as L, g as se, b as le, d as re, e as ce, _ as Je, f as Oe } from "./index.vue_vue_type_style_index_0_scoped_4d31b674_lang-C6BHHnmI.js";
10
- import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import "./index-BP6-wpOt.js";
12
- import { u as Ie } from "./login-C8oHBbmr.js";
13
- import "./index-CbTnDm6Y.js";
14
- import "./crypto-BRyGpjGR.js";
15
- import { S as Y } from "./index-BHtNKL1L.js";
16
- import { E as Le } from "./index-BoGW0rHI.js";
17
- import { c as S } from "./cloneDeep-DD6IIacv.js";
18
- const Ue = { class: "bread-content" }, ze = ["onClick"], Re = {
19
- key: 0,
20
- class: "split-title"
21
- }, Ge = {
22
- __name: "index",
23
- props: {
24
- breadArray: {
25
- type: Array,
26
- default: () => []
27
- }
28
- },
29
- emits: ["click"],
30
- setup(a, { emit: d }) {
31
- const e = a, s = I([]), l = d;
32
- ue(() => {
33
- s.value = e == null ? void 0 : e.breadArray;
34
- }), Q(
35
- () => e == null ? void 0 : e.breadArray,
36
- () => {
37
- s.value = e == null ? void 0 : e.breadArray;
38
- },
39
- { deep: !0, immediate: !0 }
40
- );
41
- const o = (r) => {
42
- l("click", r);
43
- };
44
- return (r, u) => (p(), k("div", Ue, [
45
- (p(!0), k(K, null, ee(s.value, (n, i) => {
46
- var h;
47
- return p(), k("div", {
48
- key: i,
49
- class: "bread-item"
50
- }, [
51
- C("div", {
52
- class: "bread-title",
53
- onClick: (_) => o(n),
54
- style: ve({ opacity: ((h = s.value) == null ? void 0 : h.length) - 1 === i ? "0.7" : "1" })
55
- }, B(n.value), 13, ze),
56
- i !== s.value.length - 1 && Array.isArray(s.value) ? (p(), k("div", Re, B("/"))) : j("", !0)
57
- ]);
58
- }), 128))
59
- ]));
60
- }
61
- }, We = /* @__PURE__ */ X(Ge, [["__scopeId", "data-v-ded7e2bd"]]), oe = (a) => {
62
- const d = [];
63
- let e = 0, s = "";
64
- for (; e < a.length; ) {
65
- const l = a[e];
66
- s = s + l, s[s.length - 1] === "]" && s[s.length - 2] === "}" && (d.push(s), s = ""), e++;
67
- }
68
- return d;
69
- }, He = (a) => {
70
- let d = "";
71
- return a == null || a.forEach((e, s) => {
72
- s !== 0 && (d = d + e);
73
- }), d;
74
- }, qe = (a, d) => {
75
- var l;
76
- const e = [], s = d.length;
77
- return (l = S(d)) == null || l.forEach((o, r) => {
78
- let u = [];
79
- o == null || o.forEach((n) => {
80
- var i, h, _, w, J, N, T, E, V;
81
- if (Ce(a.replaceAll("'", '"')))
82
- (i = JSON.parse(a.replaceAll("'", '"'))) == null || i.forEach((t) => {
83
- e.push([{
84
- key: n == null ? void 0 : n.key,
85
- value: (n == null ? void 0 : n.value) + "/" + t
86
- }]);
87
- });
88
- else {
89
- u.push(n);
90
- let t;
91
- S(oe(a)).length === 1 ? t = S(oe(a)) : t = (h = S(oe(a))) == null ? void 0 : h.map((b) => b.slice(1, b.length)), t = t == null ? void 0 : t.map((b) => {
92
- var A, O, M;
93
- const D = b.slice(1, b.length - 1), f = (A = S(D).split(":")) == null ? void 0 : A[0];
94
- let y = "{" + ((O = D.split("{")) == null ? void 0 : O[1]);
95
- y = S(y).slice(1, y.length - 1);
96
- let $ = He(y.split(":")), F = Ce($.replaceAll("'", '"')) ? JSON.parse($.replaceAll("'", '"')) : JSON.parse($.slice(0, $.length - 1).replaceAll("'", '"'));
97
- return {
98
- groupName: f.slice(1, f.length - 1).includes("[") ? "" : f.slice(1, f.length - 1),
99
- tableColumn: JSON.parse(((M = y.split(":")) == null ? void 0 : M[0]).replaceAll("'", '"')),
100
- tableContents: F
101
- };
102
- }), s > 1 && t.length === 1 ? (u.push({
103
- key: "groupName",
104
- value: (_ = t == null ? void 0 : t[0]) == null ? void 0 : _.groupName
105
- }), u.push({
106
- key: "tableColumn",
107
- value: (w = t == null ? void 0 : t[0]) == null ? void 0 : w.tableColumn
108
- }), u.push({
109
- key: "tableContents",
110
- value: [(N = (J = t == null ? void 0 : t[0]) == null ? void 0 : J.tableContents) == null ? void 0 : N[r]]
111
- })) : (u.push({
112
- key: "groupName",
113
- value: (T = t == null ? void 0 : t[r]) == null ? void 0 : T.groupName
114
- }), u.push({
115
- key: "tableColumn",
116
- value: (E = t == null ? void 0 : t[r]) == null ? void 0 : E.tableColumn
117
- }), u.push({
118
- key: "tableContents",
119
- value: (V = t == null ? void 0 : t[r]) == null ? void 0 : V.tableContents
120
- })), e.push(u);
121
- }
122
- });
123
- }), e;
124
- }, pe = (a) => {
125
- const d = [];
126
- let e = !1;
127
- return a.forEach((s) => {
128
- Array.isArray(s) && (e = !0, s.forEach((l) => {
129
- const o = a.map((r) => r === s ? l : r);
130
- d.push(...pe(o));
131
- }));
132
- }), e ? d : [a];
133
- }, Qe = (a) => {
134
- var l, o;
135
- const d = (l = a.map((r) => {
136
- var n, i;
137
- let u = (i = (n = r.key.split("(")) == null ? void 0 : n[1]) == null ? void 0 : i.trim();
138
- return u == null ? void 0 : u.slice(0, u.length - 1);
139
- })) == null ? void 0 : l.filter((r) => r), e = [];
140
- d == null || d.forEach((r) => {
141
- var i;
142
- const u = S(r).replaceAll("{", "").replaceAll("}", "").trim();
143
- let n = [];
144
- u.split(":").forEach((h) => {
145
- var _;
146
- if (h.includes("[")) {
147
- const w = (_ = h.slice(1, h.length - 1)) == null ? void 0 : _.split(",");
148
- n.push(w);
149
- } else
150
- n.push(h);
151
- }), (i = pe(n)) == null || i.forEach((h) => {
152
- e.push(h);
153
- });
154
- });
155
- const s = (o = e == null ? void 0 : e.filter((r) => r.length !== 0)) == null ? void 0 : o.map((r) => {
156
- let u = "";
157
- return r.forEach((n) => {
158
- n.includes("{") || (u = u === "" ? u + S(n) : u + "/" + S(n));
159
- }), u;
160
- });
161
- return Pe([...new Set(s)]);
162
- }, Xe = (a) => {
163
- var r, u;
164
- if (!a) return;
165
- let d = [];
166
- const e = Te(a), s = S(e).replaceAll("{", "").replaceAll("}", "").trim();
167
- let l = [];
168
- return s.split(":").forEach((n) => {
169
- var i;
170
- if (n.includes("[")) {
171
- const h = (i = n.slice(1, n.length - 1)) == null ? void 0 : i.split(",");
172
- l.push(h);
173
- } else
174
- l.push(n);
175
- }), (r = pe(l)) == null || r.forEach((n) => {
176
- d.push(n);
177
- }), (u = d == null ? void 0 : d.filter((n) => n.length !== 0)) == null ? void 0 : u.map((n) => {
178
- let i = "";
179
- return n.forEach((h) => {
180
- h.includes("{") || (i = i === "" ? i + S(h) : i + "/" + S(h));
181
- }), i;
182
- });
183
- }, Ye = (a) => ({
184
- comp: "MenuTop",
185
- compData: [
186
- {
187
- key: "menuContents",
188
- contents: JSON.parse(a == null ? void 0 : a.value.trim().replaceAll("'", '"'))
189
- }
190
- ],
191
- name: ""
192
- }), Ze = (a) => {
193
- const d = [], e = Xe(a == null ? void 0 : a.key);
194
- return e && (e == null ? void 0 : e.length) > 0 && (e == null || e.forEach((l) => {
195
- d.push([{
196
- key: "contentPath",
197
- value: l
198
- }]);
199
- })), qe(a == null ? void 0 : a.value, d);
200
- }, Ke = (a) => {
201
- const d = [];
202
- let e = [];
203
- return a == null || a.forEach((s, l) => {
204
- var o;
205
- (e == null ? void 0 : e.length) === 0 ? e.push(s) : (e.push(s), ((o = a[l + 1]) == null ? void 0 : o.key) === "groupName" && (d.push(e), e = []));
206
- }), d.push(e), d;
207
- }, et = (a) => {
208
- var e;
209
- return (e = S(a)) == null ? void 0 : e.map((s) => {
210
- var r, u;
211
- let l = [];
212
- return (r = Ke(s == null ? void 0 : s.filter((n) => (n == null ? void 0 : n.key) !== "contentPath"))) == null || r.forEach((n) => {
213
- var _, w, J, N, T, E, V;
214
- let i = [];
215
- if (!((_ = n.find((t) => (t == null ? void 0 : t.key) === "tableColumn")) != null && _.value))
216
- return;
217
- const h = Array.isArray((w = n.find((t) => (t == null ? void 0 : t.key) === "tableColumn")) == null ? void 0 : w.value) ? (N = (J = n.find((t) => (t == null ? void 0 : t.key) === "tableColumn")) == null ? void 0 : J.value) == null ? void 0 : N.map((t) => ({
218
- label: t
219
- })) : [(T = n.find((t) => (t == null ? void 0 : t.key) === "tableColumn")) == null ? void 0 : T.value].map((t) => ({
220
- label: t
221
- }));
222
- h.length !== 0 && h.push({
223
- label: "操作"
224
- }), i.push({
225
- key: "header",
226
- contents: h
227
- }), i.push({
228
- key: "tableContents",
229
- contents: (E = n.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : E.value
230
- }), i.push({
231
- key: "extraButton",
232
- contents: [{ label: "新增" }]
233
- }), i.push({
234
- key: "rowButton",
235
- contents: [{ label: "查看" }, { label: "编辑" }, { label: "删除" }]
236
- }), l.push({
237
- comp: "Table",
238
- compData: i,
239
- name: (V = n.find((t) => (t == null ? void 0 : t.key) === "groupName")) == null ? void 0 : V.value
240
- });
241
- }), {
242
- comp: "Group",
243
- compData: [{
244
- key: "groupContents",
245
- contents: l
246
- }],
247
- name: (u = s == null ? void 0 : s.find((n) => (n == null ? void 0 : n.key) === "contentPath")) == null ? void 0 : u.value
248
- };
249
- });
250
- }, tt = (a) => {
251
- let d = [];
252
- d.push({
253
- comp: "Menu",
254
- compData: [{
255
- contents: Qe(S(a)),
256
- key: "menuContents"
257
- }],
258
- name: ""
259
- }), a != null && a.find((l) => {
260
- var o;
261
- return !((o = l == null ? void 0 : l.key) != null && o.includes("("));
262
- }) && d.push(Ye(a == null ? void 0 : a.find((l) => {
263
- var o;
264
- return !((o = l == null ? void 0 : l.key) != null && o.includes("("));
265
- })));
266
- const e = a == null ? void 0 : a.filter((l) => {
267
- var o;
268
- return (o = l == null ? void 0 : l.key) == null ? void 0 : o.includes("(");
269
- }).map((l) => Ze(l)).filter((l) => (l == null ? void 0 : l.length) !== 0);
270
- let s = [];
271
- return e == null || e.forEach((l) => {
272
- l == null || l.forEach((o) => {
273
- s != null && s.find((r) => {
274
- var u, n;
275
- return ((u = r == null ? void 0 : r.find((i) => (i == null ? void 0 : i.key) === "contentPath")) == null ? void 0 : u.value) === ((n = o == null ? void 0 : o.find((i) => (i == null ? void 0 : i.key) === "contentPath")) == null ? void 0 : n.value);
276
- }) ? s = s == null ? void 0 : s.map((r) => {
277
- var n, i;
278
- return ((n = r == null ? void 0 : r.find((h) => (h == null ? void 0 : h.key) === "contentPath")) == null ? void 0 : n.value) === ((i = o == null ? void 0 : o.find((h) => (h == null ? void 0 : h.key) === "contentPath")) == null ? void 0 : i.value) && (r = [...r, ...o.filter((h) => (h == null ? void 0 : h.key) !== "contentPath")]), r;
279
- }) : s.push(o);
280
- });
281
- }), d = [...d, ...et(s)], d;
282
- }, nt = (a) => {
283
- var l, o, r, u, n;
284
- const d = (r = xe((o = (l = S(a)) == null ? void 0 : l.replace("(", "(")) == null ? void 0 : o.replace(")", ")"))) == null ? void 0 : r.filter((i) => i !== ""), e = (n = (u = S(d)) == null ? void 0 : u.filter((i) => !i.includes("/*"))) == null ? void 0 : n.map((i) => Ee(i));
285
- return tt(e);
286
- }, ot = { class: "item-menu-content" }, at = { class: "item-left-content" }, st = {
287
- key: 0,
288
- class: "page-icon"
289
- }, lt = { class: "avatar" }, rt = { style: { display: "flex" } }, ct = { class: "select-icon" }, ut = {
290
- key: 0,
291
- class: "model-operate"
292
- }, it = { class: "model-select" }, dt = { class: "model-fill" }, ht = {
293
- key: 1,
294
- class: "show-main-content"
295
- }, pt = { class: "show-content" }, _t = { class: "item-view-group" }, ft = { class: "show-item-content" }, gt = { class: "item-view-group" }, mt = {
296
- key: 2,
297
- class: "show-main-content"
298
- }, Ct = {
299
- __name: "browser",
300
- props: {
301
- content: String,
302
- jsonContents: Array
303
- },
304
- emits: ["change", "contentChange"],
305
- setup(a, { emit: d }) {
306
- const e = Ie(), { loginUserInfo: s, cryptoInfo: l } = z(e);
307
- ue(() => {
308
- Le({
309
- title: "温馨提示:",
310
- type: "success",
311
- message: "欢迎使用系统",
312
- duration: 1e3
313
- });
314
- });
315
- const o = te(R);
316
- je(R), I(!0);
317
- const r = ne();
318
- I(!0);
319
- const { itemData: u, isEdit: n, isRefreshCurStructure: i, curStructureCompIds: h } = z(o), _ = Se(R), { activeMenuPath: w, menus: J, importLoading: N } = z(r), { selectIndex: T, selectTitle: E } = z(_);
320
- I([]), I(!1);
321
- const V = async (t) => {
322
- var b;
323
- if ((t == null ? void 0 : t.key) === "main" || E.value.length === 1)
324
- L.value = await ye(w.value, sessionStorage.getItem("systemKey")), _.setSelectIndex(""), _.setSelectMenu(""), _.setSelectTitle([]);
325
- else {
326
- const D = [], f = (t == null ? void 0 : t.key) === "" || !(t != null && t.key) ? "" : parseInt(t == null ? void 0 : t.key);
327
- L.value = await ye(w.value, sessionStorage.getItem("systemKey"), f);
328
- let y = -1;
329
- (b = E.value) == null || b.forEach(($, F) => {
330
- ($ == null ? void 0 : $.key) === (t == null ? void 0 : t.key) && (y = F), (y === -1 || y >= F) && D.push($);
331
- }), _.setSelectTitle(D), f !== "" ? _.setSelectMenu(t == null ? void 0 : t.key) : (_.setSelectIndex(""), _.setSelectMenu(""));
332
- }
333
- o.setItemData(L.value), o.setOriginalData(L.value);
334
- };
335
- return (t, b) => {
336
- const D = x("el-aside"), f = x("el-button"), y = x("el-avatar"), $ = x("el-header"), F = x("router-view"), A = x("el-main"), O = x("el-container"), M = ke("loading");
337
- return we((p(), P(O, { "element-loading-text": "正在加载页面数据..." }, {
338
- default: v(() => [
339
- c(n) === "view" ? (p(), P(D, {
340
- key: 0,
341
- width: "250px"
342
- }, {
343
- default: v(() => [
344
- m(be, { mode: "vertical" })
345
- ]),
346
- _: 1
347
- })) : j("", !0),
348
- m(O, null, {
349
- default: v(() => [
350
- m($, null, {
351
- default: v(() => {
352
- var G;
353
- return [
354
- C("div", ot, [
355
- C("div", at, [
356
- c(n) === "edit" ? (p(), k("div", st, [
357
- m(f, {
358
- text: "",
359
- onClick: c(De)
360
- }, {
361
- default: v(() => b[1] || (b[1] = [
362
- H(" 返回页面 ")
363
- ])),
364
- _: 1,
365
- __: [1]
366
- }, 8, ["onClick"]),
367
- m(f, {
368
- text: "",
369
- onClick: c($e)
370
- }, {
371
- icon: v(() => [
372
- m(Y, { name: "Store" })
373
- ]),
374
- default: v(() => [
375
- b[2] || (b[2] = H(" 保存页面 "))
376
- ]),
377
- _: 1,
378
- __: [2]
379
- }, 8, ["onClick"])
380
- ])) : j("", !0),
381
- (p(), P(We, {
382
- key: c(E),
383
- breadArray: c(E),
384
- onClick: V
385
- }, null, 8, ["breadArray"]))
386
- ]),
387
- C("div", lt, [
388
- c(n) === "view" ? (p(), k("div", {
389
- key: 0,
390
- class: "select-icon",
391
- onClick: b[0] || (b[0] = (...U) => c(q) && c(q)(...U))
392
- }, [
393
- C("div", rt, [
394
- m(Y, {
395
- name: "write",
396
- style: { width: "16px", height: "16px" }
397
- })
398
- ]),
399
- b[3] || (b[3] = C("div", null, B("修改布局"), -1))
400
- ])) : j("", !0),
401
- C("div", ct, [
402
- Z(t.$slots, "default", {}, void 0, !0)
403
- ]),
404
- m(y, {
405
- size: 35,
406
- src: (G = c(s)) == null ? void 0 : G.avatarUrl
407
- }, {
408
- default: v(() => {
409
- var U;
410
- return [
411
- H(B(((U = c(s)) == null ? void 0 : U.account) ?? "未知"), 1)
412
- ];
413
- }),
414
- _: 1
415
- }, 8, ["src"])
416
- ])
417
- ])
418
- ];
419
- }),
420
- _: 3
421
- }),
422
- m(A, {
423
- style: ve({ display: c(n) === "edit" ? "block" : "flex" })
424
- }, {
425
- default: v(() => {
426
- var G, U, _e, fe;
427
- return [
428
- c(n) === "edit" ? (p(), k("div", ut, [
429
- C("div", it, [
430
- m(ie)
431
- ]),
432
- (p(), k("div", {
433
- class: "model-show",
434
- key: t.innerWidth
435
- }, [
436
- m(de)
437
- ])),
438
- C("div", dt, [
439
- m(he)
440
- ])
441
- ])) : t.$route.path === "/" && ((G = c(L)) == null ? void 0 : G.length) > 0 && c(n) === "view" ? (p(), k("div", ht, [
442
- C("div", pt, [
443
- (U = c(S)(c(L))) != null && U.find((g) => g.comp === "FormTop") ? (p(), k("div", {
444
- class: "show-header",
445
- key: t.index
446
- }, [
447
- (p(!0), k(K, null, ee((_e = c(S)(c(L))) == null ? void 0 : _e.filter((g) => g.comp === "FormTop"), (g, W) => (p(), k("div", {
448
- class: "item-content",
449
- key: W
450
- }, [
451
- C("div", _t, B(g.name), 1),
452
- (p(), P(ae(c(se)(g.comp)), {
453
- itemData: g == null ? void 0 : g.compData,
454
- childItemData: g == null ? void 0 : g.itemChildData,
455
- key: (g == null ? void 0 : g.id) ?? W,
456
- onChange: c(ce),
457
- index: (g == null ? void 0 : g.id) ?? W,
458
- onContentChange: c(re),
459
- onPageChange: c(le)
460
- }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
461
- ]))), 128))
462
- ])) : j("", !0),
463
- C("div", ft, [
464
- (p(!0), k(K, null, ee((fe = c(S)(c(L))) == null ? void 0 : fe.filter((g) => g.comp !== "FormTop"), (g, W) => (p(), k("div", {
465
- class: "item-content",
466
- key: W
467
- }, [
468
- C("div", gt, B(g.name), 1),
469
- (p(), P(ae(c(se)(g.comp)), {
470
- itemData: g == null ? void 0 : g.compData,
471
- childItemData: g == null ? void 0 : g.itemChildData,
472
- key: (g == null ? void 0 : g.id) ?? W,
473
- onChange: c(ce),
474
- index: (g == null ? void 0 : g.id) ?? W,
475
- onContentChange: c(re),
476
- onPageChange: c(le)
477
- }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
478
- ]))), 128))
479
- ])
480
- ])
481
- ])) : c(n) === "view" ? (p(), k("div", mt, [
482
- m(F)
483
- ])) : j("", !0)
484
- ];
485
- }),
486
- _: 1
487
- }, 8, ["style"])
488
- ]),
489
- _: 3
490
- })
491
- ]),
492
- _: 3
493
- })), [
494
- [M, c(N)]
495
- ]);
496
- };
497
- }
498
- }, yt = /* @__PURE__ */ X(Ct, [["__scopeId", "data-v-24ebc205"]]);
499
- function vt(a, d, e, s, l, o) {
500
- const r = x("DynamicIcon"), u = x("ssMenu");
501
- return p(), P(u, {
502
- mode: a.mode,
503
- menuList: a.renderMenuList,
504
- onClickMenu: a.clickMenu,
505
- onOpenMenu: a.openMenu,
506
- onCloseMenu: a.closeMenu
507
- }, {
508
- title: v(({ menu: n }) => [
509
- m(r, {
510
- name: n.icon ?? ""
511
- }, null, 8, ["name"]),
512
- C("span", null, B(n.title ?? ""), 1)
513
- ]),
514
- _: 1
515
- }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
516
- }
517
- const kt = /* @__PURE__ */ X(Je, [["render", vt], ["__scopeId", "data-v-93a3198a"]]), wt = { class: "structure-buttons" }, bt = { class: "client-header-user" }, St = { style: { display: "flex" } }, Dt = { class: "select-icon" }, $t = { class: "model-select" }, It = { class: "model-show" }, At = { class: "model-fill" }, Mt = { class: "client-header-menu" }, xt = { class: "client-header-user" }, Et = { style: { display: "flex" } }, Pt = { class: "select-icon" }, Tt = { class: "client-main-content" }, Nt = { class: "client-main-operate" }, Vt = /* @__PURE__ */ Ae({
518
- __name: "client",
519
- setup(a) {
520
- const d = Ie(), { loginUserInfo: e } = z(d), s = te(R), { isEdit: l } = z(s), o = ne(), { importLoading: r, activeMenuPath: u } = z(o), n = I(!1);
521
- Q(() => u.value, async (h) => {
522
- h && (await Me(), n.value = !n.value);
523
- }, { immediate: !0 });
524
- const i = I(0);
525
- return ue(() => {
526
- console.log(1267, L.value);
527
- }), (h, _) => {
528
- const w = x("el-button"), J = x("el-avatar"), N = x("el-header"), T = x("el-container"), E = x("el-aside"), V = x("el-main"), t = x("router-view"), b = ke("loading");
529
- return c(l) === "edit" ? (p(), P(T, { key: 0 }, {
530
- default: v(() => [
531
- m(N, { class: "client-structure-header" }, {
532
- default: v(() => {
533
- var D;
534
- return [
535
- C("div", wt, [
536
- m(w, {
537
- class: "select-icon",
538
- onClick: c(De)
539
- }, {
540
- default: v(() => _[2] || (_[2] = [
541
- H(" 返回页面 ")
542
- ])),
543
- _: 1,
544
- __: [2]
545
- }, 8, ["onClick"]),
546
- m(w, {
547
- class: "select-icon",
548
- onClick: c($e)
549
- }, {
550
- icon: v(() => [
551
- m(Y, { name: "Store" })
552
- ]),
553
- default: v(() => [
554
- _[3] || (_[3] = H(" 保存页面 "))
555
- ]),
556
- _: 1,
557
- __: [3]
558
- }, 8, ["onClick"])
559
- ]),
560
- C("div", bt, [
561
- c(l) === "view" ? (p(), k("div", {
562
- key: 0,
563
- class: "select-icon",
564
- onClick: _[0] || (_[0] = //@ts-ignore
565
- (...f) => c(q) && c(q)(...f))
566
- }, [
567
- C("div", St, [
568
- m(Y, {
569
- name: "write",
570
- style: { width: "16px", height: "16px" }
571
- })
572
- ]),
573
- _[4] || (_[4] = C("div", null, B("修改布局"), -1))
574
- ])) : j("", !0),
575
- C("div", Dt, [
576
- Z(h.$slots, "default", {}, void 0, !0)
577
- ]),
578
- m(J, {
579
- size: 35,
580
- src: (D = c(e)) == null ? void 0 : D.avatarUrl
581
- }, {
582
- default: v(() => {
583
- var f;
584
- return [
585
- H(B(((f = c(e)) == null ? void 0 : f.account) ?? "未知"), 1)
586
- ];
587
- }),
588
- _: 1
589
- }, 8, ["src"])
590
- ])
591
- ];
592
- }),
593
- _: 3
594
- }),
595
- c(l) === "edit" ? (p(), P(T, {
596
- key: 0,
597
- class: "model-operate",
598
- style: { "margin-top": "10px" }
599
- }, {
600
- default: v(() => [
601
- C("div", $t, [
602
- m(ie)
603
- ]),
604
- C("div", It, [
605
- m(de)
606
- ]),
607
- C("div", At, [
608
- m(he)
609
- ])
610
- ]),
611
- _: 1
612
- })) : j("", !0)
613
- ]),
614
- _: 3
615
- })) : we((p(), P(T, {
616
- key: 1,
617
- style: { "background-color": "#fff" },
618
- "element-loading-text": "正在加载页面数据..."
619
- }, {
620
- default: v(() => [
621
- m(N, { class: "client-header" }, {
622
- default: v(() => {
623
- var D;
624
- return [
625
- _[6] || (_[6] = C("div", { class: "client-header-logo" }, " 复杂型面一体化软硬件平台 ", -1)),
626
- C("div", Mt, [
627
- m(kt, { mode: "horizontal" })
628
- ]),
629
- C("div", xt, [
630
- c(l) === "view" ? (p(), k("div", {
631
- key: 0,
632
- class: "select-icon",
633
- onClick: _[1] || (_[1] = //@ts-ignore
634
- (...f) => c(q) && c(q)(...f))
635
- }, [
636
- C("div", Et, [
637
- m(Y, {
638
- name: "write",
639
- style: { width: "16px", height: "16px" }
640
- })
641
- ]),
642
- _[5] || (_[5] = C("div", null, B("修改布局"), -1))
643
- ])) : j("", !0),
644
- C("div", Pt, [
645
- Z(h.$slots, "default", {}, void 0, !0)
646
- ]),
647
- m(J, {
648
- size: 35,
649
- src: (D = c(e)) == null ? void 0 : D.avatarUrl
650
- }, {
651
- default: v(() => {
652
- var f;
653
- return [
654
- H(B(((f = c(e)) == null ? void 0 : f.account) ?? "未知"), 1)
655
- ];
656
- }),
657
- _: 1
658
- }, 8, ["src"])
659
- ])
660
- ];
661
- }),
662
- _: 3,
663
- __: [6]
664
- }),
665
- m(T, { class: "client-body" }, {
666
- default: v(() => [
667
- m(E, {
668
- class: "client-aside",
669
- width: "250px"
670
- }, {
671
- default: v(() => [
672
- m(be, { mode: "vertical" })
673
- ]),
674
- _: 1
675
- }),
676
- h.$route.path === "/" ? (p(), P(V, {
677
- key: 0,
678
- class: "client-main"
679
- }, {
680
- default: v(() => {
681
- var D;
682
- return [
683
- C("div", Tt, [
684
- (p(), P(Be, {
685
- isShow: n.value,
686
- key: i.value
687
- }, null, 8, ["isShow"]))
688
- ]),
689
- C("div", Nt, [
690
- (p(!0), k(K, null, ee((D = c(S)(c(L))) == null ? void 0 : D.filter((f) => f.comp !== "FormTop"), (f, y) => (p(), k("div", { key: y }, [
691
- (p(), P(ae(c(se)(f.comp)), {
692
- itemData: f == null ? void 0 : f.compData,
693
- childItemData: f == null ? void 0 : f.itemChildData,
694
- key: (f == null ? void 0 : f.id) ?? y,
695
- onChange: c(ce),
696
- index: (f == null ? void 0 : f.id) ?? y,
697
- onContentChange: c(re),
698
- onPageChange: c(le)
699
- }, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
700
- ]))), 128))
701
- ])
702
- ];
703
- }),
704
- _: 1
705
- })) : (p(), P(V, {
706
- key: 1,
707
- class: "client-router"
708
- }, {
709
- default: v(() => [
710
- m(t)
711
- ]),
712
- _: 1
713
- }))
714
- ]),
715
- _: 1
716
- })
717
- ]),
718
- _: 3
719
- })), [
720
- [b, c(r)]
721
- ]);
722
- };
723
- }
724
- }), Ft = /* @__PURE__ */ X(Vt, [["__scopeId", "data-v-bb965b5f"]]), jt = { class: "system-wrap" }, Bt = {
725
- __name: "index",
726
- props: {
727
- platform: {
728
- type: String,
729
- default: "browser"
730
- },
731
- content: String,
732
- jsonContents: Array
733
- },
734
- setup(a) {
735
- const d = te(R), e = Se(R), s = ne();
736
- I(!1);
737
- const l = I(!0), o = a;
738
- return Q(
739
- () => [o == null ? void 0 : o.content, o == null ? void 0 : o.jsonContents],
740
- async () => {
741
- var n, i, h, _;
742
- if (((n = o == null ? void 0 : o.jsonContents) == null ? void 0 : n.length) > 0) {
743
- d.setOriginalData(o == null ? void 0 : o.jsonContents);
744
- return;
745
- }
746
- if (!(o != null && o.content) || ((i = o == null ? void 0 : o.content) == null ? void 0 : i.length) === 0) return;
747
- l.value = !0, s.setImportLoading(!0);
748
- let r = [], u = [];
749
- e.setSelectTitle([]), e.setSelectIndex(""), e.setSelectMenu(""), (_ = (h = o == null ? void 0 : o.content) == null ? void 0 : h.filter((w) => w !== "")) == null || _.forEach((w) => {
750
- Ne(w) ? u.push(Ve(w)) : ge(w) ? u.push(ge(w)) : me(w) ? u.push(me(w)) : u.push(nt(w));
751
- }), r = u == null ? void 0 : u[0], await Oe(r), console.log(1990, r), d.setOriginalData(r), s.setImportLoading(!1);
752
- },
753
- { deep: !0, immediate: !0 }
754
- ), (r, u) => (p(), k("div", jt, [
755
- a.platform === "browser" ? (p(), P(yt, { key: 0 }, {
756
- default: v(() => [
757
- Z(r.$slots, "default", {}, void 0, !0)
758
- ]),
759
- _: 3
760
- })) : (p(), P(Ft, { key: 1 }, {
761
- default: v(() => [
762
- Z(r.$slots, "default", {}, void 0, !0)
763
- ]),
764
- _: 3
765
- }))
766
- ]));
767
- }
768
- }, Jt = /* @__PURE__ */ X(Bt, [["__scopeId", "data-v-32825698"]]), Ot = { class: "add-model-content" }, Lt = {
769
- key: 0,
770
- class: "model-operate"
771
- }, Ut = { class: "model-select" }, zt = { class: "model-fill" }, Rt = {
772
- key: 1,
773
- class: "model-view"
774
- }, Gt = {
775
- key: 0,
776
- class: "model-import-data"
777
- }, Wt = { class: "import-button" }, Ht = {
778
- __name: "index",
779
- props: {
780
- mode: {
781
- type: String,
782
- default: "view"
783
- },
784
- content: {
785
- type: String,
786
- default: ""
787
- },
788
- jsonContents: {
789
- type: Array,
790
- default: () => []
791
- },
792
- showButton: {
793
- type: Boolean,
794
- default: !0
795
- }
796
- },
797
- emits: ["change", "contentChange"],
798
- setup(a, { emit: d }) {
799
- const e = a, s = d, l = I([]), o = I([]), r = I([]), u = I(0), n = te(R), i = ne(R), { itemData: h, originalData: _ } = z(n), { activeMenuPath: w, platform: J } = z(i), N = I(null), T = I(0), E = I([]);
800
- I("");
801
- const V = I(0), t = (y) => {
802
- s("contentChange", y);
803
- }, b = (y) => {
804
- var F;
805
- const $ = (F = S(y == null ? void 0 : y.wholeValue)) == null ? void 0 : F.map((A) => {
806
- var O;
807
- return (A == null ? void 0 : A.comp) === "Form" && (A.compData = (O = A.compData) == null ? void 0 : O.map((M) => ((M == null ? void 0 : M.key) === "formContent" && (M.contents = Fe(M == null ? void 0 : M.contents)), M))), A;
808
- });
809
- s("change", {
810
- originalContents: _.value,
811
- currentContents: y == null ? void 0 : y.wholeValue,
812
- editContent: y == null ? void 0 : y.editValue,
813
- arrayToContents: $
814
- });
815
- };
816
- Q(
817
- () => o.value,
818
- () => {
819
- V.value === o.value.length && o.value.length !== 0 && (l.value = o.value);
820
- },
821
- { deep: !0, immediate: !0 }
822
- );
823
- const D = () => {
824
- N.value.click();
825
- }, f = async (y) => {
826
- const $ = y.target.files;
827
- if (!$) return;
828
- new FileReader(), l.value = [], o.value = [], V.value = $.length;
829
- const F = Array.from($).map(async (A) => await new Promise((O) => {
830
- const M = new FileReader();
831
- M.onload = (G) => {
832
- try {
833
- o.value.push(G.target.result), T.value++;
834
- } catch (U) {
835
- console.error("解析失败:", U);
836
- return;
837
- }
838
- }, M.onerror = () => O(`读取 ${A.name} 失败`), M.readAsText(A);
839
- }));
840
- await Promise.all(F);
841
- };
842
- return Q(
843
- () => [e == null ? void 0 : e.content, e == null ? void 0 : e.jsonContents],
844
- () => {
845
- l.value = e.content, r.value = e == null ? void 0 : e.jsonContents;
846
- },
847
- { deep: !0, immediate: !0 }
848
- ), Q(
849
- () => T.value,
850
- () => {
851
- var y;
852
- ((y = E.value) == null ? void 0 : y.length) !== 0 && (n.setOriginalData(E.value), n.setItemData(E.value));
853
- },
854
- { deep: !0, immediate: !0 }
855
- ), (y, $) => {
856
- const F = x("svg-icon");
857
- return p(), k("div", Ot, [
858
- (e == null ? void 0 : e.mode) === "edit" ? (p(), k("div", Lt, [
859
- C("div", Ut, [
860
- m(ie)
861
- ]),
862
- (p(), k("div", {
863
- class: "model-show",
864
- key: u.value
865
- }, [
866
- m(de)
867
- ])),
868
- C("div", zt, [
869
- m(he)
870
- ])
871
- ])) : j("", !0),
872
- (e == null ? void 0 : e.mode) === "view" ? (p(), k("div", Rt, [
873
- (p(), P(Jt, {
874
- platform: c(J),
875
- content: l.value,
876
- onChange: b,
877
- jsonContents: r.value,
878
- onContentChange: t,
879
- key: u.value
880
- }, {
881
- default: v(() => {
882
- var A;
883
- return [
884
- ((A = e == null ? void 0 : e.jsonContents) == null ? void 0 : A.length) === 0 && (e != null && e.showButton) ? (p(), k("div", Gt, [
885
- C("div", Wt, [
886
- C("input", {
887
- type: "file",
888
- ref_key: "fileInput",
889
- ref: N,
890
- accept: ".txt, .inm",
891
- onChange: f,
892
- style: { display: "none" },
893
- multiple: ""
894
- }, null, 544),
895
- m(F, {
896
- name: "import",
897
- style: { width: "16px", height: "16px" }
898
- }),
899
- C("div", { onClick: D }, B("导入模型"))
900
- ])
901
- ])) : j("", !0)
902
- ];
903
- }),
904
- _: 1
905
- }, 8, ["platform", "content", "jsonContents"]))
906
- ])) : j("", !0)
907
- ]);
908
- };
909
- }
910
- }, hn = /* @__PURE__ */ X(Ht, [["__scopeId", "data-v-4d31b674"]]);
911
- export {
912
- hn as default
913
- };