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