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