ss-component-new 1.1.552 → 1.1.554
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-C2JHM_8A.js → index-B5DP9GHv.js} +106 -106
- package/dist/{index-B9uC4tS8.cjs → index-C8DwyrtS.cjs} +1 -1
- package/dist/{index-BImKcDoO.cjs → index-NzNwF1Bc.cjs} +1 -1
- package/dist/{index-CNKck1IN.js → index-j0138X4A.js} +1 -1
- 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-Cyl4KzRm.js → threeModel-BJjMjU46.js} +4 -3
- package/dist/{threeModel-DXgbPmC1.cjs → threeModel-CMXrjPQi.cjs} +1 -1
- package/package.json +1 -1
- /package/dist/{index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-CMsstxHC.cjs → index.vue_vue_type_style_index_0_scoped_d65464db_lang-CMsstxHC.cjs} +0 -0
- /package/dist/{index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-CfknFSZO.js → index.vue_vue_type_style_index_0_scoped_d65464db_lang-CfknFSZO.js} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { resolveComponent as
|
|
1
|
+
import { resolveComponent as F, createBlock as M, 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-DNmz0vZR.js";
|
|
3
3
|
import tt from "./index-BXuzdNd8.js";
|
|
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.
|
|
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_d65464db_lang-CfknFSZO.js";
|
|
5
5
|
import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { p as J, s as H, u as
|
|
6
|
+
import { p as J, s as H, u as Me, e as dt, c as De, 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
8
|
import { S as _e } from "./index-BHtNKL1L.js";
|
|
9
9
|
import { u as $e } from "./modelComp-B4I2gbtf.js";
|
|
10
10
|
import { _ as ht, a as ke, s as Rt } from "./index-CcbZfGsJ.js";
|
|
11
11
|
import { u as Le, a as Tt, l as ft, g as St, b as At } from "./index-CiZ2YAhq.js";
|
|
12
12
|
import { _ as gt } from "./index.vue_vue_type_script_setup_true_lang-lD5FjnBK.js";
|
|
13
|
-
import We from "./threeModel-
|
|
14
|
-
import { u as
|
|
13
|
+
import We from "./threeModel-BJjMjU46.js";
|
|
14
|
+
import { u as Dt } from "./index-CTL7xS-L.js";
|
|
15
15
|
import { d as Qe } from "./index-nuI9V5ye.js";
|
|
16
16
|
import "vue-router";
|
|
17
|
-
import { a as
|
|
17
|
+
import { a as Mt } from "./array-CLz11m07.js";
|
|
18
18
|
import { c as $t, b as Pt } from "./index.vue_vue_type_style_index_0_scoped_d888ede3_lang-bRTgUmAd.js";
|
|
19
|
-
function xt(
|
|
20
|
-
const s =
|
|
21
|
-
return u(),
|
|
22
|
-
mode:
|
|
23
|
-
menuList:
|
|
24
|
-
onClickMenu:
|
|
25
|
-
onOpenMenu:
|
|
26
|
-
onCloseMenu:
|
|
19
|
+
function xt(b, ee, t, k, S, K) {
|
|
20
|
+
const s = F("svg-icon"), O = F("ssMenu");
|
|
21
|
+
return u(), M(O, {
|
|
22
|
+
mode: b.mode,
|
|
23
|
+
menuList: b.renderMenuList,
|
|
24
|
+
onClickMenu: b.clickMenu,
|
|
25
|
+
onOpenMenu: b.openMenu,
|
|
26
|
+
onCloseMenu: b.closeMenu
|
|
27
27
|
}, {
|
|
28
28
|
title: l(({ menu: T }) => [
|
|
29
29
|
a(s, {
|
|
@@ -47,14 +47,14 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
emits: ["click"],
|
|
50
|
-
setup(
|
|
51
|
-
const t =
|
|
50
|
+
setup(b, { emit: ee }) {
|
|
51
|
+
const t = b, k = c([]), S = ee;
|
|
52
52
|
wt(() => {
|
|
53
|
-
|
|
53
|
+
k.value = t == null ? void 0 : t.breadArray;
|
|
54
54
|
}), E(
|
|
55
55
|
() => t == null ? void 0 : t.breadArray,
|
|
56
56
|
() => {
|
|
57
|
-
|
|
57
|
+
k.value = t == null ? void 0 : t.breadArray;
|
|
58
58
|
},
|
|
59
59
|
{ deep: !0, immediate: !0 }
|
|
60
60
|
);
|
|
@@ -62,7 +62,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
62
62
|
S("click", s);
|
|
63
63
|
};
|
|
64
64
|
return (s, O) => (u(), $("div", Vt, [
|
|
65
|
-
(u(!0), $(Be, null, je(
|
|
65
|
+
(u(!0), $(Be, null, je(k.value, (T, A) => {
|
|
66
66
|
var le;
|
|
67
67
|
return u(), $("div", {
|
|
68
68
|
key: A,
|
|
@@ -71,9 +71,9 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
71
71
|
y("div", {
|
|
72
72
|
class: "bread-title",
|
|
73
73
|
onClick: (te) => K(T),
|
|
74
|
-
style: kt({ opacity: ((le =
|
|
74
|
+
style: kt({ opacity: ((le = k.value) == null ? void 0 : le.length) - 1 === A ? "0.7" : "1" })
|
|
75
75
|
}, ne(T.value), 13, jt),
|
|
76
|
-
A !==
|
|
76
|
+
A !== k.value.length - 1 && Array.isArray(k.value) ? (u(), $("div", Nt, ne("/"))) : U("", !0)
|
|
77
77
|
]);
|
|
78
78
|
}), 128))
|
|
79
79
|
]));
|
|
@@ -94,8 +94,8 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
94
94
|
default: !0
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
|
-
setup(
|
|
98
|
-
const ee = Le(J), { selectTitle: t } = H(ee),
|
|
97
|
+
setup(b) {
|
|
98
|
+
const ee = Le(J), { selectTitle: t } = H(ee), k = pt(), { loginUserInfo: S } = H(k), K = $e(J), { isEdit: s, routeToChildPath: O } = H(K), T = Me(J), { importLoading: A, activeTopMenuPath: le, activeAsideMenu: te } = H(T), R = c(""), P = Te(() => te.value.isRouter), L = () => {
|
|
99
99
|
sessionStorage.clear(), window.location.reload();
|
|
100
100
|
}, W = async () => {
|
|
101
101
|
var d, Y, re, z;
|
|
@@ -120,13 +120,13 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
120
120
|
T.setActiveMenuPath(O.value), K.setRouteToChildPath("");
|
|
121
121
|
};
|
|
122
122
|
return (h, d) => {
|
|
123
|
-
const Y =
|
|
123
|
+
const Y = F("el-button"), re = F("el-avatar"), z = F("el-header"), ie = F("el-container"), I = F("el-icon"), ue = F("el-input"), f = F("el-aside"), x = F("router-view"), w = F("el-main"), D = Ze("loading");
|
|
124
124
|
return u(), $(Be, null, [
|
|
125
125
|
Se(a(ie, { class: "client-container" }, {
|
|
126
126
|
default: l(() => [
|
|
127
127
|
a(z, { class: "client-structure-header" }, {
|
|
128
128
|
default: l(() => {
|
|
129
|
-
var
|
|
129
|
+
var B;
|
|
130
130
|
return [
|
|
131
131
|
y("div", Ut, [
|
|
132
132
|
a(Y, {
|
|
@@ -166,7 +166,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
166
166
|
ye(h.$slots, "default", {}, void 0, !0),
|
|
167
167
|
a(re, {
|
|
168
168
|
size: 35,
|
|
169
|
-
src: (
|
|
169
|
+
src: (B = n(S)) == null ? void 0 : B.avatarUrl
|
|
170
170
|
}, {
|
|
171
171
|
default: l(() => {
|
|
172
172
|
var i;
|
|
@@ -181,7 +181,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
181
181
|
}),
|
|
182
182
|
_: 3
|
|
183
183
|
}),
|
|
184
|
-
n(s) === "edit" ? (u(),
|
|
184
|
+
n(s) === "edit" ? (u(), M(ie, {
|
|
185
185
|
key: 0,
|
|
186
186
|
class: "model-operate",
|
|
187
187
|
style: { "margin-top": "10px", height: "0px" }
|
|
@@ -204,7 +204,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
204
204
|
}, 512), [
|
|
205
205
|
[Ae, n(s) === "edit"]
|
|
206
206
|
]),
|
|
207
|
-
Se((u(),
|
|
207
|
+
Se((u(), M(ie, {
|
|
208
208
|
class: "client-container",
|
|
209
209
|
"element-loading-text": "正在加载页面数据..."
|
|
210
210
|
}, {
|
|
@@ -217,8 +217,8 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
217
217
|
]),
|
|
218
218
|
y("div", Xt, [
|
|
219
219
|
a(ue, {
|
|
220
|
-
modelValue:
|
|
221
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
220
|
+
modelValue: R.value,
|
|
221
|
+
"onUpdate:modelValue": d[1] || (d[1] = (B) => R.value = B),
|
|
222
222
|
clearable: "",
|
|
223
223
|
placeholder: "搜索",
|
|
224
224
|
style: { width: "130px" }
|
|
@@ -233,7 +233,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
233
233
|
]),
|
|
234
234
|
_: 1
|
|
235
235
|
}, 8, ["modelValue"]),
|
|
236
|
-
|
|
236
|
+
b.showButton ? (u(), M(Y, {
|
|
237
237
|
key: 0,
|
|
238
238
|
id: "transparentBgButton",
|
|
239
239
|
onClick: n(lt)
|
|
@@ -247,7 +247,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
247
247
|
_: 1,
|
|
248
248
|
__: [4]
|
|
249
249
|
}, 8, ["onClick"])) : U("", !0),
|
|
250
|
-
|
|
250
|
+
b.showButton && n(s) === "view" ? (u(), M(Y, {
|
|
251
251
|
key: 1,
|
|
252
252
|
id: "transparentBgButton",
|
|
253
253
|
onClick: n(it)
|
|
@@ -264,11 +264,11 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
264
264
|
ye(h.$slots, "default", {}, void 0, !0),
|
|
265
265
|
a(ht, null, {
|
|
266
266
|
dropTitle: l(() => {
|
|
267
|
-
var
|
|
267
|
+
var B;
|
|
268
268
|
return [
|
|
269
269
|
a(gt, {
|
|
270
270
|
size: "35",
|
|
271
|
-
avatarUrl: (
|
|
271
|
+
avatarUrl: (B = n(S)) == null ? void 0 : B.avatarUrl,
|
|
272
272
|
showCropper: !1,
|
|
273
273
|
banClick: !0
|
|
274
274
|
}, {
|
|
@@ -309,9 +309,9 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
309
309
|
}),
|
|
310
310
|
a(ie, { class: "client-body" }, {
|
|
311
311
|
default: l(() => [
|
|
312
|
-
a(
|
|
312
|
+
a(w, { class: "client-main" }, {
|
|
313
313
|
default: l(() => {
|
|
314
|
-
var
|
|
314
|
+
var B;
|
|
315
315
|
return [
|
|
316
316
|
a(f, { class: "client-aside" }, {
|
|
317
317
|
default: l(() => [
|
|
@@ -320,21 +320,21 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
320
320
|
_: 1
|
|
321
321
|
}),
|
|
322
322
|
y("div", Ht, [
|
|
323
|
-
P.value ? (u(),
|
|
324
|
-
n(O) !== "" ? (u(),
|
|
323
|
+
P.value ? (u(), M(x, { key: 0 })) : U("", !0),
|
|
324
|
+
n(O) !== "" ? (u(), M(ke, {
|
|
325
325
|
key: 1,
|
|
326
326
|
class: "calculator-content back-content",
|
|
327
327
|
onClickTrigger: Q,
|
|
328
328
|
modelValue: "返回"
|
|
329
329
|
})) : U("", !0),
|
|
330
|
-
P.value ? U("", !0) : (u(!0), $(Be, { key: 2 }, je((
|
|
330
|
+
P.value ? U("", !0) : (u(!0), $(Be, { key: 2 }, je((B = n(De)(n(oe))) == null ? void 0 : B.filter((i) => i.comp !== "FormTop"), (i, G) => {
|
|
331
331
|
var q;
|
|
332
332
|
return u(), $("div", {
|
|
333
333
|
class: "item-view-content",
|
|
334
334
|
key: G
|
|
335
335
|
}, [
|
|
336
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(),
|
|
337
|
+
(u(), M(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,
|
|
@@ -358,7 +358,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
358
358
|
_: 3
|
|
359
359
|
})), [
|
|
360
360
|
[Ae, n(s) === "view"],
|
|
361
|
-
[
|
|
361
|
+
[D, n(A)]
|
|
362
362
|
])
|
|
363
363
|
], 64);
|
|
364
364
|
};
|
|
@@ -461,28 +461,28 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
461
461
|
}
|
|
462
462
|
},
|
|
463
463
|
emits: ["showChild", "buildContent"],
|
|
464
|
-
setup(
|
|
465
|
-
const t = Le(J),
|
|
464
|
+
setup(b, { emit: ee }) {
|
|
465
|
+
const t = Le(J), k = c(!1);
|
|
466
466
|
c(0), c(!1);
|
|
467
467
|
const { selectTitle: S } = H(t), K = c(!1), s = c(!1);
|
|
468
468
|
c(!1);
|
|
469
469
|
const O = Tt(J), T = c(!1), { tableShowThree: A } = H(O), le = pt(), { loginUserInfo: te } = H(le);
|
|
470
470
|
c(null);
|
|
471
|
-
const
|
|
471
|
+
const R = $e(J), { isEdit: P } = H(R), L = Me(J), W = Dt(J), { objUrl: Q, blobUrls: h } = H(W), d = c(null);
|
|
472
472
|
c(!1);
|
|
473
473
|
const Y = c(!0);
|
|
474
474
|
c(!1);
|
|
475
|
-
const { importLoading: re, activeMenuPath: z, activeTopMenuPath: ie, platName: I, activeAsideMenu: ue } = H(L), f = c(!1), x = c(!1),
|
|
475
|
+
const { importLoading: re, activeMenuPath: z, activeTopMenuPath: ie, platName: I, activeAsideMenu: ue } = H(L), f = c(!1), x = c(!1), w = c(!1), D = ee;
|
|
476
476
|
E(() => z.value, async (e) => {
|
|
477
|
-
e && (
|
|
477
|
+
e && (w.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
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
|
|
482
|
+
const B = (e) => {
|
|
483
483
|
if ((e == null ? void 0 : e.type) === "table") {
|
|
484
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 &&
|
|
485
|
+
v && D("showChild", {
|
|
486
486
|
url: v,
|
|
487
487
|
row: e == null ? void 0 : e.row
|
|
488
488
|
});
|
|
@@ -549,7 +549,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
549
549
|
var e, r, v, _;
|
|
550
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
|
-
const C = await ((_ =
|
|
552
|
+
const C = await ((_ = De(h == null ? void 0 : h.value)) == null ? void 0 : _.map(async (o) => {
|
|
553
553
|
var ce, be, N, p, se, de, Re, Ee, Ke, Oe;
|
|
554
554
|
let j, Z, m;
|
|
555
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;
|
|
@@ -642,7 +642,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
642
642
|
}
|
|
643
643
|
Z && g.push(Z);
|
|
644
644
|
}));
|
|
645
|
-
await Promise.all(C), (g == null ? void 0 : g.length) !== 0 && (
|
|
645
|
+
await Promise.all(C), (g == null ? void 0 : g.length) !== 0 && (k.value = !0, d.value.loadModelByDefaultPath(g));
|
|
646
646
|
}
|
|
647
647
|
},
|
|
648
648
|
{ immediate: !0, deep: !0 }
|
|
@@ -677,7 +677,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
677
677
|
}, 1e3);
|
|
678
678
|
};
|
|
679
679
|
return (e, r) => {
|
|
680
|
-
const v =
|
|
680
|
+
const v = F("el-dialog"), _ = F("el-button"), g = F("el-avatar"), C = F("el-header"), o = F("el-container"), j = F("el-icon"), Z = F("el-input"), m = F("el-aside"), ae = F("router-view"), ce = F("el-main"), be = Ze("loading");
|
|
681
681
|
return u(), $(Be, null, [
|
|
682
682
|
a(v, {
|
|
683
683
|
modelValue: he.value,
|
|
@@ -751,7 +751,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
751
751
|
}),
|
|
752
752
|
_: 3
|
|
753
753
|
}),
|
|
754
|
-
n(P) === "edit" ? (u(),
|
|
754
|
+
n(P) === "edit" ? (u(), M(o, {
|
|
755
755
|
key: 0,
|
|
756
756
|
class: "model-operate",
|
|
757
757
|
style: { "margin-top": "10px", height: "0px" }
|
|
@@ -774,7 +774,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
774
774
|
}, 512), [
|
|
775
775
|
[Ae, n(P) === "edit"]
|
|
776
776
|
]),
|
|
777
|
-
Se((u(),
|
|
777
|
+
Se((u(), M(o, {
|
|
778
778
|
class: "client-container",
|
|
779
779
|
"element-loading-text": "正在加载页面数据..."
|
|
780
780
|
}, {
|
|
@@ -806,7 +806,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
806
806
|
]),
|
|
807
807
|
_: 1
|
|
808
808
|
}, 8, ["modelValue"]),
|
|
809
|
-
|
|
809
|
+
b.showButton ? (u(), M(_, {
|
|
810
810
|
key: 0,
|
|
811
811
|
id: "transparentBgButton",
|
|
812
812
|
onClick: n(lt)
|
|
@@ -820,7 +820,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
820
820
|
_: 1,
|
|
821
821
|
__: [6]
|
|
822
822
|
}, 8, ["onClick"])) : U("", !0),
|
|
823
|
-
|
|
823
|
+
b.showButton && n(P) === "view" ? (u(), M(_, {
|
|
824
824
|
key: 1,
|
|
825
825
|
id: "transparentBgButton",
|
|
826
826
|
onClick: n(it)
|
|
@@ -892,14 +892,14 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
892
892
|
_: 1
|
|
893
893
|
}),
|
|
894
894
|
y("div", sa, [
|
|
895
|
-
Fe.value ? (u(),
|
|
895
|
+
Fe.value ? (u(), M(ae, { key: 0 })) : (u(!0), $(Be, { key: 1 }, je((N = n(De)(n(oe))) == null ? void 0 : N.filter((p) => p.comp !== "FormTop"), (p, se) => {
|
|
896
896
|
var de;
|
|
897
897
|
return u(), $("div", {
|
|
898
898
|
class: "item-view-content",
|
|
899
899
|
key: se
|
|
900
900
|
}, [
|
|
901
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(),
|
|
902
|
+
(u(), M(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,
|
|
@@ -908,7 +908,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
908
908
|
index: (p == null ? void 0 : p.id) ?? se,
|
|
909
909
|
onContentChange: n(ut),
|
|
910
910
|
onPageChange: n(rt),
|
|
911
|
-
onRowClick:
|
|
911
|
+
onRowClick: B
|
|
912
912
|
}, null, 40, ["compName", "itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
913
913
|
]);
|
|
914
914
|
}), 128))
|
|
@@ -928,8 +928,8 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
928
928
|
]),
|
|
929
929
|
y("div", null, [
|
|
930
930
|
a(Rt, {
|
|
931
|
-
visible:
|
|
932
|
-
onBeforeDestroy: r[3] || (r[3] = (N) =>
|
|
931
|
+
visible: k.value,
|
|
932
|
+
onBeforeDestroy: r[3] || (r[3] = (N) => k.value = !1),
|
|
933
933
|
style: { height: "700px", width: "1000px" }
|
|
934
934
|
}, {
|
|
935
935
|
default: l(() => [
|
|
@@ -964,11 +964,11 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
964
964
|
jsonContents: Array
|
|
965
965
|
},
|
|
966
966
|
emits: ["buildContent", "showChild"],
|
|
967
|
-
setup(
|
|
968
|
-
const t = $e(J),
|
|
967
|
+
setup(b, { emit: ee }) {
|
|
968
|
+
const t = $e(J), k = Le(J), S = Me();
|
|
969
969
|
c(!1);
|
|
970
|
-
const K = c(!0), s =
|
|
971
|
-
O("showChild",
|
|
970
|
+
const K = c(!0), s = b, O = ee, T = (R) => {
|
|
971
|
+
O("showChild", R);
|
|
972
972
|
}, A = Te(() => {
|
|
973
973
|
switch (s == null ? void 0 : s.platform) {
|
|
974
974
|
case "browser":
|
|
@@ -976,14 +976,14 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
976
976
|
case "client":
|
|
977
977
|
return $t;
|
|
978
978
|
}
|
|
979
|
-
}), le = (
|
|
979
|
+
}), le = (R) => {
|
|
980
980
|
const P = document.documentElement;
|
|
981
|
-
|
|
981
|
+
R == null || R.forEach((L) => {
|
|
982
982
|
P.style.setProperty(L.name, L.value);
|
|
983
983
|
});
|
|
984
984
|
};
|
|
985
|
-
E(() => s.platform, (
|
|
986
|
-
|
|
985
|
+
E(() => s.platform, (R, P) => {
|
|
986
|
+
R && le(A.value);
|
|
987
987
|
}, { immediate: !0 });
|
|
988
988
|
const te = () => {
|
|
989
989
|
O("buildContent");
|
|
@@ -998,30 +998,30 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
998
998
|
}
|
|
999
999
|
if (!(s != null && s.content) || ((W = s == null ? void 0 : s.content) == null ? void 0 : W.length) === 0) return;
|
|
1000
1000
|
K.value = !0, S.setImportLoading(!0);
|
|
1001
|
-
let
|
|
1002
|
-
|
|
1001
|
+
let R = [], P = [];
|
|
1002
|
+
k.setSelectTitle([]), k.setSelectIndex(""), k.setSelectMenu(""), (h = (Q = s == null ? void 0 : s.content) == null ? void 0 : Q.filter((d) => d !== "")) == null || h.forEach((d) => {
|
|
1003
1003
|
P.push(Ft(d));
|
|
1004
|
-
}),
|
|
1004
|
+
}), R = P == null ? void 0 : P[0], await bt(R), await ft(), t.setOriginalData(R), S.setImportLoading(!1);
|
|
1005
1005
|
},
|
|
1006
1006
|
{ deep: !0, immediate: !0 }
|
|
1007
|
-
), (
|
|
1008
|
-
|
|
1007
|
+
), (R, P) => (u(), $("div", da, [
|
|
1008
|
+
b.platform === "browser" ? (u(), M(Qt, {
|
|
1009
1009
|
key: 0,
|
|
1010
|
-
showButton:
|
|
1010
|
+
showButton: b.showButton
|
|
1011
1011
|
}, {
|
|
1012
1012
|
default: l(() => [
|
|
1013
|
-
ye(
|
|
1013
|
+
ye(R.$slots, "default", {}, void 0, !0)
|
|
1014
1014
|
]),
|
|
1015
1015
|
_: 3
|
|
1016
|
-
}, 8, ["showButton"])) : (u(),
|
|
1016
|
+
}, 8, ["showButton"])) : (u(), M(ca, {
|
|
1017
1017
|
key: 1,
|
|
1018
|
-
windowConfig:
|
|
1019
|
-
showButton:
|
|
1018
|
+
windowConfig: b.windowConfig,
|
|
1019
|
+
showButton: b.showButton,
|
|
1020
1020
|
onBuildContent: te,
|
|
1021
1021
|
onShowChild: T
|
|
1022
1022
|
}, {
|
|
1023
1023
|
default: l(() => [
|
|
1024
|
-
ye(
|
|
1024
|
+
ye(R.$slots, "default", {}, void 0, !0)
|
|
1025
1025
|
]),
|
|
1026
1026
|
_: 3
|
|
1027
1027
|
}, 8, ["windowConfig", "showButton"]))
|
|
@@ -1062,11 +1062,11 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
1062
1062
|
}
|
|
1063
1063
|
},
|
|
1064
1064
|
emits: ["change", "contentChange", "buildContent", "openThreeBuild", "threeData"],
|
|
1065
|
-
setup(
|
|
1066
|
-
const t =
|
|
1065
|
+
setup(b, { emit: ee }) {
|
|
1066
|
+
const t = b, k = ee, S = c([]), K = c(0), s = c([]), O = c([]), T = c(0), A = $e(J), le = Me(J), { itemData: te, originalData: R } = H(A), { activeMenuPath: P, platform: L } = H(le), W = c(null), Q = c(0), h = c([]);
|
|
1067
1067
|
c("");
|
|
1068
1068
|
const d = c(0), Y = () => {
|
|
1069
|
-
|
|
1069
|
+
k("buildContent");
|
|
1070
1070
|
};
|
|
1071
1071
|
E(
|
|
1072
1072
|
() => t == null ? void 0 : t.pageKey,
|
|
@@ -1074,21 +1074,21 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
1074
1074
|
let f = {};
|
|
1075
1075
|
if ((t == null ? void 0 : t.pageKey) !== "") {
|
|
1076
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((
|
|
1078
|
-
var
|
|
1079
|
-
if ((
|
|
1080
|
-
let Fe = [], he = (i = (
|
|
1077
|
+
x == null || x.forEach((w) => {
|
|
1078
|
+
var D, B, i, G, q, pe;
|
|
1079
|
+
if ((w == null ? void 0 : w.comp) === "Table") {
|
|
1080
|
+
let Fe = [], he = (i = (B = (D = w == null ? void 0 : w.compData) == null ? void 0 : D.find((e) => (e == null ? void 0 : e.key) === "header")) == null ? void 0 : B.contents) == null ? void 0 : i.map((e) => e == null ? void 0 : e.label), Ce = (pe = (q = (G = w == null ? void 0 : w.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
1081
|
Ce == null || Ce.forEach((e) => {
|
|
1082
1082
|
Fe.push(At(e, he == null ? void 0 : he.filter((r) => r !== "操作")));
|
|
1083
|
-
}), f[
|
|
1083
|
+
}), f[w.name] = Fe, f[w.name + "Content"] = w == null ? void 0 : w.compData;
|
|
1084
1084
|
}
|
|
1085
|
-
}),
|
|
1085
|
+
}), k("threeData", f);
|
|
1086
1086
|
}
|
|
1087
1087
|
},
|
|
1088
1088
|
{ deep: !0, immediate: !0 }
|
|
1089
1089
|
);
|
|
1090
1090
|
const re = (f) => {
|
|
1091
|
-
|
|
1091
|
+
k("openThreeBuild", f);
|
|
1092
1092
|
};
|
|
1093
1093
|
E(
|
|
1094
1094
|
() => t == null ? void 0 : t.pathContent,
|
|
@@ -1101,15 +1101,15 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
1101
1101
|
}
|
|
1102
1102
|
);
|
|
1103
1103
|
const z = (f) => {
|
|
1104
|
-
|
|
1104
|
+
k("contentChange", f);
|
|
1105
1105
|
}, ie = (f) => {
|
|
1106
|
-
var
|
|
1107
|
-
const x = (
|
|
1108
|
-
var
|
|
1109
|
-
return (
|
|
1106
|
+
var w;
|
|
1107
|
+
const x = (w = De(f == null ? void 0 : f.wholeValue)) == null ? void 0 : w.map((D) => {
|
|
1108
|
+
var B;
|
|
1109
|
+
return (D == null ? void 0 : D.comp) === "Form" && (D.compData = (B = D.compData) == null ? void 0 : B.map((i) => ((i == null ? void 0 : i.key) === "formContent" && (i.contents = Mt(i == null ? void 0 : i.contents)), i))), D;
|
|
1110
1110
|
});
|
|
1111
|
-
|
|
1112
|
-
originalContents:
|
|
1111
|
+
k("change", {
|
|
1112
|
+
originalContents: R.value,
|
|
1113
1113
|
currentContents: f == null ? void 0 : f.wholeValue,
|
|
1114
1114
|
editContent: f == null ? void 0 : f.editValue,
|
|
1115
1115
|
arrayToContents: x
|
|
@@ -1128,7 +1128,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
1128
1128
|
const x = f.target.files;
|
|
1129
1129
|
if (!x) return;
|
|
1130
1130
|
new FileReader(), S.value = [], s.value = [], d.value = x.length;
|
|
1131
|
-
const
|
|
1131
|
+
const w = Array.from(x).map(async (D) => await new Promise((B) => {
|
|
1132
1132
|
const i = new FileReader();
|
|
1133
1133
|
i.onload = (G) => {
|
|
1134
1134
|
try {
|
|
@@ -1137,9 +1137,9 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
1137
1137
|
console.error("解析失败:", q);
|
|
1138
1138
|
return;
|
|
1139
1139
|
}
|
|
1140
|
-
}, i.onerror = () =>
|
|
1140
|
+
}, i.onerror = () => B(`读取 ${D.name} 失败`), i.readAsText(D), f.target.value = "", W.value = null, K.value++;
|
|
1141
1141
|
}));
|
|
1142
|
-
await Promise.all(
|
|
1142
|
+
await Promise.all(w);
|
|
1143
1143
|
};
|
|
1144
1144
|
return E(
|
|
1145
1145
|
() => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
|
|
@@ -1155,7 +1155,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
1155
1155
|
},
|
|
1156
1156
|
{ deep: !0, immediate: !0 }
|
|
1157
1157
|
), (f, x) => {
|
|
1158
|
-
const
|
|
1158
|
+
const w = F("svg-icon"), D = F("el-button");
|
|
1159
1159
|
return u(), $("div", ha, [
|
|
1160
1160
|
(t == null ? void 0 : t.mode) === "edit" ? (u(), $("div", fa, [
|
|
1161
1161
|
y("div", ga, [
|
|
@@ -1172,8 +1172,8 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
1172
1172
|
])
|
|
1173
1173
|
])) : U("", !0),
|
|
1174
1174
|
(t == null ? void 0 : t.mode) === "view" ? (u(), $("div", ya, [
|
|
1175
|
-
(u(),
|
|
1176
|
-
showButton:
|
|
1175
|
+
(u(), M(pa, {
|
|
1176
|
+
showButton: b.showButton,
|
|
1177
1177
|
platform: n(L),
|
|
1178
1178
|
content: S.value,
|
|
1179
1179
|
onChange: ie,
|
|
@@ -1184,15 +1184,15 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
1184
1184
|
onShowChild: re
|
|
1185
1185
|
}, {
|
|
1186
1186
|
default: l(() => {
|
|
1187
|
-
var
|
|
1187
|
+
var B;
|
|
1188
1188
|
return [
|
|
1189
|
-
((
|
|
1189
|
+
((B = t == null ? void 0 : t.jsonContents) == null ? void 0 : B.length) === 0 && (t != null && t.showButton) ? (u(), M(D, {
|
|
1190
1190
|
key: 0,
|
|
1191
1191
|
id: "transparentBgButton",
|
|
1192
1192
|
onClick: I
|
|
1193
1193
|
}, {
|
|
1194
1194
|
icon: l(() => [
|
|
1195
|
-
a(
|
|
1195
|
+
a(w, { name: "import" })
|
|
1196
1196
|
]),
|
|
1197
1197
|
default: l(() => [
|
|
1198
1198
|
(u(), $("input", {
|
|
@@ -1218,7 +1218,7 @@ const _t = /* @__PURE__ */ ve(Bt, [["render", xt], ["__scopeId", "data-v-5c2d7ed
|
|
|
1218
1218
|
]);
|
|
1219
1219
|
};
|
|
1220
1220
|
}
|
|
1221
|
-
}, Ia = /* @__PURE__ */ ve(va, [["__scopeId", "data-v-
|
|
1221
|
+
}, Ia = /* @__PURE__ */ ve(va, [["__scopeId", "data-v-d65464db"]]);
|
|
1222
1222
|
export {
|
|
1223
1223
|
Ia as default
|
|
1224
1224
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-BsItO9KY.cjs");require("./menu-B-wiVQl5.cjs");require("./array-CP2rPazD.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_d888ede3_lang-BlwV7pHr.cjs");require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-BsItO9KY.cjs");require("./menu-B-wiVQl5.cjs");require("./array-CP2rPazD.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_d888ede3_lang-BlwV7pHr.cjs");require("./index.vue_vue_type_style_index_0_scoped_d65464db_lang-CMsstxHC.cjs");require("./crypto-Cd99aqcx.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CK9PyDrN.cjs");require("./threeModel.vue_vue_type_style_index_0_scoped_14112288_lang-DCn4bomb.cjs");require("vue-router");require("./index-CZ6afBwK.cjs");const g={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""},pageKey:{type:String,default:""}},emits:["buildContent","openThreeBuild","threeData"],setup(o,{emit:c}){const e=o,i=c,l=()=>{i("buildContent")},s=t=>{i("openThreeBuild",t)},w=t=>{i("threeData",t)},u=()=>{var a;const t=e!=null&&e.windowConfig?(a=e==null?void 0:e.windowConfig)==null?void 0:a.width:window.innerWidth,r=1920,d=16,h=t/r,f=d*h;document.documentElement.style.fontSize=`${f}px`};return n.onMounted(()=>{u(),window.addEventListener("resize",u)}),(t,r)=>{const d=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(d,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:o.windowConfig,onBuildContent:l,onOpenThreeBuild:s,pageKey:o.pageKey,onThreeData:w},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","pageKey"])])}}},m=C._export_sfc(g,[["__scopeId","data-v-907901e0"]]);exports.default=m;
|