ss-component-new 1.1.565 → 1.1.566

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