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.
@@ -1,36 +1,36 @@
1
- import { resolveComponent as V, createBlock as $, openBlock as B, withCtx as I, createVNode as C, createElementVNode as y, toDisplayString as L, ref as E, onMounted as et, watch as X, 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 ie, renderSlot as Ne, vShow as Xe, resolveDynamicComponent as pt, normalizeClass as Ze, nextTick as ht } from "vue";
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 mt, b as Bt } from "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DtoSEF10.js";
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 ft, c as It, a as Et, b as kt, d as Qt, g as vt, e as St, f as Rt, h as Ut, i as bt, j as jt } from "./index.vue_vue_type_style_index_0_scoped_c80f0a23_lang-Au5fVfKN.js";
6
- import { p as ce, s as re, a as lt, u as xe, c as Ee } from "./index.vue_vue_type_style_index_1_lang-BcbZuvjK.js";
7
- import { S as ge } from "./index-BHtNKL1L.js";
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 Gt } from "./index-DFOanwRw.js";
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 de, g as be, b as ct, E as ye, c as Kt, u as Pt } from "./index-DHX6rKjz.js";
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 pe, s as ut } from "./index-C-iXZX_6.js";
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(Y, oe, s, U, O, x) {
24
- const g = V("svg-icon"), F = V("ssMenu");
25
- return B(), $(F, {
26
- mode: Y.mode,
27
- menuList: Y.renderMenuList,
28
- onClickMenu: Y.clickMenu,
29
- onOpenMenu: Y.openMenu,
30
- onCloseMenu: Y.closeMenu
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: I(({ menu: M }) => [
33
- C(g, {
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(Y, { emit: oe }) {
56
- const s = Y, U = E([]), O = oe;
55
+ setup(T, { emit: ne }) {
56
+ const l = T, U = E([]), O = ne;
57
57
  et(() => {
58
- U.value = s == null ? void 0 : s.breadArray;
59
- }), X(
60
- () => s == null ? void 0 : s.breadArray,
58
+ U.value = l == null ? void 0 : l.breadArray;
59
+ }), Z(
60
+ () => l == null ? void 0 : l.breadArray,
61
61
  () => {
62
- U.value = s == null ? void 0 : s.breadArray;
62
+ U.value = l == null ? void 0 : l.breadArray;
63
63
  },
64
64
  { deep: !0, immediate: !0 }
65
65
  );
66
- const x = (g) => {
67
- O("click", g);
66
+ const x = (A) => {
67
+ O("click", A);
68
68
  };
69
- return (g, F) => (B(), D("div", Ht, [
70
- (B(!0), D(je, null, Je(U.value, (M, Z) => {
71
- var S;
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: Z,
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: ((S = U.value) == null ? void 0 : S.length) - 1 === Z ? "0.7" : "1" })
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
- Z !== U.value.length - 1 && Array.isArray(U.value) ? (B(), D("div", Lt, L("/"))) : J("", !0)
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(Y, { emit: oe }) {
147
- const s = st(ce), { selectTitle: U } = re(s), O = E(!1), x = E(), g = E(null), F = E(), M = E(!1), Z = Gt(ce), { blobUrls: S } = re(Z), K = E(!1), T = E(!1), W = E(!1), ee = E(!1), ue = E(null);
148
- Ct("contentRef", ue);
149
- const te = lt(), { loginUserInfo: v } = re(te), ae = He(ce), { isEdit: Ae, routeToChildPath: he } = re(ae), f = oe, Ce = xe(ce), { importLoading: Ye, activeAsideMenu: Ge, contentLoading: Ke, platName: Qe, activeMenuPath: me } = re(Ce), Be = Y, P = We(() => Ge.value.isRouter), ne = () => {
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
- f("buildContent");
153
- }, fe = (r) => {
152
+ I("buildContent");
153
+ }, Ie = (r) => {
154
154
  if ((r == null ? void 0 : r.type) === "table") {
155
- let m = r == null ? void 0 : r.row;
156
- m && (F.value = {
157
- url: m,
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
- }, f("showChild", {
160
- url: m,
159
+ }, I("showChild", {
160
+ url: p,
161
161
  row: r == null ? void 0 : r.row
162
162
  }));
163
163
  }
164
- }, Ie = async () => {
164
+ }, fe = async () => {
165
165
  let r = {};
166
- const d = await De("弯管仿真加工分析/仿真动画生成", sessionStorage.getItem("systemKey"), ""), m = await De("弯管仿真加工分析/管件解析", sessionStorage.getItem("systemKey"), "");
167
- let k = ["管长", "外径"], G = {};
168
- m == null || m.forEach((c) => {
169
- var p;
170
- (c == null ? void 0 : c.comp) === "Form" && ((p = c == null ? void 0 : c.compData) == null || p.forEach((i) => {
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) && (G[w.key] = w.value);
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 p, i, b, w, A, e;
177
+ var h, i, b, w, g, e;
178
178
  if ((c == null ? void 0 : c.comp) === "Table") {
179
- let o = [], n = (b = (i = (p = c == null ? void 0 : c.compData) == null ? void 0 : p.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), l = (e = (A = (w = c == null ? void 0 : c.compData) == null ? void 0 : w.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : A.contents) == null ? void 0 : e.map((t) => (t = t == null ? void 0 : t.filter((a) => !(a != null && a.id)), t));
180
- l == null || l.forEach((t) => {
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 = G, x.value = r;
185
- }, ve = (r) => {
186
- let d = Ee(r), m = [], k = [];
187
- return d == null || d.forEach((G, c) => {
188
- c === (r == null ? void 0 : r.length) - 1 ? (k.push(G), m.push(k)) : ((k == null ? void 0 : k.length) !== 0 && G.includes(".obj") && (m.push(k), k = []), k.push(G));
189
- }), m;
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 ((Be == null ? void 0 : Be.platform) !== "browser" && (O.value = !0, F.value)) {
193
- const m = F.value;
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 (m == null ? void 0 : m.url) == "string") {
196
- let G = (r = m == null ? void 0 : m.url) == null ? void 0 : r.split(","), c = (d = ve(G)) == null ? void 0 : d.map(async (p) => {
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 ((p == null ? void 0 : p.length) === 1) {
199
- let w = p == null ? void 0 : p.map(async (A) => {
200
- var l, t;
201
- let e = await de.get(A, {
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 = A == null ? void 0 : A.split(".")) == null ? void 0 : t[((l = A == null ? void 0 : A.split(".")) == null ? void 0 : l.length) - 1]),
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 = p == null ? void 0 : p.find((a) => a == null ? void 0 : a.includes(".obj")), A = await de.get(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([A.data], {
225
+ const e = new Blob([g.data], {
226
226
  type: "application/octet-stream;charset=UTF-8"
227
227
  });
228
- let o = p == null ? void 0 : p.filter((a) => a == null ? void 0 : a.includes(".mtl")), n = [], l = o == null ? void 0 : o.map(async (a) => {
229
- let h = await de.get(w, {
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([h.data], {
235
+ const Q = new Blob([m.data], {
236
236
  type: "application/octet-stream;charset=UTF-8"
237
237
  });
238
- return n.push(Q), h;
238
+ return n.push(Q), m;
239
239
  });
240
- await Promise.all(l);
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
- g.value.loadModelByDefaultPath(k);
251
+ A.value.loadModelByDefaultPath(k);
252
252
  }
253
253
  }, Fe = () => {
254
- M.value = !1, g.value = null;
254
+ M.value = !1, A.value = null;
255
255
  };
256
- X(() => me.value, async (r) => {
257
- r && (T.value = !0), r === "弯管仿真加工分析/仿真动画生成" ? W.value = !0 : W.value = !1, r === "弯管仿真加工分析/程序输出" ? ee.value = !0 : ee.value = !1, Me != null && Me.find((d) => {
258
- var m;
259
- return (d == null ? void 0 : d.key) === ((m = r == null ? void 0 : r.split("/")) == null ? void 0 : m[(r == null ? void 0 : r.split("/").length) - 1]);
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 }), X(
262
- () => [S == null ? void 0 : S.value],
261
+ }, { immediate: !0 }), Z(
262
+ () => [v == null ? void 0 : v.value],
263
263
  async () => {
264
- var r, d, m, k, G;
265
- if (S != null && S.value && ((r = S == null ? void 0 : S.value) == null ? void 0 : r.length) > 0 && !K.value && !((d = Ue.value) != null && d.find((c) => (c == null ? void 0 : c.name) === "输入") && ((m = Ue.value) != null && m.find((c) => (c == null ? void 0 : c.name) === "输出")))) {
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 p = await ((k = Ee(S == null ? void 0 : S.value)) == null ? void 0 : k.map(async (i) => {
269
- var o, n, l, t, a, h, Q, q, N, le;
270
- let b, w, A;
271
- i != null && i.blob.includes("undefined") ? A = (n = (o = i == null ? void 0 : i.blob) == null ? void 0 : o.split("undefined,")) == null ? void 0 : n[1] : A = i == null ? void 0 : i.blob;
272
- let e = A == null ? void 0 : A.split(",");
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 z = await (e == null ? void 0 : e.map(async (j) => {
275
- var H, R, se, Ve, Le, Oe;
276
- b = await de.get(j, {
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 de.get(gt, {
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 _.push(new Blob([qe.data], {
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[((se = j == null ? void 0 : j.split(".")) == null ? void 0 : se.length) - 1]) !== "undefined" && c.push({
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(z);
306
- } else if (!(A != null && A.includes("https://")) && !(A != null && A.includes("http://"))) {
305
+ await Promise.all(_);
306
+ } else if (!(g != null && g.includes("https://")) && !(g != null && g.includes("http://"))) {
307
307
  b = await _e({
308
- url: A
308
+ url: g
309
309
  });
310
- let z = [];
311
- if (((l = i == null ? void 0 : i.mtlBlobs) == null ? void 0 : l.length) > 0) {
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 z.push(new Blob([H.data], {
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: "." + ((h = A == null ? void 0 : A.split(".")) == null ? void 0 : h[((a = A == null ? void 0 : A.split(".")) == null ? void 0 : a.length) - 1]),
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: z
327
+ mtlBlobs: _
328
328
  };
329
329
  } else {
330
- b = await de.get(A, {
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 z = [];
336
+ let _ = [];
337
337
  if (((Q = i == null ? void 0 : i.mtlBlobs) == null ? void 0 : Q.length) > 0) {
338
- let j = await ((q = i == null ? void 0 : i.mtlBlobs) == null ? void 0 : q.map(async (_) => {
339
- let H = await de.get(_, {
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 z.push(new Blob([H.data], {
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 : "." + ((le = A == null ? void 0 : A.split(".")) == null ? void 0 : le[((N = A == null ? void 0 : A.split(".")) == null ? void 0 : N.length) - 1]),
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: z
356
+ mtlBlobs: _
357
357
  };
358
358
  }
359
359
  w && c.push(w);
360
360
  }));
361
- await Promise.all(p), (c == null ? void 0 : c.length) !== 0 && ((G = g.value) == null || G.loadModelByDefaultPath(c));
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 Se = async () => {
367
- var d, m, k, G;
368
- Ce.setImportLoading(!0);
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 = (G = (k = (m = r == null ? void 0 : r.data) == null ? void 0 : m.result) == null ? void 0 : k.map((p) => {
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 = p == null ? void 0 : p.key) == null ? void 0 : i.layer) !== "superAdmin")
378
- return p == null ? void 0 : p.id;
379
- })) == null ? void 0 : G.filter((p) => p);
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
- }), Ce.setRawMenus([]);
382
+ }), ye.setRawMenus([]);
383
383
  }
384
- Ce.setImportLoading(!1);
384
+ ye.setImportLoading(!1);
385
385
  }, Re = async () => {
386
386
  await Dt();
387
387
  };
388
388
  return et(() => {
389
- f("setLoginInfo", v.value);
389
+ I("setLoginInfo", S.value);
390
390
  }), (r, d) => {
391
- const m = V("el-dialog"), k = V("el-button"), G = V("el-avatar"), c = V("el-header"), p = V("el-container"), i = V("el-aside"), b = V("router-view"), w = V("el-main"), A = yt("loading");
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(m, {
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: I(() => [
398
+ default: f(() => [
399
399
  C(ze, {
400
400
  ref_key: "threeModelRef",
401
- ref: g,
402
- onGetAnimationData: Ie,
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(p, { class: "client-container" }, {
409
- default: I(() => [
408
+ Te(C(h, { class: "client-container" }, {
409
+ default: f(() => [
410
410
  C(c, { class: "client-structure-header" }, {
411
- default: I(() => {
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(ft)
417
+ onClick: u(It)
418
418
  }, {
419
- default: I(() => d[3] || (d[3] = [
420
- ie(" 返回页面 ")
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, l;
429
- return u(It)((l = (n = u(U)) == null ? void 0 : n.map((t) => t.value)) == null ? void 0 : l.join("/"));
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: I(() => [
433
- C(ge, { name: "Store" })
432
+ icon: f(() => [
433
+ C(de, { name: "Store" })
434
434
  ]),
435
- default: I(() => [
436
- d[4] || (d[4] = ie(" 保存页面 "))
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(G, {
450
+ C(Y, {
451
451
  size: 35,
452
- src: (e = u(v)) == null ? void 0 : e.avatarUrl
452
+ src: (e = u(S)) == null ? void 0 : e.avatarUrl
453
453
  }, {
454
- default: I(() => {
454
+ default: f(() => {
455
455
  var o;
456
456
  return [
457
- ie(L(((o = u(v)) == null ? void 0 : o.account) ?? "未知"), 1)
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(Ae) === "edit" ? (B(), $(p, {
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: I(() => [
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(Ae) === "edit"]
488
+ [Xe, u(ge) === "edit"]
489
489
  ]),
490
- Te((B(), $(p, {
490
+ Te((B(), ee(h, {
491
491
  class: "client-container",
492
492
  "element-loading-text": "正在加载页面数据..."
493
493
  }, {
494
- default: I(() => [
494
+ default: f(() => [
495
495
  C(c, { class: "client-header" }, {
496
- default: I(() => [
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
- Y.showButton ? (B(), $(k, {
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: I(() => [
511
- C(ge, { name: "App" })
510
+ icon: f(() => [
511
+ C(de, { name: "App" })
512
512
  ]),
513
- default: I(() => [
514
- d[5] || (d[5] = ie(" 生成APP "))
513
+ default: f(() => [
514
+ d[5] || (d[5] = re(" 生成APP "))
515
515
  ]),
516
516
  _: 1,
517
517
  __: [5]
518
518
  })) : J("", !0),
519
- Y.showButton && u(Ae) === "view" ? (B(), $(k, {
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: I(() => [
525
- C(ge, { name: "write" })
524
+ icon: f(() => [
525
+ C(de, { name: "write" })
526
526
  ]),
527
- default: I(() => [
528
- d[6] || (d[6] = ie(" 修改布局 "))
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: I(() => {
535
+ dropTitle: f(() => {
536
536
  var e;
537
537
  return [
538
538
  C($e, {
539
539
  size: "35",
540
- avatarUrl: (e = u(v)) == null ? void 0 : e.avatarUrl,
540
+ avatarUrl: (e = u(S)) == null ? void 0 : e.avatarUrl,
541
541
  showCropper: !1,
542
542
  banClick: !0
543
543
  }, {
544
- avatarDefault: I(() => {
545
- var o, n, l;
544
+ avatarDefault: f(() => {
545
+ var o, n, s;
546
546
  return [
547
- ie(L((o = u(v)) != null && o.account ? (n = u(v)) == null ? void 0 : n.account : ((l = u(v)) == null ? void 0 : l.账号) ?? "未知"), 1)
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: I(() => {
555
- var e, o, n, l, t, a, h, Q;
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(v)) == null ? void 0 : e.avatarUrl,
560
+ avatarUrl: (e = u(S)) == null ? void 0 : e.avatarUrl,
561
561
  showCropper: !1,
562
562
  banClick: !0
563
563
  }, {
564
- avatarDefault: I(() => {
565
- var q, N, le;
564
+ avatarDefault: f(() => {
565
+ var X, N, se;
566
566
  return [
567
- ie(L((q = u(v)) != null && q.account ? (N = u(v)) == null ? void 0 : N.account : ((le = u(v)) == null ? void 0 : le.账号) ?? "未知"), 1)
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(v)) != null && o.account ? (n = u(v)) == null ? void 0 : n.account : ((l = u(v)) == null ? void 0 : l.姓名) ?? "未知"), 1),
575
- y("span", null, L(((a = (t = u(v)) == null ? void 0 : t.layer) == null ? void 0 : a.toUpperCase()) === "SUPERADMIN" ? "超级管理员" : ((h = u(v)) == null ? void 0 : h.角色名称) ?? "未知"), 1)
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(v)) == null ? void 0 : Q.工号) ?? "未知"), 1)
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(ge, {
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(ge, {
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(ge, {
598
+ C(de, {
599
599
  name: "clear",
600
600
  style: { width: "15px", height: "15px" }
601
601
  }),
602
- C(pe, {
602
+ C(me, {
603
603
  emptyColor: !0,
604
604
  class: "menu-button",
605
- onClickTrigger: Se,
605
+ onClickTrigger: ve,
606
606
  modelValue: "清空数据",
607
607
  buttonType: ""
608
608
  })
609
609
  ]),
610
610
  y("div", null, [
611
- C(ge, {
611
+ C(de, {
612
612
  name: "exit",
613
613
  style: { width: "15px", height: "15px", color: "#EB503D" }
614
614
  }),
615
- C(pe, {
615
+ C(me, {
616
616
  emptyColor: !0,
617
617
  class: "menu-button",
618
- onClickTrigger: ne,
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(p, { class: "client-body" }, {
635
- default: I(() => [
634
+ C(h, { class: "client-body" }, {
635
+ default: f(() => [
636
636
  C(w, { class: "client-main" }, {
637
- default: I(() => {
638
- var e, o, n, l;
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: Y.platform === "client" ? `url(${u(Xt)})` : `url(${u(Zt)})` })
642
+ style: tt({ backgroundImage: T.platform === "client" ? `url(${u(Xt)})` : `url(${u(Zt)})` })
643
643
  }, {
644
- default: I(() => [
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: ue,
652
+ ref: Ae,
653
653
  "element-loading-text": "正在加载页面数据..."
654
654
  }, [
655
- u(he) !== "" ? (B(), D("div", ua, [
656
- C(pe, {
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
- P.value ? (B(), $(b, { key: 0 })) : J("", !0),
664
- P.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 h;
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
- ((h = t == null ? void 0 : t.comp) == null ? void 0 : h.toUpperCase()) !== "TABLE" && t.name ? (B(), D("div", ga, L(t.name), 1)) : J("", !0),
671
- (B(), $(pt(u(vt)(t.comp)), {
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(St),
680
- onRowClick: fe
679
+ onPageChange: u(vt),
680
+ onRowClick: Ie
681
681
  }, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
682
682
  ]);
683
683
  }), 128)),
684
- !P.value && !((o = u(Ee)(u(Ue))) != null && o.find((t) => t.comp === "methodButton")) ? (B(), D("div", da, [
685
- u(he) !== "" && ((l = u(me)) == null ? void 0 : l[((n = u(me)) == null ? void 0 : n.length) - 1]) !== "/" ? (B(), $(pe, {
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
- [A, u(Ke)]
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: I(() => [
709
+ default: f(() => [
710
710
  C(ze, {
711
711
  ref_key: "threeModelRef",
712
- ref: g
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(Ae) === "view"],
722
- [A, u(Ye)]
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-9fb2adb2"]]), pa = { class: "system-wrap" }, ha = {
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(Y, { emit: oe }) {
748
- const s = He(ce), U = st(ce), O = xe();
747
+ setup(T, { emit: ne }) {
748
+ const l = He(ue), U = st(ue), O = xe();
749
749
  E(!1);
750
- const x = E(!0), g = Y, F = oe, M = (T) => {
751
- F("showChild", T);
752
- }, Z = We(() => {
753
- switch (g == null ? void 0 : g.platform) {
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 mt;
757
+ return pt;
758
758
  }
759
- }), S = (T) => {
759
+ }), v = (F) => {
760
760
  const W = document.documentElement;
761
- T == null || T.forEach((ee) => {
762
- W.style.setProperty(ee.name, ee.value);
761
+ F == null || F.forEach((te) => {
762
+ W.style.setProperty(te.name, te.value);
763
763
  });
764
764
  };
765
- X(() => g.platform, (T, W) => {
766
- T && S(Z.value);
765
+ Z(() => A.platform, (F, W) => {
766
+ F && v(z.value);
767
767
  }, { immediate: !0 });
768
768
  const K = () => {
769
- F("buildContent");
769
+ P("buildContent");
770
770
  };
771
- return X(
772
- () => [g == null ? void 0 : g.content, g == null ? void 0 : g.jsonContents],
771
+ return Z(
772
+ () => [A == null ? void 0 : A.content, A == null ? void 0 : A.jsonContents],
773
773
  async () => {
774
- var ee, ue, te, v;
775
- if (((ee = g == null ? void 0 : g.jsonContents) == null ? void 0 : ee.length) > 0) {
776
- s.setOriginalData(g == null ? void 0 : g.jsonContents);
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 (!(g != null && g.content) || ((ue = g == null ? void 0 : g.content) == null ? void 0 : ue.length) === 0) return;
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 T = [], W = [];
782
- U.setSelectTitle([]), U.setSelectIndex(""), U.setSelectMenu(""), (v = (te = g == null ? void 0 : g.content) == null ? void 0 : te.filter((ae) => ae !== "")) == null || v.forEach((ae) => {
783
- W.push(bt(ae));
784
- }), T = W == null ? void 0 : W[0], await jt(T), await rt(), s.setOriginalData(T), O.setImportLoading(!1);
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
- ), (T, W) => (B(), D("div", pa, [
787
+ ), (F, W) => (B(), D("div", ha, [
788
788
  C(ya, {
789
- windowConfig: Y.windowConfig,
790
- showButton: Y.showButton,
789
+ windowConfig: T.windowConfig,
790
+ showButton: A == null ? void 0 : A.showButton,
791
791
  onBuildContent: K,
792
792
  onShowChild: M,
793
- platform: g == null ? void 0 : g.platform
793
+ platform: A == null ? void 0 : A.platform
794
794
  }, {
795
- default: I(() => [
796
- Ne(T.$slots, "default", {}, void 0, !0)
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
- }, ma = /* @__PURE__ */ ke(ha, [["__scopeId", "data-v-f7e3201c"]]), Ba = { class: "add-model-content" }, wa = {
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
- }, fa = { class: "model-select" }, Ia = { class: "model-fill" }, Ea = {
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" }, va = { class: "create-project-button" }, Sa = { class: "enter-project" }, Ra = {
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(Y, { emit: oe }) {
841
- const s = Y, U = oe, O = Ft(), x = E([]), g = E(0), F = E([]), M = E([]), Z = E(0), S = He(ce), K = xe(ce), { itemData: T, originalData: W } = re(S), { activeMenuPath: ee, platform: ue } = re(K), te = E(null), v = E(0), ae = E([]);
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 Ae = E(0), he = lt(), { loginUserInfo: f, systemKey: Ce } = re(he), Ye = () => {
847
+ const ge = E(0), pe = lt(), { loginUserInfo: I, systemKey: ye } = ce(pe), Ye = () => {
844
848
  U("buildContent");
845
849
  };
846
- X(
847
- () => s == null ? void 0 : s.pageKey,
850
+ Z(
851
+ () => l == null ? void 0 : l.pageKey,
848
852
  async () => {
849
853
  let e = {};
850
- if ((s == null ? void 0 : s.pageKey) !== "") {
851
- const o = await De(s == null ? void 0 : s.pageKey, sessionStorage.getItem("systemKey"), ""), n = await De("弯管仿真加工分析/管件解析", sessionStorage.getItem("systemKey"), "");
852
- let l = ["管长", "外径"], t = {};
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 h;
855
- (a == null ? void 0 : a.comp) === "Form" && ((h = a == null ? void 0 : a.compData) == null || h.forEach((Q) => {
856
- var q;
857
- (Q == null ? void 0 : Q.key) === "formContent" && ((q = Q == null ? void 0 : Q.contents) == null || q.forEach((N) => {
858
- l.includes(N == null ? void 0 : N.key) && (t[N.key] = N.value);
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 h, Q, q, N, le, z;
866
+ var m, Q, X, N, se, _;
863
867
  if ((a == null ? void 0 : a.comp) === "Table") {
864
- let j = [], _ = (q = (Q = (h = a == null ? void 0 : a.compData) == null ? void 0 : h.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : Q.contents) == null ? void 0 : q.map((R) => R == null ? void 0 : R.label), H = (z = (le = (N = a == null ? void 0 : a.compData) == null ? void 0 : N.find((R) => (R == null ? void 0 : R.key) === "tableContents")) == null ? void 0 : le.contents) == null ? void 0 : z.map((R) => (R = R == null ? void 0 : R.filter((se) => !(se != null && se.id)), R));
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, _ == null ? void 0 : _.filter((se) => se !== "操作")));
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 Ge = (e) => {
878
+ const Ke = (e) => {
875
879
  U("openThreeBuild", e);
876
880
  };
877
- X(
878
- () => s == null ? void 0 : s.pathContent,
881
+ Z(
882
+ () => l == null ? void 0 : l.pathContent,
879
883
  () => {
880
- (s == null ? void 0 : s.pathContent) !== "" && S.setSystemPath(s == null ? void 0 : s.pathContent);
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 Ke = (e) => {
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((l) => {
895
+ const o = (n = Ee(e == null ? void 0 : e.wholeValue)) == null ? void 0 : n.map((s) => {
892
896
  var t;
893
- return (l == null ? void 0 : l.comp) === "Form" && (l.compData = (t = l.compData) == null ? void 0 : t.map((a) => ((a == null ? void 0 : a.key) === "formContent" && (a.contents = Yt(a == null ? void 0 : a.contents)), a))), l;
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
- X(
903
- () => F.value,
906
+ Z(
907
+ () => P.value,
904
908
  () => {
905
- Ae.value === F.value.length && F.value.length !== 0 && (x.value = F.value);
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 me = () => {
910
- te.value !== null && te.value.click();
911
- }, Be = async (e) => {
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 = [], F.value = [], Ae.value = o.length;
916
- const n = Array.from(o).map(async (l) => await new Promise((t) => {
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 = (h) => {
922
+ a.onload = (m) => {
919
923
  try {
920
- F.value.push(h.target.result), v.value++;
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(`读取 ${l.name} 失败`), a.readAsText(l), e.target.value = "", te.value = null, g.value++;
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
- X(
930
- () => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
933
+ Z(
934
+ () => [l == null ? void 0 : l.content, l == null ? void 0 : l.jsonContents],
931
935
  async () => {
932
- await rt(), x.value = s.content, M.value = s == null ? void 0 : s.jsonContents;
936
+ await rt(), x.value = l.content, M.value = l == null ? void 0 : l.jsonContents;
933
937
  },
934
938
  { deep: !0, immediate: !0 }
935
- ), X(
936
- () => v.value,
939
+ ), Z(
940
+ () => S.value,
937
941
  () => {
938
942
  var e;
939
- ((e = ae.value) == null ? void 0 : e.length) !== 0 && (S.setOriginalData(ae.value), S.setItemData(ae.value));
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 P = E({
947
+ const G = E({
944
948
  targetModel: "",
945
949
  modelName: ""
946
- }), ne = E([]), we = E(!1), fe = We(() => {
947
- const e = (ne == null ? void 0 : ne.value) || [];
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
- }), Ie = () => {
956
+ }), fe = () => {
953
957
  we.value = !1;
954
- }, ve = async () => {
955
- var t, a, h;
956
- const e = (t = f == null ? void 0 : f.value) == null ? void 0 : t.account, o = (a = f == null ? void 0 : f.value) == null ? void 0 : a.password;
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 (h = n == null ? void 0 : n.data) == null ? void 0 : h.result;
969
+ return (m = n == null ? void 0 : n.data) == null ? void 0 : m.result;
966
970
  }, Pe = async () => {
967
- const e = await ve(), o = e == null ? void 0 : e.map((n) => n == null ? void 0 : n.key);
968
- ne.value = o;
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 (!P.value.targetModel) {
971
- const n = ne.value[0], l = n == null ? void 0 : n.systemKey;
972
- P.value.targetModel = l;
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
- }, Se = async () => {
978
+ }, ve = async () => {
975
979
  we.value = !0, await Pe(), Fe();
976
980
  }, Re = (e) => {
977
- sessionStorage.setItem("systemKey", e), he.setSystemKey(e), Nt();
981
+ sessionStorage.setItem("systemKey", e), pe.setSystemKey(e), Nt();
978
982
  }, r = (e) => {
979
- P.value.targetModel = e;
983
+ G.value.targetModel = e;
980
984
  }, d = async () => {
981
985
  var e;
982
- if (fe.value) {
983
- if (!((e = P == null ? void 0 : P.value) != null && e.targetModel)) {
984
- ye.warning("请先选择模型");
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
- Ie(), Re(P.value.targetModel);
991
+ fe(), Re(G.value.targetModel);
988
992
  }
989
- }, m = async () => {
990
- var o, n, l;
991
- (o = f == null ? void 0 : f.value) == null || o.account, (n = f == null ? void 0 : f.value) == null || n.password;
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 (l = e == null ? void 0 : e.data) == null ? void 0 : l.result;
1001
+ return (s = e == null ? void 0 : e.data) == null ? void 0 : s.result;
998
1002
  }, k = async () => {
999
- const e = await m();
1000
- return e == null ? void 0 : e.reduce((n, l) => {
1001
- var h;
1002
- const t = ((h = l == null ? void 0 : l.key) == null ? void 0 : h.systemKey) || -1, a = Number(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
- }, G = async () => {
1009
+ }, Y = async () => {
1006
1010
  const e = await c();
1007
- Re(e), Ie();
1011
+ Re(e), fe();
1008
1012
  }, c = async () => {
1009
- var a, h, Q;
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(), l = (a = f == null ? void 0 : f.value) == null ? void 0 : a.account, t = (h = f == null ? void 0 : f.value) == null ? void 0 : h.password;
1014
- return (Q = P == null ? void 0 : P.value) == null || Q.modelName, await Kt({
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: l,
1026
+ account: s,
1023
1027
  password: t
1024
1028
  }
1025
1029
  }
1026
1030
  }), o;
1027
- }, p = async (e) => {
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((l) => l == null ? void 0 : l.id)) == null ? void 0 : n.filter((l) => l);
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
- P.value.targetModel = "", await Se();
1049
+ G.value.targetModel = "", await ve();
1046
1050
  }, w = async (e) => {
1047
- var l, t;
1051
+ var s, t;
1048
1052
  K.setImportLoading(!0);
1049
- const o = await ve().catch((a) => (K.setImportLoading(!1), ye.error("删除失败"), Promise.reject(a))), n = o == null ? void 0 : o.find((a) => {
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 h = (Q = a == null ? void 0 : a.key) == null ? void 0 : Q.systemKey;
1052
- return e === h;
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 p(n).catch((a) => (K.setImportLoading(!1), ye.error("删除失败"), Promise.reject(a))), n && (o == null ? void 0 : o.length) > 1) {
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((h) => (K.setImportLoading(!1), ye.error("删除失败"), Promise.reject(h)));
1060
- if (((l = a == null ? void 0 : a.data) == null ? void 0 : l.code) === 200) {
1061
- const h = (t = a == null ? void 0 : a.data) == null ? void 0 : t.result;
1062
- await i(h).catch((Q) => (K.setImportLoading(!1), ye.error("删除失败"), Promise.reject(Q)));
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), ye.success("删除成功");
1066
- }, A = () => {
1067
- var n, l;
1068
- const e = (n = f == null ? void 0 : f.value) == null ? void 0 : n.account, o = (l = f == null ? void 0 : f.value) == null ? void 0 : l.password;
1069
- (!e || !o) && ht(() => {
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 X(() => Ce.value, (e) => {
1074
- A(), P.value.targetModel = e, e || Se();
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"), l = V("el-button");
1080
+ const n = V("svg-icon"), s = V("el-button");
1077
1081
  return B(), D("div", Ba, [
1078
- (s == null ? void 0 : s.mode) === "edit" ? (B(), D("div", wa, [
1079
- y("div", fa, [
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: Z.value
1088
+ key: z.value
1085
1089
  }, [
1086
1090
  C(ot)
1087
1091
  ])),
1088
- y("div", Ia, [
1092
+ y("div", fa, [
1089
1093
  C(nt)
1090
1094
  ])
1091
1095
  ])) : J("", !0),
1092
- (s == null ? void 0 : s.mode) === "view" ? (B(), D("div", Ea, [
1093
- (B(), $(ma, {
1094
- showButton: Y.showButton,
1095
- platform: u(ue),
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: Ke,
1103
+ onContentChange: Ge,
1100
1104
  onBuildContent: Ye,
1101
- key: Z.value,
1102
- onShowChild: Ge
1105
+ key: z.value,
1106
+ onShowChild: Ke
1103
1107
  }, {
1104
- default: I(() => {
1108
+ default: f(() => {
1105
1109
  var t;
1106
1110
  return [
1107
- ((t = s == null ? void 0 : s.jsonContents) == null ? void 0 : t.length) === 0 && (s != null && s.showButton) ? (B(), $(l, {
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: me
1114
+ onClick: Be
1111
1115
  }, {
1112
- icon: I(() => [
1116
+ icon: f(() => [
1113
1117
  C(n, { name: "import" })
1114
1118
  ]),
1115
- default: I(() => [
1119
+ default: f(() => [
1116
1120
  (B(), D("input", {
1117
1121
  type: "file",
1118
- key: g.value,
1122
+ key: A.value,
1119
1123
  ref_key: "fileInput",
1120
- ref: te,
1124
+ ref: ae,
1121
1125
  accept: ".txt, .inm, .iml, .imd",
1122
- onChange: Be,
1126
+ onChange: q,
1123
1127
  style: { display: "none" },
1124
1128
  multiple: ""
1125
1129
  }, null, 32)),
1126
- o[0] || (o[0] = ie(" 导入模型 "))
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: Ie,
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: I(() => [
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", va, [
1151
- C(pe, {
1154
+ y("div", Sa, [
1155
+ C(me, {
1152
1156
  emptyColor: !0,
1153
- onClickTrigger: G,
1157
+ onClickTrigger: Y,
1154
1158
  modelValue: "创建项目",
1155
1159
  buttonType: "primary"
1156
1160
  })
1157
1161
  ])
1158
1162
  ]),
1159
- y("div", Sa, [
1163
+ y("div", va, [
1160
1164
  o[2] || (o[2] = y("div", { class: "enter-project-title" }, "项目列表", -1)),
1161
- fe.value ? (B(), D("div", Ra, [
1162
- (B(!0), D(je, null, Je(ne.value, (t) => (B(), D("div", {
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) == P.value.targetModel
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(pe, {
1180
- class: Ze({ "enter-button-disable": !fe.value }),
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-c80f0a23"]]);
1199
+ }, to = /* @__PURE__ */ ke(Ya, [["__scopeId", "data-v-c5e0115b"]]);
1196
1200
  export {
1197
1201
  to as default
1198
1202
  };