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