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