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