ss-component-new 1.1.708 → 1.1.711
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-ChoJA9-j.cjs → index--bv1sDHX.cjs} +28 -28
- package/dist/{index-BTiKUORz.js → index-9WMPYp3i.js} +2 -2
- package/dist/{index-Chz6JgEi.cjs → index-B-2kZaOf.cjs} +1 -1
- package/dist/index-B8KHQE8o.js +4823 -0
- package/dist/{index-sH_FoGx7.cjs → index-BAabFQMm.cjs} +1 -1
- package/dist/{index-C0jLgnJF.js → index-BJL4rzyr.js} +2 -2
- package/dist/{index-JmOAbrwO.cjs → index-BJuJt6qG.cjs} +1 -1
- package/dist/{index-BUkhaqd8.cjs → index-BK66FTPD.cjs} +1 -1
- package/dist/{index-DAMRPbhU.js → index-BMx2dBDp.js} +5 -5
- package/dist/{index-Dr7Fdc81.js → index-BjAcP--p.js} +1 -1
- package/dist/{index-Dm9remQj.js → index-Bt-jwNCY.js} +5020 -4973
- package/dist/{index-CJX26tPy.cjs → index-C5ZqW_r-.cjs} +1 -1
- package/dist/{index-Bz_C5jjT.js → index-C7JvOUv2.js} +2 -2
- package/dist/index-CJSAizoe.cjs +1 -0
- package/dist/{index-lVXpDd-x.cjs → index-CKr5PRcD.cjs} +1 -1
- package/dist/{index-CdYqA8UG.cjs → index-CT3wMwRX.cjs} +1 -1
- package/dist/{index-D-tQ0jb6.js → index-C_CZDDE1.js} +10 -10
- package/dist/{index-DSNNd0ZH.js → index-CevoeHBh.js} +1 -1
- package/dist/{index-cn2PPpBp.cjs → index-CnmRQ9CL.cjs} +1 -1
- package/dist/{index-DGJWUlc0.cjs → index-D9x06-zf.cjs} +1 -1
- package/dist/{index-BNkTi_Un.cjs → index-DCaCF28N.cjs} +1 -1
- package/dist/{index-D1fd5HJJ.cjs → index-DGtDddyd.cjs} +1 -1
- package/dist/{index-BvRLbvq4.js → index-DQ_8oUmc.js} +2 -2
- package/dist/{index-CZTZmXUb.js → index-DSLnTyVX.js} +2 -2
- package/dist/{index-Dl7UsRXv.cjs → index-DWIuZjVT.cjs} +1 -1
- package/dist/{index-PKvWYrg9.cjs → index-DZDa3NV9.cjs} +1 -1
- package/dist/{index-CAoCSEXG.js → index-DbrKIy2F.js} +1 -1
- package/dist/{index-d_ANkYaS.cjs → index-Dohv8QcW.cjs} +1 -1
- package/dist/{index-C5iB-Jqa.js → index-Dpq2t0uy.js} +1 -1
- package/dist/{index-DAXBDVD_.js → index-Du6-UwQn.js} +1 -1
- package/dist/{index-CZcYAuy-.js → index-DuGe1Hyh.js} +1 -1
- package/dist/{index-Dc2D3OrH.js → index-DzviavC7.js} +2 -2
- package/dist/{index-CuB10mRD.js → index-G9_BNddF.js} +3 -3
- package/dist/{index-Bz3Cezt5.js → index-L6ztFz-U.js} +1 -1
- package/dist/{index-CLNkIjl-.cjs → index-LVUM3FsY.cjs} +1 -1
- package/dist/{index-ISxzVDVL.cjs → index-VkWZf-DO.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CsnYhrp-.js → index.vue_vue_type_script_setup_true_lang-DInccyUf.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-oueibXbB.cjs → index.vue_vue_type_script_setup_true_lang-Dy1EUdcV.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BrQQ9PKj.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BVVTwNur.js} +1723 -1714
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dc6lRgBQ.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CWcYWTKs.cjs} +57 -57
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-BiGhmLqK.js → index.vue_vue_type_style_index_0_scoped_8606206c_lang-BvhiWDh4.js} +3277 -3281
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-DAqIbp0A.cjs → index.vue_vue_type_style_index_0_scoped_8606206c_lang-DtkRwcZE.cjs} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-qJpParw9.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Bn8cGP2Y.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Do7w7r05.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-D9fBLa0w.cjs} +1 -1
- package/dist/{main-ZNwRxRST.js → main-CG1Hb-t2.js} +2 -2
- package/dist/{main-8orFqQ9f.cjs → main-CHIZjrj7.cjs} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +8 -8
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-B8u76uPb.cjs → threeModel-DkwdD9tt.cjs} +1 -1
- package/dist/{threeModel-Dx_dcQrK.js → threeModel-jrajAmgk.js} +1 -1
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-B2ZJJoT9.js +0 -4762
- package/dist/index-CRQxupO9.cjs +0 -1
|
@@ -0,0 +1,4823 @@
|
|
|
1
|
+
import { b as Ga, a as qa, t as Qa, f as Xa, g as Ya, c as La, i as Ea, s as Za } from "./index-Bt-jwNCY.js";
|
|
2
|
+
import { ref as q, watch as Ye, createElementBlock as _e, openBlock as oe, createVNode as ie, createBlock as Oe, createCommentVNode as Xe, withCtx as ve, resolveComponent as Ue, Fragment as je, renderList as Je, createElementVNode as E, toDisplayString as we, createTextVNode as Be, defineComponent as El, reactive as wa, resolveDynamicComponent as ta, unref as Al, computed as Da, renderSlot as pa, createSlots as ei, mergeProps as li, normalizeStyle as ai, withModifiers as ra } from "vue";
|
|
3
|
+
import { p as al, s as sl, c as l, a as Oa, u as Ia, h as ii } from "./menu-BRpPhHno.js";
|
|
4
|
+
import { e as el, f as Va, s as ll, h as Ra, a as Sa, i as si, j as ni, b as oi } from "./index-BJL4rzyr.js";
|
|
5
|
+
import { bp as ui, bq as ri, a as ba, E as ol, g as gl, bl as ka, b as Ua, bj as ja, bk as ya, bm as ci } from "./index-BCZ59Y4K.js";
|
|
6
|
+
import { F as $a, A as ti, I as _a, B as di, C as Qe, D as Fl, E as fl, G as Tl, H as ga, J as pi, g as hl, K as fi, L as hi } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BVVTwNur.js";
|
|
7
|
+
import { u as xa } from "./login-h0Hl0hFq.js";
|
|
8
|
+
import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
import { E as bl } from "./index-CRKPHTGu.js";
|
|
10
|
+
import { s as vi, a as mi } from "./index-DQ_8oUmc.js";
|
|
11
|
+
import yi from "./index-CZtXRS3l.js";
|
|
12
|
+
var gi = "[object Boolean]";
|
|
13
|
+
function Pa(r) {
|
|
14
|
+
return r === !0 || r === !1 || ui(r) && ri(r) == gi;
|
|
15
|
+
}
|
|
16
|
+
function bi(r) {
|
|
17
|
+
return r === void 0;
|
|
18
|
+
}
|
|
19
|
+
const ki = { class: "form-content" }, _i = {
|
|
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(r, { emit: V }) {
|
|
35
|
+
const y = q(!1), i = q(!1), o = q(""), P = () => {
|
|
36
|
+
y.value = !1, i.value = null, o.value = "";
|
|
37
|
+
}, L = r, w = V, M = q([]), ee = q(), O = q(!1), ce = q(!1), ue = q([]), Ce = q(), te = Ga(al), ke = qa(al), T = q(!1), $ = q(), me = xa(al), { loginUserInfo: t } = sl(me), p = q(), m = q(!0), b = (_, Y) => {
|
|
38
|
+
p.value === Y ? m.value = !1 : m.value = !0, p.value = Y == null ? void 0 : Y.changeProp;
|
|
39
|
+
}, re = async (_) => {
|
|
40
|
+
var x, s, c, D, I, z, G, F, u, X;
|
|
41
|
+
let Y = [];
|
|
42
|
+
if ((x = _ == null ? void 0 : _.toString()) != null && x.includes(".urdf")) {
|
|
43
|
+
o.value = _, y.value = !0;
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if ((s = _ == null ? void 0 : _.toString()) != null && s.includes(".stl") || (c = _ == null ? void 0 : _.toString()) != null && c.includes(".STL") || (D = _ == null ? void 0 : _.toString()) != null && D.includes(".obj") || (I = _ == null ? void 0 : _.toString()) != null && I.includes(".mtl")) {
|
|
47
|
+
let J, de = [], Q = {};
|
|
48
|
+
if (Array.isArray(_) ? J = _ : J = _ == null ? void 0 : _.split(","), J == null || J.forEach((R) => {
|
|
49
|
+
R.includes(".mtl") ? de.push(R) : Q.blob = Q.blob ? Q.blob + "," + R : R;
|
|
50
|
+
}), (de == null ? void 0 : de.length) > 0 && (Q.mtlBlobs = de), (G = (z = Object.values(Q)) == null ? void 0 : z[0]) != null && G.includes("http:"))
|
|
51
|
+
Y.push(Q);
|
|
52
|
+
else {
|
|
53
|
+
const R = new Blob([Q.blob], {
|
|
54
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
55
|
+
});
|
|
56
|
+
let K = URL.createObjectURL(R), j = "";
|
|
57
|
+
(F = _ == null ? void 0 : _.split("/")) == null || F.forEach((A, pe) => {
|
|
58
|
+
var ae;
|
|
59
|
+
pe === ((ae = _ == null ? void 0 : _.split("/")) == null ? void 0 : ae.length) - 1 && (j = A);
|
|
60
|
+
}), (u = Q.blob) != null && u.includes(".stl") && (j = (j == null ? void 0 : j.replaceAll(">", "")) + ".urdf"), Ce.value = [{
|
|
61
|
+
name: j,
|
|
62
|
+
blobUrl: K
|
|
63
|
+
}], ce.value = !0;
|
|
64
|
+
}
|
|
65
|
+
} else {
|
|
66
|
+
const J = await ba.get(_, {
|
|
67
|
+
responseType: "blob",
|
|
68
|
+
headers: {
|
|
69
|
+
"Content-Type": "application/json"
|
|
70
|
+
}
|
|
71
|
+
}), de = new Blob([J.data], {
|
|
72
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
73
|
+
});
|
|
74
|
+
let Q = URL.createObjectURL(de), R = "";
|
|
75
|
+
(X = _ == null ? void 0 : _.split("/")) == null || X.forEach((K, j) => {
|
|
76
|
+
var A;
|
|
77
|
+
j === ((A = _ == null ? void 0 : _.split("/")) == null ? void 0 : A.length) - 1 && (R = K);
|
|
78
|
+
}), Ce.value = [{
|
|
79
|
+
name: R,
|
|
80
|
+
blobUrl: Q
|
|
81
|
+
}], ce.value = !0;
|
|
82
|
+
}
|
|
83
|
+
(Y == null ? void 0 : Y.length) > 0 && ke.setBlobUrls(Y);
|
|
84
|
+
}, be = () => {
|
|
85
|
+
ce.value = !1;
|
|
86
|
+
}, De = (_) => {
|
|
87
|
+
var D, I, z, G;
|
|
88
|
+
const Y = (I = (D = l(L.itemData)) == null ? void 0 : D.find((F) => (F == null ? void 0 : F.key) === "formContent")) == null ? void 0 : I.contents, x = l(_.content);
|
|
89
|
+
let s = {};
|
|
90
|
+
x && ((z = Object.values(x)) == null ? void 0 : z.length) > 0 && ((G = Object.values(x)) == null || G.forEach((F, u) => {
|
|
91
|
+
s[Y[u].key] = F;
|
|
92
|
+
}));
|
|
93
|
+
const c = {
|
|
94
|
+
content: s,
|
|
95
|
+
index: L == null ? void 0 : L.index,
|
|
96
|
+
buttonName: _ == null ? void 0 : _.buttonName
|
|
97
|
+
};
|
|
98
|
+
w("change", c);
|
|
99
|
+
}, Fe = async (_) => {
|
|
100
|
+
var F, u, X, J, de, Q, R, K, j, A, pe, ae;
|
|
101
|
+
if (!_) return;
|
|
102
|
+
const Y = l(L.itemData);
|
|
103
|
+
let x = Y == null ? void 0 : Y.map((S) => {
|
|
104
|
+
var g;
|
|
105
|
+
return (S == null ? void 0 : S.key) === "formContent" && ((g = S.contents) == null || g.map((v, H) => {
|
|
106
|
+
var f, n, Z, e, a, d, h, k, W, ye, N, le, se, ge, U, ne, C;
|
|
107
|
+
return v.type = v != null && v.type ? v.type : (e = (Z = (n = (f = v == null ? void 0 : v.key) == null ? void 0 : f.split("$")) == null ? void 0 : n[1]) == null ? void 0 : Z.split("(")) != null && e[0] ? (d = (a = $a) == null ? void 0 : a.find((he) => {
|
|
108
|
+
var fe, Ae, Pe, Ke;
|
|
109
|
+
return (he == null ? void 0 : he.key) === ((Ke = (Pe = (Ae = (fe = v == null ? void 0 : v.key) == null ? void 0 : fe.split("$")) == null ? void 0 : Ae[1]) == null ? void 0 : Pe.split("(")) == null ? void 0 : Ke[0]);
|
|
110
|
+
})) == null ? void 0 : d.value : "Input", v.options = v != null && v.options ? v.options : ((W = (k = (h = v == null ? void 0 : v.key) == null ? void 0 : h.split("$")) == null ? void 0 : k[1]) == null ? void 0 : W.length) > 0 ? (se = (le = Xa((N = (ye = v == null ? void 0 : v.key) == null ? void 0 : ye.split("$")) == null ? void 0 : N[1])) == null ? void 0 : le.split(",")) == null ? void 0 : se.map((he) => ({
|
|
111
|
+
label: he,
|
|
112
|
+
value: he
|
|
113
|
+
})) : [], (ge = v == null ? void 0 : v.key) != null && ge.includes("$") && (v.key = (ne = (U = v == null ? void 0 : v.key) == null ? void 0 : U.split("$")) == null ? void 0 : ne[0]), v.value = (C = Object.values(_)) == null ? void 0 : C[H], v;
|
|
114
|
+
})), S;
|
|
115
|
+
}), s = l(M).value, c = (u = (F = l(x)) == null ? void 0 : F.find((S) => (S == null ? void 0 : S.key) === "formContent")) == null ? void 0 : u.contents;
|
|
116
|
+
if (s = s == null ? void 0 : s.map((S) => {
|
|
117
|
+
var g;
|
|
118
|
+
return S.value = (g = c == null ? void 0 : c.find((v, H) => ((v == null ? void 0 : v.id) ?? H) === (S == null ? void 0 : S.id))) == null ? void 0 : g.value, S;
|
|
119
|
+
}), !m.value) {
|
|
120
|
+
w("contentChange", {
|
|
121
|
+
contents: x,
|
|
122
|
+
index: L.index
|
|
123
|
+
});
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
let D = "", I = (de = (J = (X = l(x)) == null ? void 0 : X.find((S) => (S == null ? void 0 : S.key) === "formContent")) == null ? void 0 : J.contents) == null ? void 0 : de.find((S, g) => {
|
|
127
|
+
var v, H;
|
|
128
|
+
return (S == null ? void 0 : S.label) === p.value || g.toString() === ((H = (v = p.value) == null ? void 0 : v.split("t")) == null ? void 0 : H[1].toString());
|
|
129
|
+
});
|
|
130
|
+
if ((K = (R = (Q = l(x)) == null ? void 0 : Q.find((S) => (S == null ? void 0 : S.key) === "formContent")) == null ? void 0 : R.contents) == null || K.forEach((S) => {
|
|
131
|
+
var g, v, H, f, n;
|
|
132
|
+
D === "" && ((H = (v = (g = S == null ? void 0 : S.optionUrl) == null ? void 0 : g.groupSelect) == null ? void 0 : v[1]) != null && H.includes("[")) && (D = (n = (f = S == null ? void 0 : S.optionUrl) == null ? void 0 : f.groupSelect) == null ? void 0 : n[1]);
|
|
133
|
+
}), (j = I == null ? void 0 : I.optionUrl) != null && j.menuSelect && m.value) {
|
|
134
|
+
let S = await Ya(I), g;
|
|
135
|
+
if (S == null || S.forEach((v) => {
|
|
136
|
+
var H, f, n, Z, e, a, d, h, k, W;
|
|
137
|
+
D === ((f = (H = I == null ? void 0 : I.optionUrl) == null ? void 0 : H.groupSelect) == null ? void 0 : f[1]) && ((e = (Z = (n = I == null ? void 0 : I.optionUrl) == null ? void 0 : n.groupSelect) == null ? void 0 : Z[1]) != null && e.includes("[")) && ((W = l(v)) == null ? void 0 : W[(k = (h = (d = (a = I == null ? void 0 : I.optionUrl) == null ? void 0 : a.groupSelect) == null ? void 0 : d[1]) == null ? void 0 : h.replaceAll("[", "")) == null ? void 0 : k.replaceAll("]", "")]) === (I == null ? void 0 : I.value) && (g = v);
|
|
138
|
+
}), g) {
|
|
139
|
+
let v = l(s);
|
|
140
|
+
v = v == null ? void 0 : v.map((f) => {
|
|
141
|
+
var n, Z, e, a, d, h, k, W, ye, N, le;
|
|
142
|
+
return (g != null && g[f == null ? void 0 : f.label] || g != null && g[(a = (e = (Z = (n = f == null ? void 0 : f.optionUrl) == null ? void 0 : n.groupSelect) == null ? void 0 : Z[1]) == null ? void 0 : e.replaceAll("[", "")) == null ? void 0 : a.replaceAll("]", "")]) && ((k = (h = (d = f == null ? void 0 : f.optionUrl) == null ? void 0 : d.groupSelect) == null ? void 0 : h[1]) != null && k.includes("[")) && (f.value = (g == null ? void 0 : g[f == null ? void 0 : f.label]) || (g == null ? void 0 : g[(le = (N = (ye = (W = f == null ? void 0 : f.optionUrl) == null ? void 0 : W.groupSelect) == null ? void 0 : ye[1]) == null ? void 0 : N.replaceAll("[", "")) == null ? void 0 : le.replaceAll("]", "")])), f;
|
|
143
|
+
}), v = v == null ? void 0 : v.map((f) => {
|
|
144
|
+
var n, Z, e;
|
|
145
|
+
return (n = f == null ? void 0 : f.optionUrl) != null && n.oldMenuSelect && (f.optionUrl.menuSelect = (e = (Z = l(f)) == null ? void 0 : Z.optionUrl) == null ? void 0 : e.oldMenuSelect), f;
|
|
146
|
+
}), M.value = l(v);
|
|
147
|
+
let H = l(v);
|
|
148
|
+
H = H == null ? void 0 : H.map((f) => {
|
|
149
|
+
var n, Z, e, a, d, h;
|
|
150
|
+
return (Z = (n = f == null ? void 0 : f.optionUrl) == null ? void 0 : n.menuSelect) != null && Z.some((k) => k == null ? void 0 : k.includes("[")) && (f.optionUrl.oldMenuSelect = (a = (e = l(f)) == null ? void 0 : e.optionUrl) == null ? void 0 : a.menuSelect, f.optionUrl.menuSelect = (h = (d = f == null ? void 0 : f.optionUrl) == null ? void 0 : d.menuSelect) == null ? void 0 : h.map((k) => {
|
|
151
|
+
var W, ye, N, le;
|
|
152
|
+
if (k != null && k.includes("[")) {
|
|
153
|
+
let se = (ye = (W = k == null ? void 0 : k.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : W.split(":")) == null ? void 0 : ye[1];
|
|
154
|
+
k = (le = (N = l(v)) == null ? void 0 : N.find((ge) => (ge == null ? void 0 : ge.label) === se)) == null ? void 0 : le.value;
|
|
155
|
+
}
|
|
156
|
+
return k;
|
|
157
|
+
})), f;
|
|
158
|
+
}), M.value = H;
|
|
159
|
+
} else
|
|
160
|
+
M.value = s;
|
|
161
|
+
}
|
|
162
|
+
x = x == null ? void 0 : x.map((S) => {
|
|
163
|
+
var g;
|
|
164
|
+
return (S == null ? void 0 : S.key) === "formContent" && (S.contents = (g = S.contents) == null ? void 0 : g.map((v) => {
|
|
165
|
+
var H, f;
|
|
166
|
+
return v.value = ((f = (H = l(M).value) == null ? void 0 : H.find((n) => (n == null ? void 0 : n.label) === (v == null ? void 0 : v.key))) == null ? void 0 : f.value) ?? (v == null ? void 0 : v.value), v;
|
|
167
|
+
})), S;
|
|
168
|
+
}), m.value = !1, w("contentChange", {
|
|
169
|
+
contents: x,
|
|
170
|
+
index: L.index
|
|
171
|
+
});
|
|
172
|
+
let z = [], G = [];
|
|
173
|
+
if ((pe = l((A = x == null ? void 0 : x.find((S) => (S == null ? void 0 : S.key) === "formContent")) == null ? void 0 : A.contents)) == null || pe.forEach((S) => {
|
|
174
|
+
var g;
|
|
175
|
+
Array.isArray(S == null ? void 0 : S.value) && ((g = S == null ? void 0 : S.value) != null && g.find((v) => {
|
|
176
|
+
var H;
|
|
177
|
+
return (H = v == null ? void 0 : v.url) == null ? void 0 : H.includes(".obj");
|
|
178
|
+
})) && (G = S == null ? void 0 : S.value);
|
|
179
|
+
}), (G == null ? void 0 : G.length) > 0) {
|
|
180
|
+
const S = (ae = l(G)) == null ? void 0 : ae.filter((g) => {
|
|
181
|
+
var v;
|
|
182
|
+
return (v = g == null ? void 0 : g.url) == null ? void 0 : v.includes(".obj");
|
|
183
|
+
});
|
|
184
|
+
S == null || S.forEach((g) => {
|
|
185
|
+
var H, f, n, Z;
|
|
186
|
+
const v = (H = G == null ? void 0 : G.filter((e) => {
|
|
187
|
+
var a;
|
|
188
|
+
return (e == null ? void 0 : e.name) === (g == null ? void 0 : g.name) && ((a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".mtl"));
|
|
189
|
+
})) == null ? void 0 : H.map((e) => e == null ? void 0 : e.url);
|
|
190
|
+
z.push({
|
|
191
|
+
objUrl: g == null ? void 0 : g.url,
|
|
192
|
+
mtlUrls: ((f = G == null ? void 0 : G.filter((e) => {
|
|
193
|
+
var a;
|
|
194
|
+
return (e == null ? void 0 : e.name) === (g == null ? void 0 : g.name) && ((a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".mtl"));
|
|
195
|
+
})) == null ? void 0 : f.length) === 1 ? (Z = (n = G == null ? void 0 : G.filter((e) => {
|
|
196
|
+
var a;
|
|
197
|
+
return (e == null ? void 0 : e.name) === (g == null ? void 0 : g.name) && ((a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".mtl"));
|
|
198
|
+
})) == null ? void 0 : n[0]) == null ? void 0 : Z.url : v
|
|
199
|
+
});
|
|
200
|
+
}), ke.setObjUrl(z);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
return Ye(
|
|
204
|
+
() => L.itemData,
|
|
205
|
+
async () => {
|
|
206
|
+
var D, I, z, G, F, u, X, J, de, Q, R, K, j, A, pe;
|
|
207
|
+
const _ = (D = L.itemData) == null ? void 0 : D.find((ae) => (ae == null ? void 0 : ae.key) === "formContent"), Y = (I = l(L.itemData)) == null ? void 0 : I.find((ae) => (ae == null ? void 0 : ae.key) === "formButton"), x = (z = l(L.itemData)) == null ? void 0 : z.find((ae) => (ae == null ? void 0 : ae.key) === "formFlex"), s = (G = l(L.itemData)) == null ? void 0 : G.find((ae) => (ae == null ? void 0 : ae.key) === "formWrap"), c = (F = l(L.itemData)) == null ? void 0 : F.find((ae) => (ae == null ? void 0 : ae.key) === "enableWrap");
|
|
208
|
+
if ((s == null ? void 0 : s.contents) === "纵向" ? O.value = !1 : O.value = !0, T.value = (c == null ? void 0 : c.contents) === void 0 ? !1 : c == null ? void 0 : c.contents, $.value = typeof (x == null ? void 0 : x.contents) != "boolean" ? !(!(x != null && x.contents) === "" || ((u = x == null ? void 0 : x.contents) == null ? void 0 : u.toUpperCase()) === "VERTICAL") : x == null ? void 0 : x.contents, ((X = _ == null ? void 0 : _.contents) == null ? void 0 : X.length) > 0 && Array.isArray(_ == null ? void 0 : _.contents)) {
|
|
209
|
+
const ae = await ((J = _ == null ? void 0 : _.contents) == null ? void 0 : J.map(async (n, Z) => {
|
|
210
|
+
var N, le, se, ge, U, ne, C, he, fe, Ae, Pe, Ke, B, Te, Ie, Ve;
|
|
211
|
+
let e = (n == null ? void 0 : n.label) ?? (n == null ? void 0 : n.key) ?? "", a = (n == null ? void 0 : n.type) ?? "", d = (n == null ? void 0 : n.options) ?? [];
|
|
212
|
+
if ((N = n == null ? void 0 : n.key) != null && N.includes("$") && (e = (le = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : le[0], ((ge = (se = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : se[1]) == null ? void 0 : ge.length) > 0)) {
|
|
213
|
+
const [xe, $e] = (ne = (U = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : U[1]) == null ? void 0 : ne.split(/[()]/);
|
|
214
|
+
a = ((C = $a.find((We) => (We == null ? void 0 : We.key) === xe)) == null ? void 0 : C.value) ?? "", ((he = $e == null ? void 0 : $e.split(",")) == null ? void 0 : he.length) > 0 && (d = (fe = $e == null ? void 0 : $e.split(",")) == null ? void 0 : fe.map((We) => ({
|
|
215
|
+
label: We,
|
|
216
|
+
value: We
|
|
217
|
+
})));
|
|
218
|
+
}
|
|
219
|
+
let h = [];
|
|
220
|
+
n != null && n.contents && !Array.isArray(n == null ? void 0 : n.contents) && (h = (Pe = (Ae = n == null ? void 0 : n.contents) == null ? void 0 : Ae.split(",")) == null ? void 0 : Pe.map((xe) => ({
|
|
221
|
+
label: xe,
|
|
222
|
+
value: xe
|
|
223
|
+
})));
|
|
224
|
+
let k = await ti((Ke = l(n)) == null ? void 0 : Ke.optionUrl), W = k !== void 0 && !(n != null && n.value) ? k : n != null && n.originalContent && (n == null ? void 0 : n.originalContent) !== "" ? n.originalContent : n != null && n.value ? n.value : (d == null ? void 0 : d.length) > 0 ? (B = d == null ? void 0 : d[0]) == null ? void 0 : B.value : (n == null ? void 0 : n.value) ?? "";
|
|
225
|
+
return typeof W == "string" && (W != null && W.includes("loginUser")) && (W = ((Te = t.value) == null ? void 0 : Te.姓名) ?? ((Ie = t.value) == null ? void 0 : Ie.userName) ?? ((Ve = t.value) == null ? void 0 : Ve.account)), {
|
|
226
|
+
label: e ?? "",
|
|
227
|
+
name: "t" + Z,
|
|
228
|
+
type: k !== void 0 || a === "" ? "Input" : a,
|
|
229
|
+
value: n != null && n.isNewDate && W === "" ? /* @__PURE__ */ new Date() : W,
|
|
230
|
+
id: (n == null ? void 0 : n.id) ?? Z,
|
|
231
|
+
contents: (h == null ? void 0 : h.length) > 0 ? h : d ?? [],
|
|
232
|
+
width: (n == null ? void 0 : n.width) ?? 1,
|
|
233
|
+
config: n == null ? void 0 : n.config,
|
|
234
|
+
optionUrl: (n == null ? void 0 : n.optionUrl) ?? n,
|
|
235
|
+
isFormColHidden: n == null ? void 0 : n.isFormColHidden,
|
|
236
|
+
isMain: n == null ? void 0 : n.isMain
|
|
237
|
+
};
|
|
238
|
+
})), S = await Promise.all(ae), g = S == null ? void 0 : S.map((n) => n == null ? void 0 : n.value);
|
|
239
|
+
let v = "";
|
|
240
|
+
g == null || g.forEach((n) => {
|
|
241
|
+
n !== "" && n !== void 0 && (v = v === "" ? n : v + "/" + n);
|
|
242
|
+
}), te.setSelectArray(g), te.setSelectString(v), M.value = (de = l(S)) == null ? void 0 : de.map((n) => (n != null && n.value && _a(n == null ? void 0 : n.value) && Array.isArray(JSON.parse(n == null ? void 0 : n.value)) && (n.value = JSON.parse(n.value)), n));
|
|
243
|
+
let H = [], f = [];
|
|
244
|
+
if ((Q = l(M.value)) == null || Q.forEach((n) => {
|
|
245
|
+
var Z;
|
|
246
|
+
Array.isArray(n == null ? void 0 : n.value) && ((Z = n == null ? void 0 : n.value) != null && Z.find((e) => {
|
|
247
|
+
var a;
|
|
248
|
+
return (a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".obj");
|
|
249
|
+
})) && (f = n == null ? void 0 : n.value);
|
|
250
|
+
}), (f == null ? void 0 : f.length) > 0) {
|
|
251
|
+
const n = (R = l(f)) == null ? void 0 : R.filter((Z) => {
|
|
252
|
+
var e;
|
|
253
|
+
return (e = Z == null ? void 0 : Z.url) == null ? void 0 : e.includes(".obj");
|
|
254
|
+
});
|
|
255
|
+
n == null || n.forEach((Z) => {
|
|
256
|
+
var a, d, h, k;
|
|
257
|
+
const e = (a = f == null ? void 0 : f.filter((W) => {
|
|
258
|
+
var ye;
|
|
259
|
+
return (W == null ? void 0 : W.name) === (Z == null ? void 0 : Z.name) && ((ye = W == null ? void 0 : W.url) == null ? void 0 : ye.includes(".mtl"));
|
|
260
|
+
})) == null ? void 0 : a.map((W) => W == null ? void 0 : W.url);
|
|
261
|
+
H.push({
|
|
262
|
+
objUrl: Z == null ? void 0 : Z.url,
|
|
263
|
+
mtlUrls: ((d = f == null ? void 0 : f.filter((W) => {
|
|
264
|
+
var ye;
|
|
265
|
+
return (W == null ? void 0 : W.name) === (Z == null ? void 0 : Z.name) && ((ye = W == null ? void 0 : W.url) == null ? void 0 : ye.includes(".mtl"));
|
|
266
|
+
})) == null ? void 0 : d.length) === 1 ? (k = (h = f == null ? void 0 : f.filter((W) => {
|
|
267
|
+
var ye;
|
|
268
|
+
return (W == null ? void 0 : W.name) === (Z == null ? void 0 : Z.name) && ((ye = W == null ? void 0 : W.url) == null ? void 0 : ye.includes(".mtl"));
|
|
269
|
+
})) == null ? void 0 : h[0]) == null ? void 0 : k.url : e
|
|
270
|
+
});
|
|
271
|
+
}), ke.setObjUrl(H);
|
|
272
|
+
}
|
|
273
|
+
(K = l(M.value)) == null || K.forEach((n) => {
|
|
274
|
+
var Z, e, a, d, h, k, W, ye, N, le, se, ge, U;
|
|
275
|
+
if ((e = (Z = n == null ? void 0 : n.value) == null ? void 0 : Z.toString()) != null && e.includes(".stl") || (d = (a = n == null ? void 0 : n.value) == null ? void 0 : a.toString()) != null && d.includes(".STL") || (k = (h = n == null ? void 0 : n.value) == null ? void 0 : h.toString()) != null && k.includes(".obj") || (ye = (W = n == null ? void 0 : n.value) == null ? void 0 : W.toString()) != null && ye.includes(".mtl") || (le = (N = n == null ? void 0 : n.value) == null ? void 0 : N.toString()) != null && le.includes(".urdf")) {
|
|
276
|
+
let ne = {}, C = [], he;
|
|
277
|
+
Array.isArray(n == null ? void 0 : n.value) ? he = n == null ? void 0 : n.value : he = (se = n == null ? void 0 : n.value) == null ? void 0 : se.split(","), he == null || he.forEach((fe) => {
|
|
278
|
+
fe.includes(".mtl") ? C.push(fe) : ne.blob = ne.blob === "undefined" ? fe : ne.blob + "," + fe;
|
|
279
|
+
}), (C == null ? void 0 : C.length) > 0 && (ne.mtlBlobs = C), (U = (ge = Object.values(ne)) == null ? void 0 : ge[0]) != null && U.includes("http:");
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
} else
|
|
283
|
+
M.value = [];
|
|
284
|
+
if (L != null && L.formRules)
|
|
285
|
+
ee.value = L == null ? void 0 : L.formRules;
|
|
286
|
+
else {
|
|
287
|
+
let ae = {};
|
|
288
|
+
(j = l(M).value) == null || j.forEach((S) => {
|
|
289
|
+
(S == null ? void 0 : S.isMain) === !0 && (ae[S.name] = [
|
|
290
|
+
{ required: !0 }
|
|
291
|
+
]);
|
|
292
|
+
}), ee.value = ae;
|
|
293
|
+
}
|
|
294
|
+
if (((A = Y == null ? void 0 : Y.contents) == null ? void 0 : A.length) > 0) {
|
|
295
|
+
const ae = [];
|
|
296
|
+
(pe = Y == null ? void 0 : Y.contents) == null || pe.forEach((S, g) => {
|
|
297
|
+
(S == null ? void 0 : S.label) !== "" && ae.push({
|
|
298
|
+
label: (S == null ? void 0 : S.label) ?? "",
|
|
299
|
+
id: (S == null ? void 0 : S.id) ?? g,
|
|
300
|
+
type: (S == null ? void 0 : S.type) ?? "",
|
|
301
|
+
background: S == null ? void 0 : S.background
|
|
302
|
+
});
|
|
303
|
+
}), ue.value = ae;
|
|
304
|
+
} else
|
|
305
|
+
ue.value = [];
|
|
306
|
+
},
|
|
307
|
+
{ deep: !0, immediate: !0 }
|
|
308
|
+
), (_, Y) => (oe(), _e("div", ki, [
|
|
309
|
+
ie(el, {
|
|
310
|
+
rowContents: M.value,
|
|
311
|
+
formRules: ee.value,
|
|
312
|
+
buttonValue: ue.value,
|
|
313
|
+
isRowFlex: !1,
|
|
314
|
+
isEnableWrap: T.value,
|
|
315
|
+
onOnButtonClick: De,
|
|
316
|
+
onChange: Fe,
|
|
317
|
+
isButtonRow: O.value,
|
|
318
|
+
onPreview: re,
|
|
319
|
+
onBlurChange: b
|
|
320
|
+
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEnableWrap", "isButtonRow"]),
|
|
321
|
+
ce.value ? (oe(), Oe(Va, {
|
|
322
|
+
key: 0,
|
|
323
|
+
fileDataList: Ce.value,
|
|
324
|
+
onDestroy: be
|
|
325
|
+
}, null, 8, ["fileDataList"])) : Xe("", !0),
|
|
326
|
+
y.value ? (oe(), Oe(ll, {
|
|
327
|
+
key: 1,
|
|
328
|
+
visible: y.value,
|
|
329
|
+
onBeforeDestroy: P,
|
|
330
|
+
style: { height: "700px", width: "1000px" }
|
|
331
|
+
}, {
|
|
332
|
+
default: ve(() => [
|
|
333
|
+
y.value ? (oe(), Oe(Qa, {
|
|
334
|
+
key: 0,
|
|
335
|
+
"urdf-url": o.value
|
|
336
|
+
}, null, 8, ["urdf-url"])) : Xe("", !0)
|
|
337
|
+
]),
|
|
338
|
+
_: 1
|
|
339
|
+
}, 8, ["visible"])) : Xe("", !0)
|
|
340
|
+
]));
|
|
341
|
+
}
|
|
342
|
+
}, Ba = /* @__PURE__ */ He(_i, [["__scopeId", "data-v-74cbbbe3"]]), fa = q(0), Ka = (r) => {
|
|
343
|
+
var V;
|
|
344
|
+
return !r || (r == null ? void 0 : r.length) === 0 ? [] : (V = l(r)) == null ? void 0 : V.map((i) => (fa.value++, i = {
|
|
345
|
+
label: (i == null ? void 0 : i.label) ?? "",
|
|
346
|
+
prop: (i == null ? void 0 : i.label) === "操作" ? "operate" : i == null ? void 0 : i.prop,
|
|
347
|
+
width: i != null && i.width ? parseInt(i.width) : "",
|
|
348
|
+
fixed: (i == null ? void 0 : i.fixed) ?? void 0,
|
|
349
|
+
sortable: (i == null ? void 0 : i.sortable) ?? !1,
|
|
350
|
+
align: (i == null ? void 0 : i.align) ?? "left",
|
|
351
|
+
showOverflowTooltip: (i == null ? void 0 : i.showOverflowTooltip) ?? !0,
|
|
352
|
+
isNotDrag: (i == null ? void 0 : i.isNotDrag) ?? !1,
|
|
353
|
+
isEditCol: (i == null ? void 0 : i.isEditCol) ?? !1,
|
|
354
|
+
isOperate: (i == null ? void 0 : i.isOperate) ?? !1,
|
|
355
|
+
id: (i == null ? void 0 : i.id) ?? fa.value,
|
|
356
|
+
children: Ka(i == null ? void 0 : i.children)
|
|
357
|
+
}, i));
|
|
358
|
+
}, Ci = (r) => {
|
|
359
|
+
var y;
|
|
360
|
+
return (y = l(r)) == null ? void 0 : y.map((i) => (fa.value++, i = {
|
|
361
|
+
label: (i == null ? void 0 : i.label) ?? "",
|
|
362
|
+
prop: (i == null ? void 0 : i.label) === "操作" ? "operate" : i == null ? void 0 : i.prop,
|
|
363
|
+
width: i != null && i.width ? parseInt(i.width) : "",
|
|
364
|
+
fixed: (i == null ? void 0 : i.fixed) ?? void 0,
|
|
365
|
+
sortable: (i == null ? void 0 : i.sortable) ?? !1,
|
|
366
|
+
align: (i == null ? void 0 : i.align) ?? "left",
|
|
367
|
+
showOverflowTooltip: (i == null ? void 0 : i.showOverflowTooltip) ?? !0,
|
|
368
|
+
isNotDrag: (i == null ? void 0 : i.isNotDrag) ?? !1,
|
|
369
|
+
isEditCol: (i == null ? void 0 : i.isEditCol) ?? !1,
|
|
370
|
+
isOperate: (i == null ? void 0 : i.isOperate) ?? !1,
|
|
371
|
+
id: (i == null ? void 0 : i.id) ?? fa.value,
|
|
372
|
+
children: Ka(i == null ? void 0 : i.children)
|
|
373
|
+
}, i));
|
|
374
|
+
}, Na = (r, V) => {
|
|
375
|
+
var y;
|
|
376
|
+
return r != null && r.find((i) => (i == null ? void 0 : i.id) === V) ? (y = l(r)) == null ? void 0 : y.filter((o) => (o == null ? void 0 : o.id) !== V) : (r = r == null ? void 0 : r.map((i) => (i.children = Na(i == null ? void 0 : i.children, V), i)), r);
|
|
377
|
+
}, Ma = (r, V) => {
|
|
378
|
+
var y;
|
|
379
|
+
return r != null && r.find((i) => (i == null ? void 0 : i.id) === (V == null ? void 0 : V.id)) ? (y = l(r)) == null ? void 0 : y.map((o) => ((o == null ? void 0 : o.id) === (V == null ? void 0 : V.id) && (o = V), o)) : (r = r == null ? void 0 : r.map((i) => (i.children = Ma(i == null ? void 0 : i.children, V), i)), r);
|
|
380
|
+
}, Wa = (r, V) => {
|
|
381
|
+
var y;
|
|
382
|
+
return r != null && r.find((i) => {
|
|
383
|
+
var o;
|
|
384
|
+
return (i == null ? void 0 : i.id) === ((o = V == null ? void 0 : V.contents) == null ? void 0 : o.id);
|
|
385
|
+
}) ? (y = l(r)) == null ? void 0 : y.map((o) => {
|
|
386
|
+
var P;
|
|
387
|
+
return (o == null ? void 0 : o.id) === ((P = V == null ? void 0 : V.contents) == null ? void 0 : P.id) && (o = V == null ? void 0 : V.contents), o;
|
|
388
|
+
}) : (r = r == null ? void 0 : r.map((i) => (i.children = Wa(i == null ? void 0 : i.children, V), i)), r);
|
|
389
|
+
}, za = (r, V) => {
|
|
390
|
+
var y;
|
|
391
|
+
return r != null && r.find((i) => (i == null ? void 0 : i.id) === (V == null ? void 0 : V.id)) ? (y = l(r)) == null ? void 0 : y.map((o) => ((o == null ? void 0 : o.id) === (V == null ? void 0 : V.id) && (o != null && o.children || (o.children = []), o.children.push(V.contents)), o)) : (r = r == null ? void 0 : r.map((i) => (i.children = za(i == null ? void 0 : i.children, V), i)), r);
|
|
392
|
+
}, Ee = [
|
|
393
|
+
{
|
|
394
|
+
key: "label",
|
|
395
|
+
label: "标签名",
|
|
396
|
+
type: "Input"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
key: "prop",
|
|
400
|
+
label: "属性名",
|
|
401
|
+
type: "Input"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
key: "width",
|
|
405
|
+
label: "宽度",
|
|
406
|
+
type: "Input"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
key: "sortable",
|
|
410
|
+
label: "是否支持排序",
|
|
411
|
+
type: "Switch"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
key: "align",
|
|
415
|
+
label: "文本所在位置",
|
|
416
|
+
type: "Radio",
|
|
417
|
+
options: [
|
|
418
|
+
{
|
|
419
|
+
label: "left",
|
|
420
|
+
value: "左"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
label: "center",
|
|
424
|
+
value: "中"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
label: "right",
|
|
428
|
+
value: "右"
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
key: "fixed",
|
|
434
|
+
label: "是否固定列",
|
|
435
|
+
type: "Switch"
|
|
436
|
+
}
|
|
437
|
+
], wi = [
|
|
438
|
+
{
|
|
439
|
+
label: "查看",
|
|
440
|
+
value: "view"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
label: "修改",
|
|
444
|
+
value: "fix"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
label: "删除",
|
|
448
|
+
value: "delete"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
label: "三维算例",
|
|
452
|
+
value: "modelExample"
|
|
453
|
+
}
|
|
454
|
+
], Di = [
|
|
455
|
+
{
|
|
456
|
+
label: "新增",
|
|
457
|
+
value: "add"
|
|
458
|
+
}
|
|
459
|
+
], vl = [
|
|
460
|
+
{
|
|
461
|
+
key: "label",
|
|
462
|
+
label: "按钮名",
|
|
463
|
+
type: "Input"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
key: "type",
|
|
467
|
+
label: "类型",
|
|
468
|
+
type: "Select",
|
|
469
|
+
options: Di
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
key: "background",
|
|
473
|
+
label: "按钮背景色",
|
|
474
|
+
type: "Color"
|
|
475
|
+
}
|
|
476
|
+
], ml = [
|
|
477
|
+
{
|
|
478
|
+
key: "label",
|
|
479
|
+
label: "按钮名",
|
|
480
|
+
type: "Input"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
key: "type",
|
|
484
|
+
label: "类型",
|
|
485
|
+
type: "Select",
|
|
486
|
+
options: wi
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
key: "textColor",
|
|
490
|
+
label: "按钮颜色",
|
|
491
|
+
type: "Color"
|
|
492
|
+
}
|
|
493
|
+
], Ii = { class: "table-header-child" }, xi = { class: "table-header-child-main" }, Ai = { class: "table-header-child-content" }, Ti = { class: "table-header-child-content-item" }, Ei = { class: "fix-button" }, Si = { key: 0 }, $i = { class: "form-content" }, Bi = {
|
|
494
|
+
__name: "tableNewChild",
|
|
495
|
+
props: {
|
|
496
|
+
tableChildContents: Array
|
|
497
|
+
},
|
|
498
|
+
emits: ["fixChange", "deleteChange"],
|
|
499
|
+
setup(r, { emit: V }) {
|
|
500
|
+
const y = r, i = V, o = q(!1), P = q(""), L = La(al), { tableIndex: w } = sl(L);
|
|
501
|
+
q(0);
|
|
502
|
+
const M = q(""), ee = q([]), O = q([]), ce = (t) => {
|
|
503
|
+
var m;
|
|
504
|
+
o.value = !0;
|
|
505
|
+
let p = [];
|
|
506
|
+
Ee == null || Ee.forEach((b) => {
|
|
507
|
+
let re = l(w.value) + 1;
|
|
508
|
+
L.setTableIndex(re), p.push({
|
|
509
|
+
label: b == null ? void 0 : b.label,
|
|
510
|
+
name: b == null ? void 0 : b.label,
|
|
511
|
+
type: b.type,
|
|
512
|
+
value: t[b.key],
|
|
513
|
+
id: w.value,
|
|
514
|
+
contents: b == null ? void 0 : b.options
|
|
515
|
+
});
|
|
516
|
+
}), t != null && t.children && ((m = t == null ? void 0 : t.children) == null ? void 0 : m.length) > 0 && p.push({
|
|
517
|
+
children: t == null ? void 0 : t.children,
|
|
518
|
+
isFormColHidden: !0
|
|
519
|
+
}), M.value = t == null ? void 0 : t.id, ee.value = p, O.value = p;
|
|
520
|
+
}, ue = (t) => {
|
|
521
|
+
i("fixChange", l(t));
|
|
522
|
+
}, Ce = (t) => {
|
|
523
|
+
i("deleteChange", l(t));
|
|
524
|
+
}, te = (t) => {
|
|
525
|
+
o.value = !0;
|
|
526
|
+
let p = [];
|
|
527
|
+
Ee == null || Ee.forEach((m) => {
|
|
528
|
+
let b = l(w.value) + 1;
|
|
529
|
+
L.setTableIndex(b), p.push({
|
|
530
|
+
label: m == null ? void 0 : m.label,
|
|
531
|
+
name: m == null ? void 0 : m.label,
|
|
532
|
+
type: m.type,
|
|
533
|
+
value: "",
|
|
534
|
+
id: w.value,
|
|
535
|
+
contents: m == null ? void 0 : m.options
|
|
536
|
+
});
|
|
537
|
+
}), P.value = t == null ? void 0 : t.id, ee.value = p, O.value = p;
|
|
538
|
+
}, ke = (t) => {
|
|
539
|
+
let p = l(O.value);
|
|
540
|
+
p = p == null ? void 0 : p.map((m) => (m.children || (m.value = t == null ? void 0 : t[m.name]), m)), O.value = p;
|
|
541
|
+
}, T = () => {
|
|
542
|
+
var p, m;
|
|
543
|
+
ee.value = O.value;
|
|
544
|
+
let t = {};
|
|
545
|
+
if (M.value !== "")
|
|
546
|
+
t.id = M.value, (p = ee.value) == null || p.forEach((b) => {
|
|
547
|
+
const re = Ee == null ? void 0 : Ee.find((be) => (be == null ? void 0 : be.label) === (b == null ? void 0 : b.label));
|
|
548
|
+
re ? t[re.key] = b.value : b != null && b.children && b.children.length > 0 && (t.children = b.children);
|
|
549
|
+
}), o.value = !1, i("fixChange", {
|
|
550
|
+
contents: l(t),
|
|
551
|
+
id: P.value,
|
|
552
|
+
type: "fix"
|
|
553
|
+
});
|
|
554
|
+
else {
|
|
555
|
+
let b = l(w.value) + 1;
|
|
556
|
+
L.setTableIndex(b), t.id = "id" + w.value, (m = ee.value) == null || m.forEach((re) => {
|
|
557
|
+
const be = Ee == null ? void 0 : Ee.find((De) => (De == null ? void 0 : De.label) === (re == null ? void 0 : re.label));
|
|
558
|
+
be ? t[be.key] = re.value : re != null && re.children && re.children.length > 0 && (t.children = re.children);
|
|
559
|
+
}), o.value = !1, i("fixChange", {
|
|
560
|
+
contents: l(t),
|
|
561
|
+
id: P.value,
|
|
562
|
+
type: "add"
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
M.value = "", ee.value = [], O.value = [];
|
|
566
|
+
}, $ = () => {
|
|
567
|
+
o.value = !1, M.value = "", P.value = "", ee.value = [], O.value = [];
|
|
568
|
+
}, me = (t) => {
|
|
569
|
+
bl.confirm("是否确认要删除", "", {
|
|
570
|
+
confirmButtonText: "确认",
|
|
571
|
+
cancelButtonText: "取消",
|
|
572
|
+
type: "warning"
|
|
573
|
+
}).then(
|
|
574
|
+
() => {
|
|
575
|
+
i("deleteChange", t), ol({
|
|
576
|
+
type: "success",
|
|
577
|
+
message: "删除成功"
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
).catch(() => {
|
|
581
|
+
});
|
|
582
|
+
};
|
|
583
|
+
return (t, p) => {
|
|
584
|
+
const m = Ue("svg-icon");
|
|
585
|
+
return oe(), _e("div", Ii, [
|
|
586
|
+
(oe(!0), _e(je, null, Je(y == null ? void 0 : y.tableChildContents, (b, re) => (oe(), _e("div", xi, [
|
|
587
|
+
E("div", Ai, [
|
|
588
|
+
E("div", Ti, we(b.label), 1),
|
|
589
|
+
E("div", Ei, [
|
|
590
|
+
ie(m, {
|
|
591
|
+
name: "ChildAdd",
|
|
592
|
+
class: "svg-icon-content",
|
|
593
|
+
style: { width: "24px", height: "24px" },
|
|
594
|
+
onClick: (be) => te(b)
|
|
595
|
+
}, null, 8, ["onClick"]),
|
|
596
|
+
ie(m, {
|
|
597
|
+
name: "ChildFix",
|
|
598
|
+
class: "svg-icon-content",
|
|
599
|
+
style: { width: "24px", height: "24px" },
|
|
600
|
+
onClick: (be) => ce(b)
|
|
601
|
+
}, null, 8, ["onClick"]),
|
|
602
|
+
ie(m, {
|
|
603
|
+
name: "ChildDelete",
|
|
604
|
+
class: "svg-icon-content",
|
|
605
|
+
style: { width: "24px", height: "24px" },
|
|
606
|
+
onClick: (be) => me(b)
|
|
607
|
+
}, null, 8, ["onClick"])
|
|
608
|
+
])
|
|
609
|
+
]),
|
|
610
|
+
b != null && b.children && b.children.length > 0 ? (oe(), _e("div", Si, [
|
|
611
|
+
ie(Ja, {
|
|
612
|
+
tableChildContents: b == null ? void 0 : b.children,
|
|
613
|
+
onDeleteChange: Ce,
|
|
614
|
+
onFixChange: ue
|
|
615
|
+
}, null, 8, ["tableChildContents"])
|
|
616
|
+
])) : Xe("", !0)
|
|
617
|
+
]))), 256)),
|
|
618
|
+
ie(ll, {
|
|
619
|
+
visible: o.value,
|
|
620
|
+
onBeforeDestroy: $,
|
|
621
|
+
width: 840
|
|
622
|
+
}, {
|
|
623
|
+
default: ve(() => [
|
|
624
|
+
E("div", $i, [
|
|
625
|
+
(oe(), Oe(el, {
|
|
626
|
+
rowContents: ee.value,
|
|
627
|
+
key: ee.value,
|
|
628
|
+
isEnableWrap: !0,
|
|
629
|
+
onChange: ke
|
|
630
|
+
}, null, 8, ["rowContents"]))
|
|
631
|
+
])
|
|
632
|
+
]),
|
|
633
|
+
footer: ve(() => [
|
|
634
|
+
E("div", { class: "dialog-footer" }, [
|
|
635
|
+
E("div", {
|
|
636
|
+
onClick: $,
|
|
637
|
+
class: "cancel-button button"
|
|
638
|
+
}, we("取消")),
|
|
639
|
+
E("div", {
|
|
640
|
+
class: "ok-button button",
|
|
641
|
+
onClick: T
|
|
642
|
+
}, we("确认"))
|
|
643
|
+
])
|
|
644
|
+
]),
|
|
645
|
+
_: 1
|
|
646
|
+
}, 8, ["visible"])
|
|
647
|
+
]);
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
}, Fi = /* @__PURE__ */ He(Bi, [["__scopeId", "data-v-e0fef72d"]]), Li = { class: "table-header-child" }, Oi = { class: "table-header-child-main" }, Vi = { class: "table-header-child-content" }, Ri = { class: "table-header-child-content-item" }, Ui = { class: "fix-button" }, ji = { key: 0 }, Pi = { class: "form-content" }, Ki = { class: "dialog-footer" }, Ni = {
|
|
651
|
+
__name: "tableChildren",
|
|
652
|
+
props: {
|
|
653
|
+
tableChildContents: Array
|
|
654
|
+
},
|
|
655
|
+
emits: ["fixChange", "deleteChange"],
|
|
656
|
+
setup(r, { emit: V }) {
|
|
657
|
+
const y = r, i = V, o = q(!1), P = q(""), L = La(al), { tableIndex: w } = sl(L), M = q(""), ee = q([]), O = q([]), ce = (t) => {
|
|
658
|
+
i("fixChange", l(t));
|
|
659
|
+
}, ue = (t) => {
|
|
660
|
+
var m;
|
|
661
|
+
o.value = !0;
|
|
662
|
+
let p = [];
|
|
663
|
+
Ee == null || Ee.forEach((b) => {
|
|
664
|
+
let re = l(w.value) + 1;
|
|
665
|
+
L.setTableIndex(re), p.push({
|
|
666
|
+
label: b == null ? void 0 : b.label,
|
|
667
|
+
name: b == null ? void 0 : b.label,
|
|
668
|
+
type: b.type,
|
|
669
|
+
value: t[b.key],
|
|
670
|
+
id: w.value,
|
|
671
|
+
contents: b == null ? void 0 : b.options
|
|
672
|
+
});
|
|
673
|
+
}), t != null && t.children && ((m = t == null ? void 0 : t.children) == null ? void 0 : m.length) > 0 && p.push({
|
|
674
|
+
children: t == null ? void 0 : t.children,
|
|
675
|
+
isFormColHidden: !0
|
|
676
|
+
}), M.value = t == null ? void 0 : t.id, ee.value = p, O.value = p;
|
|
677
|
+
}, Ce = (t) => {
|
|
678
|
+
o.value = !0;
|
|
679
|
+
let p = [];
|
|
680
|
+
Ee == null || Ee.forEach((m) => {
|
|
681
|
+
let b = l(w.value) + 1;
|
|
682
|
+
L.setTableIndex(b), p.push({
|
|
683
|
+
label: m == null ? void 0 : m.label,
|
|
684
|
+
name: m == null ? void 0 : m.label,
|
|
685
|
+
type: m.type,
|
|
686
|
+
value: "",
|
|
687
|
+
id: w.value,
|
|
688
|
+
contents: m == null ? void 0 : m.options
|
|
689
|
+
});
|
|
690
|
+
}), P.value = t == null ? void 0 : t.id, ee.value = p, O.value = p;
|
|
691
|
+
}, te = (t) => {
|
|
692
|
+
let p = l(O.value);
|
|
693
|
+
p = p == null ? void 0 : p.map((m) => (m.children || (m.value = t == null ? void 0 : t[m.name]), m)), O.value = p;
|
|
694
|
+
}, ke = () => {
|
|
695
|
+
var p, m;
|
|
696
|
+
ee.value = O.value;
|
|
697
|
+
let t = {};
|
|
698
|
+
if (M.value !== "")
|
|
699
|
+
t.id = M.value, (p = ee.value) == null || p.forEach((b) => {
|
|
700
|
+
const re = Ee == null ? void 0 : Ee.find((be) => (be == null ? void 0 : be.label) === (b == null ? void 0 : b.label));
|
|
701
|
+
re ? t[re.key] = b.value : b != null && b.children && b.children.length > 0 && (t.children = b.children);
|
|
702
|
+
}), o.value = !1, i("fixChange", {
|
|
703
|
+
contents: l(t),
|
|
704
|
+
id: P.value,
|
|
705
|
+
type: "fix"
|
|
706
|
+
});
|
|
707
|
+
else {
|
|
708
|
+
let b = l(w.value) + 1;
|
|
709
|
+
L.setTableIndex(b), t.id = "idChild" + w.value, (m = ee.value) == null || m.forEach((re) => {
|
|
710
|
+
const be = Ee == null ? void 0 : Ee.find((De) => (De == null ? void 0 : De.label) === (re == null ? void 0 : re.label));
|
|
711
|
+
be ? t[be.key] = re.value : re != null && re.children && re.children.length > 0 && (t.children = re.children);
|
|
712
|
+
}), o.value = !1, i("fixChange", {
|
|
713
|
+
contents: l(t),
|
|
714
|
+
id: P.value,
|
|
715
|
+
type: "add"
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
M.value = "", ee.value = [], O.value = [];
|
|
719
|
+
}, T = () => {
|
|
720
|
+
o.value = !1, M.value = "", P.value = "", ee.value = [], O.value = [];
|
|
721
|
+
}, $ = (t) => {
|
|
722
|
+
bl.confirm("是否确认要删除", "", {
|
|
723
|
+
confirmButtonText: "确认",
|
|
724
|
+
cancelButtonText: "取消",
|
|
725
|
+
type: "warning"
|
|
726
|
+
}).then(
|
|
727
|
+
() => {
|
|
728
|
+
i("deleteChange", t), ol({
|
|
729
|
+
type: "success",
|
|
730
|
+
message: "删除成功"
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
).catch(() => {
|
|
734
|
+
});
|
|
735
|
+
}, me = (t) => {
|
|
736
|
+
i("deleteChange", t);
|
|
737
|
+
};
|
|
738
|
+
return (t, p) => {
|
|
739
|
+
const m = Ue("svg-icon"), b = Ue("el-button");
|
|
740
|
+
return oe(), _e("div", Li, [
|
|
741
|
+
(oe(!0), _e(je, null, Je(y == null ? void 0 : y.tableChildContents, (re, be) => (oe(), _e("div", Oi, [
|
|
742
|
+
E("div", Vi, [
|
|
743
|
+
E("div", Ri, we(re.label), 1),
|
|
744
|
+
E("div", Ui, [
|
|
745
|
+
ie(m, {
|
|
746
|
+
name: "ChildAdd",
|
|
747
|
+
class: "svg-icon-content",
|
|
748
|
+
style: { width: "24px", height: "24px" },
|
|
749
|
+
onClick: (De) => Ce(re)
|
|
750
|
+
}, null, 8, ["onClick"]),
|
|
751
|
+
ie(m, {
|
|
752
|
+
name: "ChildFix",
|
|
753
|
+
class: "svg-icon-content",
|
|
754
|
+
style: { width: "24px", height: "24px" },
|
|
755
|
+
onClick: (De) => ue(re)
|
|
756
|
+
}, null, 8, ["onClick"]),
|
|
757
|
+
ie(m, {
|
|
758
|
+
name: "ChildDelete",
|
|
759
|
+
class: "svg-icon-content",
|
|
760
|
+
style: { width: "24px", height: "24px" },
|
|
761
|
+
onClick: (De) => $(re)
|
|
762
|
+
}, null, 8, ["onClick"])
|
|
763
|
+
])
|
|
764
|
+
]),
|
|
765
|
+
re != null && re.children && re.children.length > 0 ? (oe(), _e("div", ji, [
|
|
766
|
+
ie(Fi, {
|
|
767
|
+
tableChildContents: re == null ? void 0 : re.children,
|
|
768
|
+
onDeleteChange: me,
|
|
769
|
+
onFixChange: ce
|
|
770
|
+
}, null, 8, ["tableChildContents"])
|
|
771
|
+
])) : Xe("", !0)
|
|
772
|
+
]))), 256)),
|
|
773
|
+
ie(ll, {
|
|
774
|
+
visible: o.value,
|
|
775
|
+
onBeforeDestroy: T,
|
|
776
|
+
width: 840
|
|
777
|
+
}, {
|
|
778
|
+
default: ve(() => [
|
|
779
|
+
E("div", Pi, [
|
|
780
|
+
(oe(), Oe(el, {
|
|
781
|
+
rowContents: ee.value,
|
|
782
|
+
key: ee.value,
|
|
783
|
+
isEnableWrap: !0,
|
|
784
|
+
onChange: te
|
|
785
|
+
}, null, 8, ["rowContents"]))
|
|
786
|
+
])
|
|
787
|
+
]),
|
|
788
|
+
footer: ve(() => [
|
|
789
|
+
E("div", Ki, [
|
|
790
|
+
ie(b, {
|
|
791
|
+
onClick: T,
|
|
792
|
+
class: "cancel-button button",
|
|
793
|
+
id: "themeBorderButton"
|
|
794
|
+
}, {
|
|
795
|
+
default: ve(() => p[0] || (p[0] = [
|
|
796
|
+
Be(we("取消"))
|
|
797
|
+
])),
|
|
798
|
+
_: 1,
|
|
799
|
+
__: [0]
|
|
800
|
+
}),
|
|
801
|
+
ie(b, {
|
|
802
|
+
class: "ok-button button",
|
|
803
|
+
onClick: ke,
|
|
804
|
+
id: "themeButton"
|
|
805
|
+
}, {
|
|
806
|
+
default: ve(() => p[1] || (p[1] = [
|
|
807
|
+
Be(we("确认"))
|
|
808
|
+
])),
|
|
809
|
+
_: 1,
|
|
810
|
+
__: [1]
|
|
811
|
+
})
|
|
812
|
+
])
|
|
813
|
+
]),
|
|
814
|
+
_: 1
|
|
815
|
+
}, 8, ["visible"])
|
|
816
|
+
]);
|
|
817
|
+
};
|
|
818
|
+
}
|
|
819
|
+
}, Ja = /* @__PURE__ */ He(Ni, [["__scopeId", "data-v-ebd68fa1"]]), Mi = { class: "table-operate-content" }, Wi = { class: "table-operate-item" }, zi = { class: "operate-title" }, Ji = { class: "operate-content" }, Hi = { class: "fix-content" }, Gi = { class: "fix-content-label" }, qi = { class: "fix-button" }, Qi = { key: 0 }, Xi = { class: "operate-title" }, Yi = { class: "operate-content" }, Zi = { class: "fix-content" }, es = { class: "fix-content-label" }, ls = { class: "fix-button" }, as = { class: "operate-title" }, is = { class: "operate-content" }, ss = { class: "fix-content" }, ns = { class: "fix-content-label" }, os = { class: "fix-button" }, us = { class: "operate-title" }, rs = { class: "operate-content" }, cs = { class: "fix-content" }, ts = { class: "fix-content-label" }, ds = { class: "fix-button" }, ps = { class: "operate-content" }, fs = { style: { display: "flex", "justify-content": "space-between" } }, hs = { class: "form-content" }, vs = { class: "dialog-footer" }, ms = { class: "form-content" }, ys = { class: "dialog-footer" }, gs = { class: "form-content" }, bs = { class: "dialog-footer" }, ks = { class: "form-content" }, _s = { class: "dialog-footer" }, Cs = {
|
|
820
|
+
__name: "operate",
|
|
821
|
+
props: {
|
|
822
|
+
itemContents: {
|
|
823
|
+
type: Array,
|
|
824
|
+
default: () => []
|
|
825
|
+
},
|
|
826
|
+
originalItemContents: {
|
|
827
|
+
type: Array,
|
|
828
|
+
default: () => []
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
emits: ["change"],
|
|
832
|
+
setup(r, { emit: V }) {
|
|
833
|
+
const y = r, i = V, o = q([]), P = q(!1), L = q(!1), w = q([]), M = q(!1), ee = q([]), O = q(!1), ce = q([]), ue = q(""), Ce = q(""), te = q([]), ke = q([]), T = q([]), $ = q([]), me = q(!1), t = q([]), p = q([]), m = q(0), b = q([]), re = q([]), be = q([]), De = () => {
|
|
834
|
+
me.value = !0;
|
|
835
|
+
let e = [];
|
|
836
|
+
vl == null || vl.forEach((a) => {
|
|
837
|
+
m.value++, e.push({
|
|
838
|
+
label: a == null ? void 0 : a.label,
|
|
839
|
+
name: a == null ? void 0 : a.label,
|
|
840
|
+
type: a.type,
|
|
841
|
+
value: (a == null ? void 0 : a.key) === "background" ? "var(--ssComponent-primary-color)" : "",
|
|
842
|
+
id: m.value,
|
|
843
|
+
contents: a == null ? void 0 : a.options
|
|
844
|
+
});
|
|
845
|
+
}), t.value = e, p.value = e;
|
|
846
|
+
}, Fe = () => {
|
|
847
|
+
var a, d, h;
|
|
848
|
+
L.value = !0;
|
|
849
|
+
let e = [];
|
|
850
|
+
(h = (d = (a = Qe) == null ? void 0 : a.find((k) => (k == null ? void 0 : k.key) === "Input")) == null ? void 0 : d.value) == null || h.forEach((k) => {
|
|
851
|
+
m.value++, e.push({
|
|
852
|
+
label: k == null ? void 0 : k.label,
|
|
853
|
+
name: k == null ? void 0 : k.label,
|
|
854
|
+
type: k.type,
|
|
855
|
+
value: (k == null ? void 0 : k.label) === "类型" ? "Input" : "",
|
|
856
|
+
id: m.value,
|
|
857
|
+
contents: k == null ? void 0 : k.options
|
|
858
|
+
});
|
|
859
|
+
}), b.value = e, re.value = e;
|
|
860
|
+
}, _ = (e) => {
|
|
861
|
+
e || (b.value = re.value);
|
|
862
|
+
}, Y = async (e) => {
|
|
863
|
+
var a, d, h, k, W, ye, N, le, se, ge, U, ne;
|
|
864
|
+
if ((e == null ? void 0 : e.类型) !== ((d = (a = re.value) == null ? void 0 : a.find((C) => (C == null ? void 0 : C.label) === "类型")) == null ? void 0 : d.value)) {
|
|
865
|
+
let C = [], he = await ((W = (k = (h = Qe) == null ? void 0 : h.find((fe) => (fe == null ? void 0 : fe.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : k.value) == null ? void 0 : W.value) ? await ((ge = (se = (le = Qe) == null ? void 0 : le.find((fe) => (fe == null ? void 0 : fe.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : se.value) == null ? void 0 : ge.value) : (N = (ye = Qe) == null ? void 0 : ye.find((fe) => (fe == null ? void 0 : fe.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : N.value;
|
|
866
|
+
if (he == null || he.forEach((fe) => {
|
|
867
|
+
m.value++, C.push({
|
|
868
|
+
label: fe == null ? void 0 : fe.label,
|
|
869
|
+
name: fe == null ? void 0 : fe.label,
|
|
870
|
+
type: fe.type,
|
|
871
|
+
value: (e == null ? void 0 : e[fe.label]) ?? "",
|
|
872
|
+
id: m.value,
|
|
873
|
+
contents: fe == null ? void 0 : fe.options
|
|
874
|
+
});
|
|
875
|
+
}), e != null && e.菜单选项 && ((U = e == null ? void 0 : e.菜单选项) == null ? void 0 : U.length) > 0) {
|
|
876
|
+
const fe = await Fl(e == null ? void 0 : e.菜单选项);
|
|
877
|
+
C = C == null ? void 0 : C.map((Ae) => ((Ae == null ? void 0 : Ae.name) === "组信息选项" && (Ae.contents = fe), Ae));
|
|
878
|
+
}
|
|
879
|
+
re.value = await fl(l(C)), b.value = await fl(l(C));
|
|
880
|
+
} else {
|
|
881
|
+
let C = l(b.value);
|
|
882
|
+
if (C = C == null ? void 0 : C.map((he) => (he.value = e == null ? void 0 : e[he.name], he)), e != null && e.菜单选项 && ((ne = e == null ? void 0 : e.菜单选项) == null ? void 0 : ne.length) > 0) {
|
|
883
|
+
const he = await Fl(e == null ? void 0 : e.菜单选项);
|
|
884
|
+
C = C == null ? void 0 : C.map((fe) => ((fe == null ? void 0 : fe.name) === "组信息选项" && (fe.contents = he), fe));
|
|
885
|
+
}
|
|
886
|
+
C = Tl(C), re.value = await fl(l(C));
|
|
887
|
+
}
|
|
888
|
+
}, x = async (e) => {
|
|
889
|
+
await Y(e), b.value = re.value;
|
|
890
|
+
}, s = (e, a) => {
|
|
891
|
+
if (console.log(345, e), (a == null ? void 0 : a.type) == "Select" && (e == null ? void 0 : e.key) === "selectRelateType") {
|
|
892
|
+
const d = a == null ? void 0 : a.optionUrl;
|
|
893
|
+
return (d == null ? void 0 : d.selectRelateType) || a[e.key];
|
|
894
|
+
}
|
|
895
|
+
if ((a == null ? void 0 : a.type) == "Select" && (e == null ? void 0 : e.key) === "menuSelect") {
|
|
896
|
+
const d = a == null ? void 0 : a.optionUrl;
|
|
897
|
+
return (d == null ? void 0 : d.menuSelect) || a[e.key];
|
|
898
|
+
}
|
|
899
|
+
if ((a == null ? void 0 : a.type) == "Select" && (e == null ? void 0 : e.key) === "groupSelect") {
|
|
900
|
+
const d = a == null ? void 0 : a.optionUrl;
|
|
901
|
+
return (d == null ? void 0 : d.groupSelect) || a[e.key];
|
|
902
|
+
}
|
|
903
|
+
if ((a == null ? void 0 : a.type) == "Select" && (e == null ? void 0 : e.key) === "originalContent")
|
|
904
|
+
return (a == null ? void 0 : a.value) || a[e.key];
|
|
905
|
+
if ((a == null ? void 0 : a.type) == "Select" && (e == null ? void 0 : e.key) === "multiple") {
|
|
906
|
+
const d = a[e.key];
|
|
907
|
+
return Pa(d) ? d : e.default;
|
|
908
|
+
}
|
|
909
|
+
return (e == null ? void 0 : e.label) === "类型" && a[e.key] === "" ? "Input" : (e == null ? void 0 : e.key) === "isFormColHidden" && !a[e.key] ? !1 : a[e.key];
|
|
910
|
+
}, c = async (e) => {
|
|
911
|
+
var h, k, W, ye, N, le, se, ge, U;
|
|
912
|
+
L.value = !0;
|
|
913
|
+
let a = [];
|
|
914
|
+
const d = await ((W = (k = (h = Qe) == null ? void 0 : h.find((ne) => (ne == null ? void 0 : ne.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : k.value) == null ? void 0 : W.value) ? await ((ge = (se = (le = Qe) == null ? void 0 : le.find((ne) => (ne == null ? void 0 : ne.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : se.value) == null ? void 0 : ge.value) : (N = (ye = Qe) == null ? void 0 : ye.find((ne) => (ne == null ? void 0 : ne.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : N.value;
|
|
915
|
+
if (d == null || d.forEach((ne) => {
|
|
916
|
+
m.value++, a.push({
|
|
917
|
+
label: ne == null ? void 0 : ne.label,
|
|
918
|
+
name: ne == null ? void 0 : ne.label,
|
|
919
|
+
type: ne.type,
|
|
920
|
+
// value: (t?.label === "类型" && content[t.key] === '') ? "Input" : content[t.key],
|
|
921
|
+
value: s(ne, e),
|
|
922
|
+
id: m.value,
|
|
923
|
+
contents: ne == null ? void 0 : ne.options
|
|
924
|
+
});
|
|
925
|
+
}), e != null && e.menuSelect && ((U = e == null ? void 0 : e.menuSelect) == null ? void 0 : U.length) > 0) {
|
|
926
|
+
const ne = await Fl(e == null ? void 0 : e.menuSelect);
|
|
927
|
+
a = a == null ? void 0 : a.map((C) => ((C == null ? void 0 : C.name) === "组信息选项" && (C.contents = ne), C));
|
|
928
|
+
}
|
|
929
|
+
ue.value = e == null ? void 0 : e.id, b.value = await fl(Tl(a)), re.value = await fl(Tl(a));
|
|
930
|
+
}, D = (e) => {
|
|
931
|
+
bl.confirm("是否确认要删除", "", {
|
|
932
|
+
confirmButtonText: "确认",
|
|
933
|
+
cancelButtonText: "取消",
|
|
934
|
+
type: "warning"
|
|
935
|
+
}).then(
|
|
936
|
+
() => {
|
|
937
|
+
var a, d;
|
|
938
|
+
be.value = (a = l(be.value)) == null ? void 0 : a.filter((h) => (h == null ? void 0 : h.id) !== (e == null ? void 0 : e.id)), i("change", (d = l(y.originalItemContents)) == null ? void 0 : d.map((h) => ((h == null ? void 0 : h.key) === "tableToForm" && (h.contents = be.value), h))), ol({
|
|
939
|
+
type: "success",
|
|
940
|
+
message: "删除成功"
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
).catch(() => {
|
|
944
|
+
});
|
|
945
|
+
}, I = () => {
|
|
946
|
+
L.value = !1, b.value = [], ue.value = "";
|
|
947
|
+
}, z = async () => {
|
|
948
|
+
var h, k, W, ye, N, le, se, ge, U, ne;
|
|
949
|
+
b.value = re.value;
|
|
950
|
+
let e = {};
|
|
951
|
+
ue.value !== "" ? e.id = ue.value : (m.value++, e.id = "id" + m.value);
|
|
952
|
+
let a = await ((W = (k = (h = Qe) == null ? void 0 : h.find((C) => {
|
|
953
|
+
var he, fe;
|
|
954
|
+
return (C == null ? void 0 : C.key) === (((fe = (he = b.value) == null ? void 0 : he.find((Ae) => (Ae == null ? void 0 : Ae.label) === "类型")) == null ? void 0 : fe.value) ?? "label");
|
|
955
|
+
})) == null ? void 0 : k.value) == null ? void 0 : W.value) ?? ((N = (ye = Qe) == null ? void 0 : ye.find((C) => {
|
|
956
|
+
var he, fe;
|
|
957
|
+
return (C == null ? void 0 : C.key) === (((fe = (he = b.value) == null ? void 0 : he.find((Ae) => (Ae == null ? void 0 : Ae.label) === "类型")) == null ? void 0 : fe.value) ?? "label");
|
|
958
|
+
})) == null ? void 0 : N.value);
|
|
959
|
+
if ((le = b.value) == null || le.forEach((C) => {
|
|
960
|
+
const he = a == null ? void 0 : a.find((fe) => (fe == null ? void 0 : fe.label) === (C == null ? void 0 : C.label));
|
|
961
|
+
he && (e[he.key] = C.value);
|
|
962
|
+
}), e.name = e.label, (se = be.value) != null && se.find((C) => C.id === e.id))
|
|
963
|
+
be.value = (ge = be.value) == null ? void 0 : ge.map((C) => (C.id === e.id && (C = e), C));
|
|
964
|
+
else {
|
|
965
|
+
let C = l(be.value);
|
|
966
|
+
be.value || (be.value = []), C.push(e), be.value = C;
|
|
967
|
+
}
|
|
968
|
+
be.value = be.value.map(({ id: C, ...he }) => he), L.value = !1, ue.value = "";
|
|
969
|
+
let d = l(y.originalItemContents);
|
|
970
|
+
(U = l(y.originalItemContents)) != null && U.find((C) => (C == null ? void 0 : C.key) === "tableToForm") ? d = (ne = l(y.originalItemContents)) == null ? void 0 : ne.map((C) => ((C == null ? void 0 : C.key) === "tableToForm" && (C.contents = be.value), C)) : d.push({
|
|
971
|
+
key: "tableToForm",
|
|
972
|
+
contents: be.value
|
|
973
|
+
}), i("change", d);
|
|
974
|
+
}, G = (e) => {
|
|
975
|
+
me.value = !0;
|
|
976
|
+
let a = [];
|
|
977
|
+
vl == null || vl.forEach((d) => {
|
|
978
|
+
m.value++, a.push({
|
|
979
|
+
label: d == null ? void 0 : d.label,
|
|
980
|
+
name: d == null ? void 0 : d.label,
|
|
981
|
+
type: d.type,
|
|
982
|
+
value: e[d.key],
|
|
983
|
+
id: m.value,
|
|
984
|
+
contents: d == null ? void 0 : d.options
|
|
985
|
+
});
|
|
986
|
+
}), ue.value = e == null ? void 0 : e.id, t.value = a, p.value = a;
|
|
987
|
+
};
|
|
988
|
+
Ye(
|
|
989
|
+
() => O.value,
|
|
990
|
+
() => {
|
|
991
|
+
var a, d;
|
|
992
|
+
let e = l(y.originalItemContents);
|
|
993
|
+
(a = l(y.originalItemContents)) != null && a.find((h) => (h == null ? void 0 : h.key) === "page") ? e = (d = l(y.originalItemContents)) == null ? void 0 : d.map((h) => ((h == null ? void 0 : h.key) === "page" && (h.contents = O.value), h)) : e.push({
|
|
994
|
+
key: "page",
|
|
995
|
+
contents: O.value
|
|
996
|
+
}), i("change", e);
|
|
997
|
+
},
|
|
998
|
+
{ deep: !0 }
|
|
999
|
+
);
|
|
1000
|
+
const F = (e) => {
|
|
1001
|
+
bl.confirm("是否确认要删除", "", {
|
|
1002
|
+
confirmButtonText: "确认",
|
|
1003
|
+
cancelButtonText: "取消",
|
|
1004
|
+
type: "warning"
|
|
1005
|
+
}).then(
|
|
1006
|
+
() => {
|
|
1007
|
+
var a, d;
|
|
1008
|
+
ke.value = (a = l(ke.value)) == null ? void 0 : a.filter((h) => (h == null ? void 0 : h.id) !== (e == null ? void 0 : e.id)), i("change", (d = l(y.originalItemContents)) == null ? void 0 : d.map((h) => ((h == null ? void 0 : h.key) === "extraButton" && (h.contents = ke.value), h))), ol({
|
|
1009
|
+
type: "success",
|
|
1010
|
+
message: "删除成功"
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
).catch(() => {
|
|
1014
|
+
});
|
|
1015
|
+
}, u = () => {
|
|
1016
|
+
var d, h, k, W, ye;
|
|
1017
|
+
t.value = p.value;
|
|
1018
|
+
let e = {};
|
|
1019
|
+
if (ue.value !== "" ? e.id = ue.value : (m.value++, e.id = "id" + m.value), (d = t.value) == null || d.forEach((N) => {
|
|
1020
|
+
const le = vl == null ? void 0 : vl.find((se) => (se == null ? void 0 : se.label) === (N == null ? void 0 : N.label));
|
|
1021
|
+
le ? e[le.key] = N.value : N != null && N.children && N.children.length > 0 && (e.children = N.children);
|
|
1022
|
+
}), (h = ke.value) != null && h.find((N) => N.id === e.id))
|
|
1023
|
+
ke.value = (k = ke.value) == null ? void 0 : k.map((N) => (N.id === e.id && (N = e), N));
|
|
1024
|
+
else {
|
|
1025
|
+
let N = l(ke.value) ?? [];
|
|
1026
|
+
N.push(e), ke.value = N;
|
|
1027
|
+
}
|
|
1028
|
+
me.value = !1, ue.value = "";
|
|
1029
|
+
let a = l(y.originalItemContents);
|
|
1030
|
+
(W = l(y.originalItemContents)) != null && W.find((N) => (N == null ? void 0 : N.key) === "extraButton") ? a = (ye = l(y.originalItemContents)) == null ? void 0 : ye.map((N) => ((N == null ? void 0 : N.key) === "extraButton" && (N.contents = ke.value), N)) : a.push({
|
|
1031
|
+
key: "extraButton",
|
|
1032
|
+
contents: ke.value
|
|
1033
|
+
}), i("change", a);
|
|
1034
|
+
}, X = (e) => {
|
|
1035
|
+
let a = l(p.value);
|
|
1036
|
+
a = a == null ? void 0 : a.map((d) => (d.children || (d.value = e == null ? void 0 : e[d.name]), d)), p.value = a;
|
|
1037
|
+
}, J = () => {
|
|
1038
|
+
me.value = !1, t.value = [], ue.value = "";
|
|
1039
|
+
}, de = (e) => {
|
|
1040
|
+
M.value = !0;
|
|
1041
|
+
let a = [];
|
|
1042
|
+
ml == null || ml.forEach((d) => {
|
|
1043
|
+
m.value++, a.push({
|
|
1044
|
+
label: d == null ? void 0 : d.label,
|
|
1045
|
+
name: d == null ? void 0 : d.label,
|
|
1046
|
+
type: d.type,
|
|
1047
|
+
value: e[d.key],
|
|
1048
|
+
id: m.value,
|
|
1049
|
+
contents: d == null ? void 0 : d.options
|
|
1050
|
+
});
|
|
1051
|
+
}), ue.value = e == null ? void 0 : e.id, T.value = a, $.value = a;
|
|
1052
|
+
}, Q = (e) => {
|
|
1053
|
+
bl.confirm("是否确认要删除", "", {
|
|
1054
|
+
confirmButtonText: "确认",
|
|
1055
|
+
cancelButtonText: "取消",
|
|
1056
|
+
type: "warning"
|
|
1057
|
+
}).then(
|
|
1058
|
+
() => {
|
|
1059
|
+
var a, d;
|
|
1060
|
+
te.value = (a = l(te.value)) == null ? void 0 : a.filter((h) => (h == null ? void 0 : h.id) !== (e == null ? void 0 : e.id)), i("change", (d = l(y.originalItemContents)) == null ? void 0 : d.map((h) => ((h == null ? void 0 : h.key) === "rowButton" && (h.contents = te.value), h))), ol({
|
|
1061
|
+
type: "success",
|
|
1062
|
+
message: "删除成功"
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
).catch(() => {
|
|
1066
|
+
});
|
|
1067
|
+
}, R = () => {
|
|
1068
|
+
P.value = !0;
|
|
1069
|
+
let e = [];
|
|
1070
|
+
Ee == null || Ee.forEach((a) => {
|
|
1071
|
+
m.value++, e.push({
|
|
1072
|
+
label: a == null ? void 0 : a.label,
|
|
1073
|
+
name: a == null ? void 0 : a.label,
|
|
1074
|
+
type: a.type,
|
|
1075
|
+
value: "",
|
|
1076
|
+
id: m.value,
|
|
1077
|
+
contents: a == null ? void 0 : a.options
|
|
1078
|
+
});
|
|
1079
|
+
}), ee.value = e, ce.value = e;
|
|
1080
|
+
}, K = () => {
|
|
1081
|
+
M.value = !0;
|
|
1082
|
+
let e = [];
|
|
1083
|
+
ml == null || ml.forEach((a) => {
|
|
1084
|
+
m.value++, e.push({
|
|
1085
|
+
label: a == null ? void 0 : a.label,
|
|
1086
|
+
name: a == null ? void 0 : a.label,
|
|
1087
|
+
type: a.type,
|
|
1088
|
+
value: "",
|
|
1089
|
+
id: m.value,
|
|
1090
|
+
contents: a == null ? void 0 : a.options
|
|
1091
|
+
});
|
|
1092
|
+
}), T.value = e, $.value = e;
|
|
1093
|
+
}, j = (e) => {
|
|
1094
|
+
let a = l($.value);
|
|
1095
|
+
a = a == null ? void 0 : a.map((d) => (d.children || (d.value = e == null ? void 0 : e[d.name]), d)), $.value = a;
|
|
1096
|
+
}, A = () => {
|
|
1097
|
+
var d, h, k, W, ye;
|
|
1098
|
+
T.value = $.value;
|
|
1099
|
+
let e = {};
|
|
1100
|
+
if (ue.value !== "" ? e.id = ue.value : (m.value++, e.id = "id" + m.value), (d = T.value) == null || d.forEach((N) => {
|
|
1101
|
+
const le = ml == null ? void 0 : ml.find((se) => (se == null ? void 0 : se.label) === (N == null ? void 0 : N.label));
|
|
1102
|
+
le ? e[le.key] = N.value : N != null && N.children && N.children.length > 0 && (e.children = N.children);
|
|
1103
|
+
}), (h = te.value) != null && h.find((N) => N.id === e.id))
|
|
1104
|
+
te.value = (k = te.value) == null ? void 0 : k.map((N) => (N.id === e.id && (N = e), N));
|
|
1105
|
+
else {
|
|
1106
|
+
let N = l(te.value);
|
|
1107
|
+
N.push(e), te.value = N;
|
|
1108
|
+
}
|
|
1109
|
+
M.value = !1, ue.value = "";
|
|
1110
|
+
let a = l(y.originalItemContents);
|
|
1111
|
+
(W = l(y.originalItemContents)) != null && W.find((N) => (N == null ? void 0 : N.key) === "rowButton") ? a = (ye = l(y.originalItemContents)) == null ? void 0 : ye.map((N) => ((N == null ? void 0 : N.key) === "rowButton" && (N.contents = te.value), N)) : a.push({
|
|
1112
|
+
key: "rowButton",
|
|
1113
|
+
contents: te.value
|
|
1114
|
+
}), i("change", a);
|
|
1115
|
+
}, pe = () => {
|
|
1116
|
+
M.value = !1, ue.value = "", $.value = [], T.value = [];
|
|
1117
|
+
}, ae = (e) => {
|
|
1118
|
+
P.value = !0;
|
|
1119
|
+
let a = [];
|
|
1120
|
+
Ee == null || Ee.forEach((d) => {
|
|
1121
|
+
m.value++, a.push({
|
|
1122
|
+
label: d == null ? void 0 : d.label,
|
|
1123
|
+
name: d == null ? void 0 : d.label,
|
|
1124
|
+
type: d.type,
|
|
1125
|
+
value: "",
|
|
1126
|
+
id: m.value,
|
|
1127
|
+
contents: d == null ? void 0 : d.options
|
|
1128
|
+
});
|
|
1129
|
+
}), ee.value = a, Ce.value = e == null ? void 0 : e.id, ce.value = a;
|
|
1130
|
+
}, S = (e) => {
|
|
1131
|
+
var a;
|
|
1132
|
+
w.value = Na(l(w.value), e == null ? void 0 : e.id), i("change", (a = l(y.originalItemContents)) == null ? void 0 : a.map((d) => {
|
|
1133
|
+
var h;
|
|
1134
|
+
return (d == null ? void 0 : d.key) === "header" && (d.contents = (h = w.value) != null && h.some((k) => k == null ? void 0 : k.children) ? [w.value] : w.value), d;
|
|
1135
|
+
}));
|
|
1136
|
+
}, g = (e) => {
|
|
1137
|
+
var d, h, k;
|
|
1138
|
+
e.type === "fix" ? e.id !== "" ? w.value = Wa(w.value, e) : w.value = Ma(w.value, e == null ? void 0 : e.contents) : w.value = za(w.value, e), w.value = (d = w.value) != null && d.some((W) => W == null ? void 0 : W.children) ? [w.value] : w.value, ue.value = "";
|
|
1139
|
+
let a = l(y.originalItemContents);
|
|
1140
|
+
(h = l(y.originalItemContents)) != null && h.find((W) => (W == null ? void 0 : W.key) === "header") ? a = (k = l(y.originalItemContents)) == null ? void 0 : k.map((W) => ((W == null ? void 0 : W.key) === "header" && (W.contents = w.value), W)) : a.push({
|
|
1141
|
+
key: "header",
|
|
1142
|
+
contents: w.value
|
|
1143
|
+
}), i("change", a);
|
|
1144
|
+
}, v = (e) => {
|
|
1145
|
+
var d;
|
|
1146
|
+
P.value = !0;
|
|
1147
|
+
let a = [];
|
|
1148
|
+
Ee == null || Ee.forEach((h) => {
|
|
1149
|
+
m.value++, a.push({
|
|
1150
|
+
label: h == null ? void 0 : h.label,
|
|
1151
|
+
name: h == null ? void 0 : h.label,
|
|
1152
|
+
type: h.type,
|
|
1153
|
+
value: e[h.key],
|
|
1154
|
+
id: m.value,
|
|
1155
|
+
contents: h == null ? void 0 : h.options
|
|
1156
|
+
});
|
|
1157
|
+
}), e != null && e.children && ((d = e == null ? void 0 : e.children) == null ? void 0 : d.length) > 0 && a.push({
|
|
1158
|
+
children: e == null ? void 0 : e.children,
|
|
1159
|
+
isFormColHidden: !0
|
|
1160
|
+
}), ue.value = e == null ? void 0 : e.id, Ce.value = "", ee.value = a, ce.value = a;
|
|
1161
|
+
}, H = (e) => {
|
|
1162
|
+
let a = l(ce.value);
|
|
1163
|
+
a = a == null ? void 0 : a.map((d) => (d.children || (d.value = e == null ? void 0 : e[d.name]), d)), ce.value = a;
|
|
1164
|
+
}, f = () => {
|
|
1165
|
+
P.value = !1, ue.value = "", Ce.value = "", ce.value = [];
|
|
1166
|
+
}, n = () => {
|
|
1167
|
+
var d, h, k, W, ye, N;
|
|
1168
|
+
ee.value = ce.value;
|
|
1169
|
+
let e = {};
|
|
1170
|
+
if (ue.value !== "" ? e.id = ue.value : (m.value++, e.id = "id" + m.value), (d = ee.value) == null || d.forEach((le) => {
|
|
1171
|
+
const se = Ee == null ? void 0 : Ee.find((ge) => (ge == null ? void 0 : ge.label) === (le == null ? void 0 : le.label));
|
|
1172
|
+
se ? e[se.key] = le.value : le != null && le.children && le.children.length > 0 && (e.children = le.children);
|
|
1173
|
+
}), (h = w.value) != null && h.find((le) => le.id === e.id))
|
|
1174
|
+
w.value = (k = w.value) == null ? void 0 : k.map((le) => (le.id === e.id && (le = e), le));
|
|
1175
|
+
else {
|
|
1176
|
+
let le = l(w.value) ?? [];
|
|
1177
|
+
Ce.value === "" ? le.push(e) : le = le == null ? void 0 : le.map((se) => (se.id === Ce.value && (se.children || (se.children = []), se.children.push(e)), se)), w.value = le;
|
|
1178
|
+
}
|
|
1179
|
+
w.value = (W = w.value) != null && W.some((le) => le == null ? void 0 : le.children) ? [w.value] : w.value, P.value = !1, ue.value = "", Ce.value = "";
|
|
1180
|
+
let a = l(y.originalItemContents);
|
|
1181
|
+
(ye = l(y.originalItemContents)) != null && ye.find((le) => (le == null ? void 0 : le.key) === "header") ? a = (N = l(y.originalItemContents)) == null ? void 0 : N.map((le) => ((le == null ? void 0 : le.key) === "header" && (le.contents = w.value), le)) : a.push({
|
|
1182
|
+
key: "header",
|
|
1183
|
+
contents: w.value
|
|
1184
|
+
}), i("change", a);
|
|
1185
|
+
}, Z = (e) => {
|
|
1186
|
+
bl.confirm("是否确认要删除", "", {
|
|
1187
|
+
confirmButtonText: "确认",
|
|
1188
|
+
cancelButtonText: "取消",
|
|
1189
|
+
type: "warning"
|
|
1190
|
+
}).then(
|
|
1191
|
+
() => {
|
|
1192
|
+
var a, d;
|
|
1193
|
+
w.value = (a = l(w.value)) == null ? void 0 : a.filter((h) => (h == null ? void 0 : h.id) !== (e == null ? void 0 : e.id)), i("change", (d = l(y.originalItemContents)) == null ? void 0 : d.map((h) => {
|
|
1194
|
+
var k;
|
|
1195
|
+
return (h == null ? void 0 : h.key) === "header" && (h.contents = (k = w.value) != null && k.some((W) => W == null ? void 0 : W.children) ? [w.value] : w.value), h;
|
|
1196
|
+
})), ol({
|
|
1197
|
+
type: "success",
|
|
1198
|
+
message: "删除成功"
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1201
|
+
).catch(() => {
|
|
1202
|
+
});
|
|
1203
|
+
};
|
|
1204
|
+
return Ye(
|
|
1205
|
+
() => y.originalItemContents,
|
|
1206
|
+
() => {
|
|
1207
|
+
var e, a, d, h, k, W, ye, N, le, se, ge, U, ne, C, he, fe, Ae, Pe, Ke;
|
|
1208
|
+
if (!(!y.originalItemContents || y.originalItemContents.length === 0))
|
|
1209
|
+
if (o.value = l(y.originalItemContents), w.value = (a = (e = o.value) == null ? void 0 : e.find((B) => (B == null ? void 0 : B.key) === "header")) == null ? void 0 : a.contents, te.value = (h = (d = o.value) == null ? void 0 : d.find((B) => (B == null ? void 0 : B.key) === "rowButton")) == null ? void 0 : h.contents, ke.value = (W = (k = o.value) == null ? void 0 : k.find((B) => (B == null ? void 0 : B.key) === "extraButton")) == null ? void 0 : W.contents, O.value = (N = (ye = o.value) == null ? void 0 : ye.find((B) => (B == null ? void 0 : B.key) === "page")) != null && N.contents ? !!((se = (le = o.value) == null ? void 0 : le.find((B) => (B == null ? void 0 : B.key) === "page")) != null && se.contents) : !1, be.value = (U = (ge = o.value) == null ? void 0 : ge.find((B) => (B == null ? void 0 : B.key) === "tableToForm")) == null ? void 0 : U.contents, w.value = (ne = w.value) == null ? void 0 : ne.map((B, Te) => (Array.isArray(B) ? B = Ci(B) : B = {
|
|
1210
|
+
label: (B == null ? void 0 : B.label) ?? "",
|
|
1211
|
+
prop: (B == null ? void 0 : B.label) === "操作" ? "operate" : B == null ? void 0 : B.prop,
|
|
1212
|
+
width: B != null && B.width ? parseInt(B.width) : "",
|
|
1213
|
+
fixed: (B == null ? void 0 : B.fixed) ?? void 0,
|
|
1214
|
+
sortable: (B == null ? void 0 : B.sortable) ?? !1,
|
|
1215
|
+
align: (B == null ? void 0 : B.align) ?? "left",
|
|
1216
|
+
showOverflowTooltip: (B == null ? void 0 : B.showOverflowTooltip) ?? !0,
|
|
1217
|
+
isNotDrag: (B == null ? void 0 : B.isNotDrag) ?? !1,
|
|
1218
|
+
isEditCol: (B == null ? void 0 : B.isEditCol) ?? !1,
|
|
1219
|
+
isOperate: (B == null ? void 0 : B.isOperate) ?? !1,
|
|
1220
|
+
id: (B == null ? void 0 : B.id) ?? Te,
|
|
1221
|
+
formMenuSelect: (B == null ? void 0 : B.formMenuSelect) ?? void 0,
|
|
1222
|
+
groupSelect: (B == null ? void 0 : B.groupSelect) ?? void 0
|
|
1223
|
+
}, B)), w.value = (C = w.value) != null && C.every((B) => Array.isArray(B)) ? (he = w.value) == null ? void 0 : he[0] : w.value, te.value = (fe = te.value) == null ? void 0 : fe.map((B, Te) => B = {
|
|
1224
|
+
label: (B == null ? void 0 : B.label) ?? "",
|
|
1225
|
+
type: (B == null ? void 0 : B.type) ?? "",
|
|
1226
|
+
textColor: (B == null ? void 0 : B.textColor) ?? "#000000",
|
|
1227
|
+
id: (B == null ? void 0 : B.id) ?? Te
|
|
1228
|
+
}), ke.value = (Ae = ke.value) == null ? void 0 : Ae.map((B, Te) => B = {
|
|
1229
|
+
label: (B == null ? void 0 : B.label) ?? "",
|
|
1230
|
+
type: (B == null ? void 0 : B.type) ?? "",
|
|
1231
|
+
background: (B == null ? void 0 : B.background) ?? "var(--ssComponent-primary-color)",
|
|
1232
|
+
id: (B == null ? void 0 : B.id) ?? Te
|
|
1233
|
+
}), be.value)
|
|
1234
|
+
be.value = (Ke = be.value) == null ? void 0 : Ke.map((B) => {
|
|
1235
|
+
m.value++;
|
|
1236
|
+
let Te = B;
|
|
1237
|
+
return Te.id = m.value, Te;
|
|
1238
|
+
});
|
|
1239
|
+
else {
|
|
1240
|
+
let B = [];
|
|
1241
|
+
const Te = (Pe = di(l(w.value))) == null ? void 0 : Pe.filter((Ie) => (Ie == null ? void 0 : Ie.prop) !== "operate");
|
|
1242
|
+
Te == null || Te.forEach((Ie) => {
|
|
1243
|
+
var Ve;
|
|
1244
|
+
m.value++, B.push({
|
|
1245
|
+
label: Ie == null ? void 0 : Ie.label,
|
|
1246
|
+
name: Ie == null ? void 0 : Ie.label,
|
|
1247
|
+
type: Ie != null && Ie.groupSelect ? "Select" : "Input",
|
|
1248
|
+
value: "",
|
|
1249
|
+
id: m.value,
|
|
1250
|
+
contents: Ie == null ? void 0 : Ie.options,
|
|
1251
|
+
menuSelect: Ie == null ? void 0 : Ie.formMenuSelect,
|
|
1252
|
+
groupSelect: (Ve = Ie == null ? void 0 : Ie.groupSelect) == null ? void 0 : Ve.split(":"),
|
|
1253
|
+
selectRelateType: "关联绑定列"
|
|
1254
|
+
});
|
|
1255
|
+
}), be.value = B;
|
|
1256
|
+
}
|
|
1257
|
+
},
|
|
1258
|
+
{ deep: !0, immediate: !0 }
|
|
1259
|
+
), (e, a) => {
|
|
1260
|
+
const d = Ue("svg-icon"), h = Ue("el-button");
|
|
1261
|
+
return oe(), _e("div", Mi, [
|
|
1262
|
+
E("div", Wi, [
|
|
1263
|
+
E("div", zi, [
|
|
1264
|
+
a[2] || (a[2] = E("div", null, we("表头"), -1)),
|
|
1265
|
+
ie(h, {
|
|
1266
|
+
class: "icon-content",
|
|
1267
|
+
onClick: R,
|
|
1268
|
+
id: "themeButton"
|
|
1269
|
+
}, {
|
|
1270
|
+
icon: ve(() => [
|
|
1271
|
+
ie(d, {
|
|
1272
|
+
name: "Plus",
|
|
1273
|
+
class: "icon-size"
|
|
1274
|
+
})
|
|
1275
|
+
]),
|
|
1276
|
+
default: ve(() => [
|
|
1277
|
+
a[1] || (a[1] = Be(" 新增 "))
|
|
1278
|
+
]),
|
|
1279
|
+
_: 1,
|
|
1280
|
+
__: [1]
|
|
1281
|
+
})
|
|
1282
|
+
]),
|
|
1283
|
+
E("div", Ji, [
|
|
1284
|
+
(oe(!0), _e(je, null, Je(w.value, (k, W) => (oe(), _e("div", { key: W }, [
|
|
1285
|
+
E("div", Hi, [
|
|
1286
|
+
E("div", Gi, we(k == null ? void 0 : k.label), 1),
|
|
1287
|
+
E("div", qi, [
|
|
1288
|
+
ie(d, {
|
|
1289
|
+
name: "ChildAdd",
|
|
1290
|
+
class: "svg-icon-content",
|
|
1291
|
+
style: { width: "24px", height: "24px" },
|
|
1292
|
+
onClick: (ye) => ae(k)
|
|
1293
|
+
}, null, 8, ["onClick"]),
|
|
1294
|
+
ie(d, {
|
|
1295
|
+
name: "ChildFix",
|
|
1296
|
+
class: "svg-icon-content",
|
|
1297
|
+
style: { width: "24px", height: "24px" },
|
|
1298
|
+
onClick: (ye) => v(k)
|
|
1299
|
+
}, null, 8, ["onClick"]),
|
|
1300
|
+
ie(d, {
|
|
1301
|
+
name: "ChildDelete",
|
|
1302
|
+
class: "svg-icon-content",
|
|
1303
|
+
style: { width: "24px", height: "24px" },
|
|
1304
|
+
onClick: (ye) => Z(k)
|
|
1305
|
+
}, null, 8, ["onClick"])
|
|
1306
|
+
])
|
|
1307
|
+
]),
|
|
1308
|
+
k != null && k.children && k.children.length > 0 ? (oe(), _e("div", Qi, [
|
|
1309
|
+
ie(Ja, {
|
|
1310
|
+
tableChildContents: k == null ? void 0 : k.children,
|
|
1311
|
+
onDeleteChange: S,
|
|
1312
|
+
onFixChange: g
|
|
1313
|
+
}, null, 8, ["tableChildContents"])
|
|
1314
|
+
])) : Xe("", !0)
|
|
1315
|
+
]))), 128))
|
|
1316
|
+
]),
|
|
1317
|
+
E("div", Xi, [
|
|
1318
|
+
a[4] || (a[4] = E("div", null, we("行内按钮"), -1)),
|
|
1319
|
+
ie(h, {
|
|
1320
|
+
class: "icon-content",
|
|
1321
|
+
id: "themeButton",
|
|
1322
|
+
onClick: K
|
|
1323
|
+
}, {
|
|
1324
|
+
icon: ve(() => [
|
|
1325
|
+
ie(d, {
|
|
1326
|
+
name: "Plus",
|
|
1327
|
+
class: "icon-size"
|
|
1328
|
+
})
|
|
1329
|
+
]),
|
|
1330
|
+
default: ve(() => [
|
|
1331
|
+
a[3] || (a[3] = Be(" 新增 "))
|
|
1332
|
+
]),
|
|
1333
|
+
_: 1,
|
|
1334
|
+
__: [3]
|
|
1335
|
+
})
|
|
1336
|
+
]),
|
|
1337
|
+
E("div", Yi, [
|
|
1338
|
+
(oe(!0), _e(je, null, Je(te.value, (k, W) => (oe(), _e("div", { key: W }, [
|
|
1339
|
+
E("div", Zi, [
|
|
1340
|
+
E("div", es, we(k == null ? void 0 : k.label), 1),
|
|
1341
|
+
E("div", ls, [
|
|
1342
|
+
ie(d, {
|
|
1343
|
+
name: "ChildFix",
|
|
1344
|
+
style: { width: "24px", height: "24px" },
|
|
1345
|
+
class: "svg-icon-content",
|
|
1346
|
+
onClick: (ye) => de(k)
|
|
1347
|
+
}, null, 8, ["onClick"]),
|
|
1348
|
+
ie(d, {
|
|
1349
|
+
name: "ChildDelete",
|
|
1350
|
+
class: "svg-icon-content",
|
|
1351
|
+
style: { width: "24px", height: "24px" },
|
|
1352
|
+
onClick: (ye) => Q(k)
|
|
1353
|
+
}, null, 8, ["onClick"])
|
|
1354
|
+
])
|
|
1355
|
+
])
|
|
1356
|
+
]))), 128))
|
|
1357
|
+
]),
|
|
1358
|
+
E("div", as, [
|
|
1359
|
+
a[6] || (a[6] = E("div", null, we("表外按钮"), -1)),
|
|
1360
|
+
ie(h, {
|
|
1361
|
+
class: "icon-content",
|
|
1362
|
+
id: "themeButton",
|
|
1363
|
+
onClick: De
|
|
1364
|
+
}, {
|
|
1365
|
+
icon: ve(() => [
|
|
1366
|
+
ie(d, {
|
|
1367
|
+
name: "Plus",
|
|
1368
|
+
class: "icon-size"
|
|
1369
|
+
})
|
|
1370
|
+
]),
|
|
1371
|
+
default: ve(() => [
|
|
1372
|
+
a[5] || (a[5] = Be(" 新增 "))
|
|
1373
|
+
]),
|
|
1374
|
+
_: 1,
|
|
1375
|
+
__: [5]
|
|
1376
|
+
})
|
|
1377
|
+
]),
|
|
1378
|
+
E("div", is, [
|
|
1379
|
+
(oe(!0), _e(je, null, Je(ke.value, (k, W) => (oe(), _e("div", { key: W }, [
|
|
1380
|
+
E("div", ss, [
|
|
1381
|
+
E("div", ns, we(k == null ? void 0 : k.label), 1),
|
|
1382
|
+
E("div", os, [
|
|
1383
|
+
ie(d, {
|
|
1384
|
+
name: "ChildFix",
|
|
1385
|
+
style: { width: "24px", height: "24px" },
|
|
1386
|
+
class: "svg-icon-content",
|
|
1387
|
+
onClick: (ye) => G(k)
|
|
1388
|
+
}, null, 8, ["onClick"]),
|
|
1389
|
+
ie(d, {
|
|
1390
|
+
name: "ChildDelete",
|
|
1391
|
+
class: "svg-icon-content",
|
|
1392
|
+
style: { width: "24px", height: "24px" },
|
|
1393
|
+
onClick: (ye) => F(k)
|
|
1394
|
+
}, null, 8, ["onClick"])
|
|
1395
|
+
])
|
|
1396
|
+
])
|
|
1397
|
+
]))), 128))
|
|
1398
|
+
]),
|
|
1399
|
+
E("div", us, [
|
|
1400
|
+
a[8] || (a[8] = E("div", null, we("表格弹框字段设置"), -1)),
|
|
1401
|
+
ie(h, {
|
|
1402
|
+
class: "icon-content",
|
|
1403
|
+
id: "themeButton",
|
|
1404
|
+
onClick: Fe
|
|
1405
|
+
}, {
|
|
1406
|
+
icon: ve(() => [
|
|
1407
|
+
ie(d, {
|
|
1408
|
+
name: "Plus",
|
|
1409
|
+
class: "icon-size"
|
|
1410
|
+
})
|
|
1411
|
+
]),
|
|
1412
|
+
default: ve(() => [
|
|
1413
|
+
a[7] || (a[7] = Be(" 新增 "))
|
|
1414
|
+
]),
|
|
1415
|
+
_: 1,
|
|
1416
|
+
__: [7]
|
|
1417
|
+
})
|
|
1418
|
+
]),
|
|
1419
|
+
E("div", rs, [
|
|
1420
|
+
(oe(!0), _e(je, null, Je(be.value, (k, W) => (oe(), _e("div", { key: W }, [
|
|
1421
|
+
E("div", cs, [
|
|
1422
|
+
E("div", ts, we(k == null ? void 0 : k.label), 1),
|
|
1423
|
+
E("div", ds, [
|
|
1424
|
+
ie(d, {
|
|
1425
|
+
name: "ChildFix",
|
|
1426
|
+
style: { width: "24px", height: "24px" },
|
|
1427
|
+
class: "svg-icon-content",
|
|
1428
|
+
onClick: (ye) => c(k)
|
|
1429
|
+
}, null, 8, ["onClick"]),
|
|
1430
|
+
ie(d, {
|
|
1431
|
+
name: "ChildDelete",
|
|
1432
|
+
class: "svg-icon-content",
|
|
1433
|
+
style: { width: "24px", height: "24px" },
|
|
1434
|
+
onClick: (ye) => D(k)
|
|
1435
|
+
}, null, 8, ["onClick"])
|
|
1436
|
+
])
|
|
1437
|
+
])
|
|
1438
|
+
]))), 128))
|
|
1439
|
+
]),
|
|
1440
|
+
a[10] || (a[10] = E("div", { class: "operate-title" }, [
|
|
1441
|
+
E("div", null, we("分页"))
|
|
1442
|
+
], -1)),
|
|
1443
|
+
E("div", ps, [
|
|
1444
|
+
E("div", fs, [
|
|
1445
|
+
a[9] || (a[9] = E("div", { class: "operate-center-content" }, we("是否分页"), -1)),
|
|
1446
|
+
ie(Ra, {
|
|
1447
|
+
modelValue: O.value,
|
|
1448
|
+
"onUpdate:modelValue": a[0] || (a[0] = (k) => O.value = k)
|
|
1449
|
+
}, null, 8, ["modelValue"])
|
|
1450
|
+
])
|
|
1451
|
+
])
|
|
1452
|
+
]),
|
|
1453
|
+
ie(ll, {
|
|
1454
|
+
visible: P.value,
|
|
1455
|
+
onBeforeDestroy: f,
|
|
1456
|
+
width: 840
|
|
1457
|
+
}, {
|
|
1458
|
+
default: ve(() => [
|
|
1459
|
+
E("div", hs, [
|
|
1460
|
+
(oe(), Oe(el, {
|
|
1461
|
+
rowContents: ee.value,
|
|
1462
|
+
key: ee.value,
|
|
1463
|
+
isEnableWrap: !0,
|
|
1464
|
+
onChange: H
|
|
1465
|
+
}, null, 8, ["rowContents"]))
|
|
1466
|
+
])
|
|
1467
|
+
]),
|
|
1468
|
+
footer: ve(() => [
|
|
1469
|
+
E("div", vs, [
|
|
1470
|
+
ie(h, {
|
|
1471
|
+
onClick: f,
|
|
1472
|
+
class: "cancel-button button",
|
|
1473
|
+
id: "themeBorderButton"
|
|
1474
|
+
}, {
|
|
1475
|
+
default: ve(() => a[11] || (a[11] = [
|
|
1476
|
+
Be(we("取消"))
|
|
1477
|
+
])),
|
|
1478
|
+
_: 1,
|
|
1479
|
+
__: [11]
|
|
1480
|
+
}),
|
|
1481
|
+
ie(h, {
|
|
1482
|
+
class: "ok-button button",
|
|
1483
|
+
onClick: n,
|
|
1484
|
+
id: "themeButton"
|
|
1485
|
+
}, {
|
|
1486
|
+
default: ve(() => a[12] || (a[12] = [
|
|
1487
|
+
Be(we("确认"))
|
|
1488
|
+
])),
|
|
1489
|
+
_: 1,
|
|
1490
|
+
__: [12]
|
|
1491
|
+
})
|
|
1492
|
+
])
|
|
1493
|
+
]),
|
|
1494
|
+
_: 1
|
|
1495
|
+
}, 8, ["visible"]),
|
|
1496
|
+
ie(ll, {
|
|
1497
|
+
visible: M.value,
|
|
1498
|
+
onBeforeDestroy: pe,
|
|
1499
|
+
width: 840
|
|
1500
|
+
}, {
|
|
1501
|
+
default: ve(() => [
|
|
1502
|
+
E("div", ms, [
|
|
1503
|
+
(oe(), Oe(el, {
|
|
1504
|
+
rowContents: T.value,
|
|
1505
|
+
key: T.value,
|
|
1506
|
+
isEnableWrap: !0,
|
|
1507
|
+
onChange: j
|
|
1508
|
+
}, null, 8, ["rowContents"]))
|
|
1509
|
+
])
|
|
1510
|
+
]),
|
|
1511
|
+
footer: ve(() => [
|
|
1512
|
+
E("div", ys, [
|
|
1513
|
+
ie(h, {
|
|
1514
|
+
onClick: pe,
|
|
1515
|
+
class: "cancel-button button",
|
|
1516
|
+
id: "themeBorderButton"
|
|
1517
|
+
}, {
|
|
1518
|
+
default: ve(() => a[13] || (a[13] = [
|
|
1519
|
+
Be(we("取消"))
|
|
1520
|
+
])),
|
|
1521
|
+
_: 1,
|
|
1522
|
+
__: [13]
|
|
1523
|
+
}),
|
|
1524
|
+
ie(h, {
|
|
1525
|
+
class: "ok-button button",
|
|
1526
|
+
onClick: A,
|
|
1527
|
+
id: "themeButton"
|
|
1528
|
+
}, {
|
|
1529
|
+
default: ve(() => a[14] || (a[14] = [
|
|
1530
|
+
Be(we("确认"))
|
|
1531
|
+
])),
|
|
1532
|
+
_: 1,
|
|
1533
|
+
__: [14]
|
|
1534
|
+
})
|
|
1535
|
+
])
|
|
1536
|
+
]),
|
|
1537
|
+
_: 1
|
|
1538
|
+
}, 8, ["visible"]),
|
|
1539
|
+
ie(ll, {
|
|
1540
|
+
visible: me.value,
|
|
1541
|
+
onBeforeDestroy: J,
|
|
1542
|
+
width: 840
|
|
1543
|
+
}, {
|
|
1544
|
+
default: ve(() => [
|
|
1545
|
+
E("div", gs, [
|
|
1546
|
+
(oe(), Oe(el, {
|
|
1547
|
+
rowContents: t.value,
|
|
1548
|
+
key: t.value,
|
|
1549
|
+
isEnableWrap: !0,
|
|
1550
|
+
onChange: X
|
|
1551
|
+
}, null, 8, ["rowContents"]))
|
|
1552
|
+
])
|
|
1553
|
+
]),
|
|
1554
|
+
footer: ve(() => [
|
|
1555
|
+
E("div", bs, [
|
|
1556
|
+
ie(h, {
|
|
1557
|
+
onClick: J,
|
|
1558
|
+
class: "cancel-button button",
|
|
1559
|
+
id: "themeBorderButton"
|
|
1560
|
+
}, {
|
|
1561
|
+
default: ve(() => a[15] || (a[15] = [
|
|
1562
|
+
Be(we("取消"))
|
|
1563
|
+
])),
|
|
1564
|
+
_: 1,
|
|
1565
|
+
__: [15]
|
|
1566
|
+
}),
|
|
1567
|
+
ie(h, {
|
|
1568
|
+
class: "ok-button button",
|
|
1569
|
+
onClick: u,
|
|
1570
|
+
id: "themeButton"
|
|
1571
|
+
}, {
|
|
1572
|
+
default: ve(() => a[16] || (a[16] = [
|
|
1573
|
+
Be(we("确认"))
|
|
1574
|
+
])),
|
|
1575
|
+
_: 1,
|
|
1576
|
+
__: [16]
|
|
1577
|
+
})
|
|
1578
|
+
])
|
|
1579
|
+
]),
|
|
1580
|
+
_: 1
|
|
1581
|
+
}, 8, ["visible"]),
|
|
1582
|
+
ie(ll, {
|
|
1583
|
+
visible: L.value,
|
|
1584
|
+
onBeforeDestroy: I,
|
|
1585
|
+
width: 840
|
|
1586
|
+
}, {
|
|
1587
|
+
default: ve(() => [
|
|
1588
|
+
E("div", ks, [
|
|
1589
|
+
(oe(), Oe(el, {
|
|
1590
|
+
rowContents: b.value,
|
|
1591
|
+
key: b.value,
|
|
1592
|
+
isEnableWrap: !0,
|
|
1593
|
+
onChange: Y,
|
|
1594
|
+
onChangeVisible: _,
|
|
1595
|
+
onBlurChange: x
|
|
1596
|
+
}, null, 8, ["rowContents"]))
|
|
1597
|
+
])
|
|
1598
|
+
]),
|
|
1599
|
+
footer: ve(() => [
|
|
1600
|
+
E("div", _s, [
|
|
1601
|
+
ie(h, {
|
|
1602
|
+
onClick: I,
|
|
1603
|
+
class: "cancel-button button",
|
|
1604
|
+
id: "themeBorderButton"
|
|
1605
|
+
}, {
|
|
1606
|
+
default: ve(() => a[17] || (a[17] = [
|
|
1607
|
+
Be(we("取消"))
|
|
1608
|
+
])),
|
|
1609
|
+
_: 1,
|
|
1610
|
+
__: [17]
|
|
1611
|
+
}),
|
|
1612
|
+
ie(h, {
|
|
1613
|
+
class: "ok-button button",
|
|
1614
|
+
onClick: z,
|
|
1615
|
+
id: "themeButton"
|
|
1616
|
+
}, {
|
|
1617
|
+
default: ve(() => a[18] || (a[18] = [
|
|
1618
|
+
Be(we("确认"))
|
|
1619
|
+
])),
|
|
1620
|
+
_: 1,
|
|
1621
|
+
__: [18]
|
|
1622
|
+
})
|
|
1623
|
+
])
|
|
1624
|
+
]),
|
|
1625
|
+
_: 1
|
|
1626
|
+
}, 8, ["visible"])
|
|
1627
|
+
]);
|
|
1628
|
+
};
|
|
1629
|
+
}
|
|
1630
|
+
}, ws = /* @__PURE__ */ He(Cs, [["__scopeId", "data-v-fa521a52"]]), Ds = { class: "form-operate-content" }, Is = { class: "form-operate-item" }, xs = { class: "operate-title" }, As = { class: "operate-content" }, Ts = { class: "fix-content" }, Es = { class: "fix-button" }, Ss = { class: "operate-title" }, $s = { class: "operate-content" }, Bs = { class: "fix-content" }, Fs = { class: "fix-button" }, Ls = { style: { display: "flex", "justify-content": "space-between" } }, Os = { class: "form-content" }, Vs = { class: "dialog-footer" }, Rs = { class: "form-content" }, Us = {
|
|
1631
|
+
__name: "operate",
|
|
1632
|
+
props: {
|
|
1633
|
+
itemContents: {
|
|
1634
|
+
type: Array,
|
|
1635
|
+
default: () => []
|
|
1636
|
+
},
|
|
1637
|
+
originalItemContents: {
|
|
1638
|
+
type: Array,
|
|
1639
|
+
default: () => []
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
emits: ["change"],
|
|
1643
|
+
setup(r, { emit: V }) {
|
|
1644
|
+
const y = r, i = V, o = q(!1), P = q([]), L = q([]), w = q(!1), M = q([]), ee = q([]), O = q(""), ce = q(!1), ue = q(0), Ce = q([]), te = q([]), ke = (s, c) => {
|
|
1645
|
+
if (console.log(345, s), (c == null ? void 0 : c.type) == "Select" && (s == null ? void 0 : s.key) === "selectRelateType") {
|
|
1646
|
+
const D = c == null ? void 0 : c.optionUrl;
|
|
1647
|
+
return (D == null ? void 0 : D.selectRelateType) || c[s.key];
|
|
1648
|
+
}
|
|
1649
|
+
if ((c == null ? void 0 : c.type) == "Select" && (s == null ? void 0 : s.key) === "menuSelect") {
|
|
1650
|
+
const D = c == null ? void 0 : c.optionUrl;
|
|
1651
|
+
return (D == null ? void 0 : D.menuSelect) || c[s.key];
|
|
1652
|
+
}
|
|
1653
|
+
if ((c == null ? void 0 : c.type) == "Select" && (s == null ? void 0 : s.key) === "groupSelect") {
|
|
1654
|
+
const D = c == null ? void 0 : c.optionUrl;
|
|
1655
|
+
return (D == null ? void 0 : D.groupSelect) || c[s.key];
|
|
1656
|
+
}
|
|
1657
|
+
if ((c == null ? void 0 : c.type) == "Select" && (s == null ? void 0 : s.key) === "originalContent")
|
|
1658
|
+
return (c == null ? void 0 : c.value) || c[s.key];
|
|
1659
|
+
if ((c == null ? void 0 : c.type) == "Select" && (s == null ? void 0 : s.key) === "multiple") {
|
|
1660
|
+
const D = c[s.key];
|
|
1661
|
+
return Pa(D) ? D : s.default;
|
|
1662
|
+
}
|
|
1663
|
+
return (s == null ? void 0 : s.label) === "类型" && c[s.key] === "" ? "Input" : (s == null ? void 0 : s.key) === "isFormColHidden" && !c[s.key] ? !1 : c[s.key];
|
|
1664
|
+
}, T = async (s) => {
|
|
1665
|
+
var I, z, G, F, u, X;
|
|
1666
|
+
o.value = !0;
|
|
1667
|
+
let c = [];
|
|
1668
|
+
const D = await ((G = (z = (I = Qe) == null ? void 0 : I.find((J) => (J == null ? void 0 : J.key) === ((s == null ? void 0 : s.type) === "" ? "Input" : s == null ? void 0 : s.type))) == null ? void 0 : z.value) == null ? void 0 : G.value) ?? ((u = (F = Qe) == null ? void 0 : F.find((J) => (J == null ? void 0 : J.key) === ((s == null ? void 0 : s.type) === "" ? "Input" : s == null ? void 0 : s.type))) == null ? void 0 : u.value);
|
|
1669
|
+
if (D == null || D.forEach((J) => {
|
|
1670
|
+
ue.value++, c.push({
|
|
1671
|
+
label: J == null ? void 0 : J.label,
|
|
1672
|
+
name: J == null ? void 0 : J.label,
|
|
1673
|
+
type: J.type,
|
|
1674
|
+
// value: (t?.label === "类型" && content[t.key] === '') ? "Input" : content[t.key],
|
|
1675
|
+
value: ke(J, s),
|
|
1676
|
+
id: ue.value,
|
|
1677
|
+
contents: J == null ? void 0 : J.options,
|
|
1678
|
+
width: (s == null ? void 0 : s.width) ?? 1
|
|
1679
|
+
});
|
|
1680
|
+
}), s != null && s.menuSelect && ((X = s == null ? void 0 : s.menuSelect) == null ? void 0 : X.length) > 0) {
|
|
1681
|
+
const J = await Fl(s == null ? void 0 : s.menuSelect);
|
|
1682
|
+
c = c == null ? void 0 : c.map((de) => ((de == null ? void 0 : de.name) === "组信息选项" && (de.contents = J), de));
|
|
1683
|
+
}
|
|
1684
|
+
O.value = s == null ? void 0 : s.id, P.value = await fl(Tl(c)), L.value = await fl(Tl(c));
|
|
1685
|
+
}, $ = (s) => {
|
|
1686
|
+
var D;
|
|
1687
|
+
w.value = !0;
|
|
1688
|
+
let c = [];
|
|
1689
|
+
(D = ga) == null || D.forEach((I) => {
|
|
1690
|
+
ue.value++, c.push({
|
|
1691
|
+
label: I == null ? void 0 : I.label,
|
|
1692
|
+
name: I == null ? void 0 : I.label,
|
|
1693
|
+
type: I.type,
|
|
1694
|
+
value: (I == null ? void 0 : I.label) === "类型" && s[I.key] === "" ? "normal" : s[I.key],
|
|
1695
|
+
id: ue.value,
|
|
1696
|
+
contents: I == null ? void 0 : I.options
|
|
1697
|
+
});
|
|
1698
|
+
}), Ce.value = c, te.value = c, O.value = s == null ? void 0 : s.id;
|
|
1699
|
+
};
|
|
1700
|
+
Ye(
|
|
1701
|
+
() => ce.value,
|
|
1702
|
+
() => {
|
|
1703
|
+
var c, D;
|
|
1704
|
+
let s = l(y.originalItemContents);
|
|
1705
|
+
(c = l(y.originalItemContents)) != null && c.find((I) => (I == null ? void 0 : I.key) === "enableWrap") ? s = (D = l(y.originalItemContents)) == null ? void 0 : D.map((I) => ((I == null ? void 0 : I.key) === "enableWrap" && (I.contents = !ce.value), I)) : s.push({
|
|
1706
|
+
key: "enableWrap",
|
|
1707
|
+
contents: !ce.value
|
|
1708
|
+
}), i("change", s);
|
|
1709
|
+
},
|
|
1710
|
+
{ deep: !0 }
|
|
1711
|
+
);
|
|
1712
|
+
const me = () => {
|
|
1713
|
+
var D, I, z, G, F;
|
|
1714
|
+
Ce.value = te.value;
|
|
1715
|
+
let s = {};
|
|
1716
|
+
if (O.value !== "" ? s.id = O.value : (ue.value++, s.id = "id" + ue.value), (D = Ce.value) == null || D.forEach((u) => {
|
|
1717
|
+
var J;
|
|
1718
|
+
const X = (J = ga) == null ? void 0 : J.find((de) => (de == null ? void 0 : de.label) === (u == null ? void 0 : u.label));
|
|
1719
|
+
X && (s[X.key] = u.value);
|
|
1720
|
+
}), (I = M.value) != null && I.find((u) => u.id === s.id))
|
|
1721
|
+
M.value = (z = M.value) == null ? void 0 : z.map((u) => (u.id === s.id && (u = s), u));
|
|
1722
|
+
else {
|
|
1723
|
+
let u = l(M.value);
|
|
1724
|
+
M.value || (M.value = []), u.push(s), M.value = u;
|
|
1725
|
+
}
|
|
1726
|
+
w.value = !1, O.value = "";
|
|
1727
|
+
let c = l(y.originalItemContents);
|
|
1728
|
+
(G = l(y.originalItemContents)) != null && G.find((u) => (u == null ? void 0 : u.key) === "formButton") ? c = (F = l(y.originalItemContents)) == null ? void 0 : F.map((u) => ((u == null ? void 0 : u.key) === "formButton" && (u.contents = M.value), u)) : c.push({
|
|
1729
|
+
key: "formButton",
|
|
1730
|
+
contents: M.value
|
|
1731
|
+
}), i("change", c);
|
|
1732
|
+
}, t = (s) => {
|
|
1733
|
+
bl.confirm("是否确认要删除", "", {
|
|
1734
|
+
confirmButtonText: "确认",
|
|
1735
|
+
cancelButtonText: "取消",
|
|
1736
|
+
type: "warning"
|
|
1737
|
+
}).then(
|
|
1738
|
+
() => {
|
|
1739
|
+
var c, D;
|
|
1740
|
+
ee.value = (c = l(ee.value)) == null ? void 0 : c.filter((I) => (I == null ? void 0 : I.id) !== (s == null ? void 0 : s.id)), i("change", (D = l(y.originalItemContents)) == null ? void 0 : D.map((I) => ((I == null ? void 0 : I.key) === "formContent" && (I.contents = ee.value), I))), ol({
|
|
1741
|
+
type: "success",
|
|
1742
|
+
message: "删除成功"
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1745
|
+
).catch(() => {
|
|
1746
|
+
});
|
|
1747
|
+
}, p = (s) => {
|
|
1748
|
+
bl.confirm("是否确认要删除", "", {
|
|
1749
|
+
confirmButtonText: "确认",
|
|
1750
|
+
cancelButtonText: "取消",
|
|
1751
|
+
type: "warning"
|
|
1752
|
+
}).then(
|
|
1753
|
+
() => {
|
|
1754
|
+
var c, D;
|
|
1755
|
+
M.value = (c = l(M.value)) == null ? void 0 : c.filter((I) => (I == null ? void 0 : I.id) !== (s == null ? void 0 : s.id)), i("change", (D = l(y.originalItemContents)) == null ? void 0 : D.map((I) => ((I == null ? void 0 : I.key) === "formButton" && (I.contents = M.value), I))), ol({
|
|
1756
|
+
type: "success",
|
|
1757
|
+
message: "删除成功"
|
|
1758
|
+
});
|
|
1759
|
+
}
|
|
1760
|
+
).catch(() => {
|
|
1761
|
+
});
|
|
1762
|
+
}, m = () => {
|
|
1763
|
+
var c;
|
|
1764
|
+
w.value = !0;
|
|
1765
|
+
let s = [];
|
|
1766
|
+
(c = ga) == null || c.forEach((D) => {
|
|
1767
|
+
ue.value++, s.push({
|
|
1768
|
+
label: D == null ? void 0 : D.label,
|
|
1769
|
+
name: D == null ? void 0 : D.label,
|
|
1770
|
+
type: D.type,
|
|
1771
|
+
value: (D == null ? void 0 : D.label) === "类型" ? "normal" : "",
|
|
1772
|
+
id: ue.value,
|
|
1773
|
+
contents: D == null ? void 0 : D.options
|
|
1774
|
+
});
|
|
1775
|
+
}), Ce.value = s, te.value = s;
|
|
1776
|
+
}, b = () => {
|
|
1777
|
+
var c, D, I;
|
|
1778
|
+
o.value = !0;
|
|
1779
|
+
let s = [];
|
|
1780
|
+
(I = (D = (c = Qe) == null ? void 0 : c.find((z) => (z == null ? void 0 : z.key) === "Input")) == null ? void 0 : D.value) == null || I.forEach((z) => {
|
|
1781
|
+
ue.value++, s.push({
|
|
1782
|
+
label: z == null ? void 0 : z.label,
|
|
1783
|
+
name: z == null ? void 0 : z.label,
|
|
1784
|
+
type: z.type,
|
|
1785
|
+
value: (z == null ? void 0 : z.label) === "类型" ? "Input" : "",
|
|
1786
|
+
id: ue.value,
|
|
1787
|
+
contents: z == null ? void 0 : z.options
|
|
1788
|
+
});
|
|
1789
|
+
}), P.value = s, L.value = s;
|
|
1790
|
+
}, re = (s) => {
|
|
1791
|
+
let c = l(te.value);
|
|
1792
|
+
c = c == null ? void 0 : c.map((D) => (D.value = s == null ? void 0 : s[D.name], D)), te.value = c;
|
|
1793
|
+
}, be = (s) => {
|
|
1794
|
+
const c = s.find((z) => (z == null ? void 0 : z.name) === "类型");
|
|
1795
|
+
if ((c == null ? void 0 : c.value) != "Select")
|
|
1796
|
+
return;
|
|
1797
|
+
const D = s.find((z) => (z == null ? void 0 : z.name) === "多选"), I = s.find((z) => (z == null ? void 0 : z.name) === "初始值");
|
|
1798
|
+
D != null && D.value && Ea(I.value) && (I.value = [I.value]), !(D != null && D.value) && !Ea(I.value) && (I.value = "");
|
|
1799
|
+
}, De = async (s) => {
|
|
1800
|
+
var c, D, I, z, G, F, u, X, J, de, Q, R;
|
|
1801
|
+
if ((s == null ? void 0 : s.类型) !== ((D = (c = L.value) == null ? void 0 : c.find((K) => (K == null ? void 0 : K.label) === "类型")) == null ? void 0 : D.value)) {
|
|
1802
|
+
let K = [];
|
|
1803
|
+
const j = await ((G = (z = (I = Qe) == null ? void 0 : I.find((A) => (A == null ? void 0 : A.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : z.value) == null ? void 0 : G.value) ? await ((de = (J = (X = Qe) == null ? void 0 : X.find((A) => (A == null ? void 0 : A.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : J.value) == null ? void 0 : de.value) : (u = (F = Qe) == null ? void 0 : F.find((A) => (A == null ? void 0 : A.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : u.value;
|
|
1804
|
+
if (j == null || j.forEach((A) => {
|
|
1805
|
+
var ae, S;
|
|
1806
|
+
ue.value++;
|
|
1807
|
+
const pe = bi(A == null ? void 0 : A.default) ? (s == null ? void 0 : s[A.label]) ?? A.value ?? "" : A == null ? void 0 : A.default;
|
|
1808
|
+
K.push({
|
|
1809
|
+
label: A == null ? void 0 : A.label,
|
|
1810
|
+
name: A == null ? void 0 : A.label,
|
|
1811
|
+
type: A.type,
|
|
1812
|
+
value: pe,
|
|
1813
|
+
id: ue.value,
|
|
1814
|
+
contents: A == null ? void 0 : A.options,
|
|
1815
|
+
width: ((S = (ae = L.value) == null ? void 0 : ae[0]) == null ? void 0 : S.width) ?? 1
|
|
1816
|
+
});
|
|
1817
|
+
}), s != null && s.菜单选项 && ((Q = s == null ? void 0 : s.菜单选项) == null ? void 0 : Q.length) > 0) {
|
|
1818
|
+
const A = await Fl(s == null ? void 0 : s.菜单选项);
|
|
1819
|
+
K = K == null ? void 0 : K.map((pe) => ((pe == null ? void 0 : pe.name) === "组信息选项" && (pe.contents = A), pe));
|
|
1820
|
+
}
|
|
1821
|
+
be(K), L.value = await fl(l(K)), P.value = await fl(l(K));
|
|
1822
|
+
} else {
|
|
1823
|
+
let K = l(L.value);
|
|
1824
|
+
if (K = K == null ? void 0 : K.map((j) => (j.value = s == null ? void 0 : s[j.name], j)), s != null && s.菜单选项 && ((R = s == null ? void 0 : s.菜单选项) == null ? void 0 : R.length) > 0) {
|
|
1825
|
+
const j = await Fl(s == null ? void 0 : s.菜单选项);
|
|
1826
|
+
K = K == null ? void 0 : K.map((A) => ((A == null ? void 0 : A.name) === "组信息选项" && (A.contents = j), A));
|
|
1827
|
+
}
|
|
1828
|
+
K = Tl(K), be(K), L.value = await fl(l(K));
|
|
1829
|
+
}
|
|
1830
|
+
}, Fe = (s) => {
|
|
1831
|
+
s || (P.value = L.value);
|
|
1832
|
+
}, _ = async (s) => {
|
|
1833
|
+
await De(s), P.value = L.value;
|
|
1834
|
+
}, Y = async () => {
|
|
1835
|
+
var I, z, G, F, u, X, J, de, Q, R, K, j;
|
|
1836
|
+
P.value = L.value;
|
|
1837
|
+
let s = {};
|
|
1838
|
+
s.width = ((z = (I = P.value) == null ? void 0 : I[0]) == null ? void 0 : z.width) ?? 1, O.value !== "" ? s.id = O.value : (ue.value++, s.id = "id" + ue.value);
|
|
1839
|
+
let c = await ((u = (F = (G = Qe) == null ? void 0 : G.find((A) => {
|
|
1840
|
+
var pe, ae;
|
|
1841
|
+
return (A == null ? void 0 : A.key) === (((ae = (pe = P.value) == null ? void 0 : pe.find((S) => (S == null ? void 0 : S.label) === "类型")) == null ? void 0 : ae.value) ?? "label");
|
|
1842
|
+
})) == null ? void 0 : F.value) == null ? void 0 : u.value) ?? ((J = (X = Qe) == null ? void 0 : X.find((A) => {
|
|
1843
|
+
var pe, ae;
|
|
1844
|
+
return (A == null ? void 0 : A.key) === (((ae = (pe = P.value) == null ? void 0 : pe.find((S) => (S == null ? void 0 : S.label) === "类型")) == null ? void 0 : ae.value) ?? "label");
|
|
1845
|
+
})) == null ? void 0 : J.value);
|
|
1846
|
+
if ((de = P.value) == null || de.forEach((A) => {
|
|
1847
|
+
const pe = c == null ? void 0 : c.find((ae) => (ae == null ? void 0 : ae.label) === (A == null ? void 0 : A.label));
|
|
1848
|
+
pe && (s[pe.key] = A.value);
|
|
1849
|
+
}), s.width = s.width ? s.width : 1, s.key = s == null ? void 0 : s.label, s.isFormColHidden = s == null ? void 0 : s.isFormColHidden, (Q = ee.value) != null && Q.find((A) => A.id === s.id))
|
|
1850
|
+
ee.value = (R = ee.value) == null ? void 0 : R.map((A) => (A.id === s.id && (A = s), A));
|
|
1851
|
+
else {
|
|
1852
|
+
let A = l(ee.value);
|
|
1853
|
+
A.push(s), ee.value = A;
|
|
1854
|
+
}
|
|
1855
|
+
ee.value = ee.value.map(({ id: A, ...pe }) => pe), o.value = !1, O.value = "";
|
|
1856
|
+
let D = l(y.originalItemContents);
|
|
1857
|
+
(K = l(y.originalItemContents)) != null && K.find((A) => (A == null ? void 0 : A.key) === "formContent") ? D = (j = l(y.originalItemContents)) == null ? void 0 : j.map((A) => ((A == null ? void 0 : A.key) === "formContent" && (A.contents = ee.value), A)) : D.push({
|
|
1858
|
+
key: "formContent",
|
|
1859
|
+
contents: ee.value
|
|
1860
|
+
}), i("change", D);
|
|
1861
|
+
}, x = () => {
|
|
1862
|
+
o.value = !1, w.value = !1, O.value = "", L.value = [], te.value = [];
|
|
1863
|
+
};
|
|
1864
|
+
return Ye(
|
|
1865
|
+
() => y.originalItemContents,
|
|
1866
|
+
() => {
|
|
1867
|
+
var c, D, I, z, G, F;
|
|
1868
|
+
if (!y.originalItemContents || y.originalItemContents.length === 0) return;
|
|
1869
|
+
const s = l(y.originalItemContents);
|
|
1870
|
+
ee.value = ((c = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "formContent")) == null ? void 0 : c.contents) ?? [], M.value = ((D = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "formButton")) == null ? void 0 : D.contents) ?? [], ce.value = (I = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && I.contents ? !((z = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && z.contents) : !0, ee.value = (G = l(ee.value)) == null ? void 0 : G.map((u, X) => {
|
|
1871
|
+
var de;
|
|
1872
|
+
let J = u;
|
|
1873
|
+
return J.id = (u == null ? void 0 : u.id) ?? X, u != null && u.label || (u.label = (u == null ? void 0 : u.key) ?? (u == null ? void 0 : u.label) ?? ""), u != null && u.type || (u.type = (u == null ? void 0 : u.type) ?? ""), u.contents = ((de = u == null ? void 0 : u.options) == null ? void 0 : de.length) === 0 ? (u == null ? void 0 : u.contents) ?? "" : u == null ? void 0 : u.options, J;
|
|
1874
|
+
}), ee.value = Tl(ee.value), M.value = (F = M.value) == null ? void 0 : F.map((u, X) => u = {
|
|
1875
|
+
label: (u == null ? void 0 : u.label) ?? "",
|
|
1876
|
+
type: (u == null ? void 0 : u.type) ?? "",
|
|
1877
|
+
background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)",
|
|
1878
|
+
id: X
|
|
1879
|
+
});
|
|
1880
|
+
},
|
|
1881
|
+
{ deep: !0, immediate: !0 }
|
|
1882
|
+
), (s, c) => {
|
|
1883
|
+
const D = Ue("svg-icon"), I = Ue("el-button");
|
|
1884
|
+
return oe(), _e("div", Ds, [
|
|
1885
|
+
E("div", Is, [
|
|
1886
|
+
E("div", xs, [
|
|
1887
|
+
c[2] || (c[2] = E("div", null, we("表单内容"), -1)),
|
|
1888
|
+
ie(I, {
|
|
1889
|
+
class: "icon-content",
|
|
1890
|
+
id: "themeButton",
|
|
1891
|
+
onClick: b
|
|
1892
|
+
}, {
|
|
1893
|
+
icon: ve(() => [
|
|
1894
|
+
ie(D, {
|
|
1895
|
+
name: "Plus",
|
|
1896
|
+
class: "icon-size"
|
|
1897
|
+
})
|
|
1898
|
+
]),
|
|
1899
|
+
default: ve(() => [
|
|
1900
|
+
c[1] || (c[1] = E("div", null, we("新增"), -1))
|
|
1901
|
+
]),
|
|
1902
|
+
_: 1,
|
|
1903
|
+
__: [1]
|
|
1904
|
+
})
|
|
1905
|
+
]),
|
|
1906
|
+
E("div", As, [
|
|
1907
|
+
(oe(!0), _e(je, null, Je(ee.value, (z, G) => (oe(), _e("div", { key: G }, [
|
|
1908
|
+
E("div", Ts, [
|
|
1909
|
+
E("div", null, we(z.label), 1),
|
|
1910
|
+
E("div", Es, [
|
|
1911
|
+
ie(D, {
|
|
1912
|
+
name: "ChildFix",
|
|
1913
|
+
class: "svg-icon-content",
|
|
1914
|
+
style: { width: "24px", height: "24px" },
|
|
1915
|
+
onClick: (F) => T(z)
|
|
1916
|
+
}, null, 8, ["onClick"]),
|
|
1917
|
+
ie(D, {
|
|
1918
|
+
name: "ChildDelete",
|
|
1919
|
+
class: "svg-icon-content",
|
|
1920
|
+
style: { width: "24px", height: "24px" },
|
|
1921
|
+
onClick: (F) => t(z)
|
|
1922
|
+
}, null, 8, ["onClick"])
|
|
1923
|
+
])
|
|
1924
|
+
])
|
|
1925
|
+
]))), 128))
|
|
1926
|
+
]),
|
|
1927
|
+
E("div", Ss, [
|
|
1928
|
+
c[4] || (c[4] = E("div", null, we("表单按钮"), -1)),
|
|
1929
|
+
ie(I, {
|
|
1930
|
+
class: "icon-content",
|
|
1931
|
+
id: "themeButton",
|
|
1932
|
+
onClick: m
|
|
1933
|
+
}, {
|
|
1934
|
+
icon: ve(() => [
|
|
1935
|
+
ie(D, {
|
|
1936
|
+
name: "Plus",
|
|
1937
|
+
class: "icon-size"
|
|
1938
|
+
})
|
|
1939
|
+
]),
|
|
1940
|
+
default: ve(() => [
|
|
1941
|
+
c[3] || (c[3] = Be(" 新增 "))
|
|
1942
|
+
]),
|
|
1943
|
+
_: 1,
|
|
1944
|
+
__: [3]
|
|
1945
|
+
})
|
|
1946
|
+
]),
|
|
1947
|
+
E("div", $s, [
|
|
1948
|
+
(oe(!0), _e(je, null, Je(M.value, (z, G) => (oe(), _e("div", { key: G }, [
|
|
1949
|
+
E("div", Bs, [
|
|
1950
|
+
E("div", null, we(z.label), 1),
|
|
1951
|
+
E("div", Fs, [
|
|
1952
|
+
ie(D, {
|
|
1953
|
+
name: "ChildFix",
|
|
1954
|
+
class: "svg-icon-content",
|
|
1955
|
+
style: { width: "24px", height: "24px" },
|
|
1956
|
+
onClick: (F) => $(z)
|
|
1957
|
+
}, null, 8, ["onClick"]),
|
|
1958
|
+
ie(D, {
|
|
1959
|
+
name: "ChildDelete",
|
|
1960
|
+
class: "svg-icon-content",
|
|
1961
|
+
style: { width: "24px", height: "24px" },
|
|
1962
|
+
onClick: (F) => p(z)
|
|
1963
|
+
}, null, 8, ["onClick"])
|
|
1964
|
+
])
|
|
1965
|
+
])
|
|
1966
|
+
]))), 128))
|
|
1967
|
+
]),
|
|
1968
|
+
c[6] || (c[6] = E("div", { class: "operate-title" }, [
|
|
1969
|
+
E("div", null, we("表单布局"))
|
|
1970
|
+
], -1)),
|
|
1971
|
+
E("div", Ls, [
|
|
1972
|
+
c[5] || (c[5] = E("div", { class: "operate-center-content" }, we("是否自动撑宽"), -1)),
|
|
1973
|
+
ie(Ra, {
|
|
1974
|
+
modelValue: ce.value,
|
|
1975
|
+
"onUpdate:modelValue": c[0] || (c[0] = (z) => ce.value = z)
|
|
1976
|
+
}, null, 8, ["modelValue"])
|
|
1977
|
+
])
|
|
1978
|
+
]),
|
|
1979
|
+
ie(ll, {
|
|
1980
|
+
visible: o.value,
|
|
1981
|
+
onBeforeDestroy: x,
|
|
1982
|
+
width: 840
|
|
1983
|
+
}, {
|
|
1984
|
+
default: ve(() => [
|
|
1985
|
+
E("div", Os, [
|
|
1986
|
+
(oe(), Oe(el, {
|
|
1987
|
+
rowContents: P.value,
|
|
1988
|
+
key: P.value,
|
|
1989
|
+
isEnableWrap: !0,
|
|
1990
|
+
onChange: De,
|
|
1991
|
+
onChangeVisible: Fe,
|
|
1992
|
+
onBlurChange: _
|
|
1993
|
+
}, null, 8, ["rowContents"]))
|
|
1994
|
+
])
|
|
1995
|
+
]),
|
|
1996
|
+
footer: ve(() => [
|
|
1997
|
+
E("div", Vs, [
|
|
1998
|
+
ie(I, {
|
|
1999
|
+
onClick: x,
|
|
2000
|
+
class: "cancel-button button",
|
|
2001
|
+
id: "themeBorderButton"
|
|
2002
|
+
}, {
|
|
2003
|
+
default: ve(() => c[7] || (c[7] = [
|
|
2004
|
+
Be(we("取消"))
|
|
2005
|
+
])),
|
|
2006
|
+
_: 1,
|
|
2007
|
+
__: [7]
|
|
2008
|
+
}),
|
|
2009
|
+
ie(I, {
|
|
2010
|
+
class: "ok-button button",
|
|
2011
|
+
onClick: Y,
|
|
2012
|
+
id: "themeButton"
|
|
2013
|
+
}, {
|
|
2014
|
+
default: ve(() => c[8] || (c[8] = [
|
|
2015
|
+
Be(we("确认"))
|
|
2016
|
+
])),
|
|
2017
|
+
_: 1,
|
|
2018
|
+
__: [8]
|
|
2019
|
+
})
|
|
2020
|
+
])
|
|
2021
|
+
]),
|
|
2022
|
+
_: 1
|
|
2023
|
+
}, 8, ["visible"]),
|
|
2024
|
+
ie(ll, {
|
|
2025
|
+
visible: w.value,
|
|
2026
|
+
onBeforeDestroy: x,
|
|
2027
|
+
width: 840
|
|
2028
|
+
}, {
|
|
2029
|
+
default: ve(() => [
|
|
2030
|
+
E("div", Rs, [
|
|
2031
|
+
(oe(), Oe(el, {
|
|
2032
|
+
rowContents: Ce.value,
|
|
2033
|
+
key: Ce.value,
|
|
2034
|
+
isEnableWrap: !0,
|
|
2035
|
+
onChange: re
|
|
2036
|
+
}, null, 8, ["rowContents"]))
|
|
2037
|
+
])
|
|
2038
|
+
]),
|
|
2039
|
+
footer: ve(() => [
|
|
2040
|
+
E("div", { class: "dialog-footer" }, [
|
|
2041
|
+
E("div", {
|
|
2042
|
+
onClick: x,
|
|
2043
|
+
class: "cancel-button button"
|
|
2044
|
+
}, we("取消")),
|
|
2045
|
+
E("div", {
|
|
2046
|
+
class: "ok-button button",
|
|
2047
|
+
onClick: me
|
|
2048
|
+
}, we("确认"))
|
|
2049
|
+
])
|
|
2050
|
+
]),
|
|
2051
|
+
_: 1
|
|
2052
|
+
}, 8, ["visible"])
|
|
2053
|
+
]);
|
|
2054
|
+
};
|
|
2055
|
+
}
|
|
2056
|
+
}, Fa = /* @__PURE__ */ He(Us, [["__scopeId", "data-v-6aae2a5a"]]), js = { class: "step-module content" }, Ps = { class: "module-data" }, Ks = { class: "step-module layout" }, Ns = { class: "form-content" }, Ms = /* @__PURE__ */ El({
|
|
2057
|
+
__name: "operate",
|
|
2058
|
+
props: {
|
|
2059
|
+
itemContents: {
|
|
2060
|
+
type: Array,
|
|
2061
|
+
default: () => []
|
|
2062
|
+
},
|
|
2063
|
+
originalItemContents: {
|
|
2064
|
+
type: Array,
|
|
2065
|
+
default: () => []
|
|
2066
|
+
}
|
|
2067
|
+
},
|
|
2068
|
+
emits: ["change"],
|
|
2069
|
+
setup(r, { emit: V }) {
|
|
2070
|
+
const y = r, i = V, o = q([
|
|
2071
|
+
{
|
|
2072
|
+
label: "方向:",
|
|
2073
|
+
prop: "direction",
|
|
2074
|
+
type: "RADIO",
|
|
2075
|
+
contents: [
|
|
2076
|
+
{
|
|
2077
|
+
label: "水平",
|
|
2078
|
+
value: "horizontal"
|
|
2079
|
+
},
|
|
2080
|
+
{
|
|
2081
|
+
label: "垂直",
|
|
2082
|
+
value: "vertical"
|
|
2083
|
+
}
|
|
2084
|
+
],
|
|
2085
|
+
value: "horizontal"
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
label: "是否居中:",
|
|
2089
|
+
prop: "alignCenter",
|
|
2090
|
+
type: "RADIO",
|
|
2091
|
+
contents: [
|
|
2092
|
+
{
|
|
2093
|
+
label: "是",
|
|
2094
|
+
value: !0
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
label: "否",
|
|
2098
|
+
value: !1
|
|
2099
|
+
}
|
|
2100
|
+
],
|
|
2101
|
+
value: !0
|
|
2102
|
+
},
|
|
2103
|
+
// {
|
|
2104
|
+
// label: '是否交互',
|
|
2105
|
+
// prop: 'allowTrigger',
|
|
2106
|
+
// type: 'RADIO',
|
|
2107
|
+
// contents: [
|
|
2108
|
+
// {
|
|
2109
|
+
// label: '是',
|
|
2110
|
+
// value: true,
|
|
2111
|
+
// }, {
|
|
2112
|
+
// label: '否',
|
|
2113
|
+
// value: false,
|
|
2114
|
+
// },
|
|
2115
|
+
// ],
|
|
2116
|
+
// value: 'horizontal'
|
|
2117
|
+
// },
|
|
2118
|
+
{
|
|
2119
|
+
label: "应用简洁风格",
|
|
2120
|
+
prop: "simple",
|
|
2121
|
+
type: "RADIO",
|
|
2122
|
+
contents: [
|
|
2123
|
+
{
|
|
2124
|
+
label: "是",
|
|
2125
|
+
value: !0
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
label: "否",
|
|
2129
|
+
value: !1
|
|
2130
|
+
}
|
|
2131
|
+
],
|
|
2132
|
+
value: !1
|
|
2133
|
+
}
|
|
2134
|
+
]), P = q([
|
|
2135
|
+
{
|
|
2136
|
+
label: "",
|
|
2137
|
+
prop: "index",
|
|
2138
|
+
type: "input",
|
|
2139
|
+
value: "",
|
|
2140
|
+
isFormColHidden: !0
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
label: "标题",
|
|
2144
|
+
prop: "title",
|
|
2145
|
+
type: "input",
|
|
2146
|
+
value: ""
|
|
2147
|
+
},
|
|
2148
|
+
{
|
|
2149
|
+
label: "描述",
|
|
2150
|
+
prop: "description",
|
|
2151
|
+
type: "input",
|
|
2152
|
+
value: ""
|
|
2153
|
+
}
|
|
2154
|
+
]), L = q([
|
|
2155
|
+
{
|
|
2156
|
+
label: "取消",
|
|
2157
|
+
background: "#c0c4cc"
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
label: "确认",
|
|
2161
|
+
background: "#436aaf"
|
|
2162
|
+
}
|
|
2163
|
+
]), w = wa({
|
|
2164
|
+
visible: !1,
|
|
2165
|
+
width: "40%",
|
|
2166
|
+
title: "步骤条"
|
|
2167
|
+
}), M = q("create"), ee = q({}), O = q([]), ce = (T) => {
|
|
2168
|
+
var $;
|
|
2169
|
+
ee.value = T, i("change", ($ = te()) == null ? void 0 : $.compData);
|
|
2170
|
+
}, ue = (T, $) => {
|
|
2171
|
+
var me, t;
|
|
2172
|
+
switch (T) {
|
|
2173
|
+
case "create":
|
|
2174
|
+
(me = P.value) == null || me.forEach((p) => {
|
|
2175
|
+
p.value = "";
|
|
2176
|
+
}), M.value = "create", w.visible = !0;
|
|
2177
|
+
break;
|
|
2178
|
+
case "update":
|
|
2179
|
+
(t = P.value) == null || t.forEach((p) => {
|
|
2180
|
+
p.value = $[p == null ? void 0 : p.prop];
|
|
2181
|
+
}), M.value = "update", w.visible = !0;
|
|
2182
|
+
break;
|
|
2183
|
+
case "delete":
|
|
2184
|
+
O.value.splice($, 1), M.value = "delete";
|
|
2185
|
+
break;
|
|
2186
|
+
}
|
|
2187
|
+
}, Ce = (T) => {
|
|
2188
|
+
var $, me, t;
|
|
2189
|
+
if ((T == null ? void 0 : T.buttonName) === "确认") {
|
|
2190
|
+
const p = l(T == null ? void 0 : T.content);
|
|
2191
|
+
switch (Object.keys(p).forEach((m) => {
|
|
2192
|
+
p[m] === "" && delete p[m];
|
|
2193
|
+
}), M.value) {
|
|
2194
|
+
case "create":
|
|
2195
|
+
O.value.push({
|
|
2196
|
+
...p,
|
|
2197
|
+
index: (($ = O.value) == null ? void 0 : $.length) + 1
|
|
2198
|
+
});
|
|
2199
|
+
break;
|
|
2200
|
+
case "update":
|
|
2201
|
+
O.value = (me = O.value) == null ? void 0 : me.map((m) => m.index === (p == null ? void 0 : p.index) ? {
|
|
2202
|
+
...m,
|
|
2203
|
+
title: p == null ? void 0 : p.title,
|
|
2204
|
+
description: p == null ? void 0 : p.description
|
|
2205
|
+
} : m);
|
|
2206
|
+
break;
|
|
2207
|
+
}
|
|
2208
|
+
i("change", (t = te()) == null ? void 0 : t.compData), w.visible = !1;
|
|
2209
|
+
} else
|
|
2210
|
+
w.visible = !1;
|
|
2211
|
+
}, te = () => ({
|
|
2212
|
+
comp: "Step",
|
|
2213
|
+
compData: [
|
|
2214
|
+
{
|
|
2215
|
+
key: "stepList",
|
|
2216
|
+
contents: O.value
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
key: "stepConfig",
|
|
2220
|
+
contents: ee.value
|
|
2221
|
+
}
|
|
2222
|
+
]
|
|
2223
|
+
}), ke = () => {
|
|
2224
|
+
w.visible = !1;
|
|
2225
|
+
};
|
|
2226
|
+
return Ye(() => y == null ? void 0 : y.itemContents, (T) => {
|
|
2227
|
+
var $, me;
|
|
2228
|
+
T && (ee.value = (($ = T == null ? void 0 : T.find((t) => t.key === "stepConfig")) == null ? void 0 : $.contents) ?? {}, O.value = ((me = T == null ? void 0 : T.find((t) => t.key === "stepList")) == null ? void 0 : me.contents) ?? []);
|
|
2229
|
+
}, { immediate: !0 }), (T, $) => {
|
|
2230
|
+
const me = Ue("svg-icon"), t = Ue("el-button");
|
|
2231
|
+
return oe(), _e(je, null, [
|
|
2232
|
+
E("div", null, [
|
|
2233
|
+
E("div", js, [
|
|
2234
|
+
$[2] || ($[2] = E("h4", { class: "module-title" }, "内容", -1)),
|
|
2235
|
+
ie(t, {
|
|
2236
|
+
class: "module-icon",
|
|
2237
|
+
id: "themeButton",
|
|
2238
|
+
onClick: $[0] || ($[0] = (p) => ue("create"))
|
|
2239
|
+
}, {
|
|
2240
|
+
icon: ve(() => [
|
|
2241
|
+
ie(me, {
|
|
2242
|
+
name: "Plus",
|
|
2243
|
+
class: "icon-size"
|
|
2244
|
+
})
|
|
2245
|
+
]),
|
|
2246
|
+
default: ve(() => [
|
|
2247
|
+
$[1] || ($[1] = Be(" 新增 "))
|
|
2248
|
+
]),
|
|
2249
|
+
_: 1,
|
|
2250
|
+
__: [1]
|
|
2251
|
+
})
|
|
2252
|
+
]),
|
|
2253
|
+
E("div", Ps, [
|
|
2254
|
+
(oe(!0), _e(je, null, Je(O.value, (p, m) => (oe(), _e("div", {
|
|
2255
|
+
class: "module-data-item",
|
|
2256
|
+
key: m
|
|
2257
|
+
}, [
|
|
2258
|
+
E("span", null, we(p == null ? void 0 : p.title), 1),
|
|
2259
|
+
E("div", null, [
|
|
2260
|
+
ie(t, {
|
|
2261
|
+
type: "primary",
|
|
2262
|
+
size: "small",
|
|
2263
|
+
onClick: (b) => ue("update", { ...p, index: m + 1 })
|
|
2264
|
+
}, {
|
|
2265
|
+
default: ve(() => $[3] || ($[3] = [
|
|
2266
|
+
Be("修改")
|
|
2267
|
+
])),
|
|
2268
|
+
_: 2,
|
|
2269
|
+
__: [3]
|
|
2270
|
+
}, 1032, ["onClick"]),
|
|
2271
|
+
ie(t, {
|
|
2272
|
+
type: "danger",
|
|
2273
|
+
size: "small",
|
|
2274
|
+
onClick: (b) => ue("delete", m)
|
|
2275
|
+
}, {
|
|
2276
|
+
default: ve(() => $[4] || ($[4] = [
|
|
2277
|
+
Be("删除")
|
|
2278
|
+
])),
|
|
2279
|
+
_: 2,
|
|
2280
|
+
__: [4]
|
|
2281
|
+
}, 1032, ["onClick"])
|
|
2282
|
+
])
|
|
2283
|
+
]))), 128))
|
|
2284
|
+
]),
|
|
2285
|
+
E("div", Ks, [
|
|
2286
|
+
$[5] || ($[5] = E("div", { class: "module-title" }, "布局", -1)),
|
|
2287
|
+
ie(el, {
|
|
2288
|
+
rowContents: o.value,
|
|
2289
|
+
onChange: ce
|
|
2290
|
+
}, null, 8, ["rowContents"])
|
|
2291
|
+
])
|
|
2292
|
+
]),
|
|
2293
|
+
ie(ll, {
|
|
2294
|
+
visible: w.visible,
|
|
2295
|
+
title: w.title,
|
|
2296
|
+
onBeforeDestroy: ke,
|
|
2297
|
+
width: w.width
|
|
2298
|
+
}, {
|
|
2299
|
+
default: ve(() => [
|
|
2300
|
+
E("div", Ns, [
|
|
2301
|
+
(oe(), Oe(el, {
|
|
2302
|
+
rowContents: P.value,
|
|
2303
|
+
key: P.value,
|
|
2304
|
+
isEnableWrap: !1,
|
|
2305
|
+
isButtonRow: !1,
|
|
2306
|
+
isStartJustify: !1,
|
|
2307
|
+
buttonValue: L.value,
|
|
2308
|
+
onOnButtonClick: Ce
|
|
2309
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2310
|
+
])
|
|
2311
|
+
]),
|
|
2312
|
+
_: 1
|
|
2313
|
+
}, 8, ["visible", "title", "width"])
|
|
2314
|
+
], 64);
|
|
2315
|
+
};
|
|
2316
|
+
}
|
|
2317
|
+
}), Ws = /* @__PURE__ */ He(Ms, [["__scopeId", "data-v-7dbd17f2"]]), zs = { class: "step-module content" }, Js = { class: "module-data" }, Hs = { class: "step-module layout" }, Gs = { class: "form-content" }, qs = /* @__PURE__ */ El({
|
|
2318
|
+
__name: "operate",
|
|
2319
|
+
props: {
|
|
2320
|
+
itemContents: {
|
|
2321
|
+
type: Array,
|
|
2322
|
+
default: () => []
|
|
2323
|
+
},
|
|
2324
|
+
originalItemContents: {
|
|
2325
|
+
type: Array,
|
|
2326
|
+
default: () => []
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
emits: ["change"],
|
|
2330
|
+
setup(r, { emit: V }) {
|
|
2331
|
+
const y = r, i = V, o = q("create"), P = q({}), L = q([]), w = q([
|
|
2332
|
+
{
|
|
2333
|
+
label: "方向:",
|
|
2334
|
+
prop: "placement",
|
|
2335
|
+
type: "radio",
|
|
2336
|
+
contents: [
|
|
2337
|
+
{
|
|
2338
|
+
label: "底部",
|
|
2339
|
+
value: "bottom"
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
label: "顶部",
|
|
2343
|
+
value: "top"
|
|
2344
|
+
}
|
|
2345
|
+
],
|
|
2346
|
+
value: "bottom"
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
label: "节点类型:",
|
|
2350
|
+
prop: "type",
|
|
2351
|
+
type: "select",
|
|
2352
|
+
contents: [
|
|
2353
|
+
{
|
|
2354
|
+
label: "primary",
|
|
2355
|
+
value: "primary"
|
|
2356
|
+
},
|
|
2357
|
+
{
|
|
2358
|
+
label: "success",
|
|
2359
|
+
value: "success"
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
label: "warning",
|
|
2363
|
+
value: "warning"
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
label: "danger",
|
|
2367
|
+
value: "danger"
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
label: "info",
|
|
2371
|
+
value: "info"
|
|
2372
|
+
}
|
|
2373
|
+
],
|
|
2374
|
+
value: "primary"
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
label: "颜色:",
|
|
2378
|
+
prop: "color",
|
|
2379
|
+
type: "color",
|
|
2380
|
+
value: ""
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
label: "尺寸:",
|
|
2384
|
+
prop: "size",
|
|
2385
|
+
type: "radio",
|
|
2386
|
+
contents: [
|
|
2387
|
+
{
|
|
2388
|
+
label: "normal",
|
|
2389
|
+
value: "normal"
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
label: "large",
|
|
2393
|
+
value: "large"
|
|
2394
|
+
}
|
|
2395
|
+
],
|
|
2396
|
+
value: "normal"
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
label: "是否空心",
|
|
2400
|
+
prop: "isHollow",
|
|
2401
|
+
type: "RADIO",
|
|
2402
|
+
contents: [
|
|
2403
|
+
{
|
|
2404
|
+
label: "是",
|
|
2405
|
+
value: !0
|
|
2406
|
+
},
|
|
2407
|
+
{
|
|
2408
|
+
label: "否",
|
|
2409
|
+
value: !1
|
|
2410
|
+
}
|
|
2411
|
+
],
|
|
2412
|
+
value: !0
|
|
2413
|
+
},
|
|
2414
|
+
{
|
|
2415
|
+
label: "是否居中",
|
|
2416
|
+
prop: "isCenter",
|
|
2417
|
+
type: "RADIO",
|
|
2418
|
+
contents: [
|
|
2419
|
+
{
|
|
2420
|
+
label: "是",
|
|
2421
|
+
value: !0
|
|
2422
|
+
},
|
|
2423
|
+
{
|
|
2424
|
+
label: "否",
|
|
2425
|
+
value: !1
|
|
2426
|
+
}
|
|
2427
|
+
],
|
|
2428
|
+
value: !0
|
|
2429
|
+
}
|
|
2430
|
+
]), M = q([
|
|
2431
|
+
{
|
|
2432
|
+
label: "",
|
|
2433
|
+
prop: "index",
|
|
2434
|
+
type: "input",
|
|
2435
|
+
value: "",
|
|
2436
|
+
isFormColHidden: !0
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
label: "内容",
|
|
2440
|
+
prop: "content",
|
|
2441
|
+
type: "input",
|
|
2442
|
+
value: ""
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
label: "时间戳",
|
|
2446
|
+
prop: "timestamp",
|
|
2447
|
+
type: "datetime",
|
|
2448
|
+
value: ""
|
|
2449
|
+
}
|
|
2450
|
+
]), ee = q([
|
|
2451
|
+
{
|
|
2452
|
+
label: "取消",
|
|
2453
|
+
background: "#c0c4cc"
|
|
2454
|
+
},
|
|
2455
|
+
{
|
|
2456
|
+
label: "确认",
|
|
2457
|
+
background: "#436aaf"
|
|
2458
|
+
}
|
|
2459
|
+
]), O = wa({
|
|
2460
|
+
visible: !1,
|
|
2461
|
+
width: "40%",
|
|
2462
|
+
title: "时间线"
|
|
2463
|
+
}), ce = (T) => {
|
|
2464
|
+
var $;
|
|
2465
|
+
P.value = T, console.log(1212, T), i("change", ($ = te()) == null ? void 0 : $.compData);
|
|
2466
|
+
}, ue = (T, $) => {
|
|
2467
|
+
var me, t;
|
|
2468
|
+
switch (T) {
|
|
2469
|
+
case "create":
|
|
2470
|
+
(me = M.value) == null || me.forEach((p) => {
|
|
2471
|
+
p.value = "";
|
|
2472
|
+
}), o.value = "create", O.visible = !0;
|
|
2473
|
+
break;
|
|
2474
|
+
case "update":
|
|
2475
|
+
(t = M.value) == null || t.forEach((p) => {
|
|
2476
|
+
p.value = $[p == null ? void 0 : p.prop];
|
|
2477
|
+
}), o.value = "update", O.visible = !0;
|
|
2478
|
+
break;
|
|
2479
|
+
case "delete":
|
|
2480
|
+
L.value.splice($, 1), o.value = "delete";
|
|
2481
|
+
break;
|
|
2482
|
+
}
|
|
2483
|
+
}, Ce = (T) => {
|
|
2484
|
+
var $, me, t, p;
|
|
2485
|
+
if ((T == null ? void 0 : T.buttonName) === "确认") {
|
|
2486
|
+
const m = l(T == null ? void 0 : T.content);
|
|
2487
|
+
switch (Object.keys(m).forEach((b) => {
|
|
2488
|
+
m[b] === "" && delete m[b];
|
|
2489
|
+
}), o.value) {
|
|
2490
|
+
case "create":
|
|
2491
|
+
console.log(1335, L.value, m), (me = L.value) == null || me.push({
|
|
2492
|
+
...m,
|
|
2493
|
+
index: (($ = L.value) == null ? void 0 : $.length) + 1
|
|
2494
|
+
});
|
|
2495
|
+
break;
|
|
2496
|
+
case "update":
|
|
2497
|
+
L.value = (t = L.value) == null ? void 0 : t.map((b) => b.index === (m == null ? void 0 : m.index) ? {
|
|
2498
|
+
...b,
|
|
2499
|
+
content: m == null ? void 0 : m.content,
|
|
2500
|
+
timestamp: m == null ? void 0 : m.timestamp
|
|
2501
|
+
} : b);
|
|
2502
|
+
break;
|
|
2503
|
+
}
|
|
2504
|
+
i("change", (p = te()) == null ? void 0 : p.compData), O.visible = !1;
|
|
2505
|
+
} else
|
|
2506
|
+
O.visible = !1;
|
|
2507
|
+
}, te = () => ({
|
|
2508
|
+
comp: "TimeLine",
|
|
2509
|
+
compData: [
|
|
2510
|
+
{
|
|
2511
|
+
key: "timeLineList",
|
|
2512
|
+
contents: L.value
|
|
2513
|
+
},
|
|
2514
|
+
{
|
|
2515
|
+
key: "timeLineConfig",
|
|
2516
|
+
contents: P.value
|
|
2517
|
+
}
|
|
2518
|
+
]
|
|
2519
|
+
}), ke = () => {
|
|
2520
|
+
O.visible = !1;
|
|
2521
|
+
};
|
|
2522
|
+
return Ye(() => y == null ? void 0 : y.itemContents, (T) => {
|
|
2523
|
+
var $, me;
|
|
2524
|
+
T && (P.value = (($ = T == null ? void 0 : T.find((t) => t.key === "timeLineConfig")) == null ? void 0 : $.contents) ?? {}, L.value = ((me = T == null ? void 0 : T.find((t) => t.key === "timeLineList")) == null ? void 0 : me.contents) ?? []);
|
|
2525
|
+
}, { immediate: !0 }), (T, $) => {
|
|
2526
|
+
const me = Ue("svg-icon"), t = Ue("el-button");
|
|
2527
|
+
return oe(), _e(je, null, [
|
|
2528
|
+
E("div", null, [
|
|
2529
|
+
E("div", zs, [
|
|
2530
|
+
$[2] || ($[2] = E("h4", { class: "module-title" }, "内容", -1)),
|
|
2531
|
+
ie(t, {
|
|
2532
|
+
class: "module-icon",
|
|
2533
|
+
id: "themeButton",
|
|
2534
|
+
onClick: $[0] || ($[0] = (p) => ue("create"))
|
|
2535
|
+
}, {
|
|
2536
|
+
icon: ve(() => [
|
|
2537
|
+
ie(me, {
|
|
2538
|
+
name: "Plus",
|
|
2539
|
+
class: "icon-size"
|
|
2540
|
+
})
|
|
2541
|
+
]),
|
|
2542
|
+
default: ve(() => [
|
|
2543
|
+
$[1] || ($[1] = Be(" 新增 "))
|
|
2544
|
+
]),
|
|
2545
|
+
_: 1,
|
|
2546
|
+
__: [1]
|
|
2547
|
+
})
|
|
2548
|
+
]),
|
|
2549
|
+
E("div", Js, [
|
|
2550
|
+
(oe(!0), _e(je, null, Je(L.value, (p, m) => (oe(), _e("div", {
|
|
2551
|
+
class: "module-data-item",
|
|
2552
|
+
key: m
|
|
2553
|
+
}, [
|
|
2554
|
+
E("span", null, we(p == null ? void 0 : p.content), 1),
|
|
2555
|
+
E("div", null, [
|
|
2556
|
+
ie(t, {
|
|
2557
|
+
type: "primary",
|
|
2558
|
+
size: "small",
|
|
2559
|
+
onClick: (b) => ue("update", { ...p, index: m + 1 })
|
|
2560
|
+
}, {
|
|
2561
|
+
default: ve(() => $[3] || ($[3] = [
|
|
2562
|
+
Be("修改")
|
|
2563
|
+
])),
|
|
2564
|
+
_: 2,
|
|
2565
|
+
__: [3]
|
|
2566
|
+
}, 1032, ["onClick"]),
|
|
2567
|
+
ie(t, {
|
|
2568
|
+
type: "danger",
|
|
2569
|
+
size: "small",
|
|
2570
|
+
onClick: (b) => ue("delete", m)
|
|
2571
|
+
}, {
|
|
2572
|
+
default: ve(() => $[4] || ($[4] = [
|
|
2573
|
+
Be("删除")
|
|
2574
|
+
])),
|
|
2575
|
+
_: 2,
|
|
2576
|
+
__: [4]
|
|
2577
|
+
}, 1032, ["onClick"])
|
|
2578
|
+
])
|
|
2579
|
+
]))), 128))
|
|
2580
|
+
]),
|
|
2581
|
+
E("div", Hs, [
|
|
2582
|
+
$[5] || ($[5] = E("div", { class: "module-title" }, "布局", -1)),
|
|
2583
|
+
ie(el, {
|
|
2584
|
+
rowContents: w.value,
|
|
2585
|
+
onChange: ce
|
|
2586
|
+
}, null, 8, ["rowContents"])
|
|
2587
|
+
])
|
|
2588
|
+
]),
|
|
2589
|
+
ie(ll, {
|
|
2590
|
+
visible: O.visible,
|
|
2591
|
+
title: O.title,
|
|
2592
|
+
onBeforeDestroy: ke,
|
|
2593
|
+
width: O.width
|
|
2594
|
+
}, {
|
|
2595
|
+
default: ve(() => [
|
|
2596
|
+
E("div", Gs, [
|
|
2597
|
+
(oe(), Oe(el, {
|
|
2598
|
+
rowContents: M.value,
|
|
2599
|
+
key: M.value,
|
|
2600
|
+
isEnableWrap: !1,
|
|
2601
|
+
isButtonRow: !1,
|
|
2602
|
+
isStartJustify: !1,
|
|
2603
|
+
buttonValue: ee.value,
|
|
2604
|
+
onOnButtonClick: Ce
|
|
2605
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2606
|
+
])
|
|
2607
|
+
]),
|
|
2608
|
+
_: 1
|
|
2609
|
+
}, 8, ["visible", "title", "width"])
|
|
2610
|
+
], 64);
|
|
2611
|
+
};
|
|
2612
|
+
}
|
|
2613
|
+
}), Qs = /* @__PURE__ */ He(qs, [["__scopeId", "data-v-f6b5d4fc"]]), Xs = {};
|
|
2614
|
+
function Ys(r, V) {
|
|
2615
|
+
return oe(), _e("div");
|
|
2616
|
+
}
|
|
2617
|
+
const Zs = /* @__PURE__ */ He(Xs, [["render", Ys]]), en = { class: "extra-content" }, ln = { key: 0 }, an = { key: 1 }, sn = { class: "dialog-footer" }, nn = {
|
|
2618
|
+
__name: "index",
|
|
2619
|
+
props: {
|
|
2620
|
+
itemData: {
|
|
2621
|
+
type: Array,
|
|
2622
|
+
default: () => []
|
|
2623
|
+
},
|
|
2624
|
+
childItemData: {
|
|
2625
|
+
type: Array,
|
|
2626
|
+
default: () => []
|
|
2627
|
+
},
|
|
2628
|
+
index: Number,
|
|
2629
|
+
changedContent: {
|
|
2630
|
+
type: Object,
|
|
2631
|
+
default: () => {
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
},
|
|
2635
|
+
emits: ["change"],
|
|
2636
|
+
setup(r, { emit: V }) {
|
|
2637
|
+
const y = r, i = q(0), o = q(), P = q(), L = V, w = q(!1), M = q({}), ee = q({}), O = q();
|
|
2638
|
+
Ye(
|
|
2639
|
+
() => [y.itemData],
|
|
2640
|
+
() => {
|
|
2641
|
+
var p;
|
|
2642
|
+
const t = l(y.itemData);
|
|
2643
|
+
o.value = (p = l(t)) == null ? void 0 : p.map((m) => {
|
|
2644
|
+
var b;
|
|
2645
|
+
if (m.key === "extra") {
|
|
2646
|
+
let re = [];
|
|
2647
|
+
(b = m.value) == null || b.forEach((be) => {
|
|
2648
|
+
var De;
|
|
2649
|
+
re.push((De = Object.values(be)) == null ? void 0 : De[0]);
|
|
2650
|
+
}), m.value = re;
|
|
2651
|
+
}
|
|
2652
|
+
return m;
|
|
2653
|
+
});
|
|
2654
|
+
},
|
|
2655
|
+
{ deep: !0, immediate: !0 }
|
|
2656
|
+
);
|
|
2657
|
+
const ce = (t, p, m, b) => {
|
|
2658
|
+
var be;
|
|
2659
|
+
let re = {};
|
|
2660
|
+
((be = t == null ? void 0 : t[0]) == null ? void 0 : be.contents) === "详情" && (w.value = !0, re[p] = t, P.value = t == null ? void 0 : t.filter((De) => (De == null ? void 0 : De.key) !== "tableContentName"), M.value = re, ee.value = m, O.value = b.id);
|
|
2661
|
+
}, ue = (t) => {
|
|
2662
|
+
var De, Fe, _, Y;
|
|
2663
|
+
const p = (Fe = (De = Object.values(l(M.value))) == null ? void 0 : De[0]) == null ? void 0 : Fe.filter((x) => (x == null ? void 0 : x.key) === "tableContentName"), m = (Y = (_ = Object.values(l(M.value))) == null ? void 0 : _[0]) == null ? void 0 : Y.filter((x) => (x == null ? void 0 : x.key) !== "tableContentName"), b = m == null ? void 0 : m.map((x, s) => {
|
|
2664
|
+
var c;
|
|
2665
|
+
return s === t.index && (x == null ? void 0 : x.comp) === "Table" && (x.compData = (c = x.compData) == null ? void 0 : c.map((D) => {
|
|
2666
|
+
var I, z;
|
|
2667
|
+
return (D == null ? void 0 : D.key) === "tableContents" && (D.contents = (z = (I = t.content) == null ? void 0 : I.map((G) => {
|
|
2668
|
+
let F = {};
|
|
2669
|
+
for (let u in G)
|
|
2670
|
+
u !== "id" && (F[u] = G[u]);
|
|
2671
|
+
return F;
|
|
2672
|
+
})) == null ? void 0 : z.map((G) => Object.values(G))), D;
|
|
2673
|
+
})), x;
|
|
2674
|
+
});
|
|
2675
|
+
b.unshift(p == null ? void 0 : p[0]);
|
|
2676
|
+
let re = l(M.value), be = {};
|
|
2677
|
+
for (let x in re)
|
|
2678
|
+
be[x] = b;
|
|
2679
|
+
M.value = be;
|
|
2680
|
+
}, Ce = () => {
|
|
2681
|
+
w.value = !1, M.value = {}, ee.value = {}, O.value = void 0, i.value++;
|
|
2682
|
+
}, te = (t) => {
|
|
2683
|
+
var De, Fe, _, Y;
|
|
2684
|
+
const p = (Fe = (De = Object.values(l(M.value))) == null ? void 0 : De[0]) == null ? void 0 : Fe.filter((x) => (x == null ? void 0 : x.key) === "tableContentName"), m = (Y = (_ = Object.values(l(M.value))) == null ? void 0 : _[0]) == null ? void 0 : Y.filter((x) => (x == null ? void 0 : x.key) !== "tableContentName"), b = m == null ? void 0 : m.map((x, s) => (s === t.index && (x.compData = t.contents), x));
|
|
2685
|
+
b.unshift(p == null ? void 0 : p[0]);
|
|
2686
|
+
let re = l(M.value), be = {};
|
|
2687
|
+
for (let x in re)
|
|
2688
|
+
be[x] = b;
|
|
2689
|
+
M.value = be;
|
|
2690
|
+
}, ke = () => {
|
|
2691
|
+
var p, m;
|
|
2692
|
+
let t = {};
|
|
2693
|
+
for (let b in ee.value)
|
|
2694
|
+
b === ((p = Object.keys(M.value)) == null ? void 0 : p[0]) ? t[b] = (m = Object.values(M.value)) == null ? void 0 : m[0] : t[b] = ee.value[b];
|
|
2695
|
+
L("change", {
|
|
2696
|
+
buttonName: "编辑",
|
|
2697
|
+
index: O.value,
|
|
2698
|
+
singleContent: t
|
|
2699
|
+
}, "methodData"), w.value = !1, M.value = {}, ee.value = {}, O.value = void 0;
|
|
2700
|
+
}, T = () => {
|
|
2701
|
+
w.value = !1, M.value = {}, ee.value = {}, O.value = void 0;
|
|
2702
|
+
}, $ = (t) => {
|
|
2703
|
+
L("change", t, "methodData");
|
|
2704
|
+
}, me = (t) => Aa(t);
|
|
2705
|
+
return (t, p) => {
|
|
2706
|
+
const m = Ue("el-button");
|
|
2707
|
+
return oe(), _e("div", en, [
|
|
2708
|
+
(oe(!0), _e(je, null, Je(o.value, (b, re) => (oe(), _e("div", { key: i.value }, [
|
|
2709
|
+
(b == null ? void 0 : b.key) === "extra" ? (oe(), _e("div", ln)) : (oe(), _e("div", an, [
|
|
2710
|
+
(oe(), Oe(ta(me(b.comp)), {
|
|
2711
|
+
itemData: b == null ? void 0 : b.compData,
|
|
2712
|
+
childItemData: b == null ? void 0 : b.itemChildData,
|
|
2713
|
+
key: re,
|
|
2714
|
+
index: (b == null ? void 0 : b.id) ?? re,
|
|
2715
|
+
onContentClick: ce,
|
|
2716
|
+
onChange: $
|
|
2717
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2718
|
+
]))
|
|
2719
|
+
]))), 128)),
|
|
2720
|
+
ie(ll, {
|
|
2721
|
+
visible: w.value,
|
|
2722
|
+
onBeforeDestroy: T
|
|
2723
|
+
}, {
|
|
2724
|
+
default: ve(() => [
|
|
2725
|
+
(oe(!0), _e(je, null, Je(P.value, (b, re) => (oe(), _e("div", {
|
|
2726
|
+
key: re,
|
|
2727
|
+
class: "extra-dialog"
|
|
2728
|
+
}, [
|
|
2729
|
+
(oe(), Oe(ta(me(b.comp)), {
|
|
2730
|
+
itemData: b == null ? void 0 : b.compData,
|
|
2731
|
+
onChange: ue,
|
|
2732
|
+
childItemData: b == null ? void 0 : b.itemChildData,
|
|
2733
|
+
key: re,
|
|
2734
|
+
onContentChange: te,
|
|
2735
|
+
index: (b == null ? void 0 : b.id) ?? re,
|
|
2736
|
+
class: "extra-component"
|
|
2737
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2738
|
+
]))), 128))
|
|
2739
|
+
]),
|
|
2740
|
+
footer: ve(() => [
|
|
2741
|
+
E("div", sn, [
|
|
2742
|
+
ie(m, {
|
|
2743
|
+
class: "cancel-button footer-button",
|
|
2744
|
+
onClick: Ce,
|
|
2745
|
+
id: "themeBorderButton"
|
|
2746
|
+
}, {
|
|
2747
|
+
default: ve(() => p[0] || (p[0] = [
|
|
2748
|
+
Be(we("取消"))
|
|
2749
|
+
])),
|
|
2750
|
+
_: 1,
|
|
2751
|
+
__: [0]
|
|
2752
|
+
}),
|
|
2753
|
+
ie(m, {
|
|
2754
|
+
class: "confirm-button footer-button",
|
|
2755
|
+
onClick: ke,
|
|
2756
|
+
id: "themeButton"
|
|
2757
|
+
}, {
|
|
2758
|
+
default: ve(() => p[1] || (p[1] = [
|
|
2759
|
+
Be(we("确认"))
|
|
2760
|
+
])),
|
|
2761
|
+
_: 1,
|
|
2762
|
+
__: [1]
|
|
2763
|
+
})
|
|
2764
|
+
])
|
|
2765
|
+
]),
|
|
2766
|
+
_: 1
|
|
2767
|
+
}, 8, ["visible"])
|
|
2768
|
+
]);
|
|
2769
|
+
};
|
|
2770
|
+
}
|
|
2771
|
+
}, on = /* @__PURE__ */ He(nn, [["__scopeId", "data-v-2d9c5ab2"]]);
|
|
2772
|
+
let Le = "$R";
|
|
2773
|
+
const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\]$/.exec(l(r)), un = (r) => /^'([^']+)':.*$/.exec(l(r)), da = (r) => {
|
|
2774
|
+
let V = r;
|
|
2775
|
+
const y = [];
|
|
2776
|
+
let i = "";
|
|
2777
|
+
for (const o of V)
|
|
2778
|
+
o.includes("{") || i.includes("{") || o.includes("[") || i.includes("[") || o.includes("【") || i.includes("【") || o.includes("(") || i.includes("(") || o.includes("(") || i.includes("(") || o.includes("/*") || i.includes("/*") || o.includes("&") || i.includes("&") ? (i += o.trim(), l(i).split("{").length - 1 === l(i).split("}").length - 1 && l(i).split("【").length - 1 === l(i).split("】").length - 1 && l(i).split("[").length - 1 === l(i).split("]").length - 1 && l(i).split("(").length - 1 === l(i).split(")").length - 1 && l(i).split("(").length - 1 === l(i).split(")").length - 1 && l(i).split("/*").length - 1 === l(i).split("*/").length - 1 && i[i.length - 1] !== "," && i[i.length - 1] !== "&" && (y.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), i = "")) : y.push(o.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
2779
|
+
return y;
|
|
2780
|
+
}, Ca = (r, V) => {
|
|
2781
|
+
let y = r;
|
|
2782
|
+
const i = [];
|
|
2783
|
+
let o = "", P = 0;
|
|
2784
|
+
for (const L of y)
|
|
2785
|
+
P++, L.includes("{") || o.includes("{") || L.includes("[") || o.includes("[") || L.includes("【") || o.includes("【") || L.includes("(") || o.includes("(") || L.includes("(") || o.includes("(") || L.includes("/*") || o.includes("/*") ? (o += L.trim(), l(o).split("{").length - 1 === l(o).split("}").length - 1 && l(o).split("【").length - 1 === l(o).split("】").length - 1 && l(o).split("[").length - 1 === l(o).split("]").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("/*").length - 1 === l(o).split("*/").length - 1 && o[o.length - 1] !== "," && o[o.length - 1] === V ? (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = "") : P === (r == null ? void 0 : r.length) && i.push(o.replace(/\/\*[\s\S]*?\*\//g, ""))) : (o += L.trim(), (o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1]) === V && (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = ""));
|
|
2786
|
+
return i;
|
|
2787
|
+
}, Ro = (r, V) => {
|
|
2788
|
+
let y = r;
|
|
2789
|
+
const i = [];
|
|
2790
|
+
let o = "", P = 0;
|
|
2791
|
+
for (const L of y)
|
|
2792
|
+
P++, L.includes("{") || o.includes("{") || L.includes("[") || o.includes("[") || L.includes("【") || o.includes("【") || L.includes("(") || o.includes("(") || L.includes("(") || o.includes("(") || L.includes("/*") || o.includes("/*") ? (o += L.trim(), l(o).split("{").length - 1 === l(o).split("}").length - 1 && l(o).split("【").length - 1 === l(o).split("】").length - 1 && l(o).split("[").length - 1 === l(o).split("]").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("/*").length - 1 === l(o).split("*/").length - 1 && o[o.length - 1] === V ? (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = "") : P === (r == null ? void 0 : r.length) && (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = "")) : (o += L.trim(), (o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1]) === V && (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = ""));
|
|
2793
|
+
return (o == null ? void 0 : o.length) !== 0 && i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), i;
|
|
2794
|
+
}, Uo = (r) => /^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l(r)), jo = (r) => {
|
|
2795
|
+
var V, y, i, o, P, L, w, M, ee, O, ce, ue, Ce, te, ke, T, $, me, t, p, m, b, re, be, De, Fe, _, Y, x, s, c, D, I, z, G, F, u, X, J, de, Q, R, K, j, A, pe, ae, S, g, v, H, f, n, Z, e, a, d, h, k, W, ye, N;
|
|
2796
|
+
if (un(r)) {
|
|
2797
|
+
let le = {}, se = (i = (y = (V = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : V.split(Le)) == null ? void 0 : y[0]) == null ? void 0 : i.replaceAll("'", ""), ge = "", U = (P = (o = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : o.split(Le)) == null ? void 0 : P[1];
|
|
2798
|
+
if (U.includes("{") || U.includes("("))
|
|
2799
|
+
if (U.includes("{") ? ge = ge + ((ce = (O = (ee = (M = (w = (L = U == null ? void 0 : U.split("{")) == null ? void 0 : L[1]) == null ? void 0 : w.split("}")) == null ? void 0 : M[0]) == null ? void 0 : ee.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : O.replaceAll("[", "([")) == null ? void 0 : ce.replaceAll("]", "])")) + "[" : ge = ge + (($ = (T = (ke = (te = (Ce = (ue = U == null ? void 0 : U.split("(")) == null ? void 0 : ue[1]) == null ? void 0 : Ce.split(")")) == null ? void 0 : te[0]) == null ? void 0 : ke.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : T.replaceAll("[", "([")) == null ? void 0 : $.replaceAll("]", "])")) + "[", !((me = U == null ? void 0 : U.split(")")) != null && me[1]))
|
|
2800
|
+
ge = ge + ((m = (p = (t = U == null ? void 0 : U.split("[")) == null ? void 0 : t[1]) == null ? void 0 : p.split("]")) == null ? void 0 : m[0]) + "]";
|
|
2801
|
+
else {
|
|
2802
|
+
const ne = (De = (be = (re = (b = U == null ? void 0 : U.split(")")) == null ? void 0 : b[1]) == null ? void 0 : re.replace("[", Le)) == null ? void 0 : be.split(Le)) == null ? void 0 : De[1];
|
|
2803
|
+
if (ne) {
|
|
2804
|
+
const C = ne.lastIndexOf("]"), he = ne.substring(0, C) + Le + ne.substring(C + 1);
|
|
2805
|
+
ge = ge + ((Fe = he == null ? void 0 : he.split(Le)) == null ? void 0 : Fe[0]) + "]";
|
|
2806
|
+
} else
|
|
2807
|
+
ge = (x = (Y = (_ = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : _.split(Le)) == null ? void 0 : Y[1]) == null ? void 0 : x.replaceAll("'", "");
|
|
2808
|
+
}
|
|
2809
|
+
else
|
|
2810
|
+
ge = (D = (c = (s = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : s.split(Le)) == null ? void 0 : c[1]) == null ? void 0 : D.replaceAll("'", "");
|
|
2811
|
+
return le[se] = ge, {
|
|
2812
|
+
groupName: "",
|
|
2813
|
+
formContents: [[le]]
|
|
2814
|
+
};
|
|
2815
|
+
} else {
|
|
2816
|
+
let le = {}, se = "", ge = "";
|
|
2817
|
+
if (r.includes("#")) {
|
|
2818
|
+
se = (z = (I = r == null ? void 0 : r.split("#")) == null ? void 0 : I[0]) == null ? void 0 : z.replaceAll("'", "");
|
|
2819
|
+
let U = (F = (G = r == null ? void 0 : r.split("#")) == null ? void 0 : G[1]) == null ? void 0 : F.replaceAll("'", "");
|
|
2820
|
+
U != null && U.includes("{") ? ge = ge + ((de = (J = (X = (u = U == null ? void 0 : U.split("{")) == null ? void 0 : u[1]) == null ? void 0 : X.split("}")) == null ? void 0 : J[0]) == null ? void 0 : de.replaceAll(":", "/").replaceAll("'", "")) + "[" : ge = ge + ((j = (K = (R = (Q = U == null ? void 0 : U.split("(")) == null ? void 0 : Q[1]) == null ? void 0 : R.split(")")) == null ? void 0 : K[0]) == null ? void 0 : j.replaceAll(":", "/").replaceAll("'", "")) + "[", ge = ge + ((ae = (pe = (A = U == null ? void 0 : U.split("[")) == null ? void 0 : A[1]) == null ? void 0 : pe.split("]")) == null ? void 0 : ae[0]) + "]";
|
|
2821
|
+
} else {
|
|
2822
|
+
let U = (v = (g = (S = r == null ? void 0 : r.split("]")) == null ? void 0 : S[0]) == null ? void 0 : g.split("[")) == null ? void 0 : v[1];
|
|
2823
|
+
if ((H = U == null ? void 0 : U.split(":")) == null || H.forEach((ne, C) => {
|
|
2824
|
+
var he;
|
|
2825
|
+
((he = U == null ? void 0 : U.split(":")) == null ? void 0 : he.length) - 1 === C && (se = ne == null ? void 0 : ne.replaceAll("'", ""));
|
|
2826
|
+
}), !(r != null && r.includes("[")))
|
|
2827
|
+
ge = ((e = (Z = (n = (f = r == null ? void 0 : r.split("]")) == null ? void 0 : f[1]) == null ? void 0 : n.replace(":", Le).split(Le)) == null ? void 0 : Z[1]) == null ? void 0 : e.replaceAll("'", "")) ?? "";
|
|
2828
|
+
else {
|
|
2829
|
+
let ne = (ye = (W = (k = (h = (d = (a = l(r)) == null ? void 0 : a.split("(")) == null ? void 0 : d[1]) == null ? void 0 : h.split(")")) == null ? void 0 : k[0]) == null ? void 0 : W.replaceAll("{", "").replaceAll("}", "")) == null ? void 0 : ye.replaceAll("'", "").replaceAll(":", "/"), C = "";
|
|
2830
|
+
(N = U == null ? void 0 : U.split(":")) == null || N.forEach((he) => {
|
|
2831
|
+
C = C === "" ? C + (he == null ? void 0 : he.replaceAll("'", "")) : C + ":" + (he == null ? void 0 : he.replaceAll("'", ""));
|
|
2832
|
+
}), ge = ne + "[" + C + "]";
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2835
|
+
return le[se] = ge, {
|
|
2836
|
+
groupName: "",
|
|
2837
|
+
formContents: [[le]]
|
|
2838
|
+
};
|
|
2839
|
+
}
|
|
2840
|
+
}, Po = (r) => (r == null ? void 0 : r[0]) === "[" && (r == null ? void 0 : r[r.length - 1]) === "]" && !(r != null && r.includes("{")), rn = (r, V) => {
|
|
2841
|
+
let y = r.length;
|
|
2842
|
+
for (; y--; )
|
|
2843
|
+
if (r[y] === ")")
|
|
2844
|
+
return r.substring(0, y) + V + r.substring(y + 1);
|
|
2845
|
+
return r;
|
|
2846
|
+
}, Ko = (r) => {
|
|
2847
|
+
var P, L, w, M, ee;
|
|
2848
|
+
let V = r.slice(1, r.length - 1), y;
|
|
2849
|
+
(V == null ? void 0 : V[0]) === "[" ? y = (L = (P = da(l(V))) == null ? void 0 : P.filter((O) => O !== ",")) == null ? void 0 : L.map((O) => O == null ? void 0 : O.slice(1, O.length - 1)) : (V = "[" + l(V) + "]", y = (M = (w = da(l(V))) == null ? void 0 : w.filter((O) => O !== ",")) == null ? void 0 : M.map((O) => O == null ? void 0 : O.slice(1, O.length - 1))), y = (ee = l(y)) == null ? void 0 : ee.map((O) => {
|
|
2850
|
+
var ce, ue;
|
|
2851
|
+
return O = (ue = (ce = O.replace(")", Le)) == null ? void 0 : ce.split(Le)) == null ? void 0 : ue[1], O;
|
|
2852
|
+
});
|
|
2853
|
+
let i = [], o = [];
|
|
2854
|
+
return y == null || y.forEach((O) => {
|
|
2855
|
+
var Ce, te, ke, T, $, me, t, p, m, b, re, be, De, Fe, _, Y, x, s, c, D, I, z, G, F, u, X, J, de, Q, R, K, j, A, pe, ae, S, g, v, H, f, n, Z, e, a, d, h, k, W;
|
|
2856
|
+
let ce = (te = (Ce = l(O)) == null ? void 0 : Ce.slice(1, l(O).length - 1)) == null ? void 0 : te.replace(":", Le).split(Le);
|
|
2857
|
+
if (((T = (ke = l(ce)) == null ? void 0 : ke[0]) == null ? void 0 : T.replaceAll("'", "")) === "输入") {
|
|
2858
|
+
if (!((me = ($ = l(ce)) == null ? void 0 : $[1]) != null && me.includes("[")) && !((p = (t = l(ce)) == null ? void 0 : t[1]) != null && p.includes("("))) {
|
|
2859
|
+
_a((m = l(ce)) == null ? void 0 : m[1].replaceAll("'", '"')) && o.push(JSON.parse((b = l(ce)) == null ? void 0 : b[1].replaceAll("'", '"')));
|
|
2860
|
+
return;
|
|
2861
|
+
}
|
|
2862
|
+
if (((be = (re = l(ce)) == null ? void 0 : re[1]) == null ? void 0 : be[0]) === "[") {
|
|
2863
|
+
let ye = (Y = (De = l(ce)) == null ? void 0 : De[1]) == null ? void 0 : Y.slice(1, ((_ = (Fe = l(ce)) == null ? void 0 : Fe[1]) == null ? void 0 : _.length) - 1);
|
|
2864
|
+
(s = (x = da(ye)) == null ? void 0 : x.filter((N) => N !== ",")) == null || s.forEach((N) => {
|
|
2865
|
+
var ne, C, he, fe, Ae, Pe, Ke, B, Te, Ie, Ve, xe, $e, We, Ge, rl, Ze, kl, _l, Cl, wl, Dl;
|
|
2866
|
+
let le = {}, se = (he = (C = l(N)) == null ? void 0 : C.slice(1, ((ne = l(N)) == null ? void 0 : ne.length) - 1)) == null ? void 0 : he.replace(":", Le).split(Le), ge = (fe = se == null ? void 0 : se[0]) == null ? void 0 : fe.replaceAll("'", ""), U;
|
|
2867
|
+
(Ae = se == null ? void 0 : se[1]) != null && Ae.includes("(") ? (U = (We = ($e = (xe = (Ve = (Ie = (Te = (B = (Ke = l(se)) == null ? void 0 : Ke[1]) == null ? void 0 : B.replaceAll("{", "")) == null ? void 0 : Te.replaceAll("}", "")) == null ? void 0 : Ie.split("(")) == null ? void 0 : Ve[1]) == null ? void 0 : xe.split(")")) == null ? void 0 : $e[0]) == null ? void 0 : We.replaceAll(":", "/").replaceAll("'", ""), (rl = (Ge = l(se)) == null ? void 0 : Ge[1]) != null && rl.includes("[") && (U = l(U) + "[" + ((Dl = (wl = (Cl = (_l = (kl = (Ze = l(se)) == null ? void 0 : Ze[1]) == null ? void 0 : kl.split("[")) == null ? void 0 : _l[1]) == null ? void 0 : Cl.split("]")) == null ? void 0 : wl[0]) == null ? void 0 : Dl.replaceAll("'", "")) + "]")) : U = (Pe = se == null ? void 0 : se[1]) == null ? void 0 : Pe.replaceAll("'", ""), le[ge] = U, o.push(le);
|
|
2868
|
+
});
|
|
2869
|
+
}
|
|
2870
|
+
} else {
|
|
2871
|
+
if (!((D = (c = l(ce)) == null ? void 0 : c[1]) != null && D.includes("[")) && !((z = (I = l(ce)) == null ? void 0 : I[1]) != null && z.includes("("))) {
|
|
2872
|
+
_a((G = l(ce)) == null ? void 0 : G[1].replaceAll("'", '"')) && i.push(JSON.parse((F = l(ce)) == null ? void 0 : F[1].replaceAll("'", '"')));
|
|
2873
|
+
return;
|
|
2874
|
+
}
|
|
2875
|
+
if (((X = (u = l(ce)) == null ? void 0 : u[1]) == null ? void 0 : X[0]) === "[") {
|
|
2876
|
+
let ye = (R = (J = l(ce)) == null ? void 0 : J[1]) == null ? void 0 : R.slice(1, ((Q = (de = l(ce)) == null ? void 0 : de[1]) == null ? void 0 : Q.length) - 1);
|
|
2877
|
+
(j = (K = da(ye)) == null ? void 0 : K.filter((N) => N !== ",")) == null || j.forEach((N) => {
|
|
2878
|
+
var ne, C, he, fe, Ae, Pe, Ke, B, Te, Ie, Ve, xe, $e, We, Ge, rl, Ze, kl, _l, Cl, wl, Dl, Ll, Ol, Vl, Rl, Ul, jl, Pl, Kl, Nl, Ml, Wl;
|
|
2879
|
+
let le = {}, se = (he = (C = l(N)) == null ? void 0 : C.slice(1, ((ne = l(N)) == null ? void 0 : ne.length) - 1)) == null ? void 0 : he.replace(":", Le).split(Le), ge = (fe = se == null ? void 0 : se[0]) == null ? void 0 : fe.replaceAll("'", ""), U;
|
|
2880
|
+
if (!((Ae = se == null ? void 0 : se[1]) != null && Ae.includes("(")))
|
|
2881
|
+
U = (Pe = se == null ? void 0 : se[1]) == null ? void 0 : Pe.replaceAll("'", "");
|
|
2882
|
+
else if (U = (xe = (Ve = (Ie = (Te = (B = (Ke = l(se)) == null ? void 0 : Ke[1]) == null ? void 0 : B.replaceAll("{", "")) == null ? void 0 : Te.replaceAll("}", "")) == null ? void 0 : Ie.replace("(", Le)) == null ? void 0 : Ve.split(Le)) == null ? void 0 : xe[1], U = (We = ($e = rn(l(U), Le)) == null ? void 0 : $e.split(Le)) == null ? void 0 : We[0], !(U != null && U.includes("(")))
|
|
2883
|
+
U = (Ge = l(U)) == null ? void 0 : Ge.replaceAll(":", "/").replaceAll("'", ""), (Ze = (rl = l(se)) == null ? void 0 : rl[1]) != null && Ze.includes("[") && (U = l(U) + "[" + ((Ll = (Dl = (wl = (Cl = (_l = (kl = l(se)) == null ? void 0 : kl[1]) == null ? void 0 : _l.split("[")) == null ? void 0 : Cl[1]) == null ? void 0 : wl.split("]")) == null ? void 0 : Dl[0]) == null ? void 0 : Ll.replaceAll("'", "")) + "]");
|
|
2884
|
+
else {
|
|
2885
|
+
let ul = "";
|
|
2886
|
+
(Ol = Ca(U, ":")) == null || Ol.forEach((il) => {
|
|
2887
|
+
var zl, Jl, Hl, Gl, ql, Ql, Xl, Yl, Zl, ea, la, aa, ia, sa, na;
|
|
2888
|
+
if (!(il != null && il.includes("(")))
|
|
2889
|
+
ul = ul === "" ? ul + ((zl = il == null ? void 0 : il.replaceAll(":", "")) == null ? void 0 : zl.replaceAll("'", "")) : ul + "/" + ((Jl = il == null ? void 0 : il.replaceAll(":", "")) == null ? void 0 : Jl.replaceAll("'", ""));
|
|
2890
|
+
else {
|
|
2891
|
+
let Il = (ea = (Zl = (Yl = (Xl = (Ql = (ql = (Gl = (Hl = l(il)) == null ? void 0 : Hl.replaceAll("{", "")) == null ? void 0 : Gl.replaceAll("}", "")) == null ? void 0 : ql.replace("(", Le)) == null ? void 0 : Ql.split(Le)) == null ? void 0 : Xl[1]) == null ? void 0 : Yl.split(")")) == null ? void 0 : Zl[0]) == null ? void 0 : ea.replaceAll(":", "/").replaceAll("'", "");
|
|
2892
|
+
Il = Il + "[" + ((na = (sa = (ia = (aa = (la = l(il)) == null ? void 0 : la.split("[")) == null ? void 0 : aa[1]) == null ? void 0 : ia.split("]")) == null ? void 0 : sa[0]) == null ? void 0 : na.replaceAll("'", "")) + "]", ul = ul === "" ? ul + "[" + Il + "]" : ul + "/[" + Il + "]";
|
|
2893
|
+
}
|
|
2894
|
+
}), U = ul + "[" + ((Wl = (Ml = (Nl = (Kl = (Rl = (Vl = l(se)) == null ? void 0 : Vl[1]) == null ? void 0 : Rl.split("[")) == null ? void 0 : Kl[((Pl = (jl = (Ul = l(se)) == null ? void 0 : Ul[1]) == null ? void 0 : jl.split("[")) == null ? void 0 : Pl.length) - 1]) == null ? void 0 : Nl.split("]")) == null ? void 0 : Ml[0]) == null ? void 0 : Wl.replaceAll("'", "")) + "]";
|
|
2895
|
+
}
|
|
2896
|
+
le[ge] = U, i.push(le);
|
|
2897
|
+
});
|
|
2898
|
+
} else {
|
|
2899
|
+
let ye = (S = (A = l(ce)) == null ? void 0 : A[1]) == null ? void 0 : S.slice(1, ((ae = (pe = l(ce)) == null ? void 0 : pe[1]) == null ? void 0 : ae.length) - 1), N = {}, le = (d = (a = (H = (v = (g = l(ye)) == null ? void 0 : g.split("]")) == null ? void 0 : v[0]) == null ? void 0 : H.split(":")) == null ? void 0 : a[((e = (Z = (n = (f = l(ye)) == null ? void 0 : f.split("]")) == null ? void 0 : n[0]) == null ? void 0 : Z.split(":")) == null ? void 0 : e.length) - 1]) == null ? void 0 : d.replaceAll("'", ""), se = ((W = (k = (h = l(ye)) == null ? void 0 : h.split("]")) == null ? void 0 : k[0]) == null ? void 0 : W.replaceAll("'", "")) + "]";
|
|
2900
|
+
N[le] = se, i.push(N);
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
}), {
|
|
2904
|
+
output: i,
|
|
2905
|
+
input: o
|
|
2906
|
+
};
|
|
2907
|
+
}, cn = Ia(al), { routeToChildPath: dl } = sl(cn), ca = Oa(al), { activeMenuPath: Bl } = sl(ca), tn = xa(), { loginUserInfo: yl } = sl(tn), dn = async () => {
|
|
2908
|
+
var P, L, w, M, ee, O, ce, ue, Ce, te, ke, T, $, me, t, p, m, b, re, be, De, Fe, _, Y, x, s, c, D, I, z, G, F, u, X, J, de, Q, R, K, j, A, pe, ae, S;
|
|
2909
|
+
let r = "";
|
|
2910
|
+
const V = await gl({
|
|
2911
|
+
key: {
|
|
2912
|
+
type: "structure",
|
|
2913
|
+
pageKey: l(dl).value,
|
|
2914
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
2915
|
+
}
|
|
2916
|
+
});
|
|
2917
|
+
if (((L = (P = V == null ? void 0 : V.data) == null ? void 0 : P.result) == null ? void 0 : L.length) > 0) {
|
|
2918
|
+
let g = (Ce = (ue = (ce = (O = (ee = (M = (w = V == null ? void 0 : V.data) == null ? void 0 : w.result) == null ? void 0 : M[0]) == null ? void 0 : ee.value) == null ? void 0 : O.pageData) == null ? void 0 : ce.compData) == null ? void 0 : ue.find((v) => (v == null ? void 0 : v.key) === "header")) == null ? void 0 : Ce.contents;
|
|
2919
|
+
r = (ke = (te = l(g)) == null ? void 0 : te[0]) == null ? void 0 : ke.label;
|
|
2920
|
+
}
|
|
2921
|
+
let y = Bl.value;
|
|
2922
|
+
($ = Bl.value) != null && $.includes(`updateLoading${(T = yl.value) == null ? void 0 : T.account}`) ? y = l(Bl).value : (t = Bl.value) != null && t.includes(`loading${(me = yl.value) == null ? void 0 : me.account}`) && (y = l(dl).value + `/loading${(p = yl.value) == null ? void 0 : p.account}`);
|
|
2923
|
+
const i = await gl({
|
|
2924
|
+
key: {
|
|
2925
|
+
pageKey: y,
|
|
2926
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
2927
|
+
}
|
|
2928
|
+
});
|
|
2929
|
+
let o = [];
|
|
2930
|
+
if (((b = (m = i == null ? void 0 : i.data) == null ? void 0 : m.result) == null ? void 0 : b.length) > 0) {
|
|
2931
|
+
let g = "", v = [];
|
|
2932
|
+
(be = (re = i == null ? void 0 : i.data) == null ? void 0 : re.result) == null || be.forEach((f) => {
|
|
2933
|
+
var n, Z, e, a, d;
|
|
2934
|
+
((Z = (n = f == null ? void 0 : f.value) == null ? void 0 : n.pageData) == null ? void 0 : Z.comp) === "Form" && ((d = (a = (e = f == null ? void 0 : f.value) == null ? void 0 : e.pageData) == null ? void 0 : a.compData) == null || d.forEach((h) => {
|
|
2935
|
+
(h == null ? void 0 : h.key) === "formContent" && (v = [...v, ...h == null ? void 0 : h.contents]);
|
|
2936
|
+
}));
|
|
2937
|
+
});
|
|
2938
|
+
let H = v == null ? void 0 : v.find((f) => (f == null ? void 0 : f.isMain) === !0);
|
|
2939
|
+
if (H ? (g = H == null ? void 0 : H.value, r = H == null ? void 0 : H.key) : g = (I = (D = (c = (s = (x = (Y = (_ = (Fe = (De = i == null ? void 0 : i.data) == null ? void 0 : De.result) == null ? void 0 : Fe[0]) == null ? void 0 : _.value) == null ? void 0 : Y.pageData) == null ? void 0 : x.compData) == null ? void 0 : s.find((f) => (f == null ? void 0 : f.key) === "formContent")) == null ? void 0 : c.contents) == null ? void 0 : D.find((f) => {
|
|
2940
|
+
var n, Z;
|
|
2941
|
+
return (f == null ? void 0 : f.key) === r || ((Z = (n = f == null ? void 0 : f.optionUrl) == null ? void 0 : n.groupSelect) == null ? void 0 : Z[1]) === r;
|
|
2942
|
+
})) == null ? void 0 : I.value, (G = Bl.value) != null && G.includes(`updateLoading${(z = yl.value) == null ? void 0 : z.account}`)) {
|
|
2943
|
+
let f = [];
|
|
2944
|
+
const n = await gl({
|
|
2945
|
+
key: {
|
|
2946
|
+
pageKey: (Q = Bl.value.split(`/updateLoading${(de = yl.value) == null ? void 0 : de.account}`)) == null ? void 0 : Q[0],
|
|
2947
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
2948
|
+
}
|
|
2949
|
+
});
|
|
2950
|
+
if (((K = (R = n == null ? void 0 : n.data) == null ? void 0 : R.result) == null ? void 0 : K.length) > 0) {
|
|
2951
|
+
let Z = [], e = (j = i == null ? void 0 : i.data) == null ? void 0 : j.result;
|
|
2952
|
+
(A = l(e)) == null || A.forEach((a) => {
|
|
2953
|
+
var d, h, k, W, ye, N, le, se, ge, U, ne, C, he, fe, Ae, Pe, Ke;
|
|
2954
|
+
if (((d = a == null ? void 0 : a.key) == null ? void 0 : d.type) === "structure")
|
|
2955
|
+
if ((k = (h = n == null ? void 0 : n.data) == null ? void 0 : h.result) != null && k.find((B) => {
|
|
2956
|
+
var Te, Ie, Ve, xe;
|
|
2957
|
+
return ((Ie = (Te = B == null ? void 0 : B.value) == null ? void 0 : Te.pageData) == null ? void 0 : Ie.name) === ((xe = (Ve = a == null ? void 0 : a.value) == null ? void 0 : Ve.pageData) == null ? void 0 : xe.name);
|
|
2958
|
+
})) {
|
|
2959
|
+
let B = a == null ? void 0 : a.key;
|
|
2960
|
+
B.pageKey = l(dl).value + "/" + g, o.push({
|
|
2961
|
+
id: (N = (ye = (W = n == null ? void 0 : n.data) == null ? void 0 : W.result) == null ? void 0 : ye.find((Te) => {
|
|
2962
|
+
var Ie, Ve, xe, $e;
|
|
2963
|
+
return ((Ve = (Ie = Te == null ? void 0 : Te.value) == null ? void 0 : Ie.pageData) == null ? void 0 : Ve.name) === (($e = (xe = a == null ? void 0 : a.value) == null ? void 0 : xe.pageData) == null ? void 0 : $e.name);
|
|
2964
|
+
})) == null ? void 0 : N.id,
|
|
2965
|
+
key: B,
|
|
2966
|
+
value: a == null ? void 0 : a.value
|
|
2967
|
+
});
|
|
2968
|
+
} else {
|
|
2969
|
+
let B = a == null ? void 0 : a.key;
|
|
2970
|
+
B.pageKey = l(dl).value + "/" + g, f.push({
|
|
2971
|
+
key: B,
|
|
2972
|
+
value: a == null ? void 0 : a.value
|
|
2973
|
+
});
|
|
2974
|
+
}
|
|
2975
|
+
else {
|
|
2976
|
+
let B = (ge = (se = (le = n == null ? void 0 : n.data) == null ? void 0 : le.result) == null ? void 0 : se.filter((xe) => {
|
|
2977
|
+
var $e;
|
|
2978
|
+
return (($e = xe == null ? void 0 : xe.key) == null ? void 0 : $e.type) === "data";
|
|
2979
|
+
})) == null ? void 0 : ge.map((xe) => xe == null ? void 0 : xe.id);
|
|
2980
|
+
Z = [...Z, ...B];
|
|
2981
|
+
let Te = (he = (C = (ne = (U = l(e)) == null ? void 0 : U.find((xe) => {
|
|
2982
|
+
var $e;
|
|
2983
|
+
return (($e = a == null ? void 0 : a.key) == null ? void 0 : $e.tableId) === (xe == null ? void 0 : xe.id);
|
|
2984
|
+
})) == null ? void 0 : ne.value) == null ? void 0 : C.pageData) == null ? void 0 : he.name, Ie = (Pe = (Ae = (fe = n == null ? void 0 : n.data) == null ? void 0 : fe.result) == null ? void 0 : Ae.find((xe) => {
|
|
2985
|
+
var $e, We;
|
|
2986
|
+
return ((We = ($e = xe == null ? void 0 : xe.value) == null ? void 0 : $e.pageData) == null ? void 0 : We.name) === Te;
|
|
2987
|
+
})) == null ? void 0 : Pe.id, Ve = (Ke = l(a)) == null ? void 0 : Ke.key;
|
|
2988
|
+
Ve.tableId = Ie, Ve.pageKey = l(dl).value + "/" + g, f.push({
|
|
2989
|
+
key: Ve,
|
|
2990
|
+
value: a == null ? void 0 : a.value
|
|
2991
|
+
});
|
|
2992
|
+
}
|
|
2993
|
+
}), (Z == null ? void 0 : Z.length) > 0 && (Z = [...new Set(Z)], await Ua({
|
|
2994
|
+
ids: Z
|
|
2995
|
+
})), (ae = (pe = i == null ? void 0 : i.data) == null ? void 0 : pe.result) == null || ae.forEach((a) => {
|
|
2996
|
+
var h, k;
|
|
2997
|
+
let d = (h = l(a)) == null ? void 0 : h.key;
|
|
2998
|
+
d.pageKey = l(dl).value + "/" + g + `/updateLoading${(k = yl.value) == null ? void 0 : k.account}`, ca.setChildMenu(d.pageKey), o.push({
|
|
2999
|
+
id: a == null ? void 0 : a.id,
|
|
3000
|
+
key: d
|
|
3001
|
+
});
|
|
3002
|
+
});
|
|
3003
|
+
}
|
|
3004
|
+
if (g === "") {
|
|
3005
|
+
ol.error(`保存失败,${r}的必填字段没有填写`);
|
|
3006
|
+
return;
|
|
3007
|
+
}
|
|
3008
|
+
(o == null ? void 0 : o.length) > 0 && (await ka({
|
|
3009
|
+
dataList: o
|
|
3010
|
+
}), (f == null ? void 0 : f.length) > 0 && ja({
|
|
3011
|
+
dataList: f
|
|
3012
|
+
}), ol.success("保存成功"), ca.setActiveMenuPath(l(dl).value + "/" + g + `/updateLoading${(S = yl.value) == null ? void 0 : S.account}`));
|
|
3013
|
+
} else {
|
|
3014
|
+
if ((u = (F = i == null ? void 0 : i.data) == null ? void 0 : F.result) == null || u.forEach((f) => {
|
|
3015
|
+
var Z;
|
|
3016
|
+
let n = (Z = l(f)) == null ? void 0 : Z.key;
|
|
3017
|
+
n.pageKey = l(dl).value + "/" + g, ca.setChildMenu(n.pageKey), o.push({
|
|
3018
|
+
id: f == null ? void 0 : f.id,
|
|
3019
|
+
key: n
|
|
3020
|
+
});
|
|
3021
|
+
}), g === "") {
|
|
3022
|
+
ol.error(`保存失败,${r}的必填字段没有填写`);
|
|
3023
|
+
return;
|
|
3024
|
+
}
|
|
3025
|
+
await ka({
|
|
3026
|
+
dataList: o
|
|
3027
|
+
}), ol.success("保存成功"), await pi(l(dl).value + "/" + g, l(dl).value + "/" + g + `/updateLoading${(X = yl.value) == null ? void 0 : X.account}`), ca.setActiveMenuPath(l(dl).value + "/" + g + `/updateLoading${(J = yl.value) == null ? void 0 : J.account}`);
|
|
3028
|
+
}
|
|
3029
|
+
}
|
|
3030
|
+
}, pn = {
|
|
3031
|
+
key: 0,
|
|
3032
|
+
class: "method-content"
|
|
3033
|
+
}, fn = {
|
|
3034
|
+
__name: "index",
|
|
3035
|
+
props: {
|
|
3036
|
+
itemData: {
|
|
3037
|
+
type: Array,
|
|
3038
|
+
default: () => []
|
|
3039
|
+
},
|
|
3040
|
+
childItemData: {
|
|
3041
|
+
type: Array,
|
|
3042
|
+
default: () => []
|
|
3043
|
+
},
|
|
3044
|
+
index: Number,
|
|
3045
|
+
changedContent: {
|
|
3046
|
+
type: Object,
|
|
3047
|
+
default: () => {
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
},
|
|
3051
|
+
setup(r) {
|
|
3052
|
+
const V = q([]), y = r, i = q(!1), o = q(), P = Ia(al), L = q(!1), w = Oa(al), M = xa(al), { itemData: ee, isEdit: O, routeToChildPath: ce } = sl(P), { activeMenuPath: ue, platform: Ce, childMenu: te } = sl(w), { loginUserInfo: ke } = sl(M), T = q(!1), $ = (_, Y) => {
|
|
3053
|
+
const x = Y;
|
|
3054
|
+
return _ == null ? void 0 : _.map((s) => {
|
|
3055
|
+
var c;
|
|
3056
|
+
return s = (c = s == null ? void 0 : s.map((D, I) => {
|
|
3057
|
+
var z;
|
|
3058
|
+
return {
|
|
3059
|
+
key: (z = x[I]) == null ? void 0 : z.label,
|
|
3060
|
+
value: D
|
|
3061
|
+
};
|
|
3062
|
+
})) == null ? void 0 : c.filter((D) => D.key !== "操作"), s;
|
|
3063
|
+
});
|
|
3064
|
+
}, me = async () => {
|
|
3065
|
+
var _, Y;
|
|
3066
|
+
(_ = V.value) != null && _.find((x) => (x == null ? void 0 : x.buttonName) === "保存") && await De((Y = V.value) == null ? void 0 : Y.find((x) => (x == null ? void 0 : x.buttonName) === "保存")), await dn();
|
|
3067
|
+
};
|
|
3068
|
+
Ye(
|
|
3069
|
+
() => ee.value,
|
|
3070
|
+
async () => {
|
|
3071
|
+
O.value === "view" && !T.value && await Fe(l(y.itemData)), T.value = !1;
|
|
3072
|
+
},
|
|
3073
|
+
{ deep: !0 }
|
|
3074
|
+
);
|
|
3075
|
+
const t = () => {
|
|
3076
|
+
i.value = !1, o.value = void 0;
|
|
3077
|
+
}, p = (_, Y) => {
|
|
3078
|
+
var s, c, D, I, z, G, F, u, X, J, de, Q;
|
|
3079
|
+
let x = (s = l(Y)) == null ? void 0 : s.filter((R) => (R == null ? void 0 : R.comp) !== "methodButton");
|
|
3080
|
+
if (_ != null && _.includes("[")) {
|
|
3081
|
+
let R = (G = (z = (I = (D = (c = l(_)) == null ? void 0 : c.split("[")) == null ? void 0 : D[1]) == null ? void 0 : I.split("]")) == null ? void 0 : z[0]) == null ? void 0 : G.split(":"), K = "";
|
|
3082
|
+
if (R != null && R[0]) {
|
|
3083
|
+
let j = (F = x == null ? void 0 : x.find((A) => (A == null ? void 0 : A.name) === (R == null ? void 0 : R[0]))) == null ? void 0 : F.compData;
|
|
3084
|
+
j == null || j.forEach((A) => {
|
|
3085
|
+
var pe, ae, S, g, v;
|
|
3086
|
+
if ((A == null ? void 0 : A.key) === "formContent")
|
|
3087
|
+
(pe = A == null ? void 0 : A.contents) == null || pe.forEach((H) => {
|
|
3088
|
+
(H == null ? void 0 : H.key) === (R == null ? void 0 : R[1]) && (K = H == null ? void 0 : H.value.toString());
|
|
3089
|
+
});
|
|
3090
|
+
else if ((A == null ? void 0 : A.key) === "tableContents") {
|
|
3091
|
+
let H = [], f = (g = (S = (ae = j == null ? void 0 : j.find((n) => (n == null ? void 0 : n.key) === "header")) == null ? void 0 : ae.contents) == null ? void 0 : S.map((n) => n == null ? void 0 : n.label)) == null ? void 0 : g.filter((n) => n !== "操作");
|
|
3092
|
+
(v = A.contents) == null || v.forEach((n) => {
|
|
3093
|
+
let Z = {};
|
|
3094
|
+
n = n == null ? void 0 : n.filter((e) => !(e != null && e.id)), f == null || f.forEach((e, a) => {
|
|
3095
|
+
Z[e] = n[a];
|
|
3096
|
+
}), H.push(Z);
|
|
3097
|
+
}), K = H;
|
|
3098
|
+
}
|
|
3099
|
+
});
|
|
3100
|
+
}
|
|
3101
|
+
return K;
|
|
3102
|
+
} else if (_ != null && _.includes("/")) {
|
|
3103
|
+
let R = {};
|
|
3104
|
+
return (u = l(x)) == null || u.forEach((K, j) => {
|
|
3105
|
+
var A, pe, ae, S, g, v, H, f, n, Z, e, a, d, h, k, W, ye, N, le;
|
|
3106
|
+
if ((K == null ? void 0 : K.comp) === "Table") {
|
|
3107
|
+
let se = Array.isArray((ae = (pe = (A = K == null ? void 0 : K.compData) == null ? void 0 : A.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : pe.contents) == null ? void 0 : ae[0]) ? (H = (v = (g = (S = K == null ? void 0 : K.compData) == null ? void 0 : S.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : g.contents) == null ? void 0 : v[0]) == null ? void 0 : H.some((C) => C == null ? void 0 : C.children) : [], ge = (Z = (n = (f = K == null ? void 0 : K.compData) == null ? void 0 : f.find((C) => (C == null ? void 0 : C.key) === "tableContents")) == null ? void 0 : n.contents) == null ? void 0 : Z.map((C) => C.slice(1)), U = (k = (h = (d = (a = (e = K == null ? void 0 : K.compData) == null ? void 0 : e.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : a.contents) == null ? void 0 : d[0]) == null ? void 0 : h[0]) == null ? void 0 : k.label, ne = (ye = (W = K == null ? void 0 : K.compData) == null ? void 0 : W.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : ye.contents;
|
|
3108
|
+
if (se)
|
|
3109
|
+
(se == null ? void 0 : se.length) === 0 ? R[K.name] = $(ge, ne) : R[U] = $(ge, ne);
|
|
3110
|
+
else {
|
|
3111
|
+
const C = [];
|
|
3112
|
+
ne = ne.slice(1, ne.length - 1), ne == null || ne.forEach((he, fe) => {
|
|
3113
|
+
ge == null || ge.forEach((Ae) => {
|
|
3114
|
+
C.push({
|
|
3115
|
+
key: he.label + Ae[0],
|
|
3116
|
+
value: Ae[fe + 1]
|
|
3117
|
+
});
|
|
3118
|
+
});
|
|
3119
|
+
}), R["form" + j] = C;
|
|
3120
|
+
}
|
|
3121
|
+
} else {
|
|
3122
|
+
const se = (le = (N = K.compData) == null ? void 0 : N.find((U) => (U == null ? void 0 : U.key) === "formContent")) == null ? void 0 : le.contents;
|
|
3123
|
+
R != null && R.form || (R.form = []);
|
|
3124
|
+
const ge = [];
|
|
3125
|
+
se == null || se.forEach((U) => {
|
|
3126
|
+
U.key !== "" && (U = {
|
|
3127
|
+
key: (U == null ? void 0 : U.key) ?? (U == null ? void 0 : U.label),
|
|
3128
|
+
value: U == null ? void 0 : U.value
|
|
3129
|
+
}, ge.push(U));
|
|
3130
|
+
}), R.form = [...ge, ...l(R == null ? void 0 : R.form)];
|
|
3131
|
+
}
|
|
3132
|
+
}), R;
|
|
3133
|
+
} else {
|
|
3134
|
+
if (_ === "createInsofDataApi") {
|
|
3135
|
+
let R = (X = l(Y)) == null ? void 0 : X[0];
|
|
3136
|
+
return R = {
|
|
3137
|
+
comp: (J = l(R)) == null ? void 0 : J.comp,
|
|
3138
|
+
compData: (de = l(R)) == null ? void 0 : de.compData,
|
|
3139
|
+
name: (Q = l(R)) == null ? void 0 : Q.name
|
|
3140
|
+
}, {
|
|
3141
|
+
key: {
|
|
3142
|
+
type: "structure",
|
|
3143
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3144
|
+
parentTable: "",
|
|
3145
|
+
pageKey: ue.value
|
|
3146
|
+
},
|
|
3147
|
+
value: {
|
|
3148
|
+
pageData: R
|
|
3149
|
+
}
|
|
3150
|
+
};
|
|
3151
|
+
}
|
|
3152
|
+
return _;
|
|
3153
|
+
}
|
|
3154
|
+
}, m = async (_, Y, x) => {
|
|
3155
|
+
var D, I;
|
|
3156
|
+
let s = await hl(Y, sessionStorage.getItem("systemKey"), ""), c = s == null ? void 0 : s.find((z) => (z == null ? void 0 : z.name) === (x == null ? void 0 : x[0]));
|
|
3157
|
+
if (c) {
|
|
3158
|
+
if ((c == null ? void 0 : c.comp) === "Table") {
|
|
3159
|
+
let z = {};
|
|
3160
|
+
for (let Q in l(_))
|
|
3161
|
+
l(_)[Q] !== "loginUser" ? z[Q] = l(_)[Q] : z[Q] = (D = ke.value) == null ? void 0 : D.account;
|
|
3162
|
+
let G = [], F = z;
|
|
3163
|
+
Array.isArray(_) || (F = [z]), F == null || F.forEach((Q) => {
|
|
3164
|
+
G.push({
|
|
3165
|
+
[Q[x[1]]]: Q
|
|
3166
|
+
});
|
|
3167
|
+
});
|
|
3168
|
+
let u = [], X = G == null ? void 0 : G.map((Q) => {
|
|
3169
|
+
var R;
|
|
3170
|
+
return (R = Object.keys(Q)) == null ? void 0 : R[0];
|
|
3171
|
+
});
|
|
3172
|
+
s == null || s.forEach((Q) => {
|
|
3173
|
+
var R;
|
|
3174
|
+
(Q == null ? void 0 : Q.name) === (x == null ? void 0 : x[0]) && ((R = Q == null ? void 0 : Q.compData) == null || R.forEach((K) => {
|
|
3175
|
+
var j;
|
|
3176
|
+
(K == null ? void 0 : K.key) === "tableContents" && ((j = K == null ? void 0 : K.contents) == null || j.forEach((A) => {
|
|
3177
|
+
A != null && A.some((pe) => X.includes(pe)) && u.push({
|
|
3178
|
+
[A.find((pe) => pe.id).id]: A.find((pe) => X.includes(pe))
|
|
3179
|
+
});
|
|
3180
|
+
}));
|
|
3181
|
+
}));
|
|
3182
|
+
});
|
|
3183
|
+
let J = u == null ? void 0 : u.map((Q) => {
|
|
3184
|
+
var R;
|
|
3185
|
+
return (R = Object.keys(Q)) == null ? void 0 : R[0];
|
|
3186
|
+
}), de = [];
|
|
3187
|
+
if (J == null || J.forEach((Q) => {
|
|
3188
|
+
var j;
|
|
3189
|
+
let R = (j = u == null ? void 0 : u.find((A) => {
|
|
3190
|
+
var pe;
|
|
3191
|
+
return ((pe = Object.keys(A)) == null ? void 0 : pe[0].toString()) === Q.toString();
|
|
3192
|
+
})) == null ? void 0 : j[Q], K = G == null ? void 0 : G.find((A) => {
|
|
3193
|
+
var pe;
|
|
3194
|
+
return ((pe = Object.keys(A)) == null ? void 0 : pe[0]) === R;
|
|
3195
|
+
});
|
|
3196
|
+
de.push({
|
|
3197
|
+
id: parseInt(Q),
|
|
3198
|
+
value: {
|
|
3199
|
+
tableData: K[R]
|
|
3200
|
+
}
|
|
3201
|
+
});
|
|
3202
|
+
}), (de == null ? void 0 : de.length) > 0)
|
|
3203
|
+
return de;
|
|
3204
|
+
} else if ((c == null ? void 0 : c.comp) === "Form") {
|
|
3205
|
+
let z = l(c);
|
|
3206
|
+
z.compData = (I = z.compData) == null ? void 0 : I.map((u) => {
|
|
3207
|
+
var X;
|
|
3208
|
+
return (u == null ? void 0 : u.key) === "formContent" && (u.contents = (X = u.contents) == null ? void 0 : X.map((J) => ((J == null ? void 0 : J.key) === (x == null ? void 0 : x[1]) && (J.value = _), J))), u;
|
|
3209
|
+
});
|
|
3210
|
+
let G = {};
|
|
3211
|
+
for (let u in z)
|
|
3212
|
+
u !== "id" && (G[u] = z[u]);
|
|
3213
|
+
let F = [];
|
|
3214
|
+
if (F.push({
|
|
3215
|
+
id: c == null ? void 0 : c.id,
|
|
3216
|
+
keyType: x == null ? void 0 : x[1],
|
|
3217
|
+
// key: {
|
|
3218
|
+
// type: "structure",
|
|
3219
|
+
// pageKey: path,
|
|
3220
|
+
// systemKey: sessionStorage.getItem('systemKey'),
|
|
3221
|
+
// parentTable: "",
|
|
3222
|
+
// parentPageKey: ""
|
|
3223
|
+
// },
|
|
3224
|
+
value: {
|
|
3225
|
+
pageData: G
|
|
3226
|
+
}
|
|
3227
|
+
}), (F == null ? void 0 : F.length) > 0)
|
|
3228
|
+
return F;
|
|
3229
|
+
}
|
|
3230
|
+
}
|
|
3231
|
+
}, b = async (_, Y, x) => {
|
|
3232
|
+
var D, I, z, G, F, u, X, J, de;
|
|
3233
|
+
let s = await hl(Y, sessionStorage.getItem("systemKey"), ""), c = s == null ? void 0 : s.find((Q) => (Q == null ? void 0 : Q.name) === (x == null ? void 0 : x[0]));
|
|
3234
|
+
if (c) {
|
|
3235
|
+
if ((c == null ? void 0 : c.comp) === "Table") {
|
|
3236
|
+
let Q = {};
|
|
3237
|
+
for (let R in l(_))
|
|
3238
|
+
l(_)[R] !== "loginUser" ? Q[R] = l(_)[R] : Q[R] = (D = ke.value) == null ? void 0 : D.account;
|
|
3239
|
+
await ci({
|
|
3240
|
+
key: {
|
|
3241
|
+
type: "data",
|
|
3242
|
+
pageKey: Y,
|
|
3243
|
+
tableId: c == null ? void 0 : c.id,
|
|
3244
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3245
|
+
},
|
|
3246
|
+
value: {
|
|
3247
|
+
tableData: Q
|
|
3248
|
+
}
|
|
3249
|
+
});
|
|
3250
|
+
} else if ((c == null ? void 0 : c.comp) === "Form") {
|
|
3251
|
+
let Q = l(c), R = Object.keys(_), K = "";
|
|
3252
|
+
(z = (I = l(Q)) == null ? void 0 : I.compData) == null || z.forEach((g) => {
|
|
3253
|
+
var v, H;
|
|
3254
|
+
(g == null ? void 0 : g.key) === "formContent" && ((H = (v = l(g)) == null ? void 0 : v.contents) == null || H.forEach((f) => {
|
|
3255
|
+
var n;
|
|
3256
|
+
R.includes(f == null ? void 0 : f.key) && (f == null ? void 0 : f.value) === ((n = ke.value) == null ? void 0 : n.姓名) && (K = f == null ? void 0 : f.key);
|
|
3257
|
+
}));
|
|
3258
|
+
});
|
|
3259
|
+
let j = [];
|
|
3260
|
+
(G = Object.values(_[K])) == null || G.forEach((g) => {
|
|
3261
|
+
g != null && g.includes("(") && j.push(g);
|
|
3262
|
+
}), j = [...new Set(j)];
|
|
3263
|
+
const A = j == null ? void 0 : j.map(async (g) => {
|
|
3264
|
+
var Z, e, a, d, h, k, W, ye, N, le, se, ge;
|
|
3265
|
+
let v = "";
|
|
3266
|
+
(k = (h = (d = (a = (e = (Z = l(g)) == null ? void 0 : Z.split("(")) == null ? void 0 : e[1]) == null ? void 0 : a.split(")")) == null ? void 0 : d[0]) == null ? void 0 : h.split(":")) == null || k.forEach((U) => {
|
|
3267
|
+
v = v === "" ? v + U.replaceAll("'", "") : v + "/" + U.replaceAll("'", "");
|
|
3268
|
+
});
|
|
3269
|
+
let H = [];
|
|
3270
|
+
(ge = (se = (le = (N = (ye = (W = l(g)) == null ? void 0 : W.split("<")) == null ? void 0 : ye[1]) == null ? void 0 : N.split(">")) == null ? void 0 : le[0]) == null ? void 0 : se.split(":")) == null || ge.forEach((U) => {
|
|
3271
|
+
H.push(U.replaceAll("'", ""));
|
|
3272
|
+
});
|
|
3273
|
+
const f = await hl(v, sessionStorage.getItem("systemKey"), "");
|
|
3274
|
+
let n = "";
|
|
3275
|
+
return f == null || f.forEach((U) => {
|
|
3276
|
+
var ne;
|
|
3277
|
+
U.name === (H == null ? void 0 : H[0]) && ((ne = U == null ? void 0 : U.compData) == null || ne.forEach((C) => {
|
|
3278
|
+
var he;
|
|
3279
|
+
(C == null ? void 0 : C.key) === "formContent" && ((he = C.contents) == null || he.forEach((fe) => {
|
|
3280
|
+
(fe == null ? void 0 : fe.key) === (H == null ? void 0 : H[1]) && (n = fe == null ? void 0 : fe.value);
|
|
3281
|
+
}));
|
|
3282
|
+
}));
|
|
3283
|
+
}), {
|
|
3284
|
+
[g]: n
|
|
3285
|
+
};
|
|
3286
|
+
}), pe = await Promise.all(A);
|
|
3287
|
+
Q.compData = (u = (F = l(Q)) == null ? void 0 : F.compData) == null ? void 0 : u.map((g) => {
|
|
3288
|
+
var v, H;
|
|
3289
|
+
return (g == null ? void 0 : g.key) === "formContent" && (g.contents = (H = (v = l(g)) == null ? void 0 : v.contents) == null ? void 0 : H.map((f) => {
|
|
3290
|
+
var n, Z, e, a;
|
|
3291
|
+
return (n = _[K]) != null && n[f == null ? void 0 : f.key] && (_[K][f == null ? void 0 : f.key].includes("(") ? f.value = (Z = pe == null ? void 0 : pe.find((d) => {
|
|
3292
|
+
var h;
|
|
3293
|
+
return ((h = Object.keys(d)) == null ? void 0 : h[0]) === _[K][f == null ? void 0 : f.key];
|
|
3294
|
+
})) == null ? void 0 : Z[_[K][f == null ? void 0 : f.key]] : f.value = (a = (e = l(_)) == null ? void 0 : e[K]) == null ? void 0 : a[f == null ? void 0 : f.key]), f;
|
|
3295
|
+
})), g;
|
|
3296
|
+
});
|
|
3297
|
+
const ae = await gl({
|
|
3298
|
+
key: {
|
|
3299
|
+
type: "structure",
|
|
3300
|
+
pageKey: Y,
|
|
3301
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3302
|
+
}
|
|
3303
|
+
});
|
|
3304
|
+
let S = "";
|
|
3305
|
+
((X = ae == null ? void 0 : ae.data) == null ? void 0 : X.type) === "success" && ((de = (J = ae == null ? void 0 : ae.data) == null ? void 0 : J.result) == null || de.forEach((g) => {
|
|
3306
|
+
var v, H;
|
|
3307
|
+
((H = (v = g == null ? void 0 : g.value) == null ? void 0 : v.pageData) == null ? void 0 : H.name) === (x == null ? void 0 : x[0]) && (S = g.id);
|
|
3308
|
+
}), await ya({
|
|
3309
|
+
id: S,
|
|
3310
|
+
value: {
|
|
3311
|
+
pageData: Q
|
|
3312
|
+
}
|
|
3313
|
+
}));
|
|
3314
|
+
}
|
|
3315
|
+
}
|
|
3316
|
+
}, re = async (_, Y, x) => {
|
|
3317
|
+
var D, I, z, G, F, u, X, J, de, Q, R, K, j, A;
|
|
3318
|
+
let s = await hl(Y, sessionStorage.getItem("systemKey"), ""), c = s == null ? void 0 : s.find((pe) => (pe == null ? void 0 : pe.name) === (x == null ? void 0 : x[0]));
|
|
3319
|
+
if (c) {
|
|
3320
|
+
if (!(x != null && x[1]) && (c == null ? void 0 : c.comp) === "Table") {
|
|
3321
|
+
let pe = {}, ae = (z = (I = (D = c == null ? void 0 : c.compData) == null ? void 0 : D.find((v) => (v == null ? void 0 : v.key) === "header")) == null ? void 0 : I.contents) == null ? void 0 : z.map((v) => v == null ? void 0 : v.label);
|
|
3322
|
+
for (let v in l(_))
|
|
3323
|
+
if (l(_)[v] !== "loginUser") {
|
|
3324
|
+
let H = l(_)[v], f = {};
|
|
3325
|
+
for (let n in H)
|
|
3326
|
+
if (ae != null && ae.find((Z) => Z === n))
|
|
3327
|
+
f[n] = H[n];
|
|
3328
|
+
else {
|
|
3329
|
+
let Z = ae == null ? void 0 : ae.find((e) => (e == null ? void 0 : e.toUpperCase()) === (n == null ? void 0 : n.toUpperCase()));
|
|
3330
|
+
f[Z] = H[n];
|
|
3331
|
+
}
|
|
3332
|
+
pe[v] = f;
|
|
3333
|
+
} else
|
|
3334
|
+
pe[v] = (G = ke.value) == null ? void 0 : G.account;
|
|
3335
|
+
let S = await gl({
|
|
3336
|
+
keyLikes: {
|
|
3337
|
+
tableId: c == null ? void 0 : c.id
|
|
3338
|
+
}
|
|
3339
|
+
});
|
|
3340
|
+
if (((u = (F = S == null ? void 0 : S.data) == null ? void 0 : F.result) == null ? void 0 : u.length) > 0) {
|
|
3341
|
+
let v = (J = (X = S == null ? void 0 : S.data) == null ? void 0 : X.result) == null ? void 0 : J.map((H) => H == null ? void 0 : H.id);
|
|
3342
|
+
(v == null ? void 0 : v.length) > 0 && await Ua({
|
|
3343
|
+
ids: v
|
|
3344
|
+
});
|
|
3345
|
+
}
|
|
3346
|
+
let g = [];
|
|
3347
|
+
(de = Object.values(pe)) == null || de.forEach((v) => {
|
|
3348
|
+
g.push({
|
|
3349
|
+
key: {
|
|
3350
|
+
type: "data",
|
|
3351
|
+
pageKey: Y,
|
|
3352
|
+
tableId: c == null ? void 0 : c.id,
|
|
3353
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3354
|
+
},
|
|
3355
|
+
value: {
|
|
3356
|
+
tableData: v
|
|
3357
|
+
}
|
|
3358
|
+
});
|
|
3359
|
+
}), (g == null ? void 0 : g.length) > 0 && await ja({
|
|
3360
|
+
datalist: g
|
|
3361
|
+
});
|
|
3362
|
+
} else if (!(x != null && x[1]) && (c == null ? void 0 : c.comp) === "Form") {
|
|
3363
|
+
let pe = l(c);
|
|
3364
|
+
pe.compData = (R = (Q = l(pe)) == null ? void 0 : Q.compData) == null ? void 0 : R.map((g) => {
|
|
3365
|
+
var v, H;
|
|
3366
|
+
return (g == null ? void 0 : g.key) === "formContent" && (g.contents = (H = (v = l(g)) == null ? void 0 : v.contents) == null ? void 0 : H.map((f) => {
|
|
3367
|
+
var n, Z;
|
|
3368
|
+
return (n = l(_)) != null && n[f == null ? void 0 : f.key] && (f.value = (Z = l(_)) == null ? void 0 : Z[f == null ? void 0 : f.key]), f;
|
|
3369
|
+
})), g;
|
|
3370
|
+
});
|
|
3371
|
+
const ae = await gl({
|
|
3372
|
+
key: {
|
|
3373
|
+
type: "structure",
|
|
3374
|
+
pageKey: Y,
|
|
3375
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3376
|
+
}
|
|
3377
|
+
});
|
|
3378
|
+
let S = "";
|
|
3379
|
+
((K = ae == null ? void 0 : ae.data) == null ? void 0 : K.type) === "success" && ((A = (j = ae == null ? void 0 : ae.data) == null ? void 0 : j.result) == null || A.forEach((g) => {
|
|
3380
|
+
var v, H;
|
|
3381
|
+
((H = (v = g == null ? void 0 : g.value) == null ? void 0 : v.pageData) == null ? void 0 : H.name) === (x == null ? void 0 : x[0]) && (S = g.id);
|
|
3382
|
+
}), await ya({
|
|
3383
|
+
id: S,
|
|
3384
|
+
value: {
|
|
3385
|
+
pageData: pe
|
|
3386
|
+
}
|
|
3387
|
+
}));
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
}, be = ["createInsofDataApi"], De = async (_) => {
|
|
3391
|
+
var Y, x, s, c, D, I, z, G, F, u, X, J, de;
|
|
3392
|
+
if (w.setImportLoading(!0), _.api) {
|
|
3393
|
+
let Q = await hl((te == null ? void 0 : te.value) === "" ? ue.value : te == null ? void 0 : te.value, sessionStorage.getItem("systemKey"), ""), R = {};
|
|
3394
|
+
(x = (Y = _ == null ? void 0 : _.extraValues) == null ? void 0 : Y.input) == null || x.forEach((g) => {
|
|
3395
|
+
var v;
|
|
3396
|
+
be != null && be.find((H) => H === g) ? R = p(g, Q) : R[Object.keys(g)[0]] = p((v = Object.values(g)) == null ? void 0 : v[0], Q);
|
|
3397
|
+
});
|
|
3398
|
+
let K = !1;
|
|
3399
|
+
(c = (s = _ == null ? void 0 : _.extraValues) == null ? void 0 : s.output) == null || c.forEach((g) => {
|
|
3400
|
+
var v, H;
|
|
3401
|
+
(H = (v = Object.values(g)) == null ? void 0 : v[0]) != null && H.includes(".doc") && (K = !0);
|
|
3402
|
+
});
|
|
3403
|
+
let j;
|
|
3404
|
+
K ? j = await ba.post(_.api, R, {
|
|
3405
|
+
responseType: "blob",
|
|
3406
|
+
// 必须设置
|
|
3407
|
+
headers: {
|
|
3408
|
+
"Content-Type": "application/json"
|
|
3409
|
+
}
|
|
3410
|
+
}) : j = await ba.post(_.api, R, {
|
|
3411
|
+
headers: {
|
|
3412
|
+
"Content-Type": "application/json"
|
|
3413
|
+
}
|
|
3414
|
+
});
|
|
3415
|
+
let A = (G = (z = (I = (D = l(_)) == null ? void 0 : D.extraValues) == null ? void 0 : I.output) == null ? void 0 : z.map((g) => {
|
|
3416
|
+
var v, H, f, n, Z, e, a, d, h, k, W, ye, N, le, se, ge;
|
|
3417
|
+
if (!((H = (v = Object.values(g)) == null ? void 0 : v[0]) != null && H.includes(".doc"))) {
|
|
3418
|
+
let U = (k = (h = (d = (n = l((f = Object.values(g)) == null ? void 0 : f[0])) == null ? void 0 : n.split("[")) == null ? void 0 : d[((a = (e = l((Z = Object.values(g)) == null ? void 0 : Z[0])) == null ? void 0 : e.split("[")) == null ? void 0 : a.length) - 1]) == null ? void 0 : h.split("]")) == null ? void 0 : k[0];
|
|
3419
|
+
U == null || U.split(":");
|
|
3420
|
+
let ne = (N = l((W = Object.values(g)) == null ? void 0 : W[0])) == null ? void 0 : N.substring(0, l((ye = Object.values(g)) == null ? void 0 : ye[0]).lastIndexOf("["));
|
|
3421
|
+
if (ne = (se = l(ne)) == null ? void 0 : se.slice(0, ((le = l(ne)) == null ? void 0 : le.length) - 1), ne != null && ne.includes("[")) {
|
|
3422
|
+
let C = "";
|
|
3423
|
+
if ((ge = Ca(ne, "/")) == null || ge.forEach((he) => {
|
|
3424
|
+
var fe, Ae, Pe, Ke, B, Te, Ie;
|
|
3425
|
+
if (!(he != null && he.includes("[")))
|
|
3426
|
+
C = C === "" ? C + he.replaceAll("/", "") : C + "/" + he.replaceAll("/", "");
|
|
3427
|
+
else {
|
|
3428
|
+
let Ve = l(he).slice(1, ((fe = l(he)) == null ? void 0 : fe.length) - 1), xe = (Te = (B = (Ke = (Pe = (Ae = l(Ve)) == null ? void 0 : Ae.split("[")) == null ? void 0 : Pe[1]) == null ? void 0 : Ke.split("]")) == null ? void 0 : B[0]) == null ? void 0 : Te.split(":"), $e = "", We = (Ie = Q == null ? void 0 : Q.find((Ge) => (Ge == null ? void 0 : Ge.name) === (xe == null ? void 0 : xe[0]))) == null ? void 0 : Ie.compData;
|
|
3429
|
+
We == null || We.forEach((Ge) => {
|
|
3430
|
+
var rl;
|
|
3431
|
+
(Ge == null ? void 0 : Ge.key) === "formContent" && ((rl = Ge == null ? void 0 : Ge.contents) == null || rl.forEach((Ze) => {
|
|
3432
|
+
(Ze == null ? void 0 : Ze.key) === (xe == null ? void 0 : xe[1]) && ($e = Ze == null ? void 0 : Ze.value);
|
|
3433
|
+
}));
|
|
3434
|
+
}), C = C === "" ? C + $e.replaceAll("/", "") : C + "/" + $e.replaceAll("/", "");
|
|
3435
|
+
}
|
|
3436
|
+
}), ne = C, ne[(ne == null ? void 0 : ne.length) - 1] !== "/")
|
|
3437
|
+
return ne;
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
})) == null ? void 0 : G.filter((g) => g);
|
|
3441
|
+
A = [...new Set(l(A))];
|
|
3442
|
+
let pe = A == null ? void 0 : A.map(async (g) => {
|
|
3443
|
+
let v = await hl(g, sessionStorage.getItem("systemKey"), "");
|
|
3444
|
+
if ((v == null ? void 0 : v.length) === 0)
|
|
3445
|
+
return await hi(g);
|
|
3446
|
+
});
|
|
3447
|
+
await Promise.all(pe);
|
|
3448
|
+
let ae = [], S = (X = (u = (F = l(_)) == null ? void 0 : F.extraValues) == null ? void 0 : u.output) == null ? void 0 : X.map(async (g) => {
|
|
3449
|
+
var a, d, h, k, W, ye, N, le, se, ge, U, ne, C, he, fe, Ae, Pe, Ke, B, Te, Ie, Ve, xe, $e, We, Ge, rl, Ze, kl, _l, Cl, wl, Dl, Ll, Ol, Vl, Rl, Ul, jl, Pl, Kl, Nl, Ml, Wl, ul, il, zl, Jl, Hl, Gl, ql, Ql, Xl, Yl, Zl, ea, la, aa, ia, sa, na;
|
|
3450
|
+
if ((d = (a = Object.values(g)) == null ? void 0 : a[0]) != null && d.includes(".doc")) {
|
|
3451
|
+
var v = new Blob([j.data], {
|
|
3452
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
3453
|
+
}), H = j.headers["content-disposition"], f = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), n = f.exec(H), Z = n == null ? void 0 : n[1];
|
|
3454
|
+
document.createElement("a");
|
|
3455
|
+
var e = window.URL.createObjectURL(v);
|
|
3456
|
+
o.value = [{
|
|
3457
|
+
name: Z,
|
|
3458
|
+
blobUrl: e
|
|
3459
|
+
}], i.value = !0;
|
|
3460
|
+
} else {
|
|
3461
|
+
let Il = (ge = (se = (le = (k = l((h = Object.values(g)) == null ? void 0 : h[0])) == null ? void 0 : k.split("[")) == null ? void 0 : le[((N = (ye = l((W = Object.values(g)) == null ? void 0 : W[0])) == null ? void 0 : ye.split("[")) == null ? void 0 : N.length) - 1]) == null ? void 0 : se.split("]")) == null ? void 0 : ge[0], Re = Il == null ? void 0 : Il.split(":"), nl = (C = l((U = Object.values(g)) == null ? void 0 : U[0])) == null ? void 0 : C.substring(0, l((ne = Object.values(g)) == null ? void 0 : ne[0]).lastIndexOf("["));
|
|
3462
|
+
if (nl != null && nl.includes("[") && (nl = (fe = l(nl)) == null ? void 0 : fe.slice(0, ((he = l(nl)) == null ? void 0 : he.length) - 1)), nl != null && nl.includes("[")) {
|
|
3463
|
+
let Se = "";
|
|
3464
|
+
(Ae = Ca(nl, "/")) == null || Ae.forEach((Ne) => {
|
|
3465
|
+
var ze, qe, Me, cl, tl, oa, ua;
|
|
3466
|
+
if (!(Ne != null && Ne.includes("[")))
|
|
3467
|
+
Se = Se === "" ? Se + Ne.replaceAll("/", "") : Se + "/" + Ne.replaceAll("/", "");
|
|
3468
|
+
else {
|
|
3469
|
+
let Ha = l(Ne).slice(1, ((ze = l(Ne)) == null ? void 0 : ze.length) - 1), Sl = (oa = (tl = (cl = (Me = (qe = l(Ha)) == null ? void 0 : qe.split("[")) == null ? void 0 : Me[1]) == null ? void 0 : cl.split("]")) == null ? void 0 : tl[0]) == null ? void 0 : oa.split(":"), va = "", ma = (ua = Q == null ? void 0 : Q.find((pl) => (pl == null ? void 0 : pl.name) === (Sl == null ? void 0 : Sl[0]))) == null ? void 0 : ua.compData;
|
|
3470
|
+
ma == null || ma.forEach((pl) => {
|
|
3471
|
+
var Ta;
|
|
3472
|
+
(pl == null ? void 0 : pl.key) === "formContent" && ((Ta = pl == null ? void 0 : pl.contents) == null || Ta.forEach(($l) => {
|
|
3473
|
+
($l == null ? void 0 : $l.key) === (Sl == null ? void 0 : Sl[1]) && (va = $l == null ? void 0 : $l.value);
|
|
3474
|
+
}));
|
|
3475
|
+
}), Se = Se === "" ? Se + va.replaceAll("/", "") : Se + "/" + va.replaceAll("/", "");
|
|
3476
|
+
}
|
|
3477
|
+
}), nl = Se;
|
|
3478
|
+
}
|
|
3479
|
+
let xl = l((Pe = Object.keys(g)) == null ? void 0 : Pe[0]);
|
|
3480
|
+
if (((Ke = j == null ? void 0 : j.data) == null ? void 0 : Ke.statusCode) === 200 || ((B = j == null ? void 0 : j.data) == null ? void 0 : B.code) === 200) {
|
|
3481
|
+
if ((Ie = (Te = j == null ? void 0 : j.data) == null ? void 0 : Te.data) != null && Ie[xl] && (Re == null ? void 0 : Re.length) === 1)
|
|
3482
|
+
return await re((xe = (Ve = j == null ? void 0 : j.data) == null ? void 0 : Ve.data) == null ? void 0 : xe[xl], nl, Re);
|
|
3483
|
+
if ((We = ($e = j == null ? void 0 : j.data) == null ? void 0 : $e.data) != null && We[xl]) {
|
|
3484
|
+
let Se = await m((rl = (Ge = j == null ? void 0 : j.data) == null ? void 0 : Ge.data) == null ? void 0 : rl[xl], nl, Re);
|
|
3485
|
+
return ae = [...ae, ...Se], Se;
|
|
3486
|
+
} else {
|
|
3487
|
+
if (!((Ze = j == null ? void 0 : j.data) != null && Ze.data)) {
|
|
3488
|
+
let Se = await hl(ue.value, sessionStorage.getItem("systemKey"), "");
|
|
3489
|
+
Se = Se == null ? void 0 : Se.map((ze) => {
|
|
3490
|
+
var qe;
|
|
3491
|
+
return (ze == null ? void 0 : ze.name) === (Re == null ? void 0 : Re[0]) && (ze.compData = (qe = ze.compData) == null ? void 0 : qe.map((Me) => {
|
|
3492
|
+
var cl;
|
|
3493
|
+
return (Me == null ? void 0 : Me.key) === "formContent" && (Me.contents = (cl = Me.contents) == null ? void 0 : cl.map((tl) => {
|
|
3494
|
+
var oa, ua;
|
|
3495
|
+
return (tl == null ? void 0 : tl.key) === (Re == null ? void 0 : Re[1]) && (tl.value = (ua = (oa = j == null ? void 0 : j.data) == null ? void 0 : oa.result) == null ? void 0 : ua[xl == null ? void 0 : xl.replaceAll(":", "")]), tl;
|
|
3496
|
+
})), Me;
|
|
3497
|
+
})), ze;
|
|
3498
|
+
});
|
|
3499
|
+
let Ne = [];
|
|
3500
|
+
(kl = Se == null ? void 0 : Se.filter((ze) => (ze == null ? void 0 : ze.comp) === "Form")) == null || kl.forEach(async (ze) => {
|
|
3501
|
+
let qe = {};
|
|
3502
|
+
for (let Me in ze)
|
|
3503
|
+
Me !== "id" && (qe[Me] = ze[Me]);
|
|
3504
|
+
Ne.push({
|
|
3505
|
+
id: ze == null ? void 0 : ze.id,
|
|
3506
|
+
value: {
|
|
3507
|
+
pageData: qe
|
|
3508
|
+
}
|
|
3509
|
+
});
|
|
3510
|
+
}), await ka({
|
|
3511
|
+
dataList: Ne
|
|
3512
|
+
});
|
|
3513
|
+
return;
|
|
3514
|
+
}
|
|
3515
|
+
if ((Re == null ? void 0 : Re.length) === 1) {
|
|
3516
|
+
const Se = (wl = (Cl = (_l = j == null ? void 0 : j.data) == null ? void 0 : _l.data) == null ? void 0 : Cl.path) == null ? void 0 : wl.path;
|
|
3517
|
+
let Ne = "";
|
|
3518
|
+
(Rl = (Vl = (Ol = (Ll = (Dl = Se == null ? void 0 : Se.split("(")) == null ? void 0 : Dl[1]) == null ? void 0 : Ll.split(")")) == null ? void 0 : Ol[0]) == null ? void 0 : Vl.split(":")) == null || Rl.forEach((Me) => {
|
|
3519
|
+
var cl, tl;
|
|
3520
|
+
Ne = Ne === "" ? Ne + ((cl = Me == null ? void 0 : Me.replaceAll("'", "")) == null ? void 0 : cl.trim()) : Ne + "/" + ((tl = Me == null ? void 0 : Me.replaceAll("'", "")) == null ? void 0 : tl.trim());
|
|
3521
|
+
});
|
|
3522
|
+
let ze = [(Nl = (Kl = (Pl = (jl = (Ul = Se == null ? void 0 : Se.split("<")) == null ? void 0 : Ul[1]) == null ? void 0 : jl.split(">")) == null ? void 0 : Pl[0]) == null ? void 0 : Kl.replaceAll("'", "")) == null ? void 0 : Nl.trim()], qe;
|
|
3523
|
+
return (ul = (Wl = (Ml = j == null ? void 0 : j.data) == null ? void 0 : Ml.data) == null ? void 0 : Wl.data) != null && ul[Re == null ? void 0 : Re[0]] ? qe = await re((Jl = (zl = (il = j == null ? void 0 : j.data) == null ? void 0 : il.data) == null ? void 0 : zl.data) == null ? void 0 : Jl[Re == null ? void 0 : Re[0]], Ne, Re) : qe = await b((Gl = (Hl = j == null ? void 0 : j.data) == null ? void 0 : Hl.data) == null ? void 0 : Gl.data, Ne, ze), qe;
|
|
3524
|
+
} else {
|
|
3525
|
+
const Se = (Xl = (Ql = (ql = j == null ? void 0 : j.data) == null ? void 0 : ql.data) == null ? void 0 : Ql.path) == null ? void 0 : Xl.path;
|
|
3526
|
+
let Ne = "";
|
|
3527
|
+
return (aa = (la = (ea = (Zl = (Yl = Se == null ? void 0 : Se.split("(")) == null ? void 0 : Yl[1]) == null ? void 0 : Zl.split(")")) == null ? void 0 : ea[0]) == null ? void 0 : la.split(":")) == null || aa.forEach((qe) => {
|
|
3528
|
+
var Me, cl;
|
|
3529
|
+
Ne = Ne === "" ? Ne + ((Me = qe == null ? void 0 : qe.replaceAll("'", "")) == null ? void 0 : Me.trim()) : Ne + "/" + ((cl = qe == null ? void 0 : qe.replaceAll("'", "")) == null ? void 0 : cl.trim());
|
|
3530
|
+
}), await m((na = (sa = (ia = j == null ? void 0 : j.data) == null ? void 0 : ia.data) == null ? void 0 : sa.data) == null ? void 0 : na[Re == null ? void 0 : Re[0]], Ne, Re);
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
}
|
|
3534
|
+
}
|
|
3535
|
+
});
|
|
3536
|
+
if (await Promise.all(S), (ae == null ? void 0 : ae.length) > 0) {
|
|
3537
|
+
let g = (J = l(ae)) == null ? void 0 : J[0];
|
|
3538
|
+
g.value.pageData.compData = (de = g.value.pageData.compData) == null ? void 0 : de.map((v) => {
|
|
3539
|
+
var H;
|
|
3540
|
+
return (v == null ? void 0 : v.key) === "formContent" && (v.contents = (H = v.contents) == null ? void 0 : H.map((f) => {
|
|
3541
|
+
var Z, e, a, d;
|
|
3542
|
+
let n = (Z = l(ae)) == null ? void 0 : Z.find((h) => (h == null ? void 0 : h.keyType) === (f == null ? void 0 : f.key));
|
|
3543
|
+
if (n) {
|
|
3544
|
+
let h = (d = (a = (e = n.value.pageData.compData) == null ? void 0 : e.find((k) => (k == null ? void 0 : k.key) === "formContent")) == null ? void 0 : a.contents) == null ? void 0 : d.find((k) => (k == null ? void 0 : k.key) === (f == null ? void 0 : f.key));
|
|
3545
|
+
f.value = h == null ? void 0 : h.value;
|
|
3546
|
+
}
|
|
3547
|
+
return f;
|
|
3548
|
+
})), v;
|
|
3549
|
+
});
|
|
3550
|
+
for (let v in g)
|
|
3551
|
+
v !== "keyType" && g[v];
|
|
3552
|
+
await ya(g);
|
|
3553
|
+
}
|
|
3554
|
+
P.setFreshContent(!0);
|
|
3555
|
+
}
|
|
3556
|
+
w.setImportLoading(!1), T.value = !0;
|
|
3557
|
+
}, Fe = async (_) => {
|
|
3558
|
+
var D, I, z;
|
|
3559
|
+
const Y = l(_);
|
|
3560
|
+
let x;
|
|
3561
|
+
_ != null && _[0].path && (x = await (Y == null ? void 0 : Y.map(async (G, F) => {
|
|
3562
|
+
var Q, R, K, j, A, pe, ae, S, g, v;
|
|
3563
|
+
const X = (await gl({
|
|
3564
|
+
key: {
|
|
3565
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3566
|
+
type: "data",
|
|
3567
|
+
pageKey: (Q = _ == null ? void 0 : _[0]) == null ? void 0 : Q.path
|
|
3568
|
+
}
|
|
3569
|
+
})).data.result;
|
|
3570
|
+
let J = "";
|
|
3571
|
+
const de = await hl(ue.value, sessionStorage.getItem("systemKey"), "");
|
|
3572
|
+
return X == null || X.forEach((H) => {
|
|
3573
|
+
var f, n, Z, e, a;
|
|
3574
|
+
((n = (f = H == null ? void 0 : H.value) == null ? void 0 : f.tableData) == null ? void 0 : n.算法名称) === ((Z = Y == null ? void 0 : Y[F]) == null ? void 0 : Z.method) && (J = (a = (e = H == null ? void 0 : H.value) == null ? void 0 : e.tableData) == null ? void 0 : a.算法体);
|
|
3575
|
+
}), {
|
|
3576
|
+
buttonName: ((R = Y == null ? void 0 : Y[F]) == null ? void 0 : R.method) ?? ((A = (j = (K = X == null ? void 0 : X[0]) == null ? void 0 : K.value) == null ? void 0 : j.tableData) == null ? void 0 : A.算法名称),
|
|
3577
|
+
api: J === "" ? (S = (ae = (pe = X == null ? void 0 : X[0]) == null ? void 0 : pe.value) == null ? void 0 : ae.tableData) == null ? void 0 : S.算法体 : J,
|
|
3578
|
+
content: de == null ? void 0 : de.filter((H) => H.comp !== "methodButton"),
|
|
3579
|
+
extraContent: (g = l(G.value)) == null ? void 0 : g.slice(1),
|
|
3580
|
+
methodName: (G == null ? void 0 : G.path) ?? "",
|
|
3581
|
+
extraValues: (v = Y == null ? void 0 : Y[F]) == null ? void 0 : v.data
|
|
3582
|
+
};
|
|
3583
|
+
})));
|
|
3584
|
+
const s = Y == null ? void 0 : Y.map(async (G) => {
|
|
3585
|
+
var Q, R, K, j, A, pe;
|
|
3586
|
+
const u = (Q = (await gl({
|
|
3587
|
+
key: {
|
|
3588
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3589
|
+
parentTable: "",
|
|
3590
|
+
type: "method",
|
|
3591
|
+
methodName: G.method
|
|
3592
|
+
}
|
|
3593
|
+
})).data.result) == null ? void 0 : Q[0], X = await gl({
|
|
3594
|
+
key: {
|
|
3595
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3596
|
+
type: "methodData",
|
|
3597
|
+
tableId: u == null ? void 0 : u.id
|
|
3598
|
+
}
|
|
3599
|
+
}), J = await hl(ue.value, sessionStorage.getItem("systemKey"), ""), de = (R = X.data.result) == null ? void 0 : R[0];
|
|
3600
|
+
return {
|
|
3601
|
+
buttonName: (K = u == null ? void 0 : u.key) == null ? void 0 : K.methodKey,
|
|
3602
|
+
api: (A = (j = de == null ? void 0 : de.value) == null ? void 0 : j.tableData) == null ? void 0 : A[0],
|
|
3603
|
+
content: J == null ? void 0 : J.filter((ae) => ae.comp !== "methodButton"),
|
|
3604
|
+
extraContent: (pe = l(G.value)) == null ? void 0 : pe.slice(1),
|
|
3605
|
+
methodName: (G == null ? void 0 : G.method) ?? ""
|
|
3606
|
+
};
|
|
3607
|
+
}), c = (D = _ == null ? void 0 : _[0]) != null && D.path && ((I = _ == null ? void 0 : _[0]) == null ? void 0 : I.path) !== "" ? await Promise.all(x) : await Promise.all(s);
|
|
3608
|
+
V.value = c == null ? void 0 : c.filter((G) => G == null ? void 0 : G.extraContent), (z = V.value) == null || z.forEach((G) => {
|
|
3609
|
+
var F;
|
|
3610
|
+
G.api === "" && ((F = G.content) == null || F.forEach((u) => {
|
|
3611
|
+
var X;
|
|
3612
|
+
u.comp == "Table" && P.setExtraContents(fi(u.compData, (X = G.extraContent) == null ? void 0 : X[0]));
|
|
3613
|
+
}));
|
|
3614
|
+
});
|
|
3615
|
+
};
|
|
3616
|
+
return Ye(
|
|
3617
|
+
() => y.itemData,
|
|
3618
|
+
async () => {
|
|
3619
|
+
O.value == "view" && !T.value && await Fe(l(y.itemData)), T.value = !1;
|
|
3620
|
+
},
|
|
3621
|
+
{ immediate: !0, deep: !0 }
|
|
3622
|
+
), (_, Y) => {
|
|
3623
|
+
var x, s, c;
|
|
3624
|
+
return Al(O) !== "edit" ? (oe(), _e("div", pn, [
|
|
3625
|
+
(oe(!0), _e(je, null, Je((x = V.value) == null ? void 0 : x.filter((D) => (D == null ? void 0 : D.buttonName) !== "保存"), (D) => (oe(), _e("div", null, [
|
|
3626
|
+
D.api !== "" ? (oe(), Oe(Al(Sa), {
|
|
3627
|
+
key: 0,
|
|
3628
|
+
class: "calculator-content",
|
|
3629
|
+
modelValue: D.buttonName,
|
|
3630
|
+
onClickTrigger: (I) => De(D),
|
|
3631
|
+
loading: L.value
|
|
3632
|
+
}, null, 8, ["modelValue", "onClickTrigger", "loading"])) : Xe("", !0)
|
|
3633
|
+
]))), 256)),
|
|
3634
|
+
Al(ce) !== "" && ((c = Al(ue)) == null ? void 0 : c[((s = Al(ue)) == null ? void 0 : s.length) - 1]) !== "/" ? (oe(), Oe(Al(Sa), {
|
|
3635
|
+
key: 0,
|
|
3636
|
+
class: "calculator-content",
|
|
3637
|
+
onClickTrigger: me,
|
|
3638
|
+
modelValue: "保存"
|
|
3639
|
+
})) : Xe("", !0),
|
|
3640
|
+
i.value ? (oe(), Oe(Va, {
|
|
3641
|
+
key: 1,
|
|
3642
|
+
fileDataList: o.value,
|
|
3643
|
+
onDestroy: t
|
|
3644
|
+
}, null, 8, ["fileDataList"])) : Xe("", !0)
|
|
3645
|
+
])) : Xe("", !0);
|
|
3646
|
+
};
|
|
3647
|
+
}
|
|
3648
|
+
}, hn = /* @__PURE__ */ He(fn, [["__scopeId", "data-v-6f1ad442"]]), vn = {};
|
|
3649
|
+
function mn(r, V) {
|
|
3650
|
+
return " 567 ";
|
|
3651
|
+
}
|
|
3652
|
+
const yn = /* @__PURE__ */ He(vn, [["render", mn]]), gn = { class: "module content" }, bn = { class: "module data" }, kn = { class: "module layout" }, _n = { class: "form-content" }, Cn = /* @__PURE__ */ El({
|
|
3653
|
+
__name: "operate",
|
|
3654
|
+
props: {
|
|
3655
|
+
itemContents: {
|
|
3656
|
+
type: Array,
|
|
3657
|
+
default: () => []
|
|
3658
|
+
},
|
|
3659
|
+
originalItemContents: {
|
|
3660
|
+
type: Array,
|
|
3661
|
+
default: () => []
|
|
3662
|
+
}
|
|
3663
|
+
},
|
|
3664
|
+
emits: ["change"],
|
|
3665
|
+
setup(r, { emit: V }) {
|
|
3666
|
+
const y = r, i = V, o = wa({
|
|
3667
|
+
visible: !1,
|
|
3668
|
+
width: "40%",
|
|
3669
|
+
title: "签名配置"
|
|
3670
|
+
}), P = q("create"), L = q([
|
|
3671
|
+
{
|
|
3672
|
+
label: "取消",
|
|
3673
|
+
background: "#c0c4cc"
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
label: "确认",
|
|
3677
|
+
background: "#436aaf"
|
|
3678
|
+
}
|
|
3679
|
+
]), w = q([
|
|
3680
|
+
{
|
|
3681
|
+
label: "宽度(%):",
|
|
3682
|
+
prop: "signPadWidth",
|
|
3683
|
+
type: "number",
|
|
3684
|
+
value: "30"
|
|
3685
|
+
},
|
|
3686
|
+
{
|
|
3687
|
+
label: "弹窗名称:",
|
|
3688
|
+
prop: "dialogTitle",
|
|
3689
|
+
type: "input",
|
|
3690
|
+
value: ""
|
|
3691
|
+
},
|
|
3692
|
+
{
|
|
3693
|
+
label: "弹窗宽度(%):",
|
|
3694
|
+
prop: "dialogWidth",
|
|
3695
|
+
type: "number",
|
|
3696
|
+
value: "30"
|
|
3697
|
+
},
|
|
3698
|
+
{
|
|
3699
|
+
label: "弹窗显示:",
|
|
3700
|
+
prop: "dialogShow",
|
|
3701
|
+
type: "radio",
|
|
3702
|
+
contents: [
|
|
3703
|
+
{
|
|
3704
|
+
label: "显示",
|
|
3705
|
+
value: !0
|
|
3706
|
+
},
|
|
3707
|
+
{
|
|
3708
|
+
label: "隐藏",
|
|
3709
|
+
value: !1
|
|
3710
|
+
}
|
|
3711
|
+
],
|
|
3712
|
+
value: !1,
|
|
3713
|
+
isFormColHidden: !0
|
|
3714
|
+
},
|
|
3715
|
+
{
|
|
3716
|
+
label: "路径:",
|
|
3717
|
+
prop: "url",
|
|
3718
|
+
type: "input",
|
|
3719
|
+
value: "",
|
|
3720
|
+
isFormColHidden: !0
|
|
3721
|
+
}
|
|
3722
|
+
]), M = Da(() => [
|
|
3723
|
+
{
|
|
3724
|
+
label: "",
|
|
3725
|
+
prop: "index",
|
|
3726
|
+
type: "input",
|
|
3727
|
+
value: "",
|
|
3728
|
+
isFormColHidden: !0
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
label: "类型:",
|
|
3732
|
+
prop: "label",
|
|
3733
|
+
type: "select",
|
|
3734
|
+
contents: [
|
|
3735
|
+
{
|
|
3736
|
+
label: "电子签名",
|
|
3737
|
+
value: "电子签名"
|
|
3738
|
+
},
|
|
3739
|
+
{
|
|
3740
|
+
label: "签字版",
|
|
3741
|
+
value: "签字版"
|
|
3742
|
+
},
|
|
3743
|
+
{
|
|
3744
|
+
label: "上传签名",
|
|
3745
|
+
value: "上传签名"
|
|
3746
|
+
}
|
|
3747
|
+
],
|
|
3748
|
+
value: ""
|
|
3749
|
+
},
|
|
3750
|
+
{
|
|
3751
|
+
label: "图标",
|
|
3752
|
+
prop: "icon",
|
|
3753
|
+
type: "inputPopover",
|
|
3754
|
+
value: ""
|
|
3755
|
+
}
|
|
3756
|
+
// {
|
|
3757
|
+
// label: '是否禁用',
|
|
3758
|
+
// prop: 'disabled',
|
|
3759
|
+
// type: 'radio',
|
|
3760
|
+
// contents: [
|
|
3761
|
+
// {
|
|
3762
|
+
// label: '是',
|
|
3763
|
+
// value: true,
|
|
3764
|
+
// },
|
|
3765
|
+
// {
|
|
3766
|
+
// label: '否',
|
|
3767
|
+
// value: false,
|
|
3768
|
+
// }
|
|
3769
|
+
// ],
|
|
3770
|
+
// value: false
|
|
3771
|
+
// },
|
|
3772
|
+
]), ee = q({}), O = q([]), ce = () => ({
|
|
3773
|
+
comp: "Signature",
|
|
3774
|
+
compData: [
|
|
3775
|
+
{
|
|
3776
|
+
key: "signTypeList",
|
|
3777
|
+
contents: O.value
|
|
3778
|
+
},
|
|
3779
|
+
{
|
|
3780
|
+
key: "signConfig",
|
|
3781
|
+
contents: ee.value
|
|
3782
|
+
}
|
|
3783
|
+
]
|
|
3784
|
+
}), ue = (T) => {
|
|
3785
|
+
var $;
|
|
3786
|
+
ee.value = l(T), i("change", ($ = ce()) == null ? void 0 : $.compData);
|
|
3787
|
+
}, Ce = (T) => {
|
|
3788
|
+
var $, me;
|
|
3789
|
+
if ((T == null ? void 0 : T.buttonName) === "确认") {
|
|
3790
|
+
const t = l(T == null ? void 0 : T.content);
|
|
3791
|
+
switch (P.value) {
|
|
3792
|
+
case "create":
|
|
3793
|
+
O.value.push({
|
|
3794
|
+
...t,
|
|
3795
|
+
index: (($ = O.value) == null ? void 0 : $.length) + 1
|
|
3796
|
+
});
|
|
3797
|
+
break;
|
|
3798
|
+
}
|
|
3799
|
+
i("change", (me = ce()) == null ? void 0 : me.compData), o.visible = !1;
|
|
3800
|
+
} else
|
|
3801
|
+
o.visible = !1;
|
|
3802
|
+
}, te = (T, $) => {
|
|
3803
|
+
var me, t;
|
|
3804
|
+
switch (T) {
|
|
3805
|
+
case "create":
|
|
3806
|
+
(me = M.value) == null || me.forEach((p) => {
|
|
3807
|
+
p.value = "";
|
|
3808
|
+
}), P.value = "create", o.visible = !0;
|
|
3809
|
+
break;
|
|
3810
|
+
case "update":
|
|
3811
|
+
(t = M.value) == null || t.forEach((p) => {
|
|
3812
|
+
p.value = $[p == null ? void 0 : p.prop];
|
|
3813
|
+
}), P.value = "update", o.visible = !0;
|
|
3814
|
+
break;
|
|
3815
|
+
case "delete":
|
|
3816
|
+
O.value.splice($, 1), P.value = "delete";
|
|
3817
|
+
break;
|
|
3818
|
+
}
|
|
3819
|
+
}, ke = () => {
|
|
3820
|
+
o.visible = !1;
|
|
3821
|
+
};
|
|
3822
|
+
return Ye(() => y == null ? void 0 : y.itemContents, (T) => {
|
|
3823
|
+
var $, me;
|
|
3824
|
+
T && (ee.value = (($ = T == null ? void 0 : T.find((t) => t.key === "signConfig")) == null ? void 0 : $.contents) ?? {}, O.value = ((me = T == null ? void 0 : T.find((t) => t.key === "signTypeList")) == null ? void 0 : me.contents) ?? []);
|
|
3825
|
+
}, { immediate: !0 }), (T, $) => {
|
|
3826
|
+
const me = Ue("svg-icon"), t = Ue("el-button");
|
|
3827
|
+
return oe(), _e(je, null, [
|
|
3828
|
+
E("div", null, [
|
|
3829
|
+
E("div", gn, [
|
|
3830
|
+
$[2] || ($[2] = E("h4", { class: "module-title" }, "签名类型", -1)),
|
|
3831
|
+
ie(t, {
|
|
3832
|
+
class: "module-icon",
|
|
3833
|
+
id: "themeButton",
|
|
3834
|
+
onClick: $[0] || ($[0] = (p) => te("create"))
|
|
3835
|
+
}, {
|
|
3836
|
+
icon: ve(() => [
|
|
3837
|
+
ie(me, {
|
|
3838
|
+
name: "Plus",
|
|
3839
|
+
class: "icon-size"
|
|
3840
|
+
})
|
|
3841
|
+
]),
|
|
3842
|
+
default: ve(() => [
|
|
3843
|
+
$[1] || ($[1] = Be(" 新增 "))
|
|
3844
|
+
]),
|
|
3845
|
+
_: 1,
|
|
3846
|
+
__: [1]
|
|
3847
|
+
})
|
|
3848
|
+
]),
|
|
3849
|
+
E("div", bn, [
|
|
3850
|
+
(oe(!0), _e(je, null, Je(O.value, (p, m) => (oe(), _e("div", {
|
|
3851
|
+
class: "module-data-item",
|
|
3852
|
+
key: m
|
|
3853
|
+
}, [
|
|
3854
|
+
E("span", null, we(p == null ? void 0 : p.label), 1),
|
|
3855
|
+
E("div", null, [
|
|
3856
|
+
ie(t, {
|
|
3857
|
+
type: "primary",
|
|
3858
|
+
size: "small",
|
|
3859
|
+
onClick: (b) => te("update", { ...p, index: m + 1 })
|
|
3860
|
+
}, {
|
|
3861
|
+
default: ve(() => $[3] || ($[3] = [
|
|
3862
|
+
Be("修改")
|
|
3863
|
+
])),
|
|
3864
|
+
_: 2,
|
|
3865
|
+
__: [3]
|
|
3866
|
+
}, 1032, ["onClick"]),
|
|
3867
|
+
ie(t, {
|
|
3868
|
+
type: "danger",
|
|
3869
|
+
size: "small",
|
|
3870
|
+
onClick: (b) => te("delete", m)
|
|
3871
|
+
}, {
|
|
3872
|
+
default: ve(() => $[4] || ($[4] = [
|
|
3873
|
+
Be("删除")
|
|
3874
|
+
])),
|
|
3875
|
+
_: 2,
|
|
3876
|
+
__: [4]
|
|
3877
|
+
}, 1032, ["onClick"])
|
|
3878
|
+
])
|
|
3879
|
+
]))), 128))
|
|
3880
|
+
]),
|
|
3881
|
+
E("div", kn, [
|
|
3882
|
+
ie(el, {
|
|
3883
|
+
rowContents: w.value,
|
|
3884
|
+
onChange: ue
|
|
3885
|
+
}, null, 8, ["rowContents"])
|
|
3886
|
+
])
|
|
3887
|
+
]),
|
|
3888
|
+
ie(ll, {
|
|
3889
|
+
visible: o.visible,
|
|
3890
|
+
title: o.title,
|
|
3891
|
+
onBeforeDestroy: ke,
|
|
3892
|
+
width: o.width
|
|
3893
|
+
}, {
|
|
3894
|
+
default: ve(() => [
|
|
3895
|
+
E("div", _n, [
|
|
3896
|
+
(oe(), Oe(el, {
|
|
3897
|
+
rowContents: M.value,
|
|
3898
|
+
key: M.value,
|
|
3899
|
+
isEnableWrap: !1,
|
|
3900
|
+
isButtonRow: !1,
|
|
3901
|
+
isStartJustify: !1,
|
|
3902
|
+
buttonValue: L.value,
|
|
3903
|
+
onOnButtonClick: Ce
|
|
3904
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
3905
|
+
])
|
|
3906
|
+
]),
|
|
3907
|
+
_: 1
|
|
3908
|
+
}, 8, ["visible", "title", "width"])
|
|
3909
|
+
], 64);
|
|
3910
|
+
};
|
|
3911
|
+
}
|
|
3912
|
+
}), wn = /* @__PURE__ */ He(Cn, [["__scopeId", "data-v-487e0536"]]), Dn = /* @__PURE__ */ El({
|
|
3913
|
+
__name: "index",
|
|
3914
|
+
props: {
|
|
3915
|
+
stepConfig: {
|
|
3916
|
+
type: Object,
|
|
3917
|
+
default: {}
|
|
3918
|
+
},
|
|
3919
|
+
stepList: {
|
|
3920
|
+
type: Array,
|
|
3921
|
+
default: () => []
|
|
3922
|
+
}
|
|
3923
|
+
},
|
|
3924
|
+
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
3925
|
+
setup(r, { emit: V }) {
|
|
3926
|
+
const y = r, i = V, o = q(1), P = Da(() => {
|
|
3927
|
+
var ce, ue;
|
|
3928
|
+
return (ce = y == null ? void 0 : y.stepConfig) != null && ce.allowTrigger ? o.value : (ue = y == null ? void 0 : y.stepConfig) == null ? void 0 : ue.active;
|
|
3929
|
+
}), L = (ce, ue) => {
|
|
3930
|
+
o.value = ue, i("clickStep", ce, ue);
|
|
3931
|
+
}, w = (ce) => si(ce), M = () => {
|
|
3932
|
+
var ue;
|
|
3933
|
+
const ce = (ue = y == null ? void 0 : y.stepList) == null ? void 0 : ue.find((Ce, te) => te + 1 === P.value);
|
|
3934
|
+
return console.log("findStep", ce), ce ? ce == null ? void 0 : ce.children : [];
|
|
3935
|
+
}, ee = (ce) => {
|
|
3936
|
+
i("clickTrigger", ce);
|
|
3937
|
+
}, O = (ce) => {
|
|
3938
|
+
i("changeTrigger", ce);
|
|
3939
|
+
};
|
|
3940
|
+
return (ce, ue) => {
|
|
3941
|
+
var ke, T, $, me, t;
|
|
3942
|
+
const Ce = Ue("el-step"), te = Ue("el-steps");
|
|
3943
|
+
return oe(), _e(je, null, [
|
|
3944
|
+
ie(te, {
|
|
3945
|
+
direction: (ke = r.stepConfig) == null ? void 0 : ke.direction,
|
|
3946
|
+
active: P.value,
|
|
3947
|
+
"finish-status": "success",
|
|
3948
|
+
simple: (T = r.stepConfig) == null ? void 0 : T.simple,
|
|
3949
|
+
"align-center": (($ = r.stepConfig) == null ? void 0 : $.alignCenter) ?? !0
|
|
3950
|
+
}, {
|
|
3951
|
+
default: ve(() => [
|
|
3952
|
+
(oe(!0), _e(je, null, Je(r.stepList, (p, m) => (oe(), Oe(Ce, {
|
|
3953
|
+
key: m,
|
|
3954
|
+
class: "step-item",
|
|
3955
|
+
onClick: (b) => L(p, m + 1)
|
|
3956
|
+
}, {
|
|
3957
|
+
title: ve(() => [
|
|
3958
|
+
pa(ce.$slots, "title", {
|
|
3959
|
+
title: p == null ? void 0 : p.title
|
|
3960
|
+
}, void 0, !0)
|
|
3961
|
+
]),
|
|
3962
|
+
description: ve(() => [
|
|
3963
|
+
pa(ce.$slots, "description", {
|
|
3964
|
+
description: p == null ? void 0 : p.description
|
|
3965
|
+
}, void 0, !0)
|
|
3966
|
+
]),
|
|
3967
|
+
_: 2
|
|
3968
|
+
}, 1032, ["onClick"]))), 128))
|
|
3969
|
+
]),
|
|
3970
|
+
_: 3
|
|
3971
|
+
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
3972
|
+
(me = r.stepConfig) != null && me.allowTrigger && ((t = r.stepConfig) != null && t.active) ? (oe(!0), _e(je, { key: 0 }, Je(M(), (p, m) => (oe(), _e("div", {
|
|
3973
|
+
key: m,
|
|
3974
|
+
class: "step-cont-wrap"
|
|
3975
|
+
}, [
|
|
3976
|
+
(oe(), Oe(ta(w(p == null ? void 0 : p.type)), {
|
|
3977
|
+
modelValue: p.value,
|
|
3978
|
+
"onUpdate:modelValue": (b) => p.value = b,
|
|
3979
|
+
onClickTrigger: ee,
|
|
3980
|
+
onChangeTrigger: O,
|
|
3981
|
+
content: p == null ? void 0 : p.content
|
|
3982
|
+
}, ei({ _: 2 }, [
|
|
3983
|
+
Je(ce.$slots, (b, re) => ({
|
|
3984
|
+
name: re,
|
|
3985
|
+
fn: ve((be) => [
|
|
3986
|
+
pa(ce.$slots, re, li({ ref_for: !0 }, be || {}), void 0, !0)
|
|
3987
|
+
])
|
|
3988
|
+
}))
|
|
3989
|
+
]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
|
|
3990
|
+
]))), 128)) : Xe("", !0)
|
|
3991
|
+
], 64);
|
|
3992
|
+
};
|
|
3993
|
+
}
|
|
3994
|
+
}), In = /* @__PURE__ */ He(Dn, [["__scopeId", "data-v-d7c99969"]]), xn = /* @__PURE__ */ El({
|
|
3995
|
+
__name: "index",
|
|
3996
|
+
props: {
|
|
3997
|
+
itemData: {
|
|
3998
|
+
type: Array,
|
|
3999
|
+
default: () => []
|
|
4000
|
+
},
|
|
4001
|
+
childItemData: {
|
|
4002
|
+
type: Array,
|
|
4003
|
+
default: () => []
|
|
4004
|
+
}
|
|
4005
|
+
},
|
|
4006
|
+
emits: ["clickStep"],
|
|
4007
|
+
setup(r, { emit: V }) {
|
|
4008
|
+
const y = r, i = V, o = q({}), P = q([]), L = (w, M) => {
|
|
4009
|
+
i("clickStep", w, M);
|
|
4010
|
+
};
|
|
4011
|
+
return Ye(() => y == null ? void 0 : y.itemData, (w) => {
|
|
4012
|
+
var M, ee;
|
|
4013
|
+
P.value = (M = w == null ? void 0 : w.find((O) => (O == null ? void 0 : O.key) === "stepList")) == null ? void 0 : M.contents, o.value = (ee = w == null ? void 0 : w.find((O) => (O == null ? void 0 : O.key) === "stepConfig")) == null ? void 0 : ee.contents;
|
|
4014
|
+
}, {
|
|
4015
|
+
immediate: !0
|
|
4016
|
+
}), (w, M) => {
|
|
4017
|
+
const ee = Ue("svg-icon");
|
|
4018
|
+
return oe(), Oe(In, {
|
|
4019
|
+
stepConfig: o.value,
|
|
4020
|
+
stepList: P.value,
|
|
4021
|
+
onClickStep: L
|
|
4022
|
+
}, {
|
|
4023
|
+
icon: ve(() => [
|
|
4024
|
+
ie(ee, { name: "import" })
|
|
4025
|
+
]),
|
|
4026
|
+
title: ve(({ title: O }) => [
|
|
4027
|
+
Be(we(O), 1)
|
|
4028
|
+
]),
|
|
4029
|
+
description: ve(({ description: O }) => [
|
|
4030
|
+
Be(we(O), 1)
|
|
4031
|
+
]),
|
|
4032
|
+
_: 1
|
|
4033
|
+
}, 8, ["stepConfig", "stepList"]);
|
|
4034
|
+
};
|
|
4035
|
+
}
|
|
4036
|
+
}), An = /* @__PURE__ */ El({
|
|
4037
|
+
__name: "index",
|
|
4038
|
+
props: {
|
|
4039
|
+
activities: {
|
|
4040
|
+
type: Array,
|
|
4041
|
+
default: () => []
|
|
4042
|
+
},
|
|
4043
|
+
timeLineConfig: {
|
|
4044
|
+
type: Object,
|
|
4045
|
+
default: () => {
|
|
4046
|
+
}
|
|
4047
|
+
}
|
|
4048
|
+
},
|
|
4049
|
+
setup(r) {
|
|
4050
|
+
return (V, y) => {
|
|
4051
|
+
const i = Ue("el-timeline-item"), o = Ue("el-timeline");
|
|
4052
|
+
return oe(), Oe(o, null, {
|
|
4053
|
+
default: ve(() => [
|
|
4054
|
+
(oe(!0), _e(je, null, Je(r.activities, (P, L) => (oe(), Oe(i, {
|
|
4055
|
+
key: L,
|
|
4056
|
+
timestamp: P.timestamp,
|
|
4057
|
+
placement: r.timeLineConfig.placement,
|
|
4058
|
+
center: r.timeLineConfig.isCenter,
|
|
4059
|
+
"hide-timestamp": !0,
|
|
4060
|
+
type: r.timeLineConfig.type,
|
|
4061
|
+
color: r.timeLineConfig.color,
|
|
4062
|
+
size: r.timeLineConfig.size,
|
|
4063
|
+
icon: r.timeLineConfig.icon,
|
|
4064
|
+
hollow: r.timeLineConfig.isHollow
|
|
4065
|
+
}, {
|
|
4066
|
+
default: ve(() => [
|
|
4067
|
+
pa(V.$slots, "content", {
|
|
4068
|
+
content: P == null ? void 0 : P.content,
|
|
4069
|
+
timestamp: P == null ? void 0 : P.timestamp
|
|
4070
|
+
}, void 0, !0)
|
|
4071
|
+
]),
|
|
4072
|
+
_: 2
|
|
4073
|
+
}, 1032, ["timestamp", "placement", "center", "type", "color", "size", "icon", "hollow"]))), 128))
|
|
4074
|
+
]),
|
|
4075
|
+
_: 3
|
|
4076
|
+
});
|
|
4077
|
+
};
|
|
4078
|
+
}
|
|
4079
|
+
}), Tn = /* @__PURE__ */ He(An, [["__scopeId", "data-v-4172a886"]]), En = { class: "line-content" }, Sn = { class: "line-time" }, $n = /* @__PURE__ */ El({
|
|
4080
|
+
__name: "index",
|
|
4081
|
+
props: {
|
|
4082
|
+
itemData: {
|
|
4083
|
+
type: Array,
|
|
4084
|
+
default: () => []
|
|
4085
|
+
}
|
|
4086
|
+
},
|
|
4087
|
+
setup(r) {
|
|
4088
|
+
const V = r, y = q({}), i = q([]);
|
|
4089
|
+
return Ye(() => V == null ? void 0 : V.itemData, (o) => {
|
|
4090
|
+
var P, L;
|
|
4091
|
+
i.value = (P = o == null ? void 0 : o.find((w) => (w == null ? void 0 : w.key) === "timeLineList")) == null ? void 0 : P.contents, y.value = (L = o == null ? void 0 : o.find((w) => (w == null ? void 0 : w.key) === "timeLineConfig")) == null ? void 0 : L.contents;
|
|
4092
|
+
}, {
|
|
4093
|
+
immediate: !0
|
|
4094
|
+
}), (o, P) => (oe(), Oe(Tn, {
|
|
4095
|
+
activities: i.value,
|
|
4096
|
+
timeLineConfig: y.value
|
|
4097
|
+
}, {
|
|
4098
|
+
content: ve(({ content: L, timestamp: w }) => [
|
|
4099
|
+
E("span", En, we(L), 1),
|
|
4100
|
+
E("span", Sn, we(w), 1)
|
|
4101
|
+
]),
|
|
4102
|
+
_: 1
|
|
4103
|
+
}, 8, ["activities", "timeLineConfig"]));
|
|
4104
|
+
}
|
|
4105
|
+
}), Bn = /* @__PURE__ */ He($n, [["__scopeId", "data-v-b4d9deed"]]), Fn = { class: "tabs-content" }, Ln = {
|
|
4106
|
+
__name: "index",
|
|
4107
|
+
props: {
|
|
4108
|
+
itemData: {
|
|
4109
|
+
type: Array,
|
|
4110
|
+
default: () => []
|
|
4111
|
+
},
|
|
4112
|
+
childItemData: {
|
|
4113
|
+
type: Array,
|
|
4114
|
+
default: () => []
|
|
4115
|
+
},
|
|
4116
|
+
index: Number
|
|
4117
|
+
},
|
|
4118
|
+
setup(r) {
|
|
4119
|
+
const V = r, y = q([]);
|
|
4120
|
+
return Ye(
|
|
4121
|
+
() => V == null ? void 0 : V.itemData,
|
|
4122
|
+
(i) => {
|
|
4123
|
+
const o = i.find((P) => (P == null ? void 0 : P.key) == "stepList");
|
|
4124
|
+
o && (y.value = o.contents.map((P) => ({
|
|
4125
|
+
value: P.value || P.title,
|
|
4126
|
+
label: P.label || P.title,
|
|
4127
|
+
children: P.children || []
|
|
4128
|
+
// 关键:传递子内容
|
|
4129
|
+
})));
|
|
4130
|
+
},
|
|
4131
|
+
{ immediate: !0, deep: !0 }
|
|
4132
|
+
), (i, o) => (oe(), _e("div", Fn, [
|
|
4133
|
+
ie(ni, { tabsContents: y.value }, null, 8, ["tabsContents"])
|
|
4134
|
+
]));
|
|
4135
|
+
}
|
|
4136
|
+
}, On = /* @__PURE__ */ He(Ln, [["__scopeId", "data-v-d3bb10b7"]]), ha = ii("tabComp", {
|
|
4137
|
+
state: () => ({
|
|
4138
|
+
itemData: [],
|
|
4139
|
+
originalData: [],
|
|
4140
|
+
extraContents: [],
|
|
4141
|
+
nodeDev: "",
|
|
4142
|
+
isEdit: "view",
|
|
4143
|
+
isRefreshCurStructure: !1,
|
|
4144
|
+
isSubmitCurStructure: !1,
|
|
4145
|
+
curStructureCompIds: []
|
|
4146
|
+
}),
|
|
4147
|
+
actions: {
|
|
4148
|
+
setItemData(r) {
|
|
4149
|
+
this.itemData = r;
|
|
4150
|
+
},
|
|
4151
|
+
setCurStructureCompIds(r) {
|
|
4152
|
+
this.curStructureCompIds = r;
|
|
4153
|
+
},
|
|
4154
|
+
setRefreshCurStructure(r) {
|
|
4155
|
+
this.isRefreshCurStructure = r;
|
|
4156
|
+
},
|
|
4157
|
+
setOriginalData(r) {
|
|
4158
|
+
this.originalData = r;
|
|
4159
|
+
},
|
|
4160
|
+
setExtraContents(r) {
|
|
4161
|
+
this.extraContents = r;
|
|
4162
|
+
},
|
|
4163
|
+
setNodeDev(r) {
|
|
4164
|
+
this.nodeDev = r;
|
|
4165
|
+
},
|
|
4166
|
+
setIsEdit(r) {
|
|
4167
|
+
this.isEdit = r;
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
}), Vn = { class: "type-select" }, Rn = ["onClick"], Un = { class: "list-icon" }, jn = {
|
|
4171
|
+
__name: "modelSelect",
|
|
4172
|
+
setup(r) {
|
|
4173
|
+
const V = ha(al), { itemData: y } = sl(V), i = (o) => {
|
|
4174
|
+
const P = l(y.value);
|
|
4175
|
+
P.push({
|
|
4176
|
+
comp: o.comp,
|
|
4177
|
+
name: o.name,
|
|
4178
|
+
compData: []
|
|
4179
|
+
}), V.setItemData(P);
|
|
4180
|
+
};
|
|
4181
|
+
return (o, P) => {
|
|
4182
|
+
const L = Ue("svg-icon");
|
|
4183
|
+
return oe(), _e("div", Vn, [
|
|
4184
|
+
(oe(!0), _e(je, null, Je(Al(Co), (w, M) => (oe(), _e("div", {
|
|
4185
|
+
class: "type-list",
|
|
4186
|
+
key: M
|
|
4187
|
+
}, [
|
|
4188
|
+
E("div", {
|
|
4189
|
+
class: "list-content",
|
|
4190
|
+
onClick: (ee) => i(w)
|
|
4191
|
+
}, [
|
|
4192
|
+
E("div", Un, [
|
|
4193
|
+
ie(L, {
|
|
4194
|
+
name: w.icon
|
|
4195
|
+
}, null, 8, ["name"])
|
|
4196
|
+
]),
|
|
4197
|
+
E("div", null, we(w.name), 1)
|
|
4198
|
+
], 8, Rn)
|
|
4199
|
+
]))), 128))
|
|
4200
|
+
]);
|
|
4201
|
+
};
|
|
4202
|
+
}
|
|
4203
|
+
}, Pn = /* @__PURE__ */ He(jn, [["__scopeId", "data-v-91799bf8"]]), Kn = { class: "fill-content" }, Nn = { class: "operate-content" }, Mn = { class: "collapse-title-content" }, Wn = { class: "collapse-title-item" }, zn = { key: 1 }, Jn = ["onClick"], Hn = { class: "icon-content" }, Gn = {
|
|
4204
|
+
key: 0,
|
|
4205
|
+
class: "edit-content"
|
|
4206
|
+
}, qn = ["onClick"], Qn = { class: "comp-child" }, Xn = {
|
|
4207
|
+
__name: "modelFill",
|
|
4208
|
+
setup(r) {
|
|
4209
|
+
const V = ha(al), { itemData: y, originalData: i } = sl(V), o = q([]);
|
|
4210
|
+
q([]);
|
|
4211
|
+
const P = q([]), L = q([]), w = (Ce) => {
|
|
4212
|
+
var ke;
|
|
4213
|
+
let te = (ke = l(L.value)) == null ? void 0 : ke.map((T, $) => (Ce === $ && (T.content = !0), T));
|
|
4214
|
+
L.value = te;
|
|
4215
|
+
}, M = (Ce) => {
|
|
4216
|
+
var ke;
|
|
4217
|
+
let te = (ke = l(L.value)) == null ? void 0 : ke.map((T, $) => (Ce === $ && (T.content = !1), T));
|
|
4218
|
+
L.value = te, o.value = l(y.value);
|
|
4219
|
+
}, ee = (Ce, te) => {
|
|
4220
|
+
var me;
|
|
4221
|
+
let ke = (me = l(L.value)) == null ? void 0 : me.map((t, p) => (Ce === p && (t.content = !1), t));
|
|
4222
|
+
L.value = ke;
|
|
4223
|
+
const T = l(y.value), $ = T == null ? void 0 : T.filter((t, p) => (p === Ce && (t.name = te), t));
|
|
4224
|
+
V.setOriginalData($), V.setItemData($);
|
|
4225
|
+
};
|
|
4226
|
+
Ye(
|
|
4227
|
+
() => y.value,
|
|
4228
|
+
() => {
|
|
4229
|
+
var Ce, te, ke;
|
|
4230
|
+
!y.value || ((Ce = y.value) == null ? void 0 : Ce.length) === 0 ? o.value = [] : o.value = (te = l(y.value)) == null ? void 0 : te.filter((T) => (T == null ? void 0 : T.comp) !== "methodButton"), P.value = o.value, L.value = (ke = l(P.value)) == null ? void 0 : ke.map((T, $) => ({
|
|
4231
|
+
id: $,
|
|
4232
|
+
content: !1
|
|
4233
|
+
}));
|
|
4234
|
+
},
|
|
4235
|
+
{ deep: !0, immediate: !0 }
|
|
4236
|
+
);
|
|
4237
|
+
const O = (Ce) => Aa(Ce), ce = (Ce, te, ke) => {
|
|
4238
|
+
var $, me;
|
|
4239
|
+
if (!Ce) return;
|
|
4240
|
+
let T = l(y.value);
|
|
4241
|
+
T = ($ = T == null ? void 0 : T.map((t, p) => (p === ke && (t.compData = Ce), t))) == null ? void 0 : $.filter((t) => (t == null ? void 0 : t.comp) !== "methodButton"), L.value = (me = l(T)) == null ? void 0 : me.map((t, p) => ({
|
|
4242
|
+
id: p,
|
|
4243
|
+
content: !1
|
|
4244
|
+
})), V.setOriginalData(T), V.setItemData(T);
|
|
4245
|
+
}, ue = (Ce) => {
|
|
4246
|
+
bl.confirm("是否确认要删除", "", {
|
|
4247
|
+
confirmButtonText: "确认",
|
|
4248
|
+
cancelButtonText: "取消",
|
|
4249
|
+
type: "warning"
|
|
4250
|
+
}).then(() => {
|
|
4251
|
+
const te = l(y.value), ke = te == null ? void 0 : te.filter((T, $) => $ !== Ce);
|
|
4252
|
+
V.setOriginalData(ke), V.setItemData(ke), ol({
|
|
4253
|
+
type: "success",
|
|
4254
|
+
message: "删除成功"
|
|
4255
|
+
});
|
|
4256
|
+
}).catch(() => {
|
|
4257
|
+
});
|
|
4258
|
+
};
|
|
4259
|
+
return (Ce, te) => {
|
|
4260
|
+
const ke = Ue("svg-icon");
|
|
4261
|
+
return oe(), _e("div", Kn, [
|
|
4262
|
+
te[1] || (te[1] = E("div", { class: "fill-operate" }, we("操作栏"), -1)),
|
|
4263
|
+
E("div", Nn, [
|
|
4264
|
+
ie(yi, {
|
|
4265
|
+
class: "collapse-content",
|
|
4266
|
+
collapseContents: o.value
|
|
4267
|
+
}, {
|
|
4268
|
+
title: ve(({ item: T, index: $ }) => {
|
|
4269
|
+
var me, t, p, m, b, re, be, De, Fe, _;
|
|
4270
|
+
return [
|
|
4271
|
+
E("div", Mn, [
|
|
4272
|
+
E("div", Wn, [
|
|
4273
|
+
(t = (me = L.value) == null ? void 0 : me.find((Y) => Y.id === $)) != null && t.content ? Xe("", !0) : (oe(), _e("div", {
|
|
4274
|
+
key: 0,
|
|
4275
|
+
class: "collapse-title",
|
|
4276
|
+
style: ai({ marginRight: T.name && T.name !== "" ? "8px" : "0px" })
|
|
4277
|
+
}, we(T.name), 5)),
|
|
4278
|
+
(m = (p = L.value) == null ? void 0 : p.find((Y) => Y.id === $)) != null && m.content ? (oe(), _e("div", zn, [
|
|
4279
|
+
ie(oi, {
|
|
4280
|
+
modelValue: T.name,
|
|
4281
|
+
"onUpdate:modelValue": (Y) => T.name = Y,
|
|
4282
|
+
onClick: te[0] || (te[0] = ra(() => {
|
|
4283
|
+
}, ["stop"]))
|
|
4284
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4285
|
+
])) : Xe("", !0),
|
|
4286
|
+
(re = (b = L.value) == null ? void 0 : b.find((Y) => Y.id === $)) != null && re.content ? Xe("", !0) : (oe(), _e("div", {
|
|
4287
|
+
key: 2,
|
|
4288
|
+
onClick: ra((Y) => w($), ["stop"]),
|
|
4289
|
+
class: "icon-content"
|
|
4290
|
+
}, [
|
|
4291
|
+
ie(ke, {
|
|
4292
|
+
name: "Edit",
|
|
4293
|
+
style: { width: "16px", height: "16px" }
|
|
4294
|
+
})
|
|
4295
|
+
], 8, Jn))
|
|
4296
|
+
]),
|
|
4297
|
+
E("div", Hn, [
|
|
4298
|
+
(De = (be = L.value) == null ? void 0 : be.find((Y) => Y.id === $)) != null && De.content ? (oe(), _e("div", Gn, [
|
|
4299
|
+
ie(ke, {
|
|
4300
|
+
name: "Cancel",
|
|
4301
|
+
style: { width: "16px", height: "16px" },
|
|
4302
|
+
class: "icon-content",
|
|
4303
|
+
onClick: ra((Y) => M($), ["stop"])
|
|
4304
|
+
}, null, 8, ["onClick"]),
|
|
4305
|
+
ie(ke, {
|
|
4306
|
+
name: "Save",
|
|
4307
|
+
onClick: ra((Y) => ee($, T.name), ["stop"]),
|
|
4308
|
+
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
4309
|
+
class: "icon-content"
|
|
4310
|
+
}, null, 8, ["onClick"])
|
|
4311
|
+
])) : Xe("", !0),
|
|
4312
|
+
(_ = (Fe = L.value) == null ? void 0 : Fe.find((Y) => Y.id === $)) != null && _.content ? Xe("", !0) : (oe(), _e("div", {
|
|
4313
|
+
key: 1,
|
|
4314
|
+
onClick: ra((Y) => ue($), ["stop"]),
|
|
4315
|
+
class: "icon-content"
|
|
4316
|
+
}, [
|
|
4317
|
+
ie(ke, {
|
|
4318
|
+
name: "Delete",
|
|
4319
|
+
style: { width: "16px", height: "16px" }
|
|
4320
|
+
})
|
|
4321
|
+
], 8, qn))
|
|
4322
|
+
])
|
|
4323
|
+
])
|
|
4324
|
+
];
|
|
4325
|
+
}),
|
|
4326
|
+
content: ve(({ item: T, index: $ }) => {
|
|
4327
|
+
var me, t;
|
|
4328
|
+
return [
|
|
4329
|
+
E("div", Qn, [
|
|
4330
|
+
(oe(), Oe(ta(O(T.comp + "Operate")), {
|
|
4331
|
+
itemContents: T == null ? void 0 : T.compData,
|
|
4332
|
+
originalItemContents: (t = (me = P.value) == null ? void 0 : me.find((p, m) => m === $)) == null ? void 0 : t.compData,
|
|
4333
|
+
onChange: (p) => ce(p, T, $)
|
|
4334
|
+
}, null, 40, ["itemContents", "originalItemContents", "onChange"]))
|
|
4335
|
+
])
|
|
4336
|
+
];
|
|
4337
|
+
}),
|
|
4338
|
+
_: 1
|
|
4339
|
+
}, 8, ["collapseContents"])
|
|
4340
|
+
])
|
|
4341
|
+
]);
|
|
4342
|
+
};
|
|
4343
|
+
}
|
|
4344
|
+
}, Yn = /* @__PURE__ */ He(Xn, [["__scopeId", "data-v-78d7fc46"]]), Zn = {
|
|
4345
|
+
key: 0,
|
|
4346
|
+
class: "show-content"
|
|
4347
|
+
}, eo = { style: { display: "flex" } }, lo = {
|
|
4348
|
+
__name: "modelShow",
|
|
4349
|
+
setup(r) {
|
|
4350
|
+
const V = ha(al), { itemData: y } = sl(V), i = q([]);
|
|
4351
|
+
Ye(
|
|
4352
|
+
() => y.value,
|
|
4353
|
+
() => {
|
|
4354
|
+
var P;
|
|
4355
|
+
!y.value || ((P = y.value) == null ? void 0 : P.length) === 0 ? i.value = [] : i.value = l(y.value);
|
|
4356
|
+
},
|
|
4357
|
+
{ deep: !0, immediate: !0 }
|
|
4358
|
+
);
|
|
4359
|
+
const o = (P) => Aa(P);
|
|
4360
|
+
return (P, L) => {
|
|
4361
|
+
var w;
|
|
4362
|
+
return ((w = i.value) == null ? void 0 : w.length) > 0 ? (oe(), _e("div", Zn, [
|
|
4363
|
+
(oe(!0), _e(je, null, Je(i.value, (M, ee) => (oe(), _e("div", {
|
|
4364
|
+
class: "item-content",
|
|
4365
|
+
key: ee
|
|
4366
|
+
}, [
|
|
4367
|
+
E("div", eo, we(M.name), 1),
|
|
4368
|
+
(oe(), Oe(ta(o(M.comp)), {
|
|
4369
|
+
itemData: M == null ? void 0 : M.compData,
|
|
4370
|
+
childItemData: M == null ? void 0 : M.itemChildData,
|
|
4371
|
+
key: ee
|
|
4372
|
+
}, null, 8, ["itemData", "childItemData"]))
|
|
4373
|
+
]))), 128))
|
|
4374
|
+
])) : Xe("", !0);
|
|
4375
|
+
};
|
|
4376
|
+
}
|
|
4377
|
+
}, ao = /* @__PURE__ */ He(lo, [["__scopeId", "data-v-3f3e863e"]]), io = { class: "tabs-header" }, so = { class: "tabs-list" }, no = { class: "tab-name" }, oo = { class: "tab-actions" }, uo = ["onClick"], ro = ["onClick"], co = ["onClick"], to = { class: "model-operate" }, po = {
|
|
4378
|
+
class: "model-select",
|
|
4379
|
+
style: { display: "unset" }
|
|
4380
|
+
}, fo = { class: "existing-components" }, ho = { class: "component-list" }, vo = ["onClick"], mo = { class: "component-info" }, yo = { class: "component-type" }, go = { class: "component-name" }, bo = { class: "model-fill" }, ko = {
|
|
4381
|
+
__name: "operate",
|
|
4382
|
+
props: {
|
|
4383
|
+
itemContents: {
|
|
4384
|
+
type: Array,
|
|
4385
|
+
default: () => []
|
|
4386
|
+
}
|
|
4387
|
+
},
|
|
4388
|
+
emits: ["change"],
|
|
4389
|
+
setup(r, { emit: V }) {
|
|
4390
|
+
const y = r, i = V, o = q([]), P = q(!1), L = q(""), w = q({ title: "" }), M = q(-1), ee = q(!1), O = q(-1), ce = q(/* @__PURE__ */ new Map()), ue = q(null), Ce = ha(al), { itemData: te } = sl(Ce), ke = () => {
|
|
4391
|
+
L.value = "新增标签页", w.value.title = "", M.value = -1, P.value = !0;
|
|
4392
|
+
}, T = (F) => {
|
|
4393
|
+
L.value = "修改标签页", w.value.title = o.value[F].title, M.value = F, P.value = !0;
|
|
4394
|
+
}, $ = (F) => {
|
|
4395
|
+
const u = p(F);
|
|
4396
|
+
ce.value.delete(u), o.value.splice(F, 1), G();
|
|
4397
|
+
}, me = () => {
|
|
4398
|
+
if (w.value.title.trim()) {
|
|
4399
|
+
if (M.value === -1) {
|
|
4400
|
+
const F = {
|
|
4401
|
+
title: w.value.title,
|
|
4402
|
+
value: w.value.title,
|
|
4403
|
+
label: w.value.title,
|
|
4404
|
+
children: [],
|
|
4405
|
+
id: t()
|
|
4406
|
+
};
|
|
4407
|
+
o.value.push(F);
|
|
4408
|
+
} else
|
|
4409
|
+
o.value[M.value].title = w.value.title, o.value[M.value].value = w.value.title, o.value[M.value].label = w.value.title;
|
|
4410
|
+
P.value = !1, G();
|
|
4411
|
+
}
|
|
4412
|
+
}, t = () => `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, p = (F) => {
|
|
4413
|
+
const u = o.value[F];
|
|
4414
|
+
return u.id || (u.id = t()), u.id;
|
|
4415
|
+
}, m = (F) => {
|
|
4416
|
+
var J;
|
|
4417
|
+
O.value = F;
|
|
4418
|
+
const u = p(F);
|
|
4419
|
+
ue.value = l(te.value);
|
|
4420
|
+
let X = ce.value.get(u);
|
|
4421
|
+
!X && ((J = o.value[F].children) == null ? void 0 : J.length) > 0 && (X = De(o.value[F].children)), X ? Ce.setItemData(l(X)) : Ce.setItemData([]), ee.value = !0;
|
|
4422
|
+
}, b = Da(() => {
|
|
4423
|
+
const F = Ia(al), u = sl(F).itemData.value;
|
|
4424
|
+
return console.log("可用组件数据", u), !u || !Array.isArray(u) ? [] : u.filter((X) => {
|
|
4425
|
+
var J;
|
|
4426
|
+
if (X.comp === "Tabs" && O.value >= 0) {
|
|
4427
|
+
const de = p(O.value);
|
|
4428
|
+
if ((J = X.compData) == null ? void 0 : J.some(
|
|
4429
|
+
(R) => {
|
|
4430
|
+
var K;
|
|
4431
|
+
return R.key === "stepList" && ((K = R.contents) == null ? void 0 : K.some((j) => j.id === de));
|
|
4432
|
+
}
|
|
4433
|
+
)) return !1;
|
|
4434
|
+
}
|
|
4435
|
+
return !0;
|
|
4436
|
+
});
|
|
4437
|
+
}), re = (F) => ({
|
|
4438
|
+
Table: "表格",
|
|
4439
|
+
Form: "表单",
|
|
4440
|
+
Tabs: "标签页",
|
|
4441
|
+
Chart: "图表",
|
|
4442
|
+
Card: "卡片"
|
|
4443
|
+
})[F] || F, be = (F) => {
|
|
4444
|
+
var u;
|
|
4445
|
+
try {
|
|
4446
|
+
const X = l(F);
|
|
4447
|
+
X.id = Date.now() + Math.random(), X.comp === "Tabs" && ((u = X.compData) == null || u.forEach((de) => {
|
|
4448
|
+
de.key === "stepList" && de.contents && de.contents.forEach((Q) => {
|
|
4449
|
+
Q.id = t();
|
|
4450
|
+
});
|
|
4451
|
+
}));
|
|
4452
|
+
const J = l(te.value);
|
|
4453
|
+
J.push(X), Ce.setItemData(J);
|
|
4454
|
+
} catch (X) {
|
|
4455
|
+
console.error("添加组件失败:", X);
|
|
4456
|
+
}
|
|
4457
|
+
}, De = (F) => F.map((u) => {
|
|
4458
|
+
var X;
|
|
4459
|
+
switch (u.type) {
|
|
4460
|
+
case "form":
|
|
4461
|
+
return {
|
|
4462
|
+
comp: "Form",
|
|
4463
|
+
name: u.value || "表单",
|
|
4464
|
+
compData: Fe(u.content)
|
|
4465
|
+
};
|
|
4466
|
+
case "table":
|
|
4467
|
+
return {
|
|
4468
|
+
comp: "Table",
|
|
4469
|
+
name: u.value || "表格",
|
|
4470
|
+
compData: _(u.content)
|
|
4471
|
+
};
|
|
4472
|
+
default:
|
|
4473
|
+
return {
|
|
4474
|
+
comp: "Unknown",
|
|
4475
|
+
name: u.value || "",
|
|
4476
|
+
compData: ((X = u.content) == null ? void 0 : X.originalData) || []
|
|
4477
|
+
};
|
|
4478
|
+
}
|
|
4479
|
+
}), Fe = (F) => {
|
|
4480
|
+
if (!F) return [];
|
|
4481
|
+
const u = [];
|
|
4482
|
+
return F.rowContents && u.push({
|
|
4483
|
+
key: "formContent",
|
|
4484
|
+
contents: F.rowContents
|
|
4485
|
+
}), F.buttonValue && u.push({
|
|
4486
|
+
key: "formButton",
|
|
4487
|
+
contents: F.buttonValue
|
|
4488
|
+
}), typeof F.isEnableWrap < "u" && u.push({
|
|
4489
|
+
key: "enableWrap",
|
|
4490
|
+
contents: F.isEnableWrap
|
|
4491
|
+
}), u;
|
|
4492
|
+
}, _ = (F) => [], Y = () => {
|
|
4493
|
+
if (O.value >= 0 && O.value < o.value.length) {
|
|
4494
|
+
const F = p(O.value);
|
|
4495
|
+
ce.value.set(F, l(te.value)), o.value[O.value].children = c(te.value), console.log("保存后的数据", c(te.value));
|
|
4496
|
+
}
|
|
4497
|
+
ee.value = !1, O.value = -1, ue.value = null, G();
|
|
4498
|
+
}, x = () => {
|
|
4499
|
+
ue.value && Ce.setItemData(l(ue.value)), ee.value = !1, O.value = -1, ue.value = null;
|
|
4500
|
+
}, s = () => {
|
|
4501
|
+
ee.value && x();
|
|
4502
|
+
}, c = (F) => {
|
|
4503
|
+
if (!Array.isArray(F))
|
|
4504
|
+
throw new Error("sourceData must be an array");
|
|
4505
|
+
return F.map((u, X) => {
|
|
4506
|
+
if (!u || typeof u != "object")
|
|
4507
|
+
return u;
|
|
4508
|
+
const { comp: J, name: de, compData: Q } = u;
|
|
4509
|
+
switch (J) {
|
|
4510
|
+
case "Form":
|
|
4511
|
+
return {
|
|
4512
|
+
type: "form",
|
|
4513
|
+
content: D(Q || []),
|
|
4514
|
+
value: "表单"
|
|
4515
|
+
};
|
|
4516
|
+
case "Table":
|
|
4517
|
+
return {
|
|
4518
|
+
type: "table",
|
|
4519
|
+
content: I(Q || []),
|
|
4520
|
+
value: "表格"
|
|
4521
|
+
};
|
|
4522
|
+
default:
|
|
4523
|
+
return {
|
|
4524
|
+
type: "xxx",
|
|
4525
|
+
content: z(Q || []),
|
|
4526
|
+
value: ""
|
|
4527
|
+
};
|
|
4528
|
+
}
|
|
4529
|
+
});
|
|
4530
|
+
}, D = (F) => {
|
|
4531
|
+
const u = {
|
|
4532
|
+
formRules: {},
|
|
4533
|
+
rowContents: [],
|
|
4534
|
+
buttonValue: [],
|
|
4535
|
+
rowValues: [],
|
|
4536
|
+
isEnableWrap: !0,
|
|
4537
|
+
isRowFlex: !0,
|
|
4538
|
+
isButtonRow: !0,
|
|
4539
|
+
isEdit: !0,
|
|
4540
|
+
isStartJustify: !0
|
|
4541
|
+
}, X = {
|
|
4542
|
+
formContent: "rowContents",
|
|
4543
|
+
enableWrap: "isEnableWrap",
|
|
4544
|
+
formButton: "buttonValue"
|
|
4545
|
+
};
|
|
4546
|
+
return F.forEach((J, de) => {
|
|
4547
|
+
if (!J || typeof J != "object") {
|
|
4548
|
+
console.warn(`Invalid config at index ${de}:`, J);
|
|
4549
|
+
return;
|
|
4550
|
+
}
|
|
4551
|
+
const { key: Q, contents: R } = J, K = X[Q];
|
|
4552
|
+
if (!K) {
|
|
4553
|
+
console.warn(`Unknown Form config key: ${Q}`);
|
|
4554
|
+
return;
|
|
4555
|
+
}
|
|
4556
|
+
Q === "enableWrap" ? u[K] = !!R : u[K] = Array.isArray(R) ? R : [];
|
|
4557
|
+
}), u;
|
|
4558
|
+
}, I = (F) => {
|
|
4559
|
+
const u = {
|
|
4560
|
+
columns: [],
|
|
4561
|
+
tableData: [],
|
|
4562
|
+
extraButton: [],
|
|
4563
|
+
rowButton: [],
|
|
4564
|
+
currentPage: 0,
|
|
4565
|
+
total: 0,
|
|
4566
|
+
pageSize: 0,
|
|
4567
|
+
isShowPagination: !0,
|
|
4568
|
+
isShowEdit: !0,
|
|
4569
|
+
isMoveColumn: !0,
|
|
4570
|
+
isShowDelete: !0
|
|
4571
|
+
}, X = {
|
|
4572
|
+
header: "columns",
|
|
4573
|
+
tableContents: "tableData"
|
|
4574
|
+
};
|
|
4575
|
+
return F.forEach((J, de) => {
|
|
4576
|
+
if (!J || typeof J != "object") {
|
|
4577
|
+
console.warn(`Invalid config at index ${de}:`, J);
|
|
4578
|
+
return;
|
|
4579
|
+
}
|
|
4580
|
+
const { key: Q, contents: R } = J, K = X[Q];
|
|
4581
|
+
if (!K) {
|
|
4582
|
+
console.warn(`Unknown Table config key: ${Q}`);
|
|
4583
|
+
return;
|
|
4584
|
+
}
|
|
4585
|
+
u[K] = Array.isArray(R) ? R : [];
|
|
4586
|
+
}), u;
|
|
4587
|
+
}, z = (F) => (console.log("Default conversion logic - to be implemented"), {
|
|
4588
|
+
originalData: F,
|
|
4589
|
+
processed: !1,
|
|
4590
|
+
componentType: "unknown"
|
|
4591
|
+
}), G = () => {
|
|
4592
|
+
const F = [
|
|
4593
|
+
{
|
|
4594
|
+
key: "stepList",
|
|
4595
|
+
contents: o.value
|
|
4596
|
+
}
|
|
4597
|
+
];
|
|
4598
|
+
i("change", F);
|
|
4599
|
+
};
|
|
4600
|
+
return Ye(
|
|
4601
|
+
() => y.itemContents,
|
|
4602
|
+
(F) => {
|
|
4603
|
+
if (F && F.length > 0) {
|
|
4604
|
+
const u = F.find((X) => X.key === "stepList");
|
|
4605
|
+
u && u.contents && (o.value = u.contents.map((X) => ({
|
|
4606
|
+
title: X.title || "",
|
|
4607
|
+
value: X.value || X.title || "",
|
|
4608
|
+
label: X.label || X.title || "",
|
|
4609
|
+
children: X.children || [],
|
|
4610
|
+
id: X.id || t()
|
|
4611
|
+
})));
|
|
4612
|
+
}
|
|
4613
|
+
},
|
|
4614
|
+
{ immediate: !0, deep: !0 }
|
|
4615
|
+
), (F, u) => {
|
|
4616
|
+
const X = Ue("svg-icon"), J = Ue("el-input"), de = Ue("el-form-item"), Q = Ue("el-form");
|
|
4617
|
+
return oe(), _e("div", null, [
|
|
4618
|
+
E("div", io, [
|
|
4619
|
+
u[6] || (u[6] = E("h4", null, "标签页管理", -1)),
|
|
4620
|
+
E("button", { onClick: ke }, [
|
|
4621
|
+
ie(X, {
|
|
4622
|
+
name: "Plus",
|
|
4623
|
+
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
4624
|
+
}),
|
|
4625
|
+
u[5] || (u[5] = Be(" 新增标签页 "))
|
|
4626
|
+
])
|
|
4627
|
+
]),
|
|
4628
|
+
E("div", so, [
|
|
4629
|
+
(oe(!0), _e(je, null, Je(o.value, (R, K) => (oe(), _e("div", {
|
|
4630
|
+
class: "tab-item",
|
|
4631
|
+
key: K
|
|
4632
|
+
}, [
|
|
4633
|
+
E("span", no, we(R.title), 1),
|
|
4634
|
+
E("div", oo, [
|
|
4635
|
+
E("button", {
|
|
4636
|
+
onClick: (j) => T(K)
|
|
4637
|
+
}, "修改标题", 8, uo),
|
|
4638
|
+
E("button", {
|
|
4639
|
+
onClick: (j) => m(K)
|
|
4640
|
+
}, "布局调整", 8, ro),
|
|
4641
|
+
E("button", {
|
|
4642
|
+
onClick: (j) => $(K)
|
|
4643
|
+
}, "删除", 8, co)
|
|
4644
|
+
])
|
|
4645
|
+
]))), 128))
|
|
4646
|
+
]),
|
|
4647
|
+
ie(ll, {
|
|
4648
|
+
modelValue: P.value,
|
|
4649
|
+
"onUpdate:modelValue": u[2] || (u[2] = (R) => P.value = R),
|
|
4650
|
+
title: L.value,
|
|
4651
|
+
onBeforeDestroy: u[3] || (u[3] = (R) => P.value = !1)
|
|
4652
|
+
}, {
|
|
4653
|
+
footer: ve(() => [
|
|
4654
|
+
E("button", {
|
|
4655
|
+
onClick: u[1] || (u[1] = (R) => P.value = !1)
|
|
4656
|
+
}, "取消"),
|
|
4657
|
+
E("button", {
|
|
4658
|
+
type: "primary",
|
|
4659
|
+
onClick: me
|
|
4660
|
+
}, "确定")
|
|
4661
|
+
]),
|
|
4662
|
+
default: ve(() => [
|
|
4663
|
+
ie(Q, {
|
|
4664
|
+
model: w.value,
|
|
4665
|
+
"label-width": "80px"
|
|
4666
|
+
}, {
|
|
4667
|
+
default: ve(() => [
|
|
4668
|
+
ie(de, {
|
|
4669
|
+
label: "标签名称",
|
|
4670
|
+
required: ""
|
|
4671
|
+
}, {
|
|
4672
|
+
default: ve(() => [
|
|
4673
|
+
ie(J, {
|
|
4674
|
+
modelValue: w.value.title,
|
|
4675
|
+
"onUpdate:modelValue": u[0] || (u[0] = (R) => w.value.title = R),
|
|
4676
|
+
placeholder: "请输入标签页名称"
|
|
4677
|
+
}, null, 8, ["modelValue"])
|
|
4678
|
+
]),
|
|
4679
|
+
_: 1
|
|
4680
|
+
})
|
|
4681
|
+
]),
|
|
4682
|
+
_: 1
|
|
4683
|
+
}, 8, ["model"])
|
|
4684
|
+
]),
|
|
4685
|
+
_: 1
|
|
4686
|
+
}, 8, ["modelValue", "title"]),
|
|
4687
|
+
ie(ll, {
|
|
4688
|
+
modelValue: ee.value,
|
|
4689
|
+
"onUpdate:modelValue": u[4] || (u[4] = (R) => ee.value = R),
|
|
4690
|
+
title: "布局调整",
|
|
4691
|
+
fullScreen: "",
|
|
4692
|
+
onBeforeDestroy: s
|
|
4693
|
+
}, {
|
|
4694
|
+
footer: ve(() => [
|
|
4695
|
+
E("button", { onClick: x }, "取消"),
|
|
4696
|
+
E("button", { onClick: Y }, "确定")
|
|
4697
|
+
]),
|
|
4698
|
+
default: ve(() => [
|
|
4699
|
+
E("div", to, [
|
|
4700
|
+
E("div", po, [
|
|
4701
|
+
ie(Pn),
|
|
4702
|
+
E("div", fo, [
|
|
4703
|
+
u[8] || (u[8] = E("h5", null, "添加已有组件", -1)),
|
|
4704
|
+
E("div", ho, [
|
|
4705
|
+
(oe(!0), _e(je, null, Je(b.value, (R) => (oe(), _e("div", {
|
|
4706
|
+
key: R.id,
|
|
4707
|
+
class: "component-item",
|
|
4708
|
+
onClick: (K) => be(R)
|
|
4709
|
+
}, [
|
|
4710
|
+
E("div", mo, [
|
|
4711
|
+
E("span", yo, we(re(R.comp)), 1),
|
|
4712
|
+
E("span", go, we(R.name), 1)
|
|
4713
|
+
]),
|
|
4714
|
+
u[7] || (u[7] = E("button", { class: "add-btn" }, "添加", -1))
|
|
4715
|
+
], 8, vo))), 128))
|
|
4716
|
+
])
|
|
4717
|
+
])
|
|
4718
|
+
]),
|
|
4719
|
+
(oe(), _e("div", {
|
|
4720
|
+
class: "model-show",
|
|
4721
|
+
key: F.innerWidth
|
|
4722
|
+
}, [
|
|
4723
|
+
ie(ao)
|
|
4724
|
+
])),
|
|
4725
|
+
E("div", bo, [
|
|
4726
|
+
ie(Yn)
|
|
4727
|
+
])
|
|
4728
|
+
])
|
|
4729
|
+
]),
|
|
4730
|
+
_: 1
|
|
4731
|
+
}, 8, ["modelValue"])
|
|
4732
|
+
]);
|
|
4733
|
+
};
|
|
4734
|
+
}
|
|
4735
|
+
}, _o = /* @__PURE__ */ He(ko, [["__scopeId", "data-v-151936e8"]]), Co = q([
|
|
4736
|
+
{
|
|
4737
|
+
name: "表格",
|
|
4738
|
+
type: "table",
|
|
4739
|
+
comp: "Table",
|
|
4740
|
+
icon: "Table"
|
|
4741
|
+
},
|
|
4742
|
+
{
|
|
4743
|
+
name: "表单",
|
|
4744
|
+
type: "form",
|
|
4745
|
+
comp: "Form",
|
|
4746
|
+
icon: "Form"
|
|
4747
|
+
},
|
|
4748
|
+
{
|
|
4749
|
+
name: "折叠",
|
|
4750
|
+
type: "fold",
|
|
4751
|
+
comp: "Fold",
|
|
4752
|
+
icon: "Fold"
|
|
4753
|
+
},
|
|
4754
|
+
{
|
|
4755
|
+
name: "头像",
|
|
4756
|
+
type: "avatar",
|
|
4757
|
+
comp: "AvatarUpload",
|
|
4758
|
+
icon: "Avatar"
|
|
4759
|
+
},
|
|
4760
|
+
{
|
|
4761
|
+
name: "签名",
|
|
4762
|
+
type: "signature",
|
|
4763
|
+
comp: "Signature",
|
|
4764
|
+
icon: "Signature"
|
|
4765
|
+
},
|
|
4766
|
+
{
|
|
4767
|
+
name: "步骤条",
|
|
4768
|
+
type: "step",
|
|
4769
|
+
comp: "Step",
|
|
4770
|
+
icon: "Step"
|
|
4771
|
+
},
|
|
4772
|
+
{
|
|
4773
|
+
name: "时间线",
|
|
4774
|
+
type: "timeLine",
|
|
4775
|
+
comp: "TimeLine",
|
|
4776
|
+
icon: "TimeLine"
|
|
4777
|
+
},
|
|
4778
|
+
{
|
|
4779
|
+
name: "标签页",
|
|
4780
|
+
type: "tabs",
|
|
4781
|
+
comp: "Tabs",
|
|
4782
|
+
icon: "Tabs"
|
|
4783
|
+
}
|
|
4784
|
+
]), wo = {
|
|
4785
|
+
TABLE: Za,
|
|
4786
|
+
FORM: Ba,
|
|
4787
|
+
TABLEOPERATE: ws,
|
|
4788
|
+
FORMOPERATE: Fa,
|
|
4789
|
+
FOLD: Zs,
|
|
4790
|
+
CALCULATOR: on,
|
|
4791
|
+
METHODBUTTON: hn,
|
|
4792
|
+
AVATARUPLOAD: mi,
|
|
4793
|
+
SIGNATURE: vi,
|
|
4794
|
+
FORMTOP: Ba,
|
|
4795
|
+
STEP: xn,
|
|
4796
|
+
STEPOPERATE: Ws,
|
|
4797
|
+
TIMELINE: Bn,
|
|
4798
|
+
TIMELINEOPERATE: Qs,
|
|
4799
|
+
FORMTOPOPERATE: Fa,
|
|
4800
|
+
SIGNATUREOPERATE: wn,
|
|
4801
|
+
AVATARUPLOADOPERATE: yn,
|
|
4802
|
+
TABS: On,
|
|
4803
|
+
TABSOPERATE: _o
|
|
4804
|
+
// 添加其他组件...
|
|
4805
|
+
};
|
|
4806
|
+
function Aa(r) {
|
|
4807
|
+
return wo[r == null ? void 0 : r.toUpperCase()] || null;
|
|
4808
|
+
}
|
|
4809
|
+
export {
|
|
4810
|
+
da as a,
|
|
4811
|
+
Ro as b,
|
|
4812
|
+
Uo as c,
|
|
4813
|
+
Oo as d,
|
|
4814
|
+
Vo as e,
|
|
4815
|
+
Po as f,
|
|
4816
|
+
Aa as g,
|
|
4817
|
+
jo as h,
|
|
4818
|
+
bi as i,
|
|
4819
|
+
Ko as j,
|
|
4820
|
+
Ca as k,
|
|
4821
|
+
dn as o,
|
|
4822
|
+
Co as s
|
|
4823
|
+
};
|