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