ss-component-new 1.1.668 → 1.1.670
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/{array-qn1O-B8I.js → array-Do4yDTLA.js} +1 -1
- package/dist/icons/svg/default.svg +1 -1
- package/dist/index-0b44J_JW.js +940 -0
- package/dist/{index-BDHL34G0.cjs → index-1yjqW9Oc.cjs} +1 -1
- package/dist/{index-CbO11N46.js → index-4itasbDU.js} +47 -47
- package/dist/{index-DkyZ6QzV.js → index-B2rPmR9Z.js} +5 -5
- package/dist/{index-DLbcs-Lx.js → index-B7x1qnBf.js} +6 -7
- package/dist/{index-Cdqt9LpL.js → index-BCiyd8to.js} +1 -1
- package/dist/{index-CNfquSwE.js → index-BF1stCn0.js} +6 -6
- package/dist/{index-Cp_WHJUH.cjs → index-BOV5Zsgf.cjs} +1 -1
- package/dist/{index-DxC_u1AO.js → index-BWL_rket.js} +10718 -8613
- package/dist/{index-D3jg6s1m.js → index-Bvfe4GiC.js} +4 -4
- package/dist/{index-CuQ9BVB0.cjs → index-BztzyoeO.cjs} +7 -7
- package/dist/index-C4PTUwxF.cjs +1 -0
- package/dist/{index-PtsWdXyL.js → index-CKsjOlOK.js} +3 -3
- package/dist/{index-DFicBwJi.js → index-CQ-ZXSrU.js} +8 -8
- package/dist/{index-BEx4RBX-.js → index-CQUgRiUZ.js} +5 -5
- package/dist/{index-BtfKiIk4.js → index-CQ_KoRZm.js} +1 -1
- package/dist/{index-C76j1xDR.js → index-CQbTxkyw.js} +4 -4
- package/dist/index-CRAvz1ee.cjs +1 -0
- package/dist/{index-3ynVVIhv.js → index-CSPnTQik.js} +3 -3
- package/dist/{index-Db_6Wwss.cjs → index-Ctfjvh2t.cjs} +1 -1
- package/dist/{index-Bm9kzxrh.cjs → index-Cub54Bc2.cjs} +1 -1
- package/dist/{index-BTCDqyJm.cjs → index-D5CgsWhq.cjs} +1 -1
- package/dist/{index-01ryZQtQ.js → index-D5Nr8BSN.js} +5 -5
- package/dist/{index-DlEEjnYo.cjs → index-DErsLeKb.cjs} +1 -1
- package/dist/{index-DZzl-a_K.cjs → index-DFdwZN6t.cjs} +1 -1
- package/dist/{index-pTn7vnOO.cjs → index-DNCS82Gl.cjs} +1 -1
- package/dist/{index-C2Po9S5b.js → index-DTcyJOVb.js} +4 -4
- package/dist/{index-DeO6C2WX.js → index-Da1JGrGv.js} +5 -5
- package/dist/{index-GRAhQojc.cjs → index-Dj4QVcDg.cjs} +1 -1
- package/dist/{index-B-UuYZM8.js → index-DsAXyci9.js} +1 -1
- package/dist/{index-C7qYQlBD.cjs → index-DuDIpMti.cjs} +1 -1
- package/dist/index-LITrT3HW.js +4779 -0
- package/dist/{index-BXCNH6aa.js → index-OO_fsaul.js} +3 -3
- package/dist/index-PUij7MN3.cjs +4207 -0
- package/dist/{index-CHZsugwh.js → index-PkidA1lR.js} +6 -6
- package/dist/{index-FYP0ppP2.js → index-TUzdeubj.js} +3 -3
- package/dist/{index-ewNWT7TA.js → index-U8NYGnkl.js} +7 -7
- package/dist/index-WKHFL-nw.cjs +1 -0
- package/dist/{index-BTNmnCSm.cjs → index-XaQuDBpe.cjs} +1 -1
- package/dist/{index-LJP4lik1.js → index-Yt78Gz_-.js} +3 -3
- package/dist/{index-RUB00WnI.cjs → index-qtkEZWqw.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Blfryb8S.js → index.vue_vue_type_script_setup_true_lang-KyWIo-iK.js} +19 -19
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DqzQt9hB.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BuS1ME-J.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-Bm1AYBZi.js → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-BE74yLrj.js} +452 -452
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-Ch9jfA9O.cjs → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-CoSr04et.cjs} +7 -7
- package/dist/index.vue_vue_type_style_index_0_scoped_696fe121_lang-Bh361-v9.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_d215f0b6_lang-DEVh-H2q.js → index.vue_vue_type_style_index_0_scoped_696fe121_lang-CaAWJiiO.js} +188 -153
- package/dist/{login-Cyf1sH2P.js → login-DHDms8MF.js} +1 -1
- package/dist/{main-DUfYmmWz.js → main-8XVitfLU.js} +5 -5
- package/dist/{main-B9Bd9ECJ.cjs → main-CgMMD7Jg.cjs} +1 -1
- package/dist/{menu-De6o7KxG.js → menu-B_PRFK5X.js} +122 -122
- package/dist/{modelComp-DKhtMqbd.js → modelComp-CUhhdEAE.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-lPwE4wFW.js → threeModel-D_ZM3LRJ.js} +60 -61
- package/dist/threeModel-mxGwaxgd.cjs +1 -0
- package/package.json +1 -1
- package/public/icons/svg/default.svg +1 -1
- package/dist/OrbitControls-B35ZPMXk.js +0 -458
- package/dist/OrbitControls-BtM4hfFW.cjs +0 -1
- package/dist/index-C1uJaEYi.cjs +0 -1
- package/dist/index-Cao0gdai.cjs +0 -1
- package/dist/index-CfSkTQ6l.cjs +0 -4207
- package/dist/index-Cmlrh6j3.cjs +0 -1
- package/dist/index-DUzvrl2d.js +0 -6423
- package/dist/index-D_dyvTGh.js +0 -954
- package/dist/index.vue_vue_type_style_index_0_scoped_d215f0b6_lang-BfqcUgws.cjs +0 -1
- package/dist/threeModel-LY4ZBBDH.cjs +0 -1
|
@@ -0,0 +1,940 @@
|
|
|
1
|
+
import { resolveComponent as G, createBlock as q, openBlock as y, withCtx as g, createVNode as m, createElementVNode as R, toDisplayString as de, ref as C, onMounted as ot, watch as Q, createElementBlock as A, Fragment as Ae, renderList as He, createCommentVNode as L, normalizeStyle as nt, defineComponent as lt, computed as Je, resolveDirective as st, withDirectives as Fe, unref as d, createTextVNode as ue, renderSlot as Pe, vShow as ze, resolveDynamicComponent as it } from "vue";
|
|
2
|
+
import { m as We, a as qe, b as Qe } from "./index-PkidA1lR.js";
|
|
3
|
+
import { c as rt, b as ut } from "./index.vue_vue_type_style_index_0_scoped_696fe121_lang-CaAWJiiO.js";
|
|
4
|
+
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import { _ as ct, s as ke, o as dt, c as mt, a as pt, b as ht, d as ft, g as yt, e as gt, f as _t, h as Ct, i as wt, j as vt } from "./index.vue_vue_type_style_index_0_scoped_2be0f146_lang-BE74yLrj.js";
|
|
6
|
+
import { u as kt } from "./login-DHDms8MF.js";
|
|
7
|
+
import { p as ne, s as ce, u as $e, c as he, b as re, g as bt, d as Bt } from "./menu-B_PRFK5X.js";
|
|
8
|
+
import { S as Me } from "./index-BHtNKL1L.js";
|
|
9
|
+
import { u as Re } from "./modelComp-CUhhdEAE.js";
|
|
10
|
+
import { o as Tt } from "./index-LITrT3HW.js";
|
|
11
|
+
import { a as Dt } from "./array-Do4yDTLA.js";
|
|
12
|
+
import { u as Ye, a as St } from "./index-BWL_rket.js";
|
|
13
|
+
import { g as Be, a as Ze, l as et } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BuS1ME-J.js";
|
|
14
|
+
import "vue-router";
|
|
15
|
+
import Ft from "./index-TUzdeubj.js";
|
|
16
|
+
import Ge from "./threeModel-D_ZM3LRJ.js";
|
|
17
|
+
import { d as Xe, _ as Mt, a as be, s as xt } from "./index-B7x1qnBf.js";
|
|
18
|
+
import { _ as At } from "./index.vue_vue_type_script_setup_true_lang-KyWIo-iK.js";
|
|
19
|
+
const Pt = { class: "menu-title" };
|
|
20
|
+
function $t(D, ee, e, B, j, H) {
|
|
21
|
+
const n = G("svg-icon"), K = G("ssMenu");
|
|
22
|
+
return y(), q(K, {
|
|
23
|
+
mode: D.mode,
|
|
24
|
+
menuList: D.renderMenuList,
|
|
25
|
+
onClickMenu: D.clickMenu,
|
|
26
|
+
onOpenMenu: D.openMenu,
|
|
27
|
+
onCloseMenu: D.closeMenu
|
|
28
|
+
}, {
|
|
29
|
+
title: g(({ menu: V }) => [
|
|
30
|
+
m(n, {
|
|
31
|
+
class: "menu-icon",
|
|
32
|
+
name: V.icon ?? "default",
|
|
33
|
+
style: { "margin-right": "8px" }
|
|
34
|
+
}, null, 8, ["name"]),
|
|
35
|
+
R("span", Pt, de(V.title ?? ""), 1)
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
39
|
+
}
|
|
40
|
+
const Rt = /* @__PURE__ */ fe(ct, [["render", $t], ["__scopeId", "data-v-35682e27"]]), jt = { class: "bread-content" }, Vt = ["onClick"], Et = {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: "split-title"
|
|
43
|
+
}, It = {
|
|
44
|
+
__name: "index",
|
|
45
|
+
props: {
|
|
46
|
+
breadArray: {
|
|
47
|
+
type: Array,
|
|
48
|
+
default: () => []
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: ["click"],
|
|
52
|
+
setup(D, { emit: ee }) {
|
|
53
|
+
const e = D, B = C([]), j = ee;
|
|
54
|
+
ot(() => {
|
|
55
|
+
B.value = e == null ? void 0 : e.breadArray;
|
|
56
|
+
}), Q(
|
|
57
|
+
() => e == null ? void 0 : e.breadArray,
|
|
58
|
+
() => {
|
|
59
|
+
B.value = e == null ? void 0 : e.breadArray;
|
|
60
|
+
},
|
|
61
|
+
{ deep: !0, immediate: !0 }
|
|
62
|
+
);
|
|
63
|
+
const H = (n) => {
|
|
64
|
+
j("click", n);
|
|
65
|
+
};
|
|
66
|
+
return (n, K) => (y(), A("div", jt, [
|
|
67
|
+
(y(!0), A(Ae, null, He(B.value, (V, U) => {
|
|
68
|
+
var w;
|
|
69
|
+
return y(), A("div", {
|
|
70
|
+
key: U,
|
|
71
|
+
class: "bread-item"
|
|
72
|
+
}, [
|
|
73
|
+
R("div", {
|
|
74
|
+
class: "bread-title",
|
|
75
|
+
onClick: (le) => H(V),
|
|
76
|
+
style: nt({ opacity: ((w = B.value) == null ? void 0 : w.length) - 1 === U ? "0.7" : "1" })
|
|
77
|
+
}, de(V.value), 13, Vt),
|
|
78
|
+
U !== B.value.length - 1 && Array.isArray(B.value) ? (y(), A("div", Et, de("/"))) : L("", !0)
|
|
79
|
+
]);
|
|
80
|
+
}), 128))
|
|
81
|
+
]));
|
|
82
|
+
}
|
|
83
|
+
}, Lt = /* @__PURE__ */ fe(It, [["__scopeId", "data-v-ded7e2bd"]]), xe = [
|
|
84
|
+
{
|
|
85
|
+
key: "型线生成",
|
|
86
|
+
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "曲面生成",
|
|
90
|
+
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: "叶片生成",
|
|
94
|
+
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
key: "轨迹规划",
|
|
98
|
+
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
key: "加工规划",
|
|
102
|
+
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
key: "产品检测",
|
|
106
|
+
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"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
key: "参数筛选训练方法",
|
|
110
|
+
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
|
|
111
|
+
}
|
|
112
|
+
// {
|
|
113
|
+
// key: "参数筛选推理",
|
|
114
|
+
// value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
|
|
115
|
+
// }
|
|
116
|
+
], Kt = { class: "structure-buttons" }, Ut = { class: "structure-paths" }, Ot = { class: "client-header-user" }, Nt = { class: "model-select" }, zt = { class: "model-show" }, Gt = { class: "model-fill" }, Xt = { class: "client-header-menu" }, Ht = { class: "client-header-user" }, Jt = { class: "drop-menu" }, Wt = {
|
|
117
|
+
class: "client-main-operate",
|
|
118
|
+
"element-loading-text": "正在加载页面数据..."
|
|
119
|
+
}, qt = {
|
|
120
|
+
key: 0,
|
|
121
|
+
class: "main-back-btn"
|
|
122
|
+
}, Qt = { class: "main-body" }, Yt = {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: "item-view-group"
|
|
125
|
+
}, Zt = {
|
|
126
|
+
key: 2,
|
|
127
|
+
class: "item-view-child-content"
|
|
128
|
+
}, ea = /* @__PURE__ */ lt({
|
|
129
|
+
__name: "index",
|
|
130
|
+
props: {
|
|
131
|
+
windowConfig: {
|
|
132
|
+
type: Object,
|
|
133
|
+
default: () => {
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
showButton: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: !0
|
|
139
|
+
},
|
|
140
|
+
platform: {
|
|
141
|
+
type: String,
|
|
142
|
+
default: "browser"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
emits: ["showChild", "buildContent"],
|
|
146
|
+
setup(D, { emit: ee }) {
|
|
147
|
+
const e = Ye(ne), { selectTitle: B } = ce(e), j = C(!1), H = C(), n = C(null), K = C(), V = C(!1), U = St(ne), { blobUrls: w } = ce(U), le = C(!1), F = C(!1), O = C(!1), J = C(!1), Y = kt(), { loginUserInfo: N } = ce(Y), te = Re(ne), { isEdit: X, routeToChildPath: ye } = ce(te), ge = ee, me = $e(ne), { importLoading: Te, activeAsideMenu: De, contentLoading: Se, platName: h, activeMenuPath: P } = ce(me), E = D;
|
|
148
|
+
C("");
|
|
149
|
+
const M = Je(() => De.value.isRouter), z = () => {
|
|
150
|
+
sessionStorage.clear(), window.location.reload();
|
|
151
|
+
}, u = () => {
|
|
152
|
+
ge("buildContent");
|
|
153
|
+
}, Z = (a) => {
|
|
154
|
+
if ((a == null ? void 0 : a.type) === "table") {
|
|
155
|
+
let o = a == null ? void 0 : a.row;
|
|
156
|
+
o && (K.value = {
|
|
157
|
+
url: o,
|
|
158
|
+
row: a == null ? void 0 : a.row
|
|
159
|
+
}, ge("showChild", {
|
|
160
|
+
url: o,
|
|
161
|
+
row: a == null ? void 0 : a.row
|
|
162
|
+
}));
|
|
163
|
+
}
|
|
164
|
+
}, I = async () => {
|
|
165
|
+
let a = {};
|
|
166
|
+
const r = await Be("弯管仿真加工管理/仿真动画生成", sessionStorage.getItem("systemKey"), ""), o = await Be("弯管仿真加工管理/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
167
|
+
let p = ["管长", "外径"], $ = {};
|
|
168
|
+
o == null || o.forEach((s) => {
|
|
169
|
+
var c;
|
|
170
|
+
(s == null ? void 0 : s.comp) === "Form" && ((c = s == null ? void 0 : s.compData) == null || c.forEach((l) => {
|
|
171
|
+
var S;
|
|
172
|
+
(l == null ? void 0 : l.key) === "formContent" && ((S = l == null ? void 0 : l.contents) == null || S.forEach((f) => {
|
|
173
|
+
p.includes(f == null ? void 0 : f.key) && ($[f.key] = f.value);
|
|
174
|
+
}));
|
|
175
|
+
}));
|
|
176
|
+
}), r == null || r.forEach((s) => {
|
|
177
|
+
var c, l, S, f, i, _;
|
|
178
|
+
if ((s == null ? void 0 : s.comp) === "Table") {
|
|
179
|
+
let v = [], k = (S = (l = (c = s == null ? void 0 : s.compData) == null ? void 0 : c.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : l.contents) == null ? void 0 : S.map((t) => t == null ? void 0 : t.label), T = (_ = (i = (f = s == null ? void 0 : s.compData) == null ? void 0 : f.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : i.contents) == null ? void 0 : _.map((t) => (t = t == null ? void 0 : t.filter((b) => !(b != null && b.id)), t));
|
|
180
|
+
T == null || T.forEach((t) => {
|
|
181
|
+
v.push(Ze(t, k == null ? void 0 : k.filter((b) => b !== "操作")));
|
|
182
|
+
}), a[s.name] = v, a[s.name + "Content"] = s;
|
|
183
|
+
}
|
|
184
|
+
}), a.extra = $, H.value = a;
|
|
185
|
+
}, se = (a) => {
|
|
186
|
+
let r = he(a), o = [], p = [];
|
|
187
|
+
return r == null || r.forEach(($, s) => {
|
|
188
|
+
s === (a == null ? void 0 : a.length) - 1 ? (p.push($), o.push(p)) : ((p == null ? void 0 : p.length) !== 0 && $.includes(".obj") && (o.push(p), p = []), p.push($));
|
|
189
|
+
}), o;
|
|
190
|
+
}, W = async () => {
|
|
191
|
+
var a, r;
|
|
192
|
+
if ((E == null ? void 0 : E.platform) !== "browser" && (j.value = !0, K.value)) {
|
|
193
|
+
const o = K.value;
|
|
194
|
+
let p = [];
|
|
195
|
+
if (typeof (o == null ? void 0 : o.url) == "string") {
|
|
196
|
+
let $ = (a = o == null ? void 0 : o.url) == null ? void 0 : a.split(","), s = (r = se($)) == null ? void 0 : r.map(async (c) => {
|
|
197
|
+
var l, S;
|
|
198
|
+
if ((c == null ? void 0 : c.length) === 1) {
|
|
199
|
+
let f = c == null ? void 0 : c.map(async (i) => {
|
|
200
|
+
var T, t;
|
|
201
|
+
let _ = await re.get(i, {
|
|
202
|
+
responseType: "blob",
|
|
203
|
+
headers: {
|
|
204
|
+
"Content-Type": "application/json"
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
const v = new Blob([_.data], {
|
|
208
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
209
|
+
});
|
|
210
|
+
let k = {
|
|
211
|
+
suffix: "." + ((t = i == null ? void 0 : i.split(".")) == null ? void 0 : t[((T = i == null ? void 0 : i.split(".")) == null ? void 0 : T.length) - 1]),
|
|
212
|
+
blob: v,
|
|
213
|
+
mtlBlobs: []
|
|
214
|
+
};
|
|
215
|
+
return p.push(k), k;
|
|
216
|
+
});
|
|
217
|
+
return await Promise.all(f), f;
|
|
218
|
+
} else {
|
|
219
|
+
let f = c == null ? void 0 : c.find((b) => b == null ? void 0 : b.includes(".obj")), i = await re.get(f, {
|
|
220
|
+
responseType: "blob",
|
|
221
|
+
headers: {
|
|
222
|
+
"Content-Type": "application/json"
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
const _ = new Blob([i.data], {
|
|
226
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
227
|
+
});
|
|
228
|
+
let v = c == null ? void 0 : c.filter((b) => b == null ? void 0 : b.includes(".mtl")), k = [], T = v == null ? void 0 : v.map(async (b) => {
|
|
229
|
+
let ae = await re.get(f, {
|
|
230
|
+
responseType: "blob",
|
|
231
|
+
headers: {
|
|
232
|
+
"Content-Type": "application/json"
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
const ve = new Blob([ae.data], {
|
|
236
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
237
|
+
});
|
|
238
|
+
return k.push(ve), ae;
|
|
239
|
+
});
|
|
240
|
+
await Promise.all(T);
|
|
241
|
+
let t = {
|
|
242
|
+
suffix: "." + ((S = f == null ? void 0 : f.split(".")) == null ? void 0 : S[((l = f == null ? void 0 : f.split(".")) == null ? void 0 : l.length) - 1]),
|
|
243
|
+
blob: _,
|
|
244
|
+
mtlBlobs: k
|
|
245
|
+
};
|
|
246
|
+
return p.push(t), t;
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
await Promise.all(s);
|
|
250
|
+
}
|
|
251
|
+
n.value.loadModelByDefaultPath(p);
|
|
252
|
+
}
|
|
253
|
+
}, _e = () => {
|
|
254
|
+
V.value = !1, n.value = null;
|
|
255
|
+
};
|
|
256
|
+
Q(() => P.value, async (a) => {
|
|
257
|
+
a && (F.value = !0), a === "弯管仿真加工管理/仿真动画生成" ? O.value = !0 : O.value = !1, a === "弯管仿真加工管理/程序输出" ? J.value = !0 : J.value = !1, xe != null && xe.find((r) => {
|
|
258
|
+
var o;
|
|
259
|
+
return (r == null ? void 0 : r.key) === ((o = a == null ? void 0 : a.split("/")) == null ? void 0 : o[(a == null ? void 0 : a.split("/").length) - 1]);
|
|
260
|
+
}) ? le.value = !0 : le.value = !1;
|
|
261
|
+
}, { immediate: !0 }), Q(
|
|
262
|
+
() => [w == null ? void 0 : w.value],
|
|
263
|
+
async () => {
|
|
264
|
+
var a, r, o, p, $;
|
|
265
|
+
if (w != null && w.value && ((a = w == null ? void 0 : w.value) == null ? void 0 : a.length) > 0 && !le.value && !((r = ke.value) != null && r.find((s) => (s == null ? void 0 : s.name) === "输入") && ((o = ke.value) != null && o.find((s) => (s == null ? void 0 : s.name) === "输出")))) {
|
|
266
|
+
V.value = !0;
|
|
267
|
+
let s = [];
|
|
268
|
+
const c = await ((p = he(w == null ? void 0 : w.value)) == null ? void 0 : p.map(async (l) => {
|
|
269
|
+
var v, k, T, t, b, ae, ve, je, Ve, Ee;
|
|
270
|
+
let S, f, i;
|
|
271
|
+
l != null && l.blob.includes("undefined") ? i = (k = (v = l == null ? void 0 : l.blob) == null ? void 0 : v.split("undefined,")) == null ? void 0 : k[1] : i = l == null ? void 0 : l.blob;
|
|
272
|
+
let _ = i == null ? void 0 : i.split(",");
|
|
273
|
+
if ((_ == null ? void 0 : _.length) > 1) {
|
|
274
|
+
let ie = await (_ == null ? void 0 : _.map(async (x) => {
|
|
275
|
+
var oe, Ie, Le, Ke, Ue, Oe;
|
|
276
|
+
S = await re.get(x, {
|
|
277
|
+
responseType: "blob",
|
|
278
|
+
headers: {
|
|
279
|
+
"Content-Type": "application/json"
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
let pe = [];
|
|
283
|
+
if (((oe = l == null ? void 0 : l.mtlBlobs) == null ? void 0 : oe.length) > 0) {
|
|
284
|
+
let tt = await ((Ie = l == null ? void 0 : l.mtlBlobs) == null ? void 0 : Ie.map(async (at) => {
|
|
285
|
+
let Ne = await re.get(at, {
|
|
286
|
+
responseType: "blob",
|
|
287
|
+
headers: {
|
|
288
|
+
"Content-Type": "application/json"
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
return pe.push(new Blob([Ne.data], {
|
|
292
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
293
|
+
})), Ne;
|
|
294
|
+
}));
|
|
295
|
+
await Promise.all(tt);
|
|
296
|
+
}
|
|
297
|
+
return ((Ke = x == null ? void 0 : x.split(".")) == null ? void 0 : Ke[((Le = x == null ? void 0 : x.split(".")) == null ? void 0 : Le.length) - 1]) !== "undefined" && s.push({
|
|
298
|
+
suffix: "." + ((Oe = x == null ? void 0 : x.split(".")) == null ? void 0 : Oe[((Ue = x == null ? void 0 : x.split(".")) == null ? void 0 : Ue.length) - 1]),
|
|
299
|
+
blob: new Blob([S.data], {
|
|
300
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
301
|
+
}),
|
|
302
|
+
mtlBlobs: pe
|
|
303
|
+
}), S;
|
|
304
|
+
}));
|
|
305
|
+
await Promise.all(ie);
|
|
306
|
+
} else if (!(i != null && i.includes("https://")) && !(i != null && i.includes("http://"))) {
|
|
307
|
+
S = await Xe({
|
|
308
|
+
url: i
|
|
309
|
+
});
|
|
310
|
+
let ie = [];
|
|
311
|
+
if (((T = l == null ? void 0 : l.mtlBlobs) == null ? void 0 : T.length) > 0) {
|
|
312
|
+
let x = await ((t = l == null ? void 0 : l.mtlBlobs) == null ? void 0 : t.map(async (pe) => {
|
|
313
|
+
let oe = await Xe({
|
|
314
|
+
url: pe
|
|
315
|
+
});
|
|
316
|
+
return ie.push(new Blob([oe.data], {
|
|
317
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
318
|
+
})), oe;
|
|
319
|
+
}));
|
|
320
|
+
await Promise.all(x);
|
|
321
|
+
}
|
|
322
|
+
f = {
|
|
323
|
+
suffix: "." + ((ae = i == null ? void 0 : i.split(".")) == null ? void 0 : ae[((b = i == null ? void 0 : i.split(".")) == null ? void 0 : b.length) - 1]),
|
|
324
|
+
blob: new Blob([S.data], {
|
|
325
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
326
|
+
}),
|
|
327
|
+
mtlBlobs: ie
|
|
328
|
+
};
|
|
329
|
+
} else {
|
|
330
|
+
S = await re.get(i, {
|
|
331
|
+
responseType: "blob",
|
|
332
|
+
headers: {
|
|
333
|
+
"Content-Type": "application/json"
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
let ie = [];
|
|
337
|
+
if (((ve = l == null ? void 0 : l.mtlBlobs) == null ? void 0 : ve.length) > 0) {
|
|
338
|
+
let x = await ((je = l == null ? void 0 : l.mtlBlobs) == null ? void 0 : je.map(async (pe) => {
|
|
339
|
+
let oe = await re.get(pe, {
|
|
340
|
+
responseType: "blob",
|
|
341
|
+
headers: {
|
|
342
|
+
"Content-Type": "application/json"
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
return ie.push(new Blob([oe.data], {
|
|
346
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
347
|
+
})), oe;
|
|
348
|
+
}));
|
|
349
|
+
await Promise.all(x);
|
|
350
|
+
}
|
|
351
|
+
f = {
|
|
352
|
+
suffix: "." + ((Ee = i == null ? void 0 : i.split(".")) == null ? void 0 : Ee[((Ve = i == null ? void 0 : i.split(".")) == null ? void 0 : Ve.length) - 1]),
|
|
353
|
+
blob: new Blob([S.data], {
|
|
354
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
355
|
+
}),
|
|
356
|
+
mtlBlobs: ie
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
f && s.push(f);
|
|
360
|
+
}));
|
|
361
|
+
await Promise.all(c), (s == null ? void 0 : s.length) !== 0 && (($ = n.value) == null || $.loadModelByDefaultPath(s));
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{ immediate: !0, deep: !0 }
|
|
365
|
+
);
|
|
366
|
+
const Ce = async () => {
|
|
367
|
+
var r, o, p, $;
|
|
368
|
+
me.setImportLoading(!0);
|
|
369
|
+
const a = await bt({
|
|
370
|
+
key: {
|
|
371
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
if (((r = a == null ? void 0 : a.data) == null ? void 0 : r.code) === 200) {
|
|
375
|
+
let s = ($ = (p = (o = a == null ? void 0 : a.data) == null ? void 0 : o.result) == null ? void 0 : p.map((c) => {
|
|
376
|
+
var l;
|
|
377
|
+
if (((l = c == null ? void 0 : c.key) == null ? void 0 : l.layer) !== "superAdmin")
|
|
378
|
+
return c == null ? void 0 : c.id;
|
|
379
|
+
})) == null ? void 0 : $.filter((c) => c);
|
|
380
|
+
await Bt({
|
|
381
|
+
ids: s
|
|
382
|
+
}), me.setRawMenus([]);
|
|
383
|
+
}
|
|
384
|
+
me.setImportLoading(!1);
|
|
385
|
+
}, we = async () => {
|
|
386
|
+
await Tt();
|
|
387
|
+
};
|
|
388
|
+
return (a, r) => {
|
|
389
|
+
const o = G("el-dialog"), p = G("el-button"), $ = G("el-avatar"), s = G("el-header"), c = G("el-container"), l = G("el-aside"), S = G("router-view"), f = G("el-main"), i = st("loading");
|
|
390
|
+
return y(), A(Ae, null, [
|
|
391
|
+
m(o, {
|
|
392
|
+
modelValue: j.value,
|
|
393
|
+
"onUpdate:modelValue": r[0] || (r[0] = (_) => j.value = _),
|
|
394
|
+
style: { height: "700px", width: "1800px" }
|
|
395
|
+
}, {
|
|
396
|
+
default: g(() => [
|
|
397
|
+
m(Ge, {
|
|
398
|
+
ref_key: "threeModelRef",
|
|
399
|
+
ref: n,
|
|
400
|
+
onGetAnimationData: I,
|
|
401
|
+
animationData: H.value
|
|
402
|
+
}, null, 8, ["animationData"])
|
|
403
|
+
]),
|
|
404
|
+
_: 1
|
|
405
|
+
}, 8, ["modelValue"]),
|
|
406
|
+
Fe(m(c, { class: "client-container" }, {
|
|
407
|
+
default: g(() => [
|
|
408
|
+
m(s, { class: "client-structure-header" }, {
|
|
409
|
+
default: g(() => {
|
|
410
|
+
var _;
|
|
411
|
+
return [
|
|
412
|
+
R("div", Kt, [
|
|
413
|
+
m(p, {
|
|
414
|
+
id: "transparentBgButton",
|
|
415
|
+
onClick: d(dt)
|
|
416
|
+
}, {
|
|
417
|
+
default: g(() => r[3] || (r[3] = [
|
|
418
|
+
ue(" 返回页面 ")
|
|
419
|
+
])),
|
|
420
|
+
_: 1,
|
|
421
|
+
__: [3]
|
|
422
|
+
}, 8, ["onClick"]),
|
|
423
|
+
m(p, {
|
|
424
|
+
id: "transparentBgButton",
|
|
425
|
+
onClick: r[1] || (r[1] = (v) => {
|
|
426
|
+
var k, T;
|
|
427
|
+
return d(mt)((T = (k = d(B)) == null ? void 0 : k.map((t) => t.value)) == null ? void 0 : T.join("/"));
|
|
428
|
+
})
|
|
429
|
+
}, {
|
|
430
|
+
icon: g(() => [
|
|
431
|
+
m(Me, { name: "Store" })
|
|
432
|
+
]),
|
|
433
|
+
default: g(() => [
|
|
434
|
+
r[4] || (r[4] = ue(" 保存页面 "))
|
|
435
|
+
]),
|
|
436
|
+
_: 1,
|
|
437
|
+
__: [4]
|
|
438
|
+
})
|
|
439
|
+
]),
|
|
440
|
+
R("div", Ut, [
|
|
441
|
+
m(Lt, {
|
|
442
|
+
breadArray: d(B),
|
|
443
|
+
onClick: d(pt)
|
|
444
|
+
}, null, 8, ["breadArray", "onClick"])
|
|
445
|
+
]),
|
|
446
|
+
R("div", Ot, [
|
|
447
|
+
Pe(a.$slots, "default", {}, void 0, !0),
|
|
448
|
+
m($, {
|
|
449
|
+
size: 35,
|
|
450
|
+
src: (_ = d(N)) == null ? void 0 : _.avatarUrl
|
|
451
|
+
}, {
|
|
452
|
+
default: g(() => {
|
|
453
|
+
var v;
|
|
454
|
+
return [
|
|
455
|
+
ue(de(((v = d(N)) == null ? void 0 : v.account) ?? "未知"), 1)
|
|
456
|
+
];
|
|
457
|
+
}),
|
|
458
|
+
_: 1
|
|
459
|
+
}, 8, ["src"])
|
|
460
|
+
])
|
|
461
|
+
];
|
|
462
|
+
}),
|
|
463
|
+
_: 3
|
|
464
|
+
}),
|
|
465
|
+
d(X) === "edit" ? (y(), q(c, {
|
|
466
|
+
key: 0,
|
|
467
|
+
class: "model-operate",
|
|
468
|
+
style: { "margin-top": "10px", height: "0px" }
|
|
469
|
+
}, {
|
|
470
|
+
default: g(() => [
|
|
471
|
+
R("div", Nt, [
|
|
472
|
+
m(We)
|
|
473
|
+
]),
|
|
474
|
+
R("div", zt, [
|
|
475
|
+
m(qe)
|
|
476
|
+
]),
|
|
477
|
+
R("div", Gt, [
|
|
478
|
+
m(Qe)
|
|
479
|
+
])
|
|
480
|
+
]),
|
|
481
|
+
_: 1
|
|
482
|
+
})) : L("", !0)
|
|
483
|
+
]),
|
|
484
|
+
_: 3
|
|
485
|
+
}, 512), [
|
|
486
|
+
[ze, d(X) === "edit"]
|
|
487
|
+
]),
|
|
488
|
+
Fe((y(), q(c, {
|
|
489
|
+
class: "client-container",
|
|
490
|
+
"element-loading-text": "正在加载页面数据..."
|
|
491
|
+
}, {
|
|
492
|
+
default: g(() => [
|
|
493
|
+
m(s, { class: "client-header" }, {
|
|
494
|
+
default: g(() => [
|
|
495
|
+
R("div", {
|
|
496
|
+
class: "client-header-logo",
|
|
497
|
+
onClick: W
|
|
498
|
+
}, de(d(h) === "" ? "ISIP" : d(h)), 1),
|
|
499
|
+
R("div", Xt, [
|
|
500
|
+
m(Rt, { mode: "horizontal" })
|
|
501
|
+
]),
|
|
502
|
+
R("div", Ht, [
|
|
503
|
+
D.showButton ? (y(), q(p, {
|
|
504
|
+
key: 0,
|
|
505
|
+
class: "system-default-button",
|
|
506
|
+
onClick: u
|
|
507
|
+
}, {
|
|
508
|
+
icon: g(() => [
|
|
509
|
+
m(Me, { name: "App" })
|
|
510
|
+
]),
|
|
511
|
+
default: g(() => [
|
|
512
|
+
r[5] || (r[5] = ue(" 生成APP "))
|
|
513
|
+
]),
|
|
514
|
+
_: 1,
|
|
515
|
+
__: [5]
|
|
516
|
+
})) : L("", !0),
|
|
517
|
+
D.showButton && d(X) === "view" ? (y(), q(p, {
|
|
518
|
+
key: 1,
|
|
519
|
+
class: "system-default-button",
|
|
520
|
+
onClick: d(ht)
|
|
521
|
+
}, {
|
|
522
|
+
icon: g(() => [
|
|
523
|
+
m(Me, { name: "write" })
|
|
524
|
+
]),
|
|
525
|
+
default: g(() => [
|
|
526
|
+
r[6] || (r[6] = ue(" 修改布局 "))
|
|
527
|
+
]),
|
|
528
|
+
_: 1,
|
|
529
|
+
__: [6]
|
|
530
|
+
}, 8, ["onClick"])) : L("", !0),
|
|
531
|
+
Pe(a.$slots, "default", {}, void 0, !0),
|
|
532
|
+
m(Mt, null, {
|
|
533
|
+
dropTitle: g(() => {
|
|
534
|
+
var _;
|
|
535
|
+
return [
|
|
536
|
+
m(At, {
|
|
537
|
+
size: "35",
|
|
538
|
+
avatarUrl: (_ = d(N)) == null ? void 0 : _.avatarUrl,
|
|
539
|
+
showCropper: !1,
|
|
540
|
+
banClick: !0
|
|
541
|
+
}, {
|
|
542
|
+
avatarDefault: g(() => {
|
|
543
|
+
var v, k, T;
|
|
544
|
+
return [
|
|
545
|
+
ue(de((v = d(N)) != null && v.account ? (k = d(N)) == null ? void 0 : k.account : ((T = d(N)) == null ? void 0 : T.账号) ?? "未知"), 1)
|
|
546
|
+
];
|
|
547
|
+
}),
|
|
548
|
+
_: 1
|
|
549
|
+
}, 8, ["avatarUrl"])
|
|
550
|
+
];
|
|
551
|
+
}),
|
|
552
|
+
dropMenu: g(() => [
|
|
553
|
+
R("div", Jt, [
|
|
554
|
+
m(be, {
|
|
555
|
+
emptyColor: !0,
|
|
556
|
+
class: "menu-button",
|
|
557
|
+
onClickTrigger: Ce,
|
|
558
|
+
modelValue: "清空数据",
|
|
559
|
+
buttonType: ""
|
|
560
|
+
}),
|
|
561
|
+
m(be, {
|
|
562
|
+
emptyColor: !0,
|
|
563
|
+
class: "menu-button",
|
|
564
|
+
onClickTrigger: z,
|
|
565
|
+
modelValue: "退出登录",
|
|
566
|
+
buttonType: ""
|
|
567
|
+
})
|
|
568
|
+
])
|
|
569
|
+
]),
|
|
570
|
+
_: 1
|
|
571
|
+
})
|
|
572
|
+
])
|
|
573
|
+
]),
|
|
574
|
+
_: 3
|
|
575
|
+
}),
|
|
576
|
+
m(c, { class: "client-body" }, {
|
|
577
|
+
default: g(() => [
|
|
578
|
+
m(f, { class: "client-main" }, {
|
|
579
|
+
default: g(() => {
|
|
580
|
+
var _, v, k, T;
|
|
581
|
+
return [
|
|
582
|
+
m(l, { class: "client-aside" }, {
|
|
583
|
+
default: g(() => [
|
|
584
|
+
m(Ft, { mode: "vertical" })
|
|
585
|
+
]),
|
|
586
|
+
_: 1
|
|
587
|
+
}),
|
|
588
|
+
Fe((y(), A("div", Wt, [
|
|
589
|
+
d(ye) !== "" ? (y(), A("div", qt, [
|
|
590
|
+
m(be, {
|
|
591
|
+
class: "calculator-content back-content",
|
|
592
|
+
onClickTrigger: r[2] || (r[2] = (t) => d(ft)()),
|
|
593
|
+
modelValue: "返回"
|
|
594
|
+
})
|
|
595
|
+
])) : L("", !0),
|
|
596
|
+
R("div", Qt, [
|
|
597
|
+
M.value ? (y(), q(S, { key: 0 })) : L("", !0),
|
|
598
|
+
M.value ? L("", !0) : (y(!0), A(Ae, { key: 1 }, He((_ = d(he)(d(ke))) == null ? void 0 : _.filter((t) => t.comp !== "FormTop"), (t, b) => {
|
|
599
|
+
var ae;
|
|
600
|
+
return y(), A("div", {
|
|
601
|
+
class: "item-view-content",
|
|
602
|
+
key: b
|
|
603
|
+
}, [
|
|
604
|
+
((ae = t == null ? void 0 : t.comp) == null ? void 0 : ae.toUpperCase()) !== "TABLE" && t.name ? (y(), A("div", Yt, de(t.name), 1)) : L("", !0),
|
|
605
|
+
(y(), q(it(d(yt)(t.comp)), {
|
|
606
|
+
compName: t.name,
|
|
607
|
+
itemData: t == null ? void 0 : t.compData,
|
|
608
|
+
childItemData: t == null ? void 0 : t.itemChildData,
|
|
609
|
+
key: (t == null ? void 0 : t.id) ?? b,
|
|
610
|
+
onChange: d(Ct),
|
|
611
|
+
index: (t == null ? void 0 : t.id) ?? b,
|
|
612
|
+
onContentChange: d(_t),
|
|
613
|
+
onPageChange: d(gt),
|
|
614
|
+
onRowClick: Z
|
|
615
|
+
}, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
616
|
+
]);
|
|
617
|
+
}), 128)),
|
|
618
|
+
!M.value && !((v = d(he)(d(ke))) != null && v.find((t) => t.comp === "methodButton")) ? (y(), A("div", Zt, [
|
|
619
|
+
d(ye) !== "" && ((T = d(P)) == null ? void 0 : T[((k = d(P)) == null ? void 0 : k.length) - 1]) !== "/" ? (y(), q(be, {
|
|
620
|
+
key: 0,
|
|
621
|
+
class: "calculator-content",
|
|
622
|
+
onClickTrigger: we,
|
|
623
|
+
modelValue: "保存"
|
|
624
|
+
})) : L("", !0)
|
|
625
|
+
])) : L("", !0)
|
|
626
|
+
])
|
|
627
|
+
])), [
|
|
628
|
+
[i, d(Se)]
|
|
629
|
+
])
|
|
630
|
+
];
|
|
631
|
+
}),
|
|
632
|
+
_: 1
|
|
633
|
+
})
|
|
634
|
+
]),
|
|
635
|
+
_: 1
|
|
636
|
+
}),
|
|
637
|
+
R("div", null, [
|
|
638
|
+
m(xt, {
|
|
639
|
+
visible: V.value,
|
|
640
|
+
onBeforeDestroy: _e,
|
|
641
|
+
style: { height: "700px", width: "1000px" }
|
|
642
|
+
}, {
|
|
643
|
+
default: g(() => [
|
|
644
|
+
m(Ge, {
|
|
645
|
+
ref_key: "threeModelRef",
|
|
646
|
+
ref: n
|
|
647
|
+
}, null, 512)
|
|
648
|
+
]),
|
|
649
|
+
_: 1
|
|
650
|
+
}, 8, ["visible"])
|
|
651
|
+
])
|
|
652
|
+
]),
|
|
653
|
+
_: 3
|
|
654
|
+
})), [
|
|
655
|
+
[ze, d(X) === "view"],
|
|
656
|
+
[i, d(Te)]
|
|
657
|
+
])
|
|
658
|
+
], 64);
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
}), ta = /* @__PURE__ */ fe(ea, [["__scopeId", "data-v-584387ea"]]), aa = { class: "system-wrap" }, oa = {
|
|
662
|
+
__name: "index",
|
|
663
|
+
props: {
|
|
664
|
+
windowConfig: {
|
|
665
|
+
type: Object,
|
|
666
|
+
default: () => {
|
|
667
|
+
}
|
|
668
|
+
},
|
|
669
|
+
platform: {
|
|
670
|
+
type: String,
|
|
671
|
+
default: "browser"
|
|
672
|
+
},
|
|
673
|
+
showButton: {
|
|
674
|
+
type: Boolean,
|
|
675
|
+
default: !0
|
|
676
|
+
},
|
|
677
|
+
content: String,
|
|
678
|
+
jsonContents: Array
|
|
679
|
+
},
|
|
680
|
+
emits: ["buildContent", "showChild"],
|
|
681
|
+
setup(D, { emit: ee }) {
|
|
682
|
+
const e = Re(ne), B = Ye(ne), j = $e();
|
|
683
|
+
C(!1);
|
|
684
|
+
const H = C(!0), n = D, K = ee, V = (F) => {
|
|
685
|
+
K("showChild", F);
|
|
686
|
+
}, U = Je(() => {
|
|
687
|
+
switch (n == null ? void 0 : n.platform) {
|
|
688
|
+
case "browser":
|
|
689
|
+
return ut;
|
|
690
|
+
case "client":
|
|
691
|
+
return rt;
|
|
692
|
+
}
|
|
693
|
+
}), w = (F) => {
|
|
694
|
+
const O = document.documentElement;
|
|
695
|
+
F == null || F.forEach((J) => {
|
|
696
|
+
O.style.setProperty(J.name, J.value);
|
|
697
|
+
});
|
|
698
|
+
};
|
|
699
|
+
Q(() => n.platform, (F, O) => {
|
|
700
|
+
F && w(U.value);
|
|
701
|
+
}, { immediate: !0 });
|
|
702
|
+
const le = () => {
|
|
703
|
+
K("buildContent");
|
|
704
|
+
};
|
|
705
|
+
return Q(
|
|
706
|
+
() => [n == null ? void 0 : n.content, n == null ? void 0 : n.jsonContents],
|
|
707
|
+
async () => {
|
|
708
|
+
var J, Y, N, te;
|
|
709
|
+
if (((J = n == null ? void 0 : n.jsonContents) == null ? void 0 : J.length) > 0) {
|
|
710
|
+
e.setOriginalData(n == null ? void 0 : n.jsonContents);
|
|
711
|
+
return;
|
|
712
|
+
}
|
|
713
|
+
if (!(n != null && n.content) || ((Y = n == null ? void 0 : n.content) == null ? void 0 : Y.length) === 0) return;
|
|
714
|
+
H.value = !0, j.setImportLoading(!0);
|
|
715
|
+
let F = [], O = [];
|
|
716
|
+
B.setSelectTitle([]), B.setSelectIndex(""), B.setSelectMenu(""), (te = (N = n == null ? void 0 : n.content) == null ? void 0 : N.filter((X) => X !== "")) == null || te.forEach((X) => {
|
|
717
|
+
O.push(wt(X));
|
|
718
|
+
}), F = O == null ? void 0 : O[0], await vt(F), await et(), e.setOriginalData(F), j.setImportLoading(!1);
|
|
719
|
+
},
|
|
720
|
+
{ deep: !0, immediate: !0 }
|
|
721
|
+
), (F, O) => (y(), A("div", aa, [
|
|
722
|
+
m(ta, {
|
|
723
|
+
windowConfig: D.windowConfig,
|
|
724
|
+
showButton: D.showButton,
|
|
725
|
+
onBuildContent: le,
|
|
726
|
+
onShowChild: V,
|
|
727
|
+
platform: n == null ? void 0 : n.platform
|
|
728
|
+
}, {
|
|
729
|
+
default: g(() => [
|
|
730
|
+
Pe(F.$slots, "default", {}, void 0, !0)
|
|
731
|
+
]),
|
|
732
|
+
_: 3
|
|
733
|
+
}, 8, ["windowConfig", "showButton", "platform"])
|
|
734
|
+
]));
|
|
735
|
+
}
|
|
736
|
+
}, na = /* @__PURE__ */ fe(oa, [["__scopeId", "data-v-2d6ad05d"]]), la = { class: "add-model-content" }, sa = {
|
|
737
|
+
key: 0,
|
|
738
|
+
class: "model-operate"
|
|
739
|
+
}, ia = { class: "model-select" }, ra = { class: "model-fill" }, ua = {
|
|
740
|
+
key: 1,
|
|
741
|
+
class: "model-view"
|
|
742
|
+
}, ca = {
|
|
743
|
+
__name: "index",
|
|
744
|
+
props: {
|
|
745
|
+
mode: {
|
|
746
|
+
type: String,
|
|
747
|
+
default: "view"
|
|
748
|
+
},
|
|
749
|
+
content: {
|
|
750
|
+
type: String,
|
|
751
|
+
default: ""
|
|
752
|
+
},
|
|
753
|
+
jsonContents: {
|
|
754
|
+
type: Array,
|
|
755
|
+
default: () => []
|
|
756
|
+
},
|
|
757
|
+
showButton: {
|
|
758
|
+
type: Boolean,
|
|
759
|
+
default: !0
|
|
760
|
+
},
|
|
761
|
+
pathContent: {
|
|
762
|
+
type: String,
|
|
763
|
+
default: ""
|
|
764
|
+
},
|
|
765
|
+
pageKey: {
|
|
766
|
+
type: String,
|
|
767
|
+
default: ""
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
|
|
771
|
+
setup(D, { emit: ee }) {
|
|
772
|
+
const e = D, B = ee, j = C([]), H = C(0), n = C([]), K = C([]), V = C(0), U = Re(ne), w = $e(ne), { itemData: le, originalData: F } = ce(U), { activeMenuPath: O, platform: J } = ce(w), Y = C(null), N = C(0), te = C([]);
|
|
773
|
+
C("");
|
|
774
|
+
const X = C(0), ye = () => {
|
|
775
|
+
B("buildContent");
|
|
776
|
+
};
|
|
777
|
+
Q(
|
|
778
|
+
() => e == null ? void 0 : e.pageKey,
|
|
779
|
+
async () => {
|
|
780
|
+
let h = {};
|
|
781
|
+
if ((e == null ? void 0 : e.pageKey) !== "") {
|
|
782
|
+
const P = await Be(e == null ? void 0 : e.pageKey, sessionStorage.getItem("systemKey"), ""), E = await Be("弯管仿真加工管理/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
783
|
+
let M = ["管长", "外径"], z = {};
|
|
784
|
+
E == null || E.forEach((u) => {
|
|
785
|
+
var Z;
|
|
786
|
+
(u == null ? void 0 : u.comp) === "Form" && ((Z = u == null ? void 0 : u.compData) == null || Z.forEach((I) => {
|
|
787
|
+
var se;
|
|
788
|
+
(I == null ? void 0 : I.key) === "formContent" && ((se = I == null ? void 0 : I.contents) == null || se.forEach((W) => {
|
|
789
|
+
M.includes(W == null ? void 0 : W.key) && (z[W.key] = W.value);
|
|
790
|
+
}));
|
|
791
|
+
}));
|
|
792
|
+
}), P == null || P.forEach((u) => {
|
|
793
|
+
var Z, I, se, W, _e, Ce;
|
|
794
|
+
if ((u == null ? void 0 : u.comp) === "Table") {
|
|
795
|
+
let we = [], a = (se = (I = (Z = u == null ? void 0 : u.compData) == null ? void 0 : Z.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : I.contents) == null ? void 0 : se.map((o) => o == null ? void 0 : o.label), r = (Ce = (_e = (W = u == null ? void 0 : u.compData) == null ? void 0 : W.find((o) => (o == null ? void 0 : o.key) === "tableContents")) == null ? void 0 : _e.contents) == null ? void 0 : Ce.map((o) => (o = o == null ? void 0 : o.filter((p) => !(p != null && p.id)), o));
|
|
796
|
+
r == null || r.forEach((o) => {
|
|
797
|
+
we.push(Ze(o, a == null ? void 0 : a.filter((p) => p !== "操作")));
|
|
798
|
+
}), h[u.name] = we, h[u.name + "Content"] = u;
|
|
799
|
+
}
|
|
800
|
+
}), h.extra = z, B("threeData", h);
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
{ deep: !0, immediate: !0 }
|
|
804
|
+
);
|
|
805
|
+
const ge = (h) => {
|
|
806
|
+
B("openThreeBuild", h);
|
|
807
|
+
};
|
|
808
|
+
Q(
|
|
809
|
+
() => e == null ? void 0 : e.pathContent,
|
|
810
|
+
() => {
|
|
811
|
+
(e == null ? void 0 : e.pathContent) !== "" && U.setSystemPath(e == null ? void 0 : e.pathContent);
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
deep: !0,
|
|
815
|
+
immediate: !0
|
|
816
|
+
}
|
|
817
|
+
);
|
|
818
|
+
const me = (h) => {
|
|
819
|
+
B("contentChange", h);
|
|
820
|
+
}, Te = (h) => {
|
|
821
|
+
var E;
|
|
822
|
+
const P = (E = he(h == null ? void 0 : h.wholeValue)) == null ? void 0 : E.map((M) => {
|
|
823
|
+
var z;
|
|
824
|
+
return (M == null ? void 0 : M.comp) === "Form" && (M.compData = (z = M.compData) == null ? void 0 : z.map((u) => ((u == null ? void 0 : u.key) === "formContent" && (u.contents = Dt(u == null ? void 0 : u.contents)), u))), M;
|
|
825
|
+
});
|
|
826
|
+
B("change", {
|
|
827
|
+
originalContents: F.value,
|
|
828
|
+
currentContents: h == null ? void 0 : h.wholeValue,
|
|
829
|
+
editContent: h == null ? void 0 : h.editValue,
|
|
830
|
+
arrayToContents: P
|
|
831
|
+
});
|
|
832
|
+
};
|
|
833
|
+
Q(
|
|
834
|
+
() => n.value,
|
|
835
|
+
() => {
|
|
836
|
+
X.value === n.value.length && n.value.length !== 0 && (j.value = n.value);
|
|
837
|
+
},
|
|
838
|
+
{ deep: !0, immediate: !0 }
|
|
839
|
+
);
|
|
840
|
+
const De = () => {
|
|
841
|
+
Y.value !== null && Y.value.click();
|
|
842
|
+
}, Se = async (h) => {
|
|
843
|
+
w.setActiveMenuPath(""), w.setActiveTopMenuPath(""), w.setAsideMenus([]);
|
|
844
|
+
const P = h.target.files;
|
|
845
|
+
if (!P) return;
|
|
846
|
+
new FileReader(), j.value = [], n.value = [], X.value = P.length;
|
|
847
|
+
const E = Array.from(P).map(async (M) => await new Promise((z) => {
|
|
848
|
+
const u = new FileReader();
|
|
849
|
+
u.onload = (Z) => {
|
|
850
|
+
try {
|
|
851
|
+
n.value.push(Z.target.result), N.value++;
|
|
852
|
+
} catch (I) {
|
|
853
|
+
console.error("解析失败:", I);
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
}, u.onerror = () => z(`读取 ${M.name} 失败`), u.readAsText(M), h.target.value = "", Y.value = null, H.value++;
|
|
857
|
+
}));
|
|
858
|
+
await Promise.all(E);
|
|
859
|
+
};
|
|
860
|
+
return Q(
|
|
861
|
+
() => [e == null ? void 0 : e.content, e == null ? void 0 : e.jsonContents],
|
|
862
|
+
async () => {
|
|
863
|
+
await et(), j.value = e.content, K.value = e == null ? void 0 : e.jsonContents;
|
|
864
|
+
},
|
|
865
|
+
{ deep: !0, immediate: !0 }
|
|
866
|
+
), Q(
|
|
867
|
+
() => N.value,
|
|
868
|
+
() => {
|
|
869
|
+
var h;
|
|
870
|
+
((h = te.value) == null ? void 0 : h.length) !== 0 && (U.setOriginalData(te.value), U.setItemData(te.value));
|
|
871
|
+
},
|
|
872
|
+
{ deep: !0, immediate: !0 }
|
|
873
|
+
), (h, P) => {
|
|
874
|
+
const E = G("svg-icon"), M = G("el-button");
|
|
875
|
+
return y(), A("div", la, [
|
|
876
|
+
(e == null ? void 0 : e.mode) === "edit" ? (y(), A("div", sa, [
|
|
877
|
+
R("div", ia, [
|
|
878
|
+
m(We)
|
|
879
|
+
]),
|
|
880
|
+
(y(), A("div", {
|
|
881
|
+
class: "model-show",
|
|
882
|
+
key: V.value
|
|
883
|
+
}, [
|
|
884
|
+
m(qe)
|
|
885
|
+
])),
|
|
886
|
+
R("div", ra, [
|
|
887
|
+
m(Qe)
|
|
888
|
+
])
|
|
889
|
+
])) : L("", !0),
|
|
890
|
+
(e == null ? void 0 : e.mode) === "view" ? (y(), A("div", ua, [
|
|
891
|
+
(y(), q(na, {
|
|
892
|
+
showButton: D.showButton,
|
|
893
|
+
platform: d(J),
|
|
894
|
+
content: j.value,
|
|
895
|
+
onChange: Te,
|
|
896
|
+
jsonContents: K.value,
|
|
897
|
+
onContentChange: me,
|
|
898
|
+
onBuildContent: ye,
|
|
899
|
+
key: V.value,
|
|
900
|
+
onShowChild: ge
|
|
901
|
+
}, {
|
|
902
|
+
default: g(() => {
|
|
903
|
+
var z;
|
|
904
|
+
return [
|
|
905
|
+
((z = e == null ? void 0 : e.jsonContents) == null ? void 0 : z.length) === 0 && (e != null && e.showButton) ? (y(), q(M, {
|
|
906
|
+
key: 0,
|
|
907
|
+
class: "system-default-button",
|
|
908
|
+
onClick: De
|
|
909
|
+
}, {
|
|
910
|
+
icon: g(() => [
|
|
911
|
+
m(E, { name: "import" })
|
|
912
|
+
]),
|
|
913
|
+
default: g(() => [
|
|
914
|
+
(y(), A("input", {
|
|
915
|
+
type: "file",
|
|
916
|
+
key: H.value,
|
|
917
|
+
ref_key: "fileInput",
|
|
918
|
+
ref: Y,
|
|
919
|
+
accept: ".txt, .inm, .iml, .imd",
|
|
920
|
+
onChange: Se,
|
|
921
|
+
style: { display: "none" },
|
|
922
|
+
multiple: ""
|
|
923
|
+
}, null, 32)),
|
|
924
|
+
P[0] || (P[0] = ue(" 导入模型 "))
|
|
925
|
+
]),
|
|
926
|
+
_: 1,
|
|
927
|
+
__: [0]
|
|
928
|
+
})) : L("", !0)
|
|
929
|
+
];
|
|
930
|
+
}),
|
|
931
|
+
_: 1
|
|
932
|
+
}, 8, ["showButton", "platform", "content", "jsonContents"]))
|
|
933
|
+
])) : L("", !0)
|
|
934
|
+
]);
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
}, Ma = /* @__PURE__ */ fe(ca, [["__scopeId", "data-v-2be0f146"]]);
|
|
938
|
+
export {
|
|
939
|
+
Ma as default
|
|
940
|
+
};
|