ss-component-new 1.1.643 → 1.1.645
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-B_wsE8_t.cjs → array-Dbtz7Lsx.cjs} +1 -1
- package/dist/{array-B8lWuPWk.js → array-NXwPkThl.js} +1 -1
- package/dist/{crypto-v3jAna0Y.js → crypto-BRyGpjGR.js} +383 -510
- package/dist/{crypto-DNSUM6-T.cjs → crypto-CRbcEKIz.cjs} +11 -11
- package/dist/{index-DkuHB0rR.js → index-B4gfcog1.js} +6 -6
- package/dist/index-B6ezvhL2.cjs +1 -0
- package/dist/{index-Dc9ujwGk.js → index-BHB6W84v.js} +1 -1
- package/dist/{index-CzRn17aQ.js → index-BKOLVNLy.js} +3 -3
- package/dist/index-BMUkNPzl.cjs +4207 -0
- package/dist/{index-B98K3NQ_.js → index-BMgOqys7.js} +5 -5
- package/dist/{index-CstZeLoO.js → index-BNPpYTxK.js} +4 -4
- package/dist/{index-Cq5FEQ8T.cjs → index-B_boHLxh.cjs} +1 -1
- package/dist/{index-yP9dxTXr.cjs → index-Bel0URH2.cjs} +1 -1
- package/dist/index-BseYBYRR.cjs +1 -0
- package/dist/{index-DZOOs3JX.js → index-BtO79Mkd.js} +5 -5
- package/dist/index-C0uZ6CrR.cjs +1 -0
- package/dist/{index-Bjsc84L1.js → index-C1fQQG9Y.js} +220 -222
- package/dist/{index-DaCmhrZN.js → index-C1okQZ1W.js} +5 -5
- package/dist/{index-Ce6cmWoK.js → index-CGBdaBEB.js} +1 -1
- package/dist/{index-TImrSuqA.js → index-CVDSoM3R.js} +7 -7
- package/dist/{index-DDZUeSoG.cjs → index-CXDxj3je.cjs} +1 -1
- package/dist/{index-B3z_K4tN.js → index-CXjnQuQm.js} +15 -17
- package/dist/{index-DnROsSAu.js → index-CnDGoX28.js} +1 -1
- package/dist/index-CnDYddiq.js +2511 -0
- package/dist/{index-H7RfjeN4.cjs → index-CvMwdfhw.cjs} +1 -1
- package/dist/index-CyTvXRd_.js +786 -0
- package/dist/{index-BXkdOTkd.js → index-CzC3BkW7.js} +6 -6
- package/dist/index-D-FbupVS.cjs +1 -0
- package/dist/{index-Dv0m3N6o.js → index-D4MvP0VN.js} +8702 -13692
- package/dist/index-D8yxAzMr.cjs +1 -0
- package/dist/{index-BGU26U8N.cjs → index-DG-Zzx6_.cjs} +12 -12
- package/dist/{index-C90tv0Xl.js → index-DK0ShkEj.js} +10 -9
- package/dist/{index-XoLdZvmA.cjs → index-DKoiQRFj.cjs} +1 -1
- package/dist/{index-CoO_L719.js → index-DUfwkFTo.js} +1 -1
- package/dist/{index-ugVCM2_1.cjs → index-DXpOifO9.cjs} +1 -1
- package/dist/index-DcXh-dz1.cjs +1 -0
- package/dist/{index-j_-9sdsj.js → index-DlrZ2H77.js} +5 -5
- package/dist/{index-D9rKJ22p.js → index-DroKEpJn.js} +25 -24
- package/dist/{index-Cf8HSIB7.js → index-DtFNS5JX.js} +1965 -1956
- package/dist/{index-S9mHFIiJ.js → index-DtOjrRlk.js} +8 -7
- package/dist/{index-CUE8dRo3.cjs → index-FCa5J2My.cjs} +1 -1
- package/dist/index-GtX0Y8gb.cjs +1 -0
- package/dist/{index-B3Uwh6Xf.cjs → index-HPLdZjoU.cjs} +1 -1
- package/dist/index-ZCzNjeSn.cjs +7 -0
- package/dist/{index-CeD_uFzd.cjs → index-_BlT7Ow2.cjs} +1 -1
- package/dist/{index-BV7GMSHu.cjs → index-cECmgKhq.cjs} +1 -1
- package/dist/{index-j-6MQx0k.cjs → index-e6ImJxWd.cjs} +1 -1
- package/dist/index-j8y7iBPh.cjs +1 -0
- package/dist/index-nkJMcLGo.js +4731 -0
- package/dist/{index-DamR6g_M.cjs → index-p5BDKj5j.cjs} +1 -1
- package/dist/index-uDDcvihH.cjs +1 -0
- package/dist/{index-DJq9wJbj.js → index-yCZoo-qN.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-DmZ8M3M2.js → index.vue_vue_type_script_setup_true_lang-DKitPTZF.js} +7 -7
- package/dist/{index.vue_vue_type_script_setup_true_lang-DPRs_TEM.cjs → index.vue_vue_type_script_setup_true_lang-DLjUVVle.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CLRx6Pr7.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C6RGbzCD.js} +7870 -7846
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-G9Ly6LrV.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-orvz-niQ.cjs} +103 -103
- package/dist/{index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-Bx59UssX.js → index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-KpE1paY3.js} +12008 -11626
- package/dist/{index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-Cx257lrG.cjs → index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-ViCgptSE.cjs} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-DnzbmtTR.js → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-BKiJ0n5W.js} +9 -10
- package/dist/index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-Cri49ijq.cjs +1 -0
- package/dist/login-BiEodQd9.js +129 -0
- package/dist/login-zGHoUey-.cjs +1 -0
- package/dist/{main-Bytk3eJi.cjs → main-Cqr5wzb9.cjs} +1 -1
- package/dist/{main-B3z7cAFc.js → main-OXS6LXFh.js} +5 -5
- package/dist/{menu-EkyEcRhA.js → menu-Cl42pSjw.js} +1173 -1172
- package/dist/{menu-CcabvNj6.cjs → menu-nedhfMQM.cjs} +10 -10
- package/dist/{modelComp-DocJQ-pY.js → modelComp-DWx0hNJL.js} +1 -1
- package/dist/{modelComp-MsmKaqKZ.cjs → modelComp-VVOVTdqN.cjs} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-DUi0i12h.cjs → threeModel-BGAaDA20.cjs} +1 -1
- package/dist/{threeModel-8fmYfsGI.js → threeModel-CCsYNDK0.js} +62 -62
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-B1zrlvmA.cjs +0 -1
- package/dist/index-BJOfcIfK.cjs +0 -1
- package/dist/index-BdSJGJAj.cjs +0 -1
- package/dist/index-BgOWcpJo.cjs +0 -1
- package/dist/index-BgjQ12lw.cjs +0 -1
- package/dist/index-BtbXPos3.cjs +0 -1
- package/dist/index-C0YmHmRc.js +0 -3295
- package/dist/index-CHDQYj9k.cjs +0 -7
- package/dist/index-DYLTl0bA.cjs +0 -4207
- package/dist/index-Wq7SUf3w.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-BxhCfpJ1.cjs +0 -1
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { resolveComponent as M, createBlock as I, openBlock as g, withCtx as l, createVNode as o, createElementVNode as T, toDisplayString as pe, ref as _, onMounted as At, watch as te, createElementBlock as V, Fragment as $e, renderList as ze, createCommentVNode as
|
|
2
|
-
import { m as Ge, a as Xe, b as qe } from "./index-
|
|
3
|
-
import ut from "./index-
|
|
4
|
-
import { _ as $t,
|
|
1
|
+
import { resolveComponent as M, createBlock as I, openBlock as g, withCtx as l, createVNode as o, createElementVNode as T, toDisplayString as pe, ref as _, onMounted as At, watch as te, createElementBlock as V, Fragment as $e, renderList as ze, createCommentVNode as X, normalizeStyle as Mt, defineComponent as st, computed as Ve, resolveDirective as it, withDirectives as Te, unref as a, createTextVNode as ne, renderSlot as De, vShow as je, resolveDynamicComponent as rt } from "vue";
|
|
2
|
+
import { m as Ge, a as Xe, b as qe } from "./index-B4gfcog1.js";
|
|
3
|
+
import ut from "./index-CnDGoX28.js";
|
|
4
|
+
import { _ as $t, o as ct, c as dt, a as mt, b as pt, d as xt, s as de, g as ht, e as ft, f as gt, h as yt, i as Pt, j as Vt } from "./index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-KpE1paY3.js";
|
|
5
5
|
import { _ as Ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { p as ue, s as re, u as Ne, e as
|
|
7
|
-
import { u as
|
|
6
|
+
import { p as ue, s as re, u as Ne, e as _t, c as Re, g as Oe, f as vt, d as ve } from "./menu-Cl42pSjw.js";
|
|
7
|
+
import { u as Ct } from "./login-BiEodQd9.js";
|
|
8
8
|
import { S as Se } from "./index-BHtNKL1L.js";
|
|
9
|
-
import { u as Ee } from "./modelComp-
|
|
10
|
-
import { _ as
|
|
11
|
-
import { u as He,
|
|
12
|
-
import { _ as kt } from "./index.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import
|
|
9
|
+
import { u as Ee } from "./modelComp-DWx0hNJL.js";
|
|
10
|
+
import { _ as wt, a as Fe, d as nt, s as jt } from "./index-DtFNS5JX.js";
|
|
11
|
+
import { u as He, a as It } from "./index-D4MvP0VN.js";
|
|
12
|
+
import { _ as kt } from "./index.vue_vue_type_script_setup_true_lang-DKitPTZF.js";
|
|
13
|
+
import { o as Nt, u as Et } from "./index-nkJMcLGo.js";
|
|
14
|
+
import lt from "./threeModel-CCsYNDK0.js";
|
|
14
15
|
import "vue-router";
|
|
15
|
-
import { g as Ie, a as Bt, l as bt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
16
|
-
import { a as Ut } from "./array-
|
|
17
|
-
import { c as Lt, b as Kt } from "./index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-
|
|
16
|
+
import { g as Ie, a as Bt, l as bt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C6RGbzCD.js";
|
|
17
|
+
import { a as Ut } from "./array-NXwPkThl.js";
|
|
18
|
+
import { c as Lt, b as Kt } from "./index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-BKiJ0n5W.js";
|
|
18
19
|
const Ot = { class: "horizontal-f-18" };
|
|
19
|
-
function zt($, me, n, R,
|
|
20
|
-
const u = M("svg-icon"),
|
|
21
|
-
return g(), I(
|
|
20
|
+
function zt($, me, n, R, H, U) {
|
|
21
|
+
const u = M("svg-icon"), J = M("ssMenu");
|
|
22
|
+
return g(), I(J, {
|
|
22
23
|
mode: $.mode,
|
|
23
24
|
menuList: $.renderMenuList,
|
|
24
25
|
onClickMenu: $.clickMenu,
|
|
25
26
|
onOpenMenu: $.openMenu,
|
|
26
27
|
onCloseMenu: $.closeMenu
|
|
27
28
|
}, {
|
|
28
|
-
title: l(({ menu:
|
|
29
|
+
title: l(({ menu: L }) => [
|
|
29
30
|
o(u, {
|
|
30
31
|
class: "horizontal-icon-18",
|
|
31
|
-
name:
|
|
32
|
+
name: L.icon ?? "",
|
|
32
33
|
style: { "margin-right": "8px" }
|
|
33
34
|
}, null, 8, ["name"]),
|
|
34
|
-
T("span", Ot, pe(
|
|
35
|
+
T("span", Ot, pe(L.title ?? ""), 1)
|
|
35
36
|
]),
|
|
36
37
|
_: 1
|
|
37
38
|
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
@@ -49,7 +50,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
49
50
|
},
|
|
50
51
|
emits: ["click"],
|
|
51
52
|
setup($, { emit: me }) {
|
|
52
|
-
const n = $, R = _([]),
|
|
53
|
+
const n = $, R = _([]), H = me;
|
|
53
54
|
At(() => {
|
|
54
55
|
R.value = n == null ? void 0 : n.breadArray;
|
|
55
56
|
}), te(
|
|
@@ -59,22 +60,22 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
59
60
|
},
|
|
60
61
|
{ deep: !0, immediate: !0 }
|
|
61
62
|
);
|
|
62
|
-
const
|
|
63
|
-
|
|
63
|
+
const U = (u) => {
|
|
64
|
+
H("click", u);
|
|
64
65
|
};
|
|
65
|
-
return (u,
|
|
66
|
-
(g(!0), V($e, null, ze(R.value, (
|
|
66
|
+
return (u, J) => (g(), V("div", Gt, [
|
|
67
|
+
(g(!0), V($e, null, ze(R.value, (L, N) => {
|
|
67
68
|
var K;
|
|
68
69
|
return g(), V("div", {
|
|
69
|
-
key:
|
|
70
|
+
key: N,
|
|
70
71
|
class: "bread-item"
|
|
71
72
|
}, [
|
|
72
73
|
T("div", {
|
|
73
74
|
class: "bread-title",
|
|
74
|
-
onClick: (ge) =>
|
|
75
|
-
style: Mt({ opacity: ((K = R.value) == null ? void 0 : K.length) - 1 ===
|
|
76
|
-
}, pe(
|
|
77
|
-
|
|
75
|
+
onClick: (ge) => U(L),
|
|
76
|
+
style: Mt({ opacity: ((K = R.value) == null ? void 0 : K.length) - 1 === N ? "0.7" : "1" })
|
|
77
|
+
}, pe(L.value), 13, Xt),
|
|
78
|
+
N !== R.value.length - 1 && Array.isArray(R.value) ? (g(), V("div", qt, pe("/"))) : X("", !0)
|
|
78
79
|
]);
|
|
79
80
|
}), 128))
|
|
80
81
|
]));
|
|
@@ -103,34 +104,34 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
103
104
|
},
|
|
104
105
|
emits: ["buildContent"],
|
|
105
106
|
setup($, { emit: me }) {
|
|
106
|
-
const n = He(ue), { selectTitle: R } = re(n),
|
|
107
|
+
const n = He(ue), { selectTitle: R } = re(n), H = Ct(), { loginUserInfo: U } = re(H), u = Ee(ue), { isEdit: J, routeToChildPath: L } = re(u), N = me, K = Ne(ue), { importLoading: ge, activeAsideMenu: w, contentLoading: ae } = re(K), W = _(""), q = Ve(() => w.value.isRouter), he = () => {
|
|
107
108
|
sessionStorage.clear(), window.location.reload();
|
|
108
109
|
}, le = () => {
|
|
109
|
-
|
|
110
|
+
N("buildContent");
|
|
110
111
|
}, x = async () => {
|
|
111
112
|
var D, ce, ie, ye;
|
|
112
113
|
K.setImportLoading(!0);
|
|
113
|
-
const
|
|
114
|
+
const Y = await Oe({
|
|
114
115
|
key: {
|
|
115
116
|
systemKey: sessionStorage.getItem("systemKey")
|
|
116
117
|
}
|
|
117
118
|
});
|
|
118
|
-
if (((D =
|
|
119
|
-
let v = (ye = (ie = (ce =
|
|
119
|
+
if (((D = Y == null ? void 0 : Y.data) == null ? void 0 : D.code) === 200) {
|
|
120
|
+
let v = (ye = (ie = (ce = Y == null ? void 0 : Y.data) == null ? void 0 : ce.result) == null ? void 0 : ie.map((B) => {
|
|
120
121
|
var O;
|
|
121
122
|
if (((O = B == null ? void 0 : B.key) == null ? void 0 : O.layer) !== "superAdmin")
|
|
122
123
|
return B == null ? void 0 : B.id;
|
|
123
124
|
})) == null ? void 0 : ye.filter((B) => B);
|
|
124
|
-
await
|
|
125
|
+
await vt({
|
|
125
126
|
ids: v
|
|
126
127
|
}), K.setRawMenus([]);
|
|
127
128
|
}
|
|
128
129
|
K.setImportLoading(!1);
|
|
129
130
|
}, se = async () => {
|
|
130
|
-
await
|
|
131
|
+
await Nt();
|
|
131
132
|
};
|
|
132
|
-
return (
|
|
133
|
-
const ce = M("el-button"), ie = M("el-avatar"), ye = M("el-header"), v = M("el-container"), B = M("el-icon"), O = M("el-input"),
|
|
133
|
+
return (Y, D) => {
|
|
134
|
+
const ce = M("el-button"), ie = M("el-avatar"), ye = M("el-header"), v = M("el-container"), B = M("el-icon"), O = M("el-input"), E = M("el-aside"), Q = M("router-view"), y = M("el-main"), oe = it("loading");
|
|
134
135
|
return g(), V($e, null, [
|
|
135
136
|
Te(o(v, { class: "client-container" }, {
|
|
136
137
|
default: l(() => [
|
|
@@ -141,7 +142,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
141
142
|
T("div", Jt, [
|
|
142
143
|
o(ce, {
|
|
143
144
|
id: "transparentBgButton",
|
|
144
|
-
onClick:
|
|
145
|
+
onClick: a(ct)
|
|
145
146
|
}, {
|
|
146
147
|
default: l(() => D[3] || (D[3] = [
|
|
147
148
|
ne(" 返回页面 ")
|
|
@@ -152,8 +153,8 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
152
153
|
o(ce, {
|
|
153
154
|
id: "transparentBgButton",
|
|
154
155
|
onClick: D[0] || (D[0] = (z) => {
|
|
155
|
-
var p,
|
|
156
|
-
return
|
|
156
|
+
var p, Z;
|
|
157
|
+
return a(dt)((Z = (p = a(R)) == null ? void 0 : p.map((fe) => fe.value)) == null ? void 0 : Z.join("/"));
|
|
157
158
|
})
|
|
158
159
|
}, {
|
|
159
160
|
icon: l(() => [
|
|
@@ -168,20 +169,20 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
168
169
|
]),
|
|
169
170
|
T("div", Wt, [
|
|
170
171
|
o(Tt, {
|
|
171
|
-
breadArray:
|
|
172
|
-
onClick:
|
|
172
|
+
breadArray: a(R),
|
|
173
|
+
onClick: a(mt)
|
|
173
174
|
}, null, 8, ["breadArray", "onClick"])
|
|
174
175
|
]),
|
|
175
176
|
T("div", Qt, [
|
|
176
|
-
De(
|
|
177
|
+
De(Y.$slots, "default", {}, void 0, !0),
|
|
177
178
|
o(ie, {
|
|
178
179
|
size: 35,
|
|
179
|
-
src: (S =
|
|
180
|
+
src: (S = a(U)) == null ? void 0 : S.avatarUrl
|
|
180
181
|
}, {
|
|
181
182
|
default: l(() => {
|
|
182
183
|
var z;
|
|
183
184
|
return [
|
|
184
|
-
ne(pe(((z =
|
|
185
|
+
ne(pe(((z = a(U)) == null ? void 0 : z.account) ?? "未知"), 1)
|
|
185
186
|
];
|
|
186
187
|
}),
|
|
187
188
|
_: 1
|
|
@@ -191,7 +192,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
191
192
|
}),
|
|
192
193
|
_: 3
|
|
193
194
|
}),
|
|
194
|
-
|
|
195
|
+
a(J) === "edit" ? (g(), I(v, {
|
|
195
196
|
key: 0,
|
|
196
197
|
class: "model-operate",
|
|
197
198
|
style: { "margin-top": "10px", height: "0px" }
|
|
@@ -208,11 +209,11 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
208
209
|
])
|
|
209
210
|
]),
|
|
210
211
|
_: 1
|
|
211
|
-
})) :
|
|
212
|
+
})) : X("", !0)
|
|
212
213
|
]),
|
|
213
214
|
_: 3
|
|
214
215
|
}, 512), [
|
|
215
|
-
[je,
|
|
216
|
+
[je, a(J) === "edit"]
|
|
216
217
|
]),
|
|
217
218
|
Te((g(), I(v, {
|
|
218
219
|
class: "client-container",
|
|
@@ -227,15 +228,15 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
227
228
|
]),
|
|
228
229
|
T("div", aa, [
|
|
229
230
|
o(O, {
|
|
230
|
-
modelValue:
|
|
231
|
-
"onUpdate:modelValue": D[1] || (D[1] = (S) =>
|
|
231
|
+
modelValue: W.value,
|
|
232
|
+
"onUpdate:modelValue": D[1] || (D[1] = (S) => W.value = S),
|
|
232
233
|
clearable: "",
|
|
233
234
|
placeholder: "搜索"
|
|
234
235
|
}, {
|
|
235
236
|
prefix: l(() => [
|
|
236
237
|
o(B, { class: "el-input__icon" }, {
|
|
237
238
|
default: l(() => [
|
|
238
|
-
o(
|
|
239
|
+
o(a(_t))
|
|
239
240
|
]),
|
|
240
241
|
_: 1
|
|
241
242
|
})
|
|
@@ -255,11 +256,11 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
255
256
|
]),
|
|
256
257
|
_: 1,
|
|
257
258
|
__: [5]
|
|
258
|
-
})) :
|
|
259
|
-
$.showButton &&
|
|
259
|
+
})) : X("", !0),
|
|
260
|
+
$.showButton && a(J) === "view" ? (g(), I(ce, {
|
|
260
261
|
key: 1,
|
|
261
262
|
id: "transparentBgButton",
|
|
262
|
-
onClick:
|
|
263
|
+
onClick: a(pt)
|
|
263
264
|
}, {
|
|
264
265
|
icon: l(() => [
|
|
265
266
|
o(Se, { name: "write" })
|
|
@@ -269,22 +270,22 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
269
270
|
]),
|
|
270
271
|
_: 1,
|
|
271
272
|
__: [6]
|
|
272
|
-
}, 8, ["onClick"])) :
|
|
273
|
-
De(
|
|
274
|
-
o(
|
|
273
|
+
}, 8, ["onClick"])) : X("", !0),
|
|
274
|
+
De(Y.$slots, "default", {}, void 0, !0),
|
|
275
|
+
o(wt, null, {
|
|
275
276
|
dropTitle: l(() => {
|
|
276
277
|
var S;
|
|
277
278
|
return [
|
|
278
279
|
o(kt, {
|
|
279
280
|
size: "35",
|
|
280
|
-
avatarUrl: (S =
|
|
281
|
+
avatarUrl: (S = a(U)) == null ? void 0 : S.avatarUrl,
|
|
281
282
|
showCropper: !1,
|
|
282
283
|
banClick: !0
|
|
283
284
|
}, {
|
|
284
285
|
avatarDefault: l(() => {
|
|
285
|
-
var z, p,
|
|
286
|
+
var z, p, Z;
|
|
286
287
|
return [
|
|
287
|
-
ne(pe((z =
|
|
288
|
+
ne(pe((z = a(U)) != null && z.account ? (p = a(U)) == null ? void 0 : p.account : ((Z = a(U)) == null ? void 0 : Z.账号) ?? "未知"), 1)
|
|
288
289
|
];
|
|
289
290
|
}),
|
|
290
291
|
_: 1
|
|
@@ -322,52 +323,49 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
322
323
|
default: l(() => {
|
|
323
324
|
var S, z;
|
|
324
325
|
return [
|
|
325
|
-
o(
|
|
326
|
+
o(E, { class: "client-aside" }, {
|
|
326
327
|
default: l(() => [
|
|
327
328
|
o(ut, { mode: "vertical" })
|
|
328
329
|
]),
|
|
329
330
|
_: 1
|
|
330
331
|
}),
|
|
331
332
|
Te((g(), V("div", na, [
|
|
332
|
-
|
|
333
|
-
|
|
333
|
+
q.value ? (g(), I(Q, { key: 0 })) : X("", !0),
|
|
334
|
+
a(L) !== "" ? (g(), I(Fe, {
|
|
334
335
|
key: 1,
|
|
335
336
|
class: "calculator-content back-content",
|
|
336
|
-
onClickTrigger: D[2] || (D[2] = (p) =>
|
|
337
|
-
var G;
|
|
338
|
-
return t(jt)(t(E) + `/loading${(G = t(N).value) == null ? void 0 : G.account}`);
|
|
339
|
-
}),
|
|
337
|
+
onClickTrigger: D[2] || (D[2] = (p) => a(xt)()),
|
|
340
338
|
modelValue: "返回"
|
|
341
|
-
})) :
|
|
342
|
-
|
|
339
|
+
})) : X("", !0),
|
|
340
|
+
q.value ? X("", !0) : (g(!0), V($e, { key: 2 }, ze((S = a(Re)(a(de))) == null ? void 0 : S.filter((p) => p.comp !== "FormTop"), (p, Z) => {
|
|
343
341
|
var fe;
|
|
344
342
|
return g(), V("div", {
|
|
345
343
|
class: "item-view-content",
|
|
346
|
-
key:
|
|
344
|
+
key: Z
|
|
347
345
|
}, [
|
|
348
|
-
((fe = p == null ? void 0 : p.comp) == null ? void 0 : fe.toUpperCase()) !== "TABLE" && p.name ? (g(), V("div", la, pe(p.name), 1)) :
|
|
349
|
-
(g(), I(rt(
|
|
346
|
+
((fe = p == null ? void 0 : p.comp) == null ? void 0 : fe.toUpperCase()) !== "TABLE" && p.name ? (g(), V("div", la, pe(p.name), 1)) : X("", !0),
|
|
347
|
+
(g(), I(rt(a(ht)(p.comp)), {
|
|
350
348
|
compName: p.name,
|
|
351
349
|
itemData: p == null ? void 0 : p.compData,
|
|
352
350
|
childItemData: p == null ? void 0 : p.itemChildData,
|
|
353
|
-
key: (p == null ? void 0 : p.id) ??
|
|
354
|
-
onChange:
|
|
355
|
-
index: (p == null ? void 0 : p.id) ??
|
|
356
|
-
onContentChange:
|
|
357
|
-
onPageChange:
|
|
351
|
+
key: (p == null ? void 0 : p.id) ?? Z,
|
|
352
|
+
onChange: a(yt),
|
|
353
|
+
index: (p == null ? void 0 : p.id) ?? Z,
|
|
354
|
+
onContentChange: a(gt),
|
|
355
|
+
onPageChange: a(ft)
|
|
358
356
|
}, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
359
357
|
]);
|
|
360
358
|
}), 128)),
|
|
361
|
-
!
|
|
362
|
-
|
|
359
|
+
!q.value && !((z = a(Re)(a(de))) != null && z.find((p) => p.comp === "methodButton")) ? (g(), V("div", sa, [
|
|
360
|
+
a(L) !== "" ? (g(), I(Fe, {
|
|
363
361
|
key: 0,
|
|
364
362
|
class: "calculator-content",
|
|
365
363
|
onClickTrigger: se,
|
|
366
364
|
modelValue: "保存"
|
|
367
|
-
})) :
|
|
368
|
-
])) :
|
|
365
|
+
})) : X("", !0)
|
|
366
|
+
])) : X("", !0)
|
|
369
367
|
])), [
|
|
370
|
-
[oe,
|
|
368
|
+
[oe, a(ae)]
|
|
371
369
|
])
|
|
372
370
|
];
|
|
373
371
|
}),
|
|
@@ -379,13 +377,13 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
379
377
|
]),
|
|
380
378
|
_: 3
|
|
381
379
|
})), [
|
|
382
|
-
[je,
|
|
383
|
-
[oe,
|
|
380
|
+
[je, a(J) === "view"],
|
|
381
|
+
[oe, a(ge)]
|
|
384
382
|
])
|
|
385
383
|
], 64);
|
|
386
384
|
};
|
|
387
385
|
}
|
|
388
|
-
}), ra = /* @__PURE__ */ Ae(ia, [["__scopeId", "data-v-
|
|
386
|
+
}), ra = /* @__PURE__ */ Ae(ia, [["__scopeId", "data-v-565accde"]]), Le = [
|
|
389
387
|
{
|
|
390
388
|
key: "FitCurve_Eleven",
|
|
391
389
|
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",
|
|
@@ -489,58 +487,58 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
489
487
|
setup($, { emit: me }) {
|
|
490
488
|
const n = He(ue), R = _(!1);
|
|
491
489
|
_(0), _(!1);
|
|
492
|
-
const { selectTitle:
|
|
490
|
+
const { selectTitle: H } = re(n), U = _(!1), u = _(!1);
|
|
493
491
|
_(!1);
|
|
494
|
-
const
|
|
492
|
+
const J = It(ue), L = _(!1), { tableShowThree: N } = re(J), K = _(), ge = Ct(), { loginUserInfo: w } = re(ge);
|
|
495
493
|
_(null);
|
|
496
|
-
const ae = Ee(ue), { isEdit:
|
|
494
|
+
const ae = Ee(ue), { isEdit: W } = re(ae), q = Ne(ue), he = Et(ue), { objUrl: le, blobUrls: x } = re(he), se = _(null);
|
|
497
495
|
_(!1);
|
|
498
|
-
const
|
|
496
|
+
const Y = _(), D = _(!0);
|
|
499
497
|
_(!1);
|
|
500
|
-
const { importLoading: ce, activeMenuPath: ie, activeTopMenuPath: ye, platName: v, activeAsideMenu: B, contentLoading: O } = re(
|
|
498
|
+
const { importLoading: ce, activeMenuPath: ie, activeTopMenuPath: ye, platName: v, activeAsideMenu: B, contentLoading: O } = re(q), E = _(!1), Q = _(!1), y = _(!1), oe = me, S = () => {
|
|
501
499
|
oe("buildContent");
|
|
502
500
|
};
|
|
503
|
-
te(() => ie.value, async (
|
|
504
|
-
|
|
501
|
+
te(() => ie.value, async (t) => {
|
|
502
|
+
t && (y.value = !0), t === "弯管仿真加工管理/仿真动画生成" ? E.value = !0 : E.value = !1, t === "弯管仿真加工管理/程序输出" ? Q.value = !0 : Q.value = !1, Ke != null && Ke.find((i) => {
|
|
505
503
|
var c;
|
|
506
|
-
return (i == null ? void 0 : i.key) === ((c =
|
|
507
|
-
}) ?
|
|
504
|
+
return (i == null ? void 0 : i.key) === ((c = t == null ? void 0 : t.split("/")) == null ? void 0 : c[(t == null ? void 0 : t.split("/").length) - 1]);
|
|
505
|
+
}) ? L.value = !0 : L.value = !1;
|
|
508
506
|
}, { immediate: !0 });
|
|
509
|
-
const z = (
|
|
510
|
-
if ((
|
|
511
|
-
let i = Object.values(
|
|
507
|
+
const z = (t) => {
|
|
508
|
+
if ((t == null ? void 0 : t.type) === "table") {
|
|
509
|
+
let i = Object.values(t == null ? void 0 : t.row), c = i == null ? void 0 : i.find((d) => typeof d == "string" && ((d == null ? void 0 : d.includes(".urdf")) || (d == null ? void 0 : d.includes(".obj"))));
|
|
512
510
|
c && (K.value = {
|
|
513
511
|
url: c,
|
|
514
|
-
row:
|
|
512
|
+
row: t == null ? void 0 : t.row
|
|
515
513
|
}, oe("showChild", {
|
|
516
514
|
url: c,
|
|
517
|
-
row:
|
|
515
|
+
row: t == null ? void 0 : t.row
|
|
518
516
|
}));
|
|
519
517
|
}
|
|
520
518
|
}, p = () => {
|
|
521
519
|
sessionStorage.clear(), window.location.reload();
|
|
522
|
-
},
|
|
520
|
+
}, Z = async () => {
|
|
523
521
|
var i, c, d, b;
|
|
524
|
-
|
|
525
|
-
const
|
|
522
|
+
q.setImportLoading(!0);
|
|
523
|
+
const t = await Oe({
|
|
526
524
|
key: {
|
|
527
525
|
systemKey: sessionStorage.getItem("systemKey")
|
|
528
526
|
}
|
|
529
527
|
});
|
|
530
|
-
if (((i =
|
|
531
|
-
let e = (b = (d = (c =
|
|
528
|
+
if (((i = t == null ? void 0 : t.data) == null ? void 0 : i.code) === 200) {
|
|
529
|
+
let e = (b = (d = (c = t == null ? void 0 : t.data) == null ? void 0 : c.result) == null ? void 0 : d.map((r) => {
|
|
532
530
|
var s;
|
|
533
531
|
if (((s = r == null ? void 0 : r.key) == null ? void 0 : s.layer) !== "superAdmin")
|
|
534
532
|
return r == null ? void 0 : r.id;
|
|
535
533
|
})) == null ? void 0 : b.filter((r) => r);
|
|
536
|
-
await
|
|
534
|
+
await vt({
|
|
537
535
|
ids: e
|
|
538
|
-
}),
|
|
536
|
+
}), q.setRawMenus([]);
|
|
539
537
|
}
|
|
540
|
-
|
|
541
|
-
}, fe = async (
|
|
538
|
+
q.setImportLoading(!1);
|
|
539
|
+
}, fe = async (t) => {
|
|
542
540
|
var d, b, e, r, s, A, C;
|
|
543
|
-
const i = (d =
|
|
541
|
+
const i = (d = t == null ? void 0 : t.split("/")) == null ? void 0 : d[0], c = await Oe({
|
|
544
542
|
key: {
|
|
545
543
|
type: "mainEquip",
|
|
546
544
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -552,12 +550,12 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
552
550
|
te(
|
|
553
551
|
() => de.value,
|
|
554
552
|
() => {
|
|
555
|
-
var
|
|
556
|
-
if (((
|
|
553
|
+
var t, i, c, d, b;
|
|
554
|
+
if (((t = de.value) == null ? void 0 : t.length) === 2 && ((i = de.value) != null && i.find((e) => (e == null ? void 0 : e.name) === "输入")) && ((c = de.value) != null && c.find((e) => (e == null ? void 0 : e.name) === "输出"))) {
|
|
557
555
|
const e = (d = de.value) == null ? void 0 : d.find((r) => (r == null ? void 0 : r.name) === "输出");
|
|
558
|
-
u.value = ((b = e == null ? void 0 : e.comp) == null ? void 0 : b.toUpperCase()) === "FORM",
|
|
556
|
+
u.value = ((b = e == null ? void 0 : e.comp) == null ? void 0 : b.toUpperCase()) === "FORM", U.value = !0;
|
|
559
557
|
} else
|
|
560
|
-
|
|
558
|
+
U.value = !1, u.value = !1;
|
|
561
559
|
},
|
|
562
560
|
{ deep: !0, immediate: !0 }
|
|
563
561
|
), te(
|
|
@@ -569,15 +567,15 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
569
567
|
), te(
|
|
570
568
|
() => [le.value, se.value],
|
|
571
569
|
() => {
|
|
572
|
-
var
|
|
573
|
-
((
|
|
570
|
+
var t;
|
|
571
|
+
((t = le.value) == null ? void 0 : t.length) > 0 && se.value && se.value.addModelsFromUrls(le.value);
|
|
574
572
|
},
|
|
575
573
|
{ immediate: !0, deep: !0 }
|
|
576
574
|
), te(
|
|
577
575
|
() => [x == null ? void 0 : x.value],
|
|
578
576
|
async () => {
|
|
579
|
-
var
|
|
580
|
-
if (x != null && x.value && ((
|
|
577
|
+
var t, i, c, d, b;
|
|
578
|
+
if (x != null && x.value && ((t = x == null ? void 0 : x.value) == null ? void 0 : t.length) > 0 && !L.value && !((i = de.value) != null && i.find((e) => (e == null ? void 0 : e.name) === "输入") && ((c = de.value) != null && c.find((e) => (e == null ? void 0 : e.name) === "输出")))) {
|
|
581
579
|
R.value = !0;
|
|
582
580
|
let e = [];
|
|
583
581
|
const r = await ((d = Re(x == null ? void 0 : x.value)) == null ? void 0 : d.map(async (s) => {
|
|
@@ -586,9 +584,9 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
586
584
|
s != null && s.blob.includes("undefined") ? m = (F = (ee = s == null ? void 0 : s.blob) == null ? void 0 : ee.split("undefined,")) == null ? void 0 : F[1] : m = s == null ? void 0 : s.blob;
|
|
587
585
|
let j = m == null ? void 0 : m.split(",");
|
|
588
586
|
if ((j == null ? void 0 : j.length) > 1) {
|
|
589
|
-
let ke = await (j == null ? void 0 : j.map(async (
|
|
587
|
+
let ke = await (j == null ? void 0 : j.map(async (G) => {
|
|
590
588
|
var _e, Ye, Ze, et, tt, at;
|
|
591
|
-
A = await ve.get(
|
|
589
|
+
A = await ve.get(G, {
|
|
592
590
|
responseType: "blob",
|
|
593
591
|
headers: {
|
|
594
592
|
"Content-Type": "application/json"
|
|
@@ -609,8 +607,8 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
609
607
|
}));
|
|
610
608
|
await Promise.all(St);
|
|
611
609
|
}
|
|
612
|
-
return ((et =
|
|
613
|
-
suffix: "." + ((at =
|
|
610
|
+
return ((et = G == null ? void 0 : G.split(".")) == null ? void 0 : et[((Ze = G == null ? void 0 : G.split(".")) == null ? void 0 : Ze.length) - 1]) !== "undefined" && e.push({
|
|
611
|
+
suffix: "." + ((at = G == null ? void 0 : G.split(".")) == null ? void 0 : at[((tt = G == null ? void 0 : G.split(".")) == null ? void 0 : tt.length) - 1]),
|
|
614
612
|
blob: new Blob([A.data], {
|
|
615
613
|
type: "application/octet-stream;charset=UTF-8"
|
|
616
614
|
}),
|
|
@@ -624,7 +622,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
624
622
|
});
|
|
625
623
|
let ke = [];
|
|
626
624
|
if (((f = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : f.length) > 0) {
|
|
627
|
-
let
|
|
625
|
+
let G = await ((h = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : h.map(async (be) => {
|
|
628
626
|
let _e = await nt({
|
|
629
627
|
url: be
|
|
630
628
|
});
|
|
@@ -632,7 +630,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
632
630
|
type: "application/octet-stream;charset=UTF-8"
|
|
633
631
|
})), _e;
|
|
634
632
|
}));
|
|
635
|
-
await Promise.all(
|
|
633
|
+
await Promise.all(G);
|
|
636
634
|
}
|
|
637
635
|
C = {
|
|
638
636
|
suffix: "." + ((we = m == null ? void 0 : m.split(".")) == null ? void 0 : we[((k = m == null ? void 0 : m.split(".")) == null ? void 0 : k.length) - 1]),
|
|
@@ -650,7 +648,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
650
648
|
});
|
|
651
649
|
let ke = [];
|
|
652
650
|
if (((Pe = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : Pe.length) > 0) {
|
|
653
|
-
let
|
|
651
|
+
let G = await ((Je = s == null ? void 0 : s.mtlBlobs) == null ? void 0 : Je.map(async (be) => {
|
|
654
652
|
let _e = await ve.get(be, {
|
|
655
653
|
responseType: "blob",
|
|
656
654
|
headers: {
|
|
@@ -661,7 +659,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
661
659
|
type: "application/octet-stream;charset=UTF-8"
|
|
662
660
|
})), _e;
|
|
663
661
|
}));
|
|
664
|
-
await Promise.all(
|
|
662
|
+
await Promise.all(G);
|
|
665
663
|
}
|
|
666
664
|
C = {
|
|
667
665
|
suffix: "." + ((Qe = m == null ? void 0 : m.split(".")) == null ? void 0 : Qe[((We = m == null ? void 0 : m.split(".")) == null ? void 0 : We.length) - 1]),
|
|
@@ -682,12 +680,12 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
682
680
|
R.value = !1, se.value = null;
|
|
683
681
|
};
|
|
684
682
|
te(
|
|
685
|
-
() =>
|
|
683
|
+
() => N.value,
|
|
686
684
|
async () => {
|
|
687
685
|
var i, c, d, b;
|
|
688
|
-
if (
|
|
686
|
+
if (N.value !== "" && N.value) {
|
|
689
687
|
let e = (i = ie.value) == null ? void 0 : i.split("/"), r = e[(e == null ? void 0 : e.length) - 2];
|
|
690
|
-
const A = (((c = Le == null ? void 0 : Le.find((j) => (j == null ? void 0 : j.key) === r)) == null ? void 0 : c.download) ?? "") + "/" +
|
|
688
|
+
const A = (((c = Le == null ? void 0 : Le.find((j) => (j == null ? void 0 : j.key) === r)) == null ? void 0 : c.download) ?? "") + "/" + N.value, C = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), m = await ve.post(A, null, {
|
|
691
689
|
responseType: "blob",
|
|
692
690
|
// 必须设置
|
|
693
691
|
headers: {
|
|
@@ -696,23 +694,23 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
696
694
|
"Content-Type": "application/json"
|
|
697
695
|
}
|
|
698
696
|
});
|
|
699
|
-
var
|
|
697
|
+
var t = new Blob([m.data], {
|
|
700
698
|
type: "application/octet-stream;charset=UTF-8"
|
|
701
699
|
});
|
|
702
|
-
"" + ((b = (d =
|
|
700
|
+
"" + ((b = (d = N.value) == null ? void 0 : d.split(".")) == null ? void 0 : b[1]);
|
|
703
701
|
}
|
|
704
702
|
},
|
|
705
703
|
{ deep: !0, immediate: !0 }
|
|
706
704
|
);
|
|
707
705
|
const Be = _("");
|
|
708
706
|
_("open"), _("open"), _(!1), Ve(() => de.value);
|
|
709
|
-
const Me = Ve(() => B.value.isRouter), P = (
|
|
710
|
-
let i = Re(
|
|
707
|
+
const Me = Ve(() => B.value.isRouter), P = (t) => {
|
|
708
|
+
let i = Re(t), c = [], d = [];
|
|
711
709
|
return i == null || i.forEach((b, e) => {
|
|
712
|
-
e === (
|
|
710
|
+
e === (t == null ? void 0 : t.length) - 1 ? (d.push(b), c.push(d)) : ((d == null ? void 0 : d.length) !== 0 && b.includes(".obj") && (c.push(d), d = []), d.push(b));
|
|
713
711
|
}), c;
|
|
714
712
|
}, Ce = async () => {
|
|
715
|
-
let
|
|
713
|
+
let t = {};
|
|
716
714
|
const i = await Ie("弯管仿真加工管理/仿真动画生成", sessionStorage.getItem("systemKey"), ""), c = await Ie("弯管仿真加工管理/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
717
715
|
let d = ["管长", "外径"], b = {};
|
|
718
716
|
c == null || c.forEach((e) => {
|
|
@@ -729,16 +727,16 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
729
727
|
let ee = [], F = (A = (s = (r = e == null ? void 0 : e.compData) == null ? void 0 : r.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : s.contents) == null ? void 0 : A.map((h) => h == null ? void 0 : h.label), f = (j = (m = (C = e == null ? void 0 : e.compData) == null ? void 0 : C.find((h) => (h == null ? void 0 : h.key) === "tableContents")) == null ? void 0 : m.contents) == null ? void 0 : j.map((h) => (h = h == null ? void 0 : h.filter((k) => !(k != null && k.id)), h));
|
|
730
728
|
f == null || f.forEach((h) => {
|
|
731
729
|
ee.push(Bt(h, F == null ? void 0 : F.filter((k) => k !== "操作")));
|
|
732
|
-
}),
|
|
730
|
+
}), t[e.name] = ee, t[e.name + "Content"] = e;
|
|
733
731
|
}
|
|
734
|
-
}),
|
|
732
|
+
}), t.extra = b, Y.value = t;
|
|
735
733
|
}, Ue = _(!1), Rt = async () => {
|
|
736
|
-
var
|
|
734
|
+
var t, i;
|
|
737
735
|
if (Ue.value = !0, K.value) {
|
|
738
736
|
const c = K.value;
|
|
739
737
|
let d = [];
|
|
740
738
|
if (typeof (c == null ? void 0 : c.url) == "string") {
|
|
741
|
-
let b = (
|
|
739
|
+
let b = (t = c == null ? void 0 : c.url) == null ? void 0 : t.split(","), e = (i = P(b)) == null ? void 0 : i.map(async (r) => {
|
|
742
740
|
var s, A;
|
|
743
741
|
if ((r == null ? void 0 : r.length) === 1) {
|
|
744
742
|
let C = r == null ? void 0 : r.map(async (m) => {
|
|
@@ -796,7 +794,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
796
794
|
se.value.loadModelByDefaultPath(d);
|
|
797
795
|
}
|
|
798
796
|
};
|
|
799
|
-
return (
|
|
797
|
+
return (t, i) => {
|
|
800
798
|
const c = M("el-dialog"), d = M("el-button"), b = M("el-avatar"), e = M("el-header"), r = M("el-container"), s = M("el-icon"), A = M("el-input"), C = M("el-aside"), m = M("router-view"), j = M("el-main"), ee = it("loading");
|
|
801
799
|
return g(), V($e, null, [
|
|
802
800
|
o(c, {
|
|
@@ -809,7 +807,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
809
807
|
ref_key: "threeModelRef",
|
|
810
808
|
ref: se,
|
|
811
809
|
onGetAnimationData: Ce,
|
|
812
|
-
animationData:
|
|
810
|
+
animationData: Y.value
|
|
813
811
|
}, null, 8, ["animationData"])
|
|
814
812
|
]),
|
|
815
813
|
_: 1
|
|
@@ -823,7 +821,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
823
821
|
T("div", ua, [
|
|
824
822
|
o(d, {
|
|
825
823
|
id: "transparentBgButton",
|
|
826
|
-
onClick:
|
|
824
|
+
onClick: a(ct)
|
|
827
825
|
}, {
|
|
828
826
|
default: l(() => i[3] || (i[3] = [
|
|
829
827
|
ne(" 返回页面 ")
|
|
@@ -835,7 +833,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
835
833
|
id: "transparentBgButton",
|
|
836
834
|
onClick: i[1] || (i[1] = (f) => {
|
|
837
835
|
var h, k;
|
|
838
|
-
return
|
|
836
|
+
return a(dt)((k = (h = a(H)) == null ? void 0 : h.map((we) => we.value)) == null ? void 0 : k.join("/"));
|
|
839
837
|
})
|
|
840
838
|
}, {
|
|
841
839
|
icon: l(() => [
|
|
@@ -850,20 +848,20 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
850
848
|
]),
|
|
851
849
|
T("div", ca, [
|
|
852
850
|
o(Tt, {
|
|
853
|
-
breadArray:
|
|
854
|
-
onClick:
|
|
851
|
+
breadArray: a(H),
|
|
852
|
+
onClick: a(mt)
|
|
855
853
|
}, null, 8, ["breadArray", "onClick"])
|
|
856
854
|
]),
|
|
857
855
|
T("div", da, [
|
|
858
|
-
De(
|
|
856
|
+
De(t.$slots, "default", {}, void 0, !0),
|
|
859
857
|
o(b, {
|
|
860
858
|
size: 35,
|
|
861
|
-
src: (F =
|
|
859
|
+
src: (F = a(w)) == null ? void 0 : F.avatarUrl
|
|
862
860
|
}, {
|
|
863
861
|
default: l(() => {
|
|
864
862
|
var f, h, k;
|
|
865
863
|
return [
|
|
866
|
-
ne(pe((f =
|
|
864
|
+
ne(pe((f = a(w)) != null && f.account ? (h = a(w)) == null ? void 0 : h.account : ((k = a(w)) == null ? void 0 : k.账号) ?? "未知"), 1)
|
|
867
865
|
];
|
|
868
866
|
}),
|
|
869
867
|
_: 1
|
|
@@ -873,7 +871,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
873
871
|
}),
|
|
874
872
|
_: 3
|
|
875
873
|
}),
|
|
876
|
-
|
|
874
|
+
a(W) === "edit" ? (g(), I(r, {
|
|
877
875
|
key: 0,
|
|
878
876
|
class: "model-operate",
|
|
879
877
|
style: { "margin-top": "10px", height: "0px" }
|
|
@@ -890,11 +888,11 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
890
888
|
])
|
|
891
889
|
]),
|
|
892
890
|
_: 1
|
|
893
|
-
})) :
|
|
891
|
+
})) : X("", !0)
|
|
894
892
|
]),
|
|
895
893
|
_: 3
|
|
896
894
|
}, 512), [
|
|
897
|
-
[je,
|
|
895
|
+
[je, a(W) === "edit"]
|
|
898
896
|
]),
|
|
899
897
|
Te((g(), I(r, {
|
|
900
898
|
class: "client-container",
|
|
@@ -906,7 +904,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
906
904
|
T("div", {
|
|
907
905
|
class: "client-header-logo",
|
|
908
906
|
onClick: Rt
|
|
909
|
-
}, pe(
|
|
907
|
+
}, pe(a(v) === "" ? "CPMPIP" : a(v)), 1),
|
|
910
908
|
T("div", fa, [
|
|
911
909
|
o(Ft, { mode: "horizontal" })
|
|
912
910
|
]),
|
|
@@ -920,7 +918,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
920
918
|
prefix: l(() => [
|
|
921
919
|
o(s, { class: "el-input__icon" }, {
|
|
922
920
|
default: l(() => [
|
|
923
|
-
o(
|
|
921
|
+
o(a(_t))
|
|
924
922
|
]),
|
|
925
923
|
_: 1
|
|
926
924
|
})
|
|
@@ -940,11 +938,11 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
940
938
|
]),
|
|
941
939
|
_: 1,
|
|
942
940
|
__: [5]
|
|
943
|
-
})) :
|
|
944
|
-
$.showButton &&
|
|
941
|
+
})) : X("", !0),
|
|
942
|
+
$.showButton && a(W) === "view" ? (g(), I(d, {
|
|
945
943
|
key: 1,
|
|
946
944
|
id: "transparentBgButton",
|
|
947
|
-
onClick:
|
|
945
|
+
onClick: a(pt)
|
|
948
946
|
}, {
|
|
949
947
|
icon: l(() => [
|
|
950
948
|
o(Se, { name: "write" })
|
|
@@ -954,22 +952,22 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
954
952
|
]),
|
|
955
953
|
_: 1,
|
|
956
954
|
__: [6]
|
|
957
|
-
}, 8, ["onClick"])) :
|
|
958
|
-
De(
|
|
959
|
-
o(
|
|
955
|
+
}, 8, ["onClick"])) : X("", !0),
|
|
956
|
+
De(t.$slots, "default", {}, void 0, !0),
|
|
957
|
+
o(wt, null, {
|
|
960
958
|
dropTitle: l(() => {
|
|
961
959
|
var F;
|
|
962
960
|
return [
|
|
963
961
|
o(kt, {
|
|
964
962
|
size: "35",
|
|
965
|
-
avatarUrl: (F =
|
|
963
|
+
avatarUrl: (F = a(w)) == null ? void 0 : F.avatarUrl,
|
|
966
964
|
showCropper: !1,
|
|
967
965
|
banClick: !0
|
|
968
966
|
}, {
|
|
969
967
|
avatarDefault: l(() => {
|
|
970
968
|
var f, h;
|
|
971
969
|
return [
|
|
972
|
-
ne(pe(((f =
|
|
970
|
+
ne(pe(((f = a(w)) == null ? void 0 : f.account) ?? ((h = a(w)) == null ? void 0 : h.姓名) ?? "未知"), 1)
|
|
973
971
|
];
|
|
974
972
|
}),
|
|
975
973
|
_: 1
|
|
@@ -981,7 +979,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
981
979
|
o(Fe, {
|
|
982
980
|
emptyColor: !0,
|
|
983
981
|
class: "menu-button",
|
|
984
|
-
onClickTrigger:
|
|
982
|
+
onClickTrigger: Z,
|
|
985
983
|
modelValue: "清空数据",
|
|
986
984
|
buttonType: ""
|
|
987
985
|
}),
|
|
@@ -1013,28 +1011,28 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1013
1011
|
_: 1
|
|
1014
1012
|
}),
|
|
1015
1013
|
Te((g(), V("div", _a, [
|
|
1016
|
-
Me.value ? (g(), I(m, { key: 0 })) : (g(!0), V($e, { key: 1 }, ze((F =
|
|
1014
|
+
Me.value ? (g(), I(m, { key: 0 })) : (g(!0), V($e, { key: 1 }, ze((F = a(Re)(a(de))) == null ? void 0 : F.filter((f) => f.comp !== "FormTop"), (f, h) => {
|
|
1017
1015
|
var k;
|
|
1018
1016
|
return g(), V("div", {
|
|
1019
1017
|
class: "item-view-content",
|
|
1020
1018
|
key: h
|
|
1021
1019
|
}, [
|
|
1022
|
-
((k = f == null ? void 0 : f.comp) == null ? void 0 : k.toUpperCase()) !== "TABLE" && f.name ? (g(), V("div", va, pe(f.name), 1)) :
|
|
1023
|
-
(g(), I(rt(
|
|
1020
|
+
((k = f == null ? void 0 : f.comp) == null ? void 0 : k.toUpperCase()) !== "TABLE" && f.name ? (g(), V("div", va, pe(f.name), 1)) : X("", !0),
|
|
1021
|
+
(g(), I(rt(a(ht)(f.comp)), {
|
|
1024
1022
|
compName: f.name,
|
|
1025
1023
|
itemData: f == null ? void 0 : f.compData,
|
|
1026
1024
|
childItemData: f == null ? void 0 : f.itemChildData,
|
|
1027
1025
|
key: (f == null ? void 0 : f.id) ?? h,
|
|
1028
|
-
onChange:
|
|
1026
|
+
onChange: a(yt),
|
|
1029
1027
|
index: (f == null ? void 0 : f.id) ?? h,
|
|
1030
|
-
onContentChange:
|
|
1031
|
-
onPageChange:
|
|
1028
|
+
onContentChange: a(gt),
|
|
1029
|
+
onPageChange: a(ft),
|
|
1032
1030
|
onRowClick: z
|
|
1033
1031
|
}, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
1034
1032
|
]);
|
|
1035
1033
|
}), 128))
|
|
1036
1034
|
])), [
|
|
1037
|
-
[ee,
|
|
1035
|
+
[ee, a(O)]
|
|
1038
1036
|
])
|
|
1039
1037
|
];
|
|
1040
1038
|
}),
|
|
@@ -1046,11 +1044,11 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1046
1044
|
]),
|
|
1047
1045
|
_: 3
|
|
1048
1046
|
})), [
|
|
1049
|
-
[je,
|
|
1050
|
-
[ee,
|
|
1047
|
+
[je, a(W) === "view"],
|
|
1048
|
+
[ee, a(ce)]
|
|
1051
1049
|
]),
|
|
1052
1050
|
T("div", null, [
|
|
1053
|
-
o(
|
|
1051
|
+
o(jt, {
|
|
1054
1052
|
visible: R.value,
|
|
1055
1053
|
onBeforeDestroy: xe,
|
|
1056
1054
|
style: { height: "700px", width: "1000px" }
|
|
@@ -1088,11 +1086,11 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1088
1086
|
},
|
|
1089
1087
|
emits: ["buildContent", "showChild"],
|
|
1090
1088
|
setup($, { emit: me }) {
|
|
1091
|
-
const n = Ee(ue), R = He(ue),
|
|
1089
|
+
const n = Ee(ue), R = He(ue), H = Ne();
|
|
1092
1090
|
_(!1);
|
|
1093
|
-
const
|
|
1094
|
-
|
|
1095
|
-
},
|
|
1091
|
+
const U = _(!0), u = $, J = me, L = (w) => {
|
|
1092
|
+
J("showChild", w);
|
|
1093
|
+
}, N = Ve(() => {
|
|
1096
1094
|
switch (u == null ? void 0 : u.platform) {
|
|
1097
1095
|
case "browser":
|
|
1098
1096
|
return Kt;
|
|
@@ -1101,30 +1099,30 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1101
1099
|
}
|
|
1102
1100
|
}), K = (w) => {
|
|
1103
1101
|
const ae = document.documentElement;
|
|
1104
|
-
w == null || w.forEach((
|
|
1105
|
-
ae.style.setProperty(
|
|
1102
|
+
w == null || w.forEach((W) => {
|
|
1103
|
+
ae.style.setProperty(W.name, W.value);
|
|
1106
1104
|
});
|
|
1107
1105
|
};
|
|
1108
1106
|
te(() => u.platform, (w, ae) => {
|
|
1109
|
-
w && K(
|
|
1107
|
+
w && K(N.value);
|
|
1110
1108
|
}, { immediate: !0 });
|
|
1111
1109
|
const ge = () => {
|
|
1112
|
-
|
|
1110
|
+
J("buildContent");
|
|
1113
1111
|
};
|
|
1114
1112
|
return te(
|
|
1115
1113
|
() => [u == null ? void 0 : u.content, u == null ? void 0 : u.jsonContents],
|
|
1116
1114
|
async () => {
|
|
1117
|
-
var
|
|
1118
|
-
if (((
|
|
1115
|
+
var W, q, he, le;
|
|
1116
|
+
if (((W = u == null ? void 0 : u.jsonContents) == null ? void 0 : W.length) > 0) {
|
|
1119
1117
|
n.setOriginalData(u == null ? void 0 : u.jsonContents);
|
|
1120
1118
|
return;
|
|
1121
1119
|
}
|
|
1122
|
-
if (!(u != null && u.content) || ((
|
|
1123
|
-
|
|
1120
|
+
if (!(u != null && u.content) || ((q = u == null ? void 0 : u.content) == null ? void 0 : q.length) === 0) return;
|
|
1121
|
+
U.value = !0, H.setImportLoading(!0);
|
|
1124
1122
|
let w = [], ae = [];
|
|
1125
1123
|
R.setSelectTitle([]), R.setSelectIndex(""), R.setSelectMenu(""), (le = (he = u == null ? void 0 : u.content) == null ? void 0 : he.filter((x) => x !== "")) == null || le.forEach((x) => {
|
|
1126
|
-
ae.push(
|
|
1127
|
-
}), w = ae == null ? void 0 : ae[0], await
|
|
1124
|
+
ae.push(Pt(x));
|
|
1125
|
+
}), w = ae == null ? void 0 : ae[0], await Vt(w), await bt(), n.setOriginalData(w), H.setImportLoading(!1);
|
|
1128
1126
|
},
|
|
1129
1127
|
{ deep: !0, immediate: !0 }
|
|
1130
1128
|
), (w, ae) => (g(), V("div", ka, [
|
|
@@ -1142,7 +1140,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1142
1140
|
windowConfig: $.windowConfig,
|
|
1143
1141
|
showButton: $.showButton,
|
|
1144
1142
|
onBuildContent: ge,
|
|
1145
|
-
onShowChild:
|
|
1143
|
+
onShowChild: L
|
|
1146
1144
|
}, {
|
|
1147
1145
|
default: l(() => [
|
|
1148
1146
|
De(w.$slots, "default", {}, void 0, !0)
|
|
@@ -1187,7 +1185,7 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1187
1185
|
},
|
|
1188
1186
|
emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
|
|
1189
1187
|
setup($, { emit: me }) {
|
|
1190
|
-
const n = $, R = me,
|
|
1188
|
+
const n = $, R = me, H = _([]), U = _(0), u = _([]), J = _([]), L = _(0), N = Ee(ue), K = Ne(ue), { itemData: ge, originalData: w } = re(N), { activeMenuPath: ae, platform: W } = re(K), q = _(null), he = _(0), le = _([]);
|
|
1191
1189
|
_("");
|
|
1192
1190
|
const x = _(0), se = () => {
|
|
1193
1191
|
R("buildContent");
|
|
@@ -1198,35 +1196,35 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1198
1196
|
let v = {};
|
|
1199
1197
|
if ((n == null ? void 0 : n.pageKey) !== "") {
|
|
1200
1198
|
const B = await Ie(n == null ? void 0 : n.pageKey, sessionStorage.getItem("systemKey"), ""), O = await Ie("弯管仿真加工管理/管件解析", sessionStorage.getItem("systemKey"), "");
|
|
1201
|
-
let
|
|
1199
|
+
let E = ["管长", "外径"], Q = {};
|
|
1202
1200
|
O == null || O.forEach((y) => {
|
|
1203
1201
|
var oe;
|
|
1204
1202
|
(y == null ? void 0 : y.comp) === "Form" && ((oe = y == null ? void 0 : y.compData) == null || oe.forEach((S) => {
|
|
1205
1203
|
var z;
|
|
1206
1204
|
(S == null ? void 0 : S.key) === "formContent" && ((z = S == null ? void 0 : S.contents) == null || z.forEach((p) => {
|
|
1207
|
-
|
|
1205
|
+
E.includes(p == null ? void 0 : p.key) && (Q[p.key] = p.value);
|
|
1208
1206
|
}));
|
|
1209
1207
|
}));
|
|
1210
1208
|
}), B == null || B.forEach((y) => {
|
|
1211
|
-
var oe, S, z, p,
|
|
1209
|
+
var oe, S, z, p, Z, fe;
|
|
1212
1210
|
if ((y == null ? void 0 : y.comp) === "Table") {
|
|
1213
|
-
let xe = [], Be = (z = (S = (oe = y == null ? void 0 : y.compData) == null ? void 0 : oe.find((P) => (P == null ? void 0 : P.key) === "header")) == null ? void 0 : S.contents) == null ? void 0 : z.map((P) => P == null ? void 0 : P.label), Me = (fe = (
|
|
1211
|
+
let xe = [], Be = (z = (S = (oe = y == null ? void 0 : y.compData) == null ? void 0 : oe.find((P) => (P == null ? void 0 : P.key) === "header")) == null ? void 0 : S.contents) == null ? void 0 : z.map((P) => P == null ? void 0 : P.label), Me = (fe = (Z = (p = y == null ? void 0 : y.compData) == null ? void 0 : p.find((P) => (P == null ? void 0 : P.key) === "tableContents")) == null ? void 0 : Z.contents) == null ? void 0 : fe.map((P) => (P = P == null ? void 0 : P.filter((Ce) => !(Ce != null && Ce.id)), P));
|
|
1214
1212
|
Me == null || Me.forEach((P) => {
|
|
1215
1213
|
xe.push(Bt(P, Be == null ? void 0 : Be.filter((Ce) => Ce !== "操作")));
|
|
1216
1214
|
}), v[y.name] = xe, v[y.name + "Content"] = y;
|
|
1217
1215
|
}
|
|
1218
|
-
}), v.extra =
|
|
1216
|
+
}), v.extra = Q, R("threeData", v);
|
|
1219
1217
|
}
|
|
1220
1218
|
},
|
|
1221
1219
|
{ deep: !0, immediate: !0 }
|
|
1222
1220
|
);
|
|
1223
|
-
const
|
|
1221
|
+
const Y = (v) => {
|
|
1224
1222
|
R("openThreeBuild", v);
|
|
1225
1223
|
};
|
|
1226
1224
|
te(
|
|
1227
1225
|
() => n == null ? void 0 : n.pathContent,
|
|
1228
1226
|
() => {
|
|
1229
|
-
(n == null ? void 0 : n.pathContent) !== "" &&
|
|
1227
|
+
(n == null ? void 0 : n.pathContent) !== "" && N.setSystemPath(n == null ? void 0 : n.pathContent);
|
|
1230
1228
|
},
|
|
1231
1229
|
{
|
|
1232
1230
|
deep: !0,
|
|
@@ -1237,9 +1235,9 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1237
1235
|
R("contentChange", v);
|
|
1238
1236
|
}, ce = (v) => {
|
|
1239
1237
|
var O;
|
|
1240
|
-
const B = (O = Re(v == null ? void 0 : v.wholeValue)) == null ? void 0 : O.map((
|
|
1241
|
-
var
|
|
1242
|
-
return (
|
|
1238
|
+
const B = (O = Re(v == null ? void 0 : v.wholeValue)) == null ? void 0 : O.map((E) => {
|
|
1239
|
+
var Q;
|
|
1240
|
+
return (E == null ? void 0 : E.comp) === "Form" && (E.compData = (Q = E.compData) == null ? void 0 : Q.map((y) => ((y == null ? void 0 : y.key) === "formContent" && (y.contents = Ut(y == null ? void 0 : y.contents)), y))), E;
|
|
1243
1241
|
});
|
|
1244
1242
|
R("change", {
|
|
1245
1243
|
originalContents: w.value,
|
|
@@ -1251,17 +1249,17 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1251
1249
|
te(
|
|
1252
1250
|
() => u.value,
|
|
1253
1251
|
() => {
|
|
1254
|
-
x.value === u.value.length && u.value.length !== 0 && (
|
|
1252
|
+
x.value === u.value.length && u.value.length !== 0 && (H.value = u.value);
|
|
1255
1253
|
},
|
|
1256
1254
|
{ deep: !0, immediate: !0 }
|
|
1257
1255
|
);
|
|
1258
1256
|
const ie = () => {
|
|
1259
|
-
|
|
1257
|
+
q.value !== null && q.value.click();
|
|
1260
1258
|
}, ye = async (v) => {
|
|
1261
1259
|
const B = v.target.files;
|
|
1262
1260
|
if (!B) return;
|
|
1263
|
-
new FileReader(),
|
|
1264
|
-
const O = Array.from(B).map(async (
|
|
1261
|
+
new FileReader(), H.value = [], u.value = [], x.value = B.length;
|
|
1262
|
+
const O = Array.from(B).map(async (E) => await new Promise((Q) => {
|
|
1265
1263
|
const y = new FileReader();
|
|
1266
1264
|
y.onload = (oe) => {
|
|
1267
1265
|
try {
|
|
@@ -1270,25 +1268,25 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1270
1268
|
console.error("解析失败:", S);
|
|
1271
1269
|
return;
|
|
1272
1270
|
}
|
|
1273
|
-
}, y.onerror = () =>
|
|
1271
|
+
}, y.onerror = () => Q(`读取 ${E.name} 失败`), y.readAsText(E), v.target.value = "", q.value = null, U.value++;
|
|
1274
1272
|
}));
|
|
1275
1273
|
await Promise.all(O), K.setActiveMenuPath(""), K.setActiveTopMenuPath("");
|
|
1276
1274
|
};
|
|
1277
1275
|
return te(
|
|
1278
1276
|
() => [n == null ? void 0 : n.content, n == null ? void 0 : n.jsonContents],
|
|
1279
1277
|
async () => {
|
|
1280
|
-
await bt(),
|
|
1278
|
+
await bt(), H.value = n.content, J.value = n == null ? void 0 : n.jsonContents;
|
|
1281
1279
|
},
|
|
1282
1280
|
{ deep: !0, immediate: !0 }
|
|
1283
1281
|
), te(
|
|
1284
1282
|
() => he.value,
|
|
1285
1283
|
() => {
|
|
1286
1284
|
var v;
|
|
1287
|
-
((v = le.value) == null ? void 0 : v.length) !== 0 && (
|
|
1285
|
+
((v = le.value) == null ? void 0 : v.length) !== 0 && (N.setOriginalData(le.value), N.setItemData(le.value));
|
|
1288
1286
|
},
|
|
1289
1287
|
{ deep: !0, immediate: !0 }
|
|
1290
1288
|
), (v, B) => {
|
|
1291
|
-
const O = M("svg-icon"),
|
|
1289
|
+
const O = M("svg-icon"), E = M("el-button");
|
|
1292
1290
|
return g(), V("div", Fa, [
|
|
1293
1291
|
(n == null ? void 0 : n.mode) === "edit" ? (g(), V("div", Ta, [
|
|
1294
1292
|
T("div", Ra, [
|
|
@@ -1296,30 +1294,30 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1296
1294
|
]),
|
|
1297
1295
|
(g(), V("div", {
|
|
1298
1296
|
class: "model-show",
|
|
1299
|
-
key:
|
|
1297
|
+
key: L.value
|
|
1300
1298
|
}, [
|
|
1301
1299
|
o(Xe)
|
|
1302
1300
|
])),
|
|
1303
1301
|
T("div", Sa, [
|
|
1304
1302
|
o(qe)
|
|
1305
1303
|
])
|
|
1306
|
-
])) :
|
|
1304
|
+
])) : X("", !0),
|
|
1307
1305
|
(n == null ? void 0 : n.mode) === "view" ? (g(), V("div", Da, [
|
|
1308
1306
|
(g(), I(ba, {
|
|
1309
1307
|
showButton: $.showButton,
|
|
1310
|
-
platform:
|
|
1311
|
-
content:
|
|
1308
|
+
platform: a(W),
|
|
1309
|
+
content: H.value,
|
|
1312
1310
|
onChange: ce,
|
|
1313
|
-
jsonContents:
|
|
1311
|
+
jsonContents: J.value,
|
|
1314
1312
|
onContentChange: D,
|
|
1315
1313
|
onBuildContent: se,
|
|
1316
|
-
key:
|
|
1317
|
-
onShowChild:
|
|
1314
|
+
key: L.value,
|
|
1315
|
+
onShowChild: Y
|
|
1318
1316
|
}, {
|
|
1319
1317
|
default: l(() => {
|
|
1320
|
-
var
|
|
1318
|
+
var Q;
|
|
1321
1319
|
return [
|
|
1322
|
-
((
|
|
1320
|
+
((Q = n == null ? void 0 : n.jsonContents) == null ? void 0 : Q.length) === 0 && (n != null && n.showButton) ? (g(), I(E, {
|
|
1323
1321
|
key: 0,
|
|
1324
1322
|
id: "transparentBgButton",
|
|
1325
1323
|
onClick: ie
|
|
@@ -1330,9 +1328,9 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1330
1328
|
default: l(() => [
|
|
1331
1329
|
(g(), V("input", {
|
|
1332
1330
|
type: "file",
|
|
1333
|
-
key:
|
|
1331
|
+
key: U.value,
|
|
1334
1332
|
ref_key: "fileInput",
|
|
1335
|
-
ref:
|
|
1333
|
+
ref: q,
|
|
1336
1334
|
accept: ".txt, .inm, .iml, .imd",
|
|
1337
1335
|
onChange: ye,
|
|
1338
1336
|
style: { display: "none" },
|
|
@@ -1342,16 +1340,16 @@ const Ft = /* @__PURE__ */ Ae($t, [["render", zt], ["__scopeId", "data-v-9a59c14
|
|
|
1342
1340
|
]),
|
|
1343
1341
|
_: 1,
|
|
1344
1342
|
__: [0]
|
|
1345
|
-
})) :
|
|
1343
|
+
})) : X("", !0)
|
|
1346
1344
|
];
|
|
1347
1345
|
}),
|
|
1348
1346
|
_: 1
|
|
1349
1347
|
}, 8, ["showButton", "platform", "content", "jsonContents"]))
|
|
1350
|
-
])) :
|
|
1348
|
+
])) : X("", !0)
|
|
1351
1349
|
]);
|
|
1352
1350
|
};
|
|
1353
1351
|
}
|
|
1354
|
-
},
|
|
1352
|
+
}, Ja = /* @__PURE__ */ Ae(Aa, [["__scopeId", "data-v-248ffa0f"]]);
|
|
1355
1353
|
export {
|
|
1356
|
-
|
|
1354
|
+
Ja as default
|
|
1357
1355
|
};
|