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