ss-component-new 1.1.232 → 1.1.233
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-B86yviQY.cjs +7 -0
- package/dist/array-cs5V7Y6_.js +3652 -0
- package/dist/{cloneDeep-CktvOFQx.cjs → cloneDeep-E9vLiIxh.cjs} +1 -1
- package/dist/{cloneDeep-Dof88Xfu.js → cloneDeep-rq9zaa1w.js} +1 -1
- package/dist/{index-BhkmOuOr.js → index-2CGOpPmh.js} +1 -1
- package/dist/{index-6i92JFtr.cjs → index-8PaOrNDR.cjs} +1 -1
- package/dist/index-9lPgpkGK.cjs +1 -0
- package/dist/{index-MHmvswgz.cjs → index-B37UvP2y.cjs} +1 -1
- package/dist/{index-CiGPupSC.js → index-B4pDkJNU.js} +1 -1
- package/dist/{index-Z1xr-ejC.js → index-B6jVaGs4.js} +1 -1
- package/dist/{index-DtJQBHbx.js → index-BMUfxqMd.js} +1 -1
- package/dist/{index-DAUiPeRo.js → index-BP5hb3Um.js} +7 -7
- package/dist/{index-CpL7Ek4u.cjs → index-BZHTZ9C5.cjs} +1 -1
- package/dist/{index-BdcivI0n.js → index-BfvkRKjx.js} +9 -9
- package/dist/{index-D672QpxY.cjs → index-BnyrJQBl.cjs} +1 -1
- package/dist/{index-B27v9fmq.cjs → index-Bv7WoEDc.cjs} +1 -1
- package/dist/index-BvEXBAUK.js +683 -0
- package/dist/{index-CRzDMz2f.js → index-C3mEVJgU.js} +7 -7
- package/dist/{index-CTDvgz6D.js → index-C7itP7K7.js} +4 -4
- package/dist/{index-DXmlMdoB.cjs → index-CBl53aQj.cjs} +1 -1
- package/dist/{index-BS-dYA6V.cjs → index-CJyVNY4m.cjs} +1 -1
- package/dist/{index-CRxtHDjt.cjs → index-CMSII8_z.cjs} +1 -1
- package/dist/{index-CD_V87KZ.cjs → index-CO3-_vKi.cjs} +1 -1
- package/dist/{index-DJkyWXUQ.cjs → index-CPz8QnpI.cjs} +1 -1
- package/dist/{index-BHOafXrq.js → index-CU2d6hKG.js} +80 -80
- package/dist/{index-DBVoOuwx.js → index-CYM-4Fce.js} +5 -5
- package/dist/{index-B1DkFC1_.cjs → index-CZShjOok.cjs} +1 -1
- package/dist/{index-B5ixqHZB.cjs → index-Cs21pF86.cjs} +1 -1
- package/dist/{index-DTl2kpLh.js → index-Ct5RVdm9.js} +5 -5
- package/dist/{index-DEdZZ43j.js → index-CwAQ5Reh.js} +1 -1
- package/dist/{index-CrBfrGyt.cjs → index-CxIxmcBL.cjs} +1 -1
- package/dist/{index-Q_XvzZ_1.js → index-CxpDmVeO.js} +3 -3
- package/dist/{index-BS5q4oAa.js → index-D4B6hNFI.js} +5 -5
- package/dist/{index-Dt26RGyl.cjs → index-DEo9AxUH.cjs} +1 -1
- package/dist/{index-BP9e1URk.js → index-DHpBlKW-.js} +7 -7
- package/dist/{index-B1ACt1r8.cjs → index-DMpM6R19.cjs} +1 -1
- package/dist/{index-1AAX7OWr.js → index-DWNFS9b5.js} +1 -1
- package/dist/index-DbB9Xwdc.cjs +1 -0
- package/dist/{index-sjkdiuXH.cjs → index-DeFBG6ZK.cjs} +1 -1
- package/dist/{index-CFrZVme4.js → index-DeQ9D91f.js} +4 -4
- package/dist/{index-Cz4RyK4P.js → index-DoCGNjQ1.js} +8 -8
- package/dist/{index-DvpoH0CQ.js → index-DpDTUHhk.js} +7 -7
- package/dist/{index-DFsguBq1.cjs → index-DwnZLgLM.cjs} +1 -1
- package/dist/{index-CXHQlToy.js → index-DxC6YYBs.js} +4 -4
- package/dist/{index-BaGt6aM0.cjs → index-Dyw51iVc.cjs} +3 -3
- package/dist/{index-BoSTyMal.cjs → index-Qp0Ei1HO.cjs} +1 -1
- package/dist/{index-CP1rxlQW.cjs → index-V-2S_leI.cjs} +1 -1
- package/dist/{index-D7bfd1SP.js → index-WFYNryJI.js} +6 -6
- package/dist/{index-KAxfvpFC.cjs → index-aCDLjfK8.cjs} +1 -1
- package/dist/{index-Cy8P0O9s.cjs → index-h6PQYGka.cjs} +1 -1
- package/dist/{index-CewL0ZVN.js → index-p7PKGLT2.js} +4 -4
- package/dist/{index-By2WyWxQ.js → index-v6Bd2aVR.js} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-BTS3qCYJ.js → index.vue_vue_type_script_setup_true_lang-4t6RYIAB.js} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-CHN4GMRq.js → index.vue_vue_type_script_setup_true_lang-B8n4k43K.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-D3T3IoTp.cjs → index.vue_vue_type_script_setup_true_lang-BUlzxTym.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bg0LXFmQ.cjs → index.vue_vue_type_script_setup_true_lang-CpSvslDx.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_997b1786_lang-BdYMXloP.cjs → index.vue_vue_type_style_index_0_scoped_997b1786_lang-B0m5ZMmX.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_997b1786_lang-BmL8jkus.js → index.vue_vue_type_style_index_0_scoped_997b1786_lang-D3x_OVy3.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_cea2aaad_lang-Ctz7x3hQ.js → index.vue_vue_type_style_index_0_scoped_cea2aaad_lang-Cw3_IH1D.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_cea2aaad_lang-Du4fk0u8.cjs → index.vue_vue_type_style_index_0_scoped_cea2aaad_lang-D1yEUZXC.cjs} +1 -1
- package/dist/{login-DnqNwFzD.js → login-DQPlWdfH.js} +2 -2
- package/dist/{login-TVZKm0bS.cjs → login-DwXodp2O.cjs} +1 -1
- package/dist/{main-DqSAQJ-I.js → main-BLNFjhWy.js} +6 -6
- package/dist/{main-jkBzFk0x.cjs → main-B_QUEIbJ.cjs} +1 -1
- package/dist/{menu-DNjiqLiy.js → menu-CAjYtlXf.js} +1 -1
- package/dist/{menu-xHRrBcoq.cjs → menu-hvzjfJeP.cjs} +1 -1
- package/dist/{modelComp-BZYWE77x.js → modelComp-B2ygsfez.js} +12 -4
- package/dist/modelComp-DLKJo5WV.cjs +1 -0
- 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 +1 -1
- package/dist/array-CX_klfYT.cjs +0 -7
- package/dist/array-CcAct9KU.js +0 -3587
- package/dist/index-BNG8jvzJ.js +0 -662
- package/dist/index-SZd8Ei1D.cjs +0 -1
- package/dist/index-kkjIPdQ2.cjs +0 -1
- package/dist/modelComp-Dq1Brxk6.cjs +0 -1
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
import { ref as $, onMounted as De, watch as Y, createElementBlock as k, openBlock as g, Fragment as ve, renderList as ge, createElementVNode as D, createCommentVNode as z, normalizeStyle as me, toDisplayString as H, resolveComponent as G, resolveDirective as Pe, withDirectives as $e, createBlock as Q, withCtx as U, createVNode as T, unref as K, createTextVNode as ce, renderSlot as Ee, resolveDynamicComponent as _e } from "vue";
|
|
2
|
+
import { m as xe, a as Ie, b as Te } from "./index-C3mEVJgU.js";
|
|
3
|
+
import Ne from "./index-2CGOpPmh.js";
|
|
4
|
+
import { p as te, c as Ke, u as Me, d as Fe } from "./index-BMUfxqMd.js";
|
|
5
|
+
import { u as Ae } from "./modelComp-B2ygsfez.js";
|
|
6
|
+
import { s as X, u as be, E as re } from "./menu-CAjYtlXf.js";
|
|
7
|
+
import { c as je, p as Oe, t as Be, i as Je, e as Ue, b as Ce, d as we, g as Ve, a as Re } from "./array-cs5V7Y6_.js";
|
|
8
|
+
import { u as ze, a as Le, g as oe, f as We, d as Ge, b as qe, c as He } from "./index-DHpBlKW-.js";
|
|
9
|
+
import { s as Qe } from "./index.vue_vue_type_style_index_0_scoped_cea2aaad_lang-Cw3_IH1D.js";
|
|
10
|
+
import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
import { v as Xe } from "./index-v6Bd2aVR.js";
|
|
12
|
+
import { u as Ye } from "./login-DQPlWdfH.js";
|
|
13
|
+
import { g as ke } from "./index-BP5hb3Um.js";
|
|
14
|
+
import { d as pe } from "./crypto-BRyGpjGR.js";
|
|
15
|
+
import { S as Se } from "./index-BHtNKL1L.js";
|
|
16
|
+
import { c as V } from "./cloneDeep-rq9zaa1w.js";
|
|
17
|
+
import { E as Ze } from "./index-DpDTUHhk.js";
|
|
18
|
+
const ea = { class: "bread-content" }, aa = ["onClick"], ta = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "split-title"
|
|
21
|
+
}, sa = {
|
|
22
|
+
__name: "index",
|
|
23
|
+
props: {
|
|
24
|
+
breadArray: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => []
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
emits: ["click"],
|
|
30
|
+
setup(R, { emit: q }) {
|
|
31
|
+
const i = R, m = $([]), A = q;
|
|
32
|
+
De(() => {
|
|
33
|
+
m.value = i == null ? void 0 : i.breadArray;
|
|
34
|
+
}), Y(
|
|
35
|
+
() => i == null ? void 0 : i.breadArray,
|
|
36
|
+
() => {
|
|
37
|
+
m.value = i == null ? void 0 : i.breadArray;
|
|
38
|
+
},
|
|
39
|
+
{ deep: !0, immediate: !0 }
|
|
40
|
+
);
|
|
41
|
+
const u = (c) => {
|
|
42
|
+
A("click", c);
|
|
43
|
+
};
|
|
44
|
+
return (c, L) => (g(), k("div", ea, [
|
|
45
|
+
(g(!0), k(ve, null, ge(m.value, (E, W) => {
|
|
46
|
+
var F;
|
|
47
|
+
return g(), k("div", {
|
|
48
|
+
key: W,
|
|
49
|
+
class: "bread-item"
|
|
50
|
+
}, [
|
|
51
|
+
D("div", {
|
|
52
|
+
class: "bread-title",
|
|
53
|
+
onClick: (se) => u(E),
|
|
54
|
+
style: me({ opacity: ((F = m.value) == null ? void 0 : F.length) - 1 === W ? "0.7" : "1" })
|
|
55
|
+
}, H(E.value), 13, aa),
|
|
56
|
+
W !== m.value.length - 1 && Array.isArray(m.value) ? (g(), k("div", ta, H("/"))) : z("", !0)
|
|
57
|
+
]);
|
|
58
|
+
}), 128))
|
|
59
|
+
]));
|
|
60
|
+
}
|
|
61
|
+
}, na = /* @__PURE__ */ ye(sa, [["__scopeId", "data-v-ded7e2bd"]]), la = (R) => {
|
|
62
|
+
[].push({
|
|
63
|
+
comp: "Menu",
|
|
64
|
+
compData: [{
|
|
65
|
+
contents: Be(V(R)),
|
|
66
|
+
key: "menuContents"
|
|
67
|
+
}],
|
|
68
|
+
name: ""
|
|
69
|
+
});
|
|
70
|
+
}, ra = (R) => {
|
|
71
|
+
var m, A, u, c, L;
|
|
72
|
+
const q = (u = je((A = (m = V(R)) == null ? void 0 : m.replace("(", "(")) == null ? void 0 : A.replace(")", ")"))) == null ? void 0 : u.filter((E) => E !== ""), i = (L = (c = V(q)) == null ? void 0 : c.filter((E) => !E.includes("/*"))) == null ? void 0 : L.map((E) => Oe(E));
|
|
73
|
+
la(i);
|
|
74
|
+
}, oa = { class: "system-wrap" }, ia = { class: "item-menu-content" }, ua = { class: "item-left-content" }, da = {
|
|
75
|
+
key: 0,
|
|
76
|
+
class: "page-icon"
|
|
77
|
+
}, ca = { class: "avatar" }, va = { style: { display: "flex" } }, ga = { class: "select-icon" }, ya = {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: "model-operate"
|
|
80
|
+
}, fa = { class: "model-select" }, ha = { class: "model-fill" }, _a = {
|
|
81
|
+
key: 1,
|
|
82
|
+
class: "show-main-content"
|
|
83
|
+
}, Ca = { class: "show-content" }, wa = { class: "item-view-group" }, ka = { class: "show-item-content" }, pa = { class: "item-view-group" }, Sa = {
|
|
84
|
+
key: 2,
|
|
85
|
+
class: "show-main-content"
|
|
86
|
+
}, Da = {
|
|
87
|
+
__name: "index",
|
|
88
|
+
props: {
|
|
89
|
+
content: String,
|
|
90
|
+
jsonContents: Array
|
|
91
|
+
},
|
|
92
|
+
emits: ["change", "contentChange"],
|
|
93
|
+
setup(R, { emit: q }) {
|
|
94
|
+
const i = Ye(), { loginUserInfo: m, cryptoInfo: A } = X(i);
|
|
95
|
+
De(() => {
|
|
96
|
+
Ze({
|
|
97
|
+
title: "温馨提示:",
|
|
98
|
+
type: "success",
|
|
99
|
+
message: "欢迎使用系统",
|
|
100
|
+
duration: 1e3
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
const u = R, c = Ae(te);
|
|
104
|
+
ze(te);
|
|
105
|
+
const L = $(!0), E = be();
|
|
106
|
+
$(!0);
|
|
107
|
+
const { itemData: W, isEdit: F, isRefreshCurStructure: se, curStructureCompIds: ne } = X(c), x = Le(te), { activeMenuPath: P, menus: Z } = X(E), { selectIndex: ie, selectTitle: j } = X(x);
|
|
108
|
+
$([]);
|
|
109
|
+
const ee = $(!1), _ = $([]), ue = () => {
|
|
110
|
+
c.setIsEdit("edit");
|
|
111
|
+
}, de = () => {
|
|
112
|
+
c.setIsEdit("view"), c.setRefreshCurStructure(!0);
|
|
113
|
+
}, C = async (e, t) => {
|
|
114
|
+
var f;
|
|
115
|
+
try {
|
|
116
|
+
let d, r;
|
|
117
|
+
t === "create" ? (d = {
|
|
118
|
+
key: {
|
|
119
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
120
|
+
pageKey: P.value,
|
|
121
|
+
type: "structure",
|
|
122
|
+
parentTable: "",
|
|
123
|
+
version: 1
|
|
124
|
+
},
|
|
125
|
+
value: {
|
|
126
|
+
pageData: e
|
|
127
|
+
}
|
|
128
|
+
}, r = Ke) : t === "update" ? (d = {
|
|
129
|
+
id: e == null ? void 0 : e.id,
|
|
130
|
+
key: {
|
|
131
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
132
|
+
pageKey: P.value,
|
|
133
|
+
type: "structure",
|
|
134
|
+
parentTable: "",
|
|
135
|
+
version: 1
|
|
136
|
+
},
|
|
137
|
+
value: {
|
|
138
|
+
pageData: e
|
|
139
|
+
}
|
|
140
|
+
}, r = Me) : t === "delete" && (d = {
|
|
141
|
+
id: e,
|
|
142
|
+
key: {
|
|
143
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
144
|
+
pageKey: P.value,
|
|
145
|
+
type: "structure",
|
|
146
|
+
parentTable: "",
|
|
147
|
+
version: 1
|
|
148
|
+
}
|
|
149
|
+
}, r = Fe);
|
|
150
|
+
const v = await r(d);
|
|
151
|
+
return ((f = v == null ? void 0 : v.data) == null ? void 0 : f.code) === 200 ? v.data.result : (re.success("保存响应失败"), []);
|
|
152
|
+
} catch {
|
|
153
|
+
re.success("保存响应失败");
|
|
154
|
+
}
|
|
155
|
+
}, p = async () => {
|
|
156
|
+
var b;
|
|
157
|
+
const e = JSON.parse(V(JSON.stringify(W.value))), t = e == null ? void 0 : e.map((n) => n.id), f = t.filter((n) => {
|
|
158
|
+
var y;
|
|
159
|
+
return !((y = ne.value) != null && y.includes(n));
|
|
160
|
+
}), d = (b = ne.value) == null ? void 0 : b.filter((n) => !t.includes(n)), r = [...f, ...d], v = e == null ? void 0 : e.filter((n) => !n.id), l = e == null ? void 0 : e.filter((n) => n.id);
|
|
161
|
+
console.log("clickSavePage0", t, ne.value, r), console.log("clickSavePage1", e, W.value), console.log("clickSavePage2", e), console.log("clickSavePage3", v), console.log("clickSavePage4", l);
|
|
162
|
+
let h = [];
|
|
163
|
+
r && (r == null ? void 0 : r.length) > 0 && (r == null || r.forEach((n, y) => {
|
|
164
|
+
n && h.push(C(n, "delete"));
|
|
165
|
+
})), v && (v == null ? void 0 : v.length) > 0 && (v == null || v.forEach((n, y) => {
|
|
166
|
+
n && h.push(C(n, "create"));
|
|
167
|
+
})), l && (l == null ? void 0 : l.length) > 0 && (l == null || l.forEach((n) => {
|
|
168
|
+
t != null && t.includes(n.id) && (console.log("clickSavePage5", "包含"), n && h.push(C(n, "update")));
|
|
169
|
+
})), Promise.all(h).then(() => {
|
|
170
|
+
re.success("保存成功"), c.setRefreshCurStructure(!0);
|
|
171
|
+
}).catch((n) => {
|
|
172
|
+
re.success("保存响应失败");
|
|
173
|
+
});
|
|
174
|
+
}, O = async (e, t = "data") => {
|
|
175
|
+
var d, r, v, l, h, b;
|
|
176
|
+
if ((e == null ? void 0 : e.type) === "delete")
|
|
177
|
+
await Ge((d = e == null ? void 0 : e.singleContent) == null ? void 0 : d.id);
|
|
178
|
+
else if ((e == null ? void 0 : e.buttonName) === "新增") {
|
|
179
|
+
let n = {};
|
|
180
|
+
for (let y in e == null ? void 0 : e.singleContent)
|
|
181
|
+
y !== "id" && y !== "index" && (n[y] = e == null ? void 0 : e.singleContent[y]);
|
|
182
|
+
await qe(
|
|
183
|
+
t,
|
|
184
|
+
P.value,
|
|
185
|
+
e == null ? void 0 : e.index,
|
|
186
|
+
sessionStorage.getItem("systemKey"),
|
|
187
|
+
Object.values(n),
|
|
188
|
+
e == null ? void 0 : e.column
|
|
189
|
+
);
|
|
190
|
+
} else if ((e == null ? void 0 : e.buttonName) === "编辑") {
|
|
191
|
+
let n = {}, y = (r = e == null ? void 0 : e.singleContent) == null ? void 0 : r.id;
|
|
192
|
+
for (let s in e == null ? void 0 : e.singleContent)
|
|
193
|
+
s !== "id" && s !== "index" && (n[s] = e == null ? void 0 : e.singleContent[s]);
|
|
194
|
+
await He(
|
|
195
|
+
t,
|
|
196
|
+
P.value,
|
|
197
|
+
e == null ? void 0 : e.index,
|
|
198
|
+
y,
|
|
199
|
+
sessionStorage.getItem("systemKey"),
|
|
200
|
+
Object.values(n),
|
|
201
|
+
e == null ? void 0 : e.column
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
let f = (l = (v = j.value) == null ? void 0 : v[j.value.length - 1]) != null && l.key ? parseInt((b = (h = j.value) == null ? void 0 : h[j.value.length - 1]) == null ? void 0 : b.key) : "";
|
|
205
|
+
_.value = await oe(P.value, sessionStorage.getItem("systemKey"), f), c.setItemData(_.value), c.setOriginalData(_.value);
|
|
206
|
+
}, S = (e) => {
|
|
207
|
+
_.value = e, c.setItemData(_.value), c.setOriginalData(_.value);
|
|
208
|
+
}, B = async (e) => {
|
|
209
|
+
var f, d;
|
|
210
|
+
await We(e == null ? void 0 : e.index, {
|
|
211
|
+
comp: "Form",
|
|
212
|
+
compData: (f = V(e == null ? void 0 : e.contents)) == null ? void 0 : f.filter((r) => r.contents),
|
|
213
|
+
name: ""
|
|
214
|
+
});
|
|
215
|
+
const t = (d = V(_.value)) == null ? void 0 : d.map((r) => ((r == null ? void 0 : r.id) === (e == null ? void 0 : e.index) && (r.compData = e == null ? void 0 : e.contents), r));
|
|
216
|
+
c.setItemData(t), c.setOriginalData(t);
|
|
217
|
+
}, N = async (e) => {
|
|
218
|
+
var t;
|
|
219
|
+
if ((e == null ? void 0 : e.key) === "main" || j.value.length === 1)
|
|
220
|
+
_.value = await oe(P.value, sessionStorage.getItem("systemKey")), x.setSelectIndex(""), x.setSelectMenu(""), x.setSelectTitle([]);
|
|
221
|
+
else {
|
|
222
|
+
const f = [], d = (e == null ? void 0 : e.key) === "" || !(e != null && e.key) ? "" : parseInt(e == null ? void 0 : e.key);
|
|
223
|
+
_.value = await oe(P.value, sessionStorage.getItem("systemKey"), d);
|
|
224
|
+
let r = -1;
|
|
225
|
+
(t = j.value) == null || t.forEach((v, l) => {
|
|
226
|
+
(v == null ? void 0 : v.key) === (e == null ? void 0 : e.key) && (r = l), (r === -1 || r >= l) && f.push(v);
|
|
227
|
+
}), x.setSelectTitle(f), d !== "" ? x.setSelectMenu(e == null ? void 0 : e.key) : (x.setSelectIndex(""), x.setSelectMenu(""));
|
|
228
|
+
}
|
|
229
|
+
c.setItemData(_.value), c.setOriginalData(_.value);
|
|
230
|
+
}, ae = (e) => {
|
|
231
|
+
var t, f, d;
|
|
232
|
+
return ((f = (t = m.value) == null ? void 0 : t.layer) == null ? void 0 : f.toUpperCase()) === "SUPERADMIN" || ((d = m.value) == null ? void 0 : d.account) === (e == null ? void 0 : e.account);
|
|
233
|
+
}, le = async (e, t = [], f) => {
|
|
234
|
+
const d = ke("/系统管理/角色管理"), r = ke("/系统管理/部门管理");
|
|
235
|
+
return await Promise.all([d, r]).then((l) => {
|
|
236
|
+
var n, y;
|
|
237
|
+
const h = (n = l == null ? void 0 : l[0]) == null ? void 0 : n.map((s) => ({
|
|
238
|
+
label: s == null ? void 0 : s.roleName,
|
|
239
|
+
value: s == null ? void 0 : s.roleName
|
|
240
|
+
})), b = (y = l == null ? void 0 : l[1]) == null ? void 0 : y.map((s) => ({
|
|
241
|
+
label: s == null ? void 0 : s.deptName,
|
|
242
|
+
value: s == null ? void 0 : s.deptName
|
|
243
|
+
}));
|
|
244
|
+
return f ? e == null ? void 0 : e.map((s) => {
|
|
245
|
+
var J;
|
|
246
|
+
return {
|
|
247
|
+
...s,
|
|
248
|
+
compData: (J = s == null ? void 0 : s.compData) == null ? void 0 : J.map((a) => {
|
|
249
|
+
var o, M;
|
|
250
|
+
return (a == null ? void 0 : a.key) === "header" ? {
|
|
251
|
+
...a,
|
|
252
|
+
contents: (o = a == null ? void 0 : a.contents) == null ? void 0 : o.map((I) => I.prop === "userDept" ? {
|
|
253
|
+
...I,
|
|
254
|
+
options: b
|
|
255
|
+
} : I.prop === "userRoles" ? {
|
|
256
|
+
...I,
|
|
257
|
+
options: h
|
|
258
|
+
} : I)
|
|
259
|
+
} : (a == null ? void 0 : a.key) === "tableContents" ? {
|
|
260
|
+
...a,
|
|
261
|
+
contents: (M = a == null ? void 0 : a.contents) == null ? void 0 : M.map((I) => {
|
|
262
|
+
var w;
|
|
263
|
+
return {
|
|
264
|
+
...I,
|
|
265
|
+
password: ae(I) ? pe(I == null ? void 0 : I.password, (w = A == null ? void 0 : A.value) == null ? void 0 : w.privateKey) : I == null ? void 0 : I.password
|
|
266
|
+
};
|
|
267
|
+
})
|
|
268
|
+
} : a;
|
|
269
|
+
})
|
|
270
|
+
};
|
|
271
|
+
}) : e == null ? void 0 : e.map((s) => {
|
|
272
|
+
var J;
|
|
273
|
+
return {
|
|
274
|
+
...s,
|
|
275
|
+
compData: (J = s == null ? void 0 : s.compData) == null ? void 0 : J.map((a) => {
|
|
276
|
+
var o, M, I;
|
|
277
|
+
return (a == null ? void 0 : a.key) === "rowButton" || (a == null ? void 0 : a.key) === "extraButton" ? {
|
|
278
|
+
...a,
|
|
279
|
+
contents: (o = a == null ? void 0 : a.contents) == null ? void 0 : o.filter((w) => t == null ? void 0 : t.includes(w == null ? void 0 : w.label))
|
|
280
|
+
} : (a == null ? void 0 : a.key) === "header" ? {
|
|
281
|
+
...a,
|
|
282
|
+
contents: (M = a == null ? void 0 : a.contents) == null ? void 0 : M.map((w) => w.prop === "userDept" ? {
|
|
283
|
+
...w,
|
|
284
|
+
options: b
|
|
285
|
+
} : w.prop === "userRoles" ? {
|
|
286
|
+
...w,
|
|
287
|
+
options: h
|
|
288
|
+
} : w)
|
|
289
|
+
} : (a == null ? void 0 : a.key) === "tableContents" ? {
|
|
290
|
+
...a,
|
|
291
|
+
contents: (I = a == null ? void 0 : a.contents) == null ? void 0 : I.map((w) => {
|
|
292
|
+
var he;
|
|
293
|
+
return {
|
|
294
|
+
...w,
|
|
295
|
+
password: ae(w) ? pe(w == null ? void 0 : w.password, (he = A == null ? void 0 : A.value) == null ? void 0 : he.privateKey) : w == null ? void 0 : w.password
|
|
296
|
+
};
|
|
297
|
+
})
|
|
298
|
+
} : a;
|
|
299
|
+
})
|
|
300
|
+
};
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
};
|
|
304
|
+
Y(
|
|
305
|
+
() => [P.value, se.value],
|
|
306
|
+
async (e) => {
|
|
307
|
+
var d;
|
|
308
|
+
const t = e == null ? void 0 : e[0], f = e == null ? void 0 : e[1];
|
|
309
|
+
if (t || f) {
|
|
310
|
+
Xe(), sessionStorage.setItem("pageKey", P.value);
|
|
311
|
+
const r = await oe(t, sessionStorage.getItem("systemKey"), "", P.value);
|
|
312
|
+
c.setExtraContents([]);
|
|
313
|
+
const v = sessionStorage.getItem("authority"), l = JSON.parse(v || "");
|
|
314
|
+
if (Array.isArray(l)) {
|
|
315
|
+
const h = Array.isArray(l) && (l == null ? void 0 : l.filter((n) => n == null ? void 0 : n.includes(t))), b = h == null ? void 0 : h.map((n) => {
|
|
316
|
+
var y;
|
|
317
|
+
return ((y = n == null ? void 0 : n.split("/")) == null ? void 0 : y.pop()) || "";
|
|
318
|
+
});
|
|
319
|
+
_.value = t === "/系统管理/用户管理" ? await le(r, b, !1) : r == null ? void 0 : r.map((n) => {
|
|
320
|
+
var y;
|
|
321
|
+
return {
|
|
322
|
+
...n,
|
|
323
|
+
compData: (y = n == null ? void 0 : n.compData) == null ? void 0 : y.map((s) => {
|
|
324
|
+
var J;
|
|
325
|
+
return (s == null ? void 0 : s.key) === "rowButton" || (s == null ? void 0 : s.key) === "extraButton" ? {
|
|
326
|
+
...s,
|
|
327
|
+
contents: (J = s == null ? void 0 : s.contents) == null ? void 0 : J.filter((a) => b == null ? void 0 : b.includes(a == null ? void 0 : a.label))
|
|
328
|
+
} : s;
|
|
329
|
+
})
|
|
330
|
+
};
|
|
331
|
+
});
|
|
332
|
+
} else typeof l == "string" && (l == null ? void 0 : l.toUpperCase()) === "SUPERADMIN" ? _.value = t === "/系统管理/用户管理" ? await le(r, null, !0) : r : _.value = [];
|
|
333
|
+
x.setSelectTitle([]), x.setSelectIndex(""), x.setSelectMenu(""), c.setItemData(_.value), c.setOriginalData(_.value), c.setCurStructureCompIds((d = _.value) == null ? void 0 : d.map((h) => h == null ? void 0 : h.id)), c.setRefreshCurStructure(!1), j.value = P.value.split("/").filter((h) => h !== "").map((h) => ({ value: h.trim() }));
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
immediate: !0
|
|
338
|
+
}
|
|
339
|
+
), Y(
|
|
340
|
+
() => [u == null ? void 0 : u.content, u == null ? void 0 : u.jsonContents],
|
|
341
|
+
async () => {
|
|
342
|
+
var f, d, r, v;
|
|
343
|
+
if (((f = u == null ? void 0 : u.jsonContents) == null ? void 0 : f.length) > 0) {
|
|
344
|
+
c.setOriginalData(u == null ? void 0 : u.jsonContents);
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
if (!(u != null && u.content) || ((d = u == null ? void 0 : u.content) == null ? void 0 : d.length) === 0) return;
|
|
348
|
+
ee.value = !0, L.value = !0;
|
|
349
|
+
let e = [], t = [];
|
|
350
|
+
x.setSelectTitle([]), x.setSelectIndex(""), x.setSelectMenu(""), (v = (r = u == null ? void 0 : u.content) == null ? void 0 : r.filter((l) => l !== "")) == null || v.forEach((l) => {
|
|
351
|
+
Je(l) ? t.push(Ue(l)) : Ce(l) ? t.push(Ce(l)) : we(l) ? t.push(we(l)) : t.push(ra(l));
|
|
352
|
+
}), e = t == null ? void 0 : t[0], await Qe(e), c.setOriginalData(e), ee.value = !1;
|
|
353
|
+
},
|
|
354
|
+
{ deep: !0, immediate: !0 }
|
|
355
|
+
);
|
|
356
|
+
const fe = (e) => Ve(e);
|
|
357
|
+
return (e, t) => {
|
|
358
|
+
const f = G("el-aside"), d = G("el-button"), r = G("el-avatar"), v = G("el-header"), l = G("router-view"), h = G("el-main"), b = G("el-container"), n = Pe("loading");
|
|
359
|
+
return g(), k("div", oa, [
|
|
360
|
+
$e((g(), Q(b, { "element-loading-text": "正在加载页面数据..." }, {
|
|
361
|
+
default: U(() => [
|
|
362
|
+
K(F) === "view" ? (g(), Q(f, {
|
|
363
|
+
key: 0,
|
|
364
|
+
width: "250px"
|
|
365
|
+
}, {
|
|
366
|
+
default: U(() => [
|
|
367
|
+
T(Ne)
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
})) : z("", !0),
|
|
371
|
+
T(b, null, {
|
|
372
|
+
default: U(() => [
|
|
373
|
+
T(v, null, {
|
|
374
|
+
default: U(() => {
|
|
375
|
+
var y;
|
|
376
|
+
return [
|
|
377
|
+
D("div", ia, [
|
|
378
|
+
D("div", ua, [
|
|
379
|
+
K(F) === "edit" ? (g(), k("div", da, [
|
|
380
|
+
T(d, {
|
|
381
|
+
text: "",
|
|
382
|
+
onClick: de
|
|
383
|
+
}, {
|
|
384
|
+
default: U(() => t[0] || (t[0] = [
|
|
385
|
+
ce(" 返回页面 ")
|
|
386
|
+
])),
|
|
387
|
+
_: 1,
|
|
388
|
+
__: [0]
|
|
389
|
+
}),
|
|
390
|
+
T(d, {
|
|
391
|
+
text: "",
|
|
392
|
+
onClick: p
|
|
393
|
+
}, {
|
|
394
|
+
icon: U(() => [
|
|
395
|
+
T(Se, { name: "Store" })
|
|
396
|
+
]),
|
|
397
|
+
default: U(() => [
|
|
398
|
+
t[1] || (t[1] = ce(" 保存页面 "))
|
|
399
|
+
]),
|
|
400
|
+
_: 1,
|
|
401
|
+
__: [1]
|
|
402
|
+
})
|
|
403
|
+
])) : z("", !0),
|
|
404
|
+
(g(), Q(na, {
|
|
405
|
+
key: K(j),
|
|
406
|
+
breadArray: K(j),
|
|
407
|
+
onClick: N
|
|
408
|
+
}, null, 8, ["breadArray"]))
|
|
409
|
+
]),
|
|
410
|
+
D("div", ca, [
|
|
411
|
+
K(F) === "view" ? (g(), k("div", {
|
|
412
|
+
key: 0,
|
|
413
|
+
class: "select-icon",
|
|
414
|
+
onClick: ue
|
|
415
|
+
}, [
|
|
416
|
+
D("div", va, [
|
|
417
|
+
T(Se, {
|
|
418
|
+
name: "write",
|
|
419
|
+
style: { width: "16px", height: "16px" }
|
|
420
|
+
})
|
|
421
|
+
]),
|
|
422
|
+
t[2] || (t[2] = D("div", null, H("修改布局"), -1))
|
|
423
|
+
])) : z("", !0),
|
|
424
|
+
D("div", ga, [
|
|
425
|
+
Ee(e.$slots, "default", {}, void 0, !0)
|
|
426
|
+
]),
|
|
427
|
+
T(r, {
|
|
428
|
+
size: 35,
|
|
429
|
+
src: (y = K(m)) == null ? void 0 : y.avatarUrl
|
|
430
|
+
}, {
|
|
431
|
+
default: U(() => {
|
|
432
|
+
var s;
|
|
433
|
+
return [
|
|
434
|
+
ce(H(((s = K(m)) == null ? void 0 : s.account) ?? "未知"), 1)
|
|
435
|
+
];
|
|
436
|
+
}),
|
|
437
|
+
_: 1
|
|
438
|
+
}, 8, ["src"])
|
|
439
|
+
])
|
|
440
|
+
])
|
|
441
|
+
];
|
|
442
|
+
}),
|
|
443
|
+
_: 3
|
|
444
|
+
}),
|
|
445
|
+
T(h, {
|
|
446
|
+
style: me({ display: K(F) === "edit" ? "block" : "flex" })
|
|
447
|
+
}, {
|
|
448
|
+
default: U(() => {
|
|
449
|
+
var y, s, J, a;
|
|
450
|
+
return [
|
|
451
|
+
K(F) === "edit" ? (g(), k("div", ya, [
|
|
452
|
+
D("div", fa, [
|
|
453
|
+
T(xe)
|
|
454
|
+
]),
|
|
455
|
+
(g(), k("div", {
|
|
456
|
+
class: "model-show",
|
|
457
|
+
key: e.innerWidth
|
|
458
|
+
}, [
|
|
459
|
+
T(Ie)
|
|
460
|
+
])),
|
|
461
|
+
D("div", ha, [
|
|
462
|
+
T(Te)
|
|
463
|
+
])
|
|
464
|
+
])) : e.$route.path === "/" && ((y = _.value) == null ? void 0 : y.length) > 0 && K(F) === "view" ? (g(), k("div", _a, [
|
|
465
|
+
D("div", Ca, [
|
|
466
|
+
(s = K(V)(_.value)) != null && s.find((o) => o.comp === "FormTop") ? (g(), k("div", {
|
|
467
|
+
class: "show-header",
|
|
468
|
+
key: e.index
|
|
469
|
+
}, [
|
|
470
|
+
(g(!0), k(ve, null, ge((J = K(V)(_.value)) == null ? void 0 : J.filter((o) => o.comp === "FormTop"), (o, M) => (g(), k("div", {
|
|
471
|
+
class: "item-content",
|
|
472
|
+
key: M
|
|
473
|
+
}, [
|
|
474
|
+
D("div", wa, H(o.name), 1),
|
|
475
|
+
(g(), Q(_e(fe(o.comp)), {
|
|
476
|
+
itemData: o == null ? void 0 : o.compData,
|
|
477
|
+
childItemData: o == null ? void 0 : o.itemChildData,
|
|
478
|
+
key: (o == null ? void 0 : o.id) ?? M,
|
|
479
|
+
onChange: O,
|
|
480
|
+
index: (o == null ? void 0 : o.id) ?? M,
|
|
481
|
+
onContentChange: B,
|
|
482
|
+
onPageChange: S
|
|
483
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
484
|
+
]))), 128))
|
|
485
|
+
])) : z("", !0),
|
|
486
|
+
D("div", ka, [
|
|
487
|
+
(g(!0), k(ve, null, ge((a = K(V)(_.value)) == null ? void 0 : a.filter((o) => o.comp !== "FormTop"), (o, M) => (g(), k("div", {
|
|
488
|
+
class: "item-content",
|
|
489
|
+
key: M
|
|
490
|
+
}, [
|
|
491
|
+
D("div", pa, H(o.name), 1),
|
|
492
|
+
(g(), Q(_e(fe(o.comp)), {
|
|
493
|
+
itemData: o == null ? void 0 : o.compData,
|
|
494
|
+
childItemData: o == null ? void 0 : o.itemChildData,
|
|
495
|
+
key: (o == null ? void 0 : o.id) ?? M,
|
|
496
|
+
onChange: O,
|
|
497
|
+
index: (o == null ? void 0 : o.id) ?? M,
|
|
498
|
+
onContentChange: B,
|
|
499
|
+
onPageChange: S
|
|
500
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
501
|
+
]))), 128))
|
|
502
|
+
])
|
|
503
|
+
])
|
|
504
|
+
])) : K(F) === "view" ? (g(), k("div", Sa, [
|
|
505
|
+
T(l)
|
|
506
|
+
])) : z("", !0)
|
|
507
|
+
];
|
|
508
|
+
}),
|
|
509
|
+
_: 1
|
|
510
|
+
}, 8, ["style"])
|
|
511
|
+
]),
|
|
512
|
+
_: 3
|
|
513
|
+
})
|
|
514
|
+
]),
|
|
515
|
+
_: 3
|
|
516
|
+
})), [
|
|
517
|
+
[n, ee.value]
|
|
518
|
+
])
|
|
519
|
+
]);
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
}, ma = /* @__PURE__ */ ye(Da, [["__scopeId", "data-v-f2dfa760"]]), xa = { class: "add-model-content" }, Ia = {
|
|
523
|
+
key: 0,
|
|
524
|
+
class: "model-operate"
|
|
525
|
+
}, Ta = { class: "model-select" }, Aa = { class: "model-fill" }, ba = {
|
|
526
|
+
key: 1,
|
|
527
|
+
class: "model-view"
|
|
528
|
+
}, Pa = {
|
|
529
|
+
key: 0,
|
|
530
|
+
class: "model-import-data"
|
|
531
|
+
}, $a = { class: "import-button" }, Ea = {
|
|
532
|
+
__name: "index",
|
|
533
|
+
props: {
|
|
534
|
+
mode: {
|
|
535
|
+
type: String,
|
|
536
|
+
default: "view"
|
|
537
|
+
},
|
|
538
|
+
content: {
|
|
539
|
+
type: String,
|
|
540
|
+
default: ""
|
|
541
|
+
},
|
|
542
|
+
jsonContents: {
|
|
543
|
+
type: Array,
|
|
544
|
+
default: () => []
|
|
545
|
+
},
|
|
546
|
+
showButton: {
|
|
547
|
+
type: Boolean,
|
|
548
|
+
default: !0
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
emits: ["change", "contentChange"],
|
|
552
|
+
setup(R, { emit: q }) {
|
|
553
|
+
const i = R, m = q, A = $([]), u = $([]), c = $([]), L = $(0), E = Ae(te), W = be(te), { itemData: F, originalData: se } = X(E), { activeMenuPath: ne } = X(W), x = $(null), P = $(0), Z = $([]);
|
|
554
|
+
$("");
|
|
555
|
+
const ie = $(0), j = (C) => {
|
|
556
|
+
m("contentChange", C);
|
|
557
|
+
}, ee = (C) => {
|
|
558
|
+
var O;
|
|
559
|
+
const p = (O = V(C == null ? void 0 : C.wholeValue)) == null ? void 0 : O.map((S) => {
|
|
560
|
+
var B;
|
|
561
|
+
return (S == null ? void 0 : S.comp) === "Form" && (S.compData = (B = S.compData) == null ? void 0 : B.map((N) => ((N == null ? void 0 : N.key) === "formContent" && (N.contents = Re(N == null ? void 0 : N.contents)), N))), S;
|
|
562
|
+
});
|
|
563
|
+
m("change", {
|
|
564
|
+
originalContents: se.value,
|
|
565
|
+
currentContents: C == null ? void 0 : C.wholeValue,
|
|
566
|
+
editContent: C == null ? void 0 : C.editValue,
|
|
567
|
+
arrayToContents: p
|
|
568
|
+
});
|
|
569
|
+
};
|
|
570
|
+
Y(
|
|
571
|
+
() => u.value,
|
|
572
|
+
() => {
|
|
573
|
+
ie.value === u.value.length && u.value.length !== 0 && (A.value = u.value);
|
|
574
|
+
},
|
|
575
|
+
{ deep: !0, immediate: !0 }
|
|
576
|
+
);
|
|
577
|
+
const _ = () => {
|
|
578
|
+
x.value.click();
|
|
579
|
+
}, ue = async (C) => {
|
|
580
|
+
const p = C.target.files;
|
|
581
|
+
if (!p) return;
|
|
582
|
+
new FileReader(), A.value = [], u.value = [], ie.value = p.length;
|
|
583
|
+
const O = Array.from(p).map(async (S) => await new Promise((B) => {
|
|
584
|
+
const N = new FileReader();
|
|
585
|
+
N.onload = (ae) => {
|
|
586
|
+
try {
|
|
587
|
+
u.value.push(ae.target.result), Z.value = de(ae.target.result), P.value++;
|
|
588
|
+
} catch (le) {
|
|
589
|
+
console.error("解析失败:", le);
|
|
590
|
+
return;
|
|
591
|
+
}
|
|
592
|
+
}, N.onerror = () => B(`读取 ${S.name} 失败`), N.readAsText(S);
|
|
593
|
+
}));
|
|
594
|
+
await Promise.all(O);
|
|
595
|
+
};
|
|
596
|
+
Y(
|
|
597
|
+
() => [i == null ? void 0 : i.content, i == null ? void 0 : i.jsonContents],
|
|
598
|
+
() => {
|
|
599
|
+
A.value = i.content, c.value = i == null ? void 0 : i.jsonContents;
|
|
600
|
+
},
|
|
601
|
+
{ deep: !0, immediate: !0 }
|
|
602
|
+
), Y(
|
|
603
|
+
() => P.value,
|
|
604
|
+
() => {
|
|
605
|
+
var C;
|
|
606
|
+
((C = Z.value) == null ? void 0 : C.length) !== 0 && (E.setOriginalData(Z.value), E.setItemData(Z.value));
|
|
607
|
+
},
|
|
608
|
+
{ deep: !0, immediate: !0 }
|
|
609
|
+
);
|
|
610
|
+
const de = (C) => {
|
|
611
|
+
let p = C.replace(/,/g, ",").replace(/;/g, ";").replace(/:/g, ":");
|
|
612
|
+
p = p.replace(/(\w+)\s*:/g, "$1:"), p = p.replace(/\r\n/g, "").replace(/\n/g, "").replace(/\t/g, "").replace(/\s+/g, " ").trim(), p = p.replace(/,\s*([}\]])/g, "$1"), p = p.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g, ": $2$4");
|
|
613
|
+
try {
|
|
614
|
+
return JSON.parse(p);
|
|
615
|
+
} catch (O) {
|
|
616
|
+
try {
|
|
617
|
+
const B = new Function(`return ${p}`)();
|
|
618
|
+
if (Array.isArray(B) || typeof B == "object")
|
|
619
|
+
return B;
|
|
620
|
+
throw new Error(`解析结果不是有效的数组或对象: ${O}`);
|
|
621
|
+
} catch (S) {
|
|
622
|
+
throw new Error(`无法解析JSON: ${S.message}`);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
return (C, p) => {
|
|
627
|
+
const O = G("svg-icon");
|
|
628
|
+
return g(), k("div", xa, [
|
|
629
|
+
(i == null ? void 0 : i.mode) === "edit" ? (g(), k("div", Ia, [
|
|
630
|
+
D("div", Ta, [
|
|
631
|
+
T(xe)
|
|
632
|
+
]),
|
|
633
|
+
(g(), k("div", {
|
|
634
|
+
class: "model-show",
|
|
635
|
+
key: L.value
|
|
636
|
+
}, [
|
|
637
|
+
T(Ie)
|
|
638
|
+
])),
|
|
639
|
+
D("div", Aa, [
|
|
640
|
+
T(Te)
|
|
641
|
+
])
|
|
642
|
+
])) : z("", !0),
|
|
643
|
+
(i == null ? void 0 : i.mode) === "view" ? (g(), k("div", ba, [
|
|
644
|
+
(g(), Q(ma, {
|
|
645
|
+
content: A.value,
|
|
646
|
+
onChange: ee,
|
|
647
|
+
jsonContents: c.value,
|
|
648
|
+
onContentChange: j,
|
|
649
|
+
key: L.value
|
|
650
|
+
}, {
|
|
651
|
+
default: U(() => {
|
|
652
|
+
var S;
|
|
653
|
+
return [
|
|
654
|
+
((S = i == null ? void 0 : i.jsonContents) == null ? void 0 : S.length) === 0 && (i != null && i.showButton) ? (g(), k("div", Pa, [
|
|
655
|
+
D("div", $a, [
|
|
656
|
+
D("input", {
|
|
657
|
+
type: "file",
|
|
658
|
+
ref_key: "fileInput",
|
|
659
|
+
ref: x,
|
|
660
|
+
accept: ".txt, .inm",
|
|
661
|
+
onChange: ue,
|
|
662
|
+
style: { display: "none" },
|
|
663
|
+
multiple: ""
|
|
664
|
+
}, null, 544),
|
|
665
|
+
T(O, {
|
|
666
|
+
name: "import",
|
|
667
|
+
style: { width: "16px", height: "16px" }
|
|
668
|
+
}),
|
|
669
|
+
D("div", { onClick: _ }, H("导入文件"))
|
|
670
|
+
])
|
|
671
|
+
])) : z("", !0)
|
|
672
|
+
];
|
|
673
|
+
}),
|
|
674
|
+
_: 1
|
|
675
|
+
}, 8, ["content", "jsonContents"]))
|
|
676
|
+
])) : z("", !0)
|
|
677
|
+
]);
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
}, Qa = /* @__PURE__ */ ye(Ea, [["__scopeId", "data-v-cea2aaad"]]);
|
|
681
|
+
export {
|
|
682
|
+
Qa as default
|
|
683
|
+
};
|