ss-component-new 1.1.396 → 1.1.397

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 (81) hide show
  1. package/dist/{array-C16RsBGi.js → array-BMm2xbyh.js} +2 -2
  2. package/dist/{array-CrflPQfH.cjs → array-DrchcVuo.cjs} +1 -1
  3. package/dist/{index-Ci_TlUaz.cjs → index-0xeOQNqr.cjs} +1 -1
  4. package/dist/{index-sX5lTda9.cjs → index-5rgfBNRZ.cjs} +1 -1
  5. package/dist/{index-LAneWWe0.cjs → index-7UFQD8dI.cjs} +1 -1
  6. package/dist/{index-BrwiY9L3.js → index-ASm-tiLF.js} +4 -4
  7. package/dist/{index-BPhF9zmt.cjs → index-B4MrDBQI.cjs} +1 -1
  8. package/dist/{index-sbQSWrBI.cjs → index-BJjUEAip.cjs} +1 -1
  9. package/dist/{index-DD1B6uNy.cjs → index-BLq1jCgy.cjs} +1 -1
  10. package/dist/{index-BqgHyhdi.js → index-BPnzUJyM.js} +1 -1
  11. package/dist/{index-DdMKahpe.cjs → index-BR_5J-Rp.cjs} +1 -1
  12. package/dist/{index-DeDlxE6V.js → index-BU_03B7p.js} +29 -26
  13. package/dist/{index-DPMhC2WO.js → index-BVQIDysd.js} +3 -3
  14. package/dist/{index-DlBjdPGf.cjs → index-BY1X4-T5.cjs} +1 -1
  15. package/dist/{index-CVkIx7Qb.js → index-Bhci20la.js} +4 -4
  16. package/dist/{index-CmwiMKaN.cjs → index-BqArjijs.cjs} +1 -1
  17. package/dist/{index-iWbccyfH.cjs → index-BusYSZDz.cjs} +1 -1
  18. package/dist/{index-DvuQRvTq.js → index-Bxi55yPn.js} +5 -5
  19. package/dist/{index-NyFbsRls.js → index-Byf9n_kH.js} +7 -7
  20. package/dist/{index-B87MOYL0.cjs → index-BzWrFscu.cjs} +1 -1
  21. package/dist/{index-HXgo29eU.js → index-CI1TvyGc.js} +4 -4
  22. package/dist/{index-5QKtXqtt.cjs → index-CKfWuKQ-.cjs} +1 -1
  23. package/dist/{index-BPG0DRXa.js → index-CM1PfZ-y.js} +5 -5
  24. package/dist/index-CWxAe8Hn.js +1564 -0
  25. package/dist/{index-D6aaas52.cjs → index-CcUmQ8j2.cjs} +1 -1
  26. package/dist/{index-BLFmQUvu.cjs → index-CeZMiwjT.cjs} +1 -1
  27. package/dist/{index-0rS7KbmB.cjs → index-CkuA9YtT.cjs} +1 -1
  28. package/dist/{index-CAiiyLHX.js → index-CusCByer.js} +2 -2
  29. package/dist/{index-BCBaGcSw.cjs → index-CvKVVUbj.cjs} +1 -1
  30. package/dist/{index-B5SKuqtT.js → index-CydzKd1p.js} +1 -1
  31. package/dist/{index-B_gX595b.cjs → index-CyxJ_jHM.cjs} +1 -1
  32. package/dist/{index-DL2KazPi.js → index-D3-VeVtm.js} +6 -6
  33. package/dist/{index-msEHZkYa.js → index-D7gBl7Bx.js} +5 -5
  34. package/dist/{index-cld16RcD.js → index-DE3aicnZ.js} +7 -7
  35. package/dist/{index-Dyj2IJ-k.js → index-DLBak3Lt.js} +4 -4
  36. package/dist/{index-C9Qome4l.js → index-DP9-VsqS.js} +5 -5
  37. package/dist/{index-CA6wLV-m.js → index-DQ3sNMML.js} +6 -6
  38. package/dist/{index-CF2GXE5j.js → index-DUcpVC5C.js} +4 -4
  39. package/dist/{index-CASSs849.js → index-DYvfFqEa.js} +3 -3
  40. package/dist/{index-Bft1aZ0a.cjs → index-DcuoGUjl.cjs} +1 -1
  41. package/dist/index-Dgk3r8_M.cjs +1 -0
  42. package/dist/{index-P4OXUc2W.cjs → index-Dn-0fR75.cjs} +1 -1
  43. package/dist/{index-P80WmN2w.cjs → index-Ds8QFoQ-.cjs} +1 -1
  44. package/dist/{index-F1ttuKSv.js → index-DuC_dofe.js} +4 -4
  45. package/dist/{index-BI8ECnch.js → index-DxkIkZjg.js} +1 -1
  46. package/dist/{index-C822Fm25.js → index-HT7hXa5c.js} +7 -7
  47. package/dist/{index-Vgnu3AJT.cjs → index-QK5rLXVe.cjs} +1 -1
  48. package/dist/{index-CIQlsfDn.cjs → index-Wb412Wki.cjs} +1 -1
  49. package/dist/{index-DPiUDaPy.js → index-XV4q28ju.js} +3 -3
  50. package/dist/index-Y7giQ1a4.cjs +1 -0
  51. package/dist/{index-BiLGjwKz.js → index-ecJYDIw4.js} +9 -9
  52. package/dist/{index-Bkw45mmW.cjs → index-gyJJ1_Vo.cjs} +1 -1
  53. package/dist/{index-BS9fOObP.js → index-rIMXQ6PY.js} +1 -1
  54. package/dist/{index-Z_MwT_T3.cjs → index-vorF-H1l.cjs} +1 -1
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-DSlW9AIf.cjs → index.vue_vue_type_script_setup_true_lang-D67sZOgP.cjs} +1 -1
  56. package/dist/{index.vue_vue_type_script_setup_true_lang-BbuiPO6s.js → index.vue_vue_type_script_setup_true_lang-T1imEghJ.js} +3 -3
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CMVrqCWx.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Csbqxggh.cjs} +1 -1
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UFSwAOJz.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D2ENkR1G.js} +2 -2
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-DOjbMvFW.cjs → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CG-9MeCv.cjs} +1 -1
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-4Af2QVFc.js → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-Dk0_HFXf.js} +8 -8
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_45defba9_lang-DGl8Ds4Q.js → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CafwctIq.js} +1336 -1342
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_45defba9_lang-BoiEK80r.cjs → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CpPem8Cc.cjs} +3 -3
  63. package/dist/{login-Dk-07p0w.cjs → login-CII9CG-J.cjs} +1 -1
  64. package/dist/{login-DXi57ZMh.js → login-DdNgIg3X.js} +1 -1
  65. package/dist/{main-Bi8-ggGu.cjs → main-B1ZWk63R.cjs} +1 -1
  66. package/dist/{main-BbFbvu6k.js → main-BOfMXV-3.js} +6 -6
  67. package/dist/{menu-CIgIfqSs.cjs → menu-DlNtyfT6.cjs} +1 -1
  68. package/dist/{menu-ozOGGi5Z.js → menu-Dl_Xtx7n.js} +1 -1
  69. package/dist/ss-component.cjs +1 -1
  70. package/dist/ss-component.css +1 -1
  71. package/dist/ss-component.js +10 -10
  72. package/dist/ss-component3.cjs +1 -1
  73. package/dist/ss-component3.js +1 -1
  74. package/dist/{threeModel-Dl-CREqP.cjs → threeModel-Bf7f4982.cjs} +1 -1
  75. package/dist/{threeModel-Dt4tQ3jF.js → threeModel-Cc5t11yb.js} +3 -3
  76. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-D7fZi66-.cjs → threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-DMIfmZ8j.cjs} +1 -1
  77. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-Bea0CNjG.js → threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-OVa4vxrk.js} +2 -2
  78. package/package.json +1 -1
  79. package/dist/index-DOIRqr3P.js +0 -1553
  80. package/dist/index-kP4PZFnP.cjs +0 -1
  81. package/dist/index-soDn3tCX.cjs +0 -1
@@ -0,0 +1,1564 @@
1
+ import { resolveComponent as b, createBlock as L, openBlock as c, withCtx as a, createVNode as t, createElementVNode as C, toDisplayString as Pe, ref as w, onMounted as eo, watch as we, createElementBlock as N, Fragment as at, renderList as ht, createCommentVNode as Q, normalizeStyle as to, defineComponent as Rt, computed as nt, resolveDirective as Ft, withDirectives as ot, unref as i, createTextVNode as fe, renderSlot as We, resolveDynamicComponent as St, vShow as Ct } from "vue";
2
+ import { m as ft, a as gt, b as yt } from "./index-HT7hXa5c.js";
3
+ import lt from "./index-BPnzUJyM.js";
4
+ import { _ as oo, o as xt, c as At, a as Ut, b as Pt, d as Dt, s as le, g as jt, e as $t, f as Mt, h as Lt, i as ao, j as no } from "./index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CafwctIq.js";
5
+ import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import { p as Be, s as ke, u as st, b as K, g as lo, E as mt } from "./menu-Dl_Xtx7n.js";
7
+ import { u as Et } from "./login-DdNgIg3X.js";
8
+ import { S as Ue } from "./index-BHtNKL1L.js";
9
+ import { u as it } from "./threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-OVa4vxrk.js";
10
+ import { u as _t, a as so, I as bt, l as Vt } from "./index-DP9-VsqS.js";
11
+ import { s as Nt } from "./index-ecJYDIw4.js";
12
+ import { c as et } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D2ENkR1G.js";
13
+ import io from "./threeModel-Cc5t11yb.js";
14
+ import { s as ro, _ as Oe } from "./index-ASm-tiLF.js";
15
+ import { u as co } from "./index-Byf9n_kH.js";
16
+ import { d as kt } from "./index-DxkIkZjg.js";
17
+ import { i as uo, e as po, b as Bt, c as Tt, a as mo } from "./array-BMm2xbyh.js";
18
+ import { c as ho, b as fo } from "./index.vue_vue_type_style_index_0_scoped_306ecd73_lang-Dk0_HFXf.js";
19
+ function go(j, Re, l, z, G, ce) {
20
+ const r = b("svg-icon"), se = b("ssMenu");
21
+ return c(), L(se, {
22
+ mode: j.mode,
23
+ menuList: j.renderMenuList,
24
+ onClickMenu: j.clickMenu,
25
+ onOpenMenu: j.openMenu,
26
+ onCloseMenu: j.closeMenu
27
+ }, {
28
+ title: a(({ menu: X }) => [
29
+ t(r, {
30
+ name: X.icon ?? "Fold",
31
+ style: { width: "clamp(16px, 1.25rem, 20px)", height: "clamp(16px, 1.25rem, 20px)", "margin-right": "8px" }
32
+ }, null, 8, ["name"]),
33
+ C("span", null, Pe(X.title ?? ""), 1)
34
+ ]),
35
+ _: 1
36
+ }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
37
+ }
38
+ const Ot = /* @__PURE__ */ qe(oo, [["render", go], ["__scopeId", "data-v-5c2d7ed2"]]), yo = { class: "bread-content" }, _o = ["onClick"], wo = {
39
+ key: 0,
40
+ class: "split-title"
41
+ }, vo = {
42
+ __name: "index",
43
+ props: {
44
+ breadArray: {
45
+ type: Array,
46
+ default: () => []
47
+ }
48
+ },
49
+ emits: ["click"],
50
+ setup(j, { emit: Re }) {
51
+ const l = j, z = w([]), G = Re;
52
+ eo(() => {
53
+ z.value = l == null ? void 0 : l.breadArray;
54
+ }), we(
55
+ () => l == null ? void 0 : l.breadArray,
56
+ () => {
57
+ z.value = l == null ? void 0 : l.breadArray;
58
+ },
59
+ { deep: !0, immediate: !0 }
60
+ );
61
+ const ce = (r) => {
62
+ G("click", r);
63
+ };
64
+ return (r, se) => (c(), N("div", yo, [
65
+ (c(!0), N(at, null, ht(z.value, (X, ue) => {
66
+ var de;
67
+ return c(), N("div", {
68
+ key: ue,
69
+ class: "bread-item"
70
+ }, [
71
+ C("div", {
72
+ class: "bread-title",
73
+ onClick: (ve) => ce(X),
74
+ style: to({ opacity: ((de = z.value) == null ? void 0 : de.length) - 1 === ue ? "0.7" : "1" })
75
+ }, Pe(X.value), 13, _o),
76
+ ue !== z.value.length - 1 && Array.isArray(z.value) ? (c(), N("div", wo, Pe("/"))) : Q("", !0)
77
+ ]);
78
+ }), 128))
79
+ ]));
80
+ }
81
+ }, zt = /* @__PURE__ */ qe(vo, [["__scopeId", "data-v-ded7e2bd"]]), Co = { class: "structure-buttons" }, bo = { class: "structure-paths" }, ko = { class: "client-header-user" }, Bo = { class: "model-select" }, To = { class: "model-show" }, Ro = { class: "model-fill" }, Fo = { class: "client-header-menu" }, So = { class: "client-header-user" }, xo = { class: "drop-menu" }, Ao = { class: "client-main-operate" }, Uo = {
82
+ key: 0,
83
+ class: "item-view-group"
84
+ }, Po = { class: "client-main-operate" }, Do = /* @__PURE__ */ Rt({
85
+ __name: "index2",
86
+ props: {
87
+ windowConfig: {
88
+ type: Object,
89
+ default: () => {
90
+ }
91
+ },
92
+ showButton: {
93
+ type: Boolean,
94
+ default: !0
95
+ }
96
+ },
97
+ setup(j) {
98
+ const Re = _t(Be), { selectTitle: l } = ke(Re), z = Et(), { loginUserInfo: G } = ke(z), ce = it(Be), { isEdit: r, routeToChildPath: se } = ke(ce), X = st(Be), { importLoading: ue, activeTopMenuPath: de } = ke(X), ve = w(""), J = nt(() => de.value === "系统管理" || de.value === "平台管理"), W = () => {
99
+ sessionStorage.clear(), window.location.reload();
100
+ }, ie = () => {
101
+ X.setActiveMenuPath(se.value), ce.setRouteToChildPath("");
102
+ };
103
+ return (Ce, A) => {
104
+ const ge = b("el-button"), oe = b("el-avatar"), je = b("el-header"), q = b("el-container"), pe = b("el-icon"), Le = b("el-input"), He = b("ss-avatar"), $e = b("ss-button"), U = b("ss-drop"), O = b("el-aside"), be = b("el-main"), ae = b("router-view"), ye = Ft("loading");
105
+ return i(r) === "edit" ? (c(), L(q, {
106
+ key: 0,
107
+ class: "client-container"
108
+ }, {
109
+ default: a(() => [
110
+ t(je, { class: "client-structure-header" }, {
111
+ default: a(() => {
112
+ var B;
113
+ return [
114
+ C("div", Co, [
115
+ t(ge, {
116
+ id: "transparentBgButton",
117
+ onClick: i(xt)
118
+ }, {
119
+ default: a(() => A[2] || (A[2] = [
120
+ fe(" 返回页面 ")
121
+ ])),
122
+ _: 1,
123
+ __: [2]
124
+ }, 8, ["onClick"]),
125
+ t(ge, {
126
+ id: "transparentBgButton",
127
+ onClick: A[0] || (A[0] = (g) => {
128
+ var Fe, Ee;
129
+ return i(At)((Ee = (Fe = i(l)) == null ? void 0 : Fe.map((rt) => rt.value)) == null ? void 0 : Ee.join("/"));
130
+ })
131
+ }, {
132
+ icon: a(() => [
133
+ t(Ue, { name: "Store" })
134
+ ]),
135
+ default: a(() => [
136
+ A[3] || (A[3] = fe(" 保存页面 "))
137
+ ]),
138
+ _: 1,
139
+ __: [3]
140
+ })
141
+ ]),
142
+ C("div", bo, [
143
+ (c(), L(zt, {
144
+ key: i(l),
145
+ breadArray: i(l),
146
+ onClick: i(Ut)
147
+ }, null, 8, ["breadArray", "onClick"]))
148
+ ]),
149
+ C("div", ko, [
150
+ We(Ce.$slots, "default", {}, void 0, !0),
151
+ t(oe, {
152
+ size: 35,
153
+ src: (B = i(G)) == null ? void 0 : B.avatarUrl
154
+ }, {
155
+ default: a(() => {
156
+ var g;
157
+ return [
158
+ fe(Pe(((g = i(G)) == null ? void 0 : g.account) ?? "未知"), 1)
159
+ ];
160
+ }),
161
+ _: 1
162
+ }, 8, ["src"])
163
+ ])
164
+ ];
165
+ }),
166
+ _: 3
167
+ }),
168
+ i(r) === "edit" ? (c(), L(q, {
169
+ key: 0,
170
+ class: "model-operate",
171
+ style: { "margin-top": "10px", height: "0px" }
172
+ }, {
173
+ default: a(() => [
174
+ C("div", Bo, [
175
+ t(ft)
176
+ ]),
177
+ C("div", To, [
178
+ t(gt)
179
+ ]),
180
+ C("div", Ro, [
181
+ t(yt)
182
+ ])
183
+ ]),
184
+ _: 1
185
+ })) : Q("", !0)
186
+ ]),
187
+ _: 3
188
+ })) : ot((c(), L(q, {
189
+ key: 1,
190
+ class: "client-container",
191
+ "element-loading-text": "正在加载页面数据..."
192
+ }, {
193
+ default: a(() => [
194
+ t(je, { class: "client-header" }, {
195
+ default: a(() => [
196
+ A[6] || (A[6] = C("div", { class: "client-header-logo" }, " ISIP ", -1)),
197
+ C("div", Fo, [
198
+ t(Ot, { mode: "horizontal" })
199
+ ]),
200
+ C("div", So, [
201
+ t(Le, {
202
+ modelValue: ve.value,
203
+ "onUpdate:modelValue": A[1] || (A[1] = (B) => ve.value = B),
204
+ clearable: "",
205
+ placeholder: "搜索",
206
+ style: { width: "130px" }
207
+ }, {
208
+ prefix: a(() => [
209
+ t(pe, { class: "el-input__icon" }, {
210
+ default: a(() => [
211
+ t(i(Nt))
212
+ ]),
213
+ _: 1
214
+ })
215
+ ]),
216
+ _: 1
217
+ }, 8, ["modelValue"]),
218
+ j.showButton ? (c(), L(ge, {
219
+ key: 0,
220
+ id: "transparentBgButton",
221
+ onClick: i(Pt)
222
+ }, {
223
+ icon: a(() => [
224
+ t(Ue, { name: "App" })
225
+ ]),
226
+ default: a(() => [
227
+ A[4] || (A[4] = fe(" 生成APP "))
228
+ ]),
229
+ _: 1,
230
+ __: [4]
231
+ }, 8, ["onClick"])) : Q("", !0),
232
+ j.showButton && i(r) === "view" ? (c(), L(ge, {
233
+ key: 1,
234
+ id: "transparentBgButton",
235
+ onClick: i(Dt)
236
+ }, {
237
+ icon: a(() => [
238
+ t(Ue, { name: "write" })
239
+ ]),
240
+ default: a(() => [
241
+ A[5] || (A[5] = fe(" 修改布局 "))
242
+ ]),
243
+ _: 1,
244
+ __: [5]
245
+ }, 8, ["onClick"])) : Q("", !0),
246
+ We(Ce.$slots, "default", {}, void 0, !0),
247
+ t(U, null, {
248
+ dropTitle: a(() => {
249
+ var B;
250
+ return [
251
+ t(He, {
252
+ size: "35",
253
+ avatarUrl: (B = i(G)) == null ? void 0 : B.avatarUrl,
254
+ showCropper: !1,
255
+ banClick: !0
256
+ }, {
257
+ avatarDefault: a(() => {
258
+ var g;
259
+ return [
260
+ fe(Pe(((g = i(G)) == null ? void 0 : g.account) ?? "未知"), 1)
261
+ ];
262
+ }),
263
+ _: 1
264
+ }, 8, ["avatarUrl"])
265
+ ];
266
+ }),
267
+ dropMenu: a(() => [
268
+ C("div", xo, [
269
+ t($e, {
270
+ emptyColor: !0,
271
+ class: "menu-button",
272
+ onClickTrigger: W,
273
+ modelValue: "退出登录",
274
+ buttonType: ""
275
+ })
276
+ ])
277
+ ]),
278
+ _: 1
279
+ })
280
+ ])
281
+ ]),
282
+ _: 3,
283
+ __: [6]
284
+ }),
285
+ t(q, { class: "client-body" }, {
286
+ default: a(() => [
287
+ J.value ? (c(), L(be, {
288
+ key: 1,
289
+ class: "client-main"
290
+ }, {
291
+ default: a(() => [
292
+ t(O, { class: "client-aside" }, {
293
+ default: a(() => [
294
+ t(lt, { mode: "vertical" })
295
+ ]),
296
+ _: 1
297
+ }),
298
+ C("div", Po, [
299
+ t(ae)
300
+ ])
301
+ ]),
302
+ _: 1
303
+ })) : (c(), L(be, {
304
+ key: 0,
305
+ class: "client-main"
306
+ }, {
307
+ default: a(() => {
308
+ var B;
309
+ return [
310
+ t(O, { class: "client-aside" }, {
311
+ default: a(() => [
312
+ t(lt, { mode: "vertical" })
313
+ ]),
314
+ _: 1
315
+ }),
316
+ C("div", Ao, [
317
+ i(se) !== "" ? (c(), L($e, {
318
+ key: 0,
319
+ class: "calculator-content back-content",
320
+ onClickTrigger: ie,
321
+ modelValue: "返回"
322
+ })) : Q("", !0),
323
+ (c(!0), N(at, null, ht((B = i(et)(i(le))) == null ? void 0 : B.filter((g) => g.comp !== "FormTop"), (g, Fe) => {
324
+ var Ee;
325
+ return c(), N("div", {
326
+ class: "item-view-content",
327
+ key: Fe
328
+ }, [
329
+ ((Ee = g == null ? void 0 : g.comp) == null ? void 0 : Ee.toUpperCase()) !== "TABLE" && g.name ? (c(), N("div", Uo, Pe(g.name), 1)) : Q("", !0),
330
+ (c(), L(St(i(jt)(g.comp)), {
331
+ compName: g.name,
332
+ itemData: g == null ? void 0 : g.compData,
333
+ childItemData: g == null ? void 0 : g.itemChildData,
334
+ key: (g == null ? void 0 : g.id) ?? Fe,
335
+ onChange: i(Lt),
336
+ index: (g == null ? void 0 : g.id) ?? Fe,
337
+ onContentChange: i(Mt),
338
+ onPageChange: i($t)
339
+ }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
340
+ ]);
341
+ }), 128))
342
+ ])
343
+ ];
344
+ }),
345
+ _: 1
346
+ }))
347
+ ]),
348
+ _: 1
349
+ })
350
+ ]),
351
+ _: 3
352
+ })), [
353
+ [ye, i(ue)]
354
+ ]);
355
+ };
356
+ }
357
+ }), jo = /* @__PURE__ */ qe(Do, [["__scopeId", "data-v-96b95789"]]), y = [
358
+ {
359
+ key: "FitCurve_Eleven",
360
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",
361
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35326658522693",
362
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources"
363
+ },
364
+ {
365
+ key: "MakeShape",
366
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018179530309",
367
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018179530309",
368
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources"
369
+ },
370
+ {
371
+ key: "FillEmpty",
372
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018289382469",
373
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018289382469",
374
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources"
375
+ },
376
+ {
377
+ key: "ToolPathFakeFast",
378
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35484063607109",
379
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35484063607109",
380
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources"
381
+ },
382
+ {
383
+ key: "FiveAxisCalculator",
384
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35237389477957",
385
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35237389477957",
386
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources"
387
+ },
388
+ {
389
+ key: "DetectionAlgorithm",
390
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35459977498949",
391
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35459977498949",
392
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources"
393
+ },
394
+ {
395
+ key: "FeatureSelectionAlgorithm_FFS",
396
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35277984187973",
397
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35277984187973",
398
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources"
399
+ },
400
+ {
401
+ key: "AIParameterOptimization",
402
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35788169784389",
403
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35788169784389"
404
+ }
405
+ ], Ge = [
406
+ {
407
+ key: "型线生成",
408
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"
409
+ },
410
+ {
411
+ key: "曲面生成",
412
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"
413
+ },
414
+ {
415
+ key: "叶片生成",
416
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"
417
+ },
418
+ {
419
+ key: "轨迹规划",
420
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"
421
+ },
422
+ {
423
+ key: "加工规划",
424
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"
425
+ },
426
+ {
427
+ key: "产品检测",
428
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/source.pcd,http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/target.pcd"
429
+ },
430
+ {
431
+ key: "参数筛选训练方法",
432
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
433
+ }
434
+ // {
435
+ // key: "参数筛选推理",
436
+ // value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
437
+ // }
438
+ ], $o = ["src"], Mo = { class: "structure-buttons" }, Lo = { class: "structure-paths" }, Eo = { class: "client-header-user" }, Vo = { class: "model-select" }, No = { class: "model-show" }, Oo = { class: "model-fill" }, zo = { class: "client-header-logo" }, Jo = { class: "client-header-menu" }, Io = { class: "client-header-user" }, Ko = { class: "drop-menu" }, Go = { class: "client-main-content" }, Wo = {
439
+ key: 0,
440
+ class: "item-view-group"
441
+ }, qo = {
442
+ key: 0,
443
+ class: "calculator"
444
+ }, Ho = {
445
+ key: 1,
446
+ class: "calculator"
447
+ }, Qo = {
448
+ key: 2,
449
+ class: "calculator"
450
+ }, Xo = {
451
+ key: 3,
452
+ class: "calculator"
453
+ }, Yo = { class: "router-aside" }, Zo = { class: "router-main" }, ea = /* @__PURE__ */ Rt({
454
+ __name: "index",
455
+ props: {
456
+ windowConfig: {
457
+ type: Object,
458
+ default: () => {
459
+ }
460
+ },
461
+ showButton: {
462
+ type: Boolean,
463
+ default: !0
464
+ }
465
+ },
466
+ emits: ["showChild", "buildContent"],
467
+ setup(j, { emit: Re }) {
468
+ const l = _t(Be), z = w(0), G = w(!1), { selectTitle: ce } = ke(l), r = w(!1), se = w(!1), X = w(!1), ue = so(Be), de = w(!1), { tableShowThree: ve } = ke(ue), J = Et(), { loginUserInfo: W } = ke(J), ie = w(null), Ce = it(Be), { isEdit: A } = ke(Ce), ge = st(Be), oe = co(Be), { objUrl: je, blobUrls: q } = ke(oe), pe = w(null), Le = w(!1), He = w(!0), $e = w(!1), { importLoading: U, activeMenuPath: O, activeTopMenuPath: be, platName: ae } = ke(ge), ye = w(!1), B = w(!1), g = w(!1), Fe = Re;
469
+ we(() => O.value, async (n) => {
470
+ n && (g.value = !0), n === "弯管仿真加工管理/仿真动画生成" ? ye.value = !0 : ye.value = !1, n === "弯管仿真加工管理/程序输出" ? B.value = !0 : B.value = !1, Ge != null && Ge.find((e) => {
471
+ var p;
472
+ return (e == null ? void 0 : e.key) === ((p = n == null ? void 0 : n.split("/")) == null ? void 0 : p[(n == null ? void 0 : n.split("/").length) - 1]);
473
+ }) ? de.value = !0 : de.value = !1;
474
+ }, { immediate: !0 });
475
+ const Ee = () => {
476
+ pe.value.startRunningAnimation();
477
+ }, rt = (n, e, p, h) => {
478
+ if ((h == null ? void 0 : h.type) === "table") {
479
+ let s = Object.values(p), u = s == null ? void 0 : s.find((o) => (o == null ? void 0 : o.includes(".urdf")) || (o == null ? void 0 : o.includes(".mtl")));
480
+ u && Fe("showChild", u);
481
+ }
482
+ }, Jt = () => {
483
+ sessionStorage.clear(), window.location.reload();
484
+ }, It = async () => {
485
+ var o, k, R;
486
+ let n = "";
487
+ (o = le.value) == null || o.forEach((d, x) => {
488
+ var E, P, Y;
489
+ x === le.value.length - 1 && (n = (Y = (P = (E = d.compData) == null ? void 0 : E[0]) == null ? void 0 : P.contents) == null ? void 0 : Y[0].value);
490
+ });
491
+ const e = await K.get(n, {
492
+ responseType: "blob",
493
+ headers: {
494
+ "Content-Type": "application/json"
495
+ }
496
+ }), p = new Blob([e.data], {
497
+ type: "application/octet-stream;charset=UTF-8"
498
+ });
499
+ let h = "";
500
+ (R = (k = e.config.url) == null ? void 0 : k.split("/")) == null || R.forEach((d, x) => {
501
+ var E, P;
502
+ ((P = (E = e.config.url) == null ? void 0 : E.split("/")) == null ? void 0 : P.length) - 1 === x && (h = d);
503
+ });
504
+ var s = document.createElement("a"), u = window.URL.createObjectURL(p);
505
+ s.style.display = "none", s.href = u, s.download = decodeURI(h), document.body.appendChild(s), s.click(), document.body.removeChild(s), window.URL.revokeObjectURL(u);
506
+ }, Kt = async () => {
507
+ var h;
508
+ let n = "";
509
+ (h = le.value) == null || h.forEach((s, u) => {
510
+ var o, k, R;
511
+ u === le.value.length - 1 && (n = (R = (k = (o = s.compData) == null ? void 0 : o[0]) == null ? void 0 : k.contents) == null ? void 0 : R[0].value);
512
+ });
513
+ const e = await K.get(n, {
514
+ responseType: "blob",
515
+ headers: {
516
+ "Content-Type": "application/json"
517
+ }
518
+ }), p = new Blob([e.data], {
519
+ type: "text/plain"
520
+ });
521
+ ie.value && URL.revokeObjectURL(ie.value), ie.value = URL.createObjectURL(p), Le.value = !0;
522
+ }, Gt = async () => {
523
+ var u, o, k, R, d;
524
+ $e.value = !0;
525
+ const n = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken");
526
+ let e = ((k = (o = (u = Ge == null ? void 0 : Ge.find((x) => {
527
+ var E, P, Y;
528
+ return (x == null ? void 0 : x.key) === ((Y = (E = O.value) == null ? void 0 : E.split("/")) == null ? void 0 : Y[((P = O.value) == null ? void 0 : P.split("/").length) - 1]);
529
+ })) == null ? void 0 : u.value) == null ? void 0 : o.split(",")) == null ? void 0 : k[0]) ?? "";
530
+ const p = await K.post(e, null, {
531
+ responseType: "blob",
532
+ // 必须设置
533
+ headers: {
534
+ Authorization: n,
535
+ "Content-Type": "application/json"
536
+ }
537
+ }), h = new Blob([p.data], {
538
+ type: "application/octet-stream;charset=UTF-8"
539
+ });
540
+ let s = {
541
+ suffix: "." + ((d = e == null ? void 0 : e.split(".")) == null ? void 0 : d[((R = e == null ? void 0 : e.split(".")) == null ? void 0 : R.length) - 1]),
542
+ blob: h,
543
+ mtlBlobs: []
544
+ };
545
+ $e.value = !1, pe.value.loadModelByDefaultPath([s]);
546
+ }, Wt = async (n) => {
547
+ var h, s, u, o, k, R, d;
548
+ const e = (h = n == null ? void 0 : n.split("/")) == null ? void 0 : h[0], p = await lo({
549
+ key: {
550
+ type: "mainEquip",
551
+ systemKey: sessionStorage.getItem("systemKey"),
552
+ pageKey: e
553
+ }
554
+ });
555
+ return ((s = p == null ? void 0 : p.data) == null ? void 0 : s.type) === "success" ? ((d = (R = (k = (o = (u = p == null ? void 0 : p.data) == null ? void 0 : u.result) == null ? void 0 : o[0]) == null ? void 0 : k.value) == null ? void 0 : R.tableData) == null ? void 0 : d.隐藏三维显示) !== !0 : !0;
556
+ };
557
+ we(
558
+ () => le.value,
559
+ () => {
560
+ var n, e, p, h, s;
561
+ if (((n = le.value) == null ? void 0 : n.length) === 2 && ((e = le.value) != null && e.find((u) => (u == null ? void 0 : u.name) === "输入")) && ((p = le.value) != null && p.find((u) => (u == null ? void 0 : u.name) === "输出"))) {
562
+ const u = (h = le.value) == null ? void 0 : h.find((o) => (o == null ? void 0 : o.name) === "输出");
563
+ se.value = ((s = u == null ? void 0 : u.comp) == null ? void 0 : s.toUpperCase()) === "FORM", r.value = !0;
564
+ } else
565
+ r.value = !1, se.value = !1;
566
+ },
567
+ { deep: !0, immediate: !0 }
568
+ ), we(
569
+ () => O.value,
570
+ async () => {
571
+ O.value && (He.value = await Wt(O.value));
572
+ },
573
+ { deep: !0, immediate: !0 }
574
+ ), we(
575
+ () => [je.value, pe.value],
576
+ () => {
577
+ var n;
578
+ ((n = je.value) == null ? void 0 : n.length) > 0 && pe.value && pe.value.addModelsFromUrls(je.value);
579
+ },
580
+ { immediate: !0, deep: !0 }
581
+ ), we(
582
+ () => q == null ? void 0 : q.value,
583
+ async () => {
584
+ var n, e, p, h;
585
+ if (q != null && q.value && ((n = q == null ? void 0 : q.value) == null ? void 0 : n.length) > 0 && !de.value && !((e = le.value) != null && e.find((s) => (s == null ? void 0 : s.name) === "输入") && ((p = le.value) != null && p.find((s) => (s == null ? void 0 : s.name) === "输出")))) {
586
+ let s = [];
587
+ const u = await ((h = et(q == null ? void 0 : q.value)) == null ? void 0 : h.map(async (o) => {
588
+ var E, P, Y, Se, xe, D, m, me, he, Ae;
589
+ let k, R;
590
+ const d = (P = (E = o == null ? void 0 : o.blob) == null ? void 0 : E.split("undefined,")) == null ? void 0 : P[1];
591
+ let x = d == null ? void 0 : d.split(",");
592
+ if ((x == null ? void 0 : x.length) > 1) {
593
+ let _e = await (x == null ? void 0 : x.map(async ($) => {
594
+ var F, Qe, Te, Z, _, re;
595
+ k = await K.get($, {
596
+ responseType: "blob",
597
+ headers: {
598
+ "Content-Type": "application/json"
599
+ }
600
+ });
601
+ let I = [];
602
+ if (((F = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : F.length) > 0) {
603
+ let ze = await ((Qe = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : Qe.map(async (M) => {
604
+ let Me = await K.get(M, {
605
+ responseType: "blob",
606
+ headers: {
607
+ "Content-Type": "application/json"
608
+ }
609
+ });
610
+ return I.push(new Blob([Me.data], {
611
+ type: "application/octet-stream;charset=UTF-8"
612
+ })), Me;
613
+ }));
614
+ await Promise.all(ze);
615
+ }
616
+ return ((Z = $ == null ? void 0 : $.split(".")) == null ? void 0 : Z[((Te = $ == null ? void 0 : $.split(".")) == null ? void 0 : Te.length) - 1]) !== "undefined" && s.push({
617
+ suffix: "." + ((re = $ == null ? void 0 : $.split(".")) == null ? void 0 : re[((_ = $ == null ? void 0 : $.split(".")) == null ? void 0 : _.length) - 1]),
618
+ blob: new Blob([k.data], {
619
+ type: "application/octet-stream;charset=UTF-8"
620
+ }),
621
+ mtlBlobs: I
622
+ }), k;
623
+ }));
624
+ await Promise.all(_e);
625
+ } else if (!(d != null && d.includes("https://")) && !(d != null && d.includes("http://"))) {
626
+ k = await kt({
627
+ url: d
628
+ });
629
+ let _e = [];
630
+ if (((Y = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : Y.length) > 0) {
631
+ let $ = await ((Se = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : Se.map(async (I) => {
632
+ let F = await kt({
633
+ url: I
634
+ });
635
+ return _e.push(new Blob([F.data], {
636
+ type: "application/octet-stream;charset=UTF-8"
637
+ })), F;
638
+ }));
639
+ await Promise.all($);
640
+ }
641
+ R = {
642
+ suffix: "." + ((D = d == null ? void 0 : d.split(".")) == null ? void 0 : D[((xe = d == null ? void 0 : d.split(".")) == null ? void 0 : xe.length) - 1]),
643
+ blob: new Blob([k.data], {
644
+ type: "application/octet-stream;charset=UTF-8"
645
+ }),
646
+ mtlBlobs: _e
647
+ };
648
+ } else {
649
+ k = await K.get(d, {
650
+ responseType: "blob",
651
+ headers: {
652
+ "Content-Type": "application/json"
653
+ }
654
+ });
655
+ let _e = [];
656
+ if (((m = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : m.length) > 0) {
657
+ let $ = await ((me = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : me.map(async (I) => {
658
+ let F = await K.get(I, {
659
+ responseType: "blob",
660
+ headers: {
661
+ "Content-Type": "application/json"
662
+ }
663
+ });
664
+ return _e.push(new Blob([F.data], {
665
+ type: "application/octet-stream;charset=UTF-8"
666
+ })), F;
667
+ }));
668
+ await Promise.all($);
669
+ }
670
+ R = {
671
+ suffix: "." + ((Ae = d == null ? void 0 : d.split(".")) == null ? void 0 : Ae[((he = d == null ? void 0 : d.split(".")) == null ? void 0 : he.length) - 1]),
672
+ blob: new Blob([k.data], {
673
+ type: "application/octet-stream;charset=UTF-8"
674
+ }),
675
+ mtlBlobs: _e
676
+ };
677
+ }
678
+ R && s.push(R);
679
+ }));
680
+ await Promise.all(u), (s == null ? void 0 : s.length) !== 0 && pe.value.loadModelByDefaultPath(s);
681
+ }
682
+ },
683
+ { immediate: !0, deep: !0 }
684
+ ), we(
685
+ () => ve.value,
686
+ async () => {
687
+ var e, p, h, s;
688
+ if (ve.value !== "" && ve.value) {
689
+ let u = (e = O.value) == null ? void 0 : e.split("/"), o = u[(u == null ? void 0 : u.length) - 2];
690
+ const R = (((p = y == null ? void 0 : y.find((P) => (P == null ? void 0 : P.key) === o)) == null ? void 0 : p.download) ?? "") + "/" + ve.value, d = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), x = await K.post(R, null, {
691
+ responseType: "blob",
692
+ // 必须设置
693
+ headers: {
694
+ Authorization: d,
695
+ baseURL: "http://139.196.154.85:20025",
696
+ "Content-Type": "application/json"
697
+ }
698
+ });
699
+ var n = new Blob([x.data], {
700
+ type: "application/octet-stream;charset=UTF-8"
701
+ });
702
+ const E = [
703
+ {
704
+ suffix: "." + ((s = (h = ve.value) == null ? void 0 : h.split(".")) == null ? void 0 : s[1]),
705
+ blob: n,
706
+ mtlBlobs: []
707
+ }
708
+ ];
709
+ pe.value.loadModelByDefaultPath(E);
710
+ }
711
+ },
712
+ { deep: !0, immediate: !0 }
713
+ );
714
+ const qt = async () => {
715
+ var k, R, d, x, E, P, Y, Se, xe, D, m, me, he, Ae, _e, $, I;
716
+ G.value = !0;
717
+ let n = (k = O.value) == null ? void 0 : k.split("/"), e = n[(n == null ? void 0 : n.length) - 2];
718
+ const p = ((R = y == null ? void 0 : y.find((F) => (F == null ? void 0 : F.key) === e)) == null ? void 0 : R.value) ?? "";
719
+ let h = "";
720
+ const s = await K.post("http://139.196.154.85:20024/api/sysAuth/login", {
721
+ account: "superadmin",
722
+ password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
723
+ codeId: 0,
724
+ code: ""
725
+ });
726
+ ((d = s == null ? void 0 : s.data) == null ? void 0 : d.code) === 200 && (h = `Bearer ${(E = (x = s.data) == null ? void 0 : x.result) == null ? void 0 : E.accessToken}`, sessionStorage.setItem("magicToken", h));
727
+ const u = h === "" ? "123456" : h, o = await K.post(p, null, {
728
+ headers: {
729
+ Authorization: u,
730
+ baseURL: "http://139.196.154.85:20025",
731
+ "Content-Type": "multipart/form-data"
732
+ }
733
+ });
734
+ if (((P = o == null ? void 0 : o.data) == null ? void 0 : P.type) === "success" && bt((Se = (Y = o == null ? void 0 : o.data) == null ? void 0 : Y.result) == null ? void 0 : Se.result)) {
735
+ const F = (he = (me = (m = JSON.parse((D = (xe = o == null ? void 0 : o.data) == null ? void 0 : xe.result) == null ? void 0 : D.result)) == null ? void 0 : m.lines_file_paths) == null ? void 0 : me[0]) == null ? void 0 : he.split("\\"), Te = (((Ae = y == null ? void 0 : y.find((_) => (_ == null ? void 0 : _.key) === e)) == null ? void 0 : Ae.resources) ?? "") + "/" + (((F == null ? void 0 : F[(F == null ? void 0 : F.length) - 2]) === "inputResources" ? "outputResources" : F == null ? void 0 : F[(F == null ? void 0 : F.length) - 2]) ?? "outputResources"), Z = await K.post(Te, null, {
736
+ headers: {
737
+ Authorization: u,
738
+ baseURL: "http://139.196.154.85:20025",
739
+ "Content-Type": "multipart/form-data"
740
+ }
741
+ });
742
+ if (((_e = Z == null ? void 0 : Z.data) == null ? void 0 : _e.type) === "success") {
743
+ const _ = ($ = Z == null ? void 0 : Z.data) == null ? void 0 : $.result, re = le.value, ze = await ((I = et(re)) == null ? void 0 : I.map(async (M) => {
744
+ var Me, Xe, Ye, ee, T, De;
745
+ if ((M == null ? void 0 : M.name) === "输出") {
746
+ if ((M == null ? void 0 : M.comp) === "Table")
747
+ M.compData = (Me = M == null ? void 0 : M.compData) == null ? void 0 : Me.map((f) => {
748
+ var S, ne;
749
+ return (f == null ? void 0 : f.key) === "tableContents" && (f.contents = (ne = (S = f == null ? void 0 : f.contents) == null ? void 0 : S.map((V) => (V = V == null ? void 0 : V.map((v, te) => {
750
+ var H, Ve, Je;
751
+ return typeof v == "string" && te > 1 ? ((H = f == null ? void 0 : f.contents) == null ? void 0 : H.length) > 1 ? v = ((Ve = _ == null ? void 0 : _[te - 1]) != null && Ve.includes("input") ? v : _ == null ? void 0 : _[te - 1]) ?? v : v = _ == null ? void 0 : _[0] : v = ((Je = _ == null ? void 0 : _[te - 1]) != null && Je.includes("input") ? v : _ == null ? void 0 : _[te - 1]) ?? v, v;
752
+ }), V))) == null ? void 0 : ne.filter((V, v) => v <= (_ == null ? void 0 : _.length) - 1)), f;
753
+ });
754
+ else if ((M == null ? void 0 : M.comp) === "Form") {
755
+ let f = "";
756
+ if (_ == null || _.forEach((S) => {
757
+ f = f === "" ? f + S : f + "," + S;
758
+ }), M.compData = (Xe = M == null ? void 0 : M.compData) == null ? void 0 : Xe.map((S) => {
759
+ var ne;
760
+ return (S == null ? void 0 : S.key) === "formContent" && (S.contents = (ne = S.contents) == null ? void 0 : ne.map((V) => (V.value = f, V))), S;
761
+ }), (Ye = f == null ? void 0 : f.split(",")) != null && Ye.find((S) => S.includes(".obj"))) {
762
+ let S = {};
763
+ S.suffix = ".obj";
764
+ const ne = [];
765
+ let V = await ((T = (ee = f == null ? void 0 : f.split(",")) == null ? void 0 : ee.filter((v) => v.includes(".obj") || v.includes(".mtl"))) == null ? void 0 : T.map(async (v) => {
766
+ var H, Ve;
767
+ if (v.includes(".obj")) {
768
+ const Ze = (((H = y == null ? void 0 : y.find((Ne) => (Ne == null ? void 0 : Ne.key) === e)) == null ? void 0 : H.download) ?? "") + "/" + v, Ie = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Ke = await K.post(Ze, null, {
769
+ responseType: "blob",
770
+ // 必须设置
771
+ headers: {
772
+ Authorization: Ie,
773
+ baseURL: "http://139.196.154.85:20025",
774
+ "Content-Type": "application/json"
775
+ }
776
+ });
777
+ var te = new Blob([Ke.data], {
778
+ type: "application/octet-stream;charset=UTF-8"
779
+ });
780
+ S.blob = te;
781
+ } else if (v.includes(".mtl")) {
782
+ const Ze = (((Ve = y == null ? void 0 : y.find((pt) => (pt == null ? void 0 : pt.key) === e)) == null ? void 0 : Ve.download) ?? "") + "/" + v, Ie = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Ke = await K.post(Ze, null, {
783
+ responseType: "blob",
784
+ // 必须设置
785
+ headers: {
786
+ Authorization: Ie,
787
+ baseURL: "http://139.196.154.85:20025",
788
+ "Content-Type": "application/json"
789
+ }
790
+ });
791
+ var te = new Blob([Ke.data], {
792
+ type: "application/octet-stream;charset=UTF-8"
793
+ });
794
+ ne.push(te);
795
+ }
796
+ }));
797
+ await Promise.all(V), S.mtlBlobs = ne, pe.value.loadModelByDefaultPath([S]);
798
+ } else {
799
+ const S = [];
800
+ let ne = await ((De = f == null ? void 0 : f.split(",")) == null ? void 0 : De.map(async (V) => {
801
+ var Ie, Ke;
802
+ let v = {};
803
+ v.suffix = "." + ((Ie = V == null ? void 0 : V.split(".")) == null ? void 0 : Ie[1]);
804
+ const H = (((Ke = y == null ? void 0 : y.find((Ne) => (Ne == null ? void 0 : Ne.key) === e)) == null ? void 0 : Ke.download) ?? "") + "/" + V, Ve = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Je = await K.post(H, null, {
805
+ responseType: "blob",
806
+ // 必须设置
807
+ headers: {
808
+ Authorization: Ve,
809
+ baseURL: "http://139.196.154.85:20025",
810
+ "Content-Type": "application/json"
811
+ }
812
+ });
813
+ var Ze = new Blob([Je.data], {
814
+ type: "application/octet-stream;charset=UTF-8"
815
+ });
816
+ v.blob = Ze, S.push(v);
817
+ }));
818
+ await Promise.all(ne), pe.value.loadModelByDefaultPath(S);
819
+ }
820
+ }
821
+ }
822
+ return M;
823
+ }));
824
+ le.value = await Promise.all(ze);
825
+ }
826
+ }
827
+ z.value++, G.value = !1;
828
+ }, wt = w(""), ct = w("open"), ut = w("open"), tt = w(!1), Ht = (n) => {
829
+ const e = document.getElementById("menuCollapse");
830
+ n === "open" ? (e.style.width = "13rem", e.style.height = "96%", e.style.overflow = "auto") : (e.style.width = "50px", e.style.minWidth = "50px", e.style.height = "50px", e.style.overflow = "hidden");
831
+ }, Qt = (n) => {
832
+ const e = document.getElementById("operateCollapse");
833
+ n === "open" ? (e.style.width = "25rem", e.style.height = "96%", e.style.overflow = "auto") : (e.style.width = "50px", e.style.height = "50px", e.style.overflow = "hidden");
834
+ }, Xt = () => {
835
+ tt.value = !tt.value;
836
+ const n = document.getElementById("operateCollapse"), e = document.getElementById("menuCollapse");
837
+ tt.value ? (e.style.width = "13rem", n.style.width = "calc(100% - 18rem)") : n.style.width = "400px";
838
+ }, dt = (n) => {
839
+ const e = URL.createObjectURL(n), p = document.createElement("a");
840
+ p.href = e, p.download = "file.txt", document.body.appendChild(p), p.click(), document.body.removeChild(p), URL.revokeObjectURL(e), X.value = !1;
841
+ }, Yt = async () => {
842
+ var k, R, d, x, E, P, Y, Se, xe, D, m, me, he, Ae, _e, $;
843
+ X.value = !0;
844
+ let n = (k = O.value) == null ? void 0 : k.split("/"), e = n[(n == null ? void 0 : n.length) - 2];
845
+ const p = ((R = y == null ? void 0 : y.find((I) => (I == null ? void 0 : I.key) === e)) == null ? void 0 : R.value) ?? "";
846
+ let h = "";
847
+ const s = await K.post("http://139.196.154.85:20024/api/sysAuth/login", {
848
+ account: "superadmin",
849
+ password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
850
+ codeId: 0,
851
+ code: ""
852
+ });
853
+ if (((d = s == null ? void 0 : s.data) == null ? void 0 : d.code) === 200)
854
+ h = `Bearer ${(E = (x = s.data) == null ? void 0 : x.result) == null ? void 0 : E.accessToken}`, sessionStorage.setItem("magicToken", h);
855
+ else
856
+ throw mt.error("响应出错了"), new Error("响应出错了");
857
+ const u = h === "" ? "123456" : h, o = await K.post(p, null, {
858
+ headers: {
859
+ Authorization: u,
860
+ baseURL: "http://139.196.154.85:20025",
861
+ "Content-Type": "multipart/form-data"
862
+ }
863
+ });
864
+ if (((P = o == null ? void 0 : o.data) == null ? void 0 : P.code) === 200) {
865
+ if (bt((Se = (Y = o == null ? void 0 : o.data) == null ? void 0 : Y.result) == null ? void 0 : Se.result)) {
866
+ const I = (he = (me = (m = JSON.parse((D = (xe = o == null ? void 0 : o.data) == null ? void 0 : xe.result) == null ? void 0 : D.result)) == null ? void 0 : m.lines_file_paths) == null ? void 0 : me[0]) == null ? void 0 : he.split("\\"), Qe = (((Ae = y == null ? void 0 : y.find((Z) => (Z == null ? void 0 : Z.key) === e)) == null ? void 0 : Ae.resources) ?? "") + "/" + ((I == null ? void 0 : I[(I == null ? void 0 : I.length) - 2]) ?? "outputResources"), Te = await K.post(Qe, null, {
867
+ headers: {
868
+ Authorization: u,
869
+ baseURL: "http://139.196.154.85:20025",
870
+ "Content-Type": "multipart/form-data"
871
+ }
872
+ });
873
+ if (((_e = Te == null ? void 0 : Te.data) == null ? void 0 : _e.code) === 200) {
874
+ const Z = ($ = Te == null ? void 0 : Te.data) == null ? void 0 : $.result, _ = et(le.value);
875
+ _ == null || _.map(async (re) => {
876
+ var ze, M, Me, Xe, Ye;
877
+ if ((re == null ? void 0 : re.name) === "输出" && (re == null ? void 0 : re.comp) === "Form") {
878
+ let ee = "";
879
+ Z == null || Z.forEach((T) => {
880
+ ee = ee === "" ? ee + T : ee + "," + T;
881
+ }), re.compData = (ze = re == null ? void 0 : re.compData) == null ? void 0 : ze.map((T) => {
882
+ var De;
883
+ return (T == null ? void 0 : T.key) === "formContent" && (T.contents = (De = T.contents) == null ? void 0 : De.map((f) => (f.value = ee, f))), T;
884
+ }), (M = ee == null ? void 0 : ee.split(",")) != null && M.find((T) => T.includes(".obj")) ? (Xe = (Me = ee == null ? void 0 : ee.split(",")) == null ? void 0 : Me.filter((T) => T.includes(".obj") || T.includes(".mtl"))) == null || Xe.map(async (T) => {
885
+ var De, f;
886
+ if (T.includes(".obj")) {
887
+ const ne = (((De = y == null ? void 0 : y.find((H) => (H == null ? void 0 : H.key) === e)) == null ? void 0 : De.download) ?? "") + "/" + T, V = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), v = await K.post(ne, null, {
888
+ responseType: "blob",
889
+ // 必须设置
890
+ headers: {
891
+ Authorization: V,
892
+ baseURL: "http://139.196.154.85:20025",
893
+ "Content-Type": "application/json"
894
+ }
895
+ });
896
+ let te = new Blob([v.data], {
897
+ type: "application/octet-stream;charset=UTF-8"
898
+ });
899
+ dt(te);
900
+ } else if (T.includes(".mtl")) {
901
+ const ne = (((f = y == null ? void 0 : y.find((H) => (H == null ? void 0 : H.key) === e)) == null ? void 0 : f.download) ?? "") + "/" + T, V = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), v = await K.post(ne, null, {
902
+ responseType: "blob",
903
+ // 必须设置
904
+ headers: {
905
+ Authorization: V,
906
+ baseURL: "http://139.196.154.85:20025",
907
+ "Content-Type": "application/json"
908
+ }
909
+ });
910
+ let te = new Blob([v.data], {
911
+ type: "application/octet-stream;charset=UTF-8"
912
+ });
913
+ dt(te);
914
+ }
915
+ }) : (Ye = ee == null ? void 0 : ee.split(",")) == null || Ye.map(async (T) => {
916
+ var v, te;
917
+ "" + ((v = T == null ? void 0 : T.split(".")) == null ? void 0 : v[1]);
918
+ const f = (((te = y == null ? void 0 : y.find((H) => (H == null ? void 0 : H.key) === e)) == null ? void 0 : te.download) ?? "") + "/" + T, S = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), ne = await K.post(f, null, {
919
+ responseType: "blob",
920
+ // 必须设置
921
+ headers: {
922
+ Authorization: S,
923
+ baseURL: "http://139.196.154.85:20025",
924
+ "Content-Type": "application/json"
925
+ }
926
+ });
927
+ let V = new Blob([ne.data], {
928
+ type: "application/octet-stream;charset=UTF-8"
929
+ });
930
+ dt(V);
931
+ });
932
+ }
933
+ });
934
+ } else
935
+ throw mt.error("响应出错了"), new Error("响应出错了");
936
+ }
937
+ } else
938
+ throw mt.error("响应出错了"), new Error("响应出错了");
939
+ }, Zt = nt(() => le.value), vt = nt(() => be.value === "系统管理" || be.value === "平台管理");
940
+ return (n, e) => {
941
+ const p = b("el-button"), h = b("el-avatar"), s = b("el-header"), u = b("el-container"), o = b("el-icon"), k = b("el-input"), R = b("ss-avatar"), d = b("ss-drop"), x = b("el-aside"), E = b("el-collapse-item"), P = b("el-collapse"), Y = b("el-main"), Se = b("router-view"), xe = Ft("loading");
942
+ return c(), N(at, null, [
943
+ t(ro, {
944
+ visible: Le.value,
945
+ onBeforeDestroy: e[0] || (e[0] = (D) => Le.value = !1)
946
+ }, {
947
+ default: a(() => [
948
+ ie.value ? (c(), N("iframe", {
949
+ key: 0,
950
+ src: ie.value,
951
+ style: { width: "100%", height: "500px", border: "1px solid #ccc" }
952
+ }, null, 8, $o)) : Q("", !0)
953
+ ]),
954
+ _: 1
955
+ }, 8, ["visible"]),
956
+ i(A) === "edit" ? (c(), L(u, {
957
+ key: 0,
958
+ class: "client-container"
959
+ }, {
960
+ default: a(() => [
961
+ t(s, { class: "client-structure-header" }, {
962
+ default: a(() => {
963
+ var D;
964
+ return [
965
+ C("div", Mo, [
966
+ t(p, {
967
+ id: "transparentBgButton",
968
+ onClick: i(xt)
969
+ }, {
970
+ default: a(() => e[6] || (e[6] = [
971
+ fe(" 返回页面 ")
972
+ ])),
973
+ _: 1,
974
+ __: [6]
975
+ }, 8, ["onClick"]),
976
+ t(p, {
977
+ id: "transparentBgButton",
978
+ onClick: e[1] || (e[1] = (m) => {
979
+ var me, he;
980
+ return i(At)((he = (me = i(ce)) == null ? void 0 : me.map((Ae) => Ae.value)) == null ? void 0 : he.join("/"));
981
+ })
982
+ }, {
983
+ icon: a(() => [
984
+ t(Ue, { name: "Store" })
985
+ ]),
986
+ default: a(() => [
987
+ e[7] || (e[7] = fe(" 保存页面 "))
988
+ ]),
989
+ _: 1,
990
+ __: [7]
991
+ })
992
+ ]),
993
+ C("div", Lo, [
994
+ (c(), L(zt, {
995
+ key: i(ce),
996
+ breadArray: i(ce),
997
+ onClick: i(Ut)
998
+ }, null, 8, ["breadArray", "onClick"]))
999
+ ]),
1000
+ C("div", Eo, [
1001
+ We(n.$slots, "default", {}, void 0, !0),
1002
+ t(h, {
1003
+ size: 35,
1004
+ src: (D = i(W)) == null ? void 0 : D.avatarUrl
1005
+ }, {
1006
+ default: a(() => {
1007
+ var m;
1008
+ return [
1009
+ fe(Pe(((m = i(W)) == null ? void 0 : m.account) ?? "未知"), 1)
1010
+ ];
1011
+ }),
1012
+ _: 1
1013
+ }, 8, ["src"])
1014
+ ])
1015
+ ];
1016
+ }),
1017
+ _: 3
1018
+ }),
1019
+ i(A) === "edit" ? (c(), L(u, {
1020
+ key: 0,
1021
+ class: "model-operate",
1022
+ style: { "margin-top": "10px", height: "0px" }
1023
+ }, {
1024
+ default: a(() => [
1025
+ C("div", Vo, [
1026
+ t(ft)
1027
+ ]),
1028
+ C("div", No, [
1029
+ t(gt)
1030
+ ]),
1031
+ C("div", Oo, [
1032
+ t(yt)
1033
+ ])
1034
+ ]),
1035
+ _: 1
1036
+ })) : Q("", !0)
1037
+ ]),
1038
+ _: 3
1039
+ })) : ot((c(), L(u, {
1040
+ key: 1,
1041
+ class: "client-container",
1042
+ "element-loading-text": "正在加载页面数据..."
1043
+ }, {
1044
+ default: a(() => [
1045
+ t(s, { class: "client-header" }, {
1046
+ default: a(() => [
1047
+ C("div", zo, [
1048
+ t(Ue, {
1049
+ name: "logo",
1050
+ style: { width: "clamp(18px, 1.5rem, 24px)", height: "clamp(18px, 1.5rem, 24px)", "margin-right": "8px" }
1051
+ }),
1052
+ fe(" " + Pe(i(ae) === "" ? "CPMPIP" : i(ae)), 1)
1053
+ ]),
1054
+ C("div", Jo, [
1055
+ t(Ot, { mode: "horizontal" })
1056
+ ]),
1057
+ C("div", Io, [
1058
+ t(k, {
1059
+ modelValue: wt.value,
1060
+ "onUpdate:modelValue": e[2] || (e[2] = (D) => wt.value = D),
1061
+ clearable: "",
1062
+ placeholder: "搜索",
1063
+ style: { width: "130px" }
1064
+ }, {
1065
+ prefix: a(() => [
1066
+ t(o, { class: "el-input__icon" }, {
1067
+ default: a(() => [
1068
+ t(i(Nt))
1069
+ ]),
1070
+ _: 1
1071
+ })
1072
+ ]),
1073
+ _: 1
1074
+ }, 8, ["modelValue"]),
1075
+ j.showButton ? (c(), L(p, {
1076
+ key: 0,
1077
+ id: "transparentBgButton",
1078
+ onClick: i(Pt)
1079
+ }, {
1080
+ icon: a(() => [
1081
+ t(Ue, { name: "App" })
1082
+ ]),
1083
+ default: a(() => [
1084
+ e[8] || (e[8] = fe(" 生成APP "))
1085
+ ]),
1086
+ _: 1,
1087
+ __: [8]
1088
+ }, 8, ["onClick"])) : Q("", !0),
1089
+ j.showButton && i(A) === "view" ? (c(), L(p, {
1090
+ key: 1,
1091
+ id: "transparentBgButton",
1092
+ onClick: i(Dt)
1093
+ }, {
1094
+ icon: a(() => [
1095
+ t(Ue, { name: "write" })
1096
+ ]),
1097
+ default: a(() => [
1098
+ e[9] || (e[9] = fe(" 修改布局 "))
1099
+ ]),
1100
+ _: 1,
1101
+ __: [9]
1102
+ }, 8, ["onClick"])) : Q("", !0),
1103
+ We(n.$slots, "default", {}, void 0, !0),
1104
+ t(d, null, {
1105
+ dropTitle: a(() => {
1106
+ var D;
1107
+ return [
1108
+ t(R, {
1109
+ size: "35",
1110
+ avatarUrl: (D = i(W)) == null ? void 0 : D.avatarUrl,
1111
+ showCropper: !1,
1112
+ banClick: !0
1113
+ }, {
1114
+ avatarDefault: a(() => {
1115
+ var m;
1116
+ return [
1117
+ fe(Pe(((m = i(W)) == null ? void 0 : m.account) ?? "未知"), 1)
1118
+ ];
1119
+ }),
1120
+ _: 1
1121
+ }, 8, ["avatarUrl"])
1122
+ ];
1123
+ }),
1124
+ dropMenu: a(() => [
1125
+ C("div", Ko, [
1126
+ t(Oe, {
1127
+ emptyColor: !0,
1128
+ class: "menu-button",
1129
+ onClickTrigger: Jt,
1130
+ modelValue: "退出登录",
1131
+ buttonType: ""
1132
+ })
1133
+ ])
1134
+ ]),
1135
+ _: 1
1136
+ })
1137
+ ])
1138
+ ]),
1139
+ _: 3
1140
+ }),
1141
+ t(u, { class: "client-body" }, {
1142
+ default: a(() => [
1143
+ ot(t(Y, { class: "client-main" }, {
1144
+ default: a(() => [
1145
+ t(P, {
1146
+ modelValue: ct.value,
1147
+ "onUpdate:modelValue": e[3] || (e[3] = (D) => ct.value = D),
1148
+ accordion: "",
1149
+ class: "client-aside",
1150
+ id: "menuCollapse",
1151
+ onChange: Ht
1152
+ }, {
1153
+ default: a(() => [
1154
+ t(E, { name: "open" }, {
1155
+ icon: a(() => [
1156
+ t(Ue, {
1157
+ name: ct.value === "" ? "Right" : "Left",
1158
+ style: { width: "20px", height: "20px" }
1159
+ }, null, 8, ["name"])
1160
+ ]),
1161
+ default: a(() => [
1162
+ t(x, { style: { width: "100%" } }, {
1163
+ default: a(() => [
1164
+ t(lt, { mode: "vertical" })
1165
+ ]),
1166
+ _: 1
1167
+ })
1168
+ ]),
1169
+ _: 1
1170
+ })
1171
+ ]),
1172
+ _: 1
1173
+ }, 8, ["modelValue"]),
1174
+ C("div", Go, [
1175
+ t(io, {
1176
+ isShow: g.value,
1177
+ windowConfig: j.windowConfig,
1178
+ ref_key: "threeModelRef",
1179
+ ref: pe
1180
+ }, null, 8, ["isShow", "windowConfig"])
1181
+ ]),
1182
+ t(P, {
1183
+ modelValue: ut.value,
1184
+ "onUpdate:modelValue": e[5] || (e[5] = (D) => ut.value = D),
1185
+ accordion: "",
1186
+ class: "client-main-operate",
1187
+ id: "operateCollapse",
1188
+ onChange: Qt
1189
+ }, {
1190
+ default: a(() => [
1191
+ t(E, { name: "open" }, {
1192
+ icon: a(() => [
1193
+ t(Ue, {
1194
+ name: ut.value === "open" ? "Right" : "Left",
1195
+ style: { width: "20px", height: "20px" }
1196
+ }, null, 8, ["name"])
1197
+ ]),
1198
+ default: a(() => {
1199
+ var D;
1200
+ return [
1201
+ C("div", null, [
1202
+ t(Ue, {
1203
+ class: "fold-icon",
1204
+ name: tt.value ? "Right" : "Left",
1205
+ onClick: Xt
1206
+ }, null, 8, ["name"]),
1207
+ (c(!0), N(at, null, ht((D = Zt.value) == null ? void 0 : D.filter((m) => m.comp !== "FormTop"), (m, me) => {
1208
+ var he;
1209
+ return c(), N("div", {
1210
+ class: "item-view-content",
1211
+ key: m == null ? void 0 : m.id
1212
+ }, [
1213
+ ((he = m == null ? void 0 : m.comp) == null ? void 0 : he.toUpperCase()) !== "TABLE" && m.name ? (c(), N("div", Wo, Pe(m.name), 1)) : Q("", !0),
1214
+ (c(), L(St(i(jt)(m.comp)), {
1215
+ compName: m.name,
1216
+ itemData: m == null ? void 0 : m.compData,
1217
+ childItemData: m == null ? void 0 : m.itemChildData,
1218
+ key: (m == null ? void 0 : m.id) ?? me,
1219
+ onChange: i(Lt),
1220
+ index: (m == null ? void 0 : m.id) ?? me,
1221
+ onContentChange: i(Mt),
1222
+ onPageChange: i($t),
1223
+ onContentClick: rt
1224
+ }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
1225
+ ]);
1226
+ }), 128)),
1227
+ r.value ? (c(), N("div", qo, [
1228
+ se.value ? (c(), L(Oe, {
1229
+ key: 0,
1230
+ class: "calculator-content",
1231
+ onClickTrigger: Yt,
1232
+ loading: X.value,
1233
+ modelValue: "预览"
1234
+ }, null, 8, ["loading"])) : Q("", !0),
1235
+ t(Oe, {
1236
+ class: "calculator-content",
1237
+ onClickTrigger: e[4] || (e[4] = (m) => qt()),
1238
+ loading: G.value,
1239
+ modelValue: "调用方法"
1240
+ }, null, 8, ["loading"])
1241
+ ])) : Q("", !0),
1242
+ de.value ? (c(), N("div", Ho, [
1243
+ t(Oe, {
1244
+ class: "calculator-content",
1245
+ modelValue: "执行方法",
1246
+ onClickTrigger: Gt,
1247
+ loading: $e.value
1248
+ }, null, 8, ["loading"])
1249
+ ])) : Q("", !0),
1250
+ ye.value ? (c(), N("div", Qo, [
1251
+ t(Oe, {
1252
+ class: "calculator-content",
1253
+ modelValue: "播放动画",
1254
+ onClickTrigger: Ee
1255
+ })
1256
+ ])) : Q("", !0),
1257
+ B.value ? (c(), N("div", Xo, [
1258
+ t(Oe, {
1259
+ class: "calculator-content",
1260
+ onClickTrigger: Kt,
1261
+ modelValue: "预览"
1262
+ }),
1263
+ t(Oe, {
1264
+ class: "calculator-content",
1265
+ onClickTrigger: It,
1266
+ modelValue: "下载"
1267
+ })
1268
+ ])) : Q("", !0)
1269
+ ])
1270
+ ];
1271
+ }),
1272
+ _: 1
1273
+ })
1274
+ ]),
1275
+ _: 1
1276
+ }, 8, ["modelValue"])
1277
+ ]),
1278
+ _: 1
1279
+ }, 512), [
1280
+ [Ct, !vt.value]
1281
+ ]),
1282
+ ot(t(Y, { class: "client-router" }, {
1283
+ default: a(() => [
1284
+ C("div", Yo, [
1285
+ t(x, { width: "300px" }, {
1286
+ default: a(() => [
1287
+ t(lt, { mode: "vertical" })
1288
+ ]),
1289
+ _: 1
1290
+ })
1291
+ ]),
1292
+ C("div", Zo, [
1293
+ t(Se)
1294
+ ])
1295
+ ]),
1296
+ _: 1
1297
+ }, 512), [
1298
+ [Ct, vt.value]
1299
+ ])
1300
+ ]),
1301
+ _: 1
1302
+ })
1303
+ ]),
1304
+ _: 3
1305
+ })), [
1306
+ [xe, i(U)]
1307
+ ])
1308
+ ], 64);
1309
+ };
1310
+ }
1311
+ }), ta = /* @__PURE__ */ qe(ea, [["__scopeId", "data-v-3a55a672"]]), oa = { class: "system-wrap" }, aa = {
1312
+ __name: "index",
1313
+ props: {
1314
+ windowConfig: {
1315
+ type: Object,
1316
+ default: () => {
1317
+ }
1318
+ },
1319
+ platform: {
1320
+ type: String,
1321
+ default: "browser"
1322
+ },
1323
+ showButton: {
1324
+ type: Boolean,
1325
+ default: !0
1326
+ },
1327
+ content: String,
1328
+ jsonContents: Array
1329
+ },
1330
+ emits: ["buildContent", "showChild"],
1331
+ setup(j, { emit: Re }) {
1332
+ const l = it(Be), z = _t(Be), G = st();
1333
+ w(!1);
1334
+ const ce = w(!0), r = j, se = Re, X = (J) => {
1335
+ se("showChild", J);
1336
+ }, ue = nt(() => {
1337
+ switch (r == null ? void 0 : r.platform) {
1338
+ case "browser":
1339
+ return fo;
1340
+ case "client":
1341
+ return ho;
1342
+ }
1343
+ }), de = (J) => {
1344
+ const W = document.documentElement;
1345
+ J == null || J.forEach((ie) => {
1346
+ W.style.setProperty(ie.name, ie.value);
1347
+ });
1348
+ };
1349
+ we(() => r.platform, (J, W) => {
1350
+ J && de(ue.value);
1351
+ }, { immediate: !0 });
1352
+ const ve = () => {
1353
+ se("buildContent");
1354
+ };
1355
+ return we(
1356
+ () => [r == null ? void 0 : r.content, r == null ? void 0 : r.jsonContents],
1357
+ async () => {
1358
+ var ie, Ce, A, ge;
1359
+ if (((ie = r == null ? void 0 : r.jsonContents) == null ? void 0 : ie.length) > 0) {
1360
+ l.setOriginalData(r == null ? void 0 : r.jsonContents);
1361
+ return;
1362
+ }
1363
+ if (!(r != null && r.content) || ((Ce = r == null ? void 0 : r.content) == null ? void 0 : Ce.length) === 0) return;
1364
+ ce.value = !0, G.setImportLoading(!0);
1365
+ let J = [], W = [];
1366
+ z.setSelectTitle([]), z.setSelectIndex(""), z.setSelectMenu(""), (ge = (A = r == null ? void 0 : r.content) == null ? void 0 : A.filter((oe) => oe !== "")) == null || ge.forEach((oe) => {
1367
+ uo(oe) ? W.push(po(oe)) : Bt(oe) ? W.push(Bt(oe)) : Tt(oe) ? W.push(Tt(oe)) : W.push(ao(oe));
1368
+ }), J = W == null ? void 0 : W[0], await no(J), await Vt(), l.setOriginalData(J), G.setImportLoading(!1);
1369
+ },
1370
+ { deep: !0, immediate: !0 }
1371
+ ), (J, W) => (c(), N("div", oa, [
1372
+ j.platform === "browser" ? (c(), L(jo, {
1373
+ key: 0,
1374
+ showButton: j.showButton
1375
+ }, {
1376
+ default: a(() => [
1377
+ We(J.$slots, "default", {}, void 0, !0)
1378
+ ]),
1379
+ _: 3
1380
+ }, 8, ["showButton"])) : (c(), L(ta, {
1381
+ key: 1,
1382
+ windowConfig: j.windowConfig,
1383
+ showButton: j.showButton,
1384
+ onBuildContent: ve,
1385
+ onShowChild: X
1386
+ }, {
1387
+ default: a(() => [
1388
+ We(J.$slots, "default", {}, void 0, !0)
1389
+ ]),
1390
+ _: 3
1391
+ }, 8, ["windowConfig", "showButton"]))
1392
+ ]));
1393
+ }
1394
+ }, na = /* @__PURE__ */ qe(aa, [["__scopeId", "data-v-5f2a4306"]]), la = { class: "add-model-content" }, sa = {
1395
+ key: 0,
1396
+ class: "model-operate"
1397
+ }, ia = { class: "model-select" }, ra = { class: "model-fill" }, ca = {
1398
+ key: 1,
1399
+ class: "model-view"
1400
+ }, ua = {
1401
+ __name: "index",
1402
+ props: {
1403
+ mode: {
1404
+ type: String,
1405
+ default: "view"
1406
+ },
1407
+ content: {
1408
+ type: String,
1409
+ default: ""
1410
+ },
1411
+ jsonContents: {
1412
+ type: Array,
1413
+ default: () => []
1414
+ },
1415
+ showButton: {
1416
+ type: Boolean,
1417
+ default: !0
1418
+ },
1419
+ pathContent: {
1420
+ type: String,
1421
+ default: ""
1422
+ }
1423
+ },
1424
+ emits: ["change", "contentChange", "buildContent", "openThreeBuild"],
1425
+ setup(j, { emit: Re }) {
1426
+ const l = j, z = Re, G = w([]), ce = w(0), r = w([]), se = w([]), X = w(0), ue = it(Be), de = st(Be), { itemData: ve, originalData: J } = ke(ue), { activeMenuPath: W, platform: ie } = ke(de), Ce = w(null), A = w(0), ge = w([]);
1427
+ w("");
1428
+ const oe = w(0), je = () => {
1429
+ z("buildContent");
1430
+ }, q = (U) => {
1431
+ z("openThreeBuild", U);
1432
+ };
1433
+ we(
1434
+ () => l == null ? void 0 : l.pathContent,
1435
+ () => {
1436
+ (l == null ? void 0 : l.pathContent) !== "" && ue.setSystemPath(l == null ? void 0 : l.pathContent);
1437
+ },
1438
+ {
1439
+ deep: !0,
1440
+ immediate: !0
1441
+ }
1442
+ );
1443
+ const pe = (U) => {
1444
+ z("contentChange", U);
1445
+ }, Le = (U) => {
1446
+ var be;
1447
+ const O = (be = et(U == null ? void 0 : U.wholeValue)) == null ? void 0 : be.map((ae) => {
1448
+ var ye;
1449
+ return (ae == null ? void 0 : ae.comp) === "Form" && (ae.compData = (ye = ae.compData) == null ? void 0 : ye.map((B) => ((B == null ? void 0 : B.key) === "formContent" && (B.contents = mo(B == null ? void 0 : B.contents)), B))), ae;
1450
+ });
1451
+ z("change", {
1452
+ originalContents: J.value,
1453
+ currentContents: U == null ? void 0 : U.wholeValue,
1454
+ editContent: U == null ? void 0 : U.editValue,
1455
+ arrayToContents: O
1456
+ });
1457
+ };
1458
+ we(
1459
+ () => r.value,
1460
+ () => {
1461
+ oe.value === r.value.length && r.value.length !== 0 && (G.value = r.value);
1462
+ },
1463
+ { deep: !0, immediate: !0 }
1464
+ );
1465
+ const He = () => {
1466
+ Ce.value !== null && Ce.value.click();
1467
+ }, $e = async (U) => {
1468
+ const O = U.target.files;
1469
+ if (!O) return;
1470
+ new FileReader(), G.value = [], r.value = [], oe.value = O.length;
1471
+ const be = Array.from(O).map(async (ae) => await new Promise((ye) => {
1472
+ const B = new FileReader();
1473
+ B.onload = (g) => {
1474
+ try {
1475
+ r.value.push(g.target.result), A.value++;
1476
+ } catch (Fe) {
1477
+ console.error("解析失败:", Fe);
1478
+ return;
1479
+ }
1480
+ }, B.onerror = () => ye(`读取 ${ae.name} 失败`), B.readAsText(ae), U.target.value = "", Ce.value = null, ce.value++;
1481
+ }));
1482
+ await Promise.all(be);
1483
+ };
1484
+ return we(
1485
+ () => [l == null ? void 0 : l.content, l == null ? void 0 : l.jsonContents],
1486
+ async () => {
1487
+ await Vt(), G.value = l.content, se.value = l == null ? void 0 : l.jsonContents;
1488
+ },
1489
+ { deep: !0, immediate: !0 }
1490
+ ), we(
1491
+ () => A.value,
1492
+ () => {
1493
+ var U;
1494
+ ((U = ge.value) == null ? void 0 : U.length) !== 0 && (ue.setOriginalData(ge.value), ue.setItemData(ge.value));
1495
+ },
1496
+ { deep: !0, immediate: !0 }
1497
+ ), (U, O) => {
1498
+ const be = b("svg-icon"), ae = b("el-button");
1499
+ return c(), N("div", la, [
1500
+ (l == null ? void 0 : l.mode) === "edit" ? (c(), N("div", sa, [
1501
+ C("div", ia, [
1502
+ t(ft)
1503
+ ]),
1504
+ (c(), N("div", {
1505
+ class: "model-show",
1506
+ key: X.value
1507
+ }, [
1508
+ t(gt)
1509
+ ])),
1510
+ C("div", ra, [
1511
+ t(yt)
1512
+ ])
1513
+ ])) : Q("", !0),
1514
+ (l == null ? void 0 : l.mode) === "view" ? (c(), N("div", ca, [
1515
+ (c(), L(na, {
1516
+ showButton: j.showButton,
1517
+ platform: i(ie),
1518
+ content: G.value,
1519
+ onChange: Le,
1520
+ jsonContents: se.value,
1521
+ onContentChange: pe,
1522
+ onBuildContent: je,
1523
+ key: X.value,
1524
+ onShowChild: q
1525
+ }, {
1526
+ default: a(() => {
1527
+ var ye;
1528
+ return [
1529
+ ((ye = l == null ? void 0 : l.jsonContents) == null ? void 0 : ye.length) === 0 && (l != null && l.showButton) ? (c(), L(ae, {
1530
+ key: 0,
1531
+ id: "transparentBgButton",
1532
+ onClick: He
1533
+ }, {
1534
+ icon: a(() => [
1535
+ t(be, { name: "import" })
1536
+ ]),
1537
+ default: a(() => [
1538
+ (c(), N("input", {
1539
+ type: "file",
1540
+ key: ce.value,
1541
+ ref_key: "fileInput",
1542
+ ref: Ce,
1543
+ accept: ".txt, .inm",
1544
+ onChange: $e,
1545
+ style: { display: "none" },
1546
+ multiple: ""
1547
+ }, null, 32)),
1548
+ O[0] || (O[0] = fe(" 导入模型 "))
1549
+ ]),
1550
+ _: 1,
1551
+ __: [0]
1552
+ })) : Q("", !0)
1553
+ ];
1554
+ }),
1555
+ _: 1
1556
+ }, 8, ["showButton", "platform", "content", "jsonContents"]))
1557
+ ])) : Q("", !0)
1558
+ ]);
1559
+ };
1560
+ }
1561
+ }, xa = /* @__PURE__ */ qe(ua, [["__scopeId", "data-v-7ee96c6e"]]);
1562
+ export {
1563
+ xa as default
1564
+ };