ss-component-new 1.1.396 → 1.1.397
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-C16RsBGi.js → array-BMm2xbyh.js} +2 -2
- package/dist/{array-CrflPQfH.cjs → array-DrchcVuo.cjs} +1 -1
- package/dist/{index-Ci_TlUaz.cjs → index-0xeOQNqr.cjs} +1 -1
- package/dist/{index-sX5lTda9.cjs → index-5rgfBNRZ.cjs} +1 -1
- package/dist/{index-LAneWWe0.cjs → index-7UFQD8dI.cjs} +1 -1
- package/dist/{index-BrwiY9L3.js → index-ASm-tiLF.js} +4 -4
- package/dist/{index-BPhF9zmt.cjs → index-B4MrDBQI.cjs} +1 -1
- package/dist/{index-sbQSWrBI.cjs → index-BJjUEAip.cjs} +1 -1
- package/dist/{index-DD1B6uNy.cjs → index-BLq1jCgy.cjs} +1 -1
- package/dist/{index-BqgHyhdi.js → index-BPnzUJyM.js} +1 -1
- package/dist/{index-DdMKahpe.cjs → index-BR_5J-Rp.cjs} +1 -1
- package/dist/{index-DeDlxE6V.js → index-BU_03B7p.js} +29 -26
- package/dist/{index-DPMhC2WO.js → index-BVQIDysd.js} +3 -3
- package/dist/{index-DlBjdPGf.cjs → index-BY1X4-T5.cjs} +1 -1
- package/dist/{index-CVkIx7Qb.js → index-Bhci20la.js} +4 -4
- package/dist/{index-CmwiMKaN.cjs → index-BqArjijs.cjs} +1 -1
- package/dist/{index-iWbccyfH.cjs → index-BusYSZDz.cjs} +1 -1
- package/dist/{index-DvuQRvTq.js → index-Bxi55yPn.js} +5 -5
- package/dist/{index-NyFbsRls.js → index-Byf9n_kH.js} +7 -7
- package/dist/{index-B87MOYL0.cjs → index-BzWrFscu.cjs} +1 -1
- package/dist/{index-HXgo29eU.js → index-CI1TvyGc.js} +4 -4
- package/dist/{index-5QKtXqtt.cjs → index-CKfWuKQ-.cjs} +1 -1
- package/dist/{index-BPG0DRXa.js → index-CM1PfZ-y.js} +5 -5
- package/dist/index-CWxAe8Hn.js +1564 -0
- package/dist/{index-D6aaas52.cjs → index-CcUmQ8j2.cjs} +1 -1
- package/dist/{index-BLFmQUvu.cjs → index-CeZMiwjT.cjs} +1 -1
- package/dist/{index-0rS7KbmB.cjs → index-CkuA9YtT.cjs} +1 -1
- package/dist/{index-CAiiyLHX.js → index-CusCByer.js} +2 -2
- package/dist/{index-BCBaGcSw.cjs → index-CvKVVUbj.cjs} +1 -1
- package/dist/{index-B5SKuqtT.js → index-CydzKd1p.js} +1 -1
- package/dist/{index-B_gX595b.cjs → index-CyxJ_jHM.cjs} +1 -1
- package/dist/{index-DL2KazPi.js → index-D3-VeVtm.js} +6 -6
- package/dist/{index-msEHZkYa.js → index-D7gBl7Bx.js} +5 -5
- package/dist/{index-cld16RcD.js → index-DE3aicnZ.js} +7 -7
- package/dist/{index-Dyj2IJ-k.js → index-DLBak3Lt.js} +4 -4
- package/dist/{index-C9Qome4l.js → index-DP9-VsqS.js} +5 -5
- package/dist/{index-CA6wLV-m.js → index-DQ3sNMML.js} +6 -6
- package/dist/{index-CF2GXE5j.js → index-DUcpVC5C.js} +4 -4
- package/dist/{index-CASSs849.js → index-DYvfFqEa.js} +3 -3
- package/dist/{index-Bft1aZ0a.cjs → index-DcuoGUjl.cjs} +1 -1
- package/dist/index-Dgk3r8_M.cjs +1 -0
- package/dist/{index-P4OXUc2W.cjs → index-Dn-0fR75.cjs} +1 -1
- package/dist/{index-P80WmN2w.cjs → index-Ds8QFoQ-.cjs} +1 -1
- package/dist/{index-F1ttuKSv.js → index-DuC_dofe.js} +4 -4
- package/dist/{index-BI8ECnch.js → index-DxkIkZjg.js} +1 -1
- package/dist/{index-C822Fm25.js → index-HT7hXa5c.js} +7 -7
- package/dist/{index-Vgnu3AJT.cjs → index-QK5rLXVe.cjs} +1 -1
- package/dist/{index-CIQlsfDn.cjs → index-Wb412Wki.cjs} +1 -1
- package/dist/{index-DPiUDaPy.js → index-XV4q28ju.js} +3 -3
- package/dist/index-Y7giQ1a4.cjs +1 -0
- package/dist/{index-BiLGjwKz.js → index-ecJYDIw4.js} +9 -9
- package/dist/{index-Bkw45mmW.cjs → index-gyJJ1_Vo.cjs} +1 -1
- package/dist/{index-BS9fOObP.js → index-rIMXQ6PY.js} +1 -1
- package/dist/{index-Z_MwT_T3.cjs → index-vorF-H1l.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DSlW9AIf.cjs → index.vue_vue_type_script_setup_true_lang-D67sZOgP.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BbuiPO6s.js → index.vue_vue_type_script_setup_true_lang-T1imEghJ.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CMVrqCWx.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Csbqxggh.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UFSwAOJz.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D2ENkR1G.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-DOjbMvFW.cjs → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CG-9MeCv.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-4Af2QVFc.js → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-Dk0_HFXf.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_45defba9_lang-DGl8Ds4Q.js → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CafwctIq.js} +1336 -1342
- package/dist/{index.vue_vue_type_style_index_0_scoped_45defba9_lang-BoiEK80r.cjs → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CpPem8Cc.cjs} +3 -3
- package/dist/{login-Dk-07p0w.cjs → login-CII9CG-J.cjs} +1 -1
- package/dist/{login-DXi57ZMh.js → login-DdNgIg3X.js} +1 -1
- package/dist/{main-Bi8-ggGu.cjs → main-B1ZWk63R.cjs} +1 -1
- package/dist/{main-BbFbvu6k.js → main-BOfMXV-3.js} +6 -6
- package/dist/{menu-CIgIfqSs.cjs → menu-DlNtyfT6.cjs} +1 -1
- package/dist/{menu-ozOGGi5Z.js → menu-Dl_Xtx7n.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-Dl-CREqP.cjs → threeModel-Bf7f4982.cjs} +1 -1
- package/dist/{threeModel-Dt4tQ3jF.js → threeModel-Cc5t11yb.js} +3 -3
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-D7fZi66-.cjs → threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-DMIfmZ8j.cjs} +1 -1
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-Bea0CNjG.js → threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-OVa4vxrk.js} +2 -2
- package/package.json +1 -1
- package/dist/index-DOIRqr3P.js +0 -1553
- package/dist/index-kP4PZFnP.cjs +0 -1
- package/dist/index-soDn3tCX.cjs +0 -1
package/dist/index-DOIRqr3P.js
DELETED
|
@@ -1,1553 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as b, createBlock as L, openBlock as c, withCtx as o, createVNode as t, createElementVNode as C, toDisplayString as Ae, ref as _, onMounted as Yt, watch as _e, createElementBlock as N, Fragment as ot, renderList as ht, createCommentVNode as H, normalizeStyle as Zt, defineComponent as Rt, computed as nt, resolveDirective as Ft, withDirectives as at, unref as s, createTextVNode as fe, renderSlot as We, resolveDynamicComponent as St, vShow as Ct } from "vue";
|
|
2
|
-
import { m as ft, a as gt, b as yt } from "./index-C822Fm25.js";
|
|
3
|
-
import lt from "./index-BqgHyhdi.js";
|
|
4
|
-
import { _ as ea, o as xt, c as At, a as Ut, b as Pt, d as Dt, s as se, g as jt, e as $t, f as Mt, h as Lt, i as ta, j as aa, k as oa } from "./index.vue_vue_type_style_index_0_scoped_45defba9_lang-DGl8Ds4Q.js";
|
|
5
|
-
import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { p as Be, s as ke, u as st, b as J, g as na, E as mt } from "./menu-ozOGGi5Z.js";
|
|
7
|
-
import { u as Et } from "./login-DXi57ZMh.js";
|
|
8
|
-
import { S as xe } from "./index-BHtNKL1L.js";
|
|
9
|
-
import { u as it } from "./threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-Bea0CNjG.js";
|
|
10
|
-
import { u as _t, a as la, I as bt, l as Vt } from "./index-C9Qome4l.js";
|
|
11
|
-
import { s as Nt } from "./index-BiLGjwKz.js";
|
|
12
|
-
import { c as et } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UFSwAOJz.js";
|
|
13
|
-
import sa from "./threeModel-Dt4tQ3jF.js";
|
|
14
|
-
import { s as ia, _ as Ne } from "./index-BrwiY9L3.js";
|
|
15
|
-
import { u as ra } from "./index-NyFbsRls.js";
|
|
16
|
-
import { d as kt } from "./index-BI8ECnch.js";
|
|
17
|
-
import { i as ca, e as ua, b as Bt, c as Tt, a as da } from "./array-C16RsBGi.js";
|
|
18
|
-
import { c as pa, b as ma } from "./index.vue_vue_type_style_index_0_scoped_306ecd73_lang-4Af2QVFc.js";
|
|
19
|
-
function ha(D, Ue, l, I, K, re) {
|
|
20
|
-
const r = b("svg-icon"), ce = b("ssMenu");
|
|
21
|
-
return c(), L(ce, {
|
|
22
|
-
mode: D.mode,
|
|
23
|
-
menuList: D.renderMenuList,
|
|
24
|
-
onClickMenu: D.clickMenu,
|
|
25
|
-
onOpenMenu: D.openMenu,
|
|
26
|
-
onCloseMenu: D.closeMenu
|
|
27
|
-
}, {
|
|
28
|
-
title: o(({ menu: X }) => [
|
|
29
|
-
t(r, {
|
|
30
|
-
name: X.icon ?? "Fold",
|
|
31
|
-
style: { width: "clamp(16px, 1.25rem, 20px)", height: "clamp(16px, 1.25rem, 20px)", "margin-right": "8px" }
|
|
32
|
-
}, null, 8, ["name"]),
|
|
33
|
-
C("span", null, Ae(X.title ?? ""), 1)
|
|
34
|
-
]),
|
|
35
|
-
_: 1
|
|
36
|
-
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
37
|
-
}
|
|
38
|
-
const Ot = /* @__PURE__ */ qe(ea, [["render", ha], ["__scopeId", "data-v-5c2d7ed2"]]), fa = { class: "bread-content" }, ga = ["onClick"], ya = {
|
|
39
|
-
key: 0,
|
|
40
|
-
class: "split-title"
|
|
41
|
-
}, _a = {
|
|
42
|
-
__name: "index",
|
|
43
|
-
props: {
|
|
44
|
-
breadArray: {
|
|
45
|
-
type: Array,
|
|
46
|
-
default: () => []
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
emits: ["click"],
|
|
50
|
-
setup(D, { emit: Ue }) {
|
|
51
|
-
const l = D, I = _([]), K = Ue;
|
|
52
|
-
Yt(() => {
|
|
53
|
-
I.value = l == null ? void 0 : l.breadArray;
|
|
54
|
-
}), _e(
|
|
55
|
-
() => l == null ? void 0 : l.breadArray,
|
|
56
|
-
() => {
|
|
57
|
-
I.value = l == null ? void 0 : l.breadArray;
|
|
58
|
-
},
|
|
59
|
-
{ deep: !0, immediate: !0 }
|
|
60
|
-
);
|
|
61
|
-
const re = (r) => {
|
|
62
|
-
K("click", r);
|
|
63
|
-
};
|
|
64
|
-
return (r, ce) => (c(), N("div", fa, [
|
|
65
|
-
(c(!0), N(ot, null, ht(I.value, (X, ue) => {
|
|
66
|
-
var de;
|
|
67
|
-
return c(), N("div", {
|
|
68
|
-
key: ue,
|
|
69
|
-
class: "bread-item"
|
|
70
|
-
}, [
|
|
71
|
-
C("div", {
|
|
72
|
-
class: "bread-title",
|
|
73
|
-
onClick: (j) => re(X),
|
|
74
|
-
style: Zt({ opacity: ((de = I.value) == null ? void 0 : de.length) - 1 === ue ? "0.7" : "1" })
|
|
75
|
-
}, Ae(X.value), 13, ga),
|
|
76
|
-
ue !== I.value.length - 1 && Array.isArray(I.value) ? (c(), N("div", ya, Ae("/"))) : H("", !0)
|
|
77
|
-
]);
|
|
78
|
-
}), 128))
|
|
79
|
-
]));
|
|
80
|
-
}
|
|
81
|
-
}, zt = /* @__PURE__ */ qe(_a, [["__scopeId", "data-v-ded7e2bd"]]), va = { class: "structure-buttons" }, wa = { class: "structure-paths" }, Ca = { class: "client-header-user" }, ba = { class: "model-select" }, ka = { class: "model-show" }, Ba = { class: "model-fill" }, Ta = { class: "client-header-menu" }, Ra = { class: "client-header-user" }, Fa = { class: "drop-menu" }, Sa = { class: "client-main-operate" }, xa = {
|
|
82
|
-
key: 0,
|
|
83
|
-
class: "item-view-group"
|
|
84
|
-
}, Aa = { class: "client-main-operate" }, Ua = /* @__PURE__ */ Rt({
|
|
85
|
-
__name: "index2",
|
|
86
|
-
props: {
|
|
87
|
-
windowConfig: {
|
|
88
|
-
type: Object,
|
|
89
|
-
default: () => {
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
showButton: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: !0
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
setup(D) {
|
|
98
|
-
const Ue = _t(Be), { selectTitle: l } = ke(Ue), I = Et(), { loginUserInfo: K } = ke(I), re = it(Be), { isEdit: r, routeToChildPath: ce } = ke(re), X = st(Be), { importLoading: ue, activeTopMenuPath: de } = ke(X), j = _(""), Y = nt(() => de.value === "系统管理" || de.value === "平台管理"), ge = () => {
|
|
99
|
-
sessionStorage.clear(), window.location.reload();
|
|
100
|
-
}, ve = () => {
|
|
101
|
-
X.setActiveMenuPath(ce.value), re.setRouteToChildPath("");
|
|
102
|
-
};
|
|
103
|
-
return (we, A) => {
|
|
104
|
-
const O = b("el-button"), Oe = b("el-avatar"), De = b("el-header"), G = b("el-container"), pe = b("el-icon"), Me = b("el-input"), He = b("ss-avatar"), S = b("ss-button"), Ce = b("ss-drop"), W = b("el-aside"), Z = b("el-main"), be = b("router-view"), Q = Ft("loading");
|
|
105
|
-
return s(r) === "edit" ? (c(), L(G, {
|
|
106
|
-
key: 0,
|
|
107
|
-
class: "client-container"
|
|
108
|
-
}, {
|
|
109
|
-
default: o(() => [
|
|
110
|
-
t(De, { class: "client-structure-header" }, {
|
|
111
|
-
default: o(() => {
|
|
112
|
-
var ne;
|
|
113
|
-
return [
|
|
114
|
-
C("div", va, [
|
|
115
|
-
t(O, {
|
|
116
|
-
id: "transparentBgButton",
|
|
117
|
-
onClick: s(xt)
|
|
118
|
-
}, {
|
|
119
|
-
default: o(() => A[2] || (A[2] = [
|
|
120
|
-
fe(" 返回页面 ")
|
|
121
|
-
])),
|
|
122
|
-
_: 1,
|
|
123
|
-
__: [2]
|
|
124
|
-
}, 8, ["onClick"]),
|
|
125
|
-
t(O, {
|
|
126
|
-
id: "transparentBgButton",
|
|
127
|
-
onClick: A[0] || (A[0] = (f) => {
|
|
128
|
-
var je, Le;
|
|
129
|
-
return s(At)((Le = (je = s(l)) == null ? void 0 : je.map((rt) => rt.value)) == null ? void 0 : Le.join("/"));
|
|
130
|
-
})
|
|
131
|
-
}, {
|
|
132
|
-
icon: o(() => [
|
|
133
|
-
t(xe, { name: "Store" })
|
|
134
|
-
]),
|
|
135
|
-
default: o(() => [
|
|
136
|
-
A[3] || (A[3] = fe(" 保存页面 "))
|
|
137
|
-
]),
|
|
138
|
-
_: 1,
|
|
139
|
-
__: [3]
|
|
140
|
-
})
|
|
141
|
-
]),
|
|
142
|
-
C("div", wa, [
|
|
143
|
-
(c(), L(zt, {
|
|
144
|
-
key: s(l),
|
|
145
|
-
breadArray: s(l),
|
|
146
|
-
onClick: s(Ut)
|
|
147
|
-
}, null, 8, ["breadArray", "onClick"]))
|
|
148
|
-
]),
|
|
149
|
-
C("div", Ca, [
|
|
150
|
-
We(we.$slots, "default", {}, void 0, !0),
|
|
151
|
-
t(Oe, {
|
|
152
|
-
size: 35,
|
|
153
|
-
src: (ne = s(K)) == null ? void 0 : ne.avatarUrl
|
|
154
|
-
}, {
|
|
155
|
-
default: o(() => {
|
|
156
|
-
var f;
|
|
157
|
-
return [
|
|
158
|
-
fe(Ae(((f = s(K)) == null ? void 0 : f.account) ?? "未知"), 1)
|
|
159
|
-
];
|
|
160
|
-
}),
|
|
161
|
-
_: 1
|
|
162
|
-
}, 8, ["src"])
|
|
163
|
-
])
|
|
164
|
-
];
|
|
165
|
-
}),
|
|
166
|
-
_: 3
|
|
167
|
-
}),
|
|
168
|
-
s(r) === "edit" ? (c(), L(G, {
|
|
169
|
-
key: 0,
|
|
170
|
-
class: "model-operate",
|
|
171
|
-
style: { "margin-top": "10px", height: "0px" }
|
|
172
|
-
}, {
|
|
173
|
-
default: o(() => [
|
|
174
|
-
C("div", ba, [
|
|
175
|
-
t(ft)
|
|
176
|
-
]),
|
|
177
|
-
C("div", ka, [
|
|
178
|
-
t(gt)
|
|
179
|
-
]),
|
|
180
|
-
C("div", Ba, [
|
|
181
|
-
t(yt)
|
|
182
|
-
])
|
|
183
|
-
]),
|
|
184
|
-
_: 1
|
|
185
|
-
})) : H("", !0)
|
|
186
|
-
]),
|
|
187
|
-
_: 3
|
|
188
|
-
})) : at((c(), L(G, {
|
|
189
|
-
key: 1,
|
|
190
|
-
class: "client-container",
|
|
191
|
-
"element-loading-text": "正在加载页面数据..."
|
|
192
|
-
}, {
|
|
193
|
-
default: o(() => [
|
|
194
|
-
t(De, { class: "client-header" }, {
|
|
195
|
-
default: o(() => [
|
|
196
|
-
A[6] || (A[6] = C("div", { class: "client-header-logo" }, " ISIP ", -1)),
|
|
197
|
-
C("div", Ta, [
|
|
198
|
-
t(Ot, { mode: "horizontal" })
|
|
199
|
-
]),
|
|
200
|
-
C("div", Ra, [
|
|
201
|
-
t(Me, {
|
|
202
|
-
modelValue: j.value,
|
|
203
|
-
"onUpdate:modelValue": A[1] || (A[1] = (ne) => j.value = ne),
|
|
204
|
-
clearable: "",
|
|
205
|
-
placeholder: "搜索",
|
|
206
|
-
style: { width: "130px" }
|
|
207
|
-
}, {
|
|
208
|
-
prefix: o(() => [
|
|
209
|
-
t(pe, { class: "el-input__icon" }, {
|
|
210
|
-
default: o(() => [
|
|
211
|
-
t(s(Nt))
|
|
212
|
-
]),
|
|
213
|
-
_: 1
|
|
214
|
-
})
|
|
215
|
-
]),
|
|
216
|
-
_: 1
|
|
217
|
-
}, 8, ["modelValue"]),
|
|
218
|
-
D.showButton ? (c(), L(O, {
|
|
219
|
-
key: 0,
|
|
220
|
-
id: "transparentBgButton",
|
|
221
|
-
onClick: s(Pt)
|
|
222
|
-
}, {
|
|
223
|
-
icon: o(() => [
|
|
224
|
-
t(xe, { name: "App" })
|
|
225
|
-
]),
|
|
226
|
-
default: o(() => [
|
|
227
|
-
A[4] || (A[4] = fe(" 生成APP "))
|
|
228
|
-
]),
|
|
229
|
-
_: 1,
|
|
230
|
-
__: [4]
|
|
231
|
-
}, 8, ["onClick"])) : H("", !0),
|
|
232
|
-
D.showButton && s(r) === "view" ? (c(), L(O, {
|
|
233
|
-
key: 1,
|
|
234
|
-
id: "transparentBgButton",
|
|
235
|
-
onClick: s(Dt)
|
|
236
|
-
}, {
|
|
237
|
-
icon: o(() => [
|
|
238
|
-
t(xe, { name: "write" })
|
|
239
|
-
]),
|
|
240
|
-
default: o(() => [
|
|
241
|
-
A[5] || (A[5] = fe(" 修改布局 "))
|
|
242
|
-
]),
|
|
243
|
-
_: 1,
|
|
244
|
-
__: [5]
|
|
245
|
-
}, 8, ["onClick"])) : H("", !0),
|
|
246
|
-
We(we.$slots, "default", {}, void 0, !0),
|
|
247
|
-
t(Ce, null, {
|
|
248
|
-
dropTitle: o(() => {
|
|
249
|
-
var ne;
|
|
250
|
-
return [
|
|
251
|
-
t(He, {
|
|
252
|
-
size: "35",
|
|
253
|
-
avatarUrl: (ne = s(K)) == null ? void 0 : ne.avatarUrl,
|
|
254
|
-
showCropper: !1,
|
|
255
|
-
banClick: !0
|
|
256
|
-
}, {
|
|
257
|
-
avatarDefault: o(() => {
|
|
258
|
-
var f;
|
|
259
|
-
return [
|
|
260
|
-
fe(Ae(((f = s(K)) == null ? void 0 : f.account) ?? "未知"), 1)
|
|
261
|
-
];
|
|
262
|
-
}),
|
|
263
|
-
_: 1
|
|
264
|
-
}, 8, ["avatarUrl"])
|
|
265
|
-
];
|
|
266
|
-
}),
|
|
267
|
-
dropMenu: o(() => [
|
|
268
|
-
C("div", Fa, [
|
|
269
|
-
t(S, {
|
|
270
|
-
emptyColor: !0,
|
|
271
|
-
class: "menu-button",
|
|
272
|
-
onClickTrigger: ge,
|
|
273
|
-
modelValue: "退出登录",
|
|
274
|
-
buttonType: ""
|
|
275
|
-
})
|
|
276
|
-
])
|
|
277
|
-
]),
|
|
278
|
-
_: 1
|
|
279
|
-
})
|
|
280
|
-
])
|
|
281
|
-
]),
|
|
282
|
-
_: 3,
|
|
283
|
-
__: [6]
|
|
284
|
-
}),
|
|
285
|
-
t(G, { class: "client-body" }, {
|
|
286
|
-
default: o(() => [
|
|
287
|
-
Y.value ? (c(), L(Z, {
|
|
288
|
-
key: 1,
|
|
289
|
-
class: "client-main"
|
|
290
|
-
}, {
|
|
291
|
-
default: o(() => [
|
|
292
|
-
t(W, { class: "client-aside" }, {
|
|
293
|
-
default: o(() => [
|
|
294
|
-
t(lt, { mode: "vertical" })
|
|
295
|
-
]),
|
|
296
|
-
_: 1
|
|
297
|
-
}),
|
|
298
|
-
C("div", Aa, [
|
|
299
|
-
t(be)
|
|
300
|
-
])
|
|
301
|
-
]),
|
|
302
|
-
_: 1
|
|
303
|
-
})) : (c(), L(Z, {
|
|
304
|
-
key: 0,
|
|
305
|
-
class: "client-main"
|
|
306
|
-
}, {
|
|
307
|
-
default: o(() => {
|
|
308
|
-
var ne;
|
|
309
|
-
return [
|
|
310
|
-
t(W, { class: "client-aside" }, {
|
|
311
|
-
default: o(() => [
|
|
312
|
-
t(lt, { mode: "vertical" })
|
|
313
|
-
]),
|
|
314
|
-
_: 1
|
|
315
|
-
}),
|
|
316
|
-
C("div", Sa, [
|
|
317
|
-
s(ce) !== "" ? (c(), L(S, {
|
|
318
|
-
key: 0,
|
|
319
|
-
class: "calculator-content back-content",
|
|
320
|
-
onClickTrigger: ve,
|
|
321
|
-
modelValue: "返回"
|
|
322
|
-
})) : H("", !0),
|
|
323
|
-
(c(!0), N(ot, null, ht((ne = s(et)(s(se))) == null ? void 0 : ne.filter((f) => f.comp !== "FormTop"), (f, je) => {
|
|
324
|
-
var Le;
|
|
325
|
-
return c(), N("div", {
|
|
326
|
-
class: "item-view-content",
|
|
327
|
-
key: je
|
|
328
|
-
}, [
|
|
329
|
-
((Le = f == null ? void 0 : f.comp) == null ? void 0 : Le.toUpperCase()) !== "TABLE" && f.name ? (c(), N("div", xa, Ae(f.name), 1)) : H("", !0),
|
|
330
|
-
(c(), L(St(s(jt)(f.comp)), {
|
|
331
|
-
compName: f.name,
|
|
332
|
-
itemData: f == null ? void 0 : f.compData,
|
|
333
|
-
childItemData: f == null ? void 0 : f.itemChildData,
|
|
334
|
-
key: (f == null ? void 0 : f.id) ?? je,
|
|
335
|
-
onChange: s(Lt),
|
|
336
|
-
index: (f == null ? void 0 : f.id) ?? je,
|
|
337
|
-
onContentChange: s(Mt),
|
|
338
|
-
onPageChange: s($t)
|
|
339
|
-
}, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
340
|
-
]);
|
|
341
|
-
}), 128))
|
|
342
|
-
])
|
|
343
|
-
];
|
|
344
|
-
}),
|
|
345
|
-
_: 1
|
|
346
|
-
}))
|
|
347
|
-
]),
|
|
348
|
-
_: 1
|
|
349
|
-
})
|
|
350
|
-
]),
|
|
351
|
-
_: 3
|
|
352
|
-
})), [
|
|
353
|
-
[Q, s(ue)]
|
|
354
|
-
]);
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
}), Pa = /* @__PURE__ */ qe(Ua, [["__scopeId", "data-v-96b95789"]]), g = [
|
|
358
|
-
{
|
|
359
|
-
key: "FitCurve_Eleven",
|
|
360
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",
|
|
361
|
-
resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35326658522693",
|
|
362
|
-
download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources"
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
key: "MakeShape",
|
|
366
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018179530309",
|
|
367
|
-
resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018179530309",
|
|
368
|
-
download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
key: "FillEmpty",
|
|
372
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018289382469",
|
|
373
|
-
resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018289382469",
|
|
374
|
-
download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources"
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
key: "ToolPathFakeFast",
|
|
378
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35484063607109",
|
|
379
|
-
resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35484063607109",
|
|
380
|
-
download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
key: "FiveAxisCalculator",
|
|
384
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35237389477957",
|
|
385
|
-
resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35237389477957",
|
|
386
|
-
download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
key: "DetectionAlgorithm",
|
|
390
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35459977498949",
|
|
391
|
-
resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35459977498949",
|
|
392
|
-
download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
key: "FeatureSelectionAlgorithm_FFS",
|
|
396
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35277984187973",
|
|
397
|
-
resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35277984187973",
|
|
398
|
-
download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
key: "AIParameterOptimization",
|
|
402
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35788169784389",
|
|
403
|
-
resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35788169784389"
|
|
404
|
-
}
|
|
405
|
-
], Ge = [
|
|
406
|
-
{
|
|
407
|
-
key: "型线生成",
|
|
408
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
key: "曲面生成",
|
|
412
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
key: "叶片生成",
|
|
416
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
key: "轨迹规划",
|
|
420
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
key: "加工规划",
|
|
424
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
key: "产品检测",
|
|
428
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/source.pcd,http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/target.pcd"
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
key: "参数筛选训练方法",
|
|
432
|
-
value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
|
|
433
|
-
}
|
|
434
|
-
// {
|
|
435
|
-
// key: "参数筛选推理",
|
|
436
|
-
// value: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"
|
|
437
|
-
// }
|
|
438
|
-
], Da = ["src"], ja = { class: "structure-buttons" }, $a = { class: "structure-paths" }, Ma = { class: "client-header-user" }, La = { class: "model-select" }, Ea = { class: "model-show" }, Va = { class: "model-fill" }, Na = { class: "client-header-logo" }, Oa = { class: "client-header-menu" }, za = { class: "client-header-user" }, Ja = { class: "drop-menu" }, Ia = { class: "client-main-content" }, Ka = {
|
|
439
|
-
key: 0,
|
|
440
|
-
class: "item-view-group"
|
|
441
|
-
}, Ga = {
|
|
442
|
-
key: 0,
|
|
443
|
-
class: "calculator"
|
|
444
|
-
}, Wa = {
|
|
445
|
-
key: 1,
|
|
446
|
-
class: "calculator"
|
|
447
|
-
}, qa = {
|
|
448
|
-
key: 2,
|
|
449
|
-
class: "calculator"
|
|
450
|
-
}, Ha = {
|
|
451
|
-
key: 3,
|
|
452
|
-
class: "calculator"
|
|
453
|
-
}, Qa = { class: "router-aside" }, Xa = { class: "router-main" }, Ya = /* @__PURE__ */ Rt({
|
|
454
|
-
__name: "index",
|
|
455
|
-
props: {
|
|
456
|
-
windowConfig: {
|
|
457
|
-
type: Object,
|
|
458
|
-
default: () => {
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
showButton: {
|
|
462
|
-
type: Boolean,
|
|
463
|
-
default: !0
|
|
464
|
-
}
|
|
465
|
-
},
|
|
466
|
-
emits: ["buildContent"],
|
|
467
|
-
setup(D, { emit: Ue }) {
|
|
468
|
-
const l = _t(Be), I = _(0), K = _(!1), { selectTitle: re } = ke(l), r = _(!1), ce = _(!1), X = _(!1), ue = la(Be), de = _(!1), { tableShowThree: j } = ke(ue), Y = Et(), { loginUserInfo: ge } = ke(Y), ve = _(null), we = it(Be), { isEdit: A } = ke(we), O = st(Be), Oe = ra(Be), { objUrl: De, blobUrls: G } = ke(Oe), pe = _(null), Me = _(!1), He = _(!0), S = _(!1), { importLoading: Ce, activeMenuPath: W, activeTopMenuPath: Z, platName: be } = ke(O), Q = _(!1), ne = _(!1), f = _(!1);
|
|
469
|
-
_e(() => W.value, async (n) => {
|
|
470
|
-
n && (f.value = !0), n === "弯管仿真加工管理/仿真动画生成" ? Q.value = !0 : Q.value = !1, n === "弯管仿真加工管理/程序输出" ? ne.value = !0 : ne.value = !1, Ge != null && Ge.find((e) => {
|
|
471
|
-
var m;
|
|
472
|
-
return (e == null ? void 0 : e.key) === ((m = n == null ? void 0 : n.split("/")) == null ? void 0 : m[(n == null ? void 0 : n.split("/").length) - 1]);
|
|
473
|
-
}) ? de.value = !0 : de.value = !1;
|
|
474
|
-
}, { immediate: !0 });
|
|
475
|
-
const je = () => {
|
|
476
|
-
pe.value.startRunningAnimation();
|
|
477
|
-
}, Le = () => {
|
|
478
|
-
sessionStorage.clear(), window.location.reload();
|
|
479
|
-
}, rt = async () => {
|
|
480
|
-
var a, k, T;
|
|
481
|
-
let n = "";
|
|
482
|
-
(a = se.value) == null || a.forEach((u, x) => {
|
|
483
|
-
var E, U, ee;
|
|
484
|
-
x === se.value.length - 1 && (n = (ee = (U = (E = u.compData) == null ? void 0 : E[0]) == null ? void 0 : U.contents) == null ? void 0 : ee[0].value);
|
|
485
|
-
});
|
|
486
|
-
const e = await J.get(n, {
|
|
487
|
-
responseType: "blob",
|
|
488
|
-
headers: {
|
|
489
|
-
"Content-Type": "application/json"
|
|
490
|
-
}
|
|
491
|
-
}), m = new Blob([e.data], {
|
|
492
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
493
|
-
});
|
|
494
|
-
let v = "";
|
|
495
|
-
(T = (k = e.config.url) == null ? void 0 : k.split("/")) == null || T.forEach((u, x) => {
|
|
496
|
-
var E, U;
|
|
497
|
-
((U = (E = e.config.url) == null ? void 0 : E.split("/")) == null ? void 0 : U.length) - 1 === x && (v = u);
|
|
498
|
-
});
|
|
499
|
-
var i = document.createElement("a"), p = window.URL.createObjectURL(m);
|
|
500
|
-
i.style.display = "none", i.href = p, i.download = decodeURI(v), document.body.appendChild(i), i.click(), document.body.removeChild(i), window.URL.revokeObjectURL(p);
|
|
501
|
-
}, Jt = async () => {
|
|
502
|
-
var v;
|
|
503
|
-
let n = "";
|
|
504
|
-
(v = se.value) == null || v.forEach((i, p) => {
|
|
505
|
-
var a, k, T;
|
|
506
|
-
p === se.value.length - 1 && (n = (T = (k = (a = i.compData) == null ? void 0 : a[0]) == null ? void 0 : k.contents) == null ? void 0 : T[0].value);
|
|
507
|
-
});
|
|
508
|
-
const e = await J.get(n, {
|
|
509
|
-
responseType: "blob",
|
|
510
|
-
headers: {
|
|
511
|
-
"Content-Type": "application/json"
|
|
512
|
-
}
|
|
513
|
-
}), m = new Blob([e.data], {
|
|
514
|
-
type: "text/plain"
|
|
515
|
-
});
|
|
516
|
-
ve.value && URL.revokeObjectURL(ve.value), ve.value = URL.createObjectURL(m), Me.value = !0;
|
|
517
|
-
}, It = async () => {
|
|
518
|
-
var p, a, k, T, u;
|
|
519
|
-
S.value = !0;
|
|
520
|
-
const n = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken");
|
|
521
|
-
let e = ((k = (a = (p = Ge == null ? void 0 : Ge.find((x) => {
|
|
522
|
-
var E, U, ee;
|
|
523
|
-
return (x == null ? void 0 : x.key) === ((ee = (E = W.value) == null ? void 0 : E.split("/")) == null ? void 0 : ee[((U = W.value) == null ? void 0 : U.split("/").length) - 1]);
|
|
524
|
-
})) == null ? void 0 : p.value) == null ? void 0 : a.split(",")) == null ? void 0 : k[0]) ?? "";
|
|
525
|
-
const m = await J.post(e, null, {
|
|
526
|
-
responseType: "blob",
|
|
527
|
-
// 必须设置
|
|
528
|
-
headers: {
|
|
529
|
-
Authorization: n,
|
|
530
|
-
"Content-Type": "application/json"
|
|
531
|
-
}
|
|
532
|
-
}), v = new Blob([m.data], {
|
|
533
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
534
|
-
});
|
|
535
|
-
let i = {
|
|
536
|
-
suffix: "." + ((u = e == null ? void 0 : e.split(".")) == null ? void 0 : u[((T = e == null ? void 0 : e.split(".")) == null ? void 0 : T.length) - 1]),
|
|
537
|
-
blob: v,
|
|
538
|
-
mtlBlobs: []
|
|
539
|
-
};
|
|
540
|
-
S.value = !1, pe.value.loadModelByDefaultPath([i]);
|
|
541
|
-
}, Kt = async (n) => {
|
|
542
|
-
var v, i, p, a, k, T, u;
|
|
543
|
-
const e = (v = n == null ? void 0 : n.split("/")) == null ? void 0 : v[0], m = await na({
|
|
544
|
-
key: {
|
|
545
|
-
type: "mainEquip",
|
|
546
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
547
|
-
pageKey: e
|
|
548
|
-
}
|
|
549
|
-
});
|
|
550
|
-
return ((i = m == null ? void 0 : m.data) == null ? void 0 : i.type) === "success" ? ((u = (T = (k = (a = (p = m == null ? void 0 : m.data) == null ? void 0 : p.result) == null ? void 0 : a[0]) == null ? void 0 : k.value) == null ? void 0 : T.tableData) == null ? void 0 : u.隐藏三维显示) !== !0 : !0;
|
|
551
|
-
};
|
|
552
|
-
_e(
|
|
553
|
-
() => se.value,
|
|
554
|
-
() => {
|
|
555
|
-
var n, e, m, v, i;
|
|
556
|
-
if (((n = se.value) == null ? void 0 : n.length) === 2 && ((e = se.value) != null && e.find((p) => (p == null ? void 0 : p.name) === "输入")) && ((m = se.value) != null && m.find((p) => (p == null ? void 0 : p.name) === "输出"))) {
|
|
557
|
-
const p = (v = se.value) == null ? void 0 : v.find((a) => (a == null ? void 0 : a.name) === "输出");
|
|
558
|
-
ce.value = ((i = p == null ? void 0 : p.comp) == null ? void 0 : i.toUpperCase()) === "FORM", r.value = !0;
|
|
559
|
-
} else
|
|
560
|
-
r.value = !1, ce.value = !1;
|
|
561
|
-
},
|
|
562
|
-
{ deep: !0, immediate: !0 }
|
|
563
|
-
), _e(
|
|
564
|
-
() => W.value,
|
|
565
|
-
async () => {
|
|
566
|
-
W.value && (He.value = await Kt(W.value));
|
|
567
|
-
},
|
|
568
|
-
{ deep: !0, immediate: !0 }
|
|
569
|
-
), _e(
|
|
570
|
-
() => [De.value, pe.value],
|
|
571
|
-
() => {
|
|
572
|
-
var n;
|
|
573
|
-
((n = De.value) == null ? void 0 : n.length) > 0 && pe.value && pe.value.addModelsFromUrls(De.value);
|
|
574
|
-
},
|
|
575
|
-
{ immediate: !0, deep: !0 }
|
|
576
|
-
), _e(
|
|
577
|
-
() => G == null ? void 0 : G.value,
|
|
578
|
-
async () => {
|
|
579
|
-
var n, e, m, v;
|
|
580
|
-
if (G != null && G.value && ((n = G == null ? void 0 : G.value) == null ? void 0 : n.length) > 0 && !de.value && !((e = se.value) != null && e.find((i) => (i == null ? void 0 : i.name) === "输入") && ((m = se.value) != null && m.find((i) => (i == null ? void 0 : i.name) === "输出")))) {
|
|
581
|
-
let i = [];
|
|
582
|
-
const p = await ((v = et(G == null ? void 0 : G.value)) == null ? void 0 : v.map(async (a) => {
|
|
583
|
-
var E, U, ee, Re, Fe, P, d, me, he, Se;
|
|
584
|
-
let k, T;
|
|
585
|
-
const u = (U = (E = a == null ? void 0 : a.blob) == null ? void 0 : E.split("undefined,")) == null ? void 0 : U[1];
|
|
586
|
-
let x = u == null ? void 0 : u.split(",");
|
|
587
|
-
if ((x == null ? void 0 : x.length) > 1) {
|
|
588
|
-
let ye = await (x == null ? void 0 : x.map(async ($) => {
|
|
589
|
-
var R, Qe, Te, te, y, ie;
|
|
590
|
-
k = await J.get($, {
|
|
591
|
-
responseType: "blob",
|
|
592
|
-
headers: {
|
|
593
|
-
"Content-Type": "application/json"
|
|
594
|
-
}
|
|
595
|
-
});
|
|
596
|
-
let z = [];
|
|
597
|
-
if (((R = a == null ? void 0 : a.mtlBlobs) == null ? void 0 : R.length) > 0) {
|
|
598
|
-
let ze = await ((Qe = a == null ? void 0 : a.mtlBlobs) == null ? void 0 : Qe.map(async (M) => {
|
|
599
|
-
let $e = await J.get(M, {
|
|
600
|
-
responseType: "blob",
|
|
601
|
-
headers: {
|
|
602
|
-
"Content-Type": "application/json"
|
|
603
|
-
}
|
|
604
|
-
});
|
|
605
|
-
return z.push(new Blob([$e.data], {
|
|
606
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
607
|
-
})), $e;
|
|
608
|
-
}));
|
|
609
|
-
await Promise.all(ze);
|
|
610
|
-
}
|
|
611
|
-
return ((te = $ == null ? void 0 : $.split(".")) == null ? void 0 : te[((Te = $ == null ? void 0 : $.split(".")) == null ? void 0 : Te.length) - 1]) !== "undefined" && i.push({
|
|
612
|
-
suffix: "." + ((ie = $ == null ? void 0 : $.split(".")) == null ? void 0 : ie[((y = $ == null ? void 0 : $.split(".")) == null ? void 0 : y.length) - 1]),
|
|
613
|
-
blob: new Blob([k.data], {
|
|
614
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
615
|
-
}),
|
|
616
|
-
mtlBlobs: z
|
|
617
|
-
}), k;
|
|
618
|
-
}));
|
|
619
|
-
await Promise.all(ye);
|
|
620
|
-
} else if (!(u != null && u.includes("https://")) && !(u != null && u.includes("http://"))) {
|
|
621
|
-
k = await kt({
|
|
622
|
-
url: u
|
|
623
|
-
});
|
|
624
|
-
let ye = [];
|
|
625
|
-
if (((ee = a == null ? void 0 : a.mtlBlobs) == null ? void 0 : ee.length) > 0) {
|
|
626
|
-
let $ = await ((Re = a == null ? void 0 : a.mtlBlobs) == null ? void 0 : Re.map(async (z) => {
|
|
627
|
-
let R = await kt({
|
|
628
|
-
url: z
|
|
629
|
-
});
|
|
630
|
-
return ye.push(new Blob([R.data], {
|
|
631
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
632
|
-
})), R;
|
|
633
|
-
}));
|
|
634
|
-
await Promise.all($);
|
|
635
|
-
}
|
|
636
|
-
T = {
|
|
637
|
-
suffix: "." + ((P = u == null ? void 0 : u.split(".")) == null ? void 0 : P[((Fe = u == null ? void 0 : u.split(".")) == null ? void 0 : Fe.length) - 1]),
|
|
638
|
-
blob: new Blob([k.data], {
|
|
639
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
640
|
-
}),
|
|
641
|
-
mtlBlobs: ye
|
|
642
|
-
};
|
|
643
|
-
} else {
|
|
644
|
-
k = await J.get(u, {
|
|
645
|
-
responseType: "blob",
|
|
646
|
-
headers: {
|
|
647
|
-
"Content-Type": "application/json"
|
|
648
|
-
}
|
|
649
|
-
});
|
|
650
|
-
let ye = [];
|
|
651
|
-
if (((d = a == null ? void 0 : a.mtlBlobs) == null ? void 0 : d.length) > 0) {
|
|
652
|
-
let $ = await ((me = a == null ? void 0 : a.mtlBlobs) == null ? void 0 : me.map(async (z) => {
|
|
653
|
-
let R = await J.get(z, {
|
|
654
|
-
responseType: "blob",
|
|
655
|
-
headers: {
|
|
656
|
-
"Content-Type": "application/json"
|
|
657
|
-
}
|
|
658
|
-
});
|
|
659
|
-
return ye.push(new Blob([R.data], {
|
|
660
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
661
|
-
})), R;
|
|
662
|
-
}));
|
|
663
|
-
await Promise.all($);
|
|
664
|
-
}
|
|
665
|
-
T = {
|
|
666
|
-
suffix: "." + ((Se = u == null ? void 0 : u.split(".")) == null ? void 0 : Se[((he = u == null ? void 0 : u.split(".")) == null ? void 0 : he.length) - 1]),
|
|
667
|
-
blob: new Blob([k.data], {
|
|
668
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
669
|
-
}),
|
|
670
|
-
mtlBlobs: ye
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
|
-
T && i.push(T);
|
|
674
|
-
}));
|
|
675
|
-
await Promise.all(p), (i == null ? void 0 : i.length) !== 0 && pe.value.loadModelByDefaultPath(i);
|
|
676
|
-
}
|
|
677
|
-
},
|
|
678
|
-
{ immediate: !0, deep: !0 }
|
|
679
|
-
), _e(
|
|
680
|
-
() => j.value,
|
|
681
|
-
async () => {
|
|
682
|
-
var e, m, v, i;
|
|
683
|
-
if (j.value !== "" && j.value) {
|
|
684
|
-
let p = (e = W.value) == null ? void 0 : e.split("/"), a = p[(p == null ? void 0 : p.length) - 2];
|
|
685
|
-
const T = (((m = g == null ? void 0 : g.find((U) => (U == null ? void 0 : U.key) === a)) == null ? void 0 : m.download) ?? "") + "/" + j.value, u = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), x = await J.post(T, null, {
|
|
686
|
-
responseType: "blob",
|
|
687
|
-
// 必须设置
|
|
688
|
-
headers: {
|
|
689
|
-
Authorization: u,
|
|
690
|
-
baseURL: "http://139.196.154.85:20025",
|
|
691
|
-
"Content-Type": "application/json"
|
|
692
|
-
}
|
|
693
|
-
});
|
|
694
|
-
var n = new Blob([x.data], {
|
|
695
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
696
|
-
});
|
|
697
|
-
const E = [
|
|
698
|
-
{
|
|
699
|
-
suffix: "." + ((i = (v = j.value) == null ? void 0 : v.split(".")) == null ? void 0 : i[1]),
|
|
700
|
-
blob: n,
|
|
701
|
-
mtlBlobs: []
|
|
702
|
-
}
|
|
703
|
-
];
|
|
704
|
-
pe.value.loadModelByDefaultPath(E);
|
|
705
|
-
}
|
|
706
|
-
},
|
|
707
|
-
{ deep: !0, immediate: !0 }
|
|
708
|
-
);
|
|
709
|
-
const Gt = async () => {
|
|
710
|
-
var k, T, u, x, E, U, ee, Re, Fe, P, d, me, he, Se, ye, $, z;
|
|
711
|
-
K.value = !0;
|
|
712
|
-
let n = (k = W.value) == null ? void 0 : k.split("/"), e = n[(n == null ? void 0 : n.length) - 2];
|
|
713
|
-
const m = ((T = g == null ? void 0 : g.find((R) => (R == null ? void 0 : R.key) === e)) == null ? void 0 : T.value) ?? "";
|
|
714
|
-
let v = "";
|
|
715
|
-
const i = await J.post("http://139.196.154.85:20024/api/sysAuth/login", {
|
|
716
|
-
account: "superadmin",
|
|
717
|
-
password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
|
|
718
|
-
codeId: 0,
|
|
719
|
-
code: ""
|
|
720
|
-
});
|
|
721
|
-
((u = i == null ? void 0 : i.data) == null ? void 0 : u.code) === 200 && (v = `Bearer ${(E = (x = i.data) == null ? void 0 : x.result) == null ? void 0 : E.accessToken}`, sessionStorage.setItem("magicToken", v));
|
|
722
|
-
const p = v === "" ? "123456" : v, a = await J.post(m, null, {
|
|
723
|
-
headers: {
|
|
724
|
-
Authorization: p,
|
|
725
|
-
baseURL: "http://139.196.154.85:20025",
|
|
726
|
-
"Content-Type": "multipart/form-data"
|
|
727
|
-
}
|
|
728
|
-
});
|
|
729
|
-
if (((U = a == null ? void 0 : a.data) == null ? void 0 : U.type) === "success" && bt((Re = (ee = a == null ? void 0 : a.data) == null ? void 0 : ee.result) == null ? void 0 : Re.result)) {
|
|
730
|
-
const R = (he = (me = (d = JSON.parse((P = (Fe = a == null ? void 0 : a.data) == null ? void 0 : Fe.result) == null ? void 0 : P.result)) == null ? void 0 : d.lines_file_paths) == null ? void 0 : me[0]) == null ? void 0 : he.split("\\"), Te = (((Se = g == null ? void 0 : g.find((y) => (y == null ? void 0 : y.key) === e)) == null ? void 0 : Se.resources) ?? "") + "/" + (((R == null ? void 0 : R[(R == null ? void 0 : R.length) - 2]) === "inputResources" ? "outputResources" : R == null ? void 0 : R[(R == null ? void 0 : R.length) - 2]) ?? "outputResources"), te = await J.post(Te, null, {
|
|
731
|
-
headers: {
|
|
732
|
-
Authorization: p,
|
|
733
|
-
baseURL: "http://139.196.154.85:20025",
|
|
734
|
-
"Content-Type": "multipart/form-data"
|
|
735
|
-
}
|
|
736
|
-
});
|
|
737
|
-
if (((ye = te == null ? void 0 : te.data) == null ? void 0 : ye.type) === "success") {
|
|
738
|
-
const y = ($ = te == null ? void 0 : te.data) == null ? void 0 : $.result, ie = se.value, ze = await ((z = et(ie)) == null ? void 0 : z.map(async (M) => {
|
|
739
|
-
var $e, Xe, Ye, ae, B, Pe;
|
|
740
|
-
if ((M == null ? void 0 : M.name) === "输出") {
|
|
741
|
-
if ((M == null ? void 0 : M.comp) === "Table")
|
|
742
|
-
M.compData = ($e = M == null ? void 0 : M.compData) == null ? void 0 : $e.map((h) => {
|
|
743
|
-
var F, le;
|
|
744
|
-
return (h == null ? void 0 : h.key) === "tableContents" && (h.contents = (le = (F = h == null ? void 0 : h.contents) == null ? void 0 : F.map((V) => (V = V == null ? void 0 : V.map((w, oe) => {
|
|
745
|
-
var q, Ee, Je;
|
|
746
|
-
return typeof w == "string" && oe > 1 ? ((q = h == null ? void 0 : h.contents) == null ? void 0 : q.length) > 1 ? w = ((Ee = y == null ? void 0 : y[oe - 1]) != null && Ee.includes("input") ? w : y == null ? void 0 : y[oe - 1]) ?? w : w = y == null ? void 0 : y[0] : w = ((Je = y == null ? void 0 : y[oe - 1]) != null && Je.includes("input") ? w : y == null ? void 0 : y[oe - 1]) ?? w, w;
|
|
747
|
-
}), V))) == null ? void 0 : le.filter((V, w) => w <= (y == null ? void 0 : y.length) - 1)), h;
|
|
748
|
-
});
|
|
749
|
-
else if ((M == null ? void 0 : M.comp) === "Form") {
|
|
750
|
-
let h = "";
|
|
751
|
-
if (y == null || y.forEach((F) => {
|
|
752
|
-
h = h === "" ? h + F : h + "," + F;
|
|
753
|
-
}), M.compData = (Xe = M == null ? void 0 : M.compData) == null ? void 0 : Xe.map((F) => {
|
|
754
|
-
var le;
|
|
755
|
-
return (F == null ? void 0 : F.key) === "formContent" && (F.contents = (le = F.contents) == null ? void 0 : le.map((V) => (V.value = h, V))), F;
|
|
756
|
-
}), (Ye = h == null ? void 0 : h.split(",")) != null && Ye.find((F) => F.includes(".obj"))) {
|
|
757
|
-
let F = {};
|
|
758
|
-
F.suffix = ".obj";
|
|
759
|
-
const le = [];
|
|
760
|
-
let V = await ((B = (ae = h == null ? void 0 : h.split(",")) == null ? void 0 : ae.filter((w) => w.includes(".obj") || w.includes(".mtl"))) == null ? void 0 : B.map(async (w) => {
|
|
761
|
-
var q, Ee;
|
|
762
|
-
if (w.includes(".obj")) {
|
|
763
|
-
const Ze = (((q = g == null ? void 0 : g.find((Ve) => (Ve == null ? void 0 : Ve.key) === e)) == null ? void 0 : q.download) ?? "") + "/" + w, Ie = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Ke = await J.post(Ze, null, {
|
|
764
|
-
responseType: "blob",
|
|
765
|
-
// 必须设置
|
|
766
|
-
headers: {
|
|
767
|
-
Authorization: Ie,
|
|
768
|
-
baseURL: "http://139.196.154.85:20025",
|
|
769
|
-
"Content-Type": "application/json"
|
|
770
|
-
}
|
|
771
|
-
});
|
|
772
|
-
var oe = new Blob([Ke.data], {
|
|
773
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
774
|
-
});
|
|
775
|
-
F.blob = oe;
|
|
776
|
-
} else if (w.includes(".mtl")) {
|
|
777
|
-
const Ze = (((Ee = g == null ? void 0 : g.find((pt) => (pt == null ? void 0 : pt.key) === e)) == null ? void 0 : Ee.download) ?? "") + "/" + w, Ie = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Ke = await J.post(Ze, null, {
|
|
778
|
-
responseType: "blob",
|
|
779
|
-
// 必须设置
|
|
780
|
-
headers: {
|
|
781
|
-
Authorization: Ie,
|
|
782
|
-
baseURL: "http://139.196.154.85:20025",
|
|
783
|
-
"Content-Type": "application/json"
|
|
784
|
-
}
|
|
785
|
-
});
|
|
786
|
-
var oe = new Blob([Ke.data], {
|
|
787
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
788
|
-
});
|
|
789
|
-
le.push(oe);
|
|
790
|
-
}
|
|
791
|
-
}));
|
|
792
|
-
await Promise.all(V), F.mtlBlobs = le, pe.value.loadModelByDefaultPath([F]);
|
|
793
|
-
} else {
|
|
794
|
-
const F = [];
|
|
795
|
-
let le = await ((Pe = h == null ? void 0 : h.split(",")) == null ? void 0 : Pe.map(async (V) => {
|
|
796
|
-
var Ie, Ke;
|
|
797
|
-
let w = {};
|
|
798
|
-
w.suffix = "." + ((Ie = V == null ? void 0 : V.split(".")) == null ? void 0 : Ie[1]);
|
|
799
|
-
const q = (((Ke = g == null ? void 0 : g.find((Ve) => (Ve == null ? void 0 : Ve.key) === e)) == null ? void 0 : Ke.download) ?? "") + "/" + V, Ee = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Je = await J.post(q, null, {
|
|
800
|
-
responseType: "blob",
|
|
801
|
-
// 必须设置
|
|
802
|
-
headers: {
|
|
803
|
-
Authorization: Ee,
|
|
804
|
-
baseURL: "http://139.196.154.85:20025",
|
|
805
|
-
"Content-Type": "application/json"
|
|
806
|
-
}
|
|
807
|
-
});
|
|
808
|
-
var Ze = new Blob([Je.data], {
|
|
809
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
810
|
-
});
|
|
811
|
-
w.blob = Ze, F.push(w);
|
|
812
|
-
}));
|
|
813
|
-
await Promise.all(le), pe.value.loadModelByDefaultPath(F);
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
return M;
|
|
818
|
-
}));
|
|
819
|
-
se.value = await Promise.all(ze);
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
I.value++, K.value = !1;
|
|
823
|
-
}, vt = _(""), ct = _("open"), ut = _("open"), tt = _(!1), Wt = (n) => {
|
|
824
|
-
const e = document.getElementById("menuCollapse");
|
|
825
|
-
n === "open" ? (e.style.width = "13rem", e.style.height = "96%", e.style.overflow = "auto") : (e.style.width = "50px", e.style.minWidth = "50px", e.style.height = "50px", e.style.overflow = "hidden");
|
|
826
|
-
}, qt = (n) => {
|
|
827
|
-
const e = document.getElementById("operateCollapse");
|
|
828
|
-
n === "open" ? (e.style.width = "25rem", e.style.height = "96%", e.style.overflow = "auto") : (e.style.width = "50px", e.style.height = "50px", e.style.overflow = "hidden");
|
|
829
|
-
}, Ht = () => {
|
|
830
|
-
tt.value = !tt.value;
|
|
831
|
-
const n = document.getElementById("operateCollapse"), e = document.getElementById("menuCollapse");
|
|
832
|
-
tt.value ? (e.style.width = "13rem", n.style.width = "calc(100% - 18rem)") : n.style.width = "400px";
|
|
833
|
-
}, dt = (n) => {
|
|
834
|
-
const e = URL.createObjectURL(n), m = document.createElement("a");
|
|
835
|
-
m.href = e, m.download = "file.txt", document.body.appendChild(m), m.click(), document.body.removeChild(m), URL.revokeObjectURL(e), X.value = !1;
|
|
836
|
-
}, Qt = async () => {
|
|
837
|
-
var k, T, u, x, E, U, ee, Re, Fe, P, d, me, he, Se, ye, $;
|
|
838
|
-
X.value = !0;
|
|
839
|
-
let n = (k = W.value) == null ? void 0 : k.split("/"), e = n[(n == null ? void 0 : n.length) - 2];
|
|
840
|
-
const m = ((T = g == null ? void 0 : g.find((z) => (z == null ? void 0 : z.key) === e)) == null ? void 0 : T.value) ?? "";
|
|
841
|
-
let v = "";
|
|
842
|
-
const i = await J.post("http://139.196.154.85:20024/api/sysAuth/login", {
|
|
843
|
-
account: "superadmin",
|
|
844
|
-
password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
|
|
845
|
-
codeId: 0,
|
|
846
|
-
code: ""
|
|
847
|
-
});
|
|
848
|
-
if (((u = i == null ? void 0 : i.data) == null ? void 0 : u.code) === 200)
|
|
849
|
-
v = `Bearer ${(E = (x = i.data) == null ? void 0 : x.result) == null ? void 0 : E.accessToken}`, sessionStorage.setItem("magicToken", v);
|
|
850
|
-
else
|
|
851
|
-
throw mt.error("响应出错了"), new Error("响应出错了");
|
|
852
|
-
const p = v === "" ? "123456" : v, a = await J.post(m, null, {
|
|
853
|
-
headers: {
|
|
854
|
-
Authorization: p,
|
|
855
|
-
baseURL: "http://139.196.154.85:20025",
|
|
856
|
-
"Content-Type": "multipart/form-data"
|
|
857
|
-
}
|
|
858
|
-
});
|
|
859
|
-
if (((U = a == null ? void 0 : a.data) == null ? void 0 : U.code) === 200) {
|
|
860
|
-
if (bt((Re = (ee = a == null ? void 0 : a.data) == null ? void 0 : ee.result) == null ? void 0 : Re.result)) {
|
|
861
|
-
const z = (he = (me = (d = JSON.parse((P = (Fe = a == null ? void 0 : a.data) == null ? void 0 : Fe.result) == null ? void 0 : P.result)) == null ? void 0 : d.lines_file_paths) == null ? void 0 : me[0]) == null ? void 0 : he.split("\\"), Qe = (((Se = g == null ? void 0 : g.find((te) => (te == null ? void 0 : te.key) === e)) == null ? void 0 : Se.resources) ?? "") + "/" + ((z == null ? void 0 : z[(z == null ? void 0 : z.length) - 2]) ?? "outputResources"), Te = await J.post(Qe, null, {
|
|
862
|
-
headers: {
|
|
863
|
-
Authorization: p,
|
|
864
|
-
baseURL: "http://139.196.154.85:20025",
|
|
865
|
-
"Content-Type": "multipart/form-data"
|
|
866
|
-
}
|
|
867
|
-
});
|
|
868
|
-
if (((ye = Te == null ? void 0 : Te.data) == null ? void 0 : ye.code) === 200) {
|
|
869
|
-
const te = ($ = Te == null ? void 0 : Te.data) == null ? void 0 : $.result, y = et(se.value);
|
|
870
|
-
y == null || y.map(async (ie) => {
|
|
871
|
-
var ze, M, $e, Xe, Ye;
|
|
872
|
-
if ((ie == null ? void 0 : ie.name) === "输出" && (ie == null ? void 0 : ie.comp) === "Form") {
|
|
873
|
-
let ae = "";
|
|
874
|
-
te == null || te.forEach((B) => {
|
|
875
|
-
ae = ae === "" ? ae + B : ae + "," + B;
|
|
876
|
-
}), ie.compData = (ze = ie == null ? void 0 : ie.compData) == null ? void 0 : ze.map((B) => {
|
|
877
|
-
var Pe;
|
|
878
|
-
return (B == null ? void 0 : B.key) === "formContent" && (B.contents = (Pe = B.contents) == null ? void 0 : Pe.map((h) => (h.value = ae, h))), B;
|
|
879
|
-
}), (M = ae == null ? void 0 : ae.split(",")) != null && M.find((B) => B.includes(".obj")) ? (Xe = ($e = ae == null ? void 0 : ae.split(",")) == null ? void 0 : $e.filter((B) => B.includes(".obj") || B.includes(".mtl"))) == null || Xe.map(async (B) => {
|
|
880
|
-
var Pe, h;
|
|
881
|
-
if (B.includes(".obj")) {
|
|
882
|
-
const le = (((Pe = g == null ? void 0 : g.find((q) => (q == null ? void 0 : q.key) === e)) == null ? void 0 : Pe.download) ?? "") + "/" + B, V = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), w = await J.post(le, null, {
|
|
883
|
-
responseType: "blob",
|
|
884
|
-
// 必须设置
|
|
885
|
-
headers: {
|
|
886
|
-
Authorization: V,
|
|
887
|
-
baseURL: "http://139.196.154.85:20025",
|
|
888
|
-
"Content-Type": "application/json"
|
|
889
|
-
}
|
|
890
|
-
});
|
|
891
|
-
let oe = new Blob([w.data], {
|
|
892
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
893
|
-
});
|
|
894
|
-
dt(oe);
|
|
895
|
-
} else if (B.includes(".mtl")) {
|
|
896
|
-
const le = (((h = g == null ? void 0 : g.find((q) => (q == null ? void 0 : q.key) === e)) == null ? void 0 : h.download) ?? "") + "/" + B, V = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), w = await J.post(le, null, {
|
|
897
|
-
responseType: "blob",
|
|
898
|
-
// 必须设置
|
|
899
|
-
headers: {
|
|
900
|
-
Authorization: V,
|
|
901
|
-
baseURL: "http://139.196.154.85:20025",
|
|
902
|
-
"Content-Type": "application/json"
|
|
903
|
-
}
|
|
904
|
-
});
|
|
905
|
-
let oe = new Blob([w.data], {
|
|
906
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
907
|
-
});
|
|
908
|
-
dt(oe);
|
|
909
|
-
}
|
|
910
|
-
}) : (Ye = ae == null ? void 0 : ae.split(",")) == null || Ye.map(async (B) => {
|
|
911
|
-
var w, oe;
|
|
912
|
-
"" + ((w = B == null ? void 0 : B.split(".")) == null ? void 0 : w[1]);
|
|
913
|
-
const h = (((oe = g == null ? void 0 : g.find((q) => (q == null ? void 0 : q.key) === e)) == null ? void 0 : oe.download) ?? "") + "/" + B, F = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), le = await J.post(h, null, {
|
|
914
|
-
responseType: "blob",
|
|
915
|
-
// 必须设置
|
|
916
|
-
headers: {
|
|
917
|
-
Authorization: F,
|
|
918
|
-
baseURL: "http://139.196.154.85:20025",
|
|
919
|
-
"Content-Type": "application/json"
|
|
920
|
-
}
|
|
921
|
-
});
|
|
922
|
-
let V = new Blob([le.data], {
|
|
923
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
924
|
-
});
|
|
925
|
-
dt(V);
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
});
|
|
929
|
-
} else
|
|
930
|
-
throw mt.error("响应出错了"), new Error("响应出错了");
|
|
931
|
-
}
|
|
932
|
-
} else
|
|
933
|
-
throw mt.error("响应出错了"), new Error("响应出错了");
|
|
934
|
-
}, Xt = nt(() => se.value), wt = nt(() => Z.value === "系统管理" || Z.value === "平台管理");
|
|
935
|
-
return (n, e) => {
|
|
936
|
-
const m = b("el-button"), v = b("el-avatar"), i = b("el-header"), p = b("el-container"), a = b("el-icon"), k = b("el-input"), T = b("ss-avatar"), u = b("ss-drop"), x = b("el-aside"), E = b("el-collapse-item"), U = b("el-collapse"), ee = b("el-main"), Re = b("router-view"), Fe = Ft("loading");
|
|
937
|
-
return c(), N(ot, null, [
|
|
938
|
-
t(ia, {
|
|
939
|
-
visible: Me.value,
|
|
940
|
-
onBeforeDestroy: e[0] || (e[0] = (P) => Me.value = !1)
|
|
941
|
-
}, {
|
|
942
|
-
default: o(() => [
|
|
943
|
-
ve.value ? (c(), N("iframe", {
|
|
944
|
-
key: 0,
|
|
945
|
-
src: ve.value,
|
|
946
|
-
style: { width: "100%", height: "500px", border: "1px solid #ccc" }
|
|
947
|
-
}, null, 8, Da)) : H("", !0)
|
|
948
|
-
]),
|
|
949
|
-
_: 1
|
|
950
|
-
}, 8, ["visible"]),
|
|
951
|
-
s(A) === "edit" ? (c(), L(p, {
|
|
952
|
-
key: 0,
|
|
953
|
-
class: "client-container"
|
|
954
|
-
}, {
|
|
955
|
-
default: o(() => [
|
|
956
|
-
t(i, { class: "client-structure-header" }, {
|
|
957
|
-
default: o(() => {
|
|
958
|
-
var P;
|
|
959
|
-
return [
|
|
960
|
-
C("div", ja, [
|
|
961
|
-
t(m, {
|
|
962
|
-
id: "transparentBgButton",
|
|
963
|
-
onClick: s(xt)
|
|
964
|
-
}, {
|
|
965
|
-
default: o(() => e[6] || (e[6] = [
|
|
966
|
-
fe(" 返回页面 ")
|
|
967
|
-
])),
|
|
968
|
-
_: 1,
|
|
969
|
-
__: [6]
|
|
970
|
-
}, 8, ["onClick"]),
|
|
971
|
-
t(m, {
|
|
972
|
-
id: "transparentBgButton",
|
|
973
|
-
onClick: e[1] || (e[1] = (d) => {
|
|
974
|
-
var me, he;
|
|
975
|
-
return s(At)((he = (me = s(re)) == null ? void 0 : me.map((Se) => Se.value)) == null ? void 0 : he.join("/"));
|
|
976
|
-
})
|
|
977
|
-
}, {
|
|
978
|
-
icon: o(() => [
|
|
979
|
-
t(xe, { name: "Store" })
|
|
980
|
-
]),
|
|
981
|
-
default: o(() => [
|
|
982
|
-
e[7] || (e[7] = fe(" 保存页面 "))
|
|
983
|
-
]),
|
|
984
|
-
_: 1,
|
|
985
|
-
__: [7]
|
|
986
|
-
})
|
|
987
|
-
]),
|
|
988
|
-
C("div", $a, [
|
|
989
|
-
(c(), L(zt, {
|
|
990
|
-
key: s(re),
|
|
991
|
-
breadArray: s(re),
|
|
992
|
-
onClick: s(Ut)
|
|
993
|
-
}, null, 8, ["breadArray", "onClick"]))
|
|
994
|
-
]),
|
|
995
|
-
C("div", Ma, [
|
|
996
|
-
We(n.$slots, "default", {}, void 0, !0),
|
|
997
|
-
t(v, {
|
|
998
|
-
size: 35,
|
|
999
|
-
src: (P = s(ge)) == null ? void 0 : P.avatarUrl
|
|
1000
|
-
}, {
|
|
1001
|
-
default: o(() => {
|
|
1002
|
-
var d;
|
|
1003
|
-
return [
|
|
1004
|
-
fe(Ae(((d = s(ge)) == null ? void 0 : d.account) ?? "未知"), 1)
|
|
1005
|
-
];
|
|
1006
|
-
}),
|
|
1007
|
-
_: 1
|
|
1008
|
-
}, 8, ["src"])
|
|
1009
|
-
])
|
|
1010
|
-
];
|
|
1011
|
-
}),
|
|
1012
|
-
_: 3
|
|
1013
|
-
}),
|
|
1014
|
-
s(A) === "edit" ? (c(), L(p, {
|
|
1015
|
-
key: 0,
|
|
1016
|
-
class: "model-operate",
|
|
1017
|
-
style: { "margin-top": "10px", height: "0px" }
|
|
1018
|
-
}, {
|
|
1019
|
-
default: o(() => [
|
|
1020
|
-
C("div", La, [
|
|
1021
|
-
t(ft)
|
|
1022
|
-
]),
|
|
1023
|
-
C("div", Ea, [
|
|
1024
|
-
t(gt)
|
|
1025
|
-
]),
|
|
1026
|
-
C("div", Va, [
|
|
1027
|
-
t(yt)
|
|
1028
|
-
])
|
|
1029
|
-
]),
|
|
1030
|
-
_: 1
|
|
1031
|
-
})) : H("", !0)
|
|
1032
|
-
]),
|
|
1033
|
-
_: 3
|
|
1034
|
-
})) : at((c(), L(p, {
|
|
1035
|
-
key: 1,
|
|
1036
|
-
class: "client-container",
|
|
1037
|
-
"element-loading-text": "正在加载页面数据..."
|
|
1038
|
-
}, {
|
|
1039
|
-
default: o(() => [
|
|
1040
|
-
t(i, { class: "client-header" }, {
|
|
1041
|
-
default: o(() => [
|
|
1042
|
-
C("div", Na, [
|
|
1043
|
-
t(xe, {
|
|
1044
|
-
name: "logo",
|
|
1045
|
-
style: { width: "clamp(18px, 1.5rem, 24px)", height: "clamp(18px, 1.5rem, 24px)", "margin-right": "8px" }
|
|
1046
|
-
}),
|
|
1047
|
-
fe(" " + Ae(s(be) === "" ? "CPMPIP" : s(be)), 1)
|
|
1048
|
-
]),
|
|
1049
|
-
C("div", Oa, [
|
|
1050
|
-
t(Ot, { mode: "horizontal" })
|
|
1051
|
-
]),
|
|
1052
|
-
C("div", za, [
|
|
1053
|
-
t(k, {
|
|
1054
|
-
modelValue: vt.value,
|
|
1055
|
-
"onUpdate:modelValue": e[2] || (e[2] = (P) => vt.value = P),
|
|
1056
|
-
clearable: "",
|
|
1057
|
-
placeholder: "搜索",
|
|
1058
|
-
style: { width: "130px" }
|
|
1059
|
-
}, {
|
|
1060
|
-
prefix: o(() => [
|
|
1061
|
-
t(a, { class: "el-input__icon" }, {
|
|
1062
|
-
default: o(() => [
|
|
1063
|
-
t(s(Nt))
|
|
1064
|
-
]),
|
|
1065
|
-
_: 1
|
|
1066
|
-
})
|
|
1067
|
-
]),
|
|
1068
|
-
_: 1
|
|
1069
|
-
}, 8, ["modelValue"]),
|
|
1070
|
-
D.showButton ? (c(), L(m, {
|
|
1071
|
-
key: 0,
|
|
1072
|
-
id: "transparentBgButton",
|
|
1073
|
-
onClick: s(Pt)
|
|
1074
|
-
}, {
|
|
1075
|
-
icon: o(() => [
|
|
1076
|
-
t(xe, { name: "App" })
|
|
1077
|
-
]),
|
|
1078
|
-
default: o(() => [
|
|
1079
|
-
e[8] || (e[8] = fe(" 生成APP "))
|
|
1080
|
-
]),
|
|
1081
|
-
_: 1,
|
|
1082
|
-
__: [8]
|
|
1083
|
-
}, 8, ["onClick"])) : H("", !0),
|
|
1084
|
-
D.showButton && s(A) === "view" ? (c(), L(m, {
|
|
1085
|
-
key: 1,
|
|
1086
|
-
id: "transparentBgButton",
|
|
1087
|
-
onClick: s(Dt)
|
|
1088
|
-
}, {
|
|
1089
|
-
icon: o(() => [
|
|
1090
|
-
t(xe, { name: "write" })
|
|
1091
|
-
]),
|
|
1092
|
-
default: o(() => [
|
|
1093
|
-
e[9] || (e[9] = fe(" 修改布局 "))
|
|
1094
|
-
]),
|
|
1095
|
-
_: 1,
|
|
1096
|
-
__: [9]
|
|
1097
|
-
}, 8, ["onClick"])) : H("", !0),
|
|
1098
|
-
We(n.$slots, "default", {}, void 0, !0),
|
|
1099
|
-
t(u, null, {
|
|
1100
|
-
dropTitle: o(() => {
|
|
1101
|
-
var P;
|
|
1102
|
-
return [
|
|
1103
|
-
t(T, {
|
|
1104
|
-
size: "35",
|
|
1105
|
-
avatarUrl: (P = s(ge)) == null ? void 0 : P.avatarUrl,
|
|
1106
|
-
showCropper: !1,
|
|
1107
|
-
banClick: !0
|
|
1108
|
-
}, {
|
|
1109
|
-
avatarDefault: o(() => {
|
|
1110
|
-
var d;
|
|
1111
|
-
return [
|
|
1112
|
-
fe(Ae(((d = s(ge)) == null ? void 0 : d.account) ?? "未知"), 1)
|
|
1113
|
-
];
|
|
1114
|
-
}),
|
|
1115
|
-
_: 1
|
|
1116
|
-
}, 8, ["avatarUrl"])
|
|
1117
|
-
];
|
|
1118
|
-
}),
|
|
1119
|
-
dropMenu: o(() => [
|
|
1120
|
-
C("div", Ja, [
|
|
1121
|
-
t(Ne, {
|
|
1122
|
-
emptyColor: !0,
|
|
1123
|
-
class: "menu-button",
|
|
1124
|
-
onClickTrigger: Le,
|
|
1125
|
-
modelValue: "退出登录",
|
|
1126
|
-
buttonType: ""
|
|
1127
|
-
})
|
|
1128
|
-
])
|
|
1129
|
-
]),
|
|
1130
|
-
_: 1
|
|
1131
|
-
})
|
|
1132
|
-
])
|
|
1133
|
-
]),
|
|
1134
|
-
_: 3
|
|
1135
|
-
}),
|
|
1136
|
-
t(p, { class: "client-body" }, {
|
|
1137
|
-
default: o(() => [
|
|
1138
|
-
at(t(ee, { class: "client-main" }, {
|
|
1139
|
-
default: o(() => [
|
|
1140
|
-
t(U, {
|
|
1141
|
-
modelValue: ct.value,
|
|
1142
|
-
"onUpdate:modelValue": e[3] || (e[3] = (P) => ct.value = P),
|
|
1143
|
-
accordion: "",
|
|
1144
|
-
class: "client-aside",
|
|
1145
|
-
id: "menuCollapse",
|
|
1146
|
-
onChange: Wt
|
|
1147
|
-
}, {
|
|
1148
|
-
default: o(() => [
|
|
1149
|
-
t(E, { name: "open" }, {
|
|
1150
|
-
icon: o(() => [
|
|
1151
|
-
t(xe, {
|
|
1152
|
-
name: ct.value === "" ? "Right" : "Left",
|
|
1153
|
-
style: { width: "20px", height: "20px" }
|
|
1154
|
-
}, null, 8, ["name"])
|
|
1155
|
-
]),
|
|
1156
|
-
default: o(() => [
|
|
1157
|
-
t(x, { style: { width: "100%" } }, {
|
|
1158
|
-
default: o(() => [
|
|
1159
|
-
t(lt, { mode: "vertical" })
|
|
1160
|
-
]),
|
|
1161
|
-
_: 1
|
|
1162
|
-
})
|
|
1163
|
-
]),
|
|
1164
|
-
_: 1
|
|
1165
|
-
})
|
|
1166
|
-
]),
|
|
1167
|
-
_: 1
|
|
1168
|
-
}, 8, ["modelValue"]),
|
|
1169
|
-
C("div", Ia, [
|
|
1170
|
-
t(sa, {
|
|
1171
|
-
isShow: f.value,
|
|
1172
|
-
windowConfig: D.windowConfig,
|
|
1173
|
-
ref_key: "threeModelRef",
|
|
1174
|
-
ref: pe
|
|
1175
|
-
}, null, 8, ["isShow", "windowConfig"])
|
|
1176
|
-
]),
|
|
1177
|
-
t(U, {
|
|
1178
|
-
modelValue: ut.value,
|
|
1179
|
-
"onUpdate:modelValue": e[5] || (e[5] = (P) => ut.value = P),
|
|
1180
|
-
accordion: "",
|
|
1181
|
-
class: "client-main-operate",
|
|
1182
|
-
id: "operateCollapse",
|
|
1183
|
-
onChange: qt
|
|
1184
|
-
}, {
|
|
1185
|
-
default: o(() => [
|
|
1186
|
-
t(E, { name: "open" }, {
|
|
1187
|
-
icon: o(() => [
|
|
1188
|
-
t(xe, {
|
|
1189
|
-
name: ut.value === "open" ? "Right" : "Left",
|
|
1190
|
-
style: { width: "20px", height: "20px" }
|
|
1191
|
-
}, null, 8, ["name"])
|
|
1192
|
-
]),
|
|
1193
|
-
default: o(() => {
|
|
1194
|
-
var P;
|
|
1195
|
-
return [
|
|
1196
|
-
C("div", null, [
|
|
1197
|
-
t(xe, {
|
|
1198
|
-
class: "fold-icon",
|
|
1199
|
-
name: tt.value ? "Right" : "Left",
|
|
1200
|
-
onClick: Ht
|
|
1201
|
-
}, null, 8, ["name"]),
|
|
1202
|
-
(c(!0), N(ot, null, ht((P = Xt.value) == null ? void 0 : P.filter((d) => d.comp !== "FormTop"), (d, me) => {
|
|
1203
|
-
var he;
|
|
1204
|
-
return c(), N("div", {
|
|
1205
|
-
class: "item-view-content",
|
|
1206
|
-
key: d == null ? void 0 : d.id
|
|
1207
|
-
}, [
|
|
1208
|
-
((he = d == null ? void 0 : d.comp) == null ? void 0 : he.toUpperCase()) !== "TABLE" && d.name ? (c(), N("div", Ka, Ae(d.name), 1)) : H("", !0),
|
|
1209
|
-
(c(), L(St(s(jt)(d.comp)), {
|
|
1210
|
-
compName: d.name,
|
|
1211
|
-
itemData: d == null ? void 0 : d.compData,
|
|
1212
|
-
childItemData: d == null ? void 0 : d.itemChildData,
|
|
1213
|
-
key: (d == null ? void 0 : d.id) ?? me,
|
|
1214
|
-
onChange: s(Lt),
|
|
1215
|
-
index: (d == null ? void 0 : d.id) ?? me,
|
|
1216
|
-
onContentChange: s(Mt),
|
|
1217
|
-
onPageChange: s($t),
|
|
1218
|
-
onContentClick: s(ta)
|
|
1219
|
-
}, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange", "onContentClick"]))
|
|
1220
|
-
]);
|
|
1221
|
-
}), 128)),
|
|
1222
|
-
r.value ? (c(), N("div", Ga, [
|
|
1223
|
-
ce.value ? (c(), L(Ne, {
|
|
1224
|
-
key: 0,
|
|
1225
|
-
class: "calculator-content",
|
|
1226
|
-
onClickTrigger: Qt,
|
|
1227
|
-
loading: X.value,
|
|
1228
|
-
modelValue: "预览"
|
|
1229
|
-
}, null, 8, ["loading"])) : H("", !0),
|
|
1230
|
-
t(Ne, {
|
|
1231
|
-
class: "calculator-content",
|
|
1232
|
-
onClickTrigger: e[4] || (e[4] = (d) => Gt()),
|
|
1233
|
-
loading: K.value,
|
|
1234
|
-
modelValue: "调用方法"
|
|
1235
|
-
}, null, 8, ["loading"])
|
|
1236
|
-
])) : H("", !0),
|
|
1237
|
-
de.value ? (c(), N("div", Wa, [
|
|
1238
|
-
t(Ne, {
|
|
1239
|
-
class: "calculator-content",
|
|
1240
|
-
modelValue: "执行方法",
|
|
1241
|
-
onClickTrigger: It,
|
|
1242
|
-
loading: S.value
|
|
1243
|
-
}, null, 8, ["loading"])
|
|
1244
|
-
])) : H("", !0),
|
|
1245
|
-
Q.value ? (c(), N("div", qa, [
|
|
1246
|
-
t(Ne, {
|
|
1247
|
-
class: "calculator-content",
|
|
1248
|
-
modelValue: "播放动画",
|
|
1249
|
-
onClickTrigger: je
|
|
1250
|
-
})
|
|
1251
|
-
])) : H("", !0),
|
|
1252
|
-
ne.value ? (c(), N("div", Ha, [
|
|
1253
|
-
t(Ne, {
|
|
1254
|
-
class: "calculator-content",
|
|
1255
|
-
onClickTrigger: Jt,
|
|
1256
|
-
modelValue: "预览"
|
|
1257
|
-
}),
|
|
1258
|
-
t(Ne, {
|
|
1259
|
-
class: "calculator-content",
|
|
1260
|
-
onClickTrigger: rt,
|
|
1261
|
-
modelValue: "下载"
|
|
1262
|
-
})
|
|
1263
|
-
])) : H("", !0)
|
|
1264
|
-
])
|
|
1265
|
-
];
|
|
1266
|
-
}),
|
|
1267
|
-
_: 1
|
|
1268
|
-
})
|
|
1269
|
-
]),
|
|
1270
|
-
_: 1
|
|
1271
|
-
}, 8, ["modelValue"])
|
|
1272
|
-
]),
|
|
1273
|
-
_: 1
|
|
1274
|
-
}, 512), [
|
|
1275
|
-
[Ct, !wt.value]
|
|
1276
|
-
]),
|
|
1277
|
-
at(t(ee, { class: "client-router" }, {
|
|
1278
|
-
default: o(() => [
|
|
1279
|
-
C("div", Qa, [
|
|
1280
|
-
t(x, { width: "300px" }, {
|
|
1281
|
-
default: o(() => [
|
|
1282
|
-
t(lt, { mode: "vertical" })
|
|
1283
|
-
]),
|
|
1284
|
-
_: 1
|
|
1285
|
-
})
|
|
1286
|
-
]),
|
|
1287
|
-
C("div", Xa, [
|
|
1288
|
-
t(Re)
|
|
1289
|
-
])
|
|
1290
|
-
]),
|
|
1291
|
-
_: 1
|
|
1292
|
-
}, 512), [
|
|
1293
|
-
[Ct, wt.value]
|
|
1294
|
-
])
|
|
1295
|
-
]),
|
|
1296
|
-
_: 1
|
|
1297
|
-
})
|
|
1298
|
-
]),
|
|
1299
|
-
_: 3
|
|
1300
|
-
})), [
|
|
1301
|
-
[Fe, s(Ce)]
|
|
1302
|
-
])
|
|
1303
|
-
], 64);
|
|
1304
|
-
};
|
|
1305
|
-
}
|
|
1306
|
-
}), Za = /* @__PURE__ */ qe(Ya, [["__scopeId", "data-v-764f0317"]]), eo = { class: "system-wrap" }, to = {
|
|
1307
|
-
__name: "index",
|
|
1308
|
-
props: {
|
|
1309
|
-
windowConfig: {
|
|
1310
|
-
type: Object,
|
|
1311
|
-
default: () => {
|
|
1312
|
-
}
|
|
1313
|
-
},
|
|
1314
|
-
platform: {
|
|
1315
|
-
type: String,
|
|
1316
|
-
default: "browser"
|
|
1317
|
-
},
|
|
1318
|
-
showButton: {
|
|
1319
|
-
type: Boolean,
|
|
1320
|
-
default: !0
|
|
1321
|
-
},
|
|
1322
|
-
content: String,
|
|
1323
|
-
jsonContents: Array
|
|
1324
|
-
},
|
|
1325
|
-
emits: ["buildContent"],
|
|
1326
|
-
setup(D, { emit: Ue }) {
|
|
1327
|
-
const l = it(Be), I = _t(Be), K = st();
|
|
1328
|
-
_(!1);
|
|
1329
|
-
const re = _(!0), r = D, ce = Ue, X = nt(() => {
|
|
1330
|
-
switch (r == null ? void 0 : r.platform) {
|
|
1331
|
-
case "browser":
|
|
1332
|
-
return ma;
|
|
1333
|
-
case "client":
|
|
1334
|
-
return pa;
|
|
1335
|
-
}
|
|
1336
|
-
}), ue = (j) => {
|
|
1337
|
-
const Y = document.documentElement;
|
|
1338
|
-
j == null || j.forEach((ge) => {
|
|
1339
|
-
Y.style.setProperty(ge.name, ge.value);
|
|
1340
|
-
});
|
|
1341
|
-
};
|
|
1342
|
-
_e(() => r.platform, (j, Y) => {
|
|
1343
|
-
j && ue(X.value);
|
|
1344
|
-
}, { immediate: !0 });
|
|
1345
|
-
const de = () => {
|
|
1346
|
-
ce("buildContent");
|
|
1347
|
-
};
|
|
1348
|
-
return _e(
|
|
1349
|
-
() => [r == null ? void 0 : r.content, r == null ? void 0 : r.jsonContents],
|
|
1350
|
-
async () => {
|
|
1351
|
-
var ge, ve, we, A;
|
|
1352
|
-
if (((ge = r == null ? void 0 : r.jsonContents) == null ? void 0 : ge.length) > 0) {
|
|
1353
|
-
l.setOriginalData(r == null ? void 0 : r.jsonContents);
|
|
1354
|
-
return;
|
|
1355
|
-
}
|
|
1356
|
-
if (!(r != null && r.content) || ((ve = r == null ? void 0 : r.content) == null ? void 0 : ve.length) === 0) return;
|
|
1357
|
-
re.value = !0, K.setImportLoading(!0);
|
|
1358
|
-
let j = [], Y = [];
|
|
1359
|
-
I.setSelectTitle([]), I.setSelectIndex(""), I.setSelectMenu(""), (A = (we = r == null ? void 0 : r.content) == null ? void 0 : we.filter((O) => O !== "")) == null || A.forEach((O) => {
|
|
1360
|
-
ca(O) ? Y.push(ua(O)) : Bt(O) ? Y.push(Bt(O)) : Tt(O) ? Y.push(Tt(O)) : Y.push(aa(O));
|
|
1361
|
-
}), j = Y == null ? void 0 : Y[0], await oa(j), await Vt(), l.setOriginalData(j), K.setImportLoading(!1);
|
|
1362
|
-
},
|
|
1363
|
-
{ deep: !0, immediate: !0 }
|
|
1364
|
-
), (j, Y) => (c(), N("div", eo, [
|
|
1365
|
-
D.platform === "browser" ? (c(), L(Pa, {
|
|
1366
|
-
key: 0,
|
|
1367
|
-
showButton: D.showButton
|
|
1368
|
-
}, {
|
|
1369
|
-
default: o(() => [
|
|
1370
|
-
We(j.$slots, "default", {}, void 0, !0)
|
|
1371
|
-
]),
|
|
1372
|
-
_: 3
|
|
1373
|
-
}, 8, ["showButton"])) : (c(), L(Za, {
|
|
1374
|
-
key: 1,
|
|
1375
|
-
windowConfig: D.windowConfig,
|
|
1376
|
-
showButton: D.showButton,
|
|
1377
|
-
onBuildContent: de
|
|
1378
|
-
}, {
|
|
1379
|
-
default: o(() => [
|
|
1380
|
-
We(j.$slots, "default", {}, void 0, !0)
|
|
1381
|
-
]),
|
|
1382
|
-
_: 3
|
|
1383
|
-
}, 8, ["windowConfig", "showButton"]))
|
|
1384
|
-
]));
|
|
1385
|
-
}
|
|
1386
|
-
}, ao = /* @__PURE__ */ qe(to, [["__scopeId", "data-v-ee68f188"]]), oo = { class: "add-model-content" }, no = {
|
|
1387
|
-
key: 0,
|
|
1388
|
-
class: "model-operate"
|
|
1389
|
-
}, lo = { class: "model-select" }, so = { class: "model-fill" }, io = {
|
|
1390
|
-
key: 1,
|
|
1391
|
-
class: "model-view"
|
|
1392
|
-
}, ro = {
|
|
1393
|
-
__name: "index",
|
|
1394
|
-
props: {
|
|
1395
|
-
mode: {
|
|
1396
|
-
type: String,
|
|
1397
|
-
default: "view"
|
|
1398
|
-
},
|
|
1399
|
-
content: {
|
|
1400
|
-
type: String,
|
|
1401
|
-
default: ""
|
|
1402
|
-
},
|
|
1403
|
-
jsonContents: {
|
|
1404
|
-
type: Array,
|
|
1405
|
-
default: () => []
|
|
1406
|
-
},
|
|
1407
|
-
showButton: {
|
|
1408
|
-
type: Boolean,
|
|
1409
|
-
default: !0
|
|
1410
|
-
},
|
|
1411
|
-
pathContent: {
|
|
1412
|
-
type: String,
|
|
1413
|
-
default: ""
|
|
1414
|
-
}
|
|
1415
|
-
},
|
|
1416
|
-
emits: ["change", "contentChange", "buildContent"],
|
|
1417
|
-
setup(D, { emit: Ue }) {
|
|
1418
|
-
const l = D, I = Ue, K = _([]), re = _(0), r = _([]), ce = _([]), X = _(0), ue = it(Be), de = st(Be), { itemData: j, originalData: Y } = ke(ue), { activeMenuPath: ge, platform: ve } = ke(de), we = _(null), A = _(0), O = _([]);
|
|
1419
|
-
_("");
|
|
1420
|
-
const Oe = _(0), De = () => {
|
|
1421
|
-
I("buildContent");
|
|
1422
|
-
};
|
|
1423
|
-
_e(
|
|
1424
|
-
() => l == null ? void 0 : l.pathContent,
|
|
1425
|
-
() => {
|
|
1426
|
-
(l == null ? void 0 : l.pathContent) !== "" && ue.setSystemPath(l == null ? void 0 : l.pathContent);
|
|
1427
|
-
},
|
|
1428
|
-
{
|
|
1429
|
-
deep: !0,
|
|
1430
|
-
immediate: !0
|
|
1431
|
-
}
|
|
1432
|
-
);
|
|
1433
|
-
const G = (S) => {
|
|
1434
|
-
I("contentChange", S);
|
|
1435
|
-
}, pe = (S) => {
|
|
1436
|
-
var W;
|
|
1437
|
-
const Ce = (W = et(S == null ? void 0 : S.wholeValue)) == null ? void 0 : W.map((Z) => {
|
|
1438
|
-
var be;
|
|
1439
|
-
return (Z == null ? void 0 : Z.comp) === "Form" && (Z.compData = (be = Z.compData) == null ? void 0 : be.map((Q) => ((Q == null ? void 0 : Q.key) === "formContent" && (Q.contents = da(Q == null ? void 0 : Q.contents)), Q))), Z;
|
|
1440
|
-
});
|
|
1441
|
-
I("change", {
|
|
1442
|
-
originalContents: Y.value,
|
|
1443
|
-
currentContents: S == null ? void 0 : S.wholeValue,
|
|
1444
|
-
editContent: S == null ? void 0 : S.editValue,
|
|
1445
|
-
arrayToContents: Ce
|
|
1446
|
-
});
|
|
1447
|
-
};
|
|
1448
|
-
_e(
|
|
1449
|
-
() => r.value,
|
|
1450
|
-
() => {
|
|
1451
|
-
Oe.value === r.value.length && r.value.length !== 0 && (K.value = r.value);
|
|
1452
|
-
},
|
|
1453
|
-
{ deep: !0, immediate: !0 }
|
|
1454
|
-
);
|
|
1455
|
-
const Me = () => {
|
|
1456
|
-
we.value !== null && we.value.click();
|
|
1457
|
-
}, He = async (S) => {
|
|
1458
|
-
const Ce = S.target.files;
|
|
1459
|
-
if (!Ce) return;
|
|
1460
|
-
new FileReader(), K.value = [], r.value = [], Oe.value = Ce.length;
|
|
1461
|
-
const W = Array.from(Ce).map(async (Z) => await new Promise((be) => {
|
|
1462
|
-
const Q = new FileReader();
|
|
1463
|
-
Q.onload = (ne) => {
|
|
1464
|
-
try {
|
|
1465
|
-
r.value.push(ne.target.result), A.value++;
|
|
1466
|
-
} catch (f) {
|
|
1467
|
-
console.error("解析失败:", f);
|
|
1468
|
-
return;
|
|
1469
|
-
}
|
|
1470
|
-
}, Q.onerror = () => be(`读取 ${Z.name} 失败`), Q.readAsText(Z), S.target.value = "", we.value = null, re.value++;
|
|
1471
|
-
}));
|
|
1472
|
-
await Promise.all(W);
|
|
1473
|
-
};
|
|
1474
|
-
return _e(
|
|
1475
|
-
() => [l == null ? void 0 : l.content, l == null ? void 0 : l.jsonContents],
|
|
1476
|
-
async () => {
|
|
1477
|
-
await Vt(), K.value = l.content, ce.value = l == null ? void 0 : l.jsonContents;
|
|
1478
|
-
},
|
|
1479
|
-
{ deep: !0, immediate: !0 }
|
|
1480
|
-
), _e(
|
|
1481
|
-
() => A.value,
|
|
1482
|
-
() => {
|
|
1483
|
-
var S;
|
|
1484
|
-
((S = O.value) == null ? void 0 : S.length) !== 0 && (ue.setOriginalData(O.value), ue.setItemData(O.value));
|
|
1485
|
-
},
|
|
1486
|
-
{ deep: !0, immediate: !0 }
|
|
1487
|
-
), (S, Ce) => {
|
|
1488
|
-
const W = b("svg-icon"), Z = b("el-button");
|
|
1489
|
-
return c(), N("div", oo, [
|
|
1490
|
-
(l == null ? void 0 : l.mode) === "edit" ? (c(), N("div", no, [
|
|
1491
|
-
C("div", lo, [
|
|
1492
|
-
t(ft)
|
|
1493
|
-
]),
|
|
1494
|
-
(c(), N("div", {
|
|
1495
|
-
class: "model-show",
|
|
1496
|
-
key: X.value
|
|
1497
|
-
}, [
|
|
1498
|
-
t(gt)
|
|
1499
|
-
])),
|
|
1500
|
-
C("div", so, [
|
|
1501
|
-
t(yt)
|
|
1502
|
-
])
|
|
1503
|
-
])) : H("", !0),
|
|
1504
|
-
(l == null ? void 0 : l.mode) === "view" ? (c(), N("div", io, [
|
|
1505
|
-
(c(), L(ao, {
|
|
1506
|
-
showButton: D.showButton,
|
|
1507
|
-
platform: s(ve),
|
|
1508
|
-
content: K.value,
|
|
1509
|
-
onChange: pe,
|
|
1510
|
-
jsonContents: ce.value,
|
|
1511
|
-
onContentChange: G,
|
|
1512
|
-
onBuildContent: De,
|
|
1513
|
-
key: X.value
|
|
1514
|
-
}, {
|
|
1515
|
-
default: o(() => {
|
|
1516
|
-
var be;
|
|
1517
|
-
return [
|
|
1518
|
-
((be = l == null ? void 0 : l.jsonContents) == null ? void 0 : be.length) === 0 && (l != null && l.showButton) ? (c(), L(Z, {
|
|
1519
|
-
key: 0,
|
|
1520
|
-
id: "transparentBgButton",
|
|
1521
|
-
onClick: Me
|
|
1522
|
-
}, {
|
|
1523
|
-
icon: o(() => [
|
|
1524
|
-
t(W, { name: "import" })
|
|
1525
|
-
]),
|
|
1526
|
-
default: o(() => [
|
|
1527
|
-
(c(), N("input", {
|
|
1528
|
-
type: "file",
|
|
1529
|
-
key: re.value,
|
|
1530
|
-
ref_key: "fileInput",
|
|
1531
|
-
ref: we,
|
|
1532
|
-
accept: ".txt, .inm",
|
|
1533
|
-
onChange: He,
|
|
1534
|
-
style: { display: "none" },
|
|
1535
|
-
multiple: ""
|
|
1536
|
-
}, null, 32)),
|
|
1537
|
-
Ce[0] || (Ce[0] = fe(" 导入模型 "))
|
|
1538
|
-
]),
|
|
1539
|
-
_: 1,
|
|
1540
|
-
__: [0]
|
|
1541
|
-
})) : H("", !0)
|
|
1542
|
-
];
|
|
1543
|
-
}),
|
|
1544
|
-
_: 1
|
|
1545
|
-
}, 8, ["showButton", "platform", "content", "jsonContents"]))
|
|
1546
|
-
])) : H("", !0)
|
|
1547
|
-
]);
|
|
1548
|
-
};
|
|
1549
|
-
}
|
|
1550
|
-
}, So = /* @__PURE__ */ qe(ro, [["__scopeId", "data-v-45defba9"]]);
|
|
1551
|
-
export {
|
|
1552
|
-
So as default
|
|
1553
|
-
};
|