ss-component-new 1.1.641 → 1.1.643

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