ss-component-new 1.1.656 → 1.1.657
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/{OrbitControls-BJHoziDQ.cjs → OrbitControls-BEKKxuGm.cjs} +1 -1
- package/dist/{OrbitControls-CJepjLAm.js → OrbitControls-BOEvop3S.js} +1 -1
- package/dist/{index-g1XqI1u_.js → index-18I80P2C.js} +947 -944
- package/dist/{index-CB-0zWkO.cjs → index-5Tz1CEi4.cjs} +1 -1
- package/dist/{index-fSieD0VD.cjs → index-B9EAWpHA.cjs} +1 -1
- package/dist/{index-DtTu9OX4.js → index-BEOtbIkr.js} +2 -2
- package/dist/index-BJ-_BFDQ.js +937 -0
- package/dist/{index-Dm4_oZi-.cjs → index-BUUyeg1A.cjs} +1 -1
- package/dist/{index-CsHq7mD2.js → index-BtaCqM9k.js} +1 -1
- package/dist/{index-BN9n2T4H.cjs → index-BwgTgC3g.cjs} +23 -23
- package/dist/{index-8JMgCqil.cjs → index-ByGdCG1z.cjs} +1 -1
- package/dist/{index-Cr_QMd0J.js → index-C-2-K8d_.js} +5 -5
- package/dist/{index-BsN09BLI.js → index-C-gEdNr0.js} +1 -1
- package/dist/{index--Upniuaf.cjs → index-C5DS2GFh.cjs} +1 -1
- package/dist/{index-pjqo-wKx.js → index-C7UOeJXE.js} +2 -2
- package/dist/{index-BlPkKNG_.js → index-CCUBr4LA.js} +1 -1
- package/dist/{index-zs2vsQkw.js → index-CEgLrX1K.js} +2 -2
- package/dist/{index-Q1znt8Z0.js → index-CXLF6NN2.js} +2 -2
- package/dist/{index-XIIYT-A0.js → index-CZYP6IBQ.js} +3 -3
- package/dist/{index-CaqEBrVR.cjs → index-CbOwdFfA.cjs} +1 -1
- package/dist/{index-CM6HSS02.cjs → index-Ch8p7MB6.cjs} +1 -1
- package/dist/{index-Cj5htR9s.cjs → index-Cpq5CxLg.cjs} +1 -1
- package/dist/{index-kX1Zv5mv.js → index-CzFQu8Xs.js} +1 -1
- package/dist/{index-DK4Pnepl.js → index-D6bQX-A7.js} +2 -2
- package/dist/{index-B7sNPI-2.cjs → index-DBP4GP7-.cjs} +1 -1
- package/dist/{index-BmOGt9LR.cjs → index-DLKHwlVU.cjs} +1 -1
- package/dist/{index-CXMa57KM.cjs → index-DMXqCWi6.cjs} +1 -1
- package/dist/{index-DyE9lCt7.js → index-DP61HK9f.js} +2068 -2065
- package/dist/{index-CFc1oz3x.js → index-DXwPc9BY.js} +1 -1
- package/dist/{index-yOh2aUoj.js → index-Dkaxtb_Q.js} +2 -2
- package/dist/{index-C3911xbm.cjs → index-DrngtiGy.cjs} +1 -1
- package/dist/{index-D4ZmbGCB.cjs → index-DwXqMKtB.cjs} +1 -1
- package/dist/index-QtUcw2wp.cjs +1 -0
- package/dist/{index-D6vD-trt.cjs → index-ZNJ6gJe4.cjs} +1 -1
- package/dist/{index-D7IMIybo.cjs → index-bpyajBX1.cjs} +1 -1
- package/dist/{index-BZcq6lqc.js → index-xpn_cZWG.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B9iSnLp7.js → index.vue_vue_type_script_setup_true_lang-DraLJN1H.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CfQmzicD.cjs → index.vue_vue_type_script_setup_true_lang-DrwwH91V.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKQiCWlb.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CB9HaWen.js} +961 -956
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BB1q_NEl.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CbD8iBb1.cjs} +35 -35
- package/dist/{index.vue_vue_type_style_index_0_scoped_264dc673_lang-Chd_vVxH.js → index.vue_vue_type_style_index_0_scoped_264dc673_lang-B5Qp2wHm.js} +268 -268
- package/dist/{index.vue_vue_type_style_index_0_scoped_264dc673_lang-3jIQbFoJ.cjs → index.vue_vue_type_style_index_0_scoped_264dc673_lang-BcoocGYl.cjs} +10 -10
- package/dist/{index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-DVS9Bqp3.js → index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-CwddZPfc.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-hr6rMNSG.cjs → index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-w8npdWDC.cjs} +1 -1
- package/dist/{main-CY26_1QU.js → main-Bb1_RKkL.js} +2 -2
- package/dist/{main-Cl5qS8h8.cjs → main-rS8VYP_S.cjs} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-DWRJnQ0E.cjs → threeModel-CkiW511u.cjs} +1 -1
- package/dist/{threeModel-H_4oJGH7.js → threeModel-DiIrep6b.js} +2 -2
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-BWR57KtA.js +0 -937
- package/dist/index-Dgzh0Eur.cjs +0 -1
package/dist/index-BWR57KtA.js
DELETED
|
@@ -1,937 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as E, createBlock as Q, openBlock as _, withCtx as f, createVNode as c, createElementVNode as A, toDisplayString as de, ref as w, onMounted as at, watch as Y, createElementBlock as M, Fragment as Me, renderList as Xe, createCommentVNode as U, normalizeStyle as nt, defineComponent as ot, computed as He, resolveDirective as lt, withDirectives as Se, unref as m, createTextVNode as ce, renderSlot as Ae, vShow as Ne, resolveDynamicComponent as st } from "vue";
|
|
2
|
-
import { m as Je, a as We, b as qe } from "./index-DtTu9OX4.js";
|
|
3
|
-
import { c as it, b as rt } from "./index.vue_vue_type_style_index_0_scoped_f6ebd097_lang-DVS9Bqp3.js";
|
|
4
|
-
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { _ as ct, s as we, o as ut, c as dt, a as mt, b as pt, d as ht, g as ft, e as yt, f as gt, h as _t, i as Ct, j as wt } from "./index.vue_vue_type_style_index_0_scoped_264dc673_lang-Chd_vVxH.js";
|
|
6
|
-
import { u as vt } from "./login-Ct7wC1jE.js";
|
|
7
|
-
import { p as oe, s as ue, u as Pe, c as he, b as re, d as kt, g as bt, e as Bt } from "./menu-Bj0eSg6d.js";
|
|
8
|
-
import { S as Fe } from "./index-BHtNKL1L.js";
|
|
9
|
-
import { u as $e } from "./modelComp-CUCWitDo.js";
|
|
10
|
-
import { u as Tt, o as Dt } from "./index-g1XqI1u_.js";
|
|
11
|
-
import { a as St } from "./array-CrFbJF1B.js";
|
|
12
|
-
import { u as Qe } from "./index-DyE9lCt7.js";
|
|
13
|
-
import { g as ke, a as Ye, l as Ze } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKQiCWlb.js";
|
|
14
|
-
import "vue-router";
|
|
15
|
-
import Ft from "./index-BsN09BLI.js";
|
|
16
|
-
import ze from "./threeModel-H_4oJGH7.js";
|
|
17
|
-
import { d as Ge, _ as xt, a as ve, s as Mt } from "./index-DK4Pnepl.js";
|
|
18
|
-
import { _ as At } from "./index.vue_vue_type_script_setup_true_lang-B9iSnLp7.js";
|
|
19
|
-
const Pt = { class: "horizontal-f-18" };
|
|
20
|
-
function $t(D, te, t, B, $, H) {
|
|
21
|
-
const o = E("svg-icon"), G = E("ssMenu");
|
|
22
|
-
return _(), Q(G, {
|
|
23
|
-
mode: D.mode,
|
|
24
|
-
menuList: D.renderMenuList,
|
|
25
|
-
onClickMenu: D.clickMenu,
|
|
26
|
-
onOpenMenu: D.openMenu,
|
|
27
|
-
onCloseMenu: D.closeMenu
|
|
28
|
-
}, {
|
|
29
|
-
title: f(({ menu: V }) => [
|
|
30
|
-
c(o, {
|
|
31
|
-
class: "horizontal-icon-18",
|
|
32
|
-
name: V.icon ?? "default",
|
|
33
|
-
style: { "margin-right": "8px" }
|
|
34
|
-
}, null, 8, ["name"]),
|
|
35
|
-
A("span", Pt, de(V.title ?? ""), 1)
|
|
36
|
-
]),
|
|
37
|
-
_: 1
|
|
38
|
-
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
39
|
-
}
|
|
40
|
-
const Vt = /* @__PURE__ */ fe(ct, [["render", $t], ["__scopeId", "data-v-6d1fb5a2"]]), Rt = { class: "bread-content" }, jt = ["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: te }) {
|
|
53
|
-
const t = D, B = w([]), $ = te;
|
|
54
|
-
at(() => {
|
|
55
|
-
B.value = t == null ? void 0 : t.breadArray;
|
|
56
|
-
}), Y(
|
|
57
|
-
() => t == null ? void 0 : t.breadArray,
|
|
58
|
-
() => {
|
|
59
|
-
B.value = t == null ? void 0 : t.breadArray;
|
|
60
|
-
},
|
|
61
|
-
{ deep: !0, immediate: !0 }
|
|
62
|
-
);
|
|
63
|
-
const H = (o) => {
|
|
64
|
-
$("click", o);
|
|
65
|
-
};
|
|
66
|
-
return (o, G) => (_(), M("div", Rt, [
|
|
67
|
-
(_(!0), M(Me, null, Xe(B.value, (V, K) => {
|
|
68
|
-
var v;
|
|
69
|
-
return _(), M("div", {
|
|
70
|
-
key: K,
|
|
71
|
-
class: "bread-item"
|
|
72
|
-
}, [
|
|
73
|
-
A("div", {
|
|
74
|
-
class: "bread-title",
|
|
75
|
-
onClick: (le) => H(V),
|
|
76
|
-
style: nt({ opacity: ((v = B.value) == null ? void 0 : v.length) - 1 === K ? "0.7" : "1" })
|
|
77
|
-
}, de(V.value), 13, jt),
|
|
78
|
-
K !== B.value.length - 1 && Array.isArray(B.value) ? (_(), M("div", Et, de("/"))) : U("", !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
|
-
], Ut = { class: "structure-buttons" }, Kt = { 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__ */ ot({
|
|
129
|
-
__name: "index",
|
|
130
|
-
props: {
|
|
131
|
-
windowConfig: {
|
|
132
|
-
type: Object,
|
|
133
|
-
default: () => {
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
showButton: {
|
|
137
|
-
type: Boolean,
|
|
138
|
-
default: !0
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
emits: ["buildContent"],
|
|
142
|
-
setup(D, { emit: te }) {
|
|
143
|
-
const t = Qe(oe), { selectTitle: B } = ue(t), $ = w(!1), H = w(), o = w(null), G = w(), V = w(!1), K = Tt(oe), { blobUrls: v } = ue(K), le = w(!1), S = w(!1), O = w(!1), J = w(!1), Z = vt(), { loginUserInfo: N } = ue(Z), ae = $e(oe), { isEdit: X, routeToChildPath: ye } = ue(ae), be = te, me = Pe(oe), { importLoading: Be, activeAsideMenu: Te, contentLoading: De, platName: h, activeMenuPath: R } = ue(me), I = w(""), F = He(() => Te.value.isRouter), z = () => {
|
|
144
|
-
sessionStorage.clear(), window.location.reload();
|
|
145
|
-
}, u = () => {
|
|
146
|
-
be("buildContent");
|
|
147
|
-
}, ee = async () => {
|
|
148
|
-
let r = {};
|
|
149
|
-
const s = await ke("弯管仿真加工管理/仿真动画生成", sessionStorage.getItem("systemKey"), ""), p = await ke("弯管仿真加工管理/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
150
|
-
let a = ["管长", "外径"], k = {};
|
|
151
|
-
p == null || p.forEach((l) => {
|
|
152
|
-
var d;
|
|
153
|
-
(l == null ? void 0 : l.comp) === "Form" && ((d = l == null ? void 0 : l.compData) == null || d.forEach((n) => {
|
|
154
|
-
var T;
|
|
155
|
-
(n == null ? void 0 : n.key) === "formContent" && ((T = n == null ? void 0 : n.contents) == null || T.forEach((y) => {
|
|
156
|
-
a.includes(y == null ? void 0 : y.key) && (k[y.key] = y.value);
|
|
157
|
-
}));
|
|
158
|
-
}));
|
|
159
|
-
}), s == null || s.forEach((l) => {
|
|
160
|
-
var d, n, T, y, i, P;
|
|
161
|
-
if ((l == null ? void 0 : l.comp) === "Table") {
|
|
162
|
-
let j = [], C = (T = (n = (d = l == null ? void 0 : l.compData) == null ? void 0 : d.find((e) => (e == null ? void 0 : e.key) === "header")) == null ? void 0 : n.contents) == null ? void 0 : T.map((e) => e == null ? void 0 : e.label), b = (P = (i = (y = l == null ? void 0 : l.compData) == null ? void 0 : y.find((e) => (e == null ? void 0 : e.key) === "tableContents")) == null ? void 0 : i.contents) == null ? void 0 : P.map((e) => (e = e == null ? void 0 : e.filter((g) => !(g != null && g.id)), e));
|
|
163
|
-
b == null || b.forEach((e) => {
|
|
164
|
-
j.push(Ye(e, C == null ? void 0 : C.filter((g) => g !== "操作")));
|
|
165
|
-
}), r[l.name] = j, r[l.name + "Content"] = l;
|
|
166
|
-
}
|
|
167
|
-
}), r.extra = k, H.value = r;
|
|
168
|
-
}, L = (r) => {
|
|
169
|
-
let s = he(r), p = [], a = [];
|
|
170
|
-
return s == null || s.forEach((k, l) => {
|
|
171
|
-
l === (r == null ? void 0 : r.length) - 1 ? (a.push(k), p.push(a)) : ((a == null ? void 0 : a.length) !== 0 && k.includes(".obj") && (p.push(a), a = []), a.push(k));
|
|
172
|
-
}), p;
|
|
173
|
-
}, se = async () => {
|
|
174
|
-
var r, s;
|
|
175
|
-
if ($.value = !0, G.value) {
|
|
176
|
-
const p = G.value;
|
|
177
|
-
let a = [];
|
|
178
|
-
if (typeof (p == null ? void 0 : p.url) == "string") {
|
|
179
|
-
let k = (r = p == null ? void 0 : p.url) == null ? void 0 : r.split(","), l = (s = L(k)) == null ? void 0 : s.map(async (d) => {
|
|
180
|
-
var n, T;
|
|
181
|
-
if ((d == null ? void 0 : d.length) === 1) {
|
|
182
|
-
let y = d == null ? void 0 : d.map(async (i) => {
|
|
183
|
-
var b, e;
|
|
184
|
-
let P = await re.get(i, {
|
|
185
|
-
responseType: "blob",
|
|
186
|
-
headers: {
|
|
187
|
-
"Content-Type": "application/json"
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
const j = new Blob([P.data], {
|
|
191
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
192
|
-
});
|
|
193
|
-
let C = {
|
|
194
|
-
suffix: "." + ((e = i == null ? void 0 : i.split(".")) == null ? void 0 : e[((b = i == null ? void 0 : i.split(".")) == null ? void 0 : b.length) - 1]),
|
|
195
|
-
blob: j,
|
|
196
|
-
mtlBlobs: []
|
|
197
|
-
};
|
|
198
|
-
return a.push(C), C;
|
|
199
|
-
});
|
|
200
|
-
return await Promise.all(y), y;
|
|
201
|
-
} else {
|
|
202
|
-
let y = d == null ? void 0 : d.find((g) => g == null ? void 0 : g.includes(".obj")), i = await re.get(y, {
|
|
203
|
-
responseType: "blob",
|
|
204
|
-
headers: {
|
|
205
|
-
"Content-Type": "application/json"
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
const P = new Blob([i.data], {
|
|
209
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
210
|
-
});
|
|
211
|
-
let j = d == null ? void 0 : d.filter((g) => g == null ? void 0 : g.includes(".mtl")), C = [], b = j == null ? void 0 : j.map(async (g) => {
|
|
212
|
-
let q = await re.get(y, {
|
|
213
|
-
responseType: "blob",
|
|
214
|
-
headers: {
|
|
215
|
-
"Content-Type": "application/json"
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
const Ce = new Blob([q.data], {
|
|
219
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
220
|
-
});
|
|
221
|
-
return C.push(Ce), q;
|
|
222
|
-
});
|
|
223
|
-
await Promise.all(b);
|
|
224
|
-
let e = {
|
|
225
|
-
suffix: "." + ((T = y == null ? void 0 : y.split(".")) == null ? void 0 : T[((n = y == null ? void 0 : y.split(".")) == null ? void 0 : n.length) - 1]),
|
|
226
|
-
blob: P,
|
|
227
|
-
mtlBlobs: C
|
|
228
|
-
};
|
|
229
|
-
return a.push(e), e;
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
await Promise.all(l);
|
|
233
|
-
}
|
|
234
|
-
o.value.loadModelByDefaultPath(a);
|
|
235
|
-
}
|
|
236
|
-
}, W = () => {
|
|
237
|
-
V.value = !1, o.value = null;
|
|
238
|
-
};
|
|
239
|
-
Y(() => R.value, async (r) => {
|
|
240
|
-
r && (S.value = !0), r === "弯管仿真加工管理/仿真动画生成" ? O.value = !0 : O.value = !1, r === "弯管仿真加工管理/程序输出" ? J.value = !0 : J.value = !1, xe != null && xe.find((s) => {
|
|
241
|
-
var p;
|
|
242
|
-
return (s == null ? void 0 : s.key) === ((p = r == null ? void 0 : r.split("/")) == null ? void 0 : p[(r == null ? void 0 : r.split("/").length) - 1]);
|
|
243
|
-
}) ? le.value = !0 : le.value = !1;
|
|
244
|
-
}, { immediate: !0 }), Y(
|
|
245
|
-
() => [v == null ? void 0 : v.value],
|
|
246
|
-
async () => {
|
|
247
|
-
var r, s, p, a, k;
|
|
248
|
-
if (v != null && v.value && ((r = v == null ? void 0 : v.value) == null ? void 0 : r.length) > 0 && !le.value && !((s = we.value) != null && s.find((l) => (l == null ? void 0 : l.name) === "输入") && ((p = we.value) != null && p.find((l) => (l == null ? void 0 : l.name) === "输出")))) {
|
|
249
|
-
V.value = !0;
|
|
250
|
-
let l = [];
|
|
251
|
-
const d = await ((a = he(v == null ? void 0 : v.value)) == null ? void 0 : a.map(async (n) => {
|
|
252
|
-
var j, C, b, e, g, q, Ce, Ve, Re, je;
|
|
253
|
-
let T, y, i;
|
|
254
|
-
n != null && n.blob.includes("undefined") ? i = (C = (j = n == null ? void 0 : n.blob) == null ? void 0 : j.split("undefined,")) == null ? void 0 : C[1] : i = n == null ? void 0 : n.blob;
|
|
255
|
-
let P = i == null ? void 0 : i.split(",");
|
|
256
|
-
if ((P == null ? void 0 : P.length) > 1) {
|
|
257
|
-
let ie = await (P == null ? void 0 : P.map(async (x) => {
|
|
258
|
-
var ne, Ee, Ie, Le, Ue, Ke;
|
|
259
|
-
T = await re.get(x, {
|
|
260
|
-
responseType: "blob",
|
|
261
|
-
headers: {
|
|
262
|
-
"Content-Type": "application/json"
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
let pe = [];
|
|
266
|
-
if (((ne = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : ne.length) > 0) {
|
|
267
|
-
let et = await ((Ee = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : Ee.map(async (tt) => {
|
|
268
|
-
let Oe = await re.get(tt, {
|
|
269
|
-
responseType: "blob",
|
|
270
|
-
headers: {
|
|
271
|
-
"Content-Type": "application/json"
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
return pe.push(new Blob([Oe.data], {
|
|
275
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
276
|
-
})), Oe;
|
|
277
|
-
}));
|
|
278
|
-
await Promise.all(et);
|
|
279
|
-
}
|
|
280
|
-
return ((Le = x == null ? void 0 : x.split(".")) == null ? void 0 : Le[((Ie = x == null ? void 0 : x.split(".")) == null ? void 0 : Ie.length) - 1]) !== "undefined" && l.push({
|
|
281
|
-
suffix: "." + ((Ke = x == null ? void 0 : x.split(".")) == null ? void 0 : Ke[((Ue = x == null ? void 0 : x.split(".")) == null ? void 0 : Ue.length) - 1]),
|
|
282
|
-
blob: new Blob([T.data], {
|
|
283
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
284
|
-
}),
|
|
285
|
-
mtlBlobs: pe
|
|
286
|
-
}), T;
|
|
287
|
-
}));
|
|
288
|
-
await Promise.all(ie);
|
|
289
|
-
} else if (!(i != null && i.includes("https://")) && !(i != null && i.includes("http://"))) {
|
|
290
|
-
T = await Ge({
|
|
291
|
-
url: i
|
|
292
|
-
});
|
|
293
|
-
let ie = [];
|
|
294
|
-
if (((b = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : b.length) > 0) {
|
|
295
|
-
let x = await ((e = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : e.map(async (pe) => {
|
|
296
|
-
let ne = await Ge({
|
|
297
|
-
url: pe
|
|
298
|
-
});
|
|
299
|
-
return ie.push(new Blob([ne.data], {
|
|
300
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
301
|
-
})), ne;
|
|
302
|
-
}));
|
|
303
|
-
await Promise.all(x);
|
|
304
|
-
}
|
|
305
|
-
y = {
|
|
306
|
-
suffix: "." + ((q = i == null ? void 0 : i.split(".")) == null ? void 0 : q[((g = i == null ? void 0 : i.split(".")) == null ? void 0 : g.length) - 1]),
|
|
307
|
-
blob: new Blob([T.data], {
|
|
308
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
309
|
-
}),
|
|
310
|
-
mtlBlobs: ie
|
|
311
|
-
};
|
|
312
|
-
} else {
|
|
313
|
-
T = await re.get(i, {
|
|
314
|
-
responseType: "blob",
|
|
315
|
-
headers: {
|
|
316
|
-
"Content-Type": "application/json"
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
let ie = [];
|
|
320
|
-
if (((Ce = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : Ce.length) > 0) {
|
|
321
|
-
let x = await ((Ve = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : Ve.map(async (pe) => {
|
|
322
|
-
let ne = await re.get(pe, {
|
|
323
|
-
responseType: "blob",
|
|
324
|
-
headers: {
|
|
325
|
-
"Content-Type": "application/json"
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
return ie.push(new Blob([ne.data], {
|
|
329
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
330
|
-
})), ne;
|
|
331
|
-
}));
|
|
332
|
-
await Promise.all(x);
|
|
333
|
-
}
|
|
334
|
-
y = {
|
|
335
|
-
suffix: "." + ((je = i == null ? void 0 : i.split(".")) == null ? void 0 : je[((Re = i == null ? void 0 : i.split(".")) == null ? void 0 : Re.length) - 1]),
|
|
336
|
-
blob: new Blob([T.data], {
|
|
337
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
338
|
-
}),
|
|
339
|
-
mtlBlobs: ie
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
y && l.push(y);
|
|
343
|
-
}));
|
|
344
|
-
await Promise.all(d), (l == null ? void 0 : l.length) !== 0 && ((k = o.value) == null || k.loadModelByDefaultPath(l));
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
{ immediate: !0, deep: !0 }
|
|
348
|
-
);
|
|
349
|
-
const ge = async () => {
|
|
350
|
-
var s, p, a, k;
|
|
351
|
-
me.setImportLoading(!0);
|
|
352
|
-
const r = await bt({
|
|
353
|
-
key: {
|
|
354
|
-
systemKey: sessionStorage.getItem("systemKey")
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
if (((s = r == null ? void 0 : r.data) == null ? void 0 : s.code) === 200) {
|
|
358
|
-
let l = (k = (a = (p = r == null ? void 0 : r.data) == null ? void 0 : p.result) == null ? void 0 : a.map((d) => {
|
|
359
|
-
var n;
|
|
360
|
-
if (((n = d == null ? void 0 : d.key) == null ? void 0 : n.layer) !== "superAdmin")
|
|
361
|
-
return d == null ? void 0 : d.id;
|
|
362
|
-
})) == null ? void 0 : k.filter((d) => d);
|
|
363
|
-
await Bt({
|
|
364
|
-
ids: l
|
|
365
|
-
}), me.setRawMenus([]);
|
|
366
|
-
}
|
|
367
|
-
me.setImportLoading(!1);
|
|
368
|
-
}, _e = async () => {
|
|
369
|
-
await Dt();
|
|
370
|
-
};
|
|
371
|
-
return (r, s) => {
|
|
372
|
-
const p = E("el-dialog"), a = E("el-button"), k = E("el-avatar"), l = E("el-header"), d = E("el-container"), n = E("el-icon"), T = E("el-input"), y = E("el-aside"), i = E("router-view"), P = E("el-main"), j = lt("loading");
|
|
373
|
-
return _(), M(Me, null, [
|
|
374
|
-
c(p, {
|
|
375
|
-
modelValue: $.value,
|
|
376
|
-
"onUpdate:modelValue": s[0] || (s[0] = (C) => $.value = C),
|
|
377
|
-
style: { height: "700px", width: "1800px" }
|
|
378
|
-
}, {
|
|
379
|
-
default: f(() => [
|
|
380
|
-
c(ze, {
|
|
381
|
-
ref_key: "threeModelRef",
|
|
382
|
-
ref: o,
|
|
383
|
-
onGetAnimationData: ee,
|
|
384
|
-
animationData: H.value
|
|
385
|
-
}, null, 8, ["animationData"])
|
|
386
|
-
]),
|
|
387
|
-
_: 1
|
|
388
|
-
}, 8, ["modelValue"]),
|
|
389
|
-
Se(c(d, { class: "client-container" }, {
|
|
390
|
-
default: f(() => [
|
|
391
|
-
c(l, { class: "client-structure-header" }, {
|
|
392
|
-
default: f(() => {
|
|
393
|
-
var C;
|
|
394
|
-
return [
|
|
395
|
-
A("div", Ut, [
|
|
396
|
-
c(a, {
|
|
397
|
-
id: "transparentBgButton",
|
|
398
|
-
onClick: m(ut)
|
|
399
|
-
}, {
|
|
400
|
-
default: f(() => s[4] || (s[4] = [
|
|
401
|
-
ce(" 返回页面 ")
|
|
402
|
-
])),
|
|
403
|
-
_: 1,
|
|
404
|
-
__: [4]
|
|
405
|
-
}, 8, ["onClick"]),
|
|
406
|
-
c(a, {
|
|
407
|
-
id: "transparentBgButton",
|
|
408
|
-
onClick: s[1] || (s[1] = (b) => {
|
|
409
|
-
var e, g;
|
|
410
|
-
return m(dt)((g = (e = m(B)) == null ? void 0 : e.map((q) => q.value)) == null ? void 0 : g.join("/"));
|
|
411
|
-
})
|
|
412
|
-
}, {
|
|
413
|
-
icon: f(() => [
|
|
414
|
-
c(Fe, { name: "Store" })
|
|
415
|
-
]),
|
|
416
|
-
default: f(() => [
|
|
417
|
-
s[5] || (s[5] = ce(" 保存页面 "))
|
|
418
|
-
]),
|
|
419
|
-
_: 1,
|
|
420
|
-
__: [5]
|
|
421
|
-
})
|
|
422
|
-
]),
|
|
423
|
-
A("div", Kt, [
|
|
424
|
-
c(Lt, {
|
|
425
|
-
breadArray: m(B),
|
|
426
|
-
onClick: m(mt)
|
|
427
|
-
}, null, 8, ["breadArray", "onClick"])
|
|
428
|
-
]),
|
|
429
|
-
A("div", Ot, [
|
|
430
|
-
Ae(r.$slots, "default", {}, void 0, !0),
|
|
431
|
-
c(k, {
|
|
432
|
-
size: 35,
|
|
433
|
-
src: (C = m(N)) == null ? void 0 : C.avatarUrl
|
|
434
|
-
}, {
|
|
435
|
-
default: f(() => {
|
|
436
|
-
var b;
|
|
437
|
-
return [
|
|
438
|
-
ce(de(((b = m(N)) == null ? void 0 : b.account) ?? "未知"), 1)
|
|
439
|
-
];
|
|
440
|
-
}),
|
|
441
|
-
_: 1
|
|
442
|
-
}, 8, ["src"])
|
|
443
|
-
])
|
|
444
|
-
];
|
|
445
|
-
}),
|
|
446
|
-
_: 3
|
|
447
|
-
}),
|
|
448
|
-
m(X) === "edit" ? (_(), Q(d, {
|
|
449
|
-
key: 0,
|
|
450
|
-
class: "model-operate",
|
|
451
|
-
style: { "margin-top": "10px", height: "0px" }
|
|
452
|
-
}, {
|
|
453
|
-
default: f(() => [
|
|
454
|
-
A("div", Nt, [
|
|
455
|
-
c(Je)
|
|
456
|
-
]),
|
|
457
|
-
A("div", zt, [
|
|
458
|
-
c(We)
|
|
459
|
-
]),
|
|
460
|
-
A("div", Gt, [
|
|
461
|
-
c(qe)
|
|
462
|
-
])
|
|
463
|
-
]),
|
|
464
|
-
_: 1
|
|
465
|
-
})) : U("", !0)
|
|
466
|
-
]),
|
|
467
|
-
_: 3
|
|
468
|
-
}, 512), [
|
|
469
|
-
[Ne, m(X) === "edit"]
|
|
470
|
-
]),
|
|
471
|
-
Se((_(), Q(d, {
|
|
472
|
-
class: "client-container",
|
|
473
|
-
"element-loading-text": "正在加载页面数据..."
|
|
474
|
-
}, {
|
|
475
|
-
default: f(() => [
|
|
476
|
-
c(l, { class: "client-header" }, {
|
|
477
|
-
default: f(() => [
|
|
478
|
-
A("div", {
|
|
479
|
-
class: "client-header-logo",
|
|
480
|
-
onClick: se
|
|
481
|
-
}, de(m(h) === "" ? "ISIP" : m(h)), 1),
|
|
482
|
-
A("div", Xt, [
|
|
483
|
-
c(Vt, { mode: "horizontal" })
|
|
484
|
-
]),
|
|
485
|
-
A("div", Ht, [
|
|
486
|
-
c(T, {
|
|
487
|
-
modelValue: I.value,
|
|
488
|
-
"onUpdate:modelValue": s[2] || (s[2] = (C) => I.value = C),
|
|
489
|
-
clearable: "",
|
|
490
|
-
placeholder: "搜索"
|
|
491
|
-
}, {
|
|
492
|
-
prefix: f(() => [
|
|
493
|
-
c(n, { class: "el-input__icon" }, {
|
|
494
|
-
default: f(() => [
|
|
495
|
-
c(m(kt))
|
|
496
|
-
]),
|
|
497
|
-
_: 1
|
|
498
|
-
})
|
|
499
|
-
]),
|
|
500
|
-
_: 1
|
|
501
|
-
}, 8, ["modelValue"]),
|
|
502
|
-
D.showButton ? (_(), Q(a, {
|
|
503
|
-
key: 0,
|
|
504
|
-
id: "transparentBgButton",
|
|
505
|
-
onClick: u
|
|
506
|
-
}, {
|
|
507
|
-
icon: f(() => [
|
|
508
|
-
c(Fe, { name: "App" })
|
|
509
|
-
]),
|
|
510
|
-
default: f(() => [
|
|
511
|
-
s[6] || (s[6] = ce(" 生成APP "))
|
|
512
|
-
]),
|
|
513
|
-
_: 1,
|
|
514
|
-
__: [6]
|
|
515
|
-
})) : U("", !0),
|
|
516
|
-
D.showButton && m(X) === "view" ? (_(), Q(a, {
|
|
517
|
-
key: 1,
|
|
518
|
-
id: "transparentBgButton",
|
|
519
|
-
onClick: m(pt)
|
|
520
|
-
}, {
|
|
521
|
-
icon: f(() => [
|
|
522
|
-
c(Fe, { name: "write" })
|
|
523
|
-
]),
|
|
524
|
-
default: f(() => [
|
|
525
|
-
s[7] || (s[7] = ce(" 修改布局 "))
|
|
526
|
-
]),
|
|
527
|
-
_: 1,
|
|
528
|
-
__: [7]
|
|
529
|
-
}, 8, ["onClick"])) : U("", !0),
|
|
530
|
-
Ae(r.$slots, "default", {}, void 0, !0),
|
|
531
|
-
c(xt, null, {
|
|
532
|
-
dropTitle: f(() => {
|
|
533
|
-
var C;
|
|
534
|
-
return [
|
|
535
|
-
c(At, {
|
|
536
|
-
size: "35",
|
|
537
|
-
avatarUrl: (C = m(N)) == null ? void 0 : C.avatarUrl,
|
|
538
|
-
showCropper: !1,
|
|
539
|
-
banClick: !0
|
|
540
|
-
}, {
|
|
541
|
-
avatarDefault: f(() => {
|
|
542
|
-
var b, e, g;
|
|
543
|
-
return [
|
|
544
|
-
ce(de((b = m(N)) != null && b.account ? (e = m(N)) == null ? void 0 : e.account : ((g = m(N)) == null ? void 0 : g.账号) ?? "未知"), 1)
|
|
545
|
-
];
|
|
546
|
-
}),
|
|
547
|
-
_: 1
|
|
548
|
-
}, 8, ["avatarUrl"])
|
|
549
|
-
];
|
|
550
|
-
}),
|
|
551
|
-
dropMenu: f(() => [
|
|
552
|
-
A("div", Jt, [
|
|
553
|
-
c(ve, {
|
|
554
|
-
emptyColor: !0,
|
|
555
|
-
class: "menu-button",
|
|
556
|
-
onClickTrigger: ge,
|
|
557
|
-
modelValue: "清空数据",
|
|
558
|
-
buttonType: ""
|
|
559
|
-
}),
|
|
560
|
-
c(ve, {
|
|
561
|
-
emptyColor: !0,
|
|
562
|
-
class: "menu-button",
|
|
563
|
-
onClickTrigger: z,
|
|
564
|
-
modelValue: "退出登录",
|
|
565
|
-
buttonType: ""
|
|
566
|
-
})
|
|
567
|
-
])
|
|
568
|
-
]),
|
|
569
|
-
_: 1
|
|
570
|
-
})
|
|
571
|
-
])
|
|
572
|
-
]),
|
|
573
|
-
_: 3
|
|
574
|
-
}),
|
|
575
|
-
c(d, { class: "client-body" }, {
|
|
576
|
-
default: f(() => [
|
|
577
|
-
c(P, { class: "client-main" }, {
|
|
578
|
-
default: f(() => {
|
|
579
|
-
var C, b;
|
|
580
|
-
return [
|
|
581
|
-
c(y, { class: "client-aside" }, {
|
|
582
|
-
default: f(() => [
|
|
583
|
-
c(Ft, { mode: "vertical" })
|
|
584
|
-
]),
|
|
585
|
-
_: 1
|
|
586
|
-
}),
|
|
587
|
-
Se((_(), M("div", Wt, [
|
|
588
|
-
m(ye) !== "" ? (_(), M("div", qt, [
|
|
589
|
-
c(ve, {
|
|
590
|
-
class: "calculator-content back-content",
|
|
591
|
-
onClickTrigger: s[3] || (s[3] = (e) => m(ht)()),
|
|
592
|
-
modelValue: "返回"
|
|
593
|
-
})
|
|
594
|
-
])) : U("", !0),
|
|
595
|
-
A("div", Qt, [
|
|
596
|
-
F.value ? (_(), Q(i, { key: 0 })) : U("", !0),
|
|
597
|
-
F.value ? U("", !0) : (_(!0), M(Me, { key: 1 }, Xe((C = m(he)(m(we))) == null ? void 0 : C.filter((e) => e.comp !== "FormTop"), (e, g) => {
|
|
598
|
-
var q;
|
|
599
|
-
return _(), M("div", {
|
|
600
|
-
class: "item-view-content",
|
|
601
|
-
key: g
|
|
602
|
-
}, [
|
|
603
|
-
((q = e == null ? void 0 : e.comp) == null ? void 0 : q.toUpperCase()) !== "TABLE" && e.name ? (_(), M("div", Yt, de(e.name), 1)) : U("", !0),
|
|
604
|
-
(_(), Q(st(m(ft)(e.comp)), {
|
|
605
|
-
compName: e.name,
|
|
606
|
-
itemData: e == null ? void 0 : e.compData,
|
|
607
|
-
childItemData: e == null ? void 0 : e.itemChildData,
|
|
608
|
-
key: (e == null ? void 0 : e.id) ?? g,
|
|
609
|
-
onChange: m(_t),
|
|
610
|
-
index: (e == null ? void 0 : e.id) ?? g,
|
|
611
|
-
onContentChange: m(gt),
|
|
612
|
-
onPageChange: m(yt)
|
|
613
|
-
}, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
614
|
-
]);
|
|
615
|
-
}), 128)),
|
|
616
|
-
!F.value && !((b = m(he)(m(we))) != null && b.find((e) => e.comp === "methodButton")) ? (_(), M("div", Zt, [
|
|
617
|
-
m(ye) !== "" ? (_(), Q(ve, {
|
|
618
|
-
key: 0,
|
|
619
|
-
class: "calculator-content",
|
|
620
|
-
onClickTrigger: _e,
|
|
621
|
-
modelValue: "保存"
|
|
622
|
-
})) : U("", !0)
|
|
623
|
-
])) : U("", !0)
|
|
624
|
-
])
|
|
625
|
-
])), [
|
|
626
|
-
[j, m(De)]
|
|
627
|
-
])
|
|
628
|
-
];
|
|
629
|
-
}),
|
|
630
|
-
_: 1
|
|
631
|
-
})
|
|
632
|
-
]),
|
|
633
|
-
_: 1
|
|
634
|
-
}),
|
|
635
|
-
A("div", null, [
|
|
636
|
-
c(Mt, {
|
|
637
|
-
visible: V.value,
|
|
638
|
-
onBeforeDestroy: W,
|
|
639
|
-
style: { height: "700px", width: "1000px" }
|
|
640
|
-
}, {
|
|
641
|
-
default: f(() => [
|
|
642
|
-
c(ze, {
|
|
643
|
-
ref_key: "threeModelRef",
|
|
644
|
-
ref: o
|
|
645
|
-
}, null, 512)
|
|
646
|
-
]),
|
|
647
|
-
_: 1
|
|
648
|
-
}, 8, ["visible"])
|
|
649
|
-
])
|
|
650
|
-
]),
|
|
651
|
-
_: 3
|
|
652
|
-
})), [
|
|
653
|
-
[Ne, m(X) === "view"],
|
|
654
|
-
[j, m(Be)]
|
|
655
|
-
])
|
|
656
|
-
], 64);
|
|
657
|
-
};
|
|
658
|
-
}
|
|
659
|
-
}), ta = /* @__PURE__ */ fe(ea, [["__scopeId", "data-v-132eb7ca"]]), aa = { class: "system-wrap" }, na = {
|
|
660
|
-
__name: "index",
|
|
661
|
-
props: {
|
|
662
|
-
windowConfig: {
|
|
663
|
-
type: Object,
|
|
664
|
-
default: () => {
|
|
665
|
-
}
|
|
666
|
-
},
|
|
667
|
-
platform: {
|
|
668
|
-
type: String,
|
|
669
|
-
default: "browser"
|
|
670
|
-
},
|
|
671
|
-
showButton: {
|
|
672
|
-
type: Boolean,
|
|
673
|
-
default: !0
|
|
674
|
-
},
|
|
675
|
-
content: String,
|
|
676
|
-
jsonContents: Array
|
|
677
|
-
},
|
|
678
|
-
emits: ["buildContent", "showChild"],
|
|
679
|
-
setup(D, { emit: te }) {
|
|
680
|
-
const t = $e(oe), B = Qe(oe), $ = Pe();
|
|
681
|
-
w(!1);
|
|
682
|
-
const H = w(!0), o = D, G = te, V = (S) => {
|
|
683
|
-
G("showChild", S);
|
|
684
|
-
}, K = He(() => {
|
|
685
|
-
switch (o == null ? void 0 : o.platform) {
|
|
686
|
-
case "browser":
|
|
687
|
-
return rt;
|
|
688
|
-
case "client":
|
|
689
|
-
return it;
|
|
690
|
-
}
|
|
691
|
-
}), v = (S) => {
|
|
692
|
-
const O = document.documentElement;
|
|
693
|
-
S == null || S.forEach((J) => {
|
|
694
|
-
O.style.setProperty(J.name, J.value);
|
|
695
|
-
});
|
|
696
|
-
};
|
|
697
|
-
Y(() => o.platform, (S, O) => {
|
|
698
|
-
S && v(K.value);
|
|
699
|
-
}, { immediate: !0 });
|
|
700
|
-
const le = () => {
|
|
701
|
-
G("buildContent");
|
|
702
|
-
};
|
|
703
|
-
return Y(
|
|
704
|
-
() => [o == null ? void 0 : o.content, o == null ? void 0 : o.jsonContents],
|
|
705
|
-
async () => {
|
|
706
|
-
var J, Z, N, ae;
|
|
707
|
-
if (((J = o == null ? void 0 : o.jsonContents) == null ? void 0 : J.length) > 0) {
|
|
708
|
-
t.setOriginalData(o == null ? void 0 : o.jsonContents);
|
|
709
|
-
return;
|
|
710
|
-
}
|
|
711
|
-
if (!(o != null && o.content) || ((Z = o == null ? void 0 : o.content) == null ? void 0 : Z.length) === 0) return;
|
|
712
|
-
H.value = !0, $.setImportLoading(!0);
|
|
713
|
-
let S = [], O = [];
|
|
714
|
-
B.setSelectTitle([]), B.setSelectIndex(""), B.setSelectMenu(""), (ae = (N = o == null ? void 0 : o.content) == null ? void 0 : N.filter((X) => X !== "")) == null || ae.forEach((X) => {
|
|
715
|
-
O.push(Ct(X));
|
|
716
|
-
}), S = O == null ? void 0 : O[0], await wt(S), await Ze(), t.setOriginalData(S), $.setImportLoading(!1);
|
|
717
|
-
},
|
|
718
|
-
{ deep: !0, immediate: !0 }
|
|
719
|
-
), (S, O) => (_(), M("div", aa, [
|
|
720
|
-
c(ta, {
|
|
721
|
-
windowConfig: D.windowConfig,
|
|
722
|
-
showButton: D.showButton,
|
|
723
|
-
onBuildContent: le,
|
|
724
|
-
onShowChild: V
|
|
725
|
-
}, {
|
|
726
|
-
default: f(() => [
|
|
727
|
-
Ae(S.$slots, "default", {}, void 0, !0)
|
|
728
|
-
]),
|
|
729
|
-
_: 3
|
|
730
|
-
}, 8, ["windowConfig", "showButton"])
|
|
731
|
-
]));
|
|
732
|
-
}
|
|
733
|
-
}, oa = /* @__PURE__ */ fe(na, [["__scopeId", "data-v-9ee9b396"]]), la = { class: "add-model-content" }, sa = {
|
|
734
|
-
key: 0,
|
|
735
|
-
class: "model-operate"
|
|
736
|
-
}, ia = { class: "model-select" }, ra = { class: "model-fill" }, ca = {
|
|
737
|
-
key: 1,
|
|
738
|
-
class: "model-view"
|
|
739
|
-
}, ua = {
|
|
740
|
-
__name: "index",
|
|
741
|
-
props: {
|
|
742
|
-
mode: {
|
|
743
|
-
type: String,
|
|
744
|
-
default: "view"
|
|
745
|
-
},
|
|
746
|
-
content: {
|
|
747
|
-
type: String,
|
|
748
|
-
default: ""
|
|
749
|
-
},
|
|
750
|
-
jsonContents: {
|
|
751
|
-
type: Array,
|
|
752
|
-
default: () => []
|
|
753
|
-
},
|
|
754
|
-
showButton: {
|
|
755
|
-
type: Boolean,
|
|
756
|
-
default: !0
|
|
757
|
-
},
|
|
758
|
-
pathContent: {
|
|
759
|
-
type: String,
|
|
760
|
-
default: ""
|
|
761
|
-
},
|
|
762
|
-
pageKey: {
|
|
763
|
-
type: String,
|
|
764
|
-
default: ""
|
|
765
|
-
}
|
|
766
|
-
},
|
|
767
|
-
emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
|
|
768
|
-
setup(D, { emit: te }) {
|
|
769
|
-
const t = D, B = te, $ = w([]), H = w(0), o = w([]), G = w([]), V = w(0), K = $e(oe), v = Pe(oe), { itemData: le, originalData: S } = ue(K), { activeMenuPath: O, platform: J } = ue(v), Z = w(null), N = w(0), ae = w([]);
|
|
770
|
-
w("");
|
|
771
|
-
const X = w(0), ye = () => {
|
|
772
|
-
B("buildContent");
|
|
773
|
-
};
|
|
774
|
-
Y(
|
|
775
|
-
() => t == null ? void 0 : t.pageKey,
|
|
776
|
-
async () => {
|
|
777
|
-
let h = {};
|
|
778
|
-
if ((t == null ? void 0 : t.pageKey) !== "") {
|
|
779
|
-
const R = await ke(t == null ? void 0 : t.pageKey, sessionStorage.getItem("systemKey"), ""), I = await ke("弯管仿真加工管理/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
780
|
-
let F = ["管长", "外径"], z = {};
|
|
781
|
-
I == null || I.forEach((u) => {
|
|
782
|
-
var ee;
|
|
783
|
-
(u == null ? void 0 : u.comp) === "Form" && ((ee = u == null ? void 0 : u.compData) == null || ee.forEach((L) => {
|
|
784
|
-
var se;
|
|
785
|
-
(L == null ? void 0 : L.key) === "formContent" && ((se = L == null ? void 0 : L.contents) == null || se.forEach((W) => {
|
|
786
|
-
F.includes(W == null ? void 0 : W.key) && (z[W.key] = W.value);
|
|
787
|
-
}));
|
|
788
|
-
}));
|
|
789
|
-
}), R == null || R.forEach((u) => {
|
|
790
|
-
var ee, L, se, W, ge, _e;
|
|
791
|
-
if ((u == null ? void 0 : u.comp) === "Table") {
|
|
792
|
-
let r = [], s = (se = (L = (ee = u == null ? void 0 : u.compData) == null ? void 0 : ee.find((a) => (a == null ? void 0 : a.key) === "header")) == null ? void 0 : L.contents) == null ? void 0 : se.map((a) => a == null ? void 0 : a.label), p = (_e = (ge = (W = u == null ? void 0 : u.compData) == null ? void 0 : W.find((a) => (a == null ? void 0 : a.key) === "tableContents")) == null ? void 0 : ge.contents) == null ? void 0 : _e.map((a) => (a = a == null ? void 0 : a.filter((k) => !(k != null && k.id)), a));
|
|
793
|
-
p == null || p.forEach((a) => {
|
|
794
|
-
r.push(Ye(a, s == null ? void 0 : s.filter((k) => k !== "操作")));
|
|
795
|
-
}), h[u.name] = r, h[u.name + "Content"] = u;
|
|
796
|
-
}
|
|
797
|
-
}), h.extra = z, B("threeData", h);
|
|
798
|
-
}
|
|
799
|
-
},
|
|
800
|
-
{ deep: !0, immediate: !0 }
|
|
801
|
-
);
|
|
802
|
-
const be = (h) => {
|
|
803
|
-
B("openThreeBuild", h);
|
|
804
|
-
};
|
|
805
|
-
Y(
|
|
806
|
-
() => t == null ? void 0 : t.pathContent,
|
|
807
|
-
() => {
|
|
808
|
-
(t == null ? void 0 : t.pathContent) !== "" && K.setSystemPath(t == null ? void 0 : t.pathContent);
|
|
809
|
-
},
|
|
810
|
-
{
|
|
811
|
-
deep: !0,
|
|
812
|
-
immediate: !0
|
|
813
|
-
}
|
|
814
|
-
);
|
|
815
|
-
const me = (h) => {
|
|
816
|
-
B("contentChange", h);
|
|
817
|
-
}, Be = (h) => {
|
|
818
|
-
var I;
|
|
819
|
-
const R = (I = he(h == null ? void 0 : h.wholeValue)) == null ? void 0 : I.map((F) => {
|
|
820
|
-
var z;
|
|
821
|
-
return (F == null ? void 0 : F.comp) === "Form" && (F.compData = (z = F.compData) == null ? void 0 : z.map((u) => ((u == null ? void 0 : u.key) === "formContent" && (u.contents = St(u == null ? void 0 : u.contents)), u))), F;
|
|
822
|
-
});
|
|
823
|
-
B("change", {
|
|
824
|
-
originalContents: S.value,
|
|
825
|
-
currentContents: h == null ? void 0 : h.wholeValue,
|
|
826
|
-
editContent: h == null ? void 0 : h.editValue,
|
|
827
|
-
arrayToContents: R
|
|
828
|
-
});
|
|
829
|
-
};
|
|
830
|
-
Y(
|
|
831
|
-
() => o.value,
|
|
832
|
-
() => {
|
|
833
|
-
X.value === o.value.length && o.value.length !== 0 && ($.value = o.value);
|
|
834
|
-
},
|
|
835
|
-
{ deep: !0, immediate: !0 }
|
|
836
|
-
);
|
|
837
|
-
const Te = () => {
|
|
838
|
-
Z.value !== null && Z.value.click();
|
|
839
|
-
}, De = async (h) => {
|
|
840
|
-
v.setActiveMenuPath(""), v.setActiveTopMenuPath(""), v.setAsideMenus([]);
|
|
841
|
-
const R = h.target.files;
|
|
842
|
-
if (!R) return;
|
|
843
|
-
new FileReader(), $.value = [], o.value = [], X.value = R.length;
|
|
844
|
-
const I = Array.from(R).map(async (F) => await new Promise((z) => {
|
|
845
|
-
const u = new FileReader();
|
|
846
|
-
u.onload = (ee) => {
|
|
847
|
-
try {
|
|
848
|
-
o.value.push(ee.target.result), N.value++;
|
|
849
|
-
} catch (L) {
|
|
850
|
-
console.error("解析失败:", L);
|
|
851
|
-
return;
|
|
852
|
-
}
|
|
853
|
-
}, u.onerror = () => z(`读取 ${F.name} 失败`), u.readAsText(F), h.target.value = "", Z.value = null, H.value++;
|
|
854
|
-
}));
|
|
855
|
-
await Promise.all(I);
|
|
856
|
-
};
|
|
857
|
-
return Y(
|
|
858
|
-
() => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
|
|
859
|
-
async () => {
|
|
860
|
-
await Ze(), $.value = t.content, G.value = t == null ? void 0 : t.jsonContents;
|
|
861
|
-
},
|
|
862
|
-
{ deep: !0, immediate: !0 }
|
|
863
|
-
), Y(
|
|
864
|
-
() => N.value,
|
|
865
|
-
() => {
|
|
866
|
-
var h;
|
|
867
|
-
((h = ae.value) == null ? void 0 : h.length) !== 0 && (K.setOriginalData(ae.value), K.setItemData(ae.value));
|
|
868
|
-
},
|
|
869
|
-
{ deep: !0, immediate: !0 }
|
|
870
|
-
), (h, R) => {
|
|
871
|
-
const I = E("svg-icon"), F = E("el-button");
|
|
872
|
-
return _(), M("div", la, [
|
|
873
|
-
(t == null ? void 0 : t.mode) === "edit" ? (_(), M("div", sa, [
|
|
874
|
-
A("div", ia, [
|
|
875
|
-
c(Je)
|
|
876
|
-
]),
|
|
877
|
-
(_(), M("div", {
|
|
878
|
-
class: "model-show",
|
|
879
|
-
key: V.value
|
|
880
|
-
}, [
|
|
881
|
-
c(We)
|
|
882
|
-
])),
|
|
883
|
-
A("div", ra, [
|
|
884
|
-
c(qe)
|
|
885
|
-
])
|
|
886
|
-
])) : U("", !0),
|
|
887
|
-
(t == null ? void 0 : t.mode) === "view" ? (_(), M("div", ca, [
|
|
888
|
-
(_(), Q(oa, {
|
|
889
|
-
showButton: D.showButton,
|
|
890
|
-
platform: m(J),
|
|
891
|
-
content: $.value,
|
|
892
|
-
onChange: Be,
|
|
893
|
-
jsonContents: G.value,
|
|
894
|
-
onContentChange: me,
|
|
895
|
-
onBuildContent: ye,
|
|
896
|
-
key: V.value,
|
|
897
|
-
onShowChild: be
|
|
898
|
-
}, {
|
|
899
|
-
default: f(() => {
|
|
900
|
-
var z;
|
|
901
|
-
return [
|
|
902
|
-
((z = t == null ? void 0 : t.jsonContents) == null ? void 0 : z.length) === 0 && (t != null && t.showButton) ? (_(), Q(F, {
|
|
903
|
-
key: 0,
|
|
904
|
-
id: "transparentBgButton",
|
|
905
|
-
onClick: Te
|
|
906
|
-
}, {
|
|
907
|
-
icon: f(() => [
|
|
908
|
-
c(I, { name: "import" })
|
|
909
|
-
]),
|
|
910
|
-
default: f(() => [
|
|
911
|
-
(_(), M("input", {
|
|
912
|
-
type: "file",
|
|
913
|
-
key: H.value,
|
|
914
|
-
ref_key: "fileInput",
|
|
915
|
-
ref: Z,
|
|
916
|
-
accept: ".txt, .inm, .iml, .imd",
|
|
917
|
-
onChange: De,
|
|
918
|
-
style: { display: "none" },
|
|
919
|
-
multiple: ""
|
|
920
|
-
}, null, 32)),
|
|
921
|
-
R[0] || (R[0] = ce(" 导入模型 "))
|
|
922
|
-
]),
|
|
923
|
-
_: 1,
|
|
924
|
-
__: [0]
|
|
925
|
-
})) : U("", !0)
|
|
926
|
-
];
|
|
927
|
-
}),
|
|
928
|
-
_: 1
|
|
929
|
-
}, 8, ["showButton", "platform", "content", "jsonContents"]))
|
|
930
|
-
])) : U("", !0)
|
|
931
|
-
]);
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
}, xa = /* @__PURE__ */ fe(ua, [["__scopeId", "data-v-264dc673"]]);
|
|
935
|
-
export {
|
|
936
|
-
xa as default
|
|
937
|
-
};
|