ss-component-new 1.1.418 → 1.1.421

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