ss-component-new 1.1.720 → 1.1.721
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-qlcp7dSO.js → array-BcN1bdmj.js} +1 -1
- package/dist/{array-DEbfPHDH.cjs → array-CgJ6luvr.cjs} +1 -1
- package/dist/{index-BwhKCIej.js → index-50HGqFLU.js} +3 -3
- package/dist/{index-z0QR4tVS.cjs → index-B9SUJ4Zu.cjs} +1 -1
- package/dist/{index-DiP6O-5D.cjs → index-BAdqe1Qk.cjs} +1 -1
- package/dist/{index-1sXWJq2l.js → index-BHBGoWFE.js} +4 -4
- package/dist/{index-BCZ59Y4K.js → index-BHZ56TUj.js} +1 -0
- package/dist/{index-2p69g4HY.cjs → index-BKUqLOwQ.cjs} +5 -5
- package/dist/{index-zfP0aoN3.cjs → index-BV3gIolN.cjs} +1 -1
- package/dist/{index-BeHX-iSq.js → index-BYl3ZfMW.js} +2 -2
- package/dist/{index-C4f8PJA1.js → index-B_GAWj5p.js} +3 -3
- package/dist/{index-D1tLA_OV.js → index-B_h8SY5M.js} +1 -1
- package/dist/{index-CcW3dvPS.js → index-BaJiGLkX.js} +1 -1
- package/dist/{index-C23Pn4nJ.cjs → index-BaOJ2FlA.cjs} +1 -1
- package/dist/{index-DURRklJg.cjs → index-Be3sB22h.cjs} +1 -1
- package/dist/{index-B8yLxBTE.js → index-Bidjqofb.js} +5 -5
- package/dist/{index-DvGVJ0hp.js → index-Bjlg9wnM.js} +6 -6
- package/dist/{index-DsBOxOiC.cjs → index-BkryeHcb.cjs} +1 -1
- package/dist/{index-B5xOJfq6.js → index-Bl6RAbAc.js} +2 -2
- package/dist/{index-B2l-kEN9.cjs → index-Bwj8bU3w.cjs} +1 -1
- package/dist/{index-BrQVl4Zd.cjs → index-Bxw2nNk2.cjs} +1 -1
- package/dist/{index-BOUMEwvf.js → index-C08wAtul.js} +4 -4
- package/dist/{index-D5ELKa9H.cjs → index-C1IBXnyt.cjs} +1 -1
- package/dist/{index-CmfIvT3g.js → index-C2KiCWir.js} +3 -3
- package/dist/{index-BJJQvCLK.cjs → index-C5OJDom_.cjs} +1 -1
- package/dist/{index-BwIaZMgn.js → index-C8KgQTfH.js} +7558 -7453
- package/dist/{index-CkDvcCFV.cjs → index-CAV4FH8Z.cjs} +1 -1
- package/dist/{index-BCcGa1Ni.js → index-CIPfJ4V5.js} +6 -6
- package/dist/{index-C2VsPkt3.cjs → index-CLaUio0q.cjs} +1 -1
- package/dist/{index-BfbhJt5N.cjs → index-CSfd9Nvs.cjs} +1 -1
- package/dist/{index-D6NF1MuH.js → index-CVDOumPC.js} +3 -3
- package/dist/{index-DSKn6Ebg.js → index-Cd71tWDj.js} +3 -3
- package/dist/{index-DgPw8IAq.cjs → index-CeOHn1Vk.cjs} +1 -1
- package/dist/{index-DiHU6eQ6.cjs → index-Cx320XRD.cjs} +1 -1
- package/dist/{index-B7qmdczF.js → index-CyCiiIH7.js} +8 -8
- package/dist/{index-eHp0tJMh.cjs → index-CyTykQhT.cjs} +1 -1
- package/dist/{index-BoPmmUFe.cjs → index-D4nn1MaA.cjs} +1 -1
- package/dist/{index-DM0p7s11.cjs → index-D9G0MN0h.cjs} +1 -1
- package/dist/{index-CgQHP109.cjs → index-D9HFpsnH.cjs} +1 -1
- package/dist/{index-oVFO2ehi.js → index-DFwEXQv-.js} +4 -4
- package/dist/{index-Ct0CmWjo.js → index-DIlWcnao.js} +1 -1
- package/dist/{index-CatyTybI.js → index-DJ2FxFvx.js} +1 -1
- package/dist/{index-DyH3cqs6.js → index-DLPqu104.js} +6 -6
- package/dist/index-DOn8yEZJ.cjs +4207 -0
- package/dist/{index-zcupmvZE.cjs → index-Dn7yNpUx.cjs} +1 -1
- package/dist/{index-DkVRhgEp.cjs → index-Dz7-jX87.cjs} +1 -1
- package/dist/{index-uxUXgOHv.cjs → index-GxAWv8aU.cjs} +1 -1
- package/dist/{index-CfFxvIyn.cjs → index-VQ4mf0NG.cjs} +1 -1
- package/dist/{index-Cf8gmSBA.js → index-YA8F1H22.js} +3 -3
- package/dist/{index-By3_dv73.js → index-di0y5Ciz.js} +663 -662
- package/dist/{index-8V3HMbzD.cjs → index-fniyUh6b.cjs} +1 -1
- package/dist/{index-9xkmciOn.js → index-onW5suua.js} +4 -4
- package/dist/{index-SkmkkNfn.js → index-v9IlbVxb.js} +3 -3
- package/dist/{index-Cb3jqwM0.js → index-xSTLa8Bb.js} +108 -108
- package/dist/{index.vue_vue_type_script_setup_true_lang-COqYQkpd.js → index.vue_vue_type_script_setup_true_lang-DAIduaBX.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dzme5B0i.cjs → index.vue_vue_type_script_setup_true_lang-De8jbnS5.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BH1vPpoM.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bn_-cql3.cjs} +57 -57
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CvD6y-YU.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C_N41ilG.js} +1715 -1720
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-Dd_VBPHR.js → index.vue_vue_type_style_index_0_scoped_8606206c_lang-BgHhMOqW.js} +15 -15
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-BT4NFC5D.cjs → index.vue_vue_type_style_index_0_scoped_8606206c_lang-CCQ1V4Ad.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Dhj1K76x.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BajRaUap.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CBsgEuhs.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CVGFhYru.cjs} +1 -1
- package/dist/{login-BKNb-U3r.cjs → login-DoVI1BJb.cjs} +1 -1
- package/dist/{login-Bpq5wJyt.js → login-Dxsw3cch.js} +1 -1
- package/dist/{main-BjCfrhva.js → main-B5FfttkG.js} +4 -4
- package/dist/{main-BtckrOrJ.cjs → main-C_jD1CK-.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-d0Y2Oi7B.js → threeModel-BNhwg7RT.js} +3 -3
- package/dist/{threeModel-SN65YHZO.cjs → threeModel-Dwjk_uWz.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CSO1CCLV.cjs +0 -4207
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bn_-cql3.cjs");const n=require("./login-DoVI1BJb.cjs");require("./index-BKUqLOwQ.cjs");const o=require("./index-DOn8yEZJ.cjs"),c=require("./index-CAV4FH8Z.cjs"),u=require("./index-CLaUio0q.cjs"),i={class:"role-wrapper"},s=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...c.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await u.getActivePageStructureId(r.value)}),(l,_)=>(e.openBlock(),e.createElementBlock("div",i,[e.createVNode(o.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=s;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
|
|
2
|
-
import { c as J, s as be, a as he, n as Ce, u as Ie, p as U } from "./login-
|
|
3
|
-
import { u as ke } from "./index-
|
|
4
|
-
import { f as Te } from "./index-
|
|
5
|
-
import { g as $, E as S, bm as ae, bk as oe, bn as Me, b as Se } from "./index-
|
|
2
|
+
import { c as J, s as be, a as he, n as Ce, u as Ie, p as U } from "./login-Dxsw3cch.js";
|
|
3
|
+
import { u as ke } from "./index-C8KgQTfH.js";
|
|
4
|
+
import { f as Te } from "./index-v9IlbVxb.js";
|
|
5
|
+
import { g as $, E as S, bm as ae, bk as oe, bn as Me, b as Se } from "./index-BHZ56TUj.js";
|
|
6
6
|
const F = Ie(U), ne = ke(U), C = he(U), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = j(() => {
|
|
7
7
|
var e, t;
|
|
8
8
|
return [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as u, computed as R, reactive as J, nextTick as H, watch as X } from "vue";
|
|
2
|
-
import { g as j, E as b, bm as Y, bk as Z, bn as m } from "./index-
|
|
3
|
-
import { m as we, s as C, b as ee, c as N, u as De, p as A, a as te } from "./login-
|
|
2
|
+
import { g as j, E as b, bm as Y, bk as Z, bn as m } from "./index-BHZ56TUj.js";
|
|
3
|
+
import { m as we, s as C, b as ee, c as N, u as De, p as A, a as te } from "./login-Dxsw3cch.js";
|
|
4
4
|
import { d as se, i as Ie, e as V } from "./crypto-BRyGpjGR.js";
|
|
5
|
-
import { E as Ee } from "./index-
|
|
5
|
+
import { E as Ee } from "./index-BYl3ZfMW.js";
|
|
6
6
|
const re = we("authorityState", {
|
|
7
7
|
state: () => ({
|
|
8
8
|
routerPageStructures: []
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { resolveComponent as V, createBlock as _, openBlock as B, withCtx as p, createVNode as A, createElementVNode as d, toDisplayString as O, ref as k, onMounted as Xe, watch as $, createElementBlock as Y, Fragment as Fe, renderList as Ze, createCommentVNode as N, normalizeStyle as ze, defineComponent as st, provide as rt, computed as _e, resolveDirective as At, withDirectives as Ye, unref as
|
|
2
|
-
import { m as $e, a as et, b as tt } from "./index-
|
|
3
|
-
import { c as ut, b as gt } from "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-
|
|
1
|
+
import { resolveComponent as V, createBlock as _, openBlock as B, withCtx as p, createVNode as A, createElementVNode as d, toDisplayString as O, ref as k, onMounted as Xe, watch as $, createElementBlock as Y, Fragment as Fe, renderList as Ze, createCommentVNode as N, normalizeStyle as ze, defineComponent as st, provide as rt, computed as _e, resolveDirective as At, withDirectives as Ye, unref as s, createTextVNode as ne, renderSlot as Pe, vShow as Ve, resolveDynamicComponent as ct } from "vue";
|
|
2
|
+
import { m as $e, a as et, b as tt } from "./index-DLPqu104.js";
|
|
3
|
+
import { c as ut, b as gt } from "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BajRaUap.js";
|
|
4
4
|
import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { _ as dt, s as Re, o as Ct, c as ht, a as mt, b as pt, d as Bt, g as It, e as yt, f as ft, h as wt, i as Et, j as Qt } from "./index.vue_vue_type_style_index_0_scoped_8606206c_lang-
|
|
6
|
-
import { p as le, s as de, b as kt, u as Te, a as Ke, c as we } from "./login-
|
|
5
|
+
import { _ as dt, s as Re, o as Ct, c as ht, a as mt, b as pt, d as Bt, g as It, e as yt, f as ft, h as wt, i as Et, j as Qt } from "./index.vue_vue_type_style_index_0_scoped_8606206c_lang-BgHhMOqW.js";
|
|
6
|
+
import { p as le, s as de, b as kt, u as Te, a as Ke, c as we } from "./login-Dxsw3cch.js";
|
|
7
7
|
import { S as ue } from "./index-BHtNKL1L.js";
|
|
8
|
-
import { o as St } from "./index-
|
|
9
|
-
import { a as Ut } from "./array-
|
|
10
|
-
import { u as at, a as Rt } from "./index-
|
|
11
|
-
import { g as be, a as ot, l as nt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
12
|
-
import { a as ge, g as vt, b as bt } from "./index-
|
|
8
|
+
import { o as St } from "./index-di0y5Ciz.js";
|
|
9
|
+
import { a as Ut } from "./array-BcN1bdmj.js";
|
|
10
|
+
import { u as at, a as Rt } from "./index-C8KgQTfH.js";
|
|
11
|
+
import { g as be, a as ot, l as nt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C_N41ilG.js";
|
|
12
|
+
import { a as ge, g as vt, b as bt } from "./index-BHZ56TUj.js";
|
|
13
13
|
import "vue-router";
|
|
14
|
-
import jt from "./index-
|
|
15
|
-
import xe from "./threeModel-
|
|
16
|
-
import { d as Oe, _ as Dt, a as ve, s as Yt } from "./index-
|
|
17
|
-
import { _ as qe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import jt from "./index-BaJiGLkX.js";
|
|
15
|
+
import xe from "./threeModel-BNhwg7RT.js";
|
|
16
|
+
import { d as Oe, _ as Dt, a as ve, s as Yt } from "./index-Bidjqofb.js";
|
|
17
|
+
import { _ as qe } from "./index.vue_vue_type_script_setup_true_lang-DAIduaBX.js";
|
|
18
18
|
const Gt = { class: "menu-title" };
|
|
19
19
|
function Ft(R, te, a, U, P, q) {
|
|
20
|
-
const
|
|
20
|
+
const l = V("svg-icon"), W = V("ssMenu");
|
|
21
21
|
return B(), _(W, {
|
|
22
22
|
mode: R.mode,
|
|
23
23
|
menuList: R.renderMenuList,
|
|
@@ -26,7 +26,7 @@ function Ft(R, te, a, U, P, q) {
|
|
|
26
26
|
onCloseMenu: R.closeMenu
|
|
27
27
|
}, {
|
|
28
28
|
title: p(({ menu: T }) => [
|
|
29
|
-
A(
|
|
29
|
+
A(l, {
|
|
30
30
|
class: "menu-icon",
|
|
31
31
|
name: T.icon ?? "default",
|
|
32
32
|
style: { "margin-right": "8px" }
|
|
@@ -59,10 +59,10 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
59
59
|
},
|
|
60
60
|
{ deep: !0, immediate: !0 }
|
|
61
61
|
);
|
|
62
|
-
const q = (
|
|
63
|
-
P("click",
|
|
62
|
+
const q = (l) => {
|
|
63
|
+
P("click", l);
|
|
64
64
|
};
|
|
65
|
-
return (
|
|
65
|
+
return (l, W) => (B(), Y("div", Tt, [
|
|
66
66
|
(B(!0), Y(Fe, null, Ze(U.value, (T, H) => {
|
|
67
67
|
var S;
|
|
68
68
|
return B(), Y("div", {
|
|
@@ -140,7 +140,7 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
140
140
|
},
|
|
141
141
|
emits: ["showChild", "buildContent", "setLoginInfo"],
|
|
142
142
|
setup(R, { emit: te }) {
|
|
143
|
-
const a = at(le), { selectTitle: U } = de(a), P = k(!1), q = k(),
|
|
143
|
+
const a = at(le), { selectTitle: U } = de(a), P = k(!1), q = k(), l = k(null), W = k(), T = k(!1), H = Rt(le), { blobUrls: S } = de(H), ie = k(!1), b = k(!1), L = k(!1), X = k(!1), Z = k(null);
|
|
144
144
|
rt("contentRef", Z);
|
|
145
145
|
const se = kt(), { loginUserInfo: y } = de(se), ae = Te(le), { isEdit: Ce, routeToChildPath: Qe } = de(ae), pe = te, he = Ke(le), { importLoading: je, activeAsideMenu: De, contentLoading: C, platName: F, activeMenuPath: K } = de(he), j = R, J = _e(() => De.value.isRouter), u = () => {
|
|
146
146
|
sessionStorage.clear(), window.location.reload();
|
|
@@ -161,27 +161,27 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
161
161
|
let o = {};
|
|
162
162
|
const e = await be("弯管仿真加工分析/仿真动画生成", sessionStorage.getItem("systemKey"), ""), c = await be("弯管仿真加工分析/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
163
163
|
let I = ["管长", "外径"], G = {};
|
|
164
|
-
c == null || c.forEach((
|
|
164
|
+
c == null || c.forEach((i) => {
|
|
165
165
|
var g;
|
|
166
|
-
(
|
|
166
|
+
(i == null ? void 0 : i.comp) === "Form" && ((g = i == null ? void 0 : i.compData) == null || g.forEach((n) => {
|
|
167
167
|
var v;
|
|
168
|
-
(
|
|
168
|
+
(n == null ? void 0 : n.key) === "formContent" && ((v = n == null ? void 0 : n.contents) == null || v.forEach((h) => {
|
|
169
169
|
I.includes(h == null ? void 0 : h.key) && (G[h.key] = h.value);
|
|
170
170
|
}));
|
|
171
171
|
}));
|
|
172
|
-
}), e == null || e.forEach((
|
|
173
|
-
var g,
|
|
174
|
-
if ((
|
|
175
|
-
let f = [], w = (v = (
|
|
172
|
+
}), e == null || e.forEach((i) => {
|
|
173
|
+
var g, n, v, h, r, m;
|
|
174
|
+
if ((i == null ? void 0 : i.comp) === "Table") {
|
|
175
|
+
let f = [], w = (v = (n = (g = i == null ? void 0 : i.compData) == null ? void 0 : g.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : n.contents) == null ? void 0 : v.map((t) => t == null ? void 0 : t.label), Q = (m = (r = (h = i == null ? void 0 : i.compData) == null ? void 0 : h.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : r.contents) == null ? void 0 : m.map((t) => (t = t == null ? void 0 : t.filter((E) => !(E != null && E.id)), t));
|
|
176
176
|
Q == null || Q.forEach((t) => {
|
|
177
177
|
f.push(ot(t, w == null ? void 0 : w.filter((E) => E !== "操作")));
|
|
178
|
-
}), o[
|
|
178
|
+
}), o[i.name] = f, o[i.name + "Content"] = i;
|
|
179
179
|
}
|
|
180
180
|
}), o.extra = G, q.value = o;
|
|
181
181
|
}, z = (o) => {
|
|
182
182
|
let e = we(o), c = [], I = [];
|
|
183
|
-
return e == null || e.forEach((G,
|
|
184
|
-
|
|
183
|
+
return e == null || e.forEach((G, i) => {
|
|
184
|
+
i === (o == null ? void 0 : o.length) - 1 ? (I.push(G), c.push(I)) : ((I == null ? void 0 : I.length) !== 0 && G.includes(".obj") && (c.push(I), I = []), I.push(G));
|
|
185
185
|
}), c;
|
|
186
186
|
}, ke = async () => {
|
|
187
187
|
var o, e;
|
|
@@ -189,8 +189,8 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
189
189
|
const c = W.value;
|
|
190
190
|
let I = [];
|
|
191
191
|
if (typeof (c == null ? void 0 : c.url) == "string") {
|
|
192
|
-
let G = (o = c == null ? void 0 : c.url) == null ? void 0 : o.split(","),
|
|
193
|
-
var
|
|
192
|
+
let G = (o = c == null ? void 0 : c.url) == null ? void 0 : o.split(","), i = (e = z(G)) == null ? void 0 : e.map(async (g) => {
|
|
193
|
+
var n, v;
|
|
194
194
|
if ((g == null ? void 0 : g.length) === 1) {
|
|
195
195
|
let h = g == null ? void 0 : g.map(async (r) => {
|
|
196
196
|
var Q, t;
|
|
@@ -235,19 +235,19 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
235
235
|
});
|
|
236
236
|
await Promise.all(Q);
|
|
237
237
|
let t = {
|
|
238
|
-
suffix: "." + ((v = h == null ? void 0 : h.split(".")) == null ? void 0 : v[((
|
|
238
|
+
suffix: "." + ((v = h == null ? void 0 : h.split(".")) == null ? void 0 : v[((n = h == null ? void 0 : h.split(".")) == null ? void 0 : n.length) - 1]),
|
|
239
239
|
blob: m,
|
|
240
240
|
mtlBlobs: w
|
|
241
241
|
};
|
|
242
242
|
return I.push(t), t;
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
await Promise.all(
|
|
245
|
+
await Promise.all(i);
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
l.value.loadModelByDefaultPath(I);
|
|
248
248
|
}
|
|
249
249
|
}, Se = () => {
|
|
250
|
-
T.value = !1,
|
|
250
|
+
T.value = !1, l.value = null;
|
|
251
251
|
};
|
|
252
252
|
$(() => K.value, async (o) => {
|
|
253
253
|
o && (b.value = !0), o === "弯管仿真加工分析/仿真动画生成" ? L.value = !0 : L.value = !1, o === "弯管仿真加工分析/程序输出" ? X.value = !0 : X.value = !1, Ge != null && Ge.find((e) => {
|
|
@@ -258,13 +258,13 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
258
258
|
() => [S == null ? void 0 : S.value],
|
|
259
259
|
async () => {
|
|
260
260
|
var o, e, c, I, G;
|
|
261
|
-
if (S != null && S.value && ((o = S == null ? void 0 : S.value) == null ? void 0 : o.length) > 0 && !ie.value && !((e = Re.value) != null && e.find((
|
|
261
|
+
if (S != null && S.value && ((o = S == null ? void 0 : S.value) == null ? void 0 : o.length) > 0 && !ie.value && !((e = Re.value) != null && e.find((i) => (i == null ? void 0 : i.name) === "输入") && ((c = Re.value) != null && c.find((i) => (i == null ? void 0 : i.name) === "输出")))) {
|
|
262
262
|
T.value = !0;
|
|
263
|
-
let
|
|
264
|
-
const g = await ((I = we(S == null ? void 0 : S.value)) == null ? void 0 : I.map(async (
|
|
263
|
+
let i = [];
|
|
264
|
+
const g = await ((I = we(S == null ? void 0 : S.value)) == null ? void 0 : I.map(async (n) => {
|
|
265
265
|
var f, w, Q, t, E, x, Ae, Ie, ye, fe;
|
|
266
266
|
let v, h, r;
|
|
267
|
-
|
|
267
|
+
n != null && n.blob.includes("undefined") ? r = (w = (f = n == null ? void 0 : n.blob) == null ? void 0 : f.split("undefined,")) == null ? void 0 : w[1] : r = n == null ? void 0 : n.blob;
|
|
268
268
|
let m = r == null ? void 0 : r.split(",");
|
|
269
269
|
if ((m == null ? void 0 : m.length) > 1) {
|
|
270
270
|
let ce = await (m == null ? void 0 : m.map(async (D) => {
|
|
@@ -276,8 +276,8 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
let me = [];
|
|
279
|
-
if (((oe =
|
|
280
|
-
let lt = await ((Je =
|
|
279
|
+
if (((oe = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : oe.length) > 0) {
|
|
280
|
+
let lt = await ((Je = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : Je.map(async (it) => {
|
|
281
281
|
let Le = await ge.get(it, {
|
|
282
282
|
responseType: "blob",
|
|
283
283
|
headers: {
|
|
@@ -290,7 +290,7 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
290
290
|
}));
|
|
291
291
|
await Promise.all(lt);
|
|
292
292
|
}
|
|
293
|
-
return ((Ne = D == null ? void 0 : D.split(".")) == null ? void 0 : Ne[((Me = D == null ? void 0 : D.split(".")) == null ? void 0 : Me.length) - 1]) !== "undefined" &&
|
|
293
|
+
return ((Ne = D == null ? void 0 : D.split(".")) == null ? void 0 : Ne[((Me = D == null ? void 0 : D.split(".")) == null ? void 0 : Me.length) - 1]) !== "undefined" && i.push({
|
|
294
294
|
suffix: "." + ((He = D == null ? void 0 : D.split(".")) == null ? void 0 : He[((We = D == null ? void 0 : D.split(".")) == null ? void 0 : We.length) - 1]),
|
|
295
295
|
blob: new Blob([v.data], {
|
|
296
296
|
type: "application/octet-stream;charset=UTF-8"
|
|
@@ -304,8 +304,8 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
304
304
|
url: r
|
|
305
305
|
});
|
|
306
306
|
let ce = [];
|
|
307
|
-
if (((Q =
|
|
308
|
-
let D = await ((t =
|
|
307
|
+
if (((Q = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : Q.length) > 0) {
|
|
308
|
+
let D = await ((t = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : t.map(async (me) => {
|
|
309
309
|
let oe = await Oe({
|
|
310
310
|
url: me
|
|
311
311
|
});
|
|
@@ -330,8 +330,8 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
330
330
|
}
|
|
331
331
|
});
|
|
332
332
|
let ce = [];
|
|
333
|
-
if (((Ae =
|
|
334
|
-
let D = await ((Ie =
|
|
333
|
+
if (((Ae = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : Ae.length) > 0) {
|
|
334
|
+
let D = await ((Ie = n == null ? void 0 : n.mtlBlobs) == null ? void 0 : Ie.map(async (me) => {
|
|
335
335
|
let oe = await ge.get(me, {
|
|
336
336
|
responseType: "blob",
|
|
337
337
|
headers: {
|
|
@@ -345,16 +345,16 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
345
345
|
await Promise.all(D);
|
|
346
346
|
}
|
|
347
347
|
h = {
|
|
348
|
-
suffix: "." + ((fe = r == null ? void 0 : r.split(".")) == null ? void 0 : fe[((ye = r == null ? void 0 : r.split(".")) == null ? void 0 : ye.length) - 1]),
|
|
348
|
+
suffix: n != null && n.suffix ? n == null ? void 0 : n.suffix : "." + ((fe = r == null ? void 0 : r.split(".")) == null ? void 0 : fe[((ye = r == null ? void 0 : r.split(".")) == null ? void 0 : ye.length) - 1]),
|
|
349
349
|
blob: new Blob([v.data], {
|
|
350
350
|
type: "application/octet-stream;charset=UTF-8"
|
|
351
351
|
}),
|
|
352
352
|
mtlBlobs: ce
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
h &&
|
|
355
|
+
h && i.push(h);
|
|
356
356
|
}));
|
|
357
|
-
await Promise.all(g), (
|
|
357
|
+
await Promise.all(g), (i == null ? void 0 : i.length) !== 0 && ((G = l.value) == null || G.loadModelByDefaultPath(i));
|
|
358
358
|
}
|
|
359
359
|
},
|
|
360
360
|
{ immediate: !0, deep: !0 }
|
|
@@ -368,13 +368,13 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
370
|
if (((e = o == null ? void 0 : o.data) == null ? void 0 : e.code) === 200) {
|
|
371
|
-
let
|
|
372
|
-
var
|
|
373
|
-
if (((
|
|
371
|
+
let i = (G = (I = (c = o == null ? void 0 : o.data) == null ? void 0 : c.result) == null ? void 0 : I.map((g) => {
|
|
372
|
+
var n;
|
|
373
|
+
if (((n = g == null ? void 0 : g.key) == null ? void 0 : n.layer) !== "superAdmin")
|
|
374
374
|
return g == null ? void 0 : g.id;
|
|
375
375
|
})) == null ? void 0 : G.filter((g) => g);
|
|
376
|
-
(
|
|
377
|
-
ids:
|
|
376
|
+
(i == null ? void 0 : i.length) > 0 && await bt({
|
|
377
|
+
ids: i
|
|
378
378
|
}), he.setRawMenus([]);
|
|
379
379
|
}
|
|
380
380
|
he.setImportLoading(!1);
|
|
@@ -384,7 +384,7 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
384
384
|
return Xe(() => {
|
|
385
385
|
pe("setLoginInfo", y.value);
|
|
386
386
|
}), (o, e) => {
|
|
387
|
-
const c = V("el-dialog"), I = V("el-button"), G = V("el-avatar"),
|
|
387
|
+
const c = V("el-dialog"), I = V("el-button"), G = V("el-avatar"), i = V("el-header"), g = V("el-container"), n = V("el-aside"), v = V("router-view"), h = V("el-main"), r = At("loading");
|
|
388
388
|
return B(), Y(Fe, null, [
|
|
389
389
|
A(c, {
|
|
390
390
|
modelValue: P.value,
|
|
@@ -394,7 +394,7 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
394
394
|
default: p(() => [
|
|
395
395
|
A(xe, {
|
|
396
396
|
ref_key: "threeModelRef",
|
|
397
|
-
ref:
|
|
397
|
+
ref: l,
|
|
398
398
|
onGetAnimationData: re,
|
|
399
399
|
animationData: q.value
|
|
400
400
|
}, null, 8, ["animationData"])
|
|
@@ -403,14 +403,14 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
403
403
|
}, 8, ["modelValue"]),
|
|
404
404
|
Ye(A(g, { class: "client-container" }, {
|
|
405
405
|
default: p(() => [
|
|
406
|
-
A(
|
|
406
|
+
A(i, { class: "client-structure-header" }, {
|
|
407
407
|
default: p(() => {
|
|
408
408
|
var m;
|
|
409
409
|
return [
|
|
410
410
|
d("div", Lt, [
|
|
411
411
|
A(I, {
|
|
412
412
|
id: "transparentBgButton",
|
|
413
|
-
onClick:
|
|
413
|
+
onClick: s(Ct)
|
|
414
414
|
}, {
|
|
415
415
|
default: p(() => e[3] || (e[3] = [
|
|
416
416
|
ne(" 返回页面 ")
|
|
@@ -422,7 +422,7 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
422
422
|
id: "transparentBgButton",
|
|
423
423
|
onClick: e[1] || (e[1] = (f) => {
|
|
424
424
|
var w, Q;
|
|
425
|
-
return
|
|
425
|
+
return s(ht)((Q = (w = s(U)) == null ? void 0 : w.map((t) => t.value)) == null ? void 0 : Q.join("/"));
|
|
426
426
|
})
|
|
427
427
|
}, {
|
|
428
428
|
icon: p(() => [
|
|
@@ -437,20 +437,20 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
437
437
|
]),
|
|
438
438
|
d("div", Vt, [
|
|
439
439
|
A(Nt, {
|
|
440
|
-
breadArray:
|
|
441
|
-
onClick:
|
|
440
|
+
breadArray: s(U),
|
|
441
|
+
onClick: s(mt)
|
|
442
442
|
}, null, 8, ["breadArray", "onClick"])
|
|
443
443
|
]),
|
|
444
444
|
d("div", xt, [
|
|
445
445
|
Pe(o.$slots, "default", {}, void 0, !0),
|
|
446
446
|
A(G, {
|
|
447
447
|
size: 35,
|
|
448
|
-
src: (m =
|
|
448
|
+
src: (m = s(y)) == null ? void 0 : m.avatarUrl
|
|
449
449
|
}, {
|
|
450
450
|
default: p(() => {
|
|
451
451
|
var f;
|
|
452
452
|
return [
|
|
453
|
-
ne(O(((f =
|
|
453
|
+
ne(O(((f = s(y)) == null ? void 0 : f.account) ?? "未知"), 1)
|
|
454
454
|
];
|
|
455
455
|
}),
|
|
456
456
|
_: 1
|
|
@@ -460,7 +460,7 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
460
460
|
}),
|
|
461
461
|
_: 3
|
|
462
462
|
}),
|
|
463
|
-
|
|
463
|
+
s(Ce) === "edit" ? (B(), _(g, {
|
|
464
464
|
key: 0,
|
|
465
465
|
class: "model-operate",
|
|
466
466
|
style: { "margin-top": "10px", height: "0px" }
|
|
@@ -481,19 +481,19 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
481
481
|
]),
|
|
482
482
|
_: 3
|
|
483
483
|
}, 512), [
|
|
484
|
-
[Ve,
|
|
484
|
+
[Ve, s(Ce) === "edit"]
|
|
485
485
|
]),
|
|
486
486
|
Ye((B(), _(g, {
|
|
487
487
|
class: "client-container",
|
|
488
488
|
"element-loading-text": "正在加载页面数据..."
|
|
489
489
|
}, {
|
|
490
490
|
default: p(() => [
|
|
491
|
-
A(
|
|
491
|
+
A(i, { class: "client-header" }, {
|
|
492
492
|
default: p(() => [
|
|
493
493
|
d("div", {
|
|
494
494
|
class: "client-header-logo",
|
|
495
495
|
onClick: ke
|
|
496
|
-
}, O(
|
|
496
|
+
}, O(s(F) === "" ? "ISIP" : s(F)), 1),
|
|
497
497
|
d("div", Zt, [
|
|
498
498
|
A(Pt, { mode: "horizontal" })
|
|
499
499
|
]),
|
|
@@ -512,10 +512,10 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
512
512
|
_: 1,
|
|
513
513
|
__: [5]
|
|
514
514
|
})) : N("", !0),
|
|
515
|
-
R.showButton &&
|
|
515
|
+
R.showButton && s(Ce) === "view" ? (B(), _(I, {
|
|
516
516
|
key: 1,
|
|
517
517
|
class: "system-default-button",
|
|
518
|
-
onClick:
|
|
518
|
+
onClick: s(pt)
|
|
519
519
|
}, {
|
|
520
520
|
icon: p(() => [
|
|
521
521
|
A(ue, { name: "write" })
|
|
@@ -533,14 +533,14 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
533
533
|
return [
|
|
534
534
|
A(qe, {
|
|
535
535
|
size: "35",
|
|
536
|
-
avatarUrl: (m =
|
|
536
|
+
avatarUrl: (m = s(y)) == null ? void 0 : m.avatarUrl,
|
|
537
537
|
showCropper: !1,
|
|
538
538
|
banClick: !0
|
|
539
539
|
}, {
|
|
540
540
|
avatarDefault: p(() => {
|
|
541
541
|
var f, w, Q;
|
|
542
542
|
return [
|
|
543
|
-
ne(O((f =
|
|
543
|
+
ne(O((f = s(y)) != null && f.account ? (w = s(y)) == null ? void 0 : w.account : ((Q = s(y)) == null ? void 0 : Q.账号) ?? "未知"), 1)
|
|
544
544
|
];
|
|
545
545
|
}),
|
|
546
546
|
_: 1
|
|
@@ -553,24 +553,24 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
553
553
|
d("div", _t, [
|
|
554
554
|
d("div", $t, [
|
|
555
555
|
A(qe, {
|
|
556
|
-
avatarUrl: (m =
|
|
556
|
+
avatarUrl: (m = s(y)) == null ? void 0 : m.avatarUrl,
|
|
557
557
|
showCropper: !1,
|
|
558
558
|
banClick: !0
|
|
559
559
|
}, {
|
|
560
560
|
avatarDefault: p(() => {
|
|
561
561
|
var Ie, ye, fe;
|
|
562
562
|
return [
|
|
563
|
-
ne(O((Ie =
|
|
563
|
+
ne(O((Ie = s(y)) != null && Ie.account ? (ye = s(y)) == null ? void 0 : ye.account : ((fe = s(y)) == null ? void 0 : fe.账号) ?? "未知"), 1)
|
|
564
564
|
];
|
|
565
565
|
}),
|
|
566
566
|
_: 1
|
|
567
567
|
}, 8, ["avatarUrl"]),
|
|
568
568
|
d("div", ea, [
|
|
569
569
|
d("div", null, [
|
|
570
|
-
d("span", null, O((f =
|
|
571
|
-
d("span", null, O(((E = (t =
|
|
570
|
+
d("span", null, O((f = s(y)) != null && f.account ? (w = s(y)) == null ? void 0 : w.account : ((Q = s(y)) == null ? void 0 : Q.姓名) ?? "未知"), 1),
|
|
571
|
+
d("span", null, O(((E = (t = s(y)) == null ? void 0 : t.layer) == null ? void 0 : E.toUpperCase()) === "SUPERADMIN" ? "超级管理员" : ((x = s(y)) == null ? void 0 : x.角色名称) ?? "未知"), 1)
|
|
572
572
|
]),
|
|
573
|
-
d("div", null, O(((Ae =
|
|
573
|
+
d("div", null, O(((Ae = s(y)) == null ? void 0 : Ae.工号) ?? "未知"), 1)
|
|
574
574
|
])
|
|
575
575
|
]),
|
|
576
576
|
d("div", ta, [
|
|
@@ -633,9 +633,9 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
633
633
|
default: p(() => {
|
|
634
634
|
var m, f, w, Q;
|
|
635
635
|
return [
|
|
636
|
-
A(
|
|
636
|
+
A(n, {
|
|
637
637
|
class: "client-aside",
|
|
638
|
-
style: ze({ backgroundImage: R.platform === "client" ? `url(${
|
|
638
|
+
style: ze({ backgroundImage: R.platform === "client" ? `url(${s(Wt)})` : `url(${s(Ht)})` })
|
|
639
639
|
}, {
|
|
640
640
|
default: p(() => [
|
|
641
641
|
A(jt, { mode: "vertical" })
|
|
@@ -648,37 +648,37 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
648
648
|
ref: Z,
|
|
649
649
|
"element-loading-text": "正在加载页面数据..."
|
|
650
650
|
}, [
|
|
651
|
-
|
|
651
|
+
s(Qe) !== "" ? (B(), Y("div", oa, [
|
|
652
652
|
A(ve, {
|
|
653
653
|
class: "calculator-content back-content",
|
|
654
|
-
onClickTrigger: e[2] || (e[2] = (t) =>
|
|
654
|
+
onClickTrigger: e[2] || (e[2] = (t) => s(Bt)()),
|
|
655
655
|
modelValue: "返回"
|
|
656
656
|
})
|
|
657
657
|
])) : N("", !0),
|
|
658
658
|
d("div", na, [
|
|
659
659
|
J.value ? (B(), _(v, { key: 0 })) : N("", !0),
|
|
660
|
-
J.value ? N("", !0) : (B(!0), Y(Fe, { key: 1 }, Ze((m =
|
|
660
|
+
J.value ? N("", !0) : (B(!0), Y(Fe, { key: 1 }, Ze((m = s(we)(s(Re))) == null ? void 0 : m.filter((t) => t.comp !== "FormTop"), (t, E) => {
|
|
661
661
|
var x;
|
|
662
662
|
return B(), Y("div", {
|
|
663
663
|
class: "item-view-content",
|
|
664
664
|
key: E
|
|
665
665
|
}, [
|
|
666
666
|
((x = t == null ? void 0 : t.comp) == null ? void 0 : x.toUpperCase()) !== "TABLE" && t.name ? (B(), Y("div", la, O(t.name), 1)) : N("", !0),
|
|
667
|
-
(B(), _(ct(
|
|
667
|
+
(B(), _(ct(s(It)(t.comp)), {
|
|
668
668
|
compName: t.name,
|
|
669
669
|
itemData: t == null ? void 0 : t.compData,
|
|
670
670
|
childItemData: t == null ? void 0 : t.itemChildData,
|
|
671
671
|
key: (t == null ? void 0 : t.id) ?? E,
|
|
672
|
-
onChange:
|
|
672
|
+
onChange: s(wt),
|
|
673
673
|
index: (t == null ? void 0 : t.id) ?? E,
|
|
674
|
-
onContentChange:
|
|
675
|
-
onPageChange:
|
|
674
|
+
onContentChange: s(ft),
|
|
675
|
+
onPageChange: s(yt),
|
|
676
676
|
onRowClick: M
|
|
677
677
|
}, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
678
678
|
]);
|
|
679
679
|
}), 128)),
|
|
680
|
-
!J.value && !((f =
|
|
681
|
-
|
|
680
|
+
!J.value && !((f = s(we)(s(Re))) != null && f.find((t) => t.comp === "methodButton")) ? (B(), Y("div", ia, [
|
|
681
|
+
s(Qe) !== "" && ((Q = s(K)) == null ? void 0 : Q[((w = s(K)) == null ? void 0 : w.length) - 1]) !== "/" ? (B(), _(ve, {
|
|
682
682
|
key: 0,
|
|
683
683
|
class: "calculator-content",
|
|
684
684
|
onClickTrigger: Be,
|
|
@@ -687,7 +687,7 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
687
687
|
])) : N("", !0)
|
|
688
688
|
])
|
|
689
689
|
])), [
|
|
690
|
-
[r,
|
|
690
|
+
[r, s(C)]
|
|
691
691
|
])
|
|
692
692
|
];
|
|
693
693
|
}),
|
|
@@ -705,7 +705,7 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
705
705
|
default: p(() => [
|
|
706
706
|
A(xe, {
|
|
707
707
|
ref_key: "threeModelRef",
|
|
708
|
-
ref:
|
|
708
|
+
ref: l
|
|
709
709
|
}, null, 512)
|
|
710
710
|
]),
|
|
711
711
|
_: 1
|
|
@@ -714,13 +714,13 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
714
714
|
]),
|
|
715
715
|
_: 3
|
|
716
716
|
})), [
|
|
717
|
-
[Ve,
|
|
718
|
-
[r,
|
|
717
|
+
[Ve, s(Ce) === "view"],
|
|
718
|
+
[r, s(je)]
|
|
719
719
|
])
|
|
720
720
|
], 64);
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
|
-
}), ra = /* @__PURE__ */ Ee(sa, [["__scopeId", "data-v-
|
|
723
|
+
}), ra = /* @__PURE__ */ Ee(sa, [["__scopeId", "data-v-b31ccfbc"]]), Aa = { class: "system-wrap" }, ca = {
|
|
724
724
|
__name: "index",
|
|
725
725
|
props: {
|
|
726
726
|
windowConfig: {
|
|
@@ -743,10 +743,10 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
743
743
|
setup(R, { emit: te }) {
|
|
744
744
|
const a = Te(le), U = at(le), P = Ke();
|
|
745
745
|
k(!1);
|
|
746
|
-
const q = k(!0),
|
|
746
|
+
const q = k(!0), l = R, W = te, T = (b) => {
|
|
747
747
|
W("showChild", b);
|
|
748
748
|
}, H = _e(() => {
|
|
749
|
-
switch (
|
|
749
|
+
switch (l == null ? void 0 : l.platform) {
|
|
750
750
|
case "browser":
|
|
751
751
|
return gt;
|
|
752
752
|
case "client":
|
|
@@ -758,24 +758,24 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
758
758
|
L.style.setProperty(X.name, X.value);
|
|
759
759
|
});
|
|
760
760
|
};
|
|
761
|
-
$(() =>
|
|
761
|
+
$(() => l.platform, (b, L) => {
|
|
762
762
|
b && S(H.value);
|
|
763
763
|
}, { immediate: !0 });
|
|
764
764
|
const ie = () => {
|
|
765
765
|
W("buildContent");
|
|
766
766
|
};
|
|
767
767
|
return $(
|
|
768
|
-
() => [
|
|
768
|
+
() => [l == null ? void 0 : l.content, l == null ? void 0 : l.jsonContents],
|
|
769
769
|
async () => {
|
|
770
770
|
var X, Z, se, y;
|
|
771
|
-
if (((X =
|
|
772
|
-
a.setOriginalData(
|
|
771
|
+
if (((X = l == null ? void 0 : l.jsonContents) == null ? void 0 : X.length) > 0) {
|
|
772
|
+
a.setOriginalData(l == null ? void 0 : l.jsonContents);
|
|
773
773
|
return;
|
|
774
774
|
}
|
|
775
|
-
if (!(
|
|
775
|
+
if (!(l != null && l.content) || ((Z = l == null ? void 0 : l.content) == null ? void 0 : Z.length) === 0) return;
|
|
776
776
|
q.value = !0, P.setImportLoading(!0);
|
|
777
777
|
let b = [], L = [];
|
|
778
|
-
U.setSelectTitle([]), U.setSelectIndex(""), U.setSelectMenu(""), (y = (se =
|
|
778
|
+
U.setSelectTitle([]), U.setSelectIndex(""), U.setSelectMenu(""), (y = (se = l == null ? void 0 : l.content) == null ? void 0 : se.filter((ae) => ae !== "")) == null || y.forEach((ae) => {
|
|
779
779
|
L.push(Et(ae));
|
|
780
780
|
}), b = L == null ? void 0 : L[0], await Qt(b), await nt(), a.setOriginalData(b), P.setImportLoading(!1);
|
|
781
781
|
},
|
|
@@ -786,7 +786,7 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
786
786
|
showButton: R.showButton,
|
|
787
787
|
onBuildContent: ie,
|
|
788
788
|
onShowChild: T,
|
|
789
|
-
platform:
|
|
789
|
+
platform: l == null ? void 0 : l.platform
|
|
790
790
|
}, {
|
|
791
791
|
default: p(() => [
|
|
792
792
|
Pe(b.$slots, "default", {}, void 0, !0)
|
|
@@ -831,7 +831,7 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
831
831
|
},
|
|
832
832
|
emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
|
|
833
833
|
setup(R, { emit: te }) {
|
|
834
|
-
const a = R, U = te, P = k([]), q = k(0),
|
|
834
|
+
const a = R, U = te, P = k([]), q = k(0), l = k([]), W = k([]), T = k(0), H = Te(le), S = Ke(le), { itemData: ie, originalData: b } = de(H), { activeMenuPath: L, platform: X } = de(S), Z = k(null), se = k(0), y = k([]);
|
|
835
835
|
k("");
|
|
836
836
|
const ae = k(0), Ce = () => {
|
|
837
837
|
U("buildContent");
|
|
@@ -893,9 +893,9 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
893
893
|
});
|
|
894
894
|
};
|
|
895
895
|
$(
|
|
896
|
-
() =>
|
|
896
|
+
() => l.value,
|
|
897
897
|
() => {
|
|
898
|
-
ae.value ===
|
|
898
|
+
ae.value === l.value.length && l.value.length !== 0 && (P.value = l.value);
|
|
899
899
|
},
|
|
900
900
|
{ deep: !0, immediate: !0 }
|
|
901
901
|
);
|
|
@@ -905,12 +905,12 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
905
905
|
S.setActiveMenuPath(""), S.setActiveTopMenuPath(""), S.setAsideMenus([]);
|
|
906
906
|
const F = C.target.files;
|
|
907
907
|
if (!F) return;
|
|
908
|
-
new FileReader(), P.value = [],
|
|
908
|
+
new FileReader(), P.value = [], l.value = [], ae.value = F.length;
|
|
909
909
|
const K = Array.from(F).map(async (j) => await new Promise((J) => {
|
|
910
910
|
const u = new FileReader();
|
|
911
911
|
u.onload = (ee) => {
|
|
912
912
|
try {
|
|
913
|
-
|
|
913
|
+
l.value.push(ee.target.result), se.value++;
|
|
914
914
|
} catch (M) {
|
|
915
915
|
console.error("解析失败:", M);
|
|
916
916
|
return;
|
|
@@ -952,7 +952,7 @@ const Pt = /* @__PURE__ */ Ee(dt, [["render", Ft], ["__scopeId", "data-v-3f5e9b4
|
|
|
952
952
|
(a == null ? void 0 : a.mode) === "view" ? (B(), Y("div", ma, [
|
|
953
953
|
(B(), _(ua, {
|
|
954
954
|
showButton: R.showButton,
|
|
955
|
-
platform:
|
|
955
|
+
platform: s(X),
|
|
956
956
|
content: P.value,
|
|
957
957
|
onChange: he,
|
|
958
958
|
jsonContents: W.value,
|