ss-component-new 1.1.259 → 1.1.261
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-BAR5vwN7.js → array-BKq3BIQz.js} +2 -2
- package/dist/{array-8L1AOBQp.cjs → array-CGcjUVKX.cjs} +1 -1
- package/dist/{cloneDeep-vy5d0U00.cjs → cloneDeep-B7uQBoFQ.cjs} +1 -1
- package/dist/{cloneDeep-DZzy1Il4.js → cloneDeep-C2Kxf4cz.js} +1 -1
- package/dist/{index-C-9bL2-I.cjs → index-1FDUIkCX.cjs} +1 -1
- package/dist/{index-DKiauCvh.js → index-B-UH_ubV.js} +8 -8
- package/dist/{index-TCyNl2MK.js → index-B2U6bRXC.js} +1 -1
- package/dist/{index-DVDdSL2R.js → index-B5JYLkwE.js} +984 -941
- package/dist/{index-B4Ev6tVX.cjs → index-BDeQhlHq.cjs} +1 -1
- package/dist/{index-7ptGWZXL.cjs → index-BEMqiaE4.cjs} +1 -1
- package/dist/{index-C4heMZb-.js → index-BEUHy5vT.js} +5 -5
- package/dist/{index-CG19P4G2.cjs → index-BKkSFReI.cjs} +1 -1
- package/dist/{index-C8YTwQ2U.cjs → index-BNRMWt2X.cjs} +1 -1
- package/dist/{index-DHZhHL1L.js → index-BPDeDTcT.js} +8 -8
- package/dist/{index-rAGiNKLH.cjs → index-BPc4Eac7.cjs} +1 -1
- package/dist/{index-D5VxsSYo.cjs → index-BSHYuItV.cjs} +1 -1
- package/dist/index-BSvAtDik.js +32149 -0
- package/dist/{index-B0eP9Dy6.cjs → index-BTE2McnW.cjs} +1 -1
- package/dist/{index-CP5-LufC.js → index-BXTWkSfY.js} +3 -3
- package/dist/{index-CPKoBUqk.cjs → index-BePWixJ7.cjs} +1 -1
- package/dist/{index-DlDk8iSi.js → index-BpRK84YO.js} +9 -9
- package/dist/{index-Bi7W_wF3.cjs → index-BqjnsqxM.cjs} +1 -1
- package/dist/{index-B_CuXQ8H.js → index-BuzU8y87.js} +3 -3
- package/dist/index-BxNkT68g.js +271 -0
- package/dist/{index-ChOzMlwd.cjs → index-C4WiBNX7.cjs} +1 -1
- package/dist/{index-CvyNoFpY.cjs → index-C99sTbLR.cjs} +1 -1
- package/dist/{index-D2NWcpdI.cjs → index-CPLQkq0l.cjs} +1 -1
- package/dist/{index-DBROy8Np.js → index-CRA36cu_.js} +4 -4
- package/dist/{index-BPVoFxu1.js → index-CUS5J9_e.js} +3 -3
- package/dist/{index-DfzZvWqB.cjs → index-CU_Jx-5J.cjs} +1 -1
- package/dist/{index-Cn8hBlVR.js → index-CV8NL82B.js} +1 -1
- package/dist/index-CW3K0wJl.cjs +1 -0
- package/dist/index-CaEGsvtY.cjs +1 -0
- package/dist/{index-dEcwBSrA.cjs → index-CbAVZYKT.cjs} +1 -1
- package/dist/{index-CO8isUR8.js → index-CcWrPjiF.js} +1 -1
- package/dist/{index-CEU_-vVQ.cjs → index-CdbyfD9T.cjs} +1 -1
- package/dist/{index-DchO-l9M.cjs → index-ChDUVY4O.cjs} +1 -1
- package/dist/{index-3YXTNfHi.cjs → index-ChrvsNKe.cjs} +1 -1
- package/dist/{index-DZK00p0U.cjs → index-Clc0UQZs.cjs} +1 -1
- package/dist/index-CrY9cebv.cjs +1 -0
- package/dist/{index-VEeZQyiv.js → index-CtNApXqx.js} +1 -1
- package/dist/{index-C0KdYFnu.cjs → index-D5iqPx4_.cjs} +1 -1
- package/dist/{index-BZW3cHEf.js → index-DBUg3cD4.js} +5 -5
- package/dist/{index-C67E6B-n.cjs → index-DJXxlOVw.cjs} +1 -1
- package/dist/{index-CcbQH9dl.js → index-DJt9epxc.js} +3 -3
- package/dist/{index-BMz8jBkf.js → index-DMxFp_J8.js} +7 -7
- package/dist/{index-D2ZusKzk.js → index-DSHdwrIv.js} +4 -4
- package/dist/{index-Ci50GJSS.js → index-DiqIaffC.js} +6 -6
- package/dist/index-DqW6UiIO.cjs +3839 -0
- package/dist/{index-C2rXdvLP.js → index-Dqq6ANsR.js} +1 -1
- package/dist/{index-DSOsbQ8m.js → index-DrgtDDgh.js} +1 -1
- package/dist/index-Dz-F31F9.js +3475 -0
- package/dist/{index-MAuxykeu.js → index-JlAZlJSa.js} +6 -6
- package/dist/index-LztiiC8W.js +683 -0
- package/dist/{index-vS7rFC3d.js → index-P8qnw1yi.js} +5 -5
- package/dist/{index-D9qxwyPB.cjs → index-SuPnthkA.cjs} +1 -1
- package/dist/{index-CaZgwKKu.cjs → index-XGNOqMia.cjs} +1 -1
- package/dist/{index-_lrJ_Z3S.js → index-i7I_BwC_.js} +4 -4
- package/dist/{index-0Rbq0r0Y.js → index-k1B4X854.js} +4 -4
- package/dist/index-kzgPDfJF.cjs +9 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-t_FbjOts.cjs → index.vue_vue_type_script_setup_true_lang-CsELnqsB.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CvTBmGDC.js → index.vue_vue_type_script_setup_true_lang-GU5YecI_.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-BPrVtCUd.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CiQLJOHK.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-qsAIigHk.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-HXVPBHSR.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-CdoqwUjR.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BP1ltJdK.js} +12 -12
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BQgHk7jY.cjs → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Dhxd_sQH.cjs} +1 -1
- package/dist/{login-B2FvC181.cjs → login-MRZ_aZ2l.cjs} +1 -1
- package/dist/{login-CN3w9WCz.js → login-f0ZOWhgZ.js} +2 -2
- package/dist/{main-BDgkyynt.js → main-CD7tAcIb.js} +7 -7
- package/dist/{main-DRa5LCF9.cjs → main-CpGTA5Qv.cjs} +1 -1
- package/dist/{menu-DjHQN1B-.cjs → menu-PjSpUL7w.cjs} +1 -1
- package/dist/{menu-B10MAns7.js → menu-uQv0bEzE.js} +1 -1
- package/dist/{modelComp-KS7VRV8A.js → modelComp-BavIqTd8.js} +1 -1
- package/dist/{modelComp-DqpOIkHs.cjs → modelComp-qapurFEA.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +2 -1
- package/dist/index-B69DGyLH.js +0 -264
- package/dist/index-B8XOc8ur.js +0 -673
- package/dist/index-BG7PNsqD.js +0 -22139
- package/dist/index-C-lzYeWw.cjs +0 -3832
- package/dist/index-CS8aeX_B.cjs +0 -1
- package/dist/index-CkaXBiAY.cjs +0 -1
- package/dist/index-DjZKWUq4.cjs +0 -1
- package/dist/index-DzzEJh49.cjs +0 -9
- package/dist/index-_eZMZ6DS.js +0 -3459
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as n, reactive as s, onMounted as r, createElementBlock as c, openBlock as i, createVNode as t } from "vue";
|
|
2
|
-
import { a as m } from "./index-
|
|
3
|
-
import { s as l } from "./index-
|
|
4
|
-
import { S as u } from "./index-
|
|
5
|
-
import { u as d, s as p } from "./menu-
|
|
6
|
-
import { u as f } from "./login-
|
|
7
|
-
import { g } from "./index-
|
|
2
|
+
import { a as m } from "./index-B5JYLkwE.js";
|
|
3
|
+
import { s as l } from "./index-BSvAtDik.js";
|
|
4
|
+
import { S as u } from "./index-DiqIaffC.js";
|
|
5
|
+
import { u as d, s as p } from "./menu-uQv0bEzE.js";
|
|
6
|
+
import { u as f } from "./login-f0ZOWhgZ.js";
|
|
7
|
+
import { g } from "./index-DSHdwrIv.js";
|
|
8
8
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const _ = { class: "role-wrapper" }, C = /* @__PURE__ */ n({
|
|
10
10
|
__name: "index",
|
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
import { ref as h, onMounted as he, watch as J, createElementBlock as r, openBlock as o, Fragment as Y, renderList as Z, createElementVNode as i, createCommentVNode as j, normalizeStyle as De, toDisplayString as T, resolveComponent as C, resolveDirective as fe, withDirectives as pe, createBlock as y, withCtx as c, createVNode as l, unref as e, createTextVNode as z, renderSlot as X, resolveDynamicComponent as ae, defineComponent as be, nextTick as Ie } from "vue";
|
|
2
|
+
import { m as re, a as de, b as ue } from "./index-BPDeDTcT.js";
|
|
3
|
+
import Ce from "./index-CcWrPjiF.js";
|
|
4
|
+
import { p as P } from "./index-DrgtDDgh.js";
|
|
5
|
+
import { u as ne } from "./modelComp-BavIqTd8.js";
|
|
6
|
+
import { s as F, u as oe } from "./menu-uQv0bEzE.js";
|
|
7
|
+
import { u as xe } from "./index-Dz-F31F9.js";
|
|
8
|
+
import { u as Me, a as me, t as Te, l as ge } from "./index-BSvAtDik.js";
|
|
9
|
+
import { _ as Ae, e as je, s as Fe } from "./index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BP1ltJdK.js";
|
|
10
|
+
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
import { i as Pe, e as Be, b as _e, c as ve, a as Le } from "./array-BKq3BIQz.js";
|
|
12
|
+
import { u as ye } from "./login-f0ZOWhgZ.js";
|
|
13
|
+
import { S as ee } from "./index-BHtNKL1L.js";
|
|
14
|
+
import { o as we, c as ke, a as $e, b as te, s as K, g as se, d as le, e as ie, f as ce } from "./index-BxNkT68g.js";
|
|
15
|
+
import { E as Ee } from "./index-B-UH_ubV.js";
|
|
16
|
+
import { c as Q } from "./cloneDeep-C2Kxf4cz.js";
|
|
17
|
+
const Ne = { class: "bread-content" }, Ue = ["onClick"], Ve = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "split-title"
|
|
20
|
+
}, Re = {
|
|
21
|
+
__name: "index",
|
|
22
|
+
props: {
|
|
23
|
+
breadArray: {
|
|
24
|
+
type: Array,
|
|
25
|
+
default: () => []
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: ["click"],
|
|
29
|
+
setup($, { emit: B }) {
|
|
30
|
+
const t = $, v = h([]), w = B;
|
|
31
|
+
he(() => {
|
|
32
|
+
v.value = t == null ? void 0 : t.breadArray;
|
|
33
|
+
}), J(
|
|
34
|
+
() => t == null ? void 0 : t.breadArray,
|
|
35
|
+
() => {
|
|
36
|
+
v.value = t == null ? void 0 : t.breadArray;
|
|
37
|
+
},
|
|
38
|
+
{ deep: !0, immediate: !0 }
|
|
39
|
+
);
|
|
40
|
+
const s = (_) => {
|
|
41
|
+
w("click", _);
|
|
42
|
+
};
|
|
43
|
+
return (_, f) => (o(), r("div", Ne, [
|
|
44
|
+
(o(!0), r(Y, null, Z(v.value, (u, S) => {
|
|
45
|
+
var D;
|
|
46
|
+
return o(), r("div", {
|
|
47
|
+
key: S,
|
|
48
|
+
class: "bread-item"
|
|
49
|
+
}, [
|
|
50
|
+
i("div", {
|
|
51
|
+
class: "bread-title",
|
|
52
|
+
onClick: (N) => s(u),
|
|
53
|
+
style: De({ opacity: ((D = v.value) == null ? void 0 : D.length) - 1 === S ? "0.7" : "1" })
|
|
54
|
+
}, T(u.value), 13, Ue),
|
|
55
|
+
S !== v.value.length - 1 && Array.isArray(v.value) ? (o(), r("div", Ve, T("/"))) : j("", !0)
|
|
56
|
+
]);
|
|
57
|
+
}), 128))
|
|
58
|
+
]));
|
|
59
|
+
}
|
|
60
|
+
}, Se = /* @__PURE__ */ q(Re, [["__scopeId", "data-v-ded7e2bd"]]), ze = { class: "item-menu-content" }, Je = { class: "item-left-content" }, Oe = {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: "page-icon"
|
|
63
|
+
}, We = { class: "avatar" }, He = { style: { display: "flex" } }, qe = { class: "select-icon" }, Ge = {
|
|
64
|
+
key: 0,
|
|
65
|
+
class: "model-operate",
|
|
66
|
+
style: { width: "0px" }
|
|
67
|
+
}, Ke = { class: "model-select" }, Qe = { class: "model-fill" }, Xe = {
|
|
68
|
+
key: 1,
|
|
69
|
+
class: "show-main-content"
|
|
70
|
+
}, Ye = { class: "show-content" }, Ze = { class: "item-view-group" }, et = { class: "show-item-content" }, tt = { class: "item-view-group" }, nt = {
|
|
71
|
+
key: 2,
|
|
72
|
+
class: "show-main-content"
|
|
73
|
+
}, ot = {
|
|
74
|
+
__name: "browser",
|
|
75
|
+
props: {
|
|
76
|
+
content: String,
|
|
77
|
+
jsonContents: Array
|
|
78
|
+
},
|
|
79
|
+
emits: ["change", "contentChange"],
|
|
80
|
+
setup($, { emit: B }) {
|
|
81
|
+
const t = ye(), { loginUserInfo: v, cryptoInfo: w } = F(t);
|
|
82
|
+
he(() => {
|
|
83
|
+
Ee({
|
|
84
|
+
title: "温馨提示:",
|
|
85
|
+
type: "success",
|
|
86
|
+
message: "欢迎使用系统",
|
|
87
|
+
duration: 1e3
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
const s = ne(P);
|
|
91
|
+
Me(P), h(!0);
|
|
92
|
+
const _ = oe();
|
|
93
|
+
h(!0);
|
|
94
|
+
const { itemData: f, isEdit: u, isRefreshCurStructure: S, curStructureCompIds: D } = F(s), N = me(P), { activeMenuPath: b, menus: O, importLoading: A } = F(_), { selectIndex: g, selectTitle: L } = F(N);
|
|
95
|
+
return h([]), h(!1), (E, k) => {
|
|
96
|
+
const U = C("el-aside"), W = C("el-button"), H = C("el-avatar"), d = C("el-header"), x = C("router-view"), p = C("el-main"), n = C("el-container"), I = fe("loading");
|
|
97
|
+
return pe((o(), y(n, { "element-loading-text": "正在加载页面数据..." }, {
|
|
98
|
+
default: c(() => [
|
|
99
|
+
e(u) === "view" ? (o(), y(U, {
|
|
100
|
+
key: 0,
|
|
101
|
+
width: "250px"
|
|
102
|
+
}, {
|
|
103
|
+
default: c(() => [
|
|
104
|
+
l(Ce, { mode: "vertical" })
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
})) : j("", !0),
|
|
108
|
+
l(n, null, {
|
|
109
|
+
default: c(() => [
|
|
110
|
+
l(d, null, {
|
|
111
|
+
default: c(() => {
|
|
112
|
+
var m;
|
|
113
|
+
return [
|
|
114
|
+
i("div", ze, [
|
|
115
|
+
i("div", Je, [
|
|
116
|
+
e(u) === "edit" ? (o(), r("div", Oe, [
|
|
117
|
+
l(W, {
|
|
118
|
+
text: "",
|
|
119
|
+
onClick: e(we)
|
|
120
|
+
}, {
|
|
121
|
+
default: c(() => k[2] || (k[2] = [
|
|
122
|
+
z(" 返回页面 ")
|
|
123
|
+
])),
|
|
124
|
+
_: 1,
|
|
125
|
+
__: [2]
|
|
126
|
+
}, 8, ["onClick"]),
|
|
127
|
+
l(W, {
|
|
128
|
+
text: "",
|
|
129
|
+
onClick: k[0] || (k[0] = (M) => {
|
|
130
|
+
var V, G;
|
|
131
|
+
return e(ke)((G = (V = e(L)) == null ? void 0 : V.map((a) => a.value)) == null ? void 0 : G.join("/"));
|
|
132
|
+
})
|
|
133
|
+
}, {
|
|
134
|
+
icon: c(() => [
|
|
135
|
+
l(ee, { name: "Store" })
|
|
136
|
+
]),
|
|
137
|
+
default: c(() => [
|
|
138
|
+
k[3] || (k[3] = z(" 保存页面 "))
|
|
139
|
+
]),
|
|
140
|
+
_: 1,
|
|
141
|
+
__: [3]
|
|
142
|
+
})
|
|
143
|
+
])) : j("", !0),
|
|
144
|
+
(o(), y(Se, {
|
|
145
|
+
key: e(L),
|
|
146
|
+
breadArray: e(L),
|
|
147
|
+
onClick: e($e)
|
|
148
|
+
}, null, 8, ["breadArray", "onClick"]))
|
|
149
|
+
]),
|
|
150
|
+
i("div", We, [
|
|
151
|
+
e(u) === "view" ? (o(), r("div", {
|
|
152
|
+
key: 0,
|
|
153
|
+
class: "select-icon",
|
|
154
|
+
onClick: k[1] || (k[1] = (...M) => e(te) && e(te)(...M))
|
|
155
|
+
}, [
|
|
156
|
+
i("div", He, [
|
|
157
|
+
l(ee, {
|
|
158
|
+
name: "write",
|
|
159
|
+
style: { width: "16px", height: "16px" }
|
|
160
|
+
})
|
|
161
|
+
]),
|
|
162
|
+
k[4] || (k[4] = i("div", null, T("修改布局"), -1))
|
|
163
|
+
])) : j("", !0),
|
|
164
|
+
i("div", qe, [
|
|
165
|
+
X(E.$slots, "default", {}, void 0, !0)
|
|
166
|
+
]),
|
|
167
|
+
l(H, {
|
|
168
|
+
size: 35,
|
|
169
|
+
src: (m = e(v)) == null ? void 0 : m.avatarUrl
|
|
170
|
+
}, {
|
|
171
|
+
default: c(() => {
|
|
172
|
+
var M;
|
|
173
|
+
return [
|
|
174
|
+
z(T(((M = e(v)) == null ? void 0 : M.account) ?? "未知"), 1)
|
|
175
|
+
];
|
|
176
|
+
}),
|
|
177
|
+
_: 1
|
|
178
|
+
}, 8, ["src"])
|
|
179
|
+
])
|
|
180
|
+
])
|
|
181
|
+
];
|
|
182
|
+
}),
|
|
183
|
+
_: 3
|
|
184
|
+
}),
|
|
185
|
+
l(p, null, {
|
|
186
|
+
default: c(() => {
|
|
187
|
+
var m, M, V, G;
|
|
188
|
+
return [
|
|
189
|
+
e(u) === "edit" ? (o(), r("div", Ge, [
|
|
190
|
+
i("div", Ke, [
|
|
191
|
+
l(re)
|
|
192
|
+
]),
|
|
193
|
+
(o(), r("div", {
|
|
194
|
+
class: "model-show",
|
|
195
|
+
key: E.innerWidth
|
|
196
|
+
}, [
|
|
197
|
+
l(de)
|
|
198
|
+
])),
|
|
199
|
+
i("div", Qe, [
|
|
200
|
+
l(ue)
|
|
201
|
+
])
|
|
202
|
+
])) : E.$route.path === "/" && ((m = e(K)) == null ? void 0 : m.length) > 0 && e(u) === "view" ? (o(), r("div", Xe, [
|
|
203
|
+
i("div", Ye, [
|
|
204
|
+
(M = e(Q)(e(K))) != null && M.find((a) => a.comp === "FormTop") ? (o(), r("div", {
|
|
205
|
+
class: "show-header",
|
|
206
|
+
key: E.index
|
|
207
|
+
}, [
|
|
208
|
+
(o(!0), r(Y, null, Z((V = e(Q)(e(K))) == null ? void 0 : V.filter((a) => a.comp === "FormTop"), (a, R) => (o(), r("div", {
|
|
209
|
+
class: "item-content",
|
|
210
|
+
key: R
|
|
211
|
+
}, [
|
|
212
|
+
i("div", Ze, T(a.name), 1),
|
|
213
|
+
(o(), y(ae(e(se)(a.comp)), {
|
|
214
|
+
itemData: a == null ? void 0 : a.compData,
|
|
215
|
+
childItemData: a == null ? void 0 : a.itemChildData,
|
|
216
|
+
key: (a == null ? void 0 : a.id) ?? R,
|
|
217
|
+
onChange: e(ce),
|
|
218
|
+
index: (a == null ? void 0 : a.id) ?? R,
|
|
219
|
+
onContentChange: e(ie),
|
|
220
|
+
onPageChange: e(le)
|
|
221
|
+
}, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
222
|
+
]))), 128))
|
|
223
|
+
])) : j("", !0),
|
|
224
|
+
i("div", et, [
|
|
225
|
+
(o(!0), r(Y, null, Z((G = e(Q)(e(K))) == null ? void 0 : G.filter((a) => a.comp !== "FormTop"), (a, R) => (o(), r("div", {
|
|
226
|
+
class: "item-content",
|
|
227
|
+
key: R
|
|
228
|
+
}, [
|
|
229
|
+
i("div", tt, T(a.name), 1),
|
|
230
|
+
(o(), y(ae(e(se)(a.comp)), {
|
|
231
|
+
itemData: a == null ? void 0 : a.compData,
|
|
232
|
+
childItemData: a == null ? void 0 : a.itemChildData,
|
|
233
|
+
key: (a == null ? void 0 : a.id) ?? R,
|
|
234
|
+
onChange: e(ce),
|
|
235
|
+
index: (a == null ? void 0 : a.id) ?? R,
|
|
236
|
+
onContentChange: e(ie),
|
|
237
|
+
onPageChange: e(le)
|
|
238
|
+
}, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
239
|
+
]))), 128))
|
|
240
|
+
])
|
|
241
|
+
])
|
|
242
|
+
])) : e(u) === "view" ? (o(), r("div", nt, [
|
|
243
|
+
l(x)
|
|
244
|
+
])) : j("", !0)
|
|
245
|
+
];
|
|
246
|
+
}),
|
|
247
|
+
_: 1
|
|
248
|
+
})
|
|
249
|
+
]),
|
|
250
|
+
_: 3
|
|
251
|
+
})
|
|
252
|
+
]),
|
|
253
|
+
_: 3
|
|
254
|
+
})), [
|
|
255
|
+
[I, e(A)]
|
|
256
|
+
]);
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
}, at = /* @__PURE__ */ q(ot, [["__scopeId", "data-v-ef767374"]]);
|
|
260
|
+
function st($, B, t, v, w, s) {
|
|
261
|
+
const _ = C("DynamicIcon"), f = C("ssMenu");
|
|
262
|
+
return o(), y(f, {
|
|
263
|
+
mode: $.mode,
|
|
264
|
+
menuList: $.renderMenuList,
|
|
265
|
+
onClickMenu: $.clickMenu,
|
|
266
|
+
onOpenMenu: $.openMenu,
|
|
267
|
+
onCloseMenu: $.closeMenu
|
|
268
|
+
}, {
|
|
269
|
+
title: c(({ menu: u }) => [
|
|
270
|
+
l(_, {
|
|
271
|
+
name: u.icon ?? ""
|
|
272
|
+
}, null, 8, ["name"]),
|
|
273
|
+
i("span", null, T(u.title ?? ""), 1)
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
277
|
+
}
|
|
278
|
+
const lt = /* @__PURE__ */ q(Ae, [["render", st], ["__scopeId", "data-v-93a3198a"]]), it = { class: "structure-buttons" }, ct = { class: "structure-paths" }, rt = { class: "client-header-user" }, dt = { class: "select-icon" }, ut = { class: "model-select" }, mt = { class: "model-show" }, _t = { class: "model-fill" }, vt = { class: "client-header-menu" }, ht = { class: "client-header-user" }, ft = { style: { display: "flex" } }, pt = { class: "select-icon" }, Ct = { class: "client-main-content" }, gt = { class: "client-main-operate" }, yt = { class: "item-view-group" }, wt = /* @__PURE__ */ be({
|
|
279
|
+
__name: "client",
|
|
280
|
+
setup($) {
|
|
281
|
+
const B = me(P), { selectTitle: t } = F(B), v = ye(), { loginUserInfo: w } = F(v), s = ne(P), { isEdit: _ } = F(s), f = oe(P), u = xe(P), { objUrl: S } = F(u), D = h(null), { importLoading: N, activeMenuPath: b } = F(f), O = h(!1);
|
|
282
|
+
return J(() => b.value, async (A) => {
|
|
283
|
+
A && (await Ie(), O.value = !O.value);
|
|
284
|
+
}, { immediate: !0 }), J(
|
|
285
|
+
() => [S.value, D.value],
|
|
286
|
+
() => {
|
|
287
|
+
S.value !== "" && D.value && (D.value.clearAllModels(), D.value.addModelFromUrl(S.value));
|
|
288
|
+
},
|
|
289
|
+
{ immediate: !0, deep: !0 }
|
|
290
|
+
), (A, g) => {
|
|
291
|
+
const L = C("el-button"), E = C("el-avatar"), k = C("el-header"), U = C("el-container"), W = C("el-aside"), H = C("el-main"), d = C("router-view"), x = fe("loading");
|
|
292
|
+
return e(_) === "edit" ? (o(), y(U, {
|
|
293
|
+
key: 0,
|
|
294
|
+
class: "client-container"
|
|
295
|
+
}, {
|
|
296
|
+
default: c(() => [
|
|
297
|
+
l(k, { class: "client-structure-header" }, {
|
|
298
|
+
default: c(() => {
|
|
299
|
+
var p;
|
|
300
|
+
return [
|
|
301
|
+
i("div", it, [
|
|
302
|
+
l(L, {
|
|
303
|
+
class: "select-icon",
|
|
304
|
+
onClick: e(we)
|
|
305
|
+
}, {
|
|
306
|
+
default: c(() => g[2] || (g[2] = [
|
|
307
|
+
z(" 返回页面 ")
|
|
308
|
+
])),
|
|
309
|
+
_: 1,
|
|
310
|
+
__: [2]
|
|
311
|
+
}, 8, ["onClick"]),
|
|
312
|
+
l(L, {
|
|
313
|
+
class: "select-icon",
|
|
314
|
+
onClick: g[0] || (g[0] = (n) => {
|
|
315
|
+
var I, m;
|
|
316
|
+
return e(ke)((m = (I = e(t)) == null ? void 0 : I.map((M) => M.value)) == null ? void 0 : m.join("/"));
|
|
317
|
+
})
|
|
318
|
+
}, {
|
|
319
|
+
icon: c(() => [
|
|
320
|
+
l(ee, { name: "Store" })
|
|
321
|
+
]),
|
|
322
|
+
default: c(() => [
|
|
323
|
+
g[3] || (g[3] = z(" 保存页面 "))
|
|
324
|
+
]),
|
|
325
|
+
_: 1,
|
|
326
|
+
__: [3]
|
|
327
|
+
})
|
|
328
|
+
]),
|
|
329
|
+
i("div", ct, [
|
|
330
|
+
(o(), y(Se, {
|
|
331
|
+
key: e(t),
|
|
332
|
+
breadArray: e(t),
|
|
333
|
+
onClick: e($e)
|
|
334
|
+
}, null, 8, ["breadArray", "onClick"]))
|
|
335
|
+
]),
|
|
336
|
+
i("div", rt, [
|
|
337
|
+
i("div", dt, [
|
|
338
|
+
X(A.$slots, "default", {}, void 0, !0)
|
|
339
|
+
]),
|
|
340
|
+
l(E, {
|
|
341
|
+
size: 35,
|
|
342
|
+
src: (p = e(w)) == null ? void 0 : p.avatarUrl
|
|
343
|
+
}, {
|
|
344
|
+
default: c(() => {
|
|
345
|
+
var n;
|
|
346
|
+
return [
|
|
347
|
+
z(T(((n = e(w)) == null ? void 0 : n.account) ?? "未知"), 1)
|
|
348
|
+
];
|
|
349
|
+
}),
|
|
350
|
+
_: 1
|
|
351
|
+
}, 8, ["src"])
|
|
352
|
+
])
|
|
353
|
+
];
|
|
354
|
+
}),
|
|
355
|
+
_: 3
|
|
356
|
+
}),
|
|
357
|
+
e(_) === "edit" ? (o(), y(U, {
|
|
358
|
+
key: 0,
|
|
359
|
+
class: "model-operate",
|
|
360
|
+
style: { "margin-top": "10px", height: "0px" }
|
|
361
|
+
}, {
|
|
362
|
+
default: c(() => [
|
|
363
|
+
i("div", ut, [
|
|
364
|
+
l(re)
|
|
365
|
+
]),
|
|
366
|
+
i("div", mt, [
|
|
367
|
+
l(de)
|
|
368
|
+
]),
|
|
369
|
+
i("div", _t, [
|
|
370
|
+
l(ue)
|
|
371
|
+
])
|
|
372
|
+
]),
|
|
373
|
+
_: 1
|
|
374
|
+
})) : j("", !0)
|
|
375
|
+
]),
|
|
376
|
+
_: 3
|
|
377
|
+
})) : pe((o(), y(U, {
|
|
378
|
+
key: 1,
|
|
379
|
+
class: "client-container",
|
|
380
|
+
"element-loading-text": "正在加载页面数据..."
|
|
381
|
+
}, {
|
|
382
|
+
default: c(() => [
|
|
383
|
+
l(k, { class: "client-header" }, {
|
|
384
|
+
default: c(() => {
|
|
385
|
+
var p;
|
|
386
|
+
return [
|
|
387
|
+
g[5] || (g[5] = i("div", { class: "client-header-logo" }, " 复杂型面一体化软硬件平台 ", -1)),
|
|
388
|
+
i("div", vt, [
|
|
389
|
+
l(lt, { mode: "horizontal" })
|
|
390
|
+
]),
|
|
391
|
+
i("div", ht, [
|
|
392
|
+
e(_) === "view" ? (o(), r("div", {
|
|
393
|
+
key: 0,
|
|
394
|
+
class: "select-icon",
|
|
395
|
+
onClick: g[1] || (g[1] = //@ts-ignore
|
|
396
|
+
(...n) => e(te) && e(te)(...n))
|
|
397
|
+
}, [
|
|
398
|
+
i("div", ft, [
|
|
399
|
+
l(ee, {
|
|
400
|
+
name: "write",
|
|
401
|
+
style: { width: "16px", height: "16px" }
|
|
402
|
+
})
|
|
403
|
+
]),
|
|
404
|
+
g[4] || (g[4] = i("div", null, T("修改布局"), -1))
|
|
405
|
+
])) : j("", !0),
|
|
406
|
+
i("div", pt, [
|
|
407
|
+
X(A.$slots, "default", {}, void 0, !0)
|
|
408
|
+
]),
|
|
409
|
+
l(E, {
|
|
410
|
+
size: 35,
|
|
411
|
+
src: (p = e(w)) == null ? void 0 : p.avatarUrl
|
|
412
|
+
}, {
|
|
413
|
+
default: c(() => {
|
|
414
|
+
var n;
|
|
415
|
+
return [
|
|
416
|
+
z(T(((n = e(w)) == null ? void 0 : n.account) ?? "未知"), 1)
|
|
417
|
+
];
|
|
418
|
+
}),
|
|
419
|
+
_: 1
|
|
420
|
+
}, 8, ["src"])
|
|
421
|
+
])
|
|
422
|
+
];
|
|
423
|
+
}),
|
|
424
|
+
_: 3,
|
|
425
|
+
__: [5]
|
|
426
|
+
}),
|
|
427
|
+
l(U, { class: "client-body" }, {
|
|
428
|
+
default: c(() => [
|
|
429
|
+
l(W, {
|
|
430
|
+
class: "client-aside",
|
|
431
|
+
width: "250px"
|
|
432
|
+
}, {
|
|
433
|
+
default: c(() => [
|
|
434
|
+
l(Ce, { mode: "vertical" })
|
|
435
|
+
]),
|
|
436
|
+
_: 1
|
|
437
|
+
}),
|
|
438
|
+
A.$route.path === "/" ? (o(), y(H, {
|
|
439
|
+
key: 0,
|
|
440
|
+
class: "client-main"
|
|
441
|
+
}, {
|
|
442
|
+
default: c(() => {
|
|
443
|
+
var p;
|
|
444
|
+
return [
|
|
445
|
+
i("div", Ct, [
|
|
446
|
+
l(Te, {
|
|
447
|
+
isShow: O.value,
|
|
448
|
+
ref_key: "threeModelRef",
|
|
449
|
+
ref: D
|
|
450
|
+
}, null, 8, ["isShow"])
|
|
451
|
+
]),
|
|
452
|
+
i("div", gt, [
|
|
453
|
+
(o(!0), r(Y, null, Z((p = e(Q)(e(K))) == null ? void 0 : p.filter((n) => n.comp !== "FormTop"), (n, I) => (o(), r("div", {
|
|
454
|
+
class: "item-view-content",
|
|
455
|
+
key: I
|
|
456
|
+
}, [
|
|
457
|
+
i("div", yt, T(n.name), 1),
|
|
458
|
+
(o(), y(ae(e(se)(n.comp)), {
|
|
459
|
+
itemData: n == null ? void 0 : n.compData,
|
|
460
|
+
childItemData: n == null ? void 0 : n.itemChildData,
|
|
461
|
+
key: (n == null ? void 0 : n.id) ?? I,
|
|
462
|
+
onChange: e(ce),
|
|
463
|
+
index: (n == null ? void 0 : n.id) ?? I,
|
|
464
|
+
onContentChange: e(ie),
|
|
465
|
+
onPageChange: e(le)
|
|
466
|
+
}, null, 40, ["itemData", "childItemData", "onChange", "index", "onContentChange", "onPageChange"]))
|
|
467
|
+
]))), 128))
|
|
468
|
+
])
|
|
469
|
+
];
|
|
470
|
+
}),
|
|
471
|
+
_: 1
|
|
472
|
+
})) : (o(), y(H, {
|
|
473
|
+
key: 1,
|
|
474
|
+
class: "client-router"
|
|
475
|
+
}, {
|
|
476
|
+
default: c(() => [
|
|
477
|
+
l(d)
|
|
478
|
+
]),
|
|
479
|
+
_: 1
|
|
480
|
+
}))
|
|
481
|
+
]),
|
|
482
|
+
_: 1
|
|
483
|
+
})
|
|
484
|
+
]),
|
|
485
|
+
_: 3
|
|
486
|
+
})), [
|
|
487
|
+
[x, e(N)]
|
|
488
|
+
]);
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
}), kt = /* @__PURE__ */ q(wt, [["__scopeId", "data-v-69742fe7"]]), $t = { class: "system-wrap" }, St = {
|
|
492
|
+
__name: "index",
|
|
493
|
+
props: {
|
|
494
|
+
platform: {
|
|
495
|
+
type: String,
|
|
496
|
+
default: "browser"
|
|
497
|
+
},
|
|
498
|
+
content: String,
|
|
499
|
+
jsonContents: Array
|
|
500
|
+
},
|
|
501
|
+
setup($) {
|
|
502
|
+
const B = ne(P), t = me(P), v = oe();
|
|
503
|
+
h(!1);
|
|
504
|
+
const w = h(!0), s = $;
|
|
505
|
+
return J(
|
|
506
|
+
() => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
|
|
507
|
+
async () => {
|
|
508
|
+
var u, S, D, N;
|
|
509
|
+
if (((u = s == null ? void 0 : s.jsonContents) == null ? void 0 : u.length) > 0) {
|
|
510
|
+
B.setOriginalData(s == null ? void 0 : s.jsonContents);
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
513
|
+
if (!(s != null && s.content) || ((S = s == null ? void 0 : s.content) == null ? void 0 : S.length) === 0) return;
|
|
514
|
+
w.value = !0, v.setImportLoading(!0);
|
|
515
|
+
let _ = [], f = [];
|
|
516
|
+
t.setSelectTitle([]), t.setSelectIndex(""), t.setSelectMenu(""), (N = (D = s == null ? void 0 : s.content) == null ? void 0 : D.filter((b) => b !== "")) == null || N.forEach((b) => {
|
|
517
|
+
Pe(b) ? f.push(Be(b)) : _e(b) ? f.push(_e(b)) : ve(b) ? f.push(ve(b)) : f.push(je(b));
|
|
518
|
+
}), _ = f == null ? void 0 : f[0], await Fe(_), await ge(), B.setOriginalData(_), v.setImportLoading(!1);
|
|
519
|
+
},
|
|
520
|
+
{ deep: !0, immediate: !0 }
|
|
521
|
+
), (_, f) => (o(), r("div", $t, [
|
|
522
|
+
$.platform === "browser" ? (o(), y(at, { key: 0 }, {
|
|
523
|
+
default: c(() => [
|
|
524
|
+
X(_.$slots, "default", {}, void 0, !0)
|
|
525
|
+
]),
|
|
526
|
+
_: 3
|
|
527
|
+
})) : (o(), y(kt, { key: 1 }, {
|
|
528
|
+
default: c(() => [
|
|
529
|
+
X(_.$slots, "default", {}, void 0, !0)
|
|
530
|
+
]),
|
|
531
|
+
_: 3
|
|
532
|
+
}))
|
|
533
|
+
]));
|
|
534
|
+
}
|
|
535
|
+
}, Dt = /* @__PURE__ */ q(St, [["__scopeId", "data-v-3fc52d23"]]), bt = { class: "add-model-content" }, It = {
|
|
536
|
+
key: 0,
|
|
537
|
+
class: "model-operate"
|
|
538
|
+
}, xt = { class: "model-select" }, Mt = { class: "model-fill" }, Tt = {
|
|
539
|
+
key: 1,
|
|
540
|
+
class: "model-view"
|
|
541
|
+
}, At = {
|
|
542
|
+
key: 0,
|
|
543
|
+
class: "model-import-data"
|
|
544
|
+
}, jt = {
|
|
545
|
+
__name: "index",
|
|
546
|
+
props: {
|
|
547
|
+
mode: {
|
|
548
|
+
type: String,
|
|
549
|
+
default: "view"
|
|
550
|
+
},
|
|
551
|
+
content: {
|
|
552
|
+
type: String,
|
|
553
|
+
default: ""
|
|
554
|
+
},
|
|
555
|
+
jsonContents: {
|
|
556
|
+
type: Array,
|
|
557
|
+
default: () => []
|
|
558
|
+
},
|
|
559
|
+
showButton: {
|
|
560
|
+
type: Boolean,
|
|
561
|
+
default: !0
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
emits: ["change", "contentChange"],
|
|
565
|
+
setup($, { emit: B }) {
|
|
566
|
+
const t = $, v = B, w = h([]), s = h([]), _ = h([]), f = h(0), u = ne(P), S = oe(P), { itemData: D, originalData: N } = F(u), { activeMenuPath: b, platform: O } = F(S), A = h(null), g = h(0), L = h([]);
|
|
567
|
+
h("");
|
|
568
|
+
const E = h(0), k = (d) => {
|
|
569
|
+
v("contentChange", d);
|
|
570
|
+
}, U = (d) => {
|
|
571
|
+
var p;
|
|
572
|
+
const x = (p = Q(d == null ? void 0 : d.wholeValue)) == null ? void 0 : p.map((n) => {
|
|
573
|
+
var I;
|
|
574
|
+
return (n == null ? void 0 : n.comp) === "Form" && (n.compData = (I = n.compData) == null ? void 0 : I.map((m) => ((m == null ? void 0 : m.key) === "formContent" && (m.contents = Le(m == null ? void 0 : m.contents)), m))), n;
|
|
575
|
+
});
|
|
576
|
+
v("change", {
|
|
577
|
+
originalContents: N.value,
|
|
578
|
+
currentContents: d == null ? void 0 : d.wholeValue,
|
|
579
|
+
editContent: d == null ? void 0 : d.editValue,
|
|
580
|
+
arrayToContents: x
|
|
581
|
+
});
|
|
582
|
+
};
|
|
583
|
+
J(
|
|
584
|
+
() => s.value,
|
|
585
|
+
() => {
|
|
586
|
+
E.value === s.value.length && s.value.length !== 0 && (w.value = s.value);
|
|
587
|
+
},
|
|
588
|
+
{ deep: !0, immediate: !0 }
|
|
589
|
+
);
|
|
590
|
+
const W = () => {
|
|
591
|
+
A.value.click();
|
|
592
|
+
}, H = async (d) => {
|
|
593
|
+
const x = d.target.files;
|
|
594
|
+
if (!x) return;
|
|
595
|
+
new FileReader(), w.value = [], s.value = [], E.value = x.length;
|
|
596
|
+
const p = Array.from(x).map(async (n) => await new Promise((I) => {
|
|
597
|
+
const m = new FileReader();
|
|
598
|
+
m.onload = (M) => {
|
|
599
|
+
try {
|
|
600
|
+
s.value.push(M.target.result), g.value++;
|
|
601
|
+
} catch (V) {
|
|
602
|
+
console.error("解析失败:", V);
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
}, m.onerror = () => I(`读取 ${n.name} 失败`), m.readAsText(n), d.target.value = "", A.value = null;
|
|
606
|
+
}));
|
|
607
|
+
await Promise.all(p);
|
|
608
|
+
};
|
|
609
|
+
return J(
|
|
610
|
+
() => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
|
|
611
|
+
async () => {
|
|
612
|
+
await ge(), w.value = t.content, _.value = t == null ? void 0 : t.jsonContents;
|
|
613
|
+
},
|
|
614
|
+
{ deep: !0, immediate: !0 }
|
|
615
|
+
), J(
|
|
616
|
+
() => g.value,
|
|
617
|
+
() => {
|
|
618
|
+
var d;
|
|
619
|
+
((d = L.value) == null ? void 0 : d.length) !== 0 && (u.setOriginalData(L.value), u.setItemData(L.value));
|
|
620
|
+
},
|
|
621
|
+
{ deep: !0, immediate: !0 }
|
|
622
|
+
), (d, x) => {
|
|
623
|
+
const p = C("svg-icon");
|
|
624
|
+
return o(), r("div", bt, [
|
|
625
|
+
(t == null ? void 0 : t.mode) === "edit" ? (o(), r("div", It, [
|
|
626
|
+
i("div", xt, [
|
|
627
|
+
l(re)
|
|
628
|
+
]),
|
|
629
|
+
(o(), r("div", {
|
|
630
|
+
class: "model-show",
|
|
631
|
+
key: f.value
|
|
632
|
+
}, [
|
|
633
|
+
l(de)
|
|
634
|
+
])),
|
|
635
|
+
i("div", Mt, [
|
|
636
|
+
l(ue)
|
|
637
|
+
])
|
|
638
|
+
])) : j("", !0),
|
|
639
|
+
(t == null ? void 0 : t.mode) === "view" ? (o(), r("div", Tt, [
|
|
640
|
+
(o(), y(Dt, {
|
|
641
|
+
platform: e(O),
|
|
642
|
+
content: w.value,
|
|
643
|
+
onChange: U,
|
|
644
|
+
jsonContents: _.value,
|
|
645
|
+
onContentChange: k,
|
|
646
|
+
key: f.value
|
|
647
|
+
}, {
|
|
648
|
+
default: c(() => {
|
|
649
|
+
var n;
|
|
650
|
+
return [
|
|
651
|
+
((n = t == null ? void 0 : t.jsonContents) == null ? void 0 : n.length) === 0 && (t != null && t.showButton) ? (o(), r("div", At, [
|
|
652
|
+
i("div", {
|
|
653
|
+
class: "import-button",
|
|
654
|
+
onClick: W
|
|
655
|
+
}, [
|
|
656
|
+
i("input", {
|
|
657
|
+
type: "file",
|
|
658
|
+
ref_key: "fileInput",
|
|
659
|
+
ref: A,
|
|
660
|
+
accept: ".txt, .inm",
|
|
661
|
+
onChange: H,
|
|
662
|
+
style: { display: "none" },
|
|
663
|
+
multiple: ""
|
|
664
|
+
}, null, 544),
|
|
665
|
+
l(p, {
|
|
666
|
+
name: "import",
|
|
667
|
+
style: { width: "16px", height: "16px" }
|
|
668
|
+
}),
|
|
669
|
+
x[0] || (x[0] = i("div", null, T("导入模型"), -1))
|
|
670
|
+
])
|
|
671
|
+
])) : j("", !0)
|
|
672
|
+
];
|
|
673
|
+
}),
|
|
674
|
+
_: 1
|
|
675
|
+
}, 8, ["platform", "content", "jsonContents"]))
|
|
676
|
+
])) : j("", !0)
|
|
677
|
+
]);
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
}, Kt = /* @__PURE__ */ q(jt, [["__scopeId", "data-v-4b7a2e5d"]]);
|
|
681
|
+
export {
|
|
682
|
+
Kt as default
|
|
683
|
+
};
|