ss-component-new 1.1.740 → 1.1.742
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-B-gXMxBc.js → index-Bxd155-g.js} +372 -368
- package/dist/{index-DdGy97FD.cjs → index-CbvJGzNQ.cjs} +1 -1
- package/dist/{index-DcZOchDG.cjs → index-D5gg08d3.cjs} +1 -1
- package/dist/{index-D3JHR_ip.js → index-erHTEnTe.js} +8 -8
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +1 -1
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
- /package/dist/{index.vue_vue_type_style_index_0_scoped_c80f0a23_lang-Au5fVfKN.js → index.vue_vue_type_style_index_0_scoped_c5e0115b_lang-Au5fVfKN.js} +0 -0
- /package/dist/{index.vue_vue_type_style_index_0_scoped_c80f0a23_lang-CN2oYxtZ.cjs → index.vue_vue_type_style_index_0_scoped_c5e0115b_lang-CN2oYxtZ.cjs} +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { resolveComponent as V, createBlock as
|
|
1
|
+
import { resolveComponent as V, createBlock as ee, openBlock as B, withCtx as f, createVNode as C, createElementVNode as y, toDisplayString as L, ref as E, onMounted as et, watch as Z, createElementBlock as D, Fragment as je, renderList as Je, createCommentVNode as J, normalizeStyle as tt, defineComponent as dt, provide as Ct, computed as We, resolveDirective as yt, withDirectives as Te, unref as u, createTextVNode as re, renderSlot as Ne, vShow as Xe, resolveDynamicComponent as ht, normalizeClass as Ze, nextTick as mt } from "vue";
|
|
2
2
|
import { m as at, a as ot, b as nt } from "./index-qwea9F5R.js";
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as pt, b as Bt } from "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DtoSEF10.js";
|
|
4
4
|
import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { _ as wt, s as Ue, o as
|
|
6
|
-
import { p as
|
|
7
|
-
import { S as
|
|
5
|
+
import { _ as wt, s as Ue, o as It, c as ft, a as Et, b as kt, d as Qt, g as St, e as vt, f as Rt, h as Ut, i as bt, j as jt } from "./index.vue_vue_type_style_index_0_scoped_c5e0115b_lang-Au5fVfKN.js";
|
|
6
|
+
import { p as ue, s as ce, a as lt, u as xe, c as Ee } from "./index.vue_vue_type_style_index_1_lang-BcbZuvjK.js";
|
|
7
|
+
import { S as de } from "./index-BHtNKL1L.js";
|
|
8
8
|
import { u as He } from "./modelComp-CrN39qNS.js";
|
|
9
9
|
import { o as Dt } from "./index-hmAJvmph.js";
|
|
10
10
|
import { a as Yt } from "./array-DzKpxfJI.js";
|
|
11
|
-
import { u as st, a as
|
|
11
|
+
import { u as st, a as Kt } from "./index-DFOanwRw.js";
|
|
12
12
|
import { g as De, a as it, l as rt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CIBPRoRG.js";
|
|
13
|
-
import { a as
|
|
13
|
+
import { a as Ce, g as be, b as ct, E as he, c as Gt, u as Pt } from "./index-DHX6rKjz.js";
|
|
14
14
|
import "./STLLoader-DofhZbOw.js";
|
|
15
15
|
import "./index-BWTahH9H.js";
|
|
16
16
|
import { useRouter as Ft } from "vue-router";
|
|
17
17
|
import Tt from "./index-58FSA1fk.js";
|
|
18
18
|
import ze from "./threeModel-Bq0jevec.js";
|
|
19
|
-
import { d as _e, _ as Mt, a as
|
|
19
|
+
import { d as _e, _ as Mt, a as me, s as ut } from "./index-C-iXZX_6.js";
|
|
20
20
|
import { _ as $e } from "./index.vue_vue_type_script_setup_true_lang-Csfnc8XO.js";
|
|
21
21
|
import { v as Nt } from "./index-2JPI_qsa.js";
|
|
22
22
|
const Jt = { class: "menu-title" };
|
|
23
|
-
function Wt(
|
|
24
|
-
const
|
|
25
|
-
return B(),
|
|
26
|
-
mode:
|
|
27
|
-
menuList:
|
|
28
|
-
onClickMenu:
|
|
29
|
-
onOpenMenu:
|
|
30
|
-
onCloseMenu:
|
|
23
|
+
function Wt(T, ne, l, U, O, x) {
|
|
24
|
+
const A = V("svg-icon"), P = V("ssMenu");
|
|
25
|
+
return B(), ee(P, {
|
|
26
|
+
mode: T.mode,
|
|
27
|
+
menuList: T.renderMenuList,
|
|
28
|
+
onClickMenu: T.clickMenu,
|
|
29
|
+
onOpenMenu: T.openMenu,
|
|
30
|
+
onCloseMenu: T.closeMenu
|
|
31
31
|
}, {
|
|
32
|
-
title:
|
|
33
|
-
C(
|
|
32
|
+
title: f(({ menu: M }) => [
|
|
33
|
+
C(A, {
|
|
34
34
|
class: "menu-icon",
|
|
35
35
|
name: M.icon ?? "default",
|
|
36
36
|
style: { "margin-right": "8px" }
|
|
@@ -52,33 +52,33 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
emits: ["click"],
|
|
55
|
-
setup(
|
|
56
|
-
const
|
|
55
|
+
setup(T, { emit: ne }) {
|
|
56
|
+
const l = T, U = E([]), O = ne;
|
|
57
57
|
et(() => {
|
|
58
|
-
U.value =
|
|
59
|
-
}),
|
|
60
|
-
() =>
|
|
58
|
+
U.value = l == null ? void 0 : l.breadArray;
|
|
59
|
+
}), Z(
|
|
60
|
+
() => l == null ? void 0 : l.breadArray,
|
|
61
61
|
() => {
|
|
62
|
-
U.value =
|
|
62
|
+
U.value = l == null ? void 0 : l.breadArray;
|
|
63
63
|
},
|
|
64
64
|
{ deep: !0, immediate: !0 }
|
|
65
65
|
);
|
|
66
|
-
const x = (
|
|
67
|
-
O("click",
|
|
66
|
+
const x = (A) => {
|
|
67
|
+
O("click", A);
|
|
68
68
|
};
|
|
69
|
-
return (
|
|
70
|
-
(B(!0), D(je, null, Je(U.value, (M,
|
|
71
|
-
var
|
|
69
|
+
return (A, P) => (B(), D("div", Ht, [
|
|
70
|
+
(B(!0), D(je, null, Je(U.value, (M, z) => {
|
|
71
|
+
var v;
|
|
72
72
|
return B(), D("div", {
|
|
73
|
-
key:
|
|
73
|
+
key: z,
|
|
74
74
|
class: "bread-item"
|
|
75
75
|
}, [
|
|
76
76
|
y("div", {
|
|
77
77
|
class: "bread-title",
|
|
78
78
|
onClick: (K) => x(M),
|
|
79
|
-
style: tt({ opacity: ((
|
|
79
|
+
style: tt({ opacity: ((v = U.value) == null ? void 0 : v.length) - 1 === z ? "0.7" : "1" })
|
|
80
80
|
}, L(M.value), 13, Vt),
|
|
81
|
-
|
|
81
|
+
z !== U.value.length - 1 && Array.isArray(U.value) ? (B(), D("div", Lt, L("/"))) : J("", !0)
|
|
82
82
|
]);
|
|
83
83
|
}), 128))
|
|
84
84
|
]));
|
|
@@ -143,62 +143,62 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
emits: ["showChild", "buildContent", "setLoginInfo"],
|
|
146
|
-
setup(
|
|
147
|
-
const
|
|
148
|
-
Ct("contentRef",
|
|
149
|
-
const
|
|
146
|
+
setup(T, { emit: ne }) {
|
|
147
|
+
const l = st(ue), { selectTitle: U } = ce(l), O = E(!1), x = E(), A = E(null), P = E(), M = E(!1), z = Kt(ue), { blobUrls: v } = ce(z), K = E(!1), F = E(!1), W = E(!1), te = E(!1), Ae = E(null);
|
|
148
|
+
Ct("contentRef", Ae);
|
|
149
|
+
const ae = lt(), { loginUserInfo: S } = ce(ae), oe = He(ue), { isEdit: ge, routeToChildPath: pe } = ce(oe), I = ne, ye = xe(ue), { importLoading: Ye, activeAsideMenu: Ke, contentLoading: Ge, platName: Qe, activeMenuPath: Be } = ce(ye), q = T, G = We(() => Ke.value.isRouter), le = () => {
|
|
150
150
|
sessionStorage.clear(), window.location.reload();
|
|
151
151
|
}, we = () => {
|
|
152
|
-
|
|
153
|
-
},
|
|
152
|
+
I("buildContent");
|
|
153
|
+
}, Ie = (r) => {
|
|
154
154
|
if ((r == null ? void 0 : r.type) === "table") {
|
|
155
|
-
let
|
|
156
|
-
|
|
157
|
-
url:
|
|
155
|
+
let p = r == null ? void 0 : r.row;
|
|
156
|
+
p && (P.value = {
|
|
157
|
+
url: p,
|
|
158
158
|
row: r == null ? void 0 : r.row
|
|
159
|
-
},
|
|
160
|
-
url:
|
|
159
|
+
}, I("showChild", {
|
|
160
|
+
url: p,
|
|
161
161
|
row: r == null ? void 0 : r.row
|
|
162
162
|
}));
|
|
163
163
|
}
|
|
164
|
-
},
|
|
164
|
+
}, fe = async () => {
|
|
165
165
|
let r = {};
|
|
166
|
-
const d = await De("弯管仿真加工分析/仿真动画生成", sessionStorage.getItem("systemKey"), ""),
|
|
167
|
-
let k = ["管长", "外径"],
|
|
168
|
-
|
|
169
|
-
var
|
|
170
|
-
(c == null ? void 0 : c.comp) === "Form" && ((
|
|
166
|
+
const d = await De("弯管仿真加工分析/仿真动画生成", sessionStorage.getItem("systemKey"), ""), p = await De("弯管仿真加工分析/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
167
|
+
let k = ["管长", "外径"], Y = {};
|
|
168
|
+
p == null || p.forEach((c) => {
|
|
169
|
+
var h;
|
|
170
|
+
(c == null ? void 0 : c.comp) === "Form" && ((h = c == null ? void 0 : c.compData) == null || h.forEach((i) => {
|
|
171
171
|
var b;
|
|
172
172
|
(i == null ? void 0 : i.key) === "formContent" && ((b = i == null ? void 0 : i.contents) == null || b.forEach((w) => {
|
|
173
|
-
k.includes(w == null ? void 0 : w.key) && (
|
|
173
|
+
k.includes(w == null ? void 0 : w.key) && (Y[w.key] = w.value);
|
|
174
174
|
}));
|
|
175
175
|
}));
|
|
176
176
|
}), d == null || d.forEach((c) => {
|
|
177
|
-
var
|
|
177
|
+
var h, i, b, w, g, e;
|
|
178
178
|
if ((c == null ? void 0 : c.comp) === "Table") {
|
|
179
|
-
let o = [], n = (b = (i = (
|
|
180
|
-
|
|
179
|
+
let o = [], n = (b = (i = (h = c == null ? void 0 : c.compData) == null ? void 0 : h.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : i.contents) == null ? void 0 : b.map((t) => t == null ? void 0 : t.label), s = (e = (g = (w = c == null ? void 0 : c.compData) == null ? void 0 : w.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : g.contents) == null ? void 0 : e.map((t) => (t = t == null ? void 0 : t.filter((a) => !(a != null && a.id)), t));
|
|
180
|
+
s == null || s.forEach((t) => {
|
|
181
181
|
o.push(it(t, n == null ? void 0 : n.filter((a) => a !== "操作")));
|
|
182
182
|
}), r[c.name] = o, r[c.name + "Content"] = c;
|
|
183
183
|
}
|
|
184
|
-
}), r.extra =
|
|
185
|
-
},
|
|
186
|
-
let d = Ee(r),
|
|
187
|
-
return d == null || d.forEach((
|
|
188
|
-
c === (r == null ? void 0 : r.length) - 1 ? (k.push(
|
|
189
|
-
}),
|
|
184
|
+
}), r.extra = Y, x.value = r;
|
|
185
|
+
}, Se = (r) => {
|
|
186
|
+
let d = Ee(r), p = [], k = [];
|
|
187
|
+
return d == null || d.forEach((Y, c) => {
|
|
188
|
+
c === (r == null ? void 0 : r.length) - 1 ? (k.push(Y), p.push(k)) : ((k == null ? void 0 : k.length) !== 0 && Y.includes(".obj") && (p.push(k), k = []), k.push(Y));
|
|
189
|
+
}), p;
|
|
190
190
|
}, Pe = async () => {
|
|
191
191
|
var r, d;
|
|
192
|
-
if ((
|
|
193
|
-
const
|
|
192
|
+
if ((q == null ? void 0 : q.platform) !== "browser" && (O.value = !0, P.value)) {
|
|
193
|
+
const p = P.value;
|
|
194
194
|
let k = [];
|
|
195
|
-
if (typeof (
|
|
196
|
-
let
|
|
195
|
+
if (typeof (p == null ? void 0 : p.url) == "string") {
|
|
196
|
+
let Y = (r = p == null ? void 0 : p.url) == null ? void 0 : r.split(","), c = (d = Se(Y)) == null ? void 0 : d.map(async (h) => {
|
|
197
197
|
var i, b;
|
|
198
|
-
if ((
|
|
199
|
-
let w =
|
|
200
|
-
var
|
|
201
|
-
let e = await
|
|
198
|
+
if ((h == null ? void 0 : h.length) === 1) {
|
|
199
|
+
let w = h == null ? void 0 : h.map(async (g) => {
|
|
200
|
+
var s, t;
|
|
201
|
+
let e = await Ce.get(g, {
|
|
202
202
|
responseType: "blob",
|
|
203
203
|
headers: {
|
|
204
204
|
"Content-Type": "application/json"
|
|
@@ -208,7 +208,7 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
208
208
|
type: "application/octet-stream;charset=UTF-8"
|
|
209
209
|
});
|
|
210
210
|
let n = {
|
|
211
|
-
suffix: "." + ((t =
|
|
211
|
+
suffix: "." + ((t = g == null ? void 0 : g.split(".")) == null ? void 0 : t[((s = g == null ? void 0 : g.split(".")) == null ? void 0 : s.length) - 1]),
|
|
212
212
|
blob: o,
|
|
213
213
|
mtlBlobs: []
|
|
214
214
|
};
|
|
@@ -216,28 +216,28 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
216
216
|
});
|
|
217
217
|
return await Promise.all(w), w;
|
|
218
218
|
} else {
|
|
219
|
-
let w =
|
|
219
|
+
let w = h == null ? void 0 : h.find((a) => a == null ? void 0 : a.includes(".obj")), g = await Ce.get(w, {
|
|
220
220
|
responseType: "blob",
|
|
221
221
|
headers: {
|
|
222
222
|
"Content-Type": "application/json"
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
|
-
const e = new Blob([
|
|
225
|
+
const e = new Blob([g.data], {
|
|
226
226
|
type: "application/octet-stream;charset=UTF-8"
|
|
227
227
|
});
|
|
228
|
-
let o =
|
|
229
|
-
let
|
|
228
|
+
let o = h == null ? void 0 : h.filter((a) => a == null ? void 0 : a.includes(".mtl")), n = [], s = o == null ? void 0 : o.map(async (a) => {
|
|
229
|
+
let m = await Ce.get(w, {
|
|
230
230
|
responseType: "blob",
|
|
231
231
|
headers: {
|
|
232
232
|
"Content-Type": "application/json"
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
|
-
const Q = new Blob([
|
|
235
|
+
const Q = new Blob([m.data], {
|
|
236
236
|
type: "application/octet-stream;charset=UTF-8"
|
|
237
237
|
});
|
|
238
|
-
return n.push(Q),
|
|
238
|
+
return n.push(Q), m;
|
|
239
239
|
});
|
|
240
|
-
await Promise.all(
|
|
240
|
+
await Promise.all(s);
|
|
241
241
|
let t = {
|
|
242
242
|
suffix: "." + ((b = w == null ? void 0 : w.split(".")) == null ? void 0 : b[((i = w == null ? void 0 : w.split(".")) == null ? void 0 : i.length) - 1]),
|
|
243
243
|
blob: e,
|
|
@@ -248,176 +248,176 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
248
248
|
});
|
|
249
249
|
await Promise.all(c);
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
A.value.loadModelByDefaultPath(k);
|
|
252
252
|
}
|
|
253
253
|
}, Fe = () => {
|
|
254
|
-
M.value = !1,
|
|
254
|
+
M.value = !1, A.value = null;
|
|
255
255
|
};
|
|
256
|
-
|
|
257
|
-
r && (
|
|
258
|
-
var
|
|
259
|
-
return (d == null ? void 0 : d.key) === ((
|
|
256
|
+
Z(() => Be.value, async (r) => {
|
|
257
|
+
r && (F.value = !0), r === "弯管仿真加工分析/仿真动画生成" ? W.value = !0 : W.value = !1, r === "弯管仿真加工分析/程序输出" ? te.value = !0 : te.value = !1, Me != null && Me.find((d) => {
|
|
258
|
+
var p;
|
|
259
|
+
return (d == null ? void 0 : d.key) === ((p = r == null ? void 0 : r.split("/")) == null ? void 0 : p[(r == null ? void 0 : r.split("/").length) - 1]);
|
|
260
260
|
}) ? K.value = !0 : K.value = !1;
|
|
261
|
-
}, { immediate: !0 }),
|
|
262
|
-
() => [
|
|
261
|
+
}, { immediate: !0 }), Z(
|
|
262
|
+
() => [v == null ? void 0 : v.value],
|
|
263
263
|
async () => {
|
|
264
|
-
var r, d,
|
|
265
|
-
if (
|
|
264
|
+
var r, d, p, k, Y;
|
|
265
|
+
if (v != null && v.value && ((r = v == null ? void 0 : v.value) == null ? void 0 : r.length) > 0 && !K.value && !((d = Ue.value) != null && d.find((c) => (c == null ? void 0 : c.name) === "输入") && ((p = Ue.value) != null && p.find((c) => (c == null ? void 0 : c.name) === "输出")))) {
|
|
266
266
|
M.value = !0;
|
|
267
267
|
let c = [];
|
|
268
|
-
const
|
|
269
|
-
var o, n,
|
|
270
|
-
let b, w,
|
|
271
|
-
i != null && i.blob.includes("undefined") ?
|
|
272
|
-
let e =
|
|
268
|
+
const h = await ((k = Ee(v == null ? void 0 : v.value)) == null ? void 0 : k.map(async (i) => {
|
|
269
|
+
var o, n, s, t, a, m, Q, X, N, se;
|
|
270
|
+
let b, w, g;
|
|
271
|
+
i != null && i.blob.includes("undefined") ? g = (n = (o = i == null ? void 0 : i.blob) == null ? void 0 : o.split("undefined,")) == null ? void 0 : n[1] : g = i == null ? void 0 : i.blob;
|
|
272
|
+
let e = g == null ? void 0 : g.split(",");
|
|
273
273
|
if ((e == null ? void 0 : e.length) > 1) {
|
|
274
|
-
let
|
|
275
|
-
var H, R,
|
|
276
|
-
b = await
|
|
274
|
+
let _ = await (e == null ? void 0 : e.map(async (j) => {
|
|
275
|
+
var H, R, ie, Ve, Le, Oe;
|
|
276
|
+
b = await Ce.get(j, {
|
|
277
277
|
responseType: "blob",
|
|
278
278
|
headers: {
|
|
279
279
|
"Content-Type": "application/json"
|
|
280
280
|
}
|
|
281
281
|
});
|
|
282
|
-
let
|
|
282
|
+
let $ = [];
|
|
283
283
|
if (((H = i == null ? void 0 : i.mtlBlobs) == null ? void 0 : H.length) > 0) {
|
|
284
284
|
let At = await ((R = i == null ? void 0 : i.mtlBlobs) == null ? void 0 : R.map(async (gt) => {
|
|
285
|
-
let qe = await
|
|
285
|
+
let qe = await Ce.get(gt, {
|
|
286
286
|
responseType: "blob",
|
|
287
287
|
headers: {
|
|
288
288
|
"Content-Type": "application/json"
|
|
289
289
|
}
|
|
290
290
|
});
|
|
291
|
-
return
|
|
291
|
+
return $.push(new Blob([qe.data], {
|
|
292
292
|
type: "application/octet-stream;charset=UTF-8"
|
|
293
293
|
})), qe;
|
|
294
294
|
}));
|
|
295
295
|
await Promise.all(At);
|
|
296
296
|
}
|
|
297
|
-
return ((Ve = j == null ? void 0 : j.split(".")) == null ? void 0 : Ve[((
|
|
297
|
+
return ((Ve = j == null ? void 0 : j.split(".")) == null ? void 0 : Ve[((ie = j == null ? void 0 : j.split(".")) == null ? void 0 : ie.length) - 1]) !== "undefined" && c.push({
|
|
298
298
|
suffix: "." + ((Oe = j == null ? void 0 : j.split(".")) == null ? void 0 : Oe[((Le = j == null ? void 0 : j.split(".")) == null ? void 0 : Le.length) - 1]),
|
|
299
299
|
blob: new Blob([b.data], {
|
|
300
300
|
type: "application/octet-stream;charset=UTF-8"
|
|
301
301
|
}),
|
|
302
|
-
mtlBlobs:
|
|
302
|
+
mtlBlobs: $
|
|
303
303
|
}), b;
|
|
304
304
|
}));
|
|
305
|
-
await Promise.all(
|
|
306
|
-
} else if (!(
|
|
305
|
+
await Promise.all(_);
|
|
306
|
+
} else if (!(g != null && g.includes("https://")) && !(g != null && g.includes("http://"))) {
|
|
307
307
|
b = await _e({
|
|
308
|
-
url:
|
|
308
|
+
url: g
|
|
309
309
|
});
|
|
310
|
-
let
|
|
311
|
-
if (((
|
|
312
|
-
let j = await ((t = i == null ? void 0 : i.mtlBlobs) == null ? void 0 : t.map(async (
|
|
310
|
+
let _ = [];
|
|
311
|
+
if (((s = i == null ? void 0 : i.mtlBlobs) == null ? void 0 : s.length) > 0) {
|
|
312
|
+
let j = await ((t = i == null ? void 0 : i.mtlBlobs) == null ? void 0 : t.map(async ($) => {
|
|
313
313
|
let H = await _e({
|
|
314
|
-
url:
|
|
314
|
+
url: $
|
|
315
315
|
});
|
|
316
|
-
return
|
|
316
|
+
return _.push(new Blob([H.data], {
|
|
317
317
|
type: "application/octet-stream;charset=UTF-8"
|
|
318
318
|
})), H;
|
|
319
319
|
}));
|
|
320
320
|
await Promise.all(j);
|
|
321
321
|
}
|
|
322
322
|
w = {
|
|
323
|
-
suffix: "." + ((
|
|
323
|
+
suffix: "." + ((m = g == null ? void 0 : g.split(".")) == null ? void 0 : m[((a = g == null ? void 0 : g.split(".")) == null ? void 0 : a.length) - 1]),
|
|
324
324
|
blob: new Blob([b.data], {
|
|
325
325
|
type: "application/octet-stream;charset=UTF-8"
|
|
326
326
|
}),
|
|
327
|
-
mtlBlobs:
|
|
327
|
+
mtlBlobs: _
|
|
328
328
|
};
|
|
329
329
|
} else {
|
|
330
|
-
b = await
|
|
330
|
+
b = await Ce.get(g, {
|
|
331
331
|
responseType: "blob",
|
|
332
332
|
headers: {
|
|
333
333
|
"Content-Type": "application/json"
|
|
334
334
|
}
|
|
335
335
|
});
|
|
336
|
-
let
|
|
336
|
+
let _ = [];
|
|
337
337
|
if (((Q = i == null ? void 0 : i.mtlBlobs) == null ? void 0 : Q.length) > 0) {
|
|
338
|
-
let j = await ((
|
|
339
|
-
let H = await
|
|
338
|
+
let j = await ((X = i == null ? void 0 : i.mtlBlobs) == null ? void 0 : X.map(async ($) => {
|
|
339
|
+
let H = await Ce.get($, {
|
|
340
340
|
responseType: "blob",
|
|
341
341
|
headers: {
|
|
342
342
|
"Content-Type": "application/json"
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
|
-
return
|
|
345
|
+
return _.push(new Blob([H.data], {
|
|
346
346
|
type: "application/octet-stream;charset=UTF-8"
|
|
347
347
|
})), H;
|
|
348
348
|
}));
|
|
349
349
|
await Promise.all(j);
|
|
350
350
|
}
|
|
351
351
|
w = {
|
|
352
|
-
suffix: i != null && i.suffix ? i == null ? void 0 : i.suffix : "." + ((
|
|
352
|
+
suffix: i != null && i.suffix ? i == null ? void 0 : i.suffix : "." + ((se = g == null ? void 0 : g.split(".")) == null ? void 0 : se[((N = g == null ? void 0 : g.split(".")) == null ? void 0 : N.length) - 1]),
|
|
353
353
|
blob: new Blob([b.data], {
|
|
354
354
|
type: "application/octet-stream;charset=UTF-8"
|
|
355
355
|
}),
|
|
356
|
-
mtlBlobs:
|
|
356
|
+
mtlBlobs: _
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
359
|
w && c.push(w);
|
|
360
360
|
}));
|
|
361
|
-
await Promise.all(
|
|
361
|
+
await Promise.all(h), (c == null ? void 0 : c.length) !== 0 && ((Y = A.value) == null || Y.loadModelByDefaultPath(c));
|
|
362
362
|
}
|
|
363
363
|
},
|
|
364
364
|
{ immediate: !0, deep: !0 }
|
|
365
365
|
);
|
|
366
|
-
const
|
|
367
|
-
var d,
|
|
368
|
-
|
|
366
|
+
const ve = async () => {
|
|
367
|
+
var d, p, k, Y;
|
|
368
|
+
ye.setImportLoading(!0);
|
|
369
369
|
const r = await be({
|
|
370
370
|
key: {
|
|
371
371
|
systemKey: sessionStorage.getItem("systemKey")
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
if (((d = r == null ? void 0 : r.data) == null ? void 0 : d.code) === 200) {
|
|
375
|
-
let c = (
|
|
375
|
+
let c = (Y = (k = (p = r == null ? void 0 : r.data) == null ? void 0 : p.result) == null ? void 0 : k.map((h) => {
|
|
376
376
|
var i;
|
|
377
|
-
if (((i =
|
|
378
|
-
return
|
|
379
|
-
})) == null ? void 0 :
|
|
377
|
+
if (((i = h == null ? void 0 : h.key) == null ? void 0 : i.layer) !== "superAdmin")
|
|
378
|
+
return h == null ? void 0 : h.id;
|
|
379
|
+
})) == null ? void 0 : Y.filter((h) => h);
|
|
380
380
|
(c == null ? void 0 : c.length) > 0 && await ct({
|
|
381
381
|
ids: c
|
|
382
|
-
}),
|
|
382
|
+
}), ye.setRawMenus([]);
|
|
383
383
|
}
|
|
384
|
-
|
|
384
|
+
ye.setImportLoading(!1);
|
|
385
385
|
}, Re = async () => {
|
|
386
386
|
await Dt();
|
|
387
387
|
};
|
|
388
388
|
return et(() => {
|
|
389
|
-
|
|
389
|
+
I("setLoginInfo", S.value);
|
|
390
390
|
}), (r, d) => {
|
|
391
|
-
const
|
|
391
|
+
const p = V("el-dialog"), k = V("el-button"), Y = V("el-avatar"), c = V("el-header"), h = V("el-container"), i = V("el-aside"), b = V("router-view"), w = V("el-main"), g = yt("loading");
|
|
392
392
|
return B(), D(je, null, [
|
|
393
|
-
C(
|
|
393
|
+
C(p, {
|
|
394
394
|
modelValue: O.value,
|
|
395
395
|
"onUpdate:modelValue": d[0] || (d[0] = (e) => O.value = e),
|
|
396
396
|
style: { height: "700px", width: "1800px" }
|
|
397
397
|
}, {
|
|
398
|
-
default:
|
|
398
|
+
default: f(() => [
|
|
399
399
|
C(ze, {
|
|
400
400
|
ref_key: "threeModelRef",
|
|
401
|
-
ref:
|
|
402
|
-
onGetAnimationData:
|
|
401
|
+
ref: A,
|
|
402
|
+
onGetAnimationData: fe,
|
|
403
403
|
animationData: x.value
|
|
404
404
|
}, null, 8, ["animationData"])
|
|
405
405
|
]),
|
|
406
406
|
_: 1
|
|
407
407
|
}, 8, ["modelValue"]),
|
|
408
|
-
Te(C(
|
|
409
|
-
default:
|
|
408
|
+
Te(C(h, { class: "client-container" }, {
|
|
409
|
+
default: f(() => [
|
|
410
410
|
C(c, { class: "client-structure-header" }, {
|
|
411
|
-
default:
|
|
411
|
+
default: f(() => {
|
|
412
412
|
var e;
|
|
413
413
|
return [
|
|
414
414
|
y("div", zt, [
|
|
415
415
|
C(k, {
|
|
416
416
|
id: "transparentBgButton",
|
|
417
|
-
onClick: u(
|
|
417
|
+
onClick: u(It)
|
|
418
418
|
}, {
|
|
419
|
-
default:
|
|
420
|
-
|
|
419
|
+
default: f(() => d[3] || (d[3] = [
|
|
420
|
+
re(" 返回页面 ")
|
|
421
421
|
])),
|
|
422
422
|
_: 1,
|
|
423
423
|
__: [3]
|
|
@@ -425,15 +425,15 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
425
425
|
C(k, {
|
|
426
426
|
id: "transparentBgButton",
|
|
427
427
|
onClick: d[1] || (d[1] = (o) => {
|
|
428
|
-
var n,
|
|
429
|
-
return u(
|
|
428
|
+
var n, s;
|
|
429
|
+
return u(ft)((s = (n = u(U)) == null ? void 0 : n.map((t) => t.value)) == null ? void 0 : s.join("/"));
|
|
430
430
|
})
|
|
431
431
|
}, {
|
|
432
|
-
icon:
|
|
433
|
-
C(
|
|
432
|
+
icon: f(() => [
|
|
433
|
+
C(de, { name: "Store" })
|
|
434
434
|
]),
|
|
435
|
-
default:
|
|
436
|
-
d[4] || (d[4] =
|
|
435
|
+
default: f(() => [
|
|
436
|
+
d[4] || (d[4] = re(" 保存页面 "))
|
|
437
437
|
]),
|
|
438
438
|
_: 1,
|
|
439
439
|
__: [4]
|
|
@@ -447,14 +447,14 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
447
447
|
]),
|
|
448
448
|
y("div", $t, [
|
|
449
449
|
Ne(r.$slots, "default", {}, void 0, !0),
|
|
450
|
-
C(
|
|
450
|
+
C(Y, {
|
|
451
451
|
size: 35,
|
|
452
|
-
src: (e = u(
|
|
452
|
+
src: (e = u(S)) == null ? void 0 : e.avatarUrl
|
|
453
453
|
}, {
|
|
454
|
-
default:
|
|
454
|
+
default: f(() => {
|
|
455
455
|
var o;
|
|
456
456
|
return [
|
|
457
|
-
|
|
457
|
+
re(L(((o = u(S)) == null ? void 0 : o.account) ?? "未知"), 1)
|
|
458
458
|
];
|
|
459
459
|
}),
|
|
460
460
|
_: 1
|
|
@@ -464,12 +464,12 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
464
464
|
}),
|
|
465
465
|
_: 3
|
|
466
466
|
}),
|
|
467
|
-
u(
|
|
467
|
+
u(ge) === "edit" ? (B(), ee(h, {
|
|
468
468
|
key: 0,
|
|
469
469
|
class: "model-operate",
|
|
470
470
|
style: { "margin-top": "10px", height: "0px" }
|
|
471
471
|
}, {
|
|
472
|
-
default:
|
|
472
|
+
default: f(() => [
|
|
473
473
|
y("div", ea, [
|
|
474
474
|
C(at)
|
|
475
475
|
]),
|
|
@@ -485,15 +485,15 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
485
485
|
]),
|
|
486
486
|
_: 3
|
|
487
487
|
}, 512), [
|
|
488
|
-
[Xe, u(
|
|
488
|
+
[Xe, u(ge) === "edit"]
|
|
489
489
|
]),
|
|
490
|
-
Te((B(),
|
|
490
|
+
Te((B(), ee(h, {
|
|
491
491
|
class: "client-container",
|
|
492
492
|
"element-loading-text": "正在加载页面数据..."
|
|
493
493
|
}, {
|
|
494
|
-
default:
|
|
494
|
+
default: f(() => [
|
|
495
495
|
C(c, { class: "client-header" }, {
|
|
496
|
-
default:
|
|
496
|
+
default: f(() => [
|
|
497
497
|
y("div", {
|
|
498
498
|
class: "client-header-logo",
|
|
499
499
|
onClick: Pe
|
|
@@ -502,91 +502,91 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
502
502
|
C(xt, { mode: "horizontal" })
|
|
503
503
|
]),
|
|
504
504
|
y("div", na, [
|
|
505
|
-
|
|
505
|
+
q != null && q.showButton ? (B(), ee(k, {
|
|
506
506
|
key: 0,
|
|
507
507
|
class: "system-default-button",
|
|
508
508
|
onClick: we
|
|
509
509
|
}, {
|
|
510
|
-
icon:
|
|
511
|
-
C(
|
|
510
|
+
icon: f(() => [
|
|
511
|
+
C(de, { name: "App" })
|
|
512
512
|
]),
|
|
513
|
-
default:
|
|
514
|
-
d[5] || (d[5] =
|
|
513
|
+
default: f(() => [
|
|
514
|
+
d[5] || (d[5] = re(" 生成APP "))
|
|
515
515
|
]),
|
|
516
516
|
_: 1,
|
|
517
517
|
__: [5]
|
|
518
518
|
})) : J("", !0),
|
|
519
|
-
|
|
519
|
+
q != null && q.showButton && u(ge) === "view" ? (B(), ee(k, {
|
|
520
520
|
key: 1,
|
|
521
521
|
class: "system-default-button",
|
|
522
522
|
onClick: u(kt)
|
|
523
523
|
}, {
|
|
524
|
-
icon:
|
|
525
|
-
C(
|
|
524
|
+
icon: f(() => [
|
|
525
|
+
C(de, { name: "write" })
|
|
526
526
|
]),
|
|
527
|
-
default:
|
|
528
|
-
d[6] || (d[6] =
|
|
527
|
+
default: f(() => [
|
|
528
|
+
d[6] || (d[6] = re(" 修改布局 "))
|
|
529
529
|
]),
|
|
530
530
|
_: 1,
|
|
531
531
|
__: [6]
|
|
532
532
|
}, 8, ["onClick"])) : J("", !0),
|
|
533
533
|
Ne(r.$slots, "default", {}, void 0, !0),
|
|
534
534
|
C(Mt, null, {
|
|
535
|
-
dropTitle:
|
|
535
|
+
dropTitle: f(() => {
|
|
536
536
|
var e;
|
|
537
537
|
return [
|
|
538
538
|
C($e, {
|
|
539
539
|
size: "35",
|
|
540
|
-
avatarUrl: (e = u(
|
|
540
|
+
avatarUrl: (e = u(S)) == null ? void 0 : e.avatarUrl,
|
|
541
541
|
showCropper: !1,
|
|
542
542
|
banClick: !0
|
|
543
543
|
}, {
|
|
544
|
-
avatarDefault:
|
|
545
|
-
var o, n,
|
|
544
|
+
avatarDefault: f(() => {
|
|
545
|
+
var o, n, s;
|
|
546
546
|
return [
|
|
547
|
-
|
|
547
|
+
re(L((o = u(S)) != null && o.account ? (n = u(S)) == null ? void 0 : n.account : ((s = u(S)) == null ? void 0 : s.账号) ?? "未知"), 1)
|
|
548
548
|
];
|
|
549
549
|
}),
|
|
550
550
|
_: 1
|
|
551
551
|
}, 8, ["avatarUrl"])
|
|
552
552
|
];
|
|
553
553
|
}),
|
|
554
|
-
dropMenu:
|
|
555
|
-
var e, o, n,
|
|
554
|
+
dropMenu: f(() => {
|
|
555
|
+
var e, o, n, s, t, a, m, Q;
|
|
556
556
|
return [
|
|
557
557
|
y("div", la, [
|
|
558
558
|
y("div", sa, [
|
|
559
559
|
C($e, {
|
|
560
|
-
avatarUrl: (e = u(
|
|
560
|
+
avatarUrl: (e = u(S)) == null ? void 0 : e.avatarUrl,
|
|
561
561
|
showCropper: !1,
|
|
562
562
|
banClick: !0
|
|
563
563
|
}, {
|
|
564
|
-
avatarDefault:
|
|
565
|
-
var
|
|
564
|
+
avatarDefault: f(() => {
|
|
565
|
+
var X, N, se;
|
|
566
566
|
return [
|
|
567
|
-
|
|
567
|
+
re(L((X = u(S)) != null && X.account ? (N = u(S)) == null ? void 0 : N.account : ((se = u(S)) == null ? void 0 : se.账号) ?? "未知"), 1)
|
|
568
568
|
];
|
|
569
569
|
}),
|
|
570
570
|
_: 1
|
|
571
571
|
}, 8, ["avatarUrl"]),
|
|
572
572
|
y("div", ia, [
|
|
573
573
|
y("div", null, [
|
|
574
|
-
y("span", null, L((o = u(
|
|
575
|
-
y("span", null, L(((a = (t = u(
|
|
574
|
+
y("span", null, L((o = u(S)) != null && o.account ? (n = u(S)) == null ? void 0 : n.account : ((s = u(S)) == null ? void 0 : s.姓名) ?? "未知"), 1),
|
|
575
|
+
y("span", null, L(((a = (t = u(S)) == null ? void 0 : t.layer) == null ? void 0 : a.toUpperCase()) === "SUPERADMIN" ? "超级管理员" : ((m = u(S)) == null ? void 0 : m.角色名称) ?? "未知"), 1)
|
|
576
576
|
]),
|
|
577
|
-
y("div", null, L(((Q = u(
|
|
577
|
+
y("div", null, L(((Q = u(S)) == null ? void 0 : Q.工号) ?? "未知"), 1)
|
|
578
578
|
])
|
|
579
579
|
]),
|
|
580
580
|
y("div", ra, [
|
|
581
581
|
y("div", null, [
|
|
582
|
-
C(
|
|
582
|
+
C(de, {
|
|
583
583
|
name: "personal",
|
|
584
584
|
style: { width: "15px", height: "15px" }
|
|
585
585
|
}),
|
|
586
586
|
d[7] || (d[7] = y("span", null, "个人主页", -1))
|
|
587
587
|
]),
|
|
588
588
|
y("div", null, [
|
|
589
|
-
C(
|
|
589
|
+
C(de, {
|
|
590
590
|
name: "message",
|
|
591
591
|
style: { width: "15px", height: "15px" }
|
|
592
592
|
}),
|
|
@@ -595,27 +595,27 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
595
595
|
]),
|
|
596
596
|
y("div", ca, [
|
|
597
597
|
y("div", null, [
|
|
598
|
-
C(
|
|
598
|
+
C(de, {
|
|
599
599
|
name: "clear",
|
|
600
600
|
style: { width: "15px", height: "15px" }
|
|
601
601
|
}),
|
|
602
|
-
C(
|
|
602
|
+
C(me, {
|
|
603
603
|
emptyColor: !0,
|
|
604
604
|
class: "menu-button",
|
|
605
|
-
onClickTrigger:
|
|
605
|
+
onClickTrigger: ve,
|
|
606
606
|
modelValue: "清空数据",
|
|
607
607
|
buttonType: ""
|
|
608
608
|
})
|
|
609
609
|
]),
|
|
610
610
|
y("div", null, [
|
|
611
|
-
C(
|
|
611
|
+
C(de, {
|
|
612
612
|
name: "exit",
|
|
613
613
|
style: { width: "15px", height: "15px", color: "#EB503D" }
|
|
614
614
|
}),
|
|
615
|
-
C(
|
|
615
|
+
C(me, {
|
|
616
616
|
emptyColor: !0,
|
|
617
617
|
class: "menu-button",
|
|
618
|
-
onClickTrigger:
|
|
618
|
+
onClickTrigger: le,
|
|
619
619
|
modelValue: "退出登录",
|
|
620
620
|
buttonType: "",
|
|
621
621
|
style: { color: "#EB503D" }
|
|
@@ -631,17 +631,17 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
631
631
|
]),
|
|
632
632
|
_: 3
|
|
633
633
|
}),
|
|
634
|
-
C(
|
|
635
|
-
default:
|
|
634
|
+
C(h, { class: "client-body" }, {
|
|
635
|
+
default: f(() => [
|
|
636
636
|
C(w, { class: "client-main" }, {
|
|
637
|
-
default:
|
|
638
|
-
var e, o, n,
|
|
637
|
+
default: f(() => {
|
|
638
|
+
var e, o, n, s;
|
|
639
639
|
return [
|
|
640
640
|
C(i, {
|
|
641
641
|
class: "client-aside",
|
|
642
|
-
style: tt({ backgroundImage:
|
|
642
|
+
style: tt({ backgroundImage: T.platform === "client" ? `url(${u(Xt)})` : `url(${u(Zt)})` })
|
|
643
643
|
}, {
|
|
644
|
-
default:
|
|
644
|
+
default: f(() => [
|
|
645
645
|
C(Tt, { mode: "vertical" })
|
|
646
646
|
]),
|
|
647
647
|
_: 1
|
|
@@ -649,26 +649,26 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
649
649
|
Te((B(), D("div", {
|
|
650
650
|
class: "client-main-operate",
|
|
651
651
|
ref_key: "contentRef",
|
|
652
|
-
ref:
|
|
652
|
+
ref: Ae,
|
|
653
653
|
"element-loading-text": "正在加载页面数据..."
|
|
654
654
|
}, [
|
|
655
|
-
u(
|
|
656
|
-
C(
|
|
655
|
+
u(pe) !== "" ? (B(), D("div", ua, [
|
|
656
|
+
C(me, {
|
|
657
657
|
class: "calculator-content back-content",
|
|
658
658
|
onClickTrigger: d[2] || (d[2] = (t) => u(Qt)()),
|
|
659
659
|
modelValue: "返回"
|
|
660
660
|
})
|
|
661
661
|
])) : J("", !0),
|
|
662
662
|
y("div", Aa, [
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
var
|
|
663
|
+
G.value ? (B(), ee(b, { key: 0 })) : J("", !0),
|
|
664
|
+
G.value ? J("", !0) : (B(!0), D(je, { key: 1 }, Je((e = u(Ee)(u(Ue))) == null ? void 0 : e.filter((t) => t.comp !== "FormTop"), (t, a) => {
|
|
665
|
+
var m;
|
|
666
666
|
return B(), D("div", {
|
|
667
667
|
class: "item-view-content",
|
|
668
668
|
key: a
|
|
669
669
|
}, [
|
|
670
|
-
((
|
|
671
|
-
(B(),
|
|
670
|
+
((m = t == null ? void 0 : t.comp) == null ? void 0 : m.toUpperCase()) !== "TABLE" && t.name ? (B(), D("div", ga, L(t.name), 1)) : J("", !0),
|
|
671
|
+
(B(), ee(ht(u(St)(t.comp)), {
|
|
672
672
|
compName: t.name,
|
|
673
673
|
itemData: t == null ? void 0 : t.compData,
|
|
674
674
|
childItemData: t == null ? void 0 : t.itemChildData,
|
|
@@ -676,13 +676,13 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
676
676
|
onChange: u(Ut),
|
|
677
677
|
index: (t == null ? void 0 : t.id) ?? a,
|
|
678
678
|
onContentChange: u(Rt),
|
|
679
|
-
onPageChange: u(
|
|
680
|
-
onRowClick:
|
|
679
|
+
onPageChange: u(vt),
|
|
680
|
+
onRowClick: Ie
|
|
681
681
|
}, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
682
682
|
]);
|
|
683
683
|
}), 128)),
|
|
684
|
-
!
|
|
685
|
-
u(
|
|
684
|
+
!G.value && !((o = u(Ee)(u(Ue))) != null && o.find((t) => t.comp === "methodButton")) ? (B(), D("div", da, [
|
|
685
|
+
u(pe) !== "" && ((s = u(Be)) == null ? void 0 : s[((n = u(Be)) == null ? void 0 : n.length) - 1]) !== "/" ? (B(), ee(me, {
|
|
686
686
|
key: 0,
|
|
687
687
|
class: "calculator-content",
|
|
688
688
|
onClickTrigger: Re,
|
|
@@ -691,7 +691,7 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
691
691
|
])) : J("", !0)
|
|
692
692
|
])
|
|
693
693
|
])), [
|
|
694
|
-
[
|
|
694
|
+
[g, u(Ge)]
|
|
695
695
|
])
|
|
696
696
|
];
|
|
697
697
|
}),
|
|
@@ -706,10 +706,10 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
706
706
|
onBeforeDestroy: Fe,
|
|
707
707
|
style: { height: "700px", width: "1000px" }
|
|
708
708
|
}, {
|
|
709
|
-
default:
|
|
709
|
+
default: f(() => [
|
|
710
710
|
C(ze, {
|
|
711
711
|
ref_key: "threeModelRef",
|
|
712
|
-
ref:
|
|
712
|
+
ref: A
|
|
713
713
|
}, null, 512)
|
|
714
714
|
]),
|
|
715
715
|
_: 1
|
|
@@ -718,13 +718,13 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
718
718
|
]),
|
|
719
719
|
_: 3
|
|
720
720
|
})), [
|
|
721
|
-
[Xe, u(
|
|
722
|
-
[
|
|
721
|
+
[Xe, u(ge) === "view"],
|
|
722
|
+
[g, u(Ye)]
|
|
723
723
|
])
|
|
724
724
|
], 64);
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
}), ya = /* @__PURE__ */ ke(Ca, [["__scopeId", "data-v-
|
|
727
|
+
}), ya = /* @__PURE__ */ ke(Ca, [["__scopeId", "data-v-64ddd8a3"]]), ha = { class: "system-wrap" }, ma = {
|
|
728
728
|
__name: "index",
|
|
729
729
|
props: {
|
|
730
730
|
windowConfig: {
|
|
@@ -744,68 +744,68 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
744
744
|
jsonContents: Array
|
|
745
745
|
},
|
|
746
746
|
emits: ["buildContent", "showChild"],
|
|
747
|
-
setup(
|
|
748
|
-
const
|
|
747
|
+
setup(T, { emit: ne }) {
|
|
748
|
+
const l = He(ue), U = st(ue), O = xe();
|
|
749
749
|
E(!1);
|
|
750
|
-
const x = E(!0),
|
|
751
|
-
|
|
752
|
-
},
|
|
753
|
-
switch (
|
|
750
|
+
const x = E(!0), A = T, P = ne, M = (F) => {
|
|
751
|
+
P("showChild", F);
|
|
752
|
+
}, z = We(() => {
|
|
753
|
+
switch (A == null ? void 0 : A.platform) {
|
|
754
754
|
case "browser":
|
|
755
755
|
return Bt;
|
|
756
756
|
case "client":
|
|
757
|
-
return
|
|
757
|
+
return pt;
|
|
758
758
|
}
|
|
759
|
-
}),
|
|
759
|
+
}), v = (F) => {
|
|
760
760
|
const W = document.documentElement;
|
|
761
|
-
|
|
762
|
-
W.style.setProperty(
|
|
761
|
+
F == null || F.forEach((te) => {
|
|
762
|
+
W.style.setProperty(te.name, te.value);
|
|
763
763
|
});
|
|
764
764
|
};
|
|
765
|
-
|
|
766
|
-
|
|
765
|
+
Z(() => A.platform, (F, W) => {
|
|
766
|
+
F && v(z.value);
|
|
767
767
|
}, { immediate: !0 });
|
|
768
768
|
const K = () => {
|
|
769
|
-
|
|
769
|
+
P("buildContent");
|
|
770
770
|
};
|
|
771
|
-
return
|
|
772
|
-
() => [
|
|
771
|
+
return Z(
|
|
772
|
+
() => [A == null ? void 0 : A.content, A == null ? void 0 : A.jsonContents],
|
|
773
773
|
async () => {
|
|
774
|
-
var
|
|
775
|
-
if (((
|
|
776
|
-
|
|
774
|
+
var te, Ae, ae, S;
|
|
775
|
+
if (((te = A == null ? void 0 : A.jsonContents) == null ? void 0 : te.length) > 0) {
|
|
776
|
+
l.setOriginalData(A == null ? void 0 : A.jsonContents);
|
|
777
777
|
return;
|
|
778
778
|
}
|
|
779
|
-
if (!(
|
|
779
|
+
if (!(A != null && A.content) || ((Ae = A == null ? void 0 : A.content) == null ? void 0 : Ae.length) === 0) return;
|
|
780
780
|
x.value = !0, O.setImportLoading(!0);
|
|
781
|
-
let
|
|
782
|
-
U.setSelectTitle([]), U.setSelectIndex(""), U.setSelectMenu(""), (
|
|
783
|
-
W.push(bt(
|
|
784
|
-
}),
|
|
781
|
+
let F = [], W = [];
|
|
782
|
+
U.setSelectTitle([]), U.setSelectIndex(""), U.setSelectMenu(""), (S = (ae = A == null ? void 0 : A.content) == null ? void 0 : ae.filter((oe) => oe !== "")) == null || S.forEach((oe) => {
|
|
783
|
+
W.push(bt(oe));
|
|
784
|
+
}), F = W == null ? void 0 : W[0], await jt(F), await rt(), l.setOriginalData(F), O.setImportLoading(!1);
|
|
785
785
|
},
|
|
786
786
|
{ deep: !0, immediate: !0 }
|
|
787
|
-
), (
|
|
787
|
+
), (F, W) => (B(), D("div", ha, [
|
|
788
788
|
C(ya, {
|
|
789
|
-
windowConfig:
|
|
790
|
-
showButton:
|
|
789
|
+
windowConfig: T.windowConfig,
|
|
790
|
+
showButton: A == null ? void 0 : A.showButton,
|
|
791
791
|
onBuildContent: K,
|
|
792
792
|
onShowChild: M,
|
|
793
|
-
platform:
|
|
793
|
+
platform: A == null ? void 0 : A.platform
|
|
794
794
|
}, {
|
|
795
|
-
default:
|
|
796
|
-
Ne(
|
|
795
|
+
default: f(() => [
|
|
796
|
+
Ne(F.$slots, "default", {}, void 0, !0)
|
|
797
797
|
]),
|
|
798
798
|
_: 3
|
|
799
799
|
}, 8, ["windowConfig", "showButton", "platform"])
|
|
800
800
|
]));
|
|
801
801
|
}
|
|
802
|
-
},
|
|
802
|
+
}, pa = /* @__PURE__ */ ke(ma, [["__scopeId", "data-v-adeee6ec"]]), Ba = { class: "add-model-content" }, wa = {
|
|
803
803
|
key: 0,
|
|
804
804
|
class: "model-operate"
|
|
805
|
-
},
|
|
805
|
+
}, Ia = { class: "model-select" }, fa = { class: "model-fill" }, Ea = {
|
|
806
806
|
key: 1,
|
|
807
807
|
class: "model-view"
|
|
808
|
-
}, ka = { class: "select-model-wrapper" }, Qa = { class: "create-project" },
|
|
808
|
+
}, ka = { class: "select-model-wrapper" }, Qa = { class: "create-project" }, Sa = { class: "create-project-button" }, va = { class: "enter-project" }, Ra = {
|
|
809
809
|
key: 0,
|
|
810
810
|
class: "enter-project-list"
|
|
811
811
|
}, Ua = ["onClick"], ba = { class: "project-title" }, ja = { class: "project-operate" }, Da = { class: "enter-project-button" }, Ya = {
|
|
@@ -834,36 +834,40 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
834
834
|
pageKey: {
|
|
835
835
|
type: String,
|
|
836
836
|
default: ""
|
|
837
|
+
},
|
|
838
|
+
oldSystemKey: {
|
|
839
|
+
type: String,
|
|
840
|
+
default: ""
|
|
837
841
|
}
|
|
838
842
|
},
|
|
839
843
|
emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
|
|
840
|
-
setup(
|
|
841
|
-
const
|
|
844
|
+
setup(T, { emit: ne }) {
|
|
845
|
+
const l = T, U = ne, O = Ft(), x = E([]), A = E(0), P = E([]), M = E([]), z = E(0), v = He(ue), K = xe(ue), { itemData: F, originalData: W } = ce(v), { activeMenuPath: te, platform: Ae } = ce(K), ae = E(null), S = E(0), oe = E([]);
|
|
842
846
|
E("");
|
|
843
|
-
const
|
|
847
|
+
const ge = E(0), pe = lt(), { loginUserInfo: I, systemKey: ye } = ce(pe), Ye = () => {
|
|
844
848
|
U("buildContent");
|
|
845
849
|
};
|
|
846
|
-
|
|
847
|
-
() =>
|
|
850
|
+
Z(
|
|
851
|
+
() => l == null ? void 0 : l.pageKey,
|
|
848
852
|
async () => {
|
|
849
853
|
let e = {};
|
|
850
|
-
if ((
|
|
851
|
-
const o = await De(
|
|
852
|
-
let
|
|
854
|
+
if ((l == null ? void 0 : l.pageKey) !== "") {
|
|
855
|
+
const o = await De(l == null ? void 0 : l.pageKey, sessionStorage.getItem("systemKey"), ""), n = await De("弯管仿真加工分析/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
856
|
+
let s = ["管长", "外径"], t = {};
|
|
853
857
|
n == null || n.forEach((a) => {
|
|
854
|
-
var
|
|
855
|
-
(a == null ? void 0 : a.comp) === "Form" && ((
|
|
856
|
-
var
|
|
857
|
-
(Q == null ? void 0 : Q.key) === "formContent" && ((
|
|
858
|
-
|
|
858
|
+
var m;
|
|
859
|
+
(a == null ? void 0 : a.comp) === "Form" && ((m = a == null ? void 0 : a.compData) == null || m.forEach((Q) => {
|
|
860
|
+
var X;
|
|
861
|
+
(Q == null ? void 0 : Q.key) === "formContent" && ((X = Q == null ? void 0 : Q.contents) == null || X.forEach((N) => {
|
|
862
|
+
s.includes(N == null ? void 0 : N.key) && (t[N.key] = N.value);
|
|
859
863
|
}));
|
|
860
864
|
}));
|
|
861
865
|
}), o == null || o.forEach((a) => {
|
|
862
|
-
var
|
|
866
|
+
var m, Q, X, N, se, _;
|
|
863
867
|
if ((a == null ? void 0 : a.comp) === "Table") {
|
|
864
|
-
let j = [],
|
|
868
|
+
let j = [], $ = (X = (Q = (m = a == null ? void 0 : a.compData) == null ? void 0 : m.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : Q.contents) == null ? void 0 : X.map((R) => R == null ? void 0 : R.label), H = (_ = (se = (N = a == null ? void 0 : a.compData) == null ? void 0 : N.find((R) => (R == null ? void 0 : R.key) === "tableContents")) == null ? void 0 : se.contents) == null ? void 0 : _.map((R) => (R = R == null ? void 0 : R.filter((ie) => !(ie != null && ie.id)), R));
|
|
865
869
|
H == null || H.forEach((R) => {
|
|
866
|
-
j.push(it(R,
|
|
870
|
+
j.push(it(R, $ == null ? void 0 : $.filter((ie) => ie !== "操作")));
|
|
867
871
|
}), e[a.name] = j, e[a.name + "Content"] = a;
|
|
868
872
|
}
|
|
869
873
|
}), e.extra = t, U("threeData", e);
|
|
@@ -871,26 +875,26 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
871
875
|
},
|
|
872
876
|
{ deep: !0, immediate: !0 }
|
|
873
877
|
);
|
|
874
|
-
const
|
|
878
|
+
const Ke = (e) => {
|
|
875
879
|
U("openThreeBuild", e);
|
|
876
880
|
};
|
|
877
|
-
|
|
878
|
-
() =>
|
|
881
|
+
Z(
|
|
882
|
+
() => l == null ? void 0 : l.pathContent,
|
|
879
883
|
() => {
|
|
880
|
-
(
|
|
884
|
+
(l == null ? void 0 : l.pathContent) !== "" && v.setSystemPath(l == null ? void 0 : l.pathContent);
|
|
881
885
|
},
|
|
882
886
|
{
|
|
883
887
|
deep: !0,
|
|
884
888
|
immediate: !0
|
|
885
889
|
}
|
|
886
890
|
);
|
|
887
|
-
const
|
|
891
|
+
const Ge = (e) => {
|
|
888
892
|
U("contentChange", e);
|
|
889
893
|
}, Qe = (e) => {
|
|
890
894
|
var n;
|
|
891
|
-
const o = (n = Ee(e == null ? void 0 : e.wholeValue)) == null ? void 0 : n.map((
|
|
895
|
+
const o = (n = Ee(e == null ? void 0 : e.wholeValue)) == null ? void 0 : n.map((s) => {
|
|
892
896
|
var t;
|
|
893
|
-
return (
|
|
897
|
+
return (s == null ? void 0 : s.comp) === "Form" && (s.compData = (t = s.compData) == null ? void 0 : t.map((a) => ((a == null ? void 0 : a.key) === "formContent" && (a.contents = Yt(a == null ? void 0 : a.contents)), a))), s;
|
|
894
898
|
});
|
|
895
899
|
U("change", {
|
|
896
900
|
originalContents: W.value,
|
|
@@ -899,61 +903,61 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
899
903
|
arrayToContents: o
|
|
900
904
|
});
|
|
901
905
|
};
|
|
902
|
-
|
|
903
|
-
() =>
|
|
906
|
+
Z(
|
|
907
|
+
() => P.value,
|
|
904
908
|
() => {
|
|
905
|
-
|
|
909
|
+
ge.value === P.value.length && P.value.length !== 0 && (x.value = P.value);
|
|
906
910
|
},
|
|
907
911
|
{ deep: !0, immediate: !0 }
|
|
908
912
|
);
|
|
909
|
-
const
|
|
910
|
-
|
|
911
|
-
},
|
|
913
|
+
const Be = () => {
|
|
914
|
+
ae.value !== null && ae.value.click();
|
|
915
|
+
}, q = async (e) => {
|
|
912
916
|
K.setActiveMenuPath(""), K.setActiveTopMenuPath(""), K.setAsideMenus([]);
|
|
913
917
|
const o = e.target.files;
|
|
914
918
|
if (!o) return;
|
|
915
|
-
new FileReader(), x.value = [],
|
|
916
|
-
const n = Array.from(o).map(async (
|
|
919
|
+
new FileReader(), x.value = [], P.value = [], ge.value = o.length;
|
|
920
|
+
const n = Array.from(o).map(async (s) => await new Promise((t) => {
|
|
917
921
|
const a = new FileReader();
|
|
918
|
-
a.onload = (
|
|
922
|
+
a.onload = (m) => {
|
|
919
923
|
try {
|
|
920
|
-
|
|
924
|
+
P.value.push(m.target.result), S.value++;
|
|
921
925
|
} catch (Q) {
|
|
922
926
|
console.error("解析失败:", Q);
|
|
923
927
|
return;
|
|
924
928
|
}
|
|
925
|
-
}, a.onerror = () => t(`读取 ${
|
|
929
|
+
}, a.onerror = () => t(`读取 ${s.name} 失败`), a.readAsText(s), e.target.value = "", ae.value = null, A.value++;
|
|
926
930
|
}));
|
|
927
931
|
await Promise.all(n);
|
|
928
932
|
};
|
|
929
|
-
|
|
930
|
-
() => [
|
|
933
|
+
Z(
|
|
934
|
+
() => [l == null ? void 0 : l.content, l == null ? void 0 : l.jsonContents],
|
|
931
935
|
async () => {
|
|
932
|
-
await rt(), x.value =
|
|
936
|
+
await rt(), x.value = l.content, M.value = l == null ? void 0 : l.jsonContents;
|
|
933
937
|
},
|
|
934
938
|
{ deep: !0, immediate: !0 }
|
|
935
|
-
),
|
|
936
|
-
() =>
|
|
939
|
+
), Z(
|
|
940
|
+
() => S.value,
|
|
937
941
|
() => {
|
|
938
942
|
var e;
|
|
939
|
-
((e =
|
|
943
|
+
((e = oe.value) == null ? void 0 : e.length) !== 0 && (v.setOriginalData(oe.value), v.setItemData(oe.value));
|
|
940
944
|
},
|
|
941
945
|
{ deep: !0, immediate: !0 }
|
|
942
946
|
), E(""), E("");
|
|
943
|
-
const
|
|
947
|
+
const G = E({
|
|
944
948
|
targetModel: "",
|
|
945
949
|
modelName: ""
|
|
946
|
-
}),
|
|
947
|
-
const e = (
|
|
950
|
+
}), le = E([]), we = E(!1), Ie = We(() => {
|
|
951
|
+
const e = (le == null ? void 0 : le.value) || [];
|
|
948
952
|
if (!e.length)
|
|
949
953
|
return !1;
|
|
950
954
|
const o = e == null ? void 0 : e[0], n = o == null ? void 0 : o.name;
|
|
951
955
|
return !(e.length === 1 && !n);
|
|
952
|
-
}),
|
|
956
|
+
}), fe = () => {
|
|
953
957
|
we.value = !1;
|
|
954
|
-
},
|
|
955
|
-
var t, a,
|
|
956
|
-
const e = (t =
|
|
958
|
+
}, Se = async () => {
|
|
959
|
+
var t, a, m;
|
|
960
|
+
const e = (t = I == null ? void 0 : I.value) == null ? void 0 : t.account, o = (a = I == null ? void 0 : I.value) == null ? void 0 : a.password;
|
|
957
961
|
if (!e)
|
|
958
962
|
return;
|
|
959
963
|
const n = await be({
|
|
@@ -962,56 +966,56 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
962
966
|
"tableData.password": o
|
|
963
967
|
}
|
|
964
968
|
});
|
|
965
|
-
return (
|
|
969
|
+
return (m = n == null ? void 0 : n.data) == null ? void 0 : m.result;
|
|
966
970
|
}, Pe = async () => {
|
|
967
|
-
const e = await
|
|
968
|
-
|
|
971
|
+
const e = await Se(), o = e == null ? void 0 : e.map((n) => n == null ? void 0 : n.key);
|
|
972
|
+
le.value = o;
|
|
969
973
|
}, Fe = () => {
|
|
970
|
-
if (!
|
|
971
|
-
const n =
|
|
972
|
-
|
|
974
|
+
if (!G.value.targetModel) {
|
|
975
|
+
const n = le.value[0], s = n == null ? void 0 : n.systemKey;
|
|
976
|
+
G.value.targetModel = s;
|
|
973
977
|
}
|
|
974
|
-
},
|
|
978
|
+
}, ve = async () => {
|
|
975
979
|
we.value = !0, await Pe(), Fe();
|
|
976
980
|
}, Re = (e) => {
|
|
977
|
-
sessionStorage.setItem("systemKey", e),
|
|
981
|
+
sessionStorage.setItem("systemKey", e), pe.setSystemKey(e), Nt();
|
|
978
982
|
}, r = (e) => {
|
|
979
|
-
|
|
983
|
+
G.value.targetModel = e;
|
|
980
984
|
}, d = async () => {
|
|
981
985
|
var e;
|
|
982
|
-
if (
|
|
983
|
-
if (!((e =
|
|
984
|
-
|
|
986
|
+
if (Ie.value) {
|
|
987
|
+
if (!((e = G == null ? void 0 : G.value) != null && e.targetModel)) {
|
|
988
|
+
he.warning("请先选择模型");
|
|
985
989
|
return;
|
|
986
990
|
}
|
|
987
|
-
|
|
991
|
+
fe(), Re(G.value.targetModel);
|
|
988
992
|
}
|
|
989
|
-
},
|
|
990
|
-
var o, n,
|
|
991
|
-
(o =
|
|
993
|
+
}, p = async () => {
|
|
994
|
+
var o, n, s;
|
|
995
|
+
(o = I == null ? void 0 : I.value) == null || o.account, (n = I == null ? void 0 : I.value) == null || n.password;
|
|
992
996
|
const e = await be({
|
|
993
997
|
key: {
|
|
994
998
|
pageKey: "/user"
|
|
995
999
|
}
|
|
996
1000
|
});
|
|
997
|
-
return (
|
|
1001
|
+
return (s = e == null ? void 0 : e.data) == null ? void 0 : s.result;
|
|
998
1002
|
}, k = async () => {
|
|
999
|
-
const e = await
|
|
1000
|
-
return e == null ? void 0 : e.reduce((n,
|
|
1001
|
-
var
|
|
1002
|
-
const t = ((
|
|
1003
|
+
const e = await p();
|
|
1004
|
+
return e == null ? void 0 : e.reduce((n, s) => {
|
|
1005
|
+
var m;
|
|
1006
|
+
const t = ((m = s == null ? void 0 : s.key) == null ? void 0 : m.systemKey) || -1, a = Number(t);
|
|
1003
1007
|
return Math.max(a, n);
|
|
1004
1008
|
}, 0);
|
|
1005
|
-
},
|
|
1009
|
+
}, Y = async () => {
|
|
1006
1010
|
const e = await c();
|
|
1007
|
-
Re(e),
|
|
1011
|
+
Re(e), fe();
|
|
1008
1012
|
}, c = async () => {
|
|
1009
|
-
var a,
|
|
1013
|
+
var a, m, Q;
|
|
1010
1014
|
const e = await k();
|
|
1011
1015
|
if (!e)
|
|
1012
1016
|
return;
|
|
1013
|
-
const o = e + 1, n = o.toString(),
|
|
1014
|
-
return (Q =
|
|
1017
|
+
const o = e + 1, n = o.toString(), s = (a = I == null ? void 0 : I.value) == null ? void 0 : a.account, t = (m = I == null ? void 0 : I.value) == null ? void 0 : m.password;
|
|
1018
|
+
return (Q = G == null ? void 0 : G.value) == null || Q.modelName, await Gt({
|
|
1015
1019
|
key: {
|
|
1016
1020
|
pageKey: "/user",
|
|
1017
1021
|
systemKey: n,
|
|
@@ -1019,12 +1023,12 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
1019
1023
|
},
|
|
1020
1024
|
value: {
|
|
1021
1025
|
tableData: {
|
|
1022
|
-
account:
|
|
1026
|
+
account: s,
|
|
1023
1027
|
password: t
|
|
1024
1028
|
}
|
|
1025
1029
|
}
|
|
1026
1030
|
}), o;
|
|
1027
|
-
},
|
|
1031
|
+
}, h = async (e) => {
|
|
1028
1032
|
if (!e)
|
|
1029
1033
|
return;
|
|
1030
1034
|
const o = (e == null ? void 0 : e.key) || {}, n = {
|
|
@@ -1037,93 +1041,93 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
1037
1041
|
await Pt(n);
|
|
1038
1042
|
}, i = async (e) => {
|
|
1039
1043
|
var n;
|
|
1040
|
-
const o = (n = e == null ? void 0 : e.map((
|
|
1044
|
+
const o = (n = e == null ? void 0 : e.map((s) => s == null ? void 0 : s.id)) == null ? void 0 : n.filter((s) => s);
|
|
1041
1045
|
(o == null ? void 0 : o.length) > 0 && await ct({
|
|
1042
1046
|
ids: o
|
|
1043
1047
|
});
|
|
1044
1048
|
}, b = async () => {
|
|
1045
|
-
|
|
1049
|
+
G.value.targetModel = "", await ve();
|
|
1046
1050
|
}, w = async (e) => {
|
|
1047
|
-
var
|
|
1051
|
+
var s, t;
|
|
1048
1052
|
K.setImportLoading(!0);
|
|
1049
|
-
const o = await
|
|
1053
|
+
const o = await Se().catch((a) => (K.setImportLoading(!1), he.error("删除失败"), Promise.reject(a))), n = o == null ? void 0 : o.find((a) => {
|
|
1050
1054
|
var Q;
|
|
1051
|
-
const
|
|
1052
|
-
return e ===
|
|
1055
|
+
const m = (Q = a == null ? void 0 : a.key) == null ? void 0 : Q.systemKey;
|
|
1056
|
+
return e === m;
|
|
1053
1057
|
});
|
|
1054
|
-
if (n && (o == null ? void 0 : o.length) === 1 && await
|
|
1058
|
+
if (n && (o == null ? void 0 : o.length) === 1 && await h(n).catch((a) => (K.setImportLoading(!1), he.error("删除失败"), Promise.reject(a))), n && (o == null ? void 0 : o.length) > 1) {
|
|
1055
1059
|
const a = await be({
|
|
1056
1060
|
key: {
|
|
1057
1061
|
systemKey: e
|
|
1058
1062
|
}
|
|
1059
|
-
}).catch((
|
|
1060
|
-
if (((
|
|
1061
|
-
const
|
|
1062
|
-
await i(
|
|
1063
|
+
}).catch((m) => (K.setImportLoading(!1), he.error("删除失败"), Promise.reject(m)));
|
|
1064
|
+
if (((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) === 200) {
|
|
1065
|
+
const m = (t = a == null ? void 0 : a.data) == null ? void 0 : t.result;
|
|
1066
|
+
await i(m).catch((Q) => (K.setImportLoading(!1), he.error("删除失败"), Promise.reject(Q)));
|
|
1063
1067
|
}
|
|
1064
1068
|
}
|
|
1065
|
-
await b(), K.setImportLoading(!1),
|
|
1066
|
-
},
|
|
1067
|
-
var n,
|
|
1068
|
-
const e = (n =
|
|
1069
|
-
(!e || !o) &&
|
|
1069
|
+
await b(), K.setImportLoading(!1), he.success("删除成功");
|
|
1070
|
+
}, g = () => {
|
|
1071
|
+
var n, s;
|
|
1072
|
+
const e = (n = I == null ? void 0 : I.value) == null ? void 0 : n.account, o = (s = I == null ? void 0 : I.value) == null ? void 0 : s.password;
|
|
1073
|
+
(!e || !o) && mt(() => {
|
|
1070
1074
|
O.push("/login");
|
|
1071
1075
|
});
|
|
1072
1076
|
};
|
|
1073
|
-
return
|
|
1074
|
-
|
|
1077
|
+
return Z(() => ye.value, (e) => {
|
|
1078
|
+
console.log(232, l == null ? void 0 : l.oldSystemKey), (l == null ? void 0 : l.oldSystemKey) === "" && (g(), G.value.targetModel = e, e || ve());
|
|
1075
1079
|
}, { deep: !0, immediate: !0 }), (e, o) => {
|
|
1076
|
-
const n = V("svg-icon"),
|
|
1080
|
+
const n = V("svg-icon"), s = V("el-button");
|
|
1077
1081
|
return B(), D("div", Ba, [
|
|
1078
|
-
(
|
|
1079
|
-
y("div",
|
|
1082
|
+
(l == null ? void 0 : l.mode) === "edit" ? (B(), D("div", wa, [
|
|
1083
|
+
y("div", Ia, [
|
|
1080
1084
|
C(at)
|
|
1081
1085
|
]),
|
|
1082
1086
|
(B(), D("div", {
|
|
1083
1087
|
class: "model-show",
|
|
1084
|
-
key:
|
|
1088
|
+
key: z.value
|
|
1085
1089
|
}, [
|
|
1086
1090
|
C(ot)
|
|
1087
1091
|
])),
|
|
1088
|
-
y("div",
|
|
1092
|
+
y("div", fa, [
|
|
1089
1093
|
C(nt)
|
|
1090
1094
|
])
|
|
1091
1095
|
])) : J("", !0),
|
|
1092
|
-
(
|
|
1093
|
-
(B(),
|
|
1094
|
-
showButton:
|
|
1095
|
-
platform: u(
|
|
1096
|
+
(l == null ? void 0 : l.mode) === "view" ? (B(), D("div", Ea, [
|
|
1097
|
+
(B(), ee(pa, {
|
|
1098
|
+
showButton: l == null ? void 0 : l.showButton,
|
|
1099
|
+
platform: u(Ae),
|
|
1096
1100
|
content: x.value,
|
|
1097
1101
|
onChange: Qe,
|
|
1098
1102
|
jsonContents: M.value,
|
|
1099
|
-
onContentChange:
|
|
1103
|
+
onContentChange: Ge,
|
|
1100
1104
|
onBuildContent: Ye,
|
|
1101
|
-
key:
|
|
1102
|
-
onShowChild:
|
|
1105
|
+
key: z.value,
|
|
1106
|
+
onShowChild: Ke
|
|
1103
1107
|
}, {
|
|
1104
|
-
default:
|
|
1108
|
+
default: f(() => {
|
|
1105
1109
|
var t;
|
|
1106
1110
|
return [
|
|
1107
|
-
((t =
|
|
1111
|
+
((t = l == null ? void 0 : l.jsonContents) == null ? void 0 : t.length) === 0 && (l != null && l.showButton) ? (B(), ee(s, {
|
|
1108
1112
|
key: 0,
|
|
1109
1113
|
class: "system-default-button",
|
|
1110
|
-
onClick:
|
|
1114
|
+
onClick: Be
|
|
1111
1115
|
}, {
|
|
1112
|
-
icon:
|
|
1116
|
+
icon: f(() => [
|
|
1113
1117
|
C(n, { name: "import" })
|
|
1114
1118
|
]),
|
|
1115
|
-
default:
|
|
1119
|
+
default: f(() => [
|
|
1116
1120
|
(B(), D("input", {
|
|
1117
1121
|
type: "file",
|
|
1118
|
-
key:
|
|
1122
|
+
key: A.value,
|
|
1119
1123
|
ref_key: "fileInput",
|
|
1120
|
-
ref:
|
|
1124
|
+
ref: ae,
|
|
1121
1125
|
accept: ".txt, .inm, .iml, .imd",
|
|
1122
|
-
onChange:
|
|
1126
|
+
onChange: q,
|
|
1123
1127
|
style: { display: "none" },
|
|
1124
1128
|
multiple: ""
|
|
1125
1129
|
}, null, 32)),
|
|
1126
|
-
o[0] || (o[0] =
|
|
1130
|
+
o[0] || (o[0] = re(" 导入模型 "))
|
|
1127
1131
|
]),
|
|
1128
1132
|
_: 1,
|
|
1129
1133
|
__: [0]
|
|
@@ -1135,33 +1139,33 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
1135
1139
|
])) : J("", !0),
|
|
1136
1140
|
C(ut, {
|
|
1137
1141
|
class: "select-model-dialog",
|
|
1138
|
-
visible: we.value,
|
|
1139
|
-
onBeforeDestroy:
|
|
1142
|
+
visible: we.value && (l == null ? void 0 : l.oldSystemKey) === "",
|
|
1143
|
+
onBeforeDestroy: fe,
|
|
1140
1144
|
showClose: !1,
|
|
1141
1145
|
closeOnClickModal: !1,
|
|
1142
1146
|
closeOnPressEscape: !1,
|
|
1143
1147
|
modalClass: "select-model-modal",
|
|
1144
1148
|
alignCenter: !0
|
|
1145
1149
|
}, {
|
|
1146
|
-
default:
|
|
1150
|
+
default: f(() => [
|
|
1147
1151
|
y("div", ka, [
|
|
1148
1152
|
y("div", Qa, [
|
|
1149
1153
|
o[1] || (o[1] = y("div", { class: "create-project-title" }, " 新建项目 ", -1)),
|
|
1150
|
-
y("div",
|
|
1151
|
-
C(
|
|
1154
|
+
y("div", Sa, [
|
|
1155
|
+
C(me, {
|
|
1152
1156
|
emptyColor: !0,
|
|
1153
|
-
onClickTrigger:
|
|
1157
|
+
onClickTrigger: Y,
|
|
1154
1158
|
modelValue: "创建项目",
|
|
1155
1159
|
buttonType: "primary"
|
|
1156
1160
|
})
|
|
1157
1161
|
])
|
|
1158
1162
|
]),
|
|
1159
|
-
y("div",
|
|
1163
|
+
y("div", va, [
|
|
1160
1164
|
o[2] || (o[2] = y("div", { class: "enter-project-title" }, "项目列表", -1)),
|
|
1161
|
-
|
|
1162
|
-
(B(!0), D(je, null, Je(
|
|
1165
|
+
Ie.value ? (B(), D("div", Ra, [
|
|
1166
|
+
(B(!0), D(je, null, Je(le.value, (t) => (B(), D("div", {
|
|
1163
1167
|
class: Ze(["project-item", {
|
|
1164
|
-
"project-item-active": (t == null ? void 0 : t.systemKey) ==
|
|
1168
|
+
"project-item-active": (t == null ? void 0 : t.systemKey) == G.value.targetModel
|
|
1165
1169
|
}]),
|
|
1166
1170
|
onClick: (a) => r(t == null ? void 0 : t.systemKey)
|
|
1167
1171
|
}, [
|
|
@@ -1176,8 +1180,8 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
1176
1180
|
], 10, Ua))), 256))
|
|
1177
1181
|
])) : J("", !0),
|
|
1178
1182
|
y("div", Da, [
|
|
1179
|
-
C(
|
|
1180
|
-
class: Ze({ "enter-button-disable": !
|
|
1183
|
+
C(me, {
|
|
1184
|
+
class: Ze({ "enter-button-disable": !Ie.value }),
|
|
1181
1185
|
emptyColor: !0,
|
|
1182
1186
|
onClickTrigger: d,
|
|
1183
1187
|
modelValue: "进入项目",
|
|
@@ -1192,7 +1196,7 @@ const xt = /* @__PURE__ */ ke(wt, [["render", Wt], ["__scopeId", "data-v-3f5e9b4
|
|
|
1192
1196
|
]);
|
|
1193
1197
|
};
|
|
1194
1198
|
}
|
|
1195
|
-
}, to = /* @__PURE__ */ ke(Ya, [["__scopeId", "data-v-
|
|
1199
|
+
}, to = /* @__PURE__ */ ke(Ya, [["__scopeId", "data-v-c5e0115b"]]);
|
|
1196
1200
|
export {
|
|
1197
1201
|
to as default
|
|
1198
1202
|
};
|