ss-component-new 1.1.539 → 1.1.540
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-D8-6uGyY.cjs → index-CCicaukT.cjs} +1 -1
- package/dist/{index-DmNelKHO.js → index-Cjhr1ckv.js} +1 -1
- package/dist/index-IY0HjwQL.cjs +1 -0
- package/dist/{index-CVX3TWb8.js → index-p5Z3rgma.js} +383 -383
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +2 -2
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/dist/{threeModel-D8lqCKTF.cjs → threeModel-BqAxL3QD.cjs} +1 -1
- package/dist/{threeModel-aG5qpZ_h.js → threeModel-JXol4tZC.js} +2 -2
- package/package.json +1 -1
- package/dist/index-BKlPw_jN.cjs +0 -1
- /package/dist/{index.vue_vue_type_style_index_0_scoped_b9caa997_lang-BPX2BQrS.js → index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-BPX2BQrS.js} +0 -0
- /package/dist/{index.vue_vue_type_style_index_0_scoped_b9caa997_lang-CWITBDjC.cjs → index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-CWITBDjC.cjs} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { resolveComponent as B, createBlock as
|
|
1
|
+
import { resolveComponent as B, createBlock as D, openBlock as u, withCtx as l, createVNode as a, createElementVNode as y, toDisplayString as ne, ref as c, onMounted as wt, watch as E, createElementBlock as $, Fragment as Be, renderList as je, createCommentVNode as U, normalizeStyle as kt, defineComponent as Ye, computed as Te, resolveDirective as Ze, withDirectives as Se, unref as n, createTextVNode as X, renderSlot as ye, vShow as Ae, resolveDynamicComponent as et } from "vue";
|
|
2
2
|
import { m as Ne, a as Ie, b as Ue } from "./index-xdstWmmZ.js";
|
|
3
3
|
import tt from "./index-6c_x2IDg.js";
|
|
4
|
-
import { _ as Bt, o as at, c as ot, a as nt, b as lt, d as it, s as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { p as
|
|
4
|
+
import { _ as Bt, o as at, c as ot, a as nt, b as lt, d as it, s as oe, g as st, e as rt, f as ut, h as ct, i as Ft, j as bt } from "./index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-BPX2BQrS.js";
|
|
5
|
+
import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import { p as J, s as H, u as De, e as dt, c as Me, g as Ve, f as mt, d as we } from "./menu-DV47UKJo.js";
|
|
7
7
|
import { u as pt } from "./crypto-8Ga3ud_Q.js";
|
|
8
|
-
import { S as
|
|
8
|
+
import { S as _e } from "./index-BHtNKL1L.js";
|
|
9
9
|
import { u as $e } from "./modelComp-B4I2gbtf.js";
|
|
10
|
-
import { _ as ht, a as
|
|
10
|
+
import { _ as ht, a as ke, s as Rt } from "./index-CA3Cjtjp.js";
|
|
11
11
|
import { u as Le, a as Tt, l as ft, g as St, b as At } from "./index-B09eH1Mw.js";
|
|
12
12
|
import { _ as gt } from "./index.vue_vue_type_script_setup_true_lang-lD5FjnBK.js";
|
|
13
|
-
import We from "./threeModel-
|
|
13
|
+
import We from "./threeModel-JXol4tZC.js";
|
|
14
14
|
import { u as Mt } from "./index-CkcltdIx.js";
|
|
15
15
|
import { d as Qe } from "./index-nuI9V5ye.js";
|
|
16
16
|
import "vue-router";
|
|
17
17
|
import { a as Dt } from "./array-CLz11m07.js";
|
|
18
18
|
import { c as $t, b as Pt } from "./index.vue_vue_type_style_index_0_scoped_d888ede3_lang-DtFsZ9uu.js";
|
|
19
|
-
function xt(F,
|
|
20
|
-
const s = B("svg-icon"),
|
|
21
|
-
return u(),
|
|
19
|
+
function xt(F, ee, t, w, S, K) {
|
|
20
|
+
const s = B("svg-icon"), O = B("ssMenu");
|
|
21
|
+
return u(), D(O, {
|
|
22
22
|
mode: F.mode,
|
|
23
23
|
menuList: F.renderMenuList,
|
|
24
24
|
onClickMenu: F.clickMenu,
|
|
@@ -26,16 +26,16 @@ function xt(F, te, e, w, A, O) {
|
|
|
26
26
|
onCloseMenu: F.closeMenu
|
|
27
27
|
}, {
|
|
28
28
|
title: l(({ menu: T }) => [
|
|
29
|
-
|
|
29
|
+
a(s, {
|
|
30
30
|
name: T.icon ?? "Fold",
|
|
31
31
|
style: { width: "clamp(16px, 1.25rem, 20px)", height: "clamp(16px, 1.25rem, 20px)", "margin-right": "8px" }
|
|
32
32
|
}, null, 8, ["name"]),
|
|
33
|
-
y("span", null,
|
|
33
|
+
y("span", null, ne(T.title ?? ""), 1)
|
|
34
34
|
]),
|
|
35
35
|
_: 1
|
|
36
36
|
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
37
37
|
}
|
|
38
|
-
const _t = /* @__PURE__ */
|
|
38
|
+
const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed2"]]), Vt = { class: "bread-content" }, jt = ["onClick"], Nt = {
|
|
39
39
|
key: 0,
|
|
40
40
|
class: "split-title"
|
|
41
41
|
}, It = {
|
|
@@ -47,38 +47,38 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
emits: ["click"],
|
|
50
|
-
setup(F, { emit:
|
|
51
|
-
const
|
|
50
|
+
setup(F, { emit: ee }) {
|
|
51
|
+
const t = F, w = c([]), S = ee;
|
|
52
52
|
wt(() => {
|
|
53
|
-
w.value =
|
|
54
|
-
}),
|
|
55
|
-
() =>
|
|
53
|
+
w.value = t == null ? void 0 : t.breadArray;
|
|
54
|
+
}), E(
|
|
55
|
+
() => t == null ? void 0 : t.breadArray,
|
|
56
56
|
() => {
|
|
57
|
-
w.value =
|
|
57
|
+
w.value = t == null ? void 0 : t.breadArray;
|
|
58
58
|
},
|
|
59
59
|
{ deep: !0, immediate: !0 }
|
|
60
60
|
);
|
|
61
|
-
const
|
|
62
|
-
|
|
61
|
+
const K = (s) => {
|
|
62
|
+
S("click", s);
|
|
63
63
|
};
|
|
64
|
-
return (s,
|
|
65
|
-
(u(!0),
|
|
66
|
-
var
|
|
67
|
-
return u(),
|
|
68
|
-
key:
|
|
64
|
+
return (s, O) => (u(), $("div", Vt, [
|
|
65
|
+
(u(!0), $(Be, null, je(w.value, (T, A) => {
|
|
66
|
+
var le;
|
|
67
|
+
return u(), $("div", {
|
|
68
|
+
key: A,
|
|
69
69
|
class: "bread-item"
|
|
70
70
|
}, [
|
|
71
71
|
y("div", {
|
|
72
72
|
class: "bread-title",
|
|
73
|
-
onClick: (
|
|
74
|
-
style: kt({ opacity: ((
|
|
75
|
-
},
|
|
76
|
-
|
|
73
|
+
onClick: (te) => K(T),
|
|
74
|
+
style: kt({ opacity: ((le = w.value) == null ? void 0 : le.length) - 1 === A ? "0.7" : "1" })
|
|
75
|
+
}, ne(T.value), 13, jt),
|
|
76
|
+
A !== w.value.length - 1 && Array.isArray(w.value) ? (u(), $("div", Nt, ne("/"))) : U("", !0)
|
|
77
77
|
]);
|
|
78
78
|
}), 128))
|
|
79
79
|
]));
|
|
80
80
|
}
|
|
81
|
-
}, yt = /* @__PURE__ */
|
|
81
|
+
}, yt = /* @__PURE__ */ ve(It, [["__scopeId", "data-v-ded7e2bd"]]), Ut = { class: "structure-buttons" }, Lt = { class: "structure-paths" }, Et = { class: "client-header-user" }, Kt = { class: "model-select" }, Ot = { class: "model-show" }, zt = { class: "model-fill" }, Gt = { class: "client-header-menu" }, Xt = { class: "client-header-user" }, qt = { class: "drop-menu" }, Ht = { class: "client-main-operate" }, Jt = {
|
|
82
82
|
key: 0,
|
|
83
83
|
class: "item-view-group"
|
|
84
84
|
}, Wt = /* @__PURE__ */ Ye({
|
|
@@ -95,10 +95,10 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
setup(F) {
|
|
98
|
-
const
|
|
98
|
+
const ee = Le(J), { selectTitle: t } = H(ee), w = pt(), { loginUserInfo: S } = H(w), K = $e(J), { isEdit: s, routeToChildPath: O } = H(K), T = De(J), { importLoading: A, activeTopMenuPath: le, activeAsideMenu: te } = H(T), b = c(""), P = Te(() => te.value.isRouter), L = () => {
|
|
99
99
|
sessionStorage.clear(), window.location.reload();
|
|
100
|
-
},
|
|
101
|
-
var d,
|
|
100
|
+
}, W = async () => {
|
|
101
|
+
var d, Y, re, z;
|
|
102
102
|
T.setImportLoading(!0);
|
|
103
103
|
const h = await Ve({
|
|
104
104
|
key: {
|
|
@@ -106,72 +106,72 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
if (((d = h == null ? void 0 : h.data) == null ? void 0 : d.code) === 200) {
|
|
109
|
-
let
|
|
110
|
-
var
|
|
111
|
-
if (((
|
|
112
|
-
return
|
|
113
|
-
})) == null ? void 0 :
|
|
109
|
+
let ie = (z = (re = (Y = h == null ? void 0 : h.data) == null ? void 0 : Y.result) == null ? void 0 : re.map((I) => {
|
|
110
|
+
var ue;
|
|
111
|
+
if (((ue = I == null ? void 0 : I.key) == null ? void 0 : ue.layer) !== "superAdmin")
|
|
112
|
+
return I == null ? void 0 : I.id;
|
|
113
|
+
})) == null ? void 0 : z.filter((I) => I);
|
|
114
114
|
await mt({
|
|
115
|
-
ids:
|
|
115
|
+
ids: ie
|
|
116
116
|
}), T.setRawMenus([]);
|
|
117
117
|
}
|
|
118
118
|
T.setImportLoading(!1);
|
|
119
|
-
},
|
|
120
|
-
T.setActiveMenuPath(
|
|
119
|
+
}, Q = () => {
|
|
120
|
+
T.setActiveMenuPath(O.value), K.setRouteToChildPath("");
|
|
121
121
|
};
|
|
122
122
|
return (h, d) => {
|
|
123
|
-
const
|
|
124
|
-
return u(),
|
|
125
|
-
Se(
|
|
123
|
+
const Y = B("el-button"), re = B("el-avatar"), z = B("el-header"), ie = B("el-container"), I = B("el-icon"), ue = B("el-input"), f = B("el-aside"), x = B("router-view"), R = B("el-main"), M = Ze("loading");
|
|
124
|
+
return u(), $(Be, null, [
|
|
125
|
+
Se(a(ie, { class: "client-container" }, {
|
|
126
126
|
default: l(() => [
|
|
127
|
-
|
|
127
|
+
a(z, { class: "client-structure-header" }, {
|
|
128
128
|
default: l(() => {
|
|
129
129
|
var k;
|
|
130
130
|
return [
|
|
131
131
|
y("div", Ut, [
|
|
132
|
-
|
|
132
|
+
a(Y, {
|
|
133
133
|
id: "transparentBgButton",
|
|
134
134
|
onClick: n(at)
|
|
135
135
|
}, {
|
|
136
136
|
default: l(() => d[2] || (d[2] = [
|
|
137
|
-
|
|
137
|
+
X(" 返回页面 ")
|
|
138
138
|
])),
|
|
139
139
|
_: 1,
|
|
140
140
|
__: [2]
|
|
141
141
|
}, 8, ["onClick"]),
|
|
142
|
-
|
|
142
|
+
a(Y, {
|
|
143
143
|
id: "transparentBgButton",
|
|
144
144
|
onClick: d[0] || (d[0] = (i) => {
|
|
145
|
-
var
|
|
146
|
-
return n(ot)((
|
|
145
|
+
var G, q;
|
|
146
|
+
return n(ot)((q = (G = n(t)) == null ? void 0 : G.map((pe) => pe.value)) == null ? void 0 : q.join("/"));
|
|
147
147
|
})
|
|
148
148
|
}, {
|
|
149
149
|
icon: l(() => [
|
|
150
|
-
|
|
150
|
+
a(_e, { name: "Store" })
|
|
151
151
|
]),
|
|
152
152
|
default: l(() => [
|
|
153
|
-
d[3] || (d[3] =
|
|
153
|
+
d[3] || (d[3] = X(" 保存页面 "))
|
|
154
154
|
]),
|
|
155
155
|
_: 1,
|
|
156
156
|
__: [3]
|
|
157
157
|
})
|
|
158
158
|
]),
|
|
159
159
|
y("div", Lt, [
|
|
160
|
-
|
|
161
|
-
breadArray: n(
|
|
160
|
+
a(yt, {
|
|
161
|
+
breadArray: n(t),
|
|
162
162
|
onClick: n(nt)
|
|
163
163
|
}, null, 8, ["breadArray", "onClick"])
|
|
164
164
|
]),
|
|
165
165
|
y("div", Et, [
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
ye(h.$slots, "default", {}, void 0, !0),
|
|
167
|
+
a(re, {
|
|
168
168
|
size: 35,
|
|
169
|
-
src: (k = n(
|
|
169
|
+
src: (k = n(S)) == null ? void 0 : k.avatarUrl
|
|
170
170
|
}, {
|
|
171
171
|
default: l(() => {
|
|
172
172
|
var i;
|
|
173
173
|
return [
|
|
174
|
-
|
|
174
|
+
X(ne(((i = n(S)) == null ? void 0 : i.account) ?? "未知"), 1)
|
|
175
175
|
];
|
|
176
176
|
}),
|
|
177
177
|
_: 1
|
|
@@ -181,42 +181,42 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
181
181
|
}),
|
|
182
182
|
_: 3
|
|
183
183
|
}),
|
|
184
|
-
n(s) === "edit" ? (u(),
|
|
184
|
+
n(s) === "edit" ? (u(), D(ie, {
|
|
185
185
|
key: 0,
|
|
186
186
|
class: "model-operate",
|
|
187
187
|
style: { "margin-top": "10px", height: "0px" }
|
|
188
188
|
}, {
|
|
189
189
|
default: l(() => [
|
|
190
190
|
y("div", Kt, [
|
|
191
|
-
|
|
191
|
+
a(Ne)
|
|
192
192
|
]),
|
|
193
193
|
y("div", Ot, [
|
|
194
|
-
|
|
194
|
+
a(Ie)
|
|
195
195
|
]),
|
|
196
196
|
y("div", zt, [
|
|
197
|
-
|
|
197
|
+
a(Ue)
|
|
198
198
|
])
|
|
199
199
|
]),
|
|
200
200
|
_: 1
|
|
201
|
-
})) :
|
|
201
|
+
})) : U("", !0)
|
|
202
202
|
]),
|
|
203
203
|
_: 3
|
|
204
204
|
}, 512), [
|
|
205
205
|
[Ae, n(s) === "edit"]
|
|
206
206
|
]),
|
|
207
|
-
Se((u(),
|
|
207
|
+
Se((u(), D(ie, {
|
|
208
208
|
class: "client-container",
|
|
209
209
|
"element-loading-text": "正在加载页面数据..."
|
|
210
210
|
}, {
|
|
211
211
|
default: l(() => [
|
|
212
|
-
|
|
212
|
+
a(z, { class: "client-header" }, {
|
|
213
213
|
default: l(() => [
|
|
214
214
|
d[6] || (d[6] = y("div", { class: "client-header-logo" }, " ISIP ", -1)),
|
|
215
215
|
y("div", Gt, [
|
|
216
|
-
|
|
216
|
+
a(_t, { mode: "horizontal" })
|
|
217
217
|
]),
|
|
218
218
|
y("div", Xt, [
|
|
219
|
-
|
|
219
|
+
a(ue, {
|
|
220
220
|
modelValue: b.value,
|
|
221
221
|
"onUpdate:modelValue": d[1] || (d[1] = (k) => b.value = k),
|
|
222
222
|
clearable: "",
|
|
@@ -224,58 +224,58 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
224
224
|
style: { width: "130px" }
|
|
225
225
|
}, {
|
|
226
226
|
prefix: l(() => [
|
|
227
|
-
|
|
227
|
+
a(I, { class: "el-input__icon" }, {
|
|
228
228
|
default: l(() => [
|
|
229
|
-
|
|
229
|
+
a(n(dt))
|
|
230
230
|
]),
|
|
231
231
|
_: 1
|
|
232
232
|
})
|
|
233
233
|
]),
|
|
234
234
|
_: 1
|
|
235
235
|
}, 8, ["modelValue"]),
|
|
236
|
-
F.showButton ? (u(),
|
|
236
|
+
F.showButton ? (u(), D(Y, {
|
|
237
237
|
key: 0,
|
|
238
238
|
id: "transparentBgButton",
|
|
239
239
|
onClick: n(lt)
|
|
240
240
|
}, {
|
|
241
241
|
icon: l(() => [
|
|
242
|
-
|
|
242
|
+
a(_e, { name: "App" })
|
|
243
243
|
]),
|
|
244
244
|
default: l(() => [
|
|
245
|
-
d[4] || (d[4] =
|
|
245
|
+
d[4] || (d[4] = X(" 生成APP "))
|
|
246
246
|
]),
|
|
247
247
|
_: 1,
|
|
248
248
|
__: [4]
|
|
249
|
-
}, 8, ["onClick"])) :
|
|
250
|
-
F.showButton && n(s) === "view" ? (u(),
|
|
249
|
+
}, 8, ["onClick"])) : U("", !0),
|
|
250
|
+
F.showButton && n(s) === "view" ? (u(), D(Y, {
|
|
251
251
|
key: 1,
|
|
252
252
|
id: "transparentBgButton",
|
|
253
253
|
onClick: n(it)
|
|
254
254
|
}, {
|
|
255
255
|
icon: l(() => [
|
|
256
|
-
|
|
256
|
+
a(_e, { name: "write" })
|
|
257
257
|
]),
|
|
258
258
|
default: l(() => [
|
|
259
|
-
d[5] || (d[5] =
|
|
259
|
+
d[5] || (d[5] = X(" 修改布局 "))
|
|
260
260
|
]),
|
|
261
261
|
_: 1,
|
|
262
262
|
__: [5]
|
|
263
|
-
}, 8, ["onClick"])) :
|
|
264
|
-
|
|
265
|
-
|
|
263
|
+
}, 8, ["onClick"])) : U("", !0),
|
|
264
|
+
ye(h.$slots, "default", {}, void 0, !0),
|
|
265
|
+
a(ht, null, {
|
|
266
266
|
dropTitle: l(() => {
|
|
267
267
|
var k;
|
|
268
268
|
return [
|
|
269
|
-
|
|
269
|
+
a(gt, {
|
|
270
270
|
size: "35",
|
|
271
|
-
avatarUrl: (k = n(
|
|
271
|
+
avatarUrl: (k = n(S)) == null ? void 0 : k.avatarUrl,
|
|
272
272
|
showCropper: !1,
|
|
273
273
|
banClick: !0
|
|
274
274
|
}, {
|
|
275
275
|
avatarDefault: l(() => {
|
|
276
276
|
var i;
|
|
277
277
|
return [
|
|
278
|
-
|
|
278
|
+
X(ne(((i = n(S)) == null ? void 0 : i.account) ?? "未知"), 1)
|
|
279
279
|
];
|
|
280
280
|
}),
|
|
281
281
|
_: 1
|
|
@@ -284,17 +284,17 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
284
284
|
}),
|
|
285
285
|
dropMenu: l(() => [
|
|
286
286
|
y("div", qt, [
|
|
287
|
-
|
|
287
|
+
a(ke, {
|
|
288
288
|
emptyColor: !0,
|
|
289
289
|
class: "menu-button",
|
|
290
|
-
onClickTrigger:
|
|
290
|
+
onClickTrigger: W,
|
|
291
291
|
modelValue: "清空数据",
|
|
292
292
|
buttonType: ""
|
|
293
293
|
}),
|
|
294
|
-
|
|
294
|
+
a(ke, {
|
|
295
295
|
emptyColor: !0,
|
|
296
296
|
class: "menu-button",
|
|
297
|
-
onClickTrigger:
|
|
297
|
+
onClickTrigger: L,
|
|
298
298
|
modelValue: "退出登录",
|
|
299
299
|
buttonType: ""
|
|
300
300
|
})
|
|
@@ -307,40 +307,40 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
307
307
|
_: 3,
|
|
308
308
|
__: [6]
|
|
309
309
|
}),
|
|
310
|
-
|
|
310
|
+
a(ie, { class: "client-body" }, {
|
|
311
311
|
default: l(() => [
|
|
312
|
-
|
|
312
|
+
a(R, { class: "client-main" }, {
|
|
313
313
|
default: l(() => {
|
|
314
314
|
var k;
|
|
315
315
|
return [
|
|
316
|
-
|
|
316
|
+
a(f, { class: "client-aside" }, {
|
|
317
317
|
default: l(() => [
|
|
318
|
-
|
|
318
|
+
a(tt, { mode: "vertical" })
|
|
319
319
|
]),
|
|
320
320
|
_: 1
|
|
321
321
|
}),
|
|
322
322
|
y("div", Ht, [
|
|
323
|
-
|
|
324
|
-
n(
|
|
323
|
+
P.value ? (u(), D(x, { key: 0 })) : U("", !0),
|
|
324
|
+
n(O) !== "" ? (u(), D(ke, {
|
|
325
325
|
key: 1,
|
|
326
326
|
class: "calculator-content back-content",
|
|
327
|
-
onClickTrigger:
|
|
327
|
+
onClickTrigger: Q,
|
|
328
328
|
modelValue: "返回"
|
|
329
|
-
})) :
|
|
330
|
-
|
|
331
|
-
var
|
|
332
|
-
return u(),
|
|
329
|
+
})) : U("", !0),
|
|
330
|
+
P.value ? U("", !0) : (u(!0), $(Be, { key: 2 }, je((k = n(Me)(n(oe))) == null ? void 0 : k.filter((i) => i.comp !== "FormTop"), (i, G) => {
|
|
331
|
+
var q;
|
|
332
|
+
return u(), $("div", {
|
|
333
333
|
class: "item-view-content",
|
|
334
|
-
key:
|
|
334
|
+
key: G
|
|
335
335
|
}, [
|
|
336
|
-
((
|
|
337
|
-
(u(),
|
|
336
|
+
((q = i == null ? void 0 : i.comp) == null ? void 0 : q.toUpperCase()) !== "TABLE" && i.name ? (u(), $("div", Jt, ne(i.name), 1)) : U("", !0),
|
|
337
|
+
(u(), D(et(n(st)(i.comp)), {
|
|
338
338
|
compName: i.name,
|
|
339
339
|
itemData: i == null ? void 0 : i.compData,
|
|
340
340
|
childItemData: i == null ? void 0 : i.itemChildData,
|
|
341
|
-
key: (i == null ? void 0 : i.id) ??
|
|
341
|
+
key: (i == null ? void 0 : i.id) ?? G,
|
|
342
342
|
onChange: n(ct),
|
|
343
|
-
index: (i == null ? void 0 : i.id) ??
|
|
343
|
+
index: (i == null ? void 0 : i.id) ?? G,
|
|
344
344
|
onContentChange: n(ut),
|
|
345
345
|
onPageChange: n(rt)
|
|
346
346
|
}, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
@@ -358,12 +358,12 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
358
358
|
_: 3
|
|
359
359
|
})), [
|
|
360
360
|
[Ae, n(s) === "view"],
|
|
361
|
-
[
|
|
361
|
+
[M, n(A)]
|
|
362
362
|
])
|
|
363
363
|
], 64);
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
}), Qt = /* @__PURE__ */
|
|
366
|
+
}), Qt = /* @__PURE__ */ ve(Wt, [["__scopeId", "data-v-e8b11b5f"]]), Pe = [
|
|
367
367
|
{
|
|
368
368
|
key: "FitCurve_Eleven",
|
|
369
369
|
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",
|
|
@@ -461,198 +461,198 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
461
461
|
}
|
|
462
462
|
},
|
|
463
463
|
emits: ["showChild", "buildContent"],
|
|
464
|
-
setup(F, { emit:
|
|
465
|
-
const
|
|
464
|
+
setup(F, { emit: ee }) {
|
|
465
|
+
const t = Le(J), w = c(!1);
|
|
466
466
|
c(0), c(!1);
|
|
467
|
-
const { selectTitle:
|
|
467
|
+
const { selectTitle: S } = H(t), K = c(!1), s = c(!1);
|
|
468
468
|
c(!1);
|
|
469
|
-
const
|
|
469
|
+
const O = Tt(J), T = c(!1), { tableShowThree: A } = H(O), le = pt(), { loginUserInfo: te } = H(le);
|
|
470
470
|
c(null);
|
|
471
|
-
const b = $e(
|
|
471
|
+
const b = $e(J), { isEdit: P } = H(b), L = De(J), W = Mt(J), { objUrl: Q, blobUrls: h } = H(W), d = c(null);
|
|
472
472
|
c(!1);
|
|
473
|
-
const
|
|
473
|
+
const Y = c(!0);
|
|
474
474
|
c(!1);
|
|
475
|
-
const { importLoading:
|
|
476
|
-
|
|
477
|
-
|
|
475
|
+
const { importLoading: re, activeMenuPath: z, activeTopMenuPath: ie, platName: I, activeAsideMenu: ue } = H(L), f = c(!1), x = c(!1), R = c(!1), M = ee;
|
|
476
|
+
E(() => z.value, async (e) => {
|
|
477
|
+
e && (R.value = !0), e === "弯管仿真加工管理/仿真动画生成" ? f.value = !0 : f.value = !1, e === "弯管仿真加工管理/程序输出" ? x.value = !0 : x.value = !1, xe != null && xe.find((r) => {
|
|
478
478
|
var v;
|
|
479
|
-
return (r == null ? void 0 : r.key) === ((v =
|
|
479
|
+
return (r == null ? void 0 : r.key) === ((v = e == null ? void 0 : e.split("/")) == null ? void 0 : v[(e == null ? void 0 : e.split("/").length) - 1]);
|
|
480
480
|
}) ? T.value = !0 : T.value = !1;
|
|
481
481
|
}, { immediate: !0 });
|
|
482
|
-
const k = (
|
|
483
|
-
if ((
|
|
484
|
-
let r = Object.values(
|
|
485
|
-
v &&
|
|
482
|
+
const k = (e) => {
|
|
483
|
+
if ((e == null ? void 0 : e.type) === "table") {
|
|
484
|
+
let r = Object.values(e == null ? void 0 : e.row), v = r == null ? void 0 : r.find((_) => typeof _ == "string" && ((_ == null ? void 0 : _.includes(".urdf")) || (_ == null ? void 0 : _.includes(".obj"))));
|
|
485
|
+
v && M("showChild", {
|
|
486
486
|
url: v,
|
|
487
|
-
row:
|
|
487
|
+
row: e == null ? void 0 : e.row
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
}, i = () => {
|
|
491
491
|
sessionStorage.clear(), window.location.reload();
|
|
492
|
-
},
|
|
492
|
+
}, G = async () => {
|
|
493
493
|
var r, v, _, g;
|
|
494
|
-
|
|
495
|
-
const
|
|
494
|
+
L.setImportLoading(!0);
|
|
495
|
+
const e = await Ve({
|
|
496
496
|
key: {
|
|
497
497
|
systemKey: sessionStorage.getItem("systemKey")
|
|
498
498
|
}
|
|
499
499
|
});
|
|
500
|
-
if (((r =
|
|
501
|
-
let C = (g = (_ = (v =
|
|
502
|
-
var
|
|
503
|
-
if (((
|
|
500
|
+
if (((r = e == null ? void 0 : e.data) == null ? void 0 : r.code) === 200) {
|
|
501
|
+
let C = (g = (_ = (v = e == null ? void 0 : e.data) == null ? void 0 : v.result) == null ? void 0 : _.map((o) => {
|
|
502
|
+
var j;
|
|
503
|
+
if (((j = o == null ? void 0 : o.key) == null ? void 0 : j.layer) !== "superAdmin")
|
|
504
504
|
return o == null ? void 0 : o.id;
|
|
505
505
|
})) == null ? void 0 : g.filter((o) => o);
|
|
506
506
|
await mt({
|
|
507
507
|
ids: C
|
|
508
|
-
}),
|
|
508
|
+
}), L.setRawMenus([]);
|
|
509
509
|
}
|
|
510
|
-
|
|
511
|
-
},
|
|
512
|
-
var _, g, C, o,
|
|
513
|
-
const r = (_ =
|
|
510
|
+
L.setImportLoading(!1);
|
|
511
|
+
}, q = async (e) => {
|
|
512
|
+
var _, g, C, o, j, Z, m;
|
|
513
|
+
const r = (_ = e == null ? void 0 : e.split("/")) == null ? void 0 : _[0], v = await Ve({
|
|
514
514
|
key: {
|
|
515
515
|
type: "mainEquip",
|
|
516
516
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
517
517
|
pageKey: r
|
|
518
518
|
}
|
|
519
519
|
});
|
|
520
|
-
return ((g = v == null ? void 0 : v.data) == null ? void 0 : g.type) === "success" ? ((m = (
|
|
520
|
+
return ((g = v == null ? void 0 : v.data) == null ? void 0 : g.type) === "success" ? ((m = (Z = (j = (o = (C = v == null ? void 0 : v.data) == null ? void 0 : C.result) == null ? void 0 : o[0]) == null ? void 0 : j.value) == null ? void 0 : Z.tableData) == null ? void 0 : m.隐藏三维显示) !== !0 : !0;
|
|
521
521
|
};
|
|
522
|
-
|
|
523
|
-
() =>
|
|
522
|
+
E(
|
|
523
|
+
() => oe.value,
|
|
524
524
|
() => {
|
|
525
|
-
var
|
|
526
|
-
if (((
|
|
527
|
-
const C = (_ =
|
|
528
|
-
s.value = ((g = C == null ? void 0 : C.comp) == null ? void 0 : g.toUpperCase()) === "FORM",
|
|
525
|
+
var e, r, v, _, g;
|
|
526
|
+
if (((e = oe.value) == null ? void 0 : e.length) === 2 && ((r = oe.value) != null && r.find((C) => (C == null ? void 0 : C.name) === "输入")) && ((v = oe.value) != null && v.find((C) => (C == null ? void 0 : C.name) === "输出"))) {
|
|
527
|
+
const C = (_ = oe.value) == null ? void 0 : _.find((o) => (o == null ? void 0 : o.name) === "输出");
|
|
528
|
+
s.value = ((g = C == null ? void 0 : C.comp) == null ? void 0 : g.toUpperCase()) === "FORM", K.value = !0;
|
|
529
529
|
} else
|
|
530
|
-
|
|
530
|
+
K.value = !1, s.value = !1;
|
|
531
531
|
},
|
|
532
532
|
{ deep: !0, immediate: !0 }
|
|
533
|
-
),
|
|
534
|
-
() =>
|
|
533
|
+
), E(
|
|
534
|
+
() => z.value,
|
|
535
535
|
async () => {
|
|
536
|
-
|
|
536
|
+
z.value && (Y.value = await q(z.value));
|
|
537
537
|
},
|
|
538
538
|
{ deep: !0, immediate: !0 }
|
|
539
|
-
),
|
|
540
|
-
() => [
|
|
539
|
+
), E(
|
|
540
|
+
() => [Q.value, d.value],
|
|
541
541
|
() => {
|
|
542
|
-
var
|
|
543
|
-
((
|
|
542
|
+
var e;
|
|
543
|
+
((e = Q.value) == null ? void 0 : e.length) > 0 && d.value && d.value.addModelsFromUrls(Q.value);
|
|
544
544
|
},
|
|
545
545
|
{ immediate: !0, deep: !0 }
|
|
546
|
-
),
|
|
546
|
+
), E(
|
|
547
547
|
() => h == null ? void 0 : h.value,
|
|
548
548
|
async () => {
|
|
549
|
-
var
|
|
550
|
-
if (h != null && h.value && ((
|
|
549
|
+
var e, r, v, _;
|
|
550
|
+
if (h != null && h.value && ((e = h == null ? void 0 : h.value) == null ? void 0 : e.length) > 0 && !T.value && !((r = oe.value) != null && r.find((g) => (g == null ? void 0 : g.name) === "输入") && ((v = oe.value) != null && v.find((g) => (g == null ? void 0 : g.name) === "输出")))) {
|
|
551
551
|
let g = [];
|
|
552
552
|
const C = await ((_ = Me(h == null ? void 0 : h.value)) == null ? void 0 : _.map(async (o) => {
|
|
553
|
-
var
|
|
554
|
-
let
|
|
555
|
-
o != null && o.blob.includes("undefined") ? m = (be = (
|
|
556
|
-
let
|
|
557
|
-
if ((
|
|
558
|
-
let
|
|
559
|
-
var
|
|
560
|
-
|
|
553
|
+
var ce, be, N, p, se, de, Re, Ee, Ke, Oe;
|
|
554
|
+
let j, Z, m;
|
|
555
|
+
o != null && o.blob.includes("undefined") ? m = (be = (ce = o == null ? void 0 : o.blob) == null ? void 0 : ce.split("undefined,")) == null ? void 0 : be[1] : m = o == null ? void 0 : o.blob;
|
|
556
|
+
let ae = m == null ? void 0 : m.split(",");
|
|
557
|
+
if ((ae == null ? void 0 : ae.length) > 1) {
|
|
558
|
+
let fe = await (ae == null ? void 0 : ae.map(async (V) => {
|
|
559
|
+
var me, ze, Ge, Xe, qe, He;
|
|
560
|
+
j = await we.get(V, {
|
|
561
561
|
responseType: "blob",
|
|
562
562
|
headers: {
|
|
563
563
|
"Content-Type": "application/json"
|
|
564
564
|
}
|
|
565
565
|
});
|
|
566
|
-
let
|
|
567
|
-
if (((
|
|
566
|
+
let ge = [];
|
|
567
|
+
if (((me = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : me.length) > 0) {
|
|
568
568
|
let vt = await ((ze = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : ze.map(async (Ct) => {
|
|
569
|
-
let Je = await
|
|
569
|
+
let Je = await we.get(Ct, {
|
|
570
570
|
responseType: "blob",
|
|
571
571
|
headers: {
|
|
572
572
|
"Content-Type": "application/json"
|
|
573
573
|
}
|
|
574
574
|
});
|
|
575
|
-
return
|
|
575
|
+
return ge.push(new Blob([Je.data], {
|
|
576
576
|
type: "application/octet-stream;charset=UTF-8"
|
|
577
577
|
})), Je;
|
|
578
578
|
}));
|
|
579
579
|
await Promise.all(vt);
|
|
580
580
|
}
|
|
581
|
-
return ((Xe =
|
|
582
|
-
suffix: "." + ((He =
|
|
583
|
-
blob: new Blob([
|
|
581
|
+
return ((Xe = V == null ? void 0 : V.split(".")) == null ? void 0 : Xe[((Ge = V == null ? void 0 : V.split(".")) == null ? void 0 : Ge.length) - 1]) !== "undefined" && g.push({
|
|
582
|
+
suffix: "." + ((He = V == null ? void 0 : V.split(".")) == null ? void 0 : He[((qe = V == null ? void 0 : V.split(".")) == null ? void 0 : qe.length) - 1]),
|
|
583
|
+
blob: new Blob([j.data], {
|
|
584
584
|
type: "application/octet-stream;charset=UTF-8"
|
|
585
585
|
}),
|
|
586
|
-
mtlBlobs:
|
|
587
|
-
}),
|
|
586
|
+
mtlBlobs: ge
|
|
587
|
+
}), j;
|
|
588
588
|
}));
|
|
589
|
-
await Promise.all(
|
|
589
|
+
await Promise.all(fe);
|
|
590
590
|
} else if (!(m != null && m.includes("https://")) && !(m != null && m.includes("http://"))) {
|
|
591
|
-
|
|
591
|
+
j = await Qe({
|
|
592
592
|
url: m
|
|
593
593
|
});
|
|
594
|
-
let
|
|
595
|
-
if (((
|
|
596
|
-
let
|
|
597
|
-
let
|
|
598
|
-
url:
|
|
594
|
+
let fe = [];
|
|
595
|
+
if (((N = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : N.length) > 0) {
|
|
596
|
+
let V = await ((p = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : p.map(async (ge) => {
|
|
597
|
+
let me = await Qe({
|
|
598
|
+
url: ge
|
|
599
599
|
});
|
|
600
|
-
return
|
|
600
|
+
return fe.push(new Blob([me.data], {
|
|
601
601
|
type: "application/octet-stream;charset=UTF-8"
|
|
602
|
-
})),
|
|
602
|
+
})), me;
|
|
603
603
|
}));
|
|
604
|
-
await Promise.all(
|
|
604
|
+
await Promise.all(V);
|
|
605
605
|
}
|
|
606
|
-
|
|
607
|
-
suffix: "." + ((
|
|
608
|
-
blob: new Blob([
|
|
606
|
+
Z = {
|
|
607
|
+
suffix: "." + ((de = m == null ? void 0 : m.split(".")) == null ? void 0 : de[((se = m == null ? void 0 : m.split(".")) == null ? void 0 : se.length) - 1]),
|
|
608
|
+
blob: new Blob([j.data], {
|
|
609
609
|
type: "application/octet-stream;charset=UTF-8"
|
|
610
610
|
}),
|
|
611
|
-
mtlBlobs:
|
|
611
|
+
mtlBlobs: fe
|
|
612
612
|
};
|
|
613
613
|
} else {
|
|
614
|
-
|
|
614
|
+
j = await we.get(m, {
|
|
615
615
|
responseType: "blob",
|
|
616
616
|
headers: {
|
|
617
617
|
"Content-Type": "application/json"
|
|
618
618
|
}
|
|
619
619
|
});
|
|
620
|
-
let
|
|
620
|
+
let fe = [];
|
|
621
621
|
if (((Re = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : Re.length) > 0) {
|
|
622
|
-
let
|
|
623
|
-
let
|
|
622
|
+
let V = await ((Ee = o == null ? void 0 : o.mtlBlobs) == null ? void 0 : Ee.map(async (ge) => {
|
|
623
|
+
let me = await we.get(ge, {
|
|
624
624
|
responseType: "blob",
|
|
625
625
|
headers: {
|
|
626
626
|
"Content-Type": "application/json"
|
|
627
627
|
}
|
|
628
628
|
});
|
|
629
|
-
return
|
|
629
|
+
return fe.push(new Blob([me.data], {
|
|
630
630
|
type: "application/octet-stream;charset=UTF-8"
|
|
631
|
-
})),
|
|
631
|
+
})), me;
|
|
632
632
|
}));
|
|
633
|
-
await Promise.all(
|
|
633
|
+
await Promise.all(V);
|
|
634
634
|
}
|
|
635
|
-
|
|
635
|
+
Z = {
|
|
636
636
|
suffix: "." + ((Oe = m == null ? void 0 : m.split(".")) == null ? void 0 : Oe[((Ke = m == null ? void 0 : m.split(".")) == null ? void 0 : Ke.length) - 1]),
|
|
637
|
-
blob: new Blob([
|
|
637
|
+
blob: new Blob([j.data], {
|
|
638
638
|
type: "application/octet-stream;charset=UTF-8"
|
|
639
639
|
}),
|
|
640
|
-
mtlBlobs:
|
|
640
|
+
mtlBlobs: fe
|
|
641
641
|
};
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
Z && g.push(Z);
|
|
644
644
|
}));
|
|
645
645
|
await Promise.all(C), (g == null ? void 0 : g.length) !== 0 && (w.value = !0, d.value.loadModelByDefaultPath(g));
|
|
646
646
|
}
|
|
647
647
|
},
|
|
648
648
|
{ immediate: !0, deep: !0 }
|
|
649
|
-
),
|
|
650
|
-
() =>
|
|
649
|
+
), E(
|
|
650
|
+
() => A.value,
|
|
651
651
|
async () => {
|
|
652
652
|
var r, v, _, g;
|
|
653
|
-
if (
|
|
654
|
-
let C = (r =
|
|
655
|
-
const
|
|
653
|
+
if (A.value !== "" && A.value) {
|
|
654
|
+
let C = (r = z.value) == null ? void 0 : r.split("/"), o = C[(C == null ? void 0 : C.length) - 2];
|
|
655
|
+
const Z = (((v = Pe == null ? void 0 : Pe.find((ce) => (ce == null ? void 0 : ce.key) === o)) == null ? void 0 : v.download) ?? "") + "/" + A.value, m = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), ae = await we.post(Z, null, {
|
|
656
656
|
responseType: "blob",
|
|
657
657
|
// 必须设置
|
|
658
658
|
headers: {
|
|
@@ -661,87 +661,87 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
661
661
|
"Content-Type": "application/json"
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
|
-
var
|
|
664
|
+
var e = new Blob([ae.data], {
|
|
665
665
|
type: "application/octet-stream;charset=UTF-8"
|
|
666
666
|
});
|
|
667
|
-
"" + ((g = (_ =
|
|
667
|
+
"" + ((g = (_ = A.value) == null ? void 0 : _.split(".")) == null ? void 0 : g[1]);
|
|
668
668
|
}
|
|
669
669
|
},
|
|
670
670
|
{ deep: !0, immediate: !0 }
|
|
671
671
|
);
|
|
672
|
-
const
|
|
673
|
-
c("open"), c("open"), c(!1), Te(() =>
|
|
674
|
-
const
|
|
675
|
-
|
|
672
|
+
const pe = c("");
|
|
673
|
+
c("open"), c("open"), c(!1), Te(() => oe.value);
|
|
674
|
+
const Fe = Te(() => ue.value.isRouter), he = c(!1), Ce = () => {
|
|
675
|
+
he.value = !0, setTimeout(() => {
|
|
676
676
|
d.value.loadModelByDefaultPath([{ suffix: ".urdf" }]);
|
|
677
677
|
}, 1e3);
|
|
678
678
|
};
|
|
679
|
-
return (
|
|
680
|
-
const v = B("el-dialog"), _ = B("el-button"), g = B("el-avatar"), C = B("el-header"), o = B("el-container"),
|
|
681
|
-
return u(),
|
|
682
|
-
|
|
683
|
-
modelValue:
|
|
684
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
679
|
+
return (e, r) => {
|
|
680
|
+
const v = B("el-dialog"), _ = B("el-button"), g = B("el-avatar"), C = B("el-header"), o = B("el-container"), j = B("el-icon"), Z = B("el-input"), m = B("el-aside"), ae = B("router-view"), ce = B("el-main"), be = Ze("loading");
|
|
681
|
+
return u(), $(Be, null, [
|
|
682
|
+
a(v, {
|
|
683
|
+
modelValue: he.value,
|
|
684
|
+
"onUpdate:modelValue": r[0] || (r[0] = (N) => he.value = N),
|
|
685
685
|
style: { height: "700px", width: "1800px" }
|
|
686
686
|
}, {
|
|
687
687
|
default: l(() => [
|
|
688
|
-
|
|
688
|
+
a(We, {
|
|
689
689
|
ref_key: "threeModelRef",
|
|
690
690
|
ref: d
|
|
691
691
|
}, null, 512)
|
|
692
692
|
]),
|
|
693
693
|
_: 1
|
|
694
694
|
}, 8, ["modelValue"]),
|
|
695
|
-
Se(
|
|
695
|
+
Se(a(o, { class: "client-container" }, {
|
|
696
696
|
default: l(() => [
|
|
697
|
-
|
|
697
|
+
a(C, { class: "client-structure-header" }, {
|
|
698
698
|
default: l(() => {
|
|
699
|
-
var
|
|
699
|
+
var N;
|
|
700
700
|
return [
|
|
701
701
|
y("div", Yt, [
|
|
702
|
-
|
|
702
|
+
a(_, {
|
|
703
703
|
id: "transparentBgButton",
|
|
704
704
|
onClick: n(at)
|
|
705
705
|
}, {
|
|
706
706
|
default: l(() => r[4] || (r[4] = [
|
|
707
|
-
|
|
707
|
+
X(" 返回页面 ")
|
|
708
708
|
])),
|
|
709
709
|
_: 1,
|
|
710
710
|
__: [4]
|
|
711
711
|
}, 8, ["onClick"]),
|
|
712
|
-
|
|
712
|
+
a(_, {
|
|
713
713
|
id: "transparentBgButton",
|
|
714
714
|
onClick: r[1] || (r[1] = (p) => {
|
|
715
|
-
var
|
|
716
|
-
return n(ot)((
|
|
715
|
+
var se, de;
|
|
716
|
+
return n(ot)((de = (se = n(S)) == null ? void 0 : se.map((Re) => Re.value)) == null ? void 0 : de.join("/"));
|
|
717
717
|
})
|
|
718
718
|
}, {
|
|
719
719
|
icon: l(() => [
|
|
720
|
-
|
|
720
|
+
a(_e, { name: "Store" })
|
|
721
721
|
]),
|
|
722
722
|
default: l(() => [
|
|
723
|
-
r[5] || (r[5] =
|
|
723
|
+
r[5] || (r[5] = X(" 保存页面 "))
|
|
724
724
|
]),
|
|
725
725
|
_: 1,
|
|
726
726
|
__: [5]
|
|
727
727
|
})
|
|
728
728
|
]),
|
|
729
729
|
y("div", Zt, [
|
|
730
|
-
|
|
731
|
-
breadArray: n(
|
|
730
|
+
a(yt, {
|
|
731
|
+
breadArray: n(S),
|
|
732
732
|
onClick: n(nt)
|
|
733
733
|
}, null, 8, ["breadArray", "onClick"])
|
|
734
734
|
]),
|
|
735
735
|
y("div", ea, [
|
|
736
|
-
|
|
737
|
-
|
|
736
|
+
ye(e.$slots, "default", {}, void 0, !0),
|
|
737
|
+
a(g, {
|
|
738
738
|
size: 35,
|
|
739
|
-
src: (
|
|
739
|
+
src: (N = n(te)) == null ? void 0 : N.avatarUrl
|
|
740
740
|
}, {
|
|
741
741
|
default: l(() => {
|
|
742
742
|
var p;
|
|
743
743
|
return [
|
|
744
|
-
|
|
744
|
+
X(ne(((p = n(te)) == null ? void 0 : p.account) ?? "未知"), 1)
|
|
745
745
|
];
|
|
746
746
|
}),
|
|
747
747
|
_: 1
|
|
@@ -751,104 +751,104 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
751
751
|
}),
|
|
752
752
|
_: 3
|
|
753
753
|
}),
|
|
754
|
-
n(
|
|
754
|
+
n(P) === "edit" ? (u(), D(o, {
|
|
755
755
|
key: 0,
|
|
756
756
|
class: "model-operate",
|
|
757
757
|
style: { "margin-top": "10px", height: "0px" }
|
|
758
758
|
}, {
|
|
759
759
|
default: l(() => [
|
|
760
760
|
y("div", ta, [
|
|
761
|
-
|
|
761
|
+
a(Ne)
|
|
762
762
|
]),
|
|
763
763
|
y("div", aa, [
|
|
764
|
-
|
|
764
|
+
a(Ie)
|
|
765
765
|
]),
|
|
766
766
|
y("div", oa, [
|
|
767
|
-
|
|
767
|
+
a(Ue)
|
|
768
768
|
])
|
|
769
769
|
]),
|
|
770
770
|
_: 1
|
|
771
|
-
})) :
|
|
771
|
+
})) : U("", !0)
|
|
772
772
|
]),
|
|
773
773
|
_: 3
|
|
774
774
|
}, 512), [
|
|
775
|
-
[Ae, n(
|
|
775
|
+
[Ae, n(P) === "edit"]
|
|
776
776
|
]),
|
|
777
|
-
Se((u(),
|
|
777
|
+
Se((u(), D(o, {
|
|
778
778
|
class: "client-container",
|
|
779
779
|
"element-loading-text": "正在加载页面数据..."
|
|
780
780
|
}, {
|
|
781
781
|
default: l(() => [
|
|
782
|
-
|
|
782
|
+
a(C, { class: "client-header" }, {
|
|
783
783
|
default: l(() => [
|
|
784
784
|
y("div", {
|
|
785
785
|
class: "client-header-logo",
|
|
786
|
-
onClick:
|
|
787
|
-
},
|
|
786
|
+
onClick: Ce
|
|
787
|
+
}, ne(n(I) === "" ? "CPMPIP" : n(I)), 1),
|
|
788
788
|
y("div", na, [
|
|
789
|
-
|
|
789
|
+
a(_t, { mode: "horizontal" })
|
|
790
790
|
]),
|
|
791
791
|
y("div", la, [
|
|
792
|
-
|
|
793
|
-
modelValue:
|
|
794
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
792
|
+
a(Z, {
|
|
793
|
+
modelValue: pe.value,
|
|
794
|
+
"onUpdate:modelValue": r[2] || (r[2] = (N) => pe.value = N),
|
|
795
795
|
clearable: "",
|
|
796
796
|
placeholder: "搜索",
|
|
797
797
|
style: { width: "130px" }
|
|
798
798
|
}, {
|
|
799
799
|
prefix: l(() => [
|
|
800
|
-
|
|
800
|
+
a(j, { class: "el-input__icon" }, {
|
|
801
801
|
default: l(() => [
|
|
802
|
-
|
|
802
|
+
a(n(dt))
|
|
803
803
|
]),
|
|
804
804
|
_: 1
|
|
805
805
|
})
|
|
806
806
|
]),
|
|
807
807
|
_: 1
|
|
808
808
|
}, 8, ["modelValue"]),
|
|
809
|
-
F.showButton ? (u(),
|
|
809
|
+
F.showButton ? (u(), D(_, {
|
|
810
810
|
key: 0,
|
|
811
811
|
id: "transparentBgButton",
|
|
812
812
|
onClick: n(lt)
|
|
813
813
|
}, {
|
|
814
814
|
icon: l(() => [
|
|
815
|
-
|
|
815
|
+
a(_e, { name: "App" })
|
|
816
816
|
]),
|
|
817
817
|
default: l(() => [
|
|
818
|
-
r[6] || (r[6] =
|
|
818
|
+
r[6] || (r[6] = X(" 生成APP "))
|
|
819
819
|
]),
|
|
820
820
|
_: 1,
|
|
821
821
|
__: [6]
|
|
822
|
-
}, 8, ["onClick"])) :
|
|
823
|
-
F.showButton && n(
|
|
822
|
+
}, 8, ["onClick"])) : U("", !0),
|
|
823
|
+
F.showButton && n(P) === "view" ? (u(), D(_, {
|
|
824
824
|
key: 1,
|
|
825
825
|
id: "transparentBgButton",
|
|
826
826
|
onClick: n(it)
|
|
827
827
|
}, {
|
|
828
828
|
icon: l(() => [
|
|
829
|
-
|
|
829
|
+
a(_e, { name: "write" })
|
|
830
830
|
]),
|
|
831
831
|
default: l(() => [
|
|
832
|
-
r[7] || (r[7] =
|
|
832
|
+
r[7] || (r[7] = X(" 修改布局 "))
|
|
833
833
|
]),
|
|
834
834
|
_: 1,
|
|
835
835
|
__: [7]
|
|
836
|
-
}, 8, ["onClick"])) :
|
|
837
|
-
|
|
838
|
-
|
|
836
|
+
}, 8, ["onClick"])) : U("", !0),
|
|
837
|
+
ye(e.$slots, "default", {}, void 0, !0),
|
|
838
|
+
a(ht, null, {
|
|
839
839
|
dropTitle: l(() => {
|
|
840
|
-
var
|
|
840
|
+
var N;
|
|
841
841
|
return [
|
|
842
|
-
|
|
842
|
+
a(gt, {
|
|
843
843
|
size: "35",
|
|
844
|
-
avatarUrl: (
|
|
844
|
+
avatarUrl: (N = n(te)) == null ? void 0 : N.avatarUrl,
|
|
845
845
|
showCropper: !1,
|
|
846
846
|
banClick: !0
|
|
847
847
|
}, {
|
|
848
848
|
avatarDefault: l(() => {
|
|
849
849
|
var p;
|
|
850
850
|
return [
|
|
851
|
-
|
|
851
|
+
X(ne(((p = n(te)) == null ? void 0 : p.account) ?? "未知"), 1)
|
|
852
852
|
];
|
|
853
853
|
}),
|
|
854
854
|
_: 1
|
|
@@ -857,14 +857,14 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
857
857
|
}),
|
|
858
858
|
dropMenu: l(() => [
|
|
859
859
|
y("div", ia, [
|
|
860
|
-
|
|
860
|
+
a(ke, {
|
|
861
861
|
emptyColor: !0,
|
|
862
862
|
class: "menu-button",
|
|
863
|
-
onClickTrigger:
|
|
863
|
+
onClickTrigger: G,
|
|
864
864
|
modelValue: "清空数据",
|
|
865
865
|
buttonType: ""
|
|
866
866
|
}),
|
|
867
|
-
|
|
867
|
+
a(ke, {
|
|
868
868
|
emptyColor: !0,
|
|
869
869
|
class: "menu-button",
|
|
870
870
|
onClickTrigger: i,
|
|
@@ -879,33 +879,33 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
879
879
|
]),
|
|
880
880
|
_: 3
|
|
881
881
|
}),
|
|
882
|
-
|
|
882
|
+
a(o, { class: "client-body" }, {
|
|
883
883
|
default: l(() => [
|
|
884
|
-
|
|
884
|
+
a(ce, { class: "client-main" }, {
|
|
885
885
|
default: l(() => {
|
|
886
|
-
var
|
|
886
|
+
var N;
|
|
887
887
|
return [
|
|
888
|
-
|
|
888
|
+
a(m, { class: "client-aside" }, {
|
|
889
889
|
default: l(() => [
|
|
890
|
-
|
|
890
|
+
a(tt, { mode: "vertical" })
|
|
891
891
|
]),
|
|
892
892
|
_: 1
|
|
893
893
|
}),
|
|
894
894
|
y("div", sa, [
|
|
895
|
-
|
|
896
|
-
var
|
|
897
|
-
return u(),
|
|
895
|
+
Fe.value ? (u(), D(ae, { key: 0 })) : (u(!0), $(Be, { key: 1 }, je((N = n(Me)(n(oe))) == null ? void 0 : N.filter((p) => p.comp !== "FormTop"), (p, se) => {
|
|
896
|
+
var de;
|
|
897
|
+
return u(), $("div", {
|
|
898
898
|
class: "item-view-content",
|
|
899
|
-
key:
|
|
899
|
+
key: se
|
|
900
900
|
}, [
|
|
901
|
-
((
|
|
902
|
-
(u(),
|
|
901
|
+
((de = p == null ? void 0 : p.comp) == null ? void 0 : de.toUpperCase()) !== "TABLE" && p.name ? (u(), $("div", ra, ne(p.name), 1)) : U("", !0),
|
|
902
|
+
(u(), D(et(n(st)(p.comp)), {
|
|
903
903
|
compName: p.name,
|
|
904
904
|
itemData: p == null ? void 0 : p.compData,
|
|
905
905
|
childItemData: p == null ? void 0 : p.itemChildData,
|
|
906
|
-
key: (p == null ? void 0 : p.id) ??
|
|
906
|
+
key: (p == null ? void 0 : p.id) ?? se,
|
|
907
907
|
onChange: n(ct),
|
|
908
|
-
index: (p == null ? void 0 : p.id) ??
|
|
908
|
+
index: (p == null ? void 0 : p.id) ?? se,
|
|
909
909
|
onContentChange: n(ut),
|
|
910
910
|
onPageChange: n(rt),
|
|
911
911
|
onRowClick: k
|
|
@@ -923,17 +923,17 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
923
923
|
]),
|
|
924
924
|
_: 3
|
|
925
925
|
})), [
|
|
926
|
-
[Ae, n(
|
|
927
|
-
[be, n(
|
|
926
|
+
[Ae, n(P) === "view"],
|
|
927
|
+
[be, n(re)]
|
|
928
928
|
]),
|
|
929
929
|
y("div", null, [
|
|
930
|
-
|
|
930
|
+
a(Rt, {
|
|
931
931
|
visible: w.value,
|
|
932
|
-
onBeforeDestroy: r[3] || (r[3] = (
|
|
932
|
+
onBeforeDestroy: r[3] || (r[3] = (N) => w.value = !1),
|
|
933
933
|
style: { height: "700px", width: "1000px" }
|
|
934
934
|
}, {
|
|
935
935
|
default: l(() => [
|
|
936
|
-
|
|
936
|
+
a(We, {
|
|
937
937
|
ref_key: "threeModelRef",
|
|
938
938
|
ref: d
|
|
939
939
|
}, null, 512)
|
|
@@ -944,7 +944,7 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
944
944
|
], 64);
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
}), ca = /* @__PURE__ */
|
|
947
|
+
}), ca = /* @__PURE__ */ ve(ua, [["__scopeId", "data-v-e0878328"]]), da = { class: "system-wrap" }, ma = {
|
|
948
948
|
__name: "index",
|
|
949
949
|
props: {
|
|
950
950
|
windowConfig: {
|
|
@@ -964,70 +964,70 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
964
964
|
jsonContents: Array
|
|
965
965
|
},
|
|
966
966
|
emits: ["buildContent", "showChild"],
|
|
967
|
-
setup(F, { emit:
|
|
968
|
-
const
|
|
967
|
+
setup(F, { emit: ee }) {
|
|
968
|
+
const t = $e(J), w = Le(J), S = De();
|
|
969
969
|
c(!1);
|
|
970
|
-
const
|
|
971
|
-
|
|
972
|
-
},
|
|
970
|
+
const K = c(!0), s = F, O = ee, T = (b) => {
|
|
971
|
+
O("showChild", b);
|
|
972
|
+
}, A = Te(() => {
|
|
973
973
|
switch (s == null ? void 0 : s.platform) {
|
|
974
974
|
case "browser":
|
|
975
975
|
return Pt;
|
|
976
976
|
case "client":
|
|
977
977
|
return $t;
|
|
978
978
|
}
|
|
979
|
-
}),
|
|
980
|
-
const
|
|
981
|
-
b == null || b.forEach((
|
|
982
|
-
|
|
979
|
+
}), le = (b) => {
|
|
980
|
+
const P = document.documentElement;
|
|
981
|
+
b == null || b.forEach((L) => {
|
|
982
|
+
P.style.setProperty(L.name, L.value);
|
|
983
983
|
});
|
|
984
984
|
};
|
|
985
|
-
|
|
986
|
-
b &&
|
|
985
|
+
E(() => s.platform, (b, P) => {
|
|
986
|
+
b && le(A.value);
|
|
987
987
|
}, { immediate: !0 });
|
|
988
|
-
const
|
|
989
|
-
|
|
988
|
+
const te = () => {
|
|
989
|
+
O("buildContent");
|
|
990
990
|
};
|
|
991
|
-
return
|
|
991
|
+
return E(
|
|
992
992
|
() => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
|
|
993
993
|
async () => {
|
|
994
|
-
var
|
|
995
|
-
if (((
|
|
996
|
-
|
|
994
|
+
var L, W, Q, h;
|
|
995
|
+
if (((L = s == null ? void 0 : s.jsonContents) == null ? void 0 : L.length) > 0) {
|
|
996
|
+
t.setOriginalData(s == null ? void 0 : s.jsonContents);
|
|
997
997
|
return;
|
|
998
998
|
}
|
|
999
|
-
if (!(s != null && s.content) || ((
|
|
1000
|
-
|
|
1001
|
-
let b = [],
|
|
1002
|
-
w.setSelectTitle([]), w.setSelectIndex(""), w.setSelectMenu(""), (h = (
|
|
1003
|
-
|
|
1004
|
-
}), b =
|
|
999
|
+
if (!(s != null && s.content) || ((W = s == null ? void 0 : s.content) == null ? void 0 : W.length) === 0) return;
|
|
1000
|
+
K.value = !0, S.setImportLoading(!0);
|
|
1001
|
+
let b = [], P = [];
|
|
1002
|
+
w.setSelectTitle([]), w.setSelectIndex(""), w.setSelectMenu(""), (h = (Q = s == null ? void 0 : s.content) == null ? void 0 : Q.filter((d) => d !== "")) == null || h.forEach((d) => {
|
|
1003
|
+
P.push(Ft(d));
|
|
1004
|
+
}), b = P == null ? void 0 : P[0], await bt(b), await ft(), t.setOriginalData(b), S.setImportLoading(!1);
|
|
1005
1005
|
},
|
|
1006
1006
|
{ deep: !0, immediate: !0 }
|
|
1007
|
-
), (b,
|
|
1008
|
-
F.platform === "browser" ? (u(),
|
|
1007
|
+
), (b, P) => (u(), $("div", da, [
|
|
1008
|
+
F.platform === "browser" ? (u(), D(Qt, {
|
|
1009
1009
|
key: 0,
|
|
1010
1010
|
showButton: F.showButton
|
|
1011
1011
|
}, {
|
|
1012
1012
|
default: l(() => [
|
|
1013
|
-
|
|
1013
|
+
ye(b.$slots, "default", {}, void 0, !0)
|
|
1014
1014
|
]),
|
|
1015
1015
|
_: 3
|
|
1016
|
-
}, 8, ["showButton"])) : (u(),
|
|
1016
|
+
}, 8, ["showButton"])) : (u(), D(ca, {
|
|
1017
1017
|
key: 1,
|
|
1018
1018
|
windowConfig: F.windowConfig,
|
|
1019
1019
|
showButton: F.showButton,
|
|
1020
|
-
onBuildContent:
|
|
1020
|
+
onBuildContent: te,
|
|
1021
1021
|
onShowChild: T
|
|
1022
1022
|
}, {
|
|
1023
1023
|
default: l(() => [
|
|
1024
|
-
|
|
1024
|
+
ye(b.$slots, "default", {}, void 0, !0)
|
|
1025
1025
|
]),
|
|
1026
1026
|
_: 3
|
|
1027
1027
|
}, 8, ["windowConfig", "showButton"]))
|
|
1028
1028
|
]));
|
|
1029
1029
|
}
|
|
1030
|
-
}, pa = /* @__PURE__ */
|
|
1030
|
+
}, pa = /* @__PURE__ */ ve(ma, [["__scopeId", "data-v-5e89b0de"]]), ha = { class: "add-model-content" }, fa = {
|
|
1031
1031
|
key: 0,
|
|
1032
1032
|
class: "model-operate"
|
|
1033
1033
|
}, ga = { class: "model-select" }, _a = { class: "model-fill" }, ya = {
|
|
@@ -1062,163 +1062,163 @@ const _t = /* @__PURE__ */ Ce(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
1062
1062
|
}
|
|
1063
1063
|
},
|
|
1064
1064
|
emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
|
|
1065
|
-
setup(F, { emit:
|
|
1066
|
-
const
|
|
1065
|
+
setup(F, { emit: ee }) {
|
|
1066
|
+
const t = F, w = ee, S = c([]), K = c(0), s = c([]), O = c([]), T = c(0), A = $e(J), le = De(J), { itemData: te, originalData: b } = H(A), { activeMenuPath: P, platform: L } = H(le), W = c(null), Q = c(0), h = c([]);
|
|
1067
1067
|
c("");
|
|
1068
|
-
const d = c(0),
|
|
1068
|
+
const d = c(0), Y = () => {
|
|
1069
1069
|
w("buildContent");
|
|
1070
1070
|
};
|
|
1071
|
-
|
|
1072
|
-
() =>
|
|
1071
|
+
E(
|
|
1072
|
+
() => t == null ? void 0 : t.pageKey,
|
|
1073
1073
|
async () => {
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
const
|
|
1077
|
-
|
|
1078
|
-
var
|
|
1079
|
-
if ((
|
|
1080
|
-
let
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
});
|
|
1074
|
+
let f = {};
|
|
1075
|
+
if ((t == null ? void 0 : t.pageKey) !== "") {
|
|
1076
|
+
const x = await St(t == null ? void 0 : t.pageKey, sessionStorage.getItem("systemKey"), "", t == null ? void 0 : t.pageKey);
|
|
1077
|
+
x == null || x.forEach((R) => {
|
|
1078
|
+
var M, k, i, G, q, pe;
|
|
1079
|
+
if ((R == null ? void 0 : R.comp) === "Table") {
|
|
1080
|
+
let Fe = [], he = (i = (k = (M = R == null ? void 0 : R.compData) == null ? void 0 : M.find((e) => (e == null ? void 0 : e.key) === "header")) == null ? void 0 : k.contents) == null ? void 0 : i.map((e) => e == null ? void 0 : e.label), Ce = (pe = (q = (G = R == null ? void 0 : R.compData) == null ? void 0 : G.find((e) => (e == null ? void 0 : e.key) === "tableContents")) == null ? void 0 : q.contents) == null ? void 0 : pe.map((e) => (e = e == null ? void 0 : e.filter((r) => !(r != null && r.id)), e));
|
|
1081
|
+
Ce == null || Ce.forEach((e) => {
|
|
1082
|
+
Fe.push(At(e, he == null ? void 0 : he.filter((r) => r !== "操作")));
|
|
1083
|
+
}), f[R.name] = Fe;
|
|
1084
1084
|
}
|
|
1085
1085
|
}), w("threeData", f);
|
|
1086
1086
|
}
|
|
1087
1087
|
},
|
|
1088
1088
|
{ deep: !0, immediate: !0 }
|
|
1089
1089
|
);
|
|
1090
|
-
const
|
|
1090
|
+
const re = (f) => {
|
|
1091
1091
|
w("openThreeBuild", f);
|
|
1092
1092
|
};
|
|
1093
|
-
|
|
1094
|
-
() =>
|
|
1093
|
+
E(
|
|
1094
|
+
() => t == null ? void 0 : t.pathContent,
|
|
1095
1095
|
() => {
|
|
1096
|
-
(
|
|
1096
|
+
(t == null ? void 0 : t.pathContent) !== "" && A.setSystemPath(t == null ? void 0 : t.pathContent);
|
|
1097
1097
|
},
|
|
1098
1098
|
{
|
|
1099
1099
|
deep: !0,
|
|
1100
1100
|
immediate: !0
|
|
1101
1101
|
}
|
|
1102
1102
|
);
|
|
1103
|
-
const
|
|
1103
|
+
const z = (f) => {
|
|
1104
1104
|
w("contentChange", f);
|
|
1105
|
-
},
|
|
1106
|
-
var
|
|
1107
|
-
const
|
|
1105
|
+
}, ie = (f) => {
|
|
1106
|
+
var R;
|
|
1107
|
+
const x = (R = Me(f == null ? void 0 : f.wholeValue)) == null ? void 0 : R.map((M) => {
|
|
1108
1108
|
var k;
|
|
1109
|
-
return (
|
|
1109
|
+
return (M == null ? void 0 : M.comp) === "Form" && (M.compData = (k = M.compData) == null ? void 0 : k.map((i) => ((i == null ? void 0 : i.key) === "formContent" && (i.contents = Dt(i == null ? void 0 : i.contents)), i))), M;
|
|
1110
1110
|
});
|
|
1111
1111
|
w("change", {
|
|
1112
1112
|
originalContents: b.value,
|
|
1113
1113
|
currentContents: f == null ? void 0 : f.wholeValue,
|
|
1114
1114
|
editContent: f == null ? void 0 : f.editValue,
|
|
1115
|
-
arrayToContents:
|
|
1115
|
+
arrayToContents: x
|
|
1116
1116
|
});
|
|
1117
1117
|
};
|
|
1118
|
-
|
|
1118
|
+
E(
|
|
1119
1119
|
() => s.value,
|
|
1120
1120
|
() => {
|
|
1121
|
-
d.value === s.value.length && s.value.length !== 0 && (
|
|
1121
|
+
d.value === s.value.length && s.value.length !== 0 && (S.value = s.value);
|
|
1122
1122
|
},
|
|
1123
1123
|
{ deep: !0, immediate: !0 }
|
|
1124
1124
|
);
|
|
1125
|
-
const
|
|
1126
|
-
|
|
1127
|
-
},
|
|
1128
|
-
const
|
|
1129
|
-
if (!
|
|
1130
|
-
new FileReader(),
|
|
1131
|
-
const
|
|
1125
|
+
const I = () => {
|
|
1126
|
+
W.value !== null && W.value.click();
|
|
1127
|
+
}, ue = async (f) => {
|
|
1128
|
+
const x = f.target.files;
|
|
1129
|
+
if (!x) return;
|
|
1130
|
+
new FileReader(), S.value = [], s.value = [], d.value = x.length;
|
|
1131
|
+
const R = Array.from(x).map(async (M) => await new Promise((k) => {
|
|
1132
1132
|
const i = new FileReader();
|
|
1133
|
-
i.onload = (
|
|
1133
|
+
i.onload = (G) => {
|
|
1134
1134
|
try {
|
|
1135
|
-
s.value.push(
|
|
1136
|
-
} catch (
|
|
1137
|
-
console.error("解析失败:",
|
|
1135
|
+
s.value.push(G.target.result), Q.value++;
|
|
1136
|
+
} catch (q) {
|
|
1137
|
+
console.error("解析失败:", q);
|
|
1138
1138
|
return;
|
|
1139
1139
|
}
|
|
1140
|
-
}, i.onerror = () => k(`读取 ${
|
|
1140
|
+
}, i.onerror = () => k(`读取 ${M.name} 失败`), i.readAsText(M), f.target.value = "", W.value = null, K.value++;
|
|
1141
1141
|
}));
|
|
1142
|
-
await Promise.all(
|
|
1142
|
+
await Promise.all(R);
|
|
1143
1143
|
};
|
|
1144
|
-
return
|
|
1145
|
-
() => [
|
|
1144
|
+
return E(
|
|
1145
|
+
() => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
|
|
1146
1146
|
async () => {
|
|
1147
|
-
await ft(),
|
|
1147
|
+
await ft(), S.value = t.content, O.value = t == null ? void 0 : t.jsonContents;
|
|
1148
1148
|
},
|
|
1149
1149
|
{ deep: !0, immediate: !0 }
|
|
1150
|
-
),
|
|
1151
|
-
() =>
|
|
1150
|
+
), E(
|
|
1151
|
+
() => Q.value,
|
|
1152
1152
|
() => {
|
|
1153
1153
|
var f;
|
|
1154
|
-
((f = h.value) == null ? void 0 : f.length) !== 0 && (
|
|
1154
|
+
((f = h.value) == null ? void 0 : f.length) !== 0 && (A.setOriginalData(h.value), A.setItemData(h.value));
|
|
1155
1155
|
},
|
|
1156
1156
|
{ deep: !0, immediate: !0 }
|
|
1157
|
-
), (f,
|
|
1158
|
-
const
|
|
1159
|
-
return u(),
|
|
1160
|
-
(
|
|
1157
|
+
), (f, x) => {
|
|
1158
|
+
const R = B("svg-icon"), M = B("el-button");
|
|
1159
|
+
return u(), $("div", ha, [
|
|
1160
|
+
(t == null ? void 0 : t.mode) === "edit" ? (u(), $("div", fa, [
|
|
1161
1161
|
y("div", ga, [
|
|
1162
|
-
|
|
1162
|
+
a(Ne)
|
|
1163
1163
|
]),
|
|
1164
|
-
(u(),
|
|
1164
|
+
(u(), $("div", {
|
|
1165
1165
|
class: "model-show",
|
|
1166
1166
|
key: T.value
|
|
1167
1167
|
}, [
|
|
1168
|
-
|
|
1168
|
+
a(Ie)
|
|
1169
1169
|
])),
|
|
1170
1170
|
y("div", _a, [
|
|
1171
|
-
|
|
1171
|
+
a(Ue)
|
|
1172
1172
|
])
|
|
1173
|
-
])) :
|
|
1174
|
-
(
|
|
1175
|
-
(u(),
|
|
1173
|
+
])) : U("", !0),
|
|
1174
|
+
(t == null ? void 0 : t.mode) === "view" ? (u(), $("div", ya, [
|
|
1175
|
+
(u(), D(pa, {
|
|
1176
1176
|
showButton: F.showButton,
|
|
1177
|
-
platform: n(
|
|
1178
|
-
content:
|
|
1179
|
-
onChange:
|
|
1180
|
-
jsonContents:
|
|
1181
|
-
onContentChange:
|
|
1182
|
-
onBuildContent:
|
|
1177
|
+
platform: n(L),
|
|
1178
|
+
content: S.value,
|
|
1179
|
+
onChange: ie,
|
|
1180
|
+
jsonContents: O.value,
|
|
1181
|
+
onContentChange: z,
|
|
1182
|
+
onBuildContent: Y,
|
|
1183
1183
|
key: T.value,
|
|
1184
|
-
onShowChild:
|
|
1184
|
+
onShowChild: re
|
|
1185
1185
|
}, {
|
|
1186
1186
|
default: l(() => {
|
|
1187
1187
|
var k;
|
|
1188
1188
|
return [
|
|
1189
|
-
((k =
|
|
1189
|
+
((k = t == null ? void 0 : t.jsonContents) == null ? void 0 : k.length) === 0 && (t != null && t.showButton) ? (u(), D(M, {
|
|
1190
1190
|
key: 0,
|
|
1191
1191
|
id: "transparentBgButton",
|
|
1192
|
-
onClick:
|
|
1192
|
+
onClick: I
|
|
1193
1193
|
}, {
|
|
1194
1194
|
icon: l(() => [
|
|
1195
|
-
|
|
1195
|
+
a(R, { name: "import" })
|
|
1196
1196
|
]),
|
|
1197
1197
|
default: l(() => [
|
|
1198
|
-
(u(),
|
|
1198
|
+
(u(), $("input", {
|
|
1199
1199
|
type: "file",
|
|
1200
|
-
key:
|
|
1200
|
+
key: K.value,
|
|
1201
1201
|
ref_key: "fileInput",
|
|
1202
|
-
ref:
|
|
1202
|
+
ref: W,
|
|
1203
1203
|
accept: ".txt, .inm, .iml, .imd",
|
|
1204
|
-
onChange:
|
|
1204
|
+
onChange: ue,
|
|
1205
1205
|
style: { display: "none" },
|
|
1206
1206
|
multiple: ""
|
|
1207
1207
|
}, null, 32)),
|
|
1208
|
-
|
|
1208
|
+
x[0] || (x[0] = X(" 导入模型 "))
|
|
1209
1209
|
]),
|
|
1210
1210
|
_: 1,
|
|
1211
1211
|
__: [0]
|
|
1212
|
-
})) :
|
|
1212
|
+
})) : U("", !0)
|
|
1213
1213
|
];
|
|
1214
1214
|
}),
|
|
1215
1215
|
_: 1
|
|
1216
1216
|
}, 8, ["showButton", "platform", "content", "jsonContents"]))
|
|
1217
|
-
])) :
|
|
1217
|
+
])) : U("", !0)
|
|
1218
1218
|
]);
|
|
1219
1219
|
};
|
|
1220
1220
|
}
|
|
1221
|
-
}, Ia = /* @__PURE__ */
|
|
1221
|
+
}, Ia = /* @__PURE__ */ ve(va, [["__scopeId", "data-v-82f8c0ec"]]);
|
|
1222
1222
|
export {
|
|
1223
1223
|
Ia as default
|
|
1224
1224
|
};
|