ss-component-new 1.1.603 → 1.1.604
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/icons/svg/jd/345/215/225.svg +1 -0
- package/dist/icons/svg//344/274/232/350/256/256/347/272/252/350/246/201.svg +1 -0
- package/dist/icons/svg//345/201/234/345/267/245/344/273/244.svg +1 -0
- package/dist/icons/svg//345/210/266/351/200/240/345/216/202.svg +1 -0
- package/dist/icons/svg//345/217/226/346/266/210.svg +1 -0
- package/dist/icons/svg//345/221/250/346/212/245.svg +1 -0
- package/dist/icons/svg//345/244/207/345/277/230/345/275/225.svg +1 -0
- package/dist/icons/svg//345/256/241/346/240/270.svg +1 -0
- package/dist/icons/svg//345/271/264/345/272/246/350/256/241/345/210/222.svg +1 -0
- package/dist/icons/svg//346/211/271/345/207/206.svg +1 -0
- package/dist/icons/svg//346/211/277/345/214/205/345/225/206.svg +1 -0
- package/dist/icons/svg//346/217/220/344/272/244.svg +1 -0
- package/dist/icons/svg//346/226/207/344/273/266/347/256/241/347/220/206.svg +1 -0
- package/dist/icons/svg//346/227/245/346/212/245.svg +1 -0
- package/dist/icons/svg//346/234/210/346/212/245.svg +1 -0
- package/dist/icons/svg//346/241/243/346/241/210/347/256/241/347/220/206.svg +1 -0
- package/dist/icons/svg//347/201/257/346/263/241/347/273/264/344/277/256.svg +1 -0
- package/dist/icons/svg//347/224/237/346/210/220/346/212/245/345/221/212.svg +1 -0
- package/dist/icons/svg//347/256/227/346/263/225.svg +1 -0
- package/dist/icons/svg//347/273/217/351/252/214/345/217/215/351/246/210.svg +1 -1
- package/dist/icons/svg//347/273/217/351/252/214/345/217/215/351/246/2101.svg +1 -0
- package/dist/icons/svg//350/220/245/350/277/220/345/215/225/344/275/215.svg +1 -0
- package/dist/icons/svg//350/247/202/345/257/237/346/204/217/350/247/201/345/215/225.svg +1 -0
- package/dist/icons/svg//350/256/260/345/275/225/345/215/225.svg +1 -0
- package/dist/icons/svg//351/203/250/351/227/250/346/226/207/344/273/266.svg +2 -0
- package/dist/icons/svg//351/251/263/345/233/236.svg +1 -0
- package/dist/{index-DgpUrAUS.js → index-5IbykWPh.js} +1 -1
- package/dist/index-BECvfPg3.js +4456 -0
- package/dist/{index-ChYxFaDY.cjs → index-BM7KOVdr.cjs} +1 -1
- package/dist/{index-BMj3jvYU.cjs → index-BjeqRAim.cjs} +1 -1
- package/dist/{index-C41BsrT2.cjs → index-BjvYTduz.cjs} +13 -13
- package/dist/{index-BQpXBg9Q.cjs → index-BnqKOBhX.cjs} +1 -1
- package/dist/{index-Jxcrd1qN.cjs → index-BpsegAwn.cjs} +1 -1
- package/dist/{index-C66OX9zw.cjs → index-C5JMbr44.cjs} +1 -1
- package/dist/{index-B6wKFWns.js → index-C7I6rjTi.js} +1 -1
- package/dist/{index-BUtek-Vr.js → index-CC1nHMpP.js} +2 -2
- package/dist/{index-DjHYoS99.js → index-CHAivsl7.js} +3 -3
- package/dist/{index-BRsIqcTm.js → index-CIfu_GFM.js} +2 -2
- package/dist/{index-CkN78FU_.js → index-CQslNxtk.js} +2 -2
- package/dist/{index-Col83qrL.cjs → index-CQufPY9S.cjs} +1 -1
- package/dist/{index-DxByhqhY.cjs → index-CUKPujGU.cjs} +1 -1
- package/dist/index-CVq65SVg.cjs +1 -0
- package/dist/{index-DwhfqU5N.js → index-CfD5VeO1.js} +1 -1
- package/dist/{index-MoAplnhm.cjs → index-CkC96DVW.cjs} +1 -1
- package/dist/{index-BBnQvMi2.js → index-ClCKKRIr.js} +1 -1
- package/dist/{index-CMquZgvj.js → index-D6Ir_PRy.js} +1 -1
- package/dist/{index-C5yW916i.js → index-DFnWi7sD.js} +4728 -4653
- package/dist/{index-DYJJVC6K.cjs → index-DHH3BcsD.cjs} +1 -1
- package/dist/{index-Cln7mWoP.js → index-DhV2SDP0.js} +442 -442
- package/dist/{index-B6wXzZnB.cjs → index-Dt_DbyT_.cjs} +1 -1
- package/dist/{index-KeqTpBdi.cjs → index-DuzfIig5.cjs} +1 -1
- package/dist/{index-CCbDoiwI.js → index-Dvy7awjA.js} +8 -8
- package/dist/{index-Cl4Li0U-.cjs → index-kMcS2iMs.cjs} +26 -26
- package/dist/{index-BBWFPwXI.cjs → index-nEJZo4wD.cjs} +1 -1
- package/dist/{index-CIHrg1N9.js → index-nbwxpZwR.js} +1 -1
- package/dist/{index-BziEepSC.cjs → index-s-XsHj38.cjs} +1 -1
- package/dist/{index-D7UVJO0t.js → index-t7hJeIIy.js} +4 -4
- package/dist/{index-DQ6mnsYT.js → index-zYGaY1UQ.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-CcjRWkN6.cjs → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DwRpgJur.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-CV3_m54Y.js → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-ccV7qtIq.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_b487cf8f_lang-aXOCtFkm.js → index.vue_vue_type_style_index_0_scoped_29697e5c_lang-CKWe-TLZ.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_0_scoped_b487cf8f_lang-D7HwGlRh.cjs → index.vue_vue_type_style_index_0_scoped_29697e5c_lang-Cfk2cdz8.cjs} +1 -1
- package/dist/{main-BK-_LSu1.cjs → main-Bf-uqnZS.cjs} +1 -1
- package/dist/{main-CTpFSV1k.js → main-CYjRpYAX.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-z9Fk5SH-.cjs → threeModel-CNEBSjDY.cjs} +1 -1
- package/dist/{threeModel-DTRxE50I.js → threeModel-ahD7TbiM.js} +222 -221
- package/package.json +1 -1
- package/public/icons/svg/jd/345/215/225.svg +1 -0
- package/public/icons/svg//344/274/232/350/256/256/347/272/252/350/246/201.svg +1 -0
- package/public/icons/svg//345/201/234/345/267/245/344/273/244.svg +1 -0
- package/public/icons/svg//345/210/266/351/200/240/345/216/202.svg +1 -0
- package/public/icons/svg//345/217/226/346/266/210.svg +1 -0
- package/public/icons/svg//345/221/250/346/212/245.svg +1 -0
- package/public/icons/svg//345/244/207/345/277/230/345/275/225.svg +1 -0
- package/public/icons/svg//345/256/241/346/240/270.svg +1 -0
- package/public/icons/svg//345/271/264/345/272/246/350/256/241/345/210/222.svg +1 -0
- package/public/icons/svg//346/211/271/345/207/206.svg +1 -0
- package/public/icons/svg//346/211/277/345/214/205/345/225/206.svg +1 -0
- package/public/icons/svg//346/217/220/344/272/244.svg +1 -0
- package/public/icons/svg//346/226/207/344/273/266/347/256/241/347/220/206.svg +1 -0
- package/public/icons/svg//346/227/245/346/212/245.svg +1 -0
- package/public/icons/svg//346/234/210/346/212/245.svg +1 -0
- package/public/icons/svg//346/241/243/346/241/210/347/256/241/347/220/206.svg +1 -0
- package/public/icons/svg//347/201/257/346/263/241/347/273/264/344/277/256.svg +1 -0
- package/public/icons/svg//347/224/237/346/210/220/346/212/245/345/221/212.svg +1 -0
- package/public/icons/svg//347/256/227/346/263/225.svg +1 -0
- package/public/icons/svg//347/273/217/351/252/214/345/217/215/351/246/210.svg +1 -1
- package/public/icons/svg//347/273/217/351/252/214/345/217/215/351/246/2101.svg +1 -0
- package/public/icons/svg//350/220/245/350/277/220/345/215/225/344/275/215.svg +1 -0
- package/public/icons/svg//350/247/202/345/257/237/346/204/217/350/247/201/345/215/225.svg +1 -0
- package/public/icons/svg//350/256/260/345/275/225/345/215/225.svg +1 -0
- package/public/icons/svg//351/203/250/351/227/250/346/226/207/344/273/266.svg +2 -0
- package/public/icons/svg//351/251/263/345/233/236.svg +1 -0
- package/dist/index-Bbb9-pCb.cjs +0 -1
- package/dist/index-DadlkxH0.js +0 -4441
|
@@ -0,0 +1,4456 @@
|
|
|
1
|
+
import { q as Ea, I as al, a as ha, g as bl, r as $a, v as Ba, w as Ta, x as Sa, y as Oa, z as da, A as Fa, B as La, C as Ra, D as Pa } from "./index-DhV2SDP0.js";
|
|
2
|
+
import { ref as J, watch as je, createElementBlock as ce, openBlock as q, createVNode as K, resolveComponent as Te, Fragment as Se, renderList as Oe, createElementVNode as A, createCommentVNode as Ye, toDisplayString as me, withCtx as se, createBlock as Fe, createTextVNode as xe, defineComponent as hl, reactive as ea, resolveDynamicComponent as Nl, unref as ma, computed as la, renderSlot as Wl, createSlots as Va, mergeProps as Na, normalizeStyle as ja, withModifiers as Vl } from "vue";
|
|
3
|
+
import { bR as ya, p as Qe, c as l, s as il, E as Ze, u as Ua, g as Ul, d as ql, bO as Wa, bM as za, bN as Ma } from "./menu-Qw1eGtzq.js";
|
|
4
|
+
import { e as ze, s as Ge, f as ba, a as Ka, h as Ja, i as Ga, b as qa } from "./index-DFnWi7sD.js";
|
|
5
|
+
import { F as pa, a as Ha, b as Ne, m as gl, s as ll, f as vl, e as Hl } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfEICeD4.js";
|
|
6
|
+
import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
import { E as cl } from "./index-CmXpvujN.js";
|
|
8
|
+
import { u as ga } from "./modelComp-y7HaQuVQ.js";
|
|
9
|
+
import { u as Qa } from "./login-afGmER0u.js";
|
|
10
|
+
import { s as Xa, a as Ya } from "./index-5IbykWPh.js";
|
|
11
|
+
import Za from "./index-CZtXRS3l.js";
|
|
12
|
+
const es = (d) => d.match(/\((.*)\)/)[1], ls = ya("formComp", {
|
|
13
|
+
state: () => ({
|
|
14
|
+
objUrl: [],
|
|
15
|
+
blobUrls: []
|
|
16
|
+
}),
|
|
17
|
+
actions: {
|
|
18
|
+
setObjUrl(d) {
|
|
19
|
+
this.objUrl = d;
|
|
20
|
+
},
|
|
21
|
+
setBlobUrls(d) {
|
|
22
|
+
this.blobUrls = d;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}), as = { class: "form-content" }, ss = {
|
|
26
|
+
__name: "index",
|
|
27
|
+
props: {
|
|
28
|
+
formRules: Object,
|
|
29
|
+
itemData: {
|
|
30
|
+
type: Array,
|
|
31
|
+
default: () => []
|
|
32
|
+
},
|
|
33
|
+
childItemData: {
|
|
34
|
+
type: Array,
|
|
35
|
+
default: () => []
|
|
36
|
+
},
|
|
37
|
+
index: Number
|
|
38
|
+
},
|
|
39
|
+
emits: ["change", "contentChange"],
|
|
40
|
+
setup(d, { emit: y }) {
|
|
41
|
+
const i = d, a = y, f = J([]), T = J(!1), j = J([]), I = Ea(Qe), V = ls(Qe), z = J(!1), E = J(), H = (S) => {
|
|
42
|
+
var k, D, W, t, s, c, n;
|
|
43
|
+
let Q = [];
|
|
44
|
+
if ((k = S == null ? void 0 : S.toString()) != null && k.includes(".stl") || (D = S == null ? void 0 : S.toString()) != null && D.includes(".STL") || (W = S == null ? void 0 : S.toString()) != null && W.includes(".obj") || (t = S == null ? void 0 : S.toString()) != null && t.includes(".mtl") || (s = S == null ? void 0 : S.toString()) != null && s.includes(".urdf")) {
|
|
45
|
+
let _, b = [], Y = {};
|
|
46
|
+
Array.isArray(S) ? _ = S : _ = S == null ? void 0 : S.split(","), _ == null || _.forEach((te) => {
|
|
47
|
+
te.includes(".mtl") ? b.push(te) : Y.blob = Y.blob ? Y.blob + "," + te : te;
|
|
48
|
+
}), (b == null ? void 0 : b.length) > 0 && (Y.mtlBlobs = b), (n = (c = Object.values(Y)) == null ? void 0 : c[0]) != null && n.includes("http:") && Q.push(Y);
|
|
49
|
+
}
|
|
50
|
+
(Q == null ? void 0 : Q.length) > 0 && V.setBlobUrls(Q);
|
|
51
|
+
}, G = (S) => {
|
|
52
|
+
var t, s, c, n;
|
|
53
|
+
const Q = (s = (t = l(i.itemData)) == null ? void 0 : t.find((_) => (_ == null ? void 0 : _.key) === "formContent")) == null ? void 0 : s.contents, k = l(S.content);
|
|
54
|
+
let D = {};
|
|
55
|
+
k && ((c = Object.values(k)) == null ? void 0 : c.length) > 0 && ((n = Object.values(k)) == null || n.forEach((_, b) => {
|
|
56
|
+
D[Q[b].key] = _;
|
|
57
|
+
}));
|
|
58
|
+
const W = {
|
|
59
|
+
content: D,
|
|
60
|
+
index: i == null ? void 0 : i.index,
|
|
61
|
+
buttonName: S == null ? void 0 : S.buttonName
|
|
62
|
+
};
|
|
63
|
+
a("change", W);
|
|
64
|
+
}, oe = (S) => {
|
|
65
|
+
var t, s, c;
|
|
66
|
+
if (!S) return;
|
|
67
|
+
const Q = l(i.itemData), k = Q == null ? void 0 : Q.map((n) => {
|
|
68
|
+
var _;
|
|
69
|
+
return (n == null ? void 0 : n.key) === "formContent" && ((_ = n.contents) == null || _.map((b, Y) => {
|
|
70
|
+
var te, de, u, v, F, C, h, P, U, w, B, m, r, X, ue, L, O;
|
|
71
|
+
return b.type = b != null && b.type ? b.type : (v = (u = (de = (te = b == null ? void 0 : b.key) == null ? void 0 : te.split("$")) == null ? void 0 : de[1]) == null ? void 0 : u.split("(")) != null && v[0] ? (C = (F = pa) == null ? void 0 : F.find((x) => {
|
|
72
|
+
var ne, ee, Z, pe;
|
|
73
|
+
return (x == null ? void 0 : x.key) === ((pe = (Z = (ee = (ne = b == null ? void 0 : b.key) == null ? void 0 : ne.split("$")) == null ? void 0 : ee[1]) == null ? void 0 : Z.split("(")) == null ? void 0 : pe[0]);
|
|
74
|
+
})) == null ? void 0 : C.value : "Input", b.options = b != null && b.options ? b.options : ((U = (P = (h = b == null ? void 0 : b.key) == null ? void 0 : h.split("$")) == null ? void 0 : P[1]) == null ? void 0 : U.length) > 0 ? (r = (m = es((B = (w = b == null ? void 0 : b.key) == null ? void 0 : w.split("$")) == null ? void 0 : B[1])) == null ? void 0 : m.split(",")) == null ? void 0 : r.map((x) => ({
|
|
75
|
+
label: x,
|
|
76
|
+
value: x
|
|
77
|
+
})) : [], (X = b == null ? void 0 : b.key) != null && X.includes("$") && (b.key = (L = (ue = b == null ? void 0 : b.key) == null ? void 0 : ue.split("$")) == null ? void 0 : L[0]), b.value = (O = Object.values(S)) == null ? void 0 : O[Y], b;
|
|
78
|
+
})), n;
|
|
79
|
+
});
|
|
80
|
+
let D = [], W = [];
|
|
81
|
+
if ((s = l((t = k == null ? void 0 : k.find((n) => (n == null ? void 0 : n.key) === "formContent")) == null ? void 0 : t.contents)) == null || s.forEach((n) => {
|
|
82
|
+
var _;
|
|
83
|
+
Array.isArray(n == null ? void 0 : n.value) && ((_ = n == null ? void 0 : n.value) != null && _.find((b) => {
|
|
84
|
+
var Y;
|
|
85
|
+
return (Y = b == null ? void 0 : b.url) == null ? void 0 : Y.includes(".obj");
|
|
86
|
+
})) && (W = n == null ? void 0 : n.value);
|
|
87
|
+
}), (W == null ? void 0 : W.length) > 0) {
|
|
88
|
+
const n = (c = l(W)) == null ? void 0 : c.filter((_) => {
|
|
89
|
+
var b;
|
|
90
|
+
return (b = _ == null ? void 0 : _.url) == null ? void 0 : b.includes(".obj");
|
|
91
|
+
});
|
|
92
|
+
n == null || n.forEach((_) => {
|
|
93
|
+
var Y, te, de, u;
|
|
94
|
+
const b = (Y = W == null ? void 0 : W.filter((v) => {
|
|
95
|
+
var F;
|
|
96
|
+
return (v == null ? void 0 : v.name) === (_ == null ? void 0 : _.name) && ((F = v == null ? void 0 : v.url) == null ? void 0 : F.includes(".mtl"));
|
|
97
|
+
})) == null ? void 0 : Y.map((v) => v == null ? void 0 : v.url);
|
|
98
|
+
D.push({
|
|
99
|
+
objUrl: _ == null ? void 0 : _.url,
|
|
100
|
+
mtlUrls: ((te = W == null ? void 0 : W.filter((v) => {
|
|
101
|
+
var F;
|
|
102
|
+
return (v == null ? void 0 : v.name) === (_ == null ? void 0 : _.name) && ((F = v == null ? void 0 : v.url) == null ? void 0 : F.includes(".mtl"));
|
|
103
|
+
})) == null ? void 0 : te.length) === 1 ? (u = (de = W == null ? void 0 : W.filter((v) => {
|
|
104
|
+
var F;
|
|
105
|
+
return (v == null ? void 0 : v.name) === (_ == null ? void 0 : _.name) && ((F = v == null ? void 0 : v.url) == null ? void 0 : F.includes(".mtl"));
|
|
106
|
+
})) == null ? void 0 : de[0]) == null ? void 0 : u.url : b
|
|
107
|
+
});
|
|
108
|
+
}), V.setObjUrl(D);
|
|
109
|
+
}
|
|
110
|
+
a("contentChange", {
|
|
111
|
+
contents: k,
|
|
112
|
+
index: i.index
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
return je(
|
|
116
|
+
() => i.itemData,
|
|
117
|
+
async () => {
|
|
118
|
+
var t, s, c, n, _, b, Y, te, de, u, v, F, C, h;
|
|
119
|
+
const S = (t = i.itemData) == null ? void 0 : t.find((P) => (P == null ? void 0 : P.key) === "formContent"), Q = (s = l(i.itemData)) == null ? void 0 : s.find((P) => (P == null ? void 0 : P.key) === "formButton"), k = (c = l(i.itemData)) == null ? void 0 : c.find((P) => (P == null ? void 0 : P.key) === "formFlex"), D = (n = l(i.itemData)) == null ? void 0 : n.find((P) => (P == null ? void 0 : P.key) === "formWrap"), W = (_ = l(i.itemData)) == null ? void 0 : _.find((P) => (P == null ? void 0 : P.key) === "enableWrap");
|
|
120
|
+
if ((D == null ? void 0 : D.contents) === "纵向" ? T.value = !1 : T.value = !0, z.value = (W == null ? void 0 : W.contents) === void 0 ? !1 : W == null ? void 0 : W.contents, E.value = typeof (k == null ? void 0 : k.contents) != "boolean" ? !(!(k != null && k.contents) === "" || ((b = k == null ? void 0 : k.contents) == null ? void 0 : b.toUpperCase()) === "VERTICAL") : k == null ? void 0 : k.contents, ((Y = S == null ? void 0 : S.contents) == null ? void 0 : Y.length) > 0 && Array.isArray(S == null ? void 0 : S.contents)) {
|
|
121
|
+
const P = [];
|
|
122
|
+
await ((te = S == null ? void 0 : S.contents) == null ? void 0 : te.forEach(async (r, X) => {
|
|
123
|
+
var ue, L, O, x, ne, ee, Z, pe, le, ke, ye, De;
|
|
124
|
+
if ((r == null ? void 0 : r.label) !== "") {
|
|
125
|
+
let Ie = (r == null ? void 0 : r.label) ?? (r == null ? void 0 : r.key) ?? "", ie = (r == null ? void 0 : r.type) ?? "", e = (r == null ? void 0 : r.options) ?? [];
|
|
126
|
+
if ((ue = r == null ? void 0 : r.key) != null && ue.includes("$") && (Ie = (L = l(r == null ? void 0 : r.key).split("$")) == null ? void 0 : L[0], ((x = (O = l(r == null ? void 0 : r.key).split("$")) == null ? void 0 : O[1]) == null ? void 0 : x.length) > 0)) {
|
|
127
|
+
const [g, p] = (ee = (ne = l(r == null ? void 0 : r.key).split("$")) == null ? void 0 : ne[1]) == null ? void 0 : ee.split(/[()]/);
|
|
128
|
+
ie = ((Z = pa.find(($) => ($ == null ? void 0 : $.key) === g)) == null ? void 0 : Z.value) ?? "", ((pe = p == null ? void 0 : p.split(",")) == null ? void 0 : pe.length) > 0 && (e = (le = p == null ? void 0 : p.split(",")) == null ? void 0 : le.map(($) => ({
|
|
129
|
+
label: $,
|
|
130
|
+
value: $
|
|
131
|
+
})));
|
|
132
|
+
}
|
|
133
|
+
let o = [];
|
|
134
|
+
r != null && r.contents && !Array.isArray(r == null ? void 0 : r.contents) && (o = (ye = (ke = r == null ? void 0 : r.contents) == null ? void 0 : ke.split(",")) == null ? void 0 : ye.map((g) => ({
|
|
135
|
+
label: g,
|
|
136
|
+
value: g
|
|
137
|
+
}))), P.push({
|
|
138
|
+
label: Ie ?? "",
|
|
139
|
+
name: "t" + X,
|
|
140
|
+
type: ie === "" ? "Input" : ie,
|
|
141
|
+
value: r != null && r.originalContent && (r == null ? void 0 : r.originalContent) !== "" ? r.originalContent : r != null && r.value ? r.value : (e == null ? void 0 : e.length) > 0 ? (De = e == null ? void 0 : e[0]) == null ? void 0 : De.value : (r == null ? void 0 : r.value) ?? "",
|
|
142
|
+
id: (r == null ? void 0 : r.id) ?? X,
|
|
143
|
+
contents: (o == null ? void 0 : o.length) > 0 ? o : e ?? [],
|
|
144
|
+
width: (r == null ? void 0 : r.width) ?? 1,
|
|
145
|
+
config: r == null ? void 0 : r.config,
|
|
146
|
+
optionUrl: (r == null ? void 0 : r.optionUrl) ?? r
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
}));
|
|
150
|
+
const U = P == null ? void 0 : P.map((r) => r.value);
|
|
151
|
+
let w = "";
|
|
152
|
+
U == null || U.forEach((r) => {
|
|
153
|
+
r !== "" && r !== void 0 && (w = w === "" ? r : w + "/" + r);
|
|
154
|
+
}), I.setSelectArray(U), I.setSelectString(w), f.value = (de = l(P)) == null ? void 0 : de.map((r) => (r != null && r.value && al(r == null ? void 0 : r.value) && Array.isArray(JSON.parse(r == null ? void 0 : r.value)) && (r.value = JSON.parse(r.value)), r));
|
|
155
|
+
let B = [], m = [];
|
|
156
|
+
if ((u = l(f.value)) == null || u.forEach((r) => {
|
|
157
|
+
var X;
|
|
158
|
+
Array.isArray(r == null ? void 0 : r.value) && ((X = r == null ? void 0 : r.value) != null && X.find((ue) => {
|
|
159
|
+
var L;
|
|
160
|
+
return (L = ue == null ? void 0 : ue.url) == null ? void 0 : L.includes(".obj");
|
|
161
|
+
})) && (m = r == null ? void 0 : r.value);
|
|
162
|
+
}), (m == null ? void 0 : m.length) > 0) {
|
|
163
|
+
const r = (v = l(m)) == null ? void 0 : v.filter((X) => {
|
|
164
|
+
var ue;
|
|
165
|
+
return (ue = X == null ? void 0 : X.url) == null ? void 0 : ue.includes(".obj");
|
|
166
|
+
});
|
|
167
|
+
r == null || r.forEach((X) => {
|
|
168
|
+
var L, O, x, ne;
|
|
169
|
+
const ue = (L = m == null ? void 0 : m.filter((ee) => {
|
|
170
|
+
var Z;
|
|
171
|
+
return (ee == null ? void 0 : ee.name) === (X == null ? void 0 : X.name) && ((Z = ee == null ? void 0 : ee.url) == null ? void 0 : Z.includes(".mtl"));
|
|
172
|
+
})) == null ? void 0 : L.map((ee) => ee == null ? void 0 : ee.url);
|
|
173
|
+
B.push({
|
|
174
|
+
objUrl: X == null ? void 0 : X.url,
|
|
175
|
+
mtlUrls: ((O = m == null ? void 0 : m.filter((ee) => {
|
|
176
|
+
var Z;
|
|
177
|
+
return (ee == null ? void 0 : ee.name) === (X == null ? void 0 : X.name) && ((Z = ee == null ? void 0 : ee.url) == null ? void 0 : Z.includes(".mtl"));
|
|
178
|
+
})) == null ? void 0 : O.length) === 1 ? (ne = (x = m == null ? void 0 : m.filter((ee) => {
|
|
179
|
+
var Z;
|
|
180
|
+
return (ee == null ? void 0 : ee.name) === (X == null ? void 0 : X.name) && ((Z = ee == null ? void 0 : ee.url) == null ? void 0 : Z.includes(".mtl"));
|
|
181
|
+
})) == null ? void 0 : x[0]) == null ? void 0 : ne.url : ue
|
|
182
|
+
});
|
|
183
|
+
}), V.setObjUrl(B);
|
|
184
|
+
}
|
|
185
|
+
(F = l(f.value)) == null || F.forEach((r) => {
|
|
186
|
+
var X, ue, L, O, x, ne, ee, Z, pe, le, ke, ye, De;
|
|
187
|
+
if ((ue = (X = r == null ? void 0 : r.value) == null ? void 0 : X.toString()) != null && ue.includes(".stl") || (O = (L = r == null ? void 0 : r.value) == null ? void 0 : L.toString()) != null && O.includes(".STL") || (ne = (x = r == null ? void 0 : r.value) == null ? void 0 : x.toString()) != null && ne.includes(".obj") || (Z = (ee = r == null ? void 0 : r.value) == null ? void 0 : ee.toString()) != null && Z.includes(".mtl") || (le = (pe = r == null ? void 0 : r.value) == null ? void 0 : pe.toString()) != null && le.includes(".urdf")) {
|
|
188
|
+
let Ie = {}, ie = [], e;
|
|
189
|
+
Array.isArray(r == null ? void 0 : r.value) ? e = r == null ? void 0 : r.value : e = (ke = r == null ? void 0 : r.value) == null ? void 0 : ke.split(","), e == null || e.forEach((o) => {
|
|
190
|
+
o.includes(".mtl") ? ie.push(o) : Ie.blob = Ie.blob === "undefined" ? o : Ie.blob + "," + o;
|
|
191
|
+
}), (ie == null ? void 0 : ie.length) > 0 && (Ie.mtlBlobs = ie), (De = (ye = Object.values(Ie)) == null ? void 0 : ye[0]) != null && De.includes("http:");
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
} else
|
|
195
|
+
f.value = [];
|
|
196
|
+
if (((C = Q == null ? void 0 : Q.contents) == null ? void 0 : C.length) > 0) {
|
|
197
|
+
const P = [];
|
|
198
|
+
(h = Q == null ? void 0 : Q.contents) == null || h.forEach((U, w) => {
|
|
199
|
+
(U == null ? void 0 : U.label) !== "" && P.push({
|
|
200
|
+
label: (U == null ? void 0 : U.label) ?? "",
|
|
201
|
+
id: (U == null ? void 0 : U.id) ?? w,
|
|
202
|
+
type: (U == null ? void 0 : U.type) ?? "",
|
|
203
|
+
background: U == null ? void 0 : U.background
|
|
204
|
+
});
|
|
205
|
+
}), j.value = P;
|
|
206
|
+
} else
|
|
207
|
+
j.value = [];
|
|
208
|
+
},
|
|
209
|
+
{ deep: !0, immediate: !0 }
|
|
210
|
+
), (S, Q) => (q(), ce("div", as, [
|
|
211
|
+
K(ze, {
|
|
212
|
+
rowContents: f.value,
|
|
213
|
+
formRules: d.formRules,
|
|
214
|
+
buttonValue: j.value,
|
|
215
|
+
isRowFlex: !1,
|
|
216
|
+
isEnableWrap: z.value,
|
|
217
|
+
onOnButtonClick: G,
|
|
218
|
+
onChange: oe,
|
|
219
|
+
isButtonRow: T.value,
|
|
220
|
+
onPreview: H
|
|
221
|
+
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEnableWrap", "isButtonRow"])
|
|
222
|
+
]));
|
|
223
|
+
}
|
|
224
|
+
}, fa = /* @__PURE__ */ Re(ss, [["__scopeId", "data-v-b8e02a9b"]]), zl = J(0), ka = (d) => {
|
|
225
|
+
var y;
|
|
226
|
+
return !d || (d == null ? void 0 : d.length) === 0 ? [] : (y = l(d)) == null ? void 0 : y.map((a) => (zl.value++, a = {
|
|
227
|
+
label: (a == null ? void 0 : a.label) ?? "",
|
|
228
|
+
prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : a == null ? void 0 : a.prop,
|
|
229
|
+
width: a != null && a.width ? parseInt(a.width) : "",
|
|
230
|
+
fixed: (a == null ? void 0 : a.fixed) ?? void 0,
|
|
231
|
+
sortable: (a == null ? void 0 : a.sortable) ?? !1,
|
|
232
|
+
align: (a == null ? void 0 : a.align) ?? "center",
|
|
233
|
+
showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
|
|
234
|
+
isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
|
|
235
|
+
isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
|
|
236
|
+
isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
|
|
237
|
+
id: (a == null ? void 0 : a.id) ?? zl.value,
|
|
238
|
+
children: ka(a == null ? void 0 : a.children)
|
|
239
|
+
}, a));
|
|
240
|
+
}, is = (d) => {
|
|
241
|
+
var i;
|
|
242
|
+
return (i = l(d)) == null ? void 0 : i.map((a) => (zl.value++, a = {
|
|
243
|
+
label: (a == null ? void 0 : a.label) ?? "",
|
|
244
|
+
prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : a == null ? void 0 : a.prop,
|
|
245
|
+
width: a != null && a.width ? parseInt(a.width) : "",
|
|
246
|
+
fixed: (a == null ? void 0 : a.fixed) ?? void 0,
|
|
247
|
+
sortable: (a == null ? void 0 : a.sortable) ?? !1,
|
|
248
|
+
align: (a == null ? void 0 : a.align) ?? "center",
|
|
249
|
+
showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
|
|
250
|
+
isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
|
|
251
|
+
isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
|
|
252
|
+
isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
|
|
253
|
+
id: (a == null ? void 0 : a.id) ?? zl.value,
|
|
254
|
+
children: ka(a == null ? void 0 : a.children)
|
|
255
|
+
}, a));
|
|
256
|
+
}, _a = (d, y) => {
|
|
257
|
+
var i;
|
|
258
|
+
return d != null && d.find((a) => (a == null ? void 0 : a.id) === y) ? (i = l(d)) == null ? void 0 : i.filter((f) => (f == null ? void 0 : f.id) !== y) : (d = d == null ? void 0 : d.map((a) => (a.children = _a(a == null ? void 0 : a.children, y), a)), d);
|
|
259
|
+
}, Ca = (d, y) => {
|
|
260
|
+
var i;
|
|
261
|
+
return d != null && d.find((a) => (a == null ? void 0 : a.id) === (y == null ? void 0 : y.id)) ? (i = l(d)) == null ? void 0 : i.map((f) => ((f == null ? void 0 : f.id) === (y == null ? void 0 : y.id) && (f = y), f)) : (d = d == null ? void 0 : d.map((a) => (a.children = Ca(a == null ? void 0 : a.children, y), a)), d);
|
|
262
|
+
}, wa = (d, y) => {
|
|
263
|
+
var i;
|
|
264
|
+
return d != null && d.find((a) => {
|
|
265
|
+
var f;
|
|
266
|
+
return (a == null ? void 0 : a.id) === ((f = y == null ? void 0 : y.contents) == null ? void 0 : f.id);
|
|
267
|
+
}) ? (i = l(d)) == null ? void 0 : i.map((f) => {
|
|
268
|
+
var T;
|
|
269
|
+
return (f == null ? void 0 : f.id) === ((T = y == null ? void 0 : y.contents) == null ? void 0 : T.id) && (f = y == null ? void 0 : y.contents), f;
|
|
270
|
+
}) : (d = d == null ? void 0 : d.map((a) => (a.children = wa(a == null ? void 0 : a.children, y), a)), d);
|
|
271
|
+
}, Da = (d, y) => {
|
|
272
|
+
var i;
|
|
273
|
+
return d != null && d.find((a) => (a == null ? void 0 : a.id) === (y == null ? void 0 : y.id)) ? (i = l(d)) == null ? void 0 : i.map((f) => ((f == null ? void 0 : f.id) === (y == null ? void 0 : y.id) && (f != null && f.children || (f.children = []), f.children.push(y.contents)), f)) : (d = d == null ? void 0 : d.map((a) => (a.children = Da(a == null ? void 0 : a.children, y), a)), d);
|
|
274
|
+
}, Ce = [
|
|
275
|
+
{
|
|
276
|
+
key: "label",
|
|
277
|
+
label: "标签名",
|
|
278
|
+
type: "Input"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
key: "prop",
|
|
282
|
+
label: "属性名",
|
|
283
|
+
type: "Input"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
key: "width",
|
|
287
|
+
label: "宽度",
|
|
288
|
+
type: "Input"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
key: "sortable",
|
|
292
|
+
label: "是否支持排序",
|
|
293
|
+
type: "Switch"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
key: "align",
|
|
297
|
+
label: "文本所在位置",
|
|
298
|
+
type: "Radio",
|
|
299
|
+
options: [
|
|
300
|
+
{
|
|
301
|
+
label: "left",
|
|
302
|
+
value: "左"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
label: "center",
|
|
306
|
+
value: "中"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
label: "right",
|
|
310
|
+
value: "右"
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
key: "fixed",
|
|
316
|
+
label: "是否固定列",
|
|
317
|
+
type: "Switch"
|
|
318
|
+
}
|
|
319
|
+
], ns = [
|
|
320
|
+
{
|
|
321
|
+
label: "查看",
|
|
322
|
+
value: "view"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
label: "修改",
|
|
326
|
+
value: "fix"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
label: "删除",
|
|
330
|
+
value: "delete"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
label: "三维算例",
|
|
334
|
+
value: "modelExample"
|
|
335
|
+
}
|
|
336
|
+
], os = [
|
|
337
|
+
{
|
|
338
|
+
label: "新增",
|
|
339
|
+
value: "add"
|
|
340
|
+
}
|
|
341
|
+
], ul = [
|
|
342
|
+
{
|
|
343
|
+
key: "label",
|
|
344
|
+
label: "按钮名",
|
|
345
|
+
type: "Input"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
key: "type",
|
|
349
|
+
label: "类型",
|
|
350
|
+
type: "Select",
|
|
351
|
+
options: os
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
key: "background",
|
|
355
|
+
label: "按钮背景色",
|
|
356
|
+
type: "Color"
|
|
357
|
+
}
|
|
358
|
+
], rl = [
|
|
359
|
+
{
|
|
360
|
+
key: "label",
|
|
361
|
+
label: "按钮名",
|
|
362
|
+
type: "Input"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
key: "type",
|
|
366
|
+
label: "类型",
|
|
367
|
+
type: "Select",
|
|
368
|
+
options: ns
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
key: "textColor",
|
|
372
|
+
label: "按钮颜色",
|
|
373
|
+
type: "Color"
|
|
374
|
+
}
|
|
375
|
+
], us = { class: "table-header-child" }, rs = { class: "table-header-child-main" }, cs = { class: "table-header-child-content" }, ts = { class: "table-header-child-content-item" }, ds = { class: "fix-button" }, ps = { key: 0 }, fs = { class: "form-content" }, vs = {
|
|
376
|
+
__name: "tableNewChild",
|
|
377
|
+
props: {
|
|
378
|
+
tableChildContents: Array
|
|
379
|
+
},
|
|
380
|
+
emits: ["fixChange", "deleteChange"],
|
|
381
|
+
setup(d, { emit: y }) {
|
|
382
|
+
const i = d, a = y, f = J(!1), T = J(""), j = ha(Qe), { tableIndex: I } = il(j);
|
|
383
|
+
J(0);
|
|
384
|
+
const V = J(""), z = J([]), E = J([]), H = (t) => {
|
|
385
|
+
var c;
|
|
386
|
+
f.value = !0;
|
|
387
|
+
let s = [];
|
|
388
|
+
Ce == null || Ce.forEach((n) => {
|
|
389
|
+
let _ = l(I.value) + 1;
|
|
390
|
+
j.setTableIndex(_), s.push({
|
|
391
|
+
label: n == null ? void 0 : n.label,
|
|
392
|
+
name: n == null ? void 0 : n.label,
|
|
393
|
+
type: n.type,
|
|
394
|
+
value: t[n.key],
|
|
395
|
+
id: I.value,
|
|
396
|
+
contents: n == null ? void 0 : n.options
|
|
397
|
+
});
|
|
398
|
+
}), t != null && t.children && ((c = t == null ? void 0 : t.children) == null ? void 0 : c.length) > 0 && s.push({
|
|
399
|
+
children: t == null ? void 0 : t.children,
|
|
400
|
+
isFormColHidden: !0
|
|
401
|
+
}), V.value = t == null ? void 0 : t.id, z.value = s, E.value = s;
|
|
402
|
+
}, G = (t) => {
|
|
403
|
+
a("fixChange", l(t));
|
|
404
|
+
}, oe = (t) => {
|
|
405
|
+
a("deleteChange", l(t));
|
|
406
|
+
}, S = (t) => {
|
|
407
|
+
f.value = !0;
|
|
408
|
+
let s = [];
|
|
409
|
+
Ce == null || Ce.forEach((c) => {
|
|
410
|
+
let n = l(I.value) + 1;
|
|
411
|
+
j.setTableIndex(n), s.push({
|
|
412
|
+
label: c == null ? void 0 : c.label,
|
|
413
|
+
name: c == null ? void 0 : c.label,
|
|
414
|
+
type: c.type,
|
|
415
|
+
value: "",
|
|
416
|
+
id: I.value,
|
|
417
|
+
contents: c == null ? void 0 : c.options
|
|
418
|
+
});
|
|
419
|
+
}), T.value = t == null ? void 0 : t.id, z.value = s, E.value = s;
|
|
420
|
+
}, Q = (t) => {
|
|
421
|
+
let s = l(E.value);
|
|
422
|
+
s = s == null ? void 0 : s.map((c) => (c.children || (c.value = t == null ? void 0 : t[c.name]), c)), E.value = s;
|
|
423
|
+
}, k = () => {
|
|
424
|
+
var s, c;
|
|
425
|
+
z.value = E.value;
|
|
426
|
+
let t = {};
|
|
427
|
+
if (V.value !== "")
|
|
428
|
+
t.id = V.value, (s = z.value) == null || s.forEach((n) => {
|
|
429
|
+
const _ = Ce == null ? void 0 : Ce.find((b) => (b == null ? void 0 : b.label) === (n == null ? void 0 : n.label));
|
|
430
|
+
_ ? t[_.key] = n.value : n != null && n.children && n.children.length > 0 && (t.children = n.children);
|
|
431
|
+
}), f.value = !1, a("fixChange", {
|
|
432
|
+
contents: l(t),
|
|
433
|
+
id: T.value,
|
|
434
|
+
type: "fix"
|
|
435
|
+
});
|
|
436
|
+
else {
|
|
437
|
+
let n = l(I.value) + 1;
|
|
438
|
+
j.setTableIndex(n), t.id = "id" + I.value, (c = z.value) == null || c.forEach((_) => {
|
|
439
|
+
const b = Ce == null ? void 0 : Ce.find((Y) => (Y == null ? void 0 : Y.label) === (_ == null ? void 0 : _.label));
|
|
440
|
+
b ? t[b.key] = _.value : _ != null && _.children && _.children.length > 0 && (t.children = _.children);
|
|
441
|
+
}), f.value = !1, a("fixChange", {
|
|
442
|
+
contents: l(t),
|
|
443
|
+
id: T.value,
|
|
444
|
+
type: "add"
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
V.value = "", z.value = [], E.value = [];
|
|
448
|
+
}, D = () => {
|
|
449
|
+
f.value = !1, V.value = "", T.value = "", z.value = [], E.value = [];
|
|
450
|
+
}, W = (t) => {
|
|
451
|
+
cl.confirm("是否确认要删除", "", {
|
|
452
|
+
confirmButtonText: "确认",
|
|
453
|
+
cancelButtonText: "取消",
|
|
454
|
+
type: "warning"
|
|
455
|
+
}).then(
|
|
456
|
+
() => {
|
|
457
|
+
a("deleteChange", t), Ze({
|
|
458
|
+
type: "success",
|
|
459
|
+
message: "删除成功"
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
).catch(() => {
|
|
463
|
+
});
|
|
464
|
+
};
|
|
465
|
+
return (t, s) => {
|
|
466
|
+
const c = Te("svg-icon");
|
|
467
|
+
return q(), ce("div", us, [
|
|
468
|
+
(q(!0), ce(Se, null, Oe(i == null ? void 0 : i.tableChildContents, (n, _) => (q(), ce("div", rs, [
|
|
469
|
+
A("div", cs, [
|
|
470
|
+
A("div", ts, me(n.label), 1),
|
|
471
|
+
A("div", ds, [
|
|
472
|
+
K(c, {
|
|
473
|
+
name: "ChildAdd",
|
|
474
|
+
class: "svg-icon-content",
|
|
475
|
+
style: { width: "24px", height: "24px" },
|
|
476
|
+
onClick: (b) => S(n)
|
|
477
|
+
}, null, 8, ["onClick"]),
|
|
478
|
+
K(c, {
|
|
479
|
+
name: "ChildFix",
|
|
480
|
+
class: "svg-icon-content",
|
|
481
|
+
style: { width: "24px", height: "24px" },
|
|
482
|
+
onClick: (b) => H(n)
|
|
483
|
+
}, null, 8, ["onClick"]),
|
|
484
|
+
K(c, {
|
|
485
|
+
name: "ChildDelete",
|
|
486
|
+
class: "svg-icon-content",
|
|
487
|
+
style: { width: "24px", height: "24px" },
|
|
488
|
+
onClick: (b) => W(n)
|
|
489
|
+
}, null, 8, ["onClick"])
|
|
490
|
+
])
|
|
491
|
+
]),
|
|
492
|
+
n != null && n.children && n.children.length > 0 ? (q(), ce("div", ps, [
|
|
493
|
+
K(Ia, {
|
|
494
|
+
tableChildContents: n == null ? void 0 : n.children,
|
|
495
|
+
onDeleteChange: oe,
|
|
496
|
+
onFixChange: G
|
|
497
|
+
}, null, 8, ["tableChildContents"])
|
|
498
|
+
])) : Ye("", !0)
|
|
499
|
+
]))), 256)),
|
|
500
|
+
K(Ge, {
|
|
501
|
+
visible: f.value,
|
|
502
|
+
onBeforeDestroy: D,
|
|
503
|
+
width: 840
|
|
504
|
+
}, {
|
|
505
|
+
default: se(() => [
|
|
506
|
+
A("div", fs, [
|
|
507
|
+
(q(), Fe(ze, {
|
|
508
|
+
rowContents: z.value,
|
|
509
|
+
key: z.value,
|
|
510
|
+
isEnableWrap: !0,
|
|
511
|
+
onChange: Q
|
|
512
|
+
}, null, 8, ["rowContents"]))
|
|
513
|
+
])
|
|
514
|
+
]),
|
|
515
|
+
footer: se(() => [
|
|
516
|
+
A("div", { class: "dialog-footer" }, [
|
|
517
|
+
A("div", {
|
|
518
|
+
onClick: D,
|
|
519
|
+
class: "cancel-button button"
|
|
520
|
+
}, me("取消")),
|
|
521
|
+
A("div", {
|
|
522
|
+
class: "ok-button button",
|
|
523
|
+
onClick: k
|
|
524
|
+
}, me("确认"))
|
|
525
|
+
])
|
|
526
|
+
]),
|
|
527
|
+
_: 1
|
|
528
|
+
}, 8, ["visible"])
|
|
529
|
+
]);
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
}, hs = /* @__PURE__ */ Re(vs, [["__scopeId", "data-v-e0fef72d"]]), ms = { class: "table-header-child" }, ys = { class: "table-header-child-main" }, bs = { class: "table-header-child-content" }, gs = { class: "table-header-child-content-item" }, ks = { class: "fix-button" }, _s = { key: 0 }, Cs = { class: "form-content" }, ws = { class: "dialog-footer" }, Ds = {
|
|
533
|
+
__name: "tableChildren",
|
|
534
|
+
props: {
|
|
535
|
+
tableChildContents: Array
|
|
536
|
+
},
|
|
537
|
+
emits: ["fixChange", "deleteChange"],
|
|
538
|
+
setup(d, { emit: y }) {
|
|
539
|
+
const i = d, a = y, f = J(!1), T = J(""), j = ha(Qe), { tableIndex: I } = il(j), V = J(""), z = J([]), E = J([]), H = (t) => {
|
|
540
|
+
a("fixChange", l(t));
|
|
541
|
+
}, G = (t) => {
|
|
542
|
+
var c;
|
|
543
|
+
f.value = !0;
|
|
544
|
+
let s = [];
|
|
545
|
+
Ce == null || Ce.forEach((n) => {
|
|
546
|
+
let _ = l(I.value) + 1;
|
|
547
|
+
j.setTableIndex(_), s.push({
|
|
548
|
+
label: n == null ? void 0 : n.label,
|
|
549
|
+
name: n == null ? void 0 : n.label,
|
|
550
|
+
type: n.type,
|
|
551
|
+
value: t[n.key],
|
|
552
|
+
id: I.value,
|
|
553
|
+
contents: n == null ? void 0 : n.options
|
|
554
|
+
});
|
|
555
|
+
}), t != null && t.children && ((c = t == null ? void 0 : t.children) == null ? void 0 : c.length) > 0 && s.push({
|
|
556
|
+
children: t == null ? void 0 : t.children,
|
|
557
|
+
isFormColHidden: !0
|
|
558
|
+
}), V.value = t == null ? void 0 : t.id, z.value = s, E.value = s;
|
|
559
|
+
}, oe = (t) => {
|
|
560
|
+
f.value = !0;
|
|
561
|
+
let s = [];
|
|
562
|
+
Ce == null || Ce.forEach((c) => {
|
|
563
|
+
let n = l(I.value) + 1;
|
|
564
|
+
j.setTableIndex(n), s.push({
|
|
565
|
+
label: c == null ? void 0 : c.label,
|
|
566
|
+
name: c == null ? void 0 : c.label,
|
|
567
|
+
type: c.type,
|
|
568
|
+
value: "",
|
|
569
|
+
id: I.value,
|
|
570
|
+
contents: c == null ? void 0 : c.options
|
|
571
|
+
});
|
|
572
|
+
}), T.value = t == null ? void 0 : t.id, z.value = s, E.value = s;
|
|
573
|
+
}, S = (t) => {
|
|
574
|
+
let s = l(E.value);
|
|
575
|
+
s = s == null ? void 0 : s.map((c) => (c.children || (c.value = t == null ? void 0 : t[c.name]), c)), E.value = s;
|
|
576
|
+
}, Q = () => {
|
|
577
|
+
var s, c;
|
|
578
|
+
z.value = E.value;
|
|
579
|
+
let t = {};
|
|
580
|
+
if (V.value !== "")
|
|
581
|
+
t.id = V.value, (s = z.value) == null || s.forEach((n) => {
|
|
582
|
+
const _ = Ce == null ? void 0 : Ce.find((b) => (b == null ? void 0 : b.label) === (n == null ? void 0 : n.label));
|
|
583
|
+
_ ? t[_.key] = n.value : n != null && n.children && n.children.length > 0 && (t.children = n.children);
|
|
584
|
+
}), f.value = !1, a("fixChange", {
|
|
585
|
+
contents: l(t),
|
|
586
|
+
id: T.value,
|
|
587
|
+
type: "fix"
|
|
588
|
+
});
|
|
589
|
+
else {
|
|
590
|
+
let n = l(I.value) + 1;
|
|
591
|
+
j.setTableIndex(n), t.id = "idChild" + I.value, (c = z.value) == null || c.forEach((_) => {
|
|
592
|
+
const b = Ce == null ? void 0 : Ce.find((Y) => (Y == null ? void 0 : Y.label) === (_ == null ? void 0 : _.label));
|
|
593
|
+
b ? t[b.key] = _.value : _ != null && _.children && _.children.length > 0 && (t.children = _.children);
|
|
594
|
+
}), f.value = !1, a("fixChange", {
|
|
595
|
+
contents: l(t),
|
|
596
|
+
id: T.value,
|
|
597
|
+
type: "add"
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
V.value = "", z.value = [], E.value = [];
|
|
601
|
+
}, k = () => {
|
|
602
|
+
f.value = !1, V.value = "", T.value = "", z.value = [], E.value = [];
|
|
603
|
+
}, D = (t) => {
|
|
604
|
+
cl.confirm("是否确认要删除", "", {
|
|
605
|
+
confirmButtonText: "确认",
|
|
606
|
+
cancelButtonText: "取消",
|
|
607
|
+
type: "warning"
|
|
608
|
+
}).then(
|
|
609
|
+
() => {
|
|
610
|
+
a("deleteChange", t), Ze({
|
|
611
|
+
type: "success",
|
|
612
|
+
message: "删除成功"
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
).catch(() => {
|
|
616
|
+
});
|
|
617
|
+
}, W = (t) => {
|
|
618
|
+
a("deleteChange", t);
|
|
619
|
+
};
|
|
620
|
+
return (t, s) => {
|
|
621
|
+
const c = Te("svg-icon"), n = Te("el-button");
|
|
622
|
+
return q(), ce("div", ms, [
|
|
623
|
+
(q(!0), ce(Se, null, Oe(i == null ? void 0 : i.tableChildContents, (_, b) => (q(), ce("div", ys, [
|
|
624
|
+
A("div", bs, [
|
|
625
|
+
A("div", gs, me(_.label), 1),
|
|
626
|
+
A("div", ks, [
|
|
627
|
+
K(c, {
|
|
628
|
+
name: "ChildAdd",
|
|
629
|
+
class: "svg-icon-content",
|
|
630
|
+
style: { width: "24px", height: "24px" },
|
|
631
|
+
onClick: (Y) => oe(_)
|
|
632
|
+
}, null, 8, ["onClick"]),
|
|
633
|
+
K(c, {
|
|
634
|
+
name: "ChildFix",
|
|
635
|
+
class: "svg-icon-content",
|
|
636
|
+
style: { width: "24px", height: "24px" },
|
|
637
|
+
onClick: (Y) => G(_)
|
|
638
|
+
}, null, 8, ["onClick"]),
|
|
639
|
+
K(c, {
|
|
640
|
+
name: "ChildDelete",
|
|
641
|
+
class: "svg-icon-content",
|
|
642
|
+
style: { width: "24px", height: "24px" },
|
|
643
|
+
onClick: (Y) => D(_)
|
|
644
|
+
}, null, 8, ["onClick"])
|
|
645
|
+
])
|
|
646
|
+
]),
|
|
647
|
+
_ != null && _.children && _.children.length > 0 ? (q(), ce("div", _s, [
|
|
648
|
+
K(hs, {
|
|
649
|
+
tableChildContents: _ == null ? void 0 : _.children,
|
|
650
|
+
onDeleteChange: W,
|
|
651
|
+
onFixChange: H
|
|
652
|
+
}, null, 8, ["tableChildContents"])
|
|
653
|
+
])) : Ye("", !0)
|
|
654
|
+
]))), 256)),
|
|
655
|
+
K(Ge, {
|
|
656
|
+
visible: f.value,
|
|
657
|
+
onBeforeDestroy: k,
|
|
658
|
+
width: 840
|
|
659
|
+
}, {
|
|
660
|
+
default: se(() => [
|
|
661
|
+
A("div", Cs, [
|
|
662
|
+
(q(), Fe(ze, {
|
|
663
|
+
rowContents: z.value,
|
|
664
|
+
key: z.value,
|
|
665
|
+
isEnableWrap: !0,
|
|
666
|
+
onChange: S
|
|
667
|
+
}, null, 8, ["rowContents"]))
|
|
668
|
+
])
|
|
669
|
+
]),
|
|
670
|
+
footer: se(() => [
|
|
671
|
+
A("div", ws, [
|
|
672
|
+
K(n, {
|
|
673
|
+
onClick: k,
|
|
674
|
+
class: "cancel-button button",
|
|
675
|
+
id: "themeBorderButton"
|
|
676
|
+
}, {
|
|
677
|
+
default: se(() => s[0] || (s[0] = [
|
|
678
|
+
xe(me("取消"))
|
|
679
|
+
])),
|
|
680
|
+
_: 1,
|
|
681
|
+
__: [0]
|
|
682
|
+
}),
|
|
683
|
+
K(n, {
|
|
684
|
+
class: "ok-button button",
|
|
685
|
+
onClick: Q,
|
|
686
|
+
id: "themeButton"
|
|
687
|
+
}, {
|
|
688
|
+
default: se(() => s[1] || (s[1] = [
|
|
689
|
+
xe(me("确认"))
|
|
690
|
+
])),
|
|
691
|
+
_: 1,
|
|
692
|
+
__: [1]
|
|
693
|
+
})
|
|
694
|
+
])
|
|
695
|
+
]),
|
|
696
|
+
_: 1
|
|
697
|
+
}, 8, ["visible"])
|
|
698
|
+
]);
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
}, Ia = /* @__PURE__ */ Re(Ds, [["__scopeId", "data-v-ebd68fa1"]]), Is = { class: "table-operate-content" }, As = { class: "table-operate-item" }, xs = { class: "operate-title" }, Es = { class: "operate-content" }, $s = { class: "fix-content" }, Bs = { class: "fix-content-label" }, Ts = { class: "fix-button" }, Ss = { key: 0 }, Os = { class: "operate-title" }, Fs = { class: "operate-content" }, Ls = { class: "fix-content" }, Rs = { class: "fix-content-label" }, Ps = { class: "fix-button" }, Vs = { class: "operate-title" }, Ns = { class: "operate-content" }, js = { class: "fix-content" }, Us = { class: "fix-content-label" }, Ws = { class: "fix-button" }, zs = { class: "operate-title" }, Ms = { class: "operate-content" }, Ks = { class: "fix-content" }, Js = { class: "fix-content-label" }, Gs = { class: "fix-button" }, qs = { class: "operate-content" }, Hs = { style: { display: "flex", "justify-content": "space-between" } }, Qs = { class: "form-content" }, Xs = { class: "dialog-footer" }, Ys = { class: "form-content" }, Zs = { class: "dialog-footer" }, ei = { class: "form-content" }, li = { class: "dialog-footer" }, ai = { class: "form-content" }, si = { class: "dialog-footer" }, ii = {
|
|
702
|
+
__name: "operate",
|
|
703
|
+
props: {
|
|
704
|
+
itemContents: {
|
|
705
|
+
type: Array,
|
|
706
|
+
default: () => []
|
|
707
|
+
},
|
|
708
|
+
originalItemContents: {
|
|
709
|
+
type: Array,
|
|
710
|
+
default: () => []
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
emits: ["change"],
|
|
714
|
+
setup(d, { emit: y }) {
|
|
715
|
+
const i = d, a = y, f = J([]), T = J(!1), j = J(!1), I = J([]), V = J(!1), z = J([]), E = J(!1), H = J([]), G = J(""), oe = J(""), S = J([]), Q = J([]), k = J([]), D = J([]), W = J(!1), t = J([]), s = J([]), c = J(0), n = J([]), _ = J([]), b = J([]), Y = () => {
|
|
716
|
+
W.value = !0;
|
|
717
|
+
let e = [];
|
|
718
|
+
ul == null || ul.forEach((o) => {
|
|
719
|
+
c.value++, e.push({
|
|
720
|
+
label: o == null ? void 0 : o.label,
|
|
721
|
+
name: o == null ? void 0 : o.label,
|
|
722
|
+
type: o.type,
|
|
723
|
+
value: (o == null ? void 0 : o.key) === "background" ? "var(--ssComponent-primary-color)" : "",
|
|
724
|
+
id: c.value,
|
|
725
|
+
contents: o == null ? void 0 : o.options
|
|
726
|
+
});
|
|
727
|
+
}), t.value = e, s.value = e;
|
|
728
|
+
}, te = () => {
|
|
729
|
+
var o, g, p;
|
|
730
|
+
j.value = !0;
|
|
731
|
+
let e = [];
|
|
732
|
+
(p = (g = (o = Ne) == null ? void 0 : o.find(($) => ($ == null ? void 0 : $.key) === "Input")) == null ? void 0 : g.value) == null || p.forEach(($) => {
|
|
733
|
+
c.value++, e.push({
|
|
734
|
+
label: $ == null ? void 0 : $.label,
|
|
735
|
+
name: $ == null ? void 0 : $.label,
|
|
736
|
+
type: $.type,
|
|
737
|
+
value: ($ == null ? void 0 : $.label) === "类型" ? "Input" : "",
|
|
738
|
+
id: c.value,
|
|
739
|
+
contents: $ == null ? void 0 : $.options
|
|
740
|
+
});
|
|
741
|
+
}), n.value = e, _.value = e;
|
|
742
|
+
}, de = (e) => {
|
|
743
|
+
e || (n.value = _.value);
|
|
744
|
+
}, u = async (e) => {
|
|
745
|
+
var o, g, p, $, M, ve, R, re, be, ge, Ae, fe;
|
|
746
|
+
if ((e == null ? void 0 : e.类型) !== ((g = (o = _.value) == null ? void 0 : o.find((ae) => (ae == null ? void 0 : ae.label) === "类型")) == null ? void 0 : g.value)) {
|
|
747
|
+
let ae = [], we = await ((M = ($ = (p = Ne) == null ? void 0 : p.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : $.value) == null ? void 0 : M.value) ? await ((ge = (be = (re = Ne) == null ? void 0 : re.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : be.value) == null ? void 0 : ge.value) : (R = (ve = Ne) == null ? void 0 : ve.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : R.value;
|
|
748
|
+
if (we == null || we.forEach((he) => {
|
|
749
|
+
c.value++, ae.push({
|
|
750
|
+
label: he == null ? void 0 : he.label,
|
|
751
|
+
name: he == null ? void 0 : he.label,
|
|
752
|
+
type: he.type,
|
|
753
|
+
value: (e == null ? void 0 : e[he.label]) ?? "",
|
|
754
|
+
id: c.value,
|
|
755
|
+
contents: he == null ? void 0 : he.options
|
|
756
|
+
});
|
|
757
|
+
}), e != null && e.菜单选项 && ((Ae = e == null ? void 0 : e.菜单选项) == null ? void 0 : Ae.length) > 0) {
|
|
758
|
+
const he = await gl(e == null ? void 0 : e.菜单选项);
|
|
759
|
+
ae = ae == null ? void 0 : ae.map((Ee) => ((Ee == null ? void 0 : Ee.name) === "组信息选项" && (Ee.contents = he), Ee));
|
|
760
|
+
}
|
|
761
|
+
_.value = await ll(l(ae)), n.value = await ll(l(ae));
|
|
762
|
+
} else {
|
|
763
|
+
let ae = l(n.value);
|
|
764
|
+
if (ae = ae == null ? void 0 : ae.map((we) => (we.value = e == null ? void 0 : e[we.name], we)), e != null && e.菜单选项 && ((fe = e == null ? void 0 : e.菜单选项) == null ? void 0 : fe.length) > 0) {
|
|
765
|
+
const we = await gl(e == null ? void 0 : e.菜单选项);
|
|
766
|
+
ae = ae == null ? void 0 : ae.map((he) => ((he == null ? void 0 : he.name) === "组信息选项" && (he.contents = we), he));
|
|
767
|
+
}
|
|
768
|
+
ae = vl(ae), _.value = await ll(l(ae));
|
|
769
|
+
}
|
|
770
|
+
}, v = async (e) => {
|
|
771
|
+
await u(e), n.value = _.value;
|
|
772
|
+
}, F = async (e) => {
|
|
773
|
+
var p, $, M, ve, R, re, be, ge, Ae;
|
|
774
|
+
j.value = !0;
|
|
775
|
+
let o = [];
|
|
776
|
+
const g = await ((M = ($ = (p = Ne) == null ? void 0 : p.find((fe) => (fe == null ? void 0 : fe.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : $.value) == null ? void 0 : M.value) ? await ((ge = (be = (re = Ne) == null ? void 0 : re.find((fe) => (fe == null ? void 0 : fe.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : be.value) == null ? void 0 : ge.value) : (R = (ve = Ne) == null ? void 0 : ve.find((fe) => (fe == null ? void 0 : fe.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : R.value;
|
|
777
|
+
if (g == null || g.forEach((fe) => {
|
|
778
|
+
c.value++, o.push({
|
|
779
|
+
label: fe == null ? void 0 : fe.label,
|
|
780
|
+
name: fe == null ? void 0 : fe.label,
|
|
781
|
+
type: fe.type,
|
|
782
|
+
value: (fe == null ? void 0 : fe.label) === "类型" && e[fe.key] === "" ? "Input" : e[fe.key],
|
|
783
|
+
id: c.value,
|
|
784
|
+
contents: fe == null ? void 0 : fe.options
|
|
785
|
+
});
|
|
786
|
+
}), e != null && e.menuSelect && ((Ae = e == null ? void 0 : e.menuSelect) == null ? void 0 : Ae.length) > 0) {
|
|
787
|
+
const fe = await gl(e == null ? void 0 : e.menuSelect);
|
|
788
|
+
o = o == null ? void 0 : o.map((ae) => ((ae == null ? void 0 : ae.name) === "组信息选项" && (ae.contents = fe), ae));
|
|
789
|
+
}
|
|
790
|
+
G.value = e == null ? void 0 : e.id, n.value = await ll(vl(o)), _.value = await ll(vl(o));
|
|
791
|
+
}, C = (e) => {
|
|
792
|
+
cl.confirm("是否确认要删除", "", {
|
|
793
|
+
confirmButtonText: "确认",
|
|
794
|
+
cancelButtonText: "取消",
|
|
795
|
+
type: "warning"
|
|
796
|
+
}).then(
|
|
797
|
+
() => {
|
|
798
|
+
var o, g;
|
|
799
|
+
b.value = (o = l(b.value)) == null ? void 0 : o.filter((p) => (p == null ? void 0 : p.id) !== (e == null ? void 0 : e.id)), a("change", (g = l(i.originalItemContents)) == null ? void 0 : g.map((p) => ((p == null ? void 0 : p.key) === "tableToForm" && (p.contents = b.value), p))), Ze({
|
|
800
|
+
type: "success",
|
|
801
|
+
message: "删除成功"
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
).catch(() => {
|
|
805
|
+
});
|
|
806
|
+
}, h = () => {
|
|
807
|
+
j.value = !1, n.value = [], G.value = "";
|
|
808
|
+
}, P = async () => {
|
|
809
|
+
var p, $, M, ve, R, re, be, ge, Ae, fe;
|
|
810
|
+
n.value = _.value;
|
|
811
|
+
let e = {};
|
|
812
|
+
G.value !== "" ? e.id = G.value : (c.value++, e.id = "id" + c.value);
|
|
813
|
+
let o = await ((M = ($ = (p = Ne) == null ? void 0 : p.find((ae) => {
|
|
814
|
+
var we, he;
|
|
815
|
+
return (ae == null ? void 0 : ae.key) === (((he = (we = n.value) == null ? void 0 : we.find((Ee) => (Ee == null ? void 0 : Ee.label) === "类型")) == null ? void 0 : he.value) ?? "label");
|
|
816
|
+
})) == null ? void 0 : $.value) == null ? void 0 : M.value) ?? ((R = (ve = Ne) == null ? void 0 : ve.find((ae) => {
|
|
817
|
+
var we, he;
|
|
818
|
+
return (ae == null ? void 0 : ae.key) === (((he = (we = n.value) == null ? void 0 : we.find((Ee) => (Ee == null ? void 0 : Ee.label) === "类型")) == null ? void 0 : he.value) ?? "label");
|
|
819
|
+
})) == null ? void 0 : R.value);
|
|
820
|
+
if ((re = n.value) == null || re.forEach((ae) => {
|
|
821
|
+
const we = o == null ? void 0 : o.find((he) => (he == null ? void 0 : he.label) === (ae == null ? void 0 : ae.label));
|
|
822
|
+
we && (e[we.key] = ae.value);
|
|
823
|
+
}), e.name = e.label, (be = b.value) != null && be.find((ae) => ae.id === e.id))
|
|
824
|
+
b.value = (ge = b.value) == null ? void 0 : ge.map((ae) => (ae.id === e.id && (ae = e), ae));
|
|
825
|
+
else {
|
|
826
|
+
let ae = l(b.value);
|
|
827
|
+
b.value || (b.value = []), ae.push(e), b.value = ae;
|
|
828
|
+
}
|
|
829
|
+
b.value = b.value.map(({ id: ae, ...we }) => we), j.value = !1, G.value = "";
|
|
830
|
+
let g = l(i.originalItemContents);
|
|
831
|
+
(Ae = l(i.originalItemContents)) != null && Ae.find((ae) => (ae == null ? void 0 : ae.key) === "tableToForm") ? g = (fe = l(i.originalItemContents)) == null ? void 0 : fe.map((ae) => ((ae == null ? void 0 : ae.key) === "tableToForm" && (ae.contents = b.value), ae)) : g.push({
|
|
832
|
+
key: "tableToForm",
|
|
833
|
+
contents: b.value
|
|
834
|
+
}), a("change", g);
|
|
835
|
+
}, U = (e) => {
|
|
836
|
+
W.value = !0;
|
|
837
|
+
let o = [];
|
|
838
|
+
ul == null || ul.forEach((g) => {
|
|
839
|
+
c.value++, o.push({
|
|
840
|
+
label: g == null ? void 0 : g.label,
|
|
841
|
+
name: g == null ? void 0 : g.label,
|
|
842
|
+
type: g.type,
|
|
843
|
+
value: e[g.key],
|
|
844
|
+
id: c.value,
|
|
845
|
+
contents: g == null ? void 0 : g.options
|
|
846
|
+
});
|
|
847
|
+
}), G.value = e == null ? void 0 : e.id, t.value = o, s.value = o;
|
|
848
|
+
};
|
|
849
|
+
je(
|
|
850
|
+
() => E.value,
|
|
851
|
+
() => {
|
|
852
|
+
var o, g;
|
|
853
|
+
let e = l(i.originalItemContents);
|
|
854
|
+
(o = l(i.originalItemContents)) != null && o.find((p) => (p == null ? void 0 : p.key) === "page") ? e = (g = l(i.originalItemContents)) == null ? void 0 : g.map((p) => ((p == null ? void 0 : p.key) === "page" && (p.contents = E.value), p)) : e.push({
|
|
855
|
+
key: "page",
|
|
856
|
+
contents: E.value
|
|
857
|
+
}), a("change", e);
|
|
858
|
+
},
|
|
859
|
+
{ deep: !0 }
|
|
860
|
+
);
|
|
861
|
+
const w = (e) => {
|
|
862
|
+
cl.confirm("是否确认要删除", "", {
|
|
863
|
+
confirmButtonText: "确认",
|
|
864
|
+
cancelButtonText: "取消",
|
|
865
|
+
type: "warning"
|
|
866
|
+
}).then(
|
|
867
|
+
() => {
|
|
868
|
+
var o, g;
|
|
869
|
+
Q.value = (o = l(Q.value)) == null ? void 0 : o.filter((p) => (p == null ? void 0 : p.id) !== (e == null ? void 0 : e.id)), a("change", (g = l(i.originalItemContents)) == null ? void 0 : g.map((p) => ((p == null ? void 0 : p.key) === "extraButton" && (p.contents = Q.value), p))), Ze({
|
|
870
|
+
type: "success",
|
|
871
|
+
message: "删除成功"
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
).catch(() => {
|
|
875
|
+
});
|
|
876
|
+
}, B = () => {
|
|
877
|
+
var g, p, $, M, ve;
|
|
878
|
+
t.value = s.value;
|
|
879
|
+
let e = {};
|
|
880
|
+
if (G.value !== "" ? e.id = G.value : (c.value++, e.id = "id" + c.value), (g = t.value) == null || g.forEach((R) => {
|
|
881
|
+
const re = ul == null ? void 0 : ul.find((be) => (be == null ? void 0 : be.label) === (R == null ? void 0 : R.label));
|
|
882
|
+
re ? e[re.key] = R.value : R != null && R.children && R.children.length > 0 && (e.children = R.children);
|
|
883
|
+
}), (p = Q.value) != null && p.find((R) => R.id === e.id))
|
|
884
|
+
Q.value = ($ = Q.value) == null ? void 0 : $.map((R) => (R.id === e.id && (R = e), R));
|
|
885
|
+
else {
|
|
886
|
+
let R = l(Q.value) ?? [];
|
|
887
|
+
R.push(e), Q.value = R;
|
|
888
|
+
}
|
|
889
|
+
W.value = !1, G.value = "";
|
|
890
|
+
let o = l(i.originalItemContents);
|
|
891
|
+
(M = l(i.originalItemContents)) != null && M.find((R) => (R == null ? void 0 : R.key) === "extraButton") ? o = (ve = l(i.originalItemContents)) == null ? void 0 : ve.map((R) => ((R == null ? void 0 : R.key) === "extraButton" && (R.contents = Q.value), R)) : o.push({
|
|
892
|
+
key: "extraButton",
|
|
893
|
+
contents: Q.value
|
|
894
|
+
}), a("change", o);
|
|
895
|
+
}, m = (e) => {
|
|
896
|
+
let o = l(s.value);
|
|
897
|
+
o = o == null ? void 0 : o.map((g) => (g.children || (g.value = e == null ? void 0 : e[g.name]), g)), s.value = o;
|
|
898
|
+
}, r = () => {
|
|
899
|
+
W.value = !1, t.value = [], G.value = "";
|
|
900
|
+
}, X = (e) => {
|
|
901
|
+
V.value = !0;
|
|
902
|
+
let o = [];
|
|
903
|
+
rl == null || rl.forEach((g) => {
|
|
904
|
+
c.value++, o.push({
|
|
905
|
+
label: g == null ? void 0 : g.label,
|
|
906
|
+
name: g == null ? void 0 : g.label,
|
|
907
|
+
type: g.type,
|
|
908
|
+
value: e[g.key],
|
|
909
|
+
id: c.value,
|
|
910
|
+
contents: g == null ? void 0 : g.options
|
|
911
|
+
});
|
|
912
|
+
}), G.value = e == null ? void 0 : e.id, k.value = o, D.value = o;
|
|
913
|
+
}, ue = (e) => {
|
|
914
|
+
cl.confirm("是否确认要删除", "", {
|
|
915
|
+
confirmButtonText: "确认",
|
|
916
|
+
cancelButtonText: "取消",
|
|
917
|
+
type: "warning"
|
|
918
|
+
}).then(
|
|
919
|
+
() => {
|
|
920
|
+
var o, g;
|
|
921
|
+
S.value = (o = l(S.value)) == null ? void 0 : o.filter((p) => (p == null ? void 0 : p.id) !== (e == null ? void 0 : e.id)), a("change", (g = l(i.originalItemContents)) == null ? void 0 : g.map((p) => ((p == null ? void 0 : p.key) === "rowButton" && (p.contents = S.value), p))), Ze({
|
|
922
|
+
type: "success",
|
|
923
|
+
message: "删除成功"
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
).catch(() => {
|
|
927
|
+
});
|
|
928
|
+
}, L = () => {
|
|
929
|
+
T.value = !0;
|
|
930
|
+
let e = [];
|
|
931
|
+
Ce == null || Ce.forEach((o) => {
|
|
932
|
+
c.value++, e.push({
|
|
933
|
+
label: o == null ? void 0 : o.label,
|
|
934
|
+
name: o == null ? void 0 : o.label,
|
|
935
|
+
type: o.type,
|
|
936
|
+
value: "",
|
|
937
|
+
id: c.value,
|
|
938
|
+
contents: o == null ? void 0 : o.options
|
|
939
|
+
});
|
|
940
|
+
}), z.value = e, H.value = e;
|
|
941
|
+
}, O = () => {
|
|
942
|
+
V.value = !0;
|
|
943
|
+
let e = [];
|
|
944
|
+
rl == null || rl.forEach((o) => {
|
|
945
|
+
c.value++, e.push({
|
|
946
|
+
label: o == null ? void 0 : o.label,
|
|
947
|
+
name: o == null ? void 0 : o.label,
|
|
948
|
+
type: o.type,
|
|
949
|
+
value: "",
|
|
950
|
+
id: c.value,
|
|
951
|
+
contents: o == null ? void 0 : o.options
|
|
952
|
+
});
|
|
953
|
+
}), k.value = e, D.value = e;
|
|
954
|
+
}, x = (e) => {
|
|
955
|
+
let o = l(D.value);
|
|
956
|
+
o = o == null ? void 0 : o.map((g) => (g.children || (g.value = e == null ? void 0 : e[g.name]), g)), D.value = o;
|
|
957
|
+
}, ne = () => {
|
|
958
|
+
var g, p, $, M, ve;
|
|
959
|
+
k.value = D.value;
|
|
960
|
+
let e = {};
|
|
961
|
+
if (G.value !== "" ? e.id = G.value : (c.value++, e.id = "id" + c.value), (g = k.value) == null || g.forEach((R) => {
|
|
962
|
+
const re = rl == null ? void 0 : rl.find((be) => (be == null ? void 0 : be.label) === (R == null ? void 0 : R.label));
|
|
963
|
+
re ? e[re.key] = R.value : R != null && R.children && R.children.length > 0 && (e.children = R.children);
|
|
964
|
+
}), (p = S.value) != null && p.find((R) => R.id === e.id))
|
|
965
|
+
S.value = ($ = S.value) == null ? void 0 : $.map((R) => (R.id === e.id && (R = e), R));
|
|
966
|
+
else {
|
|
967
|
+
let R = l(S.value);
|
|
968
|
+
R.push(e), S.value = R;
|
|
969
|
+
}
|
|
970
|
+
V.value = !1, G.value = "";
|
|
971
|
+
let o = l(i.originalItemContents);
|
|
972
|
+
(M = l(i.originalItemContents)) != null && M.find((R) => (R == null ? void 0 : R.key) === "rowButton") ? o = (ve = l(i.originalItemContents)) == null ? void 0 : ve.map((R) => ((R == null ? void 0 : R.key) === "rowButton" && (R.contents = S.value), R)) : o.push({
|
|
973
|
+
key: "rowButton",
|
|
974
|
+
contents: S.value
|
|
975
|
+
}), a("change", o);
|
|
976
|
+
}, ee = () => {
|
|
977
|
+
V.value = !1, G.value = "", D.value = [], k.value = [];
|
|
978
|
+
}, Z = (e) => {
|
|
979
|
+
T.value = !0;
|
|
980
|
+
let o = [];
|
|
981
|
+
Ce == null || Ce.forEach((g) => {
|
|
982
|
+
c.value++, o.push({
|
|
983
|
+
label: g == null ? void 0 : g.label,
|
|
984
|
+
name: g == null ? void 0 : g.label,
|
|
985
|
+
type: g.type,
|
|
986
|
+
value: "",
|
|
987
|
+
id: c.value,
|
|
988
|
+
contents: g == null ? void 0 : g.options
|
|
989
|
+
});
|
|
990
|
+
}), z.value = o, oe.value = e == null ? void 0 : e.id, H.value = o;
|
|
991
|
+
}, pe = (e) => {
|
|
992
|
+
var o;
|
|
993
|
+
I.value = _a(l(I.value), e == null ? void 0 : e.id), a("change", (o = l(i.originalItemContents)) == null ? void 0 : o.map((g) => {
|
|
994
|
+
var p;
|
|
995
|
+
return (g == null ? void 0 : g.key) === "header" && (g.contents = (p = I.value) != null && p.some(($) => $ == null ? void 0 : $.children) ? [I.value] : I.value), g;
|
|
996
|
+
}));
|
|
997
|
+
}, le = (e) => {
|
|
998
|
+
var g, p, $;
|
|
999
|
+
e.type === "fix" ? e.id !== "" ? I.value = wa(I.value, e) : I.value = Ca(I.value, e == null ? void 0 : e.contents) : I.value = Da(I.value, e), I.value = (g = I.value) != null && g.some((M) => M == null ? void 0 : M.children) ? [I.value] : I.value, G.value = "";
|
|
1000
|
+
let o = l(i.originalItemContents);
|
|
1001
|
+
(p = l(i.originalItemContents)) != null && p.find((M) => (M == null ? void 0 : M.key) === "header") ? o = ($ = l(i.originalItemContents)) == null ? void 0 : $.map((M) => ((M == null ? void 0 : M.key) === "header" && (M.contents = I.value), M)) : o.push({
|
|
1002
|
+
key: "header",
|
|
1003
|
+
contents: I.value
|
|
1004
|
+
}), a("change", o);
|
|
1005
|
+
}, ke = (e) => {
|
|
1006
|
+
var g;
|
|
1007
|
+
T.value = !0;
|
|
1008
|
+
let o = [];
|
|
1009
|
+
Ce == null || Ce.forEach((p) => {
|
|
1010
|
+
c.value++, o.push({
|
|
1011
|
+
label: p == null ? void 0 : p.label,
|
|
1012
|
+
name: p == null ? void 0 : p.label,
|
|
1013
|
+
type: p.type,
|
|
1014
|
+
value: e[p.key],
|
|
1015
|
+
id: c.value,
|
|
1016
|
+
contents: p == null ? void 0 : p.options
|
|
1017
|
+
});
|
|
1018
|
+
}), e != null && e.children && ((g = e == null ? void 0 : e.children) == null ? void 0 : g.length) > 0 && o.push({
|
|
1019
|
+
children: e == null ? void 0 : e.children,
|
|
1020
|
+
isFormColHidden: !0
|
|
1021
|
+
}), G.value = e == null ? void 0 : e.id, oe.value = "", z.value = o, H.value = o;
|
|
1022
|
+
}, ye = (e) => {
|
|
1023
|
+
let o = l(H.value);
|
|
1024
|
+
o = o == null ? void 0 : o.map((g) => (g.children || (g.value = e == null ? void 0 : e[g.name]), g)), H.value = o;
|
|
1025
|
+
}, De = () => {
|
|
1026
|
+
T.value = !1, G.value = "", oe.value = "", H.value = [];
|
|
1027
|
+
}, Ie = () => {
|
|
1028
|
+
var g, p, $, M, ve, R;
|
|
1029
|
+
z.value = H.value;
|
|
1030
|
+
let e = {};
|
|
1031
|
+
if (G.value !== "" ? e.id = G.value : (c.value++, e.id = "id" + c.value), (g = z.value) == null || g.forEach((re) => {
|
|
1032
|
+
const be = Ce == null ? void 0 : Ce.find((ge) => (ge == null ? void 0 : ge.label) === (re == null ? void 0 : re.label));
|
|
1033
|
+
be ? e[be.key] = re.value : re != null && re.children && re.children.length > 0 && (e.children = re.children);
|
|
1034
|
+
}), (p = I.value) != null && p.find((re) => re.id === e.id))
|
|
1035
|
+
I.value = ($ = I.value) == null ? void 0 : $.map((re) => (re.id === e.id && (re = e), re));
|
|
1036
|
+
else {
|
|
1037
|
+
let re = l(I.value) ?? [];
|
|
1038
|
+
oe.value === "" ? re.push(e) : re = re == null ? void 0 : re.map((be) => (be.id === oe.value && (be.children || (be.children = []), be.children.push(e)), be)), I.value = re;
|
|
1039
|
+
}
|
|
1040
|
+
I.value = (M = I.value) != null && M.some((re) => re == null ? void 0 : re.children) ? [I.value] : I.value, T.value = !1, G.value = "", oe.value = "";
|
|
1041
|
+
let o = l(i.originalItemContents);
|
|
1042
|
+
(ve = l(i.originalItemContents)) != null && ve.find((re) => (re == null ? void 0 : re.key) === "header") ? o = (R = l(i.originalItemContents)) == null ? void 0 : R.map((re) => ((re == null ? void 0 : re.key) === "header" && (re.contents = I.value), re)) : o.push({
|
|
1043
|
+
key: "header",
|
|
1044
|
+
contents: I.value
|
|
1045
|
+
}), a("change", o);
|
|
1046
|
+
}, ie = (e) => {
|
|
1047
|
+
cl.confirm("是否确认要删除", "", {
|
|
1048
|
+
confirmButtonText: "确认",
|
|
1049
|
+
cancelButtonText: "取消",
|
|
1050
|
+
type: "warning"
|
|
1051
|
+
}).then(
|
|
1052
|
+
() => {
|
|
1053
|
+
var o, g;
|
|
1054
|
+
I.value = (o = l(I.value)) == null ? void 0 : o.filter((p) => (p == null ? void 0 : p.id) !== (e == null ? void 0 : e.id)), a("change", (g = l(i.originalItemContents)) == null ? void 0 : g.map((p) => {
|
|
1055
|
+
var $;
|
|
1056
|
+
return (p == null ? void 0 : p.key) === "header" && (p.contents = ($ = I.value) != null && $.some((M) => M == null ? void 0 : M.children) ? [I.value] : I.value), p;
|
|
1057
|
+
})), Ze({
|
|
1058
|
+
type: "success",
|
|
1059
|
+
message: "删除成功"
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
).catch(() => {
|
|
1063
|
+
});
|
|
1064
|
+
};
|
|
1065
|
+
return je(
|
|
1066
|
+
() => i.originalItemContents,
|
|
1067
|
+
() => {
|
|
1068
|
+
var e, o, g, p, $, M, ve, R, re, be, ge, Ae, fe, ae, we, he, Ee, Me, Ke;
|
|
1069
|
+
if (!(!i.originalItemContents || i.originalItemContents.length === 0))
|
|
1070
|
+
if (f.value = l(i.originalItemContents), I.value = (o = (e = f.value) == null ? void 0 : e.find((N) => (N == null ? void 0 : N.key) === "header")) == null ? void 0 : o.contents, S.value = (p = (g = f.value) == null ? void 0 : g.find((N) => (N == null ? void 0 : N.key) === "rowButton")) == null ? void 0 : p.contents, Q.value = (M = ($ = f.value) == null ? void 0 : $.find((N) => (N == null ? void 0 : N.key) === "extraButton")) == null ? void 0 : M.contents, E.value = (R = (ve = f.value) == null ? void 0 : ve.find((N) => (N == null ? void 0 : N.key) === "page")) != null && R.contents ? !!((be = (re = f.value) == null ? void 0 : re.find((N) => (N == null ? void 0 : N.key) === "page")) != null && be.contents) : !1, b.value = (Ae = (ge = f.value) == null ? void 0 : ge.find((N) => (N == null ? void 0 : N.key) === "tableToForm")) == null ? void 0 : Ae.contents, I.value = (fe = I.value) == null ? void 0 : fe.map((N, Le) => (Array.isArray(N) ? N = is(N) : N = {
|
|
1071
|
+
label: (N == null ? void 0 : N.label) ?? "",
|
|
1072
|
+
prop: (N == null ? void 0 : N.label) === "操作" ? "operate" : N == null ? void 0 : N.prop,
|
|
1073
|
+
width: N != null && N.width ? parseInt(N.width) : "",
|
|
1074
|
+
fixed: (N == null ? void 0 : N.fixed) ?? void 0,
|
|
1075
|
+
sortable: (N == null ? void 0 : N.sortable) ?? !1,
|
|
1076
|
+
align: (N == null ? void 0 : N.align) ?? "center",
|
|
1077
|
+
showOverflowTooltip: (N == null ? void 0 : N.showOverflowTooltip) ?? !0,
|
|
1078
|
+
isNotDrag: (N == null ? void 0 : N.isNotDrag) ?? !1,
|
|
1079
|
+
isEditCol: (N == null ? void 0 : N.isEditCol) ?? !1,
|
|
1080
|
+
isOperate: (N == null ? void 0 : N.isOperate) ?? !1,
|
|
1081
|
+
id: (N == null ? void 0 : N.id) ?? Le
|
|
1082
|
+
}, N)), I.value = (ae = I.value) != null && ae.every((N) => Array.isArray(N)) ? (we = I.value) == null ? void 0 : we[0] : I.value, S.value = (he = S.value) == null ? void 0 : he.map((N, Le) => N = {
|
|
1083
|
+
label: (N == null ? void 0 : N.label) ?? "",
|
|
1084
|
+
type: (N == null ? void 0 : N.type) ?? "",
|
|
1085
|
+
textColor: (N == null ? void 0 : N.textColor) ?? "#000000",
|
|
1086
|
+
id: (N == null ? void 0 : N.id) ?? Le
|
|
1087
|
+
}), Q.value = (Ee = Q.value) == null ? void 0 : Ee.map((N, Le) => N = {
|
|
1088
|
+
label: (N == null ? void 0 : N.label) ?? "",
|
|
1089
|
+
type: (N == null ? void 0 : N.type) ?? "",
|
|
1090
|
+
background: (N == null ? void 0 : N.background) ?? "var(--ssComponent-primary-color)",
|
|
1091
|
+
id: (N == null ? void 0 : N.id) ?? Le
|
|
1092
|
+
}), b.value)
|
|
1093
|
+
b.value = (Ke = b.value) == null ? void 0 : Ke.map((N) => {
|
|
1094
|
+
c.value++;
|
|
1095
|
+
let Le = N;
|
|
1096
|
+
return Le.id = c.value, Le;
|
|
1097
|
+
});
|
|
1098
|
+
else {
|
|
1099
|
+
let N = [];
|
|
1100
|
+
const Le = (Me = Ha(l(I.value))) == null ? void 0 : Me.filter((Be) => (Be == null ? void 0 : Be.prop) !== "operate");
|
|
1101
|
+
Le == null || Le.forEach((Be) => {
|
|
1102
|
+
c.value++, N.push({
|
|
1103
|
+
label: Be == null ? void 0 : Be.label,
|
|
1104
|
+
name: Be == null ? void 0 : Be.label,
|
|
1105
|
+
type: "Input",
|
|
1106
|
+
value: "",
|
|
1107
|
+
id: c.value,
|
|
1108
|
+
contents: Be == null ? void 0 : Be.options
|
|
1109
|
+
});
|
|
1110
|
+
}), b.value = N;
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1113
|
+
{ deep: !0, immediate: !0 }
|
|
1114
|
+
), (e, o) => {
|
|
1115
|
+
const g = Te("svg-icon"), p = Te("el-button");
|
|
1116
|
+
return q(), ce("div", Is, [
|
|
1117
|
+
A("div", As, [
|
|
1118
|
+
A("div", xs, [
|
|
1119
|
+
o[2] || (o[2] = A("div", null, me("表头"), -1)),
|
|
1120
|
+
K(p, {
|
|
1121
|
+
class: "icon-content",
|
|
1122
|
+
onClick: L,
|
|
1123
|
+
id: "themeButton"
|
|
1124
|
+
}, {
|
|
1125
|
+
icon: se(() => [
|
|
1126
|
+
K(g, {
|
|
1127
|
+
name: "Plus",
|
|
1128
|
+
class: "icon-size"
|
|
1129
|
+
})
|
|
1130
|
+
]),
|
|
1131
|
+
default: se(() => [
|
|
1132
|
+
o[1] || (o[1] = xe(" 新增 "))
|
|
1133
|
+
]),
|
|
1134
|
+
_: 1,
|
|
1135
|
+
__: [1]
|
|
1136
|
+
})
|
|
1137
|
+
]),
|
|
1138
|
+
A("div", Es, [
|
|
1139
|
+
(q(!0), ce(Se, null, Oe(I.value, ($, M) => (q(), ce("div", { key: M }, [
|
|
1140
|
+
A("div", $s, [
|
|
1141
|
+
A("div", Bs, me($ == null ? void 0 : $.label), 1),
|
|
1142
|
+
A("div", Ts, [
|
|
1143
|
+
K(g, {
|
|
1144
|
+
name: "ChildAdd",
|
|
1145
|
+
class: "svg-icon-content",
|
|
1146
|
+
style: { width: "24px", height: "24px" },
|
|
1147
|
+
onClick: (ve) => Z($)
|
|
1148
|
+
}, null, 8, ["onClick"]),
|
|
1149
|
+
K(g, {
|
|
1150
|
+
name: "ChildFix",
|
|
1151
|
+
class: "svg-icon-content",
|
|
1152
|
+
style: { width: "24px", height: "24px" },
|
|
1153
|
+
onClick: (ve) => ke($)
|
|
1154
|
+
}, null, 8, ["onClick"]),
|
|
1155
|
+
K(g, {
|
|
1156
|
+
name: "ChildDelete",
|
|
1157
|
+
class: "svg-icon-content",
|
|
1158
|
+
style: { width: "24px", height: "24px" },
|
|
1159
|
+
onClick: (ve) => ie($)
|
|
1160
|
+
}, null, 8, ["onClick"])
|
|
1161
|
+
])
|
|
1162
|
+
]),
|
|
1163
|
+
$ != null && $.children && $.children.length > 0 ? (q(), ce("div", Ss, [
|
|
1164
|
+
K(Ia, {
|
|
1165
|
+
tableChildContents: $ == null ? void 0 : $.children,
|
|
1166
|
+
onDeleteChange: pe,
|
|
1167
|
+
onFixChange: le
|
|
1168
|
+
}, null, 8, ["tableChildContents"])
|
|
1169
|
+
])) : Ye("", !0)
|
|
1170
|
+
]))), 128))
|
|
1171
|
+
]),
|
|
1172
|
+
A("div", Os, [
|
|
1173
|
+
o[4] || (o[4] = A("div", null, me("行内按钮"), -1)),
|
|
1174
|
+
K(p, {
|
|
1175
|
+
class: "icon-content",
|
|
1176
|
+
id: "themeButton",
|
|
1177
|
+
onClick: O
|
|
1178
|
+
}, {
|
|
1179
|
+
icon: se(() => [
|
|
1180
|
+
K(g, {
|
|
1181
|
+
name: "Plus",
|
|
1182
|
+
class: "icon-size"
|
|
1183
|
+
})
|
|
1184
|
+
]),
|
|
1185
|
+
default: se(() => [
|
|
1186
|
+
o[3] || (o[3] = xe(" 新增 "))
|
|
1187
|
+
]),
|
|
1188
|
+
_: 1,
|
|
1189
|
+
__: [3]
|
|
1190
|
+
})
|
|
1191
|
+
]),
|
|
1192
|
+
A("div", Fs, [
|
|
1193
|
+
(q(!0), ce(Se, null, Oe(S.value, ($, M) => (q(), ce("div", { key: M }, [
|
|
1194
|
+
A("div", Ls, [
|
|
1195
|
+
A("div", Rs, me($ == null ? void 0 : $.label), 1),
|
|
1196
|
+
A("div", Ps, [
|
|
1197
|
+
K(g, {
|
|
1198
|
+
name: "ChildFix",
|
|
1199
|
+
style: { width: "24px", height: "24px" },
|
|
1200
|
+
class: "svg-icon-content",
|
|
1201
|
+
onClick: (ve) => X($)
|
|
1202
|
+
}, null, 8, ["onClick"]),
|
|
1203
|
+
K(g, {
|
|
1204
|
+
name: "ChildDelete",
|
|
1205
|
+
class: "svg-icon-content",
|
|
1206
|
+
style: { width: "24px", height: "24px" },
|
|
1207
|
+
onClick: (ve) => ue($)
|
|
1208
|
+
}, null, 8, ["onClick"])
|
|
1209
|
+
])
|
|
1210
|
+
])
|
|
1211
|
+
]))), 128))
|
|
1212
|
+
]),
|
|
1213
|
+
A("div", Vs, [
|
|
1214
|
+
o[6] || (o[6] = A("div", null, me("表外按钮"), -1)),
|
|
1215
|
+
K(p, {
|
|
1216
|
+
class: "icon-content",
|
|
1217
|
+
id: "themeButton",
|
|
1218
|
+
onClick: Y
|
|
1219
|
+
}, {
|
|
1220
|
+
icon: se(() => [
|
|
1221
|
+
K(g, {
|
|
1222
|
+
name: "Plus",
|
|
1223
|
+
class: "icon-size"
|
|
1224
|
+
})
|
|
1225
|
+
]),
|
|
1226
|
+
default: se(() => [
|
|
1227
|
+
o[5] || (o[5] = xe(" 新增 "))
|
|
1228
|
+
]),
|
|
1229
|
+
_: 1,
|
|
1230
|
+
__: [5]
|
|
1231
|
+
})
|
|
1232
|
+
]),
|
|
1233
|
+
A("div", Ns, [
|
|
1234
|
+
(q(!0), ce(Se, null, Oe(Q.value, ($, M) => (q(), ce("div", { key: M }, [
|
|
1235
|
+
A("div", js, [
|
|
1236
|
+
A("div", Us, me($ == null ? void 0 : $.label), 1),
|
|
1237
|
+
A("div", Ws, [
|
|
1238
|
+
K(g, {
|
|
1239
|
+
name: "ChildFix",
|
|
1240
|
+
style: { width: "24px", height: "24px" },
|
|
1241
|
+
class: "svg-icon-content",
|
|
1242
|
+
onClick: (ve) => U($)
|
|
1243
|
+
}, null, 8, ["onClick"]),
|
|
1244
|
+
K(g, {
|
|
1245
|
+
name: "ChildDelete",
|
|
1246
|
+
class: "svg-icon-content",
|
|
1247
|
+
style: { width: "24px", height: "24px" },
|
|
1248
|
+
onClick: (ve) => w($)
|
|
1249
|
+
}, null, 8, ["onClick"])
|
|
1250
|
+
])
|
|
1251
|
+
])
|
|
1252
|
+
]))), 128))
|
|
1253
|
+
]),
|
|
1254
|
+
A("div", zs, [
|
|
1255
|
+
o[8] || (o[8] = A("div", null, me("表格弹框字段设置"), -1)),
|
|
1256
|
+
K(p, {
|
|
1257
|
+
class: "icon-content",
|
|
1258
|
+
id: "themeButton",
|
|
1259
|
+
onClick: te
|
|
1260
|
+
}, {
|
|
1261
|
+
icon: se(() => [
|
|
1262
|
+
K(g, {
|
|
1263
|
+
name: "Plus",
|
|
1264
|
+
class: "icon-size"
|
|
1265
|
+
})
|
|
1266
|
+
]),
|
|
1267
|
+
default: se(() => [
|
|
1268
|
+
o[7] || (o[7] = xe(" 新增 "))
|
|
1269
|
+
]),
|
|
1270
|
+
_: 1,
|
|
1271
|
+
__: [7]
|
|
1272
|
+
})
|
|
1273
|
+
]),
|
|
1274
|
+
A("div", Ms, [
|
|
1275
|
+
(q(!0), ce(Se, null, Oe(b.value, ($, M) => (q(), ce("div", { key: M }, [
|
|
1276
|
+
A("div", Ks, [
|
|
1277
|
+
A("div", Js, me($ == null ? void 0 : $.label), 1),
|
|
1278
|
+
A("div", Gs, [
|
|
1279
|
+
K(g, {
|
|
1280
|
+
name: "ChildFix",
|
|
1281
|
+
style: { width: "24px", height: "24px" },
|
|
1282
|
+
class: "svg-icon-content",
|
|
1283
|
+
onClick: (ve) => F($)
|
|
1284
|
+
}, null, 8, ["onClick"]),
|
|
1285
|
+
K(g, {
|
|
1286
|
+
name: "ChildDelete",
|
|
1287
|
+
class: "svg-icon-content",
|
|
1288
|
+
style: { width: "24px", height: "24px" },
|
|
1289
|
+
onClick: (ve) => C($)
|
|
1290
|
+
}, null, 8, ["onClick"])
|
|
1291
|
+
])
|
|
1292
|
+
])
|
|
1293
|
+
]))), 128))
|
|
1294
|
+
]),
|
|
1295
|
+
o[10] || (o[10] = A("div", { class: "operate-title" }, [
|
|
1296
|
+
A("div", null, me("分页"))
|
|
1297
|
+
], -1)),
|
|
1298
|
+
A("div", qs, [
|
|
1299
|
+
A("div", Hs, [
|
|
1300
|
+
o[9] || (o[9] = A("div", { class: "operate-center-content" }, me("是否分页"), -1)),
|
|
1301
|
+
K(ba, {
|
|
1302
|
+
modelValue: E.value,
|
|
1303
|
+
"onUpdate:modelValue": o[0] || (o[0] = ($) => E.value = $)
|
|
1304
|
+
}, null, 8, ["modelValue"])
|
|
1305
|
+
])
|
|
1306
|
+
])
|
|
1307
|
+
]),
|
|
1308
|
+
K(Ge, {
|
|
1309
|
+
visible: T.value,
|
|
1310
|
+
onBeforeDestroy: De,
|
|
1311
|
+
width: 840
|
|
1312
|
+
}, {
|
|
1313
|
+
default: se(() => [
|
|
1314
|
+
A("div", Qs, [
|
|
1315
|
+
(q(), Fe(ze, {
|
|
1316
|
+
rowContents: z.value,
|
|
1317
|
+
key: z.value,
|
|
1318
|
+
isEnableWrap: !0,
|
|
1319
|
+
onChange: ye
|
|
1320
|
+
}, null, 8, ["rowContents"]))
|
|
1321
|
+
])
|
|
1322
|
+
]),
|
|
1323
|
+
footer: se(() => [
|
|
1324
|
+
A("div", Xs, [
|
|
1325
|
+
K(p, {
|
|
1326
|
+
onClick: De,
|
|
1327
|
+
class: "cancel-button button",
|
|
1328
|
+
id: "themeBorderButton"
|
|
1329
|
+
}, {
|
|
1330
|
+
default: se(() => o[11] || (o[11] = [
|
|
1331
|
+
xe(me("取消"))
|
|
1332
|
+
])),
|
|
1333
|
+
_: 1,
|
|
1334
|
+
__: [11]
|
|
1335
|
+
}),
|
|
1336
|
+
K(p, {
|
|
1337
|
+
class: "ok-button button",
|
|
1338
|
+
onClick: Ie,
|
|
1339
|
+
id: "themeButton"
|
|
1340
|
+
}, {
|
|
1341
|
+
default: se(() => o[12] || (o[12] = [
|
|
1342
|
+
xe(me("确认"))
|
|
1343
|
+
])),
|
|
1344
|
+
_: 1,
|
|
1345
|
+
__: [12]
|
|
1346
|
+
})
|
|
1347
|
+
])
|
|
1348
|
+
]),
|
|
1349
|
+
_: 1
|
|
1350
|
+
}, 8, ["visible"]),
|
|
1351
|
+
K(Ge, {
|
|
1352
|
+
visible: V.value,
|
|
1353
|
+
onBeforeDestroy: ee,
|
|
1354
|
+
width: 840
|
|
1355
|
+
}, {
|
|
1356
|
+
default: se(() => [
|
|
1357
|
+
A("div", Ys, [
|
|
1358
|
+
(q(), Fe(ze, {
|
|
1359
|
+
rowContents: k.value,
|
|
1360
|
+
key: k.value,
|
|
1361
|
+
isEnableWrap: !0,
|
|
1362
|
+
onChange: x
|
|
1363
|
+
}, null, 8, ["rowContents"]))
|
|
1364
|
+
])
|
|
1365
|
+
]),
|
|
1366
|
+
footer: se(() => [
|
|
1367
|
+
A("div", Zs, [
|
|
1368
|
+
K(p, {
|
|
1369
|
+
onClick: ee,
|
|
1370
|
+
class: "cancel-button button",
|
|
1371
|
+
id: "themeBorderButton"
|
|
1372
|
+
}, {
|
|
1373
|
+
default: se(() => o[13] || (o[13] = [
|
|
1374
|
+
xe(me("取消"))
|
|
1375
|
+
])),
|
|
1376
|
+
_: 1,
|
|
1377
|
+
__: [13]
|
|
1378
|
+
}),
|
|
1379
|
+
K(p, {
|
|
1380
|
+
class: "ok-button button",
|
|
1381
|
+
onClick: ne,
|
|
1382
|
+
id: "themeButton"
|
|
1383
|
+
}, {
|
|
1384
|
+
default: se(() => o[14] || (o[14] = [
|
|
1385
|
+
xe(me("确认"))
|
|
1386
|
+
])),
|
|
1387
|
+
_: 1,
|
|
1388
|
+
__: [14]
|
|
1389
|
+
})
|
|
1390
|
+
])
|
|
1391
|
+
]),
|
|
1392
|
+
_: 1
|
|
1393
|
+
}, 8, ["visible"]),
|
|
1394
|
+
K(Ge, {
|
|
1395
|
+
visible: W.value,
|
|
1396
|
+
onBeforeDestroy: r,
|
|
1397
|
+
width: 840
|
|
1398
|
+
}, {
|
|
1399
|
+
default: se(() => [
|
|
1400
|
+
A("div", ei, [
|
|
1401
|
+
(q(), Fe(ze, {
|
|
1402
|
+
rowContents: t.value,
|
|
1403
|
+
key: t.value,
|
|
1404
|
+
isEnableWrap: !0,
|
|
1405
|
+
onChange: m
|
|
1406
|
+
}, null, 8, ["rowContents"]))
|
|
1407
|
+
])
|
|
1408
|
+
]),
|
|
1409
|
+
footer: se(() => [
|
|
1410
|
+
A("div", li, [
|
|
1411
|
+
K(p, {
|
|
1412
|
+
onClick: r,
|
|
1413
|
+
class: "cancel-button button",
|
|
1414
|
+
id: "themeBorderButton"
|
|
1415
|
+
}, {
|
|
1416
|
+
default: se(() => o[15] || (o[15] = [
|
|
1417
|
+
xe(me("取消"))
|
|
1418
|
+
])),
|
|
1419
|
+
_: 1,
|
|
1420
|
+
__: [15]
|
|
1421
|
+
}),
|
|
1422
|
+
K(p, {
|
|
1423
|
+
class: "ok-button button",
|
|
1424
|
+
onClick: B,
|
|
1425
|
+
id: "themeButton"
|
|
1426
|
+
}, {
|
|
1427
|
+
default: se(() => o[16] || (o[16] = [
|
|
1428
|
+
xe(me("确认"))
|
|
1429
|
+
])),
|
|
1430
|
+
_: 1,
|
|
1431
|
+
__: [16]
|
|
1432
|
+
})
|
|
1433
|
+
])
|
|
1434
|
+
]),
|
|
1435
|
+
_: 1
|
|
1436
|
+
}, 8, ["visible"]),
|
|
1437
|
+
K(Ge, {
|
|
1438
|
+
visible: j.value,
|
|
1439
|
+
onBeforeDestroy: h,
|
|
1440
|
+
width: 840
|
|
1441
|
+
}, {
|
|
1442
|
+
default: se(() => [
|
|
1443
|
+
A("div", ai, [
|
|
1444
|
+
(q(), Fe(ze, {
|
|
1445
|
+
rowContents: n.value,
|
|
1446
|
+
key: n.value,
|
|
1447
|
+
isEnableWrap: !0,
|
|
1448
|
+
onChange: u,
|
|
1449
|
+
onChangeVisible: de,
|
|
1450
|
+
onBlurChange: v
|
|
1451
|
+
}, null, 8, ["rowContents"]))
|
|
1452
|
+
])
|
|
1453
|
+
]),
|
|
1454
|
+
footer: se(() => [
|
|
1455
|
+
A("div", si, [
|
|
1456
|
+
K(p, {
|
|
1457
|
+
onClick: h,
|
|
1458
|
+
class: "cancel-button button",
|
|
1459
|
+
id: "themeBorderButton"
|
|
1460
|
+
}, {
|
|
1461
|
+
default: se(() => o[17] || (o[17] = [
|
|
1462
|
+
xe(me("取消"))
|
|
1463
|
+
])),
|
|
1464
|
+
_: 1,
|
|
1465
|
+
__: [17]
|
|
1466
|
+
}),
|
|
1467
|
+
K(p, {
|
|
1468
|
+
class: "ok-button button",
|
|
1469
|
+
onClick: P,
|
|
1470
|
+
id: "themeButton"
|
|
1471
|
+
}, {
|
|
1472
|
+
default: se(() => o[18] || (o[18] = [
|
|
1473
|
+
xe(me("确认"))
|
|
1474
|
+
])),
|
|
1475
|
+
_: 1,
|
|
1476
|
+
__: [18]
|
|
1477
|
+
})
|
|
1478
|
+
])
|
|
1479
|
+
]),
|
|
1480
|
+
_: 1
|
|
1481
|
+
}, 8, ["visible"])
|
|
1482
|
+
]);
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1485
|
+
}, ni = /* @__PURE__ */ Re(ii, [["__scopeId", "data-v-cd274ba4"]]), oi = { class: "form-operate-content" }, ui = { class: "form-operate-item" }, ri = { class: "operate-title" }, ci = { class: "operate-content" }, ti = { class: "fix-content" }, di = { class: "fix-button" }, pi = { class: "operate-title" }, fi = { class: "operate-content" }, vi = { class: "fix-content" }, hi = { class: "fix-button" }, mi = { style: { display: "flex", "justify-content": "space-between" } }, yi = { class: "form-content" }, bi = { class: "dialog-footer" }, gi = { class: "form-content" }, ki = {
|
|
1486
|
+
__name: "operate",
|
|
1487
|
+
props: {
|
|
1488
|
+
itemContents: {
|
|
1489
|
+
type: Array,
|
|
1490
|
+
default: () => []
|
|
1491
|
+
},
|
|
1492
|
+
originalItemContents: {
|
|
1493
|
+
type: Array,
|
|
1494
|
+
default: () => []
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
emits: ["change"],
|
|
1498
|
+
setup(d, { emit: y }) {
|
|
1499
|
+
const i = d, a = y, f = J(!1), T = J([]), j = J([]), I = J(!1), V = J([]), z = J([]), E = J(""), H = J(!1), G = J(0), oe = J([]), S = J([]), Q = async (u) => {
|
|
1500
|
+
var C, h, P, U, w, B;
|
|
1501
|
+
f.value = !0;
|
|
1502
|
+
let v = [];
|
|
1503
|
+
const F = await ((P = (h = (C = Ne) == null ? void 0 : C.find((m) => (m == null ? void 0 : m.key) === ((u == null ? void 0 : u.type) === "" ? "Input" : u == null ? void 0 : u.type))) == null ? void 0 : h.value) == null ? void 0 : P.value) ?? ((w = (U = Ne) == null ? void 0 : U.find((m) => (m == null ? void 0 : m.key) === ((u == null ? void 0 : u.type) === "" ? "Input" : u == null ? void 0 : u.type))) == null ? void 0 : w.value);
|
|
1504
|
+
if (F == null || F.forEach((m) => {
|
|
1505
|
+
G.value++, v.push({
|
|
1506
|
+
label: m == null ? void 0 : m.label,
|
|
1507
|
+
name: m == null ? void 0 : m.label,
|
|
1508
|
+
type: m.type,
|
|
1509
|
+
value: (m == null ? void 0 : m.label) === "类型" && u[m.key] === "" ? "Input" : u[m.key],
|
|
1510
|
+
id: G.value,
|
|
1511
|
+
contents: m == null ? void 0 : m.options
|
|
1512
|
+
});
|
|
1513
|
+
}), u != null && u.menuSelect && ((B = u == null ? void 0 : u.menuSelect) == null ? void 0 : B.length) > 0) {
|
|
1514
|
+
const m = await gl(u == null ? void 0 : u.menuSelect);
|
|
1515
|
+
v = v == null ? void 0 : v.map((r) => ((r == null ? void 0 : r.name) === "组信息选项" && (r.contents = m), r));
|
|
1516
|
+
}
|
|
1517
|
+
E.value = u == null ? void 0 : u.id, T.value = await ll(vl(v)), j.value = await ll(vl(v));
|
|
1518
|
+
}, k = (u) => {
|
|
1519
|
+
var F;
|
|
1520
|
+
I.value = !0;
|
|
1521
|
+
let v = [];
|
|
1522
|
+
(F = Hl) == null || F.forEach((C) => {
|
|
1523
|
+
G.value++, v.push({
|
|
1524
|
+
label: C == null ? void 0 : C.label,
|
|
1525
|
+
name: C == null ? void 0 : C.label,
|
|
1526
|
+
type: C.type,
|
|
1527
|
+
value: (C == null ? void 0 : C.label) === "类型" && u[C.key] === "" ? "normal" : u[C.key],
|
|
1528
|
+
id: G.value,
|
|
1529
|
+
contents: C == null ? void 0 : C.options
|
|
1530
|
+
});
|
|
1531
|
+
}), oe.value = v, S.value = v, E.value = u == null ? void 0 : u.id;
|
|
1532
|
+
};
|
|
1533
|
+
je(
|
|
1534
|
+
() => H.value,
|
|
1535
|
+
() => {
|
|
1536
|
+
var v, F;
|
|
1537
|
+
let u = l(i.originalItemContents);
|
|
1538
|
+
(v = l(i.originalItemContents)) != null && v.find((C) => (C == null ? void 0 : C.key) === "enableWrap") ? u = (F = l(i.originalItemContents)) == null ? void 0 : F.map((C) => ((C == null ? void 0 : C.key) === "enableWrap" && (C.contents = !H.value), C)) : u.push({
|
|
1539
|
+
key: "enableWrap",
|
|
1540
|
+
contents: !H.value
|
|
1541
|
+
}), a("change", u);
|
|
1542
|
+
},
|
|
1543
|
+
{ deep: !0 }
|
|
1544
|
+
);
|
|
1545
|
+
const D = () => {
|
|
1546
|
+
var F, C, h, P, U;
|
|
1547
|
+
oe.value = S.value;
|
|
1548
|
+
let u = {};
|
|
1549
|
+
if (E.value !== "" ? u.id = E.value : (G.value++, u.id = "id" + G.value), (F = oe.value) == null || F.forEach((w) => {
|
|
1550
|
+
var m;
|
|
1551
|
+
const B = (m = Hl) == null ? void 0 : m.find((r) => (r == null ? void 0 : r.label) === (w == null ? void 0 : w.label));
|
|
1552
|
+
B && (u[B.key] = w.value);
|
|
1553
|
+
}), (C = V.value) != null && C.find((w) => w.id === u.id))
|
|
1554
|
+
V.value = (h = V.value) == null ? void 0 : h.map((w) => (w.id === u.id && (w = u), w));
|
|
1555
|
+
else {
|
|
1556
|
+
let w = l(V.value);
|
|
1557
|
+
V.value || (V.value = []), w.push(u), V.value = w;
|
|
1558
|
+
}
|
|
1559
|
+
I.value = !1, E.value = "";
|
|
1560
|
+
let v = l(i.originalItemContents);
|
|
1561
|
+
(P = l(i.originalItemContents)) != null && P.find((w) => (w == null ? void 0 : w.key) === "formButton") ? v = (U = l(i.originalItemContents)) == null ? void 0 : U.map((w) => ((w == null ? void 0 : w.key) === "formButton" && (w.contents = V.value), w)) : v.push({
|
|
1562
|
+
key: "formButton",
|
|
1563
|
+
contents: V.value
|
|
1564
|
+
}), a("change", v);
|
|
1565
|
+
}, W = (u) => {
|
|
1566
|
+
cl.confirm("是否确认要删除", "", {
|
|
1567
|
+
confirmButtonText: "确认",
|
|
1568
|
+
cancelButtonText: "取消",
|
|
1569
|
+
type: "warning"
|
|
1570
|
+
}).then(
|
|
1571
|
+
() => {
|
|
1572
|
+
var v, F;
|
|
1573
|
+
z.value = (v = l(z.value)) == null ? void 0 : v.filter((C) => (C == null ? void 0 : C.id) !== (u == null ? void 0 : u.id)), a("change", (F = l(i.originalItemContents)) == null ? void 0 : F.map((C) => ((C == null ? void 0 : C.key) === "formContent" && (C.contents = z.value), C))), Ze({
|
|
1574
|
+
type: "success",
|
|
1575
|
+
message: "删除成功"
|
|
1576
|
+
});
|
|
1577
|
+
}
|
|
1578
|
+
).catch(() => {
|
|
1579
|
+
});
|
|
1580
|
+
}, t = (u) => {
|
|
1581
|
+
cl.confirm("是否确认要删除", "", {
|
|
1582
|
+
confirmButtonText: "确认",
|
|
1583
|
+
cancelButtonText: "取消",
|
|
1584
|
+
type: "warning"
|
|
1585
|
+
}).then(
|
|
1586
|
+
() => {
|
|
1587
|
+
var v, F;
|
|
1588
|
+
V.value = (v = l(V.value)) == null ? void 0 : v.filter((C) => (C == null ? void 0 : C.id) !== (u == null ? void 0 : u.id)), a("change", (F = l(i.originalItemContents)) == null ? void 0 : F.map((C) => ((C == null ? void 0 : C.key) === "formButton" && (C.contents = V.value), C))), Ze({
|
|
1589
|
+
type: "success",
|
|
1590
|
+
message: "删除成功"
|
|
1591
|
+
});
|
|
1592
|
+
}
|
|
1593
|
+
).catch(() => {
|
|
1594
|
+
});
|
|
1595
|
+
}, s = () => {
|
|
1596
|
+
var v;
|
|
1597
|
+
I.value = !0;
|
|
1598
|
+
let u = [];
|
|
1599
|
+
(v = Hl) == null || v.forEach((F) => {
|
|
1600
|
+
G.value++, u.push({
|
|
1601
|
+
label: F == null ? void 0 : F.label,
|
|
1602
|
+
name: F == null ? void 0 : F.label,
|
|
1603
|
+
type: F.type,
|
|
1604
|
+
value: (F == null ? void 0 : F.label) === "类型" ? "normal" : "",
|
|
1605
|
+
id: G.value,
|
|
1606
|
+
contents: F == null ? void 0 : F.options
|
|
1607
|
+
});
|
|
1608
|
+
}), oe.value = u, S.value = u;
|
|
1609
|
+
}, c = () => {
|
|
1610
|
+
var v, F, C;
|
|
1611
|
+
f.value = !0;
|
|
1612
|
+
let u = [];
|
|
1613
|
+
(C = (F = (v = Ne) == null ? void 0 : v.find((h) => (h == null ? void 0 : h.key) === "Input")) == null ? void 0 : F.value) == null || C.forEach((h) => {
|
|
1614
|
+
G.value++, u.push({
|
|
1615
|
+
label: h == null ? void 0 : h.label,
|
|
1616
|
+
name: h == null ? void 0 : h.label,
|
|
1617
|
+
type: h.type,
|
|
1618
|
+
value: (h == null ? void 0 : h.label) === "类型" ? "Input" : "",
|
|
1619
|
+
id: G.value,
|
|
1620
|
+
contents: h == null ? void 0 : h.options
|
|
1621
|
+
});
|
|
1622
|
+
}), T.value = u, j.value = u;
|
|
1623
|
+
}, n = (u) => {
|
|
1624
|
+
let v = l(S.value);
|
|
1625
|
+
v = v == null ? void 0 : v.map((F) => (F.value = u == null ? void 0 : u[F.name], F)), S.value = v;
|
|
1626
|
+
}, _ = async (u) => {
|
|
1627
|
+
var v, F, C, h, P, U, w, B, m, r, X, ue;
|
|
1628
|
+
if ((u == null ? void 0 : u.类型) !== ((F = (v = j.value) == null ? void 0 : v.find((L) => (L == null ? void 0 : L.label) === "类型")) == null ? void 0 : F.value)) {
|
|
1629
|
+
let L = [];
|
|
1630
|
+
const O = await ((P = (h = (C = Ne) == null ? void 0 : C.find((x) => (x == null ? void 0 : x.key) === ((u == null ? void 0 : u.类型) === "" ? "Input" : u == null ? void 0 : u.类型))) == null ? void 0 : h.value) == null ? void 0 : P.value) ? await ((r = (m = (B = Ne) == null ? void 0 : B.find((x) => (x == null ? void 0 : x.key) === ((u == null ? void 0 : u.类型) === "" ? "Input" : u == null ? void 0 : u.类型))) == null ? void 0 : m.value) == null ? void 0 : r.value) : (w = (U = Ne) == null ? void 0 : U.find((x) => (x == null ? void 0 : x.key) === ((u == null ? void 0 : u.类型) === "" ? "Input" : u == null ? void 0 : u.类型))) == null ? void 0 : w.value;
|
|
1631
|
+
if (O == null || O.forEach((x) => {
|
|
1632
|
+
G.value++, L.push({
|
|
1633
|
+
label: x == null ? void 0 : x.label,
|
|
1634
|
+
name: x == null ? void 0 : x.label,
|
|
1635
|
+
type: x.type,
|
|
1636
|
+
value: (u == null ? void 0 : u[x.label]) ?? "",
|
|
1637
|
+
id: G.value,
|
|
1638
|
+
contents: x == null ? void 0 : x.options
|
|
1639
|
+
});
|
|
1640
|
+
}), u != null && u.菜单选项 && ((X = u == null ? void 0 : u.菜单选项) == null ? void 0 : X.length) > 0) {
|
|
1641
|
+
const x = await gl(u == null ? void 0 : u.菜单选项);
|
|
1642
|
+
L = L == null ? void 0 : L.map((ne) => ((ne == null ? void 0 : ne.name) === "组信息选项" && (ne.contents = x), ne));
|
|
1643
|
+
}
|
|
1644
|
+
j.value = await ll(l(L)), T.value = await ll(l(L));
|
|
1645
|
+
} else {
|
|
1646
|
+
let L = l(j.value);
|
|
1647
|
+
if (L = L == null ? void 0 : L.map((O) => (O.value = u == null ? void 0 : u[O.name], O)), u != null && u.菜单选项 && ((ue = u == null ? void 0 : u.菜单选项) == null ? void 0 : ue.length) > 0) {
|
|
1648
|
+
const O = await gl(u == null ? void 0 : u.菜单选项);
|
|
1649
|
+
L = L == null ? void 0 : L.map((x) => ((x == null ? void 0 : x.name) === "组信息选项" && (x.contents = O), x));
|
|
1650
|
+
}
|
|
1651
|
+
L = vl(L), j.value = await ll(l(L));
|
|
1652
|
+
}
|
|
1653
|
+
}, b = (u) => {
|
|
1654
|
+
u || (T.value = j.value);
|
|
1655
|
+
}, Y = async (u) => {
|
|
1656
|
+
await _(u), T.value = j.value;
|
|
1657
|
+
}, te = async () => {
|
|
1658
|
+
var C, h, P, U, w, B, m, r, X, ue;
|
|
1659
|
+
T.value = j.value;
|
|
1660
|
+
let u = {};
|
|
1661
|
+
E.value !== "" ? u.id = E.value : (G.value++, u.id = "id" + G.value);
|
|
1662
|
+
let v = await ((P = (h = (C = Ne) == null ? void 0 : C.find((L) => {
|
|
1663
|
+
var O, x;
|
|
1664
|
+
return (L == null ? void 0 : L.key) === (((x = (O = T.value) == null ? void 0 : O.find((ne) => (ne == null ? void 0 : ne.label) === "类型")) == null ? void 0 : x.value) ?? "label");
|
|
1665
|
+
})) == null ? void 0 : h.value) == null ? void 0 : P.value) ?? ((w = (U = Ne) == null ? void 0 : U.find((L) => {
|
|
1666
|
+
var O, x;
|
|
1667
|
+
return (L == null ? void 0 : L.key) === (((x = (O = T.value) == null ? void 0 : O.find((ne) => (ne == null ? void 0 : ne.label) === "类型")) == null ? void 0 : x.value) ?? "label");
|
|
1668
|
+
})) == null ? void 0 : w.value);
|
|
1669
|
+
if ((B = T.value) == null || B.forEach((L) => {
|
|
1670
|
+
const O = v == null ? void 0 : v.find((x) => (x == null ? void 0 : x.label) === (L == null ? void 0 : L.label));
|
|
1671
|
+
O && (u[O.key] = L.value);
|
|
1672
|
+
}), u.width = 1, u.key = u == null ? void 0 : u.label, (m = z.value) != null && m.find((L) => L.id === u.id))
|
|
1673
|
+
z.value = (r = z.value) == null ? void 0 : r.map((L) => (L.id === u.id && (L = u), L));
|
|
1674
|
+
else {
|
|
1675
|
+
let L = l(z.value);
|
|
1676
|
+
L.push(u), z.value = L;
|
|
1677
|
+
}
|
|
1678
|
+
z.value = z.value.map(({ id: L, ...O }) => O), f.value = !1, E.value = "";
|
|
1679
|
+
let F = l(i.originalItemContents);
|
|
1680
|
+
(X = l(i.originalItemContents)) != null && X.find((L) => (L == null ? void 0 : L.key) === "formContent") ? F = (ue = l(i.originalItemContents)) == null ? void 0 : ue.map((L) => ((L == null ? void 0 : L.key) === "formContent" && (L.contents = z.value), L)) : F.push({
|
|
1681
|
+
key: "formContent",
|
|
1682
|
+
contents: z.value
|
|
1683
|
+
}), a("change", F);
|
|
1684
|
+
}, de = () => {
|
|
1685
|
+
f.value = !1, I.value = !1, E.value = "", j.value = [], S.value = [];
|
|
1686
|
+
};
|
|
1687
|
+
return je(
|
|
1688
|
+
() => i.originalItemContents,
|
|
1689
|
+
() => {
|
|
1690
|
+
var v, F, C, h, P, U;
|
|
1691
|
+
if (!i.originalItemContents || i.originalItemContents.length === 0) return;
|
|
1692
|
+
const u = l(i.originalItemContents);
|
|
1693
|
+
z.value = ((v = u == null ? void 0 : u.find((w) => (w == null ? void 0 : w.key) === "formContent")) == null ? void 0 : v.contents) ?? [], V.value = ((F = u == null ? void 0 : u.find((w) => (w == null ? void 0 : w.key) === "formButton")) == null ? void 0 : F.contents) ?? [], H.value = (C = u == null ? void 0 : u.find((w) => (w == null ? void 0 : w.key) === "enableWrap")) != null && C.contents ? !((h = u == null ? void 0 : u.find((w) => (w == null ? void 0 : w.key) === "enableWrap")) != null && h.contents) : !0, z.value = (P = l(z.value)) == null ? void 0 : P.map((w, B) => {
|
|
1694
|
+
var r;
|
|
1695
|
+
let m = w;
|
|
1696
|
+
return m.id = (w == null ? void 0 : w.id) ?? B, w != null && w.label || (w.label = (w == null ? void 0 : w.key) ?? (w == null ? void 0 : w.label) ?? ""), w != null && w.type || (w.type = (w == null ? void 0 : w.type) ?? ""), w.contents = ((r = w == null ? void 0 : w.options) == null ? void 0 : r.length) === 0 ? (w == null ? void 0 : w.contents) ?? "" : w == null ? void 0 : w.options, m;
|
|
1697
|
+
}), z.value = vl(z.value), V.value = (U = V.value) == null ? void 0 : U.map((w, B) => w = {
|
|
1698
|
+
label: (w == null ? void 0 : w.label) ?? "",
|
|
1699
|
+
type: (w == null ? void 0 : w.type) ?? "",
|
|
1700
|
+
background: (w == null ? void 0 : w.background) ?? "var(--ssComponent-primary-color)",
|
|
1701
|
+
id: B
|
|
1702
|
+
});
|
|
1703
|
+
},
|
|
1704
|
+
{ deep: !0, immediate: !0 }
|
|
1705
|
+
), (u, v) => {
|
|
1706
|
+
const F = Te("svg-icon"), C = Te("el-button");
|
|
1707
|
+
return q(), ce("div", oi, [
|
|
1708
|
+
A("div", ui, [
|
|
1709
|
+
A("div", ri, [
|
|
1710
|
+
v[2] || (v[2] = A("div", null, me("表单内容"), -1)),
|
|
1711
|
+
K(C, {
|
|
1712
|
+
class: "icon-content",
|
|
1713
|
+
id: "themeButton",
|
|
1714
|
+
onClick: c
|
|
1715
|
+
}, {
|
|
1716
|
+
icon: se(() => [
|
|
1717
|
+
K(F, {
|
|
1718
|
+
name: "Plus",
|
|
1719
|
+
class: "icon-size"
|
|
1720
|
+
})
|
|
1721
|
+
]),
|
|
1722
|
+
default: se(() => [
|
|
1723
|
+
v[1] || (v[1] = A("div", null, me("新增"), -1))
|
|
1724
|
+
]),
|
|
1725
|
+
_: 1,
|
|
1726
|
+
__: [1]
|
|
1727
|
+
})
|
|
1728
|
+
]),
|
|
1729
|
+
A("div", ci, [
|
|
1730
|
+
(q(!0), ce(Se, null, Oe(z.value, (h, P) => (q(), ce("div", { key: P }, [
|
|
1731
|
+
A("div", ti, [
|
|
1732
|
+
A("div", null, me(h.label), 1),
|
|
1733
|
+
A("div", di, [
|
|
1734
|
+
K(F, {
|
|
1735
|
+
name: "ChildFix",
|
|
1736
|
+
class: "svg-icon-content",
|
|
1737
|
+
style: { width: "24px", height: "24px" },
|
|
1738
|
+
onClick: (U) => Q(h)
|
|
1739
|
+
}, null, 8, ["onClick"]),
|
|
1740
|
+
K(F, {
|
|
1741
|
+
name: "ChildDelete",
|
|
1742
|
+
class: "svg-icon-content",
|
|
1743
|
+
style: { width: "24px", height: "24px" },
|
|
1744
|
+
onClick: (U) => W(h)
|
|
1745
|
+
}, null, 8, ["onClick"])
|
|
1746
|
+
])
|
|
1747
|
+
])
|
|
1748
|
+
]))), 128))
|
|
1749
|
+
]),
|
|
1750
|
+
A("div", pi, [
|
|
1751
|
+
v[4] || (v[4] = A("div", null, me("表单按钮"), -1)),
|
|
1752
|
+
K(C, {
|
|
1753
|
+
class: "icon-content",
|
|
1754
|
+
id: "themeButton",
|
|
1755
|
+
onClick: s
|
|
1756
|
+
}, {
|
|
1757
|
+
icon: se(() => [
|
|
1758
|
+
K(F, {
|
|
1759
|
+
name: "Plus",
|
|
1760
|
+
class: "icon-size"
|
|
1761
|
+
})
|
|
1762
|
+
]),
|
|
1763
|
+
default: se(() => [
|
|
1764
|
+
v[3] || (v[3] = xe(" 新增 "))
|
|
1765
|
+
]),
|
|
1766
|
+
_: 1,
|
|
1767
|
+
__: [3]
|
|
1768
|
+
})
|
|
1769
|
+
]),
|
|
1770
|
+
A("div", fi, [
|
|
1771
|
+
(q(!0), ce(Se, null, Oe(V.value, (h, P) => (q(), ce("div", { key: P }, [
|
|
1772
|
+
A("div", vi, [
|
|
1773
|
+
A("div", null, me(h.label), 1),
|
|
1774
|
+
A("div", hi, [
|
|
1775
|
+
K(F, {
|
|
1776
|
+
name: "ChildFix",
|
|
1777
|
+
class: "svg-icon-content",
|
|
1778
|
+
style: { width: "24px", height: "24px" },
|
|
1779
|
+
onClick: (U) => k(h)
|
|
1780
|
+
}, null, 8, ["onClick"]),
|
|
1781
|
+
K(F, {
|
|
1782
|
+
name: "ChildDelete",
|
|
1783
|
+
class: "svg-icon-content",
|
|
1784
|
+
style: { width: "24px", height: "24px" },
|
|
1785
|
+
onClick: (U) => t(h)
|
|
1786
|
+
}, null, 8, ["onClick"])
|
|
1787
|
+
])
|
|
1788
|
+
])
|
|
1789
|
+
]))), 128))
|
|
1790
|
+
]),
|
|
1791
|
+
v[6] || (v[6] = A("div", { class: "operate-title" }, [
|
|
1792
|
+
A("div", null, me("表单布局"))
|
|
1793
|
+
], -1)),
|
|
1794
|
+
A("div", mi, [
|
|
1795
|
+
v[5] || (v[5] = A("div", { class: "operate-center-content" }, me("是否自动撑宽"), -1)),
|
|
1796
|
+
K(ba, {
|
|
1797
|
+
modelValue: H.value,
|
|
1798
|
+
"onUpdate:modelValue": v[0] || (v[0] = (h) => H.value = h)
|
|
1799
|
+
}, null, 8, ["modelValue"])
|
|
1800
|
+
])
|
|
1801
|
+
]),
|
|
1802
|
+
K(Ge, {
|
|
1803
|
+
visible: f.value,
|
|
1804
|
+
onBeforeDestroy: de,
|
|
1805
|
+
width: 840
|
|
1806
|
+
}, {
|
|
1807
|
+
default: se(() => [
|
|
1808
|
+
A("div", yi, [
|
|
1809
|
+
(q(), Fe(ze, {
|
|
1810
|
+
rowContents: T.value,
|
|
1811
|
+
key: T.value,
|
|
1812
|
+
isEnableWrap: !0,
|
|
1813
|
+
onChange: _,
|
|
1814
|
+
onChangeVisible: b,
|
|
1815
|
+
onBlurChange: Y
|
|
1816
|
+
}, null, 8, ["rowContents"]))
|
|
1817
|
+
])
|
|
1818
|
+
]),
|
|
1819
|
+
footer: se(() => [
|
|
1820
|
+
A("div", bi, [
|
|
1821
|
+
K(C, {
|
|
1822
|
+
onClick: de,
|
|
1823
|
+
class: "cancel-button button",
|
|
1824
|
+
id: "themeBorderButton"
|
|
1825
|
+
}, {
|
|
1826
|
+
default: se(() => v[7] || (v[7] = [
|
|
1827
|
+
xe(me("取消"))
|
|
1828
|
+
])),
|
|
1829
|
+
_: 1,
|
|
1830
|
+
__: [7]
|
|
1831
|
+
}),
|
|
1832
|
+
K(C, {
|
|
1833
|
+
class: "ok-button button",
|
|
1834
|
+
onClick: te,
|
|
1835
|
+
id: "themeButton"
|
|
1836
|
+
}, {
|
|
1837
|
+
default: se(() => v[8] || (v[8] = [
|
|
1838
|
+
xe(me("确认"))
|
|
1839
|
+
])),
|
|
1840
|
+
_: 1,
|
|
1841
|
+
__: [8]
|
|
1842
|
+
})
|
|
1843
|
+
])
|
|
1844
|
+
]),
|
|
1845
|
+
_: 1
|
|
1846
|
+
}, 8, ["visible"]),
|
|
1847
|
+
K(Ge, {
|
|
1848
|
+
visible: I.value,
|
|
1849
|
+
onBeforeDestroy: de,
|
|
1850
|
+
width: 840
|
|
1851
|
+
}, {
|
|
1852
|
+
default: se(() => [
|
|
1853
|
+
A("div", gi, [
|
|
1854
|
+
(q(), Fe(ze, {
|
|
1855
|
+
rowContents: oe.value,
|
|
1856
|
+
key: oe.value,
|
|
1857
|
+
isEnableWrap: !0,
|
|
1858
|
+
onChange: n
|
|
1859
|
+
}, null, 8, ["rowContents"]))
|
|
1860
|
+
])
|
|
1861
|
+
]),
|
|
1862
|
+
footer: se(() => [
|
|
1863
|
+
A("div", { class: "dialog-footer" }, [
|
|
1864
|
+
A("div", {
|
|
1865
|
+
onClick: de,
|
|
1866
|
+
class: "cancel-button button"
|
|
1867
|
+
}, me("取消")),
|
|
1868
|
+
A("div", {
|
|
1869
|
+
class: "ok-button button",
|
|
1870
|
+
onClick: D
|
|
1871
|
+
}, me("确认"))
|
|
1872
|
+
])
|
|
1873
|
+
]),
|
|
1874
|
+
_: 1
|
|
1875
|
+
}, 8, ["visible"])
|
|
1876
|
+
]);
|
|
1877
|
+
};
|
|
1878
|
+
}
|
|
1879
|
+
}, va = /* @__PURE__ */ Re(ki, [["__scopeId", "data-v-0bdc7014"]]), _i = { class: "step-module content" }, Ci = { class: "module-data" }, wi = { class: "step-module layout" }, Di = { class: "form-content" }, Ii = /* @__PURE__ */ hl({
|
|
1880
|
+
__name: "operate",
|
|
1881
|
+
props: {
|
|
1882
|
+
itemContents: {
|
|
1883
|
+
type: Array,
|
|
1884
|
+
default: () => []
|
|
1885
|
+
},
|
|
1886
|
+
originalItemContents: {
|
|
1887
|
+
type: Array,
|
|
1888
|
+
default: () => []
|
|
1889
|
+
}
|
|
1890
|
+
},
|
|
1891
|
+
emits: ["change"],
|
|
1892
|
+
setup(d, { emit: y }) {
|
|
1893
|
+
const i = d, a = y, f = J([
|
|
1894
|
+
{
|
|
1895
|
+
label: "方向:",
|
|
1896
|
+
prop: "direction",
|
|
1897
|
+
type: "RADIO",
|
|
1898
|
+
contents: [
|
|
1899
|
+
{
|
|
1900
|
+
label: "水平",
|
|
1901
|
+
value: "horizontal"
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
label: "垂直",
|
|
1905
|
+
value: "vertical"
|
|
1906
|
+
}
|
|
1907
|
+
],
|
|
1908
|
+
value: "horizontal"
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
label: "是否居中:",
|
|
1912
|
+
prop: "alignCenter",
|
|
1913
|
+
type: "RADIO",
|
|
1914
|
+
contents: [
|
|
1915
|
+
{
|
|
1916
|
+
label: "是",
|
|
1917
|
+
value: !0
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
label: "否",
|
|
1921
|
+
value: !1
|
|
1922
|
+
}
|
|
1923
|
+
],
|
|
1924
|
+
value: !0
|
|
1925
|
+
},
|
|
1926
|
+
// {
|
|
1927
|
+
// label: '是否交互',
|
|
1928
|
+
// prop: 'allowTrigger',
|
|
1929
|
+
// type: 'RADIO',
|
|
1930
|
+
// contents: [
|
|
1931
|
+
// {
|
|
1932
|
+
// label: '是',
|
|
1933
|
+
// value: true,
|
|
1934
|
+
// }, {
|
|
1935
|
+
// label: '否',
|
|
1936
|
+
// value: false,
|
|
1937
|
+
// },
|
|
1938
|
+
// ],
|
|
1939
|
+
// value: 'horizontal'
|
|
1940
|
+
// },
|
|
1941
|
+
{
|
|
1942
|
+
label: "应用简洁风格",
|
|
1943
|
+
prop: "simple",
|
|
1944
|
+
type: "RADIO",
|
|
1945
|
+
contents: [
|
|
1946
|
+
{
|
|
1947
|
+
label: "是",
|
|
1948
|
+
value: !0
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
label: "否",
|
|
1952
|
+
value: !1
|
|
1953
|
+
}
|
|
1954
|
+
],
|
|
1955
|
+
value: !1
|
|
1956
|
+
}
|
|
1957
|
+
]), T = J([
|
|
1958
|
+
{
|
|
1959
|
+
label: "",
|
|
1960
|
+
prop: "index",
|
|
1961
|
+
type: "input",
|
|
1962
|
+
value: "",
|
|
1963
|
+
isFormColHidden: !0
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
label: "标题",
|
|
1967
|
+
prop: "title",
|
|
1968
|
+
type: "input",
|
|
1969
|
+
value: ""
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
label: "描述",
|
|
1973
|
+
prop: "description",
|
|
1974
|
+
type: "input",
|
|
1975
|
+
value: ""
|
|
1976
|
+
}
|
|
1977
|
+
]), j = J([
|
|
1978
|
+
{
|
|
1979
|
+
label: "取消",
|
|
1980
|
+
background: "#c0c4cc"
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
label: "确认",
|
|
1984
|
+
background: "#436aaf"
|
|
1985
|
+
}
|
|
1986
|
+
]), I = ea({
|
|
1987
|
+
visible: !1,
|
|
1988
|
+
width: "40%",
|
|
1989
|
+
title: "步骤条"
|
|
1990
|
+
}), V = J("create"), z = J({}), E = J([]), H = (k) => {
|
|
1991
|
+
var D;
|
|
1992
|
+
z.value = k, a("change", (D = S()) == null ? void 0 : D.compData);
|
|
1993
|
+
}, G = (k, D) => {
|
|
1994
|
+
var W, t;
|
|
1995
|
+
switch (k) {
|
|
1996
|
+
case "create":
|
|
1997
|
+
(W = T.value) == null || W.forEach((s) => {
|
|
1998
|
+
s.value = "";
|
|
1999
|
+
}), V.value = "create", I.visible = !0;
|
|
2000
|
+
break;
|
|
2001
|
+
case "update":
|
|
2002
|
+
(t = T.value) == null || t.forEach((s) => {
|
|
2003
|
+
s.value = D[s == null ? void 0 : s.prop];
|
|
2004
|
+
}), V.value = "update", I.visible = !0;
|
|
2005
|
+
break;
|
|
2006
|
+
case "delete":
|
|
2007
|
+
E.value.splice(D, 1), V.value = "delete";
|
|
2008
|
+
break;
|
|
2009
|
+
}
|
|
2010
|
+
}, oe = (k) => {
|
|
2011
|
+
var D, W, t;
|
|
2012
|
+
if ((k == null ? void 0 : k.buttonName) === "确认") {
|
|
2013
|
+
const s = l(k == null ? void 0 : k.content);
|
|
2014
|
+
switch (Object.keys(s).forEach((c) => {
|
|
2015
|
+
s[c] === "" && delete s[c];
|
|
2016
|
+
}), V.value) {
|
|
2017
|
+
case "create":
|
|
2018
|
+
E.value.push({
|
|
2019
|
+
...s,
|
|
2020
|
+
index: ((D = E.value) == null ? void 0 : D.length) + 1
|
|
2021
|
+
});
|
|
2022
|
+
break;
|
|
2023
|
+
case "update":
|
|
2024
|
+
E.value = (W = E.value) == null ? void 0 : W.map((c) => c.index === (s == null ? void 0 : s.index) ? {
|
|
2025
|
+
...c,
|
|
2026
|
+
title: s == null ? void 0 : s.title,
|
|
2027
|
+
description: s == null ? void 0 : s.description
|
|
2028
|
+
} : c);
|
|
2029
|
+
break;
|
|
2030
|
+
}
|
|
2031
|
+
a("change", (t = S()) == null ? void 0 : t.compData), I.visible = !1;
|
|
2032
|
+
} else
|
|
2033
|
+
I.visible = !1;
|
|
2034
|
+
}, S = () => ({
|
|
2035
|
+
comp: "Step",
|
|
2036
|
+
compData: [
|
|
2037
|
+
{
|
|
2038
|
+
key: "stepList",
|
|
2039
|
+
contents: E.value
|
|
2040
|
+
},
|
|
2041
|
+
{
|
|
2042
|
+
key: "stepConfig",
|
|
2043
|
+
contents: z.value
|
|
2044
|
+
}
|
|
2045
|
+
]
|
|
2046
|
+
}), Q = () => {
|
|
2047
|
+
I.visible = !1;
|
|
2048
|
+
};
|
|
2049
|
+
return je(() => i == null ? void 0 : i.itemContents, (k) => {
|
|
2050
|
+
var D, W;
|
|
2051
|
+
k && (z.value = ((D = k == null ? void 0 : k.find((t) => t.key === "stepConfig")) == null ? void 0 : D.contents) ?? {}, E.value = ((W = k == null ? void 0 : k.find((t) => t.key === "stepList")) == null ? void 0 : W.contents) ?? []);
|
|
2052
|
+
}, { immediate: !0 }), (k, D) => {
|
|
2053
|
+
const W = Te("svg-icon"), t = Te("el-button");
|
|
2054
|
+
return q(), ce(Se, null, [
|
|
2055
|
+
A("div", null, [
|
|
2056
|
+
A("div", _i, [
|
|
2057
|
+
D[2] || (D[2] = A("h4", { class: "module-title" }, "内容", -1)),
|
|
2058
|
+
K(t, {
|
|
2059
|
+
class: "module-icon",
|
|
2060
|
+
id: "themeButton",
|
|
2061
|
+
onClick: D[0] || (D[0] = (s) => G("create"))
|
|
2062
|
+
}, {
|
|
2063
|
+
icon: se(() => [
|
|
2064
|
+
K(W, {
|
|
2065
|
+
name: "Plus",
|
|
2066
|
+
class: "icon-size"
|
|
2067
|
+
})
|
|
2068
|
+
]),
|
|
2069
|
+
default: se(() => [
|
|
2070
|
+
D[1] || (D[1] = xe(" 新增 "))
|
|
2071
|
+
]),
|
|
2072
|
+
_: 1,
|
|
2073
|
+
__: [1]
|
|
2074
|
+
})
|
|
2075
|
+
]),
|
|
2076
|
+
A("div", Ci, [
|
|
2077
|
+
(q(!0), ce(Se, null, Oe(E.value, (s, c) => (q(), ce("div", {
|
|
2078
|
+
class: "module-data-item",
|
|
2079
|
+
key: c
|
|
2080
|
+
}, [
|
|
2081
|
+
A("span", null, me(s == null ? void 0 : s.title), 1),
|
|
2082
|
+
A("div", null, [
|
|
2083
|
+
K(t, {
|
|
2084
|
+
type: "primary",
|
|
2085
|
+
size: "small",
|
|
2086
|
+
onClick: (n) => G("update", { ...s, index: c + 1 })
|
|
2087
|
+
}, {
|
|
2088
|
+
default: se(() => D[3] || (D[3] = [
|
|
2089
|
+
xe("修改")
|
|
2090
|
+
])),
|
|
2091
|
+
_: 2,
|
|
2092
|
+
__: [3]
|
|
2093
|
+
}, 1032, ["onClick"]),
|
|
2094
|
+
K(t, {
|
|
2095
|
+
type: "danger",
|
|
2096
|
+
size: "small",
|
|
2097
|
+
onClick: (n) => G("delete", c)
|
|
2098
|
+
}, {
|
|
2099
|
+
default: se(() => D[4] || (D[4] = [
|
|
2100
|
+
xe("删除")
|
|
2101
|
+
])),
|
|
2102
|
+
_: 2,
|
|
2103
|
+
__: [4]
|
|
2104
|
+
}, 1032, ["onClick"])
|
|
2105
|
+
])
|
|
2106
|
+
]))), 128))
|
|
2107
|
+
]),
|
|
2108
|
+
A("div", wi, [
|
|
2109
|
+
D[5] || (D[5] = A("div", { class: "module-title" }, "布局", -1)),
|
|
2110
|
+
K(ze, {
|
|
2111
|
+
rowContents: f.value,
|
|
2112
|
+
onChange: H
|
|
2113
|
+
}, null, 8, ["rowContents"])
|
|
2114
|
+
])
|
|
2115
|
+
]),
|
|
2116
|
+
K(Ge, {
|
|
2117
|
+
visible: I.visible,
|
|
2118
|
+
title: I.title,
|
|
2119
|
+
onBeforeDestroy: Q,
|
|
2120
|
+
width: I.width
|
|
2121
|
+
}, {
|
|
2122
|
+
default: se(() => [
|
|
2123
|
+
A("div", Di, [
|
|
2124
|
+
(q(), Fe(ze, {
|
|
2125
|
+
rowContents: T.value,
|
|
2126
|
+
key: T.value,
|
|
2127
|
+
isEnableWrap: !1,
|
|
2128
|
+
isButtonRow: !1,
|
|
2129
|
+
isStartJustify: !1,
|
|
2130
|
+
buttonValue: j.value,
|
|
2131
|
+
onOnButtonClick: oe
|
|
2132
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2133
|
+
])
|
|
2134
|
+
]),
|
|
2135
|
+
_: 1
|
|
2136
|
+
}, 8, ["visible", "title", "width"])
|
|
2137
|
+
], 64);
|
|
2138
|
+
};
|
|
2139
|
+
}
|
|
2140
|
+
}), Ai = /* @__PURE__ */ Re(Ii, [["__scopeId", "data-v-7dbd17f2"]]), xi = { class: "step-module content" }, Ei = { class: "module-data" }, $i = { class: "step-module layout" }, Bi = { class: "form-content" }, Ti = /* @__PURE__ */ hl({
|
|
2141
|
+
__name: "operate",
|
|
2142
|
+
props: {
|
|
2143
|
+
itemContents: {
|
|
2144
|
+
type: Array,
|
|
2145
|
+
default: () => []
|
|
2146
|
+
},
|
|
2147
|
+
originalItemContents: {
|
|
2148
|
+
type: Array,
|
|
2149
|
+
default: () => []
|
|
2150
|
+
}
|
|
2151
|
+
},
|
|
2152
|
+
emits: ["change"],
|
|
2153
|
+
setup(d, { emit: y }) {
|
|
2154
|
+
const i = d, a = y, f = J("create"), T = J({}), j = J([]), I = J([
|
|
2155
|
+
{
|
|
2156
|
+
label: "方向:",
|
|
2157
|
+
prop: "placement",
|
|
2158
|
+
type: "radio",
|
|
2159
|
+
contents: [
|
|
2160
|
+
{
|
|
2161
|
+
label: "底部",
|
|
2162
|
+
value: "bottom"
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
label: "顶部",
|
|
2166
|
+
value: "top"
|
|
2167
|
+
}
|
|
2168
|
+
],
|
|
2169
|
+
value: "bottom"
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
label: "节点类型:",
|
|
2173
|
+
prop: "type",
|
|
2174
|
+
type: "select",
|
|
2175
|
+
contents: [
|
|
2176
|
+
{
|
|
2177
|
+
label: "primary",
|
|
2178
|
+
value: "primary"
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
label: "success",
|
|
2182
|
+
value: "success"
|
|
2183
|
+
},
|
|
2184
|
+
{
|
|
2185
|
+
label: "warning",
|
|
2186
|
+
value: "warning"
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
label: "danger",
|
|
2190
|
+
value: "danger"
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
label: "info",
|
|
2194
|
+
value: "info"
|
|
2195
|
+
}
|
|
2196
|
+
],
|
|
2197
|
+
value: "primary"
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
label: "颜色:",
|
|
2201
|
+
prop: "color",
|
|
2202
|
+
type: "color",
|
|
2203
|
+
value: ""
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
label: "尺寸:",
|
|
2207
|
+
prop: "size",
|
|
2208
|
+
type: "radio",
|
|
2209
|
+
contents: [
|
|
2210
|
+
{
|
|
2211
|
+
label: "normal",
|
|
2212
|
+
value: "normal"
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
label: "large",
|
|
2216
|
+
value: "large"
|
|
2217
|
+
}
|
|
2218
|
+
],
|
|
2219
|
+
value: "normal"
|
|
2220
|
+
},
|
|
2221
|
+
{
|
|
2222
|
+
label: "是否空心",
|
|
2223
|
+
prop: "isHollow",
|
|
2224
|
+
type: "RADIO",
|
|
2225
|
+
contents: [
|
|
2226
|
+
{
|
|
2227
|
+
label: "是",
|
|
2228
|
+
value: !0
|
|
2229
|
+
},
|
|
2230
|
+
{
|
|
2231
|
+
label: "否",
|
|
2232
|
+
value: !1
|
|
2233
|
+
}
|
|
2234
|
+
],
|
|
2235
|
+
value: !0
|
|
2236
|
+
},
|
|
2237
|
+
{
|
|
2238
|
+
label: "是否居中",
|
|
2239
|
+
prop: "isCenter",
|
|
2240
|
+
type: "RADIO",
|
|
2241
|
+
contents: [
|
|
2242
|
+
{
|
|
2243
|
+
label: "是",
|
|
2244
|
+
value: !0
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
label: "否",
|
|
2248
|
+
value: !1
|
|
2249
|
+
}
|
|
2250
|
+
],
|
|
2251
|
+
value: !0
|
|
2252
|
+
}
|
|
2253
|
+
]), V = J([
|
|
2254
|
+
{
|
|
2255
|
+
label: "",
|
|
2256
|
+
prop: "index",
|
|
2257
|
+
type: "input",
|
|
2258
|
+
value: "",
|
|
2259
|
+
isFormColHidden: !0
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
label: "内容",
|
|
2263
|
+
prop: "content",
|
|
2264
|
+
type: "input",
|
|
2265
|
+
value: ""
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
label: "时间戳",
|
|
2269
|
+
prop: "timestamp",
|
|
2270
|
+
type: "datetime",
|
|
2271
|
+
value: ""
|
|
2272
|
+
}
|
|
2273
|
+
]), z = J([
|
|
2274
|
+
{
|
|
2275
|
+
label: "取消",
|
|
2276
|
+
background: "#c0c4cc"
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
label: "确认",
|
|
2280
|
+
background: "#436aaf"
|
|
2281
|
+
}
|
|
2282
|
+
]), E = ea({
|
|
2283
|
+
visible: !1,
|
|
2284
|
+
width: "40%",
|
|
2285
|
+
title: "时间线"
|
|
2286
|
+
}), H = (k) => {
|
|
2287
|
+
var D;
|
|
2288
|
+
T.value = k, console.log(1212, k), a("change", (D = S()) == null ? void 0 : D.compData);
|
|
2289
|
+
}, G = (k, D) => {
|
|
2290
|
+
var W, t;
|
|
2291
|
+
switch (k) {
|
|
2292
|
+
case "create":
|
|
2293
|
+
(W = V.value) == null || W.forEach((s) => {
|
|
2294
|
+
s.value = "";
|
|
2295
|
+
}), f.value = "create", E.visible = !0;
|
|
2296
|
+
break;
|
|
2297
|
+
case "update":
|
|
2298
|
+
(t = V.value) == null || t.forEach((s) => {
|
|
2299
|
+
s.value = D[s == null ? void 0 : s.prop];
|
|
2300
|
+
}), f.value = "update", E.visible = !0;
|
|
2301
|
+
break;
|
|
2302
|
+
case "delete":
|
|
2303
|
+
j.value.splice(D, 1), f.value = "delete";
|
|
2304
|
+
break;
|
|
2305
|
+
}
|
|
2306
|
+
}, oe = (k) => {
|
|
2307
|
+
var D, W, t, s;
|
|
2308
|
+
if ((k == null ? void 0 : k.buttonName) === "确认") {
|
|
2309
|
+
const c = l(k == null ? void 0 : k.content);
|
|
2310
|
+
switch (Object.keys(c).forEach((n) => {
|
|
2311
|
+
c[n] === "" && delete c[n];
|
|
2312
|
+
}), f.value) {
|
|
2313
|
+
case "create":
|
|
2314
|
+
console.log(1335, j.value, c), (W = j.value) == null || W.push({
|
|
2315
|
+
...c,
|
|
2316
|
+
index: ((D = j.value) == null ? void 0 : D.length) + 1
|
|
2317
|
+
});
|
|
2318
|
+
break;
|
|
2319
|
+
case "update":
|
|
2320
|
+
j.value = (t = j.value) == null ? void 0 : t.map((n) => n.index === (c == null ? void 0 : c.index) ? {
|
|
2321
|
+
...n,
|
|
2322
|
+
content: c == null ? void 0 : c.content,
|
|
2323
|
+
timestamp: c == null ? void 0 : c.timestamp
|
|
2324
|
+
} : n);
|
|
2325
|
+
break;
|
|
2326
|
+
}
|
|
2327
|
+
a("change", (s = S()) == null ? void 0 : s.compData), E.visible = !1;
|
|
2328
|
+
} else
|
|
2329
|
+
E.visible = !1;
|
|
2330
|
+
}, S = () => ({
|
|
2331
|
+
comp: "TimeLine",
|
|
2332
|
+
compData: [
|
|
2333
|
+
{
|
|
2334
|
+
key: "timeLineList",
|
|
2335
|
+
contents: j.value
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
key: "timeLineConfig",
|
|
2339
|
+
contents: T.value
|
|
2340
|
+
}
|
|
2341
|
+
]
|
|
2342
|
+
}), Q = () => {
|
|
2343
|
+
E.visible = !1;
|
|
2344
|
+
};
|
|
2345
|
+
return je(() => i == null ? void 0 : i.itemContents, (k) => {
|
|
2346
|
+
var D, W;
|
|
2347
|
+
k && (T.value = ((D = k == null ? void 0 : k.find((t) => t.key === "timeLineConfig")) == null ? void 0 : D.contents) ?? {}, j.value = ((W = k == null ? void 0 : k.find((t) => t.key === "timeLineList")) == null ? void 0 : W.contents) ?? []);
|
|
2348
|
+
}, { immediate: !0 }), (k, D) => {
|
|
2349
|
+
const W = Te("svg-icon"), t = Te("el-button");
|
|
2350
|
+
return q(), ce(Se, null, [
|
|
2351
|
+
A("div", null, [
|
|
2352
|
+
A("div", xi, [
|
|
2353
|
+
D[2] || (D[2] = A("h4", { class: "module-title" }, "内容", -1)),
|
|
2354
|
+
K(t, {
|
|
2355
|
+
class: "module-icon",
|
|
2356
|
+
id: "themeButton",
|
|
2357
|
+
onClick: D[0] || (D[0] = (s) => G("create"))
|
|
2358
|
+
}, {
|
|
2359
|
+
icon: se(() => [
|
|
2360
|
+
K(W, {
|
|
2361
|
+
name: "Plus",
|
|
2362
|
+
class: "icon-size"
|
|
2363
|
+
})
|
|
2364
|
+
]),
|
|
2365
|
+
default: se(() => [
|
|
2366
|
+
D[1] || (D[1] = xe(" 新增 "))
|
|
2367
|
+
]),
|
|
2368
|
+
_: 1,
|
|
2369
|
+
__: [1]
|
|
2370
|
+
})
|
|
2371
|
+
]),
|
|
2372
|
+
A("div", Ei, [
|
|
2373
|
+
(q(!0), ce(Se, null, Oe(j.value, (s, c) => (q(), ce("div", {
|
|
2374
|
+
class: "module-data-item",
|
|
2375
|
+
key: c
|
|
2376
|
+
}, [
|
|
2377
|
+
A("span", null, me(s == null ? void 0 : s.content), 1),
|
|
2378
|
+
A("div", null, [
|
|
2379
|
+
K(t, {
|
|
2380
|
+
type: "primary",
|
|
2381
|
+
size: "small",
|
|
2382
|
+
onClick: (n) => G("update", { ...s, index: c + 1 })
|
|
2383
|
+
}, {
|
|
2384
|
+
default: se(() => D[3] || (D[3] = [
|
|
2385
|
+
xe("修改")
|
|
2386
|
+
])),
|
|
2387
|
+
_: 2,
|
|
2388
|
+
__: [3]
|
|
2389
|
+
}, 1032, ["onClick"]),
|
|
2390
|
+
K(t, {
|
|
2391
|
+
type: "danger",
|
|
2392
|
+
size: "small",
|
|
2393
|
+
onClick: (n) => G("delete", c)
|
|
2394
|
+
}, {
|
|
2395
|
+
default: se(() => D[4] || (D[4] = [
|
|
2396
|
+
xe("删除")
|
|
2397
|
+
])),
|
|
2398
|
+
_: 2,
|
|
2399
|
+
__: [4]
|
|
2400
|
+
}, 1032, ["onClick"])
|
|
2401
|
+
])
|
|
2402
|
+
]))), 128))
|
|
2403
|
+
]),
|
|
2404
|
+
A("div", $i, [
|
|
2405
|
+
D[5] || (D[5] = A("div", { class: "module-title" }, "布局", -1)),
|
|
2406
|
+
K(ze, {
|
|
2407
|
+
rowContents: I.value,
|
|
2408
|
+
onChange: H
|
|
2409
|
+
}, null, 8, ["rowContents"])
|
|
2410
|
+
])
|
|
2411
|
+
]),
|
|
2412
|
+
K(Ge, {
|
|
2413
|
+
visible: E.visible,
|
|
2414
|
+
title: E.title,
|
|
2415
|
+
onBeforeDestroy: Q,
|
|
2416
|
+
width: E.width
|
|
2417
|
+
}, {
|
|
2418
|
+
default: se(() => [
|
|
2419
|
+
A("div", Bi, [
|
|
2420
|
+
(q(), Fe(ze, {
|
|
2421
|
+
rowContents: V.value,
|
|
2422
|
+
key: V.value,
|
|
2423
|
+
isEnableWrap: !1,
|
|
2424
|
+
isButtonRow: !1,
|
|
2425
|
+
isStartJustify: !1,
|
|
2426
|
+
buttonValue: z.value,
|
|
2427
|
+
onOnButtonClick: oe
|
|
2428
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2429
|
+
])
|
|
2430
|
+
]),
|
|
2431
|
+
_: 1
|
|
2432
|
+
}, 8, ["visible", "title", "width"])
|
|
2433
|
+
], 64);
|
|
2434
|
+
};
|
|
2435
|
+
}
|
|
2436
|
+
}), Si = /* @__PURE__ */ Re(Ti, [["__scopeId", "data-v-f6b5d4fc"]]), Oi = {};
|
|
2437
|
+
function Fi(d, y) {
|
|
2438
|
+
return q(), ce("div");
|
|
2439
|
+
}
|
|
2440
|
+
const Li = /* @__PURE__ */ Re(Oi, [["render", Fi]]), Ri = { class: "extra-content" }, Pi = { key: 0 }, Vi = { key: 1 }, Ni = { class: "dialog-footer" }, ji = {
|
|
2441
|
+
__name: "index",
|
|
2442
|
+
props: {
|
|
2443
|
+
itemData: {
|
|
2444
|
+
type: Array,
|
|
2445
|
+
default: () => []
|
|
2446
|
+
},
|
|
2447
|
+
childItemData: {
|
|
2448
|
+
type: Array,
|
|
2449
|
+
default: () => []
|
|
2450
|
+
},
|
|
2451
|
+
index: Number,
|
|
2452
|
+
changedContent: {
|
|
2453
|
+
type: Object,
|
|
2454
|
+
default: () => {
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
},
|
|
2458
|
+
emits: ["change"],
|
|
2459
|
+
setup(d, { emit: y }) {
|
|
2460
|
+
const i = d, a = J(0), f = J(), T = J(), j = y, I = J(!1), V = J({}), z = J({}), E = J();
|
|
2461
|
+
je(
|
|
2462
|
+
() => [i.itemData],
|
|
2463
|
+
() => {
|
|
2464
|
+
var s;
|
|
2465
|
+
const t = l(i.itemData);
|
|
2466
|
+
f.value = (s = l(t)) == null ? void 0 : s.map((c) => {
|
|
2467
|
+
var n;
|
|
2468
|
+
if (c.key === "extra") {
|
|
2469
|
+
let _ = [];
|
|
2470
|
+
(n = c.value) == null || n.forEach((b) => {
|
|
2471
|
+
var Y;
|
|
2472
|
+
_.push((Y = Object.values(b)) == null ? void 0 : Y[0]);
|
|
2473
|
+
}), c.value = _;
|
|
2474
|
+
}
|
|
2475
|
+
return c;
|
|
2476
|
+
});
|
|
2477
|
+
},
|
|
2478
|
+
{ deep: !0, immediate: !0 }
|
|
2479
|
+
);
|
|
2480
|
+
const H = (t, s, c, n) => {
|
|
2481
|
+
var b;
|
|
2482
|
+
let _ = {};
|
|
2483
|
+
((b = t == null ? void 0 : t[0]) == null ? void 0 : b.contents) === "详情" && (I.value = !0, _[s] = t, T.value = t == null ? void 0 : t.filter((Y) => (Y == null ? void 0 : Y.key) !== "tableContentName"), V.value = _, z.value = c, E.value = n.id);
|
|
2484
|
+
}, G = (t) => {
|
|
2485
|
+
var Y, te, de, u;
|
|
2486
|
+
const s = (te = (Y = Object.values(l(V.value))) == null ? void 0 : Y[0]) == null ? void 0 : te.filter((v) => (v == null ? void 0 : v.key) === "tableContentName"), c = (u = (de = Object.values(l(V.value))) == null ? void 0 : de[0]) == null ? void 0 : u.filter((v) => (v == null ? void 0 : v.key) !== "tableContentName"), n = c == null ? void 0 : c.map((v, F) => {
|
|
2487
|
+
var C;
|
|
2488
|
+
return F === t.index && (v == null ? void 0 : v.comp) === "Table" && (v.compData = (C = v.compData) == null ? void 0 : C.map((h) => {
|
|
2489
|
+
var P, U;
|
|
2490
|
+
return (h == null ? void 0 : h.key) === "tableContents" && (h.contents = (U = (P = t.content) == null ? void 0 : P.map((w) => {
|
|
2491
|
+
let B = {};
|
|
2492
|
+
for (let m in w)
|
|
2493
|
+
m !== "id" && (B[m] = w[m]);
|
|
2494
|
+
return B;
|
|
2495
|
+
})) == null ? void 0 : U.map((w) => Object.values(w))), h;
|
|
2496
|
+
})), v;
|
|
2497
|
+
});
|
|
2498
|
+
n.unshift(s == null ? void 0 : s[0]);
|
|
2499
|
+
let _ = l(V.value), b = {};
|
|
2500
|
+
for (let v in _)
|
|
2501
|
+
b[v] = n;
|
|
2502
|
+
V.value = b;
|
|
2503
|
+
}, oe = () => {
|
|
2504
|
+
I.value = !1, V.value = {}, z.value = {}, E.value = void 0, a.value++;
|
|
2505
|
+
}, S = (t) => {
|
|
2506
|
+
var Y, te, de, u;
|
|
2507
|
+
const s = (te = (Y = Object.values(l(V.value))) == null ? void 0 : Y[0]) == null ? void 0 : te.filter((v) => (v == null ? void 0 : v.key) === "tableContentName"), c = (u = (de = Object.values(l(V.value))) == null ? void 0 : de[0]) == null ? void 0 : u.filter((v) => (v == null ? void 0 : v.key) !== "tableContentName"), n = c == null ? void 0 : c.map((v, F) => (F === t.index && (v.compData = t.contents), v));
|
|
2508
|
+
n.unshift(s == null ? void 0 : s[0]);
|
|
2509
|
+
let _ = l(V.value), b = {};
|
|
2510
|
+
for (let v in _)
|
|
2511
|
+
b[v] = n;
|
|
2512
|
+
V.value = b;
|
|
2513
|
+
}, Q = () => {
|
|
2514
|
+
var s, c;
|
|
2515
|
+
let t = {};
|
|
2516
|
+
for (let n in z.value)
|
|
2517
|
+
n === ((s = Object.keys(V.value)) == null ? void 0 : s[0]) ? t[n] = (c = Object.values(V.value)) == null ? void 0 : c[0] : t[n] = z.value[n];
|
|
2518
|
+
j("change", {
|
|
2519
|
+
buttonName: "编辑",
|
|
2520
|
+
index: E.value,
|
|
2521
|
+
singleContent: t
|
|
2522
|
+
}, "methodData"), I.value = !1, V.value = {}, z.value = {}, E.value = void 0;
|
|
2523
|
+
}, k = () => {
|
|
2524
|
+
I.value = !1, V.value = {}, z.value = {}, E.value = void 0;
|
|
2525
|
+
}, D = (t) => {
|
|
2526
|
+
j("change", t, "methodData");
|
|
2527
|
+
}, W = (t) => aa(t);
|
|
2528
|
+
return (t, s) => {
|
|
2529
|
+
const c = Te("el-button");
|
|
2530
|
+
return q(), ce("div", Ri, [
|
|
2531
|
+
(q(!0), ce(Se, null, Oe(f.value, (n, _) => (q(), ce("div", { key: a.value }, [
|
|
2532
|
+
(n == null ? void 0 : n.key) === "extra" ? (q(), ce("div", Pi)) : (q(), ce("div", Vi, [
|
|
2533
|
+
(q(), Fe(Nl(W(n.comp)), {
|
|
2534
|
+
itemData: n == null ? void 0 : n.compData,
|
|
2535
|
+
childItemData: n == null ? void 0 : n.itemChildData,
|
|
2536
|
+
key: _,
|
|
2537
|
+
index: (n == null ? void 0 : n.id) ?? _,
|
|
2538
|
+
onContentClick: H,
|
|
2539
|
+
onChange: D
|
|
2540
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2541
|
+
]))
|
|
2542
|
+
]))), 128)),
|
|
2543
|
+
K(Ge, {
|
|
2544
|
+
visible: I.value,
|
|
2545
|
+
onBeforeDestroy: k
|
|
2546
|
+
}, {
|
|
2547
|
+
default: se(() => [
|
|
2548
|
+
(q(!0), ce(Se, null, Oe(T.value, (n, _) => (q(), ce("div", {
|
|
2549
|
+
key: _,
|
|
2550
|
+
class: "extra-dialog"
|
|
2551
|
+
}, [
|
|
2552
|
+
(q(), Fe(Nl(W(n.comp)), {
|
|
2553
|
+
itemData: n == null ? void 0 : n.compData,
|
|
2554
|
+
onChange: G,
|
|
2555
|
+
childItemData: n == null ? void 0 : n.itemChildData,
|
|
2556
|
+
key: _,
|
|
2557
|
+
onContentChange: S,
|
|
2558
|
+
index: (n == null ? void 0 : n.id) ?? _,
|
|
2559
|
+
class: "extra-component"
|
|
2560
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2561
|
+
]))), 128))
|
|
2562
|
+
]),
|
|
2563
|
+
footer: se(() => [
|
|
2564
|
+
A("div", Ni, [
|
|
2565
|
+
K(c, {
|
|
2566
|
+
class: "cancel-button footer-button",
|
|
2567
|
+
onClick: oe,
|
|
2568
|
+
id: "themeBorderButton"
|
|
2569
|
+
}, {
|
|
2570
|
+
default: se(() => s[0] || (s[0] = [
|
|
2571
|
+
xe(me("取消"))
|
|
2572
|
+
])),
|
|
2573
|
+
_: 1,
|
|
2574
|
+
__: [0]
|
|
2575
|
+
}),
|
|
2576
|
+
K(c, {
|
|
2577
|
+
class: "confirm-button footer-button",
|
|
2578
|
+
onClick: Q,
|
|
2579
|
+
id: "themeButton"
|
|
2580
|
+
}, {
|
|
2581
|
+
default: se(() => s[1] || (s[1] = [
|
|
2582
|
+
xe(me("确认"))
|
|
2583
|
+
])),
|
|
2584
|
+
_: 1,
|
|
2585
|
+
__: [1]
|
|
2586
|
+
})
|
|
2587
|
+
])
|
|
2588
|
+
]),
|
|
2589
|
+
_: 1
|
|
2590
|
+
}, 8, ["visible"])
|
|
2591
|
+
]);
|
|
2592
|
+
};
|
|
2593
|
+
}
|
|
2594
|
+
}, Ui = /* @__PURE__ */ Re(ji, [["__scopeId", "data-v-2d9c5ab2"]]), Ql = (d) => {
|
|
2595
|
+
var I, V, z, E, H, G, oe, S, Q, k, D, W, t, s, c, n, _, b, Y, te, de, u, v, F;
|
|
2596
|
+
const y = Yl(d) ? (I = sl(l(d))) == null ? void 0 : I[0] : "[]", i = Yl(d) ? "[" + ((V = sl(l(d))) == null ? void 0 : V[2]) + "]" : "[" + d + "]";
|
|
2597
|
+
let a = [], f = [], T = "";
|
|
2598
|
+
const j = (E = (z = i == null ? void 0 : i.trim()) == null ? void 0 : z.slice(1, (i == null ? void 0 : i.trim().length) - 1)) == null ? void 0 : E.replaceAll("'", '"');
|
|
2599
|
+
if (al(j) ? a = JSON.parse(j) : al((oe = (G = (H = j == null ? void 0 : j.split("}")) == null ? void 0 : H[0]) == null ? void 0 : G.replace(":", "")) == null ? void 0 : oe.replaceAll("\\", "\\\\")) && (a = JSON.parse((k = (Q = (S = j == null ? void 0 : j.split("}")) == null ? void 0 : S[0]) == null ? void 0 : Q.replace(":", "")) == null ? void 0 : k.replaceAll("\\", "\\\\"))), a = a != null && a.every((C) => Array.isArray(C) && C.every((h) => Array.isArray(h))) ? a == null ? void 0 : a[0] : a, !(y != null && y.includes("(")))
|
|
2600
|
+
!y.includes("{") && al(y == null ? void 0 : y.replaceAll("'", '"')) ? f = JSON.parse(y == null ? void 0 : y.replaceAll("'", '"')) : al((W = (D = y == null ? void 0 : y.split("{")) == null ? void 0 : D[1]) == null ? void 0 : W.replaceAll("'", '"')) && (f = JSON.parse((s = (t = y == null ? void 0 : y.split("{")) == null ? void 0 : t[1]) == null ? void 0 : s.replaceAll("'", '"')));
|
|
2601
|
+
else {
|
|
2602
|
+
let C = [];
|
|
2603
|
+
if (((n = (c = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : c.split(",")) == null ? void 0 : n.length) > 1)
|
|
2604
|
+
(b = (_ = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : _.split(",")) == null || b.forEach((h) => {
|
|
2605
|
+
var P, U, w, B, m, r, X, ue, L, O, x, ne, ee, Z, pe, le, ke, ye, De, Ie, ie, e, o, g;
|
|
2606
|
+
if (!(h != null && h.includes("(")))
|
|
2607
|
+
C.push(h == null ? void 0 : h.replaceAll("'", ""));
|
|
2608
|
+
else if (h != null && h.includes("[")) {
|
|
2609
|
+
let p;
|
|
2610
|
+
p = (Z = (ee = (ne = (x = h == null ? void 0 : h.split("[")) == null ? void 0 : x[((O = h == null ? void 0 : h.split("[")) == null ? void 0 : O.length) - 1]) == null ? void 0 : ne.split("]")) == null ? void 0 : ee[0]) == null ? void 0 : Z.replaceAll("'", ""), p = (p == null ? void 0 : p[0]) === ":" ? '""' + p : p, h != null && h.includes("#") && (p = ((le = (pe = h == null ? void 0 : h.split("#")) == null ? void 0 : pe[0]) == null ? void 0 : le.replaceAll("'", "")) + "#" + p), p.includes(":") ? p = p + "[" + ((Ie = (De = (ye = h == null ? void 0 : h.split("(")) == null ? void 0 : ye[((ke = h == null ? void 0 : h.split("(")) == null ? void 0 : ke.length) - 1]) == null ? void 0 : De.split(")")) == null ? void 0 : Ie[0].replaceAll(":", "/").replaceAll("'", "")) + "]" : p = p + "[" + ((g = (o = (e = h == null ? void 0 : h.split("(")) == null ? void 0 : e[((ie = h == null ? void 0 : h.split("(")) == null ? void 0 : ie.length) - 1]) == null ? void 0 : o.split(")")) == null ? void 0 : g[0].replaceAll(":", "/").replaceAll("'", "")) + "]()", C.push(p == null ? void 0 : p.replaceAll('"', "'"));
|
|
2611
|
+
} else {
|
|
2612
|
+
let p = (m = (B = (w = (U = h == null ? void 0 : h.split(":")) == null ? void 0 : U[((P = h == null ? void 0 : h.split(":")) == null ? void 0 : P.length) - 1]) == null ? void 0 : w.split(")")) == null ? void 0 : B[0]) == null ? void 0 : m.replaceAll("'", "");
|
|
2613
|
+
p = p + "[" + ((L = (ue = (X = h == null ? void 0 : h.split("(")) == null ? void 0 : X[((r = h == null ? void 0 : h.split("(")) == null ? void 0 : r.length) - 1]) == null ? void 0 : ue.split(")")) == null ? void 0 : L[0].replaceAll(":", "/").replaceAll("'", "")) + "]", C.push(p);
|
|
2614
|
+
}
|
|
2615
|
+
}), f = C;
|
|
2616
|
+
else {
|
|
2617
|
+
const h = ((u = (de = (te = (Y = y == null ? void 0 : y.slice(1, y == null ? void 0 : y.length)) == null ? void 0 : Y.split("(")) == null ? void 0 : te[1]) == null ? void 0 : de.split(")")) == null ? void 0 : u[0]).replaceAll("{", "").replaceAll("}", "").replaceAll(":", "/").replaceAll("'", "");
|
|
2618
|
+
T = T + h + "[" + ((F = (v = y == null ? void 0 : y.slice(1, (y == null ? void 0 : y.length) - 1)) == null ? void 0 : v.split("[")) == null ? void 0 : F[1]);
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
return {
|
|
2622
|
+
tableColumns: f,
|
|
2623
|
+
tableContents: a != null && a.every((C) => Array.isArray(C)) ? a : [a],
|
|
2624
|
+
tablePath: T
|
|
2625
|
+
};
|
|
2626
|
+
};
|
|
2627
|
+
let _e = "$R";
|
|
2628
|
+
const Wi = (d) => /^'[^']+':\{.*\}$/.exec(l(d)), zi = (d) => /^'([^']+)':.*$/.exec(l(d)), sl = (d) => {
|
|
2629
|
+
let y = d;
|
|
2630
|
+
const i = [];
|
|
2631
|
+
let a = "";
|
|
2632
|
+
for (const f of y)
|
|
2633
|
+
f.includes("{") || a.includes("{") || f.includes("[") || a.includes("[") || f.includes("【") || a.includes("【") || f.includes("(") || a.includes("(") || f.includes("(") || a.includes("(") || f.includes("/*") || a.includes("/*") || f.includes("&") || a.includes("&") ? (a += f.trim(), l(a).split("{").length - 1 === l(a).split("}").length - 1 && l(a).split("【").length - 1 === l(a).split("】").length - 1 && l(a).split("[").length - 1 === l(a).split("]").length - 1 && l(a).split("(").length - 1 === l(a).split(")").length - 1 && l(a).split("(").length - 1 === l(a).split(")").length - 1 && l(a).split("/*").length - 1 === l(a).split("*/").length - 1 && a[a.length - 1] !== "," && a[a.length - 1] !== "&" && (i.push(a.replace(/\/\*[\s\S]*?\*\//g, "")), a = "")) : i.push(f.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
2634
|
+
return i;
|
|
2635
|
+
}, Xl = (d, y) => {
|
|
2636
|
+
let i = d;
|
|
2637
|
+
const a = [];
|
|
2638
|
+
let f = "", T = 0;
|
|
2639
|
+
for (const j of i)
|
|
2640
|
+
T++, j.includes("{") || f.includes("{") || j.includes("[") || f.includes("[") || j.includes("【") || f.includes("【") || j.includes("(") || f.includes("(") || j.includes("(") || f.includes("(") || j.includes("/*") || f.includes("/*") ? (f += j.trim(), l(f).split("{").length - 1 === l(f).split("}").length - 1 && l(f).split("【").length - 1 === l(f).split("】").length - 1 && l(f).split("[").length - 1 === l(f).split("]").length - 1 && l(f).split("(").length - 1 === l(f).split(")").length - 1 && l(f).split("(").length - 1 === l(f).split(")").length - 1 && l(f).split("/*").length - 1 === l(f).split("*/").length - 1 && f[f.length - 1] !== "," && f[f.length - 1] === y ? (a.push(f.replace(/\/\*[\s\S]*?\*\//g, "")), f = "") : T === (d == null ? void 0 : d.length) && a.push(f.replace(/\/\*[\s\S]*?\*\//g, ""))) : (f += j.trim(), (f == null ? void 0 : f[(f == null ? void 0 : f.length) - 1]) === y && (a.push(f.replace(/\/\*[\s\S]*?\*\//g, "")), f = ""));
|
|
2641
|
+
return a;
|
|
2642
|
+
}, Yl = (d) => /^\[.*?\]:\[.*?\]$/.exec(l(d)), Mi = (d) => {
|
|
2643
|
+
var y, i, a, f, T, j, I, V, z, E, H, G, oe, S, Q, k, D, W, t, s, c, n, _, b, Y, te, de, u, v, F, C, h, P, U, w, B, m, r, X, ue, L, O;
|
|
2644
|
+
if (zi(d)) {
|
|
2645
|
+
let x = {}, ne = (a = (i = (y = d == null ? void 0 : d.replace(":", _e)) == null ? void 0 : y.split(_e)) == null ? void 0 : i[0]) == null ? void 0 : a.replaceAll("'", ""), ee = "", Z = (T = (f = d == null ? void 0 : d.replace(":", _e)) == null ? void 0 : f.split(_e)) == null ? void 0 : T[1];
|
|
2646
|
+
return Z.includes("{") || Z.includes("(") ? (Z.includes("{") ? ee = ee + ((z = (V = (I = (j = Z == null ? void 0 : Z.split("{")) == null ? void 0 : j[1]) == null ? void 0 : I.split("}")) == null ? void 0 : V[0]) == null ? void 0 : z.replace(":", "/").replaceAll("'", "")) + "[" : ee = ee + ((oe = (G = (H = (E = Z == null ? void 0 : Z.split("(")) == null ? void 0 : E[1]) == null ? void 0 : H.split(")")) == null ? void 0 : G[0]) == null ? void 0 : oe.replace(":", "/").replaceAll("'", "")) + "[", ee = ee + ((k = (Q = (S = Z == null ? void 0 : Z.split("[")) == null ? void 0 : S[1]) == null ? void 0 : Q.split("]")) == null ? void 0 : k[0]) + "]") : ee = (t = (W = (D = d == null ? void 0 : d.replace(":", _e)) == null ? void 0 : D.split(_e)) == null ? void 0 : W[1]) == null ? void 0 : t.replaceAll("'", ""), x[ne] = ee, {
|
|
2647
|
+
groupName: "",
|
|
2648
|
+
formContents: [[x]]
|
|
2649
|
+
};
|
|
2650
|
+
} else {
|
|
2651
|
+
let x = {}, ne = "", ee = "";
|
|
2652
|
+
if (d.includes("#")) {
|
|
2653
|
+
ne = (c = (s = d == null ? void 0 : d.split("#")) == null ? void 0 : s[0]) == null ? void 0 : c.replaceAll("'", "");
|
|
2654
|
+
let Z = (_ = (n = d == null ? void 0 : d.split("#")) == null ? void 0 : n[1]) == null ? void 0 : _.replaceAll("'", "");
|
|
2655
|
+
Z != null && Z.includes("{") ? ee = ee + ((de = (te = (Y = (b = Z == null ? void 0 : Z.split("{")) == null ? void 0 : b[1]) == null ? void 0 : Y.split("}")) == null ? void 0 : te[0]) == null ? void 0 : de.replaceAll(":", "/").replaceAll("'", "")) + "[" : ee = ee + ((C = (F = (v = (u = Z == null ? void 0 : Z.split("(")) == null ? void 0 : u[1]) == null ? void 0 : v.split(")")) == null ? void 0 : F[0]) == null ? void 0 : C.replaceAll(":", "/").replaceAll("'", "")) + "[", ee = ee + ((U = (P = (h = Z == null ? void 0 : Z.split("[")) == null ? void 0 : h[1]) == null ? void 0 : P.split("]")) == null ? void 0 : U[0]) + "]";
|
|
2656
|
+
} else {
|
|
2657
|
+
let Z = (m = (B = (w = d == null ? void 0 : d.split("]")) == null ? void 0 : w[0]) == null ? void 0 : B.split("[")) == null ? void 0 : m[1];
|
|
2658
|
+
(r = Z == null ? void 0 : Z.split(":")) == null || r.forEach((pe, le) => {
|
|
2659
|
+
var ke;
|
|
2660
|
+
((ke = Z == null ? void 0 : Z.split(":")) == null ? void 0 : ke.length) - 1 === le && (ne = pe == null ? void 0 : pe.replaceAll("'", ""));
|
|
2661
|
+
}), ee = ((O = (L = (ue = (X = d == null ? void 0 : d.split("]")) == null ? void 0 : X[1]) == null ? void 0 : ue.replace(":", _e).split(_e)) == null ? void 0 : L[1]) == null ? void 0 : O.replaceAll("'", "")) ?? "";
|
|
2662
|
+
}
|
|
2663
|
+
return x[ne] = ee, {
|
|
2664
|
+
groupName: "",
|
|
2665
|
+
formContents: [[x]]
|
|
2666
|
+
};
|
|
2667
|
+
}
|
|
2668
|
+
}, Ki = (d) => (d == null ? void 0 : d[0]) === "[" && (d == null ? void 0 : d[d.length - 1]) === "]" && !(d != null && d.includes("{")), Ji = (d, y) => {
|
|
2669
|
+
let i = d.length;
|
|
2670
|
+
for (; i--; )
|
|
2671
|
+
if (d[i] === ")")
|
|
2672
|
+
return d.substring(0, i) + y + d.substring(i + 1);
|
|
2673
|
+
return d;
|
|
2674
|
+
}, Gi = (d) => {
|
|
2675
|
+
var T, j, I, V, z;
|
|
2676
|
+
let y = d.slice(1, d.length - 1), i;
|
|
2677
|
+
(y == null ? void 0 : y[0]) === "[" ? i = (j = (T = sl(l(y))) == null ? void 0 : T.filter((E) => E !== ",")) == null ? void 0 : j.map((E) => E == null ? void 0 : E.slice(1, E.length - 1)) : (y = "[" + l(y) + "]", i = (V = (I = sl(l(y))) == null ? void 0 : I.filter((E) => E !== ",")) == null ? void 0 : V.map((E) => E == null ? void 0 : E.slice(1, E.length - 1))), i = (z = l(i)) == null ? void 0 : z.map((E) => {
|
|
2678
|
+
var H, G;
|
|
2679
|
+
return E = (G = (H = E.replace(")", _e)) == null ? void 0 : H.split(_e)) == null ? void 0 : G[1], E;
|
|
2680
|
+
});
|
|
2681
|
+
let a = [], f = [];
|
|
2682
|
+
return i == null || i.forEach((E) => {
|
|
2683
|
+
var oe, S, Q, k, D, W, t, s, c, n, _, b, Y, te, de, u, v, F, C, h, P, U, w, B, m, r, X, ue, L, O, x, ne;
|
|
2684
|
+
let H = (S = (oe = l(E)) == null ? void 0 : oe.slice(1, l(E).length - 1)) == null ? void 0 : S.replace(":", _e).split(_e);
|
|
2685
|
+
if (((k = (Q = l(H)) == null ? void 0 : Q[0]) == null ? void 0 : k.replaceAll("'", "")) === "输入") {
|
|
2686
|
+
if (!((W = (D = l(H)) == null ? void 0 : D[1]) != null && W.includes("[")) && !((s = (t = l(H)) == null ? void 0 : t[1]) != null && s.includes("("))) {
|
|
2687
|
+
al((c = l(H)) == null ? void 0 : c[1].replaceAll("'", '"')) && f.push(JSON.parse((n = l(H)) == null ? void 0 : n[1].replaceAll("'", '"')));
|
|
2688
|
+
return;
|
|
2689
|
+
}
|
|
2690
|
+
if (((b = (_ = l(H)) == null ? void 0 : _[1]) == null ? void 0 : b[0]) === "[") {
|
|
2691
|
+
let ee = (u = (Y = l(H)) == null ? void 0 : Y[1]) == null ? void 0 : u.slice(1, ((de = (te = l(H)) == null ? void 0 : te[1]) == null ? void 0 : de.length) - 1);
|
|
2692
|
+
(F = (v = sl(ee)) == null ? void 0 : v.filter((Z) => Z !== ",")) == null || F.forEach((Z) => {
|
|
2693
|
+
var De, Ie, ie, e, o, g, p, $, M, ve, R, re, be, ge, Ae, fe, ae, we, he, Ee, Me, Ke;
|
|
2694
|
+
let pe = {}, le = (ie = (Ie = l(Z)) == null ? void 0 : Ie.slice(1, ((De = l(Z)) == null ? void 0 : De.length) - 1)) == null ? void 0 : ie.replace(":", _e).split(_e), ke = (e = le == null ? void 0 : le[0]) == null ? void 0 : e.replaceAll("'", ""), ye;
|
|
2695
|
+
(o = le == null ? void 0 : le[1]) != null && o.includes("(") ? (ye = (ge = (be = (re = (R = (ve = (M = ($ = (p = l(le)) == null ? void 0 : p[1]) == null ? void 0 : $.replaceAll("{", "")) == null ? void 0 : M.replaceAll("}", "")) == null ? void 0 : ve.split("(")) == null ? void 0 : R[1]) == null ? void 0 : re.split(")")) == null ? void 0 : be[0]) == null ? void 0 : ge.replaceAll(":", "/").replaceAll("'", ""), (fe = (Ae = l(le)) == null ? void 0 : Ae[1]) != null && fe.includes("[") && (ye = l(ye) + "[" + ((Ke = (Me = (Ee = (he = (we = (ae = l(le)) == null ? void 0 : ae[1]) == null ? void 0 : we.split("[")) == null ? void 0 : he[1]) == null ? void 0 : Ee.split("]")) == null ? void 0 : Me[0]) == null ? void 0 : Ke.replaceAll("'", "")) + "]")) : ye = (g = le == null ? void 0 : le[1]) == null ? void 0 : g.replaceAll("'", ""), pe[ke] = ye, f.push(pe);
|
|
2696
|
+
});
|
|
2697
|
+
}
|
|
2698
|
+
} else {
|
|
2699
|
+
if (!((h = (C = l(H)) == null ? void 0 : C[1]) != null && h.includes("[")) && !((U = (P = l(H)) == null ? void 0 : P[1]) != null && U.includes("("))) {
|
|
2700
|
+
al((w = l(H)) == null ? void 0 : w[1].replaceAll("'", '"')) && a.push(JSON.parse((B = l(H)) == null ? void 0 : B[1].replaceAll("'", '"')));
|
|
2701
|
+
return;
|
|
2702
|
+
}
|
|
2703
|
+
if (((r = (m = l(H)) == null ? void 0 : m[1]) == null ? void 0 : r[0]) === "[") {
|
|
2704
|
+
let ee = (O = (X = l(H)) == null ? void 0 : X[1]) == null ? void 0 : O.slice(1, ((L = (ue = l(H)) == null ? void 0 : ue[1]) == null ? void 0 : L.length) - 1);
|
|
2705
|
+
(ne = (x = sl(ee)) == null ? void 0 : x.filter((Z) => Z !== ",")) == null || ne.forEach((Z) => {
|
|
2706
|
+
var De, Ie, ie, e, o, g, p, $, M, ve, R, re, be, ge, Ae, fe, ae, we, he, Ee, Me, Ke, N, Le, Be, nl, ol, Ue, tl, qe, kl, _l, Cl;
|
|
2707
|
+
let pe = {}, le = (ie = (Ie = l(Z)) == null ? void 0 : Ie.slice(1, ((De = l(Z)) == null ? void 0 : De.length) - 1)) == null ? void 0 : ie.replace(":", _e).split(_e), ke = (e = le == null ? void 0 : le[0]) == null ? void 0 : e.replaceAll("'", ""), ye;
|
|
2708
|
+
if (!((o = le == null ? void 0 : le[1]) != null && o.includes("(")))
|
|
2709
|
+
ye = (g = le == null ? void 0 : le[1]) == null ? void 0 : g.replaceAll("'", "");
|
|
2710
|
+
else if (ye = (re = (R = (ve = (M = ($ = (p = l(le)) == null ? void 0 : p[1]) == null ? void 0 : $.replaceAll("{", "")) == null ? void 0 : M.replaceAll("}", "")) == null ? void 0 : ve.replace("(", _e)) == null ? void 0 : R.split(_e)) == null ? void 0 : re[1], ye = (ge = (be = Ji(l(ye), _e)) == null ? void 0 : be.split(_e)) == null ? void 0 : ge[0], !(ye != null && ye.includes("(")))
|
|
2711
|
+
ye = (Ae = l(ye)) == null ? void 0 : Ae.replaceAll(":", "/").replaceAll("'", ""), (ae = (fe = l(le)) == null ? void 0 : fe[1]) != null && ae.includes("[") && (ye = l(ye) + "[" + ((N = (Ke = (Me = (Ee = (he = (we = l(le)) == null ? void 0 : we[1]) == null ? void 0 : he.split("[")) == null ? void 0 : Ee[1]) == null ? void 0 : Me.split("]")) == null ? void 0 : Ke[0]) == null ? void 0 : N.replaceAll("'", "")) + "]");
|
|
2712
|
+
else {
|
|
2713
|
+
let He = "";
|
|
2714
|
+
(Le = Xl(ye, ":")) == null || Le.forEach((Je) => {
|
|
2715
|
+
var wl, Dl, Il, Al, xl, El, $l, Bl, Tl, Sl, Ol, Fl, Ll, Rl, Pl;
|
|
2716
|
+
if (!(Je != null && Je.includes("(")))
|
|
2717
|
+
He = He === "" ? He + ((wl = Je == null ? void 0 : Je.replaceAll(":", "")) == null ? void 0 : wl.replaceAll("'", "")) : He + "/" + ((Dl = Je == null ? void 0 : Je.replaceAll(":", "")) == null ? void 0 : Dl.replaceAll("'", ""));
|
|
2718
|
+
else {
|
|
2719
|
+
let fl = (Sl = (Tl = (Bl = ($l = (El = (xl = (Al = (Il = l(Je)) == null ? void 0 : Il.replaceAll("{", "")) == null ? void 0 : Al.replaceAll("}", "")) == null ? void 0 : xl.replace("(", _e)) == null ? void 0 : El.split(_e)) == null ? void 0 : $l[1]) == null ? void 0 : Bl.split(")")) == null ? void 0 : Tl[0]) == null ? void 0 : Sl.replaceAll(":", "/").replaceAll("'", "");
|
|
2720
|
+
fl = fl + "[" + ((Pl = (Rl = (Ll = (Fl = (Ol = l(Je)) == null ? void 0 : Ol.split("[")) == null ? void 0 : Fl[1]) == null ? void 0 : Ll.split("]")) == null ? void 0 : Rl[0]) == null ? void 0 : Pl.replaceAll("'", "")) + "]", He = He === "" ? He + "[" + fl + "]" : He + "/[" + fl + "]";
|
|
2721
|
+
}
|
|
2722
|
+
}), ye = He + "[" + ((Cl = (_l = (kl = (qe = (nl = (Be = l(le)) == null ? void 0 : Be[1]) == null ? void 0 : nl.split("[")) == null ? void 0 : qe[((tl = (Ue = (ol = l(le)) == null ? void 0 : ol[1]) == null ? void 0 : Ue.split("[")) == null ? void 0 : tl.length) - 1]) == null ? void 0 : kl.split("]")) == null ? void 0 : _l[0]) == null ? void 0 : Cl.replaceAll("'", "")) + "]";
|
|
2723
|
+
}
|
|
2724
|
+
pe[ke] = ye, a.push(pe);
|
|
2725
|
+
});
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
}), {
|
|
2729
|
+
output: a,
|
|
2730
|
+
input: f
|
|
2731
|
+
};
|
|
2732
|
+
}, Aa = (d) => {
|
|
2733
|
+
var a, f, T, j, I, V, z, E, H, G, oe, S, Q, k, D, W, t, s, c, n, _, b, Y, te, de, u, v, F, C, h, P, U, w, B, m, r, X, ue, L, O, x, ne, ee, Z, pe, le, ke, ye, De, Ie;
|
|
2734
|
+
let y = "";
|
|
2735
|
+
d = d.replace(/:([^=]*)==/g, ":");
|
|
2736
|
+
let i = d;
|
|
2737
|
+
if (Wi(l(d)) !== null && (y = (f = (a = l(d).replace(":", _e).split(_e)) == null ? void 0 : a[0]) == null ? void 0 : f.replaceAll("'", ""), i = (T = l(d).replace(":", _e).split(_e)) == null ? void 0 : T[1]), Yl(l(i).slice(1, ((j = l(i)) == null ? void 0 : j.length) - 1)) || Ki(l(i).slice(1, ((I = l(i)) == null ? void 0 : I.length) - 1)))
|
|
2738
|
+
if (((z = l(i).slice(1, ((V = l(i)) == null ? void 0 : V.length) - 1)) == null ? void 0 : z[1]) !== "[") {
|
|
2739
|
+
const ie = Ql(l(i).slice(1, ((E = l(i)) == null ? void 0 : E.length) - 1));
|
|
2740
|
+
return {
|
|
2741
|
+
groupName: y,
|
|
2742
|
+
tableColumn: ie == null ? void 0 : ie.tableColumns,
|
|
2743
|
+
tableContents: ie == null ? void 0 : ie.tableContents,
|
|
2744
|
+
tableColumnPath: ie == null ? void 0 : ie.tablePath
|
|
2745
|
+
};
|
|
2746
|
+
} else if (l(i).slice(1, ((H = l(i)) == null ? void 0 : H.length) - 1).includes("{")) {
|
|
2747
|
+
let ie = l(i).slice(1, ((G = l(i)) == null ? void 0 : G.length) - 1), e = ie.indexOf("{"), o = ie.slice(e, (ie == null ? void 0 : ie.length) - e);
|
|
2748
|
+
return (S = (oe = sl(o)) == null ? void 0 : oe.filter((p) => p == null ? void 0 : p.includes("{"))) == null ? void 0 : S.map((p, $) => {
|
|
2749
|
+
var ve;
|
|
2750
|
+
let M = Ql(l(p).slice(1, ((ve = l(p)) == null ? void 0 : ve.length) - 1));
|
|
2751
|
+
return {
|
|
2752
|
+
groupName: $ === 0 ? y : "",
|
|
2753
|
+
tableColumn: M == null ? void 0 : M.tableColumns,
|
|
2754
|
+
tableContents: M == null ? void 0 : M.tableContents,
|
|
2755
|
+
tableColumnPath: M == null ? void 0 : M.tablePath
|
|
2756
|
+
};
|
|
2757
|
+
});
|
|
2758
|
+
} else {
|
|
2759
|
+
const ie = Ql(l(i).slice(1, ((Q = l(i)) == null ? void 0 : Q.length) - 1));
|
|
2760
|
+
return {
|
|
2761
|
+
groupName: y,
|
|
2762
|
+
tableColumn: ie == null ? void 0 : ie.tableColumns,
|
|
2763
|
+
tableContents: ie == null ? void 0 : ie.tableContents,
|
|
2764
|
+
tableColumnPath: ie == null ? void 0 : ie.tablePath
|
|
2765
|
+
};
|
|
2766
|
+
}
|
|
2767
|
+
else {
|
|
2768
|
+
let ie = [];
|
|
2769
|
+
if (al((k = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : k.replaceAll("'", '"')))
|
|
2770
|
+
ie = JSON.parse((D = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : D.replaceAll("'", '"'));
|
|
2771
|
+
else if (i.includes("(")) {
|
|
2772
|
+
if ((i == null ? void 0 : i[0]) !== "{") {
|
|
2773
|
+
let e = (F = (v = (u = (de = l(i)) == null ? void 0 : de.split("]")) == null ? void 0 : u[0]) == null ? void 0 : v.split("[")) == null ? void 0 : F[1], o = "", p = ((B = (w = (U = (P = (h = (C = l(i)) == null ? void 0 : C.split(")")) == null ? void 0 : h[0]) == null ? void 0 : P.split("(")) == null ? void 0 : U[1]) == null ? void 0 : w.replaceAll("[", "")) == null ? void 0 : B.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
|
|
2774
|
+
(m = p == null ? void 0 : p.split("/")) == null || m.forEach((M, ve) => {
|
|
2775
|
+
var R;
|
|
2776
|
+
ve !== ((R = p == null ? void 0 : p.split("/")) == null ? void 0 : R.length) - 1 && (o = o === "" ? o + M : o + "/" + M);
|
|
2777
|
+
});
|
|
2778
|
+
let $;
|
|
2779
|
+
return ((L = (ue = (X = (r = l(i)) == null ? void 0 : r.replace(",", _e)) == null ? void 0 : X.split(_e)) == null ? void 0 : ue[1]) == null ? void 0 : L[0]) === "[" && ($ = Gi((ne = (x = (O = l(i)) == null ? void 0 : O.replace(",", _e)) == null ? void 0 : x.split(_e)) == null ? void 0 : ne[1])), {
|
|
2780
|
+
groupName: "",
|
|
2781
|
+
extraButton: (Z = e == null ? void 0 : e.split(":")) == null ? void 0 : Z[((ee = e == null ? void 0 : e.split(":")) == null ? void 0 : ee.length) - 1].replaceAll("'", ""),
|
|
2782
|
+
extraPath: o,
|
|
2783
|
+
extraData: $
|
|
2784
|
+
};
|
|
2785
|
+
} else if (i = i.slice(1, (i == null ? void 0 : i.length) - 1), (i == null ? void 0 : i[0]) !== "[") {
|
|
2786
|
+
let e = "{" + i + "}", o = (le = (pe = sl(e)) == null ? void 0 : pe.filter((p) => p !== ",")) == null ? void 0 : le.map((p) => Mi(l(p).slice(1, l(p).length - 1))), g = [];
|
|
2787
|
+
return (ke = l(o)) == null || ke.forEach((p) => {
|
|
2788
|
+
var $;
|
|
2789
|
+
($ = p == null ? void 0 : p.formContents) == null || $.forEach((M) => {
|
|
2790
|
+
M == null || M.forEach((ve) => {
|
|
2791
|
+
g.push(ve);
|
|
2792
|
+
});
|
|
2793
|
+
});
|
|
2794
|
+
}), {
|
|
2795
|
+
groupName: (ye = o == null ? void 0 : o[0]) == null ? void 0 : ye.groupName,
|
|
2796
|
+
// formExtra?.groupName,
|
|
2797
|
+
formContents: g
|
|
2798
|
+
// formExtra?.formContents
|
|
2799
|
+
};
|
|
2800
|
+
} else if ((i == null ? void 0 : i[0]) === "[" && (i == null ? void 0 : i[1]) === "[") {
|
|
2801
|
+
i = i.slice(1, (i == null ? void 0 : i.length) - 1);
|
|
2802
|
+
let e = [], o = [];
|
|
2803
|
+
return (Ie = (De = sl(i)) == null ? void 0 : De.filter((g) => g !== ",")) == null || Ie.forEach((g) => {
|
|
2804
|
+
var p, $, M, ve;
|
|
2805
|
+
if (!g.includes("&"))
|
|
2806
|
+
Array.isArray(Zl(g)) || e.push((p = Zl(g)) == null ? void 0 : p.formContents);
|
|
2807
|
+
else {
|
|
2808
|
+
let R = (ve = (M = ($ = l(g)) == null ? void 0 : $.split("&")) == null ? void 0 : M[1]) == null ? void 0 : ve.replaceAll("'", '"');
|
|
2809
|
+
al(R) && o.push({
|
|
2810
|
+
[JSON.parse(R)[0]]: JSON.parse(R)
|
|
2811
|
+
});
|
|
2812
|
+
}
|
|
2813
|
+
}), {
|
|
2814
|
+
groupName: y,
|
|
2815
|
+
formContents: e,
|
|
2816
|
+
formGroup: o
|
|
2817
|
+
};
|
|
2818
|
+
}
|
|
2819
|
+
} else if (i = "[[" + i + "]]", al((W = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : W.replaceAll("'", '"')))
|
|
2820
|
+
ie = JSON.parse((t = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : t.replaceAll("'", '"'));
|
|
2821
|
+
else if (i = i.slice(2, i.length - 2), ((n = (c = (s = i == null ? void 0 : i.replace(":", _e)) == null ? void 0 : s.split(_e)) == null ? void 0 : c[1]) == null ? void 0 : n[0]) !== "{") {
|
|
2822
|
+
i = ((b = (_ = i == null ? void 0 : i.replace(":", _e)) == null ? void 0 : _.split(_e)) == null ? void 0 : b[0]) + ":{[" + ((te = (Y = i == null ? void 0 : i.replace(":", _e)) == null ? void 0 : Y.split(_e)) == null ? void 0 : te[1]) + "]}";
|
|
2823
|
+
const e = Aa(i);
|
|
2824
|
+
return e != null && e.tableColumn ? {
|
|
2825
|
+
groupName: e == null ? void 0 : e.groupName,
|
|
2826
|
+
tableColumn: e == null ? void 0 : e.tableColumn,
|
|
2827
|
+
tableContents: e == null ? void 0 : e.tableContents
|
|
2828
|
+
} : {
|
|
2829
|
+
groupName: e == null ? void 0 : e.groupName,
|
|
2830
|
+
formContents: e == null ? void 0 : e.formContents
|
|
2831
|
+
};
|
|
2832
|
+
}
|
|
2833
|
+
return {
|
|
2834
|
+
groupName: y,
|
|
2835
|
+
formContents: ie
|
|
2836
|
+
};
|
|
2837
|
+
}
|
|
2838
|
+
}, Zl = (d) => Aa(l(d).slice(1, l(d).length - 1)), bo = (d) => {
|
|
2839
|
+
var i;
|
|
2840
|
+
let y = [];
|
|
2841
|
+
if (!((d == null ? void 0 : d[0]) === "[" && (d == null ? void 0 : d[1]) === "[")) {
|
|
2842
|
+
let a = (i = sl(d)) == null ? void 0 : i.filter((f) => f !== ",");
|
|
2843
|
+
a == null || a.forEach((f) => {
|
|
2844
|
+
y.push(Zl(f));
|
|
2845
|
+
});
|
|
2846
|
+
}
|
|
2847
|
+
return y;
|
|
2848
|
+
}, qi = { class: "method-content" }, Hi = {
|
|
2849
|
+
__name: "index",
|
|
2850
|
+
props: {
|
|
2851
|
+
itemData: {
|
|
2852
|
+
type: Array,
|
|
2853
|
+
default: () => []
|
|
2854
|
+
},
|
|
2855
|
+
childItemData: {
|
|
2856
|
+
type: Array,
|
|
2857
|
+
default: () => []
|
|
2858
|
+
},
|
|
2859
|
+
index: Number,
|
|
2860
|
+
changedContent: {
|
|
2861
|
+
type: Object,
|
|
2862
|
+
default: () => {
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
},
|
|
2866
|
+
setup(d) {
|
|
2867
|
+
const y = J([]), i = d, a = ga(Qe), f = J(!1), T = Ua(Qe), j = Qa(Qe), { itemData: I, isEdit: V } = il(a), { activeMenuPath: z, platform: E } = il(T), { loginUserInfo: H } = il(j), G = J(!1), oe = (s, c) => {
|
|
2868
|
+
const n = c;
|
|
2869
|
+
return s == null ? void 0 : s.map((_) => {
|
|
2870
|
+
var b;
|
|
2871
|
+
return _ = (b = _ == null ? void 0 : _.map((Y, te) => {
|
|
2872
|
+
var de;
|
|
2873
|
+
return {
|
|
2874
|
+
key: (de = n[te]) == null ? void 0 : de.label,
|
|
2875
|
+
value: Y
|
|
2876
|
+
};
|
|
2877
|
+
})) == null ? void 0 : b.filter((Y) => Y.key !== "操作"), _;
|
|
2878
|
+
});
|
|
2879
|
+
};
|
|
2880
|
+
je(
|
|
2881
|
+
() => I.value,
|
|
2882
|
+
async () => {
|
|
2883
|
+
V.value === "view" && !G.value && await t(l(i.itemData)), G.value = !1;
|
|
2884
|
+
},
|
|
2885
|
+
{ deep: !0 }
|
|
2886
|
+
);
|
|
2887
|
+
const S = async (s, c) => {
|
|
2888
|
+
var n;
|
|
2889
|
+
if (da(s == null ? void 0 : s.name, c)) {
|
|
2890
|
+
let _ = da(s == null ? void 0 : s.name, c);
|
|
2891
|
+
s == null || s.id, s.compData = await Promise.all(
|
|
2892
|
+
(n = l(s.compData)) == null ? void 0 : n.map(async (b) => ((b == null ? void 0 : b.key) === "tableContents" && (b.extra = await Fa(l(b.contents)), b.contents = La(l(_))), b))
|
|
2893
|
+
);
|
|
2894
|
+
} else
|
|
2895
|
+
s = Ra(s, c);
|
|
2896
|
+
return s;
|
|
2897
|
+
}, Q = (s, c) => {
|
|
2898
|
+
var _, b, Y, te, de, u, v, F;
|
|
2899
|
+
let n = (_ = l(c)) == null ? void 0 : _.filter((C) => (C == null ? void 0 : C.comp) !== "methodButton");
|
|
2900
|
+
if (s != null && s.includes("[")) {
|
|
2901
|
+
let C = (u = (de = (te = (Y = (b = l(s)) == null ? void 0 : b.split("[")) == null ? void 0 : Y[1]) == null ? void 0 : te.split("]")) == null ? void 0 : de[0]) == null ? void 0 : u.split(":"), h = "";
|
|
2902
|
+
if (C != null && C[0]) {
|
|
2903
|
+
let P = (v = n == null ? void 0 : n.find((U) => (U == null ? void 0 : U.name) === (C == null ? void 0 : C[0]))) == null ? void 0 : v.compData;
|
|
2904
|
+
P == null || P.forEach((U) => {
|
|
2905
|
+
var w;
|
|
2906
|
+
(U == null ? void 0 : U.key) === "formContent" && ((w = U == null ? void 0 : U.contents) == null || w.forEach((B) => {
|
|
2907
|
+
(B == null ? void 0 : B.key) === (C == null ? void 0 : C[1]) && (h = B == null ? void 0 : B.value);
|
|
2908
|
+
}));
|
|
2909
|
+
});
|
|
2910
|
+
}
|
|
2911
|
+
return h;
|
|
2912
|
+
} else if (s != null && s.includes("/")) {
|
|
2913
|
+
let C = {};
|
|
2914
|
+
return (F = l(n)) == null || F.forEach((h, P) => {
|
|
2915
|
+
var U, w, B, m, r, X, ue, L, O, x, ne, ee, Z, pe, le, ke, ye, De, Ie;
|
|
2916
|
+
if ((h == null ? void 0 : h.comp) === "Table") {
|
|
2917
|
+
let ie = Array.isArray((B = (w = (U = h == null ? void 0 : h.compData) == null ? void 0 : U.find((p) => (p == null ? void 0 : p.key) === "header")) == null ? void 0 : w.contents) == null ? void 0 : B[0]) ? (ue = (X = (r = (m = h == null ? void 0 : h.compData) == null ? void 0 : m.find((p) => (p == null ? void 0 : p.key) === "header")) == null ? void 0 : r.contents) == null ? void 0 : X[0]) == null ? void 0 : ue.some((p) => p == null ? void 0 : p.children) : [], e = (x = (O = (L = h == null ? void 0 : h.compData) == null ? void 0 : L.find((p) => (p == null ? void 0 : p.key) === "tableContents")) == null ? void 0 : O.contents) == null ? void 0 : x.map((p) => p.slice(1)), o = (le = (pe = (Z = (ee = (ne = h == null ? void 0 : h.compData) == null ? void 0 : ne.find((p) => (p == null ? void 0 : p.key) === "header")) == null ? void 0 : ee.contents) == null ? void 0 : Z[0]) == null ? void 0 : pe[0]) == null ? void 0 : le.label, g = (ye = (ke = h == null ? void 0 : h.compData) == null ? void 0 : ke.find((p) => (p == null ? void 0 : p.key) === "header")) == null ? void 0 : ye.contents;
|
|
2918
|
+
if (ie)
|
|
2919
|
+
(ie == null ? void 0 : ie.length) === 0 ? C[h.name] = oe(e, g) : C[o] = oe(e, g);
|
|
2920
|
+
else {
|
|
2921
|
+
const p = [];
|
|
2922
|
+
g = g.slice(1, g.length - 1), g == null || g.forEach(($, M) => {
|
|
2923
|
+
e == null || e.forEach((ve) => {
|
|
2924
|
+
p.push({
|
|
2925
|
+
key: $.label + ve[0],
|
|
2926
|
+
value: ve[M + 1]
|
|
2927
|
+
});
|
|
2928
|
+
});
|
|
2929
|
+
}), C["form" + P] = p;
|
|
2930
|
+
}
|
|
2931
|
+
} else {
|
|
2932
|
+
const ie = (Ie = (De = h.compData) == null ? void 0 : De.find((o) => (o == null ? void 0 : o.key) === "formContent")) == null ? void 0 : Ie.contents;
|
|
2933
|
+
C.form = {};
|
|
2934
|
+
const e = [];
|
|
2935
|
+
ie == null || ie.forEach((o) => {
|
|
2936
|
+
o.key !== "" && (o = {
|
|
2937
|
+
key: (o == null ? void 0 : o.key) ?? (o == null ? void 0 : o.label),
|
|
2938
|
+
value: o == null ? void 0 : o.value
|
|
2939
|
+
}, e.push(o));
|
|
2940
|
+
}), C.form = e;
|
|
2941
|
+
}
|
|
2942
|
+
}), C;
|
|
2943
|
+
} else
|
|
2944
|
+
return s;
|
|
2945
|
+
}, k = async (s, c, n) => {
|
|
2946
|
+
var Y;
|
|
2947
|
+
let _ = await bl(c, sessionStorage.getItem("systemKey"), ""), b = _ == null ? void 0 : _.find((te) => (te == null ? void 0 : te.name) === (n == null ? void 0 : n[0]));
|
|
2948
|
+
if (b && (b == null ? void 0 : b.comp) === "Table") {
|
|
2949
|
+
let te = {};
|
|
2950
|
+
for (let P in l(s))
|
|
2951
|
+
l(s)[P] !== "loginUser" ? te[P] = l(s)[P] : te[P] = (Y = H.value) == null ? void 0 : Y.account;
|
|
2952
|
+
let de = [], u = te;
|
|
2953
|
+
Array.isArray(s) || (u = [te]), u == null || u.forEach((P) => {
|
|
2954
|
+
de.push({
|
|
2955
|
+
[P[n[1]]]: P
|
|
2956
|
+
});
|
|
2957
|
+
});
|
|
2958
|
+
let v = [], F = de == null ? void 0 : de.map((P) => {
|
|
2959
|
+
var U;
|
|
2960
|
+
return (U = Object.keys(P)) == null ? void 0 : U[0];
|
|
2961
|
+
});
|
|
2962
|
+
_ == null || _.forEach((P) => {
|
|
2963
|
+
var U;
|
|
2964
|
+
(P == null ? void 0 : P.name) === (n == null ? void 0 : n[0]) && ((U = P == null ? void 0 : P.compData) == null || U.forEach((w) => {
|
|
2965
|
+
var B;
|
|
2966
|
+
(w == null ? void 0 : w.key) === "tableContents" && ((B = w == null ? void 0 : w.contents) == null || B.forEach((m) => {
|
|
2967
|
+
m != null && m.some((r) => F.includes(r)) && v.push({
|
|
2968
|
+
[m.find((r) => r.id).id]: m.find((r) => F.includes(r))
|
|
2969
|
+
});
|
|
2970
|
+
}));
|
|
2971
|
+
}));
|
|
2972
|
+
});
|
|
2973
|
+
let C = v == null ? void 0 : v.map((P) => {
|
|
2974
|
+
var U;
|
|
2975
|
+
return (U = Object.keys(P)) == null ? void 0 : U[0];
|
|
2976
|
+
}), h = [];
|
|
2977
|
+
C == null || C.forEach((P) => {
|
|
2978
|
+
var B;
|
|
2979
|
+
let U = (B = v == null ? void 0 : v.find((m) => {
|
|
2980
|
+
var r;
|
|
2981
|
+
return ((r = Object.keys(m)) == null ? void 0 : r[0].toString()) === P.toString();
|
|
2982
|
+
})) == null ? void 0 : B[P], w = de == null ? void 0 : de.find((m) => {
|
|
2983
|
+
var r;
|
|
2984
|
+
return ((r = Object.keys(m)) == null ? void 0 : r[0]) === U;
|
|
2985
|
+
});
|
|
2986
|
+
h.push({
|
|
2987
|
+
id: parseInt(P),
|
|
2988
|
+
value: {
|
|
2989
|
+
tableData: w[U]
|
|
2990
|
+
}
|
|
2991
|
+
});
|
|
2992
|
+
}), await Ma({
|
|
2993
|
+
dataList: h
|
|
2994
|
+
});
|
|
2995
|
+
}
|
|
2996
|
+
}, D = async (s, c, n) => {
|
|
2997
|
+
var Y, te, de, u, v, F;
|
|
2998
|
+
let _ = await bl(c, sessionStorage.getItem("systemKey"), ""), b = _ == null ? void 0 : _.find((C) => (C == null ? void 0 : C.name) === (n == null ? void 0 : n[0]));
|
|
2999
|
+
if (b) {
|
|
3000
|
+
if (!(n != null && n[1]) && (b == null ? void 0 : b.comp) === "Table") {
|
|
3001
|
+
let C = {};
|
|
3002
|
+
for (let h in l(s))
|
|
3003
|
+
l(s)[h] !== "loginUser" ? C[h] = l(s)[h] : C[h] = (Y = H.value) == null ? void 0 : Y.account;
|
|
3004
|
+
await Wa({
|
|
3005
|
+
key: {
|
|
3006
|
+
type: "data",
|
|
3007
|
+
pageKey: c,
|
|
3008
|
+
tableId: b == null ? void 0 : b.id,
|
|
3009
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3010
|
+
},
|
|
3011
|
+
value: {
|
|
3012
|
+
tableData: C
|
|
3013
|
+
}
|
|
3014
|
+
});
|
|
3015
|
+
} else if (!(n != null && n[1]) && (b == null ? void 0 : b.comp) === "Form") {
|
|
3016
|
+
let C = l(b);
|
|
3017
|
+
C.compData = (de = (te = l(C)) == null ? void 0 : te.compData) == null ? void 0 : de.map((U) => {
|
|
3018
|
+
var w, B;
|
|
3019
|
+
return (U == null ? void 0 : U.key) === "formContent" && (U.contents = (B = (w = l(U)) == null ? void 0 : w.contents) == null ? void 0 : B.map((m) => {
|
|
3020
|
+
var r;
|
|
3021
|
+
return m.value = (r = l(s)) == null ? void 0 : r[m == null ? void 0 : m.key], m;
|
|
3022
|
+
})), U;
|
|
3023
|
+
});
|
|
3024
|
+
const h = await Ul({
|
|
3025
|
+
key: {
|
|
3026
|
+
type: "structure",
|
|
3027
|
+
pageKey: c,
|
|
3028
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
3029
|
+
}
|
|
3030
|
+
});
|
|
3031
|
+
let P = "";
|
|
3032
|
+
((u = h == null ? void 0 : h.data) == null ? void 0 : u.type) === "success" && ((F = (v = h == null ? void 0 : h.data) == null ? void 0 : v.result) == null || F.forEach((U) => {
|
|
3033
|
+
var w, B;
|
|
3034
|
+
((B = (w = U == null ? void 0 : U.value) == null ? void 0 : w.pageData) == null ? void 0 : B.name) === (n == null ? void 0 : n[0]) && (P = U.id);
|
|
3035
|
+
}), await za({
|
|
3036
|
+
id: P,
|
|
3037
|
+
value: {
|
|
3038
|
+
pageData: C
|
|
3039
|
+
}
|
|
3040
|
+
}));
|
|
3041
|
+
}
|
|
3042
|
+
}
|
|
3043
|
+
}, W = async (s) => {
|
|
3044
|
+
var n, _, b, Y, te, de, u, v, F, C, h, P, U, w, B, m, r, X;
|
|
3045
|
+
let c = {};
|
|
3046
|
+
if (E.value !== "browser") {
|
|
3047
|
+
const ue = [];
|
|
3048
|
+
c.form = {}, (n = l(s.content)) == null || n.forEach((O, x) => {
|
|
3049
|
+
var ne, ee, Z, pe, le, ke, ye, De, Ie, ie, e, o, g, p;
|
|
3050
|
+
if ((O == null ? void 0 : O.comp) === "Table") {
|
|
3051
|
+
(ee = (ne = O == null ? void 0 : O.compData) == null ? void 0 : ne.find((R) => (R == null ? void 0 : R.key) === "header")) == null || ee.contents;
|
|
3052
|
+
let $ = (le = (pe = (Z = O == null ? void 0 : O.compData) == null ? void 0 : Z.find((R) => (R == null ? void 0 : R.key) === "tableContents")) == null ? void 0 : pe.contents) == null ? void 0 : le.map((R) => R.slice(1));
|
|
3053
|
+
(ie = (Ie = (De = (ye = (ke = O == null ? void 0 : O.compData) == null ? void 0 : ke.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : ye.contents) == null ? void 0 : De[0]) == null ? void 0 : Ie[0]) == null || ie.label;
|
|
3054
|
+
let M = (o = (e = O == null ? void 0 : O.compData) == null ? void 0 : e.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : o.contents, ve = [];
|
|
3055
|
+
$ == null || $.forEach((R) => {
|
|
3056
|
+
let re = [];
|
|
3057
|
+
R == null || R.forEach((be, ge) => {
|
|
3058
|
+
var fe;
|
|
3059
|
+
let Ae = {};
|
|
3060
|
+
((fe = M[ge]) == null ? void 0 : fe.label) !== "操作" && (Ae[M[ge].label] = be, re.push(Ae));
|
|
3061
|
+
}), ve.push(re);
|
|
3062
|
+
}), c[O.name] = ve;
|
|
3063
|
+
} else {
|
|
3064
|
+
const $ = (p = (g = O.compData) == null ? void 0 : g.find((M) => (M == null ? void 0 : M.key) === "formContent")) == null ? void 0 : p.contents;
|
|
3065
|
+
$ == null || $.forEach((M) => {
|
|
3066
|
+
M.key !== "" && (M = {
|
|
3067
|
+
key: (M == null ? void 0 : M.key) ?? (M == null ? void 0 : M.label),
|
|
3068
|
+
value: M == null ? void 0 : M.value
|
|
3069
|
+
}, ue.push(M));
|
|
3070
|
+
});
|
|
3071
|
+
}
|
|
3072
|
+
}), c.form = Ba(ue);
|
|
3073
|
+
let L = c.form;
|
|
3074
|
+
for (let O in c)
|
|
3075
|
+
O !== "form" && (L[O] = Ta(c[O]));
|
|
3076
|
+
if (s.api) {
|
|
3077
|
+
try {
|
|
3078
|
+
f.value = !0;
|
|
3079
|
+
const O = await ql.post(
|
|
3080
|
+
s.api,
|
|
3081
|
+
L,
|
|
3082
|
+
{
|
|
3083
|
+
headers: {
|
|
3084
|
+
"Content-Type": "application/json"
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
);
|
|
3088
|
+
if (((_ = O == null ? void 0 : O.data) == null ? void 0 : _.code) === 200 || ((b = O == null ? void 0 : O.data) == null ? void 0 : b.statusCode) === 200) {
|
|
3089
|
+
let x = await ((Y = O == null ? void 0 : O.data) == null ? void 0 : Y.data);
|
|
3090
|
+
const ne = (te = l(I.value)) == null ? void 0 : te.filter((le) => (le == null ? void 0 : le.comp) !== "methodButton"), ee = await Promise.all(
|
|
3091
|
+
ne.map((le) => S(le, x))
|
|
3092
|
+
);
|
|
3093
|
+
await Promise.all(ee);
|
|
3094
|
+
const Z = (de = l(I.value)) == null ? void 0 : de.filter((le) => (le == null ? void 0 : le.comp) === "methodButton");
|
|
3095
|
+
let pe = [...ee, ...Z];
|
|
3096
|
+
await Sa(pe), f.value = !1;
|
|
3097
|
+
} else
|
|
3098
|
+
Ze.error("方法调用失败:" + ((u = O == null ? void 0 : O.data) == null ? void 0 : u.errors)), f.value = !1;
|
|
3099
|
+
} catch {
|
|
3100
|
+
Ze.error("方法调用失败"), f.value = !1;
|
|
3101
|
+
}
|
|
3102
|
+
a.setFreshContent(!0);
|
|
3103
|
+
}
|
|
3104
|
+
} else if (s.api) {
|
|
3105
|
+
let ue = await bl(z.value, sessionStorage.getItem("systemKey"), ""), L = {};
|
|
3106
|
+
(F = (v = s == null ? void 0 : s.extraValues) == null ? void 0 : v.input) == null || F.forEach((pe) => {
|
|
3107
|
+
var le;
|
|
3108
|
+
L[Object.keys(pe)[0]] = Q((le = Object.values(pe)) == null ? void 0 : le[0], ue);
|
|
3109
|
+
});
|
|
3110
|
+
let O = !1;
|
|
3111
|
+
(h = (C = s == null ? void 0 : s.extraValues) == null ? void 0 : C.output) == null || h.forEach((pe) => {
|
|
3112
|
+
var le, ke;
|
|
3113
|
+
(ke = (le = Object.values(pe)) == null ? void 0 : le[0]) != null && ke.includes(".doc") && (O = !0);
|
|
3114
|
+
});
|
|
3115
|
+
let x;
|
|
3116
|
+
O ? x = await ql.post(s.api, L, {
|
|
3117
|
+
responseType: "blob",
|
|
3118
|
+
// 必须设置
|
|
3119
|
+
headers: {
|
|
3120
|
+
"Content-Type": "application/json"
|
|
3121
|
+
}
|
|
3122
|
+
}) : x = await ql.post(s.api, L, {
|
|
3123
|
+
headers: {
|
|
3124
|
+
"Content-Type": "application/json"
|
|
3125
|
+
}
|
|
3126
|
+
});
|
|
3127
|
+
let ne = (B = (w = (U = (P = l(s)) == null ? void 0 : P.extraValues) == null ? void 0 : U.output) == null ? void 0 : w.map((pe) => {
|
|
3128
|
+
var le, ke, ye, De, Ie, ie, e, o, g, p, $, M, ve, R, re;
|
|
3129
|
+
if (!((ke = (le = Object.values(pe)) == null ? void 0 : le[0]) != null && ke.includes(".doc"))) {
|
|
3130
|
+
let be = (p = (g = (o = (De = l((ye = Object.values(pe)) == null ? void 0 : ye[0])) == null ? void 0 : De.split("[")) == null ? void 0 : o[((e = (ie = l((Ie = Object.values(pe)) == null ? void 0 : Ie[0])) == null ? void 0 : ie.split("[")) == null ? void 0 : e.length) - 1]) == null ? void 0 : g.split("]")) == null ? void 0 : p[0];
|
|
3131
|
+
be == null || be.split(":");
|
|
3132
|
+
let ge = l(($ = Object.values(pe)) == null ? void 0 : $[0]).substring(0, l((M = Object.values(pe)) == null ? void 0 : M[0]).lastIndexOf("["));
|
|
3133
|
+
if (ge = (R = l(ge)) == null ? void 0 : R.slice(0, ((ve = l(ge)) == null ? void 0 : ve.length) - 1), ge != null && ge.includes("[")) {
|
|
3134
|
+
let Ae = "";
|
|
3135
|
+
if ((re = Xl(ge, "/")) == null || re.forEach((fe) => {
|
|
3136
|
+
var ae, we, he, Ee, Me, Ke, N;
|
|
3137
|
+
if (!(fe != null && fe.includes("[")))
|
|
3138
|
+
Ae = Ae === "" ? Ae + fe.replaceAll("/", "") : Ae + "/" + fe.replaceAll("/", "");
|
|
3139
|
+
else {
|
|
3140
|
+
let Le = l(fe).slice(1, ((ae = l(fe)) == null ? void 0 : ae.length) - 1), Be = (Ke = (Me = (Ee = (he = (we = l(Le)) == null ? void 0 : we.split("[")) == null ? void 0 : he[1]) == null ? void 0 : Ee.split("]")) == null ? void 0 : Me[0]) == null ? void 0 : Ke.split(":"), nl = "", ol = (N = ue == null ? void 0 : ue.find((Ue) => (Ue == null ? void 0 : Ue.name) === (Be == null ? void 0 : Be[0]))) == null ? void 0 : N.compData;
|
|
3141
|
+
ol == null || ol.forEach((Ue) => {
|
|
3142
|
+
var tl;
|
|
3143
|
+
(Ue == null ? void 0 : Ue.key) === "formContent" && ((tl = Ue == null ? void 0 : Ue.contents) == null || tl.forEach((qe) => {
|
|
3144
|
+
(qe == null ? void 0 : qe.key) === (Be == null ? void 0 : Be[1]) && (nl = qe == null ? void 0 : qe.value);
|
|
3145
|
+
}));
|
|
3146
|
+
}), Ae = Ae === "" ? Ae + nl.replaceAll("/", "") : Ae + "/" + nl.replaceAll("/", "");
|
|
3147
|
+
}
|
|
3148
|
+
}), ge = Ae, ge[(ge == null ? void 0 : ge.length) - 1] !== "/")
|
|
3149
|
+
return ge;
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
})) == null ? void 0 : B.filter((pe) => pe);
|
|
3153
|
+
ne = [...new Set(l(ne))];
|
|
3154
|
+
let ee = ne == null ? void 0 : ne.map(async (pe) => {
|
|
3155
|
+
let le = await bl(pe, sessionStorage.getItem("systemKey"), "");
|
|
3156
|
+
if ((le == null ? void 0 : le.length) === 0)
|
|
3157
|
+
return await Oa(pe);
|
|
3158
|
+
});
|
|
3159
|
+
await Promise.all(ee);
|
|
3160
|
+
let Z = (X = (r = (m = l(s)) == null ? void 0 : m.extraValues) == null ? void 0 : r.output) == null ? void 0 : X.map(async (pe) => {
|
|
3161
|
+
var g, p, $, M, ve, R, re, be, ge, Ae, fe, ae, we, he, Ee, Me, Ke, N, Le, Be, nl, ol, Ue, tl, qe, kl, _l, Cl, He, Je, wl, Dl, Il, Al, xl, El, $l, Bl, Tl, Sl, Ol, Fl, Ll, Rl, Pl, fl, sa, ia, na, oa;
|
|
3162
|
+
if ((p = (g = Object.values(pe)) == null ? void 0 : g[0]) != null && p.includes(".doc")) {
|
|
3163
|
+
var le = new Blob([x.data], {
|
|
3164
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
3165
|
+
}), ke = x.headers["content-disposition"], ye = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), De = ye.exec(ke), Ie = ((ve = (M = ($ = s == null ? void 0 : s.extraContent) == null ? void 0 : $[0]) == null ? void 0 : M.split(".")) == null ? void 0 : ve[0]) + "." + ((R = De == null ? void 0 : De[1].split(".")) == null ? void 0 : R[1]), ie = document.createElement("a"), e = window.URL.createObjectURL(le), o = /^["](.*)["]$/g;
|
|
3166
|
+
ie.style.display = "none", ie.href = e, ie.download = decodeURI(Ie.replace(o, "$1")), document.body.appendChild(ie), ie.click(), document.body.removeChild(ie), window.URL.revokeObjectURL(e);
|
|
3167
|
+
} else {
|
|
3168
|
+
let Kl = (he = (we = (ae = (be = l((re = Object.values(pe)) == null ? void 0 : re[0])) == null ? void 0 : be.split("[")) == null ? void 0 : ae[((fe = (Ae = l((ge = Object.values(pe)) == null ? void 0 : ge[0])) == null ? void 0 : Ae.split("[")) == null ? void 0 : fe.length) - 1]) == null ? void 0 : we.split("]")) == null ? void 0 : he[0], $e = Kl == null ? void 0 : Kl.split(":"), Xe = l((Ee = Object.values(pe)) == null ? void 0 : Ee[0]).substring(0, l((Me = Object.values(pe)) == null ? void 0 : Me[0]).lastIndexOf("["));
|
|
3169
|
+
if (Xe.includes("[") && (Xe = (N = l(Xe)) == null ? void 0 : N.slice(0, ((Ke = l(Xe)) == null ? void 0 : Ke.length) - 1)), Xe != null && Xe.includes("[")) {
|
|
3170
|
+
let Pe = "";
|
|
3171
|
+
(Le = Xl(Xe, "/")) == null || Le.forEach((Ve) => {
|
|
3172
|
+
var jl, We, dl, pl, ua, ra, ca;
|
|
3173
|
+
if (!(Ve != null && Ve.includes("[")))
|
|
3174
|
+
Pe = Pe === "" ? Pe + Ve.replaceAll("/", "") : Pe + "/" + Ve.replaceAll("/", "");
|
|
3175
|
+
else {
|
|
3176
|
+
let xa = l(Ve).slice(1, ((jl = l(Ve)) == null ? void 0 : jl.length) - 1), ml = (ra = (ua = (pl = (dl = (We = l(xa)) == null ? void 0 : We.split("[")) == null ? void 0 : dl[1]) == null ? void 0 : pl.split("]")) == null ? void 0 : ua[0]) == null ? void 0 : ra.split(":"), Jl = "", Gl = (ca = ue == null ? void 0 : ue.find((el) => (el == null ? void 0 : el.name) === (ml == null ? void 0 : ml[0]))) == null ? void 0 : ca.compData;
|
|
3177
|
+
Gl == null || Gl.forEach((el) => {
|
|
3178
|
+
var ta;
|
|
3179
|
+
(el == null ? void 0 : el.key) === "formContent" && ((ta = el == null ? void 0 : el.contents) == null || ta.forEach((yl) => {
|
|
3180
|
+
(yl == null ? void 0 : yl.key) === (ml == null ? void 0 : ml[1]) && (Jl = yl == null ? void 0 : yl.value);
|
|
3181
|
+
}));
|
|
3182
|
+
}), Pe = Pe === "" ? Pe + Jl.replaceAll("/", "") : Pe + "/" + Jl.replaceAll("/", "");
|
|
3183
|
+
}
|
|
3184
|
+
}), Xe = Pe;
|
|
3185
|
+
}
|
|
3186
|
+
if (((Be = x == null ? void 0 : x.data) == null ? void 0 : Be.statusCode) === 200) {
|
|
3187
|
+
if ((ol = (nl = x == null ? void 0 : x.data) == null ? void 0 : nl.data) != null && ol[$e == null ? void 0 : $e[0]] && ($e == null ? void 0 : $e.length) === 1)
|
|
3188
|
+
return await D((tl = (Ue = x == null ? void 0 : x.data) == null ? void 0 : Ue.data) == null ? void 0 : tl[$e == null ? void 0 : $e[0]], Xe, $e);
|
|
3189
|
+
if ((kl = (qe = x == null ? void 0 : x.data) == null ? void 0 : qe.data) != null && kl[$e == null ? void 0 : $e[0]])
|
|
3190
|
+
return await k((Cl = (_l = x == null ? void 0 : x.data) == null ? void 0 : _l.data) == null ? void 0 : Cl[$e == null ? void 0 : $e[0]], Xe, $e);
|
|
3191
|
+
if (($e == null ? void 0 : $e.length) === 1) {
|
|
3192
|
+
const Pe = (wl = (Je = (He = x == null ? void 0 : x.data) == null ? void 0 : He.data) == null ? void 0 : Je.path) == null ? void 0 : wl.path;
|
|
3193
|
+
let Ve = "";
|
|
3194
|
+
return (El = (xl = (Al = (Il = (Dl = Pe == null ? void 0 : Pe.split("(")) == null ? void 0 : Dl[1]) == null ? void 0 : Il.split(")")) == null ? void 0 : Al[0]) == null ? void 0 : xl.split(":")) == null || El.forEach((We) => {
|
|
3195
|
+
var dl, pl;
|
|
3196
|
+
Ve = Ve === "" ? Ve + ((dl = We == null ? void 0 : We.replaceAll("'", "")) == null ? void 0 : dl.trim()) : Ve + "/" + ((pl = We == null ? void 0 : We.replaceAll("'", "")) == null ? void 0 : pl.trim());
|
|
3197
|
+
}), await D((Tl = (Bl = ($l = x == null ? void 0 : x.data) == null ? void 0 : $l.data) == null ? void 0 : Bl.data) == null ? void 0 : Tl[$e == null ? void 0 : $e[0]], Ve, $e);
|
|
3198
|
+
} else {
|
|
3199
|
+
const Pe = (Fl = (Ol = (Sl = x == null ? void 0 : x.data) == null ? void 0 : Sl.data) == null ? void 0 : Ol.path) == null ? void 0 : Fl.path;
|
|
3200
|
+
let Ve = "";
|
|
3201
|
+
return (sa = (fl = (Pl = (Rl = (Ll = Pe == null ? void 0 : Pe.split("(")) == null ? void 0 : Ll[1]) == null ? void 0 : Rl.split(")")) == null ? void 0 : Pl[0]) == null ? void 0 : fl.split(":")) == null || sa.forEach((We) => {
|
|
3202
|
+
var dl, pl;
|
|
3203
|
+
Ve = Ve === "" ? Ve + ((dl = We == null ? void 0 : We.replaceAll("'", "")) == null ? void 0 : dl.trim()) : Ve + "/" + ((pl = We == null ? void 0 : We.replaceAll("'", "")) == null ? void 0 : pl.trim());
|
|
3204
|
+
}), await k((oa = (na = (ia = x == null ? void 0 : x.data) == null ? void 0 : ia.data) == null ? void 0 : na.data) == null ? void 0 : oa[$e == null ? void 0 : $e[0]], Ve, $e);
|
|
3205
|
+
}
|
|
3206
|
+
}
|
|
3207
|
+
}
|
|
3208
|
+
});
|
|
3209
|
+
await Promise.all(Z);
|
|
3210
|
+
}
|
|
3211
|
+
G.value = !0;
|
|
3212
|
+
}, t = async (s) => {
|
|
3213
|
+
var Y, te, de;
|
|
3214
|
+
const c = l(s);
|
|
3215
|
+
let n;
|
|
3216
|
+
s != null && s[0].path && (n = await (c == null ? void 0 : c.map(async (u, v) => {
|
|
3217
|
+
var U, w, B, m, r, X, ue, L, O, x;
|
|
3218
|
+
const C = (await Ul({
|
|
3219
|
+
key: {
|
|
3220
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3221
|
+
type: "data",
|
|
3222
|
+
pageKey: (U = s == null ? void 0 : s[0]) == null ? void 0 : U.path
|
|
3223
|
+
}
|
|
3224
|
+
})).data.result;
|
|
3225
|
+
let h = "";
|
|
3226
|
+
const P = await bl(z.value, sessionStorage.getItem("systemKey"), "");
|
|
3227
|
+
return C == null || C.forEach((ne) => {
|
|
3228
|
+
var ee, Z, pe, le, ke;
|
|
3229
|
+
((Z = (ee = ne == null ? void 0 : ne.value) == null ? void 0 : ee.tableData) == null ? void 0 : Z.算法名称) === ((pe = c == null ? void 0 : c[v]) == null ? void 0 : pe.method) && (h = (ke = (le = ne == null ? void 0 : ne.value) == null ? void 0 : le.tableData) == null ? void 0 : ke.算法体);
|
|
3230
|
+
}), {
|
|
3231
|
+
buttonName: ((w = c == null ? void 0 : c[v]) == null ? void 0 : w.method) ?? ((r = (m = (B = C == null ? void 0 : C[0]) == null ? void 0 : B.value) == null ? void 0 : m.tableData) == null ? void 0 : r.算法名称),
|
|
3232
|
+
api: h === "" ? (L = (ue = (X = C == null ? void 0 : C[0]) == null ? void 0 : X.value) == null ? void 0 : ue.tableData) == null ? void 0 : L.算法体 : h,
|
|
3233
|
+
content: P == null ? void 0 : P.filter((ne) => ne.comp !== "methodButton"),
|
|
3234
|
+
extraContent: (O = l(u.value)) == null ? void 0 : O.slice(1),
|
|
3235
|
+
methodName: (u == null ? void 0 : u.path) ?? "",
|
|
3236
|
+
extraValues: (x = c == null ? void 0 : c[v]) == null ? void 0 : x.data
|
|
3237
|
+
};
|
|
3238
|
+
})));
|
|
3239
|
+
const _ = c == null ? void 0 : c.map(async (u) => {
|
|
3240
|
+
var U, w, B, m, r, X;
|
|
3241
|
+
const F = (U = (await Ul({
|
|
3242
|
+
key: {
|
|
3243
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3244
|
+
parentTable: "",
|
|
3245
|
+
type: "method",
|
|
3246
|
+
methodName: u.method
|
|
3247
|
+
}
|
|
3248
|
+
})).data.result) == null ? void 0 : U[0], C = await Ul({
|
|
3249
|
+
key: {
|
|
3250
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
3251
|
+
type: "methodData",
|
|
3252
|
+
tableId: F == null ? void 0 : F.id
|
|
3253
|
+
}
|
|
3254
|
+
}), h = await bl(z.value, sessionStorage.getItem("systemKey"), ""), P = (w = C.data.result) == null ? void 0 : w[0];
|
|
3255
|
+
return {
|
|
3256
|
+
buttonName: (B = F == null ? void 0 : F.key) == null ? void 0 : B.methodKey,
|
|
3257
|
+
api: (r = (m = P == null ? void 0 : P.value) == null ? void 0 : m.tableData) == null ? void 0 : r[0],
|
|
3258
|
+
content: h == null ? void 0 : h.filter((ue) => ue.comp !== "methodButton"),
|
|
3259
|
+
extraContent: (X = l(u.value)) == null ? void 0 : X.slice(1),
|
|
3260
|
+
methodName: (u == null ? void 0 : u.method) ?? ""
|
|
3261
|
+
};
|
|
3262
|
+
}), b = (Y = s == null ? void 0 : s[0]) != null && Y.path && ((te = s == null ? void 0 : s[0]) == null ? void 0 : te.path) !== "" ? await Promise.all(n) : await Promise.all(_);
|
|
3263
|
+
y.value = b == null ? void 0 : b.filter((u) => u == null ? void 0 : u.extraContent), (de = y.value) == null || de.forEach((u) => {
|
|
3264
|
+
var v;
|
|
3265
|
+
u.api === "" && ((v = u.content) == null || v.forEach((F) => {
|
|
3266
|
+
var C;
|
|
3267
|
+
F.comp == "Table" && a.setExtraContents($a(F.compData, (C = u.extraContent) == null ? void 0 : C[0]));
|
|
3268
|
+
}));
|
|
3269
|
+
});
|
|
3270
|
+
};
|
|
3271
|
+
return je(
|
|
3272
|
+
() => i.itemData,
|
|
3273
|
+
async () => {
|
|
3274
|
+
V.value == "view" && !G.value && await t(l(i.itemData)), G.value = !1;
|
|
3275
|
+
},
|
|
3276
|
+
{ immediate: !0, deep: !0 }
|
|
3277
|
+
), (s, c) => (q(), ce("div", qi, [
|
|
3278
|
+
(q(!0), ce(Se, null, Oe(y.value, (n) => (q(), ce("div", null, [
|
|
3279
|
+
n.api !== "" ? (q(), Fe(ma(Ka), {
|
|
3280
|
+
key: 0,
|
|
3281
|
+
class: "calculator-content",
|
|
3282
|
+
modelValue: n.buttonName,
|
|
3283
|
+
onClickTrigger: (_) => W(n),
|
|
3284
|
+
loading: f.value
|
|
3285
|
+
}, null, 8, ["modelValue", "onClickTrigger", "loading"])) : Ye("", !0)
|
|
3286
|
+
]))), 256))
|
|
3287
|
+
]));
|
|
3288
|
+
}
|
|
3289
|
+
}, Qi = /* @__PURE__ */ Re(Hi, [["__scopeId", "data-v-96750a25"]]), Xi = {};
|
|
3290
|
+
function Yi(d, y) {
|
|
3291
|
+
return " 567 ";
|
|
3292
|
+
}
|
|
3293
|
+
const Zi = /* @__PURE__ */ Re(Xi, [["render", Yi]]), en = { class: "module content" }, ln = { class: "module data" }, an = { class: "module layout" }, sn = { class: "form-content" }, nn = /* @__PURE__ */ hl({
|
|
3294
|
+
__name: "operate",
|
|
3295
|
+
props: {
|
|
3296
|
+
itemContents: {
|
|
3297
|
+
type: Array,
|
|
3298
|
+
default: () => []
|
|
3299
|
+
},
|
|
3300
|
+
originalItemContents: {
|
|
3301
|
+
type: Array,
|
|
3302
|
+
default: () => []
|
|
3303
|
+
}
|
|
3304
|
+
},
|
|
3305
|
+
emits: ["change"],
|
|
3306
|
+
setup(d, { emit: y }) {
|
|
3307
|
+
const i = d, a = y, f = ea({
|
|
3308
|
+
visible: !1,
|
|
3309
|
+
width: "40%",
|
|
3310
|
+
title: "签名配置"
|
|
3311
|
+
}), T = J("create"), j = J([
|
|
3312
|
+
{
|
|
3313
|
+
label: "取消",
|
|
3314
|
+
background: "#c0c4cc"
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
label: "确认",
|
|
3318
|
+
background: "#436aaf"
|
|
3319
|
+
}
|
|
3320
|
+
]), I = J([
|
|
3321
|
+
{
|
|
3322
|
+
label: "宽度(%):",
|
|
3323
|
+
prop: "signPadWidth",
|
|
3324
|
+
type: "number",
|
|
3325
|
+
value: "30"
|
|
3326
|
+
},
|
|
3327
|
+
{
|
|
3328
|
+
label: "弹窗名称:",
|
|
3329
|
+
prop: "dialogTitle",
|
|
3330
|
+
type: "input",
|
|
3331
|
+
value: ""
|
|
3332
|
+
},
|
|
3333
|
+
{
|
|
3334
|
+
label: "弹窗宽度(%):",
|
|
3335
|
+
prop: "dialogWidth",
|
|
3336
|
+
type: "number",
|
|
3337
|
+
value: "30"
|
|
3338
|
+
},
|
|
3339
|
+
{
|
|
3340
|
+
label: "弹窗显示:",
|
|
3341
|
+
prop: "dialogShow",
|
|
3342
|
+
type: "radio",
|
|
3343
|
+
contents: [
|
|
3344
|
+
{
|
|
3345
|
+
label: "显示",
|
|
3346
|
+
value: !0
|
|
3347
|
+
},
|
|
3348
|
+
{
|
|
3349
|
+
label: "隐藏",
|
|
3350
|
+
value: !1
|
|
3351
|
+
}
|
|
3352
|
+
],
|
|
3353
|
+
value: !1,
|
|
3354
|
+
isFormColHidden: !0
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
label: "路径:",
|
|
3358
|
+
prop: "url",
|
|
3359
|
+
type: "input",
|
|
3360
|
+
value: "",
|
|
3361
|
+
isFormColHidden: !0
|
|
3362
|
+
}
|
|
3363
|
+
]), V = la(() => [
|
|
3364
|
+
{
|
|
3365
|
+
label: "",
|
|
3366
|
+
prop: "index",
|
|
3367
|
+
type: "input",
|
|
3368
|
+
value: "",
|
|
3369
|
+
isFormColHidden: !0
|
|
3370
|
+
},
|
|
3371
|
+
{
|
|
3372
|
+
label: "类型:",
|
|
3373
|
+
prop: "label",
|
|
3374
|
+
type: "select",
|
|
3375
|
+
contents: [
|
|
3376
|
+
{
|
|
3377
|
+
label: "电子签名",
|
|
3378
|
+
value: "电子签名"
|
|
3379
|
+
},
|
|
3380
|
+
{
|
|
3381
|
+
label: "签字版",
|
|
3382
|
+
value: "签字版"
|
|
3383
|
+
},
|
|
3384
|
+
{
|
|
3385
|
+
label: "上传签名",
|
|
3386
|
+
value: "上传签名"
|
|
3387
|
+
}
|
|
3388
|
+
],
|
|
3389
|
+
value: ""
|
|
3390
|
+
},
|
|
3391
|
+
{
|
|
3392
|
+
label: "图标",
|
|
3393
|
+
prop: "icon",
|
|
3394
|
+
type: "inputPopover",
|
|
3395
|
+
value: ""
|
|
3396
|
+
}
|
|
3397
|
+
// {
|
|
3398
|
+
// label: '是否禁用',
|
|
3399
|
+
// prop: 'disabled',
|
|
3400
|
+
// type: 'radio',
|
|
3401
|
+
// contents: [
|
|
3402
|
+
// {
|
|
3403
|
+
// label: '是',
|
|
3404
|
+
// value: true,
|
|
3405
|
+
// },
|
|
3406
|
+
// {
|
|
3407
|
+
// label: '否',
|
|
3408
|
+
// value: false,
|
|
3409
|
+
// }
|
|
3410
|
+
// ],
|
|
3411
|
+
// value: false
|
|
3412
|
+
// },
|
|
3413
|
+
]), z = J({}), E = J([]), H = () => ({
|
|
3414
|
+
comp: "Signature",
|
|
3415
|
+
compData: [
|
|
3416
|
+
{
|
|
3417
|
+
key: "signTypeList",
|
|
3418
|
+
contents: E.value
|
|
3419
|
+
},
|
|
3420
|
+
{
|
|
3421
|
+
key: "signConfig",
|
|
3422
|
+
contents: z.value
|
|
3423
|
+
}
|
|
3424
|
+
]
|
|
3425
|
+
}), G = (k) => {
|
|
3426
|
+
var D;
|
|
3427
|
+
z.value = l(k), a("change", (D = H()) == null ? void 0 : D.compData);
|
|
3428
|
+
}, oe = (k) => {
|
|
3429
|
+
var D, W;
|
|
3430
|
+
if ((k == null ? void 0 : k.buttonName) === "确认") {
|
|
3431
|
+
const t = l(k == null ? void 0 : k.content);
|
|
3432
|
+
switch (T.value) {
|
|
3433
|
+
case "create":
|
|
3434
|
+
E.value.push({
|
|
3435
|
+
...t,
|
|
3436
|
+
index: ((D = E.value) == null ? void 0 : D.length) + 1
|
|
3437
|
+
});
|
|
3438
|
+
break;
|
|
3439
|
+
}
|
|
3440
|
+
a("change", (W = H()) == null ? void 0 : W.compData), f.visible = !1;
|
|
3441
|
+
} else
|
|
3442
|
+
f.visible = !1;
|
|
3443
|
+
}, S = (k, D) => {
|
|
3444
|
+
var W, t;
|
|
3445
|
+
switch (k) {
|
|
3446
|
+
case "create":
|
|
3447
|
+
(W = V.value) == null || W.forEach((s) => {
|
|
3448
|
+
s.value = "";
|
|
3449
|
+
}), T.value = "create", f.visible = !0;
|
|
3450
|
+
break;
|
|
3451
|
+
case "update":
|
|
3452
|
+
(t = V.value) == null || t.forEach((s) => {
|
|
3453
|
+
s.value = D[s == null ? void 0 : s.prop];
|
|
3454
|
+
}), T.value = "update", f.visible = !0;
|
|
3455
|
+
break;
|
|
3456
|
+
case "delete":
|
|
3457
|
+
E.value.splice(D, 1), T.value = "delete";
|
|
3458
|
+
break;
|
|
3459
|
+
}
|
|
3460
|
+
}, Q = () => {
|
|
3461
|
+
f.visible = !1;
|
|
3462
|
+
};
|
|
3463
|
+
return je(() => i == null ? void 0 : i.itemContents, (k) => {
|
|
3464
|
+
var D, W;
|
|
3465
|
+
k && (z.value = ((D = k == null ? void 0 : k.find((t) => t.key === "signConfig")) == null ? void 0 : D.contents) ?? {}, E.value = ((W = k == null ? void 0 : k.find((t) => t.key === "signTypeList")) == null ? void 0 : W.contents) ?? []);
|
|
3466
|
+
}, { immediate: !0 }), (k, D) => {
|
|
3467
|
+
const W = Te("svg-icon"), t = Te("el-button");
|
|
3468
|
+
return q(), ce(Se, null, [
|
|
3469
|
+
A("div", null, [
|
|
3470
|
+
A("div", en, [
|
|
3471
|
+
D[2] || (D[2] = A("h4", { class: "module-title" }, "签名类型", -1)),
|
|
3472
|
+
K(t, {
|
|
3473
|
+
class: "module-icon",
|
|
3474
|
+
id: "themeButton",
|
|
3475
|
+
onClick: D[0] || (D[0] = (s) => S("create"))
|
|
3476
|
+
}, {
|
|
3477
|
+
icon: se(() => [
|
|
3478
|
+
K(W, {
|
|
3479
|
+
name: "Plus",
|
|
3480
|
+
class: "icon-size"
|
|
3481
|
+
})
|
|
3482
|
+
]),
|
|
3483
|
+
default: se(() => [
|
|
3484
|
+
D[1] || (D[1] = xe(" 新增 "))
|
|
3485
|
+
]),
|
|
3486
|
+
_: 1,
|
|
3487
|
+
__: [1]
|
|
3488
|
+
})
|
|
3489
|
+
]),
|
|
3490
|
+
A("div", ln, [
|
|
3491
|
+
(q(!0), ce(Se, null, Oe(E.value, (s, c) => (q(), ce("div", {
|
|
3492
|
+
class: "module-data-item",
|
|
3493
|
+
key: c
|
|
3494
|
+
}, [
|
|
3495
|
+
A("span", null, me(s == null ? void 0 : s.label), 1),
|
|
3496
|
+
A("div", null, [
|
|
3497
|
+
K(t, {
|
|
3498
|
+
type: "primary",
|
|
3499
|
+
size: "small",
|
|
3500
|
+
onClick: (n) => S("update", { ...s, index: c + 1 })
|
|
3501
|
+
}, {
|
|
3502
|
+
default: se(() => D[3] || (D[3] = [
|
|
3503
|
+
xe("修改")
|
|
3504
|
+
])),
|
|
3505
|
+
_: 2,
|
|
3506
|
+
__: [3]
|
|
3507
|
+
}, 1032, ["onClick"]),
|
|
3508
|
+
K(t, {
|
|
3509
|
+
type: "danger",
|
|
3510
|
+
size: "small",
|
|
3511
|
+
onClick: (n) => S("delete", c)
|
|
3512
|
+
}, {
|
|
3513
|
+
default: se(() => D[4] || (D[4] = [
|
|
3514
|
+
xe("删除")
|
|
3515
|
+
])),
|
|
3516
|
+
_: 2,
|
|
3517
|
+
__: [4]
|
|
3518
|
+
}, 1032, ["onClick"])
|
|
3519
|
+
])
|
|
3520
|
+
]))), 128))
|
|
3521
|
+
]),
|
|
3522
|
+
A("div", an, [
|
|
3523
|
+
K(ze, {
|
|
3524
|
+
rowContents: I.value,
|
|
3525
|
+
onChange: G
|
|
3526
|
+
}, null, 8, ["rowContents"])
|
|
3527
|
+
])
|
|
3528
|
+
]),
|
|
3529
|
+
K(Ge, {
|
|
3530
|
+
visible: f.visible,
|
|
3531
|
+
title: f.title,
|
|
3532
|
+
onBeforeDestroy: Q,
|
|
3533
|
+
width: f.width
|
|
3534
|
+
}, {
|
|
3535
|
+
default: se(() => [
|
|
3536
|
+
A("div", sn, [
|
|
3537
|
+
(q(), Fe(ze, {
|
|
3538
|
+
rowContents: V.value,
|
|
3539
|
+
key: V.value,
|
|
3540
|
+
isEnableWrap: !1,
|
|
3541
|
+
isButtonRow: !1,
|
|
3542
|
+
isStartJustify: !1,
|
|
3543
|
+
buttonValue: j.value,
|
|
3544
|
+
onOnButtonClick: oe
|
|
3545
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
3546
|
+
])
|
|
3547
|
+
]),
|
|
3548
|
+
_: 1
|
|
3549
|
+
}, 8, ["visible", "title", "width"])
|
|
3550
|
+
], 64);
|
|
3551
|
+
};
|
|
3552
|
+
}
|
|
3553
|
+
}), on = /* @__PURE__ */ Re(nn, [["__scopeId", "data-v-487e0536"]]), un = /* @__PURE__ */ hl({
|
|
3554
|
+
__name: "index",
|
|
3555
|
+
props: {
|
|
3556
|
+
stepConfig: {
|
|
3557
|
+
type: Object,
|
|
3558
|
+
default: {}
|
|
3559
|
+
},
|
|
3560
|
+
stepList: {
|
|
3561
|
+
type: Array,
|
|
3562
|
+
default: () => []
|
|
3563
|
+
}
|
|
3564
|
+
},
|
|
3565
|
+
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
3566
|
+
setup(d, { emit: y }) {
|
|
3567
|
+
const i = d, a = y, f = J(1), T = la(() => {
|
|
3568
|
+
var H, G;
|
|
3569
|
+
return (H = i == null ? void 0 : i.stepConfig) != null && H.allowTrigger ? f.value : (G = i == null ? void 0 : i.stepConfig) == null ? void 0 : G.active;
|
|
3570
|
+
}), j = (H, G) => {
|
|
3571
|
+
f.value = G, a("clickStep", H, G);
|
|
3572
|
+
}, I = (H) => Ja(H), V = () => {
|
|
3573
|
+
var G;
|
|
3574
|
+
const H = (G = i == null ? void 0 : i.stepList) == null ? void 0 : G.find((oe, S) => S + 1 === T.value);
|
|
3575
|
+
return console.log("findStep", H), H ? H == null ? void 0 : H.children : [];
|
|
3576
|
+
}, z = (H) => {
|
|
3577
|
+
a("clickTrigger", H);
|
|
3578
|
+
}, E = (H) => {
|
|
3579
|
+
a("changeTrigger", H);
|
|
3580
|
+
};
|
|
3581
|
+
return (H, G) => {
|
|
3582
|
+
var Q, k, D, W, t;
|
|
3583
|
+
const oe = Te("el-step"), S = Te("el-steps");
|
|
3584
|
+
return q(), ce(Se, null, [
|
|
3585
|
+
K(S, {
|
|
3586
|
+
direction: (Q = d.stepConfig) == null ? void 0 : Q.direction,
|
|
3587
|
+
active: T.value,
|
|
3588
|
+
"finish-status": "success",
|
|
3589
|
+
simple: (k = d.stepConfig) == null ? void 0 : k.simple,
|
|
3590
|
+
"align-center": ((D = d.stepConfig) == null ? void 0 : D.alignCenter) ?? !0
|
|
3591
|
+
}, {
|
|
3592
|
+
default: se(() => [
|
|
3593
|
+
(q(!0), ce(Se, null, Oe(d.stepList, (s, c) => (q(), Fe(oe, {
|
|
3594
|
+
key: c,
|
|
3595
|
+
class: "step-item",
|
|
3596
|
+
onClick: (n) => j(s, c + 1)
|
|
3597
|
+
}, {
|
|
3598
|
+
title: se(() => [
|
|
3599
|
+
Wl(H.$slots, "title", {
|
|
3600
|
+
title: s == null ? void 0 : s.title
|
|
3601
|
+
}, void 0, !0)
|
|
3602
|
+
]),
|
|
3603
|
+
description: se(() => [
|
|
3604
|
+
Wl(H.$slots, "description", {
|
|
3605
|
+
description: s == null ? void 0 : s.description
|
|
3606
|
+
}, void 0, !0)
|
|
3607
|
+
]),
|
|
3608
|
+
_: 2
|
|
3609
|
+
}, 1032, ["onClick"]))), 128))
|
|
3610
|
+
]),
|
|
3611
|
+
_: 3
|
|
3612
|
+
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
3613
|
+
(W = d.stepConfig) != null && W.allowTrigger && ((t = d.stepConfig) != null && t.active) ? (q(!0), ce(Se, { key: 0 }, Oe(V(), (s, c) => (q(), ce("div", {
|
|
3614
|
+
key: c,
|
|
3615
|
+
class: "step-cont-wrap"
|
|
3616
|
+
}, [
|
|
3617
|
+
(q(), Fe(Nl(I(s == null ? void 0 : s.type)), {
|
|
3618
|
+
modelValue: s.value,
|
|
3619
|
+
"onUpdate:modelValue": (n) => s.value = n,
|
|
3620
|
+
onClickTrigger: z,
|
|
3621
|
+
onChangeTrigger: E,
|
|
3622
|
+
content: s == null ? void 0 : s.content
|
|
3623
|
+
}, Va({ _: 2 }, [
|
|
3624
|
+
Oe(H.$slots, (n, _) => ({
|
|
3625
|
+
name: _,
|
|
3626
|
+
fn: se((b) => [
|
|
3627
|
+
Wl(H.$slots, _, Na({ ref_for: !0 }, b || {}), void 0, !0)
|
|
3628
|
+
])
|
|
3629
|
+
}))
|
|
3630
|
+
]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
|
|
3631
|
+
]))), 128)) : Ye("", !0)
|
|
3632
|
+
], 64);
|
|
3633
|
+
};
|
|
3634
|
+
}
|
|
3635
|
+
}), rn = /* @__PURE__ */ Re(un, [["__scopeId", "data-v-d7c99969"]]), cn = /* @__PURE__ */ hl({
|
|
3636
|
+
__name: "index",
|
|
3637
|
+
props: {
|
|
3638
|
+
itemData: {
|
|
3639
|
+
type: Array,
|
|
3640
|
+
default: () => []
|
|
3641
|
+
},
|
|
3642
|
+
childItemData: {
|
|
3643
|
+
type: Array,
|
|
3644
|
+
default: () => []
|
|
3645
|
+
}
|
|
3646
|
+
},
|
|
3647
|
+
emits: ["clickStep"],
|
|
3648
|
+
setup(d, { emit: y }) {
|
|
3649
|
+
const i = d, a = y, f = J({}), T = J([]), j = (I, V) => {
|
|
3650
|
+
a("clickStep", I, V);
|
|
3651
|
+
};
|
|
3652
|
+
return je(() => i == null ? void 0 : i.itemData, (I) => {
|
|
3653
|
+
var V, z;
|
|
3654
|
+
T.value = (V = I == null ? void 0 : I.find((E) => (E == null ? void 0 : E.key) === "stepList")) == null ? void 0 : V.contents, f.value = (z = I == null ? void 0 : I.find((E) => (E == null ? void 0 : E.key) === "stepConfig")) == null ? void 0 : z.contents;
|
|
3655
|
+
}, {
|
|
3656
|
+
immediate: !0
|
|
3657
|
+
}), (I, V) => {
|
|
3658
|
+
const z = Te("svg-icon");
|
|
3659
|
+
return q(), Fe(rn, {
|
|
3660
|
+
stepConfig: f.value,
|
|
3661
|
+
stepList: T.value,
|
|
3662
|
+
onClickStep: j
|
|
3663
|
+
}, {
|
|
3664
|
+
icon: se(() => [
|
|
3665
|
+
K(z, { name: "import" })
|
|
3666
|
+
]),
|
|
3667
|
+
title: se(({ title: E }) => [
|
|
3668
|
+
xe(me(E), 1)
|
|
3669
|
+
]),
|
|
3670
|
+
description: se(({ description: E }) => [
|
|
3671
|
+
xe(me(E), 1)
|
|
3672
|
+
]),
|
|
3673
|
+
_: 1
|
|
3674
|
+
}, 8, ["stepConfig", "stepList"]);
|
|
3675
|
+
};
|
|
3676
|
+
}
|
|
3677
|
+
}), tn = /* @__PURE__ */ hl({
|
|
3678
|
+
__name: "index",
|
|
3679
|
+
props: {
|
|
3680
|
+
activities: {
|
|
3681
|
+
type: Array,
|
|
3682
|
+
default: () => []
|
|
3683
|
+
},
|
|
3684
|
+
timeLineConfig: {
|
|
3685
|
+
type: Object,
|
|
3686
|
+
default: () => {
|
|
3687
|
+
}
|
|
3688
|
+
}
|
|
3689
|
+
},
|
|
3690
|
+
setup(d) {
|
|
3691
|
+
return (y, i) => {
|
|
3692
|
+
const a = Te("el-timeline-item"), f = Te("el-timeline");
|
|
3693
|
+
return q(), Fe(f, null, {
|
|
3694
|
+
default: se(() => [
|
|
3695
|
+
(q(!0), ce(Se, null, Oe(d.activities, (T, j) => (q(), Fe(a, {
|
|
3696
|
+
key: j,
|
|
3697
|
+
timestamp: T.timestamp,
|
|
3698
|
+
placement: d.timeLineConfig.placement,
|
|
3699
|
+
center: d.timeLineConfig.isCenter,
|
|
3700
|
+
"hide-timestamp": !0,
|
|
3701
|
+
type: d.timeLineConfig.type,
|
|
3702
|
+
color: d.timeLineConfig.color,
|
|
3703
|
+
size: d.timeLineConfig.size,
|
|
3704
|
+
icon: d.timeLineConfig.icon,
|
|
3705
|
+
hollow: d.timeLineConfig.isHollow
|
|
3706
|
+
}, {
|
|
3707
|
+
default: se(() => [
|
|
3708
|
+
Wl(y.$slots, "content", {
|
|
3709
|
+
content: T == null ? void 0 : T.content,
|
|
3710
|
+
timestamp: T == null ? void 0 : T.timestamp
|
|
3711
|
+
}, void 0, !0)
|
|
3712
|
+
]),
|
|
3713
|
+
_: 2
|
|
3714
|
+
}, 1032, ["timestamp", "placement", "center", "type", "color", "size", "icon", "hollow"]))), 128))
|
|
3715
|
+
]),
|
|
3716
|
+
_: 3
|
|
3717
|
+
});
|
|
3718
|
+
};
|
|
3719
|
+
}
|
|
3720
|
+
}), dn = /* @__PURE__ */ Re(tn, [["__scopeId", "data-v-4172a886"]]), pn = { class: "line-content" }, fn = { class: "line-time" }, vn = /* @__PURE__ */ hl({
|
|
3721
|
+
__name: "index",
|
|
3722
|
+
props: {
|
|
3723
|
+
itemData: {
|
|
3724
|
+
type: Array,
|
|
3725
|
+
default: () => []
|
|
3726
|
+
}
|
|
3727
|
+
},
|
|
3728
|
+
setup(d) {
|
|
3729
|
+
const y = d, i = J({}), a = J([]);
|
|
3730
|
+
return je(() => y == null ? void 0 : y.itemData, (f) => {
|
|
3731
|
+
var T, j;
|
|
3732
|
+
a.value = (T = f == null ? void 0 : f.find((I) => (I == null ? void 0 : I.key) === "timeLineList")) == null ? void 0 : T.contents, i.value = (j = f == null ? void 0 : f.find((I) => (I == null ? void 0 : I.key) === "timeLineConfig")) == null ? void 0 : j.contents;
|
|
3733
|
+
}, {
|
|
3734
|
+
immediate: !0
|
|
3735
|
+
}), (f, T) => (q(), Fe(dn, {
|
|
3736
|
+
activities: a.value,
|
|
3737
|
+
timeLineConfig: i.value
|
|
3738
|
+
}, {
|
|
3739
|
+
content: se(({ content: j, timestamp: I }) => [
|
|
3740
|
+
A("span", pn, me(j), 1),
|
|
3741
|
+
A("span", fn, me(I), 1)
|
|
3742
|
+
]),
|
|
3743
|
+
_: 1
|
|
3744
|
+
}, 8, ["activities", "timeLineConfig"]));
|
|
3745
|
+
}
|
|
3746
|
+
}), hn = /* @__PURE__ */ Re(vn, [["__scopeId", "data-v-b4d9deed"]]), mn = { class: "tabs-content" }, yn = {
|
|
3747
|
+
__name: "index",
|
|
3748
|
+
props: {
|
|
3749
|
+
itemData: {
|
|
3750
|
+
type: Array,
|
|
3751
|
+
default: () => []
|
|
3752
|
+
},
|
|
3753
|
+
childItemData: {
|
|
3754
|
+
type: Array,
|
|
3755
|
+
default: () => []
|
|
3756
|
+
},
|
|
3757
|
+
index: Number
|
|
3758
|
+
},
|
|
3759
|
+
setup(d) {
|
|
3760
|
+
const y = d, i = J([]);
|
|
3761
|
+
return je(
|
|
3762
|
+
() => y == null ? void 0 : y.itemData,
|
|
3763
|
+
(a) => {
|
|
3764
|
+
const f = a.find((T) => (T == null ? void 0 : T.key) == "stepList");
|
|
3765
|
+
f && (i.value = f.contents.map((T) => ({
|
|
3766
|
+
value: T.value || T.title,
|
|
3767
|
+
label: T.label || T.title,
|
|
3768
|
+
children: T.children || []
|
|
3769
|
+
// 关键:传递子内容
|
|
3770
|
+
})));
|
|
3771
|
+
},
|
|
3772
|
+
{ immediate: !0, deep: !0 }
|
|
3773
|
+
), (a, f) => (q(), ce("div", mn, [
|
|
3774
|
+
K(Ga, { tabsContents: i.value }, null, 8, ["tabsContents"])
|
|
3775
|
+
]));
|
|
3776
|
+
}
|
|
3777
|
+
}, bn = /* @__PURE__ */ Re(yn, [["__scopeId", "data-v-d3bb10b7"]]), Ml = ya("tabComp", {
|
|
3778
|
+
state: () => ({
|
|
3779
|
+
itemData: [],
|
|
3780
|
+
originalData: [],
|
|
3781
|
+
extraContents: [],
|
|
3782
|
+
nodeDev: "",
|
|
3783
|
+
isEdit: "view",
|
|
3784
|
+
isRefreshCurStructure: !1,
|
|
3785
|
+
isSubmitCurStructure: !1,
|
|
3786
|
+
curStructureCompIds: []
|
|
3787
|
+
}),
|
|
3788
|
+
actions: {
|
|
3789
|
+
setItemData(d) {
|
|
3790
|
+
this.itemData = d;
|
|
3791
|
+
},
|
|
3792
|
+
setCurStructureCompIds(d) {
|
|
3793
|
+
this.curStructureCompIds = d;
|
|
3794
|
+
},
|
|
3795
|
+
setRefreshCurStructure(d) {
|
|
3796
|
+
this.isRefreshCurStructure = d;
|
|
3797
|
+
},
|
|
3798
|
+
setOriginalData(d) {
|
|
3799
|
+
this.originalData = d;
|
|
3800
|
+
},
|
|
3801
|
+
setExtraContents(d) {
|
|
3802
|
+
this.extraContents = d;
|
|
3803
|
+
},
|
|
3804
|
+
setNodeDev(d) {
|
|
3805
|
+
this.nodeDev = d;
|
|
3806
|
+
},
|
|
3807
|
+
setIsEdit(d) {
|
|
3808
|
+
this.isEdit = d;
|
|
3809
|
+
}
|
|
3810
|
+
}
|
|
3811
|
+
}), gn = { class: "type-select" }, kn = ["onClick"], _n = { class: "list-icon" }, Cn = {
|
|
3812
|
+
__name: "modelSelect",
|
|
3813
|
+
setup(d) {
|
|
3814
|
+
const y = Ml(Qe), { itemData: i } = il(y), a = (f) => {
|
|
3815
|
+
const T = l(i.value);
|
|
3816
|
+
T.push({
|
|
3817
|
+
comp: f.comp,
|
|
3818
|
+
name: f.name,
|
|
3819
|
+
compData: []
|
|
3820
|
+
}), y.setItemData(T);
|
|
3821
|
+
};
|
|
3822
|
+
return (f, T) => {
|
|
3823
|
+
const j = Te("svg-icon");
|
|
3824
|
+
return q(), ce("div", gn, [
|
|
3825
|
+
(q(!0), ce(Se, null, Oe(ma(io), (I, V) => (q(), ce("div", {
|
|
3826
|
+
class: "type-list",
|
|
3827
|
+
key: V
|
|
3828
|
+
}, [
|
|
3829
|
+
A("div", {
|
|
3830
|
+
class: "list-content",
|
|
3831
|
+
onClick: (z) => a(I)
|
|
3832
|
+
}, [
|
|
3833
|
+
A("div", _n, [
|
|
3834
|
+
K(j, {
|
|
3835
|
+
name: I.icon
|
|
3836
|
+
}, null, 8, ["name"])
|
|
3837
|
+
]),
|
|
3838
|
+
A("div", null, me(I.name), 1)
|
|
3839
|
+
], 8, kn)
|
|
3840
|
+
]))), 128))
|
|
3841
|
+
]);
|
|
3842
|
+
};
|
|
3843
|
+
}
|
|
3844
|
+
}, wn = /* @__PURE__ */ Re(Cn, [["__scopeId", "data-v-91799bf8"]]), Dn = { class: "fill-content" }, In = { class: "operate-content" }, An = { class: "collapse-title-content" }, xn = { class: "collapse-title-item" }, En = { key: 1 }, $n = ["onClick"], Bn = { class: "icon-content" }, Tn = {
|
|
3845
|
+
key: 0,
|
|
3846
|
+
class: "edit-content"
|
|
3847
|
+
}, Sn = ["onClick"], On = { class: "comp-child" }, Fn = {
|
|
3848
|
+
__name: "modelFill",
|
|
3849
|
+
setup(d) {
|
|
3850
|
+
const y = Ml(Qe), { itemData: i, originalData: a } = il(y), f = J([]);
|
|
3851
|
+
J([]);
|
|
3852
|
+
const T = J([]), j = J([]), I = (oe) => {
|
|
3853
|
+
var Q;
|
|
3854
|
+
let S = (Q = l(j.value)) == null ? void 0 : Q.map((k, D) => (oe === D && (k.content = !0), k));
|
|
3855
|
+
j.value = S;
|
|
3856
|
+
}, V = (oe) => {
|
|
3857
|
+
var Q;
|
|
3858
|
+
let S = (Q = l(j.value)) == null ? void 0 : Q.map((k, D) => (oe === D && (k.content = !1), k));
|
|
3859
|
+
j.value = S, f.value = l(i.value);
|
|
3860
|
+
}, z = (oe, S) => {
|
|
3861
|
+
var W;
|
|
3862
|
+
let Q = (W = l(j.value)) == null ? void 0 : W.map((t, s) => (oe === s && (t.content = !1), t));
|
|
3863
|
+
j.value = Q;
|
|
3864
|
+
const k = l(i.value), D = k == null ? void 0 : k.filter((t, s) => (s === oe && (t.name = S), t));
|
|
3865
|
+
y.setOriginalData(D), y.setItemData(D);
|
|
3866
|
+
};
|
|
3867
|
+
je(
|
|
3868
|
+
() => i.value,
|
|
3869
|
+
() => {
|
|
3870
|
+
var oe, S, Q;
|
|
3871
|
+
!i.value || ((oe = i.value) == null ? void 0 : oe.length) === 0 ? f.value = [] : f.value = (S = l(i.value)) == null ? void 0 : S.filter((k) => (k == null ? void 0 : k.comp) !== "methodButton"), T.value = f.value, j.value = (Q = l(T.value)) == null ? void 0 : Q.map((k, D) => ({
|
|
3872
|
+
id: D,
|
|
3873
|
+
content: !1
|
|
3874
|
+
}));
|
|
3875
|
+
},
|
|
3876
|
+
{ deep: !0, immediate: !0 }
|
|
3877
|
+
);
|
|
3878
|
+
const E = (oe) => aa(oe), H = (oe, S, Q) => {
|
|
3879
|
+
var D, W;
|
|
3880
|
+
if (!oe) return;
|
|
3881
|
+
let k = l(i.value);
|
|
3882
|
+
k = (D = k == null ? void 0 : k.map((t, s) => (s === Q && (t.compData = oe), t))) == null ? void 0 : D.filter((t) => (t == null ? void 0 : t.comp) !== "methodButton"), j.value = (W = l(k)) == null ? void 0 : W.map((t, s) => ({
|
|
3883
|
+
id: s,
|
|
3884
|
+
content: !1
|
|
3885
|
+
})), y.setOriginalData(k), y.setItemData(k);
|
|
3886
|
+
}, G = (oe) => {
|
|
3887
|
+
cl.confirm("是否确认要删除", "", {
|
|
3888
|
+
confirmButtonText: "确认",
|
|
3889
|
+
cancelButtonText: "取消",
|
|
3890
|
+
type: "warning"
|
|
3891
|
+
}).then(() => {
|
|
3892
|
+
const S = l(i.value), Q = S == null ? void 0 : S.filter((k, D) => D !== oe);
|
|
3893
|
+
y.setOriginalData(Q), y.setItemData(Q), Ze({
|
|
3894
|
+
type: "success",
|
|
3895
|
+
message: "删除成功"
|
|
3896
|
+
});
|
|
3897
|
+
}).catch(() => {
|
|
3898
|
+
});
|
|
3899
|
+
};
|
|
3900
|
+
return (oe, S) => {
|
|
3901
|
+
const Q = Te("svg-icon");
|
|
3902
|
+
return q(), ce("div", Dn, [
|
|
3903
|
+
S[1] || (S[1] = A("div", { class: "fill-operate" }, me("操作栏"), -1)),
|
|
3904
|
+
A("div", In, [
|
|
3905
|
+
K(Za, {
|
|
3906
|
+
class: "collapse-content",
|
|
3907
|
+
collapseContents: f.value
|
|
3908
|
+
}, {
|
|
3909
|
+
title: se(({ item: k, index: D }) => {
|
|
3910
|
+
var W, t, s, c, n, _, b, Y, te, de;
|
|
3911
|
+
return [
|
|
3912
|
+
A("div", An, [
|
|
3913
|
+
A("div", xn, [
|
|
3914
|
+
(t = (W = j.value) == null ? void 0 : W.find((u) => u.id === D)) != null && t.content ? Ye("", !0) : (q(), ce("div", {
|
|
3915
|
+
key: 0,
|
|
3916
|
+
class: "collapse-title",
|
|
3917
|
+
style: ja({ marginRight: k.name && k.name !== "" ? "8px" : "0px" })
|
|
3918
|
+
}, me(k.name), 5)),
|
|
3919
|
+
(c = (s = j.value) == null ? void 0 : s.find((u) => u.id === D)) != null && c.content ? (q(), ce("div", En, [
|
|
3920
|
+
K(qa, {
|
|
3921
|
+
modelValue: k.name,
|
|
3922
|
+
"onUpdate:modelValue": (u) => k.name = u,
|
|
3923
|
+
onClick: S[0] || (S[0] = Vl(() => {
|
|
3924
|
+
}, ["stop"]))
|
|
3925
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
3926
|
+
])) : Ye("", !0),
|
|
3927
|
+
(_ = (n = j.value) == null ? void 0 : n.find((u) => u.id === D)) != null && _.content ? Ye("", !0) : (q(), ce("div", {
|
|
3928
|
+
key: 2,
|
|
3929
|
+
onClick: Vl((u) => I(D), ["stop"]),
|
|
3930
|
+
class: "icon-content"
|
|
3931
|
+
}, [
|
|
3932
|
+
K(Q, {
|
|
3933
|
+
name: "Edit",
|
|
3934
|
+
style: { width: "16px", height: "16px" }
|
|
3935
|
+
})
|
|
3936
|
+
], 8, $n))
|
|
3937
|
+
]),
|
|
3938
|
+
A("div", Bn, [
|
|
3939
|
+
(Y = (b = j.value) == null ? void 0 : b.find((u) => u.id === D)) != null && Y.content ? (q(), ce("div", Tn, [
|
|
3940
|
+
K(Q, {
|
|
3941
|
+
name: "Cancel",
|
|
3942
|
+
style: { width: "16px", height: "16px" },
|
|
3943
|
+
class: "icon-content",
|
|
3944
|
+
onClick: Vl((u) => V(D), ["stop"])
|
|
3945
|
+
}, null, 8, ["onClick"]),
|
|
3946
|
+
K(Q, {
|
|
3947
|
+
name: "Save",
|
|
3948
|
+
onClick: Vl((u) => z(D, k.name), ["stop"]),
|
|
3949
|
+
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
3950
|
+
class: "icon-content"
|
|
3951
|
+
}, null, 8, ["onClick"])
|
|
3952
|
+
])) : Ye("", !0),
|
|
3953
|
+
(de = (te = j.value) == null ? void 0 : te.find((u) => u.id === D)) != null && de.content ? Ye("", !0) : (q(), ce("div", {
|
|
3954
|
+
key: 1,
|
|
3955
|
+
onClick: Vl((u) => G(D), ["stop"]),
|
|
3956
|
+
class: "icon-content"
|
|
3957
|
+
}, [
|
|
3958
|
+
K(Q, {
|
|
3959
|
+
name: "Delete",
|
|
3960
|
+
style: { width: "16px", height: "16px" }
|
|
3961
|
+
})
|
|
3962
|
+
], 8, Sn))
|
|
3963
|
+
])
|
|
3964
|
+
])
|
|
3965
|
+
];
|
|
3966
|
+
}),
|
|
3967
|
+
content: se(({ item: k, index: D }) => {
|
|
3968
|
+
var W, t;
|
|
3969
|
+
return [
|
|
3970
|
+
A("div", On, [
|
|
3971
|
+
(q(), Fe(Nl(E(k.comp + "Operate")), {
|
|
3972
|
+
itemContents: k == null ? void 0 : k.compData,
|
|
3973
|
+
originalItemContents: (t = (W = T.value) == null ? void 0 : W.find((s, c) => c === D)) == null ? void 0 : t.compData,
|
|
3974
|
+
onChange: (s) => H(s, k, D)
|
|
3975
|
+
}, null, 40, ["itemContents", "originalItemContents", "onChange"]))
|
|
3976
|
+
])
|
|
3977
|
+
];
|
|
3978
|
+
}),
|
|
3979
|
+
_: 1
|
|
3980
|
+
}, 8, ["collapseContents"])
|
|
3981
|
+
])
|
|
3982
|
+
]);
|
|
3983
|
+
};
|
|
3984
|
+
}
|
|
3985
|
+
}, Ln = /* @__PURE__ */ Re(Fn, [["__scopeId", "data-v-78d7fc46"]]), Rn = {
|
|
3986
|
+
key: 0,
|
|
3987
|
+
class: "show-content"
|
|
3988
|
+
}, Pn = { style: { display: "flex" } }, Vn = {
|
|
3989
|
+
__name: "modelShow",
|
|
3990
|
+
setup(d) {
|
|
3991
|
+
const y = Ml(Qe), { itemData: i } = il(y), a = J([]);
|
|
3992
|
+
je(
|
|
3993
|
+
() => i.value,
|
|
3994
|
+
() => {
|
|
3995
|
+
var T;
|
|
3996
|
+
!i.value || ((T = i.value) == null ? void 0 : T.length) === 0 ? a.value = [] : a.value = l(i.value);
|
|
3997
|
+
},
|
|
3998
|
+
{ deep: !0, immediate: !0 }
|
|
3999
|
+
);
|
|
4000
|
+
const f = (T) => aa(T);
|
|
4001
|
+
return (T, j) => {
|
|
4002
|
+
var I;
|
|
4003
|
+
return ((I = a.value) == null ? void 0 : I.length) > 0 ? (q(), ce("div", Rn, [
|
|
4004
|
+
(q(!0), ce(Se, null, Oe(a.value, (V, z) => (q(), ce("div", {
|
|
4005
|
+
class: "item-content",
|
|
4006
|
+
key: z
|
|
4007
|
+
}, [
|
|
4008
|
+
A("div", Pn, me(V.name), 1),
|
|
4009
|
+
(q(), Fe(Nl(f(V.comp)), {
|
|
4010
|
+
itemData: V == null ? void 0 : V.compData,
|
|
4011
|
+
childItemData: V == null ? void 0 : V.itemChildData,
|
|
4012
|
+
key: z
|
|
4013
|
+
}, null, 8, ["itemData", "childItemData"]))
|
|
4014
|
+
]))), 128))
|
|
4015
|
+
])) : Ye("", !0);
|
|
4016
|
+
};
|
|
4017
|
+
}
|
|
4018
|
+
}, Nn = /* @__PURE__ */ Re(Vn, [["__scopeId", "data-v-3f3e863e"]]), jn = { class: "tabs-header" }, Un = { class: "tabs-list" }, Wn = { class: "tab-name" }, zn = { class: "tab-actions" }, Mn = ["onClick"], Kn = ["onClick"], Jn = ["onClick"], Gn = { class: "model-operate" }, qn = {
|
|
4019
|
+
class: "model-select",
|
|
4020
|
+
style: { display: "unset" }
|
|
4021
|
+
}, Hn = { class: "existing-components" }, Qn = { class: "component-list" }, Xn = ["onClick"], Yn = { class: "component-info" }, Zn = { class: "component-type" }, eo = { class: "component-name" }, lo = { class: "model-fill" }, ao = {
|
|
4022
|
+
__name: "operate",
|
|
4023
|
+
props: {
|
|
4024
|
+
itemContents: {
|
|
4025
|
+
type: Array,
|
|
4026
|
+
default: () => []
|
|
4027
|
+
}
|
|
4028
|
+
},
|
|
4029
|
+
emits: ["change"],
|
|
4030
|
+
setup(d, { emit: y }) {
|
|
4031
|
+
const i = d, a = y, f = J([]), T = J(!1), j = J(""), I = J({ title: "" }), V = J(-1), z = J(!1), E = J(-1), H = J(/* @__PURE__ */ new Map()), G = J(null), oe = Ml(Qe), { itemData: S } = il(oe), Q = () => {
|
|
4032
|
+
j.value = "新增标签页", I.value.title = "", V.value = -1, T.value = !0;
|
|
4033
|
+
}, k = (B) => {
|
|
4034
|
+
j.value = "修改标签页", I.value.title = f.value[B].title, V.value = B, T.value = !0;
|
|
4035
|
+
}, D = (B) => {
|
|
4036
|
+
const m = s(B);
|
|
4037
|
+
H.value.delete(m), f.value.splice(B, 1), w();
|
|
4038
|
+
}, W = () => {
|
|
4039
|
+
if (I.value.title.trim()) {
|
|
4040
|
+
if (V.value === -1) {
|
|
4041
|
+
const B = {
|
|
4042
|
+
title: I.value.title,
|
|
4043
|
+
value: I.value.title,
|
|
4044
|
+
label: I.value.title,
|
|
4045
|
+
children: [],
|
|
4046
|
+
id: t()
|
|
4047
|
+
};
|
|
4048
|
+
f.value.push(B);
|
|
4049
|
+
} else
|
|
4050
|
+
f.value[V.value].title = I.value.title, f.value[V.value].value = I.value.title, f.value[V.value].label = I.value.title;
|
|
4051
|
+
T.value = !1, w();
|
|
4052
|
+
}
|
|
4053
|
+
}, t = () => `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, s = (B) => {
|
|
4054
|
+
const m = f.value[B];
|
|
4055
|
+
return m.id || (m.id = t()), m.id;
|
|
4056
|
+
}, c = (B) => {
|
|
4057
|
+
var X;
|
|
4058
|
+
E.value = B;
|
|
4059
|
+
const m = s(B);
|
|
4060
|
+
G.value = l(S.value);
|
|
4061
|
+
let r = H.value.get(m);
|
|
4062
|
+
!r && ((X = f.value[B].children) == null ? void 0 : X.length) > 0 && (r = Y(f.value[B].children)), r ? oe.setItemData(l(r)) : oe.setItemData([]), z.value = !0;
|
|
4063
|
+
}, n = la(() => {
|
|
4064
|
+
const B = ga(Qe), m = il(B).itemData.value;
|
|
4065
|
+
return console.log("可用组件数据", m), !m || !Array.isArray(m) ? [] : m.filter((r) => {
|
|
4066
|
+
var X;
|
|
4067
|
+
if (r.comp === "Tabs" && E.value >= 0) {
|
|
4068
|
+
const ue = s(E.value);
|
|
4069
|
+
if ((X = r.compData) == null ? void 0 : X.some(
|
|
4070
|
+
(O) => {
|
|
4071
|
+
var x;
|
|
4072
|
+
return O.key === "stepList" && ((x = O.contents) == null ? void 0 : x.some((ne) => ne.id === ue));
|
|
4073
|
+
}
|
|
4074
|
+
)) return !1;
|
|
4075
|
+
}
|
|
4076
|
+
return !0;
|
|
4077
|
+
});
|
|
4078
|
+
}), _ = (B) => ({
|
|
4079
|
+
Table: "表格",
|
|
4080
|
+
Form: "表单",
|
|
4081
|
+
Tabs: "标签页",
|
|
4082
|
+
Chart: "图表",
|
|
4083
|
+
Card: "卡片"
|
|
4084
|
+
})[B] || B, b = (B) => {
|
|
4085
|
+
var m;
|
|
4086
|
+
try {
|
|
4087
|
+
const r = l(B);
|
|
4088
|
+
r.id = Date.now() + Math.random(), r.comp === "Tabs" && ((m = r.compData) == null || m.forEach((ue) => {
|
|
4089
|
+
ue.key === "stepList" && ue.contents && ue.contents.forEach((L) => {
|
|
4090
|
+
L.id = t();
|
|
4091
|
+
});
|
|
4092
|
+
}));
|
|
4093
|
+
const X = l(S.value);
|
|
4094
|
+
X.push(r), oe.setItemData(X);
|
|
4095
|
+
} catch (r) {
|
|
4096
|
+
console.error("添加组件失败:", r);
|
|
4097
|
+
}
|
|
4098
|
+
}, Y = (B) => B.map((m) => {
|
|
4099
|
+
var r;
|
|
4100
|
+
switch (m.type) {
|
|
4101
|
+
case "form":
|
|
4102
|
+
return {
|
|
4103
|
+
comp: "Form",
|
|
4104
|
+
name: m.value || "表单",
|
|
4105
|
+
compData: te(m.content)
|
|
4106
|
+
};
|
|
4107
|
+
case "table":
|
|
4108
|
+
return {
|
|
4109
|
+
comp: "Table",
|
|
4110
|
+
name: m.value || "表格",
|
|
4111
|
+
compData: de(m.content)
|
|
4112
|
+
};
|
|
4113
|
+
default:
|
|
4114
|
+
return {
|
|
4115
|
+
comp: "Unknown",
|
|
4116
|
+
name: m.value || "",
|
|
4117
|
+
compData: ((r = m.content) == null ? void 0 : r.originalData) || []
|
|
4118
|
+
};
|
|
4119
|
+
}
|
|
4120
|
+
}), te = (B) => {
|
|
4121
|
+
if (!B) return [];
|
|
4122
|
+
const m = [];
|
|
4123
|
+
return B.rowContents && m.push({
|
|
4124
|
+
key: "formContent",
|
|
4125
|
+
contents: B.rowContents
|
|
4126
|
+
}), B.buttonValue && m.push({
|
|
4127
|
+
key: "formButton",
|
|
4128
|
+
contents: B.buttonValue
|
|
4129
|
+
}), typeof B.isEnableWrap < "u" && m.push({
|
|
4130
|
+
key: "enableWrap",
|
|
4131
|
+
contents: B.isEnableWrap
|
|
4132
|
+
}), m;
|
|
4133
|
+
}, de = (B) => [], u = () => {
|
|
4134
|
+
if (E.value >= 0 && E.value < f.value.length) {
|
|
4135
|
+
const B = s(E.value);
|
|
4136
|
+
H.value.set(B, l(S.value)), f.value[E.value].children = C(S.value), console.log("保存后的数据", C(S.value));
|
|
4137
|
+
}
|
|
4138
|
+
z.value = !1, E.value = -1, G.value = null, w();
|
|
4139
|
+
}, v = () => {
|
|
4140
|
+
G.value && oe.setItemData(l(G.value)), z.value = !1, E.value = -1, G.value = null;
|
|
4141
|
+
}, F = () => {
|
|
4142
|
+
z.value && v();
|
|
4143
|
+
}, C = (B) => {
|
|
4144
|
+
if (!Array.isArray(B))
|
|
4145
|
+
throw new Error("sourceData must be an array");
|
|
4146
|
+
return B.map((m, r) => {
|
|
4147
|
+
if (!m || typeof m != "object")
|
|
4148
|
+
return m;
|
|
4149
|
+
const { comp: X, name: ue, compData: L } = m;
|
|
4150
|
+
switch (X) {
|
|
4151
|
+
case "Form":
|
|
4152
|
+
return {
|
|
4153
|
+
type: "form",
|
|
4154
|
+
content: h(L || []),
|
|
4155
|
+
value: "表单"
|
|
4156
|
+
};
|
|
4157
|
+
case "Table":
|
|
4158
|
+
return {
|
|
4159
|
+
type: "table",
|
|
4160
|
+
content: P(L || []),
|
|
4161
|
+
value: "表格"
|
|
4162
|
+
};
|
|
4163
|
+
default:
|
|
4164
|
+
return {
|
|
4165
|
+
type: "xxx",
|
|
4166
|
+
content: U(L || []),
|
|
4167
|
+
value: ""
|
|
4168
|
+
};
|
|
4169
|
+
}
|
|
4170
|
+
});
|
|
4171
|
+
}, h = (B) => {
|
|
4172
|
+
const m = {
|
|
4173
|
+
formRules: {},
|
|
4174
|
+
rowContents: [],
|
|
4175
|
+
buttonValue: [],
|
|
4176
|
+
rowValues: [],
|
|
4177
|
+
isEnableWrap: !0,
|
|
4178
|
+
isRowFlex: !0,
|
|
4179
|
+
isButtonRow: !0,
|
|
4180
|
+
isEdit: !0,
|
|
4181
|
+
isStartJustify: !0
|
|
4182
|
+
}, r = {
|
|
4183
|
+
formContent: "rowContents",
|
|
4184
|
+
enableWrap: "isEnableWrap",
|
|
4185
|
+
formButton: "buttonValue"
|
|
4186
|
+
};
|
|
4187
|
+
return B.forEach((X, ue) => {
|
|
4188
|
+
if (!X || typeof X != "object") {
|
|
4189
|
+
console.warn(`Invalid config at index ${ue}:`, X);
|
|
4190
|
+
return;
|
|
4191
|
+
}
|
|
4192
|
+
const { key: L, contents: O } = X, x = r[L];
|
|
4193
|
+
if (!x) {
|
|
4194
|
+
console.warn(`Unknown Form config key: ${L}`);
|
|
4195
|
+
return;
|
|
4196
|
+
}
|
|
4197
|
+
L === "enableWrap" ? m[x] = !!O : m[x] = Array.isArray(O) ? O : [];
|
|
4198
|
+
}), m;
|
|
4199
|
+
}, P = (B) => {
|
|
4200
|
+
const m = {
|
|
4201
|
+
columns: [],
|
|
4202
|
+
tableData: [],
|
|
4203
|
+
extraButton: [],
|
|
4204
|
+
rowButton: [],
|
|
4205
|
+
currentPage: 0,
|
|
4206
|
+
total: 0,
|
|
4207
|
+
pageSize: 0,
|
|
4208
|
+
isShowPagination: !0,
|
|
4209
|
+
isShowEdit: !0,
|
|
4210
|
+
isMoveColumn: !0,
|
|
4211
|
+
isShowDelete: !0
|
|
4212
|
+
}, r = {
|
|
4213
|
+
header: "columns",
|
|
4214
|
+
tableContents: "tableData"
|
|
4215
|
+
};
|
|
4216
|
+
return B.forEach((X, ue) => {
|
|
4217
|
+
if (!X || typeof X != "object") {
|
|
4218
|
+
console.warn(`Invalid config at index ${ue}:`, X);
|
|
4219
|
+
return;
|
|
4220
|
+
}
|
|
4221
|
+
const { key: L, contents: O } = X, x = r[L];
|
|
4222
|
+
if (!x) {
|
|
4223
|
+
console.warn(`Unknown Table config key: ${L}`);
|
|
4224
|
+
return;
|
|
4225
|
+
}
|
|
4226
|
+
m[x] = Array.isArray(O) ? O : [];
|
|
4227
|
+
}), m;
|
|
4228
|
+
}, U = (B) => (console.log("Default conversion logic - to be implemented"), {
|
|
4229
|
+
originalData: B,
|
|
4230
|
+
processed: !1,
|
|
4231
|
+
componentType: "unknown"
|
|
4232
|
+
}), w = () => {
|
|
4233
|
+
const B = [
|
|
4234
|
+
{
|
|
4235
|
+
key: "stepList",
|
|
4236
|
+
contents: f.value
|
|
4237
|
+
}
|
|
4238
|
+
];
|
|
4239
|
+
a("change", B);
|
|
4240
|
+
};
|
|
4241
|
+
return je(
|
|
4242
|
+
() => i.itemContents,
|
|
4243
|
+
(B) => {
|
|
4244
|
+
if (B && B.length > 0) {
|
|
4245
|
+
const m = B.find((r) => r.key === "stepList");
|
|
4246
|
+
m && m.contents && (f.value = m.contents.map((r) => ({
|
|
4247
|
+
title: r.title || "",
|
|
4248
|
+
value: r.value || r.title || "",
|
|
4249
|
+
label: r.label || r.title || "",
|
|
4250
|
+
children: r.children || [],
|
|
4251
|
+
id: r.id || t()
|
|
4252
|
+
})));
|
|
4253
|
+
}
|
|
4254
|
+
},
|
|
4255
|
+
{ immediate: !0, deep: !0 }
|
|
4256
|
+
), (B, m) => {
|
|
4257
|
+
const r = Te("svg-icon"), X = Te("el-input"), ue = Te("el-form-item"), L = Te("el-form");
|
|
4258
|
+
return q(), ce("div", null, [
|
|
4259
|
+
A("div", jn, [
|
|
4260
|
+
m[6] || (m[6] = A("h4", null, "标签页管理", -1)),
|
|
4261
|
+
A("button", { onClick: Q }, [
|
|
4262
|
+
K(r, {
|
|
4263
|
+
name: "Plus",
|
|
4264
|
+
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
4265
|
+
}),
|
|
4266
|
+
m[5] || (m[5] = xe(" 新增标签页 "))
|
|
4267
|
+
])
|
|
4268
|
+
]),
|
|
4269
|
+
A("div", Un, [
|
|
4270
|
+
(q(!0), ce(Se, null, Oe(f.value, (O, x) => (q(), ce("div", {
|
|
4271
|
+
class: "tab-item",
|
|
4272
|
+
key: x
|
|
4273
|
+
}, [
|
|
4274
|
+
A("span", Wn, me(O.title), 1),
|
|
4275
|
+
A("div", zn, [
|
|
4276
|
+
A("button", {
|
|
4277
|
+
onClick: (ne) => k(x)
|
|
4278
|
+
}, "修改标题", 8, Mn),
|
|
4279
|
+
A("button", {
|
|
4280
|
+
onClick: (ne) => c(x)
|
|
4281
|
+
}, "布局调整", 8, Kn),
|
|
4282
|
+
A("button", {
|
|
4283
|
+
onClick: (ne) => D(x)
|
|
4284
|
+
}, "删除", 8, Jn)
|
|
4285
|
+
])
|
|
4286
|
+
]))), 128))
|
|
4287
|
+
]),
|
|
4288
|
+
K(Ge, {
|
|
4289
|
+
modelValue: T.value,
|
|
4290
|
+
"onUpdate:modelValue": m[2] || (m[2] = (O) => T.value = O),
|
|
4291
|
+
title: j.value,
|
|
4292
|
+
onBeforeDestroy: m[3] || (m[3] = (O) => T.value = !1)
|
|
4293
|
+
}, {
|
|
4294
|
+
footer: se(() => [
|
|
4295
|
+
A("button", {
|
|
4296
|
+
onClick: m[1] || (m[1] = (O) => T.value = !1)
|
|
4297
|
+
}, "取消"),
|
|
4298
|
+
A("button", {
|
|
4299
|
+
type: "primary",
|
|
4300
|
+
onClick: W
|
|
4301
|
+
}, "确定")
|
|
4302
|
+
]),
|
|
4303
|
+
default: se(() => [
|
|
4304
|
+
K(L, {
|
|
4305
|
+
model: I.value,
|
|
4306
|
+
"label-width": "80px"
|
|
4307
|
+
}, {
|
|
4308
|
+
default: se(() => [
|
|
4309
|
+
K(ue, {
|
|
4310
|
+
label: "标签名称",
|
|
4311
|
+
required: ""
|
|
4312
|
+
}, {
|
|
4313
|
+
default: se(() => [
|
|
4314
|
+
K(X, {
|
|
4315
|
+
modelValue: I.value.title,
|
|
4316
|
+
"onUpdate:modelValue": m[0] || (m[0] = (O) => I.value.title = O),
|
|
4317
|
+
placeholder: "请输入标签页名称"
|
|
4318
|
+
}, null, 8, ["modelValue"])
|
|
4319
|
+
]),
|
|
4320
|
+
_: 1
|
|
4321
|
+
})
|
|
4322
|
+
]),
|
|
4323
|
+
_: 1
|
|
4324
|
+
}, 8, ["model"])
|
|
4325
|
+
]),
|
|
4326
|
+
_: 1
|
|
4327
|
+
}, 8, ["modelValue", "title"]),
|
|
4328
|
+
K(Ge, {
|
|
4329
|
+
modelValue: z.value,
|
|
4330
|
+
"onUpdate:modelValue": m[4] || (m[4] = (O) => z.value = O),
|
|
4331
|
+
title: "布局调整",
|
|
4332
|
+
fullScreen: "",
|
|
4333
|
+
onBeforeDestroy: F
|
|
4334
|
+
}, {
|
|
4335
|
+
footer: se(() => [
|
|
4336
|
+
A("button", { onClick: v }, "取消"),
|
|
4337
|
+
A("button", { onClick: u }, "确定")
|
|
4338
|
+
]),
|
|
4339
|
+
default: se(() => [
|
|
4340
|
+
A("div", Gn, [
|
|
4341
|
+
A("div", qn, [
|
|
4342
|
+
K(wn),
|
|
4343
|
+
A("div", Hn, [
|
|
4344
|
+
m[8] || (m[8] = A("h5", null, "添加已有组件", -1)),
|
|
4345
|
+
A("div", Qn, [
|
|
4346
|
+
(q(!0), ce(Se, null, Oe(n.value, (O) => (q(), ce("div", {
|
|
4347
|
+
key: O.id,
|
|
4348
|
+
class: "component-item",
|
|
4349
|
+
onClick: (x) => b(O)
|
|
4350
|
+
}, [
|
|
4351
|
+
A("div", Yn, [
|
|
4352
|
+
A("span", Zn, me(_(O.comp)), 1),
|
|
4353
|
+
A("span", eo, me(O.name), 1)
|
|
4354
|
+
]),
|
|
4355
|
+
m[7] || (m[7] = A("button", { class: "add-btn" }, "添加", -1))
|
|
4356
|
+
], 8, Xn))), 128))
|
|
4357
|
+
])
|
|
4358
|
+
])
|
|
4359
|
+
]),
|
|
4360
|
+
(q(), ce("div", {
|
|
4361
|
+
class: "model-show",
|
|
4362
|
+
key: B.innerWidth
|
|
4363
|
+
}, [
|
|
4364
|
+
K(Nn)
|
|
4365
|
+
])),
|
|
4366
|
+
A("div", lo, [
|
|
4367
|
+
K(Ln)
|
|
4368
|
+
])
|
|
4369
|
+
])
|
|
4370
|
+
]),
|
|
4371
|
+
_: 1
|
|
4372
|
+
}, 8, ["modelValue"])
|
|
4373
|
+
]);
|
|
4374
|
+
};
|
|
4375
|
+
}
|
|
4376
|
+
}, so = /* @__PURE__ */ Re(ao, [["__scopeId", "data-v-151936e8"]]), io = J([
|
|
4377
|
+
{
|
|
4378
|
+
name: "表格",
|
|
4379
|
+
type: "table",
|
|
4380
|
+
comp: "Table",
|
|
4381
|
+
icon: "Table"
|
|
4382
|
+
},
|
|
4383
|
+
{
|
|
4384
|
+
name: "表单",
|
|
4385
|
+
type: "form",
|
|
4386
|
+
comp: "Form",
|
|
4387
|
+
icon: "Form"
|
|
4388
|
+
},
|
|
4389
|
+
{
|
|
4390
|
+
name: "折叠",
|
|
4391
|
+
type: "fold",
|
|
4392
|
+
comp: "Fold",
|
|
4393
|
+
icon: "Fold"
|
|
4394
|
+
},
|
|
4395
|
+
{
|
|
4396
|
+
name: "头像",
|
|
4397
|
+
type: "avatar",
|
|
4398
|
+
comp: "AvatarUpload",
|
|
4399
|
+
icon: "Avatar"
|
|
4400
|
+
},
|
|
4401
|
+
{
|
|
4402
|
+
name: "签名",
|
|
4403
|
+
type: "signature",
|
|
4404
|
+
comp: "Signature",
|
|
4405
|
+
icon: "Signature"
|
|
4406
|
+
},
|
|
4407
|
+
{
|
|
4408
|
+
name: "步骤条",
|
|
4409
|
+
type: "step",
|
|
4410
|
+
comp: "Step",
|
|
4411
|
+
icon: "Step"
|
|
4412
|
+
},
|
|
4413
|
+
{
|
|
4414
|
+
name: "时间线",
|
|
4415
|
+
type: "timeLine",
|
|
4416
|
+
comp: "TimeLine",
|
|
4417
|
+
icon: "TimeLine"
|
|
4418
|
+
},
|
|
4419
|
+
{
|
|
4420
|
+
name: "标签页",
|
|
4421
|
+
type: "tabs",
|
|
4422
|
+
comp: "Tabs",
|
|
4423
|
+
icon: "Tabs"
|
|
4424
|
+
}
|
|
4425
|
+
]), no = {
|
|
4426
|
+
TABLE: Pa,
|
|
4427
|
+
FORM: fa,
|
|
4428
|
+
TABLEOPERATE: ni,
|
|
4429
|
+
FORMOPERATE: va,
|
|
4430
|
+
FOLD: Li,
|
|
4431
|
+
CALCULATOR: Ui,
|
|
4432
|
+
METHODBUTTON: Qi,
|
|
4433
|
+
AVATARUPLOAD: Ya,
|
|
4434
|
+
SIGNATURE: Xa,
|
|
4435
|
+
FORMTOP: fa,
|
|
4436
|
+
STEP: cn,
|
|
4437
|
+
STEPOPERATE: Ai,
|
|
4438
|
+
TIMELINE: hn,
|
|
4439
|
+
TIMELINEOPERATE: Si,
|
|
4440
|
+
FORMTOPOPERATE: va,
|
|
4441
|
+
SIGNATUREOPERATE: on,
|
|
4442
|
+
AVATARUPLOADOPERATE: Zi,
|
|
4443
|
+
TABS: bn,
|
|
4444
|
+
TABSOPERATE: so
|
|
4445
|
+
// 添加其他组件...
|
|
4446
|
+
};
|
|
4447
|
+
function aa(d) {
|
|
4448
|
+
return no[d == null ? void 0 : d.toUpperCase()] || null;
|
|
4449
|
+
}
|
|
4450
|
+
export {
|
|
4451
|
+
bo as a,
|
|
4452
|
+
Zl as b,
|
|
4453
|
+
aa as g,
|
|
4454
|
+
io as s,
|
|
4455
|
+
ls as u
|
|
4456
|
+
};
|