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