ss-component-new 1.1.597 → 1.1.599

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 (44) hide show
  1. package/dist/{index-TRcS4V2m.js → index-0HKVsRky.js} +1 -1
  2. package/dist/{index-K05hKXiU.cjs → index-B5pU9vME.cjs} +1 -1
  3. package/dist/{index-BrR-UBrL.js → index-BD5GXqmc.js} +1 -1
  4. package/dist/{index-R71UAxtE.cjs → index-BJvCtAP_.cjs} +1 -1
  5. package/dist/{index-Bq9zvPYq.js → index-BO6J4X5z.js} +1 -1
  6. package/dist/{index-Zt6huWXY.js → index-BOqD277M.js} +4 -4
  7. package/dist/index-BQUbUeRm.cjs +1 -0
  8. package/dist/{index-Bk3SowMg.js → index-BxxBTy2R.js} +2 -2
  9. package/dist/{index-BmX_GIIO.cjs → index-CLfa7WQi.cjs} +1 -1
  10. package/dist/index-CP9JtahB.js +1330 -0
  11. package/dist/{index-BurAdhpz.js → index-CWtNiEWC.js} +1 -1
  12. package/dist/{index-DTKpspvK.cjs → index-CYKrNsnq.cjs} +1 -1
  13. package/dist/{index-DSsJ2-ii.cjs → index-Cn68cqTO.cjs} +1 -1
  14. package/dist/{index-Bb1N38wE.js → index-D3WSOGKZ.js} +1 -1
  15. package/dist/{index-B4LVTE2a.cjs → index-D7onu3u0.cjs} +174 -174
  16. package/dist/{index-Dsnvzj37.cjs → index-DEwnGsTl.cjs} +1 -1
  17. package/dist/{index-BIu-jTfc.js → index-DFBIkAmd.js} +1 -1
  18. package/dist/{index-C1KIIGh8.js → index-DFzlHho-.js} +1 -1
  19. package/dist/{index-CwYjbsHf.cjs → index-DQEcV9Gr.cjs} +1 -1
  20. package/dist/{index-CB4s2Qtu.cjs → index-DlztbQ4Z.cjs} +1 -1
  21. package/dist/{index-B-P2iW5F.cjs → index-E9baiY7U.cjs} +1 -1
  22. package/dist/{index-n20urAJT.cjs → index-IWFd5pxA.cjs} +1 -1
  23. package/dist/{index-CjrWmm5T.js → index-_X1hnSQ5.js} +2030 -2020
  24. package/dist/{index-CUnz8HhY.cjs → index-kwkrny7w.cjs} +1 -1
  25. package/dist/{index-BriwvEur.js → index-nFpUbWx5.js} +1 -1
  26. package/dist/{index-DFdkXYtv.js → index-ofTuAgx1.js} +1 -1
  27. package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang--Ckdd4kI.js → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-BZUNEst8.js} +4 -4
  28. package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DNiiRDF0.cjs → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-BiDHwgPf.cjs} +1 -1
  29. package/dist/{index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-C4KOyCan.js → index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-Cwp9-01V.js} +1 -1
  30. package/dist/{index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-CHdcwZZm.cjs → index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-DMZr28hI.cjs} +1 -1
  31. package/dist/{main-CBruCFMa.cjs → main-BesoN2AE.cjs} +1 -1
  32. package/dist/{main-BdwwE9kL.js → main-BnoFIen6.js} +2 -2
  33. package/dist/ss-component.cjs +1 -1
  34. package/dist/ss-component.css +1 -1
  35. package/dist/ss-component.js +4 -4
  36. package/dist/ss-component2.cjs +1 -1
  37. package/dist/ss-component2.js +7 -7
  38. package/dist/threeModel-BN0ri4v2.cjs +1 -0
  39. package/dist/threeModel-DqysDeFt.js +1549 -0
  40. package/package.json +1 -1
  41. package/dist/index-BxSBnCA1.js +0 -1321
  42. package/dist/index-CATptFmj.cjs +0 -1
  43. package/dist/threeModel-DQIGp3UU.cjs +0 -1
  44. package/dist/threeModel-WeRc8TWE.js +0 -1524
@@ -0,0 +1,1330 @@
1
+ import { resolveComponent as R, createBlock as L, openBlock as h, withCtx as s, createVNode as o, createElementVNode as B, toDisplayString as ue, ref as y, onMounted as At, watch as Y, createElementBlock as $, Fragment as Ae, renderList as ze, createCommentVNode as q, normalizeStyle as xt, defineComponent as st, computed as Ve, resolveDirective as it, withDirectives as Be, unref as l, createTextVNode as te, renderSlot as Fe, vShow as je, resolveDynamicComponent as rt } from "vue";
2
+ import { m as Ge, a as Xe, b as qe } from "./index-BO6J4X5z.js";
3
+ import ut from "./index-DFBIkAmd.js";
4
+ import { _ as Mt, o as ct, c as dt, a as pt, b as Pt, d as mt, s as re, g as ht, e as ft, f as gt, h as yt, i as $t, j as Vt } from "./index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-BZUNEst8.js";
5
+ import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import { p as ne, s as oe, u as Ne, e as _t, c as Se, g as Ke, f as vt, d as fe } from "./menu-Qw1eGtzq.js";
7
+ import { u as wt } from "./login-afGmER0u.js";
8
+ import { S as be } from "./index-BHtNKL1L.js";
9
+ import { u as Ie } from "./modelComp-y7HaQuVQ.js";
10
+ import { _ as Ct, a as De, d as nt, s as jt } from "./index-CdV-dIPz.js";
11
+ import { u as He, a as Nt, g as Oe, b as kt, l as Bt } from "./index-_X1hnSQ5.js";
12
+ import { _ as bt } from "./index.vue_vue_type_script_setup_true_lang-DdxkZBiO.js";
13
+ import lt from "./threeModel-DqysDeFt.js";
14
+ import { u as It } from "./index-ofTuAgx1.js";
15
+ import "vue-router";
16
+ import { a as Ut } from "./array-wJSGLzMi.js";
17
+ import { c as Et, b as Lt } from "./index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-Cwp9-01V.js";
18
+ function Kt(S, le, t, T, N, Z) {
19
+ const u = R("svg-icon"), ee = R("ssMenu");
20
+ return h(), L(ee, {
21
+ mode: S.mode,
22
+ menuList: S.renderMenuList,
23
+ onClickMenu: S.clickMenu,
24
+ onOpenMenu: S.openMenu,
25
+ onCloseMenu: S.closeMenu
26
+ }, {
27
+ title: s(({ menu: A }) => [
28
+ o(u, {
29
+ name: A.icon ?? "Fold",
30
+ style: { width: "clamp(16px, 1.25rem, 20px)", height: "clamp(16px, 1.25rem, 20px)", "margin-right": "8px" }
31
+ }, null, 8, ["name"]),
32
+ B("span", null, ue(A.title ?? ""), 1)
33
+ ]),
34
+ _: 1
35
+ }, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
36
+ }
37
+ const Ft = /* @__PURE__ */ Te(Mt, [["render", Kt], ["__scopeId", "data-v-5c2d7ed2"]]), Ot = { class: "bread-content" }, zt = ["onClick"], Gt = {
38
+ key: 0,
39
+ class: "split-title"
40
+ }, Xt = {
41
+ __name: "index",
42
+ props: {
43
+ breadArray: {
44
+ type: Array,
45
+ default: () => []
46
+ }
47
+ },
48
+ emits: ["click"],
49
+ setup(S, { emit: le }) {
50
+ const t = S, T = y([]), N = le;
51
+ At(() => {
52
+ T.value = t == null ? void 0 : t.breadArray;
53
+ }), Y(
54
+ () => t == null ? void 0 : t.breadArray,
55
+ () => {
56
+ T.value = t == null ? void 0 : t.breadArray;
57
+ },
58
+ { deep: !0, immediate: !0 }
59
+ );
60
+ const Z = (u) => {
61
+ N("click", u);
62
+ };
63
+ return (u, ee) => (h(), $("div", Ot, [
64
+ (h(!0), $(Ae, null, ze(T.value, (A, I) => {
65
+ var ae;
66
+ return h(), $("div", {
67
+ key: I,
68
+ class: "bread-item"
69
+ }, [
70
+ B("div", {
71
+ class: "bread-title",
72
+ onClick: (ge) => Z(A),
73
+ style: xt({ opacity: ((ae = T.value) == null ? void 0 : ae.length) - 1 === I ? "0.7" : "1" })
74
+ }, ue(A.value), 13, zt),
75
+ I !== T.value.length - 1 && Array.isArray(T.value) ? (h(), $("div", Gt, ue("/"))) : q("", !0)
76
+ ]);
77
+ }), 128))
78
+ ]));
79
+ }
80
+ }, Tt = /* @__PURE__ */ Te(Xt, [["__scopeId", "data-v-ded7e2bd"]]), qt = { class: "structure-buttons" }, Ht = { class: "structure-paths" }, Jt = { class: "client-header-user" }, Wt = { class: "model-select" }, Qt = { class: "model-show" }, Yt = { class: "model-fill" }, Zt = { class: "client-header-menu" }, ea = { class: "client-header-user" }, ta = { class: "drop-menu" }, aa = {
81
+ class: "client-main-operate",
82
+ "element-loading-text": "正在加载页面数据..."
83
+ }, oa = {
84
+ key: 0,
85
+ class: "item-view-group"
86
+ }, na = /* @__PURE__ */ st({
87
+ __name: "index2",
88
+ props: {
89
+ windowConfig: {
90
+ type: Object,
91
+ default: () => {
92
+ }
93
+ },
94
+ showButton: {
95
+ type: Boolean,
96
+ default: !0
97
+ }
98
+ },
99
+ setup(S) {
100
+ const le = He(ne), { selectTitle: t } = oe(le), T = wt(), { loginUserInfo: N } = oe(T), Z = Ie(ne), { isEdit: u, routeToChildPath: ee } = oe(Z), A = Ne(ne), { importLoading: I, activeAsideMenu: ae, contentLoading: ge } = oe(A), b = y(""), H = Ve(() => ae.value.isRouter), J = () => {
101
+ sessionStorage.clear(), window.location.reload();
102
+ }, W = async () => {
103
+ var f, U, de, pe;
104
+ A.setImportLoading(!0);
105
+ const x = await Ke({
106
+ key: {
107
+ systemKey: sessionStorage.getItem("systemKey")
108
+ }
109
+ });
110
+ if (((f = x == null ? void 0 : x.data) == null ? void 0 : f.code) === 200) {
111
+ let se = (pe = (de = (U = x == null ? void 0 : x.data) == null ? void 0 : U.result) == null ? void 0 : de.map((E) => {
112
+ var ye;
113
+ if (((ye = E == null ? void 0 : E.key) == null ? void 0 : ye.layer) !== "superAdmin")
114
+ return E == null ? void 0 : E.id;
115
+ })) == null ? void 0 : pe.filter((E) => E);
116
+ await vt({
117
+ ids: se
118
+ }), A.setRawMenus([]);
119
+ }
120
+ A.setImportLoading(!1);
121
+ }, ce = () => {
122
+ A.setActiveMenuPath(ee.value), Z.setRouteToChildPath("");
123
+ };
124
+ return (x, f) => {
125
+ const U = R("el-button"), de = R("el-avatar"), pe = R("el-header"), se = R("el-container"), E = R("el-icon"), ye = R("el-input"), v = R("el-aside"), G = R("router-view"), Q = R("el-main"), V = it("loading");
126
+ return h(), $(Ae, null, [
127
+ Be(o(se, { class: "client-container" }, {
128
+ default: s(() => [
129
+ o(pe, { class: "client-structure-header" }, {
130
+ default: s(() => {
131
+ var F;
132
+ return [
133
+ B("div", qt, [
134
+ o(U, {
135
+ id: "transparentBgButton",
136
+ onClick: l(ct)
137
+ }, {
138
+ default: s(() => f[2] || (f[2] = [
139
+ te(" 返回页面 ")
140
+ ])),
141
+ _: 1,
142
+ __: [2]
143
+ }, 8, ["onClick"]),
144
+ o(U, {
145
+ id: "transparentBgButton",
146
+ onClick: f[0] || (f[0] = (e) => {
147
+ var K, j;
148
+ return l(dt)((j = (K = l(t)) == null ? void 0 : K.map((me) => me.value)) == null ? void 0 : j.join("/"));
149
+ })
150
+ }, {
151
+ icon: s(() => [
152
+ o(be, { name: "Store" })
153
+ ]),
154
+ default: s(() => [
155
+ f[3] || (f[3] = te(" 保存页面 "))
156
+ ]),
157
+ _: 1,
158
+ __: [3]
159
+ })
160
+ ]),
161
+ B("div", Ht, [
162
+ o(Tt, {
163
+ breadArray: l(t),
164
+ onClick: l(pt)
165
+ }, null, 8, ["breadArray", "onClick"])
166
+ ]),
167
+ B("div", Jt, [
168
+ Fe(x.$slots, "default", {}, void 0, !0),
169
+ o(de, {
170
+ size: 35,
171
+ src: (F = l(N)) == null ? void 0 : F.avatarUrl
172
+ }, {
173
+ default: s(() => {
174
+ var e;
175
+ return [
176
+ te(ue(((e = l(N)) == null ? void 0 : e.account) ?? "未知"), 1)
177
+ ];
178
+ }),
179
+ _: 1
180
+ }, 8, ["src"])
181
+ ])
182
+ ];
183
+ }),
184
+ _: 3
185
+ }),
186
+ l(u) === "edit" ? (h(), L(se, {
187
+ key: 0,
188
+ class: "model-operate",
189
+ style: { "margin-top": "10px", height: "0px" }
190
+ }, {
191
+ default: s(() => [
192
+ B("div", Wt, [
193
+ o(Ge)
194
+ ]),
195
+ B("div", Qt, [
196
+ o(Xe)
197
+ ]),
198
+ B("div", Yt, [
199
+ o(qe)
200
+ ])
201
+ ]),
202
+ _: 1
203
+ })) : q("", !0)
204
+ ]),
205
+ _: 3
206
+ }, 512), [
207
+ [je, l(u) === "edit"]
208
+ ]),
209
+ Be((h(), L(se, {
210
+ class: "client-container",
211
+ "element-loading-text": "正在加载页面数据..."
212
+ }, {
213
+ default: s(() => [
214
+ o(pe, { class: "client-header" }, {
215
+ default: s(() => [
216
+ f[6] || (f[6] = B("div", { class: "client-header-logo" }, " ISIP ", -1)),
217
+ B("div", Zt, [
218
+ o(Ft, { mode: "horizontal" })
219
+ ]),
220
+ B("div", ea, [
221
+ o(ye, {
222
+ modelValue: b.value,
223
+ "onUpdate:modelValue": f[1] || (f[1] = (F) => b.value = F),
224
+ clearable: "",
225
+ placeholder: "搜索",
226
+ style: { width: "130px" }
227
+ }, {
228
+ prefix: s(() => [
229
+ o(E, { class: "el-input__icon" }, {
230
+ default: s(() => [
231
+ o(l(_t))
232
+ ]),
233
+ _: 1
234
+ })
235
+ ]),
236
+ _: 1
237
+ }, 8, ["modelValue"]),
238
+ S.showButton ? (h(), L(U, {
239
+ key: 0,
240
+ id: "transparentBgButton",
241
+ onClick: l(Pt)
242
+ }, {
243
+ icon: s(() => [
244
+ o(be, { name: "App" })
245
+ ]),
246
+ default: s(() => [
247
+ f[4] || (f[4] = te(" 生成APP "))
248
+ ]),
249
+ _: 1,
250
+ __: [4]
251
+ }, 8, ["onClick"])) : q("", !0),
252
+ S.showButton && l(u) === "view" ? (h(), L(U, {
253
+ key: 1,
254
+ id: "transparentBgButton",
255
+ onClick: l(mt)
256
+ }, {
257
+ icon: s(() => [
258
+ o(be, { name: "write" })
259
+ ]),
260
+ default: s(() => [
261
+ f[5] || (f[5] = te(" 修改布局 "))
262
+ ]),
263
+ _: 1,
264
+ __: [5]
265
+ }, 8, ["onClick"])) : q("", !0),
266
+ Fe(x.$slots, "default", {}, void 0, !0),
267
+ o(Ct, null, {
268
+ dropTitle: s(() => {
269
+ var F;
270
+ return [
271
+ o(bt, {
272
+ size: "35",
273
+ avatarUrl: (F = l(N)) == null ? void 0 : F.avatarUrl,
274
+ showCropper: !1,
275
+ banClick: !0
276
+ }, {
277
+ avatarDefault: s(() => {
278
+ var e;
279
+ return [
280
+ te(ue(((e = l(N)) == null ? void 0 : e.account) ?? "未知"), 1)
281
+ ];
282
+ }),
283
+ _: 1
284
+ }, 8, ["avatarUrl"])
285
+ ];
286
+ }),
287
+ dropMenu: s(() => [
288
+ B("div", ta, [
289
+ o(De, {
290
+ emptyColor: !0,
291
+ class: "menu-button",
292
+ onClickTrigger: W,
293
+ modelValue: "清空数据",
294
+ buttonType: ""
295
+ }),
296
+ o(De, {
297
+ emptyColor: !0,
298
+ class: "menu-button",
299
+ onClickTrigger: J,
300
+ modelValue: "退出登录",
301
+ buttonType: ""
302
+ })
303
+ ])
304
+ ]),
305
+ _: 1
306
+ })
307
+ ])
308
+ ]),
309
+ _: 3,
310
+ __: [6]
311
+ }),
312
+ o(se, { class: "client-body" }, {
313
+ default: s(() => [
314
+ o(Q, { class: "client-main" }, {
315
+ default: s(() => {
316
+ var F;
317
+ return [
318
+ o(v, { class: "client-aside" }, {
319
+ default: s(() => [
320
+ o(ut, { mode: "vertical" })
321
+ ]),
322
+ _: 1
323
+ }),
324
+ Be((h(), $("div", aa, [
325
+ H.value ? (h(), L(G, { key: 0 })) : q("", !0),
326
+ l(ee) !== "" ? (h(), L(De, {
327
+ key: 1,
328
+ class: "calculator-content back-content",
329
+ onClickTrigger: ce,
330
+ modelValue: "返回"
331
+ })) : q("", !0),
332
+ H.value ? q("", !0) : (h(!0), $(Ae, { key: 2 }, ze((F = l(Se)(l(re))) == null ? void 0 : F.filter((e) => e.comp !== "FormTop"), (e, K) => {
333
+ var j;
334
+ return h(), $("div", {
335
+ class: "item-view-content",
336
+ key: K
337
+ }, [
338
+ ((j = e == null ? void 0 : e.comp) == null ? void 0 : j.toUpperCase()) !== "TABLE" && e.name ? (h(), $("div", oa, ue(e.name), 1)) : q("", !0),
339
+ (h(), L(rt(l(ht)(e.comp)), {
340
+ compName: e.name,
341
+ itemData: e == null ? void 0 : e.compData,
342
+ childItemData: e == null ? void 0 : e.itemChildData,
343
+ key: (e == null ? void 0 : e.id) ?? K,
344
+ onChange: l(yt),
345
+ index: (e == null ? void 0 : e.id) ?? K,
346
+ onContentChange: l(gt),
347
+ onPageChange: l(ft)
348
+ }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
349
+ ]);
350
+ }), 128))
351
+ ])), [
352
+ [V, l(ge)]
353
+ ])
354
+ ];
355
+ }),
356
+ _: 1
357
+ })
358
+ ]),
359
+ _: 1
360
+ })
361
+ ]),
362
+ _: 3
363
+ })), [
364
+ [je, l(u) === "view"],
365
+ [V, l(I)]
366
+ ])
367
+ ], 64);
368
+ };
369
+ }
370
+ }), la = /* @__PURE__ */ Te(na, [["__scopeId", "data-v-ac977f64"]]), Ee = [
371
+ {
372
+ key: "FitCurve_Eleven",
373
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",
374
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35326658522693",
375
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources"
376
+ },
377
+ {
378
+ key: "MakeShape",
379
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018179530309",
380
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018179530309",
381
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources"
382
+ },
383
+ {
384
+ key: "FillEmpty",
385
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018289382469",
386
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018289382469",
387
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources"
388
+ },
389
+ {
390
+ key: "ToolPathFakeFast",
391
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35484063607109",
392
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35484063607109",
393
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources"
394
+ },
395
+ {
396
+ key: "FiveAxisCalculator",
397
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35237389477957",
398
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35237389477957",
399
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources"
400
+ },
401
+ {
402
+ key: "DetectionAlgorithm",
403
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35459977498949",
404
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35459977498949",
405
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources"
406
+ },
407
+ {
408
+ key: "FeatureSelectionAlgorithm_FFS",
409
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35277984187973",
410
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35277984187973",
411
+ download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources"
412
+ },
413
+ {
414
+ key: "AIParameterOptimization",
415
+ value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35788169784389",
416
+ resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35788169784389"
417
+ }
418
+ ], Le = [
419
+ {
420
+ key: "型线生成",
421
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"
422
+ },
423
+ {
424
+ key: "曲面生成",
425
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"
426
+ },
427
+ {
428
+ key: "叶片生成",
429
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"
430
+ },
431
+ {
432
+ key: "轨迹规划",
433
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"
434
+ },
435
+ {
436
+ key: "加工规划",
437
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"
438
+ },
439
+ {
440
+ key: "产品检测",
441
+ 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"
442
+ },
443
+ {
444
+ key: "参数筛选训练方法",
445
+ value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
446
+ }
447
+ // {
448
+ // key: "参数筛选推理",
449
+ // value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
450
+ // }
451
+ ], sa = { class: "structure-buttons" }, ia = { class: "structure-paths" }, ra = { class: "client-header-user" }, ua = { class: "model-select" }, ca = { class: "model-show" }, da = { class: "model-fill" }, pa = { class: "client-header-menu" }, ma = { class: "client-header-user" }, ha = { class: "drop-menu" }, fa = {
452
+ class: "client-main-operate",
453
+ "element-loading-text": "正在加载页面数据..."
454
+ }, ga = {
455
+ key: 0,
456
+ class: "item-view-group"
457
+ }, ya = /* @__PURE__ */ st({
458
+ __name: "index2",
459
+ props: {
460
+ windowConfig: {
461
+ type: Object,
462
+ default: () => {
463
+ }
464
+ },
465
+ showButton: {
466
+ type: Boolean,
467
+ default: !0
468
+ }
469
+ },
470
+ emits: ["showChild", "buildContent"],
471
+ setup(S, { emit: le }) {
472
+ const t = He(ne), T = y(!1);
473
+ y(0), y(!1);
474
+ const { selectTitle: N } = oe(t), Z = y(!1), u = y(!1);
475
+ y(!1);
476
+ const ee = Nt(ne), A = y(!1), { tableShowThree: I } = oe(ee), ae = y(), ge = wt(), { loginUserInfo: b } = oe(ge);
477
+ y(null);
478
+ const H = Ie(ne), { isEdit: J } = oe(H), W = Ne(ne), ce = It(ne), { objUrl: x, blobUrls: f } = oe(ce), U = y(null);
479
+ y(!1);
480
+ const de = y(), pe = y(!0);
481
+ y(!1);
482
+ const { importLoading: se, activeMenuPath: E, activeTopMenuPath: ye, platName: v, activeAsideMenu: G, contentLoading: Q } = oe(W), V = y(!1), F = y(!1), e = y(!1), K = le, j = () => {
483
+ K("buildContent");
484
+ };
485
+ Y(() => E.value, async (a) => {
486
+ a && (e.value = !0), a === "弯管仿真加工管理/仿真动画生成" ? V.value = !0 : V.value = !1, a === "弯管仿真加工管理/程序输出" ? F.value = !0 : F.value = !1, Le != null && Le.find((i) => {
487
+ var n;
488
+ return (i == null ? void 0 : i.key) === ((n = a == null ? void 0 : a.split("/")) == null ? void 0 : n[(a == null ? void 0 : a.split("/").length) - 1]);
489
+ }) ? A.value = !0 : A.value = !1;
490
+ }, { immediate: !0 });
491
+ const me = (a) => {
492
+ if ((a == null ? void 0 : a.type) === "table") {
493
+ let i = Object.values(a == null ? void 0 : a.row), n = i == null ? void 0 : i.find((c) => typeof c == "string" && ((c == null ? void 0 : c.includes(".urdf")) || (c == null ? void 0 : c.includes(".obj"))));
494
+ n && (ae.value = {
495
+ url: n,
496
+ row: a == null ? void 0 : a.row
497
+ }, K("showChild", {
498
+ url: n,
499
+ row: a == null ? void 0 : a.row
500
+ }));
501
+ }
502
+ }, ie = () => {
503
+ sessionStorage.clear(), window.location.reload();
504
+ }, xe = async () => {
505
+ var i, n, c, k;
506
+ W.setImportLoading(!0);
507
+ const a = await Ke({
508
+ key: {
509
+ systemKey: sessionStorage.getItem("systemKey")
510
+ }
511
+ });
512
+ if (((i = a == null ? void 0 : a.data) == null ? void 0 : i.code) === 200) {
513
+ let r = (k = (c = (n = a == null ? void 0 : a.data) == null ? void 0 : n.result) == null ? void 0 : c.map((m) => {
514
+ var p;
515
+ if (((p = m == null ? void 0 : m.key) == null ? void 0 : p.layer) !== "superAdmin")
516
+ return m == null ? void 0 : m.id;
517
+ })) == null ? void 0 : k.filter((m) => m);
518
+ await vt({
519
+ ids: r
520
+ }), W.setRawMenus([]);
521
+ }
522
+ W.setImportLoading(!1);
523
+ }, Me = async (a) => {
524
+ var c, k, r, m, p, M, C;
525
+ const i = (c = a == null ? void 0 : a.split("/")) == null ? void 0 : c[0], n = await Ke({
526
+ key: {
527
+ type: "mainEquip",
528
+ systemKey: sessionStorage.getItem("systemKey"),
529
+ pageKey: i
530
+ }
531
+ });
532
+ return ((k = n == null ? void 0 : n.data) == null ? void 0 : k.type) === "success" ? ((C = (M = (p = (m = (r = n == null ? void 0 : n.data) == null ? void 0 : r.result) == null ? void 0 : m[0]) == null ? void 0 : p.value) == null ? void 0 : M.tableData) == null ? void 0 : C.隐藏三维显示) !== !0 : !0;
533
+ };
534
+ Y(
535
+ () => re.value,
536
+ () => {
537
+ var a, i, n, c, k;
538
+ if (((a = re.value) == null ? void 0 : a.length) === 2 && ((i = re.value) != null && i.find((r) => (r == null ? void 0 : r.name) === "输入")) && ((n = re.value) != null && n.find((r) => (r == null ? void 0 : r.name) === "输出"))) {
539
+ const r = (c = re.value) == null ? void 0 : c.find((m) => (m == null ? void 0 : m.name) === "输出");
540
+ u.value = ((k = r == null ? void 0 : r.comp) == null ? void 0 : k.toUpperCase()) === "FORM", Z.value = !0;
541
+ } else
542
+ Z.value = !1, u.value = !1;
543
+ },
544
+ { deep: !0, immediate: !0 }
545
+ ), Y(
546
+ () => E.value,
547
+ async () => {
548
+ E.value && (pe.value = await Me(E.value));
549
+ },
550
+ { deep: !0, immediate: !0 }
551
+ ), Y(
552
+ () => [x.value, U.value],
553
+ () => {
554
+ var a;
555
+ ((a = x.value) == null ? void 0 : a.length) > 0 && U.value && U.value.addModelsFromUrls(x.value);
556
+ },
557
+ { immediate: !0, deep: !0 }
558
+ ), Y(
559
+ () => [f == null ? void 0 : f.value],
560
+ async () => {
561
+ var a, i, n, c, k;
562
+ if (f != null && f.value && ((a = f == null ? void 0 : f.value) == null ? void 0 : a.length) > 0 && !A.value && !((i = re.value) != null && i.find((r) => (r == null ? void 0 : r.name) === "输入") && ((n = re.value) != null && n.find((r) => (r == null ? void 0 : r.name) === "输出")))) {
563
+ T.value = !0;
564
+ let r = [];
565
+ const m = await ((c = Se(f == null ? void 0 : f.value)) == null ? void 0 : c.map(async (p) => {
566
+ var _, w, g, X, O, ve, $e, Je, We, Qe;
567
+ let M, C, d;
568
+ p != null && p.blob.includes("undefined") ? d = (w = (_ = p == null ? void 0 : p.blob) == null ? void 0 : _.split("undefined,")) == null ? void 0 : w[1] : d = p == null ? void 0 : p.blob;
569
+ let P = d == null ? void 0 : d.split(",");
570
+ if ((P == null ? void 0 : P.length) > 1) {
571
+ let we = await (P == null ? void 0 : P.map(async (z) => {
572
+ var he, Ye, Ze, et, tt, at;
573
+ M = await fe.get(z, {
574
+ responseType: "blob",
575
+ headers: {
576
+ "Content-Type": "application/json"
577
+ }
578
+ });
579
+ let ke = [];
580
+ if (((he = p == null ? void 0 : p.mtlBlobs) == null ? void 0 : he.length) > 0) {
581
+ let St = await ((Ye = p == null ? void 0 : p.mtlBlobs) == null ? void 0 : Ye.map(async (Dt) => {
582
+ let ot = await fe.get(Dt, {
583
+ responseType: "blob",
584
+ headers: {
585
+ "Content-Type": "application/json"
586
+ }
587
+ });
588
+ return ke.push(new Blob([ot.data], {
589
+ type: "application/octet-stream;charset=UTF-8"
590
+ })), ot;
591
+ }));
592
+ await Promise.all(St);
593
+ }
594
+ return ((et = z == null ? void 0 : z.split(".")) == null ? void 0 : et[((Ze = z == null ? void 0 : z.split(".")) == null ? void 0 : Ze.length) - 1]) !== "undefined" && r.push({
595
+ suffix: "." + ((at = z == null ? void 0 : z.split(".")) == null ? void 0 : at[((tt = z == null ? void 0 : z.split(".")) == null ? void 0 : tt.length) - 1]),
596
+ blob: new Blob([M.data], {
597
+ type: "application/octet-stream;charset=UTF-8"
598
+ }),
599
+ mtlBlobs: ke
600
+ }), M;
601
+ }));
602
+ await Promise.all(we);
603
+ } else if (!(d != null && d.includes("https://")) && !(d != null && d.includes("http://"))) {
604
+ M = await nt({
605
+ url: d
606
+ });
607
+ let we = [];
608
+ if (((g = p == null ? void 0 : p.mtlBlobs) == null ? void 0 : g.length) > 0) {
609
+ let z = await ((X = p == null ? void 0 : p.mtlBlobs) == null ? void 0 : X.map(async (ke) => {
610
+ let he = await nt({
611
+ url: ke
612
+ });
613
+ return we.push(new Blob([he.data], {
614
+ type: "application/octet-stream;charset=UTF-8"
615
+ })), he;
616
+ }));
617
+ await Promise.all(z);
618
+ }
619
+ C = {
620
+ suffix: "." + ((ve = d == null ? void 0 : d.split(".")) == null ? void 0 : ve[((O = d == null ? void 0 : d.split(".")) == null ? void 0 : O.length) - 1]),
621
+ blob: new Blob([M.data], {
622
+ type: "application/octet-stream;charset=UTF-8"
623
+ }),
624
+ mtlBlobs: we
625
+ };
626
+ } else {
627
+ M = await fe.get(d, {
628
+ responseType: "blob",
629
+ headers: {
630
+ "Content-Type": "application/json"
631
+ }
632
+ });
633
+ let we = [];
634
+ if ((($e = p == null ? void 0 : p.mtlBlobs) == null ? void 0 : $e.length) > 0) {
635
+ let z = await ((Je = p == null ? void 0 : p.mtlBlobs) == null ? void 0 : Je.map(async (ke) => {
636
+ let he = await fe.get(ke, {
637
+ responseType: "blob",
638
+ headers: {
639
+ "Content-Type": "application/json"
640
+ }
641
+ });
642
+ return we.push(new Blob([he.data], {
643
+ type: "application/octet-stream;charset=UTF-8"
644
+ })), he;
645
+ }));
646
+ await Promise.all(z);
647
+ }
648
+ C = {
649
+ suffix: "." + ((Qe = d == null ? void 0 : d.split(".")) == null ? void 0 : Qe[((We = d == null ? void 0 : d.split(".")) == null ? void 0 : We.length) - 1]),
650
+ blob: new Blob([M.data], {
651
+ type: "application/octet-stream;charset=UTF-8"
652
+ }),
653
+ mtlBlobs: we
654
+ };
655
+ }
656
+ C && r.push(C);
657
+ }));
658
+ await Promise.all(m), (r == null ? void 0 : r.length) !== 0 && ((k = U.value) == null || k.loadModelByDefaultPath(r));
659
+ }
660
+ },
661
+ { immediate: !0, deep: !0 }
662
+ );
663
+ const Pe = () => {
664
+ T.value = !1, U.value = null;
665
+ };
666
+ Y(
667
+ () => I.value,
668
+ async () => {
669
+ var i, n, c, k;
670
+ if (I.value !== "" && I.value) {
671
+ let r = (i = E.value) == null ? void 0 : i.split("/"), m = r[(r == null ? void 0 : r.length) - 2];
672
+ const M = (((n = Ee == null ? void 0 : Ee.find((P) => (P == null ? void 0 : P.key) === m)) == null ? void 0 : n.download) ?? "") + "/" + I.value, C = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), d = await fe.post(M, null, {
673
+ responseType: "blob",
674
+ // 必须设置
675
+ headers: {
676
+ Authorization: C,
677
+ baseURL: "http://139.196.154.85:20025",
678
+ "Content-Type": "application/json"
679
+ }
680
+ });
681
+ var a = new Blob([d.data], {
682
+ type: "application/octet-stream;charset=UTF-8"
683
+ });
684
+ "" + ((k = (c = I.value) == null ? void 0 : c.split(".")) == null ? void 0 : k[1]);
685
+ }
686
+ },
687
+ { deep: !0, immediate: !0 }
688
+ );
689
+ const Ce = y("");
690
+ y("open"), y("open"), y(!1), Ve(() => re.value);
691
+ const Re = Ve(() => G.value.isRouter), D = (a) => {
692
+ let i = Se(a), n = [], c = [];
693
+ return i == null || i.forEach((k, r) => {
694
+ r === (a == null ? void 0 : a.length) - 1 ? (c.push(k), n.push(c)) : ((c == null ? void 0 : c.length) !== 0 && k.includes(".obj") && (n.push(c), c = []), c.push(k));
695
+ }), n;
696
+ }, _e = async () => {
697
+ let a = {};
698
+ const i = await Oe("弯管仿真加工管理/仿真动画生成", sessionStorage.getItem("systemKey"), "");
699
+ i == null || i.forEach((n) => {
700
+ var c, k, r, m, p, M;
701
+ if ((n == null ? void 0 : n.comp) === "Table") {
702
+ let C = [], d = (r = (k = (c = n == null ? void 0 : n.compData) == null ? void 0 : c.find((_) => (_ == null ? void 0 : _.key) === "header")) == null ? void 0 : k.contents) == null ? void 0 : r.map((_) => _ == null ? void 0 : _.label), P = (M = (p = (m = n == null ? void 0 : n.compData) == null ? void 0 : m.find((_) => (_ == null ? void 0 : _.key) === "tableContents")) == null ? void 0 : p.contents) == null ? void 0 : M.map((_) => (_ = _ == null ? void 0 : _.filter((w) => !(w != null && w.id)), _));
703
+ P == null || P.forEach((_) => {
704
+ C.push(kt(_, d == null ? void 0 : d.filter((w) => w !== "操作")));
705
+ }), a[n.name] = C, a[n.name + "Content"] = n;
706
+ }
707
+ }), de.value = a;
708
+ }, Ue = y(!1), Rt = async () => {
709
+ var a, i;
710
+ if (Ue.value = !0, ae.value) {
711
+ const n = ae.value;
712
+ let c = [];
713
+ if (typeof (n == null ? void 0 : n.url) == "string") {
714
+ let k = (a = n == null ? void 0 : n.url) == null ? void 0 : a.split(","), r = (i = D(k)) == null ? void 0 : i.map(async (m) => {
715
+ var p, M;
716
+ if ((m == null ? void 0 : m.length) === 1) {
717
+ let C = m == null ? void 0 : m.map(async (d) => {
718
+ var g, X;
719
+ let P = await fe.get(d, {
720
+ responseType: "blob",
721
+ headers: {
722
+ "Content-Type": "application/json"
723
+ }
724
+ });
725
+ const _ = new Blob([P.data], {
726
+ type: "application/octet-stream;charset=UTF-8"
727
+ });
728
+ let w = {
729
+ suffix: "." + ((X = d == null ? void 0 : d.split(".")) == null ? void 0 : X[((g = d == null ? void 0 : d.split(".")) == null ? void 0 : g.length) - 1]),
730
+ blob: _,
731
+ mtlBlobs: []
732
+ };
733
+ return c.push(w), w;
734
+ });
735
+ return await Promise.all(C), C;
736
+ } else {
737
+ let C = m == null ? void 0 : m.find((O) => O == null ? void 0 : O.includes(".obj")), d = await fe.get(C, {
738
+ responseType: "blob",
739
+ headers: {
740
+ "Content-Type": "application/json"
741
+ }
742
+ });
743
+ const P = new Blob([d.data], {
744
+ type: "application/octet-stream;charset=UTF-8"
745
+ });
746
+ let _ = m == null ? void 0 : m.filter((O) => O == null ? void 0 : O.includes(".mtl")), w = [], g = _ == null ? void 0 : _.map(async (O) => {
747
+ let ve = await fe.get(C, {
748
+ responseType: "blob",
749
+ headers: {
750
+ "Content-Type": "application/json"
751
+ }
752
+ });
753
+ const $e = new Blob([ve.data], {
754
+ type: "application/octet-stream;charset=UTF-8"
755
+ });
756
+ return w.push($e), ve;
757
+ });
758
+ await Promise.all(g);
759
+ let X = {
760
+ suffix: "." + ((M = C == null ? void 0 : C.split(".")) == null ? void 0 : M[((p = C == null ? void 0 : C.split(".")) == null ? void 0 : p.length) - 1]),
761
+ blob: P,
762
+ mtlBlobs: w
763
+ };
764
+ return c.push(X), X;
765
+ }
766
+ });
767
+ await Promise.all(r);
768
+ }
769
+ U.value.loadModelByDefaultPath(c);
770
+ }
771
+ };
772
+ return (a, i) => {
773
+ const n = R("el-dialog"), c = R("el-button"), k = R("el-avatar"), r = R("el-header"), m = R("el-container"), p = R("el-icon"), M = R("el-input"), C = R("el-aside"), d = R("router-view"), P = R("el-main"), _ = it("loading");
774
+ return h(), $(Ae, null, [
775
+ o(n, {
776
+ modelValue: Ue.value,
777
+ "onUpdate:modelValue": i[0] || (i[0] = (w) => Ue.value = w),
778
+ style: { height: "700px", width: "1800px" }
779
+ }, {
780
+ default: s(() => [
781
+ o(lt, {
782
+ ref_key: "threeModelRef",
783
+ ref: U,
784
+ onGetAnimationData: _e,
785
+ animationData: de.value
786
+ }, null, 8, ["animationData"])
787
+ ]),
788
+ _: 1
789
+ }, 8, ["modelValue"]),
790
+ Be(o(m, { class: "client-container" }, {
791
+ default: s(() => [
792
+ o(r, { class: "client-structure-header" }, {
793
+ default: s(() => {
794
+ var w;
795
+ return [
796
+ B("div", sa, [
797
+ o(c, {
798
+ id: "transparentBgButton",
799
+ onClick: l(ct)
800
+ }, {
801
+ default: s(() => i[3] || (i[3] = [
802
+ te(" 返回页面 ")
803
+ ])),
804
+ _: 1,
805
+ __: [3]
806
+ }, 8, ["onClick"]),
807
+ o(c, {
808
+ id: "transparentBgButton",
809
+ onClick: i[1] || (i[1] = (g) => {
810
+ var X, O;
811
+ return l(dt)((O = (X = l(N)) == null ? void 0 : X.map((ve) => ve.value)) == null ? void 0 : O.join("/"));
812
+ })
813
+ }, {
814
+ icon: s(() => [
815
+ o(be, { name: "Store" })
816
+ ]),
817
+ default: s(() => [
818
+ i[4] || (i[4] = te(" 保存页面 "))
819
+ ]),
820
+ _: 1,
821
+ __: [4]
822
+ })
823
+ ]),
824
+ B("div", ia, [
825
+ o(Tt, {
826
+ breadArray: l(N),
827
+ onClick: l(pt)
828
+ }, null, 8, ["breadArray", "onClick"])
829
+ ]),
830
+ B("div", ra, [
831
+ Fe(a.$slots, "default", {}, void 0, !0),
832
+ o(k, {
833
+ size: 35,
834
+ src: (w = l(b)) == null ? void 0 : w.avatarUrl
835
+ }, {
836
+ default: s(() => {
837
+ var g;
838
+ return [
839
+ te(ue(((g = l(b)) == null ? void 0 : g.account) ?? "未知"), 1)
840
+ ];
841
+ }),
842
+ _: 1
843
+ }, 8, ["src"])
844
+ ])
845
+ ];
846
+ }),
847
+ _: 3
848
+ }),
849
+ l(J) === "edit" ? (h(), L(m, {
850
+ key: 0,
851
+ class: "model-operate",
852
+ style: { "margin-top": "10px", height: "0px" }
853
+ }, {
854
+ default: s(() => [
855
+ B("div", ua, [
856
+ o(Ge)
857
+ ]),
858
+ B("div", ca, [
859
+ o(Xe)
860
+ ]),
861
+ B("div", da, [
862
+ o(qe)
863
+ ])
864
+ ]),
865
+ _: 1
866
+ })) : q("", !0)
867
+ ]),
868
+ _: 3
869
+ }, 512), [
870
+ [je, l(J) === "edit"]
871
+ ]),
872
+ Be((h(), L(m, {
873
+ class: "client-container",
874
+ "element-loading-text": "正在加载页面数据..."
875
+ }, {
876
+ default: s(() => [
877
+ o(r, { class: "client-header" }, {
878
+ default: s(() => [
879
+ B("div", {
880
+ class: "client-header-logo",
881
+ onClick: Rt
882
+ }, ue(l(v) === "" ? "CPMPIP" : l(v)), 1),
883
+ B("div", pa, [
884
+ o(Ft, { mode: "horizontal" })
885
+ ]),
886
+ B("div", ma, [
887
+ o(M, {
888
+ modelValue: Ce.value,
889
+ "onUpdate:modelValue": i[2] || (i[2] = (w) => Ce.value = w),
890
+ clearable: "",
891
+ placeholder: "搜索",
892
+ style: { width: "130px" }
893
+ }, {
894
+ prefix: s(() => [
895
+ o(p, { class: "el-input__icon" }, {
896
+ default: s(() => [
897
+ o(l(_t))
898
+ ]),
899
+ _: 1
900
+ })
901
+ ]),
902
+ _: 1
903
+ }, 8, ["modelValue"]),
904
+ S.showButton ? (h(), L(c, {
905
+ key: 0,
906
+ id: "transparentBgButton",
907
+ onClick: j
908
+ }, {
909
+ icon: s(() => [
910
+ o(be, { name: "App" })
911
+ ]),
912
+ default: s(() => [
913
+ i[5] || (i[5] = te(" 生成APP "))
914
+ ]),
915
+ _: 1,
916
+ __: [5]
917
+ })) : q("", !0),
918
+ S.showButton && l(J) === "view" ? (h(), L(c, {
919
+ key: 1,
920
+ id: "transparentBgButton",
921
+ onClick: l(mt)
922
+ }, {
923
+ icon: s(() => [
924
+ o(be, { name: "write" })
925
+ ]),
926
+ default: s(() => [
927
+ i[6] || (i[6] = te(" 修改布局 "))
928
+ ]),
929
+ _: 1,
930
+ __: [6]
931
+ }, 8, ["onClick"])) : q("", !0),
932
+ Fe(a.$slots, "default", {}, void 0, !0),
933
+ o(Ct, null, {
934
+ dropTitle: s(() => {
935
+ var w;
936
+ return [
937
+ o(bt, {
938
+ size: "35",
939
+ avatarUrl: (w = l(b)) == null ? void 0 : w.avatarUrl,
940
+ showCropper: !1,
941
+ banClick: !0
942
+ }, {
943
+ avatarDefault: s(() => {
944
+ var g;
945
+ return [
946
+ te(ue(((g = l(b)) == null ? void 0 : g.account) ?? "未知"), 1)
947
+ ];
948
+ }),
949
+ _: 1
950
+ }, 8, ["avatarUrl"])
951
+ ];
952
+ }),
953
+ dropMenu: s(() => [
954
+ B("div", ha, [
955
+ o(De, {
956
+ emptyColor: !0,
957
+ class: "menu-button",
958
+ onClickTrigger: xe,
959
+ modelValue: "清空数据",
960
+ buttonType: ""
961
+ }),
962
+ o(De, {
963
+ emptyColor: !0,
964
+ class: "menu-button",
965
+ onClickTrigger: ie,
966
+ modelValue: "退出登录",
967
+ buttonType: ""
968
+ })
969
+ ])
970
+ ]),
971
+ _: 1
972
+ })
973
+ ])
974
+ ]),
975
+ _: 3
976
+ }),
977
+ o(m, { class: "client-body" }, {
978
+ default: s(() => [
979
+ o(P, { class: "client-main" }, {
980
+ default: s(() => {
981
+ var w;
982
+ return [
983
+ o(C, { class: "client-aside" }, {
984
+ default: s(() => [
985
+ o(ut, { mode: "vertical" })
986
+ ]),
987
+ _: 1
988
+ }),
989
+ Be((h(), $("div", fa, [
990
+ Re.value ? (h(), L(d, { key: 0 })) : (h(!0), $(Ae, { key: 1 }, ze((w = l(Se)(l(re))) == null ? void 0 : w.filter((g) => g.comp !== "FormTop"), (g, X) => {
991
+ var O;
992
+ return h(), $("div", {
993
+ class: "item-view-content",
994
+ key: X
995
+ }, [
996
+ ((O = g == null ? void 0 : g.comp) == null ? void 0 : O.toUpperCase()) !== "TABLE" && g.name ? (h(), $("div", ga, ue(g.name), 1)) : q("", !0),
997
+ (h(), L(rt(l(ht)(g.comp)), {
998
+ compName: g.name,
999
+ itemData: g == null ? void 0 : g.compData,
1000
+ childItemData: g == null ? void 0 : g.itemChildData,
1001
+ key: (g == null ? void 0 : g.id) ?? X,
1002
+ onChange: l(yt),
1003
+ index: (g == null ? void 0 : g.id) ?? X,
1004
+ onContentChange: l(gt),
1005
+ onPageChange: l(ft),
1006
+ onRowClick: me
1007
+ }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
1008
+ ]);
1009
+ }), 128))
1010
+ ])), [
1011
+ [_, l(Q)]
1012
+ ])
1013
+ ];
1014
+ }),
1015
+ _: 1
1016
+ })
1017
+ ]),
1018
+ _: 1
1019
+ })
1020
+ ]),
1021
+ _: 3
1022
+ })), [
1023
+ [je, l(J) === "view"],
1024
+ [_, l(se)]
1025
+ ]),
1026
+ B("div", null, [
1027
+ o(jt, {
1028
+ visible: T.value,
1029
+ onBeforeDestroy: Pe,
1030
+ style: { height: "700px", width: "1000px" }
1031
+ }, {
1032
+ default: s(() => [
1033
+ o(lt, {
1034
+ ref_key: "threeModelRef",
1035
+ ref: U
1036
+ }, null, 512)
1037
+ ]),
1038
+ _: 1
1039
+ }, 8, ["visible"])
1040
+ ])
1041
+ ], 64);
1042
+ };
1043
+ }
1044
+ }), _a = /* @__PURE__ */ Te(ya, [["__scopeId", "data-v-733f404f"]]), va = { class: "system-wrap" }, wa = {
1045
+ __name: "index",
1046
+ props: {
1047
+ windowConfig: {
1048
+ type: Object,
1049
+ default: () => {
1050
+ }
1051
+ },
1052
+ platform: {
1053
+ type: String,
1054
+ default: "browser"
1055
+ },
1056
+ showButton: {
1057
+ type: Boolean,
1058
+ default: !0
1059
+ },
1060
+ content: String,
1061
+ jsonContents: Array
1062
+ },
1063
+ emits: ["buildContent", "showChild"],
1064
+ setup(S, { emit: le }) {
1065
+ const t = Ie(ne), T = He(ne), N = Ne();
1066
+ y(!1);
1067
+ const Z = y(!0), u = S, ee = le, A = (b) => {
1068
+ ee("showChild", b);
1069
+ }, I = Ve(() => {
1070
+ switch (u == null ? void 0 : u.platform) {
1071
+ case "browser":
1072
+ return Lt;
1073
+ case "client":
1074
+ return Et;
1075
+ }
1076
+ }), ae = (b) => {
1077
+ const H = document.documentElement;
1078
+ b == null || b.forEach((J) => {
1079
+ H.style.setProperty(J.name, J.value);
1080
+ });
1081
+ };
1082
+ Y(() => u.platform, (b, H) => {
1083
+ b && ae(I.value);
1084
+ }, { immediate: !0 });
1085
+ const ge = () => {
1086
+ ee("buildContent");
1087
+ };
1088
+ return Y(
1089
+ () => [u == null ? void 0 : u.content, u == null ? void 0 : u.jsonContents],
1090
+ async () => {
1091
+ var J, W, ce, x;
1092
+ if (((J = u == null ? void 0 : u.jsonContents) == null ? void 0 : J.length) > 0) {
1093
+ t.setOriginalData(u == null ? void 0 : u.jsonContents);
1094
+ return;
1095
+ }
1096
+ if (!(u != null && u.content) || ((W = u == null ? void 0 : u.content) == null ? void 0 : W.length) === 0) return;
1097
+ Z.value = !0, N.setImportLoading(!0);
1098
+ let b = [], H = [];
1099
+ T.setSelectTitle([]), T.setSelectIndex(""), T.setSelectMenu(""), (x = (ce = u == null ? void 0 : u.content) == null ? void 0 : ce.filter((f) => f !== "")) == null || x.forEach((f) => {
1100
+ H.push($t(f));
1101
+ }), b = H == null ? void 0 : H[0], await Vt(b), await Bt(), t.setOriginalData(b), N.setImportLoading(!1);
1102
+ },
1103
+ { deep: !0, immediate: !0 }
1104
+ ), (b, H) => (h(), $("div", va, [
1105
+ S.platform === "browser" ? (h(), L(la, {
1106
+ key: 0,
1107
+ showButton: S.showButton
1108
+ }, {
1109
+ default: s(() => [
1110
+ Fe(b.$slots, "default", {}, void 0, !0)
1111
+ ]),
1112
+ _: 3
1113
+ }, 8, ["showButton"])) : (h(), L(_a, {
1114
+ key: 1,
1115
+ windowConfig: S.windowConfig,
1116
+ showButton: S.showButton,
1117
+ onBuildContent: ge,
1118
+ onShowChild: A
1119
+ }, {
1120
+ default: s(() => [
1121
+ Fe(b.$slots, "default", {}, void 0, !0)
1122
+ ]),
1123
+ _: 3
1124
+ }, 8, ["windowConfig", "showButton"]))
1125
+ ]));
1126
+ }
1127
+ }, Ca = /* @__PURE__ */ Te(wa, [["__scopeId", "data-v-5e89b0de"]]), ka = { class: "add-model-content" }, Ba = {
1128
+ key: 0,
1129
+ class: "model-operate"
1130
+ }, ba = { class: "model-select" }, Fa = { class: "model-fill" }, Ta = {
1131
+ key: 1,
1132
+ class: "model-view"
1133
+ }, Ra = {
1134
+ __name: "index",
1135
+ props: {
1136
+ mode: {
1137
+ type: String,
1138
+ default: "view"
1139
+ },
1140
+ content: {
1141
+ type: String,
1142
+ default: ""
1143
+ },
1144
+ jsonContents: {
1145
+ type: Array,
1146
+ default: () => []
1147
+ },
1148
+ showButton: {
1149
+ type: Boolean,
1150
+ default: !0
1151
+ },
1152
+ pathContent: {
1153
+ type: String,
1154
+ default: ""
1155
+ },
1156
+ pageKey: {
1157
+ type: String,
1158
+ default: ""
1159
+ }
1160
+ },
1161
+ emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
1162
+ setup(S, { emit: le }) {
1163
+ const t = S, T = le, N = y([]), Z = y(0), u = y([]), ee = y([]), A = y(0), I = Ie(ne), ae = Ne(ne), { itemData: ge, originalData: b } = oe(I), { activeMenuPath: H, platform: J } = oe(ae), W = y(null), ce = y(0), x = y([]);
1164
+ y("");
1165
+ const f = y(0), U = () => {
1166
+ T("buildContent");
1167
+ };
1168
+ Y(
1169
+ () => t == null ? void 0 : t.pageKey,
1170
+ async () => {
1171
+ let v = {};
1172
+ if ((t == null ? void 0 : t.pageKey) !== "") {
1173
+ const G = await Oe(t == null ? void 0 : t.pageKey, sessionStorage.getItem("systemKey"), ""), Q = await Oe("弯管仿真加工管理/管件解析", sessionStorage.getItem("systemKey"), "");
1174
+ let V = ["管长", "外径"], F = {};
1175
+ Q == null || Q.forEach((e) => {
1176
+ var K;
1177
+ (e == null ? void 0 : e.comp) === "Form" && ((K = e == null ? void 0 : e.compData) == null || K.forEach((j) => {
1178
+ var me;
1179
+ (j == null ? void 0 : j.key) === "formContent" && ((me = j == null ? void 0 : j.contents) == null || me.forEach((ie) => {
1180
+ V.includes(ie == null ? void 0 : ie.key) && (F[ie.key] = ie.value);
1181
+ }));
1182
+ }));
1183
+ }), G == null || G.forEach((e) => {
1184
+ var K, j, me, ie, xe, Me;
1185
+ if ((e == null ? void 0 : e.comp) === "Table") {
1186
+ let Pe = [], Ce = (me = (j = (K = e == null ? void 0 : e.compData) == null ? void 0 : K.find((D) => (D == null ? void 0 : D.key) === "header")) == null ? void 0 : j.contents) == null ? void 0 : me.map((D) => D == null ? void 0 : D.label), Re = (Me = (xe = (ie = e == null ? void 0 : e.compData) == null ? void 0 : ie.find((D) => (D == null ? void 0 : D.key) === "tableContents")) == null ? void 0 : xe.contents) == null ? void 0 : Me.map((D) => (D = D == null ? void 0 : D.filter((_e) => !(_e != null && _e.id)), D));
1187
+ Re == null || Re.forEach((D) => {
1188
+ Pe.push(kt(D, Ce == null ? void 0 : Ce.filter((_e) => _e !== "操作")));
1189
+ }), v[e.name] = Pe, v[e.name + "Content"] = e;
1190
+ }
1191
+ }), v.extra = F, T("threeData", v);
1192
+ }
1193
+ },
1194
+ { deep: !0, immediate: !0 }
1195
+ );
1196
+ const de = (v) => {
1197
+ T("openThreeBuild", v);
1198
+ };
1199
+ Y(
1200
+ () => t == null ? void 0 : t.pathContent,
1201
+ () => {
1202
+ (t == null ? void 0 : t.pathContent) !== "" && I.setSystemPath(t == null ? void 0 : t.pathContent);
1203
+ },
1204
+ {
1205
+ deep: !0,
1206
+ immediate: !0
1207
+ }
1208
+ );
1209
+ const pe = (v) => {
1210
+ T("contentChange", v);
1211
+ }, se = (v) => {
1212
+ var Q;
1213
+ const G = (Q = Se(v == null ? void 0 : v.wholeValue)) == null ? void 0 : Q.map((V) => {
1214
+ var F;
1215
+ return (V == null ? void 0 : V.comp) === "Form" && (V.compData = (F = V.compData) == null ? void 0 : F.map((e) => ((e == null ? void 0 : e.key) === "formContent" && (e.contents = Ut(e == null ? void 0 : e.contents)), e))), V;
1216
+ });
1217
+ T("change", {
1218
+ originalContents: b.value,
1219
+ currentContents: v == null ? void 0 : v.wholeValue,
1220
+ editContent: v == null ? void 0 : v.editValue,
1221
+ arrayToContents: G
1222
+ });
1223
+ };
1224
+ Y(
1225
+ () => u.value,
1226
+ () => {
1227
+ f.value === u.value.length && u.value.length !== 0 && (N.value = u.value);
1228
+ },
1229
+ { deep: !0, immediate: !0 }
1230
+ );
1231
+ const E = () => {
1232
+ W.value !== null && W.value.click();
1233
+ }, ye = async (v) => {
1234
+ const G = v.target.files;
1235
+ if (!G) return;
1236
+ new FileReader(), N.value = [], u.value = [], f.value = G.length;
1237
+ const Q = Array.from(G).map(async (V) => await new Promise((F) => {
1238
+ const e = new FileReader();
1239
+ e.onload = (K) => {
1240
+ try {
1241
+ u.value.push(K.target.result), ce.value++;
1242
+ } catch (j) {
1243
+ console.error("解析失败:", j);
1244
+ return;
1245
+ }
1246
+ }, e.onerror = () => F(`读取 ${V.name} 失败`), e.readAsText(V), v.target.value = "", W.value = null, Z.value++;
1247
+ }));
1248
+ await Promise.all(Q);
1249
+ };
1250
+ return Y(
1251
+ () => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
1252
+ async () => {
1253
+ await Bt(), N.value = t.content, ee.value = t == null ? void 0 : t.jsonContents;
1254
+ },
1255
+ { deep: !0, immediate: !0 }
1256
+ ), Y(
1257
+ () => ce.value,
1258
+ () => {
1259
+ var v;
1260
+ ((v = x.value) == null ? void 0 : v.length) !== 0 && (I.setOriginalData(x.value), I.setItemData(x.value));
1261
+ },
1262
+ { deep: !0, immediate: !0 }
1263
+ ), (v, G) => {
1264
+ const Q = R("svg-icon"), V = R("el-button");
1265
+ return h(), $("div", ka, [
1266
+ (t == null ? void 0 : t.mode) === "edit" ? (h(), $("div", Ba, [
1267
+ B("div", ba, [
1268
+ o(Ge)
1269
+ ]),
1270
+ (h(), $("div", {
1271
+ class: "model-show",
1272
+ key: A.value
1273
+ }, [
1274
+ o(Xe)
1275
+ ])),
1276
+ B("div", Fa, [
1277
+ o(qe)
1278
+ ])
1279
+ ])) : q("", !0),
1280
+ (t == null ? void 0 : t.mode) === "view" ? (h(), $("div", Ta, [
1281
+ (h(), L(Ca, {
1282
+ showButton: S.showButton,
1283
+ platform: l(J),
1284
+ content: N.value,
1285
+ onChange: se,
1286
+ jsonContents: ee.value,
1287
+ onContentChange: pe,
1288
+ onBuildContent: U,
1289
+ key: A.value,
1290
+ onShowChild: de
1291
+ }, {
1292
+ default: s(() => {
1293
+ var F;
1294
+ return [
1295
+ ((F = t == null ? void 0 : t.jsonContents) == null ? void 0 : F.length) === 0 && (t != null && t.showButton) ? (h(), L(V, {
1296
+ key: 0,
1297
+ id: "transparentBgButton",
1298
+ onClick: E
1299
+ }, {
1300
+ icon: s(() => [
1301
+ o(Q, { name: "import" })
1302
+ ]),
1303
+ default: s(() => [
1304
+ (h(), $("input", {
1305
+ type: "file",
1306
+ key: Z.value,
1307
+ ref_key: "fileInput",
1308
+ ref: W,
1309
+ accept: ".txt, .inm, .iml, .imd",
1310
+ onChange: ye,
1311
+ style: { display: "none" },
1312
+ multiple: ""
1313
+ }, null, 32)),
1314
+ G[0] || (G[0] = te(" 导入模型 "))
1315
+ ]),
1316
+ _: 1,
1317
+ __: [0]
1318
+ })) : q("", !0)
1319
+ ];
1320
+ }),
1321
+ _: 1
1322
+ }, 8, ["showButton", "platform", "content", "jsonContents"]))
1323
+ ])) : q("", !0)
1324
+ ]);
1325
+ };
1326
+ }
1327
+ }, Ga = /* @__PURE__ */ Te(Ra, [["__scopeId", "data-v-1ee6cc73"]]);
1328
+ export {
1329
+ Ga as default
1330
+ };