ss-component-new 1.1.415 → 1.1.417

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 (97) hide show
  1. package/dist/array-CP-DB-qS.cjs +7 -0
  2. package/dist/array-CU7_6w0r.js +346 -0
  3. package/dist/{index-BSAEf__V.js → index-4pgWhRVN.js} +5 -5
  4. package/dist/{index-DjhZHYH_.cjs → index-B3AJmz_C.cjs} +1 -1
  5. package/dist/index-B8GEl5H_.cjs +87 -0
  6. package/dist/{index-BPDslvev.js → index-B8O_p-_G.js} +2 -2
  7. package/dist/{index-Dm1_86kX.js → index-BF4CXK8w.js} +3 -3
  8. package/dist/index-BMFW7H3U.cjs +1 -0
  9. package/dist/{index-BJitBJZu.cjs → index-BVTdPibL.cjs} +2 -2
  10. package/dist/{index-faxMOO3y.js → index-Bcyk637L.js} +5 -5
  11. package/dist/{index-CNQtTLfb.cjs → index-BpsdG9J0.cjs} +1 -1
  12. package/dist/{index-eSv5uzFM.js → index-Bwr24NdY.js} +354 -359
  13. package/dist/{index-DuwxEG2Y.js → index-C3T7U42Q.js} +11 -11
  14. package/dist/index-CCEkCHrk.js +1112 -0
  15. package/dist/{index-DbuzlHfh.js → index-CChV4BPy.js} +10 -10
  16. package/dist/{index-8nzu3dKT.js → index-CDLCxYbO.js} +4 -4
  17. package/dist/{index-BHxsT1eb.cjs → index-CEPaQEEW.cjs} +1 -1
  18. package/dist/{index-AzrB9NlT.js → index-CFD-iDJS.js} +4 -4
  19. package/dist/{index-VOSN3Mnh.js → index-CHub3JaO.js} +5 -5
  20. package/dist/{index-CTTEAggF.cjs → index-CIE6JLs1.cjs} +1 -1
  21. package/dist/index-CJ4l3GaJ.cjs +1 -0
  22. package/dist/{index-BxHhG5PY.js → index-CLRc75f_.js} +8 -8
  23. package/dist/{index-DrCpGMdZ.js → index-CMM_ICmU.js} +3 -3
  24. package/dist/{index-DrUjNhjW.js → index-COlD7pxM.js} +1 -1
  25. package/dist/index-CPP5Pt28.js +731 -0
  26. package/dist/{index-DoIHM98M.js → index-CSsv4KqN.js} +1 -1
  27. package/dist/{index-3dpRV7yS.cjs → index-CTu1NToC.cjs} +1 -1
  28. package/dist/{index-CdLmmvxi.cjs → index-CVMCiTTv.cjs} +1 -1
  29. package/dist/{index-BA-Qtevs.cjs → index-CZbhV1ZJ.cjs} +1 -1
  30. package/dist/{index-CilqH8oC.cjs → index-CZh-SfBL.cjs} +1 -1
  31. package/dist/{index-BimZK7wy.cjs → index-CcaDRZTq.cjs} +1 -1
  32. package/dist/{index-CA9lI4P8.js → index-CeBT1Ulw.js} +4 -4
  33. package/dist/{index-BVuLbYm9.cjs → index-CeVsvY0k.cjs} +1 -1
  34. package/dist/{index-ZUmqWSaw.cjs → index-ChcZGPnx.cjs} +1 -1
  35. package/dist/{index-CffNkMWN.cjs → index-CwIH21hM.cjs} +1 -1
  36. package/dist/{index-Dxfzna5p.cjs → index-D-RyjmUO.cjs} +1 -1
  37. package/dist/{index-B6_X9xq9.js → index-D3z4AgL1.js} +4 -4
  38. package/dist/{index-BJIMXITA.js → index-D5V1e9cO.js} +5 -5
  39. package/dist/{index-9srnYnzT.js → index-D6iU6Te6.js} +9 -9
  40. package/dist/{index-BibIA5-P.cjs → index-D88jka5v.cjs} +1 -1
  41. package/dist/{index-DHhMROzm.cjs → index-DADBCqDR.cjs} +1 -1
  42. package/dist/{index-9QTlnrEQ.cjs → index-DFb2ZrvR.cjs} +1 -1
  43. package/dist/{index-DPm-3I4S.js → index-DKCxgFUW.js} +6 -6
  44. package/dist/{index-BszUQuvL.cjs → index-DLhT_R3Q.cjs} +1 -1
  45. package/dist/{index-WPbX9sqP.cjs → index-DX66EWCT.cjs} +1 -1
  46. package/dist/{index-DMp2zGXo.js → index-Dd4IqazP.js} +7 -7
  47. package/dist/{index-DBB_scdx.cjs → index-WFdingrw.cjs} +1 -1
  48. package/dist/{index-FBp-XX6h.js → index-dGIARC7m.js} +7051 -7021
  49. package/dist/{index-BOzZXj2f.js → index-lGikBSHE.js} +7 -7
  50. package/dist/{index-BJiXsb3E.cjs → index-mGKl9i0X.cjs} +1 -1
  51. package/dist/{index-Bhg9ISur.js → index-oMbmGcaB.js} +6 -6
  52. package/dist/{index-C8jmJvXd.cjs → index-pLa33V9a.cjs} +1 -1
  53. package/dist/{index-UYsrvpRs.js → index-qs1AQKGF.js} +4 -4
  54. package/dist/index-xzoZUttH.cjs +7 -0
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-CKDefrVd.js → index.vue_vue_type_script_setup_true_lang-BEMlrqwP.js} +3 -3
  56. package/dist/{index.vue_vue_type_script_setup_true_lang-Dr6igsfU.cjs → index.vue_vue_type_script_setup_true_lang-Bk4PHjWn.cjs} +1 -1
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CaGB6aRQ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D5XW-lZk.js} +2 -2
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-x_oCFRtr.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DNfIOSKK.cjs} +1 -1
  59. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-BJ24PgNH.cjs +1 -0
  60. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DlAg03w9.js +1636 -0
  61. package/dist/index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-CNkToObt.cjs +1 -0
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CMsb25AU.js → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-DM39K5kZ.js} +90 -89
  63. package/dist/login-0tdy4gQs.js +75 -0
  64. package/dist/login-BEZ7u6zR.cjs +1 -0
  65. package/dist/{main-C7zpT64X.js → main-Cq1MaQxR.js} +6 -6
  66. package/dist/{main-NoOanZcQ.cjs → main-DWQfy0Jj.cjs} +1 -1
  67. package/dist/{menu-B-Z5KAh5.cjs → menu-CAtGS1Fx.cjs} +4 -4
  68. package/dist/{menu-D9x5_s9p.js → menu-D7VMU4Hp.js} +9 -6
  69. package/dist/menuIndex-BWim3TlH.js +33 -0
  70. package/dist/menuIndex-Cg6xI-jR.cjs +1 -0
  71. package/dist/ss-component.cjs +1 -1
  72. package/dist/ss-component.css +1 -1
  73. package/dist/ss-component.js +10 -10
  74. package/dist/ss-component3.cjs +1 -1
  75. package/dist/ss-component3.js +1 -1
  76. package/dist/{threeModel-BazaxATJ.js → threeModel-CLiNKACw.js} +5 -6
  77. package/dist/{threeModel-MVkoDB-c.cjs → threeModel-CiwhTLoC.cjs} +1 -1
  78. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CBBWsMHp.cjs → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-CHtdDFOo.cjs} +1 -1
  79. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CnQhvwfL.js → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-CwNweo5U.js} +2 -2
  80. package/package.json +1 -1
  81. package/dist/array-CYOvmzeK.js +0 -1310
  82. package/dist/array-DAoy3WS9.cjs +0 -7
  83. package/dist/index-Bvr0YvSP.cjs +0 -74
  84. package/dist/index-CyOcoFxe.cjs +0 -1
  85. package/dist/index-D68A4TXc.cjs +0 -1
  86. package/dist/index-DIv5glVC.js +0 -1567
  87. package/dist/index-Dnq8JVuW.cjs +0 -7
  88. package/dist/index-TEDdJfFz.js +0 -677
  89. package/dist/index.vue_vue_type_style_index_0_scoped_306ecd73_lang-B7CgbfdF.cjs +0 -1
  90. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-COxDD0Fj.cjs +0 -1
  91. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DDi07ZiD.js +0 -1593
  92. package/dist/login-CARNmuDg.js +0 -103
  93. package/dist/login-DsWsywlE.cjs +0 -1
  94. package/dist/obj/model.mtl +0 -42
  95. package/dist/obj/model.obj +0 -26110
  96. package/public/obj/model.mtl +0 -42
  97. package/public/obj/model.obj +0 -26110
@@ -1,1567 +0,0 @@
1
- import { resolveComponent as b, createBlock as L, openBlock as c, withCtx as n, createVNode as t, createElementVNode as C, toDisplayString as je, ref as w, onMounted as ea, watch as we, createElementBlock as N, Fragment as ot, renderList as ht, createCommentVNode as Q, normalizeStyle as ta, defineComponent as Rt, computed as nt, resolveDirective as Ft, withDirectives as at, unref as s, 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-BOzZXj2f.js";
3
- import lt from "./index-DuwxEG2Y.js";
4
- import { _ as aa, o as xt, c as At, a as Ut, b as jt, d as Dt, s as le, g as Pt, e as $t, f as Mt, h as Lt, i as oa, j as na } from "./index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DDi07ZiD.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 la, E as mt } from "./menu-D9x5_s9p.js";
7
- import { u as Et } from "./login-CARNmuDg.js";
8
- import { S as Ue } from "./index-BHtNKL1L.js";
9
- import { u as it } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CnQhvwfL.js";
10
- import { u as _t, a as sa, I as bt, l as Vt } from "./index-faxMOO3y.js";
11
- import { s as Nt } from "./index-DbuzlHfh.js";
12
- import { c as et } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CaGB6aRQ.js";
13
- import ia from "./threeModel-BazaxATJ.js";
14
- import { s as ra, _ as Oe } from "./index-UYsrvpRs.js";
15
- import { u as ca } from "./index-DMp2zGXo.js";
16
- import { d as kt } from "./index-DoIHM98M.js";
17
- import { i as ua, e as da, b as Bt, c as Tt, a as pa } from "./array-CYOvmzeK.js";
18
- import { c as ma, b as ha } from "./index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CMsb25AU.js";
19
- function fa(P, Re, l, z, G, ce) {
20
- const r = b("svg-icon"), se = b("ssMenu");
21
- return c(), L(se, {
22
- mode: P.mode,
23
- menuList: P.renderMenuList,
24
- onClickMenu: P.clickMenu,
25
- onOpenMenu: P.openMenu,
26
- onCloseMenu: P.closeMenu
27
- }, {
28
- title: n(({ 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, je(X.title ?? ""), 1)
34
- ]),
35
- _: 1
36
- }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
37
- }
38
- const Ot = /* @__PURE__ */ qe(aa, [["render", fa], ["__scopeId", "data-v-5c2d7ed2"]]), ga = { class: "bread-content" }, ya = ["onClick"], _a = {
39
- key: 0,
40
- class: "split-title"
41
- }, wa = {
42
- __name: "index",
43
- props: {
44
- breadArray: {
45
- type: Array,
46
- default: () => []
47
- }
48
- },
49
- emits: ["click"],
50
- setup(P, { emit: Re }) {
51
- const l = P, z = w([]), G = Re;
52
- ea(() => {
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", ga, [
65
- (c(!0), N(ot, 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: ta({ opacity: ((de = z.value) == null ? void 0 : de.length) - 1 === ue ? "0.7" : "1" })
75
- }, je(X.value), 13, ya),
76
- ue !== z.value.length - 1 && Array.isArray(z.value) ? (c(), N("div", _a, je("/"))) : Q("", !0)
77
- ]);
78
- }), 128))
79
- ]));
80
- }
81
- }, zt = /* @__PURE__ */ qe(wa, [["__scopeId", "data-v-ded7e2bd"]]), va = { class: "structure-buttons" }, Ca = { class: "structure-paths" }, ba = { class: "client-header-user" }, ka = { class: "model-select" }, Ba = { class: "model-show" }, Ta = { class: "model-fill" }, Ra = { class: "client-header-menu" }, Fa = { class: "client-header-user" }, Sa = { class: "drop-menu" }, xa = { class: "client-main-operate" }, Aa = {
82
- key: 0,
83
- class: "item-view-group"
84
- }, Ua = { class: "client-main-operate" }, ja = /* @__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(P) {
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"), ae = b("el-avatar"), Pe = 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"), oe = b("router-view"), ye = Ft("loading");
105
- return s(r) === "edit" ? (c(), L(q, {
106
- key: 0,
107
- class: "client-container"
108
- }, {
109
- default: n(() => [
110
- t(Pe, { class: "client-structure-header" }, {
111
- default: n(() => {
112
- var B;
113
- return [
114
- C("div", va, [
115
- t(ge, {
116
- id: "transparentBgButton",
117
- onClick: s(xt)
118
- }, {
119
- default: n(() => 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 s(At)((Ee = (Fe = s(l)) == null ? void 0 : Fe.map((rt) => rt.value)) == null ? void 0 : Ee.join("/"));
130
- })
131
- }, {
132
- icon: n(() => [
133
- t(Ue, { name: "Store" })
134
- ]),
135
- default: n(() => [
136
- A[3] || (A[3] = fe(" 保存页面 "))
137
- ]),
138
- _: 1,
139
- __: [3]
140
- })
141
- ]),
142
- C("div", Ca, [
143
- (c(), L(zt, {
144
- key: s(l),
145
- breadArray: s(l),
146
- onClick: s(Ut)
147
- }, null, 8, ["breadArray", "onClick"]))
148
- ]),
149
- C("div", ba, [
150
- We(Ce.$slots, "default", {}, void 0, !0),
151
- t(ae, {
152
- size: 35,
153
- src: (B = s(G)) == null ? void 0 : B.avatarUrl
154
- }, {
155
- default: n(() => {
156
- var g;
157
- return [
158
- fe(je(((g = s(G)) == null ? void 0 : g.account) ?? "未知"), 1)
159
- ];
160
- }),
161
- _: 1
162
- }, 8, ["src"])
163
- ])
164
- ];
165
- }),
166
- _: 3
167
- }),
168
- s(r) === "edit" ? (c(), L(q, {
169
- key: 0,
170
- class: "model-operate",
171
- style: { "margin-top": "10px", height: "0px" }
172
- }, {
173
- default: n(() => [
174
- C("div", ka, [
175
- t(ft)
176
- ]),
177
- C("div", Ba, [
178
- t(gt)
179
- ]),
180
- C("div", Ta, [
181
- t(yt)
182
- ])
183
- ]),
184
- _: 1
185
- })) : Q("", !0)
186
- ]),
187
- _: 3
188
- })) : at((c(), L(q, {
189
- key: 1,
190
- class: "client-container",
191
- "element-loading-text": "正在加载页面数据..."
192
- }, {
193
- default: n(() => [
194
- t(Pe, { class: "client-header" }, {
195
- default: n(() => [
196
- A[6] || (A[6] = C("div", { class: "client-header-logo" }, " ISIP ", -1)),
197
- C("div", Ra, [
198
- t(Ot, { mode: "horizontal" })
199
- ]),
200
- C("div", Fa, [
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: n(() => [
209
- t(pe, { class: "el-input__icon" }, {
210
- default: n(() => [
211
- t(s(Nt))
212
- ]),
213
- _: 1
214
- })
215
- ]),
216
- _: 1
217
- }, 8, ["modelValue"]),
218
- P.showButton ? (c(), L(ge, {
219
- key: 0,
220
- id: "transparentBgButton",
221
- onClick: s(jt)
222
- }, {
223
- icon: n(() => [
224
- t(Ue, { name: "App" })
225
- ]),
226
- default: n(() => [
227
- A[4] || (A[4] = fe(" 生成APP "))
228
- ]),
229
- _: 1,
230
- __: [4]
231
- }, 8, ["onClick"])) : Q("", !0),
232
- P.showButton && s(r) === "view" ? (c(), L(ge, {
233
- key: 1,
234
- id: "transparentBgButton",
235
- onClick: s(Dt)
236
- }, {
237
- icon: n(() => [
238
- t(Ue, { name: "write" })
239
- ]),
240
- default: n(() => [
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: n(() => {
249
- var B;
250
- return [
251
- t(He, {
252
- size: "35",
253
- avatarUrl: (B = s(G)) == null ? void 0 : B.avatarUrl,
254
- showCropper: !1,
255
- banClick: !0
256
- }, {
257
- avatarDefault: n(() => {
258
- var g;
259
- return [
260
- fe(je(((g = s(G)) == null ? void 0 : g.account) ?? "未知"), 1)
261
- ];
262
- }),
263
- _: 1
264
- }, 8, ["avatarUrl"])
265
- ];
266
- }),
267
- dropMenu: n(() => [
268
- C("div", Sa, [
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: n(() => [
287
- J.value ? (c(), L(be, {
288
- key: 1,
289
- class: "client-main"
290
- }, {
291
- default: n(() => [
292
- t(O, { class: "client-aside" }, {
293
- default: n(() => [
294
- t(lt, { mode: "vertical" })
295
- ]),
296
- _: 1
297
- }),
298
- C("div", Ua, [
299
- t(oe)
300
- ])
301
- ]),
302
- _: 1
303
- })) : (c(), L(be, {
304
- key: 0,
305
- class: "client-main"
306
- }, {
307
- default: n(() => {
308
- var B;
309
- return [
310
- t(O, { class: "client-aside" }, {
311
- default: n(() => [
312
- t(lt, { mode: "vertical" })
313
- ]),
314
- _: 1
315
- }),
316
- C("div", xa, [
317
- s(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(ot, null, ht((B = s(et)(s(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", Aa, je(g.name), 1)) : Q("", !0),
330
- (c(), L(St(s(Pt)(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: s(Lt),
336
- index: (g == null ? void 0 : g.id) ?? Fe,
337
- onContentChange: s(Mt),
338
- onPageChange: s($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, s(ue)]
354
- ]);
355
- };
356
- }
357
- }), Da = /* @__PURE__ */ qe(ja, [["__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
- ], Pa = ["src"], $a = { class: "structure-buttons" }, Ma = { class: "structure-paths" }, La = { class: "client-header-user" }, Ea = { class: "model-select" }, Va = { class: "model-show" }, Na = { class: "model-fill" }, Oa = { class: "client-header-logo" }, za = { class: "client-header-menu" }, Ja = { class: "client-header-user" }, Ia = { class: "drop-menu" }, Ka = { class: "client-main-content" }, Ga = {
439
- key: 0,
440
- class: "item-view-group"
441
- }, Wa = {
442
- key: 0,
443
- class: "calculator"
444
- }, qa = {
445
- key: 1,
446
- class: "calculator"
447
- }, Ha = {
448
- key: 2,
449
- class: "calculator"
450
- }, Qa = {
451
- key: 3,
452
- class: "calculator"
453
- }, Xa = { class: "router-aside" }, Ya = { class: "router-main" }, Za = /* @__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(P, { 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 = sa(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), ae = ca(Be), { objUrl: Pe, blobUrls: q } = ke(ae), pe = w(null), Le = w(!1), He = w(!0), $e = w(!1), { importLoading: U, activeMenuPath: O, activeTopMenuPath: be, platName: oe } = ke(ge), ye = w(!1), B = w(!1), g = w(!1), Fe = Re;
469
- we(() => O.value, async (a) => {
470
- a && (g.value = !0), a === "弯管仿真加工管理/仿真动画生成" ? ye.value = !0 : ye.value = !1, a === "弯管仿真加工管理/程序输出" ? B.value = !0 : B.value = !1, Ge != null && Ge.find((e) => {
471
- var d;
472
- return (e == null ? void 0 : e.key) === ((d = a == null ? void 0 : a.split("/")) == null ? void 0 : d[(a == null ? void 0 : a.split("/").length) - 1]);
473
- }) ? de.value = !0 : de.value = !1;
474
- }, { immediate: !0 });
475
- const Ee = () => {
476
- pe.value.startRunningAnimation();
477
- }, rt = (a) => {
478
- if ((a == null ? void 0 : a.type) === "table") {
479
- let e = Object.values(a == null ? void 0 : a.row), d = e == null ? void 0 : e.find((h) => (h == null ? void 0 : h.includes(".urdf")) || (h == null ? void 0 : h.includes(".obj")));
480
- d && Fe("showChild", {
481
- url: d,
482
- row: a == null ? void 0 : a.row
483
- });
484
- }
485
- }, Jt = () => {
486
- sessionStorage.clear(), window.location.reload();
487
- }, It = async () => {
488
- var o, k, R;
489
- let a = "";
490
- (o = le.value) == null || o.forEach((u, x) => {
491
- var E, j, Y;
492
- x === le.value.length - 1 && (a = (Y = (j = (E = u.compData) == null ? void 0 : E[0]) == null ? void 0 : j.contents) == null ? void 0 : Y[0].value);
493
- });
494
- const e = await K.get(a, {
495
- responseType: "blob",
496
- headers: {
497
- "Content-Type": "application/json"
498
- }
499
- }), d = new Blob([e.data], {
500
- type: "application/octet-stream;charset=UTF-8"
501
- });
502
- let h = "";
503
- (R = (k = e.config.url) == null ? void 0 : k.split("/")) == null || R.forEach((u, x) => {
504
- var E, j;
505
- ((j = (E = e.config.url) == null ? void 0 : E.split("/")) == null ? void 0 : j.length) - 1 === x && (h = u);
506
- });
507
- var i = document.createElement("a"), m = window.URL.createObjectURL(d);
508
- i.style.display = "none", i.href = m, i.download = decodeURI(h), document.body.appendChild(i), i.click(), document.body.removeChild(i), window.URL.revokeObjectURL(m);
509
- }, Kt = async () => {
510
- var h;
511
- let a = "";
512
- (h = le.value) == null || h.forEach((i, m) => {
513
- var o, k, R;
514
- m === le.value.length - 1 && (a = (R = (k = (o = i.compData) == null ? void 0 : o[0]) == null ? void 0 : k.contents) == null ? void 0 : R[0].value);
515
- });
516
- const e = await K.get(a, {
517
- responseType: "blob",
518
- headers: {
519
- "Content-Type": "application/json"
520
- }
521
- }), d = new Blob([e.data], {
522
- type: "text/plain"
523
- });
524
- ie.value && URL.revokeObjectURL(ie.value), ie.value = URL.createObjectURL(d), Le.value = !0;
525
- }, Gt = async () => {
526
- var m, o, k, R, u;
527
- $e.value = !0;
528
- const a = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken");
529
- let e = ((k = (o = (m = Ge == null ? void 0 : Ge.find((x) => {
530
- var E, j, Y;
531
- return (x == null ? void 0 : x.key) === ((Y = (E = O.value) == null ? void 0 : E.split("/")) == null ? void 0 : Y[((j = O.value) == null ? void 0 : j.split("/").length) - 1]);
532
- })) == null ? void 0 : m.value) == null ? void 0 : o.split(",")) == null ? void 0 : k[0]) ?? "";
533
- const d = await K.post(e, null, {
534
- responseType: "blob",
535
- // 必须设置
536
- headers: {
537
- Authorization: a,
538
- "Content-Type": "application/json"
539
- }
540
- }), h = new Blob([d.data], {
541
- type: "application/octet-stream;charset=UTF-8"
542
- });
543
- let i = {
544
- suffix: "." + ((u = e == null ? void 0 : e.split(".")) == null ? void 0 : u[((R = e == null ? void 0 : e.split(".")) == null ? void 0 : R.length) - 1]),
545
- blob: h,
546
- mtlBlobs: []
547
- };
548
- $e.value = !1, pe.value.loadModelByDefaultPath([i]);
549
- }, Wt = async (a) => {
550
- var h, i, m, o, k, R, u;
551
- const e = (h = a == null ? void 0 : a.split("/")) == null ? void 0 : h[0], d = await la({
552
- key: {
553
- type: "mainEquip",
554
- systemKey: sessionStorage.getItem("systemKey"),
555
- pageKey: e
556
- }
557
- });
558
- return ((i = d == null ? void 0 : d.data) == null ? void 0 : i.type) === "success" ? ((u = (R = (k = (o = (m = d == null ? void 0 : d.data) == null ? void 0 : m.result) == null ? void 0 : o[0]) == null ? void 0 : k.value) == null ? void 0 : R.tableData) == null ? void 0 : u.隐藏三维显示) !== !0 : !0;
559
- };
560
- we(
561
- () => le.value,
562
- () => {
563
- var a, e, d, h, i;
564
- if (((a = le.value) == null ? void 0 : a.length) === 2 && ((e = le.value) != null && e.find((m) => (m == null ? void 0 : m.name) === "输入")) && ((d = le.value) != null && d.find((m) => (m == null ? void 0 : m.name) === "输出"))) {
565
- const m = (h = le.value) == null ? void 0 : h.find((o) => (o == null ? void 0 : o.name) === "输出");
566
- se.value = ((i = m == null ? void 0 : m.comp) == null ? void 0 : i.toUpperCase()) === "FORM", r.value = !0;
567
- } else
568
- r.value = !1, se.value = !1;
569
- },
570
- { deep: !0, immediate: !0 }
571
- ), we(
572
- () => O.value,
573
- async () => {
574
- O.value && (He.value = await Wt(O.value));
575
- },
576
- { deep: !0, immediate: !0 }
577
- ), we(
578
- () => [Pe.value, pe.value],
579
- () => {
580
- var a;
581
- ((a = Pe.value) == null ? void 0 : a.length) > 0 && pe.value && pe.value.addModelsFromUrls(Pe.value);
582
- },
583
- { immediate: !0, deep: !0 }
584
- ), we(
585
- () => q == null ? void 0 : q.value,
586
- async () => {
587
- var a, e, d, h;
588
- if (q != null && q.value && ((a = q == null ? void 0 : q.value) == null ? void 0 : a.length) > 0 && !de.value && !((e = le.value) != null && e.find((i) => (i == null ? void 0 : i.name) === "输入") && ((d = le.value) != null && d.find((i) => (i == null ? void 0 : i.name) === "输出")))) {
589
- let i = [];
590
- const m = await ((h = et(q == null ? void 0 : q.value)) == null ? void 0 : h.map(async (o) => {
591
- var E, j, Y, Se, xe, D, p, me, he, Ae;
592
- let k, R;
593
- const u = (j = (E = o == null ? void 0 : o.blob) == null ? void 0 : E.split("undefined,")) == null ? void 0 : j[1];
594
- let x = u == null ? void 0 : u.split(",");
595
- if ((x == null ? void 0 : x.length) > 1) {
596
- let _e = await (x == null ? void 0 : x.map(async ($) => {
597
- var F, Qe, Te, Z, _, re;
598
- k = await K.get($, {
599
- responseType: "blob",
600
- headers: {
601
- "Content-Type": "application/json"
602
- }
603
- });
604
- let I = [];
605
- if (((F = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : F.length) > 0) {
606
- let ze = await ((Qe = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : Qe.map(async (M) => {
607
- let Me = await K.get(M, {
608
- responseType: "blob",
609
- headers: {
610
- "Content-Type": "application/json"
611
- }
612
- });
613
- return I.push(new Blob([Me.data], {
614
- type: "application/octet-stream;charset=UTF-8"
615
- })), Me;
616
- }));
617
- await Promise.all(ze);
618
- }
619
- return ((Z = $ == null ? void 0 : $.split(".")) == null ? void 0 : Z[((Te = $ == null ? void 0 : $.split(".")) == null ? void 0 : Te.length) - 1]) !== "undefined" && i.push({
620
- suffix: "." + ((re = $ == null ? void 0 : $.split(".")) == null ? void 0 : re[((_ = $ == null ? void 0 : $.split(".")) == null ? void 0 : _.length) - 1]),
621
- blob: new Blob([k.data], {
622
- type: "application/octet-stream;charset=UTF-8"
623
- }),
624
- mtlBlobs: I
625
- }), k;
626
- }));
627
- await Promise.all(_e);
628
- } else if (!(u != null && u.includes("https://")) && !(u != null && u.includes("http://"))) {
629
- k = await kt({
630
- url: u
631
- });
632
- let _e = [];
633
- if (((Y = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : Y.length) > 0) {
634
- let $ = await ((Se = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : Se.map(async (I) => {
635
- let F = await kt({
636
- url: I
637
- });
638
- return _e.push(new Blob([F.data], {
639
- type: "application/octet-stream;charset=UTF-8"
640
- })), F;
641
- }));
642
- await Promise.all($);
643
- }
644
- R = {
645
- suffix: "." + ((D = u == null ? void 0 : u.split(".")) == null ? void 0 : D[((xe = u == null ? void 0 : u.split(".")) == null ? void 0 : xe.length) - 1]),
646
- blob: new Blob([k.data], {
647
- type: "application/octet-stream;charset=UTF-8"
648
- }),
649
- mtlBlobs: _e
650
- };
651
- } else {
652
- k = await K.get(u, {
653
- responseType: "blob",
654
- headers: {
655
- "Content-Type": "application/json"
656
- }
657
- });
658
- let _e = [];
659
- if (((p = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : p.length) > 0) {
660
- let $ = await ((me = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : me.map(async (I) => {
661
- let F = await K.get(I, {
662
- responseType: "blob",
663
- headers: {
664
- "Content-Type": "application/json"
665
- }
666
- });
667
- return _e.push(new Blob([F.data], {
668
- type: "application/octet-stream;charset=UTF-8"
669
- })), F;
670
- }));
671
- await Promise.all($);
672
- }
673
- R = {
674
- suffix: "." + ((Ae = u == null ? void 0 : u.split(".")) == null ? void 0 : Ae[((he = u == null ? void 0 : u.split(".")) == null ? void 0 : he.length) - 1]),
675
- blob: new Blob([k.data], {
676
- type: "application/octet-stream;charset=UTF-8"
677
- }),
678
- mtlBlobs: _e
679
- };
680
- }
681
- R && i.push(R);
682
- }));
683
- await Promise.all(m), (i == null ? void 0 : i.length) !== 0 && pe.value.loadModelByDefaultPath(i);
684
- }
685
- },
686
- { immediate: !0, deep: !0 }
687
- ), we(
688
- () => ve.value,
689
- async () => {
690
- var e, d, h, i;
691
- if (ve.value !== "" && ve.value) {
692
- let m = (e = O.value) == null ? void 0 : e.split("/"), o = m[(m == null ? void 0 : m.length) - 2];
693
- const R = (((d = y == null ? void 0 : y.find((j) => (j == null ? void 0 : j.key) === o)) == null ? void 0 : d.download) ?? "") + "/" + ve.value, u = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), x = await K.post(R, null, {
694
- responseType: "blob",
695
- // 必须设置
696
- headers: {
697
- Authorization: u,
698
- baseURL: "http://139.196.154.85:20025",
699
- "Content-Type": "application/json"
700
- }
701
- });
702
- var a = new Blob([x.data], {
703
- type: "application/octet-stream;charset=UTF-8"
704
- });
705
- const E = [
706
- {
707
- suffix: "." + ((i = (h = ve.value) == null ? void 0 : h.split(".")) == null ? void 0 : i[1]),
708
- blob: a,
709
- mtlBlobs: []
710
- }
711
- ];
712
- pe.value.loadModelByDefaultPath(E);
713
- }
714
- },
715
- { deep: !0, immediate: !0 }
716
- );
717
- const qt = async () => {
718
- var k, R, u, x, E, j, Y, Se, xe, D, p, me, he, Ae, _e, $, I;
719
- G.value = !0;
720
- let a = (k = O.value) == null ? void 0 : k.split("/"), e = a[(a == null ? void 0 : a.length) - 2];
721
- const d = ((R = y == null ? void 0 : y.find((F) => (F == null ? void 0 : F.key) === e)) == null ? void 0 : R.value) ?? "";
722
- let h = "";
723
- const i = await K.post("http://139.196.154.85:20024/api/sysAuth/login", {
724
- account: "superadmin",
725
- password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
726
- codeId: 0,
727
- code: ""
728
- });
729
- ((u = i == null ? void 0 : i.data) == null ? void 0 : u.code) === 200 && (h = `Bearer ${(E = (x = i.data) == null ? void 0 : x.result) == null ? void 0 : E.accessToken}`, sessionStorage.setItem("magicToken", h));
730
- const m = h === "" ? "123456" : h, o = await K.post(d, null, {
731
- headers: {
732
- Authorization: m,
733
- baseURL: "http://139.196.154.85:20025",
734
- "Content-Type": "multipart/form-data"
735
- }
736
- });
737
- if (((j = o == null ? void 0 : o.data) == null ? void 0 : j.type) === "success" && bt((Se = (Y = o == null ? void 0 : o.data) == null ? void 0 : Y.result) == null ? void 0 : Se.result)) {
738
- const F = (he = (me = (p = JSON.parse((D = (xe = o == null ? void 0 : o.data) == null ? void 0 : xe.result) == null ? void 0 : D.result)) == null ? void 0 : p.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, {
739
- headers: {
740
- Authorization: m,
741
- baseURL: "http://139.196.154.85:20025",
742
- "Content-Type": "multipart/form-data"
743
- }
744
- });
745
- if (((_e = Z == null ? void 0 : Z.data) == null ? void 0 : _e.type) === "success") {
746
- 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) => {
747
- var Me, Xe, Ye, ee, T, De;
748
- if ((M == null ? void 0 : M.name) === "输出") {
749
- if ((M == null ? void 0 : M.comp) === "Table")
750
- M.compData = (Me = M == null ? void 0 : M.compData) == null ? void 0 : Me.map((f) => {
751
- var S, ne;
752
- 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) => {
753
- var H, Ve, Je;
754
- 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;
755
- }), V))) == null ? void 0 : ne.filter((V, v) => v <= (_ == null ? void 0 : _.length) - 1)), f;
756
- });
757
- else if ((M == null ? void 0 : M.comp) === "Form") {
758
- let f = "";
759
- if (_ == null || _.forEach((S) => {
760
- f = f === "" ? f + S : f + "," + S;
761
- }), M.compData = (Xe = M == null ? void 0 : M.compData) == null ? void 0 : Xe.map((S) => {
762
- var ne;
763
- return (S == null ? void 0 : S.key) === "formContent" && (S.contents = (ne = S.contents) == null ? void 0 : ne.map((V) => (V.value = f, V))), S;
764
- }), (Ye = f == null ? void 0 : f.split(",")) != null && Ye.find((S) => S.includes(".obj"))) {
765
- let S = {};
766
- S.suffix = ".obj";
767
- const ne = [];
768
- 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) => {
769
- var H, Ve;
770
- if (v.includes(".obj")) {
771
- 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, {
772
- responseType: "blob",
773
- // 必须设置
774
- headers: {
775
- Authorization: Ie,
776
- baseURL: "http://139.196.154.85:20025",
777
- "Content-Type": "application/json"
778
- }
779
- });
780
- var te = new Blob([Ke.data], {
781
- type: "application/octet-stream;charset=UTF-8"
782
- });
783
- S.blob = te;
784
- } else if (v.includes(".mtl")) {
785
- 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, {
786
- responseType: "blob",
787
- // 必须设置
788
- headers: {
789
- Authorization: Ie,
790
- baseURL: "http://139.196.154.85:20025",
791
- "Content-Type": "application/json"
792
- }
793
- });
794
- var te = new Blob([Ke.data], {
795
- type: "application/octet-stream;charset=UTF-8"
796
- });
797
- ne.push(te);
798
- }
799
- }));
800
- await Promise.all(V), S.mtlBlobs = ne, pe.value.loadModelByDefaultPath([S]);
801
- } else {
802
- const S = [];
803
- let ne = await ((De = f == null ? void 0 : f.split(",")) == null ? void 0 : De.map(async (V) => {
804
- var Ie, Ke;
805
- let v = {};
806
- v.suffix = "." + ((Ie = V == null ? void 0 : V.split(".")) == null ? void 0 : Ie[1]);
807
- 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, {
808
- responseType: "blob",
809
- // 必须设置
810
- headers: {
811
- Authorization: Ve,
812
- baseURL: "http://139.196.154.85:20025",
813
- "Content-Type": "application/json"
814
- }
815
- });
816
- var Ze = new Blob([Je.data], {
817
- type: "application/octet-stream;charset=UTF-8"
818
- });
819
- v.blob = Ze, S.push(v);
820
- }));
821
- await Promise.all(ne), pe.value.loadModelByDefaultPath(S);
822
- }
823
- }
824
- }
825
- return M;
826
- }));
827
- le.value = await Promise.all(ze);
828
- }
829
- }
830
- z.value++, G.value = !1;
831
- }, wt = w(""), ct = w("open"), ut = w("open"), tt = w(!1), Ht = (a) => {
832
- const e = document.getElementById("menuCollapse");
833
- a === "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");
834
- }, Qt = (a) => {
835
- const e = document.getElementById("operateCollapse");
836
- a === "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");
837
- }, Xt = () => {
838
- tt.value = !tt.value;
839
- const a = document.getElementById("operateCollapse"), e = document.getElementById("menuCollapse");
840
- tt.value ? (e.style.width = "13rem", a.style.width = "calc(100% - 18rem)") : a.style.width = "400px";
841
- }, dt = (a) => {
842
- const e = URL.createObjectURL(a), d = document.createElement("a");
843
- d.href = e, d.download = "file.txt", document.body.appendChild(d), d.click(), document.body.removeChild(d), URL.revokeObjectURL(e), X.value = !1;
844
- }, Yt = async () => {
845
- var k, R, u, x, E, j, Y, Se, xe, D, p, me, he, Ae, _e, $;
846
- X.value = !0;
847
- let a = (k = O.value) == null ? void 0 : k.split("/"), e = a[(a == null ? void 0 : a.length) - 2];
848
- const d = ((R = y == null ? void 0 : y.find((I) => (I == null ? void 0 : I.key) === e)) == null ? void 0 : R.value) ?? "";
849
- let h = "";
850
- const i = await K.post("http://139.196.154.85:20024/api/sysAuth/login", {
851
- account: "superadmin",
852
- password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
853
- codeId: 0,
854
- code: ""
855
- });
856
- if (((u = i == null ? void 0 : i.data) == null ? void 0 : u.code) === 200)
857
- h = `Bearer ${(E = (x = i.data) == null ? void 0 : x.result) == null ? void 0 : E.accessToken}`, sessionStorage.setItem("magicToken", h);
858
- else
859
- throw mt.error("响应出错了"), new Error("响应出错了");
860
- const m = h === "" ? "123456" : h, o = await K.post(d, null, {
861
- headers: {
862
- Authorization: m,
863
- baseURL: "http://139.196.154.85:20025",
864
- "Content-Type": "multipart/form-data"
865
- }
866
- });
867
- if (((j = o == null ? void 0 : o.data) == null ? void 0 : j.code) === 200) {
868
- if (bt((Se = (Y = o == null ? void 0 : o.data) == null ? void 0 : Y.result) == null ? void 0 : Se.result)) {
869
- const I = (he = (me = (p = JSON.parse((D = (xe = o == null ? void 0 : o.data) == null ? void 0 : xe.result) == null ? void 0 : D.result)) == null ? void 0 : p.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, {
870
- headers: {
871
- Authorization: m,
872
- baseURL: "http://139.196.154.85:20025",
873
- "Content-Type": "multipart/form-data"
874
- }
875
- });
876
- if (((_e = Te == null ? void 0 : Te.data) == null ? void 0 : _e.code) === 200) {
877
- const Z = ($ = Te == null ? void 0 : Te.data) == null ? void 0 : $.result, _ = et(le.value);
878
- _ == null || _.map(async (re) => {
879
- var ze, M, Me, Xe, Ye;
880
- if ((re == null ? void 0 : re.name) === "输出" && (re == null ? void 0 : re.comp) === "Form") {
881
- let ee = "";
882
- Z == null || Z.forEach((T) => {
883
- ee = ee === "" ? ee + T : ee + "," + T;
884
- }), re.compData = (ze = re == null ? void 0 : re.compData) == null ? void 0 : ze.map((T) => {
885
- var De;
886
- return (T == null ? void 0 : T.key) === "formContent" && (T.contents = (De = T.contents) == null ? void 0 : De.map((f) => (f.value = ee, f))), T;
887
- }), (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) => {
888
- var De, f;
889
- if (T.includes(".obj")) {
890
- 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, {
891
- responseType: "blob",
892
- // 必须设置
893
- headers: {
894
- Authorization: V,
895
- baseURL: "http://139.196.154.85:20025",
896
- "Content-Type": "application/json"
897
- }
898
- });
899
- let te = new Blob([v.data], {
900
- type: "application/octet-stream;charset=UTF-8"
901
- });
902
- dt(te);
903
- } else if (T.includes(".mtl")) {
904
- 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, {
905
- responseType: "blob",
906
- // 必须设置
907
- headers: {
908
- Authorization: V,
909
- baseURL: "http://139.196.154.85:20025",
910
- "Content-Type": "application/json"
911
- }
912
- });
913
- let te = new Blob([v.data], {
914
- type: "application/octet-stream;charset=UTF-8"
915
- });
916
- dt(te);
917
- }
918
- }) : (Ye = ee == null ? void 0 : ee.split(",")) == null || Ye.map(async (T) => {
919
- var v, te;
920
- "" + ((v = T == null ? void 0 : T.split(".")) == null ? void 0 : v[1]);
921
- 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, {
922
- responseType: "blob",
923
- // 必须设置
924
- headers: {
925
- Authorization: S,
926
- baseURL: "http://139.196.154.85:20025",
927
- "Content-Type": "application/json"
928
- }
929
- });
930
- let V = new Blob([ne.data], {
931
- type: "application/octet-stream;charset=UTF-8"
932
- });
933
- dt(V);
934
- });
935
- }
936
- });
937
- } else
938
- throw mt.error("响应出错了"), new Error("响应出错了");
939
- }
940
- } else
941
- throw mt.error("响应出错了"), new Error("响应出错了");
942
- }, Zt = nt(() => le.value), vt = nt(() => be.value === "系统管理" || be.value === "平台管理");
943
- return (a, e) => {
944
- const d = b("el-button"), h = b("el-avatar"), i = b("el-header"), m = b("el-container"), o = b("el-icon"), k = b("el-input"), R = b("ss-avatar"), u = b("ss-drop"), x = b("el-aside"), E = b("el-collapse-item"), j = b("el-collapse"), Y = b("el-main"), Se = b("router-view"), xe = Ft("loading");
945
- return c(), N(ot, null, [
946
- t(ra, {
947
- visible: Le.value,
948
- onBeforeDestroy: e[0] || (e[0] = (D) => Le.value = !1)
949
- }, {
950
- default: n(() => [
951
- ie.value ? (c(), N("iframe", {
952
- key: 0,
953
- src: ie.value,
954
- style: { width: "100%", height: "500px", border: "1px solid #ccc" }
955
- }, null, 8, Pa)) : Q("", !0)
956
- ]),
957
- _: 1
958
- }, 8, ["visible"]),
959
- s(A) === "edit" ? (c(), L(m, {
960
- key: 0,
961
- class: "client-container"
962
- }, {
963
- default: n(() => [
964
- t(i, { class: "client-structure-header" }, {
965
- default: n(() => {
966
- var D;
967
- return [
968
- C("div", $a, [
969
- t(d, {
970
- id: "transparentBgButton",
971
- onClick: s(xt)
972
- }, {
973
- default: n(() => e[6] || (e[6] = [
974
- fe(" 返回页面 ")
975
- ])),
976
- _: 1,
977
- __: [6]
978
- }, 8, ["onClick"]),
979
- t(d, {
980
- id: "transparentBgButton",
981
- onClick: e[1] || (e[1] = (p) => {
982
- var me, he;
983
- return s(At)((he = (me = s(ce)) == null ? void 0 : me.map((Ae) => Ae.value)) == null ? void 0 : he.join("/"));
984
- })
985
- }, {
986
- icon: n(() => [
987
- t(Ue, { name: "Store" })
988
- ]),
989
- default: n(() => [
990
- e[7] || (e[7] = fe(" 保存页面 "))
991
- ]),
992
- _: 1,
993
- __: [7]
994
- })
995
- ]),
996
- C("div", Ma, [
997
- (c(), L(zt, {
998
- key: s(ce),
999
- breadArray: s(ce),
1000
- onClick: s(Ut)
1001
- }, null, 8, ["breadArray", "onClick"]))
1002
- ]),
1003
- C("div", La, [
1004
- We(a.$slots, "default", {}, void 0, !0),
1005
- t(h, {
1006
- size: 35,
1007
- src: (D = s(W)) == null ? void 0 : D.avatarUrl
1008
- }, {
1009
- default: n(() => {
1010
- var p;
1011
- return [
1012
- fe(je(((p = s(W)) == null ? void 0 : p.account) ?? "未知"), 1)
1013
- ];
1014
- }),
1015
- _: 1
1016
- }, 8, ["src"])
1017
- ])
1018
- ];
1019
- }),
1020
- _: 3
1021
- }),
1022
- s(A) === "edit" ? (c(), L(m, {
1023
- key: 0,
1024
- class: "model-operate",
1025
- style: { "margin-top": "10px", height: "0px" }
1026
- }, {
1027
- default: n(() => [
1028
- C("div", Ea, [
1029
- t(ft)
1030
- ]),
1031
- C("div", Va, [
1032
- t(gt)
1033
- ]),
1034
- C("div", Na, [
1035
- t(yt)
1036
- ])
1037
- ]),
1038
- _: 1
1039
- })) : Q("", !0)
1040
- ]),
1041
- _: 3
1042
- })) : at((c(), L(m, {
1043
- key: 1,
1044
- class: "client-container",
1045
- "element-loading-text": "正在加载页面数据..."
1046
- }, {
1047
- default: n(() => [
1048
- t(i, { class: "client-header" }, {
1049
- default: n(() => [
1050
- C("div", Oa, [
1051
- t(Ue, {
1052
- name: "logo",
1053
- style: { width: "clamp(18px, 1.5rem, 24px)", height: "clamp(18px, 1.5rem, 24px)", "margin-right": "8px" }
1054
- }),
1055
- fe(" " + je(s(oe) === "" ? "CPMPIP" : s(oe)), 1)
1056
- ]),
1057
- C("div", za, [
1058
- t(Ot, { mode: "horizontal" })
1059
- ]),
1060
- C("div", Ja, [
1061
- t(k, {
1062
- modelValue: wt.value,
1063
- "onUpdate:modelValue": e[2] || (e[2] = (D) => wt.value = D),
1064
- clearable: "",
1065
- placeholder: "搜索",
1066
- style: { width: "130px" }
1067
- }, {
1068
- prefix: n(() => [
1069
- t(o, { class: "el-input__icon" }, {
1070
- default: n(() => [
1071
- t(s(Nt))
1072
- ]),
1073
- _: 1
1074
- })
1075
- ]),
1076
- _: 1
1077
- }, 8, ["modelValue"]),
1078
- P.showButton ? (c(), L(d, {
1079
- key: 0,
1080
- id: "transparentBgButton",
1081
- onClick: s(jt)
1082
- }, {
1083
- icon: n(() => [
1084
- t(Ue, { name: "App" })
1085
- ]),
1086
- default: n(() => [
1087
- e[8] || (e[8] = fe(" 生成APP "))
1088
- ]),
1089
- _: 1,
1090
- __: [8]
1091
- }, 8, ["onClick"])) : Q("", !0),
1092
- P.showButton && s(A) === "view" ? (c(), L(d, {
1093
- key: 1,
1094
- id: "transparentBgButton",
1095
- onClick: s(Dt)
1096
- }, {
1097
- icon: n(() => [
1098
- t(Ue, { name: "write" })
1099
- ]),
1100
- default: n(() => [
1101
- e[9] || (e[9] = fe(" 修改布局 "))
1102
- ]),
1103
- _: 1,
1104
- __: [9]
1105
- }, 8, ["onClick"])) : Q("", !0),
1106
- We(a.$slots, "default", {}, void 0, !0),
1107
- t(u, null, {
1108
- dropTitle: n(() => {
1109
- var D;
1110
- return [
1111
- t(R, {
1112
- size: "35",
1113
- avatarUrl: (D = s(W)) == null ? void 0 : D.avatarUrl,
1114
- showCropper: !1,
1115
- banClick: !0
1116
- }, {
1117
- avatarDefault: n(() => {
1118
- var p;
1119
- return [
1120
- fe(je(((p = s(W)) == null ? void 0 : p.account) ?? "未知"), 1)
1121
- ];
1122
- }),
1123
- _: 1
1124
- }, 8, ["avatarUrl"])
1125
- ];
1126
- }),
1127
- dropMenu: n(() => [
1128
- C("div", Ia, [
1129
- t(Oe, {
1130
- emptyColor: !0,
1131
- class: "menu-button",
1132
- onClickTrigger: Jt,
1133
- modelValue: "退出登录",
1134
- buttonType: ""
1135
- })
1136
- ])
1137
- ]),
1138
- _: 1
1139
- })
1140
- ])
1141
- ]),
1142
- _: 3
1143
- }),
1144
- t(m, { class: "client-body" }, {
1145
- default: n(() => [
1146
- at(t(Y, { class: "client-main" }, {
1147
- default: n(() => [
1148
- t(j, {
1149
- modelValue: ct.value,
1150
- "onUpdate:modelValue": e[3] || (e[3] = (D) => ct.value = D),
1151
- accordion: "",
1152
- class: "client-aside",
1153
- id: "menuCollapse",
1154
- onChange: Ht
1155
- }, {
1156
- default: n(() => [
1157
- t(E, { name: "open" }, {
1158
- icon: n(() => [
1159
- t(Ue, {
1160
- name: ct.value === "" ? "Right" : "Left",
1161
- style: { width: "20px", height: "20px" }
1162
- }, null, 8, ["name"])
1163
- ]),
1164
- default: n(() => [
1165
- t(x, { style: { width: "100%" } }, {
1166
- default: n(() => [
1167
- t(lt, { mode: "vertical" })
1168
- ]),
1169
- _: 1
1170
- })
1171
- ]),
1172
- _: 1
1173
- })
1174
- ]),
1175
- _: 1
1176
- }, 8, ["modelValue"]),
1177
- C("div", Ka, [
1178
- t(ia, {
1179
- isShow: g.value,
1180
- windowConfig: P.windowConfig,
1181
- ref_key: "threeModelRef",
1182
- ref: pe
1183
- }, null, 8, ["isShow", "windowConfig"])
1184
- ]),
1185
- t(j, {
1186
- modelValue: ut.value,
1187
- "onUpdate:modelValue": e[5] || (e[5] = (D) => ut.value = D),
1188
- accordion: "",
1189
- class: "client-main-operate",
1190
- id: "operateCollapse",
1191
- onChange: Qt
1192
- }, {
1193
- default: n(() => [
1194
- t(E, { name: "open" }, {
1195
- icon: n(() => [
1196
- t(Ue, {
1197
- name: ut.value === "open" ? "Right" : "Left",
1198
- style: { width: "20px", height: "20px" }
1199
- }, null, 8, ["name"])
1200
- ]),
1201
- default: n(() => {
1202
- var D;
1203
- return [
1204
- C("div", null, [
1205
- t(Ue, {
1206
- class: "fold-icon",
1207
- name: tt.value ? "Right" : "Left",
1208
- onClick: Xt
1209
- }, null, 8, ["name"]),
1210
- (c(!0), N(ot, null, ht((D = Zt.value) == null ? void 0 : D.filter((p) => p.comp !== "FormTop"), (p, me) => {
1211
- var he;
1212
- return c(), N("div", {
1213
- class: "item-view-content",
1214
- key: p == null ? void 0 : p.id
1215
- }, [
1216
- ((he = p == null ? void 0 : p.comp) == null ? void 0 : he.toUpperCase()) !== "TABLE" && p.name ? (c(), N("div", Ga, je(p.name), 1)) : Q("", !0),
1217
- (c(), L(St(s(Pt)(p.comp)), {
1218
- compName: p.name,
1219
- itemData: p == null ? void 0 : p.compData,
1220
- childItemData: p == null ? void 0 : p.itemChildData,
1221
- key: (p == null ? void 0 : p.id) ?? me,
1222
- onChange: s(Lt),
1223
- index: (p == null ? void 0 : p.id) ?? me,
1224
- onContentChange: s(Mt),
1225
- onPageChange: s($t),
1226
- onRowClick: rt
1227
- }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
1228
- ]);
1229
- }), 128)),
1230
- r.value ? (c(), N("div", Wa, [
1231
- se.value ? (c(), L(Oe, {
1232
- key: 0,
1233
- class: "calculator-content",
1234
- onClickTrigger: Yt,
1235
- loading: X.value,
1236
- modelValue: "预览"
1237
- }, null, 8, ["loading"])) : Q("", !0),
1238
- t(Oe, {
1239
- class: "calculator-content",
1240
- onClickTrigger: e[4] || (e[4] = (p) => qt()),
1241
- loading: G.value,
1242
- modelValue: "调用方法"
1243
- }, null, 8, ["loading"])
1244
- ])) : Q("", !0),
1245
- de.value ? (c(), N("div", qa, [
1246
- t(Oe, {
1247
- class: "calculator-content",
1248
- modelValue: "执行方法",
1249
- onClickTrigger: Gt,
1250
- loading: $e.value
1251
- }, null, 8, ["loading"])
1252
- ])) : Q("", !0),
1253
- ye.value ? (c(), N("div", Ha, [
1254
- t(Oe, {
1255
- class: "calculator-content",
1256
- modelValue: "播放动画",
1257
- onClickTrigger: Ee
1258
- })
1259
- ])) : Q("", !0),
1260
- B.value ? (c(), N("div", Qa, [
1261
- t(Oe, {
1262
- class: "calculator-content",
1263
- onClickTrigger: Kt,
1264
- modelValue: "预览"
1265
- }),
1266
- t(Oe, {
1267
- class: "calculator-content",
1268
- onClickTrigger: It,
1269
- modelValue: "下载"
1270
- })
1271
- ])) : Q("", !0)
1272
- ])
1273
- ];
1274
- }),
1275
- _: 1
1276
- })
1277
- ]),
1278
- _: 1
1279
- }, 8, ["modelValue"])
1280
- ]),
1281
- _: 1
1282
- }, 512), [
1283
- [Ct, !vt.value]
1284
- ]),
1285
- at(t(Y, { class: "client-router" }, {
1286
- default: n(() => [
1287
- C("div", Xa, [
1288
- t(x, { width: "300px" }, {
1289
- default: n(() => [
1290
- t(lt, { mode: "vertical" })
1291
- ]),
1292
- _: 1
1293
- })
1294
- ]),
1295
- C("div", Ya, [
1296
- t(Se)
1297
- ])
1298
- ]),
1299
- _: 1
1300
- }, 512), [
1301
- [Ct, vt.value]
1302
- ])
1303
- ]),
1304
- _: 1
1305
- })
1306
- ]),
1307
- _: 3
1308
- })), [
1309
- [xe, s(U)]
1310
- ])
1311
- ], 64);
1312
- };
1313
- }
1314
- }), eo = /* @__PURE__ */ qe(Za, [["__scopeId", "data-v-09646213"]]), to = { class: "system-wrap" }, ao = {
1315
- __name: "index",
1316
- props: {
1317
- windowConfig: {
1318
- type: Object,
1319
- default: () => {
1320
- }
1321
- },
1322
- platform: {
1323
- type: String,
1324
- default: "browser"
1325
- },
1326
- showButton: {
1327
- type: Boolean,
1328
- default: !0
1329
- },
1330
- content: String,
1331
- jsonContents: Array
1332
- },
1333
- emits: ["buildContent", "showChild"],
1334
- setup(P, { emit: Re }) {
1335
- const l = it(Be), z = _t(Be), G = st();
1336
- w(!1);
1337
- const ce = w(!0), r = P, se = Re, X = (J) => {
1338
- se("showChild", J);
1339
- }, ue = nt(() => {
1340
- switch (r == null ? void 0 : r.platform) {
1341
- case "browser":
1342
- return ha;
1343
- case "client":
1344
- return ma;
1345
- }
1346
- }), de = (J) => {
1347
- const W = document.documentElement;
1348
- J == null || J.forEach((ie) => {
1349
- W.style.setProperty(ie.name, ie.value);
1350
- });
1351
- };
1352
- we(() => r.platform, (J, W) => {
1353
- J && de(ue.value);
1354
- }, { immediate: !0 });
1355
- const ve = () => {
1356
- se("buildContent");
1357
- };
1358
- return we(
1359
- () => [r == null ? void 0 : r.content, r == null ? void 0 : r.jsonContents],
1360
- async () => {
1361
- var ie, Ce, A, ge;
1362
- if (((ie = r == null ? void 0 : r.jsonContents) == null ? void 0 : ie.length) > 0) {
1363
- l.setOriginalData(r == null ? void 0 : r.jsonContents);
1364
- return;
1365
- }
1366
- if (!(r != null && r.content) || ((Ce = r == null ? void 0 : r.content) == null ? void 0 : Ce.length) === 0) return;
1367
- ce.value = !0, G.setImportLoading(!0);
1368
- let J = [], W = [];
1369
- z.setSelectTitle([]), z.setSelectIndex(""), z.setSelectMenu(""), (ge = (A = r == null ? void 0 : r.content) == null ? void 0 : A.filter((ae) => ae !== "")) == null || ge.forEach((ae) => {
1370
- ua(ae) ? W.push(da(ae)) : Bt(ae) ? W.push(Bt(ae)) : Tt(ae) ? W.push(Tt(ae)) : W.push(oa(ae));
1371
- }), J = W == null ? void 0 : W[0], await na(J), await Vt(), l.setOriginalData(J), G.setImportLoading(!1);
1372
- },
1373
- { deep: !0, immediate: !0 }
1374
- ), (J, W) => (c(), N("div", to, [
1375
- P.platform === "browser" ? (c(), L(Da, {
1376
- key: 0,
1377
- showButton: P.showButton
1378
- }, {
1379
- default: n(() => [
1380
- We(J.$slots, "default", {}, void 0, !0)
1381
- ]),
1382
- _: 3
1383
- }, 8, ["showButton"])) : (c(), L(eo, {
1384
- key: 1,
1385
- windowConfig: P.windowConfig,
1386
- showButton: P.showButton,
1387
- onBuildContent: ve,
1388
- onShowChild: X
1389
- }, {
1390
- default: n(() => [
1391
- We(J.$slots, "default", {}, void 0, !0)
1392
- ]),
1393
- _: 3
1394
- }, 8, ["windowConfig", "showButton"]))
1395
- ]));
1396
- }
1397
- }, oo = /* @__PURE__ */ qe(ao, [["__scopeId", "data-v-5f2a4306"]]), no = { class: "add-model-content" }, lo = {
1398
- key: 0,
1399
- class: "model-operate"
1400
- }, so = { class: "model-select" }, io = { class: "model-fill" }, ro = {
1401
- key: 1,
1402
- class: "model-view"
1403
- }, co = {
1404
- __name: "index",
1405
- props: {
1406
- mode: {
1407
- type: String,
1408
- default: "view"
1409
- },
1410
- content: {
1411
- type: String,
1412
- default: ""
1413
- },
1414
- jsonContents: {
1415
- type: Array,
1416
- default: () => []
1417
- },
1418
- showButton: {
1419
- type: Boolean,
1420
- default: !0
1421
- },
1422
- pathContent: {
1423
- type: String,
1424
- default: ""
1425
- }
1426
- },
1427
- emits: ["change", "contentChange", "buildContent", "openThreeBuild"],
1428
- setup(P, { emit: Re }) {
1429
- const l = P, 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([]);
1430
- w("");
1431
- const ae = w(0), Pe = () => {
1432
- z("buildContent");
1433
- }, q = (U) => {
1434
- z("openThreeBuild", U);
1435
- };
1436
- we(
1437
- () => l == null ? void 0 : l.pathContent,
1438
- () => {
1439
- (l == null ? void 0 : l.pathContent) !== "" && ue.setSystemPath(l == null ? void 0 : l.pathContent);
1440
- },
1441
- {
1442
- deep: !0,
1443
- immediate: !0
1444
- }
1445
- );
1446
- const pe = (U) => {
1447
- z("contentChange", U);
1448
- }, Le = (U) => {
1449
- var be;
1450
- const O = (be = et(U == null ? void 0 : U.wholeValue)) == null ? void 0 : be.map((oe) => {
1451
- var ye;
1452
- return (oe == null ? void 0 : oe.comp) === "Form" && (oe.compData = (ye = oe.compData) == null ? void 0 : ye.map((B) => ((B == null ? void 0 : B.key) === "formContent" && (B.contents = pa(B == null ? void 0 : B.contents)), B))), oe;
1453
- });
1454
- z("change", {
1455
- originalContents: J.value,
1456
- currentContents: U == null ? void 0 : U.wholeValue,
1457
- editContent: U == null ? void 0 : U.editValue,
1458
- arrayToContents: O
1459
- });
1460
- };
1461
- we(
1462
- () => r.value,
1463
- () => {
1464
- ae.value === r.value.length && r.value.length !== 0 && (G.value = r.value);
1465
- },
1466
- { deep: !0, immediate: !0 }
1467
- );
1468
- const He = () => {
1469
- Ce.value !== null && Ce.value.click();
1470
- }, $e = async (U) => {
1471
- const O = U.target.files;
1472
- if (!O) return;
1473
- new FileReader(), G.value = [], r.value = [], ae.value = O.length;
1474
- const be = Array.from(O).map(async (oe) => await new Promise((ye) => {
1475
- const B = new FileReader();
1476
- B.onload = (g) => {
1477
- try {
1478
- r.value.push(g.target.result), A.value++;
1479
- } catch (Fe) {
1480
- console.error("解析失败:", Fe);
1481
- return;
1482
- }
1483
- }, B.onerror = () => ye(`读取 ${oe.name} 失败`), B.readAsText(oe), U.target.value = "", Ce.value = null, ce.value++;
1484
- }));
1485
- await Promise.all(be);
1486
- };
1487
- return we(
1488
- () => [l == null ? void 0 : l.content, l == null ? void 0 : l.jsonContents],
1489
- async () => {
1490
- await Vt(), G.value = l.content, se.value = l == null ? void 0 : l.jsonContents;
1491
- },
1492
- { deep: !0, immediate: !0 }
1493
- ), we(
1494
- () => A.value,
1495
- () => {
1496
- var U;
1497
- ((U = ge.value) == null ? void 0 : U.length) !== 0 && (ue.setOriginalData(ge.value), ue.setItemData(ge.value));
1498
- },
1499
- { deep: !0, immediate: !0 }
1500
- ), (U, O) => {
1501
- const be = b("svg-icon"), oe = b("el-button");
1502
- return c(), N("div", no, [
1503
- (l == null ? void 0 : l.mode) === "edit" ? (c(), N("div", lo, [
1504
- C("div", so, [
1505
- t(ft)
1506
- ]),
1507
- (c(), N("div", {
1508
- class: "model-show",
1509
- key: X.value
1510
- }, [
1511
- t(gt)
1512
- ])),
1513
- C("div", io, [
1514
- t(yt)
1515
- ])
1516
- ])) : Q("", !0),
1517
- (l == null ? void 0 : l.mode) === "view" ? (c(), N("div", ro, [
1518
- (c(), L(oo, {
1519
- showButton: P.showButton,
1520
- platform: s(ie),
1521
- content: G.value,
1522
- onChange: Le,
1523
- jsonContents: se.value,
1524
- onContentChange: pe,
1525
- onBuildContent: Pe,
1526
- key: X.value,
1527
- onShowChild: q
1528
- }, {
1529
- default: n(() => {
1530
- var ye;
1531
- return [
1532
- ((ye = l == null ? void 0 : l.jsonContents) == null ? void 0 : ye.length) === 0 && (l != null && l.showButton) ? (c(), L(oe, {
1533
- key: 0,
1534
- id: "transparentBgButton",
1535
- onClick: He
1536
- }, {
1537
- icon: n(() => [
1538
- t(be, { name: "import" })
1539
- ]),
1540
- default: n(() => [
1541
- (c(), N("input", {
1542
- type: "file",
1543
- key: ce.value,
1544
- ref_key: "fileInput",
1545
- ref: Ce,
1546
- accept: ".txt, .inm",
1547
- onChange: $e,
1548
- style: { display: "none" },
1549
- multiple: ""
1550
- }, null, 32)),
1551
- O[0] || (O[0] = fe(" 导入模型 "))
1552
- ]),
1553
- _: 1,
1554
- __: [0]
1555
- })) : Q("", !0)
1556
- ];
1557
- }),
1558
- _: 1
1559
- }, 8, ["showButton", "platform", "content", "jsonContents"]))
1560
- ])) : Q("", !0)
1561
- ]);
1562
- };
1563
- }
1564
- }, xo = /* @__PURE__ */ qe(co, [["__scopeId", "data-v-7ee96c6e"]]);
1565
- export {
1566
- xo as default
1567
- };