ss-component-new 1.1.608 → 1.1.610
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-C1gcNGaP.cjs → array-mnEYd91h.cjs} +1 -1
- package/dist/{array-CaisX3_y.js → array-wJSGLzMi.js} +1 -1
- package/dist/{index-BXKDfdBV.js → index-1BVob7wA.js} +987 -985
- package/dist/{index-BlEsLLOQ.js → index-AzzGUKx8.js} +3 -3
- package/dist/{index-2Wg02nub.js → index-B-DQPS-N.js} +3 -3
- package/dist/{index-CVee1Bur.js → index-B-IPJQR7.js} +6 -6
- package/dist/{index-D-gtCink.js → index-B4-0ZN76.js} +4 -4
- package/dist/{index-GsF9RQ1o.js → index-B88IlhkZ.js} +5 -5
- package/dist/index-BAH_rZfA.cjs +1 -0
- package/dist/{index-CxutEIsS.cjs → index-BI9kgpIk.cjs} +1 -1
- package/dist/{index-BJT2Fp0F.cjs → index-BJi_ECqJ.cjs} +1 -1
- package/dist/{index-DyxA9Pwa.cjs → index-BNm0KpMX.cjs} +1 -1
- package/dist/{index-D8wJ8OVO.js → index-BOb-2bQ6.js} +2 -2
- package/dist/{index-S1z7XnLi.js → index-BSwUV99H.js} +3 -3
- package/dist/{index-Y9kXXuBJ.js → index-BTFau98t.js} +4 -4
- package/dist/{index-BLu4cCOv.cjs → index-BhXpwWAD.cjs} +1 -1
- package/dist/{index-Cplpn8hS.cjs → index-BhqqmmDO.cjs} +1 -1
- package/dist/{index-V9vs-ScR.js → index-Bkm9CeI0.js} +1 -1
- package/dist/{index-BB7D-KhK.cjs → index-BxvHIIVo.cjs} +1 -1
- package/dist/{index-DsUHBIBK.cjs → index-ByMRCbSe.cjs} +1 -1
- package/dist/{index-CEoanfoT.cjs → index-C1yqNz_p.cjs} +1 -1
- package/dist/{index-DGCcBd5v.cjs → index-C2fvWCqI.cjs} +1 -1
- package/dist/{index-BO2NNsQ3.cjs → index-C3CEvII2.cjs} +1 -1
- package/dist/{index-Df6NZqSR.cjs → index-C49bEVWn.cjs} +1 -1
- package/dist/{index-BibVOdJy.js → index-C4kE-1ja.js} +8 -8
- package/dist/{index-hBF27unU.js → index-CJ_rdkr8.js} +7051 -7021
- package/dist/{index-BsQ8_gbw.cjs → index-CMlzdIBK.cjs} +1 -1
- package/dist/{index-BmzN-3ze.js → index-COJ61_rL.js} +5 -5
- package/dist/{index-MFHk1eEx.js → index-COrHQozc.js} +4 -4
- package/dist/{index-B1cMw_e2.js → index-Ci5tEpVA.js} +2 -2
- package/dist/{index-HkaBIp59.js → index-CmXpvujN.js} +1 -1
- package/dist/{index-Z04SVHEk.js → index-Cnd5Q6NW.js} +1 -1
- package/dist/{index-B807Lss8.js → index-D2su9vZa.js} +5 -5
- package/dist/{index-Cuz54Fkl.cjs → index-D4uPZznB.cjs} +9 -9
- package/dist/{index-rTgVjPGa.cjs → index-D4xexga6.cjs} +1 -1
- package/dist/{index-uYHnI5wK.cjs → index-D8D-Ti7X.cjs} +1 -1
- package/dist/{index-BgydVX0j.js → index-DAUT2Lsk.js} +13 -13
- package/dist/{index-DLSzOar0.js → index-DQg4VIKm.js} +35 -31
- package/dist/{index-D8E80dju.cjs → index-DROlnDEv.cjs} +1 -1
- package/dist/{index-BK5LNaz2.js → index-DVSyDI9R.js} +3 -3
- package/dist/{index-CfJqgH7E.cjs → index-DW_egpXZ.cjs} +1 -1
- package/dist/{index-DB2epzvg.cjs → index-DcFKkv_x.cjs} +1 -1
- package/dist/{index-BE4_rScS.cjs → index-Dd0yZIEy.cjs} +1 -1
- package/dist/{index-hNt29cU7.cjs → index-DhAM3yJ1.cjs} +1 -1
- package/dist/{index-Bn3uMi-8.cjs → index-Dm8EQvZF.cjs} +1 -1
- package/dist/index-RFCzxTjm.cjs +87 -0
- package/dist/{index-BgX_ia5H.cjs → index-VOdol5z7.cjs} +1 -1
- package/dist/{index-DsYFSymz.js → index-Zi_SqExB.js} +4 -4
- package/dist/{index-Dn4SxfsB.js → index-iRWbjSih.js} +4 -4
- package/dist/{index-v95HBZGa.cjs → index-l52VRsV3.cjs} +1 -1
- package/dist/{index-DFX5NE_3.js → index-rwwMJOvs.js} +5 -5
- package/dist/{index-DKk2Yk2F.js → index-uMzxbiQB.js} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-CeNJa0E4.cjs → index.vue_vue_type_script_setup_true_lang-B7vWHeIj.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DBVpFaiR.js → index.vue_vue_type_script_setup_true_lang-DRLcD2rZ.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CJBQxdRk.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CixHWeC-.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dz4Fg0J1.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtG0TYo3.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-C5-XfA7-.js → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-BZmkc9II.js} +2861 -2870
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-Biklcd9I.cjs → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-D6GyHjm7.cjs} +11 -11
- package/dist/{index.vue_vue_type_style_index_0_scoped_9a453346_lang-C1BOdGun.cjs → index.vue_vue_type_style_index_0_scoped_57a7854d_lang-BnTf2zDM.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_9a453346_lang-DgHSOxfw.js → index.vue_vue_type_style_index_0_scoped_57a7854d_lang-D-PU4dEx.js} +8 -8
- package/dist/{login-Db7lD3cs.cjs → login-BBvcYktp.cjs} +1 -1
- package/dist/{login-B63LEngH.js → login-afGmER0u.js} +1 -1
- package/dist/{main-B_yFDeIi.cjs → main-Bz1ewE-K.cjs} +1 -1
- package/dist/{main-DjbrOkYk.js → main-uQGs3zr-.js} +5 -5
- package/dist/{menu-1olc0mrV.cjs → menu-DYsWoy6Z.cjs} +9 -9
- package/dist/{menu-BxkEScwt.js → menu-Qw1eGtzq.js} +199 -201
- package/dist/{modelComp-C5jCD_od.cjs → modelComp-8s0tWZDU.cjs} +1 -1
- package/dist/{modelComp-Bj7Q1JDt.js → modelComp-y7HaQuVQ.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-DTY2N9TB.js → threeModel-B4DttRG3.js} +512 -515
- package/dist/threeModel-CoQFvudf.cjs +1 -0
- package/package.json +1 -1
- package/dist/index-2tDhJ_PE.cjs +0 -74
- package/dist/index-CrE-2oNV.cjs +0 -1
- package/dist/threeModel-BZkfaTio.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { q as
|
|
2
|
-
import { ref as z, watch as je, createElementBlock as de, openBlock as q, createVNode as K, createBlock as Fe, createCommentVNode as
|
|
3
|
-
import { bR as
|
|
4
|
-
import { e as
|
|
5
|
-
import { F as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { E as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { s as
|
|
11
|
-
import
|
|
12
|
-
const
|
|
1
|
+
import { q as Va, I as sl, a as Aa, g as bl, r as Na, v as ja, w as Ua, x as Wa, y as za, z as _a, A as Ma, B as Ka, C as Ja, D as Ga } from "./index-BTFau98t.js";
|
|
2
|
+
import { ref as z, watch as je, createElementBlock as de, openBlock as q, createVNode as K, createBlock as Fe, createCommentVNode as Xe, resolveComponent as Te, Fragment as Se, renderList as Le, createElementVNode as D, toDisplayString as me, withCtx as se, createTextVNode as xe, defineComponent as vl, reactive as la, resolveDynamicComponent as Ul, unref as Ia, computed as aa, renderSlot as zl, createSlots as Ha, mergeProps as qa, normalizeStyle as Qa, withModifiers as jl } from "vue";
|
|
3
|
+
import { bR as xa, p as Ye, c as l, d as Ml, s as nl, E as el, u as Xa, g as Wl, bO as Ya, bM as Za, bN as es } from "./menu-Qw1eGtzq.js";
|
|
4
|
+
import { e as We, f as ls, s as Je, h as Ea, a as as, i as ss, j as is, b as ns } from "./index-rwwMJOvs.js";
|
|
5
|
+
import { F as Ca, a as os, b as Ne, m as gl, s as al, f as hl, e as Ql } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CixHWeC-.js";
|
|
6
|
+
import { _ as Ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
import { E as tl } from "./index-CmXpvujN.js";
|
|
8
|
+
import { u as $a } from "./modelComp-y7HaQuVQ.js";
|
|
9
|
+
import { u as us } from "./login-afGmER0u.js";
|
|
10
|
+
import { s as rs, a as cs } from "./index-BSwUV99H.js";
|
|
11
|
+
import ts from "./index-CZtXRS3l.js";
|
|
12
|
+
const ds = (f) => f.match(/\((.*)\)/)[1], ps = xa("formComp", {
|
|
13
13
|
state: () => ({
|
|
14
14
|
objUrl: [],
|
|
15
15
|
blobUrls: []
|
|
@@ -22,7 +22,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
22
22
|
this.blobUrls = f;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
}),
|
|
25
|
+
}), fs = { class: "form-content" }, hs = {
|
|
26
26
|
__name: "index",
|
|
27
27
|
props: {
|
|
28
28
|
formRules: Object,
|
|
@@ -38,16 +38,16 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
38
38
|
},
|
|
39
39
|
emits: ["change", "contentChange"],
|
|
40
40
|
setup(f, { emit: g }) {
|
|
41
|
-
const i = f, a = g,
|
|
42
|
-
var t, s, o, p,
|
|
41
|
+
const i = f, a = g, h = z([]), T = z(!1), P = z(!1), C = z([]), L = z(), U = Va(Ye), E = ps(Ye), X = z(!1), H = z(), re = async (v) => {
|
|
42
|
+
var t, s, o, p, A, B, J, Y;
|
|
43
43
|
let M = [];
|
|
44
|
-
if ((t =
|
|
44
|
+
if ((t = v == null ? void 0 : v.toString()) != null && t.includes(".stl") || (s = v == null ? void 0 : v.toString()) != null && s.includes(".STL") || (o = v == null ? void 0 : v.toString()) != null && o.includes(".obj") || (p = v == null ? void 0 : v.toString()) != null && p.includes(".mtl") || (A = v == null ? void 0 : v.toString()) != null && A.includes(".urdf")) {
|
|
45
45
|
let j, G = [], n = {};
|
|
46
|
-
Array.isArray(
|
|
47
|
-
|
|
46
|
+
Array.isArray(v) ? j = v : j = v == null ? void 0 : v.split(","), j == null || j.forEach((I) => {
|
|
47
|
+
I.includes(".mtl") ? G.push(I) : n.blob = n.blob ? n.blob + "," + I : I;
|
|
48
48
|
}), (G == null ? void 0 : G.length) > 0 && (n.mtlBlobs = G), (J = (B = Object.values(n)) == null ? void 0 : B[0]) != null && J.includes("http:") && M.push(n);
|
|
49
49
|
} else {
|
|
50
|
-
const j = await
|
|
50
|
+
const j = await Ml.get(v, {
|
|
51
51
|
responseType: "blob",
|
|
52
52
|
headers: {
|
|
53
53
|
"Content-Type": "application/json"
|
|
@@ -55,21 +55,21 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
55
55
|
}), G = new Blob([j.data], {
|
|
56
56
|
type: "application/octet-stream;charset=UTF-8"
|
|
57
57
|
});
|
|
58
|
-
let n = URL.createObjectURL(G),
|
|
59
|
-
(Y =
|
|
58
|
+
let n = URL.createObjectURL(G), I = "";
|
|
59
|
+
(Y = v == null ? void 0 : v.split("/")) == null || Y.forEach((_, c) => {
|
|
60
60
|
var $;
|
|
61
|
-
c === (($ =
|
|
61
|
+
c === (($ = v == null ? void 0 : v.split("/")) == null ? void 0 : $.length) - 1 && (I = _);
|
|
62
62
|
}), L.value = [{
|
|
63
|
-
name:
|
|
63
|
+
name: I,
|
|
64
64
|
blobUrl: n
|
|
65
65
|
}], P.value = !0;
|
|
66
66
|
}
|
|
67
67
|
(M == null ? void 0 : M.length) > 0 && E.setBlobUrls(M);
|
|
68
68
|
}, Z = () => {
|
|
69
69
|
P.value = !1;
|
|
70
|
-
},
|
|
71
|
-
var p,
|
|
72
|
-
const M = (
|
|
70
|
+
}, oe = (v) => {
|
|
71
|
+
var p, A, B, J;
|
|
72
|
+
const M = (A = (p = l(i.itemData)) == null ? void 0 : p.find((Y) => (Y == null ? void 0 : Y.key) === "formContent")) == null ? void 0 : A.contents, t = l(v.content);
|
|
73
73
|
let s = {};
|
|
74
74
|
t && ((B = Object.values(t)) == null ? void 0 : B.length) > 0 && ((J = Object.values(t)) == null || J.forEach((Y, j) => {
|
|
75
75
|
s[M[j].key] = Y;
|
|
@@ -77,27 +77,27 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
77
77
|
const o = {
|
|
78
78
|
content: s,
|
|
79
79
|
index: i == null ? void 0 : i.index,
|
|
80
|
-
buttonName:
|
|
80
|
+
buttonName: v == null ? void 0 : v.buttonName
|
|
81
81
|
};
|
|
82
82
|
a("change", o);
|
|
83
|
-
}, w = (
|
|
84
|
-
var p,
|
|
85
|
-
if (!
|
|
83
|
+
}, w = (v) => {
|
|
84
|
+
var p, A, B;
|
|
85
|
+
if (!v) return;
|
|
86
86
|
const M = l(i.itemData), t = M == null ? void 0 : M.map((J) => {
|
|
87
87
|
var Y;
|
|
88
88
|
return (J == null ? void 0 : J.key) === "formContent" && ((Y = J.contents) == null || Y.map((j, G) => {
|
|
89
|
-
var n,
|
|
90
|
-
return j.type = j != null && j.type ? j.type : (c = (_ = (
|
|
89
|
+
var n, I, _, c, $, Q, le, r, k, S, ie, ne, m, y, O, W, ue;
|
|
90
|
+
return j.type = j != null && j.type ? j.type : (c = (_ = (I = (n = j == null ? void 0 : j.key) == null ? void 0 : n.split("$")) == null ? void 0 : I[1]) == null ? void 0 : _.split("(")) != null && c[0] ? (Q = ($ = Ca) == null ? void 0 : $.find((ee) => {
|
|
91
91
|
var fe, V, ye, be;
|
|
92
92
|
return (ee == null ? void 0 : ee.key) === ((be = (ye = (V = (fe = j == null ? void 0 : j.key) == null ? void 0 : fe.split("$")) == null ? void 0 : V[1]) == null ? void 0 : ye.split("(")) == null ? void 0 : be[0]);
|
|
93
|
-
})) == null ? void 0 : Q.value : "Input", j.options = j != null && j.options ? j.options : ((k = (r = (le = j == null ? void 0 : j.key) == null ? void 0 : le.split("$")) == null ? void 0 : r[1]) == null ? void 0 : k.length) > 0 ? (m = (
|
|
93
|
+
})) == null ? void 0 : Q.value : "Input", j.options = j != null && j.options ? j.options : ((k = (r = (le = j == null ? void 0 : j.key) == null ? void 0 : le.split("$")) == null ? void 0 : r[1]) == null ? void 0 : k.length) > 0 ? (m = (ne = ds((ie = (S = j == null ? void 0 : j.key) == null ? void 0 : S.split("$")) == null ? void 0 : ie[1])) == null ? void 0 : ne.split(",")) == null ? void 0 : m.map((ee) => ({
|
|
94
94
|
label: ee,
|
|
95
95
|
value: ee
|
|
96
|
-
})) : [], (y = j == null ? void 0 : j.key) != null && y.includes("$") && (j.key = (W = (O = j == null ? void 0 : j.key) == null ? void 0 : O.split("$")) == null ? void 0 : W[0]), j.value = (
|
|
96
|
+
})) : [], (y = j == null ? void 0 : j.key) != null && y.includes("$") && (j.key = (W = (O = j == null ? void 0 : j.key) == null ? void 0 : O.split("$")) == null ? void 0 : W[0]), j.value = (ue = Object.values(v)) == null ? void 0 : ue[G], j;
|
|
97
97
|
})), J;
|
|
98
98
|
});
|
|
99
99
|
let s = [], o = [];
|
|
100
|
-
if ((
|
|
100
|
+
if ((A = l((p = t == null ? void 0 : t.find((J) => (J == null ? void 0 : J.key) === "formContent")) == null ? void 0 : p.contents)) == null || A.forEach((J) => {
|
|
101
101
|
var Y;
|
|
102
102
|
Array.isArray(J == null ? void 0 : J.value) && ((Y = J == null ? void 0 : J.value) != null && Y.find((j) => {
|
|
103
103
|
var G;
|
|
@@ -109,7 +109,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
109
109
|
return (j = Y == null ? void 0 : Y.url) == null ? void 0 : j.includes(".obj");
|
|
110
110
|
});
|
|
111
111
|
J == null || J.forEach((Y) => {
|
|
112
|
-
var G, n,
|
|
112
|
+
var G, n, I, _;
|
|
113
113
|
const j = (G = o == null ? void 0 : o.filter((c) => {
|
|
114
114
|
var $;
|
|
115
115
|
return (c == null ? void 0 : c.name) === (Y == null ? void 0 : Y.name) && (($ = c == null ? void 0 : c.url) == null ? void 0 : $.includes(".mtl"));
|
|
@@ -119,10 +119,10 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
119
119
|
mtlUrls: ((n = o == null ? void 0 : o.filter((c) => {
|
|
120
120
|
var $;
|
|
121
121
|
return (c == null ? void 0 : c.name) === (Y == null ? void 0 : Y.name) && (($ = c == null ? void 0 : c.url) == null ? void 0 : $.includes(".mtl"));
|
|
122
|
-
})) == null ? void 0 : n.length) === 1 ? (_ = (
|
|
122
|
+
})) == null ? void 0 : n.length) === 1 ? (_ = (I = o == null ? void 0 : o.filter((c) => {
|
|
123
123
|
var $;
|
|
124
124
|
return (c == null ? void 0 : c.name) === (Y == null ? void 0 : Y.name) && (($ = c == null ? void 0 : c.url) == null ? void 0 : $.includes(".mtl"));
|
|
125
|
-
})) == null ? void 0 :
|
|
125
|
+
})) == null ? void 0 : I[0]) == null ? void 0 : _.url : j
|
|
126
126
|
});
|
|
127
127
|
}), E.setObjUrl(s);
|
|
128
128
|
}
|
|
@@ -134,23 +134,23 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
134
134
|
return je(
|
|
135
135
|
() => i.itemData,
|
|
136
136
|
async () => {
|
|
137
|
-
var p,
|
|
138
|
-
const
|
|
139
|
-
if ((s == null ? void 0 : s.contents) === "纵向" ? T.value = !1 : T.value = !0, X.value = (o == null ? void 0 : o.contents) === void 0 ? !1 : o == null ? void 0 : o.contents, H.value = typeof (t == null ? void 0 : t.contents) != "boolean" ? !(!(t != null && t.contents) === "" || ((j = t == null ? void 0 : t.contents) == null ? void 0 : j.toUpperCase()) === "VERTICAL") : t == null ? void 0 : t.contents, ((G =
|
|
137
|
+
var p, A, B, J, Y, j, G, n, I, _, c, $, Q, le;
|
|
138
|
+
const v = (p = i.itemData) == null ? void 0 : p.find((r) => (r == null ? void 0 : r.key) === "formContent"), M = (A = l(i.itemData)) == null ? void 0 : A.find((r) => (r == null ? void 0 : r.key) === "formButton"), t = (B = l(i.itemData)) == null ? void 0 : B.find((r) => (r == null ? void 0 : r.key) === "formFlex"), s = (J = l(i.itemData)) == null ? void 0 : J.find((r) => (r == null ? void 0 : r.key) === "formWrap"), o = (Y = l(i.itemData)) == null ? void 0 : Y.find((r) => (r == null ? void 0 : r.key) === "enableWrap");
|
|
139
|
+
if ((s == null ? void 0 : s.contents) === "纵向" ? T.value = !1 : T.value = !0, X.value = (o == null ? void 0 : o.contents) === void 0 ? !1 : o == null ? void 0 : o.contents, H.value = typeof (t == null ? void 0 : t.contents) != "boolean" ? !(!(t != null && t.contents) === "" || ((j = t == null ? void 0 : t.contents) == null ? void 0 : j.toUpperCase()) === "VERTICAL") : t == null ? void 0 : t.contents, ((G = v == null ? void 0 : v.contents) == null ? void 0 : G.length) > 0 && Array.isArray(v == null ? void 0 : v.contents)) {
|
|
140
140
|
const r = [];
|
|
141
|
-
await ((n =
|
|
142
|
-
var O, W,
|
|
141
|
+
await ((n = v == null ? void 0 : v.contents) == null ? void 0 : n.forEach(async (m, y) => {
|
|
142
|
+
var O, W, ue, ee, fe, V, ye, be, De, Ee, te, e;
|
|
143
143
|
if ((m == null ? void 0 : m.label) !== "") {
|
|
144
144
|
let u = (m == null ? void 0 : m.label) ?? (m == null ? void 0 : m.key) ?? "", b = (m == null ? void 0 : m.type) ?? "", d = (m == null ? void 0 : m.options) ?? [];
|
|
145
|
-
if ((O = m == null ? void 0 : m.key) != null && O.includes("$") && (u = (W = l(m == null ? void 0 : m.key).split("$")) == null ? void 0 : W[0], ((ee = (
|
|
145
|
+
if ((O = m == null ? void 0 : m.key) != null && O.includes("$") && (u = (W = l(m == null ? void 0 : m.key).split("$")) == null ? void 0 : W[0], ((ee = (ue = l(m == null ? void 0 : m.key).split("$")) == null ? void 0 : ue[1]) == null ? void 0 : ee.length) > 0)) {
|
|
146
146
|
const [N, pe] = (V = (fe = l(m == null ? void 0 : m.key).split("$")) == null ? void 0 : fe[1]) == null ? void 0 : V.split(/[()]/);
|
|
147
|
-
b = ((ye =
|
|
147
|
+
b = ((ye = Ca.find((F) => (F == null ? void 0 : F.key) === N)) == null ? void 0 : ye.value) ?? "", ((be = pe == null ? void 0 : pe.split(",")) == null ? void 0 : be.length) > 0 && (d = (De = pe == null ? void 0 : pe.split(",")) == null ? void 0 : De.map((F) => ({
|
|
148
148
|
label: F,
|
|
149
149
|
value: F
|
|
150
150
|
})));
|
|
151
151
|
}
|
|
152
152
|
let x = [];
|
|
153
|
-
m != null && m.contents && !Array.isArray(m == null ? void 0 : m.contents) && (x = (te = (
|
|
153
|
+
m != null && m.contents && !Array.isArray(m == null ? void 0 : m.contents) && (x = (te = (Ee = m == null ? void 0 : m.contents) == null ? void 0 : Ee.split(",")) == null ? void 0 : te.map((N) => ({
|
|
154
154
|
label: N,
|
|
155
155
|
value: N
|
|
156
156
|
}))), r.push({
|
|
@@ -171,48 +171,48 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
171
171
|
let S = "";
|
|
172
172
|
k == null || k.forEach((m) => {
|
|
173
173
|
m !== "" && m !== void 0 && (S = S === "" ? m : S + "/" + m);
|
|
174
|
-
}), U.setSelectArray(k), U.setSelectString(S),
|
|
175
|
-
let ie = [],
|
|
176
|
-
if ((_ = l(
|
|
174
|
+
}), U.setSelectArray(k), U.setSelectString(S), h.value = (I = l(r)) == null ? void 0 : I.map((m) => (m != null && m.value && sl(m == null ? void 0 : m.value) && Array.isArray(JSON.parse(m == null ? void 0 : m.value)) && (m.value = JSON.parse(m.value)), m));
|
|
175
|
+
let ie = [], ne = [];
|
|
176
|
+
if ((_ = l(h.value)) == null || _.forEach((m) => {
|
|
177
177
|
var y;
|
|
178
178
|
Array.isArray(m == null ? void 0 : m.value) && ((y = m == null ? void 0 : m.value) != null && y.find((O) => {
|
|
179
179
|
var W;
|
|
180
180
|
return (W = O == null ? void 0 : O.url) == null ? void 0 : W.includes(".obj");
|
|
181
|
-
})) && (
|
|
182
|
-
}), (
|
|
183
|
-
const m = (c = l(
|
|
181
|
+
})) && (ne = m == null ? void 0 : m.value);
|
|
182
|
+
}), (ne == null ? void 0 : ne.length) > 0) {
|
|
183
|
+
const m = (c = l(ne)) == null ? void 0 : c.filter((y) => {
|
|
184
184
|
var O;
|
|
185
185
|
return (O = y == null ? void 0 : y.url) == null ? void 0 : O.includes(".obj");
|
|
186
186
|
});
|
|
187
187
|
m == null || m.forEach((y) => {
|
|
188
|
-
var W,
|
|
189
|
-
const O = (W =
|
|
188
|
+
var W, ue, ee, fe;
|
|
189
|
+
const O = (W = ne == null ? void 0 : ne.filter((V) => {
|
|
190
190
|
var ye;
|
|
191
191
|
return (V == null ? void 0 : V.name) === (y == null ? void 0 : y.name) && ((ye = V == null ? void 0 : V.url) == null ? void 0 : ye.includes(".mtl"));
|
|
192
192
|
})) == null ? void 0 : W.map((V) => V == null ? void 0 : V.url);
|
|
193
193
|
ie.push({
|
|
194
194
|
objUrl: y == null ? void 0 : y.url,
|
|
195
|
-
mtlUrls: ((
|
|
195
|
+
mtlUrls: ((ue = ne == null ? void 0 : ne.filter((V) => {
|
|
196
196
|
var ye;
|
|
197
197
|
return (V == null ? void 0 : V.name) === (y == null ? void 0 : y.name) && ((ye = V == null ? void 0 : V.url) == null ? void 0 : ye.includes(".mtl"));
|
|
198
|
-
})) == null ? void 0 :
|
|
198
|
+
})) == null ? void 0 : ue.length) === 1 ? (fe = (ee = ne == null ? void 0 : ne.filter((V) => {
|
|
199
199
|
var ye;
|
|
200
200
|
return (V == null ? void 0 : V.name) === (y == null ? void 0 : y.name) && ((ye = V == null ? void 0 : V.url) == null ? void 0 : ye.includes(".mtl"));
|
|
201
201
|
})) == null ? void 0 : ee[0]) == null ? void 0 : fe.url : O
|
|
202
202
|
});
|
|
203
203
|
}), E.setObjUrl(ie);
|
|
204
204
|
}
|
|
205
|
-
($ = l(
|
|
206
|
-
var y, O, W,
|
|
207
|
-
if ((O = (y = m == null ? void 0 : m.value) == null ? void 0 : y.toString()) != null && O.includes(".stl") || (
|
|
205
|
+
($ = l(h.value)) == null || $.forEach((m) => {
|
|
206
|
+
var y, O, W, ue, ee, fe, V, ye, be, De, Ee, te, e;
|
|
207
|
+
if ((O = (y = m == null ? void 0 : m.value) == null ? void 0 : y.toString()) != null && O.includes(".stl") || (ue = (W = m == null ? void 0 : m.value) == null ? void 0 : W.toString()) != null && ue.includes(".STL") || (fe = (ee = m == null ? void 0 : m.value) == null ? void 0 : ee.toString()) != null && fe.includes(".obj") || (ye = (V = m == null ? void 0 : m.value) == null ? void 0 : V.toString()) != null && ye.includes(".mtl") || (De = (be = m == null ? void 0 : m.value) == null ? void 0 : be.toString()) != null && De.includes(".urdf")) {
|
|
208
208
|
let u = {}, b = [], d;
|
|
209
|
-
Array.isArray(m == null ? void 0 : m.value) ? d = m == null ? void 0 : m.value : d = (
|
|
209
|
+
Array.isArray(m == null ? void 0 : m.value) ? d = m == null ? void 0 : m.value : d = (Ee = m == null ? void 0 : m.value) == null ? void 0 : Ee.split(","), d == null || d.forEach((x) => {
|
|
210
210
|
x.includes(".mtl") ? b.push(x) : u.blob = u.blob === "undefined" ? x : u.blob + "," + x;
|
|
211
211
|
}), (b == null ? void 0 : b.length) > 0 && (u.mtlBlobs = b), (e = (te = Object.values(u)) == null ? void 0 : te[0]) != null && e.includes("http:");
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
214
|
} else
|
|
215
|
-
|
|
215
|
+
h.value = [];
|
|
216
216
|
if (((Q = M == null ? void 0 : M.contents) == null ? void 0 : Q.length) > 0) {
|
|
217
217
|
const r = [];
|
|
218
218
|
(le = M == null ? void 0 : M.contents) == null || le.forEach((k, S) => {
|
|
@@ -227,28 +227,28 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
227
227
|
C.value = [];
|
|
228
228
|
},
|
|
229
229
|
{ deep: !0, immediate: !0 }
|
|
230
|
-
), (
|
|
231
|
-
K(
|
|
232
|
-
rowContents:
|
|
230
|
+
), (v, M) => (q(), de("div", fs, [
|
|
231
|
+
K(We, {
|
|
232
|
+
rowContents: h.value,
|
|
233
233
|
formRules: f.formRules,
|
|
234
234
|
buttonValue: C.value,
|
|
235
235
|
isRowFlex: !1,
|
|
236
236
|
isEnableWrap: X.value,
|
|
237
|
-
onOnButtonClick:
|
|
237
|
+
onOnButtonClick: oe,
|
|
238
238
|
onChange: w,
|
|
239
239
|
isButtonRow: T.value,
|
|
240
|
-
onPreview:
|
|
240
|
+
onPreview: re
|
|
241
241
|
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEnableWrap", "isButtonRow"]),
|
|
242
|
-
P.value ? (q(), Fe(
|
|
242
|
+
P.value ? (q(), Fe(ls, {
|
|
243
243
|
key: 0,
|
|
244
244
|
fileDataList: L.value,
|
|
245
245
|
onDestroy: Z
|
|
246
|
-
}, null, 8, ["fileDataList"])) :
|
|
246
|
+
}, null, 8, ["fileDataList"])) : Xe("", !0)
|
|
247
247
|
]));
|
|
248
248
|
}
|
|
249
|
-
},
|
|
249
|
+
}, wa = /* @__PURE__ */ Ve(hs, [["__scopeId", "data-v-80dadfe5"]]), Kl = z(0), Ba = (f) => {
|
|
250
250
|
var g;
|
|
251
|
-
return !f || (f == null ? void 0 : f.length) === 0 ? [] : (g = l(f)) == null ? void 0 : g.map((a) => (
|
|
251
|
+
return !f || (f == null ? void 0 : f.length) === 0 ? [] : (g = l(f)) == null ? void 0 : g.map((a) => (Kl.value++, a = {
|
|
252
252
|
label: (a == null ? void 0 : a.label) ?? "",
|
|
253
253
|
prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : a == null ? void 0 : a.prop,
|
|
254
254
|
width: a != null && a.width ? parseInt(a.width) : "",
|
|
@@ -259,12 +259,12 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
259
259
|
isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
|
|
260
260
|
isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
|
|
261
261
|
isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
|
|
262
|
-
id: (a == null ? void 0 : a.id) ??
|
|
263
|
-
children:
|
|
262
|
+
id: (a == null ? void 0 : a.id) ?? Kl.value,
|
|
263
|
+
children: Ba(a == null ? void 0 : a.children)
|
|
264
264
|
}, a));
|
|
265
|
-
},
|
|
265
|
+
}, vs = (f) => {
|
|
266
266
|
var i;
|
|
267
|
-
return (i = l(f)) == null ? void 0 : i.map((a) => (
|
|
267
|
+
return (i = l(f)) == null ? void 0 : i.map((a) => (Kl.value++, a = {
|
|
268
268
|
label: (a == null ? void 0 : a.label) ?? "",
|
|
269
269
|
prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : a == null ? void 0 : a.prop,
|
|
270
270
|
width: a != null && a.width ? parseInt(a.width) : "",
|
|
@@ -275,27 +275,27 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
275
275
|
isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
|
|
276
276
|
isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
|
|
277
277
|
isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
|
|
278
|
-
id: (a == null ? void 0 : a.id) ??
|
|
279
|
-
children:
|
|
278
|
+
id: (a == null ? void 0 : a.id) ?? Kl.value,
|
|
279
|
+
children: Ba(a == null ? void 0 : a.children)
|
|
280
280
|
}, a));
|
|
281
|
-
},
|
|
281
|
+
}, Ta = (f, g) => {
|
|
282
282
|
var i;
|
|
283
|
-
return f != null && f.find((a) => (a == null ? void 0 : a.id) === g) ? (i = l(f)) == null ? void 0 : i.filter((
|
|
284
|
-
},
|
|
283
|
+
return f != null && f.find((a) => (a == null ? void 0 : a.id) === g) ? (i = l(f)) == null ? void 0 : i.filter((h) => (h == null ? void 0 : h.id) !== g) : (f = f == null ? void 0 : f.map((a) => (a.children = Ta(a == null ? void 0 : a.children, g), a)), f);
|
|
284
|
+
}, Sa = (f, g) => {
|
|
285
285
|
var i;
|
|
286
|
-
return f != null && f.find((a) => (a == null ? void 0 : a.id) === (g == null ? void 0 : g.id)) ? (i = l(f)) == null ? void 0 : i.map((
|
|
287
|
-
},
|
|
286
|
+
return f != null && f.find((a) => (a == null ? void 0 : a.id) === (g == null ? void 0 : g.id)) ? (i = l(f)) == null ? void 0 : i.map((h) => ((h == null ? void 0 : h.id) === (g == null ? void 0 : g.id) && (h = g), h)) : (f = f == null ? void 0 : f.map((a) => (a.children = Sa(a == null ? void 0 : a.children, g), a)), f);
|
|
287
|
+
}, Fa = (f, g) => {
|
|
288
288
|
var i;
|
|
289
289
|
return f != null && f.find((a) => {
|
|
290
|
-
var
|
|
291
|
-
return (a == null ? void 0 : a.id) === ((
|
|
292
|
-
}) ? (i = l(f)) == null ? void 0 : i.map((
|
|
290
|
+
var h;
|
|
291
|
+
return (a == null ? void 0 : a.id) === ((h = g == null ? void 0 : g.contents) == null ? void 0 : h.id);
|
|
292
|
+
}) ? (i = l(f)) == null ? void 0 : i.map((h) => {
|
|
293
293
|
var T;
|
|
294
|
-
return (
|
|
295
|
-
}) : (f = f == null ? void 0 : f.map((a) => (a.children =
|
|
296
|
-
},
|
|
294
|
+
return (h == null ? void 0 : h.id) === ((T = g == null ? void 0 : g.contents) == null ? void 0 : T.id) && (h = g == null ? void 0 : g.contents), h;
|
|
295
|
+
}) : (f = f == null ? void 0 : f.map((a) => (a.children = Fa(a == null ? void 0 : a.children, g), a)), f);
|
|
296
|
+
}, Oa = (f, g) => {
|
|
297
297
|
var i;
|
|
298
|
-
return f != null && f.find((a) => (a == null ? void 0 : a.id) === (g == null ? void 0 : g.id)) ? (i = l(f)) == null ? void 0 : i.map((
|
|
298
|
+
return f != null && f.find((a) => (a == null ? void 0 : a.id) === (g == null ? void 0 : g.id)) ? (i = l(f)) == null ? void 0 : i.map((h) => ((h == null ? void 0 : h.id) === (g == null ? void 0 : g.id) && (h != null && h.children || (h.children = []), h.children.push(g.contents)), h)) : (f = f == null ? void 0 : f.map((a) => (a.children = Oa(a == null ? void 0 : a.children, g), a)), f);
|
|
299
299
|
}, Ce = [
|
|
300
300
|
{
|
|
301
301
|
key: "label",
|
|
@@ -341,7 +341,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
341
341
|
label: "是否固定列",
|
|
342
342
|
type: "Switch"
|
|
343
343
|
}
|
|
344
|
-
],
|
|
344
|
+
], ms = [
|
|
345
345
|
{
|
|
346
346
|
label: "查看",
|
|
347
347
|
value: "view"
|
|
@@ -358,12 +358,12 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
358
358
|
label: "三维算例",
|
|
359
359
|
value: "modelExample"
|
|
360
360
|
}
|
|
361
|
-
],
|
|
361
|
+
], ys = [
|
|
362
362
|
{
|
|
363
363
|
label: "新增",
|
|
364
364
|
value: "add"
|
|
365
365
|
}
|
|
366
|
-
],
|
|
366
|
+
], rl = [
|
|
367
367
|
{
|
|
368
368
|
key: "label",
|
|
369
369
|
label: "按钮名",
|
|
@@ -373,14 +373,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
373
373
|
key: "type",
|
|
374
374
|
label: "类型",
|
|
375
375
|
type: "Select",
|
|
376
|
-
options:
|
|
376
|
+
options: ys
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
key: "background",
|
|
380
380
|
label: "按钮背景色",
|
|
381
381
|
type: "Color"
|
|
382
382
|
}
|
|
383
|
-
],
|
|
383
|
+
], cl = [
|
|
384
384
|
{
|
|
385
385
|
key: "label",
|
|
386
386
|
label: "按钮名",
|
|
@@ -390,29 +390,29 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
390
390
|
key: "type",
|
|
391
391
|
label: "类型",
|
|
392
392
|
type: "Select",
|
|
393
|
-
options:
|
|
393
|
+
options: ms
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
396
|
key: "textColor",
|
|
397
397
|
label: "按钮颜色",
|
|
398
398
|
type: "Color"
|
|
399
399
|
}
|
|
400
|
-
],
|
|
400
|
+
], bs = { class: "table-header-child" }, gs = { class: "table-header-child-main" }, ks = { class: "table-header-child-content" }, _s = { class: "table-header-child-content-item" }, Cs = { class: "fix-button" }, ws = { key: 0 }, Ds = { class: "form-content" }, As = {
|
|
401
401
|
__name: "tableNewChild",
|
|
402
402
|
props: {
|
|
403
403
|
tableChildContents: Array
|
|
404
404
|
},
|
|
405
405
|
emits: ["fixChange", "deleteChange"],
|
|
406
406
|
setup(f, { emit: g }) {
|
|
407
|
-
const i = f, a = g,
|
|
407
|
+
const i = f, a = g, h = z(!1), T = z(""), P = Aa(Ye), { tableIndex: C } = nl(P);
|
|
408
408
|
z(0);
|
|
409
409
|
const L = z(""), U = z([]), E = z([]), X = (t) => {
|
|
410
410
|
var o;
|
|
411
|
-
|
|
411
|
+
h.value = !0;
|
|
412
412
|
let s = [];
|
|
413
413
|
Ce == null || Ce.forEach((p) => {
|
|
414
|
-
let
|
|
415
|
-
P.setTableIndex(
|
|
414
|
+
let A = l(C.value) + 1;
|
|
415
|
+
P.setTableIndex(A), s.push({
|
|
416
416
|
label: p == null ? void 0 : p.label,
|
|
417
417
|
name: p == null ? void 0 : p.label,
|
|
418
418
|
type: p.type,
|
|
@@ -426,10 +426,10 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
426
426
|
}), L.value = t == null ? void 0 : t.id, U.value = s, E.value = s;
|
|
427
427
|
}, H = (t) => {
|
|
428
428
|
a("fixChange", l(t));
|
|
429
|
-
},
|
|
429
|
+
}, re = (t) => {
|
|
430
430
|
a("deleteChange", l(t));
|
|
431
431
|
}, Z = (t) => {
|
|
432
|
-
|
|
432
|
+
h.value = !0;
|
|
433
433
|
let s = [];
|
|
434
434
|
Ce == null || Ce.forEach((o) => {
|
|
435
435
|
let p = l(C.value) + 1;
|
|
@@ -442,7 +442,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
442
442
|
contents: o == null ? void 0 : o.options
|
|
443
443
|
});
|
|
444
444
|
}), T.value = t == null ? void 0 : t.id, U.value = s, E.value = s;
|
|
445
|
-
},
|
|
445
|
+
}, oe = (t) => {
|
|
446
446
|
let s = l(E.value);
|
|
447
447
|
s = s == null ? void 0 : s.map((o) => (o.children || (o.value = t == null ? void 0 : t[o.name]), o)), E.value = s;
|
|
448
448
|
}, w = () => {
|
|
@@ -451,35 +451,35 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
451
451
|
let t = {};
|
|
452
452
|
if (L.value !== "")
|
|
453
453
|
t.id = L.value, (s = U.value) == null || s.forEach((p) => {
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
}),
|
|
454
|
+
const A = Ce == null ? void 0 : Ce.find((B) => (B == null ? void 0 : B.label) === (p == null ? void 0 : p.label));
|
|
455
|
+
A ? t[A.key] = p.value : p != null && p.children && p.children.length > 0 && (t.children = p.children);
|
|
456
|
+
}), h.value = !1, a("fixChange", {
|
|
457
457
|
contents: l(t),
|
|
458
458
|
id: T.value,
|
|
459
459
|
type: "fix"
|
|
460
460
|
});
|
|
461
461
|
else {
|
|
462
462
|
let p = l(C.value) + 1;
|
|
463
|
-
P.setTableIndex(p), t.id = "id" + C.value, (o = U.value) == null || o.forEach((
|
|
464
|
-
const B = Ce == null ? void 0 : Ce.find((J) => (J == null ? void 0 : J.label) === (
|
|
465
|
-
B ? t[B.key] =
|
|
466
|
-
}),
|
|
463
|
+
P.setTableIndex(p), t.id = "id" + C.value, (o = U.value) == null || o.forEach((A) => {
|
|
464
|
+
const B = Ce == null ? void 0 : Ce.find((J) => (J == null ? void 0 : J.label) === (A == null ? void 0 : A.label));
|
|
465
|
+
B ? t[B.key] = A.value : A != null && A.children && A.children.length > 0 && (t.children = A.children);
|
|
466
|
+
}), h.value = !1, a("fixChange", {
|
|
467
467
|
contents: l(t),
|
|
468
468
|
id: T.value,
|
|
469
469
|
type: "add"
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
L.value = "", U.value = [], E.value = [];
|
|
473
|
-
},
|
|
474
|
-
|
|
473
|
+
}, v = () => {
|
|
474
|
+
h.value = !1, L.value = "", T.value = "", U.value = [], E.value = [];
|
|
475
475
|
}, M = (t) => {
|
|
476
|
-
|
|
476
|
+
tl.confirm("是否确认要删除", "", {
|
|
477
477
|
confirmButtonText: "确认",
|
|
478
478
|
cancelButtonText: "取消",
|
|
479
479
|
type: "warning"
|
|
480
480
|
}).then(
|
|
481
481
|
() => {
|
|
482
|
-
a("deleteChange", t),
|
|
482
|
+
a("deleteChange", t), el({
|
|
483
483
|
type: "success",
|
|
484
484
|
message: "删除成功"
|
|
485
485
|
});
|
|
@@ -489,11 +489,11 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
489
489
|
};
|
|
490
490
|
return (t, s) => {
|
|
491
491
|
const o = Te("svg-icon");
|
|
492
|
-
return q(), de("div",
|
|
493
|
-
(q(!0), de(Se, null,
|
|
494
|
-
D("div",
|
|
495
|
-
D("div",
|
|
496
|
-
D("div",
|
|
492
|
+
return q(), de("div", bs, [
|
|
493
|
+
(q(!0), de(Se, null, Le(i == null ? void 0 : i.tableChildContents, (p, A) => (q(), de("div", gs, [
|
|
494
|
+
D("div", ks, [
|
|
495
|
+
D("div", _s, me(p.label), 1),
|
|
496
|
+
D("div", Cs, [
|
|
497
497
|
K(o, {
|
|
498
498
|
name: "ChildAdd",
|
|
499
499
|
class: "svg-icon-content",
|
|
@@ -514,33 +514,33 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
514
514
|
}, null, 8, ["onClick"])
|
|
515
515
|
])
|
|
516
516
|
]),
|
|
517
|
-
p != null && p.children && p.children.length > 0 ? (q(), de("div",
|
|
518
|
-
K(
|
|
517
|
+
p != null && p.children && p.children.length > 0 ? (q(), de("div", ws, [
|
|
518
|
+
K(La, {
|
|
519
519
|
tableChildContents: p == null ? void 0 : p.children,
|
|
520
|
-
onDeleteChange:
|
|
520
|
+
onDeleteChange: re,
|
|
521
521
|
onFixChange: H
|
|
522
522
|
}, null, 8, ["tableChildContents"])
|
|
523
|
-
])) :
|
|
523
|
+
])) : Xe("", !0)
|
|
524
524
|
]))), 256)),
|
|
525
|
-
K(
|
|
526
|
-
visible:
|
|
527
|
-
onBeforeDestroy:
|
|
525
|
+
K(Je, {
|
|
526
|
+
visible: h.value,
|
|
527
|
+
onBeforeDestroy: v,
|
|
528
528
|
width: 840
|
|
529
529
|
}, {
|
|
530
530
|
default: se(() => [
|
|
531
|
-
D("div",
|
|
532
|
-
(q(), Fe(
|
|
531
|
+
D("div", Ds, [
|
|
532
|
+
(q(), Fe(We, {
|
|
533
533
|
rowContents: U.value,
|
|
534
534
|
key: U.value,
|
|
535
535
|
isEnableWrap: !0,
|
|
536
|
-
onChange:
|
|
536
|
+
onChange: oe
|
|
537
537
|
}, null, 8, ["rowContents"]))
|
|
538
538
|
])
|
|
539
539
|
]),
|
|
540
540
|
footer: se(() => [
|
|
541
541
|
D("div", { class: "dialog-footer" }, [
|
|
542
542
|
D("div", {
|
|
543
|
-
onClick:
|
|
543
|
+
onClick: v,
|
|
544
544
|
class: "cancel-button button"
|
|
545
545
|
}, me("取消")),
|
|
546
546
|
D("div", {
|
|
@@ -554,22 +554,22 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
554
554
|
]);
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
},
|
|
557
|
+
}, Is = /* @__PURE__ */ Ve(As, [["__scopeId", "data-v-e0fef72d"]]), xs = { class: "table-header-child" }, Es = { class: "table-header-child-main" }, $s = { class: "table-header-child-content" }, Bs = { class: "table-header-child-content-item" }, Ts = { class: "fix-button" }, Ss = { key: 0 }, Fs = { class: "form-content" }, Os = { class: "dialog-footer" }, Ls = {
|
|
558
558
|
__name: "tableChildren",
|
|
559
559
|
props: {
|
|
560
560
|
tableChildContents: Array
|
|
561
561
|
},
|
|
562
562
|
emits: ["fixChange", "deleteChange"],
|
|
563
563
|
setup(f, { emit: g }) {
|
|
564
|
-
const i = f, a = g,
|
|
564
|
+
const i = f, a = g, h = z(!1), T = z(""), P = Aa(Ye), { tableIndex: C } = nl(P), L = z(""), U = z([]), E = z([]), X = (t) => {
|
|
565
565
|
a("fixChange", l(t));
|
|
566
566
|
}, H = (t) => {
|
|
567
567
|
var o;
|
|
568
|
-
|
|
568
|
+
h.value = !0;
|
|
569
569
|
let s = [];
|
|
570
570
|
Ce == null || Ce.forEach((p) => {
|
|
571
|
-
let
|
|
572
|
-
P.setTableIndex(
|
|
571
|
+
let A = l(C.value) + 1;
|
|
572
|
+
P.setTableIndex(A), s.push({
|
|
573
573
|
label: p == null ? void 0 : p.label,
|
|
574
574
|
name: p == null ? void 0 : p.label,
|
|
575
575
|
type: p.type,
|
|
@@ -581,8 +581,8 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
581
581
|
children: t == null ? void 0 : t.children,
|
|
582
582
|
isFormColHidden: !0
|
|
583
583
|
}), L.value = t == null ? void 0 : t.id, U.value = s, E.value = s;
|
|
584
|
-
},
|
|
585
|
-
|
|
584
|
+
}, re = (t) => {
|
|
585
|
+
h.value = !0;
|
|
586
586
|
let s = [];
|
|
587
587
|
Ce == null || Ce.forEach((o) => {
|
|
588
588
|
let p = l(C.value) + 1;
|
|
@@ -598,25 +598,25 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
598
598
|
}, Z = (t) => {
|
|
599
599
|
let s = l(E.value);
|
|
600
600
|
s = s == null ? void 0 : s.map((o) => (o.children || (o.value = t == null ? void 0 : t[o.name]), o)), E.value = s;
|
|
601
|
-
},
|
|
601
|
+
}, oe = () => {
|
|
602
602
|
var s, o;
|
|
603
603
|
U.value = E.value;
|
|
604
604
|
let t = {};
|
|
605
605
|
if (L.value !== "")
|
|
606
606
|
t.id = L.value, (s = U.value) == null || s.forEach((p) => {
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
-
}),
|
|
607
|
+
const A = Ce == null ? void 0 : Ce.find((B) => (B == null ? void 0 : B.label) === (p == null ? void 0 : p.label));
|
|
608
|
+
A ? t[A.key] = p.value : p != null && p.children && p.children.length > 0 && (t.children = p.children);
|
|
609
|
+
}), h.value = !1, a("fixChange", {
|
|
610
610
|
contents: l(t),
|
|
611
611
|
id: T.value,
|
|
612
612
|
type: "fix"
|
|
613
613
|
});
|
|
614
614
|
else {
|
|
615
615
|
let p = l(C.value) + 1;
|
|
616
|
-
P.setTableIndex(p), t.id = "idChild" + C.value, (o = U.value) == null || o.forEach((
|
|
617
|
-
const B = Ce == null ? void 0 : Ce.find((J) => (J == null ? void 0 : J.label) === (
|
|
618
|
-
B ? t[B.key] =
|
|
619
|
-
}),
|
|
616
|
+
P.setTableIndex(p), t.id = "idChild" + C.value, (o = U.value) == null || o.forEach((A) => {
|
|
617
|
+
const B = Ce == null ? void 0 : Ce.find((J) => (J == null ? void 0 : J.label) === (A == null ? void 0 : A.label));
|
|
618
|
+
B ? t[B.key] = A.value : A != null && A.children && A.children.length > 0 && (t.children = A.children);
|
|
619
|
+
}), h.value = !1, a("fixChange", {
|
|
620
620
|
contents: l(t),
|
|
621
621
|
id: T.value,
|
|
622
622
|
type: "add"
|
|
@@ -624,15 +624,15 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
624
624
|
}
|
|
625
625
|
L.value = "", U.value = [], E.value = [];
|
|
626
626
|
}, w = () => {
|
|
627
|
-
|
|
628
|
-
},
|
|
629
|
-
|
|
627
|
+
h.value = !1, L.value = "", T.value = "", U.value = [], E.value = [];
|
|
628
|
+
}, v = (t) => {
|
|
629
|
+
tl.confirm("是否确认要删除", "", {
|
|
630
630
|
confirmButtonText: "确认",
|
|
631
631
|
cancelButtonText: "取消",
|
|
632
632
|
type: "warning"
|
|
633
633
|
}).then(
|
|
634
634
|
() => {
|
|
635
|
-
a("deleteChange", t),
|
|
635
|
+
a("deleteChange", t), el({
|
|
636
636
|
type: "success",
|
|
637
637
|
message: "删除成功"
|
|
638
638
|
});
|
|
@@ -644,47 +644,47 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
644
644
|
};
|
|
645
645
|
return (t, s) => {
|
|
646
646
|
const o = Te("svg-icon"), p = Te("el-button");
|
|
647
|
-
return q(), de("div",
|
|
648
|
-
(q(!0), de(Se, null,
|
|
649
|
-
D("div",
|
|
650
|
-
D("div",
|
|
651
|
-
D("div",
|
|
647
|
+
return q(), de("div", xs, [
|
|
648
|
+
(q(!0), de(Se, null, Le(i == null ? void 0 : i.tableChildContents, (A, B) => (q(), de("div", Es, [
|
|
649
|
+
D("div", $s, [
|
|
650
|
+
D("div", Bs, me(A.label), 1),
|
|
651
|
+
D("div", Ts, [
|
|
652
652
|
K(o, {
|
|
653
653
|
name: "ChildAdd",
|
|
654
654
|
class: "svg-icon-content",
|
|
655
655
|
style: { width: "24px", height: "24px" },
|
|
656
|
-
onClick: (J) =>
|
|
656
|
+
onClick: (J) => re(A)
|
|
657
657
|
}, null, 8, ["onClick"]),
|
|
658
658
|
K(o, {
|
|
659
659
|
name: "ChildFix",
|
|
660
660
|
class: "svg-icon-content",
|
|
661
661
|
style: { width: "24px", height: "24px" },
|
|
662
|
-
onClick: (J) => H(
|
|
662
|
+
onClick: (J) => H(A)
|
|
663
663
|
}, null, 8, ["onClick"]),
|
|
664
664
|
K(o, {
|
|
665
665
|
name: "ChildDelete",
|
|
666
666
|
class: "svg-icon-content",
|
|
667
667
|
style: { width: "24px", height: "24px" },
|
|
668
|
-
onClick: (J) =>
|
|
668
|
+
onClick: (J) => v(A)
|
|
669
669
|
}, null, 8, ["onClick"])
|
|
670
670
|
])
|
|
671
671
|
]),
|
|
672
|
-
|
|
673
|
-
K(
|
|
674
|
-
tableChildContents:
|
|
672
|
+
A != null && A.children && A.children.length > 0 ? (q(), de("div", Ss, [
|
|
673
|
+
K(Is, {
|
|
674
|
+
tableChildContents: A == null ? void 0 : A.children,
|
|
675
675
|
onDeleteChange: M,
|
|
676
676
|
onFixChange: X
|
|
677
677
|
}, null, 8, ["tableChildContents"])
|
|
678
|
-
])) :
|
|
678
|
+
])) : Xe("", !0)
|
|
679
679
|
]))), 256)),
|
|
680
|
-
K(
|
|
681
|
-
visible:
|
|
680
|
+
K(Je, {
|
|
681
|
+
visible: h.value,
|
|
682
682
|
onBeforeDestroy: w,
|
|
683
683
|
width: 840
|
|
684
684
|
}, {
|
|
685
685
|
default: se(() => [
|
|
686
|
-
D("div",
|
|
687
|
-
(q(), Fe(
|
|
686
|
+
D("div", Fs, [
|
|
687
|
+
(q(), Fe(We, {
|
|
688
688
|
rowContents: U.value,
|
|
689
689
|
key: U.value,
|
|
690
690
|
isEnableWrap: !0,
|
|
@@ -693,25 +693,25 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
693
693
|
])
|
|
694
694
|
]),
|
|
695
695
|
footer: se(() => [
|
|
696
|
-
D("div",
|
|
696
|
+
D("div", Os, [
|
|
697
697
|
K(p, {
|
|
698
698
|
onClick: w,
|
|
699
699
|
class: "cancel-button button",
|
|
700
700
|
id: "themeBorderButton"
|
|
701
701
|
}, {
|
|
702
702
|
default: se(() => s[0] || (s[0] = [
|
|
703
|
-
|
|
703
|
+
xe(me("取消"))
|
|
704
704
|
])),
|
|
705
705
|
_: 1,
|
|
706
706
|
__: [0]
|
|
707
707
|
}),
|
|
708
708
|
K(p, {
|
|
709
709
|
class: "ok-button button",
|
|
710
|
-
onClick:
|
|
710
|
+
onClick: oe,
|
|
711
711
|
id: "themeButton"
|
|
712
712
|
}, {
|
|
713
713
|
default: se(() => s[1] || (s[1] = [
|
|
714
|
-
|
|
714
|
+
xe(me("确认"))
|
|
715
715
|
])),
|
|
716
716
|
_: 1,
|
|
717
717
|
__: [1]
|
|
@@ -723,7 +723,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
723
723
|
]);
|
|
724
724
|
};
|
|
725
725
|
}
|
|
726
|
-
},
|
|
726
|
+
}, La = /* @__PURE__ */ Ve(Ls, [["__scopeId", "data-v-ebd68fa1"]]), Rs = { class: "table-operate-content" }, Ps = { class: "table-operate-item" }, Vs = { class: "operate-title" }, Ns = { class: "operate-content" }, js = { class: "fix-content" }, Us = { class: "fix-content-label" }, Ws = { class: "fix-button" }, zs = { key: 0 }, Ms = { class: "operate-title" }, Ks = { class: "operate-content" }, Js = { class: "fix-content" }, Gs = { class: "fix-content-label" }, Hs = { class: "fix-button" }, qs = { class: "operate-title" }, Qs = { class: "operate-content" }, Xs = { class: "fix-content" }, Ys = { class: "fix-content-label" }, Zs = { class: "fix-button" }, ei = { class: "operate-title" }, li = { class: "operate-content" }, ai = { class: "fix-content" }, si = { class: "fix-content-label" }, ii = { class: "fix-button" }, ni = { class: "operate-content" }, oi = { style: { display: "flex", "justify-content": "space-between" } }, ui = { class: "form-content" }, ri = { class: "dialog-footer" }, ci = { class: "form-content" }, ti = { class: "dialog-footer" }, di = { class: "form-content" }, pi = { class: "dialog-footer" }, fi = { class: "form-content" }, hi = { class: "dialog-footer" }, vi = {
|
|
727
727
|
__name: "operate",
|
|
728
728
|
props: {
|
|
729
729
|
itemContents: {
|
|
@@ -737,10 +737,10 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
737
737
|
},
|
|
738
738
|
emits: ["change"],
|
|
739
739
|
setup(f, { emit: g }) {
|
|
740
|
-
const i = f, a = g,
|
|
740
|
+
const i = f, a = g, h = z([]), T = z(!1), P = z(!1), C = z([]), L = z(!1), U = z([]), E = z(!1), X = z([]), H = z(""), re = z(""), Z = z([]), oe = z([]), w = z([]), v = z([]), M = z(!1), t = z([]), s = z([]), o = z(0), p = z([]), A = z([]), B = z([]), J = () => {
|
|
741
741
|
M.value = !0;
|
|
742
742
|
let e = [];
|
|
743
|
-
|
|
743
|
+
rl == null || rl.forEach((u) => {
|
|
744
744
|
o.value++, e.push({
|
|
745
745
|
label: u == null ? void 0 : u.label,
|
|
746
746
|
name: u == null ? void 0 : u.label,
|
|
@@ -763,65 +763,65 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
763
763
|
id: o.value,
|
|
764
764
|
contents: x == null ? void 0 : x.options
|
|
765
765
|
});
|
|
766
|
-
}), p.value = e,
|
|
766
|
+
}), p.value = e, A.value = e;
|
|
767
767
|
}, j = (e) => {
|
|
768
|
-
e || (p.value =
|
|
768
|
+
e || (p.value = A.value);
|
|
769
769
|
}, G = async (e) => {
|
|
770
|
-
var u, b, d, x, N, pe, F, ce, ge, ke,
|
|
771
|
-
if ((e == null ? void 0 : e.类型) !== ((b = (u =
|
|
772
|
-
let ae = [], we = await ((N = (x = (d = Ne) == null ? void 0 : d.find((
|
|
773
|
-
if (we == null || we.forEach((
|
|
770
|
+
var u, b, d, x, N, pe, F, ce, ge, ke, Ae, he;
|
|
771
|
+
if ((e == null ? void 0 : e.类型) !== ((b = (u = A.value) == null ? void 0 : u.find((ae) => (ae == null ? void 0 : ae.label) === "类型")) == null ? void 0 : b.value)) {
|
|
772
|
+
let ae = [], we = await ((N = (x = (d = Ne) == null ? void 0 : d.find((ve) => (ve == null ? void 0 : ve.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : x.value) == null ? void 0 : N.value) ? await ((ke = (ge = (ce = Ne) == null ? void 0 : ce.find((ve) => (ve == null ? void 0 : ve.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : ge.value) == null ? void 0 : ke.value) : (F = (pe = Ne) == null ? void 0 : pe.find((ve) => (ve == null ? void 0 : ve.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : F.value;
|
|
773
|
+
if (we == null || we.forEach((ve) => {
|
|
774
774
|
o.value++, ae.push({
|
|
775
|
-
label:
|
|
776
|
-
name:
|
|
777
|
-
type:
|
|
778
|
-
value: (e == null ? void 0 : e[
|
|
775
|
+
label: ve == null ? void 0 : ve.label,
|
|
776
|
+
name: ve == null ? void 0 : ve.label,
|
|
777
|
+
type: ve.type,
|
|
778
|
+
value: (e == null ? void 0 : e[ve.label]) ?? "",
|
|
779
779
|
id: o.value,
|
|
780
|
-
contents:
|
|
780
|
+
contents: ve == null ? void 0 : ve.options
|
|
781
781
|
});
|
|
782
|
-
}), e != null && e.菜单选项 && ((
|
|
783
|
-
const
|
|
784
|
-
ae = ae == null ? void 0 : ae.map((
|
|
782
|
+
}), e != null && e.菜单选项 && ((Ae = e == null ? void 0 : e.菜单选项) == null ? void 0 : Ae.length) > 0) {
|
|
783
|
+
const ve = await gl(e == null ? void 0 : e.菜单选项);
|
|
784
|
+
ae = ae == null ? void 0 : ae.map(($e) => (($e == null ? void 0 : $e.name) === "组信息选项" && ($e.contents = ve), $e));
|
|
785
785
|
}
|
|
786
|
-
|
|
786
|
+
A.value = await al(l(ae)), p.value = await al(l(ae));
|
|
787
787
|
} else {
|
|
788
788
|
let ae = l(p.value);
|
|
789
|
-
if (ae = ae == null ? void 0 : ae.map((we) => (we.value = e == null ? void 0 : e[we.name], we)), e != null && e.菜单选项 && ((
|
|
789
|
+
if (ae = ae == null ? void 0 : ae.map((we) => (we.value = e == null ? void 0 : e[we.name], we)), e != null && e.菜单选项 && ((he = e == null ? void 0 : e.菜单选项) == null ? void 0 : he.length) > 0) {
|
|
790
790
|
const we = await gl(e == null ? void 0 : e.菜单选项);
|
|
791
|
-
ae = ae == null ? void 0 : ae.map((
|
|
791
|
+
ae = ae == null ? void 0 : ae.map((ve) => ((ve == null ? void 0 : ve.name) === "组信息选项" && (ve.contents = we), ve));
|
|
792
792
|
}
|
|
793
|
-
ae =
|
|
793
|
+
ae = hl(ae), A.value = await al(l(ae));
|
|
794
794
|
}
|
|
795
795
|
}, n = async (e) => {
|
|
796
|
-
await G(e), p.value =
|
|
797
|
-
},
|
|
798
|
-
var d, x, N, pe, F, ce, ge, ke,
|
|
796
|
+
await G(e), p.value = A.value;
|
|
797
|
+
}, I = async (e) => {
|
|
798
|
+
var d, x, N, pe, F, ce, ge, ke, Ae;
|
|
799
799
|
P.value = !0;
|
|
800
800
|
let u = [];
|
|
801
|
-
const b = await ((N = (x = (d = Ne) == null ? void 0 : d.find((
|
|
802
|
-
if (b == null || b.forEach((
|
|
801
|
+
const b = await ((N = (x = (d = Ne) == null ? void 0 : d.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : x.value) == null ? void 0 : N.value) ? await ((ke = (ge = (ce = Ne) == null ? void 0 : ce.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : ge.value) == null ? void 0 : ke.value) : (F = (pe = Ne) == null ? void 0 : pe.find((he) => (he == null ? void 0 : he.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : F.value;
|
|
802
|
+
if (b == null || b.forEach((he) => {
|
|
803
803
|
o.value++, u.push({
|
|
804
|
-
label:
|
|
805
|
-
name:
|
|
806
|
-
type:
|
|
807
|
-
value: (
|
|
804
|
+
label: he == null ? void 0 : he.label,
|
|
805
|
+
name: he == null ? void 0 : he.label,
|
|
806
|
+
type: he.type,
|
|
807
|
+
value: (he == null ? void 0 : he.label) === "类型" && e[he.key] === "" ? "Input" : e[he.key],
|
|
808
808
|
id: o.value,
|
|
809
|
-
contents:
|
|
809
|
+
contents: he == null ? void 0 : he.options
|
|
810
810
|
});
|
|
811
|
-
}), e != null && e.menuSelect && ((
|
|
812
|
-
const
|
|
813
|
-
u = u == null ? void 0 : u.map((ae) => ((ae == null ? void 0 : ae.name) === "组信息选项" && (ae.contents =
|
|
811
|
+
}), e != null && e.menuSelect && ((Ae = e == null ? void 0 : e.menuSelect) == null ? void 0 : Ae.length) > 0) {
|
|
812
|
+
const he = await gl(e == null ? void 0 : e.menuSelect);
|
|
813
|
+
u = u == null ? void 0 : u.map((ae) => ((ae == null ? void 0 : ae.name) === "组信息选项" && (ae.contents = he), ae));
|
|
814
814
|
}
|
|
815
|
-
H.value = e == null ? void 0 : e.id, p.value = await
|
|
815
|
+
H.value = e == null ? void 0 : e.id, p.value = await al(hl(u)), A.value = await al(hl(u));
|
|
816
816
|
}, _ = (e) => {
|
|
817
|
-
|
|
817
|
+
tl.confirm("是否确认要删除", "", {
|
|
818
818
|
confirmButtonText: "确认",
|
|
819
819
|
cancelButtonText: "取消",
|
|
820
820
|
type: "warning"
|
|
821
821
|
}).then(
|
|
822
822
|
() => {
|
|
823
823
|
var u, b;
|
|
824
|
-
B.value = (u = l(B.value)) == null ? void 0 : u.filter((d) => (d == null ? void 0 : d.id) !== (e == null ? void 0 : e.id)), a("change", (b = l(i.originalItemContents)) == null ? void 0 : b.map((d) => ((d == null ? void 0 : d.key) === "tableToForm" && (d.contents = B.value), d))),
|
|
824
|
+
B.value = (u = l(B.value)) == null ? void 0 : u.filter((d) => (d == null ? void 0 : d.id) !== (e == null ? void 0 : e.id)), a("change", (b = l(i.originalItemContents)) == null ? void 0 : b.map((d) => ((d == null ? void 0 : d.key) === "tableToForm" && (d.contents = B.value), d))), el({
|
|
825
825
|
type: "success",
|
|
826
826
|
message: "删除成功"
|
|
827
827
|
});
|
|
@@ -831,19 +831,19 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
831
831
|
}, c = () => {
|
|
832
832
|
P.value = !1, p.value = [], H.value = "";
|
|
833
833
|
}, $ = async () => {
|
|
834
|
-
var d, x, N, pe, F, ce, ge, ke,
|
|
835
|
-
p.value =
|
|
834
|
+
var d, x, N, pe, F, ce, ge, ke, Ae, he;
|
|
835
|
+
p.value = A.value;
|
|
836
836
|
let e = {};
|
|
837
837
|
H.value !== "" ? e.id = H.value : (o.value++, e.id = "id" + o.value);
|
|
838
838
|
let u = await ((N = (x = (d = Ne) == null ? void 0 : d.find((ae) => {
|
|
839
|
-
var we,
|
|
840
|
-
return (ae == null ? void 0 : ae.key) === (((
|
|
839
|
+
var we, ve;
|
|
840
|
+
return (ae == null ? void 0 : ae.key) === (((ve = (we = p.value) == null ? void 0 : we.find(($e) => ($e == null ? void 0 : $e.label) === "类型")) == null ? void 0 : ve.value) ?? "label");
|
|
841
841
|
})) == null ? void 0 : x.value) == null ? void 0 : N.value) ?? ((F = (pe = Ne) == null ? void 0 : pe.find((ae) => {
|
|
842
|
-
var we,
|
|
843
|
-
return (ae == null ? void 0 : ae.key) === (((
|
|
842
|
+
var we, ve;
|
|
843
|
+
return (ae == null ? void 0 : ae.key) === (((ve = (we = p.value) == null ? void 0 : we.find(($e) => ($e == null ? void 0 : $e.label) === "类型")) == null ? void 0 : ve.value) ?? "label");
|
|
844
844
|
})) == null ? void 0 : F.value);
|
|
845
845
|
if ((ce = p.value) == null || ce.forEach((ae) => {
|
|
846
|
-
const we = u == null ? void 0 : u.find((
|
|
846
|
+
const we = u == null ? void 0 : u.find((ve) => (ve == null ? void 0 : ve.label) === (ae == null ? void 0 : ae.label));
|
|
847
847
|
we && (e[we.key] = ae.value);
|
|
848
848
|
}), e.name = e.label, (ge = B.value) != null && ge.find((ae) => ae.id === e.id))
|
|
849
849
|
B.value = (ke = B.value) == null ? void 0 : ke.map((ae) => (ae.id === e.id && (ae = e), ae));
|
|
@@ -853,14 +853,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
853
853
|
}
|
|
854
854
|
B.value = B.value.map(({ id: ae, ...we }) => we), P.value = !1, H.value = "";
|
|
855
855
|
let b = l(i.originalItemContents);
|
|
856
|
-
(
|
|
856
|
+
(Ae = l(i.originalItemContents)) != null && Ae.find((ae) => (ae == null ? void 0 : ae.key) === "tableToForm") ? b = (he = l(i.originalItemContents)) == null ? void 0 : he.map((ae) => ((ae == null ? void 0 : ae.key) === "tableToForm" && (ae.contents = B.value), ae)) : b.push({
|
|
857
857
|
key: "tableToForm",
|
|
858
858
|
contents: B.value
|
|
859
859
|
}), a("change", b);
|
|
860
860
|
}, Q = (e) => {
|
|
861
861
|
M.value = !0;
|
|
862
862
|
let u = [];
|
|
863
|
-
|
|
863
|
+
rl == null || rl.forEach((b) => {
|
|
864
864
|
o.value++, u.push({
|
|
865
865
|
label: b == null ? void 0 : b.label,
|
|
866
866
|
name: b == null ? void 0 : b.label,
|
|
@@ -884,14 +884,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
884
884
|
{ deep: !0 }
|
|
885
885
|
);
|
|
886
886
|
const le = (e) => {
|
|
887
|
-
|
|
887
|
+
tl.confirm("是否确认要删除", "", {
|
|
888
888
|
confirmButtonText: "确认",
|
|
889
889
|
cancelButtonText: "取消",
|
|
890
890
|
type: "warning"
|
|
891
891
|
}).then(
|
|
892
892
|
() => {
|
|
893
893
|
var u, b;
|
|
894
|
-
|
|
894
|
+
oe.value = (u = l(oe.value)) == null ? void 0 : u.filter((d) => (d == null ? void 0 : d.id) !== (e == null ? void 0 : e.id)), a("change", (b = l(i.originalItemContents)) == null ? void 0 : b.map((d) => ((d == null ? void 0 : d.key) === "extraButton" && (d.contents = oe.value), d))), el({
|
|
895
895
|
type: "success",
|
|
896
896
|
message: "删除成功"
|
|
897
897
|
});
|
|
@@ -903,19 +903,19 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
903
903
|
t.value = s.value;
|
|
904
904
|
let e = {};
|
|
905
905
|
if (H.value !== "" ? e.id = H.value : (o.value++, e.id = "id" + o.value), (b = t.value) == null || b.forEach((F) => {
|
|
906
|
-
const ce =
|
|
906
|
+
const ce = rl == null ? void 0 : rl.find((ge) => (ge == null ? void 0 : ge.label) === (F == null ? void 0 : F.label));
|
|
907
907
|
ce ? e[ce.key] = F.value : F != null && F.children && F.children.length > 0 && (e.children = F.children);
|
|
908
|
-
}), (d =
|
|
909
|
-
|
|
908
|
+
}), (d = oe.value) != null && d.find((F) => F.id === e.id))
|
|
909
|
+
oe.value = (x = oe.value) == null ? void 0 : x.map((F) => (F.id === e.id && (F = e), F));
|
|
910
910
|
else {
|
|
911
|
-
let F = l(
|
|
912
|
-
F.push(e),
|
|
911
|
+
let F = l(oe.value) ?? [];
|
|
912
|
+
F.push(e), oe.value = F;
|
|
913
913
|
}
|
|
914
914
|
M.value = !1, H.value = "";
|
|
915
915
|
let u = l(i.originalItemContents);
|
|
916
|
-
(N = l(i.originalItemContents)) != null && N.find((F) => (F == null ? void 0 : F.key) === "extraButton") ? u = (pe = l(i.originalItemContents)) == null ? void 0 : pe.map((F) => ((F == null ? void 0 : F.key) === "extraButton" && (F.contents =
|
|
916
|
+
(N = l(i.originalItemContents)) != null && N.find((F) => (F == null ? void 0 : F.key) === "extraButton") ? u = (pe = l(i.originalItemContents)) == null ? void 0 : pe.map((F) => ((F == null ? void 0 : F.key) === "extraButton" && (F.contents = oe.value), F)) : u.push({
|
|
917
917
|
key: "extraButton",
|
|
918
|
-
contents:
|
|
918
|
+
contents: oe.value
|
|
919
919
|
}), a("change", u);
|
|
920
920
|
}, k = (e) => {
|
|
921
921
|
let u = l(s.value);
|
|
@@ -925,7 +925,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
925
925
|
}, ie = (e) => {
|
|
926
926
|
L.value = !0;
|
|
927
927
|
let u = [];
|
|
928
|
-
|
|
928
|
+
cl == null || cl.forEach((b) => {
|
|
929
929
|
o.value++, u.push({
|
|
930
930
|
label: b == null ? void 0 : b.label,
|
|
931
931
|
name: b == null ? void 0 : b.label,
|
|
@@ -934,16 +934,16 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
934
934
|
id: o.value,
|
|
935
935
|
contents: b == null ? void 0 : b.options
|
|
936
936
|
});
|
|
937
|
-
}), H.value = e == null ? void 0 : e.id, w.value = u,
|
|
938
|
-
},
|
|
939
|
-
|
|
937
|
+
}), H.value = e == null ? void 0 : e.id, w.value = u, v.value = u;
|
|
938
|
+
}, ne = (e) => {
|
|
939
|
+
tl.confirm("是否确认要删除", "", {
|
|
940
940
|
confirmButtonText: "确认",
|
|
941
941
|
cancelButtonText: "取消",
|
|
942
942
|
type: "warning"
|
|
943
943
|
}).then(
|
|
944
944
|
() => {
|
|
945
945
|
var u, b;
|
|
946
|
-
Z.value = (u = l(Z.value)) == null ? void 0 : u.filter((d) => (d == null ? void 0 : d.id) !== (e == null ? void 0 : e.id)), a("change", (b = l(i.originalItemContents)) == null ? void 0 : b.map((d) => ((d == null ? void 0 : d.key) === "rowButton" && (d.contents = Z.value), d))),
|
|
946
|
+
Z.value = (u = l(Z.value)) == null ? void 0 : u.filter((d) => (d == null ? void 0 : d.id) !== (e == null ? void 0 : e.id)), a("change", (b = l(i.originalItemContents)) == null ? void 0 : b.map((d) => ((d == null ? void 0 : d.key) === "rowButton" && (d.contents = Z.value), d))), el({
|
|
947
947
|
type: "success",
|
|
948
948
|
message: "删除成功"
|
|
949
949
|
});
|
|
@@ -966,7 +966,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
966
966
|
}, y = () => {
|
|
967
967
|
L.value = !0;
|
|
968
968
|
let e = [];
|
|
969
|
-
|
|
969
|
+
cl == null || cl.forEach((u) => {
|
|
970
970
|
o.value++, e.push({
|
|
971
971
|
label: u == null ? void 0 : u.label,
|
|
972
972
|
name: u == null ? void 0 : u.label,
|
|
@@ -975,16 +975,16 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
975
975
|
id: o.value,
|
|
976
976
|
contents: u == null ? void 0 : u.options
|
|
977
977
|
});
|
|
978
|
-
}), w.value = e,
|
|
978
|
+
}), w.value = e, v.value = e;
|
|
979
979
|
}, O = (e) => {
|
|
980
|
-
let u = l(
|
|
981
|
-
u = u == null ? void 0 : u.map((b) => (b.children || (b.value = e == null ? void 0 : e[b.name]), b)),
|
|
980
|
+
let u = l(v.value);
|
|
981
|
+
u = u == null ? void 0 : u.map((b) => (b.children || (b.value = e == null ? void 0 : e[b.name]), b)), v.value = u;
|
|
982
982
|
}, W = () => {
|
|
983
983
|
var b, d, x, N, pe;
|
|
984
|
-
w.value =
|
|
984
|
+
w.value = v.value;
|
|
985
985
|
let e = {};
|
|
986
986
|
if (H.value !== "" ? e.id = H.value : (o.value++, e.id = "id" + o.value), (b = w.value) == null || b.forEach((F) => {
|
|
987
|
-
const ce =
|
|
987
|
+
const ce = cl == null ? void 0 : cl.find((ge) => (ge == null ? void 0 : ge.label) === (F == null ? void 0 : F.label));
|
|
988
988
|
ce ? e[ce.key] = F.value : F != null && F.children && F.children.length > 0 && (e.children = F.children);
|
|
989
989
|
}), (d = Z.value) != null && d.find((F) => F.id === e.id))
|
|
990
990
|
Z.value = (x = Z.value) == null ? void 0 : x.map((F) => (F.id === e.id && (F = e), F));
|
|
@@ -998,8 +998,8 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
998
998
|
key: "rowButton",
|
|
999
999
|
contents: Z.value
|
|
1000
1000
|
}), a("change", u);
|
|
1001
|
-
},
|
|
1002
|
-
L.value = !1, H.value = "",
|
|
1001
|
+
}, ue = () => {
|
|
1002
|
+
L.value = !1, H.value = "", v.value = [], w.value = [];
|
|
1003
1003
|
}, ee = (e) => {
|
|
1004
1004
|
T.value = !0;
|
|
1005
1005
|
let u = [];
|
|
@@ -1012,16 +1012,16 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1012
1012
|
id: o.value,
|
|
1013
1013
|
contents: b == null ? void 0 : b.options
|
|
1014
1014
|
});
|
|
1015
|
-
}), U.value = u,
|
|
1015
|
+
}), U.value = u, re.value = e == null ? void 0 : e.id, X.value = u;
|
|
1016
1016
|
}, fe = (e) => {
|
|
1017
1017
|
var u;
|
|
1018
|
-
C.value =
|
|
1018
|
+
C.value = Ta(l(C.value), e == null ? void 0 : e.id), a("change", (u = l(i.originalItemContents)) == null ? void 0 : u.map((b) => {
|
|
1019
1019
|
var d;
|
|
1020
1020
|
return (b == null ? void 0 : b.key) === "header" && (b.contents = (d = C.value) != null && d.some((x) => x == null ? void 0 : x.children) ? [C.value] : C.value), b;
|
|
1021
1021
|
}));
|
|
1022
1022
|
}, V = (e) => {
|
|
1023
1023
|
var b, d, x;
|
|
1024
|
-
e.type === "fix" ? e.id !== "" ? C.value =
|
|
1024
|
+
e.type === "fix" ? e.id !== "" ? C.value = Fa(C.value, e) : C.value = Sa(C.value, e == null ? void 0 : e.contents) : C.value = Oa(C.value, e), C.value = (b = C.value) != null && b.some((N) => N == null ? void 0 : N.children) ? [C.value] : C.value, H.value = "";
|
|
1025
1025
|
let u = l(i.originalItemContents);
|
|
1026
1026
|
(d = l(i.originalItemContents)) != null && d.find((N) => (N == null ? void 0 : N.key) === "header") ? u = (x = l(i.originalItemContents)) == null ? void 0 : x.map((N) => ((N == null ? void 0 : N.key) === "header" && (N.contents = C.value), N)) : u.push({
|
|
1027
1027
|
key: "header",
|
|
@@ -1043,13 +1043,13 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1043
1043
|
}), e != null && e.children && ((b = e == null ? void 0 : e.children) == null ? void 0 : b.length) > 0 && u.push({
|
|
1044
1044
|
children: e == null ? void 0 : e.children,
|
|
1045
1045
|
isFormColHidden: !0
|
|
1046
|
-
}), H.value = e == null ? void 0 : e.id,
|
|
1046
|
+
}), H.value = e == null ? void 0 : e.id, re.value = "", U.value = u, X.value = u;
|
|
1047
1047
|
}, be = (e) => {
|
|
1048
1048
|
let u = l(X.value);
|
|
1049
1049
|
u = u == null ? void 0 : u.map((b) => (b.children || (b.value = e == null ? void 0 : e[b.name]), b)), X.value = u;
|
|
1050
1050
|
}, De = () => {
|
|
1051
|
-
T.value = !1, H.value = "",
|
|
1052
|
-
},
|
|
1051
|
+
T.value = !1, H.value = "", re.value = "", X.value = [];
|
|
1052
|
+
}, Ee = () => {
|
|
1053
1053
|
var b, d, x, N, pe, F;
|
|
1054
1054
|
U.value = X.value;
|
|
1055
1055
|
let e = {};
|
|
@@ -1060,16 +1060,16 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1060
1060
|
C.value = (x = C.value) == null ? void 0 : x.map((ce) => (ce.id === e.id && (ce = e), ce));
|
|
1061
1061
|
else {
|
|
1062
1062
|
let ce = l(C.value) ?? [];
|
|
1063
|
-
|
|
1063
|
+
re.value === "" ? ce.push(e) : ce = ce == null ? void 0 : ce.map((ge) => (ge.id === re.value && (ge.children || (ge.children = []), ge.children.push(e)), ge)), C.value = ce;
|
|
1064
1064
|
}
|
|
1065
|
-
C.value = (N = C.value) != null && N.some((ce) => ce == null ? void 0 : ce.children) ? [C.value] : C.value, T.value = !1, H.value = "",
|
|
1065
|
+
C.value = (N = C.value) != null && N.some((ce) => ce == null ? void 0 : ce.children) ? [C.value] : C.value, T.value = !1, H.value = "", re.value = "";
|
|
1066
1066
|
let u = l(i.originalItemContents);
|
|
1067
1067
|
(pe = l(i.originalItemContents)) != null && pe.find((ce) => (ce == null ? void 0 : ce.key) === "header") ? u = (F = l(i.originalItemContents)) == null ? void 0 : F.map((ce) => ((ce == null ? void 0 : ce.key) === "header" && (ce.contents = C.value), ce)) : u.push({
|
|
1068
1068
|
key: "header",
|
|
1069
1069
|
contents: C.value
|
|
1070
1070
|
}), a("change", u);
|
|
1071
1071
|
}, te = (e) => {
|
|
1072
|
-
|
|
1072
|
+
tl.confirm("是否确认要删除", "", {
|
|
1073
1073
|
confirmButtonText: "确认",
|
|
1074
1074
|
cancelButtonText: "取消",
|
|
1075
1075
|
type: "warning"
|
|
@@ -1079,7 +1079,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1079
1079
|
C.value = (u = l(C.value)) == null ? void 0 : u.filter((d) => (d == null ? void 0 : d.id) !== (e == null ? void 0 : e.id)), a("change", (b = l(i.originalItemContents)) == null ? void 0 : b.map((d) => {
|
|
1080
1080
|
var x;
|
|
1081
1081
|
return (d == null ? void 0 : d.key) === "header" && (d.contents = (x = C.value) != null && x.some((N) => N == null ? void 0 : N.children) ? [C.value] : C.value), d;
|
|
1082
|
-
})),
|
|
1082
|
+
})), el({
|
|
1083
1083
|
type: "success",
|
|
1084
1084
|
message: "删除成功"
|
|
1085
1085
|
});
|
|
@@ -1090,9 +1090,9 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1090
1090
|
return je(
|
|
1091
1091
|
() => i.originalItemContents,
|
|
1092
1092
|
() => {
|
|
1093
|
-
var e, u, b, d, x, N, pe, F, ce, ge, ke,
|
|
1093
|
+
var e, u, b, d, x, N, pe, F, ce, ge, ke, Ae, he, ae, we, ve, $e, ze, Me;
|
|
1094
1094
|
if (!(!i.originalItemContents || i.originalItemContents.length === 0))
|
|
1095
|
-
if (
|
|
1095
|
+
if (h.value = l(i.originalItemContents), C.value = (u = (e = h.value) == null ? void 0 : e.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : u.contents, Z.value = (d = (b = h.value) == null ? void 0 : b.find((R) => (R == null ? void 0 : R.key) === "rowButton")) == null ? void 0 : d.contents, oe.value = (N = (x = h.value) == null ? void 0 : x.find((R) => (R == null ? void 0 : R.key) === "extraButton")) == null ? void 0 : N.contents, E.value = (F = (pe = h.value) == null ? void 0 : pe.find((R) => (R == null ? void 0 : R.key) === "page")) != null && F.contents ? !!((ge = (ce = h.value) == null ? void 0 : ce.find((R) => (R == null ? void 0 : R.key) === "page")) != null && ge.contents) : !1, B.value = (Ae = (ke = h.value) == null ? void 0 : ke.find((R) => (R == null ? void 0 : R.key) === "tableToForm")) == null ? void 0 : Ae.contents, C.value = (he = C.value) == null ? void 0 : he.map((R, Re) => (Array.isArray(R) ? R = vs(R) : R = {
|
|
1096
1096
|
label: (R == null ? void 0 : R.label) ?? "",
|
|
1097
1097
|
prop: (R == null ? void 0 : R.label) === "操作" ? "operate" : R == null ? void 0 : R.prop,
|
|
1098
1098
|
width: R != null && R.width ? parseInt(R.width) : "",
|
|
@@ -1103,27 +1103,27 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1103
1103
|
isNotDrag: (R == null ? void 0 : R.isNotDrag) ?? !1,
|
|
1104
1104
|
isEditCol: (R == null ? void 0 : R.isEditCol) ?? !1,
|
|
1105
1105
|
isOperate: (R == null ? void 0 : R.isOperate) ?? !1,
|
|
1106
|
-
id: (R == null ? void 0 : R.id) ??
|
|
1107
|
-
}, R)), C.value = (ae = C.value) != null && ae.every((R) => Array.isArray(R)) ? (we = C.value) == null ? void 0 : we[0] : C.value, Z.value = (
|
|
1106
|
+
id: (R == null ? void 0 : R.id) ?? Re
|
|
1107
|
+
}, R)), C.value = (ae = C.value) != null && ae.every((R) => Array.isArray(R)) ? (we = C.value) == null ? void 0 : we[0] : C.value, Z.value = (ve = Z.value) == null ? void 0 : ve.map((R, Re) => R = {
|
|
1108
1108
|
label: (R == null ? void 0 : R.label) ?? "",
|
|
1109
1109
|
type: (R == null ? void 0 : R.type) ?? "",
|
|
1110
1110
|
textColor: (R == null ? void 0 : R.textColor) ?? "#000000",
|
|
1111
|
-
id: (R == null ? void 0 : R.id) ??
|
|
1112
|
-
}),
|
|
1111
|
+
id: (R == null ? void 0 : R.id) ?? Re
|
|
1112
|
+
}), oe.value = ($e = oe.value) == null ? void 0 : $e.map((R, Re) => R = {
|
|
1113
1113
|
label: (R == null ? void 0 : R.label) ?? "",
|
|
1114
1114
|
type: (R == null ? void 0 : R.type) ?? "",
|
|
1115
1115
|
background: (R == null ? void 0 : R.background) ?? "var(--ssComponent-primary-color)",
|
|
1116
|
-
id: (R == null ? void 0 : R.id) ??
|
|
1116
|
+
id: (R == null ? void 0 : R.id) ?? Re
|
|
1117
1117
|
}), B.value)
|
|
1118
|
-
B.value = (
|
|
1118
|
+
B.value = (Me = B.value) == null ? void 0 : Me.map((R) => {
|
|
1119
1119
|
o.value++;
|
|
1120
|
-
let
|
|
1121
|
-
return
|
|
1120
|
+
let Re = R;
|
|
1121
|
+
return Re.id = o.value, Re;
|
|
1122
1122
|
});
|
|
1123
1123
|
else {
|
|
1124
1124
|
let R = [];
|
|
1125
|
-
const
|
|
1126
|
-
|
|
1125
|
+
const Re = (ze = os(l(C.value))) == null ? void 0 : ze.filter((Be) => (Be == null ? void 0 : Be.prop) !== "operate");
|
|
1126
|
+
Re == null || Re.forEach((Be) => {
|
|
1127
1127
|
o.value++, R.push({
|
|
1128
1128
|
label: Be == null ? void 0 : Be.label,
|
|
1129
1129
|
name: Be == null ? void 0 : Be.label,
|
|
@@ -1138,9 +1138,9 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1138
1138
|
{ deep: !0, immediate: !0 }
|
|
1139
1139
|
), (e, u) => {
|
|
1140
1140
|
const b = Te("svg-icon"), d = Te("el-button");
|
|
1141
|
-
return q(), de("div",
|
|
1142
|
-
D("div",
|
|
1143
|
-
D("div",
|
|
1141
|
+
return q(), de("div", Rs, [
|
|
1142
|
+
D("div", Ps, [
|
|
1143
|
+
D("div", Vs, [
|
|
1144
1144
|
u[2] || (u[2] = D("div", null, me("表头"), -1)),
|
|
1145
1145
|
K(d, {
|
|
1146
1146
|
class: "icon-content",
|
|
@@ -1154,17 +1154,17 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1154
1154
|
})
|
|
1155
1155
|
]),
|
|
1156
1156
|
default: se(() => [
|
|
1157
|
-
u[1] || (u[1] =
|
|
1157
|
+
u[1] || (u[1] = xe(" 新增 "))
|
|
1158
1158
|
]),
|
|
1159
1159
|
_: 1,
|
|
1160
1160
|
__: [1]
|
|
1161
1161
|
})
|
|
1162
1162
|
]),
|
|
1163
|
-
D("div",
|
|
1164
|
-
(q(!0), de(Se, null,
|
|
1165
|
-
D("div",
|
|
1166
|
-
D("div",
|
|
1167
|
-
D("div",
|
|
1163
|
+
D("div", Ns, [
|
|
1164
|
+
(q(!0), de(Se, null, Le(C.value, (x, N) => (q(), de("div", { key: N }, [
|
|
1165
|
+
D("div", js, [
|
|
1166
|
+
D("div", Us, me(x == null ? void 0 : x.label), 1),
|
|
1167
|
+
D("div", Ws, [
|
|
1168
1168
|
K(b, {
|
|
1169
1169
|
name: "ChildAdd",
|
|
1170
1170
|
class: "svg-icon-content",
|
|
@@ -1185,16 +1185,16 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1185
1185
|
}, null, 8, ["onClick"])
|
|
1186
1186
|
])
|
|
1187
1187
|
]),
|
|
1188
|
-
x != null && x.children && x.children.length > 0 ? (q(), de("div",
|
|
1189
|
-
K(
|
|
1188
|
+
x != null && x.children && x.children.length > 0 ? (q(), de("div", zs, [
|
|
1189
|
+
K(La, {
|
|
1190
1190
|
tableChildContents: x == null ? void 0 : x.children,
|
|
1191
1191
|
onDeleteChange: fe,
|
|
1192
1192
|
onFixChange: V
|
|
1193
1193
|
}, null, 8, ["tableChildContents"])
|
|
1194
|
-
])) :
|
|
1194
|
+
])) : Xe("", !0)
|
|
1195
1195
|
]))), 128))
|
|
1196
1196
|
]),
|
|
1197
|
-
D("div",
|
|
1197
|
+
D("div", Ms, [
|
|
1198
1198
|
u[4] || (u[4] = D("div", null, me("行内按钮"), -1)),
|
|
1199
1199
|
K(d, {
|
|
1200
1200
|
class: "icon-content",
|
|
@@ -1208,17 +1208,17 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1208
1208
|
})
|
|
1209
1209
|
]),
|
|
1210
1210
|
default: se(() => [
|
|
1211
|
-
u[3] || (u[3] =
|
|
1211
|
+
u[3] || (u[3] = xe(" 新增 "))
|
|
1212
1212
|
]),
|
|
1213
1213
|
_: 1,
|
|
1214
1214
|
__: [3]
|
|
1215
1215
|
})
|
|
1216
1216
|
]),
|
|
1217
|
-
D("div",
|
|
1218
|
-
(q(!0), de(Se, null,
|
|
1219
|
-
D("div",
|
|
1220
|
-
D("div",
|
|
1221
|
-
D("div",
|
|
1217
|
+
D("div", Ks, [
|
|
1218
|
+
(q(!0), de(Se, null, Le(Z.value, (x, N) => (q(), de("div", { key: N }, [
|
|
1219
|
+
D("div", Js, [
|
|
1220
|
+
D("div", Gs, me(x == null ? void 0 : x.label), 1),
|
|
1221
|
+
D("div", Hs, [
|
|
1222
1222
|
K(b, {
|
|
1223
1223
|
name: "ChildFix",
|
|
1224
1224
|
style: { width: "24px", height: "24px" },
|
|
@@ -1229,13 +1229,13 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1229
1229
|
name: "ChildDelete",
|
|
1230
1230
|
class: "svg-icon-content",
|
|
1231
1231
|
style: { width: "24px", height: "24px" },
|
|
1232
|
-
onClick: (pe) =>
|
|
1232
|
+
onClick: (pe) => ne(x)
|
|
1233
1233
|
}, null, 8, ["onClick"])
|
|
1234
1234
|
])
|
|
1235
1235
|
])
|
|
1236
1236
|
]))), 128))
|
|
1237
1237
|
]),
|
|
1238
|
-
D("div",
|
|
1238
|
+
D("div", qs, [
|
|
1239
1239
|
u[6] || (u[6] = D("div", null, me("表外按钮"), -1)),
|
|
1240
1240
|
K(d, {
|
|
1241
1241
|
class: "icon-content",
|
|
@@ -1249,17 +1249,17 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1249
1249
|
})
|
|
1250
1250
|
]),
|
|
1251
1251
|
default: se(() => [
|
|
1252
|
-
u[5] || (u[5] =
|
|
1252
|
+
u[5] || (u[5] = xe(" 新增 "))
|
|
1253
1253
|
]),
|
|
1254
1254
|
_: 1,
|
|
1255
1255
|
__: [5]
|
|
1256
1256
|
})
|
|
1257
1257
|
]),
|
|
1258
|
-
D("div",
|
|
1259
|
-
(q(!0), de(Se, null,
|
|
1260
|
-
D("div",
|
|
1261
|
-
D("div",
|
|
1262
|
-
D("div",
|
|
1258
|
+
D("div", Qs, [
|
|
1259
|
+
(q(!0), de(Se, null, Le(oe.value, (x, N) => (q(), de("div", { key: N }, [
|
|
1260
|
+
D("div", Xs, [
|
|
1261
|
+
D("div", Ys, me(x == null ? void 0 : x.label), 1),
|
|
1262
|
+
D("div", Zs, [
|
|
1263
1263
|
K(b, {
|
|
1264
1264
|
name: "ChildFix",
|
|
1265
1265
|
style: { width: "24px", height: "24px" },
|
|
@@ -1276,7 +1276,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1276
1276
|
])
|
|
1277
1277
|
]))), 128))
|
|
1278
1278
|
]),
|
|
1279
|
-
D("div",
|
|
1279
|
+
D("div", ei, [
|
|
1280
1280
|
u[8] || (u[8] = D("div", null, me("表格弹框字段设置"), -1)),
|
|
1281
1281
|
K(d, {
|
|
1282
1282
|
class: "icon-content",
|
|
@@ -1290,22 +1290,22 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1290
1290
|
})
|
|
1291
1291
|
]),
|
|
1292
1292
|
default: se(() => [
|
|
1293
|
-
u[7] || (u[7] =
|
|
1293
|
+
u[7] || (u[7] = xe(" 新增 "))
|
|
1294
1294
|
]),
|
|
1295
1295
|
_: 1,
|
|
1296
1296
|
__: [7]
|
|
1297
1297
|
})
|
|
1298
1298
|
]),
|
|
1299
|
-
D("div",
|
|
1300
|
-
(q(!0), de(Se, null,
|
|
1301
|
-
D("div",
|
|
1302
|
-
D("div",
|
|
1303
|
-
D("div",
|
|
1299
|
+
D("div", li, [
|
|
1300
|
+
(q(!0), de(Se, null, Le(B.value, (x, N) => (q(), de("div", { key: N }, [
|
|
1301
|
+
D("div", ai, [
|
|
1302
|
+
D("div", si, me(x == null ? void 0 : x.label), 1),
|
|
1303
|
+
D("div", ii, [
|
|
1304
1304
|
K(b, {
|
|
1305
1305
|
name: "ChildFix",
|
|
1306
1306
|
style: { width: "24px", height: "24px" },
|
|
1307
1307
|
class: "svg-icon-content",
|
|
1308
|
-
onClick: (pe) =>
|
|
1308
|
+
onClick: (pe) => I(x)
|
|
1309
1309
|
}, null, 8, ["onClick"]),
|
|
1310
1310
|
K(b, {
|
|
1311
1311
|
name: "ChildDelete",
|
|
@@ -1320,24 +1320,24 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1320
1320
|
u[10] || (u[10] = D("div", { class: "operate-title" }, [
|
|
1321
1321
|
D("div", null, me("分页"))
|
|
1322
1322
|
], -1)),
|
|
1323
|
-
D("div",
|
|
1324
|
-
D("div",
|
|
1323
|
+
D("div", ni, [
|
|
1324
|
+
D("div", oi, [
|
|
1325
1325
|
u[9] || (u[9] = D("div", { class: "operate-center-content" }, me("是否分页"), -1)),
|
|
1326
|
-
K(
|
|
1326
|
+
K(Ea, {
|
|
1327
1327
|
modelValue: E.value,
|
|
1328
1328
|
"onUpdate:modelValue": u[0] || (u[0] = (x) => E.value = x)
|
|
1329
1329
|
}, null, 8, ["modelValue"])
|
|
1330
1330
|
])
|
|
1331
1331
|
])
|
|
1332
1332
|
]),
|
|
1333
|
-
K(
|
|
1333
|
+
K(Je, {
|
|
1334
1334
|
visible: T.value,
|
|
1335
1335
|
onBeforeDestroy: De,
|
|
1336
1336
|
width: 840
|
|
1337
1337
|
}, {
|
|
1338
1338
|
default: se(() => [
|
|
1339
|
-
D("div",
|
|
1340
|
-
(q(), Fe(
|
|
1339
|
+
D("div", ui, [
|
|
1340
|
+
(q(), Fe(We, {
|
|
1341
1341
|
rowContents: U.value,
|
|
1342
1342
|
key: U.value,
|
|
1343
1343
|
isEnableWrap: !0,
|
|
@@ -1346,25 +1346,25 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1346
1346
|
])
|
|
1347
1347
|
]),
|
|
1348
1348
|
footer: se(() => [
|
|
1349
|
-
D("div",
|
|
1349
|
+
D("div", ri, [
|
|
1350
1350
|
K(d, {
|
|
1351
1351
|
onClick: De,
|
|
1352
1352
|
class: "cancel-button button",
|
|
1353
1353
|
id: "themeBorderButton"
|
|
1354
1354
|
}, {
|
|
1355
1355
|
default: se(() => u[11] || (u[11] = [
|
|
1356
|
-
|
|
1356
|
+
xe(me("取消"))
|
|
1357
1357
|
])),
|
|
1358
1358
|
_: 1,
|
|
1359
1359
|
__: [11]
|
|
1360
1360
|
}),
|
|
1361
1361
|
K(d, {
|
|
1362
1362
|
class: "ok-button button",
|
|
1363
|
-
onClick:
|
|
1363
|
+
onClick: Ee,
|
|
1364
1364
|
id: "themeButton"
|
|
1365
1365
|
}, {
|
|
1366
1366
|
default: se(() => u[12] || (u[12] = [
|
|
1367
|
-
|
|
1367
|
+
xe(me("确认"))
|
|
1368
1368
|
])),
|
|
1369
1369
|
_: 1,
|
|
1370
1370
|
__: [12]
|
|
@@ -1373,14 +1373,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1373
1373
|
]),
|
|
1374
1374
|
_: 1
|
|
1375
1375
|
}, 8, ["visible"]),
|
|
1376
|
-
K(
|
|
1376
|
+
K(Je, {
|
|
1377
1377
|
visible: L.value,
|
|
1378
|
-
onBeforeDestroy:
|
|
1378
|
+
onBeforeDestroy: ue,
|
|
1379
1379
|
width: 840
|
|
1380
1380
|
}, {
|
|
1381
1381
|
default: se(() => [
|
|
1382
|
-
D("div",
|
|
1383
|
-
(q(), Fe(
|
|
1382
|
+
D("div", ci, [
|
|
1383
|
+
(q(), Fe(We, {
|
|
1384
1384
|
rowContents: w.value,
|
|
1385
1385
|
key: w.value,
|
|
1386
1386
|
isEnableWrap: !0,
|
|
@@ -1389,14 +1389,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1389
1389
|
])
|
|
1390
1390
|
]),
|
|
1391
1391
|
footer: se(() => [
|
|
1392
|
-
D("div",
|
|
1392
|
+
D("div", ti, [
|
|
1393
1393
|
K(d, {
|
|
1394
|
-
onClick:
|
|
1394
|
+
onClick: ue,
|
|
1395
1395
|
class: "cancel-button button",
|
|
1396
1396
|
id: "themeBorderButton"
|
|
1397
1397
|
}, {
|
|
1398
1398
|
default: se(() => u[13] || (u[13] = [
|
|
1399
|
-
|
|
1399
|
+
xe(me("取消"))
|
|
1400
1400
|
])),
|
|
1401
1401
|
_: 1,
|
|
1402
1402
|
__: [13]
|
|
@@ -1407,7 +1407,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1407
1407
|
id: "themeButton"
|
|
1408
1408
|
}, {
|
|
1409
1409
|
default: se(() => u[14] || (u[14] = [
|
|
1410
|
-
|
|
1410
|
+
xe(me("确认"))
|
|
1411
1411
|
])),
|
|
1412
1412
|
_: 1,
|
|
1413
1413
|
__: [14]
|
|
@@ -1416,14 +1416,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1416
1416
|
]),
|
|
1417
1417
|
_: 1
|
|
1418
1418
|
}, 8, ["visible"]),
|
|
1419
|
-
K(
|
|
1419
|
+
K(Je, {
|
|
1420
1420
|
visible: M.value,
|
|
1421
1421
|
onBeforeDestroy: S,
|
|
1422
1422
|
width: 840
|
|
1423
1423
|
}, {
|
|
1424
1424
|
default: se(() => [
|
|
1425
|
-
D("div",
|
|
1426
|
-
(q(), Fe(
|
|
1425
|
+
D("div", di, [
|
|
1426
|
+
(q(), Fe(We, {
|
|
1427
1427
|
rowContents: t.value,
|
|
1428
1428
|
key: t.value,
|
|
1429
1429
|
isEnableWrap: !0,
|
|
@@ -1432,14 +1432,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1432
1432
|
])
|
|
1433
1433
|
]),
|
|
1434
1434
|
footer: se(() => [
|
|
1435
|
-
D("div",
|
|
1435
|
+
D("div", pi, [
|
|
1436
1436
|
K(d, {
|
|
1437
1437
|
onClick: S,
|
|
1438
1438
|
class: "cancel-button button",
|
|
1439
1439
|
id: "themeBorderButton"
|
|
1440
1440
|
}, {
|
|
1441
1441
|
default: se(() => u[15] || (u[15] = [
|
|
1442
|
-
|
|
1442
|
+
xe(me("取消"))
|
|
1443
1443
|
])),
|
|
1444
1444
|
_: 1,
|
|
1445
1445
|
__: [15]
|
|
@@ -1450,7 +1450,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1450
1450
|
id: "themeButton"
|
|
1451
1451
|
}, {
|
|
1452
1452
|
default: se(() => u[16] || (u[16] = [
|
|
1453
|
-
|
|
1453
|
+
xe(me("确认"))
|
|
1454
1454
|
])),
|
|
1455
1455
|
_: 1,
|
|
1456
1456
|
__: [16]
|
|
@@ -1459,14 +1459,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1459
1459
|
]),
|
|
1460
1460
|
_: 1
|
|
1461
1461
|
}, 8, ["visible"]),
|
|
1462
|
-
K(
|
|
1462
|
+
K(Je, {
|
|
1463
1463
|
visible: P.value,
|
|
1464
1464
|
onBeforeDestroy: c,
|
|
1465
1465
|
width: 840
|
|
1466
1466
|
}, {
|
|
1467
1467
|
default: se(() => [
|
|
1468
|
-
D("div",
|
|
1469
|
-
(q(), Fe(
|
|
1468
|
+
D("div", fi, [
|
|
1469
|
+
(q(), Fe(We, {
|
|
1470
1470
|
rowContents: p.value,
|
|
1471
1471
|
key: p.value,
|
|
1472
1472
|
isEnableWrap: !0,
|
|
@@ -1477,14 +1477,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1477
1477
|
])
|
|
1478
1478
|
]),
|
|
1479
1479
|
footer: se(() => [
|
|
1480
|
-
D("div",
|
|
1480
|
+
D("div", hi, [
|
|
1481
1481
|
K(d, {
|
|
1482
1482
|
onClick: c,
|
|
1483
1483
|
class: "cancel-button button",
|
|
1484
1484
|
id: "themeBorderButton"
|
|
1485
1485
|
}, {
|
|
1486
1486
|
default: se(() => u[17] || (u[17] = [
|
|
1487
|
-
|
|
1487
|
+
xe(me("取消"))
|
|
1488
1488
|
])),
|
|
1489
1489
|
_: 1,
|
|
1490
1490
|
__: [17]
|
|
@@ -1495,7 +1495,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1495
1495
|
id: "themeButton"
|
|
1496
1496
|
}, {
|
|
1497
1497
|
default: se(() => u[18] || (u[18] = [
|
|
1498
|
-
|
|
1498
|
+
xe(me("确认"))
|
|
1499
1499
|
])),
|
|
1500
1500
|
_: 1,
|
|
1501
1501
|
__: [18]
|
|
@@ -1507,7 +1507,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1507
1507
|
]);
|
|
1508
1508
|
};
|
|
1509
1509
|
}
|
|
1510
|
-
},
|
|
1510
|
+
}, mi = /* @__PURE__ */ Ve(vi, [["__scopeId", "data-v-cd274ba4"]]), yi = { class: "form-operate-content" }, bi = { class: "form-operate-item" }, gi = { class: "operate-title" }, ki = { class: "operate-content" }, _i = { class: "fix-content" }, Ci = { class: "fix-button" }, wi = { class: "operate-title" }, Di = { class: "operate-content" }, Ai = { class: "fix-content" }, Ii = { class: "fix-button" }, xi = { style: { display: "flex", "justify-content": "space-between" } }, Ei = { class: "form-content" }, $i = { class: "dialog-footer" }, Bi = { class: "form-content" }, Ti = {
|
|
1511
1511
|
__name: "operate",
|
|
1512
1512
|
props: {
|
|
1513
1513
|
itemContents: {
|
|
@@ -1521,32 +1521,32 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1521
1521
|
},
|
|
1522
1522
|
emits: ["change"],
|
|
1523
1523
|
setup(f, { emit: g }) {
|
|
1524
|
-
const i = f, a = g,
|
|
1524
|
+
const i = f, a = g, h = z(!1), T = z([]), P = z([]), C = z(!1), L = z([]), U = z([]), E = z(""), X = z(!1), H = z(0), re = z([]), Z = z([]), oe = (n, I) => (console.log(345, n), (n == null ? void 0 : n.label) === "类型" && I[n.key] === "" ? "Input" : (n == null ? void 0 : n.key) === "isFormColHidden" && !I[n.key] ? !1 : I[n.key]), w = async (n) => {
|
|
1525
1525
|
var c, $, Q, le, r, k;
|
|
1526
|
-
|
|
1527
|
-
let
|
|
1526
|
+
h.value = !0;
|
|
1527
|
+
let I = [];
|
|
1528
1528
|
const _ = await ((Q = ($ = (c = Ne) == null ? void 0 : c.find((S) => (S == null ? void 0 : S.key) === ((n == null ? void 0 : n.type) === "" ? "Input" : n == null ? void 0 : n.type))) == null ? void 0 : $.value) == null ? void 0 : Q.value) ?? ((r = (le = Ne) == null ? void 0 : le.find((S) => (S == null ? void 0 : S.key) === ((n == null ? void 0 : n.type) === "" ? "Input" : n == null ? void 0 : n.type))) == null ? void 0 : r.value);
|
|
1529
1529
|
if (_ == null || _.forEach((S) => {
|
|
1530
|
-
H.value++,
|
|
1530
|
+
H.value++, I.push({
|
|
1531
1531
|
label: S == null ? void 0 : S.label,
|
|
1532
1532
|
name: S == null ? void 0 : S.label,
|
|
1533
1533
|
type: S.type,
|
|
1534
1534
|
// value: (t?.label === "类型" && content[t.key] === '') ? "Input" : content[t.key],
|
|
1535
|
-
value:
|
|
1535
|
+
value: oe(S, n),
|
|
1536
1536
|
id: H.value,
|
|
1537
1537
|
contents: S == null ? void 0 : S.options
|
|
1538
1538
|
});
|
|
1539
1539
|
}), n != null && n.menuSelect && ((k = n == null ? void 0 : n.menuSelect) == null ? void 0 : k.length) > 0) {
|
|
1540
1540
|
const S = await gl(n == null ? void 0 : n.menuSelect);
|
|
1541
|
-
|
|
1541
|
+
I = I == null ? void 0 : I.map((ie) => ((ie == null ? void 0 : ie.name) === "组信息选项" && (ie.contents = S), ie));
|
|
1542
1542
|
}
|
|
1543
|
-
E.value = n == null ? void 0 : n.id, T.value = await
|
|
1544
|
-
},
|
|
1543
|
+
E.value = n == null ? void 0 : n.id, T.value = await al(hl(I)), P.value = await al(hl(I));
|
|
1544
|
+
}, v = (n) => {
|
|
1545
1545
|
var _;
|
|
1546
1546
|
C.value = !0;
|
|
1547
|
-
let
|
|
1548
|
-
(_ =
|
|
1549
|
-
H.value++,
|
|
1547
|
+
let I = [];
|
|
1548
|
+
(_ = Ql) == null || _.forEach((c) => {
|
|
1549
|
+
H.value++, I.push({
|
|
1550
1550
|
label: c == null ? void 0 : c.label,
|
|
1551
1551
|
name: c == null ? void 0 : c.label,
|
|
1552
1552
|
type: c.type,
|
|
@@ -1554,14 +1554,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1554
1554
|
id: H.value,
|
|
1555
1555
|
contents: c == null ? void 0 : c.options
|
|
1556
1556
|
});
|
|
1557
|
-
}),
|
|
1557
|
+
}), re.value = I, Z.value = I, E.value = n == null ? void 0 : n.id;
|
|
1558
1558
|
};
|
|
1559
1559
|
je(
|
|
1560
1560
|
() => X.value,
|
|
1561
1561
|
() => {
|
|
1562
|
-
var
|
|
1562
|
+
var I, _;
|
|
1563
1563
|
let n = l(i.originalItemContents);
|
|
1564
|
-
(
|
|
1564
|
+
(I = l(i.originalItemContents)) != null && I.find((c) => (c == null ? void 0 : c.key) === "enableWrap") ? n = (_ = l(i.originalItemContents)) == null ? void 0 : _.map((c) => ((c == null ? void 0 : c.key) === "enableWrap" && (c.contents = !X.value), c)) : n.push({
|
|
1565
1565
|
key: "enableWrap",
|
|
1566
1566
|
contents: !X.value
|
|
1567
1567
|
}), a("change", n);
|
|
@@ -1570,11 +1570,11 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1570
1570
|
);
|
|
1571
1571
|
const M = () => {
|
|
1572
1572
|
var _, c, $, Q, le;
|
|
1573
|
-
|
|
1573
|
+
re.value = Z.value;
|
|
1574
1574
|
let n = {};
|
|
1575
|
-
if (E.value !== "" ? n.id = E.value : (H.value++, n.id = "id" + H.value), (_ =
|
|
1575
|
+
if (E.value !== "" ? n.id = E.value : (H.value++, n.id = "id" + H.value), (_ = re.value) == null || _.forEach((r) => {
|
|
1576
1576
|
var S;
|
|
1577
|
-
const k = (S =
|
|
1577
|
+
const k = (S = Ql) == null ? void 0 : S.find((ie) => (ie == null ? void 0 : ie.label) === (r == null ? void 0 : r.label));
|
|
1578
1578
|
k && (n[k.key] = r.value);
|
|
1579
1579
|
}), (c = L.value) != null && c.find((r) => r.id === n.id))
|
|
1580
1580
|
L.value = ($ = L.value) == null ? void 0 : $.map((r) => (r.id === n.id && (r = n), r));
|
|
@@ -1583,20 +1583,20 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1583
1583
|
L.value || (L.value = []), r.push(n), L.value = r;
|
|
1584
1584
|
}
|
|
1585
1585
|
C.value = !1, E.value = "";
|
|
1586
|
-
let
|
|
1587
|
-
(Q = l(i.originalItemContents)) != null && Q.find((r) => (r == null ? void 0 : r.key) === "formButton") ?
|
|
1586
|
+
let I = l(i.originalItemContents);
|
|
1587
|
+
(Q = l(i.originalItemContents)) != null && Q.find((r) => (r == null ? void 0 : r.key) === "formButton") ? I = (le = l(i.originalItemContents)) == null ? void 0 : le.map((r) => ((r == null ? void 0 : r.key) === "formButton" && (r.contents = L.value), r)) : I.push({
|
|
1588
1588
|
key: "formButton",
|
|
1589
1589
|
contents: L.value
|
|
1590
|
-
}), a("change",
|
|
1590
|
+
}), a("change", I);
|
|
1591
1591
|
}, t = (n) => {
|
|
1592
|
-
|
|
1592
|
+
tl.confirm("是否确认要删除", "", {
|
|
1593
1593
|
confirmButtonText: "确认",
|
|
1594
1594
|
cancelButtonText: "取消",
|
|
1595
1595
|
type: "warning"
|
|
1596
1596
|
}).then(
|
|
1597
1597
|
() => {
|
|
1598
|
-
var
|
|
1599
|
-
U.value = (
|
|
1598
|
+
var I, _;
|
|
1599
|
+
U.value = (I = l(U.value)) == null ? void 0 : I.filter((c) => (c == null ? void 0 : c.id) !== (n == null ? void 0 : n.id)), a("change", (_ = l(i.originalItemContents)) == null ? void 0 : _.map((c) => ((c == null ? void 0 : c.key) === "formContent" && (c.contents = U.value), c))), el({
|
|
1600
1600
|
type: "success",
|
|
1601
1601
|
message: "删除成功"
|
|
1602
1602
|
});
|
|
@@ -1604,14 +1604,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1604
1604
|
).catch(() => {
|
|
1605
1605
|
});
|
|
1606
1606
|
}, s = (n) => {
|
|
1607
|
-
|
|
1607
|
+
tl.confirm("是否确认要删除", "", {
|
|
1608
1608
|
confirmButtonText: "确认",
|
|
1609
1609
|
cancelButtonText: "取消",
|
|
1610
1610
|
type: "warning"
|
|
1611
1611
|
}).then(
|
|
1612
1612
|
() => {
|
|
1613
|
-
var
|
|
1614
|
-
L.value = (
|
|
1613
|
+
var I, _;
|
|
1614
|
+
L.value = (I = l(L.value)) == null ? void 0 : I.filter((c) => (c == null ? void 0 : c.id) !== (n == null ? void 0 : n.id)), a("change", (_ = l(i.originalItemContents)) == null ? void 0 : _.map((c) => ((c == null ? void 0 : c.key) === "formButton" && (c.contents = L.value), c))), el({
|
|
1615
1615
|
type: "success",
|
|
1616
1616
|
message: "删除成功"
|
|
1617
1617
|
});
|
|
@@ -1619,10 +1619,10 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1619
1619
|
).catch(() => {
|
|
1620
1620
|
});
|
|
1621
1621
|
}, o = () => {
|
|
1622
|
-
var
|
|
1622
|
+
var I;
|
|
1623
1623
|
C.value = !0;
|
|
1624
1624
|
let n = [];
|
|
1625
|
-
(
|
|
1625
|
+
(I = Ql) == null || I.forEach((_) => {
|
|
1626
1626
|
H.value++, n.push({
|
|
1627
1627
|
label: _ == null ? void 0 : _.label,
|
|
1628
1628
|
name: _ == null ? void 0 : _.label,
|
|
@@ -1631,12 +1631,12 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1631
1631
|
id: H.value,
|
|
1632
1632
|
contents: _ == null ? void 0 : _.options
|
|
1633
1633
|
});
|
|
1634
|
-
}),
|
|
1634
|
+
}), re.value = n, Z.value = n;
|
|
1635
1635
|
}, p = () => {
|
|
1636
|
-
var
|
|
1637
|
-
|
|
1636
|
+
var I, _, c;
|
|
1637
|
+
h.value = !0;
|
|
1638
1638
|
let n = [];
|
|
1639
|
-
(c = (_ = (
|
|
1639
|
+
(c = (_ = (I = Ne) == null ? void 0 : I.find(($) => ($ == null ? void 0 : $.key) === "Input")) == null ? void 0 : _.value) == null || c.forEach(($) => {
|
|
1640
1640
|
H.value++, n.push({
|
|
1641
1641
|
label: $ == null ? void 0 : $.label,
|
|
1642
1642
|
name: $ == null ? void 0 : $.label,
|
|
@@ -1646,12 +1646,12 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1646
1646
|
contents: $ == null ? void 0 : $.options
|
|
1647
1647
|
});
|
|
1648
1648
|
}), T.value = n, P.value = n;
|
|
1649
|
-
},
|
|
1650
|
-
let
|
|
1651
|
-
|
|
1649
|
+
}, A = (n) => {
|
|
1650
|
+
let I = l(Z.value);
|
|
1651
|
+
I = I == null ? void 0 : I.map((_) => (_.value = n == null ? void 0 : n[_.name], _)), Z.value = I;
|
|
1652
1652
|
}, B = async (n) => {
|
|
1653
|
-
var
|
|
1654
|
-
if ((n == null ? void 0 : n.类型) !== ((_ = (
|
|
1653
|
+
var I, _, c, $, Q, le, r, k, S, ie, ne, m;
|
|
1654
|
+
if ((n == null ? void 0 : n.类型) !== ((_ = (I = P.value) == null ? void 0 : I.find((y) => (y == null ? void 0 : y.label) === "类型")) == null ? void 0 : _.value)) {
|
|
1655
1655
|
let y = [];
|
|
1656
1656
|
const O = await ((Q = ($ = (c = Ne) == null ? void 0 : c.find((W) => (W == null ? void 0 : W.key) === ((n == null ? void 0 : n.类型) === "" ? "Input" : n == null ? void 0 : n.类型))) == null ? void 0 : $.value) == null ? void 0 : Q.value) ? await ((ie = (S = (k = Ne) == null ? void 0 : k.find((W) => (W == null ? void 0 : W.key) === ((n == null ? void 0 : n.类型) === "" ? "Input" : n == null ? void 0 : n.类型))) == null ? void 0 : S.value) == null ? void 0 : ie.value) : (r = (le = Ne) == null ? void 0 : le.find((W) => (W == null ? void 0 : W.key) === ((n == null ? void 0 : n.类型) === "" ? "Input" : n == null ? void 0 : n.类型))) == null ? void 0 : r.value;
|
|
1657
1657
|
if (O == null || O.forEach((W) => {
|
|
@@ -1663,37 +1663,37 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1663
1663
|
id: H.value,
|
|
1664
1664
|
contents: W == null ? void 0 : W.options
|
|
1665
1665
|
});
|
|
1666
|
-
}), n != null && n.菜单选项 && ((
|
|
1666
|
+
}), n != null && n.菜单选项 && ((ne = n == null ? void 0 : n.菜单选项) == null ? void 0 : ne.length) > 0) {
|
|
1667
1667
|
const W = await gl(n == null ? void 0 : n.菜单选项);
|
|
1668
|
-
y = y == null ? void 0 : y.map((
|
|
1668
|
+
y = y == null ? void 0 : y.map((ue) => ((ue == null ? void 0 : ue.name) === "组信息选项" && (ue.contents = W), ue));
|
|
1669
1669
|
}
|
|
1670
|
-
P.value = await
|
|
1670
|
+
P.value = await al(l(y)), T.value = await al(l(y));
|
|
1671
1671
|
} else {
|
|
1672
1672
|
let y = l(P.value);
|
|
1673
1673
|
if (y = y == null ? void 0 : y.map((O) => (O.value = n == null ? void 0 : n[O.name], O)), n != null && n.菜单选项 && ((m = n == null ? void 0 : n.菜单选项) == null ? void 0 : m.length) > 0) {
|
|
1674
1674
|
const O = await gl(n == null ? void 0 : n.菜单选项);
|
|
1675
1675
|
y = y == null ? void 0 : y.map((W) => ((W == null ? void 0 : W.name) === "组信息选项" && (W.contents = O), W));
|
|
1676
1676
|
}
|
|
1677
|
-
y =
|
|
1677
|
+
y = hl(y), P.value = await al(l(y));
|
|
1678
1678
|
}
|
|
1679
1679
|
}, J = (n) => {
|
|
1680
1680
|
n || (T.value = P.value);
|
|
1681
1681
|
}, Y = async (n) => {
|
|
1682
1682
|
await B(n), T.value = P.value;
|
|
1683
1683
|
}, j = async () => {
|
|
1684
|
-
var c, $, Q, le, r, k, S, ie,
|
|
1684
|
+
var c, $, Q, le, r, k, S, ie, ne, m;
|
|
1685
1685
|
T.value = P.value;
|
|
1686
1686
|
let n = {};
|
|
1687
1687
|
E.value !== "" ? n.id = E.value : (H.value++, n.id = "id" + H.value);
|
|
1688
|
-
let
|
|
1688
|
+
let I = await ((Q = ($ = (c = Ne) == null ? void 0 : c.find((y) => {
|
|
1689
1689
|
var O, W;
|
|
1690
|
-
return (y == null ? void 0 : y.key) === (((W = (O = T.value) == null ? void 0 : O.find((
|
|
1690
|
+
return (y == null ? void 0 : y.key) === (((W = (O = T.value) == null ? void 0 : O.find((ue) => (ue == null ? void 0 : ue.label) === "类型")) == null ? void 0 : W.value) ?? "label");
|
|
1691
1691
|
})) == null ? void 0 : $.value) == null ? void 0 : Q.value) ?? ((r = (le = Ne) == null ? void 0 : le.find((y) => {
|
|
1692
1692
|
var O, W;
|
|
1693
|
-
return (y == null ? void 0 : y.key) === (((W = (O = T.value) == null ? void 0 : O.find((
|
|
1693
|
+
return (y == null ? void 0 : y.key) === (((W = (O = T.value) == null ? void 0 : O.find((ue) => (ue == null ? void 0 : ue.label) === "类型")) == null ? void 0 : W.value) ?? "label");
|
|
1694
1694
|
})) == null ? void 0 : r.value);
|
|
1695
1695
|
if ((k = T.value) == null || k.forEach((y) => {
|
|
1696
|
-
const O =
|
|
1696
|
+
const O = I == null ? void 0 : I.find((W) => (W == null ? void 0 : W.label) === (y == null ? void 0 : y.label));
|
|
1697
1697
|
O && (n[O.key] = y.value);
|
|
1698
1698
|
}), n.width = 1, n.key = n == null ? void 0 : n.label, n.isFormColHidden = n == null ? void 0 : n.isFormColHidden, (S = U.value) != null && S.find((y) => y.id === n.id))
|
|
1699
1699
|
U.value = (ie = U.value) == null ? void 0 : ie.map((y) => (y.id === n.id && (y = n), y));
|
|
@@ -1701,26 +1701,26 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1701
1701
|
let y = l(U.value);
|
|
1702
1702
|
y.push(n), U.value = y;
|
|
1703
1703
|
}
|
|
1704
|
-
U.value = U.value.map(({ id: y, ...O }) => O),
|
|
1704
|
+
U.value = U.value.map(({ id: y, ...O }) => O), h.value = !1, E.value = "";
|
|
1705
1705
|
let _ = l(i.originalItemContents);
|
|
1706
|
-
(
|
|
1706
|
+
(ne = l(i.originalItemContents)) != null && ne.find((y) => (y == null ? void 0 : y.key) === "formContent") ? _ = (m = l(i.originalItemContents)) == null ? void 0 : m.map((y) => ((y == null ? void 0 : y.key) === "formContent" && (y.contents = U.value), y)) : _.push({
|
|
1707
1707
|
key: "formContent",
|
|
1708
1708
|
contents: U.value
|
|
1709
1709
|
}), a("change", _);
|
|
1710
1710
|
}, G = () => {
|
|
1711
|
-
|
|
1711
|
+
h.value = !1, C.value = !1, E.value = "", P.value = [], Z.value = [];
|
|
1712
1712
|
};
|
|
1713
1713
|
return je(
|
|
1714
1714
|
() => i.originalItemContents,
|
|
1715
1715
|
() => {
|
|
1716
|
-
var
|
|
1716
|
+
var I, _, c, $, Q, le;
|
|
1717
1717
|
if (!i.originalItemContents || i.originalItemContents.length === 0) return;
|
|
1718
1718
|
const n = l(i.originalItemContents);
|
|
1719
|
-
U.value = ((
|
|
1719
|
+
U.value = ((I = n == null ? void 0 : n.find((r) => (r == null ? void 0 : r.key) === "formContent")) == null ? void 0 : I.contents) ?? [], L.value = ((_ = n == null ? void 0 : n.find((r) => (r == null ? void 0 : r.key) === "formButton")) == null ? void 0 : _.contents) ?? [], X.value = (c = n == null ? void 0 : n.find((r) => (r == null ? void 0 : r.key) === "enableWrap")) != null && c.contents ? !(($ = n == null ? void 0 : n.find((r) => (r == null ? void 0 : r.key) === "enableWrap")) != null && $.contents) : !0, U.value = (Q = l(U.value)) == null ? void 0 : Q.map((r, k) => {
|
|
1720
1720
|
var ie;
|
|
1721
1721
|
let S = r;
|
|
1722
1722
|
return S.id = (r == null ? void 0 : r.id) ?? k, r != null && r.label || (r.label = (r == null ? void 0 : r.key) ?? (r == null ? void 0 : r.label) ?? ""), r != null && r.type || (r.type = (r == null ? void 0 : r.type) ?? ""), r.contents = ((ie = r == null ? void 0 : r.options) == null ? void 0 : ie.length) === 0 ? (r == null ? void 0 : r.contents) ?? "" : r == null ? void 0 : r.options, S;
|
|
1723
|
-
}), U.value =
|
|
1723
|
+
}), U.value = hl(U.value), L.value = (le = L.value) == null ? void 0 : le.map((r, k) => r = {
|
|
1724
1724
|
label: (r == null ? void 0 : r.label) ?? "",
|
|
1725
1725
|
type: (r == null ? void 0 : r.type) ?? "",
|
|
1726
1726
|
background: (r == null ? void 0 : r.background) ?? "var(--ssComponent-primary-color)",
|
|
@@ -1728,12 +1728,12 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1728
1728
|
});
|
|
1729
1729
|
},
|
|
1730
1730
|
{ deep: !0, immediate: !0 }
|
|
1731
|
-
), (n,
|
|
1731
|
+
), (n, I) => {
|
|
1732
1732
|
const _ = Te("svg-icon"), c = Te("el-button");
|
|
1733
|
-
return q(), de("div",
|
|
1734
|
-
D("div",
|
|
1735
|
-
D("div",
|
|
1736
|
-
|
|
1733
|
+
return q(), de("div", yi, [
|
|
1734
|
+
D("div", bi, [
|
|
1735
|
+
D("div", gi, [
|
|
1736
|
+
I[2] || (I[2] = D("div", null, me("表单内容"), -1)),
|
|
1737
1737
|
K(c, {
|
|
1738
1738
|
class: "icon-content",
|
|
1739
1739
|
id: "themeButton",
|
|
@@ -1746,17 +1746,17 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1746
1746
|
})
|
|
1747
1747
|
]),
|
|
1748
1748
|
default: se(() => [
|
|
1749
|
-
|
|
1749
|
+
I[1] || (I[1] = D("div", null, me("新增"), -1))
|
|
1750
1750
|
]),
|
|
1751
1751
|
_: 1,
|
|
1752
1752
|
__: [1]
|
|
1753
1753
|
})
|
|
1754
1754
|
]),
|
|
1755
|
-
D("div",
|
|
1756
|
-
(q(!0), de(Se, null,
|
|
1757
|
-
D("div",
|
|
1755
|
+
D("div", ki, [
|
|
1756
|
+
(q(!0), de(Se, null, Le(U.value, ($, Q) => (q(), de("div", { key: Q }, [
|
|
1757
|
+
D("div", _i, [
|
|
1758
1758
|
D("div", null, me($.label), 1),
|
|
1759
|
-
D("div",
|
|
1759
|
+
D("div", Ci, [
|
|
1760
1760
|
K(_, {
|
|
1761
1761
|
name: "ChildFix",
|
|
1762
1762
|
class: "svg-icon-content",
|
|
@@ -1773,8 +1773,8 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1773
1773
|
])
|
|
1774
1774
|
]))), 128))
|
|
1775
1775
|
]),
|
|
1776
|
-
D("div",
|
|
1777
|
-
|
|
1776
|
+
D("div", wi, [
|
|
1777
|
+
I[4] || (I[4] = D("div", null, me("表单按钮"), -1)),
|
|
1778
1778
|
K(c, {
|
|
1779
1779
|
class: "icon-content",
|
|
1780
1780
|
id: "themeButton",
|
|
@@ -1787,22 +1787,22 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1787
1787
|
})
|
|
1788
1788
|
]),
|
|
1789
1789
|
default: se(() => [
|
|
1790
|
-
|
|
1790
|
+
I[3] || (I[3] = xe(" 新增 "))
|
|
1791
1791
|
]),
|
|
1792
1792
|
_: 1,
|
|
1793
1793
|
__: [3]
|
|
1794
1794
|
})
|
|
1795
1795
|
]),
|
|
1796
|
-
D("div",
|
|
1797
|
-
(q(!0), de(Se, null,
|
|
1798
|
-
D("div",
|
|
1796
|
+
D("div", Di, [
|
|
1797
|
+
(q(!0), de(Se, null, Le(L.value, ($, Q) => (q(), de("div", { key: Q }, [
|
|
1798
|
+
D("div", Ai, [
|
|
1799
1799
|
D("div", null, me($.label), 1),
|
|
1800
|
-
D("div",
|
|
1800
|
+
D("div", Ii, [
|
|
1801
1801
|
K(_, {
|
|
1802
1802
|
name: "ChildFix",
|
|
1803
1803
|
class: "svg-icon-content",
|
|
1804
1804
|
style: { width: "24px", height: "24px" },
|
|
1805
|
-
onClick: (le) =>
|
|
1805
|
+
onClick: (le) => v($)
|
|
1806
1806
|
}, null, 8, ["onClick"]),
|
|
1807
1807
|
K(_, {
|
|
1808
1808
|
name: "ChildDelete",
|
|
@@ -1814,25 +1814,25 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1814
1814
|
])
|
|
1815
1815
|
]))), 128))
|
|
1816
1816
|
]),
|
|
1817
|
-
|
|
1817
|
+
I[6] || (I[6] = D("div", { class: "operate-title" }, [
|
|
1818
1818
|
D("div", null, me("表单布局"))
|
|
1819
1819
|
], -1)),
|
|
1820
|
-
D("div",
|
|
1821
|
-
|
|
1822
|
-
K(
|
|
1820
|
+
D("div", xi, [
|
|
1821
|
+
I[5] || (I[5] = D("div", { class: "operate-center-content" }, me("是否自动撑宽"), -1)),
|
|
1822
|
+
K(Ea, {
|
|
1823
1823
|
modelValue: X.value,
|
|
1824
|
-
"onUpdate:modelValue":
|
|
1824
|
+
"onUpdate:modelValue": I[0] || (I[0] = ($) => X.value = $)
|
|
1825
1825
|
}, null, 8, ["modelValue"])
|
|
1826
1826
|
])
|
|
1827
1827
|
]),
|
|
1828
|
-
K(
|
|
1829
|
-
visible:
|
|
1828
|
+
K(Je, {
|
|
1829
|
+
visible: h.value,
|
|
1830
1830
|
onBeforeDestroy: G,
|
|
1831
1831
|
width: 840
|
|
1832
1832
|
}, {
|
|
1833
1833
|
default: se(() => [
|
|
1834
|
-
D("div",
|
|
1835
|
-
(q(), Fe(
|
|
1834
|
+
D("div", Ei, [
|
|
1835
|
+
(q(), Fe(We, {
|
|
1836
1836
|
rowContents: T.value,
|
|
1837
1837
|
key: T.value,
|
|
1838
1838
|
isEnableWrap: !0,
|
|
@@ -1843,14 +1843,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1843
1843
|
])
|
|
1844
1844
|
]),
|
|
1845
1845
|
footer: se(() => [
|
|
1846
|
-
D("div",
|
|
1846
|
+
D("div", $i, [
|
|
1847
1847
|
K(c, {
|
|
1848
1848
|
onClick: G,
|
|
1849
1849
|
class: "cancel-button button",
|
|
1850
1850
|
id: "themeBorderButton"
|
|
1851
1851
|
}, {
|
|
1852
|
-
default: se(() =>
|
|
1853
|
-
|
|
1852
|
+
default: se(() => I[7] || (I[7] = [
|
|
1853
|
+
xe(me("取消"))
|
|
1854
1854
|
])),
|
|
1855
1855
|
_: 1,
|
|
1856
1856
|
__: [7]
|
|
@@ -1860,8 +1860,8 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1860
1860
|
onClick: j,
|
|
1861
1861
|
id: "themeButton"
|
|
1862
1862
|
}, {
|
|
1863
|
-
default: se(() =>
|
|
1864
|
-
|
|
1863
|
+
default: se(() => I[8] || (I[8] = [
|
|
1864
|
+
xe(me("确认"))
|
|
1865
1865
|
])),
|
|
1866
1866
|
_: 1,
|
|
1867
1867
|
__: [8]
|
|
@@ -1870,18 +1870,18 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1870
1870
|
]),
|
|
1871
1871
|
_: 1
|
|
1872
1872
|
}, 8, ["visible"]),
|
|
1873
|
-
K(
|
|
1873
|
+
K(Je, {
|
|
1874
1874
|
visible: C.value,
|
|
1875
1875
|
onBeforeDestroy: G,
|
|
1876
1876
|
width: 840
|
|
1877
1877
|
}, {
|
|
1878
1878
|
default: se(() => [
|
|
1879
|
-
D("div",
|
|
1880
|
-
(q(), Fe(
|
|
1881
|
-
rowContents:
|
|
1882
|
-
key:
|
|
1879
|
+
D("div", Bi, [
|
|
1880
|
+
(q(), Fe(We, {
|
|
1881
|
+
rowContents: re.value,
|
|
1882
|
+
key: re.value,
|
|
1883
1883
|
isEnableWrap: !0,
|
|
1884
|
-
onChange:
|
|
1884
|
+
onChange: A
|
|
1885
1885
|
}, null, 8, ["rowContents"]))
|
|
1886
1886
|
])
|
|
1887
1887
|
]),
|
|
@@ -1902,7 +1902,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1902
1902
|
]);
|
|
1903
1903
|
};
|
|
1904
1904
|
}
|
|
1905
|
-
},
|
|
1905
|
+
}, Da = /* @__PURE__ */ Ve(Ti, [["__scopeId", "data-v-af8ae0c8"]]), Si = { class: "step-module content" }, Fi = { class: "module-data" }, Oi = { class: "step-module layout" }, Li = { class: "form-content" }, Ri = /* @__PURE__ */ vl({
|
|
1906
1906
|
__name: "operate",
|
|
1907
1907
|
props: {
|
|
1908
1908
|
itemContents: {
|
|
@@ -1916,7 +1916,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
1916
1916
|
},
|
|
1917
1917
|
emits: ["change"],
|
|
1918
1918
|
setup(f, { emit: g }) {
|
|
1919
|
-
const i = f, a = g,
|
|
1919
|
+
const i = f, a = g, h = z([
|
|
1920
1920
|
{
|
|
1921
1921
|
label: "方向:",
|
|
1922
1922
|
prop: "direction",
|
|
@@ -2009,14 +2009,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2009
2009
|
label: "确认",
|
|
2010
2010
|
background: "#436aaf"
|
|
2011
2011
|
}
|
|
2012
|
-
]), C =
|
|
2012
|
+
]), C = la({
|
|
2013
2013
|
visible: !1,
|
|
2014
2014
|
width: "40%",
|
|
2015
2015
|
title: "步骤条"
|
|
2016
2016
|
}), L = z("create"), U = z({}), E = z([]), X = (w) => {
|
|
2017
|
-
var
|
|
2018
|
-
U.value = w, a("change", (
|
|
2019
|
-
}, H = (w,
|
|
2017
|
+
var v;
|
|
2018
|
+
U.value = w, a("change", (v = Z()) == null ? void 0 : v.compData);
|
|
2019
|
+
}, H = (w, v) => {
|
|
2020
2020
|
var M, t;
|
|
2021
2021
|
switch (w) {
|
|
2022
2022
|
case "create":
|
|
@@ -2026,15 +2026,15 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2026
2026
|
break;
|
|
2027
2027
|
case "update":
|
|
2028
2028
|
(t = T.value) == null || t.forEach((s) => {
|
|
2029
|
-
s.value =
|
|
2029
|
+
s.value = v[s == null ? void 0 : s.prop];
|
|
2030
2030
|
}), L.value = "update", C.visible = !0;
|
|
2031
2031
|
break;
|
|
2032
2032
|
case "delete":
|
|
2033
|
-
E.value.splice(
|
|
2033
|
+
E.value.splice(v, 1), L.value = "delete";
|
|
2034
2034
|
break;
|
|
2035
2035
|
}
|
|
2036
|
-
},
|
|
2037
|
-
var
|
|
2036
|
+
}, re = (w) => {
|
|
2037
|
+
var v, M, t;
|
|
2038
2038
|
if ((w == null ? void 0 : w.buttonName) === "确认") {
|
|
2039
2039
|
const s = l(w == null ? void 0 : w.content);
|
|
2040
2040
|
switch (Object.keys(s).forEach((o) => {
|
|
@@ -2043,7 +2043,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2043
2043
|
case "create":
|
|
2044
2044
|
E.value.push({
|
|
2045
2045
|
...s,
|
|
2046
|
-
index: ((
|
|
2046
|
+
index: ((v = E.value) == null ? void 0 : v.length) + 1
|
|
2047
2047
|
});
|
|
2048
2048
|
break;
|
|
2049
2049
|
case "update":
|
|
@@ -2069,22 +2069,22 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2069
2069
|
contents: U.value
|
|
2070
2070
|
}
|
|
2071
2071
|
]
|
|
2072
|
-
}),
|
|
2072
|
+
}), oe = () => {
|
|
2073
2073
|
C.visible = !1;
|
|
2074
2074
|
};
|
|
2075
2075
|
return je(() => i == null ? void 0 : i.itemContents, (w) => {
|
|
2076
|
-
var
|
|
2077
|
-
w && (U.value = ((
|
|
2078
|
-
}, { immediate: !0 }), (w,
|
|
2076
|
+
var v, M;
|
|
2077
|
+
w && (U.value = ((v = w == null ? void 0 : w.find((t) => t.key === "stepConfig")) == null ? void 0 : v.contents) ?? {}, E.value = ((M = w == null ? void 0 : w.find((t) => t.key === "stepList")) == null ? void 0 : M.contents) ?? []);
|
|
2078
|
+
}, { immediate: !0 }), (w, v) => {
|
|
2079
2079
|
const M = Te("svg-icon"), t = Te("el-button");
|
|
2080
2080
|
return q(), de(Se, null, [
|
|
2081
2081
|
D("div", null, [
|
|
2082
|
-
D("div",
|
|
2083
|
-
|
|
2082
|
+
D("div", Si, [
|
|
2083
|
+
v[2] || (v[2] = D("h4", { class: "module-title" }, "内容", -1)),
|
|
2084
2084
|
K(t, {
|
|
2085
2085
|
class: "module-icon",
|
|
2086
2086
|
id: "themeButton",
|
|
2087
|
-
onClick:
|
|
2087
|
+
onClick: v[0] || (v[0] = (s) => H("create"))
|
|
2088
2088
|
}, {
|
|
2089
2089
|
icon: se(() => [
|
|
2090
2090
|
K(M, {
|
|
@@ -2093,14 +2093,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2093
2093
|
})
|
|
2094
2094
|
]),
|
|
2095
2095
|
default: se(() => [
|
|
2096
|
-
|
|
2096
|
+
v[1] || (v[1] = xe(" 新增 "))
|
|
2097
2097
|
]),
|
|
2098
2098
|
_: 1,
|
|
2099
2099
|
__: [1]
|
|
2100
2100
|
})
|
|
2101
2101
|
]),
|
|
2102
|
-
D("div",
|
|
2103
|
-
(q(!0), de(Se, null,
|
|
2102
|
+
D("div", Fi, [
|
|
2103
|
+
(q(!0), de(Se, null, Le(E.value, (s, o) => (q(), de("div", {
|
|
2104
2104
|
class: "module-data-item",
|
|
2105
2105
|
key: o
|
|
2106
2106
|
}, [
|
|
@@ -2111,8 +2111,8 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2111
2111
|
size: "small",
|
|
2112
2112
|
onClick: (p) => H("update", { ...s, index: o + 1 })
|
|
2113
2113
|
}, {
|
|
2114
|
-
default: se(() =>
|
|
2115
|
-
|
|
2114
|
+
default: se(() => v[3] || (v[3] = [
|
|
2115
|
+
xe("修改")
|
|
2116
2116
|
])),
|
|
2117
2117
|
_: 2,
|
|
2118
2118
|
__: [3]
|
|
@@ -2122,8 +2122,8 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2122
2122
|
size: "small",
|
|
2123
2123
|
onClick: (p) => H("delete", o)
|
|
2124
2124
|
}, {
|
|
2125
|
-
default: se(() =>
|
|
2126
|
-
|
|
2125
|
+
default: se(() => v[4] || (v[4] = [
|
|
2126
|
+
xe("删除")
|
|
2127
2127
|
])),
|
|
2128
2128
|
_: 2,
|
|
2129
2129
|
__: [4]
|
|
@@ -2131,30 +2131,30 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2131
2131
|
])
|
|
2132
2132
|
]))), 128))
|
|
2133
2133
|
]),
|
|
2134
|
-
D("div",
|
|
2135
|
-
|
|
2136
|
-
K(
|
|
2137
|
-
rowContents:
|
|
2134
|
+
D("div", Oi, [
|
|
2135
|
+
v[5] || (v[5] = D("div", { class: "module-title" }, "布局", -1)),
|
|
2136
|
+
K(We, {
|
|
2137
|
+
rowContents: h.value,
|
|
2138
2138
|
onChange: X
|
|
2139
2139
|
}, null, 8, ["rowContents"])
|
|
2140
2140
|
])
|
|
2141
2141
|
]),
|
|
2142
|
-
K(
|
|
2142
|
+
K(Je, {
|
|
2143
2143
|
visible: C.visible,
|
|
2144
2144
|
title: C.title,
|
|
2145
|
-
onBeforeDestroy:
|
|
2145
|
+
onBeforeDestroy: oe,
|
|
2146
2146
|
width: C.width
|
|
2147
2147
|
}, {
|
|
2148
2148
|
default: se(() => [
|
|
2149
|
-
D("div",
|
|
2150
|
-
(q(), Fe(
|
|
2149
|
+
D("div", Li, [
|
|
2150
|
+
(q(), Fe(We, {
|
|
2151
2151
|
rowContents: T.value,
|
|
2152
2152
|
key: T.value,
|
|
2153
2153
|
isEnableWrap: !1,
|
|
2154
2154
|
isButtonRow: !1,
|
|
2155
2155
|
isStartJustify: !1,
|
|
2156
2156
|
buttonValue: P.value,
|
|
2157
|
-
onOnButtonClick:
|
|
2157
|
+
onOnButtonClick: re
|
|
2158
2158
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2159
2159
|
])
|
|
2160
2160
|
]),
|
|
@@ -2163,7 +2163,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2163
2163
|
], 64);
|
|
2164
2164
|
};
|
|
2165
2165
|
}
|
|
2166
|
-
}),
|
|
2166
|
+
}), Pi = /* @__PURE__ */ Ve(Ri, [["__scopeId", "data-v-7dbd17f2"]]), Vi = { class: "step-module content" }, Ni = { class: "module-data" }, ji = { class: "step-module layout" }, Ui = { class: "form-content" }, Wi = /* @__PURE__ */ vl({
|
|
2167
2167
|
__name: "operate",
|
|
2168
2168
|
props: {
|
|
2169
2169
|
itemContents: {
|
|
@@ -2177,7 +2177,7 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2177
2177
|
},
|
|
2178
2178
|
emits: ["change"],
|
|
2179
2179
|
setup(f, { emit: g }) {
|
|
2180
|
-
const i = f, a = g,
|
|
2180
|
+
const i = f, a = g, h = z("create"), T = z({}), P = z([]), C = z([
|
|
2181
2181
|
{
|
|
2182
2182
|
label: "方向:",
|
|
2183
2183
|
prop: "placement",
|
|
@@ -2305,41 +2305,41 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2305
2305
|
label: "确认",
|
|
2306
2306
|
background: "#436aaf"
|
|
2307
2307
|
}
|
|
2308
|
-
]), E =
|
|
2308
|
+
]), E = la({
|
|
2309
2309
|
visible: !1,
|
|
2310
2310
|
width: "40%",
|
|
2311
2311
|
title: "时间线"
|
|
2312
2312
|
}), X = (w) => {
|
|
2313
|
-
var
|
|
2314
|
-
T.value = w, console.log(1212, w), a("change", (
|
|
2315
|
-
}, H = (w,
|
|
2313
|
+
var v;
|
|
2314
|
+
T.value = w, console.log(1212, w), a("change", (v = Z()) == null ? void 0 : v.compData);
|
|
2315
|
+
}, H = (w, v) => {
|
|
2316
2316
|
var M, t;
|
|
2317
2317
|
switch (w) {
|
|
2318
2318
|
case "create":
|
|
2319
2319
|
(M = L.value) == null || M.forEach((s) => {
|
|
2320
2320
|
s.value = "";
|
|
2321
|
-
}),
|
|
2321
|
+
}), h.value = "create", E.visible = !0;
|
|
2322
2322
|
break;
|
|
2323
2323
|
case "update":
|
|
2324
2324
|
(t = L.value) == null || t.forEach((s) => {
|
|
2325
|
-
s.value =
|
|
2326
|
-
}),
|
|
2325
|
+
s.value = v[s == null ? void 0 : s.prop];
|
|
2326
|
+
}), h.value = "update", E.visible = !0;
|
|
2327
2327
|
break;
|
|
2328
2328
|
case "delete":
|
|
2329
|
-
P.value.splice(
|
|
2329
|
+
P.value.splice(v, 1), h.value = "delete";
|
|
2330
2330
|
break;
|
|
2331
2331
|
}
|
|
2332
|
-
},
|
|
2333
|
-
var
|
|
2332
|
+
}, re = (w) => {
|
|
2333
|
+
var v, M, t, s;
|
|
2334
2334
|
if ((w == null ? void 0 : w.buttonName) === "确认") {
|
|
2335
2335
|
const o = l(w == null ? void 0 : w.content);
|
|
2336
2336
|
switch (Object.keys(o).forEach((p) => {
|
|
2337
2337
|
o[p] === "" && delete o[p];
|
|
2338
|
-
}),
|
|
2338
|
+
}), h.value) {
|
|
2339
2339
|
case "create":
|
|
2340
2340
|
console.log(1335, P.value, o), (M = P.value) == null || M.push({
|
|
2341
2341
|
...o,
|
|
2342
|
-
index: ((
|
|
2342
|
+
index: ((v = P.value) == null ? void 0 : v.length) + 1
|
|
2343
2343
|
});
|
|
2344
2344
|
break;
|
|
2345
2345
|
case "update":
|
|
@@ -2365,22 +2365,22 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2365
2365
|
contents: T.value
|
|
2366
2366
|
}
|
|
2367
2367
|
]
|
|
2368
|
-
}),
|
|
2368
|
+
}), oe = () => {
|
|
2369
2369
|
E.visible = !1;
|
|
2370
2370
|
};
|
|
2371
2371
|
return je(() => i == null ? void 0 : i.itemContents, (w) => {
|
|
2372
|
-
var
|
|
2373
|
-
w && (T.value = ((
|
|
2374
|
-
}, { immediate: !0 }), (w,
|
|
2372
|
+
var v, M;
|
|
2373
|
+
w && (T.value = ((v = w == null ? void 0 : w.find((t) => t.key === "timeLineConfig")) == null ? void 0 : v.contents) ?? {}, P.value = ((M = w == null ? void 0 : w.find((t) => t.key === "timeLineList")) == null ? void 0 : M.contents) ?? []);
|
|
2374
|
+
}, { immediate: !0 }), (w, v) => {
|
|
2375
2375
|
const M = Te("svg-icon"), t = Te("el-button");
|
|
2376
2376
|
return q(), de(Se, null, [
|
|
2377
2377
|
D("div", null, [
|
|
2378
|
-
D("div",
|
|
2379
|
-
|
|
2378
|
+
D("div", Vi, [
|
|
2379
|
+
v[2] || (v[2] = D("h4", { class: "module-title" }, "内容", -1)),
|
|
2380
2380
|
K(t, {
|
|
2381
2381
|
class: "module-icon",
|
|
2382
2382
|
id: "themeButton",
|
|
2383
|
-
onClick:
|
|
2383
|
+
onClick: v[0] || (v[0] = (s) => H("create"))
|
|
2384
2384
|
}, {
|
|
2385
2385
|
icon: se(() => [
|
|
2386
2386
|
K(M, {
|
|
@@ -2389,14 +2389,14 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2389
2389
|
})
|
|
2390
2390
|
]),
|
|
2391
2391
|
default: se(() => [
|
|
2392
|
-
|
|
2392
|
+
v[1] || (v[1] = xe(" 新增 "))
|
|
2393
2393
|
]),
|
|
2394
2394
|
_: 1,
|
|
2395
2395
|
__: [1]
|
|
2396
2396
|
})
|
|
2397
2397
|
]),
|
|
2398
|
-
D("div",
|
|
2399
|
-
(q(!0), de(Se, null,
|
|
2398
|
+
D("div", Ni, [
|
|
2399
|
+
(q(!0), de(Se, null, Le(P.value, (s, o) => (q(), de("div", {
|
|
2400
2400
|
class: "module-data-item",
|
|
2401
2401
|
key: o
|
|
2402
2402
|
}, [
|
|
@@ -2407,8 +2407,8 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2407
2407
|
size: "small",
|
|
2408
2408
|
onClick: (p) => H("update", { ...s, index: o + 1 })
|
|
2409
2409
|
}, {
|
|
2410
|
-
default: se(() =>
|
|
2411
|
-
|
|
2410
|
+
default: se(() => v[3] || (v[3] = [
|
|
2411
|
+
xe("修改")
|
|
2412
2412
|
])),
|
|
2413
2413
|
_: 2,
|
|
2414
2414
|
__: [3]
|
|
@@ -2418,8 +2418,8 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2418
2418
|
size: "small",
|
|
2419
2419
|
onClick: (p) => H("delete", o)
|
|
2420
2420
|
}, {
|
|
2421
|
-
default: se(() =>
|
|
2422
|
-
|
|
2421
|
+
default: se(() => v[4] || (v[4] = [
|
|
2422
|
+
xe("删除")
|
|
2423
2423
|
])),
|
|
2424
2424
|
_: 2,
|
|
2425
2425
|
__: [4]
|
|
@@ -2427,30 +2427,30 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2427
2427
|
])
|
|
2428
2428
|
]))), 128))
|
|
2429
2429
|
]),
|
|
2430
|
-
D("div",
|
|
2431
|
-
|
|
2432
|
-
K(
|
|
2430
|
+
D("div", ji, [
|
|
2431
|
+
v[5] || (v[5] = D("div", { class: "module-title" }, "布局", -1)),
|
|
2432
|
+
K(We, {
|
|
2433
2433
|
rowContents: C.value,
|
|
2434
2434
|
onChange: X
|
|
2435
2435
|
}, null, 8, ["rowContents"])
|
|
2436
2436
|
])
|
|
2437
2437
|
]),
|
|
2438
|
-
K(
|
|
2438
|
+
K(Je, {
|
|
2439
2439
|
visible: E.visible,
|
|
2440
2440
|
title: E.title,
|
|
2441
|
-
onBeforeDestroy:
|
|
2441
|
+
onBeforeDestroy: oe,
|
|
2442
2442
|
width: E.width
|
|
2443
2443
|
}, {
|
|
2444
2444
|
default: se(() => [
|
|
2445
|
-
D("div",
|
|
2446
|
-
(q(), Fe(
|
|
2445
|
+
D("div", Ui, [
|
|
2446
|
+
(q(), Fe(We, {
|
|
2447
2447
|
rowContents: L.value,
|
|
2448
2448
|
key: L.value,
|
|
2449
2449
|
isEnableWrap: !1,
|
|
2450
2450
|
isButtonRow: !1,
|
|
2451
2451
|
isStartJustify: !1,
|
|
2452
2452
|
buttonValue: U.value,
|
|
2453
|
-
onOnButtonClick:
|
|
2453
|
+
onOnButtonClick: re
|
|
2454
2454
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2455
2455
|
])
|
|
2456
2456
|
]),
|
|
@@ -2459,11 +2459,11 @@ const ls = (f) => f.match(/\((.*)\)/)[1], as = ya("formComp", {
|
|
|
2459
2459
|
], 64);
|
|
2460
2460
|
};
|
|
2461
2461
|
}
|
|
2462
|
-
}),
|
|
2463
|
-
function
|
|
2462
|
+
}), zi = /* @__PURE__ */ Ve(Wi, [["__scopeId", "data-v-f6b5d4fc"]]), Mi = {};
|
|
2463
|
+
function Ki(f, g) {
|
|
2464
2464
|
return q(), de("div");
|
|
2465
2465
|
}
|
|
2466
|
-
const
|
|
2466
|
+
const Ji = /* @__PURE__ */ Ve(Mi, [["render", Ki]]), Gi = { class: "extra-content" }, Hi = { key: 0 }, qi = { key: 1 }, Qi = { class: "dialog-footer" }, Xi = {
|
|
2467
2467
|
__name: "index",
|
|
2468
2468
|
props: {
|
|
2469
2469
|
itemData: {
|
|
@@ -2483,20 +2483,20 @@ const Ri = /* @__PURE__ */ Re(Oi, [["render", Li]]), Pi = { class: "extra-conten
|
|
|
2483
2483
|
},
|
|
2484
2484
|
emits: ["change"],
|
|
2485
2485
|
setup(f, { emit: g }) {
|
|
2486
|
-
const i = f, a = z(0),
|
|
2486
|
+
const i = f, a = z(0), h = z(), T = z(), P = g, C = z(!1), L = z({}), U = z({}), E = z();
|
|
2487
2487
|
je(
|
|
2488
2488
|
() => [i.itemData],
|
|
2489
2489
|
() => {
|
|
2490
2490
|
var s;
|
|
2491
2491
|
const t = l(i.itemData);
|
|
2492
|
-
|
|
2492
|
+
h.value = (s = l(t)) == null ? void 0 : s.map((o) => {
|
|
2493
2493
|
var p;
|
|
2494
2494
|
if (o.key === "extra") {
|
|
2495
|
-
let
|
|
2495
|
+
let A = [];
|
|
2496
2496
|
(p = o.value) == null || p.forEach((B) => {
|
|
2497
2497
|
var J;
|
|
2498
|
-
|
|
2499
|
-
}), o.value =
|
|
2498
|
+
A.push((J = Object.values(B)) == null ? void 0 : J[0]);
|
|
2499
|
+
}), o.value = A;
|
|
2500
2500
|
}
|
|
2501
2501
|
return o;
|
|
2502
2502
|
});
|
|
@@ -2505,13 +2505,13 @@ const Ri = /* @__PURE__ */ Re(Oi, [["render", Li]]), Pi = { class: "extra-conten
|
|
|
2505
2505
|
);
|
|
2506
2506
|
const X = (t, s, o, p) => {
|
|
2507
2507
|
var B;
|
|
2508
|
-
let
|
|
2509
|
-
((B = t == null ? void 0 : t[0]) == null ? void 0 : B.contents) === "详情" && (C.value = !0,
|
|
2508
|
+
let A = {};
|
|
2509
|
+
((B = t == null ? void 0 : t[0]) == null ? void 0 : B.contents) === "详情" && (C.value = !0, A[s] = t, T.value = t == null ? void 0 : t.filter((J) => (J == null ? void 0 : J.key) !== "tableContentName"), L.value = A, U.value = o, E.value = p.id);
|
|
2510
2510
|
}, H = (t) => {
|
|
2511
2511
|
var J, Y, j, G;
|
|
2512
|
-
const s = (Y = (J = Object.values(l(L.value))) == null ? void 0 : J[0]) == null ? void 0 : Y.filter((n) => (n == null ? void 0 : n.key) === "tableContentName"), o = (G = (j = Object.values(l(L.value))) == null ? void 0 : j[0]) == null ? void 0 : G.filter((n) => (n == null ? void 0 : n.key) !== "tableContentName"), p = o == null ? void 0 : o.map((n,
|
|
2512
|
+
const s = (Y = (J = Object.values(l(L.value))) == null ? void 0 : J[0]) == null ? void 0 : Y.filter((n) => (n == null ? void 0 : n.key) === "tableContentName"), o = (G = (j = Object.values(l(L.value))) == null ? void 0 : j[0]) == null ? void 0 : G.filter((n) => (n == null ? void 0 : n.key) !== "tableContentName"), p = o == null ? void 0 : o.map((n, I) => {
|
|
2513
2513
|
var _;
|
|
2514
|
-
return
|
|
2514
|
+
return I === t.index && (n == null ? void 0 : n.comp) === "Table" && (n.compData = (_ = n.compData) == null ? void 0 : _.map((c) => {
|
|
2515
2515
|
var $, Q;
|
|
2516
2516
|
return (c == null ? void 0 : c.key) === "tableContents" && (c.contents = (Q = ($ = t.content) == null ? void 0 : $.map((le) => {
|
|
2517
2517
|
let r = {};
|
|
@@ -2522,21 +2522,21 @@ const Ri = /* @__PURE__ */ Re(Oi, [["render", Li]]), Pi = { class: "extra-conten
|
|
|
2522
2522
|
})), n;
|
|
2523
2523
|
});
|
|
2524
2524
|
p.unshift(s == null ? void 0 : s[0]);
|
|
2525
|
-
let
|
|
2526
|
-
for (let n in
|
|
2525
|
+
let A = l(L.value), B = {};
|
|
2526
|
+
for (let n in A)
|
|
2527
2527
|
B[n] = p;
|
|
2528
2528
|
L.value = B;
|
|
2529
|
-
},
|
|
2529
|
+
}, re = () => {
|
|
2530
2530
|
C.value = !1, L.value = {}, U.value = {}, E.value = void 0, a.value++;
|
|
2531
2531
|
}, Z = (t) => {
|
|
2532
2532
|
var J, Y, j, G;
|
|
2533
|
-
const s = (Y = (J = Object.values(l(L.value))) == null ? void 0 : J[0]) == null ? void 0 : Y.filter((n) => (n == null ? void 0 : n.key) === "tableContentName"), o = (G = (j = Object.values(l(L.value))) == null ? void 0 : j[0]) == null ? void 0 : G.filter((n) => (n == null ? void 0 : n.key) !== "tableContentName"), p = o == null ? void 0 : o.map((n,
|
|
2533
|
+
const s = (Y = (J = Object.values(l(L.value))) == null ? void 0 : J[0]) == null ? void 0 : Y.filter((n) => (n == null ? void 0 : n.key) === "tableContentName"), o = (G = (j = Object.values(l(L.value))) == null ? void 0 : j[0]) == null ? void 0 : G.filter((n) => (n == null ? void 0 : n.key) !== "tableContentName"), p = o == null ? void 0 : o.map((n, I) => (I === t.index && (n.compData = t.contents), n));
|
|
2534
2534
|
p.unshift(s == null ? void 0 : s[0]);
|
|
2535
|
-
let
|
|
2536
|
-
for (let n in
|
|
2535
|
+
let A = l(L.value), B = {};
|
|
2536
|
+
for (let n in A)
|
|
2537
2537
|
B[n] = p;
|
|
2538
2538
|
L.value = B;
|
|
2539
|
-
},
|
|
2539
|
+
}, oe = () => {
|
|
2540
2540
|
var s, o;
|
|
2541
2541
|
let t = {};
|
|
2542
2542
|
for (let p in U.value)
|
|
@@ -2548,64 +2548,64 @@ const Ri = /* @__PURE__ */ Re(Oi, [["render", Li]]), Pi = { class: "extra-conten
|
|
|
2548
2548
|
}, "methodData"), C.value = !1, L.value = {}, U.value = {}, E.value = void 0;
|
|
2549
2549
|
}, w = () => {
|
|
2550
2550
|
C.value = !1, L.value = {}, U.value = {}, E.value = void 0;
|
|
2551
|
-
},
|
|
2551
|
+
}, v = (t) => {
|
|
2552
2552
|
P("change", t, "methodData");
|
|
2553
|
-
}, M = (t) =>
|
|
2553
|
+
}, M = (t) => sa(t);
|
|
2554
2554
|
return (t, s) => {
|
|
2555
2555
|
const o = Te("el-button");
|
|
2556
|
-
return q(), de("div",
|
|
2557
|
-
(q(!0), de(Se, null,
|
|
2558
|
-
(p == null ? void 0 : p.key) === "extra" ? (q(), de("div",
|
|
2559
|
-
(q(), Fe(
|
|
2556
|
+
return q(), de("div", Gi, [
|
|
2557
|
+
(q(!0), de(Se, null, Le(h.value, (p, A) => (q(), de("div", { key: a.value }, [
|
|
2558
|
+
(p == null ? void 0 : p.key) === "extra" ? (q(), de("div", Hi)) : (q(), de("div", qi, [
|
|
2559
|
+
(q(), Fe(Ul(M(p.comp)), {
|
|
2560
2560
|
itemData: p == null ? void 0 : p.compData,
|
|
2561
2561
|
childItemData: p == null ? void 0 : p.itemChildData,
|
|
2562
|
-
key:
|
|
2563
|
-
index: (p == null ? void 0 : p.id) ??
|
|
2562
|
+
key: A,
|
|
2563
|
+
index: (p == null ? void 0 : p.id) ?? A,
|
|
2564
2564
|
onContentClick: X,
|
|
2565
|
-
onChange:
|
|
2565
|
+
onChange: v
|
|
2566
2566
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2567
2567
|
]))
|
|
2568
2568
|
]))), 128)),
|
|
2569
|
-
K(
|
|
2569
|
+
K(Je, {
|
|
2570
2570
|
visible: C.value,
|
|
2571
2571
|
onBeforeDestroy: w
|
|
2572
2572
|
}, {
|
|
2573
2573
|
default: se(() => [
|
|
2574
|
-
(q(!0), de(Se, null,
|
|
2575
|
-
key:
|
|
2574
|
+
(q(!0), de(Se, null, Le(T.value, (p, A) => (q(), de("div", {
|
|
2575
|
+
key: A,
|
|
2576
2576
|
class: "extra-dialog"
|
|
2577
2577
|
}, [
|
|
2578
|
-
(q(), Fe(
|
|
2578
|
+
(q(), Fe(Ul(M(p.comp)), {
|
|
2579
2579
|
itemData: p == null ? void 0 : p.compData,
|
|
2580
2580
|
onChange: H,
|
|
2581
2581
|
childItemData: p == null ? void 0 : p.itemChildData,
|
|
2582
|
-
key:
|
|
2582
|
+
key: A,
|
|
2583
2583
|
onContentChange: Z,
|
|
2584
|
-
index: (p == null ? void 0 : p.id) ??
|
|
2584
|
+
index: (p == null ? void 0 : p.id) ?? A,
|
|
2585
2585
|
class: "extra-component"
|
|
2586
2586
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2587
2587
|
]))), 128))
|
|
2588
2588
|
]),
|
|
2589
2589
|
footer: se(() => [
|
|
2590
|
-
D("div",
|
|
2590
|
+
D("div", Qi, [
|
|
2591
2591
|
K(o, {
|
|
2592
2592
|
class: "cancel-button footer-button",
|
|
2593
|
-
onClick:
|
|
2593
|
+
onClick: re,
|
|
2594
2594
|
id: "themeBorderButton"
|
|
2595
2595
|
}, {
|
|
2596
2596
|
default: se(() => s[0] || (s[0] = [
|
|
2597
|
-
|
|
2597
|
+
xe(me("取消"))
|
|
2598
2598
|
])),
|
|
2599
2599
|
_: 1,
|
|
2600
2600
|
__: [0]
|
|
2601
2601
|
}),
|
|
2602
2602
|
K(o, {
|
|
2603
2603
|
class: "confirm-button footer-button",
|
|
2604
|
-
onClick:
|
|
2604
|
+
onClick: oe,
|
|
2605
2605
|
id: "themeButton"
|
|
2606
2606
|
}, {
|
|
2607
2607
|
default: se(() => s[1] || (s[1] = [
|
|
2608
|
-
|
|
2608
|
+
xe(me("确认"))
|
|
2609
2609
|
])),
|
|
2610
2610
|
_: 1,
|
|
2611
2611
|
__: [1]
|
|
@@ -2617,135 +2617,135 @@ const Ri = /* @__PURE__ */ Re(Oi, [["render", Li]]), Pi = { class: "extra-conten
|
|
|
2617
2617
|
]);
|
|
2618
2618
|
};
|
|
2619
2619
|
}
|
|
2620
|
-
},
|
|
2621
|
-
var C, L, U, E, X, H,
|
|
2622
|
-
const g =
|
|
2623
|
-
let a = [],
|
|
2620
|
+
}, Yi = /* @__PURE__ */ Ve(Xi, [["__scopeId", "data-v-2d9c5ab2"]]), Xl = (f) => {
|
|
2621
|
+
var C, L, U, E, X, H, re, Z, oe, w, v, M, t, s, o, p, A, B, J, Y, j, G, n, I;
|
|
2622
|
+
const g = Zl(f) ? (C = il(l(f))) == null ? void 0 : C[0] : "[]", i = Zl(f) ? "[" + ((L = il(l(f))) == null ? void 0 : L[2]) + "]" : "[" + f + "]";
|
|
2623
|
+
let a = [], h = [], T = "";
|
|
2624
2624
|
const P = (E = (U = i == null ? void 0 : i.trim()) == null ? void 0 : U.slice(1, (i == null ? void 0 : i.trim().length) - 1)) == null ? void 0 : E.replaceAll("'", '"');
|
|
2625
|
-
if (
|
|
2626
|
-
!g.includes("{") &&
|
|
2625
|
+
if (sl(P) ? a = JSON.parse(P) : sl((re = (H = (X = P == null ? void 0 : P.split("}")) == null ? void 0 : X[0]) == null ? void 0 : H.replace(":", "")) == null ? void 0 : re.replaceAll("\\", "\\\\")) && (a = JSON.parse((w = (oe = (Z = P == null ? void 0 : P.split("}")) == null ? void 0 : Z[0]) == null ? void 0 : oe.replace(":", "")) == null ? void 0 : w.replaceAll("\\", "\\\\"))), a = a != null && a.every((_) => Array.isArray(_) && _.every((c) => Array.isArray(c))) ? a == null ? void 0 : a[0] : a, !(g != null && g.includes("(")))
|
|
2626
|
+
!g.includes("{") && sl(g == null ? void 0 : g.replaceAll("'", '"')) ? h = JSON.parse(g == null ? void 0 : g.replaceAll("'", '"')) : sl((M = (v = g == null ? void 0 : g.split("{")) == null ? void 0 : v[1]) == null ? void 0 : M.replaceAll("'", '"')) && (h = JSON.parse((s = (t = g == null ? void 0 : g.split("{")) == null ? void 0 : t[1]) == null ? void 0 : s.replaceAll("'", '"')));
|
|
2627
2627
|
else {
|
|
2628
2628
|
let _ = [];
|
|
2629
2629
|
if (((p = (o = g == null ? void 0 : g.slice(1, (g == null ? void 0 : g.length) - 1)) == null ? void 0 : o.split(",")) == null ? void 0 : p.length) > 1)
|
|
2630
|
-
(B = (
|
|
2631
|
-
var $, Q, le, r, k, S, ie,
|
|
2630
|
+
(B = (A = g == null ? void 0 : g.slice(1, (g == null ? void 0 : g.length) - 1)) == null ? void 0 : A.split(",")) == null || B.forEach((c) => {
|
|
2631
|
+
var $, Q, le, r, k, S, ie, ne, m, y, O, W, ue, ee, fe, V, ye, be, De, Ee, te, e, u, b;
|
|
2632
2632
|
if (!(c != null && c.includes("(")))
|
|
2633
2633
|
_.push(c == null ? void 0 : c.replaceAll("'", ""));
|
|
2634
2634
|
else if (c != null && c.includes("[")) {
|
|
2635
2635
|
let d;
|
|
2636
|
-
d = (ee = (
|
|
2636
|
+
d = (ee = (ue = (W = (O = c == null ? void 0 : c.split("[")) == null ? void 0 : O[((y = c == null ? void 0 : c.split("[")) == null ? void 0 : y.length) - 1]) == null ? void 0 : W.split("]")) == null ? void 0 : ue[0]) == null ? void 0 : ee.replaceAll("'", ""), d = (d == null ? void 0 : d[0]) === ":" ? '""' + d : d, c != null && c.includes("#") && (d = ((V = (fe = c == null ? void 0 : c.split("#")) == null ? void 0 : fe[0]) == null ? void 0 : V.replaceAll("'", "")) + "#" + d), d.includes(":") ? d = d + "[" + ((Ee = (De = (be = c == null ? void 0 : c.split("(")) == null ? void 0 : be[((ye = c == null ? void 0 : c.split("(")) == null ? void 0 : ye.length) - 1]) == null ? void 0 : De.split(")")) == null ? void 0 : Ee[0].replaceAll(":", "/").replaceAll("'", "")) + "]" : d = d + "[" + ((b = (u = (e = c == null ? void 0 : c.split("(")) == null ? void 0 : e[((te = c == null ? void 0 : c.split("(")) == null ? void 0 : te.length) - 1]) == null ? void 0 : u.split(")")) == null ? void 0 : b[0].replaceAll(":", "/").replaceAll("'", "")) + "]()", _.push(d == null ? void 0 : d.replaceAll('"', "'"));
|
|
2637
2637
|
} else {
|
|
2638
2638
|
let d = (k = (r = (le = (Q = c == null ? void 0 : c.split(":")) == null ? void 0 : Q[(($ = c == null ? void 0 : c.split(":")) == null ? void 0 : $.length) - 1]) == null ? void 0 : le.split(")")) == null ? void 0 : r[0]) == null ? void 0 : k.replaceAll("'", "");
|
|
2639
|
-
d = d + "[" + ((m = (
|
|
2639
|
+
d = d + "[" + ((m = (ne = (ie = c == null ? void 0 : c.split("(")) == null ? void 0 : ie[((S = c == null ? void 0 : c.split("(")) == null ? void 0 : S.length) - 1]) == null ? void 0 : ne.split(")")) == null ? void 0 : m[0].replaceAll(":", "/").replaceAll("'", "")) + "]", _.push(d);
|
|
2640
2640
|
}
|
|
2641
|
-
}),
|
|
2641
|
+
}), h = _;
|
|
2642
2642
|
else {
|
|
2643
2643
|
const c = ((G = (j = (Y = (J = g == null ? void 0 : g.slice(1, g == null ? void 0 : g.length)) == null ? void 0 : J.split("(")) == null ? void 0 : Y[1]) == null ? void 0 : j.split(")")) == null ? void 0 : G[0]).replaceAll("{", "").replaceAll("}", "").replaceAll(":", "/").replaceAll("'", "");
|
|
2644
|
-
T = T + c + "[" + ((
|
|
2644
|
+
T = T + c + "[" + ((I = (n = g == null ? void 0 : g.slice(1, (g == null ? void 0 : g.length) - 1)) == null ? void 0 : n.split("[")) == null ? void 0 : I[1]);
|
|
2645
2645
|
}
|
|
2646
2646
|
}
|
|
2647
2647
|
return {
|
|
2648
|
-
tableColumns:
|
|
2648
|
+
tableColumns: h,
|
|
2649
2649
|
tableContents: a != null && a.every((_) => Array.isArray(_)) ? a : [a],
|
|
2650
2650
|
tablePath: T
|
|
2651
2651
|
};
|
|
2652
2652
|
};
|
|
2653
2653
|
let _e = "$R";
|
|
2654
|
-
const
|
|
2654
|
+
const Zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), en = (f) => /^'([^']+)':.*$/.exec(l(f)), il = (f) => {
|
|
2655
2655
|
let g = f;
|
|
2656
2656
|
const i = [];
|
|
2657
2657
|
let a = "";
|
|
2658
|
-
for (const
|
|
2659
|
-
|
|
2658
|
+
for (const h of g)
|
|
2659
|
+
h.includes("{") || a.includes("{") || h.includes("[") || a.includes("[") || h.includes("【") || a.includes("【") || h.includes("(") || a.includes("(") || h.includes("(") || a.includes("(") || h.includes("/*") || a.includes("/*") || h.includes("&") || a.includes("&") ? (a += h.trim(), l(a).split("{").length - 1 === l(a).split("}").length - 1 && l(a).split("【").length - 1 === l(a).split("】").length - 1 && l(a).split("[").length - 1 === l(a).split("]").length - 1 && l(a).split("(").length - 1 === l(a).split(")").length - 1 && l(a).split("(").length - 1 === l(a).split(")").length - 1 && l(a).split("/*").length - 1 === l(a).split("*/").length - 1 && a[a.length - 1] !== "," && a[a.length - 1] !== "&" && (i.push(a.replace(/\/\*[\s\S]*?\*\//g, "")), a = "")) : i.push(h.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
2660
2660
|
return i;
|
|
2661
|
-
},
|
|
2661
|
+
}, Yl = (f, g) => {
|
|
2662
2662
|
let i = f;
|
|
2663
2663
|
const a = [];
|
|
2664
|
-
let
|
|
2664
|
+
let h = "", T = 0;
|
|
2665
2665
|
for (const P of i)
|
|
2666
|
-
T++, P.includes("{") ||
|
|
2666
|
+
T++, P.includes("{") || h.includes("{") || P.includes("[") || h.includes("[") || P.includes("【") || h.includes("【") || P.includes("(") || h.includes("(") || P.includes("(") || h.includes("(") || P.includes("/*") || h.includes("/*") ? (h += P.trim(), l(h).split("{").length - 1 === l(h).split("}").length - 1 && l(h).split("【").length - 1 === l(h).split("】").length - 1 && l(h).split("[").length - 1 === l(h).split("]").length - 1 && l(h).split("(").length - 1 === l(h).split(")").length - 1 && l(h).split("(").length - 1 === l(h).split(")").length - 1 && l(h).split("/*").length - 1 === l(h).split("*/").length - 1 && h[h.length - 1] !== "," && h[h.length - 1] === g ? (a.push(h.replace(/\/\*[\s\S]*?\*\//g, "")), h = "") : T === (f == null ? void 0 : f.length) && a.push(h.replace(/\/\*[\s\S]*?\*\//g, ""))) : (h += P.trim(), (h == null ? void 0 : h[(h == null ? void 0 : h.length) - 1]) === g && (a.push(h.replace(/\/\*[\s\S]*?\*\//g, "")), h = ""));
|
|
2667
2667
|
return a;
|
|
2668
|
-
},
|
|
2669
|
-
var g, i, a,
|
|
2670
|
-
if (
|
|
2671
|
-
let O = {}, W = (a = (i = (g = f == null ? void 0 : f.replace(":", _e)) == null ? void 0 : g.split(_e)) == null ? void 0 : i[0]) == null ? void 0 : a.replaceAll("'", ""),
|
|
2672
|
-
return ee.includes("{") || ee.includes("(") ? (ee.includes("{") ?
|
|
2668
|
+
}, Zl = (f) => /^\[.*?\]:\[.*?\]$/.exec(l(f)), ln = (f) => {
|
|
2669
|
+
var g, i, a, h, T, P, C, L, U, E, X, H, re, Z, oe, w, v, M, t, s, o, p, A, B, J, Y, j, G, n, I, _, c, $, Q, le, r, k, S, ie, ne, m, y;
|
|
2670
|
+
if (en(f)) {
|
|
2671
|
+
let O = {}, W = (a = (i = (g = f == null ? void 0 : f.replace(":", _e)) == null ? void 0 : g.split(_e)) == null ? void 0 : i[0]) == null ? void 0 : a.replaceAll("'", ""), ue = "", ee = (T = (h = f == null ? void 0 : f.replace(":", _e)) == null ? void 0 : h.split(_e)) == null ? void 0 : T[1];
|
|
2672
|
+
return ee.includes("{") || ee.includes("(") ? (ee.includes("{") ? ue = ue + ((U = (L = (C = (P = ee == null ? void 0 : ee.split("{")) == null ? void 0 : P[1]) == null ? void 0 : C.split("}")) == null ? void 0 : L[0]) == null ? void 0 : U.replace(":", "/").replaceAll("'", "")) + "[" : ue = ue + ((re = (H = (X = (E = ee == null ? void 0 : ee.split("(")) == null ? void 0 : E[1]) == null ? void 0 : X.split(")")) == null ? void 0 : H[0]) == null ? void 0 : re.replace(":", "/").replaceAll("'", "")) + "[", ue = ue + ((w = (oe = (Z = ee == null ? void 0 : ee.split("[")) == null ? void 0 : Z[1]) == null ? void 0 : oe.split("]")) == null ? void 0 : w[0]) + "]") : ue = (t = (M = (v = f == null ? void 0 : f.replace(":", _e)) == null ? void 0 : v.split(_e)) == null ? void 0 : M[1]) == null ? void 0 : t.replaceAll("'", ""), O[W] = ue, {
|
|
2673
2673
|
groupName: "",
|
|
2674
2674
|
formContents: [[O]]
|
|
2675
2675
|
};
|
|
2676
2676
|
} else {
|
|
2677
|
-
let O = {}, W = "",
|
|
2677
|
+
let O = {}, W = "", ue = "";
|
|
2678
2678
|
if (f.includes("#")) {
|
|
2679
2679
|
W = (o = (s = f == null ? void 0 : f.split("#")) == null ? void 0 : s[0]) == null ? void 0 : o.replaceAll("'", "");
|
|
2680
|
-
let ee = (
|
|
2681
|
-
ee != null && ee.includes("{") ?
|
|
2680
|
+
let ee = (A = (p = f == null ? void 0 : f.split("#")) == null ? void 0 : p[1]) == null ? void 0 : A.replaceAll("'", "");
|
|
2681
|
+
ee != null && ee.includes("{") ? ue = ue + ((j = (Y = (J = (B = ee == null ? void 0 : ee.split("{")) == null ? void 0 : B[1]) == null ? void 0 : J.split("}")) == null ? void 0 : Y[0]) == null ? void 0 : j.replaceAll(":", "/").replaceAll("'", "")) + "[" : ue = ue + ((_ = (I = (n = (G = ee == null ? void 0 : ee.split("(")) == null ? void 0 : G[1]) == null ? void 0 : n.split(")")) == null ? void 0 : I[0]) == null ? void 0 : _.replaceAll(":", "/").replaceAll("'", "")) + "[", ue = ue + ((Q = ($ = (c = ee == null ? void 0 : ee.split("[")) == null ? void 0 : c[1]) == null ? void 0 : $.split("]")) == null ? void 0 : Q[0]) + "]";
|
|
2682
2682
|
} else {
|
|
2683
2683
|
let ee = (k = (r = (le = f == null ? void 0 : f.split("]")) == null ? void 0 : le[0]) == null ? void 0 : r.split("[")) == null ? void 0 : k[1];
|
|
2684
2684
|
(S = ee == null ? void 0 : ee.split(":")) == null || S.forEach((fe, V) => {
|
|
2685
2685
|
var ye;
|
|
2686
2686
|
((ye = ee == null ? void 0 : ee.split(":")) == null ? void 0 : ye.length) - 1 === V && (W = fe == null ? void 0 : fe.replaceAll("'", ""));
|
|
2687
|
-
}),
|
|
2687
|
+
}), ue = ((y = (m = (ne = (ie = f == null ? void 0 : f.split("]")) == null ? void 0 : ie[1]) == null ? void 0 : ne.replace(":", _e).split(_e)) == null ? void 0 : m[1]) == null ? void 0 : y.replaceAll("'", "")) ?? "";
|
|
2688
2688
|
}
|
|
2689
|
-
return O[W] =
|
|
2689
|
+
return O[W] = ue, {
|
|
2690
2690
|
groupName: "",
|
|
2691
2691
|
formContents: [[O]]
|
|
2692
2692
|
};
|
|
2693
2693
|
}
|
|
2694
|
-
},
|
|
2694
|
+
}, an = (f) => (f == null ? void 0 : f[0]) === "[" && (f == null ? void 0 : f[f.length - 1]) === "]" && !(f != null && f.includes("{")), sn = (f, g) => {
|
|
2695
2695
|
let i = f.length;
|
|
2696
2696
|
for (; i--; )
|
|
2697
2697
|
if (f[i] === ")")
|
|
2698
2698
|
return f.substring(0, i) + g + f.substring(i + 1);
|
|
2699
2699
|
return f;
|
|
2700
|
-
},
|
|
2700
|
+
}, nn = (f) => {
|
|
2701
2701
|
var T, P, C, L, U;
|
|
2702
2702
|
let g = f.slice(1, f.length - 1), i;
|
|
2703
|
-
(g == null ? void 0 : g[0]) === "[" ? i = (P = (T =
|
|
2703
|
+
(g == null ? void 0 : g[0]) === "[" ? i = (P = (T = il(l(g))) == null ? void 0 : T.filter((E) => E !== ",")) == null ? void 0 : P.map((E) => E == null ? void 0 : E.slice(1, E.length - 1)) : (g = "[" + l(g) + "]", i = (L = (C = il(l(g))) == null ? void 0 : C.filter((E) => E !== ",")) == null ? void 0 : L.map((E) => E == null ? void 0 : E.slice(1, E.length - 1))), i = (U = l(i)) == null ? void 0 : U.map((E) => {
|
|
2704
2704
|
var X, H;
|
|
2705
2705
|
return E = (H = (X = E.replace(")", _e)) == null ? void 0 : X.split(_e)) == null ? void 0 : H[1], E;
|
|
2706
2706
|
});
|
|
2707
|
-
let a = [],
|
|
2707
|
+
let a = [], h = [];
|
|
2708
2708
|
return i == null || i.forEach((E) => {
|
|
2709
|
-
var
|
|
2710
|
-
let X = (Z = (
|
|
2711
|
-
if (((w = (
|
|
2712
|
-
if (!((M = (
|
|
2713
|
-
|
|
2709
|
+
var re, Z, oe, w, v, M, t, s, o, p, A, B, J, Y, j, G, n, I, _, c, $, Q, le, r, k, S, ie, ne, m, y, O, W;
|
|
2710
|
+
let X = (Z = (re = l(E)) == null ? void 0 : re.slice(1, l(E).length - 1)) == null ? void 0 : Z.replace(":", _e).split(_e);
|
|
2711
|
+
if (((w = (oe = l(X)) == null ? void 0 : oe[0]) == null ? void 0 : w.replaceAll("'", "")) === "输入") {
|
|
2712
|
+
if (!((M = (v = l(X)) == null ? void 0 : v[1]) != null && M.includes("[")) && !((s = (t = l(X)) == null ? void 0 : t[1]) != null && s.includes("("))) {
|
|
2713
|
+
sl((o = l(X)) == null ? void 0 : o[1].replaceAll("'", '"')) && h.push(JSON.parse((p = l(X)) == null ? void 0 : p[1].replaceAll("'", '"')));
|
|
2714
2714
|
return;
|
|
2715
2715
|
}
|
|
2716
|
-
if (((B = (
|
|
2717
|
-
let
|
|
2718
|
-
(
|
|
2719
|
-
var De,
|
|
2720
|
-
let fe = {}, V = (te = (
|
|
2721
|
-
(u = V == null ? void 0 : V[1]) != null && u.includes("(") ? (be = (ke = (ge = (ce = (F = (pe = (N = (x = (d = l(V)) == null ? void 0 : d[1]) == null ? void 0 : x.replaceAll("{", "")) == null ? void 0 : N.replaceAll("}", "")) == null ? void 0 : pe.split("(")) == null ? void 0 : F[1]) == null ? void 0 : ce.split(")")) == null ? void 0 : ge[0]) == null ? void 0 : ke.replaceAll(":", "/").replaceAll("'", ""), (
|
|
2716
|
+
if (((B = (A = l(X)) == null ? void 0 : A[1]) == null ? void 0 : B[0]) === "[") {
|
|
2717
|
+
let ue = (G = (J = l(X)) == null ? void 0 : J[1]) == null ? void 0 : G.slice(1, ((j = (Y = l(X)) == null ? void 0 : Y[1]) == null ? void 0 : j.length) - 1);
|
|
2718
|
+
(I = (n = il(ue)) == null ? void 0 : n.filter((ee) => ee !== ",")) == null || I.forEach((ee) => {
|
|
2719
|
+
var De, Ee, te, e, u, b, d, x, N, pe, F, ce, ge, ke, Ae, he, ae, we, ve, $e, ze, Me;
|
|
2720
|
+
let fe = {}, V = (te = (Ee = l(ee)) == null ? void 0 : Ee.slice(1, ((De = l(ee)) == null ? void 0 : De.length) - 1)) == null ? void 0 : te.replace(":", _e).split(_e), ye = (e = V == null ? void 0 : V[0]) == null ? void 0 : e.replaceAll("'", ""), be;
|
|
2721
|
+
(u = V == null ? void 0 : V[1]) != null && u.includes("(") ? (be = (ke = (ge = (ce = (F = (pe = (N = (x = (d = l(V)) == null ? void 0 : d[1]) == null ? void 0 : x.replaceAll("{", "")) == null ? void 0 : N.replaceAll("}", "")) == null ? void 0 : pe.split("(")) == null ? void 0 : F[1]) == null ? void 0 : ce.split(")")) == null ? void 0 : ge[0]) == null ? void 0 : ke.replaceAll(":", "/").replaceAll("'", ""), (he = (Ae = l(V)) == null ? void 0 : Ae[1]) != null && he.includes("[") && (be = l(be) + "[" + ((Me = (ze = ($e = (ve = (we = (ae = l(V)) == null ? void 0 : ae[1]) == null ? void 0 : we.split("[")) == null ? void 0 : ve[1]) == null ? void 0 : $e.split("]")) == null ? void 0 : ze[0]) == null ? void 0 : Me.replaceAll("'", "")) + "]")) : be = (b = V == null ? void 0 : V[1]) == null ? void 0 : b.replaceAll("'", ""), fe[ye] = be, h.push(fe);
|
|
2722
2722
|
});
|
|
2723
2723
|
}
|
|
2724
2724
|
} else {
|
|
2725
2725
|
if (!((c = (_ = l(X)) == null ? void 0 : _[1]) != null && c.includes("[")) && !((Q = ($ = l(X)) == null ? void 0 : $[1]) != null && Q.includes("("))) {
|
|
2726
|
-
|
|
2726
|
+
sl((le = l(X)) == null ? void 0 : le[1].replaceAll("'", '"')) && a.push(JSON.parse((r = l(X)) == null ? void 0 : r[1].replaceAll("'", '"')));
|
|
2727
2727
|
return;
|
|
2728
2728
|
}
|
|
2729
2729
|
if (((S = (k = l(X)) == null ? void 0 : k[1]) == null ? void 0 : S[0]) === "[") {
|
|
2730
|
-
let
|
|
2731
|
-
(W = (O =
|
|
2732
|
-
var De,
|
|
2733
|
-
let fe = {}, V = (te = (
|
|
2730
|
+
let ue = (y = (ie = l(X)) == null ? void 0 : ie[1]) == null ? void 0 : y.slice(1, ((m = (ne = l(X)) == null ? void 0 : ne[1]) == null ? void 0 : m.length) - 1);
|
|
2731
|
+
(W = (O = il(ue)) == null ? void 0 : O.filter((ee) => ee !== ",")) == null || W.forEach((ee) => {
|
|
2732
|
+
var De, Ee, te, e, u, b, d, x, N, pe, F, ce, ge, ke, Ae, he, ae, we, ve, $e, ze, Me, R, Re, Be, ol, ul, Ue, dl, He, kl, _l, Cl;
|
|
2733
|
+
let fe = {}, V = (te = (Ee = l(ee)) == null ? void 0 : Ee.slice(1, ((De = l(ee)) == null ? void 0 : De.length) - 1)) == null ? void 0 : te.replace(":", _e).split(_e), ye = (e = V == null ? void 0 : V[0]) == null ? void 0 : e.replaceAll("'", ""), be;
|
|
2734
2734
|
if (!((u = V == null ? void 0 : V[1]) != null && u.includes("(")))
|
|
2735
2735
|
be = (b = V == null ? void 0 : V[1]) == null ? void 0 : b.replaceAll("'", "");
|
|
2736
|
-
else if (be = (ce = (F = (pe = (N = (x = (d = l(V)) == null ? void 0 : d[1]) == null ? void 0 : x.replaceAll("{", "")) == null ? void 0 : N.replaceAll("}", "")) == null ? void 0 : pe.replace("(", _e)) == null ? void 0 : F.split(_e)) == null ? void 0 : ce[1], be = (ke = (ge =
|
|
2737
|
-
be = (
|
|
2736
|
+
else if (be = (ce = (F = (pe = (N = (x = (d = l(V)) == null ? void 0 : d[1]) == null ? void 0 : x.replaceAll("{", "")) == null ? void 0 : N.replaceAll("}", "")) == null ? void 0 : pe.replace("(", _e)) == null ? void 0 : F.split(_e)) == null ? void 0 : ce[1], be = (ke = (ge = sn(l(be), _e)) == null ? void 0 : ge.split(_e)) == null ? void 0 : ke[0], !(be != null && be.includes("(")))
|
|
2737
|
+
be = (Ae = l(be)) == null ? void 0 : Ae.replaceAll(":", "/").replaceAll("'", ""), (ae = (he = l(V)) == null ? void 0 : he[1]) != null && ae.includes("[") && (be = l(be) + "[" + ((R = (Me = (ze = ($e = (ve = (we = l(V)) == null ? void 0 : we[1]) == null ? void 0 : ve.split("[")) == null ? void 0 : $e[1]) == null ? void 0 : ze.split("]")) == null ? void 0 : Me[0]) == null ? void 0 : R.replaceAll("'", "")) + "]");
|
|
2738
2738
|
else {
|
|
2739
2739
|
let qe = "";
|
|
2740
|
-
(
|
|
2741
|
-
var wl, Dl,
|
|
2742
|
-
if (!(
|
|
2743
|
-
qe = qe === "" ? qe + ((wl =
|
|
2740
|
+
(Re = Yl(be, ":")) == null || Re.forEach((Ke) => {
|
|
2741
|
+
var wl, Dl, Al, Il, xl, El, $l, Bl, Tl, Sl, Fl, Ol, Ll, Rl, Pl;
|
|
2742
|
+
if (!(Ke != null && Ke.includes("(")))
|
|
2743
|
+
qe = qe === "" ? qe + ((wl = Ke == null ? void 0 : Ke.replaceAll(":", "")) == null ? void 0 : wl.replaceAll("'", "")) : qe + "/" + ((Dl = Ke == null ? void 0 : Ke.replaceAll(":", "")) == null ? void 0 : Dl.replaceAll("'", ""));
|
|
2744
2744
|
else {
|
|
2745
|
-
let fl = (Sl = (Tl = (Bl = ($l = (El = (xl = (
|
|
2746
|
-
fl = fl + "[" + ((Pl = (Rl = (Ll = (Ol = (Fl = l(
|
|
2745
|
+
let fl = (Sl = (Tl = (Bl = ($l = (El = (xl = (Il = (Al = l(Ke)) == null ? void 0 : Al.replaceAll("{", "")) == null ? void 0 : Il.replaceAll("}", "")) == null ? void 0 : xl.replace("(", _e)) == null ? void 0 : El.split(_e)) == null ? void 0 : $l[1]) == null ? void 0 : Bl.split(")")) == null ? void 0 : Tl[0]) == null ? void 0 : Sl.replaceAll(":", "/").replaceAll("'", "");
|
|
2746
|
+
fl = fl + "[" + ((Pl = (Rl = (Ll = (Ol = (Fl = l(Ke)) == null ? void 0 : Fl.split("[")) == null ? void 0 : Ol[1]) == null ? void 0 : Ll.split("]")) == null ? void 0 : Rl[0]) == null ? void 0 : Pl.replaceAll("'", "")) + "]", qe = qe === "" ? qe + "[" + fl + "]" : qe + "/[" + fl + "]";
|
|
2747
2747
|
}
|
|
2748
|
-
}), be = qe + "[" + ((Cl = (_l = (kl = (He = (
|
|
2748
|
+
}), be = qe + "[" + ((Cl = (_l = (kl = (He = (ol = (Be = l(V)) == null ? void 0 : Be[1]) == null ? void 0 : ol.split("[")) == null ? void 0 : He[((dl = (Ue = (ul = l(V)) == null ? void 0 : ul[1]) == null ? void 0 : Ue.split("[")) == null ? void 0 : dl.length) - 1]) == null ? void 0 : kl.split("]")) == null ? void 0 : _l[0]) == null ? void 0 : Cl.replaceAll("'", "")) + "]";
|
|
2749
2749
|
}
|
|
2750
2750
|
fe[ye] = be, a.push(fe);
|
|
2751
2751
|
});
|
|
@@ -2753,16 +2753,16 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2753
2753
|
}
|
|
2754
2754
|
}), {
|
|
2755
2755
|
output: a,
|
|
2756
|
-
input:
|
|
2756
|
+
input: h
|
|
2757
2757
|
};
|
|
2758
|
-
},
|
|
2759
|
-
var a,
|
|
2758
|
+
}, Ra = (f) => {
|
|
2759
|
+
var a, h, T, P, C, L, U, E, X, H, re, Z, oe, w, v, M, t, s, o, p, A, B, J, Y, j, G, n, I, _, c, $, Q, le, r, k, S, ie, ne, m, y, O, W, ue, ee, fe, V, ye, be, De, Ee;
|
|
2760
2760
|
let g = "";
|
|
2761
2761
|
f = f.replace(/:([^=]*)==/g, ":");
|
|
2762
2762
|
let i = f;
|
|
2763
|
-
if (
|
|
2763
|
+
if (Zi(l(f)) !== null && (g = (h = (a = l(f).replace(":", _e).split(_e)) == null ? void 0 : a[0]) == null ? void 0 : h.replaceAll("'", ""), i = (T = l(f).replace(":", _e).split(_e)) == null ? void 0 : T[1]), Zl(l(i).slice(1, ((P = l(i)) == null ? void 0 : P.length) - 1)) || an(l(i).slice(1, ((C = l(i)) == null ? void 0 : C.length) - 1)))
|
|
2764
2764
|
if (((U = l(i).slice(1, ((L = l(i)) == null ? void 0 : L.length) - 1)) == null ? void 0 : U[1]) !== "[") {
|
|
2765
|
-
const te =
|
|
2765
|
+
const te = Xl(l(i).slice(1, ((E = l(i)) == null ? void 0 : E.length) - 1));
|
|
2766
2766
|
return {
|
|
2767
2767
|
groupName: g,
|
|
2768
2768
|
tableColumn: te == null ? void 0 : te.tableColumns,
|
|
@@ -2771,9 +2771,9 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2771
2771
|
};
|
|
2772
2772
|
} else if (l(i).slice(1, ((X = l(i)) == null ? void 0 : X.length) - 1).includes("{")) {
|
|
2773
2773
|
let te = l(i).slice(1, ((H = l(i)) == null ? void 0 : H.length) - 1), e = te.indexOf("{"), u = te.slice(e, (te == null ? void 0 : te.length) - e);
|
|
2774
|
-
return (Z = (
|
|
2774
|
+
return (Z = (re = il(u)) == null ? void 0 : re.filter((d) => d == null ? void 0 : d.includes("{"))) == null ? void 0 : Z.map((d, x) => {
|
|
2775
2775
|
var pe;
|
|
2776
|
-
let N =
|
|
2776
|
+
let N = Xl(l(d).slice(1, ((pe = l(d)) == null ? void 0 : pe.length) - 1));
|
|
2777
2777
|
return {
|
|
2778
2778
|
groupName: x === 0 ? g : "",
|
|
2779
2779
|
tableColumn: N == null ? void 0 : N.tableColumns,
|
|
@@ -2782,7 +2782,7 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2782
2782
|
};
|
|
2783
2783
|
});
|
|
2784
2784
|
} else {
|
|
2785
|
-
const te =
|
|
2785
|
+
const te = Xl(l(i).slice(1, ((oe = l(i)) == null ? void 0 : oe.length) - 1));
|
|
2786
2786
|
return {
|
|
2787
2787
|
groupName: g,
|
|
2788
2788
|
tableColumn: te == null ? void 0 : te.tableColumns,
|
|
@@ -2792,24 +2792,24 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2792
2792
|
}
|
|
2793
2793
|
else {
|
|
2794
2794
|
let te = [];
|
|
2795
|
-
if (
|
|
2796
|
-
te = JSON.parse((
|
|
2795
|
+
if (sl((w = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : w.replaceAll("'", '"')))
|
|
2796
|
+
te = JSON.parse((v = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : v.replaceAll("'", '"'));
|
|
2797
2797
|
else if (i.includes("(")) {
|
|
2798
2798
|
if ((i == null ? void 0 : i[0]) !== "{") {
|
|
2799
|
-
let e = (
|
|
2799
|
+
let e = (I = (n = (G = (j = l(i)) == null ? void 0 : j.split("]")) == null ? void 0 : G[0]) == null ? void 0 : n.split("[")) == null ? void 0 : I[1], u = "", d = ((r = (le = (Q = ($ = (c = (_ = l(i)) == null ? void 0 : _.split(")")) == null ? void 0 : c[0]) == null ? void 0 : $.split("(")) == null ? void 0 : Q[1]) == null ? void 0 : le.replaceAll("[", "")) == null ? void 0 : r.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
|
|
2800
2800
|
(k = d == null ? void 0 : d.split("/")) == null || k.forEach((N, pe) => {
|
|
2801
2801
|
var F;
|
|
2802
2802
|
pe !== ((F = d == null ? void 0 : d.split("/")) == null ? void 0 : F.length) - 1 && (u = u === "" ? u + N : u + "/" + N);
|
|
2803
2803
|
});
|
|
2804
2804
|
let x;
|
|
2805
|
-
return ((m = (
|
|
2805
|
+
return ((m = (ne = (ie = (S = l(i)) == null ? void 0 : S.replace(",", _e)) == null ? void 0 : ie.split(_e)) == null ? void 0 : ne[1]) == null ? void 0 : m[0]) === "[" && (x = nn((W = (O = (y = l(i)) == null ? void 0 : y.replace(",", _e)) == null ? void 0 : O.split(_e)) == null ? void 0 : W[1])), {
|
|
2806
2806
|
groupName: "",
|
|
2807
|
-
extraButton: (ee = e == null ? void 0 : e.split(":")) == null ? void 0 : ee[((
|
|
2807
|
+
extraButton: (ee = e == null ? void 0 : e.split(":")) == null ? void 0 : ee[((ue = e == null ? void 0 : e.split(":")) == null ? void 0 : ue.length) - 1].replaceAll("'", ""),
|
|
2808
2808
|
extraPath: u,
|
|
2809
2809
|
extraData: x
|
|
2810
2810
|
};
|
|
2811
2811
|
} else if (i = i.slice(1, (i == null ? void 0 : i.length) - 1), (i == null ? void 0 : i[0]) !== "[") {
|
|
2812
|
-
let e = "{" + i + "}", u = (V = (fe =
|
|
2812
|
+
let e = "{" + i + "}", u = (V = (fe = il(e)) == null ? void 0 : fe.filter((d) => d !== ",")) == null ? void 0 : V.map((d) => ln(l(d).slice(1, l(d).length - 1))), b = [];
|
|
2813
2813
|
return (ye = l(u)) == null || ye.forEach((d) => {
|
|
2814
2814
|
var x;
|
|
2815
2815
|
(x = d == null ? void 0 : d.formContents) == null || x.forEach((N) => {
|
|
@@ -2826,13 +2826,13 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2826
2826
|
} else if ((i == null ? void 0 : i[0]) === "[" && (i == null ? void 0 : i[1]) === "[") {
|
|
2827
2827
|
i = i.slice(1, (i == null ? void 0 : i.length) - 1);
|
|
2828
2828
|
let e = [], u = [];
|
|
2829
|
-
return (
|
|
2829
|
+
return (Ee = (De = il(i)) == null ? void 0 : De.filter((b) => b !== ",")) == null || Ee.forEach((b) => {
|
|
2830
2830
|
var d, x, N, pe;
|
|
2831
2831
|
if (!b.includes("&"))
|
|
2832
|
-
Array.isArray(
|
|
2832
|
+
Array.isArray(ea(b)) || e.push((d = ea(b)) == null ? void 0 : d.formContents);
|
|
2833
2833
|
else {
|
|
2834
2834
|
let F = (pe = (N = (x = l(b)) == null ? void 0 : x.split("&")) == null ? void 0 : N[1]) == null ? void 0 : pe.replaceAll("'", '"');
|
|
2835
|
-
|
|
2835
|
+
sl(F) && u.push({
|
|
2836
2836
|
[JSON.parse(F)[0]]: JSON.parse(F)
|
|
2837
2837
|
});
|
|
2838
2838
|
}
|
|
@@ -2842,11 +2842,11 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2842
2842
|
formGroup: u
|
|
2843
2843
|
};
|
|
2844
2844
|
}
|
|
2845
|
-
} else if (i = "[[" + i + "]]",
|
|
2845
|
+
} else if (i = "[[" + i + "]]", sl((M = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : M.replaceAll("'", '"')))
|
|
2846
2846
|
te = JSON.parse((t = i.slice(1, (i == null ? void 0 : i.length) - 1)) == null ? void 0 : t.replaceAll("'", '"'));
|
|
2847
2847
|
else if (i = i.slice(2, i.length - 2), ((p = (o = (s = i == null ? void 0 : i.replace(":", _e)) == null ? void 0 : s.split(_e)) == null ? void 0 : o[1]) == null ? void 0 : p[0]) !== "{") {
|
|
2848
|
-
i = ((B = (
|
|
2849
|
-
const e =
|
|
2848
|
+
i = ((B = (A = i == null ? void 0 : i.replace(":", _e)) == null ? void 0 : A.split(_e)) == null ? void 0 : B[0]) + ":{[" + ((Y = (J = i == null ? void 0 : i.replace(":", _e)) == null ? void 0 : J.split(_e)) == null ? void 0 : Y[1]) + "]}";
|
|
2849
|
+
const e = Ra(i);
|
|
2850
2850
|
return e != null && e.tableColumn ? {
|
|
2851
2851
|
groupName: e == null ? void 0 : e.groupName,
|
|
2852
2852
|
tableColumn: e == null ? void 0 : e.tableColumn,
|
|
@@ -2861,17 +2861,17 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2861
2861
|
formContents: te
|
|
2862
2862
|
};
|
|
2863
2863
|
}
|
|
2864
|
-
},
|
|
2864
|
+
}, ea = (f) => Ra(l(f).slice(1, l(f).length - 1)), $o = (f) => {
|
|
2865
2865
|
var i;
|
|
2866
2866
|
let g = [];
|
|
2867
2867
|
if (!((f == null ? void 0 : f[0]) === "[" && (f == null ? void 0 : f[1]) === "[")) {
|
|
2868
|
-
let a = (i =
|
|
2869
|
-
a == null || a.forEach((
|
|
2870
|
-
g.push(
|
|
2868
|
+
let a = (i = il(f)) == null ? void 0 : i.filter((h) => h !== ",");
|
|
2869
|
+
a == null || a.forEach((h) => {
|
|
2870
|
+
g.push(ea(h));
|
|
2871
2871
|
});
|
|
2872
2872
|
}
|
|
2873
2873
|
return g;
|
|
2874
|
-
},
|
|
2874
|
+
}, on = { class: "method-content" }, un = {
|
|
2875
2875
|
__name: "index",
|
|
2876
2876
|
props: {
|
|
2877
2877
|
itemData: {
|
|
@@ -2890,17 +2890,17 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2890
2890
|
}
|
|
2891
2891
|
},
|
|
2892
2892
|
setup(f) {
|
|
2893
|
-
const g = z([]), i = f, a =
|
|
2893
|
+
const g = z([]), i = f, a = $a(Ye), h = z(!1), T = Xa(Ye), P = us(Ye), { itemData: C, isEdit: L } = nl(a), { activeMenuPath: U, platform: E } = nl(T), { loginUserInfo: X } = nl(P), H = z(!1), re = (s, o) => {
|
|
2894
2894
|
const p = o;
|
|
2895
|
-
return s == null ? void 0 : s.map((
|
|
2895
|
+
return s == null ? void 0 : s.map((A) => {
|
|
2896
2896
|
var B;
|
|
2897
|
-
return
|
|
2897
|
+
return A = (B = A == null ? void 0 : A.map((J, Y) => {
|
|
2898
2898
|
var j;
|
|
2899
2899
|
return {
|
|
2900
2900
|
key: (j = p[Y]) == null ? void 0 : j.label,
|
|
2901
2901
|
value: J
|
|
2902
2902
|
};
|
|
2903
|
-
})) == null ? void 0 : B.filter((J) => J.key !== "操作"),
|
|
2903
|
+
})) == null ? void 0 : B.filter((J) => J.key !== "操作"), A;
|
|
2904
2904
|
});
|
|
2905
2905
|
};
|
|
2906
2906
|
je(
|
|
@@ -2912,17 +2912,17 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2912
2912
|
);
|
|
2913
2913
|
const Z = async (s, o) => {
|
|
2914
2914
|
var p;
|
|
2915
|
-
if (
|
|
2916
|
-
let
|
|
2915
|
+
if (_a(s == null ? void 0 : s.name, o)) {
|
|
2916
|
+
let A = _a(s == null ? void 0 : s.name, o);
|
|
2917
2917
|
s == null || s.id, s.compData = await Promise.all(
|
|
2918
|
-
(p = l(s.compData)) == null ? void 0 : p.map(async (B) => ((B == null ? void 0 : B.key) === "tableContents" && (B.extra = await
|
|
2918
|
+
(p = l(s.compData)) == null ? void 0 : p.map(async (B) => ((B == null ? void 0 : B.key) === "tableContents" && (B.extra = await Ma(l(B.contents)), B.contents = Ka(l(A))), B))
|
|
2919
2919
|
);
|
|
2920
2920
|
} else
|
|
2921
|
-
s =
|
|
2921
|
+
s = Ja(s, o);
|
|
2922
2922
|
return s;
|
|
2923
|
-
},
|
|
2924
|
-
var
|
|
2925
|
-
let p = (
|
|
2923
|
+
}, oe = (s, o) => {
|
|
2924
|
+
var A, B, J, Y, j, G, n, I;
|
|
2925
|
+
let p = (A = l(o)) == null ? void 0 : A.filter((_) => (_ == null ? void 0 : _.comp) !== "methodButton");
|
|
2926
2926
|
if (s != null && s.includes("[")) {
|
|
2927
2927
|
let _ = (G = (j = (Y = (J = (B = l(s)) == null ? void 0 : B.split("[")) == null ? void 0 : J[1]) == null ? void 0 : Y.split("]")) == null ? void 0 : j[0]) == null ? void 0 : G.split(":"), c = "";
|
|
2928
2928
|
if (_ != null && _[0]) {
|
|
@@ -2937,12 +2937,12 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2937
2937
|
return c;
|
|
2938
2938
|
} else if (s != null && s.includes("/")) {
|
|
2939
2939
|
let _ = {};
|
|
2940
|
-
return (
|
|
2941
|
-
var Q, le, r, k, S, ie,
|
|
2940
|
+
return (I = l(p)) == null || I.forEach((c, $) => {
|
|
2941
|
+
var Q, le, r, k, S, ie, ne, m, y, O, W, ue, ee, fe, V, ye, be, De, Ee;
|
|
2942
2942
|
if ((c == null ? void 0 : c.comp) === "Table") {
|
|
2943
|
-
let te = Array.isArray((r = (le = (Q = c == null ? void 0 : c.compData) == null ? void 0 : Q.find((d) => (d == null ? void 0 : d.key) === "header")) == null ? void 0 : le.contents) == null ? void 0 : r[0]) ? (
|
|
2943
|
+
let te = Array.isArray((r = (le = (Q = c == null ? void 0 : c.compData) == null ? void 0 : Q.find((d) => (d == null ? void 0 : d.key) === "header")) == null ? void 0 : le.contents) == null ? void 0 : r[0]) ? (ne = (ie = (S = (k = c == null ? void 0 : c.compData) == null ? void 0 : k.find((d) => (d == null ? void 0 : d.key) === "header")) == null ? void 0 : S.contents) == null ? void 0 : ie[0]) == null ? void 0 : ne.some((d) => d == null ? void 0 : d.children) : [], e = (O = (y = (m = c == null ? void 0 : c.compData) == null ? void 0 : m.find((d) => (d == null ? void 0 : d.key) === "tableContents")) == null ? void 0 : y.contents) == null ? void 0 : O.map((d) => d.slice(1)), u = (V = (fe = (ee = (ue = (W = c == null ? void 0 : c.compData) == null ? void 0 : W.find((d) => (d == null ? void 0 : d.key) === "header")) == null ? void 0 : ue.contents) == null ? void 0 : ee[0]) == null ? void 0 : fe[0]) == null ? void 0 : V.label, b = (be = (ye = c == null ? void 0 : c.compData) == null ? void 0 : ye.find((d) => (d == null ? void 0 : d.key) === "header")) == null ? void 0 : be.contents;
|
|
2944
2944
|
if (te)
|
|
2945
|
-
(te == null ? void 0 : te.length) === 0 ? _[c.name] =
|
|
2945
|
+
(te == null ? void 0 : te.length) === 0 ? _[c.name] = re(e, b) : _[u] = re(e, b);
|
|
2946
2946
|
else {
|
|
2947
2947
|
const d = [];
|
|
2948
2948
|
b = b.slice(1, b.length - 1), b == null || b.forEach((x, N) => {
|
|
@@ -2955,7 +2955,7 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2955
2955
|
}), _["form" + $] = d;
|
|
2956
2956
|
}
|
|
2957
2957
|
} else {
|
|
2958
|
-
const te = (
|
|
2958
|
+
const te = (Ee = (De = c.compData) == null ? void 0 : De.find((u) => (u == null ? void 0 : u.key) === "formContent")) == null ? void 0 : Ee.contents;
|
|
2959
2959
|
_.form = {};
|
|
2960
2960
|
const e = [];
|
|
2961
2961
|
te == null || te.forEach((u) => {
|
|
@@ -2970,7 +2970,7 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2970
2970
|
return s;
|
|
2971
2971
|
}, w = async (s, o, p) => {
|
|
2972
2972
|
var J;
|
|
2973
|
-
let
|
|
2973
|
+
let A = await bl(o, sessionStorage.getItem("systemKey"), ""), B = A == null ? void 0 : A.find((Y) => (Y == null ? void 0 : Y.name) === (p == null ? void 0 : p[0]));
|
|
2974
2974
|
if (B && (B == null ? void 0 : B.comp) === "Table") {
|
|
2975
2975
|
let Y = {};
|
|
2976
2976
|
for (let $ in l(s))
|
|
@@ -2981,17 +2981,17 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
2981
2981
|
[$[p[1]]]: $
|
|
2982
2982
|
});
|
|
2983
2983
|
});
|
|
2984
|
-
let n = [],
|
|
2984
|
+
let n = [], I = j == null ? void 0 : j.map(($) => {
|
|
2985
2985
|
var Q;
|
|
2986
2986
|
return (Q = Object.keys($)) == null ? void 0 : Q[0];
|
|
2987
2987
|
});
|
|
2988
|
-
|
|
2988
|
+
A == null || A.forEach(($) => {
|
|
2989
2989
|
var Q;
|
|
2990
2990
|
($ == null ? void 0 : $.name) === (p == null ? void 0 : p[0]) && ((Q = $ == null ? void 0 : $.compData) == null || Q.forEach((le) => {
|
|
2991
2991
|
var r;
|
|
2992
2992
|
(le == null ? void 0 : le.key) === "tableContents" && ((r = le == null ? void 0 : le.contents) == null || r.forEach((k) => {
|
|
2993
|
-
k != null && k.some((S) =>
|
|
2994
|
-
[k.find((S) => S.id).id]: k.find((S) =>
|
|
2993
|
+
k != null && k.some((S) => I.includes(S)) && n.push({
|
|
2994
|
+
[k.find((S) => S.id).id]: k.find((S) => I.includes(S))
|
|
2995
2995
|
});
|
|
2996
2996
|
}));
|
|
2997
2997
|
}));
|
|
@@ -3015,19 +3015,19 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
3015
3015
|
tableData: le[Q]
|
|
3016
3016
|
}
|
|
3017
3017
|
});
|
|
3018
|
-
}), await
|
|
3018
|
+
}), await es({
|
|
3019
3019
|
dataList: c
|
|
3020
3020
|
});
|
|
3021
3021
|
}
|
|
3022
|
-
},
|
|
3023
|
-
var J, Y, j, G, n,
|
|
3024
|
-
let
|
|
3022
|
+
}, v = async (s, o, p) => {
|
|
3023
|
+
var J, Y, j, G, n, I;
|
|
3024
|
+
let A = await bl(o, sessionStorage.getItem("systemKey"), ""), B = A == null ? void 0 : A.find((_) => (_ == null ? void 0 : _.name) === (p == null ? void 0 : p[0]));
|
|
3025
3025
|
if (B) {
|
|
3026
3026
|
if (!(p != null && p[1]) && (B == null ? void 0 : B.comp) === "Table") {
|
|
3027
3027
|
let _ = {};
|
|
3028
3028
|
for (let c in l(s))
|
|
3029
3029
|
l(s)[c] !== "loginUser" ? _[c] = l(s)[c] : _[c] = (J = X.value) == null ? void 0 : J.account;
|
|
3030
|
-
await
|
|
3030
|
+
await Ya({
|
|
3031
3031
|
key: {
|
|
3032
3032
|
type: "data",
|
|
3033
3033
|
pageKey: o,
|
|
@@ -3043,11 +3043,11 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
3043
3043
|
_.compData = (j = (Y = l(_)) == null ? void 0 : Y.compData) == null ? void 0 : j.map((Q) => {
|
|
3044
3044
|
var le, r;
|
|
3045
3045
|
return (Q == null ? void 0 : Q.key) === "formContent" && (Q.contents = (r = (le = l(Q)) == null ? void 0 : le.contents) == null ? void 0 : r.map((k) => {
|
|
3046
|
-
var S;
|
|
3047
|
-
return k.value = (
|
|
3046
|
+
var S, ie, ne, m;
|
|
3047
|
+
return (S = l(s)) != null && S[k == null ? void 0 : k.key] && (typeof ((ie = l(s)) == null ? void 0 : ie[k == null ? void 0 : k.key]) == "string" || typeof ((ne = l(s)) == null ? void 0 : ne[k == null ? void 0 : k.key]) == "number") && (k.value = (m = l(s)) == null ? void 0 : m[k == null ? void 0 : k.key]), k;
|
|
3048
3048
|
})), Q;
|
|
3049
3049
|
});
|
|
3050
|
-
const c = await
|
|
3050
|
+
const c = await Wl({
|
|
3051
3051
|
key: {
|
|
3052
3052
|
type: "structure",
|
|
3053
3053
|
pageKey: o,
|
|
@@ -3055,10 +3055,10 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
3055
3055
|
}
|
|
3056
3056
|
});
|
|
3057
3057
|
let $ = "";
|
|
3058
|
-
((G = c == null ? void 0 : c.data) == null ? void 0 : G.type) === "success" && ((
|
|
3058
|
+
((G = c == null ? void 0 : c.data) == null ? void 0 : G.type) === "success" && ((I = (n = c == null ? void 0 : c.data) == null ? void 0 : n.result) == null || I.forEach((Q) => {
|
|
3059
3059
|
var le, r;
|
|
3060
3060
|
((r = (le = Q == null ? void 0 : Q.value) == null ? void 0 : le.pageData) == null ? void 0 : r.name) === (p == null ? void 0 : p[0]) && ($ = Q.id);
|
|
3061
|
-
}), await
|
|
3061
|
+
}), await Za({
|
|
3062
3062
|
id: $,
|
|
3063
3063
|
value: {
|
|
3064
3064
|
pageData: _
|
|
@@ -3067,23 +3067,23 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
3067
3067
|
}
|
|
3068
3068
|
}
|
|
3069
3069
|
}, M = async (s) => {
|
|
3070
|
-
var p,
|
|
3070
|
+
var p, A, B, J, Y, j, G, n, I, _, c, $, Q, le, r, k, S, ie;
|
|
3071
3071
|
let o = {};
|
|
3072
3072
|
if (E.value !== "browser") {
|
|
3073
|
-
const
|
|
3073
|
+
const ne = [];
|
|
3074
3074
|
o.form = {}, (p = l(s.content)) == null || p.forEach((y, O) => {
|
|
3075
|
-
var W,
|
|
3075
|
+
var W, ue, ee, fe, V, ye, be, De, Ee, te, e, u, b, d;
|
|
3076
3076
|
if ((y == null ? void 0 : y.comp) === "Table") {
|
|
3077
|
-
(
|
|
3077
|
+
(ue = (W = y == null ? void 0 : y.compData) == null ? void 0 : W.find((F) => (F == null ? void 0 : F.key) === "header")) == null || ue.contents;
|
|
3078
3078
|
let x = (V = (fe = (ee = y == null ? void 0 : y.compData) == null ? void 0 : ee.find((F) => (F == null ? void 0 : F.key) === "tableContents")) == null ? void 0 : fe.contents) == null ? void 0 : V.map((F) => F.slice(1));
|
|
3079
|
-
(te = (
|
|
3079
|
+
(te = (Ee = (De = (be = (ye = y == null ? void 0 : y.compData) == null ? void 0 : ye.find((F) => (F == null ? void 0 : F.key) === "header")) == null ? void 0 : be.contents) == null ? void 0 : De[0]) == null ? void 0 : Ee[0]) == null || te.label;
|
|
3080
3080
|
let N = (u = (e = y == null ? void 0 : y.compData) == null ? void 0 : e.find((F) => (F == null ? void 0 : F.key) === "header")) == null ? void 0 : u.contents, pe = [];
|
|
3081
3081
|
x == null || x.forEach((F) => {
|
|
3082
3082
|
let ce = [];
|
|
3083
3083
|
F == null || F.forEach((ge, ke) => {
|
|
3084
|
-
var
|
|
3085
|
-
let
|
|
3086
|
-
((
|
|
3084
|
+
var he;
|
|
3085
|
+
let Ae = {};
|
|
3086
|
+
((he = N[ke]) == null ? void 0 : he.label) !== "操作" && (Ae[N[ke].label] = ge, ce.push(Ae));
|
|
3087
3087
|
}), pe.push(ce);
|
|
3088
3088
|
}), o[y.name] = pe;
|
|
3089
3089
|
} else {
|
|
@@ -3092,17 +3092,17 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
3092
3092
|
N.key !== "" && (N = {
|
|
3093
3093
|
key: (N == null ? void 0 : N.key) ?? (N == null ? void 0 : N.label),
|
|
3094
3094
|
value: N == null ? void 0 : N.value
|
|
3095
|
-
},
|
|
3095
|
+
}, ne.push(N));
|
|
3096
3096
|
});
|
|
3097
3097
|
}
|
|
3098
|
-
}), o.form =
|
|
3098
|
+
}), o.form = ja(ne);
|
|
3099
3099
|
let m = o.form;
|
|
3100
3100
|
for (let y in o)
|
|
3101
|
-
y !== "form" && (m[y] =
|
|
3101
|
+
y !== "form" && (m[y] = Ua(o[y]));
|
|
3102
3102
|
if (s.api) {
|
|
3103
3103
|
try {
|
|
3104
|
-
|
|
3105
|
-
const y = await
|
|
3104
|
+
h.value = !0;
|
|
3105
|
+
const y = await Ml.post(
|
|
3106
3106
|
s.api,
|
|
3107
3107
|
m,
|
|
3108
3108
|
{
|
|
@@ -3111,27 +3111,27 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
3111
3111
|
}
|
|
3112
3112
|
}
|
|
3113
3113
|
);
|
|
3114
|
-
if (((
|
|
3114
|
+
if (((A = y == null ? void 0 : y.data) == null ? void 0 : A.code) === 200 || ((B = y == null ? void 0 : y.data) == null ? void 0 : B.statusCode) === 200) {
|
|
3115
3115
|
let O = await ((J = y == null ? void 0 : y.data) == null ? void 0 : J.data);
|
|
3116
|
-
const W = (Y = l(C.value)) == null ? void 0 : Y.filter((V) => (V == null ? void 0 : V.comp) !== "methodButton"),
|
|
3116
|
+
const W = (Y = l(C.value)) == null ? void 0 : Y.filter((V) => (V == null ? void 0 : V.comp) !== "methodButton"), ue = await Promise.all(
|
|
3117
3117
|
W.map((V) => Z(V, O))
|
|
3118
3118
|
);
|
|
3119
|
-
await Promise.all(
|
|
3119
|
+
await Promise.all(ue);
|
|
3120
3120
|
const ee = (j = l(C.value)) == null ? void 0 : j.filter((V) => (V == null ? void 0 : V.comp) === "methodButton");
|
|
3121
|
-
let fe = [...
|
|
3122
|
-
await
|
|
3121
|
+
let fe = [...ue, ...ee];
|
|
3122
|
+
await Wa(fe), h.value = !1;
|
|
3123
3123
|
} else
|
|
3124
|
-
|
|
3124
|
+
el.error("方法调用失败:" + ((G = y == null ? void 0 : y.data) == null ? void 0 : G.errors)), h.value = !1;
|
|
3125
3125
|
} catch {
|
|
3126
|
-
|
|
3126
|
+
el.error("方法调用失败"), h.value = !1;
|
|
3127
3127
|
}
|
|
3128
3128
|
a.setFreshContent(!0);
|
|
3129
3129
|
}
|
|
3130
3130
|
} else if (s.api) {
|
|
3131
|
-
let
|
|
3132
|
-
(
|
|
3131
|
+
let ne = await bl(U.value, sessionStorage.getItem("systemKey"), ""), m = {};
|
|
3132
|
+
(I = (n = s == null ? void 0 : s.extraValues) == null ? void 0 : n.input) == null || I.forEach((fe) => {
|
|
3133
3133
|
var V;
|
|
3134
|
-
m[Object.keys(fe)[0]] =
|
|
3134
|
+
m[Object.keys(fe)[0]] = oe((V = Object.values(fe)) == null ? void 0 : V[0], ne);
|
|
3135
3135
|
});
|
|
3136
3136
|
let y = !1;
|
|
3137
3137
|
(c = (_ = s == null ? void 0 : s.extraValues) == null ? void 0 : _.output) == null || c.forEach((fe) => {
|
|
@@ -3139,95 +3139,97 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
3139
3139
|
(ye = (V = Object.values(fe)) == null ? void 0 : V[0]) != null && ye.includes(".doc") && (y = !0);
|
|
3140
3140
|
});
|
|
3141
3141
|
let O;
|
|
3142
|
-
y ? O = await
|
|
3142
|
+
y ? O = await Ml.post(s.api, m, {
|
|
3143
3143
|
responseType: "blob",
|
|
3144
3144
|
// 必须设置
|
|
3145
3145
|
headers: {
|
|
3146
3146
|
"Content-Type": "application/json"
|
|
3147
3147
|
}
|
|
3148
|
-
}) : O = await
|
|
3148
|
+
}) : O = await Ml.post(s.api, m, {
|
|
3149
3149
|
headers: {
|
|
3150
3150
|
"Content-Type": "application/json"
|
|
3151
3151
|
}
|
|
3152
3152
|
});
|
|
3153
3153
|
let W = (r = (le = (Q = ($ = l(s)) == null ? void 0 : $.extraValues) == null ? void 0 : Q.output) == null ? void 0 : le.map((fe) => {
|
|
3154
|
-
var V, ye, be, De,
|
|
3154
|
+
var V, ye, be, De, Ee, te, e, u, b, d, x, N, pe, F, ce;
|
|
3155
3155
|
if (!((ye = (V = Object.values(fe)) == null ? void 0 : V[0]) != null && ye.includes(".doc"))) {
|
|
3156
|
-
let ge = (d = (b = (u = (De = l((be = Object.values(fe)) == null ? void 0 : be[0])) == null ? void 0 : De.split("[")) == null ? void 0 : u[((e = (te = l((
|
|
3156
|
+
let ge = (d = (b = (u = (De = l((be = Object.values(fe)) == null ? void 0 : be[0])) == null ? void 0 : De.split("[")) == null ? void 0 : u[((e = (te = l((Ee = Object.values(fe)) == null ? void 0 : Ee[0])) == null ? void 0 : te.split("[")) == null ? void 0 : e.length) - 1]) == null ? void 0 : b.split("]")) == null ? void 0 : d[0];
|
|
3157
3157
|
ge == null || ge.split(":");
|
|
3158
3158
|
let ke = l((x = Object.values(fe)) == null ? void 0 : x[0]).substring(0, l((N = Object.values(fe)) == null ? void 0 : N[0]).lastIndexOf("["));
|
|
3159
3159
|
if (ke = (F = l(ke)) == null ? void 0 : F.slice(0, ((pe = l(ke)) == null ? void 0 : pe.length) - 1), ke != null && ke.includes("[")) {
|
|
3160
|
-
let
|
|
3161
|
-
if ((ce =
|
|
3162
|
-
var ae, we,
|
|
3163
|
-
if (!(
|
|
3164
|
-
|
|
3160
|
+
let Ae = "";
|
|
3161
|
+
if ((ce = Yl(ke, "/")) == null || ce.forEach((he) => {
|
|
3162
|
+
var ae, we, ve, $e, ze, Me, R;
|
|
3163
|
+
if (!(he != null && he.includes("[")))
|
|
3164
|
+
Ae = Ae === "" ? Ae + he.replaceAll("/", "") : Ae + "/" + he.replaceAll("/", "");
|
|
3165
3165
|
else {
|
|
3166
|
-
let
|
|
3167
|
-
|
|
3168
|
-
var
|
|
3169
|
-
(Ue == null ? void 0 : Ue.key) === "formContent" && ((
|
|
3170
|
-
(He == null ? void 0 : He.key) === (Be == null ? void 0 : Be[1]) && (
|
|
3166
|
+
let Re = l(he).slice(1, ((ae = l(he)) == null ? void 0 : ae.length) - 1), Be = (Me = (ze = ($e = (ve = (we = l(Re)) == null ? void 0 : we.split("[")) == null ? void 0 : ve[1]) == null ? void 0 : $e.split("]")) == null ? void 0 : ze[0]) == null ? void 0 : Me.split(":"), ol = "", ul = (R = ne == null ? void 0 : ne.find((Ue) => (Ue == null ? void 0 : Ue.name) === (Be == null ? void 0 : Be[0]))) == null ? void 0 : R.compData;
|
|
3167
|
+
ul == null || ul.forEach((Ue) => {
|
|
3168
|
+
var dl;
|
|
3169
|
+
(Ue == null ? void 0 : Ue.key) === "formContent" && ((dl = Ue == null ? void 0 : Ue.contents) == null || dl.forEach((He) => {
|
|
3170
|
+
(He == null ? void 0 : He.key) === (Be == null ? void 0 : Be[1]) && (ol = He == null ? void 0 : He.value);
|
|
3171
3171
|
}));
|
|
3172
|
-
}),
|
|
3172
|
+
}), Ae = Ae === "" ? Ae + ol.replaceAll("/", "") : Ae + "/" + ol.replaceAll("/", "");
|
|
3173
3173
|
}
|
|
3174
|
-
}), ke =
|
|
3174
|
+
}), ke = Ae, ke[(ke == null ? void 0 : ke.length) - 1] !== "/")
|
|
3175
3175
|
return ke;
|
|
3176
3176
|
}
|
|
3177
3177
|
}
|
|
3178
3178
|
})) == null ? void 0 : r.filter((fe) => fe);
|
|
3179
3179
|
W = [...new Set(l(W))];
|
|
3180
|
-
let
|
|
3180
|
+
let ue = W == null ? void 0 : W.map(async (fe) => {
|
|
3181
3181
|
let V = await bl(fe, sessionStorage.getItem("systemKey"), "");
|
|
3182
3182
|
if ((V == null ? void 0 : V.length) === 0)
|
|
3183
|
-
return await
|
|
3183
|
+
return await za(fe);
|
|
3184
3184
|
});
|
|
3185
|
-
await Promise.all(
|
|
3185
|
+
await Promise.all(ue);
|
|
3186
3186
|
let ee = (ie = (S = (k = l(s)) == null ? void 0 : k.extraValues) == null ? void 0 : S.output) == null ? void 0 : ie.map(async (fe) => {
|
|
3187
|
-
var b, d, x, N, pe, F, ce, ge, ke,
|
|
3187
|
+
var b, d, x, N, pe, F, ce, ge, ke, Ae, he, ae, we, ve, $e, ze, Me, R, Re, Be, ol, ul, Ue, dl, He, kl, _l, Cl, qe, Ke, wl, Dl, Al, Il, xl, El, $l, Bl, Tl, Sl, Fl, Ol, Ll, Rl, Pl, fl, ia, na, oa, ua, ra, ca, ta, da, pa, fa, ha, va, ma, ya;
|
|
3188
3188
|
if ((d = (b = Object.values(fe)) == null ? void 0 : b[0]) != null && d.includes(".doc")) {
|
|
3189
3189
|
var V = new Blob([O.data], {
|
|
3190
3190
|
type: "application/octet-stream;charset=UTF-8"
|
|
3191
|
-
}), ye = O.headers["content-disposition"], be = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), De = be.exec(ye),
|
|
3192
|
-
te.style.display = "none", te.href = e, te.download = decodeURI(
|
|
3191
|
+
}), ye = O.headers["content-disposition"], be = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), De = be.exec(ye), Ee = ((pe = (N = (x = s == null ? void 0 : s.extraContent) == null ? void 0 : x[0]) == null ? void 0 : N.split(".")) == null ? void 0 : pe[0]) + "." + ((F = De == null ? void 0 : De[1].split(".")) == null ? void 0 : F[1]), te = document.createElement("a"), e = window.URL.createObjectURL(V), u = /^["](.*)["]$/g;
|
|
3192
|
+
te.style.display = "none", te.href = e, te.download = decodeURI(Ee.replace(u, "$1")), document.body.appendChild(te), te.click(), document.body.removeChild(te), window.URL.revokeObjectURL(e);
|
|
3193
3193
|
} else {
|
|
3194
|
-
let
|
|
3195
|
-
if (
|
|
3196
|
-
let
|
|
3197
|
-
(
|
|
3198
|
-
var
|
|
3199
|
-
if (!(
|
|
3200
|
-
|
|
3194
|
+
let Gl = (ve = (we = (ae = (ge = l((ce = Object.values(fe)) == null ? void 0 : ce[0])) == null ? void 0 : ge.split("[")) == null ? void 0 : ae[((he = (Ae = l((ke = Object.values(fe)) == null ? void 0 : ke[0])) == null ? void 0 : Ae.split("[")) == null ? void 0 : he.length) - 1]) == null ? void 0 : we.split("]")) == null ? void 0 : ve[0], Ie = Gl == null ? void 0 : Gl.split(":"), Ze = l(($e = Object.values(fe)) == null ? void 0 : $e[0]).substring(0, l((ze = Object.values(fe)) == null ? void 0 : ze[0]).lastIndexOf("["));
|
|
3195
|
+
if (Ze.includes("[") && (Ze = (R = l(Ze)) == null ? void 0 : R.slice(0, ((Me = l(Ze)) == null ? void 0 : Me.length) - 1)), Ze != null && Ze.includes("[")) {
|
|
3196
|
+
let Oe = "";
|
|
3197
|
+
(Re = Yl(Ze, "/")) == null || Re.forEach((Pe) => {
|
|
3198
|
+
var Vl, Ge, Qe, pl, Nl, ba, ga;
|
|
3199
|
+
if (!(Pe != null && Pe.includes("[")))
|
|
3200
|
+
Oe = Oe === "" ? Oe + Pe.replaceAll("/", "") : Oe + "/" + Pe.replaceAll("/", "");
|
|
3201
3201
|
else {
|
|
3202
|
-
let
|
|
3203
|
-
|
|
3204
|
-
var
|
|
3205
|
-
(
|
|
3206
|
-
(yl == null ? void 0 : yl.key) === (ml == null ? void 0 : ml[1]) && (
|
|
3202
|
+
let Pa = l(Pe).slice(1, ((Vl = l(Pe)) == null ? void 0 : Vl.length) - 1), ml = (ba = (Nl = (pl = (Qe = (Ge = l(Pa)) == null ? void 0 : Ge.split("[")) == null ? void 0 : Qe[1]) == null ? void 0 : pl.split("]")) == null ? void 0 : Nl[0]) == null ? void 0 : ba.split(":"), Hl = "", ql = (ga = ne == null ? void 0 : ne.find((ll) => (ll == null ? void 0 : ll.name) === (ml == null ? void 0 : ml[0]))) == null ? void 0 : ga.compData;
|
|
3203
|
+
ql == null || ql.forEach((ll) => {
|
|
3204
|
+
var ka;
|
|
3205
|
+
(ll == null ? void 0 : ll.key) === "formContent" && ((ka = ll == null ? void 0 : ll.contents) == null || ka.forEach((yl) => {
|
|
3206
|
+
(yl == null ? void 0 : yl.key) === (ml == null ? void 0 : ml[1]) && (Hl = yl == null ? void 0 : yl.value);
|
|
3207
3207
|
}));
|
|
3208
|
-
}),
|
|
3208
|
+
}), Oe = Oe === "" ? Oe + Hl.replaceAll("/", "") : Oe + "/" + Hl.replaceAll("/", "");
|
|
3209
3209
|
}
|
|
3210
|
-
}),
|
|
3210
|
+
}), Ze = Oe;
|
|
3211
3211
|
}
|
|
3212
3212
|
if (((Be = O == null ? void 0 : O.data) == null ? void 0 : Be.statusCode) === 200) {
|
|
3213
|
-
if ((
|
|
3214
|
-
return await
|
|
3215
|
-
if ((kl = (He = O == null ? void 0 : O.data) == null ? void 0 : He.data) != null && kl[
|
|
3216
|
-
return await w((Cl = (_l = O == null ? void 0 : O.data) == null ? void 0 : _l.data) == null ? void 0 : Cl[
|
|
3217
|
-
if ((
|
|
3218
|
-
const
|
|
3219
|
-
let
|
|
3220
|
-
|
|
3221
|
-
var
|
|
3222
|
-
|
|
3223
|
-
})
|
|
3213
|
+
if ((ul = (ol = O == null ? void 0 : O.data) == null ? void 0 : ol.data) != null && ul[Ie == null ? void 0 : Ie[0]] && (Ie == null ? void 0 : Ie.length) === 1)
|
|
3214
|
+
return await v((dl = (Ue = O == null ? void 0 : O.data) == null ? void 0 : Ue.data) == null ? void 0 : dl[Ie == null ? void 0 : Ie[0]], Ze, Ie);
|
|
3215
|
+
if ((kl = (He = O == null ? void 0 : O.data) == null ? void 0 : He.data) != null && kl[Ie == null ? void 0 : Ie[0]])
|
|
3216
|
+
return await w((Cl = (_l = O == null ? void 0 : O.data) == null ? void 0 : _l.data) == null ? void 0 : Cl[Ie == null ? void 0 : Ie[0]], Ze, Ie);
|
|
3217
|
+
if ((Ie == null ? void 0 : Ie.length) === 1) {
|
|
3218
|
+
const Oe = (wl = (Ke = (qe = O == null ? void 0 : O.data) == null ? void 0 : qe.data) == null ? void 0 : Ke.path) == null ? void 0 : wl.path;
|
|
3219
|
+
let Pe = "";
|
|
3220
|
+
(El = (xl = (Il = (Al = (Dl = Oe == null ? void 0 : Oe.split("(")) == null ? void 0 : Dl[1]) == null ? void 0 : Al.split(")")) == null ? void 0 : Il[0]) == null ? void 0 : xl.split(":")) == null || El.forEach((Qe) => {
|
|
3221
|
+
var pl, Nl;
|
|
3222
|
+
Pe = Pe === "" ? Pe + ((pl = Qe == null ? void 0 : Qe.replaceAll("'", "")) == null ? void 0 : pl.trim()) : Pe + "/" + ((Nl = Qe == null ? void 0 : Qe.replaceAll("'", "")) == null ? void 0 : Nl.trim());
|
|
3223
|
+
});
|
|
3224
|
+
let Vl = [(Fl = (Sl = (Tl = (Bl = ($l = Oe == null ? void 0 : Oe.split("<")) == null ? void 0 : $l[1]) == null ? void 0 : Bl.split(">")) == null ? void 0 : Tl[0]) == null ? void 0 : Sl.replaceAll("'", "")) == null ? void 0 : Fl.trim()], Ge;
|
|
3225
|
+
return (Rl = (Ll = (Ol = O == null ? void 0 : O.data) == null ? void 0 : Ol.data) == null ? void 0 : Ll.data) != null && Rl[Ie == null ? void 0 : Ie[0]] ? Ge = await v((ia = (fl = (Pl = O == null ? void 0 : O.data) == null ? void 0 : Pl.data) == null ? void 0 : fl.data) == null ? void 0 : ia[Ie == null ? void 0 : Ie[0]], Pe, Ie) : Ge = await v((oa = (na = O == null ? void 0 : O.data) == null ? void 0 : na.data) == null ? void 0 : oa.data, Pe, Vl), Ge;
|
|
3224
3226
|
} else {
|
|
3225
|
-
const
|
|
3226
|
-
let
|
|
3227
|
-
return (
|
|
3228
|
-
var
|
|
3229
|
-
|
|
3230
|
-
}), await w((
|
|
3227
|
+
const Oe = (ca = (ra = (ua = O == null ? void 0 : O.data) == null ? void 0 : ua.data) == null ? void 0 : ra.path) == null ? void 0 : ca.path;
|
|
3228
|
+
let Pe = "";
|
|
3229
|
+
return (ha = (fa = (pa = (da = (ta = Oe == null ? void 0 : Oe.split("(")) == null ? void 0 : ta[1]) == null ? void 0 : da.split(")")) == null ? void 0 : pa[0]) == null ? void 0 : fa.split(":")) == null || ha.forEach((Ge) => {
|
|
3230
|
+
var Qe, pl;
|
|
3231
|
+
Pe = Pe === "" ? Pe + ((Qe = Ge == null ? void 0 : Ge.replaceAll("'", "")) == null ? void 0 : Qe.trim()) : Pe + "/" + ((pl = Ge == null ? void 0 : Ge.replaceAll("'", "")) == null ? void 0 : pl.trim());
|
|
3232
|
+
}), await w((ya = (ma = (va = O == null ? void 0 : O.data) == null ? void 0 : va.data) == null ? void 0 : ma.data) == null ? void 0 : ya[Ie == null ? void 0 : Ie[0]], Pe, Ie);
|
|
3231
3233
|
}
|
|
3232
3234
|
}
|
|
3233
3235
|
}
|
|
@@ -3240,8 +3242,8 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
3240
3242
|
const o = l(s);
|
|
3241
3243
|
let p;
|
|
3242
3244
|
s != null && s[0].path && (p = await (o == null ? void 0 : o.map(async (G, n) => {
|
|
3243
|
-
var Q, le, r, k, S, ie,
|
|
3244
|
-
const _ = (await
|
|
3245
|
+
var Q, le, r, k, S, ie, ne, m, y, O;
|
|
3246
|
+
const _ = (await Wl({
|
|
3245
3247
|
key: {
|
|
3246
3248
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
3247
3249
|
type: "data",
|
|
@@ -3251,46 +3253,46 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
3251
3253
|
let c = "";
|
|
3252
3254
|
const $ = await bl(U.value, sessionStorage.getItem("systemKey"), "");
|
|
3253
3255
|
return _ == null || _.forEach((W) => {
|
|
3254
|
-
var
|
|
3255
|
-
((ee = (
|
|
3256
|
+
var ue, ee, fe, V, ye;
|
|
3257
|
+
((ee = (ue = W == null ? void 0 : W.value) == null ? void 0 : ue.tableData) == null ? void 0 : ee.算法名称) === ((fe = o == null ? void 0 : o[n]) == null ? void 0 : fe.method) && (c = (ye = (V = W == null ? void 0 : W.value) == null ? void 0 : V.tableData) == null ? void 0 : ye.算法体);
|
|
3256
3258
|
}), {
|
|
3257
3259
|
buttonName: ((le = o == null ? void 0 : o[n]) == null ? void 0 : le.method) ?? ((S = (k = (r = _ == null ? void 0 : _[0]) == null ? void 0 : r.value) == null ? void 0 : k.tableData) == null ? void 0 : S.算法名称),
|
|
3258
|
-
api: c === "" ? (m = (
|
|
3260
|
+
api: c === "" ? (m = (ne = (ie = _ == null ? void 0 : _[0]) == null ? void 0 : ie.value) == null ? void 0 : ne.tableData) == null ? void 0 : m.算法体 : c,
|
|
3259
3261
|
content: $ == null ? void 0 : $.filter((W) => W.comp !== "methodButton"),
|
|
3260
3262
|
extraContent: (y = l(G.value)) == null ? void 0 : y.slice(1),
|
|
3261
3263
|
methodName: (G == null ? void 0 : G.path) ?? "",
|
|
3262
3264
|
extraValues: (O = o == null ? void 0 : o[n]) == null ? void 0 : O.data
|
|
3263
3265
|
};
|
|
3264
3266
|
})));
|
|
3265
|
-
const
|
|
3267
|
+
const A = o == null ? void 0 : o.map(async (G) => {
|
|
3266
3268
|
var Q, le, r, k, S, ie;
|
|
3267
|
-
const
|
|
3269
|
+
const I = (Q = (await Wl({
|
|
3268
3270
|
key: {
|
|
3269
3271
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
3270
3272
|
parentTable: "",
|
|
3271
3273
|
type: "method",
|
|
3272
3274
|
methodName: G.method
|
|
3273
3275
|
}
|
|
3274
|
-
})).data.result) == null ? void 0 : Q[0], _ = await
|
|
3276
|
+
})).data.result) == null ? void 0 : Q[0], _ = await Wl({
|
|
3275
3277
|
key: {
|
|
3276
3278
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
3277
3279
|
type: "methodData",
|
|
3278
|
-
tableId:
|
|
3280
|
+
tableId: I == null ? void 0 : I.id
|
|
3279
3281
|
}
|
|
3280
3282
|
}), c = await bl(U.value, sessionStorage.getItem("systemKey"), ""), $ = (le = _.data.result) == null ? void 0 : le[0];
|
|
3281
3283
|
return {
|
|
3282
|
-
buttonName: (r =
|
|
3284
|
+
buttonName: (r = I == null ? void 0 : I.key) == null ? void 0 : r.methodKey,
|
|
3283
3285
|
api: (S = (k = $ == null ? void 0 : $.value) == null ? void 0 : k.tableData) == null ? void 0 : S[0],
|
|
3284
|
-
content: c == null ? void 0 : c.filter((
|
|
3286
|
+
content: c == null ? void 0 : c.filter((ne) => ne.comp !== "methodButton"),
|
|
3285
3287
|
extraContent: (ie = l(G.value)) == null ? void 0 : ie.slice(1),
|
|
3286
3288
|
methodName: (G == null ? void 0 : G.method) ?? ""
|
|
3287
3289
|
};
|
|
3288
|
-
}), B = (J = s == null ? void 0 : s[0]) != null && J.path && ((Y = s == null ? void 0 : s[0]) == null ? void 0 : Y.path) !== "" ? await Promise.all(p) : await Promise.all(
|
|
3290
|
+
}), B = (J = s == null ? void 0 : s[0]) != null && J.path && ((Y = s == null ? void 0 : s[0]) == null ? void 0 : Y.path) !== "" ? await Promise.all(p) : await Promise.all(A);
|
|
3289
3291
|
g.value = B == null ? void 0 : B.filter((G) => G == null ? void 0 : G.extraContent), (j = g.value) == null || j.forEach((G) => {
|
|
3290
3292
|
var n;
|
|
3291
|
-
G.api === "" && ((n = G.content) == null || n.forEach((
|
|
3293
|
+
G.api === "" && ((n = G.content) == null || n.forEach((I) => {
|
|
3292
3294
|
var _;
|
|
3293
|
-
|
|
3295
|
+
I.comp == "Table" && a.setExtraContents(Na(I.compData, (_ = G.extraContent) == null ? void 0 : _[0]));
|
|
3294
3296
|
}));
|
|
3295
3297
|
});
|
|
3296
3298
|
};
|
|
@@ -3300,23 +3302,23 @@ const zi = (f) => /^'[^']+':\{.*\}$/.exec(l(f)), Mi = (f) => /^'([^']+)':.*$/.ex
|
|
|
3300
3302
|
L.value == "view" && !H.value && await t(l(i.itemData)), H.value = !1;
|
|
3301
3303
|
},
|
|
3302
3304
|
{ immediate: !0, deep: !0 }
|
|
3303
|
-
), (s, o) => (q(), de("div",
|
|
3304
|
-
(q(!0), de(Se, null,
|
|
3305
|
-
p.api !== "" ? (q(), Fe(
|
|
3305
|
+
), (s, o) => (q(), de("div", on, [
|
|
3306
|
+
(q(!0), de(Se, null, Le(g.value, (p) => (q(), de("div", null, [
|
|
3307
|
+
p.api !== "" ? (q(), Fe(Ia(as), {
|
|
3306
3308
|
key: 0,
|
|
3307
3309
|
class: "calculator-content",
|
|
3308
3310
|
modelValue: p.buttonName,
|
|
3309
|
-
onClickTrigger: (
|
|
3310
|
-
loading:
|
|
3311
|
-
}, null, 8, ["modelValue", "onClickTrigger", "loading"])) :
|
|
3311
|
+
onClickTrigger: (A) => M(p),
|
|
3312
|
+
loading: h.value
|
|
3313
|
+
}, null, 8, ["modelValue", "onClickTrigger", "loading"])) : Xe("", !0)
|
|
3312
3314
|
]))), 256))
|
|
3313
3315
|
]));
|
|
3314
3316
|
}
|
|
3315
|
-
},
|
|
3316
|
-
function
|
|
3317
|
+
}, rn = /* @__PURE__ */ Ve(un, [["__scopeId", "data-v-dab54e95"]]), cn = {};
|
|
3318
|
+
function tn(f, g) {
|
|
3317
3319
|
return " 567 ";
|
|
3318
3320
|
}
|
|
3319
|
-
const
|
|
3321
|
+
const dn = /* @__PURE__ */ Ve(cn, [["render", tn]]), pn = { class: "module content" }, fn = { class: "module data" }, hn = { class: "module layout" }, vn = { class: "form-content" }, mn = /* @__PURE__ */ vl({
|
|
3320
3322
|
__name: "operate",
|
|
3321
3323
|
props: {
|
|
3322
3324
|
itemContents: {
|
|
@@ -3330,7 +3332,7 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3330
3332
|
},
|
|
3331
3333
|
emits: ["change"],
|
|
3332
3334
|
setup(f, { emit: g }) {
|
|
3333
|
-
const i = f, a = g,
|
|
3335
|
+
const i = f, a = g, h = la({
|
|
3334
3336
|
visible: !1,
|
|
3335
3337
|
width: "40%",
|
|
3336
3338
|
title: "签名配置"
|
|
@@ -3386,7 +3388,7 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3386
3388
|
value: "",
|
|
3387
3389
|
isFormColHidden: !0
|
|
3388
3390
|
}
|
|
3389
|
-
]), L =
|
|
3391
|
+
]), L = aa(() => [
|
|
3390
3392
|
{
|
|
3391
3393
|
label: "",
|
|
3392
3394
|
prop: "index",
|
|
@@ -3449,56 +3451,56 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3449
3451
|
}
|
|
3450
3452
|
]
|
|
3451
3453
|
}), H = (w) => {
|
|
3452
|
-
var
|
|
3453
|
-
U.value = l(w), a("change", (
|
|
3454
|
-
},
|
|
3455
|
-
var
|
|
3454
|
+
var v;
|
|
3455
|
+
U.value = l(w), a("change", (v = X()) == null ? void 0 : v.compData);
|
|
3456
|
+
}, re = (w) => {
|
|
3457
|
+
var v, M;
|
|
3456
3458
|
if ((w == null ? void 0 : w.buttonName) === "确认") {
|
|
3457
3459
|
const t = l(w == null ? void 0 : w.content);
|
|
3458
3460
|
switch (T.value) {
|
|
3459
3461
|
case "create":
|
|
3460
3462
|
E.value.push({
|
|
3461
3463
|
...t,
|
|
3462
|
-
index: ((
|
|
3464
|
+
index: ((v = E.value) == null ? void 0 : v.length) + 1
|
|
3463
3465
|
});
|
|
3464
3466
|
break;
|
|
3465
3467
|
}
|
|
3466
|
-
a("change", (M = X()) == null ? void 0 : M.compData),
|
|
3468
|
+
a("change", (M = X()) == null ? void 0 : M.compData), h.visible = !1;
|
|
3467
3469
|
} else
|
|
3468
|
-
|
|
3469
|
-
}, Z = (w,
|
|
3470
|
+
h.visible = !1;
|
|
3471
|
+
}, Z = (w, v) => {
|
|
3470
3472
|
var M, t;
|
|
3471
3473
|
switch (w) {
|
|
3472
3474
|
case "create":
|
|
3473
3475
|
(M = L.value) == null || M.forEach((s) => {
|
|
3474
3476
|
s.value = "";
|
|
3475
|
-
}), T.value = "create",
|
|
3477
|
+
}), T.value = "create", h.visible = !0;
|
|
3476
3478
|
break;
|
|
3477
3479
|
case "update":
|
|
3478
3480
|
(t = L.value) == null || t.forEach((s) => {
|
|
3479
|
-
s.value =
|
|
3480
|
-
}), T.value = "update",
|
|
3481
|
+
s.value = v[s == null ? void 0 : s.prop];
|
|
3482
|
+
}), T.value = "update", h.visible = !0;
|
|
3481
3483
|
break;
|
|
3482
3484
|
case "delete":
|
|
3483
|
-
E.value.splice(
|
|
3485
|
+
E.value.splice(v, 1), T.value = "delete";
|
|
3484
3486
|
break;
|
|
3485
3487
|
}
|
|
3486
|
-
},
|
|
3487
|
-
|
|
3488
|
+
}, oe = () => {
|
|
3489
|
+
h.visible = !1;
|
|
3488
3490
|
};
|
|
3489
3491
|
return je(() => i == null ? void 0 : i.itemContents, (w) => {
|
|
3490
|
-
var
|
|
3491
|
-
w && (U.value = ((
|
|
3492
|
-
}, { immediate: !0 }), (w,
|
|
3492
|
+
var v, M;
|
|
3493
|
+
w && (U.value = ((v = w == null ? void 0 : w.find((t) => t.key === "signConfig")) == null ? void 0 : v.contents) ?? {}, E.value = ((M = w == null ? void 0 : w.find((t) => t.key === "signTypeList")) == null ? void 0 : M.contents) ?? []);
|
|
3494
|
+
}, { immediate: !0 }), (w, v) => {
|
|
3493
3495
|
const M = Te("svg-icon"), t = Te("el-button");
|
|
3494
3496
|
return q(), de(Se, null, [
|
|
3495
3497
|
D("div", null, [
|
|
3496
|
-
D("div",
|
|
3497
|
-
|
|
3498
|
+
D("div", pn, [
|
|
3499
|
+
v[2] || (v[2] = D("h4", { class: "module-title" }, "签名类型", -1)),
|
|
3498
3500
|
K(t, {
|
|
3499
3501
|
class: "module-icon",
|
|
3500
3502
|
id: "themeButton",
|
|
3501
|
-
onClick:
|
|
3503
|
+
onClick: v[0] || (v[0] = (s) => Z("create"))
|
|
3502
3504
|
}, {
|
|
3503
3505
|
icon: se(() => [
|
|
3504
3506
|
K(M, {
|
|
@@ -3507,14 +3509,14 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3507
3509
|
})
|
|
3508
3510
|
]),
|
|
3509
3511
|
default: se(() => [
|
|
3510
|
-
|
|
3512
|
+
v[1] || (v[1] = xe(" 新增 "))
|
|
3511
3513
|
]),
|
|
3512
3514
|
_: 1,
|
|
3513
3515
|
__: [1]
|
|
3514
3516
|
})
|
|
3515
3517
|
]),
|
|
3516
|
-
D("div",
|
|
3517
|
-
(q(!0), de(Se, null,
|
|
3518
|
+
D("div", fn, [
|
|
3519
|
+
(q(!0), de(Se, null, Le(E.value, (s, o) => (q(), de("div", {
|
|
3518
3520
|
class: "module-data-item",
|
|
3519
3521
|
key: o
|
|
3520
3522
|
}, [
|
|
@@ -3525,8 +3527,8 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3525
3527
|
size: "small",
|
|
3526
3528
|
onClick: (p) => Z("update", { ...s, index: o + 1 })
|
|
3527
3529
|
}, {
|
|
3528
|
-
default: se(() =>
|
|
3529
|
-
|
|
3530
|
+
default: se(() => v[3] || (v[3] = [
|
|
3531
|
+
xe("修改")
|
|
3530
3532
|
])),
|
|
3531
3533
|
_: 2,
|
|
3532
3534
|
__: [3]
|
|
@@ -3536,8 +3538,8 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3536
3538
|
size: "small",
|
|
3537
3539
|
onClick: (p) => Z("delete", o)
|
|
3538
3540
|
}, {
|
|
3539
|
-
default: se(() =>
|
|
3540
|
-
|
|
3541
|
+
default: se(() => v[4] || (v[4] = [
|
|
3542
|
+
xe("删除")
|
|
3541
3543
|
])),
|
|
3542
3544
|
_: 2,
|
|
3543
3545
|
__: [4]
|
|
@@ -3545,29 +3547,29 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3545
3547
|
])
|
|
3546
3548
|
]))), 128))
|
|
3547
3549
|
]),
|
|
3548
|
-
D("div",
|
|
3549
|
-
K(
|
|
3550
|
+
D("div", hn, [
|
|
3551
|
+
K(We, {
|
|
3550
3552
|
rowContents: C.value,
|
|
3551
3553
|
onChange: H
|
|
3552
3554
|
}, null, 8, ["rowContents"])
|
|
3553
3555
|
])
|
|
3554
3556
|
]),
|
|
3555
|
-
K(
|
|
3556
|
-
visible:
|
|
3557
|
-
title:
|
|
3558
|
-
onBeforeDestroy:
|
|
3559
|
-
width:
|
|
3557
|
+
K(Je, {
|
|
3558
|
+
visible: h.visible,
|
|
3559
|
+
title: h.title,
|
|
3560
|
+
onBeforeDestroy: oe,
|
|
3561
|
+
width: h.width
|
|
3560
3562
|
}, {
|
|
3561
3563
|
default: se(() => [
|
|
3562
|
-
D("div",
|
|
3563
|
-
(q(), Fe(
|
|
3564
|
+
D("div", vn, [
|
|
3565
|
+
(q(), Fe(We, {
|
|
3564
3566
|
rowContents: L.value,
|
|
3565
3567
|
key: L.value,
|
|
3566
3568
|
isEnableWrap: !1,
|
|
3567
3569
|
isButtonRow: !1,
|
|
3568
3570
|
isStartJustify: !1,
|
|
3569
3571
|
buttonValue: P.value,
|
|
3570
|
-
onOnButtonClick:
|
|
3572
|
+
onOnButtonClick: re
|
|
3571
3573
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
3572
3574
|
])
|
|
3573
3575
|
]),
|
|
@@ -3576,7 +3578,7 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3576
3578
|
], 64);
|
|
3577
3579
|
};
|
|
3578
3580
|
}
|
|
3579
|
-
}),
|
|
3581
|
+
}), yn = /* @__PURE__ */ Ve(mn, [["__scopeId", "data-v-487e0536"]]), bn = /* @__PURE__ */ vl({
|
|
3580
3582
|
__name: "index",
|
|
3581
3583
|
props: {
|
|
3582
3584
|
stepConfig: {
|
|
@@ -3590,14 +3592,14 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3590
3592
|
},
|
|
3591
3593
|
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
3592
3594
|
setup(f, { emit: g }) {
|
|
3593
|
-
const i = f, a = g,
|
|
3595
|
+
const i = f, a = g, h = z(1), T = aa(() => {
|
|
3594
3596
|
var X, H;
|
|
3595
|
-
return (X = i == null ? void 0 : i.stepConfig) != null && X.allowTrigger ?
|
|
3597
|
+
return (X = i == null ? void 0 : i.stepConfig) != null && X.allowTrigger ? h.value : (H = i == null ? void 0 : i.stepConfig) == null ? void 0 : H.active;
|
|
3596
3598
|
}), P = (X, H) => {
|
|
3597
|
-
|
|
3598
|
-
}, C = (X) =>
|
|
3599
|
+
h.value = H, a("clickStep", X, H);
|
|
3600
|
+
}, C = (X) => ss(X), L = () => {
|
|
3599
3601
|
var H;
|
|
3600
|
-
const X = (H = i == null ? void 0 : i.stepList) == null ? void 0 : H.find((
|
|
3602
|
+
const X = (H = i == null ? void 0 : i.stepList) == null ? void 0 : H.find((re, Z) => Z + 1 === T.value);
|
|
3601
3603
|
return console.log("findStep", X), X ? X == null ? void 0 : X.children : [];
|
|
3602
3604
|
}, U = (X) => {
|
|
3603
3605
|
a("clickTrigger", X);
|
|
@@ -3605,29 +3607,29 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3605
3607
|
a("changeTrigger", X);
|
|
3606
3608
|
};
|
|
3607
3609
|
return (X, H) => {
|
|
3608
|
-
var
|
|
3609
|
-
const
|
|
3610
|
+
var oe, w, v, M, t;
|
|
3611
|
+
const re = Te("el-step"), Z = Te("el-steps");
|
|
3610
3612
|
return q(), de(Se, null, [
|
|
3611
3613
|
K(Z, {
|
|
3612
|
-
direction: (
|
|
3614
|
+
direction: (oe = f.stepConfig) == null ? void 0 : oe.direction,
|
|
3613
3615
|
active: T.value,
|
|
3614
3616
|
"finish-status": "success",
|
|
3615
3617
|
simple: (w = f.stepConfig) == null ? void 0 : w.simple,
|
|
3616
|
-
"align-center": ((
|
|
3618
|
+
"align-center": ((v = f.stepConfig) == null ? void 0 : v.alignCenter) ?? !0
|
|
3617
3619
|
}, {
|
|
3618
3620
|
default: se(() => [
|
|
3619
|
-
(q(!0), de(Se, null,
|
|
3621
|
+
(q(!0), de(Se, null, Le(f.stepList, (s, o) => (q(), Fe(re, {
|
|
3620
3622
|
key: o,
|
|
3621
3623
|
class: "step-item",
|
|
3622
3624
|
onClick: (p) => P(s, o + 1)
|
|
3623
3625
|
}, {
|
|
3624
3626
|
title: se(() => [
|
|
3625
|
-
|
|
3627
|
+
zl(X.$slots, "title", {
|
|
3626
3628
|
title: s == null ? void 0 : s.title
|
|
3627
3629
|
}, void 0, !0)
|
|
3628
3630
|
]),
|
|
3629
3631
|
description: se(() => [
|
|
3630
|
-
|
|
3632
|
+
zl(X.$slots, "description", {
|
|
3631
3633
|
description: s == null ? void 0 : s.description
|
|
3632
3634
|
}, void 0, !0)
|
|
3633
3635
|
]),
|
|
@@ -3636,29 +3638,29 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3636
3638
|
]),
|
|
3637
3639
|
_: 3
|
|
3638
3640
|
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
3639
|
-
(M = f.stepConfig) != null && M.allowTrigger && ((t = f.stepConfig) != null && t.active) ? (q(!0), de(Se, { key: 0 },
|
|
3641
|
+
(M = f.stepConfig) != null && M.allowTrigger && ((t = f.stepConfig) != null && t.active) ? (q(!0), de(Se, { key: 0 }, Le(L(), (s, o) => (q(), de("div", {
|
|
3640
3642
|
key: o,
|
|
3641
3643
|
class: "step-cont-wrap"
|
|
3642
3644
|
}, [
|
|
3643
|
-
(q(), Fe(
|
|
3645
|
+
(q(), Fe(Ul(C(s == null ? void 0 : s.type)), {
|
|
3644
3646
|
modelValue: s.value,
|
|
3645
3647
|
"onUpdate:modelValue": (p) => s.value = p,
|
|
3646
3648
|
onClickTrigger: U,
|
|
3647
3649
|
onChangeTrigger: E,
|
|
3648
3650
|
content: s == null ? void 0 : s.content
|
|
3649
|
-
},
|
|
3650
|
-
|
|
3651
|
-
name:
|
|
3651
|
+
}, Ha({ _: 2 }, [
|
|
3652
|
+
Le(X.$slots, (p, A) => ({
|
|
3653
|
+
name: A,
|
|
3652
3654
|
fn: se((B) => [
|
|
3653
|
-
|
|
3655
|
+
zl(X.$slots, A, qa({ ref_for: !0 }, B || {}), void 0, !0)
|
|
3654
3656
|
])
|
|
3655
3657
|
}))
|
|
3656
3658
|
]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
|
|
3657
|
-
]))), 128)) :
|
|
3659
|
+
]))), 128)) : Xe("", !0)
|
|
3658
3660
|
], 64);
|
|
3659
3661
|
};
|
|
3660
3662
|
}
|
|
3661
|
-
}),
|
|
3663
|
+
}), gn = /* @__PURE__ */ Ve(bn, [["__scopeId", "data-v-d7c99969"]]), kn = /* @__PURE__ */ vl({
|
|
3662
3664
|
__name: "index",
|
|
3663
3665
|
props: {
|
|
3664
3666
|
itemData: {
|
|
@@ -3672,18 +3674,18 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3672
3674
|
},
|
|
3673
3675
|
emits: ["clickStep"],
|
|
3674
3676
|
setup(f, { emit: g }) {
|
|
3675
|
-
const i = f, a = g,
|
|
3677
|
+
const i = f, a = g, h = z({}), T = z([]), P = (C, L) => {
|
|
3676
3678
|
a("clickStep", C, L);
|
|
3677
3679
|
};
|
|
3678
3680
|
return je(() => i == null ? void 0 : i.itemData, (C) => {
|
|
3679
3681
|
var L, U;
|
|
3680
|
-
T.value = (L = C == null ? void 0 : C.find((E) => (E == null ? void 0 : E.key) === "stepList")) == null ? void 0 : L.contents,
|
|
3682
|
+
T.value = (L = C == null ? void 0 : C.find((E) => (E == null ? void 0 : E.key) === "stepList")) == null ? void 0 : L.contents, h.value = (U = C == null ? void 0 : C.find((E) => (E == null ? void 0 : E.key) === "stepConfig")) == null ? void 0 : U.contents;
|
|
3681
3683
|
}, {
|
|
3682
3684
|
immediate: !0
|
|
3683
3685
|
}), (C, L) => {
|
|
3684
3686
|
const U = Te("svg-icon");
|
|
3685
|
-
return q(), Fe(
|
|
3686
|
-
stepConfig:
|
|
3687
|
+
return q(), Fe(gn, {
|
|
3688
|
+
stepConfig: h.value,
|
|
3687
3689
|
stepList: T.value,
|
|
3688
3690
|
onClickStep: P
|
|
3689
3691
|
}, {
|
|
@@ -3691,16 +3693,16 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3691
3693
|
K(U, { name: "import" })
|
|
3692
3694
|
]),
|
|
3693
3695
|
title: se(({ title: E }) => [
|
|
3694
|
-
|
|
3696
|
+
xe(me(E), 1)
|
|
3695
3697
|
]),
|
|
3696
3698
|
description: se(({ description: E }) => [
|
|
3697
|
-
|
|
3699
|
+
xe(me(E), 1)
|
|
3698
3700
|
]),
|
|
3699
3701
|
_: 1
|
|
3700
3702
|
}, 8, ["stepConfig", "stepList"]);
|
|
3701
3703
|
};
|
|
3702
3704
|
}
|
|
3703
|
-
}),
|
|
3705
|
+
}), _n = /* @__PURE__ */ vl({
|
|
3704
3706
|
__name: "index",
|
|
3705
3707
|
props: {
|
|
3706
3708
|
activities: {
|
|
@@ -3715,10 +3717,10 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3715
3717
|
},
|
|
3716
3718
|
setup(f) {
|
|
3717
3719
|
return (g, i) => {
|
|
3718
|
-
const a = Te("el-timeline-item"),
|
|
3719
|
-
return q(), Fe(
|
|
3720
|
+
const a = Te("el-timeline-item"), h = Te("el-timeline");
|
|
3721
|
+
return q(), Fe(h, null, {
|
|
3720
3722
|
default: se(() => [
|
|
3721
|
-
(q(!0), de(Se, null,
|
|
3723
|
+
(q(!0), de(Se, null, Le(f.activities, (T, P) => (q(), Fe(a, {
|
|
3722
3724
|
key: P,
|
|
3723
3725
|
timestamp: T.timestamp,
|
|
3724
3726
|
placement: f.timeLineConfig.placement,
|
|
@@ -3731,7 +3733,7 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3731
3733
|
hollow: f.timeLineConfig.isHollow
|
|
3732
3734
|
}, {
|
|
3733
3735
|
default: se(() => [
|
|
3734
|
-
|
|
3736
|
+
zl(g.$slots, "content", {
|
|
3735
3737
|
content: T == null ? void 0 : T.content,
|
|
3736
3738
|
timestamp: T == null ? void 0 : T.timestamp
|
|
3737
3739
|
}, void 0, !0)
|
|
@@ -3743,7 +3745,7 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3743
3745
|
});
|
|
3744
3746
|
};
|
|
3745
3747
|
}
|
|
3746
|
-
}),
|
|
3748
|
+
}), Cn = /* @__PURE__ */ Ve(_n, [["__scopeId", "data-v-4172a886"]]), wn = { class: "line-content" }, Dn = { class: "line-time" }, An = /* @__PURE__ */ vl({
|
|
3747
3749
|
__name: "index",
|
|
3748
3750
|
props: {
|
|
3749
3751
|
itemData: {
|
|
@@ -3753,23 +3755,23 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3753
3755
|
},
|
|
3754
3756
|
setup(f) {
|
|
3755
3757
|
const g = f, i = z({}), a = z([]);
|
|
3756
|
-
return je(() => g == null ? void 0 : g.itemData, (
|
|
3758
|
+
return je(() => g == null ? void 0 : g.itemData, (h) => {
|
|
3757
3759
|
var T, P;
|
|
3758
|
-
a.value = (T =
|
|
3760
|
+
a.value = (T = h == null ? void 0 : h.find((C) => (C == null ? void 0 : C.key) === "timeLineList")) == null ? void 0 : T.contents, i.value = (P = h == null ? void 0 : h.find((C) => (C == null ? void 0 : C.key) === "timeLineConfig")) == null ? void 0 : P.contents;
|
|
3759
3761
|
}, {
|
|
3760
3762
|
immediate: !0
|
|
3761
|
-
}), (
|
|
3763
|
+
}), (h, T) => (q(), Fe(Cn, {
|
|
3762
3764
|
activities: a.value,
|
|
3763
3765
|
timeLineConfig: i.value
|
|
3764
3766
|
}, {
|
|
3765
3767
|
content: se(({ content: P, timestamp: C }) => [
|
|
3766
|
-
D("span",
|
|
3767
|
-
D("span",
|
|
3768
|
+
D("span", wn, me(P), 1),
|
|
3769
|
+
D("span", Dn, me(C), 1)
|
|
3768
3770
|
]),
|
|
3769
3771
|
_: 1
|
|
3770
3772
|
}, 8, ["activities", "timeLineConfig"]));
|
|
3771
3773
|
}
|
|
3772
|
-
}),
|
|
3774
|
+
}), In = /* @__PURE__ */ Ve(An, [["__scopeId", "data-v-b4d9deed"]]), xn = { class: "tabs-content" }, En = {
|
|
3773
3775
|
__name: "index",
|
|
3774
3776
|
props: {
|
|
3775
3777
|
itemData: {
|
|
@@ -3787,8 +3789,8 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3787
3789
|
return je(
|
|
3788
3790
|
() => g == null ? void 0 : g.itemData,
|
|
3789
3791
|
(a) => {
|
|
3790
|
-
const
|
|
3791
|
-
|
|
3792
|
+
const h = a.find((T) => (T == null ? void 0 : T.key) == "stepList");
|
|
3793
|
+
h && (i.value = h.contents.map((T) => ({
|
|
3792
3794
|
value: T.value || T.title,
|
|
3793
3795
|
label: T.label || T.title,
|
|
3794
3796
|
children: T.children || []
|
|
@@ -3796,11 +3798,11 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3796
3798
|
})));
|
|
3797
3799
|
},
|
|
3798
3800
|
{ immediate: !0, deep: !0 }
|
|
3799
|
-
), (a,
|
|
3800
|
-
K(
|
|
3801
|
+
), (a, h) => (q(), de("div", xn, [
|
|
3802
|
+
K(is, { tabsContents: i.value }, null, 8, ["tabsContents"])
|
|
3801
3803
|
]));
|
|
3802
3804
|
}
|
|
3803
|
-
},
|
|
3805
|
+
}, $n = /* @__PURE__ */ Ve(En, [["__scopeId", "data-v-d3bb10b7"]]), Jl = xa("tabComp", {
|
|
3804
3806
|
state: () => ({
|
|
3805
3807
|
itemData: [],
|
|
3806
3808
|
originalData: [],
|
|
@@ -3834,21 +3836,21 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3834
3836
|
this.isEdit = f;
|
|
3835
3837
|
}
|
|
3836
3838
|
}
|
|
3837
|
-
}),
|
|
3839
|
+
}), Bn = { class: "type-select" }, Tn = ["onClick"], Sn = { class: "list-icon" }, Fn = {
|
|
3838
3840
|
__name: "modelSelect",
|
|
3839
3841
|
setup(f) {
|
|
3840
|
-
const g =
|
|
3842
|
+
const g = Jl(Ye), { itemData: i } = nl(g), a = (h) => {
|
|
3841
3843
|
const T = l(i.value);
|
|
3842
3844
|
T.push({
|
|
3843
|
-
comp:
|
|
3844
|
-
name:
|
|
3845
|
+
comp: h.comp,
|
|
3846
|
+
name: h.name,
|
|
3845
3847
|
compData: []
|
|
3846
3848
|
}), g.setItemData(T);
|
|
3847
3849
|
};
|
|
3848
|
-
return (
|
|
3850
|
+
return (h, T) => {
|
|
3849
3851
|
const P = Te("svg-icon");
|
|
3850
|
-
return q(), de("div",
|
|
3851
|
-
(q(!0), de(Se, null,
|
|
3852
|
+
return q(), de("div", Bn, [
|
|
3853
|
+
(q(!0), de(Se, null, Le(Ia(mo), (C, L) => (q(), de("div", {
|
|
3852
3854
|
class: "type-list",
|
|
3853
3855
|
key: L
|
|
3854
3856
|
}, [
|
|
@@ -3856,148 +3858,148 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
3856
3858
|
class: "list-content",
|
|
3857
3859
|
onClick: (U) => a(C)
|
|
3858
3860
|
}, [
|
|
3859
|
-
D("div",
|
|
3861
|
+
D("div", Sn, [
|
|
3860
3862
|
K(P, {
|
|
3861
3863
|
name: C.icon
|
|
3862
3864
|
}, null, 8, ["name"])
|
|
3863
3865
|
]),
|
|
3864
3866
|
D("div", null, me(C.name), 1)
|
|
3865
|
-
], 8,
|
|
3867
|
+
], 8, Tn)
|
|
3866
3868
|
]))), 128))
|
|
3867
3869
|
]);
|
|
3868
3870
|
};
|
|
3869
3871
|
}
|
|
3870
|
-
},
|
|
3872
|
+
}, On = /* @__PURE__ */ Ve(Fn, [["__scopeId", "data-v-91799bf8"]]), Ln = { class: "fill-content" }, Rn = { class: "operate-content" }, Pn = { class: "collapse-title-content" }, Vn = { class: "collapse-title-item" }, Nn = { key: 1 }, jn = ["onClick"], Un = { class: "icon-content" }, Wn = {
|
|
3871
3873
|
key: 0,
|
|
3872
3874
|
class: "edit-content"
|
|
3873
|
-
},
|
|
3875
|
+
}, zn = ["onClick"], Mn = { class: "comp-child" }, Kn = {
|
|
3874
3876
|
__name: "modelFill",
|
|
3875
3877
|
setup(f) {
|
|
3876
|
-
const g =
|
|
3878
|
+
const g = Jl(Ye), { itemData: i, originalData: a } = nl(g), h = z([]);
|
|
3877
3879
|
z([]);
|
|
3878
|
-
const T = z([]), P = z([]), C = (
|
|
3879
|
-
var
|
|
3880
|
-
let Z = (
|
|
3880
|
+
const T = z([]), P = z([]), C = (re) => {
|
|
3881
|
+
var oe;
|
|
3882
|
+
let Z = (oe = l(P.value)) == null ? void 0 : oe.map((w, v) => (re === v && (w.content = !0), w));
|
|
3881
3883
|
P.value = Z;
|
|
3882
|
-
}, L = (
|
|
3883
|
-
var
|
|
3884
|
-
let Z = (
|
|
3885
|
-
P.value = Z,
|
|
3886
|
-
}, U = (
|
|
3884
|
+
}, L = (re) => {
|
|
3885
|
+
var oe;
|
|
3886
|
+
let Z = (oe = l(P.value)) == null ? void 0 : oe.map((w, v) => (re === v && (w.content = !1), w));
|
|
3887
|
+
P.value = Z, h.value = l(i.value);
|
|
3888
|
+
}, U = (re, Z) => {
|
|
3887
3889
|
var M;
|
|
3888
|
-
let
|
|
3889
|
-
P.value =
|
|
3890
|
-
const w = l(i.value),
|
|
3891
|
-
g.setOriginalData(
|
|
3890
|
+
let oe = (M = l(P.value)) == null ? void 0 : M.map((t, s) => (re === s && (t.content = !1), t));
|
|
3891
|
+
P.value = oe;
|
|
3892
|
+
const w = l(i.value), v = w == null ? void 0 : w.filter((t, s) => (s === re && (t.name = Z), t));
|
|
3893
|
+
g.setOriginalData(v), g.setItemData(v);
|
|
3892
3894
|
};
|
|
3893
3895
|
je(
|
|
3894
3896
|
() => i.value,
|
|
3895
3897
|
() => {
|
|
3896
|
-
var
|
|
3897
|
-
!i.value || ((
|
|
3898
|
-
id:
|
|
3898
|
+
var re, Z, oe;
|
|
3899
|
+
!i.value || ((re = i.value) == null ? void 0 : re.length) === 0 ? h.value = [] : h.value = (Z = l(i.value)) == null ? void 0 : Z.filter((w) => (w == null ? void 0 : w.comp) !== "methodButton"), T.value = h.value, P.value = (oe = l(T.value)) == null ? void 0 : oe.map((w, v) => ({
|
|
3900
|
+
id: v,
|
|
3899
3901
|
content: !1
|
|
3900
3902
|
}));
|
|
3901
3903
|
},
|
|
3902
3904
|
{ deep: !0, immediate: !0 }
|
|
3903
3905
|
);
|
|
3904
|
-
const E = (
|
|
3905
|
-
var
|
|
3906
|
-
if (!
|
|
3906
|
+
const E = (re) => sa(re), X = (re, Z, oe) => {
|
|
3907
|
+
var v, M;
|
|
3908
|
+
if (!re) return;
|
|
3907
3909
|
let w = l(i.value);
|
|
3908
|
-
w = (
|
|
3910
|
+
w = (v = w == null ? void 0 : w.map((t, s) => (s === oe && (t.compData = re), t))) == null ? void 0 : v.filter((t) => (t == null ? void 0 : t.comp) !== "methodButton"), P.value = (M = l(w)) == null ? void 0 : M.map((t, s) => ({
|
|
3909
3911
|
id: s,
|
|
3910
3912
|
content: !1
|
|
3911
3913
|
})), g.setOriginalData(w), g.setItemData(w);
|
|
3912
|
-
}, H = (
|
|
3913
|
-
|
|
3914
|
+
}, H = (re) => {
|
|
3915
|
+
tl.confirm("是否确认要删除", "", {
|
|
3914
3916
|
confirmButtonText: "确认",
|
|
3915
3917
|
cancelButtonText: "取消",
|
|
3916
3918
|
type: "warning"
|
|
3917
3919
|
}).then(() => {
|
|
3918
|
-
const Z = l(i.value),
|
|
3919
|
-
g.setOriginalData(
|
|
3920
|
+
const Z = l(i.value), oe = Z == null ? void 0 : Z.filter((w, v) => v !== re);
|
|
3921
|
+
g.setOriginalData(oe), g.setItemData(oe), el({
|
|
3920
3922
|
type: "success",
|
|
3921
3923
|
message: "删除成功"
|
|
3922
3924
|
});
|
|
3923
3925
|
}).catch(() => {
|
|
3924
3926
|
});
|
|
3925
3927
|
};
|
|
3926
|
-
return (
|
|
3927
|
-
const
|
|
3928
|
-
return q(), de("div",
|
|
3928
|
+
return (re, Z) => {
|
|
3929
|
+
const oe = Te("svg-icon");
|
|
3930
|
+
return q(), de("div", Ln, [
|
|
3929
3931
|
Z[1] || (Z[1] = D("div", { class: "fill-operate" }, me("操作栏"), -1)),
|
|
3930
|
-
D("div",
|
|
3931
|
-
K(
|
|
3932
|
+
D("div", Rn, [
|
|
3933
|
+
K(ts, {
|
|
3932
3934
|
class: "collapse-content",
|
|
3933
|
-
collapseContents:
|
|
3935
|
+
collapseContents: h.value
|
|
3934
3936
|
}, {
|
|
3935
|
-
title: se(({ item: w, index:
|
|
3936
|
-
var M, t, s, o, p,
|
|
3937
|
+
title: se(({ item: w, index: v }) => {
|
|
3938
|
+
var M, t, s, o, p, A, B, J, Y, j;
|
|
3937
3939
|
return [
|
|
3938
|
-
D("div",
|
|
3939
|
-
D("div",
|
|
3940
|
-
(t = (M = P.value) == null ? void 0 : M.find((G) => G.id ===
|
|
3940
|
+
D("div", Pn, [
|
|
3941
|
+
D("div", Vn, [
|
|
3942
|
+
(t = (M = P.value) == null ? void 0 : M.find((G) => G.id === v)) != null && t.content ? Xe("", !0) : (q(), de("div", {
|
|
3941
3943
|
key: 0,
|
|
3942
3944
|
class: "collapse-title",
|
|
3943
|
-
style:
|
|
3945
|
+
style: Qa({ marginRight: w.name && w.name !== "" ? "8px" : "0px" })
|
|
3944
3946
|
}, me(w.name), 5)),
|
|
3945
|
-
(o = (s = P.value) == null ? void 0 : s.find((G) => G.id ===
|
|
3946
|
-
K(
|
|
3947
|
+
(o = (s = P.value) == null ? void 0 : s.find((G) => G.id === v)) != null && o.content ? (q(), de("div", Nn, [
|
|
3948
|
+
K(ns, {
|
|
3947
3949
|
modelValue: w.name,
|
|
3948
3950
|
"onUpdate:modelValue": (G) => w.name = G,
|
|
3949
|
-
onClick: Z[0] || (Z[0] =
|
|
3951
|
+
onClick: Z[0] || (Z[0] = jl(() => {
|
|
3950
3952
|
}, ["stop"]))
|
|
3951
3953
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
3952
|
-
])) :
|
|
3953
|
-
(
|
|
3954
|
+
])) : Xe("", !0),
|
|
3955
|
+
(A = (p = P.value) == null ? void 0 : p.find((G) => G.id === v)) != null && A.content ? Xe("", !0) : (q(), de("div", {
|
|
3954
3956
|
key: 2,
|
|
3955
|
-
onClick:
|
|
3957
|
+
onClick: jl((G) => C(v), ["stop"]),
|
|
3956
3958
|
class: "icon-content"
|
|
3957
3959
|
}, [
|
|
3958
|
-
K(
|
|
3960
|
+
K(oe, {
|
|
3959
3961
|
name: "Edit",
|
|
3960
3962
|
style: { width: "16px", height: "16px" }
|
|
3961
3963
|
})
|
|
3962
|
-
], 8,
|
|
3964
|
+
], 8, jn))
|
|
3963
3965
|
]),
|
|
3964
|
-
D("div",
|
|
3965
|
-
(J = (B = P.value) == null ? void 0 : B.find((G) => G.id ===
|
|
3966
|
-
K(
|
|
3966
|
+
D("div", Un, [
|
|
3967
|
+
(J = (B = P.value) == null ? void 0 : B.find((G) => G.id === v)) != null && J.content ? (q(), de("div", Wn, [
|
|
3968
|
+
K(oe, {
|
|
3967
3969
|
name: "Cancel",
|
|
3968
3970
|
style: { width: "16px", height: "16px" },
|
|
3969
3971
|
class: "icon-content",
|
|
3970
|
-
onClick:
|
|
3972
|
+
onClick: jl((G) => L(v), ["stop"])
|
|
3971
3973
|
}, null, 8, ["onClick"]),
|
|
3972
|
-
K(
|
|
3974
|
+
K(oe, {
|
|
3973
3975
|
name: "Save",
|
|
3974
|
-
onClick:
|
|
3976
|
+
onClick: jl((G) => U(v, w.name), ["stop"]),
|
|
3975
3977
|
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
3976
3978
|
class: "icon-content"
|
|
3977
3979
|
}, null, 8, ["onClick"])
|
|
3978
|
-
])) :
|
|
3979
|
-
(j = (Y = P.value) == null ? void 0 : Y.find((G) => G.id ===
|
|
3980
|
+
])) : Xe("", !0),
|
|
3981
|
+
(j = (Y = P.value) == null ? void 0 : Y.find((G) => G.id === v)) != null && j.content ? Xe("", !0) : (q(), de("div", {
|
|
3980
3982
|
key: 1,
|
|
3981
|
-
onClick:
|
|
3983
|
+
onClick: jl((G) => H(v), ["stop"]),
|
|
3982
3984
|
class: "icon-content"
|
|
3983
3985
|
}, [
|
|
3984
|
-
K(
|
|
3986
|
+
K(oe, {
|
|
3985
3987
|
name: "Delete",
|
|
3986
3988
|
style: { width: "16px", height: "16px" }
|
|
3987
3989
|
})
|
|
3988
|
-
], 8,
|
|
3990
|
+
], 8, zn))
|
|
3989
3991
|
])
|
|
3990
3992
|
])
|
|
3991
3993
|
];
|
|
3992
3994
|
}),
|
|
3993
|
-
content: se(({ item: w, index:
|
|
3995
|
+
content: se(({ item: w, index: v }) => {
|
|
3994
3996
|
var M, t;
|
|
3995
3997
|
return [
|
|
3996
|
-
D("div",
|
|
3997
|
-
(q(), Fe(
|
|
3998
|
+
D("div", Mn, [
|
|
3999
|
+
(q(), Fe(Ul(E(w.comp + "Operate")), {
|
|
3998
4000
|
itemContents: w == null ? void 0 : w.compData,
|
|
3999
|
-
originalItemContents: (t = (M = T.value) == null ? void 0 : M.find((s, o) => o ===
|
|
4000
|
-
onChange: (s) => X(s, w,
|
|
4001
|
+
originalItemContents: (t = (M = T.value) == null ? void 0 : M.find((s, o) => o === v)) == null ? void 0 : t.compData,
|
|
4002
|
+
onChange: (s) => X(s, w, v)
|
|
4001
4003
|
}, null, 40, ["itemContents", "originalItemContents", "onChange"]))
|
|
4002
4004
|
])
|
|
4003
4005
|
];
|
|
@@ -4008,13 +4010,13 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4008
4010
|
]);
|
|
4009
4011
|
};
|
|
4010
4012
|
}
|
|
4011
|
-
},
|
|
4013
|
+
}, Jn = /* @__PURE__ */ Ve(Kn, [["__scopeId", "data-v-78d7fc46"]]), Gn = {
|
|
4012
4014
|
key: 0,
|
|
4013
4015
|
class: "show-content"
|
|
4014
|
-
},
|
|
4016
|
+
}, Hn = { style: { display: "flex" } }, qn = {
|
|
4015
4017
|
__name: "modelShow",
|
|
4016
4018
|
setup(f) {
|
|
4017
|
-
const g =
|
|
4019
|
+
const g = Jl(Ye), { itemData: i } = nl(g), a = z([]);
|
|
4018
4020
|
je(
|
|
4019
4021
|
() => i.value,
|
|
4020
4022
|
() => {
|
|
@@ -4023,28 +4025,28 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4023
4025
|
},
|
|
4024
4026
|
{ deep: !0, immediate: !0 }
|
|
4025
4027
|
);
|
|
4026
|
-
const
|
|
4028
|
+
const h = (T) => sa(T);
|
|
4027
4029
|
return (T, P) => {
|
|
4028
4030
|
var C;
|
|
4029
|
-
return ((C = a.value) == null ? void 0 : C.length) > 0 ? (q(), de("div",
|
|
4030
|
-
(q(!0), de(Se, null,
|
|
4031
|
+
return ((C = a.value) == null ? void 0 : C.length) > 0 ? (q(), de("div", Gn, [
|
|
4032
|
+
(q(!0), de(Se, null, Le(a.value, (L, U) => (q(), de("div", {
|
|
4031
4033
|
class: "item-content",
|
|
4032
4034
|
key: U
|
|
4033
4035
|
}, [
|
|
4034
|
-
D("div",
|
|
4035
|
-
(q(), Fe(
|
|
4036
|
+
D("div", Hn, me(L.name), 1),
|
|
4037
|
+
(q(), Fe(Ul(h(L.comp)), {
|
|
4036
4038
|
itemData: L == null ? void 0 : L.compData,
|
|
4037
4039
|
childItemData: L == null ? void 0 : L.itemChildData,
|
|
4038
4040
|
key: U
|
|
4039
4041
|
}, null, 8, ["itemData", "childItemData"]))
|
|
4040
4042
|
]))), 128))
|
|
4041
|
-
])) :
|
|
4043
|
+
])) : Xe("", !0);
|
|
4042
4044
|
};
|
|
4043
4045
|
}
|
|
4044
|
-
},
|
|
4046
|
+
}, Qn = /* @__PURE__ */ Ve(qn, [["__scopeId", "data-v-3f3e863e"]]), Xn = { class: "tabs-header" }, Yn = { class: "tabs-list" }, Zn = { class: "tab-name" }, eo = { class: "tab-actions" }, lo = ["onClick"], ao = ["onClick"], so = ["onClick"], io = { class: "model-operate" }, no = {
|
|
4045
4047
|
class: "model-select",
|
|
4046
4048
|
style: { display: "unset" }
|
|
4047
|
-
},
|
|
4049
|
+
}, oo = { class: "existing-components" }, uo = { class: "component-list" }, ro = ["onClick"], co = { class: "component-info" }, to = { class: "component-type" }, po = { class: "component-name" }, fo = { class: "model-fill" }, ho = {
|
|
4048
4050
|
__name: "operate",
|
|
4049
4051
|
props: {
|
|
4050
4052
|
itemContents: {
|
|
@@ -4054,13 +4056,13 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4054
4056
|
},
|
|
4055
4057
|
emits: ["change"],
|
|
4056
4058
|
setup(f, { emit: g }) {
|
|
4057
|
-
const i = f, a = g,
|
|
4059
|
+
const i = f, a = g, h = z([]), T = z(!1), P = z(""), C = z({ title: "" }), L = z(-1), U = z(!1), E = z(-1), X = z(/* @__PURE__ */ new Map()), H = z(null), re = Jl(Ye), { itemData: Z } = nl(re), oe = () => {
|
|
4058
4060
|
P.value = "新增标签页", C.value.title = "", L.value = -1, T.value = !0;
|
|
4059
4061
|
}, w = (r) => {
|
|
4060
|
-
P.value = "修改标签页", C.value.title =
|
|
4061
|
-
},
|
|
4062
|
+
P.value = "修改标签页", C.value.title = h.value[r].title, L.value = r, T.value = !0;
|
|
4063
|
+
}, v = (r) => {
|
|
4062
4064
|
const k = s(r);
|
|
4063
|
-
X.value.delete(k),
|
|
4065
|
+
X.value.delete(k), h.value.splice(r, 1), le();
|
|
4064
4066
|
}, M = () => {
|
|
4065
4067
|
if (C.value.title.trim()) {
|
|
4066
4068
|
if (L.value === -1) {
|
|
@@ -4071,13 +4073,13 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4071
4073
|
children: [],
|
|
4072
4074
|
id: t()
|
|
4073
4075
|
};
|
|
4074
|
-
|
|
4076
|
+
h.value.push(r);
|
|
4075
4077
|
} else
|
|
4076
|
-
|
|
4078
|
+
h.value[L.value].title = C.value.title, h.value[L.value].value = C.value.title, h.value[L.value].label = C.value.title;
|
|
4077
4079
|
T.value = !1, le();
|
|
4078
4080
|
}
|
|
4079
4081
|
}, t = () => `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, s = (r) => {
|
|
4080
|
-
const k =
|
|
4082
|
+
const k = h.value[r];
|
|
4081
4083
|
return k.id || (k.id = t()), k.id;
|
|
4082
4084
|
}, o = (r) => {
|
|
4083
4085
|
var ie;
|
|
@@ -4085,23 +4087,23 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4085
4087
|
const k = s(r);
|
|
4086
4088
|
H.value = l(Z.value);
|
|
4087
4089
|
let S = X.value.get(k);
|
|
4088
|
-
!S && ((ie =
|
|
4089
|
-
}, p =
|
|
4090
|
-
const r =
|
|
4090
|
+
!S && ((ie = h.value[r].children) == null ? void 0 : ie.length) > 0 && (S = J(h.value[r].children)), S ? re.setItemData(l(S)) : re.setItemData([]), U.value = !0;
|
|
4091
|
+
}, p = aa(() => {
|
|
4092
|
+
const r = $a(Ye), k = nl(r).itemData.value;
|
|
4091
4093
|
return console.log("可用组件数据", k), !k || !Array.isArray(k) ? [] : k.filter((S) => {
|
|
4092
4094
|
var ie;
|
|
4093
4095
|
if (S.comp === "Tabs" && E.value >= 0) {
|
|
4094
|
-
const
|
|
4096
|
+
const ne = s(E.value);
|
|
4095
4097
|
if ((ie = S.compData) == null ? void 0 : ie.some(
|
|
4096
4098
|
(y) => {
|
|
4097
4099
|
var O;
|
|
4098
|
-
return y.key === "stepList" && ((O = y.contents) == null ? void 0 : O.some((W) => W.id ===
|
|
4100
|
+
return y.key === "stepList" && ((O = y.contents) == null ? void 0 : O.some((W) => W.id === ne));
|
|
4099
4101
|
}
|
|
4100
4102
|
)) return !1;
|
|
4101
4103
|
}
|
|
4102
4104
|
return !0;
|
|
4103
4105
|
});
|
|
4104
|
-
}),
|
|
4106
|
+
}), A = (r) => ({
|
|
4105
4107
|
Table: "表格",
|
|
4106
4108
|
Form: "表单",
|
|
4107
4109
|
Tabs: "标签页",
|
|
@@ -4111,13 +4113,13 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4111
4113
|
var k;
|
|
4112
4114
|
try {
|
|
4113
4115
|
const S = l(r);
|
|
4114
|
-
S.id = Date.now() + Math.random(), S.comp === "Tabs" && ((k = S.compData) == null || k.forEach((
|
|
4115
|
-
|
|
4116
|
+
S.id = Date.now() + Math.random(), S.comp === "Tabs" && ((k = S.compData) == null || k.forEach((ne) => {
|
|
4117
|
+
ne.key === "stepList" && ne.contents && ne.contents.forEach((m) => {
|
|
4116
4118
|
m.id = t();
|
|
4117
4119
|
});
|
|
4118
4120
|
}));
|
|
4119
4121
|
const ie = l(Z.value);
|
|
4120
|
-
ie.push(S),
|
|
4122
|
+
ie.push(S), re.setItemData(ie);
|
|
4121
4123
|
} catch (S) {
|
|
4122
4124
|
console.error("添加组件失败:", S);
|
|
4123
4125
|
}
|
|
@@ -4157,14 +4159,14 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4157
4159
|
contents: r.isEnableWrap
|
|
4158
4160
|
}), k;
|
|
4159
4161
|
}, j = (r) => [], G = () => {
|
|
4160
|
-
if (E.value >= 0 && E.value <
|
|
4162
|
+
if (E.value >= 0 && E.value < h.value.length) {
|
|
4161
4163
|
const r = s(E.value);
|
|
4162
|
-
X.value.set(r, l(Z.value)),
|
|
4164
|
+
X.value.set(r, l(Z.value)), h.value[E.value].children = _(Z.value), console.log("保存后的数据", _(Z.value));
|
|
4163
4165
|
}
|
|
4164
4166
|
U.value = !1, E.value = -1, H.value = null, le();
|
|
4165
4167
|
}, n = () => {
|
|
4166
|
-
H.value &&
|
|
4167
|
-
},
|
|
4168
|
+
H.value && re.setItemData(l(H.value)), U.value = !1, E.value = -1, H.value = null;
|
|
4169
|
+
}, I = () => {
|
|
4168
4170
|
U.value && n();
|
|
4169
4171
|
}, _ = (r) => {
|
|
4170
4172
|
if (!Array.isArray(r))
|
|
@@ -4172,7 +4174,7 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4172
4174
|
return r.map((k, S) => {
|
|
4173
4175
|
if (!k || typeof k != "object")
|
|
4174
4176
|
return k;
|
|
4175
|
-
const { comp: ie, name:
|
|
4177
|
+
const { comp: ie, name: ne, compData: m } = k;
|
|
4176
4178
|
switch (ie) {
|
|
4177
4179
|
case "Form":
|
|
4178
4180
|
return {
|
|
@@ -4210,9 +4212,9 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4210
4212
|
enableWrap: "isEnableWrap",
|
|
4211
4213
|
formButton: "buttonValue"
|
|
4212
4214
|
};
|
|
4213
|
-
return r.forEach((ie,
|
|
4215
|
+
return r.forEach((ie, ne) => {
|
|
4214
4216
|
if (!ie || typeof ie != "object") {
|
|
4215
|
-
console.warn(`Invalid config at index ${
|
|
4217
|
+
console.warn(`Invalid config at index ${ne}:`, ie);
|
|
4216
4218
|
return;
|
|
4217
4219
|
}
|
|
4218
4220
|
const { key: m, contents: y } = ie, O = S[m];
|
|
@@ -4239,9 +4241,9 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4239
4241
|
header: "columns",
|
|
4240
4242
|
tableContents: "tableData"
|
|
4241
4243
|
};
|
|
4242
|
-
return r.forEach((ie,
|
|
4244
|
+
return r.forEach((ie, ne) => {
|
|
4243
4245
|
if (!ie || typeof ie != "object") {
|
|
4244
|
-
console.warn(`Invalid config at index ${
|
|
4246
|
+
console.warn(`Invalid config at index ${ne}:`, ie);
|
|
4245
4247
|
return;
|
|
4246
4248
|
}
|
|
4247
4249
|
const { key: m, contents: y } = ie, O = S[m];
|
|
@@ -4259,7 +4261,7 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4259
4261
|
const r = [
|
|
4260
4262
|
{
|
|
4261
4263
|
key: "stepList",
|
|
4262
|
-
contents:
|
|
4264
|
+
contents: h.value
|
|
4263
4265
|
}
|
|
4264
4266
|
];
|
|
4265
4267
|
a("change", r);
|
|
@@ -4269,7 +4271,7 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4269
4271
|
(r) => {
|
|
4270
4272
|
if (r && r.length > 0) {
|
|
4271
4273
|
const k = r.find((S) => S.key === "stepList");
|
|
4272
|
-
k && k.contents && (
|
|
4274
|
+
k && k.contents && (h.value = k.contents.map((S) => ({
|
|
4273
4275
|
title: S.title || "",
|
|
4274
4276
|
value: S.value || S.title || "",
|
|
4275
4277
|
label: S.label || S.title || "",
|
|
@@ -4280,38 +4282,38 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4280
4282
|
},
|
|
4281
4283
|
{ immediate: !0, deep: !0 }
|
|
4282
4284
|
), (r, k) => {
|
|
4283
|
-
const S = Te("svg-icon"), ie = Te("el-input"),
|
|
4285
|
+
const S = Te("svg-icon"), ie = Te("el-input"), ne = Te("el-form-item"), m = Te("el-form");
|
|
4284
4286
|
return q(), de("div", null, [
|
|
4285
|
-
D("div",
|
|
4287
|
+
D("div", Xn, [
|
|
4286
4288
|
k[6] || (k[6] = D("h4", null, "标签页管理", -1)),
|
|
4287
|
-
D("button", { onClick:
|
|
4289
|
+
D("button", { onClick: oe }, [
|
|
4288
4290
|
K(S, {
|
|
4289
4291
|
name: "Plus",
|
|
4290
4292
|
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
4291
4293
|
}),
|
|
4292
|
-
k[5] || (k[5] =
|
|
4294
|
+
k[5] || (k[5] = xe(" 新增标签页 "))
|
|
4293
4295
|
])
|
|
4294
4296
|
]),
|
|
4295
|
-
D("div",
|
|
4296
|
-
(q(!0), de(Se, null,
|
|
4297
|
+
D("div", Yn, [
|
|
4298
|
+
(q(!0), de(Se, null, Le(h.value, (y, O) => (q(), de("div", {
|
|
4297
4299
|
class: "tab-item",
|
|
4298
4300
|
key: O
|
|
4299
4301
|
}, [
|
|
4300
|
-
D("span",
|
|
4301
|
-
D("div",
|
|
4302
|
+
D("span", Zn, me(y.title), 1),
|
|
4303
|
+
D("div", eo, [
|
|
4302
4304
|
D("button", {
|
|
4303
4305
|
onClick: (W) => w(O)
|
|
4304
|
-
}, "修改标题", 8,
|
|
4306
|
+
}, "修改标题", 8, lo),
|
|
4305
4307
|
D("button", {
|
|
4306
4308
|
onClick: (W) => o(O)
|
|
4307
|
-
}, "布局调整", 8,
|
|
4309
|
+
}, "布局调整", 8, ao),
|
|
4308
4310
|
D("button", {
|
|
4309
|
-
onClick: (W) =>
|
|
4310
|
-
}, "删除", 8,
|
|
4311
|
+
onClick: (W) => v(O)
|
|
4312
|
+
}, "删除", 8, so)
|
|
4311
4313
|
])
|
|
4312
4314
|
]))), 128))
|
|
4313
4315
|
]),
|
|
4314
|
-
K(
|
|
4316
|
+
K(Je, {
|
|
4315
4317
|
modelValue: T.value,
|
|
4316
4318
|
"onUpdate:modelValue": k[2] || (k[2] = (y) => T.value = y),
|
|
4317
4319
|
title: P.value,
|
|
@@ -4332,7 +4334,7 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4332
4334
|
"label-width": "80px"
|
|
4333
4335
|
}, {
|
|
4334
4336
|
default: se(() => [
|
|
4335
|
-
K(
|
|
4337
|
+
K(ne, {
|
|
4336
4338
|
label: "标签名称",
|
|
4337
4339
|
required: ""
|
|
4338
4340
|
}, {
|
|
@@ -4351,35 +4353,35 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4351
4353
|
]),
|
|
4352
4354
|
_: 1
|
|
4353
4355
|
}, 8, ["modelValue", "title"]),
|
|
4354
|
-
K(
|
|
4356
|
+
K(Je, {
|
|
4355
4357
|
modelValue: U.value,
|
|
4356
4358
|
"onUpdate:modelValue": k[4] || (k[4] = (y) => U.value = y),
|
|
4357
4359
|
title: "布局调整",
|
|
4358
4360
|
fullScreen: "",
|
|
4359
|
-
onBeforeDestroy:
|
|
4361
|
+
onBeforeDestroy: I
|
|
4360
4362
|
}, {
|
|
4361
4363
|
footer: se(() => [
|
|
4362
4364
|
D("button", { onClick: n }, "取消"),
|
|
4363
4365
|
D("button", { onClick: G }, "确定")
|
|
4364
4366
|
]),
|
|
4365
4367
|
default: se(() => [
|
|
4366
|
-
D("div",
|
|
4367
|
-
D("div",
|
|
4368
|
-
K(
|
|
4369
|
-
D("div",
|
|
4368
|
+
D("div", io, [
|
|
4369
|
+
D("div", no, [
|
|
4370
|
+
K(On),
|
|
4371
|
+
D("div", oo, [
|
|
4370
4372
|
k[8] || (k[8] = D("h5", null, "添加已有组件", -1)),
|
|
4371
|
-
D("div",
|
|
4372
|
-
(q(!0), de(Se, null,
|
|
4373
|
+
D("div", uo, [
|
|
4374
|
+
(q(!0), de(Se, null, Le(p.value, (y) => (q(), de("div", {
|
|
4373
4375
|
key: y.id,
|
|
4374
4376
|
class: "component-item",
|
|
4375
4377
|
onClick: (O) => B(y)
|
|
4376
4378
|
}, [
|
|
4377
|
-
D("div",
|
|
4378
|
-
D("span",
|
|
4379
|
-
D("span",
|
|
4379
|
+
D("div", co, [
|
|
4380
|
+
D("span", to, me(A(y.comp)), 1),
|
|
4381
|
+
D("span", po, me(y.name), 1)
|
|
4380
4382
|
]),
|
|
4381
4383
|
k[7] || (k[7] = D("button", { class: "add-btn" }, "添加", -1))
|
|
4382
|
-
], 8,
|
|
4384
|
+
], 8, ro))), 128))
|
|
4383
4385
|
])
|
|
4384
4386
|
])
|
|
4385
4387
|
]),
|
|
@@ -4387,10 +4389,10 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4387
4389
|
class: "model-show",
|
|
4388
4390
|
key: r.innerWidth
|
|
4389
4391
|
}, [
|
|
4390
|
-
K(
|
|
4392
|
+
K(Qn)
|
|
4391
4393
|
])),
|
|
4392
|
-
D("div",
|
|
4393
|
-
K(
|
|
4394
|
+
D("div", fo, [
|
|
4395
|
+
K(Jn)
|
|
4394
4396
|
])
|
|
4395
4397
|
])
|
|
4396
4398
|
]),
|
|
@@ -4399,7 +4401,7 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4399
4401
|
]);
|
|
4400
4402
|
};
|
|
4401
4403
|
}
|
|
4402
|
-
},
|
|
4404
|
+
}, vo = /* @__PURE__ */ Ve(ho, [["__scopeId", "data-v-151936e8"]]), mo = z([
|
|
4403
4405
|
{
|
|
4404
4406
|
name: "表格",
|
|
4405
4407
|
type: "table",
|
|
@@ -4448,35 +4450,35 @@ const en = /* @__PURE__ */ Re(Yi, [["render", Zi]]), ln = { class: "module conte
|
|
|
4448
4450
|
comp: "Tabs",
|
|
4449
4451
|
icon: "Tabs"
|
|
4450
4452
|
}
|
|
4451
|
-
]),
|
|
4452
|
-
TABLE:
|
|
4453
|
-
FORM:
|
|
4454
|
-
TABLEOPERATE:
|
|
4455
|
-
FORMOPERATE:
|
|
4456
|
-
FOLD:
|
|
4457
|
-
CALCULATOR:
|
|
4458
|
-
METHODBUTTON:
|
|
4459
|
-
AVATARUPLOAD:
|
|
4460
|
-
SIGNATURE:
|
|
4461
|
-
FORMTOP:
|
|
4462
|
-
STEP:
|
|
4463
|
-
STEPOPERATE:
|
|
4464
|
-
TIMELINE:
|
|
4465
|
-
TIMELINEOPERATE:
|
|
4466
|
-
FORMTOPOPERATE:
|
|
4467
|
-
SIGNATUREOPERATE:
|
|
4468
|
-
AVATARUPLOADOPERATE:
|
|
4469
|
-
TABS:
|
|
4470
|
-
TABSOPERATE:
|
|
4453
|
+
]), yo = {
|
|
4454
|
+
TABLE: Ga,
|
|
4455
|
+
FORM: wa,
|
|
4456
|
+
TABLEOPERATE: mi,
|
|
4457
|
+
FORMOPERATE: Da,
|
|
4458
|
+
FOLD: Ji,
|
|
4459
|
+
CALCULATOR: Yi,
|
|
4460
|
+
METHODBUTTON: rn,
|
|
4461
|
+
AVATARUPLOAD: cs,
|
|
4462
|
+
SIGNATURE: rs,
|
|
4463
|
+
FORMTOP: wa,
|
|
4464
|
+
STEP: kn,
|
|
4465
|
+
STEPOPERATE: Pi,
|
|
4466
|
+
TIMELINE: In,
|
|
4467
|
+
TIMELINEOPERATE: zi,
|
|
4468
|
+
FORMTOPOPERATE: Da,
|
|
4469
|
+
SIGNATUREOPERATE: yn,
|
|
4470
|
+
AVATARUPLOADOPERATE: dn,
|
|
4471
|
+
TABS: $n,
|
|
4472
|
+
TABSOPERATE: vo
|
|
4471
4473
|
// 添加其他组件...
|
|
4472
4474
|
};
|
|
4473
|
-
function
|
|
4474
|
-
return
|
|
4475
|
+
function sa(f) {
|
|
4476
|
+
return yo[f == null ? void 0 : f.toUpperCase()] || null;
|
|
4475
4477
|
}
|
|
4476
4478
|
export {
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4479
|
+
$o as a,
|
|
4480
|
+
ea as b,
|
|
4481
|
+
sa as g,
|
|
4482
|
+
mo as s,
|
|
4483
|
+
ps as u
|
|
4482
4484
|
};
|