ss-component-new 1.1.621 → 1.1.624
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-cwNAtWkQ.js → index-B1An8Htq.js} +3 -3
- package/dist/{index-By4IZGWU.cjs → index-B1dHNcdB.cjs} +1 -1
- package/dist/{index-BdAqAS8j.cjs → index-B36T-VF_.cjs} +1 -1
- package/dist/{index-tyYdP21K.cjs → index-B4APtXxQ.cjs} +1 -1
- package/dist/{index-B4fU_Oqr.js → index-B5t2-ZF6.js} +1 -1
- package/dist/{index-DbxbzUiK.js → index-BHNh8h0b.js} +1 -1
- package/dist/{index-CMgvFfxY.js → index-Bf_MUmNJ.js} +2 -2
- package/dist/{index-B6QTa9We.cjs → index-BjqICyT4.cjs} +1 -1
- package/dist/{index-DnY817qu.cjs → index-BpdXzn_5.cjs} +1 -1
- package/dist/{index-CPeCOE_d.js → index-CCMMXMB1.js} +4107 -3957
- package/dist/{index-CMwn0ZEb.js → index-CHFTtzVa.js} +2 -2
- package/dist/{index-YTvm8Dyq.cjs → index-CKHYXDPm.cjs} +1 -1
- package/dist/{index-CW1zJWa7.cjs → index-CTmwu9TK.cjs} +1 -1
- package/dist/index-CW3mfGB1.cjs +1 -0
- package/dist/{index-kLzEx5xq.cjs → index-CZ5Km1gh.cjs} +1 -1
- package/dist/{index-DfQCPyug.js → index-CZ7TZZkY.js} +2 -2
- package/dist/{index-JuKGX07D.js → index-CcsATbPx.js} +1 -1
- package/dist/index-D5356qth.cjs +1 -0
- package/dist/{index-rBRZ7zGU.cjs → index-DD66d4qh.cjs} +1 -1
- package/dist/{index-CgHGkDUQ.js → index-DFYsmhwk.js} +2 -2
- package/dist/{index-Dmc9yBFD.cjs → index-DGsekK7m.cjs} +13 -13
- package/dist/{index-DE4qOxcb.cjs → index-DHI2fA2V.cjs} +1 -1
- package/dist/{index-CEcr_wVS.js → index-DQg2yjYX.js} +2 -2
- package/dist/{index-twApCU3A.js → index-DSdCQ_W0.js} +2 -2
- package/dist/{index-aptPIfv7.cjs → index-DTxA0aLx.cjs} +2 -2
- package/dist/{index-BS0NY42k.js → index-DeAB8zT4.js} +1 -1
- package/dist/{index-BLUSTZzG.js → index-DfzBGyQ0.js} +2 -2
- package/dist/{index-BFWDxfM0.js → index-DpxAyiaB.js} +4 -4
- package/dist/{index-Cz_YKerb.js → index-DwZm1s3k.js} +118 -120
- package/dist/{index-B6McL4Y5.cjs → index-DxblCBeX.cjs} +1 -1
- package/dist/{index-COcl6KL3.cjs → index-JoUULW-e.cjs} +1 -1
- package/dist/{index-DKoGXjoD.js → index-OAZCfMnP.js} +3 -3
- package/dist/{index-D1eHyt-Y.js → index-XEvHnysy.js} +665 -665
- package/dist/{index-CX298lYO.cjs → index-dfd8x3YP.cjs} +1 -1
- package/dist/{index-OUcbra1H.cjs → index-gnjMHl16.cjs} +1 -1
- package/dist/{index-DUyXqunV.js → index-nWJ2cGxt.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-BH9_Te0S.js → index.vue_vue_type_script_setup_true_lang-BhbHPZ34.js} +22 -22
- package/dist/{index.vue_vue_type_script_setup_true_lang-at_JPyg5.cjs → index.vue_vue_type_script_setup_true_lang-DoqHilMG.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BfNWM92-.cjs +1339 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-EGVEMSWV.js +62017 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DtoHG_C9.cjs → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-COKqoEa-.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-CHdL2mdi.js → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-KbQ9Rbrb.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_57a7854d_lang-CZvlVQ3K.js → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-CAQGQOWa.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_57a7854d_lang-BmbIlTnn.cjs → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-DZ-VOJA0.cjs} +1 -1
- package/dist/{main-MdhpVHXc.cjs → main-0xDyziYT.cjs} +1 -1
- package/dist/{main-DZAZF0E8.js → main-CMLGwMf_.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-BRkJrghm.cjs → threeModel-CSRasN3J.cjs} +1 -1
- package/dist/{threeModel-C2biL1qd.js → threeModel-rRoqc4B5.js} +1 -1
- package/package.json +3 -1
- package/dist/index-D5P_BYL7.cjs +0 -1
- package/dist/index-Noso3rqY.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Br0-XuvP.js +0 -52928
- package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CZZJYhO9.cjs +0 -1286
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { b as Ua, a as Ea, s as Ka } from "./index-
|
|
2
|
-
import { ref as
|
|
1
|
+
import { b as Ua, a as Ea, s as Ka } from "./index-DpxAyiaB.js";
|
|
2
|
+
import { ref as M, watch as Ne, createElementBlock as fe, openBlock as ee, createVNode as G, createBlock as Se, createCommentVNode as Ye, resolveComponent as Be, Fragment as Te, renderList as Oe, createElementVNode as x, toDisplayString as ke, withCtx as ce, createTextVNode as Ee, defineComponent as yl, reactive as la, resolveDynamicComponent as Kl, unref as $a, computed as aa, renderSlot as Wl, createSlots as Wa, mergeProps as za, normalizeStyle as Ma, withModifiers as Nl } from "vue";
|
|
3
3
|
import { bR as Ba, p as Ze, c as l, d as zl, s as ol, E as ll, u as Ja, g as Ul, bO as Ca, bM as wa, bN as Ga } from "./menu-wif0xsml.js";
|
|
4
|
-
import { e as Ke, f as Ha, s as Je, h as Ta, a as qa, i as Qa, j as Xa, b as Ya } from "./index-
|
|
5
|
-
import { F as Da, u as Za, I as il, v as es, w as Ve, x as kl, y as sl, z as ml, A as Ql, g as hl, B as ls, C as as, D as ss, E as is, G as ns, H as Aa, K as os, L as us, M as rs } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
+
import { e as Ke, f as Ha, s as Je, h as Ta, a as qa, i as Qa, j as Xa, b as Ya } from "./index-CCMMXMB1.js";
|
|
5
|
+
import { F as Da, u as Za, I as il, v as es, w as Ve, x as kl, y as sl, z as ml, A as Ql, g as hl, B as ls, C as as, D as ss, E as is, G as ns, H as Aa, K as os, L as us, M as rs } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-EGVEMSWV.js";
|
|
6
6
|
import { _ as je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import { E as dl } from "./index-BHxSsIXo.js";
|
|
8
8
|
import { u as Sa } from "./modelComp-bhPfLPDx.js";
|
|
9
9
|
import { u as cs } from "./login-wUTWXQ7u.js";
|
|
10
|
-
import { s as ts, a as ds } from "./index-
|
|
10
|
+
import { s as ts, a as ds } from "./index-CHFTtzVa.js";
|
|
11
11
|
import ps from "./index-CZtXRS3l.js";
|
|
12
12
|
const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
13
13
|
state: () => ({
|
|
@@ -38,7 +38,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
38
38
|
},
|
|
39
39
|
emits: ["change", "contentChange"],
|
|
40
40
|
setup(p, { emit: k }) {
|
|
41
|
-
const n = p, s = k, f =
|
|
41
|
+
const n = p, s = k, f = M([]), F = M(!1), P = M(!1), w = M([]), R = M(), N = Ua(Ze), S = hs(Ze), X = M(!1), Y = M(), pe = async (m) => {
|
|
42
42
|
var c, h, a, d, _, O, T, ne, K, oe;
|
|
43
43
|
let W = [];
|
|
44
44
|
if ((c = m == null ? void 0 : m.toString()) != null && c.includes(".stl") || (h = m == null ? void 0 : m.toString()) != null && h.includes(".STL") || (a = m == null ? void 0 : m.toString()) != null && a.includes(".obj") || (d = m == null ? void 0 : m.toString()) != null && d.includes(".mtl") || (_ = m == null ? void 0 : m.toString()) != null && _.includes(".urdf")) {
|
|
@@ -51,14 +51,14 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
51
51
|
const o = new Blob([B.blob], {
|
|
52
52
|
type: "application/octet-stream;charset=UTF-8"
|
|
53
53
|
});
|
|
54
|
-
let I = URL.createObjectURL(o),
|
|
54
|
+
let I = URL.createObjectURL(o), J = "";
|
|
55
55
|
(ne = m == null ? void 0 : m.split("/")) == null || ne.forEach((L, u) => {
|
|
56
56
|
var b;
|
|
57
|
-
u === ((b = m == null ? void 0 : m.split("/")) == null ? void 0 : b.length) - 1 && (
|
|
58
|
-
}), (K = B.blob) != null && K.includes(".stl") && (
|
|
59
|
-
name:
|
|
57
|
+
u === ((b = m == null ? void 0 : m.split("/")) == null ? void 0 : b.length) - 1 && (J = L);
|
|
58
|
+
}), (K = B.blob) != null && K.includes(".stl") && (J = (J == null ? void 0 : J.replaceAll(">", "")) + ".urdf"), R.value = [{
|
|
59
|
+
name: J,
|
|
60
60
|
blobUrl: I
|
|
61
|
-
}],
|
|
61
|
+
}], P.value = !0;
|
|
62
62
|
}
|
|
63
63
|
} else {
|
|
64
64
|
const i = await zl.get(m, {
|
|
@@ -70,17 +70,17 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
70
70
|
type: "application/octet-stream;charset=UTF-8"
|
|
71
71
|
});
|
|
72
72
|
let B = URL.createObjectURL(E), o = "";
|
|
73
|
-
(oe = m == null ? void 0 : m.split("/")) == null || oe.forEach((I,
|
|
73
|
+
(oe = m == null ? void 0 : m.split("/")) == null || oe.forEach((I, J) => {
|
|
74
74
|
var L;
|
|
75
|
-
|
|
75
|
+
J === ((L = m == null ? void 0 : m.split("/")) == null ? void 0 : L.length) - 1 && (o = I);
|
|
76
76
|
}), R.value = [{
|
|
77
77
|
name: o,
|
|
78
78
|
blobUrl: B
|
|
79
|
-
}],
|
|
79
|
+
}], P.value = !0;
|
|
80
80
|
}
|
|
81
81
|
(W == null ? void 0 : W.length) > 0 && S.setBlobUrls(W);
|
|
82
82
|
}, ue = () => {
|
|
83
|
-
|
|
83
|
+
P.value = !1;
|
|
84
84
|
}, de = (m) => {
|
|
85
85
|
var d, _, O, T;
|
|
86
86
|
const W = (_ = (d = l(n.itemData)) == null ? void 0 : d.find((ne) => (ne == null ? void 0 : ne.key) === "formContent")) == null ? void 0 : _.contents, c = l(m.content);
|
|
@@ -100,14 +100,14 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
100
100
|
const W = l(n.itemData), c = W == null ? void 0 : W.map((T) => {
|
|
101
101
|
var ne;
|
|
102
102
|
return (T == null ? void 0 : T.key) === "formContent" && ((ne = T.contents) == null || ne.map((K, oe) => {
|
|
103
|
-
var i, E, B, o, I,
|
|
104
|
-
return K.type = K != null && K.type ? K.type : (o = (B = (E = (i = K == null ? void 0 : K.key) == null ? void 0 : i.split("$")) == null ? void 0 : E[1]) == null ? void 0 : B.split("(")) != null && o[0] ? (
|
|
105
|
-
var
|
|
106
|
-
return (
|
|
107
|
-
})) == null ? void 0 :
|
|
108
|
-
label:
|
|
109
|
-
value:
|
|
110
|
-
})) : [], (t = K == null ? void 0 : K.key) != null && t.includes("$") && (K.key = (g = (D = K == null ? void 0 : K.key) == null ? void 0 : D.split("$")) == null ? void 0 : g[0]), K.value = (
|
|
103
|
+
var i, E, B, o, I, J, L, u, b, $, Q, me, re, t, D, g, Z;
|
|
104
|
+
return K.type = K != null && K.type ? K.type : (o = (B = (E = (i = K == null ? void 0 : K.key) == null ? void 0 : i.split("$")) == null ? void 0 : E[1]) == null ? void 0 : B.split("(")) != null && o[0] ? (J = (I = Da) == null ? void 0 : I.find((U) => {
|
|
105
|
+
var he, le, ae, te;
|
|
106
|
+
return (U == null ? void 0 : U.key) === ((te = (ae = (le = (he = K == null ? void 0 : K.key) == null ? void 0 : he.split("$")) == null ? void 0 : le[1]) == null ? void 0 : ae.split("(")) == null ? void 0 : te[0]);
|
|
107
|
+
})) == null ? void 0 : J.value : "Input", K.options = K != null && K.options ? K.options : ((b = (u = (L = K == null ? void 0 : K.key) == null ? void 0 : L.split("$")) == null ? void 0 : u[1]) == null ? void 0 : b.length) > 0 ? (re = (me = fs((Q = ($ = K == null ? void 0 : K.key) == null ? void 0 : $.split("$")) == null ? void 0 : Q[1])) == null ? void 0 : me.split(",")) == null ? void 0 : re.map((U) => ({
|
|
108
|
+
label: U,
|
|
109
|
+
value: U
|
|
110
|
+
})) : [], (t = K == null ? void 0 : K.key) != null && t.includes("$") && (K.key = (g = (D = K == null ? void 0 : K.key) == null ? void 0 : D.split("$")) == null ? void 0 : g[0]), K.value = (Z = Object.values(m)) == null ? void 0 : Z[oe], K;
|
|
111
111
|
})), T;
|
|
112
112
|
});
|
|
113
113
|
let h = [], a = [];
|
|
@@ -148,50 +148,48 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
148
148
|
return Ne(
|
|
149
149
|
() => n.itemData,
|
|
150
150
|
async () => {
|
|
151
|
-
var d, _, O, T, ne, K, oe, i, E, B, o, I,
|
|
151
|
+
var d, _, O, T, ne, K, oe, i, E, B, o, I, J, L;
|
|
152
152
|
const m = (d = n.itemData) == null ? void 0 : d.find((u) => (u == null ? void 0 : u.key) === "formContent"), W = (_ = l(n.itemData)) == null ? void 0 : _.find((u) => (u == null ? void 0 : u.key) === "formButton"), c = (O = l(n.itemData)) == null ? void 0 : O.find((u) => (u == null ? void 0 : u.key) === "formFlex"), h = (T = l(n.itemData)) == null ? void 0 : T.find((u) => (u == null ? void 0 : u.key) === "formWrap"), a = (ne = l(n.itemData)) == null ? void 0 : ne.find((u) => (u == null ? void 0 : u.key) === "enableWrap");
|
|
153
153
|
if ((h == null ? void 0 : h.contents) === "纵向" ? F.value = !1 : F.value = !0, X.value = (a == null ? void 0 : a.contents) === void 0 ? !1 : a == null ? void 0 : a.contents, Y.value = typeof (c == null ? void 0 : c.contents) != "boolean" ? !(!(c != null && c.contents) === "" || ((K = c == null ? void 0 : c.contents) == null ? void 0 : K.toUpperCase()) === "VERTICAL") : c == null ? void 0 : c.contents, ((oe = m == null ? void 0 : m.contents) == null ? void 0 : oe.length) > 0 && Array.isArray(m == null ? void 0 : m.contents)) {
|
|
154
154
|
const u = await ((i = m == null ? void 0 : m.contents) == null ? void 0 : i.map(async (t, D) => {
|
|
155
|
-
var
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
value: Ce
|
|
163
|
-
})));
|
|
164
|
-
}
|
|
165
|
-
let le = [];
|
|
166
|
-
t != null && t.contents && !Array.isArray(t == null ? void 0 : t.contents) && (le = (e = (G = t == null ? void 0 : t.contents) == null ? void 0 : G.split(",")) == null ? void 0 : e.map((ge) => ({
|
|
167
|
-
label: ge,
|
|
168
|
-
value: ge
|
|
155
|
+
var te, we, ye, H, e, r, y, v, C, z, se, V, q;
|
|
156
|
+
let g = (t == null ? void 0 : t.label) ?? (t == null ? void 0 : t.key) ?? "", Z = (t == null ? void 0 : t.type) ?? "", U = (t == null ? void 0 : t.options) ?? [];
|
|
157
|
+
if ((te = t == null ? void 0 : t.key) != null && te.includes("$") && (g = (we = l(t == null ? void 0 : t.key).split("$")) == null ? void 0 : we[0], ((H = (ye = l(t == null ? void 0 : t.key).split("$")) == null ? void 0 : ye[1]) == null ? void 0 : H.length) > 0)) {
|
|
158
|
+
const [ge, _e] = (r = (e = l(t == null ? void 0 : t.key).split("$")) == null ? void 0 : e[1]) == null ? void 0 : r.split(/[()]/);
|
|
159
|
+
Z = ((y = Da.find((Ce) => (Ce == null ? void 0 : Ce.key) === ge)) == null ? void 0 : y.value) ?? "", ((v = _e == null ? void 0 : _e.split(",")) == null ? void 0 : v.length) > 0 && (U = (C = _e == null ? void 0 : _e.split(",")) == null ? void 0 : C.map((Ce) => ({
|
|
160
|
+
label: Ce,
|
|
161
|
+
value: Ce
|
|
169
162
|
})));
|
|
170
|
-
let V = await Za((r = l(t)) == null ? void 0 : r.optionUrl);
|
|
171
|
-
return {
|
|
172
|
-
label: v ?? "",
|
|
173
|
-
name: "t" + D,
|
|
174
|
-
type: V !== void 0 || C === "" ? "Input" : C,
|
|
175
|
-
value: V !== void 0 && !(t != null && t.value) ? V : t != null && t.originalContent && (t == null ? void 0 : t.originalContent) !== "" ? t.originalContent : t != null && t.value ? t.value : (N == null ? void 0 : N.length) > 0 ? (y = N == null ? void 0 : N[0]) == null ? void 0 : y.value : (t == null ? void 0 : t.value) ?? "",
|
|
176
|
-
id: (t == null ? void 0 : t.id) ?? D,
|
|
177
|
-
contents: (le == null ? void 0 : le.length) > 0 ? le : N ?? [],
|
|
178
|
-
width: (t == null ? void 0 : t.width) ?? 1,
|
|
179
|
-
config: t == null ? void 0 : t.config,
|
|
180
|
-
optionUrl: (t == null ? void 0 : t.optionUrl) ?? t,
|
|
181
|
-
isFormColHidden: t == null ? void 0 : t.isFormColHidden
|
|
182
|
-
};
|
|
183
163
|
}
|
|
184
|
-
|
|
164
|
+
let he = [];
|
|
165
|
+
t != null && t.contents && !Array.isArray(t == null ? void 0 : t.contents) && (he = (se = (z = t == null ? void 0 : t.contents) == null ? void 0 : z.split(",")) == null ? void 0 : se.map((ge) => ({
|
|
166
|
+
label: ge,
|
|
167
|
+
value: ge
|
|
168
|
+
})));
|
|
169
|
+
let le = await Za((V = l(t)) == null ? void 0 : V.optionUrl);
|
|
170
|
+
return {
|
|
171
|
+
label: g ?? "",
|
|
172
|
+
name: "t" + D,
|
|
173
|
+
type: le !== void 0 || Z === "" ? "Input" : Z,
|
|
174
|
+
value: le !== void 0 && !(t != null && t.value) ? le : t != null && t.originalContent && (t == null ? void 0 : t.originalContent) !== "" ? t.originalContent : t != null && t.value ? t.value : (U == null ? void 0 : U.length) > 0 ? (q = U == null ? void 0 : U[0]) == null ? void 0 : q.value : (t == null ? void 0 : t.value) ?? "",
|
|
175
|
+
id: (t == null ? void 0 : t.id) ?? D,
|
|
176
|
+
contents: (he == null ? void 0 : he.length) > 0 ? he : U ?? [],
|
|
177
|
+
width: (t == null ? void 0 : t.width) ?? 1,
|
|
178
|
+
config: t == null ? void 0 : t.config,
|
|
179
|
+
optionUrl: (t == null ? void 0 : t.optionUrl) ?? t,
|
|
180
|
+
isFormColHidden: t == null ? void 0 : t.isFormColHidden
|
|
181
|
+
};
|
|
182
|
+
})), b = await Promise.all(u), $ = b == null ? void 0 : b.map((t) => t == null ? void 0 : t.value);
|
|
185
183
|
let Q = "";
|
|
186
184
|
$ == null || $.forEach((t) => {
|
|
187
185
|
t !== "" && t !== void 0 && (Q = Q === "" ? t : Q + "/" + t);
|
|
188
|
-
}),
|
|
186
|
+
}), N.setSelectArray($), N.setSelectString(Q), f.value = (E = l(b)) == null ? void 0 : E.map((t) => (t != null && t.value && il(t == null ? void 0 : t.value) && Array.isArray(JSON.parse(t == null ? void 0 : t.value)) && (t.value = JSON.parse(t.value)), t));
|
|
189
187
|
let me = [], re = [];
|
|
190
188
|
if ((B = l(f.value)) == null || B.forEach((t) => {
|
|
191
189
|
var D;
|
|
192
190
|
Array.isArray(t == null ? void 0 : t.value) && ((D = t == null ? void 0 : t.value) != null && D.find((g) => {
|
|
193
|
-
var
|
|
194
|
-
return (
|
|
191
|
+
var Z;
|
|
192
|
+
return (Z = g == null ? void 0 : g.url) == null ? void 0 : Z.includes(".obj");
|
|
195
193
|
})) && (re = t == null ? void 0 : t.value);
|
|
196
194
|
}), (re == null ? void 0 : re.length) > 0) {
|
|
197
195
|
const t = (o = l(re)) == null ? void 0 : o.filter((D) => {
|
|
@@ -199,35 +197,35 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
199
197
|
return (g = D == null ? void 0 : D.url) == null ? void 0 : g.includes(".obj");
|
|
200
198
|
});
|
|
201
199
|
t == null || t.forEach((D) => {
|
|
202
|
-
var
|
|
203
|
-
const g = (
|
|
200
|
+
var Z, U, he, le;
|
|
201
|
+
const g = (Z = re == null ? void 0 : re.filter((ae) => {
|
|
204
202
|
var te;
|
|
205
203
|
return (ae == null ? void 0 : ae.name) === (D == null ? void 0 : D.name) && ((te = ae == null ? void 0 : ae.url) == null ? void 0 : te.includes(".mtl"));
|
|
206
|
-
})) == null ? void 0 :
|
|
204
|
+
})) == null ? void 0 : Z.map((ae) => ae == null ? void 0 : ae.url);
|
|
207
205
|
me.push({
|
|
208
206
|
objUrl: D == null ? void 0 : D.url,
|
|
209
|
-
mtlUrls: ((
|
|
207
|
+
mtlUrls: ((U = re == null ? void 0 : re.filter((ae) => {
|
|
210
208
|
var te;
|
|
211
209
|
return (ae == null ? void 0 : ae.name) === (D == null ? void 0 : D.name) && ((te = ae == null ? void 0 : ae.url) == null ? void 0 : te.includes(".mtl"));
|
|
212
|
-
})) == null ? void 0 :
|
|
210
|
+
})) == null ? void 0 : U.length) === 1 ? (le = (he = re == null ? void 0 : re.filter((ae) => {
|
|
213
211
|
var te;
|
|
214
212
|
return (ae == null ? void 0 : ae.name) === (D == null ? void 0 : D.name) && ((te = ae == null ? void 0 : ae.url) == null ? void 0 : te.includes(".mtl"));
|
|
215
|
-
})) == null ? void 0 :
|
|
213
|
+
})) == null ? void 0 : he[0]) == null ? void 0 : le.url : g
|
|
216
214
|
});
|
|
217
215
|
}), S.setObjUrl(me);
|
|
218
216
|
}
|
|
219
217
|
(I = l(f.value)) == null || I.forEach((t) => {
|
|
220
|
-
var D, g,
|
|
221
|
-
if ((g = (D = t == null ? void 0 : t.value) == null ? void 0 : D.toString()) != null && g.includes(".stl") || (
|
|
218
|
+
var D, g, Z, U, he, le, ae, te, we, ye, H, e, r;
|
|
219
|
+
if ((g = (D = t == null ? void 0 : t.value) == null ? void 0 : D.toString()) != null && g.includes(".stl") || (U = (Z = t == null ? void 0 : t.value) == null ? void 0 : Z.toString()) != null && U.includes(".STL") || (le = (he = t == null ? void 0 : t.value) == null ? void 0 : he.toString()) != null && le.includes(".obj") || (te = (ae = t == null ? void 0 : t.value) == null ? void 0 : ae.toString()) != null && te.includes(".mtl") || (ye = (we = t == null ? void 0 : t.value) == null ? void 0 : we.toString()) != null && ye.includes(".urdf")) {
|
|
222
220
|
let y = {}, v = [], C;
|
|
223
|
-
Array.isArray(t == null ? void 0 : t.value) ? C = t == null ? void 0 : t.value : C = (
|
|
224
|
-
|
|
221
|
+
Array.isArray(t == null ? void 0 : t.value) ? C = t == null ? void 0 : t.value : C = (H = t == null ? void 0 : t.value) == null ? void 0 : H.split(","), C == null || C.forEach((z) => {
|
|
222
|
+
z.includes(".mtl") ? v.push(z) : y.blob = y.blob === "undefined" ? z : y.blob + "," + z;
|
|
225
223
|
}), (v == null ? void 0 : v.length) > 0 && (y.mtlBlobs = v), (r = (e = Object.values(y)) == null ? void 0 : e[0]) != null && r.includes("http:");
|
|
226
224
|
}
|
|
227
225
|
});
|
|
228
226
|
} else
|
|
229
227
|
f.value = [];
|
|
230
|
-
if (((
|
|
228
|
+
if (((J = W == null ? void 0 : W.contents) == null ? void 0 : J.length) > 0) {
|
|
231
229
|
const u = [];
|
|
232
230
|
(L = W == null ? void 0 : W.contents) == null || L.forEach((b, $) => {
|
|
233
231
|
(b == null ? void 0 : b.label) !== "" && u.push({
|
|
@@ -241,8 +239,8 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
241
239
|
w.value = [];
|
|
242
240
|
},
|
|
243
241
|
{ deep: !0, immediate: !0 }
|
|
244
|
-
), (m, W) => (
|
|
245
|
-
|
|
242
|
+
), (m, W) => (ee(), fe("div", vs, [
|
|
243
|
+
G(Ke, {
|
|
246
244
|
rowContents: f.value,
|
|
247
245
|
formRules: p.formRules,
|
|
248
246
|
buttonValue: w.value,
|
|
@@ -253,14 +251,14 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
253
251
|
isButtonRow: F.value,
|
|
254
252
|
onPreview: pe
|
|
255
253
|
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEnableWrap", "isButtonRow"]),
|
|
256
|
-
|
|
254
|
+
P.value ? (ee(), Se(Ha, {
|
|
257
255
|
key: 0,
|
|
258
256
|
fileDataList: R.value,
|
|
259
257
|
onDestroy: ue
|
|
260
258
|
}, null, 8, ["fileDataList"])) : Ye("", !0)
|
|
261
259
|
]));
|
|
262
260
|
}
|
|
263
|
-
}, Ia = /* @__PURE__ */ je(ms, [["__scopeId", "data-v-
|
|
261
|
+
}, Ia = /* @__PURE__ */ je(ms, [["__scopeId", "data-v-5edfdd25"]]), Ml = M(0), Fa = (p) => {
|
|
264
262
|
var k;
|
|
265
263
|
return !p || (p == null ? void 0 : p.length) === 0 ? [] : (k = l(p)) == null ? void 0 : k.map((s) => (Ml.value++, s = {
|
|
266
264
|
label: (s == null ? void 0 : s.label) ?? "",
|
|
@@ -418,15 +416,15 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
418
416
|
},
|
|
419
417
|
emits: ["fixChange", "deleteChange"],
|
|
420
418
|
setup(p, { emit: k }) {
|
|
421
|
-
const n = p, s = k, f =
|
|
422
|
-
|
|
423
|
-
const R =
|
|
419
|
+
const n = p, s = k, f = M(!1), F = M(""), P = Ea(Ze), { tableIndex: w } = ol(P);
|
|
420
|
+
M(0);
|
|
421
|
+
const R = M(""), N = M([]), S = M([]), X = (c) => {
|
|
424
422
|
var a;
|
|
425
423
|
f.value = !0;
|
|
426
424
|
let h = [];
|
|
427
425
|
Ae == null || Ae.forEach((d) => {
|
|
428
426
|
let _ = l(w.value) + 1;
|
|
429
|
-
|
|
427
|
+
P.setTableIndex(_), h.push({
|
|
430
428
|
label: d == null ? void 0 : d.label,
|
|
431
429
|
name: d == null ? void 0 : d.label,
|
|
432
430
|
type: d.type,
|
|
@@ -437,7 +435,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
437
435
|
}), c != null && c.children && ((a = c == null ? void 0 : c.children) == null ? void 0 : a.length) > 0 && h.push({
|
|
438
436
|
children: c == null ? void 0 : c.children,
|
|
439
437
|
isFormColHidden: !0
|
|
440
|
-
}), R.value = c == null ? void 0 : c.id,
|
|
438
|
+
}), R.value = c == null ? void 0 : c.id, N.value = h, S.value = h;
|
|
441
439
|
}, Y = (c) => {
|
|
442
440
|
s("fixChange", l(c));
|
|
443
441
|
}, pe = (c) => {
|
|
@@ -447,7 +445,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
447
445
|
let h = [];
|
|
448
446
|
Ae == null || Ae.forEach((a) => {
|
|
449
447
|
let d = l(w.value) + 1;
|
|
450
|
-
|
|
448
|
+
P.setTableIndex(d), h.push({
|
|
451
449
|
label: a == null ? void 0 : a.label,
|
|
452
450
|
name: a == null ? void 0 : a.label,
|
|
453
451
|
type: a.type,
|
|
@@ -455,16 +453,16 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
455
453
|
id: w.value,
|
|
456
454
|
contents: a == null ? void 0 : a.options
|
|
457
455
|
});
|
|
458
|
-
}), F.value = c == null ? void 0 : c.id,
|
|
456
|
+
}), F.value = c == null ? void 0 : c.id, N.value = h, S.value = h;
|
|
459
457
|
}, de = (c) => {
|
|
460
458
|
let h = l(S.value);
|
|
461
459
|
h = h == null ? void 0 : h.map((a) => (a.children || (a.value = c == null ? void 0 : c[a.name]), a)), S.value = h;
|
|
462
460
|
}, A = () => {
|
|
463
461
|
var h, a;
|
|
464
|
-
|
|
462
|
+
N.value = S.value;
|
|
465
463
|
let c = {};
|
|
466
464
|
if (R.value !== "")
|
|
467
|
-
c.id = R.value, (h =
|
|
465
|
+
c.id = R.value, (h = N.value) == null || h.forEach((d) => {
|
|
468
466
|
const _ = Ae == null ? void 0 : Ae.find((O) => (O == null ? void 0 : O.label) === (d == null ? void 0 : d.label));
|
|
469
467
|
_ ? c[_.key] = d.value : d != null && d.children && d.children.length > 0 && (c.children = d.children);
|
|
470
468
|
}), f.value = !1, s("fixChange", {
|
|
@@ -474,7 +472,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
474
472
|
});
|
|
475
473
|
else {
|
|
476
474
|
let d = l(w.value) + 1;
|
|
477
|
-
|
|
475
|
+
P.setTableIndex(d), c.id = "id" + w.value, (a = N.value) == null || a.forEach((_) => {
|
|
478
476
|
const O = Ae == null ? void 0 : Ae.find((T) => (T == null ? void 0 : T.label) === (_ == null ? void 0 : _.label));
|
|
479
477
|
O ? c[O.key] = _.value : _ != null && _.children && _.children.length > 0 && (c.children = _.children);
|
|
480
478
|
}), f.value = !1, s("fixChange", {
|
|
@@ -483,9 +481,9 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
483
481
|
type: "add"
|
|
484
482
|
});
|
|
485
483
|
}
|
|
486
|
-
R.value = "",
|
|
484
|
+
R.value = "", N.value = [], S.value = [];
|
|
487
485
|
}, m = () => {
|
|
488
|
-
f.value = !1, R.value = "", F.value = "",
|
|
486
|
+
f.value = !1, R.value = "", F.value = "", N.value = [], S.value = [];
|
|
489
487
|
}, W = (c) => {
|
|
490
488
|
dl.confirm("是否确认要删除", "", {
|
|
491
489
|
confirmButtonText: "确认",
|
|
@@ -503,24 +501,24 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
503
501
|
};
|
|
504
502
|
return (c, h) => {
|
|
505
503
|
const a = Be("svg-icon");
|
|
506
|
-
return
|
|
507
|
-
(
|
|
504
|
+
return ee(), fe("div", ks, [
|
|
505
|
+
(ee(!0), fe(Te, null, Oe(n == null ? void 0 : n.tableChildContents, (d, _) => (ee(), fe("div", _s, [
|
|
508
506
|
x("div", Cs, [
|
|
509
507
|
x("div", ws, ke(d.label), 1),
|
|
510
508
|
x("div", Ds, [
|
|
511
|
-
|
|
509
|
+
G(a, {
|
|
512
510
|
name: "ChildAdd",
|
|
513
511
|
class: "svg-icon-content",
|
|
514
512
|
style: { width: "24px", height: "24px" },
|
|
515
513
|
onClick: (O) => ue(d)
|
|
516
514
|
}, null, 8, ["onClick"]),
|
|
517
|
-
|
|
515
|
+
G(a, {
|
|
518
516
|
name: "ChildFix",
|
|
519
517
|
class: "svg-icon-content",
|
|
520
518
|
style: { width: "24px", height: "24px" },
|
|
521
519
|
onClick: (O) => X(d)
|
|
522
520
|
}, null, 8, ["onClick"]),
|
|
523
|
-
|
|
521
|
+
G(a, {
|
|
524
522
|
name: "ChildDelete",
|
|
525
523
|
class: "svg-icon-content",
|
|
526
524
|
style: { width: "24px", height: "24px" },
|
|
@@ -528,24 +526,24 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
528
526
|
}, null, 8, ["onClick"])
|
|
529
527
|
])
|
|
530
528
|
]),
|
|
531
|
-
d != null && d.children && d.children.length > 0 ? (
|
|
532
|
-
|
|
529
|
+
d != null && d.children && d.children.length > 0 ? (ee(), fe("div", As, [
|
|
530
|
+
G(ja, {
|
|
533
531
|
tableChildContents: d == null ? void 0 : d.children,
|
|
534
532
|
onDeleteChange: pe,
|
|
535
533
|
onFixChange: Y
|
|
536
534
|
}, null, 8, ["tableChildContents"])
|
|
537
535
|
])) : Ye("", !0)
|
|
538
536
|
]))), 256)),
|
|
539
|
-
|
|
537
|
+
G(Je, {
|
|
540
538
|
visible: f.value,
|
|
541
539
|
onBeforeDestroy: m,
|
|
542
540
|
width: 840
|
|
543
541
|
}, {
|
|
544
542
|
default: ce(() => [
|
|
545
543
|
x("div", Is, [
|
|
546
|
-
(
|
|
547
|
-
rowContents:
|
|
548
|
-
key:
|
|
544
|
+
(ee(), Se(Ke, {
|
|
545
|
+
rowContents: N.value,
|
|
546
|
+
key: N.value,
|
|
549
547
|
isEnableWrap: !0,
|
|
550
548
|
onChange: de
|
|
551
549
|
}, null, 8, ["rowContents"]))
|
|
@@ -575,7 +573,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
575
573
|
},
|
|
576
574
|
emits: ["fixChange", "deleteChange"],
|
|
577
575
|
setup(p, { emit: k }) {
|
|
578
|
-
const n = p, s = k, f =
|
|
576
|
+
const n = p, s = k, f = M(!1), F = M(""), P = Ea(Ze), { tableIndex: w } = ol(P), R = M(""), N = M([]), S = M([]), X = (c) => {
|
|
579
577
|
s("fixChange", l(c));
|
|
580
578
|
}, Y = (c) => {
|
|
581
579
|
var a;
|
|
@@ -583,7 +581,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
583
581
|
let h = [];
|
|
584
582
|
Ae == null || Ae.forEach((d) => {
|
|
585
583
|
let _ = l(w.value) + 1;
|
|
586
|
-
|
|
584
|
+
P.setTableIndex(_), h.push({
|
|
587
585
|
label: d == null ? void 0 : d.label,
|
|
588
586
|
name: d == null ? void 0 : d.label,
|
|
589
587
|
type: d.type,
|
|
@@ -594,13 +592,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
594
592
|
}), c != null && c.children && ((a = c == null ? void 0 : c.children) == null ? void 0 : a.length) > 0 && h.push({
|
|
595
593
|
children: c == null ? void 0 : c.children,
|
|
596
594
|
isFormColHidden: !0
|
|
597
|
-
}), R.value = c == null ? void 0 : c.id,
|
|
595
|
+
}), R.value = c == null ? void 0 : c.id, N.value = h, S.value = h;
|
|
598
596
|
}, pe = (c) => {
|
|
599
597
|
f.value = !0;
|
|
600
598
|
let h = [];
|
|
601
599
|
Ae == null || Ae.forEach((a) => {
|
|
602
600
|
let d = l(w.value) + 1;
|
|
603
|
-
|
|
601
|
+
P.setTableIndex(d), h.push({
|
|
604
602
|
label: a == null ? void 0 : a.label,
|
|
605
603
|
name: a == null ? void 0 : a.label,
|
|
606
604
|
type: a.type,
|
|
@@ -608,16 +606,16 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
608
606
|
id: w.value,
|
|
609
607
|
contents: a == null ? void 0 : a.options
|
|
610
608
|
});
|
|
611
|
-
}), F.value = c == null ? void 0 : c.id,
|
|
609
|
+
}), F.value = c == null ? void 0 : c.id, N.value = h, S.value = h;
|
|
612
610
|
}, ue = (c) => {
|
|
613
611
|
let h = l(S.value);
|
|
614
612
|
h = h == null ? void 0 : h.map((a) => (a.children || (a.value = c == null ? void 0 : c[a.name]), a)), S.value = h;
|
|
615
613
|
}, de = () => {
|
|
616
614
|
var h, a;
|
|
617
|
-
|
|
615
|
+
N.value = S.value;
|
|
618
616
|
let c = {};
|
|
619
617
|
if (R.value !== "")
|
|
620
|
-
c.id = R.value, (h =
|
|
618
|
+
c.id = R.value, (h = N.value) == null || h.forEach((d) => {
|
|
621
619
|
const _ = Ae == null ? void 0 : Ae.find((O) => (O == null ? void 0 : O.label) === (d == null ? void 0 : d.label));
|
|
622
620
|
_ ? c[_.key] = d.value : d != null && d.children && d.children.length > 0 && (c.children = d.children);
|
|
623
621
|
}), f.value = !1, s("fixChange", {
|
|
@@ -627,7 +625,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
627
625
|
});
|
|
628
626
|
else {
|
|
629
627
|
let d = l(w.value) + 1;
|
|
630
|
-
|
|
628
|
+
P.setTableIndex(d), c.id = "idChild" + w.value, (a = N.value) == null || a.forEach((_) => {
|
|
631
629
|
const O = Ae == null ? void 0 : Ae.find((T) => (T == null ? void 0 : T.label) === (_ == null ? void 0 : _.label));
|
|
632
630
|
O ? c[O.key] = _.value : _ != null && _.children && _.children.length > 0 && (c.children = _.children);
|
|
633
631
|
}), f.value = !1, s("fixChange", {
|
|
@@ -636,9 +634,9 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
636
634
|
type: "add"
|
|
637
635
|
});
|
|
638
636
|
}
|
|
639
|
-
R.value = "",
|
|
637
|
+
R.value = "", N.value = [], S.value = [];
|
|
640
638
|
}, A = () => {
|
|
641
|
-
f.value = !1, R.value = "", F.value = "",
|
|
639
|
+
f.value = !1, R.value = "", F.value = "", N.value = [], S.value = [];
|
|
642
640
|
}, m = (c) => {
|
|
643
641
|
dl.confirm("是否确认要删除", "", {
|
|
644
642
|
confirmButtonText: "确认",
|
|
@@ -658,24 +656,24 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
658
656
|
};
|
|
659
657
|
return (c, h) => {
|
|
660
658
|
const a = Be("svg-icon"), d = Be("el-button");
|
|
661
|
-
return
|
|
662
|
-
(
|
|
659
|
+
return ee(), fe("div", $s, [
|
|
660
|
+
(ee(!0), fe(Te, null, Oe(n == null ? void 0 : n.tableChildContents, (_, O) => (ee(), fe("div", Bs, [
|
|
663
661
|
x("div", Ts, [
|
|
664
662
|
x("div", Ss, ke(_.label), 1),
|
|
665
663
|
x("div", Fs, [
|
|
666
|
-
|
|
664
|
+
G(a, {
|
|
667
665
|
name: "ChildAdd",
|
|
668
666
|
class: "svg-icon-content",
|
|
669
667
|
style: { width: "24px", height: "24px" },
|
|
670
668
|
onClick: (T) => pe(_)
|
|
671
669
|
}, null, 8, ["onClick"]),
|
|
672
|
-
|
|
670
|
+
G(a, {
|
|
673
671
|
name: "ChildFix",
|
|
674
672
|
class: "svg-icon-content",
|
|
675
673
|
style: { width: "24px", height: "24px" },
|
|
676
674
|
onClick: (T) => Y(_)
|
|
677
675
|
}, null, 8, ["onClick"]),
|
|
678
|
-
|
|
676
|
+
G(a, {
|
|
679
677
|
name: "ChildDelete",
|
|
680
678
|
class: "svg-icon-content",
|
|
681
679
|
style: { width: "24px", height: "24px" },
|
|
@@ -683,24 +681,24 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
683
681
|
}, null, 8, ["onClick"])
|
|
684
682
|
])
|
|
685
683
|
]),
|
|
686
|
-
_ != null && _.children && _.children.length > 0 ? (
|
|
687
|
-
|
|
684
|
+
_ != null && _.children && _.children.length > 0 ? (ee(), fe("div", Os, [
|
|
685
|
+
G(Es, {
|
|
688
686
|
tableChildContents: _ == null ? void 0 : _.children,
|
|
689
687
|
onDeleteChange: W,
|
|
690
688
|
onFixChange: X
|
|
691
689
|
}, null, 8, ["tableChildContents"])
|
|
692
690
|
])) : Ye("", !0)
|
|
693
691
|
]))), 256)),
|
|
694
|
-
|
|
692
|
+
G(Je, {
|
|
695
693
|
visible: f.value,
|
|
696
694
|
onBeforeDestroy: A,
|
|
697
695
|
width: 840
|
|
698
696
|
}, {
|
|
699
697
|
default: ce(() => [
|
|
700
698
|
x("div", Ls, [
|
|
701
|
-
(
|
|
702
|
-
rowContents:
|
|
703
|
-
key:
|
|
699
|
+
(ee(), Se(Ke, {
|
|
700
|
+
rowContents: N.value,
|
|
701
|
+
key: N.value,
|
|
704
702
|
isEnableWrap: !0,
|
|
705
703
|
onChange: ue
|
|
706
704
|
}, null, 8, ["rowContents"]))
|
|
@@ -708,7 +706,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
708
706
|
]),
|
|
709
707
|
footer: ce(() => [
|
|
710
708
|
x("div", Rs, [
|
|
711
|
-
|
|
709
|
+
G(d, {
|
|
712
710
|
onClick: A,
|
|
713
711
|
class: "cancel-button button",
|
|
714
712
|
id: "themeBorderButton"
|
|
@@ -719,7 +717,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
719
717
|
_: 1,
|
|
720
718
|
__: [0]
|
|
721
719
|
}),
|
|
722
|
-
|
|
720
|
+
G(d, {
|
|
723
721
|
class: "ok-button button",
|
|
724
722
|
onClick: de,
|
|
725
723
|
id: "themeButton"
|
|
@@ -751,7 +749,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
751
749
|
},
|
|
752
750
|
emits: ["change"],
|
|
753
751
|
setup(p, { emit: k }) {
|
|
754
|
-
const n = p, s = k, f =
|
|
752
|
+
const n = p, s = k, f = M([]), F = M(!1), P = M(!1), w = M([]), R = M(!1), N = M([]), S = M(!1), X = M([]), Y = M(""), pe = M(""), ue = M([]), de = M([]), A = M([]), m = M([]), W = M(!1), c = M([]), h = M([]), a = M(0), d = M([]), _ = M([]), O = M([]), T = () => {
|
|
755
753
|
W.value = !0;
|
|
756
754
|
let e = [];
|
|
757
755
|
cl == null || cl.forEach((r) => {
|
|
@@ -766,7 +764,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
766
764
|
}), c.value = e, h.value = e;
|
|
767
765
|
}, ne = () => {
|
|
768
766
|
var r, y, v;
|
|
769
|
-
|
|
767
|
+
P.value = !0;
|
|
770
768
|
let e = [];
|
|
771
769
|
(v = (y = (r = Ve) == null ? void 0 : r.find((C) => (C == null ? void 0 : C.key) === "Input")) == null ? void 0 : y.value) == null || v.forEach((C) => {
|
|
772
770
|
a.value++, e.push({
|
|
@@ -781,9 +779,9 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
781
779
|
}, K = (e) => {
|
|
782
780
|
e || (d.value = _.value);
|
|
783
781
|
}, oe = async (e) => {
|
|
784
|
-
var r, y, v, C,
|
|
782
|
+
var r, y, v, C, z, se, V, q, ge, _e, Ce, ve;
|
|
785
783
|
if ((e == null ? void 0 : e.类型) !== ((y = (r = _.value) == null ? void 0 : r.find((ie) => (ie == null ? void 0 : ie.label) === "类型")) == null ? void 0 : y.value)) {
|
|
786
|
-
let ie = [], Ie = await ((
|
|
784
|
+
let ie = [], Ie = await ((z = (C = (v = Ve) == null ? void 0 : v.find((be) => (be == null ? void 0 : be.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : C.value) == null ? void 0 : z.value) ? await ((_e = (ge = (q = Ve) == null ? void 0 : q.find((be) => (be == null ? void 0 : be.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : ge.value) == null ? void 0 : _e.value) : (V = (se = Ve) == null ? void 0 : se.find((be) => (be == null ? void 0 : be.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : V.value;
|
|
787
785
|
if (Ie == null || Ie.forEach((be) => {
|
|
788
786
|
a.value++, ie.push({
|
|
789
787
|
label: be == null ? void 0 : be.label,
|
|
@@ -800,7 +798,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
800
798
|
_.value = await sl(l(ie)), d.value = await sl(l(ie));
|
|
801
799
|
} else {
|
|
802
800
|
let ie = l(d.value);
|
|
803
|
-
if (ie = ie == null ? void 0 : ie.map((Ie) => (Ie.value = e == null ? void 0 : e[Ie.name], Ie)), e != null && e.菜单选项 && ((
|
|
801
|
+
if (ie = ie == null ? void 0 : ie.map((Ie) => (Ie.value = e == null ? void 0 : e[Ie.name], Ie)), e != null && e.菜单选项 && ((ve = e == null ? void 0 : e.菜单选项) == null ? void 0 : ve.length) > 0) {
|
|
804
802
|
const Ie = await kl(e == null ? void 0 : e.菜单选项);
|
|
805
803
|
ie = ie == null ? void 0 : ie.map((be) => ((be == null ? void 0 : be.name) === "组信息选项" && (be.contents = Ie), be));
|
|
806
804
|
}
|
|
@@ -809,22 +807,22 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
809
807
|
}, i = async (e) => {
|
|
810
808
|
await oe(e), d.value = _.value;
|
|
811
809
|
}, E = async (e) => {
|
|
812
|
-
var v, C,
|
|
813
|
-
|
|
810
|
+
var v, C, z, se, V, q, ge, _e, Ce;
|
|
811
|
+
P.value = !0;
|
|
814
812
|
let r = [];
|
|
815
|
-
const y = await ((
|
|
816
|
-
if (y == null || y.forEach((
|
|
813
|
+
const y = await ((z = (C = (v = Ve) == null ? void 0 : v.find((ve) => (ve == null ? void 0 : ve.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : C.value) == null ? void 0 : z.value) ? await ((_e = (ge = (q = Ve) == null ? void 0 : q.find((ve) => (ve == null ? void 0 : ve.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : ge.value) == null ? void 0 : _e.value) : (V = (se = Ve) == null ? void 0 : se.find((ve) => (ve == null ? void 0 : ve.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : V.value;
|
|
814
|
+
if (y == null || y.forEach((ve) => {
|
|
817
815
|
a.value++, r.push({
|
|
818
|
-
label:
|
|
819
|
-
name:
|
|
820
|
-
type:
|
|
821
|
-
value: (
|
|
816
|
+
label: ve == null ? void 0 : ve.label,
|
|
817
|
+
name: ve == null ? void 0 : ve.label,
|
|
818
|
+
type: ve.type,
|
|
819
|
+
value: (ve == null ? void 0 : ve.label) === "类型" && e[ve.key] === "" ? "Input" : e[ve.key],
|
|
822
820
|
id: a.value,
|
|
823
|
-
contents:
|
|
821
|
+
contents: ve == null ? void 0 : ve.options
|
|
824
822
|
});
|
|
825
823
|
}), e != null && e.menuSelect && ((Ce = e == null ? void 0 : e.menuSelect) == null ? void 0 : Ce.length) > 0) {
|
|
826
|
-
const
|
|
827
|
-
r = r == null ? void 0 : r.map((ie) => ((ie == null ? void 0 : ie.name) === "组信息选项" && (ie.contents =
|
|
824
|
+
const ve = await kl(e == null ? void 0 : e.menuSelect);
|
|
825
|
+
r = r == null ? void 0 : r.map((ie) => ((ie == null ? void 0 : ie.name) === "组信息选项" && (ie.contents = ve), ie));
|
|
828
826
|
}
|
|
829
827
|
Y.value = e == null ? void 0 : e.id, d.value = await sl(ml(r)), _.value = await sl(ml(r));
|
|
830
828
|
}, B = (e) => {
|
|
@@ -843,20 +841,20 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
843
841
|
).catch(() => {
|
|
844
842
|
});
|
|
845
843
|
}, o = () => {
|
|
846
|
-
|
|
844
|
+
P.value = !1, d.value = [], Y.value = "";
|
|
847
845
|
}, I = async () => {
|
|
848
|
-
var v, C,
|
|
846
|
+
var v, C, z, se, V, q, ge, _e, Ce, ve;
|
|
849
847
|
d.value = _.value;
|
|
850
848
|
let e = {};
|
|
851
849
|
Y.value !== "" ? e.id = Y.value : (a.value++, e.id = "id" + a.value);
|
|
852
|
-
let r = await ((
|
|
850
|
+
let r = await ((z = (C = (v = Ve) == null ? void 0 : v.find((ie) => {
|
|
853
851
|
var Ie, be;
|
|
854
852
|
return (ie == null ? void 0 : ie.key) === (((be = (Ie = d.value) == null ? void 0 : Ie.find(($e) => ($e == null ? void 0 : $e.label) === "类型")) == null ? void 0 : be.value) ?? "label");
|
|
855
|
-
})) == null ? void 0 : C.value) == null ? void 0 :
|
|
853
|
+
})) == null ? void 0 : C.value) == null ? void 0 : z.value) ?? ((V = (se = Ve) == null ? void 0 : se.find((ie) => {
|
|
856
854
|
var Ie, be;
|
|
857
855
|
return (ie == null ? void 0 : ie.key) === (((be = (Ie = d.value) == null ? void 0 : Ie.find(($e) => ($e == null ? void 0 : $e.label) === "类型")) == null ? void 0 : be.value) ?? "label");
|
|
858
856
|
})) == null ? void 0 : V.value);
|
|
859
|
-
if ((
|
|
857
|
+
if ((q = d.value) == null || q.forEach((ie) => {
|
|
860
858
|
const Ie = r == null ? void 0 : r.find((be) => (be == null ? void 0 : be.label) === (ie == null ? void 0 : ie.label));
|
|
861
859
|
Ie && (e[Ie.key] = ie.value);
|
|
862
860
|
}), e.name = e.label, (ge = O.value) != null && ge.find((ie) => ie.id === e.id))
|
|
@@ -865,13 +863,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
865
863
|
let ie = l(O.value);
|
|
866
864
|
O.value || (O.value = []), ie.push(e), O.value = ie;
|
|
867
865
|
}
|
|
868
|
-
O.value = O.value.map(({ id: ie, ...Ie }) => Ie),
|
|
866
|
+
O.value = O.value.map(({ id: ie, ...Ie }) => Ie), P.value = !1, Y.value = "";
|
|
869
867
|
let y = l(n.originalItemContents);
|
|
870
|
-
(Ce = l(n.originalItemContents)) != null && Ce.find((ie) => (ie == null ? void 0 : ie.key) === "tableToForm") ? y = (
|
|
868
|
+
(Ce = l(n.originalItemContents)) != null && Ce.find((ie) => (ie == null ? void 0 : ie.key) === "tableToForm") ? y = (ve = l(n.originalItemContents)) == null ? void 0 : ve.map((ie) => ((ie == null ? void 0 : ie.key) === "tableToForm" && (ie.contents = O.value), ie)) : y.push({
|
|
871
869
|
key: "tableToForm",
|
|
872
870
|
contents: O.value
|
|
873
871
|
}), s("change", y);
|
|
874
|
-
},
|
|
872
|
+
}, J = (e) => {
|
|
875
873
|
W.value = !0;
|
|
876
874
|
let r = [];
|
|
877
875
|
cl == null || cl.forEach((y) => {
|
|
@@ -913,12 +911,12 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
913
911
|
).catch(() => {
|
|
914
912
|
});
|
|
915
913
|
}, u = () => {
|
|
916
|
-
var y, v, C,
|
|
914
|
+
var y, v, C, z, se;
|
|
917
915
|
c.value = h.value;
|
|
918
916
|
let e = {};
|
|
919
917
|
if (Y.value !== "" ? e.id = Y.value : (a.value++, e.id = "id" + a.value), (y = c.value) == null || y.forEach((V) => {
|
|
920
|
-
const
|
|
921
|
-
|
|
918
|
+
const q = cl == null ? void 0 : cl.find((ge) => (ge == null ? void 0 : ge.label) === (V == null ? void 0 : V.label));
|
|
919
|
+
q ? e[q.key] = V.value : V != null && V.children && V.children.length > 0 && (e.children = V.children);
|
|
922
920
|
}), (v = de.value) != null && v.find((V) => V.id === e.id))
|
|
923
921
|
de.value = (C = de.value) == null ? void 0 : C.map((V) => (V.id === e.id && (V = e), V));
|
|
924
922
|
else {
|
|
@@ -927,7 +925,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
927
925
|
}
|
|
928
926
|
W.value = !1, Y.value = "";
|
|
929
927
|
let r = l(n.originalItemContents);
|
|
930
|
-
(
|
|
928
|
+
(z = l(n.originalItemContents)) != null && z.find((V) => (V == null ? void 0 : V.key) === "extraButton") ? r = (se = l(n.originalItemContents)) == null ? void 0 : se.map((V) => ((V == null ? void 0 : V.key) === "extraButton" && (V.contents = de.value), V)) : r.push({
|
|
931
929
|
key: "extraButton",
|
|
932
930
|
contents: de.value
|
|
933
931
|
}), s("change", r);
|
|
@@ -976,7 +974,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
976
974
|
id: a.value,
|
|
977
975
|
contents: r == null ? void 0 : r.options
|
|
978
976
|
});
|
|
979
|
-
}),
|
|
977
|
+
}), N.value = e, X.value = e;
|
|
980
978
|
}, t = () => {
|
|
981
979
|
R.value = !0;
|
|
982
980
|
let e = [];
|
|
@@ -994,12 +992,12 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
994
992
|
let r = l(m.value);
|
|
995
993
|
r = r == null ? void 0 : r.map((y) => (y.children || (y.value = e == null ? void 0 : e[y.name]), y)), m.value = r;
|
|
996
994
|
}, g = () => {
|
|
997
|
-
var y, v, C,
|
|
995
|
+
var y, v, C, z, se;
|
|
998
996
|
A.value = m.value;
|
|
999
997
|
let e = {};
|
|
1000
998
|
if (Y.value !== "" ? e.id = Y.value : (a.value++, e.id = "id" + a.value), (y = A.value) == null || y.forEach((V) => {
|
|
1001
|
-
const
|
|
1002
|
-
|
|
999
|
+
const q = tl == null ? void 0 : tl.find((ge) => (ge == null ? void 0 : ge.label) === (V == null ? void 0 : V.label));
|
|
1000
|
+
q ? e[q.key] = V.value : V != null && V.children && V.children.length > 0 && (e.children = V.children);
|
|
1003
1001
|
}), (v = ue.value) != null && v.find((V) => V.id === e.id))
|
|
1004
1002
|
ue.value = (C = ue.value) == null ? void 0 : C.map((V) => (V.id === e.id && (V = e), V));
|
|
1005
1003
|
else {
|
|
@@ -1008,13 +1006,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1008
1006
|
}
|
|
1009
1007
|
R.value = !1, Y.value = "";
|
|
1010
1008
|
let r = l(n.originalItemContents);
|
|
1011
|
-
(
|
|
1009
|
+
(z = l(n.originalItemContents)) != null && z.find((V) => (V == null ? void 0 : V.key) === "rowButton") ? r = (se = l(n.originalItemContents)) == null ? void 0 : se.map((V) => ((V == null ? void 0 : V.key) === "rowButton" && (V.contents = ue.value), V)) : r.push({
|
|
1012
1010
|
key: "rowButton",
|
|
1013
1011
|
contents: ue.value
|
|
1014
1012
|
}), s("change", r);
|
|
1015
|
-
},
|
|
1013
|
+
}, Z = () => {
|
|
1016
1014
|
R.value = !1, Y.value = "", m.value = [], A.value = [];
|
|
1017
|
-
},
|
|
1015
|
+
}, U = (e) => {
|
|
1018
1016
|
F.value = !0;
|
|
1019
1017
|
let r = [];
|
|
1020
1018
|
Ae == null || Ae.forEach((y) => {
|
|
@@ -1026,18 +1024,18 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1026
1024
|
id: a.value,
|
|
1027
1025
|
contents: y == null ? void 0 : y.options
|
|
1028
1026
|
});
|
|
1029
|
-
}),
|
|
1030
|
-
},
|
|
1027
|
+
}), N.value = r, pe.value = e == null ? void 0 : e.id, X.value = r;
|
|
1028
|
+
}, he = (e) => {
|
|
1031
1029
|
var r;
|
|
1032
1030
|
w.value = Oa(l(w.value), e == null ? void 0 : e.id), s("change", (r = l(n.originalItemContents)) == null ? void 0 : r.map((y) => {
|
|
1033
1031
|
var v;
|
|
1034
1032
|
return (y == null ? void 0 : y.key) === "header" && (y.contents = (v = w.value) != null && v.some((C) => C == null ? void 0 : C.children) ? [w.value] : w.value), y;
|
|
1035
1033
|
}));
|
|
1036
|
-
},
|
|
1034
|
+
}, le = (e) => {
|
|
1037
1035
|
var y, v, C;
|
|
1038
|
-
e.type === "fix" ? e.id !== "" ? w.value = Ra(w.value, e) : w.value = La(w.value, e == null ? void 0 : e.contents) : w.value = Pa(w.value, e), w.value = (y = w.value) != null && y.some((
|
|
1036
|
+
e.type === "fix" ? e.id !== "" ? w.value = Ra(w.value, e) : w.value = La(w.value, e == null ? void 0 : e.contents) : w.value = Pa(w.value, e), w.value = (y = w.value) != null && y.some((z) => z == null ? void 0 : z.children) ? [w.value] : w.value, Y.value = "";
|
|
1039
1037
|
let r = l(n.originalItemContents);
|
|
1040
|
-
(v = l(n.originalItemContents)) != null && v.find((
|
|
1038
|
+
(v = l(n.originalItemContents)) != null && v.find((z) => (z == null ? void 0 : z.key) === "header") ? r = (C = l(n.originalItemContents)) == null ? void 0 : C.map((z) => ((z == null ? void 0 : z.key) === "header" && (z.contents = w.value), z)) : r.push({
|
|
1041
1039
|
key: "header",
|
|
1042
1040
|
contents: w.value
|
|
1043
1041
|
}), s("change", r);
|
|
@@ -1057,32 +1055,32 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1057
1055
|
}), e != null && e.children && ((y = e == null ? void 0 : e.children) == null ? void 0 : y.length) > 0 && r.push({
|
|
1058
1056
|
children: e == null ? void 0 : e.children,
|
|
1059
1057
|
isFormColHidden: !0
|
|
1060
|
-
}), Y.value = e == null ? void 0 : e.id, pe.value = "",
|
|
1058
|
+
}), Y.value = e == null ? void 0 : e.id, pe.value = "", N.value = r, X.value = r;
|
|
1061
1059
|
}, te = (e) => {
|
|
1062
1060
|
let r = l(X.value);
|
|
1063
1061
|
r = r == null ? void 0 : r.map((y) => (y.children || (y.value = e == null ? void 0 : e[y.name]), y)), X.value = r;
|
|
1064
1062
|
}, we = () => {
|
|
1065
1063
|
F.value = !1, Y.value = "", pe.value = "", X.value = [];
|
|
1066
1064
|
}, ye = () => {
|
|
1067
|
-
var y, v, C,
|
|
1068
|
-
|
|
1065
|
+
var y, v, C, z, se, V;
|
|
1066
|
+
N.value = X.value;
|
|
1069
1067
|
let e = {};
|
|
1070
|
-
if (Y.value !== "" ? e.id = Y.value : (a.value++, e.id = "id" + a.value), (y =
|
|
1071
|
-
const ge = Ae == null ? void 0 : Ae.find((_e) => (_e == null ? void 0 : _e.label) === (
|
|
1072
|
-
ge ? e[ge.key] =
|
|
1073
|
-
}), (v = w.value) != null && v.find((
|
|
1074
|
-
w.value = (C = w.value) == null ? void 0 : C.map((
|
|
1068
|
+
if (Y.value !== "" ? e.id = Y.value : (a.value++, e.id = "id" + a.value), (y = N.value) == null || y.forEach((q) => {
|
|
1069
|
+
const ge = Ae == null ? void 0 : Ae.find((_e) => (_e == null ? void 0 : _e.label) === (q == null ? void 0 : q.label));
|
|
1070
|
+
ge ? e[ge.key] = q.value : q != null && q.children && q.children.length > 0 && (e.children = q.children);
|
|
1071
|
+
}), (v = w.value) != null && v.find((q) => q.id === e.id))
|
|
1072
|
+
w.value = (C = w.value) == null ? void 0 : C.map((q) => (q.id === e.id && (q = e), q));
|
|
1075
1073
|
else {
|
|
1076
|
-
let
|
|
1077
|
-
pe.value === "" ?
|
|
1074
|
+
let q = l(w.value) ?? [];
|
|
1075
|
+
pe.value === "" ? q.push(e) : q = q == null ? void 0 : q.map((ge) => (ge.id === pe.value && (ge.children || (ge.children = []), ge.children.push(e)), ge)), w.value = q;
|
|
1078
1076
|
}
|
|
1079
|
-
w.value = (
|
|
1077
|
+
w.value = (z = w.value) != null && z.some((q) => q == null ? void 0 : q.children) ? [w.value] : w.value, F.value = !1, Y.value = "", pe.value = "";
|
|
1080
1078
|
let r = l(n.originalItemContents);
|
|
1081
|
-
(
|
|
1079
|
+
(se = l(n.originalItemContents)) != null && se.find((q) => (q == null ? void 0 : q.key) === "header") ? r = (V = l(n.originalItemContents)) == null ? void 0 : V.map((q) => ((q == null ? void 0 : q.key) === "header" && (q.contents = w.value), q)) : r.push({
|
|
1082
1080
|
key: "header",
|
|
1083
1081
|
contents: w.value
|
|
1084
1082
|
}), s("change", r);
|
|
1085
|
-
},
|
|
1083
|
+
}, H = (e) => {
|
|
1086
1084
|
dl.confirm("是否确认要删除", "", {
|
|
1087
1085
|
confirmButtonText: "确认",
|
|
1088
1086
|
cancelButtonText: "取消",
|
|
@@ -1092,7 +1090,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1092
1090
|
var r, y;
|
|
1093
1091
|
w.value = (r = l(w.value)) == null ? void 0 : r.filter((v) => (v == null ? void 0 : v.id) !== (e == null ? void 0 : e.id)), s("change", (y = l(n.originalItemContents)) == null ? void 0 : y.map((v) => {
|
|
1094
1092
|
var C;
|
|
1095
|
-
return (v == null ? void 0 : v.key) === "header" && (v.contents = (C = w.value) != null && C.some((
|
|
1093
|
+
return (v == null ? void 0 : v.key) === "header" && (v.contents = (C = w.value) != null && C.some((z) => z == null ? void 0 : z.children) ? [w.value] : w.value), v;
|
|
1096
1094
|
})), ll({
|
|
1097
1095
|
type: "success",
|
|
1098
1096
|
message: "删除成功"
|
|
@@ -1104,41 +1102,41 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1104
1102
|
return Ne(
|
|
1105
1103
|
() => n.originalItemContents,
|
|
1106
1104
|
() => {
|
|
1107
|
-
var e, r, y, v, C,
|
|
1105
|
+
var e, r, y, v, C, z, se, V, q, ge, _e, Ce, ve, ie, Ie, be, $e, We, ze;
|
|
1108
1106
|
if (!(!n.originalItemContents || n.originalItemContents.length === 0))
|
|
1109
|
-
if (f.value = l(n.originalItemContents), w.value = (r = (e = f.value) == null ? void 0 : e.find((
|
|
1110
|
-
label: (
|
|
1111
|
-
prop: (
|
|
1112
|
-
width:
|
|
1113
|
-
fixed: (
|
|
1114
|
-
sortable: (
|
|
1115
|
-
align: (
|
|
1116
|
-
showOverflowTooltip: (
|
|
1117
|
-
isNotDrag: (
|
|
1118
|
-
isEditCol: (
|
|
1119
|
-
isOperate: (
|
|
1120
|
-
id: (
|
|
1121
|
-
},
|
|
1122
|
-
label: (
|
|
1123
|
-
type: (
|
|
1124
|
-
textColor: (
|
|
1125
|
-
id: (
|
|
1126
|
-
}), de.value = ($e = de.value) == null ? void 0 : $e.map((
|
|
1127
|
-
label: (
|
|
1128
|
-
type: (
|
|
1129
|
-
background: (
|
|
1130
|
-
id: (
|
|
1107
|
+
if (f.value = l(n.originalItemContents), w.value = (r = (e = f.value) == null ? void 0 : e.find((j) => (j == null ? void 0 : j.key) === "header")) == null ? void 0 : r.contents, ue.value = (v = (y = f.value) == null ? void 0 : y.find((j) => (j == null ? void 0 : j.key) === "rowButton")) == null ? void 0 : v.contents, de.value = (z = (C = f.value) == null ? void 0 : C.find((j) => (j == null ? void 0 : j.key) === "extraButton")) == null ? void 0 : z.contents, S.value = (V = (se = f.value) == null ? void 0 : se.find((j) => (j == null ? void 0 : j.key) === "page")) != null && V.contents ? !!((ge = (q = f.value) == null ? void 0 : q.find((j) => (j == null ? void 0 : j.key) === "page")) != null && ge.contents) : !1, O.value = (Ce = (_e = f.value) == null ? void 0 : _e.find((j) => (j == null ? void 0 : j.key) === "tableToForm")) == null ? void 0 : Ce.contents, w.value = (ve = w.value) == null ? void 0 : ve.map((j, Le) => (Array.isArray(j) ? j = ys(j) : j = {
|
|
1108
|
+
label: (j == null ? void 0 : j.label) ?? "",
|
|
1109
|
+
prop: (j == null ? void 0 : j.label) === "操作" ? "operate" : j == null ? void 0 : j.prop,
|
|
1110
|
+
width: j != null && j.width ? parseInt(j.width) : "",
|
|
1111
|
+
fixed: (j == null ? void 0 : j.fixed) ?? void 0,
|
|
1112
|
+
sortable: (j == null ? void 0 : j.sortable) ?? !1,
|
|
1113
|
+
align: (j == null ? void 0 : j.align) ?? "center",
|
|
1114
|
+
showOverflowTooltip: (j == null ? void 0 : j.showOverflowTooltip) ?? !0,
|
|
1115
|
+
isNotDrag: (j == null ? void 0 : j.isNotDrag) ?? !1,
|
|
1116
|
+
isEditCol: (j == null ? void 0 : j.isEditCol) ?? !1,
|
|
1117
|
+
isOperate: (j == null ? void 0 : j.isOperate) ?? !1,
|
|
1118
|
+
id: (j == null ? void 0 : j.id) ?? Le
|
|
1119
|
+
}, j)), w.value = (ie = w.value) != null && ie.every((j) => Array.isArray(j)) ? (Ie = w.value) == null ? void 0 : Ie[0] : w.value, ue.value = (be = ue.value) == null ? void 0 : be.map((j, Le) => j = {
|
|
1120
|
+
label: (j == null ? void 0 : j.label) ?? "",
|
|
1121
|
+
type: (j == null ? void 0 : j.type) ?? "",
|
|
1122
|
+
textColor: (j == null ? void 0 : j.textColor) ?? "#000000",
|
|
1123
|
+
id: (j == null ? void 0 : j.id) ?? Le
|
|
1124
|
+
}), de.value = ($e = de.value) == null ? void 0 : $e.map((j, Le) => j = {
|
|
1125
|
+
label: (j == null ? void 0 : j.label) ?? "",
|
|
1126
|
+
type: (j == null ? void 0 : j.type) ?? "",
|
|
1127
|
+
background: (j == null ? void 0 : j.background) ?? "var(--ssComponent-primary-color)",
|
|
1128
|
+
id: (j == null ? void 0 : j.id) ?? Le
|
|
1131
1129
|
}), O.value)
|
|
1132
|
-
O.value = (ze = O.value) == null ? void 0 : ze.map((
|
|
1130
|
+
O.value = (ze = O.value) == null ? void 0 : ze.map((j) => {
|
|
1133
1131
|
a.value++;
|
|
1134
|
-
let Le =
|
|
1132
|
+
let Le = j;
|
|
1135
1133
|
return Le.id = a.value, Le;
|
|
1136
1134
|
});
|
|
1137
1135
|
else {
|
|
1138
|
-
let
|
|
1136
|
+
let j = [];
|
|
1139
1137
|
const Le = (We = es(l(w.value))) == null ? void 0 : We.filter((Re) => (Re == null ? void 0 : Re.prop) !== "operate");
|
|
1140
1138
|
Le == null || Le.forEach((Re) => {
|
|
1141
|
-
a.value++,
|
|
1139
|
+
a.value++, j.push({
|
|
1142
1140
|
label: Re == null ? void 0 : Re.label,
|
|
1143
1141
|
name: Re == null ? void 0 : Re.label,
|
|
1144
1142
|
type: "Input",
|
|
@@ -1146,23 +1144,23 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1146
1144
|
id: a.value,
|
|
1147
1145
|
contents: Re == null ? void 0 : Re.options
|
|
1148
1146
|
});
|
|
1149
|
-
}), O.value =
|
|
1147
|
+
}), O.value = j;
|
|
1150
1148
|
}
|
|
1151
1149
|
},
|
|
1152
1150
|
{ deep: !0, immediate: !0 }
|
|
1153
1151
|
), (e, r) => {
|
|
1154
1152
|
const y = Be("svg-icon"), v = Be("el-button");
|
|
1155
|
-
return
|
|
1153
|
+
return ee(), fe("div", js, [
|
|
1156
1154
|
x("div", Vs, [
|
|
1157
1155
|
x("div", Ns, [
|
|
1158
1156
|
r[2] || (r[2] = x("div", null, ke("表头"), -1)),
|
|
1159
|
-
|
|
1157
|
+
G(v, {
|
|
1160
1158
|
class: "icon-content",
|
|
1161
1159
|
onClick: re,
|
|
1162
1160
|
id: "themeButton"
|
|
1163
1161
|
}, {
|
|
1164
1162
|
icon: ce(() => [
|
|
1165
|
-
|
|
1163
|
+
G(y, {
|
|
1166
1164
|
name: "Plus",
|
|
1167
1165
|
class: "icon-size"
|
|
1168
1166
|
})
|
|
@@ -1175,48 +1173,48 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1175
1173
|
})
|
|
1176
1174
|
]),
|
|
1177
1175
|
x("div", Us, [
|
|
1178
|
-
(
|
|
1176
|
+
(ee(!0), fe(Te, null, Oe(w.value, (C, z) => (ee(), fe("div", { key: z }, [
|
|
1179
1177
|
x("div", Ks, [
|
|
1180
1178
|
x("div", Ws, ke(C == null ? void 0 : C.label), 1),
|
|
1181
1179
|
x("div", zs, [
|
|
1182
|
-
|
|
1180
|
+
G(y, {
|
|
1183
1181
|
name: "ChildAdd",
|
|
1184
1182
|
class: "svg-icon-content",
|
|
1185
1183
|
style: { width: "24px", height: "24px" },
|
|
1186
|
-
onClick: (
|
|
1184
|
+
onClick: (se) => U(C)
|
|
1187
1185
|
}, null, 8, ["onClick"]),
|
|
1188
|
-
|
|
1186
|
+
G(y, {
|
|
1189
1187
|
name: "ChildFix",
|
|
1190
1188
|
class: "svg-icon-content",
|
|
1191
1189
|
style: { width: "24px", height: "24px" },
|
|
1192
|
-
onClick: (
|
|
1190
|
+
onClick: (se) => ae(C)
|
|
1193
1191
|
}, null, 8, ["onClick"]),
|
|
1194
|
-
|
|
1192
|
+
G(y, {
|
|
1195
1193
|
name: "ChildDelete",
|
|
1196
1194
|
class: "svg-icon-content",
|
|
1197
1195
|
style: { width: "24px", height: "24px" },
|
|
1198
|
-
onClick: (
|
|
1196
|
+
onClick: (se) => H(C)
|
|
1199
1197
|
}, null, 8, ["onClick"])
|
|
1200
1198
|
])
|
|
1201
1199
|
]),
|
|
1202
|
-
C != null && C.children && C.children.length > 0 ? (
|
|
1203
|
-
|
|
1200
|
+
C != null && C.children && C.children.length > 0 ? (ee(), fe("div", Ms, [
|
|
1201
|
+
G(ja, {
|
|
1204
1202
|
tableChildContents: C == null ? void 0 : C.children,
|
|
1205
|
-
onDeleteChange:
|
|
1206
|
-
onFixChange:
|
|
1203
|
+
onDeleteChange: he,
|
|
1204
|
+
onFixChange: le
|
|
1207
1205
|
}, null, 8, ["tableChildContents"])
|
|
1208
1206
|
])) : Ye("", !0)
|
|
1209
1207
|
]))), 128))
|
|
1210
1208
|
]),
|
|
1211
1209
|
x("div", Js, [
|
|
1212
1210
|
r[4] || (r[4] = x("div", null, ke("行内按钮"), -1)),
|
|
1213
|
-
|
|
1211
|
+
G(v, {
|
|
1214
1212
|
class: "icon-content",
|
|
1215
1213
|
id: "themeButton",
|
|
1216
1214
|
onClick: t
|
|
1217
1215
|
}, {
|
|
1218
1216
|
icon: ce(() => [
|
|
1219
|
-
|
|
1217
|
+
G(y, {
|
|
1220
1218
|
name: "Plus",
|
|
1221
1219
|
class: "icon-size"
|
|
1222
1220
|
})
|
|
@@ -1229,21 +1227,21 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1229
1227
|
})
|
|
1230
1228
|
]),
|
|
1231
1229
|
x("div", Gs, [
|
|
1232
|
-
(
|
|
1230
|
+
(ee(!0), fe(Te, null, Oe(ue.value, (C, z) => (ee(), fe("div", { key: z }, [
|
|
1233
1231
|
x("div", Hs, [
|
|
1234
1232
|
x("div", qs, ke(C == null ? void 0 : C.label), 1),
|
|
1235
1233
|
x("div", Qs, [
|
|
1236
|
-
|
|
1234
|
+
G(y, {
|
|
1237
1235
|
name: "ChildFix",
|
|
1238
1236
|
style: { width: "24px", height: "24px" },
|
|
1239
1237
|
class: "svg-icon-content",
|
|
1240
|
-
onClick: (
|
|
1238
|
+
onClick: (se) => Q(C)
|
|
1241
1239
|
}, null, 8, ["onClick"]),
|
|
1242
|
-
|
|
1240
|
+
G(y, {
|
|
1243
1241
|
name: "ChildDelete",
|
|
1244
1242
|
class: "svg-icon-content",
|
|
1245
1243
|
style: { width: "24px", height: "24px" },
|
|
1246
|
-
onClick: (
|
|
1244
|
+
onClick: (se) => me(C)
|
|
1247
1245
|
}, null, 8, ["onClick"])
|
|
1248
1246
|
])
|
|
1249
1247
|
])
|
|
@@ -1251,13 +1249,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1251
1249
|
]),
|
|
1252
1250
|
x("div", Xs, [
|
|
1253
1251
|
r[6] || (r[6] = x("div", null, ke("表外按钮"), -1)),
|
|
1254
|
-
|
|
1252
|
+
G(v, {
|
|
1255
1253
|
class: "icon-content",
|
|
1256
1254
|
id: "themeButton",
|
|
1257
1255
|
onClick: T
|
|
1258
1256
|
}, {
|
|
1259
1257
|
icon: ce(() => [
|
|
1260
|
-
|
|
1258
|
+
G(y, {
|
|
1261
1259
|
name: "Plus",
|
|
1262
1260
|
class: "icon-size"
|
|
1263
1261
|
})
|
|
@@ -1270,21 +1268,21 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1270
1268
|
})
|
|
1271
1269
|
]),
|
|
1272
1270
|
x("div", Ys, [
|
|
1273
|
-
(
|
|
1271
|
+
(ee(!0), fe(Te, null, Oe(de.value, (C, z) => (ee(), fe("div", { key: z }, [
|
|
1274
1272
|
x("div", Zs, [
|
|
1275
1273
|
x("div", ei, ke(C == null ? void 0 : C.label), 1),
|
|
1276
1274
|
x("div", li, [
|
|
1277
|
-
|
|
1275
|
+
G(y, {
|
|
1278
1276
|
name: "ChildFix",
|
|
1279
1277
|
style: { width: "24px", height: "24px" },
|
|
1280
1278
|
class: "svg-icon-content",
|
|
1281
|
-
onClick: (
|
|
1279
|
+
onClick: (se) => J(C)
|
|
1282
1280
|
}, null, 8, ["onClick"]),
|
|
1283
|
-
|
|
1281
|
+
G(y, {
|
|
1284
1282
|
name: "ChildDelete",
|
|
1285
1283
|
class: "svg-icon-content",
|
|
1286
1284
|
style: { width: "24px", height: "24px" },
|
|
1287
|
-
onClick: (
|
|
1285
|
+
onClick: (se) => L(C)
|
|
1288
1286
|
}, null, 8, ["onClick"])
|
|
1289
1287
|
])
|
|
1290
1288
|
])
|
|
@@ -1292,13 +1290,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1292
1290
|
]),
|
|
1293
1291
|
x("div", ai, [
|
|
1294
1292
|
r[8] || (r[8] = x("div", null, ke("表格弹框字段设置"), -1)),
|
|
1295
|
-
|
|
1293
|
+
G(v, {
|
|
1296
1294
|
class: "icon-content",
|
|
1297
1295
|
id: "themeButton",
|
|
1298
1296
|
onClick: ne
|
|
1299
1297
|
}, {
|
|
1300
1298
|
icon: ce(() => [
|
|
1301
|
-
|
|
1299
|
+
G(y, {
|
|
1302
1300
|
name: "Plus",
|
|
1303
1301
|
class: "icon-size"
|
|
1304
1302
|
})
|
|
@@ -1311,21 +1309,21 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1311
1309
|
})
|
|
1312
1310
|
]),
|
|
1313
1311
|
x("div", si, [
|
|
1314
|
-
(
|
|
1312
|
+
(ee(!0), fe(Te, null, Oe(O.value, (C, z) => (ee(), fe("div", { key: z }, [
|
|
1315
1313
|
x("div", ii, [
|
|
1316
1314
|
x("div", ni, ke(C == null ? void 0 : C.label), 1),
|
|
1317
1315
|
x("div", oi, [
|
|
1318
|
-
|
|
1316
|
+
G(y, {
|
|
1319
1317
|
name: "ChildFix",
|
|
1320
1318
|
style: { width: "24px", height: "24px" },
|
|
1321
1319
|
class: "svg-icon-content",
|
|
1322
|
-
onClick: (
|
|
1320
|
+
onClick: (se) => E(C)
|
|
1323
1321
|
}, null, 8, ["onClick"]),
|
|
1324
|
-
|
|
1322
|
+
G(y, {
|
|
1325
1323
|
name: "ChildDelete",
|
|
1326
1324
|
class: "svg-icon-content",
|
|
1327
1325
|
style: { width: "24px", height: "24px" },
|
|
1328
|
-
onClick: (
|
|
1326
|
+
onClick: (se) => B(C)
|
|
1329
1327
|
}, null, 8, ["onClick"])
|
|
1330
1328
|
])
|
|
1331
1329
|
])
|
|
@@ -1337,23 +1335,23 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1337
1335
|
x("div", ui, [
|
|
1338
1336
|
x("div", ri, [
|
|
1339
1337
|
r[9] || (r[9] = x("div", { class: "operate-center-content" }, ke("是否分页"), -1)),
|
|
1340
|
-
|
|
1338
|
+
G(Ta, {
|
|
1341
1339
|
modelValue: S.value,
|
|
1342
1340
|
"onUpdate:modelValue": r[0] || (r[0] = (C) => S.value = C)
|
|
1343
1341
|
}, null, 8, ["modelValue"])
|
|
1344
1342
|
])
|
|
1345
1343
|
])
|
|
1346
1344
|
]),
|
|
1347
|
-
|
|
1345
|
+
G(Je, {
|
|
1348
1346
|
visible: F.value,
|
|
1349
1347
|
onBeforeDestroy: we,
|
|
1350
1348
|
width: 840
|
|
1351
1349
|
}, {
|
|
1352
1350
|
default: ce(() => [
|
|
1353
1351
|
x("div", ci, [
|
|
1354
|
-
(
|
|
1355
|
-
rowContents:
|
|
1356
|
-
key:
|
|
1352
|
+
(ee(), Se(Ke, {
|
|
1353
|
+
rowContents: N.value,
|
|
1354
|
+
key: N.value,
|
|
1357
1355
|
isEnableWrap: !0,
|
|
1358
1356
|
onChange: te
|
|
1359
1357
|
}, null, 8, ["rowContents"]))
|
|
@@ -1361,7 +1359,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1361
1359
|
]),
|
|
1362
1360
|
footer: ce(() => [
|
|
1363
1361
|
x("div", ti, [
|
|
1364
|
-
|
|
1362
|
+
G(v, {
|
|
1365
1363
|
onClick: we,
|
|
1366
1364
|
class: "cancel-button button",
|
|
1367
1365
|
id: "themeBorderButton"
|
|
@@ -1372,7 +1370,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1372
1370
|
_: 1,
|
|
1373
1371
|
__: [11]
|
|
1374
1372
|
}),
|
|
1375
|
-
|
|
1373
|
+
G(v, {
|
|
1376
1374
|
class: "ok-button button",
|
|
1377
1375
|
onClick: ye,
|
|
1378
1376
|
id: "themeButton"
|
|
@@ -1387,14 +1385,14 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1387
1385
|
]),
|
|
1388
1386
|
_: 1
|
|
1389
1387
|
}, 8, ["visible"]),
|
|
1390
|
-
|
|
1388
|
+
G(Je, {
|
|
1391
1389
|
visible: R.value,
|
|
1392
|
-
onBeforeDestroy:
|
|
1390
|
+
onBeforeDestroy: Z,
|
|
1393
1391
|
width: 840
|
|
1394
1392
|
}, {
|
|
1395
1393
|
default: ce(() => [
|
|
1396
1394
|
x("div", di, [
|
|
1397
|
-
(
|
|
1395
|
+
(ee(), Se(Ke, {
|
|
1398
1396
|
rowContents: A.value,
|
|
1399
1397
|
key: A.value,
|
|
1400
1398
|
isEnableWrap: !0,
|
|
@@ -1404,8 +1402,8 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1404
1402
|
]),
|
|
1405
1403
|
footer: ce(() => [
|
|
1406
1404
|
x("div", pi, [
|
|
1407
|
-
|
|
1408
|
-
onClick:
|
|
1405
|
+
G(v, {
|
|
1406
|
+
onClick: Z,
|
|
1409
1407
|
class: "cancel-button button",
|
|
1410
1408
|
id: "themeBorderButton"
|
|
1411
1409
|
}, {
|
|
@@ -1415,7 +1413,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1415
1413
|
_: 1,
|
|
1416
1414
|
__: [13]
|
|
1417
1415
|
}),
|
|
1418
|
-
|
|
1416
|
+
G(v, {
|
|
1419
1417
|
class: "ok-button button",
|
|
1420
1418
|
onClick: g,
|
|
1421
1419
|
id: "themeButton"
|
|
@@ -1430,14 +1428,14 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1430
1428
|
]),
|
|
1431
1429
|
_: 1
|
|
1432
1430
|
}, 8, ["visible"]),
|
|
1433
|
-
|
|
1431
|
+
G(Je, {
|
|
1434
1432
|
visible: W.value,
|
|
1435
1433
|
onBeforeDestroy: $,
|
|
1436
1434
|
width: 840
|
|
1437
1435
|
}, {
|
|
1438
1436
|
default: ce(() => [
|
|
1439
1437
|
x("div", fi, [
|
|
1440
|
-
(
|
|
1438
|
+
(ee(), Se(Ke, {
|
|
1441
1439
|
rowContents: c.value,
|
|
1442
1440
|
key: c.value,
|
|
1443
1441
|
isEnableWrap: !0,
|
|
@@ -1447,7 +1445,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1447
1445
|
]),
|
|
1448
1446
|
footer: ce(() => [
|
|
1449
1447
|
x("div", hi, [
|
|
1450
|
-
|
|
1448
|
+
G(v, {
|
|
1451
1449
|
onClick: $,
|
|
1452
1450
|
class: "cancel-button button",
|
|
1453
1451
|
id: "themeBorderButton"
|
|
@@ -1458,7 +1456,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1458
1456
|
_: 1,
|
|
1459
1457
|
__: [15]
|
|
1460
1458
|
}),
|
|
1461
|
-
|
|
1459
|
+
G(v, {
|
|
1462
1460
|
class: "ok-button button",
|
|
1463
1461
|
onClick: u,
|
|
1464
1462
|
id: "themeButton"
|
|
@@ -1473,14 +1471,14 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1473
1471
|
]),
|
|
1474
1472
|
_: 1
|
|
1475
1473
|
}, 8, ["visible"]),
|
|
1476
|
-
|
|
1477
|
-
visible:
|
|
1474
|
+
G(Je, {
|
|
1475
|
+
visible: P.value,
|
|
1478
1476
|
onBeforeDestroy: o,
|
|
1479
1477
|
width: 840
|
|
1480
1478
|
}, {
|
|
1481
1479
|
default: ce(() => [
|
|
1482
1480
|
x("div", vi, [
|
|
1483
|
-
(
|
|
1481
|
+
(ee(), Se(Ke, {
|
|
1484
1482
|
rowContents: d.value,
|
|
1485
1483
|
key: d.value,
|
|
1486
1484
|
isEnableWrap: !0,
|
|
@@ -1492,7 +1490,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1492
1490
|
]),
|
|
1493
1491
|
footer: ce(() => [
|
|
1494
1492
|
x("div", mi, [
|
|
1495
|
-
|
|
1493
|
+
G(v, {
|
|
1496
1494
|
onClick: o,
|
|
1497
1495
|
class: "cancel-button button",
|
|
1498
1496
|
id: "themeBorderButton"
|
|
@@ -1503,7 +1501,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1503
1501
|
_: 1,
|
|
1504
1502
|
__: [17]
|
|
1505
1503
|
}),
|
|
1506
|
-
|
|
1504
|
+
G(v, {
|
|
1507
1505
|
class: "ok-button button",
|
|
1508
1506
|
onClick: I,
|
|
1509
1507
|
id: "themeButton"
|
|
@@ -1535,11 +1533,11 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1535
1533
|
},
|
|
1536
1534
|
emits: ["change"],
|
|
1537
1535
|
setup(p, { emit: k }) {
|
|
1538
|
-
const n = p, s = k, f =
|
|
1539
|
-
var o, I,
|
|
1536
|
+
const n = p, s = k, f = M(!1), F = M([]), P = M([]), w = M(!1), R = M([]), N = M([]), S = M(""), X = M(!1), Y = M(0), pe = M([]), ue = M([]), de = (i, E) => (console.log(345, i), (i == null ? void 0 : i.label) === "类型" && E[i.key] === "" ? "Input" : (i == null ? void 0 : i.key) === "isFormColHidden" && !E[i.key] ? !1 : E[i.key]), A = async (i) => {
|
|
1537
|
+
var o, I, J, L, u, b;
|
|
1540
1538
|
f.value = !0;
|
|
1541
1539
|
let E = [];
|
|
1542
|
-
const B = await ((
|
|
1540
|
+
const B = await ((J = (I = (o = Ve) == null ? void 0 : o.find(($) => ($ == null ? void 0 : $.key) === ((i == null ? void 0 : i.type) === "" ? "Input" : i == null ? void 0 : i.type))) == null ? void 0 : I.value) == null ? void 0 : J.value) ?? ((u = (L = Ve) == null ? void 0 : L.find(($) => ($ == null ? void 0 : $.key) === ((i == null ? void 0 : i.type) === "" ? "Input" : i == null ? void 0 : i.type))) == null ? void 0 : u.value);
|
|
1543
1541
|
if (B == null || B.forEach(($) => {
|
|
1544
1542
|
Y.value++, E.push({
|
|
1545
1543
|
label: $ == null ? void 0 : $.label,
|
|
@@ -1555,7 +1553,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1555
1553
|
const $ = await kl(i == null ? void 0 : i.menuSelect);
|
|
1556
1554
|
E = E == null ? void 0 : E.map((Q) => ((Q == null ? void 0 : Q.name) === "组信息选项" && (Q.contents = $), Q));
|
|
1557
1555
|
}
|
|
1558
|
-
S.value = i == null ? void 0 : i.id, F.value = await sl(ml(E)),
|
|
1556
|
+
S.value = i == null ? void 0 : i.id, F.value = await sl(ml(E)), P.value = await sl(ml(E));
|
|
1559
1557
|
}, m = (i) => {
|
|
1560
1558
|
var B;
|
|
1561
1559
|
w.value = !0;
|
|
@@ -1584,7 +1582,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1584
1582
|
{ deep: !0 }
|
|
1585
1583
|
);
|
|
1586
1584
|
const W = () => {
|
|
1587
|
-
var B, o, I,
|
|
1585
|
+
var B, o, I, J, L;
|
|
1588
1586
|
pe.value = ue.value;
|
|
1589
1587
|
let i = {};
|
|
1590
1588
|
if (S.value !== "" ? i.id = S.value : (Y.value++, i.id = "id" + Y.value), (B = pe.value) == null || B.forEach((u) => {
|
|
@@ -1599,7 +1597,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1599
1597
|
}
|
|
1600
1598
|
w.value = !1, S.value = "";
|
|
1601
1599
|
let E = l(n.originalItemContents);
|
|
1602
|
-
(
|
|
1600
|
+
(J = l(n.originalItemContents)) != null && J.find((u) => (u == null ? void 0 : u.key) === "formButton") ? E = (L = l(n.originalItemContents)) == null ? void 0 : L.map((u) => ((u == null ? void 0 : u.key) === "formButton" && (u.contents = R.value), u)) : E.push({
|
|
1603
1601
|
key: "formButton",
|
|
1604
1602
|
contents: R.value
|
|
1605
1603
|
}), s("change", E);
|
|
@@ -1611,7 +1609,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1611
1609
|
}).then(
|
|
1612
1610
|
() => {
|
|
1613
1611
|
var E, B;
|
|
1614
|
-
|
|
1612
|
+
N.value = (E = l(N.value)) == null ? void 0 : E.filter((o) => (o == null ? void 0 : o.id) !== (i == null ? void 0 : i.id)), s("change", (B = l(n.originalItemContents)) == null ? void 0 : B.map((o) => ((o == null ? void 0 : o.key) === "formContent" && (o.contents = N.value), o))), ll({
|
|
1615
1613
|
type: "success",
|
|
1616
1614
|
message: "删除成功"
|
|
1617
1615
|
});
|
|
@@ -1660,82 +1658,84 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1660
1658
|
id: Y.value,
|
|
1661
1659
|
contents: I == null ? void 0 : I.options
|
|
1662
1660
|
});
|
|
1663
|
-
}), F.value = i,
|
|
1661
|
+
}), F.value = i, P.value = i;
|
|
1664
1662
|
}, _ = (i) => {
|
|
1665
1663
|
let E = l(ue.value);
|
|
1666
1664
|
E = E == null ? void 0 : E.map((B) => (B.value = i == null ? void 0 : i[B.name], B)), ue.value = E;
|
|
1667
1665
|
}, O = async (i) => {
|
|
1668
|
-
var E, B, o, I,
|
|
1669
|
-
if ((i == null ? void 0 : i.类型) !== ((B = (E =
|
|
1666
|
+
var E, B, o, I, J, L, u, b, $, Q, me, re;
|
|
1667
|
+
if ((i == null ? void 0 : i.类型) !== ((B = (E = P.value) == null ? void 0 : E.find((t) => (t == null ? void 0 : t.label) === "类型")) == null ? void 0 : B.value)) {
|
|
1670
1668
|
let t = [];
|
|
1671
|
-
const D = await ((
|
|
1669
|
+
const D = await ((J = (I = (o = Ve) == null ? void 0 : o.find((g) => (g == null ? void 0 : g.key) === ((i == null ? void 0 : i.类型) === "" ? "Input" : i == null ? void 0 : i.类型))) == null ? void 0 : I.value) == null ? void 0 : J.value) ? await ((Q = ($ = (b = Ve) == null ? void 0 : b.find((g) => (g == null ? void 0 : g.key) === ((i == null ? void 0 : i.类型) === "" ? "Input" : i == null ? void 0 : i.类型))) == null ? void 0 : $.value) == null ? void 0 : Q.value) : (u = (L = Ve) == null ? void 0 : L.find((g) => (g == null ? void 0 : g.key) === ((i == null ? void 0 : i.类型) === "" ? "Input" : i == null ? void 0 : i.类型))) == null ? void 0 : u.value;
|
|
1672
1670
|
if (D == null || D.forEach((g) => {
|
|
1671
|
+
var Z, U;
|
|
1673
1672
|
Y.value++, t.push({
|
|
1674
1673
|
label: g == null ? void 0 : g.label,
|
|
1675
1674
|
name: g == null ? void 0 : g.label,
|
|
1676
1675
|
type: g.type,
|
|
1677
1676
|
value: (i == null ? void 0 : i[g.label]) ?? "",
|
|
1678
1677
|
id: Y.value,
|
|
1679
|
-
contents: g == null ? void 0 : g.options
|
|
1678
|
+
contents: g == null ? void 0 : g.options,
|
|
1679
|
+
width: ((U = (Z = P.value) == null ? void 0 : Z[0]) == null ? void 0 : U.width) ?? 1
|
|
1680
1680
|
});
|
|
1681
1681
|
}), i != null && i.菜单选项 && ((me = i == null ? void 0 : i.菜单选项) == null ? void 0 : me.length) > 0) {
|
|
1682
1682
|
const g = await kl(i == null ? void 0 : i.菜单选项);
|
|
1683
|
-
t = t == null ? void 0 : t.map((
|
|
1683
|
+
t = t == null ? void 0 : t.map((Z) => ((Z == null ? void 0 : Z.name) === "组信息选项" && (Z.contents = g), Z));
|
|
1684
1684
|
}
|
|
1685
|
-
|
|
1685
|
+
P.value = await sl(l(t)), F.value = await sl(l(t));
|
|
1686
1686
|
} else {
|
|
1687
|
-
let t = l(
|
|
1687
|
+
let t = l(P.value);
|
|
1688
1688
|
if (t = t == null ? void 0 : t.map((D) => (D.value = i == null ? void 0 : i[D.name], D)), i != null && i.菜单选项 && ((re = i == null ? void 0 : i.菜单选项) == null ? void 0 : re.length) > 0) {
|
|
1689
1689
|
const D = await kl(i == null ? void 0 : i.菜单选项);
|
|
1690
1690
|
t = t == null ? void 0 : t.map((g) => ((g == null ? void 0 : g.name) === "组信息选项" && (g.contents = D), g));
|
|
1691
1691
|
}
|
|
1692
|
-
t = ml(t),
|
|
1692
|
+
t = ml(t), P.value = await sl(l(t));
|
|
1693
1693
|
}
|
|
1694
1694
|
}, T = (i) => {
|
|
1695
|
-
i || (F.value =
|
|
1695
|
+
i || (F.value = P.value);
|
|
1696
1696
|
}, ne = async (i) => {
|
|
1697
|
-
await O(i), F.value =
|
|
1697
|
+
await O(i), F.value = P.value;
|
|
1698
1698
|
}, K = async () => {
|
|
1699
|
-
var o, I,
|
|
1700
|
-
F.value =
|
|
1699
|
+
var o, I, J, L, u, b, $, Q, me, re, t, D;
|
|
1700
|
+
F.value = P.value;
|
|
1701
1701
|
let i = {};
|
|
1702
1702
|
i.width = ((I = (o = F.value) == null ? void 0 : o[0]) == null ? void 0 : I.width) ?? 1, S.value !== "" ? i.id = S.value : (Y.value++, i.id = "id" + Y.value);
|
|
1703
|
-
let E = await ((u = (L = (
|
|
1704
|
-
var
|
|
1705
|
-
return (g == null ? void 0 : g.key) === (((
|
|
1703
|
+
let E = await ((u = (L = (J = Ve) == null ? void 0 : J.find((g) => {
|
|
1704
|
+
var Z, U;
|
|
1705
|
+
return (g == null ? void 0 : g.key) === (((U = (Z = F.value) == null ? void 0 : Z.find((he) => (he == null ? void 0 : he.label) === "类型")) == null ? void 0 : U.value) ?? "label");
|
|
1706
1706
|
})) == null ? void 0 : L.value) == null ? void 0 : u.value) ?? (($ = (b = Ve) == null ? void 0 : b.find((g) => {
|
|
1707
|
-
var
|
|
1708
|
-
return (g == null ? void 0 : g.key) === (((
|
|
1707
|
+
var Z, U;
|
|
1708
|
+
return (g == null ? void 0 : g.key) === (((U = (Z = F.value) == null ? void 0 : Z.find((he) => (he == null ? void 0 : he.label) === "类型")) == null ? void 0 : U.value) ?? "label");
|
|
1709
1709
|
})) == null ? void 0 : $.value);
|
|
1710
1710
|
if ((Q = F.value) == null || Q.forEach((g) => {
|
|
1711
|
-
const
|
|
1712
|
-
|
|
1713
|
-
}), i.width = i.width ? i.width : 1, i.key = i == null ? void 0 : i.label, i.isFormColHidden = i == null ? void 0 : i.isFormColHidden, (me =
|
|
1714
|
-
|
|
1711
|
+
const Z = E == null ? void 0 : E.find((U) => (U == null ? void 0 : U.label) === (g == null ? void 0 : g.label));
|
|
1712
|
+
Z && (i[Z.key] = g.value);
|
|
1713
|
+
}), i.width = i.width ? i.width : 1, i.key = i == null ? void 0 : i.label, i.isFormColHidden = i == null ? void 0 : i.isFormColHidden, (me = N.value) != null && me.find((g) => g.id === i.id))
|
|
1714
|
+
N.value = (re = N.value) == null ? void 0 : re.map((g) => (g.id === i.id && (g = i), g));
|
|
1715
1715
|
else {
|
|
1716
|
-
let g = l(
|
|
1717
|
-
g.push(i),
|
|
1716
|
+
let g = l(N.value);
|
|
1717
|
+
g.push(i), N.value = g;
|
|
1718
1718
|
}
|
|
1719
|
-
|
|
1719
|
+
N.value = N.value.map(({ id: g, ...Z }) => Z), f.value = !1, S.value = "";
|
|
1720
1720
|
let B = l(n.originalItemContents);
|
|
1721
|
-
(t = l(n.originalItemContents)) != null && t.find((g) => (g == null ? void 0 : g.key) === "formContent") ? B = (D = l(n.originalItemContents)) == null ? void 0 : D.map((g) => ((g == null ? void 0 : g.key) === "formContent" && (g.contents =
|
|
1721
|
+
(t = l(n.originalItemContents)) != null && t.find((g) => (g == null ? void 0 : g.key) === "formContent") ? B = (D = l(n.originalItemContents)) == null ? void 0 : D.map((g) => ((g == null ? void 0 : g.key) === "formContent" && (g.contents = N.value), g)) : B.push({
|
|
1722
1722
|
key: "formContent",
|
|
1723
|
-
contents:
|
|
1723
|
+
contents: N.value
|
|
1724
1724
|
}), s("change", B);
|
|
1725
1725
|
}, oe = () => {
|
|
1726
|
-
f.value = !1, w.value = !1, S.value = "",
|
|
1726
|
+
f.value = !1, w.value = !1, S.value = "", P.value = [], ue.value = [];
|
|
1727
1727
|
};
|
|
1728
1728
|
return Ne(
|
|
1729
1729
|
() => n.originalItemContents,
|
|
1730
1730
|
() => {
|
|
1731
|
-
var E, B, o, I,
|
|
1731
|
+
var E, B, o, I, J, L;
|
|
1732
1732
|
if (!n.originalItemContents || n.originalItemContents.length === 0) return;
|
|
1733
1733
|
const i = l(n.originalItemContents);
|
|
1734
|
-
|
|
1734
|
+
N.value = ((E = i == null ? void 0 : i.find((u) => (u == null ? void 0 : u.key) === "formContent")) == null ? void 0 : E.contents) ?? [], R.value = ((B = i == null ? void 0 : i.find((u) => (u == null ? void 0 : u.key) === "formButton")) == null ? void 0 : B.contents) ?? [], X.value = (o = i == null ? void 0 : i.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && o.contents ? !((I = i == null ? void 0 : i.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && I.contents) : !0, N.value = (J = l(N.value)) == null ? void 0 : J.map((u, b) => {
|
|
1735
1735
|
var Q;
|
|
1736
1736
|
let $ = u;
|
|
1737
1737
|
return $.id = (u == null ? void 0 : u.id) ?? b, 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 = ((Q = u == null ? void 0 : u.options) == null ? void 0 : Q.length) === 0 ? (u == null ? void 0 : u.contents) ?? "" : u == null ? void 0 : u.options, $;
|
|
1738
|
-
}),
|
|
1738
|
+
}), N.value = ml(N.value), R.value = (L = R.value) == null ? void 0 : L.map((u, b) => u = {
|
|
1739
1739
|
label: (u == null ? void 0 : u.label) ?? "",
|
|
1740
1740
|
type: (u == null ? void 0 : u.type) ?? "",
|
|
1741
1741
|
background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)",
|
|
@@ -1745,17 +1745,17 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1745
1745
|
{ deep: !0, immediate: !0 }
|
|
1746
1746
|
), (i, E) => {
|
|
1747
1747
|
const B = Be("svg-icon"), o = Be("el-button");
|
|
1748
|
-
return
|
|
1748
|
+
return ee(), fe("div", gi, [
|
|
1749
1749
|
x("div", ki, [
|
|
1750
1750
|
x("div", _i, [
|
|
1751
1751
|
E[2] || (E[2] = x("div", null, ke("表单内容"), -1)),
|
|
1752
|
-
|
|
1752
|
+
G(o, {
|
|
1753
1753
|
class: "icon-content",
|
|
1754
1754
|
id: "themeButton",
|
|
1755
1755
|
onClick: d
|
|
1756
1756
|
}, {
|
|
1757
1757
|
icon: ce(() => [
|
|
1758
|
-
|
|
1758
|
+
G(B, {
|
|
1759
1759
|
name: "Plus",
|
|
1760
1760
|
class: "icon-size"
|
|
1761
1761
|
})
|
|
@@ -1768,17 +1768,17 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1768
1768
|
})
|
|
1769
1769
|
]),
|
|
1770
1770
|
x("div", Ci, [
|
|
1771
|
-
(
|
|
1771
|
+
(ee(!0), fe(Te, null, Oe(N.value, (I, J) => (ee(), fe("div", { key: J }, [
|
|
1772
1772
|
x("div", wi, [
|
|
1773
1773
|
x("div", null, ke(I.label), 1),
|
|
1774
1774
|
x("div", Di, [
|
|
1775
|
-
|
|
1775
|
+
G(B, {
|
|
1776
1776
|
name: "ChildFix",
|
|
1777
1777
|
class: "svg-icon-content",
|
|
1778
1778
|
style: { width: "24px", height: "24px" },
|
|
1779
1779
|
onClick: (L) => A(I)
|
|
1780
1780
|
}, null, 8, ["onClick"]),
|
|
1781
|
-
|
|
1781
|
+
G(B, {
|
|
1782
1782
|
name: "ChildDelete",
|
|
1783
1783
|
class: "svg-icon-content",
|
|
1784
1784
|
style: { width: "24px", height: "24px" },
|
|
@@ -1790,13 +1790,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1790
1790
|
]),
|
|
1791
1791
|
x("div", Ai, [
|
|
1792
1792
|
E[4] || (E[4] = x("div", null, ke("表单按钮"), -1)),
|
|
1793
|
-
|
|
1793
|
+
G(o, {
|
|
1794
1794
|
class: "icon-content",
|
|
1795
1795
|
id: "themeButton",
|
|
1796
1796
|
onClick: a
|
|
1797
1797
|
}, {
|
|
1798
1798
|
icon: ce(() => [
|
|
1799
|
-
|
|
1799
|
+
G(B, {
|
|
1800
1800
|
name: "Plus",
|
|
1801
1801
|
class: "icon-size"
|
|
1802
1802
|
})
|
|
@@ -1809,17 +1809,17 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1809
1809
|
})
|
|
1810
1810
|
]),
|
|
1811
1811
|
x("div", Ii, [
|
|
1812
|
-
(
|
|
1812
|
+
(ee(!0), fe(Te, null, Oe(R.value, (I, J) => (ee(), fe("div", { key: J }, [
|
|
1813
1813
|
x("div", xi, [
|
|
1814
1814
|
x("div", null, ke(I.label), 1),
|
|
1815
1815
|
x("div", Ei, [
|
|
1816
|
-
|
|
1816
|
+
G(B, {
|
|
1817
1817
|
name: "ChildFix",
|
|
1818
1818
|
class: "svg-icon-content",
|
|
1819
1819
|
style: { width: "24px", height: "24px" },
|
|
1820
1820
|
onClick: (L) => m(I)
|
|
1821
1821
|
}, null, 8, ["onClick"]),
|
|
1822
|
-
|
|
1822
|
+
G(B, {
|
|
1823
1823
|
name: "ChildDelete",
|
|
1824
1824
|
class: "svg-icon-content",
|
|
1825
1825
|
style: { width: "24px", height: "24px" },
|
|
@@ -1834,20 +1834,20 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1834
1834
|
], -1)),
|
|
1835
1835
|
x("div", $i, [
|
|
1836
1836
|
E[5] || (E[5] = x("div", { class: "operate-center-content" }, ke("是否自动撑宽"), -1)),
|
|
1837
|
-
|
|
1837
|
+
G(Ta, {
|
|
1838
1838
|
modelValue: X.value,
|
|
1839
1839
|
"onUpdate:modelValue": E[0] || (E[0] = (I) => X.value = I)
|
|
1840
1840
|
}, null, 8, ["modelValue"])
|
|
1841
1841
|
])
|
|
1842
1842
|
]),
|
|
1843
|
-
|
|
1843
|
+
G(Je, {
|
|
1844
1844
|
visible: f.value,
|
|
1845
1845
|
onBeforeDestroy: oe,
|
|
1846
1846
|
width: 840
|
|
1847
1847
|
}, {
|
|
1848
1848
|
default: ce(() => [
|
|
1849
1849
|
x("div", Bi, [
|
|
1850
|
-
(
|
|
1850
|
+
(ee(), Se(Ke, {
|
|
1851
1851
|
rowContents: F.value,
|
|
1852
1852
|
key: F.value,
|
|
1853
1853
|
isEnableWrap: !0,
|
|
@@ -1859,7 +1859,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1859
1859
|
]),
|
|
1860
1860
|
footer: ce(() => [
|
|
1861
1861
|
x("div", Ti, [
|
|
1862
|
-
|
|
1862
|
+
G(o, {
|
|
1863
1863
|
onClick: oe,
|
|
1864
1864
|
class: "cancel-button button",
|
|
1865
1865
|
id: "themeBorderButton"
|
|
@@ -1870,7 +1870,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1870
1870
|
_: 1,
|
|
1871
1871
|
__: [7]
|
|
1872
1872
|
}),
|
|
1873
|
-
|
|
1873
|
+
G(o, {
|
|
1874
1874
|
class: "ok-button button",
|
|
1875
1875
|
onClick: K,
|
|
1876
1876
|
id: "themeButton"
|
|
@@ -1885,14 +1885,14 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1885
1885
|
]),
|
|
1886
1886
|
_: 1
|
|
1887
1887
|
}, 8, ["visible"]),
|
|
1888
|
-
|
|
1888
|
+
G(Je, {
|
|
1889
1889
|
visible: w.value,
|
|
1890
1890
|
onBeforeDestroy: oe,
|
|
1891
1891
|
width: 840
|
|
1892
1892
|
}, {
|
|
1893
1893
|
default: ce(() => [
|
|
1894
1894
|
x("div", Si, [
|
|
1895
|
-
(
|
|
1895
|
+
(ee(), Se(Ke, {
|
|
1896
1896
|
rowContents: pe.value,
|
|
1897
1897
|
key: pe.value,
|
|
1898
1898
|
isEnableWrap: !0,
|
|
@@ -1917,7 +1917,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1917
1917
|
]);
|
|
1918
1918
|
};
|
|
1919
1919
|
}
|
|
1920
|
-
}, xa = /* @__PURE__ */ je(Fi, [["__scopeId", "data-v-
|
|
1920
|
+
}, xa = /* @__PURE__ */ je(Fi, [["__scopeId", "data-v-8cbdc3ef"]]), Oi = { class: "step-module content" }, Li = { class: "module-data" }, Ri = { class: "step-module layout" }, Pi = { class: "form-content" }, ji = /* @__PURE__ */ yl({
|
|
1921
1921
|
__name: "operate",
|
|
1922
1922
|
props: {
|
|
1923
1923
|
itemContents: {
|
|
@@ -1931,7 +1931,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1931
1931
|
},
|
|
1932
1932
|
emits: ["change"],
|
|
1933
1933
|
setup(p, { emit: k }) {
|
|
1934
|
-
const n = p, s = k, f =
|
|
1934
|
+
const n = p, s = k, f = M([
|
|
1935
1935
|
{
|
|
1936
1936
|
label: "方向:",
|
|
1937
1937
|
prop: "direction",
|
|
@@ -1995,7 +1995,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
1995
1995
|
],
|
|
1996
1996
|
value: !1
|
|
1997
1997
|
}
|
|
1998
|
-
]), F =
|
|
1998
|
+
]), F = M([
|
|
1999
1999
|
{
|
|
2000
2000
|
label: "",
|
|
2001
2001
|
prop: "index",
|
|
@@ -2015,7 +2015,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2015
2015
|
type: "input",
|
|
2016
2016
|
value: ""
|
|
2017
2017
|
}
|
|
2018
|
-
]),
|
|
2018
|
+
]), P = M([
|
|
2019
2019
|
{
|
|
2020
2020
|
label: "取消",
|
|
2021
2021
|
background: "#c0c4cc"
|
|
@@ -2028,9 +2028,9 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2028
2028
|
visible: !1,
|
|
2029
2029
|
width: "40%",
|
|
2030
2030
|
title: "步骤条"
|
|
2031
|
-
}), R =
|
|
2031
|
+
}), R = M("create"), N = M({}), S = M([]), X = (A) => {
|
|
2032
2032
|
var m;
|
|
2033
|
-
|
|
2033
|
+
N.value = A, s("change", (m = ue()) == null ? void 0 : m.compData);
|
|
2034
2034
|
}, Y = (A, m) => {
|
|
2035
2035
|
var W, c;
|
|
2036
2036
|
switch (A) {
|
|
@@ -2081,7 +2081,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2081
2081
|
},
|
|
2082
2082
|
{
|
|
2083
2083
|
key: "stepConfig",
|
|
2084
|
-
contents:
|
|
2084
|
+
contents: N.value
|
|
2085
2085
|
}
|
|
2086
2086
|
]
|
|
2087
2087
|
}), de = () => {
|
|
@@ -2089,20 +2089,20 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2089
2089
|
};
|
|
2090
2090
|
return Ne(() => n == null ? void 0 : n.itemContents, (A) => {
|
|
2091
2091
|
var m, W;
|
|
2092
|
-
A && (
|
|
2092
|
+
A && (N.value = ((m = A == null ? void 0 : A.find((c) => c.key === "stepConfig")) == null ? void 0 : m.contents) ?? {}, S.value = ((W = A == null ? void 0 : A.find((c) => c.key === "stepList")) == null ? void 0 : W.contents) ?? []);
|
|
2093
2093
|
}, { immediate: !0 }), (A, m) => {
|
|
2094
2094
|
const W = Be("svg-icon"), c = Be("el-button");
|
|
2095
|
-
return
|
|
2095
|
+
return ee(), fe(Te, null, [
|
|
2096
2096
|
x("div", null, [
|
|
2097
2097
|
x("div", Oi, [
|
|
2098
2098
|
m[2] || (m[2] = x("h4", { class: "module-title" }, "内容", -1)),
|
|
2099
|
-
|
|
2099
|
+
G(c, {
|
|
2100
2100
|
class: "module-icon",
|
|
2101
2101
|
id: "themeButton",
|
|
2102
2102
|
onClick: m[0] || (m[0] = (h) => Y("create"))
|
|
2103
2103
|
}, {
|
|
2104
2104
|
icon: ce(() => [
|
|
2105
|
-
|
|
2105
|
+
G(W, {
|
|
2106
2106
|
name: "Plus",
|
|
2107
2107
|
class: "icon-size"
|
|
2108
2108
|
})
|
|
@@ -2115,13 +2115,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2115
2115
|
})
|
|
2116
2116
|
]),
|
|
2117
2117
|
x("div", Li, [
|
|
2118
|
-
(
|
|
2118
|
+
(ee(!0), fe(Te, null, Oe(S.value, (h, a) => (ee(), fe("div", {
|
|
2119
2119
|
class: "module-data-item",
|
|
2120
2120
|
key: a
|
|
2121
2121
|
}, [
|
|
2122
2122
|
x("span", null, ke(h == null ? void 0 : h.title), 1),
|
|
2123
2123
|
x("div", null, [
|
|
2124
|
-
|
|
2124
|
+
G(c, {
|
|
2125
2125
|
type: "primary",
|
|
2126
2126
|
size: "small",
|
|
2127
2127
|
onClick: (d) => Y("update", { ...h, index: a + 1 })
|
|
@@ -2132,7 +2132,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2132
2132
|
_: 2,
|
|
2133
2133
|
__: [3]
|
|
2134
2134
|
}, 1032, ["onClick"]),
|
|
2135
|
-
|
|
2135
|
+
G(c, {
|
|
2136
2136
|
type: "danger",
|
|
2137
2137
|
size: "small",
|
|
2138
2138
|
onClick: (d) => Y("delete", a)
|
|
@@ -2148,13 +2148,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2148
2148
|
]),
|
|
2149
2149
|
x("div", Ri, [
|
|
2150
2150
|
m[5] || (m[5] = x("div", { class: "module-title" }, "布局", -1)),
|
|
2151
|
-
|
|
2151
|
+
G(Ke, {
|
|
2152
2152
|
rowContents: f.value,
|
|
2153
2153
|
onChange: X
|
|
2154
2154
|
}, null, 8, ["rowContents"])
|
|
2155
2155
|
])
|
|
2156
2156
|
]),
|
|
2157
|
-
|
|
2157
|
+
G(Je, {
|
|
2158
2158
|
visible: w.visible,
|
|
2159
2159
|
title: w.title,
|
|
2160
2160
|
onBeforeDestroy: de,
|
|
@@ -2162,13 +2162,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2162
2162
|
}, {
|
|
2163
2163
|
default: ce(() => [
|
|
2164
2164
|
x("div", Pi, [
|
|
2165
|
-
(
|
|
2165
|
+
(ee(), Se(Ke, {
|
|
2166
2166
|
rowContents: F.value,
|
|
2167
2167
|
key: F.value,
|
|
2168
2168
|
isEnableWrap: !1,
|
|
2169
2169
|
isButtonRow: !1,
|
|
2170
2170
|
isStartJustify: !1,
|
|
2171
|
-
buttonValue:
|
|
2171
|
+
buttonValue: P.value,
|
|
2172
2172
|
onOnButtonClick: pe
|
|
2173
2173
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2174
2174
|
])
|
|
@@ -2192,7 +2192,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2192
2192
|
},
|
|
2193
2193
|
emits: ["change"],
|
|
2194
2194
|
setup(p, { emit: k }) {
|
|
2195
|
-
const n = p, s = k, f =
|
|
2195
|
+
const n = p, s = k, f = M("create"), F = M({}), P = M([]), w = M([
|
|
2196
2196
|
{
|
|
2197
2197
|
label: "方向:",
|
|
2198
2198
|
prop: "placement",
|
|
@@ -2291,7 +2291,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2291
2291
|
],
|
|
2292
2292
|
value: !0
|
|
2293
2293
|
}
|
|
2294
|
-
]), R =
|
|
2294
|
+
]), R = M([
|
|
2295
2295
|
{
|
|
2296
2296
|
label: "",
|
|
2297
2297
|
prop: "index",
|
|
@@ -2311,7 +2311,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2311
2311
|
type: "datetime",
|
|
2312
2312
|
value: ""
|
|
2313
2313
|
}
|
|
2314
|
-
]),
|
|
2314
|
+
]), N = M([
|
|
2315
2315
|
{
|
|
2316
2316
|
label: "取消",
|
|
2317
2317
|
background: "#c0c4cc"
|
|
@@ -2341,7 +2341,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2341
2341
|
}), f.value = "update", S.visible = !0;
|
|
2342
2342
|
break;
|
|
2343
2343
|
case "delete":
|
|
2344
|
-
|
|
2344
|
+
P.value.splice(m, 1), f.value = "delete";
|
|
2345
2345
|
break;
|
|
2346
2346
|
}
|
|
2347
2347
|
}, pe = (A) => {
|
|
@@ -2352,13 +2352,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2352
2352
|
a[d] === "" && delete a[d];
|
|
2353
2353
|
}), f.value) {
|
|
2354
2354
|
case "create":
|
|
2355
|
-
console.log(1335,
|
|
2355
|
+
console.log(1335, P.value, a), (W = P.value) == null || W.push({
|
|
2356
2356
|
...a,
|
|
2357
|
-
index: ((m =
|
|
2357
|
+
index: ((m = P.value) == null ? void 0 : m.length) + 1
|
|
2358
2358
|
});
|
|
2359
2359
|
break;
|
|
2360
2360
|
case "update":
|
|
2361
|
-
|
|
2361
|
+
P.value = (c = P.value) == null ? void 0 : c.map((d) => d.index === (a == null ? void 0 : a.index) ? {
|
|
2362
2362
|
...d,
|
|
2363
2363
|
content: a == null ? void 0 : a.content,
|
|
2364
2364
|
timestamp: a == null ? void 0 : a.timestamp
|
|
@@ -2373,7 +2373,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2373
2373
|
compData: [
|
|
2374
2374
|
{
|
|
2375
2375
|
key: "timeLineList",
|
|
2376
|
-
contents:
|
|
2376
|
+
contents: P.value
|
|
2377
2377
|
},
|
|
2378
2378
|
{
|
|
2379
2379
|
key: "timeLineConfig",
|
|
@@ -2385,20 +2385,20 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2385
2385
|
};
|
|
2386
2386
|
return Ne(() => n == null ? void 0 : n.itemContents, (A) => {
|
|
2387
2387
|
var m, W;
|
|
2388
|
-
A && (F.value = ((m = A == null ? void 0 : A.find((c) => c.key === "timeLineConfig")) == null ? void 0 : m.contents) ?? {},
|
|
2388
|
+
A && (F.value = ((m = A == null ? void 0 : A.find((c) => c.key === "timeLineConfig")) == null ? void 0 : m.contents) ?? {}, P.value = ((W = A == null ? void 0 : A.find((c) => c.key === "timeLineList")) == null ? void 0 : W.contents) ?? []);
|
|
2389
2389
|
}, { immediate: !0 }), (A, m) => {
|
|
2390
2390
|
const W = Be("svg-icon"), c = Be("el-button");
|
|
2391
|
-
return
|
|
2391
|
+
return ee(), fe(Te, null, [
|
|
2392
2392
|
x("div", null, [
|
|
2393
2393
|
x("div", Ni, [
|
|
2394
2394
|
m[2] || (m[2] = x("h4", { class: "module-title" }, "内容", -1)),
|
|
2395
|
-
|
|
2395
|
+
G(c, {
|
|
2396
2396
|
class: "module-icon",
|
|
2397
2397
|
id: "themeButton",
|
|
2398
2398
|
onClick: m[0] || (m[0] = (h) => Y("create"))
|
|
2399
2399
|
}, {
|
|
2400
2400
|
icon: ce(() => [
|
|
2401
|
-
|
|
2401
|
+
G(W, {
|
|
2402
2402
|
name: "Plus",
|
|
2403
2403
|
class: "icon-size"
|
|
2404
2404
|
})
|
|
@@ -2411,13 +2411,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2411
2411
|
})
|
|
2412
2412
|
]),
|
|
2413
2413
|
x("div", Ui, [
|
|
2414
|
-
(
|
|
2414
|
+
(ee(!0), fe(Te, null, Oe(P.value, (h, a) => (ee(), fe("div", {
|
|
2415
2415
|
class: "module-data-item",
|
|
2416
2416
|
key: a
|
|
2417
2417
|
}, [
|
|
2418
2418
|
x("span", null, ke(h == null ? void 0 : h.content), 1),
|
|
2419
2419
|
x("div", null, [
|
|
2420
|
-
|
|
2420
|
+
G(c, {
|
|
2421
2421
|
type: "primary",
|
|
2422
2422
|
size: "small",
|
|
2423
2423
|
onClick: (d) => Y("update", { ...h, index: a + 1 })
|
|
@@ -2428,7 +2428,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2428
2428
|
_: 2,
|
|
2429
2429
|
__: [3]
|
|
2430
2430
|
}, 1032, ["onClick"]),
|
|
2431
|
-
|
|
2431
|
+
G(c, {
|
|
2432
2432
|
type: "danger",
|
|
2433
2433
|
size: "small",
|
|
2434
2434
|
onClick: (d) => Y("delete", a)
|
|
@@ -2444,13 +2444,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2444
2444
|
]),
|
|
2445
2445
|
x("div", Ki, [
|
|
2446
2446
|
m[5] || (m[5] = x("div", { class: "module-title" }, "布局", -1)),
|
|
2447
|
-
|
|
2447
|
+
G(Ke, {
|
|
2448
2448
|
rowContents: w.value,
|
|
2449
2449
|
onChange: X
|
|
2450
2450
|
}, null, 8, ["rowContents"])
|
|
2451
2451
|
])
|
|
2452
2452
|
]),
|
|
2453
|
-
|
|
2453
|
+
G(Je, {
|
|
2454
2454
|
visible: S.visible,
|
|
2455
2455
|
title: S.title,
|
|
2456
2456
|
onBeforeDestroy: de,
|
|
@@ -2458,13 +2458,13 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2458
2458
|
}, {
|
|
2459
2459
|
default: ce(() => [
|
|
2460
2460
|
x("div", Wi, [
|
|
2461
|
-
(
|
|
2461
|
+
(ee(), Se(Ke, {
|
|
2462
2462
|
rowContents: R.value,
|
|
2463
2463
|
key: R.value,
|
|
2464
2464
|
isEnableWrap: !1,
|
|
2465
2465
|
isButtonRow: !1,
|
|
2466
2466
|
isStartJustify: !1,
|
|
2467
|
-
buttonValue:
|
|
2467
|
+
buttonValue: N.value,
|
|
2468
2468
|
onOnButtonClick: pe
|
|
2469
2469
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2470
2470
|
])
|
|
@@ -2476,7 +2476,7 @@ const fs = (p) => p.match(/\((.*)\)/)[1], hs = Ba("formComp", {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
}), Mi = /* @__PURE__ */ je(zi, [["__scopeId", "data-v-f6b5d4fc"]]), Ji = {};
|
|
2478
2478
|
function Gi(p, k) {
|
|
2479
|
-
return
|
|
2479
|
+
return ee(), fe("div");
|
|
2480
2480
|
}
|
|
2481
2481
|
const Hi = /* @__PURE__ */ je(Ji, [["render", Gi]]), qi = { class: "extra-content" }, Qi = { key: 0 }, Xi = { key: 1 }, Yi = { class: "dialog-footer" }, Zi = {
|
|
2482
2482
|
__name: "index",
|
|
@@ -2498,7 +2498,7 @@ const Hi = /* @__PURE__ */ je(Ji, [["render", Gi]]), qi = { class: "extra-conten
|
|
|
2498
2498
|
},
|
|
2499
2499
|
emits: ["change"],
|
|
2500
2500
|
setup(p, { emit: k }) {
|
|
2501
|
-
const n = p, s =
|
|
2501
|
+
const n = p, s = M(0), f = M(), F = M(), P = k, w = M(!1), R = M({}), N = M({}), S = M();
|
|
2502
2502
|
Ne(
|
|
2503
2503
|
() => [n.itemData],
|
|
2504
2504
|
() => {
|
|
@@ -2521,19 +2521,19 @@ const Hi = /* @__PURE__ */ je(Ji, [["render", Gi]]), qi = { class: "extra-conten
|
|
|
2521
2521
|
const X = (c, h, a, d) => {
|
|
2522
2522
|
var O;
|
|
2523
2523
|
let _ = {};
|
|
2524
|
-
((O = c == null ? void 0 : c[0]) == null ? void 0 : O.contents) === "详情" && (w.value = !0, _[h] = c, F.value = c == null ? void 0 : c.filter((T) => (T == null ? void 0 : T.key) !== "tableContentName"), R.value = _,
|
|
2524
|
+
((O = c == null ? void 0 : c[0]) == null ? void 0 : O.contents) === "详情" && (w.value = !0, _[h] = c, F.value = c == null ? void 0 : c.filter((T) => (T == null ? void 0 : T.key) !== "tableContentName"), R.value = _, N.value = a, S.value = d.id);
|
|
2525
2525
|
}, Y = (c) => {
|
|
2526
2526
|
var T, ne, K, oe;
|
|
2527
2527
|
const h = (ne = (T = Object.values(l(R.value))) == null ? void 0 : T[0]) == null ? void 0 : ne.filter((i) => (i == null ? void 0 : i.key) === "tableContentName"), a = (oe = (K = Object.values(l(R.value))) == null ? void 0 : K[0]) == null ? void 0 : oe.filter((i) => (i == null ? void 0 : i.key) !== "tableContentName"), d = a == null ? void 0 : a.map((i, E) => {
|
|
2528
2528
|
var B;
|
|
2529
2529
|
return E === c.index && (i == null ? void 0 : i.comp) === "Table" && (i.compData = (B = i.compData) == null ? void 0 : B.map((o) => {
|
|
2530
|
-
var I,
|
|
2531
|
-
return (o == null ? void 0 : o.key) === "tableContents" && (o.contents = (
|
|
2530
|
+
var I, J;
|
|
2531
|
+
return (o == null ? void 0 : o.key) === "tableContents" && (o.contents = (J = (I = c.content) == null ? void 0 : I.map((L) => {
|
|
2532
2532
|
let u = {};
|
|
2533
2533
|
for (let b in L)
|
|
2534
2534
|
b !== "id" && (u[b] = L[b]);
|
|
2535
2535
|
return u;
|
|
2536
|
-
})) == null ? void 0 :
|
|
2536
|
+
})) == null ? void 0 : J.map((L) => Object.values(L))), o;
|
|
2537
2537
|
})), i;
|
|
2538
2538
|
});
|
|
2539
2539
|
d.unshift(h == null ? void 0 : h[0]);
|
|
@@ -2542,7 +2542,7 @@ const Hi = /* @__PURE__ */ je(Ji, [["render", Gi]]), qi = { class: "extra-conten
|
|
|
2542
2542
|
O[i] = d;
|
|
2543
2543
|
R.value = O;
|
|
2544
2544
|
}, pe = () => {
|
|
2545
|
-
w.value = !1, R.value = {},
|
|
2545
|
+
w.value = !1, R.value = {}, N.value = {}, S.value = void 0, s.value++;
|
|
2546
2546
|
}, ue = (c) => {
|
|
2547
2547
|
var T, ne, K, oe;
|
|
2548
2548
|
const h = (ne = (T = Object.values(l(R.value))) == null ? void 0 : T[0]) == null ? void 0 : ne.filter((i) => (i == null ? void 0 : i.key) === "tableContentName"), a = (oe = (K = Object.values(l(R.value))) == null ? void 0 : K[0]) == null ? void 0 : oe.filter((i) => (i == null ? void 0 : i.key) !== "tableContentName"), d = a == null ? void 0 : a.map((i, E) => (E === c.index && (i.compData = c.contents), i));
|
|
@@ -2554,24 +2554,24 @@ const Hi = /* @__PURE__ */ je(Ji, [["render", Gi]]), qi = { class: "extra-conten
|
|
|
2554
2554
|
}, de = () => {
|
|
2555
2555
|
var h, a;
|
|
2556
2556
|
let c = {};
|
|
2557
|
-
for (let d in
|
|
2558
|
-
d === ((h = Object.keys(R.value)) == null ? void 0 : h[0]) ? c[d] = (a = Object.values(R.value)) == null ? void 0 : a[0] : c[d] =
|
|
2559
|
-
|
|
2557
|
+
for (let d in N.value)
|
|
2558
|
+
d === ((h = Object.keys(R.value)) == null ? void 0 : h[0]) ? c[d] = (a = Object.values(R.value)) == null ? void 0 : a[0] : c[d] = N.value[d];
|
|
2559
|
+
P("change", {
|
|
2560
2560
|
buttonName: "编辑",
|
|
2561
2561
|
index: S.value,
|
|
2562
2562
|
singleContent: c
|
|
2563
|
-
}, "methodData"), w.value = !1, R.value = {},
|
|
2563
|
+
}, "methodData"), w.value = !1, R.value = {}, N.value = {}, S.value = void 0;
|
|
2564
2564
|
}, A = () => {
|
|
2565
|
-
w.value = !1, R.value = {},
|
|
2565
|
+
w.value = !1, R.value = {}, N.value = {}, S.value = void 0;
|
|
2566
2566
|
}, m = (c) => {
|
|
2567
|
-
|
|
2567
|
+
P("change", c, "methodData");
|
|
2568
2568
|
}, W = (c) => sa(c);
|
|
2569
2569
|
return (c, h) => {
|
|
2570
2570
|
const a = Be("el-button");
|
|
2571
|
-
return
|
|
2572
|
-
(
|
|
2573
|
-
(d == null ? void 0 : d.key) === "extra" ? (
|
|
2574
|
-
(
|
|
2571
|
+
return ee(), fe("div", qi, [
|
|
2572
|
+
(ee(!0), fe(Te, null, Oe(f.value, (d, _) => (ee(), fe("div", { key: s.value }, [
|
|
2573
|
+
(d == null ? void 0 : d.key) === "extra" ? (ee(), fe("div", Qi)) : (ee(), fe("div", Xi, [
|
|
2574
|
+
(ee(), Se(Kl(W(d.comp)), {
|
|
2575
2575
|
itemData: d == null ? void 0 : d.compData,
|
|
2576
2576
|
childItemData: d == null ? void 0 : d.itemChildData,
|
|
2577
2577
|
key: _,
|
|
@@ -2581,16 +2581,16 @@ const Hi = /* @__PURE__ */ je(Ji, [["render", Gi]]), qi = { class: "extra-conten
|
|
|
2581
2581
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2582
2582
|
]))
|
|
2583
2583
|
]))), 128)),
|
|
2584
|
-
|
|
2584
|
+
G(Je, {
|
|
2585
2585
|
visible: w.value,
|
|
2586
2586
|
onBeforeDestroy: A
|
|
2587
2587
|
}, {
|
|
2588
2588
|
default: ce(() => [
|
|
2589
|
-
(
|
|
2589
|
+
(ee(!0), fe(Te, null, Oe(F.value, (d, _) => (ee(), fe("div", {
|
|
2590
2590
|
key: _,
|
|
2591
2591
|
class: "extra-dialog"
|
|
2592
2592
|
}, [
|
|
2593
|
-
(
|
|
2593
|
+
(ee(), Se(Kl(W(d.comp)), {
|
|
2594
2594
|
itemData: d == null ? void 0 : d.compData,
|
|
2595
2595
|
onChange: Y,
|
|
2596
2596
|
childItemData: d == null ? void 0 : d.itemChildData,
|
|
@@ -2603,7 +2603,7 @@ const Hi = /* @__PURE__ */ je(Ji, [["render", Gi]]), qi = { class: "extra-conten
|
|
|
2603
2603
|
]),
|
|
2604
2604
|
footer: ce(() => [
|
|
2605
2605
|
x("div", Yi, [
|
|
2606
|
-
|
|
2606
|
+
G(a, {
|
|
2607
2607
|
class: "cancel-button footer-button",
|
|
2608
2608
|
onClick: pe,
|
|
2609
2609
|
id: "themeBorderButton"
|
|
@@ -2614,7 +2614,7 @@ const Hi = /* @__PURE__ */ je(Ji, [["render", Gi]]), qi = { class: "extra-conten
|
|
|
2614
2614
|
_: 1,
|
|
2615
2615
|
__: [0]
|
|
2616
2616
|
}),
|
|
2617
|
-
|
|
2617
|
+
G(a, {
|
|
2618
2618
|
class: "confirm-button footer-button",
|
|
2619
2619
|
onClick: de,
|
|
2620
2620
|
id: "themeButton"
|
|
@@ -2633,24 +2633,24 @@ const Hi = /* @__PURE__ */ je(Ji, [["render", Gi]]), qi = { class: "extra-conten
|
|
|
2633
2633
|
};
|
|
2634
2634
|
}
|
|
2635
2635
|
}, en = /* @__PURE__ */ je(Zi, [["__scopeId", "data-v-2d9c5ab2"]]), Xl = (p) => {
|
|
2636
|
-
var w, R,
|
|
2636
|
+
var w, R, N, S, X, Y, pe, ue, de, A, m, W, c, h, a, d, _, O, T, ne, K, oe, i, E;
|
|
2637
2637
|
const k = Zl(p) ? (w = nl(l(p))) == null ? void 0 : w[0] : "[]", n = Zl(p) ? "[" + ((R = nl(l(p))) == null ? void 0 : R[2]) + "]" : "[" + p + "]";
|
|
2638
2638
|
let s = [], f = [], F = "";
|
|
2639
|
-
const
|
|
2640
|
-
if (il(
|
|
2639
|
+
const P = (S = (N = n == null ? void 0 : n.trim()) == null ? void 0 : N.slice(1, (n == null ? void 0 : n.trim().length) - 1)) == null ? void 0 : S.replaceAll("'", '"');
|
|
2640
|
+
if (il(P) ? s = JSON.parse(P) : il((pe = (Y = (X = P == null ? void 0 : P.split("}")) == null ? void 0 : X[0]) == null ? void 0 : Y.replace(":", "")) == null ? void 0 : pe.replaceAll("\\", "\\\\")) && (s = JSON.parse((A = (de = (ue = P == null ? void 0 : P.split("}")) == null ? void 0 : ue[0]) == null ? void 0 : de.replace(":", "")) == null ? void 0 : A.replaceAll("\\", "\\\\"))), s = s != null && s.every((B) => Array.isArray(B) && B.every((o) => Array.isArray(o))) ? s == null ? void 0 : s[0] : s, !(k != null && k.includes("(")))
|
|
2641
2641
|
!k.includes("{") && il(k == null ? void 0 : k.replaceAll("'", '"')) ? f = JSON.parse(k == null ? void 0 : k.replaceAll("'", '"')) : il((W = (m = k == null ? void 0 : k.split("{")) == null ? void 0 : m[1]) == null ? void 0 : W.replaceAll("'", '"')) && (f = JSON.parse((h = (c = k == null ? void 0 : k.split("{")) == null ? void 0 : c[1]) == null ? void 0 : h.replaceAll("'", '"')));
|
|
2642
2642
|
else {
|
|
2643
2643
|
let B = [];
|
|
2644
2644
|
if (((d = (a = k == null ? void 0 : k.slice(1, (k == null ? void 0 : k.length) - 1)) == null ? void 0 : a.split(",")) == null ? void 0 : d.length) > 1)
|
|
2645
2645
|
(O = (_ = k == null ? void 0 : k.slice(1, (k == null ? void 0 : k.length) - 1)) == null ? void 0 : _.split(",")) == null || O.forEach((o) => {
|
|
2646
|
-
var I,
|
|
2646
|
+
var I, J, L, u, b, $, Q, me, re, t, D, g, Z, U, he, le, ae, te, we, ye, H, e, r, y;
|
|
2647
2647
|
if (!(o != null && o.includes("(")))
|
|
2648
2648
|
B.push(o == null ? void 0 : o.replaceAll("'", ""));
|
|
2649
2649
|
else if (o != null && o.includes("[")) {
|
|
2650
2650
|
let v;
|
|
2651
|
-
v = (
|
|
2651
|
+
v = (U = (Z = (g = (D = o == null ? void 0 : o.split("[")) == null ? void 0 : D[((t = o == null ? void 0 : o.split("[")) == null ? void 0 : t.length) - 1]) == null ? void 0 : g.split("]")) == null ? void 0 : Z[0]) == null ? void 0 : U.replaceAll("'", ""), v = (v == null ? void 0 : v[0]) === ":" ? '""' + v : v, o != null && o.includes("#") && (v = ((le = (he = o == null ? void 0 : o.split("#")) == null ? void 0 : he[0]) == null ? void 0 : le.replaceAll("'", "")) + "#" + v), v.includes(":") ? v = v + "[" + ((ye = (we = (te = o == null ? void 0 : o.split("(")) == null ? void 0 : te[((ae = o == null ? void 0 : o.split("(")) == null ? void 0 : ae.length) - 1]) == null ? void 0 : we.split(")")) == null ? void 0 : ye[0].replaceAll(":", "/").replaceAll("'", "")) + "]" : v = v + "[" + ((y = (r = (e = o == null ? void 0 : o.split("(")) == null ? void 0 : e[((H = o == null ? void 0 : o.split("(")) == null ? void 0 : H.length) - 1]) == null ? void 0 : r.split(")")) == null ? void 0 : y[0].replaceAll(":", "/").replaceAll("'", "")) + "]()", B.push(v == null ? void 0 : v.replaceAll('"', "'"));
|
|
2652
2652
|
} else {
|
|
2653
|
-
let v = (b = (u = (L = (
|
|
2653
|
+
let v = (b = (u = (L = (J = o == null ? void 0 : o.split(":")) == null ? void 0 : J[((I = o == null ? void 0 : o.split(":")) == null ? void 0 : I.length) - 1]) == null ? void 0 : L.split(")")) == null ? void 0 : u[0]) == null ? void 0 : b.replaceAll("'", "");
|
|
2654
2654
|
v = v + "[" + ((re = (me = (Q = o == null ? void 0 : o.split("(")) == null ? void 0 : Q[(($ = o == null ? void 0 : o.split("(")) == null ? void 0 : $.length) - 1]) == null ? void 0 : me.split(")")) == null ? void 0 : re[0].replaceAll(":", "/").replaceAll("'", "")) + "]", B.push(v);
|
|
2655
2655
|
}
|
|
2656
2656
|
}), f = B;
|
|
@@ -2677,14 +2677,14 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2677
2677
|
let n = p;
|
|
2678
2678
|
const s = [];
|
|
2679
2679
|
let f = "", F = 0;
|
|
2680
|
-
for (const
|
|
2681
|
-
F++,
|
|
2680
|
+
for (const P of n)
|
|
2681
|
+
F++, P.includes("{") || f.includes("{") || P.includes("[") || f.includes("[") || P.includes("【") || f.includes("【") || P.includes("(") || f.includes("(") || P.includes("(") || f.includes("(") || P.includes("/*") || f.includes("/*") ? (f += P.trim(), l(f).split("{").length - 1 === l(f).split("}").length - 1 && l(f).split("【").length - 1 === l(f).split("】").length - 1 && l(f).split("[").length - 1 === l(f).split("]").length - 1 && l(f).split("(").length - 1 === l(f).split(")").length - 1 && l(f).split("(").length - 1 === l(f).split(")").length - 1 && l(f).split("/*").length - 1 === l(f).split("*/").length - 1 && f[f.length - 1] !== "," && f[f.length - 1] === k ? (s.push(f.replace(/\/\*[\s\S]*?\*\//g, "")), f = "") : F === (p == null ? void 0 : p.length) && s.push(f.replace(/\/\*[\s\S]*?\*\//g, ""))) : (f += P.trim(), (f == null ? void 0 : f[(f == null ? void 0 : f.length) - 1]) === k && (s.push(f.replace(/\/\*[\s\S]*?\*\//g, "")), f = ""));
|
|
2682
2682
|
return s;
|
|
2683
2683
|
}, Zl = (p) => /^\[.*?\]:\[.*?\]$/.exec(l(p)), sn = (p) => {
|
|
2684
|
-
var k, n, s, f, F,
|
|
2684
|
+
var k, n, s, f, F, P, w, R, N, S, X, Y, pe, ue, de, A, m, W, c, h, a, d, _, O, T, ne, K, oe, i, E, B, o, I, J, L, u, b, $, Q, me, re, t, D, g, Z, U, he, le, ae;
|
|
2685
2685
|
if (an(p)) {
|
|
2686
|
-
let te = {}, we = (s = (n = (k = p == null ? void 0 : p.replace(":", De)) == null ? void 0 : k.split(De)) == null ? void 0 : n[0]) == null ? void 0 : s.replaceAll("'", ""), ye = "",
|
|
2687
|
-
return
|
|
2686
|
+
let te = {}, we = (s = (n = (k = p == null ? void 0 : p.replace(":", De)) == null ? void 0 : k.split(De)) == null ? void 0 : n[0]) == null ? void 0 : s.replaceAll("'", ""), ye = "", H = (F = (f = p == null ? void 0 : p.replace(":", De)) == null ? void 0 : f.split(De)) == null ? void 0 : F[1];
|
|
2687
|
+
return H.includes("{") || H.includes("(") ? (H.includes("{") ? ye = ye + ((N = (R = (w = (P = H == null ? void 0 : H.split("{")) == null ? void 0 : P[1]) == null ? void 0 : w.split("}")) == null ? void 0 : R[0]) == null ? void 0 : N.replace(":", "/").replaceAll("'", "")) + "[" : ye = ye + ((pe = (Y = (X = (S = H == null ? void 0 : H.split("(")) == null ? void 0 : S[1]) == null ? void 0 : X.split(")")) == null ? void 0 : Y[0]) == null ? void 0 : pe.replace(":", "/").replaceAll("'", "")) + "[", ye = ye + ((A = (de = (ue = H == null ? void 0 : H.split("[")) == null ? void 0 : ue[1]) == null ? void 0 : de.split("]")) == null ? void 0 : A[0]) + "]") : ye = (c = (W = (m = p == null ? void 0 : p.replace(":", De)) == null ? void 0 : m.split(De)) == null ? void 0 : W[1]) == null ? void 0 : c.replaceAll("'", ""), te[we] = ye, {
|
|
2688
2688
|
groupName: "",
|
|
2689
2689
|
formContents: [[te]]
|
|
2690
2690
|
};
|
|
@@ -2692,18 +2692,18 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2692
2692
|
let te = {}, we = "", ye = "";
|
|
2693
2693
|
if (p.includes("#")) {
|
|
2694
2694
|
we = (a = (h = p == null ? void 0 : p.split("#")) == null ? void 0 : h[0]) == null ? void 0 : a.replaceAll("'", "");
|
|
2695
|
-
let
|
|
2696
|
-
|
|
2695
|
+
let H = (_ = (d = p == null ? void 0 : p.split("#")) == null ? void 0 : d[1]) == null ? void 0 : _.replaceAll("'", "");
|
|
2696
|
+
H != null && H.includes("{") ? ye = ye + ((K = (ne = (T = (O = H == null ? void 0 : H.split("{")) == null ? void 0 : O[1]) == null ? void 0 : T.split("}")) == null ? void 0 : ne[0]) == null ? void 0 : K.replaceAll(":", "/").replaceAll("'", "")) + "[" : ye = ye + ((B = (E = (i = (oe = H == null ? void 0 : H.split("(")) == null ? void 0 : oe[1]) == null ? void 0 : i.split(")")) == null ? void 0 : E[0]) == null ? void 0 : B.replaceAll(":", "/").replaceAll("'", "")) + "[", ye = ye + ((J = (I = (o = H == null ? void 0 : H.split("[")) == null ? void 0 : o[1]) == null ? void 0 : I.split("]")) == null ? void 0 : J[0]) + "]";
|
|
2697
2697
|
} else {
|
|
2698
|
-
let
|
|
2699
|
-
if (($ =
|
|
2698
|
+
let H = (b = (u = (L = p == null ? void 0 : p.split("]")) == null ? void 0 : L[0]) == null ? void 0 : u.split("[")) == null ? void 0 : b[1];
|
|
2699
|
+
if (($ = H == null ? void 0 : H.split(":")) == null || $.forEach((e, r) => {
|
|
2700
2700
|
var y;
|
|
2701
|
-
((y =
|
|
2701
|
+
((y = H == null ? void 0 : H.split(":")) == null ? void 0 : y.length) - 1 === r && (we = e == null ? void 0 : e.replaceAll("'", ""));
|
|
2702
2702
|
}), !(p != null && p.includes("[")))
|
|
2703
2703
|
ye = ((t = (re = (me = (Q = p == null ? void 0 : p.split("]")) == null ? void 0 : Q[1]) == null ? void 0 : me.replace(":", De).split(De)) == null ? void 0 : re[1]) == null ? void 0 : t.replaceAll("'", "")) ?? "";
|
|
2704
2704
|
else {
|
|
2705
|
-
let e = (
|
|
2706
|
-
(ae =
|
|
2705
|
+
let e = (le = (he = (U = (Z = (g = (D = l(p)) == null ? void 0 : D.split("(")) == null ? void 0 : g[1]) == null ? void 0 : Z.split(")")) == null ? void 0 : U[0]) == null ? void 0 : he.replaceAll("{", "").replaceAll("}", "")) == null ? void 0 : le.replaceAll("'", "").replaceAll(":", "/"), r = "";
|
|
2706
|
+
(ae = H == null ? void 0 : H.split(":")) == null || ae.forEach((y) => {
|
|
2707
2707
|
r = r === "" ? r + (y == null ? void 0 : y.replaceAll("'", "")) : r + ":" + (y == null ? void 0 : y.replaceAll("'", ""));
|
|
2708
2708
|
}), ye = e + "[" + r + "]";
|
|
2709
2709
|
}
|
|
@@ -2720,15 +2720,15 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2720
2720
|
return p.substring(0, n) + k + p.substring(n + 1);
|
|
2721
2721
|
return p;
|
|
2722
2722
|
}, un = (p) => {
|
|
2723
|
-
var F,
|
|
2723
|
+
var F, P, w, R, N;
|
|
2724
2724
|
let k = p.slice(1, p.length - 1), n;
|
|
2725
|
-
(k == null ? void 0 : k[0]) === "[" ? n = (
|
|
2725
|
+
(k == null ? void 0 : k[0]) === "[" ? n = (P = (F = nl(l(k))) == null ? void 0 : F.filter((S) => S !== ",")) == null ? void 0 : P.map((S) => S == null ? void 0 : S.slice(1, S.length - 1)) : (k = "[" + l(k) + "]", n = (R = (w = nl(l(k))) == null ? void 0 : w.filter((S) => S !== ",")) == null ? void 0 : R.map((S) => S == null ? void 0 : S.slice(1, S.length - 1))), n = (N = l(n)) == null ? void 0 : N.map((S) => {
|
|
2726
2726
|
var X, Y;
|
|
2727
2727
|
return S = (Y = (X = S.replace(")", De)) == null ? void 0 : X.split(De)) == null ? void 0 : Y[1], S;
|
|
2728
2728
|
});
|
|
2729
2729
|
let s = [], f = [];
|
|
2730
2730
|
return n == null || n.forEach((S) => {
|
|
2731
|
-
var pe, ue, de, A, m, W, c, h, a, d, _, O, T, ne, K, oe, i, E, B, o, I,
|
|
2731
|
+
var pe, ue, de, A, m, W, c, h, a, d, _, O, T, ne, K, oe, i, E, B, o, I, J, L, u, b, $, Q, me, re, t, D, g;
|
|
2732
2732
|
let X = (ue = (pe = l(S)) == null ? void 0 : pe.slice(1, l(S).length - 1)) == null ? void 0 : ue.replace(":", De).split(De);
|
|
2733
2733
|
if (((A = (de = l(X)) == null ? void 0 : de[0]) == null ? void 0 : A.replaceAll("'", "")) === "输入") {
|
|
2734
2734
|
if (!((W = (m = l(X)) == null ? void 0 : m[1]) != null && W.includes("[")) && !((h = (c = l(X)) == null ? void 0 : c[1]) != null && h.includes("("))) {
|
|
@@ -2736,27 +2736,27 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2736
2736
|
return;
|
|
2737
2737
|
}
|
|
2738
2738
|
if (((O = (_ = l(X)) == null ? void 0 : _[1]) == null ? void 0 : O[0]) === "[") {
|
|
2739
|
-
let
|
|
2740
|
-
(E = (i = nl(
|
|
2741
|
-
var we, ye,
|
|
2742
|
-
let
|
|
2743
|
-
(r =
|
|
2739
|
+
let Z = (oe = (T = l(X)) == null ? void 0 : T[1]) == null ? void 0 : oe.slice(1, ((K = (ne = l(X)) == null ? void 0 : ne[1]) == null ? void 0 : K.length) - 1);
|
|
2740
|
+
(E = (i = nl(Z)) == null ? void 0 : i.filter((U) => U !== ",")) == null || E.forEach((U) => {
|
|
2741
|
+
var we, ye, H, e, r, y, v, C, z, se, V, q, ge, _e, Ce, ve, ie, Ie, be, $e, We, ze;
|
|
2742
|
+
let he = {}, le = (H = (ye = l(U)) == null ? void 0 : ye.slice(1, ((we = l(U)) == null ? void 0 : we.length) - 1)) == null ? void 0 : H.replace(":", De).split(De), ae = (e = le == null ? void 0 : le[0]) == null ? void 0 : e.replaceAll("'", ""), te;
|
|
2743
|
+
(r = le == null ? void 0 : le[1]) != null && r.includes("(") ? (te = (_e = (ge = (q = (V = (se = (z = (C = (v = l(le)) == null ? void 0 : v[1]) == null ? void 0 : C.replaceAll("{", "")) == null ? void 0 : z.replaceAll("}", "")) == null ? void 0 : se.split("(")) == null ? void 0 : V[1]) == null ? void 0 : q.split(")")) == null ? void 0 : ge[0]) == null ? void 0 : _e.replaceAll(":", "/").replaceAll("'", ""), (ve = (Ce = l(le)) == null ? void 0 : Ce[1]) != null && ve.includes("[") && (te = l(te) + "[" + ((ze = (We = ($e = (be = (Ie = (ie = l(le)) == null ? void 0 : ie[1]) == null ? void 0 : Ie.split("[")) == null ? void 0 : be[1]) == null ? void 0 : $e.split("]")) == null ? void 0 : We[0]) == null ? void 0 : ze.replaceAll("'", "")) + "]")) : te = (y = le == null ? void 0 : le[1]) == null ? void 0 : y.replaceAll("'", ""), he[ae] = te, f.push(he);
|
|
2744
2744
|
});
|
|
2745
2745
|
}
|
|
2746
2746
|
} else {
|
|
2747
|
-
if (!((o = (B = l(X)) == null ? void 0 : B[1]) != null && o.includes("[")) && !((
|
|
2747
|
+
if (!((o = (B = l(X)) == null ? void 0 : B[1]) != null && o.includes("[")) && !((J = (I = l(X)) == null ? void 0 : I[1]) != null && J.includes("("))) {
|
|
2748
2748
|
il((L = l(X)) == null ? void 0 : L[1].replaceAll("'", '"')) && s.push(JSON.parse((u = l(X)) == null ? void 0 : u[1].replaceAll("'", '"')));
|
|
2749
2749
|
return;
|
|
2750
2750
|
}
|
|
2751
2751
|
if ((($ = (b = l(X)) == null ? void 0 : b[1]) == null ? void 0 : $[0]) === "[") {
|
|
2752
|
-
let
|
|
2753
|
-
(g = (D = nl(
|
|
2754
|
-
var we, ye,
|
|
2755
|
-
let
|
|
2756
|
-
if (!((r =
|
|
2757
|
-
te = (y =
|
|
2758
|
-
else if (te = (
|
|
2759
|
-
te = (Ce = l(te)) == null ? void 0 : Ce.replaceAll(":", "/").replaceAll("'", ""), (ie = (
|
|
2752
|
+
let Z = (t = (Q = l(X)) == null ? void 0 : Q[1]) == null ? void 0 : t.slice(1, ((re = (me = l(X)) == null ? void 0 : me[1]) == null ? void 0 : re.length) - 1);
|
|
2753
|
+
(g = (D = nl(Z)) == null ? void 0 : D.filter((U) => U !== ",")) == null || g.forEach((U) => {
|
|
2754
|
+
var we, ye, H, e, r, y, v, C, z, se, V, q, ge, _e, Ce, ve, ie, Ie, be, $e, We, ze, j, Le, Re, He, ul, rl, Ue, pl, qe, _l, Cl;
|
|
2755
|
+
let he = {}, le = (H = (ye = l(U)) == null ? void 0 : ye.slice(1, ((we = l(U)) == null ? void 0 : we.length) - 1)) == null ? void 0 : H.replace(":", De).split(De), ae = (e = le == null ? void 0 : le[0]) == null ? void 0 : e.replaceAll("'", ""), te;
|
|
2756
|
+
if (!((r = le == null ? void 0 : le[1]) != null && r.includes("(")))
|
|
2757
|
+
te = (y = le == null ? void 0 : le[1]) == null ? void 0 : y.replaceAll("'", "");
|
|
2758
|
+
else if (te = (q = (V = (se = (z = (C = (v = l(le)) == null ? void 0 : v[1]) == null ? void 0 : C.replaceAll("{", "")) == null ? void 0 : z.replaceAll("}", "")) == null ? void 0 : se.replace("(", De)) == null ? void 0 : V.split(De)) == null ? void 0 : q[1], te = (_e = (ge = on(l(te), De)) == null ? void 0 : ge.split(De)) == null ? void 0 : _e[0], !(te != null && te.includes("(")))
|
|
2759
|
+
te = (Ce = l(te)) == null ? void 0 : Ce.replaceAll(":", "/").replaceAll("'", ""), (ie = (ve = l(le)) == null ? void 0 : ve[1]) != null && ie.includes("[") && (te = l(te) + "[" + ((j = (ze = (We = ($e = (be = (Ie = l(le)) == null ? void 0 : Ie[1]) == null ? void 0 : be.split("[")) == null ? void 0 : $e[1]) == null ? void 0 : We.split("]")) == null ? void 0 : ze[0]) == null ? void 0 : j.replaceAll("'", "")) + "]");
|
|
2760
2760
|
else {
|
|
2761
2761
|
let Qe = "";
|
|
2762
2762
|
(Le = Yl(te, ":")) == null || Le.forEach((Me) => {
|
|
@@ -2767,9 +2767,9 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2767
2767
|
let vl = (Sl = (Tl = (Bl = ($l = (El = (xl = (Il = (Al = l(Me)) == null ? void 0 : Al.replaceAll("{", "")) == null ? void 0 : Il.replaceAll("}", "")) == null ? void 0 : xl.replace("(", De)) == null ? void 0 : El.split(De)) == null ? void 0 : $l[1]) == null ? void 0 : Bl.split(")")) == null ? void 0 : Tl[0]) == null ? void 0 : Sl.replaceAll(":", "/").replaceAll("'", "");
|
|
2768
2768
|
vl = vl + "[" + ((Pl = (Rl = (Ll = (Ol = (Fl = l(Me)) == null ? void 0 : Fl.split("[")) == null ? void 0 : Ol[1]) == null ? void 0 : Ll.split("]")) == null ? void 0 : Rl[0]) == null ? void 0 : Pl.replaceAll("'", "")) + "]", Qe = Qe === "" ? Qe + "[" + vl + "]" : Qe + "/[" + vl + "]";
|
|
2769
2769
|
}
|
|
2770
|
-
}), te = Qe + "[" + ((Cl = (_l = (qe = (pl = (He = (Re = l(
|
|
2770
|
+
}), te = Qe + "[" + ((Cl = (_l = (qe = (pl = (He = (Re = l(le)) == null ? void 0 : Re[1]) == null ? void 0 : He.split("[")) == null ? void 0 : pl[((Ue = (rl = (ul = l(le)) == null ? void 0 : ul[1]) == null ? void 0 : rl.split("[")) == null ? void 0 : Ue.length) - 1]) == null ? void 0 : qe.split("]")) == null ? void 0 : _l[0]) == null ? void 0 : Cl.replaceAll("'", "")) + "]";
|
|
2771
2771
|
}
|
|
2772
|
-
|
|
2772
|
+
he[ae] = te, s.push(he);
|
|
2773
2773
|
});
|
|
2774
2774
|
}
|
|
2775
2775
|
}
|
|
@@ -2778,65 +2778,65 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2778
2778
|
input: f
|
|
2779
2779
|
};
|
|
2780
2780
|
}, Va = (p) => {
|
|
2781
|
-
var s, f, F,
|
|
2781
|
+
var s, f, F, P, w, R, N, S, X, Y, pe, ue, de, A, m, W, c, h, a, d, _, O, T, ne, K, oe, i, E, B, o, I, J, L, u, b, $, Q, me, re, t, D, g, Z, U, he, le, ae, te, we, ye;
|
|
2782
2782
|
let k = "";
|
|
2783
2783
|
p = p.replace(/:([^=]*)==/g, ":");
|
|
2784
2784
|
let n = p;
|
|
2785
|
-
if (ln(l(p)) !== null && (k = (f = (s = l(p).replace(":", De).split(De)) == null ? void 0 : s[0]) == null ? void 0 : f.replaceAll("'", ""), n = (F = l(p).replace(":", De).split(De)) == null ? void 0 : F[1]), Zl(l(n).slice(1, ((
|
|
2786
|
-
if (((
|
|
2787
|
-
const
|
|
2785
|
+
if (ln(l(p)) !== null && (k = (f = (s = l(p).replace(":", De).split(De)) == null ? void 0 : s[0]) == null ? void 0 : f.replaceAll("'", ""), n = (F = l(p).replace(":", De).split(De)) == null ? void 0 : F[1]), Zl(l(n).slice(1, ((P = l(n)) == null ? void 0 : P.length) - 1)) || nn(l(n).slice(1, ((w = l(n)) == null ? void 0 : w.length) - 1)))
|
|
2786
|
+
if (((N = l(n).slice(1, ((R = l(n)) == null ? void 0 : R.length) - 1)) == null ? void 0 : N[1]) !== "[") {
|
|
2787
|
+
const H = Xl(l(n).slice(1, ((S = l(n)) == null ? void 0 : S.length) - 1));
|
|
2788
2788
|
return {
|
|
2789
2789
|
groupName: k,
|
|
2790
|
-
tableColumn:
|
|
2791
|
-
tableContents:
|
|
2792
|
-
tableColumnPath:
|
|
2790
|
+
tableColumn: H == null ? void 0 : H.tableColumns,
|
|
2791
|
+
tableContents: H == null ? void 0 : H.tableContents,
|
|
2792
|
+
tableColumnPath: H == null ? void 0 : H.tablePath
|
|
2793
2793
|
};
|
|
2794
2794
|
} else if (l(n).slice(1, ((X = l(n)) == null ? void 0 : X.length) - 1).includes("{")) {
|
|
2795
|
-
let
|
|
2795
|
+
let H = l(n).slice(1, ((Y = l(n)) == null ? void 0 : Y.length) - 1), e = H.indexOf("{"), r = H.slice(e, (H == null ? void 0 : H.length) - e);
|
|
2796
2796
|
return (ue = (pe = nl(r)) == null ? void 0 : pe.filter((v) => v == null ? void 0 : v.includes("{"))) == null ? void 0 : ue.map((v, C) => {
|
|
2797
|
-
var
|
|
2798
|
-
let
|
|
2797
|
+
var se;
|
|
2798
|
+
let z = Xl(l(v).slice(1, ((se = l(v)) == null ? void 0 : se.length) - 1));
|
|
2799
2799
|
return {
|
|
2800
2800
|
groupName: C === 0 ? k : "",
|
|
2801
|
-
tableColumn:
|
|
2802
|
-
tableContents:
|
|
2803
|
-
tableColumnPath:
|
|
2801
|
+
tableColumn: z == null ? void 0 : z.tableColumns,
|
|
2802
|
+
tableContents: z == null ? void 0 : z.tableContents,
|
|
2803
|
+
tableColumnPath: z == null ? void 0 : z.tablePath
|
|
2804
2804
|
};
|
|
2805
2805
|
});
|
|
2806
2806
|
} else {
|
|
2807
|
-
const
|
|
2807
|
+
const H = Xl(l(n).slice(1, ((de = l(n)) == null ? void 0 : de.length) - 1));
|
|
2808
2808
|
return {
|
|
2809
2809
|
groupName: k,
|
|
2810
|
-
tableColumn:
|
|
2811
|
-
tableContents:
|
|
2812
|
-
tableColumnPath:
|
|
2810
|
+
tableColumn: H == null ? void 0 : H.tableColumns,
|
|
2811
|
+
tableContents: H == null ? void 0 : H.tableContents,
|
|
2812
|
+
tableColumnPath: H == null ? void 0 : H.tablePath
|
|
2813
2813
|
};
|
|
2814
2814
|
}
|
|
2815
2815
|
else {
|
|
2816
|
-
let
|
|
2816
|
+
let H = [];
|
|
2817
2817
|
if (il((A = n.slice(1, (n == null ? void 0 : n.length) - 1)) == null ? void 0 : A.replaceAll("'", '"')))
|
|
2818
|
-
|
|
2818
|
+
H = JSON.parse((m = n.slice(1, (n == null ? void 0 : n.length) - 1)) == null ? void 0 : m.replaceAll("'", '"'));
|
|
2819
2819
|
else if (n.includes("(")) {
|
|
2820
2820
|
if ((n == null ? void 0 : n[0]) !== "{") {
|
|
2821
|
-
let e = (E = (i = (oe = (K = l(n)) == null ? void 0 : K.split("]")) == null ? void 0 : oe[0]) == null ? void 0 : i.split("[")) == null ? void 0 : E[1], r = "", v = ((u = (L = (
|
|
2822
|
-
(b = v == null ? void 0 : v.split("/")) == null || b.forEach((
|
|
2821
|
+
let e = (E = (i = (oe = (K = l(n)) == null ? void 0 : K.split("]")) == null ? void 0 : oe[0]) == null ? void 0 : i.split("[")) == null ? void 0 : E[1], r = "", v = ((u = (L = (J = (I = (o = (B = l(n)) == null ? void 0 : B.split(")")) == null ? void 0 : o[0]) == null ? void 0 : I.split("(")) == null ? void 0 : J[1]) == null ? void 0 : L.replaceAll("[", "")) == null ? void 0 : u.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
|
|
2822
|
+
(b = v == null ? void 0 : v.split("/")) == null || b.forEach((z, se) => {
|
|
2823
2823
|
var V;
|
|
2824
|
-
|
|
2824
|
+
se !== ((V = v == null ? void 0 : v.split("/")) == null ? void 0 : V.length) - 1 && (r = r === "" ? r + z : r + "/" + z);
|
|
2825
2825
|
});
|
|
2826
2826
|
let C;
|
|
2827
2827
|
return ((re = (me = (Q = ($ = l(n)) == null ? void 0 : $.replace(",", De)) == null ? void 0 : Q.split(De)) == null ? void 0 : me[1]) == null ? void 0 : re[0]) === "[" && (C = un((g = (D = (t = l(n)) == null ? void 0 : t.replace(",", De)) == null ? void 0 : D.split(De)) == null ? void 0 : g[1])), {
|
|
2828
2828
|
groupName: "",
|
|
2829
|
-
extraButton: (
|
|
2829
|
+
extraButton: (U = e == null ? void 0 : e.split(":")) == null ? void 0 : U[((Z = e == null ? void 0 : e.split(":")) == null ? void 0 : Z.length) - 1].replaceAll("'", ""),
|
|
2830
2830
|
extraPath: r,
|
|
2831
2831
|
extraData: C
|
|
2832
2832
|
};
|
|
2833
2833
|
} else if (n = n.slice(1, (n == null ? void 0 : n.length) - 1), (n == null ? void 0 : n[0]) !== "[") {
|
|
2834
|
-
let e = "{" + n + "}", r = (
|
|
2834
|
+
let e = "{" + n + "}", r = (le = (he = nl(e)) == null ? void 0 : he.filter((v) => v !== ",")) == null ? void 0 : le.map((v) => sn(l(v).slice(1, l(v).length - 1))), y = [];
|
|
2835
2835
|
return (ae = l(r)) == null || ae.forEach((v) => {
|
|
2836
2836
|
var C;
|
|
2837
|
-
(C = v == null ? void 0 : v.formContents) == null || C.forEach((
|
|
2838
|
-
|
|
2839
|
-
y.push(
|
|
2837
|
+
(C = v == null ? void 0 : v.formContents) == null || C.forEach((z) => {
|
|
2838
|
+
z == null || z.forEach((se) => {
|
|
2839
|
+
y.push(se);
|
|
2840
2840
|
});
|
|
2841
2841
|
});
|
|
2842
2842
|
}), {
|
|
@@ -2849,11 +2849,11 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2849
2849
|
n = n.slice(1, (n == null ? void 0 : n.length) - 1);
|
|
2850
2850
|
let e = [], r = [];
|
|
2851
2851
|
return (ye = (we = nl(n)) == null ? void 0 : we.filter((y) => y !== ",")) == null || ye.forEach((y) => {
|
|
2852
|
-
var v, C,
|
|
2852
|
+
var v, C, z, se;
|
|
2853
2853
|
if (!y.includes("&"))
|
|
2854
2854
|
Array.isArray(ea(y)) || e.push((v = ea(y)) == null ? void 0 : v.formContents);
|
|
2855
2855
|
else {
|
|
2856
|
-
let V = (
|
|
2856
|
+
let V = (se = (z = (C = l(y)) == null ? void 0 : C.split("&")) == null ? void 0 : z[1]) == null ? void 0 : se.replaceAll("'", '"');
|
|
2857
2857
|
il(V) && r.push({
|
|
2858
2858
|
[JSON.parse(V)[0]]: JSON.parse(V)
|
|
2859
2859
|
});
|
|
@@ -2865,7 +2865,7 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2865
2865
|
};
|
|
2866
2866
|
}
|
|
2867
2867
|
} else if (n = "[[" + n + "]]", il((W = n.slice(1, (n == null ? void 0 : n.length) - 1)) == null ? void 0 : W.replaceAll("'", '"')))
|
|
2868
|
-
|
|
2868
|
+
H = JSON.parse((c = n.slice(1, (n == null ? void 0 : n.length) - 1)) == null ? void 0 : c.replaceAll("'", '"'));
|
|
2869
2869
|
else if (n = n.slice(2, n.length - 2), ((d = (a = (h = n == null ? void 0 : n.replace(":", De)) == null ? void 0 : h.split(De)) == null ? void 0 : a[1]) == null ? void 0 : d[0]) !== "{") {
|
|
2870
2870
|
n = ((O = (_ = n == null ? void 0 : n.replace(":", De)) == null ? void 0 : _.split(De)) == null ? void 0 : O[0]) + ":{[" + ((ne = (T = n == null ? void 0 : n.replace(":", De)) == null ? void 0 : T.split(De)) == null ? void 0 : ne[1]) + "]}";
|
|
2871
2871
|
const e = Va(n);
|
|
@@ -2880,7 +2880,7 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2880
2880
|
}
|
|
2881
2881
|
return {
|
|
2882
2882
|
groupName: k,
|
|
2883
|
-
formContents:
|
|
2883
|
+
formContents: H
|
|
2884
2884
|
};
|
|
2885
2885
|
}
|
|
2886
2886
|
}, ea = (p) => Va(l(p).slice(1, l(p).length - 1)), To = (p) => {
|
|
@@ -2912,7 +2912,7 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2912
2912
|
}
|
|
2913
2913
|
},
|
|
2914
2914
|
setup(p) {
|
|
2915
|
-
const k =
|
|
2915
|
+
const k = M([]), n = p, s = Sa(Ze), f = M(!1), F = Ja(Ze), P = cs(Ze), { itemData: w, isEdit: R } = ol(s), { activeMenuPath: N, platform: S } = ol(F), { loginUserInfo: X } = ol(P), Y = M(!1), pe = (a, d) => {
|
|
2916
2916
|
const _ = d;
|
|
2917
2917
|
return a == null ? void 0 : a.map((O) => {
|
|
2918
2918
|
var T;
|
|
@@ -2948,8 +2948,8 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2948
2948
|
if (a != null && a.includes("[")) {
|
|
2949
2949
|
let o = (i = (oe = (K = (ne = (T = l(a)) == null ? void 0 : T.split("[")) == null ? void 0 : ne[1]) == null ? void 0 : K.split("]")) == null ? void 0 : oe[0]) == null ? void 0 : i.split(":"), I = "";
|
|
2950
2950
|
if (o != null && o[0]) {
|
|
2951
|
-
let
|
|
2952
|
-
|
|
2951
|
+
let J = (E = _ == null ? void 0 : _.find((L) => (L == null ? void 0 : L.name) === (o == null ? void 0 : o[0]))) == null ? void 0 : E.compData;
|
|
2952
|
+
J == null || J.forEach((L) => {
|
|
2953
2953
|
var u;
|
|
2954
2954
|
(L == null ? void 0 : L.key) === "formContent" && ((u = L == null ? void 0 : L.contents) == null || u.forEach((b) => {
|
|
2955
2955
|
(b == null ? void 0 : b.key) === (o == null ? void 0 : o[1]) && (I = b == null ? void 0 : b.value);
|
|
@@ -2959,25 +2959,25 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2959
2959
|
return I;
|
|
2960
2960
|
} else if (a != null && a.includes("/")) {
|
|
2961
2961
|
let o = {};
|
|
2962
|
-
return (B = l(_)) == null || B.forEach((I,
|
|
2963
|
-
var L, u, b, $, Q, me, re, t, D, g,
|
|
2962
|
+
return (B = l(_)) == null || B.forEach((I, J) => {
|
|
2963
|
+
var L, u, b, $, Q, me, re, t, D, g, Z, U, he, le, ae, te, we, ye, H;
|
|
2964
2964
|
if ((I == null ? void 0 : I.comp) === "Table") {
|
|
2965
|
-
let e = Array.isArray((b = (u = (L = I == null ? void 0 : I.compData) == null ? void 0 : L.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : u.contents) == null ? void 0 : b[0]) ? (re = (me = (Q = ($ = I == null ? void 0 : I.compData) == null ? void 0 : $.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : Q.contents) == null ? void 0 : me[0]) == null ? void 0 : re.some((C) => C == null ? void 0 : C.children) : [], r = (g = (D = (t = I == null ? void 0 : I.compData) == null ? void 0 : t.find((C) => (C == null ? void 0 : C.key) === "tableContents")) == null ? void 0 : D.contents) == null ? void 0 : g.map((C) => C.slice(1)), y = (ae = (
|
|
2965
|
+
let e = Array.isArray((b = (u = (L = I == null ? void 0 : I.compData) == null ? void 0 : L.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : u.contents) == null ? void 0 : b[0]) ? (re = (me = (Q = ($ = I == null ? void 0 : I.compData) == null ? void 0 : $.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : Q.contents) == null ? void 0 : me[0]) == null ? void 0 : re.some((C) => C == null ? void 0 : C.children) : [], r = (g = (D = (t = I == null ? void 0 : I.compData) == null ? void 0 : t.find((C) => (C == null ? void 0 : C.key) === "tableContents")) == null ? void 0 : D.contents) == null ? void 0 : g.map((C) => C.slice(1)), y = (ae = (le = (he = (U = (Z = I == null ? void 0 : I.compData) == null ? void 0 : Z.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : U.contents) == null ? void 0 : he[0]) == null ? void 0 : le[0]) == null ? void 0 : ae.label, v = (we = (te = I == null ? void 0 : I.compData) == null ? void 0 : te.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : we.contents;
|
|
2966
2966
|
if (e)
|
|
2967
2967
|
(e == null ? void 0 : e.length) === 0 ? o[I.name] = pe(r, v) : o[y] = pe(r, v);
|
|
2968
2968
|
else {
|
|
2969
2969
|
const C = [];
|
|
2970
|
-
v = v.slice(1, v.length - 1), v == null || v.forEach((
|
|
2970
|
+
v = v.slice(1, v.length - 1), v == null || v.forEach((z, se) => {
|
|
2971
2971
|
r == null || r.forEach((V) => {
|
|
2972
2972
|
C.push({
|
|
2973
|
-
key:
|
|
2974
|
-
value: V[
|
|
2973
|
+
key: z.label + V[0],
|
|
2974
|
+
value: V[se + 1]
|
|
2975
2975
|
});
|
|
2976
2976
|
});
|
|
2977
|
-
}), o["form" +
|
|
2977
|
+
}), o["form" + J] = C;
|
|
2978
2978
|
}
|
|
2979
2979
|
} else {
|
|
2980
|
-
const e = (
|
|
2980
|
+
const e = (H = (ye = I.compData) == null ? void 0 : ye.find((y) => (y == null ? void 0 : y.key) === "formContent")) == null ? void 0 : H.contents;
|
|
2981
2981
|
o.form = {};
|
|
2982
2982
|
const r = [];
|
|
2983
2983
|
e == null || e.forEach((y) => {
|
|
@@ -2995,21 +2995,21 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
2995
2995
|
let O = await hl(d, sessionStorage.getItem("systemKey"), ""), T = O == null ? void 0 : O.find((K) => (K == null ? void 0 : K.name) === (_ == null ? void 0 : _[0]));
|
|
2996
2996
|
if (T && (T == null ? void 0 : T.comp) === "Table") {
|
|
2997
2997
|
let K = {};
|
|
2998
|
-
for (let
|
|
2999
|
-
l(a)[
|
|
2998
|
+
for (let J in l(a))
|
|
2999
|
+
l(a)[J] !== "loginUser" ? K[J] = l(a)[J] : K[J] = (ne = X.value) == null ? void 0 : ne.account;
|
|
3000
3000
|
let oe = [], i = K;
|
|
3001
|
-
Array.isArray(a) || (i = [K]), i == null || i.forEach((
|
|
3001
|
+
Array.isArray(a) || (i = [K]), i == null || i.forEach((J) => {
|
|
3002
3002
|
oe.push({
|
|
3003
|
-
[
|
|
3003
|
+
[J[_[1]]]: J
|
|
3004
3004
|
});
|
|
3005
3005
|
});
|
|
3006
|
-
let E = [], B = oe == null ? void 0 : oe.map((
|
|
3006
|
+
let E = [], B = oe == null ? void 0 : oe.map((J) => {
|
|
3007
3007
|
var L;
|
|
3008
|
-
return (L = Object.keys(
|
|
3008
|
+
return (L = Object.keys(J)) == null ? void 0 : L[0];
|
|
3009
3009
|
});
|
|
3010
|
-
O == null || O.forEach((
|
|
3010
|
+
O == null || O.forEach((J) => {
|
|
3011
3011
|
var L;
|
|
3012
|
-
(
|
|
3012
|
+
(J == null ? void 0 : J.name) === (_ == null ? void 0 : _[0]) && ((L = J == null ? void 0 : J.compData) == null || L.forEach((u) => {
|
|
3013
3013
|
var b;
|
|
3014
3014
|
(u == null ? void 0 : u.key) === "tableContents" && ((b = u == null ? void 0 : u.contents) == null || b.forEach(($) => {
|
|
3015
3015
|
$ != null && $.some((Q) => B.includes(Q)) && E.push({
|
|
@@ -3018,21 +3018,21 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3018
3018
|
}));
|
|
3019
3019
|
}));
|
|
3020
3020
|
});
|
|
3021
|
-
let o = E == null ? void 0 : E.map((
|
|
3021
|
+
let o = E == null ? void 0 : E.map((J) => {
|
|
3022
3022
|
var L;
|
|
3023
|
-
return (L = Object.keys(
|
|
3023
|
+
return (L = Object.keys(J)) == null ? void 0 : L[0];
|
|
3024
3024
|
}), I = [];
|
|
3025
|
-
o == null || o.forEach((
|
|
3025
|
+
o == null || o.forEach((J) => {
|
|
3026
3026
|
var b;
|
|
3027
3027
|
let L = (b = E == null ? void 0 : E.find(($) => {
|
|
3028
3028
|
var Q;
|
|
3029
|
-
return ((Q = Object.keys($)) == null ? void 0 : Q[0].toString()) ===
|
|
3030
|
-
})) == null ? void 0 : b[
|
|
3029
|
+
return ((Q = Object.keys($)) == null ? void 0 : Q[0].toString()) === J.toString();
|
|
3030
|
+
})) == null ? void 0 : b[J], u = oe == null ? void 0 : oe.find(($) => {
|
|
3031
3031
|
var Q;
|
|
3032
3032
|
return ((Q = Object.keys($)) == null ? void 0 : Q[0]) === L;
|
|
3033
3033
|
});
|
|
3034
3034
|
I.push({
|
|
3035
|
-
id: parseInt(
|
|
3035
|
+
id: parseInt(J),
|
|
3036
3036
|
value: {
|
|
3037
3037
|
tableData: u[L]
|
|
3038
3038
|
}
|
|
@@ -3042,7 +3042,7 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3042
3042
|
});
|
|
3043
3043
|
}
|
|
3044
3044
|
}, m = async (a, d, _) => {
|
|
3045
|
-
var ne, K, oe, i, E, B, o, I,
|
|
3045
|
+
var ne, K, oe, i, E, B, o, I, J;
|
|
3046
3046
|
let O = await hl(d, sessionStorage.getItem("systemKey"), ""), T = O == null ? void 0 : O.find((L) => (L == null ? void 0 : L.name) === (_ == null ? void 0 : _[0]));
|
|
3047
3047
|
if (T) {
|
|
3048
3048
|
if ((T == null ? void 0 : T.comp) === "Table") {
|
|
@@ -3063,10 +3063,10 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3063
3063
|
} else if ((T == null ? void 0 : T.comp) === "Form") {
|
|
3064
3064
|
let L = l(T), u = Object.keys(a), b = "";
|
|
3065
3065
|
(oe = (K = l(L)) == null ? void 0 : K.compData) == null || oe.forEach((D) => {
|
|
3066
|
-
var g,
|
|
3067
|
-
(D == null ? void 0 : D.key) === "formContent" && ((
|
|
3068
|
-
var
|
|
3069
|
-
u.includes(
|
|
3066
|
+
var g, Z;
|
|
3067
|
+
(D == null ? void 0 : D.key) === "formContent" && ((Z = (g = l(D)) == null ? void 0 : g.contents) == null || Z.forEach((U) => {
|
|
3068
|
+
var he;
|
|
3069
|
+
u.includes(U == null ? void 0 : U.key) && (U == null ? void 0 : U.value) === ((he = X.value) == null ? void 0 : he.姓名) && (b = U == null ? void 0 : U.key);
|
|
3070
3070
|
}));
|
|
3071
3071
|
});
|
|
3072
3072
|
let $ = [];
|
|
@@ -3074,37 +3074,37 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3074
3074
|
D != null && D.includes("(") && $.push(D);
|
|
3075
3075
|
}), $ = [...new Set($)];
|
|
3076
3076
|
const Q = $ == null ? void 0 : $.map(async (D) => {
|
|
3077
|
-
var
|
|
3077
|
+
var le, ae, te, we, ye, H, e, r, y, v, C, z;
|
|
3078
3078
|
let g = "";
|
|
3079
|
-
(
|
|
3080
|
-
g = g === "" ? g +
|
|
3079
|
+
(H = (ye = (we = (te = (ae = (le = l(D)) == null ? void 0 : le.split("(")) == null ? void 0 : ae[1]) == null ? void 0 : te.split(")")) == null ? void 0 : we[0]) == null ? void 0 : ye.split(":")) == null || H.forEach((se) => {
|
|
3080
|
+
g = g === "" ? g + se.replaceAll("'", "") : g + "/" + se.replaceAll("'", "");
|
|
3081
3081
|
});
|
|
3082
|
-
let
|
|
3083
|
-
(
|
|
3084
|
-
|
|
3082
|
+
let Z = [];
|
|
3083
|
+
(z = (C = (v = (y = (r = (e = l(D)) == null ? void 0 : e.split("<")) == null ? void 0 : r[1]) == null ? void 0 : y.split(">")) == null ? void 0 : v[0]) == null ? void 0 : C.split(":")) == null || z.forEach((se) => {
|
|
3084
|
+
Z.push(se.replaceAll("'", ""));
|
|
3085
3085
|
});
|
|
3086
|
-
const
|
|
3087
|
-
let
|
|
3088
|
-
return
|
|
3086
|
+
const U = await hl(g, sessionStorage.getItem("systemKey"), "");
|
|
3087
|
+
let he = "";
|
|
3088
|
+
return U == null || U.forEach((se) => {
|
|
3089
3089
|
var V;
|
|
3090
|
-
|
|
3090
|
+
se.name === (Z == null ? void 0 : Z[0]) && ((V = se == null ? void 0 : se.compData) == null || V.forEach((q) => {
|
|
3091
3091
|
var ge;
|
|
3092
|
-
(
|
|
3093
|
-
(_e == null ? void 0 : _e.key) === (
|
|
3092
|
+
(q == null ? void 0 : q.key) === "formContent" && ((ge = q.contents) == null || ge.forEach((_e) => {
|
|
3093
|
+
(_e == null ? void 0 : _e.key) === (Z == null ? void 0 : Z[1]) && (he = _e == null ? void 0 : _e.value);
|
|
3094
3094
|
}));
|
|
3095
3095
|
}));
|
|
3096
3096
|
}), {
|
|
3097
|
-
[D]:
|
|
3097
|
+
[D]: he
|
|
3098
3098
|
};
|
|
3099
3099
|
}), me = await Promise.all(Q);
|
|
3100
3100
|
L.compData = (B = (E = l(L)) == null ? void 0 : E.compData) == null ? void 0 : B.map((D) => {
|
|
3101
|
-
var g,
|
|
3102
|
-
return (D == null ? void 0 : D.key) === "formContent" && (D.contents = (
|
|
3103
|
-
var
|
|
3104
|
-
return (
|
|
3101
|
+
var g, Z;
|
|
3102
|
+
return (D == null ? void 0 : D.key) === "formContent" && (D.contents = (Z = (g = l(D)) == null ? void 0 : g.contents) == null ? void 0 : Z.map((U) => {
|
|
3103
|
+
var he, le, ae, te;
|
|
3104
|
+
return (he = a[b]) != null && he[U == null ? void 0 : U.key] && (a[b][U == null ? void 0 : U.key].includes("(") ? U.value = (le = me == null ? void 0 : me.find((we) => {
|
|
3105
3105
|
var ye;
|
|
3106
|
-
return ((ye = Object.keys(we)) == null ? void 0 : ye[0]) === a[b][
|
|
3107
|
-
})) == null ? void 0 :
|
|
3106
|
+
return ((ye = Object.keys(we)) == null ? void 0 : ye[0]) === a[b][U == null ? void 0 : U.key];
|
|
3107
|
+
})) == null ? void 0 : le[a[b][U == null ? void 0 : U.key]] : U.value = (te = (ae = l(a)) == null ? void 0 : ae[b]) == null ? void 0 : te[U == null ? void 0 : U.key]), U;
|
|
3108
3108
|
})), D;
|
|
3109
3109
|
});
|
|
3110
3110
|
const re = await Ul({
|
|
@@ -3115,9 +3115,9 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3115
3115
|
}
|
|
3116
3116
|
});
|
|
3117
3117
|
let t = "";
|
|
3118
|
-
((o = re == null ? void 0 : re.data) == null ? void 0 : o.type) === "success" && ((
|
|
3119
|
-
var g,
|
|
3120
|
-
((
|
|
3118
|
+
((o = re == null ? void 0 : re.data) == null ? void 0 : o.type) === "success" && ((J = (I = re == null ? void 0 : re.data) == null ? void 0 : I.result) == null || J.forEach((D) => {
|
|
3119
|
+
var g, Z;
|
|
3120
|
+
((Z = (g = D == null ? void 0 : D.value) == null ? void 0 : g.pageData) == null ? void 0 : Z.name) === (_ == null ? void 0 : _[0]) && (t = D.id);
|
|
3121
3121
|
}), await wa({
|
|
3122
3122
|
id: t,
|
|
3123
3123
|
value: {
|
|
@@ -3161,12 +3161,12 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3161
3161
|
systemKey: sessionStorage.getItem("systemKey")
|
|
3162
3162
|
}
|
|
3163
3163
|
});
|
|
3164
|
-
let
|
|
3164
|
+
let J = "";
|
|
3165
3165
|
((i = I == null ? void 0 : I.data) == null ? void 0 : i.type) === "success" && ((B = (E = I == null ? void 0 : I.data) == null ? void 0 : E.result) == null || B.forEach((L) => {
|
|
3166
3166
|
var u, b;
|
|
3167
|
-
((b = (u = L == null ? void 0 : L.value) == null ? void 0 : u.pageData) == null ? void 0 : b.name) === (_ == null ? void 0 : _[0]) && (
|
|
3167
|
+
((b = (u = L == null ? void 0 : L.value) == null ? void 0 : u.pageData) == null ? void 0 : b.name) === (_ == null ? void 0 : _[0]) && (J = L.id);
|
|
3168
3168
|
}), await wa({
|
|
3169
|
-
id:
|
|
3169
|
+
id: J,
|
|
3170
3170
|
value: {
|
|
3171
3171
|
pageData: o
|
|
3172
3172
|
}
|
|
@@ -3174,33 +3174,33 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3174
3174
|
}
|
|
3175
3175
|
}
|
|
3176
3176
|
}, c = async (a) => {
|
|
3177
|
-
var _, O, T, ne, K, oe, i, E, B, o, I,
|
|
3177
|
+
var _, O, T, ne, K, oe, i, E, B, o, I, J, L, u, b, $, Q, me;
|
|
3178
3178
|
let d = {};
|
|
3179
3179
|
if (S.value !== "browser") {
|
|
3180
3180
|
const re = [];
|
|
3181
3181
|
d.form = {}, (_ = l(a.content)) == null || _.forEach((D, g) => {
|
|
3182
|
-
var
|
|
3182
|
+
var Z, U, he, le, ae, te, we, ye, H, e, r, y, v, C;
|
|
3183
3183
|
if ((D == null ? void 0 : D.comp) === "Table") {
|
|
3184
|
-
(
|
|
3185
|
-
let
|
|
3186
|
-
(e = (
|
|
3187
|
-
let
|
|
3188
|
-
|
|
3184
|
+
(U = (Z = D == null ? void 0 : D.compData) == null ? void 0 : Z.find((q) => (q == null ? void 0 : q.key) === "header")) == null || U.contents;
|
|
3185
|
+
let z = (ae = (le = (he = D == null ? void 0 : D.compData) == null ? void 0 : he.find((q) => (q == null ? void 0 : q.key) === "tableContents")) == null ? void 0 : le.contents) == null ? void 0 : ae.map((q) => q.slice(1));
|
|
3186
|
+
(e = (H = (ye = (we = (te = D == null ? void 0 : D.compData) == null ? void 0 : te.find((q) => (q == null ? void 0 : q.key) === "header")) == null ? void 0 : we.contents) == null ? void 0 : ye[0]) == null ? void 0 : H[0]) == null || e.label;
|
|
3187
|
+
let se = (y = (r = D == null ? void 0 : D.compData) == null ? void 0 : r.find((q) => (q == null ? void 0 : q.key) === "header")) == null ? void 0 : y.contents, V = [];
|
|
3188
|
+
z == null || z.forEach((q) => {
|
|
3189
3189
|
let ge = [];
|
|
3190
|
-
|
|
3190
|
+
q == null || q.forEach((_e, Ce) => {
|
|
3191
3191
|
var ie;
|
|
3192
|
-
let
|
|
3193
|
-
((ie =
|
|
3192
|
+
let ve = {};
|
|
3193
|
+
((ie = se[Ce]) == null ? void 0 : ie.label) !== "操作" && (ve[se[Ce].label] = _e, ge.push(ve));
|
|
3194
3194
|
}), V.push(ge);
|
|
3195
3195
|
}), d[D.name] = V;
|
|
3196
3196
|
} else {
|
|
3197
|
-
const
|
|
3198
|
-
|
|
3197
|
+
const z = (C = (v = D.compData) == null ? void 0 : v.find((se) => (se == null ? void 0 : se.key) === "formContent")) == null ? void 0 : C.contents;
|
|
3198
|
+
z == null || z.forEach((se) => {
|
|
3199
3199
|
var V;
|
|
3200
|
-
|
|
3201
|
-
key: (
|
|
3202
|
-
value: (V =
|
|
3203
|
-
}, re.push(
|
|
3200
|
+
se.key !== "" && (se = {
|
|
3201
|
+
key: (se == null ? void 0 : se.key) ?? (se == null ? void 0 : se.label),
|
|
3202
|
+
value: (V = se == null ? void 0 : se.value) == null ? void 0 : V.toString()
|
|
3203
|
+
}, re.push(se));
|
|
3204
3204
|
});
|
|
3205
3205
|
}
|
|
3206
3206
|
}), d.form = as(re);
|
|
@@ -3221,13 +3221,13 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3221
3221
|
);
|
|
3222
3222
|
if (((O = D == null ? void 0 : D.data) == null ? void 0 : O.code) === 200 || ((T = D == null ? void 0 : D.data) == null ? void 0 : T.statusCode) === 200) {
|
|
3223
3223
|
let g = await ((ne = D == null ? void 0 : D.data) == null ? void 0 : ne.data);
|
|
3224
|
-
const
|
|
3225
|
-
|
|
3224
|
+
const Z = (K = l(w.value)) == null ? void 0 : K.filter((ae) => (ae == null ? void 0 : ae.comp) !== "methodButton"), U = await Promise.all(
|
|
3225
|
+
Z.map((ae) => ue(ae, g))
|
|
3226
3226
|
);
|
|
3227
|
-
await Promise.all(
|
|
3228
|
-
const
|
|
3229
|
-
let
|
|
3230
|
-
await is(
|
|
3227
|
+
await Promise.all(U);
|
|
3228
|
+
const he = (oe = l(w.value)) == null ? void 0 : oe.filter((ae) => (ae == null ? void 0 : ae.comp) === "methodButton");
|
|
3229
|
+
let le = [...U, ...he];
|
|
3230
|
+
await is(le), f.value = !1;
|
|
3231
3231
|
} else
|
|
3232
3232
|
ll.error("方法调用失败:" + ((i = D == null ? void 0 : D.data) == null ? void 0 : i.errors)), f.value = !1;
|
|
3233
3233
|
} catch {
|
|
@@ -3236,15 +3236,15 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3236
3236
|
s.setFreshContent(!0);
|
|
3237
3237
|
}
|
|
3238
3238
|
} else if (a.api) {
|
|
3239
|
-
let re = await hl(
|
|
3240
|
-
(B = (E = a == null ? void 0 : a.extraValues) == null ? void 0 : E.input) == null || B.forEach((
|
|
3239
|
+
let re = await hl(N.value, sessionStorage.getItem("systemKey"), ""), t = {};
|
|
3240
|
+
(B = (E = a == null ? void 0 : a.extraValues) == null ? void 0 : E.input) == null || B.forEach((le) => {
|
|
3241
3241
|
var ae;
|
|
3242
|
-
t[Object.keys(
|
|
3242
|
+
t[Object.keys(le)[0]] = de((ae = Object.values(le)) == null ? void 0 : ae[0], re);
|
|
3243
3243
|
});
|
|
3244
3244
|
let D = !1;
|
|
3245
|
-
(I = (o = a == null ? void 0 : a.extraValues) == null ? void 0 : o.output) == null || I.forEach((
|
|
3245
|
+
(I = (o = a == null ? void 0 : a.extraValues) == null ? void 0 : o.output) == null || I.forEach((le) => {
|
|
3246
3246
|
var ae, te;
|
|
3247
|
-
(te = (ae = Object.values(
|
|
3247
|
+
(te = (ae = Object.values(le)) == null ? void 0 : ae[0]) != null && te.includes(".doc") && (D = !0);
|
|
3248
3248
|
});
|
|
3249
3249
|
let g;
|
|
3250
3250
|
D ? g = await zl.post(a.api, t, {
|
|
@@ -3258,49 +3258,49 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3258
3258
|
"Content-Type": "application/json"
|
|
3259
3259
|
}
|
|
3260
3260
|
});
|
|
3261
|
-
let
|
|
3262
|
-
var ae, te, we, ye,
|
|
3263
|
-
if (!((te = (ae = Object.values(
|
|
3264
|
-
let _e = (C = (v = (y = (ye = l((we = Object.values(
|
|
3261
|
+
let Z = (b = (u = (L = (J = l(a)) == null ? void 0 : J.extraValues) == null ? void 0 : L.output) == null ? void 0 : u.map((le) => {
|
|
3262
|
+
var ae, te, we, ye, H, e, r, y, v, C, z, se, V, q, ge;
|
|
3263
|
+
if (!((te = (ae = Object.values(le)) == null ? void 0 : ae[0]) != null && te.includes(".doc"))) {
|
|
3264
|
+
let _e = (C = (v = (y = (ye = l((we = Object.values(le)) == null ? void 0 : we[0])) == null ? void 0 : ye.split("[")) == null ? void 0 : y[((r = (e = l((H = Object.values(le)) == null ? void 0 : H[0])) == null ? void 0 : e.split("[")) == null ? void 0 : r.length) - 1]) == null ? void 0 : v.split("]")) == null ? void 0 : C[0];
|
|
3265
3265
|
_e == null || _e.split(":");
|
|
3266
|
-
let Ce = l((
|
|
3267
|
-
if (Ce = (
|
|
3268
|
-
let
|
|
3266
|
+
let Ce = l((z = Object.values(le)) == null ? void 0 : z[0]).substring(0, l((se = Object.values(le)) == null ? void 0 : se[0]).lastIndexOf("["));
|
|
3267
|
+
if (Ce = (q = l(Ce)) == null ? void 0 : q.slice(0, ((V = l(Ce)) == null ? void 0 : V.length) - 1), Ce != null && Ce.includes("[")) {
|
|
3268
|
+
let ve = "";
|
|
3269
3269
|
if ((ge = Yl(Ce, "/")) == null || ge.forEach((ie) => {
|
|
3270
|
-
var Ie, be, $e, We, ze,
|
|
3270
|
+
var Ie, be, $e, We, ze, j, Le;
|
|
3271
3271
|
if (!(ie != null && ie.includes("[")))
|
|
3272
|
-
|
|
3272
|
+
ve = ve === "" ? ve + ie.replaceAll("/", "") : ve + "/" + ie.replaceAll("/", "");
|
|
3273
3273
|
else {
|
|
3274
|
-
let Re = l(ie).slice(1, ((Ie = l(ie)) == null ? void 0 : Ie.length) - 1), He = (
|
|
3274
|
+
let Re = l(ie).slice(1, ((Ie = l(ie)) == null ? void 0 : Ie.length) - 1), He = (j = (ze = (We = ($e = (be = l(Re)) == null ? void 0 : be.split("[")) == null ? void 0 : $e[1]) == null ? void 0 : We.split("]")) == null ? void 0 : ze[0]) == null ? void 0 : j.split(":"), ul = "", rl = (Le = re == null ? void 0 : re.find((Ue) => (Ue == null ? void 0 : Ue.name) === (He == null ? void 0 : He[0]))) == null ? void 0 : Le.compData;
|
|
3275
3275
|
rl == null || rl.forEach((Ue) => {
|
|
3276
3276
|
var pl;
|
|
3277
3277
|
(Ue == null ? void 0 : Ue.key) === "formContent" && ((pl = Ue == null ? void 0 : Ue.contents) == null || pl.forEach((qe) => {
|
|
3278
3278
|
(qe == null ? void 0 : qe.key) === (He == null ? void 0 : He[1]) && (ul = qe == null ? void 0 : qe.value);
|
|
3279
3279
|
}));
|
|
3280
|
-
}),
|
|
3280
|
+
}), ve = ve === "" ? ve + ul.replaceAll("/", "") : ve + "/" + ul.replaceAll("/", "");
|
|
3281
3281
|
}
|
|
3282
|
-
}), Ce =
|
|
3282
|
+
}), Ce = ve, Ce[(Ce == null ? void 0 : Ce.length) - 1] !== "/")
|
|
3283
3283
|
return Ce;
|
|
3284
3284
|
}
|
|
3285
3285
|
}
|
|
3286
|
-
})) == null ? void 0 : b.filter((
|
|
3287
|
-
|
|
3288
|
-
let
|
|
3289
|
-
let ae = await hl(
|
|
3286
|
+
})) == null ? void 0 : b.filter((le) => le);
|
|
3287
|
+
Z = [...new Set(l(Z))];
|
|
3288
|
+
let U = Z == null ? void 0 : Z.map(async (le) => {
|
|
3289
|
+
let ae = await hl(le, sessionStorage.getItem("systemKey"), "");
|
|
3290
3290
|
if ((ae == null ? void 0 : ae.length) === 0)
|
|
3291
|
-
return await ns(
|
|
3291
|
+
return await ns(le);
|
|
3292
3292
|
});
|
|
3293
|
-
await Promise.all(
|
|
3294
|
-
let
|
|
3295
|
-
var v, C,
|
|
3296
|
-
if ((C = (v = Object.values(
|
|
3293
|
+
await Promise.all(U);
|
|
3294
|
+
let he = (me = (Q = ($ = l(a)) == null ? void 0 : $.extraValues) == null ? void 0 : Q.output) == null ? void 0 : me.map(async (le) => {
|
|
3295
|
+
var v, C, z, se, V, q, ge, _e, Ce, ve, ie, Ie, be, $e, We, ze, j, Le, Re, He, ul, rl, Ue, pl, qe, _l, Cl, Qe, Me, wl, Dl, Al, Il, xl, El, $l, Bl, Tl, Sl, Fl, Ol, Ll, Rl, Pl, vl, ia, na, oa, ua, ra, ca, ta, da, pa, fa, ha, va, ma, ya, ba;
|
|
3296
|
+
if ((C = (v = Object.values(le)) == null ? void 0 : v[0]) != null && C.includes(".doc")) {
|
|
3297
3297
|
var ae = new Blob([g.data], {
|
|
3298
3298
|
type: "application/octet-stream;charset=UTF-8"
|
|
3299
|
-
}), te = g.headers["content-disposition"], we = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), ye = we.exec(te),
|
|
3300
|
-
e.style.display = "none", e.href = r, e.download = decodeURI(
|
|
3299
|
+
}), te = g.headers["content-disposition"], we = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), ye = we.exec(te), H = ((V = (se = (z = a == null ? void 0 : a.extraContent) == null ? void 0 : z[0]) == null ? void 0 : se.split(".")) == null ? void 0 : V[0]) + "." + ((q = ye == null ? void 0 : ye[1].split(".")) == null ? void 0 : q[1]), e = document.createElement("a"), r = window.URL.createObjectURL(ae), y = /^["](.*)["]$/g;
|
|
3300
|
+
e.style.display = "none", e.href = r, e.download = decodeURI(H.replace(y, "$1")), document.body.appendChild(e), e.click(), document.body.removeChild(e), window.URL.revokeObjectURL(r);
|
|
3301
3301
|
} else {
|
|
3302
|
-
let Gl = ($e = (be = (Ie = (_e = l((ge = Object.values(
|
|
3303
|
-
if (el.includes("[") && (el = (Le = l(el)) == null ? void 0 : Le.slice(0, ((
|
|
3302
|
+
let Gl = ($e = (be = (Ie = (_e = l((ge = Object.values(le)) == null ? void 0 : ge[0])) == null ? void 0 : _e.split("[")) == null ? void 0 : Ie[((ie = (ve = l((Ce = Object.values(le)) == null ? void 0 : Ce[0])) == null ? void 0 : ve.split("[")) == null ? void 0 : ie.length) - 1]) == null ? void 0 : be.split("]")) == null ? void 0 : $e[0], xe = Gl == null ? void 0 : Gl.split(":"), el = l((We = Object.values(le)) == null ? void 0 : We[0]).substring(0, l((ze = Object.values(le)) == null ? void 0 : ze[0]).lastIndexOf("["));
|
|
3303
|
+
if (el.includes("[") && (el = (Le = l(el)) == null ? void 0 : Le.slice(0, ((j = l(el)) == null ? void 0 : j.length) - 1)), el != null && el.includes("[")) {
|
|
3304
3304
|
let Fe = "";
|
|
3305
3305
|
(Re = Yl(el, "/")) == null || Re.forEach((Pe) => {
|
|
3306
3306
|
var jl, Ge, Xe, fl, Vl, ga, ka;
|
|
@@ -3342,7 +3342,7 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3342
3342
|
}
|
|
3343
3343
|
}
|
|
3344
3344
|
});
|
|
3345
|
-
await Promise.all(
|
|
3345
|
+
await Promise.all(he);
|
|
3346
3346
|
}
|
|
3347
3347
|
Y.value = !0;
|
|
3348
3348
|
}, h = async (a) => {
|
|
@@ -3359,14 +3359,14 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3359
3359
|
}
|
|
3360
3360
|
})).data.result;
|
|
3361
3361
|
let I = "";
|
|
3362
|
-
const
|
|
3363
|
-
return o == null || o.forEach((
|
|
3364
|
-
var
|
|
3365
|
-
((
|
|
3362
|
+
const J = await hl(N.value, sessionStorage.getItem("systemKey"), "");
|
|
3363
|
+
return o == null || o.forEach((Z) => {
|
|
3364
|
+
var U, he, le, ae, te;
|
|
3365
|
+
((he = (U = Z == null ? void 0 : Z.value) == null ? void 0 : U.tableData) == null ? void 0 : he.算法名称) === ((le = d == null ? void 0 : d[E]) == null ? void 0 : le.method) && (I = (te = (ae = Z == null ? void 0 : Z.value) == null ? void 0 : ae.tableData) == null ? void 0 : te.算法体);
|
|
3366
3366
|
}), {
|
|
3367
3367
|
buttonName: ((u = d == null ? void 0 : d[E]) == null ? void 0 : u.method) ?? ((Q = ($ = (b = o == null ? void 0 : o[0]) == null ? void 0 : b.value) == null ? void 0 : $.tableData) == null ? void 0 : Q.算法名称),
|
|
3368
3368
|
api: I === "" ? (t = (re = (me = o == null ? void 0 : o[0]) == null ? void 0 : me.value) == null ? void 0 : re.tableData) == null ? void 0 : t.算法体 : I,
|
|
3369
|
-
content:
|
|
3369
|
+
content: J == null ? void 0 : J.filter((Z) => Z.comp !== "methodButton"),
|
|
3370
3370
|
extraContent: (D = l(i.value)) == null ? void 0 : D.slice(1),
|
|
3371
3371
|
methodName: (i == null ? void 0 : i.path) ?? "",
|
|
3372
3372
|
extraValues: (g = d == null ? void 0 : d[E]) == null ? void 0 : g.data
|
|
@@ -3387,10 +3387,10 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3387
3387
|
type: "methodData",
|
|
3388
3388
|
tableId: B == null ? void 0 : B.id
|
|
3389
3389
|
}
|
|
3390
|
-
}), I = await hl(
|
|
3390
|
+
}), I = await hl(N.value, sessionStorage.getItem("systemKey"), ""), J = (u = o.data.result) == null ? void 0 : u[0];
|
|
3391
3391
|
return {
|
|
3392
3392
|
buttonName: (b = B == null ? void 0 : B.key) == null ? void 0 : b.methodKey,
|
|
3393
|
-
api: (Q = ($ =
|
|
3393
|
+
api: (Q = ($ = J == null ? void 0 : J.value) == null ? void 0 : $.tableData) == null ? void 0 : Q[0],
|
|
3394
3394
|
content: I == null ? void 0 : I.filter((re) => re.comp !== "methodButton"),
|
|
3395
3395
|
extraContent: (me = l(i.value)) == null ? void 0 : me.slice(1),
|
|
3396
3396
|
methodName: (i == null ? void 0 : i.method) ?? ""
|
|
@@ -3410,9 +3410,9 @@ const ln = (p) => /^'[^']+':\{.*\}$/.exec(l(p)), an = (p) => /^'([^']+)':.*$/.ex
|
|
|
3410
3410
|
R.value == "view" && !Y.value && await h(l(n.itemData)), Y.value = !1;
|
|
3411
3411
|
},
|
|
3412
3412
|
{ immediate: !0, deep: !0 }
|
|
3413
|
-
), (a, d) => (
|
|
3414
|
-
(
|
|
3415
|
-
_.api !== "" ? (
|
|
3413
|
+
), (a, d) => (ee(), fe("div", rn, [
|
|
3414
|
+
(ee(!0), fe(Te, null, Oe(k.value, (_) => (ee(), fe("div", null, [
|
|
3415
|
+
_.api !== "" ? (ee(), Se($a(qa), {
|
|
3416
3416
|
key: 0,
|
|
3417
3417
|
class: "calculator-content",
|
|
3418
3418
|
modelValue: _.buttonName,
|
|
@@ -3444,7 +3444,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3444
3444
|
visible: !1,
|
|
3445
3445
|
width: "40%",
|
|
3446
3446
|
title: "签名配置"
|
|
3447
|
-
}), F =
|
|
3447
|
+
}), F = M("create"), P = M([
|
|
3448
3448
|
{
|
|
3449
3449
|
label: "取消",
|
|
3450
3450
|
background: "#c0c4cc"
|
|
@@ -3453,7 +3453,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3453
3453
|
label: "确认",
|
|
3454
3454
|
background: "#436aaf"
|
|
3455
3455
|
}
|
|
3456
|
-
]), w =
|
|
3456
|
+
]), w = M([
|
|
3457
3457
|
{
|
|
3458
3458
|
label: "宽度(%):",
|
|
3459
3459
|
prop: "signPadWidth",
|
|
@@ -3546,7 +3546,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3546
3546
|
// ],
|
|
3547
3547
|
// value: false
|
|
3548
3548
|
// },
|
|
3549
|
-
]),
|
|
3549
|
+
]), N = M({}), S = M([]), X = () => ({
|
|
3550
3550
|
comp: "Signature",
|
|
3551
3551
|
compData: [
|
|
3552
3552
|
{
|
|
@@ -3555,12 +3555,12 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3555
3555
|
},
|
|
3556
3556
|
{
|
|
3557
3557
|
key: "signConfig",
|
|
3558
|
-
contents:
|
|
3558
|
+
contents: N.value
|
|
3559
3559
|
}
|
|
3560
3560
|
]
|
|
3561
3561
|
}), Y = (A) => {
|
|
3562
3562
|
var m;
|
|
3563
|
-
|
|
3563
|
+
N.value = l(A), s("change", (m = X()) == null ? void 0 : m.compData);
|
|
3564
3564
|
}, pe = (A) => {
|
|
3565
3565
|
var m, W;
|
|
3566
3566
|
if ((A == null ? void 0 : A.buttonName) === "确认") {
|
|
@@ -3598,20 +3598,20 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3598
3598
|
};
|
|
3599
3599
|
return Ne(() => n == null ? void 0 : n.itemContents, (A) => {
|
|
3600
3600
|
var m, W;
|
|
3601
|
-
A && (
|
|
3601
|
+
A && (N.value = ((m = A == null ? void 0 : A.find((c) => c.key === "signConfig")) == null ? void 0 : m.contents) ?? {}, S.value = ((W = A == null ? void 0 : A.find((c) => c.key === "signTypeList")) == null ? void 0 : W.contents) ?? []);
|
|
3602
3602
|
}, { immediate: !0 }), (A, m) => {
|
|
3603
3603
|
const W = Be("svg-icon"), c = Be("el-button");
|
|
3604
|
-
return
|
|
3604
|
+
return ee(), fe(Te, null, [
|
|
3605
3605
|
x("div", null, [
|
|
3606
3606
|
x("div", hn, [
|
|
3607
3607
|
m[2] || (m[2] = x("h4", { class: "module-title" }, "签名类型", -1)),
|
|
3608
|
-
|
|
3608
|
+
G(c, {
|
|
3609
3609
|
class: "module-icon",
|
|
3610
3610
|
id: "themeButton",
|
|
3611
3611
|
onClick: m[0] || (m[0] = (h) => ue("create"))
|
|
3612
3612
|
}, {
|
|
3613
3613
|
icon: ce(() => [
|
|
3614
|
-
|
|
3614
|
+
G(W, {
|
|
3615
3615
|
name: "Plus",
|
|
3616
3616
|
class: "icon-size"
|
|
3617
3617
|
})
|
|
@@ -3624,13 +3624,13 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3624
3624
|
})
|
|
3625
3625
|
]),
|
|
3626
3626
|
x("div", vn, [
|
|
3627
|
-
(
|
|
3627
|
+
(ee(!0), fe(Te, null, Oe(S.value, (h, a) => (ee(), fe("div", {
|
|
3628
3628
|
class: "module-data-item",
|
|
3629
3629
|
key: a
|
|
3630
3630
|
}, [
|
|
3631
3631
|
x("span", null, ke(h == null ? void 0 : h.label), 1),
|
|
3632
3632
|
x("div", null, [
|
|
3633
|
-
|
|
3633
|
+
G(c, {
|
|
3634
3634
|
type: "primary",
|
|
3635
3635
|
size: "small",
|
|
3636
3636
|
onClick: (d) => ue("update", { ...h, index: a + 1 })
|
|
@@ -3641,7 +3641,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3641
3641
|
_: 2,
|
|
3642
3642
|
__: [3]
|
|
3643
3643
|
}, 1032, ["onClick"]),
|
|
3644
|
-
|
|
3644
|
+
G(c, {
|
|
3645
3645
|
type: "danger",
|
|
3646
3646
|
size: "small",
|
|
3647
3647
|
onClick: (d) => ue("delete", a)
|
|
@@ -3656,13 +3656,13 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3656
3656
|
]))), 128))
|
|
3657
3657
|
]),
|
|
3658
3658
|
x("div", mn, [
|
|
3659
|
-
|
|
3659
|
+
G(Ke, {
|
|
3660
3660
|
rowContents: w.value,
|
|
3661
3661
|
onChange: Y
|
|
3662
3662
|
}, null, 8, ["rowContents"])
|
|
3663
3663
|
])
|
|
3664
3664
|
]),
|
|
3665
|
-
|
|
3665
|
+
G(Je, {
|
|
3666
3666
|
visible: f.visible,
|
|
3667
3667
|
title: f.title,
|
|
3668
3668
|
onBeforeDestroy: de,
|
|
@@ -3670,13 +3670,13 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3670
3670
|
}, {
|
|
3671
3671
|
default: ce(() => [
|
|
3672
3672
|
x("div", yn, [
|
|
3673
|
-
(
|
|
3673
|
+
(ee(), Se(Ke, {
|
|
3674
3674
|
rowContents: R.value,
|
|
3675
3675
|
key: R.value,
|
|
3676
3676
|
isEnableWrap: !1,
|
|
3677
3677
|
isButtonRow: !1,
|
|
3678
3678
|
isStartJustify: !1,
|
|
3679
|
-
buttonValue:
|
|
3679
|
+
buttonValue: P.value,
|
|
3680
3680
|
onOnButtonClick: pe
|
|
3681
3681
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
3682
3682
|
])
|
|
@@ -3700,16 +3700,16 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3700
3700
|
},
|
|
3701
3701
|
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
3702
3702
|
setup(p, { emit: k }) {
|
|
3703
|
-
const n = p, s = k, f =
|
|
3703
|
+
const n = p, s = k, f = M(1), F = aa(() => {
|
|
3704
3704
|
var X, Y;
|
|
3705
3705
|
return (X = n == null ? void 0 : n.stepConfig) != null && X.allowTrigger ? f.value : (Y = n == null ? void 0 : n.stepConfig) == null ? void 0 : Y.active;
|
|
3706
|
-
}),
|
|
3706
|
+
}), P = (X, Y) => {
|
|
3707
3707
|
f.value = Y, s("clickStep", X, Y);
|
|
3708
3708
|
}, w = (X) => Qa(X), R = () => {
|
|
3709
3709
|
var Y;
|
|
3710
3710
|
const X = (Y = n == null ? void 0 : n.stepList) == null ? void 0 : Y.find((pe, ue) => ue + 1 === F.value);
|
|
3711
3711
|
return console.log("findStep", X), X ? X == null ? void 0 : X.children : [];
|
|
3712
|
-
},
|
|
3712
|
+
}, N = (X) => {
|
|
3713
3713
|
s("clickTrigger", X);
|
|
3714
3714
|
}, S = (X) => {
|
|
3715
3715
|
s("changeTrigger", X);
|
|
@@ -3717,8 +3717,8 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3717
3717
|
return (X, Y) => {
|
|
3718
3718
|
var de, A, m, W, c;
|
|
3719
3719
|
const pe = Be("el-step"), ue = Be("el-steps");
|
|
3720
|
-
return
|
|
3721
|
-
|
|
3720
|
+
return ee(), fe(Te, null, [
|
|
3721
|
+
G(ue, {
|
|
3722
3722
|
direction: (de = p.stepConfig) == null ? void 0 : de.direction,
|
|
3723
3723
|
active: F.value,
|
|
3724
3724
|
"finish-status": "success",
|
|
@@ -3726,10 +3726,10 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3726
3726
|
"align-center": ((m = p.stepConfig) == null ? void 0 : m.alignCenter) ?? !0
|
|
3727
3727
|
}, {
|
|
3728
3728
|
default: ce(() => [
|
|
3729
|
-
(
|
|
3729
|
+
(ee(!0), fe(Te, null, Oe(p.stepList, (h, a) => (ee(), Se(pe, {
|
|
3730
3730
|
key: a,
|
|
3731
3731
|
class: "step-item",
|
|
3732
|
-
onClick: (d) =>
|
|
3732
|
+
onClick: (d) => P(h, a + 1)
|
|
3733
3733
|
}, {
|
|
3734
3734
|
title: ce(() => [
|
|
3735
3735
|
Wl(X.$slots, "title", {
|
|
@@ -3746,14 +3746,14 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3746
3746
|
]),
|
|
3747
3747
|
_: 3
|
|
3748
3748
|
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
3749
|
-
(W = p.stepConfig) != null && W.allowTrigger && ((c = p.stepConfig) != null && c.active) ? (
|
|
3749
|
+
(W = p.stepConfig) != null && W.allowTrigger && ((c = p.stepConfig) != null && c.active) ? (ee(!0), fe(Te, { key: 0 }, Oe(R(), (h, a) => (ee(), fe("div", {
|
|
3750
3750
|
key: a,
|
|
3751
3751
|
class: "step-cont-wrap"
|
|
3752
3752
|
}, [
|
|
3753
|
-
(
|
|
3753
|
+
(ee(), Se(Kl(w(h == null ? void 0 : h.type)), {
|
|
3754
3754
|
modelValue: h.value,
|
|
3755
3755
|
"onUpdate:modelValue": (d) => h.value = d,
|
|
3756
|
-
onClickTrigger:
|
|
3756
|
+
onClickTrigger: N,
|
|
3757
3757
|
onChangeTrigger: S,
|
|
3758
3758
|
content: h == null ? void 0 : h.content
|
|
3759
3759
|
}, Wa({ _: 2 }, [
|
|
@@ -3782,23 +3782,23 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3782
3782
|
},
|
|
3783
3783
|
emits: ["clickStep"],
|
|
3784
3784
|
setup(p, { emit: k }) {
|
|
3785
|
-
const n = p, s = k, f =
|
|
3785
|
+
const n = p, s = k, f = M({}), F = M([]), P = (w, R) => {
|
|
3786
3786
|
s("clickStep", w, R);
|
|
3787
3787
|
};
|
|
3788
3788
|
return Ne(() => n == null ? void 0 : n.itemData, (w) => {
|
|
3789
|
-
var R,
|
|
3790
|
-
F.value = (R = w == null ? void 0 : w.find((S) => (S == null ? void 0 : S.key) === "stepList")) == null ? void 0 : R.contents, f.value = (
|
|
3789
|
+
var R, N;
|
|
3790
|
+
F.value = (R = w == null ? void 0 : w.find((S) => (S == null ? void 0 : S.key) === "stepList")) == null ? void 0 : R.contents, f.value = (N = w == null ? void 0 : w.find((S) => (S == null ? void 0 : S.key) === "stepConfig")) == null ? void 0 : N.contents;
|
|
3791
3791
|
}, {
|
|
3792
3792
|
immediate: !0
|
|
3793
3793
|
}), (w, R) => {
|
|
3794
|
-
const
|
|
3795
|
-
return
|
|
3794
|
+
const N = Be("svg-icon");
|
|
3795
|
+
return ee(), Se(_n, {
|
|
3796
3796
|
stepConfig: f.value,
|
|
3797
3797
|
stepList: F.value,
|
|
3798
|
-
onClickStep:
|
|
3798
|
+
onClickStep: P
|
|
3799
3799
|
}, {
|
|
3800
3800
|
icon: ce(() => [
|
|
3801
|
-
|
|
3801
|
+
G(N, { name: "import" })
|
|
3802
3802
|
]),
|
|
3803
3803
|
title: ce(({ title: S }) => [
|
|
3804
3804
|
Ee(ke(S), 1)
|
|
@@ -3826,10 +3826,10 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3826
3826
|
setup(p) {
|
|
3827
3827
|
return (k, n) => {
|
|
3828
3828
|
const s = Be("el-timeline-item"), f = Be("el-timeline");
|
|
3829
|
-
return
|
|
3829
|
+
return ee(), Se(f, null, {
|
|
3830
3830
|
default: ce(() => [
|
|
3831
|
-
(
|
|
3832
|
-
key:
|
|
3831
|
+
(ee(!0), fe(Te, null, Oe(p.activities, (F, P) => (ee(), Se(s, {
|
|
3832
|
+
key: P,
|
|
3833
3833
|
timestamp: F.timestamp,
|
|
3834
3834
|
placement: p.timeLineConfig.placement,
|
|
3835
3835
|
center: p.timeLineConfig.isCenter,
|
|
@@ -3862,18 +3862,18 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3862
3862
|
}
|
|
3863
3863
|
},
|
|
3864
3864
|
setup(p) {
|
|
3865
|
-
const k = p, n =
|
|
3865
|
+
const k = p, n = M({}), s = M([]);
|
|
3866
3866
|
return Ne(() => k == null ? void 0 : k.itemData, (f) => {
|
|
3867
|
-
var F,
|
|
3868
|
-
s.value = (F = f == null ? void 0 : f.find((w) => (w == null ? void 0 : w.key) === "timeLineList")) == null ? void 0 : F.contents, n.value = (
|
|
3867
|
+
var F, P;
|
|
3868
|
+
s.value = (F = f == null ? void 0 : f.find((w) => (w == null ? void 0 : w.key) === "timeLineList")) == null ? void 0 : F.contents, n.value = (P = f == null ? void 0 : f.find((w) => (w == null ? void 0 : w.key) === "timeLineConfig")) == null ? void 0 : P.contents;
|
|
3869
3869
|
}, {
|
|
3870
3870
|
immediate: !0
|
|
3871
|
-
}), (f, F) => (
|
|
3871
|
+
}), (f, F) => (ee(), Se(Dn, {
|
|
3872
3872
|
activities: s.value,
|
|
3873
3873
|
timeLineConfig: n.value
|
|
3874
3874
|
}, {
|
|
3875
|
-
content: ce(({ content:
|
|
3876
|
-
x("span", An, ke(
|
|
3875
|
+
content: ce(({ content: P, timestamp: w }) => [
|
|
3876
|
+
x("span", An, ke(P), 1),
|
|
3877
3877
|
x("span", In, ke(w), 1)
|
|
3878
3878
|
]),
|
|
3879
3879
|
_: 1
|
|
@@ -3893,7 +3893,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3893
3893
|
index: Number
|
|
3894
3894
|
},
|
|
3895
3895
|
setup(p) {
|
|
3896
|
-
const k = p, n =
|
|
3896
|
+
const k = p, n = M([]);
|
|
3897
3897
|
return Ne(
|
|
3898
3898
|
() => k == null ? void 0 : k.itemData,
|
|
3899
3899
|
(s) => {
|
|
@@ -3906,8 +3906,8 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3906
3906
|
})));
|
|
3907
3907
|
},
|
|
3908
3908
|
{ immediate: !0, deep: !0 }
|
|
3909
|
-
), (s, f) => (
|
|
3910
|
-
|
|
3909
|
+
), (s, f) => (ee(), fe("div", $n, [
|
|
3910
|
+
G(Xa, { tabsContents: n.value }, null, 8, ["tabsContents"])
|
|
3911
3911
|
]));
|
|
3912
3912
|
}
|
|
3913
3913
|
}, Tn = /* @__PURE__ */ je(Bn, [["__scopeId", "data-v-d3bb10b7"]]), Jl = Ba("tabComp", {
|
|
@@ -3956,18 +3956,18 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3956
3956
|
}), k.setItemData(F);
|
|
3957
3957
|
};
|
|
3958
3958
|
return (f, F) => {
|
|
3959
|
-
const
|
|
3960
|
-
return
|
|
3961
|
-
(
|
|
3959
|
+
const P = Be("svg-icon");
|
|
3960
|
+
return ee(), fe("div", Sn, [
|
|
3961
|
+
(ee(!0), fe(Te, null, Oe($a(bo), (w, R) => (ee(), fe("div", {
|
|
3962
3962
|
class: "type-list",
|
|
3963
3963
|
key: R
|
|
3964
3964
|
}, [
|
|
3965
3965
|
x("div", {
|
|
3966
3966
|
class: "list-content",
|
|
3967
|
-
onClick: (
|
|
3967
|
+
onClick: (N) => s(w)
|
|
3968
3968
|
}, [
|
|
3969
3969
|
x("div", On, [
|
|
3970
|
-
|
|
3970
|
+
G(P, {
|
|
3971
3971
|
name: w.icon
|
|
3972
3972
|
}, null, 8, ["name"])
|
|
3973
3973
|
]),
|
|
@@ -3983,20 +3983,20 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
3983
3983
|
}, Mn = ["onClick"], Jn = { class: "comp-child" }, Gn = {
|
|
3984
3984
|
__name: "modelFill",
|
|
3985
3985
|
setup(p) {
|
|
3986
|
-
const k = Jl(Ze), { itemData: n, originalData: s } = ol(k), f =
|
|
3987
|
-
|
|
3988
|
-
const F =
|
|
3986
|
+
const k = Jl(Ze), { itemData: n, originalData: s } = ol(k), f = M([]);
|
|
3987
|
+
M([]);
|
|
3988
|
+
const F = M([]), P = M([]), w = (pe) => {
|
|
3989
3989
|
var de;
|
|
3990
|
-
let ue = (de = l(
|
|
3991
|
-
|
|
3990
|
+
let ue = (de = l(P.value)) == null ? void 0 : de.map((A, m) => (pe === m && (A.content = !0), A));
|
|
3991
|
+
P.value = ue;
|
|
3992
3992
|
}, R = (pe) => {
|
|
3993
3993
|
var de;
|
|
3994
|
-
let ue = (de = l(
|
|
3995
|
-
|
|
3996
|
-
},
|
|
3994
|
+
let ue = (de = l(P.value)) == null ? void 0 : de.map((A, m) => (pe === m && (A.content = !1), A));
|
|
3995
|
+
P.value = ue, f.value = l(n.value);
|
|
3996
|
+
}, N = (pe, ue) => {
|
|
3997
3997
|
var W;
|
|
3998
|
-
let de = (W = l(
|
|
3999
|
-
|
|
3998
|
+
let de = (W = l(P.value)) == null ? void 0 : W.map((c, h) => (pe === h && (c.content = !1), c));
|
|
3999
|
+
P.value = de;
|
|
4000
4000
|
const A = l(n.value), m = A == null ? void 0 : A.filter((c, h) => (h === pe && (c.name = ue), c));
|
|
4001
4001
|
k.setOriginalData(m), k.setItemData(m);
|
|
4002
4002
|
};
|
|
@@ -4004,7 +4004,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4004
4004
|
() => n.value,
|
|
4005
4005
|
() => {
|
|
4006
4006
|
var pe, ue, de;
|
|
4007
|
-
!n.value || ((pe = n.value) == null ? void 0 : pe.length) === 0 ? f.value = [] : f.value = (ue = l(n.value)) == null ? void 0 : ue.filter((A) => (A == null ? void 0 : A.comp) !== "methodButton"), F.value = f.value,
|
|
4007
|
+
!n.value || ((pe = n.value) == null ? void 0 : pe.length) === 0 ? f.value = [] : f.value = (ue = l(n.value)) == null ? void 0 : ue.filter((A) => (A == null ? void 0 : A.comp) !== "methodButton"), F.value = f.value, P.value = (de = l(F.value)) == null ? void 0 : de.map((A, m) => ({
|
|
4008
4008
|
id: m,
|
|
4009
4009
|
content: !1
|
|
4010
4010
|
}));
|
|
@@ -4015,7 +4015,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4015
4015
|
var m, W;
|
|
4016
4016
|
if (!pe) return;
|
|
4017
4017
|
let A = l(n.value);
|
|
4018
|
-
A = (m = A == null ? void 0 : A.map((c, h) => (h === de && (c.compData = pe), c))) == null ? void 0 : m.filter((c) => (c == null ? void 0 : c.comp) !== "methodButton"),
|
|
4018
|
+
A = (m = A == null ? void 0 : A.map((c, h) => (h === de && (c.compData = pe), c))) == null ? void 0 : m.filter((c) => (c == null ? void 0 : c.comp) !== "methodButton"), P.value = (W = l(A)) == null ? void 0 : W.map((c, h) => ({
|
|
4019
4019
|
id: h,
|
|
4020
4020
|
content: !1
|
|
4021
4021
|
})), k.setOriginalData(A), k.setItemData(A);
|
|
@@ -4035,10 +4035,10 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4035
4035
|
};
|
|
4036
4036
|
return (pe, ue) => {
|
|
4037
4037
|
const de = Be("svg-icon");
|
|
4038
|
-
return
|
|
4038
|
+
return ee(), fe("div", Pn, [
|
|
4039
4039
|
ue[1] || (ue[1] = x("div", { class: "fill-operate" }, ke("操作栏"), -1)),
|
|
4040
4040
|
x("div", jn, [
|
|
4041
|
-
|
|
4041
|
+
G(ps, {
|
|
4042
4042
|
class: "collapse-content",
|
|
4043
4043
|
collapseContents: f.value
|
|
4044
4044
|
}, {
|
|
@@ -4047,51 +4047,51 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4047
4047
|
return [
|
|
4048
4048
|
x("div", Vn, [
|
|
4049
4049
|
x("div", Nn, [
|
|
4050
|
-
(c = (W =
|
|
4050
|
+
(c = (W = P.value) == null ? void 0 : W.find((oe) => oe.id === m)) != null && c.content ? Ye("", !0) : (ee(), fe("div", {
|
|
4051
4051
|
key: 0,
|
|
4052
4052
|
class: "collapse-title",
|
|
4053
4053
|
style: Ma({ marginRight: A.name && A.name !== "" ? "8px" : "0px" })
|
|
4054
4054
|
}, ke(A.name), 5)),
|
|
4055
|
-
(a = (h =
|
|
4056
|
-
|
|
4055
|
+
(a = (h = P.value) == null ? void 0 : h.find((oe) => oe.id === m)) != null && a.content ? (ee(), fe("div", Un, [
|
|
4056
|
+
G(Ya, {
|
|
4057
4057
|
modelValue: A.name,
|
|
4058
4058
|
"onUpdate:modelValue": (oe) => A.name = oe,
|
|
4059
4059
|
onClick: ue[0] || (ue[0] = Nl(() => {
|
|
4060
4060
|
}, ["stop"]))
|
|
4061
4061
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4062
4062
|
])) : Ye("", !0),
|
|
4063
|
-
(_ = (d =
|
|
4063
|
+
(_ = (d = P.value) == null ? void 0 : d.find((oe) => oe.id === m)) != null && _.content ? Ye("", !0) : (ee(), fe("div", {
|
|
4064
4064
|
key: 2,
|
|
4065
4065
|
onClick: Nl((oe) => w(m), ["stop"]),
|
|
4066
4066
|
class: "icon-content"
|
|
4067
4067
|
}, [
|
|
4068
|
-
|
|
4068
|
+
G(de, {
|
|
4069
4069
|
name: "Edit",
|
|
4070
4070
|
style: { width: "16px", height: "16px" }
|
|
4071
4071
|
})
|
|
4072
4072
|
], 8, Kn))
|
|
4073
4073
|
]),
|
|
4074
4074
|
x("div", Wn, [
|
|
4075
|
-
(T = (O =
|
|
4076
|
-
|
|
4075
|
+
(T = (O = P.value) == null ? void 0 : O.find((oe) => oe.id === m)) != null && T.content ? (ee(), fe("div", zn, [
|
|
4076
|
+
G(de, {
|
|
4077
4077
|
name: "Cancel",
|
|
4078
4078
|
style: { width: "16px", height: "16px" },
|
|
4079
4079
|
class: "icon-content",
|
|
4080
4080
|
onClick: Nl((oe) => R(m), ["stop"])
|
|
4081
4081
|
}, null, 8, ["onClick"]),
|
|
4082
|
-
|
|
4082
|
+
G(de, {
|
|
4083
4083
|
name: "Save",
|
|
4084
|
-
onClick: Nl((oe) =>
|
|
4084
|
+
onClick: Nl((oe) => N(m, A.name), ["stop"]),
|
|
4085
4085
|
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
4086
4086
|
class: "icon-content"
|
|
4087
4087
|
}, null, 8, ["onClick"])
|
|
4088
4088
|
])) : Ye("", !0),
|
|
4089
|
-
(K = (ne =
|
|
4089
|
+
(K = (ne = P.value) == null ? void 0 : ne.find((oe) => oe.id === m)) != null && K.content ? Ye("", !0) : (ee(), fe("div", {
|
|
4090
4090
|
key: 1,
|
|
4091
4091
|
onClick: Nl((oe) => Y(m), ["stop"]),
|
|
4092
4092
|
class: "icon-content"
|
|
4093
4093
|
}, [
|
|
4094
|
-
|
|
4094
|
+
G(de, {
|
|
4095
4095
|
name: "Delete",
|
|
4096
4096
|
style: { width: "16px", height: "16px" }
|
|
4097
4097
|
})
|
|
@@ -4104,7 +4104,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4104
4104
|
var W, c;
|
|
4105
4105
|
return [
|
|
4106
4106
|
x("div", Jn, [
|
|
4107
|
-
(
|
|
4107
|
+
(ee(), Se(Kl(S(A.comp + "Operate")), {
|
|
4108
4108
|
itemContents: A == null ? void 0 : A.compData,
|
|
4109
4109
|
originalItemContents: (c = (W = F.value) == null ? void 0 : W.find((h, a) => a === m)) == null ? void 0 : c.compData,
|
|
4110
4110
|
onChange: (h) => X(h, A, m)
|
|
@@ -4124,7 +4124,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4124
4124
|
}, Qn = { style: { display: "flex" } }, Xn = {
|
|
4125
4125
|
__name: "modelShow",
|
|
4126
4126
|
setup(p) {
|
|
4127
|
-
const k = Jl(Ze), { itemData: n } = ol(k), s =
|
|
4127
|
+
const k = Jl(Ze), { itemData: n } = ol(k), s = M([]);
|
|
4128
4128
|
Ne(
|
|
4129
4129
|
() => n.value,
|
|
4130
4130
|
() => {
|
|
@@ -4134,18 +4134,18 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4134
4134
|
{ deep: !0, immediate: !0 }
|
|
4135
4135
|
);
|
|
4136
4136
|
const f = (F) => sa(F);
|
|
4137
|
-
return (F,
|
|
4137
|
+
return (F, P) => {
|
|
4138
4138
|
var w;
|
|
4139
|
-
return ((w = s.value) == null ? void 0 : w.length) > 0 ? (
|
|
4140
|
-
(
|
|
4139
|
+
return ((w = s.value) == null ? void 0 : w.length) > 0 ? (ee(), fe("div", qn, [
|
|
4140
|
+
(ee(!0), fe(Te, null, Oe(s.value, (R, N) => (ee(), fe("div", {
|
|
4141
4141
|
class: "item-content",
|
|
4142
|
-
key:
|
|
4142
|
+
key: N
|
|
4143
4143
|
}, [
|
|
4144
4144
|
x("div", Qn, ke(R.name), 1),
|
|
4145
|
-
(
|
|
4145
|
+
(ee(), Se(Kl(f(R.comp)), {
|
|
4146
4146
|
itemData: R == null ? void 0 : R.compData,
|
|
4147
4147
|
childItemData: R == null ? void 0 : R.itemChildData,
|
|
4148
|
-
key:
|
|
4148
|
+
key: N
|
|
4149
4149
|
}, null, 8, ["itemData", "childItemData"]))
|
|
4150
4150
|
]))), 128))
|
|
4151
4151
|
])) : Ye("", !0);
|
|
@@ -4164,10 +4164,10 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4164
4164
|
},
|
|
4165
4165
|
emits: ["change"],
|
|
4166
4166
|
setup(p, { emit: k }) {
|
|
4167
|
-
const n = p, s = k, f =
|
|
4168
|
-
|
|
4167
|
+
const n = p, s = k, f = M([]), F = M(!1), P = M(""), w = M({ title: "" }), R = M(-1), N = M(!1), S = M(-1), X = M(/* @__PURE__ */ new Map()), Y = M(null), pe = Jl(Ze), { itemData: ue } = ol(pe), de = () => {
|
|
4168
|
+
P.value = "新增标签页", w.value.title = "", R.value = -1, F.value = !0;
|
|
4169
4169
|
}, A = (u) => {
|
|
4170
|
-
|
|
4170
|
+
P.value = "修改标签页", w.value.title = f.value[u].title, R.value = u, F.value = !0;
|
|
4171
4171
|
}, m = (u) => {
|
|
4172
4172
|
const b = h(u);
|
|
4173
4173
|
X.value.delete(b), f.value.splice(u, 1), L();
|
|
@@ -4195,7 +4195,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4195
4195
|
const b = h(u);
|
|
4196
4196
|
Y.value = l(ue.value);
|
|
4197
4197
|
let $ = X.value.get(b);
|
|
4198
|
-
!$ && ((Q = f.value[u].children) == null ? void 0 : Q.length) > 0 && ($ = T(f.value[u].children)), $ ? pe.setItemData(l($)) : pe.setItemData([]),
|
|
4198
|
+
!$ && ((Q = f.value[u].children) == null ? void 0 : Q.length) > 0 && ($ = T(f.value[u].children)), $ ? pe.setItemData(l($)) : pe.setItemData([]), N.value = !0;
|
|
4199
4199
|
}, d = aa(() => {
|
|
4200
4200
|
const u = Sa(Ze), b = ol(u).itemData.value;
|
|
4201
4201
|
return console.log("可用组件数据", b), !b || !Array.isArray(b) ? [] : b.filter(($) => {
|
|
@@ -4271,11 +4271,11 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4271
4271
|
const u = h(S.value);
|
|
4272
4272
|
X.value.set(u, l(ue.value)), f.value[S.value].children = B(ue.value), console.log("保存后的数据", B(ue.value));
|
|
4273
4273
|
}
|
|
4274
|
-
|
|
4274
|
+
N.value = !1, S.value = -1, Y.value = null, L();
|
|
4275
4275
|
}, i = () => {
|
|
4276
|
-
Y.value && pe.setItemData(l(Y.value)),
|
|
4276
|
+
Y.value && pe.setItemData(l(Y.value)), N.value = !1, S.value = -1, Y.value = null;
|
|
4277
4277
|
}, E = () => {
|
|
4278
|
-
|
|
4278
|
+
N.value && i();
|
|
4279
4279
|
}, B = (u) => {
|
|
4280
4280
|
if (!Array.isArray(u))
|
|
4281
4281
|
throw new Error("sourceData must be an array");
|
|
@@ -4299,7 +4299,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4299
4299
|
default:
|
|
4300
4300
|
return {
|
|
4301
4301
|
type: "xxx",
|
|
4302
|
-
content:
|
|
4302
|
+
content: J(re || []),
|
|
4303
4303
|
value: ""
|
|
4304
4304
|
};
|
|
4305
4305
|
}
|
|
@@ -4361,7 +4361,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4361
4361
|
}
|
|
4362
4362
|
b[D] = Array.isArray(t) ? t : [];
|
|
4363
4363
|
}), b;
|
|
4364
|
-
},
|
|
4364
|
+
}, J = (u) => (console.log("Default conversion logic - to be implemented"), {
|
|
4365
4365
|
originalData: u,
|
|
4366
4366
|
processed: !1,
|
|
4367
4367
|
componentType: "unknown"
|
|
@@ -4391,11 +4391,11 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4391
4391
|
{ immediate: !0, deep: !0 }
|
|
4392
4392
|
), (u, b) => {
|
|
4393
4393
|
const $ = Be("svg-icon"), Q = Be("el-input"), me = Be("el-form-item"), re = Be("el-form");
|
|
4394
|
-
return
|
|
4394
|
+
return ee(), fe("div", null, [
|
|
4395
4395
|
x("div", Zn, [
|
|
4396
4396
|
b[6] || (b[6] = x("h4", null, "标签页管理", -1)),
|
|
4397
4397
|
x("button", { onClick: de }, [
|
|
4398
|
-
|
|
4398
|
+
G($, {
|
|
4399
4399
|
name: "Plus",
|
|
4400
4400
|
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
4401
4401
|
}),
|
|
@@ -4403,7 +4403,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4403
4403
|
])
|
|
4404
4404
|
]),
|
|
4405
4405
|
x("div", eo, [
|
|
4406
|
-
(
|
|
4406
|
+
(ee(!0), fe(Te, null, Oe(f.value, (t, D) => (ee(), fe("div", {
|
|
4407
4407
|
class: "tab-item",
|
|
4408
4408
|
key: D
|
|
4409
4409
|
}, [
|
|
@@ -4421,10 +4421,10 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4421
4421
|
])
|
|
4422
4422
|
]))), 128))
|
|
4423
4423
|
]),
|
|
4424
|
-
|
|
4424
|
+
G(Je, {
|
|
4425
4425
|
modelValue: F.value,
|
|
4426
4426
|
"onUpdate:modelValue": b[2] || (b[2] = (t) => F.value = t),
|
|
4427
|
-
title:
|
|
4427
|
+
title: P.value,
|
|
4428
4428
|
onBeforeDestroy: b[3] || (b[3] = (t) => F.value = !1)
|
|
4429
4429
|
}, {
|
|
4430
4430
|
footer: ce(() => [
|
|
@@ -4437,17 +4437,17 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4437
4437
|
}, "确定")
|
|
4438
4438
|
]),
|
|
4439
4439
|
default: ce(() => [
|
|
4440
|
-
|
|
4440
|
+
G(re, {
|
|
4441
4441
|
model: w.value,
|
|
4442
4442
|
"label-width": "80px"
|
|
4443
4443
|
}, {
|
|
4444
4444
|
default: ce(() => [
|
|
4445
|
-
|
|
4445
|
+
G(me, {
|
|
4446
4446
|
label: "标签名称",
|
|
4447
4447
|
required: ""
|
|
4448
4448
|
}, {
|
|
4449
4449
|
default: ce(() => [
|
|
4450
|
-
|
|
4450
|
+
G(Q, {
|
|
4451
4451
|
modelValue: w.value.title,
|
|
4452
4452
|
"onUpdate:modelValue": b[0] || (b[0] = (t) => w.value.title = t),
|
|
4453
4453
|
placeholder: "请输入标签页名称"
|
|
@@ -4461,9 +4461,9 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4461
4461
|
]),
|
|
4462
4462
|
_: 1
|
|
4463
4463
|
}, 8, ["modelValue", "title"]),
|
|
4464
|
-
|
|
4465
|
-
modelValue:
|
|
4466
|
-
"onUpdate:modelValue": b[4] || (b[4] = (t) =>
|
|
4464
|
+
G(Je, {
|
|
4465
|
+
modelValue: N.value,
|
|
4466
|
+
"onUpdate:modelValue": b[4] || (b[4] = (t) => N.value = t),
|
|
4467
4467
|
title: "布局调整",
|
|
4468
4468
|
fullScreen: "",
|
|
4469
4469
|
onBeforeDestroy: E
|
|
@@ -4475,11 +4475,11 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4475
4475
|
default: ce(() => [
|
|
4476
4476
|
x("div", oo, [
|
|
4477
4477
|
x("div", uo, [
|
|
4478
|
-
|
|
4478
|
+
G(Rn),
|
|
4479
4479
|
x("div", ro, [
|
|
4480
4480
|
b[8] || (b[8] = x("h5", null, "添加已有组件", -1)),
|
|
4481
4481
|
x("div", co, [
|
|
4482
|
-
(
|
|
4482
|
+
(ee(!0), fe(Te, null, Oe(d.value, (t) => (ee(), fe("div", {
|
|
4483
4483
|
key: t.id,
|
|
4484
4484
|
class: "component-item",
|
|
4485
4485
|
onClick: (D) => O(t)
|
|
@@ -4493,14 +4493,14 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4493
4493
|
])
|
|
4494
4494
|
])
|
|
4495
4495
|
]),
|
|
4496
|
-
(
|
|
4496
|
+
(ee(), fe("div", {
|
|
4497
4497
|
class: "model-show",
|
|
4498
4498
|
key: u.innerWidth
|
|
4499
4499
|
}, [
|
|
4500
|
-
|
|
4500
|
+
G(Yn)
|
|
4501
4501
|
])),
|
|
4502
4502
|
x("div", vo, [
|
|
4503
|
-
|
|
4503
|
+
G(Hn)
|
|
4504
4504
|
])
|
|
4505
4505
|
])
|
|
4506
4506
|
]),
|
|
@@ -4509,7 +4509,7 @@ const fn = /* @__PURE__ */ je(dn, [["render", pn]]), hn = { class: "module conte
|
|
|
4509
4509
|
]);
|
|
4510
4510
|
};
|
|
4511
4511
|
}
|
|
4512
|
-
}, yo = /* @__PURE__ */ je(mo, [["__scopeId", "data-v-151936e8"]]), bo =
|
|
4512
|
+
}, yo = /* @__PURE__ */ je(mo, [["__scopeId", "data-v-151936e8"]]), bo = M([
|
|
4513
4513
|
{
|
|
4514
4514
|
name: "表格",
|
|
4515
4515
|
type: "table",
|