ss-component-new 1.1.646 → 1.1.647
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-CZ3UA9V8.js → index-4G6sudZa.js} +5 -5
- package/dist/{index-xKn2s2bd.js → index-6bxYAAdE.js} +2 -2
- package/dist/{index-DDRBlwKk.cjs → index-B1hxh2di.cjs} +1 -1
- package/dist/{index-BzYpWVCe.cjs → index-B5jfLywn.cjs} +1 -1
- package/dist/{index-B5AM-2ag.js → index-BHPcjVK9.js} +1 -1
- package/dist/{index-D7w0srgW.js → index-BJO5oW-6.js} +1 -1
- package/dist/index-BOuwY_BP.js +4734 -0
- package/dist/{index-DwfQ1Hho.js → index-BSjgPb_u.js} +1 -1
- package/dist/{index-DTso5HNR.js → index-BiKU5NYv.js} +3 -3
- package/dist/{index-Di4l7QZS.cjs → index-Bsqef1GK.cjs} +1 -1
- package/dist/{index-CGBdaBEB.js → index-C-r2A3LQ.js} +1 -1
- package/dist/{index-DxifGyuJ.cjs → index-C4h0etKA.cjs} +1 -1
- package/dist/{index-Buq7seA-.cjs → index-C5HGe8wB.cjs} +1 -1
- package/dist/{index-BwL5P_4d.cjs → index-CMLAuXhA.cjs} +1 -1
- package/dist/{index-DbEj5Glw.cjs → index-CRxQmdqr.cjs} +1 -1
- package/dist/{index-D2JiHpOK.js → index-CSP32Cpe.js} +2 -2
- package/dist/index-CUAI6KvP.cjs +1 -0
- package/dist/{index-CuYXPXzv.js → index-CfoCO3b_.js} +10 -10
- package/dist/{index-FCa5J2My.cjs → index-CjB80Fuo.cjs} +1 -1
- package/dist/{index-Dj1i5uAr.cjs → index-CxSyxnig.cjs} +1 -1
- package/dist/{index-CO4L2lg8.cjs → index-D9RJOgdq.cjs} +1 -1
- package/dist/{index-4J7QJA-u.js → index-DB0h-mJg.js} +2 -2
- package/dist/{index-D4_YOBIi.js → index-DFeluCs6.js} +2 -2
- package/dist/{index-BkfgbqsI.js → index-DO2ACn4u.js} +2 -2
- package/dist/{index-DqDAbndx.js → index-D__jheUt.js} +2 -2
- package/dist/{index-BncFuQHR.cjs → index-DfOFUswy.cjs} +1 -1
- package/dist/{index-DHstCHaF.cjs → index-Dg5bZiqz.cjs} +1 -1
- package/dist/{index-Dnu5jaEK.cjs → index-Dk3SU9zD.cjs} +1 -1
- package/dist/{index-BfMPG7VD.js → index-DoNIQvZN.js} +1 -1
- package/dist/{index-D9v_Qwvu.cjs → index-DsvjWAeE.cjs} +1 -1
- package/dist/{index-CdMA4d-J.js → index-DuLknvYQ.js} +2 -2
- package/dist/{index-Bf7QxuIC.js → index-DwmNg-Kj.js} +1 -1
- package/dist/{index-DXQ-iwhC.cjs → index-XGGpr3tc.cjs} +1 -1
- package/dist/{index-DtwvI-rn.cjs → index-fxYQxMly.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DLjUVVle.cjs → index.vue_vue_type_script_setup_true_lang-B9A4aq25.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DKitPTZF.js → index.vue_vue_type_script_setup_true_lang-BAZB0lsu.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-orvz-niQ.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CkjKzR_j.cjs} +81 -81
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C6RGbzCD.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-SvIkwdoj.js} +5017 -4980
- package/dist/{index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-BNI5SH7g.js → index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-DCtL59xZ.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-BZdjrdnR.cjs → index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-Sxrl7ymP.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-BADNHInP.cjs → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-ZVFoMnuN.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-C0Cuo2fs.js → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-nEOADWRQ.js} +4 -4
- package/dist/{main-CeZcKcDo.cjs → main-C3eHN5Lg.cjs} +1 -1
- package/dist/{main-DfhsUZVX.js → main-Dup_MZ-f.js} +2 -2
- 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.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-BqLzC6cZ.js → threeModel-BSrAOw0V.js} +1 -1
- package/dist/{threeModel-CaTplkcd.cjs → threeModel-D_GxJqyT.cjs} +1 -1
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-BIHyI7Le.js +0 -4731
- package/dist/index-CK_W5psL.cjs +0 -1
|
@@ -0,0 +1,4734 @@
|
|
|
1
|
+
import { b as Xa, a as Ua, s as Ya } from "./index-DO2ACn4u.js";
|
|
2
|
+
import { ref as Z, watch as Ve, createElementBlock as ge, openBlock as te, createVNode as se, createBlock as Oe, createCommentVNode as Qe, resolveComponent as Te, Fragment as Se, renderList as Pe, createElementVNode as T, toDisplayString as we, withCtx as ye, createTextVNode as $e, defineComponent as kl, reactive as oa, resolveDynamicComponent as zl, unref as Jl, computed as ua, renderSlot as Gl, createSlots as Za, mergeProps as es, normalizeStyle as ls, withModifiers as Vl } from "vue";
|
|
3
|
+
import { bR as ja, c as l, p as Me, s as He, d as Hl, E as Xe, g as ml, f as as, bN as Na, u as Ka, bO as Ta, bM as Sa } from "./menu-Cl42pSjw.js";
|
|
4
|
+
import { e as ze, f as ss, s as Ge, h as Va, a as Oa, i as is, j as ns, b as os } from "./index-D__jheUt.js";
|
|
5
|
+
import { u as us, a as rs, F as Fa, v as cs, I as nl, w as ts, x as Ke, y as Dl, z as il, A as gl, B as ea, g as vl, C as ds, D as ps, E as fs, G as hs, H as vs, J as La, K as ms, L as ys, M as bs } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-SvIkwdoj.js";
|
|
6
|
+
import { u as ra } from "./login-BiEodQd9.js";
|
|
7
|
+
import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
import { E as dl } from "./index-CnDYddiq.js";
|
|
9
|
+
import { u as ca } from "./modelComp-DWx0hNJL.js";
|
|
10
|
+
import { s as gs, a as ks } from "./index-DuLknvYQ.js";
|
|
11
|
+
import _s from "./index-CZtXRS3l.js";
|
|
12
|
+
const Cs = (r) => r.match(/\((.*)\)/)[1], ws = ja("formComp", {
|
|
13
|
+
state: () => ({
|
|
14
|
+
objUrl: [],
|
|
15
|
+
blobUrls: []
|
|
16
|
+
}),
|
|
17
|
+
actions: {
|
|
18
|
+
setObjUrl(r) {
|
|
19
|
+
this.objUrl = r;
|
|
20
|
+
},
|
|
21
|
+
setBlobUrls(r) {
|
|
22
|
+
this.blobUrls = r;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}), Ds = async (r) => {
|
|
26
|
+
var R, z, _, V, Y, O, ne;
|
|
27
|
+
let y = (z = (R = l(r)) == null ? void 0 : R.optionUrl) == null ? void 0 : z.menuSelect, s = [];
|
|
28
|
+
y == null || y.forEach((X) => {
|
|
29
|
+
});
|
|
30
|
+
let a = "";
|
|
31
|
+
const t = await us(y);
|
|
32
|
+
if (t == null || t.forEach((X) => {
|
|
33
|
+
var fe, ie, ee, D;
|
|
34
|
+
(X == null ? void 0 : X.name) === (((D = (ee = (ie = (fe = l(r)) == null ? void 0 : fe.optionUrl) == null ? void 0 : ie.groupSelect) == null ? void 0 : ee[0]) == null ? void 0 : D.replaceAll("'", "")) ?? "") && (a = X == null ? void 0 : X.id);
|
|
35
|
+
}), a !== "") {
|
|
36
|
+
const X = (_ = t == null ? void 0 : t[0]) == null ? void 0 : _.compData;
|
|
37
|
+
let fe = (Y = (V = X == null ? void 0 : X.find((ee) => (ee == null ? void 0 : ee.key) === "header")) == null ? void 0 : V.contents) == null ? void 0 : Y.map((ee) => ee == null ? void 0 : ee.label), ie = (ne = (O = X == null ? void 0 : X.find((ee) => (ee == null ? void 0 : ee.key) === "tableContents")) == null ? void 0 : O.contents) == null ? void 0 : ne.map((ee) => (ee = ee == null ? void 0 : ee.filter((D) => !(D != null && D.id)), ee));
|
|
38
|
+
ie == null || ie.forEach((ee) => {
|
|
39
|
+
s.push(rs(ee, fe));
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return s;
|
|
43
|
+
}, As = { class: "form-content" }, Is = {
|
|
44
|
+
__name: "index",
|
|
45
|
+
props: {
|
|
46
|
+
formRules: Object,
|
|
47
|
+
itemData: {
|
|
48
|
+
type: Array,
|
|
49
|
+
default: () => []
|
|
50
|
+
},
|
|
51
|
+
childItemData: {
|
|
52
|
+
type: Array,
|
|
53
|
+
default: () => []
|
|
54
|
+
},
|
|
55
|
+
index: Number
|
|
56
|
+
},
|
|
57
|
+
emits: ["change", "contentChange"],
|
|
58
|
+
setup(r, { emit: y }) {
|
|
59
|
+
const s = r, a = y, t = Z([]), R = Z(!1), z = Z(!1), _ = Z([]), V = Z(), Y = Xa(Me), O = ws(Me), ne = Z(!1), X = Z(), fe = ra(Me), { loginUserInfo: ie } = He(fe), ee = Z(), D = Z(!0), x = (c, d) => {
|
|
60
|
+
ee.value === d ? D.value = !1 : D.value = !0, ee.value = d == null ? void 0 : d.changeProp;
|
|
61
|
+
}, de = async (c) => {
|
|
62
|
+
var A, q, me, re, oe, i, I, $, k, le;
|
|
63
|
+
let d = [];
|
|
64
|
+
if ((A = c == null ? void 0 : c.toString()) != null && A.includes(".stl") || (q = c == null ? void 0 : c.toString()) != null && q.includes(".STL") || (me = c == null ? void 0 : c.toString()) != null && me.includes(".obj") || (re = c == null ? void 0 : c.toString()) != null && re.includes(".mtl") || (oe = c == null ? void 0 : c.toString()) != null && oe.includes(".urdf")) {
|
|
65
|
+
let K, G = [], u = {};
|
|
66
|
+
if (Array.isArray(c) ? K = c : K = c == null ? void 0 : c.split(","), K == null || K.forEach((v) => {
|
|
67
|
+
v.includes(".mtl") ? G.push(v) : u.blob = u.blob ? u.blob + "," + v : v;
|
|
68
|
+
}), (G == null ? void 0 : G.length) > 0 && (u.mtlBlobs = G), (I = (i = Object.values(u)) == null ? void 0 : i[0]) != null && I.includes("http:"))
|
|
69
|
+
d.push(u);
|
|
70
|
+
else {
|
|
71
|
+
const v = new Blob([u.blob], {
|
|
72
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
73
|
+
});
|
|
74
|
+
let F = URL.createObjectURL(v), H = "";
|
|
75
|
+
($ = c == null ? void 0 : c.split("/")) == null || $.forEach((ce, M) => {
|
|
76
|
+
var j;
|
|
77
|
+
M === ((j = c == null ? void 0 : c.split("/")) == null ? void 0 : j.length) - 1 && (H = ce);
|
|
78
|
+
}), (k = u.blob) != null && k.includes(".stl") && (H = (H == null ? void 0 : H.replaceAll(">", "")) + ".urdf"), V.value = [{
|
|
79
|
+
name: H,
|
|
80
|
+
blobUrl: F
|
|
81
|
+
}], z.value = !0;
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
const K = await Hl.get(c, {
|
|
85
|
+
responseType: "blob",
|
|
86
|
+
headers: {
|
|
87
|
+
"Content-Type": "application/json"
|
|
88
|
+
}
|
|
89
|
+
}), G = new Blob([K.data], {
|
|
90
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
91
|
+
});
|
|
92
|
+
let u = URL.createObjectURL(G), v = "";
|
|
93
|
+
(le = c == null ? void 0 : c.split("/")) == null || le.forEach((F, H) => {
|
|
94
|
+
var ce;
|
|
95
|
+
H === ((ce = c == null ? void 0 : c.split("/")) == null ? void 0 : ce.length) - 1 && (v = F);
|
|
96
|
+
}), V.value = [{
|
|
97
|
+
name: v,
|
|
98
|
+
blobUrl: u
|
|
99
|
+
}], z.value = !0;
|
|
100
|
+
}
|
|
101
|
+
(d == null ? void 0 : d.length) > 0 && O.setBlobUrls(d);
|
|
102
|
+
}, p = () => {
|
|
103
|
+
z.value = !1;
|
|
104
|
+
}, f = (c) => {
|
|
105
|
+
var re, oe, i, I;
|
|
106
|
+
const d = (oe = (re = l(s.itemData)) == null ? void 0 : re.find(($) => ($ == null ? void 0 : $.key) === "formContent")) == null ? void 0 : oe.contents, A = l(c.content);
|
|
107
|
+
let q = {};
|
|
108
|
+
A && ((i = Object.values(A)) == null ? void 0 : i.length) > 0 && ((I = Object.values(A)) == null || I.forEach(($, k) => {
|
|
109
|
+
q[d[k].key] = $;
|
|
110
|
+
}));
|
|
111
|
+
const me = {
|
|
112
|
+
content: q,
|
|
113
|
+
index: s == null ? void 0 : s.index,
|
|
114
|
+
buttonName: c == null ? void 0 : c.buttonName
|
|
115
|
+
};
|
|
116
|
+
a("change", me);
|
|
117
|
+
}, b = async (c) => {
|
|
118
|
+
var $, k, le, K, G, u, v, F, H, ce, M, j;
|
|
119
|
+
if (!c) return;
|
|
120
|
+
const d = l(s.itemData), A = d == null ? void 0 : d.map((E) => {
|
|
121
|
+
var w;
|
|
122
|
+
return (E == null ? void 0 : E.key) === "formContent" && ((w = E.contents) == null || w.map((g, L) => {
|
|
123
|
+
var n, P, _e, N, ue, be, pe, e, o, h, m, C, B, Q, U, S, J;
|
|
124
|
+
return g.type = g != null && g.type ? g.type : (N = (_e = (P = (n = g == null ? void 0 : g.key) == null ? void 0 : n.split("$")) == null ? void 0 : P[1]) == null ? void 0 : _e.split("(")) != null && N[0] ? (be = (ue = Fa) == null ? void 0 : ue.find((ve) => {
|
|
125
|
+
var De, he, ae, Ce;
|
|
126
|
+
return (ve == null ? void 0 : ve.key) === ((Ce = (ae = (he = (De = g == null ? void 0 : g.key) == null ? void 0 : De.split("$")) == null ? void 0 : he[1]) == null ? void 0 : ae.split("(")) == null ? void 0 : Ce[0]);
|
|
127
|
+
})) == null ? void 0 : be.value : "Input", g.options = g != null && g.options ? g.options : ((o = (e = (pe = g == null ? void 0 : g.key) == null ? void 0 : pe.split("$")) == null ? void 0 : e[1]) == null ? void 0 : o.length) > 0 ? (B = (C = Cs((m = (h = g == null ? void 0 : g.key) == null ? void 0 : h.split("$")) == null ? void 0 : m[1])) == null ? void 0 : C.split(",")) == null ? void 0 : B.map((ve) => ({
|
|
128
|
+
label: ve,
|
|
129
|
+
value: ve
|
|
130
|
+
})) : [], (Q = g == null ? void 0 : g.key) != null && Q.includes("$") && (g.key = (S = (U = g == null ? void 0 : g.key) == null ? void 0 : U.split("$")) == null ? void 0 : S[0]), g.value = (J = Object.values(c)) == null ? void 0 : J[L], g;
|
|
131
|
+
})), E;
|
|
132
|
+
});
|
|
133
|
+
let q = l(t).value, me = (k = ($ = l(A)) == null ? void 0 : $.find((E) => (E == null ? void 0 : E.key) === "formContent")) == null ? void 0 : k.contents;
|
|
134
|
+
if (q = q == null ? void 0 : q.map((E) => {
|
|
135
|
+
var w;
|
|
136
|
+
return E.value = (w = me == null ? void 0 : me.find((g) => (g == null ? void 0 : g.id) === (E == null ? void 0 : E.id))) == null ? void 0 : w.value, E;
|
|
137
|
+
}), !D.value) {
|
|
138
|
+
a("contentChange", {
|
|
139
|
+
contents: A,
|
|
140
|
+
index: s.index
|
|
141
|
+
});
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
let re = "", oe = (G = (K = (le = l(A)) == null ? void 0 : le.find((E) => (E == null ? void 0 : E.key) === "formContent")) == null ? void 0 : K.contents) == null ? void 0 : G.find((E, w) => {
|
|
145
|
+
var g, L;
|
|
146
|
+
return (E == null ? void 0 : E.label) === ee.value || w.toString() === ((L = (g = ee.value) == null ? void 0 : g.split("t")) == null ? void 0 : L[1].toString());
|
|
147
|
+
});
|
|
148
|
+
if ((F = (v = (u = l(A)) == null ? void 0 : u.find((E) => (E == null ? void 0 : E.key) === "formContent")) == null ? void 0 : v.contents) == null || F.forEach((E) => {
|
|
149
|
+
var w, g, L, n, P;
|
|
150
|
+
re === "" && ((L = (g = (w = E == null ? void 0 : E.optionUrl) == null ? void 0 : w.groupSelect) == null ? void 0 : g[1]) != null && L.includes("[")) && (re = (P = (n = E == null ? void 0 : E.optionUrl) == null ? void 0 : n.groupSelect) == null ? void 0 : P[1]);
|
|
151
|
+
}), (H = oe == null ? void 0 : oe.optionUrl) != null && H.menuSelect && D.value) {
|
|
152
|
+
let E = await Ds(oe), w;
|
|
153
|
+
if (E == null || E.forEach((g) => {
|
|
154
|
+
var L, n, P, _e, N, ue, be, pe, e, o;
|
|
155
|
+
re === ((n = (L = oe == null ? void 0 : oe.optionUrl) == null ? void 0 : L.groupSelect) == null ? void 0 : n[1]) && ((N = (_e = (P = oe == null ? void 0 : oe.optionUrl) == null ? void 0 : P.groupSelect) == null ? void 0 : _e[1]) != null && N.includes("[")) && ((o = l(g)) == null ? void 0 : o[(e = (pe = (be = (ue = oe == null ? void 0 : oe.optionUrl) == null ? void 0 : ue.groupSelect) == null ? void 0 : be[1]) == null ? void 0 : pe.replaceAll("[", "")) == null ? void 0 : e.replaceAll("]", "")]) === (oe == null ? void 0 : oe.value) && (w = g);
|
|
156
|
+
}), w) {
|
|
157
|
+
let g = l(q);
|
|
158
|
+
g = g == null ? void 0 : g.map((n) => {
|
|
159
|
+
var P, _e, N, ue, be, pe, e, o, h, m, C;
|
|
160
|
+
return (w != null && w[n == null ? void 0 : n.label] || w != null && w[(ue = (N = (_e = (P = n == null ? void 0 : n.optionUrl) == null ? void 0 : P.groupSelect) == null ? void 0 : _e[1]) == null ? void 0 : N.replaceAll("[", "")) == null ? void 0 : ue.replaceAll("]", "")]) && ((e = (pe = (be = n == null ? void 0 : n.optionUrl) == null ? void 0 : be.groupSelect) == null ? void 0 : pe[1]) != null && e.includes("[")) && (n.value = (w == null ? void 0 : w[n == null ? void 0 : n.label]) || (w == null ? void 0 : w[(C = (m = (h = (o = n == null ? void 0 : n.optionUrl) == null ? void 0 : o.groupSelect) == null ? void 0 : h[1]) == null ? void 0 : m.replaceAll("[", "")) == null ? void 0 : C.replaceAll("]", "")])), n;
|
|
161
|
+
}), t.value = g;
|
|
162
|
+
let L = l(g);
|
|
163
|
+
L = L == null ? void 0 : L.map((n) => {
|
|
164
|
+
var P, _e, N, ue;
|
|
165
|
+
return (_e = (P = n == null ? void 0 : n.optionUrl) == null ? void 0 : P.menuSelect) != null && _e.some((be) => be == null ? void 0 : be.includes) && (n.optionUrl.menuSelect = (ue = (N = n == null ? void 0 : n.optionUrl) == null ? void 0 : N.menuSelect) == null ? void 0 : ue.map((be) => {
|
|
166
|
+
var pe, e, o, h;
|
|
167
|
+
if (be != null && be.includes("[")) {
|
|
168
|
+
let m = (e = (pe = be == null ? void 0 : be.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : pe.split(":")) == null ? void 0 : e[1];
|
|
169
|
+
be = (h = (o = l(g)) == null ? void 0 : o.find((C) => (C == null ? void 0 : C.label) === m)) == null ? void 0 : h.value;
|
|
170
|
+
}
|
|
171
|
+
return be;
|
|
172
|
+
})), n;
|
|
173
|
+
}), t.value = L;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
D.value = !1, a("contentChange", {
|
|
177
|
+
contents: A,
|
|
178
|
+
index: s.index
|
|
179
|
+
});
|
|
180
|
+
let i = [], I = [];
|
|
181
|
+
if ((M = l((ce = A == null ? void 0 : A.find((E) => (E == null ? void 0 : E.key) === "formContent")) == null ? void 0 : ce.contents)) == null || M.forEach((E) => {
|
|
182
|
+
var w;
|
|
183
|
+
Array.isArray(E == null ? void 0 : E.value) && ((w = E == null ? void 0 : E.value) != null && w.find((g) => {
|
|
184
|
+
var L;
|
|
185
|
+
return (L = g == null ? void 0 : g.url) == null ? void 0 : L.includes(".obj");
|
|
186
|
+
})) && (I = E == null ? void 0 : E.value);
|
|
187
|
+
}), (I == null ? void 0 : I.length) > 0) {
|
|
188
|
+
const E = (j = l(I)) == null ? void 0 : j.filter((w) => {
|
|
189
|
+
var g;
|
|
190
|
+
return (g = w == null ? void 0 : w.url) == null ? void 0 : g.includes(".obj");
|
|
191
|
+
});
|
|
192
|
+
E == null || E.forEach((w) => {
|
|
193
|
+
var L, n, P, _e;
|
|
194
|
+
const g = (L = I == null ? void 0 : I.filter((N) => {
|
|
195
|
+
var ue;
|
|
196
|
+
return (N == null ? void 0 : N.name) === (w == null ? void 0 : w.name) && ((ue = N == null ? void 0 : N.url) == null ? void 0 : ue.includes(".mtl"));
|
|
197
|
+
})) == null ? void 0 : L.map((N) => N == null ? void 0 : N.url);
|
|
198
|
+
i.push({
|
|
199
|
+
objUrl: w == null ? void 0 : w.url,
|
|
200
|
+
mtlUrls: ((n = I == null ? void 0 : I.filter((N) => {
|
|
201
|
+
var ue;
|
|
202
|
+
return (N == null ? void 0 : N.name) === (w == null ? void 0 : w.name) && ((ue = N == null ? void 0 : N.url) == null ? void 0 : ue.includes(".mtl"));
|
|
203
|
+
})) == null ? void 0 : n.length) === 1 ? (_e = (P = I == null ? void 0 : I.filter((N) => {
|
|
204
|
+
var ue;
|
|
205
|
+
return (N == null ? void 0 : N.name) === (w == null ? void 0 : w.name) && ((ue = N == null ? void 0 : N.url) == null ? void 0 : ue.includes(".mtl"));
|
|
206
|
+
})) == null ? void 0 : P[0]) == null ? void 0 : _e.url : g
|
|
207
|
+
});
|
|
208
|
+
}), O.setObjUrl(i);
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
return Ve(
|
|
212
|
+
() => s.itemData,
|
|
213
|
+
async () => {
|
|
214
|
+
var re, oe, i, I, $, k, le, K, G, u, v, F, H, ce;
|
|
215
|
+
const c = (re = s.itemData) == null ? void 0 : re.find((M) => (M == null ? void 0 : M.key) === "formContent"), d = (oe = l(s.itemData)) == null ? void 0 : oe.find((M) => (M == null ? void 0 : M.key) === "formButton"), A = (i = l(s.itemData)) == null ? void 0 : i.find((M) => (M == null ? void 0 : M.key) === "formFlex"), q = (I = l(s.itemData)) == null ? void 0 : I.find((M) => (M == null ? void 0 : M.key) === "formWrap"), me = ($ = l(s.itemData)) == null ? void 0 : $.find((M) => (M == null ? void 0 : M.key) === "enableWrap");
|
|
216
|
+
if ((q == null ? void 0 : q.contents) === "纵向" ? R.value = !1 : R.value = !0, ne.value = (me == null ? void 0 : me.contents) === void 0 ? !1 : me == null ? void 0 : me.contents, X.value = typeof (A == null ? void 0 : A.contents) != "boolean" ? !(!(A != null && A.contents) === "" || ((k = A == null ? void 0 : A.contents) == null ? void 0 : k.toUpperCase()) === "VERTICAL") : A == null ? void 0 : A.contents, ((le = c == null ? void 0 : c.contents) == null ? void 0 : le.length) > 0 && Array.isArray(c == null ? void 0 : c.contents)) {
|
|
217
|
+
const M = await ((K = c == null ? void 0 : c.contents) == null ? void 0 : K.map(async (n, P) => {
|
|
218
|
+
var h, m, C, B, Q, U, S, J, ve, De, he, ae, Ce, ke, xe, Ne;
|
|
219
|
+
let _e = (n == null ? void 0 : n.label) ?? (n == null ? void 0 : n.key) ?? "", N = (n == null ? void 0 : n.type) ?? "", ue = (n == null ? void 0 : n.options) ?? [];
|
|
220
|
+
if ((h = n == null ? void 0 : n.key) != null && h.includes("$") && (_e = (m = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : m[0], ((B = (C = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : C[1]) == null ? void 0 : B.length) > 0)) {
|
|
221
|
+
const [je, W] = (U = (Q = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : Q[1]) == null ? void 0 : U.split(/[()]/);
|
|
222
|
+
N = ((S = Fa.find((Be) => (Be == null ? void 0 : Be.key) === je)) == null ? void 0 : S.value) ?? "", ((J = W == null ? void 0 : W.split(",")) == null ? void 0 : J.length) > 0 && (ue = (ve = W == null ? void 0 : W.split(",")) == null ? void 0 : ve.map((Be) => ({
|
|
223
|
+
label: Be,
|
|
224
|
+
value: Be
|
|
225
|
+
})));
|
|
226
|
+
}
|
|
227
|
+
let be = [];
|
|
228
|
+
n != null && n.contents && !Array.isArray(n == null ? void 0 : n.contents) && (be = (he = (De = n == null ? void 0 : n.contents) == null ? void 0 : De.split(",")) == null ? void 0 : he.map((je) => ({
|
|
229
|
+
label: je,
|
|
230
|
+
value: je
|
|
231
|
+
})));
|
|
232
|
+
let pe = await cs((ae = l(n)) == null ? void 0 : ae.optionUrl), e = pe !== void 0 && !(n != null && n.value) ? pe : n != null && n.originalContent && (n == null ? void 0 : n.originalContent) !== "" ? n.originalContent : n != null && n.value ? n.value : (ue == null ? void 0 : ue.length) > 0 ? (Ce = ue == null ? void 0 : ue[0]) == null ? void 0 : Ce.value : (n == null ? void 0 : n.value) ?? "";
|
|
233
|
+
return e === "loginUser" && (e = ((ke = ie.value) == null ? void 0 : ke.姓名) ?? ((xe = ie.value) == null ? void 0 : xe.userName) ?? ((Ne = ie.value) == null ? void 0 : Ne.account)), {
|
|
234
|
+
label: _e ?? "",
|
|
235
|
+
name: "t" + P,
|
|
236
|
+
type: pe !== void 0 || N === "" ? "Input" : N,
|
|
237
|
+
value: e,
|
|
238
|
+
id: (n == null ? void 0 : n.id) ?? P,
|
|
239
|
+
contents: (be == null ? void 0 : be.length) > 0 ? be : ue ?? [],
|
|
240
|
+
width: (n == null ? void 0 : n.width) ?? 1,
|
|
241
|
+
config: n == null ? void 0 : n.config,
|
|
242
|
+
optionUrl: (n == null ? void 0 : n.optionUrl) ?? n,
|
|
243
|
+
isFormColHidden: n == null ? void 0 : n.isFormColHidden
|
|
244
|
+
};
|
|
245
|
+
})), j = await Promise.all(M), E = j == null ? void 0 : j.map((n) => n == null ? void 0 : n.value);
|
|
246
|
+
let w = "";
|
|
247
|
+
E == null || E.forEach((n) => {
|
|
248
|
+
n !== "" && n !== void 0 && (w = w === "" ? n : w + "/" + n);
|
|
249
|
+
}), Y.setSelectArray(E), Y.setSelectString(w), t.value = (G = l(j)) == null ? void 0 : G.map((n) => (n != null && n.value && nl(n == null ? void 0 : n.value) && Array.isArray(JSON.parse(n == null ? void 0 : n.value)) && (n.value = JSON.parse(n.value)), n));
|
|
250
|
+
let g = [], L = [];
|
|
251
|
+
if ((u = l(t.value)) == null || u.forEach((n) => {
|
|
252
|
+
var P;
|
|
253
|
+
Array.isArray(n == null ? void 0 : n.value) && ((P = n == null ? void 0 : n.value) != null && P.find((_e) => {
|
|
254
|
+
var N;
|
|
255
|
+
return (N = _e == null ? void 0 : _e.url) == null ? void 0 : N.includes(".obj");
|
|
256
|
+
})) && (L = n == null ? void 0 : n.value);
|
|
257
|
+
}), (L == null ? void 0 : L.length) > 0) {
|
|
258
|
+
const n = (v = l(L)) == null ? void 0 : v.filter((P) => {
|
|
259
|
+
var _e;
|
|
260
|
+
return (_e = P == null ? void 0 : P.url) == null ? void 0 : _e.includes(".obj");
|
|
261
|
+
});
|
|
262
|
+
n == null || n.forEach((P) => {
|
|
263
|
+
var N, ue, be, pe;
|
|
264
|
+
const _e = (N = L == null ? void 0 : L.filter((e) => {
|
|
265
|
+
var o;
|
|
266
|
+
return (e == null ? void 0 : e.name) === (P == null ? void 0 : P.name) && ((o = e == null ? void 0 : e.url) == null ? void 0 : o.includes(".mtl"));
|
|
267
|
+
})) == null ? void 0 : N.map((e) => e == null ? void 0 : e.url);
|
|
268
|
+
g.push({
|
|
269
|
+
objUrl: P == null ? void 0 : P.url,
|
|
270
|
+
mtlUrls: ((ue = L == null ? void 0 : L.filter((e) => {
|
|
271
|
+
var o;
|
|
272
|
+
return (e == null ? void 0 : e.name) === (P == null ? void 0 : P.name) && ((o = e == null ? void 0 : e.url) == null ? void 0 : o.includes(".mtl"));
|
|
273
|
+
})) == null ? void 0 : ue.length) === 1 ? (pe = (be = L == null ? void 0 : L.filter((e) => {
|
|
274
|
+
var o;
|
|
275
|
+
return (e == null ? void 0 : e.name) === (P == null ? void 0 : P.name) && ((o = e == null ? void 0 : e.url) == null ? void 0 : o.includes(".mtl"));
|
|
276
|
+
})) == null ? void 0 : be[0]) == null ? void 0 : pe.url : _e
|
|
277
|
+
});
|
|
278
|
+
}), O.setObjUrl(g);
|
|
279
|
+
}
|
|
280
|
+
(F = l(t.value)) == null || F.forEach((n) => {
|
|
281
|
+
var P, _e, N, ue, be, pe, e, o, h, m, C, B, Q;
|
|
282
|
+
if ((_e = (P = n == null ? void 0 : n.value) == null ? void 0 : P.toString()) != null && _e.includes(".stl") || (ue = (N = n == null ? void 0 : n.value) == null ? void 0 : N.toString()) != null && ue.includes(".STL") || (pe = (be = n == null ? void 0 : n.value) == null ? void 0 : be.toString()) != null && pe.includes(".obj") || (o = (e = n == null ? void 0 : n.value) == null ? void 0 : e.toString()) != null && o.includes(".mtl") || (m = (h = n == null ? void 0 : n.value) == null ? void 0 : h.toString()) != null && m.includes(".urdf")) {
|
|
283
|
+
let U = {}, S = [], J;
|
|
284
|
+
Array.isArray(n == null ? void 0 : n.value) ? J = n == null ? void 0 : n.value : J = (C = n == null ? void 0 : n.value) == null ? void 0 : C.split(","), J == null || J.forEach((ve) => {
|
|
285
|
+
ve.includes(".mtl") ? S.push(ve) : U.blob = U.blob === "undefined" ? ve : U.blob + "," + ve;
|
|
286
|
+
}), (S == null ? void 0 : S.length) > 0 && (U.mtlBlobs = S), (Q = (B = Object.values(U)) == null ? void 0 : B[0]) != null && Q.includes("http:");
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
} else
|
|
290
|
+
t.value = [];
|
|
291
|
+
if (((H = d == null ? void 0 : d.contents) == null ? void 0 : H.length) > 0) {
|
|
292
|
+
const M = [];
|
|
293
|
+
(ce = d == null ? void 0 : d.contents) == null || ce.forEach((j, E) => {
|
|
294
|
+
(j == null ? void 0 : j.label) !== "" && M.push({
|
|
295
|
+
label: (j == null ? void 0 : j.label) ?? "",
|
|
296
|
+
id: (j == null ? void 0 : j.id) ?? E,
|
|
297
|
+
type: (j == null ? void 0 : j.type) ?? "",
|
|
298
|
+
background: j == null ? void 0 : j.background
|
|
299
|
+
});
|
|
300
|
+
}), _.value = M;
|
|
301
|
+
} else
|
|
302
|
+
_.value = [];
|
|
303
|
+
},
|
|
304
|
+
{ deep: !0, immediate: !0 }
|
|
305
|
+
), (c, d) => (te(), ge("div", As, [
|
|
306
|
+
se(ze, {
|
|
307
|
+
rowContents: t.value,
|
|
308
|
+
formRules: r.formRules,
|
|
309
|
+
buttonValue: _.value,
|
|
310
|
+
isRowFlex: !1,
|
|
311
|
+
isEnableWrap: ne.value,
|
|
312
|
+
onOnButtonClick: f,
|
|
313
|
+
onChange: b,
|
|
314
|
+
isButtonRow: R.value,
|
|
315
|
+
onPreview: de,
|
|
316
|
+
onBlurChange: x
|
|
317
|
+
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEnableWrap", "isButtonRow"]),
|
|
318
|
+
z.value ? (te(), Oe(ss, {
|
|
319
|
+
key: 0,
|
|
320
|
+
fileDataList: V.value,
|
|
321
|
+
onDestroy: p
|
|
322
|
+
}, null, 8, ["fileDataList"])) : Qe("", !0)
|
|
323
|
+
]));
|
|
324
|
+
}
|
|
325
|
+
}, Pa = /* @__PURE__ */ Ue(Is, [["__scopeId", "data-v-08bcaa2c"]]), ql = Z(0), Wa = (r) => {
|
|
326
|
+
var y;
|
|
327
|
+
return !r || (r == null ? void 0 : r.length) === 0 ? [] : (y = l(r)) == null ? void 0 : y.map((a) => (ql.value++, a = {
|
|
328
|
+
label: (a == null ? void 0 : a.label) ?? "",
|
|
329
|
+
prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : a == null ? void 0 : a.prop,
|
|
330
|
+
width: a != null && a.width ? parseInt(a.width) : "",
|
|
331
|
+
fixed: (a == null ? void 0 : a.fixed) ?? void 0,
|
|
332
|
+
sortable: (a == null ? void 0 : a.sortable) ?? !1,
|
|
333
|
+
align: (a == null ? void 0 : a.align) ?? "left",
|
|
334
|
+
showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
|
|
335
|
+
isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
|
|
336
|
+
isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
|
|
337
|
+
isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
|
|
338
|
+
id: (a == null ? void 0 : a.id) ?? ql.value,
|
|
339
|
+
children: Wa(a == null ? void 0 : a.children)
|
|
340
|
+
}, a));
|
|
341
|
+
}, xs = (r) => {
|
|
342
|
+
var s;
|
|
343
|
+
return (s = l(r)) == null ? void 0 : s.map((a) => (ql.value++, a = {
|
|
344
|
+
label: (a == null ? void 0 : a.label) ?? "",
|
|
345
|
+
prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : a == null ? void 0 : a.prop,
|
|
346
|
+
width: a != null && a.width ? parseInt(a.width) : "",
|
|
347
|
+
fixed: (a == null ? void 0 : a.fixed) ?? void 0,
|
|
348
|
+
sortable: (a == null ? void 0 : a.sortable) ?? !1,
|
|
349
|
+
align: (a == null ? void 0 : a.align) ?? "left",
|
|
350
|
+
showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
|
|
351
|
+
isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
|
|
352
|
+
isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
|
|
353
|
+
isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
|
|
354
|
+
id: (a == null ? void 0 : a.id) ?? ql.value,
|
|
355
|
+
children: Wa(a == null ? void 0 : a.children)
|
|
356
|
+
}, a));
|
|
357
|
+
}, za = (r, y) => {
|
|
358
|
+
var s;
|
|
359
|
+
return r != null && r.find((a) => (a == null ? void 0 : a.id) === y) ? (s = l(r)) == null ? void 0 : s.filter((t) => (t == null ? void 0 : t.id) !== y) : (r = r == null ? void 0 : r.map((a) => (a.children = za(a == null ? void 0 : a.children, y), a)), r);
|
|
360
|
+
}, Ma = (r, y) => {
|
|
361
|
+
var s;
|
|
362
|
+
return r != null && r.find((a) => (a == null ? void 0 : a.id) === (y == null ? void 0 : y.id)) ? (s = l(r)) == null ? void 0 : s.map((t) => ((t == null ? void 0 : t.id) === (y == null ? void 0 : y.id) && (t = y), t)) : (r = r == null ? void 0 : r.map((a) => (a.children = Ma(a == null ? void 0 : a.children, y), a)), r);
|
|
363
|
+
}, Ja = (r, y) => {
|
|
364
|
+
var s;
|
|
365
|
+
return r != null && r.find((a) => {
|
|
366
|
+
var t;
|
|
367
|
+
return (a == null ? void 0 : a.id) === ((t = y == null ? void 0 : y.contents) == null ? void 0 : t.id);
|
|
368
|
+
}) ? (s = l(r)) == null ? void 0 : s.map((t) => {
|
|
369
|
+
var R;
|
|
370
|
+
return (t == null ? void 0 : t.id) === ((R = y == null ? void 0 : y.contents) == null ? void 0 : R.id) && (t = y == null ? void 0 : y.contents), t;
|
|
371
|
+
}) : (r = r == null ? void 0 : r.map((a) => (a.children = Ja(a == null ? void 0 : a.children, y), a)), r);
|
|
372
|
+
}, Ga = (r, y) => {
|
|
373
|
+
var s;
|
|
374
|
+
return r != null && r.find((a) => (a == null ? void 0 : a.id) === (y == null ? void 0 : y.id)) ? (s = l(r)) == null ? void 0 : s.map((t) => ((t == null ? void 0 : t.id) === (y == null ? void 0 : y.id) && (t != null && t.children || (t.children = []), t.children.push(y.contents)), t)) : (r = r == null ? void 0 : r.map((a) => (a.children = Ga(a == null ? void 0 : a.children, y), a)), r);
|
|
375
|
+
}, Ie = [
|
|
376
|
+
{
|
|
377
|
+
key: "label",
|
|
378
|
+
label: "标签名",
|
|
379
|
+
type: "Input"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
key: "prop",
|
|
383
|
+
label: "属性名",
|
|
384
|
+
type: "Input"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
key: "width",
|
|
388
|
+
label: "宽度",
|
|
389
|
+
type: "Input"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
key: "sortable",
|
|
393
|
+
label: "是否支持排序",
|
|
394
|
+
type: "Switch"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
key: "align",
|
|
398
|
+
label: "文本所在位置",
|
|
399
|
+
type: "Radio",
|
|
400
|
+
options: [
|
|
401
|
+
{
|
|
402
|
+
label: "left",
|
|
403
|
+
value: "左"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
label: "center",
|
|
407
|
+
value: "中"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
label: "right",
|
|
411
|
+
value: "右"
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
key: "fixed",
|
|
417
|
+
label: "是否固定列",
|
|
418
|
+
type: "Switch"
|
|
419
|
+
}
|
|
420
|
+
], Es = [
|
|
421
|
+
{
|
|
422
|
+
label: "查看",
|
|
423
|
+
value: "view"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
label: "修改",
|
|
427
|
+
value: "fix"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
label: "删除",
|
|
431
|
+
value: "delete"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
label: "三维算例",
|
|
435
|
+
value: "modelExample"
|
|
436
|
+
}
|
|
437
|
+
], $s = [
|
|
438
|
+
{
|
|
439
|
+
label: "新增",
|
|
440
|
+
value: "add"
|
|
441
|
+
}
|
|
442
|
+
], cl = [
|
|
443
|
+
{
|
|
444
|
+
key: "label",
|
|
445
|
+
label: "按钮名",
|
|
446
|
+
type: "Input"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
key: "type",
|
|
450
|
+
label: "类型",
|
|
451
|
+
type: "Select",
|
|
452
|
+
options: $s
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
key: "background",
|
|
456
|
+
label: "按钮背景色",
|
|
457
|
+
type: "Color"
|
|
458
|
+
}
|
|
459
|
+
], tl = [
|
|
460
|
+
{
|
|
461
|
+
key: "label",
|
|
462
|
+
label: "按钮名",
|
|
463
|
+
type: "Input"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
key: "type",
|
|
467
|
+
label: "类型",
|
|
468
|
+
type: "Select",
|
|
469
|
+
options: Es
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
key: "textColor",
|
|
473
|
+
label: "按钮颜色",
|
|
474
|
+
type: "Color"
|
|
475
|
+
}
|
|
476
|
+
], Bs = { class: "table-header-child" }, Ts = { class: "table-header-child-main" }, Ss = { class: "table-header-child-content" }, Os = { class: "table-header-child-content-item" }, Fs = { class: "fix-button" }, Ls = { key: 0 }, Ps = { class: "form-content" }, Rs = {
|
|
477
|
+
__name: "tableNewChild",
|
|
478
|
+
props: {
|
|
479
|
+
tableChildContents: Array
|
|
480
|
+
},
|
|
481
|
+
emits: ["fixChange", "deleteChange"],
|
|
482
|
+
setup(r, { emit: y }) {
|
|
483
|
+
const s = r, a = y, t = Z(!1), R = Z(""), z = Ua(Me), { tableIndex: _ } = He(z);
|
|
484
|
+
Z(0);
|
|
485
|
+
const V = Z(""), Y = Z([]), O = Z([]), ne = (p) => {
|
|
486
|
+
var b;
|
|
487
|
+
t.value = !0;
|
|
488
|
+
let f = [];
|
|
489
|
+
Ie == null || Ie.forEach((c) => {
|
|
490
|
+
let d = l(_.value) + 1;
|
|
491
|
+
z.setTableIndex(d), f.push({
|
|
492
|
+
label: c == null ? void 0 : c.label,
|
|
493
|
+
name: c == null ? void 0 : c.label,
|
|
494
|
+
type: c.type,
|
|
495
|
+
value: p[c.key],
|
|
496
|
+
id: _.value,
|
|
497
|
+
contents: c == null ? void 0 : c.options
|
|
498
|
+
});
|
|
499
|
+
}), p != null && p.children && ((b = p == null ? void 0 : p.children) == null ? void 0 : b.length) > 0 && f.push({
|
|
500
|
+
children: p == null ? void 0 : p.children,
|
|
501
|
+
isFormColHidden: !0
|
|
502
|
+
}), V.value = p == null ? void 0 : p.id, Y.value = f, O.value = f;
|
|
503
|
+
}, X = (p) => {
|
|
504
|
+
a("fixChange", l(p));
|
|
505
|
+
}, fe = (p) => {
|
|
506
|
+
a("deleteChange", l(p));
|
|
507
|
+
}, ie = (p) => {
|
|
508
|
+
t.value = !0;
|
|
509
|
+
let f = [];
|
|
510
|
+
Ie == null || Ie.forEach((b) => {
|
|
511
|
+
let c = l(_.value) + 1;
|
|
512
|
+
z.setTableIndex(c), f.push({
|
|
513
|
+
label: b == null ? void 0 : b.label,
|
|
514
|
+
name: b == null ? void 0 : b.label,
|
|
515
|
+
type: b.type,
|
|
516
|
+
value: "",
|
|
517
|
+
id: _.value,
|
|
518
|
+
contents: b == null ? void 0 : b.options
|
|
519
|
+
});
|
|
520
|
+
}), R.value = p == null ? void 0 : p.id, Y.value = f, O.value = f;
|
|
521
|
+
}, ee = (p) => {
|
|
522
|
+
let f = l(O.value);
|
|
523
|
+
f = f == null ? void 0 : f.map((b) => (b.children || (b.value = p == null ? void 0 : p[b.name]), b)), O.value = f;
|
|
524
|
+
}, D = () => {
|
|
525
|
+
var f, b;
|
|
526
|
+
Y.value = O.value;
|
|
527
|
+
let p = {};
|
|
528
|
+
if (V.value !== "")
|
|
529
|
+
p.id = V.value, (f = Y.value) == null || f.forEach((c) => {
|
|
530
|
+
const d = Ie == null ? void 0 : Ie.find((A) => (A == null ? void 0 : A.label) === (c == null ? void 0 : c.label));
|
|
531
|
+
d ? p[d.key] = c.value : c != null && c.children && c.children.length > 0 && (p.children = c.children);
|
|
532
|
+
}), t.value = !1, a("fixChange", {
|
|
533
|
+
contents: l(p),
|
|
534
|
+
id: R.value,
|
|
535
|
+
type: "fix"
|
|
536
|
+
});
|
|
537
|
+
else {
|
|
538
|
+
let c = l(_.value) + 1;
|
|
539
|
+
z.setTableIndex(c), p.id = "id" + _.value, (b = Y.value) == null || b.forEach((d) => {
|
|
540
|
+
const A = Ie == null ? void 0 : Ie.find((q) => (q == null ? void 0 : q.label) === (d == null ? void 0 : d.label));
|
|
541
|
+
A ? p[A.key] = d.value : d != null && d.children && d.children.length > 0 && (p.children = d.children);
|
|
542
|
+
}), t.value = !1, a("fixChange", {
|
|
543
|
+
contents: l(p),
|
|
544
|
+
id: R.value,
|
|
545
|
+
type: "add"
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
V.value = "", Y.value = [], O.value = [];
|
|
549
|
+
}, x = () => {
|
|
550
|
+
t.value = !1, V.value = "", R.value = "", Y.value = [], O.value = [];
|
|
551
|
+
}, de = (p) => {
|
|
552
|
+
dl.confirm("是否确认要删除", "", {
|
|
553
|
+
confirmButtonText: "确认",
|
|
554
|
+
cancelButtonText: "取消",
|
|
555
|
+
type: "warning"
|
|
556
|
+
}).then(
|
|
557
|
+
() => {
|
|
558
|
+
a("deleteChange", p), Xe({
|
|
559
|
+
type: "success",
|
|
560
|
+
message: "删除成功"
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
).catch(() => {
|
|
564
|
+
});
|
|
565
|
+
};
|
|
566
|
+
return (p, f) => {
|
|
567
|
+
const b = Te("svg-icon");
|
|
568
|
+
return te(), ge("div", Bs, [
|
|
569
|
+
(te(!0), ge(Se, null, Pe(s == null ? void 0 : s.tableChildContents, (c, d) => (te(), ge("div", Ts, [
|
|
570
|
+
T("div", Ss, [
|
|
571
|
+
T("div", Os, we(c.label), 1),
|
|
572
|
+
T("div", Fs, [
|
|
573
|
+
se(b, {
|
|
574
|
+
name: "ChildAdd",
|
|
575
|
+
class: "svg-icon-content",
|
|
576
|
+
style: { width: "24px", height: "24px" },
|
|
577
|
+
onClick: (A) => ie(c)
|
|
578
|
+
}, null, 8, ["onClick"]),
|
|
579
|
+
se(b, {
|
|
580
|
+
name: "ChildFix",
|
|
581
|
+
class: "svg-icon-content",
|
|
582
|
+
style: { width: "24px", height: "24px" },
|
|
583
|
+
onClick: (A) => ne(c)
|
|
584
|
+
}, null, 8, ["onClick"]),
|
|
585
|
+
se(b, {
|
|
586
|
+
name: "ChildDelete",
|
|
587
|
+
class: "svg-icon-content",
|
|
588
|
+
style: { width: "24px", height: "24px" },
|
|
589
|
+
onClick: (A) => de(c)
|
|
590
|
+
}, null, 8, ["onClick"])
|
|
591
|
+
])
|
|
592
|
+
]),
|
|
593
|
+
c != null && c.children && c.children.length > 0 ? (te(), ge("div", Ls, [
|
|
594
|
+
se(Ha, {
|
|
595
|
+
tableChildContents: c == null ? void 0 : c.children,
|
|
596
|
+
onDeleteChange: fe,
|
|
597
|
+
onFixChange: X
|
|
598
|
+
}, null, 8, ["tableChildContents"])
|
|
599
|
+
])) : Qe("", !0)
|
|
600
|
+
]))), 256)),
|
|
601
|
+
se(Ge, {
|
|
602
|
+
visible: t.value,
|
|
603
|
+
onBeforeDestroy: x,
|
|
604
|
+
width: 840
|
|
605
|
+
}, {
|
|
606
|
+
default: ye(() => [
|
|
607
|
+
T("div", Ps, [
|
|
608
|
+
(te(), Oe(ze, {
|
|
609
|
+
rowContents: Y.value,
|
|
610
|
+
key: Y.value,
|
|
611
|
+
isEnableWrap: !0,
|
|
612
|
+
onChange: ee
|
|
613
|
+
}, null, 8, ["rowContents"]))
|
|
614
|
+
])
|
|
615
|
+
]),
|
|
616
|
+
footer: ye(() => [
|
|
617
|
+
T("div", { class: "dialog-footer" }, [
|
|
618
|
+
T("div", {
|
|
619
|
+
onClick: x,
|
|
620
|
+
class: "cancel-button button"
|
|
621
|
+
}, we("取消")),
|
|
622
|
+
T("div", {
|
|
623
|
+
class: "ok-button button",
|
|
624
|
+
onClick: D
|
|
625
|
+
}, we("确认"))
|
|
626
|
+
])
|
|
627
|
+
]),
|
|
628
|
+
_: 1
|
|
629
|
+
}, 8, ["visible"])
|
|
630
|
+
]);
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
}, Us = /* @__PURE__ */ Ue(Rs, [["__scopeId", "data-v-e0fef72d"]]), js = { class: "table-header-child" }, Ns = { class: "table-header-child-main" }, Ks = { class: "table-header-child-content" }, Vs = { class: "table-header-child-content-item" }, Ws = { class: "fix-button" }, zs = { key: 0 }, Ms = { class: "form-content" }, Js = { class: "dialog-footer" }, Gs = {
|
|
634
|
+
__name: "tableChildren",
|
|
635
|
+
props: {
|
|
636
|
+
tableChildContents: Array
|
|
637
|
+
},
|
|
638
|
+
emits: ["fixChange", "deleteChange"],
|
|
639
|
+
setup(r, { emit: y }) {
|
|
640
|
+
const s = r, a = y, t = Z(!1), R = Z(""), z = Ua(Me), { tableIndex: _ } = He(z), V = Z(""), Y = Z([]), O = Z([]), ne = (p) => {
|
|
641
|
+
a("fixChange", l(p));
|
|
642
|
+
}, X = (p) => {
|
|
643
|
+
var b;
|
|
644
|
+
t.value = !0;
|
|
645
|
+
let f = [];
|
|
646
|
+
Ie == null || Ie.forEach((c) => {
|
|
647
|
+
let d = l(_.value) + 1;
|
|
648
|
+
z.setTableIndex(d), f.push({
|
|
649
|
+
label: c == null ? void 0 : c.label,
|
|
650
|
+
name: c == null ? void 0 : c.label,
|
|
651
|
+
type: c.type,
|
|
652
|
+
value: p[c.key],
|
|
653
|
+
id: _.value,
|
|
654
|
+
contents: c == null ? void 0 : c.options
|
|
655
|
+
});
|
|
656
|
+
}), p != null && p.children && ((b = p == null ? void 0 : p.children) == null ? void 0 : b.length) > 0 && f.push({
|
|
657
|
+
children: p == null ? void 0 : p.children,
|
|
658
|
+
isFormColHidden: !0
|
|
659
|
+
}), V.value = p == null ? void 0 : p.id, Y.value = f, O.value = f;
|
|
660
|
+
}, fe = (p) => {
|
|
661
|
+
t.value = !0;
|
|
662
|
+
let f = [];
|
|
663
|
+
Ie == null || Ie.forEach((b) => {
|
|
664
|
+
let c = l(_.value) + 1;
|
|
665
|
+
z.setTableIndex(c), f.push({
|
|
666
|
+
label: b == null ? void 0 : b.label,
|
|
667
|
+
name: b == null ? void 0 : b.label,
|
|
668
|
+
type: b.type,
|
|
669
|
+
value: "",
|
|
670
|
+
id: _.value,
|
|
671
|
+
contents: b == null ? void 0 : b.options
|
|
672
|
+
});
|
|
673
|
+
}), R.value = p == null ? void 0 : p.id, Y.value = f, O.value = f;
|
|
674
|
+
}, ie = (p) => {
|
|
675
|
+
let f = l(O.value);
|
|
676
|
+
f = f == null ? void 0 : f.map((b) => (b.children || (b.value = p == null ? void 0 : p[b.name]), b)), O.value = f;
|
|
677
|
+
}, ee = () => {
|
|
678
|
+
var f, b;
|
|
679
|
+
Y.value = O.value;
|
|
680
|
+
let p = {};
|
|
681
|
+
if (V.value !== "")
|
|
682
|
+
p.id = V.value, (f = Y.value) == null || f.forEach((c) => {
|
|
683
|
+
const d = Ie == null ? void 0 : Ie.find((A) => (A == null ? void 0 : A.label) === (c == null ? void 0 : c.label));
|
|
684
|
+
d ? p[d.key] = c.value : c != null && c.children && c.children.length > 0 && (p.children = c.children);
|
|
685
|
+
}), t.value = !1, a("fixChange", {
|
|
686
|
+
contents: l(p),
|
|
687
|
+
id: R.value,
|
|
688
|
+
type: "fix"
|
|
689
|
+
});
|
|
690
|
+
else {
|
|
691
|
+
let c = l(_.value) + 1;
|
|
692
|
+
z.setTableIndex(c), p.id = "idChild" + _.value, (b = Y.value) == null || b.forEach((d) => {
|
|
693
|
+
const A = Ie == null ? void 0 : Ie.find((q) => (q == null ? void 0 : q.label) === (d == null ? void 0 : d.label));
|
|
694
|
+
A ? p[A.key] = d.value : d != null && d.children && d.children.length > 0 && (p.children = d.children);
|
|
695
|
+
}), t.value = !1, a("fixChange", {
|
|
696
|
+
contents: l(p),
|
|
697
|
+
id: R.value,
|
|
698
|
+
type: "add"
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
V.value = "", Y.value = [], O.value = [];
|
|
702
|
+
}, D = () => {
|
|
703
|
+
t.value = !1, V.value = "", R.value = "", Y.value = [], O.value = [];
|
|
704
|
+
}, x = (p) => {
|
|
705
|
+
dl.confirm("是否确认要删除", "", {
|
|
706
|
+
confirmButtonText: "确认",
|
|
707
|
+
cancelButtonText: "取消",
|
|
708
|
+
type: "warning"
|
|
709
|
+
}).then(
|
|
710
|
+
() => {
|
|
711
|
+
a("deleteChange", p), Xe({
|
|
712
|
+
type: "success",
|
|
713
|
+
message: "删除成功"
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
).catch(() => {
|
|
717
|
+
});
|
|
718
|
+
}, de = (p) => {
|
|
719
|
+
a("deleteChange", p);
|
|
720
|
+
};
|
|
721
|
+
return (p, f) => {
|
|
722
|
+
const b = Te("svg-icon"), c = Te("el-button");
|
|
723
|
+
return te(), ge("div", js, [
|
|
724
|
+
(te(!0), ge(Se, null, Pe(s == null ? void 0 : s.tableChildContents, (d, A) => (te(), ge("div", Ns, [
|
|
725
|
+
T("div", Ks, [
|
|
726
|
+
T("div", Vs, we(d.label), 1),
|
|
727
|
+
T("div", Ws, [
|
|
728
|
+
se(b, {
|
|
729
|
+
name: "ChildAdd",
|
|
730
|
+
class: "svg-icon-content",
|
|
731
|
+
style: { width: "24px", height: "24px" },
|
|
732
|
+
onClick: (q) => fe(d)
|
|
733
|
+
}, null, 8, ["onClick"]),
|
|
734
|
+
se(b, {
|
|
735
|
+
name: "ChildFix",
|
|
736
|
+
class: "svg-icon-content",
|
|
737
|
+
style: { width: "24px", height: "24px" },
|
|
738
|
+
onClick: (q) => X(d)
|
|
739
|
+
}, null, 8, ["onClick"]),
|
|
740
|
+
se(b, {
|
|
741
|
+
name: "ChildDelete",
|
|
742
|
+
class: "svg-icon-content",
|
|
743
|
+
style: { width: "24px", height: "24px" },
|
|
744
|
+
onClick: (q) => x(d)
|
|
745
|
+
}, null, 8, ["onClick"])
|
|
746
|
+
])
|
|
747
|
+
]),
|
|
748
|
+
d != null && d.children && d.children.length > 0 ? (te(), ge("div", zs, [
|
|
749
|
+
se(Us, {
|
|
750
|
+
tableChildContents: d == null ? void 0 : d.children,
|
|
751
|
+
onDeleteChange: de,
|
|
752
|
+
onFixChange: ne
|
|
753
|
+
}, null, 8, ["tableChildContents"])
|
|
754
|
+
])) : Qe("", !0)
|
|
755
|
+
]))), 256)),
|
|
756
|
+
se(Ge, {
|
|
757
|
+
visible: t.value,
|
|
758
|
+
onBeforeDestroy: D,
|
|
759
|
+
width: 840
|
|
760
|
+
}, {
|
|
761
|
+
default: ye(() => [
|
|
762
|
+
T("div", Ms, [
|
|
763
|
+
(te(), Oe(ze, {
|
|
764
|
+
rowContents: Y.value,
|
|
765
|
+
key: Y.value,
|
|
766
|
+
isEnableWrap: !0,
|
|
767
|
+
onChange: ie
|
|
768
|
+
}, null, 8, ["rowContents"]))
|
|
769
|
+
])
|
|
770
|
+
]),
|
|
771
|
+
footer: ye(() => [
|
|
772
|
+
T("div", Js, [
|
|
773
|
+
se(c, {
|
|
774
|
+
onClick: D,
|
|
775
|
+
class: "cancel-button button",
|
|
776
|
+
id: "themeBorderButton"
|
|
777
|
+
}, {
|
|
778
|
+
default: ye(() => f[0] || (f[0] = [
|
|
779
|
+
$e(we("取消"))
|
|
780
|
+
])),
|
|
781
|
+
_: 1,
|
|
782
|
+
__: [0]
|
|
783
|
+
}),
|
|
784
|
+
se(c, {
|
|
785
|
+
class: "ok-button button",
|
|
786
|
+
onClick: ee,
|
|
787
|
+
id: "themeButton"
|
|
788
|
+
}, {
|
|
789
|
+
default: ye(() => f[1] || (f[1] = [
|
|
790
|
+
$e(we("确认"))
|
|
791
|
+
])),
|
|
792
|
+
_: 1,
|
|
793
|
+
__: [1]
|
|
794
|
+
})
|
|
795
|
+
])
|
|
796
|
+
]),
|
|
797
|
+
_: 1
|
|
798
|
+
}, 8, ["visible"])
|
|
799
|
+
]);
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
}, Ha = /* @__PURE__ */ Ue(Gs, [["__scopeId", "data-v-ebd68fa1"]]), Hs = { class: "table-operate-content" }, qs = { class: "table-operate-item" }, Qs = { class: "operate-title" }, Xs = { class: "operate-content" }, Ys = { class: "fix-content" }, Zs = { class: "fix-content-label" }, ei = { class: "fix-button" }, li = { key: 0 }, ai = { class: "operate-title" }, si = { class: "operate-content" }, ii = { class: "fix-content" }, ni = { class: "fix-content-label" }, oi = { class: "fix-button" }, ui = { class: "operate-title" }, ri = { class: "operate-content" }, ci = { class: "fix-content" }, ti = { class: "fix-content-label" }, di = { class: "fix-button" }, pi = { class: "operate-title" }, fi = { class: "operate-content" }, hi = { class: "fix-content" }, vi = { class: "fix-content-label" }, mi = { class: "fix-button" }, yi = { class: "operate-content" }, bi = { style: { display: "flex", "justify-content": "space-between" } }, gi = { class: "form-content" }, ki = { class: "dialog-footer" }, _i = { class: "form-content" }, Ci = { class: "dialog-footer" }, wi = { class: "form-content" }, Di = { class: "dialog-footer" }, Ai = { class: "form-content" }, Ii = { class: "dialog-footer" }, xi = {
|
|
803
|
+
__name: "operate",
|
|
804
|
+
props: {
|
|
805
|
+
itemContents: {
|
|
806
|
+
type: Array,
|
|
807
|
+
default: () => []
|
|
808
|
+
},
|
|
809
|
+
originalItemContents: {
|
|
810
|
+
type: Array,
|
|
811
|
+
default: () => []
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
emits: ["change"],
|
|
815
|
+
setup(r, { emit: y }) {
|
|
816
|
+
const s = r, a = y, t = Z([]), R = Z(!1), z = Z(!1), _ = Z([]), V = Z(!1), Y = Z([]), O = Z(!1), ne = Z([]), X = Z(""), fe = Z(""), ie = Z([]), ee = Z([]), D = Z([]), x = Z([]), de = Z(!1), p = Z([]), f = Z([]), b = Z(0), c = Z([]), d = Z([]), A = Z([]), q = () => {
|
|
817
|
+
de.value = !0;
|
|
818
|
+
let e = [];
|
|
819
|
+
cl == null || cl.forEach((o) => {
|
|
820
|
+
b.value++, e.push({
|
|
821
|
+
label: o == null ? void 0 : o.label,
|
|
822
|
+
name: o == null ? void 0 : o.label,
|
|
823
|
+
type: o.type,
|
|
824
|
+
value: (o == null ? void 0 : o.key) === "background" ? "var(--ssComponent-primary-color)" : "",
|
|
825
|
+
id: b.value,
|
|
826
|
+
contents: o == null ? void 0 : o.options
|
|
827
|
+
});
|
|
828
|
+
}), p.value = e, f.value = e;
|
|
829
|
+
}, me = () => {
|
|
830
|
+
var o, h, m;
|
|
831
|
+
z.value = !0;
|
|
832
|
+
let e = [];
|
|
833
|
+
(m = (h = (o = Ke) == null ? void 0 : o.find((C) => (C == null ? void 0 : C.key) === "Input")) == null ? void 0 : h.value) == null || m.forEach((C) => {
|
|
834
|
+
b.value++, e.push({
|
|
835
|
+
label: C == null ? void 0 : C.label,
|
|
836
|
+
name: C == null ? void 0 : C.label,
|
|
837
|
+
type: C.type,
|
|
838
|
+
value: (C == null ? void 0 : C.label) === "类型" ? "Input" : "",
|
|
839
|
+
id: b.value,
|
|
840
|
+
contents: C == null ? void 0 : C.options
|
|
841
|
+
});
|
|
842
|
+
}), c.value = e, d.value = e;
|
|
843
|
+
}, re = (e) => {
|
|
844
|
+
e || (c.value = d.value);
|
|
845
|
+
}, oe = async (e) => {
|
|
846
|
+
var o, h, m, C, B, Q, U, S, J, ve, De, he;
|
|
847
|
+
if ((e == null ? void 0 : e.类型) !== ((h = (o = d.value) == null ? void 0 : o.find((ae) => (ae == null ? void 0 : ae.label) === "类型")) == null ? void 0 : h.value)) {
|
|
848
|
+
let ae = [], Ce = await ((B = (C = (m = Ke) == null ? void 0 : m.find((ke) => (ke == null ? void 0 : ke.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : C.value) == null ? void 0 : B.value) ? await ((ve = (J = (S = Ke) == null ? void 0 : S.find((ke) => (ke == null ? void 0 : ke.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : J.value) == null ? void 0 : ve.value) : (U = (Q = Ke) == null ? void 0 : Q.find((ke) => (ke == null ? void 0 : ke.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : U.value;
|
|
849
|
+
if (Ce == null || Ce.forEach((ke) => {
|
|
850
|
+
b.value++, ae.push({
|
|
851
|
+
label: ke == null ? void 0 : ke.label,
|
|
852
|
+
name: ke == null ? void 0 : ke.label,
|
|
853
|
+
type: ke.type,
|
|
854
|
+
value: (e == null ? void 0 : e[ke.label]) ?? "",
|
|
855
|
+
id: b.value,
|
|
856
|
+
contents: ke == null ? void 0 : ke.options
|
|
857
|
+
});
|
|
858
|
+
}), e != null && e.菜单选项 && ((De = e == null ? void 0 : e.菜单选项) == null ? void 0 : De.length) > 0) {
|
|
859
|
+
const ke = await Dl(e == null ? void 0 : e.菜单选项);
|
|
860
|
+
ae = ae == null ? void 0 : ae.map((xe) => ((xe == null ? void 0 : xe.name) === "组信息选项" && (xe.contents = ke), xe));
|
|
861
|
+
}
|
|
862
|
+
d.value = await il(l(ae)), c.value = await il(l(ae));
|
|
863
|
+
} else {
|
|
864
|
+
let ae = l(c.value);
|
|
865
|
+
if (ae = ae == null ? void 0 : ae.map((Ce) => (Ce.value = e == null ? void 0 : e[Ce.name], Ce)), e != null && e.菜单选项 && ((he = e == null ? void 0 : e.菜单选项) == null ? void 0 : he.length) > 0) {
|
|
866
|
+
const Ce = await Dl(e == null ? void 0 : e.菜单选项);
|
|
867
|
+
ae = ae == null ? void 0 : ae.map((ke) => ((ke == null ? void 0 : ke.name) === "组信息选项" && (ke.contents = Ce), ke));
|
|
868
|
+
}
|
|
869
|
+
ae = gl(ae), d.value = await il(l(ae));
|
|
870
|
+
}
|
|
871
|
+
}, i = async (e) => {
|
|
872
|
+
await oe(e), c.value = d.value;
|
|
873
|
+
}, I = async (e) => {
|
|
874
|
+
var m, C, B, Q, U, S, J, ve, De;
|
|
875
|
+
z.value = !0;
|
|
876
|
+
let o = [];
|
|
877
|
+
const h = await ((B = (C = (m = Ke) == null ? void 0 : m.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : C.value) == null ? void 0 : B.value) ? await ((ve = (J = (S = Ke) == null ? void 0 : S.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : J.value) == null ? void 0 : ve.value) : (U = (Q = Ke) == null ? void 0 : Q.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : U.value;
|
|
878
|
+
if (h == null || h.forEach((he) => {
|
|
879
|
+
b.value++, o.push({
|
|
880
|
+
label: he == null ? void 0 : he.label,
|
|
881
|
+
name: he == null ? void 0 : he.label,
|
|
882
|
+
type: he.type,
|
|
883
|
+
value: (he == null ? void 0 : he.label) === "类型" && e[he.key] === "" ? "Input" : e[he.key],
|
|
884
|
+
id: b.value,
|
|
885
|
+
contents: he == null ? void 0 : he.options
|
|
886
|
+
});
|
|
887
|
+
}), e != null && e.menuSelect && ((De = e == null ? void 0 : e.menuSelect) == null ? void 0 : De.length) > 0) {
|
|
888
|
+
const he = await Dl(e == null ? void 0 : e.menuSelect);
|
|
889
|
+
o = o == null ? void 0 : o.map((ae) => ((ae == null ? void 0 : ae.name) === "组信息选项" && (ae.contents = he), ae));
|
|
890
|
+
}
|
|
891
|
+
X.value = e == null ? void 0 : e.id, c.value = await il(gl(o)), d.value = await il(gl(o));
|
|
892
|
+
}, $ = (e) => {
|
|
893
|
+
dl.confirm("是否确认要删除", "", {
|
|
894
|
+
confirmButtonText: "确认",
|
|
895
|
+
cancelButtonText: "取消",
|
|
896
|
+
type: "warning"
|
|
897
|
+
}).then(
|
|
898
|
+
() => {
|
|
899
|
+
var o, h;
|
|
900
|
+
A.value = (o = l(A.value)) == null ? void 0 : o.filter((m) => (m == null ? void 0 : m.id) !== (e == null ? void 0 : e.id)), a("change", (h = l(s.originalItemContents)) == null ? void 0 : h.map((m) => ((m == null ? void 0 : m.key) === "tableToForm" && (m.contents = A.value), m))), Xe({
|
|
901
|
+
type: "success",
|
|
902
|
+
message: "删除成功"
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
).catch(() => {
|
|
906
|
+
});
|
|
907
|
+
}, k = () => {
|
|
908
|
+
z.value = !1, c.value = [], X.value = "";
|
|
909
|
+
}, le = async () => {
|
|
910
|
+
var m, C, B, Q, U, S, J, ve, De, he;
|
|
911
|
+
c.value = d.value;
|
|
912
|
+
let e = {};
|
|
913
|
+
X.value !== "" ? e.id = X.value : (b.value++, e.id = "id" + b.value);
|
|
914
|
+
let o = await ((B = (C = (m = Ke) == null ? void 0 : m.find((ae) => {
|
|
915
|
+
var Ce, ke;
|
|
916
|
+
return (ae == null ? void 0 : ae.key) === (((ke = (Ce = c.value) == null ? void 0 : Ce.find((xe) => (xe == null ? void 0 : xe.label) === "类型")) == null ? void 0 : ke.value) ?? "label");
|
|
917
|
+
})) == null ? void 0 : C.value) == null ? void 0 : B.value) ?? ((U = (Q = Ke) == null ? void 0 : Q.find((ae) => {
|
|
918
|
+
var Ce, ke;
|
|
919
|
+
return (ae == null ? void 0 : ae.key) === (((ke = (Ce = c.value) == null ? void 0 : Ce.find((xe) => (xe == null ? void 0 : xe.label) === "类型")) == null ? void 0 : ke.value) ?? "label");
|
|
920
|
+
})) == null ? void 0 : U.value);
|
|
921
|
+
if ((S = c.value) == null || S.forEach((ae) => {
|
|
922
|
+
const Ce = o == null ? void 0 : o.find((ke) => (ke == null ? void 0 : ke.label) === (ae == null ? void 0 : ae.label));
|
|
923
|
+
Ce && (e[Ce.key] = ae.value);
|
|
924
|
+
}), e.name = e.label, (J = A.value) != null && J.find((ae) => ae.id === e.id))
|
|
925
|
+
A.value = (ve = A.value) == null ? void 0 : ve.map((ae) => (ae.id === e.id && (ae = e), ae));
|
|
926
|
+
else {
|
|
927
|
+
let ae = l(A.value);
|
|
928
|
+
A.value || (A.value = []), ae.push(e), A.value = ae;
|
|
929
|
+
}
|
|
930
|
+
A.value = A.value.map(({ id: ae, ...Ce }) => Ce), z.value = !1, X.value = "";
|
|
931
|
+
let h = l(s.originalItemContents);
|
|
932
|
+
(De = l(s.originalItemContents)) != null && De.find((ae) => (ae == null ? void 0 : ae.key) === "tableToForm") ? h = (he = l(s.originalItemContents)) == null ? void 0 : he.map((ae) => ((ae == null ? void 0 : ae.key) === "tableToForm" && (ae.contents = A.value), ae)) : h.push({
|
|
933
|
+
key: "tableToForm",
|
|
934
|
+
contents: A.value
|
|
935
|
+
}), a("change", h);
|
|
936
|
+
}, K = (e) => {
|
|
937
|
+
de.value = !0;
|
|
938
|
+
let o = [];
|
|
939
|
+
cl == null || cl.forEach((h) => {
|
|
940
|
+
b.value++, o.push({
|
|
941
|
+
label: h == null ? void 0 : h.label,
|
|
942
|
+
name: h == null ? void 0 : h.label,
|
|
943
|
+
type: h.type,
|
|
944
|
+
value: e[h.key],
|
|
945
|
+
id: b.value,
|
|
946
|
+
contents: h == null ? void 0 : h.options
|
|
947
|
+
});
|
|
948
|
+
}), X.value = e == null ? void 0 : e.id, p.value = o, f.value = o;
|
|
949
|
+
};
|
|
950
|
+
Ve(
|
|
951
|
+
() => O.value,
|
|
952
|
+
() => {
|
|
953
|
+
var o, h;
|
|
954
|
+
let e = l(s.originalItemContents);
|
|
955
|
+
(o = l(s.originalItemContents)) != null && o.find((m) => (m == null ? void 0 : m.key) === "page") ? e = (h = l(s.originalItemContents)) == null ? void 0 : h.map((m) => ((m == null ? void 0 : m.key) === "page" && (m.contents = O.value), m)) : e.push({
|
|
956
|
+
key: "page",
|
|
957
|
+
contents: O.value
|
|
958
|
+
}), a("change", e);
|
|
959
|
+
},
|
|
960
|
+
{ deep: !0 }
|
|
961
|
+
);
|
|
962
|
+
const G = (e) => {
|
|
963
|
+
dl.confirm("是否确认要删除", "", {
|
|
964
|
+
confirmButtonText: "确认",
|
|
965
|
+
cancelButtonText: "取消",
|
|
966
|
+
type: "warning"
|
|
967
|
+
}).then(
|
|
968
|
+
() => {
|
|
969
|
+
var o, h;
|
|
970
|
+
ee.value = (o = l(ee.value)) == null ? void 0 : o.filter((m) => (m == null ? void 0 : m.id) !== (e == null ? void 0 : e.id)), a("change", (h = l(s.originalItemContents)) == null ? void 0 : h.map((m) => ((m == null ? void 0 : m.key) === "extraButton" && (m.contents = ee.value), m))), Xe({
|
|
971
|
+
type: "success",
|
|
972
|
+
message: "删除成功"
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
).catch(() => {
|
|
976
|
+
});
|
|
977
|
+
}, u = () => {
|
|
978
|
+
var h, m, C, B, Q;
|
|
979
|
+
p.value = f.value;
|
|
980
|
+
let e = {};
|
|
981
|
+
if (X.value !== "" ? e.id = X.value : (b.value++, e.id = "id" + b.value), (h = p.value) == null || h.forEach((U) => {
|
|
982
|
+
const S = cl == null ? void 0 : cl.find((J) => (J == null ? void 0 : J.label) === (U == null ? void 0 : U.label));
|
|
983
|
+
S ? e[S.key] = U.value : U != null && U.children && U.children.length > 0 && (e.children = U.children);
|
|
984
|
+
}), (m = ee.value) != null && m.find((U) => U.id === e.id))
|
|
985
|
+
ee.value = (C = ee.value) == null ? void 0 : C.map((U) => (U.id === e.id && (U = e), U));
|
|
986
|
+
else {
|
|
987
|
+
let U = l(ee.value) ?? [];
|
|
988
|
+
U.push(e), ee.value = U;
|
|
989
|
+
}
|
|
990
|
+
de.value = !1, X.value = "";
|
|
991
|
+
let o = l(s.originalItemContents);
|
|
992
|
+
(B = l(s.originalItemContents)) != null && B.find((U) => (U == null ? void 0 : U.key) === "extraButton") ? o = (Q = l(s.originalItemContents)) == null ? void 0 : Q.map((U) => ((U == null ? void 0 : U.key) === "extraButton" && (U.contents = ee.value), U)) : o.push({
|
|
993
|
+
key: "extraButton",
|
|
994
|
+
contents: ee.value
|
|
995
|
+
}), a("change", o);
|
|
996
|
+
}, v = (e) => {
|
|
997
|
+
let o = l(f.value);
|
|
998
|
+
o = o == null ? void 0 : o.map((h) => (h.children || (h.value = e == null ? void 0 : e[h.name]), h)), f.value = o;
|
|
999
|
+
}, F = () => {
|
|
1000
|
+
de.value = !1, p.value = [], X.value = "";
|
|
1001
|
+
}, H = (e) => {
|
|
1002
|
+
V.value = !0;
|
|
1003
|
+
let o = [];
|
|
1004
|
+
tl == null || tl.forEach((h) => {
|
|
1005
|
+
b.value++, o.push({
|
|
1006
|
+
label: h == null ? void 0 : h.label,
|
|
1007
|
+
name: h == null ? void 0 : h.label,
|
|
1008
|
+
type: h.type,
|
|
1009
|
+
value: e[h.key],
|
|
1010
|
+
id: b.value,
|
|
1011
|
+
contents: h == null ? void 0 : h.options
|
|
1012
|
+
});
|
|
1013
|
+
}), X.value = e == null ? void 0 : e.id, D.value = o, x.value = o;
|
|
1014
|
+
}, ce = (e) => {
|
|
1015
|
+
dl.confirm("是否确认要删除", "", {
|
|
1016
|
+
confirmButtonText: "确认",
|
|
1017
|
+
cancelButtonText: "取消",
|
|
1018
|
+
type: "warning"
|
|
1019
|
+
}).then(
|
|
1020
|
+
() => {
|
|
1021
|
+
var o, h;
|
|
1022
|
+
ie.value = (o = l(ie.value)) == null ? void 0 : o.filter((m) => (m == null ? void 0 : m.id) !== (e == null ? void 0 : e.id)), a("change", (h = l(s.originalItemContents)) == null ? void 0 : h.map((m) => ((m == null ? void 0 : m.key) === "rowButton" && (m.contents = ie.value), m))), Xe({
|
|
1023
|
+
type: "success",
|
|
1024
|
+
message: "删除成功"
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
).catch(() => {
|
|
1028
|
+
});
|
|
1029
|
+
}, M = () => {
|
|
1030
|
+
R.value = !0;
|
|
1031
|
+
let e = [];
|
|
1032
|
+
Ie == null || Ie.forEach((o) => {
|
|
1033
|
+
b.value++, e.push({
|
|
1034
|
+
label: o == null ? void 0 : o.label,
|
|
1035
|
+
name: o == null ? void 0 : o.label,
|
|
1036
|
+
type: o.type,
|
|
1037
|
+
value: "",
|
|
1038
|
+
id: b.value,
|
|
1039
|
+
contents: o == null ? void 0 : o.options
|
|
1040
|
+
});
|
|
1041
|
+
}), Y.value = e, ne.value = e;
|
|
1042
|
+
}, j = () => {
|
|
1043
|
+
V.value = !0;
|
|
1044
|
+
let e = [];
|
|
1045
|
+
tl == null || tl.forEach((o) => {
|
|
1046
|
+
b.value++, e.push({
|
|
1047
|
+
label: o == null ? void 0 : o.label,
|
|
1048
|
+
name: o == null ? void 0 : o.label,
|
|
1049
|
+
type: o.type,
|
|
1050
|
+
value: "",
|
|
1051
|
+
id: b.value,
|
|
1052
|
+
contents: o == null ? void 0 : o.options
|
|
1053
|
+
});
|
|
1054
|
+
}), D.value = e, x.value = e;
|
|
1055
|
+
}, E = (e) => {
|
|
1056
|
+
let o = l(x.value);
|
|
1057
|
+
o = o == null ? void 0 : o.map((h) => (h.children || (h.value = e == null ? void 0 : e[h.name]), h)), x.value = o;
|
|
1058
|
+
}, w = () => {
|
|
1059
|
+
var h, m, C, B, Q;
|
|
1060
|
+
D.value = x.value;
|
|
1061
|
+
let e = {};
|
|
1062
|
+
if (X.value !== "" ? e.id = X.value : (b.value++, e.id = "id" + b.value), (h = D.value) == null || h.forEach((U) => {
|
|
1063
|
+
const S = tl == null ? void 0 : tl.find((J) => (J == null ? void 0 : J.label) === (U == null ? void 0 : U.label));
|
|
1064
|
+
S ? e[S.key] = U.value : U != null && U.children && U.children.length > 0 && (e.children = U.children);
|
|
1065
|
+
}), (m = ie.value) != null && m.find((U) => U.id === e.id))
|
|
1066
|
+
ie.value = (C = ie.value) == null ? void 0 : C.map((U) => (U.id === e.id && (U = e), U));
|
|
1067
|
+
else {
|
|
1068
|
+
let U = l(ie.value);
|
|
1069
|
+
U.push(e), ie.value = U;
|
|
1070
|
+
}
|
|
1071
|
+
V.value = !1, X.value = "";
|
|
1072
|
+
let o = l(s.originalItemContents);
|
|
1073
|
+
(B = l(s.originalItemContents)) != null && B.find((U) => (U == null ? void 0 : U.key) === "rowButton") ? o = (Q = l(s.originalItemContents)) == null ? void 0 : Q.map((U) => ((U == null ? void 0 : U.key) === "rowButton" && (U.contents = ie.value), U)) : o.push({
|
|
1074
|
+
key: "rowButton",
|
|
1075
|
+
contents: ie.value
|
|
1076
|
+
}), a("change", o);
|
|
1077
|
+
}, g = () => {
|
|
1078
|
+
V.value = !1, X.value = "", x.value = [], D.value = [];
|
|
1079
|
+
}, L = (e) => {
|
|
1080
|
+
R.value = !0;
|
|
1081
|
+
let o = [];
|
|
1082
|
+
Ie == null || Ie.forEach((h) => {
|
|
1083
|
+
b.value++, o.push({
|
|
1084
|
+
label: h == null ? void 0 : h.label,
|
|
1085
|
+
name: h == null ? void 0 : h.label,
|
|
1086
|
+
type: h.type,
|
|
1087
|
+
value: "",
|
|
1088
|
+
id: b.value,
|
|
1089
|
+
contents: h == null ? void 0 : h.options
|
|
1090
|
+
});
|
|
1091
|
+
}), Y.value = o, fe.value = e == null ? void 0 : e.id, ne.value = o;
|
|
1092
|
+
}, n = (e) => {
|
|
1093
|
+
var o;
|
|
1094
|
+
_.value = za(l(_.value), e == null ? void 0 : e.id), a("change", (o = l(s.originalItemContents)) == null ? void 0 : o.map((h) => {
|
|
1095
|
+
var m;
|
|
1096
|
+
return (h == null ? void 0 : h.key) === "header" && (h.contents = (m = _.value) != null && m.some((C) => C == null ? void 0 : C.children) ? [_.value] : _.value), h;
|
|
1097
|
+
}));
|
|
1098
|
+
}, P = (e) => {
|
|
1099
|
+
var h, m, C;
|
|
1100
|
+
e.type === "fix" ? e.id !== "" ? _.value = Ja(_.value, e) : _.value = Ma(_.value, e == null ? void 0 : e.contents) : _.value = Ga(_.value, e), _.value = (h = _.value) != null && h.some((B) => B == null ? void 0 : B.children) ? [_.value] : _.value, X.value = "";
|
|
1101
|
+
let o = l(s.originalItemContents);
|
|
1102
|
+
(m = l(s.originalItemContents)) != null && m.find((B) => (B == null ? void 0 : B.key) === "header") ? o = (C = l(s.originalItemContents)) == null ? void 0 : C.map((B) => ((B == null ? void 0 : B.key) === "header" && (B.contents = _.value), B)) : o.push({
|
|
1103
|
+
key: "header",
|
|
1104
|
+
contents: _.value
|
|
1105
|
+
}), a("change", o);
|
|
1106
|
+
}, _e = (e) => {
|
|
1107
|
+
var h;
|
|
1108
|
+
R.value = !0;
|
|
1109
|
+
let o = [];
|
|
1110
|
+
Ie == null || Ie.forEach((m) => {
|
|
1111
|
+
b.value++, o.push({
|
|
1112
|
+
label: m == null ? void 0 : m.label,
|
|
1113
|
+
name: m == null ? void 0 : m.label,
|
|
1114
|
+
type: m.type,
|
|
1115
|
+
value: e[m.key],
|
|
1116
|
+
id: b.value,
|
|
1117
|
+
contents: m == null ? void 0 : m.options
|
|
1118
|
+
});
|
|
1119
|
+
}), e != null && e.children && ((h = e == null ? void 0 : e.children) == null ? void 0 : h.length) > 0 && o.push({
|
|
1120
|
+
children: e == null ? void 0 : e.children,
|
|
1121
|
+
isFormColHidden: !0
|
|
1122
|
+
}), X.value = e == null ? void 0 : e.id, fe.value = "", Y.value = o, ne.value = o;
|
|
1123
|
+
}, N = (e) => {
|
|
1124
|
+
let o = l(ne.value);
|
|
1125
|
+
o = o == null ? void 0 : o.map((h) => (h.children || (h.value = e == null ? void 0 : e[h.name]), h)), ne.value = o;
|
|
1126
|
+
}, ue = () => {
|
|
1127
|
+
R.value = !1, X.value = "", fe.value = "", ne.value = [];
|
|
1128
|
+
}, be = () => {
|
|
1129
|
+
var h, m, C, B, Q, U;
|
|
1130
|
+
Y.value = ne.value;
|
|
1131
|
+
let e = {};
|
|
1132
|
+
if (X.value !== "" ? e.id = X.value : (b.value++, e.id = "id" + b.value), (h = Y.value) == null || h.forEach((S) => {
|
|
1133
|
+
const J = Ie == null ? void 0 : Ie.find((ve) => (ve == null ? void 0 : ve.label) === (S == null ? void 0 : S.label));
|
|
1134
|
+
J ? e[J.key] = S.value : S != null && S.children && S.children.length > 0 && (e.children = S.children);
|
|
1135
|
+
}), (m = _.value) != null && m.find((S) => S.id === e.id))
|
|
1136
|
+
_.value = (C = _.value) == null ? void 0 : C.map((S) => (S.id === e.id && (S = e), S));
|
|
1137
|
+
else {
|
|
1138
|
+
let S = l(_.value) ?? [];
|
|
1139
|
+
fe.value === "" ? S.push(e) : S = S == null ? void 0 : S.map((J) => (J.id === fe.value && (J.children || (J.children = []), J.children.push(e)), J)), _.value = S;
|
|
1140
|
+
}
|
|
1141
|
+
_.value = (B = _.value) != null && B.some((S) => S == null ? void 0 : S.children) ? [_.value] : _.value, R.value = !1, X.value = "", fe.value = "";
|
|
1142
|
+
let o = l(s.originalItemContents);
|
|
1143
|
+
(Q = l(s.originalItemContents)) != null && Q.find((S) => (S == null ? void 0 : S.key) === "header") ? o = (U = l(s.originalItemContents)) == null ? void 0 : U.map((S) => ((S == null ? void 0 : S.key) === "header" && (S.contents = _.value), S)) : o.push({
|
|
1144
|
+
key: "header",
|
|
1145
|
+
contents: _.value
|
|
1146
|
+
}), a("change", o);
|
|
1147
|
+
}, pe = (e) => {
|
|
1148
|
+
dl.confirm("是否确认要删除", "", {
|
|
1149
|
+
confirmButtonText: "确认",
|
|
1150
|
+
cancelButtonText: "取消",
|
|
1151
|
+
type: "warning"
|
|
1152
|
+
}).then(
|
|
1153
|
+
() => {
|
|
1154
|
+
var o, h;
|
|
1155
|
+
_.value = (o = l(_.value)) == null ? void 0 : o.filter((m) => (m == null ? void 0 : m.id) !== (e == null ? void 0 : e.id)), a("change", (h = l(s.originalItemContents)) == null ? void 0 : h.map((m) => {
|
|
1156
|
+
var C;
|
|
1157
|
+
return (m == null ? void 0 : m.key) === "header" && (m.contents = (C = _.value) != null && C.some((B) => B == null ? void 0 : B.children) ? [_.value] : _.value), m;
|
|
1158
|
+
})), Xe({
|
|
1159
|
+
type: "success",
|
|
1160
|
+
message: "删除成功"
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
).catch(() => {
|
|
1164
|
+
});
|
|
1165
|
+
};
|
|
1166
|
+
return Ve(
|
|
1167
|
+
() => s.originalItemContents,
|
|
1168
|
+
() => {
|
|
1169
|
+
var e, o, h, m, C, B, Q, U, S, J, ve, De, he, ae, Ce, ke, xe, Ne, je;
|
|
1170
|
+
if (!(!s.originalItemContents || s.originalItemContents.length === 0))
|
|
1171
|
+
if (t.value = l(s.originalItemContents), _.value = (o = (e = t.value) == null ? void 0 : e.find((W) => (W == null ? void 0 : W.key) === "header")) == null ? void 0 : o.contents, ie.value = (m = (h = t.value) == null ? void 0 : h.find((W) => (W == null ? void 0 : W.key) === "rowButton")) == null ? void 0 : m.contents, ee.value = (B = (C = t.value) == null ? void 0 : C.find((W) => (W == null ? void 0 : W.key) === "extraButton")) == null ? void 0 : B.contents, O.value = (U = (Q = t.value) == null ? void 0 : Q.find((W) => (W == null ? void 0 : W.key) === "page")) != null && U.contents ? !!((J = (S = t.value) == null ? void 0 : S.find((W) => (W == null ? void 0 : W.key) === "page")) != null && J.contents) : !1, A.value = (De = (ve = t.value) == null ? void 0 : ve.find((W) => (W == null ? void 0 : W.key) === "tableToForm")) == null ? void 0 : De.contents, _.value = (he = _.value) == null ? void 0 : he.map((W, Be) => (Array.isArray(W) ? W = xs(W) : W = {
|
|
1172
|
+
label: (W == null ? void 0 : W.label) ?? "",
|
|
1173
|
+
prop: (W == null ? void 0 : W.label) === "操作" ? "operate" : W == null ? void 0 : W.prop,
|
|
1174
|
+
width: W != null && W.width ? parseInt(W.width) : "",
|
|
1175
|
+
fixed: (W == null ? void 0 : W.fixed) ?? void 0,
|
|
1176
|
+
sortable: (W == null ? void 0 : W.sortable) ?? !1,
|
|
1177
|
+
align: (W == null ? void 0 : W.align) ?? "left",
|
|
1178
|
+
showOverflowTooltip: (W == null ? void 0 : W.showOverflowTooltip) ?? !0,
|
|
1179
|
+
isNotDrag: (W == null ? void 0 : W.isNotDrag) ?? !1,
|
|
1180
|
+
isEditCol: (W == null ? void 0 : W.isEditCol) ?? !1,
|
|
1181
|
+
isOperate: (W == null ? void 0 : W.isOperate) ?? !1,
|
|
1182
|
+
id: (W == null ? void 0 : W.id) ?? Be
|
|
1183
|
+
}, W)), _.value = (ae = _.value) != null && ae.every((W) => Array.isArray(W)) ? (Ce = _.value) == null ? void 0 : Ce[0] : _.value, ie.value = (ke = ie.value) == null ? void 0 : ke.map((W, Be) => W = {
|
|
1184
|
+
label: (W == null ? void 0 : W.label) ?? "",
|
|
1185
|
+
type: (W == null ? void 0 : W.type) ?? "",
|
|
1186
|
+
textColor: (W == null ? void 0 : W.textColor) ?? "#000000",
|
|
1187
|
+
id: (W == null ? void 0 : W.id) ?? Be
|
|
1188
|
+
}), ee.value = (xe = ee.value) == null ? void 0 : xe.map((W, Be) => W = {
|
|
1189
|
+
label: (W == null ? void 0 : W.label) ?? "",
|
|
1190
|
+
type: (W == null ? void 0 : W.type) ?? "",
|
|
1191
|
+
background: (W == null ? void 0 : W.background) ?? "var(--ssComponent-primary-color)",
|
|
1192
|
+
id: (W == null ? void 0 : W.id) ?? Be
|
|
1193
|
+
}), A.value)
|
|
1194
|
+
A.value = (je = A.value) == null ? void 0 : je.map((W) => {
|
|
1195
|
+
b.value++;
|
|
1196
|
+
let Be = W;
|
|
1197
|
+
return Be.id = b.value, Be;
|
|
1198
|
+
});
|
|
1199
|
+
else {
|
|
1200
|
+
let W = [];
|
|
1201
|
+
const Be = (Ne = ts(l(_.value))) == null ? void 0 : Ne.filter((Fe) => (Fe == null ? void 0 : Fe.prop) !== "operate");
|
|
1202
|
+
Be == null || Be.forEach((Fe) => {
|
|
1203
|
+
b.value++, W.push({
|
|
1204
|
+
label: Fe == null ? void 0 : Fe.label,
|
|
1205
|
+
name: Fe == null ? void 0 : Fe.label,
|
|
1206
|
+
type: "Input",
|
|
1207
|
+
value: "",
|
|
1208
|
+
id: b.value,
|
|
1209
|
+
contents: Fe == null ? void 0 : Fe.options
|
|
1210
|
+
});
|
|
1211
|
+
}), A.value = W;
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
{ deep: !0, immediate: !0 }
|
|
1215
|
+
), (e, o) => {
|
|
1216
|
+
const h = Te("svg-icon"), m = Te("el-button");
|
|
1217
|
+
return te(), ge("div", Hs, [
|
|
1218
|
+
T("div", qs, [
|
|
1219
|
+
T("div", Qs, [
|
|
1220
|
+
o[2] || (o[2] = T("div", null, we("表头"), -1)),
|
|
1221
|
+
se(m, {
|
|
1222
|
+
class: "icon-content",
|
|
1223
|
+
onClick: M,
|
|
1224
|
+
id: "themeButton"
|
|
1225
|
+
}, {
|
|
1226
|
+
icon: ye(() => [
|
|
1227
|
+
se(h, {
|
|
1228
|
+
name: "Plus",
|
|
1229
|
+
class: "icon-size"
|
|
1230
|
+
})
|
|
1231
|
+
]),
|
|
1232
|
+
default: ye(() => [
|
|
1233
|
+
o[1] || (o[1] = $e(" 新增 "))
|
|
1234
|
+
]),
|
|
1235
|
+
_: 1,
|
|
1236
|
+
__: [1]
|
|
1237
|
+
})
|
|
1238
|
+
]),
|
|
1239
|
+
T("div", Xs, [
|
|
1240
|
+
(te(!0), ge(Se, null, Pe(_.value, (C, B) => (te(), ge("div", { key: B }, [
|
|
1241
|
+
T("div", Ys, [
|
|
1242
|
+
T("div", Zs, we(C == null ? void 0 : C.label), 1),
|
|
1243
|
+
T("div", ei, [
|
|
1244
|
+
se(h, {
|
|
1245
|
+
name: "ChildAdd",
|
|
1246
|
+
class: "svg-icon-content",
|
|
1247
|
+
style: { width: "24px", height: "24px" },
|
|
1248
|
+
onClick: (Q) => L(C)
|
|
1249
|
+
}, null, 8, ["onClick"]),
|
|
1250
|
+
se(h, {
|
|
1251
|
+
name: "ChildFix",
|
|
1252
|
+
class: "svg-icon-content",
|
|
1253
|
+
style: { width: "24px", height: "24px" },
|
|
1254
|
+
onClick: (Q) => _e(C)
|
|
1255
|
+
}, null, 8, ["onClick"]),
|
|
1256
|
+
se(h, {
|
|
1257
|
+
name: "ChildDelete",
|
|
1258
|
+
class: "svg-icon-content",
|
|
1259
|
+
style: { width: "24px", height: "24px" },
|
|
1260
|
+
onClick: (Q) => pe(C)
|
|
1261
|
+
}, null, 8, ["onClick"])
|
|
1262
|
+
])
|
|
1263
|
+
]),
|
|
1264
|
+
C != null && C.children && C.children.length > 0 ? (te(), ge("div", li, [
|
|
1265
|
+
se(Ha, {
|
|
1266
|
+
tableChildContents: C == null ? void 0 : C.children,
|
|
1267
|
+
onDeleteChange: n,
|
|
1268
|
+
onFixChange: P
|
|
1269
|
+
}, null, 8, ["tableChildContents"])
|
|
1270
|
+
])) : Qe("", !0)
|
|
1271
|
+
]))), 128))
|
|
1272
|
+
]),
|
|
1273
|
+
T("div", ai, [
|
|
1274
|
+
o[4] || (o[4] = T("div", null, we("行内按钮"), -1)),
|
|
1275
|
+
se(m, {
|
|
1276
|
+
class: "icon-content",
|
|
1277
|
+
id: "themeButton",
|
|
1278
|
+
onClick: j
|
|
1279
|
+
}, {
|
|
1280
|
+
icon: ye(() => [
|
|
1281
|
+
se(h, {
|
|
1282
|
+
name: "Plus",
|
|
1283
|
+
class: "icon-size"
|
|
1284
|
+
})
|
|
1285
|
+
]),
|
|
1286
|
+
default: ye(() => [
|
|
1287
|
+
o[3] || (o[3] = $e(" 新增 "))
|
|
1288
|
+
]),
|
|
1289
|
+
_: 1,
|
|
1290
|
+
__: [3]
|
|
1291
|
+
})
|
|
1292
|
+
]),
|
|
1293
|
+
T("div", si, [
|
|
1294
|
+
(te(!0), ge(Se, null, Pe(ie.value, (C, B) => (te(), ge("div", { key: B }, [
|
|
1295
|
+
T("div", ii, [
|
|
1296
|
+
T("div", ni, we(C == null ? void 0 : C.label), 1),
|
|
1297
|
+
T("div", oi, [
|
|
1298
|
+
se(h, {
|
|
1299
|
+
name: "ChildFix",
|
|
1300
|
+
style: { width: "24px", height: "24px" },
|
|
1301
|
+
class: "svg-icon-content",
|
|
1302
|
+
onClick: (Q) => H(C)
|
|
1303
|
+
}, null, 8, ["onClick"]),
|
|
1304
|
+
se(h, {
|
|
1305
|
+
name: "ChildDelete",
|
|
1306
|
+
class: "svg-icon-content",
|
|
1307
|
+
style: { width: "24px", height: "24px" },
|
|
1308
|
+
onClick: (Q) => ce(C)
|
|
1309
|
+
}, null, 8, ["onClick"])
|
|
1310
|
+
])
|
|
1311
|
+
])
|
|
1312
|
+
]))), 128))
|
|
1313
|
+
]),
|
|
1314
|
+
T("div", ui, [
|
|
1315
|
+
o[6] || (o[6] = T("div", null, we("表外按钮"), -1)),
|
|
1316
|
+
se(m, {
|
|
1317
|
+
class: "icon-content",
|
|
1318
|
+
id: "themeButton",
|
|
1319
|
+
onClick: q
|
|
1320
|
+
}, {
|
|
1321
|
+
icon: ye(() => [
|
|
1322
|
+
se(h, {
|
|
1323
|
+
name: "Plus",
|
|
1324
|
+
class: "icon-size"
|
|
1325
|
+
})
|
|
1326
|
+
]),
|
|
1327
|
+
default: ye(() => [
|
|
1328
|
+
o[5] || (o[5] = $e(" 新增 "))
|
|
1329
|
+
]),
|
|
1330
|
+
_: 1,
|
|
1331
|
+
__: [5]
|
|
1332
|
+
})
|
|
1333
|
+
]),
|
|
1334
|
+
T("div", ri, [
|
|
1335
|
+
(te(!0), ge(Se, null, Pe(ee.value, (C, B) => (te(), ge("div", { key: B }, [
|
|
1336
|
+
T("div", ci, [
|
|
1337
|
+
T("div", ti, we(C == null ? void 0 : C.label), 1),
|
|
1338
|
+
T("div", di, [
|
|
1339
|
+
se(h, {
|
|
1340
|
+
name: "ChildFix",
|
|
1341
|
+
style: { width: "24px", height: "24px" },
|
|
1342
|
+
class: "svg-icon-content",
|
|
1343
|
+
onClick: (Q) => K(C)
|
|
1344
|
+
}, null, 8, ["onClick"]),
|
|
1345
|
+
se(h, {
|
|
1346
|
+
name: "ChildDelete",
|
|
1347
|
+
class: "svg-icon-content",
|
|
1348
|
+
style: { width: "24px", height: "24px" },
|
|
1349
|
+
onClick: (Q) => G(C)
|
|
1350
|
+
}, null, 8, ["onClick"])
|
|
1351
|
+
])
|
|
1352
|
+
])
|
|
1353
|
+
]))), 128))
|
|
1354
|
+
]),
|
|
1355
|
+
T("div", pi, [
|
|
1356
|
+
o[8] || (o[8] = T("div", null, we("表格弹框字段设置"), -1)),
|
|
1357
|
+
se(m, {
|
|
1358
|
+
class: "icon-content",
|
|
1359
|
+
id: "themeButton",
|
|
1360
|
+
onClick: me
|
|
1361
|
+
}, {
|
|
1362
|
+
icon: ye(() => [
|
|
1363
|
+
se(h, {
|
|
1364
|
+
name: "Plus",
|
|
1365
|
+
class: "icon-size"
|
|
1366
|
+
})
|
|
1367
|
+
]),
|
|
1368
|
+
default: ye(() => [
|
|
1369
|
+
o[7] || (o[7] = $e(" 新增 "))
|
|
1370
|
+
]),
|
|
1371
|
+
_: 1,
|
|
1372
|
+
__: [7]
|
|
1373
|
+
})
|
|
1374
|
+
]),
|
|
1375
|
+
T("div", fi, [
|
|
1376
|
+
(te(!0), ge(Se, null, Pe(A.value, (C, B) => (te(), ge("div", { key: B }, [
|
|
1377
|
+
T("div", hi, [
|
|
1378
|
+
T("div", vi, we(C == null ? void 0 : C.label), 1),
|
|
1379
|
+
T("div", mi, [
|
|
1380
|
+
se(h, {
|
|
1381
|
+
name: "ChildFix",
|
|
1382
|
+
style: { width: "24px", height: "24px" },
|
|
1383
|
+
class: "svg-icon-content",
|
|
1384
|
+
onClick: (Q) => I(C)
|
|
1385
|
+
}, null, 8, ["onClick"]),
|
|
1386
|
+
se(h, {
|
|
1387
|
+
name: "ChildDelete",
|
|
1388
|
+
class: "svg-icon-content",
|
|
1389
|
+
style: { width: "24px", height: "24px" },
|
|
1390
|
+
onClick: (Q) => $(C)
|
|
1391
|
+
}, null, 8, ["onClick"])
|
|
1392
|
+
])
|
|
1393
|
+
])
|
|
1394
|
+
]))), 128))
|
|
1395
|
+
]),
|
|
1396
|
+
o[10] || (o[10] = T("div", { class: "operate-title" }, [
|
|
1397
|
+
T("div", null, we("分页"))
|
|
1398
|
+
], -1)),
|
|
1399
|
+
T("div", yi, [
|
|
1400
|
+
T("div", bi, [
|
|
1401
|
+
o[9] || (o[9] = T("div", { class: "operate-center-content" }, we("是否分页"), -1)),
|
|
1402
|
+
se(Va, {
|
|
1403
|
+
modelValue: O.value,
|
|
1404
|
+
"onUpdate:modelValue": o[0] || (o[0] = (C) => O.value = C)
|
|
1405
|
+
}, null, 8, ["modelValue"])
|
|
1406
|
+
])
|
|
1407
|
+
])
|
|
1408
|
+
]),
|
|
1409
|
+
se(Ge, {
|
|
1410
|
+
visible: R.value,
|
|
1411
|
+
onBeforeDestroy: ue,
|
|
1412
|
+
width: 840
|
|
1413
|
+
}, {
|
|
1414
|
+
default: ye(() => [
|
|
1415
|
+
T("div", gi, [
|
|
1416
|
+
(te(), Oe(ze, {
|
|
1417
|
+
rowContents: Y.value,
|
|
1418
|
+
key: Y.value,
|
|
1419
|
+
isEnableWrap: !0,
|
|
1420
|
+
onChange: N
|
|
1421
|
+
}, null, 8, ["rowContents"]))
|
|
1422
|
+
])
|
|
1423
|
+
]),
|
|
1424
|
+
footer: ye(() => [
|
|
1425
|
+
T("div", ki, [
|
|
1426
|
+
se(m, {
|
|
1427
|
+
onClick: ue,
|
|
1428
|
+
class: "cancel-button button",
|
|
1429
|
+
id: "themeBorderButton"
|
|
1430
|
+
}, {
|
|
1431
|
+
default: ye(() => o[11] || (o[11] = [
|
|
1432
|
+
$e(we("取消"))
|
|
1433
|
+
])),
|
|
1434
|
+
_: 1,
|
|
1435
|
+
__: [11]
|
|
1436
|
+
}),
|
|
1437
|
+
se(m, {
|
|
1438
|
+
class: "ok-button button",
|
|
1439
|
+
onClick: be,
|
|
1440
|
+
id: "themeButton"
|
|
1441
|
+
}, {
|
|
1442
|
+
default: ye(() => o[12] || (o[12] = [
|
|
1443
|
+
$e(we("确认"))
|
|
1444
|
+
])),
|
|
1445
|
+
_: 1,
|
|
1446
|
+
__: [12]
|
|
1447
|
+
})
|
|
1448
|
+
])
|
|
1449
|
+
]),
|
|
1450
|
+
_: 1
|
|
1451
|
+
}, 8, ["visible"]),
|
|
1452
|
+
se(Ge, {
|
|
1453
|
+
visible: V.value,
|
|
1454
|
+
onBeforeDestroy: g,
|
|
1455
|
+
width: 840
|
|
1456
|
+
}, {
|
|
1457
|
+
default: ye(() => [
|
|
1458
|
+
T("div", _i, [
|
|
1459
|
+
(te(), Oe(ze, {
|
|
1460
|
+
rowContents: D.value,
|
|
1461
|
+
key: D.value,
|
|
1462
|
+
isEnableWrap: !0,
|
|
1463
|
+
onChange: E
|
|
1464
|
+
}, null, 8, ["rowContents"]))
|
|
1465
|
+
])
|
|
1466
|
+
]),
|
|
1467
|
+
footer: ye(() => [
|
|
1468
|
+
T("div", Ci, [
|
|
1469
|
+
se(m, {
|
|
1470
|
+
onClick: g,
|
|
1471
|
+
class: "cancel-button button",
|
|
1472
|
+
id: "themeBorderButton"
|
|
1473
|
+
}, {
|
|
1474
|
+
default: ye(() => o[13] || (o[13] = [
|
|
1475
|
+
$e(we("取消"))
|
|
1476
|
+
])),
|
|
1477
|
+
_: 1,
|
|
1478
|
+
__: [13]
|
|
1479
|
+
}),
|
|
1480
|
+
se(m, {
|
|
1481
|
+
class: "ok-button button",
|
|
1482
|
+
onClick: w,
|
|
1483
|
+
id: "themeButton"
|
|
1484
|
+
}, {
|
|
1485
|
+
default: ye(() => o[14] || (o[14] = [
|
|
1486
|
+
$e(we("确认"))
|
|
1487
|
+
])),
|
|
1488
|
+
_: 1,
|
|
1489
|
+
__: [14]
|
|
1490
|
+
})
|
|
1491
|
+
])
|
|
1492
|
+
]),
|
|
1493
|
+
_: 1
|
|
1494
|
+
}, 8, ["visible"]),
|
|
1495
|
+
se(Ge, {
|
|
1496
|
+
visible: de.value,
|
|
1497
|
+
onBeforeDestroy: F,
|
|
1498
|
+
width: 840
|
|
1499
|
+
}, {
|
|
1500
|
+
default: ye(() => [
|
|
1501
|
+
T("div", wi, [
|
|
1502
|
+
(te(), Oe(ze, {
|
|
1503
|
+
rowContents: p.value,
|
|
1504
|
+
key: p.value,
|
|
1505
|
+
isEnableWrap: !0,
|
|
1506
|
+
onChange: v
|
|
1507
|
+
}, null, 8, ["rowContents"]))
|
|
1508
|
+
])
|
|
1509
|
+
]),
|
|
1510
|
+
footer: ye(() => [
|
|
1511
|
+
T("div", Di, [
|
|
1512
|
+
se(m, {
|
|
1513
|
+
onClick: F,
|
|
1514
|
+
class: "cancel-button button",
|
|
1515
|
+
id: "themeBorderButton"
|
|
1516
|
+
}, {
|
|
1517
|
+
default: ye(() => o[15] || (o[15] = [
|
|
1518
|
+
$e(we("取消"))
|
|
1519
|
+
])),
|
|
1520
|
+
_: 1,
|
|
1521
|
+
__: [15]
|
|
1522
|
+
}),
|
|
1523
|
+
se(m, {
|
|
1524
|
+
class: "ok-button button",
|
|
1525
|
+
onClick: u,
|
|
1526
|
+
id: "themeButton"
|
|
1527
|
+
}, {
|
|
1528
|
+
default: ye(() => o[16] || (o[16] = [
|
|
1529
|
+
$e(we("确认"))
|
|
1530
|
+
])),
|
|
1531
|
+
_: 1,
|
|
1532
|
+
__: [16]
|
|
1533
|
+
})
|
|
1534
|
+
])
|
|
1535
|
+
]),
|
|
1536
|
+
_: 1
|
|
1537
|
+
}, 8, ["visible"]),
|
|
1538
|
+
se(Ge, {
|
|
1539
|
+
visible: z.value,
|
|
1540
|
+
onBeforeDestroy: k,
|
|
1541
|
+
width: 840
|
|
1542
|
+
}, {
|
|
1543
|
+
default: ye(() => [
|
|
1544
|
+
T("div", Ai, [
|
|
1545
|
+
(te(), Oe(ze, {
|
|
1546
|
+
rowContents: c.value,
|
|
1547
|
+
key: c.value,
|
|
1548
|
+
isEnableWrap: !0,
|
|
1549
|
+
onChange: oe,
|
|
1550
|
+
onChangeVisible: re,
|
|
1551
|
+
onBlurChange: i
|
|
1552
|
+
}, null, 8, ["rowContents"]))
|
|
1553
|
+
])
|
|
1554
|
+
]),
|
|
1555
|
+
footer: ye(() => [
|
|
1556
|
+
T("div", Ii, [
|
|
1557
|
+
se(m, {
|
|
1558
|
+
onClick: k,
|
|
1559
|
+
class: "cancel-button button",
|
|
1560
|
+
id: "themeBorderButton"
|
|
1561
|
+
}, {
|
|
1562
|
+
default: ye(() => o[17] || (o[17] = [
|
|
1563
|
+
$e(we("取消"))
|
|
1564
|
+
])),
|
|
1565
|
+
_: 1,
|
|
1566
|
+
__: [17]
|
|
1567
|
+
}),
|
|
1568
|
+
se(m, {
|
|
1569
|
+
class: "ok-button button",
|
|
1570
|
+
onClick: le,
|
|
1571
|
+
id: "themeButton"
|
|
1572
|
+
}, {
|
|
1573
|
+
default: ye(() => o[18] || (o[18] = [
|
|
1574
|
+
$e(we("确认"))
|
|
1575
|
+
])),
|
|
1576
|
+
_: 1,
|
|
1577
|
+
__: [18]
|
|
1578
|
+
})
|
|
1579
|
+
])
|
|
1580
|
+
]),
|
|
1581
|
+
_: 1
|
|
1582
|
+
}, 8, ["visible"])
|
|
1583
|
+
]);
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
}, Ei = /* @__PURE__ */ Ue(xi, [["__scopeId", "data-v-cd424fc8"]]), $i = { class: "form-operate-content" }, Bi = { class: "form-operate-item" }, Ti = { class: "operate-title" }, Si = { class: "operate-content" }, Oi = { class: "fix-content" }, Fi = { class: "fix-button" }, Li = { class: "operate-title" }, Pi = { class: "operate-content" }, Ri = { class: "fix-content" }, Ui = { class: "fix-button" }, ji = { style: { display: "flex", "justify-content": "space-between" } }, Ni = { class: "form-content" }, Ki = { class: "dialog-footer" }, Vi = { class: "form-content" }, Wi = {
|
|
1587
|
+
__name: "operate",
|
|
1588
|
+
props: {
|
|
1589
|
+
itemContents: {
|
|
1590
|
+
type: Array,
|
|
1591
|
+
default: () => []
|
|
1592
|
+
},
|
|
1593
|
+
originalItemContents: {
|
|
1594
|
+
type: Array,
|
|
1595
|
+
default: () => []
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
emits: ["change"],
|
|
1599
|
+
setup(r, { emit: y }) {
|
|
1600
|
+
const s = r, a = y, t = Z(!1), R = Z([]), z = Z([]), _ = Z(!1), V = Z([]), Y = Z([]), O = Z(""), ne = Z(!1), X = Z(0), fe = Z([]), ie = Z([]), ee = (i, I) => (console.log(345, i), (i == null ? void 0 : i.label) === "类型" && I[i.key] === "" ? "Input" : (i == null ? void 0 : i.key) === "isFormColHidden" && !I[i.key] ? !1 : I[i.key]), D = async (i) => {
|
|
1601
|
+
var k, le, K, G, u, v;
|
|
1602
|
+
t.value = !0;
|
|
1603
|
+
let I = [];
|
|
1604
|
+
const $ = await ((K = (le = (k = Ke) == null ? void 0 : k.find((F) => (F == null ? void 0 : F.key) === ((i == null ? void 0 : i.type) === "" ? "Input" : i == null ? void 0 : i.type))) == null ? void 0 : le.value) == null ? void 0 : K.value) ?? ((u = (G = Ke) == null ? void 0 : G.find((F) => (F == null ? void 0 : F.key) === ((i == null ? void 0 : i.type) === "" ? "Input" : i == null ? void 0 : i.type))) == null ? void 0 : u.value);
|
|
1605
|
+
if ($ == null || $.forEach((F) => {
|
|
1606
|
+
X.value++, I.push({
|
|
1607
|
+
label: F == null ? void 0 : F.label,
|
|
1608
|
+
name: F == null ? void 0 : F.label,
|
|
1609
|
+
type: F.type,
|
|
1610
|
+
// value: (t?.label === "类型" && content[t.key] === '') ? "Input" : content[t.key],
|
|
1611
|
+
value: ee(F, i),
|
|
1612
|
+
id: X.value,
|
|
1613
|
+
contents: F == null ? void 0 : F.options,
|
|
1614
|
+
width: (i == null ? void 0 : i.width) ?? 1
|
|
1615
|
+
});
|
|
1616
|
+
}), i != null && i.menuSelect && ((v = i == null ? void 0 : i.menuSelect) == null ? void 0 : v.length) > 0) {
|
|
1617
|
+
const F = await Dl(i == null ? void 0 : i.menuSelect);
|
|
1618
|
+
I = I == null ? void 0 : I.map((H) => ((H == null ? void 0 : H.name) === "组信息选项" && (H.contents = F), H));
|
|
1619
|
+
}
|
|
1620
|
+
O.value = i == null ? void 0 : i.id, R.value = await il(gl(I)), z.value = await il(gl(I));
|
|
1621
|
+
}, x = (i) => {
|
|
1622
|
+
var $;
|
|
1623
|
+
_.value = !0;
|
|
1624
|
+
let I = [];
|
|
1625
|
+
($ = ea) == null || $.forEach((k) => {
|
|
1626
|
+
X.value++, I.push({
|
|
1627
|
+
label: k == null ? void 0 : k.label,
|
|
1628
|
+
name: k == null ? void 0 : k.label,
|
|
1629
|
+
type: k.type,
|
|
1630
|
+
value: (k == null ? void 0 : k.label) === "类型" && i[k.key] === "" ? "normal" : i[k.key],
|
|
1631
|
+
id: X.value,
|
|
1632
|
+
contents: k == null ? void 0 : k.options
|
|
1633
|
+
});
|
|
1634
|
+
}), fe.value = I, ie.value = I, O.value = i == null ? void 0 : i.id;
|
|
1635
|
+
};
|
|
1636
|
+
Ve(
|
|
1637
|
+
() => ne.value,
|
|
1638
|
+
() => {
|
|
1639
|
+
var I, $;
|
|
1640
|
+
let i = l(s.originalItemContents);
|
|
1641
|
+
(I = l(s.originalItemContents)) != null && I.find((k) => (k == null ? void 0 : k.key) === "enableWrap") ? i = ($ = l(s.originalItemContents)) == null ? void 0 : $.map((k) => ((k == null ? void 0 : k.key) === "enableWrap" && (k.contents = !ne.value), k)) : i.push({
|
|
1642
|
+
key: "enableWrap",
|
|
1643
|
+
contents: !ne.value
|
|
1644
|
+
}), a("change", i);
|
|
1645
|
+
},
|
|
1646
|
+
{ deep: !0 }
|
|
1647
|
+
);
|
|
1648
|
+
const de = () => {
|
|
1649
|
+
var $, k, le, K, G;
|
|
1650
|
+
fe.value = ie.value;
|
|
1651
|
+
let i = {};
|
|
1652
|
+
if (O.value !== "" ? i.id = O.value : (X.value++, i.id = "id" + X.value), ($ = fe.value) == null || $.forEach((u) => {
|
|
1653
|
+
var F;
|
|
1654
|
+
const v = (F = ea) == null ? void 0 : F.find((H) => (H == null ? void 0 : H.label) === (u == null ? void 0 : u.label));
|
|
1655
|
+
v && (i[v.key] = u.value);
|
|
1656
|
+
}), (k = V.value) != null && k.find((u) => u.id === i.id))
|
|
1657
|
+
V.value = (le = V.value) == null ? void 0 : le.map((u) => (u.id === i.id && (u = i), u));
|
|
1658
|
+
else {
|
|
1659
|
+
let u = l(V.value);
|
|
1660
|
+
V.value || (V.value = []), u.push(i), V.value = u;
|
|
1661
|
+
}
|
|
1662
|
+
_.value = !1, O.value = "";
|
|
1663
|
+
let I = l(s.originalItemContents);
|
|
1664
|
+
(K = l(s.originalItemContents)) != null && K.find((u) => (u == null ? void 0 : u.key) === "formButton") ? I = (G = l(s.originalItemContents)) == null ? void 0 : G.map((u) => ((u == null ? void 0 : u.key) === "formButton" && (u.contents = V.value), u)) : I.push({
|
|
1665
|
+
key: "formButton",
|
|
1666
|
+
contents: V.value
|
|
1667
|
+
}), a("change", I);
|
|
1668
|
+
}, p = (i) => {
|
|
1669
|
+
dl.confirm("是否确认要删除", "", {
|
|
1670
|
+
confirmButtonText: "确认",
|
|
1671
|
+
cancelButtonText: "取消",
|
|
1672
|
+
type: "warning"
|
|
1673
|
+
}).then(
|
|
1674
|
+
() => {
|
|
1675
|
+
var I, $;
|
|
1676
|
+
Y.value = (I = l(Y.value)) == null ? void 0 : I.filter((k) => (k == null ? void 0 : k.id) !== (i == null ? void 0 : i.id)), a("change", ($ = l(s.originalItemContents)) == null ? void 0 : $.map((k) => ((k == null ? void 0 : k.key) === "formContent" && (k.contents = Y.value), k))), Xe({
|
|
1677
|
+
type: "success",
|
|
1678
|
+
message: "删除成功"
|
|
1679
|
+
});
|
|
1680
|
+
}
|
|
1681
|
+
).catch(() => {
|
|
1682
|
+
});
|
|
1683
|
+
}, f = (i) => {
|
|
1684
|
+
dl.confirm("是否确认要删除", "", {
|
|
1685
|
+
confirmButtonText: "确认",
|
|
1686
|
+
cancelButtonText: "取消",
|
|
1687
|
+
type: "warning"
|
|
1688
|
+
}).then(
|
|
1689
|
+
() => {
|
|
1690
|
+
var I, $;
|
|
1691
|
+
V.value = (I = l(V.value)) == null ? void 0 : I.filter((k) => (k == null ? void 0 : k.id) !== (i == null ? void 0 : i.id)), a("change", ($ = l(s.originalItemContents)) == null ? void 0 : $.map((k) => ((k == null ? void 0 : k.key) === "formButton" && (k.contents = V.value), k))), Xe({
|
|
1692
|
+
type: "success",
|
|
1693
|
+
message: "删除成功"
|
|
1694
|
+
});
|
|
1695
|
+
}
|
|
1696
|
+
).catch(() => {
|
|
1697
|
+
});
|
|
1698
|
+
}, b = () => {
|
|
1699
|
+
var I;
|
|
1700
|
+
_.value = !0;
|
|
1701
|
+
let i = [];
|
|
1702
|
+
(I = ea) == null || I.forEach(($) => {
|
|
1703
|
+
X.value++, i.push({
|
|
1704
|
+
label: $ == null ? void 0 : $.label,
|
|
1705
|
+
name: $ == null ? void 0 : $.label,
|
|
1706
|
+
type: $.type,
|
|
1707
|
+
value: ($ == null ? void 0 : $.label) === "类型" ? "normal" : "",
|
|
1708
|
+
id: X.value,
|
|
1709
|
+
contents: $ == null ? void 0 : $.options
|
|
1710
|
+
});
|
|
1711
|
+
}), fe.value = i, ie.value = i;
|
|
1712
|
+
}, c = () => {
|
|
1713
|
+
var I, $, k;
|
|
1714
|
+
t.value = !0;
|
|
1715
|
+
let i = [];
|
|
1716
|
+
(k = ($ = (I = Ke) == null ? void 0 : I.find((le) => (le == null ? void 0 : le.key) === "Input")) == null ? void 0 : $.value) == null || k.forEach((le) => {
|
|
1717
|
+
X.value++, i.push({
|
|
1718
|
+
label: le == null ? void 0 : le.label,
|
|
1719
|
+
name: le == null ? void 0 : le.label,
|
|
1720
|
+
type: le.type,
|
|
1721
|
+
value: (le == null ? void 0 : le.label) === "类型" ? "Input" : "",
|
|
1722
|
+
id: X.value,
|
|
1723
|
+
contents: le == null ? void 0 : le.options
|
|
1724
|
+
});
|
|
1725
|
+
}), R.value = i, z.value = i;
|
|
1726
|
+
}, d = (i) => {
|
|
1727
|
+
let I = l(ie.value);
|
|
1728
|
+
I = I == null ? void 0 : I.map(($) => ($.value = i == null ? void 0 : i[$.name], $)), ie.value = I;
|
|
1729
|
+
}, A = async (i) => {
|
|
1730
|
+
var I, $, k, le, K, G, u, v, F, H, ce, M;
|
|
1731
|
+
if ((i == null ? void 0 : i.类型) !== (($ = (I = z.value) == null ? void 0 : I.find((j) => (j == null ? void 0 : j.label) === "类型")) == null ? void 0 : $.value)) {
|
|
1732
|
+
let j = [];
|
|
1733
|
+
const E = await ((K = (le = (k = Ke) == null ? void 0 : k.find((w) => (w == null ? void 0 : w.key) === ((i == null ? void 0 : i.类型) === "" ? "Input" : i == null ? void 0 : i.类型))) == null ? void 0 : le.value) == null ? void 0 : K.value) ? await ((H = (F = (v = Ke) == null ? void 0 : v.find((w) => (w == null ? void 0 : w.key) === ((i == null ? void 0 : i.类型) === "" ? "Input" : i == null ? void 0 : i.类型))) == null ? void 0 : F.value) == null ? void 0 : H.value) : (u = (G = Ke) == null ? void 0 : G.find((w) => (w == null ? void 0 : w.key) === ((i == null ? void 0 : i.类型) === "" ? "Input" : i == null ? void 0 : i.类型))) == null ? void 0 : u.value;
|
|
1734
|
+
if (E == null || E.forEach((w) => {
|
|
1735
|
+
var g, L;
|
|
1736
|
+
X.value++, j.push({
|
|
1737
|
+
label: w == null ? void 0 : w.label,
|
|
1738
|
+
name: w == null ? void 0 : w.label,
|
|
1739
|
+
type: w.type,
|
|
1740
|
+
value: (i == null ? void 0 : i[w.label]) ?? "",
|
|
1741
|
+
id: X.value,
|
|
1742
|
+
contents: w == null ? void 0 : w.options,
|
|
1743
|
+
width: ((L = (g = z.value) == null ? void 0 : g[0]) == null ? void 0 : L.width) ?? 1
|
|
1744
|
+
});
|
|
1745
|
+
}), i != null && i.菜单选项 && ((ce = i == null ? void 0 : i.菜单选项) == null ? void 0 : ce.length) > 0) {
|
|
1746
|
+
const w = await Dl(i == null ? void 0 : i.菜单选项);
|
|
1747
|
+
j = j == null ? void 0 : j.map((g) => ((g == null ? void 0 : g.name) === "组信息选项" && (g.contents = w), g));
|
|
1748
|
+
}
|
|
1749
|
+
z.value = await il(l(j)), R.value = await il(l(j));
|
|
1750
|
+
} else {
|
|
1751
|
+
let j = l(z.value);
|
|
1752
|
+
if (j = j == null ? void 0 : j.map((E) => (E.value = i == null ? void 0 : i[E.name], E)), i != null && i.菜单选项 && ((M = i == null ? void 0 : i.菜单选项) == null ? void 0 : M.length) > 0) {
|
|
1753
|
+
const E = await Dl(i == null ? void 0 : i.菜单选项);
|
|
1754
|
+
j = j == null ? void 0 : j.map((w) => ((w == null ? void 0 : w.name) === "组信息选项" && (w.contents = E), w));
|
|
1755
|
+
}
|
|
1756
|
+
j = gl(j), z.value = await il(l(j));
|
|
1757
|
+
}
|
|
1758
|
+
}, q = (i) => {
|
|
1759
|
+
i || (R.value = z.value);
|
|
1760
|
+
}, me = async (i) => {
|
|
1761
|
+
await A(i), R.value = z.value;
|
|
1762
|
+
}, re = async () => {
|
|
1763
|
+
var k, le, K, G, u, v, F, H, ce, M, j, E;
|
|
1764
|
+
R.value = z.value;
|
|
1765
|
+
let i = {};
|
|
1766
|
+
i.width = ((le = (k = R.value) == null ? void 0 : k[0]) == null ? void 0 : le.width) ?? 1, O.value !== "" ? i.id = O.value : (X.value++, i.id = "id" + X.value);
|
|
1767
|
+
let I = await ((u = (G = (K = Ke) == null ? void 0 : K.find((w) => {
|
|
1768
|
+
var g, L;
|
|
1769
|
+
return (w == null ? void 0 : w.key) === (((L = (g = R.value) == null ? void 0 : g.find((n) => (n == null ? void 0 : n.label) === "类型")) == null ? void 0 : L.value) ?? "label");
|
|
1770
|
+
})) == null ? void 0 : G.value) == null ? void 0 : u.value) ?? ((F = (v = Ke) == null ? void 0 : v.find((w) => {
|
|
1771
|
+
var g, L;
|
|
1772
|
+
return (w == null ? void 0 : w.key) === (((L = (g = R.value) == null ? void 0 : g.find((n) => (n == null ? void 0 : n.label) === "类型")) == null ? void 0 : L.value) ?? "label");
|
|
1773
|
+
})) == null ? void 0 : F.value);
|
|
1774
|
+
if ((H = R.value) == null || H.forEach((w) => {
|
|
1775
|
+
const g = I == null ? void 0 : I.find((L) => (L == null ? void 0 : L.label) === (w == null ? void 0 : w.label));
|
|
1776
|
+
g && (i[g.key] = w.value);
|
|
1777
|
+
}), i.width = i.width ? i.width : 1, i.key = i == null ? void 0 : i.label, i.isFormColHidden = i == null ? void 0 : i.isFormColHidden, (ce = Y.value) != null && ce.find((w) => w.id === i.id))
|
|
1778
|
+
Y.value = (M = Y.value) == null ? void 0 : M.map((w) => (w.id === i.id && (w = i), w));
|
|
1779
|
+
else {
|
|
1780
|
+
let w = l(Y.value);
|
|
1781
|
+
w.push(i), Y.value = w;
|
|
1782
|
+
}
|
|
1783
|
+
Y.value = Y.value.map(({ id: w, ...g }) => g), t.value = !1, O.value = "";
|
|
1784
|
+
let $ = l(s.originalItemContents);
|
|
1785
|
+
(j = l(s.originalItemContents)) != null && j.find((w) => (w == null ? void 0 : w.key) === "formContent") ? $ = (E = l(s.originalItemContents)) == null ? void 0 : E.map((w) => ((w == null ? void 0 : w.key) === "formContent" && (w.contents = Y.value), w)) : $.push({
|
|
1786
|
+
key: "formContent",
|
|
1787
|
+
contents: Y.value
|
|
1788
|
+
}), a("change", $);
|
|
1789
|
+
}, oe = () => {
|
|
1790
|
+
t.value = !1, _.value = !1, O.value = "", z.value = [], ie.value = [];
|
|
1791
|
+
};
|
|
1792
|
+
return Ve(
|
|
1793
|
+
() => s.originalItemContents,
|
|
1794
|
+
() => {
|
|
1795
|
+
var I, $, k, le, K, G;
|
|
1796
|
+
if (!s.originalItemContents || s.originalItemContents.length === 0) return;
|
|
1797
|
+
const i = l(s.originalItemContents);
|
|
1798
|
+
Y.value = ((I = i == null ? void 0 : i.find((u) => (u == null ? void 0 : u.key) === "formContent")) == null ? void 0 : I.contents) ?? [], V.value = (($ = i == null ? void 0 : i.find((u) => (u == null ? void 0 : u.key) === "formButton")) == null ? void 0 : $.contents) ?? [], ne.value = (k = i == null ? void 0 : i.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && k.contents ? !((le = i == null ? void 0 : i.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && le.contents) : !0, Y.value = (K = l(Y.value)) == null ? void 0 : K.map((u, v) => {
|
|
1799
|
+
var H;
|
|
1800
|
+
let F = u;
|
|
1801
|
+
return F.id = (u == null ? void 0 : u.id) ?? v, 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 = ((H = u == null ? void 0 : u.options) == null ? void 0 : H.length) === 0 ? (u == null ? void 0 : u.contents) ?? "" : u == null ? void 0 : u.options, F;
|
|
1802
|
+
}), Y.value = gl(Y.value), V.value = (G = V.value) == null ? void 0 : G.map((u, v) => u = {
|
|
1803
|
+
label: (u == null ? void 0 : u.label) ?? "",
|
|
1804
|
+
type: (u == null ? void 0 : u.type) ?? "",
|
|
1805
|
+
background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)",
|
|
1806
|
+
id: v
|
|
1807
|
+
});
|
|
1808
|
+
},
|
|
1809
|
+
{ deep: !0, immediate: !0 }
|
|
1810
|
+
), (i, I) => {
|
|
1811
|
+
const $ = Te("svg-icon"), k = Te("el-button");
|
|
1812
|
+
return te(), ge("div", $i, [
|
|
1813
|
+
T("div", Bi, [
|
|
1814
|
+
T("div", Ti, [
|
|
1815
|
+
I[2] || (I[2] = T("div", null, we("表单内容"), -1)),
|
|
1816
|
+
se(k, {
|
|
1817
|
+
class: "icon-content",
|
|
1818
|
+
id: "themeButton",
|
|
1819
|
+
onClick: c
|
|
1820
|
+
}, {
|
|
1821
|
+
icon: ye(() => [
|
|
1822
|
+
se($, {
|
|
1823
|
+
name: "Plus",
|
|
1824
|
+
class: "icon-size"
|
|
1825
|
+
})
|
|
1826
|
+
]),
|
|
1827
|
+
default: ye(() => [
|
|
1828
|
+
I[1] || (I[1] = T("div", null, we("新增"), -1))
|
|
1829
|
+
]),
|
|
1830
|
+
_: 1,
|
|
1831
|
+
__: [1]
|
|
1832
|
+
})
|
|
1833
|
+
]),
|
|
1834
|
+
T("div", Si, [
|
|
1835
|
+
(te(!0), ge(Se, null, Pe(Y.value, (le, K) => (te(), ge("div", { key: K }, [
|
|
1836
|
+
T("div", Oi, [
|
|
1837
|
+
T("div", null, we(le.label), 1),
|
|
1838
|
+
T("div", Fi, [
|
|
1839
|
+
se($, {
|
|
1840
|
+
name: "ChildFix",
|
|
1841
|
+
class: "svg-icon-content",
|
|
1842
|
+
style: { width: "24px", height: "24px" },
|
|
1843
|
+
onClick: (G) => D(le)
|
|
1844
|
+
}, null, 8, ["onClick"]),
|
|
1845
|
+
se($, {
|
|
1846
|
+
name: "ChildDelete",
|
|
1847
|
+
class: "svg-icon-content",
|
|
1848
|
+
style: { width: "24px", height: "24px" },
|
|
1849
|
+
onClick: (G) => p(le)
|
|
1850
|
+
}, null, 8, ["onClick"])
|
|
1851
|
+
])
|
|
1852
|
+
])
|
|
1853
|
+
]))), 128))
|
|
1854
|
+
]),
|
|
1855
|
+
T("div", Li, [
|
|
1856
|
+
I[4] || (I[4] = T("div", null, we("表单按钮"), -1)),
|
|
1857
|
+
se(k, {
|
|
1858
|
+
class: "icon-content",
|
|
1859
|
+
id: "themeButton",
|
|
1860
|
+
onClick: b
|
|
1861
|
+
}, {
|
|
1862
|
+
icon: ye(() => [
|
|
1863
|
+
se($, {
|
|
1864
|
+
name: "Plus",
|
|
1865
|
+
class: "icon-size"
|
|
1866
|
+
})
|
|
1867
|
+
]),
|
|
1868
|
+
default: ye(() => [
|
|
1869
|
+
I[3] || (I[3] = $e(" 新增 "))
|
|
1870
|
+
]),
|
|
1871
|
+
_: 1,
|
|
1872
|
+
__: [3]
|
|
1873
|
+
})
|
|
1874
|
+
]),
|
|
1875
|
+
T("div", Pi, [
|
|
1876
|
+
(te(!0), ge(Se, null, Pe(V.value, (le, K) => (te(), ge("div", { key: K }, [
|
|
1877
|
+
T("div", Ri, [
|
|
1878
|
+
T("div", null, we(le.label), 1),
|
|
1879
|
+
T("div", Ui, [
|
|
1880
|
+
se($, {
|
|
1881
|
+
name: "ChildFix",
|
|
1882
|
+
class: "svg-icon-content",
|
|
1883
|
+
style: { width: "24px", height: "24px" },
|
|
1884
|
+
onClick: (G) => x(le)
|
|
1885
|
+
}, null, 8, ["onClick"]),
|
|
1886
|
+
se($, {
|
|
1887
|
+
name: "ChildDelete",
|
|
1888
|
+
class: "svg-icon-content",
|
|
1889
|
+
style: { width: "24px", height: "24px" },
|
|
1890
|
+
onClick: (G) => f(le)
|
|
1891
|
+
}, null, 8, ["onClick"])
|
|
1892
|
+
])
|
|
1893
|
+
])
|
|
1894
|
+
]))), 128))
|
|
1895
|
+
]),
|
|
1896
|
+
I[6] || (I[6] = T("div", { class: "operate-title" }, [
|
|
1897
|
+
T("div", null, we("表单布局"))
|
|
1898
|
+
], -1)),
|
|
1899
|
+
T("div", ji, [
|
|
1900
|
+
I[5] || (I[5] = T("div", { class: "operate-center-content" }, we("是否自动撑宽"), -1)),
|
|
1901
|
+
se(Va, {
|
|
1902
|
+
modelValue: ne.value,
|
|
1903
|
+
"onUpdate:modelValue": I[0] || (I[0] = (le) => ne.value = le)
|
|
1904
|
+
}, null, 8, ["modelValue"])
|
|
1905
|
+
])
|
|
1906
|
+
]),
|
|
1907
|
+
se(Ge, {
|
|
1908
|
+
visible: t.value,
|
|
1909
|
+
onBeforeDestroy: oe,
|
|
1910
|
+
width: 840
|
|
1911
|
+
}, {
|
|
1912
|
+
default: ye(() => [
|
|
1913
|
+
T("div", Ni, [
|
|
1914
|
+
(te(), Oe(ze, {
|
|
1915
|
+
rowContents: R.value,
|
|
1916
|
+
key: R.value,
|
|
1917
|
+
isEnableWrap: !0,
|
|
1918
|
+
onChange: A,
|
|
1919
|
+
onChangeVisible: q,
|
|
1920
|
+
onBlurChange: me
|
|
1921
|
+
}, null, 8, ["rowContents"]))
|
|
1922
|
+
])
|
|
1923
|
+
]),
|
|
1924
|
+
footer: ye(() => [
|
|
1925
|
+
T("div", Ki, [
|
|
1926
|
+
se(k, {
|
|
1927
|
+
onClick: oe,
|
|
1928
|
+
class: "cancel-button button",
|
|
1929
|
+
id: "themeBorderButton"
|
|
1930
|
+
}, {
|
|
1931
|
+
default: ye(() => I[7] || (I[7] = [
|
|
1932
|
+
$e(we("取消"))
|
|
1933
|
+
])),
|
|
1934
|
+
_: 1,
|
|
1935
|
+
__: [7]
|
|
1936
|
+
}),
|
|
1937
|
+
se(k, {
|
|
1938
|
+
class: "ok-button button",
|
|
1939
|
+
onClick: re,
|
|
1940
|
+
id: "themeButton"
|
|
1941
|
+
}, {
|
|
1942
|
+
default: ye(() => I[8] || (I[8] = [
|
|
1943
|
+
$e(we("确认"))
|
|
1944
|
+
])),
|
|
1945
|
+
_: 1,
|
|
1946
|
+
__: [8]
|
|
1947
|
+
})
|
|
1948
|
+
])
|
|
1949
|
+
]),
|
|
1950
|
+
_: 1
|
|
1951
|
+
}, 8, ["visible"]),
|
|
1952
|
+
se(Ge, {
|
|
1953
|
+
visible: _.value,
|
|
1954
|
+
onBeforeDestroy: oe,
|
|
1955
|
+
width: 840
|
|
1956
|
+
}, {
|
|
1957
|
+
default: ye(() => [
|
|
1958
|
+
T("div", Vi, [
|
|
1959
|
+
(te(), Oe(ze, {
|
|
1960
|
+
rowContents: fe.value,
|
|
1961
|
+
key: fe.value,
|
|
1962
|
+
isEnableWrap: !0,
|
|
1963
|
+
onChange: d
|
|
1964
|
+
}, null, 8, ["rowContents"]))
|
|
1965
|
+
])
|
|
1966
|
+
]),
|
|
1967
|
+
footer: ye(() => [
|
|
1968
|
+
T("div", { class: "dialog-footer" }, [
|
|
1969
|
+
T("div", {
|
|
1970
|
+
onClick: oe,
|
|
1971
|
+
class: "cancel-button button"
|
|
1972
|
+
}, we("取消")),
|
|
1973
|
+
T("div", {
|
|
1974
|
+
class: "ok-button button",
|
|
1975
|
+
onClick: de
|
|
1976
|
+
}, we("确认"))
|
|
1977
|
+
])
|
|
1978
|
+
]),
|
|
1979
|
+
_: 1
|
|
1980
|
+
}, 8, ["visible"])
|
|
1981
|
+
]);
|
|
1982
|
+
};
|
|
1983
|
+
}
|
|
1984
|
+
}, Ra = /* @__PURE__ */ Ue(Wi, [["__scopeId", "data-v-8cbdc3ef"]]), zi = { class: "step-module content" }, Mi = { class: "module-data" }, Ji = { class: "step-module layout" }, Gi = { class: "form-content" }, Hi = /* @__PURE__ */ kl({
|
|
1985
|
+
__name: "operate",
|
|
1986
|
+
props: {
|
|
1987
|
+
itemContents: {
|
|
1988
|
+
type: Array,
|
|
1989
|
+
default: () => []
|
|
1990
|
+
},
|
|
1991
|
+
originalItemContents: {
|
|
1992
|
+
type: Array,
|
|
1993
|
+
default: () => []
|
|
1994
|
+
}
|
|
1995
|
+
},
|
|
1996
|
+
emits: ["change"],
|
|
1997
|
+
setup(r, { emit: y }) {
|
|
1998
|
+
const s = r, a = y, t = Z([
|
|
1999
|
+
{
|
|
2000
|
+
label: "方向:",
|
|
2001
|
+
prop: "direction",
|
|
2002
|
+
type: "RADIO",
|
|
2003
|
+
contents: [
|
|
2004
|
+
{
|
|
2005
|
+
label: "水平",
|
|
2006
|
+
value: "horizontal"
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
label: "垂直",
|
|
2010
|
+
value: "vertical"
|
|
2011
|
+
}
|
|
2012
|
+
],
|
|
2013
|
+
value: "horizontal"
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
label: "是否居中:",
|
|
2017
|
+
prop: "alignCenter",
|
|
2018
|
+
type: "RADIO",
|
|
2019
|
+
contents: [
|
|
2020
|
+
{
|
|
2021
|
+
label: "是",
|
|
2022
|
+
value: !0
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
label: "否",
|
|
2026
|
+
value: !1
|
|
2027
|
+
}
|
|
2028
|
+
],
|
|
2029
|
+
value: !0
|
|
2030
|
+
},
|
|
2031
|
+
// {
|
|
2032
|
+
// label: '是否交互',
|
|
2033
|
+
// prop: 'allowTrigger',
|
|
2034
|
+
// type: 'RADIO',
|
|
2035
|
+
// contents: [
|
|
2036
|
+
// {
|
|
2037
|
+
// label: '是',
|
|
2038
|
+
// value: true,
|
|
2039
|
+
// }, {
|
|
2040
|
+
// label: '否',
|
|
2041
|
+
// value: false,
|
|
2042
|
+
// },
|
|
2043
|
+
// ],
|
|
2044
|
+
// value: 'horizontal'
|
|
2045
|
+
// },
|
|
2046
|
+
{
|
|
2047
|
+
label: "应用简洁风格",
|
|
2048
|
+
prop: "simple",
|
|
2049
|
+
type: "RADIO",
|
|
2050
|
+
contents: [
|
|
2051
|
+
{
|
|
2052
|
+
label: "是",
|
|
2053
|
+
value: !0
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
label: "否",
|
|
2057
|
+
value: !1
|
|
2058
|
+
}
|
|
2059
|
+
],
|
|
2060
|
+
value: !1
|
|
2061
|
+
}
|
|
2062
|
+
]), R = Z([
|
|
2063
|
+
{
|
|
2064
|
+
label: "",
|
|
2065
|
+
prop: "index",
|
|
2066
|
+
type: "input",
|
|
2067
|
+
value: "",
|
|
2068
|
+
isFormColHidden: !0
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
label: "标题",
|
|
2072
|
+
prop: "title",
|
|
2073
|
+
type: "input",
|
|
2074
|
+
value: ""
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
label: "描述",
|
|
2078
|
+
prop: "description",
|
|
2079
|
+
type: "input",
|
|
2080
|
+
value: ""
|
|
2081
|
+
}
|
|
2082
|
+
]), z = Z([
|
|
2083
|
+
{
|
|
2084
|
+
label: "取消",
|
|
2085
|
+
background: "#c0c4cc"
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
label: "确认",
|
|
2089
|
+
background: "#436aaf"
|
|
2090
|
+
}
|
|
2091
|
+
]), _ = oa({
|
|
2092
|
+
visible: !1,
|
|
2093
|
+
width: "40%",
|
|
2094
|
+
title: "步骤条"
|
|
2095
|
+
}), V = Z("create"), Y = Z({}), O = Z([]), ne = (D) => {
|
|
2096
|
+
var x;
|
|
2097
|
+
Y.value = D, a("change", (x = ie()) == null ? void 0 : x.compData);
|
|
2098
|
+
}, X = (D, x) => {
|
|
2099
|
+
var de, p;
|
|
2100
|
+
switch (D) {
|
|
2101
|
+
case "create":
|
|
2102
|
+
(de = R.value) == null || de.forEach((f) => {
|
|
2103
|
+
f.value = "";
|
|
2104
|
+
}), V.value = "create", _.visible = !0;
|
|
2105
|
+
break;
|
|
2106
|
+
case "update":
|
|
2107
|
+
(p = R.value) == null || p.forEach((f) => {
|
|
2108
|
+
f.value = x[f == null ? void 0 : f.prop];
|
|
2109
|
+
}), V.value = "update", _.visible = !0;
|
|
2110
|
+
break;
|
|
2111
|
+
case "delete":
|
|
2112
|
+
O.value.splice(x, 1), V.value = "delete";
|
|
2113
|
+
break;
|
|
2114
|
+
}
|
|
2115
|
+
}, fe = (D) => {
|
|
2116
|
+
var x, de, p;
|
|
2117
|
+
if ((D == null ? void 0 : D.buttonName) === "确认") {
|
|
2118
|
+
const f = l(D == null ? void 0 : D.content);
|
|
2119
|
+
switch (Object.keys(f).forEach((b) => {
|
|
2120
|
+
f[b] === "" && delete f[b];
|
|
2121
|
+
}), V.value) {
|
|
2122
|
+
case "create":
|
|
2123
|
+
O.value.push({
|
|
2124
|
+
...f,
|
|
2125
|
+
index: ((x = O.value) == null ? void 0 : x.length) + 1
|
|
2126
|
+
});
|
|
2127
|
+
break;
|
|
2128
|
+
case "update":
|
|
2129
|
+
O.value = (de = O.value) == null ? void 0 : de.map((b) => b.index === (f == null ? void 0 : f.index) ? {
|
|
2130
|
+
...b,
|
|
2131
|
+
title: f == null ? void 0 : f.title,
|
|
2132
|
+
description: f == null ? void 0 : f.description
|
|
2133
|
+
} : b);
|
|
2134
|
+
break;
|
|
2135
|
+
}
|
|
2136
|
+
a("change", (p = ie()) == null ? void 0 : p.compData), _.visible = !1;
|
|
2137
|
+
} else
|
|
2138
|
+
_.visible = !1;
|
|
2139
|
+
}, ie = () => ({
|
|
2140
|
+
comp: "Step",
|
|
2141
|
+
compData: [
|
|
2142
|
+
{
|
|
2143
|
+
key: "stepList",
|
|
2144
|
+
contents: O.value
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
key: "stepConfig",
|
|
2148
|
+
contents: Y.value
|
|
2149
|
+
}
|
|
2150
|
+
]
|
|
2151
|
+
}), ee = () => {
|
|
2152
|
+
_.visible = !1;
|
|
2153
|
+
};
|
|
2154
|
+
return Ve(() => s == null ? void 0 : s.itemContents, (D) => {
|
|
2155
|
+
var x, de;
|
|
2156
|
+
D && (Y.value = ((x = D == null ? void 0 : D.find((p) => p.key === "stepConfig")) == null ? void 0 : x.contents) ?? {}, O.value = ((de = D == null ? void 0 : D.find((p) => p.key === "stepList")) == null ? void 0 : de.contents) ?? []);
|
|
2157
|
+
}, { immediate: !0 }), (D, x) => {
|
|
2158
|
+
const de = Te("svg-icon"), p = Te("el-button");
|
|
2159
|
+
return te(), ge(Se, null, [
|
|
2160
|
+
T("div", null, [
|
|
2161
|
+
T("div", zi, [
|
|
2162
|
+
x[2] || (x[2] = T("h4", { class: "module-title" }, "内容", -1)),
|
|
2163
|
+
se(p, {
|
|
2164
|
+
class: "module-icon",
|
|
2165
|
+
id: "themeButton",
|
|
2166
|
+
onClick: x[0] || (x[0] = (f) => X("create"))
|
|
2167
|
+
}, {
|
|
2168
|
+
icon: ye(() => [
|
|
2169
|
+
se(de, {
|
|
2170
|
+
name: "Plus",
|
|
2171
|
+
class: "icon-size"
|
|
2172
|
+
})
|
|
2173
|
+
]),
|
|
2174
|
+
default: ye(() => [
|
|
2175
|
+
x[1] || (x[1] = $e(" 新增 "))
|
|
2176
|
+
]),
|
|
2177
|
+
_: 1,
|
|
2178
|
+
__: [1]
|
|
2179
|
+
})
|
|
2180
|
+
]),
|
|
2181
|
+
T("div", Mi, [
|
|
2182
|
+
(te(!0), ge(Se, null, Pe(O.value, (f, b) => (te(), ge("div", {
|
|
2183
|
+
class: "module-data-item",
|
|
2184
|
+
key: b
|
|
2185
|
+
}, [
|
|
2186
|
+
T("span", null, we(f == null ? void 0 : f.title), 1),
|
|
2187
|
+
T("div", null, [
|
|
2188
|
+
se(p, {
|
|
2189
|
+
type: "primary",
|
|
2190
|
+
size: "small",
|
|
2191
|
+
onClick: (c) => X("update", { ...f, index: b + 1 })
|
|
2192
|
+
}, {
|
|
2193
|
+
default: ye(() => x[3] || (x[3] = [
|
|
2194
|
+
$e("修改")
|
|
2195
|
+
])),
|
|
2196
|
+
_: 2,
|
|
2197
|
+
__: [3]
|
|
2198
|
+
}, 1032, ["onClick"]),
|
|
2199
|
+
se(p, {
|
|
2200
|
+
type: "danger",
|
|
2201
|
+
size: "small",
|
|
2202
|
+
onClick: (c) => X("delete", b)
|
|
2203
|
+
}, {
|
|
2204
|
+
default: ye(() => x[4] || (x[4] = [
|
|
2205
|
+
$e("删除")
|
|
2206
|
+
])),
|
|
2207
|
+
_: 2,
|
|
2208
|
+
__: [4]
|
|
2209
|
+
}, 1032, ["onClick"])
|
|
2210
|
+
])
|
|
2211
|
+
]))), 128))
|
|
2212
|
+
]),
|
|
2213
|
+
T("div", Ji, [
|
|
2214
|
+
x[5] || (x[5] = T("div", { class: "module-title" }, "布局", -1)),
|
|
2215
|
+
se(ze, {
|
|
2216
|
+
rowContents: t.value,
|
|
2217
|
+
onChange: ne
|
|
2218
|
+
}, null, 8, ["rowContents"])
|
|
2219
|
+
])
|
|
2220
|
+
]),
|
|
2221
|
+
se(Ge, {
|
|
2222
|
+
visible: _.visible,
|
|
2223
|
+
title: _.title,
|
|
2224
|
+
onBeforeDestroy: ee,
|
|
2225
|
+
width: _.width
|
|
2226
|
+
}, {
|
|
2227
|
+
default: ye(() => [
|
|
2228
|
+
T("div", Gi, [
|
|
2229
|
+
(te(), Oe(ze, {
|
|
2230
|
+
rowContents: R.value,
|
|
2231
|
+
key: R.value,
|
|
2232
|
+
isEnableWrap: !1,
|
|
2233
|
+
isButtonRow: !1,
|
|
2234
|
+
isStartJustify: !1,
|
|
2235
|
+
buttonValue: z.value,
|
|
2236
|
+
onOnButtonClick: fe
|
|
2237
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2238
|
+
])
|
|
2239
|
+
]),
|
|
2240
|
+
_: 1
|
|
2241
|
+
}, 8, ["visible", "title", "width"])
|
|
2242
|
+
], 64);
|
|
2243
|
+
};
|
|
2244
|
+
}
|
|
2245
|
+
}), qi = /* @__PURE__ */ Ue(Hi, [["__scopeId", "data-v-7dbd17f2"]]), Qi = { class: "step-module content" }, Xi = { class: "module-data" }, Yi = { class: "step-module layout" }, Zi = { class: "form-content" }, en = /* @__PURE__ */ kl({
|
|
2246
|
+
__name: "operate",
|
|
2247
|
+
props: {
|
|
2248
|
+
itemContents: {
|
|
2249
|
+
type: Array,
|
|
2250
|
+
default: () => []
|
|
2251
|
+
},
|
|
2252
|
+
originalItemContents: {
|
|
2253
|
+
type: Array,
|
|
2254
|
+
default: () => []
|
|
2255
|
+
}
|
|
2256
|
+
},
|
|
2257
|
+
emits: ["change"],
|
|
2258
|
+
setup(r, { emit: y }) {
|
|
2259
|
+
const s = r, a = y, t = Z("create"), R = Z({}), z = Z([]), _ = Z([
|
|
2260
|
+
{
|
|
2261
|
+
label: "方向:",
|
|
2262
|
+
prop: "placement",
|
|
2263
|
+
type: "radio",
|
|
2264
|
+
contents: [
|
|
2265
|
+
{
|
|
2266
|
+
label: "底部",
|
|
2267
|
+
value: "bottom"
|
|
2268
|
+
},
|
|
2269
|
+
{
|
|
2270
|
+
label: "顶部",
|
|
2271
|
+
value: "top"
|
|
2272
|
+
}
|
|
2273
|
+
],
|
|
2274
|
+
value: "bottom"
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
label: "节点类型:",
|
|
2278
|
+
prop: "type",
|
|
2279
|
+
type: "select",
|
|
2280
|
+
contents: [
|
|
2281
|
+
{
|
|
2282
|
+
label: "primary",
|
|
2283
|
+
value: "primary"
|
|
2284
|
+
},
|
|
2285
|
+
{
|
|
2286
|
+
label: "success",
|
|
2287
|
+
value: "success"
|
|
2288
|
+
},
|
|
2289
|
+
{
|
|
2290
|
+
label: "warning",
|
|
2291
|
+
value: "warning"
|
|
2292
|
+
},
|
|
2293
|
+
{
|
|
2294
|
+
label: "danger",
|
|
2295
|
+
value: "danger"
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
label: "info",
|
|
2299
|
+
value: "info"
|
|
2300
|
+
}
|
|
2301
|
+
],
|
|
2302
|
+
value: "primary"
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
label: "颜色:",
|
|
2306
|
+
prop: "color",
|
|
2307
|
+
type: "color",
|
|
2308
|
+
value: ""
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
label: "尺寸:",
|
|
2312
|
+
prop: "size",
|
|
2313
|
+
type: "radio",
|
|
2314
|
+
contents: [
|
|
2315
|
+
{
|
|
2316
|
+
label: "normal",
|
|
2317
|
+
value: "normal"
|
|
2318
|
+
},
|
|
2319
|
+
{
|
|
2320
|
+
label: "large",
|
|
2321
|
+
value: "large"
|
|
2322
|
+
}
|
|
2323
|
+
],
|
|
2324
|
+
value: "normal"
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
label: "是否空心",
|
|
2328
|
+
prop: "isHollow",
|
|
2329
|
+
type: "RADIO",
|
|
2330
|
+
contents: [
|
|
2331
|
+
{
|
|
2332
|
+
label: "是",
|
|
2333
|
+
value: !0
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
label: "否",
|
|
2337
|
+
value: !1
|
|
2338
|
+
}
|
|
2339
|
+
],
|
|
2340
|
+
value: !0
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
label: "是否居中",
|
|
2344
|
+
prop: "isCenter",
|
|
2345
|
+
type: "RADIO",
|
|
2346
|
+
contents: [
|
|
2347
|
+
{
|
|
2348
|
+
label: "是",
|
|
2349
|
+
value: !0
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
label: "否",
|
|
2353
|
+
value: !1
|
|
2354
|
+
}
|
|
2355
|
+
],
|
|
2356
|
+
value: !0
|
|
2357
|
+
}
|
|
2358
|
+
]), V = Z([
|
|
2359
|
+
{
|
|
2360
|
+
label: "",
|
|
2361
|
+
prop: "index",
|
|
2362
|
+
type: "input",
|
|
2363
|
+
value: "",
|
|
2364
|
+
isFormColHidden: !0
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
label: "内容",
|
|
2368
|
+
prop: "content",
|
|
2369
|
+
type: "input",
|
|
2370
|
+
value: ""
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
label: "时间戳",
|
|
2374
|
+
prop: "timestamp",
|
|
2375
|
+
type: "datetime",
|
|
2376
|
+
value: ""
|
|
2377
|
+
}
|
|
2378
|
+
]), Y = Z([
|
|
2379
|
+
{
|
|
2380
|
+
label: "取消",
|
|
2381
|
+
background: "#c0c4cc"
|
|
2382
|
+
},
|
|
2383
|
+
{
|
|
2384
|
+
label: "确认",
|
|
2385
|
+
background: "#436aaf"
|
|
2386
|
+
}
|
|
2387
|
+
]), O = oa({
|
|
2388
|
+
visible: !1,
|
|
2389
|
+
width: "40%",
|
|
2390
|
+
title: "时间线"
|
|
2391
|
+
}), ne = (D) => {
|
|
2392
|
+
var x;
|
|
2393
|
+
R.value = D, console.log(1212, D), a("change", (x = ie()) == null ? void 0 : x.compData);
|
|
2394
|
+
}, X = (D, x) => {
|
|
2395
|
+
var de, p;
|
|
2396
|
+
switch (D) {
|
|
2397
|
+
case "create":
|
|
2398
|
+
(de = V.value) == null || de.forEach((f) => {
|
|
2399
|
+
f.value = "";
|
|
2400
|
+
}), t.value = "create", O.visible = !0;
|
|
2401
|
+
break;
|
|
2402
|
+
case "update":
|
|
2403
|
+
(p = V.value) == null || p.forEach((f) => {
|
|
2404
|
+
f.value = x[f == null ? void 0 : f.prop];
|
|
2405
|
+
}), t.value = "update", O.visible = !0;
|
|
2406
|
+
break;
|
|
2407
|
+
case "delete":
|
|
2408
|
+
z.value.splice(x, 1), t.value = "delete";
|
|
2409
|
+
break;
|
|
2410
|
+
}
|
|
2411
|
+
}, fe = (D) => {
|
|
2412
|
+
var x, de, p, f;
|
|
2413
|
+
if ((D == null ? void 0 : D.buttonName) === "确认") {
|
|
2414
|
+
const b = l(D == null ? void 0 : D.content);
|
|
2415
|
+
switch (Object.keys(b).forEach((c) => {
|
|
2416
|
+
b[c] === "" && delete b[c];
|
|
2417
|
+
}), t.value) {
|
|
2418
|
+
case "create":
|
|
2419
|
+
console.log(1335, z.value, b), (de = z.value) == null || de.push({
|
|
2420
|
+
...b,
|
|
2421
|
+
index: ((x = z.value) == null ? void 0 : x.length) + 1
|
|
2422
|
+
});
|
|
2423
|
+
break;
|
|
2424
|
+
case "update":
|
|
2425
|
+
z.value = (p = z.value) == null ? void 0 : p.map((c) => c.index === (b == null ? void 0 : b.index) ? {
|
|
2426
|
+
...c,
|
|
2427
|
+
content: b == null ? void 0 : b.content,
|
|
2428
|
+
timestamp: b == null ? void 0 : b.timestamp
|
|
2429
|
+
} : c);
|
|
2430
|
+
break;
|
|
2431
|
+
}
|
|
2432
|
+
a("change", (f = ie()) == null ? void 0 : f.compData), O.visible = !1;
|
|
2433
|
+
} else
|
|
2434
|
+
O.visible = !1;
|
|
2435
|
+
}, ie = () => ({
|
|
2436
|
+
comp: "TimeLine",
|
|
2437
|
+
compData: [
|
|
2438
|
+
{
|
|
2439
|
+
key: "timeLineList",
|
|
2440
|
+
contents: z.value
|
|
2441
|
+
},
|
|
2442
|
+
{
|
|
2443
|
+
key: "timeLineConfig",
|
|
2444
|
+
contents: R.value
|
|
2445
|
+
}
|
|
2446
|
+
]
|
|
2447
|
+
}), ee = () => {
|
|
2448
|
+
O.visible = !1;
|
|
2449
|
+
};
|
|
2450
|
+
return Ve(() => s == null ? void 0 : s.itemContents, (D) => {
|
|
2451
|
+
var x, de;
|
|
2452
|
+
D && (R.value = ((x = D == null ? void 0 : D.find((p) => p.key === "timeLineConfig")) == null ? void 0 : x.contents) ?? {}, z.value = ((de = D == null ? void 0 : D.find((p) => p.key === "timeLineList")) == null ? void 0 : de.contents) ?? []);
|
|
2453
|
+
}, { immediate: !0 }), (D, x) => {
|
|
2454
|
+
const de = Te("svg-icon"), p = Te("el-button");
|
|
2455
|
+
return te(), ge(Se, null, [
|
|
2456
|
+
T("div", null, [
|
|
2457
|
+
T("div", Qi, [
|
|
2458
|
+
x[2] || (x[2] = T("h4", { class: "module-title" }, "内容", -1)),
|
|
2459
|
+
se(p, {
|
|
2460
|
+
class: "module-icon",
|
|
2461
|
+
id: "themeButton",
|
|
2462
|
+
onClick: x[0] || (x[0] = (f) => X("create"))
|
|
2463
|
+
}, {
|
|
2464
|
+
icon: ye(() => [
|
|
2465
|
+
se(de, {
|
|
2466
|
+
name: "Plus",
|
|
2467
|
+
class: "icon-size"
|
|
2468
|
+
})
|
|
2469
|
+
]),
|
|
2470
|
+
default: ye(() => [
|
|
2471
|
+
x[1] || (x[1] = $e(" 新增 "))
|
|
2472
|
+
]),
|
|
2473
|
+
_: 1,
|
|
2474
|
+
__: [1]
|
|
2475
|
+
})
|
|
2476
|
+
]),
|
|
2477
|
+
T("div", Xi, [
|
|
2478
|
+
(te(!0), ge(Se, null, Pe(z.value, (f, b) => (te(), ge("div", {
|
|
2479
|
+
class: "module-data-item",
|
|
2480
|
+
key: b
|
|
2481
|
+
}, [
|
|
2482
|
+
T("span", null, we(f == null ? void 0 : f.content), 1),
|
|
2483
|
+
T("div", null, [
|
|
2484
|
+
se(p, {
|
|
2485
|
+
type: "primary",
|
|
2486
|
+
size: "small",
|
|
2487
|
+
onClick: (c) => X("update", { ...f, index: b + 1 })
|
|
2488
|
+
}, {
|
|
2489
|
+
default: ye(() => x[3] || (x[3] = [
|
|
2490
|
+
$e("修改")
|
|
2491
|
+
])),
|
|
2492
|
+
_: 2,
|
|
2493
|
+
__: [3]
|
|
2494
|
+
}, 1032, ["onClick"]),
|
|
2495
|
+
se(p, {
|
|
2496
|
+
type: "danger",
|
|
2497
|
+
size: "small",
|
|
2498
|
+
onClick: (c) => X("delete", b)
|
|
2499
|
+
}, {
|
|
2500
|
+
default: ye(() => x[4] || (x[4] = [
|
|
2501
|
+
$e("删除")
|
|
2502
|
+
])),
|
|
2503
|
+
_: 2,
|
|
2504
|
+
__: [4]
|
|
2505
|
+
}, 1032, ["onClick"])
|
|
2506
|
+
])
|
|
2507
|
+
]))), 128))
|
|
2508
|
+
]),
|
|
2509
|
+
T("div", Yi, [
|
|
2510
|
+
x[5] || (x[5] = T("div", { class: "module-title" }, "布局", -1)),
|
|
2511
|
+
se(ze, {
|
|
2512
|
+
rowContents: _.value,
|
|
2513
|
+
onChange: ne
|
|
2514
|
+
}, null, 8, ["rowContents"])
|
|
2515
|
+
])
|
|
2516
|
+
]),
|
|
2517
|
+
se(Ge, {
|
|
2518
|
+
visible: O.visible,
|
|
2519
|
+
title: O.title,
|
|
2520
|
+
onBeforeDestroy: ee,
|
|
2521
|
+
width: O.width
|
|
2522
|
+
}, {
|
|
2523
|
+
default: ye(() => [
|
|
2524
|
+
T("div", Zi, [
|
|
2525
|
+
(te(), Oe(ze, {
|
|
2526
|
+
rowContents: V.value,
|
|
2527
|
+
key: V.value,
|
|
2528
|
+
isEnableWrap: !1,
|
|
2529
|
+
isButtonRow: !1,
|
|
2530
|
+
isStartJustify: !1,
|
|
2531
|
+
buttonValue: Y.value,
|
|
2532
|
+
onOnButtonClick: fe
|
|
2533
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2534
|
+
])
|
|
2535
|
+
]),
|
|
2536
|
+
_: 1
|
|
2537
|
+
}, 8, ["visible", "title", "width"])
|
|
2538
|
+
], 64);
|
|
2539
|
+
};
|
|
2540
|
+
}
|
|
2541
|
+
}), ln = /* @__PURE__ */ Ue(en, [["__scopeId", "data-v-f6b5d4fc"]]), an = {};
|
|
2542
|
+
function sn(r, y) {
|
|
2543
|
+
return te(), ge("div");
|
|
2544
|
+
}
|
|
2545
|
+
const nn = /* @__PURE__ */ Ue(an, [["render", sn]]), on = { class: "extra-content" }, un = { key: 0 }, rn = { key: 1 }, cn = { class: "dialog-footer" }, tn = {
|
|
2546
|
+
__name: "index",
|
|
2547
|
+
props: {
|
|
2548
|
+
itemData: {
|
|
2549
|
+
type: Array,
|
|
2550
|
+
default: () => []
|
|
2551
|
+
},
|
|
2552
|
+
childItemData: {
|
|
2553
|
+
type: Array,
|
|
2554
|
+
default: () => []
|
|
2555
|
+
},
|
|
2556
|
+
index: Number,
|
|
2557
|
+
changedContent: {
|
|
2558
|
+
type: Object,
|
|
2559
|
+
default: () => {
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
},
|
|
2563
|
+
emits: ["change"],
|
|
2564
|
+
setup(r, { emit: y }) {
|
|
2565
|
+
const s = r, a = Z(0), t = Z(), R = Z(), z = y, _ = Z(!1), V = Z({}), Y = Z({}), O = Z();
|
|
2566
|
+
Ve(
|
|
2567
|
+
() => [s.itemData],
|
|
2568
|
+
() => {
|
|
2569
|
+
var f;
|
|
2570
|
+
const p = l(s.itemData);
|
|
2571
|
+
t.value = (f = l(p)) == null ? void 0 : f.map((b) => {
|
|
2572
|
+
var c;
|
|
2573
|
+
if (b.key === "extra") {
|
|
2574
|
+
let d = [];
|
|
2575
|
+
(c = b.value) == null || c.forEach((A) => {
|
|
2576
|
+
var q;
|
|
2577
|
+
d.push((q = Object.values(A)) == null ? void 0 : q[0]);
|
|
2578
|
+
}), b.value = d;
|
|
2579
|
+
}
|
|
2580
|
+
return b;
|
|
2581
|
+
});
|
|
2582
|
+
},
|
|
2583
|
+
{ deep: !0, immediate: !0 }
|
|
2584
|
+
);
|
|
2585
|
+
const ne = (p, f, b, c) => {
|
|
2586
|
+
var A;
|
|
2587
|
+
let d = {};
|
|
2588
|
+
((A = p == null ? void 0 : p[0]) == null ? void 0 : A.contents) === "详情" && (_.value = !0, d[f] = p, R.value = p == null ? void 0 : p.filter((q) => (q == null ? void 0 : q.key) !== "tableContentName"), V.value = d, Y.value = b, O.value = c.id);
|
|
2589
|
+
}, X = (p) => {
|
|
2590
|
+
var q, me, re, oe;
|
|
2591
|
+
const f = (me = (q = Object.values(l(V.value))) == null ? void 0 : q[0]) == null ? void 0 : me.filter((i) => (i == null ? void 0 : i.key) === "tableContentName"), b = (oe = (re = Object.values(l(V.value))) == null ? void 0 : re[0]) == null ? void 0 : oe.filter((i) => (i == null ? void 0 : i.key) !== "tableContentName"), c = b == null ? void 0 : b.map((i, I) => {
|
|
2592
|
+
var $;
|
|
2593
|
+
return I === p.index && (i == null ? void 0 : i.comp) === "Table" && (i.compData = ($ = i.compData) == null ? void 0 : $.map((k) => {
|
|
2594
|
+
var le, K;
|
|
2595
|
+
return (k == null ? void 0 : k.key) === "tableContents" && (k.contents = (K = (le = p.content) == null ? void 0 : le.map((G) => {
|
|
2596
|
+
let u = {};
|
|
2597
|
+
for (let v in G)
|
|
2598
|
+
v !== "id" && (u[v] = G[v]);
|
|
2599
|
+
return u;
|
|
2600
|
+
})) == null ? void 0 : K.map((G) => Object.values(G))), k;
|
|
2601
|
+
})), i;
|
|
2602
|
+
});
|
|
2603
|
+
c.unshift(f == null ? void 0 : f[0]);
|
|
2604
|
+
let d = l(V.value), A = {};
|
|
2605
|
+
for (let i in d)
|
|
2606
|
+
A[i] = c;
|
|
2607
|
+
V.value = A;
|
|
2608
|
+
}, fe = () => {
|
|
2609
|
+
_.value = !1, V.value = {}, Y.value = {}, O.value = void 0, a.value++;
|
|
2610
|
+
}, ie = (p) => {
|
|
2611
|
+
var q, me, re, oe;
|
|
2612
|
+
const f = (me = (q = Object.values(l(V.value))) == null ? void 0 : q[0]) == null ? void 0 : me.filter((i) => (i == null ? void 0 : i.key) === "tableContentName"), b = (oe = (re = Object.values(l(V.value))) == null ? void 0 : re[0]) == null ? void 0 : oe.filter((i) => (i == null ? void 0 : i.key) !== "tableContentName"), c = b == null ? void 0 : b.map((i, I) => (I === p.index && (i.compData = p.contents), i));
|
|
2613
|
+
c.unshift(f == null ? void 0 : f[0]);
|
|
2614
|
+
let d = l(V.value), A = {};
|
|
2615
|
+
for (let i in d)
|
|
2616
|
+
A[i] = c;
|
|
2617
|
+
V.value = A;
|
|
2618
|
+
}, ee = () => {
|
|
2619
|
+
var f, b;
|
|
2620
|
+
let p = {};
|
|
2621
|
+
for (let c in Y.value)
|
|
2622
|
+
c === ((f = Object.keys(V.value)) == null ? void 0 : f[0]) ? p[c] = (b = Object.values(V.value)) == null ? void 0 : b[0] : p[c] = Y.value[c];
|
|
2623
|
+
z("change", {
|
|
2624
|
+
buttonName: "编辑",
|
|
2625
|
+
index: O.value,
|
|
2626
|
+
singleContent: p
|
|
2627
|
+
}, "methodData"), _.value = !1, V.value = {}, Y.value = {}, O.value = void 0;
|
|
2628
|
+
}, D = () => {
|
|
2629
|
+
_.value = !1, V.value = {}, Y.value = {}, O.value = void 0;
|
|
2630
|
+
}, x = (p) => {
|
|
2631
|
+
z("change", p, "methodData");
|
|
2632
|
+
}, de = (p) => ta(p);
|
|
2633
|
+
return (p, f) => {
|
|
2634
|
+
const b = Te("el-button");
|
|
2635
|
+
return te(), ge("div", on, [
|
|
2636
|
+
(te(!0), ge(Se, null, Pe(t.value, (c, d) => (te(), ge("div", { key: a.value }, [
|
|
2637
|
+
(c == null ? void 0 : c.key) === "extra" ? (te(), ge("div", un)) : (te(), ge("div", rn, [
|
|
2638
|
+
(te(), Oe(zl(de(c.comp)), {
|
|
2639
|
+
itemData: c == null ? void 0 : c.compData,
|
|
2640
|
+
childItemData: c == null ? void 0 : c.itemChildData,
|
|
2641
|
+
key: d,
|
|
2642
|
+
index: (c == null ? void 0 : c.id) ?? d,
|
|
2643
|
+
onContentClick: ne,
|
|
2644
|
+
onChange: x
|
|
2645
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2646
|
+
]))
|
|
2647
|
+
]))), 128)),
|
|
2648
|
+
se(Ge, {
|
|
2649
|
+
visible: _.value,
|
|
2650
|
+
onBeforeDestroy: D
|
|
2651
|
+
}, {
|
|
2652
|
+
default: ye(() => [
|
|
2653
|
+
(te(!0), ge(Se, null, Pe(R.value, (c, d) => (te(), ge("div", {
|
|
2654
|
+
key: d,
|
|
2655
|
+
class: "extra-dialog"
|
|
2656
|
+
}, [
|
|
2657
|
+
(te(), Oe(zl(de(c.comp)), {
|
|
2658
|
+
itemData: c == null ? void 0 : c.compData,
|
|
2659
|
+
onChange: X,
|
|
2660
|
+
childItemData: c == null ? void 0 : c.itemChildData,
|
|
2661
|
+
key: d,
|
|
2662
|
+
onContentChange: ie,
|
|
2663
|
+
index: (c == null ? void 0 : c.id) ?? d,
|
|
2664
|
+
class: "extra-component"
|
|
2665
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2666
|
+
]))), 128))
|
|
2667
|
+
]),
|
|
2668
|
+
footer: ye(() => [
|
|
2669
|
+
T("div", cn, [
|
|
2670
|
+
se(b, {
|
|
2671
|
+
class: "cancel-button footer-button",
|
|
2672
|
+
onClick: fe,
|
|
2673
|
+
id: "themeBorderButton"
|
|
2674
|
+
}, {
|
|
2675
|
+
default: ye(() => f[0] || (f[0] = [
|
|
2676
|
+
$e(we("取消"))
|
|
2677
|
+
])),
|
|
2678
|
+
_: 1,
|
|
2679
|
+
__: [0]
|
|
2680
|
+
}),
|
|
2681
|
+
se(b, {
|
|
2682
|
+
class: "confirm-button footer-button",
|
|
2683
|
+
onClick: ee,
|
|
2684
|
+
id: "themeButton"
|
|
2685
|
+
}, {
|
|
2686
|
+
default: ye(() => f[1] || (f[1] = [
|
|
2687
|
+
$e(we("确认"))
|
|
2688
|
+
])),
|
|
2689
|
+
_: 1,
|
|
2690
|
+
__: [1]
|
|
2691
|
+
})
|
|
2692
|
+
])
|
|
2693
|
+
]),
|
|
2694
|
+
_: 1
|
|
2695
|
+
}, 8, ["visible"])
|
|
2696
|
+
]);
|
|
2697
|
+
};
|
|
2698
|
+
}
|
|
2699
|
+
}, dn = /* @__PURE__ */ Ue(tn, [["__scopeId", "data-v-2d9c5ab2"]]);
|
|
2700
|
+
let Ml = "$R";
|
|
2701
|
+
const la = (r) => {
|
|
2702
|
+
var _, V, Y, O, ne, X, fe, ie, ee, D, x, de, p, f, b, c, d, A, q, me, re, oe, i, I;
|
|
2703
|
+
const y = ia(r) ? (_ = ol(l(r))) == null ? void 0 : _[0] : "[]", s = ia(r) ? "[" + ((V = ol(l(r))) == null ? void 0 : V[2]) + "]" : "[" + r + "]";
|
|
2704
|
+
let a = [], t = [], R = "";
|
|
2705
|
+
const z = (O = (Y = s == null ? void 0 : s.trim()) == null ? void 0 : Y.slice(1, (s == null ? void 0 : s.trim().length) - 1)) == null ? void 0 : O.replaceAll("'", '"');
|
|
2706
|
+
if (nl(z) ? a = JSON.parse(z) : nl((fe = (X = (ne = z == null ? void 0 : z.split("}")) == null ? void 0 : ne[0]) == null ? void 0 : X.replace(":", "")) == null ? void 0 : fe.replaceAll("\\", "\\\\")) && (a = JSON.parse((D = (ee = (ie = z == null ? void 0 : z.split("}")) == null ? void 0 : ie[0]) == null ? void 0 : ee.replace(":", "")) == null ? void 0 : D.replaceAll("\\", "\\\\"))), a = a != null && a.every(($) => Array.isArray($) && $.every((k) => Array.isArray(k))) ? a == null ? void 0 : a[0] : a, !(y != null && y.includes("(")))
|
|
2707
|
+
!y.includes("{") && nl(y == null ? void 0 : y.replaceAll("'", '"')) ? t = JSON.parse(y == null ? void 0 : y.replaceAll("'", '"')) : nl((de = (x = y == null ? void 0 : y.split("{")) == null ? void 0 : x[1]) == null ? void 0 : de.replaceAll("'", '"')) && (t = JSON.parse((f = (p = y == null ? void 0 : y.split("{")) == null ? void 0 : p[1]) == null ? void 0 : f.replaceAll("'", '"')));
|
|
2708
|
+
else {
|
|
2709
|
+
let $ = [];
|
|
2710
|
+
if (((c = (b = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : b.split(",")) == null ? void 0 : c.length) > 1)
|
|
2711
|
+
(A = (d = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : d.split(",")) == null || A.forEach((k) => {
|
|
2712
|
+
var le, K, G, u, v, F, H, ce, M, j, E, w, g, L, n, P, _e, N, ue, be, pe, e, o, h, m, C;
|
|
2713
|
+
if (!(k != null && k.includes("(")))
|
|
2714
|
+
$.push(k == null ? void 0 : k.replaceAll("'", ""));
|
|
2715
|
+
else if (k != null && k.includes("[")) {
|
|
2716
|
+
let B;
|
|
2717
|
+
const Q = (E = (j = l(k)) == null ? void 0 : j.replaceAll("{", "")) == null ? void 0 : E.replaceAll("}", "");
|
|
2718
|
+
B = (g = (w = Q == null ? void 0 : Q.replace("[", Ml)) == null ? void 0 : w.split(Ml)) == null ? void 0 : g[1];
|
|
2719
|
+
const U = B.lastIndexOf("]"), S = B.substring(0, U) + Ml + B.substring(U + 1);
|
|
2720
|
+
B = (n = (L = S == null ? void 0 : S.split(Ml)) == null ? void 0 : L[0]) == null ? void 0 : n.replaceAll("'", ""), B = (B == null ? void 0 : B[0]) === ":" ? '""' + B : B, k != null && k.includes("#") && (B != null && B.includes("[") ? B = ((_e = (P = k == null ? void 0 : k.split("#")) == null ? void 0 : P[0]) == null ? void 0 : _e.replaceAll("'", "")) + "#(" + B + ")" : B = ((ue = (N = k == null ? void 0 : k.split("#")) == null ? void 0 : N[0]) == null ? void 0 : ue.replaceAll("'", "")) + "#" + B);
|
|
2721
|
+
let J = (h = (o = (e = (be = l(Q)) == null ? void 0 : be.split("(")) == null ? void 0 : e[((pe = Q == null ? void 0 : Q.split("(")) == null ? void 0 : pe.length) - 1]) == null ? void 0 : o.split(")")) == null ? void 0 : h[0].replaceAll(":", "/").replaceAll("'", "");
|
|
2722
|
+
B.includes(":") && ((C = J == null ? void 0 : J.split("/")) == null ? void 0 : C[((m = J == null ? void 0 : J.split("/")) == null ? void 0 : m.length) - 1]) !== "" ? B = B + "[" + J + "]" : B = B + "[" + J + "]()", $.push(B == null ? void 0 : B.replaceAll('"', "'"));
|
|
2723
|
+
} else {
|
|
2724
|
+
let B = (v = (u = (G = (K = k == null ? void 0 : k.split(":")) == null ? void 0 : K[((le = k == null ? void 0 : k.split(":")) == null ? void 0 : le.length) - 1]) == null ? void 0 : G.split(")")) == null ? void 0 : u[0]) == null ? void 0 : v.replaceAll("'", "");
|
|
2725
|
+
B = B + "[" + ((M = (ce = (H = k == null ? void 0 : k.split("(")) == null ? void 0 : H[((F = k == null ? void 0 : k.split("(")) == null ? void 0 : F.length) - 1]) == null ? void 0 : ce.split(")")) == null ? void 0 : M[0].replaceAll(":", "/").replaceAll("'", "")) + "]", $.push(B);
|
|
2726
|
+
}
|
|
2727
|
+
}), t = $;
|
|
2728
|
+
else {
|
|
2729
|
+
const k = ((oe = (re = (me = (q = y == null ? void 0 : y.slice(1, y == null ? void 0 : y.length)) == null ? void 0 : q.split("(")) == null ? void 0 : me[1]) == null ? void 0 : re.split(")")) == null ? void 0 : oe[0]).replaceAll("{", "").replaceAll("}", "").replaceAll(":", "/").replaceAll("'", "");
|
|
2730
|
+
R = R + k + "[" + ((I = (i = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : i.split("[")) == null ? void 0 : I[1]);
|
|
2731
|
+
}
|
|
2732
|
+
}
|
|
2733
|
+
return {
|
|
2734
|
+
tableColumns: t,
|
|
2735
|
+
tableContents: a != null && a.every(($) => Array.isArray($)) ? a : [a],
|
|
2736
|
+
tablePath: R
|
|
2737
|
+
};
|
|
2738
|
+
};
|
|
2739
|
+
let Ae = "$R";
|
|
2740
|
+
const pn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), fn = (r) => /^'[^']+':\[\[.*\]\]$/.exec(l(r)), hn = (r) => /^'([^']+)':.*$/.exec(l(r)), ol = (r) => {
|
|
2741
|
+
let y = r;
|
|
2742
|
+
const s = [];
|
|
2743
|
+
let a = "";
|
|
2744
|
+
for (const t of y)
|
|
2745
|
+
t.includes("{") || a.includes("{") || t.includes("[") || a.includes("[") || t.includes("【") || a.includes("【") || t.includes("(") || a.includes("(") || t.includes("(") || a.includes("(") || t.includes("/*") || a.includes("/*") || t.includes("&") || a.includes("&") ? (a += t.trim(), l(a).split("{").length - 1 === l(a).split("}").length - 1 && l(a).split("【").length - 1 === l(a).split("】").length - 1 && l(a).split("[").length - 1 === l(a).split("]").length - 1 && l(a).split("(").length - 1 === l(a).split(")").length - 1 && l(a).split("(").length - 1 === l(a).split(")").length - 1 && l(a).split("/*").length - 1 === l(a).split("*/").length - 1 && a[a.length - 1] !== "," && a[a.length - 1] !== "&" && (s.push(a.replace(/\/\*[\s\S]*?\*\//g, "")), a = "")) : s.push(t.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
2746
|
+
return s;
|
|
2747
|
+
}, sa = (r, y) => {
|
|
2748
|
+
let s = r;
|
|
2749
|
+
const a = [];
|
|
2750
|
+
let t = "", R = 0;
|
|
2751
|
+
for (const z of s)
|
|
2752
|
+
R++, z.includes("{") || t.includes("{") || z.includes("[") || t.includes("[") || z.includes("【") || t.includes("【") || z.includes("(") || t.includes("(") || z.includes("(") || t.includes("(") || z.includes("/*") || t.includes("/*") ? (t += z.trim(), l(t).split("{").length - 1 === l(t).split("}").length - 1 && l(t).split("【").length - 1 === l(t).split("】").length - 1 && l(t).split("[").length - 1 === l(t).split("]").length - 1 && l(t).split("(").length - 1 === l(t).split(")").length - 1 && l(t).split("(").length - 1 === l(t).split(")").length - 1 && l(t).split("/*").length - 1 === l(t).split("*/").length - 1 && t[t.length - 1] !== "," && t[t.length - 1] === y ? (a.push(t.replace(/\/\*[\s\S]*?\*\//g, "")), t = "") : R === (r == null ? void 0 : r.length) && a.push(t.replace(/\/\*[\s\S]*?\*\//g, ""))) : (t += z.trim(), (t == null ? void 0 : t[(t == null ? void 0 : t.length) - 1]) === y && (a.push(t.replace(/\/\*[\s\S]*?\*\//g, "")), t = ""));
|
|
2753
|
+
return a;
|
|
2754
|
+
}, ia = (r) => /^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l(r)), vn = (r) => {
|
|
2755
|
+
var y, s, a, t, R, z, _, V, Y, O, ne, X, fe, ie, ee, D, x, de, p, f, b, c, d, A, q, me, re, oe, i, I, $, k, le, K, G, u, v, F, H, ce, M, j, E, w, g, L, n, P, _e, N, ue, be, pe, e, o, h, m, C, B;
|
|
2756
|
+
if (hn(r)) {
|
|
2757
|
+
let Q = {}, U = (a = (s = (y = r == null ? void 0 : r.replace(":", Ae)) == null ? void 0 : y.split(Ae)) == null ? void 0 : s[0]) == null ? void 0 : a.replaceAll("'", ""), S = "", J = (R = (t = r == null ? void 0 : r.replace(":", Ae)) == null ? void 0 : t.split(Ae)) == null ? void 0 : R[1];
|
|
2758
|
+
if (J.includes("{") || J.includes("("))
|
|
2759
|
+
if (J.includes("{") ? S = S + ((ne = (O = (Y = (V = (_ = (z = J == null ? void 0 : J.split("{")) == null ? void 0 : z[1]) == null ? void 0 : _.split("}")) == null ? void 0 : V[0]) == null ? void 0 : Y.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : O.replaceAll("[", "([")) == null ? void 0 : ne.replaceAll("]", "])")) + "[" : S = S + ((x = (D = (ee = (ie = (fe = (X = J == null ? void 0 : J.split("(")) == null ? void 0 : X[1]) == null ? void 0 : fe.split(")")) == null ? void 0 : ie[0]) == null ? void 0 : ee.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : D.replaceAll("[", "([")) == null ? void 0 : x.replaceAll("]", "])")) + "[", !((de = J == null ? void 0 : J.split(")")) != null && de[1]))
|
|
2760
|
+
S = S + ((b = (f = (p = J == null ? void 0 : J.split("[")) == null ? void 0 : p[1]) == null ? void 0 : f.split("]")) == null ? void 0 : b[0]) + "]";
|
|
2761
|
+
else {
|
|
2762
|
+
const ve = (q = (A = (d = (c = J == null ? void 0 : J.split(")")) == null ? void 0 : c[1]) == null ? void 0 : d.replace("[", Ae)) == null ? void 0 : A.split(Ae)) == null ? void 0 : q[1], De = ve.lastIndexOf("]"), he = ve.substring(0, De) + Ae + ve.substring(De + 1);
|
|
2763
|
+
S = S + ((me = he == null ? void 0 : he.split(Ae)) == null ? void 0 : me[0]) + "]";
|
|
2764
|
+
}
|
|
2765
|
+
else
|
|
2766
|
+
S = (i = (oe = (re = r == null ? void 0 : r.replace(":", Ae)) == null ? void 0 : re.split(Ae)) == null ? void 0 : oe[1]) == null ? void 0 : i.replaceAll("'", "");
|
|
2767
|
+
return Q[U] = S, {
|
|
2768
|
+
groupName: "",
|
|
2769
|
+
formContents: [[Q]]
|
|
2770
|
+
};
|
|
2771
|
+
} else {
|
|
2772
|
+
let Q = {}, U = "", S = "";
|
|
2773
|
+
if (r.includes("#")) {
|
|
2774
|
+
U = ($ = (I = r == null ? void 0 : r.split("#")) == null ? void 0 : I[0]) == null ? void 0 : $.replaceAll("'", "");
|
|
2775
|
+
let J = (le = (k = r == null ? void 0 : r.split("#")) == null ? void 0 : k[1]) == null ? void 0 : le.replaceAll("'", "");
|
|
2776
|
+
J != null && J.includes("{") ? S = S + ((v = (u = (G = (K = J == null ? void 0 : J.split("{")) == null ? void 0 : K[1]) == null ? void 0 : G.split("}")) == null ? void 0 : u[0]) == null ? void 0 : v.replaceAll(":", "/").replaceAll("'", "")) + "[" : S = S + ((M = (ce = (H = (F = J == null ? void 0 : J.split("(")) == null ? void 0 : F[1]) == null ? void 0 : H.split(")")) == null ? void 0 : ce[0]) == null ? void 0 : M.replaceAll(":", "/").replaceAll("'", "")) + "[", S = S + ((w = (E = (j = J == null ? void 0 : J.split("[")) == null ? void 0 : j[1]) == null ? void 0 : E.split("]")) == null ? void 0 : w[0]) + "]";
|
|
2777
|
+
} else {
|
|
2778
|
+
let J = (n = (L = (g = r == null ? void 0 : r.split("]")) == null ? void 0 : g[0]) == null ? void 0 : L.split("[")) == null ? void 0 : n[1];
|
|
2779
|
+
if ((P = J == null ? void 0 : J.split(":")) == null || P.forEach((ve, De) => {
|
|
2780
|
+
var he;
|
|
2781
|
+
((he = J == null ? void 0 : J.split(":")) == null ? void 0 : he.length) - 1 === De && (U = ve == null ? void 0 : ve.replaceAll("'", ""));
|
|
2782
|
+
}), !(r != null && r.includes("[")))
|
|
2783
|
+
S = ((be = (ue = (N = (_e = r == null ? void 0 : r.split("]")) == null ? void 0 : _e[1]) == null ? void 0 : N.replace(":", Ae).split(Ae)) == null ? void 0 : ue[1]) == null ? void 0 : be.replaceAll("'", "")) ?? "";
|
|
2784
|
+
else {
|
|
2785
|
+
let ve = (C = (m = (h = (o = (e = (pe = l(r)) == null ? void 0 : pe.split("(")) == null ? void 0 : e[1]) == null ? void 0 : o.split(")")) == null ? void 0 : h[0]) == null ? void 0 : m.replaceAll("{", "").replaceAll("}", "")) == null ? void 0 : C.replaceAll("'", "").replaceAll(":", "/"), De = "";
|
|
2786
|
+
(B = J == null ? void 0 : J.split(":")) == null || B.forEach((he) => {
|
|
2787
|
+
De = De === "" ? De + (he == null ? void 0 : he.replaceAll("'", "")) : De + ":" + (he == null ? void 0 : he.replaceAll("'", ""));
|
|
2788
|
+
}), S = ve + "[" + De + "]";
|
|
2789
|
+
}
|
|
2790
|
+
}
|
|
2791
|
+
return Q[U] = S, {
|
|
2792
|
+
groupName: "",
|
|
2793
|
+
formContents: [[Q]]
|
|
2794
|
+
};
|
|
2795
|
+
}
|
|
2796
|
+
}, mn = (r) => (r == null ? void 0 : r[0]) === "[" && (r == null ? void 0 : r[r.length - 1]) === "]" && !(r != null && r.includes("{")), yn = (r, y) => {
|
|
2797
|
+
let s = r.length;
|
|
2798
|
+
for (; s--; )
|
|
2799
|
+
if (r[s] === ")")
|
|
2800
|
+
return r.substring(0, s) + y + r.substring(s + 1);
|
|
2801
|
+
return r;
|
|
2802
|
+
}, bn = (r) => {
|
|
2803
|
+
var R, z, _, V, Y;
|
|
2804
|
+
let y = r.slice(1, r.length - 1), s;
|
|
2805
|
+
(y == null ? void 0 : y[0]) === "[" ? s = (z = (R = ol(l(y))) == null ? void 0 : R.filter((O) => O !== ",")) == null ? void 0 : z.map((O) => O == null ? void 0 : O.slice(1, O.length - 1)) : (y = "[" + l(y) + "]", s = (V = (_ = ol(l(y))) == null ? void 0 : _.filter((O) => O !== ",")) == null ? void 0 : V.map((O) => O == null ? void 0 : O.slice(1, O.length - 1))), s = (Y = l(s)) == null ? void 0 : Y.map((O) => {
|
|
2806
|
+
var ne, X;
|
|
2807
|
+
return O = (X = (ne = O.replace(")", Ae)) == null ? void 0 : ne.split(Ae)) == null ? void 0 : X[1], O;
|
|
2808
|
+
});
|
|
2809
|
+
let a = [], t = [];
|
|
2810
|
+
return s == null || s.forEach((O) => {
|
|
2811
|
+
var fe, ie, ee, D, x, de, p, f, b, c, d, A, q, me, re, oe, i, I, $, k, le, K, G, u, v, F, H, ce, M, j, E, w;
|
|
2812
|
+
let ne = (ie = (fe = l(O)) == null ? void 0 : fe.slice(1, l(O).length - 1)) == null ? void 0 : ie.replace(":", Ae).split(Ae);
|
|
2813
|
+
if (((D = (ee = l(ne)) == null ? void 0 : ee[0]) == null ? void 0 : D.replaceAll("'", "")) === "输入") {
|
|
2814
|
+
if (!((de = (x = l(ne)) == null ? void 0 : x[1]) != null && de.includes("[")) && !((f = (p = l(ne)) == null ? void 0 : p[1]) != null && f.includes("("))) {
|
|
2815
|
+
nl((b = l(ne)) == null ? void 0 : b[1].replaceAll("'", '"')) && t.push(JSON.parse((c = l(ne)) == null ? void 0 : c[1].replaceAll("'", '"')));
|
|
2816
|
+
return;
|
|
2817
|
+
}
|
|
2818
|
+
if (((A = (d = l(ne)) == null ? void 0 : d[1]) == null ? void 0 : A[0]) === "[") {
|
|
2819
|
+
let g = (oe = (q = l(ne)) == null ? void 0 : q[1]) == null ? void 0 : oe.slice(1, ((re = (me = l(ne)) == null ? void 0 : me[1]) == null ? void 0 : re.length) - 1);
|
|
2820
|
+
(I = (i = ol(g)) == null ? void 0 : i.filter((L) => L !== ",")) == null || I.forEach((L) => {
|
|
2821
|
+
var ue, be, pe, e, o, h, m, C, B, Q, U, S, J, ve, De, he, ae, Ce, ke, xe, Ne, je;
|
|
2822
|
+
let n = {}, P = (pe = (be = l(L)) == null ? void 0 : be.slice(1, ((ue = l(L)) == null ? void 0 : ue.length) - 1)) == null ? void 0 : pe.replace(":", Ae).split(Ae), _e = (e = P == null ? void 0 : P[0]) == null ? void 0 : e.replaceAll("'", ""), N;
|
|
2823
|
+
(o = P == null ? void 0 : P[1]) != null && o.includes("(") ? (N = (ve = (J = (S = (U = (Q = (B = (C = (m = l(P)) == null ? void 0 : m[1]) == null ? void 0 : C.replaceAll("{", "")) == null ? void 0 : B.replaceAll("}", "")) == null ? void 0 : Q.split("(")) == null ? void 0 : U[1]) == null ? void 0 : S.split(")")) == null ? void 0 : J[0]) == null ? void 0 : ve.replaceAll(":", "/").replaceAll("'", ""), (he = (De = l(P)) == null ? void 0 : De[1]) != null && he.includes("[") && (N = l(N) + "[" + ((je = (Ne = (xe = (ke = (Ce = (ae = l(P)) == null ? void 0 : ae[1]) == null ? void 0 : Ce.split("[")) == null ? void 0 : ke[1]) == null ? void 0 : xe.split("]")) == null ? void 0 : Ne[0]) == null ? void 0 : je.replaceAll("'", "")) + "]")) : N = (h = P == null ? void 0 : P[1]) == null ? void 0 : h.replaceAll("'", ""), n[_e] = N, t.push(n);
|
|
2824
|
+
});
|
|
2825
|
+
}
|
|
2826
|
+
} else {
|
|
2827
|
+
if (!((k = ($ = l(ne)) == null ? void 0 : $[1]) != null && k.includes("[")) && !((K = (le = l(ne)) == null ? void 0 : le[1]) != null && K.includes("("))) {
|
|
2828
|
+
nl((G = l(ne)) == null ? void 0 : G[1].replaceAll("'", '"')) && a.push(JSON.parse((u = l(ne)) == null ? void 0 : u[1].replaceAll("'", '"')));
|
|
2829
|
+
return;
|
|
2830
|
+
}
|
|
2831
|
+
if (((F = (v = l(ne)) == null ? void 0 : v[1]) == null ? void 0 : F[0]) === "[") {
|
|
2832
|
+
let g = (j = (H = l(ne)) == null ? void 0 : H[1]) == null ? void 0 : j.slice(1, ((M = (ce = l(ne)) == null ? void 0 : ce[1]) == null ? void 0 : M.length) - 1);
|
|
2833
|
+
(w = (E = ol(g)) == null ? void 0 : E.filter((L) => L !== ",")) == null || w.forEach((L) => {
|
|
2834
|
+
var ue, be, pe, e, o, h, m, C, B, Q, U, S, J, ve, De, he, ae, Ce, ke, xe, Ne, je, W, Be, Fe, pl, yl, Ye, ul, rl, We, fl, Ze;
|
|
2835
|
+
let n = {}, P = (pe = (be = l(L)) == null ? void 0 : be.slice(1, ((ue = l(L)) == null ? void 0 : ue.length) - 1)) == null ? void 0 : pe.replace(":", Ae).split(Ae), _e = (e = P == null ? void 0 : P[0]) == null ? void 0 : e.replaceAll("'", ""), N;
|
|
2836
|
+
if (!((o = P == null ? void 0 : P[1]) != null && o.includes("(")))
|
|
2837
|
+
N = (h = P == null ? void 0 : P[1]) == null ? void 0 : h.replaceAll("'", "");
|
|
2838
|
+
else if (N = (S = (U = (Q = (B = (C = (m = l(P)) == null ? void 0 : m[1]) == null ? void 0 : C.replaceAll("{", "")) == null ? void 0 : B.replaceAll("}", "")) == null ? void 0 : Q.replace("(", Ae)) == null ? void 0 : U.split(Ae)) == null ? void 0 : S[1], N = (ve = (J = yn(l(N), Ae)) == null ? void 0 : J.split(Ae)) == null ? void 0 : ve[0], !(N != null && N.includes("(")))
|
|
2839
|
+
N = (De = l(N)) == null ? void 0 : De.replaceAll(":", "/").replaceAll("'", ""), (ae = (he = l(P)) == null ? void 0 : he[1]) != null && ae.includes("[") && (N = l(N) + "[" + ((W = (je = (Ne = (xe = (ke = (Ce = l(P)) == null ? void 0 : Ce[1]) == null ? void 0 : ke.split("[")) == null ? void 0 : xe[1]) == null ? void 0 : Ne.split("]")) == null ? void 0 : je[0]) == null ? void 0 : W.replaceAll("'", "")) + "]");
|
|
2840
|
+
else {
|
|
2841
|
+
let el = "";
|
|
2842
|
+
(Be = sa(N, ":")) == null || Be.forEach((Je) => {
|
|
2843
|
+
var Al, Il, xl, El, $l, Bl, Tl, Sl, Ol, Fl, Ll, Pl, Rl, Ul, jl;
|
|
2844
|
+
if (!(Je != null && Je.includes("(")))
|
|
2845
|
+
el = el === "" ? el + ((Al = Je == null ? void 0 : Je.replaceAll(":", "")) == null ? void 0 : Al.replaceAll("'", "")) : el + "/" + ((Il = Je == null ? void 0 : Je.replaceAll(":", "")) == null ? void 0 : Il.replaceAll("'", ""));
|
|
2846
|
+
else {
|
|
2847
|
+
let bl = (Fl = (Ol = (Sl = (Tl = (Bl = ($l = (El = (xl = l(Je)) == null ? void 0 : xl.replaceAll("{", "")) == null ? void 0 : El.replaceAll("}", "")) == null ? void 0 : $l.replace("(", Ae)) == null ? void 0 : Bl.split(Ae)) == null ? void 0 : Tl[1]) == null ? void 0 : Sl.split(")")) == null ? void 0 : Ol[0]) == null ? void 0 : Fl.replaceAll(":", "/").replaceAll("'", "");
|
|
2848
|
+
bl = bl + "[" + ((jl = (Ul = (Rl = (Pl = (Ll = l(Je)) == null ? void 0 : Ll.split("[")) == null ? void 0 : Pl[1]) == null ? void 0 : Rl.split("]")) == null ? void 0 : Ul[0]) == null ? void 0 : jl.replaceAll("'", "")) + "]", el = el === "" ? el + "[" + bl + "]" : el + "/[" + bl + "]";
|
|
2849
|
+
}
|
|
2850
|
+
}), N = el + "[" + ((Ze = (fl = (We = (rl = (pl = (Fe = l(P)) == null ? void 0 : Fe[1]) == null ? void 0 : pl.split("[")) == null ? void 0 : rl[((ul = (Ye = (yl = l(P)) == null ? void 0 : yl[1]) == null ? void 0 : Ye.split("[")) == null ? void 0 : ul.length) - 1]) == null ? void 0 : We.split("]")) == null ? void 0 : fl[0]) == null ? void 0 : Ze.replaceAll("'", "")) + "]";
|
|
2851
|
+
}
|
|
2852
|
+
n[_e] = N, a.push(n);
|
|
2853
|
+
});
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
}), {
|
|
2857
|
+
output: a,
|
|
2858
|
+
input: t
|
|
2859
|
+
};
|
|
2860
|
+
}, qa = (r) => {
|
|
2861
|
+
var a, t, R, z, _, V, Y, O, ne, X, fe, ie, ee, D, x, de, p, f, b, c, d, A, q, me, re, oe, i, I, $, k, le, K, G, u, v, F, H, ce, M, j, E, w, g, L, n, P, _e, N, ue, be;
|
|
2862
|
+
let y = "";
|
|
2863
|
+
r = r.replace(/:([^=]*)==/g, ":");
|
|
2864
|
+
let s = r;
|
|
2865
|
+
if ((pn(l(r)) !== null || fn(l(r)) !== null) && (y = (t = (a = l(r).replace(":", Ae).split(Ae)) == null ? void 0 : a[0]) == null ? void 0 : t.replaceAll("'", ""), s = (R = l(r).replace(":", Ae).split(Ae)) == null ? void 0 : R[1]), ia(l(s).slice(1, ((z = l(s)) == null ? void 0 : z.length) - 1)) || mn(l(s).slice(1, ((_ = l(s)) == null ? void 0 : _.length) - 1)))
|
|
2866
|
+
if (((Y = l(s).slice(1, ((V = l(s)) == null ? void 0 : V.length) - 1)) == null ? void 0 : Y[1]) !== "[") {
|
|
2867
|
+
const pe = la(l(s).slice(1, ((O = l(s)) == null ? void 0 : O.length) - 1));
|
|
2868
|
+
return {
|
|
2869
|
+
groupName: y,
|
|
2870
|
+
tableColumn: pe == null ? void 0 : pe.tableColumns,
|
|
2871
|
+
tableContents: pe == null ? void 0 : pe.tableContents,
|
|
2872
|
+
tableColumnPath: pe == null ? void 0 : pe.tablePath
|
|
2873
|
+
};
|
|
2874
|
+
} else if (l(s).slice(1, ((ne = l(s)) == null ? void 0 : ne.length) - 1).includes("{")) {
|
|
2875
|
+
let pe = l(s).slice(1, ((X = l(s)) == null ? void 0 : X.length) - 1), e = pe.indexOf("{"), o = pe.slice(e, (pe == null ? void 0 : pe.length) - e);
|
|
2876
|
+
return (ie = (fe = ol(o)) == null ? void 0 : fe.filter((m) => m == null ? void 0 : m.includes("{"))) == null ? void 0 : ie.map((m, C) => {
|
|
2877
|
+
var Q;
|
|
2878
|
+
let B = la(l(m).slice(1, ((Q = l(m)) == null ? void 0 : Q.length) - 1));
|
|
2879
|
+
return {
|
|
2880
|
+
groupName: C === 0 ? y : "",
|
|
2881
|
+
tableColumn: B == null ? void 0 : B.tableColumns,
|
|
2882
|
+
tableContents: B == null ? void 0 : B.tableContents,
|
|
2883
|
+
tableColumnPath: B == null ? void 0 : B.tablePath
|
|
2884
|
+
};
|
|
2885
|
+
});
|
|
2886
|
+
} else {
|
|
2887
|
+
const pe = la(l(s).slice(1, ((ee = l(s)) == null ? void 0 : ee.length) - 1));
|
|
2888
|
+
return {
|
|
2889
|
+
groupName: y,
|
|
2890
|
+
tableColumn: pe == null ? void 0 : pe.tableColumns,
|
|
2891
|
+
tableContents: pe == null ? void 0 : pe.tableContents,
|
|
2892
|
+
tableColumnPath: pe == null ? void 0 : pe.tablePath
|
|
2893
|
+
};
|
|
2894
|
+
}
|
|
2895
|
+
else {
|
|
2896
|
+
let pe = [];
|
|
2897
|
+
if (nl((D = s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : D.replaceAll("'", '"')))
|
|
2898
|
+
pe = JSON.parse((x = s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : x.replaceAll("'", '"'));
|
|
2899
|
+
else if (s.includes("(")) {
|
|
2900
|
+
if ((s == null ? void 0 : s[0]) !== "{" && !((s == null ? void 0 : s[0]) === "[" && (s == null ? void 0 : s[1]) === "[")) {
|
|
2901
|
+
let e = (I = (i = (oe = (re = l(s)) == null ? void 0 : re.split("]")) == null ? void 0 : oe[0]) == null ? void 0 : i.split("[")) == null ? void 0 : I[1], o = "", m = ((u = (G = (K = (le = (k = ($ = l(s)) == null ? void 0 : $.split(")")) == null ? void 0 : k[0]) == null ? void 0 : le.split("(")) == null ? void 0 : K[1]) == null ? void 0 : G.replaceAll("[", "")) == null ? void 0 : u.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
|
|
2902
|
+
(v = m == null ? void 0 : m.split("/")) == null || v.forEach((B, Q) => {
|
|
2903
|
+
var U;
|
|
2904
|
+
Q !== ((U = m == null ? void 0 : m.split("/")) == null ? void 0 : U.length) - 1 && (o = o === "" ? o + B : o + "/" + B);
|
|
2905
|
+
});
|
|
2906
|
+
let C;
|
|
2907
|
+
return ((M = (ce = (H = (F = l(s)) == null ? void 0 : F.replace(",", Ae)) == null ? void 0 : H.split(Ae)) == null ? void 0 : ce[1]) == null ? void 0 : M[0]) === "[" && (C = bn((w = (E = (j = l(s)) == null ? void 0 : j.replace(",", Ae)) == null ? void 0 : E.split(Ae)) == null ? void 0 : w[1])), {
|
|
2908
|
+
groupName: "",
|
|
2909
|
+
extraButton: (L = e == null ? void 0 : e.split(":")) == null ? void 0 : L[((g = e == null ? void 0 : e.split(":")) == null ? void 0 : g.length) - 1].replaceAll("'", ""),
|
|
2910
|
+
extraPath: o,
|
|
2911
|
+
extraData: C
|
|
2912
|
+
};
|
|
2913
|
+
} else if (s = s.slice(1, (s == null ? void 0 : s.length) - 1).replaceAll('"', "'"), (s == null ? void 0 : s[0]) !== "[") {
|
|
2914
|
+
let e = "{" + s + "}", o = (P = (n = ol(e)) == null ? void 0 : n.filter((m) => m !== ",")) == null ? void 0 : P.map((m) => vn(l(m).slice(1, l(m).length - 1))), h = [];
|
|
2915
|
+
return (_e = l(o)) == null || _e.forEach((m) => {
|
|
2916
|
+
var C;
|
|
2917
|
+
(C = m == null ? void 0 : m.formContents) == null || C.forEach((B) => {
|
|
2918
|
+
B == null || B.forEach((Q) => {
|
|
2919
|
+
h.push(Q);
|
|
2920
|
+
});
|
|
2921
|
+
});
|
|
2922
|
+
}), {
|
|
2923
|
+
groupName: (N = o == null ? void 0 : o[0]) == null ? void 0 : N.groupName,
|
|
2924
|
+
// formExtra?.groupName,
|
|
2925
|
+
formContents: h
|
|
2926
|
+
// formExtra?.formContents
|
|
2927
|
+
};
|
|
2928
|
+
} else if ((s == null ? void 0 : s[1]) !== "[" && (s = "[" + s + "]"), (s == null ? void 0 : s[0]) === "[" && (s == null ? void 0 : s[1]) === "[") {
|
|
2929
|
+
s = s.slice(1, (s == null ? void 0 : s.length) - 1);
|
|
2930
|
+
let e = [], o = [];
|
|
2931
|
+
return (be = (ue = ol(s)) == null ? void 0 : ue.filter((h) => h !== ",")) == null || be.forEach((h) => {
|
|
2932
|
+
var m, C, B, Q;
|
|
2933
|
+
if (!h.includes("&"))
|
|
2934
|
+
Array.isArray(na(h)) || e.push((m = na(h)) == null ? void 0 : m.formContents);
|
|
2935
|
+
else {
|
|
2936
|
+
let U = (Q = (B = (C = l(h)) == null ? void 0 : C.split("&")) == null ? void 0 : B[1]) == null ? void 0 : Q.replaceAll("'", '"');
|
|
2937
|
+
nl(U) && o.push({
|
|
2938
|
+
[JSON.parse(U)[0]]: JSON.parse(U)
|
|
2939
|
+
});
|
|
2940
|
+
}
|
|
2941
|
+
}), {
|
|
2942
|
+
groupName: y,
|
|
2943
|
+
formContents: e,
|
|
2944
|
+
formGroup: o
|
|
2945
|
+
};
|
|
2946
|
+
}
|
|
2947
|
+
} else if (s = "[[" + s + "]]", nl((de = s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : de.replaceAll("'", '"')))
|
|
2948
|
+
pe = JSON.parse((p = s.slice(1, (s == null ? void 0 : s.length) - 1)) == null ? void 0 : p.replaceAll("'", '"'));
|
|
2949
|
+
else if (s = s.slice(2, s.length - 2), ((c = (b = (f = s == null ? void 0 : s.replace(":", Ae)) == null ? void 0 : f.split(Ae)) == null ? void 0 : b[1]) == null ? void 0 : c[0]) !== "{") {
|
|
2950
|
+
s = ((A = (d = s == null ? void 0 : s.replace(":", Ae)) == null ? void 0 : d.split(Ae)) == null ? void 0 : A[0]) + ":{[" + ((me = (q = s == null ? void 0 : s.replace(":", Ae)) == null ? void 0 : q.split(Ae)) == null ? void 0 : me[1]) + "]}";
|
|
2951
|
+
const e = qa(s);
|
|
2952
|
+
return e != null && e.tableColumn ? {
|
|
2953
|
+
groupName: e == null ? void 0 : e.groupName,
|
|
2954
|
+
tableColumn: e == null ? void 0 : e.tableColumn,
|
|
2955
|
+
tableContents: e == null ? void 0 : e.tableContents
|
|
2956
|
+
} : {
|
|
2957
|
+
groupName: e == null ? void 0 : e.groupName,
|
|
2958
|
+
formContents: e == null ? void 0 : e.formContents
|
|
2959
|
+
};
|
|
2960
|
+
}
|
|
2961
|
+
return {
|
|
2962
|
+
groupName: y,
|
|
2963
|
+
formContents: pe
|
|
2964
|
+
};
|
|
2965
|
+
}
|
|
2966
|
+
}, na = (r) => qa(l(r).slice(1, l(r).length - 1)), Jo = (r) => {
|
|
2967
|
+
var s;
|
|
2968
|
+
let y = [];
|
|
2969
|
+
if (!((r == null ? void 0 : r[0]) === "[" && (r == null ? void 0 : r[1]) === "[")) {
|
|
2970
|
+
let a = (s = ol(r)) == null ? void 0 : s.filter((t) => t !== ",");
|
|
2971
|
+
a == null || a.forEach((t) => {
|
|
2972
|
+
y.push(na(t));
|
|
2973
|
+
});
|
|
2974
|
+
}
|
|
2975
|
+
return y;
|
|
2976
|
+
}, gn = ca(Me), { routeToChildPath: aa } = He(gn), kn = Ka(Me), { activeMenuPath: wl } = He(kn), _n = ra(), { loginUserInfo: Wl } = He(_n), Cn = async () => {
|
|
2977
|
+
var R, z, _, V, Y, O, ne, X, fe, ie, ee, D, x, de, p, f, b, c, d, A, q, me, re, oe, i, I, $, k, le, K, G, u, v, F, H;
|
|
2978
|
+
let r = "";
|
|
2979
|
+
const y = await ml({
|
|
2980
|
+
key: {
|
|
2981
|
+
type: "structure",
|
|
2982
|
+
pageKey: l(aa).value,
|
|
2983
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
2984
|
+
}
|
|
2985
|
+
});
|
|
2986
|
+
((z = (R = y == null ? void 0 : y.data) == null ? void 0 : R.result) == null ? void 0 : z.length) > 0 && (r = (ee = (ie = (fe = (X = (ne = (O = (Y = (V = (_ = y == null ? void 0 : y.data) == null ? void 0 : _.result) == null ? void 0 : V[0]) == null ? void 0 : Y.value) == null ? void 0 : O.pageData) == null ? void 0 : ne.compData) == null ? void 0 : X.find((ce) => (ce == null ? void 0 : ce.key) === "header")) == null ? void 0 : fe.contents) == null ? void 0 : ie[0]) == null ? void 0 : ee.label);
|
|
2987
|
+
let s = wl.value;
|
|
2988
|
+
(x = wl.value) != null && x.includes(`updataLoading${(D = Wl.value) == null ? void 0 : D.account}`) ? s = l(wl).value : (p = wl.value) != null && p.includes(`loading${(de = Wl.value) == null ? void 0 : de.account}`) && (s = l(aa).value + `/loading${(f = Wl.value) == null ? void 0 : f.account}`);
|
|
2989
|
+
const a = await ml({
|
|
2990
|
+
key: {
|
|
2991
|
+
pageKey: s,
|
|
2992
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
2993
|
+
}
|
|
2994
|
+
});
|
|
2995
|
+
if ((c = wl.value) != null && c.includes(`updataLoading${(b = Wl.value) == null ? void 0 : b.account}`)) {
|
|
2996
|
+
const ce = await ml({
|
|
2997
|
+
key: {
|
|
2998
|
+
pageKey: (A = wl.value.split(`/updataLoading${(d = Wl.value) == null ? void 0 : d.account}`)) == null ? void 0 : A[0],
|
|
2999
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3000
|
+
}
|
|
3001
|
+
});
|
|
3002
|
+
let M = (me = (q = ce == null ? void 0 : ce.data) == null ? void 0 : q.result) == null ? void 0 : me.map((j) => j == null ? void 0 : j.id);
|
|
3003
|
+
(M == null ? void 0 : M.length) > 0 && await as({
|
|
3004
|
+
ids: M
|
|
3005
|
+
});
|
|
3006
|
+
}
|
|
3007
|
+
let t = [];
|
|
3008
|
+
if (((oe = (re = a == null ? void 0 : a.data) == null ? void 0 : re.result) == null ? void 0 : oe.length) > 0) {
|
|
3009
|
+
let ce = (v = (u = (G = (K = (le = (k = ($ = (I = (i = a == null ? void 0 : a.data) == null ? void 0 : i.result) == null ? void 0 : I[0]) == null ? void 0 : $.value) == null ? void 0 : k.pageData) == null ? void 0 : le.compData) == null ? void 0 : K.find((M) => (M == null ? void 0 : M.key) === "formContent")) == null ? void 0 : G.contents) == null ? void 0 : u.find((M) => {
|
|
3010
|
+
var j, E;
|
|
3011
|
+
return (M == null ? void 0 : M.key) === r || ((E = (j = M == null ? void 0 : M.optionUrl) == null ? void 0 : j.groupSelect) == null ? void 0 : E[1]) === r;
|
|
3012
|
+
})) == null ? void 0 : v.value;
|
|
3013
|
+
if ((H = (F = a == null ? void 0 : a.data) == null ? void 0 : F.result) == null || H.forEach((M) => {
|
|
3014
|
+
var E;
|
|
3015
|
+
let j = (E = l(M)) == null ? void 0 : E.key;
|
|
3016
|
+
j.pageKey = l(aa).value + "/" + ce, t.push({
|
|
3017
|
+
id: M == null ? void 0 : M.id,
|
|
3018
|
+
key: j
|
|
3019
|
+
});
|
|
3020
|
+
}), ce === "") {
|
|
3021
|
+
Xe.error(`保存失败,${r}的必填字段没有填写`);
|
|
3022
|
+
return;
|
|
3023
|
+
}
|
|
3024
|
+
await Na({
|
|
3025
|
+
dataList: t
|
|
3026
|
+
}), Xe.success("保存成功");
|
|
3027
|
+
}
|
|
3028
|
+
}, wn = { class: "method-content" }, Dn = {
|
|
3029
|
+
__name: "index",
|
|
3030
|
+
props: {
|
|
3031
|
+
itemData: {
|
|
3032
|
+
type: Array,
|
|
3033
|
+
default: () => []
|
|
3034
|
+
},
|
|
3035
|
+
childItemData: {
|
|
3036
|
+
type: Array,
|
|
3037
|
+
default: () => []
|
|
3038
|
+
},
|
|
3039
|
+
index: Number,
|
|
3040
|
+
changedContent: {
|
|
3041
|
+
type: Object,
|
|
3042
|
+
default: () => {
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
},
|
|
3046
|
+
setup(r) {
|
|
3047
|
+
const y = Z([]), s = r, a = ca(Me), t = Z(!1), R = Ka(Me), z = ra(Me), { itemData: _, isEdit: V, routeToChildPath: Y } = He(a), { activeMenuPath: O, platform: ne } = He(R), { loginUserInfo: X } = He(z), fe = Z(!1), ie = (d, A) => {
|
|
3048
|
+
const q = A;
|
|
3049
|
+
return d == null ? void 0 : d.map((me) => {
|
|
3050
|
+
var re;
|
|
3051
|
+
return me = (re = me == null ? void 0 : me.map((oe, i) => {
|
|
3052
|
+
var I;
|
|
3053
|
+
return {
|
|
3054
|
+
key: (I = q[i]) == null ? void 0 : I.label,
|
|
3055
|
+
value: oe
|
|
3056
|
+
};
|
|
3057
|
+
})) == null ? void 0 : re.filter((oe) => oe.key !== "操作"), me;
|
|
3058
|
+
});
|
|
3059
|
+
}, ee = async () => {
|
|
3060
|
+
await Cn();
|
|
3061
|
+
};
|
|
3062
|
+
Ve(
|
|
3063
|
+
() => _.value,
|
|
3064
|
+
async () => {
|
|
3065
|
+
V.value === "view" && !fe.value && await c(l(s.itemData)), fe.value = !1;
|
|
3066
|
+
},
|
|
3067
|
+
{ deep: !0 }
|
|
3068
|
+
);
|
|
3069
|
+
const D = async (d, A) => {
|
|
3070
|
+
var q;
|
|
3071
|
+
if (La(d == null ? void 0 : d.name, A)) {
|
|
3072
|
+
let me = La(d == null ? void 0 : d.name, A);
|
|
3073
|
+
d == null || d.id, d.compData = await Promise.all(
|
|
3074
|
+
(q = l(d.compData)) == null ? void 0 : q.map(async (re) => ((re == null ? void 0 : re.key) === "tableContents" && (re.extra = await ms(l(re.contents), (d == null ? void 0 : d.tableId) ?? (d == null ? void 0 : d.id)), re.contents = ys(l(me))), re))
|
|
3075
|
+
);
|
|
3076
|
+
} else
|
|
3077
|
+
d = bs(d, A);
|
|
3078
|
+
return d;
|
|
3079
|
+
}, x = (d, A) => {
|
|
3080
|
+
var me, re, oe, i, I, $, k, le;
|
|
3081
|
+
let q = (me = l(A)) == null ? void 0 : me.filter((K) => (K == null ? void 0 : K.comp) !== "methodButton");
|
|
3082
|
+
if (d != null && d.includes("[")) {
|
|
3083
|
+
let K = ($ = (I = (i = (oe = (re = l(d)) == null ? void 0 : re.split("[")) == null ? void 0 : oe[1]) == null ? void 0 : i.split("]")) == null ? void 0 : I[0]) == null ? void 0 : $.split(":"), G = "";
|
|
3084
|
+
if (K != null && K[0]) {
|
|
3085
|
+
let u = (k = q == null ? void 0 : q.find((v) => (v == null ? void 0 : v.name) === (K == null ? void 0 : K[0]))) == null ? void 0 : k.compData;
|
|
3086
|
+
u == null || u.forEach((v) => {
|
|
3087
|
+
var F;
|
|
3088
|
+
(v == null ? void 0 : v.key) === "formContent" && ((F = v == null ? void 0 : v.contents) == null || F.forEach((H) => {
|
|
3089
|
+
(H == null ? void 0 : H.key) === (K == null ? void 0 : K[1]) && (G = H == null ? void 0 : H.value);
|
|
3090
|
+
}));
|
|
3091
|
+
});
|
|
3092
|
+
}
|
|
3093
|
+
return G;
|
|
3094
|
+
} else if (d != null && d.includes("/")) {
|
|
3095
|
+
let K = {};
|
|
3096
|
+
return (le = l(q)) == null || le.forEach((G, u) => {
|
|
3097
|
+
var v, F, H, ce, M, j, E, w, g, L, n, P, _e, N, ue, be, pe, e, o;
|
|
3098
|
+
if ((G == null ? void 0 : G.comp) === "Table") {
|
|
3099
|
+
let h = Array.isArray((H = (F = (v = G == null ? void 0 : G.compData) == null ? void 0 : v.find((Q) => (Q == null ? void 0 : Q.key) === "header")) == null ? void 0 : F.contents) == null ? void 0 : H[0]) ? (E = (j = (M = (ce = G == null ? void 0 : G.compData) == null ? void 0 : ce.find((Q) => (Q == null ? void 0 : Q.key) === "header")) == null ? void 0 : M.contents) == null ? void 0 : j[0]) == null ? void 0 : E.some((Q) => Q == null ? void 0 : Q.children) : [], m = (L = (g = (w = G == null ? void 0 : G.compData) == null ? void 0 : w.find((Q) => (Q == null ? void 0 : Q.key) === "tableContents")) == null ? void 0 : g.contents) == null ? void 0 : L.map((Q) => Q.slice(1)), C = (ue = (N = (_e = (P = (n = G == null ? void 0 : G.compData) == null ? void 0 : n.find((Q) => (Q == null ? void 0 : Q.key) === "header")) == null ? void 0 : P.contents) == null ? void 0 : _e[0]) == null ? void 0 : N[0]) == null ? void 0 : ue.label, B = (pe = (be = G == null ? void 0 : G.compData) == null ? void 0 : be.find((Q) => (Q == null ? void 0 : Q.key) === "header")) == null ? void 0 : pe.contents;
|
|
3100
|
+
if (h)
|
|
3101
|
+
(h == null ? void 0 : h.length) === 0 ? K[G.name] = ie(m, B) : K[C] = ie(m, B);
|
|
3102
|
+
else {
|
|
3103
|
+
const Q = [];
|
|
3104
|
+
B = B.slice(1, B.length - 1), B == null || B.forEach((U, S) => {
|
|
3105
|
+
m == null || m.forEach((J) => {
|
|
3106
|
+
Q.push({
|
|
3107
|
+
key: U.label + J[0],
|
|
3108
|
+
value: J[S + 1]
|
|
3109
|
+
});
|
|
3110
|
+
});
|
|
3111
|
+
}), K["form" + u] = Q;
|
|
3112
|
+
}
|
|
3113
|
+
} else {
|
|
3114
|
+
const h = (o = (e = G.compData) == null ? void 0 : e.find((C) => (C == null ? void 0 : C.key) === "formContent")) == null ? void 0 : o.contents;
|
|
3115
|
+
K != null && K.form || (K.form = []);
|
|
3116
|
+
const m = [];
|
|
3117
|
+
h == null || h.forEach((C) => {
|
|
3118
|
+
C.key !== "" && (C = {
|
|
3119
|
+
key: (C == null ? void 0 : C.key) ?? (C == null ? void 0 : C.label),
|
|
3120
|
+
value: C == null ? void 0 : C.value
|
|
3121
|
+
}, m.push(C));
|
|
3122
|
+
}), K.form = [...m, ...l(K == null ? void 0 : K.form)];
|
|
3123
|
+
}
|
|
3124
|
+
}), K;
|
|
3125
|
+
} else
|
|
3126
|
+
return d;
|
|
3127
|
+
}, de = async (d, A, q) => {
|
|
3128
|
+
var oe;
|
|
3129
|
+
let me = await vl(A, sessionStorage.getItem("systemKey"), ""), re = me == null ? void 0 : me.find((i) => (i == null ? void 0 : i.name) === (q == null ? void 0 : q[0]));
|
|
3130
|
+
if (re && (re == null ? void 0 : re.comp) === "Table") {
|
|
3131
|
+
let i = {};
|
|
3132
|
+
for (let u in l(d))
|
|
3133
|
+
l(d)[u] !== "loginUser" ? i[u] = l(d)[u] : i[u] = (oe = X.value) == null ? void 0 : oe.account;
|
|
3134
|
+
let I = [], $ = i;
|
|
3135
|
+
Array.isArray(d) || ($ = [i]), $ == null || $.forEach((u) => {
|
|
3136
|
+
I.push({
|
|
3137
|
+
[u[q[1]]]: u
|
|
3138
|
+
});
|
|
3139
|
+
});
|
|
3140
|
+
let k = [], le = I == null ? void 0 : I.map((u) => {
|
|
3141
|
+
var v;
|
|
3142
|
+
return (v = Object.keys(u)) == null ? void 0 : v[0];
|
|
3143
|
+
});
|
|
3144
|
+
me == null || me.forEach((u) => {
|
|
3145
|
+
var v;
|
|
3146
|
+
(u == null ? void 0 : u.name) === (q == null ? void 0 : q[0]) && ((v = u == null ? void 0 : u.compData) == null || v.forEach((F) => {
|
|
3147
|
+
var H;
|
|
3148
|
+
(F == null ? void 0 : F.key) === "tableContents" && ((H = F == null ? void 0 : F.contents) == null || H.forEach((ce) => {
|
|
3149
|
+
ce != null && ce.some((M) => le.includes(M)) && k.push({
|
|
3150
|
+
[ce.find((M) => M.id).id]: ce.find((M) => le.includes(M))
|
|
3151
|
+
});
|
|
3152
|
+
}));
|
|
3153
|
+
}));
|
|
3154
|
+
});
|
|
3155
|
+
let K = k == null ? void 0 : k.map((u) => {
|
|
3156
|
+
var v;
|
|
3157
|
+
return (v = Object.keys(u)) == null ? void 0 : v[0];
|
|
3158
|
+
}), G = [];
|
|
3159
|
+
K == null || K.forEach((u) => {
|
|
3160
|
+
var H;
|
|
3161
|
+
let v = (H = k == null ? void 0 : k.find((ce) => {
|
|
3162
|
+
var M;
|
|
3163
|
+
return ((M = Object.keys(ce)) == null ? void 0 : M[0].toString()) === u.toString();
|
|
3164
|
+
})) == null ? void 0 : H[u], F = I == null ? void 0 : I.find((ce) => {
|
|
3165
|
+
var M;
|
|
3166
|
+
return ((M = Object.keys(ce)) == null ? void 0 : M[0]) === v;
|
|
3167
|
+
});
|
|
3168
|
+
G.push({
|
|
3169
|
+
id: parseInt(u),
|
|
3170
|
+
value: {
|
|
3171
|
+
tableData: F[v]
|
|
3172
|
+
}
|
|
3173
|
+
});
|
|
3174
|
+
}), (G == null ? void 0 : G.length) > 0 && await Na({
|
|
3175
|
+
dataList: G
|
|
3176
|
+
});
|
|
3177
|
+
}
|
|
3178
|
+
}, p = async (d, A, q) => {
|
|
3179
|
+
var oe, i, I, $, k, le, K, G, u;
|
|
3180
|
+
let me = await vl(A, sessionStorage.getItem("systemKey"), ""), re = me == null ? void 0 : me.find((v) => (v == null ? void 0 : v.name) === (q == null ? void 0 : q[0]));
|
|
3181
|
+
if (re) {
|
|
3182
|
+
if ((re == null ? void 0 : re.comp) === "Table") {
|
|
3183
|
+
let v = {};
|
|
3184
|
+
for (let F in l(d))
|
|
3185
|
+
l(d)[F] !== "loginUser" ? v[F] = l(d)[F] : v[F] = (oe = X.value) == null ? void 0 : oe.account;
|
|
3186
|
+
await Ta({
|
|
3187
|
+
key: {
|
|
3188
|
+
type: "data",
|
|
3189
|
+
pageKey: A,
|
|
3190
|
+
tableId: re == null ? void 0 : re.id,
|
|
3191
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3192
|
+
},
|
|
3193
|
+
value: {
|
|
3194
|
+
tableData: v
|
|
3195
|
+
}
|
|
3196
|
+
});
|
|
3197
|
+
} else if ((re == null ? void 0 : re.comp) === "Form") {
|
|
3198
|
+
let v = l(re), F = Object.keys(d), H = "";
|
|
3199
|
+
(I = (i = l(v)) == null ? void 0 : i.compData) == null || I.forEach((g) => {
|
|
3200
|
+
var L, n;
|
|
3201
|
+
(g == null ? void 0 : g.key) === "formContent" && ((n = (L = l(g)) == null ? void 0 : L.contents) == null || n.forEach((P) => {
|
|
3202
|
+
var _e;
|
|
3203
|
+
F.includes(P == null ? void 0 : P.key) && (P == null ? void 0 : P.value) === ((_e = X.value) == null ? void 0 : _e.姓名) && (H = P == null ? void 0 : P.key);
|
|
3204
|
+
}));
|
|
3205
|
+
});
|
|
3206
|
+
let ce = [];
|
|
3207
|
+
($ = Object.values(d[H])) == null || $.forEach((g) => {
|
|
3208
|
+
g != null && g.includes("(") && ce.push(g);
|
|
3209
|
+
}), ce = [...new Set(ce)];
|
|
3210
|
+
const M = ce == null ? void 0 : ce.map(async (g) => {
|
|
3211
|
+
var N, ue, be, pe, e, o, h, m, C, B, Q, U;
|
|
3212
|
+
let L = "";
|
|
3213
|
+
(o = (e = (pe = (be = (ue = (N = l(g)) == null ? void 0 : N.split("(")) == null ? void 0 : ue[1]) == null ? void 0 : be.split(")")) == null ? void 0 : pe[0]) == null ? void 0 : e.split(":")) == null || o.forEach((S) => {
|
|
3214
|
+
L = L === "" ? L + S.replaceAll("'", "") : L + "/" + S.replaceAll("'", "");
|
|
3215
|
+
});
|
|
3216
|
+
let n = [];
|
|
3217
|
+
(U = (Q = (B = (C = (m = (h = l(g)) == null ? void 0 : h.split("<")) == null ? void 0 : m[1]) == null ? void 0 : C.split(">")) == null ? void 0 : B[0]) == null ? void 0 : Q.split(":")) == null || U.forEach((S) => {
|
|
3218
|
+
n.push(S.replaceAll("'", ""));
|
|
3219
|
+
});
|
|
3220
|
+
const P = await vl(L, sessionStorage.getItem("systemKey"), "");
|
|
3221
|
+
let _e = "";
|
|
3222
|
+
return P == null || P.forEach((S) => {
|
|
3223
|
+
var J;
|
|
3224
|
+
S.name === (n == null ? void 0 : n[0]) && ((J = S == null ? void 0 : S.compData) == null || J.forEach((ve) => {
|
|
3225
|
+
var De;
|
|
3226
|
+
(ve == null ? void 0 : ve.key) === "formContent" && ((De = ve.contents) == null || De.forEach((he) => {
|
|
3227
|
+
(he == null ? void 0 : he.key) === (n == null ? void 0 : n[1]) && (_e = he == null ? void 0 : he.value);
|
|
3228
|
+
}));
|
|
3229
|
+
}));
|
|
3230
|
+
}), {
|
|
3231
|
+
[g]: _e
|
|
3232
|
+
};
|
|
3233
|
+
}), j = await Promise.all(M);
|
|
3234
|
+
v.compData = (le = (k = l(v)) == null ? void 0 : k.compData) == null ? void 0 : le.map((g) => {
|
|
3235
|
+
var L, n;
|
|
3236
|
+
return (g == null ? void 0 : g.key) === "formContent" && (g.contents = (n = (L = l(g)) == null ? void 0 : L.contents) == null ? void 0 : n.map((P) => {
|
|
3237
|
+
var _e, N, ue, be;
|
|
3238
|
+
return (_e = d[H]) != null && _e[P == null ? void 0 : P.key] && (d[H][P == null ? void 0 : P.key].includes("(") ? P.value = (N = j == null ? void 0 : j.find((pe) => {
|
|
3239
|
+
var e;
|
|
3240
|
+
return ((e = Object.keys(pe)) == null ? void 0 : e[0]) === d[H][P == null ? void 0 : P.key];
|
|
3241
|
+
})) == null ? void 0 : N[d[H][P == null ? void 0 : P.key]] : P.value = (be = (ue = l(d)) == null ? void 0 : ue[H]) == null ? void 0 : be[P == null ? void 0 : P.key]), P;
|
|
3242
|
+
})), g;
|
|
3243
|
+
});
|
|
3244
|
+
const E = await ml({
|
|
3245
|
+
key: {
|
|
3246
|
+
type: "structure",
|
|
3247
|
+
pageKey: A,
|
|
3248
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3249
|
+
}
|
|
3250
|
+
});
|
|
3251
|
+
let w = "";
|
|
3252
|
+
((K = E == null ? void 0 : E.data) == null ? void 0 : K.type) === "success" && ((u = (G = E == null ? void 0 : E.data) == null ? void 0 : G.result) == null || u.forEach((g) => {
|
|
3253
|
+
var L, n;
|
|
3254
|
+
((n = (L = g == null ? void 0 : g.value) == null ? void 0 : L.pageData) == null ? void 0 : n.name) === (q == null ? void 0 : q[0]) && (w = g.id);
|
|
3255
|
+
}), await Sa({
|
|
3256
|
+
id: w,
|
|
3257
|
+
value: {
|
|
3258
|
+
pageData: v
|
|
3259
|
+
}
|
|
3260
|
+
}));
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
}, f = async (d, A, q) => {
|
|
3264
|
+
var oe, i, I, $, k, le;
|
|
3265
|
+
let me = await vl(A, sessionStorage.getItem("systemKey"), ""), re = me == null ? void 0 : me.find((K) => (K == null ? void 0 : K.name) === (q == null ? void 0 : q[0]));
|
|
3266
|
+
if (re) {
|
|
3267
|
+
if (!(q != null && q[1]) && (re == null ? void 0 : re.comp) === "Table") {
|
|
3268
|
+
let K = {};
|
|
3269
|
+
for (let G in l(d))
|
|
3270
|
+
l(d)[G] !== "loginUser" ? K[G] = l(d)[G] : K[G] = (oe = X.value) == null ? void 0 : oe.account;
|
|
3271
|
+
await Ta({
|
|
3272
|
+
key: {
|
|
3273
|
+
type: "data",
|
|
3274
|
+
pageKey: A,
|
|
3275
|
+
tableId: re == null ? void 0 : re.id,
|
|
3276
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3277
|
+
},
|
|
3278
|
+
value: {
|
|
3279
|
+
tableData: K
|
|
3280
|
+
}
|
|
3281
|
+
});
|
|
3282
|
+
} else if (!(q != null && q[1]) && (re == null ? void 0 : re.comp) === "Form") {
|
|
3283
|
+
let K = l(re);
|
|
3284
|
+
K.compData = (I = (i = l(K)) == null ? void 0 : i.compData) == null ? void 0 : I.map((v) => {
|
|
3285
|
+
var F, H;
|
|
3286
|
+
return (v == null ? void 0 : v.key) === "formContent" && (v.contents = (H = (F = l(v)) == null ? void 0 : F.contents) == null ? void 0 : H.map((ce) => {
|
|
3287
|
+
var M, j;
|
|
3288
|
+
return (M = l(d)) != null && M[ce == null ? void 0 : ce.key] && (ce.value = (j = l(d)) == null ? void 0 : j[ce == null ? void 0 : ce.key]), ce;
|
|
3289
|
+
})), v;
|
|
3290
|
+
});
|
|
3291
|
+
const G = await ml({
|
|
3292
|
+
key: {
|
|
3293
|
+
type: "structure",
|
|
3294
|
+
pageKey: A,
|
|
3295
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3296
|
+
}
|
|
3297
|
+
});
|
|
3298
|
+
let u = "";
|
|
3299
|
+
(($ = G == null ? void 0 : G.data) == null ? void 0 : $.type) === "success" && ((le = (k = G == null ? void 0 : G.data) == null ? void 0 : k.result) == null || le.forEach((v) => {
|
|
3300
|
+
var F, H;
|
|
3301
|
+
((H = (F = v == null ? void 0 : v.value) == null ? void 0 : F.pageData) == null ? void 0 : H.name) === (q == null ? void 0 : q[0]) && (u = v.id);
|
|
3302
|
+
}), await Sa({
|
|
3303
|
+
id: u,
|
|
3304
|
+
value: {
|
|
3305
|
+
pageData: K
|
|
3306
|
+
}
|
|
3307
|
+
}));
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
}, b = async (d) => {
|
|
3311
|
+
var q, me, re, oe, i, I, $, k, le, K, G, u, v, F, H, ce, M, j;
|
|
3312
|
+
let A = {};
|
|
3313
|
+
if (ne.value !== "browser") {
|
|
3314
|
+
const E = [];
|
|
3315
|
+
A.form = {}, (q = l(d.content)) == null || q.forEach((g, L) => {
|
|
3316
|
+
var n, P, _e, N, ue, be, pe, e, o, h, m, C, B, Q;
|
|
3317
|
+
if ((g == null ? void 0 : g.comp) === "Table") {
|
|
3318
|
+
(P = (n = g == null ? void 0 : g.compData) == null ? void 0 : n.find((ve) => (ve == null ? void 0 : ve.key) === "header")) == null || P.contents;
|
|
3319
|
+
let U = (ue = (N = (_e = g == null ? void 0 : g.compData) == null ? void 0 : _e.find((ve) => (ve == null ? void 0 : ve.key) === "tableContents")) == null ? void 0 : N.contents) == null ? void 0 : ue.map((ve) => ve.slice(1));
|
|
3320
|
+
(h = (o = (e = (pe = (be = g == null ? void 0 : g.compData) == null ? void 0 : be.find((ve) => (ve == null ? void 0 : ve.key) === "header")) == null ? void 0 : pe.contents) == null ? void 0 : e[0]) == null ? void 0 : o[0]) == null || h.label;
|
|
3321
|
+
let S = (C = (m = g == null ? void 0 : g.compData) == null ? void 0 : m.find((ve) => (ve == null ? void 0 : ve.key) === "header")) == null ? void 0 : C.contents, J = [];
|
|
3322
|
+
U == null || U.forEach((ve) => {
|
|
3323
|
+
let De = [];
|
|
3324
|
+
ve == null || ve.forEach((he, ae) => {
|
|
3325
|
+
var ke;
|
|
3326
|
+
let Ce = {};
|
|
3327
|
+
((ke = S[ae]) == null ? void 0 : ke.label) !== "操作" && (Ce[S[ae].label] = he, De.push(Ce));
|
|
3328
|
+
}), J.push(De);
|
|
3329
|
+
}), A[g.name] = J;
|
|
3330
|
+
} else {
|
|
3331
|
+
const U = (Q = (B = g.compData) == null ? void 0 : B.find((S) => (S == null ? void 0 : S.key) === "formContent")) == null ? void 0 : Q.contents;
|
|
3332
|
+
U == null || U.forEach((S) => {
|
|
3333
|
+
var J;
|
|
3334
|
+
S.key !== "" && (S = {
|
|
3335
|
+
key: (S == null ? void 0 : S.key) ?? (S == null ? void 0 : S.label),
|
|
3336
|
+
value: (J = S == null ? void 0 : S.value) == null ? void 0 : J.toString()
|
|
3337
|
+
}, E.push(S));
|
|
3338
|
+
});
|
|
3339
|
+
}
|
|
3340
|
+
}), A.form = ps(E);
|
|
3341
|
+
let w = A.form;
|
|
3342
|
+
for (let g in A)
|
|
3343
|
+
g !== "form" && (w[g] = fs(A[g]));
|
|
3344
|
+
if (d.api) {
|
|
3345
|
+
try {
|
|
3346
|
+
t.value = !0;
|
|
3347
|
+
const g = await Hl.post(
|
|
3348
|
+
d.api,
|
|
3349
|
+
w,
|
|
3350
|
+
{
|
|
3351
|
+
headers: {
|
|
3352
|
+
"Content-Type": "application/json"
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
);
|
|
3356
|
+
if (((me = g == null ? void 0 : g.data) == null ? void 0 : me.code) === 200 || ((re = g == null ? void 0 : g.data) == null ? void 0 : re.statusCode) === 200) {
|
|
3357
|
+
let L = await ((oe = g == null ? void 0 : g.data) == null ? void 0 : oe.data);
|
|
3358
|
+
const n = (i = l(_.value)) == null ? void 0 : i.filter((ue) => (ue == null ? void 0 : ue.comp) !== "methodButton"), P = await Promise.all(
|
|
3359
|
+
n.map((ue) => D(ue, L))
|
|
3360
|
+
);
|
|
3361
|
+
await Promise.all(P);
|
|
3362
|
+
const _e = (I = l(_.value)) == null ? void 0 : I.filter((ue) => (ue == null ? void 0 : ue.comp) === "methodButton");
|
|
3363
|
+
let N = [...P, ..._e];
|
|
3364
|
+
await hs(N), t.value = !1;
|
|
3365
|
+
} else
|
|
3366
|
+
Xe.error("方法调用失败:" + (($ = g == null ? void 0 : g.data) == null ? void 0 : $.errors)), t.value = !1;
|
|
3367
|
+
} catch {
|
|
3368
|
+
Xe.error("方法调用失败"), t.value = !1;
|
|
3369
|
+
}
|
|
3370
|
+
a.setFreshContent(!0);
|
|
3371
|
+
}
|
|
3372
|
+
} else if (d.api) {
|
|
3373
|
+
let E = await vl(O.value, sessionStorage.getItem("systemKey"), ""), w = {};
|
|
3374
|
+
(le = (k = d == null ? void 0 : d.extraValues) == null ? void 0 : k.input) == null || le.forEach((N) => {
|
|
3375
|
+
var ue;
|
|
3376
|
+
w[Object.keys(N)[0]] = x((ue = Object.values(N)) == null ? void 0 : ue[0], E);
|
|
3377
|
+
});
|
|
3378
|
+
let g = !1;
|
|
3379
|
+
(G = (K = d == null ? void 0 : d.extraValues) == null ? void 0 : K.output) == null || G.forEach((N) => {
|
|
3380
|
+
var ue, be;
|
|
3381
|
+
(be = (ue = Object.values(N)) == null ? void 0 : ue[0]) != null && be.includes(".doc") && (g = !0);
|
|
3382
|
+
});
|
|
3383
|
+
let L;
|
|
3384
|
+
g ? L = await Hl.post(d.api, w, {
|
|
3385
|
+
responseType: "blob",
|
|
3386
|
+
// 必须设置
|
|
3387
|
+
headers: {
|
|
3388
|
+
"Content-Type": "application/json"
|
|
3389
|
+
}
|
|
3390
|
+
}) : L = await Hl.post(d.api, w, {
|
|
3391
|
+
headers: {
|
|
3392
|
+
"Content-Type": "application/json"
|
|
3393
|
+
}
|
|
3394
|
+
});
|
|
3395
|
+
let n = (H = (F = (v = (u = l(d)) == null ? void 0 : u.extraValues) == null ? void 0 : v.output) == null ? void 0 : F.map((N) => {
|
|
3396
|
+
var ue, be, pe, e, o, h, m, C, B, Q, U, S, J, ve, De;
|
|
3397
|
+
if (!((be = (ue = Object.values(N)) == null ? void 0 : ue[0]) != null && be.includes(".doc"))) {
|
|
3398
|
+
let he = (Q = (B = (C = (e = l((pe = Object.values(N)) == null ? void 0 : pe[0])) == null ? void 0 : e.split("[")) == null ? void 0 : C[((m = (h = l((o = Object.values(N)) == null ? void 0 : o[0])) == null ? void 0 : h.split("[")) == null ? void 0 : m.length) - 1]) == null ? void 0 : B.split("]")) == null ? void 0 : Q[0];
|
|
3399
|
+
he == null || he.split(":");
|
|
3400
|
+
let ae = l((U = Object.values(N)) == null ? void 0 : U[0]).substring(0, l((S = Object.values(N)) == null ? void 0 : S[0]).lastIndexOf("["));
|
|
3401
|
+
if (ae = (ve = l(ae)) == null ? void 0 : ve.slice(0, ((J = l(ae)) == null ? void 0 : J.length) - 1), ae != null && ae.includes("[")) {
|
|
3402
|
+
let Ce = "";
|
|
3403
|
+
if ((De = sa(ae, "/")) == null || De.forEach((ke) => {
|
|
3404
|
+
var xe, Ne, je, W, Be, Fe, pl;
|
|
3405
|
+
if (!(ke != null && ke.includes("[")))
|
|
3406
|
+
Ce = Ce === "" ? Ce + ke.replaceAll("/", "") : Ce + "/" + ke.replaceAll("/", "");
|
|
3407
|
+
else {
|
|
3408
|
+
let yl = l(ke).slice(1, ((xe = l(ke)) == null ? void 0 : xe.length) - 1), Ye = (Fe = (Be = (W = (je = (Ne = l(yl)) == null ? void 0 : Ne.split("[")) == null ? void 0 : je[1]) == null ? void 0 : W.split("]")) == null ? void 0 : Be[0]) == null ? void 0 : Fe.split(":"), ul = "", rl = (pl = E == null ? void 0 : E.find((We) => (We == null ? void 0 : We.name) === (Ye == null ? void 0 : Ye[0]))) == null ? void 0 : pl.compData;
|
|
3409
|
+
rl == null || rl.forEach((We) => {
|
|
3410
|
+
var fl;
|
|
3411
|
+
(We == null ? void 0 : We.key) === "formContent" && ((fl = We == null ? void 0 : We.contents) == null || fl.forEach((Ze) => {
|
|
3412
|
+
(Ze == null ? void 0 : Ze.key) === (Ye == null ? void 0 : Ye[1]) && (ul = Ze == null ? void 0 : Ze.value);
|
|
3413
|
+
}));
|
|
3414
|
+
}), Ce = Ce === "" ? Ce + ul.replaceAll("/", "") : Ce + "/" + ul.replaceAll("/", "");
|
|
3415
|
+
}
|
|
3416
|
+
}), ae = Ce, ae[(ae == null ? void 0 : ae.length) - 1] !== "/")
|
|
3417
|
+
return ae;
|
|
3418
|
+
}
|
|
3419
|
+
}
|
|
3420
|
+
})) == null ? void 0 : H.filter((N) => N);
|
|
3421
|
+
n = [...new Set(l(n))];
|
|
3422
|
+
let P = n == null ? void 0 : n.map(async (N) => {
|
|
3423
|
+
let ue = await vl(N, sessionStorage.getItem("systemKey"), "");
|
|
3424
|
+
if ((ue == null ? void 0 : ue.length) === 0)
|
|
3425
|
+
return await vs(N);
|
|
3426
|
+
});
|
|
3427
|
+
await Promise.all(P);
|
|
3428
|
+
let _e = (j = (M = (ce = l(d)) == null ? void 0 : ce.extraValues) == null ? void 0 : M.output) == null ? void 0 : j.map(async (N) => {
|
|
3429
|
+
var B, Q, U, S, J, ve, De, he, ae, Ce, ke, xe, Ne, je, W, Be, Fe, pl, yl, Ye, ul, rl, We, fl, Ze, el, Je, Al, Il, xl, El, $l, Bl, Tl, Sl, Ol, Fl, Ll, Pl, Rl, Ul, jl, bl, da, pa, fa, ha, va, ma, ya, ba, ga, ka, _a, Ca, wa, Da, Aa, Ia, xa;
|
|
3430
|
+
if ((Q = (B = Object.values(N)) == null ? void 0 : B[0]) != null && Q.includes(".doc")) {
|
|
3431
|
+
var ue = new Blob([L.data], {
|
|
3432
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
3433
|
+
}), be = L.headers["content-disposition"], pe = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), e = pe.exec(be), o = ((J = (S = (U = d == null ? void 0 : d.extraContent) == null ? void 0 : U[0]) == null ? void 0 : S.split(".")) == null ? void 0 : J[0]) + "." + ((ve = e == null ? void 0 : e[1].split(".")) == null ? void 0 : ve[1]), h = document.createElement("a"), m = window.URL.createObjectURL(ue), C = /^["](.*)["]$/g;
|
|
3434
|
+
h.style.display = "none", h.href = m, h.download = decodeURI(o.replace(C, "$1")), document.body.appendChild(h), h.click(), document.body.removeChild(h), window.URL.revokeObjectURL(m);
|
|
3435
|
+
} else {
|
|
3436
|
+
let Xl = (je = (Ne = (xe = (he = l((De = Object.values(N)) == null ? void 0 : De[0])) == null ? void 0 : he.split("[")) == null ? void 0 : xe[((ke = (Ce = l((ae = Object.values(N)) == null ? void 0 : ae[0])) == null ? void 0 : Ce.split("[")) == null ? void 0 : ke.length) - 1]) == null ? void 0 : Ne.split("]")) == null ? void 0 : je[0], Ee = Xl == null ? void 0 : Xl.split(":"), al = l((W = Object.values(N)) == null ? void 0 : W[0]).substring(0, l((Be = Object.values(N)) == null ? void 0 : Be[0]).lastIndexOf("["));
|
|
3437
|
+
if (al.includes("[") && (al = (pl = l(al)) == null ? void 0 : pl.slice(0, ((Fe = l(al)) == null ? void 0 : Fe.length) - 1)), al != null && al.includes("[")) {
|
|
3438
|
+
let Le = "";
|
|
3439
|
+
(yl = sa(al, "/")) == null || yl.forEach((Re) => {
|
|
3440
|
+
var Nl, qe, ll, hl, Kl, Ea, $a;
|
|
3441
|
+
if (!(Re != null && Re.includes("[")))
|
|
3442
|
+
Le = Le === "" ? Le + Re.replaceAll("/", "") : Le + "/" + Re.replaceAll("/", "");
|
|
3443
|
+
else {
|
|
3444
|
+
let Qa = l(Re).slice(1, ((Nl = l(Re)) == null ? void 0 : Nl.length) - 1), _l = (Ea = (Kl = (hl = (ll = (qe = l(Qa)) == null ? void 0 : qe.split("[")) == null ? void 0 : ll[1]) == null ? void 0 : hl.split("]")) == null ? void 0 : Kl[0]) == null ? void 0 : Ea.split(":"), Yl = "", Zl = ($a = E == null ? void 0 : E.find((sl) => (sl == null ? void 0 : sl.name) === (_l == null ? void 0 : _l[0]))) == null ? void 0 : $a.compData;
|
|
3445
|
+
Zl == null || Zl.forEach((sl) => {
|
|
3446
|
+
var Ba;
|
|
3447
|
+
(sl == null ? void 0 : sl.key) === "formContent" && ((Ba = sl == null ? void 0 : sl.contents) == null || Ba.forEach((Cl) => {
|
|
3448
|
+
(Cl == null ? void 0 : Cl.key) === (_l == null ? void 0 : _l[1]) && (Yl = Cl == null ? void 0 : Cl.value);
|
|
3449
|
+
}));
|
|
3450
|
+
}), Le = Le === "" ? Le + Yl.replaceAll("/", "") : Le + "/" + Yl.replaceAll("/", "");
|
|
3451
|
+
}
|
|
3452
|
+
}), al = Le;
|
|
3453
|
+
}
|
|
3454
|
+
if (((Ye = L == null ? void 0 : L.data) == null ? void 0 : Ye.statusCode) === 200) {
|
|
3455
|
+
if ((rl = (ul = L == null ? void 0 : L.data) == null ? void 0 : ul.data) != null && rl[Ee == null ? void 0 : Ee[0]] && (Ee == null ? void 0 : Ee.length) === 1)
|
|
3456
|
+
return await f((fl = (We = L == null ? void 0 : L.data) == null ? void 0 : We.data) == null ? void 0 : fl[Ee == null ? void 0 : Ee[0]], al, Ee);
|
|
3457
|
+
if ((el = (Ze = L == null ? void 0 : L.data) == null ? void 0 : Ze.data) != null && el[Ee == null ? void 0 : Ee[0]])
|
|
3458
|
+
return await de((Al = (Je = L == null ? void 0 : L.data) == null ? void 0 : Je.data) == null ? void 0 : Al[Ee == null ? void 0 : Ee[0]], al, Ee);
|
|
3459
|
+
if ((Ee == null ? void 0 : Ee.length) === 1) {
|
|
3460
|
+
const Le = (El = (xl = (Il = L == null ? void 0 : L.data) == null ? void 0 : Il.data) == null ? void 0 : xl.path) == null ? void 0 : El.path;
|
|
3461
|
+
let Re = "";
|
|
3462
|
+
(Ol = (Sl = (Tl = (Bl = ($l = Le == null ? void 0 : Le.split("(")) == null ? void 0 : $l[1]) == null ? void 0 : Bl.split(")")) == null ? void 0 : Tl[0]) == null ? void 0 : Sl.split(":")) == null || Ol.forEach((ll) => {
|
|
3463
|
+
var hl, Kl;
|
|
3464
|
+
Re = Re === "" ? Re + ((hl = ll == null ? void 0 : ll.replaceAll("'", "")) == null ? void 0 : hl.trim()) : Re + "/" + ((Kl = ll == null ? void 0 : ll.replaceAll("'", "")) == null ? void 0 : Kl.trim());
|
|
3465
|
+
});
|
|
3466
|
+
let Nl = [(Ul = (Rl = (Pl = (Ll = (Fl = Le == null ? void 0 : Le.split("<")) == null ? void 0 : Fl[1]) == null ? void 0 : Ll.split(">")) == null ? void 0 : Pl[0]) == null ? void 0 : Rl.replaceAll("'", "")) == null ? void 0 : Ul.trim()], qe;
|
|
3467
|
+
return (da = (bl = (jl = L == null ? void 0 : L.data) == null ? void 0 : jl.data) == null ? void 0 : bl.data) != null && da[Ee == null ? void 0 : Ee[0]] ? qe = await f((ha = (fa = (pa = L == null ? void 0 : L.data) == null ? void 0 : pa.data) == null ? void 0 : fa.data) == null ? void 0 : ha[Ee == null ? void 0 : Ee[0]], Re, Ee) : qe = await p((ma = (va = L == null ? void 0 : L.data) == null ? void 0 : va.data) == null ? void 0 : ma.data, Re, Nl), qe;
|
|
3468
|
+
} else {
|
|
3469
|
+
const Le = (ga = (ba = (ya = L == null ? void 0 : L.data) == null ? void 0 : ya.data) == null ? void 0 : ba.path) == null ? void 0 : ga.path;
|
|
3470
|
+
let Re = "";
|
|
3471
|
+
return (Da = (wa = (Ca = (_a = (ka = Le == null ? void 0 : Le.split("(")) == null ? void 0 : ka[1]) == null ? void 0 : _a.split(")")) == null ? void 0 : Ca[0]) == null ? void 0 : wa.split(":")) == null || Da.forEach((qe) => {
|
|
3472
|
+
var ll, hl;
|
|
3473
|
+
Re = Re === "" ? Re + ((ll = qe == null ? void 0 : qe.replaceAll("'", "")) == null ? void 0 : ll.trim()) : Re + "/" + ((hl = qe == null ? void 0 : qe.replaceAll("'", "")) == null ? void 0 : hl.trim());
|
|
3474
|
+
}), await de((xa = (Ia = (Aa = L == null ? void 0 : L.data) == null ? void 0 : Aa.data) == null ? void 0 : Ia.data) == null ? void 0 : xa[Ee == null ? void 0 : Ee[0]], Re, Ee);
|
|
3475
|
+
}
|
|
3476
|
+
}
|
|
3477
|
+
}
|
|
3478
|
+
});
|
|
3479
|
+
await Promise.all(_e);
|
|
3480
|
+
}
|
|
3481
|
+
fe.value = !0;
|
|
3482
|
+
}, c = async (d) => {
|
|
3483
|
+
var oe, i, I;
|
|
3484
|
+
const A = l(d);
|
|
3485
|
+
let q;
|
|
3486
|
+
d != null && d[0].path && (q = await (A == null ? void 0 : A.map(async ($, k) => {
|
|
3487
|
+
var v, F, H, ce, M, j, E, w, g, L;
|
|
3488
|
+
const K = (await ml({
|
|
3489
|
+
key: {
|
|
3490
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3491
|
+
type: "data",
|
|
3492
|
+
pageKey: (v = d == null ? void 0 : d[0]) == null ? void 0 : v.path
|
|
3493
|
+
}
|
|
3494
|
+
})).data.result;
|
|
3495
|
+
let G = "";
|
|
3496
|
+
const u = await vl(O.value, sessionStorage.getItem("systemKey"), "");
|
|
3497
|
+
return K == null || K.forEach((n) => {
|
|
3498
|
+
var P, _e, N, ue, be;
|
|
3499
|
+
((_e = (P = n == null ? void 0 : n.value) == null ? void 0 : P.tableData) == null ? void 0 : _e.算法名称) === ((N = A == null ? void 0 : A[k]) == null ? void 0 : N.method) && (G = (be = (ue = n == null ? void 0 : n.value) == null ? void 0 : ue.tableData) == null ? void 0 : be.算法体);
|
|
3500
|
+
}), {
|
|
3501
|
+
buttonName: ((F = A == null ? void 0 : A[k]) == null ? void 0 : F.method) ?? ((M = (ce = (H = K == null ? void 0 : K[0]) == null ? void 0 : H.value) == null ? void 0 : ce.tableData) == null ? void 0 : M.算法名称),
|
|
3502
|
+
api: G === "" ? (w = (E = (j = K == null ? void 0 : K[0]) == null ? void 0 : j.value) == null ? void 0 : E.tableData) == null ? void 0 : w.算法体 : G,
|
|
3503
|
+
content: u == null ? void 0 : u.filter((n) => n.comp !== "methodButton"),
|
|
3504
|
+
extraContent: (g = l($.value)) == null ? void 0 : g.slice(1),
|
|
3505
|
+
methodName: ($ == null ? void 0 : $.path) ?? "",
|
|
3506
|
+
extraValues: (L = A == null ? void 0 : A[k]) == null ? void 0 : L.data
|
|
3507
|
+
};
|
|
3508
|
+
})));
|
|
3509
|
+
const me = A == null ? void 0 : A.map(async ($) => {
|
|
3510
|
+
var v, F, H, ce, M, j;
|
|
3511
|
+
const le = (v = (await ml({
|
|
3512
|
+
key: {
|
|
3513
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3514
|
+
parentTable: "",
|
|
3515
|
+
type: "method",
|
|
3516
|
+
methodName: $.method
|
|
3517
|
+
}
|
|
3518
|
+
})).data.result) == null ? void 0 : v[0], K = await ml({
|
|
3519
|
+
key: {
|
|
3520
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3521
|
+
type: "methodData",
|
|
3522
|
+
tableId: le == null ? void 0 : le.id
|
|
3523
|
+
}
|
|
3524
|
+
}), G = await vl(O.value, sessionStorage.getItem("systemKey"), ""), u = (F = K.data.result) == null ? void 0 : F[0];
|
|
3525
|
+
return {
|
|
3526
|
+
buttonName: (H = le == null ? void 0 : le.key) == null ? void 0 : H.methodKey,
|
|
3527
|
+
api: (M = (ce = u == null ? void 0 : u.value) == null ? void 0 : ce.tableData) == null ? void 0 : M[0],
|
|
3528
|
+
content: G == null ? void 0 : G.filter((E) => E.comp !== "methodButton"),
|
|
3529
|
+
extraContent: (j = l($.value)) == null ? void 0 : j.slice(1),
|
|
3530
|
+
methodName: ($ == null ? void 0 : $.method) ?? ""
|
|
3531
|
+
};
|
|
3532
|
+
}), re = (oe = d == null ? void 0 : d[0]) != null && oe.path && ((i = d == null ? void 0 : d[0]) == null ? void 0 : i.path) !== "" ? await Promise.all(q) : await Promise.all(me);
|
|
3533
|
+
y.value = re == null ? void 0 : re.filter(($) => $ == null ? void 0 : $.extraContent), (I = y.value) == null || I.forEach(($) => {
|
|
3534
|
+
var k;
|
|
3535
|
+
$.api === "" && ((k = $.content) == null || k.forEach((le) => {
|
|
3536
|
+
var K;
|
|
3537
|
+
le.comp == "Table" && a.setExtraContents(ds(le.compData, (K = $.extraContent) == null ? void 0 : K[0]));
|
|
3538
|
+
}));
|
|
3539
|
+
});
|
|
3540
|
+
};
|
|
3541
|
+
return Ve(
|
|
3542
|
+
() => s.itemData,
|
|
3543
|
+
async () => {
|
|
3544
|
+
V.value == "view" && !fe.value && await c(l(s.itemData)), fe.value = !1;
|
|
3545
|
+
},
|
|
3546
|
+
{ immediate: !0, deep: !0 }
|
|
3547
|
+
), (d, A) => (te(), ge("div", wn, [
|
|
3548
|
+
(te(!0), ge(Se, null, Pe(y.value, (q) => (te(), ge("div", null, [
|
|
3549
|
+
q.api !== "" ? (te(), Oe(Jl(Oa), {
|
|
3550
|
+
key: 0,
|
|
3551
|
+
class: "calculator-content",
|
|
3552
|
+
modelValue: q.buttonName,
|
|
3553
|
+
onClickTrigger: (me) => b(q),
|
|
3554
|
+
loading: t.value
|
|
3555
|
+
}, null, 8, ["modelValue", "onClickTrigger", "loading"])) : Qe("", !0)
|
|
3556
|
+
]))), 256)),
|
|
3557
|
+
Jl(Y) !== "" ? (te(), Oe(Jl(Oa), {
|
|
3558
|
+
key: 0,
|
|
3559
|
+
class: "calculator-content",
|
|
3560
|
+
onClickTrigger: ee,
|
|
3561
|
+
modelValue: "保存"
|
|
3562
|
+
})) : Qe("", !0)
|
|
3563
|
+
]));
|
|
3564
|
+
}
|
|
3565
|
+
}, An = /* @__PURE__ */ Ue(Dn, [["__scopeId", "data-v-5faf81a1"]]), In = {};
|
|
3566
|
+
function xn(r, y) {
|
|
3567
|
+
return " 567 ";
|
|
3568
|
+
}
|
|
3569
|
+
const En = /* @__PURE__ */ Ue(In, [["render", xn]]), $n = { class: "module content" }, Bn = { class: "module data" }, Tn = { class: "module layout" }, Sn = { class: "form-content" }, On = /* @__PURE__ */ kl({
|
|
3570
|
+
__name: "operate",
|
|
3571
|
+
props: {
|
|
3572
|
+
itemContents: {
|
|
3573
|
+
type: Array,
|
|
3574
|
+
default: () => []
|
|
3575
|
+
},
|
|
3576
|
+
originalItemContents: {
|
|
3577
|
+
type: Array,
|
|
3578
|
+
default: () => []
|
|
3579
|
+
}
|
|
3580
|
+
},
|
|
3581
|
+
emits: ["change"],
|
|
3582
|
+
setup(r, { emit: y }) {
|
|
3583
|
+
const s = r, a = y, t = oa({
|
|
3584
|
+
visible: !1,
|
|
3585
|
+
width: "40%",
|
|
3586
|
+
title: "签名配置"
|
|
3587
|
+
}), R = Z("create"), z = Z([
|
|
3588
|
+
{
|
|
3589
|
+
label: "取消",
|
|
3590
|
+
background: "#c0c4cc"
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
label: "确认",
|
|
3594
|
+
background: "#436aaf"
|
|
3595
|
+
}
|
|
3596
|
+
]), _ = Z([
|
|
3597
|
+
{
|
|
3598
|
+
label: "宽度(%):",
|
|
3599
|
+
prop: "signPadWidth",
|
|
3600
|
+
type: "number",
|
|
3601
|
+
value: "30"
|
|
3602
|
+
},
|
|
3603
|
+
{
|
|
3604
|
+
label: "弹窗名称:",
|
|
3605
|
+
prop: "dialogTitle",
|
|
3606
|
+
type: "input",
|
|
3607
|
+
value: ""
|
|
3608
|
+
},
|
|
3609
|
+
{
|
|
3610
|
+
label: "弹窗宽度(%):",
|
|
3611
|
+
prop: "dialogWidth",
|
|
3612
|
+
type: "number",
|
|
3613
|
+
value: "30"
|
|
3614
|
+
},
|
|
3615
|
+
{
|
|
3616
|
+
label: "弹窗显示:",
|
|
3617
|
+
prop: "dialogShow",
|
|
3618
|
+
type: "radio",
|
|
3619
|
+
contents: [
|
|
3620
|
+
{
|
|
3621
|
+
label: "显示",
|
|
3622
|
+
value: !0
|
|
3623
|
+
},
|
|
3624
|
+
{
|
|
3625
|
+
label: "隐藏",
|
|
3626
|
+
value: !1
|
|
3627
|
+
}
|
|
3628
|
+
],
|
|
3629
|
+
value: !1,
|
|
3630
|
+
isFormColHidden: !0
|
|
3631
|
+
},
|
|
3632
|
+
{
|
|
3633
|
+
label: "路径:",
|
|
3634
|
+
prop: "url",
|
|
3635
|
+
type: "input",
|
|
3636
|
+
value: "",
|
|
3637
|
+
isFormColHidden: !0
|
|
3638
|
+
}
|
|
3639
|
+
]), V = ua(() => [
|
|
3640
|
+
{
|
|
3641
|
+
label: "",
|
|
3642
|
+
prop: "index",
|
|
3643
|
+
type: "input",
|
|
3644
|
+
value: "",
|
|
3645
|
+
isFormColHidden: !0
|
|
3646
|
+
},
|
|
3647
|
+
{
|
|
3648
|
+
label: "类型:",
|
|
3649
|
+
prop: "label",
|
|
3650
|
+
type: "select",
|
|
3651
|
+
contents: [
|
|
3652
|
+
{
|
|
3653
|
+
label: "电子签名",
|
|
3654
|
+
value: "电子签名"
|
|
3655
|
+
},
|
|
3656
|
+
{
|
|
3657
|
+
label: "签字版",
|
|
3658
|
+
value: "签字版"
|
|
3659
|
+
},
|
|
3660
|
+
{
|
|
3661
|
+
label: "上传签名",
|
|
3662
|
+
value: "上传签名"
|
|
3663
|
+
}
|
|
3664
|
+
],
|
|
3665
|
+
value: ""
|
|
3666
|
+
},
|
|
3667
|
+
{
|
|
3668
|
+
label: "图标",
|
|
3669
|
+
prop: "icon",
|
|
3670
|
+
type: "inputPopover",
|
|
3671
|
+
value: ""
|
|
3672
|
+
}
|
|
3673
|
+
// {
|
|
3674
|
+
// label: '是否禁用',
|
|
3675
|
+
// prop: 'disabled',
|
|
3676
|
+
// type: 'radio',
|
|
3677
|
+
// contents: [
|
|
3678
|
+
// {
|
|
3679
|
+
// label: '是',
|
|
3680
|
+
// value: true,
|
|
3681
|
+
// },
|
|
3682
|
+
// {
|
|
3683
|
+
// label: '否',
|
|
3684
|
+
// value: false,
|
|
3685
|
+
// }
|
|
3686
|
+
// ],
|
|
3687
|
+
// value: false
|
|
3688
|
+
// },
|
|
3689
|
+
]), Y = Z({}), O = Z([]), ne = () => ({
|
|
3690
|
+
comp: "Signature",
|
|
3691
|
+
compData: [
|
|
3692
|
+
{
|
|
3693
|
+
key: "signTypeList",
|
|
3694
|
+
contents: O.value
|
|
3695
|
+
},
|
|
3696
|
+
{
|
|
3697
|
+
key: "signConfig",
|
|
3698
|
+
contents: Y.value
|
|
3699
|
+
}
|
|
3700
|
+
]
|
|
3701
|
+
}), X = (D) => {
|
|
3702
|
+
var x;
|
|
3703
|
+
Y.value = l(D), a("change", (x = ne()) == null ? void 0 : x.compData);
|
|
3704
|
+
}, fe = (D) => {
|
|
3705
|
+
var x, de;
|
|
3706
|
+
if ((D == null ? void 0 : D.buttonName) === "确认") {
|
|
3707
|
+
const p = l(D == null ? void 0 : D.content);
|
|
3708
|
+
switch (R.value) {
|
|
3709
|
+
case "create":
|
|
3710
|
+
O.value.push({
|
|
3711
|
+
...p,
|
|
3712
|
+
index: ((x = O.value) == null ? void 0 : x.length) + 1
|
|
3713
|
+
});
|
|
3714
|
+
break;
|
|
3715
|
+
}
|
|
3716
|
+
a("change", (de = ne()) == null ? void 0 : de.compData), t.visible = !1;
|
|
3717
|
+
} else
|
|
3718
|
+
t.visible = !1;
|
|
3719
|
+
}, ie = (D, x) => {
|
|
3720
|
+
var de, p;
|
|
3721
|
+
switch (D) {
|
|
3722
|
+
case "create":
|
|
3723
|
+
(de = V.value) == null || de.forEach((f) => {
|
|
3724
|
+
f.value = "";
|
|
3725
|
+
}), R.value = "create", t.visible = !0;
|
|
3726
|
+
break;
|
|
3727
|
+
case "update":
|
|
3728
|
+
(p = V.value) == null || p.forEach((f) => {
|
|
3729
|
+
f.value = x[f == null ? void 0 : f.prop];
|
|
3730
|
+
}), R.value = "update", t.visible = !0;
|
|
3731
|
+
break;
|
|
3732
|
+
case "delete":
|
|
3733
|
+
O.value.splice(x, 1), R.value = "delete";
|
|
3734
|
+
break;
|
|
3735
|
+
}
|
|
3736
|
+
}, ee = () => {
|
|
3737
|
+
t.visible = !1;
|
|
3738
|
+
};
|
|
3739
|
+
return Ve(() => s == null ? void 0 : s.itemContents, (D) => {
|
|
3740
|
+
var x, de;
|
|
3741
|
+
D && (Y.value = ((x = D == null ? void 0 : D.find((p) => p.key === "signConfig")) == null ? void 0 : x.contents) ?? {}, O.value = ((de = D == null ? void 0 : D.find((p) => p.key === "signTypeList")) == null ? void 0 : de.contents) ?? []);
|
|
3742
|
+
}, { immediate: !0 }), (D, x) => {
|
|
3743
|
+
const de = Te("svg-icon"), p = Te("el-button");
|
|
3744
|
+
return te(), ge(Se, null, [
|
|
3745
|
+
T("div", null, [
|
|
3746
|
+
T("div", $n, [
|
|
3747
|
+
x[2] || (x[2] = T("h4", { class: "module-title" }, "签名类型", -1)),
|
|
3748
|
+
se(p, {
|
|
3749
|
+
class: "module-icon",
|
|
3750
|
+
id: "themeButton",
|
|
3751
|
+
onClick: x[0] || (x[0] = (f) => ie("create"))
|
|
3752
|
+
}, {
|
|
3753
|
+
icon: ye(() => [
|
|
3754
|
+
se(de, {
|
|
3755
|
+
name: "Plus",
|
|
3756
|
+
class: "icon-size"
|
|
3757
|
+
})
|
|
3758
|
+
]),
|
|
3759
|
+
default: ye(() => [
|
|
3760
|
+
x[1] || (x[1] = $e(" 新增 "))
|
|
3761
|
+
]),
|
|
3762
|
+
_: 1,
|
|
3763
|
+
__: [1]
|
|
3764
|
+
})
|
|
3765
|
+
]),
|
|
3766
|
+
T("div", Bn, [
|
|
3767
|
+
(te(!0), ge(Se, null, Pe(O.value, (f, b) => (te(), ge("div", {
|
|
3768
|
+
class: "module-data-item",
|
|
3769
|
+
key: b
|
|
3770
|
+
}, [
|
|
3771
|
+
T("span", null, we(f == null ? void 0 : f.label), 1),
|
|
3772
|
+
T("div", null, [
|
|
3773
|
+
se(p, {
|
|
3774
|
+
type: "primary",
|
|
3775
|
+
size: "small",
|
|
3776
|
+
onClick: (c) => ie("update", { ...f, index: b + 1 })
|
|
3777
|
+
}, {
|
|
3778
|
+
default: ye(() => x[3] || (x[3] = [
|
|
3779
|
+
$e("修改")
|
|
3780
|
+
])),
|
|
3781
|
+
_: 2,
|
|
3782
|
+
__: [3]
|
|
3783
|
+
}, 1032, ["onClick"]),
|
|
3784
|
+
se(p, {
|
|
3785
|
+
type: "danger",
|
|
3786
|
+
size: "small",
|
|
3787
|
+
onClick: (c) => ie("delete", b)
|
|
3788
|
+
}, {
|
|
3789
|
+
default: ye(() => x[4] || (x[4] = [
|
|
3790
|
+
$e("删除")
|
|
3791
|
+
])),
|
|
3792
|
+
_: 2,
|
|
3793
|
+
__: [4]
|
|
3794
|
+
}, 1032, ["onClick"])
|
|
3795
|
+
])
|
|
3796
|
+
]))), 128))
|
|
3797
|
+
]),
|
|
3798
|
+
T("div", Tn, [
|
|
3799
|
+
se(ze, {
|
|
3800
|
+
rowContents: _.value,
|
|
3801
|
+
onChange: X
|
|
3802
|
+
}, null, 8, ["rowContents"])
|
|
3803
|
+
])
|
|
3804
|
+
]),
|
|
3805
|
+
se(Ge, {
|
|
3806
|
+
visible: t.visible,
|
|
3807
|
+
title: t.title,
|
|
3808
|
+
onBeforeDestroy: ee,
|
|
3809
|
+
width: t.width
|
|
3810
|
+
}, {
|
|
3811
|
+
default: ye(() => [
|
|
3812
|
+
T("div", Sn, [
|
|
3813
|
+
(te(), Oe(ze, {
|
|
3814
|
+
rowContents: V.value,
|
|
3815
|
+
key: V.value,
|
|
3816
|
+
isEnableWrap: !1,
|
|
3817
|
+
isButtonRow: !1,
|
|
3818
|
+
isStartJustify: !1,
|
|
3819
|
+
buttonValue: z.value,
|
|
3820
|
+
onOnButtonClick: fe
|
|
3821
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
3822
|
+
])
|
|
3823
|
+
]),
|
|
3824
|
+
_: 1
|
|
3825
|
+
}, 8, ["visible", "title", "width"])
|
|
3826
|
+
], 64);
|
|
3827
|
+
};
|
|
3828
|
+
}
|
|
3829
|
+
}), Fn = /* @__PURE__ */ Ue(On, [["__scopeId", "data-v-487e0536"]]), Ln = /* @__PURE__ */ kl({
|
|
3830
|
+
__name: "index",
|
|
3831
|
+
props: {
|
|
3832
|
+
stepConfig: {
|
|
3833
|
+
type: Object,
|
|
3834
|
+
default: {}
|
|
3835
|
+
},
|
|
3836
|
+
stepList: {
|
|
3837
|
+
type: Array,
|
|
3838
|
+
default: () => []
|
|
3839
|
+
}
|
|
3840
|
+
},
|
|
3841
|
+
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
3842
|
+
setup(r, { emit: y }) {
|
|
3843
|
+
const s = r, a = y, t = Z(1), R = ua(() => {
|
|
3844
|
+
var ne, X;
|
|
3845
|
+
return (ne = s == null ? void 0 : s.stepConfig) != null && ne.allowTrigger ? t.value : (X = s == null ? void 0 : s.stepConfig) == null ? void 0 : X.active;
|
|
3846
|
+
}), z = (ne, X) => {
|
|
3847
|
+
t.value = X, a("clickStep", ne, X);
|
|
3848
|
+
}, _ = (ne) => is(ne), V = () => {
|
|
3849
|
+
var X;
|
|
3850
|
+
const ne = (X = s == null ? void 0 : s.stepList) == null ? void 0 : X.find((fe, ie) => ie + 1 === R.value);
|
|
3851
|
+
return console.log("findStep", ne), ne ? ne == null ? void 0 : ne.children : [];
|
|
3852
|
+
}, Y = (ne) => {
|
|
3853
|
+
a("clickTrigger", ne);
|
|
3854
|
+
}, O = (ne) => {
|
|
3855
|
+
a("changeTrigger", ne);
|
|
3856
|
+
};
|
|
3857
|
+
return (ne, X) => {
|
|
3858
|
+
var ee, D, x, de, p;
|
|
3859
|
+
const fe = Te("el-step"), ie = Te("el-steps");
|
|
3860
|
+
return te(), ge(Se, null, [
|
|
3861
|
+
se(ie, {
|
|
3862
|
+
direction: (ee = r.stepConfig) == null ? void 0 : ee.direction,
|
|
3863
|
+
active: R.value,
|
|
3864
|
+
"finish-status": "success",
|
|
3865
|
+
simple: (D = r.stepConfig) == null ? void 0 : D.simple,
|
|
3866
|
+
"align-center": ((x = r.stepConfig) == null ? void 0 : x.alignCenter) ?? !0
|
|
3867
|
+
}, {
|
|
3868
|
+
default: ye(() => [
|
|
3869
|
+
(te(!0), ge(Se, null, Pe(r.stepList, (f, b) => (te(), Oe(fe, {
|
|
3870
|
+
key: b,
|
|
3871
|
+
class: "step-item",
|
|
3872
|
+
onClick: (c) => z(f, b + 1)
|
|
3873
|
+
}, {
|
|
3874
|
+
title: ye(() => [
|
|
3875
|
+
Gl(ne.$slots, "title", {
|
|
3876
|
+
title: f == null ? void 0 : f.title
|
|
3877
|
+
}, void 0, !0)
|
|
3878
|
+
]),
|
|
3879
|
+
description: ye(() => [
|
|
3880
|
+
Gl(ne.$slots, "description", {
|
|
3881
|
+
description: f == null ? void 0 : f.description
|
|
3882
|
+
}, void 0, !0)
|
|
3883
|
+
]),
|
|
3884
|
+
_: 2
|
|
3885
|
+
}, 1032, ["onClick"]))), 128))
|
|
3886
|
+
]),
|
|
3887
|
+
_: 3
|
|
3888
|
+
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
3889
|
+
(de = r.stepConfig) != null && de.allowTrigger && ((p = r.stepConfig) != null && p.active) ? (te(!0), ge(Se, { key: 0 }, Pe(V(), (f, b) => (te(), ge("div", {
|
|
3890
|
+
key: b,
|
|
3891
|
+
class: "step-cont-wrap"
|
|
3892
|
+
}, [
|
|
3893
|
+
(te(), Oe(zl(_(f == null ? void 0 : f.type)), {
|
|
3894
|
+
modelValue: f.value,
|
|
3895
|
+
"onUpdate:modelValue": (c) => f.value = c,
|
|
3896
|
+
onClickTrigger: Y,
|
|
3897
|
+
onChangeTrigger: O,
|
|
3898
|
+
content: f == null ? void 0 : f.content
|
|
3899
|
+
}, Za({ _: 2 }, [
|
|
3900
|
+
Pe(ne.$slots, (c, d) => ({
|
|
3901
|
+
name: d,
|
|
3902
|
+
fn: ye((A) => [
|
|
3903
|
+
Gl(ne.$slots, d, es({ ref_for: !0 }, A || {}), void 0, !0)
|
|
3904
|
+
])
|
|
3905
|
+
}))
|
|
3906
|
+
]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
|
|
3907
|
+
]))), 128)) : Qe("", !0)
|
|
3908
|
+
], 64);
|
|
3909
|
+
};
|
|
3910
|
+
}
|
|
3911
|
+
}), Pn = /* @__PURE__ */ Ue(Ln, [["__scopeId", "data-v-d7c99969"]]), Rn = /* @__PURE__ */ kl({
|
|
3912
|
+
__name: "index",
|
|
3913
|
+
props: {
|
|
3914
|
+
itemData: {
|
|
3915
|
+
type: Array,
|
|
3916
|
+
default: () => []
|
|
3917
|
+
},
|
|
3918
|
+
childItemData: {
|
|
3919
|
+
type: Array,
|
|
3920
|
+
default: () => []
|
|
3921
|
+
}
|
|
3922
|
+
},
|
|
3923
|
+
emits: ["clickStep"],
|
|
3924
|
+
setup(r, { emit: y }) {
|
|
3925
|
+
const s = r, a = y, t = Z({}), R = Z([]), z = (_, V) => {
|
|
3926
|
+
a("clickStep", _, V);
|
|
3927
|
+
};
|
|
3928
|
+
return Ve(() => s == null ? void 0 : s.itemData, (_) => {
|
|
3929
|
+
var V, Y;
|
|
3930
|
+
R.value = (V = _ == null ? void 0 : _.find((O) => (O == null ? void 0 : O.key) === "stepList")) == null ? void 0 : V.contents, t.value = (Y = _ == null ? void 0 : _.find((O) => (O == null ? void 0 : O.key) === "stepConfig")) == null ? void 0 : Y.contents;
|
|
3931
|
+
}, {
|
|
3932
|
+
immediate: !0
|
|
3933
|
+
}), (_, V) => {
|
|
3934
|
+
const Y = Te("svg-icon");
|
|
3935
|
+
return te(), Oe(Pn, {
|
|
3936
|
+
stepConfig: t.value,
|
|
3937
|
+
stepList: R.value,
|
|
3938
|
+
onClickStep: z
|
|
3939
|
+
}, {
|
|
3940
|
+
icon: ye(() => [
|
|
3941
|
+
se(Y, { name: "import" })
|
|
3942
|
+
]),
|
|
3943
|
+
title: ye(({ title: O }) => [
|
|
3944
|
+
$e(we(O), 1)
|
|
3945
|
+
]),
|
|
3946
|
+
description: ye(({ description: O }) => [
|
|
3947
|
+
$e(we(O), 1)
|
|
3948
|
+
]),
|
|
3949
|
+
_: 1
|
|
3950
|
+
}, 8, ["stepConfig", "stepList"]);
|
|
3951
|
+
};
|
|
3952
|
+
}
|
|
3953
|
+
}), Un = /* @__PURE__ */ kl({
|
|
3954
|
+
__name: "index",
|
|
3955
|
+
props: {
|
|
3956
|
+
activities: {
|
|
3957
|
+
type: Array,
|
|
3958
|
+
default: () => []
|
|
3959
|
+
},
|
|
3960
|
+
timeLineConfig: {
|
|
3961
|
+
type: Object,
|
|
3962
|
+
default: () => {
|
|
3963
|
+
}
|
|
3964
|
+
}
|
|
3965
|
+
},
|
|
3966
|
+
setup(r) {
|
|
3967
|
+
return (y, s) => {
|
|
3968
|
+
const a = Te("el-timeline-item"), t = Te("el-timeline");
|
|
3969
|
+
return te(), Oe(t, null, {
|
|
3970
|
+
default: ye(() => [
|
|
3971
|
+
(te(!0), ge(Se, null, Pe(r.activities, (R, z) => (te(), Oe(a, {
|
|
3972
|
+
key: z,
|
|
3973
|
+
timestamp: R.timestamp,
|
|
3974
|
+
placement: r.timeLineConfig.placement,
|
|
3975
|
+
center: r.timeLineConfig.isCenter,
|
|
3976
|
+
"hide-timestamp": !0,
|
|
3977
|
+
type: r.timeLineConfig.type,
|
|
3978
|
+
color: r.timeLineConfig.color,
|
|
3979
|
+
size: r.timeLineConfig.size,
|
|
3980
|
+
icon: r.timeLineConfig.icon,
|
|
3981
|
+
hollow: r.timeLineConfig.isHollow
|
|
3982
|
+
}, {
|
|
3983
|
+
default: ye(() => [
|
|
3984
|
+
Gl(y.$slots, "content", {
|
|
3985
|
+
content: R == null ? void 0 : R.content,
|
|
3986
|
+
timestamp: R == null ? void 0 : R.timestamp
|
|
3987
|
+
}, void 0, !0)
|
|
3988
|
+
]),
|
|
3989
|
+
_: 2
|
|
3990
|
+
}, 1032, ["timestamp", "placement", "center", "type", "color", "size", "icon", "hollow"]))), 128))
|
|
3991
|
+
]),
|
|
3992
|
+
_: 3
|
|
3993
|
+
});
|
|
3994
|
+
};
|
|
3995
|
+
}
|
|
3996
|
+
}), jn = /* @__PURE__ */ Ue(Un, [["__scopeId", "data-v-4172a886"]]), Nn = { class: "line-content" }, Kn = { class: "line-time" }, Vn = /* @__PURE__ */ kl({
|
|
3997
|
+
__name: "index",
|
|
3998
|
+
props: {
|
|
3999
|
+
itemData: {
|
|
4000
|
+
type: Array,
|
|
4001
|
+
default: () => []
|
|
4002
|
+
}
|
|
4003
|
+
},
|
|
4004
|
+
setup(r) {
|
|
4005
|
+
const y = r, s = Z({}), a = Z([]);
|
|
4006
|
+
return Ve(() => y == null ? void 0 : y.itemData, (t) => {
|
|
4007
|
+
var R, z;
|
|
4008
|
+
a.value = (R = t == null ? void 0 : t.find((_) => (_ == null ? void 0 : _.key) === "timeLineList")) == null ? void 0 : R.contents, s.value = (z = t == null ? void 0 : t.find((_) => (_ == null ? void 0 : _.key) === "timeLineConfig")) == null ? void 0 : z.contents;
|
|
4009
|
+
}, {
|
|
4010
|
+
immediate: !0
|
|
4011
|
+
}), (t, R) => (te(), Oe(jn, {
|
|
4012
|
+
activities: a.value,
|
|
4013
|
+
timeLineConfig: s.value
|
|
4014
|
+
}, {
|
|
4015
|
+
content: ye(({ content: z, timestamp: _ }) => [
|
|
4016
|
+
T("span", Nn, we(z), 1),
|
|
4017
|
+
T("span", Kn, we(_), 1)
|
|
4018
|
+
]),
|
|
4019
|
+
_: 1
|
|
4020
|
+
}, 8, ["activities", "timeLineConfig"]));
|
|
4021
|
+
}
|
|
4022
|
+
}), Wn = /* @__PURE__ */ Ue(Vn, [["__scopeId", "data-v-b4d9deed"]]), zn = { class: "tabs-content" }, Mn = {
|
|
4023
|
+
__name: "index",
|
|
4024
|
+
props: {
|
|
4025
|
+
itemData: {
|
|
4026
|
+
type: Array,
|
|
4027
|
+
default: () => []
|
|
4028
|
+
},
|
|
4029
|
+
childItemData: {
|
|
4030
|
+
type: Array,
|
|
4031
|
+
default: () => []
|
|
4032
|
+
},
|
|
4033
|
+
index: Number
|
|
4034
|
+
},
|
|
4035
|
+
setup(r) {
|
|
4036
|
+
const y = r, s = Z([]);
|
|
4037
|
+
return Ve(
|
|
4038
|
+
() => y == null ? void 0 : y.itemData,
|
|
4039
|
+
(a) => {
|
|
4040
|
+
const t = a.find((R) => (R == null ? void 0 : R.key) == "stepList");
|
|
4041
|
+
t && (s.value = t.contents.map((R) => ({
|
|
4042
|
+
value: R.value || R.title,
|
|
4043
|
+
label: R.label || R.title,
|
|
4044
|
+
children: R.children || []
|
|
4045
|
+
// 关键:传递子内容
|
|
4046
|
+
})));
|
|
4047
|
+
},
|
|
4048
|
+
{ immediate: !0, deep: !0 }
|
|
4049
|
+
), (a, t) => (te(), ge("div", zn, [
|
|
4050
|
+
se(ns, { tabsContents: s.value }, null, 8, ["tabsContents"])
|
|
4051
|
+
]));
|
|
4052
|
+
}
|
|
4053
|
+
}, Jn = /* @__PURE__ */ Ue(Mn, [["__scopeId", "data-v-d3bb10b7"]]), Ql = ja("tabComp", {
|
|
4054
|
+
state: () => ({
|
|
4055
|
+
itemData: [],
|
|
4056
|
+
originalData: [],
|
|
4057
|
+
extraContents: [],
|
|
4058
|
+
nodeDev: "",
|
|
4059
|
+
isEdit: "view",
|
|
4060
|
+
isRefreshCurStructure: !1,
|
|
4061
|
+
isSubmitCurStructure: !1,
|
|
4062
|
+
curStructureCompIds: []
|
|
4063
|
+
}),
|
|
4064
|
+
actions: {
|
|
4065
|
+
setItemData(r) {
|
|
4066
|
+
this.itemData = r;
|
|
4067
|
+
},
|
|
4068
|
+
setCurStructureCompIds(r) {
|
|
4069
|
+
this.curStructureCompIds = r;
|
|
4070
|
+
},
|
|
4071
|
+
setRefreshCurStructure(r) {
|
|
4072
|
+
this.isRefreshCurStructure = r;
|
|
4073
|
+
},
|
|
4074
|
+
setOriginalData(r) {
|
|
4075
|
+
this.originalData = r;
|
|
4076
|
+
},
|
|
4077
|
+
setExtraContents(r) {
|
|
4078
|
+
this.extraContents = r;
|
|
4079
|
+
},
|
|
4080
|
+
setNodeDev(r) {
|
|
4081
|
+
this.nodeDev = r;
|
|
4082
|
+
},
|
|
4083
|
+
setIsEdit(r) {
|
|
4084
|
+
this.isEdit = r;
|
|
4085
|
+
}
|
|
4086
|
+
}
|
|
4087
|
+
}), Gn = { class: "type-select" }, Hn = ["onClick"], qn = { class: "list-icon" }, Qn = {
|
|
4088
|
+
__name: "modelSelect",
|
|
4089
|
+
setup(r) {
|
|
4090
|
+
const y = Ql(Me), { itemData: s } = He(y), a = (t) => {
|
|
4091
|
+
const R = l(s.value);
|
|
4092
|
+
R.push({
|
|
4093
|
+
comp: t.comp,
|
|
4094
|
+
name: t.name,
|
|
4095
|
+
compData: []
|
|
4096
|
+
}), y.setItemData(R);
|
|
4097
|
+
};
|
|
4098
|
+
return (t, R) => {
|
|
4099
|
+
const z = Te("svg-icon");
|
|
4100
|
+
return te(), ge("div", Gn, [
|
|
4101
|
+
(te(!0), ge(Se, null, Pe(Jl(Oo), (_, V) => (te(), ge("div", {
|
|
4102
|
+
class: "type-list",
|
|
4103
|
+
key: V
|
|
4104
|
+
}, [
|
|
4105
|
+
T("div", {
|
|
4106
|
+
class: "list-content",
|
|
4107
|
+
onClick: (Y) => a(_)
|
|
4108
|
+
}, [
|
|
4109
|
+
T("div", qn, [
|
|
4110
|
+
se(z, {
|
|
4111
|
+
name: _.icon
|
|
4112
|
+
}, null, 8, ["name"])
|
|
4113
|
+
]),
|
|
4114
|
+
T("div", null, we(_.name), 1)
|
|
4115
|
+
], 8, Hn)
|
|
4116
|
+
]))), 128))
|
|
4117
|
+
]);
|
|
4118
|
+
};
|
|
4119
|
+
}
|
|
4120
|
+
}, Xn = /* @__PURE__ */ Ue(Qn, [["__scopeId", "data-v-91799bf8"]]), Yn = { class: "fill-content" }, Zn = { class: "operate-content" }, eo = { class: "collapse-title-content" }, lo = { class: "collapse-title-item" }, ao = { key: 1 }, so = ["onClick"], io = { class: "icon-content" }, no = {
|
|
4121
|
+
key: 0,
|
|
4122
|
+
class: "edit-content"
|
|
4123
|
+
}, oo = ["onClick"], uo = { class: "comp-child" }, ro = {
|
|
4124
|
+
__name: "modelFill",
|
|
4125
|
+
setup(r) {
|
|
4126
|
+
const y = Ql(Me), { itemData: s, originalData: a } = He(y), t = Z([]);
|
|
4127
|
+
Z([]);
|
|
4128
|
+
const R = Z([]), z = Z([]), _ = (fe) => {
|
|
4129
|
+
var ee;
|
|
4130
|
+
let ie = (ee = l(z.value)) == null ? void 0 : ee.map((D, x) => (fe === x && (D.content = !0), D));
|
|
4131
|
+
z.value = ie;
|
|
4132
|
+
}, V = (fe) => {
|
|
4133
|
+
var ee;
|
|
4134
|
+
let ie = (ee = l(z.value)) == null ? void 0 : ee.map((D, x) => (fe === x && (D.content = !1), D));
|
|
4135
|
+
z.value = ie, t.value = l(s.value);
|
|
4136
|
+
}, Y = (fe, ie) => {
|
|
4137
|
+
var de;
|
|
4138
|
+
let ee = (de = l(z.value)) == null ? void 0 : de.map((p, f) => (fe === f && (p.content = !1), p));
|
|
4139
|
+
z.value = ee;
|
|
4140
|
+
const D = l(s.value), x = D == null ? void 0 : D.filter((p, f) => (f === fe && (p.name = ie), p));
|
|
4141
|
+
y.setOriginalData(x), y.setItemData(x);
|
|
4142
|
+
};
|
|
4143
|
+
Ve(
|
|
4144
|
+
() => s.value,
|
|
4145
|
+
() => {
|
|
4146
|
+
var fe, ie, ee;
|
|
4147
|
+
!s.value || ((fe = s.value) == null ? void 0 : fe.length) === 0 ? t.value = [] : t.value = (ie = l(s.value)) == null ? void 0 : ie.filter((D) => (D == null ? void 0 : D.comp) !== "methodButton"), R.value = t.value, z.value = (ee = l(R.value)) == null ? void 0 : ee.map((D, x) => ({
|
|
4148
|
+
id: x,
|
|
4149
|
+
content: !1
|
|
4150
|
+
}));
|
|
4151
|
+
},
|
|
4152
|
+
{ deep: !0, immediate: !0 }
|
|
4153
|
+
);
|
|
4154
|
+
const O = (fe) => ta(fe), ne = (fe, ie, ee) => {
|
|
4155
|
+
var x, de;
|
|
4156
|
+
if (!fe) return;
|
|
4157
|
+
let D = l(s.value);
|
|
4158
|
+
D = (x = D == null ? void 0 : D.map((p, f) => (f === ee && (p.compData = fe), p))) == null ? void 0 : x.filter((p) => (p == null ? void 0 : p.comp) !== "methodButton"), z.value = (de = l(D)) == null ? void 0 : de.map((p, f) => ({
|
|
4159
|
+
id: f,
|
|
4160
|
+
content: !1
|
|
4161
|
+
})), y.setOriginalData(D), y.setItemData(D);
|
|
4162
|
+
}, X = (fe) => {
|
|
4163
|
+
dl.confirm("是否确认要删除", "", {
|
|
4164
|
+
confirmButtonText: "确认",
|
|
4165
|
+
cancelButtonText: "取消",
|
|
4166
|
+
type: "warning"
|
|
4167
|
+
}).then(() => {
|
|
4168
|
+
const ie = l(s.value), ee = ie == null ? void 0 : ie.filter((D, x) => x !== fe);
|
|
4169
|
+
y.setOriginalData(ee), y.setItemData(ee), Xe({
|
|
4170
|
+
type: "success",
|
|
4171
|
+
message: "删除成功"
|
|
4172
|
+
});
|
|
4173
|
+
}).catch(() => {
|
|
4174
|
+
});
|
|
4175
|
+
};
|
|
4176
|
+
return (fe, ie) => {
|
|
4177
|
+
const ee = Te("svg-icon");
|
|
4178
|
+
return te(), ge("div", Yn, [
|
|
4179
|
+
ie[1] || (ie[1] = T("div", { class: "fill-operate" }, we("操作栏"), -1)),
|
|
4180
|
+
T("div", Zn, [
|
|
4181
|
+
se(_s, {
|
|
4182
|
+
class: "collapse-content",
|
|
4183
|
+
collapseContents: t.value
|
|
4184
|
+
}, {
|
|
4185
|
+
title: ye(({ item: D, index: x }) => {
|
|
4186
|
+
var de, p, f, b, c, d, A, q, me, re;
|
|
4187
|
+
return [
|
|
4188
|
+
T("div", eo, [
|
|
4189
|
+
T("div", lo, [
|
|
4190
|
+
(p = (de = z.value) == null ? void 0 : de.find((oe) => oe.id === x)) != null && p.content ? Qe("", !0) : (te(), ge("div", {
|
|
4191
|
+
key: 0,
|
|
4192
|
+
class: "collapse-title",
|
|
4193
|
+
style: ls({ marginRight: D.name && D.name !== "" ? "8px" : "0px" })
|
|
4194
|
+
}, we(D.name), 5)),
|
|
4195
|
+
(b = (f = z.value) == null ? void 0 : f.find((oe) => oe.id === x)) != null && b.content ? (te(), ge("div", ao, [
|
|
4196
|
+
se(os, {
|
|
4197
|
+
modelValue: D.name,
|
|
4198
|
+
"onUpdate:modelValue": (oe) => D.name = oe,
|
|
4199
|
+
onClick: ie[0] || (ie[0] = Vl(() => {
|
|
4200
|
+
}, ["stop"]))
|
|
4201
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4202
|
+
])) : Qe("", !0),
|
|
4203
|
+
(d = (c = z.value) == null ? void 0 : c.find((oe) => oe.id === x)) != null && d.content ? Qe("", !0) : (te(), ge("div", {
|
|
4204
|
+
key: 2,
|
|
4205
|
+
onClick: Vl((oe) => _(x), ["stop"]),
|
|
4206
|
+
class: "icon-content"
|
|
4207
|
+
}, [
|
|
4208
|
+
se(ee, {
|
|
4209
|
+
name: "Edit",
|
|
4210
|
+
style: { width: "16px", height: "16px" }
|
|
4211
|
+
})
|
|
4212
|
+
], 8, so))
|
|
4213
|
+
]),
|
|
4214
|
+
T("div", io, [
|
|
4215
|
+
(q = (A = z.value) == null ? void 0 : A.find((oe) => oe.id === x)) != null && q.content ? (te(), ge("div", no, [
|
|
4216
|
+
se(ee, {
|
|
4217
|
+
name: "Cancel",
|
|
4218
|
+
style: { width: "16px", height: "16px" },
|
|
4219
|
+
class: "icon-content",
|
|
4220
|
+
onClick: Vl((oe) => V(x), ["stop"])
|
|
4221
|
+
}, null, 8, ["onClick"]),
|
|
4222
|
+
se(ee, {
|
|
4223
|
+
name: "Save",
|
|
4224
|
+
onClick: Vl((oe) => Y(x, D.name), ["stop"]),
|
|
4225
|
+
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
4226
|
+
class: "icon-content"
|
|
4227
|
+
}, null, 8, ["onClick"])
|
|
4228
|
+
])) : Qe("", !0),
|
|
4229
|
+
(re = (me = z.value) == null ? void 0 : me.find((oe) => oe.id === x)) != null && re.content ? Qe("", !0) : (te(), ge("div", {
|
|
4230
|
+
key: 1,
|
|
4231
|
+
onClick: Vl((oe) => X(x), ["stop"]),
|
|
4232
|
+
class: "icon-content"
|
|
4233
|
+
}, [
|
|
4234
|
+
se(ee, {
|
|
4235
|
+
name: "Delete",
|
|
4236
|
+
style: { width: "16px", height: "16px" }
|
|
4237
|
+
})
|
|
4238
|
+
], 8, oo))
|
|
4239
|
+
])
|
|
4240
|
+
])
|
|
4241
|
+
];
|
|
4242
|
+
}),
|
|
4243
|
+
content: ye(({ item: D, index: x }) => {
|
|
4244
|
+
var de, p;
|
|
4245
|
+
return [
|
|
4246
|
+
T("div", uo, [
|
|
4247
|
+
(te(), Oe(zl(O(D.comp + "Operate")), {
|
|
4248
|
+
itemContents: D == null ? void 0 : D.compData,
|
|
4249
|
+
originalItemContents: (p = (de = R.value) == null ? void 0 : de.find((f, b) => b === x)) == null ? void 0 : p.compData,
|
|
4250
|
+
onChange: (f) => ne(f, D, x)
|
|
4251
|
+
}, null, 40, ["itemContents", "originalItemContents", "onChange"]))
|
|
4252
|
+
])
|
|
4253
|
+
];
|
|
4254
|
+
}),
|
|
4255
|
+
_: 1
|
|
4256
|
+
}, 8, ["collapseContents"])
|
|
4257
|
+
])
|
|
4258
|
+
]);
|
|
4259
|
+
};
|
|
4260
|
+
}
|
|
4261
|
+
}, co = /* @__PURE__ */ Ue(ro, [["__scopeId", "data-v-78d7fc46"]]), to = {
|
|
4262
|
+
key: 0,
|
|
4263
|
+
class: "show-content"
|
|
4264
|
+
}, po = { style: { display: "flex" } }, fo = {
|
|
4265
|
+
__name: "modelShow",
|
|
4266
|
+
setup(r) {
|
|
4267
|
+
const y = Ql(Me), { itemData: s } = He(y), a = Z([]);
|
|
4268
|
+
Ve(
|
|
4269
|
+
() => s.value,
|
|
4270
|
+
() => {
|
|
4271
|
+
var R;
|
|
4272
|
+
!s.value || ((R = s.value) == null ? void 0 : R.length) === 0 ? a.value = [] : a.value = l(s.value);
|
|
4273
|
+
},
|
|
4274
|
+
{ deep: !0, immediate: !0 }
|
|
4275
|
+
);
|
|
4276
|
+
const t = (R) => ta(R);
|
|
4277
|
+
return (R, z) => {
|
|
4278
|
+
var _;
|
|
4279
|
+
return ((_ = a.value) == null ? void 0 : _.length) > 0 ? (te(), ge("div", to, [
|
|
4280
|
+
(te(!0), ge(Se, null, Pe(a.value, (V, Y) => (te(), ge("div", {
|
|
4281
|
+
class: "item-content",
|
|
4282
|
+
key: Y
|
|
4283
|
+
}, [
|
|
4284
|
+
T("div", po, we(V.name), 1),
|
|
4285
|
+
(te(), Oe(zl(t(V.comp)), {
|
|
4286
|
+
itemData: V == null ? void 0 : V.compData,
|
|
4287
|
+
childItemData: V == null ? void 0 : V.itemChildData,
|
|
4288
|
+
key: Y
|
|
4289
|
+
}, null, 8, ["itemData", "childItemData"]))
|
|
4290
|
+
]))), 128))
|
|
4291
|
+
])) : Qe("", !0);
|
|
4292
|
+
};
|
|
4293
|
+
}
|
|
4294
|
+
}, ho = /* @__PURE__ */ Ue(fo, [["__scopeId", "data-v-3f3e863e"]]), vo = { class: "tabs-header" }, mo = { class: "tabs-list" }, yo = { class: "tab-name" }, bo = { class: "tab-actions" }, go = ["onClick"], ko = ["onClick"], _o = ["onClick"], Co = { class: "model-operate" }, wo = {
|
|
4295
|
+
class: "model-select",
|
|
4296
|
+
style: { display: "unset" }
|
|
4297
|
+
}, Do = { class: "existing-components" }, Ao = { class: "component-list" }, Io = ["onClick"], xo = { class: "component-info" }, Eo = { class: "component-type" }, $o = { class: "component-name" }, Bo = { class: "model-fill" }, To = {
|
|
4298
|
+
__name: "operate",
|
|
4299
|
+
props: {
|
|
4300
|
+
itemContents: {
|
|
4301
|
+
type: Array,
|
|
4302
|
+
default: () => []
|
|
4303
|
+
}
|
|
4304
|
+
},
|
|
4305
|
+
emits: ["change"],
|
|
4306
|
+
setup(r, { emit: y }) {
|
|
4307
|
+
const s = r, a = y, t = Z([]), R = Z(!1), z = Z(""), _ = Z({ title: "" }), V = Z(-1), Y = Z(!1), O = Z(-1), ne = Z(/* @__PURE__ */ new Map()), X = Z(null), fe = Ql(Me), { itemData: ie } = He(fe), ee = () => {
|
|
4308
|
+
z.value = "新增标签页", _.value.title = "", V.value = -1, R.value = !0;
|
|
4309
|
+
}, D = (u) => {
|
|
4310
|
+
z.value = "修改标签页", _.value.title = t.value[u].title, V.value = u, R.value = !0;
|
|
4311
|
+
}, x = (u) => {
|
|
4312
|
+
const v = f(u);
|
|
4313
|
+
ne.value.delete(v), t.value.splice(u, 1), G();
|
|
4314
|
+
}, de = () => {
|
|
4315
|
+
if (_.value.title.trim()) {
|
|
4316
|
+
if (V.value === -1) {
|
|
4317
|
+
const u = {
|
|
4318
|
+
title: _.value.title,
|
|
4319
|
+
value: _.value.title,
|
|
4320
|
+
label: _.value.title,
|
|
4321
|
+
children: [],
|
|
4322
|
+
id: p()
|
|
4323
|
+
};
|
|
4324
|
+
t.value.push(u);
|
|
4325
|
+
} else
|
|
4326
|
+
t.value[V.value].title = _.value.title, t.value[V.value].value = _.value.title, t.value[V.value].label = _.value.title;
|
|
4327
|
+
R.value = !1, G();
|
|
4328
|
+
}
|
|
4329
|
+
}, p = () => `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, f = (u) => {
|
|
4330
|
+
const v = t.value[u];
|
|
4331
|
+
return v.id || (v.id = p()), v.id;
|
|
4332
|
+
}, b = (u) => {
|
|
4333
|
+
var H;
|
|
4334
|
+
O.value = u;
|
|
4335
|
+
const v = f(u);
|
|
4336
|
+
X.value = l(ie.value);
|
|
4337
|
+
let F = ne.value.get(v);
|
|
4338
|
+
!F && ((H = t.value[u].children) == null ? void 0 : H.length) > 0 && (F = q(t.value[u].children)), F ? fe.setItemData(l(F)) : fe.setItemData([]), Y.value = !0;
|
|
4339
|
+
}, c = ua(() => {
|
|
4340
|
+
const u = ca(Me), v = He(u).itemData.value;
|
|
4341
|
+
return console.log("可用组件数据", v), !v || !Array.isArray(v) ? [] : v.filter((F) => {
|
|
4342
|
+
var H;
|
|
4343
|
+
if (F.comp === "Tabs" && O.value >= 0) {
|
|
4344
|
+
const ce = f(O.value);
|
|
4345
|
+
if ((H = F.compData) == null ? void 0 : H.some(
|
|
4346
|
+
(j) => {
|
|
4347
|
+
var E;
|
|
4348
|
+
return j.key === "stepList" && ((E = j.contents) == null ? void 0 : E.some((w) => w.id === ce));
|
|
4349
|
+
}
|
|
4350
|
+
)) return !1;
|
|
4351
|
+
}
|
|
4352
|
+
return !0;
|
|
4353
|
+
});
|
|
4354
|
+
}), d = (u) => ({
|
|
4355
|
+
Table: "表格",
|
|
4356
|
+
Form: "表单",
|
|
4357
|
+
Tabs: "标签页",
|
|
4358
|
+
Chart: "图表",
|
|
4359
|
+
Card: "卡片"
|
|
4360
|
+
})[u] || u, A = (u) => {
|
|
4361
|
+
var v;
|
|
4362
|
+
try {
|
|
4363
|
+
const F = l(u);
|
|
4364
|
+
F.id = Date.now() + Math.random(), F.comp === "Tabs" && ((v = F.compData) == null || v.forEach((ce) => {
|
|
4365
|
+
ce.key === "stepList" && ce.contents && ce.contents.forEach((M) => {
|
|
4366
|
+
M.id = p();
|
|
4367
|
+
});
|
|
4368
|
+
}));
|
|
4369
|
+
const H = l(ie.value);
|
|
4370
|
+
H.push(F), fe.setItemData(H);
|
|
4371
|
+
} catch (F) {
|
|
4372
|
+
console.error("添加组件失败:", F);
|
|
4373
|
+
}
|
|
4374
|
+
}, q = (u) => u.map((v) => {
|
|
4375
|
+
var F;
|
|
4376
|
+
switch (v.type) {
|
|
4377
|
+
case "form":
|
|
4378
|
+
return {
|
|
4379
|
+
comp: "Form",
|
|
4380
|
+
name: v.value || "表单",
|
|
4381
|
+
compData: me(v.content)
|
|
4382
|
+
};
|
|
4383
|
+
case "table":
|
|
4384
|
+
return {
|
|
4385
|
+
comp: "Table",
|
|
4386
|
+
name: v.value || "表格",
|
|
4387
|
+
compData: re(v.content)
|
|
4388
|
+
};
|
|
4389
|
+
default:
|
|
4390
|
+
return {
|
|
4391
|
+
comp: "Unknown",
|
|
4392
|
+
name: v.value || "",
|
|
4393
|
+
compData: ((F = v.content) == null ? void 0 : F.originalData) || []
|
|
4394
|
+
};
|
|
4395
|
+
}
|
|
4396
|
+
}), me = (u) => {
|
|
4397
|
+
if (!u) return [];
|
|
4398
|
+
const v = [];
|
|
4399
|
+
return u.rowContents && v.push({
|
|
4400
|
+
key: "formContent",
|
|
4401
|
+
contents: u.rowContents
|
|
4402
|
+
}), u.buttonValue && v.push({
|
|
4403
|
+
key: "formButton",
|
|
4404
|
+
contents: u.buttonValue
|
|
4405
|
+
}), typeof u.isEnableWrap < "u" && v.push({
|
|
4406
|
+
key: "enableWrap",
|
|
4407
|
+
contents: u.isEnableWrap
|
|
4408
|
+
}), v;
|
|
4409
|
+
}, re = (u) => [], oe = () => {
|
|
4410
|
+
if (O.value >= 0 && O.value < t.value.length) {
|
|
4411
|
+
const u = f(O.value);
|
|
4412
|
+
ne.value.set(u, l(ie.value)), t.value[O.value].children = $(ie.value), console.log("保存后的数据", $(ie.value));
|
|
4413
|
+
}
|
|
4414
|
+
Y.value = !1, O.value = -1, X.value = null, G();
|
|
4415
|
+
}, i = () => {
|
|
4416
|
+
X.value && fe.setItemData(l(X.value)), Y.value = !1, O.value = -1, X.value = null;
|
|
4417
|
+
}, I = () => {
|
|
4418
|
+
Y.value && i();
|
|
4419
|
+
}, $ = (u) => {
|
|
4420
|
+
if (!Array.isArray(u))
|
|
4421
|
+
throw new Error("sourceData must be an array");
|
|
4422
|
+
return u.map((v, F) => {
|
|
4423
|
+
if (!v || typeof v != "object")
|
|
4424
|
+
return v;
|
|
4425
|
+
const { comp: H, name: ce, compData: M } = v;
|
|
4426
|
+
switch (H) {
|
|
4427
|
+
case "Form":
|
|
4428
|
+
return {
|
|
4429
|
+
type: "form",
|
|
4430
|
+
content: k(M || []),
|
|
4431
|
+
value: "表单"
|
|
4432
|
+
};
|
|
4433
|
+
case "Table":
|
|
4434
|
+
return {
|
|
4435
|
+
type: "table",
|
|
4436
|
+
content: le(M || []),
|
|
4437
|
+
value: "表格"
|
|
4438
|
+
};
|
|
4439
|
+
default:
|
|
4440
|
+
return {
|
|
4441
|
+
type: "xxx",
|
|
4442
|
+
content: K(M || []),
|
|
4443
|
+
value: ""
|
|
4444
|
+
};
|
|
4445
|
+
}
|
|
4446
|
+
});
|
|
4447
|
+
}, k = (u) => {
|
|
4448
|
+
const v = {
|
|
4449
|
+
formRules: {},
|
|
4450
|
+
rowContents: [],
|
|
4451
|
+
buttonValue: [],
|
|
4452
|
+
rowValues: [],
|
|
4453
|
+
isEnableWrap: !0,
|
|
4454
|
+
isRowFlex: !0,
|
|
4455
|
+
isButtonRow: !0,
|
|
4456
|
+
isEdit: !0,
|
|
4457
|
+
isStartJustify: !0
|
|
4458
|
+
}, F = {
|
|
4459
|
+
formContent: "rowContents",
|
|
4460
|
+
enableWrap: "isEnableWrap",
|
|
4461
|
+
formButton: "buttonValue"
|
|
4462
|
+
};
|
|
4463
|
+
return u.forEach((H, ce) => {
|
|
4464
|
+
if (!H || typeof H != "object") {
|
|
4465
|
+
console.warn(`Invalid config at index ${ce}:`, H);
|
|
4466
|
+
return;
|
|
4467
|
+
}
|
|
4468
|
+
const { key: M, contents: j } = H, E = F[M];
|
|
4469
|
+
if (!E) {
|
|
4470
|
+
console.warn(`Unknown Form config key: ${M}`);
|
|
4471
|
+
return;
|
|
4472
|
+
}
|
|
4473
|
+
M === "enableWrap" ? v[E] = !!j : v[E] = Array.isArray(j) ? j : [];
|
|
4474
|
+
}), v;
|
|
4475
|
+
}, le = (u) => {
|
|
4476
|
+
const v = {
|
|
4477
|
+
columns: [],
|
|
4478
|
+
tableData: [],
|
|
4479
|
+
extraButton: [],
|
|
4480
|
+
rowButton: [],
|
|
4481
|
+
currentPage: 0,
|
|
4482
|
+
total: 0,
|
|
4483
|
+
pageSize: 0,
|
|
4484
|
+
isShowPagination: !0,
|
|
4485
|
+
isShowEdit: !0,
|
|
4486
|
+
isMoveColumn: !0,
|
|
4487
|
+
isShowDelete: !0
|
|
4488
|
+
}, F = {
|
|
4489
|
+
header: "columns",
|
|
4490
|
+
tableContents: "tableData"
|
|
4491
|
+
};
|
|
4492
|
+
return u.forEach((H, ce) => {
|
|
4493
|
+
if (!H || typeof H != "object") {
|
|
4494
|
+
console.warn(`Invalid config at index ${ce}:`, H);
|
|
4495
|
+
return;
|
|
4496
|
+
}
|
|
4497
|
+
const { key: M, contents: j } = H, E = F[M];
|
|
4498
|
+
if (!E) {
|
|
4499
|
+
console.warn(`Unknown Table config key: ${M}`);
|
|
4500
|
+
return;
|
|
4501
|
+
}
|
|
4502
|
+
v[E] = Array.isArray(j) ? j : [];
|
|
4503
|
+
}), v;
|
|
4504
|
+
}, K = (u) => (console.log("Default conversion logic - to be implemented"), {
|
|
4505
|
+
originalData: u,
|
|
4506
|
+
processed: !1,
|
|
4507
|
+
componentType: "unknown"
|
|
4508
|
+
}), G = () => {
|
|
4509
|
+
const u = [
|
|
4510
|
+
{
|
|
4511
|
+
key: "stepList",
|
|
4512
|
+
contents: t.value
|
|
4513
|
+
}
|
|
4514
|
+
];
|
|
4515
|
+
a("change", u);
|
|
4516
|
+
};
|
|
4517
|
+
return Ve(
|
|
4518
|
+
() => s.itemContents,
|
|
4519
|
+
(u) => {
|
|
4520
|
+
if (u && u.length > 0) {
|
|
4521
|
+
const v = u.find((F) => F.key === "stepList");
|
|
4522
|
+
v && v.contents && (t.value = v.contents.map((F) => ({
|
|
4523
|
+
title: F.title || "",
|
|
4524
|
+
value: F.value || F.title || "",
|
|
4525
|
+
label: F.label || F.title || "",
|
|
4526
|
+
children: F.children || [],
|
|
4527
|
+
id: F.id || p()
|
|
4528
|
+
})));
|
|
4529
|
+
}
|
|
4530
|
+
},
|
|
4531
|
+
{ immediate: !0, deep: !0 }
|
|
4532
|
+
), (u, v) => {
|
|
4533
|
+
const F = Te("svg-icon"), H = Te("el-input"), ce = Te("el-form-item"), M = Te("el-form");
|
|
4534
|
+
return te(), ge("div", null, [
|
|
4535
|
+
T("div", vo, [
|
|
4536
|
+
v[6] || (v[6] = T("h4", null, "标签页管理", -1)),
|
|
4537
|
+
T("button", { onClick: ee }, [
|
|
4538
|
+
se(F, {
|
|
4539
|
+
name: "Plus",
|
|
4540
|
+
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
4541
|
+
}),
|
|
4542
|
+
v[5] || (v[5] = $e(" 新增标签页 "))
|
|
4543
|
+
])
|
|
4544
|
+
]),
|
|
4545
|
+
T("div", mo, [
|
|
4546
|
+
(te(!0), ge(Se, null, Pe(t.value, (j, E) => (te(), ge("div", {
|
|
4547
|
+
class: "tab-item",
|
|
4548
|
+
key: E
|
|
4549
|
+
}, [
|
|
4550
|
+
T("span", yo, we(j.title), 1),
|
|
4551
|
+
T("div", bo, [
|
|
4552
|
+
T("button", {
|
|
4553
|
+
onClick: (w) => D(E)
|
|
4554
|
+
}, "修改标题", 8, go),
|
|
4555
|
+
T("button", {
|
|
4556
|
+
onClick: (w) => b(E)
|
|
4557
|
+
}, "布局调整", 8, ko),
|
|
4558
|
+
T("button", {
|
|
4559
|
+
onClick: (w) => x(E)
|
|
4560
|
+
}, "删除", 8, _o)
|
|
4561
|
+
])
|
|
4562
|
+
]))), 128))
|
|
4563
|
+
]),
|
|
4564
|
+
se(Ge, {
|
|
4565
|
+
modelValue: R.value,
|
|
4566
|
+
"onUpdate:modelValue": v[2] || (v[2] = (j) => R.value = j),
|
|
4567
|
+
title: z.value,
|
|
4568
|
+
onBeforeDestroy: v[3] || (v[3] = (j) => R.value = !1)
|
|
4569
|
+
}, {
|
|
4570
|
+
footer: ye(() => [
|
|
4571
|
+
T("button", {
|
|
4572
|
+
onClick: v[1] || (v[1] = (j) => R.value = !1)
|
|
4573
|
+
}, "取消"),
|
|
4574
|
+
T("button", {
|
|
4575
|
+
type: "primary",
|
|
4576
|
+
onClick: de
|
|
4577
|
+
}, "确定")
|
|
4578
|
+
]),
|
|
4579
|
+
default: ye(() => [
|
|
4580
|
+
se(M, {
|
|
4581
|
+
model: _.value,
|
|
4582
|
+
"label-width": "80px"
|
|
4583
|
+
}, {
|
|
4584
|
+
default: ye(() => [
|
|
4585
|
+
se(ce, {
|
|
4586
|
+
label: "标签名称",
|
|
4587
|
+
required: ""
|
|
4588
|
+
}, {
|
|
4589
|
+
default: ye(() => [
|
|
4590
|
+
se(H, {
|
|
4591
|
+
modelValue: _.value.title,
|
|
4592
|
+
"onUpdate:modelValue": v[0] || (v[0] = (j) => _.value.title = j),
|
|
4593
|
+
placeholder: "请输入标签页名称"
|
|
4594
|
+
}, null, 8, ["modelValue"])
|
|
4595
|
+
]),
|
|
4596
|
+
_: 1
|
|
4597
|
+
})
|
|
4598
|
+
]),
|
|
4599
|
+
_: 1
|
|
4600
|
+
}, 8, ["model"])
|
|
4601
|
+
]),
|
|
4602
|
+
_: 1
|
|
4603
|
+
}, 8, ["modelValue", "title"]),
|
|
4604
|
+
se(Ge, {
|
|
4605
|
+
modelValue: Y.value,
|
|
4606
|
+
"onUpdate:modelValue": v[4] || (v[4] = (j) => Y.value = j),
|
|
4607
|
+
title: "布局调整",
|
|
4608
|
+
fullScreen: "",
|
|
4609
|
+
onBeforeDestroy: I
|
|
4610
|
+
}, {
|
|
4611
|
+
footer: ye(() => [
|
|
4612
|
+
T("button", { onClick: i }, "取消"),
|
|
4613
|
+
T("button", { onClick: oe }, "确定")
|
|
4614
|
+
]),
|
|
4615
|
+
default: ye(() => [
|
|
4616
|
+
T("div", Co, [
|
|
4617
|
+
T("div", wo, [
|
|
4618
|
+
se(Xn),
|
|
4619
|
+
T("div", Do, [
|
|
4620
|
+
v[8] || (v[8] = T("h5", null, "添加已有组件", -1)),
|
|
4621
|
+
T("div", Ao, [
|
|
4622
|
+
(te(!0), ge(Se, null, Pe(c.value, (j) => (te(), ge("div", {
|
|
4623
|
+
key: j.id,
|
|
4624
|
+
class: "component-item",
|
|
4625
|
+
onClick: (E) => A(j)
|
|
4626
|
+
}, [
|
|
4627
|
+
T("div", xo, [
|
|
4628
|
+
T("span", Eo, we(d(j.comp)), 1),
|
|
4629
|
+
T("span", $o, we(j.name), 1)
|
|
4630
|
+
]),
|
|
4631
|
+
v[7] || (v[7] = T("button", { class: "add-btn" }, "添加", -1))
|
|
4632
|
+
], 8, Io))), 128))
|
|
4633
|
+
])
|
|
4634
|
+
])
|
|
4635
|
+
]),
|
|
4636
|
+
(te(), ge("div", {
|
|
4637
|
+
class: "model-show",
|
|
4638
|
+
key: u.innerWidth
|
|
4639
|
+
}, [
|
|
4640
|
+
se(ho)
|
|
4641
|
+
])),
|
|
4642
|
+
T("div", Bo, [
|
|
4643
|
+
se(co)
|
|
4644
|
+
])
|
|
4645
|
+
])
|
|
4646
|
+
]),
|
|
4647
|
+
_: 1
|
|
4648
|
+
}, 8, ["modelValue"])
|
|
4649
|
+
]);
|
|
4650
|
+
};
|
|
4651
|
+
}
|
|
4652
|
+
}, So = /* @__PURE__ */ Ue(To, [["__scopeId", "data-v-151936e8"]]), Oo = Z([
|
|
4653
|
+
{
|
|
4654
|
+
name: "表格",
|
|
4655
|
+
type: "table",
|
|
4656
|
+
comp: "Table",
|
|
4657
|
+
icon: "Table"
|
|
4658
|
+
},
|
|
4659
|
+
{
|
|
4660
|
+
name: "表单",
|
|
4661
|
+
type: "form",
|
|
4662
|
+
comp: "Form",
|
|
4663
|
+
icon: "Form"
|
|
4664
|
+
},
|
|
4665
|
+
{
|
|
4666
|
+
name: "折叠",
|
|
4667
|
+
type: "fold",
|
|
4668
|
+
comp: "Fold",
|
|
4669
|
+
icon: "Fold"
|
|
4670
|
+
},
|
|
4671
|
+
{
|
|
4672
|
+
name: "头像",
|
|
4673
|
+
type: "avatar",
|
|
4674
|
+
comp: "AvatarUpload",
|
|
4675
|
+
icon: "Avatar"
|
|
4676
|
+
},
|
|
4677
|
+
{
|
|
4678
|
+
name: "签名",
|
|
4679
|
+
type: "signature",
|
|
4680
|
+
comp: "Signature",
|
|
4681
|
+
icon: "Signature"
|
|
4682
|
+
},
|
|
4683
|
+
{
|
|
4684
|
+
name: "步骤条",
|
|
4685
|
+
type: "step",
|
|
4686
|
+
comp: "Step",
|
|
4687
|
+
icon: "Step"
|
|
4688
|
+
},
|
|
4689
|
+
{
|
|
4690
|
+
name: "时间线",
|
|
4691
|
+
type: "timeLine",
|
|
4692
|
+
comp: "TimeLine",
|
|
4693
|
+
icon: "TimeLine"
|
|
4694
|
+
},
|
|
4695
|
+
{
|
|
4696
|
+
name: "标签页",
|
|
4697
|
+
type: "tabs",
|
|
4698
|
+
comp: "Tabs",
|
|
4699
|
+
icon: "Tabs"
|
|
4700
|
+
}
|
|
4701
|
+
]), Fo = {
|
|
4702
|
+
TABLE: Ya,
|
|
4703
|
+
FORM: Pa,
|
|
4704
|
+
TABLEOPERATE: Ei,
|
|
4705
|
+
FORMOPERATE: Ra,
|
|
4706
|
+
FOLD: nn,
|
|
4707
|
+
CALCULATOR: dn,
|
|
4708
|
+
METHODBUTTON: An,
|
|
4709
|
+
AVATARUPLOAD: ks,
|
|
4710
|
+
SIGNATURE: gs,
|
|
4711
|
+
FORMTOP: Pa,
|
|
4712
|
+
STEP: Rn,
|
|
4713
|
+
STEPOPERATE: qi,
|
|
4714
|
+
TIMELINE: Wn,
|
|
4715
|
+
TIMELINEOPERATE: ln,
|
|
4716
|
+
FORMTOPOPERATE: Ra,
|
|
4717
|
+
SIGNATUREOPERATE: Fn,
|
|
4718
|
+
AVATARUPLOADOPERATE: En,
|
|
4719
|
+
TABS: Jn,
|
|
4720
|
+
TABSOPERATE: So
|
|
4721
|
+
// 添加其他组件...
|
|
4722
|
+
};
|
|
4723
|
+
function ta(r) {
|
|
4724
|
+
return Fo[r == null ? void 0 : r.toUpperCase()] || null;
|
|
4725
|
+
}
|
|
4726
|
+
export {
|
|
4727
|
+
Jo as a,
|
|
4728
|
+
na as b,
|
|
4729
|
+
sa as c,
|
|
4730
|
+
ta as g,
|
|
4731
|
+
Cn as o,
|
|
4732
|
+
Oo as s,
|
|
4733
|
+
ws as u
|
|
4734
|
+
};
|