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