ss-component-new 1.1.511 → 1.1.513

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