ss-component-new 1.1.694 → 1.1.697
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-CLO83-EB.cjs → array-CdPv8cht.cjs} +1 -1
- package/dist/{array-CnNqzjsa.js → array-Tj9n22LW.js} +1 -1
- package/dist/{index-BMiW54Gf.cjs → index-2p69g4HY.cjs} +6 -6
- package/dist/{index-CO3hiJWF.cjs → index-2ulWVy3d.cjs} +1 -1
- package/dist/{index-f5HYi-wc.cjs → index-B-htrQ8o.cjs} +1 -1
- package/dist/{index-B88z5SyL.cjs → index-B3UVui7c.cjs} +1 -1
- package/dist/{index-3okZjs5B.js → index-B8ibXIR2.js} +1 -1
- package/dist/{index-BQbrejA1.js → index-BCZ59Y4K.js} +0 -1
- package/dist/{index-DLKAgEkI.cjs → index-BK_gZgTv.cjs} +1 -1
- package/dist/{index-BBSPbEbw.cjs → index-BKlz7cS9.cjs} +1 -1
- package/dist/{index-DzT_yWYR.cjs → index-BZkH2AYa.cjs} +1 -1
- package/dist/{index-DiasHZKs.js → index-B_Flzztl.js} +4 -4
- package/dist/{index-BaenyMCV.cjs → index-BeHWA6-5.cjs} +1 -1
- package/dist/{index-l1qJOF-L.cjs → index-Bpb5Dn-j.cjs} +1 -1
- package/dist/{index-kVoQP8UP.cjs → index-BrQVl4Zd.cjs} +1 -1
- package/dist/{index-BHMtvveZ.js → index-BufGU2BU.js} +1 -1
- package/dist/{index-3KbnXDaT.cjs → index-C5KU7P4g.cjs} +1 -1
- package/dist/{index-Cxf8S0LH.js → index-C6F_Qv9_.js} +5 -5
- package/dist/index-C97ZQO8T.cjs +1 -0
- package/dist/{index-CoCtXags.js → index-COhyHXFv.js} +2 -2
- package/dist/{index-Cr0ZkdxV.js → index-CQTl5wS0.js} +15 -15
- package/dist/{index-DNcULVa1.js → index-CRtV5WuL.js} +4 -4
- package/dist/{index-YTgiRG5n.cjs → index-CThTE4nC.cjs} +1 -1
- package/dist/{index-ChSY5Uq6.js → index-CUeBezD8.js} +4 -4
- package/dist/{index-CaRTRULq.cjs → index-CX0lapAz.cjs} +13 -13
- package/dist/{index-RFdUIF3u.cjs → index-CYr6JfTw.cjs} +1 -1
- package/dist/{index-Dbzxle58.js → index-CatyTybI.js} +1 -1
- package/dist/{index-Btw1E8X9.js → index-Cb32xjFZ.js} +4 -4
- package/dist/index-CfiHbfhD.js +4738 -0
- package/dist/{index-A-taUOit.js → index-ChtHQFmB.js} +1 -1
- package/dist/{index-DZUUfAXM.js → index-CjWYNXJT.js} +4 -4
- package/dist/{index-Rg7QR0ET.js → index-CjYmcl8U.js} +5239 -5255
- package/dist/{index-x_O_YF4W.js → index-CkSPb2p9.js} +3 -3
- package/dist/{index-DU_gpFDl.js → index-Cq4go058.js} +6 -6
- package/dist/{index-BoR3liun.js → index-Ct0CmWjo.js} +1 -1
- package/dist/{index-C4UXIaf0.cjs → index-DD6f1KgD.cjs} +1 -1
- package/dist/{index-Cqa_rbSi.js → index-DGiFskaY.js} +6 -6
- package/dist/{index-DbUTgcpC.cjs → index-DMVFhY2W.cjs} +1 -1
- package/dist/{index-Cgfr_w1z.cjs → index-DTS5HoBL.cjs} +1 -1
- package/dist/{index-BxUQoC9Z.js → index-DUa3ddEk.js} +5891 -5821
- package/dist/{index-BcCP1oal.cjs → index-DZfla_UC.cjs} +1 -1
- package/dist/{index-D6Qn8t_Y.cjs → index-Db34Sg1u.cjs} +42 -42
- package/dist/{index-BOJk-Uby.cjs → index-DgPw8IAq.cjs} +1 -1
- package/dist/{index-D1Z0idRA.cjs → index-Dwq8e9ki.cjs} +1 -1
- package/dist/{index-BgFmbRIH.cjs → index-F0K1-Asd.cjs} +1 -1
- package/dist/{index-BGnqSXsM.cjs → index-HNS_Afdo.cjs} +1 -1
- package/dist/{index-CzRqJqyA.js → index-ILPebZ25.js} +7 -7
- package/dist/{index-D_aaFuMD.js → index-LjCKAD2x.js} +9 -9
- package/dist/{index-CoNDs5B_.js → index-M3N-cMRq.js} +6 -6
- package/dist/{index-BY6icLE5.js → index-OoPrBaU7.js} +3 -3
- package/dist/{index-Cmhvuxao.cjs → index-YnHPocII.cjs} +1 -1
- package/dist/{index-BnRcpT_T.js → index-gcJ4pdsy.js} +4 -4
- package/dist/{index-BfpHmqEV.cjs → index-kC3tMDYl.cjs} +1 -1
- package/dist/{index-BByN6sng.js → index-wNYNwwJM.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-DF9XGIz3.cjs → index.vue_vue_type_script_setup_true_lang-CI5FfMjW.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-LHENnk2N.js → index.vue_vue_type_script_setup_true_lang-DC9cV5xc.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CwuI0Ee7.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BQgfwA0P.js} +977 -979
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C1DluSxa.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DS3sCjjh.cjs} +37 -37
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-BRe0ZOKp.js → index.vue_vue_type_style_index_0_scoped_8606206c_lang-BBC89yNZ.js} +17 -17
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-D2FKUBBW.cjs → index.vue_vue_type_style_index_0_scoped_8606206c_lang-BWo8YVs4.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CJTS3KF1.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-C62GAj1y.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DTtvCDfz.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CEVyTtSC.js} +9 -9
- package/dist/{login-CRSg2R6u.js → login-CA5LBy6E.js} +2 -2
- package/dist/{login-BEyTR2B-.cjs → login-CViEGqhb.cjs} +1 -1
- package/dist/{main-KZ_ESpJb.js → main-CUVDwLar.js} +5 -5
- package/dist/{main-DYdqysWL.cjs → main-CuPyTaKx.cjs} +1 -1
- package/dist/{menu-Clnb_mar.cjs → menu-CfFgYmpV.cjs} +1 -1
- package/dist/{menu-C0-tjFtV.js → menu-DznNubRA.js} +1 -1
- package/dist/{modelComp-w6fn45mn.cjs → modelComp-BR-oztFR.cjs} +1 -1
- package/dist/{modelComp-ulXkhiT8.js → modelComp-BuMlc62t.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +3 -3
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-TwH55MhO.js → threeModel-CMj4sied.js} +3 -3
- package/dist/{threeModel-D4XEOs2e.cjs → threeModel-Dkxksn8L.cjs} +1 -1
- package/package.json +2 -2
- package/dist/index-CqHNjQcE.js +0 -4717
- package/dist/index-kfJONCM6.cjs +0 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -0,0 +1,4738 @@
|
|
|
1
|
+
import { b as Ya, a as Za, t as es, f as ls, g as as, c as ja, i as Ba, s as ss } from "./index-DUa3ddEk.js";
|
|
2
|
+
import { ref as G, watch as Xe, createElementBlock as _e, openBlock as le, createVNode as Z, createBlock as Ve, createCommentVNode as Qe, withCtx as fe, resolveComponent as Re, Fragment as Ue, renderList as Ne, createElementVNode as x, toDisplayString as we, createTextVNode as $e, defineComponent as Al, reactive as _a, resolveDynamicComponent as ua, unref as xl, computed as Ca, renderSlot as ca, createSlots as is, mergeProps as os, normalizeStyle as ns, withModifiers as na } from "vue";
|
|
3
|
+
import { p as al, s as ol, c as l, u as Ka, f as us } from "./menu-DznNubRA.js";
|
|
4
|
+
import { e as el, f as Na, s as ll, h as Ma, a as Fa, i as rs, j as cs, b as ts } from "./index-CjYmcl8U.js";
|
|
5
|
+
import { bp as ds, bq as ps, a as ta, E as tl, g as wl, b as fs, bl as ya, bm as La, bk as Oa } from "./index-BCZ59Y4K.js";
|
|
6
|
+
import { F as Va, z as vs, I as ba, A as hs, B as qe, C as Fl, D as bl, E as Tl, G as ma, H as ms, g as gl, J as ys, K as bs, L as gs, M as ks, N as _s, O as Ra, P as Cs, Q as ws, R as Ds } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BQgfwA0P.js";
|
|
7
|
+
import { u as wa } from "./login-CA5LBy6E.js";
|
|
8
|
+
import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
import { E as Cl } from "./index-COhyHXFv.js";
|
|
10
|
+
import { u as Da } from "./modelComp-BuMlc62t.js";
|
|
11
|
+
import { s as Is, a as xs } from "./index-CkSPb2p9.js";
|
|
12
|
+
import Ts from "./index-CZtXRS3l.js";
|
|
13
|
+
var As = "[object Boolean]";
|
|
14
|
+
function Wa(r) {
|
|
15
|
+
return r === !0 || r === !1 || ds(r) && ps(r) == As;
|
|
16
|
+
}
|
|
17
|
+
function Es(r) {
|
|
18
|
+
return r === void 0;
|
|
19
|
+
}
|
|
20
|
+
const Ss = { class: "form-content" }, $s = {
|
|
21
|
+
__name: "index",
|
|
22
|
+
props: {
|
|
23
|
+
formRules: Object,
|
|
24
|
+
itemData: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => []
|
|
27
|
+
},
|
|
28
|
+
childItemData: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default: () => []
|
|
31
|
+
},
|
|
32
|
+
index: Number
|
|
33
|
+
},
|
|
34
|
+
emits: ["change", "contentChange"],
|
|
35
|
+
setup(r, { emit: F }) {
|
|
36
|
+
const h = G(!1), i = G(!1), o = G(""), R = () => {
|
|
37
|
+
h.value = !1, i.value = null, o.value = "";
|
|
38
|
+
}, S = r, w = F, M = G([]), X = G(), B = G(!1), re = G(!1), ae = G([]), Ce = G(), te = Ya(al), ke = Za(al), I = G(!1), A = G(), ve = wa(al), { loginUserInfo: c } = ol(ve), d = G(), f = G(!0), m = (pe, b) => {
|
|
39
|
+
d.value === b ? f.value = !1 : f.value = !0, d.value = b == null ? void 0 : b.changeProp;
|
|
40
|
+
}, ie = async (pe) => {
|
|
41
|
+
var L, s, p, v, k, W, oe, T, u, ee;
|
|
42
|
+
let b = [];
|
|
43
|
+
if ((L = pe == null ? void 0 : pe.toString()) != null && L.includes(".urdf")) {
|
|
44
|
+
o.value = pe, h.value = !0;
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if ((s = pe == null ? void 0 : pe.toString()) != null && s.includes(".stl") || (p = pe == null ? void 0 : pe.toString()) != null && p.includes(".STL") || (v = pe == null ? void 0 : pe.toString()) != null && v.includes(".obj") || (k = pe == null ? void 0 : pe.toString()) != null && k.includes(".mtl")) {
|
|
48
|
+
let O, ne = [], se = {};
|
|
49
|
+
if (Array.isArray(pe) ? O = pe : O = pe == null ? void 0 : pe.split(","), O == null || O.forEach((q) => {
|
|
50
|
+
q.includes(".mtl") ? ne.push(q) : se.blob = se.blob ? se.blob + "," + q : q;
|
|
51
|
+
}), (ne == null ? void 0 : ne.length) > 0 && (se.mtlBlobs = ne), (oe = (W = Object.values(se)) == null ? void 0 : W[0]) != null && oe.includes("http:"))
|
|
52
|
+
b.push(se);
|
|
53
|
+
else {
|
|
54
|
+
const q = new Blob([se.blob], {
|
|
55
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
56
|
+
});
|
|
57
|
+
let $ = URL.createObjectURL(q), H = "";
|
|
58
|
+
(T = pe == null ? void 0 : pe.split("/")) == null || T.forEach((_, de) => {
|
|
59
|
+
var Q;
|
|
60
|
+
de === ((Q = pe == null ? void 0 : pe.split("/")) == null ? void 0 : Q.length) - 1 && (H = _);
|
|
61
|
+
}), (u = se.blob) != null && u.includes(".stl") && (H = (H == null ? void 0 : H.replaceAll(">", "")) + ".urdf"), Ce.value = [{
|
|
62
|
+
name: H,
|
|
63
|
+
blobUrl: $
|
|
64
|
+
}], re.value = !0;
|
|
65
|
+
}
|
|
66
|
+
} else {
|
|
67
|
+
const O = await ta.get(pe, {
|
|
68
|
+
responseType: "blob",
|
|
69
|
+
headers: {
|
|
70
|
+
"Content-Type": "application/json"
|
|
71
|
+
}
|
|
72
|
+
}), ne = new Blob([O.data], {
|
|
73
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
74
|
+
});
|
|
75
|
+
let se = URL.createObjectURL(ne), q = "";
|
|
76
|
+
(ee = pe == null ? void 0 : pe.split("/")) == null || ee.forEach(($, H) => {
|
|
77
|
+
var _;
|
|
78
|
+
H === ((_ = pe == null ? void 0 : pe.split("/")) == null ? void 0 : _.length) - 1 && (q = $);
|
|
79
|
+
}), Ce.value = [{
|
|
80
|
+
name: q,
|
|
81
|
+
blobUrl: se
|
|
82
|
+
}], re.value = !0;
|
|
83
|
+
}
|
|
84
|
+
(b == null ? void 0 : b.length) > 0 && ke.setBlobUrls(b);
|
|
85
|
+
}, be = () => {
|
|
86
|
+
re.value = !1;
|
|
87
|
+
}, De = (pe) => {
|
|
88
|
+
var v, k, W, oe;
|
|
89
|
+
const b = (k = (v = l(S.itemData)) == null ? void 0 : v.find((T) => (T == null ? void 0 : T.key) === "formContent")) == null ? void 0 : k.contents, L = l(pe.content);
|
|
90
|
+
let s = {};
|
|
91
|
+
L && ((W = Object.values(L)) == null ? void 0 : W.length) > 0 && ((oe = Object.values(L)) == null || oe.forEach((T, u) => {
|
|
92
|
+
s[b[u].key] = T;
|
|
93
|
+
}));
|
|
94
|
+
const p = {
|
|
95
|
+
content: s,
|
|
96
|
+
index: S == null ? void 0 : S.index,
|
|
97
|
+
buttonName: pe == null ? void 0 : pe.buttonName
|
|
98
|
+
};
|
|
99
|
+
w("change", p);
|
|
100
|
+
}, Fe = async (pe) => {
|
|
101
|
+
var T, u, ee, O, ne, se, q, $, H, _, de, Q;
|
|
102
|
+
if (!pe) return;
|
|
103
|
+
const b = l(S.itemData), L = b == null ? void 0 : b.map((C) => {
|
|
104
|
+
var ce;
|
|
105
|
+
return (C == null ? void 0 : C.key) === "formContent" && ((ce = C.contents) == null || ce.map((g, z) => {
|
|
106
|
+
var K, n, ge, e, a, t, y, D, N, he, U, Y, ue, me, J, P, j;
|
|
107
|
+
return g.type = g != null && g.type ? g.type : (e = (ge = (n = (K = g == null ? void 0 : g.key) == null ? void 0 : K.split("$")) == null ? void 0 : n[1]) == null ? void 0 : ge.split("(")) != null && e[0] ? (t = (a = Va) == null ? void 0 : a.find((V) => {
|
|
108
|
+
var ye, Ie, Oe, Ee;
|
|
109
|
+
return (V == null ? void 0 : V.key) === ((Ee = (Oe = (Ie = (ye = g == null ? void 0 : g.key) == null ? void 0 : ye.split("$")) == null ? void 0 : Ie[1]) == null ? void 0 : Oe.split("(")) == null ? void 0 : Ee[0]);
|
|
110
|
+
})) == null ? void 0 : t.value : "Input", g.options = g != null && g.options ? g.options : ((N = (D = (y = g == null ? void 0 : g.key) == null ? void 0 : y.split("$")) == null ? void 0 : D[1]) == null ? void 0 : N.length) > 0 ? (ue = (Y = ls((U = (he = g == null ? void 0 : g.key) == null ? void 0 : he.split("$")) == null ? void 0 : U[1])) == null ? void 0 : Y.split(",")) == null ? void 0 : ue.map((V) => ({
|
|
111
|
+
label: V,
|
|
112
|
+
value: V
|
|
113
|
+
})) : [], (me = g == null ? void 0 : g.key) != null && me.includes("$") && (g.key = (P = (J = g == null ? void 0 : g.key) == null ? void 0 : J.split("$")) == null ? void 0 : P[0]), g.value = (j = Object.values(pe)) == null ? void 0 : j[z], g;
|
|
114
|
+
})), C;
|
|
115
|
+
});
|
|
116
|
+
let s = l(M).value, p = (u = (T = l(L)) == null ? void 0 : T.find((C) => (C == null ? void 0 : C.key) === "formContent")) == null ? void 0 : u.contents;
|
|
117
|
+
if (s = s == null ? void 0 : s.map((C) => {
|
|
118
|
+
var ce;
|
|
119
|
+
return C.value = (ce = p == null ? void 0 : p.find((g, z) => ((g == null ? void 0 : g.id) ?? z) === (C == null ? void 0 : C.id))) == null ? void 0 : ce.value, C;
|
|
120
|
+
}), !f.value) {
|
|
121
|
+
w("contentChange", {
|
|
122
|
+
contents: L,
|
|
123
|
+
index: S.index
|
|
124
|
+
});
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
let v = "", k = (ne = (O = (ee = l(L)) == null ? void 0 : ee.find((C) => (C == null ? void 0 : C.key) === "formContent")) == null ? void 0 : O.contents) == null ? void 0 : ne.find((C, ce) => {
|
|
128
|
+
var g, z;
|
|
129
|
+
return (C == null ? void 0 : C.label) === d.value || ce.toString() === ((z = (g = d.value) == null ? void 0 : g.split("t")) == null ? void 0 : z[1].toString());
|
|
130
|
+
});
|
|
131
|
+
if (($ = (q = (se = l(L)) == null ? void 0 : se.find((C) => (C == null ? void 0 : C.key) === "formContent")) == null ? void 0 : q.contents) == null || $.forEach((C) => {
|
|
132
|
+
var ce, g, z, K, n;
|
|
133
|
+
v === "" && ((z = (g = (ce = C == null ? void 0 : C.optionUrl) == null ? void 0 : ce.groupSelect) == null ? void 0 : g[1]) != null && z.includes("[")) && (v = (n = (K = C == null ? void 0 : C.optionUrl) == null ? void 0 : K.groupSelect) == null ? void 0 : n[1]);
|
|
134
|
+
}), (H = k == null ? void 0 : k.optionUrl) != null && H.menuSelect && f.value) {
|
|
135
|
+
let C = await as(k), ce;
|
|
136
|
+
if (C == null || C.forEach((g) => {
|
|
137
|
+
var z, K, n, ge, e, a, t, y, D, N;
|
|
138
|
+
v === ((K = (z = k == null ? void 0 : k.optionUrl) == null ? void 0 : z.groupSelect) == null ? void 0 : K[1]) && ((e = (ge = (n = k == null ? void 0 : k.optionUrl) == null ? void 0 : n.groupSelect) == null ? void 0 : ge[1]) != null && e.includes("[")) && ((N = l(g)) == null ? void 0 : N[(D = (y = (t = (a = k == null ? void 0 : k.optionUrl) == null ? void 0 : a.groupSelect) == null ? void 0 : t[1]) == null ? void 0 : y.replaceAll("[", "")) == null ? void 0 : D.replaceAll("]", "")]) === (k == null ? void 0 : k.value) && (ce = g);
|
|
139
|
+
}), ce) {
|
|
140
|
+
let g = l(s);
|
|
141
|
+
g = g == null ? void 0 : g.map((K) => {
|
|
142
|
+
var n, ge, e, a, t, y, D, N, he, U, Y;
|
|
143
|
+
return (ce != null && ce[K == null ? void 0 : K.label] || ce != null && ce[(a = (e = (ge = (n = K == null ? void 0 : K.optionUrl) == null ? void 0 : n.groupSelect) == null ? void 0 : ge[1]) == null ? void 0 : e.replaceAll("[", "")) == null ? void 0 : a.replaceAll("]", "")]) && ((D = (y = (t = K == null ? void 0 : K.optionUrl) == null ? void 0 : t.groupSelect) == null ? void 0 : y[1]) != null && D.includes("[")) && (K.value = (ce == null ? void 0 : ce[K == null ? void 0 : K.label]) || (ce == null ? void 0 : ce[(Y = (U = (he = (N = K == null ? void 0 : K.optionUrl) == null ? void 0 : N.groupSelect) == null ? void 0 : he[1]) == null ? void 0 : U.replaceAll("[", "")) == null ? void 0 : Y.replaceAll("]", "")])), K;
|
|
144
|
+
}), g = g == null ? void 0 : g.map((K) => {
|
|
145
|
+
var n, ge, e;
|
|
146
|
+
return (n = K == null ? void 0 : K.optionUrl) != null && n.oldMenuSelect && (K.optionUrl.menuSelect = (e = (ge = l(K)) == null ? void 0 : ge.optionUrl) == null ? void 0 : e.oldMenuSelect), K;
|
|
147
|
+
}), M.value = g;
|
|
148
|
+
let z = l(g);
|
|
149
|
+
z = z == null ? void 0 : z.map((K) => {
|
|
150
|
+
var n, ge, e, a, t, y;
|
|
151
|
+
return (ge = (n = K == null ? void 0 : K.optionUrl) == null ? void 0 : n.menuSelect) != null && ge.some((D) => D == null ? void 0 : D.includes("[")) && (K.optionUrl.oldMenuSelect = (a = (e = l(K)) == null ? void 0 : e.optionUrl) == null ? void 0 : a.menuSelect, K.optionUrl.menuSelect = (y = (t = K == null ? void 0 : K.optionUrl) == null ? void 0 : t.menuSelect) == null ? void 0 : y.map((D) => {
|
|
152
|
+
var N, he, U, Y;
|
|
153
|
+
if (D != null && D.includes("[")) {
|
|
154
|
+
let ue = (he = (N = D == null ? void 0 : D.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : N.split(":")) == null ? void 0 : he[1];
|
|
155
|
+
D = (Y = (U = l(g)) == null ? void 0 : U.find((me) => (me == null ? void 0 : me.label) === ue)) == null ? void 0 : Y.value;
|
|
156
|
+
}
|
|
157
|
+
return D;
|
|
158
|
+
})), K;
|
|
159
|
+
}), M.value = z;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
f.value = !1, w("contentChange", {
|
|
163
|
+
contents: L,
|
|
164
|
+
index: S.index
|
|
165
|
+
});
|
|
166
|
+
let W = [], oe = [];
|
|
167
|
+
if ((de = l((_ = L == null ? void 0 : L.find((C) => (C == null ? void 0 : C.key) === "formContent")) == null ? void 0 : _.contents)) == null || de.forEach((C) => {
|
|
168
|
+
var ce;
|
|
169
|
+
Array.isArray(C == null ? void 0 : C.value) && ((ce = C == null ? void 0 : C.value) != null && ce.find((g) => {
|
|
170
|
+
var z;
|
|
171
|
+
return (z = g == null ? void 0 : g.url) == null ? void 0 : z.includes(".obj");
|
|
172
|
+
})) && (oe = C == null ? void 0 : C.value);
|
|
173
|
+
}), (oe == null ? void 0 : oe.length) > 0) {
|
|
174
|
+
const C = (Q = l(oe)) == null ? void 0 : Q.filter((ce) => {
|
|
175
|
+
var g;
|
|
176
|
+
return (g = ce == null ? void 0 : ce.url) == null ? void 0 : g.includes(".obj");
|
|
177
|
+
});
|
|
178
|
+
C == null || C.forEach((ce) => {
|
|
179
|
+
var z, K, n, ge;
|
|
180
|
+
const g = (z = oe == null ? void 0 : oe.filter((e) => {
|
|
181
|
+
var a;
|
|
182
|
+
return (e == null ? void 0 : e.name) === (ce == null ? void 0 : ce.name) && ((a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".mtl"));
|
|
183
|
+
})) == null ? void 0 : z.map((e) => e == null ? void 0 : e.url);
|
|
184
|
+
W.push({
|
|
185
|
+
objUrl: ce == null ? void 0 : ce.url,
|
|
186
|
+
mtlUrls: ((K = oe == null ? void 0 : oe.filter((e) => {
|
|
187
|
+
var a;
|
|
188
|
+
return (e == null ? void 0 : e.name) === (ce == null ? void 0 : ce.name) && ((a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".mtl"));
|
|
189
|
+
})) == null ? void 0 : K.length) === 1 ? (ge = (n = oe == null ? void 0 : oe.filter((e) => {
|
|
190
|
+
var a;
|
|
191
|
+
return (e == null ? void 0 : e.name) === (ce == null ? void 0 : ce.name) && ((a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".mtl"));
|
|
192
|
+
})) == null ? void 0 : n[0]) == null ? void 0 : ge.url : g
|
|
193
|
+
});
|
|
194
|
+
}), ke.setObjUrl(W);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
return Xe(
|
|
198
|
+
() => S.itemData,
|
|
199
|
+
async () => {
|
|
200
|
+
var v, k, W, oe, T, u, ee, O, ne, se, q, $, H, _, de;
|
|
201
|
+
const pe = (v = S.itemData) == null ? void 0 : v.find((Q) => (Q == null ? void 0 : Q.key) === "formContent"), b = (k = l(S.itemData)) == null ? void 0 : k.find((Q) => (Q == null ? void 0 : Q.key) === "formButton"), L = (W = l(S.itemData)) == null ? void 0 : W.find((Q) => (Q == null ? void 0 : Q.key) === "formFlex"), s = (oe = l(S.itemData)) == null ? void 0 : oe.find((Q) => (Q == null ? void 0 : Q.key) === "formWrap"), p = (T = l(S.itemData)) == null ? void 0 : T.find((Q) => (Q == null ? void 0 : Q.key) === "enableWrap");
|
|
202
|
+
if ((s == null ? void 0 : s.contents) === "纵向" ? B.value = !1 : B.value = !0, I.value = (p == null ? void 0 : p.contents) === void 0 ? !1 : p == null ? void 0 : p.contents, A.value = typeof (L == null ? void 0 : L.contents) != "boolean" ? !(!(L != null && L.contents) === "" || ((u = L == null ? void 0 : L.contents) == null ? void 0 : u.toUpperCase()) === "VERTICAL") : L == null ? void 0 : L.contents, ((ee = pe == null ? void 0 : pe.contents) == null ? void 0 : ee.length) > 0 && Array.isArray(pe == null ? void 0 : pe.contents)) {
|
|
203
|
+
const Q = await ((O = pe == null ? void 0 : pe.contents) == null ? void 0 : O.map(async (n, ge) => {
|
|
204
|
+
var U, Y, ue, me, J, P, j, V, ye, Ie, Oe, Ee, E, Se, xe, Ge;
|
|
205
|
+
let e = (n == null ? void 0 : n.label) ?? (n == null ? void 0 : n.key) ?? "", a = (n == null ? void 0 : n.type) ?? "", t = (n == null ? void 0 : n.options) ?? [];
|
|
206
|
+
if ((U = n == null ? void 0 : n.key) != null && U.includes("$") && (e = (Y = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : Y[0], ((me = (ue = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : ue[1]) == null ? void 0 : me.length) > 0)) {
|
|
207
|
+
const [Ye, Je] = (P = (J = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : J[1]) == null ? void 0 : P.split(/[()]/);
|
|
208
|
+
a = ((j = Va.find((He) => (He == null ? void 0 : He.key) === Ye)) == null ? void 0 : j.value) ?? "", ((V = Je == null ? void 0 : Je.split(",")) == null ? void 0 : V.length) > 0 && (t = (ye = Je == null ? void 0 : Je.split(",")) == null ? void 0 : ye.map((He) => ({
|
|
209
|
+
label: He,
|
|
210
|
+
value: He
|
|
211
|
+
})));
|
|
212
|
+
}
|
|
213
|
+
let y = [];
|
|
214
|
+
n != null && n.contents && !Array.isArray(n == null ? void 0 : n.contents) && (y = (Oe = (Ie = n == null ? void 0 : n.contents) == null ? void 0 : Ie.split(",")) == null ? void 0 : Oe.map((Ye) => ({
|
|
215
|
+
label: Ye,
|
|
216
|
+
value: Ye
|
|
217
|
+
})));
|
|
218
|
+
let D = await vs((Ee = l(n)) == null ? void 0 : Ee.optionUrl), N = D !== void 0 && !(n != null && n.value) ? D : n != null && n.originalContent && (n == null ? void 0 : n.originalContent) !== "" ? n.originalContent : n != null && n.value ? n.value : (t == null ? void 0 : t.length) > 0 ? (E = t == null ? void 0 : t[0]) == null ? void 0 : E.value : (n == null ? void 0 : n.value) ?? "";
|
|
219
|
+
return typeof N == "string" && (N != null && N.includes("loginUser")) && (N = ((Se = c.value) == null ? void 0 : Se.姓名) ?? ((xe = c.value) == null ? void 0 : xe.userName) ?? ((Ge = c.value) == null ? void 0 : Ge.account)), {
|
|
220
|
+
label: e ?? "",
|
|
221
|
+
name: "t" + ge,
|
|
222
|
+
type: D !== void 0 || a === "" ? "Input" : a,
|
|
223
|
+
value: n != null && n.isNewDate && N === "" ? /* @__PURE__ */ new Date() : N,
|
|
224
|
+
id: (n == null ? void 0 : n.id) ?? ge,
|
|
225
|
+
contents: (y == null ? void 0 : y.length) > 0 ? y : t ?? [],
|
|
226
|
+
width: (n == null ? void 0 : n.width) ?? 1,
|
|
227
|
+
config: n == null ? void 0 : n.config,
|
|
228
|
+
optionUrl: (n == null ? void 0 : n.optionUrl) ?? n,
|
|
229
|
+
isFormColHidden: n == null ? void 0 : n.isFormColHidden,
|
|
230
|
+
isMain: n == null ? void 0 : n.isMain
|
|
231
|
+
};
|
|
232
|
+
})), C = await Promise.all(Q), ce = C == null ? void 0 : C.map((n) => n == null ? void 0 : n.value);
|
|
233
|
+
let g = "";
|
|
234
|
+
ce == null || ce.forEach((n) => {
|
|
235
|
+
n !== "" && n !== void 0 && (g = g === "" ? n : g + "/" + n);
|
|
236
|
+
}), te.setSelectArray(ce), te.setSelectString(g), M.value = (ne = l(C)) == null ? void 0 : ne.map((n) => (n != null && n.value && ba(n == null ? void 0 : n.value) && Array.isArray(JSON.parse(n == null ? void 0 : n.value)) && (n.value = JSON.parse(n.value)), n));
|
|
237
|
+
let z = [], K = [];
|
|
238
|
+
if ((se = l(M.value)) == null || se.forEach((n) => {
|
|
239
|
+
var ge;
|
|
240
|
+
Array.isArray(n == null ? void 0 : n.value) && ((ge = n == null ? void 0 : n.value) != null && ge.find((e) => {
|
|
241
|
+
var a;
|
|
242
|
+
return (a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".obj");
|
|
243
|
+
})) && (K = n == null ? void 0 : n.value);
|
|
244
|
+
}), (K == null ? void 0 : K.length) > 0) {
|
|
245
|
+
const n = (q = l(K)) == null ? void 0 : q.filter((ge) => {
|
|
246
|
+
var e;
|
|
247
|
+
return (e = ge == null ? void 0 : ge.url) == null ? void 0 : e.includes(".obj");
|
|
248
|
+
});
|
|
249
|
+
n == null || n.forEach((ge) => {
|
|
250
|
+
var a, t, y, D;
|
|
251
|
+
const e = (a = K == null ? void 0 : K.filter((N) => {
|
|
252
|
+
var he;
|
|
253
|
+
return (N == null ? void 0 : N.name) === (ge == null ? void 0 : ge.name) && ((he = N == null ? void 0 : N.url) == null ? void 0 : he.includes(".mtl"));
|
|
254
|
+
})) == null ? void 0 : a.map((N) => N == null ? void 0 : N.url);
|
|
255
|
+
z.push({
|
|
256
|
+
objUrl: ge == null ? void 0 : ge.url,
|
|
257
|
+
mtlUrls: ((t = K == null ? void 0 : K.filter((N) => {
|
|
258
|
+
var he;
|
|
259
|
+
return (N == null ? void 0 : N.name) === (ge == null ? void 0 : ge.name) && ((he = N == null ? void 0 : N.url) == null ? void 0 : he.includes(".mtl"));
|
|
260
|
+
})) == null ? void 0 : t.length) === 1 ? (D = (y = K == null ? void 0 : K.filter((N) => {
|
|
261
|
+
var he;
|
|
262
|
+
return (N == null ? void 0 : N.name) === (ge == null ? void 0 : ge.name) && ((he = N == null ? void 0 : N.url) == null ? void 0 : he.includes(".mtl"));
|
|
263
|
+
})) == null ? void 0 : y[0]) == null ? void 0 : D.url : e
|
|
264
|
+
});
|
|
265
|
+
}), ke.setObjUrl(z);
|
|
266
|
+
}
|
|
267
|
+
($ = l(M.value)) == null || $.forEach((n) => {
|
|
268
|
+
var ge, e, a, t, y, D, N, he, U, Y, ue, me, J;
|
|
269
|
+
if ((e = (ge = n == null ? void 0 : n.value) == null ? void 0 : ge.toString()) != null && e.includes(".stl") || (t = (a = n == null ? void 0 : n.value) == null ? void 0 : a.toString()) != null && t.includes(".STL") || (D = (y = n == null ? void 0 : n.value) == null ? void 0 : y.toString()) != null && D.includes(".obj") || (he = (N = n == null ? void 0 : n.value) == null ? void 0 : N.toString()) != null && he.includes(".mtl") || (Y = (U = n == null ? void 0 : n.value) == null ? void 0 : U.toString()) != null && Y.includes(".urdf")) {
|
|
270
|
+
let P = {}, j = [], V;
|
|
271
|
+
Array.isArray(n == null ? void 0 : n.value) ? V = n == null ? void 0 : n.value : V = (ue = n == null ? void 0 : n.value) == null ? void 0 : ue.split(","), V == null || V.forEach((ye) => {
|
|
272
|
+
ye.includes(".mtl") ? j.push(ye) : P.blob = P.blob === "undefined" ? ye : P.blob + "," + ye;
|
|
273
|
+
}), (j == null ? void 0 : j.length) > 0 && (P.mtlBlobs = j), (J = (me = Object.values(P)) == null ? void 0 : me[0]) != null && J.includes("http:");
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
} else
|
|
277
|
+
M.value = [];
|
|
278
|
+
if (S != null && S.formRules)
|
|
279
|
+
X.value = S == null ? void 0 : S.formRules;
|
|
280
|
+
else {
|
|
281
|
+
let Q = {};
|
|
282
|
+
(H = l(M).value) == null || H.forEach((C) => {
|
|
283
|
+
(C == null ? void 0 : C.isMain) === !0 && (Q[C.name] = [
|
|
284
|
+
{ required: !0 }
|
|
285
|
+
]);
|
|
286
|
+
}), X.value = Q;
|
|
287
|
+
}
|
|
288
|
+
if (((_ = b == null ? void 0 : b.contents) == null ? void 0 : _.length) > 0) {
|
|
289
|
+
const Q = [];
|
|
290
|
+
(de = b == null ? void 0 : b.contents) == null || de.forEach((C, ce) => {
|
|
291
|
+
(C == null ? void 0 : C.label) !== "" && Q.push({
|
|
292
|
+
label: (C == null ? void 0 : C.label) ?? "",
|
|
293
|
+
id: (C == null ? void 0 : C.id) ?? ce,
|
|
294
|
+
type: (C == null ? void 0 : C.type) ?? "",
|
|
295
|
+
background: C == null ? void 0 : C.background
|
|
296
|
+
});
|
|
297
|
+
}), ae.value = Q;
|
|
298
|
+
} else
|
|
299
|
+
ae.value = [];
|
|
300
|
+
},
|
|
301
|
+
{ deep: !0, immediate: !0 }
|
|
302
|
+
), (pe, b) => (le(), _e("div", Ss, [
|
|
303
|
+
Z(el, {
|
|
304
|
+
rowContents: M.value,
|
|
305
|
+
formRules: X.value,
|
|
306
|
+
buttonValue: ae.value,
|
|
307
|
+
isRowFlex: !1,
|
|
308
|
+
isEnableWrap: I.value,
|
|
309
|
+
onOnButtonClick: De,
|
|
310
|
+
onChange: Fe,
|
|
311
|
+
isButtonRow: B.value,
|
|
312
|
+
onPreview: ie,
|
|
313
|
+
onBlurChange: m
|
|
314
|
+
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEnableWrap", "isButtonRow"]),
|
|
315
|
+
re.value ? (le(), Ve(Na, {
|
|
316
|
+
key: 0,
|
|
317
|
+
fileDataList: Ce.value,
|
|
318
|
+
onDestroy: be
|
|
319
|
+
}, null, 8, ["fileDataList"])) : Qe("", !0),
|
|
320
|
+
h.value ? (le(), Ve(ll, {
|
|
321
|
+
key: 1,
|
|
322
|
+
visible: h.value,
|
|
323
|
+
onBeforeDestroy: R,
|
|
324
|
+
style: { height: "700px", width: "1000px" }
|
|
325
|
+
}, {
|
|
326
|
+
default: fe(() => [
|
|
327
|
+
h.value ? (le(), Ve(es, {
|
|
328
|
+
key: 0,
|
|
329
|
+
"urdf-url": o.value
|
|
330
|
+
}, null, 8, ["urdf-url"])) : Qe("", !0)
|
|
331
|
+
]),
|
|
332
|
+
_: 1
|
|
333
|
+
}, 8, ["visible"])) : Qe("", !0)
|
|
334
|
+
]));
|
|
335
|
+
}
|
|
336
|
+
}, Ua = /* @__PURE__ */ Me($s, [["__scopeId", "data-v-e109dffe"]]), da = G(0), za = (r) => {
|
|
337
|
+
var F;
|
|
338
|
+
return !r || (r == null ? void 0 : r.length) === 0 ? [] : (F = l(r)) == null ? void 0 : F.map((i) => (da.value++, i = {
|
|
339
|
+
label: (i == null ? void 0 : i.label) ?? "",
|
|
340
|
+
prop: (i == null ? void 0 : i.label) === "操作" ? "operate" : i == null ? void 0 : i.prop,
|
|
341
|
+
width: i != null && i.width ? parseInt(i.width) : "",
|
|
342
|
+
fixed: (i == null ? void 0 : i.fixed) ?? void 0,
|
|
343
|
+
sortable: (i == null ? void 0 : i.sortable) ?? !1,
|
|
344
|
+
align: (i == null ? void 0 : i.align) ?? "left",
|
|
345
|
+
showOverflowTooltip: (i == null ? void 0 : i.showOverflowTooltip) ?? !0,
|
|
346
|
+
isNotDrag: (i == null ? void 0 : i.isNotDrag) ?? !1,
|
|
347
|
+
isEditCol: (i == null ? void 0 : i.isEditCol) ?? !1,
|
|
348
|
+
isOperate: (i == null ? void 0 : i.isOperate) ?? !1,
|
|
349
|
+
id: (i == null ? void 0 : i.id) ?? da.value,
|
|
350
|
+
children: za(i == null ? void 0 : i.children)
|
|
351
|
+
}, i));
|
|
352
|
+
}, Bs = (r) => {
|
|
353
|
+
var h;
|
|
354
|
+
return (h = l(r)) == null ? void 0 : h.map((i) => (da.value++, i = {
|
|
355
|
+
label: (i == null ? void 0 : i.label) ?? "",
|
|
356
|
+
prop: (i == null ? void 0 : i.label) === "操作" ? "operate" : i == null ? void 0 : i.prop,
|
|
357
|
+
width: i != null && i.width ? parseInt(i.width) : "",
|
|
358
|
+
fixed: (i == null ? void 0 : i.fixed) ?? void 0,
|
|
359
|
+
sortable: (i == null ? void 0 : i.sortable) ?? !1,
|
|
360
|
+
align: (i == null ? void 0 : i.align) ?? "left",
|
|
361
|
+
showOverflowTooltip: (i == null ? void 0 : i.showOverflowTooltip) ?? !0,
|
|
362
|
+
isNotDrag: (i == null ? void 0 : i.isNotDrag) ?? !1,
|
|
363
|
+
isEditCol: (i == null ? void 0 : i.isEditCol) ?? !1,
|
|
364
|
+
isOperate: (i == null ? void 0 : i.isOperate) ?? !1,
|
|
365
|
+
id: (i == null ? void 0 : i.id) ?? da.value,
|
|
366
|
+
children: za(i == null ? void 0 : i.children)
|
|
367
|
+
}, i));
|
|
368
|
+
}, Ja = (r, F) => {
|
|
369
|
+
var h;
|
|
370
|
+
return r != null && r.find((i) => (i == null ? void 0 : i.id) === F) ? (h = l(r)) == null ? void 0 : h.filter((o) => (o == null ? void 0 : o.id) !== F) : (r = r == null ? void 0 : r.map((i) => (i.children = Ja(i == null ? void 0 : i.children, F), i)), r);
|
|
371
|
+
}, Ha = (r, F) => {
|
|
372
|
+
var h;
|
|
373
|
+
return r != null && r.find((i) => (i == null ? void 0 : i.id) === (F == null ? void 0 : F.id)) ? (h = l(r)) == null ? void 0 : h.map((o) => ((o == null ? void 0 : o.id) === (F == null ? void 0 : F.id) && (o = F), o)) : (r = r == null ? void 0 : r.map((i) => (i.children = Ha(i == null ? void 0 : i.children, F), i)), r);
|
|
374
|
+
}, Ga = (r, F) => {
|
|
375
|
+
var h;
|
|
376
|
+
return r != null && r.find((i) => {
|
|
377
|
+
var o;
|
|
378
|
+
return (i == null ? void 0 : i.id) === ((o = F == null ? void 0 : F.contents) == null ? void 0 : o.id);
|
|
379
|
+
}) ? (h = l(r)) == null ? void 0 : h.map((o) => {
|
|
380
|
+
var R;
|
|
381
|
+
return (o == null ? void 0 : o.id) === ((R = F == null ? void 0 : F.contents) == null ? void 0 : R.id) && (o = F == null ? void 0 : F.contents), o;
|
|
382
|
+
}) : (r = r == null ? void 0 : r.map((i) => (i.children = Ga(i == null ? void 0 : i.children, F), i)), r);
|
|
383
|
+
}, qa = (r, F) => {
|
|
384
|
+
var h;
|
|
385
|
+
return r != null && r.find((i) => (i == null ? void 0 : i.id) === (F == null ? void 0 : F.id)) ? (h = l(r)) == null ? void 0 : h.map((o) => ((o == null ? void 0 : o.id) === (F == null ? void 0 : F.id) && (o != null && o.children || (o.children = []), o.children.push(F.contents)), o)) : (r = r == null ? void 0 : r.map((i) => (i.children = qa(i == null ? void 0 : i.children, F), i)), r);
|
|
386
|
+
}, Ae = [
|
|
387
|
+
{
|
|
388
|
+
key: "label",
|
|
389
|
+
label: "标签名",
|
|
390
|
+
type: "Input"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
key: "prop",
|
|
394
|
+
label: "属性名",
|
|
395
|
+
type: "Input"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
key: "width",
|
|
399
|
+
label: "宽度",
|
|
400
|
+
type: "Input"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
key: "sortable",
|
|
404
|
+
label: "是否支持排序",
|
|
405
|
+
type: "Switch"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
key: "align",
|
|
409
|
+
label: "文本所在位置",
|
|
410
|
+
type: "Radio",
|
|
411
|
+
options: [
|
|
412
|
+
{
|
|
413
|
+
label: "left",
|
|
414
|
+
value: "左"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
label: "center",
|
|
418
|
+
value: "中"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
label: "right",
|
|
422
|
+
value: "右"
|
|
423
|
+
}
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
key: "fixed",
|
|
428
|
+
label: "是否固定列",
|
|
429
|
+
type: "Switch"
|
|
430
|
+
}
|
|
431
|
+
], Fs = [
|
|
432
|
+
{
|
|
433
|
+
label: "查看",
|
|
434
|
+
value: "view"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
label: "修改",
|
|
438
|
+
value: "fix"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
label: "删除",
|
|
442
|
+
value: "delete"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
label: "三维算例",
|
|
446
|
+
value: "modelExample"
|
|
447
|
+
}
|
|
448
|
+
], Ls = [
|
|
449
|
+
{
|
|
450
|
+
label: "新增",
|
|
451
|
+
value: "add"
|
|
452
|
+
}
|
|
453
|
+
], kl = [
|
|
454
|
+
{
|
|
455
|
+
key: "label",
|
|
456
|
+
label: "按钮名",
|
|
457
|
+
type: "Input"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
key: "type",
|
|
461
|
+
label: "类型",
|
|
462
|
+
type: "Select",
|
|
463
|
+
options: Ls
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
key: "background",
|
|
467
|
+
label: "按钮背景色",
|
|
468
|
+
type: "Color"
|
|
469
|
+
}
|
|
470
|
+
], _l = [
|
|
471
|
+
{
|
|
472
|
+
key: "label",
|
|
473
|
+
label: "按钮名",
|
|
474
|
+
type: "Input"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
key: "type",
|
|
478
|
+
label: "类型",
|
|
479
|
+
type: "Select",
|
|
480
|
+
options: Fs
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
key: "textColor",
|
|
484
|
+
label: "按钮颜色",
|
|
485
|
+
type: "Color"
|
|
486
|
+
}
|
|
487
|
+
], Os = { class: "table-header-child" }, Vs = { class: "table-header-child-main" }, Rs = { class: "table-header-child-content" }, Us = { class: "table-header-child-content-item" }, Ps = { class: "fix-button" }, js = { key: 0 }, Ks = { class: "form-content" }, Ns = {
|
|
488
|
+
__name: "tableNewChild",
|
|
489
|
+
props: {
|
|
490
|
+
tableChildContents: Array
|
|
491
|
+
},
|
|
492
|
+
emits: ["fixChange", "deleteChange"],
|
|
493
|
+
setup(r, { emit: F }) {
|
|
494
|
+
const h = r, i = F, o = G(!1), R = G(""), S = ja(al), { tableIndex: w } = ol(S);
|
|
495
|
+
G(0);
|
|
496
|
+
const M = G(""), X = G([]), B = G([]), re = (c) => {
|
|
497
|
+
var f;
|
|
498
|
+
o.value = !0;
|
|
499
|
+
let d = [];
|
|
500
|
+
Ae == null || Ae.forEach((m) => {
|
|
501
|
+
let ie = l(w.value) + 1;
|
|
502
|
+
S.setTableIndex(ie), d.push({
|
|
503
|
+
label: m == null ? void 0 : m.label,
|
|
504
|
+
name: m == null ? void 0 : m.label,
|
|
505
|
+
type: m.type,
|
|
506
|
+
value: c[m.key],
|
|
507
|
+
id: w.value,
|
|
508
|
+
contents: m == null ? void 0 : m.options
|
|
509
|
+
});
|
|
510
|
+
}), c != null && c.children && ((f = c == null ? void 0 : c.children) == null ? void 0 : f.length) > 0 && d.push({
|
|
511
|
+
children: c == null ? void 0 : c.children,
|
|
512
|
+
isFormColHidden: !0
|
|
513
|
+
}), M.value = c == null ? void 0 : c.id, X.value = d, B.value = d;
|
|
514
|
+
}, ae = (c) => {
|
|
515
|
+
i("fixChange", l(c));
|
|
516
|
+
}, Ce = (c) => {
|
|
517
|
+
i("deleteChange", l(c));
|
|
518
|
+
}, te = (c) => {
|
|
519
|
+
o.value = !0;
|
|
520
|
+
let d = [];
|
|
521
|
+
Ae == null || Ae.forEach((f) => {
|
|
522
|
+
let m = l(w.value) + 1;
|
|
523
|
+
S.setTableIndex(m), d.push({
|
|
524
|
+
label: f == null ? void 0 : f.label,
|
|
525
|
+
name: f == null ? void 0 : f.label,
|
|
526
|
+
type: f.type,
|
|
527
|
+
value: "",
|
|
528
|
+
id: w.value,
|
|
529
|
+
contents: f == null ? void 0 : f.options
|
|
530
|
+
});
|
|
531
|
+
}), R.value = c == null ? void 0 : c.id, X.value = d, B.value = d;
|
|
532
|
+
}, ke = (c) => {
|
|
533
|
+
let d = l(B.value);
|
|
534
|
+
d = d == null ? void 0 : d.map((f) => (f.children || (f.value = c == null ? void 0 : c[f.name]), f)), B.value = d;
|
|
535
|
+
}, I = () => {
|
|
536
|
+
var d, f;
|
|
537
|
+
X.value = B.value;
|
|
538
|
+
let c = {};
|
|
539
|
+
if (M.value !== "")
|
|
540
|
+
c.id = M.value, (d = X.value) == null || d.forEach((m) => {
|
|
541
|
+
const ie = Ae == null ? void 0 : Ae.find((be) => (be == null ? void 0 : be.label) === (m == null ? void 0 : m.label));
|
|
542
|
+
ie ? c[ie.key] = m.value : m != null && m.children && m.children.length > 0 && (c.children = m.children);
|
|
543
|
+
}), o.value = !1, i("fixChange", {
|
|
544
|
+
contents: l(c),
|
|
545
|
+
id: R.value,
|
|
546
|
+
type: "fix"
|
|
547
|
+
});
|
|
548
|
+
else {
|
|
549
|
+
let m = l(w.value) + 1;
|
|
550
|
+
S.setTableIndex(m), c.id = "id" + w.value, (f = X.value) == null || f.forEach((ie) => {
|
|
551
|
+
const be = Ae == null ? void 0 : Ae.find((De) => (De == null ? void 0 : De.label) === (ie == null ? void 0 : ie.label));
|
|
552
|
+
be ? c[be.key] = ie.value : ie != null && ie.children && ie.children.length > 0 && (c.children = ie.children);
|
|
553
|
+
}), o.value = !1, i("fixChange", {
|
|
554
|
+
contents: l(c),
|
|
555
|
+
id: R.value,
|
|
556
|
+
type: "add"
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
M.value = "", X.value = [], B.value = [];
|
|
560
|
+
}, A = () => {
|
|
561
|
+
o.value = !1, M.value = "", R.value = "", X.value = [], B.value = [];
|
|
562
|
+
}, ve = (c) => {
|
|
563
|
+
Cl.confirm("是否确认要删除", "", {
|
|
564
|
+
confirmButtonText: "确认",
|
|
565
|
+
cancelButtonText: "取消",
|
|
566
|
+
type: "warning"
|
|
567
|
+
}).then(
|
|
568
|
+
() => {
|
|
569
|
+
i("deleteChange", c), tl({
|
|
570
|
+
type: "success",
|
|
571
|
+
message: "删除成功"
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
).catch(() => {
|
|
575
|
+
});
|
|
576
|
+
};
|
|
577
|
+
return (c, d) => {
|
|
578
|
+
const f = Re("svg-icon");
|
|
579
|
+
return le(), _e("div", Os, [
|
|
580
|
+
(le(!0), _e(Ue, null, Ne(h == null ? void 0 : h.tableChildContents, (m, ie) => (le(), _e("div", Vs, [
|
|
581
|
+
x("div", Rs, [
|
|
582
|
+
x("div", Us, we(m.label), 1),
|
|
583
|
+
x("div", Ps, [
|
|
584
|
+
Z(f, {
|
|
585
|
+
name: "ChildAdd",
|
|
586
|
+
class: "svg-icon-content",
|
|
587
|
+
style: { width: "24px", height: "24px" },
|
|
588
|
+
onClick: (be) => te(m)
|
|
589
|
+
}, null, 8, ["onClick"]),
|
|
590
|
+
Z(f, {
|
|
591
|
+
name: "ChildFix",
|
|
592
|
+
class: "svg-icon-content",
|
|
593
|
+
style: { width: "24px", height: "24px" },
|
|
594
|
+
onClick: (be) => re(m)
|
|
595
|
+
}, null, 8, ["onClick"]),
|
|
596
|
+
Z(f, {
|
|
597
|
+
name: "ChildDelete",
|
|
598
|
+
class: "svg-icon-content",
|
|
599
|
+
style: { width: "24px", height: "24px" },
|
|
600
|
+
onClick: (be) => ve(m)
|
|
601
|
+
}, null, 8, ["onClick"])
|
|
602
|
+
])
|
|
603
|
+
]),
|
|
604
|
+
m != null && m.children && m.children.length > 0 ? (le(), _e("div", js, [
|
|
605
|
+
Z(Qa, {
|
|
606
|
+
tableChildContents: m == null ? void 0 : m.children,
|
|
607
|
+
onDeleteChange: Ce,
|
|
608
|
+
onFixChange: ae
|
|
609
|
+
}, null, 8, ["tableChildContents"])
|
|
610
|
+
])) : Qe("", !0)
|
|
611
|
+
]))), 256)),
|
|
612
|
+
Z(ll, {
|
|
613
|
+
visible: o.value,
|
|
614
|
+
onBeforeDestroy: A,
|
|
615
|
+
width: 840
|
|
616
|
+
}, {
|
|
617
|
+
default: fe(() => [
|
|
618
|
+
x("div", Ks, [
|
|
619
|
+
(le(), Ve(el, {
|
|
620
|
+
rowContents: X.value,
|
|
621
|
+
key: X.value,
|
|
622
|
+
isEnableWrap: !0,
|
|
623
|
+
onChange: ke
|
|
624
|
+
}, null, 8, ["rowContents"]))
|
|
625
|
+
])
|
|
626
|
+
]),
|
|
627
|
+
footer: fe(() => [
|
|
628
|
+
x("div", { class: "dialog-footer" }, [
|
|
629
|
+
x("div", {
|
|
630
|
+
onClick: A,
|
|
631
|
+
class: "cancel-button button"
|
|
632
|
+
}, we("取消")),
|
|
633
|
+
x("div", {
|
|
634
|
+
class: "ok-button button",
|
|
635
|
+
onClick: I
|
|
636
|
+
}, we("确认"))
|
|
637
|
+
])
|
|
638
|
+
]),
|
|
639
|
+
_: 1
|
|
640
|
+
}, 8, ["visible"])
|
|
641
|
+
]);
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
}, Ms = /* @__PURE__ */ Me(Ns, [["__scopeId", "data-v-e0fef72d"]]), Ws = { class: "table-header-child" }, zs = { class: "table-header-child-main" }, Js = { class: "table-header-child-content" }, Hs = { class: "table-header-child-content-item" }, Gs = { class: "fix-button" }, qs = { key: 0 }, Qs = { class: "form-content" }, Xs = { class: "dialog-footer" }, Ys = {
|
|
645
|
+
__name: "tableChildren",
|
|
646
|
+
props: {
|
|
647
|
+
tableChildContents: Array
|
|
648
|
+
},
|
|
649
|
+
emits: ["fixChange", "deleteChange"],
|
|
650
|
+
setup(r, { emit: F }) {
|
|
651
|
+
const h = r, i = F, o = G(!1), R = G(""), S = ja(al), { tableIndex: w } = ol(S), M = G(""), X = G([]), B = G([]), re = (c) => {
|
|
652
|
+
i("fixChange", l(c));
|
|
653
|
+
}, ae = (c) => {
|
|
654
|
+
var f;
|
|
655
|
+
o.value = !0;
|
|
656
|
+
let d = [];
|
|
657
|
+
Ae == null || Ae.forEach((m) => {
|
|
658
|
+
let ie = l(w.value) + 1;
|
|
659
|
+
S.setTableIndex(ie), d.push({
|
|
660
|
+
label: m == null ? void 0 : m.label,
|
|
661
|
+
name: m == null ? void 0 : m.label,
|
|
662
|
+
type: m.type,
|
|
663
|
+
value: c[m.key],
|
|
664
|
+
id: w.value,
|
|
665
|
+
contents: m == null ? void 0 : m.options
|
|
666
|
+
});
|
|
667
|
+
}), c != null && c.children && ((f = c == null ? void 0 : c.children) == null ? void 0 : f.length) > 0 && d.push({
|
|
668
|
+
children: c == null ? void 0 : c.children,
|
|
669
|
+
isFormColHidden: !0
|
|
670
|
+
}), M.value = c == null ? void 0 : c.id, X.value = d, B.value = d;
|
|
671
|
+
}, Ce = (c) => {
|
|
672
|
+
o.value = !0;
|
|
673
|
+
let d = [];
|
|
674
|
+
Ae == null || Ae.forEach((f) => {
|
|
675
|
+
let m = l(w.value) + 1;
|
|
676
|
+
S.setTableIndex(m), d.push({
|
|
677
|
+
label: f == null ? void 0 : f.label,
|
|
678
|
+
name: f == null ? void 0 : f.label,
|
|
679
|
+
type: f.type,
|
|
680
|
+
value: "",
|
|
681
|
+
id: w.value,
|
|
682
|
+
contents: f == null ? void 0 : f.options
|
|
683
|
+
});
|
|
684
|
+
}), R.value = c == null ? void 0 : c.id, X.value = d, B.value = d;
|
|
685
|
+
}, te = (c) => {
|
|
686
|
+
let d = l(B.value);
|
|
687
|
+
d = d == null ? void 0 : d.map((f) => (f.children || (f.value = c == null ? void 0 : c[f.name]), f)), B.value = d;
|
|
688
|
+
}, ke = () => {
|
|
689
|
+
var d, f;
|
|
690
|
+
X.value = B.value;
|
|
691
|
+
let c = {};
|
|
692
|
+
if (M.value !== "")
|
|
693
|
+
c.id = M.value, (d = X.value) == null || d.forEach((m) => {
|
|
694
|
+
const ie = Ae == null ? void 0 : Ae.find((be) => (be == null ? void 0 : be.label) === (m == null ? void 0 : m.label));
|
|
695
|
+
ie ? c[ie.key] = m.value : m != null && m.children && m.children.length > 0 && (c.children = m.children);
|
|
696
|
+
}), o.value = !1, i("fixChange", {
|
|
697
|
+
contents: l(c),
|
|
698
|
+
id: R.value,
|
|
699
|
+
type: "fix"
|
|
700
|
+
});
|
|
701
|
+
else {
|
|
702
|
+
let m = l(w.value) + 1;
|
|
703
|
+
S.setTableIndex(m), c.id = "idChild" + w.value, (f = X.value) == null || f.forEach((ie) => {
|
|
704
|
+
const be = Ae == null ? void 0 : Ae.find((De) => (De == null ? void 0 : De.label) === (ie == null ? void 0 : ie.label));
|
|
705
|
+
be ? c[be.key] = ie.value : ie != null && ie.children && ie.children.length > 0 && (c.children = ie.children);
|
|
706
|
+
}), o.value = !1, i("fixChange", {
|
|
707
|
+
contents: l(c),
|
|
708
|
+
id: R.value,
|
|
709
|
+
type: "add"
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
M.value = "", X.value = [], B.value = [];
|
|
713
|
+
}, I = () => {
|
|
714
|
+
o.value = !1, M.value = "", R.value = "", X.value = [], B.value = [];
|
|
715
|
+
}, A = (c) => {
|
|
716
|
+
Cl.confirm("是否确认要删除", "", {
|
|
717
|
+
confirmButtonText: "确认",
|
|
718
|
+
cancelButtonText: "取消",
|
|
719
|
+
type: "warning"
|
|
720
|
+
}).then(
|
|
721
|
+
() => {
|
|
722
|
+
i("deleteChange", c), tl({
|
|
723
|
+
type: "success",
|
|
724
|
+
message: "删除成功"
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
).catch(() => {
|
|
728
|
+
});
|
|
729
|
+
}, ve = (c) => {
|
|
730
|
+
i("deleteChange", c);
|
|
731
|
+
};
|
|
732
|
+
return (c, d) => {
|
|
733
|
+
const f = Re("svg-icon"), m = Re("el-button");
|
|
734
|
+
return le(), _e("div", Ws, [
|
|
735
|
+
(le(!0), _e(Ue, null, Ne(h == null ? void 0 : h.tableChildContents, (ie, be) => (le(), _e("div", zs, [
|
|
736
|
+
x("div", Js, [
|
|
737
|
+
x("div", Hs, we(ie.label), 1),
|
|
738
|
+
x("div", Gs, [
|
|
739
|
+
Z(f, {
|
|
740
|
+
name: "ChildAdd",
|
|
741
|
+
class: "svg-icon-content",
|
|
742
|
+
style: { width: "24px", height: "24px" },
|
|
743
|
+
onClick: (De) => Ce(ie)
|
|
744
|
+
}, null, 8, ["onClick"]),
|
|
745
|
+
Z(f, {
|
|
746
|
+
name: "ChildFix",
|
|
747
|
+
class: "svg-icon-content",
|
|
748
|
+
style: { width: "24px", height: "24px" },
|
|
749
|
+
onClick: (De) => ae(ie)
|
|
750
|
+
}, null, 8, ["onClick"]),
|
|
751
|
+
Z(f, {
|
|
752
|
+
name: "ChildDelete",
|
|
753
|
+
class: "svg-icon-content",
|
|
754
|
+
style: { width: "24px", height: "24px" },
|
|
755
|
+
onClick: (De) => A(ie)
|
|
756
|
+
}, null, 8, ["onClick"])
|
|
757
|
+
])
|
|
758
|
+
]),
|
|
759
|
+
ie != null && ie.children && ie.children.length > 0 ? (le(), _e("div", qs, [
|
|
760
|
+
Z(Ms, {
|
|
761
|
+
tableChildContents: ie == null ? void 0 : ie.children,
|
|
762
|
+
onDeleteChange: ve,
|
|
763
|
+
onFixChange: re
|
|
764
|
+
}, null, 8, ["tableChildContents"])
|
|
765
|
+
])) : Qe("", !0)
|
|
766
|
+
]))), 256)),
|
|
767
|
+
Z(ll, {
|
|
768
|
+
visible: o.value,
|
|
769
|
+
onBeforeDestroy: I,
|
|
770
|
+
width: 840
|
|
771
|
+
}, {
|
|
772
|
+
default: fe(() => [
|
|
773
|
+
x("div", Qs, [
|
|
774
|
+
(le(), Ve(el, {
|
|
775
|
+
rowContents: X.value,
|
|
776
|
+
key: X.value,
|
|
777
|
+
isEnableWrap: !0,
|
|
778
|
+
onChange: te
|
|
779
|
+
}, null, 8, ["rowContents"]))
|
|
780
|
+
])
|
|
781
|
+
]),
|
|
782
|
+
footer: fe(() => [
|
|
783
|
+
x("div", Xs, [
|
|
784
|
+
Z(m, {
|
|
785
|
+
onClick: I,
|
|
786
|
+
class: "cancel-button button",
|
|
787
|
+
id: "themeBorderButton"
|
|
788
|
+
}, {
|
|
789
|
+
default: fe(() => d[0] || (d[0] = [
|
|
790
|
+
$e(we("取消"))
|
|
791
|
+
])),
|
|
792
|
+
_: 1,
|
|
793
|
+
__: [0]
|
|
794
|
+
}),
|
|
795
|
+
Z(m, {
|
|
796
|
+
class: "ok-button button",
|
|
797
|
+
onClick: ke,
|
|
798
|
+
id: "themeButton"
|
|
799
|
+
}, {
|
|
800
|
+
default: fe(() => d[1] || (d[1] = [
|
|
801
|
+
$e(we("确认"))
|
|
802
|
+
])),
|
|
803
|
+
_: 1,
|
|
804
|
+
__: [1]
|
|
805
|
+
})
|
|
806
|
+
])
|
|
807
|
+
]),
|
|
808
|
+
_: 1
|
|
809
|
+
}, 8, ["visible"])
|
|
810
|
+
]);
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
}, Qa = /* @__PURE__ */ Me(Ys, [["__scopeId", "data-v-ebd68fa1"]]), Zs = { class: "table-operate-content" }, ei = { class: "table-operate-item" }, li = { class: "operate-title" }, ai = { class: "operate-content" }, si = { class: "fix-content" }, ii = { class: "fix-content-label" }, oi = { class: "fix-button" }, ni = { key: 0 }, 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" }, vi = { class: "fix-content" }, hi = { class: "fix-content-label" }, mi = { class: "fix-button" }, yi = { class: "operate-title" }, bi = { class: "operate-content" }, gi = { class: "fix-content" }, ki = { class: "fix-content-label" }, _i = { class: "fix-button" }, Ci = { class: "operate-content" }, wi = { style: { display: "flex", "justify-content": "space-between" } }, Di = { class: "form-content" }, Ii = { class: "dialog-footer" }, xi = { class: "form-content" }, Ti = { class: "dialog-footer" }, Ai = { class: "form-content" }, Ei = { class: "dialog-footer" }, Si = { class: "form-content" }, $i = { class: "dialog-footer" }, Bi = {
|
|
814
|
+
__name: "operate",
|
|
815
|
+
props: {
|
|
816
|
+
itemContents: {
|
|
817
|
+
type: Array,
|
|
818
|
+
default: () => []
|
|
819
|
+
},
|
|
820
|
+
originalItemContents: {
|
|
821
|
+
type: Array,
|
|
822
|
+
default: () => []
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
emits: ["change"],
|
|
826
|
+
setup(r, { emit: F }) {
|
|
827
|
+
const h = r, i = F, o = G([]), R = G(!1), S = G(!1), w = G([]), M = G(!1), X = G([]), B = G(!1), re = G([]), ae = G(""), Ce = G(""), te = G([]), ke = G([]), I = G([]), A = G([]), ve = G(!1), c = G([]), d = G([]), f = G(0), m = G([]), ie = G([]), be = G([]), De = () => {
|
|
828
|
+
ve.value = !0;
|
|
829
|
+
let e = [];
|
|
830
|
+
kl == null || kl.forEach((a) => {
|
|
831
|
+
f.value++, e.push({
|
|
832
|
+
label: a == null ? void 0 : a.label,
|
|
833
|
+
name: a == null ? void 0 : a.label,
|
|
834
|
+
type: a.type,
|
|
835
|
+
value: (a == null ? void 0 : a.key) === "background" ? "var(--ssComponent-primary-color)" : "",
|
|
836
|
+
id: f.value,
|
|
837
|
+
contents: a == null ? void 0 : a.options
|
|
838
|
+
});
|
|
839
|
+
}), c.value = e, d.value = e;
|
|
840
|
+
}, Fe = () => {
|
|
841
|
+
var a, t, y;
|
|
842
|
+
S.value = !0;
|
|
843
|
+
let e = [];
|
|
844
|
+
(y = (t = (a = qe) == null ? void 0 : a.find((D) => (D == null ? void 0 : D.key) === "Input")) == null ? void 0 : t.value) == null || y.forEach((D) => {
|
|
845
|
+
f.value++, e.push({
|
|
846
|
+
label: D == null ? void 0 : D.label,
|
|
847
|
+
name: D == null ? void 0 : D.label,
|
|
848
|
+
type: D.type,
|
|
849
|
+
value: (D == null ? void 0 : D.label) === "类型" ? "Input" : "",
|
|
850
|
+
id: f.value,
|
|
851
|
+
contents: D == null ? void 0 : D.options
|
|
852
|
+
});
|
|
853
|
+
}), m.value = e, ie.value = e;
|
|
854
|
+
}, pe = (e) => {
|
|
855
|
+
e || (m.value = ie.value);
|
|
856
|
+
}, b = async (e) => {
|
|
857
|
+
var a, t, y, D, N, he, U, Y, ue, me, J, P;
|
|
858
|
+
if ((e == null ? void 0 : e.类型) !== ((t = (a = ie.value) == null ? void 0 : a.find((j) => (j == null ? void 0 : j.label) === "类型")) == null ? void 0 : t.value)) {
|
|
859
|
+
let j = [], V = await ((N = (D = (y = qe) == null ? void 0 : y.find((ye) => (ye == null ? void 0 : ye.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : D.value) == null ? void 0 : N.value) ? await ((me = (ue = (Y = qe) == null ? void 0 : Y.find((ye) => (ye == null ? void 0 : ye.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : ue.value) == null ? void 0 : me.value) : (U = (he = qe) == null ? void 0 : he.find((ye) => (ye == null ? void 0 : ye.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : U.value;
|
|
860
|
+
if (V == null || V.forEach((ye) => {
|
|
861
|
+
f.value++, j.push({
|
|
862
|
+
label: ye == null ? void 0 : ye.label,
|
|
863
|
+
name: ye == null ? void 0 : ye.label,
|
|
864
|
+
type: ye.type,
|
|
865
|
+
value: (e == null ? void 0 : e[ye.label]) ?? "",
|
|
866
|
+
id: f.value,
|
|
867
|
+
contents: ye == null ? void 0 : ye.options
|
|
868
|
+
});
|
|
869
|
+
}), e != null && e.菜单选项 && ((J = e == null ? void 0 : e.菜单选项) == null ? void 0 : J.length) > 0) {
|
|
870
|
+
const ye = await Fl(e == null ? void 0 : e.菜单选项);
|
|
871
|
+
j = j == null ? void 0 : j.map((Ie) => ((Ie == null ? void 0 : Ie.name) === "组信息选项" && (Ie.contents = ye), Ie));
|
|
872
|
+
}
|
|
873
|
+
ie.value = await bl(l(j)), m.value = await bl(l(j));
|
|
874
|
+
} else {
|
|
875
|
+
let j = l(m.value);
|
|
876
|
+
if (j = j == null ? void 0 : j.map((V) => (V.value = e == null ? void 0 : e[V.name], V)), e != null && e.菜单选项 && ((P = e == null ? void 0 : e.菜单选项) == null ? void 0 : P.length) > 0) {
|
|
877
|
+
const V = await Fl(e == null ? void 0 : e.菜单选项);
|
|
878
|
+
j = j == null ? void 0 : j.map((ye) => ((ye == null ? void 0 : ye.name) === "组信息选项" && (ye.contents = V), ye));
|
|
879
|
+
}
|
|
880
|
+
j = Tl(j), ie.value = await bl(l(j));
|
|
881
|
+
}
|
|
882
|
+
}, L = async (e) => {
|
|
883
|
+
await b(e), m.value = ie.value;
|
|
884
|
+
}, s = (e, a) => {
|
|
885
|
+
if (console.log(345, e), (a == null ? void 0 : a.type) == "Select" && (e == null ? void 0 : e.key) === "selectRelateType") {
|
|
886
|
+
const t = a == null ? void 0 : a.optionUrl;
|
|
887
|
+
return (t == null ? void 0 : t.selectRelateType) || a[e.key];
|
|
888
|
+
}
|
|
889
|
+
if ((a == null ? void 0 : a.type) == "Select" && (e == null ? void 0 : e.key) === "menuSelect") {
|
|
890
|
+
const t = a == null ? void 0 : a.optionUrl;
|
|
891
|
+
return (t == null ? void 0 : t.menuSelect) || a[e.key];
|
|
892
|
+
}
|
|
893
|
+
if ((a == null ? void 0 : a.type) == "Select" && (e == null ? void 0 : e.key) === "groupSelect") {
|
|
894
|
+
const t = a == null ? void 0 : a.optionUrl;
|
|
895
|
+
return (t == null ? void 0 : t.groupSelect) || a[e.key];
|
|
896
|
+
}
|
|
897
|
+
if ((a == null ? void 0 : a.type) == "Select" && (e == null ? void 0 : e.key) === "originalContent")
|
|
898
|
+
return (a == null ? void 0 : a.value) || a[e.key];
|
|
899
|
+
if ((a == null ? void 0 : a.type) == "Select" && (e == null ? void 0 : e.key) === "multiple") {
|
|
900
|
+
const t = a[e.key];
|
|
901
|
+
return Wa(t) ? t : e.default;
|
|
902
|
+
}
|
|
903
|
+
return (e == null ? void 0 : e.label) === "类型" && a[e.key] === "" ? "Input" : (e == null ? void 0 : e.key) === "isFormColHidden" && !a[e.key] ? !1 : a[e.key];
|
|
904
|
+
}, p = async (e) => {
|
|
905
|
+
var y, D, N, he, U, Y, ue, me, J;
|
|
906
|
+
S.value = !0;
|
|
907
|
+
let a = [];
|
|
908
|
+
const t = await ((N = (D = (y = qe) == null ? void 0 : y.find((P) => (P == null ? void 0 : P.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : D.value) == null ? void 0 : N.value) ? await ((me = (ue = (Y = qe) == null ? void 0 : Y.find((P) => (P == null ? void 0 : P.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : ue.value) == null ? void 0 : me.value) : (U = (he = qe) == null ? void 0 : he.find((P) => (P == null ? void 0 : P.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : U.value;
|
|
909
|
+
if (t == null || t.forEach((P) => {
|
|
910
|
+
f.value++, a.push({
|
|
911
|
+
label: P == null ? void 0 : P.label,
|
|
912
|
+
name: P == null ? void 0 : P.label,
|
|
913
|
+
type: P.type,
|
|
914
|
+
// value: (t?.label === "类型" && content[t.key] === '') ? "Input" : content[t.key],
|
|
915
|
+
value: s(P, e),
|
|
916
|
+
id: f.value,
|
|
917
|
+
contents: P == null ? void 0 : P.options
|
|
918
|
+
});
|
|
919
|
+
}), e != null && e.menuSelect && ((J = e == null ? void 0 : e.menuSelect) == null ? void 0 : J.length) > 0) {
|
|
920
|
+
const P = await Fl(e == null ? void 0 : e.menuSelect);
|
|
921
|
+
a = a == null ? void 0 : a.map((j) => ((j == null ? void 0 : j.name) === "组信息选项" && (j.contents = P), j));
|
|
922
|
+
}
|
|
923
|
+
ae.value = e == null ? void 0 : e.id, m.value = await bl(Tl(a)), ie.value = await bl(Tl(a));
|
|
924
|
+
}, v = (e) => {
|
|
925
|
+
Cl.confirm("是否确认要删除", "", {
|
|
926
|
+
confirmButtonText: "确认",
|
|
927
|
+
cancelButtonText: "取消",
|
|
928
|
+
type: "warning"
|
|
929
|
+
}).then(
|
|
930
|
+
() => {
|
|
931
|
+
var a, t;
|
|
932
|
+
be.value = (a = l(be.value)) == null ? void 0 : a.filter((y) => (y == null ? void 0 : y.id) !== (e == null ? void 0 : e.id)), i("change", (t = l(h.originalItemContents)) == null ? void 0 : t.map((y) => ((y == null ? void 0 : y.key) === "tableToForm" && (y.contents = be.value), y))), tl({
|
|
933
|
+
type: "success",
|
|
934
|
+
message: "删除成功"
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
).catch(() => {
|
|
938
|
+
});
|
|
939
|
+
}, k = () => {
|
|
940
|
+
S.value = !1, m.value = [], ae.value = "";
|
|
941
|
+
}, W = async () => {
|
|
942
|
+
var y, D, N, he, U, Y, ue, me, J, P;
|
|
943
|
+
m.value = ie.value;
|
|
944
|
+
let e = {};
|
|
945
|
+
ae.value !== "" ? e.id = ae.value : (f.value++, e.id = "id" + f.value);
|
|
946
|
+
let a = await ((N = (D = (y = qe) == null ? void 0 : y.find((j) => {
|
|
947
|
+
var V, ye;
|
|
948
|
+
return (j == null ? void 0 : j.key) === (((ye = (V = m.value) == null ? void 0 : V.find((Ie) => (Ie == null ? void 0 : Ie.label) === "类型")) == null ? void 0 : ye.value) ?? "label");
|
|
949
|
+
})) == null ? void 0 : D.value) == null ? void 0 : N.value) ?? ((U = (he = qe) == null ? void 0 : he.find((j) => {
|
|
950
|
+
var V, ye;
|
|
951
|
+
return (j == null ? void 0 : j.key) === (((ye = (V = m.value) == null ? void 0 : V.find((Ie) => (Ie == null ? void 0 : Ie.label) === "类型")) == null ? void 0 : ye.value) ?? "label");
|
|
952
|
+
})) == null ? void 0 : U.value);
|
|
953
|
+
if ((Y = m.value) == null || Y.forEach((j) => {
|
|
954
|
+
const V = a == null ? void 0 : a.find((ye) => (ye == null ? void 0 : ye.label) === (j == null ? void 0 : j.label));
|
|
955
|
+
V && (e[V.key] = j.value);
|
|
956
|
+
}), e.name = e.label, (ue = be.value) != null && ue.find((j) => j.id === e.id))
|
|
957
|
+
be.value = (me = be.value) == null ? void 0 : me.map((j) => (j.id === e.id && (j = e), j));
|
|
958
|
+
else {
|
|
959
|
+
let j = l(be.value);
|
|
960
|
+
be.value || (be.value = []), j.push(e), be.value = j;
|
|
961
|
+
}
|
|
962
|
+
be.value = be.value.map(({ id: j, ...V }) => V), S.value = !1, ae.value = "";
|
|
963
|
+
let t = l(h.originalItemContents);
|
|
964
|
+
(J = l(h.originalItemContents)) != null && J.find((j) => (j == null ? void 0 : j.key) === "tableToForm") ? t = (P = l(h.originalItemContents)) == null ? void 0 : P.map((j) => ((j == null ? void 0 : j.key) === "tableToForm" && (j.contents = be.value), j)) : t.push({
|
|
965
|
+
key: "tableToForm",
|
|
966
|
+
contents: be.value
|
|
967
|
+
}), i("change", t);
|
|
968
|
+
}, oe = (e) => {
|
|
969
|
+
ve.value = !0;
|
|
970
|
+
let a = [];
|
|
971
|
+
kl == null || kl.forEach((t) => {
|
|
972
|
+
f.value++, a.push({
|
|
973
|
+
label: t == null ? void 0 : t.label,
|
|
974
|
+
name: t == null ? void 0 : t.label,
|
|
975
|
+
type: t.type,
|
|
976
|
+
value: e[t.key],
|
|
977
|
+
id: f.value,
|
|
978
|
+
contents: t == null ? void 0 : t.options
|
|
979
|
+
});
|
|
980
|
+
}), ae.value = e == null ? void 0 : e.id, c.value = a, d.value = a;
|
|
981
|
+
};
|
|
982
|
+
Xe(
|
|
983
|
+
() => B.value,
|
|
984
|
+
() => {
|
|
985
|
+
var a, t;
|
|
986
|
+
let e = l(h.originalItemContents);
|
|
987
|
+
(a = l(h.originalItemContents)) != null && a.find((y) => (y == null ? void 0 : y.key) === "page") ? e = (t = l(h.originalItemContents)) == null ? void 0 : t.map((y) => ((y == null ? void 0 : y.key) === "page" && (y.contents = B.value), y)) : e.push({
|
|
988
|
+
key: "page",
|
|
989
|
+
contents: B.value
|
|
990
|
+
}), i("change", e);
|
|
991
|
+
},
|
|
992
|
+
{ deep: !0 }
|
|
993
|
+
);
|
|
994
|
+
const T = (e) => {
|
|
995
|
+
Cl.confirm("是否确认要删除", "", {
|
|
996
|
+
confirmButtonText: "确认",
|
|
997
|
+
cancelButtonText: "取消",
|
|
998
|
+
type: "warning"
|
|
999
|
+
}).then(
|
|
1000
|
+
() => {
|
|
1001
|
+
var a, t;
|
|
1002
|
+
ke.value = (a = l(ke.value)) == null ? void 0 : a.filter((y) => (y == null ? void 0 : y.id) !== (e == null ? void 0 : e.id)), i("change", (t = l(h.originalItemContents)) == null ? void 0 : t.map((y) => ((y == null ? void 0 : y.key) === "extraButton" && (y.contents = ke.value), y))), tl({
|
|
1003
|
+
type: "success",
|
|
1004
|
+
message: "删除成功"
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
).catch(() => {
|
|
1008
|
+
});
|
|
1009
|
+
}, u = () => {
|
|
1010
|
+
var t, y, D, N, he;
|
|
1011
|
+
c.value = d.value;
|
|
1012
|
+
let e = {};
|
|
1013
|
+
if (ae.value !== "" ? e.id = ae.value : (f.value++, e.id = "id" + f.value), (t = c.value) == null || t.forEach((U) => {
|
|
1014
|
+
const Y = kl == null ? void 0 : kl.find((ue) => (ue == null ? void 0 : ue.label) === (U == null ? void 0 : U.label));
|
|
1015
|
+
Y ? e[Y.key] = U.value : U != null && U.children && U.children.length > 0 && (e.children = U.children);
|
|
1016
|
+
}), (y = ke.value) != null && y.find((U) => U.id === e.id))
|
|
1017
|
+
ke.value = (D = ke.value) == null ? void 0 : D.map((U) => (U.id === e.id && (U = e), U));
|
|
1018
|
+
else {
|
|
1019
|
+
let U = l(ke.value) ?? [];
|
|
1020
|
+
U.push(e), ke.value = U;
|
|
1021
|
+
}
|
|
1022
|
+
ve.value = !1, ae.value = "";
|
|
1023
|
+
let a = l(h.originalItemContents);
|
|
1024
|
+
(N = l(h.originalItemContents)) != null && N.find((U) => (U == null ? void 0 : U.key) === "extraButton") ? a = (he = l(h.originalItemContents)) == null ? void 0 : he.map((U) => ((U == null ? void 0 : U.key) === "extraButton" && (U.contents = ke.value), U)) : a.push({
|
|
1025
|
+
key: "extraButton",
|
|
1026
|
+
contents: ke.value
|
|
1027
|
+
}), i("change", a);
|
|
1028
|
+
}, ee = (e) => {
|
|
1029
|
+
let a = l(d.value);
|
|
1030
|
+
a = a == null ? void 0 : a.map((t) => (t.children || (t.value = e == null ? void 0 : e[t.name]), t)), d.value = a;
|
|
1031
|
+
}, O = () => {
|
|
1032
|
+
ve.value = !1, c.value = [], ae.value = "";
|
|
1033
|
+
}, ne = (e) => {
|
|
1034
|
+
M.value = !0;
|
|
1035
|
+
let a = [];
|
|
1036
|
+
_l == null || _l.forEach((t) => {
|
|
1037
|
+
f.value++, a.push({
|
|
1038
|
+
label: t == null ? void 0 : t.label,
|
|
1039
|
+
name: t == null ? void 0 : t.label,
|
|
1040
|
+
type: t.type,
|
|
1041
|
+
value: e[t.key],
|
|
1042
|
+
id: f.value,
|
|
1043
|
+
contents: t == null ? void 0 : t.options
|
|
1044
|
+
});
|
|
1045
|
+
}), ae.value = e == null ? void 0 : e.id, I.value = a, A.value = a;
|
|
1046
|
+
}, se = (e) => {
|
|
1047
|
+
Cl.confirm("是否确认要删除", "", {
|
|
1048
|
+
confirmButtonText: "确认",
|
|
1049
|
+
cancelButtonText: "取消",
|
|
1050
|
+
type: "warning"
|
|
1051
|
+
}).then(
|
|
1052
|
+
() => {
|
|
1053
|
+
var a, t;
|
|
1054
|
+
te.value = (a = l(te.value)) == null ? void 0 : a.filter((y) => (y == null ? void 0 : y.id) !== (e == null ? void 0 : e.id)), i("change", (t = l(h.originalItemContents)) == null ? void 0 : t.map((y) => ((y == null ? void 0 : y.key) === "rowButton" && (y.contents = te.value), y))), tl({
|
|
1055
|
+
type: "success",
|
|
1056
|
+
message: "删除成功"
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
).catch(() => {
|
|
1060
|
+
});
|
|
1061
|
+
}, q = () => {
|
|
1062
|
+
R.value = !0;
|
|
1063
|
+
let e = [];
|
|
1064
|
+
Ae == null || Ae.forEach((a) => {
|
|
1065
|
+
f.value++, e.push({
|
|
1066
|
+
label: a == null ? void 0 : a.label,
|
|
1067
|
+
name: a == null ? void 0 : a.label,
|
|
1068
|
+
type: a.type,
|
|
1069
|
+
value: "",
|
|
1070
|
+
id: f.value,
|
|
1071
|
+
contents: a == null ? void 0 : a.options
|
|
1072
|
+
});
|
|
1073
|
+
}), X.value = e, re.value = e;
|
|
1074
|
+
}, $ = () => {
|
|
1075
|
+
M.value = !0;
|
|
1076
|
+
let e = [];
|
|
1077
|
+
_l == null || _l.forEach((a) => {
|
|
1078
|
+
f.value++, e.push({
|
|
1079
|
+
label: a == null ? void 0 : a.label,
|
|
1080
|
+
name: a == null ? void 0 : a.label,
|
|
1081
|
+
type: a.type,
|
|
1082
|
+
value: "",
|
|
1083
|
+
id: f.value,
|
|
1084
|
+
contents: a == null ? void 0 : a.options
|
|
1085
|
+
});
|
|
1086
|
+
}), I.value = e, A.value = e;
|
|
1087
|
+
}, H = (e) => {
|
|
1088
|
+
let a = l(A.value);
|
|
1089
|
+
a = a == null ? void 0 : a.map((t) => (t.children || (t.value = e == null ? void 0 : e[t.name]), t)), A.value = a;
|
|
1090
|
+
}, _ = () => {
|
|
1091
|
+
var t, y, D, N, he;
|
|
1092
|
+
I.value = A.value;
|
|
1093
|
+
let e = {};
|
|
1094
|
+
if (ae.value !== "" ? e.id = ae.value : (f.value++, e.id = "id" + f.value), (t = I.value) == null || t.forEach((U) => {
|
|
1095
|
+
const Y = _l == null ? void 0 : _l.find((ue) => (ue == null ? void 0 : ue.label) === (U == null ? void 0 : U.label));
|
|
1096
|
+
Y ? e[Y.key] = U.value : U != null && U.children && U.children.length > 0 && (e.children = U.children);
|
|
1097
|
+
}), (y = te.value) != null && y.find((U) => U.id === e.id))
|
|
1098
|
+
te.value = (D = te.value) == null ? void 0 : D.map((U) => (U.id === e.id && (U = e), U));
|
|
1099
|
+
else {
|
|
1100
|
+
let U = l(te.value);
|
|
1101
|
+
U.push(e), te.value = U;
|
|
1102
|
+
}
|
|
1103
|
+
M.value = !1, ae.value = "";
|
|
1104
|
+
let a = l(h.originalItemContents);
|
|
1105
|
+
(N = l(h.originalItemContents)) != null && N.find((U) => (U == null ? void 0 : U.key) === "rowButton") ? a = (he = l(h.originalItemContents)) == null ? void 0 : he.map((U) => ((U == null ? void 0 : U.key) === "rowButton" && (U.contents = te.value), U)) : a.push({
|
|
1106
|
+
key: "rowButton",
|
|
1107
|
+
contents: te.value
|
|
1108
|
+
}), i("change", a);
|
|
1109
|
+
}, de = () => {
|
|
1110
|
+
M.value = !1, ae.value = "", A.value = [], I.value = [];
|
|
1111
|
+
}, Q = (e) => {
|
|
1112
|
+
R.value = !0;
|
|
1113
|
+
let a = [];
|
|
1114
|
+
Ae == null || Ae.forEach((t) => {
|
|
1115
|
+
f.value++, a.push({
|
|
1116
|
+
label: t == null ? void 0 : t.label,
|
|
1117
|
+
name: t == null ? void 0 : t.label,
|
|
1118
|
+
type: t.type,
|
|
1119
|
+
value: "",
|
|
1120
|
+
id: f.value,
|
|
1121
|
+
contents: t == null ? void 0 : t.options
|
|
1122
|
+
});
|
|
1123
|
+
}), X.value = a, Ce.value = e == null ? void 0 : e.id, re.value = a;
|
|
1124
|
+
}, C = (e) => {
|
|
1125
|
+
var a;
|
|
1126
|
+
w.value = Ja(l(w.value), e == null ? void 0 : e.id), i("change", (a = l(h.originalItemContents)) == null ? void 0 : a.map((t) => {
|
|
1127
|
+
var y;
|
|
1128
|
+
return (t == null ? void 0 : t.key) === "header" && (t.contents = (y = w.value) != null && y.some((D) => D == null ? void 0 : D.children) ? [w.value] : w.value), t;
|
|
1129
|
+
}));
|
|
1130
|
+
}, ce = (e) => {
|
|
1131
|
+
var t, y, D;
|
|
1132
|
+
e.type === "fix" ? e.id !== "" ? w.value = Ga(w.value, e) : w.value = Ha(w.value, e == null ? void 0 : e.contents) : w.value = qa(w.value, e), w.value = (t = w.value) != null && t.some((N) => N == null ? void 0 : N.children) ? [w.value] : w.value, ae.value = "";
|
|
1133
|
+
let a = l(h.originalItemContents);
|
|
1134
|
+
(y = l(h.originalItemContents)) != null && y.find((N) => (N == null ? void 0 : N.key) === "header") ? a = (D = l(h.originalItemContents)) == null ? void 0 : D.map((N) => ((N == null ? void 0 : N.key) === "header" && (N.contents = w.value), N)) : a.push({
|
|
1135
|
+
key: "header",
|
|
1136
|
+
contents: w.value
|
|
1137
|
+
}), i("change", a);
|
|
1138
|
+
}, g = (e) => {
|
|
1139
|
+
var t;
|
|
1140
|
+
R.value = !0;
|
|
1141
|
+
let a = [];
|
|
1142
|
+
Ae == null || Ae.forEach((y) => {
|
|
1143
|
+
f.value++, a.push({
|
|
1144
|
+
label: y == null ? void 0 : y.label,
|
|
1145
|
+
name: y == null ? void 0 : y.label,
|
|
1146
|
+
type: y.type,
|
|
1147
|
+
value: e[y.key],
|
|
1148
|
+
id: f.value,
|
|
1149
|
+
contents: y == null ? void 0 : y.options
|
|
1150
|
+
});
|
|
1151
|
+
}), e != null && e.children && ((t = e == null ? void 0 : e.children) == null ? void 0 : t.length) > 0 && a.push({
|
|
1152
|
+
children: e == null ? void 0 : e.children,
|
|
1153
|
+
isFormColHidden: !0
|
|
1154
|
+
}), ae.value = e == null ? void 0 : e.id, Ce.value = "", X.value = a, re.value = a;
|
|
1155
|
+
}, z = (e) => {
|
|
1156
|
+
let a = l(re.value);
|
|
1157
|
+
a = a == null ? void 0 : a.map((t) => (t.children || (t.value = e == null ? void 0 : e[t.name]), t)), re.value = a;
|
|
1158
|
+
}, K = () => {
|
|
1159
|
+
R.value = !1, ae.value = "", Ce.value = "", re.value = [];
|
|
1160
|
+
}, n = () => {
|
|
1161
|
+
var t, y, D, N, he, U;
|
|
1162
|
+
X.value = re.value;
|
|
1163
|
+
let e = {};
|
|
1164
|
+
if (ae.value !== "" ? e.id = ae.value : (f.value++, e.id = "id" + f.value), (t = X.value) == null || t.forEach((Y) => {
|
|
1165
|
+
const ue = Ae == null ? void 0 : Ae.find((me) => (me == null ? void 0 : me.label) === (Y == null ? void 0 : Y.label));
|
|
1166
|
+
ue ? e[ue.key] = Y.value : Y != null && Y.children && Y.children.length > 0 && (e.children = Y.children);
|
|
1167
|
+
}), (y = w.value) != null && y.find((Y) => Y.id === e.id))
|
|
1168
|
+
w.value = (D = w.value) == null ? void 0 : D.map((Y) => (Y.id === e.id && (Y = e), Y));
|
|
1169
|
+
else {
|
|
1170
|
+
let Y = l(w.value) ?? [];
|
|
1171
|
+
Ce.value === "" ? Y.push(e) : Y = Y == null ? void 0 : Y.map((ue) => (ue.id === Ce.value && (ue.children || (ue.children = []), ue.children.push(e)), ue)), w.value = Y;
|
|
1172
|
+
}
|
|
1173
|
+
w.value = (N = w.value) != null && N.some((Y) => Y == null ? void 0 : Y.children) ? [w.value] : w.value, R.value = !1, ae.value = "", Ce.value = "";
|
|
1174
|
+
let a = l(h.originalItemContents);
|
|
1175
|
+
(he = l(h.originalItemContents)) != null && he.find((Y) => (Y == null ? void 0 : Y.key) === "header") ? a = (U = l(h.originalItemContents)) == null ? void 0 : U.map((Y) => ((Y == null ? void 0 : Y.key) === "header" && (Y.contents = w.value), Y)) : a.push({
|
|
1176
|
+
key: "header",
|
|
1177
|
+
contents: w.value
|
|
1178
|
+
}), i("change", a);
|
|
1179
|
+
}, ge = (e) => {
|
|
1180
|
+
Cl.confirm("是否确认要删除", "", {
|
|
1181
|
+
confirmButtonText: "确认",
|
|
1182
|
+
cancelButtonText: "取消",
|
|
1183
|
+
type: "warning"
|
|
1184
|
+
}).then(
|
|
1185
|
+
() => {
|
|
1186
|
+
var a, t;
|
|
1187
|
+
w.value = (a = l(w.value)) == null ? void 0 : a.filter((y) => (y == null ? void 0 : y.id) !== (e == null ? void 0 : e.id)), i("change", (t = l(h.originalItemContents)) == null ? void 0 : t.map((y) => {
|
|
1188
|
+
var D;
|
|
1189
|
+
return (y == null ? void 0 : y.key) === "header" && (y.contents = (D = w.value) != null && D.some((N) => N == null ? void 0 : N.children) ? [w.value] : w.value), y;
|
|
1190
|
+
})), tl({
|
|
1191
|
+
type: "success",
|
|
1192
|
+
message: "删除成功"
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
).catch(() => {
|
|
1196
|
+
});
|
|
1197
|
+
};
|
|
1198
|
+
return Xe(
|
|
1199
|
+
() => h.originalItemContents,
|
|
1200
|
+
() => {
|
|
1201
|
+
var e, a, t, y, D, N, he, U, Y, ue, me, J, P, j, V, ye, Ie, Oe, Ee;
|
|
1202
|
+
if (!(!h.originalItemContents || h.originalItemContents.length === 0))
|
|
1203
|
+
if (o.value = l(h.originalItemContents), w.value = (a = (e = o.value) == null ? void 0 : e.find((E) => (E == null ? void 0 : E.key) === "header")) == null ? void 0 : a.contents, te.value = (y = (t = o.value) == null ? void 0 : t.find((E) => (E == null ? void 0 : E.key) === "rowButton")) == null ? void 0 : y.contents, ke.value = (N = (D = o.value) == null ? void 0 : D.find((E) => (E == null ? void 0 : E.key) === "extraButton")) == null ? void 0 : N.contents, B.value = (U = (he = o.value) == null ? void 0 : he.find((E) => (E == null ? void 0 : E.key) === "page")) != null && U.contents ? !!((ue = (Y = o.value) == null ? void 0 : Y.find((E) => (E == null ? void 0 : E.key) === "page")) != null && ue.contents) : !1, be.value = (J = (me = o.value) == null ? void 0 : me.find((E) => (E == null ? void 0 : E.key) === "tableToForm")) == null ? void 0 : J.contents, w.value = (P = w.value) == null ? void 0 : P.map((E, Se) => (Array.isArray(E) ? E = Bs(E) : E = {
|
|
1204
|
+
label: (E == null ? void 0 : E.label) ?? "",
|
|
1205
|
+
prop: (E == null ? void 0 : E.label) === "操作" ? "operate" : E == null ? void 0 : E.prop,
|
|
1206
|
+
width: E != null && E.width ? parseInt(E.width) : "",
|
|
1207
|
+
fixed: (E == null ? void 0 : E.fixed) ?? void 0,
|
|
1208
|
+
sortable: (E == null ? void 0 : E.sortable) ?? !1,
|
|
1209
|
+
align: (E == null ? void 0 : E.align) ?? "left",
|
|
1210
|
+
showOverflowTooltip: (E == null ? void 0 : E.showOverflowTooltip) ?? !0,
|
|
1211
|
+
isNotDrag: (E == null ? void 0 : E.isNotDrag) ?? !1,
|
|
1212
|
+
isEditCol: (E == null ? void 0 : E.isEditCol) ?? !1,
|
|
1213
|
+
isOperate: (E == null ? void 0 : E.isOperate) ?? !1,
|
|
1214
|
+
id: (E == null ? void 0 : E.id) ?? Se,
|
|
1215
|
+
formMenuSelect: (E == null ? void 0 : E.formMenuSelect) ?? void 0,
|
|
1216
|
+
groupSelect: (E == null ? void 0 : E.groupSelect) ?? void 0
|
|
1217
|
+
}, E)), w.value = (j = w.value) != null && j.every((E) => Array.isArray(E)) ? (V = w.value) == null ? void 0 : V[0] : w.value, te.value = (ye = te.value) == null ? void 0 : ye.map((E, Se) => E = {
|
|
1218
|
+
label: (E == null ? void 0 : E.label) ?? "",
|
|
1219
|
+
type: (E == null ? void 0 : E.type) ?? "",
|
|
1220
|
+
textColor: (E == null ? void 0 : E.textColor) ?? "#000000",
|
|
1221
|
+
id: (E == null ? void 0 : E.id) ?? Se
|
|
1222
|
+
}), ke.value = (Ie = ke.value) == null ? void 0 : Ie.map((E, Se) => E = {
|
|
1223
|
+
label: (E == null ? void 0 : E.label) ?? "",
|
|
1224
|
+
type: (E == null ? void 0 : E.type) ?? "",
|
|
1225
|
+
background: (E == null ? void 0 : E.background) ?? "var(--ssComponent-primary-color)",
|
|
1226
|
+
id: (E == null ? void 0 : E.id) ?? Se
|
|
1227
|
+
}), be.value)
|
|
1228
|
+
be.value = (Ee = be.value) == null ? void 0 : Ee.map((E) => {
|
|
1229
|
+
f.value++;
|
|
1230
|
+
let Se = E;
|
|
1231
|
+
return Se.id = f.value, Se;
|
|
1232
|
+
});
|
|
1233
|
+
else {
|
|
1234
|
+
let E = [];
|
|
1235
|
+
const Se = (Oe = hs(l(w.value))) == null ? void 0 : Oe.filter((xe) => (xe == null ? void 0 : xe.prop) !== "operate");
|
|
1236
|
+
Se == null || Se.forEach((xe) => {
|
|
1237
|
+
var Ge;
|
|
1238
|
+
f.value++, E.push({
|
|
1239
|
+
label: xe == null ? void 0 : xe.label,
|
|
1240
|
+
name: xe == null ? void 0 : xe.label,
|
|
1241
|
+
type: xe != null && xe.groupSelect ? "Select" : "Input",
|
|
1242
|
+
value: "",
|
|
1243
|
+
id: f.value,
|
|
1244
|
+
contents: xe == null ? void 0 : xe.options,
|
|
1245
|
+
menuSelect: xe == null ? void 0 : xe.formMenuSelect,
|
|
1246
|
+
groupSelect: (Ge = xe == null ? void 0 : xe.groupSelect) == null ? void 0 : Ge.split(":"),
|
|
1247
|
+
selectRelateType: "关联绑定列"
|
|
1248
|
+
});
|
|
1249
|
+
}), be.value = E;
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
{ deep: !0, immediate: !0 }
|
|
1253
|
+
), (e, a) => {
|
|
1254
|
+
const t = Re("svg-icon"), y = Re("el-button");
|
|
1255
|
+
return le(), _e("div", Zs, [
|
|
1256
|
+
x("div", ei, [
|
|
1257
|
+
x("div", li, [
|
|
1258
|
+
a[2] || (a[2] = x("div", null, we("表头"), -1)),
|
|
1259
|
+
Z(y, {
|
|
1260
|
+
class: "icon-content",
|
|
1261
|
+
onClick: q,
|
|
1262
|
+
id: "themeButton"
|
|
1263
|
+
}, {
|
|
1264
|
+
icon: fe(() => [
|
|
1265
|
+
Z(t, {
|
|
1266
|
+
name: "Plus",
|
|
1267
|
+
class: "icon-size"
|
|
1268
|
+
})
|
|
1269
|
+
]),
|
|
1270
|
+
default: fe(() => [
|
|
1271
|
+
a[1] || (a[1] = $e(" 新增 "))
|
|
1272
|
+
]),
|
|
1273
|
+
_: 1,
|
|
1274
|
+
__: [1]
|
|
1275
|
+
})
|
|
1276
|
+
]),
|
|
1277
|
+
x("div", ai, [
|
|
1278
|
+
(le(!0), _e(Ue, null, Ne(w.value, (D, N) => (le(), _e("div", { key: N }, [
|
|
1279
|
+
x("div", si, [
|
|
1280
|
+
x("div", ii, we(D == null ? void 0 : D.label), 1),
|
|
1281
|
+
x("div", oi, [
|
|
1282
|
+
Z(t, {
|
|
1283
|
+
name: "ChildAdd",
|
|
1284
|
+
class: "svg-icon-content",
|
|
1285
|
+
style: { width: "24px", height: "24px" },
|
|
1286
|
+
onClick: (he) => Q(D)
|
|
1287
|
+
}, null, 8, ["onClick"]),
|
|
1288
|
+
Z(t, {
|
|
1289
|
+
name: "ChildFix",
|
|
1290
|
+
class: "svg-icon-content",
|
|
1291
|
+
style: { width: "24px", height: "24px" },
|
|
1292
|
+
onClick: (he) => g(D)
|
|
1293
|
+
}, null, 8, ["onClick"]),
|
|
1294
|
+
Z(t, {
|
|
1295
|
+
name: "ChildDelete",
|
|
1296
|
+
class: "svg-icon-content",
|
|
1297
|
+
style: { width: "24px", height: "24px" },
|
|
1298
|
+
onClick: (he) => ge(D)
|
|
1299
|
+
}, null, 8, ["onClick"])
|
|
1300
|
+
])
|
|
1301
|
+
]),
|
|
1302
|
+
D != null && D.children && D.children.length > 0 ? (le(), _e("div", ni, [
|
|
1303
|
+
Z(Qa, {
|
|
1304
|
+
tableChildContents: D == null ? void 0 : D.children,
|
|
1305
|
+
onDeleteChange: C,
|
|
1306
|
+
onFixChange: ce
|
|
1307
|
+
}, null, 8, ["tableChildContents"])
|
|
1308
|
+
])) : Qe("", !0)
|
|
1309
|
+
]))), 128))
|
|
1310
|
+
]),
|
|
1311
|
+
x("div", ui, [
|
|
1312
|
+
a[4] || (a[4] = x("div", null, we("行内按钮"), -1)),
|
|
1313
|
+
Z(y, {
|
|
1314
|
+
class: "icon-content",
|
|
1315
|
+
id: "themeButton",
|
|
1316
|
+
onClick: $
|
|
1317
|
+
}, {
|
|
1318
|
+
icon: fe(() => [
|
|
1319
|
+
Z(t, {
|
|
1320
|
+
name: "Plus",
|
|
1321
|
+
class: "icon-size"
|
|
1322
|
+
})
|
|
1323
|
+
]),
|
|
1324
|
+
default: fe(() => [
|
|
1325
|
+
a[3] || (a[3] = $e(" 新增 "))
|
|
1326
|
+
]),
|
|
1327
|
+
_: 1,
|
|
1328
|
+
__: [3]
|
|
1329
|
+
})
|
|
1330
|
+
]),
|
|
1331
|
+
x("div", ri, [
|
|
1332
|
+
(le(!0), _e(Ue, null, Ne(te.value, (D, N) => (le(), _e("div", { key: N }, [
|
|
1333
|
+
x("div", ci, [
|
|
1334
|
+
x("div", ti, we(D == null ? void 0 : D.label), 1),
|
|
1335
|
+
x("div", di, [
|
|
1336
|
+
Z(t, {
|
|
1337
|
+
name: "ChildFix",
|
|
1338
|
+
style: { width: "24px", height: "24px" },
|
|
1339
|
+
class: "svg-icon-content",
|
|
1340
|
+
onClick: (he) => ne(D)
|
|
1341
|
+
}, null, 8, ["onClick"]),
|
|
1342
|
+
Z(t, {
|
|
1343
|
+
name: "ChildDelete",
|
|
1344
|
+
class: "svg-icon-content",
|
|
1345
|
+
style: { width: "24px", height: "24px" },
|
|
1346
|
+
onClick: (he) => se(D)
|
|
1347
|
+
}, null, 8, ["onClick"])
|
|
1348
|
+
])
|
|
1349
|
+
])
|
|
1350
|
+
]))), 128))
|
|
1351
|
+
]),
|
|
1352
|
+
x("div", pi, [
|
|
1353
|
+
a[6] || (a[6] = x("div", null, we("表外按钮"), -1)),
|
|
1354
|
+
Z(y, {
|
|
1355
|
+
class: "icon-content",
|
|
1356
|
+
id: "themeButton",
|
|
1357
|
+
onClick: De
|
|
1358
|
+
}, {
|
|
1359
|
+
icon: fe(() => [
|
|
1360
|
+
Z(t, {
|
|
1361
|
+
name: "Plus",
|
|
1362
|
+
class: "icon-size"
|
|
1363
|
+
})
|
|
1364
|
+
]),
|
|
1365
|
+
default: fe(() => [
|
|
1366
|
+
a[5] || (a[5] = $e(" 新增 "))
|
|
1367
|
+
]),
|
|
1368
|
+
_: 1,
|
|
1369
|
+
__: [5]
|
|
1370
|
+
})
|
|
1371
|
+
]),
|
|
1372
|
+
x("div", fi, [
|
|
1373
|
+
(le(!0), _e(Ue, null, Ne(ke.value, (D, N) => (le(), _e("div", { key: N }, [
|
|
1374
|
+
x("div", vi, [
|
|
1375
|
+
x("div", hi, we(D == null ? void 0 : D.label), 1),
|
|
1376
|
+
x("div", mi, [
|
|
1377
|
+
Z(t, {
|
|
1378
|
+
name: "ChildFix",
|
|
1379
|
+
style: { width: "24px", height: "24px" },
|
|
1380
|
+
class: "svg-icon-content",
|
|
1381
|
+
onClick: (he) => oe(D)
|
|
1382
|
+
}, null, 8, ["onClick"]),
|
|
1383
|
+
Z(t, {
|
|
1384
|
+
name: "ChildDelete",
|
|
1385
|
+
class: "svg-icon-content",
|
|
1386
|
+
style: { width: "24px", height: "24px" },
|
|
1387
|
+
onClick: (he) => T(D)
|
|
1388
|
+
}, null, 8, ["onClick"])
|
|
1389
|
+
])
|
|
1390
|
+
])
|
|
1391
|
+
]))), 128))
|
|
1392
|
+
]),
|
|
1393
|
+
x("div", yi, [
|
|
1394
|
+
a[8] || (a[8] = x("div", null, we("表格弹框字段设置"), -1)),
|
|
1395
|
+
Z(y, {
|
|
1396
|
+
class: "icon-content",
|
|
1397
|
+
id: "themeButton",
|
|
1398
|
+
onClick: Fe
|
|
1399
|
+
}, {
|
|
1400
|
+
icon: fe(() => [
|
|
1401
|
+
Z(t, {
|
|
1402
|
+
name: "Plus",
|
|
1403
|
+
class: "icon-size"
|
|
1404
|
+
})
|
|
1405
|
+
]),
|
|
1406
|
+
default: fe(() => [
|
|
1407
|
+
a[7] || (a[7] = $e(" 新增 "))
|
|
1408
|
+
]),
|
|
1409
|
+
_: 1,
|
|
1410
|
+
__: [7]
|
|
1411
|
+
})
|
|
1412
|
+
]),
|
|
1413
|
+
x("div", bi, [
|
|
1414
|
+
(le(!0), _e(Ue, null, Ne(be.value, (D, N) => (le(), _e("div", { key: N }, [
|
|
1415
|
+
x("div", gi, [
|
|
1416
|
+
x("div", ki, we(D == null ? void 0 : D.label), 1),
|
|
1417
|
+
x("div", _i, [
|
|
1418
|
+
Z(t, {
|
|
1419
|
+
name: "ChildFix",
|
|
1420
|
+
style: { width: "24px", height: "24px" },
|
|
1421
|
+
class: "svg-icon-content",
|
|
1422
|
+
onClick: (he) => p(D)
|
|
1423
|
+
}, null, 8, ["onClick"]),
|
|
1424
|
+
Z(t, {
|
|
1425
|
+
name: "ChildDelete",
|
|
1426
|
+
class: "svg-icon-content",
|
|
1427
|
+
style: { width: "24px", height: "24px" },
|
|
1428
|
+
onClick: (he) => v(D)
|
|
1429
|
+
}, null, 8, ["onClick"])
|
|
1430
|
+
])
|
|
1431
|
+
])
|
|
1432
|
+
]))), 128))
|
|
1433
|
+
]),
|
|
1434
|
+
a[10] || (a[10] = x("div", { class: "operate-title" }, [
|
|
1435
|
+
x("div", null, we("分页"))
|
|
1436
|
+
], -1)),
|
|
1437
|
+
x("div", Ci, [
|
|
1438
|
+
x("div", wi, [
|
|
1439
|
+
a[9] || (a[9] = x("div", { class: "operate-center-content" }, we("是否分页"), -1)),
|
|
1440
|
+
Z(Ma, {
|
|
1441
|
+
modelValue: B.value,
|
|
1442
|
+
"onUpdate:modelValue": a[0] || (a[0] = (D) => B.value = D)
|
|
1443
|
+
}, null, 8, ["modelValue"])
|
|
1444
|
+
])
|
|
1445
|
+
])
|
|
1446
|
+
]),
|
|
1447
|
+
Z(ll, {
|
|
1448
|
+
visible: R.value,
|
|
1449
|
+
onBeforeDestroy: K,
|
|
1450
|
+
width: 840
|
|
1451
|
+
}, {
|
|
1452
|
+
default: fe(() => [
|
|
1453
|
+
x("div", Di, [
|
|
1454
|
+
(le(), Ve(el, {
|
|
1455
|
+
rowContents: X.value,
|
|
1456
|
+
key: X.value,
|
|
1457
|
+
isEnableWrap: !0,
|
|
1458
|
+
onChange: z
|
|
1459
|
+
}, null, 8, ["rowContents"]))
|
|
1460
|
+
])
|
|
1461
|
+
]),
|
|
1462
|
+
footer: fe(() => [
|
|
1463
|
+
x("div", Ii, [
|
|
1464
|
+
Z(y, {
|
|
1465
|
+
onClick: K,
|
|
1466
|
+
class: "cancel-button button",
|
|
1467
|
+
id: "themeBorderButton"
|
|
1468
|
+
}, {
|
|
1469
|
+
default: fe(() => a[11] || (a[11] = [
|
|
1470
|
+
$e(we("取消"))
|
|
1471
|
+
])),
|
|
1472
|
+
_: 1,
|
|
1473
|
+
__: [11]
|
|
1474
|
+
}),
|
|
1475
|
+
Z(y, {
|
|
1476
|
+
class: "ok-button button",
|
|
1477
|
+
onClick: n,
|
|
1478
|
+
id: "themeButton"
|
|
1479
|
+
}, {
|
|
1480
|
+
default: fe(() => a[12] || (a[12] = [
|
|
1481
|
+
$e(we("确认"))
|
|
1482
|
+
])),
|
|
1483
|
+
_: 1,
|
|
1484
|
+
__: [12]
|
|
1485
|
+
})
|
|
1486
|
+
])
|
|
1487
|
+
]),
|
|
1488
|
+
_: 1
|
|
1489
|
+
}, 8, ["visible"]),
|
|
1490
|
+
Z(ll, {
|
|
1491
|
+
visible: M.value,
|
|
1492
|
+
onBeforeDestroy: de,
|
|
1493
|
+
width: 840
|
|
1494
|
+
}, {
|
|
1495
|
+
default: fe(() => [
|
|
1496
|
+
x("div", xi, [
|
|
1497
|
+
(le(), Ve(el, {
|
|
1498
|
+
rowContents: I.value,
|
|
1499
|
+
key: I.value,
|
|
1500
|
+
isEnableWrap: !0,
|
|
1501
|
+
onChange: H
|
|
1502
|
+
}, null, 8, ["rowContents"]))
|
|
1503
|
+
])
|
|
1504
|
+
]),
|
|
1505
|
+
footer: fe(() => [
|
|
1506
|
+
x("div", Ti, [
|
|
1507
|
+
Z(y, {
|
|
1508
|
+
onClick: de,
|
|
1509
|
+
class: "cancel-button button",
|
|
1510
|
+
id: "themeBorderButton"
|
|
1511
|
+
}, {
|
|
1512
|
+
default: fe(() => a[13] || (a[13] = [
|
|
1513
|
+
$e(we("取消"))
|
|
1514
|
+
])),
|
|
1515
|
+
_: 1,
|
|
1516
|
+
__: [13]
|
|
1517
|
+
}),
|
|
1518
|
+
Z(y, {
|
|
1519
|
+
class: "ok-button button",
|
|
1520
|
+
onClick: _,
|
|
1521
|
+
id: "themeButton"
|
|
1522
|
+
}, {
|
|
1523
|
+
default: fe(() => a[14] || (a[14] = [
|
|
1524
|
+
$e(we("确认"))
|
|
1525
|
+
])),
|
|
1526
|
+
_: 1,
|
|
1527
|
+
__: [14]
|
|
1528
|
+
})
|
|
1529
|
+
])
|
|
1530
|
+
]),
|
|
1531
|
+
_: 1
|
|
1532
|
+
}, 8, ["visible"]),
|
|
1533
|
+
Z(ll, {
|
|
1534
|
+
visible: ve.value,
|
|
1535
|
+
onBeforeDestroy: O,
|
|
1536
|
+
width: 840
|
|
1537
|
+
}, {
|
|
1538
|
+
default: fe(() => [
|
|
1539
|
+
x("div", Ai, [
|
|
1540
|
+
(le(), Ve(el, {
|
|
1541
|
+
rowContents: c.value,
|
|
1542
|
+
key: c.value,
|
|
1543
|
+
isEnableWrap: !0,
|
|
1544
|
+
onChange: ee
|
|
1545
|
+
}, null, 8, ["rowContents"]))
|
|
1546
|
+
])
|
|
1547
|
+
]),
|
|
1548
|
+
footer: fe(() => [
|
|
1549
|
+
x("div", Ei, [
|
|
1550
|
+
Z(y, {
|
|
1551
|
+
onClick: O,
|
|
1552
|
+
class: "cancel-button button",
|
|
1553
|
+
id: "themeBorderButton"
|
|
1554
|
+
}, {
|
|
1555
|
+
default: fe(() => a[15] || (a[15] = [
|
|
1556
|
+
$e(we("取消"))
|
|
1557
|
+
])),
|
|
1558
|
+
_: 1,
|
|
1559
|
+
__: [15]
|
|
1560
|
+
}),
|
|
1561
|
+
Z(y, {
|
|
1562
|
+
class: "ok-button button",
|
|
1563
|
+
onClick: u,
|
|
1564
|
+
id: "themeButton"
|
|
1565
|
+
}, {
|
|
1566
|
+
default: fe(() => a[16] || (a[16] = [
|
|
1567
|
+
$e(we("确认"))
|
|
1568
|
+
])),
|
|
1569
|
+
_: 1,
|
|
1570
|
+
__: [16]
|
|
1571
|
+
})
|
|
1572
|
+
])
|
|
1573
|
+
]),
|
|
1574
|
+
_: 1
|
|
1575
|
+
}, 8, ["visible"]),
|
|
1576
|
+
Z(ll, {
|
|
1577
|
+
visible: S.value,
|
|
1578
|
+
onBeforeDestroy: k,
|
|
1579
|
+
width: 840
|
|
1580
|
+
}, {
|
|
1581
|
+
default: fe(() => [
|
|
1582
|
+
x("div", Si, [
|
|
1583
|
+
(le(), Ve(el, {
|
|
1584
|
+
rowContents: m.value,
|
|
1585
|
+
key: m.value,
|
|
1586
|
+
isEnableWrap: !0,
|
|
1587
|
+
onChange: b,
|
|
1588
|
+
onChangeVisible: pe,
|
|
1589
|
+
onBlurChange: L
|
|
1590
|
+
}, null, 8, ["rowContents"]))
|
|
1591
|
+
])
|
|
1592
|
+
]),
|
|
1593
|
+
footer: fe(() => [
|
|
1594
|
+
x("div", $i, [
|
|
1595
|
+
Z(y, {
|
|
1596
|
+
onClick: k,
|
|
1597
|
+
class: "cancel-button button",
|
|
1598
|
+
id: "themeBorderButton"
|
|
1599
|
+
}, {
|
|
1600
|
+
default: fe(() => a[17] || (a[17] = [
|
|
1601
|
+
$e(we("取消"))
|
|
1602
|
+
])),
|
|
1603
|
+
_: 1,
|
|
1604
|
+
__: [17]
|
|
1605
|
+
}),
|
|
1606
|
+
Z(y, {
|
|
1607
|
+
class: "ok-button button",
|
|
1608
|
+
onClick: W,
|
|
1609
|
+
id: "themeButton"
|
|
1610
|
+
}, {
|
|
1611
|
+
default: fe(() => a[18] || (a[18] = [
|
|
1612
|
+
$e(we("确认"))
|
|
1613
|
+
])),
|
|
1614
|
+
_: 1,
|
|
1615
|
+
__: [18]
|
|
1616
|
+
})
|
|
1617
|
+
])
|
|
1618
|
+
]),
|
|
1619
|
+
_: 1
|
|
1620
|
+
}, 8, ["visible"])
|
|
1621
|
+
]);
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
}, Fi = /* @__PURE__ */ Me(Bi, [["__scopeId", "data-v-fa521a52"]]), Li = { class: "form-operate-content" }, Oi = { class: "form-operate-item" }, Vi = { class: "operate-title" }, Ri = { class: "operate-content" }, Ui = { class: "fix-content" }, Pi = { class: "fix-button" }, ji = { class: "operate-title" }, Ki = { class: "operate-content" }, Ni = { class: "fix-content" }, Mi = { class: "fix-button" }, Wi = { style: { display: "flex", "justify-content": "space-between" } }, zi = { class: "form-content" }, Ji = { class: "dialog-footer" }, Hi = { class: "form-content" }, Gi = {
|
|
1625
|
+
__name: "operate",
|
|
1626
|
+
props: {
|
|
1627
|
+
itemContents: {
|
|
1628
|
+
type: Array,
|
|
1629
|
+
default: () => []
|
|
1630
|
+
},
|
|
1631
|
+
originalItemContents: {
|
|
1632
|
+
type: Array,
|
|
1633
|
+
default: () => []
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
emits: ["change"],
|
|
1637
|
+
setup(r, { emit: F }) {
|
|
1638
|
+
const h = r, i = F, o = G(!1), R = G([]), S = G([]), w = G(!1), M = G([]), X = G([]), B = G(""), re = G(!1), ae = G(0), Ce = G([]), te = G([]), ke = (s, p) => {
|
|
1639
|
+
if (console.log(345, s), (p == null ? void 0 : p.type) == "Select" && (s == null ? void 0 : s.key) === "selectRelateType") {
|
|
1640
|
+
const v = p == null ? void 0 : p.optionUrl;
|
|
1641
|
+
return (v == null ? void 0 : v.selectRelateType) || p[s.key];
|
|
1642
|
+
}
|
|
1643
|
+
if ((p == null ? void 0 : p.type) == "Select" && (s == null ? void 0 : s.key) === "menuSelect") {
|
|
1644
|
+
const v = p == null ? void 0 : p.optionUrl;
|
|
1645
|
+
return (v == null ? void 0 : v.menuSelect) || p[s.key];
|
|
1646
|
+
}
|
|
1647
|
+
if ((p == null ? void 0 : p.type) == "Select" && (s == null ? void 0 : s.key) === "groupSelect") {
|
|
1648
|
+
const v = p == null ? void 0 : p.optionUrl;
|
|
1649
|
+
return (v == null ? void 0 : v.groupSelect) || p[s.key];
|
|
1650
|
+
}
|
|
1651
|
+
if ((p == null ? void 0 : p.type) == "Select" && (s == null ? void 0 : s.key) === "originalContent")
|
|
1652
|
+
return (p == null ? void 0 : p.value) || p[s.key];
|
|
1653
|
+
if ((p == null ? void 0 : p.type) == "Select" && (s == null ? void 0 : s.key) === "multiple") {
|
|
1654
|
+
const v = p[s.key];
|
|
1655
|
+
return Wa(v) ? v : s.default;
|
|
1656
|
+
}
|
|
1657
|
+
return (s == null ? void 0 : s.label) === "类型" && p[s.key] === "" ? "Input" : (s == null ? void 0 : s.key) === "isFormColHidden" && !p[s.key] ? !1 : p[s.key];
|
|
1658
|
+
}, I = async (s) => {
|
|
1659
|
+
var k, W, oe, T, u, ee;
|
|
1660
|
+
o.value = !0;
|
|
1661
|
+
let p = [];
|
|
1662
|
+
const v = await ((oe = (W = (k = qe) == null ? void 0 : k.find((O) => (O == null ? void 0 : O.key) === ((s == null ? void 0 : s.type) === "" ? "Input" : s == null ? void 0 : s.type))) == null ? void 0 : W.value) == null ? void 0 : oe.value) ?? ((u = (T = qe) == null ? void 0 : T.find((O) => (O == null ? void 0 : O.key) === ((s == null ? void 0 : s.type) === "" ? "Input" : s == null ? void 0 : s.type))) == null ? void 0 : u.value);
|
|
1663
|
+
if (v == null || v.forEach((O) => {
|
|
1664
|
+
ae.value++, p.push({
|
|
1665
|
+
label: O == null ? void 0 : O.label,
|
|
1666
|
+
name: O == null ? void 0 : O.label,
|
|
1667
|
+
type: O.type,
|
|
1668
|
+
// value: (t?.label === "类型" && content[t.key] === '') ? "Input" : content[t.key],
|
|
1669
|
+
value: ke(O, s),
|
|
1670
|
+
id: ae.value,
|
|
1671
|
+
contents: O == null ? void 0 : O.options,
|
|
1672
|
+
width: (s == null ? void 0 : s.width) ?? 1
|
|
1673
|
+
});
|
|
1674
|
+
}), s != null && s.menuSelect && ((ee = s == null ? void 0 : s.menuSelect) == null ? void 0 : ee.length) > 0) {
|
|
1675
|
+
const O = await Fl(s == null ? void 0 : s.menuSelect);
|
|
1676
|
+
p = p == null ? void 0 : p.map((ne) => ((ne == null ? void 0 : ne.name) === "组信息选项" && (ne.contents = O), ne));
|
|
1677
|
+
}
|
|
1678
|
+
B.value = s == null ? void 0 : s.id, R.value = await bl(Tl(p)), S.value = await bl(Tl(p));
|
|
1679
|
+
}, A = (s) => {
|
|
1680
|
+
var v;
|
|
1681
|
+
w.value = !0;
|
|
1682
|
+
let p = [];
|
|
1683
|
+
(v = ma) == null || v.forEach((k) => {
|
|
1684
|
+
ae.value++, p.push({
|
|
1685
|
+
label: k == null ? void 0 : k.label,
|
|
1686
|
+
name: k == null ? void 0 : k.label,
|
|
1687
|
+
type: k.type,
|
|
1688
|
+
value: (k == null ? void 0 : k.label) === "类型" && s[k.key] === "" ? "normal" : s[k.key],
|
|
1689
|
+
id: ae.value,
|
|
1690
|
+
contents: k == null ? void 0 : k.options
|
|
1691
|
+
});
|
|
1692
|
+
}), Ce.value = p, te.value = p, B.value = s == null ? void 0 : s.id;
|
|
1693
|
+
};
|
|
1694
|
+
Xe(
|
|
1695
|
+
() => re.value,
|
|
1696
|
+
() => {
|
|
1697
|
+
var p, v;
|
|
1698
|
+
let s = l(h.originalItemContents);
|
|
1699
|
+
(p = l(h.originalItemContents)) != null && p.find((k) => (k == null ? void 0 : k.key) === "enableWrap") ? s = (v = l(h.originalItemContents)) == null ? void 0 : v.map((k) => ((k == null ? void 0 : k.key) === "enableWrap" && (k.contents = !re.value), k)) : s.push({
|
|
1700
|
+
key: "enableWrap",
|
|
1701
|
+
contents: !re.value
|
|
1702
|
+
}), i("change", s);
|
|
1703
|
+
},
|
|
1704
|
+
{ deep: !0 }
|
|
1705
|
+
);
|
|
1706
|
+
const ve = () => {
|
|
1707
|
+
var v, k, W, oe, T;
|
|
1708
|
+
Ce.value = te.value;
|
|
1709
|
+
let s = {};
|
|
1710
|
+
if (B.value !== "" ? s.id = B.value : (ae.value++, s.id = "id" + ae.value), (v = Ce.value) == null || v.forEach((u) => {
|
|
1711
|
+
var O;
|
|
1712
|
+
const ee = (O = ma) == null ? void 0 : O.find((ne) => (ne == null ? void 0 : ne.label) === (u == null ? void 0 : u.label));
|
|
1713
|
+
ee && (s[ee.key] = u.value);
|
|
1714
|
+
}), (k = M.value) != null && k.find((u) => u.id === s.id))
|
|
1715
|
+
M.value = (W = M.value) == null ? void 0 : W.map((u) => (u.id === s.id && (u = s), u));
|
|
1716
|
+
else {
|
|
1717
|
+
let u = l(M.value);
|
|
1718
|
+
M.value || (M.value = []), u.push(s), M.value = u;
|
|
1719
|
+
}
|
|
1720
|
+
w.value = !1, B.value = "";
|
|
1721
|
+
let p = l(h.originalItemContents);
|
|
1722
|
+
(oe = l(h.originalItemContents)) != null && oe.find((u) => (u == null ? void 0 : u.key) === "formButton") ? p = (T = l(h.originalItemContents)) == null ? void 0 : T.map((u) => ((u == null ? void 0 : u.key) === "formButton" && (u.contents = M.value), u)) : p.push({
|
|
1723
|
+
key: "formButton",
|
|
1724
|
+
contents: M.value
|
|
1725
|
+
}), i("change", p);
|
|
1726
|
+
}, c = (s) => {
|
|
1727
|
+
Cl.confirm("是否确认要删除", "", {
|
|
1728
|
+
confirmButtonText: "确认",
|
|
1729
|
+
cancelButtonText: "取消",
|
|
1730
|
+
type: "warning"
|
|
1731
|
+
}).then(
|
|
1732
|
+
() => {
|
|
1733
|
+
var p, v;
|
|
1734
|
+
X.value = (p = l(X.value)) == null ? void 0 : p.filter((k) => (k == null ? void 0 : k.id) !== (s == null ? void 0 : s.id)), i("change", (v = l(h.originalItemContents)) == null ? void 0 : v.map((k) => ((k == null ? void 0 : k.key) === "formContent" && (k.contents = X.value), k))), tl({
|
|
1735
|
+
type: "success",
|
|
1736
|
+
message: "删除成功"
|
|
1737
|
+
});
|
|
1738
|
+
}
|
|
1739
|
+
).catch(() => {
|
|
1740
|
+
});
|
|
1741
|
+
}, d = (s) => {
|
|
1742
|
+
Cl.confirm("是否确认要删除", "", {
|
|
1743
|
+
confirmButtonText: "确认",
|
|
1744
|
+
cancelButtonText: "取消",
|
|
1745
|
+
type: "warning"
|
|
1746
|
+
}).then(
|
|
1747
|
+
() => {
|
|
1748
|
+
var p, v;
|
|
1749
|
+
M.value = (p = l(M.value)) == null ? void 0 : p.filter((k) => (k == null ? void 0 : k.id) !== (s == null ? void 0 : s.id)), i("change", (v = l(h.originalItemContents)) == null ? void 0 : v.map((k) => ((k == null ? void 0 : k.key) === "formButton" && (k.contents = M.value), k))), tl({
|
|
1750
|
+
type: "success",
|
|
1751
|
+
message: "删除成功"
|
|
1752
|
+
});
|
|
1753
|
+
}
|
|
1754
|
+
).catch(() => {
|
|
1755
|
+
});
|
|
1756
|
+
}, f = () => {
|
|
1757
|
+
var p;
|
|
1758
|
+
w.value = !0;
|
|
1759
|
+
let s = [];
|
|
1760
|
+
(p = ma) == null || p.forEach((v) => {
|
|
1761
|
+
ae.value++, s.push({
|
|
1762
|
+
label: v == null ? void 0 : v.label,
|
|
1763
|
+
name: v == null ? void 0 : v.label,
|
|
1764
|
+
type: v.type,
|
|
1765
|
+
value: (v == null ? void 0 : v.label) === "类型" ? "normal" : "",
|
|
1766
|
+
id: ae.value,
|
|
1767
|
+
contents: v == null ? void 0 : v.options
|
|
1768
|
+
});
|
|
1769
|
+
}), Ce.value = s, te.value = s;
|
|
1770
|
+
}, m = () => {
|
|
1771
|
+
var p, v, k;
|
|
1772
|
+
o.value = !0;
|
|
1773
|
+
let s = [];
|
|
1774
|
+
(k = (v = (p = qe) == null ? void 0 : p.find((W) => (W == null ? void 0 : W.key) === "Input")) == null ? void 0 : v.value) == null || k.forEach((W) => {
|
|
1775
|
+
ae.value++, s.push({
|
|
1776
|
+
label: W == null ? void 0 : W.label,
|
|
1777
|
+
name: W == null ? void 0 : W.label,
|
|
1778
|
+
type: W.type,
|
|
1779
|
+
value: (W == null ? void 0 : W.label) === "类型" ? "Input" : "",
|
|
1780
|
+
id: ae.value,
|
|
1781
|
+
contents: W == null ? void 0 : W.options
|
|
1782
|
+
});
|
|
1783
|
+
}), R.value = s, S.value = s;
|
|
1784
|
+
}, ie = (s) => {
|
|
1785
|
+
let p = l(te.value);
|
|
1786
|
+
p = p == null ? void 0 : p.map((v) => (v.value = s == null ? void 0 : s[v.name], v)), te.value = p;
|
|
1787
|
+
}, be = (s) => {
|
|
1788
|
+
const p = s.find((W) => (W == null ? void 0 : W.name) === "类型");
|
|
1789
|
+
if ((p == null ? void 0 : p.value) != "Select")
|
|
1790
|
+
return;
|
|
1791
|
+
const v = s.find((W) => (W == null ? void 0 : W.name) === "多选"), k = s.find((W) => (W == null ? void 0 : W.name) === "初始值");
|
|
1792
|
+
v != null && v.value && Ba(k.value) && (k.value = [k.value]), !(v != null && v.value) && !Ba(k.value) && (k.value = "");
|
|
1793
|
+
}, De = async (s) => {
|
|
1794
|
+
var p, v, k, W, oe, T, u, ee, O, ne, se, q;
|
|
1795
|
+
if ((s == null ? void 0 : s.类型) !== ((v = (p = S.value) == null ? void 0 : p.find(($) => ($ == null ? void 0 : $.label) === "类型")) == null ? void 0 : v.value)) {
|
|
1796
|
+
let $ = [];
|
|
1797
|
+
const H = await ((oe = (W = (k = qe) == null ? void 0 : k.find((_) => (_ == null ? void 0 : _.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : W.value) == null ? void 0 : oe.value) ? await ((ne = (O = (ee = qe) == null ? void 0 : ee.find((_) => (_ == null ? void 0 : _.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : O.value) == null ? void 0 : ne.value) : (u = (T = qe) == null ? void 0 : T.find((_) => (_ == null ? void 0 : _.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : u.value;
|
|
1798
|
+
if (H == null || H.forEach((_) => {
|
|
1799
|
+
var Q, C;
|
|
1800
|
+
ae.value++;
|
|
1801
|
+
const de = Es(_ == null ? void 0 : _.default) ? (s == null ? void 0 : s[_.label]) ?? _.value ?? "" : _ == null ? void 0 : _.default;
|
|
1802
|
+
$.push({
|
|
1803
|
+
label: _ == null ? void 0 : _.label,
|
|
1804
|
+
name: _ == null ? void 0 : _.label,
|
|
1805
|
+
type: _.type,
|
|
1806
|
+
value: de,
|
|
1807
|
+
id: ae.value,
|
|
1808
|
+
contents: _ == null ? void 0 : _.options,
|
|
1809
|
+
width: ((C = (Q = S.value) == null ? void 0 : Q[0]) == null ? void 0 : C.width) ?? 1
|
|
1810
|
+
});
|
|
1811
|
+
}), s != null && s.菜单选项 && ((se = s == null ? void 0 : s.菜单选项) == null ? void 0 : se.length) > 0) {
|
|
1812
|
+
const _ = await Fl(s == null ? void 0 : s.菜单选项);
|
|
1813
|
+
$ = $ == null ? void 0 : $.map((de) => ((de == null ? void 0 : de.name) === "组信息选项" && (de.contents = _), de));
|
|
1814
|
+
}
|
|
1815
|
+
be($), S.value = await bl(l($)), R.value = await bl(l($));
|
|
1816
|
+
} else {
|
|
1817
|
+
let $ = l(S.value);
|
|
1818
|
+
if ($ = $ == null ? void 0 : $.map((H) => (H.value = s == null ? void 0 : s[H.name], H)), s != null && s.菜单选项 && ((q = s == null ? void 0 : s.菜单选项) == null ? void 0 : q.length) > 0) {
|
|
1819
|
+
const H = await Fl(s == null ? void 0 : s.菜单选项);
|
|
1820
|
+
$ = $ == null ? void 0 : $.map((_) => ((_ == null ? void 0 : _.name) === "组信息选项" && (_.contents = H), _));
|
|
1821
|
+
}
|
|
1822
|
+
$ = Tl($), be($), S.value = await bl(l($));
|
|
1823
|
+
}
|
|
1824
|
+
}, Fe = (s) => {
|
|
1825
|
+
s || (R.value = S.value);
|
|
1826
|
+
}, pe = async (s) => {
|
|
1827
|
+
await De(s), R.value = S.value;
|
|
1828
|
+
}, b = async () => {
|
|
1829
|
+
var k, W, oe, T, u, ee, O, ne, se, q, $, H;
|
|
1830
|
+
R.value = S.value;
|
|
1831
|
+
let s = {};
|
|
1832
|
+
s.width = ((W = (k = R.value) == null ? void 0 : k[0]) == null ? void 0 : W.width) ?? 1, B.value !== "" ? s.id = B.value : (ae.value++, s.id = "id" + ae.value);
|
|
1833
|
+
let p = await ((u = (T = (oe = qe) == null ? void 0 : oe.find((_) => {
|
|
1834
|
+
var de, Q;
|
|
1835
|
+
return (_ == null ? void 0 : _.key) === (((Q = (de = R.value) == null ? void 0 : de.find((C) => (C == null ? void 0 : C.label) === "类型")) == null ? void 0 : Q.value) ?? "label");
|
|
1836
|
+
})) == null ? void 0 : T.value) == null ? void 0 : u.value) ?? ((O = (ee = qe) == null ? void 0 : ee.find((_) => {
|
|
1837
|
+
var de, Q;
|
|
1838
|
+
return (_ == null ? void 0 : _.key) === (((Q = (de = R.value) == null ? void 0 : de.find((C) => (C == null ? void 0 : C.label) === "类型")) == null ? void 0 : Q.value) ?? "label");
|
|
1839
|
+
})) == null ? void 0 : O.value);
|
|
1840
|
+
if ((ne = R.value) == null || ne.forEach((_) => {
|
|
1841
|
+
const de = p == null ? void 0 : p.find((Q) => (Q == null ? void 0 : Q.label) === (_ == null ? void 0 : _.label));
|
|
1842
|
+
de && (s[de.key] = _.value);
|
|
1843
|
+
}), s.width = s.width ? s.width : 1, s.key = s == null ? void 0 : s.label, s.isFormColHidden = s == null ? void 0 : s.isFormColHidden, (se = X.value) != null && se.find((_) => _.id === s.id))
|
|
1844
|
+
X.value = (q = X.value) == null ? void 0 : q.map((_) => (_.id === s.id && (_ = s), _));
|
|
1845
|
+
else {
|
|
1846
|
+
let _ = l(X.value);
|
|
1847
|
+
_.push(s), X.value = _;
|
|
1848
|
+
}
|
|
1849
|
+
X.value = X.value.map(({ id: _, ...de }) => de), o.value = !1, B.value = "";
|
|
1850
|
+
let v = l(h.originalItemContents);
|
|
1851
|
+
($ = l(h.originalItemContents)) != null && $.find((_) => (_ == null ? void 0 : _.key) === "formContent") ? v = (H = l(h.originalItemContents)) == null ? void 0 : H.map((_) => ((_ == null ? void 0 : _.key) === "formContent" && (_.contents = X.value), _)) : v.push({
|
|
1852
|
+
key: "formContent",
|
|
1853
|
+
contents: X.value
|
|
1854
|
+
}), i("change", v);
|
|
1855
|
+
}, L = () => {
|
|
1856
|
+
o.value = !1, w.value = !1, B.value = "", S.value = [], te.value = [];
|
|
1857
|
+
};
|
|
1858
|
+
return Xe(
|
|
1859
|
+
() => h.originalItemContents,
|
|
1860
|
+
() => {
|
|
1861
|
+
var p, v, k, W, oe, T;
|
|
1862
|
+
if (!h.originalItemContents || h.originalItemContents.length === 0) return;
|
|
1863
|
+
const s = l(h.originalItemContents);
|
|
1864
|
+
X.value = ((p = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "formContent")) == null ? void 0 : p.contents) ?? [], M.value = ((v = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "formButton")) == null ? void 0 : v.contents) ?? [], re.value = (k = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && k.contents ? !((W = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && W.contents) : !0, X.value = (oe = l(X.value)) == null ? void 0 : oe.map((u, ee) => {
|
|
1865
|
+
var ne;
|
|
1866
|
+
let O = u;
|
|
1867
|
+
return O.id = (u == null ? void 0 : u.id) ?? ee, 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 = ((ne = u == null ? void 0 : u.options) == null ? void 0 : ne.length) === 0 ? (u == null ? void 0 : u.contents) ?? "" : u == null ? void 0 : u.options, O;
|
|
1868
|
+
}), X.value = Tl(X.value), M.value = (T = M.value) == null ? void 0 : T.map((u, ee) => u = {
|
|
1869
|
+
label: (u == null ? void 0 : u.label) ?? "",
|
|
1870
|
+
type: (u == null ? void 0 : u.type) ?? "",
|
|
1871
|
+
background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)",
|
|
1872
|
+
id: ee
|
|
1873
|
+
});
|
|
1874
|
+
},
|
|
1875
|
+
{ deep: !0, immediate: !0 }
|
|
1876
|
+
), (s, p) => {
|
|
1877
|
+
const v = Re("svg-icon"), k = Re("el-button");
|
|
1878
|
+
return le(), _e("div", Li, [
|
|
1879
|
+
x("div", Oi, [
|
|
1880
|
+
x("div", Vi, [
|
|
1881
|
+
p[2] || (p[2] = x("div", null, we("表单内容"), -1)),
|
|
1882
|
+
Z(k, {
|
|
1883
|
+
class: "icon-content",
|
|
1884
|
+
id: "themeButton",
|
|
1885
|
+
onClick: m
|
|
1886
|
+
}, {
|
|
1887
|
+
icon: fe(() => [
|
|
1888
|
+
Z(v, {
|
|
1889
|
+
name: "Plus",
|
|
1890
|
+
class: "icon-size"
|
|
1891
|
+
})
|
|
1892
|
+
]),
|
|
1893
|
+
default: fe(() => [
|
|
1894
|
+
p[1] || (p[1] = x("div", null, we("新增"), -1))
|
|
1895
|
+
]),
|
|
1896
|
+
_: 1,
|
|
1897
|
+
__: [1]
|
|
1898
|
+
})
|
|
1899
|
+
]),
|
|
1900
|
+
x("div", Ri, [
|
|
1901
|
+
(le(!0), _e(Ue, null, Ne(X.value, (W, oe) => (le(), _e("div", { key: oe }, [
|
|
1902
|
+
x("div", Ui, [
|
|
1903
|
+
x("div", null, we(W.label), 1),
|
|
1904
|
+
x("div", Pi, [
|
|
1905
|
+
Z(v, {
|
|
1906
|
+
name: "ChildFix",
|
|
1907
|
+
class: "svg-icon-content",
|
|
1908
|
+
style: { width: "24px", height: "24px" },
|
|
1909
|
+
onClick: (T) => I(W)
|
|
1910
|
+
}, null, 8, ["onClick"]),
|
|
1911
|
+
Z(v, {
|
|
1912
|
+
name: "ChildDelete",
|
|
1913
|
+
class: "svg-icon-content",
|
|
1914
|
+
style: { width: "24px", height: "24px" },
|
|
1915
|
+
onClick: (T) => c(W)
|
|
1916
|
+
}, null, 8, ["onClick"])
|
|
1917
|
+
])
|
|
1918
|
+
])
|
|
1919
|
+
]))), 128))
|
|
1920
|
+
]),
|
|
1921
|
+
x("div", ji, [
|
|
1922
|
+
p[4] || (p[4] = x("div", null, we("表单按钮"), -1)),
|
|
1923
|
+
Z(k, {
|
|
1924
|
+
class: "icon-content",
|
|
1925
|
+
id: "themeButton",
|
|
1926
|
+
onClick: f
|
|
1927
|
+
}, {
|
|
1928
|
+
icon: fe(() => [
|
|
1929
|
+
Z(v, {
|
|
1930
|
+
name: "Plus",
|
|
1931
|
+
class: "icon-size"
|
|
1932
|
+
})
|
|
1933
|
+
]),
|
|
1934
|
+
default: fe(() => [
|
|
1935
|
+
p[3] || (p[3] = $e(" 新增 "))
|
|
1936
|
+
]),
|
|
1937
|
+
_: 1,
|
|
1938
|
+
__: [3]
|
|
1939
|
+
})
|
|
1940
|
+
]),
|
|
1941
|
+
x("div", Ki, [
|
|
1942
|
+
(le(!0), _e(Ue, null, Ne(M.value, (W, oe) => (le(), _e("div", { key: oe }, [
|
|
1943
|
+
x("div", Ni, [
|
|
1944
|
+
x("div", null, we(W.label), 1),
|
|
1945
|
+
x("div", Mi, [
|
|
1946
|
+
Z(v, {
|
|
1947
|
+
name: "ChildFix",
|
|
1948
|
+
class: "svg-icon-content",
|
|
1949
|
+
style: { width: "24px", height: "24px" },
|
|
1950
|
+
onClick: (T) => A(W)
|
|
1951
|
+
}, null, 8, ["onClick"]),
|
|
1952
|
+
Z(v, {
|
|
1953
|
+
name: "ChildDelete",
|
|
1954
|
+
class: "svg-icon-content",
|
|
1955
|
+
style: { width: "24px", height: "24px" },
|
|
1956
|
+
onClick: (T) => d(W)
|
|
1957
|
+
}, null, 8, ["onClick"])
|
|
1958
|
+
])
|
|
1959
|
+
])
|
|
1960
|
+
]))), 128))
|
|
1961
|
+
]),
|
|
1962
|
+
p[6] || (p[6] = x("div", { class: "operate-title" }, [
|
|
1963
|
+
x("div", null, we("表单布局"))
|
|
1964
|
+
], -1)),
|
|
1965
|
+
x("div", Wi, [
|
|
1966
|
+
p[5] || (p[5] = x("div", { class: "operate-center-content" }, we("是否自动撑宽"), -1)),
|
|
1967
|
+
Z(Ma, {
|
|
1968
|
+
modelValue: re.value,
|
|
1969
|
+
"onUpdate:modelValue": p[0] || (p[0] = (W) => re.value = W)
|
|
1970
|
+
}, null, 8, ["modelValue"])
|
|
1971
|
+
])
|
|
1972
|
+
]),
|
|
1973
|
+
Z(ll, {
|
|
1974
|
+
visible: o.value,
|
|
1975
|
+
onBeforeDestroy: L,
|
|
1976
|
+
width: 840
|
|
1977
|
+
}, {
|
|
1978
|
+
default: fe(() => [
|
|
1979
|
+
x("div", zi, [
|
|
1980
|
+
(le(), Ve(el, {
|
|
1981
|
+
rowContents: R.value,
|
|
1982
|
+
key: R.value,
|
|
1983
|
+
isEnableWrap: !0,
|
|
1984
|
+
onChange: De,
|
|
1985
|
+
onChangeVisible: Fe,
|
|
1986
|
+
onBlurChange: pe
|
|
1987
|
+
}, null, 8, ["rowContents"]))
|
|
1988
|
+
])
|
|
1989
|
+
]),
|
|
1990
|
+
footer: fe(() => [
|
|
1991
|
+
x("div", Ji, [
|
|
1992
|
+
Z(k, {
|
|
1993
|
+
onClick: L,
|
|
1994
|
+
class: "cancel-button button",
|
|
1995
|
+
id: "themeBorderButton"
|
|
1996
|
+
}, {
|
|
1997
|
+
default: fe(() => p[7] || (p[7] = [
|
|
1998
|
+
$e(we("取消"))
|
|
1999
|
+
])),
|
|
2000
|
+
_: 1,
|
|
2001
|
+
__: [7]
|
|
2002
|
+
}),
|
|
2003
|
+
Z(k, {
|
|
2004
|
+
class: "ok-button button",
|
|
2005
|
+
onClick: b,
|
|
2006
|
+
id: "themeButton"
|
|
2007
|
+
}, {
|
|
2008
|
+
default: fe(() => p[8] || (p[8] = [
|
|
2009
|
+
$e(we("确认"))
|
|
2010
|
+
])),
|
|
2011
|
+
_: 1,
|
|
2012
|
+
__: [8]
|
|
2013
|
+
})
|
|
2014
|
+
])
|
|
2015
|
+
]),
|
|
2016
|
+
_: 1
|
|
2017
|
+
}, 8, ["visible"]),
|
|
2018
|
+
Z(ll, {
|
|
2019
|
+
visible: w.value,
|
|
2020
|
+
onBeforeDestroy: L,
|
|
2021
|
+
width: 840
|
|
2022
|
+
}, {
|
|
2023
|
+
default: fe(() => [
|
|
2024
|
+
x("div", Hi, [
|
|
2025
|
+
(le(), Ve(el, {
|
|
2026
|
+
rowContents: Ce.value,
|
|
2027
|
+
key: Ce.value,
|
|
2028
|
+
isEnableWrap: !0,
|
|
2029
|
+
onChange: ie
|
|
2030
|
+
}, null, 8, ["rowContents"]))
|
|
2031
|
+
])
|
|
2032
|
+
]),
|
|
2033
|
+
footer: fe(() => [
|
|
2034
|
+
x("div", { class: "dialog-footer" }, [
|
|
2035
|
+
x("div", {
|
|
2036
|
+
onClick: L,
|
|
2037
|
+
class: "cancel-button button"
|
|
2038
|
+
}, we("取消")),
|
|
2039
|
+
x("div", {
|
|
2040
|
+
class: "ok-button button",
|
|
2041
|
+
onClick: ve
|
|
2042
|
+
}, we("确认"))
|
|
2043
|
+
])
|
|
2044
|
+
]),
|
|
2045
|
+
_: 1
|
|
2046
|
+
}, 8, ["visible"])
|
|
2047
|
+
]);
|
|
2048
|
+
};
|
|
2049
|
+
}
|
|
2050
|
+
}, Pa = /* @__PURE__ */ Me(Gi, [["__scopeId", "data-v-6aae2a5a"]]), qi = { class: "step-module content" }, Qi = { class: "module-data" }, Xi = { class: "step-module layout" }, Yi = { class: "form-content" }, Zi = /* @__PURE__ */ Al({
|
|
2051
|
+
__name: "operate",
|
|
2052
|
+
props: {
|
|
2053
|
+
itemContents: {
|
|
2054
|
+
type: Array,
|
|
2055
|
+
default: () => []
|
|
2056
|
+
},
|
|
2057
|
+
originalItemContents: {
|
|
2058
|
+
type: Array,
|
|
2059
|
+
default: () => []
|
|
2060
|
+
}
|
|
2061
|
+
},
|
|
2062
|
+
emits: ["change"],
|
|
2063
|
+
setup(r, { emit: F }) {
|
|
2064
|
+
const h = r, i = F, o = G([
|
|
2065
|
+
{
|
|
2066
|
+
label: "方向:",
|
|
2067
|
+
prop: "direction",
|
|
2068
|
+
type: "RADIO",
|
|
2069
|
+
contents: [
|
|
2070
|
+
{
|
|
2071
|
+
label: "水平",
|
|
2072
|
+
value: "horizontal"
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
label: "垂直",
|
|
2076
|
+
value: "vertical"
|
|
2077
|
+
}
|
|
2078
|
+
],
|
|
2079
|
+
value: "horizontal"
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
label: "是否居中:",
|
|
2083
|
+
prop: "alignCenter",
|
|
2084
|
+
type: "RADIO",
|
|
2085
|
+
contents: [
|
|
2086
|
+
{
|
|
2087
|
+
label: "是",
|
|
2088
|
+
value: !0
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
label: "否",
|
|
2092
|
+
value: !1
|
|
2093
|
+
}
|
|
2094
|
+
],
|
|
2095
|
+
value: !0
|
|
2096
|
+
},
|
|
2097
|
+
// {
|
|
2098
|
+
// label: '是否交互',
|
|
2099
|
+
// prop: 'allowTrigger',
|
|
2100
|
+
// type: 'RADIO',
|
|
2101
|
+
// contents: [
|
|
2102
|
+
// {
|
|
2103
|
+
// label: '是',
|
|
2104
|
+
// value: true,
|
|
2105
|
+
// }, {
|
|
2106
|
+
// label: '否',
|
|
2107
|
+
// value: false,
|
|
2108
|
+
// },
|
|
2109
|
+
// ],
|
|
2110
|
+
// value: 'horizontal'
|
|
2111
|
+
// },
|
|
2112
|
+
{
|
|
2113
|
+
label: "应用简洁风格",
|
|
2114
|
+
prop: "simple",
|
|
2115
|
+
type: "RADIO",
|
|
2116
|
+
contents: [
|
|
2117
|
+
{
|
|
2118
|
+
label: "是",
|
|
2119
|
+
value: !0
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
label: "否",
|
|
2123
|
+
value: !1
|
|
2124
|
+
}
|
|
2125
|
+
],
|
|
2126
|
+
value: !1
|
|
2127
|
+
}
|
|
2128
|
+
]), R = G([
|
|
2129
|
+
{
|
|
2130
|
+
label: "",
|
|
2131
|
+
prop: "index",
|
|
2132
|
+
type: "input",
|
|
2133
|
+
value: "",
|
|
2134
|
+
isFormColHidden: !0
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
label: "标题",
|
|
2138
|
+
prop: "title",
|
|
2139
|
+
type: "input",
|
|
2140
|
+
value: ""
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
label: "描述",
|
|
2144
|
+
prop: "description",
|
|
2145
|
+
type: "input",
|
|
2146
|
+
value: ""
|
|
2147
|
+
}
|
|
2148
|
+
]), S = G([
|
|
2149
|
+
{
|
|
2150
|
+
label: "取消",
|
|
2151
|
+
background: "#c0c4cc"
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
label: "确认",
|
|
2155
|
+
background: "#436aaf"
|
|
2156
|
+
}
|
|
2157
|
+
]), w = _a({
|
|
2158
|
+
visible: !1,
|
|
2159
|
+
width: "40%",
|
|
2160
|
+
title: "步骤条"
|
|
2161
|
+
}), M = G("create"), X = G({}), B = G([]), re = (I) => {
|
|
2162
|
+
var A;
|
|
2163
|
+
X.value = I, i("change", (A = te()) == null ? void 0 : A.compData);
|
|
2164
|
+
}, ae = (I, A) => {
|
|
2165
|
+
var ve, c;
|
|
2166
|
+
switch (I) {
|
|
2167
|
+
case "create":
|
|
2168
|
+
(ve = R.value) == null || ve.forEach((d) => {
|
|
2169
|
+
d.value = "";
|
|
2170
|
+
}), M.value = "create", w.visible = !0;
|
|
2171
|
+
break;
|
|
2172
|
+
case "update":
|
|
2173
|
+
(c = R.value) == null || c.forEach((d) => {
|
|
2174
|
+
d.value = A[d == null ? void 0 : d.prop];
|
|
2175
|
+
}), M.value = "update", w.visible = !0;
|
|
2176
|
+
break;
|
|
2177
|
+
case "delete":
|
|
2178
|
+
B.value.splice(A, 1), M.value = "delete";
|
|
2179
|
+
break;
|
|
2180
|
+
}
|
|
2181
|
+
}, Ce = (I) => {
|
|
2182
|
+
var A, ve, c;
|
|
2183
|
+
if ((I == null ? void 0 : I.buttonName) === "确认") {
|
|
2184
|
+
const d = l(I == null ? void 0 : I.content);
|
|
2185
|
+
switch (Object.keys(d).forEach((f) => {
|
|
2186
|
+
d[f] === "" && delete d[f];
|
|
2187
|
+
}), M.value) {
|
|
2188
|
+
case "create":
|
|
2189
|
+
B.value.push({
|
|
2190
|
+
...d,
|
|
2191
|
+
index: ((A = B.value) == null ? void 0 : A.length) + 1
|
|
2192
|
+
});
|
|
2193
|
+
break;
|
|
2194
|
+
case "update":
|
|
2195
|
+
B.value = (ve = B.value) == null ? void 0 : ve.map((f) => f.index === (d == null ? void 0 : d.index) ? {
|
|
2196
|
+
...f,
|
|
2197
|
+
title: d == null ? void 0 : d.title,
|
|
2198
|
+
description: d == null ? void 0 : d.description
|
|
2199
|
+
} : f);
|
|
2200
|
+
break;
|
|
2201
|
+
}
|
|
2202
|
+
i("change", (c = te()) == null ? void 0 : c.compData), w.visible = !1;
|
|
2203
|
+
} else
|
|
2204
|
+
w.visible = !1;
|
|
2205
|
+
}, te = () => ({
|
|
2206
|
+
comp: "Step",
|
|
2207
|
+
compData: [
|
|
2208
|
+
{
|
|
2209
|
+
key: "stepList",
|
|
2210
|
+
contents: B.value
|
|
2211
|
+
},
|
|
2212
|
+
{
|
|
2213
|
+
key: "stepConfig",
|
|
2214
|
+
contents: X.value
|
|
2215
|
+
}
|
|
2216
|
+
]
|
|
2217
|
+
}), ke = () => {
|
|
2218
|
+
w.visible = !1;
|
|
2219
|
+
};
|
|
2220
|
+
return Xe(() => h == null ? void 0 : h.itemContents, (I) => {
|
|
2221
|
+
var A, ve;
|
|
2222
|
+
I && (X.value = ((A = I == null ? void 0 : I.find((c) => c.key === "stepConfig")) == null ? void 0 : A.contents) ?? {}, B.value = ((ve = I == null ? void 0 : I.find((c) => c.key === "stepList")) == null ? void 0 : ve.contents) ?? []);
|
|
2223
|
+
}, { immediate: !0 }), (I, A) => {
|
|
2224
|
+
const ve = Re("svg-icon"), c = Re("el-button");
|
|
2225
|
+
return le(), _e(Ue, null, [
|
|
2226
|
+
x("div", null, [
|
|
2227
|
+
x("div", qi, [
|
|
2228
|
+
A[2] || (A[2] = x("h4", { class: "module-title" }, "内容", -1)),
|
|
2229
|
+
Z(c, {
|
|
2230
|
+
class: "module-icon",
|
|
2231
|
+
id: "themeButton",
|
|
2232
|
+
onClick: A[0] || (A[0] = (d) => ae("create"))
|
|
2233
|
+
}, {
|
|
2234
|
+
icon: fe(() => [
|
|
2235
|
+
Z(ve, {
|
|
2236
|
+
name: "Plus",
|
|
2237
|
+
class: "icon-size"
|
|
2238
|
+
})
|
|
2239
|
+
]),
|
|
2240
|
+
default: fe(() => [
|
|
2241
|
+
A[1] || (A[1] = $e(" 新增 "))
|
|
2242
|
+
]),
|
|
2243
|
+
_: 1,
|
|
2244
|
+
__: [1]
|
|
2245
|
+
})
|
|
2246
|
+
]),
|
|
2247
|
+
x("div", Qi, [
|
|
2248
|
+
(le(!0), _e(Ue, null, Ne(B.value, (d, f) => (le(), _e("div", {
|
|
2249
|
+
class: "module-data-item",
|
|
2250
|
+
key: f
|
|
2251
|
+
}, [
|
|
2252
|
+
x("span", null, we(d == null ? void 0 : d.title), 1),
|
|
2253
|
+
x("div", null, [
|
|
2254
|
+
Z(c, {
|
|
2255
|
+
type: "primary",
|
|
2256
|
+
size: "small",
|
|
2257
|
+
onClick: (m) => ae("update", { ...d, index: f + 1 })
|
|
2258
|
+
}, {
|
|
2259
|
+
default: fe(() => A[3] || (A[3] = [
|
|
2260
|
+
$e("修改")
|
|
2261
|
+
])),
|
|
2262
|
+
_: 2,
|
|
2263
|
+
__: [3]
|
|
2264
|
+
}, 1032, ["onClick"]),
|
|
2265
|
+
Z(c, {
|
|
2266
|
+
type: "danger",
|
|
2267
|
+
size: "small",
|
|
2268
|
+
onClick: (m) => ae("delete", f)
|
|
2269
|
+
}, {
|
|
2270
|
+
default: fe(() => A[4] || (A[4] = [
|
|
2271
|
+
$e("删除")
|
|
2272
|
+
])),
|
|
2273
|
+
_: 2,
|
|
2274
|
+
__: [4]
|
|
2275
|
+
}, 1032, ["onClick"])
|
|
2276
|
+
])
|
|
2277
|
+
]))), 128))
|
|
2278
|
+
]),
|
|
2279
|
+
x("div", Xi, [
|
|
2280
|
+
A[5] || (A[5] = x("div", { class: "module-title" }, "布局", -1)),
|
|
2281
|
+
Z(el, {
|
|
2282
|
+
rowContents: o.value,
|
|
2283
|
+
onChange: re
|
|
2284
|
+
}, null, 8, ["rowContents"])
|
|
2285
|
+
])
|
|
2286
|
+
]),
|
|
2287
|
+
Z(ll, {
|
|
2288
|
+
visible: w.visible,
|
|
2289
|
+
title: w.title,
|
|
2290
|
+
onBeforeDestroy: ke,
|
|
2291
|
+
width: w.width
|
|
2292
|
+
}, {
|
|
2293
|
+
default: fe(() => [
|
|
2294
|
+
x("div", Yi, [
|
|
2295
|
+
(le(), Ve(el, {
|
|
2296
|
+
rowContents: R.value,
|
|
2297
|
+
key: R.value,
|
|
2298
|
+
isEnableWrap: !1,
|
|
2299
|
+
isButtonRow: !1,
|
|
2300
|
+
isStartJustify: !1,
|
|
2301
|
+
buttonValue: S.value,
|
|
2302
|
+
onOnButtonClick: Ce
|
|
2303
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2304
|
+
])
|
|
2305
|
+
]),
|
|
2306
|
+
_: 1
|
|
2307
|
+
}, 8, ["visible", "title", "width"])
|
|
2308
|
+
], 64);
|
|
2309
|
+
};
|
|
2310
|
+
}
|
|
2311
|
+
}), eo = /* @__PURE__ */ Me(Zi, [["__scopeId", "data-v-7dbd17f2"]]), lo = { class: "step-module content" }, ao = { class: "module-data" }, so = { class: "step-module layout" }, io = { class: "form-content" }, oo = /* @__PURE__ */ Al({
|
|
2312
|
+
__name: "operate",
|
|
2313
|
+
props: {
|
|
2314
|
+
itemContents: {
|
|
2315
|
+
type: Array,
|
|
2316
|
+
default: () => []
|
|
2317
|
+
},
|
|
2318
|
+
originalItemContents: {
|
|
2319
|
+
type: Array,
|
|
2320
|
+
default: () => []
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2323
|
+
emits: ["change"],
|
|
2324
|
+
setup(r, { emit: F }) {
|
|
2325
|
+
const h = r, i = F, o = G("create"), R = G({}), S = G([]), w = G([
|
|
2326
|
+
{
|
|
2327
|
+
label: "方向:",
|
|
2328
|
+
prop: "placement",
|
|
2329
|
+
type: "radio",
|
|
2330
|
+
contents: [
|
|
2331
|
+
{
|
|
2332
|
+
label: "底部",
|
|
2333
|
+
value: "bottom"
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
label: "顶部",
|
|
2337
|
+
value: "top"
|
|
2338
|
+
}
|
|
2339
|
+
],
|
|
2340
|
+
value: "bottom"
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
label: "节点类型:",
|
|
2344
|
+
prop: "type",
|
|
2345
|
+
type: "select",
|
|
2346
|
+
contents: [
|
|
2347
|
+
{
|
|
2348
|
+
label: "primary",
|
|
2349
|
+
value: "primary"
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
label: "success",
|
|
2353
|
+
value: "success"
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
label: "warning",
|
|
2357
|
+
value: "warning"
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
label: "danger",
|
|
2361
|
+
value: "danger"
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
label: "info",
|
|
2365
|
+
value: "info"
|
|
2366
|
+
}
|
|
2367
|
+
],
|
|
2368
|
+
value: "primary"
|
|
2369
|
+
},
|
|
2370
|
+
{
|
|
2371
|
+
label: "颜色:",
|
|
2372
|
+
prop: "color",
|
|
2373
|
+
type: "color",
|
|
2374
|
+
value: ""
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
label: "尺寸:",
|
|
2378
|
+
prop: "size",
|
|
2379
|
+
type: "radio",
|
|
2380
|
+
contents: [
|
|
2381
|
+
{
|
|
2382
|
+
label: "normal",
|
|
2383
|
+
value: "normal"
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
label: "large",
|
|
2387
|
+
value: "large"
|
|
2388
|
+
}
|
|
2389
|
+
],
|
|
2390
|
+
value: "normal"
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
label: "是否空心",
|
|
2394
|
+
prop: "isHollow",
|
|
2395
|
+
type: "RADIO",
|
|
2396
|
+
contents: [
|
|
2397
|
+
{
|
|
2398
|
+
label: "是",
|
|
2399
|
+
value: !0
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
label: "否",
|
|
2403
|
+
value: !1
|
|
2404
|
+
}
|
|
2405
|
+
],
|
|
2406
|
+
value: !0
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
label: "是否居中",
|
|
2410
|
+
prop: "isCenter",
|
|
2411
|
+
type: "RADIO",
|
|
2412
|
+
contents: [
|
|
2413
|
+
{
|
|
2414
|
+
label: "是",
|
|
2415
|
+
value: !0
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
label: "否",
|
|
2419
|
+
value: !1
|
|
2420
|
+
}
|
|
2421
|
+
],
|
|
2422
|
+
value: !0
|
|
2423
|
+
}
|
|
2424
|
+
]), M = G([
|
|
2425
|
+
{
|
|
2426
|
+
label: "",
|
|
2427
|
+
prop: "index",
|
|
2428
|
+
type: "input",
|
|
2429
|
+
value: "",
|
|
2430
|
+
isFormColHidden: !0
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
label: "内容",
|
|
2434
|
+
prop: "content",
|
|
2435
|
+
type: "input",
|
|
2436
|
+
value: ""
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
label: "时间戳",
|
|
2440
|
+
prop: "timestamp",
|
|
2441
|
+
type: "datetime",
|
|
2442
|
+
value: ""
|
|
2443
|
+
}
|
|
2444
|
+
]), X = G([
|
|
2445
|
+
{
|
|
2446
|
+
label: "取消",
|
|
2447
|
+
background: "#c0c4cc"
|
|
2448
|
+
},
|
|
2449
|
+
{
|
|
2450
|
+
label: "确认",
|
|
2451
|
+
background: "#436aaf"
|
|
2452
|
+
}
|
|
2453
|
+
]), B = _a({
|
|
2454
|
+
visible: !1,
|
|
2455
|
+
width: "40%",
|
|
2456
|
+
title: "时间线"
|
|
2457
|
+
}), re = (I) => {
|
|
2458
|
+
var A;
|
|
2459
|
+
R.value = I, console.log(1212, I), i("change", (A = te()) == null ? void 0 : A.compData);
|
|
2460
|
+
}, ae = (I, A) => {
|
|
2461
|
+
var ve, c;
|
|
2462
|
+
switch (I) {
|
|
2463
|
+
case "create":
|
|
2464
|
+
(ve = M.value) == null || ve.forEach((d) => {
|
|
2465
|
+
d.value = "";
|
|
2466
|
+
}), o.value = "create", B.visible = !0;
|
|
2467
|
+
break;
|
|
2468
|
+
case "update":
|
|
2469
|
+
(c = M.value) == null || c.forEach((d) => {
|
|
2470
|
+
d.value = A[d == null ? void 0 : d.prop];
|
|
2471
|
+
}), o.value = "update", B.visible = !0;
|
|
2472
|
+
break;
|
|
2473
|
+
case "delete":
|
|
2474
|
+
S.value.splice(A, 1), o.value = "delete";
|
|
2475
|
+
break;
|
|
2476
|
+
}
|
|
2477
|
+
}, Ce = (I) => {
|
|
2478
|
+
var A, ve, c, d;
|
|
2479
|
+
if ((I == null ? void 0 : I.buttonName) === "确认") {
|
|
2480
|
+
const f = l(I == null ? void 0 : I.content);
|
|
2481
|
+
switch (Object.keys(f).forEach((m) => {
|
|
2482
|
+
f[m] === "" && delete f[m];
|
|
2483
|
+
}), o.value) {
|
|
2484
|
+
case "create":
|
|
2485
|
+
console.log(1335, S.value, f), (ve = S.value) == null || ve.push({
|
|
2486
|
+
...f,
|
|
2487
|
+
index: ((A = S.value) == null ? void 0 : A.length) + 1
|
|
2488
|
+
});
|
|
2489
|
+
break;
|
|
2490
|
+
case "update":
|
|
2491
|
+
S.value = (c = S.value) == null ? void 0 : c.map((m) => m.index === (f == null ? void 0 : f.index) ? {
|
|
2492
|
+
...m,
|
|
2493
|
+
content: f == null ? void 0 : f.content,
|
|
2494
|
+
timestamp: f == null ? void 0 : f.timestamp
|
|
2495
|
+
} : m);
|
|
2496
|
+
break;
|
|
2497
|
+
}
|
|
2498
|
+
i("change", (d = te()) == null ? void 0 : d.compData), B.visible = !1;
|
|
2499
|
+
} else
|
|
2500
|
+
B.visible = !1;
|
|
2501
|
+
}, te = () => ({
|
|
2502
|
+
comp: "TimeLine",
|
|
2503
|
+
compData: [
|
|
2504
|
+
{
|
|
2505
|
+
key: "timeLineList",
|
|
2506
|
+
contents: S.value
|
|
2507
|
+
},
|
|
2508
|
+
{
|
|
2509
|
+
key: "timeLineConfig",
|
|
2510
|
+
contents: R.value
|
|
2511
|
+
}
|
|
2512
|
+
]
|
|
2513
|
+
}), ke = () => {
|
|
2514
|
+
B.visible = !1;
|
|
2515
|
+
};
|
|
2516
|
+
return Xe(() => h == null ? void 0 : h.itemContents, (I) => {
|
|
2517
|
+
var A, ve;
|
|
2518
|
+
I && (R.value = ((A = I == null ? void 0 : I.find((c) => c.key === "timeLineConfig")) == null ? void 0 : A.contents) ?? {}, S.value = ((ve = I == null ? void 0 : I.find((c) => c.key === "timeLineList")) == null ? void 0 : ve.contents) ?? []);
|
|
2519
|
+
}, { immediate: !0 }), (I, A) => {
|
|
2520
|
+
const ve = Re("svg-icon"), c = Re("el-button");
|
|
2521
|
+
return le(), _e(Ue, null, [
|
|
2522
|
+
x("div", null, [
|
|
2523
|
+
x("div", lo, [
|
|
2524
|
+
A[2] || (A[2] = x("h4", { class: "module-title" }, "内容", -1)),
|
|
2525
|
+
Z(c, {
|
|
2526
|
+
class: "module-icon",
|
|
2527
|
+
id: "themeButton",
|
|
2528
|
+
onClick: A[0] || (A[0] = (d) => ae("create"))
|
|
2529
|
+
}, {
|
|
2530
|
+
icon: fe(() => [
|
|
2531
|
+
Z(ve, {
|
|
2532
|
+
name: "Plus",
|
|
2533
|
+
class: "icon-size"
|
|
2534
|
+
})
|
|
2535
|
+
]),
|
|
2536
|
+
default: fe(() => [
|
|
2537
|
+
A[1] || (A[1] = $e(" 新增 "))
|
|
2538
|
+
]),
|
|
2539
|
+
_: 1,
|
|
2540
|
+
__: [1]
|
|
2541
|
+
})
|
|
2542
|
+
]),
|
|
2543
|
+
x("div", ao, [
|
|
2544
|
+
(le(!0), _e(Ue, null, Ne(S.value, (d, f) => (le(), _e("div", {
|
|
2545
|
+
class: "module-data-item",
|
|
2546
|
+
key: f
|
|
2547
|
+
}, [
|
|
2548
|
+
x("span", null, we(d == null ? void 0 : d.content), 1),
|
|
2549
|
+
x("div", null, [
|
|
2550
|
+
Z(c, {
|
|
2551
|
+
type: "primary",
|
|
2552
|
+
size: "small",
|
|
2553
|
+
onClick: (m) => ae("update", { ...d, index: f + 1 })
|
|
2554
|
+
}, {
|
|
2555
|
+
default: fe(() => A[3] || (A[3] = [
|
|
2556
|
+
$e("修改")
|
|
2557
|
+
])),
|
|
2558
|
+
_: 2,
|
|
2559
|
+
__: [3]
|
|
2560
|
+
}, 1032, ["onClick"]),
|
|
2561
|
+
Z(c, {
|
|
2562
|
+
type: "danger",
|
|
2563
|
+
size: "small",
|
|
2564
|
+
onClick: (m) => ae("delete", f)
|
|
2565
|
+
}, {
|
|
2566
|
+
default: fe(() => A[4] || (A[4] = [
|
|
2567
|
+
$e("删除")
|
|
2568
|
+
])),
|
|
2569
|
+
_: 2,
|
|
2570
|
+
__: [4]
|
|
2571
|
+
}, 1032, ["onClick"])
|
|
2572
|
+
])
|
|
2573
|
+
]))), 128))
|
|
2574
|
+
]),
|
|
2575
|
+
x("div", so, [
|
|
2576
|
+
A[5] || (A[5] = x("div", { class: "module-title" }, "布局", -1)),
|
|
2577
|
+
Z(el, {
|
|
2578
|
+
rowContents: w.value,
|
|
2579
|
+
onChange: re
|
|
2580
|
+
}, null, 8, ["rowContents"])
|
|
2581
|
+
])
|
|
2582
|
+
]),
|
|
2583
|
+
Z(ll, {
|
|
2584
|
+
visible: B.visible,
|
|
2585
|
+
title: B.title,
|
|
2586
|
+
onBeforeDestroy: ke,
|
|
2587
|
+
width: B.width
|
|
2588
|
+
}, {
|
|
2589
|
+
default: fe(() => [
|
|
2590
|
+
x("div", io, [
|
|
2591
|
+
(le(), Ve(el, {
|
|
2592
|
+
rowContents: M.value,
|
|
2593
|
+
key: M.value,
|
|
2594
|
+
isEnableWrap: !1,
|
|
2595
|
+
isButtonRow: !1,
|
|
2596
|
+
isStartJustify: !1,
|
|
2597
|
+
buttonValue: X.value,
|
|
2598
|
+
onOnButtonClick: Ce
|
|
2599
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2600
|
+
])
|
|
2601
|
+
]),
|
|
2602
|
+
_: 1
|
|
2603
|
+
}, 8, ["visible", "title", "width"])
|
|
2604
|
+
], 64);
|
|
2605
|
+
};
|
|
2606
|
+
}
|
|
2607
|
+
}), no = /* @__PURE__ */ Me(oo, [["__scopeId", "data-v-f6b5d4fc"]]), uo = {};
|
|
2608
|
+
function ro(r, F) {
|
|
2609
|
+
return le(), _e("div");
|
|
2610
|
+
}
|
|
2611
|
+
const co = /* @__PURE__ */ Me(uo, [["render", ro]]), to = { class: "extra-content" }, po = { key: 0 }, fo = { key: 1 }, vo = { class: "dialog-footer" }, ho = {
|
|
2612
|
+
__name: "index",
|
|
2613
|
+
props: {
|
|
2614
|
+
itemData: {
|
|
2615
|
+
type: Array,
|
|
2616
|
+
default: () => []
|
|
2617
|
+
},
|
|
2618
|
+
childItemData: {
|
|
2619
|
+
type: Array,
|
|
2620
|
+
default: () => []
|
|
2621
|
+
},
|
|
2622
|
+
index: Number,
|
|
2623
|
+
changedContent: {
|
|
2624
|
+
type: Object,
|
|
2625
|
+
default: () => {
|
|
2626
|
+
}
|
|
2627
|
+
}
|
|
2628
|
+
},
|
|
2629
|
+
emits: ["change"],
|
|
2630
|
+
setup(r, { emit: F }) {
|
|
2631
|
+
const h = r, i = G(0), o = G(), R = G(), S = F, w = G(!1), M = G({}), X = G({}), B = G();
|
|
2632
|
+
Xe(
|
|
2633
|
+
() => [h.itemData],
|
|
2634
|
+
() => {
|
|
2635
|
+
var d;
|
|
2636
|
+
const c = l(h.itemData);
|
|
2637
|
+
o.value = (d = l(c)) == null ? void 0 : d.map((f) => {
|
|
2638
|
+
var m;
|
|
2639
|
+
if (f.key === "extra") {
|
|
2640
|
+
let ie = [];
|
|
2641
|
+
(m = f.value) == null || m.forEach((be) => {
|
|
2642
|
+
var De;
|
|
2643
|
+
ie.push((De = Object.values(be)) == null ? void 0 : De[0]);
|
|
2644
|
+
}), f.value = ie;
|
|
2645
|
+
}
|
|
2646
|
+
return f;
|
|
2647
|
+
});
|
|
2648
|
+
},
|
|
2649
|
+
{ deep: !0, immediate: !0 }
|
|
2650
|
+
);
|
|
2651
|
+
const re = (c, d, f, m) => {
|
|
2652
|
+
var be;
|
|
2653
|
+
let ie = {};
|
|
2654
|
+
((be = c == null ? void 0 : c[0]) == null ? void 0 : be.contents) === "详情" && (w.value = !0, ie[d] = c, R.value = c == null ? void 0 : c.filter((De) => (De == null ? void 0 : De.key) !== "tableContentName"), M.value = ie, X.value = f, B.value = m.id);
|
|
2655
|
+
}, ae = (c) => {
|
|
2656
|
+
var De, Fe, pe, b;
|
|
2657
|
+
const d = (Fe = (De = Object.values(l(M.value))) == null ? void 0 : De[0]) == null ? void 0 : Fe.filter((L) => (L == null ? void 0 : L.key) === "tableContentName"), f = (b = (pe = Object.values(l(M.value))) == null ? void 0 : pe[0]) == null ? void 0 : b.filter((L) => (L == null ? void 0 : L.key) !== "tableContentName"), m = f == null ? void 0 : f.map((L, s) => {
|
|
2658
|
+
var p;
|
|
2659
|
+
return s === c.index && (L == null ? void 0 : L.comp) === "Table" && (L.compData = (p = L.compData) == null ? void 0 : p.map((v) => {
|
|
2660
|
+
var k, W;
|
|
2661
|
+
return (v == null ? void 0 : v.key) === "tableContents" && (v.contents = (W = (k = c.content) == null ? void 0 : k.map((oe) => {
|
|
2662
|
+
let T = {};
|
|
2663
|
+
for (let u in oe)
|
|
2664
|
+
u !== "id" && (T[u] = oe[u]);
|
|
2665
|
+
return T;
|
|
2666
|
+
})) == null ? void 0 : W.map((oe) => Object.values(oe))), v;
|
|
2667
|
+
})), L;
|
|
2668
|
+
});
|
|
2669
|
+
m.unshift(d == null ? void 0 : d[0]);
|
|
2670
|
+
let ie = l(M.value), be = {};
|
|
2671
|
+
for (let L in ie)
|
|
2672
|
+
be[L] = m;
|
|
2673
|
+
M.value = be;
|
|
2674
|
+
}, Ce = () => {
|
|
2675
|
+
w.value = !1, M.value = {}, X.value = {}, B.value = void 0, i.value++;
|
|
2676
|
+
}, te = (c) => {
|
|
2677
|
+
var De, Fe, pe, b;
|
|
2678
|
+
const d = (Fe = (De = Object.values(l(M.value))) == null ? void 0 : De[0]) == null ? void 0 : Fe.filter((L) => (L == null ? void 0 : L.key) === "tableContentName"), f = (b = (pe = Object.values(l(M.value))) == null ? void 0 : pe[0]) == null ? void 0 : b.filter((L) => (L == null ? void 0 : L.key) !== "tableContentName"), m = f == null ? void 0 : f.map((L, s) => (s === c.index && (L.compData = c.contents), L));
|
|
2679
|
+
m.unshift(d == null ? void 0 : d[0]);
|
|
2680
|
+
let ie = l(M.value), be = {};
|
|
2681
|
+
for (let L in ie)
|
|
2682
|
+
be[L] = m;
|
|
2683
|
+
M.value = be;
|
|
2684
|
+
}, ke = () => {
|
|
2685
|
+
var d, f;
|
|
2686
|
+
let c = {};
|
|
2687
|
+
for (let m in X.value)
|
|
2688
|
+
m === ((d = Object.keys(M.value)) == null ? void 0 : d[0]) ? c[m] = (f = Object.values(M.value)) == null ? void 0 : f[0] : c[m] = X.value[m];
|
|
2689
|
+
S("change", {
|
|
2690
|
+
buttonName: "编辑",
|
|
2691
|
+
index: B.value,
|
|
2692
|
+
singleContent: c
|
|
2693
|
+
}, "methodData"), w.value = !1, M.value = {}, X.value = {}, B.value = void 0;
|
|
2694
|
+
}, I = () => {
|
|
2695
|
+
w.value = !1, M.value = {}, X.value = {}, B.value = void 0;
|
|
2696
|
+
}, A = (c) => {
|
|
2697
|
+
S("change", c, "methodData");
|
|
2698
|
+
}, ve = (c) => Ia(c);
|
|
2699
|
+
return (c, d) => {
|
|
2700
|
+
const f = Re("el-button");
|
|
2701
|
+
return le(), _e("div", to, [
|
|
2702
|
+
(le(!0), _e(Ue, null, Ne(o.value, (m, ie) => (le(), _e("div", { key: i.value }, [
|
|
2703
|
+
(m == null ? void 0 : m.key) === "extra" ? (le(), _e("div", po)) : (le(), _e("div", fo, [
|
|
2704
|
+
(le(), Ve(ua(ve(m.comp)), {
|
|
2705
|
+
itemData: m == null ? void 0 : m.compData,
|
|
2706
|
+
childItemData: m == null ? void 0 : m.itemChildData,
|
|
2707
|
+
key: ie,
|
|
2708
|
+
index: (m == null ? void 0 : m.id) ?? ie,
|
|
2709
|
+
onContentClick: re,
|
|
2710
|
+
onChange: A
|
|
2711
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2712
|
+
]))
|
|
2713
|
+
]))), 128)),
|
|
2714
|
+
Z(ll, {
|
|
2715
|
+
visible: w.value,
|
|
2716
|
+
onBeforeDestroy: I
|
|
2717
|
+
}, {
|
|
2718
|
+
default: fe(() => [
|
|
2719
|
+
(le(!0), _e(Ue, null, Ne(R.value, (m, ie) => (le(), _e("div", {
|
|
2720
|
+
key: ie,
|
|
2721
|
+
class: "extra-dialog"
|
|
2722
|
+
}, [
|
|
2723
|
+
(le(), Ve(ua(ve(m.comp)), {
|
|
2724
|
+
itemData: m == null ? void 0 : m.compData,
|
|
2725
|
+
onChange: ae,
|
|
2726
|
+
childItemData: m == null ? void 0 : m.itemChildData,
|
|
2727
|
+
key: ie,
|
|
2728
|
+
onContentChange: te,
|
|
2729
|
+
index: (m == null ? void 0 : m.id) ?? ie,
|
|
2730
|
+
class: "extra-component"
|
|
2731
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2732
|
+
]))), 128))
|
|
2733
|
+
]),
|
|
2734
|
+
footer: fe(() => [
|
|
2735
|
+
x("div", vo, [
|
|
2736
|
+
Z(f, {
|
|
2737
|
+
class: "cancel-button footer-button",
|
|
2738
|
+
onClick: Ce,
|
|
2739
|
+
id: "themeBorderButton"
|
|
2740
|
+
}, {
|
|
2741
|
+
default: fe(() => d[0] || (d[0] = [
|
|
2742
|
+
$e(we("取消"))
|
|
2743
|
+
])),
|
|
2744
|
+
_: 1,
|
|
2745
|
+
__: [0]
|
|
2746
|
+
}),
|
|
2747
|
+
Z(f, {
|
|
2748
|
+
class: "confirm-button footer-button",
|
|
2749
|
+
onClick: ke,
|
|
2750
|
+
id: "themeButton"
|
|
2751
|
+
}, {
|
|
2752
|
+
default: fe(() => d[1] || (d[1] = [
|
|
2753
|
+
$e(we("确认"))
|
|
2754
|
+
])),
|
|
2755
|
+
_: 1,
|
|
2756
|
+
__: [1]
|
|
2757
|
+
})
|
|
2758
|
+
])
|
|
2759
|
+
]),
|
|
2760
|
+
_: 1
|
|
2761
|
+
}, 8, ["visible"])
|
|
2762
|
+
]);
|
|
2763
|
+
};
|
|
2764
|
+
}
|
|
2765
|
+
}, mo = /* @__PURE__ */ Me(ho, [["__scopeId", "data-v-2d9c5ab2"]]);
|
|
2766
|
+
let Le = "$R";
|
|
2767
|
+
const Jn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Hn = (r) => /^'[^']+':\[\[.*\]\]$/.exec(l(r)), yo = (r) => /^'([^']+)':.*$/.exec(l(r)), ra = (r) => {
|
|
2768
|
+
let F = r;
|
|
2769
|
+
const h = [];
|
|
2770
|
+
let i = "";
|
|
2771
|
+
for (const o of F)
|
|
2772
|
+
o.includes("{") || i.includes("{") || o.includes("[") || i.includes("[") || o.includes("【") || i.includes("【") || o.includes("(") || i.includes("(") || o.includes("(") || i.includes("(") || o.includes("/*") || i.includes("/*") || o.includes("&") || i.includes("&") ? (i += o.trim(), l(i).split("{").length - 1 === l(i).split("}").length - 1 && l(i).split("【").length - 1 === l(i).split("】").length - 1 && l(i).split("[").length - 1 === l(i).split("]").length - 1 && l(i).split("(").length - 1 === l(i).split(")").length - 1 && l(i).split("(").length - 1 === l(i).split(")").length - 1 && l(i).split("/*").length - 1 === l(i).split("*/").length - 1 && i[i.length - 1] !== "," && i[i.length - 1] !== "&" && (h.push(i.replace(/\/\*[\s\S]*?\*\//g, "")), i = "")) : h.push(o.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
2773
|
+
return h;
|
|
2774
|
+
}, ga = (r, F) => {
|
|
2775
|
+
let h = r;
|
|
2776
|
+
const i = [];
|
|
2777
|
+
let o = "", R = 0;
|
|
2778
|
+
for (const S of h)
|
|
2779
|
+
R++, S.includes("{") || o.includes("{") || S.includes("[") || o.includes("[") || S.includes("【") || o.includes("【") || S.includes("(") || o.includes("(") || S.includes("(") || o.includes("(") || S.includes("/*") || o.includes("/*") ? (o += S.trim(), l(o).split("{").length - 1 === l(o).split("}").length - 1 && l(o).split("【").length - 1 === l(o).split("】").length - 1 && l(o).split("[").length - 1 === l(o).split("]").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("/*").length - 1 === l(o).split("*/").length - 1 && o[o.length - 1] !== "," && o[o.length - 1] === F ? (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = "") : R === (r == null ? void 0 : r.length) && i.push(o.replace(/\/\*[\s\S]*?\*\//g, ""))) : (o += S.trim(), (o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1]) === F && (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = ""));
|
|
2780
|
+
return i;
|
|
2781
|
+
}, Gn = (r, F) => {
|
|
2782
|
+
let h = r;
|
|
2783
|
+
const i = [];
|
|
2784
|
+
let o = "", R = 0;
|
|
2785
|
+
for (const S of h)
|
|
2786
|
+
R++, S.includes("{") || o.includes("{") || S.includes("[") || o.includes("[") || S.includes("【") || o.includes("【") || S.includes("(") || o.includes("(") || S.includes("(") || o.includes("(") || S.includes("/*") || o.includes("/*") ? (o += S.trim(), l(o).split("{").length - 1 === l(o).split("}").length - 1 && l(o).split("【").length - 1 === l(o).split("】").length - 1 && l(o).split("[").length - 1 === l(o).split("]").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("/*").length - 1 === l(o).split("*/").length - 1 && o[o.length - 1] === F ? (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = "") : R === (r == null ? void 0 : r.length) && (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = "")) : (o += S.trim(), (o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1]) === F && (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = ""));
|
|
2787
|
+
return (o == null ? void 0 : o.length) !== 0 && i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), i;
|
|
2788
|
+
}, qn = (r) => /^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l(r)), Qn = (r) => {
|
|
2789
|
+
var F, h, i, o, R, S, w, M, X, B, re, ae, Ce, te, ke, I, A, ve, c, d, f, m, ie, be, De, Fe, pe, b, L, s, p, v, k, W, oe, T, u, ee, O, ne, se, q, $, H, _, de, Q, C, ce, g, z, K, n, ge, e, a, t, y, D, N, he, U;
|
|
2790
|
+
if (yo(r)) {
|
|
2791
|
+
let Y = {}, ue = (i = (h = (F = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : F.split(Le)) == null ? void 0 : h[0]) == null ? void 0 : i.replaceAll("'", ""), me = "", J = (R = (o = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : o.split(Le)) == null ? void 0 : R[1];
|
|
2792
|
+
if (J.includes("{") || J.includes("("))
|
|
2793
|
+
if (J.includes("{") ? me = me + ((re = (B = (X = (M = (w = (S = J == null ? void 0 : J.split("{")) == null ? void 0 : S[1]) == null ? void 0 : w.split("}")) == null ? void 0 : M[0]) == null ? void 0 : X.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : B.replaceAll("[", "([")) == null ? void 0 : re.replaceAll("]", "])")) + "[" : me = me + ((A = (I = (ke = (te = (Ce = (ae = J == null ? void 0 : J.split("(")) == null ? void 0 : ae[1]) == null ? void 0 : Ce.split(")")) == null ? void 0 : te[0]) == null ? void 0 : ke.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : I.replaceAll("[", "([")) == null ? void 0 : A.replaceAll("]", "])")) + "[", !((ve = J == null ? void 0 : J.split(")")) != null && ve[1]))
|
|
2794
|
+
me = me + ((f = (d = (c = J == null ? void 0 : J.split("[")) == null ? void 0 : c[1]) == null ? void 0 : d.split("]")) == null ? void 0 : f[0]) + "]";
|
|
2795
|
+
else {
|
|
2796
|
+
const P = (De = (be = (ie = (m = J == null ? void 0 : J.split(")")) == null ? void 0 : m[1]) == null ? void 0 : ie.replace("[", Le)) == null ? void 0 : be.split(Le)) == null ? void 0 : De[1];
|
|
2797
|
+
if (P) {
|
|
2798
|
+
const j = P.lastIndexOf("]"), V = P.substring(0, j) + Le + P.substring(j + 1);
|
|
2799
|
+
me = me + ((Fe = V == null ? void 0 : V.split(Le)) == null ? void 0 : Fe[0]) + "]";
|
|
2800
|
+
} else
|
|
2801
|
+
me = (L = (b = (pe = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : pe.split(Le)) == null ? void 0 : b[1]) == null ? void 0 : L.replaceAll("'", "");
|
|
2802
|
+
}
|
|
2803
|
+
else
|
|
2804
|
+
me = (v = (p = (s = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : s.split(Le)) == null ? void 0 : p[1]) == null ? void 0 : v.replaceAll("'", "");
|
|
2805
|
+
return Y[ue] = me, {
|
|
2806
|
+
groupName: "",
|
|
2807
|
+
formContents: [[Y]]
|
|
2808
|
+
};
|
|
2809
|
+
} else {
|
|
2810
|
+
let Y = {}, ue = "", me = "";
|
|
2811
|
+
if (r.includes("#")) {
|
|
2812
|
+
ue = (W = (k = r == null ? void 0 : r.split("#")) == null ? void 0 : k[0]) == null ? void 0 : W.replaceAll("'", "");
|
|
2813
|
+
let J = (T = (oe = r == null ? void 0 : r.split("#")) == null ? void 0 : oe[1]) == null ? void 0 : T.replaceAll("'", "");
|
|
2814
|
+
J != null && J.includes("{") ? me = me + ((ne = (O = (ee = (u = J == null ? void 0 : J.split("{")) == null ? void 0 : u[1]) == null ? void 0 : ee.split("}")) == null ? void 0 : O[0]) == null ? void 0 : ne.replaceAll(":", "/").replaceAll("'", "")) + "[" : me = me + ((H = ($ = (q = (se = J == null ? void 0 : J.split("(")) == null ? void 0 : se[1]) == null ? void 0 : q.split(")")) == null ? void 0 : $[0]) == null ? void 0 : H.replaceAll(":", "/").replaceAll("'", "")) + "[", me = me + ((Q = (de = (_ = J == null ? void 0 : J.split("[")) == null ? void 0 : _[1]) == null ? void 0 : de.split("]")) == null ? void 0 : Q[0]) + "]";
|
|
2815
|
+
} else {
|
|
2816
|
+
let J = (g = (ce = (C = r == null ? void 0 : r.split("]")) == null ? void 0 : C[0]) == null ? void 0 : ce.split("[")) == null ? void 0 : g[1];
|
|
2817
|
+
if ((z = J == null ? void 0 : J.split(":")) == null || z.forEach((P, j) => {
|
|
2818
|
+
var V;
|
|
2819
|
+
((V = J == null ? void 0 : J.split(":")) == null ? void 0 : V.length) - 1 === j && (ue = P == null ? void 0 : P.replaceAll("'", ""));
|
|
2820
|
+
}), !(r != null && r.includes("[")))
|
|
2821
|
+
me = ((e = (ge = (n = (K = r == null ? void 0 : r.split("]")) == null ? void 0 : K[1]) == null ? void 0 : n.replace(":", Le).split(Le)) == null ? void 0 : ge[1]) == null ? void 0 : e.replaceAll("'", "")) ?? "";
|
|
2822
|
+
else {
|
|
2823
|
+
let P = (he = (N = (D = (y = (t = (a = l(r)) == null ? void 0 : a.split("(")) == null ? void 0 : t[1]) == null ? void 0 : y.split(")")) == null ? void 0 : D[0]) == null ? void 0 : N.replaceAll("{", "").replaceAll("}", "")) == null ? void 0 : he.replaceAll("'", "").replaceAll(":", "/"), j = "";
|
|
2824
|
+
(U = J == null ? void 0 : J.split(":")) == null || U.forEach((V) => {
|
|
2825
|
+
j = j === "" ? j + (V == null ? void 0 : V.replaceAll("'", "")) : j + ":" + (V == null ? void 0 : V.replaceAll("'", ""));
|
|
2826
|
+
}), me = P + "[" + j + "]";
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
return Y[ue] = me, {
|
|
2830
|
+
groupName: "",
|
|
2831
|
+
formContents: [[Y]]
|
|
2832
|
+
};
|
|
2833
|
+
}
|
|
2834
|
+
}, Xn = (r) => (r == null ? void 0 : r[0]) === "[" && (r == null ? void 0 : r[r.length - 1]) === "]" && !(r != null && r.includes("{")), bo = (r, F) => {
|
|
2835
|
+
let h = r.length;
|
|
2836
|
+
for (; h--; )
|
|
2837
|
+
if (r[h] === ")")
|
|
2838
|
+
return r.substring(0, h) + F + r.substring(h + 1);
|
|
2839
|
+
return r;
|
|
2840
|
+
}, Yn = (r) => {
|
|
2841
|
+
var R, S, w, M, X;
|
|
2842
|
+
let F = r.slice(1, r.length - 1), h;
|
|
2843
|
+
(F == null ? void 0 : F[0]) === "[" ? h = (S = (R = ra(l(F))) == null ? void 0 : R.filter((B) => B !== ",")) == null ? void 0 : S.map((B) => B == null ? void 0 : B.slice(1, B.length - 1)) : (F = "[" + l(F) + "]", h = (M = (w = ra(l(F))) == null ? void 0 : w.filter((B) => B !== ",")) == null ? void 0 : M.map((B) => B == null ? void 0 : B.slice(1, B.length - 1))), h = (X = l(h)) == null ? void 0 : X.map((B) => {
|
|
2844
|
+
var re, ae;
|
|
2845
|
+
return B = (ae = (re = B.replace(")", Le)) == null ? void 0 : re.split(Le)) == null ? void 0 : ae[1], B;
|
|
2846
|
+
});
|
|
2847
|
+
let i = [], o = [];
|
|
2848
|
+
return h == null || h.forEach((B) => {
|
|
2849
|
+
var Ce, te, ke, I, A, ve, c, d, f, m, ie, be, De, Fe, pe, b, L, s, p, v, k, W, oe, T, u, ee, O, ne, se, q, $, H, _, de, Q, C, ce, g, z, K, n, ge, e, a, t, y, D, N;
|
|
2850
|
+
let re = (te = (Ce = l(B)) == null ? void 0 : Ce.slice(1, l(B).length - 1)) == null ? void 0 : te.replace(":", Le).split(Le);
|
|
2851
|
+
if (((I = (ke = l(re)) == null ? void 0 : ke[0]) == null ? void 0 : I.replaceAll("'", "")) === "输入") {
|
|
2852
|
+
if (!((ve = (A = l(re)) == null ? void 0 : A[1]) != null && ve.includes("[")) && !((d = (c = l(re)) == null ? void 0 : c[1]) != null && d.includes("("))) {
|
|
2853
|
+
ba((f = l(re)) == null ? void 0 : f[1].replaceAll("'", '"')) && o.push(JSON.parse((m = l(re)) == null ? void 0 : m[1].replaceAll("'", '"')));
|
|
2854
|
+
return;
|
|
2855
|
+
}
|
|
2856
|
+
if (((be = (ie = l(re)) == null ? void 0 : ie[1]) == null ? void 0 : be[0]) === "[") {
|
|
2857
|
+
let he = (b = (De = l(re)) == null ? void 0 : De[1]) == null ? void 0 : b.slice(1, ((pe = (Fe = l(re)) == null ? void 0 : Fe[1]) == null ? void 0 : pe.length) - 1);
|
|
2858
|
+
(s = (L = ra(he)) == null ? void 0 : L.filter((U) => U !== ",")) == null || s.forEach((U) => {
|
|
2859
|
+
var P, j, V, ye, Ie, Oe, Ee, E, Se, xe, Ge, Ye, Je, He, dl, pl, ml, Ze, nl, ul, We, fl;
|
|
2860
|
+
let Y = {}, ue = (V = (j = l(U)) == null ? void 0 : j.slice(1, ((P = l(U)) == null ? void 0 : P.length) - 1)) == null ? void 0 : V.replace(":", Le).split(Le), me = (ye = ue == null ? void 0 : ue[0]) == null ? void 0 : ye.replaceAll("'", ""), J;
|
|
2861
|
+
(Ie = ue == null ? void 0 : ue[1]) != null && Ie.includes("(") ? (J = (He = (Je = (Ye = (Ge = (xe = (Se = (E = (Ee = l(ue)) == null ? void 0 : Ee[1]) == null ? void 0 : E.replaceAll("{", "")) == null ? void 0 : Se.replaceAll("}", "")) == null ? void 0 : xe.split("(")) == null ? void 0 : Ge[1]) == null ? void 0 : Ye.split(")")) == null ? void 0 : Je[0]) == null ? void 0 : He.replaceAll(":", "/").replaceAll("'", ""), (pl = (dl = l(ue)) == null ? void 0 : dl[1]) != null && pl.includes("[") && (J = l(J) + "[" + ((fl = (We = (ul = (nl = (Ze = (ml = l(ue)) == null ? void 0 : ml[1]) == null ? void 0 : Ze.split("[")) == null ? void 0 : nl[1]) == null ? void 0 : ul.split("]")) == null ? void 0 : We[0]) == null ? void 0 : fl.replaceAll("'", "")) + "]")) : J = (Oe = ue == null ? void 0 : ue[1]) == null ? void 0 : Oe.replaceAll("'", ""), Y[me] = J, o.push(Y);
|
|
2862
|
+
});
|
|
2863
|
+
}
|
|
2864
|
+
} else {
|
|
2865
|
+
if (!((v = (p = l(re)) == null ? void 0 : p[1]) != null && v.includes("[")) && !((W = (k = l(re)) == null ? void 0 : k[1]) != null && W.includes("("))) {
|
|
2866
|
+
ba((oe = l(re)) == null ? void 0 : oe[1].replaceAll("'", '"')) && i.push(JSON.parse((T = l(re)) == null ? void 0 : T[1].replaceAll("'", '"')));
|
|
2867
|
+
return;
|
|
2868
|
+
}
|
|
2869
|
+
if (((ee = (u = l(re)) == null ? void 0 : u[1]) == null ? void 0 : ee[0]) === "[") {
|
|
2870
|
+
let he = (q = (O = l(re)) == null ? void 0 : O[1]) == null ? void 0 : q.slice(1, ((se = (ne = l(re)) == null ? void 0 : ne[1]) == null ? void 0 : se.length) - 1);
|
|
2871
|
+
(H = ($ = ra(he)) == null ? void 0 : $.filter((U) => U !== ",")) == null || H.forEach((U) => {
|
|
2872
|
+
var P, j, V, ye, Ie, Oe, Ee, E, Se, xe, Ge, Ye, Je, He, dl, pl, ml, Ze, nl, ul, We, fl, rl, Ll, Ol, Vl, Rl, Ul, Pl, jl, Kl, Nl, Ml;
|
|
2873
|
+
let Y = {}, ue = (V = (j = l(U)) == null ? void 0 : j.slice(1, ((P = l(U)) == null ? void 0 : P.length) - 1)) == null ? void 0 : V.replace(":", Le).split(Le), me = (ye = ue == null ? void 0 : ue[0]) == null ? void 0 : ye.replaceAll("'", ""), J;
|
|
2874
|
+
if (!((Ie = ue == null ? void 0 : ue[1]) != null && Ie.includes("(")))
|
|
2875
|
+
J = (Oe = ue == null ? void 0 : ue[1]) == null ? void 0 : Oe.replaceAll("'", "");
|
|
2876
|
+
else if (J = (Ye = (Ge = (xe = (Se = (E = (Ee = l(ue)) == null ? void 0 : Ee[1]) == null ? void 0 : E.replaceAll("{", "")) == null ? void 0 : Se.replaceAll("}", "")) == null ? void 0 : xe.replace("(", Le)) == null ? void 0 : Ge.split(Le)) == null ? void 0 : Ye[1], J = (He = (Je = bo(l(J), Le)) == null ? void 0 : Je.split(Le)) == null ? void 0 : He[0], !(J != null && J.includes("(")))
|
|
2877
|
+
J = (dl = l(J)) == null ? void 0 : dl.replaceAll(":", "/").replaceAll("'", ""), (ml = (pl = l(ue)) == null ? void 0 : pl[1]) != null && ml.includes("[") && (J = l(J) + "[" + ((rl = (fl = (We = (ul = (nl = (Ze = l(ue)) == null ? void 0 : Ze[1]) == null ? void 0 : nl.split("[")) == null ? void 0 : ul[1]) == null ? void 0 : We.split("]")) == null ? void 0 : fl[0]) == null ? void 0 : rl.replaceAll("'", "")) + "]");
|
|
2878
|
+
else {
|
|
2879
|
+
let cl = "";
|
|
2880
|
+
(Ll = ga(J, ":")) == null || Ll.forEach((sl) => {
|
|
2881
|
+
var Wl, zl, Jl, Hl, Gl, ql, Ql, Xl, Yl, Zl, ea, la, aa, sa, ia;
|
|
2882
|
+
if (!(sl != null && sl.includes("(")))
|
|
2883
|
+
cl = cl === "" ? cl + ((Wl = sl == null ? void 0 : sl.replaceAll(":", "")) == null ? void 0 : Wl.replaceAll("'", "")) : cl + "/" + ((zl = sl == null ? void 0 : sl.replaceAll(":", "")) == null ? void 0 : zl.replaceAll("'", ""));
|
|
2884
|
+
else {
|
|
2885
|
+
let Dl = (Zl = (Yl = (Xl = (Ql = (ql = (Gl = (Hl = (Jl = l(sl)) == null ? void 0 : Jl.replaceAll("{", "")) == null ? void 0 : Hl.replaceAll("}", "")) == null ? void 0 : Gl.replace("(", Le)) == null ? void 0 : ql.split(Le)) == null ? void 0 : Ql[1]) == null ? void 0 : Xl.split(")")) == null ? void 0 : Yl[0]) == null ? void 0 : Zl.replaceAll(":", "/").replaceAll("'", "");
|
|
2886
|
+
Dl = Dl + "[" + ((ia = (sa = (aa = (la = (ea = l(sl)) == null ? void 0 : ea.split("[")) == null ? void 0 : la[1]) == null ? void 0 : aa.split("]")) == null ? void 0 : sa[0]) == null ? void 0 : ia.replaceAll("'", "")) + "]", cl = cl === "" ? cl + "[" + Dl + "]" : cl + "/[" + Dl + "]";
|
|
2887
|
+
}
|
|
2888
|
+
}), J = cl + "[" + ((Ml = (Nl = (Kl = (jl = (Vl = (Ol = l(ue)) == null ? void 0 : Ol[1]) == null ? void 0 : Vl.split("[")) == null ? void 0 : jl[((Pl = (Ul = (Rl = l(ue)) == null ? void 0 : Rl[1]) == null ? void 0 : Ul.split("[")) == null ? void 0 : Pl.length) - 1]) == null ? void 0 : Kl.split("]")) == null ? void 0 : Nl[0]) == null ? void 0 : Ml.replaceAll("'", "")) + "]";
|
|
2889
|
+
}
|
|
2890
|
+
Y[me] = J, i.push(Y);
|
|
2891
|
+
});
|
|
2892
|
+
} else {
|
|
2893
|
+
let he = (C = (_ = l(re)) == null ? void 0 : _[1]) == null ? void 0 : C.slice(1, ((Q = (de = l(re)) == null ? void 0 : de[1]) == null ? void 0 : Q.length) - 1), U = {}, Y = (t = (a = (z = (g = (ce = l(he)) == null ? void 0 : ce.split("]")) == null ? void 0 : g[0]) == null ? void 0 : z.split(":")) == null ? void 0 : a[((e = (ge = (n = (K = l(he)) == null ? void 0 : K.split("]")) == null ? void 0 : n[0]) == null ? void 0 : ge.split(":")) == null ? void 0 : e.length) - 1]) == null ? void 0 : t.replaceAll("'", ""), ue = ((N = (D = (y = l(he)) == null ? void 0 : y.split("]")) == null ? void 0 : D[0]) == null ? void 0 : N.replaceAll("'", "")) + "]";
|
|
2894
|
+
U[Y] = ue, i.push(U);
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
}), {
|
|
2898
|
+
output: i,
|
|
2899
|
+
input: o
|
|
2900
|
+
};
|
|
2901
|
+
}, go = Da(al), { routeToChildPath: $l } = ol(go), ka = Ka(al), { activeMenuPath: Bl } = ol(ka), ko = wa(), { loginUserInfo: Il } = ol(ko), _o = async () => {
|
|
2902
|
+
var R, S, w, M, X, B, re, ae, Ce, te, ke, I, A, ve, c, d, f, m, ie, be, De, Fe, pe, b, L, s, p, v, k, W, oe, T, u, ee, O, ne, se, q, $;
|
|
2903
|
+
let r = "";
|
|
2904
|
+
const F = await wl({
|
|
2905
|
+
key: {
|
|
2906
|
+
type: "structure",
|
|
2907
|
+
pageKey: l($l).value,
|
|
2908
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
2909
|
+
}
|
|
2910
|
+
});
|
|
2911
|
+
if (((S = (R = F == null ? void 0 : F.data) == null ? void 0 : R.result) == null ? void 0 : S.length) > 0) {
|
|
2912
|
+
let H = (Ce = (ae = (re = (B = (X = (M = (w = F == null ? void 0 : F.data) == null ? void 0 : w.result) == null ? void 0 : M[0]) == null ? void 0 : X.value) == null ? void 0 : B.pageData) == null ? void 0 : re.compData) == null ? void 0 : ae.find((_) => (_ == null ? void 0 : _.key) === "header")) == null ? void 0 : Ce.contents;
|
|
2913
|
+
r = (ke = (te = l(H)) == null ? void 0 : te[0]) == null ? void 0 : ke.label;
|
|
2914
|
+
}
|
|
2915
|
+
let h = Bl.value;
|
|
2916
|
+
(A = Bl.value) != null && A.includes(`updateLoading${(I = Il.value) == null ? void 0 : I.account}`) ? h = l(Bl).value : (c = Bl.value) != null && c.includes(`loading${(ve = Il.value) == null ? void 0 : ve.account}`) && (h = l($l).value + `/loading${(d = Il.value) == null ? void 0 : d.account}`);
|
|
2917
|
+
const i = await wl({
|
|
2918
|
+
key: {
|
|
2919
|
+
pageKey: h,
|
|
2920
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
2921
|
+
}
|
|
2922
|
+
});
|
|
2923
|
+
if ((m = Bl.value) != null && m.includes(`updateLoading${(f = Il.value) == null ? void 0 : f.account}`)) {
|
|
2924
|
+
const H = await wl({
|
|
2925
|
+
key: {
|
|
2926
|
+
pageKey: (be = Bl.value.split(`/updateLoading${(ie = Il.value) == null ? void 0 : ie.account}`)) == null ? void 0 : be[0],
|
|
2927
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
2928
|
+
}
|
|
2929
|
+
});
|
|
2930
|
+
let _ = (Fe = (De = H == null ? void 0 : H.data) == null ? void 0 : De.result) == null ? void 0 : Fe.map((de) => de == null ? void 0 : de.id);
|
|
2931
|
+
(_ == null ? void 0 : _.length) > 0 && await fs({
|
|
2932
|
+
ids: _
|
|
2933
|
+
});
|
|
2934
|
+
}
|
|
2935
|
+
let o = [];
|
|
2936
|
+
if (((b = (pe = i == null ? void 0 : i.data) == null ? void 0 : pe.result) == null ? void 0 : b.length) > 0) {
|
|
2937
|
+
let H = "", _ = [];
|
|
2938
|
+
(s = (L = i == null ? void 0 : i.data) == null ? void 0 : L.result) == null || s.forEach((Q) => {
|
|
2939
|
+
var C, ce, g, z, K;
|
|
2940
|
+
((ce = (C = Q == null ? void 0 : Q.value) == null ? void 0 : C.pageData) == null ? void 0 : ce.comp) === "Form" && ((K = (z = (g = Q == null ? void 0 : Q.value) == null ? void 0 : g.pageData) == null ? void 0 : z.compData) == null || K.forEach((n) => {
|
|
2941
|
+
(n == null ? void 0 : n.key) === "formContent" && (_ = [..._, ...n == null ? void 0 : n.contents]);
|
|
2942
|
+
}));
|
|
2943
|
+
});
|
|
2944
|
+
let de = _ == null ? void 0 : _.find((Q) => (Q == null ? void 0 : Q.isMain) === !0);
|
|
2945
|
+
de ? H = de == null ? void 0 : de.value : H = (O = (ee = (u = (T = (oe = (W = (k = (v = (p = i == null ? void 0 : i.data) == null ? void 0 : p.result) == null ? void 0 : v[0]) == null ? void 0 : k.value) == null ? void 0 : W.pageData) == null ? void 0 : oe.compData) == null ? void 0 : T.find((Q) => (Q == null ? void 0 : Q.key) === "formContent")) == null ? void 0 : u.contents) == null ? void 0 : ee.find((Q) => {
|
|
2946
|
+
var C, ce;
|
|
2947
|
+
return (Q == null ? void 0 : Q.key) === r || ((ce = (C = Q == null ? void 0 : Q.optionUrl) == null ? void 0 : C.groupSelect) == null ? void 0 : ce[1]) === r;
|
|
2948
|
+
})) == null ? void 0 : O.value, (se = (ne = i == null ? void 0 : i.data) == null ? void 0 : ne.result) == null || se.forEach((Q) => {
|
|
2949
|
+
var ce;
|
|
2950
|
+
let C = (ce = l(Q)) == null ? void 0 : ce.key;
|
|
2951
|
+
C.pageKey = l($l).value + "/" + H, ka.setChildMenu(C.pageKey), o.push({
|
|
2952
|
+
id: Q == null ? void 0 : Q.id,
|
|
2953
|
+
key: C
|
|
2954
|
+
});
|
|
2955
|
+
}), await ya({
|
|
2956
|
+
dataList: o
|
|
2957
|
+
}), H !== "" && tl.success("保存成功"), await ms(l($l).value + "/" + H, l($l).value + "/" + H + `/updateLoading${(q = Il.value) == null ? void 0 : q.account}`), ka.setActiveMenuPath(l($l).value + "/" + H + `/updateLoading${($ = Il.value) == null ? void 0 : $.account}`);
|
|
2958
|
+
}
|
|
2959
|
+
}, Co = {
|
|
2960
|
+
key: 0,
|
|
2961
|
+
class: "method-content"
|
|
2962
|
+
}, wo = {
|
|
2963
|
+
__name: "index",
|
|
2964
|
+
props: {
|
|
2965
|
+
itemData: {
|
|
2966
|
+
type: Array,
|
|
2967
|
+
default: () => []
|
|
2968
|
+
},
|
|
2969
|
+
childItemData: {
|
|
2970
|
+
type: Array,
|
|
2971
|
+
default: () => []
|
|
2972
|
+
},
|
|
2973
|
+
index: Number,
|
|
2974
|
+
changedContent: {
|
|
2975
|
+
type: Object,
|
|
2976
|
+
default: () => {
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
},
|
|
2980
|
+
setup(r) {
|
|
2981
|
+
const F = G([]), h = r, i = G(!1), o = G(), R = Da(al), S = G(!1), w = Ka(al), M = wa(al), { itemData: X, isEdit: B, routeToChildPath: re } = ol(R), { activeMenuPath: ae, platform: Ce, childMenu: te } = ol(w), { loginUserInfo: ke } = ol(M), I = G(!1), A = (b, L) => {
|
|
2982
|
+
const s = L;
|
|
2983
|
+
return b == null ? void 0 : b.map((p) => {
|
|
2984
|
+
var v;
|
|
2985
|
+
return p = (v = p == null ? void 0 : p.map((k, W) => {
|
|
2986
|
+
var oe;
|
|
2987
|
+
return {
|
|
2988
|
+
key: (oe = s[W]) == null ? void 0 : oe.label,
|
|
2989
|
+
value: k
|
|
2990
|
+
};
|
|
2991
|
+
})) == null ? void 0 : v.filter((k) => k.key !== "操作"), p;
|
|
2992
|
+
});
|
|
2993
|
+
}, ve = async () => {
|
|
2994
|
+
var b, L;
|
|
2995
|
+
(b = F.value) != null && b.find((s) => (s == null ? void 0 : s.buttonName) === "保存") && await Fe((L = F.value) == null ? void 0 : L.find((s) => (s == null ? void 0 : s.buttonName) === "保存")), await _o();
|
|
2996
|
+
};
|
|
2997
|
+
Xe(
|
|
2998
|
+
() => X.value,
|
|
2999
|
+
async () => {
|
|
3000
|
+
B.value === "view" && !I.value && await pe(l(h.itemData)), I.value = !1;
|
|
3001
|
+
},
|
|
3002
|
+
{ deep: !0 }
|
|
3003
|
+
);
|
|
3004
|
+
const c = () => {
|
|
3005
|
+
i.value = !1, o.value = void 0;
|
|
3006
|
+
}, d = async (b, L) => {
|
|
3007
|
+
var s;
|
|
3008
|
+
if (Ra(b == null ? void 0 : b.name, L)) {
|
|
3009
|
+
let p = Ra(b == null ? void 0 : b.name, L);
|
|
3010
|
+
b == null || b.id, b.compData = await Promise.all(
|
|
3011
|
+
(s = l(b.compData)) == null ? void 0 : s.map(async (v) => ((v == null ? void 0 : v.key) === "tableContents" && (v.extra = await Cs(l(v.contents), (b == null ? void 0 : b.tableId) ?? (b == null ? void 0 : b.id)), v.contents = ws(l(p))), v))
|
|
3012
|
+
);
|
|
3013
|
+
} else
|
|
3014
|
+
b = Ds(b, L);
|
|
3015
|
+
return b;
|
|
3016
|
+
}, f = (b, L) => {
|
|
3017
|
+
var p, v, k, W, oe, T, u, ee, O, ne, se, q;
|
|
3018
|
+
let s = (p = l(L)) == null ? void 0 : p.filter(($) => ($ == null ? void 0 : $.comp) !== "methodButton");
|
|
3019
|
+
if (b != null && b.includes("[")) {
|
|
3020
|
+
let $ = (T = (oe = (W = (k = (v = l(b)) == null ? void 0 : v.split("[")) == null ? void 0 : k[1]) == null ? void 0 : W.split("]")) == null ? void 0 : oe[0]) == null ? void 0 : T.split(":"), H = "";
|
|
3021
|
+
if ($ != null && $[0]) {
|
|
3022
|
+
let _ = (u = s == null ? void 0 : s.find((de) => (de == null ? void 0 : de.name) === ($ == null ? void 0 : $[0]))) == null ? void 0 : u.compData;
|
|
3023
|
+
_ == null || _.forEach((de) => {
|
|
3024
|
+
var Q;
|
|
3025
|
+
(de == null ? void 0 : de.key) === "formContent" && ((Q = de == null ? void 0 : de.contents) == null || Q.forEach((C) => {
|
|
3026
|
+
(C == null ? void 0 : C.key) === ($ == null ? void 0 : $[1]) && (H = C == null ? void 0 : C.value);
|
|
3027
|
+
}));
|
|
3028
|
+
});
|
|
3029
|
+
}
|
|
3030
|
+
return H;
|
|
3031
|
+
} else if (b != null && b.includes("/")) {
|
|
3032
|
+
let $ = {};
|
|
3033
|
+
return (ee = l(s)) == null || ee.forEach((H, _) => {
|
|
3034
|
+
var de, Q, C, ce, g, z, K, n, ge, e, a, t, y, D, N, he, U, Y, ue;
|
|
3035
|
+
if ((H == null ? void 0 : H.comp) === "Table") {
|
|
3036
|
+
let me = Array.isArray((C = (Q = (de = H == null ? void 0 : H.compData) == null ? void 0 : de.find((V) => (V == null ? void 0 : V.key) === "header")) == null ? void 0 : Q.contents) == null ? void 0 : C[0]) ? (K = (z = (g = (ce = H == null ? void 0 : H.compData) == null ? void 0 : ce.find((V) => (V == null ? void 0 : V.key) === "header")) == null ? void 0 : g.contents) == null ? void 0 : z[0]) == null ? void 0 : K.some((V) => V == null ? void 0 : V.children) : [], J = (e = (ge = (n = H == null ? void 0 : H.compData) == null ? void 0 : n.find((V) => (V == null ? void 0 : V.key) === "tableContents")) == null ? void 0 : ge.contents) == null ? void 0 : e.map((V) => V.slice(1)), P = (N = (D = (y = (t = (a = H == null ? void 0 : H.compData) == null ? void 0 : a.find((V) => (V == null ? void 0 : V.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : y[0]) == null ? void 0 : D[0]) == null ? void 0 : N.label, j = (U = (he = H == null ? void 0 : H.compData) == null ? void 0 : he.find((V) => (V == null ? void 0 : V.key) === "header")) == null ? void 0 : U.contents;
|
|
3037
|
+
if (me)
|
|
3038
|
+
(me == null ? void 0 : me.length) === 0 ? $[H.name] = A(J, j) : $[P] = A(J, j);
|
|
3039
|
+
else {
|
|
3040
|
+
const V = [];
|
|
3041
|
+
j = j.slice(1, j.length - 1), j == null || j.forEach((ye, Ie) => {
|
|
3042
|
+
J == null || J.forEach((Oe) => {
|
|
3043
|
+
V.push({
|
|
3044
|
+
key: ye.label + Oe[0],
|
|
3045
|
+
value: Oe[Ie + 1]
|
|
3046
|
+
});
|
|
3047
|
+
});
|
|
3048
|
+
}), $["form" + _] = V;
|
|
3049
|
+
}
|
|
3050
|
+
} else {
|
|
3051
|
+
const me = (ue = (Y = H.compData) == null ? void 0 : Y.find((P) => (P == null ? void 0 : P.key) === "formContent")) == null ? void 0 : ue.contents;
|
|
3052
|
+
$ != null && $.form || ($.form = []);
|
|
3053
|
+
const J = [];
|
|
3054
|
+
me == null || me.forEach((P) => {
|
|
3055
|
+
P.key !== "" && (P = {
|
|
3056
|
+
key: (P == null ? void 0 : P.key) ?? (P == null ? void 0 : P.label),
|
|
3057
|
+
value: P == null ? void 0 : P.value
|
|
3058
|
+
}, J.push(P));
|
|
3059
|
+
}), $.form = [...J, ...l($ == null ? void 0 : $.form)];
|
|
3060
|
+
}
|
|
3061
|
+
}), $;
|
|
3062
|
+
} else {
|
|
3063
|
+
if (b === "createInsofDataApi") {
|
|
3064
|
+
let $ = (O = l(L)) == null ? void 0 : O[0];
|
|
3065
|
+
return $ = {
|
|
3066
|
+
comp: (ne = l($)) == null ? void 0 : ne.comp,
|
|
3067
|
+
compData: (se = l($)) == null ? void 0 : se.compData,
|
|
3068
|
+
name: (q = l($)) == null ? void 0 : q.name
|
|
3069
|
+
}, {
|
|
3070
|
+
key: {
|
|
3071
|
+
type: "structure",
|
|
3072
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3073
|
+
parentTable: "",
|
|
3074
|
+
pageKey: ae.value
|
|
3075
|
+
},
|
|
3076
|
+
value: {
|
|
3077
|
+
pageData: $
|
|
3078
|
+
}
|
|
3079
|
+
};
|
|
3080
|
+
}
|
|
3081
|
+
return b;
|
|
3082
|
+
}
|
|
3083
|
+
}, m = async (b, L, s) => {
|
|
3084
|
+
var k;
|
|
3085
|
+
let p = await gl(L, sessionStorage.getItem("systemKey"), ""), v = p == null ? void 0 : p.find((W) => (W == null ? void 0 : W.name) === (s == null ? void 0 : s[0]));
|
|
3086
|
+
if (v && (v == null ? void 0 : v.comp) === "Table") {
|
|
3087
|
+
let W = {};
|
|
3088
|
+
for (let se in l(b))
|
|
3089
|
+
l(b)[se] !== "loginUser" ? W[se] = l(b)[se] : W[se] = (k = ke.value) == null ? void 0 : k.account;
|
|
3090
|
+
let oe = [], T = W;
|
|
3091
|
+
Array.isArray(b) || (T = [W]), T == null || T.forEach((se) => {
|
|
3092
|
+
oe.push({
|
|
3093
|
+
[se[s[1]]]: se
|
|
3094
|
+
});
|
|
3095
|
+
});
|
|
3096
|
+
let u = [], ee = oe == null ? void 0 : oe.map((se) => {
|
|
3097
|
+
var q;
|
|
3098
|
+
return (q = Object.keys(se)) == null ? void 0 : q[0];
|
|
3099
|
+
});
|
|
3100
|
+
p == null || p.forEach((se) => {
|
|
3101
|
+
var q;
|
|
3102
|
+
(se == null ? void 0 : se.name) === (s == null ? void 0 : s[0]) && ((q = se == null ? void 0 : se.compData) == null || q.forEach(($) => {
|
|
3103
|
+
var H;
|
|
3104
|
+
($ == null ? void 0 : $.key) === "tableContents" && ((H = $ == null ? void 0 : $.contents) == null || H.forEach((_) => {
|
|
3105
|
+
_ != null && _.some((de) => ee.includes(de)) && u.push({
|
|
3106
|
+
[_.find((de) => de.id).id]: _.find((de) => ee.includes(de))
|
|
3107
|
+
});
|
|
3108
|
+
}));
|
|
3109
|
+
}));
|
|
3110
|
+
});
|
|
3111
|
+
let O = u == null ? void 0 : u.map((se) => {
|
|
3112
|
+
var q;
|
|
3113
|
+
return (q = Object.keys(se)) == null ? void 0 : q[0];
|
|
3114
|
+
}), ne = [];
|
|
3115
|
+
O == null || O.forEach((se) => {
|
|
3116
|
+
var H;
|
|
3117
|
+
let q = (H = u == null ? void 0 : u.find((_) => {
|
|
3118
|
+
var de;
|
|
3119
|
+
return ((de = Object.keys(_)) == null ? void 0 : de[0].toString()) === se.toString();
|
|
3120
|
+
})) == null ? void 0 : H[se], $ = oe == null ? void 0 : oe.find((_) => {
|
|
3121
|
+
var de;
|
|
3122
|
+
return ((de = Object.keys(_)) == null ? void 0 : de[0]) === q;
|
|
3123
|
+
});
|
|
3124
|
+
ne.push({
|
|
3125
|
+
id: parseInt(se),
|
|
3126
|
+
value: {
|
|
3127
|
+
tableData: $[q]
|
|
3128
|
+
}
|
|
3129
|
+
});
|
|
3130
|
+
}), (ne == null ? void 0 : ne.length) > 0 && await ya({
|
|
3131
|
+
dataList: ne
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
3134
|
+
}, ie = async (b, L, s) => {
|
|
3135
|
+
var k, W, oe, T, u, ee, O, ne, se;
|
|
3136
|
+
let p = await gl(L, sessionStorage.getItem("systemKey"), ""), v = p == null ? void 0 : p.find((q) => (q == null ? void 0 : q.name) === (s == null ? void 0 : s[0]));
|
|
3137
|
+
if (v) {
|
|
3138
|
+
if ((v == null ? void 0 : v.comp) === "Table") {
|
|
3139
|
+
let q = {};
|
|
3140
|
+
for (let $ in l(b))
|
|
3141
|
+
l(b)[$] !== "loginUser" ? q[$] = l(b)[$] : q[$] = (k = ke.value) == null ? void 0 : k.account;
|
|
3142
|
+
await La({
|
|
3143
|
+
key: {
|
|
3144
|
+
type: "data",
|
|
3145
|
+
pageKey: L,
|
|
3146
|
+
tableId: v == null ? void 0 : v.id,
|
|
3147
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3148
|
+
},
|
|
3149
|
+
value: {
|
|
3150
|
+
tableData: q
|
|
3151
|
+
}
|
|
3152
|
+
});
|
|
3153
|
+
} else if ((v == null ? void 0 : v.comp) === "Form") {
|
|
3154
|
+
let q = l(v), $ = Object.keys(b), H = "";
|
|
3155
|
+
(oe = (W = l(q)) == null ? void 0 : W.compData) == null || oe.forEach((g) => {
|
|
3156
|
+
var z, K;
|
|
3157
|
+
(g == null ? void 0 : g.key) === "formContent" && ((K = (z = l(g)) == null ? void 0 : z.contents) == null || K.forEach((n) => {
|
|
3158
|
+
var ge;
|
|
3159
|
+
$.includes(n == null ? void 0 : n.key) && (n == null ? void 0 : n.value) === ((ge = ke.value) == null ? void 0 : ge.姓名) && (H = n == null ? void 0 : n.key);
|
|
3160
|
+
}));
|
|
3161
|
+
});
|
|
3162
|
+
let _ = [];
|
|
3163
|
+
(T = Object.values(b[H])) == null || T.forEach((g) => {
|
|
3164
|
+
g != null && g.includes("(") && _.push(g);
|
|
3165
|
+
}), _ = [...new Set(_)];
|
|
3166
|
+
const de = _ == null ? void 0 : _.map(async (g) => {
|
|
3167
|
+
var e, a, t, y, D, N, he, U, Y, ue, me, J;
|
|
3168
|
+
let z = "";
|
|
3169
|
+
(N = (D = (y = (t = (a = (e = l(g)) == null ? void 0 : e.split("(")) == null ? void 0 : a[1]) == null ? void 0 : t.split(")")) == null ? void 0 : y[0]) == null ? void 0 : D.split(":")) == null || N.forEach((P) => {
|
|
3170
|
+
z = z === "" ? z + P.replaceAll("'", "") : z + "/" + P.replaceAll("'", "");
|
|
3171
|
+
});
|
|
3172
|
+
let K = [];
|
|
3173
|
+
(J = (me = (ue = (Y = (U = (he = l(g)) == null ? void 0 : he.split("<")) == null ? void 0 : U[1]) == null ? void 0 : Y.split(">")) == null ? void 0 : ue[0]) == null ? void 0 : me.split(":")) == null || J.forEach((P) => {
|
|
3174
|
+
K.push(P.replaceAll("'", ""));
|
|
3175
|
+
});
|
|
3176
|
+
const n = await gl(z, sessionStorage.getItem("systemKey"), "");
|
|
3177
|
+
let ge = "";
|
|
3178
|
+
return n == null || n.forEach((P) => {
|
|
3179
|
+
var j;
|
|
3180
|
+
P.name === (K == null ? void 0 : K[0]) && ((j = P == null ? void 0 : P.compData) == null || j.forEach((V) => {
|
|
3181
|
+
var ye;
|
|
3182
|
+
(V == null ? void 0 : V.key) === "formContent" && ((ye = V.contents) == null || ye.forEach((Ie) => {
|
|
3183
|
+
(Ie == null ? void 0 : Ie.key) === (K == null ? void 0 : K[1]) && (ge = Ie == null ? void 0 : Ie.value);
|
|
3184
|
+
}));
|
|
3185
|
+
}));
|
|
3186
|
+
}), {
|
|
3187
|
+
[g]: ge
|
|
3188
|
+
};
|
|
3189
|
+
}), Q = await Promise.all(de);
|
|
3190
|
+
q.compData = (ee = (u = l(q)) == null ? void 0 : u.compData) == null ? void 0 : ee.map((g) => {
|
|
3191
|
+
var z, K;
|
|
3192
|
+
return (g == null ? void 0 : g.key) === "formContent" && (g.contents = (K = (z = l(g)) == null ? void 0 : z.contents) == null ? void 0 : K.map((n) => {
|
|
3193
|
+
var ge, e, a, t;
|
|
3194
|
+
return (ge = b[H]) != null && ge[n == null ? void 0 : n.key] && (b[H][n == null ? void 0 : n.key].includes("(") ? n.value = (e = Q == null ? void 0 : Q.find((y) => {
|
|
3195
|
+
var D;
|
|
3196
|
+
return ((D = Object.keys(y)) == null ? void 0 : D[0]) === b[H][n == null ? void 0 : n.key];
|
|
3197
|
+
})) == null ? void 0 : e[b[H][n == null ? void 0 : n.key]] : n.value = (t = (a = l(b)) == null ? void 0 : a[H]) == null ? void 0 : t[n == null ? void 0 : n.key]), n;
|
|
3198
|
+
})), g;
|
|
3199
|
+
});
|
|
3200
|
+
const C = await wl({
|
|
3201
|
+
key: {
|
|
3202
|
+
type: "structure",
|
|
3203
|
+
pageKey: L,
|
|
3204
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3205
|
+
}
|
|
3206
|
+
});
|
|
3207
|
+
let ce = "";
|
|
3208
|
+
((O = C == null ? void 0 : C.data) == null ? void 0 : O.type) === "success" && ((se = (ne = C == null ? void 0 : C.data) == null ? void 0 : ne.result) == null || se.forEach((g) => {
|
|
3209
|
+
var z, K;
|
|
3210
|
+
((K = (z = g == null ? void 0 : g.value) == null ? void 0 : z.pageData) == null ? void 0 : K.name) === (s == null ? void 0 : s[0]) && (ce = g.id);
|
|
3211
|
+
}), await Oa({
|
|
3212
|
+
id: ce,
|
|
3213
|
+
value: {
|
|
3214
|
+
pageData: q
|
|
3215
|
+
}
|
|
3216
|
+
}));
|
|
3217
|
+
}
|
|
3218
|
+
}
|
|
3219
|
+
}, be = async (b, L, s) => {
|
|
3220
|
+
var k, W, oe, T, u, ee;
|
|
3221
|
+
let p = await gl(L, sessionStorage.getItem("systemKey"), ""), v = p == null ? void 0 : p.find((O) => (O == null ? void 0 : O.name) === (s == null ? void 0 : s[0]));
|
|
3222
|
+
if (v) {
|
|
3223
|
+
if (!(s != null && s[1]) && (v == null ? void 0 : v.comp) === "Table") {
|
|
3224
|
+
let O = {};
|
|
3225
|
+
for (let ne in l(b))
|
|
3226
|
+
l(b)[ne] !== "loginUser" ? O[ne] = l(b)[ne] : O[ne] = (k = ke.value) == null ? void 0 : k.account;
|
|
3227
|
+
await La({
|
|
3228
|
+
key: {
|
|
3229
|
+
type: "data",
|
|
3230
|
+
pageKey: L,
|
|
3231
|
+
tableId: v == null ? void 0 : v.id,
|
|
3232
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3233
|
+
},
|
|
3234
|
+
value: {
|
|
3235
|
+
tableData: O
|
|
3236
|
+
}
|
|
3237
|
+
});
|
|
3238
|
+
} else if (!(s != null && s[1]) && (v == null ? void 0 : v.comp) === "Form") {
|
|
3239
|
+
let O = l(v);
|
|
3240
|
+
O.compData = (oe = (W = l(O)) == null ? void 0 : W.compData) == null ? void 0 : oe.map((q) => {
|
|
3241
|
+
var $, H;
|
|
3242
|
+
return (q == null ? void 0 : q.key) === "formContent" && (q.contents = (H = ($ = l(q)) == null ? void 0 : $.contents) == null ? void 0 : H.map((_) => {
|
|
3243
|
+
var de, Q;
|
|
3244
|
+
return (de = l(b)) != null && de[_ == null ? void 0 : _.key] && (_.value = (Q = l(b)) == null ? void 0 : Q[_ == null ? void 0 : _.key]), _;
|
|
3245
|
+
})), q;
|
|
3246
|
+
});
|
|
3247
|
+
const ne = await wl({
|
|
3248
|
+
key: {
|
|
3249
|
+
type: "structure",
|
|
3250
|
+
pageKey: L,
|
|
3251
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3252
|
+
}
|
|
3253
|
+
});
|
|
3254
|
+
let se = "";
|
|
3255
|
+
((T = ne == null ? void 0 : ne.data) == null ? void 0 : T.type) === "success" && ((ee = (u = ne == null ? void 0 : ne.data) == null ? void 0 : u.result) == null || ee.forEach((q) => {
|
|
3256
|
+
var $, H;
|
|
3257
|
+
((H = ($ = q == null ? void 0 : q.value) == null ? void 0 : $.pageData) == null ? void 0 : H.name) === (s == null ? void 0 : s[0]) && (se = q.id);
|
|
3258
|
+
}), await Oa({
|
|
3259
|
+
id: se,
|
|
3260
|
+
value: {
|
|
3261
|
+
pageData: O
|
|
3262
|
+
}
|
|
3263
|
+
}));
|
|
3264
|
+
}
|
|
3265
|
+
}
|
|
3266
|
+
}, De = ["createInsofDataApi"], Fe = async (b) => {
|
|
3267
|
+
var s, p, v, k, W, oe, T, u, ee, O, ne, se, q, $, H, _, de, Q;
|
|
3268
|
+
w.setImportLoading(!0);
|
|
3269
|
+
let L = {};
|
|
3270
|
+
if (Ce.value !== "browser") {
|
|
3271
|
+
const C = [];
|
|
3272
|
+
L.form = {}, (s = l(b.content)) == null || s.forEach((g, z) => {
|
|
3273
|
+
var K, n, ge, e, a, t, y, D, N, he, U, Y, ue, me;
|
|
3274
|
+
if ((g == null ? void 0 : g.comp) === "Table") {
|
|
3275
|
+
(n = (K = g == null ? void 0 : g.compData) == null ? void 0 : K.find((V) => (V == null ? void 0 : V.key) === "header")) == null || n.contents;
|
|
3276
|
+
let J = (a = (e = (ge = g == null ? void 0 : g.compData) == null ? void 0 : ge.find((V) => (V == null ? void 0 : V.key) === "tableContents")) == null ? void 0 : e.contents) == null ? void 0 : a.map((V) => V.slice(1));
|
|
3277
|
+
(he = (N = (D = (y = (t = g == null ? void 0 : g.compData) == null ? void 0 : t.find((V) => (V == null ? void 0 : V.key) === "header")) == null ? void 0 : y.contents) == null ? void 0 : D[0]) == null ? void 0 : N[0]) == null || he.label;
|
|
3278
|
+
let P = (Y = (U = g == null ? void 0 : g.compData) == null ? void 0 : U.find((V) => (V == null ? void 0 : V.key) === "header")) == null ? void 0 : Y.contents, j = [];
|
|
3279
|
+
J == null || J.forEach((V) => {
|
|
3280
|
+
let ye = [];
|
|
3281
|
+
V == null || V.forEach((Ie, Oe) => {
|
|
3282
|
+
var E;
|
|
3283
|
+
let Ee = {};
|
|
3284
|
+
((E = P[Oe]) == null ? void 0 : E.label) !== "操作" && (Ee[P[Oe].label] = Ie, ye.push(Ee));
|
|
3285
|
+
}), j.push(ye);
|
|
3286
|
+
}), L[g.name] = j;
|
|
3287
|
+
} else {
|
|
3288
|
+
const J = (me = (ue = g.compData) == null ? void 0 : ue.find((P) => (P == null ? void 0 : P.key) === "formContent")) == null ? void 0 : me.contents;
|
|
3289
|
+
J == null || J.forEach((P) => {
|
|
3290
|
+
var j;
|
|
3291
|
+
P.key !== "" && (P = {
|
|
3292
|
+
key: (P == null ? void 0 : P.key) ?? (P == null ? void 0 : P.label),
|
|
3293
|
+
value: (j = P == null ? void 0 : P.value) == null ? void 0 : j.toString()
|
|
3294
|
+
}, C.push(P));
|
|
3295
|
+
});
|
|
3296
|
+
}
|
|
3297
|
+
}), L.form = bs(C);
|
|
3298
|
+
let ce = L.form;
|
|
3299
|
+
for (let g in L)
|
|
3300
|
+
g !== "form" && (ce[g] = gs(L[g]));
|
|
3301
|
+
if (b.api) {
|
|
3302
|
+
try {
|
|
3303
|
+
S.value = !0;
|
|
3304
|
+
const g = await ta.post(
|
|
3305
|
+
b.api,
|
|
3306
|
+
ce,
|
|
3307
|
+
{
|
|
3308
|
+
headers: {
|
|
3309
|
+
"Content-Type": "application/json"
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
);
|
|
3313
|
+
if (((p = g == null ? void 0 : g.data) == null ? void 0 : p.code) === 200 || ((v = g == null ? void 0 : g.data) == null ? void 0 : v.statusCode) === 200) {
|
|
3314
|
+
let z = await ((k = g == null ? void 0 : g.data) == null ? void 0 : k.data);
|
|
3315
|
+
const K = (W = l(X.value)) == null ? void 0 : W.filter((a) => (a == null ? void 0 : a.comp) !== "methodButton"), n = await Promise.all(
|
|
3316
|
+
K.map((a) => d(a, z))
|
|
3317
|
+
);
|
|
3318
|
+
await Promise.all(n);
|
|
3319
|
+
const ge = (oe = l(X.value)) == null ? void 0 : oe.filter((a) => (a == null ? void 0 : a.comp) === "methodButton");
|
|
3320
|
+
let e = [...n, ...ge];
|
|
3321
|
+
await ks(e), S.value = !1;
|
|
3322
|
+
} else
|
|
3323
|
+
tl.error("方法调用失败:" + ((T = g == null ? void 0 : g.data) == null ? void 0 : T.errors)), S.value = !1;
|
|
3324
|
+
} catch {
|
|
3325
|
+
tl.error("方法调用失败"), S.value = !1;
|
|
3326
|
+
}
|
|
3327
|
+
R.setFreshContent(!0);
|
|
3328
|
+
}
|
|
3329
|
+
} else if (b.api) {
|
|
3330
|
+
let C = await gl((te == null ? void 0 : te.value) === "" ? ae.value : te == null ? void 0 : te.value, sessionStorage.getItem("systemKey"), ""), ce = {};
|
|
3331
|
+
(ee = (u = b == null ? void 0 : b.extraValues) == null ? void 0 : u.input) == null || ee.forEach((e) => {
|
|
3332
|
+
var a;
|
|
3333
|
+
De != null && De.find((t) => t === e) ? ce = f(e, C) : ce[Object.keys(e)[0]] = f((a = Object.values(e)) == null ? void 0 : a[0], C);
|
|
3334
|
+
});
|
|
3335
|
+
let g = !1;
|
|
3336
|
+
(ne = (O = b == null ? void 0 : b.extraValues) == null ? void 0 : O.output) == null || ne.forEach((e) => {
|
|
3337
|
+
var a, t;
|
|
3338
|
+
(t = (a = Object.values(e)) == null ? void 0 : a[0]) != null && t.includes(".doc") && (g = !0);
|
|
3339
|
+
});
|
|
3340
|
+
let z;
|
|
3341
|
+
g ? z = await ta.post(b.api, ce, {
|
|
3342
|
+
responseType: "blob",
|
|
3343
|
+
// 必须设置
|
|
3344
|
+
headers: {
|
|
3345
|
+
"Content-Type": "application/json"
|
|
3346
|
+
}
|
|
3347
|
+
}) : z = await ta.post(b.api, ce, {
|
|
3348
|
+
headers: {
|
|
3349
|
+
"Content-Type": "application/json"
|
|
3350
|
+
}
|
|
3351
|
+
});
|
|
3352
|
+
let K = (H = ($ = (q = (se = l(b)) == null ? void 0 : se.extraValues) == null ? void 0 : q.output) == null ? void 0 : $.map((e) => {
|
|
3353
|
+
var a, t, y, D, N, he, U, Y, ue, me, J, P, j, V, ye, Ie;
|
|
3354
|
+
if (!((t = (a = Object.values(e)) == null ? void 0 : a[0]) != null && t.includes(".doc"))) {
|
|
3355
|
+
let Oe = (me = (ue = (Y = (D = l((y = Object.values(e)) == null ? void 0 : y[0])) == null ? void 0 : D.split("[")) == null ? void 0 : Y[((U = (he = l((N = Object.values(e)) == null ? void 0 : N[0])) == null ? void 0 : he.split("[")) == null ? void 0 : U.length) - 1]) == null ? void 0 : ue.split("]")) == null ? void 0 : me[0];
|
|
3356
|
+
Oe == null || Oe.split(":");
|
|
3357
|
+
let Ee = (j = l((J = Object.values(e)) == null ? void 0 : J[0])) == null ? void 0 : j.substring(0, l((P = Object.values(e)) == null ? void 0 : P[0]).lastIndexOf("["));
|
|
3358
|
+
if (Ee = (ye = l(Ee)) == null ? void 0 : ye.slice(0, ((V = l(Ee)) == null ? void 0 : V.length) - 1), Ee != null && Ee.includes("[")) {
|
|
3359
|
+
let E = "";
|
|
3360
|
+
if ((Ie = ga(Ee, "/")) == null || Ie.forEach((Se) => {
|
|
3361
|
+
var xe, Ge, Ye, Je, He, dl, pl;
|
|
3362
|
+
if (!(Se != null && Se.includes("[")))
|
|
3363
|
+
E = E === "" ? E + Se.replaceAll("/", "") : E + "/" + Se.replaceAll("/", "");
|
|
3364
|
+
else {
|
|
3365
|
+
let ml = l(Se).slice(1, ((xe = l(Se)) == null ? void 0 : xe.length) - 1), Ze = (dl = (He = (Je = (Ye = (Ge = l(ml)) == null ? void 0 : Ge.split("[")) == null ? void 0 : Ye[1]) == null ? void 0 : Je.split("]")) == null ? void 0 : He[0]) == null ? void 0 : dl.split(":"), nl = "", ul = (pl = C == null ? void 0 : C.find((We) => (We == null ? void 0 : We.name) === (Ze == null ? void 0 : Ze[0]))) == null ? void 0 : pl.compData;
|
|
3366
|
+
ul == null || ul.forEach((We) => {
|
|
3367
|
+
var fl;
|
|
3368
|
+
(We == null ? void 0 : We.key) === "formContent" && ((fl = We == null ? void 0 : We.contents) == null || fl.forEach((rl) => {
|
|
3369
|
+
(rl == null ? void 0 : rl.key) === (Ze == null ? void 0 : Ze[1]) && (nl = rl == null ? void 0 : rl.value);
|
|
3370
|
+
}));
|
|
3371
|
+
}), E = E === "" ? E + nl.replaceAll("/", "") : E + "/" + nl.replaceAll("/", "");
|
|
3372
|
+
}
|
|
3373
|
+
}), Ee = E, Ee[(Ee == null ? void 0 : Ee.length) - 1] !== "/")
|
|
3374
|
+
return Ee;
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
})) == null ? void 0 : H.filter((e) => e);
|
|
3378
|
+
K = [...new Set(l(K))];
|
|
3379
|
+
let n = K == null ? void 0 : K.map(async (e) => {
|
|
3380
|
+
let a = await gl(e, sessionStorage.getItem("systemKey"), "");
|
|
3381
|
+
if ((a == null ? void 0 : a.length) === 0)
|
|
3382
|
+
return await _s(e);
|
|
3383
|
+
});
|
|
3384
|
+
await Promise.all(n);
|
|
3385
|
+
let ge = (Q = (de = (_ = l(b)) == null ? void 0 : _.extraValues) == null ? void 0 : de.output) == null ? void 0 : Q.map(async (e) => {
|
|
3386
|
+
var U, Y, ue, me, J, P, j, V, ye, Ie, Oe, Ee, E, Se, xe, Ge, Ye, Je, He, dl, pl, ml, Ze, nl, ul, We, fl, rl, Ll, Ol, Vl, Rl, Ul, Pl, jl, Kl, Nl, Ml, cl, sl, Wl, zl, Jl, Hl, Gl, ql, Ql, Xl, Yl, Zl, ea, la, aa, sa, ia, Dl, xa, Ta, Aa, Ea;
|
|
3387
|
+
if ((Y = (U = Object.values(e)) == null ? void 0 : U[0]) != null && Y.includes(".doc")) {
|
|
3388
|
+
var a = new Blob([z.data], {
|
|
3389
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
3390
|
+
}), t = z.headers["content-disposition"], y = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), D = y.exec(t), N = D == null ? void 0 : D[1];
|
|
3391
|
+
document.createElement("a");
|
|
3392
|
+
var he = window.URL.createObjectURL(a);
|
|
3393
|
+
o.value = [{
|
|
3394
|
+
name: N,
|
|
3395
|
+
blobUrl: he
|
|
3396
|
+
}], i.value = !0;
|
|
3397
|
+
} else {
|
|
3398
|
+
let fa = (Ie = (ye = (V = (me = l((ue = Object.values(e)) == null ? void 0 : ue[0])) == null ? void 0 : me.split("[")) == null ? void 0 : V[((j = (P = l((J = Object.values(e)) == null ? void 0 : J[0])) == null ? void 0 : P.split("[")) == null ? void 0 : j.length) - 1]) == null ? void 0 : ye.split("]")) == null ? void 0 : Ie[0], Te = fa == null ? void 0 : fa.split(":"), il = (E = l((Oe = Object.values(e)) == null ? void 0 : Oe[0])) == null ? void 0 : E.substring(0, l((Ee = Object.values(e)) == null ? void 0 : Ee[0]).lastIndexOf("["));
|
|
3399
|
+
if (il != null && il.includes("[") && (il = (xe = l(il)) == null ? void 0 : xe.slice(0, ((Se = l(il)) == null ? void 0 : Se.length) - 1)), il != null && il.includes("[")) {
|
|
3400
|
+
let Be = "";
|
|
3401
|
+
(Ge = ga(il, "/")) == null || Ge.forEach((Pe) => {
|
|
3402
|
+
var Ke, ze, je, vl, hl, oa, Sa;
|
|
3403
|
+
if (!(Pe != null && Pe.includes("[")))
|
|
3404
|
+
Be = Be === "" ? Be + Pe.replaceAll("/", "") : Be + "/" + Pe.replaceAll("/", "");
|
|
3405
|
+
else {
|
|
3406
|
+
let Xa = l(Pe).slice(1, ((Ke = l(Pe)) == null ? void 0 : Ke.length) - 1), El = (oa = (hl = (vl = (je = (ze = l(Xa)) == null ? void 0 : ze.split("[")) == null ? void 0 : je[1]) == null ? void 0 : vl.split("]")) == null ? void 0 : hl[0]) == null ? void 0 : oa.split(":"), va = "", ha = (Sa = C == null ? void 0 : C.find((yl) => (yl == null ? void 0 : yl.name) === (El == null ? void 0 : El[0]))) == null ? void 0 : Sa.compData;
|
|
3407
|
+
ha == null || ha.forEach((yl) => {
|
|
3408
|
+
var $a;
|
|
3409
|
+
(yl == null ? void 0 : yl.key) === "formContent" && (($a = yl == null ? void 0 : yl.contents) == null || $a.forEach((Sl) => {
|
|
3410
|
+
(Sl == null ? void 0 : Sl.key) === (El == null ? void 0 : El[1]) && (va = Sl == null ? void 0 : Sl.value);
|
|
3411
|
+
}));
|
|
3412
|
+
}), Be = Be === "" ? Be + va.replaceAll("/", "") : Be + "/" + va.replaceAll("/", "");
|
|
3413
|
+
}
|
|
3414
|
+
}), il = Be;
|
|
3415
|
+
}
|
|
3416
|
+
if (((Ye = z == null ? void 0 : z.data) == null ? void 0 : Ye.statusCode) === 200 || ((Je = z == null ? void 0 : z.data) == null ? void 0 : Je.code) === 200) {
|
|
3417
|
+
if ((dl = (He = z == null ? void 0 : z.data) == null ? void 0 : He.data) != null && dl[Te == null ? void 0 : Te[0]] && (Te == null ? void 0 : Te.length) === 1)
|
|
3418
|
+
return await be((ml = (pl = z == null ? void 0 : z.data) == null ? void 0 : pl.data) == null ? void 0 : ml[Te == null ? void 0 : Te[0]], il, Te);
|
|
3419
|
+
if ((nl = (Ze = z == null ? void 0 : z.data) == null ? void 0 : Ze.data) != null && nl[Te == null ? void 0 : Te[0]])
|
|
3420
|
+
return await m((We = (ul = z == null ? void 0 : z.data) == null ? void 0 : ul.data) == null ? void 0 : We[Te == null ? void 0 : Te[0]], il, Te);
|
|
3421
|
+
if (il === "" && !((fl = z == null ? void 0 : z.data) != null && fl.data)) {
|
|
3422
|
+
let Be = await gl(ae.value, sessionStorage.getItem("systemKey"), "");
|
|
3423
|
+
Be = Be == null ? void 0 : Be.map((Ke) => {
|
|
3424
|
+
var ze;
|
|
3425
|
+
return (Ke == null ? void 0 : Ke.name) === (Te == null ? void 0 : Te[0]) && (Ke.compData = (ze = Ke.compData) == null ? void 0 : ze.map((je) => {
|
|
3426
|
+
var vl;
|
|
3427
|
+
return (je == null ? void 0 : je.key) === "formContent" && (je.contents = (vl = je.contents) == null ? void 0 : vl.map((hl) => {
|
|
3428
|
+
var oa;
|
|
3429
|
+
return (hl == null ? void 0 : hl.key) === (Te == null ? void 0 : Te[1]) && (hl.value = (oa = z == null ? void 0 : z.data) == null ? void 0 : oa.result), hl;
|
|
3430
|
+
})), je;
|
|
3431
|
+
})), Ke;
|
|
3432
|
+
});
|
|
3433
|
+
let Pe = [];
|
|
3434
|
+
(rl = Be == null ? void 0 : Be.filter((Ke) => (Ke == null ? void 0 : Ke.comp) === "Form")) == null || rl.forEach(async (Ke) => {
|
|
3435
|
+
let ze = {};
|
|
3436
|
+
for (let je in Ke)
|
|
3437
|
+
je !== "id" && (ze[je] = Ke[je]);
|
|
3438
|
+
Pe.push({
|
|
3439
|
+
id: Ke == null ? void 0 : Ke.id,
|
|
3440
|
+
value: {
|
|
3441
|
+
pageData: ze
|
|
3442
|
+
}
|
|
3443
|
+
});
|
|
3444
|
+
}), await ya({
|
|
3445
|
+
dataList: Pe
|
|
3446
|
+
});
|
|
3447
|
+
return;
|
|
3448
|
+
}
|
|
3449
|
+
if ((Te == null ? void 0 : Te.length) === 1) {
|
|
3450
|
+
const Be = (Vl = (Ol = (Ll = z == null ? void 0 : z.data) == null ? void 0 : Ll.data) == null ? void 0 : Ol.path) == null ? void 0 : Vl.path;
|
|
3451
|
+
let Pe = "";
|
|
3452
|
+
(Kl = (jl = (Pl = (Ul = (Rl = Be == null ? void 0 : Be.split("(")) == null ? void 0 : Rl[1]) == null ? void 0 : Ul.split(")")) == null ? void 0 : Pl[0]) == null ? void 0 : jl.split(":")) == null || Kl.forEach((je) => {
|
|
3453
|
+
var vl, hl;
|
|
3454
|
+
Pe = Pe === "" ? Pe + ((vl = je == null ? void 0 : je.replaceAll("'", "")) == null ? void 0 : vl.trim()) : Pe + "/" + ((hl = je == null ? void 0 : je.replaceAll("'", "")) == null ? void 0 : hl.trim());
|
|
3455
|
+
});
|
|
3456
|
+
let Ke = [(Wl = (sl = (cl = (Ml = (Nl = Be == null ? void 0 : Be.split("<")) == null ? void 0 : Nl[1]) == null ? void 0 : Ml.split(">")) == null ? void 0 : cl[0]) == null ? void 0 : sl.replaceAll("'", "")) == null ? void 0 : Wl.trim()], ze;
|
|
3457
|
+
return (Hl = (Jl = (zl = z == null ? void 0 : z.data) == null ? void 0 : zl.data) == null ? void 0 : Jl.data) != null && Hl[Te == null ? void 0 : Te[0]] ? ze = await be((Ql = (ql = (Gl = z == null ? void 0 : z.data) == null ? void 0 : Gl.data) == null ? void 0 : ql.data) == null ? void 0 : Ql[Te == null ? void 0 : Te[0]], Pe, Te) : ze = await ie((Yl = (Xl = z == null ? void 0 : z.data) == null ? void 0 : Xl.data) == null ? void 0 : Yl.data, Pe, Ke), ze;
|
|
3458
|
+
} else {
|
|
3459
|
+
const Be = (la = (ea = (Zl = z == null ? void 0 : z.data) == null ? void 0 : Zl.data) == null ? void 0 : ea.path) == null ? void 0 : la.path;
|
|
3460
|
+
let Pe = "";
|
|
3461
|
+
return (xa = (Dl = (ia = (sa = (aa = Be == null ? void 0 : Be.split("(")) == null ? void 0 : aa[1]) == null ? void 0 : sa.split(")")) == null ? void 0 : ia[0]) == null ? void 0 : Dl.split(":")) == null || xa.forEach((ze) => {
|
|
3462
|
+
var je, vl;
|
|
3463
|
+
Pe = Pe === "" ? Pe + ((je = ze == null ? void 0 : ze.replaceAll("'", "")) == null ? void 0 : je.trim()) : Pe + "/" + ((vl = ze == null ? void 0 : ze.replaceAll("'", "")) == null ? void 0 : vl.trim());
|
|
3464
|
+
}), await m((Ea = (Aa = (Ta = z == null ? void 0 : z.data) == null ? void 0 : Ta.data) == null ? void 0 : Aa.data) == null ? void 0 : Ea[Te == null ? void 0 : Te[0]], Pe, Te);
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3468
|
+
});
|
|
3469
|
+
await Promise.all(ge);
|
|
3470
|
+
}
|
|
3471
|
+
w.setImportLoading(!1), I.value = !0;
|
|
3472
|
+
}, pe = async (b) => {
|
|
3473
|
+
var k, W, oe;
|
|
3474
|
+
const L = l(b);
|
|
3475
|
+
let s;
|
|
3476
|
+
b != null && b[0].path && (s = await (L == null ? void 0 : L.map(async (T, u) => {
|
|
3477
|
+
var q, $, H, _, de, Q, C, ce, g, z;
|
|
3478
|
+
const O = (await wl({
|
|
3479
|
+
key: {
|
|
3480
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3481
|
+
type: "data",
|
|
3482
|
+
pageKey: (q = b == null ? void 0 : b[0]) == null ? void 0 : q.path
|
|
3483
|
+
}
|
|
3484
|
+
})).data.result;
|
|
3485
|
+
let ne = "";
|
|
3486
|
+
const se = await gl(ae.value, sessionStorage.getItem("systemKey"), "");
|
|
3487
|
+
return O == null || O.forEach((K) => {
|
|
3488
|
+
var n, ge, e, a, t;
|
|
3489
|
+
((ge = (n = K == null ? void 0 : K.value) == null ? void 0 : n.tableData) == null ? void 0 : ge.算法名称) === ((e = L == null ? void 0 : L[u]) == null ? void 0 : e.method) && (ne = (t = (a = K == null ? void 0 : K.value) == null ? void 0 : a.tableData) == null ? void 0 : t.算法体);
|
|
3490
|
+
}), {
|
|
3491
|
+
buttonName: (($ = L == null ? void 0 : L[u]) == null ? void 0 : $.method) ?? ((de = (_ = (H = O == null ? void 0 : O[0]) == null ? void 0 : H.value) == null ? void 0 : _.tableData) == null ? void 0 : de.算法名称),
|
|
3492
|
+
api: ne === "" ? (ce = (C = (Q = O == null ? void 0 : O[0]) == null ? void 0 : Q.value) == null ? void 0 : C.tableData) == null ? void 0 : ce.算法体 : ne,
|
|
3493
|
+
content: se == null ? void 0 : se.filter((K) => K.comp !== "methodButton"),
|
|
3494
|
+
extraContent: (g = l(T.value)) == null ? void 0 : g.slice(1),
|
|
3495
|
+
methodName: (T == null ? void 0 : T.path) ?? "",
|
|
3496
|
+
extraValues: (z = L == null ? void 0 : L[u]) == null ? void 0 : z.data
|
|
3497
|
+
};
|
|
3498
|
+
})));
|
|
3499
|
+
const p = L == null ? void 0 : L.map(async (T) => {
|
|
3500
|
+
var q, $, H, _, de, Q;
|
|
3501
|
+
const ee = (q = (await wl({
|
|
3502
|
+
key: {
|
|
3503
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3504
|
+
parentTable: "",
|
|
3505
|
+
type: "method",
|
|
3506
|
+
methodName: T.method
|
|
3507
|
+
}
|
|
3508
|
+
})).data.result) == null ? void 0 : q[0], O = await wl({
|
|
3509
|
+
key: {
|
|
3510
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3511
|
+
type: "methodData",
|
|
3512
|
+
tableId: ee == null ? void 0 : ee.id
|
|
3513
|
+
}
|
|
3514
|
+
}), ne = await gl(ae.value, sessionStorage.getItem("systemKey"), ""), se = ($ = O.data.result) == null ? void 0 : $[0];
|
|
3515
|
+
return {
|
|
3516
|
+
buttonName: (H = ee == null ? void 0 : ee.key) == null ? void 0 : H.methodKey,
|
|
3517
|
+
api: (de = (_ = se == null ? void 0 : se.value) == null ? void 0 : _.tableData) == null ? void 0 : de[0],
|
|
3518
|
+
content: ne == null ? void 0 : ne.filter((C) => C.comp !== "methodButton"),
|
|
3519
|
+
extraContent: (Q = l(T.value)) == null ? void 0 : Q.slice(1),
|
|
3520
|
+
methodName: (T == null ? void 0 : T.method) ?? ""
|
|
3521
|
+
};
|
|
3522
|
+
}), v = (k = b == null ? void 0 : b[0]) != null && k.path && ((W = b == null ? void 0 : b[0]) == null ? void 0 : W.path) !== "" ? await Promise.all(s) : await Promise.all(p);
|
|
3523
|
+
F.value = v == null ? void 0 : v.filter((T) => T == null ? void 0 : T.extraContent), (oe = F.value) == null || oe.forEach((T) => {
|
|
3524
|
+
var u;
|
|
3525
|
+
T.api === "" && ((u = T.content) == null || u.forEach((ee) => {
|
|
3526
|
+
var O;
|
|
3527
|
+
ee.comp == "Table" && R.setExtraContents(ys(ee.compData, (O = T.extraContent) == null ? void 0 : O[0]));
|
|
3528
|
+
}));
|
|
3529
|
+
});
|
|
3530
|
+
};
|
|
3531
|
+
return Xe(
|
|
3532
|
+
() => h.itemData,
|
|
3533
|
+
async () => {
|
|
3534
|
+
B.value == "view" && !I.value && await pe(l(h.itemData)), I.value = !1;
|
|
3535
|
+
},
|
|
3536
|
+
{ immediate: !0, deep: !0 }
|
|
3537
|
+
), (b, L) => {
|
|
3538
|
+
var s, p, v;
|
|
3539
|
+
return xl(B) !== "edit" ? (le(), _e("div", Co, [
|
|
3540
|
+
(le(!0), _e(Ue, null, Ne((s = F.value) == null ? void 0 : s.filter((k) => (k == null ? void 0 : k.buttonName) !== "保存"), (k) => (le(), _e("div", null, [
|
|
3541
|
+
k.api !== "" ? (le(), Ve(xl(Fa), {
|
|
3542
|
+
key: 0,
|
|
3543
|
+
class: "calculator-content",
|
|
3544
|
+
modelValue: k.buttonName,
|
|
3545
|
+
onClickTrigger: (W) => Fe(k),
|
|
3546
|
+
loading: S.value
|
|
3547
|
+
}, null, 8, ["modelValue", "onClickTrigger", "loading"])) : Qe("", !0)
|
|
3548
|
+
]))), 256)),
|
|
3549
|
+
xl(re) !== "" && ((v = xl(ae)) == null ? void 0 : v[((p = xl(ae)) == null ? void 0 : p.length) - 1]) !== "/" ? (le(), Ve(xl(Fa), {
|
|
3550
|
+
key: 0,
|
|
3551
|
+
class: "calculator-content",
|
|
3552
|
+
onClickTrigger: ve,
|
|
3553
|
+
modelValue: "保存"
|
|
3554
|
+
})) : Qe("", !0),
|
|
3555
|
+
i.value ? (le(), Ve(Na, {
|
|
3556
|
+
key: 1,
|
|
3557
|
+
fileDataList: o.value,
|
|
3558
|
+
onDestroy: c
|
|
3559
|
+
}, null, 8, ["fileDataList"])) : Qe("", !0)
|
|
3560
|
+
])) : Qe("", !0);
|
|
3561
|
+
};
|
|
3562
|
+
}
|
|
3563
|
+
}, Do = /* @__PURE__ */ Me(wo, [["__scopeId", "data-v-613a46d4"]]), Io = {};
|
|
3564
|
+
function xo(r, F) {
|
|
3565
|
+
return " 567 ";
|
|
3566
|
+
}
|
|
3567
|
+
const To = /* @__PURE__ */ Me(Io, [["render", xo]]), Ao = { class: "module content" }, Eo = { class: "module data" }, So = { class: "module layout" }, $o = { class: "form-content" }, Bo = /* @__PURE__ */ Al({
|
|
3568
|
+
__name: "operate",
|
|
3569
|
+
props: {
|
|
3570
|
+
itemContents: {
|
|
3571
|
+
type: Array,
|
|
3572
|
+
default: () => []
|
|
3573
|
+
},
|
|
3574
|
+
originalItemContents: {
|
|
3575
|
+
type: Array,
|
|
3576
|
+
default: () => []
|
|
3577
|
+
}
|
|
3578
|
+
},
|
|
3579
|
+
emits: ["change"],
|
|
3580
|
+
setup(r, { emit: F }) {
|
|
3581
|
+
const h = r, i = F, o = _a({
|
|
3582
|
+
visible: !1,
|
|
3583
|
+
width: "40%",
|
|
3584
|
+
title: "签名配置"
|
|
3585
|
+
}), R = G("create"), S = G([
|
|
3586
|
+
{
|
|
3587
|
+
label: "取消",
|
|
3588
|
+
background: "#c0c4cc"
|
|
3589
|
+
},
|
|
3590
|
+
{
|
|
3591
|
+
label: "确认",
|
|
3592
|
+
background: "#436aaf"
|
|
3593
|
+
}
|
|
3594
|
+
]), w = G([
|
|
3595
|
+
{
|
|
3596
|
+
label: "宽度(%):",
|
|
3597
|
+
prop: "signPadWidth",
|
|
3598
|
+
type: "number",
|
|
3599
|
+
value: "30"
|
|
3600
|
+
},
|
|
3601
|
+
{
|
|
3602
|
+
label: "弹窗名称:",
|
|
3603
|
+
prop: "dialogTitle",
|
|
3604
|
+
type: "input",
|
|
3605
|
+
value: ""
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
label: "弹窗宽度(%):",
|
|
3609
|
+
prop: "dialogWidth",
|
|
3610
|
+
type: "number",
|
|
3611
|
+
value: "30"
|
|
3612
|
+
},
|
|
3613
|
+
{
|
|
3614
|
+
label: "弹窗显示:",
|
|
3615
|
+
prop: "dialogShow",
|
|
3616
|
+
type: "radio",
|
|
3617
|
+
contents: [
|
|
3618
|
+
{
|
|
3619
|
+
label: "显示",
|
|
3620
|
+
value: !0
|
|
3621
|
+
},
|
|
3622
|
+
{
|
|
3623
|
+
label: "隐藏",
|
|
3624
|
+
value: !1
|
|
3625
|
+
}
|
|
3626
|
+
],
|
|
3627
|
+
value: !1,
|
|
3628
|
+
isFormColHidden: !0
|
|
3629
|
+
},
|
|
3630
|
+
{
|
|
3631
|
+
label: "路径:",
|
|
3632
|
+
prop: "url",
|
|
3633
|
+
type: "input",
|
|
3634
|
+
value: "",
|
|
3635
|
+
isFormColHidden: !0
|
|
3636
|
+
}
|
|
3637
|
+
]), M = Ca(() => [
|
|
3638
|
+
{
|
|
3639
|
+
label: "",
|
|
3640
|
+
prop: "index",
|
|
3641
|
+
type: "input",
|
|
3642
|
+
value: "",
|
|
3643
|
+
isFormColHidden: !0
|
|
3644
|
+
},
|
|
3645
|
+
{
|
|
3646
|
+
label: "类型:",
|
|
3647
|
+
prop: "label",
|
|
3648
|
+
type: "select",
|
|
3649
|
+
contents: [
|
|
3650
|
+
{
|
|
3651
|
+
label: "电子签名",
|
|
3652
|
+
value: "电子签名"
|
|
3653
|
+
},
|
|
3654
|
+
{
|
|
3655
|
+
label: "签字版",
|
|
3656
|
+
value: "签字版"
|
|
3657
|
+
},
|
|
3658
|
+
{
|
|
3659
|
+
label: "上传签名",
|
|
3660
|
+
value: "上传签名"
|
|
3661
|
+
}
|
|
3662
|
+
],
|
|
3663
|
+
value: ""
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
label: "图标",
|
|
3667
|
+
prop: "icon",
|
|
3668
|
+
type: "inputPopover",
|
|
3669
|
+
value: ""
|
|
3670
|
+
}
|
|
3671
|
+
// {
|
|
3672
|
+
// label: '是否禁用',
|
|
3673
|
+
// prop: 'disabled',
|
|
3674
|
+
// type: 'radio',
|
|
3675
|
+
// contents: [
|
|
3676
|
+
// {
|
|
3677
|
+
// label: '是',
|
|
3678
|
+
// value: true,
|
|
3679
|
+
// },
|
|
3680
|
+
// {
|
|
3681
|
+
// label: '否',
|
|
3682
|
+
// value: false,
|
|
3683
|
+
// }
|
|
3684
|
+
// ],
|
|
3685
|
+
// value: false
|
|
3686
|
+
// },
|
|
3687
|
+
]), X = G({}), B = G([]), re = () => ({
|
|
3688
|
+
comp: "Signature",
|
|
3689
|
+
compData: [
|
|
3690
|
+
{
|
|
3691
|
+
key: "signTypeList",
|
|
3692
|
+
contents: B.value
|
|
3693
|
+
},
|
|
3694
|
+
{
|
|
3695
|
+
key: "signConfig",
|
|
3696
|
+
contents: X.value
|
|
3697
|
+
}
|
|
3698
|
+
]
|
|
3699
|
+
}), ae = (I) => {
|
|
3700
|
+
var A;
|
|
3701
|
+
X.value = l(I), i("change", (A = re()) == null ? void 0 : A.compData);
|
|
3702
|
+
}, Ce = (I) => {
|
|
3703
|
+
var A, ve;
|
|
3704
|
+
if ((I == null ? void 0 : I.buttonName) === "确认") {
|
|
3705
|
+
const c = l(I == null ? void 0 : I.content);
|
|
3706
|
+
switch (R.value) {
|
|
3707
|
+
case "create":
|
|
3708
|
+
B.value.push({
|
|
3709
|
+
...c,
|
|
3710
|
+
index: ((A = B.value) == null ? void 0 : A.length) + 1
|
|
3711
|
+
});
|
|
3712
|
+
break;
|
|
3713
|
+
}
|
|
3714
|
+
i("change", (ve = re()) == null ? void 0 : ve.compData), o.visible = !1;
|
|
3715
|
+
} else
|
|
3716
|
+
o.visible = !1;
|
|
3717
|
+
}, te = (I, A) => {
|
|
3718
|
+
var ve, c;
|
|
3719
|
+
switch (I) {
|
|
3720
|
+
case "create":
|
|
3721
|
+
(ve = M.value) == null || ve.forEach((d) => {
|
|
3722
|
+
d.value = "";
|
|
3723
|
+
}), R.value = "create", o.visible = !0;
|
|
3724
|
+
break;
|
|
3725
|
+
case "update":
|
|
3726
|
+
(c = M.value) == null || c.forEach((d) => {
|
|
3727
|
+
d.value = A[d == null ? void 0 : d.prop];
|
|
3728
|
+
}), R.value = "update", o.visible = !0;
|
|
3729
|
+
break;
|
|
3730
|
+
case "delete":
|
|
3731
|
+
B.value.splice(A, 1), R.value = "delete";
|
|
3732
|
+
break;
|
|
3733
|
+
}
|
|
3734
|
+
}, ke = () => {
|
|
3735
|
+
o.visible = !1;
|
|
3736
|
+
};
|
|
3737
|
+
return Xe(() => h == null ? void 0 : h.itemContents, (I) => {
|
|
3738
|
+
var A, ve;
|
|
3739
|
+
I && (X.value = ((A = I == null ? void 0 : I.find((c) => c.key === "signConfig")) == null ? void 0 : A.contents) ?? {}, B.value = ((ve = I == null ? void 0 : I.find((c) => c.key === "signTypeList")) == null ? void 0 : ve.contents) ?? []);
|
|
3740
|
+
}, { immediate: !0 }), (I, A) => {
|
|
3741
|
+
const ve = Re("svg-icon"), c = Re("el-button");
|
|
3742
|
+
return le(), _e(Ue, null, [
|
|
3743
|
+
x("div", null, [
|
|
3744
|
+
x("div", Ao, [
|
|
3745
|
+
A[2] || (A[2] = x("h4", { class: "module-title" }, "签名类型", -1)),
|
|
3746
|
+
Z(c, {
|
|
3747
|
+
class: "module-icon",
|
|
3748
|
+
id: "themeButton",
|
|
3749
|
+
onClick: A[0] || (A[0] = (d) => te("create"))
|
|
3750
|
+
}, {
|
|
3751
|
+
icon: fe(() => [
|
|
3752
|
+
Z(ve, {
|
|
3753
|
+
name: "Plus",
|
|
3754
|
+
class: "icon-size"
|
|
3755
|
+
})
|
|
3756
|
+
]),
|
|
3757
|
+
default: fe(() => [
|
|
3758
|
+
A[1] || (A[1] = $e(" 新增 "))
|
|
3759
|
+
]),
|
|
3760
|
+
_: 1,
|
|
3761
|
+
__: [1]
|
|
3762
|
+
})
|
|
3763
|
+
]),
|
|
3764
|
+
x("div", Eo, [
|
|
3765
|
+
(le(!0), _e(Ue, null, Ne(B.value, (d, f) => (le(), _e("div", {
|
|
3766
|
+
class: "module-data-item",
|
|
3767
|
+
key: f
|
|
3768
|
+
}, [
|
|
3769
|
+
x("span", null, we(d == null ? void 0 : d.label), 1),
|
|
3770
|
+
x("div", null, [
|
|
3771
|
+
Z(c, {
|
|
3772
|
+
type: "primary",
|
|
3773
|
+
size: "small",
|
|
3774
|
+
onClick: (m) => te("update", { ...d, index: f + 1 })
|
|
3775
|
+
}, {
|
|
3776
|
+
default: fe(() => A[3] || (A[3] = [
|
|
3777
|
+
$e("修改")
|
|
3778
|
+
])),
|
|
3779
|
+
_: 2,
|
|
3780
|
+
__: [3]
|
|
3781
|
+
}, 1032, ["onClick"]),
|
|
3782
|
+
Z(c, {
|
|
3783
|
+
type: "danger",
|
|
3784
|
+
size: "small",
|
|
3785
|
+
onClick: (m) => te("delete", f)
|
|
3786
|
+
}, {
|
|
3787
|
+
default: fe(() => A[4] || (A[4] = [
|
|
3788
|
+
$e("删除")
|
|
3789
|
+
])),
|
|
3790
|
+
_: 2,
|
|
3791
|
+
__: [4]
|
|
3792
|
+
}, 1032, ["onClick"])
|
|
3793
|
+
])
|
|
3794
|
+
]))), 128))
|
|
3795
|
+
]),
|
|
3796
|
+
x("div", So, [
|
|
3797
|
+
Z(el, {
|
|
3798
|
+
rowContents: w.value,
|
|
3799
|
+
onChange: ae
|
|
3800
|
+
}, null, 8, ["rowContents"])
|
|
3801
|
+
])
|
|
3802
|
+
]),
|
|
3803
|
+
Z(ll, {
|
|
3804
|
+
visible: o.visible,
|
|
3805
|
+
title: o.title,
|
|
3806
|
+
onBeforeDestroy: ke,
|
|
3807
|
+
width: o.width
|
|
3808
|
+
}, {
|
|
3809
|
+
default: fe(() => [
|
|
3810
|
+
x("div", $o, [
|
|
3811
|
+
(le(), Ve(el, {
|
|
3812
|
+
rowContents: M.value,
|
|
3813
|
+
key: M.value,
|
|
3814
|
+
isEnableWrap: !1,
|
|
3815
|
+
isButtonRow: !1,
|
|
3816
|
+
isStartJustify: !1,
|
|
3817
|
+
buttonValue: S.value,
|
|
3818
|
+
onOnButtonClick: Ce
|
|
3819
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
3820
|
+
])
|
|
3821
|
+
]),
|
|
3822
|
+
_: 1
|
|
3823
|
+
}, 8, ["visible", "title", "width"])
|
|
3824
|
+
], 64);
|
|
3825
|
+
};
|
|
3826
|
+
}
|
|
3827
|
+
}), Fo = /* @__PURE__ */ Me(Bo, [["__scopeId", "data-v-487e0536"]]), Lo = /* @__PURE__ */ Al({
|
|
3828
|
+
__name: "index",
|
|
3829
|
+
props: {
|
|
3830
|
+
stepConfig: {
|
|
3831
|
+
type: Object,
|
|
3832
|
+
default: {}
|
|
3833
|
+
},
|
|
3834
|
+
stepList: {
|
|
3835
|
+
type: Array,
|
|
3836
|
+
default: () => []
|
|
3837
|
+
}
|
|
3838
|
+
},
|
|
3839
|
+
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
3840
|
+
setup(r, { emit: F }) {
|
|
3841
|
+
const h = r, i = F, o = G(1), R = Ca(() => {
|
|
3842
|
+
var re, ae;
|
|
3843
|
+
return (re = h == null ? void 0 : h.stepConfig) != null && re.allowTrigger ? o.value : (ae = h == null ? void 0 : h.stepConfig) == null ? void 0 : ae.active;
|
|
3844
|
+
}), S = (re, ae) => {
|
|
3845
|
+
o.value = ae, i("clickStep", re, ae);
|
|
3846
|
+
}, w = (re) => rs(re), M = () => {
|
|
3847
|
+
var ae;
|
|
3848
|
+
const re = (ae = h == null ? void 0 : h.stepList) == null ? void 0 : ae.find((Ce, te) => te + 1 === R.value);
|
|
3849
|
+
return console.log("findStep", re), re ? re == null ? void 0 : re.children : [];
|
|
3850
|
+
}, X = (re) => {
|
|
3851
|
+
i("clickTrigger", re);
|
|
3852
|
+
}, B = (re) => {
|
|
3853
|
+
i("changeTrigger", re);
|
|
3854
|
+
};
|
|
3855
|
+
return (re, ae) => {
|
|
3856
|
+
var ke, I, A, ve, c;
|
|
3857
|
+
const Ce = Re("el-step"), te = Re("el-steps");
|
|
3858
|
+
return le(), _e(Ue, null, [
|
|
3859
|
+
Z(te, {
|
|
3860
|
+
direction: (ke = r.stepConfig) == null ? void 0 : ke.direction,
|
|
3861
|
+
active: R.value,
|
|
3862
|
+
"finish-status": "success",
|
|
3863
|
+
simple: (I = r.stepConfig) == null ? void 0 : I.simple,
|
|
3864
|
+
"align-center": ((A = r.stepConfig) == null ? void 0 : A.alignCenter) ?? !0
|
|
3865
|
+
}, {
|
|
3866
|
+
default: fe(() => [
|
|
3867
|
+
(le(!0), _e(Ue, null, Ne(r.stepList, (d, f) => (le(), Ve(Ce, {
|
|
3868
|
+
key: f,
|
|
3869
|
+
class: "step-item",
|
|
3870
|
+
onClick: (m) => S(d, f + 1)
|
|
3871
|
+
}, {
|
|
3872
|
+
title: fe(() => [
|
|
3873
|
+
ca(re.$slots, "title", {
|
|
3874
|
+
title: d == null ? void 0 : d.title
|
|
3875
|
+
}, void 0, !0)
|
|
3876
|
+
]),
|
|
3877
|
+
description: fe(() => [
|
|
3878
|
+
ca(re.$slots, "description", {
|
|
3879
|
+
description: d == null ? void 0 : d.description
|
|
3880
|
+
}, void 0, !0)
|
|
3881
|
+
]),
|
|
3882
|
+
_: 2
|
|
3883
|
+
}, 1032, ["onClick"]))), 128))
|
|
3884
|
+
]),
|
|
3885
|
+
_: 3
|
|
3886
|
+
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
3887
|
+
(ve = r.stepConfig) != null && ve.allowTrigger && ((c = r.stepConfig) != null && c.active) ? (le(!0), _e(Ue, { key: 0 }, Ne(M(), (d, f) => (le(), _e("div", {
|
|
3888
|
+
key: f,
|
|
3889
|
+
class: "step-cont-wrap"
|
|
3890
|
+
}, [
|
|
3891
|
+
(le(), Ve(ua(w(d == null ? void 0 : d.type)), {
|
|
3892
|
+
modelValue: d.value,
|
|
3893
|
+
"onUpdate:modelValue": (m) => d.value = m,
|
|
3894
|
+
onClickTrigger: X,
|
|
3895
|
+
onChangeTrigger: B,
|
|
3896
|
+
content: d == null ? void 0 : d.content
|
|
3897
|
+
}, is({ _: 2 }, [
|
|
3898
|
+
Ne(re.$slots, (m, ie) => ({
|
|
3899
|
+
name: ie,
|
|
3900
|
+
fn: fe((be) => [
|
|
3901
|
+
ca(re.$slots, ie, os({ ref_for: !0 }, be || {}), void 0, !0)
|
|
3902
|
+
])
|
|
3903
|
+
}))
|
|
3904
|
+
]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
|
|
3905
|
+
]))), 128)) : Qe("", !0)
|
|
3906
|
+
], 64);
|
|
3907
|
+
};
|
|
3908
|
+
}
|
|
3909
|
+
}), Oo = /* @__PURE__ */ Me(Lo, [["__scopeId", "data-v-d7c99969"]]), Vo = /* @__PURE__ */ Al({
|
|
3910
|
+
__name: "index",
|
|
3911
|
+
props: {
|
|
3912
|
+
itemData: {
|
|
3913
|
+
type: Array,
|
|
3914
|
+
default: () => []
|
|
3915
|
+
},
|
|
3916
|
+
childItemData: {
|
|
3917
|
+
type: Array,
|
|
3918
|
+
default: () => []
|
|
3919
|
+
}
|
|
3920
|
+
},
|
|
3921
|
+
emits: ["clickStep"],
|
|
3922
|
+
setup(r, { emit: F }) {
|
|
3923
|
+
const h = r, i = F, o = G({}), R = G([]), S = (w, M) => {
|
|
3924
|
+
i("clickStep", w, M);
|
|
3925
|
+
};
|
|
3926
|
+
return Xe(() => h == null ? void 0 : h.itemData, (w) => {
|
|
3927
|
+
var M, X;
|
|
3928
|
+
R.value = (M = w == null ? void 0 : w.find((B) => (B == null ? void 0 : B.key) === "stepList")) == null ? void 0 : M.contents, o.value = (X = w == null ? void 0 : w.find((B) => (B == null ? void 0 : B.key) === "stepConfig")) == null ? void 0 : X.contents;
|
|
3929
|
+
}, {
|
|
3930
|
+
immediate: !0
|
|
3931
|
+
}), (w, M) => {
|
|
3932
|
+
const X = Re("svg-icon");
|
|
3933
|
+
return le(), Ve(Oo, {
|
|
3934
|
+
stepConfig: o.value,
|
|
3935
|
+
stepList: R.value,
|
|
3936
|
+
onClickStep: S
|
|
3937
|
+
}, {
|
|
3938
|
+
icon: fe(() => [
|
|
3939
|
+
Z(X, { name: "import" })
|
|
3940
|
+
]),
|
|
3941
|
+
title: fe(({ title: B }) => [
|
|
3942
|
+
$e(we(B), 1)
|
|
3943
|
+
]),
|
|
3944
|
+
description: fe(({ description: B }) => [
|
|
3945
|
+
$e(we(B), 1)
|
|
3946
|
+
]),
|
|
3947
|
+
_: 1
|
|
3948
|
+
}, 8, ["stepConfig", "stepList"]);
|
|
3949
|
+
};
|
|
3950
|
+
}
|
|
3951
|
+
}), Ro = /* @__PURE__ */ Al({
|
|
3952
|
+
__name: "index",
|
|
3953
|
+
props: {
|
|
3954
|
+
activities: {
|
|
3955
|
+
type: Array,
|
|
3956
|
+
default: () => []
|
|
3957
|
+
},
|
|
3958
|
+
timeLineConfig: {
|
|
3959
|
+
type: Object,
|
|
3960
|
+
default: () => {
|
|
3961
|
+
}
|
|
3962
|
+
}
|
|
3963
|
+
},
|
|
3964
|
+
setup(r) {
|
|
3965
|
+
return (F, h) => {
|
|
3966
|
+
const i = Re("el-timeline-item"), o = Re("el-timeline");
|
|
3967
|
+
return le(), Ve(o, null, {
|
|
3968
|
+
default: fe(() => [
|
|
3969
|
+
(le(!0), _e(Ue, null, Ne(r.activities, (R, S) => (le(), Ve(i, {
|
|
3970
|
+
key: S,
|
|
3971
|
+
timestamp: R.timestamp,
|
|
3972
|
+
placement: r.timeLineConfig.placement,
|
|
3973
|
+
center: r.timeLineConfig.isCenter,
|
|
3974
|
+
"hide-timestamp": !0,
|
|
3975
|
+
type: r.timeLineConfig.type,
|
|
3976
|
+
color: r.timeLineConfig.color,
|
|
3977
|
+
size: r.timeLineConfig.size,
|
|
3978
|
+
icon: r.timeLineConfig.icon,
|
|
3979
|
+
hollow: r.timeLineConfig.isHollow
|
|
3980
|
+
}, {
|
|
3981
|
+
default: fe(() => [
|
|
3982
|
+
ca(F.$slots, "content", {
|
|
3983
|
+
content: R == null ? void 0 : R.content,
|
|
3984
|
+
timestamp: R == null ? void 0 : R.timestamp
|
|
3985
|
+
}, void 0, !0)
|
|
3986
|
+
]),
|
|
3987
|
+
_: 2
|
|
3988
|
+
}, 1032, ["timestamp", "placement", "center", "type", "color", "size", "icon", "hollow"]))), 128))
|
|
3989
|
+
]),
|
|
3990
|
+
_: 3
|
|
3991
|
+
});
|
|
3992
|
+
};
|
|
3993
|
+
}
|
|
3994
|
+
}), Uo = /* @__PURE__ */ Me(Ro, [["__scopeId", "data-v-4172a886"]]), Po = { class: "line-content" }, jo = { class: "line-time" }, Ko = /* @__PURE__ */ Al({
|
|
3995
|
+
__name: "index",
|
|
3996
|
+
props: {
|
|
3997
|
+
itemData: {
|
|
3998
|
+
type: Array,
|
|
3999
|
+
default: () => []
|
|
4000
|
+
}
|
|
4001
|
+
},
|
|
4002
|
+
setup(r) {
|
|
4003
|
+
const F = r, h = G({}), i = G([]);
|
|
4004
|
+
return Xe(() => F == null ? void 0 : F.itemData, (o) => {
|
|
4005
|
+
var R, S;
|
|
4006
|
+
i.value = (R = o == null ? void 0 : o.find((w) => (w == null ? void 0 : w.key) === "timeLineList")) == null ? void 0 : R.contents, h.value = (S = o == null ? void 0 : o.find((w) => (w == null ? void 0 : w.key) === "timeLineConfig")) == null ? void 0 : S.contents;
|
|
4007
|
+
}, {
|
|
4008
|
+
immediate: !0
|
|
4009
|
+
}), (o, R) => (le(), Ve(Uo, {
|
|
4010
|
+
activities: i.value,
|
|
4011
|
+
timeLineConfig: h.value
|
|
4012
|
+
}, {
|
|
4013
|
+
content: fe(({ content: S, timestamp: w }) => [
|
|
4014
|
+
x("span", Po, we(S), 1),
|
|
4015
|
+
x("span", jo, we(w), 1)
|
|
4016
|
+
]),
|
|
4017
|
+
_: 1
|
|
4018
|
+
}, 8, ["activities", "timeLineConfig"]));
|
|
4019
|
+
}
|
|
4020
|
+
}), No = /* @__PURE__ */ Me(Ko, [["__scopeId", "data-v-b4d9deed"]]), Mo = { class: "tabs-content" }, Wo = {
|
|
4021
|
+
__name: "index",
|
|
4022
|
+
props: {
|
|
4023
|
+
itemData: {
|
|
4024
|
+
type: Array,
|
|
4025
|
+
default: () => []
|
|
4026
|
+
},
|
|
4027
|
+
childItemData: {
|
|
4028
|
+
type: Array,
|
|
4029
|
+
default: () => []
|
|
4030
|
+
},
|
|
4031
|
+
index: Number
|
|
4032
|
+
},
|
|
4033
|
+
setup(r) {
|
|
4034
|
+
const F = r, h = G([]);
|
|
4035
|
+
return Xe(
|
|
4036
|
+
() => F == null ? void 0 : F.itemData,
|
|
4037
|
+
(i) => {
|
|
4038
|
+
const o = i.find((R) => (R == null ? void 0 : R.key) == "stepList");
|
|
4039
|
+
o && (h.value = o.contents.map((R) => ({
|
|
4040
|
+
value: R.value || R.title,
|
|
4041
|
+
label: R.label || R.title,
|
|
4042
|
+
children: R.children || []
|
|
4043
|
+
// 关键:传递子内容
|
|
4044
|
+
})));
|
|
4045
|
+
},
|
|
4046
|
+
{ immediate: !0, deep: !0 }
|
|
4047
|
+
), (i, o) => (le(), _e("div", Mo, [
|
|
4048
|
+
Z(cs, { tabsContents: h.value }, null, 8, ["tabsContents"])
|
|
4049
|
+
]));
|
|
4050
|
+
}
|
|
4051
|
+
}, zo = /* @__PURE__ */ Me(Wo, [["__scopeId", "data-v-d3bb10b7"]]), pa = us("tabComp", {
|
|
4052
|
+
state: () => ({
|
|
4053
|
+
itemData: [],
|
|
4054
|
+
originalData: [],
|
|
4055
|
+
extraContents: [],
|
|
4056
|
+
nodeDev: "",
|
|
4057
|
+
isEdit: "view",
|
|
4058
|
+
isRefreshCurStructure: !1,
|
|
4059
|
+
isSubmitCurStructure: !1,
|
|
4060
|
+
curStructureCompIds: []
|
|
4061
|
+
}),
|
|
4062
|
+
actions: {
|
|
4063
|
+
setItemData(r) {
|
|
4064
|
+
this.itemData = r;
|
|
4065
|
+
},
|
|
4066
|
+
setCurStructureCompIds(r) {
|
|
4067
|
+
this.curStructureCompIds = r;
|
|
4068
|
+
},
|
|
4069
|
+
setRefreshCurStructure(r) {
|
|
4070
|
+
this.isRefreshCurStructure = r;
|
|
4071
|
+
},
|
|
4072
|
+
setOriginalData(r) {
|
|
4073
|
+
this.originalData = r;
|
|
4074
|
+
},
|
|
4075
|
+
setExtraContents(r) {
|
|
4076
|
+
this.extraContents = r;
|
|
4077
|
+
},
|
|
4078
|
+
setNodeDev(r) {
|
|
4079
|
+
this.nodeDev = r;
|
|
4080
|
+
},
|
|
4081
|
+
setIsEdit(r) {
|
|
4082
|
+
this.isEdit = r;
|
|
4083
|
+
}
|
|
4084
|
+
}
|
|
4085
|
+
}), Jo = { class: "type-select" }, Ho = ["onClick"], Go = { class: "list-icon" }, qo = {
|
|
4086
|
+
__name: "modelSelect",
|
|
4087
|
+
setup(r) {
|
|
4088
|
+
const F = pa(al), { itemData: h } = ol(F), i = (o) => {
|
|
4089
|
+
const R = l(h.value);
|
|
4090
|
+
R.push({
|
|
4091
|
+
comp: o.comp,
|
|
4092
|
+
name: o.name,
|
|
4093
|
+
compData: []
|
|
4094
|
+
}), F.setItemData(R);
|
|
4095
|
+
};
|
|
4096
|
+
return (o, R) => {
|
|
4097
|
+
const S = Re("svg-icon");
|
|
4098
|
+
return le(), _e("div", Jo, [
|
|
4099
|
+
(le(!0), _e(Ue, null, Ne(xl(Bn), (w, M) => (le(), _e("div", {
|
|
4100
|
+
class: "type-list",
|
|
4101
|
+
key: M
|
|
4102
|
+
}, [
|
|
4103
|
+
x("div", {
|
|
4104
|
+
class: "list-content",
|
|
4105
|
+
onClick: (X) => i(w)
|
|
4106
|
+
}, [
|
|
4107
|
+
x("div", Go, [
|
|
4108
|
+
Z(S, {
|
|
4109
|
+
name: w.icon
|
|
4110
|
+
}, null, 8, ["name"])
|
|
4111
|
+
]),
|
|
4112
|
+
x("div", null, we(w.name), 1)
|
|
4113
|
+
], 8, Ho)
|
|
4114
|
+
]))), 128))
|
|
4115
|
+
]);
|
|
4116
|
+
};
|
|
4117
|
+
}
|
|
4118
|
+
}, Qo = /* @__PURE__ */ Me(qo, [["__scopeId", "data-v-91799bf8"]]), Xo = { class: "fill-content" }, Yo = { class: "operate-content" }, Zo = { class: "collapse-title-content" }, en = { class: "collapse-title-item" }, ln = { key: 1 }, an = ["onClick"], sn = { class: "icon-content" }, on = {
|
|
4119
|
+
key: 0,
|
|
4120
|
+
class: "edit-content"
|
|
4121
|
+
}, nn = ["onClick"], un = { class: "comp-child" }, rn = {
|
|
4122
|
+
__name: "modelFill",
|
|
4123
|
+
setup(r) {
|
|
4124
|
+
const F = pa(al), { itemData: h, originalData: i } = ol(F), o = G([]);
|
|
4125
|
+
G([]);
|
|
4126
|
+
const R = G([]), S = G([]), w = (Ce) => {
|
|
4127
|
+
var ke;
|
|
4128
|
+
let te = (ke = l(S.value)) == null ? void 0 : ke.map((I, A) => (Ce === A && (I.content = !0), I));
|
|
4129
|
+
S.value = te;
|
|
4130
|
+
}, M = (Ce) => {
|
|
4131
|
+
var ke;
|
|
4132
|
+
let te = (ke = l(S.value)) == null ? void 0 : ke.map((I, A) => (Ce === A && (I.content = !1), I));
|
|
4133
|
+
S.value = te, o.value = l(h.value);
|
|
4134
|
+
}, X = (Ce, te) => {
|
|
4135
|
+
var ve;
|
|
4136
|
+
let ke = (ve = l(S.value)) == null ? void 0 : ve.map((c, d) => (Ce === d && (c.content = !1), c));
|
|
4137
|
+
S.value = ke;
|
|
4138
|
+
const I = l(h.value), A = I == null ? void 0 : I.filter((c, d) => (d === Ce && (c.name = te), c));
|
|
4139
|
+
F.setOriginalData(A), F.setItemData(A);
|
|
4140
|
+
};
|
|
4141
|
+
Xe(
|
|
4142
|
+
() => h.value,
|
|
4143
|
+
() => {
|
|
4144
|
+
var Ce, te, ke;
|
|
4145
|
+
!h.value || ((Ce = h.value) == null ? void 0 : Ce.length) === 0 ? o.value = [] : o.value = (te = l(h.value)) == null ? void 0 : te.filter((I) => (I == null ? void 0 : I.comp) !== "methodButton"), R.value = o.value, S.value = (ke = l(R.value)) == null ? void 0 : ke.map((I, A) => ({
|
|
4146
|
+
id: A,
|
|
4147
|
+
content: !1
|
|
4148
|
+
}));
|
|
4149
|
+
},
|
|
4150
|
+
{ deep: !0, immediate: !0 }
|
|
4151
|
+
);
|
|
4152
|
+
const B = (Ce) => Ia(Ce), re = (Ce, te, ke) => {
|
|
4153
|
+
var A, ve;
|
|
4154
|
+
if (!Ce) return;
|
|
4155
|
+
let I = l(h.value);
|
|
4156
|
+
I = (A = I == null ? void 0 : I.map((c, d) => (d === ke && (c.compData = Ce), c))) == null ? void 0 : A.filter((c) => (c == null ? void 0 : c.comp) !== "methodButton"), S.value = (ve = l(I)) == null ? void 0 : ve.map((c, d) => ({
|
|
4157
|
+
id: d,
|
|
4158
|
+
content: !1
|
|
4159
|
+
})), F.setOriginalData(I), F.setItemData(I);
|
|
4160
|
+
}, ae = (Ce) => {
|
|
4161
|
+
Cl.confirm("是否确认要删除", "", {
|
|
4162
|
+
confirmButtonText: "确认",
|
|
4163
|
+
cancelButtonText: "取消",
|
|
4164
|
+
type: "warning"
|
|
4165
|
+
}).then(() => {
|
|
4166
|
+
const te = l(h.value), ke = te == null ? void 0 : te.filter((I, A) => A !== Ce);
|
|
4167
|
+
F.setOriginalData(ke), F.setItemData(ke), tl({
|
|
4168
|
+
type: "success",
|
|
4169
|
+
message: "删除成功"
|
|
4170
|
+
});
|
|
4171
|
+
}).catch(() => {
|
|
4172
|
+
});
|
|
4173
|
+
};
|
|
4174
|
+
return (Ce, te) => {
|
|
4175
|
+
const ke = Re("svg-icon");
|
|
4176
|
+
return le(), _e("div", Xo, [
|
|
4177
|
+
te[1] || (te[1] = x("div", { class: "fill-operate" }, we("操作栏"), -1)),
|
|
4178
|
+
x("div", Yo, [
|
|
4179
|
+
Z(Ts, {
|
|
4180
|
+
class: "collapse-content",
|
|
4181
|
+
collapseContents: o.value
|
|
4182
|
+
}, {
|
|
4183
|
+
title: fe(({ item: I, index: A }) => {
|
|
4184
|
+
var ve, c, d, f, m, ie, be, De, Fe, pe;
|
|
4185
|
+
return [
|
|
4186
|
+
x("div", Zo, [
|
|
4187
|
+
x("div", en, [
|
|
4188
|
+
(c = (ve = S.value) == null ? void 0 : ve.find((b) => b.id === A)) != null && c.content ? Qe("", !0) : (le(), _e("div", {
|
|
4189
|
+
key: 0,
|
|
4190
|
+
class: "collapse-title",
|
|
4191
|
+
style: ns({ marginRight: I.name && I.name !== "" ? "8px" : "0px" })
|
|
4192
|
+
}, we(I.name), 5)),
|
|
4193
|
+
(f = (d = S.value) == null ? void 0 : d.find((b) => b.id === A)) != null && f.content ? (le(), _e("div", ln, [
|
|
4194
|
+
Z(ts, {
|
|
4195
|
+
modelValue: I.name,
|
|
4196
|
+
"onUpdate:modelValue": (b) => I.name = b,
|
|
4197
|
+
onClick: te[0] || (te[0] = na(() => {
|
|
4198
|
+
}, ["stop"]))
|
|
4199
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4200
|
+
])) : Qe("", !0),
|
|
4201
|
+
(ie = (m = S.value) == null ? void 0 : m.find((b) => b.id === A)) != null && ie.content ? Qe("", !0) : (le(), _e("div", {
|
|
4202
|
+
key: 2,
|
|
4203
|
+
onClick: na((b) => w(A), ["stop"]),
|
|
4204
|
+
class: "icon-content"
|
|
4205
|
+
}, [
|
|
4206
|
+
Z(ke, {
|
|
4207
|
+
name: "Edit",
|
|
4208
|
+
style: { width: "16px", height: "16px" }
|
|
4209
|
+
})
|
|
4210
|
+
], 8, an))
|
|
4211
|
+
]),
|
|
4212
|
+
x("div", sn, [
|
|
4213
|
+
(De = (be = S.value) == null ? void 0 : be.find((b) => b.id === A)) != null && De.content ? (le(), _e("div", on, [
|
|
4214
|
+
Z(ke, {
|
|
4215
|
+
name: "Cancel",
|
|
4216
|
+
style: { width: "16px", height: "16px" },
|
|
4217
|
+
class: "icon-content",
|
|
4218
|
+
onClick: na((b) => M(A), ["stop"])
|
|
4219
|
+
}, null, 8, ["onClick"]),
|
|
4220
|
+
Z(ke, {
|
|
4221
|
+
name: "Save",
|
|
4222
|
+
onClick: na((b) => X(A, I.name), ["stop"]),
|
|
4223
|
+
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
4224
|
+
class: "icon-content"
|
|
4225
|
+
}, null, 8, ["onClick"])
|
|
4226
|
+
])) : Qe("", !0),
|
|
4227
|
+
(pe = (Fe = S.value) == null ? void 0 : Fe.find((b) => b.id === A)) != null && pe.content ? Qe("", !0) : (le(), _e("div", {
|
|
4228
|
+
key: 1,
|
|
4229
|
+
onClick: na((b) => ae(A), ["stop"]),
|
|
4230
|
+
class: "icon-content"
|
|
4231
|
+
}, [
|
|
4232
|
+
Z(ke, {
|
|
4233
|
+
name: "Delete",
|
|
4234
|
+
style: { width: "16px", height: "16px" }
|
|
4235
|
+
})
|
|
4236
|
+
], 8, nn))
|
|
4237
|
+
])
|
|
4238
|
+
])
|
|
4239
|
+
];
|
|
4240
|
+
}),
|
|
4241
|
+
content: fe(({ item: I, index: A }) => {
|
|
4242
|
+
var ve, c;
|
|
4243
|
+
return [
|
|
4244
|
+
x("div", un, [
|
|
4245
|
+
(le(), Ve(ua(B(I.comp + "Operate")), {
|
|
4246
|
+
itemContents: I == null ? void 0 : I.compData,
|
|
4247
|
+
originalItemContents: (c = (ve = R.value) == null ? void 0 : ve.find((d, f) => f === A)) == null ? void 0 : c.compData,
|
|
4248
|
+
onChange: (d) => re(d, I, A)
|
|
4249
|
+
}, null, 40, ["itemContents", "originalItemContents", "onChange"]))
|
|
4250
|
+
])
|
|
4251
|
+
];
|
|
4252
|
+
}),
|
|
4253
|
+
_: 1
|
|
4254
|
+
}, 8, ["collapseContents"])
|
|
4255
|
+
])
|
|
4256
|
+
]);
|
|
4257
|
+
};
|
|
4258
|
+
}
|
|
4259
|
+
}, cn = /* @__PURE__ */ Me(rn, [["__scopeId", "data-v-78d7fc46"]]), tn = {
|
|
4260
|
+
key: 0,
|
|
4261
|
+
class: "show-content"
|
|
4262
|
+
}, dn = { style: { display: "flex" } }, pn = {
|
|
4263
|
+
__name: "modelShow",
|
|
4264
|
+
setup(r) {
|
|
4265
|
+
const F = pa(al), { itemData: h } = ol(F), i = G([]);
|
|
4266
|
+
Xe(
|
|
4267
|
+
() => h.value,
|
|
4268
|
+
() => {
|
|
4269
|
+
var R;
|
|
4270
|
+
!h.value || ((R = h.value) == null ? void 0 : R.length) === 0 ? i.value = [] : i.value = l(h.value);
|
|
4271
|
+
},
|
|
4272
|
+
{ deep: !0, immediate: !0 }
|
|
4273
|
+
);
|
|
4274
|
+
const o = (R) => Ia(R);
|
|
4275
|
+
return (R, S) => {
|
|
4276
|
+
var w;
|
|
4277
|
+
return ((w = i.value) == null ? void 0 : w.length) > 0 ? (le(), _e("div", tn, [
|
|
4278
|
+
(le(!0), _e(Ue, null, Ne(i.value, (M, X) => (le(), _e("div", {
|
|
4279
|
+
class: "item-content",
|
|
4280
|
+
key: X
|
|
4281
|
+
}, [
|
|
4282
|
+
x("div", dn, we(M.name), 1),
|
|
4283
|
+
(le(), Ve(ua(o(M.comp)), {
|
|
4284
|
+
itemData: M == null ? void 0 : M.compData,
|
|
4285
|
+
childItemData: M == null ? void 0 : M.itemChildData,
|
|
4286
|
+
key: X
|
|
4287
|
+
}, null, 8, ["itemData", "childItemData"]))
|
|
4288
|
+
]))), 128))
|
|
4289
|
+
])) : Qe("", !0);
|
|
4290
|
+
};
|
|
4291
|
+
}
|
|
4292
|
+
}, fn = /* @__PURE__ */ Me(pn, [["__scopeId", "data-v-3f3e863e"]]), vn = { class: "tabs-header" }, hn = { class: "tabs-list" }, mn = { class: "tab-name" }, yn = { class: "tab-actions" }, bn = ["onClick"], gn = ["onClick"], kn = ["onClick"], _n = { class: "model-operate" }, Cn = {
|
|
4293
|
+
class: "model-select",
|
|
4294
|
+
style: { display: "unset" }
|
|
4295
|
+
}, wn = { class: "existing-components" }, Dn = { class: "component-list" }, In = ["onClick"], xn = { class: "component-info" }, Tn = { class: "component-type" }, An = { class: "component-name" }, En = { class: "model-fill" }, Sn = {
|
|
4296
|
+
__name: "operate",
|
|
4297
|
+
props: {
|
|
4298
|
+
itemContents: {
|
|
4299
|
+
type: Array,
|
|
4300
|
+
default: () => []
|
|
4301
|
+
}
|
|
4302
|
+
},
|
|
4303
|
+
emits: ["change"],
|
|
4304
|
+
setup(r, { emit: F }) {
|
|
4305
|
+
const h = r, i = F, o = G([]), R = G(!1), S = G(""), w = G({ title: "" }), M = G(-1), X = G(!1), B = G(-1), re = G(/* @__PURE__ */ new Map()), ae = G(null), Ce = pa(al), { itemData: te } = ol(Ce), ke = () => {
|
|
4306
|
+
S.value = "新增标签页", w.value.title = "", M.value = -1, R.value = !0;
|
|
4307
|
+
}, I = (T) => {
|
|
4308
|
+
S.value = "修改标签页", w.value.title = o.value[T].title, M.value = T, R.value = !0;
|
|
4309
|
+
}, A = (T) => {
|
|
4310
|
+
const u = d(T);
|
|
4311
|
+
re.value.delete(u), o.value.splice(T, 1), oe();
|
|
4312
|
+
}, ve = () => {
|
|
4313
|
+
if (w.value.title.trim()) {
|
|
4314
|
+
if (M.value === -1) {
|
|
4315
|
+
const T = {
|
|
4316
|
+
title: w.value.title,
|
|
4317
|
+
value: w.value.title,
|
|
4318
|
+
label: w.value.title,
|
|
4319
|
+
children: [],
|
|
4320
|
+
id: c()
|
|
4321
|
+
};
|
|
4322
|
+
o.value.push(T);
|
|
4323
|
+
} else
|
|
4324
|
+
o.value[M.value].title = w.value.title, o.value[M.value].value = w.value.title, o.value[M.value].label = w.value.title;
|
|
4325
|
+
R.value = !1, oe();
|
|
4326
|
+
}
|
|
4327
|
+
}, c = () => `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, d = (T) => {
|
|
4328
|
+
const u = o.value[T];
|
|
4329
|
+
return u.id || (u.id = c()), u.id;
|
|
4330
|
+
}, f = (T) => {
|
|
4331
|
+
var O;
|
|
4332
|
+
B.value = T;
|
|
4333
|
+
const u = d(T);
|
|
4334
|
+
ae.value = l(te.value);
|
|
4335
|
+
let ee = re.value.get(u);
|
|
4336
|
+
!ee && ((O = o.value[T].children) == null ? void 0 : O.length) > 0 && (ee = De(o.value[T].children)), ee ? Ce.setItemData(l(ee)) : Ce.setItemData([]), X.value = !0;
|
|
4337
|
+
}, m = Ca(() => {
|
|
4338
|
+
const T = Da(al), u = ol(T).itemData.value;
|
|
4339
|
+
return console.log("可用组件数据", u), !u || !Array.isArray(u) ? [] : u.filter((ee) => {
|
|
4340
|
+
var O;
|
|
4341
|
+
if (ee.comp === "Tabs" && B.value >= 0) {
|
|
4342
|
+
const ne = d(B.value);
|
|
4343
|
+
if ((O = ee.compData) == null ? void 0 : O.some(
|
|
4344
|
+
(q) => {
|
|
4345
|
+
var $;
|
|
4346
|
+
return q.key === "stepList" && (($ = q.contents) == null ? void 0 : $.some((H) => H.id === ne));
|
|
4347
|
+
}
|
|
4348
|
+
)) return !1;
|
|
4349
|
+
}
|
|
4350
|
+
return !0;
|
|
4351
|
+
});
|
|
4352
|
+
}), ie = (T) => ({
|
|
4353
|
+
Table: "表格",
|
|
4354
|
+
Form: "表单",
|
|
4355
|
+
Tabs: "标签页",
|
|
4356
|
+
Chart: "图表",
|
|
4357
|
+
Card: "卡片"
|
|
4358
|
+
})[T] || T, be = (T) => {
|
|
4359
|
+
var u;
|
|
4360
|
+
try {
|
|
4361
|
+
const ee = l(T);
|
|
4362
|
+
ee.id = Date.now() + Math.random(), ee.comp === "Tabs" && ((u = ee.compData) == null || u.forEach((ne) => {
|
|
4363
|
+
ne.key === "stepList" && ne.contents && ne.contents.forEach((se) => {
|
|
4364
|
+
se.id = c();
|
|
4365
|
+
});
|
|
4366
|
+
}));
|
|
4367
|
+
const O = l(te.value);
|
|
4368
|
+
O.push(ee), Ce.setItemData(O);
|
|
4369
|
+
} catch (ee) {
|
|
4370
|
+
console.error("添加组件失败:", ee);
|
|
4371
|
+
}
|
|
4372
|
+
}, De = (T) => T.map((u) => {
|
|
4373
|
+
var ee;
|
|
4374
|
+
switch (u.type) {
|
|
4375
|
+
case "form":
|
|
4376
|
+
return {
|
|
4377
|
+
comp: "Form",
|
|
4378
|
+
name: u.value || "表单",
|
|
4379
|
+
compData: Fe(u.content)
|
|
4380
|
+
};
|
|
4381
|
+
case "table":
|
|
4382
|
+
return {
|
|
4383
|
+
comp: "Table",
|
|
4384
|
+
name: u.value || "表格",
|
|
4385
|
+
compData: pe(u.content)
|
|
4386
|
+
};
|
|
4387
|
+
default:
|
|
4388
|
+
return {
|
|
4389
|
+
comp: "Unknown",
|
|
4390
|
+
name: u.value || "",
|
|
4391
|
+
compData: ((ee = u.content) == null ? void 0 : ee.originalData) || []
|
|
4392
|
+
};
|
|
4393
|
+
}
|
|
4394
|
+
}), Fe = (T) => {
|
|
4395
|
+
if (!T) return [];
|
|
4396
|
+
const u = [];
|
|
4397
|
+
return T.rowContents && u.push({
|
|
4398
|
+
key: "formContent",
|
|
4399
|
+
contents: T.rowContents
|
|
4400
|
+
}), T.buttonValue && u.push({
|
|
4401
|
+
key: "formButton",
|
|
4402
|
+
contents: T.buttonValue
|
|
4403
|
+
}), typeof T.isEnableWrap < "u" && u.push({
|
|
4404
|
+
key: "enableWrap",
|
|
4405
|
+
contents: T.isEnableWrap
|
|
4406
|
+
}), u;
|
|
4407
|
+
}, pe = (T) => [], b = () => {
|
|
4408
|
+
if (B.value >= 0 && B.value < o.value.length) {
|
|
4409
|
+
const T = d(B.value);
|
|
4410
|
+
re.value.set(T, l(te.value)), o.value[B.value].children = p(te.value), console.log("保存后的数据", p(te.value));
|
|
4411
|
+
}
|
|
4412
|
+
X.value = !1, B.value = -1, ae.value = null, oe();
|
|
4413
|
+
}, L = () => {
|
|
4414
|
+
ae.value && Ce.setItemData(l(ae.value)), X.value = !1, B.value = -1, ae.value = null;
|
|
4415
|
+
}, s = () => {
|
|
4416
|
+
X.value && L();
|
|
4417
|
+
}, p = (T) => {
|
|
4418
|
+
if (!Array.isArray(T))
|
|
4419
|
+
throw new Error("sourceData must be an array");
|
|
4420
|
+
return T.map((u, ee) => {
|
|
4421
|
+
if (!u || typeof u != "object")
|
|
4422
|
+
return u;
|
|
4423
|
+
const { comp: O, name: ne, compData: se } = u;
|
|
4424
|
+
switch (O) {
|
|
4425
|
+
case "Form":
|
|
4426
|
+
return {
|
|
4427
|
+
type: "form",
|
|
4428
|
+
content: v(se || []),
|
|
4429
|
+
value: "表单"
|
|
4430
|
+
};
|
|
4431
|
+
case "Table":
|
|
4432
|
+
return {
|
|
4433
|
+
type: "table",
|
|
4434
|
+
content: k(se || []),
|
|
4435
|
+
value: "表格"
|
|
4436
|
+
};
|
|
4437
|
+
default:
|
|
4438
|
+
return {
|
|
4439
|
+
type: "xxx",
|
|
4440
|
+
content: W(se || []),
|
|
4441
|
+
value: ""
|
|
4442
|
+
};
|
|
4443
|
+
}
|
|
4444
|
+
});
|
|
4445
|
+
}, v = (T) => {
|
|
4446
|
+
const u = {
|
|
4447
|
+
formRules: {},
|
|
4448
|
+
rowContents: [],
|
|
4449
|
+
buttonValue: [],
|
|
4450
|
+
rowValues: [],
|
|
4451
|
+
isEnableWrap: !0,
|
|
4452
|
+
isRowFlex: !0,
|
|
4453
|
+
isButtonRow: !0,
|
|
4454
|
+
isEdit: !0,
|
|
4455
|
+
isStartJustify: !0
|
|
4456
|
+
}, ee = {
|
|
4457
|
+
formContent: "rowContents",
|
|
4458
|
+
enableWrap: "isEnableWrap",
|
|
4459
|
+
formButton: "buttonValue"
|
|
4460
|
+
};
|
|
4461
|
+
return T.forEach((O, ne) => {
|
|
4462
|
+
if (!O || typeof O != "object") {
|
|
4463
|
+
console.warn(`Invalid config at index ${ne}:`, O);
|
|
4464
|
+
return;
|
|
4465
|
+
}
|
|
4466
|
+
const { key: se, contents: q } = O, $ = ee[se];
|
|
4467
|
+
if (!$) {
|
|
4468
|
+
console.warn(`Unknown Form config key: ${se}`);
|
|
4469
|
+
return;
|
|
4470
|
+
}
|
|
4471
|
+
se === "enableWrap" ? u[$] = !!q : u[$] = Array.isArray(q) ? q : [];
|
|
4472
|
+
}), u;
|
|
4473
|
+
}, k = (T) => {
|
|
4474
|
+
const u = {
|
|
4475
|
+
columns: [],
|
|
4476
|
+
tableData: [],
|
|
4477
|
+
extraButton: [],
|
|
4478
|
+
rowButton: [],
|
|
4479
|
+
currentPage: 0,
|
|
4480
|
+
total: 0,
|
|
4481
|
+
pageSize: 0,
|
|
4482
|
+
isShowPagination: !0,
|
|
4483
|
+
isShowEdit: !0,
|
|
4484
|
+
isMoveColumn: !0,
|
|
4485
|
+
isShowDelete: !0
|
|
4486
|
+
}, ee = {
|
|
4487
|
+
header: "columns",
|
|
4488
|
+
tableContents: "tableData"
|
|
4489
|
+
};
|
|
4490
|
+
return T.forEach((O, ne) => {
|
|
4491
|
+
if (!O || typeof O != "object") {
|
|
4492
|
+
console.warn(`Invalid config at index ${ne}:`, O);
|
|
4493
|
+
return;
|
|
4494
|
+
}
|
|
4495
|
+
const { key: se, contents: q } = O, $ = ee[se];
|
|
4496
|
+
if (!$) {
|
|
4497
|
+
console.warn(`Unknown Table config key: ${se}`);
|
|
4498
|
+
return;
|
|
4499
|
+
}
|
|
4500
|
+
u[$] = Array.isArray(q) ? q : [];
|
|
4501
|
+
}), u;
|
|
4502
|
+
}, W = (T) => (console.log("Default conversion logic - to be implemented"), {
|
|
4503
|
+
originalData: T,
|
|
4504
|
+
processed: !1,
|
|
4505
|
+
componentType: "unknown"
|
|
4506
|
+
}), oe = () => {
|
|
4507
|
+
const T = [
|
|
4508
|
+
{
|
|
4509
|
+
key: "stepList",
|
|
4510
|
+
contents: o.value
|
|
4511
|
+
}
|
|
4512
|
+
];
|
|
4513
|
+
i("change", T);
|
|
4514
|
+
};
|
|
4515
|
+
return Xe(
|
|
4516
|
+
() => h.itemContents,
|
|
4517
|
+
(T) => {
|
|
4518
|
+
if (T && T.length > 0) {
|
|
4519
|
+
const u = T.find((ee) => ee.key === "stepList");
|
|
4520
|
+
u && u.contents && (o.value = u.contents.map((ee) => ({
|
|
4521
|
+
title: ee.title || "",
|
|
4522
|
+
value: ee.value || ee.title || "",
|
|
4523
|
+
label: ee.label || ee.title || "",
|
|
4524
|
+
children: ee.children || [],
|
|
4525
|
+
id: ee.id || c()
|
|
4526
|
+
})));
|
|
4527
|
+
}
|
|
4528
|
+
},
|
|
4529
|
+
{ immediate: !0, deep: !0 }
|
|
4530
|
+
), (T, u) => {
|
|
4531
|
+
const ee = Re("svg-icon"), O = Re("el-input"), ne = Re("el-form-item"), se = Re("el-form");
|
|
4532
|
+
return le(), _e("div", null, [
|
|
4533
|
+
x("div", vn, [
|
|
4534
|
+
u[6] || (u[6] = x("h4", null, "标签页管理", -1)),
|
|
4535
|
+
x("button", { onClick: ke }, [
|
|
4536
|
+
Z(ee, {
|
|
4537
|
+
name: "Plus",
|
|
4538
|
+
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
4539
|
+
}),
|
|
4540
|
+
u[5] || (u[5] = $e(" 新增标签页 "))
|
|
4541
|
+
])
|
|
4542
|
+
]),
|
|
4543
|
+
x("div", hn, [
|
|
4544
|
+
(le(!0), _e(Ue, null, Ne(o.value, (q, $) => (le(), _e("div", {
|
|
4545
|
+
class: "tab-item",
|
|
4546
|
+
key: $
|
|
4547
|
+
}, [
|
|
4548
|
+
x("span", mn, we(q.title), 1),
|
|
4549
|
+
x("div", yn, [
|
|
4550
|
+
x("button", {
|
|
4551
|
+
onClick: (H) => I($)
|
|
4552
|
+
}, "修改标题", 8, bn),
|
|
4553
|
+
x("button", {
|
|
4554
|
+
onClick: (H) => f($)
|
|
4555
|
+
}, "布局调整", 8, gn),
|
|
4556
|
+
x("button", {
|
|
4557
|
+
onClick: (H) => A($)
|
|
4558
|
+
}, "删除", 8, kn)
|
|
4559
|
+
])
|
|
4560
|
+
]))), 128))
|
|
4561
|
+
]),
|
|
4562
|
+
Z(ll, {
|
|
4563
|
+
modelValue: R.value,
|
|
4564
|
+
"onUpdate:modelValue": u[2] || (u[2] = (q) => R.value = q),
|
|
4565
|
+
title: S.value,
|
|
4566
|
+
onBeforeDestroy: u[3] || (u[3] = (q) => R.value = !1)
|
|
4567
|
+
}, {
|
|
4568
|
+
footer: fe(() => [
|
|
4569
|
+
x("button", {
|
|
4570
|
+
onClick: u[1] || (u[1] = (q) => R.value = !1)
|
|
4571
|
+
}, "取消"),
|
|
4572
|
+
x("button", {
|
|
4573
|
+
type: "primary",
|
|
4574
|
+
onClick: ve
|
|
4575
|
+
}, "确定")
|
|
4576
|
+
]),
|
|
4577
|
+
default: fe(() => [
|
|
4578
|
+
Z(se, {
|
|
4579
|
+
model: w.value,
|
|
4580
|
+
"label-width": "80px"
|
|
4581
|
+
}, {
|
|
4582
|
+
default: fe(() => [
|
|
4583
|
+
Z(ne, {
|
|
4584
|
+
label: "标签名称",
|
|
4585
|
+
required: ""
|
|
4586
|
+
}, {
|
|
4587
|
+
default: fe(() => [
|
|
4588
|
+
Z(O, {
|
|
4589
|
+
modelValue: w.value.title,
|
|
4590
|
+
"onUpdate:modelValue": u[0] || (u[0] = (q) => w.value.title = q),
|
|
4591
|
+
placeholder: "请输入标签页名称"
|
|
4592
|
+
}, null, 8, ["modelValue"])
|
|
4593
|
+
]),
|
|
4594
|
+
_: 1
|
|
4595
|
+
})
|
|
4596
|
+
]),
|
|
4597
|
+
_: 1
|
|
4598
|
+
}, 8, ["model"])
|
|
4599
|
+
]),
|
|
4600
|
+
_: 1
|
|
4601
|
+
}, 8, ["modelValue", "title"]),
|
|
4602
|
+
Z(ll, {
|
|
4603
|
+
modelValue: X.value,
|
|
4604
|
+
"onUpdate:modelValue": u[4] || (u[4] = (q) => X.value = q),
|
|
4605
|
+
title: "布局调整",
|
|
4606
|
+
fullScreen: "",
|
|
4607
|
+
onBeforeDestroy: s
|
|
4608
|
+
}, {
|
|
4609
|
+
footer: fe(() => [
|
|
4610
|
+
x("button", { onClick: L }, "取消"),
|
|
4611
|
+
x("button", { onClick: b }, "确定")
|
|
4612
|
+
]),
|
|
4613
|
+
default: fe(() => [
|
|
4614
|
+
x("div", _n, [
|
|
4615
|
+
x("div", Cn, [
|
|
4616
|
+
Z(Qo),
|
|
4617
|
+
x("div", wn, [
|
|
4618
|
+
u[8] || (u[8] = x("h5", null, "添加已有组件", -1)),
|
|
4619
|
+
x("div", Dn, [
|
|
4620
|
+
(le(!0), _e(Ue, null, Ne(m.value, (q) => (le(), _e("div", {
|
|
4621
|
+
key: q.id,
|
|
4622
|
+
class: "component-item",
|
|
4623
|
+
onClick: ($) => be(q)
|
|
4624
|
+
}, [
|
|
4625
|
+
x("div", xn, [
|
|
4626
|
+
x("span", Tn, we(ie(q.comp)), 1),
|
|
4627
|
+
x("span", An, we(q.name), 1)
|
|
4628
|
+
]),
|
|
4629
|
+
u[7] || (u[7] = x("button", { class: "add-btn" }, "添加", -1))
|
|
4630
|
+
], 8, In))), 128))
|
|
4631
|
+
])
|
|
4632
|
+
])
|
|
4633
|
+
]),
|
|
4634
|
+
(le(), _e("div", {
|
|
4635
|
+
class: "model-show",
|
|
4636
|
+
key: T.innerWidth
|
|
4637
|
+
}, [
|
|
4638
|
+
Z(fn)
|
|
4639
|
+
])),
|
|
4640
|
+
x("div", En, [
|
|
4641
|
+
Z(cn)
|
|
4642
|
+
])
|
|
4643
|
+
])
|
|
4644
|
+
]),
|
|
4645
|
+
_: 1
|
|
4646
|
+
}, 8, ["modelValue"])
|
|
4647
|
+
]);
|
|
4648
|
+
};
|
|
4649
|
+
}
|
|
4650
|
+
}, $n = /* @__PURE__ */ Me(Sn, [["__scopeId", "data-v-151936e8"]]), Bn = G([
|
|
4651
|
+
{
|
|
4652
|
+
name: "表格",
|
|
4653
|
+
type: "table",
|
|
4654
|
+
comp: "Table",
|
|
4655
|
+
icon: "Table"
|
|
4656
|
+
},
|
|
4657
|
+
{
|
|
4658
|
+
name: "表单",
|
|
4659
|
+
type: "form",
|
|
4660
|
+
comp: "Form",
|
|
4661
|
+
icon: "Form"
|
|
4662
|
+
},
|
|
4663
|
+
{
|
|
4664
|
+
name: "折叠",
|
|
4665
|
+
type: "fold",
|
|
4666
|
+
comp: "Fold",
|
|
4667
|
+
icon: "Fold"
|
|
4668
|
+
},
|
|
4669
|
+
{
|
|
4670
|
+
name: "头像",
|
|
4671
|
+
type: "avatar",
|
|
4672
|
+
comp: "AvatarUpload",
|
|
4673
|
+
icon: "Avatar"
|
|
4674
|
+
},
|
|
4675
|
+
{
|
|
4676
|
+
name: "签名",
|
|
4677
|
+
type: "signature",
|
|
4678
|
+
comp: "Signature",
|
|
4679
|
+
icon: "Signature"
|
|
4680
|
+
},
|
|
4681
|
+
{
|
|
4682
|
+
name: "步骤条",
|
|
4683
|
+
type: "step",
|
|
4684
|
+
comp: "Step",
|
|
4685
|
+
icon: "Step"
|
|
4686
|
+
},
|
|
4687
|
+
{
|
|
4688
|
+
name: "时间线",
|
|
4689
|
+
type: "timeLine",
|
|
4690
|
+
comp: "TimeLine",
|
|
4691
|
+
icon: "TimeLine"
|
|
4692
|
+
},
|
|
4693
|
+
{
|
|
4694
|
+
name: "标签页",
|
|
4695
|
+
type: "tabs",
|
|
4696
|
+
comp: "Tabs",
|
|
4697
|
+
icon: "Tabs"
|
|
4698
|
+
}
|
|
4699
|
+
]), Fn = {
|
|
4700
|
+
TABLE: ss,
|
|
4701
|
+
FORM: Ua,
|
|
4702
|
+
TABLEOPERATE: Fi,
|
|
4703
|
+
FORMOPERATE: Pa,
|
|
4704
|
+
FOLD: co,
|
|
4705
|
+
CALCULATOR: mo,
|
|
4706
|
+
METHODBUTTON: Do,
|
|
4707
|
+
AVATARUPLOAD: xs,
|
|
4708
|
+
SIGNATURE: Is,
|
|
4709
|
+
FORMTOP: Ua,
|
|
4710
|
+
STEP: Vo,
|
|
4711
|
+
STEPOPERATE: eo,
|
|
4712
|
+
TIMELINE: No,
|
|
4713
|
+
TIMELINEOPERATE: no,
|
|
4714
|
+
FORMTOPOPERATE: Pa,
|
|
4715
|
+
SIGNATUREOPERATE: Fo,
|
|
4716
|
+
AVATARUPLOADOPERATE: To,
|
|
4717
|
+
TABS: zo,
|
|
4718
|
+
TABSOPERATE: $n
|
|
4719
|
+
// 添加其他组件...
|
|
4720
|
+
};
|
|
4721
|
+
function Ia(r) {
|
|
4722
|
+
return Fn[r == null ? void 0 : r.toUpperCase()] || null;
|
|
4723
|
+
}
|
|
4724
|
+
export {
|
|
4725
|
+
ra as a,
|
|
4726
|
+
Gn as b,
|
|
4727
|
+
qn as c,
|
|
4728
|
+
Jn as d,
|
|
4729
|
+
Hn as e,
|
|
4730
|
+
Xn as f,
|
|
4731
|
+
Ia as g,
|
|
4732
|
+
Qn as h,
|
|
4733
|
+
Es as i,
|
|
4734
|
+
Yn as j,
|
|
4735
|
+
ga as k,
|
|
4736
|
+
_o as o,
|
|
4737
|
+
Bn as s
|
|
4738
|
+
};
|