ss-component-new 1.1.688 → 1.1.689
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-CZA2TrST.js → index-08cTHoVb.js} +2 -2
- package/dist/{index-BAjfpc-e.js → index-4nVQcHf6.js} +1 -1
- package/dist/{index-CTUezLT1.js → index-9CvKQEDV.js} +1 -1
- package/dist/{index-CZUUA9AH.js → index-BNYIeF9T.js} +1 -1
- package/dist/{index-CGEVrIin.cjs → index-BSA6N--B.cjs} +1 -1
- package/dist/{index-BOBPnwIK.js → index-BWDoUj7-.js} +1 -1
- package/dist/{index-7jIVU6f5.cjs → index-BnLBiQdm.cjs} +1 -1
- package/dist/{index-iPtS5dXP.js → index-C64HHYEm.js} +1 -1
- package/dist/{index-C2_N9tSf.js → index-C9izXIFx.js} +2 -2
- package/dist/{index-CfVTo-nj.js → index-CMvisick.js} +2 -2
- package/dist/{index-BxYWdhio.js → index-CNSZwJqZ.js} +3 -3
- package/dist/{index-CG2-TaED.js → index-CqnevPUp.js} +2 -2
- package/dist/{index-BAYCOuhr.js → index-D8pJHX_5.js} +2 -2
- package/dist/{index-BE620iBp.js → index-D9C8tkWp.js} +1 -1
- package/dist/{index-Csda30z9.js → index-DJ8ZOEVF.js} +2 -2
- package/dist/{index-DqQ9NsSD.js → index-DaH2LfZ7.js} +1148 -1148
- package/dist/{index-CopbLJ1M.cjs → index-DmaG0qHT.cjs} +1 -1
- package/dist/{index-97UArhSm.js → index-DrOwiABU.js} +5 -5
- package/dist/index-ZbkHQZHF.cjs +1 -0
- package/dist/{index-B5t8W_VJ.cjs → index-c8U4362k.cjs} +1 -1
- package/dist/{index-5WQ5LYRW.js → index-lfCdDbXk.js} +2 -2
- package/dist/{index-CxFNk4cm.js → index-sdPpjURf.js} +10 -10
- package/dist/{index.vue_vue_type_script_setup_true_lang-CLGE3m3B.js → index.vue_vue_type_script_setup_true_lang-DSWft6l-.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DUty96xJ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CQYCn_rT.js} +14 -14
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-BKy4mN2P.cjs → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-DShXOnmH.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-yZfvQU-d.js → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-Dyu_CAhm.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-B6HDOHzU.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BnKS94Ld.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-eO9eLrJw.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-HJ8jo2sK.js} +4 -4
- package/dist/{main-ktX2BXAo.cjs → main-LySpBT8m.cjs} +1 -1
- package/dist/{main-BSm_mLsl.js → main-usw1cF54.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-CbdtxOlx.js → threeModel-BEZdk80h.js} +1 -1
- package/package.json +1 -1
- package/dist/index-DIXYv-q9.cjs +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { b as Ya, a as Za, t as es, f as ls, g as as, c as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { p as ll, s as il, c as l, u as
|
|
4
|
-
import { e as Ze, f as
|
|
5
|
-
import { bp as ds, bq as ps, a as
|
|
6
|
-
import { F as
|
|
7
|
-
import { u as
|
|
1
|
+
import { b as Ya, a as Za, t as es, f as ls, g as as, c as ja, i as Ba, s as ss } from "./index-D8pJHX_5.js";
|
|
2
|
+
import { ref as z, watch as Xe, createElementBlock as _e, openBlock as Y, createVNode as Q, createBlock as Ve, createCommentVNode as Qe, withCtx as he, resolveComponent as Re, Fragment as Ue, renderList as Ne, createElementVNode as D, toDisplayString as De, createTextVNode as Be, defineComponent as Al, reactive as _a, resolveDynamicComponent as ua, unref as xl, computed as Ca, renderSlot as ca, createSlots as is, mergeProps as os, normalizeStyle as ns, withModifiers as na } from "vue";
|
|
3
|
+
import { p as ll, s as il, c as l, u as Ka, f as us } from "./menu-IwkXhFha.js";
|
|
4
|
+
import { e as Ze, f as Na, s as el, h as Wa, a as Fa, i as rs, j as cs, b as ts } from "./index-C9izXIFx.js";
|
|
5
|
+
import { bp as ds, bq as ps, a as ta, E as ol, g as wl, b as fs, bl as ya, bm as La, bk as Oa } from "./index-DjOudbez.js";
|
|
6
|
+
import { F as Va, z as vs, I as ba, A as hs, B as qe, C as Fl, D as bl, E as Tl, G as ma, H as ms, g as gl, J as ys, K as bs, L as gs, M as ks, N as _s, O as Ra, P as Cs, Q as ws, R as Ds } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CQYCn_rT.js";
|
|
7
|
+
import { u as wa } from "./login-Czn1jLVJ.js";
|
|
8
8
|
import { _ as We } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
import { E as Cl } from "./index-CNsfln9_.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { s as
|
|
12
|
-
import
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
return r === !0 || r === !1 || ds(r) && ps(r) ==
|
|
10
|
+
import { u as Da } from "./modelComp-DSmZe2d_.js";
|
|
11
|
+
import { s as Is, a as xs } from "./index-DJ8ZOEVF.js";
|
|
12
|
+
import Ts from "./index-CZtXRS3l.js";
|
|
13
|
+
var As = "[object Boolean]";
|
|
14
|
+
function Ma(r) {
|
|
15
|
+
return r === !0 || r === !1 || ds(r) && ps(r) == As;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Es(r) {
|
|
18
18
|
return r === void 0;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const Ss = { class: "form-content" }, $s = {
|
|
21
21
|
__name: "index",
|
|
22
22
|
props: {
|
|
23
23
|
formRules: Object,
|
|
@@ -33,52 +33,52 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["change", "contentChange"],
|
|
35
35
|
setup(r, { emit: S }) {
|
|
36
|
-
const m =
|
|
36
|
+
const m = z(!1), o = z(!1), n = z(""), O = () => {
|
|
37
37
|
m.value = !1, o.value = null, n.value = "";
|
|
38
|
-
}, $ = r,
|
|
38
|
+
}, $ = r, _ = S, P = z([]), q = z(!1), E = z(!1), ue = z([]), se = z(), Ce = Ya(ll), ce = Za(ll), be = z(!1), C = z(), I = wa(ll), { loginUserInfo: ve } = il(I), c = z(), p = z(!0), h = (pe, we) => {
|
|
39
39
|
c.value === we ? p.value = !1 : p.value = !0, c.value = we == null ? void 0 : we.changeProp;
|
|
40
40
|
}, y = async (pe) => {
|
|
41
|
-
var b,
|
|
41
|
+
var b, W, a, v, f, w, F, te, A, u;
|
|
42
42
|
let we = [];
|
|
43
43
|
if ((b = pe == null ? void 0 : pe.toString()) != null && b.includes(".urdf")) {
|
|
44
44
|
n.value = pe, m.value = !0;
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
if ((
|
|
48
|
-
let
|
|
49
|
-
if (Array.isArray(pe) ?
|
|
50
|
-
|
|
51
|
-
}), (B == null ? void 0 : B.length) > 0 && (
|
|
52
|
-
we.push(
|
|
47
|
+
if ((W = pe == null ? void 0 : pe.toString()) != null && W.includes(".stl") || (a = pe == null ? void 0 : pe.toString()) != null && a.includes(".STL") || (v = pe == null ? void 0 : pe.toString()) != null && v.includes(".obj") || (f = pe == null ? void 0 : pe.toString()) != null && f.includes(".mtl")) {
|
|
48
|
+
let G, B = [], Z = {};
|
|
49
|
+
if (Array.isArray(pe) ? G = pe : G = pe == null ? void 0 : pe.split(","), G == null || G.forEach((ne) => {
|
|
50
|
+
ne.includes(".mtl") ? B.push(ne) : Z.blob = Z.blob ? Z.blob + "," + ne : ne;
|
|
51
|
+
}), (B == null ? void 0 : B.length) > 0 && (Z.mtlBlobs = B), (F = (w = Object.values(Z)) == null ? void 0 : w[0]) != null && F.includes("http:"))
|
|
52
|
+
we.push(Z);
|
|
53
53
|
else {
|
|
54
|
-
const
|
|
54
|
+
const ne = new Blob([Z.blob], {
|
|
55
55
|
type: "application/octet-stream;charset=UTF-8"
|
|
56
56
|
});
|
|
57
|
-
let
|
|
58
|
-
(te = pe == null ? void 0 : pe.split("/")) == null || te.forEach((
|
|
57
|
+
let K = URL.createObjectURL(ne), k = "";
|
|
58
|
+
(te = pe == null ? void 0 : pe.split("/")) == null || te.forEach((H, g) => {
|
|
59
59
|
var ee;
|
|
60
|
-
g === ((ee = pe == null ? void 0 : pe.split("/")) == null ? void 0 : ee.length) - 1 && (
|
|
61
|
-
}), (A =
|
|
62
|
-
name:
|
|
63
|
-
blobUrl:
|
|
60
|
+
g === ((ee = pe == null ? void 0 : pe.split("/")) == null ? void 0 : ee.length) - 1 && (k = H);
|
|
61
|
+
}), (A = Z.blob) != null && A.includes(".stl") && (k = (k == null ? void 0 : k.replaceAll(">", "")) + ".urdf"), se.value = [{
|
|
62
|
+
name: k,
|
|
63
|
+
blobUrl: K
|
|
64
64
|
}], E.value = !0;
|
|
65
65
|
}
|
|
66
66
|
} else {
|
|
67
|
-
const
|
|
67
|
+
const G = await ta.get(pe, {
|
|
68
68
|
responseType: "blob",
|
|
69
69
|
headers: {
|
|
70
70
|
"Content-Type": "application/json"
|
|
71
71
|
}
|
|
72
|
-
}), B = new Blob([
|
|
72
|
+
}), B = new Blob([G.data], {
|
|
73
73
|
type: "application/octet-stream;charset=UTF-8"
|
|
74
74
|
});
|
|
75
|
-
let
|
|
76
|
-
(u = pe == null ? void 0 : pe.split("/")) == null || u.forEach((
|
|
77
|
-
var
|
|
78
|
-
|
|
75
|
+
let Z = URL.createObjectURL(B), ne = "";
|
|
76
|
+
(u = pe == null ? void 0 : pe.split("/")) == null || u.forEach((K, k) => {
|
|
77
|
+
var H;
|
|
78
|
+
k === ((H = pe == null ? void 0 : pe.split("/")) == null ? void 0 : H.length) - 1 && (ne = K);
|
|
79
79
|
}), se.value = [{
|
|
80
|
-
name:
|
|
81
|
-
blobUrl:
|
|
80
|
+
name: ne,
|
|
81
|
+
blobUrl: Z
|
|
82
82
|
}], E.value = !0;
|
|
83
83
|
}
|
|
84
84
|
(we == null ? void 0 : we.length) > 0 && ce.setBlobUrls(we);
|
|
@@ -87,68 +87,68 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
87
87
|
}, ye = (pe) => {
|
|
88
88
|
var v, f, w, F;
|
|
89
89
|
const we = (f = (v = l($.itemData)) == null ? void 0 : v.find((te) => (te == null ? void 0 : te.key) === "formContent")) == null ? void 0 : f.contents, b = l(pe.content);
|
|
90
|
-
let
|
|
90
|
+
let W = {};
|
|
91
91
|
b && ((w = Object.values(b)) == null ? void 0 : w.length) > 0 && ((F = Object.values(b)) == null || F.forEach((te, A) => {
|
|
92
|
-
|
|
92
|
+
W[we[A].key] = te;
|
|
93
93
|
}));
|
|
94
94
|
const a = {
|
|
95
|
-
content:
|
|
95
|
+
content: W,
|
|
96
96
|
index: $ == null ? void 0 : $.index,
|
|
97
97
|
buttonName: pe == null ? void 0 : pe.buttonName
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
_("change", a);
|
|
100
100
|
}, Ie = async (pe) => {
|
|
101
|
-
var te, A, u,
|
|
101
|
+
var te, A, u, G, B, Z, ne, K, k, H, g, ee;
|
|
102
102
|
if (!pe) return;
|
|
103
|
-
const we = l($.itemData), b = we == null ? void 0 : we.map((
|
|
104
|
-
var
|
|
105
|
-
return (
|
|
106
|
-
var i,
|
|
107
|
-
return ae.type = ae != null && ae.type ? ae.type : (de = (re = (
|
|
108
|
-
var
|
|
109
|
-
return (
|
|
110
|
-
})) == null ? void 0 : s.value : "Input", ae.options = ae != null && ae.options ? ae.options : ((x = (d = (t = ae == null ? void 0 : ae.key) == null ? void 0 : t.split("$")) == null ? void 0 : d[1]) == null ? void 0 : x.length) > 0 ? (le = (R = ls((ke = (fe = ae == null ? void 0 : ae.key) == null ? void 0 : fe.split("$")) == null ? void 0 : ke[1])) == null ? void 0 : R.split(",")) == null ? void 0 : le.map((
|
|
111
|
-
label:
|
|
112
|
-
value:
|
|
103
|
+
const we = l($.itemData), b = we == null ? void 0 : we.map((M) => {
|
|
104
|
+
var J;
|
|
105
|
+
return (M == null ? void 0 : M.key) === "formContent" && ((J = M.contents) == null || J.map((ae, V) => {
|
|
106
|
+
var i, X, re, de, e, s, t, d, x, fe, ke, R, le, ie, me, j, U;
|
|
107
|
+
return ae.type = ae != null && ae.type ? ae.type : (de = (re = (X = (i = ae == null ? void 0 : ae.key) == null ? void 0 : i.split("$")) == null ? void 0 : X[1]) == null ? void 0 : re.split("(")) != null && de[0] ? (s = (e = Va) == null ? void 0 : e.find((L) => {
|
|
108
|
+
var N, ge, xe, Oe;
|
|
109
|
+
return (L == null ? void 0 : L.key) === ((Oe = (xe = (ge = (N = ae == null ? void 0 : ae.key) == null ? void 0 : N.split("$")) == null ? void 0 : ge[1]) == null ? void 0 : xe.split("(")) == null ? void 0 : Oe[0]);
|
|
110
|
+
})) == null ? void 0 : s.value : "Input", ae.options = ae != null && ae.options ? ae.options : ((x = (d = (t = ae == null ? void 0 : ae.key) == null ? void 0 : t.split("$")) == null ? void 0 : d[1]) == null ? void 0 : x.length) > 0 ? (le = (R = ls((ke = (fe = ae == null ? void 0 : ae.key) == null ? void 0 : fe.split("$")) == null ? void 0 : ke[1])) == null ? void 0 : R.split(",")) == null ? void 0 : le.map((L) => ({
|
|
111
|
+
label: L,
|
|
112
|
+
value: L
|
|
113
113
|
})) : [], (ie = ae == null ? void 0 : ae.key) != null && ie.includes("$") && (ae.key = (j = (me = ae == null ? void 0 : ae.key) == null ? void 0 : me.split("$")) == null ? void 0 : j[0]), ae.value = (U = Object.values(pe)) == null ? void 0 : U[V], ae;
|
|
114
|
-
})),
|
|
114
|
+
})), M;
|
|
115
115
|
});
|
|
116
|
-
let
|
|
117
|
-
if (
|
|
118
|
-
var
|
|
119
|
-
return
|
|
116
|
+
let W = l(P).value, a = (A = (te = l(b)) == null ? void 0 : te.find((M) => (M == null ? void 0 : M.key) === "formContent")) == null ? void 0 : A.contents;
|
|
117
|
+
if (W = W == null ? void 0 : W.map((M) => {
|
|
118
|
+
var J;
|
|
119
|
+
return M.value = (J = a == null ? void 0 : a.find((ae, V) => ((ae == null ? void 0 : ae.id) ?? V) === (M == null ? void 0 : M.id))) == null ? void 0 : J.value, M;
|
|
120
120
|
}), !p.value) {
|
|
121
|
-
|
|
121
|
+
_("contentChange", {
|
|
122
122
|
contents: b,
|
|
123
123
|
index: $.index
|
|
124
124
|
});
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
|
-
let v = "", f = (B = (
|
|
127
|
+
let v = "", f = (B = (G = (u = l(b)) == null ? void 0 : u.find((M) => (M == null ? void 0 : M.key) === "formContent")) == null ? void 0 : G.contents) == null ? void 0 : B.find((M, J) => {
|
|
128
128
|
var ae, V;
|
|
129
|
-
return (
|
|
129
|
+
return (M == null ? void 0 : M.label) === c.value || J.toString() === ((V = (ae = c.value) == null ? void 0 : ae.split("t")) == null ? void 0 : V[1].toString());
|
|
130
130
|
});
|
|
131
|
-
if ((
|
|
132
|
-
var
|
|
133
|
-
v === "" && ((V = (ae = (
|
|
134
|
-
}), (
|
|
135
|
-
let
|
|
136
|
-
if (
|
|
137
|
-
var V, i,
|
|
138
|
-
v === ((i = (V = f == null ? void 0 : f.optionUrl) == null ? void 0 : V.groupSelect) == null ? void 0 : i[1]) && ((de = (re = (
|
|
139
|
-
}),
|
|
140
|
-
let ae = l(
|
|
131
|
+
if ((K = (ne = (Z = l(b)) == null ? void 0 : Z.find((M) => (M == null ? void 0 : M.key) === "formContent")) == null ? void 0 : ne.contents) == null || K.forEach((M) => {
|
|
132
|
+
var J, ae, V, i, X;
|
|
133
|
+
v === "" && ((V = (ae = (J = M == null ? void 0 : M.optionUrl) == null ? void 0 : J.groupSelect) == null ? void 0 : ae[1]) != null && V.includes("[")) && (v = (X = (i = M == null ? void 0 : M.optionUrl) == null ? void 0 : i.groupSelect) == null ? void 0 : X[1]);
|
|
134
|
+
}), (k = f == null ? void 0 : f.optionUrl) != null && k.menuSelect && p.value) {
|
|
135
|
+
let M = await as(f), J;
|
|
136
|
+
if (M == null || M.forEach((ae) => {
|
|
137
|
+
var V, i, X, re, de, e, s, t, d, x;
|
|
138
|
+
v === ((i = (V = f == null ? void 0 : f.optionUrl) == null ? void 0 : V.groupSelect) == null ? void 0 : i[1]) && ((de = (re = (X = f == null ? void 0 : f.optionUrl) == null ? void 0 : X.groupSelect) == null ? void 0 : re[1]) != null && de.includes("[")) && ((x = l(ae)) == null ? void 0 : x[(d = (t = (s = (e = f == null ? void 0 : f.optionUrl) == null ? void 0 : e.groupSelect) == null ? void 0 : s[1]) == null ? void 0 : t.replaceAll("[", "")) == null ? void 0 : d.replaceAll("]", "")]) === (f == null ? void 0 : f.value) && (J = ae);
|
|
139
|
+
}), J) {
|
|
140
|
+
let ae = l(W);
|
|
141
141
|
ae = ae == null ? void 0 : ae.map((i) => {
|
|
142
|
-
var
|
|
143
|
-
return (
|
|
142
|
+
var X, re, de, e, s, t, d, x, fe, ke, R;
|
|
143
|
+
return (J != null && J[i == null ? void 0 : i.label] || J != null && J[(e = (de = (re = (X = i == null ? void 0 : i.optionUrl) == null ? void 0 : X.groupSelect) == null ? void 0 : re[1]) == null ? void 0 : de.replaceAll("[", "")) == null ? void 0 : e.replaceAll("]", "")]) && ((d = (t = (s = i == null ? void 0 : i.optionUrl) == null ? void 0 : s.groupSelect) == null ? void 0 : t[1]) != null && d.includes("[")) && (i.value = (J == null ? void 0 : J[i == null ? void 0 : i.label]) || (J == null ? void 0 : J[(R = (ke = (fe = (x = i == null ? void 0 : i.optionUrl) == null ? void 0 : x.groupSelect) == null ? void 0 : fe[1]) == null ? void 0 : ke.replaceAll("[", "")) == null ? void 0 : R.replaceAll("]", "")])), i;
|
|
144
144
|
}), ae = ae == null ? void 0 : ae.map((i) => {
|
|
145
|
-
var
|
|
146
|
-
return (
|
|
145
|
+
var X, re, de;
|
|
146
|
+
return (X = i == null ? void 0 : i.optionUrl) != null && X.oldMenuSelect && (i.optionUrl.menuSelect = (de = (re = l(i)) == null ? void 0 : re.optionUrl) == null ? void 0 : de.oldMenuSelect), i;
|
|
147
147
|
}), P.value = ae;
|
|
148
148
|
let V = l(ae);
|
|
149
149
|
V = V == null ? void 0 : V.map((i) => {
|
|
150
|
-
var
|
|
151
|
-
return (re = (
|
|
150
|
+
var X, re, de, e, s, t;
|
|
151
|
+
return (re = (X = i == null ? void 0 : i.optionUrl) == null ? void 0 : X.menuSelect) != null && re.some((d) => d == null ? void 0 : d.includes("[")) && (i.optionUrl.oldMenuSelect = (e = (de = l(i)) == null ? void 0 : de.optionUrl) == null ? void 0 : e.menuSelect, i.optionUrl.menuSelect = (t = (s = i == null ? void 0 : i.optionUrl) == null ? void 0 : s.menuSelect) == null ? void 0 : t.map((d) => {
|
|
152
152
|
var x, fe, ke, R;
|
|
153
153
|
if (d != null && d.includes("[")) {
|
|
154
154
|
let le = (fe = (x = d == null ? void 0 : d.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : x.split(":")) == null ? void 0 : fe[1];
|
|
@@ -159,37 +159,37 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
159
159
|
}), P.value = V;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
p.value = !1,
|
|
162
|
+
p.value = !1, _("contentChange", {
|
|
163
163
|
contents: b,
|
|
164
164
|
index: $.index
|
|
165
165
|
});
|
|
166
166
|
let w = [], F = [];
|
|
167
|
-
if ((g = l((
|
|
168
|
-
var
|
|
169
|
-
Array.isArray(
|
|
167
|
+
if ((g = l((H = b == null ? void 0 : b.find((M) => (M == null ? void 0 : M.key) === "formContent")) == null ? void 0 : H.contents)) == null || g.forEach((M) => {
|
|
168
|
+
var J;
|
|
169
|
+
Array.isArray(M == null ? void 0 : M.value) && ((J = M == null ? void 0 : M.value) != null && J.find((ae) => {
|
|
170
170
|
var V;
|
|
171
171
|
return (V = ae == null ? void 0 : ae.url) == null ? void 0 : V.includes(".obj");
|
|
172
|
-
})) && (F =
|
|
172
|
+
})) && (F = M == null ? void 0 : M.value);
|
|
173
173
|
}), (F == null ? void 0 : F.length) > 0) {
|
|
174
|
-
const
|
|
174
|
+
const M = (ee = l(F)) == null ? void 0 : ee.filter((J) => {
|
|
175
175
|
var ae;
|
|
176
|
-
return (ae =
|
|
176
|
+
return (ae = J == null ? void 0 : J.url) == null ? void 0 : ae.includes(".obj");
|
|
177
177
|
});
|
|
178
|
-
|
|
179
|
-
var V, i,
|
|
178
|
+
M == null || M.forEach((J) => {
|
|
179
|
+
var V, i, X, re;
|
|
180
180
|
const ae = (V = F == null ? void 0 : F.filter((de) => {
|
|
181
181
|
var e;
|
|
182
|
-
return (de == null ? void 0 : de.name) === (
|
|
182
|
+
return (de == null ? void 0 : de.name) === (J == null ? void 0 : J.name) && ((e = de == null ? void 0 : de.url) == null ? void 0 : e.includes(".mtl"));
|
|
183
183
|
})) == null ? void 0 : V.map((de) => de == null ? void 0 : de.url);
|
|
184
184
|
w.push({
|
|
185
|
-
objUrl:
|
|
185
|
+
objUrl: J == null ? void 0 : J.url,
|
|
186
186
|
mtlUrls: ((i = F == null ? void 0 : F.filter((de) => {
|
|
187
187
|
var e;
|
|
188
|
-
return (de == null ? void 0 : de.name) === (
|
|
189
|
-
})) == null ? void 0 : i.length) === 1 ? (re = (
|
|
188
|
+
return (de == null ? void 0 : de.name) === (J == null ? void 0 : J.name) && ((e = de == null ? void 0 : de.url) == null ? void 0 : e.includes(".mtl"));
|
|
189
|
+
})) == null ? void 0 : i.length) === 1 ? (re = (X = F == null ? void 0 : F.filter((de) => {
|
|
190
190
|
var e;
|
|
191
|
-
return (de == null ? void 0 : de.name) === (
|
|
192
|
-
})) == null ? void 0 :
|
|
191
|
+
return (de == null ? void 0 : de.name) === (J == null ? void 0 : J.name) && ((e = de == null ? void 0 : de.url) == null ? void 0 : e.includes(".mtl"));
|
|
192
|
+
})) == null ? void 0 : X[0]) == null ? void 0 : re.url : ae
|
|
193
193
|
});
|
|
194
194
|
}), ce.setObjUrl(w);
|
|
195
195
|
}
|
|
@@ -197,89 +197,89 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
197
197
|
return Xe(
|
|
198
198
|
() => $.itemData,
|
|
199
199
|
async () => {
|
|
200
|
-
var v, f, w, F, te, A, u,
|
|
201
|
-
const pe = (v = $.itemData) == null ? void 0 : v.find((g) => (g == null ? void 0 : g.key) === "formContent"), we = (f = l($.itemData)) == null ? void 0 : f.find((g) => (g == null ? void 0 : g.key) === "formButton"), b = (w = l($.itemData)) == null ? void 0 : w.find((g) => (g == null ? void 0 : g.key) === "formFlex"),
|
|
202
|
-
if ((
|
|
203
|
-
const g = await ((
|
|
204
|
-
var fe, ke, R, le, ie, me, j, U,
|
|
200
|
+
var v, f, w, F, te, A, u, G, B, Z, ne, K, k, H;
|
|
201
|
+
const pe = (v = $.itemData) == null ? void 0 : v.find((g) => (g == null ? void 0 : g.key) === "formContent"), we = (f = l($.itemData)) == null ? void 0 : f.find((g) => (g == null ? void 0 : g.key) === "formButton"), b = (w = l($.itemData)) == null ? void 0 : w.find((g) => (g == null ? void 0 : g.key) === "formFlex"), W = (F = l($.itemData)) == null ? void 0 : F.find((g) => (g == null ? void 0 : g.key) === "formWrap"), a = (te = l($.itemData)) == null ? void 0 : te.find((g) => (g == null ? void 0 : g.key) === "enableWrap");
|
|
202
|
+
if ((W == null ? void 0 : W.contents) === "纵向" ? q.value = !1 : q.value = !0, be.value = (a == null ? void 0 : a.contents) === void 0 ? !1 : a == null ? void 0 : a.contents, C.value = typeof (b == null ? void 0 : b.contents) != "boolean" ? !(!(b != null && b.contents) === "" || ((A = b == null ? void 0 : b.contents) == null ? void 0 : A.toUpperCase()) === "VERTICAL") : b == null ? void 0 : b.contents, ((u = pe == null ? void 0 : pe.contents) == null ? void 0 : u.length) > 0 && Array.isArray(pe == null ? void 0 : pe.contents)) {
|
|
203
|
+
const g = await ((G = pe == null ? void 0 : pe.contents) == null ? void 0 : G.map(async (i, X) => {
|
|
204
|
+
var fe, ke, R, le, ie, me, j, U, L, N, ge, xe, Oe, $e, T, Se, Te;
|
|
205
205
|
let re = (i == null ? void 0 : i.label) ?? (i == null ? void 0 : i.key) ?? "", de = (i == null ? void 0 : i.type) ?? "", e = (i == null ? void 0 : i.options) ?? [];
|
|
206
206
|
if ((fe = i == null ? void 0 : i.key) != null && fe.includes("$") && (re = (ke = l(i == null ? void 0 : i.key).split("$")) == null ? void 0 : ke[0], ((le = (R = l(i == null ? void 0 : i.key).split("$")) == null ? void 0 : R[1]) == null ? void 0 : le.length) > 0)) {
|
|
207
207
|
const [Me, Ge] = (me = (ie = l(i == null ? void 0 : i.key).split("$")) == null ? void 0 : ie[1]) == null ? void 0 : me.split(/[()]/);
|
|
208
|
-
de = ((j =
|
|
208
|
+
de = ((j = Va.find((He) => (He == null ? void 0 : He.key) === Me)) == null ? void 0 : j.value) ?? "", ((U = Ge == null ? void 0 : Ge.split(",")) == null ? void 0 : U.length) > 0 && (e = (L = Ge == null ? void 0 : Ge.split(",")) == null ? void 0 : L.map((He) => ({
|
|
209
209
|
label: He,
|
|
210
210
|
value: He
|
|
211
211
|
})));
|
|
212
212
|
}
|
|
213
213
|
let s = [];
|
|
214
|
-
i != null && i.contents && !Array.isArray(i == null ? void 0 : i.contents) && (s = (ge = (
|
|
214
|
+
i != null && i.contents && !Array.isArray(i == null ? void 0 : i.contents) && (s = (ge = (N = i == null ? void 0 : i.contents) == null ? void 0 : N.split(",")) == null ? void 0 : ge.map((Me) => ({
|
|
215
215
|
label: Me,
|
|
216
216
|
value: Me
|
|
217
217
|
})));
|
|
218
|
-
let t = await vs((xe = l(i)) == null ? void 0 : xe.optionUrl), d = t !== void 0 && !(i != null && i.value) ? t : i != null && i.originalContent && (i == null ? void 0 : i.originalContent) !== "" ? i.originalContent : i != null && i.value ? i.value : (e == null ? void 0 : e.length) > 0 ? (
|
|
218
|
+
let t = await vs((xe = l(i)) == null ? void 0 : xe.optionUrl), d = t !== void 0 && !(i != null && i.value) ? t : i != null && i.originalContent && (i == null ? void 0 : i.originalContent) !== "" ? i.originalContent : i != null && i.value ? i.value : (e == null ? void 0 : e.length) > 0 ? (Oe = e == null ? void 0 : e[0]) == null ? void 0 : Oe.value : (i == null ? void 0 : i.value) ?? "";
|
|
219
219
|
return ($e = d.toUpperCase()) != null && $e.includes("LOGINUSER") && (d = ((T = ve.value) == null ? void 0 : T.姓名) ?? ((Se = ve.value) == null ? void 0 : Se.userName) ?? ((Te = ve.value) == null ? void 0 : Te.account)), {
|
|
220
220
|
label: re ?? "",
|
|
221
|
-
name: "t" +
|
|
221
|
+
name: "t" + X,
|
|
222
222
|
type: t !== void 0 || de === "" ? "Input" : de,
|
|
223
223
|
value: i != null && i.isNewDate && d === "" ? /* @__PURE__ */ new Date() : d,
|
|
224
|
-
id: (i == null ? void 0 : i.id) ??
|
|
224
|
+
id: (i == null ? void 0 : i.id) ?? X,
|
|
225
225
|
contents: (s == null ? void 0 : s.length) > 0 ? s : e ?? [],
|
|
226
226
|
width: (i == null ? void 0 : i.width) ?? 1,
|
|
227
227
|
config: i == null ? void 0 : i.config,
|
|
228
228
|
optionUrl: (i == null ? void 0 : i.optionUrl) ?? i,
|
|
229
229
|
isFormColHidden: i == null ? void 0 : i.isFormColHidden
|
|
230
230
|
};
|
|
231
|
-
})), ee = await Promise.all(g),
|
|
232
|
-
let
|
|
233
|
-
|
|
234
|
-
i !== "" && i !== void 0 && (
|
|
235
|
-
}), Ce.setSelectArray(
|
|
231
|
+
})), ee = await Promise.all(g), M = ee == null ? void 0 : ee.map((i) => i == null ? void 0 : i.value);
|
|
232
|
+
let J = "";
|
|
233
|
+
M == null || M.forEach((i) => {
|
|
234
|
+
i !== "" && i !== void 0 && (J = J === "" ? i : J + "/" + i);
|
|
235
|
+
}), Ce.setSelectArray(M), Ce.setSelectString(J), P.value = (B = l(ee)) == null ? void 0 : B.map((i) => (i != null && i.value && ba(i == null ? void 0 : i.value) && Array.isArray(JSON.parse(i == null ? void 0 : i.value)) && (i.value = JSON.parse(i.value)), i));
|
|
236
236
|
let ae = [], V = [];
|
|
237
|
-
if ((
|
|
238
|
-
var
|
|
239
|
-
Array.isArray(i == null ? void 0 : i.value) && ((
|
|
237
|
+
if ((Z = l(P.value)) == null || Z.forEach((i) => {
|
|
238
|
+
var X;
|
|
239
|
+
Array.isArray(i == null ? void 0 : i.value) && ((X = i == null ? void 0 : i.value) != null && X.find((re) => {
|
|
240
240
|
var de;
|
|
241
241
|
return (de = re == null ? void 0 : re.url) == null ? void 0 : de.includes(".obj");
|
|
242
242
|
})) && (V = i == null ? void 0 : i.value);
|
|
243
243
|
}), (V == null ? void 0 : V.length) > 0) {
|
|
244
|
-
const i = (
|
|
244
|
+
const i = (ne = l(V)) == null ? void 0 : ne.filter((X) => {
|
|
245
245
|
var re;
|
|
246
|
-
return (re =
|
|
246
|
+
return (re = X == null ? void 0 : X.url) == null ? void 0 : re.includes(".obj");
|
|
247
247
|
});
|
|
248
|
-
i == null || i.forEach((
|
|
248
|
+
i == null || i.forEach((X) => {
|
|
249
249
|
var de, e, s, t;
|
|
250
250
|
const re = (de = V == null ? void 0 : V.filter((d) => {
|
|
251
251
|
var x;
|
|
252
|
-
return (d == null ? void 0 : d.name) === (
|
|
252
|
+
return (d == null ? void 0 : d.name) === (X == null ? void 0 : X.name) && ((x = d == null ? void 0 : d.url) == null ? void 0 : x.includes(".mtl"));
|
|
253
253
|
})) == null ? void 0 : de.map((d) => d == null ? void 0 : d.url);
|
|
254
254
|
ae.push({
|
|
255
|
-
objUrl:
|
|
255
|
+
objUrl: X == null ? void 0 : X.url,
|
|
256
256
|
mtlUrls: ((e = V == null ? void 0 : V.filter((d) => {
|
|
257
257
|
var x;
|
|
258
|
-
return (d == null ? void 0 : d.name) === (
|
|
258
|
+
return (d == null ? void 0 : d.name) === (X == null ? void 0 : X.name) && ((x = d == null ? void 0 : d.url) == null ? void 0 : x.includes(".mtl"));
|
|
259
259
|
})) == null ? void 0 : e.length) === 1 ? (t = (s = V == null ? void 0 : V.filter((d) => {
|
|
260
260
|
var x;
|
|
261
|
-
return (d == null ? void 0 : d.name) === (
|
|
261
|
+
return (d == null ? void 0 : d.name) === (X == null ? void 0 : X.name) && ((x = d == null ? void 0 : d.url) == null ? void 0 : x.includes(".mtl"));
|
|
262
262
|
})) == null ? void 0 : s[0]) == null ? void 0 : t.url : re
|
|
263
263
|
});
|
|
264
264
|
}), ce.setObjUrl(ae);
|
|
265
265
|
}
|
|
266
|
-
(
|
|
267
|
-
var
|
|
268
|
-
if ((re = (
|
|
266
|
+
(K = l(P.value)) == null || K.forEach((i) => {
|
|
267
|
+
var X, re, de, e, s, t, d, x, fe, ke, R, le, ie;
|
|
268
|
+
if ((re = (X = i == null ? void 0 : i.value) == null ? void 0 : X.toString()) != null && re.includes(".stl") || (e = (de = i == null ? void 0 : i.value) == null ? void 0 : de.toString()) != null && e.includes(".STL") || (t = (s = i == null ? void 0 : i.value) == null ? void 0 : s.toString()) != null && t.includes(".obj") || (x = (d = i == null ? void 0 : i.value) == null ? void 0 : d.toString()) != null && x.includes(".mtl") || (ke = (fe = i == null ? void 0 : i.value) == null ? void 0 : fe.toString()) != null && ke.includes(".urdf")) {
|
|
269
269
|
let me = {}, j = [], U;
|
|
270
|
-
Array.isArray(i == null ? void 0 : i.value) ? U = i == null ? void 0 : i.value : U = (R = i == null ? void 0 : i.value) == null ? void 0 : R.split(","), U == null || U.forEach((
|
|
271
|
-
|
|
270
|
+
Array.isArray(i == null ? void 0 : i.value) ? U = i == null ? void 0 : i.value : U = (R = i == null ? void 0 : i.value) == null ? void 0 : R.split(","), U == null || U.forEach((L) => {
|
|
271
|
+
L.includes(".mtl") ? j.push(L) : me.blob = me.blob === "undefined" ? L : me.blob + "," + L;
|
|
272
272
|
}), (j == null ? void 0 : j.length) > 0 && (me.mtlBlobs = j), (ie = (le = Object.values(me)) == null ? void 0 : le[0]) != null && ie.includes("http:");
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
} else
|
|
276
276
|
P.value = [];
|
|
277
|
-
if (((
|
|
277
|
+
if (((k = we == null ? void 0 : we.contents) == null ? void 0 : k.length) > 0) {
|
|
278
278
|
const g = [];
|
|
279
|
-
(
|
|
279
|
+
(H = we == null ? void 0 : we.contents) == null || H.forEach((ee, M) => {
|
|
280
280
|
(ee == null ? void 0 : ee.label) !== "" && g.push({
|
|
281
281
|
label: (ee == null ? void 0 : ee.label) ?? "",
|
|
282
|
-
id: (ee == null ? void 0 : ee.id) ??
|
|
282
|
+
id: (ee == null ? void 0 : ee.id) ?? M,
|
|
283
283
|
type: (ee == null ? void 0 : ee.type) ?? "",
|
|
284
284
|
background: ee == null ? void 0 : ee.background
|
|
285
285
|
});
|
|
@@ -288,8 +288,8 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
288
288
|
ue.value = [];
|
|
289
289
|
},
|
|
290
290
|
{ deep: !0, immediate: !0 }
|
|
291
|
-
), (pe, we) => (
|
|
292
|
-
|
|
291
|
+
), (pe, we) => (Y(), _e("div", Ss, [
|
|
292
|
+
Q(Ze, {
|
|
293
293
|
rowContents: P.value,
|
|
294
294
|
formRules: r.formRules,
|
|
295
295
|
buttonValue: ue.value,
|
|
@@ -297,23 +297,23 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
297
297
|
isEnableWrap: be.value,
|
|
298
298
|
onOnButtonClick: ye,
|
|
299
299
|
onChange: Ie,
|
|
300
|
-
isButtonRow:
|
|
300
|
+
isButtonRow: q.value,
|
|
301
301
|
onPreview: y,
|
|
302
302
|
onBlurChange: h
|
|
303
303
|
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEnableWrap", "isButtonRow"]),
|
|
304
|
-
E.value ? (
|
|
304
|
+
E.value ? (Y(), Ve(Na, {
|
|
305
305
|
key: 0,
|
|
306
306
|
fileDataList: se.value,
|
|
307
307
|
onDestroy: oe
|
|
308
308
|
}, null, 8, ["fileDataList"])) : Qe("", !0),
|
|
309
|
-
m.value ? (
|
|
309
|
+
m.value ? (Y(), Ve(el, {
|
|
310
310
|
key: 1,
|
|
311
311
|
visible: m.value,
|
|
312
|
-
onBeforeDestroy:
|
|
312
|
+
onBeforeDestroy: O,
|
|
313
313
|
style: { height: "700px", width: "1000px" }
|
|
314
314
|
}, {
|
|
315
315
|
default: he(() => [
|
|
316
|
-
m.value ? (
|
|
316
|
+
m.value ? (Y(), Ve(es, {
|
|
317
317
|
key: 0,
|
|
318
318
|
"urdf-url": n.value
|
|
319
319
|
}, null, 8, ["urdf-url"])) : Qe("", !0)
|
|
@@ -322,9 +322,9 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
322
322
|
}, 8, ["visible"])) : Qe("", !0)
|
|
323
323
|
]));
|
|
324
324
|
}
|
|
325
|
-
},
|
|
325
|
+
}, Ua = /* @__PURE__ */ We($s, [["__scopeId", "data-v-04d47de5"]]), da = z(0), za = (r) => {
|
|
326
326
|
var S;
|
|
327
|
-
return !r || (r == null ? void 0 : r.length) === 0 ? [] : (S = l(r)) == null ? void 0 : S.map((o) => (
|
|
327
|
+
return !r || (r == null ? void 0 : r.length) === 0 ? [] : (S = l(r)) == null ? void 0 : S.map((o) => (da.value++, o = {
|
|
328
328
|
label: (o == null ? void 0 : o.label) ?? "",
|
|
329
329
|
prop: (o == null ? void 0 : o.label) === "操作" ? "operate" : o == null ? void 0 : o.prop,
|
|
330
330
|
width: o != null && o.width ? parseInt(o.width) : "",
|
|
@@ -335,12 +335,12 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
335
335
|
isNotDrag: (o == null ? void 0 : o.isNotDrag) ?? !1,
|
|
336
336
|
isEditCol: (o == null ? void 0 : o.isEditCol) ?? !1,
|
|
337
337
|
isOperate: (o == null ? void 0 : o.isOperate) ?? !1,
|
|
338
|
-
id: (o == null ? void 0 : o.id) ??
|
|
339
|
-
children:
|
|
338
|
+
id: (o == null ? void 0 : o.id) ?? da.value,
|
|
339
|
+
children: za(o == null ? void 0 : o.children)
|
|
340
340
|
}, o));
|
|
341
|
-
},
|
|
341
|
+
}, Bs = (r) => {
|
|
342
342
|
var m;
|
|
343
|
-
return (m = l(r)) == null ? void 0 : m.map((o) => (
|
|
343
|
+
return (m = l(r)) == null ? void 0 : m.map((o) => (da.value++, o = {
|
|
344
344
|
label: (o == null ? void 0 : o.label) ?? "",
|
|
345
345
|
prop: (o == null ? void 0 : o.label) === "操作" ? "operate" : o == null ? void 0 : o.prop,
|
|
346
346
|
width: o != null && o.width ? parseInt(o.width) : "",
|
|
@@ -351,27 +351,27 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
351
351
|
isNotDrag: (o == null ? void 0 : o.isNotDrag) ?? !1,
|
|
352
352
|
isEditCol: (o == null ? void 0 : o.isEditCol) ?? !1,
|
|
353
353
|
isOperate: (o == null ? void 0 : o.isOperate) ?? !1,
|
|
354
|
-
id: (o == null ? void 0 : o.id) ??
|
|
355
|
-
children:
|
|
354
|
+
id: (o == null ? void 0 : o.id) ?? da.value,
|
|
355
|
+
children: za(o == null ? void 0 : o.children)
|
|
356
356
|
}, o));
|
|
357
|
-
}, za = (r, S) => {
|
|
358
|
-
var m;
|
|
359
|
-
return r != null && r.find((o) => (o == null ? void 0 : o.id) === S) ? (m = l(r)) == null ? void 0 : m.filter((n) => (n == null ? void 0 : n.id) !== S) : (r = r == null ? void 0 : r.map((o) => (o.children = za(o == null ? void 0 : o.children, S), o)), r);
|
|
360
357
|
}, Ja = (r, S) => {
|
|
361
358
|
var m;
|
|
362
|
-
return r != null && r.find((o) => (o == null ? void 0 : o.id) ===
|
|
359
|
+
return r != null && r.find((o) => (o == null ? void 0 : o.id) === S) ? (m = l(r)) == null ? void 0 : m.filter((n) => (n == null ? void 0 : n.id) !== S) : (r = r == null ? void 0 : r.map((o) => (o.children = Ja(o == null ? void 0 : o.children, S), o)), r);
|
|
363
360
|
}, Ga = (r, S) => {
|
|
361
|
+
var m;
|
|
362
|
+
return r != null && r.find((o) => (o == null ? void 0 : o.id) === (S == null ? void 0 : S.id)) ? (m = l(r)) == null ? void 0 : m.map((n) => ((n == null ? void 0 : n.id) === (S == null ? void 0 : S.id) && (n = S), n)) : (r = r == null ? void 0 : r.map((o) => (o.children = Ga(o == null ? void 0 : o.children, S), o)), r);
|
|
363
|
+
}, Ha = (r, S) => {
|
|
364
364
|
var m;
|
|
365
365
|
return r != null && r.find((o) => {
|
|
366
366
|
var n;
|
|
367
367
|
return (o == null ? void 0 : o.id) === ((n = S == null ? void 0 : S.contents) == null ? void 0 : n.id);
|
|
368
368
|
}) ? (m = l(r)) == null ? void 0 : m.map((n) => {
|
|
369
|
-
var
|
|
370
|
-
return (n == null ? void 0 : n.id) === ((
|
|
371
|
-
}) : (r = r == null ? void 0 : r.map((o) => (o.children =
|
|
372
|
-
},
|
|
369
|
+
var O;
|
|
370
|
+
return (n == null ? void 0 : n.id) === ((O = S == null ? void 0 : S.contents) == null ? void 0 : O.id) && (n = S == null ? void 0 : S.contents), n;
|
|
371
|
+
}) : (r = r == null ? void 0 : r.map((o) => (o.children = Ha(o == null ? void 0 : o.children, S), o)), r);
|
|
372
|
+
}, qa = (r, S) => {
|
|
373
373
|
var m;
|
|
374
|
-
return r != null && r.find((o) => (o == null ? void 0 : o.id) === (S == null ? void 0 : S.id)) ? (m = l(r)) == null ? void 0 : m.map((n) => ((n == null ? void 0 : n.id) === (S == null ? void 0 : S.id) && (n != null && n.children || (n.children = []), n.children.push(S.contents)), n)) : (r = r == null ? void 0 : r.map((o) => (o.children =
|
|
374
|
+
return r != null && r.find((o) => (o == null ? void 0 : o.id) === (S == null ? void 0 : S.id)) ? (m = l(r)) == null ? void 0 : m.map((n) => ((n == null ? void 0 : n.id) === (S == null ? void 0 : S.id) && (n != null && n.children || (n.children = []), n.children.push(S.contents)), n)) : (r = r == null ? void 0 : r.map((o) => (o.children = qa(o == null ? void 0 : o.children, S), o)), r);
|
|
375
375
|
}, Ee = [
|
|
376
376
|
{
|
|
377
377
|
key: "label",
|
|
@@ -417,7 +417,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
417
417
|
label: "是否固定列",
|
|
418
418
|
type: "Switch"
|
|
419
419
|
}
|
|
420
|
-
],
|
|
420
|
+
], Fs = [
|
|
421
421
|
{
|
|
422
422
|
label: "查看",
|
|
423
423
|
value: "view"
|
|
@@ -434,7 +434,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
434
434
|
label: "三维算例",
|
|
435
435
|
value: "modelExample"
|
|
436
436
|
}
|
|
437
|
-
],
|
|
437
|
+
], Ls = [
|
|
438
438
|
{
|
|
439
439
|
label: "新增",
|
|
440
440
|
value: "add"
|
|
@@ -449,7 +449,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
449
449
|
key: "type",
|
|
450
450
|
label: "类型",
|
|
451
451
|
type: "Select",
|
|
452
|
-
options:
|
|
452
|
+
options: Ls
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
key: "background",
|
|
@@ -466,40 +466,40 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
466
466
|
key: "type",
|
|
467
467
|
label: "类型",
|
|
468
468
|
type: "Select",
|
|
469
|
-
options:
|
|
469
|
+
options: Fs
|
|
470
470
|
},
|
|
471
471
|
{
|
|
472
472
|
key: "textColor",
|
|
473
473
|
label: "按钮颜色",
|
|
474
474
|
type: "Color"
|
|
475
475
|
}
|
|
476
|
-
], Os = { class: "table-header-child" },
|
|
476
|
+
], Os = { class: "table-header-child" }, Vs = { class: "table-header-child-main" }, Rs = { class: "table-header-child-content" }, Us = { class: "table-header-child-content-item" }, Ps = { class: "fix-button" }, js = { key: 0 }, Ks = { class: "form-content" }, Ns = {
|
|
477
477
|
__name: "tableNewChild",
|
|
478
478
|
props: {
|
|
479
479
|
tableChildContents: Array
|
|
480
480
|
},
|
|
481
481
|
emits: ["fixChange", "deleteChange"],
|
|
482
482
|
setup(r, { emit: S }) {
|
|
483
|
-
const m = r, o = S, n =
|
|
484
|
-
|
|
485
|
-
const P =
|
|
483
|
+
const m = r, o = S, n = z(!1), O = z(""), $ = ja(ll), { tableIndex: _ } = il($);
|
|
484
|
+
z(0);
|
|
485
|
+
const P = z(""), q = z([]), E = z([]), ue = (c) => {
|
|
486
486
|
var h;
|
|
487
487
|
n.value = !0;
|
|
488
488
|
let p = [];
|
|
489
489
|
Ee == null || Ee.forEach((y) => {
|
|
490
|
-
let oe = l(
|
|
490
|
+
let oe = l(_.value) + 1;
|
|
491
491
|
$.setTableIndex(oe), p.push({
|
|
492
492
|
label: y == null ? void 0 : y.label,
|
|
493
493
|
name: y == null ? void 0 : y.label,
|
|
494
494
|
type: y.type,
|
|
495
495
|
value: c[y.key],
|
|
496
|
-
id:
|
|
496
|
+
id: _.value,
|
|
497
497
|
contents: y == null ? void 0 : y.options
|
|
498
498
|
});
|
|
499
499
|
}), c != null && c.children && ((h = c == null ? void 0 : c.children) == null ? void 0 : h.length) > 0 && p.push({
|
|
500
500
|
children: c == null ? void 0 : c.children,
|
|
501
501
|
isFormColHidden: !0
|
|
502
|
-
}), P.value = c == null ? void 0 : c.id,
|
|
502
|
+
}), P.value = c == null ? void 0 : c.id, q.value = p, E.value = p;
|
|
503
503
|
}, se = (c) => {
|
|
504
504
|
o("fixChange", l(c));
|
|
505
505
|
}, Ce = (c) => {
|
|
@@ -508,46 +508,46 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
508
508
|
n.value = !0;
|
|
509
509
|
let p = [];
|
|
510
510
|
Ee == null || Ee.forEach((h) => {
|
|
511
|
-
let y = l(
|
|
511
|
+
let y = l(_.value) + 1;
|
|
512
512
|
$.setTableIndex(y), p.push({
|
|
513
513
|
label: h == null ? void 0 : h.label,
|
|
514
514
|
name: h == null ? void 0 : h.label,
|
|
515
515
|
type: h.type,
|
|
516
516
|
value: "",
|
|
517
|
-
id:
|
|
517
|
+
id: _.value,
|
|
518
518
|
contents: h == null ? void 0 : h.options
|
|
519
519
|
});
|
|
520
|
-
}),
|
|
520
|
+
}), O.value = c == null ? void 0 : c.id, q.value = p, E.value = p;
|
|
521
521
|
}, be = (c) => {
|
|
522
522
|
let p = l(E.value);
|
|
523
523
|
p = p == null ? void 0 : p.map((h) => (h.children || (h.value = c == null ? void 0 : c[h.name]), h)), E.value = p;
|
|
524
524
|
}, C = () => {
|
|
525
525
|
var p, h;
|
|
526
|
-
|
|
526
|
+
q.value = E.value;
|
|
527
527
|
let c = {};
|
|
528
528
|
if (P.value !== "")
|
|
529
|
-
c.id = P.value, (p =
|
|
529
|
+
c.id = P.value, (p = q.value) == null || p.forEach((y) => {
|
|
530
530
|
const oe = Ee == null ? void 0 : Ee.find((ye) => (ye == null ? void 0 : ye.label) === (y == null ? void 0 : y.label));
|
|
531
531
|
oe ? c[oe.key] = y.value : y != null && y.children && y.children.length > 0 && (c.children = y.children);
|
|
532
532
|
}), n.value = !1, o("fixChange", {
|
|
533
533
|
contents: l(c),
|
|
534
|
-
id:
|
|
534
|
+
id: O.value,
|
|
535
535
|
type: "fix"
|
|
536
536
|
});
|
|
537
537
|
else {
|
|
538
|
-
let y = l(
|
|
539
|
-
$.setTableIndex(y), c.id = "id" +
|
|
538
|
+
let y = l(_.value) + 1;
|
|
539
|
+
$.setTableIndex(y), c.id = "id" + _.value, (h = q.value) == null || h.forEach((oe) => {
|
|
540
540
|
const ye = Ee == null ? void 0 : Ee.find((Ie) => (Ie == null ? void 0 : Ie.label) === (oe == null ? void 0 : oe.label));
|
|
541
541
|
ye ? c[ye.key] = oe.value : oe != null && oe.children && oe.children.length > 0 && (c.children = oe.children);
|
|
542
542
|
}), n.value = !1, o("fixChange", {
|
|
543
543
|
contents: l(c),
|
|
544
|
-
id:
|
|
544
|
+
id: O.value,
|
|
545
545
|
type: "add"
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
|
-
P.value = "",
|
|
548
|
+
P.value = "", q.value = [], E.value = [];
|
|
549
549
|
}, I = () => {
|
|
550
|
-
n.value = !1, P.value = "",
|
|
550
|
+
n.value = !1, P.value = "", O.value = "", q.value = [], E.value = [];
|
|
551
551
|
}, ve = (c) => {
|
|
552
552
|
Cl.confirm("是否确认要删除", "", {
|
|
553
553
|
confirmButtonText: "确认",
|
|
@@ -565,24 +565,24 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
565
565
|
};
|
|
566
566
|
return (c, p) => {
|
|
567
567
|
const h = Re("svg-icon");
|
|
568
|
-
return
|
|
569
|
-
(
|
|
570
|
-
D("div",
|
|
571
|
-
D("div",
|
|
572
|
-
D("div",
|
|
573
|
-
|
|
568
|
+
return Y(), _e("div", Os, [
|
|
569
|
+
(Y(!0), _e(Ue, null, Ne(m == null ? void 0 : m.tableChildContents, (y, oe) => (Y(), _e("div", Vs, [
|
|
570
|
+
D("div", Rs, [
|
|
571
|
+
D("div", Us, De(y.label), 1),
|
|
572
|
+
D("div", Ps, [
|
|
573
|
+
Q(h, {
|
|
574
574
|
name: "ChildAdd",
|
|
575
575
|
class: "svg-icon-content",
|
|
576
576
|
style: { width: "24px", height: "24px" },
|
|
577
577
|
onClick: (ye) => ce(y)
|
|
578
578
|
}, null, 8, ["onClick"]),
|
|
579
|
-
|
|
579
|
+
Q(h, {
|
|
580
580
|
name: "ChildFix",
|
|
581
581
|
class: "svg-icon-content",
|
|
582
582
|
style: { width: "24px", height: "24px" },
|
|
583
583
|
onClick: (ye) => ue(y)
|
|
584
584
|
}, null, 8, ["onClick"]),
|
|
585
|
-
|
|
585
|
+
Q(h, {
|
|
586
586
|
name: "ChildDelete",
|
|
587
587
|
class: "svg-icon-content",
|
|
588
588
|
style: { width: "24px", height: "24px" },
|
|
@@ -590,24 +590,24 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
590
590
|
}, null, 8, ["onClick"])
|
|
591
591
|
])
|
|
592
592
|
]),
|
|
593
|
-
y != null && y.children && y.children.length > 0 ? (
|
|
594
|
-
|
|
593
|
+
y != null && y.children && y.children.length > 0 ? (Y(), _e("div", js, [
|
|
594
|
+
Q(Qa, {
|
|
595
595
|
tableChildContents: y == null ? void 0 : y.children,
|
|
596
596
|
onDeleteChange: Ce,
|
|
597
597
|
onFixChange: se
|
|
598
598
|
}, null, 8, ["tableChildContents"])
|
|
599
599
|
])) : Qe("", !0)
|
|
600
600
|
]))), 256)),
|
|
601
|
-
|
|
601
|
+
Q(el, {
|
|
602
602
|
visible: n.value,
|
|
603
603
|
onBeforeDestroy: I,
|
|
604
604
|
width: 840
|
|
605
605
|
}, {
|
|
606
606
|
default: he(() => [
|
|
607
|
-
D("div",
|
|
608
|
-
(
|
|
609
|
-
rowContents:
|
|
610
|
-
key:
|
|
607
|
+
D("div", Ks, [
|
|
608
|
+
(Y(), Ve(Ze, {
|
|
609
|
+
rowContents: q.value,
|
|
610
|
+
key: q.value,
|
|
611
611
|
isEnableWrap: !0,
|
|
612
612
|
onChange: be
|
|
613
613
|
}, null, 8, ["rowContents"]))
|
|
@@ -630,77 +630,77 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
630
630
|
]);
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
|
-
},
|
|
633
|
+
}, Ws = /* @__PURE__ */ We(Ns, [["__scopeId", "data-v-e0fef72d"]]), Ms = { class: "table-header-child" }, zs = { class: "table-header-child-main" }, Js = { class: "table-header-child-content" }, Gs = { class: "table-header-child-content-item" }, Hs = { class: "fix-button" }, qs = { key: 0 }, Qs = { class: "form-content" }, Xs = { class: "dialog-footer" }, Ys = {
|
|
634
634
|
__name: "tableChildren",
|
|
635
635
|
props: {
|
|
636
636
|
tableChildContents: Array
|
|
637
637
|
},
|
|
638
638
|
emits: ["fixChange", "deleteChange"],
|
|
639
639
|
setup(r, { emit: S }) {
|
|
640
|
-
const m = r, o = S, n =
|
|
640
|
+
const m = r, o = S, n = z(!1), O = z(""), $ = ja(ll), { tableIndex: _ } = il($), P = z(""), q = z([]), E = z([]), ue = (c) => {
|
|
641
641
|
o("fixChange", l(c));
|
|
642
642
|
}, se = (c) => {
|
|
643
643
|
var h;
|
|
644
644
|
n.value = !0;
|
|
645
645
|
let p = [];
|
|
646
646
|
Ee == null || Ee.forEach((y) => {
|
|
647
|
-
let oe = l(
|
|
647
|
+
let oe = l(_.value) + 1;
|
|
648
648
|
$.setTableIndex(oe), p.push({
|
|
649
649
|
label: y == null ? void 0 : y.label,
|
|
650
650
|
name: y == null ? void 0 : y.label,
|
|
651
651
|
type: y.type,
|
|
652
652
|
value: c[y.key],
|
|
653
|
-
id:
|
|
653
|
+
id: _.value,
|
|
654
654
|
contents: y == null ? void 0 : y.options
|
|
655
655
|
});
|
|
656
656
|
}), c != null && c.children && ((h = c == null ? void 0 : c.children) == null ? void 0 : h.length) > 0 && p.push({
|
|
657
657
|
children: c == null ? void 0 : c.children,
|
|
658
658
|
isFormColHidden: !0
|
|
659
|
-
}), P.value = c == null ? void 0 : c.id,
|
|
659
|
+
}), P.value = c == null ? void 0 : c.id, q.value = p, E.value = p;
|
|
660
660
|
}, Ce = (c) => {
|
|
661
661
|
n.value = !0;
|
|
662
662
|
let p = [];
|
|
663
663
|
Ee == null || Ee.forEach((h) => {
|
|
664
|
-
let y = l(
|
|
664
|
+
let y = l(_.value) + 1;
|
|
665
665
|
$.setTableIndex(y), p.push({
|
|
666
666
|
label: h == null ? void 0 : h.label,
|
|
667
667
|
name: h == null ? void 0 : h.label,
|
|
668
668
|
type: h.type,
|
|
669
669
|
value: "",
|
|
670
|
-
id:
|
|
670
|
+
id: _.value,
|
|
671
671
|
contents: h == null ? void 0 : h.options
|
|
672
672
|
});
|
|
673
|
-
}),
|
|
673
|
+
}), O.value = c == null ? void 0 : c.id, q.value = p, E.value = p;
|
|
674
674
|
}, ce = (c) => {
|
|
675
675
|
let p = l(E.value);
|
|
676
676
|
p = p == null ? void 0 : p.map((h) => (h.children || (h.value = c == null ? void 0 : c[h.name]), h)), E.value = p;
|
|
677
677
|
}, be = () => {
|
|
678
678
|
var p, h;
|
|
679
|
-
|
|
679
|
+
q.value = E.value;
|
|
680
680
|
let c = {};
|
|
681
681
|
if (P.value !== "")
|
|
682
|
-
c.id = P.value, (p =
|
|
682
|
+
c.id = P.value, (p = q.value) == null || p.forEach((y) => {
|
|
683
683
|
const oe = Ee == null ? void 0 : Ee.find((ye) => (ye == null ? void 0 : ye.label) === (y == null ? void 0 : y.label));
|
|
684
684
|
oe ? c[oe.key] = y.value : y != null && y.children && y.children.length > 0 && (c.children = y.children);
|
|
685
685
|
}), n.value = !1, o("fixChange", {
|
|
686
686
|
contents: l(c),
|
|
687
|
-
id:
|
|
687
|
+
id: O.value,
|
|
688
688
|
type: "fix"
|
|
689
689
|
});
|
|
690
690
|
else {
|
|
691
|
-
let y = l(
|
|
692
|
-
$.setTableIndex(y), c.id = "idChild" +
|
|
691
|
+
let y = l(_.value) + 1;
|
|
692
|
+
$.setTableIndex(y), c.id = "idChild" + _.value, (h = q.value) == null || h.forEach((oe) => {
|
|
693
693
|
const ye = Ee == null ? void 0 : Ee.find((Ie) => (Ie == null ? void 0 : Ie.label) === (oe == null ? void 0 : oe.label));
|
|
694
694
|
ye ? c[ye.key] = oe.value : oe != null && oe.children && oe.children.length > 0 && (c.children = oe.children);
|
|
695
695
|
}), n.value = !1, o("fixChange", {
|
|
696
696
|
contents: l(c),
|
|
697
|
-
id:
|
|
697
|
+
id: O.value,
|
|
698
698
|
type: "add"
|
|
699
699
|
});
|
|
700
700
|
}
|
|
701
|
-
P.value = "",
|
|
701
|
+
P.value = "", q.value = [], E.value = [];
|
|
702
702
|
}, C = () => {
|
|
703
|
-
n.value = !1, P.value = "",
|
|
703
|
+
n.value = !1, P.value = "", O.value = "", q.value = [], E.value = [];
|
|
704
704
|
}, I = (c) => {
|
|
705
705
|
Cl.confirm("是否确认要删除", "", {
|
|
706
706
|
confirmButtonText: "确认",
|
|
@@ -720,24 +720,24 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
720
720
|
};
|
|
721
721
|
return (c, p) => {
|
|
722
722
|
const h = Re("svg-icon"), y = Re("el-button");
|
|
723
|
-
return
|
|
724
|
-
(
|
|
725
|
-
D("div",
|
|
726
|
-
D("div",
|
|
727
|
-
D("div",
|
|
728
|
-
|
|
723
|
+
return Y(), _e("div", Ms, [
|
|
724
|
+
(Y(!0), _e(Ue, null, Ne(m == null ? void 0 : m.tableChildContents, (oe, ye) => (Y(), _e("div", zs, [
|
|
725
|
+
D("div", Js, [
|
|
726
|
+
D("div", Gs, De(oe.label), 1),
|
|
727
|
+
D("div", Hs, [
|
|
728
|
+
Q(h, {
|
|
729
729
|
name: "ChildAdd",
|
|
730
730
|
class: "svg-icon-content",
|
|
731
731
|
style: { width: "24px", height: "24px" },
|
|
732
732
|
onClick: (Ie) => Ce(oe)
|
|
733
733
|
}, null, 8, ["onClick"]),
|
|
734
|
-
|
|
734
|
+
Q(h, {
|
|
735
735
|
name: "ChildFix",
|
|
736
736
|
class: "svg-icon-content",
|
|
737
737
|
style: { width: "24px", height: "24px" },
|
|
738
738
|
onClick: (Ie) => se(oe)
|
|
739
739
|
}, null, 8, ["onClick"]),
|
|
740
|
-
|
|
740
|
+
Q(h, {
|
|
741
741
|
name: "ChildDelete",
|
|
742
742
|
class: "svg-icon-content",
|
|
743
743
|
style: { width: "24px", height: "24px" },
|
|
@@ -745,32 +745,32 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
745
745
|
}, null, 8, ["onClick"])
|
|
746
746
|
])
|
|
747
747
|
]),
|
|
748
|
-
oe != null && oe.children && oe.children.length > 0 ? (
|
|
749
|
-
|
|
748
|
+
oe != null && oe.children && oe.children.length > 0 ? (Y(), _e("div", qs, [
|
|
749
|
+
Q(Ws, {
|
|
750
750
|
tableChildContents: oe == null ? void 0 : oe.children,
|
|
751
751
|
onDeleteChange: ve,
|
|
752
752
|
onFixChange: ue
|
|
753
753
|
}, null, 8, ["tableChildContents"])
|
|
754
754
|
])) : Qe("", !0)
|
|
755
755
|
]))), 256)),
|
|
756
|
-
|
|
756
|
+
Q(el, {
|
|
757
757
|
visible: n.value,
|
|
758
758
|
onBeforeDestroy: C,
|
|
759
759
|
width: 840
|
|
760
760
|
}, {
|
|
761
761
|
default: he(() => [
|
|
762
|
-
D("div",
|
|
763
|
-
(
|
|
764
|
-
rowContents:
|
|
765
|
-
key:
|
|
762
|
+
D("div", Qs, [
|
|
763
|
+
(Y(), Ve(Ze, {
|
|
764
|
+
rowContents: q.value,
|
|
765
|
+
key: q.value,
|
|
766
766
|
isEnableWrap: !0,
|
|
767
767
|
onChange: ce
|
|
768
768
|
}, null, 8, ["rowContents"]))
|
|
769
769
|
])
|
|
770
770
|
]),
|
|
771
771
|
footer: he(() => [
|
|
772
|
-
D("div",
|
|
773
|
-
|
|
772
|
+
D("div", Xs, [
|
|
773
|
+
Q(y, {
|
|
774
774
|
onClick: C,
|
|
775
775
|
class: "cancel-button button",
|
|
776
776
|
id: "themeBorderButton"
|
|
@@ -781,7 +781,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
781
781
|
_: 1,
|
|
782
782
|
__: [0]
|
|
783
783
|
}),
|
|
784
|
-
|
|
784
|
+
Q(y, {
|
|
785
785
|
class: "ok-button button",
|
|
786
786
|
onClick: be,
|
|
787
787
|
id: "themeButton"
|
|
@@ -799,7 +799,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
799
799
|
]);
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
|
-
},
|
|
802
|
+
}, Qa = /* @__PURE__ */ We(Ys, [["__scopeId", "data-v-ebd68fa1"]]), Zs = { class: "table-operate-content" }, ei = { class: "table-operate-item" }, li = { class: "operate-title" }, ai = { class: "operate-content" }, si = { class: "fix-content" }, ii = { class: "fix-content-label" }, oi = { class: "fix-button" }, ni = { key: 0 }, ui = { class: "operate-title" }, ri = { class: "operate-content" }, ci = { class: "fix-content" }, ti = { class: "fix-content-label" }, di = { class: "fix-button" }, pi = { class: "operate-title" }, fi = { class: "operate-content" }, vi = { class: "fix-content" }, hi = { class: "fix-content-label" }, mi = { class: "fix-button" }, yi = { class: "operate-title" }, bi = { class: "operate-content" }, gi = { class: "fix-content" }, ki = { class: "fix-content-label" }, _i = { class: "fix-button" }, Ci = { class: "operate-content" }, wi = { style: { display: "flex", "justify-content": "space-between" } }, Di = { class: "form-content" }, Ii = { class: "dialog-footer" }, xi = { class: "form-content" }, Ti = { class: "dialog-footer" }, Ai = { class: "form-content" }, Ei = { class: "dialog-footer" }, Si = { class: "form-content" }, $i = { class: "dialog-footer" }, Bi = {
|
|
803
803
|
__name: "operate",
|
|
804
804
|
props: {
|
|
805
805
|
itemContents: {
|
|
@@ -813,7 +813,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
813
813
|
},
|
|
814
814
|
emits: ["change"],
|
|
815
815
|
setup(r, { emit: S }) {
|
|
816
|
-
const m = r, o = S, n =
|
|
816
|
+
const m = r, o = S, n = z([]), O = z(!1), $ = z(!1), _ = z([]), P = z(!1), q = z([]), E = z(!1), ue = z([]), se = z(""), Ce = z(""), ce = z([]), be = z([]), C = z([]), I = z([]), ve = z(!1), c = z([]), p = z([]), h = z(0), y = z([]), oe = z([]), ye = z([]), Ie = () => {
|
|
817
817
|
ve.value = !0;
|
|
818
818
|
let e = [];
|
|
819
819
|
kl == null || kl.forEach((s) => {
|
|
@@ -844,10 +844,10 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
844
844
|
e || (y.value = oe.value);
|
|
845
845
|
}, b = async (e) => {
|
|
846
846
|
var s, t, d, x, fe, ke, R, le, ie, me, j, U;
|
|
847
|
-
if ((e == null ? void 0 : e.类型) !== ((t = (s = oe.value) == null ? void 0 : s.find((
|
|
848
|
-
let
|
|
849
|
-
if (
|
|
850
|
-
h.value++,
|
|
847
|
+
if ((e == null ? void 0 : e.类型) !== ((t = (s = oe.value) == null ? void 0 : s.find((L) => (L == null ? void 0 : L.label) === "类型")) == null ? void 0 : t.value)) {
|
|
848
|
+
let L = [], N = await ((fe = (x = (d = qe) == null ? void 0 : d.find((ge) => (ge == null ? void 0 : ge.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : x.value) == null ? void 0 : fe.value) ? await ((me = (ie = (le = qe) == null ? void 0 : le.find((ge) => (ge == null ? void 0 : ge.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : ie.value) == null ? void 0 : me.value) : (R = (ke = qe) == null ? void 0 : ke.find((ge) => (ge == null ? void 0 : ge.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : R.value;
|
|
849
|
+
if (N == null || N.forEach((ge) => {
|
|
850
|
+
h.value++, L.push({
|
|
851
851
|
label: ge == null ? void 0 : ge.label,
|
|
852
852
|
name: ge == null ? void 0 : ge.label,
|
|
853
853
|
type: ge.type,
|
|
@@ -856,19 +856,19 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
856
856
|
contents: ge == null ? void 0 : ge.options
|
|
857
857
|
});
|
|
858
858
|
}), e != null && e.菜单选项 && ((j = e == null ? void 0 : e.菜单选项) == null ? void 0 : j.length) > 0) {
|
|
859
|
-
const ge = await
|
|
860
|
-
|
|
859
|
+
const ge = await Fl(e == null ? void 0 : e.菜单选项);
|
|
860
|
+
L = L == null ? void 0 : L.map((xe) => ((xe == null ? void 0 : xe.name) === "组信息选项" && (xe.contents = ge), xe));
|
|
861
861
|
}
|
|
862
|
-
oe.value = await bl(l(
|
|
862
|
+
oe.value = await bl(l(L)), y.value = await bl(l(L));
|
|
863
863
|
} else {
|
|
864
|
-
let
|
|
865
|
-
if (
|
|
866
|
-
const
|
|
867
|
-
|
|
864
|
+
let L = l(y.value);
|
|
865
|
+
if (L = L == null ? void 0 : L.map((N) => (N.value = e == null ? void 0 : e[N.name], N)), e != null && e.菜单选项 && ((U = e == null ? void 0 : e.菜单选项) == null ? void 0 : U.length) > 0) {
|
|
866
|
+
const N = await Fl(e == null ? void 0 : e.菜单选项);
|
|
867
|
+
L = L == null ? void 0 : L.map((ge) => ((ge == null ? void 0 : ge.name) === "组信息选项" && (ge.contents = N), ge));
|
|
868
868
|
}
|
|
869
|
-
|
|
869
|
+
L = Tl(L), oe.value = await bl(l(L));
|
|
870
870
|
}
|
|
871
|
-
},
|
|
871
|
+
}, W = async (e) => {
|
|
872
872
|
await b(e), y.value = oe.value;
|
|
873
873
|
}, a = (e, s) => {
|
|
874
874
|
if (console.log(345, e), (s == null ? void 0 : s.type) == "Select" && (e == null ? void 0 : e.key) === "selectRelateType") {
|
|
@@ -887,7 +887,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
887
887
|
return (s == null ? void 0 : s.value) || s[e.key];
|
|
888
888
|
if ((s == null ? void 0 : s.type) == "Select" && (e == null ? void 0 : e.key) === "multiple") {
|
|
889
889
|
const t = s[e.key];
|
|
890
|
-
return
|
|
890
|
+
return Ma(t) ? t : e.default;
|
|
891
891
|
}
|
|
892
892
|
return (e == null ? void 0 : e.label) === "类型" && s[e.key] === "" ? "Input" : (e == null ? void 0 : e.key) === "isFormColHidden" && !s[e.key] ? !1 : s[e.key];
|
|
893
893
|
}, v = async (e) => {
|
|
@@ -906,10 +906,10 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
906
906
|
contents: U == null ? void 0 : U.options
|
|
907
907
|
});
|
|
908
908
|
}), e != null && e.menuSelect && ((j = e == null ? void 0 : e.menuSelect) == null ? void 0 : j.length) > 0) {
|
|
909
|
-
const U = await
|
|
910
|
-
s = s == null ? void 0 : s.map((
|
|
909
|
+
const U = await Fl(e == null ? void 0 : e.menuSelect);
|
|
910
|
+
s = s == null ? void 0 : s.map((L) => ((L == null ? void 0 : L.name) === "组信息选项" && (L.contents = U), L));
|
|
911
911
|
}
|
|
912
|
-
se.value = e == null ? void 0 : e.id, y.value = await bl(
|
|
912
|
+
se.value = e == null ? void 0 : e.id, y.value = await bl(Tl(s)), oe.value = await bl(Tl(s));
|
|
913
913
|
}, f = (e) => {
|
|
914
914
|
Cl.confirm("是否确认要删除", "", {
|
|
915
915
|
confirmButtonText: "确认",
|
|
@@ -932,25 +932,25 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
932
932
|
y.value = oe.value;
|
|
933
933
|
let e = {};
|
|
934
934
|
se.value !== "" ? e.id = se.value : (h.value++, e.id = "id" + h.value);
|
|
935
|
-
let s = await ((fe = (x = (d = qe) == null ? void 0 : d.find((
|
|
936
|
-
var
|
|
937
|
-
return (
|
|
938
|
-
})) == null ? void 0 : x.value) == null ? void 0 : fe.value) ?? ((R = (ke = qe) == null ? void 0 : ke.find((
|
|
939
|
-
var
|
|
940
|
-
return (
|
|
935
|
+
let s = await ((fe = (x = (d = qe) == null ? void 0 : d.find((L) => {
|
|
936
|
+
var N, ge;
|
|
937
|
+
return (L == null ? void 0 : L.key) === (((ge = (N = y.value) == null ? void 0 : N.find((xe) => (xe == null ? void 0 : xe.label) === "类型")) == null ? void 0 : ge.value) ?? "label");
|
|
938
|
+
})) == null ? void 0 : x.value) == null ? void 0 : fe.value) ?? ((R = (ke = qe) == null ? void 0 : ke.find((L) => {
|
|
939
|
+
var N, ge;
|
|
940
|
+
return (L == null ? void 0 : L.key) === (((ge = (N = y.value) == null ? void 0 : N.find((xe) => (xe == null ? void 0 : xe.label) === "类型")) == null ? void 0 : ge.value) ?? "label");
|
|
941
941
|
})) == null ? void 0 : R.value);
|
|
942
|
-
if ((le = y.value) == null || le.forEach((
|
|
943
|
-
const
|
|
944
|
-
|
|
945
|
-
}), e.name = e.label, (ie = ye.value) != null && ie.find((
|
|
946
|
-
ye.value = (me = ye.value) == null ? void 0 : me.map((
|
|
942
|
+
if ((le = y.value) == null || le.forEach((L) => {
|
|
943
|
+
const N = s == null ? void 0 : s.find((ge) => (ge == null ? void 0 : ge.label) === (L == null ? void 0 : L.label));
|
|
944
|
+
N && (e[N.key] = L.value);
|
|
945
|
+
}), e.name = e.label, (ie = ye.value) != null && ie.find((L) => L.id === e.id))
|
|
946
|
+
ye.value = (me = ye.value) == null ? void 0 : me.map((L) => (L.id === e.id && (L = e), L));
|
|
947
947
|
else {
|
|
948
|
-
let
|
|
949
|
-
ye.value || (ye.value = []),
|
|
948
|
+
let L = l(ye.value);
|
|
949
|
+
ye.value || (ye.value = []), L.push(e), ye.value = L;
|
|
950
950
|
}
|
|
951
|
-
ye.value = ye.value.map(({ id:
|
|
951
|
+
ye.value = ye.value.map(({ id: L, ...N }) => N), $.value = !1, se.value = "";
|
|
952
952
|
let t = l(m.originalItemContents);
|
|
953
|
-
(j = l(m.originalItemContents)) != null && j.find((
|
|
953
|
+
(j = l(m.originalItemContents)) != null && j.find((L) => (L == null ? void 0 : L.key) === "tableToForm") ? t = (U = l(m.originalItemContents)) == null ? void 0 : U.map((L) => ((L == null ? void 0 : L.key) === "tableToForm" && (L.contents = ye.value), L)) : t.push({
|
|
954
954
|
key: "tableToForm",
|
|
955
955
|
contents: ye.value
|
|
956
956
|
}), o("change", t);
|
|
@@ -1014,12 +1014,12 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1014
1014
|
key: "extraButton",
|
|
1015
1015
|
contents: be.value
|
|
1016
1016
|
}), o("change", s);
|
|
1017
|
-
},
|
|
1017
|
+
}, G = (e) => {
|
|
1018
1018
|
let s = l(p.value);
|
|
1019
1019
|
s = s == null ? void 0 : s.map((t) => (t.children || (t.value = e == null ? void 0 : e[t.name]), t)), p.value = s;
|
|
1020
1020
|
}, B = () => {
|
|
1021
1021
|
ve.value = !1, c.value = [], se.value = "";
|
|
1022
|
-
},
|
|
1022
|
+
}, Z = (e) => {
|
|
1023
1023
|
P.value = !0;
|
|
1024
1024
|
let s = [];
|
|
1025
1025
|
_l == null || _l.forEach((t) => {
|
|
@@ -1032,7 +1032,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1032
1032
|
contents: t == null ? void 0 : t.options
|
|
1033
1033
|
});
|
|
1034
1034
|
}), se.value = e == null ? void 0 : e.id, C.value = s, I.value = s;
|
|
1035
|
-
},
|
|
1035
|
+
}, ne = (e) => {
|
|
1036
1036
|
Cl.confirm("是否确认要删除", "", {
|
|
1037
1037
|
confirmButtonText: "确认",
|
|
1038
1038
|
cancelButtonText: "取消",
|
|
@@ -1047,8 +1047,8 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
).catch(() => {
|
|
1049
1049
|
});
|
|
1050
|
-
},
|
|
1051
|
-
|
|
1050
|
+
}, K = () => {
|
|
1051
|
+
O.value = !0;
|
|
1052
1052
|
let e = [];
|
|
1053
1053
|
Ee == null || Ee.forEach((s) => {
|
|
1054
1054
|
h.value++, e.push({
|
|
@@ -1059,8 +1059,8 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1059
1059
|
id: h.value,
|
|
1060
1060
|
contents: s == null ? void 0 : s.options
|
|
1061
1061
|
});
|
|
1062
|
-
}),
|
|
1063
|
-
},
|
|
1062
|
+
}), q.value = e, ue.value = e;
|
|
1063
|
+
}, k = () => {
|
|
1064
1064
|
P.value = !0;
|
|
1065
1065
|
let e = [];
|
|
1066
1066
|
_l == null || _l.forEach((s) => {
|
|
@@ -1073,7 +1073,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1073
1073
|
contents: s == null ? void 0 : s.options
|
|
1074
1074
|
});
|
|
1075
1075
|
}), C.value = e, I.value = e;
|
|
1076
|
-
},
|
|
1076
|
+
}, H = (e) => {
|
|
1077
1077
|
let s = l(I.value);
|
|
1078
1078
|
s = s == null ? void 0 : s.map((t) => (t.children || (t.value = e == null ? void 0 : e[t.name]), t)), I.value = s;
|
|
1079
1079
|
}, g = () => {
|
|
@@ -1097,8 +1097,8 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1097
1097
|
}), o("change", s);
|
|
1098
1098
|
}, ee = () => {
|
|
1099
1099
|
P.value = !1, se.value = "", I.value = [], C.value = [];
|
|
1100
|
-
},
|
|
1101
|
-
|
|
1100
|
+
}, M = (e) => {
|
|
1101
|
+
O.value = !0;
|
|
1102
1102
|
let s = [];
|
|
1103
1103
|
Ee == null || Ee.forEach((t) => {
|
|
1104
1104
|
h.value++, s.push({
|
|
@@ -1109,24 +1109,24 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1109
1109
|
id: h.value,
|
|
1110
1110
|
contents: t == null ? void 0 : t.options
|
|
1111
1111
|
});
|
|
1112
|
-
}),
|
|
1113
|
-
},
|
|
1112
|
+
}), q.value = s, Ce.value = e == null ? void 0 : e.id, ue.value = s;
|
|
1113
|
+
}, J = (e) => {
|
|
1114
1114
|
var s;
|
|
1115
|
-
|
|
1115
|
+
_.value = Ja(l(_.value), e == null ? void 0 : e.id), o("change", (s = l(m.originalItemContents)) == null ? void 0 : s.map((t) => {
|
|
1116
1116
|
var d;
|
|
1117
|
-
return (t == null ? void 0 : t.key) === "header" && (t.contents = (d =
|
|
1117
|
+
return (t == null ? void 0 : t.key) === "header" && (t.contents = (d = _.value) != null && d.some((x) => x == null ? void 0 : x.children) ? [_.value] : _.value), t;
|
|
1118
1118
|
}));
|
|
1119
1119
|
}, ae = (e) => {
|
|
1120
1120
|
var t, d, x;
|
|
1121
|
-
e.type === "fix" ? e.id !== "" ?
|
|
1121
|
+
e.type === "fix" ? e.id !== "" ? _.value = Ha(_.value, e) : _.value = Ga(_.value, e == null ? void 0 : e.contents) : _.value = qa(_.value, e), _.value = (t = _.value) != null && t.some((fe) => fe == null ? void 0 : fe.children) ? [_.value] : _.value, se.value = "";
|
|
1122
1122
|
let s = l(m.originalItemContents);
|
|
1123
|
-
(d = l(m.originalItemContents)) != null && d.find((fe) => (fe == null ? void 0 : fe.key) === "header") ? s = (x = l(m.originalItemContents)) == null ? void 0 : x.map((fe) => ((fe == null ? void 0 : fe.key) === "header" && (fe.contents =
|
|
1123
|
+
(d = l(m.originalItemContents)) != null && d.find((fe) => (fe == null ? void 0 : fe.key) === "header") ? s = (x = l(m.originalItemContents)) == null ? void 0 : x.map((fe) => ((fe == null ? void 0 : fe.key) === "header" && (fe.contents = _.value), fe)) : s.push({
|
|
1124
1124
|
key: "header",
|
|
1125
|
-
contents:
|
|
1125
|
+
contents: _.value
|
|
1126
1126
|
}), o("change", s);
|
|
1127
1127
|
}, V = (e) => {
|
|
1128
1128
|
var t;
|
|
1129
|
-
|
|
1129
|
+
O.value = !0;
|
|
1130
1130
|
let s = [];
|
|
1131
1131
|
Ee == null || Ee.forEach((d) => {
|
|
1132
1132
|
h.value++, s.push({
|
|
@@ -1140,30 +1140,30 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1140
1140
|
}), e != null && e.children && ((t = e == null ? void 0 : e.children) == null ? void 0 : t.length) > 0 && s.push({
|
|
1141
1141
|
children: e == null ? void 0 : e.children,
|
|
1142
1142
|
isFormColHidden: !0
|
|
1143
|
-
}), se.value = e == null ? void 0 : e.id, Ce.value = "",
|
|
1143
|
+
}), se.value = e == null ? void 0 : e.id, Ce.value = "", q.value = s, ue.value = s;
|
|
1144
1144
|
}, i = (e) => {
|
|
1145
1145
|
let s = l(ue.value);
|
|
1146
1146
|
s = s == null ? void 0 : s.map((t) => (t.children || (t.value = e == null ? void 0 : e[t.name]), t)), ue.value = s;
|
|
1147
|
-
},
|
|
1148
|
-
|
|
1147
|
+
}, X = () => {
|
|
1148
|
+
O.value = !1, se.value = "", Ce.value = "", ue.value = [];
|
|
1149
1149
|
}, re = () => {
|
|
1150
1150
|
var t, d, x, fe, ke, R;
|
|
1151
|
-
|
|
1151
|
+
q.value = ue.value;
|
|
1152
1152
|
let e = {};
|
|
1153
|
-
if (se.value !== "" ? e.id = se.value : (h.value++, e.id = "id" + h.value), (t =
|
|
1153
|
+
if (se.value !== "" ? e.id = se.value : (h.value++, e.id = "id" + h.value), (t = q.value) == null || t.forEach((le) => {
|
|
1154
1154
|
const ie = Ee == null ? void 0 : Ee.find((me) => (me == null ? void 0 : me.label) === (le == null ? void 0 : le.label));
|
|
1155
1155
|
ie ? e[ie.key] = le.value : le != null && le.children && le.children.length > 0 && (e.children = le.children);
|
|
1156
|
-
}), (d =
|
|
1157
|
-
|
|
1156
|
+
}), (d = _.value) != null && d.find((le) => le.id === e.id))
|
|
1157
|
+
_.value = (x = _.value) == null ? void 0 : x.map((le) => (le.id === e.id && (le = e), le));
|
|
1158
1158
|
else {
|
|
1159
|
-
let le = l(
|
|
1160
|
-
Ce.value === "" ? le.push(e) : le = le == null ? void 0 : le.map((ie) => (ie.id === Ce.value && (ie.children || (ie.children = []), ie.children.push(e)), ie)),
|
|
1159
|
+
let le = l(_.value) ?? [];
|
|
1160
|
+
Ce.value === "" ? le.push(e) : le = le == null ? void 0 : le.map((ie) => (ie.id === Ce.value && (ie.children || (ie.children = []), ie.children.push(e)), ie)), _.value = le;
|
|
1161
1161
|
}
|
|
1162
|
-
|
|
1162
|
+
_.value = (fe = _.value) != null && fe.some((le) => le == null ? void 0 : le.children) ? [_.value] : _.value, O.value = !1, se.value = "", Ce.value = "";
|
|
1163
1163
|
let s = l(m.originalItemContents);
|
|
1164
|
-
(ke = l(m.originalItemContents)) != null && ke.find((le) => (le == null ? void 0 : le.key) === "header") ? s = (R = l(m.originalItemContents)) == null ? void 0 : R.map((le) => ((le == null ? void 0 : le.key) === "header" && (le.contents =
|
|
1164
|
+
(ke = l(m.originalItemContents)) != null && ke.find((le) => (le == null ? void 0 : le.key) === "header") ? s = (R = l(m.originalItemContents)) == null ? void 0 : R.map((le) => ((le == null ? void 0 : le.key) === "header" && (le.contents = _.value), le)) : s.push({
|
|
1165
1165
|
key: "header",
|
|
1166
|
-
contents:
|
|
1166
|
+
contents: _.value
|
|
1167
1167
|
}), o("change", s);
|
|
1168
1168
|
}, de = (e) => {
|
|
1169
1169
|
Cl.confirm("是否确认要删除", "", {
|
|
@@ -1173,9 +1173,9 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1173
1173
|
}).then(
|
|
1174
1174
|
() => {
|
|
1175
1175
|
var s, t;
|
|
1176
|
-
|
|
1176
|
+
_.value = (s = l(_.value)) == null ? void 0 : s.filter((d) => (d == null ? void 0 : d.id) !== (e == null ? void 0 : e.id)), o("change", (t = l(m.originalItemContents)) == null ? void 0 : t.map((d) => {
|
|
1177
1177
|
var x;
|
|
1178
|
-
return (d == null ? void 0 : d.key) === "header" && (d.contents = (x =
|
|
1178
|
+
return (d == null ? void 0 : d.key) === "header" && (d.contents = (x = _.value) != null && x.some((fe) => fe == null ? void 0 : fe.children) ? [_.value] : _.value), d;
|
|
1179
1179
|
})), ol({
|
|
1180
1180
|
type: "success",
|
|
1181
1181
|
message: "删除成功"
|
|
@@ -1187,9 +1187,9 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1187
1187
|
return Xe(
|
|
1188
1188
|
() => m.originalItemContents,
|
|
1189
1189
|
() => {
|
|
1190
|
-
var e, s, t, d, x, fe, ke, R, le, ie, me, j, U,
|
|
1190
|
+
var e, s, t, d, x, fe, ke, R, le, ie, me, j, U, L, N, ge, xe, Oe, $e;
|
|
1191
1191
|
if (!(!m.originalItemContents || m.originalItemContents.length === 0))
|
|
1192
|
-
if (n.value = l(m.originalItemContents),
|
|
1192
|
+
if (n.value = l(m.originalItemContents), _.value = (s = (e = n.value) == null ? void 0 : e.find((T) => (T == null ? void 0 : T.key) === "header")) == null ? void 0 : s.contents, ce.value = (d = (t = n.value) == null ? void 0 : t.find((T) => (T == null ? void 0 : T.key) === "rowButton")) == null ? void 0 : d.contents, be.value = (fe = (x = n.value) == null ? void 0 : x.find((T) => (T == null ? void 0 : T.key) === "extraButton")) == null ? void 0 : fe.contents, E.value = (R = (ke = n.value) == null ? void 0 : ke.find((T) => (T == null ? void 0 : T.key) === "page")) != null && R.contents ? !!((ie = (le = n.value) == null ? void 0 : le.find((T) => (T == null ? void 0 : T.key) === "page")) != null && ie.contents) : !1, ye.value = (j = (me = n.value) == null ? void 0 : me.find((T) => (T == null ? void 0 : T.key) === "tableToForm")) == null ? void 0 : j.contents, _.value = (U = _.value) == null ? void 0 : U.map((T, Se) => (Array.isArray(T) ? T = Bs(T) : T = {
|
|
1193
1193
|
label: (T == null ? void 0 : T.label) ?? "",
|
|
1194
1194
|
prop: (T == null ? void 0 : T.label) === "操作" ? "operate" : T == null ? void 0 : T.prop,
|
|
1195
1195
|
width: T != null && T.width ? parseInt(T.width) : "",
|
|
@@ -1203,7 +1203,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1203
1203
|
id: (T == null ? void 0 : T.id) ?? Se,
|
|
1204
1204
|
formMenuSelect: (T == null ? void 0 : T.formMenuSelect) ?? void 0,
|
|
1205
1205
|
groupSelect: (T == null ? void 0 : T.groupSelect) ?? void 0
|
|
1206
|
-
}, T)),
|
|
1206
|
+
}, T)), _.value = (L = _.value) != null && L.every((T) => Array.isArray(T)) ? (N = _.value) == null ? void 0 : N[0] : _.value, ce.value = (ge = ce.value) == null ? void 0 : ge.map((T, Se) => T = {
|
|
1207
1207
|
label: (T == null ? void 0 : T.label) ?? "",
|
|
1208
1208
|
type: (T == null ? void 0 : T.type) ?? "",
|
|
1209
1209
|
textColor: (T == null ? void 0 : T.textColor) ?? "#000000",
|
|
@@ -1221,7 +1221,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1221
1221
|
});
|
|
1222
1222
|
else {
|
|
1223
1223
|
let T = [];
|
|
1224
|
-
const Se = (
|
|
1224
|
+
const Se = (Oe = hs(l(_.value))) == null ? void 0 : Oe.filter((Te) => (Te == null ? void 0 : Te.prop) !== "operate");
|
|
1225
1225
|
Se == null || Se.forEach((Te) => {
|
|
1226
1226
|
var Me;
|
|
1227
1227
|
h.value++, T.push({
|
|
@@ -1241,17 +1241,17 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1241
1241
|
{ deep: !0, immediate: !0 }
|
|
1242
1242
|
), (e, s) => {
|
|
1243
1243
|
const t = Re("svg-icon"), d = Re("el-button");
|
|
1244
|
-
return
|
|
1245
|
-
D("div",
|
|
1246
|
-
D("div",
|
|
1244
|
+
return Y(), _e("div", Zs, [
|
|
1245
|
+
D("div", ei, [
|
|
1246
|
+
D("div", li, [
|
|
1247
1247
|
s[2] || (s[2] = D("div", null, De("表头"), -1)),
|
|
1248
|
-
|
|
1248
|
+
Q(d, {
|
|
1249
1249
|
class: "icon-content",
|
|
1250
|
-
onClick:
|
|
1250
|
+
onClick: K,
|
|
1251
1251
|
id: "themeButton"
|
|
1252
1252
|
}, {
|
|
1253
1253
|
icon: he(() => [
|
|
1254
|
-
|
|
1254
|
+
Q(t, {
|
|
1255
1255
|
name: "Plus",
|
|
1256
1256
|
class: "icon-size"
|
|
1257
1257
|
})
|
|
@@ -1263,24 +1263,24 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1263
1263
|
__: [1]
|
|
1264
1264
|
})
|
|
1265
1265
|
]),
|
|
1266
|
-
D("div",
|
|
1267
|
-
(
|
|
1268
|
-
D("div",
|
|
1269
|
-
D("div",
|
|
1270
|
-
D("div",
|
|
1271
|
-
|
|
1266
|
+
D("div", ai, [
|
|
1267
|
+
(Y(!0), _e(Ue, null, Ne(_.value, (x, fe) => (Y(), _e("div", { key: fe }, [
|
|
1268
|
+
D("div", si, [
|
|
1269
|
+
D("div", ii, De(x == null ? void 0 : x.label), 1),
|
|
1270
|
+
D("div", oi, [
|
|
1271
|
+
Q(t, {
|
|
1272
1272
|
name: "ChildAdd",
|
|
1273
1273
|
class: "svg-icon-content",
|
|
1274
1274
|
style: { width: "24px", height: "24px" },
|
|
1275
|
-
onClick: (ke) =>
|
|
1275
|
+
onClick: (ke) => M(x)
|
|
1276
1276
|
}, null, 8, ["onClick"]),
|
|
1277
|
-
|
|
1277
|
+
Q(t, {
|
|
1278
1278
|
name: "ChildFix",
|
|
1279
1279
|
class: "svg-icon-content",
|
|
1280
1280
|
style: { width: "24px", height: "24px" },
|
|
1281
1281
|
onClick: (ke) => V(x)
|
|
1282
1282
|
}, null, 8, ["onClick"]),
|
|
1283
|
-
|
|
1283
|
+
Q(t, {
|
|
1284
1284
|
name: "ChildDelete",
|
|
1285
1285
|
class: "svg-icon-content",
|
|
1286
1286
|
style: { width: "24px", height: "24px" },
|
|
@@ -1288,24 +1288,24 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1288
1288
|
}, null, 8, ["onClick"])
|
|
1289
1289
|
])
|
|
1290
1290
|
]),
|
|
1291
|
-
x != null && x.children && x.children.length > 0 ? (
|
|
1292
|
-
|
|
1291
|
+
x != null && x.children && x.children.length > 0 ? (Y(), _e("div", ni, [
|
|
1292
|
+
Q(Qa, {
|
|
1293
1293
|
tableChildContents: x == null ? void 0 : x.children,
|
|
1294
|
-
onDeleteChange:
|
|
1294
|
+
onDeleteChange: J,
|
|
1295
1295
|
onFixChange: ae
|
|
1296
1296
|
}, null, 8, ["tableChildContents"])
|
|
1297
1297
|
])) : Qe("", !0)
|
|
1298
1298
|
]))), 128))
|
|
1299
1299
|
]),
|
|
1300
|
-
D("div",
|
|
1300
|
+
D("div", ui, [
|
|
1301
1301
|
s[4] || (s[4] = D("div", null, De("行内按钮"), -1)),
|
|
1302
|
-
|
|
1302
|
+
Q(d, {
|
|
1303
1303
|
class: "icon-content",
|
|
1304
1304
|
id: "themeButton",
|
|
1305
|
-
onClick:
|
|
1305
|
+
onClick: k
|
|
1306
1306
|
}, {
|
|
1307
1307
|
icon: he(() => [
|
|
1308
|
-
|
|
1308
|
+
Q(t, {
|
|
1309
1309
|
name: "Plus",
|
|
1310
1310
|
class: "icon-size"
|
|
1311
1311
|
})
|
|
@@ -1317,36 +1317,36 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1317
1317
|
__: [3]
|
|
1318
1318
|
})
|
|
1319
1319
|
]),
|
|
1320
|
-
D("div",
|
|
1321
|
-
(
|
|
1322
|
-
D("div",
|
|
1323
|
-
D("div",
|
|
1324
|
-
D("div",
|
|
1325
|
-
|
|
1320
|
+
D("div", ri, [
|
|
1321
|
+
(Y(!0), _e(Ue, null, Ne(ce.value, (x, fe) => (Y(), _e("div", { key: fe }, [
|
|
1322
|
+
D("div", ci, [
|
|
1323
|
+
D("div", ti, De(x == null ? void 0 : x.label), 1),
|
|
1324
|
+
D("div", di, [
|
|
1325
|
+
Q(t, {
|
|
1326
1326
|
name: "ChildFix",
|
|
1327
1327
|
style: { width: "24px", height: "24px" },
|
|
1328
1328
|
class: "svg-icon-content",
|
|
1329
|
-
onClick: (ke) =>
|
|
1329
|
+
onClick: (ke) => Z(x)
|
|
1330
1330
|
}, null, 8, ["onClick"]),
|
|
1331
|
-
|
|
1331
|
+
Q(t, {
|
|
1332
1332
|
name: "ChildDelete",
|
|
1333
1333
|
class: "svg-icon-content",
|
|
1334
1334
|
style: { width: "24px", height: "24px" },
|
|
1335
|
-
onClick: (ke) =>
|
|
1335
|
+
onClick: (ke) => ne(x)
|
|
1336
1336
|
}, null, 8, ["onClick"])
|
|
1337
1337
|
])
|
|
1338
1338
|
])
|
|
1339
1339
|
]))), 128))
|
|
1340
1340
|
]),
|
|
1341
|
-
D("div",
|
|
1341
|
+
D("div", pi, [
|
|
1342
1342
|
s[6] || (s[6] = D("div", null, De("表外按钮"), -1)),
|
|
1343
|
-
|
|
1343
|
+
Q(d, {
|
|
1344
1344
|
class: "icon-content",
|
|
1345
1345
|
id: "themeButton",
|
|
1346
1346
|
onClick: Ie
|
|
1347
1347
|
}, {
|
|
1348
1348
|
icon: he(() => [
|
|
1349
|
-
|
|
1349
|
+
Q(t, {
|
|
1350
1350
|
name: "Plus",
|
|
1351
1351
|
class: "icon-size"
|
|
1352
1352
|
})
|
|
@@ -1358,18 +1358,18 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1358
1358
|
__: [5]
|
|
1359
1359
|
})
|
|
1360
1360
|
]),
|
|
1361
|
-
D("div",
|
|
1362
|
-
(
|
|
1363
|
-
D("div",
|
|
1364
|
-
D("div",
|
|
1365
|
-
D("div",
|
|
1366
|
-
|
|
1361
|
+
D("div", fi, [
|
|
1362
|
+
(Y(!0), _e(Ue, null, Ne(be.value, (x, fe) => (Y(), _e("div", { key: fe }, [
|
|
1363
|
+
D("div", vi, [
|
|
1364
|
+
D("div", hi, De(x == null ? void 0 : x.label), 1),
|
|
1365
|
+
D("div", mi, [
|
|
1366
|
+
Q(t, {
|
|
1367
1367
|
name: "ChildFix",
|
|
1368
1368
|
style: { width: "24px", height: "24px" },
|
|
1369
1369
|
class: "svg-icon-content",
|
|
1370
1370
|
onClick: (ke) => te(x)
|
|
1371
1371
|
}, null, 8, ["onClick"]),
|
|
1372
|
-
|
|
1372
|
+
Q(t, {
|
|
1373
1373
|
name: "ChildDelete",
|
|
1374
1374
|
class: "svg-icon-content",
|
|
1375
1375
|
style: { width: "24px", height: "24px" },
|
|
@@ -1379,15 +1379,15 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1379
1379
|
])
|
|
1380
1380
|
]))), 128))
|
|
1381
1381
|
]),
|
|
1382
|
-
D("div",
|
|
1382
|
+
D("div", yi, [
|
|
1383
1383
|
s[8] || (s[8] = D("div", null, De("表格弹框字段设置"), -1)),
|
|
1384
|
-
|
|
1384
|
+
Q(d, {
|
|
1385
1385
|
class: "icon-content",
|
|
1386
1386
|
id: "themeButton",
|
|
1387
1387
|
onClick: pe
|
|
1388
1388
|
}, {
|
|
1389
1389
|
icon: he(() => [
|
|
1390
|
-
|
|
1390
|
+
Q(t, {
|
|
1391
1391
|
name: "Plus",
|
|
1392
1392
|
class: "icon-size"
|
|
1393
1393
|
})
|
|
@@ -1399,18 +1399,18 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1399
1399
|
__: [7]
|
|
1400
1400
|
})
|
|
1401
1401
|
]),
|
|
1402
|
-
D("div",
|
|
1403
|
-
(
|
|
1404
|
-
D("div",
|
|
1405
|
-
D("div",
|
|
1406
|
-
D("div",
|
|
1407
|
-
|
|
1402
|
+
D("div", bi, [
|
|
1403
|
+
(Y(!0), _e(Ue, null, Ne(ye.value, (x, fe) => (Y(), _e("div", { key: fe }, [
|
|
1404
|
+
D("div", gi, [
|
|
1405
|
+
D("div", ki, De(x == null ? void 0 : x.label), 1),
|
|
1406
|
+
D("div", _i, [
|
|
1407
|
+
Q(t, {
|
|
1408
1408
|
name: "ChildFix",
|
|
1409
1409
|
style: { width: "24px", height: "24px" },
|
|
1410
1410
|
class: "svg-icon-content",
|
|
1411
1411
|
onClick: (ke) => v(x)
|
|
1412
1412
|
}, null, 8, ["onClick"]),
|
|
1413
|
-
|
|
1413
|
+
Q(t, {
|
|
1414
1414
|
name: "ChildDelete",
|
|
1415
1415
|
class: "svg-icon-content",
|
|
1416
1416
|
style: { width: "24px", height: "24px" },
|
|
@@ -1423,35 +1423,35 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1423
1423
|
s[10] || (s[10] = D("div", { class: "operate-title" }, [
|
|
1424
1424
|
D("div", null, De("分页"))
|
|
1425
1425
|
], -1)),
|
|
1426
|
-
D("div",
|
|
1427
|
-
D("div",
|
|
1426
|
+
D("div", Ci, [
|
|
1427
|
+
D("div", wi, [
|
|
1428
1428
|
s[9] || (s[9] = D("div", { class: "operate-center-content" }, De("是否分页"), -1)),
|
|
1429
|
-
|
|
1429
|
+
Q(Wa, {
|
|
1430
1430
|
modelValue: E.value,
|
|
1431
1431
|
"onUpdate:modelValue": s[0] || (s[0] = (x) => E.value = x)
|
|
1432
1432
|
}, null, 8, ["modelValue"])
|
|
1433
1433
|
])
|
|
1434
1434
|
])
|
|
1435
1435
|
]),
|
|
1436
|
-
|
|
1437
|
-
visible:
|
|
1438
|
-
onBeforeDestroy:
|
|
1436
|
+
Q(el, {
|
|
1437
|
+
visible: O.value,
|
|
1438
|
+
onBeforeDestroy: X,
|
|
1439
1439
|
width: 840
|
|
1440
1440
|
}, {
|
|
1441
1441
|
default: he(() => [
|
|
1442
|
-
D("div",
|
|
1443
|
-
(
|
|
1444
|
-
rowContents:
|
|
1445
|
-
key:
|
|
1442
|
+
D("div", Di, [
|
|
1443
|
+
(Y(), Ve(Ze, {
|
|
1444
|
+
rowContents: q.value,
|
|
1445
|
+
key: q.value,
|
|
1446
1446
|
isEnableWrap: !0,
|
|
1447
1447
|
onChange: i
|
|
1448
1448
|
}, null, 8, ["rowContents"]))
|
|
1449
1449
|
])
|
|
1450
1450
|
]),
|
|
1451
1451
|
footer: he(() => [
|
|
1452
|
-
D("div",
|
|
1453
|
-
|
|
1454
|
-
onClick:
|
|
1452
|
+
D("div", Ii, [
|
|
1453
|
+
Q(d, {
|
|
1454
|
+
onClick: X,
|
|
1455
1455
|
class: "cancel-button button",
|
|
1456
1456
|
id: "themeBorderButton"
|
|
1457
1457
|
}, {
|
|
@@ -1461,7 +1461,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1461
1461
|
_: 1,
|
|
1462
1462
|
__: [11]
|
|
1463
1463
|
}),
|
|
1464
|
-
|
|
1464
|
+
Q(d, {
|
|
1465
1465
|
class: "ok-button button",
|
|
1466
1466
|
onClick: re,
|
|
1467
1467
|
id: "themeButton"
|
|
@@ -1476,24 +1476,24 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1476
1476
|
]),
|
|
1477
1477
|
_: 1
|
|
1478
1478
|
}, 8, ["visible"]),
|
|
1479
|
-
|
|
1479
|
+
Q(el, {
|
|
1480
1480
|
visible: P.value,
|
|
1481
1481
|
onBeforeDestroy: ee,
|
|
1482
1482
|
width: 840
|
|
1483
1483
|
}, {
|
|
1484
1484
|
default: he(() => [
|
|
1485
|
-
D("div",
|
|
1486
|
-
(
|
|
1485
|
+
D("div", xi, [
|
|
1486
|
+
(Y(), Ve(Ze, {
|
|
1487
1487
|
rowContents: C.value,
|
|
1488
1488
|
key: C.value,
|
|
1489
1489
|
isEnableWrap: !0,
|
|
1490
|
-
onChange:
|
|
1490
|
+
onChange: H
|
|
1491
1491
|
}, null, 8, ["rowContents"]))
|
|
1492
1492
|
])
|
|
1493
1493
|
]),
|
|
1494
1494
|
footer: he(() => [
|
|
1495
|
-
D("div",
|
|
1496
|
-
|
|
1495
|
+
D("div", Ti, [
|
|
1496
|
+
Q(d, {
|
|
1497
1497
|
onClick: ee,
|
|
1498
1498
|
class: "cancel-button button",
|
|
1499
1499
|
id: "themeBorderButton"
|
|
@@ -1504,7 +1504,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1504
1504
|
_: 1,
|
|
1505
1505
|
__: [13]
|
|
1506
1506
|
}),
|
|
1507
|
-
|
|
1507
|
+
Q(d, {
|
|
1508
1508
|
class: "ok-button button",
|
|
1509
1509
|
onClick: g,
|
|
1510
1510
|
id: "themeButton"
|
|
@@ -1519,24 +1519,24 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1519
1519
|
]),
|
|
1520
1520
|
_: 1
|
|
1521
1521
|
}, 8, ["visible"]),
|
|
1522
|
-
|
|
1522
|
+
Q(el, {
|
|
1523
1523
|
visible: ve.value,
|
|
1524
1524
|
onBeforeDestroy: B,
|
|
1525
1525
|
width: 840
|
|
1526
1526
|
}, {
|
|
1527
1527
|
default: he(() => [
|
|
1528
|
-
D("div",
|
|
1529
|
-
(
|
|
1528
|
+
D("div", Ai, [
|
|
1529
|
+
(Y(), Ve(Ze, {
|
|
1530
1530
|
rowContents: c.value,
|
|
1531
1531
|
key: c.value,
|
|
1532
1532
|
isEnableWrap: !0,
|
|
1533
|
-
onChange:
|
|
1533
|
+
onChange: G
|
|
1534
1534
|
}, null, 8, ["rowContents"]))
|
|
1535
1535
|
])
|
|
1536
1536
|
]),
|
|
1537
1537
|
footer: he(() => [
|
|
1538
|
-
D("div",
|
|
1539
|
-
|
|
1538
|
+
D("div", Ei, [
|
|
1539
|
+
Q(d, {
|
|
1540
1540
|
onClick: B,
|
|
1541
1541
|
class: "cancel-button button",
|
|
1542
1542
|
id: "themeBorderButton"
|
|
@@ -1547,7 +1547,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1547
1547
|
_: 1,
|
|
1548
1548
|
__: [15]
|
|
1549
1549
|
}),
|
|
1550
|
-
|
|
1550
|
+
Q(d, {
|
|
1551
1551
|
class: "ok-button button",
|
|
1552
1552
|
onClick: u,
|
|
1553
1553
|
id: "themeButton"
|
|
@@ -1562,26 +1562,26 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1562
1562
|
]),
|
|
1563
1563
|
_: 1
|
|
1564
1564
|
}, 8, ["visible"]),
|
|
1565
|
-
|
|
1565
|
+
Q(el, {
|
|
1566
1566
|
visible: $.value,
|
|
1567
1567
|
onBeforeDestroy: w,
|
|
1568
1568
|
width: 840
|
|
1569
1569
|
}, {
|
|
1570
1570
|
default: he(() => [
|
|
1571
|
-
D("div",
|
|
1572
|
-
(
|
|
1571
|
+
D("div", Si, [
|
|
1572
|
+
(Y(), Ve(Ze, {
|
|
1573
1573
|
rowContents: y.value,
|
|
1574
1574
|
key: y.value,
|
|
1575
1575
|
isEnableWrap: !0,
|
|
1576
1576
|
onChange: b,
|
|
1577
1577
|
onChangeVisible: we,
|
|
1578
|
-
onBlurChange:
|
|
1578
|
+
onBlurChange: W
|
|
1579
1579
|
}, null, 8, ["rowContents"]))
|
|
1580
1580
|
])
|
|
1581
1581
|
]),
|
|
1582
1582
|
footer: he(() => [
|
|
1583
|
-
D("div",
|
|
1584
|
-
|
|
1583
|
+
D("div", $i, [
|
|
1584
|
+
Q(d, {
|
|
1585
1585
|
onClick: w,
|
|
1586
1586
|
class: "cancel-button button",
|
|
1587
1587
|
id: "themeBorderButton"
|
|
@@ -1592,7 +1592,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1592
1592
|
_: 1,
|
|
1593
1593
|
__: [17]
|
|
1594
1594
|
}),
|
|
1595
|
-
|
|
1595
|
+
Q(d, {
|
|
1596
1596
|
class: "ok-button button",
|
|
1597
1597
|
onClick: F,
|
|
1598
1598
|
id: "themeButton"
|
|
@@ -1610,7 +1610,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1610
1610
|
]);
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
|
-
},
|
|
1613
|
+
}, Fi = /* @__PURE__ */ We(Bi, [["__scopeId", "data-v-fa521a52"]]), Li = { class: "form-operate-content" }, Oi = { class: "form-operate-item" }, Vi = { class: "operate-title" }, Ri = { class: "operate-content" }, Ui = { class: "fix-content" }, Pi = { class: "fix-button" }, ji = { class: "operate-title" }, Ki = { class: "operate-content" }, Ni = { class: "fix-content" }, Wi = { class: "fix-button" }, Mi = { style: { display: "flex", "justify-content": "space-between" } }, zi = { class: "form-content" }, Ji = { class: "dialog-footer" }, Gi = { class: "form-content" }, Hi = {
|
|
1614
1614
|
__name: "operate",
|
|
1615
1615
|
props: {
|
|
1616
1616
|
itemContents: {
|
|
@@ -1624,7 +1624,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1624
1624
|
},
|
|
1625
1625
|
emits: ["change"],
|
|
1626
1626
|
setup(r, { emit: S }) {
|
|
1627
|
-
const m = r, o = S, n =
|
|
1627
|
+
const m = r, o = S, n = z(!1), O = z([]), $ = z([]), _ = z(!1), P = z([]), q = z([]), E = z(""), ue = z(!1), se = z(0), Ce = z([]), ce = z([]), be = (a, v) => {
|
|
1628
1628
|
if (console.log(345, a), (v == null ? void 0 : v.type) == "Select" && (a == null ? void 0 : a.key) === "selectRelateType") {
|
|
1629
1629
|
const f = v == null ? void 0 : v.optionUrl;
|
|
1630
1630
|
return (f == null ? void 0 : f.selectRelateType) || v[a.key];
|
|
@@ -1641,11 +1641,11 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1641
1641
|
return (v == null ? void 0 : v.value) || v[a.key];
|
|
1642
1642
|
if ((v == null ? void 0 : v.type) == "Select" && (a == null ? void 0 : a.key) === "multiple") {
|
|
1643
1643
|
const f = v[a.key];
|
|
1644
|
-
return
|
|
1644
|
+
return Ma(f) ? f : a.default;
|
|
1645
1645
|
}
|
|
1646
1646
|
return (a == null ? void 0 : a.label) === "类型" && v[a.key] === "" ? "Input" : (a == null ? void 0 : a.key) === "isFormColHidden" && !v[a.key] ? !1 : v[a.key];
|
|
1647
1647
|
}, C = async (a) => {
|
|
1648
|
-
var w, F, te, A, u,
|
|
1648
|
+
var w, F, te, A, u, G;
|
|
1649
1649
|
n.value = !0;
|
|
1650
1650
|
let v = [];
|
|
1651
1651
|
const f = await ((te = (F = (w = qe) == null ? void 0 : w.find((B) => (B == null ? void 0 : B.key) === ((a == null ? void 0 : a.type) === "" ? "Input" : a == null ? void 0 : a.type))) == null ? void 0 : F.value) == null ? void 0 : te.value) ?? ((u = (A = qe) == null ? void 0 : A.find((B) => (B == null ? void 0 : B.key) === ((a == null ? void 0 : a.type) === "" ? "Input" : a == null ? void 0 : a.type))) == null ? void 0 : u.value);
|
|
@@ -1660,16 +1660,16 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1660
1660
|
contents: B == null ? void 0 : B.options,
|
|
1661
1661
|
width: (a == null ? void 0 : a.width) ?? 1
|
|
1662
1662
|
});
|
|
1663
|
-
}), a != null && a.menuSelect && ((
|
|
1664
|
-
const B = await
|
|
1665
|
-
v = v == null ? void 0 : v.map((
|
|
1663
|
+
}), a != null && a.menuSelect && ((G = a == null ? void 0 : a.menuSelect) == null ? void 0 : G.length) > 0) {
|
|
1664
|
+
const B = await Fl(a == null ? void 0 : a.menuSelect);
|
|
1665
|
+
v = v == null ? void 0 : v.map((Z) => ((Z == null ? void 0 : Z.name) === "组信息选项" && (Z.contents = B), Z));
|
|
1666
1666
|
}
|
|
1667
|
-
E.value = a == null ? void 0 : a.id,
|
|
1667
|
+
E.value = a == null ? void 0 : a.id, O.value = await bl(Tl(v)), $.value = await bl(Tl(v));
|
|
1668
1668
|
}, I = (a) => {
|
|
1669
1669
|
var f;
|
|
1670
|
-
|
|
1670
|
+
_.value = !0;
|
|
1671
1671
|
let v = [];
|
|
1672
|
-
(f =
|
|
1672
|
+
(f = ma) == null || f.forEach((w) => {
|
|
1673
1673
|
se.value++, v.push({
|
|
1674
1674
|
label: w == null ? void 0 : w.label,
|
|
1675
1675
|
name: w == null ? void 0 : w.label,
|
|
@@ -1698,15 +1698,15 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1698
1698
|
let a = {};
|
|
1699
1699
|
if (E.value !== "" ? a.id = E.value : (se.value++, a.id = "id" + se.value), (f = Ce.value) == null || f.forEach((u) => {
|
|
1700
1700
|
var B;
|
|
1701
|
-
const
|
|
1702
|
-
|
|
1701
|
+
const G = (B = ma) == null ? void 0 : B.find((Z) => (Z == null ? void 0 : Z.label) === (u == null ? void 0 : u.label));
|
|
1702
|
+
G && (a[G.key] = u.value);
|
|
1703
1703
|
}), (w = P.value) != null && w.find((u) => u.id === a.id))
|
|
1704
1704
|
P.value = (F = P.value) == null ? void 0 : F.map((u) => (u.id === a.id && (u = a), u));
|
|
1705
1705
|
else {
|
|
1706
1706
|
let u = l(P.value);
|
|
1707
1707
|
P.value || (P.value = []), u.push(a), P.value = u;
|
|
1708
1708
|
}
|
|
1709
|
-
|
|
1709
|
+
_.value = !1, E.value = "";
|
|
1710
1710
|
let v = l(m.originalItemContents);
|
|
1711
1711
|
(te = l(m.originalItemContents)) != null && te.find((u) => (u == null ? void 0 : u.key) === "formButton") ? v = (A = l(m.originalItemContents)) == null ? void 0 : A.map((u) => ((u == null ? void 0 : u.key) === "formButton" && (u.contents = P.value), u)) : v.push({
|
|
1712
1712
|
key: "formButton",
|
|
@@ -1720,7 +1720,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1720
1720
|
}).then(
|
|
1721
1721
|
() => {
|
|
1722
1722
|
var v, f;
|
|
1723
|
-
|
|
1723
|
+
q.value = (v = l(q.value)) == null ? void 0 : v.filter((w) => (w == null ? void 0 : w.id) !== (a == null ? void 0 : a.id)), o("change", (f = l(m.originalItemContents)) == null ? void 0 : f.map((w) => ((w == null ? void 0 : w.key) === "formContent" && (w.contents = q.value), w))), ol({
|
|
1724
1724
|
type: "success",
|
|
1725
1725
|
message: "删除成功"
|
|
1726
1726
|
});
|
|
@@ -1744,9 +1744,9 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1744
1744
|
});
|
|
1745
1745
|
}, h = () => {
|
|
1746
1746
|
var v;
|
|
1747
|
-
|
|
1747
|
+
_.value = !0;
|
|
1748
1748
|
let a = [];
|
|
1749
|
-
(v =
|
|
1749
|
+
(v = ma) == null || v.forEach((f) => {
|
|
1750
1750
|
se.value++, a.push({
|
|
1751
1751
|
label: f == null ? void 0 : f.label,
|
|
1752
1752
|
name: f == null ? void 0 : f.label,
|
|
@@ -1769,7 +1769,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1769
1769
|
id: se.value,
|
|
1770
1770
|
contents: F == null ? void 0 : F.options
|
|
1771
1771
|
});
|
|
1772
|
-
}),
|
|
1772
|
+
}), O.value = a, $.value = a;
|
|
1773
1773
|
}, oe = (a) => {
|
|
1774
1774
|
let v = l(ce.value);
|
|
1775
1775
|
v = v == null ? void 0 : v.map((f) => (f.value = a == null ? void 0 : a[f.name], f)), ce.value = v;
|
|
@@ -1778,71 +1778,71 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1778
1778
|
if ((v == null ? void 0 : v.value) != "Select")
|
|
1779
1779
|
return;
|
|
1780
1780
|
const f = a.find((F) => (F == null ? void 0 : F.name) === "多选"), w = a.find((F) => (F == null ? void 0 : F.name) === "初始值");
|
|
1781
|
-
f != null && f.value &&
|
|
1781
|
+
f != null && f.value && Ba(w.value) && (w.value = [w.value]), !(f != null && f.value) && !Ba(w.value) && (w.value = "");
|
|
1782
1782
|
}, Ie = async (a) => {
|
|
1783
|
-
var v, f, w, F, te, A, u,
|
|
1784
|
-
if ((a == null ? void 0 : a.类型) !== ((f = (v = $.value) == null ? void 0 : v.find((
|
|
1785
|
-
let
|
|
1786
|
-
const
|
|
1787
|
-
if (
|
|
1788
|
-
var
|
|
1783
|
+
var v, f, w, F, te, A, u, G, B, Z, ne, K;
|
|
1784
|
+
if ((a == null ? void 0 : a.类型) !== ((f = (v = $.value) == null ? void 0 : v.find((k) => (k == null ? void 0 : k.label) === "类型")) == null ? void 0 : f.value)) {
|
|
1785
|
+
let k = [];
|
|
1786
|
+
const H = await ((te = (F = (w = qe) == null ? void 0 : w.find((g) => (g == null ? void 0 : g.key) === ((a == null ? void 0 : a.类型) === "" ? "Input" : a == null ? void 0 : a.类型))) == null ? void 0 : F.value) == null ? void 0 : te.value) ? await ((Z = (B = (G = qe) == null ? void 0 : G.find((g) => (g == null ? void 0 : g.key) === ((a == null ? void 0 : a.类型) === "" ? "Input" : a == null ? void 0 : a.类型))) == null ? void 0 : B.value) == null ? void 0 : Z.value) : (u = (A = qe) == null ? void 0 : A.find((g) => (g == null ? void 0 : g.key) === ((a == null ? void 0 : a.类型) === "" ? "Input" : a == null ? void 0 : a.类型))) == null ? void 0 : u.value;
|
|
1787
|
+
if (H == null || H.forEach((g) => {
|
|
1788
|
+
var M, J;
|
|
1789
1789
|
se.value++;
|
|
1790
|
-
const ee =
|
|
1791
|
-
|
|
1790
|
+
const ee = Es(g == null ? void 0 : g.default) ? (a == null ? void 0 : a[g.label]) ?? g.value ?? "" : g == null ? void 0 : g.default;
|
|
1791
|
+
k.push({
|
|
1792
1792
|
label: g == null ? void 0 : g.label,
|
|
1793
1793
|
name: g == null ? void 0 : g.label,
|
|
1794
1794
|
type: g.type,
|
|
1795
1795
|
value: ee,
|
|
1796
1796
|
id: se.value,
|
|
1797
1797
|
contents: g == null ? void 0 : g.options,
|
|
1798
|
-
width: ((
|
|
1798
|
+
width: ((J = (M = $.value) == null ? void 0 : M[0]) == null ? void 0 : J.width) ?? 1
|
|
1799
1799
|
});
|
|
1800
|
-
}), a != null && a.菜单选项 && ((
|
|
1801
|
-
const g = await
|
|
1802
|
-
|
|
1800
|
+
}), a != null && a.菜单选项 && ((ne = a == null ? void 0 : a.菜单选项) == null ? void 0 : ne.length) > 0) {
|
|
1801
|
+
const g = await Fl(a == null ? void 0 : a.菜单选项);
|
|
1802
|
+
k = k == null ? void 0 : k.map((ee) => ((ee == null ? void 0 : ee.name) === "组信息选项" && (ee.contents = g), ee));
|
|
1803
1803
|
}
|
|
1804
|
-
ye(
|
|
1804
|
+
ye(k), $.value = await bl(l(k)), O.value = await bl(l(k));
|
|
1805
1805
|
} else {
|
|
1806
|
-
let
|
|
1807
|
-
if (
|
|
1808
|
-
const
|
|
1809
|
-
|
|
1806
|
+
let k = l($.value);
|
|
1807
|
+
if (k = k == null ? void 0 : k.map((H) => (H.value = a == null ? void 0 : a[H.name], H)), a != null && a.菜单选项 && ((K = a == null ? void 0 : a.菜单选项) == null ? void 0 : K.length) > 0) {
|
|
1808
|
+
const H = await Fl(a == null ? void 0 : a.菜单选项);
|
|
1809
|
+
k = k == null ? void 0 : k.map((g) => ((g == null ? void 0 : g.name) === "组信息选项" && (g.contents = H), g));
|
|
1810
1810
|
}
|
|
1811
|
-
|
|
1811
|
+
k = Tl(k), ye(k), $.value = await bl(l(k));
|
|
1812
1812
|
}
|
|
1813
1813
|
}, pe = (a) => {
|
|
1814
|
-
a || (
|
|
1814
|
+
a || (O.value = $.value);
|
|
1815
1815
|
}, we = async (a) => {
|
|
1816
|
-
await Ie(a),
|
|
1816
|
+
await Ie(a), O.value = $.value;
|
|
1817
1817
|
}, b = async () => {
|
|
1818
|
-
var w, F, te, A, u,
|
|
1819
|
-
|
|
1818
|
+
var w, F, te, A, u, G, B, Z, ne, K, k, H;
|
|
1819
|
+
O.value = $.value;
|
|
1820
1820
|
let a = {};
|
|
1821
|
-
a.width = ((F = (w =
|
|
1821
|
+
a.width = ((F = (w = O.value) == null ? void 0 : w[0]) == null ? void 0 : F.width) ?? 1, E.value !== "" ? a.id = E.value : (se.value++, a.id = "id" + se.value);
|
|
1822
1822
|
let v = await ((u = (A = (te = qe) == null ? void 0 : te.find((g) => {
|
|
1823
|
-
var ee,
|
|
1824
|
-
return (g == null ? void 0 : g.key) === (((
|
|
1825
|
-
})) == null ? void 0 : A.value) == null ? void 0 : u.value) ?? ((B = (
|
|
1826
|
-
var ee,
|
|
1827
|
-
return (g == null ? void 0 : g.key) === (((
|
|
1823
|
+
var ee, M;
|
|
1824
|
+
return (g == null ? void 0 : g.key) === (((M = (ee = O.value) == null ? void 0 : ee.find((J) => (J == null ? void 0 : J.label) === "类型")) == null ? void 0 : M.value) ?? "label");
|
|
1825
|
+
})) == null ? void 0 : A.value) == null ? void 0 : u.value) ?? ((B = (G = qe) == null ? void 0 : G.find((g) => {
|
|
1826
|
+
var ee, M;
|
|
1827
|
+
return (g == null ? void 0 : g.key) === (((M = (ee = O.value) == null ? void 0 : ee.find((J) => (J == null ? void 0 : J.label) === "类型")) == null ? void 0 : M.value) ?? "label");
|
|
1828
1828
|
})) == null ? void 0 : B.value);
|
|
1829
|
-
if ((
|
|
1830
|
-
const ee = v == null ? void 0 : v.find((
|
|
1829
|
+
if ((Z = O.value) == null || Z.forEach((g) => {
|
|
1830
|
+
const ee = v == null ? void 0 : v.find((M) => (M == null ? void 0 : M.label) === (g == null ? void 0 : g.label));
|
|
1831
1831
|
ee && (a[ee.key] = g.value);
|
|
1832
|
-
}), a.width = a.width ? a.width : 1, a.key = a == null ? void 0 : a.label, a.isFormColHidden = a == null ? void 0 : a.isFormColHidden, (
|
|
1833
|
-
|
|
1832
|
+
}), a.width = a.width ? a.width : 1, a.key = a == null ? void 0 : a.label, a.isFormColHidden = a == null ? void 0 : a.isFormColHidden, (ne = q.value) != null && ne.find((g) => g.id === a.id))
|
|
1833
|
+
q.value = (K = q.value) == null ? void 0 : K.map((g) => (g.id === a.id && (g = a), g));
|
|
1834
1834
|
else {
|
|
1835
|
-
let g = l(
|
|
1836
|
-
g.push(a),
|
|
1835
|
+
let g = l(q.value);
|
|
1836
|
+
g.push(a), q.value = g;
|
|
1837
1837
|
}
|
|
1838
|
-
|
|
1838
|
+
q.value = q.value.map(({ id: g, ...ee }) => ee), n.value = !1, E.value = "";
|
|
1839
1839
|
let f = l(m.originalItemContents);
|
|
1840
|
-
(
|
|
1840
|
+
(k = l(m.originalItemContents)) != null && k.find((g) => (g == null ? void 0 : g.key) === "formContent") ? f = (H = l(m.originalItemContents)) == null ? void 0 : H.map((g) => ((g == null ? void 0 : g.key) === "formContent" && (g.contents = q.value), g)) : f.push({
|
|
1841
1841
|
key: "formContent",
|
|
1842
|
-
contents:
|
|
1842
|
+
contents: q.value
|
|
1843
1843
|
}), o("change", f);
|
|
1844
|
-
},
|
|
1845
|
-
n.value = !1,
|
|
1844
|
+
}, W = () => {
|
|
1845
|
+
n.value = !1, _.value = !1, E.value = "", $.value = [], ce.value = [];
|
|
1846
1846
|
};
|
|
1847
1847
|
return Xe(
|
|
1848
1848
|
() => m.originalItemContents,
|
|
@@ -1850,31 +1850,31 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1850
1850
|
var v, f, w, F, te, A;
|
|
1851
1851
|
if (!m.originalItemContents || m.originalItemContents.length === 0) return;
|
|
1852
1852
|
const a = l(m.originalItemContents);
|
|
1853
|
-
|
|
1854
|
-
var
|
|
1853
|
+
q.value = ((v = a == null ? void 0 : a.find((u) => (u == null ? void 0 : u.key) === "formContent")) == null ? void 0 : v.contents) ?? [], P.value = ((f = a == null ? void 0 : a.find((u) => (u == null ? void 0 : u.key) === "formButton")) == null ? void 0 : f.contents) ?? [], ue.value = (w = a == null ? void 0 : a.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && w.contents ? !((F = a == null ? void 0 : a.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && F.contents) : !0, q.value = (te = l(q.value)) == null ? void 0 : te.map((u, G) => {
|
|
1854
|
+
var Z;
|
|
1855
1855
|
let B = u;
|
|
1856
|
-
return B.id = (u == null ? void 0 : u.id) ??
|
|
1857
|
-
}),
|
|
1856
|
+
return B.id = (u == null ? void 0 : u.id) ?? G, u != null && u.label || (u.label = (u == null ? void 0 : u.key) ?? (u == null ? void 0 : u.label) ?? ""), u != null && u.type || (u.type = (u == null ? void 0 : u.type) ?? ""), u.contents = ((Z = u == null ? void 0 : u.options) == null ? void 0 : Z.length) === 0 ? (u == null ? void 0 : u.contents) ?? "" : u == null ? void 0 : u.options, B;
|
|
1857
|
+
}), q.value = Tl(q.value), P.value = (A = P.value) == null ? void 0 : A.map((u, G) => u = {
|
|
1858
1858
|
label: (u == null ? void 0 : u.label) ?? "",
|
|
1859
1859
|
type: (u == null ? void 0 : u.type) ?? "",
|
|
1860
1860
|
background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)",
|
|
1861
|
-
id:
|
|
1861
|
+
id: G
|
|
1862
1862
|
});
|
|
1863
1863
|
},
|
|
1864
1864
|
{ deep: !0, immediate: !0 }
|
|
1865
1865
|
), (a, v) => {
|
|
1866
1866
|
const f = Re("svg-icon"), w = Re("el-button");
|
|
1867
|
-
return
|
|
1867
|
+
return Y(), _e("div", Li, [
|
|
1868
1868
|
D("div", Oi, [
|
|
1869
|
-
D("div",
|
|
1869
|
+
D("div", Vi, [
|
|
1870
1870
|
v[2] || (v[2] = D("div", null, De("表单内容"), -1)),
|
|
1871
|
-
|
|
1871
|
+
Q(w, {
|
|
1872
1872
|
class: "icon-content",
|
|
1873
1873
|
id: "themeButton",
|
|
1874
1874
|
onClick: y
|
|
1875
1875
|
}, {
|
|
1876
1876
|
icon: he(() => [
|
|
1877
|
-
|
|
1877
|
+
Q(f, {
|
|
1878
1878
|
name: "Plus",
|
|
1879
1879
|
class: "icon-size"
|
|
1880
1880
|
})
|
|
@@ -1886,18 +1886,18 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1886
1886
|
__: [1]
|
|
1887
1887
|
})
|
|
1888
1888
|
]),
|
|
1889
|
-
D("div",
|
|
1890
|
-
(
|
|
1891
|
-
D("div",
|
|
1889
|
+
D("div", Ri, [
|
|
1890
|
+
(Y(!0), _e(Ue, null, Ne(q.value, (F, te) => (Y(), _e("div", { key: te }, [
|
|
1891
|
+
D("div", Ui, [
|
|
1892
1892
|
D("div", null, De(F.label), 1),
|
|
1893
|
-
D("div",
|
|
1894
|
-
|
|
1893
|
+
D("div", Pi, [
|
|
1894
|
+
Q(f, {
|
|
1895
1895
|
name: "ChildFix",
|
|
1896
1896
|
class: "svg-icon-content",
|
|
1897
1897
|
style: { width: "24px", height: "24px" },
|
|
1898
1898
|
onClick: (A) => C(F)
|
|
1899
1899
|
}, null, 8, ["onClick"]),
|
|
1900
|
-
|
|
1900
|
+
Q(f, {
|
|
1901
1901
|
name: "ChildDelete",
|
|
1902
1902
|
class: "svg-icon-content",
|
|
1903
1903
|
style: { width: "24px", height: "24px" },
|
|
@@ -1907,15 +1907,15 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1907
1907
|
])
|
|
1908
1908
|
]))), 128))
|
|
1909
1909
|
]),
|
|
1910
|
-
D("div",
|
|
1910
|
+
D("div", ji, [
|
|
1911
1911
|
v[4] || (v[4] = D("div", null, De("表单按钮"), -1)),
|
|
1912
|
-
|
|
1912
|
+
Q(w, {
|
|
1913
1913
|
class: "icon-content",
|
|
1914
1914
|
id: "themeButton",
|
|
1915
1915
|
onClick: h
|
|
1916
1916
|
}, {
|
|
1917
1917
|
icon: he(() => [
|
|
1918
|
-
|
|
1918
|
+
Q(f, {
|
|
1919
1919
|
name: "Plus",
|
|
1920
1920
|
class: "icon-size"
|
|
1921
1921
|
})
|
|
@@ -1927,18 +1927,18 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1927
1927
|
__: [3]
|
|
1928
1928
|
})
|
|
1929
1929
|
]),
|
|
1930
|
-
D("div",
|
|
1931
|
-
(
|
|
1932
|
-
D("div",
|
|
1930
|
+
D("div", Ki, [
|
|
1931
|
+
(Y(!0), _e(Ue, null, Ne(P.value, (F, te) => (Y(), _e("div", { key: te }, [
|
|
1932
|
+
D("div", Ni, [
|
|
1933
1933
|
D("div", null, De(F.label), 1),
|
|
1934
|
-
D("div",
|
|
1935
|
-
|
|
1934
|
+
D("div", Wi, [
|
|
1935
|
+
Q(f, {
|
|
1936
1936
|
name: "ChildFix",
|
|
1937
1937
|
class: "svg-icon-content",
|
|
1938
1938
|
style: { width: "24px", height: "24px" },
|
|
1939
1939
|
onClick: (A) => I(F)
|
|
1940
1940
|
}, null, 8, ["onClick"]),
|
|
1941
|
-
|
|
1941
|
+
Q(f, {
|
|
1942
1942
|
name: "ChildDelete",
|
|
1943
1943
|
class: "svg-icon-content",
|
|
1944
1944
|
style: { width: "24px", height: "24px" },
|
|
@@ -1951,24 +1951,24 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1951
1951
|
v[6] || (v[6] = D("div", { class: "operate-title" }, [
|
|
1952
1952
|
D("div", null, De("表单布局"))
|
|
1953
1953
|
], -1)),
|
|
1954
|
-
D("div",
|
|
1954
|
+
D("div", Mi, [
|
|
1955
1955
|
v[5] || (v[5] = D("div", { class: "operate-center-content" }, De("是否自动撑宽"), -1)),
|
|
1956
|
-
|
|
1956
|
+
Q(Wa, {
|
|
1957
1957
|
modelValue: ue.value,
|
|
1958
1958
|
"onUpdate:modelValue": v[0] || (v[0] = (F) => ue.value = F)
|
|
1959
1959
|
}, null, 8, ["modelValue"])
|
|
1960
1960
|
])
|
|
1961
1961
|
]),
|
|
1962
|
-
|
|
1962
|
+
Q(el, {
|
|
1963
1963
|
visible: n.value,
|
|
1964
|
-
onBeforeDestroy:
|
|
1964
|
+
onBeforeDestroy: W,
|
|
1965
1965
|
width: 840
|
|
1966
1966
|
}, {
|
|
1967
1967
|
default: he(() => [
|
|
1968
|
-
D("div",
|
|
1969
|
-
(
|
|
1970
|
-
rowContents:
|
|
1971
|
-
key:
|
|
1968
|
+
D("div", zi, [
|
|
1969
|
+
(Y(), Ve(Ze, {
|
|
1970
|
+
rowContents: O.value,
|
|
1971
|
+
key: O.value,
|
|
1972
1972
|
isEnableWrap: !0,
|
|
1973
1973
|
onChange: Ie,
|
|
1974
1974
|
onChangeVisible: pe,
|
|
@@ -1977,9 +1977,9 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1977
1977
|
])
|
|
1978
1978
|
]),
|
|
1979
1979
|
footer: he(() => [
|
|
1980
|
-
D("div",
|
|
1981
|
-
|
|
1982
|
-
onClick:
|
|
1980
|
+
D("div", Ji, [
|
|
1981
|
+
Q(w, {
|
|
1982
|
+
onClick: W,
|
|
1983
1983
|
class: "cancel-button button",
|
|
1984
1984
|
id: "themeBorderButton"
|
|
1985
1985
|
}, {
|
|
@@ -1989,7 +1989,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
1989
1989
|
_: 1,
|
|
1990
1990
|
__: [7]
|
|
1991
1991
|
}),
|
|
1992
|
-
|
|
1992
|
+
Q(w, {
|
|
1993
1993
|
class: "ok-button button",
|
|
1994
1994
|
onClick: b,
|
|
1995
1995
|
id: "themeButton"
|
|
@@ -2004,14 +2004,14 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2004
2004
|
]),
|
|
2005
2005
|
_: 1
|
|
2006
2006
|
}, 8, ["visible"]),
|
|
2007
|
-
|
|
2008
|
-
visible:
|
|
2009
|
-
onBeforeDestroy:
|
|
2007
|
+
Q(el, {
|
|
2008
|
+
visible: _.value,
|
|
2009
|
+
onBeforeDestroy: W,
|
|
2010
2010
|
width: 840
|
|
2011
2011
|
}, {
|
|
2012
2012
|
default: he(() => [
|
|
2013
|
-
D("div",
|
|
2014
|
-
(
|
|
2013
|
+
D("div", Gi, [
|
|
2014
|
+
(Y(), Ve(Ze, {
|
|
2015
2015
|
rowContents: Ce.value,
|
|
2016
2016
|
key: Ce.value,
|
|
2017
2017
|
isEnableWrap: !0,
|
|
@@ -2022,7 +2022,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2022
2022
|
footer: he(() => [
|
|
2023
2023
|
D("div", { class: "dialog-footer" }, [
|
|
2024
2024
|
D("div", {
|
|
2025
|
-
onClick:
|
|
2025
|
+
onClick: W,
|
|
2026
2026
|
class: "cancel-button button"
|
|
2027
2027
|
}, De("取消")),
|
|
2028
2028
|
D("div", {
|
|
@@ -2036,7 +2036,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2036
2036
|
]);
|
|
2037
2037
|
};
|
|
2038
2038
|
}
|
|
2039
|
-
},
|
|
2039
|
+
}, Pa = /* @__PURE__ */ We(Hi, [["__scopeId", "data-v-6aae2a5a"]]), qi = { class: "step-module content" }, Qi = { class: "module-data" }, Xi = { class: "step-module layout" }, Yi = { class: "form-content" }, Zi = /* @__PURE__ */ Al({
|
|
2040
2040
|
__name: "operate",
|
|
2041
2041
|
props: {
|
|
2042
2042
|
itemContents: {
|
|
@@ -2050,7 +2050,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2050
2050
|
},
|
|
2051
2051
|
emits: ["change"],
|
|
2052
2052
|
setup(r, { emit: S }) {
|
|
2053
|
-
const m = r, o = S, n =
|
|
2053
|
+
const m = r, o = S, n = z([
|
|
2054
2054
|
{
|
|
2055
2055
|
label: "方向:",
|
|
2056
2056
|
prop: "direction",
|
|
@@ -2114,7 +2114,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2114
2114
|
],
|
|
2115
2115
|
value: !1
|
|
2116
2116
|
}
|
|
2117
|
-
]),
|
|
2117
|
+
]), O = z([
|
|
2118
2118
|
{
|
|
2119
2119
|
label: "",
|
|
2120
2120
|
prop: "index",
|
|
@@ -2134,7 +2134,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2134
2134
|
type: "input",
|
|
2135
2135
|
value: ""
|
|
2136
2136
|
}
|
|
2137
|
-
]), $ =
|
|
2137
|
+
]), $ = z([
|
|
2138
2138
|
{
|
|
2139
2139
|
label: "取消",
|
|
2140
2140
|
background: "#c0c4cc"
|
|
@@ -2143,25 +2143,25 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2143
2143
|
label: "确认",
|
|
2144
2144
|
background: "#436aaf"
|
|
2145
2145
|
}
|
|
2146
|
-
]),
|
|
2146
|
+
]), _ = _a({
|
|
2147
2147
|
visible: !1,
|
|
2148
2148
|
width: "40%",
|
|
2149
2149
|
title: "步骤条"
|
|
2150
|
-
}), P =
|
|
2150
|
+
}), P = z("create"), q = z({}), E = z([]), ue = (C) => {
|
|
2151
2151
|
var I;
|
|
2152
|
-
|
|
2152
|
+
q.value = C, o("change", (I = ce()) == null ? void 0 : I.compData);
|
|
2153
2153
|
}, se = (C, I) => {
|
|
2154
2154
|
var ve, c;
|
|
2155
2155
|
switch (C) {
|
|
2156
2156
|
case "create":
|
|
2157
|
-
(ve =
|
|
2157
|
+
(ve = O.value) == null || ve.forEach((p) => {
|
|
2158
2158
|
p.value = "";
|
|
2159
|
-
}), P.value = "create",
|
|
2159
|
+
}), P.value = "create", _.visible = !0;
|
|
2160
2160
|
break;
|
|
2161
2161
|
case "update":
|
|
2162
|
-
(c =
|
|
2162
|
+
(c = O.value) == null || c.forEach((p) => {
|
|
2163
2163
|
p.value = I[p == null ? void 0 : p.prop];
|
|
2164
|
-
}), P.value = "update",
|
|
2164
|
+
}), P.value = "update", _.visible = !0;
|
|
2165
2165
|
break;
|
|
2166
2166
|
case "delete":
|
|
2167
2167
|
E.value.splice(I, 1), P.value = "delete";
|
|
@@ -2188,9 +2188,9 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2188
2188
|
} : h);
|
|
2189
2189
|
break;
|
|
2190
2190
|
}
|
|
2191
|
-
o("change", (c = ce()) == null ? void 0 : c.compData),
|
|
2191
|
+
o("change", (c = ce()) == null ? void 0 : c.compData), _.visible = !1;
|
|
2192
2192
|
} else
|
|
2193
|
-
|
|
2193
|
+
_.visible = !1;
|
|
2194
2194
|
}, ce = () => ({
|
|
2195
2195
|
comp: "Step",
|
|
2196
2196
|
compData: [
|
|
@@ -2200,28 +2200,28 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2200
2200
|
},
|
|
2201
2201
|
{
|
|
2202
2202
|
key: "stepConfig",
|
|
2203
|
-
contents:
|
|
2203
|
+
contents: q.value
|
|
2204
2204
|
}
|
|
2205
2205
|
]
|
|
2206
2206
|
}), be = () => {
|
|
2207
|
-
|
|
2207
|
+
_.visible = !1;
|
|
2208
2208
|
};
|
|
2209
2209
|
return Xe(() => m == null ? void 0 : m.itemContents, (C) => {
|
|
2210
2210
|
var I, ve;
|
|
2211
|
-
C && (
|
|
2211
|
+
C && (q.value = ((I = C == null ? void 0 : C.find((c) => c.key === "stepConfig")) == null ? void 0 : I.contents) ?? {}, E.value = ((ve = C == null ? void 0 : C.find((c) => c.key === "stepList")) == null ? void 0 : ve.contents) ?? []);
|
|
2212
2212
|
}, { immediate: !0 }), (C, I) => {
|
|
2213
2213
|
const ve = Re("svg-icon"), c = Re("el-button");
|
|
2214
|
-
return
|
|
2214
|
+
return Y(), _e(Ue, null, [
|
|
2215
2215
|
D("div", null, [
|
|
2216
|
-
D("div",
|
|
2216
|
+
D("div", qi, [
|
|
2217
2217
|
I[2] || (I[2] = D("h4", { class: "module-title" }, "内容", -1)),
|
|
2218
|
-
|
|
2218
|
+
Q(c, {
|
|
2219
2219
|
class: "module-icon",
|
|
2220
2220
|
id: "themeButton",
|
|
2221
2221
|
onClick: I[0] || (I[0] = (p) => se("create"))
|
|
2222
2222
|
}, {
|
|
2223
2223
|
icon: he(() => [
|
|
2224
|
-
|
|
2224
|
+
Q(ve, {
|
|
2225
2225
|
name: "Plus",
|
|
2226
2226
|
class: "icon-size"
|
|
2227
2227
|
})
|
|
@@ -2233,14 +2233,14 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2233
2233
|
__: [1]
|
|
2234
2234
|
})
|
|
2235
2235
|
]),
|
|
2236
|
-
D("div",
|
|
2237
|
-
(
|
|
2236
|
+
D("div", Qi, [
|
|
2237
|
+
(Y(!0), _e(Ue, null, Ne(E.value, (p, h) => (Y(), _e("div", {
|
|
2238
2238
|
class: "module-data-item",
|
|
2239
2239
|
key: h
|
|
2240
2240
|
}, [
|
|
2241
2241
|
D("span", null, De(p == null ? void 0 : p.title), 1),
|
|
2242
2242
|
D("div", null, [
|
|
2243
|
-
|
|
2243
|
+
Q(c, {
|
|
2244
2244
|
type: "primary",
|
|
2245
2245
|
size: "small",
|
|
2246
2246
|
onClick: (y) => se("update", { ...p, index: h + 1 })
|
|
@@ -2251,7 +2251,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2251
2251
|
_: 2,
|
|
2252
2252
|
__: [3]
|
|
2253
2253
|
}, 1032, ["onClick"]),
|
|
2254
|
-
|
|
2254
|
+
Q(c, {
|
|
2255
2255
|
type: "danger",
|
|
2256
2256
|
size: "small",
|
|
2257
2257
|
onClick: (y) => se("delete", h)
|
|
@@ -2265,25 +2265,25 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2265
2265
|
])
|
|
2266
2266
|
]))), 128))
|
|
2267
2267
|
]),
|
|
2268
|
-
D("div",
|
|
2268
|
+
D("div", Xi, [
|
|
2269
2269
|
I[5] || (I[5] = D("div", { class: "module-title" }, "布局", -1)),
|
|
2270
|
-
|
|
2270
|
+
Q(Ze, {
|
|
2271
2271
|
rowContents: n.value,
|
|
2272
2272
|
onChange: ue
|
|
2273
2273
|
}, null, 8, ["rowContents"])
|
|
2274
2274
|
])
|
|
2275
2275
|
]),
|
|
2276
|
-
|
|
2277
|
-
visible:
|
|
2278
|
-
title:
|
|
2276
|
+
Q(el, {
|
|
2277
|
+
visible: _.visible,
|
|
2278
|
+
title: _.title,
|
|
2279
2279
|
onBeforeDestroy: be,
|
|
2280
|
-
width:
|
|
2280
|
+
width: _.width
|
|
2281
2281
|
}, {
|
|
2282
2282
|
default: he(() => [
|
|
2283
|
-
D("div",
|
|
2284
|
-
(
|
|
2285
|
-
rowContents:
|
|
2286
|
-
key:
|
|
2283
|
+
D("div", Yi, [
|
|
2284
|
+
(Y(), Ve(Ze, {
|
|
2285
|
+
rowContents: O.value,
|
|
2286
|
+
key: O.value,
|
|
2287
2287
|
isEnableWrap: !1,
|
|
2288
2288
|
isButtonRow: !1,
|
|
2289
2289
|
isStartJustify: !1,
|
|
@@ -2297,7 +2297,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2297
2297
|
], 64);
|
|
2298
2298
|
};
|
|
2299
2299
|
}
|
|
2300
|
-
}),
|
|
2300
|
+
}), eo = /* @__PURE__ */ We(Zi, [["__scopeId", "data-v-7dbd17f2"]]), lo = { class: "step-module content" }, ao = { class: "module-data" }, so = { class: "step-module layout" }, io = { class: "form-content" }, oo = /* @__PURE__ */ Al({
|
|
2301
2301
|
__name: "operate",
|
|
2302
2302
|
props: {
|
|
2303
2303
|
itemContents: {
|
|
@@ -2311,7 +2311,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2311
2311
|
},
|
|
2312
2312
|
emits: ["change"],
|
|
2313
2313
|
setup(r, { emit: S }) {
|
|
2314
|
-
const m = r, o = S, n =
|
|
2314
|
+
const m = r, o = S, n = z("create"), O = z({}), $ = z([]), _ = z([
|
|
2315
2315
|
{
|
|
2316
2316
|
label: "方向:",
|
|
2317
2317
|
prop: "placement",
|
|
@@ -2410,7 +2410,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2410
2410
|
],
|
|
2411
2411
|
value: !0
|
|
2412
2412
|
}
|
|
2413
|
-
]), P =
|
|
2413
|
+
]), P = z([
|
|
2414
2414
|
{
|
|
2415
2415
|
label: "",
|
|
2416
2416
|
prop: "index",
|
|
@@ -2430,7 +2430,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2430
2430
|
type: "datetime",
|
|
2431
2431
|
value: ""
|
|
2432
2432
|
}
|
|
2433
|
-
]),
|
|
2433
|
+
]), q = z([
|
|
2434
2434
|
{
|
|
2435
2435
|
label: "取消",
|
|
2436
2436
|
background: "#c0c4cc"
|
|
@@ -2439,13 +2439,13 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2439
2439
|
label: "确认",
|
|
2440
2440
|
background: "#436aaf"
|
|
2441
2441
|
}
|
|
2442
|
-
]), E =
|
|
2442
|
+
]), E = _a({
|
|
2443
2443
|
visible: !1,
|
|
2444
2444
|
width: "40%",
|
|
2445
2445
|
title: "时间线"
|
|
2446
2446
|
}), ue = (C) => {
|
|
2447
2447
|
var I;
|
|
2448
|
-
|
|
2448
|
+
O.value = C, console.log(1212, C), o("change", (I = ce()) == null ? void 0 : I.compData);
|
|
2449
2449
|
}, se = (C, I) => {
|
|
2450
2450
|
var ve, c;
|
|
2451
2451
|
switch (C) {
|
|
@@ -2496,7 +2496,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2496
2496
|
},
|
|
2497
2497
|
{
|
|
2498
2498
|
key: "timeLineConfig",
|
|
2499
|
-
contents:
|
|
2499
|
+
contents: O.value
|
|
2500
2500
|
}
|
|
2501
2501
|
]
|
|
2502
2502
|
}), be = () => {
|
|
@@ -2504,20 +2504,20 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2504
2504
|
};
|
|
2505
2505
|
return Xe(() => m == null ? void 0 : m.itemContents, (C) => {
|
|
2506
2506
|
var I, ve;
|
|
2507
|
-
C && (
|
|
2507
|
+
C && (O.value = ((I = C == null ? void 0 : C.find((c) => c.key === "timeLineConfig")) == null ? void 0 : I.contents) ?? {}, $.value = ((ve = C == null ? void 0 : C.find((c) => c.key === "timeLineList")) == null ? void 0 : ve.contents) ?? []);
|
|
2508
2508
|
}, { immediate: !0 }), (C, I) => {
|
|
2509
2509
|
const ve = Re("svg-icon"), c = Re("el-button");
|
|
2510
|
-
return
|
|
2510
|
+
return Y(), _e(Ue, null, [
|
|
2511
2511
|
D("div", null, [
|
|
2512
|
-
D("div",
|
|
2512
|
+
D("div", lo, [
|
|
2513
2513
|
I[2] || (I[2] = D("h4", { class: "module-title" }, "内容", -1)),
|
|
2514
|
-
|
|
2514
|
+
Q(c, {
|
|
2515
2515
|
class: "module-icon",
|
|
2516
2516
|
id: "themeButton",
|
|
2517
2517
|
onClick: I[0] || (I[0] = (p) => se("create"))
|
|
2518
2518
|
}, {
|
|
2519
2519
|
icon: he(() => [
|
|
2520
|
-
|
|
2520
|
+
Q(ve, {
|
|
2521
2521
|
name: "Plus",
|
|
2522
2522
|
class: "icon-size"
|
|
2523
2523
|
})
|
|
@@ -2529,14 +2529,14 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2529
2529
|
__: [1]
|
|
2530
2530
|
})
|
|
2531
2531
|
]),
|
|
2532
|
-
D("div",
|
|
2533
|
-
(
|
|
2532
|
+
D("div", ao, [
|
|
2533
|
+
(Y(!0), _e(Ue, null, Ne($.value, (p, h) => (Y(), _e("div", {
|
|
2534
2534
|
class: "module-data-item",
|
|
2535
2535
|
key: h
|
|
2536
2536
|
}, [
|
|
2537
2537
|
D("span", null, De(p == null ? void 0 : p.content), 1),
|
|
2538
2538
|
D("div", null, [
|
|
2539
|
-
|
|
2539
|
+
Q(c, {
|
|
2540
2540
|
type: "primary",
|
|
2541
2541
|
size: "small",
|
|
2542
2542
|
onClick: (y) => se("update", { ...p, index: h + 1 })
|
|
@@ -2547,7 +2547,7 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2547
2547
|
_: 2,
|
|
2548
2548
|
__: [3]
|
|
2549
2549
|
}, 1032, ["onClick"]),
|
|
2550
|
-
|
|
2550
|
+
Q(c, {
|
|
2551
2551
|
type: "danger",
|
|
2552
2552
|
size: "small",
|
|
2553
2553
|
onClick: (y) => se("delete", h)
|
|
@@ -2561,29 +2561,29 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2561
2561
|
])
|
|
2562
2562
|
]))), 128))
|
|
2563
2563
|
]),
|
|
2564
|
-
D("div",
|
|
2564
|
+
D("div", so, [
|
|
2565
2565
|
I[5] || (I[5] = D("div", { class: "module-title" }, "布局", -1)),
|
|
2566
|
-
|
|
2567
|
-
rowContents:
|
|
2566
|
+
Q(Ze, {
|
|
2567
|
+
rowContents: _.value,
|
|
2568
2568
|
onChange: ue
|
|
2569
2569
|
}, null, 8, ["rowContents"])
|
|
2570
2570
|
])
|
|
2571
2571
|
]),
|
|
2572
|
-
|
|
2572
|
+
Q(el, {
|
|
2573
2573
|
visible: E.visible,
|
|
2574
2574
|
title: E.title,
|
|
2575
2575
|
onBeforeDestroy: be,
|
|
2576
2576
|
width: E.width
|
|
2577
2577
|
}, {
|
|
2578
2578
|
default: he(() => [
|
|
2579
|
-
D("div",
|
|
2580
|
-
(
|
|
2579
|
+
D("div", io, [
|
|
2580
|
+
(Y(), Ve(Ze, {
|
|
2581
2581
|
rowContents: P.value,
|
|
2582
2582
|
key: P.value,
|
|
2583
2583
|
isEnableWrap: !1,
|
|
2584
2584
|
isButtonRow: !1,
|
|
2585
2585
|
isStartJustify: !1,
|
|
2586
|
-
buttonValue:
|
|
2586
|
+
buttonValue: q.value,
|
|
2587
2587
|
onOnButtonClick: Ce
|
|
2588
2588
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2589
2589
|
])
|
|
@@ -2593,11 +2593,11 @@ const Es = { class: "form-content" }, Ss = {
|
|
|
2593
2593
|
], 64);
|
|
2594
2594
|
};
|
|
2595
2595
|
}
|
|
2596
|
-
}),
|
|
2597
|
-
function
|
|
2598
|
-
return
|
|
2596
|
+
}), no = /* @__PURE__ */ We(oo, [["__scopeId", "data-v-f6b5d4fc"]]), uo = {};
|
|
2597
|
+
function ro(r, S) {
|
|
2598
|
+
return Y(), _e("div");
|
|
2599
2599
|
}
|
|
2600
|
-
const
|
|
2600
|
+
const co = /* @__PURE__ */ We(uo, [["render", ro]]), to = { class: "extra-content" }, po = { key: 0 }, fo = { key: 1 }, vo = { class: "dialog-footer" }, ho = {
|
|
2601
2601
|
__name: "index",
|
|
2602
2602
|
props: {
|
|
2603
2603
|
itemData: {
|
|
@@ -2617,7 +2617,7 @@ const ro = /* @__PURE__ */ We(no, [["render", uo]]), co = { class: "extra-conten
|
|
|
2617
2617
|
},
|
|
2618
2618
|
emits: ["change"],
|
|
2619
2619
|
setup(r, { emit: S }) {
|
|
2620
|
-
const m = r, o =
|
|
2620
|
+
const m = r, o = z(0), n = z(), O = z(), $ = S, _ = z(!1), P = z({}), q = z({}), E = z();
|
|
2621
2621
|
Xe(
|
|
2622
2622
|
() => [m.itemData],
|
|
2623
2623
|
() => {
|
|
@@ -2640,12 +2640,12 @@ const ro = /* @__PURE__ */ We(no, [["render", uo]]), co = { class: "extra-conten
|
|
|
2640
2640
|
const ue = (c, p, h, y) => {
|
|
2641
2641
|
var ye;
|
|
2642
2642
|
let oe = {};
|
|
2643
|
-
((ye = c == null ? void 0 : c[0]) == null ? void 0 : ye.contents) === "详情" && (
|
|
2643
|
+
((ye = c == null ? void 0 : c[0]) == null ? void 0 : ye.contents) === "详情" && (_.value = !0, oe[p] = c, O.value = c == null ? void 0 : c.filter((Ie) => (Ie == null ? void 0 : Ie.key) !== "tableContentName"), P.value = oe, q.value = h, E.value = y.id);
|
|
2644
2644
|
}, se = (c) => {
|
|
2645
2645
|
var Ie, pe, we, b;
|
|
2646
|
-
const p = (pe = (Ie = Object.values(l(P.value))) == null ? void 0 : Ie[0]) == null ? void 0 : pe.filter((
|
|
2646
|
+
const p = (pe = (Ie = Object.values(l(P.value))) == null ? void 0 : Ie[0]) == null ? void 0 : pe.filter((W) => (W == null ? void 0 : W.key) === "tableContentName"), h = (b = (we = Object.values(l(P.value))) == null ? void 0 : we[0]) == null ? void 0 : b.filter((W) => (W == null ? void 0 : W.key) !== "tableContentName"), y = h == null ? void 0 : h.map((W, a) => {
|
|
2647
2647
|
var v;
|
|
2648
|
-
return a === c.index && (
|
|
2648
|
+
return a === c.index && (W == null ? void 0 : W.comp) === "Table" && (W.compData = (v = W.compData) == null ? void 0 : v.map((f) => {
|
|
2649
2649
|
var w, F;
|
|
2650
2650
|
return (f == null ? void 0 : f.key) === "tableContents" && (f.contents = (F = (w = c.content) == null ? void 0 : w.map((te) => {
|
|
2651
2651
|
let A = {};
|
|
@@ -2653,44 +2653,44 @@ const ro = /* @__PURE__ */ We(no, [["render", uo]]), co = { class: "extra-conten
|
|
|
2653
2653
|
u !== "id" && (A[u] = te[u]);
|
|
2654
2654
|
return A;
|
|
2655
2655
|
})) == null ? void 0 : F.map((te) => Object.values(te))), f;
|
|
2656
|
-
})),
|
|
2656
|
+
})), W;
|
|
2657
2657
|
});
|
|
2658
2658
|
y.unshift(p == null ? void 0 : p[0]);
|
|
2659
2659
|
let oe = l(P.value), ye = {};
|
|
2660
|
-
for (let
|
|
2661
|
-
ye[
|
|
2660
|
+
for (let W in oe)
|
|
2661
|
+
ye[W] = y;
|
|
2662
2662
|
P.value = ye;
|
|
2663
2663
|
}, Ce = () => {
|
|
2664
|
-
|
|
2664
|
+
_.value = !1, P.value = {}, q.value = {}, E.value = void 0, o.value++;
|
|
2665
2665
|
}, ce = (c) => {
|
|
2666
2666
|
var Ie, pe, we, b;
|
|
2667
|
-
const p = (pe = (Ie = Object.values(l(P.value))) == null ? void 0 : Ie[0]) == null ? void 0 : pe.filter((
|
|
2667
|
+
const p = (pe = (Ie = Object.values(l(P.value))) == null ? void 0 : Ie[0]) == null ? void 0 : pe.filter((W) => (W == null ? void 0 : W.key) === "tableContentName"), h = (b = (we = Object.values(l(P.value))) == null ? void 0 : we[0]) == null ? void 0 : b.filter((W) => (W == null ? void 0 : W.key) !== "tableContentName"), y = h == null ? void 0 : h.map((W, a) => (a === c.index && (W.compData = c.contents), W));
|
|
2668
2668
|
y.unshift(p == null ? void 0 : p[0]);
|
|
2669
2669
|
let oe = l(P.value), ye = {};
|
|
2670
|
-
for (let
|
|
2671
|
-
ye[
|
|
2670
|
+
for (let W in oe)
|
|
2671
|
+
ye[W] = y;
|
|
2672
2672
|
P.value = ye;
|
|
2673
2673
|
}, be = () => {
|
|
2674
2674
|
var p, h;
|
|
2675
2675
|
let c = {};
|
|
2676
|
-
for (let y in
|
|
2677
|
-
y === ((p = Object.keys(P.value)) == null ? void 0 : p[0]) ? c[y] = (h = Object.values(P.value)) == null ? void 0 : h[0] : c[y] =
|
|
2676
|
+
for (let y in q.value)
|
|
2677
|
+
y === ((p = Object.keys(P.value)) == null ? void 0 : p[0]) ? c[y] = (h = Object.values(P.value)) == null ? void 0 : h[0] : c[y] = q.value[y];
|
|
2678
2678
|
$("change", {
|
|
2679
2679
|
buttonName: "编辑",
|
|
2680
2680
|
index: E.value,
|
|
2681
2681
|
singleContent: c
|
|
2682
|
-
}, "methodData"),
|
|
2682
|
+
}, "methodData"), _.value = !1, P.value = {}, q.value = {}, E.value = void 0;
|
|
2683
2683
|
}, C = () => {
|
|
2684
|
-
|
|
2684
|
+
_.value = !1, P.value = {}, q.value = {}, E.value = void 0;
|
|
2685
2685
|
}, I = (c) => {
|
|
2686
2686
|
$("change", c, "methodData");
|
|
2687
|
-
}, ve = (c) =>
|
|
2687
|
+
}, ve = (c) => Ia(c);
|
|
2688
2688
|
return (c, p) => {
|
|
2689
2689
|
const h = Re("el-button");
|
|
2690
|
-
return
|
|
2691
|
-
(
|
|
2692
|
-
(y == null ? void 0 : y.key) === "extra" ? (
|
|
2693
|
-
(
|
|
2690
|
+
return Y(), _e("div", to, [
|
|
2691
|
+
(Y(!0), _e(Ue, null, Ne(n.value, (y, oe) => (Y(), _e("div", { key: o.value }, [
|
|
2692
|
+
(y == null ? void 0 : y.key) === "extra" ? (Y(), _e("div", po)) : (Y(), _e("div", fo, [
|
|
2693
|
+
(Y(), Ve(ua(ve(y.comp)), {
|
|
2694
2694
|
itemData: y == null ? void 0 : y.compData,
|
|
2695
2695
|
childItemData: y == null ? void 0 : y.itemChildData,
|
|
2696
2696
|
key: oe,
|
|
@@ -2700,16 +2700,16 @@ const ro = /* @__PURE__ */ We(no, [["render", uo]]), co = { class: "extra-conten
|
|
|
2700
2700
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2701
2701
|
]))
|
|
2702
2702
|
]))), 128)),
|
|
2703
|
-
|
|
2704
|
-
visible:
|
|
2703
|
+
Q(el, {
|
|
2704
|
+
visible: _.value,
|
|
2705
2705
|
onBeforeDestroy: C
|
|
2706
2706
|
}, {
|
|
2707
2707
|
default: he(() => [
|
|
2708
|
-
(
|
|
2708
|
+
(Y(!0), _e(Ue, null, Ne(O.value, (y, oe) => (Y(), _e("div", {
|
|
2709
2709
|
key: oe,
|
|
2710
2710
|
class: "extra-dialog"
|
|
2711
2711
|
}, [
|
|
2712
|
-
(
|
|
2712
|
+
(Y(), Ve(ua(ve(y.comp)), {
|
|
2713
2713
|
itemData: y == null ? void 0 : y.compData,
|
|
2714
2714
|
onChange: se,
|
|
2715
2715
|
childItemData: y == null ? void 0 : y.itemChildData,
|
|
@@ -2721,8 +2721,8 @@ const ro = /* @__PURE__ */ We(no, [["render", uo]]), co = { class: "extra-conten
|
|
|
2721
2721
|
]))), 128))
|
|
2722
2722
|
]),
|
|
2723
2723
|
footer: he(() => [
|
|
2724
|
-
D("div",
|
|
2725
|
-
|
|
2724
|
+
D("div", vo, [
|
|
2725
|
+
Q(h, {
|
|
2726
2726
|
class: "cancel-button footer-button",
|
|
2727
2727
|
onClick: Ce,
|
|
2728
2728
|
id: "themeBorderButton"
|
|
@@ -2733,7 +2733,7 @@ const ro = /* @__PURE__ */ We(no, [["render", uo]]), co = { class: "extra-conten
|
|
|
2733
2733
|
_: 1,
|
|
2734
2734
|
__: [0]
|
|
2735
2735
|
}),
|
|
2736
|
-
|
|
2736
|
+
Q(h, {
|
|
2737
2737
|
class: "confirm-button footer-button",
|
|
2738
2738
|
onClick: be,
|
|
2739
2739
|
id: "themeButton"
|
|
@@ -2751,9 +2751,9 @@ const ro = /* @__PURE__ */ We(no, [["render", uo]]), co = { class: "extra-conten
|
|
|
2751
2751
|
]);
|
|
2752
2752
|
};
|
|
2753
2753
|
}
|
|
2754
|
-
},
|
|
2755
|
-
let
|
|
2756
|
-
const
|
|
2754
|
+
}, mo = /* @__PURE__ */ We(ho, [["__scopeId", "data-v-2d9c5ab2"]]);
|
|
2755
|
+
let Le = "$R";
|
|
2756
|
+
const Jn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Gn = (r) => /^'[^']+':\[\[.*\]\]$/.exec(l(r)), yo = (r) => /^'([^']+)':.*$/.exec(l(r)), ra = (r) => {
|
|
2757
2757
|
let S = r;
|
|
2758
2758
|
const m = [];
|
|
2759
2759
|
let o = "";
|
|
@@ -2763,34 +2763,34 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2763
2763
|
}, ga = (r, S) => {
|
|
2764
2764
|
let m = r;
|
|
2765
2765
|
const o = [];
|
|
2766
|
-
let n = "",
|
|
2766
|
+
let n = "", O = 0;
|
|
2767
2767
|
for (const $ of m)
|
|
2768
|
-
|
|
2768
|
+
O++, $.includes("{") || n.includes("{") || $.includes("[") || n.includes("[") || $.includes("【") || n.includes("【") || $.includes("(") || n.includes("(") || $.includes("(") || n.includes("(") || $.includes("/*") || n.includes("/*") ? (n += $.trim(), l(n).split("{").length - 1 === l(n).split("}").length - 1 && l(n).split("【").length - 1 === l(n).split("】").length - 1 && l(n).split("[").length - 1 === l(n).split("]").length - 1 && l(n).split("(").length - 1 === l(n).split(")").length - 1 && l(n).split("(").length - 1 === l(n).split(")").length - 1 && l(n).split("/*").length - 1 === l(n).split("*/").length - 1 && n[n.length - 1] !== "," && n[n.length - 1] === S ? (o.push(n.replace(/\/\*[\s\S]*?\*\//g, "")), n = "") : O === (r == null ? void 0 : r.length) && o.push(n.replace(/\/\*[\s\S]*?\*\//g, ""))) : (n += $.trim(), (n == null ? void 0 : n[(n == null ? void 0 : n.length) - 1]) === S && (o.push(n.replace(/\/\*[\s\S]*?\*\//g, "")), n = ""));
|
|
2769
2769
|
return o;
|
|
2770
|
-
},
|
|
2770
|
+
}, Hn = (r, S) => {
|
|
2771
2771
|
let m = r;
|
|
2772
2772
|
const o = [];
|
|
2773
|
-
let n = "",
|
|
2773
|
+
let n = "", O = 0;
|
|
2774
2774
|
for (const $ of m)
|
|
2775
|
-
|
|
2775
|
+
O++, $.includes("{") || n.includes("{") || $.includes("[") || n.includes("[") || $.includes("【") || n.includes("【") || $.includes("(") || n.includes("(") || $.includes("(") || n.includes("(") || $.includes("/*") || n.includes("/*") ? (n += $.trim(), l(n).split("{").length - 1 === l(n).split("}").length - 1 && l(n).split("【").length - 1 === l(n).split("】").length - 1 && l(n).split("[").length - 1 === l(n).split("]").length - 1 && l(n).split("(").length - 1 === l(n).split(")").length - 1 && l(n).split("(").length - 1 === l(n).split(")").length - 1 && l(n).split("/*").length - 1 === l(n).split("*/").length - 1 && n[n.length - 1] === S ? (o.push(n.replace(/\/\*[\s\S]*?\*\//g, "")), n = "") : O === (r == null ? void 0 : r.length) && (o.push(n.replace(/\/\*[\s\S]*?\*\//g, "")), n = "")) : (n += $.trim(), (n == null ? void 0 : n[(n == null ? void 0 : n.length) - 1]) === S && (o.push(n.replace(/\/\*[\s\S]*?\*\//g, "")), n = ""));
|
|
2776
2776
|
return (n == null ? void 0 : n.length) !== 0 && o.push(n.replace(/\/\*[\s\S]*?\*\//g, "")), o;
|
|
2777
|
-
},
|
|
2778
|
-
var S, m, o, n,
|
|
2779
|
-
if (
|
|
2780
|
-
let le = {}, ie = (o = (m = (S = r == null ? void 0 : r.replace(":",
|
|
2777
|
+
}, qn = (r) => /^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l(r)), Qn = (r) => {
|
|
2778
|
+
var S, m, o, n, O, $, _, P, q, E, ue, se, Ce, ce, be, C, I, ve, c, p, h, y, oe, ye, Ie, pe, we, b, W, a, v, f, w, F, te, A, u, G, B, Z, ne, K, k, H, g, ee, M, J, ae, V, i, X, re, de, e, s, t, d, x, fe, ke, R;
|
|
2779
|
+
if (yo(r)) {
|
|
2780
|
+
let le = {}, ie = (o = (m = (S = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : S.split(Le)) == null ? void 0 : m[0]) == null ? void 0 : o.replaceAll("'", ""), me = "", j = (O = (n = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : n.split(Le)) == null ? void 0 : O[1];
|
|
2781
2781
|
if (j.includes("{") || j.includes("("))
|
|
2782
|
-
if (j.includes("{") ? me = me + ((ue = (E = (
|
|
2782
|
+
if (j.includes("{") ? me = me + ((ue = (E = (q = (P = (_ = ($ = j == null ? void 0 : j.split("{")) == null ? void 0 : $[1]) == null ? void 0 : _.split("}")) == null ? void 0 : P[0]) == null ? void 0 : q.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : E.replaceAll("[", "([")) == null ? void 0 : ue.replaceAll("]", "])")) + "[" : me = me + ((I = (C = (be = (ce = (Ce = (se = j == null ? void 0 : j.split("(")) == null ? void 0 : se[1]) == null ? void 0 : Ce.split(")")) == null ? void 0 : ce[0]) == null ? void 0 : be.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : C.replaceAll("[", "([")) == null ? void 0 : I.replaceAll("]", "])")) + "[", !((ve = j == null ? void 0 : j.split(")")) != null && ve[1]))
|
|
2783
2783
|
me = me + ((h = (p = (c = j == null ? void 0 : j.split("[")) == null ? void 0 : c[1]) == null ? void 0 : p.split("]")) == null ? void 0 : h[0]) + "]";
|
|
2784
2784
|
else {
|
|
2785
|
-
const U = (Ie = (ye = (oe = (y = j == null ? void 0 : j.split(")")) == null ? void 0 : y[1]) == null ? void 0 : oe.replace("[",
|
|
2785
|
+
const U = (Ie = (ye = (oe = (y = j == null ? void 0 : j.split(")")) == null ? void 0 : y[1]) == null ? void 0 : oe.replace("[", Le)) == null ? void 0 : ye.split(Le)) == null ? void 0 : Ie[1];
|
|
2786
2786
|
if (U) {
|
|
2787
|
-
const
|
|
2788
|
-
me = me + ((pe =
|
|
2787
|
+
const L = U.lastIndexOf("]"), N = U.substring(0, L) + Le + U.substring(L + 1);
|
|
2788
|
+
me = me + ((pe = N == null ? void 0 : N.split(Le)) == null ? void 0 : pe[0]) + "]";
|
|
2789
2789
|
} else
|
|
2790
|
-
me = (
|
|
2790
|
+
me = (W = (b = (we = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : we.split(Le)) == null ? void 0 : b[1]) == null ? void 0 : W.replaceAll("'", "");
|
|
2791
2791
|
}
|
|
2792
2792
|
else
|
|
2793
|
-
me = (f = (v = (a = r == null ? void 0 : r.replace(":",
|
|
2793
|
+
me = (f = (v = (a = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : a.split(Le)) == null ? void 0 : v[1]) == null ? void 0 : f.replaceAll("'", "");
|
|
2794
2794
|
return le[ie] = me, {
|
|
2795
2795
|
groupName: "",
|
|
2796
2796
|
formContents: [[le]]
|
|
@@ -2800,19 +2800,19 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2800
2800
|
if (r.includes("#")) {
|
|
2801
2801
|
ie = (F = (w = r == null ? void 0 : r.split("#")) == null ? void 0 : w[0]) == null ? void 0 : F.replaceAll("'", "");
|
|
2802
2802
|
let j = (A = (te = r == null ? void 0 : r.split("#")) == null ? void 0 : te[1]) == null ? void 0 : A.replaceAll("'", "");
|
|
2803
|
-
j != null && j.includes("{") ? me = me + ((
|
|
2803
|
+
j != null && j.includes("{") ? me = me + ((Z = (B = (G = (u = j == null ? void 0 : j.split("{")) == null ? void 0 : u[1]) == null ? void 0 : G.split("}")) == null ? void 0 : B[0]) == null ? void 0 : Z.replaceAll(":", "/").replaceAll("'", "")) + "[" : me = me + ((H = (k = (K = (ne = j == null ? void 0 : j.split("(")) == null ? void 0 : ne[1]) == null ? void 0 : K.split(")")) == null ? void 0 : k[0]) == null ? void 0 : H.replaceAll(":", "/").replaceAll("'", "")) + "[", me = me + ((M = (ee = (g = j == null ? void 0 : j.split("[")) == null ? void 0 : g[1]) == null ? void 0 : ee.split("]")) == null ? void 0 : M[0]) + "]";
|
|
2804
2804
|
} else {
|
|
2805
|
-
let j = (V = (ae = (
|
|
2806
|
-
if ((i = j == null ? void 0 : j.split(":")) == null || i.forEach((U,
|
|
2807
|
-
var
|
|
2808
|
-
((
|
|
2805
|
+
let j = (V = (ae = (J = r == null ? void 0 : r.split("]")) == null ? void 0 : J[0]) == null ? void 0 : ae.split("[")) == null ? void 0 : V[1];
|
|
2806
|
+
if ((i = j == null ? void 0 : j.split(":")) == null || i.forEach((U, L) => {
|
|
2807
|
+
var N;
|
|
2808
|
+
((N = j == null ? void 0 : j.split(":")) == null ? void 0 : N.length) - 1 === L && (ie = U == null ? void 0 : U.replaceAll("'", ""));
|
|
2809
2809
|
}), !(r != null && r.includes("[")))
|
|
2810
|
-
me = ((e = (de = (re = (
|
|
2810
|
+
me = ((e = (de = (re = (X = r == null ? void 0 : r.split("]")) == null ? void 0 : X[1]) == null ? void 0 : re.replace(":", Le).split(Le)) == null ? void 0 : de[1]) == null ? void 0 : e.replaceAll("'", "")) ?? "";
|
|
2811
2811
|
else {
|
|
2812
|
-
let U = (ke = (fe = (x = (d = (t = (s = l(r)) == null ? void 0 : s.split("(")) == null ? void 0 : t[1]) == null ? void 0 : d.split(")")) == null ? void 0 : x[0]) == null ? void 0 : fe.replaceAll("{", "").replaceAll("}", "")) == null ? void 0 : ke.replaceAll("'", "").replaceAll(":", "/"),
|
|
2813
|
-
(R = j == null ? void 0 : j.split(":")) == null || R.forEach((
|
|
2814
|
-
|
|
2815
|
-
}), me = U + "[" +
|
|
2812
|
+
let U = (ke = (fe = (x = (d = (t = (s = l(r)) == null ? void 0 : s.split("(")) == null ? void 0 : t[1]) == null ? void 0 : d.split(")")) == null ? void 0 : x[0]) == null ? void 0 : fe.replaceAll("{", "").replaceAll("}", "")) == null ? void 0 : ke.replaceAll("'", "").replaceAll(":", "/"), L = "";
|
|
2813
|
+
(R = j == null ? void 0 : j.split(":")) == null || R.forEach((N) => {
|
|
2814
|
+
L = L === "" ? L + (N == null ? void 0 : N.replaceAll("'", "")) : L + ":" + (N == null ? void 0 : N.replaceAll("'", ""));
|
|
2815
|
+
}), me = U + "[" + L + "]";
|
|
2816
2816
|
}
|
|
2817
2817
|
}
|
|
2818
2818
|
return le[ie] = me, {
|
|
@@ -2820,23 +2820,23 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2820
2820
|
formContents: [[le]]
|
|
2821
2821
|
};
|
|
2822
2822
|
}
|
|
2823
|
-
},
|
|
2823
|
+
}, Xn = (r) => (r == null ? void 0 : r[0]) === "[" && (r == null ? void 0 : r[r.length - 1]) === "]" && !(r != null && r.includes("{")), bo = (r, S) => {
|
|
2824
2824
|
let m = r.length;
|
|
2825
2825
|
for (; m--; )
|
|
2826
2826
|
if (r[m] === ")")
|
|
2827
2827
|
return r.substring(0, m) + S + r.substring(m + 1);
|
|
2828
2828
|
return r;
|
|
2829
|
-
},
|
|
2830
|
-
var
|
|
2829
|
+
}, Yn = (r) => {
|
|
2830
|
+
var O, $, _, P, q;
|
|
2831
2831
|
let S = r.slice(1, r.length - 1), m;
|
|
2832
|
-
(S == null ? void 0 : S[0]) === "[" ? m = ($ = (
|
|
2832
|
+
(S == null ? void 0 : S[0]) === "[" ? m = ($ = (O = ra(l(S))) == null ? void 0 : O.filter((E) => E !== ",")) == null ? void 0 : $.map((E) => E == null ? void 0 : E.slice(1, E.length - 1)) : (S = "[" + l(S) + "]", m = (P = (_ = ra(l(S))) == null ? void 0 : _.filter((E) => E !== ",")) == null ? void 0 : P.map((E) => E == null ? void 0 : E.slice(1, E.length - 1))), m = (q = l(m)) == null ? void 0 : q.map((E) => {
|
|
2833
2833
|
var ue, se;
|
|
2834
|
-
return E = (se = (ue = E.replace(")",
|
|
2834
|
+
return E = (se = (ue = E.replace(")", Le)) == null ? void 0 : ue.split(Le)) == null ? void 0 : se[1], E;
|
|
2835
2835
|
});
|
|
2836
2836
|
let o = [], n = [];
|
|
2837
2837
|
return m == null || m.forEach((E) => {
|
|
2838
|
-
var Ce, ce, be, C, I, ve, c, p, h, y, oe, ye, Ie, pe, we, b,
|
|
2839
|
-
let ue = (ce = (Ce = l(E)) == null ? void 0 : Ce.slice(1, l(E).length - 1)) == null ? void 0 : ce.replace(":",
|
|
2838
|
+
var Ce, ce, be, C, I, ve, c, p, h, y, oe, ye, Ie, pe, we, b, W, a, v, f, w, F, te, A, u, G, B, Z, ne, K, k, H, g, ee, M, J, ae, V, i, X, re, de, e, s, t, d, x, fe;
|
|
2839
|
+
let ue = (ce = (Ce = l(E)) == null ? void 0 : Ce.slice(1, l(E).length - 1)) == null ? void 0 : ce.replace(":", Le).split(Le);
|
|
2840
2840
|
if (((C = (be = l(ue)) == null ? void 0 : be[0]) == null ? void 0 : C.replaceAll("'", "")) === "输入") {
|
|
2841
2841
|
if (!((ve = (I = l(ue)) == null ? void 0 : I[1]) != null && ve.includes("[")) && !((p = (c = l(ue)) == null ? void 0 : c[1]) != null && p.includes("("))) {
|
|
2842
2842
|
ba((h = l(ue)) == null ? void 0 : h[1].replaceAll("'", '"')) && n.push(JSON.parse((y = l(ue)) == null ? void 0 : y[1].replaceAll("'", '"')));
|
|
@@ -2844,10 +2844,10 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2844
2844
|
}
|
|
2845
2845
|
if (((ye = (oe = l(ue)) == null ? void 0 : oe[1]) == null ? void 0 : ye[0]) === "[") {
|
|
2846
2846
|
let ke = (b = (Ie = l(ue)) == null ? void 0 : Ie[1]) == null ? void 0 : b.slice(1, ((we = (pe = l(ue)) == null ? void 0 : pe[1]) == null ? void 0 : we.length) - 1);
|
|
2847
|
-
(a = (
|
|
2848
|
-
var U,
|
|
2849
|
-
let le = {}, ie = (
|
|
2850
|
-
(xe = ie == null ? void 0 : ie[1]) != null && xe.includes("(") ? (j = (tl = (He = (Ge = (Me = (Te = (Se = (T = ($e = l(ie)) == null ? void 0 : $e[1]) == null ? void 0 : T.replaceAll("{", "")) == null ? void 0 : Se.replaceAll("}", "")) == null ? void 0 : Te.split("(")) == null ? void 0 : Me[1]) == null ? void 0 : Ge.split(")")) == null ? void 0 : He[0]) == null ? void 0 : tl.replaceAll(":", "/").replaceAll("'", ""), (pl = (dl = l(ie)) == null ? void 0 : dl[1]) != null && pl.includes("[") && (j = l(j) + "[" + ((fl = (ze = (ul = (nl = (Ye = (ml = l(ie)) == null ? void 0 : ml[1]) == null ? void 0 : Ye.split("[")) == null ? void 0 : nl[1]) == null ? void 0 : ul.split("]")) == null ? void 0 : ze[0]) == null ? void 0 : fl.replaceAll("'", "")) + "]")) : j = (
|
|
2847
|
+
(a = (W = ra(ke)) == null ? void 0 : W.filter((R) => R !== ",")) == null || a.forEach((R) => {
|
|
2848
|
+
var U, L, N, ge, xe, Oe, $e, T, Se, Te, Me, Ge, He, tl, dl, pl, ml, Ye, nl, ul, ze, fl;
|
|
2849
|
+
let le = {}, ie = (N = (L = l(R)) == null ? void 0 : L.slice(1, ((U = l(R)) == null ? void 0 : U.length) - 1)) == null ? void 0 : N.replace(":", Le).split(Le), me = (ge = ie == null ? void 0 : ie[0]) == null ? void 0 : ge.replaceAll("'", ""), j;
|
|
2850
|
+
(xe = ie == null ? void 0 : ie[1]) != null && xe.includes("(") ? (j = (tl = (He = (Ge = (Me = (Te = (Se = (T = ($e = l(ie)) == null ? void 0 : $e[1]) == null ? void 0 : T.replaceAll("{", "")) == null ? void 0 : Se.replaceAll("}", "")) == null ? void 0 : Te.split("(")) == null ? void 0 : Me[1]) == null ? void 0 : Ge.split(")")) == null ? void 0 : He[0]) == null ? void 0 : tl.replaceAll(":", "/").replaceAll("'", ""), (pl = (dl = l(ie)) == null ? void 0 : dl[1]) != null && pl.includes("[") && (j = l(j) + "[" + ((fl = (ze = (ul = (nl = (Ye = (ml = l(ie)) == null ? void 0 : ml[1]) == null ? void 0 : Ye.split("[")) == null ? void 0 : nl[1]) == null ? void 0 : ul.split("]")) == null ? void 0 : ze[0]) == null ? void 0 : fl.replaceAll("'", "")) + "]")) : j = (Oe = ie == null ? void 0 : ie[1]) == null ? void 0 : Oe.replaceAll("'", ""), le[me] = j, n.push(le);
|
|
2851
2851
|
});
|
|
2852
2852
|
}
|
|
2853
2853
|
} else {
|
|
@@ -2855,31 +2855,31 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2855
2855
|
ba((te = l(ue)) == null ? void 0 : te[1].replaceAll("'", '"')) && o.push(JSON.parse((A = l(ue)) == null ? void 0 : A[1].replaceAll("'", '"')));
|
|
2856
2856
|
return;
|
|
2857
2857
|
}
|
|
2858
|
-
if (((
|
|
2859
|
-
let ke = (
|
|
2860
|
-
(
|
|
2861
|
-
var U,
|
|
2862
|
-
let le = {}, ie = (
|
|
2858
|
+
if (((G = (u = l(ue)) == null ? void 0 : u[1]) == null ? void 0 : G[0]) === "[") {
|
|
2859
|
+
let ke = (K = (B = l(ue)) == null ? void 0 : B[1]) == null ? void 0 : K.slice(1, ((ne = (Z = l(ue)) == null ? void 0 : Z[1]) == null ? void 0 : ne.length) - 1);
|
|
2860
|
+
(H = (k = ra(ke)) == null ? void 0 : k.filter((R) => R !== ",")) == null || H.forEach((R) => {
|
|
2861
|
+
var U, L, N, ge, xe, Oe, $e, T, Se, Te, Me, Ge, He, tl, dl, pl, ml, Ye, nl, ul, ze, fl, rl, Ll, Ol, Vl, Rl, Ul, Pl, jl, Kl, Nl, Wl;
|
|
2862
|
+
let le = {}, ie = (N = (L = l(R)) == null ? void 0 : L.slice(1, ((U = l(R)) == null ? void 0 : U.length) - 1)) == null ? void 0 : N.replace(":", Le).split(Le), me = (ge = ie == null ? void 0 : ie[0]) == null ? void 0 : ge.replaceAll("'", ""), j;
|
|
2863
2863
|
if (!((xe = ie == null ? void 0 : ie[1]) != null && xe.includes("(")))
|
|
2864
|
-
j = (
|
|
2865
|
-
else if (j = (Ge = (Me = (Te = (Se = (T = ($e = l(ie)) == null ? void 0 : $e[1]) == null ? void 0 : T.replaceAll("{", "")) == null ? void 0 : Se.replaceAll("}", "")) == null ? void 0 : Te.replace("(",
|
|
2864
|
+
j = (Oe = ie == null ? void 0 : ie[1]) == null ? void 0 : Oe.replaceAll("'", "");
|
|
2865
|
+
else if (j = (Ge = (Me = (Te = (Se = (T = ($e = l(ie)) == null ? void 0 : $e[1]) == null ? void 0 : T.replaceAll("{", "")) == null ? void 0 : Se.replaceAll("}", "")) == null ? void 0 : Te.replace("(", Le)) == null ? void 0 : Me.split(Le)) == null ? void 0 : Ge[1], j = (tl = (He = bo(l(j), Le)) == null ? void 0 : He.split(Le)) == null ? void 0 : tl[0], !(j != null && j.includes("(")))
|
|
2866
2866
|
j = (dl = l(j)) == null ? void 0 : dl.replaceAll(":", "/").replaceAll("'", ""), (ml = (pl = l(ie)) == null ? void 0 : pl[1]) != null && ml.includes("[") && (j = l(j) + "[" + ((rl = (fl = (ze = (ul = (nl = (Ye = l(ie)) == null ? void 0 : Ye[1]) == null ? void 0 : nl.split("[")) == null ? void 0 : ul[1]) == null ? void 0 : ze.split("]")) == null ? void 0 : fl[0]) == null ? void 0 : rl.replaceAll("'", "")) + "]");
|
|
2867
2867
|
else {
|
|
2868
2868
|
let cl = "";
|
|
2869
|
-
(
|
|
2870
|
-
var
|
|
2869
|
+
(Ll = ga(j, ":")) == null || Ll.forEach((al) => {
|
|
2870
|
+
var Ml, zl, Jl, Gl, Hl, ql, Ql, Xl, Yl, Zl, ea, la, aa, sa, ia;
|
|
2871
2871
|
if (!(al != null && al.includes("(")))
|
|
2872
|
-
cl = cl === "" ? cl + ((
|
|
2872
|
+
cl = cl === "" ? cl + ((Ml = al == null ? void 0 : al.replaceAll(":", "")) == null ? void 0 : Ml.replaceAll("'", "")) : cl + "/" + ((zl = al == null ? void 0 : al.replaceAll(":", "")) == null ? void 0 : zl.replaceAll("'", ""));
|
|
2873
2873
|
else {
|
|
2874
|
-
let Dl = (
|
|
2875
|
-
Dl = Dl + "[" + ((
|
|
2874
|
+
let Dl = (Zl = (Yl = (Xl = (Ql = (ql = (Hl = (Gl = (Jl = l(al)) == null ? void 0 : Jl.replaceAll("{", "")) == null ? void 0 : Gl.replaceAll("}", "")) == null ? void 0 : Hl.replace("(", Le)) == null ? void 0 : ql.split(Le)) == null ? void 0 : Ql[1]) == null ? void 0 : Xl.split(")")) == null ? void 0 : Yl[0]) == null ? void 0 : Zl.replaceAll(":", "/").replaceAll("'", "");
|
|
2875
|
+
Dl = Dl + "[" + ((ia = (sa = (aa = (la = (ea = l(al)) == null ? void 0 : ea.split("[")) == null ? void 0 : la[1]) == null ? void 0 : aa.split("]")) == null ? void 0 : sa[0]) == null ? void 0 : ia.replaceAll("'", "")) + "]", cl = cl === "" ? cl + "[" + Dl + "]" : cl + "/[" + Dl + "]";
|
|
2876
2876
|
}
|
|
2877
|
-
}), j = cl + "[" + ((
|
|
2877
|
+
}), j = cl + "[" + ((Wl = (Nl = (Kl = (jl = (Vl = (Ol = l(ie)) == null ? void 0 : Ol[1]) == null ? void 0 : Vl.split("[")) == null ? void 0 : jl[((Pl = (Ul = (Rl = l(ie)) == null ? void 0 : Rl[1]) == null ? void 0 : Ul.split("[")) == null ? void 0 : Pl.length) - 1]) == null ? void 0 : Kl.split("]")) == null ? void 0 : Nl[0]) == null ? void 0 : Wl.replaceAll("'", "")) + "]";
|
|
2878
2878
|
}
|
|
2879
2879
|
le[me] = j, o.push(le);
|
|
2880
2880
|
});
|
|
2881
2881
|
} else {
|
|
2882
|
-
let ke = (
|
|
2882
|
+
let ke = (J = (g = l(ue)) == null ? void 0 : g[1]) == null ? void 0 : J.slice(1, ((M = (ee = l(ue)) == null ? void 0 : ee[1]) == null ? void 0 : M.length) - 1), R = {}, le = (t = (s = (i = (V = (ae = l(ke)) == null ? void 0 : ae.split("]")) == null ? void 0 : V[0]) == null ? void 0 : i.split(":")) == null ? void 0 : s[((e = (de = (re = (X = l(ke)) == null ? void 0 : X.split("]")) == null ? void 0 : re[0]) == null ? void 0 : de.split(":")) == null ? void 0 : e.length) - 1]) == null ? void 0 : t.replaceAll("'", ""), ie = ((fe = (x = (d = l(ke)) == null ? void 0 : d.split("]")) == null ? void 0 : x[0]) == null ? void 0 : fe.replaceAll("'", "")) + "]";
|
|
2883
2883
|
R[le] = ie, o.push(R);
|
|
2884
2884
|
}
|
|
2885
2885
|
}
|
|
@@ -2887,62 +2887,62 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2887
2887
|
output: o,
|
|
2888
2888
|
input: n
|
|
2889
2889
|
};
|
|
2890
|
-
},
|
|
2891
|
-
var
|
|
2890
|
+
}, go = Da(ll), { routeToChildPath: $l } = il(go), ka = Ka(ll), { activeMenuPath: Bl } = il(ka), ko = wa(), { loginUserInfo: Il } = il(ko), _o = async () => {
|
|
2891
|
+
var O, $, _, P, q, E, ue, se, Ce, ce, be, C, I, ve, c, p, h, y, oe, ye, Ie, pe, we, b, W, a, v, f, w, F, te, A, u, G, B, Z, ne;
|
|
2892
2892
|
let r = "";
|
|
2893
2893
|
const S = await wl({
|
|
2894
2894
|
key: {
|
|
2895
2895
|
type: "structure",
|
|
2896
|
-
pageKey: l(
|
|
2896
|
+
pageKey: l($l).value,
|
|
2897
2897
|
systemKey: sessionStorage.getItem("systemKey")
|
|
2898
2898
|
}
|
|
2899
2899
|
});
|
|
2900
|
-
(($ = (
|
|
2901
|
-
let m =
|
|
2902
|
-
(I =
|
|
2900
|
+
(($ = (O = S == null ? void 0 : S.data) == null ? void 0 : O.result) == null ? void 0 : $.length) > 0 && (r = (be = (ce = (Ce = (se = (ue = (E = (q = (P = (_ = S == null ? void 0 : S.data) == null ? void 0 : _.result) == null ? void 0 : P[0]) == null ? void 0 : q.value) == null ? void 0 : E.pageData) == null ? void 0 : ue.compData) == null ? void 0 : se.find((K) => (K == null ? void 0 : K.key) === "header")) == null ? void 0 : Ce.contents) == null ? void 0 : ce[0]) == null ? void 0 : be.label);
|
|
2901
|
+
let m = Bl.value;
|
|
2902
|
+
(I = Bl.value) != null && I.includes(`updateLoading${(C = Il.value) == null ? void 0 : C.account}`) ? m = l(Bl).value : (c = Bl.value) != null && c.includes(`loading${(ve = Il.value) == null ? void 0 : ve.account}`) && (m = l($l).value + `/loading${(p = Il.value) == null ? void 0 : p.account}`);
|
|
2903
2903
|
const o = await wl({
|
|
2904
2904
|
key: {
|
|
2905
2905
|
pageKey: m,
|
|
2906
2906
|
systemKey: sessionStorage.getItem("systemKey")
|
|
2907
2907
|
}
|
|
2908
2908
|
});
|
|
2909
|
-
if ((y =
|
|
2910
|
-
const
|
|
2909
|
+
if ((y = Bl.value) != null && y.includes(`updateLoading${(h = Il.value) == null ? void 0 : h.account}`)) {
|
|
2910
|
+
const K = await wl({
|
|
2911
2911
|
key: {
|
|
2912
|
-
pageKey: (ye =
|
|
2912
|
+
pageKey: (ye = Bl.value.split(`/updateLoading${(oe = Il.value) == null ? void 0 : oe.account}`)) == null ? void 0 : ye[0],
|
|
2913
2913
|
systemKey: sessionStorage.getItem("systemKey")
|
|
2914
2914
|
}
|
|
2915
2915
|
});
|
|
2916
|
-
let
|
|
2917
|
-
(
|
|
2918
|
-
ids:
|
|
2916
|
+
let k = (pe = (Ie = K == null ? void 0 : K.data) == null ? void 0 : Ie.result) == null ? void 0 : pe.map((H) => H == null ? void 0 : H.id);
|
|
2917
|
+
(k == null ? void 0 : k.length) > 0 && await fs({
|
|
2918
|
+
ids: k
|
|
2919
2919
|
});
|
|
2920
2920
|
}
|
|
2921
2921
|
let n = [];
|
|
2922
2922
|
if (((b = (we = o == null ? void 0 : o.data) == null ? void 0 : we.result) == null ? void 0 : b.length) > 0) {
|
|
2923
|
-
let
|
|
2924
|
-
var
|
|
2925
|
-
return (
|
|
2923
|
+
let K = (u = (A = (te = (F = (w = (f = (v = (a = (W = o == null ? void 0 : o.data) == null ? void 0 : W.result) == null ? void 0 : a[0]) == null ? void 0 : v.value) == null ? void 0 : f.pageData) == null ? void 0 : w.compData) == null ? void 0 : F.find((k) => (k == null ? void 0 : k.key) === "formContent")) == null ? void 0 : te.contents) == null ? void 0 : A.find((k) => {
|
|
2924
|
+
var H, g;
|
|
2925
|
+
return (k == null ? void 0 : k.key) === r || ((g = (H = k == null ? void 0 : k.optionUrl) == null ? void 0 : H.groupSelect) == null ? void 0 : g[1]) === r;
|
|
2926
2926
|
})) == null ? void 0 : u.value;
|
|
2927
|
-
if ((B = (
|
|
2928
|
-
var
|
|
2929
|
-
let
|
|
2930
|
-
|
|
2931
|
-
id:
|
|
2932
|
-
key:
|
|
2927
|
+
if ((B = (G = o == null ? void 0 : o.data) == null ? void 0 : G.result) == null || B.forEach((k) => {
|
|
2928
|
+
var g;
|
|
2929
|
+
let H = (g = l(k)) == null ? void 0 : g.key;
|
|
2930
|
+
H.pageKey = l($l).value + "/" + K, ka.setChildMenu(H.pageKey), n.push({
|
|
2931
|
+
id: k == null ? void 0 : k.id,
|
|
2932
|
+
key: H
|
|
2933
2933
|
});
|
|
2934
|
-
}),
|
|
2934
|
+
}), K === "") {
|
|
2935
2935
|
ol.error(`保存失败,${r}的必填字段没有填写`);
|
|
2936
2936
|
return;
|
|
2937
2937
|
}
|
|
2938
2938
|
await ya({
|
|
2939
2939
|
dataList: n
|
|
2940
|
-
}), ol.success("保存成功");
|
|
2940
|
+
}), ol.success("保存成功"), await ms(l($l).value + "/" + K, l($l).value + "/" + K + `/updateLoading${(Z = Il.value) == null ? void 0 : Z.account}`), ka.setActiveMenuPath(l($l).value + "/" + K + `/updateLoading${(ne = Il.value) == null ? void 0 : ne.account}`);
|
|
2941
2941
|
}
|
|
2942
|
-
},
|
|
2942
|
+
}, Co = {
|
|
2943
2943
|
key: 0,
|
|
2944
2944
|
class: "method-content"
|
|
2945
|
-
},
|
|
2945
|
+
}, wo = {
|
|
2946
2946
|
__name: "index",
|
|
2947
2947
|
props: {
|
|
2948
2948
|
itemData: {
|
|
@@ -2961,8 +2961,8 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2961
2961
|
}
|
|
2962
2962
|
},
|
|
2963
2963
|
setup(r) {
|
|
2964
|
-
const S =
|
|
2965
|
-
const a =
|
|
2964
|
+
const S = z([]), m = r, o = z(!1), n = z(), O = Da(ll), $ = z(!1), _ = Ka(ll), P = wa(ll), { itemData: q, isEdit: E, routeToChildPath: ue } = il(O), { activeMenuPath: se, platform: Ce, childMenu: ce } = il(_), { loginUserInfo: be } = il(P), C = z(!1), I = (b, W) => {
|
|
2965
|
+
const a = W;
|
|
2966
2966
|
return b == null ? void 0 : b.map((v) => {
|
|
2967
2967
|
var f;
|
|
2968
2968
|
return v = (f = v == null ? void 0 : v.map((w, F) => {
|
|
@@ -2974,11 +2974,11 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2974
2974
|
})) == null ? void 0 : f.filter((w) => w.key !== "操作"), v;
|
|
2975
2975
|
});
|
|
2976
2976
|
}, ve = async () => {
|
|
2977
|
-
var b,
|
|
2978
|
-
(b = S.value) != null && b.find((a) => (a == null ? void 0 : a.buttonName) === "保存") && await pe((
|
|
2977
|
+
var b, W;
|
|
2978
|
+
(b = S.value) != null && b.find((a) => (a == null ? void 0 : a.buttonName) === "保存") && await pe((W = S.value) == null ? void 0 : W.find((a) => (a == null ? void 0 : a.buttonName) === "保存")), await _o();
|
|
2979
2979
|
};
|
|
2980
2980
|
Xe(
|
|
2981
|
-
() =>
|
|
2981
|
+
() => q.value,
|
|
2982
2982
|
async () => {
|
|
2983
2983
|
E.value === "view" && !C.value && await we(l(m.itemData)), C.value = !1;
|
|
2984
2984
|
},
|
|
@@ -2986,69 +2986,69 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2986
2986
|
);
|
|
2987
2987
|
const c = () => {
|
|
2988
2988
|
o.value = !1, n.value = void 0;
|
|
2989
|
-
}, p = async (b,
|
|
2989
|
+
}, p = async (b, W) => {
|
|
2990
2990
|
var a;
|
|
2991
|
-
if (
|
|
2992
|
-
let v =
|
|
2991
|
+
if (Ra(b == null ? void 0 : b.name, W)) {
|
|
2992
|
+
let v = Ra(b == null ? void 0 : b.name, W);
|
|
2993
2993
|
b == null || b.id, b.compData = await Promise.all(
|
|
2994
|
-
(a = l(b.compData)) == null ? void 0 : a.map(async (f) => ((f == null ? void 0 : f.key) === "tableContents" && (f.extra = await
|
|
2994
|
+
(a = l(b.compData)) == null ? void 0 : a.map(async (f) => ((f == null ? void 0 : f.key) === "tableContents" && (f.extra = await Cs(l(f.contents), (b == null ? void 0 : b.tableId) ?? (b == null ? void 0 : b.id)), f.contents = ws(l(v))), f))
|
|
2995
2995
|
);
|
|
2996
2996
|
} else
|
|
2997
|
-
b =
|
|
2997
|
+
b = Ds(b, W);
|
|
2998
2998
|
return b;
|
|
2999
|
-
}, h = (b,
|
|
3000
|
-
var v, f, w, F, te, A, u,
|
|
3001
|
-
let a = (v = l(
|
|
2999
|
+
}, h = (b, W) => {
|
|
3000
|
+
var v, f, w, F, te, A, u, G, B, Z, ne, K;
|
|
3001
|
+
let a = (v = l(W)) == null ? void 0 : v.filter((k) => (k == null ? void 0 : k.comp) !== "methodButton");
|
|
3002
3002
|
if (b != null && b.includes("[")) {
|
|
3003
|
-
let
|
|
3004
|
-
if (
|
|
3005
|
-
let g = (u = a == null ? void 0 : a.find((ee) => (ee == null ? void 0 : ee.name) === (
|
|
3003
|
+
let k = (A = (te = (F = (w = (f = l(b)) == null ? void 0 : f.split("[")) == null ? void 0 : w[1]) == null ? void 0 : F.split("]")) == null ? void 0 : te[0]) == null ? void 0 : A.split(":"), H = "";
|
|
3004
|
+
if (k != null && k[0]) {
|
|
3005
|
+
let g = (u = a == null ? void 0 : a.find((ee) => (ee == null ? void 0 : ee.name) === (k == null ? void 0 : k[0]))) == null ? void 0 : u.compData;
|
|
3006
3006
|
g == null || g.forEach((ee) => {
|
|
3007
|
-
var
|
|
3008
|
-
(ee == null ? void 0 : ee.key) === "formContent" && ((
|
|
3009
|
-
(
|
|
3007
|
+
var M;
|
|
3008
|
+
(ee == null ? void 0 : ee.key) === "formContent" && ((M = ee == null ? void 0 : ee.contents) == null || M.forEach((J) => {
|
|
3009
|
+
(J == null ? void 0 : J.key) === (k == null ? void 0 : k[1]) && (H = J == null ? void 0 : J.value);
|
|
3010
3010
|
}));
|
|
3011
3011
|
});
|
|
3012
3012
|
}
|
|
3013
|
-
return
|
|
3013
|
+
return H;
|
|
3014
3014
|
} else if (b != null && b.includes("/")) {
|
|
3015
|
-
let
|
|
3016
|
-
return (
|
|
3017
|
-
var ee,
|
|
3018
|
-
if ((
|
|
3019
|
-
let me = Array.isArray((
|
|
3015
|
+
let k = {};
|
|
3016
|
+
return (G = l(a)) == null || G.forEach((H, g) => {
|
|
3017
|
+
var ee, M, J, ae, V, i, X, re, de, e, s, t, d, x, fe, ke, R, le, ie;
|
|
3018
|
+
if ((H == null ? void 0 : H.comp) === "Table") {
|
|
3019
|
+
let me = Array.isArray((J = (M = (ee = H == null ? void 0 : H.compData) == null ? void 0 : ee.find((N) => (N == null ? void 0 : N.key) === "header")) == null ? void 0 : M.contents) == null ? void 0 : J[0]) ? (X = (i = (V = (ae = H == null ? void 0 : H.compData) == null ? void 0 : ae.find((N) => (N == null ? void 0 : N.key) === "header")) == null ? void 0 : V.contents) == null ? void 0 : i[0]) == null ? void 0 : X.some((N) => N == null ? void 0 : N.children) : [], j = (e = (de = (re = H == null ? void 0 : H.compData) == null ? void 0 : re.find((N) => (N == null ? void 0 : N.key) === "tableContents")) == null ? void 0 : de.contents) == null ? void 0 : e.map((N) => N.slice(1)), U = (fe = (x = (d = (t = (s = H == null ? void 0 : H.compData) == null ? void 0 : s.find((N) => (N == null ? void 0 : N.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : d[0]) == null ? void 0 : x[0]) == null ? void 0 : fe.label, L = (R = (ke = H == null ? void 0 : H.compData) == null ? void 0 : ke.find((N) => (N == null ? void 0 : N.key) === "header")) == null ? void 0 : R.contents;
|
|
3020
3020
|
if (me)
|
|
3021
|
-
(me == null ? void 0 : me.length) === 0 ?
|
|
3021
|
+
(me == null ? void 0 : me.length) === 0 ? k[H.name] = I(j, L) : k[U] = I(j, L);
|
|
3022
3022
|
else {
|
|
3023
|
-
const
|
|
3024
|
-
|
|
3025
|
-
j == null || j.forEach((
|
|
3026
|
-
|
|
3027
|
-
key: ge.label +
|
|
3028
|
-
value:
|
|
3023
|
+
const N = [];
|
|
3024
|
+
L = L.slice(1, L.length - 1), L == null || L.forEach((ge, xe) => {
|
|
3025
|
+
j == null || j.forEach((Oe) => {
|
|
3026
|
+
N.push({
|
|
3027
|
+
key: ge.label + Oe[0],
|
|
3028
|
+
value: Oe[xe + 1]
|
|
3029
3029
|
});
|
|
3030
3030
|
});
|
|
3031
|
-
}),
|
|
3031
|
+
}), k["form" + g] = N;
|
|
3032
3032
|
}
|
|
3033
3033
|
} else {
|
|
3034
|
-
const me = (ie = (le =
|
|
3035
|
-
|
|
3034
|
+
const me = (ie = (le = H.compData) == null ? void 0 : le.find((U) => (U == null ? void 0 : U.key) === "formContent")) == null ? void 0 : ie.contents;
|
|
3035
|
+
k != null && k.form || (k.form = []);
|
|
3036
3036
|
const j = [];
|
|
3037
3037
|
me == null || me.forEach((U) => {
|
|
3038
3038
|
U.key !== "" && (U = {
|
|
3039
3039
|
key: (U == null ? void 0 : U.key) ?? (U == null ? void 0 : U.label),
|
|
3040
3040
|
value: U == null ? void 0 : U.value
|
|
3041
3041
|
}, j.push(U));
|
|
3042
|
-
}),
|
|
3042
|
+
}), k.form = [...j, ...l(k == null ? void 0 : k.form)];
|
|
3043
3043
|
}
|
|
3044
|
-
}),
|
|
3044
|
+
}), k;
|
|
3045
3045
|
} else {
|
|
3046
3046
|
if (b === "createInsofDataApi") {
|
|
3047
|
-
let
|
|
3048
|
-
return
|
|
3049
|
-
comp: (
|
|
3050
|
-
compData: (
|
|
3051
|
-
name: (
|
|
3047
|
+
let k = (B = l(W)) == null ? void 0 : B[0];
|
|
3048
|
+
return k = {
|
|
3049
|
+
comp: (Z = l(k)) == null ? void 0 : Z.comp,
|
|
3050
|
+
compData: (ne = l(k)) == null ? void 0 : ne.compData,
|
|
3051
|
+
name: (K = l(k)) == null ? void 0 : K.name
|
|
3052
3052
|
}, {
|
|
3053
3053
|
key: {
|
|
3054
3054
|
type: "structure",
|
|
@@ -3057,93 +3057,93 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3057
3057
|
pageKey: se.value
|
|
3058
3058
|
},
|
|
3059
3059
|
value: {
|
|
3060
|
-
pageData:
|
|
3060
|
+
pageData: k
|
|
3061
3061
|
}
|
|
3062
3062
|
};
|
|
3063
3063
|
}
|
|
3064
3064
|
return b;
|
|
3065
3065
|
}
|
|
3066
|
-
}, y = async (b,
|
|
3066
|
+
}, y = async (b, W, a) => {
|
|
3067
3067
|
var w;
|
|
3068
|
-
let v = await gl(
|
|
3068
|
+
let v = await gl(W, sessionStorage.getItem("systemKey"), ""), f = v == null ? void 0 : v.find((F) => (F == null ? void 0 : F.name) === (a == null ? void 0 : a[0]));
|
|
3069
3069
|
if (f && (f == null ? void 0 : f.comp) === "Table") {
|
|
3070
3070
|
let F = {};
|
|
3071
|
-
for (let
|
|
3072
|
-
l(b)[
|
|
3071
|
+
for (let ne in l(b))
|
|
3072
|
+
l(b)[ne] !== "loginUser" ? F[ne] = l(b)[ne] : F[ne] = (w = be.value) == null ? void 0 : w.account;
|
|
3073
3073
|
let te = [], A = F;
|
|
3074
|
-
Array.isArray(b) || (A = [F]), A == null || A.forEach((
|
|
3074
|
+
Array.isArray(b) || (A = [F]), A == null || A.forEach((ne) => {
|
|
3075
3075
|
te.push({
|
|
3076
|
-
[
|
|
3076
|
+
[ne[a[1]]]: ne
|
|
3077
3077
|
});
|
|
3078
3078
|
});
|
|
3079
|
-
let u = [],
|
|
3080
|
-
var
|
|
3081
|
-
return (
|
|
3079
|
+
let u = [], G = te == null ? void 0 : te.map((ne) => {
|
|
3080
|
+
var K;
|
|
3081
|
+
return (K = Object.keys(ne)) == null ? void 0 : K[0];
|
|
3082
3082
|
});
|
|
3083
|
-
v == null || v.forEach((
|
|
3084
|
-
var
|
|
3085
|
-
(
|
|
3086
|
-
var
|
|
3087
|
-
(
|
|
3088
|
-
g != null && g.some((ee) =>
|
|
3089
|
-
[g.find((ee) => ee.id).id]: g.find((ee) =>
|
|
3083
|
+
v == null || v.forEach((ne) => {
|
|
3084
|
+
var K;
|
|
3085
|
+
(ne == null ? void 0 : ne.name) === (a == null ? void 0 : a[0]) && ((K = ne == null ? void 0 : ne.compData) == null || K.forEach((k) => {
|
|
3086
|
+
var H;
|
|
3087
|
+
(k == null ? void 0 : k.key) === "tableContents" && ((H = k == null ? void 0 : k.contents) == null || H.forEach((g) => {
|
|
3088
|
+
g != null && g.some((ee) => G.includes(ee)) && u.push({
|
|
3089
|
+
[g.find((ee) => ee.id).id]: g.find((ee) => G.includes(ee))
|
|
3090
3090
|
});
|
|
3091
3091
|
}));
|
|
3092
3092
|
}));
|
|
3093
3093
|
});
|
|
3094
|
-
let B = u == null ? void 0 : u.map((
|
|
3095
|
-
var
|
|
3096
|
-
return (
|
|
3097
|
-
}),
|
|
3098
|
-
B == null || B.forEach((
|
|
3099
|
-
var
|
|
3100
|
-
let
|
|
3094
|
+
let B = u == null ? void 0 : u.map((ne) => {
|
|
3095
|
+
var K;
|
|
3096
|
+
return (K = Object.keys(ne)) == null ? void 0 : K[0];
|
|
3097
|
+
}), Z = [];
|
|
3098
|
+
B == null || B.forEach((ne) => {
|
|
3099
|
+
var H;
|
|
3100
|
+
let K = (H = u == null ? void 0 : u.find((g) => {
|
|
3101
3101
|
var ee;
|
|
3102
|
-
return ((ee = Object.keys(g)) == null ? void 0 : ee[0].toString()) ===
|
|
3103
|
-
})) == null ? void 0 : ne
|
|
3102
|
+
return ((ee = Object.keys(g)) == null ? void 0 : ee[0].toString()) === ne.toString();
|
|
3103
|
+
})) == null ? void 0 : H[ne], k = te == null ? void 0 : te.find((g) => {
|
|
3104
3104
|
var ee;
|
|
3105
|
-
return ((ee = Object.keys(g)) == null ? void 0 : ee[0]) ===
|
|
3105
|
+
return ((ee = Object.keys(g)) == null ? void 0 : ee[0]) === K;
|
|
3106
3106
|
});
|
|
3107
|
-
|
|
3108
|
-
id: parseInt(
|
|
3107
|
+
Z.push({
|
|
3108
|
+
id: parseInt(ne),
|
|
3109
3109
|
value: {
|
|
3110
|
-
tableData:
|
|
3110
|
+
tableData: k[K]
|
|
3111
3111
|
}
|
|
3112
3112
|
});
|
|
3113
|
-
}), (
|
|
3114
|
-
dataList:
|
|
3113
|
+
}), (Z == null ? void 0 : Z.length) > 0 && await ya({
|
|
3114
|
+
dataList: Z
|
|
3115
3115
|
});
|
|
3116
3116
|
}
|
|
3117
|
-
}, oe = async (b,
|
|
3118
|
-
var w, F, te, A, u,
|
|
3119
|
-
let v = await gl(
|
|
3117
|
+
}, oe = async (b, W, a) => {
|
|
3118
|
+
var w, F, te, A, u, G, B, Z, ne;
|
|
3119
|
+
let v = await gl(W, sessionStorage.getItem("systemKey"), ""), f = v == null ? void 0 : v.find((K) => (K == null ? void 0 : K.name) === (a == null ? void 0 : a[0]));
|
|
3120
3120
|
if (f) {
|
|
3121
3121
|
if ((f == null ? void 0 : f.comp) === "Table") {
|
|
3122
|
-
let
|
|
3123
|
-
for (let
|
|
3124
|
-
l(b)[
|
|
3125
|
-
await
|
|
3122
|
+
let K = {};
|
|
3123
|
+
for (let k in l(b))
|
|
3124
|
+
l(b)[k] !== "loginUser" ? K[k] = l(b)[k] : K[k] = (w = be.value) == null ? void 0 : w.account;
|
|
3125
|
+
await La({
|
|
3126
3126
|
key: {
|
|
3127
3127
|
type: "data",
|
|
3128
|
-
pageKey:
|
|
3128
|
+
pageKey: W,
|
|
3129
3129
|
tableId: f == null ? void 0 : f.id,
|
|
3130
3130
|
systemKey: sessionStorage.getItem("systemKey")
|
|
3131
3131
|
},
|
|
3132
3132
|
value: {
|
|
3133
|
-
tableData:
|
|
3133
|
+
tableData: K
|
|
3134
3134
|
}
|
|
3135
3135
|
});
|
|
3136
3136
|
} else if ((f == null ? void 0 : f.comp) === "Form") {
|
|
3137
|
-
let
|
|
3138
|
-
(te = (F = l(
|
|
3139
|
-
var i,
|
|
3140
|
-
(V == null ? void 0 : V.key) === "formContent" && ((
|
|
3137
|
+
let K = l(f), k = Object.keys(b), H = "";
|
|
3138
|
+
(te = (F = l(K)) == null ? void 0 : F.compData) == null || te.forEach((V) => {
|
|
3139
|
+
var i, X;
|
|
3140
|
+
(V == null ? void 0 : V.key) === "formContent" && ((X = (i = l(V)) == null ? void 0 : i.contents) == null || X.forEach((re) => {
|
|
3141
3141
|
var de;
|
|
3142
|
-
|
|
3142
|
+
k.includes(re == null ? void 0 : re.key) && (re == null ? void 0 : re.value) === ((de = be.value) == null ? void 0 : de.姓名) && (H = re == null ? void 0 : re.key);
|
|
3143
3143
|
}));
|
|
3144
3144
|
});
|
|
3145
3145
|
let g = [];
|
|
3146
|
-
(A = Object.values(b[
|
|
3146
|
+
(A = Object.values(b[H])) == null || A.forEach((V) => {
|
|
3147
3147
|
V != null && V.includes("(") && g.push(V);
|
|
3148
3148
|
}), g = [...new Set(g)];
|
|
3149
3149
|
const ee = g == null ? void 0 : g.map(async (V) => {
|
|
@@ -3152,65 +3152,65 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3152
3152
|
(fe = (x = (d = (t = (s = (e = l(V)) == null ? void 0 : e.split("(")) == null ? void 0 : s[1]) == null ? void 0 : t.split(")")) == null ? void 0 : d[0]) == null ? void 0 : x.split(":")) == null || fe.forEach((U) => {
|
|
3153
3153
|
i = i === "" ? i + U.replaceAll("'", "") : i + "/" + U.replaceAll("'", "");
|
|
3154
3154
|
});
|
|
3155
|
-
let
|
|
3155
|
+
let X = [];
|
|
3156
3156
|
(j = (me = (ie = (le = (R = (ke = l(V)) == null ? void 0 : ke.split("<")) == null ? void 0 : R[1]) == null ? void 0 : le.split(">")) == null ? void 0 : ie[0]) == null ? void 0 : me.split(":")) == null || j.forEach((U) => {
|
|
3157
|
-
|
|
3157
|
+
X.push(U.replaceAll("'", ""));
|
|
3158
3158
|
});
|
|
3159
3159
|
const re = await gl(i, sessionStorage.getItem("systemKey"), "");
|
|
3160
3160
|
let de = "";
|
|
3161
3161
|
return re == null || re.forEach((U) => {
|
|
3162
|
-
var
|
|
3163
|
-
U.name === (
|
|
3162
|
+
var L;
|
|
3163
|
+
U.name === (X == null ? void 0 : X[0]) && ((L = U == null ? void 0 : U.compData) == null || L.forEach((N) => {
|
|
3164
3164
|
var ge;
|
|
3165
|
-
(
|
|
3166
|
-
(xe == null ? void 0 : xe.key) === (
|
|
3165
|
+
(N == null ? void 0 : N.key) === "formContent" && ((ge = N.contents) == null || ge.forEach((xe) => {
|
|
3166
|
+
(xe == null ? void 0 : xe.key) === (X == null ? void 0 : X[1]) && (de = xe == null ? void 0 : xe.value);
|
|
3167
3167
|
}));
|
|
3168
3168
|
}));
|
|
3169
3169
|
}), {
|
|
3170
3170
|
[V]: de
|
|
3171
3171
|
};
|
|
3172
|
-
}),
|
|
3173
|
-
|
|
3174
|
-
var i,
|
|
3175
|
-
return (V == null ? void 0 : V.key) === "formContent" && (V.contents = (
|
|
3172
|
+
}), M = await Promise.all(ee);
|
|
3173
|
+
K.compData = (G = (u = l(K)) == null ? void 0 : u.compData) == null ? void 0 : G.map((V) => {
|
|
3174
|
+
var i, X;
|
|
3175
|
+
return (V == null ? void 0 : V.key) === "formContent" && (V.contents = (X = (i = l(V)) == null ? void 0 : i.contents) == null ? void 0 : X.map((re) => {
|
|
3176
3176
|
var de, e, s, t;
|
|
3177
|
-
return (de = b[
|
|
3177
|
+
return (de = b[H]) != null && de[re == null ? void 0 : re.key] && (b[H][re == null ? void 0 : re.key].includes("(") ? re.value = (e = M == null ? void 0 : M.find((d) => {
|
|
3178
3178
|
var x;
|
|
3179
|
-
return ((x = Object.keys(d)) == null ? void 0 : x[0]) === b[
|
|
3180
|
-
})) == null ? void 0 : e[b[
|
|
3179
|
+
return ((x = Object.keys(d)) == null ? void 0 : x[0]) === b[H][re == null ? void 0 : re.key];
|
|
3180
|
+
})) == null ? void 0 : e[b[H][re == null ? void 0 : re.key]] : re.value = (t = (s = l(b)) == null ? void 0 : s[H]) == null ? void 0 : t[re == null ? void 0 : re.key]), re;
|
|
3181
3181
|
})), V;
|
|
3182
3182
|
});
|
|
3183
|
-
const
|
|
3183
|
+
const J = await wl({
|
|
3184
3184
|
key: {
|
|
3185
3185
|
type: "structure",
|
|
3186
|
-
pageKey:
|
|
3186
|
+
pageKey: W,
|
|
3187
3187
|
systemKey: sessionStorage.getItem("systemKey")
|
|
3188
3188
|
}
|
|
3189
3189
|
});
|
|
3190
3190
|
let ae = "";
|
|
3191
|
-
((B =
|
|
3192
|
-
var i,
|
|
3193
|
-
((
|
|
3191
|
+
((B = J == null ? void 0 : J.data) == null ? void 0 : B.type) === "success" && ((ne = (Z = J == null ? void 0 : J.data) == null ? void 0 : Z.result) == null || ne.forEach((V) => {
|
|
3192
|
+
var i, X;
|
|
3193
|
+
((X = (i = V == null ? void 0 : V.value) == null ? void 0 : i.pageData) == null ? void 0 : X.name) === (a == null ? void 0 : a[0]) && (ae = V.id);
|
|
3194
3194
|
}), await Oa({
|
|
3195
3195
|
id: ae,
|
|
3196
3196
|
value: {
|
|
3197
|
-
pageData:
|
|
3197
|
+
pageData: K
|
|
3198
3198
|
}
|
|
3199
3199
|
}));
|
|
3200
3200
|
}
|
|
3201
3201
|
}
|
|
3202
|
-
}, ye = async (b,
|
|
3203
|
-
var w, F, te, A, u,
|
|
3204
|
-
let v = await gl(
|
|
3202
|
+
}, ye = async (b, W, a) => {
|
|
3203
|
+
var w, F, te, A, u, G;
|
|
3204
|
+
let v = await gl(W, sessionStorage.getItem("systemKey"), ""), f = v == null ? void 0 : v.find((B) => (B == null ? void 0 : B.name) === (a == null ? void 0 : a[0]));
|
|
3205
3205
|
if (f) {
|
|
3206
3206
|
if (!(a != null && a[1]) && (f == null ? void 0 : f.comp) === "Table") {
|
|
3207
3207
|
let B = {};
|
|
3208
|
-
for (let
|
|
3209
|
-
l(b)[
|
|
3210
|
-
await
|
|
3208
|
+
for (let Z in l(b))
|
|
3209
|
+
l(b)[Z] !== "loginUser" ? B[Z] = l(b)[Z] : B[Z] = (w = be.value) == null ? void 0 : w.account;
|
|
3210
|
+
await La({
|
|
3211
3211
|
key: {
|
|
3212
3212
|
type: "data",
|
|
3213
|
-
pageKey:
|
|
3213
|
+
pageKey: W,
|
|
3214
3214
|
tableId: f == null ? void 0 : f.id,
|
|
3215
3215
|
systemKey: sessionStorage.getItem("systemKey")
|
|
3216
3216
|
},
|
|
@@ -3220,26 +3220,26 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3220
3220
|
});
|
|
3221
3221
|
} else if (!(a != null && a[1]) && (f == null ? void 0 : f.comp) === "Form") {
|
|
3222
3222
|
let B = l(f);
|
|
3223
|
-
B.compData = (te = (F = l(B)) == null ? void 0 : F.compData) == null ? void 0 : te.map((
|
|
3224
|
-
var
|
|
3225
|
-
return (
|
|
3226
|
-
var ee,
|
|
3227
|
-
return (ee = l(b)) != null && ee[g == null ? void 0 : g.key] && (g.value = (
|
|
3228
|
-
})),
|
|
3223
|
+
B.compData = (te = (F = l(B)) == null ? void 0 : F.compData) == null ? void 0 : te.map((K) => {
|
|
3224
|
+
var k, H;
|
|
3225
|
+
return (K == null ? void 0 : K.key) === "formContent" && (K.contents = (H = (k = l(K)) == null ? void 0 : k.contents) == null ? void 0 : H.map((g) => {
|
|
3226
|
+
var ee, M;
|
|
3227
|
+
return (ee = l(b)) != null && ee[g == null ? void 0 : g.key] && (g.value = (M = l(b)) == null ? void 0 : M[g == null ? void 0 : g.key]), g;
|
|
3228
|
+
})), K;
|
|
3229
3229
|
});
|
|
3230
|
-
const
|
|
3230
|
+
const Z = await wl({
|
|
3231
3231
|
key: {
|
|
3232
3232
|
type: "structure",
|
|
3233
|
-
pageKey:
|
|
3233
|
+
pageKey: W,
|
|
3234
3234
|
systemKey: sessionStorage.getItem("systemKey")
|
|
3235
3235
|
}
|
|
3236
3236
|
});
|
|
3237
|
-
let
|
|
3238
|
-
((A =
|
|
3239
|
-
var
|
|
3240
|
-
((
|
|
3237
|
+
let ne = "";
|
|
3238
|
+
((A = Z == null ? void 0 : Z.data) == null ? void 0 : A.type) === "success" && ((G = (u = Z == null ? void 0 : Z.data) == null ? void 0 : u.result) == null || G.forEach((K) => {
|
|
3239
|
+
var k, H;
|
|
3240
|
+
((H = (k = K == null ? void 0 : K.value) == null ? void 0 : k.pageData) == null ? void 0 : H.name) === (a == null ? void 0 : a[0]) && (ne = K.id);
|
|
3241
3241
|
}), await Oa({
|
|
3242
|
-
id:
|
|
3242
|
+
id: ne,
|
|
3243
3243
|
value: {
|
|
3244
3244
|
pageData: B
|
|
3245
3245
|
}
|
|
@@ -3247,44 +3247,44 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3247
3247
|
}
|
|
3248
3248
|
}
|
|
3249
3249
|
}, Ie = ["createInsofDataApi"], pe = async (b) => {
|
|
3250
|
-
var a, v, f, w, F, te, A, u,
|
|
3251
|
-
|
|
3252
|
-
let
|
|
3250
|
+
var a, v, f, w, F, te, A, u, G, B, Z, ne, K, k, H, g, ee, M;
|
|
3251
|
+
_.setImportLoading(!0);
|
|
3252
|
+
let W = {};
|
|
3253
3253
|
if (Ce.value !== "browser") {
|
|
3254
|
-
const
|
|
3255
|
-
|
|
3256
|
-
var
|
|
3254
|
+
const J = [];
|
|
3255
|
+
W.form = {}, (a = l(b.content)) == null || a.forEach((V, i) => {
|
|
3256
|
+
var X, re, de, e, s, t, d, x, fe, ke, R, le, ie, me;
|
|
3257
3257
|
if ((V == null ? void 0 : V.comp) === "Table") {
|
|
3258
|
-
(re = (
|
|
3259
|
-
let j = (s = (e = (de = V == null ? void 0 : V.compData) == null ? void 0 : de.find((
|
|
3260
|
-
(ke = (fe = (x = (d = (t = V == null ? void 0 : V.compData) == null ? void 0 : t.find((
|
|
3261
|
-
let U = (le = (R = V == null ? void 0 : V.compData) == null ? void 0 : R.find((
|
|
3262
|
-
j == null || j.forEach((
|
|
3258
|
+
(re = (X = V == null ? void 0 : V.compData) == null ? void 0 : X.find((N) => (N == null ? void 0 : N.key) === "header")) == null || re.contents;
|
|
3259
|
+
let j = (s = (e = (de = V == null ? void 0 : V.compData) == null ? void 0 : de.find((N) => (N == null ? void 0 : N.key) === "tableContents")) == null ? void 0 : e.contents) == null ? void 0 : s.map((N) => N.slice(1));
|
|
3260
|
+
(ke = (fe = (x = (d = (t = V == null ? void 0 : V.compData) == null ? void 0 : t.find((N) => (N == null ? void 0 : N.key) === "header")) == null ? void 0 : d.contents) == null ? void 0 : x[0]) == null ? void 0 : fe[0]) == null || ke.label;
|
|
3261
|
+
let U = (le = (R = V == null ? void 0 : V.compData) == null ? void 0 : R.find((N) => (N == null ? void 0 : N.key) === "header")) == null ? void 0 : le.contents, L = [];
|
|
3262
|
+
j == null || j.forEach((N) => {
|
|
3263
3263
|
let ge = [];
|
|
3264
|
-
|
|
3264
|
+
N == null || N.forEach((xe, Oe) => {
|
|
3265
3265
|
var T;
|
|
3266
3266
|
let $e = {};
|
|
3267
|
-
((T = U[
|
|
3268
|
-
}),
|
|
3269
|
-
}),
|
|
3267
|
+
((T = U[Oe]) == null ? void 0 : T.label) !== "操作" && ($e[U[Oe].label] = xe, ge.push($e));
|
|
3268
|
+
}), L.push(ge);
|
|
3269
|
+
}), W[V.name] = L;
|
|
3270
3270
|
} else {
|
|
3271
3271
|
const j = (me = (ie = V.compData) == null ? void 0 : ie.find((U) => (U == null ? void 0 : U.key) === "formContent")) == null ? void 0 : me.contents;
|
|
3272
3272
|
j == null || j.forEach((U) => {
|
|
3273
|
-
var
|
|
3273
|
+
var L;
|
|
3274
3274
|
U.key !== "" && (U = {
|
|
3275
3275
|
key: (U == null ? void 0 : U.key) ?? (U == null ? void 0 : U.label),
|
|
3276
|
-
value: (
|
|
3277
|
-
},
|
|
3276
|
+
value: (L = U == null ? void 0 : U.value) == null ? void 0 : L.toString()
|
|
3277
|
+
}, J.push(U));
|
|
3278
3278
|
});
|
|
3279
3279
|
}
|
|
3280
|
-
}),
|
|
3281
|
-
let ae =
|
|
3282
|
-
for (let V in
|
|
3283
|
-
V !== "form" && (ae[V] =
|
|
3280
|
+
}), W.form = bs(J);
|
|
3281
|
+
let ae = W.form;
|
|
3282
|
+
for (let V in W)
|
|
3283
|
+
V !== "form" && (ae[V] = gs(W[V]));
|
|
3284
3284
|
if (b.api) {
|
|
3285
3285
|
try {
|
|
3286
3286
|
$.value = !0;
|
|
3287
|
-
const V = await
|
|
3287
|
+
const V = await ta.post(
|
|
3288
3288
|
b.api,
|
|
3289
3289
|
ae,
|
|
3290
3290
|
{
|
|
@@ -3295,57 +3295,57 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3295
3295
|
);
|
|
3296
3296
|
if (((v = V == null ? void 0 : V.data) == null ? void 0 : v.code) === 200 || ((f = V == null ? void 0 : V.data) == null ? void 0 : f.statusCode) === 200) {
|
|
3297
3297
|
let i = await ((w = V == null ? void 0 : V.data) == null ? void 0 : w.data);
|
|
3298
|
-
const
|
|
3299
|
-
|
|
3298
|
+
const X = (F = l(q.value)) == null ? void 0 : F.filter((s) => (s == null ? void 0 : s.comp) !== "methodButton"), re = await Promise.all(
|
|
3299
|
+
X.map((s) => p(s, i))
|
|
3300
3300
|
);
|
|
3301
3301
|
await Promise.all(re);
|
|
3302
|
-
const de = (te = l(
|
|
3302
|
+
const de = (te = l(q.value)) == null ? void 0 : te.filter((s) => (s == null ? void 0 : s.comp) === "methodButton");
|
|
3303
3303
|
let e = [...re, ...de];
|
|
3304
|
-
await
|
|
3304
|
+
await ks(e), $.value = !1;
|
|
3305
3305
|
} else
|
|
3306
3306
|
ol.error("方法调用失败:" + ((A = V == null ? void 0 : V.data) == null ? void 0 : A.errors)), $.value = !1;
|
|
3307
3307
|
} catch {
|
|
3308
3308
|
ol.error("方法调用失败"), $.value = !1;
|
|
3309
3309
|
}
|
|
3310
|
-
|
|
3310
|
+
O.setFreshContent(!0);
|
|
3311
3311
|
}
|
|
3312
3312
|
} else if (b.api) {
|
|
3313
|
-
let
|
|
3314
|
-
(
|
|
3313
|
+
let J = await gl((ce == null ? void 0 : ce.value) === "" ? se.value : ce == null ? void 0 : ce.value, sessionStorage.getItem("systemKey"), ""), ae = {};
|
|
3314
|
+
(G = (u = b == null ? void 0 : b.extraValues) == null ? void 0 : u.input) == null || G.forEach((e) => {
|
|
3315
3315
|
var s;
|
|
3316
|
-
Ie != null && Ie.find((t) => t === e) ? ae = h(e,
|
|
3316
|
+
Ie != null && Ie.find((t) => t === e) ? ae = h(e, J) : ae[Object.keys(e)[0]] = h((s = Object.values(e)) == null ? void 0 : s[0], J);
|
|
3317
3317
|
});
|
|
3318
3318
|
let V = !1;
|
|
3319
|
-
(
|
|
3319
|
+
(Z = (B = b == null ? void 0 : b.extraValues) == null ? void 0 : B.output) == null || Z.forEach((e) => {
|
|
3320
3320
|
var s, t;
|
|
3321
3321
|
(t = (s = Object.values(e)) == null ? void 0 : s[0]) != null && t.includes(".doc") && (V = !0);
|
|
3322
3322
|
});
|
|
3323
3323
|
let i;
|
|
3324
|
-
V ? i = await
|
|
3324
|
+
V ? i = await ta.post(b.api, ae, {
|
|
3325
3325
|
responseType: "blob",
|
|
3326
3326
|
// 必须设置
|
|
3327
3327
|
headers: {
|
|
3328
3328
|
"Content-Type": "application/json"
|
|
3329
3329
|
}
|
|
3330
|
-
}) : i = await
|
|
3330
|
+
}) : i = await ta.post(b.api, ae, {
|
|
3331
3331
|
headers: {
|
|
3332
3332
|
"Content-Type": "application/json"
|
|
3333
3333
|
}
|
|
3334
3334
|
});
|
|
3335
|
-
let
|
|
3336
|
-
var s, t, d, x, fe, ke, R, le, ie, me, j, U,
|
|
3335
|
+
let X = (H = (k = (K = (ne = l(b)) == null ? void 0 : ne.extraValues) == null ? void 0 : K.output) == null ? void 0 : k.map((e) => {
|
|
3336
|
+
var s, t, d, x, fe, ke, R, le, ie, me, j, U, L, N, ge, xe;
|
|
3337
3337
|
if (!((t = (s = Object.values(e)) == null ? void 0 : s[0]) != null && t.includes(".doc"))) {
|
|
3338
|
-
let
|
|
3339
|
-
|
|
3340
|
-
let $e = (
|
|
3341
|
-
if ($e = (ge = l($e)) == null ? void 0 : ge.slice(0, ((
|
|
3338
|
+
let Oe = (me = (ie = (le = (x = l((d = Object.values(e)) == null ? void 0 : d[0])) == null ? void 0 : x.split("[")) == null ? void 0 : le[((R = (ke = l((fe = Object.values(e)) == null ? void 0 : fe[0])) == null ? void 0 : ke.split("[")) == null ? void 0 : R.length) - 1]) == null ? void 0 : ie.split("]")) == null ? void 0 : me[0];
|
|
3339
|
+
Oe == null || Oe.split(":");
|
|
3340
|
+
let $e = (L = l((j = Object.values(e)) == null ? void 0 : j[0])) == null ? void 0 : L.substring(0, l((U = Object.values(e)) == null ? void 0 : U[0]).lastIndexOf("["));
|
|
3341
|
+
if ($e = (ge = l($e)) == null ? void 0 : ge.slice(0, ((N = l($e)) == null ? void 0 : N.length) - 1), $e != null && $e.includes("[")) {
|
|
3342
3342
|
let T = "";
|
|
3343
3343
|
if ((xe = ga($e, "/")) == null || xe.forEach((Se) => {
|
|
3344
3344
|
var Te, Me, Ge, He, tl, dl, pl;
|
|
3345
3345
|
if (!(Se != null && Se.includes("[")))
|
|
3346
3346
|
T = T === "" ? T + Se.replaceAll("/", "") : T + "/" + Se.replaceAll("/", "");
|
|
3347
3347
|
else {
|
|
3348
|
-
let ml = l(Se).slice(1, ((Te = l(Se)) == null ? void 0 : Te.length) - 1), Ye = (dl = (tl = (He = (Ge = (Me = l(ml)) == null ? void 0 : Me.split("[")) == null ? void 0 : Ge[1]) == null ? void 0 : He.split("]")) == null ? void 0 : tl[0]) == null ? void 0 : dl.split(":"), nl = "", ul = (pl =
|
|
3348
|
+
let ml = l(Se).slice(1, ((Te = l(Se)) == null ? void 0 : Te.length) - 1), Ye = (dl = (tl = (He = (Ge = (Me = l(ml)) == null ? void 0 : Me.split("[")) == null ? void 0 : Ge[1]) == null ? void 0 : He.split("]")) == null ? void 0 : tl[0]) == null ? void 0 : dl.split(":"), nl = "", ul = (pl = J == null ? void 0 : J.find((ze) => (ze == null ? void 0 : ze.name) === (Ye == null ? void 0 : Ye[0]))) == null ? void 0 : pl.compData;
|
|
3349
3349
|
ul == null || ul.forEach((ze) => {
|
|
3350
3350
|
var fl;
|
|
3351
3351
|
(ze == null ? void 0 : ze.key) === "formContent" && ((fl = ze == null ? void 0 : ze.contents) == null || fl.forEach((rl) => {
|
|
@@ -3357,16 +3357,16 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3357
3357
|
return $e;
|
|
3358
3358
|
}
|
|
3359
3359
|
}
|
|
3360
|
-
})) == null ? void 0 :
|
|
3361
|
-
|
|
3362
|
-
let re =
|
|
3360
|
+
})) == null ? void 0 : H.filter((e) => e);
|
|
3361
|
+
X = [...new Set(l(X))];
|
|
3362
|
+
let re = X == null ? void 0 : X.map(async (e) => {
|
|
3363
3363
|
let s = await gl(e, sessionStorage.getItem("systemKey"), "");
|
|
3364
3364
|
if ((s == null ? void 0 : s.length) === 0)
|
|
3365
|
-
return await
|
|
3365
|
+
return await _s(e);
|
|
3366
3366
|
});
|
|
3367
3367
|
await Promise.all(re);
|
|
3368
|
-
let de = (
|
|
3369
|
-
var R, le, ie, me, j, U,
|
|
3368
|
+
let de = (M = (ee = (g = l(b)) == null ? void 0 : g.extraValues) == null ? void 0 : ee.output) == null ? void 0 : M.map(async (e) => {
|
|
3369
|
+
var R, le, ie, me, j, U, L, N, ge, xe, Oe, $e, T, Se, Te, Me, Ge, He, tl, dl, pl, ml, Ye, nl, ul, ze, fl, rl, Ll, Ol, Vl, Rl, Ul, Pl, jl, Kl, Nl, Wl, cl, al, Ml, zl, Jl, Gl, Hl, ql, Ql, Xl, Yl, Zl, ea, la, aa, sa, ia, Dl, xa, Ta, Aa, Ea;
|
|
3370
3370
|
if ((le = (R = Object.values(e)) == null ? void 0 : R[0]) != null && le.includes(".doc")) {
|
|
3371
3371
|
var s = new Blob([i.data], {
|
|
3372
3372
|
type: "application/octet-stream;charset=UTF-8"
|
|
@@ -3378,21 +3378,21 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3378
3378
|
blobUrl: ke
|
|
3379
3379
|
}], o.value = !0;
|
|
3380
3380
|
} else {
|
|
3381
|
-
let
|
|
3381
|
+
let fa = (xe = (ge = (N = (me = l((ie = Object.values(e)) == null ? void 0 : ie[0])) == null ? void 0 : me.split("[")) == null ? void 0 : N[((L = (U = l((j = Object.values(e)) == null ? void 0 : j[0])) == null ? void 0 : U.split("[")) == null ? void 0 : L.length) - 1]) == null ? void 0 : ge.split("]")) == null ? void 0 : xe[0], Ae = fa == null ? void 0 : fa.split(":"), sl = (T = l((Oe = Object.values(e)) == null ? void 0 : Oe[0])) == null ? void 0 : T.substring(0, l(($e = Object.values(e)) == null ? void 0 : $e[0]).lastIndexOf("["));
|
|
3382
3382
|
if (sl != null && sl.includes("[") && (sl = (Te = l(sl)) == null ? void 0 : Te.slice(0, ((Se = l(sl)) == null ? void 0 : Se.length) - 1)), sl != null && sl.includes("[")) {
|
|
3383
3383
|
let Fe = "";
|
|
3384
3384
|
(Me = ga(sl, "/")) == null || Me.forEach((Pe) => {
|
|
3385
|
-
var Ke, Je, je, vl, hl,
|
|
3385
|
+
var Ke, Je, je, vl, hl, oa, Sa;
|
|
3386
3386
|
if (!(Pe != null && Pe.includes("[")))
|
|
3387
3387
|
Fe = Fe === "" ? Fe + Pe.replaceAll("/", "") : Fe + "/" + Pe.replaceAll("/", "");
|
|
3388
3388
|
else {
|
|
3389
|
-
let Xa = l(Pe).slice(1, ((Ke = l(Pe)) == null ? void 0 : Ke.length) - 1),
|
|
3390
|
-
|
|
3391
|
-
var
|
|
3392
|
-
(yl == null ? void 0 : yl.key) === "formContent" && ((
|
|
3393
|
-
(
|
|
3389
|
+
let Xa = l(Pe).slice(1, ((Ke = l(Pe)) == null ? void 0 : Ke.length) - 1), El = (oa = (hl = (vl = (je = (Je = l(Xa)) == null ? void 0 : Je.split("[")) == null ? void 0 : je[1]) == null ? void 0 : vl.split("]")) == null ? void 0 : hl[0]) == null ? void 0 : oa.split(":"), va = "", ha = (Sa = J == null ? void 0 : J.find((yl) => (yl == null ? void 0 : yl.name) === (El == null ? void 0 : El[0]))) == null ? void 0 : Sa.compData;
|
|
3390
|
+
ha == null || ha.forEach((yl) => {
|
|
3391
|
+
var $a;
|
|
3392
|
+
(yl == null ? void 0 : yl.key) === "formContent" && (($a = yl == null ? void 0 : yl.contents) == null || $a.forEach((Sl) => {
|
|
3393
|
+
(Sl == null ? void 0 : Sl.key) === (El == null ? void 0 : El[1]) && (va = Sl == null ? void 0 : Sl.value);
|
|
3394
3394
|
}));
|
|
3395
|
-
}), Fe = Fe === "" ? Fe +
|
|
3395
|
+
}), Fe = Fe === "" ? Fe + va.replaceAll("/", "") : Fe + "/" + va.replaceAll("/", "");
|
|
3396
3396
|
}
|
|
3397
3397
|
}), sl = Fe;
|
|
3398
3398
|
}
|
|
@@ -3408,8 +3408,8 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3408
3408
|
return (Ke == null ? void 0 : Ke.name) === (Ae == null ? void 0 : Ae[0]) && (Ke.compData = (Je = Ke.compData) == null ? void 0 : Je.map((je) => {
|
|
3409
3409
|
var vl;
|
|
3410
3410
|
return (je == null ? void 0 : je.key) === "formContent" && (je.contents = (vl = je.contents) == null ? void 0 : vl.map((hl) => {
|
|
3411
|
-
var
|
|
3412
|
-
return (hl == null ? void 0 : hl.key) === (Ae == null ? void 0 : Ae[1]) && (hl.value = (
|
|
3411
|
+
var oa;
|
|
3412
|
+
return (hl == null ? void 0 : hl.key) === (Ae == null ? void 0 : Ae[1]) && (hl.value = (oa = i == null ? void 0 : i.data) == null ? void 0 : oa.result), hl;
|
|
3413
3413
|
})), je;
|
|
3414
3414
|
})), Ke;
|
|
3415
3415
|
});
|
|
@@ -3430,84 +3430,84 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3430
3430
|
return;
|
|
3431
3431
|
}
|
|
3432
3432
|
if ((Ae == null ? void 0 : Ae.length) === 1) {
|
|
3433
|
-
const Fe = (
|
|
3433
|
+
const Fe = (Vl = (Ol = (Ll = i == null ? void 0 : i.data) == null ? void 0 : Ll.data) == null ? void 0 : Ol.path) == null ? void 0 : Vl.path;
|
|
3434
3434
|
let Pe = "";
|
|
3435
|
-
(
|
|
3435
|
+
(Kl = (jl = (Pl = (Ul = (Rl = Fe == null ? void 0 : Fe.split("(")) == null ? void 0 : Rl[1]) == null ? void 0 : Ul.split(")")) == null ? void 0 : Pl[0]) == null ? void 0 : jl.split(":")) == null || Kl.forEach((je) => {
|
|
3436
3436
|
var vl, hl;
|
|
3437
3437
|
Pe = Pe === "" ? Pe + ((vl = je == null ? void 0 : je.replaceAll("'", "")) == null ? void 0 : vl.trim()) : Pe + "/" + ((hl = je == null ? void 0 : je.replaceAll("'", "")) == null ? void 0 : hl.trim());
|
|
3438
3438
|
});
|
|
3439
|
-
let Ke = [(
|
|
3440
|
-
return (
|
|
3439
|
+
let Ke = [(Ml = (al = (cl = (Wl = (Nl = Fe == null ? void 0 : Fe.split("<")) == null ? void 0 : Nl[1]) == null ? void 0 : Wl.split(">")) == null ? void 0 : cl[0]) == null ? void 0 : al.replaceAll("'", "")) == null ? void 0 : Ml.trim()], Je;
|
|
3440
|
+
return (Gl = (Jl = (zl = i == null ? void 0 : i.data) == null ? void 0 : zl.data) == null ? void 0 : Jl.data) != null && Gl[Ae == null ? void 0 : Ae[0]] ? Je = await ye((Ql = (ql = (Hl = i == null ? void 0 : i.data) == null ? void 0 : Hl.data) == null ? void 0 : ql.data) == null ? void 0 : Ql[Ae == null ? void 0 : Ae[0]], Pe, Ae) : Je = await oe((Yl = (Xl = i == null ? void 0 : i.data) == null ? void 0 : Xl.data) == null ? void 0 : Yl.data, Pe, Ke), Je;
|
|
3441
3441
|
} else {
|
|
3442
|
-
const Fe = (
|
|
3442
|
+
const Fe = (la = (ea = (Zl = i == null ? void 0 : i.data) == null ? void 0 : Zl.data) == null ? void 0 : ea.path) == null ? void 0 : la.path;
|
|
3443
3443
|
let Pe = "";
|
|
3444
|
-
return (
|
|
3444
|
+
return (xa = (Dl = (ia = (sa = (aa = Fe == null ? void 0 : Fe.split("(")) == null ? void 0 : aa[1]) == null ? void 0 : sa.split(")")) == null ? void 0 : ia[0]) == null ? void 0 : Dl.split(":")) == null || xa.forEach((Je) => {
|
|
3445
3445
|
var je, vl;
|
|
3446
3446
|
Pe = Pe === "" ? Pe + ((je = Je == null ? void 0 : Je.replaceAll("'", "")) == null ? void 0 : je.trim()) : Pe + "/" + ((vl = Je == null ? void 0 : Je.replaceAll("'", "")) == null ? void 0 : vl.trim());
|
|
3447
|
-
}), await y((
|
|
3447
|
+
}), await y((Ea = (Aa = (Ta = i == null ? void 0 : i.data) == null ? void 0 : Ta.data) == null ? void 0 : Aa.data) == null ? void 0 : Ea[Ae == null ? void 0 : Ae[0]], Pe, Ae);
|
|
3448
3448
|
}
|
|
3449
3449
|
}
|
|
3450
3450
|
}
|
|
3451
3451
|
});
|
|
3452
3452
|
await Promise.all(de);
|
|
3453
3453
|
}
|
|
3454
|
-
|
|
3454
|
+
_.setImportLoading(!1), C.value = !0;
|
|
3455
3455
|
}, we = async (b) => {
|
|
3456
3456
|
var w, F, te;
|
|
3457
|
-
const
|
|
3457
|
+
const W = l(b);
|
|
3458
3458
|
let a;
|
|
3459
|
-
b != null && b[0].path && (a = await (
|
|
3460
|
-
var
|
|
3459
|
+
b != null && b[0].path && (a = await (W == null ? void 0 : W.map(async (A, u) => {
|
|
3460
|
+
var K, k, H, g, ee, M, J, ae, V, i;
|
|
3461
3461
|
const B = (await wl({
|
|
3462
3462
|
key: {
|
|
3463
3463
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
3464
3464
|
type: "data",
|
|
3465
|
-
pageKey: (
|
|
3465
|
+
pageKey: (K = b == null ? void 0 : b[0]) == null ? void 0 : K.path
|
|
3466
3466
|
}
|
|
3467
3467
|
})).data.result;
|
|
3468
|
-
let
|
|
3469
|
-
const
|
|
3470
|
-
return B == null || B.forEach((
|
|
3468
|
+
let Z = "";
|
|
3469
|
+
const ne = await gl(se.value, sessionStorage.getItem("systemKey"), "");
|
|
3470
|
+
return B == null || B.forEach((X) => {
|
|
3471
3471
|
var re, de, e, s, t;
|
|
3472
|
-
((de = (re =
|
|
3472
|
+
((de = (re = X == null ? void 0 : X.value) == null ? void 0 : re.tableData) == null ? void 0 : de.算法名称) === ((e = W == null ? void 0 : W[u]) == null ? void 0 : e.method) && (Z = (t = (s = X == null ? void 0 : X.value) == null ? void 0 : s.tableData) == null ? void 0 : t.算法体);
|
|
3473
3473
|
}), {
|
|
3474
|
-
buttonName: ((
|
|
3475
|
-
api:
|
|
3476
|
-
content:
|
|
3474
|
+
buttonName: ((k = W == null ? void 0 : W[u]) == null ? void 0 : k.method) ?? ((ee = (g = (H = B == null ? void 0 : B[0]) == null ? void 0 : H.value) == null ? void 0 : g.tableData) == null ? void 0 : ee.算法名称),
|
|
3475
|
+
api: Z === "" ? (ae = (J = (M = B == null ? void 0 : B[0]) == null ? void 0 : M.value) == null ? void 0 : J.tableData) == null ? void 0 : ae.算法体 : Z,
|
|
3476
|
+
content: ne == null ? void 0 : ne.filter((X) => X.comp !== "methodButton"),
|
|
3477
3477
|
extraContent: (V = l(A.value)) == null ? void 0 : V.slice(1),
|
|
3478
3478
|
methodName: (A == null ? void 0 : A.path) ?? "",
|
|
3479
|
-
extraValues: (i =
|
|
3479
|
+
extraValues: (i = W == null ? void 0 : W[u]) == null ? void 0 : i.data
|
|
3480
3480
|
};
|
|
3481
3481
|
})));
|
|
3482
|
-
const v =
|
|
3483
|
-
var
|
|
3484
|
-
const
|
|
3482
|
+
const v = W == null ? void 0 : W.map(async (A) => {
|
|
3483
|
+
var K, k, H, g, ee, M;
|
|
3484
|
+
const G = (K = (await wl({
|
|
3485
3485
|
key: {
|
|
3486
3486
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
3487
3487
|
parentTable: "",
|
|
3488
3488
|
type: "method",
|
|
3489
3489
|
methodName: A.method
|
|
3490
3490
|
}
|
|
3491
|
-
})).data.result) == null ? void 0 :
|
|
3491
|
+
})).data.result) == null ? void 0 : K[0], B = await wl({
|
|
3492
3492
|
key: {
|
|
3493
3493
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
3494
3494
|
type: "methodData",
|
|
3495
|
-
tableId:
|
|
3495
|
+
tableId: G == null ? void 0 : G.id
|
|
3496
3496
|
}
|
|
3497
|
-
}),
|
|
3497
|
+
}), Z = await gl(se.value, sessionStorage.getItem("systemKey"), ""), ne = (k = B.data.result) == null ? void 0 : k[0];
|
|
3498
3498
|
return {
|
|
3499
|
-
buttonName: (
|
|
3500
|
-
api: (ee = (g =
|
|
3501
|
-
content:
|
|
3502
|
-
extraContent: (
|
|
3499
|
+
buttonName: (H = G == null ? void 0 : G.key) == null ? void 0 : H.methodKey,
|
|
3500
|
+
api: (ee = (g = ne == null ? void 0 : ne.value) == null ? void 0 : g.tableData) == null ? void 0 : ee[0],
|
|
3501
|
+
content: Z == null ? void 0 : Z.filter((J) => J.comp !== "methodButton"),
|
|
3502
|
+
extraContent: (M = l(A.value)) == null ? void 0 : M.slice(1),
|
|
3503
3503
|
methodName: (A == null ? void 0 : A.method) ?? ""
|
|
3504
3504
|
};
|
|
3505
3505
|
}), f = (w = b == null ? void 0 : b[0]) != null && w.path && ((F = b == null ? void 0 : b[0]) == null ? void 0 : F.path) !== "" ? await Promise.all(a) : await Promise.all(v);
|
|
3506
3506
|
S.value = f == null ? void 0 : f.filter((A) => A == null ? void 0 : A.extraContent), (te = S.value) == null || te.forEach((A) => {
|
|
3507
3507
|
var u;
|
|
3508
|
-
A.api === "" && ((u = A.content) == null || u.forEach((
|
|
3508
|
+
A.api === "" && ((u = A.content) == null || u.forEach((G) => {
|
|
3509
3509
|
var B;
|
|
3510
|
-
|
|
3510
|
+
G.comp == "Table" && O.setExtraContents(ys(G.compData, (B = A.extraContent) == null ? void 0 : B[0]));
|
|
3511
3511
|
}));
|
|
3512
3512
|
});
|
|
3513
3513
|
};
|
|
@@ -3517,11 +3517,11 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3517
3517
|
E.value == "view" && !C.value && await we(l(m.itemData)), C.value = !1;
|
|
3518
3518
|
},
|
|
3519
3519
|
{ immediate: !0, deep: !0 }
|
|
3520
|
-
), (b,
|
|
3520
|
+
), (b, W) => {
|
|
3521
3521
|
var a, v, f;
|
|
3522
|
-
return
|
|
3523
|
-
(
|
|
3524
|
-
w.api !== "" ? (
|
|
3522
|
+
return xl(E) !== "edit" ? (Y(), _e("div", Co, [
|
|
3523
|
+
(Y(!0), _e(Ue, null, Ne((a = S.value) == null ? void 0 : a.filter((w) => (w == null ? void 0 : w.buttonName) !== "保存"), (w) => (Y(), _e("div", null, [
|
|
3524
|
+
w.api !== "" ? (Y(), Ve(xl(Fa), {
|
|
3525
3525
|
key: 0,
|
|
3526
3526
|
class: "calculator-content",
|
|
3527
3527
|
modelValue: w.buttonName,
|
|
@@ -3529,13 +3529,13 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3529
3529
|
loading: $.value
|
|
3530
3530
|
}, null, 8, ["modelValue", "onClickTrigger", "loading"])) : Qe("", !0)
|
|
3531
3531
|
]))), 256)),
|
|
3532
|
-
|
|
3532
|
+
xl(ue) !== "" && ((f = xl(se)) == null ? void 0 : f[((v = xl(se)) == null ? void 0 : v.length) - 1]) !== "/" ? (Y(), Ve(xl(Fa), {
|
|
3533
3533
|
key: 0,
|
|
3534
3534
|
class: "calculator-content",
|
|
3535
3535
|
onClickTrigger: ve,
|
|
3536
3536
|
modelValue: "保存"
|
|
3537
3537
|
})) : Qe("", !0),
|
|
3538
|
-
o.value ? (
|
|
3538
|
+
o.value ? (Y(), Ve(Na, {
|
|
3539
3539
|
key: 1,
|
|
3540
3540
|
fileDataList: n.value,
|
|
3541
3541
|
onDestroy: c
|
|
@@ -3543,11 +3543,11 @@ const zn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Jn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3543
3543
|
])) : Qe("", !0);
|
|
3544
3544
|
};
|
|
3545
3545
|
}
|
|
3546
|
-
},
|
|
3547
|
-
function
|
|
3546
|
+
}, Do = /* @__PURE__ */ We(wo, [["__scopeId", "data-v-613a46d4"]]), Io = {};
|
|
3547
|
+
function xo(r, S) {
|
|
3548
3548
|
return " 567 ";
|
|
3549
3549
|
}
|
|
3550
|
-
const
|
|
3550
|
+
const To = /* @__PURE__ */ We(Io, [["render", xo]]), Ao = { class: "module content" }, Eo = { class: "module data" }, So = { class: "module layout" }, $o = { class: "form-content" }, Bo = /* @__PURE__ */ Al({
|
|
3551
3551
|
__name: "operate",
|
|
3552
3552
|
props: {
|
|
3553
3553
|
itemContents: {
|
|
@@ -3561,11 +3561,11 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3561
3561
|
},
|
|
3562
3562
|
emits: ["change"],
|
|
3563
3563
|
setup(r, { emit: S }) {
|
|
3564
|
-
const m = r, o = S, n =
|
|
3564
|
+
const m = r, o = S, n = _a({
|
|
3565
3565
|
visible: !1,
|
|
3566
3566
|
width: "40%",
|
|
3567
3567
|
title: "签名配置"
|
|
3568
|
-
}),
|
|
3568
|
+
}), O = z("create"), $ = z([
|
|
3569
3569
|
{
|
|
3570
3570
|
label: "取消",
|
|
3571
3571
|
background: "#c0c4cc"
|
|
@@ -3574,7 +3574,7 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3574
3574
|
label: "确认",
|
|
3575
3575
|
background: "#436aaf"
|
|
3576
3576
|
}
|
|
3577
|
-
]),
|
|
3577
|
+
]), _ = z([
|
|
3578
3578
|
{
|
|
3579
3579
|
label: "宽度(%):",
|
|
3580
3580
|
prop: "signPadWidth",
|
|
@@ -3617,7 +3617,7 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3617
3617
|
value: "",
|
|
3618
3618
|
isFormColHidden: !0
|
|
3619
3619
|
}
|
|
3620
|
-
]), P =
|
|
3620
|
+
]), P = Ca(() => [
|
|
3621
3621
|
{
|
|
3622
3622
|
label: "",
|
|
3623
3623
|
prop: "index",
|
|
@@ -3667,7 +3667,7 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3667
3667
|
// ],
|
|
3668
3668
|
// value: false
|
|
3669
3669
|
// },
|
|
3670
|
-
]),
|
|
3670
|
+
]), q = z({}), E = z([]), ue = () => ({
|
|
3671
3671
|
comp: "Signature",
|
|
3672
3672
|
compData: [
|
|
3673
3673
|
{
|
|
@@ -3676,17 +3676,17 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3676
3676
|
},
|
|
3677
3677
|
{
|
|
3678
3678
|
key: "signConfig",
|
|
3679
|
-
contents:
|
|
3679
|
+
contents: q.value
|
|
3680
3680
|
}
|
|
3681
3681
|
]
|
|
3682
3682
|
}), se = (C) => {
|
|
3683
3683
|
var I;
|
|
3684
|
-
|
|
3684
|
+
q.value = l(C), o("change", (I = ue()) == null ? void 0 : I.compData);
|
|
3685
3685
|
}, Ce = (C) => {
|
|
3686
3686
|
var I, ve;
|
|
3687
3687
|
if ((C == null ? void 0 : C.buttonName) === "确认") {
|
|
3688
3688
|
const c = l(C == null ? void 0 : C.content);
|
|
3689
|
-
switch (
|
|
3689
|
+
switch (O.value) {
|
|
3690
3690
|
case "create":
|
|
3691
3691
|
E.value.push({
|
|
3692
3692
|
...c,
|
|
@@ -3703,15 +3703,15 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3703
3703
|
case "create":
|
|
3704
3704
|
(ve = P.value) == null || ve.forEach((p) => {
|
|
3705
3705
|
p.value = "";
|
|
3706
|
-
}),
|
|
3706
|
+
}), O.value = "create", n.visible = !0;
|
|
3707
3707
|
break;
|
|
3708
3708
|
case "update":
|
|
3709
3709
|
(c = P.value) == null || c.forEach((p) => {
|
|
3710
3710
|
p.value = I[p == null ? void 0 : p.prop];
|
|
3711
|
-
}),
|
|
3711
|
+
}), O.value = "update", n.visible = !0;
|
|
3712
3712
|
break;
|
|
3713
3713
|
case "delete":
|
|
3714
|
-
E.value.splice(I, 1),
|
|
3714
|
+
E.value.splice(I, 1), O.value = "delete";
|
|
3715
3715
|
break;
|
|
3716
3716
|
}
|
|
3717
3717
|
}, be = () => {
|
|
@@ -3719,20 +3719,20 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3719
3719
|
};
|
|
3720
3720
|
return Xe(() => m == null ? void 0 : m.itemContents, (C) => {
|
|
3721
3721
|
var I, ve;
|
|
3722
|
-
C && (
|
|
3722
|
+
C && (q.value = ((I = C == null ? void 0 : C.find((c) => c.key === "signConfig")) == null ? void 0 : I.contents) ?? {}, E.value = ((ve = C == null ? void 0 : C.find((c) => c.key === "signTypeList")) == null ? void 0 : ve.contents) ?? []);
|
|
3723
3723
|
}, { immediate: !0 }), (C, I) => {
|
|
3724
3724
|
const ve = Re("svg-icon"), c = Re("el-button");
|
|
3725
|
-
return
|
|
3725
|
+
return Y(), _e(Ue, null, [
|
|
3726
3726
|
D("div", null, [
|
|
3727
|
-
D("div",
|
|
3727
|
+
D("div", Ao, [
|
|
3728
3728
|
I[2] || (I[2] = D("h4", { class: "module-title" }, "签名类型", -1)),
|
|
3729
|
-
|
|
3729
|
+
Q(c, {
|
|
3730
3730
|
class: "module-icon",
|
|
3731
3731
|
id: "themeButton",
|
|
3732
3732
|
onClick: I[0] || (I[0] = (p) => ce("create"))
|
|
3733
3733
|
}, {
|
|
3734
3734
|
icon: he(() => [
|
|
3735
|
-
|
|
3735
|
+
Q(ve, {
|
|
3736
3736
|
name: "Plus",
|
|
3737
3737
|
class: "icon-size"
|
|
3738
3738
|
})
|
|
@@ -3744,14 +3744,14 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3744
3744
|
__: [1]
|
|
3745
3745
|
})
|
|
3746
3746
|
]),
|
|
3747
|
-
D("div",
|
|
3748
|
-
(
|
|
3747
|
+
D("div", Eo, [
|
|
3748
|
+
(Y(!0), _e(Ue, null, Ne(E.value, (p, h) => (Y(), _e("div", {
|
|
3749
3749
|
class: "module-data-item",
|
|
3750
3750
|
key: h
|
|
3751
3751
|
}, [
|
|
3752
3752
|
D("span", null, De(p == null ? void 0 : p.label), 1),
|
|
3753
3753
|
D("div", null, [
|
|
3754
|
-
|
|
3754
|
+
Q(c, {
|
|
3755
3755
|
type: "primary",
|
|
3756
3756
|
size: "small",
|
|
3757
3757
|
onClick: (y) => ce("update", { ...p, index: h + 1 })
|
|
@@ -3762,7 +3762,7 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3762
3762
|
_: 2,
|
|
3763
3763
|
__: [3]
|
|
3764
3764
|
}, 1032, ["onClick"]),
|
|
3765
|
-
|
|
3765
|
+
Q(c, {
|
|
3766
3766
|
type: "danger",
|
|
3767
3767
|
size: "small",
|
|
3768
3768
|
onClick: (y) => ce("delete", h)
|
|
@@ -3776,22 +3776,22 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3776
3776
|
])
|
|
3777
3777
|
]))), 128))
|
|
3778
3778
|
]),
|
|
3779
|
-
D("div",
|
|
3780
|
-
|
|
3781
|
-
rowContents:
|
|
3779
|
+
D("div", So, [
|
|
3780
|
+
Q(Ze, {
|
|
3781
|
+
rowContents: _.value,
|
|
3782
3782
|
onChange: se
|
|
3783
3783
|
}, null, 8, ["rowContents"])
|
|
3784
3784
|
])
|
|
3785
3785
|
]),
|
|
3786
|
-
|
|
3786
|
+
Q(el, {
|
|
3787
3787
|
visible: n.visible,
|
|
3788
3788
|
title: n.title,
|
|
3789
3789
|
onBeforeDestroy: be,
|
|
3790
3790
|
width: n.width
|
|
3791
3791
|
}, {
|
|
3792
3792
|
default: he(() => [
|
|
3793
|
-
D("div",
|
|
3794
|
-
(
|
|
3793
|
+
D("div", $o, [
|
|
3794
|
+
(Y(), Ve(Ze, {
|
|
3795
3795
|
rowContents: P.value,
|
|
3796
3796
|
key: P.value,
|
|
3797
3797
|
isEnableWrap: !1,
|
|
@@ -3807,7 +3807,7 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3807
3807
|
], 64);
|
|
3808
3808
|
};
|
|
3809
3809
|
}
|
|
3810
|
-
}),
|
|
3810
|
+
}), Fo = /* @__PURE__ */ We(Bo, [["__scopeId", "data-v-487e0536"]]), Lo = /* @__PURE__ */ Al({
|
|
3811
3811
|
__name: "index",
|
|
3812
3812
|
props: {
|
|
3813
3813
|
stepConfig: {
|
|
@@ -3821,16 +3821,16 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3821
3821
|
},
|
|
3822
3822
|
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
3823
3823
|
setup(r, { emit: S }) {
|
|
3824
|
-
const m = r, o = S, n =
|
|
3824
|
+
const m = r, o = S, n = z(1), O = Ca(() => {
|
|
3825
3825
|
var ue, se;
|
|
3826
3826
|
return (ue = m == null ? void 0 : m.stepConfig) != null && ue.allowTrigger ? n.value : (se = m == null ? void 0 : m.stepConfig) == null ? void 0 : se.active;
|
|
3827
3827
|
}), $ = (ue, se) => {
|
|
3828
3828
|
n.value = se, o("clickStep", ue, se);
|
|
3829
|
-
},
|
|
3829
|
+
}, _ = (ue) => rs(ue), P = () => {
|
|
3830
3830
|
var se;
|
|
3831
|
-
const ue = (se = m == null ? void 0 : m.stepList) == null ? void 0 : se.find((Ce, ce) => ce + 1 ===
|
|
3831
|
+
const ue = (se = m == null ? void 0 : m.stepList) == null ? void 0 : se.find((Ce, ce) => ce + 1 === O.value);
|
|
3832
3832
|
return console.log("findStep", ue), ue ? ue == null ? void 0 : ue.children : [];
|
|
3833
|
-
},
|
|
3833
|
+
}, q = (ue) => {
|
|
3834
3834
|
o("clickTrigger", ue);
|
|
3835
3835
|
}, E = (ue) => {
|
|
3836
3836
|
o("changeTrigger", ue);
|
|
@@ -3838,27 +3838,27 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3838
3838
|
return (ue, se) => {
|
|
3839
3839
|
var be, C, I, ve, c;
|
|
3840
3840
|
const Ce = Re("el-step"), ce = Re("el-steps");
|
|
3841
|
-
return
|
|
3842
|
-
|
|
3841
|
+
return Y(), _e(Ue, null, [
|
|
3842
|
+
Q(ce, {
|
|
3843
3843
|
direction: (be = r.stepConfig) == null ? void 0 : be.direction,
|
|
3844
|
-
active:
|
|
3844
|
+
active: O.value,
|
|
3845
3845
|
"finish-status": "success",
|
|
3846
3846
|
simple: (C = r.stepConfig) == null ? void 0 : C.simple,
|
|
3847
3847
|
"align-center": ((I = r.stepConfig) == null ? void 0 : I.alignCenter) ?? !0
|
|
3848
3848
|
}, {
|
|
3849
3849
|
default: he(() => [
|
|
3850
|
-
(
|
|
3850
|
+
(Y(!0), _e(Ue, null, Ne(r.stepList, (p, h) => (Y(), Ve(Ce, {
|
|
3851
3851
|
key: h,
|
|
3852
3852
|
class: "step-item",
|
|
3853
3853
|
onClick: (y) => $(p, h + 1)
|
|
3854
3854
|
}, {
|
|
3855
3855
|
title: he(() => [
|
|
3856
|
-
|
|
3856
|
+
ca(ue.$slots, "title", {
|
|
3857
3857
|
title: p == null ? void 0 : p.title
|
|
3858
3858
|
}, void 0, !0)
|
|
3859
3859
|
]),
|
|
3860
3860
|
description: he(() => [
|
|
3861
|
-
|
|
3861
|
+
ca(ue.$slots, "description", {
|
|
3862
3862
|
description: p == null ? void 0 : p.description
|
|
3863
3863
|
}, void 0, !0)
|
|
3864
3864
|
]),
|
|
@@ -3867,21 +3867,21 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3867
3867
|
]),
|
|
3868
3868
|
_: 3
|
|
3869
3869
|
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
3870
|
-
(ve = r.stepConfig) != null && ve.allowTrigger && ((c = r.stepConfig) != null && c.active) ? (
|
|
3870
|
+
(ve = r.stepConfig) != null && ve.allowTrigger && ((c = r.stepConfig) != null && c.active) ? (Y(!0), _e(Ue, { key: 0 }, Ne(P(), (p, h) => (Y(), _e("div", {
|
|
3871
3871
|
key: h,
|
|
3872
3872
|
class: "step-cont-wrap"
|
|
3873
3873
|
}, [
|
|
3874
|
-
(
|
|
3874
|
+
(Y(), Ve(ua(_(p == null ? void 0 : p.type)), {
|
|
3875
3875
|
modelValue: p.value,
|
|
3876
3876
|
"onUpdate:modelValue": (y) => p.value = y,
|
|
3877
|
-
onClickTrigger:
|
|
3877
|
+
onClickTrigger: q,
|
|
3878
3878
|
onChangeTrigger: E,
|
|
3879
3879
|
content: p == null ? void 0 : p.content
|
|
3880
3880
|
}, is({ _: 2 }, [
|
|
3881
3881
|
Ne(ue.$slots, (y, oe) => ({
|
|
3882
3882
|
name: oe,
|
|
3883
3883
|
fn: he((ye) => [
|
|
3884
|
-
|
|
3884
|
+
ca(ue.$slots, oe, os({ ref_for: !0 }, ye || {}), void 0, !0)
|
|
3885
3885
|
])
|
|
3886
3886
|
}))
|
|
3887
3887
|
]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
|
|
@@ -3889,7 +3889,7 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3889
3889
|
], 64);
|
|
3890
3890
|
};
|
|
3891
3891
|
}
|
|
3892
|
-
}), Oo = /* @__PURE__ */ We(
|
|
3892
|
+
}), Oo = /* @__PURE__ */ We(Lo, [["__scopeId", "data-v-d7c99969"]]), Vo = /* @__PURE__ */ Al({
|
|
3893
3893
|
__name: "index",
|
|
3894
3894
|
props: {
|
|
3895
3895
|
itemData: {
|
|
@@ -3903,23 +3903,23 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3903
3903
|
},
|
|
3904
3904
|
emits: ["clickStep"],
|
|
3905
3905
|
setup(r, { emit: S }) {
|
|
3906
|
-
const m = r, o = S, n =
|
|
3907
|
-
o("clickStep",
|
|
3906
|
+
const m = r, o = S, n = z({}), O = z([]), $ = (_, P) => {
|
|
3907
|
+
o("clickStep", _, P);
|
|
3908
3908
|
};
|
|
3909
|
-
return Xe(() => m == null ? void 0 : m.itemData, (
|
|
3910
|
-
var P,
|
|
3911
|
-
|
|
3909
|
+
return Xe(() => m == null ? void 0 : m.itemData, (_) => {
|
|
3910
|
+
var P, q;
|
|
3911
|
+
O.value = (P = _ == null ? void 0 : _.find((E) => (E == null ? void 0 : E.key) === "stepList")) == null ? void 0 : P.contents, n.value = (q = _ == null ? void 0 : _.find((E) => (E == null ? void 0 : E.key) === "stepConfig")) == null ? void 0 : q.contents;
|
|
3912
3912
|
}, {
|
|
3913
3913
|
immediate: !0
|
|
3914
|
-
}), (
|
|
3915
|
-
const
|
|
3916
|
-
return
|
|
3914
|
+
}), (_, P) => {
|
|
3915
|
+
const q = Re("svg-icon");
|
|
3916
|
+
return Y(), Ve(Oo, {
|
|
3917
3917
|
stepConfig: n.value,
|
|
3918
|
-
stepList:
|
|
3918
|
+
stepList: O.value,
|
|
3919
3919
|
onClickStep: $
|
|
3920
3920
|
}, {
|
|
3921
3921
|
icon: he(() => [
|
|
3922
|
-
|
|
3922
|
+
Q(q, { name: "import" })
|
|
3923
3923
|
]),
|
|
3924
3924
|
title: he(({ title: E }) => [
|
|
3925
3925
|
Be(De(E), 1)
|
|
@@ -3931,7 +3931,7 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3931
3931
|
}, 8, ["stepConfig", "stepList"]);
|
|
3932
3932
|
};
|
|
3933
3933
|
}
|
|
3934
|
-
}),
|
|
3934
|
+
}), Ro = /* @__PURE__ */ Al({
|
|
3935
3935
|
__name: "index",
|
|
3936
3936
|
props: {
|
|
3937
3937
|
activities: {
|
|
@@ -3947,11 +3947,11 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3947
3947
|
setup(r) {
|
|
3948
3948
|
return (S, m) => {
|
|
3949
3949
|
const o = Re("el-timeline-item"), n = Re("el-timeline");
|
|
3950
|
-
return
|
|
3950
|
+
return Y(), Ve(n, null, {
|
|
3951
3951
|
default: he(() => [
|
|
3952
|
-
(
|
|
3952
|
+
(Y(!0), _e(Ue, null, Ne(r.activities, (O, $) => (Y(), Ve(o, {
|
|
3953
3953
|
key: $,
|
|
3954
|
-
timestamp:
|
|
3954
|
+
timestamp: O.timestamp,
|
|
3955
3955
|
placement: r.timeLineConfig.placement,
|
|
3956
3956
|
center: r.timeLineConfig.isCenter,
|
|
3957
3957
|
"hide-timestamp": !0,
|
|
@@ -3962,9 +3962,9 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3962
3962
|
hollow: r.timeLineConfig.isHollow
|
|
3963
3963
|
}, {
|
|
3964
3964
|
default: he(() => [
|
|
3965
|
-
|
|
3966
|
-
content:
|
|
3967
|
-
timestamp:
|
|
3965
|
+
ca(S.$slots, "content", {
|
|
3966
|
+
content: O == null ? void 0 : O.content,
|
|
3967
|
+
timestamp: O == null ? void 0 : O.timestamp
|
|
3968
3968
|
}, void 0, !0)
|
|
3969
3969
|
]),
|
|
3970
3970
|
_: 2
|
|
@@ -3974,7 +3974,7 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3974
3974
|
});
|
|
3975
3975
|
};
|
|
3976
3976
|
}
|
|
3977
|
-
}),
|
|
3977
|
+
}), Uo = /* @__PURE__ */ We(Ro, [["__scopeId", "data-v-4172a886"]]), Po = { class: "line-content" }, jo = { class: "line-time" }, Ko = /* @__PURE__ */ Al({
|
|
3978
3978
|
__name: "index",
|
|
3979
3979
|
props: {
|
|
3980
3980
|
itemData: {
|
|
@@ -3983,24 +3983,24 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
3983
3983
|
}
|
|
3984
3984
|
},
|
|
3985
3985
|
setup(r) {
|
|
3986
|
-
const S = r, m =
|
|
3986
|
+
const S = r, m = z({}), o = z([]);
|
|
3987
3987
|
return Xe(() => S == null ? void 0 : S.itemData, (n) => {
|
|
3988
|
-
var
|
|
3989
|
-
o.value = (
|
|
3988
|
+
var O, $;
|
|
3989
|
+
o.value = (O = n == null ? void 0 : n.find((_) => (_ == null ? void 0 : _.key) === "timeLineList")) == null ? void 0 : O.contents, m.value = ($ = n == null ? void 0 : n.find((_) => (_ == null ? void 0 : _.key) === "timeLineConfig")) == null ? void 0 : $.contents;
|
|
3990
3990
|
}, {
|
|
3991
3991
|
immediate: !0
|
|
3992
|
-
}), (n,
|
|
3992
|
+
}), (n, O) => (Y(), Ve(Uo, {
|
|
3993
3993
|
activities: o.value,
|
|
3994
3994
|
timeLineConfig: m.value
|
|
3995
3995
|
}, {
|
|
3996
|
-
content: he(({ content: $, timestamp:
|
|
3997
|
-
D("span",
|
|
3998
|
-
D("span",
|
|
3996
|
+
content: he(({ content: $, timestamp: _ }) => [
|
|
3997
|
+
D("span", Po, De($), 1),
|
|
3998
|
+
D("span", jo, De(_), 1)
|
|
3999
3999
|
]),
|
|
4000
4000
|
_: 1
|
|
4001
4001
|
}, 8, ["activities", "timeLineConfig"]));
|
|
4002
4002
|
}
|
|
4003
|
-
}),
|
|
4003
|
+
}), No = /* @__PURE__ */ We(Ko, [["__scopeId", "data-v-b4d9deed"]]), Wo = { class: "tabs-content" }, Mo = {
|
|
4004
4004
|
__name: "index",
|
|
4005
4005
|
props: {
|
|
4006
4006
|
itemData: {
|
|
@@ -4014,24 +4014,24 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4014
4014
|
index: Number
|
|
4015
4015
|
},
|
|
4016
4016
|
setup(r) {
|
|
4017
|
-
const S = r, m =
|
|
4017
|
+
const S = r, m = z([]);
|
|
4018
4018
|
return Xe(
|
|
4019
4019
|
() => S == null ? void 0 : S.itemData,
|
|
4020
4020
|
(o) => {
|
|
4021
|
-
const n = o.find((
|
|
4022
|
-
n && (m.value = n.contents.map((
|
|
4023
|
-
value:
|
|
4024
|
-
label:
|
|
4025
|
-
children:
|
|
4021
|
+
const n = o.find((O) => (O == null ? void 0 : O.key) == "stepList");
|
|
4022
|
+
n && (m.value = n.contents.map((O) => ({
|
|
4023
|
+
value: O.value || O.title,
|
|
4024
|
+
label: O.label || O.title,
|
|
4025
|
+
children: O.children || []
|
|
4026
4026
|
// 关键:传递子内容
|
|
4027
4027
|
})));
|
|
4028
4028
|
},
|
|
4029
4029
|
{ immediate: !0, deep: !0 }
|
|
4030
|
-
), (o, n) => (
|
|
4031
|
-
|
|
4030
|
+
), (o, n) => (Y(), _e("div", Wo, [
|
|
4031
|
+
Q(cs, { tabsContents: m.value }, null, 8, ["tabsContents"])
|
|
4032
4032
|
]));
|
|
4033
4033
|
}
|
|
4034
|
-
},
|
|
4034
|
+
}, zo = /* @__PURE__ */ We(Mo, [["__scopeId", "data-v-d3bb10b7"]]), pa = us("tabComp", {
|
|
4035
4035
|
state: () => ({
|
|
4036
4036
|
itemData: [],
|
|
4037
4037
|
originalData: [],
|
|
@@ -4065,48 +4065,48 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4065
4065
|
this.isEdit = r;
|
|
4066
4066
|
}
|
|
4067
4067
|
}
|
|
4068
|
-
}),
|
|
4068
|
+
}), Jo = { class: "type-select" }, Go = ["onClick"], Ho = { class: "list-icon" }, qo = {
|
|
4069
4069
|
__name: "modelSelect",
|
|
4070
4070
|
setup(r) {
|
|
4071
|
-
const S =
|
|
4072
|
-
const
|
|
4073
|
-
|
|
4071
|
+
const S = pa(ll), { itemData: m } = il(S), o = (n) => {
|
|
4072
|
+
const O = l(m.value);
|
|
4073
|
+
O.push({
|
|
4074
4074
|
comp: n.comp,
|
|
4075
4075
|
name: n.name,
|
|
4076
4076
|
compData: []
|
|
4077
|
-
}), S.setItemData(
|
|
4077
|
+
}), S.setItemData(O);
|
|
4078
4078
|
};
|
|
4079
|
-
return (n,
|
|
4079
|
+
return (n, O) => {
|
|
4080
4080
|
const $ = Re("svg-icon");
|
|
4081
|
-
return
|
|
4082
|
-
(
|
|
4081
|
+
return Y(), _e("div", Jo, [
|
|
4082
|
+
(Y(!0), _e(Ue, null, Ne(xl(Bn), (_, P) => (Y(), _e("div", {
|
|
4083
4083
|
class: "type-list",
|
|
4084
4084
|
key: P
|
|
4085
4085
|
}, [
|
|
4086
4086
|
D("div", {
|
|
4087
4087
|
class: "list-content",
|
|
4088
|
-
onClick: (
|
|
4088
|
+
onClick: (q) => o(_)
|
|
4089
4089
|
}, [
|
|
4090
|
-
D("div",
|
|
4091
|
-
|
|
4092
|
-
name:
|
|
4090
|
+
D("div", Ho, [
|
|
4091
|
+
Q($, {
|
|
4092
|
+
name: _.icon
|
|
4093
4093
|
}, null, 8, ["name"])
|
|
4094
4094
|
]),
|
|
4095
|
-
D("div", null, De(
|
|
4096
|
-
], 8,
|
|
4095
|
+
D("div", null, De(_.name), 1)
|
|
4096
|
+
], 8, Go)
|
|
4097
4097
|
]))), 128))
|
|
4098
4098
|
]);
|
|
4099
4099
|
};
|
|
4100
4100
|
}
|
|
4101
|
-
},
|
|
4101
|
+
}, Qo = /* @__PURE__ */ We(qo, [["__scopeId", "data-v-91799bf8"]]), Xo = { class: "fill-content" }, Yo = { class: "operate-content" }, Zo = { class: "collapse-title-content" }, en = { class: "collapse-title-item" }, ln = { key: 1 }, an = ["onClick"], sn = { class: "icon-content" }, on = {
|
|
4102
4102
|
key: 0,
|
|
4103
4103
|
class: "edit-content"
|
|
4104
|
-
},
|
|
4104
|
+
}, nn = ["onClick"], un = { class: "comp-child" }, rn = {
|
|
4105
4105
|
__name: "modelFill",
|
|
4106
4106
|
setup(r) {
|
|
4107
|
-
const S =
|
|
4108
|
-
|
|
4109
|
-
const
|
|
4107
|
+
const S = pa(ll), { itemData: m, originalData: o } = il(S), n = z([]);
|
|
4108
|
+
z([]);
|
|
4109
|
+
const O = z([]), $ = z([]), _ = (Ce) => {
|
|
4110
4110
|
var be;
|
|
4111
4111
|
let ce = (be = l($.value)) == null ? void 0 : be.map((C, I) => (Ce === I && (C.content = !0), C));
|
|
4112
4112
|
$.value = ce;
|
|
@@ -4114,7 +4114,7 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4114
4114
|
var be;
|
|
4115
4115
|
let ce = (be = l($.value)) == null ? void 0 : be.map((C, I) => (Ce === I && (C.content = !1), C));
|
|
4116
4116
|
$.value = ce, n.value = l(m.value);
|
|
4117
|
-
},
|
|
4117
|
+
}, q = (Ce, ce) => {
|
|
4118
4118
|
var ve;
|
|
4119
4119
|
let be = (ve = l($.value)) == null ? void 0 : ve.map((c, p) => (Ce === p && (c.content = !1), c));
|
|
4120
4120
|
$.value = be;
|
|
@@ -4125,14 +4125,14 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4125
4125
|
() => m.value,
|
|
4126
4126
|
() => {
|
|
4127
4127
|
var Ce, ce, be;
|
|
4128
|
-
!m.value || ((Ce = m.value) == null ? void 0 : Ce.length) === 0 ? n.value = [] : n.value = (ce = l(m.value)) == null ? void 0 : ce.filter((C) => (C == null ? void 0 : C.comp) !== "methodButton"),
|
|
4128
|
+
!m.value || ((Ce = m.value) == null ? void 0 : Ce.length) === 0 ? n.value = [] : n.value = (ce = l(m.value)) == null ? void 0 : ce.filter((C) => (C == null ? void 0 : C.comp) !== "methodButton"), O.value = n.value, $.value = (be = l(O.value)) == null ? void 0 : be.map((C, I) => ({
|
|
4129
4129
|
id: I,
|
|
4130
4130
|
content: !1
|
|
4131
4131
|
}));
|
|
4132
4132
|
},
|
|
4133
4133
|
{ deep: !0, immediate: !0 }
|
|
4134
4134
|
);
|
|
4135
|
-
const E = (Ce) =>
|
|
4135
|
+
const E = (Ce) => Ia(Ce), ue = (Ce, ce, be) => {
|
|
4136
4136
|
var I, ve;
|
|
4137
4137
|
if (!Ce) return;
|
|
4138
4138
|
let C = l(m.value);
|
|
@@ -4156,67 +4156,67 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4156
4156
|
};
|
|
4157
4157
|
return (Ce, ce) => {
|
|
4158
4158
|
const be = Re("svg-icon");
|
|
4159
|
-
return
|
|
4159
|
+
return Y(), _e("div", Xo, [
|
|
4160
4160
|
ce[1] || (ce[1] = D("div", { class: "fill-operate" }, De("操作栏"), -1)),
|
|
4161
|
-
D("div",
|
|
4162
|
-
|
|
4161
|
+
D("div", Yo, [
|
|
4162
|
+
Q(Ts, {
|
|
4163
4163
|
class: "collapse-content",
|
|
4164
4164
|
collapseContents: n.value
|
|
4165
4165
|
}, {
|
|
4166
4166
|
title: he(({ item: C, index: I }) => {
|
|
4167
4167
|
var ve, c, p, h, y, oe, ye, Ie, pe, we;
|
|
4168
4168
|
return [
|
|
4169
|
-
D("div",
|
|
4170
|
-
D("div",
|
|
4171
|
-
(c = (ve = $.value) == null ? void 0 : ve.find((b) => b.id === I)) != null && c.content ? Qe("", !0) : (
|
|
4169
|
+
D("div", Zo, [
|
|
4170
|
+
D("div", en, [
|
|
4171
|
+
(c = (ve = $.value) == null ? void 0 : ve.find((b) => b.id === I)) != null && c.content ? Qe("", !0) : (Y(), _e("div", {
|
|
4172
4172
|
key: 0,
|
|
4173
4173
|
class: "collapse-title",
|
|
4174
4174
|
style: ns({ marginRight: C.name && C.name !== "" ? "8px" : "0px" })
|
|
4175
4175
|
}, De(C.name), 5)),
|
|
4176
|
-
(h = (p = $.value) == null ? void 0 : p.find((b) => b.id === I)) != null && h.content ? (
|
|
4177
|
-
|
|
4176
|
+
(h = (p = $.value) == null ? void 0 : p.find((b) => b.id === I)) != null && h.content ? (Y(), _e("div", ln, [
|
|
4177
|
+
Q(ts, {
|
|
4178
4178
|
modelValue: C.name,
|
|
4179
4179
|
"onUpdate:modelValue": (b) => C.name = b,
|
|
4180
|
-
onClick: ce[0] || (ce[0] =
|
|
4180
|
+
onClick: ce[0] || (ce[0] = na(() => {
|
|
4181
4181
|
}, ["stop"]))
|
|
4182
4182
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4183
4183
|
])) : Qe("", !0),
|
|
4184
|
-
(oe = (y = $.value) == null ? void 0 : y.find((b) => b.id === I)) != null && oe.content ? Qe("", !0) : (
|
|
4184
|
+
(oe = (y = $.value) == null ? void 0 : y.find((b) => b.id === I)) != null && oe.content ? Qe("", !0) : (Y(), _e("div", {
|
|
4185
4185
|
key: 2,
|
|
4186
|
-
onClick:
|
|
4186
|
+
onClick: na((b) => _(I), ["stop"]),
|
|
4187
4187
|
class: "icon-content"
|
|
4188
4188
|
}, [
|
|
4189
|
-
|
|
4189
|
+
Q(be, {
|
|
4190
4190
|
name: "Edit",
|
|
4191
4191
|
style: { width: "16px", height: "16px" }
|
|
4192
4192
|
})
|
|
4193
|
-
], 8,
|
|
4193
|
+
], 8, an))
|
|
4194
4194
|
]),
|
|
4195
|
-
D("div",
|
|
4196
|
-
(Ie = (ye = $.value) == null ? void 0 : ye.find((b) => b.id === I)) != null && Ie.content ? (
|
|
4197
|
-
|
|
4195
|
+
D("div", sn, [
|
|
4196
|
+
(Ie = (ye = $.value) == null ? void 0 : ye.find((b) => b.id === I)) != null && Ie.content ? (Y(), _e("div", on, [
|
|
4197
|
+
Q(be, {
|
|
4198
4198
|
name: "Cancel",
|
|
4199
4199
|
style: { width: "16px", height: "16px" },
|
|
4200
4200
|
class: "icon-content",
|
|
4201
|
-
onClick:
|
|
4201
|
+
onClick: na((b) => P(I), ["stop"])
|
|
4202
4202
|
}, null, 8, ["onClick"]),
|
|
4203
|
-
|
|
4203
|
+
Q(be, {
|
|
4204
4204
|
name: "Save",
|
|
4205
|
-
onClick:
|
|
4205
|
+
onClick: na((b) => q(I, C.name), ["stop"]),
|
|
4206
4206
|
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
4207
4207
|
class: "icon-content"
|
|
4208
4208
|
}, null, 8, ["onClick"])
|
|
4209
4209
|
])) : Qe("", !0),
|
|
4210
|
-
(we = (pe = $.value) == null ? void 0 : pe.find((b) => b.id === I)) != null && we.content ? Qe("", !0) : (
|
|
4210
|
+
(we = (pe = $.value) == null ? void 0 : pe.find((b) => b.id === I)) != null && we.content ? Qe("", !0) : (Y(), _e("div", {
|
|
4211
4211
|
key: 1,
|
|
4212
|
-
onClick:
|
|
4212
|
+
onClick: na((b) => se(I), ["stop"]),
|
|
4213
4213
|
class: "icon-content"
|
|
4214
4214
|
}, [
|
|
4215
|
-
|
|
4215
|
+
Q(be, {
|
|
4216
4216
|
name: "Delete",
|
|
4217
4217
|
style: { width: "16px", height: "16px" }
|
|
4218
4218
|
})
|
|
4219
|
-
], 8,
|
|
4219
|
+
], 8, nn))
|
|
4220
4220
|
])
|
|
4221
4221
|
])
|
|
4222
4222
|
];
|
|
@@ -4224,10 +4224,10 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4224
4224
|
content: he(({ item: C, index: I }) => {
|
|
4225
4225
|
var ve, c;
|
|
4226
4226
|
return [
|
|
4227
|
-
D("div",
|
|
4228
|
-
(
|
|
4227
|
+
D("div", un, [
|
|
4228
|
+
(Y(), Ve(ua(E(C.comp + "Operate")), {
|
|
4229
4229
|
itemContents: C == null ? void 0 : C.compData,
|
|
4230
|
-
originalItemContents: (c = (ve =
|
|
4230
|
+
originalItemContents: (c = (ve = O.value) == null ? void 0 : ve.find((p, h) => h === I)) == null ? void 0 : c.compData,
|
|
4231
4231
|
onChange: (p) => ue(p, C, I)
|
|
4232
4232
|
}, null, 40, ["itemContents", "originalItemContents", "onChange"]))
|
|
4233
4233
|
])
|
|
@@ -4239,43 +4239,43 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4239
4239
|
]);
|
|
4240
4240
|
};
|
|
4241
4241
|
}
|
|
4242
|
-
},
|
|
4242
|
+
}, cn = /* @__PURE__ */ We(rn, [["__scopeId", "data-v-78d7fc46"]]), tn = {
|
|
4243
4243
|
key: 0,
|
|
4244
4244
|
class: "show-content"
|
|
4245
|
-
},
|
|
4245
|
+
}, dn = { style: { display: "flex" } }, pn = {
|
|
4246
4246
|
__name: "modelShow",
|
|
4247
4247
|
setup(r) {
|
|
4248
|
-
const S =
|
|
4248
|
+
const S = pa(ll), { itemData: m } = il(S), o = z([]);
|
|
4249
4249
|
Xe(
|
|
4250
4250
|
() => m.value,
|
|
4251
4251
|
() => {
|
|
4252
|
-
var
|
|
4253
|
-
!m.value || ((
|
|
4252
|
+
var O;
|
|
4253
|
+
!m.value || ((O = m.value) == null ? void 0 : O.length) === 0 ? o.value = [] : o.value = l(m.value);
|
|
4254
4254
|
},
|
|
4255
4255
|
{ deep: !0, immediate: !0 }
|
|
4256
4256
|
);
|
|
4257
|
-
const n = (
|
|
4258
|
-
return (
|
|
4259
|
-
var
|
|
4260
|
-
return ((
|
|
4261
|
-
(
|
|
4257
|
+
const n = (O) => Ia(O);
|
|
4258
|
+
return (O, $) => {
|
|
4259
|
+
var _;
|
|
4260
|
+
return ((_ = o.value) == null ? void 0 : _.length) > 0 ? (Y(), _e("div", tn, [
|
|
4261
|
+
(Y(!0), _e(Ue, null, Ne(o.value, (P, q) => (Y(), _e("div", {
|
|
4262
4262
|
class: "item-content",
|
|
4263
|
-
key:
|
|
4263
|
+
key: q
|
|
4264
4264
|
}, [
|
|
4265
|
-
D("div",
|
|
4266
|
-
(
|
|
4265
|
+
D("div", dn, De(P.name), 1),
|
|
4266
|
+
(Y(), Ve(ua(n(P.comp)), {
|
|
4267
4267
|
itemData: P == null ? void 0 : P.compData,
|
|
4268
4268
|
childItemData: P == null ? void 0 : P.itemChildData,
|
|
4269
|
-
key:
|
|
4269
|
+
key: q
|
|
4270
4270
|
}, null, 8, ["itemData", "childItemData"]))
|
|
4271
4271
|
]))), 128))
|
|
4272
4272
|
])) : Qe("", !0);
|
|
4273
4273
|
};
|
|
4274
4274
|
}
|
|
4275
|
-
},
|
|
4275
|
+
}, fn = /* @__PURE__ */ We(pn, [["__scopeId", "data-v-3f3e863e"]]), vn = { class: "tabs-header" }, hn = { class: "tabs-list" }, mn = { class: "tab-name" }, yn = { class: "tab-actions" }, bn = ["onClick"], gn = ["onClick"], kn = ["onClick"], _n = { class: "model-operate" }, Cn = {
|
|
4276
4276
|
class: "model-select",
|
|
4277
4277
|
style: { display: "unset" }
|
|
4278
|
-
},
|
|
4278
|
+
}, wn = { class: "existing-components" }, Dn = { class: "component-list" }, In = ["onClick"], xn = { class: "component-info" }, Tn = { class: "component-type" }, An = { class: "component-name" }, En = { class: "model-fill" }, Sn = {
|
|
4279
4279
|
__name: "operate",
|
|
4280
4280
|
props: {
|
|
4281
4281
|
itemContents: {
|
|
@@ -4285,27 +4285,27 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4285
4285
|
},
|
|
4286
4286
|
emits: ["change"],
|
|
4287
4287
|
setup(r, { emit: S }) {
|
|
4288
|
-
const m = r, o = S, n =
|
|
4289
|
-
$.value = "新增标签页",
|
|
4288
|
+
const m = r, o = S, n = z([]), O = z(!1), $ = z(""), _ = z({ title: "" }), P = z(-1), q = z(!1), E = z(-1), ue = z(/* @__PURE__ */ new Map()), se = z(null), Ce = pa(ll), { itemData: ce } = il(Ce), be = () => {
|
|
4289
|
+
$.value = "新增标签页", _.value.title = "", P.value = -1, O.value = !0;
|
|
4290
4290
|
}, C = (A) => {
|
|
4291
|
-
$.value = "修改标签页",
|
|
4291
|
+
$.value = "修改标签页", _.value.title = n.value[A].title, P.value = A, O.value = !0;
|
|
4292
4292
|
}, I = (A) => {
|
|
4293
4293
|
const u = p(A);
|
|
4294
4294
|
ue.value.delete(u), n.value.splice(A, 1), te();
|
|
4295
4295
|
}, ve = () => {
|
|
4296
|
-
if (
|
|
4296
|
+
if (_.value.title.trim()) {
|
|
4297
4297
|
if (P.value === -1) {
|
|
4298
4298
|
const A = {
|
|
4299
|
-
title:
|
|
4300
|
-
value:
|
|
4301
|
-
label:
|
|
4299
|
+
title: _.value.title,
|
|
4300
|
+
value: _.value.title,
|
|
4301
|
+
label: _.value.title,
|
|
4302
4302
|
children: [],
|
|
4303
4303
|
id: c()
|
|
4304
4304
|
};
|
|
4305
4305
|
n.value.push(A);
|
|
4306
4306
|
} else
|
|
4307
|
-
n.value[P.value].title =
|
|
4308
|
-
|
|
4307
|
+
n.value[P.value].title = _.value.title, n.value[P.value].value = _.value.title, n.value[P.value].label = _.value.title;
|
|
4308
|
+
O.value = !1, te();
|
|
4309
4309
|
}
|
|
4310
4310
|
}, c = () => `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, p = (A) => {
|
|
4311
4311
|
const u = n.value[A];
|
|
@@ -4315,18 +4315,18 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4315
4315
|
E.value = A;
|
|
4316
4316
|
const u = p(A);
|
|
4317
4317
|
se.value = l(ce.value);
|
|
4318
|
-
let
|
|
4319
|
-
!
|
|
4320
|
-
}, y =
|
|
4321
|
-
const A =
|
|
4322
|
-
return console.log("可用组件数据", u), !u || !Array.isArray(u) ? [] : u.filter((
|
|
4318
|
+
let G = ue.value.get(u);
|
|
4319
|
+
!G && ((B = n.value[A].children) == null ? void 0 : B.length) > 0 && (G = Ie(n.value[A].children)), G ? Ce.setItemData(l(G)) : Ce.setItemData([]), q.value = !0;
|
|
4320
|
+
}, y = Ca(() => {
|
|
4321
|
+
const A = Da(ll), u = il(A).itemData.value;
|
|
4322
|
+
return console.log("可用组件数据", u), !u || !Array.isArray(u) ? [] : u.filter((G) => {
|
|
4323
4323
|
var B;
|
|
4324
|
-
if (
|
|
4325
|
-
const
|
|
4326
|
-
if ((B =
|
|
4327
|
-
(
|
|
4328
|
-
var
|
|
4329
|
-
return
|
|
4324
|
+
if (G.comp === "Tabs" && E.value >= 0) {
|
|
4325
|
+
const Z = p(E.value);
|
|
4326
|
+
if ((B = G.compData) == null ? void 0 : B.some(
|
|
4327
|
+
(K) => {
|
|
4328
|
+
var k;
|
|
4329
|
+
return K.key === "stepList" && ((k = K.contents) == null ? void 0 : k.some((H) => H.id === Z));
|
|
4330
4330
|
}
|
|
4331
4331
|
)) return !1;
|
|
4332
4332
|
}
|
|
@@ -4341,19 +4341,19 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4341
4341
|
})[A] || A, ye = (A) => {
|
|
4342
4342
|
var u;
|
|
4343
4343
|
try {
|
|
4344
|
-
const
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4344
|
+
const G = l(A);
|
|
4345
|
+
G.id = Date.now() + Math.random(), G.comp === "Tabs" && ((u = G.compData) == null || u.forEach((Z) => {
|
|
4346
|
+
Z.key === "stepList" && Z.contents && Z.contents.forEach((ne) => {
|
|
4347
|
+
ne.id = c();
|
|
4348
4348
|
});
|
|
4349
4349
|
}));
|
|
4350
4350
|
const B = l(ce.value);
|
|
4351
|
-
B.push(
|
|
4352
|
-
} catch (
|
|
4353
|
-
console.error("添加组件失败:",
|
|
4351
|
+
B.push(G), Ce.setItemData(B);
|
|
4352
|
+
} catch (G) {
|
|
4353
|
+
console.error("添加组件失败:", G);
|
|
4354
4354
|
}
|
|
4355
4355
|
}, Ie = (A) => A.map((u) => {
|
|
4356
|
-
var
|
|
4356
|
+
var G;
|
|
4357
4357
|
switch (u.type) {
|
|
4358
4358
|
case "form":
|
|
4359
4359
|
return {
|
|
@@ -4371,7 +4371,7 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4371
4371
|
return {
|
|
4372
4372
|
comp: "Unknown",
|
|
4373
4373
|
name: u.value || "",
|
|
4374
|
-
compData: ((
|
|
4374
|
+
compData: ((G = u.content) == null ? void 0 : G.originalData) || []
|
|
4375
4375
|
};
|
|
4376
4376
|
}
|
|
4377
4377
|
}), pe = (A) => {
|
|
@@ -4392,35 +4392,35 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4392
4392
|
const A = p(E.value);
|
|
4393
4393
|
ue.value.set(A, l(ce.value)), n.value[E.value].children = v(ce.value), console.log("保存后的数据", v(ce.value));
|
|
4394
4394
|
}
|
|
4395
|
-
|
|
4396
|
-
},
|
|
4397
|
-
se.value && Ce.setItemData(l(se.value)),
|
|
4395
|
+
q.value = !1, E.value = -1, se.value = null, te();
|
|
4396
|
+
}, W = () => {
|
|
4397
|
+
se.value && Ce.setItemData(l(se.value)), q.value = !1, E.value = -1, se.value = null;
|
|
4398
4398
|
}, a = () => {
|
|
4399
|
-
|
|
4399
|
+
q.value && W();
|
|
4400
4400
|
}, v = (A) => {
|
|
4401
4401
|
if (!Array.isArray(A))
|
|
4402
4402
|
throw new Error("sourceData must be an array");
|
|
4403
|
-
return A.map((u,
|
|
4403
|
+
return A.map((u, G) => {
|
|
4404
4404
|
if (!u || typeof u != "object")
|
|
4405
4405
|
return u;
|
|
4406
|
-
const { comp: B, name:
|
|
4406
|
+
const { comp: B, name: Z, compData: ne } = u;
|
|
4407
4407
|
switch (B) {
|
|
4408
4408
|
case "Form":
|
|
4409
4409
|
return {
|
|
4410
4410
|
type: "form",
|
|
4411
|
-
content: f(
|
|
4411
|
+
content: f(ne || []),
|
|
4412
4412
|
value: "表单"
|
|
4413
4413
|
};
|
|
4414
4414
|
case "Table":
|
|
4415
4415
|
return {
|
|
4416
4416
|
type: "table",
|
|
4417
|
-
content: w(
|
|
4417
|
+
content: w(ne || []),
|
|
4418
4418
|
value: "表格"
|
|
4419
4419
|
};
|
|
4420
4420
|
default:
|
|
4421
4421
|
return {
|
|
4422
4422
|
type: "xxx",
|
|
4423
|
-
content: F(
|
|
4423
|
+
content: F(ne || []),
|
|
4424
4424
|
value: ""
|
|
4425
4425
|
};
|
|
4426
4426
|
}
|
|
@@ -4436,22 +4436,22 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4436
4436
|
isButtonRow: !0,
|
|
4437
4437
|
isEdit: !0,
|
|
4438
4438
|
isStartJustify: !0
|
|
4439
|
-
},
|
|
4439
|
+
}, G = {
|
|
4440
4440
|
formContent: "rowContents",
|
|
4441
4441
|
enableWrap: "isEnableWrap",
|
|
4442
4442
|
formButton: "buttonValue"
|
|
4443
4443
|
};
|
|
4444
|
-
return A.forEach((B,
|
|
4444
|
+
return A.forEach((B, Z) => {
|
|
4445
4445
|
if (!B || typeof B != "object") {
|
|
4446
|
-
console.warn(`Invalid config at index ${
|
|
4446
|
+
console.warn(`Invalid config at index ${Z}:`, B);
|
|
4447
4447
|
return;
|
|
4448
4448
|
}
|
|
4449
|
-
const { key:
|
|
4450
|
-
if (!
|
|
4451
|
-
console.warn(`Unknown Form config key: ${
|
|
4449
|
+
const { key: ne, contents: K } = B, k = G[ne];
|
|
4450
|
+
if (!k) {
|
|
4451
|
+
console.warn(`Unknown Form config key: ${ne}`);
|
|
4452
4452
|
return;
|
|
4453
4453
|
}
|
|
4454
|
-
|
|
4454
|
+
ne === "enableWrap" ? u[k] = !!K : u[k] = Array.isArray(K) ? K : [];
|
|
4455
4455
|
}), u;
|
|
4456
4456
|
}, w = (A) => {
|
|
4457
4457
|
const u = {
|
|
@@ -4466,21 +4466,21 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4466
4466
|
isShowEdit: !0,
|
|
4467
4467
|
isMoveColumn: !0,
|
|
4468
4468
|
isShowDelete: !0
|
|
4469
|
-
},
|
|
4469
|
+
}, G = {
|
|
4470
4470
|
header: "columns",
|
|
4471
4471
|
tableContents: "tableData"
|
|
4472
4472
|
};
|
|
4473
|
-
return A.forEach((B,
|
|
4473
|
+
return A.forEach((B, Z) => {
|
|
4474
4474
|
if (!B || typeof B != "object") {
|
|
4475
|
-
console.warn(`Invalid config at index ${
|
|
4475
|
+
console.warn(`Invalid config at index ${Z}:`, B);
|
|
4476
4476
|
return;
|
|
4477
4477
|
}
|
|
4478
|
-
const { key:
|
|
4479
|
-
if (!
|
|
4480
|
-
console.warn(`Unknown Table config key: ${
|
|
4478
|
+
const { key: ne, contents: K } = B, k = G[ne];
|
|
4479
|
+
if (!k) {
|
|
4480
|
+
console.warn(`Unknown Table config key: ${ne}`);
|
|
4481
4481
|
return;
|
|
4482
4482
|
}
|
|
4483
|
-
u[
|
|
4483
|
+
u[k] = Array.isArray(K) ? K : [];
|
|
4484
4484
|
}), u;
|
|
4485
4485
|
}, F = (A) => (console.log("Default conversion logic - to be implemented"), {
|
|
4486
4486
|
originalData: A,
|
|
@@ -4499,58 +4499,58 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4499
4499
|
() => m.itemContents,
|
|
4500
4500
|
(A) => {
|
|
4501
4501
|
if (A && A.length > 0) {
|
|
4502
|
-
const u = A.find((
|
|
4503
|
-
u && u.contents && (n.value = u.contents.map((
|
|
4504
|
-
title:
|
|
4505
|
-
value:
|
|
4506
|
-
label:
|
|
4507
|
-
children:
|
|
4508
|
-
id:
|
|
4502
|
+
const u = A.find((G) => G.key === "stepList");
|
|
4503
|
+
u && u.contents && (n.value = u.contents.map((G) => ({
|
|
4504
|
+
title: G.title || "",
|
|
4505
|
+
value: G.value || G.title || "",
|
|
4506
|
+
label: G.label || G.title || "",
|
|
4507
|
+
children: G.children || [],
|
|
4508
|
+
id: G.id || c()
|
|
4509
4509
|
})));
|
|
4510
4510
|
}
|
|
4511
4511
|
},
|
|
4512
4512
|
{ immediate: !0, deep: !0 }
|
|
4513
4513
|
), (A, u) => {
|
|
4514
|
-
const
|
|
4515
|
-
return
|
|
4516
|
-
D("div",
|
|
4514
|
+
const G = Re("svg-icon"), B = Re("el-input"), Z = Re("el-form-item"), ne = Re("el-form");
|
|
4515
|
+
return Y(), _e("div", null, [
|
|
4516
|
+
D("div", vn, [
|
|
4517
4517
|
u[6] || (u[6] = D("h4", null, "标签页管理", -1)),
|
|
4518
4518
|
D("button", { onClick: be }, [
|
|
4519
|
-
|
|
4519
|
+
Q(G, {
|
|
4520
4520
|
name: "Plus",
|
|
4521
4521
|
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
4522
4522
|
}),
|
|
4523
4523
|
u[5] || (u[5] = Be(" 新增标签页 "))
|
|
4524
4524
|
])
|
|
4525
4525
|
]),
|
|
4526
|
-
D("div",
|
|
4527
|
-
(
|
|
4526
|
+
D("div", hn, [
|
|
4527
|
+
(Y(!0), _e(Ue, null, Ne(n.value, (K, k) => (Y(), _e("div", {
|
|
4528
4528
|
class: "tab-item",
|
|
4529
|
-
key:
|
|
4529
|
+
key: k
|
|
4530
4530
|
}, [
|
|
4531
|
-
D("span",
|
|
4532
|
-
D("div",
|
|
4531
|
+
D("span", mn, De(K.title), 1),
|
|
4532
|
+
D("div", yn, [
|
|
4533
4533
|
D("button", {
|
|
4534
|
-
onClick: (
|
|
4535
|
-
}, "修改标题", 8,
|
|
4534
|
+
onClick: (H) => C(k)
|
|
4535
|
+
}, "修改标题", 8, bn),
|
|
4536
4536
|
D("button", {
|
|
4537
|
-
onClick: (
|
|
4538
|
-
}, "布局调整", 8,
|
|
4537
|
+
onClick: (H) => h(k)
|
|
4538
|
+
}, "布局调整", 8, gn),
|
|
4539
4539
|
D("button", {
|
|
4540
|
-
onClick: (
|
|
4541
|
-
}, "删除", 8,
|
|
4540
|
+
onClick: (H) => I(k)
|
|
4541
|
+
}, "删除", 8, kn)
|
|
4542
4542
|
])
|
|
4543
4543
|
]))), 128))
|
|
4544
4544
|
]),
|
|
4545
|
-
|
|
4546
|
-
modelValue:
|
|
4547
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
4545
|
+
Q(el, {
|
|
4546
|
+
modelValue: O.value,
|
|
4547
|
+
"onUpdate:modelValue": u[2] || (u[2] = (K) => O.value = K),
|
|
4548
4548
|
title: $.value,
|
|
4549
|
-
onBeforeDestroy: u[3] || (u[3] = (
|
|
4549
|
+
onBeforeDestroy: u[3] || (u[3] = (K) => O.value = !1)
|
|
4550
4550
|
}, {
|
|
4551
4551
|
footer: he(() => [
|
|
4552
4552
|
D("button", {
|
|
4553
|
-
onClick: u[1] || (u[1] = (
|
|
4553
|
+
onClick: u[1] || (u[1] = (K) => O.value = !1)
|
|
4554
4554
|
}, "取消"),
|
|
4555
4555
|
D("button", {
|
|
4556
4556
|
type: "primary",
|
|
@@ -4558,19 +4558,19 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4558
4558
|
}, "确定")
|
|
4559
4559
|
]),
|
|
4560
4560
|
default: he(() => [
|
|
4561
|
-
|
|
4562
|
-
model:
|
|
4561
|
+
Q(ne, {
|
|
4562
|
+
model: _.value,
|
|
4563
4563
|
"label-width": "80px"
|
|
4564
4564
|
}, {
|
|
4565
4565
|
default: he(() => [
|
|
4566
|
-
|
|
4566
|
+
Q(Z, {
|
|
4567
4567
|
label: "标签名称",
|
|
4568
4568
|
required: ""
|
|
4569
4569
|
}, {
|
|
4570
4570
|
default: he(() => [
|
|
4571
|
-
|
|
4572
|
-
modelValue:
|
|
4573
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
4571
|
+
Q(B, {
|
|
4572
|
+
modelValue: _.value.title,
|
|
4573
|
+
"onUpdate:modelValue": u[0] || (u[0] = (K) => _.value.title = K),
|
|
4574
4574
|
placeholder: "请输入标签页名称"
|
|
4575
4575
|
}, null, 8, ["modelValue"])
|
|
4576
4576
|
]),
|
|
@@ -4582,46 +4582,46 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4582
4582
|
]),
|
|
4583
4583
|
_: 1
|
|
4584
4584
|
}, 8, ["modelValue", "title"]),
|
|
4585
|
-
|
|
4586
|
-
modelValue:
|
|
4587
|
-
"onUpdate:modelValue": u[4] || (u[4] = (
|
|
4585
|
+
Q(el, {
|
|
4586
|
+
modelValue: q.value,
|
|
4587
|
+
"onUpdate:modelValue": u[4] || (u[4] = (K) => q.value = K),
|
|
4588
4588
|
title: "布局调整",
|
|
4589
4589
|
fullScreen: "",
|
|
4590
4590
|
onBeforeDestroy: a
|
|
4591
4591
|
}, {
|
|
4592
4592
|
footer: he(() => [
|
|
4593
|
-
D("button", { onClick:
|
|
4593
|
+
D("button", { onClick: W }, "取消"),
|
|
4594
4594
|
D("button", { onClick: b }, "确定")
|
|
4595
4595
|
]),
|
|
4596
4596
|
default: he(() => [
|
|
4597
|
-
D("div",
|
|
4598
|
-
D("div",
|
|
4599
|
-
|
|
4600
|
-
D("div",
|
|
4597
|
+
D("div", _n, [
|
|
4598
|
+
D("div", Cn, [
|
|
4599
|
+
Q(Qo),
|
|
4600
|
+
D("div", wn, [
|
|
4601
4601
|
u[8] || (u[8] = D("h5", null, "添加已有组件", -1)),
|
|
4602
|
-
D("div",
|
|
4603
|
-
(
|
|
4604
|
-
key:
|
|
4602
|
+
D("div", Dn, [
|
|
4603
|
+
(Y(!0), _e(Ue, null, Ne(y.value, (K) => (Y(), _e("div", {
|
|
4604
|
+
key: K.id,
|
|
4605
4605
|
class: "component-item",
|
|
4606
|
-
onClick: (
|
|
4606
|
+
onClick: (k) => ye(K)
|
|
4607
4607
|
}, [
|
|
4608
|
-
D("div",
|
|
4609
|
-
D("span",
|
|
4610
|
-
D("span",
|
|
4608
|
+
D("div", xn, [
|
|
4609
|
+
D("span", Tn, De(oe(K.comp)), 1),
|
|
4610
|
+
D("span", An, De(K.name), 1)
|
|
4611
4611
|
]),
|
|
4612
4612
|
u[7] || (u[7] = D("button", { class: "add-btn" }, "添加", -1))
|
|
4613
|
-
], 8,
|
|
4613
|
+
], 8, In))), 128))
|
|
4614
4614
|
])
|
|
4615
4615
|
])
|
|
4616
4616
|
]),
|
|
4617
|
-
(
|
|
4617
|
+
(Y(), _e("div", {
|
|
4618
4618
|
class: "model-show",
|
|
4619
4619
|
key: A.innerWidth
|
|
4620
4620
|
}, [
|
|
4621
|
-
|
|
4621
|
+
Q(fn)
|
|
4622
4622
|
])),
|
|
4623
|
-
D("div",
|
|
4624
|
-
|
|
4623
|
+
D("div", En, [
|
|
4624
|
+
Q(cn)
|
|
4625
4625
|
])
|
|
4626
4626
|
])
|
|
4627
4627
|
]),
|
|
@@ -4630,7 +4630,7 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4630
4630
|
]);
|
|
4631
4631
|
};
|
|
4632
4632
|
}
|
|
4633
|
-
},
|
|
4633
|
+
}, $n = /* @__PURE__ */ We(Sn, [["__scopeId", "data-v-151936e8"]]), Bn = z([
|
|
4634
4634
|
{
|
|
4635
4635
|
name: "表格",
|
|
4636
4636
|
type: "table",
|
|
@@ -4679,43 +4679,43 @@ const xo = /* @__PURE__ */ We(Do, [["render", Io]]), To = { class: "module conte
|
|
|
4679
4679
|
comp: "Tabs",
|
|
4680
4680
|
icon: "Tabs"
|
|
4681
4681
|
}
|
|
4682
|
-
]),
|
|
4682
|
+
]), Fn = {
|
|
4683
4683
|
TABLE: ss,
|
|
4684
|
-
FORM:
|
|
4685
|
-
TABLEOPERATE:
|
|
4686
|
-
FORMOPERATE:
|
|
4687
|
-
FOLD:
|
|
4688
|
-
CALCULATOR:
|
|
4689
|
-
METHODBUTTON:
|
|
4690
|
-
AVATARUPLOAD:
|
|
4691
|
-
SIGNATURE:
|
|
4692
|
-
FORMTOP:
|
|
4693
|
-
STEP:
|
|
4694
|
-
STEPOPERATE:
|
|
4695
|
-
TIMELINE:
|
|
4696
|
-
TIMELINEOPERATE:
|
|
4697
|
-
FORMTOPOPERATE:
|
|
4698
|
-
SIGNATUREOPERATE:
|
|
4699
|
-
AVATARUPLOADOPERATE:
|
|
4700
|
-
TABS:
|
|
4701
|
-
TABSOPERATE:
|
|
4684
|
+
FORM: Ua,
|
|
4685
|
+
TABLEOPERATE: Fi,
|
|
4686
|
+
FORMOPERATE: Pa,
|
|
4687
|
+
FOLD: co,
|
|
4688
|
+
CALCULATOR: mo,
|
|
4689
|
+
METHODBUTTON: Do,
|
|
4690
|
+
AVATARUPLOAD: xs,
|
|
4691
|
+
SIGNATURE: Is,
|
|
4692
|
+
FORMTOP: Ua,
|
|
4693
|
+
STEP: Vo,
|
|
4694
|
+
STEPOPERATE: eo,
|
|
4695
|
+
TIMELINE: No,
|
|
4696
|
+
TIMELINEOPERATE: no,
|
|
4697
|
+
FORMTOPOPERATE: Pa,
|
|
4698
|
+
SIGNATUREOPERATE: Fo,
|
|
4699
|
+
AVATARUPLOADOPERATE: To,
|
|
4700
|
+
TABS: zo,
|
|
4701
|
+
TABSOPERATE: $n
|
|
4702
4702
|
// 添加其他组件...
|
|
4703
4703
|
};
|
|
4704
|
-
function
|
|
4705
|
-
return
|
|
4704
|
+
function Ia(r) {
|
|
4705
|
+
return Fn[r == null ? void 0 : r.toUpperCase()] || null;
|
|
4706
4706
|
}
|
|
4707
4707
|
export {
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4708
|
+
ra as a,
|
|
4709
|
+
Hn as b,
|
|
4710
|
+
qn as c,
|
|
4711
|
+
Jn as d,
|
|
4712
|
+
Gn as e,
|
|
4713
|
+
Xn as f,
|
|
4714
|
+
Ia as g,
|
|
4715
|
+
Qn as h,
|
|
4716
|
+
Es as i,
|
|
4717
|
+
Yn as j,
|
|
4718
4718
|
ga as k,
|
|
4719
|
-
|
|
4720
|
-
|
|
4719
|
+
_o as o,
|
|
4720
|
+
Bn as s
|
|
4721
4721
|
};
|