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