ss-component-new 1.1.673 → 1.1.674
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-TrSlwUca.cjs → index-3aybZnSW.cjs} +12 -12
- package/dist/{index-B30XJOs3.cjs → index-BDb7B8HU.cjs} +1 -1
- package/dist/index-BIAxDQCI.cjs +1 -0
- package/dist/{index-SmgXZMzW.cjs → index-BRr05BI6.cjs} +1 -1
- package/dist/{index-CATxnumc.js → index-BXLxZ9fm.js} +1 -1
- package/dist/{index-kWByfC4o.js → index-BZJd4Jzg.js} +2 -2
- package/dist/{index-5wx6HWci.cjs → index-Bfr4Lhl3.cjs} +1 -1
- package/dist/index-Bz4siCaT.js +4797 -0
- package/dist/{index-BherGjtS.js → index-C15ngNr7.js} +744 -741
- package/dist/{index-ffAwp6Xk.js → index-C4ri1PTc.js} +1 -1
- package/dist/{index-Xt80Eixy.cjs → index-C8MY1jA8.cjs} +1 -1
- package/dist/{index-BycPK6ER.cjs → index-CAj1a6dQ.cjs} +1 -1
- package/dist/{index-a-6BM2v7.cjs → index-CDnRx-3D.cjs} +1 -1
- package/dist/{index-MdfTs3IW.js → index-CIpkJDe6.js} +1 -1
- package/dist/{index-Dak9uSWv.js → index-CUtI4Z9I.js} +9 -9
- package/dist/{index-D9gWoJWx.cjs → index-CmLuS-YA.cjs} +1 -1
- package/dist/{index-BG7db_fp.cjs → index-CoFDZaHl.cjs} +1 -1
- package/dist/{index-BR48zxJv.cjs → index-D1DxVuMh.cjs} +1 -1
- package/dist/{index-DhQ8a3YR.js → index-D6Flz_p0.js} +2 -2
- package/dist/{index-lyq3xIUs.js → index-D9BXNy7K.js} +1 -1
- package/dist/{index-DaNlQc0P.cjs → index-DGp4v4xW.cjs} +1 -1
- package/dist/{index-lGB5epCv.js → index-DNC5buY-.js} +3 -3
- package/dist/{index-CMk6SXBq.js → index-DRF4IZFH.js} +2 -2
- package/dist/{index-qzENXAL4.js → index-DX1Of1i5.js} +1 -1
- package/dist/{index-C-N2rdZD.js → index-Dcl2wLUS.js} +1 -1
- package/dist/{index-BFR3uzRB.cjs → index-PpzwxZV2.cjs} +1 -1
- package/dist/{index-D1No61pJ.cjs → index-Q9bOV9eV.cjs} +1 -1
- package/dist/{index-Cr0na9CZ.js → index-QmneEi-8.js} +1 -1
- package/dist/{index-wWUOI4E7.js → index-VrO186YI.js} +4 -4
- package/dist/{index-BdBQpBkQ.cjs → index-dADM0fIL.cjs} +1 -1
- package/dist/{index-DM3ptK-H.cjs → index-jDSjJNAE.cjs} +1 -1
- package/dist/{index-BlocFKJ3.js → index-lKk1Mbr7.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-D8V6ioFI.js → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-CLE6As06.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-B25pwnI-.cjs → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-D3NoTxbd.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_696fe121_lang-DgLvt0m8.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BR4HSvZF.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_696fe121_lang-DkOZHnC8.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DNWTSQrO.js} +3 -3
- package/dist/{main-BUMvxHfK.js → main-CPxD7CQu.js} +2 -2
- package/dist/{main-DfD2jM0S.cjs → main-DyPHN2CB.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-BNwew2OV.cjs → threeModel-D1jxSx0r.cjs} +1 -1
- package/dist/{threeModel-CyvYIq7z.js → threeModel-DPvrAQ2h.js} +1 -1
- package/package.json +1 -1
- package/dist/index-B24RWeFD.js +0 -4785
- package/dist/index-Dkjog5hI.cjs +0 -1
|
@@ -0,0 +1,4797 @@
|
|
|
1
|
+
import { b as Xa, a as Ya, t as Za, f as es, g as ls, c as Ra, s as as } from "./index-DX1Of1i5.js";
|
|
2
|
+
import { ref as Q, watch as ze, createElementBlock as ge, openBlock as oe, createVNode as ae, createBlock as Oe, createCommentVNode as We, withCtx as ve, resolveComponent as Le, Fragment as Pe, renderList as Ue, createElementVNode as S, toDisplayString as De, createTextVNode as Fe, defineComponent as Dl, reactive as oa, resolveDynamicComponent as Ml, unref as Cl, computed as ua, renderSlot as Gl, createSlots as ss, mergeProps as is, normalizeStyle as ns, withModifiers as Wl } from "vue";
|
|
3
|
+
import { bB as os, bC as us, p as Ye, s as Ze, c as l, b as Hl, E as ll, g as gl, d as rs, u as Ua, bx as Va, by as Sa, bw as Ta, bD as cs } from "./menu-B_PRFK5X.js";
|
|
4
|
+
import { e as Qe, f as ja, s as Xe, h as Na, a as Ba, i as ts, j as ds, b as ps } from "./index-C15ngNr7.js";
|
|
5
|
+
import { F as Fa, z as fs, I as rl, A as hs, B as Ke, C as El, D as ul, E as wl, G as ea, g as bl, H as vs, J as ms, K as ys, L as bs, M as gs, N as Oa, O as ks, P as _s, Q as Cs } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-hmR9HLh1.js";
|
|
6
|
+
import { u as ra } from "./login-DHDms8MF.js";
|
|
7
|
+
import { _ as je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
import { E as pl } from "./index-4itasbDU.js";
|
|
9
|
+
import { u as ca } from "./modelComp-CUhhdEAE.js";
|
|
10
|
+
import { s as ws, a as Ds } from "./index-CIpkJDe6.js";
|
|
11
|
+
import As from "./index-CZtXRS3l.js";
|
|
12
|
+
var Is = "[object Boolean]";
|
|
13
|
+
function xs(u) {
|
|
14
|
+
return u === !0 || u === !1 || os(u) && us(u) == Is;
|
|
15
|
+
}
|
|
16
|
+
function Es(u) {
|
|
17
|
+
return u === void 0;
|
|
18
|
+
}
|
|
19
|
+
const $s = { class: "form-content" }, Ss = {
|
|
20
|
+
__name: "index",
|
|
21
|
+
props: {
|
|
22
|
+
formRules: Object,
|
|
23
|
+
itemData: {
|
|
24
|
+
type: Array,
|
|
25
|
+
default: () => []
|
|
26
|
+
},
|
|
27
|
+
childItemData: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => []
|
|
30
|
+
},
|
|
31
|
+
index: Number
|
|
32
|
+
},
|
|
33
|
+
emits: ["change", "contentChange"],
|
|
34
|
+
setup(u, { emit: y }) {
|
|
35
|
+
const n = Q(!1), s = Q(!1), p = Q(""), R = () => {
|
|
36
|
+
n.value = !1, s.value = null, p.value = "";
|
|
37
|
+
}, L = u, D = y, N = Q([]), H = Q(!1), B = Q(!1), ue = Q([]), ee = Q(), ye = Xa(Ye), re = Ya(Ye), me = Q(!1), A = Q(), x = ra(Ye), { loginUserInfo: pe } = Ze(x), d = Q(), v = Q(!0), m = (de, _e) => {
|
|
38
|
+
d.value === _e ? v.value = !1 : v.value = !0, d.value = _e == null ? void 0 : _e.changeProp;
|
|
39
|
+
}, g = async (de) => {
|
|
40
|
+
var k, a, h, w, t, q, ce, fe, c, E;
|
|
41
|
+
let _e = [];
|
|
42
|
+
if ((k = de == null ? void 0 : de.toString()) != null && k.includes(".urdf")) {
|
|
43
|
+
p.value = de, n.value = !0;
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if ((a = de == null ? void 0 : de.toString()) != null && a.includes(".stl") || (h = de == null ? void 0 : de.toString()) != null && h.includes(".STL") || (w = de == null ? void 0 : de.toString()) != null && w.includes(".obj") || (t = de == null ? void 0 : de.toString()) != null && t.includes(".mtl")) {
|
|
47
|
+
let P, J = [], ne = {};
|
|
48
|
+
if (Array.isArray(de) ? P = de : P = de == null ? void 0 : de.split(","), P == null || P.forEach((z) => {
|
|
49
|
+
z.includes(".mtl") ? J.push(z) : ne.blob = ne.blob ? ne.blob + "," + z : z;
|
|
50
|
+
}), (J == null ? void 0 : J.length) > 0 && (ne.mtlBlobs = J), (ce = (q = Object.values(ne)) == null ? void 0 : q[0]) != null && ce.includes("http:"))
|
|
51
|
+
_e.push(ne);
|
|
52
|
+
else {
|
|
53
|
+
const z = new Blob([ne.blob], {
|
|
54
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
55
|
+
});
|
|
56
|
+
let T = URL.createObjectURL(z), O = "";
|
|
57
|
+
(fe = de == null ? void 0 : de.split("/")) == null || fe.forEach((_, X) => {
|
|
58
|
+
var Y;
|
|
59
|
+
X === ((Y = de == null ? void 0 : de.split("/")) == null ? void 0 : Y.length) - 1 && (O = _);
|
|
60
|
+
}), (c = ne.blob) != null && c.includes(".stl") && (O = (O == null ? void 0 : O.replaceAll(">", "")) + ".urdf"), ee.value = [{
|
|
61
|
+
name: O,
|
|
62
|
+
blobUrl: T
|
|
63
|
+
}], B.value = !0;
|
|
64
|
+
}
|
|
65
|
+
} else {
|
|
66
|
+
const P = await Hl.get(de, {
|
|
67
|
+
responseType: "blob",
|
|
68
|
+
headers: {
|
|
69
|
+
"Content-Type": "application/json"
|
|
70
|
+
}
|
|
71
|
+
}), J = new Blob([P.data], {
|
|
72
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
73
|
+
});
|
|
74
|
+
let ne = URL.createObjectURL(J), z = "";
|
|
75
|
+
(E = de == null ? void 0 : de.split("/")) == null || E.forEach((T, O) => {
|
|
76
|
+
var _;
|
|
77
|
+
O === ((_ = de == null ? void 0 : de.split("/")) == null ? void 0 : _.length) - 1 && (z = T);
|
|
78
|
+
}), ee.value = [{
|
|
79
|
+
name: z,
|
|
80
|
+
blobUrl: ne
|
|
81
|
+
}], B.value = !0;
|
|
82
|
+
}
|
|
83
|
+
(_e == null ? void 0 : _e.length) > 0 && re.setBlobUrls(_e);
|
|
84
|
+
}, le = () => {
|
|
85
|
+
B.value = !1;
|
|
86
|
+
}, he = (de) => {
|
|
87
|
+
var w, t, q, ce;
|
|
88
|
+
const _e = (t = (w = l(L.itemData)) == null ? void 0 : w.find((fe) => (fe == null ? void 0 : fe.key) === "formContent")) == null ? void 0 : t.contents, k = l(de.content);
|
|
89
|
+
let a = {};
|
|
90
|
+
k && ((q = Object.values(k)) == null ? void 0 : q.length) > 0 && ((ce = Object.values(k)) == null || ce.forEach((fe, c) => {
|
|
91
|
+
a[_e[c].key] = fe;
|
|
92
|
+
}));
|
|
93
|
+
const h = {
|
|
94
|
+
content: a,
|
|
95
|
+
index: L == null ? void 0 : L.index,
|
|
96
|
+
buttonName: de == null ? void 0 : de.buttonName
|
|
97
|
+
};
|
|
98
|
+
D("change", h);
|
|
99
|
+
}, we = async (de) => {
|
|
100
|
+
var fe, c, E, P, J, ne, z, T, O, _, X, Y;
|
|
101
|
+
if (!de) return;
|
|
102
|
+
const _e = l(L.itemData), k = _e == null ? void 0 : _e.map((M) => {
|
|
103
|
+
var U;
|
|
104
|
+
return (M == null ? void 0 : M.key) === "formContent" && ((U = M.contents) == null || U.map((se, I) => {
|
|
105
|
+
var o, Z, j, e, i, r, f, b, C, te, V, W, G, Ce, ke, ie, $;
|
|
106
|
+
return se.type = se != null && se.type ? se.type : (e = (j = (Z = (o = se == null ? void 0 : se.key) == null ? void 0 : o.split("$")) == null ? void 0 : Z[1]) == null ? void 0 : j.split("(")) != null && e[0] ? (r = (i = Fa) == null ? void 0 : i.find((be) => {
|
|
107
|
+
var K, Ae, Se, xe;
|
|
108
|
+
return (be == null ? void 0 : be.key) === ((xe = (Se = (Ae = (K = se == null ? void 0 : se.key) == null ? void 0 : K.split("$")) == null ? void 0 : Ae[1]) == null ? void 0 : Se.split("(")) == null ? void 0 : xe[0]);
|
|
109
|
+
})) == null ? void 0 : r.value : "Input", se.options = se != null && se.options ? se.options : ((C = (b = (f = se == null ? void 0 : se.key) == null ? void 0 : f.split("$")) == null ? void 0 : b[1]) == null ? void 0 : C.length) > 0 ? (G = (W = es((V = (te = se == null ? void 0 : se.key) == null ? void 0 : te.split("$")) == null ? void 0 : V[1])) == null ? void 0 : W.split(",")) == null ? void 0 : G.map((be) => ({
|
|
110
|
+
label: be,
|
|
111
|
+
value: be
|
|
112
|
+
})) : [], (Ce = se == null ? void 0 : se.key) != null && Ce.includes("$") && (se.key = (ie = (ke = se == null ? void 0 : se.key) == null ? void 0 : ke.split("$")) == null ? void 0 : ie[0]), se.value = ($ = Object.values(de)) == null ? void 0 : $[I], se;
|
|
113
|
+
})), M;
|
|
114
|
+
});
|
|
115
|
+
let a = l(N).value, h = (c = (fe = l(k)) == null ? void 0 : fe.find((M) => (M == null ? void 0 : M.key) === "formContent")) == null ? void 0 : c.contents;
|
|
116
|
+
if (a = a == null ? void 0 : a.map((M) => {
|
|
117
|
+
var U;
|
|
118
|
+
return M.value = (U = h == null ? void 0 : h.find((se, I) => ((se == null ? void 0 : se.id) ?? I) === (M == null ? void 0 : M.id))) == null ? void 0 : U.value, M;
|
|
119
|
+
}), !v.value) {
|
|
120
|
+
D("contentChange", {
|
|
121
|
+
contents: k,
|
|
122
|
+
index: L.index
|
|
123
|
+
});
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
let w = "", t = (J = (P = (E = l(k)) == null ? void 0 : E.find((M) => (M == null ? void 0 : M.key) === "formContent")) == null ? void 0 : P.contents) == null ? void 0 : J.find((M, U) => {
|
|
127
|
+
var se, I;
|
|
128
|
+
return (M == null ? void 0 : M.label) === d.value || U.toString() === ((I = (se = d.value) == null ? void 0 : se.split("t")) == null ? void 0 : I[1].toString());
|
|
129
|
+
});
|
|
130
|
+
if ((T = (z = (ne = l(k)) == null ? void 0 : ne.find((M) => (M == null ? void 0 : M.key) === "formContent")) == null ? void 0 : z.contents) == null || T.forEach((M) => {
|
|
131
|
+
var U, se, I, o, Z;
|
|
132
|
+
w === "" && ((I = (se = (U = M == null ? void 0 : M.optionUrl) == null ? void 0 : U.groupSelect) == null ? void 0 : se[1]) != null && I.includes("[")) && (w = (Z = (o = M == null ? void 0 : M.optionUrl) == null ? void 0 : o.groupSelect) == null ? void 0 : Z[1]);
|
|
133
|
+
}), (O = t == null ? void 0 : t.optionUrl) != null && O.menuSelect && v.value) {
|
|
134
|
+
let M = await ls(t), U;
|
|
135
|
+
if (M == null || M.forEach((se) => {
|
|
136
|
+
var I, o, Z, j, e, i, r, f, b, C;
|
|
137
|
+
w === ((o = (I = t == null ? void 0 : t.optionUrl) == null ? void 0 : I.groupSelect) == null ? void 0 : o[1]) && ((e = (j = (Z = t == null ? void 0 : t.optionUrl) == null ? void 0 : Z.groupSelect) == null ? void 0 : j[1]) != null && e.includes("[")) && ((C = l(se)) == null ? void 0 : C[(b = (f = (r = (i = t == null ? void 0 : t.optionUrl) == null ? void 0 : i.groupSelect) == null ? void 0 : r[1]) == null ? void 0 : f.replaceAll("[", "")) == null ? void 0 : b.replaceAll("]", "")]) === (t == null ? void 0 : t.value) && (U = se);
|
|
138
|
+
}), U) {
|
|
139
|
+
let se = l(a);
|
|
140
|
+
se = se == null ? void 0 : se.map((o) => {
|
|
141
|
+
var Z, j, e, i, r, f, b, C, te, V, W;
|
|
142
|
+
return (U != null && U[o == null ? void 0 : o.label] || U != null && U[(i = (e = (j = (Z = o == null ? void 0 : o.optionUrl) == null ? void 0 : Z.groupSelect) == null ? void 0 : j[1]) == null ? void 0 : e.replaceAll("[", "")) == null ? void 0 : i.replaceAll("]", "")]) && ((b = (f = (r = o == null ? void 0 : o.optionUrl) == null ? void 0 : r.groupSelect) == null ? void 0 : f[1]) != null && b.includes("[")) && (o.value = (U == null ? void 0 : U[o == null ? void 0 : o.label]) || (U == null ? void 0 : U[(W = (V = (te = (C = o == null ? void 0 : o.optionUrl) == null ? void 0 : C.groupSelect) == null ? void 0 : te[1]) == null ? void 0 : V.replaceAll("[", "")) == null ? void 0 : W.replaceAll("]", "")])), o;
|
|
143
|
+
}), N.value = se;
|
|
144
|
+
let I = l(se);
|
|
145
|
+
I = I == null ? void 0 : I.map((o) => {
|
|
146
|
+
var Z, j, e, i;
|
|
147
|
+
return (j = (Z = o == null ? void 0 : o.optionUrl) == null ? void 0 : Z.menuSelect) != null && j.some((r) => r == null ? void 0 : r.includes) && (o.optionUrl.menuSelect = (i = (e = o == null ? void 0 : o.optionUrl) == null ? void 0 : e.menuSelect) == null ? void 0 : i.map((r) => {
|
|
148
|
+
var f, b, C, te;
|
|
149
|
+
if (r != null && r.includes("[")) {
|
|
150
|
+
let V = (b = (f = r == null ? void 0 : r.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : f.split(":")) == null ? void 0 : b[1];
|
|
151
|
+
r = (te = (C = l(se)) == null ? void 0 : C.find((W) => (W == null ? void 0 : W.label) === V)) == null ? void 0 : te.value;
|
|
152
|
+
}
|
|
153
|
+
return r;
|
|
154
|
+
})), o;
|
|
155
|
+
}), N.value = I;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
v.value = !1, D("contentChange", {
|
|
159
|
+
contents: k,
|
|
160
|
+
index: L.index
|
|
161
|
+
});
|
|
162
|
+
let q = [], ce = [];
|
|
163
|
+
if ((X = l((_ = k == null ? void 0 : k.find((M) => (M == null ? void 0 : M.key) === "formContent")) == null ? void 0 : _.contents)) == null || X.forEach((M) => {
|
|
164
|
+
var U;
|
|
165
|
+
Array.isArray(M == null ? void 0 : M.value) && ((U = M == null ? void 0 : M.value) != null && U.find((se) => {
|
|
166
|
+
var I;
|
|
167
|
+
return (I = se == null ? void 0 : se.url) == null ? void 0 : I.includes(".obj");
|
|
168
|
+
})) && (ce = M == null ? void 0 : M.value);
|
|
169
|
+
}), (ce == null ? void 0 : ce.length) > 0) {
|
|
170
|
+
const M = (Y = l(ce)) == null ? void 0 : Y.filter((U) => {
|
|
171
|
+
var se;
|
|
172
|
+
return (se = U == null ? void 0 : U.url) == null ? void 0 : se.includes(".obj");
|
|
173
|
+
});
|
|
174
|
+
M == null || M.forEach((U) => {
|
|
175
|
+
var I, o, Z, j;
|
|
176
|
+
const se = (I = ce == null ? void 0 : ce.filter((e) => {
|
|
177
|
+
var i;
|
|
178
|
+
return (e == null ? void 0 : e.name) === (U == null ? void 0 : U.name) && ((i = e == null ? void 0 : e.url) == null ? void 0 : i.includes(".mtl"));
|
|
179
|
+
})) == null ? void 0 : I.map((e) => e == null ? void 0 : e.url);
|
|
180
|
+
q.push({
|
|
181
|
+
objUrl: U == null ? void 0 : U.url,
|
|
182
|
+
mtlUrls: ((o = ce == null ? void 0 : ce.filter((e) => {
|
|
183
|
+
var i;
|
|
184
|
+
return (e == null ? void 0 : e.name) === (U == null ? void 0 : U.name) && ((i = e == null ? void 0 : e.url) == null ? void 0 : i.includes(".mtl"));
|
|
185
|
+
})) == null ? void 0 : o.length) === 1 ? (j = (Z = ce == null ? void 0 : ce.filter((e) => {
|
|
186
|
+
var i;
|
|
187
|
+
return (e == null ? void 0 : e.name) === (U == null ? void 0 : U.name) && ((i = e == null ? void 0 : e.url) == null ? void 0 : i.includes(".mtl"));
|
|
188
|
+
})) == null ? void 0 : Z[0]) == null ? void 0 : j.url : se
|
|
189
|
+
});
|
|
190
|
+
}), re.setObjUrl(q);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
return ze(
|
|
194
|
+
() => L.itemData,
|
|
195
|
+
async () => {
|
|
196
|
+
var w, t, q, ce, fe, c, E, P, J, ne, z, T, O, _;
|
|
197
|
+
const de = (w = L.itemData) == null ? void 0 : w.find((X) => (X == null ? void 0 : X.key) === "formContent"), _e = (t = l(L.itemData)) == null ? void 0 : t.find((X) => (X == null ? void 0 : X.key) === "formButton"), k = (q = l(L.itemData)) == null ? void 0 : q.find((X) => (X == null ? void 0 : X.key) === "formFlex"), a = (ce = l(L.itemData)) == null ? void 0 : ce.find((X) => (X == null ? void 0 : X.key) === "formWrap"), h = (fe = l(L.itemData)) == null ? void 0 : fe.find((X) => (X == null ? void 0 : X.key) === "enableWrap");
|
|
198
|
+
if ((a == null ? void 0 : a.contents) === "纵向" ? H.value = !1 : H.value = !0, me.value = (h == null ? void 0 : h.contents) === void 0 ? !1 : h == null ? void 0 : h.contents, A.value = typeof (k == null ? void 0 : k.contents) != "boolean" ? !(!(k != null && k.contents) === "" || ((c = k == null ? void 0 : k.contents) == null ? void 0 : c.toUpperCase()) === "VERTICAL") : k == null ? void 0 : k.contents, ((E = de == null ? void 0 : de.contents) == null ? void 0 : E.length) > 0 && Array.isArray(de == null ? void 0 : de.contents)) {
|
|
199
|
+
const X = await ((P = de == null ? void 0 : de.contents) == null ? void 0 : P.map(async (o, Z) => {
|
|
200
|
+
var te, V, W, G, Ce, ke, ie, $, be, K, Ae, Se, xe, F, Te, $e;
|
|
201
|
+
let j = (o == null ? void 0 : o.label) ?? (o == null ? void 0 : o.key) ?? "", e = (o == null ? void 0 : o.type) ?? "", i = (o == null ? void 0 : o.options) ?? [];
|
|
202
|
+
if ((te = o == null ? void 0 : o.key) != null && te.includes("$") && (j = (V = l(o == null ? void 0 : o.key).split("$")) == null ? void 0 : V[0], ((G = (W = l(o == null ? void 0 : o.key).split("$")) == null ? void 0 : W[1]) == null ? void 0 : G.length) > 0)) {
|
|
203
|
+
const [Me, He] = (ke = (Ce = l(o == null ? void 0 : o.key).split("$")) == null ? void 0 : Ce[1]) == null ? void 0 : ke.split(/[()]/);
|
|
204
|
+
e = ((ie = Fa.find((qe) => (qe == null ? void 0 : qe.key) === Me)) == null ? void 0 : ie.value) ?? "", (($ = He == null ? void 0 : He.split(",")) == null ? void 0 : $.length) > 0 && (i = (be = He == null ? void 0 : He.split(",")) == null ? void 0 : be.map((qe) => ({
|
|
205
|
+
label: qe,
|
|
206
|
+
value: qe
|
|
207
|
+
})));
|
|
208
|
+
}
|
|
209
|
+
let r = [];
|
|
210
|
+
o != null && o.contents && !Array.isArray(o == null ? void 0 : o.contents) && (r = (Ae = (K = o == null ? void 0 : o.contents) == null ? void 0 : K.split(",")) == null ? void 0 : Ae.map((Me) => ({
|
|
211
|
+
label: Me,
|
|
212
|
+
value: Me
|
|
213
|
+
})));
|
|
214
|
+
let f = await fs((Se = l(o)) == null ? void 0 : Se.optionUrl), b = f !== void 0 && !(o != null && o.value) ? f : o != null && o.originalContent && (o == null ? void 0 : o.originalContent) !== "" ? o.originalContent : o != null && o.value ? o.value : (i == null ? void 0 : i.length) > 0 ? (xe = i == null ? void 0 : i[0]) == null ? void 0 : xe.value : (o == null ? void 0 : o.value) ?? "";
|
|
215
|
+
return b === "loginUser" && (b = ((F = pe.value) == null ? void 0 : F.姓名) ?? ((Te = pe.value) == null ? void 0 : Te.userName) ?? (($e = pe.value) == null ? void 0 : $e.account)), {
|
|
216
|
+
label: j ?? "",
|
|
217
|
+
name: "t" + Z,
|
|
218
|
+
type: f !== void 0 || e === "" ? "Input" : e,
|
|
219
|
+
value: o != null && o.isNewDate && b === "" ? /* @__PURE__ */ new Date() : b,
|
|
220
|
+
id: (o == null ? void 0 : o.id) ?? Z,
|
|
221
|
+
contents: (r == null ? void 0 : r.length) > 0 ? r : i ?? [],
|
|
222
|
+
width: (o == null ? void 0 : o.width) ?? 1,
|
|
223
|
+
config: o == null ? void 0 : o.config,
|
|
224
|
+
optionUrl: (o == null ? void 0 : o.optionUrl) ?? o,
|
|
225
|
+
isFormColHidden: o == null ? void 0 : o.isFormColHidden
|
|
226
|
+
};
|
|
227
|
+
})), Y = await Promise.all(X), M = Y == null ? void 0 : Y.map((o) => o == null ? void 0 : o.value);
|
|
228
|
+
let U = "";
|
|
229
|
+
M == null || M.forEach((o) => {
|
|
230
|
+
o !== "" && o !== void 0 && (U = U === "" ? o : U + "/" + o);
|
|
231
|
+
}), ye.setSelectArray(M), ye.setSelectString(U), N.value = (J = l(Y)) == null ? void 0 : J.map((o) => (o != null && o.value && rl(o == null ? void 0 : o.value) && Array.isArray(JSON.parse(o == null ? void 0 : o.value)) && (o.value = JSON.parse(o.value)), o));
|
|
232
|
+
let se = [], I = [];
|
|
233
|
+
if ((ne = l(N.value)) == null || ne.forEach((o) => {
|
|
234
|
+
var Z;
|
|
235
|
+
Array.isArray(o == null ? void 0 : o.value) && ((Z = o == null ? void 0 : o.value) != null && Z.find((j) => {
|
|
236
|
+
var e;
|
|
237
|
+
return (e = j == null ? void 0 : j.url) == null ? void 0 : e.includes(".obj");
|
|
238
|
+
})) && (I = o == null ? void 0 : o.value);
|
|
239
|
+
}), (I == null ? void 0 : I.length) > 0) {
|
|
240
|
+
const o = (z = l(I)) == null ? void 0 : z.filter((Z) => {
|
|
241
|
+
var j;
|
|
242
|
+
return (j = Z == null ? void 0 : Z.url) == null ? void 0 : j.includes(".obj");
|
|
243
|
+
});
|
|
244
|
+
o == null || o.forEach((Z) => {
|
|
245
|
+
var e, i, r, f;
|
|
246
|
+
const j = (e = I == null ? void 0 : I.filter((b) => {
|
|
247
|
+
var C;
|
|
248
|
+
return (b == null ? void 0 : b.name) === (Z == null ? void 0 : Z.name) && ((C = b == null ? void 0 : b.url) == null ? void 0 : C.includes(".mtl"));
|
|
249
|
+
})) == null ? void 0 : e.map((b) => b == null ? void 0 : b.url);
|
|
250
|
+
se.push({
|
|
251
|
+
objUrl: Z == null ? void 0 : Z.url,
|
|
252
|
+
mtlUrls: ((i = I == null ? void 0 : I.filter((b) => {
|
|
253
|
+
var C;
|
|
254
|
+
return (b == null ? void 0 : b.name) === (Z == null ? void 0 : Z.name) && ((C = b == null ? void 0 : b.url) == null ? void 0 : C.includes(".mtl"));
|
|
255
|
+
})) == null ? void 0 : i.length) === 1 ? (f = (r = I == null ? void 0 : I.filter((b) => {
|
|
256
|
+
var C;
|
|
257
|
+
return (b == null ? void 0 : b.name) === (Z == null ? void 0 : Z.name) && ((C = b == null ? void 0 : b.url) == null ? void 0 : C.includes(".mtl"));
|
|
258
|
+
})) == null ? void 0 : r[0]) == null ? void 0 : f.url : j
|
|
259
|
+
});
|
|
260
|
+
}), re.setObjUrl(se);
|
|
261
|
+
}
|
|
262
|
+
(T = l(N.value)) == null || T.forEach((o) => {
|
|
263
|
+
var Z, j, e, i, r, f, b, C, te, V, W, G, Ce;
|
|
264
|
+
if ((j = (Z = o == null ? void 0 : o.value) == null ? void 0 : Z.toString()) != null && j.includes(".stl") || (i = (e = o == null ? void 0 : o.value) == null ? void 0 : e.toString()) != null && i.includes(".STL") || (f = (r = o == null ? void 0 : o.value) == null ? void 0 : r.toString()) != null && f.includes(".obj") || (C = (b = o == null ? void 0 : o.value) == null ? void 0 : b.toString()) != null && C.includes(".mtl") || (V = (te = o == null ? void 0 : o.value) == null ? void 0 : te.toString()) != null && V.includes(".urdf")) {
|
|
265
|
+
let ke = {}, ie = [], $;
|
|
266
|
+
Array.isArray(o == null ? void 0 : o.value) ? $ = o == null ? void 0 : o.value : $ = (W = o == null ? void 0 : o.value) == null ? void 0 : W.split(","), $ == null || $.forEach((be) => {
|
|
267
|
+
be.includes(".mtl") ? ie.push(be) : ke.blob = ke.blob === "undefined" ? be : ke.blob + "," + be;
|
|
268
|
+
}), (ie == null ? void 0 : ie.length) > 0 && (ke.mtlBlobs = ie), (Ce = (G = Object.values(ke)) == null ? void 0 : G[0]) != null && Ce.includes("http:");
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
} else
|
|
272
|
+
N.value = [];
|
|
273
|
+
if (((O = _e == null ? void 0 : _e.contents) == null ? void 0 : O.length) > 0) {
|
|
274
|
+
const X = [];
|
|
275
|
+
(_ = _e == null ? void 0 : _e.contents) == null || _.forEach((Y, M) => {
|
|
276
|
+
(Y == null ? void 0 : Y.label) !== "" && X.push({
|
|
277
|
+
label: (Y == null ? void 0 : Y.label) ?? "",
|
|
278
|
+
id: (Y == null ? void 0 : Y.id) ?? M,
|
|
279
|
+
type: (Y == null ? void 0 : Y.type) ?? "",
|
|
280
|
+
background: Y == null ? void 0 : Y.background
|
|
281
|
+
});
|
|
282
|
+
}), ue.value = X;
|
|
283
|
+
} else
|
|
284
|
+
ue.value = [];
|
|
285
|
+
},
|
|
286
|
+
{ deep: !0, immediate: !0 }
|
|
287
|
+
), (de, _e) => (oe(), ge("div", $s, [
|
|
288
|
+
ae(Qe, {
|
|
289
|
+
rowContents: N.value,
|
|
290
|
+
formRules: u.formRules,
|
|
291
|
+
buttonValue: ue.value,
|
|
292
|
+
isRowFlex: !1,
|
|
293
|
+
isEnableWrap: me.value,
|
|
294
|
+
onOnButtonClick: he,
|
|
295
|
+
onChange: we,
|
|
296
|
+
isButtonRow: H.value,
|
|
297
|
+
onPreview: g,
|
|
298
|
+
onBlurChange: m
|
|
299
|
+
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEnableWrap", "isButtonRow"]),
|
|
300
|
+
B.value ? (oe(), Oe(ja, {
|
|
301
|
+
key: 0,
|
|
302
|
+
fileDataList: ee.value,
|
|
303
|
+
onDestroy: le
|
|
304
|
+
}, null, 8, ["fileDataList"])) : We("", !0),
|
|
305
|
+
n.value ? (oe(), Oe(Xe, {
|
|
306
|
+
key: 1,
|
|
307
|
+
visible: n.value,
|
|
308
|
+
onBeforeDestroy: R,
|
|
309
|
+
style: { height: "700px", width: "1000px" }
|
|
310
|
+
}, {
|
|
311
|
+
default: ve(() => [
|
|
312
|
+
n.value ? (oe(), Oe(Za, {
|
|
313
|
+
key: 0,
|
|
314
|
+
"urdf-url": p.value
|
|
315
|
+
}, null, 8, ["urdf-url"])) : We("", !0)
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
}, 8, ["visible"])) : We("", !0)
|
|
319
|
+
]));
|
|
320
|
+
}
|
|
321
|
+
}, La = /* @__PURE__ */ je(Ss, [["__scopeId", "data-v-b3ecdca2"]]), ql = Q(0), Ka = (u) => {
|
|
322
|
+
var y;
|
|
323
|
+
return !u || (u == null ? void 0 : u.length) === 0 ? [] : (y = l(u)) == null ? void 0 : y.map((s) => (ql.value++, s = {
|
|
324
|
+
label: (s == null ? void 0 : s.label) ?? "",
|
|
325
|
+
prop: (s == null ? void 0 : s.label) === "操作" ? "operate" : s == null ? void 0 : s.prop,
|
|
326
|
+
width: s != null && s.width ? parseInt(s.width) : "",
|
|
327
|
+
fixed: (s == null ? void 0 : s.fixed) ?? void 0,
|
|
328
|
+
sortable: (s == null ? void 0 : s.sortable) ?? !1,
|
|
329
|
+
align: (s == null ? void 0 : s.align) ?? "left",
|
|
330
|
+
showOverflowTooltip: (s == null ? void 0 : s.showOverflowTooltip) ?? !0,
|
|
331
|
+
isNotDrag: (s == null ? void 0 : s.isNotDrag) ?? !1,
|
|
332
|
+
isEditCol: (s == null ? void 0 : s.isEditCol) ?? !1,
|
|
333
|
+
isOperate: (s == null ? void 0 : s.isOperate) ?? !1,
|
|
334
|
+
id: (s == null ? void 0 : s.id) ?? ql.value,
|
|
335
|
+
children: Ka(s == null ? void 0 : s.children)
|
|
336
|
+
}, s));
|
|
337
|
+
}, Ts = (u) => {
|
|
338
|
+
var n;
|
|
339
|
+
return (n = l(u)) == null ? void 0 : n.map((s) => (ql.value++, s = {
|
|
340
|
+
label: (s == null ? void 0 : s.label) ?? "",
|
|
341
|
+
prop: (s == null ? void 0 : s.label) === "操作" ? "operate" : s == null ? void 0 : s.prop,
|
|
342
|
+
width: s != null && s.width ? parseInt(s.width) : "",
|
|
343
|
+
fixed: (s == null ? void 0 : s.fixed) ?? void 0,
|
|
344
|
+
sortable: (s == null ? void 0 : s.sortable) ?? !1,
|
|
345
|
+
align: (s == null ? void 0 : s.align) ?? "left",
|
|
346
|
+
showOverflowTooltip: (s == null ? void 0 : s.showOverflowTooltip) ?? !0,
|
|
347
|
+
isNotDrag: (s == null ? void 0 : s.isNotDrag) ?? !1,
|
|
348
|
+
isEditCol: (s == null ? void 0 : s.isEditCol) ?? !1,
|
|
349
|
+
isOperate: (s == null ? void 0 : s.isOperate) ?? !1,
|
|
350
|
+
id: (s == null ? void 0 : s.id) ?? ql.value,
|
|
351
|
+
children: Ka(s == null ? void 0 : s.children)
|
|
352
|
+
}, s));
|
|
353
|
+
}, Wa = (u, y) => {
|
|
354
|
+
var n;
|
|
355
|
+
return u != null && u.find((s) => (s == null ? void 0 : s.id) === y) ? (n = l(u)) == null ? void 0 : n.filter((p) => (p == null ? void 0 : p.id) !== y) : (u = u == null ? void 0 : u.map((s) => (s.children = Wa(s == null ? void 0 : s.children, y), s)), u);
|
|
356
|
+
}, za = (u, y) => {
|
|
357
|
+
var n;
|
|
358
|
+
return u != null && u.find((s) => (s == null ? void 0 : s.id) === (y == null ? void 0 : y.id)) ? (n = l(u)) == null ? void 0 : n.map((p) => ((p == null ? void 0 : p.id) === (y == null ? void 0 : y.id) && (p = y), p)) : (u = u == null ? void 0 : u.map((s) => (s.children = za(s == null ? void 0 : s.children, y), s)), u);
|
|
359
|
+
}, Ma = (u, y) => {
|
|
360
|
+
var n;
|
|
361
|
+
return u != null && u.find((s) => {
|
|
362
|
+
var p;
|
|
363
|
+
return (s == null ? void 0 : s.id) === ((p = y == null ? void 0 : y.contents) == null ? void 0 : p.id);
|
|
364
|
+
}) ? (n = l(u)) == null ? void 0 : n.map((p) => {
|
|
365
|
+
var R;
|
|
366
|
+
return (p == null ? void 0 : p.id) === ((R = y == null ? void 0 : y.contents) == null ? void 0 : R.id) && (p = y == null ? void 0 : y.contents), p;
|
|
367
|
+
}) : (u = u == null ? void 0 : u.map((s) => (s.children = Ma(s == null ? void 0 : s.children, y), s)), u);
|
|
368
|
+
}, Ja = (u, y) => {
|
|
369
|
+
var n;
|
|
370
|
+
return u != null && u.find((s) => (s == null ? void 0 : s.id) === (y == null ? void 0 : y.id)) ? (n = l(u)) == null ? void 0 : n.map((p) => ((p == null ? void 0 : p.id) === (y == null ? void 0 : y.id) && (p != null && p.children || (p.children = []), p.children.push(y.contents)), p)) : (u = u == null ? void 0 : u.map((s) => (s.children = Ja(s == null ? void 0 : s.children, y), s)), u);
|
|
371
|
+
}, Ee = [
|
|
372
|
+
{
|
|
373
|
+
key: "label",
|
|
374
|
+
label: "标签名",
|
|
375
|
+
type: "Input"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
key: "prop",
|
|
379
|
+
label: "属性名",
|
|
380
|
+
type: "Input"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
key: "width",
|
|
384
|
+
label: "宽度",
|
|
385
|
+
type: "Input"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
key: "sortable",
|
|
389
|
+
label: "是否支持排序",
|
|
390
|
+
type: "Switch"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
key: "align",
|
|
394
|
+
label: "文本所在位置",
|
|
395
|
+
type: "Radio",
|
|
396
|
+
options: [
|
|
397
|
+
{
|
|
398
|
+
label: "left",
|
|
399
|
+
value: "左"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
label: "center",
|
|
403
|
+
value: "中"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
label: "right",
|
|
407
|
+
value: "右"
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
key: "fixed",
|
|
413
|
+
label: "是否固定列",
|
|
414
|
+
type: "Switch"
|
|
415
|
+
}
|
|
416
|
+
], Bs = [
|
|
417
|
+
{
|
|
418
|
+
label: "查看",
|
|
419
|
+
value: "view"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
label: "修改",
|
|
423
|
+
value: "fix"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
label: "删除",
|
|
427
|
+
value: "delete"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
label: "三维算例",
|
|
431
|
+
value: "modelExample"
|
|
432
|
+
}
|
|
433
|
+
], Fs = [
|
|
434
|
+
{
|
|
435
|
+
label: "新增",
|
|
436
|
+
value: "add"
|
|
437
|
+
}
|
|
438
|
+
], tl = [
|
|
439
|
+
{
|
|
440
|
+
key: "label",
|
|
441
|
+
label: "按钮名",
|
|
442
|
+
type: "Input"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
key: "type",
|
|
446
|
+
label: "类型",
|
|
447
|
+
type: "Select",
|
|
448
|
+
options: Fs
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
key: "background",
|
|
452
|
+
label: "按钮背景色",
|
|
453
|
+
type: "Color"
|
|
454
|
+
}
|
|
455
|
+
], dl = [
|
|
456
|
+
{
|
|
457
|
+
key: "label",
|
|
458
|
+
label: "按钮名",
|
|
459
|
+
type: "Input"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
key: "type",
|
|
463
|
+
label: "类型",
|
|
464
|
+
type: "Select",
|
|
465
|
+
options: Bs
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
key: "textColor",
|
|
469
|
+
label: "按钮颜色",
|
|
470
|
+
type: "Color"
|
|
471
|
+
}
|
|
472
|
+
], Os = { class: "table-header-child" }, Ls = { class: "table-header-child-main" }, Ps = { class: "table-header-child-content" }, Rs = { class: "table-header-child-content-item" }, Us = { class: "fix-button" }, Vs = { key: 0 }, js = { class: "form-content" }, Ns = {
|
|
473
|
+
__name: "tableNewChild",
|
|
474
|
+
props: {
|
|
475
|
+
tableChildContents: Array
|
|
476
|
+
},
|
|
477
|
+
emits: ["fixChange", "deleteChange"],
|
|
478
|
+
setup(u, { emit: y }) {
|
|
479
|
+
const n = u, s = y, p = Q(!1), R = Q(""), L = Ra(Ye), { tableIndex: D } = Ze(L);
|
|
480
|
+
Q(0);
|
|
481
|
+
const N = Q(""), H = Q([]), B = Q([]), ue = (d) => {
|
|
482
|
+
var m;
|
|
483
|
+
p.value = !0;
|
|
484
|
+
let v = [];
|
|
485
|
+
Ee == null || Ee.forEach((g) => {
|
|
486
|
+
let le = l(D.value) + 1;
|
|
487
|
+
L.setTableIndex(le), v.push({
|
|
488
|
+
label: g == null ? void 0 : g.label,
|
|
489
|
+
name: g == null ? void 0 : g.label,
|
|
490
|
+
type: g.type,
|
|
491
|
+
value: d[g.key],
|
|
492
|
+
id: D.value,
|
|
493
|
+
contents: g == null ? void 0 : g.options
|
|
494
|
+
});
|
|
495
|
+
}), d != null && d.children && ((m = d == null ? void 0 : d.children) == null ? void 0 : m.length) > 0 && v.push({
|
|
496
|
+
children: d == null ? void 0 : d.children,
|
|
497
|
+
isFormColHidden: !0
|
|
498
|
+
}), N.value = d == null ? void 0 : d.id, H.value = v, B.value = v;
|
|
499
|
+
}, ee = (d) => {
|
|
500
|
+
s("fixChange", l(d));
|
|
501
|
+
}, ye = (d) => {
|
|
502
|
+
s("deleteChange", l(d));
|
|
503
|
+
}, re = (d) => {
|
|
504
|
+
p.value = !0;
|
|
505
|
+
let v = [];
|
|
506
|
+
Ee == null || Ee.forEach((m) => {
|
|
507
|
+
let g = l(D.value) + 1;
|
|
508
|
+
L.setTableIndex(g), v.push({
|
|
509
|
+
label: m == null ? void 0 : m.label,
|
|
510
|
+
name: m == null ? void 0 : m.label,
|
|
511
|
+
type: m.type,
|
|
512
|
+
value: "",
|
|
513
|
+
id: D.value,
|
|
514
|
+
contents: m == null ? void 0 : m.options
|
|
515
|
+
});
|
|
516
|
+
}), R.value = d == null ? void 0 : d.id, H.value = v, B.value = v;
|
|
517
|
+
}, me = (d) => {
|
|
518
|
+
let v = l(B.value);
|
|
519
|
+
v = v == null ? void 0 : v.map((m) => (m.children || (m.value = d == null ? void 0 : d[m.name]), m)), B.value = v;
|
|
520
|
+
}, A = () => {
|
|
521
|
+
var v, m;
|
|
522
|
+
H.value = B.value;
|
|
523
|
+
let d = {};
|
|
524
|
+
if (N.value !== "")
|
|
525
|
+
d.id = N.value, (v = H.value) == null || v.forEach((g) => {
|
|
526
|
+
const le = Ee == null ? void 0 : Ee.find((he) => (he == null ? void 0 : he.label) === (g == null ? void 0 : g.label));
|
|
527
|
+
le ? d[le.key] = g.value : g != null && g.children && g.children.length > 0 && (d.children = g.children);
|
|
528
|
+
}), p.value = !1, s("fixChange", {
|
|
529
|
+
contents: l(d),
|
|
530
|
+
id: R.value,
|
|
531
|
+
type: "fix"
|
|
532
|
+
});
|
|
533
|
+
else {
|
|
534
|
+
let g = l(D.value) + 1;
|
|
535
|
+
L.setTableIndex(g), d.id = "id" + D.value, (m = H.value) == null || m.forEach((le) => {
|
|
536
|
+
const he = Ee == null ? void 0 : Ee.find((we) => (we == null ? void 0 : we.label) === (le == null ? void 0 : le.label));
|
|
537
|
+
he ? d[he.key] = le.value : le != null && le.children && le.children.length > 0 && (d.children = le.children);
|
|
538
|
+
}), p.value = !1, s("fixChange", {
|
|
539
|
+
contents: l(d),
|
|
540
|
+
id: R.value,
|
|
541
|
+
type: "add"
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
N.value = "", H.value = [], B.value = [];
|
|
545
|
+
}, x = () => {
|
|
546
|
+
p.value = !1, N.value = "", R.value = "", H.value = [], B.value = [];
|
|
547
|
+
}, pe = (d) => {
|
|
548
|
+
pl.confirm("是否确认要删除", "", {
|
|
549
|
+
confirmButtonText: "确认",
|
|
550
|
+
cancelButtonText: "取消",
|
|
551
|
+
type: "warning"
|
|
552
|
+
}).then(
|
|
553
|
+
() => {
|
|
554
|
+
s("deleteChange", d), ll({
|
|
555
|
+
type: "success",
|
|
556
|
+
message: "删除成功"
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
).catch(() => {
|
|
560
|
+
});
|
|
561
|
+
};
|
|
562
|
+
return (d, v) => {
|
|
563
|
+
const m = Le("svg-icon");
|
|
564
|
+
return oe(), ge("div", Os, [
|
|
565
|
+
(oe(!0), ge(Pe, null, Ue(n == null ? void 0 : n.tableChildContents, (g, le) => (oe(), ge("div", Ls, [
|
|
566
|
+
S("div", Ps, [
|
|
567
|
+
S("div", Rs, De(g.label), 1),
|
|
568
|
+
S("div", Us, [
|
|
569
|
+
ae(m, {
|
|
570
|
+
name: "ChildAdd",
|
|
571
|
+
class: "svg-icon-content",
|
|
572
|
+
style: { width: "24px", height: "24px" },
|
|
573
|
+
onClick: (he) => re(g)
|
|
574
|
+
}, null, 8, ["onClick"]),
|
|
575
|
+
ae(m, {
|
|
576
|
+
name: "ChildFix",
|
|
577
|
+
class: "svg-icon-content",
|
|
578
|
+
style: { width: "24px", height: "24px" },
|
|
579
|
+
onClick: (he) => ue(g)
|
|
580
|
+
}, null, 8, ["onClick"]),
|
|
581
|
+
ae(m, {
|
|
582
|
+
name: "ChildDelete",
|
|
583
|
+
class: "svg-icon-content",
|
|
584
|
+
style: { width: "24px", height: "24px" },
|
|
585
|
+
onClick: (he) => pe(g)
|
|
586
|
+
}, null, 8, ["onClick"])
|
|
587
|
+
])
|
|
588
|
+
]),
|
|
589
|
+
g != null && g.children && g.children.length > 0 ? (oe(), ge("div", Vs, [
|
|
590
|
+
ae(Ga, {
|
|
591
|
+
tableChildContents: g == null ? void 0 : g.children,
|
|
592
|
+
onDeleteChange: ye,
|
|
593
|
+
onFixChange: ee
|
|
594
|
+
}, null, 8, ["tableChildContents"])
|
|
595
|
+
])) : We("", !0)
|
|
596
|
+
]))), 256)),
|
|
597
|
+
ae(Xe, {
|
|
598
|
+
visible: p.value,
|
|
599
|
+
onBeforeDestroy: x,
|
|
600
|
+
width: 840
|
|
601
|
+
}, {
|
|
602
|
+
default: ve(() => [
|
|
603
|
+
S("div", js, [
|
|
604
|
+
(oe(), Oe(Qe, {
|
|
605
|
+
rowContents: H.value,
|
|
606
|
+
key: H.value,
|
|
607
|
+
isEnableWrap: !0,
|
|
608
|
+
onChange: me
|
|
609
|
+
}, null, 8, ["rowContents"]))
|
|
610
|
+
])
|
|
611
|
+
]),
|
|
612
|
+
footer: ve(() => [
|
|
613
|
+
S("div", { class: "dialog-footer" }, [
|
|
614
|
+
S("div", {
|
|
615
|
+
onClick: x,
|
|
616
|
+
class: "cancel-button button"
|
|
617
|
+
}, De("取消")),
|
|
618
|
+
S("div", {
|
|
619
|
+
class: "ok-button button",
|
|
620
|
+
onClick: A
|
|
621
|
+
}, De("确认"))
|
|
622
|
+
])
|
|
623
|
+
]),
|
|
624
|
+
_: 1
|
|
625
|
+
}, 8, ["visible"])
|
|
626
|
+
]);
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
}, Ks = /* @__PURE__ */ je(Ns, [["__scopeId", "data-v-e0fef72d"]]), Ws = { class: "table-header-child" }, zs = { class: "table-header-child-main" }, Ms = { class: "table-header-child-content" }, Js = { class: "table-header-child-content-item" }, Gs = { class: "fix-button" }, Hs = { key: 0 }, qs = { class: "form-content" }, Qs = { class: "dialog-footer" }, Xs = {
|
|
630
|
+
__name: "tableChildren",
|
|
631
|
+
props: {
|
|
632
|
+
tableChildContents: Array
|
|
633
|
+
},
|
|
634
|
+
emits: ["fixChange", "deleteChange"],
|
|
635
|
+
setup(u, { emit: y }) {
|
|
636
|
+
const n = u, s = y, p = Q(!1), R = Q(""), L = Ra(Ye), { tableIndex: D } = Ze(L), N = Q(""), H = Q([]), B = Q([]), ue = (d) => {
|
|
637
|
+
s("fixChange", l(d));
|
|
638
|
+
}, ee = (d) => {
|
|
639
|
+
var m;
|
|
640
|
+
p.value = !0;
|
|
641
|
+
let v = [];
|
|
642
|
+
Ee == null || Ee.forEach((g) => {
|
|
643
|
+
let le = l(D.value) + 1;
|
|
644
|
+
L.setTableIndex(le), v.push({
|
|
645
|
+
label: g == null ? void 0 : g.label,
|
|
646
|
+
name: g == null ? void 0 : g.label,
|
|
647
|
+
type: g.type,
|
|
648
|
+
value: d[g.key],
|
|
649
|
+
id: D.value,
|
|
650
|
+
contents: g == null ? void 0 : g.options
|
|
651
|
+
});
|
|
652
|
+
}), d != null && d.children && ((m = d == null ? void 0 : d.children) == null ? void 0 : m.length) > 0 && v.push({
|
|
653
|
+
children: d == null ? void 0 : d.children,
|
|
654
|
+
isFormColHidden: !0
|
|
655
|
+
}), N.value = d == null ? void 0 : d.id, H.value = v, B.value = v;
|
|
656
|
+
}, ye = (d) => {
|
|
657
|
+
p.value = !0;
|
|
658
|
+
let v = [];
|
|
659
|
+
Ee == null || Ee.forEach((m) => {
|
|
660
|
+
let g = l(D.value) + 1;
|
|
661
|
+
L.setTableIndex(g), v.push({
|
|
662
|
+
label: m == null ? void 0 : m.label,
|
|
663
|
+
name: m == null ? void 0 : m.label,
|
|
664
|
+
type: m.type,
|
|
665
|
+
value: "",
|
|
666
|
+
id: D.value,
|
|
667
|
+
contents: m == null ? void 0 : m.options
|
|
668
|
+
});
|
|
669
|
+
}), R.value = d == null ? void 0 : d.id, H.value = v, B.value = v;
|
|
670
|
+
}, re = (d) => {
|
|
671
|
+
let v = l(B.value);
|
|
672
|
+
v = v == null ? void 0 : v.map((m) => (m.children || (m.value = d == null ? void 0 : d[m.name]), m)), B.value = v;
|
|
673
|
+
}, me = () => {
|
|
674
|
+
var v, m;
|
|
675
|
+
H.value = B.value;
|
|
676
|
+
let d = {};
|
|
677
|
+
if (N.value !== "")
|
|
678
|
+
d.id = N.value, (v = H.value) == null || v.forEach((g) => {
|
|
679
|
+
const le = Ee == null ? void 0 : Ee.find((he) => (he == null ? void 0 : he.label) === (g == null ? void 0 : g.label));
|
|
680
|
+
le ? d[le.key] = g.value : g != null && g.children && g.children.length > 0 && (d.children = g.children);
|
|
681
|
+
}), p.value = !1, s("fixChange", {
|
|
682
|
+
contents: l(d),
|
|
683
|
+
id: R.value,
|
|
684
|
+
type: "fix"
|
|
685
|
+
});
|
|
686
|
+
else {
|
|
687
|
+
let g = l(D.value) + 1;
|
|
688
|
+
L.setTableIndex(g), d.id = "idChild" + D.value, (m = H.value) == null || m.forEach((le) => {
|
|
689
|
+
const he = Ee == null ? void 0 : Ee.find((we) => (we == null ? void 0 : we.label) === (le == null ? void 0 : le.label));
|
|
690
|
+
he ? d[he.key] = le.value : le != null && le.children && le.children.length > 0 && (d.children = le.children);
|
|
691
|
+
}), p.value = !1, s("fixChange", {
|
|
692
|
+
contents: l(d),
|
|
693
|
+
id: R.value,
|
|
694
|
+
type: "add"
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
N.value = "", H.value = [], B.value = [];
|
|
698
|
+
}, A = () => {
|
|
699
|
+
p.value = !1, N.value = "", R.value = "", H.value = [], B.value = [];
|
|
700
|
+
}, x = (d) => {
|
|
701
|
+
pl.confirm("是否确认要删除", "", {
|
|
702
|
+
confirmButtonText: "确认",
|
|
703
|
+
cancelButtonText: "取消",
|
|
704
|
+
type: "warning"
|
|
705
|
+
}).then(
|
|
706
|
+
() => {
|
|
707
|
+
s("deleteChange", d), ll({
|
|
708
|
+
type: "success",
|
|
709
|
+
message: "删除成功"
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
).catch(() => {
|
|
713
|
+
});
|
|
714
|
+
}, pe = (d) => {
|
|
715
|
+
s("deleteChange", d);
|
|
716
|
+
};
|
|
717
|
+
return (d, v) => {
|
|
718
|
+
const m = Le("svg-icon"), g = Le("el-button");
|
|
719
|
+
return oe(), ge("div", Ws, [
|
|
720
|
+
(oe(!0), ge(Pe, null, Ue(n == null ? void 0 : n.tableChildContents, (le, he) => (oe(), ge("div", zs, [
|
|
721
|
+
S("div", Ms, [
|
|
722
|
+
S("div", Js, De(le.label), 1),
|
|
723
|
+
S("div", Gs, [
|
|
724
|
+
ae(m, {
|
|
725
|
+
name: "ChildAdd",
|
|
726
|
+
class: "svg-icon-content",
|
|
727
|
+
style: { width: "24px", height: "24px" },
|
|
728
|
+
onClick: (we) => ye(le)
|
|
729
|
+
}, null, 8, ["onClick"]),
|
|
730
|
+
ae(m, {
|
|
731
|
+
name: "ChildFix",
|
|
732
|
+
class: "svg-icon-content",
|
|
733
|
+
style: { width: "24px", height: "24px" },
|
|
734
|
+
onClick: (we) => ee(le)
|
|
735
|
+
}, null, 8, ["onClick"]),
|
|
736
|
+
ae(m, {
|
|
737
|
+
name: "ChildDelete",
|
|
738
|
+
class: "svg-icon-content",
|
|
739
|
+
style: { width: "24px", height: "24px" },
|
|
740
|
+
onClick: (we) => x(le)
|
|
741
|
+
}, null, 8, ["onClick"])
|
|
742
|
+
])
|
|
743
|
+
]),
|
|
744
|
+
le != null && le.children && le.children.length > 0 ? (oe(), ge("div", Hs, [
|
|
745
|
+
ae(Ks, {
|
|
746
|
+
tableChildContents: le == null ? void 0 : le.children,
|
|
747
|
+
onDeleteChange: pe,
|
|
748
|
+
onFixChange: ue
|
|
749
|
+
}, null, 8, ["tableChildContents"])
|
|
750
|
+
])) : We("", !0)
|
|
751
|
+
]))), 256)),
|
|
752
|
+
ae(Xe, {
|
|
753
|
+
visible: p.value,
|
|
754
|
+
onBeforeDestroy: A,
|
|
755
|
+
width: 840
|
|
756
|
+
}, {
|
|
757
|
+
default: ve(() => [
|
|
758
|
+
S("div", qs, [
|
|
759
|
+
(oe(), Oe(Qe, {
|
|
760
|
+
rowContents: H.value,
|
|
761
|
+
key: H.value,
|
|
762
|
+
isEnableWrap: !0,
|
|
763
|
+
onChange: re
|
|
764
|
+
}, null, 8, ["rowContents"]))
|
|
765
|
+
])
|
|
766
|
+
]),
|
|
767
|
+
footer: ve(() => [
|
|
768
|
+
S("div", Qs, [
|
|
769
|
+
ae(g, {
|
|
770
|
+
onClick: A,
|
|
771
|
+
class: "cancel-button button",
|
|
772
|
+
id: "themeBorderButton"
|
|
773
|
+
}, {
|
|
774
|
+
default: ve(() => v[0] || (v[0] = [
|
|
775
|
+
Fe(De("取消"))
|
|
776
|
+
])),
|
|
777
|
+
_: 1,
|
|
778
|
+
__: [0]
|
|
779
|
+
}),
|
|
780
|
+
ae(g, {
|
|
781
|
+
class: "ok-button button",
|
|
782
|
+
onClick: me,
|
|
783
|
+
id: "themeButton"
|
|
784
|
+
}, {
|
|
785
|
+
default: ve(() => v[1] || (v[1] = [
|
|
786
|
+
Fe(De("确认"))
|
|
787
|
+
])),
|
|
788
|
+
_: 1,
|
|
789
|
+
__: [1]
|
|
790
|
+
})
|
|
791
|
+
])
|
|
792
|
+
]),
|
|
793
|
+
_: 1
|
|
794
|
+
}, 8, ["visible"])
|
|
795
|
+
]);
|
|
796
|
+
};
|
|
797
|
+
}
|
|
798
|
+
}, Ga = /* @__PURE__ */ je(Xs, [["__scopeId", "data-v-ebd68fa1"]]), Ys = { class: "table-operate-content" }, Zs = { class: "table-operate-item" }, ei = { class: "operate-title" }, li = { class: "operate-content" }, ai = { class: "fix-content" }, si = { class: "fix-content-label" }, ii = { class: "fix-button" }, ni = { key: 0 }, oi = { class: "operate-title" }, ui = { class: "operate-content" }, ri = { class: "fix-content" }, ci = { class: "fix-content-label" }, ti = { class: "fix-button" }, di = { class: "operate-title" }, pi = { class: "operate-content" }, fi = { class: "fix-content" }, hi = { class: "fix-content-label" }, vi = { class: "fix-button" }, mi = { class: "operate-title" }, yi = { class: "operate-content" }, bi = { class: "fix-content" }, gi = { class: "fix-content-label" }, ki = { class: "fix-button" }, _i = { class: "operate-content" }, Ci = { style: { display: "flex", "justify-content": "space-between" } }, wi = { class: "form-content" }, Di = { class: "dialog-footer" }, Ai = { class: "form-content" }, Ii = { class: "dialog-footer" }, xi = { class: "form-content" }, Ei = { class: "dialog-footer" }, $i = { class: "form-content" }, Si = { class: "dialog-footer" }, Ti = {
|
|
799
|
+
__name: "operate",
|
|
800
|
+
props: {
|
|
801
|
+
itemContents: {
|
|
802
|
+
type: Array,
|
|
803
|
+
default: () => []
|
|
804
|
+
},
|
|
805
|
+
originalItemContents: {
|
|
806
|
+
type: Array,
|
|
807
|
+
default: () => []
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
emits: ["change"],
|
|
811
|
+
setup(u, { emit: y }) {
|
|
812
|
+
const n = u, s = y, p = Q([]), R = Q(!1), L = Q(!1), D = Q([]), N = Q(!1), H = Q([]), B = Q(!1), ue = Q([]), ee = Q(""), ye = Q(""), re = Q([]), me = Q([]), A = Q([]), x = Q([]), pe = Q(!1), d = Q([]), v = Q([]), m = Q(0), g = Q([]), le = Q([]), he = Q([]), we = () => {
|
|
813
|
+
pe.value = !0;
|
|
814
|
+
let e = [];
|
|
815
|
+
tl == null || tl.forEach((i) => {
|
|
816
|
+
m.value++, e.push({
|
|
817
|
+
label: i == null ? void 0 : i.label,
|
|
818
|
+
name: i == null ? void 0 : i.label,
|
|
819
|
+
type: i.type,
|
|
820
|
+
value: (i == null ? void 0 : i.key) === "background" ? "var(--ssComponent-primary-color)" : "",
|
|
821
|
+
id: m.value,
|
|
822
|
+
contents: i == null ? void 0 : i.options
|
|
823
|
+
});
|
|
824
|
+
}), d.value = e, v.value = e;
|
|
825
|
+
}, de = () => {
|
|
826
|
+
var i, r, f;
|
|
827
|
+
L.value = !0;
|
|
828
|
+
let e = [];
|
|
829
|
+
(f = (r = (i = Ke) == null ? void 0 : i.find((b) => (b == null ? void 0 : b.key) === "Input")) == null ? void 0 : r.value) == null || f.forEach((b) => {
|
|
830
|
+
m.value++, e.push({
|
|
831
|
+
label: b == null ? void 0 : b.label,
|
|
832
|
+
name: b == null ? void 0 : b.label,
|
|
833
|
+
type: b.type,
|
|
834
|
+
value: (b == null ? void 0 : b.label) === "类型" ? "Input" : "",
|
|
835
|
+
id: m.value,
|
|
836
|
+
contents: b == null ? void 0 : b.options
|
|
837
|
+
});
|
|
838
|
+
}), g.value = e, le.value = e;
|
|
839
|
+
}, _e = (e) => {
|
|
840
|
+
e || (g.value = le.value);
|
|
841
|
+
}, k = async (e) => {
|
|
842
|
+
var i, r, f, b, C, te, V, W, G, Ce, ke, ie;
|
|
843
|
+
if ((e == null ? void 0 : e.类型) !== ((r = (i = le.value) == null ? void 0 : i.find(($) => ($ == null ? void 0 : $.label) === "类型")) == null ? void 0 : r.value)) {
|
|
844
|
+
let $ = [], be = await ((C = (b = (f = Ke) == null ? void 0 : f.find((K) => (K == null ? void 0 : K.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : b.value) == null ? void 0 : C.value) ? await ((Ce = (G = (W = Ke) == null ? void 0 : W.find((K) => (K == null ? void 0 : K.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : G.value) == null ? void 0 : Ce.value) : (V = (te = Ke) == null ? void 0 : te.find((K) => (K == null ? void 0 : K.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : V.value;
|
|
845
|
+
if (be == null || be.forEach((K) => {
|
|
846
|
+
m.value++, $.push({
|
|
847
|
+
label: K == null ? void 0 : K.label,
|
|
848
|
+
name: K == null ? void 0 : K.label,
|
|
849
|
+
type: K.type,
|
|
850
|
+
value: (e == null ? void 0 : e[K.label]) ?? "",
|
|
851
|
+
id: m.value,
|
|
852
|
+
contents: K == null ? void 0 : K.options
|
|
853
|
+
});
|
|
854
|
+
}), e != null && e.菜单选项 && ((ke = e == null ? void 0 : e.菜单选项) == null ? void 0 : ke.length) > 0) {
|
|
855
|
+
const K = await El(e == null ? void 0 : e.菜单选项);
|
|
856
|
+
$ = $ == null ? void 0 : $.map((Ae) => ((Ae == null ? void 0 : Ae.name) === "组信息选项" && (Ae.contents = K), Ae));
|
|
857
|
+
}
|
|
858
|
+
le.value = await ul(l($)), g.value = await ul(l($));
|
|
859
|
+
} else {
|
|
860
|
+
let $ = l(g.value);
|
|
861
|
+
if ($ = $ == null ? void 0 : $.map((be) => (be.value = e == null ? void 0 : e[be.name], be)), e != null && e.菜单选项 && ((ie = e == null ? void 0 : e.菜单选项) == null ? void 0 : ie.length) > 0) {
|
|
862
|
+
const be = await El(e == null ? void 0 : e.菜单选项);
|
|
863
|
+
$ = $ == null ? void 0 : $.map((K) => ((K == null ? void 0 : K.name) === "组信息选项" && (K.contents = be), K));
|
|
864
|
+
}
|
|
865
|
+
$ = wl($), le.value = await ul(l($));
|
|
866
|
+
}
|
|
867
|
+
}, a = async (e) => {
|
|
868
|
+
await k(e), g.value = le.value;
|
|
869
|
+
}, h = async (e) => {
|
|
870
|
+
var f, b, C, te, V, W, G, Ce, ke;
|
|
871
|
+
L.value = !0;
|
|
872
|
+
let i = [];
|
|
873
|
+
const r = await ((C = (b = (f = Ke) == null ? void 0 : f.find((ie) => (ie == null ? void 0 : ie.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : b.value) == null ? void 0 : C.value) ? await ((Ce = (G = (W = Ke) == null ? void 0 : W.find((ie) => (ie == null ? void 0 : ie.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : G.value) == null ? void 0 : Ce.value) : (V = (te = Ke) == null ? void 0 : te.find((ie) => (ie == null ? void 0 : ie.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : V.value;
|
|
874
|
+
if (r == null || r.forEach((ie) => {
|
|
875
|
+
m.value++, i.push({
|
|
876
|
+
label: ie == null ? void 0 : ie.label,
|
|
877
|
+
name: ie == null ? void 0 : ie.label,
|
|
878
|
+
type: ie.type,
|
|
879
|
+
value: (ie == null ? void 0 : ie.label) === "类型" && e[ie.key] === "" ? "Input" : e[ie.key],
|
|
880
|
+
id: m.value,
|
|
881
|
+
contents: ie == null ? void 0 : ie.options
|
|
882
|
+
});
|
|
883
|
+
}), e != null && e.menuSelect && ((ke = e == null ? void 0 : e.menuSelect) == null ? void 0 : ke.length) > 0) {
|
|
884
|
+
const ie = await El(e == null ? void 0 : e.menuSelect);
|
|
885
|
+
i = i == null ? void 0 : i.map(($) => (($ == null ? void 0 : $.name) === "组信息选项" && ($.contents = ie), $));
|
|
886
|
+
}
|
|
887
|
+
ee.value = e == null ? void 0 : e.id, g.value = await ul(wl(i)), le.value = await ul(wl(i));
|
|
888
|
+
}, w = (e) => {
|
|
889
|
+
pl.confirm("是否确认要删除", "", {
|
|
890
|
+
confirmButtonText: "确认",
|
|
891
|
+
cancelButtonText: "取消",
|
|
892
|
+
type: "warning"
|
|
893
|
+
}).then(
|
|
894
|
+
() => {
|
|
895
|
+
var i, r;
|
|
896
|
+
he.value = (i = l(he.value)) == null ? void 0 : i.filter((f) => (f == null ? void 0 : f.id) !== (e == null ? void 0 : e.id)), s("change", (r = l(n.originalItemContents)) == null ? void 0 : r.map((f) => ((f == null ? void 0 : f.key) === "tableToForm" && (f.contents = he.value), f))), ll({
|
|
897
|
+
type: "success",
|
|
898
|
+
message: "删除成功"
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
).catch(() => {
|
|
902
|
+
});
|
|
903
|
+
}, t = () => {
|
|
904
|
+
L.value = !1, g.value = [], ee.value = "";
|
|
905
|
+
}, q = async () => {
|
|
906
|
+
var f, b, C, te, V, W, G, Ce, ke, ie;
|
|
907
|
+
g.value = le.value;
|
|
908
|
+
let e = {};
|
|
909
|
+
ee.value !== "" ? e.id = ee.value : (m.value++, e.id = "id" + m.value);
|
|
910
|
+
let i = await ((C = (b = (f = Ke) == null ? void 0 : f.find(($) => {
|
|
911
|
+
var be, K;
|
|
912
|
+
return ($ == null ? void 0 : $.key) === (((K = (be = g.value) == null ? void 0 : be.find((Ae) => (Ae == null ? void 0 : Ae.label) === "类型")) == null ? void 0 : K.value) ?? "label");
|
|
913
|
+
})) == null ? void 0 : b.value) == null ? void 0 : C.value) ?? ((V = (te = Ke) == null ? void 0 : te.find(($) => {
|
|
914
|
+
var be, K;
|
|
915
|
+
return ($ == null ? void 0 : $.key) === (((K = (be = g.value) == null ? void 0 : be.find((Ae) => (Ae == null ? void 0 : Ae.label) === "类型")) == null ? void 0 : K.value) ?? "label");
|
|
916
|
+
})) == null ? void 0 : V.value);
|
|
917
|
+
if ((W = g.value) == null || W.forEach(($) => {
|
|
918
|
+
const be = i == null ? void 0 : i.find((K) => (K == null ? void 0 : K.label) === ($ == null ? void 0 : $.label));
|
|
919
|
+
be && (e[be.key] = $.value);
|
|
920
|
+
}), e.name = e.label, (G = he.value) != null && G.find(($) => $.id === e.id))
|
|
921
|
+
he.value = (Ce = he.value) == null ? void 0 : Ce.map(($) => ($.id === e.id && ($ = e), $));
|
|
922
|
+
else {
|
|
923
|
+
let $ = l(he.value);
|
|
924
|
+
he.value || (he.value = []), $.push(e), he.value = $;
|
|
925
|
+
}
|
|
926
|
+
he.value = he.value.map(({ id: $, ...be }) => be), L.value = !1, ee.value = "";
|
|
927
|
+
let r = l(n.originalItemContents);
|
|
928
|
+
(ke = l(n.originalItemContents)) != null && ke.find(($) => ($ == null ? void 0 : $.key) === "tableToForm") ? r = (ie = l(n.originalItemContents)) == null ? void 0 : ie.map(($) => (($ == null ? void 0 : $.key) === "tableToForm" && ($.contents = he.value), $)) : r.push({
|
|
929
|
+
key: "tableToForm",
|
|
930
|
+
contents: he.value
|
|
931
|
+
}), s("change", r);
|
|
932
|
+
}, ce = (e) => {
|
|
933
|
+
pe.value = !0;
|
|
934
|
+
let i = [];
|
|
935
|
+
tl == null || tl.forEach((r) => {
|
|
936
|
+
m.value++, i.push({
|
|
937
|
+
label: r == null ? void 0 : r.label,
|
|
938
|
+
name: r == null ? void 0 : r.label,
|
|
939
|
+
type: r.type,
|
|
940
|
+
value: e[r.key],
|
|
941
|
+
id: m.value,
|
|
942
|
+
contents: r == null ? void 0 : r.options
|
|
943
|
+
});
|
|
944
|
+
}), ee.value = e == null ? void 0 : e.id, d.value = i, v.value = i;
|
|
945
|
+
};
|
|
946
|
+
ze(
|
|
947
|
+
() => B.value,
|
|
948
|
+
() => {
|
|
949
|
+
var i, r;
|
|
950
|
+
let e = l(n.originalItemContents);
|
|
951
|
+
(i = l(n.originalItemContents)) != null && i.find((f) => (f == null ? void 0 : f.key) === "page") ? e = (r = l(n.originalItemContents)) == null ? void 0 : r.map((f) => ((f == null ? void 0 : f.key) === "page" && (f.contents = B.value), f)) : e.push({
|
|
952
|
+
key: "page",
|
|
953
|
+
contents: B.value
|
|
954
|
+
}), s("change", e);
|
|
955
|
+
},
|
|
956
|
+
{ deep: !0 }
|
|
957
|
+
);
|
|
958
|
+
const fe = (e) => {
|
|
959
|
+
pl.confirm("是否确认要删除", "", {
|
|
960
|
+
confirmButtonText: "确认",
|
|
961
|
+
cancelButtonText: "取消",
|
|
962
|
+
type: "warning"
|
|
963
|
+
}).then(
|
|
964
|
+
() => {
|
|
965
|
+
var i, r;
|
|
966
|
+
me.value = (i = l(me.value)) == null ? void 0 : i.filter((f) => (f == null ? void 0 : f.id) !== (e == null ? void 0 : e.id)), s("change", (r = l(n.originalItemContents)) == null ? void 0 : r.map((f) => ((f == null ? void 0 : f.key) === "extraButton" && (f.contents = me.value), f))), ll({
|
|
967
|
+
type: "success",
|
|
968
|
+
message: "删除成功"
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
).catch(() => {
|
|
972
|
+
});
|
|
973
|
+
}, c = () => {
|
|
974
|
+
var r, f, b, C, te;
|
|
975
|
+
d.value = v.value;
|
|
976
|
+
let e = {};
|
|
977
|
+
if (ee.value !== "" ? e.id = ee.value : (m.value++, e.id = "id" + m.value), (r = d.value) == null || r.forEach((V) => {
|
|
978
|
+
const W = tl == null ? void 0 : tl.find((G) => (G == null ? void 0 : G.label) === (V == null ? void 0 : V.label));
|
|
979
|
+
W ? e[W.key] = V.value : V != null && V.children && V.children.length > 0 && (e.children = V.children);
|
|
980
|
+
}), (f = me.value) != null && f.find((V) => V.id === e.id))
|
|
981
|
+
me.value = (b = me.value) == null ? void 0 : b.map((V) => (V.id === e.id && (V = e), V));
|
|
982
|
+
else {
|
|
983
|
+
let V = l(me.value) ?? [];
|
|
984
|
+
V.push(e), me.value = V;
|
|
985
|
+
}
|
|
986
|
+
pe.value = !1, ee.value = "";
|
|
987
|
+
let i = l(n.originalItemContents);
|
|
988
|
+
(C = l(n.originalItemContents)) != null && C.find((V) => (V == null ? void 0 : V.key) === "extraButton") ? i = (te = l(n.originalItemContents)) == null ? void 0 : te.map((V) => ((V == null ? void 0 : V.key) === "extraButton" && (V.contents = me.value), V)) : i.push({
|
|
989
|
+
key: "extraButton",
|
|
990
|
+
contents: me.value
|
|
991
|
+
}), s("change", i);
|
|
992
|
+
}, E = (e) => {
|
|
993
|
+
let i = l(v.value);
|
|
994
|
+
i = i == null ? void 0 : i.map((r) => (r.children || (r.value = e == null ? void 0 : e[r.name]), r)), v.value = i;
|
|
995
|
+
}, P = () => {
|
|
996
|
+
pe.value = !1, d.value = [], ee.value = "";
|
|
997
|
+
}, J = (e) => {
|
|
998
|
+
N.value = !0;
|
|
999
|
+
let i = [];
|
|
1000
|
+
dl == null || dl.forEach((r) => {
|
|
1001
|
+
m.value++, i.push({
|
|
1002
|
+
label: r == null ? void 0 : r.label,
|
|
1003
|
+
name: r == null ? void 0 : r.label,
|
|
1004
|
+
type: r.type,
|
|
1005
|
+
value: e[r.key],
|
|
1006
|
+
id: m.value,
|
|
1007
|
+
contents: r == null ? void 0 : r.options
|
|
1008
|
+
});
|
|
1009
|
+
}), ee.value = e == null ? void 0 : e.id, A.value = i, x.value = i;
|
|
1010
|
+
}, ne = (e) => {
|
|
1011
|
+
pl.confirm("是否确认要删除", "", {
|
|
1012
|
+
confirmButtonText: "确认",
|
|
1013
|
+
cancelButtonText: "取消",
|
|
1014
|
+
type: "warning"
|
|
1015
|
+
}).then(
|
|
1016
|
+
() => {
|
|
1017
|
+
var i, r;
|
|
1018
|
+
re.value = (i = l(re.value)) == null ? void 0 : i.filter((f) => (f == null ? void 0 : f.id) !== (e == null ? void 0 : e.id)), s("change", (r = l(n.originalItemContents)) == null ? void 0 : r.map((f) => ((f == null ? void 0 : f.key) === "rowButton" && (f.contents = re.value), f))), ll({
|
|
1019
|
+
type: "success",
|
|
1020
|
+
message: "删除成功"
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
1023
|
+
).catch(() => {
|
|
1024
|
+
});
|
|
1025
|
+
}, z = () => {
|
|
1026
|
+
R.value = !0;
|
|
1027
|
+
let e = [];
|
|
1028
|
+
Ee == null || Ee.forEach((i) => {
|
|
1029
|
+
m.value++, e.push({
|
|
1030
|
+
label: i == null ? void 0 : i.label,
|
|
1031
|
+
name: i == null ? void 0 : i.label,
|
|
1032
|
+
type: i.type,
|
|
1033
|
+
value: "",
|
|
1034
|
+
id: m.value,
|
|
1035
|
+
contents: i == null ? void 0 : i.options
|
|
1036
|
+
});
|
|
1037
|
+
}), H.value = e, ue.value = e;
|
|
1038
|
+
}, T = () => {
|
|
1039
|
+
N.value = !0;
|
|
1040
|
+
let e = [];
|
|
1041
|
+
dl == null || dl.forEach((i) => {
|
|
1042
|
+
m.value++, e.push({
|
|
1043
|
+
label: i == null ? void 0 : i.label,
|
|
1044
|
+
name: i == null ? void 0 : i.label,
|
|
1045
|
+
type: i.type,
|
|
1046
|
+
value: "",
|
|
1047
|
+
id: m.value,
|
|
1048
|
+
contents: i == null ? void 0 : i.options
|
|
1049
|
+
});
|
|
1050
|
+
}), A.value = e, x.value = e;
|
|
1051
|
+
}, O = (e) => {
|
|
1052
|
+
let i = l(x.value);
|
|
1053
|
+
i = i == null ? void 0 : i.map((r) => (r.children || (r.value = e == null ? void 0 : e[r.name]), r)), x.value = i;
|
|
1054
|
+
}, _ = () => {
|
|
1055
|
+
var r, f, b, C, te;
|
|
1056
|
+
A.value = x.value;
|
|
1057
|
+
let e = {};
|
|
1058
|
+
if (ee.value !== "" ? e.id = ee.value : (m.value++, e.id = "id" + m.value), (r = A.value) == null || r.forEach((V) => {
|
|
1059
|
+
const W = dl == null ? void 0 : dl.find((G) => (G == null ? void 0 : G.label) === (V == null ? void 0 : V.label));
|
|
1060
|
+
W ? e[W.key] = V.value : V != null && V.children && V.children.length > 0 && (e.children = V.children);
|
|
1061
|
+
}), (f = re.value) != null && f.find((V) => V.id === e.id))
|
|
1062
|
+
re.value = (b = re.value) == null ? void 0 : b.map((V) => (V.id === e.id && (V = e), V));
|
|
1063
|
+
else {
|
|
1064
|
+
let V = l(re.value);
|
|
1065
|
+
V.push(e), re.value = V;
|
|
1066
|
+
}
|
|
1067
|
+
N.value = !1, ee.value = "";
|
|
1068
|
+
let i = l(n.originalItemContents);
|
|
1069
|
+
(C = l(n.originalItemContents)) != null && C.find((V) => (V == null ? void 0 : V.key) === "rowButton") ? i = (te = l(n.originalItemContents)) == null ? void 0 : te.map((V) => ((V == null ? void 0 : V.key) === "rowButton" && (V.contents = re.value), V)) : i.push({
|
|
1070
|
+
key: "rowButton",
|
|
1071
|
+
contents: re.value
|
|
1072
|
+
}), s("change", i);
|
|
1073
|
+
}, X = () => {
|
|
1074
|
+
N.value = !1, ee.value = "", x.value = [], A.value = [];
|
|
1075
|
+
}, Y = (e) => {
|
|
1076
|
+
R.value = !0;
|
|
1077
|
+
let i = [];
|
|
1078
|
+
Ee == null || Ee.forEach((r) => {
|
|
1079
|
+
m.value++, i.push({
|
|
1080
|
+
label: r == null ? void 0 : r.label,
|
|
1081
|
+
name: r == null ? void 0 : r.label,
|
|
1082
|
+
type: r.type,
|
|
1083
|
+
value: "",
|
|
1084
|
+
id: m.value,
|
|
1085
|
+
contents: r == null ? void 0 : r.options
|
|
1086
|
+
});
|
|
1087
|
+
}), H.value = i, ye.value = e == null ? void 0 : e.id, ue.value = i;
|
|
1088
|
+
}, M = (e) => {
|
|
1089
|
+
var i;
|
|
1090
|
+
D.value = Wa(l(D.value), e == null ? void 0 : e.id), s("change", (i = l(n.originalItemContents)) == null ? void 0 : i.map((r) => {
|
|
1091
|
+
var f;
|
|
1092
|
+
return (r == null ? void 0 : r.key) === "header" && (r.contents = (f = D.value) != null && f.some((b) => b == null ? void 0 : b.children) ? [D.value] : D.value), r;
|
|
1093
|
+
}));
|
|
1094
|
+
}, U = (e) => {
|
|
1095
|
+
var r, f, b;
|
|
1096
|
+
e.type === "fix" ? e.id !== "" ? D.value = Ma(D.value, e) : D.value = za(D.value, e == null ? void 0 : e.contents) : D.value = Ja(D.value, e), D.value = (r = D.value) != null && r.some((C) => C == null ? void 0 : C.children) ? [D.value] : D.value, ee.value = "";
|
|
1097
|
+
let i = l(n.originalItemContents);
|
|
1098
|
+
(f = l(n.originalItemContents)) != null && f.find((C) => (C == null ? void 0 : C.key) === "header") ? i = (b = l(n.originalItemContents)) == null ? void 0 : b.map((C) => ((C == null ? void 0 : C.key) === "header" && (C.contents = D.value), C)) : i.push({
|
|
1099
|
+
key: "header",
|
|
1100
|
+
contents: D.value
|
|
1101
|
+
}), s("change", i);
|
|
1102
|
+
}, se = (e) => {
|
|
1103
|
+
var r;
|
|
1104
|
+
R.value = !0;
|
|
1105
|
+
let i = [];
|
|
1106
|
+
Ee == null || Ee.forEach((f) => {
|
|
1107
|
+
m.value++, i.push({
|
|
1108
|
+
label: f == null ? void 0 : f.label,
|
|
1109
|
+
name: f == null ? void 0 : f.label,
|
|
1110
|
+
type: f.type,
|
|
1111
|
+
value: e[f.key],
|
|
1112
|
+
id: m.value,
|
|
1113
|
+
contents: f == null ? void 0 : f.options
|
|
1114
|
+
});
|
|
1115
|
+
}), e != null && e.children && ((r = e == null ? void 0 : e.children) == null ? void 0 : r.length) > 0 && i.push({
|
|
1116
|
+
children: e == null ? void 0 : e.children,
|
|
1117
|
+
isFormColHidden: !0
|
|
1118
|
+
}), ee.value = e == null ? void 0 : e.id, ye.value = "", H.value = i, ue.value = i;
|
|
1119
|
+
}, I = (e) => {
|
|
1120
|
+
let i = l(ue.value);
|
|
1121
|
+
i = i == null ? void 0 : i.map((r) => (r.children || (r.value = e == null ? void 0 : e[r.name]), r)), ue.value = i;
|
|
1122
|
+
}, o = () => {
|
|
1123
|
+
R.value = !1, ee.value = "", ye.value = "", ue.value = [];
|
|
1124
|
+
}, Z = () => {
|
|
1125
|
+
var r, f, b, C, te, V;
|
|
1126
|
+
H.value = ue.value;
|
|
1127
|
+
let e = {};
|
|
1128
|
+
if (ee.value !== "" ? e.id = ee.value : (m.value++, e.id = "id" + m.value), (r = H.value) == null || r.forEach((W) => {
|
|
1129
|
+
const G = Ee == null ? void 0 : Ee.find((Ce) => (Ce == null ? void 0 : Ce.label) === (W == null ? void 0 : W.label));
|
|
1130
|
+
G ? e[G.key] = W.value : W != null && W.children && W.children.length > 0 && (e.children = W.children);
|
|
1131
|
+
}), (f = D.value) != null && f.find((W) => W.id === e.id))
|
|
1132
|
+
D.value = (b = D.value) == null ? void 0 : b.map((W) => (W.id === e.id && (W = e), W));
|
|
1133
|
+
else {
|
|
1134
|
+
let W = l(D.value) ?? [];
|
|
1135
|
+
ye.value === "" ? W.push(e) : W = W == null ? void 0 : W.map((G) => (G.id === ye.value && (G.children || (G.children = []), G.children.push(e)), G)), D.value = W;
|
|
1136
|
+
}
|
|
1137
|
+
D.value = (C = D.value) != null && C.some((W) => W == null ? void 0 : W.children) ? [D.value] : D.value, R.value = !1, ee.value = "", ye.value = "";
|
|
1138
|
+
let i = l(n.originalItemContents);
|
|
1139
|
+
(te = l(n.originalItemContents)) != null && te.find((W) => (W == null ? void 0 : W.key) === "header") ? i = (V = l(n.originalItemContents)) == null ? void 0 : V.map((W) => ((W == null ? void 0 : W.key) === "header" && (W.contents = D.value), W)) : i.push({
|
|
1140
|
+
key: "header",
|
|
1141
|
+
contents: D.value
|
|
1142
|
+
}), s("change", i);
|
|
1143
|
+
}, j = (e) => {
|
|
1144
|
+
pl.confirm("是否确认要删除", "", {
|
|
1145
|
+
confirmButtonText: "确认",
|
|
1146
|
+
cancelButtonText: "取消",
|
|
1147
|
+
type: "warning"
|
|
1148
|
+
}).then(
|
|
1149
|
+
() => {
|
|
1150
|
+
var i, r;
|
|
1151
|
+
D.value = (i = l(D.value)) == null ? void 0 : i.filter((f) => (f == null ? void 0 : f.id) !== (e == null ? void 0 : e.id)), s("change", (r = l(n.originalItemContents)) == null ? void 0 : r.map((f) => {
|
|
1152
|
+
var b;
|
|
1153
|
+
return (f == null ? void 0 : f.key) === "header" && (f.contents = (b = D.value) != null && b.some((C) => C == null ? void 0 : C.children) ? [D.value] : D.value), f;
|
|
1154
|
+
})), ll({
|
|
1155
|
+
type: "success",
|
|
1156
|
+
message: "删除成功"
|
|
1157
|
+
});
|
|
1158
|
+
}
|
|
1159
|
+
).catch(() => {
|
|
1160
|
+
});
|
|
1161
|
+
};
|
|
1162
|
+
return ze(
|
|
1163
|
+
() => n.originalItemContents,
|
|
1164
|
+
() => {
|
|
1165
|
+
var e, i, r, f, b, C, te, V, W, G, Ce, ke, ie, $, be, K, Ae, Se, xe;
|
|
1166
|
+
if (!(!n.originalItemContents || n.originalItemContents.length === 0))
|
|
1167
|
+
if (p.value = l(n.originalItemContents), D.value = (i = (e = p.value) == null ? void 0 : e.find((F) => (F == null ? void 0 : F.key) === "header")) == null ? void 0 : i.contents, re.value = (f = (r = p.value) == null ? void 0 : r.find((F) => (F == null ? void 0 : F.key) === "rowButton")) == null ? void 0 : f.contents, me.value = (C = (b = p.value) == null ? void 0 : b.find((F) => (F == null ? void 0 : F.key) === "extraButton")) == null ? void 0 : C.contents, B.value = (V = (te = p.value) == null ? void 0 : te.find((F) => (F == null ? void 0 : F.key) === "page")) != null && V.contents ? !!((G = (W = p.value) == null ? void 0 : W.find((F) => (F == null ? void 0 : F.key) === "page")) != null && G.contents) : !1, he.value = (ke = (Ce = p.value) == null ? void 0 : Ce.find((F) => (F == null ? void 0 : F.key) === "tableToForm")) == null ? void 0 : ke.contents, D.value = (ie = D.value) == null ? void 0 : ie.map((F, Te) => (Array.isArray(F) ? F = Ts(F) : F = {
|
|
1168
|
+
label: (F == null ? void 0 : F.label) ?? "",
|
|
1169
|
+
prop: (F == null ? void 0 : F.label) === "操作" ? "operate" : F == null ? void 0 : F.prop,
|
|
1170
|
+
width: F != null && F.width ? parseInt(F.width) : "",
|
|
1171
|
+
fixed: (F == null ? void 0 : F.fixed) ?? void 0,
|
|
1172
|
+
sortable: (F == null ? void 0 : F.sortable) ?? !1,
|
|
1173
|
+
align: (F == null ? void 0 : F.align) ?? "left",
|
|
1174
|
+
showOverflowTooltip: (F == null ? void 0 : F.showOverflowTooltip) ?? !0,
|
|
1175
|
+
isNotDrag: (F == null ? void 0 : F.isNotDrag) ?? !1,
|
|
1176
|
+
isEditCol: (F == null ? void 0 : F.isEditCol) ?? !1,
|
|
1177
|
+
isOperate: (F == null ? void 0 : F.isOperate) ?? !1,
|
|
1178
|
+
id: (F == null ? void 0 : F.id) ?? Te,
|
|
1179
|
+
formMenuSelect: (F == null ? void 0 : F.formMenuSelect) ?? void 0,
|
|
1180
|
+
groupSelect: (F == null ? void 0 : F.groupSelect) ?? void 0
|
|
1181
|
+
}, F)), D.value = ($ = D.value) != null && $.every((F) => Array.isArray(F)) ? (be = D.value) == null ? void 0 : be[0] : D.value, re.value = (K = re.value) == null ? void 0 : K.map((F, Te) => F = {
|
|
1182
|
+
label: (F == null ? void 0 : F.label) ?? "",
|
|
1183
|
+
type: (F == null ? void 0 : F.type) ?? "",
|
|
1184
|
+
textColor: (F == null ? void 0 : F.textColor) ?? "#000000",
|
|
1185
|
+
id: (F == null ? void 0 : F.id) ?? Te
|
|
1186
|
+
}), me.value = (Ae = me.value) == null ? void 0 : Ae.map((F, Te) => F = {
|
|
1187
|
+
label: (F == null ? void 0 : F.label) ?? "",
|
|
1188
|
+
type: (F == null ? void 0 : F.type) ?? "",
|
|
1189
|
+
background: (F == null ? void 0 : F.background) ?? "var(--ssComponent-primary-color)",
|
|
1190
|
+
id: (F == null ? void 0 : F.id) ?? Te
|
|
1191
|
+
}), he.value)
|
|
1192
|
+
he.value = (xe = he.value) == null ? void 0 : xe.map((F) => {
|
|
1193
|
+
m.value++;
|
|
1194
|
+
let Te = F;
|
|
1195
|
+
return Te.id = m.value, Te;
|
|
1196
|
+
});
|
|
1197
|
+
else {
|
|
1198
|
+
let F = [];
|
|
1199
|
+
const Te = (Se = hs(l(D.value))) == null ? void 0 : Se.filter(($e) => ($e == null ? void 0 : $e.prop) !== "operate");
|
|
1200
|
+
Te == null || Te.forEach(($e) => {
|
|
1201
|
+
var Me;
|
|
1202
|
+
m.value++, F.push({
|
|
1203
|
+
label: $e == null ? void 0 : $e.label,
|
|
1204
|
+
name: $e == null ? void 0 : $e.label,
|
|
1205
|
+
type: $e != null && $e.groupSelect ? "Select" : "Input",
|
|
1206
|
+
value: "",
|
|
1207
|
+
id: m.value,
|
|
1208
|
+
contents: $e == null ? void 0 : $e.options,
|
|
1209
|
+
menuSelect: $e == null ? void 0 : $e.formMenuSelect,
|
|
1210
|
+
groupSelect: (Me = $e == null ? void 0 : $e.groupSelect) == null ? void 0 : Me.split(":"),
|
|
1211
|
+
selectRelateType: "关联绑定列"
|
|
1212
|
+
});
|
|
1213
|
+
}), he.value = F;
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
{ deep: !0, immediate: !0 }
|
|
1217
|
+
), (e, i) => {
|
|
1218
|
+
const r = Le("svg-icon"), f = Le("el-button");
|
|
1219
|
+
return oe(), ge("div", Ys, [
|
|
1220
|
+
S("div", Zs, [
|
|
1221
|
+
S("div", ei, [
|
|
1222
|
+
i[2] || (i[2] = S("div", null, De("表头"), -1)),
|
|
1223
|
+
ae(f, {
|
|
1224
|
+
class: "icon-content",
|
|
1225
|
+
onClick: z,
|
|
1226
|
+
id: "themeButton"
|
|
1227
|
+
}, {
|
|
1228
|
+
icon: ve(() => [
|
|
1229
|
+
ae(r, {
|
|
1230
|
+
name: "Plus",
|
|
1231
|
+
class: "icon-size"
|
|
1232
|
+
})
|
|
1233
|
+
]),
|
|
1234
|
+
default: ve(() => [
|
|
1235
|
+
i[1] || (i[1] = Fe(" 新增 "))
|
|
1236
|
+
]),
|
|
1237
|
+
_: 1,
|
|
1238
|
+
__: [1]
|
|
1239
|
+
})
|
|
1240
|
+
]),
|
|
1241
|
+
S("div", li, [
|
|
1242
|
+
(oe(!0), ge(Pe, null, Ue(D.value, (b, C) => (oe(), ge("div", { key: C }, [
|
|
1243
|
+
S("div", ai, [
|
|
1244
|
+
S("div", si, De(b == null ? void 0 : b.label), 1),
|
|
1245
|
+
S("div", ii, [
|
|
1246
|
+
ae(r, {
|
|
1247
|
+
name: "ChildAdd",
|
|
1248
|
+
class: "svg-icon-content",
|
|
1249
|
+
style: { width: "24px", height: "24px" },
|
|
1250
|
+
onClick: (te) => Y(b)
|
|
1251
|
+
}, null, 8, ["onClick"]),
|
|
1252
|
+
ae(r, {
|
|
1253
|
+
name: "ChildFix",
|
|
1254
|
+
class: "svg-icon-content",
|
|
1255
|
+
style: { width: "24px", height: "24px" },
|
|
1256
|
+
onClick: (te) => se(b)
|
|
1257
|
+
}, null, 8, ["onClick"]),
|
|
1258
|
+
ae(r, {
|
|
1259
|
+
name: "ChildDelete",
|
|
1260
|
+
class: "svg-icon-content",
|
|
1261
|
+
style: { width: "24px", height: "24px" },
|
|
1262
|
+
onClick: (te) => j(b)
|
|
1263
|
+
}, null, 8, ["onClick"])
|
|
1264
|
+
])
|
|
1265
|
+
]),
|
|
1266
|
+
b != null && b.children && b.children.length > 0 ? (oe(), ge("div", ni, [
|
|
1267
|
+
ae(Ga, {
|
|
1268
|
+
tableChildContents: b == null ? void 0 : b.children,
|
|
1269
|
+
onDeleteChange: M,
|
|
1270
|
+
onFixChange: U
|
|
1271
|
+
}, null, 8, ["tableChildContents"])
|
|
1272
|
+
])) : We("", !0)
|
|
1273
|
+
]))), 128))
|
|
1274
|
+
]),
|
|
1275
|
+
S("div", oi, [
|
|
1276
|
+
i[4] || (i[4] = S("div", null, De("行内按钮"), -1)),
|
|
1277
|
+
ae(f, {
|
|
1278
|
+
class: "icon-content",
|
|
1279
|
+
id: "themeButton",
|
|
1280
|
+
onClick: T
|
|
1281
|
+
}, {
|
|
1282
|
+
icon: ve(() => [
|
|
1283
|
+
ae(r, {
|
|
1284
|
+
name: "Plus",
|
|
1285
|
+
class: "icon-size"
|
|
1286
|
+
})
|
|
1287
|
+
]),
|
|
1288
|
+
default: ve(() => [
|
|
1289
|
+
i[3] || (i[3] = Fe(" 新增 "))
|
|
1290
|
+
]),
|
|
1291
|
+
_: 1,
|
|
1292
|
+
__: [3]
|
|
1293
|
+
})
|
|
1294
|
+
]),
|
|
1295
|
+
S("div", ui, [
|
|
1296
|
+
(oe(!0), ge(Pe, null, Ue(re.value, (b, C) => (oe(), ge("div", { key: C }, [
|
|
1297
|
+
S("div", ri, [
|
|
1298
|
+
S("div", ci, De(b == null ? void 0 : b.label), 1),
|
|
1299
|
+
S("div", ti, [
|
|
1300
|
+
ae(r, {
|
|
1301
|
+
name: "ChildFix",
|
|
1302
|
+
style: { width: "24px", height: "24px" },
|
|
1303
|
+
class: "svg-icon-content",
|
|
1304
|
+
onClick: (te) => J(b)
|
|
1305
|
+
}, null, 8, ["onClick"]),
|
|
1306
|
+
ae(r, {
|
|
1307
|
+
name: "ChildDelete",
|
|
1308
|
+
class: "svg-icon-content",
|
|
1309
|
+
style: { width: "24px", height: "24px" },
|
|
1310
|
+
onClick: (te) => ne(b)
|
|
1311
|
+
}, null, 8, ["onClick"])
|
|
1312
|
+
])
|
|
1313
|
+
])
|
|
1314
|
+
]))), 128))
|
|
1315
|
+
]),
|
|
1316
|
+
S("div", di, [
|
|
1317
|
+
i[6] || (i[6] = S("div", null, De("表外按钮"), -1)),
|
|
1318
|
+
ae(f, {
|
|
1319
|
+
class: "icon-content",
|
|
1320
|
+
id: "themeButton",
|
|
1321
|
+
onClick: we
|
|
1322
|
+
}, {
|
|
1323
|
+
icon: ve(() => [
|
|
1324
|
+
ae(r, {
|
|
1325
|
+
name: "Plus",
|
|
1326
|
+
class: "icon-size"
|
|
1327
|
+
})
|
|
1328
|
+
]),
|
|
1329
|
+
default: ve(() => [
|
|
1330
|
+
i[5] || (i[5] = Fe(" 新增 "))
|
|
1331
|
+
]),
|
|
1332
|
+
_: 1,
|
|
1333
|
+
__: [5]
|
|
1334
|
+
})
|
|
1335
|
+
]),
|
|
1336
|
+
S("div", pi, [
|
|
1337
|
+
(oe(!0), ge(Pe, null, Ue(me.value, (b, C) => (oe(), ge("div", { key: C }, [
|
|
1338
|
+
S("div", fi, [
|
|
1339
|
+
S("div", hi, De(b == null ? void 0 : b.label), 1),
|
|
1340
|
+
S("div", vi, [
|
|
1341
|
+
ae(r, {
|
|
1342
|
+
name: "ChildFix",
|
|
1343
|
+
style: { width: "24px", height: "24px" },
|
|
1344
|
+
class: "svg-icon-content",
|
|
1345
|
+
onClick: (te) => ce(b)
|
|
1346
|
+
}, null, 8, ["onClick"]),
|
|
1347
|
+
ae(r, {
|
|
1348
|
+
name: "ChildDelete",
|
|
1349
|
+
class: "svg-icon-content",
|
|
1350
|
+
style: { width: "24px", height: "24px" },
|
|
1351
|
+
onClick: (te) => fe(b)
|
|
1352
|
+
}, null, 8, ["onClick"])
|
|
1353
|
+
])
|
|
1354
|
+
])
|
|
1355
|
+
]))), 128))
|
|
1356
|
+
]),
|
|
1357
|
+
S("div", mi, [
|
|
1358
|
+
i[8] || (i[8] = S("div", null, De("表格弹框字段设置"), -1)),
|
|
1359
|
+
ae(f, {
|
|
1360
|
+
class: "icon-content",
|
|
1361
|
+
id: "themeButton",
|
|
1362
|
+
onClick: de
|
|
1363
|
+
}, {
|
|
1364
|
+
icon: ve(() => [
|
|
1365
|
+
ae(r, {
|
|
1366
|
+
name: "Plus",
|
|
1367
|
+
class: "icon-size"
|
|
1368
|
+
})
|
|
1369
|
+
]),
|
|
1370
|
+
default: ve(() => [
|
|
1371
|
+
i[7] || (i[7] = Fe(" 新增 "))
|
|
1372
|
+
]),
|
|
1373
|
+
_: 1,
|
|
1374
|
+
__: [7]
|
|
1375
|
+
})
|
|
1376
|
+
]),
|
|
1377
|
+
S("div", yi, [
|
|
1378
|
+
(oe(!0), ge(Pe, null, Ue(he.value, (b, C) => (oe(), ge("div", { key: C }, [
|
|
1379
|
+
S("div", bi, [
|
|
1380
|
+
S("div", gi, De(b == null ? void 0 : b.label), 1),
|
|
1381
|
+
S("div", ki, [
|
|
1382
|
+
ae(r, {
|
|
1383
|
+
name: "ChildFix",
|
|
1384
|
+
style: { width: "24px", height: "24px" },
|
|
1385
|
+
class: "svg-icon-content",
|
|
1386
|
+
onClick: (te) => h(b)
|
|
1387
|
+
}, null, 8, ["onClick"]),
|
|
1388
|
+
ae(r, {
|
|
1389
|
+
name: "ChildDelete",
|
|
1390
|
+
class: "svg-icon-content",
|
|
1391
|
+
style: { width: "24px", height: "24px" },
|
|
1392
|
+
onClick: (te) => w(b)
|
|
1393
|
+
}, null, 8, ["onClick"])
|
|
1394
|
+
])
|
|
1395
|
+
])
|
|
1396
|
+
]))), 128))
|
|
1397
|
+
]),
|
|
1398
|
+
i[10] || (i[10] = S("div", { class: "operate-title" }, [
|
|
1399
|
+
S("div", null, De("分页"))
|
|
1400
|
+
], -1)),
|
|
1401
|
+
S("div", _i, [
|
|
1402
|
+
S("div", Ci, [
|
|
1403
|
+
i[9] || (i[9] = S("div", { class: "operate-center-content" }, De("是否分页"), -1)),
|
|
1404
|
+
ae(Na, {
|
|
1405
|
+
modelValue: B.value,
|
|
1406
|
+
"onUpdate:modelValue": i[0] || (i[0] = (b) => B.value = b)
|
|
1407
|
+
}, null, 8, ["modelValue"])
|
|
1408
|
+
])
|
|
1409
|
+
])
|
|
1410
|
+
]),
|
|
1411
|
+
ae(Xe, {
|
|
1412
|
+
visible: R.value,
|
|
1413
|
+
onBeforeDestroy: o,
|
|
1414
|
+
width: 840
|
|
1415
|
+
}, {
|
|
1416
|
+
default: ve(() => [
|
|
1417
|
+
S("div", wi, [
|
|
1418
|
+
(oe(), Oe(Qe, {
|
|
1419
|
+
rowContents: H.value,
|
|
1420
|
+
key: H.value,
|
|
1421
|
+
isEnableWrap: !0,
|
|
1422
|
+
onChange: I
|
|
1423
|
+
}, null, 8, ["rowContents"]))
|
|
1424
|
+
])
|
|
1425
|
+
]),
|
|
1426
|
+
footer: ve(() => [
|
|
1427
|
+
S("div", Di, [
|
|
1428
|
+
ae(f, {
|
|
1429
|
+
onClick: o,
|
|
1430
|
+
class: "cancel-button button",
|
|
1431
|
+
id: "themeBorderButton"
|
|
1432
|
+
}, {
|
|
1433
|
+
default: ve(() => i[11] || (i[11] = [
|
|
1434
|
+
Fe(De("取消"))
|
|
1435
|
+
])),
|
|
1436
|
+
_: 1,
|
|
1437
|
+
__: [11]
|
|
1438
|
+
}),
|
|
1439
|
+
ae(f, {
|
|
1440
|
+
class: "ok-button button",
|
|
1441
|
+
onClick: Z,
|
|
1442
|
+
id: "themeButton"
|
|
1443
|
+
}, {
|
|
1444
|
+
default: ve(() => i[12] || (i[12] = [
|
|
1445
|
+
Fe(De("确认"))
|
|
1446
|
+
])),
|
|
1447
|
+
_: 1,
|
|
1448
|
+
__: [12]
|
|
1449
|
+
})
|
|
1450
|
+
])
|
|
1451
|
+
]),
|
|
1452
|
+
_: 1
|
|
1453
|
+
}, 8, ["visible"]),
|
|
1454
|
+
ae(Xe, {
|
|
1455
|
+
visible: N.value,
|
|
1456
|
+
onBeforeDestroy: X,
|
|
1457
|
+
width: 840
|
|
1458
|
+
}, {
|
|
1459
|
+
default: ve(() => [
|
|
1460
|
+
S("div", Ai, [
|
|
1461
|
+
(oe(), Oe(Qe, {
|
|
1462
|
+
rowContents: A.value,
|
|
1463
|
+
key: A.value,
|
|
1464
|
+
isEnableWrap: !0,
|
|
1465
|
+
onChange: O
|
|
1466
|
+
}, null, 8, ["rowContents"]))
|
|
1467
|
+
])
|
|
1468
|
+
]),
|
|
1469
|
+
footer: ve(() => [
|
|
1470
|
+
S("div", Ii, [
|
|
1471
|
+
ae(f, {
|
|
1472
|
+
onClick: X,
|
|
1473
|
+
class: "cancel-button button",
|
|
1474
|
+
id: "themeBorderButton"
|
|
1475
|
+
}, {
|
|
1476
|
+
default: ve(() => i[13] || (i[13] = [
|
|
1477
|
+
Fe(De("取消"))
|
|
1478
|
+
])),
|
|
1479
|
+
_: 1,
|
|
1480
|
+
__: [13]
|
|
1481
|
+
}),
|
|
1482
|
+
ae(f, {
|
|
1483
|
+
class: "ok-button button",
|
|
1484
|
+
onClick: _,
|
|
1485
|
+
id: "themeButton"
|
|
1486
|
+
}, {
|
|
1487
|
+
default: ve(() => i[14] || (i[14] = [
|
|
1488
|
+
Fe(De("确认"))
|
|
1489
|
+
])),
|
|
1490
|
+
_: 1,
|
|
1491
|
+
__: [14]
|
|
1492
|
+
})
|
|
1493
|
+
])
|
|
1494
|
+
]),
|
|
1495
|
+
_: 1
|
|
1496
|
+
}, 8, ["visible"]),
|
|
1497
|
+
ae(Xe, {
|
|
1498
|
+
visible: pe.value,
|
|
1499
|
+
onBeforeDestroy: P,
|
|
1500
|
+
width: 840
|
|
1501
|
+
}, {
|
|
1502
|
+
default: ve(() => [
|
|
1503
|
+
S("div", xi, [
|
|
1504
|
+
(oe(), Oe(Qe, {
|
|
1505
|
+
rowContents: d.value,
|
|
1506
|
+
key: d.value,
|
|
1507
|
+
isEnableWrap: !0,
|
|
1508
|
+
onChange: E
|
|
1509
|
+
}, null, 8, ["rowContents"]))
|
|
1510
|
+
])
|
|
1511
|
+
]),
|
|
1512
|
+
footer: ve(() => [
|
|
1513
|
+
S("div", Ei, [
|
|
1514
|
+
ae(f, {
|
|
1515
|
+
onClick: P,
|
|
1516
|
+
class: "cancel-button button",
|
|
1517
|
+
id: "themeBorderButton"
|
|
1518
|
+
}, {
|
|
1519
|
+
default: ve(() => i[15] || (i[15] = [
|
|
1520
|
+
Fe(De("取消"))
|
|
1521
|
+
])),
|
|
1522
|
+
_: 1,
|
|
1523
|
+
__: [15]
|
|
1524
|
+
}),
|
|
1525
|
+
ae(f, {
|
|
1526
|
+
class: "ok-button button",
|
|
1527
|
+
onClick: c,
|
|
1528
|
+
id: "themeButton"
|
|
1529
|
+
}, {
|
|
1530
|
+
default: ve(() => i[16] || (i[16] = [
|
|
1531
|
+
Fe(De("确认"))
|
|
1532
|
+
])),
|
|
1533
|
+
_: 1,
|
|
1534
|
+
__: [16]
|
|
1535
|
+
})
|
|
1536
|
+
])
|
|
1537
|
+
]),
|
|
1538
|
+
_: 1
|
|
1539
|
+
}, 8, ["visible"]),
|
|
1540
|
+
ae(Xe, {
|
|
1541
|
+
visible: L.value,
|
|
1542
|
+
onBeforeDestroy: t,
|
|
1543
|
+
width: 840
|
|
1544
|
+
}, {
|
|
1545
|
+
default: ve(() => [
|
|
1546
|
+
S("div", $i, [
|
|
1547
|
+
(oe(), Oe(Qe, {
|
|
1548
|
+
rowContents: g.value,
|
|
1549
|
+
key: g.value,
|
|
1550
|
+
isEnableWrap: !0,
|
|
1551
|
+
onChange: k,
|
|
1552
|
+
onChangeVisible: _e,
|
|
1553
|
+
onBlurChange: a
|
|
1554
|
+
}, null, 8, ["rowContents"]))
|
|
1555
|
+
])
|
|
1556
|
+
]),
|
|
1557
|
+
footer: ve(() => [
|
|
1558
|
+
S("div", Si, [
|
|
1559
|
+
ae(f, {
|
|
1560
|
+
onClick: t,
|
|
1561
|
+
class: "cancel-button button",
|
|
1562
|
+
id: "themeBorderButton"
|
|
1563
|
+
}, {
|
|
1564
|
+
default: ve(() => i[17] || (i[17] = [
|
|
1565
|
+
Fe(De("取消"))
|
|
1566
|
+
])),
|
|
1567
|
+
_: 1,
|
|
1568
|
+
__: [17]
|
|
1569
|
+
}),
|
|
1570
|
+
ae(f, {
|
|
1571
|
+
class: "ok-button button",
|
|
1572
|
+
onClick: q,
|
|
1573
|
+
id: "themeButton"
|
|
1574
|
+
}, {
|
|
1575
|
+
default: ve(() => i[18] || (i[18] = [
|
|
1576
|
+
Fe(De("确认"))
|
|
1577
|
+
])),
|
|
1578
|
+
_: 1,
|
|
1579
|
+
__: [18]
|
|
1580
|
+
})
|
|
1581
|
+
])
|
|
1582
|
+
]),
|
|
1583
|
+
_: 1
|
|
1584
|
+
}, 8, ["visible"])
|
|
1585
|
+
]);
|
|
1586
|
+
};
|
|
1587
|
+
}
|
|
1588
|
+
}, Bi = /* @__PURE__ */ je(Ti, [["__scopeId", "data-v-fe85eac2"]]), Fi = { class: "form-operate-content" }, Oi = { class: "form-operate-item" }, Li = { class: "operate-title" }, Pi = { class: "operate-content" }, Ri = { class: "fix-content" }, Ui = { class: "fix-button" }, Vi = { class: "operate-title" }, ji = { class: "operate-content" }, Ni = { class: "fix-content" }, Ki = { class: "fix-button" }, Wi = { style: { display: "flex", "justify-content": "space-between" } }, zi = { class: "form-content" }, Mi = { class: "dialog-footer" }, Ji = { class: "form-content" }, Gi = {
|
|
1589
|
+
__name: "operate",
|
|
1590
|
+
props: {
|
|
1591
|
+
itemContents: {
|
|
1592
|
+
type: Array,
|
|
1593
|
+
default: () => []
|
|
1594
|
+
},
|
|
1595
|
+
originalItemContents: {
|
|
1596
|
+
type: Array,
|
|
1597
|
+
default: () => []
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1600
|
+
emits: ["change"],
|
|
1601
|
+
setup(u, { emit: y }) {
|
|
1602
|
+
const n = u, s = y, p = Q(!1), R = Q([]), L = Q([]), D = Q(!1), N = Q([]), H = Q([]), B = Q(""), ue = Q(!1), ee = Q(0), ye = Q([]), re = Q([]), me = (a, h) => {
|
|
1603
|
+
if (console.log(345, a), (h == null ? void 0 : h.type) == "Select" && (a == null ? void 0 : a.key) === "selectRelateType") {
|
|
1604
|
+
const w = h == null ? void 0 : h.optionUrl;
|
|
1605
|
+
return (w == null ? void 0 : w.selectRelateType) || h[a.key];
|
|
1606
|
+
}
|
|
1607
|
+
if ((h == null ? void 0 : h.type) == "Select" && (a == null ? void 0 : a.key) === "menuSelect") {
|
|
1608
|
+
const w = h == null ? void 0 : h.optionUrl;
|
|
1609
|
+
return (w == null ? void 0 : w.menuSelect) || h[a.key];
|
|
1610
|
+
}
|
|
1611
|
+
if ((h == null ? void 0 : h.type) == "Select" && (a == null ? void 0 : a.key) === "groupSelect") {
|
|
1612
|
+
const w = h == null ? void 0 : h.optionUrl;
|
|
1613
|
+
return (w == null ? void 0 : w.groupSelect) || h[a.key];
|
|
1614
|
+
}
|
|
1615
|
+
if ((h == null ? void 0 : h.type) == "Select" && (a == null ? void 0 : a.key) === "originalContent")
|
|
1616
|
+
return (h == null ? void 0 : h.value) || h[a.key];
|
|
1617
|
+
if ((h == null ? void 0 : h.type) == "Select" && (a == null ? void 0 : a.key) === "multiple") {
|
|
1618
|
+
const w = h[a.key];
|
|
1619
|
+
return xs(w) ? w : a.default;
|
|
1620
|
+
}
|
|
1621
|
+
return (a == null ? void 0 : a.label) === "类型" && h[a.key] === "" ? "Input" : (a == null ? void 0 : a.key) === "isFormColHidden" && !h[a.key] ? !1 : h[a.key];
|
|
1622
|
+
}, A = async (a) => {
|
|
1623
|
+
var t, q, ce, fe, c, E;
|
|
1624
|
+
p.value = !0;
|
|
1625
|
+
let h = [];
|
|
1626
|
+
const w = await ((ce = (q = (t = Ke) == null ? void 0 : t.find((P) => (P == null ? void 0 : P.key) === ((a == null ? void 0 : a.type) === "" ? "Input" : a == null ? void 0 : a.type))) == null ? void 0 : q.value) == null ? void 0 : ce.value) ?? ((c = (fe = Ke) == null ? void 0 : fe.find((P) => (P == null ? void 0 : P.key) === ((a == null ? void 0 : a.type) === "" ? "Input" : a == null ? void 0 : a.type))) == null ? void 0 : c.value);
|
|
1627
|
+
if (w == null || w.forEach((P) => {
|
|
1628
|
+
ee.value++, h.push({
|
|
1629
|
+
label: P == null ? void 0 : P.label,
|
|
1630
|
+
name: P == null ? void 0 : P.label,
|
|
1631
|
+
type: P.type,
|
|
1632
|
+
// value: (t?.label === "类型" && content[t.key] === '') ? "Input" : content[t.key],
|
|
1633
|
+
value: me(P, a),
|
|
1634
|
+
id: ee.value,
|
|
1635
|
+
contents: P == null ? void 0 : P.options,
|
|
1636
|
+
width: (a == null ? void 0 : a.width) ?? 1
|
|
1637
|
+
});
|
|
1638
|
+
}), a != null && a.menuSelect && ((E = a == null ? void 0 : a.menuSelect) == null ? void 0 : E.length) > 0) {
|
|
1639
|
+
const P = await El(a == null ? void 0 : a.menuSelect);
|
|
1640
|
+
h = h == null ? void 0 : h.map((J) => ((J == null ? void 0 : J.name) === "组信息选项" && (J.contents = P), J));
|
|
1641
|
+
}
|
|
1642
|
+
B.value = a == null ? void 0 : a.id, R.value = await ul(wl(h)), L.value = await ul(wl(h));
|
|
1643
|
+
}, x = (a) => {
|
|
1644
|
+
var w;
|
|
1645
|
+
D.value = !0;
|
|
1646
|
+
let h = [];
|
|
1647
|
+
(w = ea) == null || w.forEach((t) => {
|
|
1648
|
+
ee.value++, h.push({
|
|
1649
|
+
label: t == null ? void 0 : t.label,
|
|
1650
|
+
name: t == null ? void 0 : t.label,
|
|
1651
|
+
type: t.type,
|
|
1652
|
+
value: (t == null ? void 0 : t.label) === "类型" && a[t.key] === "" ? "normal" : a[t.key],
|
|
1653
|
+
id: ee.value,
|
|
1654
|
+
contents: t == null ? void 0 : t.options
|
|
1655
|
+
});
|
|
1656
|
+
}), ye.value = h, re.value = h, B.value = a == null ? void 0 : a.id;
|
|
1657
|
+
};
|
|
1658
|
+
ze(
|
|
1659
|
+
() => ue.value,
|
|
1660
|
+
() => {
|
|
1661
|
+
var h, w;
|
|
1662
|
+
let a = l(n.originalItemContents);
|
|
1663
|
+
(h = l(n.originalItemContents)) != null && h.find((t) => (t == null ? void 0 : t.key) === "enableWrap") ? a = (w = l(n.originalItemContents)) == null ? void 0 : w.map((t) => ((t == null ? void 0 : t.key) === "enableWrap" && (t.contents = !ue.value), t)) : a.push({
|
|
1664
|
+
key: "enableWrap",
|
|
1665
|
+
contents: !ue.value
|
|
1666
|
+
}), s("change", a);
|
|
1667
|
+
},
|
|
1668
|
+
{ deep: !0 }
|
|
1669
|
+
);
|
|
1670
|
+
const pe = () => {
|
|
1671
|
+
var w, t, q, ce, fe;
|
|
1672
|
+
ye.value = re.value;
|
|
1673
|
+
let a = {};
|
|
1674
|
+
if (B.value !== "" ? a.id = B.value : (ee.value++, a.id = "id" + ee.value), (w = ye.value) == null || w.forEach((c) => {
|
|
1675
|
+
var P;
|
|
1676
|
+
const E = (P = ea) == null ? void 0 : P.find((J) => (J == null ? void 0 : J.label) === (c == null ? void 0 : c.label));
|
|
1677
|
+
E && (a[E.key] = c.value);
|
|
1678
|
+
}), (t = N.value) != null && t.find((c) => c.id === a.id))
|
|
1679
|
+
N.value = (q = N.value) == null ? void 0 : q.map((c) => (c.id === a.id && (c = a), c));
|
|
1680
|
+
else {
|
|
1681
|
+
let c = l(N.value);
|
|
1682
|
+
N.value || (N.value = []), c.push(a), N.value = c;
|
|
1683
|
+
}
|
|
1684
|
+
D.value = !1, B.value = "";
|
|
1685
|
+
let h = l(n.originalItemContents);
|
|
1686
|
+
(ce = l(n.originalItemContents)) != null && ce.find((c) => (c == null ? void 0 : c.key) === "formButton") ? h = (fe = l(n.originalItemContents)) == null ? void 0 : fe.map((c) => ((c == null ? void 0 : c.key) === "formButton" && (c.contents = N.value), c)) : h.push({
|
|
1687
|
+
key: "formButton",
|
|
1688
|
+
contents: N.value
|
|
1689
|
+
}), s("change", h);
|
|
1690
|
+
}, d = (a) => {
|
|
1691
|
+
pl.confirm("是否确认要删除", "", {
|
|
1692
|
+
confirmButtonText: "确认",
|
|
1693
|
+
cancelButtonText: "取消",
|
|
1694
|
+
type: "warning"
|
|
1695
|
+
}).then(
|
|
1696
|
+
() => {
|
|
1697
|
+
var h, w;
|
|
1698
|
+
H.value = (h = l(H.value)) == null ? void 0 : h.filter((t) => (t == null ? void 0 : t.id) !== (a == null ? void 0 : a.id)), s("change", (w = l(n.originalItemContents)) == null ? void 0 : w.map((t) => ((t == null ? void 0 : t.key) === "formContent" && (t.contents = H.value), t))), ll({
|
|
1699
|
+
type: "success",
|
|
1700
|
+
message: "删除成功"
|
|
1701
|
+
});
|
|
1702
|
+
}
|
|
1703
|
+
).catch(() => {
|
|
1704
|
+
});
|
|
1705
|
+
}, v = (a) => {
|
|
1706
|
+
pl.confirm("是否确认要删除", "", {
|
|
1707
|
+
confirmButtonText: "确认",
|
|
1708
|
+
cancelButtonText: "取消",
|
|
1709
|
+
type: "warning"
|
|
1710
|
+
}).then(
|
|
1711
|
+
() => {
|
|
1712
|
+
var h, w;
|
|
1713
|
+
N.value = (h = l(N.value)) == null ? void 0 : h.filter((t) => (t == null ? void 0 : t.id) !== (a == null ? void 0 : a.id)), s("change", (w = l(n.originalItemContents)) == null ? void 0 : w.map((t) => ((t == null ? void 0 : t.key) === "formButton" && (t.contents = N.value), t))), ll({
|
|
1714
|
+
type: "success",
|
|
1715
|
+
message: "删除成功"
|
|
1716
|
+
});
|
|
1717
|
+
}
|
|
1718
|
+
).catch(() => {
|
|
1719
|
+
});
|
|
1720
|
+
}, m = () => {
|
|
1721
|
+
var h;
|
|
1722
|
+
D.value = !0;
|
|
1723
|
+
let a = [];
|
|
1724
|
+
(h = ea) == null || h.forEach((w) => {
|
|
1725
|
+
ee.value++, a.push({
|
|
1726
|
+
label: w == null ? void 0 : w.label,
|
|
1727
|
+
name: w == null ? void 0 : w.label,
|
|
1728
|
+
type: w.type,
|
|
1729
|
+
value: (w == null ? void 0 : w.label) === "类型" ? "normal" : "",
|
|
1730
|
+
id: ee.value,
|
|
1731
|
+
contents: w == null ? void 0 : w.options
|
|
1732
|
+
});
|
|
1733
|
+
}), ye.value = a, re.value = a;
|
|
1734
|
+
}, g = () => {
|
|
1735
|
+
var h, w, t;
|
|
1736
|
+
p.value = !0;
|
|
1737
|
+
let a = [];
|
|
1738
|
+
(t = (w = (h = Ke) == null ? void 0 : h.find((q) => (q == null ? void 0 : q.key) === "Input")) == null ? void 0 : w.value) == null || t.forEach((q) => {
|
|
1739
|
+
ee.value++, a.push({
|
|
1740
|
+
label: q == null ? void 0 : q.label,
|
|
1741
|
+
name: q == null ? void 0 : q.label,
|
|
1742
|
+
type: q.type,
|
|
1743
|
+
value: (q == null ? void 0 : q.label) === "类型" ? "Input" : "",
|
|
1744
|
+
id: ee.value,
|
|
1745
|
+
contents: q == null ? void 0 : q.options
|
|
1746
|
+
});
|
|
1747
|
+
}), R.value = a, L.value = a;
|
|
1748
|
+
}, le = (a) => {
|
|
1749
|
+
let h = l(re.value);
|
|
1750
|
+
h = h == null ? void 0 : h.map((w) => (w.value = a == null ? void 0 : a[w.name], w)), re.value = h;
|
|
1751
|
+
}, he = async (a) => {
|
|
1752
|
+
var h, w, t, q, ce, fe, c, E, P, J, ne, z;
|
|
1753
|
+
if ((a == null ? void 0 : a.类型) !== ((w = (h = L.value) == null ? void 0 : h.find((T) => (T == null ? void 0 : T.label) === "类型")) == null ? void 0 : w.value)) {
|
|
1754
|
+
let T = [];
|
|
1755
|
+
const O = await ((ce = (q = (t = Ke) == null ? void 0 : t.find((_) => (_ == null ? void 0 : _.key) === ((a == null ? void 0 : a.类型) === "" ? "Input" : a == null ? void 0 : a.类型))) == null ? void 0 : q.value) == null ? void 0 : ce.value) ? await ((J = (P = (E = Ke) == null ? void 0 : E.find((_) => (_ == null ? void 0 : _.key) === ((a == null ? void 0 : a.类型) === "" ? "Input" : a == null ? void 0 : a.类型))) == null ? void 0 : P.value) == null ? void 0 : J.value) : (c = (fe = Ke) == null ? void 0 : fe.find((_) => (_ == null ? void 0 : _.key) === ((a == null ? void 0 : a.类型) === "" ? "Input" : a == null ? void 0 : a.类型))) == null ? void 0 : c.value;
|
|
1756
|
+
if (O == null || O.forEach((_) => {
|
|
1757
|
+
var Y, M;
|
|
1758
|
+
ee.value++;
|
|
1759
|
+
const X = Es(_ == null ? void 0 : _.default) ? (a == null ? void 0 : a[_.label]) ?? _.value ?? "" : _ == null ? void 0 : _.default;
|
|
1760
|
+
T.push({
|
|
1761
|
+
label: _ == null ? void 0 : _.label,
|
|
1762
|
+
name: _ == null ? void 0 : _.label,
|
|
1763
|
+
type: _.type,
|
|
1764
|
+
value: X,
|
|
1765
|
+
id: ee.value,
|
|
1766
|
+
contents: _ == null ? void 0 : _.options,
|
|
1767
|
+
width: ((M = (Y = L.value) == null ? void 0 : Y[0]) == null ? void 0 : M.width) ?? 1
|
|
1768
|
+
});
|
|
1769
|
+
}), a != null && a.菜单选项 && ((ne = a == null ? void 0 : a.菜单选项) == null ? void 0 : ne.length) > 0) {
|
|
1770
|
+
const _ = await El(a == null ? void 0 : a.菜单选项);
|
|
1771
|
+
T = T == null ? void 0 : T.map((X) => ((X == null ? void 0 : X.name) === "组信息选项" && (X.contents = _), X));
|
|
1772
|
+
}
|
|
1773
|
+
L.value = await ul(l(T)), R.value = await ul(l(T));
|
|
1774
|
+
} else {
|
|
1775
|
+
let T = l(L.value);
|
|
1776
|
+
if (T = T == null ? void 0 : T.map((O) => (O.value = a == null ? void 0 : a[O.name], O)), a != null && a.菜单选项 && ((z = a == null ? void 0 : a.菜单选项) == null ? void 0 : z.length) > 0) {
|
|
1777
|
+
const O = await El(a == null ? void 0 : a.菜单选项);
|
|
1778
|
+
T = T == null ? void 0 : T.map((_) => ((_ == null ? void 0 : _.name) === "组信息选项" && (_.contents = O), _));
|
|
1779
|
+
}
|
|
1780
|
+
T = wl(T), L.value = await ul(l(T));
|
|
1781
|
+
}
|
|
1782
|
+
}, we = (a) => {
|
|
1783
|
+
a || (R.value = L.value);
|
|
1784
|
+
}, de = async (a) => {
|
|
1785
|
+
await he(a), R.value = L.value;
|
|
1786
|
+
}, _e = async () => {
|
|
1787
|
+
var t, q, ce, fe, c, E, P, J, ne, z, T, O;
|
|
1788
|
+
R.value = L.value;
|
|
1789
|
+
let a = {};
|
|
1790
|
+
a.width = ((q = (t = R.value) == null ? void 0 : t[0]) == null ? void 0 : q.width) ?? 1, B.value !== "" ? a.id = B.value : (ee.value++, a.id = "id" + ee.value);
|
|
1791
|
+
let h = await ((c = (fe = (ce = Ke) == null ? void 0 : ce.find((_) => {
|
|
1792
|
+
var X, Y;
|
|
1793
|
+
return (_ == null ? void 0 : _.key) === (((Y = (X = R.value) == null ? void 0 : X.find((M) => (M == null ? void 0 : M.label) === "类型")) == null ? void 0 : Y.value) ?? "label");
|
|
1794
|
+
})) == null ? void 0 : fe.value) == null ? void 0 : c.value) ?? ((P = (E = Ke) == null ? void 0 : E.find((_) => {
|
|
1795
|
+
var X, Y;
|
|
1796
|
+
return (_ == null ? void 0 : _.key) === (((Y = (X = R.value) == null ? void 0 : X.find((M) => (M == null ? void 0 : M.label) === "类型")) == null ? void 0 : Y.value) ?? "label");
|
|
1797
|
+
})) == null ? void 0 : P.value);
|
|
1798
|
+
if ((J = R.value) == null || J.forEach((_) => {
|
|
1799
|
+
const X = h == null ? void 0 : h.find((Y) => (Y == null ? void 0 : Y.label) === (_ == null ? void 0 : _.label));
|
|
1800
|
+
X && (a[X.key] = _.value);
|
|
1801
|
+
}), a.width = a.width ? a.width : 1, a.key = a == null ? void 0 : a.label, a.isFormColHidden = a == null ? void 0 : a.isFormColHidden, (ne = H.value) != null && ne.find((_) => _.id === a.id))
|
|
1802
|
+
H.value = (z = H.value) == null ? void 0 : z.map((_) => (_.id === a.id && (_ = a), _));
|
|
1803
|
+
else {
|
|
1804
|
+
let _ = l(H.value);
|
|
1805
|
+
_.push(a), H.value = _;
|
|
1806
|
+
}
|
|
1807
|
+
H.value = H.value.map(({ id: _, ...X }) => X), p.value = !1, B.value = "";
|
|
1808
|
+
let w = l(n.originalItemContents);
|
|
1809
|
+
(T = l(n.originalItemContents)) != null && T.find((_) => (_ == null ? void 0 : _.key) === "formContent") ? w = (O = l(n.originalItemContents)) == null ? void 0 : O.map((_) => ((_ == null ? void 0 : _.key) === "formContent" && (_.contents = H.value), _)) : w.push({
|
|
1810
|
+
key: "formContent",
|
|
1811
|
+
contents: H.value
|
|
1812
|
+
}), s("change", w);
|
|
1813
|
+
}, k = () => {
|
|
1814
|
+
p.value = !1, D.value = !1, B.value = "", L.value = [], re.value = [];
|
|
1815
|
+
};
|
|
1816
|
+
return ze(
|
|
1817
|
+
() => n.originalItemContents,
|
|
1818
|
+
() => {
|
|
1819
|
+
var h, w, t, q, ce, fe;
|
|
1820
|
+
if (!n.originalItemContents || n.originalItemContents.length === 0) return;
|
|
1821
|
+
const a = l(n.originalItemContents);
|
|
1822
|
+
H.value = ((h = a == null ? void 0 : a.find((c) => (c == null ? void 0 : c.key) === "formContent")) == null ? void 0 : h.contents) ?? [], N.value = ((w = a == null ? void 0 : a.find((c) => (c == null ? void 0 : c.key) === "formButton")) == null ? void 0 : w.contents) ?? [], ue.value = (t = a == null ? void 0 : a.find((c) => (c == null ? void 0 : c.key) === "enableWrap")) != null && t.contents ? !((q = a == null ? void 0 : a.find((c) => (c == null ? void 0 : c.key) === "enableWrap")) != null && q.contents) : !0, H.value = (ce = l(H.value)) == null ? void 0 : ce.map((c, E) => {
|
|
1823
|
+
var J;
|
|
1824
|
+
let P = c;
|
|
1825
|
+
return P.id = (c == null ? void 0 : c.id) ?? E, c != null && c.label || (c.label = (c == null ? void 0 : c.key) ?? (c == null ? void 0 : c.label) ?? ""), c != null && c.type || (c.type = (c == null ? void 0 : c.type) ?? ""), c.contents = ((J = c == null ? void 0 : c.options) == null ? void 0 : J.length) === 0 ? (c == null ? void 0 : c.contents) ?? "" : c == null ? void 0 : c.options, P;
|
|
1826
|
+
}), H.value = wl(H.value), N.value = (fe = N.value) == null ? void 0 : fe.map((c, E) => c = {
|
|
1827
|
+
label: (c == null ? void 0 : c.label) ?? "",
|
|
1828
|
+
type: (c == null ? void 0 : c.type) ?? "",
|
|
1829
|
+
background: (c == null ? void 0 : c.background) ?? "var(--ssComponent-primary-color)",
|
|
1830
|
+
id: E
|
|
1831
|
+
});
|
|
1832
|
+
},
|
|
1833
|
+
{ deep: !0, immediate: !0 }
|
|
1834
|
+
), (a, h) => {
|
|
1835
|
+
const w = Le("svg-icon"), t = Le("el-button");
|
|
1836
|
+
return oe(), ge("div", Fi, [
|
|
1837
|
+
S("div", Oi, [
|
|
1838
|
+
S("div", Li, [
|
|
1839
|
+
h[2] || (h[2] = S("div", null, De("表单内容"), -1)),
|
|
1840
|
+
ae(t, {
|
|
1841
|
+
class: "icon-content",
|
|
1842
|
+
id: "themeButton",
|
|
1843
|
+
onClick: g
|
|
1844
|
+
}, {
|
|
1845
|
+
icon: ve(() => [
|
|
1846
|
+
ae(w, {
|
|
1847
|
+
name: "Plus",
|
|
1848
|
+
class: "icon-size"
|
|
1849
|
+
})
|
|
1850
|
+
]),
|
|
1851
|
+
default: ve(() => [
|
|
1852
|
+
h[1] || (h[1] = S("div", null, De("新增"), -1))
|
|
1853
|
+
]),
|
|
1854
|
+
_: 1,
|
|
1855
|
+
__: [1]
|
|
1856
|
+
})
|
|
1857
|
+
]),
|
|
1858
|
+
S("div", Pi, [
|
|
1859
|
+
(oe(!0), ge(Pe, null, Ue(H.value, (q, ce) => (oe(), ge("div", { key: ce }, [
|
|
1860
|
+
S("div", Ri, [
|
|
1861
|
+
S("div", null, De(q.label), 1),
|
|
1862
|
+
S("div", Ui, [
|
|
1863
|
+
ae(w, {
|
|
1864
|
+
name: "ChildFix",
|
|
1865
|
+
class: "svg-icon-content",
|
|
1866
|
+
style: { width: "24px", height: "24px" },
|
|
1867
|
+
onClick: (fe) => A(q)
|
|
1868
|
+
}, null, 8, ["onClick"]),
|
|
1869
|
+
ae(w, {
|
|
1870
|
+
name: "ChildDelete",
|
|
1871
|
+
class: "svg-icon-content",
|
|
1872
|
+
style: { width: "24px", height: "24px" },
|
|
1873
|
+
onClick: (fe) => d(q)
|
|
1874
|
+
}, null, 8, ["onClick"])
|
|
1875
|
+
])
|
|
1876
|
+
])
|
|
1877
|
+
]))), 128))
|
|
1878
|
+
]),
|
|
1879
|
+
S("div", Vi, [
|
|
1880
|
+
h[4] || (h[4] = S("div", null, De("表单按钮"), -1)),
|
|
1881
|
+
ae(t, {
|
|
1882
|
+
class: "icon-content",
|
|
1883
|
+
id: "themeButton",
|
|
1884
|
+
onClick: m
|
|
1885
|
+
}, {
|
|
1886
|
+
icon: ve(() => [
|
|
1887
|
+
ae(w, {
|
|
1888
|
+
name: "Plus",
|
|
1889
|
+
class: "icon-size"
|
|
1890
|
+
})
|
|
1891
|
+
]),
|
|
1892
|
+
default: ve(() => [
|
|
1893
|
+
h[3] || (h[3] = Fe(" 新增 "))
|
|
1894
|
+
]),
|
|
1895
|
+
_: 1,
|
|
1896
|
+
__: [3]
|
|
1897
|
+
})
|
|
1898
|
+
]),
|
|
1899
|
+
S("div", ji, [
|
|
1900
|
+
(oe(!0), ge(Pe, null, Ue(N.value, (q, ce) => (oe(), ge("div", { key: ce }, [
|
|
1901
|
+
S("div", Ni, [
|
|
1902
|
+
S("div", null, De(q.label), 1),
|
|
1903
|
+
S("div", Ki, [
|
|
1904
|
+
ae(w, {
|
|
1905
|
+
name: "ChildFix",
|
|
1906
|
+
class: "svg-icon-content",
|
|
1907
|
+
style: { width: "24px", height: "24px" },
|
|
1908
|
+
onClick: (fe) => x(q)
|
|
1909
|
+
}, null, 8, ["onClick"]),
|
|
1910
|
+
ae(w, {
|
|
1911
|
+
name: "ChildDelete",
|
|
1912
|
+
class: "svg-icon-content",
|
|
1913
|
+
style: { width: "24px", height: "24px" },
|
|
1914
|
+
onClick: (fe) => v(q)
|
|
1915
|
+
}, null, 8, ["onClick"])
|
|
1916
|
+
])
|
|
1917
|
+
])
|
|
1918
|
+
]))), 128))
|
|
1919
|
+
]),
|
|
1920
|
+
h[6] || (h[6] = S("div", { class: "operate-title" }, [
|
|
1921
|
+
S("div", null, De("表单布局"))
|
|
1922
|
+
], -1)),
|
|
1923
|
+
S("div", Wi, [
|
|
1924
|
+
h[5] || (h[5] = S("div", { class: "operate-center-content" }, De("是否自动撑宽"), -1)),
|
|
1925
|
+
ae(Na, {
|
|
1926
|
+
modelValue: ue.value,
|
|
1927
|
+
"onUpdate:modelValue": h[0] || (h[0] = (q) => ue.value = q)
|
|
1928
|
+
}, null, 8, ["modelValue"])
|
|
1929
|
+
])
|
|
1930
|
+
]),
|
|
1931
|
+
ae(Xe, {
|
|
1932
|
+
visible: p.value,
|
|
1933
|
+
onBeforeDestroy: k,
|
|
1934
|
+
width: 840
|
|
1935
|
+
}, {
|
|
1936
|
+
default: ve(() => [
|
|
1937
|
+
S("div", zi, [
|
|
1938
|
+
(oe(), Oe(Qe, {
|
|
1939
|
+
rowContents: R.value,
|
|
1940
|
+
key: R.value,
|
|
1941
|
+
isEnableWrap: !0,
|
|
1942
|
+
onChange: he,
|
|
1943
|
+
onChangeVisible: we,
|
|
1944
|
+
onBlurChange: de
|
|
1945
|
+
}, null, 8, ["rowContents"]))
|
|
1946
|
+
])
|
|
1947
|
+
]),
|
|
1948
|
+
footer: ve(() => [
|
|
1949
|
+
S("div", Mi, [
|
|
1950
|
+
ae(t, {
|
|
1951
|
+
onClick: k,
|
|
1952
|
+
class: "cancel-button button",
|
|
1953
|
+
id: "themeBorderButton"
|
|
1954
|
+
}, {
|
|
1955
|
+
default: ve(() => h[7] || (h[7] = [
|
|
1956
|
+
Fe(De("取消"))
|
|
1957
|
+
])),
|
|
1958
|
+
_: 1,
|
|
1959
|
+
__: [7]
|
|
1960
|
+
}),
|
|
1961
|
+
ae(t, {
|
|
1962
|
+
class: "ok-button button",
|
|
1963
|
+
onClick: _e,
|
|
1964
|
+
id: "themeButton"
|
|
1965
|
+
}, {
|
|
1966
|
+
default: ve(() => h[8] || (h[8] = [
|
|
1967
|
+
Fe(De("确认"))
|
|
1968
|
+
])),
|
|
1969
|
+
_: 1,
|
|
1970
|
+
__: [8]
|
|
1971
|
+
})
|
|
1972
|
+
])
|
|
1973
|
+
]),
|
|
1974
|
+
_: 1
|
|
1975
|
+
}, 8, ["visible"]),
|
|
1976
|
+
ae(Xe, {
|
|
1977
|
+
visible: D.value,
|
|
1978
|
+
onBeforeDestroy: k,
|
|
1979
|
+
width: 840
|
|
1980
|
+
}, {
|
|
1981
|
+
default: ve(() => [
|
|
1982
|
+
S("div", Ji, [
|
|
1983
|
+
(oe(), Oe(Qe, {
|
|
1984
|
+
rowContents: ye.value,
|
|
1985
|
+
key: ye.value,
|
|
1986
|
+
isEnableWrap: !0,
|
|
1987
|
+
onChange: le
|
|
1988
|
+
}, null, 8, ["rowContents"]))
|
|
1989
|
+
])
|
|
1990
|
+
]),
|
|
1991
|
+
footer: ve(() => [
|
|
1992
|
+
S("div", { class: "dialog-footer" }, [
|
|
1993
|
+
S("div", {
|
|
1994
|
+
onClick: k,
|
|
1995
|
+
class: "cancel-button button"
|
|
1996
|
+
}, De("取消")),
|
|
1997
|
+
S("div", {
|
|
1998
|
+
class: "ok-button button",
|
|
1999
|
+
onClick: pe
|
|
2000
|
+
}, De("确认"))
|
|
2001
|
+
])
|
|
2002
|
+
]),
|
|
2003
|
+
_: 1
|
|
2004
|
+
}, 8, ["visible"])
|
|
2005
|
+
]);
|
|
2006
|
+
};
|
|
2007
|
+
}
|
|
2008
|
+
}, Pa = /* @__PURE__ */ je(Gi, [["__scopeId", "data-v-949bfaa8"]]), Hi = { class: "step-module content" }, qi = { class: "module-data" }, Qi = { class: "step-module layout" }, Xi = { class: "form-content" }, Yi = /* @__PURE__ */ Dl({
|
|
2009
|
+
__name: "operate",
|
|
2010
|
+
props: {
|
|
2011
|
+
itemContents: {
|
|
2012
|
+
type: Array,
|
|
2013
|
+
default: () => []
|
|
2014
|
+
},
|
|
2015
|
+
originalItemContents: {
|
|
2016
|
+
type: Array,
|
|
2017
|
+
default: () => []
|
|
2018
|
+
}
|
|
2019
|
+
},
|
|
2020
|
+
emits: ["change"],
|
|
2021
|
+
setup(u, { emit: y }) {
|
|
2022
|
+
const n = u, s = y, p = Q([
|
|
2023
|
+
{
|
|
2024
|
+
label: "方向:",
|
|
2025
|
+
prop: "direction",
|
|
2026
|
+
type: "RADIO",
|
|
2027
|
+
contents: [
|
|
2028
|
+
{
|
|
2029
|
+
label: "水平",
|
|
2030
|
+
value: "horizontal"
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
label: "垂直",
|
|
2034
|
+
value: "vertical"
|
|
2035
|
+
}
|
|
2036
|
+
],
|
|
2037
|
+
value: "horizontal"
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
label: "是否居中:",
|
|
2041
|
+
prop: "alignCenter",
|
|
2042
|
+
type: "RADIO",
|
|
2043
|
+
contents: [
|
|
2044
|
+
{
|
|
2045
|
+
label: "是",
|
|
2046
|
+
value: !0
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
label: "否",
|
|
2050
|
+
value: !1
|
|
2051
|
+
}
|
|
2052
|
+
],
|
|
2053
|
+
value: !0
|
|
2054
|
+
},
|
|
2055
|
+
// {
|
|
2056
|
+
// label: '是否交互',
|
|
2057
|
+
// prop: 'allowTrigger',
|
|
2058
|
+
// type: 'RADIO',
|
|
2059
|
+
// contents: [
|
|
2060
|
+
// {
|
|
2061
|
+
// label: '是',
|
|
2062
|
+
// value: true,
|
|
2063
|
+
// }, {
|
|
2064
|
+
// label: '否',
|
|
2065
|
+
// value: false,
|
|
2066
|
+
// },
|
|
2067
|
+
// ],
|
|
2068
|
+
// value: 'horizontal'
|
|
2069
|
+
// },
|
|
2070
|
+
{
|
|
2071
|
+
label: "应用简洁风格",
|
|
2072
|
+
prop: "simple",
|
|
2073
|
+
type: "RADIO",
|
|
2074
|
+
contents: [
|
|
2075
|
+
{
|
|
2076
|
+
label: "是",
|
|
2077
|
+
value: !0
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
label: "否",
|
|
2081
|
+
value: !1
|
|
2082
|
+
}
|
|
2083
|
+
],
|
|
2084
|
+
value: !1
|
|
2085
|
+
}
|
|
2086
|
+
]), R = Q([
|
|
2087
|
+
{
|
|
2088
|
+
label: "",
|
|
2089
|
+
prop: "index",
|
|
2090
|
+
type: "input",
|
|
2091
|
+
value: "",
|
|
2092
|
+
isFormColHidden: !0
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
label: "标题",
|
|
2096
|
+
prop: "title",
|
|
2097
|
+
type: "input",
|
|
2098
|
+
value: ""
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
label: "描述",
|
|
2102
|
+
prop: "description",
|
|
2103
|
+
type: "input",
|
|
2104
|
+
value: ""
|
|
2105
|
+
}
|
|
2106
|
+
]), L = Q([
|
|
2107
|
+
{
|
|
2108
|
+
label: "取消",
|
|
2109
|
+
background: "#c0c4cc"
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
label: "确认",
|
|
2113
|
+
background: "#436aaf"
|
|
2114
|
+
}
|
|
2115
|
+
]), D = oa({
|
|
2116
|
+
visible: !1,
|
|
2117
|
+
width: "40%",
|
|
2118
|
+
title: "步骤条"
|
|
2119
|
+
}), N = Q("create"), H = Q({}), B = Q([]), ue = (A) => {
|
|
2120
|
+
var x;
|
|
2121
|
+
H.value = A, s("change", (x = re()) == null ? void 0 : x.compData);
|
|
2122
|
+
}, ee = (A, x) => {
|
|
2123
|
+
var pe, d;
|
|
2124
|
+
switch (A) {
|
|
2125
|
+
case "create":
|
|
2126
|
+
(pe = R.value) == null || pe.forEach((v) => {
|
|
2127
|
+
v.value = "";
|
|
2128
|
+
}), N.value = "create", D.visible = !0;
|
|
2129
|
+
break;
|
|
2130
|
+
case "update":
|
|
2131
|
+
(d = R.value) == null || d.forEach((v) => {
|
|
2132
|
+
v.value = x[v == null ? void 0 : v.prop];
|
|
2133
|
+
}), N.value = "update", D.visible = !0;
|
|
2134
|
+
break;
|
|
2135
|
+
case "delete":
|
|
2136
|
+
B.value.splice(x, 1), N.value = "delete";
|
|
2137
|
+
break;
|
|
2138
|
+
}
|
|
2139
|
+
}, ye = (A) => {
|
|
2140
|
+
var x, pe, d;
|
|
2141
|
+
if ((A == null ? void 0 : A.buttonName) === "确认") {
|
|
2142
|
+
const v = l(A == null ? void 0 : A.content);
|
|
2143
|
+
switch (Object.keys(v).forEach((m) => {
|
|
2144
|
+
v[m] === "" && delete v[m];
|
|
2145
|
+
}), N.value) {
|
|
2146
|
+
case "create":
|
|
2147
|
+
B.value.push({
|
|
2148
|
+
...v,
|
|
2149
|
+
index: ((x = B.value) == null ? void 0 : x.length) + 1
|
|
2150
|
+
});
|
|
2151
|
+
break;
|
|
2152
|
+
case "update":
|
|
2153
|
+
B.value = (pe = B.value) == null ? void 0 : pe.map((m) => m.index === (v == null ? void 0 : v.index) ? {
|
|
2154
|
+
...m,
|
|
2155
|
+
title: v == null ? void 0 : v.title,
|
|
2156
|
+
description: v == null ? void 0 : v.description
|
|
2157
|
+
} : m);
|
|
2158
|
+
break;
|
|
2159
|
+
}
|
|
2160
|
+
s("change", (d = re()) == null ? void 0 : d.compData), D.visible = !1;
|
|
2161
|
+
} else
|
|
2162
|
+
D.visible = !1;
|
|
2163
|
+
}, re = () => ({
|
|
2164
|
+
comp: "Step",
|
|
2165
|
+
compData: [
|
|
2166
|
+
{
|
|
2167
|
+
key: "stepList",
|
|
2168
|
+
contents: B.value
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
key: "stepConfig",
|
|
2172
|
+
contents: H.value
|
|
2173
|
+
}
|
|
2174
|
+
]
|
|
2175
|
+
}), me = () => {
|
|
2176
|
+
D.visible = !1;
|
|
2177
|
+
};
|
|
2178
|
+
return ze(() => n == null ? void 0 : n.itemContents, (A) => {
|
|
2179
|
+
var x, pe;
|
|
2180
|
+
A && (H.value = ((x = A == null ? void 0 : A.find((d) => d.key === "stepConfig")) == null ? void 0 : x.contents) ?? {}, B.value = ((pe = A == null ? void 0 : A.find((d) => d.key === "stepList")) == null ? void 0 : pe.contents) ?? []);
|
|
2181
|
+
}, { immediate: !0 }), (A, x) => {
|
|
2182
|
+
const pe = Le("svg-icon"), d = Le("el-button");
|
|
2183
|
+
return oe(), ge(Pe, null, [
|
|
2184
|
+
S("div", null, [
|
|
2185
|
+
S("div", Hi, [
|
|
2186
|
+
x[2] || (x[2] = S("h4", { class: "module-title" }, "内容", -1)),
|
|
2187
|
+
ae(d, {
|
|
2188
|
+
class: "module-icon",
|
|
2189
|
+
id: "themeButton",
|
|
2190
|
+
onClick: x[0] || (x[0] = (v) => ee("create"))
|
|
2191
|
+
}, {
|
|
2192
|
+
icon: ve(() => [
|
|
2193
|
+
ae(pe, {
|
|
2194
|
+
name: "Plus",
|
|
2195
|
+
class: "icon-size"
|
|
2196
|
+
})
|
|
2197
|
+
]),
|
|
2198
|
+
default: ve(() => [
|
|
2199
|
+
x[1] || (x[1] = Fe(" 新增 "))
|
|
2200
|
+
]),
|
|
2201
|
+
_: 1,
|
|
2202
|
+
__: [1]
|
|
2203
|
+
})
|
|
2204
|
+
]),
|
|
2205
|
+
S("div", qi, [
|
|
2206
|
+
(oe(!0), ge(Pe, null, Ue(B.value, (v, m) => (oe(), ge("div", {
|
|
2207
|
+
class: "module-data-item",
|
|
2208
|
+
key: m
|
|
2209
|
+
}, [
|
|
2210
|
+
S("span", null, De(v == null ? void 0 : v.title), 1),
|
|
2211
|
+
S("div", null, [
|
|
2212
|
+
ae(d, {
|
|
2213
|
+
type: "primary",
|
|
2214
|
+
size: "small",
|
|
2215
|
+
onClick: (g) => ee("update", { ...v, index: m + 1 })
|
|
2216
|
+
}, {
|
|
2217
|
+
default: ve(() => x[3] || (x[3] = [
|
|
2218
|
+
Fe("修改")
|
|
2219
|
+
])),
|
|
2220
|
+
_: 2,
|
|
2221
|
+
__: [3]
|
|
2222
|
+
}, 1032, ["onClick"]),
|
|
2223
|
+
ae(d, {
|
|
2224
|
+
type: "danger",
|
|
2225
|
+
size: "small",
|
|
2226
|
+
onClick: (g) => ee("delete", m)
|
|
2227
|
+
}, {
|
|
2228
|
+
default: ve(() => x[4] || (x[4] = [
|
|
2229
|
+
Fe("删除")
|
|
2230
|
+
])),
|
|
2231
|
+
_: 2,
|
|
2232
|
+
__: [4]
|
|
2233
|
+
}, 1032, ["onClick"])
|
|
2234
|
+
])
|
|
2235
|
+
]))), 128))
|
|
2236
|
+
]),
|
|
2237
|
+
S("div", Qi, [
|
|
2238
|
+
x[5] || (x[5] = S("div", { class: "module-title" }, "布局", -1)),
|
|
2239
|
+
ae(Qe, {
|
|
2240
|
+
rowContents: p.value,
|
|
2241
|
+
onChange: ue
|
|
2242
|
+
}, null, 8, ["rowContents"])
|
|
2243
|
+
])
|
|
2244
|
+
]),
|
|
2245
|
+
ae(Xe, {
|
|
2246
|
+
visible: D.visible,
|
|
2247
|
+
title: D.title,
|
|
2248
|
+
onBeforeDestroy: me,
|
|
2249
|
+
width: D.width
|
|
2250
|
+
}, {
|
|
2251
|
+
default: ve(() => [
|
|
2252
|
+
S("div", Xi, [
|
|
2253
|
+
(oe(), Oe(Qe, {
|
|
2254
|
+
rowContents: R.value,
|
|
2255
|
+
key: R.value,
|
|
2256
|
+
isEnableWrap: !1,
|
|
2257
|
+
isButtonRow: !1,
|
|
2258
|
+
isStartJustify: !1,
|
|
2259
|
+
buttonValue: L.value,
|
|
2260
|
+
onOnButtonClick: ye
|
|
2261
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2262
|
+
])
|
|
2263
|
+
]),
|
|
2264
|
+
_: 1
|
|
2265
|
+
}, 8, ["visible", "title", "width"])
|
|
2266
|
+
], 64);
|
|
2267
|
+
};
|
|
2268
|
+
}
|
|
2269
|
+
}), Zi = /* @__PURE__ */ je(Yi, [["__scopeId", "data-v-7dbd17f2"]]), en = { class: "step-module content" }, ln = { class: "module-data" }, an = { class: "step-module layout" }, sn = { class: "form-content" }, nn = /* @__PURE__ */ Dl({
|
|
2270
|
+
__name: "operate",
|
|
2271
|
+
props: {
|
|
2272
|
+
itemContents: {
|
|
2273
|
+
type: Array,
|
|
2274
|
+
default: () => []
|
|
2275
|
+
},
|
|
2276
|
+
originalItemContents: {
|
|
2277
|
+
type: Array,
|
|
2278
|
+
default: () => []
|
|
2279
|
+
}
|
|
2280
|
+
},
|
|
2281
|
+
emits: ["change"],
|
|
2282
|
+
setup(u, { emit: y }) {
|
|
2283
|
+
const n = u, s = y, p = Q("create"), R = Q({}), L = Q([]), D = Q([
|
|
2284
|
+
{
|
|
2285
|
+
label: "方向:",
|
|
2286
|
+
prop: "placement",
|
|
2287
|
+
type: "radio",
|
|
2288
|
+
contents: [
|
|
2289
|
+
{
|
|
2290
|
+
label: "底部",
|
|
2291
|
+
value: "bottom"
|
|
2292
|
+
},
|
|
2293
|
+
{
|
|
2294
|
+
label: "顶部",
|
|
2295
|
+
value: "top"
|
|
2296
|
+
}
|
|
2297
|
+
],
|
|
2298
|
+
value: "bottom"
|
|
2299
|
+
},
|
|
2300
|
+
{
|
|
2301
|
+
label: "节点类型:",
|
|
2302
|
+
prop: "type",
|
|
2303
|
+
type: "select",
|
|
2304
|
+
contents: [
|
|
2305
|
+
{
|
|
2306
|
+
label: "primary",
|
|
2307
|
+
value: "primary"
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
label: "success",
|
|
2311
|
+
value: "success"
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
label: "warning",
|
|
2315
|
+
value: "warning"
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
label: "danger",
|
|
2319
|
+
value: "danger"
|
|
2320
|
+
},
|
|
2321
|
+
{
|
|
2322
|
+
label: "info",
|
|
2323
|
+
value: "info"
|
|
2324
|
+
}
|
|
2325
|
+
],
|
|
2326
|
+
value: "primary"
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
label: "颜色:",
|
|
2330
|
+
prop: "color",
|
|
2331
|
+
type: "color",
|
|
2332
|
+
value: ""
|
|
2333
|
+
},
|
|
2334
|
+
{
|
|
2335
|
+
label: "尺寸:",
|
|
2336
|
+
prop: "size",
|
|
2337
|
+
type: "radio",
|
|
2338
|
+
contents: [
|
|
2339
|
+
{
|
|
2340
|
+
label: "normal",
|
|
2341
|
+
value: "normal"
|
|
2342
|
+
},
|
|
2343
|
+
{
|
|
2344
|
+
label: "large",
|
|
2345
|
+
value: "large"
|
|
2346
|
+
}
|
|
2347
|
+
],
|
|
2348
|
+
value: "normal"
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
label: "是否空心",
|
|
2352
|
+
prop: "isHollow",
|
|
2353
|
+
type: "RADIO",
|
|
2354
|
+
contents: [
|
|
2355
|
+
{
|
|
2356
|
+
label: "是",
|
|
2357
|
+
value: !0
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
label: "否",
|
|
2361
|
+
value: !1
|
|
2362
|
+
}
|
|
2363
|
+
],
|
|
2364
|
+
value: !0
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
label: "是否居中",
|
|
2368
|
+
prop: "isCenter",
|
|
2369
|
+
type: "RADIO",
|
|
2370
|
+
contents: [
|
|
2371
|
+
{
|
|
2372
|
+
label: "是",
|
|
2373
|
+
value: !0
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
label: "否",
|
|
2377
|
+
value: !1
|
|
2378
|
+
}
|
|
2379
|
+
],
|
|
2380
|
+
value: !0
|
|
2381
|
+
}
|
|
2382
|
+
]), N = Q([
|
|
2383
|
+
{
|
|
2384
|
+
label: "",
|
|
2385
|
+
prop: "index",
|
|
2386
|
+
type: "input",
|
|
2387
|
+
value: "",
|
|
2388
|
+
isFormColHidden: !0
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
label: "内容",
|
|
2392
|
+
prop: "content",
|
|
2393
|
+
type: "input",
|
|
2394
|
+
value: ""
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
label: "时间戳",
|
|
2398
|
+
prop: "timestamp",
|
|
2399
|
+
type: "datetime",
|
|
2400
|
+
value: ""
|
|
2401
|
+
}
|
|
2402
|
+
]), H = Q([
|
|
2403
|
+
{
|
|
2404
|
+
label: "取消",
|
|
2405
|
+
background: "#c0c4cc"
|
|
2406
|
+
},
|
|
2407
|
+
{
|
|
2408
|
+
label: "确认",
|
|
2409
|
+
background: "#436aaf"
|
|
2410
|
+
}
|
|
2411
|
+
]), B = oa({
|
|
2412
|
+
visible: !1,
|
|
2413
|
+
width: "40%",
|
|
2414
|
+
title: "时间线"
|
|
2415
|
+
}), ue = (A) => {
|
|
2416
|
+
var x;
|
|
2417
|
+
R.value = A, console.log(1212, A), s("change", (x = re()) == null ? void 0 : x.compData);
|
|
2418
|
+
}, ee = (A, x) => {
|
|
2419
|
+
var pe, d;
|
|
2420
|
+
switch (A) {
|
|
2421
|
+
case "create":
|
|
2422
|
+
(pe = N.value) == null || pe.forEach((v) => {
|
|
2423
|
+
v.value = "";
|
|
2424
|
+
}), p.value = "create", B.visible = !0;
|
|
2425
|
+
break;
|
|
2426
|
+
case "update":
|
|
2427
|
+
(d = N.value) == null || d.forEach((v) => {
|
|
2428
|
+
v.value = x[v == null ? void 0 : v.prop];
|
|
2429
|
+
}), p.value = "update", B.visible = !0;
|
|
2430
|
+
break;
|
|
2431
|
+
case "delete":
|
|
2432
|
+
L.value.splice(x, 1), p.value = "delete";
|
|
2433
|
+
break;
|
|
2434
|
+
}
|
|
2435
|
+
}, ye = (A) => {
|
|
2436
|
+
var x, pe, d, v;
|
|
2437
|
+
if ((A == null ? void 0 : A.buttonName) === "确认") {
|
|
2438
|
+
const m = l(A == null ? void 0 : A.content);
|
|
2439
|
+
switch (Object.keys(m).forEach((g) => {
|
|
2440
|
+
m[g] === "" && delete m[g];
|
|
2441
|
+
}), p.value) {
|
|
2442
|
+
case "create":
|
|
2443
|
+
console.log(1335, L.value, m), (pe = L.value) == null || pe.push({
|
|
2444
|
+
...m,
|
|
2445
|
+
index: ((x = L.value) == null ? void 0 : x.length) + 1
|
|
2446
|
+
});
|
|
2447
|
+
break;
|
|
2448
|
+
case "update":
|
|
2449
|
+
L.value = (d = L.value) == null ? void 0 : d.map((g) => g.index === (m == null ? void 0 : m.index) ? {
|
|
2450
|
+
...g,
|
|
2451
|
+
content: m == null ? void 0 : m.content,
|
|
2452
|
+
timestamp: m == null ? void 0 : m.timestamp
|
|
2453
|
+
} : g);
|
|
2454
|
+
break;
|
|
2455
|
+
}
|
|
2456
|
+
s("change", (v = re()) == null ? void 0 : v.compData), B.visible = !1;
|
|
2457
|
+
} else
|
|
2458
|
+
B.visible = !1;
|
|
2459
|
+
}, re = () => ({
|
|
2460
|
+
comp: "TimeLine",
|
|
2461
|
+
compData: [
|
|
2462
|
+
{
|
|
2463
|
+
key: "timeLineList",
|
|
2464
|
+
contents: L.value
|
|
2465
|
+
},
|
|
2466
|
+
{
|
|
2467
|
+
key: "timeLineConfig",
|
|
2468
|
+
contents: R.value
|
|
2469
|
+
}
|
|
2470
|
+
]
|
|
2471
|
+
}), me = () => {
|
|
2472
|
+
B.visible = !1;
|
|
2473
|
+
};
|
|
2474
|
+
return ze(() => n == null ? void 0 : n.itemContents, (A) => {
|
|
2475
|
+
var x, pe;
|
|
2476
|
+
A && (R.value = ((x = A == null ? void 0 : A.find((d) => d.key === "timeLineConfig")) == null ? void 0 : x.contents) ?? {}, L.value = ((pe = A == null ? void 0 : A.find((d) => d.key === "timeLineList")) == null ? void 0 : pe.contents) ?? []);
|
|
2477
|
+
}, { immediate: !0 }), (A, x) => {
|
|
2478
|
+
const pe = Le("svg-icon"), d = Le("el-button");
|
|
2479
|
+
return oe(), ge(Pe, null, [
|
|
2480
|
+
S("div", null, [
|
|
2481
|
+
S("div", en, [
|
|
2482
|
+
x[2] || (x[2] = S("h4", { class: "module-title" }, "内容", -1)),
|
|
2483
|
+
ae(d, {
|
|
2484
|
+
class: "module-icon",
|
|
2485
|
+
id: "themeButton",
|
|
2486
|
+
onClick: x[0] || (x[0] = (v) => ee("create"))
|
|
2487
|
+
}, {
|
|
2488
|
+
icon: ve(() => [
|
|
2489
|
+
ae(pe, {
|
|
2490
|
+
name: "Plus",
|
|
2491
|
+
class: "icon-size"
|
|
2492
|
+
})
|
|
2493
|
+
]),
|
|
2494
|
+
default: ve(() => [
|
|
2495
|
+
x[1] || (x[1] = Fe(" 新增 "))
|
|
2496
|
+
]),
|
|
2497
|
+
_: 1,
|
|
2498
|
+
__: [1]
|
|
2499
|
+
})
|
|
2500
|
+
]),
|
|
2501
|
+
S("div", ln, [
|
|
2502
|
+
(oe(!0), ge(Pe, null, Ue(L.value, (v, m) => (oe(), ge("div", {
|
|
2503
|
+
class: "module-data-item",
|
|
2504
|
+
key: m
|
|
2505
|
+
}, [
|
|
2506
|
+
S("span", null, De(v == null ? void 0 : v.content), 1),
|
|
2507
|
+
S("div", null, [
|
|
2508
|
+
ae(d, {
|
|
2509
|
+
type: "primary",
|
|
2510
|
+
size: "small",
|
|
2511
|
+
onClick: (g) => ee("update", { ...v, index: m + 1 })
|
|
2512
|
+
}, {
|
|
2513
|
+
default: ve(() => x[3] || (x[3] = [
|
|
2514
|
+
Fe("修改")
|
|
2515
|
+
])),
|
|
2516
|
+
_: 2,
|
|
2517
|
+
__: [3]
|
|
2518
|
+
}, 1032, ["onClick"]),
|
|
2519
|
+
ae(d, {
|
|
2520
|
+
type: "danger",
|
|
2521
|
+
size: "small",
|
|
2522
|
+
onClick: (g) => ee("delete", m)
|
|
2523
|
+
}, {
|
|
2524
|
+
default: ve(() => x[4] || (x[4] = [
|
|
2525
|
+
Fe("删除")
|
|
2526
|
+
])),
|
|
2527
|
+
_: 2,
|
|
2528
|
+
__: [4]
|
|
2529
|
+
}, 1032, ["onClick"])
|
|
2530
|
+
])
|
|
2531
|
+
]))), 128))
|
|
2532
|
+
]),
|
|
2533
|
+
S("div", an, [
|
|
2534
|
+
x[5] || (x[5] = S("div", { class: "module-title" }, "布局", -1)),
|
|
2535
|
+
ae(Qe, {
|
|
2536
|
+
rowContents: D.value,
|
|
2537
|
+
onChange: ue
|
|
2538
|
+
}, null, 8, ["rowContents"])
|
|
2539
|
+
])
|
|
2540
|
+
]),
|
|
2541
|
+
ae(Xe, {
|
|
2542
|
+
visible: B.visible,
|
|
2543
|
+
title: B.title,
|
|
2544
|
+
onBeforeDestroy: me,
|
|
2545
|
+
width: B.width
|
|
2546
|
+
}, {
|
|
2547
|
+
default: ve(() => [
|
|
2548
|
+
S("div", sn, [
|
|
2549
|
+
(oe(), Oe(Qe, {
|
|
2550
|
+
rowContents: N.value,
|
|
2551
|
+
key: N.value,
|
|
2552
|
+
isEnableWrap: !1,
|
|
2553
|
+
isButtonRow: !1,
|
|
2554
|
+
isStartJustify: !1,
|
|
2555
|
+
buttonValue: H.value,
|
|
2556
|
+
onOnButtonClick: ye
|
|
2557
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2558
|
+
])
|
|
2559
|
+
]),
|
|
2560
|
+
_: 1
|
|
2561
|
+
}, 8, ["visible", "title", "width"])
|
|
2562
|
+
], 64);
|
|
2563
|
+
};
|
|
2564
|
+
}
|
|
2565
|
+
}), on = /* @__PURE__ */ je(nn, [["__scopeId", "data-v-f6b5d4fc"]]), un = {};
|
|
2566
|
+
function rn(u, y) {
|
|
2567
|
+
return oe(), ge("div");
|
|
2568
|
+
}
|
|
2569
|
+
const cn = /* @__PURE__ */ je(un, [["render", rn]]), tn = { class: "extra-content" }, dn = { key: 0 }, pn = { key: 1 }, fn = { class: "dialog-footer" }, hn = {
|
|
2570
|
+
__name: "index",
|
|
2571
|
+
props: {
|
|
2572
|
+
itemData: {
|
|
2573
|
+
type: Array,
|
|
2574
|
+
default: () => []
|
|
2575
|
+
},
|
|
2576
|
+
childItemData: {
|
|
2577
|
+
type: Array,
|
|
2578
|
+
default: () => []
|
|
2579
|
+
},
|
|
2580
|
+
index: Number,
|
|
2581
|
+
changedContent: {
|
|
2582
|
+
type: Object,
|
|
2583
|
+
default: () => {
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
},
|
|
2587
|
+
emits: ["change"],
|
|
2588
|
+
setup(u, { emit: y }) {
|
|
2589
|
+
const n = u, s = Q(0), p = Q(), R = Q(), L = y, D = Q(!1), N = Q({}), H = Q({}), B = Q();
|
|
2590
|
+
ze(
|
|
2591
|
+
() => [n.itemData],
|
|
2592
|
+
() => {
|
|
2593
|
+
var v;
|
|
2594
|
+
const d = l(n.itemData);
|
|
2595
|
+
p.value = (v = l(d)) == null ? void 0 : v.map((m) => {
|
|
2596
|
+
var g;
|
|
2597
|
+
if (m.key === "extra") {
|
|
2598
|
+
let le = [];
|
|
2599
|
+
(g = m.value) == null || g.forEach((he) => {
|
|
2600
|
+
var we;
|
|
2601
|
+
le.push((we = Object.values(he)) == null ? void 0 : we[0]);
|
|
2602
|
+
}), m.value = le;
|
|
2603
|
+
}
|
|
2604
|
+
return m;
|
|
2605
|
+
});
|
|
2606
|
+
},
|
|
2607
|
+
{ deep: !0, immediate: !0 }
|
|
2608
|
+
);
|
|
2609
|
+
const ue = (d, v, m, g) => {
|
|
2610
|
+
var he;
|
|
2611
|
+
let le = {};
|
|
2612
|
+
((he = d == null ? void 0 : d[0]) == null ? void 0 : he.contents) === "详情" && (D.value = !0, le[v] = d, R.value = d == null ? void 0 : d.filter((we) => (we == null ? void 0 : we.key) !== "tableContentName"), N.value = le, H.value = m, B.value = g.id);
|
|
2613
|
+
}, ee = (d) => {
|
|
2614
|
+
var we, de, _e, k;
|
|
2615
|
+
const v = (de = (we = Object.values(l(N.value))) == null ? void 0 : we[0]) == null ? void 0 : de.filter((a) => (a == null ? void 0 : a.key) === "tableContentName"), m = (k = (_e = Object.values(l(N.value))) == null ? void 0 : _e[0]) == null ? void 0 : k.filter((a) => (a == null ? void 0 : a.key) !== "tableContentName"), g = m == null ? void 0 : m.map((a, h) => {
|
|
2616
|
+
var w;
|
|
2617
|
+
return h === d.index && (a == null ? void 0 : a.comp) === "Table" && (a.compData = (w = a.compData) == null ? void 0 : w.map((t) => {
|
|
2618
|
+
var q, ce;
|
|
2619
|
+
return (t == null ? void 0 : t.key) === "tableContents" && (t.contents = (ce = (q = d.content) == null ? void 0 : q.map((fe) => {
|
|
2620
|
+
let c = {};
|
|
2621
|
+
for (let E in fe)
|
|
2622
|
+
E !== "id" && (c[E] = fe[E]);
|
|
2623
|
+
return c;
|
|
2624
|
+
})) == null ? void 0 : ce.map((fe) => Object.values(fe))), t;
|
|
2625
|
+
})), a;
|
|
2626
|
+
});
|
|
2627
|
+
g.unshift(v == null ? void 0 : v[0]);
|
|
2628
|
+
let le = l(N.value), he = {};
|
|
2629
|
+
for (let a in le)
|
|
2630
|
+
he[a] = g;
|
|
2631
|
+
N.value = he;
|
|
2632
|
+
}, ye = () => {
|
|
2633
|
+
D.value = !1, N.value = {}, H.value = {}, B.value = void 0, s.value++;
|
|
2634
|
+
}, re = (d) => {
|
|
2635
|
+
var we, de, _e, k;
|
|
2636
|
+
const v = (de = (we = Object.values(l(N.value))) == null ? void 0 : we[0]) == null ? void 0 : de.filter((a) => (a == null ? void 0 : a.key) === "tableContentName"), m = (k = (_e = Object.values(l(N.value))) == null ? void 0 : _e[0]) == null ? void 0 : k.filter((a) => (a == null ? void 0 : a.key) !== "tableContentName"), g = m == null ? void 0 : m.map((a, h) => (h === d.index && (a.compData = d.contents), a));
|
|
2637
|
+
g.unshift(v == null ? void 0 : v[0]);
|
|
2638
|
+
let le = l(N.value), he = {};
|
|
2639
|
+
for (let a in le)
|
|
2640
|
+
he[a] = g;
|
|
2641
|
+
N.value = he;
|
|
2642
|
+
}, me = () => {
|
|
2643
|
+
var v, m;
|
|
2644
|
+
let d = {};
|
|
2645
|
+
for (let g in H.value)
|
|
2646
|
+
g === ((v = Object.keys(N.value)) == null ? void 0 : v[0]) ? d[g] = (m = Object.values(N.value)) == null ? void 0 : m[0] : d[g] = H.value[g];
|
|
2647
|
+
L("change", {
|
|
2648
|
+
buttonName: "编辑",
|
|
2649
|
+
index: B.value,
|
|
2650
|
+
singleContent: d
|
|
2651
|
+
}, "methodData"), D.value = !1, N.value = {}, H.value = {}, B.value = void 0;
|
|
2652
|
+
}, A = () => {
|
|
2653
|
+
D.value = !1, N.value = {}, H.value = {}, B.value = void 0;
|
|
2654
|
+
}, x = (d) => {
|
|
2655
|
+
L("change", d, "methodData");
|
|
2656
|
+
}, pe = (d) => ta(d);
|
|
2657
|
+
return (d, v) => {
|
|
2658
|
+
const m = Le("el-button");
|
|
2659
|
+
return oe(), ge("div", tn, [
|
|
2660
|
+
(oe(!0), ge(Pe, null, Ue(p.value, (g, le) => (oe(), ge("div", { key: s.value }, [
|
|
2661
|
+
(g == null ? void 0 : g.key) === "extra" ? (oe(), ge("div", dn)) : (oe(), ge("div", pn, [
|
|
2662
|
+
(oe(), Oe(Ml(pe(g.comp)), {
|
|
2663
|
+
itemData: g == null ? void 0 : g.compData,
|
|
2664
|
+
childItemData: g == null ? void 0 : g.itemChildData,
|
|
2665
|
+
key: le,
|
|
2666
|
+
index: (g == null ? void 0 : g.id) ?? le,
|
|
2667
|
+
onContentClick: ue,
|
|
2668
|
+
onChange: x
|
|
2669
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2670
|
+
]))
|
|
2671
|
+
]))), 128)),
|
|
2672
|
+
ae(Xe, {
|
|
2673
|
+
visible: D.value,
|
|
2674
|
+
onBeforeDestroy: A
|
|
2675
|
+
}, {
|
|
2676
|
+
default: ve(() => [
|
|
2677
|
+
(oe(!0), ge(Pe, null, Ue(R.value, (g, le) => (oe(), ge("div", {
|
|
2678
|
+
key: le,
|
|
2679
|
+
class: "extra-dialog"
|
|
2680
|
+
}, [
|
|
2681
|
+
(oe(), Oe(Ml(pe(g.comp)), {
|
|
2682
|
+
itemData: g == null ? void 0 : g.compData,
|
|
2683
|
+
onChange: ee,
|
|
2684
|
+
childItemData: g == null ? void 0 : g.itemChildData,
|
|
2685
|
+
key: le,
|
|
2686
|
+
onContentChange: re,
|
|
2687
|
+
index: (g == null ? void 0 : g.id) ?? le,
|
|
2688
|
+
class: "extra-component"
|
|
2689
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2690
|
+
]))), 128))
|
|
2691
|
+
]),
|
|
2692
|
+
footer: ve(() => [
|
|
2693
|
+
S("div", fn, [
|
|
2694
|
+
ae(m, {
|
|
2695
|
+
class: "cancel-button footer-button",
|
|
2696
|
+
onClick: ye,
|
|
2697
|
+
id: "themeBorderButton"
|
|
2698
|
+
}, {
|
|
2699
|
+
default: ve(() => v[0] || (v[0] = [
|
|
2700
|
+
Fe(De("取消"))
|
|
2701
|
+
])),
|
|
2702
|
+
_: 1,
|
|
2703
|
+
__: [0]
|
|
2704
|
+
}),
|
|
2705
|
+
ae(m, {
|
|
2706
|
+
class: "confirm-button footer-button",
|
|
2707
|
+
onClick: me,
|
|
2708
|
+
id: "themeButton"
|
|
2709
|
+
}, {
|
|
2710
|
+
default: ve(() => v[1] || (v[1] = [
|
|
2711
|
+
Fe(De("确认"))
|
|
2712
|
+
])),
|
|
2713
|
+
_: 1,
|
|
2714
|
+
__: [1]
|
|
2715
|
+
})
|
|
2716
|
+
])
|
|
2717
|
+
]),
|
|
2718
|
+
_: 1
|
|
2719
|
+
}, 8, ["visible"])
|
|
2720
|
+
]);
|
|
2721
|
+
};
|
|
2722
|
+
}
|
|
2723
|
+
}, vn = /* @__PURE__ */ je(hn, [["__scopeId", "data-v-2d9c5ab2"]]);
|
|
2724
|
+
let Jl = "$R";
|
|
2725
|
+
const la = (u) => {
|
|
2726
|
+
var D, N, H, B, ue, ee, ye, re, me, A, x, pe, d, v, m, g, le, he, we, de, _e, k, a, h;
|
|
2727
|
+
const y = ia(u) ? (D = cl(l(u))) == null ? void 0 : D[0] : "[]", n = ia(u) ? "[" + ((N = cl(l(u))) == null ? void 0 : N[2]) + "]" : "[" + u + "]";
|
|
2728
|
+
let s = [], p = [], R = "";
|
|
2729
|
+
const L = (B = (H = n == null ? void 0 : n.trim()) == null ? void 0 : H.slice(1, (n == null ? void 0 : n.trim().length) - 1)) == null ? void 0 : B.replaceAll("'", '"');
|
|
2730
|
+
if (rl(L) ? s = JSON.parse(L) : rl((ye = (ee = (ue = L == null ? void 0 : L.split("}")) == null ? void 0 : ue[0]) == null ? void 0 : ee.replace(":", "")) == null ? void 0 : ye.replaceAll("\\", "\\\\")) && (s = JSON.parse((A = (me = (re = L == null ? void 0 : L.split("}")) == null ? void 0 : re[0]) == null ? void 0 : me.replace(":", "")) == null ? void 0 : A.replaceAll("\\", "\\\\"))), s = s != null && s.every((w) => Array.isArray(w) && w.every((t) => Array.isArray(t))) ? s == null ? void 0 : s[0] : s, !(y != null && y.includes("(")))
|
|
2731
|
+
!y.includes("{") && rl(y == null ? void 0 : y.replaceAll("'", '"')) ? p = JSON.parse(y == null ? void 0 : y.replaceAll("'", '"')) : rl((pe = (x = y == null ? void 0 : y.split("{")) == null ? void 0 : x[1]) == null ? void 0 : pe.replaceAll("'", '"')) && (p = JSON.parse((v = (d = y == null ? void 0 : y.split("{")) == null ? void 0 : d[1]) == null ? void 0 : v.replaceAll("'", '"')));
|
|
2732
|
+
else {
|
|
2733
|
+
let w = [];
|
|
2734
|
+
if (((g = (m = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : m.split(",")) == null ? void 0 : g.length) > 1)
|
|
2735
|
+
(he = (le = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : le.split(",")) == null || he.forEach((t) => {
|
|
2736
|
+
var q, ce, fe, c, E, P, J, ne, z, T, O, _, X, Y, M, U, se, I, o, Z, j, e, i, r, f, b;
|
|
2737
|
+
if (!(t != null && t.includes("(")))
|
|
2738
|
+
w.push(t == null ? void 0 : t.replaceAll("'", ""));
|
|
2739
|
+
else if (t != null && t.includes("[")) {
|
|
2740
|
+
let C;
|
|
2741
|
+
const te = (O = (T = l(t)) == null ? void 0 : T.replaceAll("{", "")) == null ? void 0 : O.replaceAll("}", "");
|
|
2742
|
+
C = (X = (_ = te == null ? void 0 : te.replace("[", Jl)) == null ? void 0 : _.split(Jl)) == null ? void 0 : X[1];
|
|
2743
|
+
const V = C.lastIndexOf("]"), W = C.substring(0, V) + Jl + C.substring(V + 1);
|
|
2744
|
+
C = (M = (Y = W == null ? void 0 : W.split(Jl)) == null ? void 0 : Y[0]) == null ? void 0 : M.replaceAll("'", ""), C = (C == null ? void 0 : C[0]) === ":" ? '""' + C : C, t != null && t.includes("#") && (C != null && C.includes("[") ? C = ((se = (U = t == null ? void 0 : t.split("#")) == null ? void 0 : U[0]) == null ? void 0 : se.replaceAll("'", "")) + "#(" + C + ")" : C = ((o = (I = t == null ? void 0 : t.split("#")) == null ? void 0 : I[0]) == null ? void 0 : o.replaceAll("'", "")) + "#" + C);
|
|
2745
|
+
let G = (r = (i = (e = (Z = l(te)) == null ? void 0 : Z.split("(")) == null ? void 0 : e[((j = te == null ? void 0 : te.split("(")) == null ? void 0 : j.length) - 1]) == null ? void 0 : i.split(")")) == null ? void 0 : r[0].replaceAll(":", "/").replaceAll("'", "");
|
|
2746
|
+
C.includes(":") && ((b = G == null ? void 0 : G.split("/")) == null ? void 0 : b[((f = G == null ? void 0 : G.split("/")) == null ? void 0 : f.length) - 1]) !== "" ? C = C + "[" + G + "]" : C = C + "[" + G + "]()", w.push(C == null ? void 0 : C.replaceAll('"', "'"));
|
|
2747
|
+
} else {
|
|
2748
|
+
let C = (E = (c = (fe = (ce = t == null ? void 0 : t.split(":")) == null ? void 0 : ce[((q = t == null ? void 0 : t.split(":")) == null ? void 0 : q.length) - 1]) == null ? void 0 : fe.split(")")) == null ? void 0 : c[0]) == null ? void 0 : E.replaceAll("'", "");
|
|
2749
|
+
C = C + "[" + ((z = (ne = (J = t == null ? void 0 : t.split("(")) == null ? void 0 : J[((P = t == null ? void 0 : t.split("(")) == null ? void 0 : P.length) - 1]) == null ? void 0 : ne.split(")")) == null ? void 0 : z[0].replaceAll(":", "/").replaceAll("'", "")) + "]", w.push(C);
|
|
2750
|
+
}
|
|
2751
|
+
}), p = w;
|
|
2752
|
+
else {
|
|
2753
|
+
const t = ((k = (_e = (de = (we = y == null ? void 0 : y.slice(1, y == null ? void 0 : y.length)) == null ? void 0 : we.split("(")) == null ? void 0 : de[1]) == null ? void 0 : _e.split(")")) == null ? void 0 : k[0]).replaceAll("{", "").replaceAll("}", "").replaceAll(":", "/").replaceAll("'", "");
|
|
2754
|
+
R = R + t + "[" + ((h = (a = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : a.split("[")) == null ? void 0 : h[1]);
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
return {
|
|
2758
|
+
tableColumns: p,
|
|
2759
|
+
tableContents: s != null && s.every((w) => Array.isArray(w)) ? s : [s],
|
|
2760
|
+
tablePath: R
|
|
2761
|
+
};
|
|
2762
|
+
};
|
|
2763
|
+
let Ie = "$R";
|
|
2764
|
+
const mn = (u) => /^'[^']+':\{.*\}$/.exec(l(u)), yn = (u) => /^'[^']+':\[\[.*\]\]$/.exec(l(u)), bn = (u) => /^'([^']+)':.*$/.exec(l(u)), cl = (u) => {
|
|
2765
|
+
let y = u;
|
|
2766
|
+
const n = [];
|
|
2767
|
+
let s = "";
|
|
2768
|
+
for (const p of y)
|
|
2769
|
+
p.includes("{") || s.includes("{") || p.includes("[") || s.includes("[") || p.includes("【") || s.includes("【") || p.includes("(") || s.includes("(") || p.includes("(") || s.includes("(") || p.includes("/*") || s.includes("/*") || p.includes("&") || s.includes("&") ? (s += p.trim(), l(s).split("{").length - 1 === l(s).split("}").length - 1 && l(s).split("【").length - 1 === l(s).split("】").length - 1 && l(s).split("[").length - 1 === l(s).split("]").length - 1 && l(s).split("(").length - 1 === l(s).split(")").length - 1 && l(s).split("(").length - 1 === l(s).split(")").length - 1 && l(s).split("/*").length - 1 === l(s).split("*/").length - 1 && s[s.length - 1] !== "," && s[s.length - 1] !== "&" && (n.push(s.replace(/\/\*[\s\S]*?\*\//g, "")), s = "")) : n.push(p.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
2770
|
+
return n;
|
|
2771
|
+
}, sa = (u, y) => {
|
|
2772
|
+
let n = u;
|
|
2773
|
+
const s = [];
|
|
2774
|
+
let p = "", R = 0;
|
|
2775
|
+
for (const L of n)
|
|
2776
|
+
R++, L.includes("{") || p.includes("{") || L.includes("[") || p.includes("[") || L.includes("【") || p.includes("【") || L.includes("(") || p.includes("(") || L.includes("(") || p.includes("(") || L.includes("/*") || p.includes("/*") ? (p += L.trim(), l(p).split("{").length - 1 === l(p).split("}").length - 1 && l(p).split("【").length - 1 === l(p).split("】").length - 1 && l(p).split("[").length - 1 === l(p).split("]").length - 1 && l(p).split("(").length - 1 === l(p).split(")").length - 1 && l(p).split("(").length - 1 === l(p).split(")").length - 1 && l(p).split("/*").length - 1 === l(p).split("*/").length - 1 && p[p.length - 1] !== "," && p[p.length - 1] === y ? (s.push(p.replace(/\/\*[\s\S]*?\*\//g, "")), p = "") : R === (u == null ? void 0 : u.length) && s.push(p.replace(/\/\*[\s\S]*?\*\//g, ""))) : (p += L.trim(), (p == null ? void 0 : p[(p == null ? void 0 : p.length) - 1]) === y && (s.push(p.replace(/\/\*[\s\S]*?\*\//g, "")), p = ""));
|
|
2777
|
+
return s;
|
|
2778
|
+
}, ia = (u) => /^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l(u)), gn = (u) => {
|
|
2779
|
+
var y, n, s, p, R, L, D, N, H, B, ue, ee, ye, re, me, A, x, pe, d, v, m, g, le, he, we, de, _e, k, a, h, w, t, q, ce, fe, c, E, P, J, ne, z, T, O, _, X, Y, M, U, se, I, o, Z, j, e, i, r, f, b, C;
|
|
2780
|
+
if (bn(u)) {
|
|
2781
|
+
let te = {}, V = (s = (n = (y = u == null ? void 0 : u.replace(":", Ie)) == null ? void 0 : y.split(Ie)) == null ? void 0 : n[0]) == null ? void 0 : s.replaceAll("'", ""), W = "", G = (R = (p = u == null ? void 0 : u.replace(":", Ie)) == null ? void 0 : p.split(Ie)) == null ? void 0 : R[1];
|
|
2782
|
+
if (G.includes("{") || G.includes("("))
|
|
2783
|
+
if (G.includes("{") ? W = W + ((ue = (B = (H = (N = (D = (L = G == null ? void 0 : G.split("{")) == null ? void 0 : L[1]) == null ? void 0 : D.split("}")) == null ? void 0 : N[0]) == null ? void 0 : H.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : B.replaceAll("[", "([")) == null ? void 0 : ue.replaceAll("]", "])")) + "[" : W = W + ((x = (A = (me = (re = (ye = (ee = G == null ? void 0 : G.split("(")) == null ? void 0 : ee[1]) == null ? void 0 : ye.split(")")) == null ? void 0 : re[0]) == null ? void 0 : me.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : A.replaceAll("[", "([")) == null ? void 0 : x.replaceAll("]", "])")) + "[", !((pe = G == null ? void 0 : G.split(")")) != null && pe[1]))
|
|
2784
|
+
W = W + ((m = (v = (d = G == null ? void 0 : G.split("[")) == null ? void 0 : d[1]) == null ? void 0 : v.split("]")) == null ? void 0 : m[0]) + "]";
|
|
2785
|
+
else {
|
|
2786
|
+
const Ce = (we = (he = (le = (g = G == null ? void 0 : G.split(")")) == null ? void 0 : g[1]) == null ? void 0 : le.replace("[", Ie)) == null ? void 0 : he.split(Ie)) == null ? void 0 : we[1], ke = Ce.lastIndexOf("]"), ie = Ce.substring(0, ke) + Ie + Ce.substring(ke + 1);
|
|
2787
|
+
W = W + ((de = ie == null ? void 0 : ie.split(Ie)) == null ? void 0 : de[0]) + "]";
|
|
2788
|
+
}
|
|
2789
|
+
else
|
|
2790
|
+
W = (a = (k = (_e = u == null ? void 0 : u.replace(":", Ie)) == null ? void 0 : _e.split(Ie)) == null ? void 0 : k[1]) == null ? void 0 : a.replaceAll("'", "");
|
|
2791
|
+
return te[V] = W, {
|
|
2792
|
+
groupName: "",
|
|
2793
|
+
formContents: [[te]]
|
|
2794
|
+
};
|
|
2795
|
+
} else {
|
|
2796
|
+
let te = {}, V = "", W = "";
|
|
2797
|
+
if (u.includes("#")) {
|
|
2798
|
+
V = (w = (h = u == null ? void 0 : u.split("#")) == null ? void 0 : h[0]) == null ? void 0 : w.replaceAll("'", "");
|
|
2799
|
+
let G = (q = (t = u == null ? void 0 : u.split("#")) == null ? void 0 : t[1]) == null ? void 0 : q.replaceAll("'", "");
|
|
2800
|
+
G != null && G.includes("{") ? W = W + ((E = (c = (fe = (ce = G == null ? void 0 : G.split("{")) == null ? void 0 : ce[1]) == null ? void 0 : fe.split("}")) == null ? void 0 : c[0]) == null ? void 0 : E.replaceAll(":", "/").replaceAll("'", "")) + "[" : W = W + ((z = (ne = (J = (P = G == null ? void 0 : G.split("(")) == null ? void 0 : P[1]) == null ? void 0 : J.split(")")) == null ? void 0 : ne[0]) == null ? void 0 : z.replaceAll(":", "/").replaceAll("'", "")) + "[", W = W + ((_ = (O = (T = G == null ? void 0 : G.split("[")) == null ? void 0 : T[1]) == null ? void 0 : O.split("]")) == null ? void 0 : _[0]) + "]";
|
|
2801
|
+
} else {
|
|
2802
|
+
let G = (M = (Y = (X = u == null ? void 0 : u.split("]")) == null ? void 0 : X[0]) == null ? void 0 : Y.split("[")) == null ? void 0 : M[1];
|
|
2803
|
+
if ((U = G == null ? void 0 : G.split(":")) == null || U.forEach((Ce, ke) => {
|
|
2804
|
+
var ie;
|
|
2805
|
+
((ie = G == null ? void 0 : G.split(":")) == null ? void 0 : ie.length) - 1 === ke && (V = Ce == null ? void 0 : Ce.replaceAll("'", ""));
|
|
2806
|
+
}), !(u != null && u.includes("[")))
|
|
2807
|
+
W = ((Z = (o = (I = (se = u == null ? void 0 : u.split("]")) == null ? void 0 : se[1]) == null ? void 0 : I.replace(":", Ie).split(Ie)) == null ? void 0 : o[1]) == null ? void 0 : Z.replaceAll("'", "")) ?? "";
|
|
2808
|
+
else {
|
|
2809
|
+
let Ce = (b = (f = (r = (i = (e = (j = l(u)) == null ? void 0 : j.split("(")) == null ? void 0 : e[1]) == null ? void 0 : i.split(")")) == null ? void 0 : r[0]) == null ? void 0 : f.replaceAll("{", "").replaceAll("}", "")) == null ? void 0 : b.replaceAll("'", "").replaceAll(":", "/"), ke = "";
|
|
2810
|
+
(C = G == null ? void 0 : G.split(":")) == null || C.forEach((ie) => {
|
|
2811
|
+
ke = ke === "" ? ke + (ie == null ? void 0 : ie.replaceAll("'", "")) : ke + ":" + (ie == null ? void 0 : ie.replaceAll("'", ""));
|
|
2812
|
+
}), W = Ce + "[" + ke + "]";
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
return te[V] = W, {
|
|
2816
|
+
groupName: "",
|
|
2817
|
+
formContents: [[te]]
|
|
2818
|
+
};
|
|
2819
|
+
}
|
|
2820
|
+
}, kn = (u) => (u == null ? void 0 : u[0]) === "[" && (u == null ? void 0 : u[u.length - 1]) === "]" && !(u != null && u.includes("{")), _n = (u, y) => {
|
|
2821
|
+
let n = u.length;
|
|
2822
|
+
for (; n--; )
|
|
2823
|
+
if (u[n] === ")")
|
|
2824
|
+
return u.substring(0, n) + y + u.substring(n + 1);
|
|
2825
|
+
return u;
|
|
2826
|
+
}, Cn = (u) => {
|
|
2827
|
+
var R, L, D, N, H;
|
|
2828
|
+
let y = u.slice(1, u.length - 1), n;
|
|
2829
|
+
(y == null ? void 0 : y[0]) === "[" ? n = (L = (R = cl(l(y))) == null ? void 0 : R.filter((B) => B !== ",")) == null ? void 0 : L.map((B) => B == null ? void 0 : B.slice(1, B.length - 1)) : (y = "[" + l(y) + "]", n = (N = (D = cl(l(y))) == null ? void 0 : D.filter((B) => B !== ",")) == null ? void 0 : N.map((B) => B == null ? void 0 : B.slice(1, B.length - 1))), n = (H = l(n)) == null ? void 0 : H.map((B) => {
|
|
2830
|
+
var ue, ee;
|
|
2831
|
+
return B = (ee = (ue = B.replace(")", Ie)) == null ? void 0 : ue.split(Ie)) == null ? void 0 : ee[1], B;
|
|
2832
|
+
});
|
|
2833
|
+
let s = [], p = [];
|
|
2834
|
+
return n == null || n.forEach((B) => {
|
|
2835
|
+
var ye, re, me, A, x, pe, d, v, m, g, le, he, we, de, _e, k, a, h, w, t, q, ce, fe, c, E, P, J, ne, z, T, O, _;
|
|
2836
|
+
let ue = (re = (ye = l(B)) == null ? void 0 : ye.slice(1, l(B).length - 1)) == null ? void 0 : re.replace(":", Ie).split(Ie);
|
|
2837
|
+
if (((A = (me = l(ue)) == null ? void 0 : me[0]) == null ? void 0 : A.replaceAll("'", "")) === "输入") {
|
|
2838
|
+
if (!((pe = (x = l(ue)) == null ? void 0 : x[1]) != null && pe.includes("[")) && !((v = (d = l(ue)) == null ? void 0 : d[1]) != null && v.includes("("))) {
|
|
2839
|
+
rl((m = l(ue)) == null ? void 0 : m[1].replaceAll("'", '"')) && p.push(JSON.parse((g = l(ue)) == null ? void 0 : g[1].replaceAll("'", '"')));
|
|
2840
|
+
return;
|
|
2841
|
+
}
|
|
2842
|
+
if (((he = (le = l(ue)) == null ? void 0 : le[1]) == null ? void 0 : he[0]) === "[") {
|
|
2843
|
+
let X = (k = (we = l(ue)) == null ? void 0 : we[1]) == null ? void 0 : k.slice(1, ((_e = (de = l(ue)) == null ? void 0 : de[1]) == null ? void 0 : _e.length) - 1);
|
|
2844
|
+
(h = (a = cl(X)) == null ? void 0 : a.filter((Y) => Y !== ",")) == null || h.forEach((Y) => {
|
|
2845
|
+
var o, Z, j, e, i, r, f, b, C, te, V, W, G, Ce, ke, ie, $, be, K, Ae, Se, xe;
|
|
2846
|
+
let M = {}, U = (j = (Z = l(Y)) == null ? void 0 : Z.slice(1, ((o = l(Y)) == null ? void 0 : o.length) - 1)) == null ? void 0 : j.replace(":", Ie).split(Ie), se = (e = U == null ? void 0 : U[0]) == null ? void 0 : e.replaceAll("'", ""), I;
|
|
2847
|
+
(i = U == null ? void 0 : U[1]) != null && i.includes("(") ? (I = (Ce = (G = (W = (V = (te = (C = (b = (f = l(U)) == null ? void 0 : f[1]) == null ? void 0 : b.replaceAll("{", "")) == null ? void 0 : C.replaceAll("}", "")) == null ? void 0 : te.split("(")) == null ? void 0 : V[1]) == null ? void 0 : W.split(")")) == null ? void 0 : G[0]) == null ? void 0 : Ce.replaceAll(":", "/").replaceAll("'", ""), (ie = (ke = l(U)) == null ? void 0 : ke[1]) != null && ie.includes("[") && (I = l(I) + "[" + ((xe = (Se = (Ae = (K = (be = ($ = l(U)) == null ? void 0 : $[1]) == null ? void 0 : be.split("[")) == null ? void 0 : K[1]) == null ? void 0 : Ae.split("]")) == null ? void 0 : Se[0]) == null ? void 0 : xe.replaceAll("'", "")) + "]")) : I = (r = U == null ? void 0 : U[1]) == null ? void 0 : r.replaceAll("'", ""), M[se] = I, p.push(M);
|
|
2848
|
+
});
|
|
2849
|
+
}
|
|
2850
|
+
} else {
|
|
2851
|
+
if (!((t = (w = l(ue)) == null ? void 0 : w[1]) != null && t.includes("[")) && !((ce = (q = l(ue)) == null ? void 0 : q[1]) != null && ce.includes("("))) {
|
|
2852
|
+
rl((fe = l(ue)) == null ? void 0 : fe[1].replaceAll("'", '"')) && s.push(JSON.parse((c = l(ue)) == null ? void 0 : c[1].replaceAll("'", '"')));
|
|
2853
|
+
return;
|
|
2854
|
+
}
|
|
2855
|
+
if (((P = (E = l(ue)) == null ? void 0 : E[1]) == null ? void 0 : P[0]) === "[") {
|
|
2856
|
+
let X = (T = (J = l(ue)) == null ? void 0 : J[1]) == null ? void 0 : T.slice(1, ((z = (ne = l(ue)) == null ? void 0 : ne[1]) == null ? void 0 : z.length) - 1);
|
|
2857
|
+
(_ = (O = cl(X)) == null ? void 0 : O.filter((Y) => Y !== ",")) == null || _.forEach((Y) => {
|
|
2858
|
+
var o, Z, j, e, i, r, f, b, C, te, V, W, G, Ce, ke, ie, $, be, K, Ae, Se, xe, F, Te, $e, Me, He, qe, fl, hl, vl, kl, al;
|
|
2859
|
+
let M = {}, U = (j = (Z = l(Y)) == null ? void 0 : Z.slice(1, ((o = l(Y)) == null ? void 0 : o.length) - 1)) == null ? void 0 : j.replace(":", Ie).split(Ie), se = (e = U == null ? void 0 : U[0]) == null ? void 0 : e.replaceAll("'", ""), I;
|
|
2860
|
+
if (!((i = U == null ? void 0 : U[1]) != null && i.includes("(")))
|
|
2861
|
+
I = (r = U == null ? void 0 : U[1]) == null ? void 0 : r.replaceAll("'", "");
|
|
2862
|
+
else if (I = (W = (V = (te = (C = (b = (f = l(U)) == null ? void 0 : f[1]) == null ? void 0 : b.replaceAll("{", "")) == null ? void 0 : C.replaceAll("}", "")) == null ? void 0 : te.replace("(", Ie)) == null ? void 0 : V.split(Ie)) == null ? void 0 : W[1], I = (Ce = (G = _n(l(I), Ie)) == null ? void 0 : G.split(Ie)) == null ? void 0 : Ce[0], !(I != null && I.includes("(")))
|
|
2863
|
+
I = (ke = l(I)) == null ? void 0 : ke.replaceAll(":", "/").replaceAll("'", ""), ($ = (ie = l(U)) == null ? void 0 : ie[1]) != null && $.includes("[") && (I = l(I) + "[" + ((F = (xe = (Se = (Ae = (K = (be = l(U)) == null ? void 0 : be[1]) == null ? void 0 : K.split("[")) == null ? void 0 : Ae[1]) == null ? void 0 : Se.split("]")) == null ? void 0 : xe[0]) == null ? void 0 : F.replaceAll("'", "")) + "]");
|
|
2864
|
+
else {
|
|
2865
|
+
let Je = "";
|
|
2866
|
+
(Te = sa(I, ":")) == null || Te.forEach((Ne) => {
|
|
2867
|
+
var Ge, ml, sl, $l, Sl, Tl, Bl, Fl, Ol, Ll, Pl, Rl, Ul, Vl, jl;
|
|
2868
|
+
if (!(Ne != null && Ne.includes("(")))
|
|
2869
|
+
Je = Je === "" ? Je + ((Ge = Ne == null ? void 0 : Ne.replaceAll(":", "")) == null ? void 0 : Ge.replaceAll("'", "")) : Je + "/" + ((ml = Ne == null ? void 0 : Ne.replaceAll(":", "")) == null ? void 0 : ml.replaceAll("'", ""));
|
|
2870
|
+
else {
|
|
2871
|
+
let _l = (Ll = (Ol = (Fl = (Bl = (Tl = (Sl = ($l = (sl = l(Ne)) == null ? void 0 : sl.replaceAll("{", "")) == null ? void 0 : $l.replaceAll("}", "")) == null ? void 0 : Sl.replace("(", Ie)) == null ? void 0 : Tl.split(Ie)) == null ? void 0 : Bl[1]) == null ? void 0 : Fl.split(")")) == null ? void 0 : Ol[0]) == null ? void 0 : Ll.replaceAll(":", "/").replaceAll("'", "");
|
|
2872
|
+
_l = _l + "[" + ((jl = (Vl = (Ul = (Rl = (Pl = l(Ne)) == null ? void 0 : Pl.split("[")) == null ? void 0 : Rl[1]) == null ? void 0 : Ul.split("]")) == null ? void 0 : Vl[0]) == null ? void 0 : jl.replaceAll("'", "")) + "]", Je = Je === "" ? Je + "[" + _l + "]" : Je + "/[" + _l + "]";
|
|
2873
|
+
}
|
|
2874
|
+
}), I = Je + "[" + ((al = (kl = (vl = (hl = (Me = ($e = l(U)) == null ? void 0 : $e[1]) == null ? void 0 : Me.split("[")) == null ? void 0 : hl[((fl = (qe = (He = l(U)) == null ? void 0 : He[1]) == null ? void 0 : qe.split("[")) == null ? void 0 : fl.length) - 1]) == null ? void 0 : vl.split("]")) == null ? void 0 : kl[0]) == null ? void 0 : al.replaceAll("'", "")) + "]";
|
|
2875
|
+
}
|
|
2876
|
+
M[se] = I, s.push(M);
|
|
2877
|
+
});
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
}), {
|
|
2881
|
+
output: s,
|
|
2882
|
+
input: p
|
|
2883
|
+
};
|
|
2884
|
+
}, Ha = (u) => {
|
|
2885
|
+
var s, p, R, L, D, N, H, B, ue, ee, ye, re, me, A, x, pe, d, v, m, g, le, he, we, de, _e, k, a, h, w, t, q, ce, fe, c, E, P, J, ne, z, T, O, _, X, Y, M, U, se, I, o, Z;
|
|
2886
|
+
let y = "";
|
|
2887
|
+
u = u.replace(/:([^=]*)==/g, ":");
|
|
2888
|
+
let n = u;
|
|
2889
|
+
if ((mn(l(u)) !== null || yn(l(u)) !== null) && (y = (p = (s = l(u).replace(":", Ie).split(Ie)) == null ? void 0 : s[0]) == null ? void 0 : p.replaceAll("'", ""), n = (R = l(u).replace(":", Ie).split(Ie)) == null ? void 0 : R[1]), ia(l(n).slice(1, ((L = l(n)) == null ? void 0 : L.length) - 1)) || kn(l(n).slice(1, ((D = l(n)) == null ? void 0 : D.length) - 1)))
|
|
2890
|
+
if (((H = l(n).slice(1, ((N = l(n)) == null ? void 0 : N.length) - 1)) == null ? void 0 : H[1]) !== "[") {
|
|
2891
|
+
const j = la(l(n).slice(1, ((B = l(n)) == null ? void 0 : B.length) - 1));
|
|
2892
|
+
return {
|
|
2893
|
+
groupName: y,
|
|
2894
|
+
tableColumn: j == null ? void 0 : j.tableColumns,
|
|
2895
|
+
tableContents: j == null ? void 0 : j.tableContents,
|
|
2896
|
+
tableColumnPath: j == null ? void 0 : j.tablePath
|
|
2897
|
+
};
|
|
2898
|
+
} else if (l(n).slice(1, ((ue = l(n)) == null ? void 0 : ue.length) - 1).includes("{")) {
|
|
2899
|
+
let j = l(n).slice(1, ((ee = l(n)) == null ? void 0 : ee.length) - 1), e = j.indexOf("{"), i = j.slice(e, (j == null ? void 0 : j.length) - e);
|
|
2900
|
+
return (re = (ye = cl(i)) == null ? void 0 : ye.filter((f) => f == null ? void 0 : f.includes("{"))) == null ? void 0 : re.map((f, b) => {
|
|
2901
|
+
var te;
|
|
2902
|
+
let C = la(l(f).slice(1, ((te = l(f)) == null ? void 0 : te.length) - 1));
|
|
2903
|
+
return {
|
|
2904
|
+
groupName: b === 0 ? y : "",
|
|
2905
|
+
tableColumn: C == null ? void 0 : C.tableColumns,
|
|
2906
|
+
tableContents: C == null ? void 0 : C.tableContents,
|
|
2907
|
+
tableColumnPath: C == null ? void 0 : C.tablePath
|
|
2908
|
+
};
|
|
2909
|
+
});
|
|
2910
|
+
} else {
|
|
2911
|
+
const j = la(l(n).slice(1, ((me = l(n)) == null ? void 0 : me.length) - 1));
|
|
2912
|
+
return {
|
|
2913
|
+
groupName: y,
|
|
2914
|
+
tableColumn: j == null ? void 0 : j.tableColumns,
|
|
2915
|
+
tableContents: j == null ? void 0 : j.tableContents,
|
|
2916
|
+
tableColumnPath: j == null ? void 0 : j.tablePath
|
|
2917
|
+
};
|
|
2918
|
+
}
|
|
2919
|
+
else {
|
|
2920
|
+
let j = [];
|
|
2921
|
+
if (rl((A = n.slice(1, (n == null ? void 0 : n.length) - 1)) == null ? void 0 : A.replaceAll("'", '"')))
|
|
2922
|
+
j = JSON.parse((x = n.slice(1, (n == null ? void 0 : n.length) - 1)) == null ? void 0 : x.replaceAll("'", '"'));
|
|
2923
|
+
else if (n.includes("(")) {
|
|
2924
|
+
if ((n == null ? void 0 : n[0]) !== "{" && !((n == null ? void 0 : n[0]) === "[" && (n == null ? void 0 : n[1]) === "[")) {
|
|
2925
|
+
let e = (h = (a = (k = (_e = l(n)) == null ? void 0 : _e.split("]")) == null ? void 0 : k[0]) == null ? void 0 : a.split("[")) == null ? void 0 : h[1], i = "", f = ((c = (fe = (ce = (q = (t = (w = l(n)) == null ? void 0 : w.split(")")) == null ? void 0 : t[0]) == null ? void 0 : q.split("(")) == null ? void 0 : ce[1]) == null ? void 0 : fe.replaceAll("[", "")) == null ? void 0 : c.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
|
|
2926
|
+
(E = f == null ? void 0 : f.split("/")) == null || E.forEach((C, te) => {
|
|
2927
|
+
var V;
|
|
2928
|
+
te !== ((V = f == null ? void 0 : f.split("/")) == null ? void 0 : V.length) - 1 && (i = i === "" ? i + C : i + "/" + C);
|
|
2929
|
+
});
|
|
2930
|
+
let b;
|
|
2931
|
+
return ((z = (ne = (J = (P = l(n)) == null ? void 0 : P.replace(",", Ie)) == null ? void 0 : J.split(Ie)) == null ? void 0 : ne[1]) == null ? void 0 : z[0]) === "[" && (b = Cn((_ = (O = (T = l(n)) == null ? void 0 : T.replace(",", Ie)) == null ? void 0 : O.split(Ie)) == null ? void 0 : _[1])), {
|
|
2932
|
+
groupName: "",
|
|
2933
|
+
extraButton: (Y = e == null ? void 0 : e.split(":")) == null ? void 0 : Y[((X = e == null ? void 0 : e.split(":")) == null ? void 0 : X.length) - 1].replaceAll("'", ""),
|
|
2934
|
+
extraPath: i,
|
|
2935
|
+
extraData: b
|
|
2936
|
+
};
|
|
2937
|
+
} else if (n = n.slice(1, (n == null ? void 0 : n.length) - 1).replaceAll('"', "'"), (n == null ? void 0 : n[0]) !== "[") {
|
|
2938
|
+
let e = "{" + n + "}", i = (U = (M = cl(e)) == null ? void 0 : M.filter((f) => f !== ",")) == null ? void 0 : U.map((f) => gn(l(f).slice(1, l(f).length - 1))), r = [];
|
|
2939
|
+
return (se = l(i)) == null || se.forEach((f) => {
|
|
2940
|
+
var b;
|
|
2941
|
+
(b = f == null ? void 0 : f.formContents) == null || b.forEach((C) => {
|
|
2942
|
+
C == null || C.forEach((te) => {
|
|
2943
|
+
r.push(te);
|
|
2944
|
+
});
|
|
2945
|
+
});
|
|
2946
|
+
}), {
|
|
2947
|
+
groupName: (I = i == null ? void 0 : i[0]) == null ? void 0 : I.groupName,
|
|
2948
|
+
// formExtra?.groupName,
|
|
2949
|
+
formContents: r
|
|
2950
|
+
// formExtra?.formContents
|
|
2951
|
+
};
|
|
2952
|
+
} else if ((n == null ? void 0 : n[1]) !== "[" && (n = "[" + n + "]"), (n == null ? void 0 : n[0]) === "[" && (n == null ? void 0 : n[1]) === "[") {
|
|
2953
|
+
n = n.slice(1, (n == null ? void 0 : n.length) - 1);
|
|
2954
|
+
let e = [], i = [];
|
|
2955
|
+
return (Z = (o = cl(n)) == null ? void 0 : o.filter((r) => r !== ",")) == null || Z.forEach((r) => {
|
|
2956
|
+
var f, b, C, te;
|
|
2957
|
+
if (!r.includes("&"))
|
|
2958
|
+
Array.isArray(na(r)) || e.push((f = na(r)) == null ? void 0 : f.formContents);
|
|
2959
|
+
else {
|
|
2960
|
+
let V = (te = (C = (b = l(r)) == null ? void 0 : b.split("&")) == null ? void 0 : C[1]) == null ? void 0 : te.replaceAll("'", '"');
|
|
2961
|
+
rl(V) && i.push({
|
|
2962
|
+
[JSON.parse(V)[0]]: JSON.parse(V)
|
|
2963
|
+
});
|
|
2964
|
+
}
|
|
2965
|
+
}), {
|
|
2966
|
+
groupName: y,
|
|
2967
|
+
formContents: e,
|
|
2968
|
+
formGroup: i
|
|
2969
|
+
};
|
|
2970
|
+
}
|
|
2971
|
+
} else if (n = "[[" + n + "]]", rl((pe = n.slice(1, (n == null ? void 0 : n.length) - 1)) == null ? void 0 : pe.replaceAll("'", '"')))
|
|
2972
|
+
j = JSON.parse((d = n.slice(1, (n == null ? void 0 : n.length) - 1)) == null ? void 0 : d.replaceAll("'", '"'));
|
|
2973
|
+
else if (n = n.slice(2, n.length - 2), ((g = (m = (v = n == null ? void 0 : n.replace(":", Ie)) == null ? void 0 : v.split(Ie)) == null ? void 0 : m[1]) == null ? void 0 : g[0]) !== "{") {
|
|
2974
|
+
n = ((he = (le = n == null ? void 0 : n.replace(":", Ie)) == null ? void 0 : le.split(Ie)) == null ? void 0 : he[0]) + ":{[" + ((de = (we = n == null ? void 0 : n.replace(":", Ie)) == null ? void 0 : we.split(Ie)) == null ? void 0 : de[1]) + "]}";
|
|
2975
|
+
const e = Ha(n);
|
|
2976
|
+
return e != null && e.tableColumn ? {
|
|
2977
|
+
groupName: e == null ? void 0 : e.groupName,
|
|
2978
|
+
tableColumn: e == null ? void 0 : e.tableColumn,
|
|
2979
|
+
tableContents: e == null ? void 0 : e.tableContents
|
|
2980
|
+
} : {
|
|
2981
|
+
groupName: e == null ? void 0 : e.groupName,
|
|
2982
|
+
formContents: e == null ? void 0 : e.formContents
|
|
2983
|
+
};
|
|
2984
|
+
}
|
|
2985
|
+
return {
|
|
2986
|
+
groupName: y,
|
|
2987
|
+
formContents: j
|
|
2988
|
+
};
|
|
2989
|
+
}
|
|
2990
|
+
}, na = (u) => Ha(l(u).slice(1, l(u).length - 1)), qo = (u) => {
|
|
2991
|
+
var n;
|
|
2992
|
+
let y = [];
|
|
2993
|
+
if (!((u == null ? void 0 : u[0]) === "[" && (u == null ? void 0 : u[1]) === "[")) {
|
|
2994
|
+
let s = (n = cl(u)) == null ? void 0 : n.filter((p) => p !== ",");
|
|
2995
|
+
s == null || s.forEach((p) => {
|
|
2996
|
+
y.push(na(p));
|
|
2997
|
+
});
|
|
2998
|
+
}
|
|
2999
|
+
return y;
|
|
3000
|
+
}, wn = ca(Ye), { routeToChildPath: aa } = Ze(wn), qa = Ua(Ye), { activeMenuPath: xl } = Ze(qa), Dn = ra(), { loginUserInfo: zl } = Ze(Dn), An = async () => {
|
|
3001
|
+
var R, L, D, N, H, B, ue, ee, ye, re, me, A, x, pe, d, v, m, g, le, he, we, de, _e, k, a, h, w, t, q, ce, fe, c, E, P, J;
|
|
3002
|
+
let u = "";
|
|
3003
|
+
const y = await gl({
|
|
3004
|
+
key: {
|
|
3005
|
+
type: "structure",
|
|
3006
|
+
pageKey: l(aa).value,
|
|
3007
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3008
|
+
}
|
|
3009
|
+
});
|
|
3010
|
+
((L = (R = y == null ? void 0 : y.data) == null ? void 0 : R.result) == null ? void 0 : L.length) > 0 && (u = (me = (re = (ye = (ee = (ue = (B = (H = (N = (D = y == null ? void 0 : y.data) == null ? void 0 : D.result) == null ? void 0 : N[0]) == null ? void 0 : H.value) == null ? void 0 : B.pageData) == null ? void 0 : ue.compData) == null ? void 0 : ee.find((ne) => (ne == null ? void 0 : ne.key) === "header")) == null ? void 0 : ye.contents) == null ? void 0 : re[0]) == null ? void 0 : me.label);
|
|
3011
|
+
let n = xl.value;
|
|
3012
|
+
(x = xl.value) != null && x.includes(`updateLoading${(A = zl.value) == null ? void 0 : A.account}`) ? n = l(xl).value : (d = xl.value) != null && d.includes(`loading${(pe = zl.value) == null ? void 0 : pe.account}`) && (n = l(aa).value + `/loading${(v = zl.value) == null ? void 0 : v.account}`);
|
|
3013
|
+
const s = await gl({
|
|
3014
|
+
key: {
|
|
3015
|
+
pageKey: n,
|
|
3016
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3017
|
+
}
|
|
3018
|
+
});
|
|
3019
|
+
if ((g = xl.value) != null && g.includes(`updateLoading${(m = zl.value) == null ? void 0 : m.account}`)) {
|
|
3020
|
+
const ne = await gl({
|
|
3021
|
+
key: {
|
|
3022
|
+
pageKey: (he = xl.value.split(`/updateLoading${(le = zl.value) == null ? void 0 : le.account}`)) == null ? void 0 : he[0],
|
|
3023
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3024
|
+
}
|
|
3025
|
+
});
|
|
3026
|
+
let z = (de = (we = ne == null ? void 0 : ne.data) == null ? void 0 : we.result) == null ? void 0 : de.map((T) => T == null ? void 0 : T.id);
|
|
3027
|
+
(z == null ? void 0 : z.length) > 0 && await rs({
|
|
3028
|
+
ids: z
|
|
3029
|
+
});
|
|
3030
|
+
}
|
|
3031
|
+
let p = [];
|
|
3032
|
+
if (((k = (_e = s == null ? void 0 : s.data) == null ? void 0 : _e.result) == null ? void 0 : k.length) > 0) {
|
|
3033
|
+
let ne = (E = (c = (fe = (ce = (q = (t = (w = (h = (a = s == null ? void 0 : s.data) == null ? void 0 : a.result) == null ? void 0 : h[0]) == null ? void 0 : w.value) == null ? void 0 : t.pageData) == null ? void 0 : q.compData) == null ? void 0 : ce.find((z) => (z == null ? void 0 : z.key) === "formContent")) == null ? void 0 : fe.contents) == null ? void 0 : c.find((z) => {
|
|
3034
|
+
var T, O;
|
|
3035
|
+
return (z == null ? void 0 : z.key) === u || ((O = (T = z == null ? void 0 : z.optionUrl) == null ? void 0 : T.groupSelect) == null ? void 0 : O[1]) === u;
|
|
3036
|
+
})) == null ? void 0 : E.value;
|
|
3037
|
+
if ((J = (P = s == null ? void 0 : s.data) == null ? void 0 : P.result) == null || J.forEach((z) => {
|
|
3038
|
+
var O;
|
|
3039
|
+
let T = (O = l(z)) == null ? void 0 : O.key;
|
|
3040
|
+
T.pageKey = l(aa).value + "/" + ne, qa.setChildMenu(T.pageKey), p.push({
|
|
3041
|
+
id: z == null ? void 0 : z.id,
|
|
3042
|
+
key: T
|
|
3043
|
+
});
|
|
3044
|
+
}), ne === "") {
|
|
3045
|
+
ll.error(`保存失败,${u}的必填字段没有填写`);
|
|
3046
|
+
return;
|
|
3047
|
+
}
|
|
3048
|
+
await Va({
|
|
3049
|
+
dataList: p
|
|
3050
|
+
}), ll.success("保存成功");
|
|
3051
|
+
}
|
|
3052
|
+
}, In = {
|
|
3053
|
+
key: 0,
|
|
3054
|
+
class: "method-content"
|
|
3055
|
+
}, xn = {
|
|
3056
|
+
__name: "index",
|
|
3057
|
+
props: {
|
|
3058
|
+
itemData: {
|
|
3059
|
+
type: Array,
|
|
3060
|
+
default: () => []
|
|
3061
|
+
},
|
|
3062
|
+
childItemData: {
|
|
3063
|
+
type: Array,
|
|
3064
|
+
default: () => []
|
|
3065
|
+
},
|
|
3066
|
+
index: Number,
|
|
3067
|
+
changedContent: {
|
|
3068
|
+
type: Object,
|
|
3069
|
+
default: () => {
|
|
3070
|
+
}
|
|
3071
|
+
}
|
|
3072
|
+
},
|
|
3073
|
+
setup(u) {
|
|
3074
|
+
const y = Q([]), n = u, s = Q(!1), p = Q(), R = ca(Ye), L = Q(!1), D = Ua(Ye), N = ra(Ye), { itemData: H, isEdit: B, routeToChildPath: ue } = Ze(R), { activeMenuPath: ee, platform: ye, childMenu: re } = Ze(D), { loginUserInfo: me } = Ze(N), A = Q(!1), x = (k, a) => {
|
|
3075
|
+
const h = a;
|
|
3076
|
+
return k == null ? void 0 : k.map((w) => {
|
|
3077
|
+
var t;
|
|
3078
|
+
return w = (t = w == null ? void 0 : w.map((q, ce) => {
|
|
3079
|
+
var fe;
|
|
3080
|
+
return {
|
|
3081
|
+
key: (fe = h[ce]) == null ? void 0 : fe.label,
|
|
3082
|
+
value: q
|
|
3083
|
+
};
|
|
3084
|
+
})) == null ? void 0 : t.filter((q) => q.key !== "操作"), w;
|
|
3085
|
+
});
|
|
3086
|
+
}, pe = async () => {
|
|
3087
|
+
var k;
|
|
3088
|
+
(k = y.value) != null && k.find((a) => (a == null ? void 0 : a.buttonName) === "保存"), await An();
|
|
3089
|
+
};
|
|
3090
|
+
ze(
|
|
3091
|
+
() => H.value,
|
|
3092
|
+
async () => {
|
|
3093
|
+
B.value === "view" && !A.value && await _e(l(n.itemData)), A.value = !1;
|
|
3094
|
+
},
|
|
3095
|
+
{ deep: !0 }
|
|
3096
|
+
);
|
|
3097
|
+
const d = () => {
|
|
3098
|
+
s.value = !1, p.value = void 0;
|
|
3099
|
+
}, v = async (k, a) => {
|
|
3100
|
+
var h;
|
|
3101
|
+
if (Oa(k == null ? void 0 : k.name, a)) {
|
|
3102
|
+
let w = Oa(k == null ? void 0 : k.name, a);
|
|
3103
|
+
k == null || k.id, k.compData = await Promise.all(
|
|
3104
|
+
(h = l(k.compData)) == null ? void 0 : h.map(async (t) => ((t == null ? void 0 : t.key) === "tableContents" && (t.extra = await ks(l(t.contents), (k == null ? void 0 : k.tableId) ?? (k == null ? void 0 : k.id)), t.contents = _s(l(w))), t))
|
|
3105
|
+
);
|
|
3106
|
+
} else
|
|
3107
|
+
k = Cs(k, a);
|
|
3108
|
+
return k;
|
|
3109
|
+
}, m = (k, a) => {
|
|
3110
|
+
var w, t, q, ce, fe, c, E, P, J, ne, z, T;
|
|
3111
|
+
let h = (w = l(a)) == null ? void 0 : w.filter((O) => (O == null ? void 0 : O.comp) !== "methodButton");
|
|
3112
|
+
if (k != null && k.includes("[")) {
|
|
3113
|
+
let O = (c = (fe = (ce = (q = (t = l(k)) == null ? void 0 : t.split("[")) == null ? void 0 : q[1]) == null ? void 0 : ce.split("]")) == null ? void 0 : fe[0]) == null ? void 0 : c.split(":"), _ = "";
|
|
3114
|
+
if (O != null && O[0]) {
|
|
3115
|
+
let X = (E = h == null ? void 0 : h.find((Y) => (Y == null ? void 0 : Y.name) === (O == null ? void 0 : O[0]))) == null ? void 0 : E.compData;
|
|
3116
|
+
X == null || X.forEach((Y) => {
|
|
3117
|
+
var M;
|
|
3118
|
+
(Y == null ? void 0 : Y.key) === "formContent" && ((M = Y == null ? void 0 : Y.contents) == null || M.forEach((U) => {
|
|
3119
|
+
(U == null ? void 0 : U.key) === (O == null ? void 0 : O[1]) && (_ = U == null ? void 0 : U.value);
|
|
3120
|
+
}));
|
|
3121
|
+
});
|
|
3122
|
+
}
|
|
3123
|
+
return _;
|
|
3124
|
+
} else if (k != null && k.includes("/")) {
|
|
3125
|
+
let O = {};
|
|
3126
|
+
return (P = l(h)) == null || P.forEach((_, X) => {
|
|
3127
|
+
var Y, M, U, se, I, o, Z, j, e, i, r, f, b, C, te, V, W, G, Ce;
|
|
3128
|
+
if ((_ == null ? void 0 : _.comp) === "Table") {
|
|
3129
|
+
let ke = Array.isArray((U = (M = (Y = _ == null ? void 0 : _.compData) == null ? void 0 : Y.find((K) => (K == null ? void 0 : K.key) === "header")) == null ? void 0 : M.contents) == null ? void 0 : U[0]) ? (Z = (o = (I = (se = _ == null ? void 0 : _.compData) == null ? void 0 : se.find((K) => (K == null ? void 0 : K.key) === "header")) == null ? void 0 : I.contents) == null ? void 0 : o[0]) == null ? void 0 : Z.some((K) => K == null ? void 0 : K.children) : [], ie = (i = (e = (j = _ == null ? void 0 : _.compData) == null ? void 0 : j.find((K) => (K == null ? void 0 : K.key) === "tableContents")) == null ? void 0 : e.contents) == null ? void 0 : i.map((K) => K.slice(1)), $ = (te = (C = (b = (f = (r = _ == null ? void 0 : _.compData) == null ? void 0 : r.find((K) => (K == null ? void 0 : K.key) === "header")) == null ? void 0 : f.contents) == null ? void 0 : b[0]) == null ? void 0 : C[0]) == null ? void 0 : te.label, be = (W = (V = _ == null ? void 0 : _.compData) == null ? void 0 : V.find((K) => (K == null ? void 0 : K.key) === "header")) == null ? void 0 : W.contents;
|
|
3130
|
+
if (ke)
|
|
3131
|
+
(ke == null ? void 0 : ke.length) === 0 ? O[_.name] = x(ie, be) : O[$] = x(ie, be);
|
|
3132
|
+
else {
|
|
3133
|
+
const K = [];
|
|
3134
|
+
be = be.slice(1, be.length - 1), be == null || be.forEach((Ae, Se) => {
|
|
3135
|
+
ie == null || ie.forEach((xe) => {
|
|
3136
|
+
K.push({
|
|
3137
|
+
key: Ae.label + xe[0],
|
|
3138
|
+
value: xe[Se + 1]
|
|
3139
|
+
});
|
|
3140
|
+
});
|
|
3141
|
+
}), O["form" + X] = K;
|
|
3142
|
+
}
|
|
3143
|
+
} else {
|
|
3144
|
+
const ke = (Ce = (G = _.compData) == null ? void 0 : G.find(($) => ($ == null ? void 0 : $.key) === "formContent")) == null ? void 0 : Ce.contents;
|
|
3145
|
+
O != null && O.form || (O.form = []);
|
|
3146
|
+
const ie = [];
|
|
3147
|
+
ke == null || ke.forEach(($) => {
|
|
3148
|
+
$.key !== "" && ($ = {
|
|
3149
|
+
key: ($ == null ? void 0 : $.key) ?? ($ == null ? void 0 : $.label),
|
|
3150
|
+
value: $ == null ? void 0 : $.value
|
|
3151
|
+
}, ie.push($));
|
|
3152
|
+
}), O.form = [...ie, ...l(O == null ? void 0 : O.form)];
|
|
3153
|
+
}
|
|
3154
|
+
}), O;
|
|
3155
|
+
} else {
|
|
3156
|
+
if (k === "createInsofDataApi") {
|
|
3157
|
+
let O = (J = l(a)) == null ? void 0 : J[0];
|
|
3158
|
+
return O = {
|
|
3159
|
+
comp: (ne = l(O)) == null ? void 0 : ne.comp,
|
|
3160
|
+
compData: (z = l(O)) == null ? void 0 : z.compData,
|
|
3161
|
+
name: (T = l(O)) == null ? void 0 : T.name
|
|
3162
|
+
}, {
|
|
3163
|
+
key: {
|
|
3164
|
+
type: "structure",
|
|
3165
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3166
|
+
parentTable: "",
|
|
3167
|
+
pageKey: ee.value
|
|
3168
|
+
},
|
|
3169
|
+
value: {
|
|
3170
|
+
pageData: O
|
|
3171
|
+
}
|
|
3172
|
+
};
|
|
3173
|
+
}
|
|
3174
|
+
return k;
|
|
3175
|
+
}
|
|
3176
|
+
}, g = async (k, a, h) => {
|
|
3177
|
+
var q;
|
|
3178
|
+
let w = await bl(a, sessionStorage.getItem("systemKey"), ""), t = w == null ? void 0 : w.find((ce) => (ce == null ? void 0 : ce.name) === (h == null ? void 0 : h[0]));
|
|
3179
|
+
if (t && (t == null ? void 0 : t.comp) === "Table") {
|
|
3180
|
+
let ce = {};
|
|
3181
|
+
for (let z in l(k))
|
|
3182
|
+
l(k)[z] !== "loginUser" ? ce[z] = l(k)[z] : ce[z] = (q = me.value) == null ? void 0 : q.account;
|
|
3183
|
+
let fe = [], c = ce;
|
|
3184
|
+
Array.isArray(k) || (c = [ce]), c == null || c.forEach((z) => {
|
|
3185
|
+
fe.push({
|
|
3186
|
+
[z[h[1]]]: z
|
|
3187
|
+
});
|
|
3188
|
+
});
|
|
3189
|
+
let E = [], P = fe == null ? void 0 : fe.map((z) => {
|
|
3190
|
+
var T;
|
|
3191
|
+
return (T = Object.keys(z)) == null ? void 0 : T[0];
|
|
3192
|
+
});
|
|
3193
|
+
w == null || w.forEach((z) => {
|
|
3194
|
+
var T;
|
|
3195
|
+
(z == null ? void 0 : z.name) === (h == null ? void 0 : h[0]) && ((T = z == null ? void 0 : z.compData) == null || T.forEach((O) => {
|
|
3196
|
+
var _;
|
|
3197
|
+
(O == null ? void 0 : O.key) === "tableContents" && ((_ = O == null ? void 0 : O.contents) == null || _.forEach((X) => {
|
|
3198
|
+
X != null && X.some((Y) => P.includes(Y)) && E.push({
|
|
3199
|
+
[X.find((Y) => Y.id).id]: X.find((Y) => P.includes(Y))
|
|
3200
|
+
});
|
|
3201
|
+
}));
|
|
3202
|
+
}));
|
|
3203
|
+
});
|
|
3204
|
+
let J = E == null ? void 0 : E.map((z) => {
|
|
3205
|
+
var T;
|
|
3206
|
+
return (T = Object.keys(z)) == null ? void 0 : T[0];
|
|
3207
|
+
}), ne = [];
|
|
3208
|
+
J == null || J.forEach((z) => {
|
|
3209
|
+
var _;
|
|
3210
|
+
let T = (_ = E == null ? void 0 : E.find((X) => {
|
|
3211
|
+
var Y;
|
|
3212
|
+
return ((Y = Object.keys(X)) == null ? void 0 : Y[0].toString()) === z.toString();
|
|
3213
|
+
})) == null ? void 0 : _[z], O = fe == null ? void 0 : fe.find((X) => {
|
|
3214
|
+
var Y;
|
|
3215
|
+
return ((Y = Object.keys(X)) == null ? void 0 : Y[0]) === T;
|
|
3216
|
+
});
|
|
3217
|
+
ne.push({
|
|
3218
|
+
id: parseInt(z),
|
|
3219
|
+
value: {
|
|
3220
|
+
tableData: O[T]
|
|
3221
|
+
}
|
|
3222
|
+
});
|
|
3223
|
+
}), (ne == null ? void 0 : ne.length) > 0 && await Va({
|
|
3224
|
+
dataList: ne
|
|
3225
|
+
});
|
|
3226
|
+
}
|
|
3227
|
+
}, le = async (k, a, h) => {
|
|
3228
|
+
var q, ce, fe, c, E, P, J, ne, z;
|
|
3229
|
+
let w = await bl(a, sessionStorage.getItem("systemKey"), ""), t = w == null ? void 0 : w.find((T) => (T == null ? void 0 : T.name) === (h == null ? void 0 : h[0]));
|
|
3230
|
+
if (t) {
|
|
3231
|
+
if ((t == null ? void 0 : t.comp) === "Table") {
|
|
3232
|
+
let T = {};
|
|
3233
|
+
for (let O in l(k))
|
|
3234
|
+
l(k)[O] !== "loginUser" ? T[O] = l(k)[O] : T[O] = (q = me.value) == null ? void 0 : q.account;
|
|
3235
|
+
await Sa({
|
|
3236
|
+
key: {
|
|
3237
|
+
type: "data",
|
|
3238
|
+
pageKey: a,
|
|
3239
|
+
tableId: t == null ? void 0 : t.id,
|
|
3240
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3241
|
+
},
|
|
3242
|
+
value: {
|
|
3243
|
+
tableData: T
|
|
3244
|
+
}
|
|
3245
|
+
});
|
|
3246
|
+
} else if ((t == null ? void 0 : t.comp) === "Form") {
|
|
3247
|
+
let T = l(t), O = Object.keys(k), _ = "";
|
|
3248
|
+
(fe = (ce = l(T)) == null ? void 0 : ce.compData) == null || fe.forEach((I) => {
|
|
3249
|
+
var o, Z;
|
|
3250
|
+
(I == null ? void 0 : I.key) === "formContent" && ((Z = (o = l(I)) == null ? void 0 : o.contents) == null || Z.forEach((j) => {
|
|
3251
|
+
var e;
|
|
3252
|
+
O.includes(j == null ? void 0 : j.key) && (j == null ? void 0 : j.value) === ((e = me.value) == null ? void 0 : e.姓名) && (_ = j == null ? void 0 : j.key);
|
|
3253
|
+
}));
|
|
3254
|
+
});
|
|
3255
|
+
let X = [];
|
|
3256
|
+
(c = Object.values(k[_])) == null || c.forEach((I) => {
|
|
3257
|
+
I != null && I.includes("(") && X.push(I);
|
|
3258
|
+
}), X = [...new Set(X)];
|
|
3259
|
+
const Y = X == null ? void 0 : X.map(async (I) => {
|
|
3260
|
+
var i, r, f, b, C, te, V, W, G, Ce, ke, ie;
|
|
3261
|
+
let o = "";
|
|
3262
|
+
(te = (C = (b = (f = (r = (i = l(I)) == null ? void 0 : i.split("(")) == null ? void 0 : r[1]) == null ? void 0 : f.split(")")) == null ? void 0 : b[0]) == null ? void 0 : C.split(":")) == null || te.forEach(($) => {
|
|
3263
|
+
o = o === "" ? o + $.replaceAll("'", "") : o + "/" + $.replaceAll("'", "");
|
|
3264
|
+
});
|
|
3265
|
+
let Z = [];
|
|
3266
|
+
(ie = (ke = (Ce = (G = (W = (V = l(I)) == null ? void 0 : V.split("<")) == null ? void 0 : W[1]) == null ? void 0 : G.split(">")) == null ? void 0 : Ce[0]) == null ? void 0 : ke.split(":")) == null || ie.forEach(($) => {
|
|
3267
|
+
Z.push($.replaceAll("'", ""));
|
|
3268
|
+
});
|
|
3269
|
+
const j = await bl(o, sessionStorage.getItem("systemKey"), "");
|
|
3270
|
+
let e = "";
|
|
3271
|
+
return j == null || j.forEach(($) => {
|
|
3272
|
+
var be;
|
|
3273
|
+
$.name === (Z == null ? void 0 : Z[0]) && ((be = $ == null ? void 0 : $.compData) == null || be.forEach((K) => {
|
|
3274
|
+
var Ae;
|
|
3275
|
+
(K == null ? void 0 : K.key) === "formContent" && ((Ae = K.contents) == null || Ae.forEach((Se) => {
|
|
3276
|
+
(Se == null ? void 0 : Se.key) === (Z == null ? void 0 : Z[1]) && (e = Se == null ? void 0 : Se.value);
|
|
3277
|
+
}));
|
|
3278
|
+
}));
|
|
3279
|
+
}), {
|
|
3280
|
+
[I]: e
|
|
3281
|
+
};
|
|
3282
|
+
}), M = await Promise.all(Y);
|
|
3283
|
+
T.compData = (P = (E = l(T)) == null ? void 0 : E.compData) == null ? void 0 : P.map((I) => {
|
|
3284
|
+
var o, Z;
|
|
3285
|
+
return (I == null ? void 0 : I.key) === "formContent" && (I.contents = (Z = (o = l(I)) == null ? void 0 : o.contents) == null ? void 0 : Z.map((j) => {
|
|
3286
|
+
var e, i, r, f;
|
|
3287
|
+
return (e = k[_]) != null && e[j == null ? void 0 : j.key] && (k[_][j == null ? void 0 : j.key].includes("(") ? j.value = (i = M == null ? void 0 : M.find((b) => {
|
|
3288
|
+
var C;
|
|
3289
|
+
return ((C = Object.keys(b)) == null ? void 0 : C[0]) === k[_][j == null ? void 0 : j.key];
|
|
3290
|
+
})) == null ? void 0 : i[k[_][j == null ? void 0 : j.key]] : j.value = (f = (r = l(k)) == null ? void 0 : r[_]) == null ? void 0 : f[j == null ? void 0 : j.key]), j;
|
|
3291
|
+
})), I;
|
|
3292
|
+
});
|
|
3293
|
+
const U = await gl({
|
|
3294
|
+
key: {
|
|
3295
|
+
type: "structure",
|
|
3296
|
+
pageKey: a,
|
|
3297
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3298
|
+
}
|
|
3299
|
+
});
|
|
3300
|
+
let se = "";
|
|
3301
|
+
((J = U == null ? void 0 : U.data) == null ? void 0 : J.type) === "success" && ((z = (ne = U == null ? void 0 : U.data) == null ? void 0 : ne.result) == null || z.forEach((I) => {
|
|
3302
|
+
var o, Z;
|
|
3303
|
+
((Z = (o = I == null ? void 0 : I.value) == null ? void 0 : o.pageData) == null ? void 0 : Z.name) === (h == null ? void 0 : h[0]) && (se = I.id);
|
|
3304
|
+
}), await Ta({
|
|
3305
|
+
id: se,
|
|
3306
|
+
value: {
|
|
3307
|
+
pageData: T
|
|
3308
|
+
}
|
|
3309
|
+
}));
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
}, he = async (k, a, h) => {
|
|
3313
|
+
var q, ce, fe, c, E, P;
|
|
3314
|
+
let w = await bl(a, sessionStorage.getItem("systemKey"), ""), t = w == null ? void 0 : w.find((J) => (J == null ? void 0 : J.name) === (h == null ? void 0 : h[0]));
|
|
3315
|
+
if (t) {
|
|
3316
|
+
if (!(h != null && h[1]) && (t == null ? void 0 : t.comp) === "Table") {
|
|
3317
|
+
let J = {};
|
|
3318
|
+
for (let ne in l(k))
|
|
3319
|
+
l(k)[ne] !== "loginUser" ? J[ne] = l(k)[ne] : J[ne] = (q = me.value) == null ? void 0 : q.account;
|
|
3320
|
+
await Sa({
|
|
3321
|
+
key: {
|
|
3322
|
+
type: "data",
|
|
3323
|
+
pageKey: a,
|
|
3324
|
+
tableId: t == null ? void 0 : t.id,
|
|
3325
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3326
|
+
},
|
|
3327
|
+
value: {
|
|
3328
|
+
tableData: J
|
|
3329
|
+
}
|
|
3330
|
+
});
|
|
3331
|
+
} else if (!(h != null && h[1]) && (t == null ? void 0 : t.comp) === "Form") {
|
|
3332
|
+
let J = l(t);
|
|
3333
|
+
J.compData = (fe = (ce = l(J)) == null ? void 0 : ce.compData) == null ? void 0 : fe.map((T) => {
|
|
3334
|
+
var O, _;
|
|
3335
|
+
return (T == null ? void 0 : T.key) === "formContent" && (T.contents = (_ = (O = l(T)) == null ? void 0 : O.contents) == null ? void 0 : _.map((X) => {
|
|
3336
|
+
var Y, M;
|
|
3337
|
+
return (Y = l(k)) != null && Y[X == null ? void 0 : X.key] && (X.value = (M = l(k)) == null ? void 0 : M[X == null ? void 0 : X.key]), X;
|
|
3338
|
+
})), T;
|
|
3339
|
+
});
|
|
3340
|
+
const ne = await gl({
|
|
3341
|
+
key: {
|
|
3342
|
+
type: "structure",
|
|
3343
|
+
pageKey: a,
|
|
3344
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3345
|
+
}
|
|
3346
|
+
});
|
|
3347
|
+
let z = "";
|
|
3348
|
+
((c = ne == null ? void 0 : ne.data) == null ? void 0 : c.type) === "success" && ((P = (E = ne == null ? void 0 : ne.data) == null ? void 0 : E.result) == null || P.forEach((T) => {
|
|
3349
|
+
var O, _;
|
|
3350
|
+
((_ = (O = T == null ? void 0 : T.value) == null ? void 0 : O.pageData) == null ? void 0 : _.name) === (h == null ? void 0 : h[0]) && (z = T.id);
|
|
3351
|
+
}), await Ta({
|
|
3352
|
+
id: z,
|
|
3353
|
+
value: {
|
|
3354
|
+
pageData: J
|
|
3355
|
+
}
|
|
3356
|
+
}));
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
}, we = ["createInsofDataApi"], de = async (k) => {
|
|
3360
|
+
var h, w, t, q, ce, fe, c, E, P, J, ne, z, T, O, _, X, Y, M;
|
|
3361
|
+
D.setImportLoading(!0);
|
|
3362
|
+
let a = {};
|
|
3363
|
+
if (ye.value !== "browser") {
|
|
3364
|
+
const U = [];
|
|
3365
|
+
a.form = {}, (h = l(k.content)) == null || h.forEach((I, o) => {
|
|
3366
|
+
var Z, j, e, i, r, f, b, C, te, V, W, G, Ce, ke;
|
|
3367
|
+
if ((I == null ? void 0 : I.comp) === "Table") {
|
|
3368
|
+
(j = (Z = I == null ? void 0 : I.compData) == null ? void 0 : Z.find((K) => (K == null ? void 0 : K.key) === "header")) == null || j.contents;
|
|
3369
|
+
let ie = (r = (i = (e = I == null ? void 0 : I.compData) == null ? void 0 : e.find((K) => (K == null ? void 0 : K.key) === "tableContents")) == null ? void 0 : i.contents) == null ? void 0 : r.map((K) => K.slice(1));
|
|
3370
|
+
(V = (te = (C = (b = (f = I == null ? void 0 : I.compData) == null ? void 0 : f.find((K) => (K == null ? void 0 : K.key) === "header")) == null ? void 0 : b.contents) == null ? void 0 : C[0]) == null ? void 0 : te[0]) == null || V.label;
|
|
3371
|
+
let $ = (G = (W = I == null ? void 0 : I.compData) == null ? void 0 : W.find((K) => (K == null ? void 0 : K.key) === "header")) == null ? void 0 : G.contents, be = [];
|
|
3372
|
+
ie == null || ie.forEach((K) => {
|
|
3373
|
+
let Ae = [];
|
|
3374
|
+
K == null || K.forEach((Se, xe) => {
|
|
3375
|
+
var Te;
|
|
3376
|
+
let F = {};
|
|
3377
|
+
((Te = $[xe]) == null ? void 0 : Te.label) !== "操作" && (F[$[xe].label] = Se, Ae.push(F));
|
|
3378
|
+
}), be.push(Ae);
|
|
3379
|
+
}), a[I.name] = be;
|
|
3380
|
+
} else {
|
|
3381
|
+
const ie = (ke = (Ce = I.compData) == null ? void 0 : Ce.find(($) => ($ == null ? void 0 : $.key) === "formContent")) == null ? void 0 : ke.contents;
|
|
3382
|
+
ie == null || ie.forEach(($) => {
|
|
3383
|
+
var be;
|
|
3384
|
+
$.key !== "" && ($ = {
|
|
3385
|
+
key: ($ == null ? void 0 : $.key) ?? ($ == null ? void 0 : $.label),
|
|
3386
|
+
value: (be = $ == null ? void 0 : $.value) == null ? void 0 : be.toString()
|
|
3387
|
+
}, U.push($));
|
|
3388
|
+
});
|
|
3389
|
+
}
|
|
3390
|
+
}), a.form = ms(U);
|
|
3391
|
+
let se = a.form;
|
|
3392
|
+
for (let I in a)
|
|
3393
|
+
I !== "form" && (se[I] = ys(a[I]));
|
|
3394
|
+
if (k.api) {
|
|
3395
|
+
try {
|
|
3396
|
+
L.value = !0;
|
|
3397
|
+
const I = await Hl.post(
|
|
3398
|
+
k.api,
|
|
3399
|
+
se,
|
|
3400
|
+
{
|
|
3401
|
+
headers: {
|
|
3402
|
+
"Content-Type": "application/json"
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3405
|
+
);
|
|
3406
|
+
if (((w = I == null ? void 0 : I.data) == null ? void 0 : w.code) === 200 || ((t = I == null ? void 0 : I.data) == null ? void 0 : t.statusCode) === 200) {
|
|
3407
|
+
let o = await ((q = I == null ? void 0 : I.data) == null ? void 0 : q.data);
|
|
3408
|
+
const Z = (ce = l(H.value)) == null ? void 0 : ce.filter((r) => (r == null ? void 0 : r.comp) !== "methodButton"), j = await Promise.all(
|
|
3409
|
+
Z.map((r) => v(r, o))
|
|
3410
|
+
);
|
|
3411
|
+
await Promise.all(j);
|
|
3412
|
+
const e = (fe = l(H.value)) == null ? void 0 : fe.filter((r) => (r == null ? void 0 : r.comp) === "methodButton");
|
|
3413
|
+
let i = [...j, ...e];
|
|
3414
|
+
await bs(i), L.value = !1;
|
|
3415
|
+
} else
|
|
3416
|
+
ll.error("方法调用失败:" + ((c = I == null ? void 0 : I.data) == null ? void 0 : c.errors)), L.value = !1;
|
|
3417
|
+
} catch {
|
|
3418
|
+
ll.error("方法调用失败"), L.value = !1;
|
|
3419
|
+
}
|
|
3420
|
+
R.setFreshContent(!0);
|
|
3421
|
+
}
|
|
3422
|
+
} else if (k.api) {
|
|
3423
|
+
let U = await bl((re == null ? void 0 : re.value) === "" ? ee.value : re == null ? void 0 : re.value, sessionStorage.getItem("systemKey"), ""), se = {};
|
|
3424
|
+
(P = (E = k == null ? void 0 : k.extraValues) == null ? void 0 : E.input) == null || P.forEach((i) => {
|
|
3425
|
+
var r;
|
|
3426
|
+
we != null && we.find((f) => f === i) ? se = m(i, U) : se[Object.keys(i)[0]] = m((r = Object.values(i)) == null ? void 0 : r[0], U);
|
|
3427
|
+
});
|
|
3428
|
+
let I = !1;
|
|
3429
|
+
(ne = (J = k == null ? void 0 : k.extraValues) == null ? void 0 : J.output) == null || ne.forEach((i) => {
|
|
3430
|
+
var r, f;
|
|
3431
|
+
(f = (r = Object.values(i)) == null ? void 0 : r[0]) != null && f.includes(".doc") && (I = !0);
|
|
3432
|
+
});
|
|
3433
|
+
let o;
|
|
3434
|
+
I ? o = await Hl.post(k.api, se, {
|
|
3435
|
+
responseType: "blob",
|
|
3436
|
+
// 必须设置
|
|
3437
|
+
headers: {
|
|
3438
|
+
"Content-Type": "application/json"
|
|
3439
|
+
}
|
|
3440
|
+
}) : o = await Hl.post(k.api, se, {
|
|
3441
|
+
headers: {
|
|
3442
|
+
"Content-Type": "application/json"
|
|
3443
|
+
}
|
|
3444
|
+
});
|
|
3445
|
+
let Z = (_ = (O = (T = (z = l(k)) == null ? void 0 : z.extraValues) == null ? void 0 : T.output) == null ? void 0 : O.map((i) => {
|
|
3446
|
+
var r, f, b, C, te, V, W, G, Ce, ke, ie, $, be, K, Ae;
|
|
3447
|
+
if (!((f = (r = Object.values(i)) == null ? void 0 : r[0]) != null && f.includes(".doc"))) {
|
|
3448
|
+
let Se = (ke = (Ce = (G = (C = l((b = Object.values(i)) == null ? void 0 : b[0])) == null ? void 0 : C.split("[")) == null ? void 0 : G[((W = (V = l((te = Object.values(i)) == null ? void 0 : te[0])) == null ? void 0 : V.split("[")) == null ? void 0 : W.length) - 1]) == null ? void 0 : Ce.split("]")) == null ? void 0 : ke[0];
|
|
3449
|
+
Se == null || Se.split(":");
|
|
3450
|
+
let xe = l((ie = Object.values(i)) == null ? void 0 : ie[0]).substring(0, l(($ = Object.values(i)) == null ? void 0 : $[0]).lastIndexOf("["));
|
|
3451
|
+
if (xe = (K = l(xe)) == null ? void 0 : K.slice(0, ((be = l(xe)) == null ? void 0 : be.length) - 1), xe != null && xe.includes("[")) {
|
|
3452
|
+
let F = "";
|
|
3453
|
+
if ((Ae = sa(xe, "/")) == null || Ae.forEach((Te) => {
|
|
3454
|
+
var $e, Me, He, qe, fl, hl, vl;
|
|
3455
|
+
if (!(Te != null && Te.includes("[")))
|
|
3456
|
+
F = F === "" ? F + Te.replaceAll("/", "") : F + "/" + Te.replaceAll("/", "");
|
|
3457
|
+
else {
|
|
3458
|
+
let kl = l(Te).slice(1, (($e = l(Te)) == null ? void 0 : $e.length) - 1), al = (hl = (fl = (qe = (He = (Me = l(kl)) == null ? void 0 : Me.split("[")) == null ? void 0 : He[1]) == null ? void 0 : qe.split("]")) == null ? void 0 : fl[0]) == null ? void 0 : hl.split(":"), Je = "", Ne = (vl = U == null ? void 0 : U.find((Ge) => (Ge == null ? void 0 : Ge.name) === (al == null ? void 0 : al[0]))) == null ? void 0 : vl.compData;
|
|
3459
|
+
Ne == null || Ne.forEach((Ge) => {
|
|
3460
|
+
var ml;
|
|
3461
|
+
(Ge == null ? void 0 : Ge.key) === "formContent" && ((ml = Ge == null ? void 0 : Ge.contents) == null || ml.forEach((sl) => {
|
|
3462
|
+
(sl == null ? void 0 : sl.key) === (al == null ? void 0 : al[1]) && (Je = sl == null ? void 0 : sl.value);
|
|
3463
|
+
}));
|
|
3464
|
+
}), F = F === "" ? F + Je.replaceAll("/", "") : F + "/" + Je.replaceAll("/", "");
|
|
3465
|
+
}
|
|
3466
|
+
}), xe = F, xe[(xe == null ? void 0 : xe.length) - 1] !== "/")
|
|
3467
|
+
return xe;
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
})) == null ? void 0 : _.filter((i) => i);
|
|
3471
|
+
Z = [...new Set(l(Z))];
|
|
3472
|
+
let j = Z == null ? void 0 : Z.map(async (i) => {
|
|
3473
|
+
let r = await bl(i, sessionStorage.getItem("systemKey"), "");
|
|
3474
|
+
if ((r == null ? void 0 : r.length) === 0)
|
|
3475
|
+
return await gs(i);
|
|
3476
|
+
});
|
|
3477
|
+
await Promise.all(j);
|
|
3478
|
+
let e = (M = (Y = (X = l(k)) == null ? void 0 : X.extraValues) == null ? void 0 : Y.output) == null ? void 0 : M.map(async (i) => {
|
|
3479
|
+
var W, G, Ce, ke, ie, $, be, K, Ae, Se, xe, F, Te, $e, Me, He, qe, fl, hl, vl, kl, al, Je, Ne, Ge, ml, sl, $l, Sl, Tl, Bl, Fl, Ol, Ll, Pl, Rl, Ul, Vl, jl, _l, da, pa, fa, ha, va, ma, ya, ba, ga, ka, _a, Ca, wa, Da, Aa, Ia;
|
|
3480
|
+
if ((G = (W = Object.values(i)) == null ? void 0 : W[0]) != null && G.includes(".doc")) {
|
|
3481
|
+
var r = new Blob([o.data], {
|
|
3482
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
3483
|
+
}), f = o.headers["content-disposition"], b = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), C = b.exec(f), te = C == null ? void 0 : C[1];
|
|
3484
|
+
document.createElement("a");
|
|
3485
|
+
var V = window.URL.createObjectURL(r);
|
|
3486
|
+
p.value = [{
|
|
3487
|
+
name: te,
|
|
3488
|
+
blobUrl: V
|
|
3489
|
+
}], s.value = !0;
|
|
3490
|
+
} else {
|
|
3491
|
+
let Xl = (Se = (Ae = (K = (ke = l((Ce = Object.values(i)) == null ? void 0 : Ce[0])) == null ? void 0 : ke.split("[")) == null ? void 0 : K[((be = ($ = l((ie = Object.values(i)) == null ? void 0 : ie[0])) == null ? void 0 : $.split("[")) == null ? void 0 : be.length) - 1]) == null ? void 0 : Ae.split("]")) == null ? void 0 : Se[0], Be = Xl == null ? void 0 : Xl.split(":"), nl = l((xe = Object.values(i)) == null ? void 0 : xe[0]).substring(0, l((F = Object.values(i)) == null ? void 0 : F[0]).lastIndexOf("["));
|
|
3492
|
+
if (nl.includes("[") && (nl = ($e = l(nl)) == null ? void 0 : $e.slice(0, ((Te = l(nl)) == null ? void 0 : Te.length) - 1)), nl != null && nl.includes("[")) {
|
|
3493
|
+
let Re = "";
|
|
3494
|
+
(Me = sa(nl, "/")) == null || Me.forEach((Ve) => {
|
|
3495
|
+
var Nl, el, il, yl, Kl, xa, Ea;
|
|
3496
|
+
if (!(Ve != null && Ve.includes("[")))
|
|
3497
|
+
Re = Re === "" ? Re + Ve.replaceAll("/", "") : Re + "/" + Ve.replaceAll("/", "");
|
|
3498
|
+
else {
|
|
3499
|
+
let Qa = l(Ve).slice(1, ((Nl = l(Ve)) == null ? void 0 : Nl.length) - 1), Al = (xa = (Kl = (yl = (il = (el = l(Qa)) == null ? void 0 : el.split("[")) == null ? void 0 : il[1]) == null ? void 0 : yl.split("]")) == null ? void 0 : Kl[0]) == null ? void 0 : xa.split(":"), Yl = "", Zl = (Ea = U == null ? void 0 : U.find((ol) => (ol == null ? void 0 : ol.name) === (Al == null ? void 0 : Al[0]))) == null ? void 0 : Ea.compData;
|
|
3500
|
+
Zl == null || Zl.forEach((ol) => {
|
|
3501
|
+
var $a;
|
|
3502
|
+
(ol == null ? void 0 : ol.key) === "formContent" && (($a = ol == null ? void 0 : ol.contents) == null || $a.forEach((Il) => {
|
|
3503
|
+
(Il == null ? void 0 : Il.key) === (Al == null ? void 0 : Al[1]) && (Yl = Il == null ? void 0 : Il.value);
|
|
3504
|
+
}));
|
|
3505
|
+
}), Re = Re === "" ? Re + Yl.replaceAll("/", "") : Re + "/" + Yl.replaceAll("/", "");
|
|
3506
|
+
}
|
|
3507
|
+
}), nl = Re;
|
|
3508
|
+
}
|
|
3509
|
+
if (((He = o == null ? void 0 : o.data) == null ? void 0 : He.statusCode) === 200) {
|
|
3510
|
+
if ((fl = (qe = o == null ? void 0 : o.data) == null ? void 0 : qe.data) != null && fl[Be == null ? void 0 : Be[0]] && (Be == null ? void 0 : Be.length) === 1)
|
|
3511
|
+
return await he((vl = (hl = o == null ? void 0 : o.data) == null ? void 0 : hl.data) == null ? void 0 : vl[Be == null ? void 0 : Be[0]], nl, Be);
|
|
3512
|
+
if ((al = (kl = o == null ? void 0 : o.data) == null ? void 0 : kl.data) != null && al[Be == null ? void 0 : Be[0]])
|
|
3513
|
+
return await g((Ne = (Je = o == null ? void 0 : o.data) == null ? void 0 : Je.data) == null ? void 0 : Ne[Be == null ? void 0 : Be[0]], nl, Be);
|
|
3514
|
+
if ((Be == null ? void 0 : Be.length) === 1) {
|
|
3515
|
+
const Re = (sl = (ml = (Ge = o == null ? void 0 : o.data) == null ? void 0 : Ge.data) == null ? void 0 : ml.path) == null ? void 0 : sl.path;
|
|
3516
|
+
let Ve = "";
|
|
3517
|
+
(Fl = (Bl = (Tl = (Sl = ($l = Re == null ? void 0 : Re.split("(")) == null ? void 0 : $l[1]) == null ? void 0 : Sl.split(")")) == null ? void 0 : Tl[0]) == null ? void 0 : Bl.split(":")) == null || Fl.forEach((il) => {
|
|
3518
|
+
var yl, Kl;
|
|
3519
|
+
Ve = Ve === "" ? Ve + ((yl = il == null ? void 0 : il.replaceAll("'", "")) == null ? void 0 : yl.trim()) : Ve + "/" + ((Kl = il == null ? void 0 : il.replaceAll("'", "")) == null ? void 0 : Kl.trim());
|
|
3520
|
+
});
|
|
3521
|
+
let Nl = [(Ul = (Rl = (Pl = (Ll = (Ol = Re == null ? void 0 : Re.split("<")) == null ? void 0 : Ol[1]) == null ? void 0 : Ll.split(">")) == null ? void 0 : Pl[0]) == null ? void 0 : Rl.replaceAll("'", "")) == null ? void 0 : Ul.trim()], el;
|
|
3522
|
+
return (_l = (jl = (Vl = o == null ? void 0 : o.data) == null ? void 0 : Vl.data) == null ? void 0 : jl.data) != null && _l[Be == null ? void 0 : Be[0]] ? el = await he((fa = (pa = (da = o == null ? void 0 : o.data) == null ? void 0 : da.data) == null ? void 0 : pa.data) == null ? void 0 : fa[Be == null ? void 0 : Be[0]], Ve, Be) : el = await le((va = (ha = o == null ? void 0 : o.data) == null ? void 0 : ha.data) == null ? void 0 : va.data, Ve, Nl), el;
|
|
3523
|
+
} else {
|
|
3524
|
+
const Re = (ba = (ya = (ma = o == null ? void 0 : o.data) == null ? void 0 : ma.data) == null ? void 0 : ya.path) == null ? void 0 : ba.path;
|
|
3525
|
+
let Ve = "";
|
|
3526
|
+
return (wa = (Ca = (_a = (ka = (ga = Re == null ? void 0 : Re.split("(")) == null ? void 0 : ga[1]) == null ? void 0 : ka.split(")")) == null ? void 0 : _a[0]) == null ? void 0 : Ca.split(":")) == null || wa.forEach((el) => {
|
|
3527
|
+
var il, yl;
|
|
3528
|
+
Ve = Ve === "" ? Ve + ((il = el == null ? void 0 : el.replaceAll("'", "")) == null ? void 0 : il.trim()) : Ve + "/" + ((yl = el == null ? void 0 : el.replaceAll("'", "")) == null ? void 0 : yl.trim());
|
|
3529
|
+
}), await g((Ia = (Aa = (Da = o == null ? void 0 : o.data) == null ? void 0 : Da.data) == null ? void 0 : Aa.data) == null ? void 0 : Ia[Be == null ? void 0 : Be[0]], Ve, Be);
|
|
3530
|
+
}
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
});
|
|
3534
|
+
await Promise.all(e);
|
|
3535
|
+
}
|
|
3536
|
+
D.setImportLoading(!1), A.value = !0;
|
|
3537
|
+
}, _e = async (k) => {
|
|
3538
|
+
var q, ce, fe;
|
|
3539
|
+
const a = l(k);
|
|
3540
|
+
let h;
|
|
3541
|
+
k != null && k[0].path && (h = await (a == null ? void 0 : a.map(async (c, E) => {
|
|
3542
|
+
var T, O, _, X, Y, M, U, se, I, o;
|
|
3543
|
+
const J = (await gl({
|
|
3544
|
+
key: {
|
|
3545
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3546
|
+
type: "data",
|
|
3547
|
+
pageKey: (T = k == null ? void 0 : k[0]) == null ? void 0 : T.path
|
|
3548
|
+
}
|
|
3549
|
+
})).data.result;
|
|
3550
|
+
let ne = "";
|
|
3551
|
+
const z = await bl(ee.value, sessionStorage.getItem("systemKey"), "");
|
|
3552
|
+
return J == null || J.forEach((Z) => {
|
|
3553
|
+
var j, e, i, r, f;
|
|
3554
|
+
((e = (j = Z == null ? void 0 : Z.value) == null ? void 0 : j.tableData) == null ? void 0 : e.算法名称) === ((i = a == null ? void 0 : a[E]) == null ? void 0 : i.method) && (ne = (f = (r = Z == null ? void 0 : Z.value) == null ? void 0 : r.tableData) == null ? void 0 : f.算法体);
|
|
3555
|
+
}), {
|
|
3556
|
+
buttonName: ((O = a == null ? void 0 : a[E]) == null ? void 0 : O.method) ?? ((Y = (X = (_ = J == null ? void 0 : J[0]) == null ? void 0 : _.value) == null ? void 0 : X.tableData) == null ? void 0 : Y.算法名称),
|
|
3557
|
+
api: ne === "" ? (se = (U = (M = J == null ? void 0 : J[0]) == null ? void 0 : M.value) == null ? void 0 : U.tableData) == null ? void 0 : se.算法体 : ne,
|
|
3558
|
+
content: z == null ? void 0 : z.filter((Z) => Z.comp !== "methodButton"),
|
|
3559
|
+
extraContent: (I = l(c.value)) == null ? void 0 : I.slice(1),
|
|
3560
|
+
methodName: (c == null ? void 0 : c.path) ?? "",
|
|
3561
|
+
extraValues: (o = a == null ? void 0 : a[E]) == null ? void 0 : o.data
|
|
3562
|
+
};
|
|
3563
|
+
})));
|
|
3564
|
+
const w = a == null ? void 0 : a.map(async (c) => {
|
|
3565
|
+
var T, O, _, X, Y, M;
|
|
3566
|
+
const P = (T = (await gl({
|
|
3567
|
+
key: {
|
|
3568
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3569
|
+
parentTable: "",
|
|
3570
|
+
type: "method",
|
|
3571
|
+
methodName: c.method
|
|
3572
|
+
}
|
|
3573
|
+
})).data.result) == null ? void 0 : T[0], J = await gl({
|
|
3574
|
+
key: {
|
|
3575
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3576
|
+
type: "methodData",
|
|
3577
|
+
tableId: P == null ? void 0 : P.id
|
|
3578
|
+
}
|
|
3579
|
+
}), ne = await bl(ee.value, sessionStorage.getItem("systemKey"), ""), z = (O = J.data.result) == null ? void 0 : O[0];
|
|
3580
|
+
return {
|
|
3581
|
+
buttonName: (_ = P == null ? void 0 : P.key) == null ? void 0 : _.methodKey,
|
|
3582
|
+
api: (Y = (X = z == null ? void 0 : z.value) == null ? void 0 : X.tableData) == null ? void 0 : Y[0],
|
|
3583
|
+
content: ne == null ? void 0 : ne.filter((U) => U.comp !== "methodButton"),
|
|
3584
|
+
extraContent: (M = l(c.value)) == null ? void 0 : M.slice(1),
|
|
3585
|
+
methodName: (c == null ? void 0 : c.method) ?? ""
|
|
3586
|
+
};
|
|
3587
|
+
}), t = (q = k == null ? void 0 : k[0]) != null && q.path && ((ce = k == null ? void 0 : k[0]) == null ? void 0 : ce.path) !== "" ? await Promise.all(h) : await Promise.all(w);
|
|
3588
|
+
y.value = t == null ? void 0 : t.filter((c) => c == null ? void 0 : c.extraContent), (fe = y.value) == null || fe.forEach((c) => {
|
|
3589
|
+
var E;
|
|
3590
|
+
c.api === "" && ((E = c.content) == null || E.forEach((P) => {
|
|
3591
|
+
var J;
|
|
3592
|
+
P.comp == "Table" && R.setExtraContents(vs(P.compData, (J = c.extraContent) == null ? void 0 : J[0]));
|
|
3593
|
+
}));
|
|
3594
|
+
});
|
|
3595
|
+
};
|
|
3596
|
+
return ze(
|
|
3597
|
+
() => n.itemData,
|
|
3598
|
+
async () => {
|
|
3599
|
+
B.value == "view" && !A.value && await _e(l(n.itemData)), A.value = !1;
|
|
3600
|
+
},
|
|
3601
|
+
{ immediate: !0, deep: !0 }
|
|
3602
|
+
), (k, a) => {
|
|
3603
|
+
var h, w, t;
|
|
3604
|
+
return Cl(B) !== "edit" ? (oe(), ge("div", In, [
|
|
3605
|
+
(oe(!0), ge(Pe, null, Ue((h = y.value) == null ? void 0 : h.filter((q) => (q == null ? void 0 : q.buttonName) !== "保存"), (q) => (oe(), ge("div", null, [
|
|
3606
|
+
q.api !== "" ? (oe(), Oe(Cl(Ba), {
|
|
3607
|
+
key: 0,
|
|
3608
|
+
class: "calculator-content",
|
|
3609
|
+
modelValue: q.buttonName,
|
|
3610
|
+
onClickTrigger: (ce) => de(q),
|
|
3611
|
+
loading: L.value
|
|
3612
|
+
}, null, 8, ["modelValue", "onClickTrigger", "loading"])) : We("", !0)
|
|
3613
|
+
]))), 256)),
|
|
3614
|
+
Cl(ue) !== "" && ((t = Cl(ee)) == null ? void 0 : t[((w = Cl(ee)) == null ? void 0 : w.length) - 1]) !== "/" ? (oe(), Oe(Cl(Ba), {
|
|
3615
|
+
key: 0,
|
|
3616
|
+
class: "calculator-content",
|
|
3617
|
+
onClickTrigger: pe,
|
|
3618
|
+
modelValue: "保存"
|
|
3619
|
+
})) : We("", !0),
|
|
3620
|
+
s.value ? (oe(), Oe(ja, {
|
|
3621
|
+
key: 1,
|
|
3622
|
+
fileDataList: p.value,
|
|
3623
|
+
onDestroy: d
|
|
3624
|
+
}, null, 8, ["fileDataList"])) : We("", !0)
|
|
3625
|
+
])) : We("", !0);
|
|
3626
|
+
};
|
|
3627
|
+
}
|
|
3628
|
+
}, En = /* @__PURE__ */ je(xn, [["__scopeId", "data-v-e6a4bfbe"]]), $n = {};
|
|
3629
|
+
function Sn(u, y) {
|
|
3630
|
+
return " 567 ";
|
|
3631
|
+
}
|
|
3632
|
+
const Tn = /* @__PURE__ */ je($n, [["render", Sn]]), Bn = { class: "module content" }, Fn = { class: "module data" }, On = { class: "module layout" }, Ln = { class: "form-content" }, Pn = /* @__PURE__ */ Dl({
|
|
3633
|
+
__name: "operate",
|
|
3634
|
+
props: {
|
|
3635
|
+
itemContents: {
|
|
3636
|
+
type: Array,
|
|
3637
|
+
default: () => []
|
|
3638
|
+
},
|
|
3639
|
+
originalItemContents: {
|
|
3640
|
+
type: Array,
|
|
3641
|
+
default: () => []
|
|
3642
|
+
}
|
|
3643
|
+
},
|
|
3644
|
+
emits: ["change"],
|
|
3645
|
+
setup(u, { emit: y }) {
|
|
3646
|
+
const n = u, s = y, p = oa({
|
|
3647
|
+
visible: !1,
|
|
3648
|
+
width: "40%",
|
|
3649
|
+
title: "签名配置"
|
|
3650
|
+
}), R = Q("create"), L = Q([
|
|
3651
|
+
{
|
|
3652
|
+
label: "取消",
|
|
3653
|
+
background: "#c0c4cc"
|
|
3654
|
+
},
|
|
3655
|
+
{
|
|
3656
|
+
label: "确认",
|
|
3657
|
+
background: "#436aaf"
|
|
3658
|
+
}
|
|
3659
|
+
]), D = Q([
|
|
3660
|
+
{
|
|
3661
|
+
label: "宽度(%):",
|
|
3662
|
+
prop: "signPadWidth",
|
|
3663
|
+
type: "number",
|
|
3664
|
+
value: "30"
|
|
3665
|
+
},
|
|
3666
|
+
{
|
|
3667
|
+
label: "弹窗名称:",
|
|
3668
|
+
prop: "dialogTitle",
|
|
3669
|
+
type: "input",
|
|
3670
|
+
value: ""
|
|
3671
|
+
},
|
|
3672
|
+
{
|
|
3673
|
+
label: "弹窗宽度(%):",
|
|
3674
|
+
prop: "dialogWidth",
|
|
3675
|
+
type: "number",
|
|
3676
|
+
value: "30"
|
|
3677
|
+
},
|
|
3678
|
+
{
|
|
3679
|
+
label: "弹窗显示:",
|
|
3680
|
+
prop: "dialogShow",
|
|
3681
|
+
type: "radio",
|
|
3682
|
+
contents: [
|
|
3683
|
+
{
|
|
3684
|
+
label: "显示",
|
|
3685
|
+
value: !0
|
|
3686
|
+
},
|
|
3687
|
+
{
|
|
3688
|
+
label: "隐藏",
|
|
3689
|
+
value: !1
|
|
3690
|
+
}
|
|
3691
|
+
],
|
|
3692
|
+
value: !1,
|
|
3693
|
+
isFormColHidden: !0
|
|
3694
|
+
},
|
|
3695
|
+
{
|
|
3696
|
+
label: "路径:",
|
|
3697
|
+
prop: "url",
|
|
3698
|
+
type: "input",
|
|
3699
|
+
value: "",
|
|
3700
|
+
isFormColHidden: !0
|
|
3701
|
+
}
|
|
3702
|
+
]), N = ua(() => [
|
|
3703
|
+
{
|
|
3704
|
+
label: "",
|
|
3705
|
+
prop: "index",
|
|
3706
|
+
type: "input",
|
|
3707
|
+
value: "",
|
|
3708
|
+
isFormColHidden: !0
|
|
3709
|
+
},
|
|
3710
|
+
{
|
|
3711
|
+
label: "类型:",
|
|
3712
|
+
prop: "label",
|
|
3713
|
+
type: "select",
|
|
3714
|
+
contents: [
|
|
3715
|
+
{
|
|
3716
|
+
label: "电子签名",
|
|
3717
|
+
value: "电子签名"
|
|
3718
|
+
},
|
|
3719
|
+
{
|
|
3720
|
+
label: "签字版",
|
|
3721
|
+
value: "签字版"
|
|
3722
|
+
},
|
|
3723
|
+
{
|
|
3724
|
+
label: "上传签名",
|
|
3725
|
+
value: "上传签名"
|
|
3726
|
+
}
|
|
3727
|
+
],
|
|
3728
|
+
value: ""
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
label: "图标",
|
|
3732
|
+
prop: "icon",
|
|
3733
|
+
type: "inputPopover",
|
|
3734
|
+
value: ""
|
|
3735
|
+
}
|
|
3736
|
+
// {
|
|
3737
|
+
// label: '是否禁用',
|
|
3738
|
+
// prop: 'disabled',
|
|
3739
|
+
// type: 'radio',
|
|
3740
|
+
// contents: [
|
|
3741
|
+
// {
|
|
3742
|
+
// label: '是',
|
|
3743
|
+
// value: true,
|
|
3744
|
+
// },
|
|
3745
|
+
// {
|
|
3746
|
+
// label: '否',
|
|
3747
|
+
// value: false,
|
|
3748
|
+
// }
|
|
3749
|
+
// ],
|
|
3750
|
+
// value: false
|
|
3751
|
+
// },
|
|
3752
|
+
]), H = Q({}), B = Q([]), ue = () => ({
|
|
3753
|
+
comp: "Signature",
|
|
3754
|
+
compData: [
|
|
3755
|
+
{
|
|
3756
|
+
key: "signTypeList",
|
|
3757
|
+
contents: B.value
|
|
3758
|
+
},
|
|
3759
|
+
{
|
|
3760
|
+
key: "signConfig",
|
|
3761
|
+
contents: H.value
|
|
3762
|
+
}
|
|
3763
|
+
]
|
|
3764
|
+
}), ee = (A) => {
|
|
3765
|
+
var x;
|
|
3766
|
+
H.value = l(A), s("change", (x = ue()) == null ? void 0 : x.compData);
|
|
3767
|
+
}, ye = (A) => {
|
|
3768
|
+
var x, pe;
|
|
3769
|
+
if ((A == null ? void 0 : A.buttonName) === "确认") {
|
|
3770
|
+
const d = l(A == null ? void 0 : A.content);
|
|
3771
|
+
switch (R.value) {
|
|
3772
|
+
case "create":
|
|
3773
|
+
B.value.push({
|
|
3774
|
+
...d,
|
|
3775
|
+
index: ((x = B.value) == null ? void 0 : x.length) + 1
|
|
3776
|
+
});
|
|
3777
|
+
break;
|
|
3778
|
+
}
|
|
3779
|
+
s("change", (pe = ue()) == null ? void 0 : pe.compData), p.visible = !1;
|
|
3780
|
+
} else
|
|
3781
|
+
p.visible = !1;
|
|
3782
|
+
}, re = (A, x) => {
|
|
3783
|
+
var pe, d;
|
|
3784
|
+
switch (A) {
|
|
3785
|
+
case "create":
|
|
3786
|
+
(pe = N.value) == null || pe.forEach((v) => {
|
|
3787
|
+
v.value = "";
|
|
3788
|
+
}), R.value = "create", p.visible = !0;
|
|
3789
|
+
break;
|
|
3790
|
+
case "update":
|
|
3791
|
+
(d = N.value) == null || d.forEach((v) => {
|
|
3792
|
+
v.value = x[v == null ? void 0 : v.prop];
|
|
3793
|
+
}), R.value = "update", p.visible = !0;
|
|
3794
|
+
break;
|
|
3795
|
+
case "delete":
|
|
3796
|
+
B.value.splice(x, 1), R.value = "delete";
|
|
3797
|
+
break;
|
|
3798
|
+
}
|
|
3799
|
+
}, me = () => {
|
|
3800
|
+
p.visible = !1;
|
|
3801
|
+
};
|
|
3802
|
+
return ze(() => n == null ? void 0 : n.itemContents, (A) => {
|
|
3803
|
+
var x, pe;
|
|
3804
|
+
A && (H.value = ((x = A == null ? void 0 : A.find((d) => d.key === "signConfig")) == null ? void 0 : x.contents) ?? {}, B.value = ((pe = A == null ? void 0 : A.find((d) => d.key === "signTypeList")) == null ? void 0 : pe.contents) ?? []);
|
|
3805
|
+
}, { immediate: !0 }), (A, x) => {
|
|
3806
|
+
const pe = Le("svg-icon"), d = Le("el-button");
|
|
3807
|
+
return oe(), ge(Pe, null, [
|
|
3808
|
+
S("div", null, [
|
|
3809
|
+
S("div", Bn, [
|
|
3810
|
+
x[2] || (x[2] = S("h4", { class: "module-title" }, "签名类型", -1)),
|
|
3811
|
+
ae(d, {
|
|
3812
|
+
class: "module-icon",
|
|
3813
|
+
id: "themeButton",
|
|
3814
|
+
onClick: x[0] || (x[0] = (v) => re("create"))
|
|
3815
|
+
}, {
|
|
3816
|
+
icon: ve(() => [
|
|
3817
|
+
ae(pe, {
|
|
3818
|
+
name: "Plus",
|
|
3819
|
+
class: "icon-size"
|
|
3820
|
+
})
|
|
3821
|
+
]),
|
|
3822
|
+
default: ve(() => [
|
|
3823
|
+
x[1] || (x[1] = Fe(" 新增 "))
|
|
3824
|
+
]),
|
|
3825
|
+
_: 1,
|
|
3826
|
+
__: [1]
|
|
3827
|
+
})
|
|
3828
|
+
]),
|
|
3829
|
+
S("div", Fn, [
|
|
3830
|
+
(oe(!0), ge(Pe, null, Ue(B.value, (v, m) => (oe(), ge("div", {
|
|
3831
|
+
class: "module-data-item",
|
|
3832
|
+
key: m
|
|
3833
|
+
}, [
|
|
3834
|
+
S("span", null, De(v == null ? void 0 : v.label), 1),
|
|
3835
|
+
S("div", null, [
|
|
3836
|
+
ae(d, {
|
|
3837
|
+
type: "primary",
|
|
3838
|
+
size: "small",
|
|
3839
|
+
onClick: (g) => re("update", { ...v, index: m + 1 })
|
|
3840
|
+
}, {
|
|
3841
|
+
default: ve(() => x[3] || (x[3] = [
|
|
3842
|
+
Fe("修改")
|
|
3843
|
+
])),
|
|
3844
|
+
_: 2,
|
|
3845
|
+
__: [3]
|
|
3846
|
+
}, 1032, ["onClick"]),
|
|
3847
|
+
ae(d, {
|
|
3848
|
+
type: "danger",
|
|
3849
|
+
size: "small",
|
|
3850
|
+
onClick: (g) => re("delete", m)
|
|
3851
|
+
}, {
|
|
3852
|
+
default: ve(() => x[4] || (x[4] = [
|
|
3853
|
+
Fe("删除")
|
|
3854
|
+
])),
|
|
3855
|
+
_: 2,
|
|
3856
|
+
__: [4]
|
|
3857
|
+
}, 1032, ["onClick"])
|
|
3858
|
+
])
|
|
3859
|
+
]))), 128))
|
|
3860
|
+
]),
|
|
3861
|
+
S("div", On, [
|
|
3862
|
+
ae(Qe, {
|
|
3863
|
+
rowContents: D.value,
|
|
3864
|
+
onChange: ee
|
|
3865
|
+
}, null, 8, ["rowContents"])
|
|
3866
|
+
])
|
|
3867
|
+
]),
|
|
3868
|
+
ae(Xe, {
|
|
3869
|
+
visible: p.visible,
|
|
3870
|
+
title: p.title,
|
|
3871
|
+
onBeforeDestroy: me,
|
|
3872
|
+
width: p.width
|
|
3873
|
+
}, {
|
|
3874
|
+
default: ve(() => [
|
|
3875
|
+
S("div", Ln, [
|
|
3876
|
+
(oe(), Oe(Qe, {
|
|
3877
|
+
rowContents: N.value,
|
|
3878
|
+
key: N.value,
|
|
3879
|
+
isEnableWrap: !1,
|
|
3880
|
+
isButtonRow: !1,
|
|
3881
|
+
isStartJustify: !1,
|
|
3882
|
+
buttonValue: L.value,
|
|
3883
|
+
onOnButtonClick: ye
|
|
3884
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
3885
|
+
])
|
|
3886
|
+
]),
|
|
3887
|
+
_: 1
|
|
3888
|
+
}, 8, ["visible", "title", "width"])
|
|
3889
|
+
], 64);
|
|
3890
|
+
};
|
|
3891
|
+
}
|
|
3892
|
+
}), Rn = /* @__PURE__ */ je(Pn, [["__scopeId", "data-v-487e0536"]]), Un = /* @__PURE__ */ Dl({
|
|
3893
|
+
__name: "index",
|
|
3894
|
+
props: {
|
|
3895
|
+
stepConfig: {
|
|
3896
|
+
type: Object,
|
|
3897
|
+
default: {}
|
|
3898
|
+
},
|
|
3899
|
+
stepList: {
|
|
3900
|
+
type: Array,
|
|
3901
|
+
default: () => []
|
|
3902
|
+
}
|
|
3903
|
+
},
|
|
3904
|
+
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
3905
|
+
setup(u, { emit: y }) {
|
|
3906
|
+
const n = u, s = y, p = Q(1), R = ua(() => {
|
|
3907
|
+
var ue, ee;
|
|
3908
|
+
return (ue = n == null ? void 0 : n.stepConfig) != null && ue.allowTrigger ? p.value : (ee = n == null ? void 0 : n.stepConfig) == null ? void 0 : ee.active;
|
|
3909
|
+
}), L = (ue, ee) => {
|
|
3910
|
+
p.value = ee, s("clickStep", ue, ee);
|
|
3911
|
+
}, D = (ue) => ts(ue), N = () => {
|
|
3912
|
+
var ee;
|
|
3913
|
+
const ue = (ee = n == null ? void 0 : n.stepList) == null ? void 0 : ee.find((ye, re) => re + 1 === R.value);
|
|
3914
|
+
return console.log("findStep", ue), ue ? ue == null ? void 0 : ue.children : [];
|
|
3915
|
+
}, H = (ue) => {
|
|
3916
|
+
s("clickTrigger", ue);
|
|
3917
|
+
}, B = (ue) => {
|
|
3918
|
+
s("changeTrigger", ue);
|
|
3919
|
+
};
|
|
3920
|
+
return (ue, ee) => {
|
|
3921
|
+
var me, A, x, pe, d;
|
|
3922
|
+
const ye = Le("el-step"), re = Le("el-steps");
|
|
3923
|
+
return oe(), ge(Pe, null, [
|
|
3924
|
+
ae(re, {
|
|
3925
|
+
direction: (me = u.stepConfig) == null ? void 0 : me.direction,
|
|
3926
|
+
active: R.value,
|
|
3927
|
+
"finish-status": "success",
|
|
3928
|
+
simple: (A = u.stepConfig) == null ? void 0 : A.simple,
|
|
3929
|
+
"align-center": ((x = u.stepConfig) == null ? void 0 : x.alignCenter) ?? !0
|
|
3930
|
+
}, {
|
|
3931
|
+
default: ve(() => [
|
|
3932
|
+
(oe(!0), ge(Pe, null, Ue(u.stepList, (v, m) => (oe(), Oe(ye, {
|
|
3933
|
+
key: m,
|
|
3934
|
+
class: "step-item",
|
|
3935
|
+
onClick: (g) => L(v, m + 1)
|
|
3936
|
+
}, {
|
|
3937
|
+
title: ve(() => [
|
|
3938
|
+
Gl(ue.$slots, "title", {
|
|
3939
|
+
title: v == null ? void 0 : v.title
|
|
3940
|
+
}, void 0, !0)
|
|
3941
|
+
]),
|
|
3942
|
+
description: ve(() => [
|
|
3943
|
+
Gl(ue.$slots, "description", {
|
|
3944
|
+
description: v == null ? void 0 : v.description
|
|
3945
|
+
}, void 0, !0)
|
|
3946
|
+
]),
|
|
3947
|
+
_: 2
|
|
3948
|
+
}, 1032, ["onClick"]))), 128))
|
|
3949
|
+
]),
|
|
3950
|
+
_: 3
|
|
3951
|
+
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
3952
|
+
(pe = u.stepConfig) != null && pe.allowTrigger && ((d = u.stepConfig) != null && d.active) ? (oe(!0), ge(Pe, { key: 0 }, Ue(N(), (v, m) => (oe(), ge("div", {
|
|
3953
|
+
key: m,
|
|
3954
|
+
class: "step-cont-wrap"
|
|
3955
|
+
}, [
|
|
3956
|
+
(oe(), Oe(Ml(D(v == null ? void 0 : v.type)), {
|
|
3957
|
+
modelValue: v.value,
|
|
3958
|
+
"onUpdate:modelValue": (g) => v.value = g,
|
|
3959
|
+
onClickTrigger: H,
|
|
3960
|
+
onChangeTrigger: B,
|
|
3961
|
+
content: v == null ? void 0 : v.content
|
|
3962
|
+
}, ss({ _: 2 }, [
|
|
3963
|
+
Ue(ue.$slots, (g, le) => ({
|
|
3964
|
+
name: le,
|
|
3965
|
+
fn: ve((he) => [
|
|
3966
|
+
Gl(ue.$slots, le, is({ ref_for: !0 }, he || {}), void 0, !0)
|
|
3967
|
+
])
|
|
3968
|
+
}))
|
|
3969
|
+
]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
|
|
3970
|
+
]))), 128)) : We("", !0)
|
|
3971
|
+
], 64);
|
|
3972
|
+
};
|
|
3973
|
+
}
|
|
3974
|
+
}), Vn = /* @__PURE__ */ je(Un, [["__scopeId", "data-v-d7c99969"]]), jn = /* @__PURE__ */ Dl({
|
|
3975
|
+
__name: "index",
|
|
3976
|
+
props: {
|
|
3977
|
+
itemData: {
|
|
3978
|
+
type: Array,
|
|
3979
|
+
default: () => []
|
|
3980
|
+
},
|
|
3981
|
+
childItemData: {
|
|
3982
|
+
type: Array,
|
|
3983
|
+
default: () => []
|
|
3984
|
+
}
|
|
3985
|
+
},
|
|
3986
|
+
emits: ["clickStep"],
|
|
3987
|
+
setup(u, { emit: y }) {
|
|
3988
|
+
const n = u, s = y, p = Q({}), R = Q([]), L = (D, N) => {
|
|
3989
|
+
s("clickStep", D, N);
|
|
3990
|
+
};
|
|
3991
|
+
return ze(() => n == null ? void 0 : n.itemData, (D) => {
|
|
3992
|
+
var N, H;
|
|
3993
|
+
R.value = (N = D == null ? void 0 : D.find((B) => (B == null ? void 0 : B.key) === "stepList")) == null ? void 0 : N.contents, p.value = (H = D == null ? void 0 : D.find((B) => (B == null ? void 0 : B.key) === "stepConfig")) == null ? void 0 : H.contents;
|
|
3994
|
+
}, {
|
|
3995
|
+
immediate: !0
|
|
3996
|
+
}), (D, N) => {
|
|
3997
|
+
const H = Le("svg-icon");
|
|
3998
|
+
return oe(), Oe(Vn, {
|
|
3999
|
+
stepConfig: p.value,
|
|
4000
|
+
stepList: R.value,
|
|
4001
|
+
onClickStep: L
|
|
4002
|
+
}, {
|
|
4003
|
+
icon: ve(() => [
|
|
4004
|
+
ae(H, { name: "import" })
|
|
4005
|
+
]),
|
|
4006
|
+
title: ve(({ title: B }) => [
|
|
4007
|
+
Fe(De(B), 1)
|
|
4008
|
+
]),
|
|
4009
|
+
description: ve(({ description: B }) => [
|
|
4010
|
+
Fe(De(B), 1)
|
|
4011
|
+
]),
|
|
4012
|
+
_: 1
|
|
4013
|
+
}, 8, ["stepConfig", "stepList"]);
|
|
4014
|
+
};
|
|
4015
|
+
}
|
|
4016
|
+
}), Nn = /* @__PURE__ */ Dl({
|
|
4017
|
+
__name: "index",
|
|
4018
|
+
props: {
|
|
4019
|
+
activities: {
|
|
4020
|
+
type: Array,
|
|
4021
|
+
default: () => []
|
|
4022
|
+
},
|
|
4023
|
+
timeLineConfig: {
|
|
4024
|
+
type: Object,
|
|
4025
|
+
default: () => {
|
|
4026
|
+
}
|
|
4027
|
+
}
|
|
4028
|
+
},
|
|
4029
|
+
setup(u) {
|
|
4030
|
+
return (y, n) => {
|
|
4031
|
+
const s = Le("el-timeline-item"), p = Le("el-timeline");
|
|
4032
|
+
return oe(), Oe(p, null, {
|
|
4033
|
+
default: ve(() => [
|
|
4034
|
+
(oe(!0), ge(Pe, null, Ue(u.activities, (R, L) => (oe(), Oe(s, {
|
|
4035
|
+
key: L,
|
|
4036
|
+
timestamp: R.timestamp,
|
|
4037
|
+
placement: u.timeLineConfig.placement,
|
|
4038
|
+
center: u.timeLineConfig.isCenter,
|
|
4039
|
+
"hide-timestamp": !0,
|
|
4040
|
+
type: u.timeLineConfig.type,
|
|
4041
|
+
color: u.timeLineConfig.color,
|
|
4042
|
+
size: u.timeLineConfig.size,
|
|
4043
|
+
icon: u.timeLineConfig.icon,
|
|
4044
|
+
hollow: u.timeLineConfig.isHollow
|
|
4045
|
+
}, {
|
|
4046
|
+
default: ve(() => [
|
|
4047
|
+
Gl(y.$slots, "content", {
|
|
4048
|
+
content: R == null ? void 0 : R.content,
|
|
4049
|
+
timestamp: R == null ? void 0 : R.timestamp
|
|
4050
|
+
}, void 0, !0)
|
|
4051
|
+
]),
|
|
4052
|
+
_: 2
|
|
4053
|
+
}, 1032, ["timestamp", "placement", "center", "type", "color", "size", "icon", "hollow"]))), 128))
|
|
4054
|
+
]),
|
|
4055
|
+
_: 3
|
|
4056
|
+
});
|
|
4057
|
+
};
|
|
4058
|
+
}
|
|
4059
|
+
}), Kn = /* @__PURE__ */ je(Nn, [["__scopeId", "data-v-4172a886"]]), Wn = { class: "line-content" }, zn = { class: "line-time" }, Mn = /* @__PURE__ */ Dl({
|
|
4060
|
+
__name: "index",
|
|
4061
|
+
props: {
|
|
4062
|
+
itemData: {
|
|
4063
|
+
type: Array,
|
|
4064
|
+
default: () => []
|
|
4065
|
+
}
|
|
4066
|
+
},
|
|
4067
|
+
setup(u) {
|
|
4068
|
+
const y = u, n = Q({}), s = Q([]);
|
|
4069
|
+
return ze(() => y == null ? void 0 : y.itemData, (p) => {
|
|
4070
|
+
var R, L;
|
|
4071
|
+
s.value = (R = p == null ? void 0 : p.find((D) => (D == null ? void 0 : D.key) === "timeLineList")) == null ? void 0 : R.contents, n.value = (L = p == null ? void 0 : p.find((D) => (D == null ? void 0 : D.key) === "timeLineConfig")) == null ? void 0 : L.contents;
|
|
4072
|
+
}, {
|
|
4073
|
+
immediate: !0
|
|
4074
|
+
}), (p, R) => (oe(), Oe(Kn, {
|
|
4075
|
+
activities: s.value,
|
|
4076
|
+
timeLineConfig: n.value
|
|
4077
|
+
}, {
|
|
4078
|
+
content: ve(({ content: L, timestamp: D }) => [
|
|
4079
|
+
S("span", Wn, De(L), 1),
|
|
4080
|
+
S("span", zn, De(D), 1)
|
|
4081
|
+
]),
|
|
4082
|
+
_: 1
|
|
4083
|
+
}, 8, ["activities", "timeLineConfig"]));
|
|
4084
|
+
}
|
|
4085
|
+
}), Jn = /* @__PURE__ */ je(Mn, [["__scopeId", "data-v-b4d9deed"]]), Gn = { class: "tabs-content" }, Hn = {
|
|
4086
|
+
__name: "index",
|
|
4087
|
+
props: {
|
|
4088
|
+
itemData: {
|
|
4089
|
+
type: Array,
|
|
4090
|
+
default: () => []
|
|
4091
|
+
},
|
|
4092
|
+
childItemData: {
|
|
4093
|
+
type: Array,
|
|
4094
|
+
default: () => []
|
|
4095
|
+
},
|
|
4096
|
+
index: Number
|
|
4097
|
+
},
|
|
4098
|
+
setup(u) {
|
|
4099
|
+
const y = u, n = Q([]);
|
|
4100
|
+
return ze(
|
|
4101
|
+
() => y == null ? void 0 : y.itemData,
|
|
4102
|
+
(s) => {
|
|
4103
|
+
const p = s.find((R) => (R == null ? void 0 : R.key) == "stepList");
|
|
4104
|
+
p && (n.value = p.contents.map((R) => ({
|
|
4105
|
+
value: R.value || R.title,
|
|
4106
|
+
label: R.label || R.title,
|
|
4107
|
+
children: R.children || []
|
|
4108
|
+
// 关键:传递子内容
|
|
4109
|
+
})));
|
|
4110
|
+
},
|
|
4111
|
+
{ immediate: !0, deep: !0 }
|
|
4112
|
+
), (s, p) => (oe(), ge("div", Gn, [
|
|
4113
|
+
ae(ds, { tabsContents: n.value }, null, 8, ["tabsContents"])
|
|
4114
|
+
]));
|
|
4115
|
+
}
|
|
4116
|
+
}, qn = /* @__PURE__ */ je(Hn, [["__scopeId", "data-v-d3bb10b7"]]), Ql = cs("tabComp", {
|
|
4117
|
+
state: () => ({
|
|
4118
|
+
itemData: [],
|
|
4119
|
+
originalData: [],
|
|
4120
|
+
extraContents: [],
|
|
4121
|
+
nodeDev: "",
|
|
4122
|
+
isEdit: "view",
|
|
4123
|
+
isRefreshCurStructure: !1,
|
|
4124
|
+
isSubmitCurStructure: !1,
|
|
4125
|
+
curStructureCompIds: []
|
|
4126
|
+
}),
|
|
4127
|
+
actions: {
|
|
4128
|
+
setItemData(u) {
|
|
4129
|
+
this.itemData = u;
|
|
4130
|
+
},
|
|
4131
|
+
setCurStructureCompIds(u) {
|
|
4132
|
+
this.curStructureCompIds = u;
|
|
4133
|
+
},
|
|
4134
|
+
setRefreshCurStructure(u) {
|
|
4135
|
+
this.isRefreshCurStructure = u;
|
|
4136
|
+
},
|
|
4137
|
+
setOriginalData(u) {
|
|
4138
|
+
this.originalData = u;
|
|
4139
|
+
},
|
|
4140
|
+
setExtraContents(u) {
|
|
4141
|
+
this.extraContents = u;
|
|
4142
|
+
},
|
|
4143
|
+
setNodeDev(u) {
|
|
4144
|
+
this.nodeDev = u;
|
|
4145
|
+
},
|
|
4146
|
+
setIsEdit(u) {
|
|
4147
|
+
this.isEdit = u;
|
|
4148
|
+
}
|
|
4149
|
+
}
|
|
4150
|
+
}), Qn = { class: "type-select" }, Xn = ["onClick"], Yn = { class: "list-icon" }, Zn = {
|
|
4151
|
+
__name: "modelSelect",
|
|
4152
|
+
setup(u) {
|
|
4153
|
+
const y = Ql(Ye), { itemData: n } = Ze(y), s = (p) => {
|
|
4154
|
+
const R = l(n.value);
|
|
4155
|
+
R.push({
|
|
4156
|
+
comp: p.comp,
|
|
4157
|
+
name: p.name,
|
|
4158
|
+
compData: []
|
|
4159
|
+
}), y.setItemData(R);
|
|
4160
|
+
};
|
|
4161
|
+
return (p, R) => {
|
|
4162
|
+
const L = Le("svg-icon");
|
|
4163
|
+
return oe(), ge("div", Qn, [
|
|
4164
|
+
(oe(!0), ge(Pe, null, Ue(Cl(Po), (D, N) => (oe(), ge("div", {
|
|
4165
|
+
class: "type-list",
|
|
4166
|
+
key: N
|
|
4167
|
+
}, [
|
|
4168
|
+
S("div", {
|
|
4169
|
+
class: "list-content",
|
|
4170
|
+
onClick: (H) => s(D)
|
|
4171
|
+
}, [
|
|
4172
|
+
S("div", Yn, [
|
|
4173
|
+
ae(L, {
|
|
4174
|
+
name: D.icon
|
|
4175
|
+
}, null, 8, ["name"])
|
|
4176
|
+
]),
|
|
4177
|
+
S("div", null, De(D.name), 1)
|
|
4178
|
+
], 8, Xn)
|
|
4179
|
+
]))), 128))
|
|
4180
|
+
]);
|
|
4181
|
+
};
|
|
4182
|
+
}
|
|
4183
|
+
}, eo = /* @__PURE__ */ je(Zn, [["__scopeId", "data-v-91799bf8"]]), lo = { class: "fill-content" }, ao = { class: "operate-content" }, so = { class: "collapse-title-content" }, io = { class: "collapse-title-item" }, no = { key: 1 }, oo = ["onClick"], uo = { class: "icon-content" }, ro = {
|
|
4184
|
+
key: 0,
|
|
4185
|
+
class: "edit-content"
|
|
4186
|
+
}, co = ["onClick"], to = { class: "comp-child" }, po = {
|
|
4187
|
+
__name: "modelFill",
|
|
4188
|
+
setup(u) {
|
|
4189
|
+
const y = Ql(Ye), { itemData: n, originalData: s } = Ze(y), p = Q([]);
|
|
4190
|
+
Q([]);
|
|
4191
|
+
const R = Q([]), L = Q([]), D = (ye) => {
|
|
4192
|
+
var me;
|
|
4193
|
+
let re = (me = l(L.value)) == null ? void 0 : me.map((A, x) => (ye === x && (A.content = !0), A));
|
|
4194
|
+
L.value = re;
|
|
4195
|
+
}, N = (ye) => {
|
|
4196
|
+
var me;
|
|
4197
|
+
let re = (me = l(L.value)) == null ? void 0 : me.map((A, x) => (ye === x && (A.content = !1), A));
|
|
4198
|
+
L.value = re, p.value = l(n.value);
|
|
4199
|
+
}, H = (ye, re) => {
|
|
4200
|
+
var pe;
|
|
4201
|
+
let me = (pe = l(L.value)) == null ? void 0 : pe.map((d, v) => (ye === v && (d.content = !1), d));
|
|
4202
|
+
L.value = me;
|
|
4203
|
+
const A = l(n.value), x = A == null ? void 0 : A.filter((d, v) => (v === ye && (d.name = re), d));
|
|
4204
|
+
y.setOriginalData(x), y.setItemData(x);
|
|
4205
|
+
};
|
|
4206
|
+
ze(
|
|
4207
|
+
() => n.value,
|
|
4208
|
+
() => {
|
|
4209
|
+
var ye, re, me;
|
|
4210
|
+
!n.value || ((ye = n.value) == null ? void 0 : ye.length) === 0 ? p.value = [] : p.value = (re = l(n.value)) == null ? void 0 : re.filter((A) => (A == null ? void 0 : A.comp) !== "methodButton"), R.value = p.value, L.value = (me = l(R.value)) == null ? void 0 : me.map((A, x) => ({
|
|
4211
|
+
id: x,
|
|
4212
|
+
content: !1
|
|
4213
|
+
}));
|
|
4214
|
+
},
|
|
4215
|
+
{ deep: !0, immediate: !0 }
|
|
4216
|
+
);
|
|
4217
|
+
const B = (ye) => ta(ye), ue = (ye, re, me) => {
|
|
4218
|
+
var x, pe;
|
|
4219
|
+
if (!ye) return;
|
|
4220
|
+
let A = l(n.value);
|
|
4221
|
+
A = (x = A == null ? void 0 : A.map((d, v) => (v === me && (d.compData = ye), d))) == null ? void 0 : x.filter((d) => (d == null ? void 0 : d.comp) !== "methodButton"), L.value = (pe = l(A)) == null ? void 0 : pe.map((d, v) => ({
|
|
4222
|
+
id: v,
|
|
4223
|
+
content: !1
|
|
4224
|
+
})), y.setOriginalData(A), y.setItemData(A);
|
|
4225
|
+
}, ee = (ye) => {
|
|
4226
|
+
pl.confirm("是否确认要删除", "", {
|
|
4227
|
+
confirmButtonText: "确认",
|
|
4228
|
+
cancelButtonText: "取消",
|
|
4229
|
+
type: "warning"
|
|
4230
|
+
}).then(() => {
|
|
4231
|
+
const re = l(n.value), me = re == null ? void 0 : re.filter((A, x) => x !== ye);
|
|
4232
|
+
y.setOriginalData(me), y.setItemData(me), ll({
|
|
4233
|
+
type: "success",
|
|
4234
|
+
message: "删除成功"
|
|
4235
|
+
});
|
|
4236
|
+
}).catch(() => {
|
|
4237
|
+
});
|
|
4238
|
+
};
|
|
4239
|
+
return (ye, re) => {
|
|
4240
|
+
const me = Le("svg-icon");
|
|
4241
|
+
return oe(), ge("div", lo, [
|
|
4242
|
+
re[1] || (re[1] = S("div", { class: "fill-operate" }, De("操作栏"), -1)),
|
|
4243
|
+
S("div", ao, [
|
|
4244
|
+
ae(As, {
|
|
4245
|
+
class: "collapse-content",
|
|
4246
|
+
collapseContents: p.value
|
|
4247
|
+
}, {
|
|
4248
|
+
title: ve(({ item: A, index: x }) => {
|
|
4249
|
+
var pe, d, v, m, g, le, he, we, de, _e;
|
|
4250
|
+
return [
|
|
4251
|
+
S("div", so, [
|
|
4252
|
+
S("div", io, [
|
|
4253
|
+
(d = (pe = L.value) == null ? void 0 : pe.find((k) => k.id === x)) != null && d.content ? We("", !0) : (oe(), ge("div", {
|
|
4254
|
+
key: 0,
|
|
4255
|
+
class: "collapse-title",
|
|
4256
|
+
style: ns({ marginRight: A.name && A.name !== "" ? "8px" : "0px" })
|
|
4257
|
+
}, De(A.name), 5)),
|
|
4258
|
+
(m = (v = L.value) == null ? void 0 : v.find((k) => k.id === x)) != null && m.content ? (oe(), ge("div", no, [
|
|
4259
|
+
ae(ps, {
|
|
4260
|
+
modelValue: A.name,
|
|
4261
|
+
"onUpdate:modelValue": (k) => A.name = k,
|
|
4262
|
+
onClick: re[0] || (re[0] = Wl(() => {
|
|
4263
|
+
}, ["stop"]))
|
|
4264
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4265
|
+
])) : We("", !0),
|
|
4266
|
+
(le = (g = L.value) == null ? void 0 : g.find((k) => k.id === x)) != null && le.content ? We("", !0) : (oe(), ge("div", {
|
|
4267
|
+
key: 2,
|
|
4268
|
+
onClick: Wl((k) => D(x), ["stop"]),
|
|
4269
|
+
class: "icon-content"
|
|
4270
|
+
}, [
|
|
4271
|
+
ae(me, {
|
|
4272
|
+
name: "Edit",
|
|
4273
|
+
style: { width: "16px", height: "16px" }
|
|
4274
|
+
})
|
|
4275
|
+
], 8, oo))
|
|
4276
|
+
]),
|
|
4277
|
+
S("div", uo, [
|
|
4278
|
+
(we = (he = L.value) == null ? void 0 : he.find((k) => k.id === x)) != null && we.content ? (oe(), ge("div", ro, [
|
|
4279
|
+
ae(me, {
|
|
4280
|
+
name: "Cancel",
|
|
4281
|
+
style: { width: "16px", height: "16px" },
|
|
4282
|
+
class: "icon-content",
|
|
4283
|
+
onClick: Wl((k) => N(x), ["stop"])
|
|
4284
|
+
}, null, 8, ["onClick"]),
|
|
4285
|
+
ae(me, {
|
|
4286
|
+
name: "Save",
|
|
4287
|
+
onClick: Wl((k) => H(x, A.name), ["stop"]),
|
|
4288
|
+
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
4289
|
+
class: "icon-content"
|
|
4290
|
+
}, null, 8, ["onClick"])
|
|
4291
|
+
])) : We("", !0),
|
|
4292
|
+
(_e = (de = L.value) == null ? void 0 : de.find((k) => k.id === x)) != null && _e.content ? We("", !0) : (oe(), ge("div", {
|
|
4293
|
+
key: 1,
|
|
4294
|
+
onClick: Wl((k) => ee(x), ["stop"]),
|
|
4295
|
+
class: "icon-content"
|
|
4296
|
+
}, [
|
|
4297
|
+
ae(me, {
|
|
4298
|
+
name: "Delete",
|
|
4299
|
+
style: { width: "16px", height: "16px" }
|
|
4300
|
+
})
|
|
4301
|
+
], 8, co))
|
|
4302
|
+
])
|
|
4303
|
+
])
|
|
4304
|
+
];
|
|
4305
|
+
}),
|
|
4306
|
+
content: ve(({ item: A, index: x }) => {
|
|
4307
|
+
var pe, d;
|
|
4308
|
+
return [
|
|
4309
|
+
S("div", to, [
|
|
4310
|
+
(oe(), Oe(Ml(B(A.comp + "Operate")), {
|
|
4311
|
+
itemContents: A == null ? void 0 : A.compData,
|
|
4312
|
+
originalItemContents: (d = (pe = R.value) == null ? void 0 : pe.find((v, m) => m === x)) == null ? void 0 : d.compData,
|
|
4313
|
+
onChange: (v) => ue(v, A, x)
|
|
4314
|
+
}, null, 40, ["itemContents", "originalItemContents", "onChange"]))
|
|
4315
|
+
])
|
|
4316
|
+
];
|
|
4317
|
+
}),
|
|
4318
|
+
_: 1
|
|
4319
|
+
}, 8, ["collapseContents"])
|
|
4320
|
+
])
|
|
4321
|
+
]);
|
|
4322
|
+
};
|
|
4323
|
+
}
|
|
4324
|
+
}, fo = /* @__PURE__ */ je(po, [["__scopeId", "data-v-78d7fc46"]]), ho = {
|
|
4325
|
+
key: 0,
|
|
4326
|
+
class: "show-content"
|
|
4327
|
+
}, vo = { style: { display: "flex" } }, mo = {
|
|
4328
|
+
__name: "modelShow",
|
|
4329
|
+
setup(u) {
|
|
4330
|
+
const y = Ql(Ye), { itemData: n } = Ze(y), s = Q([]);
|
|
4331
|
+
ze(
|
|
4332
|
+
() => n.value,
|
|
4333
|
+
() => {
|
|
4334
|
+
var R;
|
|
4335
|
+
!n.value || ((R = n.value) == null ? void 0 : R.length) === 0 ? s.value = [] : s.value = l(n.value);
|
|
4336
|
+
},
|
|
4337
|
+
{ deep: !0, immediate: !0 }
|
|
4338
|
+
);
|
|
4339
|
+
const p = (R) => ta(R);
|
|
4340
|
+
return (R, L) => {
|
|
4341
|
+
var D;
|
|
4342
|
+
return ((D = s.value) == null ? void 0 : D.length) > 0 ? (oe(), ge("div", ho, [
|
|
4343
|
+
(oe(!0), ge(Pe, null, Ue(s.value, (N, H) => (oe(), ge("div", {
|
|
4344
|
+
class: "item-content",
|
|
4345
|
+
key: H
|
|
4346
|
+
}, [
|
|
4347
|
+
S("div", vo, De(N.name), 1),
|
|
4348
|
+
(oe(), Oe(Ml(p(N.comp)), {
|
|
4349
|
+
itemData: N == null ? void 0 : N.compData,
|
|
4350
|
+
childItemData: N == null ? void 0 : N.itemChildData,
|
|
4351
|
+
key: H
|
|
4352
|
+
}, null, 8, ["itemData", "childItemData"]))
|
|
4353
|
+
]))), 128))
|
|
4354
|
+
])) : We("", !0);
|
|
4355
|
+
};
|
|
4356
|
+
}
|
|
4357
|
+
}, yo = /* @__PURE__ */ je(mo, [["__scopeId", "data-v-3f3e863e"]]), bo = { class: "tabs-header" }, go = { class: "tabs-list" }, ko = { class: "tab-name" }, _o = { class: "tab-actions" }, Co = ["onClick"], wo = ["onClick"], Do = ["onClick"], Ao = { class: "model-operate" }, Io = {
|
|
4358
|
+
class: "model-select",
|
|
4359
|
+
style: { display: "unset" }
|
|
4360
|
+
}, xo = { class: "existing-components" }, Eo = { class: "component-list" }, $o = ["onClick"], So = { class: "component-info" }, To = { class: "component-type" }, Bo = { class: "component-name" }, Fo = { class: "model-fill" }, Oo = {
|
|
4361
|
+
__name: "operate",
|
|
4362
|
+
props: {
|
|
4363
|
+
itemContents: {
|
|
4364
|
+
type: Array,
|
|
4365
|
+
default: () => []
|
|
4366
|
+
}
|
|
4367
|
+
},
|
|
4368
|
+
emits: ["change"],
|
|
4369
|
+
setup(u, { emit: y }) {
|
|
4370
|
+
const n = u, s = y, p = Q([]), R = Q(!1), L = Q(""), D = Q({ title: "" }), N = Q(-1), H = Q(!1), B = Q(-1), ue = Q(/* @__PURE__ */ new Map()), ee = Q(null), ye = Ql(Ye), { itemData: re } = Ze(ye), me = () => {
|
|
4371
|
+
L.value = "新增标签页", D.value.title = "", N.value = -1, R.value = !0;
|
|
4372
|
+
}, A = (c) => {
|
|
4373
|
+
L.value = "修改标签页", D.value.title = p.value[c].title, N.value = c, R.value = !0;
|
|
4374
|
+
}, x = (c) => {
|
|
4375
|
+
const E = v(c);
|
|
4376
|
+
ue.value.delete(E), p.value.splice(c, 1), fe();
|
|
4377
|
+
}, pe = () => {
|
|
4378
|
+
if (D.value.title.trim()) {
|
|
4379
|
+
if (N.value === -1) {
|
|
4380
|
+
const c = {
|
|
4381
|
+
title: D.value.title,
|
|
4382
|
+
value: D.value.title,
|
|
4383
|
+
label: D.value.title,
|
|
4384
|
+
children: [],
|
|
4385
|
+
id: d()
|
|
4386
|
+
};
|
|
4387
|
+
p.value.push(c);
|
|
4388
|
+
} else
|
|
4389
|
+
p.value[N.value].title = D.value.title, p.value[N.value].value = D.value.title, p.value[N.value].label = D.value.title;
|
|
4390
|
+
R.value = !1, fe();
|
|
4391
|
+
}
|
|
4392
|
+
}, d = () => `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, v = (c) => {
|
|
4393
|
+
const E = p.value[c];
|
|
4394
|
+
return E.id || (E.id = d()), E.id;
|
|
4395
|
+
}, m = (c) => {
|
|
4396
|
+
var J;
|
|
4397
|
+
B.value = c;
|
|
4398
|
+
const E = v(c);
|
|
4399
|
+
ee.value = l(re.value);
|
|
4400
|
+
let P = ue.value.get(E);
|
|
4401
|
+
!P && ((J = p.value[c].children) == null ? void 0 : J.length) > 0 && (P = we(p.value[c].children)), P ? ye.setItemData(l(P)) : ye.setItemData([]), H.value = !0;
|
|
4402
|
+
}, g = ua(() => {
|
|
4403
|
+
const c = ca(Ye), E = Ze(c).itemData.value;
|
|
4404
|
+
return console.log("可用组件数据", E), !E || !Array.isArray(E) ? [] : E.filter((P) => {
|
|
4405
|
+
var J;
|
|
4406
|
+
if (P.comp === "Tabs" && B.value >= 0) {
|
|
4407
|
+
const ne = v(B.value);
|
|
4408
|
+
if ((J = P.compData) == null ? void 0 : J.some(
|
|
4409
|
+
(T) => {
|
|
4410
|
+
var O;
|
|
4411
|
+
return T.key === "stepList" && ((O = T.contents) == null ? void 0 : O.some((_) => _.id === ne));
|
|
4412
|
+
}
|
|
4413
|
+
)) return !1;
|
|
4414
|
+
}
|
|
4415
|
+
return !0;
|
|
4416
|
+
});
|
|
4417
|
+
}), le = (c) => ({
|
|
4418
|
+
Table: "表格",
|
|
4419
|
+
Form: "表单",
|
|
4420
|
+
Tabs: "标签页",
|
|
4421
|
+
Chart: "图表",
|
|
4422
|
+
Card: "卡片"
|
|
4423
|
+
})[c] || c, he = (c) => {
|
|
4424
|
+
var E;
|
|
4425
|
+
try {
|
|
4426
|
+
const P = l(c);
|
|
4427
|
+
P.id = Date.now() + Math.random(), P.comp === "Tabs" && ((E = P.compData) == null || E.forEach((ne) => {
|
|
4428
|
+
ne.key === "stepList" && ne.contents && ne.contents.forEach((z) => {
|
|
4429
|
+
z.id = d();
|
|
4430
|
+
});
|
|
4431
|
+
}));
|
|
4432
|
+
const J = l(re.value);
|
|
4433
|
+
J.push(P), ye.setItemData(J);
|
|
4434
|
+
} catch (P) {
|
|
4435
|
+
console.error("添加组件失败:", P);
|
|
4436
|
+
}
|
|
4437
|
+
}, we = (c) => c.map((E) => {
|
|
4438
|
+
var P;
|
|
4439
|
+
switch (E.type) {
|
|
4440
|
+
case "form":
|
|
4441
|
+
return {
|
|
4442
|
+
comp: "Form",
|
|
4443
|
+
name: E.value || "表单",
|
|
4444
|
+
compData: de(E.content)
|
|
4445
|
+
};
|
|
4446
|
+
case "table":
|
|
4447
|
+
return {
|
|
4448
|
+
comp: "Table",
|
|
4449
|
+
name: E.value || "表格",
|
|
4450
|
+
compData: _e(E.content)
|
|
4451
|
+
};
|
|
4452
|
+
default:
|
|
4453
|
+
return {
|
|
4454
|
+
comp: "Unknown",
|
|
4455
|
+
name: E.value || "",
|
|
4456
|
+
compData: ((P = E.content) == null ? void 0 : P.originalData) || []
|
|
4457
|
+
};
|
|
4458
|
+
}
|
|
4459
|
+
}), de = (c) => {
|
|
4460
|
+
if (!c) return [];
|
|
4461
|
+
const E = [];
|
|
4462
|
+
return c.rowContents && E.push({
|
|
4463
|
+
key: "formContent",
|
|
4464
|
+
contents: c.rowContents
|
|
4465
|
+
}), c.buttonValue && E.push({
|
|
4466
|
+
key: "formButton",
|
|
4467
|
+
contents: c.buttonValue
|
|
4468
|
+
}), typeof c.isEnableWrap < "u" && E.push({
|
|
4469
|
+
key: "enableWrap",
|
|
4470
|
+
contents: c.isEnableWrap
|
|
4471
|
+
}), E;
|
|
4472
|
+
}, _e = (c) => [], k = () => {
|
|
4473
|
+
if (B.value >= 0 && B.value < p.value.length) {
|
|
4474
|
+
const c = v(B.value);
|
|
4475
|
+
ue.value.set(c, l(re.value)), p.value[B.value].children = w(re.value), console.log("保存后的数据", w(re.value));
|
|
4476
|
+
}
|
|
4477
|
+
H.value = !1, B.value = -1, ee.value = null, fe();
|
|
4478
|
+
}, a = () => {
|
|
4479
|
+
ee.value && ye.setItemData(l(ee.value)), H.value = !1, B.value = -1, ee.value = null;
|
|
4480
|
+
}, h = () => {
|
|
4481
|
+
H.value && a();
|
|
4482
|
+
}, w = (c) => {
|
|
4483
|
+
if (!Array.isArray(c))
|
|
4484
|
+
throw new Error("sourceData must be an array");
|
|
4485
|
+
return c.map((E, P) => {
|
|
4486
|
+
if (!E || typeof E != "object")
|
|
4487
|
+
return E;
|
|
4488
|
+
const { comp: J, name: ne, compData: z } = E;
|
|
4489
|
+
switch (J) {
|
|
4490
|
+
case "Form":
|
|
4491
|
+
return {
|
|
4492
|
+
type: "form",
|
|
4493
|
+
content: t(z || []),
|
|
4494
|
+
value: "表单"
|
|
4495
|
+
};
|
|
4496
|
+
case "Table":
|
|
4497
|
+
return {
|
|
4498
|
+
type: "table",
|
|
4499
|
+
content: q(z || []),
|
|
4500
|
+
value: "表格"
|
|
4501
|
+
};
|
|
4502
|
+
default:
|
|
4503
|
+
return {
|
|
4504
|
+
type: "xxx",
|
|
4505
|
+
content: ce(z || []),
|
|
4506
|
+
value: ""
|
|
4507
|
+
};
|
|
4508
|
+
}
|
|
4509
|
+
});
|
|
4510
|
+
}, t = (c) => {
|
|
4511
|
+
const E = {
|
|
4512
|
+
formRules: {},
|
|
4513
|
+
rowContents: [],
|
|
4514
|
+
buttonValue: [],
|
|
4515
|
+
rowValues: [],
|
|
4516
|
+
isEnableWrap: !0,
|
|
4517
|
+
isRowFlex: !0,
|
|
4518
|
+
isButtonRow: !0,
|
|
4519
|
+
isEdit: !0,
|
|
4520
|
+
isStartJustify: !0
|
|
4521
|
+
}, P = {
|
|
4522
|
+
formContent: "rowContents",
|
|
4523
|
+
enableWrap: "isEnableWrap",
|
|
4524
|
+
formButton: "buttonValue"
|
|
4525
|
+
};
|
|
4526
|
+
return c.forEach((J, ne) => {
|
|
4527
|
+
if (!J || typeof J != "object") {
|
|
4528
|
+
console.warn(`Invalid config at index ${ne}:`, J);
|
|
4529
|
+
return;
|
|
4530
|
+
}
|
|
4531
|
+
const { key: z, contents: T } = J, O = P[z];
|
|
4532
|
+
if (!O) {
|
|
4533
|
+
console.warn(`Unknown Form config key: ${z}`);
|
|
4534
|
+
return;
|
|
4535
|
+
}
|
|
4536
|
+
z === "enableWrap" ? E[O] = !!T : E[O] = Array.isArray(T) ? T : [];
|
|
4537
|
+
}), E;
|
|
4538
|
+
}, q = (c) => {
|
|
4539
|
+
const E = {
|
|
4540
|
+
columns: [],
|
|
4541
|
+
tableData: [],
|
|
4542
|
+
extraButton: [],
|
|
4543
|
+
rowButton: [],
|
|
4544
|
+
currentPage: 0,
|
|
4545
|
+
total: 0,
|
|
4546
|
+
pageSize: 0,
|
|
4547
|
+
isShowPagination: !0,
|
|
4548
|
+
isShowEdit: !0,
|
|
4549
|
+
isMoveColumn: !0,
|
|
4550
|
+
isShowDelete: !0
|
|
4551
|
+
}, P = {
|
|
4552
|
+
header: "columns",
|
|
4553
|
+
tableContents: "tableData"
|
|
4554
|
+
};
|
|
4555
|
+
return c.forEach((J, ne) => {
|
|
4556
|
+
if (!J || typeof J != "object") {
|
|
4557
|
+
console.warn(`Invalid config at index ${ne}:`, J);
|
|
4558
|
+
return;
|
|
4559
|
+
}
|
|
4560
|
+
const { key: z, contents: T } = J, O = P[z];
|
|
4561
|
+
if (!O) {
|
|
4562
|
+
console.warn(`Unknown Table config key: ${z}`);
|
|
4563
|
+
return;
|
|
4564
|
+
}
|
|
4565
|
+
E[O] = Array.isArray(T) ? T : [];
|
|
4566
|
+
}), E;
|
|
4567
|
+
}, ce = (c) => (console.log("Default conversion logic - to be implemented"), {
|
|
4568
|
+
originalData: c,
|
|
4569
|
+
processed: !1,
|
|
4570
|
+
componentType: "unknown"
|
|
4571
|
+
}), fe = () => {
|
|
4572
|
+
const c = [
|
|
4573
|
+
{
|
|
4574
|
+
key: "stepList",
|
|
4575
|
+
contents: p.value
|
|
4576
|
+
}
|
|
4577
|
+
];
|
|
4578
|
+
s("change", c);
|
|
4579
|
+
};
|
|
4580
|
+
return ze(
|
|
4581
|
+
() => n.itemContents,
|
|
4582
|
+
(c) => {
|
|
4583
|
+
if (c && c.length > 0) {
|
|
4584
|
+
const E = c.find((P) => P.key === "stepList");
|
|
4585
|
+
E && E.contents && (p.value = E.contents.map((P) => ({
|
|
4586
|
+
title: P.title || "",
|
|
4587
|
+
value: P.value || P.title || "",
|
|
4588
|
+
label: P.label || P.title || "",
|
|
4589
|
+
children: P.children || [],
|
|
4590
|
+
id: P.id || d()
|
|
4591
|
+
})));
|
|
4592
|
+
}
|
|
4593
|
+
},
|
|
4594
|
+
{ immediate: !0, deep: !0 }
|
|
4595
|
+
), (c, E) => {
|
|
4596
|
+
const P = Le("svg-icon"), J = Le("el-input"), ne = Le("el-form-item"), z = Le("el-form");
|
|
4597
|
+
return oe(), ge("div", null, [
|
|
4598
|
+
S("div", bo, [
|
|
4599
|
+
E[6] || (E[6] = S("h4", null, "标签页管理", -1)),
|
|
4600
|
+
S("button", { onClick: me }, [
|
|
4601
|
+
ae(P, {
|
|
4602
|
+
name: "Plus",
|
|
4603
|
+
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
4604
|
+
}),
|
|
4605
|
+
E[5] || (E[5] = Fe(" 新增标签页 "))
|
|
4606
|
+
])
|
|
4607
|
+
]),
|
|
4608
|
+
S("div", go, [
|
|
4609
|
+
(oe(!0), ge(Pe, null, Ue(p.value, (T, O) => (oe(), ge("div", {
|
|
4610
|
+
class: "tab-item",
|
|
4611
|
+
key: O
|
|
4612
|
+
}, [
|
|
4613
|
+
S("span", ko, De(T.title), 1),
|
|
4614
|
+
S("div", _o, [
|
|
4615
|
+
S("button", {
|
|
4616
|
+
onClick: (_) => A(O)
|
|
4617
|
+
}, "修改标题", 8, Co),
|
|
4618
|
+
S("button", {
|
|
4619
|
+
onClick: (_) => m(O)
|
|
4620
|
+
}, "布局调整", 8, wo),
|
|
4621
|
+
S("button", {
|
|
4622
|
+
onClick: (_) => x(O)
|
|
4623
|
+
}, "删除", 8, Do)
|
|
4624
|
+
])
|
|
4625
|
+
]))), 128))
|
|
4626
|
+
]),
|
|
4627
|
+
ae(Xe, {
|
|
4628
|
+
modelValue: R.value,
|
|
4629
|
+
"onUpdate:modelValue": E[2] || (E[2] = (T) => R.value = T),
|
|
4630
|
+
title: L.value,
|
|
4631
|
+
onBeforeDestroy: E[3] || (E[3] = (T) => R.value = !1)
|
|
4632
|
+
}, {
|
|
4633
|
+
footer: ve(() => [
|
|
4634
|
+
S("button", {
|
|
4635
|
+
onClick: E[1] || (E[1] = (T) => R.value = !1)
|
|
4636
|
+
}, "取消"),
|
|
4637
|
+
S("button", {
|
|
4638
|
+
type: "primary",
|
|
4639
|
+
onClick: pe
|
|
4640
|
+
}, "确定")
|
|
4641
|
+
]),
|
|
4642
|
+
default: ve(() => [
|
|
4643
|
+
ae(z, {
|
|
4644
|
+
model: D.value,
|
|
4645
|
+
"label-width": "80px"
|
|
4646
|
+
}, {
|
|
4647
|
+
default: ve(() => [
|
|
4648
|
+
ae(ne, {
|
|
4649
|
+
label: "标签名称",
|
|
4650
|
+
required: ""
|
|
4651
|
+
}, {
|
|
4652
|
+
default: ve(() => [
|
|
4653
|
+
ae(J, {
|
|
4654
|
+
modelValue: D.value.title,
|
|
4655
|
+
"onUpdate:modelValue": E[0] || (E[0] = (T) => D.value.title = T),
|
|
4656
|
+
placeholder: "请输入标签页名称"
|
|
4657
|
+
}, null, 8, ["modelValue"])
|
|
4658
|
+
]),
|
|
4659
|
+
_: 1
|
|
4660
|
+
})
|
|
4661
|
+
]),
|
|
4662
|
+
_: 1
|
|
4663
|
+
}, 8, ["model"])
|
|
4664
|
+
]),
|
|
4665
|
+
_: 1
|
|
4666
|
+
}, 8, ["modelValue", "title"]),
|
|
4667
|
+
ae(Xe, {
|
|
4668
|
+
modelValue: H.value,
|
|
4669
|
+
"onUpdate:modelValue": E[4] || (E[4] = (T) => H.value = T),
|
|
4670
|
+
title: "布局调整",
|
|
4671
|
+
fullScreen: "",
|
|
4672
|
+
onBeforeDestroy: h
|
|
4673
|
+
}, {
|
|
4674
|
+
footer: ve(() => [
|
|
4675
|
+
S("button", { onClick: a }, "取消"),
|
|
4676
|
+
S("button", { onClick: k }, "确定")
|
|
4677
|
+
]),
|
|
4678
|
+
default: ve(() => [
|
|
4679
|
+
S("div", Ao, [
|
|
4680
|
+
S("div", Io, [
|
|
4681
|
+
ae(eo),
|
|
4682
|
+
S("div", xo, [
|
|
4683
|
+
E[8] || (E[8] = S("h5", null, "添加已有组件", -1)),
|
|
4684
|
+
S("div", Eo, [
|
|
4685
|
+
(oe(!0), ge(Pe, null, Ue(g.value, (T) => (oe(), ge("div", {
|
|
4686
|
+
key: T.id,
|
|
4687
|
+
class: "component-item",
|
|
4688
|
+
onClick: (O) => he(T)
|
|
4689
|
+
}, [
|
|
4690
|
+
S("div", So, [
|
|
4691
|
+
S("span", To, De(le(T.comp)), 1),
|
|
4692
|
+
S("span", Bo, De(T.name), 1)
|
|
4693
|
+
]),
|
|
4694
|
+
E[7] || (E[7] = S("button", { class: "add-btn" }, "添加", -1))
|
|
4695
|
+
], 8, $o))), 128))
|
|
4696
|
+
])
|
|
4697
|
+
])
|
|
4698
|
+
]),
|
|
4699
|
+
(oe(), ge("div", {
|
|
4700
|
+
class: "model-show",
|
|
4701
|
+
key: c.innerWidth
|
|
4702
|
+
}, [
|
|
4703
|
+
ae(yo)
|
|
4704
|
+
])),
|
|
4705
|
+
S("div", Fo, [
|
|
4706
|
+
ae(fo)
|
|
4707
|
+
])
|
|
4708
|
+
])
|
|
4709
|
+
]),
|
|
4710
|
+
_: 1
|
|
4711
|
+
}, 8, ["modelValue"])
|
|
4712
|
+
]);
|
|
4713
|
+
};
|
|
4714
|
+
}
|
|
4715
|
+
}, Lo = /* @__PURE__ */ je(Oo, [["__scopeId", "data-v-151936e8"]]), Po = Q([
|
|
4716
|
+
{
|
|
4717
|
+
name: "表格",
|
|
4718
|
+
type: "table",
|
|
4719
|
+
comp: "Table",
|
|
4720
|
+
icon: "Table"
|
|
4721
|
+
},
|
|
4722
|
+
{
|
|
4723
|
+
name: "表单",
|
|
4724
|
+
type: "form",
|
|
4725
|
+
comp: "Form",
|
|
4726
|
+
icon: "Form"
|
|
4727
|
+
},
|
|
4728
|
+
{
|
|
4729
|
+
name: "折叠",
|
|
4730
|
+
type: "fold",
|
|
4731
|
+
comp: "Fold",
|
|
4732
|
+
icon: "Fold"
|
|
4733
|
+
},
|
|
4734
|
+
{
|
|
4735
|
+
name: "头像",
|
|
4736
|
+
type: "avatar",
|
|
4737
|
+
comp: "AvatarUpload",
|
|
4738
|
+
icon: "Avatar"
|
|
4739
|
+
},
|
|
4740
|
+
{
|
|
4741
|
+
name: "签名",
|
|
4742
|
+
type: "signature",
|
|
4743
|
+
comp: "Signature",
|
|
4744
|
+
icon: "Signature"
|
|
4745
|
+
},
|
|
4746
|
+
{
|
|
4747
|
+
name: "步骤条",
|
|
4748
|
+
type: "step",
|
|
4749
|
+
comp: "Step",
|
|
4750
|
+
icon: "Step"
|
|
4751
|
+
},
|
|
4752
|
+
{
|
|
4753
|
+
name: "时间线",
|
|
4754
|
+
type: "timeLine",
|
|
4755
|
+
comp: "TimeLine",
|
|
4756
|
+
icon: "TimeLine"
|
|
4757
|
+
},
|
|
4758
|
+
{
|
|
4759
|
+
name: "标签页",
|
|
4760
|
+
type: "tabs",
|
|
4761
|
+
comp: "Tabs",
|
|
4762
|
+
icon: "Tabs"
|
|
4763
|
+
}
|
|
4764
|
+
]), Ro = {
|
|
4765
|
+
TABLE: as,
|
|
4766
|
+
FORM: La,
|
|
4767
|
+
TABLEOPERATE: Bi,
|
|
4768
|
+
FORMOPERATE: Pa,
|
|
4769
|
+
FOLD: cn,
|
|
4770
|
+
CALCULATOR: vn,
|
|
4771
|
+
METHODBUTTON: En,
|
|
4772
|
+
AVATARUPLOAD: Ds,
|
|
4773
|
+
SIGNATURE: ws,
|
|
4774
|
+
FORMTOP: La,
|
|
4775
|
+
STEP: jn,
|
|
4776
|
+
STEPOPERATE: Zi,
|
|
4777
|
+
TIMELINE: Jn,
|
|
4778
|
+
TIMELINEOPERATE: on,
|
|
4779
|
+
FORMTOPOPERATE: Pa,
|
|
4780
|
+
SIGNATUREOPERATE: Rn,
|
|
4781
|
+
AVATARUPLOADOPERATE: Tn,
|
|
4782
|
+
TABS: qn,
|
|
4783
|
+
TABSOPERATE: Lo
|
|
4784
|
+
// 添加其他组件...
|
|
4785
|
+
};
|
|
4786
|
+
function ta(u) {
|
|
4787
|
+
return Ro[u == null ? void 0 : u.toUpperCase()] || null;
|
|
4788
|
+
}
|
|
4789
|
+
export {
|
|
4790
|
+
qo as a,
|
|
4791
|
+
na as b,
|
|
4792
|
+
sa as c,
|
|
4793
|
+
ta as g,
|
|
4794
|
+
Es as i,
|
|
4795
|
+
An as o,
|
|
4796
|
+
Po as s
|
|
4797
|
+
};
|