ss-component-new 1.1.641 → 1.1.642
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-B_wsE8_t.cjs → array-Dbtz7Lsx.cjs} +1 -1
- package/dist/{array-VzXJcPjW.js → array-NXwPkThl.js} +1 -1
- package/dist/{index-B9JN6GiA.js → index-8NfsR09b.js} +8 -8
- package/dist/{index-bxA-k3D8.js → index-B5AuRSn8.js} +3 -3
- package/dist/{index-1CHqDeCV.js → index-BA-DDxOT.js} +14 -14
- package/dist/{index-BSq1_igb.js → index-BBsDHAWZ.js} +5 -5
- package/dist/{index--YE0I3eJ.cjs → index-BCyIiXbM.cjs} +1 -1
- package/dist/{index-Dtsb5A9W.cjs → index-BFyVCuzZ.cjs} +1 -1
- package/dist/{index-Crd7Dg0j.js → index-BHB6W84v.js} +1 -1
- package/dist/{index-B_G9Phpw.cjs → index-BNE-s1A4.cjs} +1 -1
- package/dist/{index-DIojadyo.js → index-BRpBkjfg.js} +4 -4
- package/dist/{index-BgVieMmq.js → index-BSyIQ0ln.js} +6 -6
- package/dist/{index-zwRivr5J.js → index-BWiGVums.js} +4 -4
- package/dist/{index-eFEWH0CT.cjs → index-BdsY472L.cjs} +1 -1
- package/dist/{index-t5gEjDaU.cjs → index-BfIfrYPE.cjs} +1 -1
- package/dist/{index-BShB-8d9.js → index-BfbJ_xue.js} +3 -3
- package/dist/{index-xG5ojf2o.cjs → index-BoGRYAgn.cjs} +1 -1
- package/dist/{index--7CXDWhp.js → index-BozQhsge.js} +3 -3
- package/dist/{index-CPIuib6Z.js → index-BvQteht-.js} +3 -3
- package/dist/{index-qJTvlSE4.cjs → index-C2O6ydu6.cjs} +1 -1
- package/dist/{index-DiRkx0Jd.js → index-CDbi4x81.js} +523 -516
- package/dist/{index-BSItzZL7.cjs → index-COWiy84S.cjs} +1 -1
- package/dist/{index-CmiV5XIf.cjs → index-CXDZKHRU.cjs} +1 -1
- package/dist/{index-COe0AKmG.js → index-CbHQmeu4.js} +4 -4
- package/dist/{index-B3pzeaEn.cjs → index-CiK2h9lS.cjs} +1 -1
- package/dist/{index-DIEuoEuZ.js → index-Cj7sq5xh.js} +2444 -2449
- package/dist/{index-BK43_N9M.cjs → index-Cm3eta0a.cjs} +1 -1
- package/dist/{index-PoFKTn5c.js → index-Cm7s-8-S.js} +1 -1
- package/dist/{index-BHxSsIXo.js → index-CnDYddiq.js} +1 -1
- package/dist/{index-CZVc3Or_.cjs → index-CuFcNSKa.cjs} +1 -1
- package/dist/{index-D8krRZ2d.cjs → index-D38SAb4m.cjs} +18 -18
- package/dist/{index-BDUZPFuu.js → index-D3bky2oL.js} +3 -3
- package/dist/index-DCZ8V-jk.cjs +1 -0
- package/dist/{index-D-u3BBde.cjs → index-DRB19GKh.cjs} +1 -1
- package/dist/{index-DivndMew.js → index-DUfwkFTo.js} +1 -1
- package/dist/{index-DgSqC47C.cjs → index-DVWuaRpd.cjs} +1 -1
- package/dist/{index-ugVCM2_1.cjs → index-DXpOifO9.cjs} +1 -1
- package/dist/{index-B4pwTIJ4.cjs → index-Dn4IDzs-.cjs} +1 -1
- package/dist/{index-BnN2rNsF.cjs → index-DrNkh98f.cjs} +1 -1
- package/dist/{index-DDkuhF7W.js → index-FtXwh152.js} +5 -5
- package/dist/{index-BqT6FOpQ.cjs → index-JEgbxSMc.cjs} +1 -1
- package/dist/{index-C1wsQvWA.js → index-OB3uYOtP.js} +4 -4
- package/dist/{index-CgBJhDgc.js → index-PzEQ4jp4.js} +4 -4
- package/dist/{index-DKUyEy-O.cjs → index-QwyTcfjk.cjs} +1 -1
- package/dist/{index-BdC8VdZV.js → index-XG0z6OM7.js} +1 -1
- package/dist/{index-MSj62TUk.cjs → index-ZCzNjeSn.cjs} +1 -1
- package/dist/{index-CeD_uFzd.cjs → index-_BlT7Ow2.cjs} +1 -1
- package/dist/{index-h3FJuBkM.js → index-fCS9CCui.js} +4 -4
- package/dist/{index-BMLnk4tK.js → index-g_s98rtP.js} +5 -5
- package/dist/{index-CDe14QVc.cjs → index-pbwJ9I4L.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-zFnpYkL9.js → index.vue_vue_type_script_setup_true_lang-D4rJaOHU.js} +7 -7
- package/dist/{index.vue_vue_type_script_setup_true_lang-BSHKpL3U.cjs → index.vue_vue_type_script_setup_true_lang-lCLxGhnK.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Ds2Sv3Xv.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CjJ2Qs6C.js} +1227 -1239
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CsM4kD2l.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D2JWjXd5.cjs} +47 -47
- package/dist/{index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-CBmEjZ1W.cjs → index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-Be3edD9f.cjs} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-Cj4SDzVh.js → index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-DjSMcKjY.js} +3967 -3950
- package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-CtgbucH4.cjs → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-DwhMhaPJ.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-CZw5zzDj.js → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-NJi92cYh.js} +8 -8
- package/dist/{login-wUTWXQ7u.js → login-BiEodQd9.js} +1 -1
- package/dist/{login-C7jVTvUQ.cjs → login-zGHoUey-.cjs} +1 -1
- package/dist/{main-Cm90V52F.cjs → main-C-_H5AZI.cjs} +1 -1
- package/dist/{main-CuzsZxGq.js → main-CAYpf8hk.js} +5 -5
- package/dist/{menu-wif0xsml.js → menu-Cl42pSjw.js} +1164 -1163
- package/dist/{menu-CcabvNj6.cjs → menu-nedhfMQM.cjs} +10 -10
- package/dist/{modelComp-CJ4sMWBs.js → modelComp-DWx0hNJL.js} +1 -1
- package/dist/{modelComp-MsmKaqKZ.cjs → modelComp-VVOVTdqN.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-B-xHjjGT.js → threeModel-BaOJ31_z.js} +2 -2
- package/dist/{threeModel-Bf9c_DS5.cjs → threeModel-BfyOiv9g.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CLvHw6UB.cjs +0 -1
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { b as Qa, a as Ra, s as Xa } from "./index-
|
|
2
|
-
import { ref as
|
|
3
|
-
import { bR as Ua, c as l, p as Me, s as He, d as Ml, E as
|
|
4
|
-
import { e as ze, f as ls, s as Ge, h as Va, a as Ba, i as as, j as ss, b as is } from "./index-
|
|
5
|
-
import { u as ns, a as os, F as Ta, v as us, I as nl, w as rs, x as Ve, y as wl, z as il, A as gl, B as Xl, g as vl, C as cs, D as ts, E as ds, G as ps, H as fs, J as Sa, K as hs, L as vs, M as ms } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { u as na } from "./login-
|
|
1
|
+
import { b as Qa, a as Ra, s as Xa } from "./index-Cj7sq5xh.js";
|
|
2
|
+
import { ref as Z, watch as Ke, createElementBlock as ye, openBlock as ce, createVNode as ae, createBlock as Fe, createCommentVNode as Qe, resolveComponent as Te, Fragment as Se, renderList as Pe, createElementVNode as B, toDisplayString as we, withCtx as he, createTextVNode as $e, defineComponent as kl, reactive as sa, resolveDynamicComponent as Kl, unref as Wl, computed as ia, renderSlot as zl, createSlots as Ya, mergeProps as Za, normalizeStyle as es, withModifiers as Vl } from "vue";
|
|
3
|
+
import { bR as Ua, c as l, p as Me, s as He, d as Ml, E as Xe, g as bl, bN as ja, u as Na, bO as Ea, bM as $a } from "./menu-Cl42pSjw.js";
|
|
4
|
+
import { e as ze, f as ls, s as Ge, h as Va, a as Ba, i as as, j as ss, b as is } from "./index-CbHQmeu4.js";
|
|
5
|
+
import { u as ns, a as os, F as Ta, v as us, I as nl, w as rs, x as Ve, y as wl, z as il, A as gl, B as Xl, g as vl, C as cs, D as ts, E as ds, G as ps, H as fs, J as Sa, K as hs, L as vs, M as ms } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CjJ2Qs6C.js";
|
|
6
|
+
import { u as na } from "./login-BiEodQd9.js";
|
|
7
7
|
import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
import { E as dl } from "./index-
|
|
9
|
-
import { u as oa } from "./modelComp-
|
|
10
|
-
import { s as ys, a as bs } from "./index-
|
|
8
|
+
import { E as dl } from "./index-CnDYddiq.js";
|
|
9
|
+
import { u as oa } from "./modelComp-DWx0hNJL.js";
|
|
10
|
+
import { s as ys, a as bs } from "./index-BvQteht-.js";
|
|
11
11
|
import gs from "./index-CZtXRS3l.js";
|
|
12
|
-
const ks = (
|
|
12
|
+
const ks = (u) => u.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
13
13
|
state: () => ({
|
|
14
14
|
objUrl: [],
|
|
15
15
|
blobUrls: []
|
|
16
16
|
}),
|
|
17
17
|
actions: {
|
|
18
|
-
setObjUrl(
|
|
19
|
-
this.objUrl =
|
|
18
|
+
setObjUrl(u) {
|
|
19
|
+
this.objUrl = u;
|
|
20
20
|
},
|
|
21
|
-
setBlobUrls(
|
|
22
|
-
this.blobUrls =
|
|
21
|
+
setBlobUrls(u) {
|
|
22
|
+
this.blobUrls = u;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
}), Cs = async (
|
|
25
|
+
}), Cs = async (u) => {
|
|
26
26
|
var O, N, C, U, Q, T, ie;
|
|
27
|
-
let m = (N = (O = l(
|
|
27
|
+
let m = (N = (O = l(u)) == null ? void 0 : O.optionUrl) == null ? void 0 : N.menuSelect, a = [];
|
|
28
28
|
m == null || m.forEach((q) => {
|
|
29
29
|
});
|
|
30
30
|
let s = "";
|
|
31
31
|
const c = await ns(m);
|
|
32
32
|
if (c == null || c.forEach((q) => {
|
|
33
|
-
var pe, se,
|
|
34
|
-
(q == null ? void 0 : q.name) === (((D = (
|
|
33
|
+
var pe, se, ee, D;
|
|
34
|
+
(q == null ? void 0 : q.name) === (((D = (ee = (se = (pe = l(u)) == null ? void 0 : pe.optionUrl) == null ? void 0 : se.groupSelect) == null ? void 0 : ee[0]) == null ? void 0 : D.replaceAll("'", "")) ?? "") && (s = q == null ? void 0 : q.id);
|
|
35
35
|
}), s !== "") {
|
|
36
36
|
const q = (C = c == null ? void 0 : c[0]) == null ? void 0 : C.compData;
|
|
37
|
-
let pe = (Q = (U = q == null ? void 0 : q.find((
|
|
38
|
-
se == null || se.forEach((
|
|
39
|
-
a.push(os(
|
|
37
|
+
let pe = (Q = (U = q == null ? void 0 : q.find((ee) => (ee == null ? void 0 : ee.key) === "header")) == null ? void 0 : U.contents) == null ? void 0 : Q.map((ee) => ee == null ? void 0 : ee.label), se = (ie = (T = q == null ? void 0 : q.find((ee) => (ee == null ? void 0 : ee.key) === "tableContents")) == null ? void 0 : T.contents) == null ? void 0 : ie.map((ee) => (ee = ee == null ? void 0 : ee.filter((D) => !(D != null && D.id)), ee));
|
|
38
|
+
se == null || se.forEach((ee) => {
|
|
39
|
+
a.push(os(ee, pe));
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
return a;
|
|
@@ -55,15 +55,15 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
55
55
|
index: Number
|
|
56
56
|
},
|
|
57
57
|
emits: ["change", "contentChange"],
|
|
58
|
-
setup(
|
|
59
|
-
const a =
|
|
60
|
-
|
|
61
|
-
}, te = async (
|
|
62
|
-
var A, K, fe, re, ne, i, I, E, v,
|
|
58
|
+
setup(u, { emit: m }) {
|
|
59
|
+
const a = u, s = m, c = Z([]), O = Z(!1), N = Z(!1), C = Z([]), U = Z(), Q = Qa(Me), T = _s(Me), ie = Z(!1), q = Z(), pe = na(Me), { loginUserInfo: se } = He(pe), ee = Z(), D = Z(!0), $ = (r, d) => {
|
|
60
|
+
ee.value === d ? D.value = !1 : D.value = !0, ee.value = d == null ? void 0 : d.changeProp;
|
|
61
|
+
}, te = async (r) => {
|
|
62
|
+
var A, K, fe, re, ne, i, I, E, v, Y;
|
|
63
63
|
let d = [];
|
|
64
|
-
if ((A =
|
|
65
|
-
let
|
|
66
|
-
if (Array.isArray(
|
|
64
|
+
if ((A = r == null ? void 0 : r.toString()) != null && A.includes(".stl") || (K = r == null ? void 0 : r.toString()) != null && K.includes(".STL") || (fe = r == null ? void 0 : r.toString()) != null && fe.includes(".obj") || (re = r == null ? void 0 : r.toString()) != null && re.includes(".mtl") || (ne = r == null ? void 0 : r.toString()) != null && ne.includes(".urdf")) {
|
|
65
|
+
let P, W = [], o = {};
|
|
66
|
+
if (Array.isArray(r) ? P = r : P = r == null ? void 0 : r.split(","), P == null || P.forEach((y) => {
|
|
67
67
|
y.includes(".mtl") ? W.push(y) : o.blob = o.blob ? o.blob + "," + y : y;
|
|
68
68
|
}), (W == null ? void 0 : W.length) > 0 && (o.mtlBlobs = W), (I = (i = Object.values(o)) == null ? void 0 : i[0]) != null && I.includes("http:"))
|
|
69
69
|
d.push(o);
|
|
@@ -72,27 +72,27 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
72
72
|
type: "application/octet-stream;charset=UTF-8"
|
|
73
73
|
});
|
|
74
74
|
let F = URL.createObjectURL(y), H = "";
|
|
75
|
-
(E =
|
|
75
|
+
(E = r == null ? void 0 : r.split("/")) == null || E.forEach((de, oe) => {
|
|
76
76
|
var z;
|
|
77
|
-
oe === ((z =
|
|
77
|
+
oe === ((z = r == null ? void 0 : r.split("/")) == null ? void 0 : z.length) - 1 && (H = de);
|
|
78
78
|
}), (v = o.blob) != null && v.includes(".stl") && (H = (H == null ? void 0 : H.replaceAll(">", "")) + ".urdf"), U.value = [{
|
|
79
79
|
name: H,
|
|
80
80
|
blobUrl: F
|
|
81
81
|
}], N.value = !0;
|
|
82
82
|
}
|
|
83
83
|
} else {
|
|
84
|
-
const
|
|
84
|
+
const P = await Ml.get(r, {
|
|
85
85
|
responseType: "blob",
|
|
86
86
|
headers: {
|
|
87
87
|
"Content-Type": "application/json"
|
|
88
88
|
}
|
|
89
|
-
}), W = new Blob([
|
|
89
|
+
}), W = new Blob([P.data], {
|
|
90
90
|
type: "application/octet-stream;charset=UTF-8"
|
|
91
91
|
});
|
|
92
92
|
let o = URL.createObjectURL(W), y = "";
|
|
93
|
-
(
|
|
93
|
+
(Y = r == null ? void 0 : r.split("/")) == null || Y.forEach((F, H) => {
|
|
94
94
|
var de;
|
|
95
|
-
H === ((de =
|
|
95
|
+
H === ((de = r == null ? void 0 : r.split("/")) == null ? void 0 : de.length) - 1 && (y = F);
|
|
96
96
|
}), U.value = [{
|
|
97
97
|
name: y,
|
|
98
98
|
blobUrl: o
|
|
@@ -101,9 +101,9 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
101
101
|
(d == null ? void 0 : d.length) > 0 && T.setBlobUrls(d);
|
|
102
102
|
}, p = () => {
|
|
103
103
|
N.value = !1;
|
|
104
|
-
}, h = (
|
|
104
|
+
}, h = (r) => {
|
|
105
105
|
var re, ne, i, I;
|
|
106
|
-
const d = (ne = (re = l(a.itemData)) == null ? void 0 : re.find((E) => (E == null ? void 0 : E.key) === "formContent")) == null ? void 0 : ne.contents, A = l(
|
|
106
|
+
const d = (ne = (re = l(a.itemData)) == null ? void 0 : re.find((E) => (E == null ? void 0 : E.key) === "formContent")) == null ? void 0 : ne.contents, A = l(r.content);
|
|
107
107
|
let K = {};
|
|
108
108
|
A && ((i = Object.values(A)) == null ? void 0 : i.length) > 0 && ((I = Object.values(A)) == null || I.forEach((E, v) => {
|
|
109
109
|
K[d[v].key] = E;
|
|
@@ -111,23 +111,23 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
111
111
|
const fe = {
|
|
112
112
|
content: K,
|
|
113
113
|
index: a == null ? void 0 : a.index,
|
|
114
|
-
buttonName:
|
|
114
|
+
buttonName: r == null ? void 0 : r.buttonName
|
|
115
115
|
};
|
|
116
116
|
s("change", fe);
|
|
117
|
-
}, b = async (
|
|
118
|
-
var E, v,
|
|
119
|
-
if (!
|
|
117
|
+
}, b = async (r) => {
|
|
118
|
+
var E, v, Y, P, W, o, y, F, H, de, oe, z;
|
|
119
|
+
if (!r) return;
|
|
120
120
|
const d = l(a.itemData), A = d == null ? void 0 : d.map((S) => {
|
|
121
121
|
var w;
|
|
122
122
|
return (S == null ? void 0 : S.key) === "formContent" && ((w = S.contents) == null || w.map((g, x) => {
|
|
123
|
-
var t, L, _e,
|
|
124
|
-
return g.type = g != null && g.type ? g.type : (
|
|
123
|
+
var t, L, _e, R, ue, ve, M, e, n, f, k, _, J, X, V, G, ke;
|
|
124
|
+
return g.type = g != null && g.type ? g.type : (R = (_e = (L = (t = g == null ? void 0 : g.key) == null ? void 0 : t.split("$")) == null ? void 0 : L[1]) == null ? void 0 : _e.split("(")) != null && R[0] ? (ve = (ue = Ta) == null ? void 0 : ue.find((me) => {
|
|
125
125
|
var Ie, ge, le, Ce;
|
|
126
126
|
return (me == null ? void 0 : me.key) === ((Ce = (le = (ge = (Ie = g == null ? void 0 : g.key) == null ? void 0 : Ie.split("$")) == null ? void 0 : ge[1]) == null ? void 0 : le.split("(")) == null ? void 0 : Ce[0]);
|
|
127
127
|
})) == null ? void 0 : ve.value : "Input", g.options = g != null && g.options ? g.options : ((n = (e = (M = g == null ? void 0 : g.key) == null ? void 0 : M.split("$")) == null ? void 0 : e[1]) == null ? void 0 : n.length) > 0 ? (J = (_ = ks((k = (f = g == null ? void 0 : g.key) == null ? void 0 : f.split("$")) == null ? void 0 : k[1])) == null ? void 0 : _.split(",")) == null ? void 0 : J.map((me) => ({
|
|
128
128
|
label: me,
|
|
129
129
|
value: me
|
|
130
|
-
})) : [], (X = g == null ? void 0 : g.key) != null && X.includes("$") && (g.key = (G = (V = g == null ? void 0 : g.key) == null ? void 0 : V.split("$")) == null ? void 0 : G[0]), g.value = (ke = Object.values(
|
|
130
|
+
})) : [], (X = g == null ? void 0 : g.key) != null && X.includes("$") && (g.key = (G = (V = g == null ? void 0 : g.key) == null ? void 0 : V.split("$")) == null ? void 0 : G[0]), g.value = (ke = Object.values(r)) == null ? void 0 : ke[x], g;
|
|
131
131
|
})), S;
|
|
132
132
|
});
|
|
133
133
|
let K = l(c).value, fe = (v = (E = l(A)) == null ? void 0 : E.find((S) => (S == null ? void 0 : S.key) === "formContent")) == null ? void 0 : v.contents;
|
|
@@ -141,9 +141,9 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
141
141
|
});
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
|
-
let re = "", ne = (W = (
|
|
144
|
+
let re = "", ne = (W = (P = (Y = l(A)) == null ? void 0 : Y.find((S) => (S == null ? void 0 : S.key) === "formContent")) == null ? void 0 : P.contents) == null ? void 0 : W.find((S, w) => {
|
|
145
145
|
var g, x;
|
|
146
|
-
return (S == null ? void 0 : S.label) ===
|
|
146
|
+
return (S == null ? void 0 : S.label) === ee.value || w.toString() === ((x = (g = ee.value) == null ? void 0 : g.split("t")) == null ? void 0 : x[1].toString());
|
|
147
147
|
});
|
|
148
148
|
if ((F = (y = (o = l(A)) == null ? void 0 : o.find((S) => (S == null ? void 0 : S.key) === "formContent")) == null ? void 0 : y.contents) == null || F.forEach((S) => {
|
|
149
149
|
var w, g, x, t, L;
|
|
@@ -151,13 +151,13 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
151
151
|
}), (H = ne == null ? void 0 : ne.optionUrl) != null && H.menuSelect && D.value) {
|
|
152
152
|
let S = await Cs(ne), w;
|
|
153
153
|
if (S == null || S.forEach((g) => {
|
|
154
|
-
var x, t, L, _e,
|
|
155
|
-
re === ((t = (x = ne == null ? void 0 : ne.optionUrl) == null ? void 0 : x.groupSelect) == null ? void 0 : t[1]) && ((
|
|
154
|
+
var x, t, L, _e, R, ue, ve, M, e, n;
|
|
155
|
+
re === ((t = (x = ne == null ? void 0 : ne.optionUrl) == null ? void 0 : x.groupSelect) == null ? void 0 : t[1]) && ((R = (_e = (L = ne == null ? void 0 : ne.optionUrl) == null ? void 0 : L.groupSelect) == null ? void 0 : _e[1]) != null && R.includes("[")) && ((n = l(g)) == null ? void 0 : n[(e = (M = (ve = (ue = ne == null ? void 0 : ne.optionUrl) == null ? void 0 : ue.groupSelect) == null ? void 0 : ve[1]) == null ? void 0 : M.replaceAll("[", "")) == null ? void 0 : e.replaceAll("]", "")]) === (ne == null ? void 0 : ne.value) && (w = g);
|
|
156
156
|
}), w) {
|
|
157
157
|
let g = l(K);
|
|
158
158
|
g = g == null ? void 0 : g.map((x) => {
|
|
159
|
-
var t, L, _e,
|
|
160
|
-
return (w != null && w[x == null ? void 0 : x.label] || w != null && w[(
|
|
159
|
+
var t, L, _e, R, ue, ve, M, e;
|
|
160
|
+
return (w != null && w[x == null ? void 0 : x.label] || w != null && w[(R = (_e = (L = (t = x == null ? void 0 : x.optionUrl) == null ? void 0 : t.groupSelect) == null ? void 0 : L[1]) == null ? void 0 : _e.replaceAll("[", "")) == null ? void 0 : R.replaceAll("]", "")]) && (x.value = (w == null ? void 0 : w[x == null ? void 0 : x.label]) || (w == null ? void 0 : w[(e = (M = (ve = (ue = x == null ? void 0 : x.optionUrl) == null ? void 0 : ue.groupSelect) == null ? void 0 : ve[1]) == null ? void 0 : M.replaceAll("[", "")) == null ? void 0 : e.replaceAll("]", "")])), x;
|
|
161
161
|
}), c.value = g;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
@@ -179,18 +179,18 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
179
179
|
});
|
|
180
180
|
S == null || S.forEach((w) => {
|
|
181
181
|
var x, t, L, _e;
|
|
182
|
-
const g = (x = I == null ? void 0 : I.filter((
|
|
182
|
+
const g = (x = I == null ? void 0 : I.filter((R) => {
|
|
183
183
|
var ue;
|
|
184
|
-
return (
|
|
185
|
-
})) == null ? void 0 : x.map((
|
|
184
|
+
return (R == null ? void 0 : R.name) === (w == null ? void 0 : w.name) && ((ue = R == null ? void 0 : R.url) == null ? void 0 : ue.includes(".mtl"));
|
|
185
|
+
})) == null ? void 0 : x.map((R) => R == null ? void 0 : R.url);
|
|
186
186
|
i.push({
|
|
187
187
|
objUrl: w == null ? void 0 : w.url,
|
|
188
|
-
mtlUrls: ((t = I == null ? void 0 : I.filter((
|
|
188
|
+
mtlUrls: ((t = I == null ? void 0 : I.filter((R) => {
|
|
189
189
|
var ue;
|
|
190
|
-
return (
|
|
191
|
-
})) == null ? void 0 : t.length) === 1 ? (_e = (L = I == null ? void 0 : I.filter((
|
|
190
|
+
return (R == null ? void 0 : R.name) === (w == null ? void 0 : w.name) && ((ue = R == null ? void 0 : R.url) == null ? void 0 : ue.includes(".mtl"));
|
|
191
|
+
})) == null ? void 0 : t.length) === 1 ? (_e = (L = I == null ? void 0 : I.filter((R) => {
|
|
192
192
|
var ue;
|
|
193
|
-
return (
|
|
193
|
+
return (R == null ? void 0 : R.name) === (w == null ? void 0 : w.name) && ((ue = R == null ? void 0 : R.url) == null ? void 0 : ue.includes(".mtl"));
|
|
194
194
|
})) == null ? void 0 : L[0]) == null ? void 0 : _e.url : g
|
|
195
195
|
});
|
|
196
196
|
}), T.setObjUrl(i);
|
|
@@ -199,15 +199,15 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
199
199
|
return Ke(
|
|
200
200
|
() => a.itemData,
|
|
201
201
|
async () => {
|
|
202
|
-
var re, ne, i, I, E, v,
|
|
203
|
-
const
|
|
204
|
-
if ((K == null ? void 0 : K.contents) === "纵向" ? O.value = !1 : O.value = !0, ie.value = (fe == null ? void 0 : fe.contents) === void 0 ? !1 : fe == null ? void 0 : fe.contents, q.value = typeof (A == null ? void 0 : A.contents) != "boolean" ? !(!(A != null && A.contents) === "" || ((v = A == null ? void 0 : A.contents) == null ? void 0 : v.toUpperCase()) === "VERTICAL") : A == null ? void 0 : A.contents, ((
|
|
205
|
-
const oe = await ((
|
|
202
|
+
var re, ne, i, I, E, v, Y, P, W, o, y, F, H, de;
|
|
203
|
+
const r = (re = a.itemData) == null ? void 0 : re.find((oe) => (oe == null ? void 0 : oe.key) === "formContent"), d = (ne = l(a.itemData)) == null ? void 0 : ne.find((oe) => (oe == null ? void 0 : oe.key) === "formButton"), A = (i = l(a.itemData)) == null ? void 0 : i.find((oe) => (oe == null ? void 0 : oe.key) === "formFlex"), K = (I = l(a.itemData)) == null ? void 0 : I.find((oe) => (oe == null ? void 0 : oe.key) === "formWrap"), fe = (E = l(a.itemData)) == null ? void 0 : E.find((oe) => (oe == null ? void 0 : oe.key) === "enableWrap");
|
|
204
|
+
if ((K == null ? void 0 : K.contents) === "纵向" ? O.value = !1 : O.value = !0, ie.value = (fe == null ? void 0 : fe.contents) === void 0 ? !1 : fe == null ? void 0 : fe.contents, q.value = typeof (A == null ? void 0 : A.contents) != "boolean" ? !(!(A != null && A.contents) === "" || ((v = A == null ? void 0 : A.contents) == null ? void 0 : v.toUpperCase()) === "VERTICAL") : A == null ? void 0 : A.contents, ((Y = r == null ? void 0 : r.contents) == null ? void 0 : Y.length) > 0 && Array.isArray(r == null ? void 0 : r.contents)) {
|
|
205
|
+
const oe = await ((P = r == null ? void 0 : r.contents) == null ? void 0 : P.map(async (t, L) => {
|
|
206
206
|
var f, k, _, J, X, V, G, ke, me, Ie, ge, le, Ce, be, xe, Ne;
|
|
207
|
-
let _e = (t == null ? void 0 : t.label) ?? (t == null ? void 0 : t.key) ?? "",
|
|
207
|
+
let _e = (t == null ? void 0 : t.label) ?? (t == null ? void 0 : t.key) ?? "", R = (t == null ? void 0 : t.type) ?? "", ue = (t == null ? void 0 : t.options) ?? [];
|
|
208
208
|
if ((f = t == null ? void 0 : t.key) != null && f.includes("$") && (_e = (k = l(t == null ? void 0 : t.key).split("$")) == null ? void 0 : k[0], ((J = (_ = l(t == null ? void 0 : t.key).split("$")) == null ? void 0 : _[1]) == null ? void 0 : J.length) > 0)) {
|
|
209
209
|
const [je, j] = (V = (X = l(t == null ? void 0 : t.key).split("$")) == null ? void 0 : X[1]) == null ? void 0 : V.split(/[()]/);
|
|
210
|
-
|
|
210
|
+
R = ((G = Ta.find((Be) => (Be == null ? void 0 : Be.key) === je)) == null ? void 0 : G.value) ?? "", ((ke = j == null ? void 0 : j.split(",")) == null ? void 0 : ke.length) > 0 && (ue = (me = j == null ? void 0 : j.split(",")) == null ? void 0 : me.map((Be) => ({
|
|
211
211
|
label: Be,
|
|
212
212
|
value: Be
|
|
213
213
|
})));
|
|
@@ -221,7 +221,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
221
221
|
return e === "loginUser" && (e = ((be = se.value) == null ? void 0 : be.姓名) ?? ((xe = se.value) == null ? void 0 : xe.userName) ?? ((Ne = se.value) == null ? void 0 : Ne.account)), {
|
|
222
222
|
label: _e ?? "",
|
|
223
223
|
name: "t" + L,
|
|
224
|
-
type: M !== void 0 ||
|
|
224
|
+
type: M !== void 0 || R === "" ? "Input" : R,
|
|
225
225
|
value: e,
|
|
226
226
|
id: (t == null ? void 0 : t.id) ?? L,
|
|
227
227
|
contents: (ve == null ? void 0 : ve.length) > 0 ? ve : ue ?? [],
|
|
@@ -239,8 +239,8 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
239
239
|
if ((o = l(c.value)) == null || o.forEach((t) => {
|
|
240
240
|
var L;
|
|
241
241
|
Array.isArray(t == null ? void 0 : t.value) && ((L = t == null ? void 0 : t.value) != null && L.find((_e) => {
|
|
242
|
-
var
|
|
243
|
-
return (
|
|
242
|
+
var R;
|
|
243
|
+
return (R = _e == null ? void 0 : _e.url) == null ? void 0 : R.includes(".obj");
|
|
244
244
|
})) && (x = t == null ? void 0 : t.value);
|
|
245
245
|
}), (x == null ? void 0 : x.length) > 0) {
|
|
246
246
|
const t = (y = l(x)) == null ? void 0 : y.filter((L) => {
|
|
@@ -248,11 +248,11 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
248
248
|
return (_e = L == null ? void 0 : L.url) == null ? void 0 : _e.includes(".obj");
|
|
249
249
|
});
|
|
250
250
|
t == null || t.forEach((L) => {
|
|
251
|
-
var
|
|
252
|
-
const _e = (
|
|
251
|
+
var R, ue, ve, M;
|
|
252
|
+
const _e = (R = x == null ? void 0 : x.filter((e) => {
|
|
253
253
|
var n;
|
|
254
254
|
return (e == null ? void 0 : e.name) === (L == null ? void 0 : L.name) && ((n = e == null ? void 0 : e.url) == null ? void 0 : n.includes(".mtl"));
|
|
255
|
-
})) == null ? void 0 :
|
|
255
|
+
})) == null ? void 0 : R.map((e) => e == null ? void 0 : e.url);
|
|
256
256
|
g.push({
|
|
257
257
|
objUrl: L == null ? void 0 : L.url,
|
|
258
258
|
mtlUrls: ((ue = x == null ? void 0 : x.filter((e) => {
|
|
@@ -266,8 +266,8 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
266
266
|
}), T.setObjUrl(g);
|
|
267
267
|
}
|
|
268
268
|
(F = l(c.value)) == null || F.forEach((t) => {
|
|
269
|
-
var L, _e,
|
|
270
|
-
if ((_e = (L = t == null ? void 0 : t.value) == null ? void 0 : L.toString()) != null && _e.includes(".stl") || (ue = (
|
|
269
|
+
var L, _e, R, ue, ve, M, e, n, f, k, _, J, X;
|
|
270
|
+
if ((_e = (L = t == null ? void 0 : t.value) == null ? void 0 : L.toString()) != null && _e.includes(".stl") || (ue = (R = t == null ? void 0 : t.value) == null ? void 0 : R.toString()) != null && ue.includes(".STL") || (M = (ve = t == null ? void 0 : t.value) == null ? void 0 : ve.toString()) != null && M.includes(".obj") || (n = (e = t == null ? void 0 : t.value) == null ? void 0 : e.toString()) != null && n.includes(".mtl") || (k = (f = t == null ? void 0 : t.value) == null ? void 0 : f.toString()) != null && k.includes(".urdf")) {
|
|
271
271
|
let V = {}, G = [], ke;
|
|
272
272
|
Array.isArray(t == null ? void 0 : t.value) ? ke = t == null ? void 0 : t.value : ke = (_ = t == null ? void 0 : t.value) == null ? void 0 : _.split(","), ke == null || ke.forEach((me) => {
|
|
273
273
|
me.includes(".mtl") ? G.push(me) : V.blob = V.blob === "undefined" ? me : V.blob + "," + me;
|
|
@@ -290,10 +290,10 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
290
290
|
C.value = [];
|
|
291
291
|
},
|
|
292
292
|
{ deep: !0, immediate: !0 }
|
|
293
|
-
), (
|
|
293
|
+
), (r, d) => (ce(), ye("div", ws, [
|
|
294
294
|
ae(ze, {
|
|
295
295
|
rowContents: c.value,
|
|
296
|
-
formRules:
|
|
296
|
+
formRules: u.formRules,
|
|
297
297
|
buttonValue: C.value,
|
|
298
298
|
isRowFlex: !1,
|
|
299
299
|
isEnableWrap: ie.value,
|
|
@@ -310,9 +310,9 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
310
310
|
}, null, 8, ["fileDataList"])) : Qe("", !0)
|
|
311
311
|
]));
|
|
312
312
|
}
|
|
313
|
-
}, Fa = /* @__PURE__ */ Ue(Ds, [["__scopeId", "data-v-914d1760"]]), Jl =
|
|
313
|
+
}, Fa = /* @__PURE__ */ Ue(Ds, [["__scopeId", "data-v-914d1760"]]), Jl = Z(0), Ka = (u) => {
|
|
314
314
|
var m;
|
|
315
|
-
return !
|
|
315
|
+
return !u || (u == null ? void 0 : u.length) === 0 ? [] : (m = l(u)) == null ? void 0 : m.map((s) => (Jl.value++, s = {
|
|
316
316
|
label: (s == null ? void 0 : s.label) ?? "",
|
|
317
317
|
prop: (s == null ? void 0 : s.label) === "操作" ? "operate" : s == null ? void 0 : s.prop,
|
|
318
318
|
width: s != null && s.width ? parseInt(s.width) : "",
|
|
@@ -326,9 +326,9 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
326
326
|
id: (s == null ? void 0 : s.id) ?? Jl.value,
|
|
327
327
|
children: Ka(s == null ? void 0 : s.children)
|
|
328
328
|
}, s));
|
|
329
|
-
}, As = (
|
|
329
|
+
}, As = (u) => {
|
|
330
330
|
var a;
|
|
331
|
-
return (a = l(
|
|
331
|
+
return (a = l(u)) == null ? void 0 : a.map((s) => (Jl.value++, s = {
|
|
332
332
|
label: (s == null ? void 0 : s.label) ?? "",
|
|
333
333
|
prop: (s == null ? void 0 : s.label) === "操作" ? "operate" : s == null ? void 0 : s.prop,
|
|
334
334
|
width: s != null && s.width ? parseInt(s.width) : "",
|
|
@@ -342,24 +342,24 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
342
342
|
id: (s == null ? void 0 : s.id) ?? Jl.value,
|
|
343
343
|
children: Ka(s == null ? void 0 : s.children)
|
|
344
344
|
}, s));
|
|
345
|
-
}, Wa = (
|
|
345
|
+
}, Wa = (u, m) => {
|
|
346
346
|
var a;
|
|
347
|
-
return
|
|
348
|
-
}, za = (
|
|
347
|
+
return u != null && u.find((s) => (s == null ? void 0 : s.id) === m) ? (a = l(u)) == null ? void 0 : a.filter((c) => (c == null ? void 0 : c.id) !== m) : (u = u == null ? void 0 : u.map((s) => (s.children = Wa(s == null ? void 0 : s.children, m), s)), u);
|
|
348
|
+
}, za = (u, m) => {
|
|
349
349
|
var a;
|
|
350
|
-
return
|
|
351
|
-
}, Ma = (
|
|
350
|
+
return u != null && u.find((s) => (s == null ? void 0 : s.id) === (m == null ? void 0 : m.id)) ? (a = l(u)) == null ? void 0 : a.map((c) => ((c == null ? void 0 : c.id) === (m == null ? void 0 : m.id) && (c = m), c)) : (u = u == null ? void 0 : u.map((s) => (s.children = za(s == null ? void 0 : s.children, m), s)), u);
|
|
351
|
+
}, Ma = (u, m) => {
|
|
352
352
|
var a;
|
|
353
|
-
return
|
|
353
|
+
return u != null && u.find((s) => {
|
|
354
354
|
var c;
|
|
355
355
|
return (s == null ? void 0 : s.id) === ((c = m == null ? void 0 : m.contents) == null ? void 0 : c.id);
|
|
356
|
-
}) ? (a = l(
|
|
356
|
+
}) ? (a = l(u)) == null ? void 0 : a.map((c) => {
|
|
357
357
|
var O;
|
|
358
358
|
return (c == null ? void 0 : c.id) === ((O = m == null ? void 0 : m.contents) == null ? void 0 : O.id) && (c = m == null ? void 0 : m.contents), c;
|
|
359
|
-
}) : (
|
|
360
|
-
}, Ja = (
|
|
359
|
+
}) : (u = u == null ? void 0 : u.map((s) => (s.children = Ma(s == null ? void 0 : s.children, m), s)), u);
|
|
360
|
+
}, Ja = (u, m) => {
|
|
361
361
|
var a;
|
|
362
|
-
return
|
|
362
|
+
return u != null && u.find((s) => (s == null ? void 0 : s.id) === (m == null ? void 0 : m.id)) ? (a = l(u)) == null ? void 0 : a.map((c) => ((c == null ? void 0 : c.id) === (m == null ? void 0 : m.id) && (c != null && c.children || (c.children = []), c.children.push(m.contents)), c)) : (u = u == null ? void 0 : u.map((s) => (s.children = Ja(s == null ? void 0 : s.children, m), s)), u);
|
|
363
363
|
}, Ae = [
|
|
364
364
|
{
|
|
365
365
|
key: "label",
|
|
@@ -467,22 +467,22 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
467
467
|
tableChildContents: Array
|
|
468
468
|
},
|
|
469
469
|
emits: ["fixChange", "deleteChange"],
|
|
470
|
-
setup(
|
|
471
|
-
const a =
|
|
472
|
-
|
|
473
|
-
const U =
|
|
470
|
+
setup(u, { emit: m }) {
|
|
471
|
+
const a = u, s = m, c = Z(!1), O = Z(""), N = Ra(Me), { tableIndex: C } = He(N);
|
|
472
|
+
Z(0);
|
|
473
|
+
const U = Z(""), Q = Z([]), T = Z([]), ie = (p) => {
|
|
474
474
|
var b;
|
|
475
475
|
c.value = !0;
|
|
476
476
|
let h = [];
|
|
477
|
-
Ae == null || Ae.forEach((
|
|
477
|
+
Ae == null || Ae.forEach((r) => {
|
|
478
478
|
let d = l(C.value) + 1;
|
|
479
479
|
N.setTableIndex(d), h.push({
|
|
480
|
-
label:
|
|
481
|
-
name:
|
|
482
|
-
type:
|
|
483
|
-
value: p[
|
|
480
|
+
label: r == null ? void 0 : r.label,
|
|
481
|
+
name: r == null ? void 0 : r.label,
|
|
482
|
+
type: r.type,
|
|
483
|
+
value: p[r.key],
|
|
484
484
|
id: C.value,
|
|
485
|
-
contents:
|
|
485
|
+
contents: r == null ? void 0 : r.options
|
|
486
486
|
});
|
|
487
487
|
}), p != null && p.children && ((b = p == null ? void 0 : p.children) == null ? void 0 : b.length) > 0 && h.push({
|
|
488
488
|
children: p == null ? void 0 : p.children,
|
|
@@ -496,8 +496,8 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
496
496
|
c.value = !0;
|
|
497
497
|
let h = [];
|
|
498
498
|
Ae == null || Ae.forEach((b) => {
|
|
499
|
-
let
|
|
500
|
-
N.setTableIndex(
|
|
499
|
+
let r = l(C.value) + 1;
|
|
500
|
+
N.setTableIndex(r), h.push({
|
|
501
501
|
label: b == null ? void 0 : b.label,
|
|
502
502
|
name: b == null ? void 0 : b.label,
|
|
503
503
|
type: b.type,
|
|
@@ -506,7 +506,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
506
506
|
contents: b == null ? void 0 : b.options
|
|
507
507
|
});
|
|
508
508
|
}), O.value = p == null ? void 0 : p.id, Q.value = h, T.value = h;
|
|
509
|
-
},
|
|
509
|
+
}, ee = (p) => {
|
|
510
510
|
let h = l(T.value);
|
|
511
511
|
h = h == null ? void 0 : h.map((b) => (b.children || (b.value = p == null ? void 0 : p[b.name]), b)), T.value = h;
|
|
512
512
|
}, D = () => {
|
|
@@ -514,17 +514,17 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
514
514
|
Q.value = T.value;
|
|
515
515
|
let p = {};
|
|
516
516
|
if (U.value !== "")
|
|
517
|
-
p.id = U.value, (h = Q.value) == null || h.forEach((
|
|
518
|
-
const d = Ae == null ? void 0 : Ae.find((A) => (A == null ? void 0 : A.label) === (
|
|
519
|
-
d ? p[d.key] =
|
|
517
|
+
p.id = U.value, (h = Q.value) == null || h.forEach((r) => {
|
|
518
|
+
const d = Ae == null ? void 0 : Ae.find((A) => (A == null ? void 0 : A.label) === (r == null ? void 0 : r.label));
|
|
519
|
+
d ? p[d.key] = r.value : r != null && r.children && r.children.length > 0 && (p.children = r.children);
|
|
520
520
|
}), c.value = !1, s("fixChange", {
|
|
521
521
|
contents: l(p),
|
|
522
522
|
id: O.value,
|
|
523
523
|
type: "fix"
|
|
524
524
|
});
|
|
525
525
|
else {
|
|
526
|
-
let
|
|
527
|
-
N.setTableIndex(
|
|
526
|
+
let r = l(C.value) + 1;
|
|
527
|
+
N.setTableIndex(r), p.id = "id" + C.value, (b = Q.value) == null || b.forEach((d) => {
|
|
528
528
|
const A = Ae == null ? void 0 : Ae.find((K) => (K == null ? void 0 : K.label) === (d == null ? void 0 : d.label));
|
|
529
529
|
A ? p[A.key] = d.value : d != null && d.children && d.children.length > 0 && (p.children = d.children);
|
|
530
530
|
}), c.value = !1, s("fixChange", {
|
|
@@ -543,7 +543,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
543
543
|
type: "warning"
|
|
544
544
|
}).then(
|
|
545
545
|
() => {
|
|
546
|
-
s("deleteChange", p),
|
|
546
|
+
s("deleteChange", p), Xe({
|
|
547
547
|
type: "success",
|
|
548
548
|
message: "删除成功"
|
|
549
549
|
});
|
|
@@ -554,33 +554,33 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
554
554
|
return (p, h) => {
|
|
555
555
|
const b = Te("svg-icon");
|
|
556
556
|
return ce(), ye("div", Es, [
|
|
557
|
-
(ce(!0), ye(Se, null, Pe(a == null ? void 0 : a.tableChildContents, (
|
|
557
|
+
(ce(!0), ye(Se, null, Pe(a == null ? void 0 : a.tableChildContents, (r, d) => (ce(), ye("div", $s, [
|
|
558
558
|
B("div", Bs, [
|
|
559
|
-
B("div", Ts, we(
|
|
559
|
+
B("div", Ts, we(r.label), 1),
|
|
560
560
|
B("div", Ss, [
|
|
561
561
|
ae(b, {
|
|
562
562
|
name: "ChildAdd",
|
|
563
563
|
class: "svg-icon-content",
|
|
564
564
|
style: { width: "24px", height: "24px" },
|
|
565
|
-
onClick: (A) => se(
|
|
565
|
+
onClick: (A) => se(r)
|
|
566
566
|
}, null, 8, ["onClick"]),
|
|
567
567
|
ae(b, {
|
|
568
568
|
name: "ChildFix",
|
|
569
569
|
class: "svg-icon-content",
|
|
570
570
|
style: { width: "24px", height: "24px" },
|
|
571
|
-
onClick: (A) => ie(
|
|
571
|
+
onClick: (A) => ie(r)
|
|
572
572
|
}, null, 8, ["onClick"]),
|
|
573
573
|
ae(b, {
|
|
574
574
|
name: "ChildDelete",
|
|
575
575
|
class: "svg-icon-content",
|
|
576
576
|
style: { width: "24px", height: "24px" },
|
|
577
|
-
onClick: (A) => te(
|
|
577
|
+
onClick: (A) => te(r)
|
|
578
578
|
}, null, 8, ["onClick"])
|
|
579
579
|
])
|
|
580
580
|
]),
|
|
581
|
-
|
|
581
|
+
r != null && r.children && r.children.length > 0 ? (ce(), ye("div", Fs, [
|
|
582
582
|
ae(Ga, {
|
|
583
|
-
tableChildContents:
|
|
583
|
+
tableChildContents: r == null ? void 0 : r.children,
|
|
584
584
|
onDeleteChange: pe,
|
|
585
585
|
onFixChange: q
|
|
586
586
|
}, null, 8, ["tableChildContents"])
|
|
@@ -597,7 +597,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
597
597
|
rowContents: Q.value,
|
|
598
598
|
key: Q.value,
|
|
599
599
|
isEnableWrap: !0,
|
|
600
|
-
onChange:
|
|
600
|
+
onChange: ee
|
|
601
601
|
}, null, 8, ["rowContents"]))
|
|
602
602
|
])
|
|
603
603
|
]),
|
|
@@ -624,22 +624,22 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
624
624
|
tableChildContents: Array
|
|
625
625
|
},
|
|
626
626
|
emits: ["fixChange", "deleteChange"],
|
|
627
|
-
setup(
|
|
628
|
-
const a =
|
|
627
|
+
setup(u, { emit: m }) {
|
|
628
|
+
const a = u, s = m, c = Z(!1), O = Z(""), N = Ra(Me), { tableIndex: C } = He(N), U = Z(""), Q = Z([]), T = Z([]), ie = (p) => {
|
|
629
629
|
s("fixChange", l(p));
|
|
630
630
|
}, q = (p) => {
|
|
631
631
|
var b;
|
|
632
632
|
c.value = !0;
|
|
633
633
|
let h = [];
|
|
634
|
-
Ae == null || Ae.forEach((
|
|
634
|
+
Ae == null || Ae.forEach((r) => {
|
|
635
635
|
let d = l(C.value) + 1;
|
|
636
636
|
N.setTableIndex(d), h.push({
|
|
637
|
-
label:
|
|
638
|
-
name:
|
|
639
|
-
type:
|
|
640
|
-
value: p[
|
|
637
|
+
label: r == null ? void 0 : r.label,
|
|
638
|
+
name: r == null ? void 0 : r.label,
|
|
639
|
+
type: r.type,
|
|
640
|
+
value: p[r.key],
|
|
641
641
|
id: C.value,
|
|
642
|
-
contents:
|
|
642
|
+
contents: r == null ? void 0 : r.options
|
|
643
643
|
});
|
|
644
644
|
}), p != null && p.children && ((b = p == null ? void 0 : p.children) == null ? void 0 : b.length) > 0 && h.push({
|
|
645
645
|
children: p == null ? void 0 : p.children,
|
|
@@ -649,8 +649,8 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
649
649
|
c.value = !0;
|
|
650
650
|
let h = [];
|
|
651
651
|
Ae == null || Ae.forEach((b) => {
|
|
652
|
-
let
|
|
653
|
-
N.setTableIndex(
|
|
652
|
+
let r = l(C.value) + 1;
|
|
653
|
+
N.setTableIndex(r), h.push({
|
|
654
654
|
label: b == null ? void 0 : b.label,
|
|
655
655
|
name: b == null ? void 0 : b.label,
|
|
656
656
|
type: b.type,
|
|
@@ -662,22 +662,22 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
662
662
|
}, se = (p) => {
|
|
663
663
|
let h = l(T.value);
|
|
664
664
|
h = h == null ? void 0 : h.map((b) => (b.children || (b.value = p == null ? void 0 : p[b.name]), b)), T.value = h;
|
|
665
|
-
},
|
|
665
|
+
}, ee = () => {
|
|
666
666
|
var h, b;
|
|
667
667
|
Q.value = T.value;
|
|
668
668
|
let p = {};
|
|
669
669
|
if (U.value !== "")
|
|
670
|
-
p.id = U.value, (h = Q.value) == null || h.forEach((
|
|
671
|
-
const d = Ae == null ? void 0 : Ae.find((A) => (A == null ? void 0 : A.label) === (
|
|
672
|
-
d ? p[d.key] =
|
|
670
|
+
p.id = U.value, (h = Q.value) == null || h.forEach((r) => {
|
|
671
|
+
const d = Ae == null ? void 0 : Ae.find((A) => (A == null ? void 0 : A.label) === (r == null ? void 0 : r.label));
|
|
672
|
+
d ? p[d.key] = r.value : r != null && r.children && r.children.length > 0 && (p.children = r.children);
|
|
673
673
|
}), c.value = !1, s("fixChange", {
|
|
674
674
|
contents: l(p),
|
|
675
675
|
id: O.value,
|
|
676
676
|
type: "fix"
|
|
677
677
|
});
|
|
678
678
|
else {
|
|
679
|
-
let
|
|
680
|
-
N.setTableIndex(
|
|
679
|
+
let r = l(C.value) + 1;
|
|
680
|
+
N.setTableIndex(r), p.id = "idChild" + C.value, (b = Q.value) == null || b.forEach((d) => {
|
|
681
681
|
const A = Ae == null ? void 0 : Ae.find((K) => (K == null ? void 0 : K.label) === (d == null ? void 0 : d.label));
|
|
682
682
|
A ? p[A.key] = d.value : d != null && d.children && d.children.length > 0 && (p.children = d.children);
|
|
683
683
|
}), c.value = !1, s("fixChange", {
|
|
@@ -696,7 +696,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
696
696
|
type: "warning"
|
|
697
697
|
}).then(
|
|
698
698
|
() => {
|
|
699
|
-
s("deleteChange", p),
|
|
699
|
+
s("deleteChange", p), Xe({
|
|
700
700
|
type: "success",
|
|
701
701
|
message: "删除成功"
|
|
702
702
|
});
|
|
@@ -707,7 +707,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
707
707
|
s("deleteChange", p);
|
|
708
708
|
};
|
|
709
709
|
return (p, h) => {
|
|
710
|
-
const b = Te("svg-icon"),
|
|
710
|
+
const b = Te("svg-icon"), r = Te("el-button");
|
|
711
711
|
return ce(), ye("div", Rs, [
|
|
712
712
|
(ce(!0), ye(Se, null, Pe(a == null ? void 0 : a.tableChildContents, (d, A) => (ce(), ye("div", Us, [
|
|
713
713
|
B("div", js, [
|
|
@@ -758,7 +758,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
758
758
|
]),
|
|
759
759
|
footer: he(() => [
|
|
760
760
|
B("div", zs, [
|
|
761
|
-
ae(
|
|
761
|
+
ae(r, {
|
|
762
762
|
onClick: D,
|
|
763
763
|
class: "cancel-button button",
|
|
764
764
|
id: "themeBorderButton"
|
|
@@ -769,9 +769,9 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
769
769
|
_: 1,
|
|
770
770
|
__: [0]
|
|
771
771
|
}),
|
|
772
|
-
ae(
|
|
772
|
+
ae(r, {
|
|
773
773
|
class: "ok-button button",
|
|
774
|
-
onClick:
|
|
774
|
+
onClick: ee,
|
|
775
775
|
id: "themeButton"
|
|
776
776
|
}, {
|
|
777
777
|
default: he(() => h[1] || (h[1] = [
|
|
@@ -800,8 +800,8 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
800
800
|
}
|
|
801
801
|
},
|
|
802
802
|
emits: ["change"],
|
|
803
|
-
setup(
|
|
804
|
-
const a =
|
|
803
|
+
setup(u, { emit: m }) {
|
|
804
|
+
const a = u, s = m, c = Z([]), O = Z(!1), N = Z(!1), C = Z([]), U = Z(!1), Q = Z([]), T = Z(!1), ie = Z([]), q = Z(""), pe = Z(""), se = Z([]), ee = Z([]), D = Z([]), $ = Z([]), te = Z(!1), p = Z([]), h = Z([]), b = Z(0), r = Z([]), d = Z([]), A = Z([]), K = () => {
|
|
805
805
|
te.value = !0;
|
|
806
806
|
let e = [];
|
|
807
807
|
cl == null || cl.forEach((n) => {
|
|
@@ -827,9 +827,9 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
827
827
|
id: b.value,
|
|
828
828
|
contents: _ == null ? void 0 : _.options
|
|
829
829
|
});
|
|
830
|
-
}),
|
|
830
|
+
}), r.value = e, d.value = e;
|
|
831
831
|
}, re = (e) => {
|
|
832
|
-
e || (
|
|
832
|
+
e || (r.value = d.value);
|
|
833
833
|
}, ne = async (e) => {
|
|
834
834
|
var n, f, k, _, J, X, V, G, ke, me, Ie, ge;
|
|
835
835
|
if ((e == null ? void 0 : e.类型) !== ((f = (n = d.value) == null ? void 0 : n.find((le) => (le == null ? void 0 : le.label) === "类型")) == null ? void 0 : f.value)) {
|
|
@@ -847,9 +847,9 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
847
847
|
const be = await wl(e == null ? void 0 : e.菜单选项);
|
|
848
848
|
le = le == null ? void 0 : le.map((xe) => ((xe == null ? void 0 : xe.name) === "组信息选项" && (xe.contents = be), xe));
|
|
849
849
|
}
|
|
850
|
-
d.value = await il(l(le)),
|
|
850
|
+
d.value = await il(l(le)), r.value = await il(l(le));
|
|
851
851
|
} else {
|
|
852
|
-
let le = l(
|
|
852
|
+
let le = l(r.value);
|
|
853
853
|
if (le = le == null ? void 0 : le.map((Ce) => (Ce.value = e == null ? void 0 : e[Ce.name], Ce)), e != null && e.菜单选项 && ((ge = e == null ? void 0 : e.菜单选项) == null ? void 0 : ge.length) > 0) {
|
|
854
854
|
const Ce = await wl(e == null ? void 0 : e.菜单选项);
|
|
855
855
|
le = le == null ? void 0 : le.map((be) => ((be == null ? void 0 : be.name) === "组信息选项" && (be.contents = Ce), be));
|
|
@@ -857,7 +857,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
857
857
|
le = gl(le), d.value = await il(l(le));
|
|
858
858
|
}
|
|
859
859
|
}, i = async (e) => {
|
|
860
|
-
await ne(e),
|
|
860
|
+
await ne(e), r.value = d.value;
|
|
861
861
|
}, I = async (e) => {
|
|
862
862
|
var k, _, J, X, V, G, ke, me, Ie;
|
|
863
863
|
N.value = !0;
|
|
@@ -876,7 +876,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
876
876
|
const ge = await wl(e == null ? void 0 : e.menuSelect);
|
|
877
877
|
n = n == null ? void 0 : n.map((le) => ((le == null ? void 0 : le.name) === "组信息选项" && (le.contents = ge), le));
|
|
878
878
|
}
|
|
879
|
-
q.value = e == null ? void 0 : e.id,
|
|
879
|
+
q.value = e == null ? void 0 : e.id, r.value = await il(gl(n)), d.value = await il(gl(n));
|
|
880
880
|
}, E = (e) => {
|
|
881
881
|
dl.confirm("是否确认要删除", "", {
|
|
882
882
|
confirmButtonText: "确认",
|
|
@@ -885,7 +885,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
885
885
|
}).then(
|
|
886
886
|
() => {
|
|
887
887
|
var n, f;
|
|
888
|
-
A.value = (n = l(A.value)) == null ? void 0 : n.filter((k) => (k == null ? void 0 : k.id) !== (e == null ? void 0 : e.id)), s("change", (f = l(a.originalItemContents)) == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "tableToForm" && (k.contents = A.value), k))),
|
|
888
|
+
A.value = (n = l(A.value)) == null ? void 0 : n.filter((k) => (k == null ? void 0 : k.id) !== (e == null ? void 0 : e.id)), s("change", (f = l(a.originalItemContents)) == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "tableToForm" && (k.contents = A.value), k))), Xe({
|
|
889
889
|
type: "success",
|
|
890
890
|
message: "删除成功"
|
|
891
891
|
});
|
|
@@ -893,20 +893,20 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
893
893
|
).catch(() => {
|
|
894
894
|
});
|
|
895
895
|
}, v = () => {
|
|
896
|
-
N.value = !1,
|
|
897
|
-
},
|
|
896
|
+
N.value = !1, r.value = [], q.value = "";
|
|
897
|
+
}, Y = async () => {
|
|
898
898
|
var k, _, J, X, V, G, ke, me, Ie, ge;
|
|
899
|
-
|
|
899
|
+
r.value = d.value;
|
|
900
900
|
let e = {};
|
|
901
901
|
q.value !== "" ? e.id = q.value : (b.value++, e.id = "id" + b.value);
|
|
902
902
|
let n = await ((J = (_ = (k = Ve) == null ? void 0 : k.find((le) => {
|
|
903
903
|
var Ce, be;
|
|
904
|
-
return (le == null ? void 0 : le.key) === (((be = (Ce =
|
|
904
|
+
return (le == null ? void 0 : le.key) === (((be = (Ce = r.value) == null ? void 0 : Ce.find((xe) => (xe == null ? void 0 : xe.label) === "类型")) == null ? void 0 : be.value) ?? "label");
|
|
905
905
|
})) == null ? void 0 : _.value) == null ? void 0 : J.value) ?? ((V = (X = Ve) == null ? void 0 : X.find((le) => {
|
|
906
906
|
var Ce, be;
|
|
907
|
-
return (le == null ? void 0 : le.key) === (((be = (Ce =
|
|
907
|
+
return (le == null ? void 0 : le.key) === (((be = (Ce = r.value) == null ? void 0 : Ce.find((xe) => (xe == null ? void 0 : xe.label) === "类型")) == null ? void 0 : be.value) ?? "label");
|
|
908
908
|
})) == null ? void 0 : V.value);
|
|
909
|
-
if ((G =
|
|
909
|
+
if ((G = r.value) == null || G.forEach((le) => {
|
|
910
910
|
const Ce = n == null ? void 0 : n.find((be) => (be == null ? void 0 : be.label) === (le == null ? void 0 : le.label));
|
|
911
911
|
Ce && (e[Ce.key] = le.value);
|
|
912
912
|
}), e.name = e.label, (ke = A.value) != null && ke.find((le) => le.id === e.id))
|
|
@@ -921,7 +921,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
921
921
|
key: "tableToForm",
|
|
922
922
|
contents: A.value
|
|
923
923
|
}), s("change", f);
|
|
924
|
-
},
|
|
924
|
+
}, P = (e) => {
|
|
925
925
|
te.value = !0;
|
|
926
926
|
let n = [];
|
|
927
927
|
cl == null || cl.forEach((f) => {
|
|
@@ -955,7 +955,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
955
955
|
}).then(
|
|
956
956
|
() => {
|
|
957
957
|
var n, f;
|
|
958
|
-
|
|
958
|
+
ee.value = (n = l(ee.value)) == null ? void 0 : n.filter((k) => (k == null ? void 0 : k.id) !== (e == null ? void 0 : e.id)), s("change", (f = l(a.originalItemContents)) == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "extraButton" && (k.contents = ee.value), k))), Xe({
|
|
959
959
|
type: "success",
|
|
960
960
|
message: "删除成功"
|
|
961
961
|
});
|
|
@@ -969,17 +969,17 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
969
969
|
if (q.value !== "" ? e.id = q.value : (b.value++, e.id = "id" + b.value), (f = p.value) == null || f.forEach((V) => {
|
|
970
970
|
const G = cl == null ? void 0 : cl.find((ke) => (ke == null ? void 0 : ke.label) === (V == null ? void 0 : V.label));
|
|
971
971
|
G ? e[G.key] = V.value : V != null && V.children && V.children.length > 0 && (e.children = V.children);
|
|
972
|
-
}), (k =
|
|
973
|
-
|
|
972
|
+
}), (k = ee.value) != null && k.find((V) => V.id === e.id))
|
|
973
|
+
ee.value = (_ = ee.value) == null ? void 0 : _.map((V) => (V.id === e.id && (V = e), V));
|
|
974
974
|
else {
|
|
975
|
-
let V = l(
|
|
976
|
-
V.push(e),
|
|
975
|
+
let V = l(ee.value) ?? [];
|
|
976
|
+
V.push(e), ee.value = V;
|
|
977
977
|
}
|
|
978
978
|
te.value = !1, q.value = "";
|
|
979
979
|
let n = l(a.originalItemContents);
|
|
980
|
-
(J = l(a.originalItemContents)) != null && J.find((V) => (V == null ? void 0 : V.key) === "extraButton") ? n = (X = l(a.originalItemContents)) == null ? void 0 : X.map((V) => ((V == null ? void 0 : V.key) === "extraButton" && (V.contents =
|
|
980
|
+
(J = l(a.originalItemContents)) != null && J.find((V) => (V == null ? void 0 : V.key) === "extraButton") ? n = (X = l(a.originalItemContents)) == null ? void 0 : X.map((V) => ((V == null ? void 0 : V.key) === "extraButton" && (V.contents = ee.value), V)) : n.push({
|
|
981
981
|
key: "extraButton",
|
|
982
|
-
contents:
|
|
982
|
+
contents: ee.value
|
|
983
983
|
}), s("change", n);
|
|
984
984
|
}, y = (e) => {
|
|
985
985
|
let n = l(h.value);
|
|
@@ -1007,7 +1007,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1007
1007
|
}).then(
|
|
1008
1008
|
() => {
|
|
1009
1009
|
var n, f;
|
|
1010
|
-
se.value = (n = l(se.value)) == null ? void 0 : n.filter((k) => (k == null ? void 0 : k.id) !== (e == null ? void 0 : e.id)), s("change", (f = l(a.originalItemContents)) == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "rowButton" && (k.contents = se.value), k))),
|
|
1010
|
+
se.value = (n = l(se.value)) == null ? void 0 : n.filter((k) => (k == null ? void 0 : k.id) !== (e == null ? void 0 : e.id)), s("change", (f = l(a.originalItemContents)) == null ? void 0 : f.map((k) => ((k == null ? void 0 : k.key) === "rowButton" && (k.contents = se.value), k))), Xe({
|
|
1011
1011
|
type: "success",
|
|
1012
1012
|
message: "删除成功"
|
|
1013
1013
|
});
|
|
@@ -1108,7 +1108,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1108
1108
|
children: e == null ? void 0 : e.children,
|
|
1109
1109
|
isFormColHidden: !0
|
|
1110
1110
|
}), q.value = e == null ? void 0 : e.id, pe.value = "", Q.value = n, ie.value = n;
|
|
1111
|
-
},
|
|
1111
|
+
}, R = (e) => {
|
|
1112
1112
|
let n = l(ie.value);
|
|
1113
1113
|
n = n == null ? void 0 : n.map((f) => (f.children || (f.value = e == null ? void 0 : e[f.name]), f)), ie.value = n;
|
|
1114
1114
|
}, ue = () => {
|
|
@@ -1143,7 +1143,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1143
1143
|
C.value = (n = l(C.value)) == null ? void 0 : n.filter((k) => (k == null ? void 0 : k.id) !== (e == null ? void 0 : e.id)), s("change", (f = l(a.originalItemContents)) == null ? void 0 : f.map((k) => {
|
|
1144
1144
|
var _;
|
|
1145
1145
|
return (k == null ? void 0 : k.key) === "header" && (k.contents = (_ = C.value) != null && _.some((J) => J == null ? void 0 : J.children) ? [C.value] : C.value), k;
|
|
1146
|
-
})),
|
|
1146
|
+
})), Xe({
|
|
1147
1147
|
type: "success",
|
|
1148
1148
|
message: "删除成功"
|
|
1149
1149
|
});
|
|
@@ -1156,7 +1156,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1156
1156
|
() => {
|
|
1157
1157
|
var e, n, f, k, _, J, X, V, G, ke, me, Ie, ge, le, Ce, be, xe, Ne, je;
|
|
1158
1158
|
if (!(!a.originalItemContents || a.originalItemContents.length === 0))
|
|
1159
|
-
if (c.value = l(a.originalItemContents), C.value = (n = (e = c.value) == null ? void 0 : e.find((j) => (j == null ? void 0 : j.key) === "header")) == null ? void 0 : n.contents, se.value = (k = (f = c.value) == null ? void 0 : f.find((j) => (j == null ? void 0 : j.key) === "rowButton")) == null ? void 0 : k.contents,
|
|
1159
|
+
if (c.value = l(a.originalItemContents), C.value = (n = (e = c.value) == null ? void 0 : e.find((j) => (j == null ? void 0 : j.key) === "header")) == null ? void 0 : n.contents, se.value = (k = (f = c.value) == null ? void 0 : f.find((j) => (j == null ? void 0 : j.key) === "rowButton")) == null ? void 0 : k.contents, ee.value = (J = (_ = c.value) == null ? void 0 : _.find((j) => (j == null ? void 0 : j.key) === "extraButton")) == null ? void 0 : J.contents, T.value = (V = (X = c.value) == null ? void 0 : X.find((j) => (j == null ? void 0 : j.key) === "page")) != null && V.contents ? !!((ke = (G = c.value) == null ? void 0 : G.find((j) => (j == null ? void 0 : j.key) === "page")) != null && ke.contents) : !1, A.value = (Ie = (me = c.value) == null ? void 0 : me.find((j) => (j == null ? void 0 : j.key) === "tableToForm")) == null ? void 0 : Ie.contents, C.value = (ge = C.value) == null ? void 0 : ge.map((j, Be) => (Array.isArray(j) ? j = As(j) : j = {
|
|
1160
1160
|
label: (j == null ? void 0 : j.label) ?? "",
|
|
1161
1161
|
prop: (j == null ? void 0 : j.label) === "操作" ? "operate" : j == null ? void 0 : j.prop,
|
|
1162
1162
|
width: j != null && j.width ? parseInt(j.width) : "",
|
|
@@ -1173,7 +1173,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1173
1173
|
type: (j == null ? void 0 : j.type) ?? "",
|
|
1174
1174
|
textColor: (j == null ? void 0 : j.textColor) ?? "#000000",
|
|
1175
1175
|
id: (j == null ? void 0 : j.id) ?? Be
|
|
1176
|
-
}),
|
|
1176
|
+
}), ee.value = (xe = ee.value) == null ? void 0 : xe.map((j, Be) => j = {
|
|
1177
1177
|
label: (j == null ? void 0 : j.label) ?? "",
|
|
1178
1178
|
type: (j == null ? void 0 : j.type) ?? "",
|
|
1179
1179
|
background: (j == null ? void 0 : j.background) ?? "var(--ssComponent-primary-color)",
|
|
@@ -1320,7 +1320,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1320
1320
|
})
|
|
1321
1321
|
]),
|
|
1322
1322
|
B("div", oi, [
|
|
1323
|
-
(ce(!0), ye(Se, null, Pe(
|
|
1323
|
+
(ce(!0), ye(Se, null, Pe(ee.value, (_, J) => (ce(), ye("div", { key: J }, [
|
|
1324
1324
|
B("div", ui, [
|
|
1325
1325
|
B("div", ri, we(_ == null ? void 0 : _.label), 1),
|
|
1326
1326
|
B("div", ci, [
|
|
@@ -1328,7 +1328,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1328
1328
|
name: "ChildFix",
|
|
1329
1329
|
style: { width: "24px", height: "24px" },
|
|
1330
1330
|
class: "svg-icon-content",
|
|
1331
|
-
onClick: (X) =>
|
|
1331
|
+
onClick: (X) => P(_)
|
|
1332
1332
|
}, null, 8, ["onClick"]),
|
|
1333
1333
|
ae(f, {
|
|
1334
1334
|
name: "ChildDelete",
|
|
@@ -1405,7 +1405,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1405
1405
|
rowContents: Q.value,
|
|
1406
1406
|
key: Q.value,
|
|
1407
1407
|
isEnableWrap: !0,
|
|
1408
|
-
onChange:
|
|
1408
|
+
onChange: R
|
|
1409
1409
|
}, null, 8, ["rowContents"]))
|
|
1410
1410
|
])
|
|
1411
1411
|
]),
|
|
@@ -1531,8 +1531,8 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1531
1531
|
default: he(() => [
|
|
1532
1532
|
B("div", wi, [
|
|
1533
1533
|
(ce(), Fe(ze, {
|
|
1534
|
-
rowContents:
|
|
1535
|
-
key:
|
|
1534
|
+
rowContents: r.value,
|
|
1535
|
+
key: r.value,
|
|
1536
1536
|
isEnableWrap: !0,
|
|
1537
1537
|
onChange: ne,
|
|
1538
1538
|
onChangeVisible: re,
|
|
@@ -1555,7 +1555,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1555
1555
|
}),
|
|
1556
1556
|
ae(k, {
|
|
1557
1557
|
class: "ok-button button",
|
|
1558
|
-
onClick:
|
|
1558
|
+
onClick: Y,
|
|
1559
1559
|
id: "themeButton"
|
|
1560
1560
|
}, {
|
|
1561
1561
|
default: he(() => n[18] || (n[18] = [
|
|
@@ -1584,19 +1584,19 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
},
|
|
1586
1586
|
emits: ["change"],
|
|
1587
|
-
setup(
|
|
1588
|
-
const a =
|
|
1589
|
-
var v,
|
|
1587
|
+
setup(u, { emit: m }) {
|
|
1588
|
+
const a = u, s = m, c = Z(!1), O = Z([]), N = Z([]), C = Z(!1), U = Z([]), Q = Z([]), T = Z(""), ie = Z(!1), q = Z(0), pe = Z([]), se = Z([]), ee = (i, I) => (console.log(345, i), (i == null ? void 0 : i.label) === "类型" && I[i.key] === "" ? "Input" : (i == null ? void 0 : i.key) === "isFormColHidden" && !I[i.key] ? !1 : I[i.key]), D = async (i) => {
|
|
1589
|
+
var v, Y, P, W, o, y;
|
|
1590
1590
|
c.value = !0;
|
|
1591
1591
|
let I = [];
|
|
1592
|
-
const E = await ((
|
|
1592
|
+
const E = await ((P = (Y = (v = Ve) == null ? void 0 : v.find((F) => (F == null ? void 0 : F.key) === ((i == null ? void 0 : i.type) === "" ? "Input" : i == null ? void 0 : i.type))) == null ? void 0 : Y.value) == null ? void 0 : P.value) ?? ((o = (W = Ve) == null ? void 0 : W.find((F) => (F == null ? void 0 : F.key) === ((i == null ? void 0 : i.type) === "" ? "Input" : i == null ? void 0 : i.type))) == null ? void 0 : o.value);
|
|
1593
1593
|
if (E == null || E.forEach((F) => {
|
|
1594
1594
|
q.value++, I.push({
|
|
1595
1595
|
label: F == null ? void 0 : F.label,
|
|
1596
1596
|
name: F == null ? void 0 : F.label,
|
|
1597
1597
|
type: F.type,
|
|
1598
1598
|
// value: (t?.label === "类型" && content[t.key] === '') ? "Input" : content[t.key],
|
|
1599
|
-
value:
|
|
1599
|
+
value: ee(F, i),
|
|
1600
1600
|
id: q.value,
|
|
1601
1601
|
contents: F == null ? void 0 : F.options,
|
|
1602
1602
|
width: (i == null ? void 0 : i.width) ?? 1
|
|
@@ -1634,7 +1634,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1634
1634
|
{ deep: !0 }
|
|
1635
1635
|
);
|
|
1636
1636
|
const te = () => {
|
|
1637
|
-
var E, v,
|
|
1637
|
+
var E, v, Y, P, W;
|
|
1638
1638
|
pe.value = se.value;
|
|
1639
1639
|
let i = {};
|
|
1640
1640
|
if (T.value !== "" ? i.id = T.value : (q.value++, i.id = "id" + q.value), (E = pe.value) == null || E.forEach((o) => {
|
|
@@ -1642,14 +1642,14 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1642
1642
|
const y = (F = Xl) == null ? void 0 : F.find((H) => (H == null ? void 0 : H.label) === (o == null ? void 0 : o.label));
|
|
1643
1643
|
y && (i[y.key] = o.value);
|
|
1644
1644
|
}), (v = U.value) != null && v.find((o) => o.id === i.id))
|
|
1645
|
-
U.value = (
|
|
1645
|
+
U.value = (Y = U.value) == null ? void 0 : Y.map((o) => (o.id === i.id && (o = i), o));
|
|
1646
1646
|
else {
|
|
1647
1647
|
let o = l(U.value);
|
|
1648
1648
|
U.value || (U.value = []), o.push(i), U.value = o;
|
|
1649
1649
|
}
|
|
1650
1650
|
C.value = !1, T.value = "";
|
|
1651
1651
|
let I = l(a.originalItemContents);
|
|
1652
|
-
(
|
|
1652
|
+
(P = l(a.originalItemContents)) != null && P.find((o) => (o == null ? void 0 : o.key) === "formButton") ? I = (W = l(a.originalItemContents)) == null ? void 0 : W.map((o) => ((o == null ? void 0 : o.key) === "formButton" && (o.contents = U.value), o)) : I.push({
|
|
1653
1653
|
key: "formButton",
|
|
1654
1654
|
contents: U.value
|
|
1655
1655
|
}), s("change", I);
|
|
@@ -1661,7 +1661,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1661
1661
|
}).then(
|
|
1662
1662
|
() => {
|
|
1663
1663
|
var I, E;
|
|
1664
|
-
Q.value = (I = l(Q.value)) == null ? void 0 : I.filter((v) => (v == null ? void 0 : v.id) !== (i == null ? void 0 : i.id)), s("change", (E = l(a.originalItemContents)) == null ? void 0 : E.map((v) => ((v == null ? void 0 : v.key) === "formContent" && (v.contents = Q.value), v))),
|
|
1664
|
+
Q.value = (I = l(Q.value)) == null ? void 0 : I.filter((v) => (v == null ? void 0 : v.id) !== (i == null ? void 0 : i.id)), s("change", (E = l(a.originalItemContents)) == null ? void 0 : E.map((v) => ((v == null ? void 0 : v.key) === "formContent" && (v.contents = Q.value), v))), Xe({
|
|
1665
1665
|
type: "success",
|
|
1666
1666
|
message: "删除成功"
|
|
1667
1667
|
});
|
|
@@ -1676,7 +1676,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1676
1676
|
}).then(
|
|
1677
1677
|
() => {
|
|
1678
1678
|
var I, E;
|
|
1679
|
-
U.value = (I = l(U.value)) == null ? void 0 : I.filter((v) => (v == null ? void 0 : v.id) !== (i == null ? void 0 : i.id)), s("change", (E = l(a.originalItemContents)) == null ? void 0 : E.map((v) => ((v == null ? void 0 : v.key) === "formButton" && (v.contents = U.value), v))),
|
|
1679
|
+
U.value = (I = l(U.value)) == null ? void 0 : I.filter((v) => (v == null ? void 0 : v.id) !== (i == null ? void 0 : i.id)), s("change", (E = l(a.originalItemContents)) == null ? void 0 : E.map((v) => ((v == null ? void 0 : v.key) === "formButton" && (v.contents = U.value), v))), Xe({
|
|
1680
1680
|
type: "success",
|
|
1681
1681
|
message: "删除成功"
|
|
1682
1682
|
});
|
|
@@ -1697,28 +1697,28 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1697
1697
|
contents: E == null ? void 0 : E.options
|
|
1698
1698
|
});
|
|
1699
1699
|
}), pe.value = i, se.value = i;
|
|
1700
|
-
},
|
|
1700
|
+
}, r = () => {
|
|
1701
1701
|
var I, E, v;
|
|
1702
1702
|
c.value = !0;
|
|
1703
1703
|
let i = [];
|
|
1704
|
-
(v = (E = (I = Ve) == null ? void 0 : I.find((
|
|
1704
|
+
(v = (E = (I = Ve) == null ? void 0 : I.find((Y) => (Y == null ? void 0 : Y.key) === "Input")) == null ? void 0 : E.value) == null || v.forEach((Y) => {
|
|
1705
1705
|
q.value++, i.push({
|
|
1706
|
-
label:
|
|
1707
|
-
name:
|
|
1708
|
-
type:
|
|
1709
|
-
value: (
|
|
1706
|
+
label: Y == null ? void 0 : Y.label,
|
|
1707
|
+
name: Y == null ? void 0 : Y.label,
|
|
1708
|
+
type: Y.type,
|
|
1709
|
+
value: (Y == null ? void 0 : Y.label) === "类型" ? "Input" : "",
|
|
1710
1710
|
id: q.value,
|
|
1711
|
-
contents:
|
|
1711
|
+
contents: Y == null ? void 0 : Y.options
|
|
1712
1712
|
});
|
|
1713
1713
|
}), O.value = i, N.value = i;
|
|
1714
1714
|
}, d = (i) => {
|
|
1715
1715
|
let I = l(se.value);
|
|
1716
1716
|
I = I == null ? void 0 : I.map((E) => (E.value = i == null ? void 0 : i[E.name], E)), se.value = I;
|
|
1717
1717
|
}, A = async (i) => {
|
|
1718
|
-
var I, E, v,
|
|
1718
|
+
var I, E, v, Y, P, W, o, y, F, H, de, oe;
|
|
1719
1719
|
if ((i == null ? void 0 : i.类型) !== ((E = (I = N.value) == null ? void 0 : I.find((z) => (z == null ? void 0 : z.label) === "类型")) == null ? void 0 : E.value)) {
|
|
1720
1720
|
let z = [];
|
|
1721
|
-
const S = await ((
|
|
1721
|
+
const S = await ((P = (Y = (v = Ve) == null ? void 0 : v.find((w) => (w == null ? void 0 : w.key) === ((i == null ? void 0 : i.类型) === "" ? "Input" : i == null ? void 0 : i.类型))) == null ? void 0 : Y.value) == null ? void 0 : P.value) ? await ((H = (F = (y = Ve) == null ? void 0 : y.find((w) => (w == null ? void 0 : w.key) === ((i == null ? void 0 : i.类型) === "" ? "Input" : i == null ? void 0 : i.类型))) == null ? void 0 : F.value) == null ? void 0 : H.value) : (o = (W = Ve) == null ? void 0 : W.find((w) => (w == null ? void 0 : w.key) === ((i == null ? void 0 : i.类型) === "" ? "Input" : i == null ? void 0 : i.类型))) == null ? void 0 : o.value;
|
|
1722
1722
|
if (S == null || S.forEach((w) => {
|
|
1723
1723
|
var g, x;
|
|
1724
1724
|
q.value++, z.push({
|
|
@@ -1748,11 +1748,11 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1748
1748
|
}, fe = async (i) => {
|
|
1749
1749
|
await A(i), O.value = N.value;
|
|
1750
1750
|
}, re = async () => {
|
|
1751
|
-
var v,
|
|
1751
|
+
var v, Y, P, W, o, y, F, H, de, oe, z, S;
|
|
1752
1752
|
O.value = N.value;
|
|
1753
1753
|
let i = {};
|
|
1754
|
-
i.width = ((
|
|
1755
|
-
let I = await ((o = (W = (
|
|
1754
|
+
i.width = ((Y = (v = O.value) == null ? void 0 : v[0]) == null ? void 0 : Y.width) ?? 1, T.value !== "" ? i.id = T.value : (q.value++, i.id = "id" + q.value);
|
|
1755
|
+
let I = await ((o = (W = (P = Ve) == null ? void 0 : P.find((w) => {
|
|
1756
1756
|
var g, x;
|
|
1757
1757
|
return (w == null ? void 0 : w.key) === (((x = (g = O.value) == null ? void 0 : g.find((t) => (t == null ? void 0 : t.label) === "类型")) == null ? void 0 : x.value) ?? "label");
|
|
1758
1758
|
})) == null ? void 0 : W.value) == null ? void 0 : o.value) ?? ((F = (y = Ve) == null ? void 0 : y.find((w) => {
|
|
@@ -1780,10 +1780,10 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1780
1780
|
return Ke(
|
|
1781
1781
|
() => a.originalItemContents,
|
|
1782
1782
|
() => {
|
|
1783
|
-
var I, E, v,
|
|
1783
|
+
var I, E, v, Y, P, W;
|
|
1784
1784
|
if (!a.originalItemContents || a.originalItemContents.length === 0) return;
|
|
1785
1785
|
const i = l(a.originalItemContents);
|
|
1786
|
-
Q.value = ((I = i == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "formContent")) == null ? void 0 : I.contents) ?? [], U.value = ((E = i == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "formButton")) == null ? void 0 : E.contents) ?? [], ie.value = (v = i == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "enableWrap")) != null && v.contents ? !((
|
|
1786
|
+
Q.value = ((I = i == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "formContent")) == null ? void 0 : I.contents) ?? [], U.value = ((E = i == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "formButton")) == null ? void 0 : E.contents) ?? [], ie.value = (v = i == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "enableWrap")) != null && v.contents ? !((Y = i == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "enableWrap")) != null && Y.contents) : !0, Q.value = (P = l(Q.value)) == null ? void 0 : P.map((o, y) => {
|
|
1787
1787
|
var H;
|
|
1788
1788
|
let F = o;
|
|
1789
1789
|
return F.id = (o == null ? void 0 : o.id) ?? y, o != null && o.label || (o.label = (o == null ? void 0 : o.key) ?? (o == null ? void 0 : o.label) ?? ""), o != null && o.type || (o.type = (o == null ? void 0 : o.type) ?? ""), o.contents = ((H = o == null ? void 0 : o.options) == null ? void 0 : H.length) === 0 ? (o == null ? void 0 : o.contents) ?? "" : o == null ? void 0 : o.options, F;
|
|
@@ -1804,7 +1804,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1804
1804
|
ae(v, {
|
|
1805
1805
|
class: "icon-content",
|
|
1806
1806
|
id: "themeButton",
|
|
1807
|
-
onClick:
|
|
1807
|
+
onClick: r
|
|
1808
1808
|
}, {
|
|
1809
1809
|
icon: he(() => [
|
|
1810
1810
|
ae(E, {
|
|
@@ -1820,21 +1820,21 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1820
1820
|
})
|
|
1821
1821
|
]),
|
|
1822
1822
|
B("div", Bi, [
|
|
1823
|
-
(ce(!0), ye(Se, null, Pe(Q.value, (
|
|
1823
|
+
(ce(!0), ye(Se, null, Pe(Q.value, (Y, P) => (ce(), ye("div", { key: P }, [
|
|
1824
1824
|
B("div", Ti, [
|
|
1825
|
-
B("div", null, we(
|
|
1825
|
+
B("div", null, we(Y.label), 1),
|
|
1826
1826
|
B("div", Si, [
|
|
1827
1827
|
ae(E, {
|
|
1828
1828
|
name: "ChildFix",
|
|
1829
1829
|
class: "svg-icon-content",
|
|
1830
1830
|
style: { width: "24px", height: "24px" },
|
|
1831
|
-
onClick: (W) => D(
|
|
1831
|
+
onClick: (W) => D(Y)
|
|
1832
1832
|
}, null, 8, ["onClick"]),
|
|
1833
1833
|
ae(E, {
|
|
1834
1834
|
name: "ChildDelete",
|
|
1835
1835
|
class: "svg-icon-content",
|
|
1836
1836
|
style: { width: "24px", height: "24px" },
|
|
1837
|
-
onClick: (W) => p(
|
|
1837
|
+
onClick: (W) => p(Y)
|
|
1838
1838
|
}, null, 8, ["onClick"])
|
|
1839
1839
|
])
|
|
1840
1840
|
])
|
|
@@ -1861,21 +1861,21 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1861
1861
|
})
|
|
1862
1862
|
]),
|
|
1863
1863
|
B("div", Oi, [
|
|
1864
|
-
(ce(!0), ye(Se, null, Pe(U.value, (
|
|
1864
|
+
(ce(!0), ye(Se, null, Pe(U.value, (Y, P) => (ce(), ye("div", { key: P }, [
|
|
1865
1865
|
B("div", Li, [
|
|
1866
|
-
B("div", null, we(
|
|
1866
|
+
B("div", null, we(Y.label), 1),
|
|
1867
1867
|
B("div", Pi, [
|
|
1868
1868
|
ae(E, {
|
|
1869
1869
|
name: "ChildFix",
|
|
1870
1870
|
class: "svg-icon-content",
|
|
1871
1871
|
style: { width: "24px", height: "24px" },
|
|
1872
|
-
onClick: (W) => $(
|
|
1872
|
+
onClick: (W) => $(Y)
|
|
1873
1873
|
}, null, 8, ["onClick"]),
|
|
1874
1874
|
ae(E, {
|
|
1875
1875
|
name: "ChildDelete",
|
|
1876
1876
|
class: "svg-icon-content",
|
|
1877
1877
|
style: { width: "24px", height: "24px" },
|
|
1878
|
-
onClick: (W) => h(
|
|
1878
|
+
onClick: (W) => h(Y)
|
|
1879
1879
|
}, null, 8, ["onClick"])
|
|
1880
1880
|
])
|
|
1881
1881
|
])
|
|
@@ -1888,7 +1888,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1888
1888
|
I[5] || (I[5] = B("div", { class: "operate-center-content" }, we("是否自动撑宽"), -1)),
|
|
1889
1889
|
ae(Va, {
|
|
1890
1890
|
modelValue: ie.value,
|
|
1891
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
1891
|
+
"onUpdate:modelValue": I[0] || (I[0] = (Y) => ie.value = Y)
|
|
1892
1892
|
}, null, 8, ["modelValue"])
|
|
1893
1893
|
])
|
|
1894
1894
|
]),
|
|
@@ -1982,8 +1982,8 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
1982
1982
|
}
|
|
1983
1983
|
},
|
|
1984
1984
|
emits: ["change"],
|
|
1985
|
-
setup(
|
|
1986
|
-
const a =
|
|
1985
|
+
setup(u, { emit: m }) {
|
|
1986
|
+
const a = u, s = m, c = Z([
|
|
1987
1987
|
{
|
|
1988
1988
|
label: "方向:",
|
|
1989
1989
|
prop: "direction",
|
|
@@ -2047,7 +2047,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2047
2047
|
],
|
|
2048
2048
|
value: !1
|
|
2049
2049
|
}
|
|
2050
|
-
]), O =
|
|
2050
|
+
]), O = Z([
|
|
2051
2051
|
{
|
|
2052
2052
|
label: "",
|
|
2053
2053
|
prop: "index",
|
|
@@ -2067,7 +2067,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2067
2067
|
type: "input",
|
|
2068
2068
|
value: ""
|
|
2069
2069
|
}
|
|
2070
|
-
]), N =
|
|
2070
|
+
]), N = Z([
|
|
2071
2071
|
{
|
|
2072
2072
|
label: "取消",
|
|
2073
2073
|
background: "#c0c4cc"
|
|
@@ -2080,7 +2080,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2080
2080
|
visible: !1,
|
|
2081
2081
|
width: "40%",
|
|
2082
2082
|
title: "步骤条"
|
|
2083
|
-
}), U =
|
|
2083
|
+
}), U = Z("create"), Q = Z({}), T = Z([]), ie = (D) => {
|
|
2084
2084
|
var $;
|
|
2085
2085
|
Q.value = D, s("change", ($ = se()) == null ? void 0 : $.compData);
|
|
2086
2086
|
}, q = (D, $) => {
|
|
@@ -2136,7 +2136,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2136
2136
|
contents: Q.value
|
|
2137
2137
|
}
|
|
2138
2138
|
]
|
|
2139
|
-
}),
|
|
2139
|
+
}), ee = () => {
|
|
2140
2140
|
C.visible = !1;
|
|
2141
2141
|
};
|
|
2142
2142
|
return Ke(() => a == null ? void 0 : a.itemContents, (D) => {
|
|
@@ -2176,7 +2176,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2176
2176
|
ae(p, {
|
|
2177
2177
|
type: "primary",
|
|
2178
2178
|
size: "small",
|
|
2179
|
-
onClick: (
|
|
2179
|
+
onClick: (r) => q("update", { ...h, index: b + 1 })
|
|
2180
2180
|
}, {
|
|
2181
2181
|
default: he(() => $[3] || ($[3] = [
|
|
2182
2182
|
$e("修改")
|
|
@@ -2187,7 +2187,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2187
2187
|
ae(p, {
|
|
2188
2188
|
type: "danger",
|
|
2189
2189
|
size: "small",
|
|
2190
|
-
onClick: (
|
|
2190
|
+
onClick: (r) => q("delete", b)
|
|
2191
2191
|
}, {
|
|
2192
2192
|
default: he(() => $[4] || ($[4] = [
|
|
2193
2193
|
$e("删除")
|
|
@@ -2209,7 +2209,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2209
2209
|
ae(Ge, {
|
|
2210
2210
|
visible: C.visible,
|
|
2211
2211
|
title: C.title,
|
|
2212
|
-
onBeforeDestroy:
|
|
2212
|
+
onBeforeDestroy: ee,
|
|
2213
2213
|
width: C.width
|
|
2214
2214
|
}, {
|
|
2215
2215
|
default: he(() => [
|
|
@@ -2243,8 +2243,8 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2243
2243
|
}
|
|
2244
2244
|
},
|
|
2245
2245
|
emits: ["change"],
|
|
2246
|
-
setup(
|
|
2247
|
-
const a =
|
|
2246
|
+
setup(u, { emit: m }) {
|
|
2247
|
+
const a = u, s = m, c = Z("create"), O = Z({}), N = Z([]), C = Z([
|
|
2248
2248
|
{
|
|
2249
2249
|
label: "方向:",
|
|
2250
2250
|
prop: "placement",
|
|
@@ -2343,7 +2343,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2343
2343
|
],
|
|
2344
2344
|
value: !0
|
|
2345
2345
|
}
|
|
2346
|
-
]), U =
|
|
2346
|
+
]), U = Z([
|
|
2347
2347
|
{
|
|
2348
2348
|
label: "",
|
|
2349
2349
|
prop: "index",
|
|
@@ -2363,7 +2363,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2363
2363
|
type: "datetime",
|
|
2364
2364
|
value: ""
|
|
2365
2365
|
}
|
|
2366
|
-
]), Q =
|
|
2366
|
+
]), Q = Z([
|
|
2367
2367
|
{
|
|
2368
2368
|
label: "取消",
|
|
2369
2369
|
background: "#c0c4cc"
|
|
@@ -2400,8 +2400,8 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2400
2400
|
var $, te, p, h;
|
|
2401
2401
|
if ((D == null ? void 0 : D.buttonName) === "确认") {
|
|
2402
2402
|
const b = l(D == null ? void 0 : D.content);
|
|
2403
|
-
switch (Object.keys(b).forEach((
|
|
2404
|
-
b[
|
|
2403
|
+
switch (Object.keys(b).forEach((r) => {
|
|
2404
|
+
b[r] === "" && delete b[r];
|
|
2405
2405
|
}), c.value) {
|
|
2406
2406
|
case "create":
|
|
2407
2407
|
console.log(1335, N.value, b), (te = N.value) == null || te.push({
|
|
@@ -2410,11 +2410,11 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2410
2410
|
});
|
|
2411
2411
|
break;
|
|
2412
2412
|
case "update":
|
|
2413
|
-
N.value = (p = N.value) == null ? void 0 : p.map((
|
|
2414
|
-
...
|
|
2413
|
+
N.value = (p = N.value) == null ? void 0 : p.map((r) => r.index === (b == null ? void 0 : b.index) ? {
|
|
2414
|
+
...r,
|
|
2415
2415
|
content: b == null ? void 0 : b.content,
|
|
2416
2416
|
timestamp: b == null ? void 0 : b.timestamp
|
|
2417
|
-
} :
|
|
2417
|
+
} : r);
|
|
2418
2418
|
break;
|
|
2419
2419
|
}
|
|
2420
2420
|
s("change", (h = se()) == null ? void 0 : h.compData), T.visible = !1;
|
|
@@ -2432,7 +2432,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2432
2432
|
contents: O.value
|
|
2433
2433
|
}
|
|
2434
2434
|
]
|
|
2435
|
-
}),
|
|
2435
|
+
}), ee = () => {
|
|
2436
2436
|
T.visible = !1;
|
|
2437
2437
|
};
|
|
2438
2438
|
return Ke(() => a == null ? void 0 : a.itemContents, (D) => {
|
|
@@ -2472,7 +2472,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2472
2472
|
ae(p, {
|
|
2473
2473
|
type: "primary",
|
|
2474
2474
|
size: "small",
|
|
2475
|
-
onClick: (
|
|
2475
|
+
onClick: (r) => q("update", { ...h, index: b + 1 })
|
|
2476
2476
|
}, {
|
|
2477
2477
|
default: he(() => $[3] || ($[3] = [
|
|
2478
2478
|
$e("修改")
|
|
@@ -2483,7 +2483,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2483
2483
|
ae(p, {
|
|
2484
2484
|
type: "danger",
|
|
2485
2485
|
size: "small",
|
|
2486
|
-
onClick: (
|
|
2486
|
+
onClick: (r) => q("delete", b)
|
|
2487
2487
|
}, {
|
|
2488
2488
|
default: he(() => $[4] || ($[4] = [
|
|
2489
2489
|
$e("删除")
|
|
@@ -2505,7 +2505,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2505
2505
|
ae(Ge, {
|
|
2506
2506
|
visible: T.visible,
|
|
2507
2507
|
title: T.title,
|
|
2508
|
-
onBeforeDestroy:
|
|
2508
|
+
onBeforeDestroy: ee,
|
|
2509
2509
|
width: T.width
|
|
2510
2510
|
}, {
|
|
2511
2511
|
default: he(() => [
|
|
@@ -2527,7 +2527,7 @@ const ks = (r) => r.match(/\((.*)\)/)[1], _s = Ua("formComp", {
|
|
|
2527
2527
|
};
|
|
2528
2528
|
}
|
|
2529
2529
|
}), Zi = /* @__PURE__ */ Ue(Yi, [["__scopeId", "data-v-f6b5d4fc"]]), en = {};
|
|
2530
|
-
function ln(
|
|
2530
|
+
function ln(u, m) {
|
|
2531
2531
|
return ce(), ye("div");
|
|
2532
2532
|
}
|
|
2533
2533
|
const an = /* @__PURE__ */ Ue(en, [["render", ln]]), sn = { class: "extra-content" }, nn = { key: 0 }, on = { key: 1 }, un = { class: "dialog-footer" }, rn = {
|
|
@@ -2549,18 +2549,18 @@ const an = /* @__PURE__ */ Ue(en, [["render", ln]]), sn = { class: "extra-conten
|
|
|
2549
2549
|
}
|
|
2550
2550
|
},
|
|
2551
2551
|
emits: ["change"],
|
|
2552
|
-
setup(
|
|
2553
|
-
const a =
|
|
2552
|
+
setup(u, { emit: m }) {
|
|
2553
|
+
const a = u, s = Z(0), c = Z(), O = Z(), N = m, C = Z(!1), U = Z({}), Q = Z({}), T = Z();
|
|
2554
2554
|
Ke(
|
|
2555
2555
|
() => [a.itemData],
|
|
2556
2556
|
() => {
|
|
2557
2557
|
var h;
|
|
2558
2558
|
const p = l(a.itemData);
|
|
2559
2559
|
c.value = (h = l(p)) == null ? void 0 : h.map((b) => {
|
|
2560
|
-
var
|
|
2560
|
+
var r;
|
|
2561
2561
|
if (b.key === "extra") {
|
|
2562
2562
|
let d = [];
|
|
2563
|
-
(
|
|
2563
|
+
(r = b.value) == null || r.forEach((A) => {
|
|
2564
2564
|
var K;
|
|
2565
2565
|
d.push((K = Object.values(A)) == null ? void 0 : K[0]);
|
|
2566
2566
|
}), b.value = d;
|
|
@@ -2570,44 +2570,44 @@ const an = /* @__PURE__ */ Ue(en, [["render", ln]]), sn = { class: "extra-conten
|
|
|
2570
2570
|
},
|
|
2571
2571
|
{ deep: !0, immediate: !0 }
|
|
2572
2572
|
);
|
|
2573
|
-
const ie = (p, h, b,
|
|
2573
|
+
const ie = (p, h, b, r) => {
|
|
2574
2574
|
var A;
|
|
2575
2575
|
let d = {};
|
|
2576
|
-
((A = p == null ? void 0 : p[0]) == null ? void 0 : A.contents) === "详情" && (C.value = !0, d[h] = p, O.value = p == null ? void 0 : p.filter((K) => (K == null ? void 0 : K.key) !== "tableContentName"), U.value = d, Q.value = b, T.value =
|
|
2576
|
+
((A = p == null ? void 0 : p[0]) == null ? void 0 : A.contents) === "详情" && (C.value = !0, d[h] = p, O.value = p == null ? void 0 : p.filter((K) => (K == null ? void 0 : K.key) !== "tableContentName"), U.value = d, Q.value = b, T.value = r.id);
|
|
2577
2577
|
}, q = (p) => {
|
|
2578
2578
|
var K, fe, re, ne;
|
|
2579
|
-
const h = (fe = (K = Object.values(l(U.value))) == null ? void 0 : K[0]) == null ? void 0 : fe.filter((i) => (i == null ? void 0 : i.key) === "tableContentName"), b = (ne = (re = Object.values(l(U.value))) == null ? void 0 : re[0]) == null ? void 0 : ne.filter((i) => (i == null ? void 0 : i.key) !== "tableContentName"),
|
|
2579
|
+
const h = (fe = (K = Object.values(l(U.value))) == null ? void 0 : K[0]) == null ? void 0 : fe.filter((i) => (i == null ? void 0 : i.key) === "tableContentName"), b = (ne = (re = Object.values(l(U.value))) == null ? void 0 : re[0]) == null ? void 0 : ne.filter((i) => (i == null ? void 0 : i.key) !== "tableContentName"), r = b == null ? void 0 : b.map((i, I) => {
|
|
2580
2580
|
var E;
|
|
2581
2581
|
return I === p.index && (i == null ? void 0 : i.comp) === "Table" && (i.compData = (E = i.compData) == null ? void 0 : E.map((v) => {
|
|
2582
|
-
var
|
|
2583
|
-
return (v == null ? void 0 : v.key) === "tableContents" && (v.contents = (
|
|
2582
|
+
var Y, P;
|
|
2583
|
+
return (v == null ? void 0 : v.key) === "tableContents" && (v.contents = (P = (Y = p.content) == null ? void 0 : Y.map((W) => {
|
|
2584
2584
|
let o = {};
|
|
2585
2585
|
for (let y in W)
|
|
2586
2586
|
y !== "id" && (o[y] = W[y]);
|
|
2587
2587
|
return o;
|
|
2588
|
-
})) == null ? void 0 :
|
|
2588
|
+
})) == null ? void 0 : P.map((W) => Object.values(W))), v;
|
|
2589
2589
|
})), i;
|
|
2590
2590
|
});
|
|
2591
|
-
|
|
2591
|
+
r.unshift(h == null ? void 0 : h[0]);
|
|
2592
2592
|
let d = l(U.value), A = {};
|
|
2593
2593
|
for (let i in d)
|
|
2594
|
-
A[i] =
|
|
2594
|
+
A[i] = r;
|
|
2595
2595
|
U.value = A;
|
|
2596
2596
|
}, pe = () => {
|
|
2597
2597
|
C.value = !1, U.value = {}, Q.value = {}, T.value = void 0, s.value++;
|
|
2598
2598
|
}, se = (p) => {
|
|
2599
2599
|
var K, fe, re, ne;
|
|
2600
|
-
const h = (fe = (K = Object.values(l(U.value))) == null ? void 0 : K[0]) == null ? void 0 : fe.filter((i) => (i == null ? void 0 : i.key) === "tableContentName"), b = (ne = (re = Object.values(l(U.value))) == null ? void 0 : re[0]) == null ? void 0 : ne.filter((i) => (i == null ? void 0 : i.key) !== "tableContentName"),
|
|
2601
|
-
|
|
2600
|
+
const h = (fe = (K = Object.values(l(U.value))) == null ? void 0 : K[0]) == null ? void 0 : fe.filter((i) => (i == null ? void 0 : i.key) === "tableContentName"), b = (ne = (re = Object.values(l(U.value))) == null ? void 0 : re[0]) == null ? void 0 : ne.filter((i) => (i == null ? void 0 : i.key) !== "tableContentName"), r = b == null ? void 0 : b.map((i, I) => (I === p.index && (i.compData = p.contents), i));
|
|
2601
|
+
r.unshift(h == null ? void 0 : h[0]);
|
|
2602
2602
|
let d = l(U.value), A = {};
|
|
2603
2603
|
for (let i in d)
|
|
2604
|
-
A[i] =
|
|
2604
|
+
A[i] = r;
|
|
2605
2605
|
U.value = A;
|
|
2606
|
-
},
|
|
2606
|
+
}, ee = () => {
|
|
2607
2607
|
var h, b;
|
|
2608
2608
|
let p = {};
|
|
2609
|
-
for (let
|
|
2610
|
-
|
|
2609
|
+
for (let r in Q.value)
|
|
2610
|
+
r === ((h = Object.keys(U.value)) == null ? void 0 : h[0]) ? p[r] = (b = Object.values(U.value)) == null ? void 0 : b[0] : p[r] = Q.value[r];
|
|
2611
2611
|
N("change", {
|
|
2612
2612
|
buttonName: "编辑",
|
|
2613
2613
|
index: T.value,
|
|
@@ -2621,13 +2621,13 @@ const an = /* @__PURE__ */ Ue(en, [["render", ln]]), sn = { class: "extra-conten
|
|
|
2621
2621
|
return (p, h) => {
|
|
2622
2622
|
const b = Te("el-button");
|
|
2623
2623
|
return ce(), ye("div", sn, [
|
|
2624
|
-
(ce(!0), ye(Se, null, Pe(c.value, (
|
|
2625
|
-
(
|
|
2626
|
-
(ce(), Fe(Kl(te(
|
|
2627
|
-
itemData:
|
|
2628
|
-
childItemData:
|
|
2624
|
+
(ce(!0), ye(Se, null, Pe(c.value, (r, d) => (ce(), ye("div", { key: s.value }, [
|
|
2625
|
+
(r == null ? void 0 : r.key) === "extra" ? (ce(), ye("div", nn)) : (ce(), ye("div", on, [
|
|
2626
|
+
(ce(), Fe(Kl(te(r.comp)), {
|
|
2627
|
+
itemData: r == null ? void 0 : r.compData,
|
|
2628
|
+
childItemData: r == null ? void 0 : r.itemChildData,
|
|
2629
2629
|
key: d,
|
|
2630
|
-
index: (
|
|
2630
|
+
index: (r == null ? void 0 : r.id) ?? d,
|
|
2631
2631
|
onContentClick: ie,
|
|
2632
2632
|
onChange: $
|
|
2633
2633
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
@@ -2638,17 +2638,17 @@ const an = /* @__PURE__ */ Ue(en, [["render", ln]]), sn = { class: "extra-conten
|
|
|
2638
2638
|
onBeforeDestroy: D
|
|
2639
2639
|
}, {
|
|
2640
2640
|
default: he(() => [
|
|
2641
|
-
(ce(!0), ye(Se, null, Pe(O.value, (
|
|
2641
|
+
(ce(!0), ye(Se, null, Pe(O.value, (r, d) => (ce(), ye("div", {
|
|
2642
2642
|
key: d,
|
|
2643
2643
|
class: "extra-dialog"
|
|
2644
2644
|
}, [
|
|
2645
|
-
(ce(), Fe(Kl(te(
|
|
2646
|
-
itemData:
|
|
2645
|
+
(ce(), Fe(Kl(te(r.comp)), {
|
|
2646
|
+
itemData: r == null ? void 0 : r.compData,
|
|
2647
2647
|
onChange: q,
|
|
2648
|
-
childItemData:
|
|
2648
|
+
childItemData: r == null ? void 0 : r.itemChildData,
|
|
2649
2649
|
key: d,
|
|
2650
2650
|
onContentChange: se,
|
|
2651
|
-
index: (
|
|
2651
|
+
index: (r == null ? void 0 : r.id) ?? d,
|
|
2652
2652
|
class: "extra-component"
|
|
2653
2653
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2654
2654
|
]))), 128))
|
|
@@ -2668,7 +2668,7 @@ const an = /* @__PURE__ */ Ue(en, [["render", ln]]), sn = { class: "extra-conten
|
|
|
2668
2668
|
}),
|
|
2669
2669
|
ae(b, {
|
|
2670
2670
|
class: "confirm-button footer-button",
|
|
2671
|
-
onClick:
|
|
2671
|
+
onClick: ee,
|
|
2672
2672
|
id: "themeButton"
|
|
2673
2673
|
}, {
|
|
2674
2674
|
default: he(() => h[1] || (h[1] = [
|
|
@@ -2684,28 +2684,28 @@ const an = /* @__PURE__ */ Ue(en, [["render", ln]]), sn = { class: "extra-conten
|
|
|
2684
2684
|
]);
|
|
2685
2685
|
};
|
|
2686
2686
|
}
|
|
2687
|
-
}, cn = /* @__PURE__ */ Ue(rn, [["__scopeId", "data-v-2d9c5ab2"]]), Yl = (
|
|
2688
|
-
var C, U, Q, T, ie, q, pe, se,
|
|
2689
|
-
const m = la(
|
|
2687
|
+
}, cn = /* @__PURE__ */ Ue(rn, [["__scopeId", "data-v-2d9c5ab2"]]), Yl = (u) => {
|
|
2688
|
+
var C, U, Q, T, ie, q, pe, se, ee, D, $, te, p, h, b, r, d, A, K, fe, re, ne, i, I;
|
|
2689
|
+
const m = la(u) ? (C = ol(l(u))) == null ? void 0 : C[0] : "[]", a = la(u) ? "[" + ((U = ol(l(u))) == null ? void 0 : U[2]) + "]" : "[" + u + "]";
|
|
2690
2690
|
let s = [], c = [], O = "";
|
|
2691
2691
|
const N = (T = (Q = a == null ? void 0 : a.trim()) == null ? void 0 : Q.slice(1, (a == null ? void 0 : a.trim().length) - 1)) == null ? void 0 : T.replaceAll("'", '"');
|
|
2692
|
-
if (nl(N) ? s = JSON.parse(N) : nl((pe = (q = (ie = N == null ? void 0 : N.split("}")) == null ? void 0 : ie[0]) == null ? void 0 : q.replace(":", "")) == null ? void 0 : pe.replaceAll("\\", "\\\\")) && (s = JSON.parse((D = (
|
|
2692
|
+
if (nl(N) ? s = JSON.parse(N) : nl((pe = (q = (ie = N == null ? void 0 : N.split("}")) == null ? void 0 : ie[0]) == null ? void 0 : q.replace(":", "")) == null ? void 0 : pe.replaceAll("\\", "\\\\")) && (s = JSON.parse((D = (ee = (se = N == null ? void 0 : N.split("}")) == null ? void 0 : se[0]) == null ? void 0 : ee.replace(":", "")) == null ? void 0 : D.replaceAll("\\", "\\\\"))), s = s != null && s.every((E) => Array.isArray(E) && E.every((v) => Array.isArray(v))) ? s == null ? void 0 : s[0] : s, !(m != null && m.includes("(")))
|
|
2693
2693
|
!m.includes("{") && nl(m == null ? void 0 : m.replaceAll("'", '"')) ? c = JSON.parse(m == null ? void 0 : m.replaceAll("'", '"')) : nl((te = ($ = m == null ? void 0 : m.split("{")) == null ? void 0 : $[1]) == null ? void 0 : te.replaceAll("'", '"')) && (c = JSON.parse((h = (p = m == null ? void 0 : m.split("{")) == null ? void 0 : p[1]) == null ? void 0 : h.replaceAll("'", '"')));
|
|
2694
2694
|
else {
|
|
2695
2695
|
let E = [];
|
|
2696
|
-
if (((
|
|
2696
|
+
if (((r = (b = m == null ? void 0 : m.slice(1, (m == null ? void 0 : m.length) - 1)) == null ? void 0 : b.split(",")) == null ? void 0 : r.length) > 1)
|
|
2697
2697
|
(A = (d = m == null ? void 0 : m.slice(1, (m == null ? void 0 : m.length) - 1)) == null ? void 0 : d.split(",")) == null || A.forEach((v) => {
|
|
2698
|
-
var
|
|
2698
|
+
var Y, P, W, o, y, F, H, de, oe, z, S, w, g, x, t, L, _e, R, ue, ve, M, e, n, f, k;
|
|
2699
2699
|
if (!(v != null && v.includes("(")))
|
|
2700
2700
|
E.push(v == null ? void 0 : v.replaceAll("'", ""));
|
|
2701
2701
|
else if (v != null && v.includes("[")) {
|
|
2702
2702
|
let _;
|
|
2703
2703
|
const J = (S = (z = l(v)) == null ? void 0 : z.replaceAll("{", "")) == null ? void 0 : S.replaceAll("}", "");
|
|
2704
|
-
_ = (L = (t = (x = (g = J == null ? void 0 : J.split("[")) == null ? void 0 : g[((w = v == null ? void 0 : v.split("[")) == null ? void 0 : w.length) - 1]) == null ? void 0 : x.split("]")) == null ? void 0 : t[0]) == null ? void 0 : L.replaceAll("'", ""), _ = (_ == null ? void 0 : _[0]) === ":" ? '""' + _ : _, v != null && v.includes("#") && (_ = ((
|
|
2704
|
+
_ = (L = (t = (x = (g = J == null ? void 0 : J.split("[")) == null ? void 0 : g[((w = v == null ? void 0 : v.split("[")) == null ? void 0 : w.length) - 1]) == null ? void 0 : x.split("]")) == null ? void 0 : t[0]) == null ? void 0 : L.replaceAll("'", ""), _ = (_ == null ? void 0 : _[0]) === ":" ? '""' + _ : _, v != null && v.includes("#") && (_ = ((R = (_e = v == null ? void 0 : v.split("#")) == null ? void 0 : _e[0]) == null ? void 0 : R.replaceAll("'", "")) + "#" + _);
|
|
2705
2705
|
let X = (n = (e = (M = (ue = l(J)) == null ? void 0 : ue.split("(")) == null ? void 0 : M[((ve = J == null ? void 0 : J.split("(")) == null ? void 0 : ve.length) - 1]) == null ? void 0 : e.split(")")) == null ? void 0 : n[0].replaceAll(":", "/").replaceAll("'", "");
|
|
2706
2706
|
_.includes(":") && ((k = X == null ? void 0 : X.split("/")) == null ? void 0 : k[((f = X == null ? void 0 : X.split("/")) == null ? void 0 : f.length) - 1]) !== "" ? _ = _ + "[" + X + "]" : _ = _ + "[" + X + "]()", E.push(_ == null ? void 0 : _.replaceAll('"', "'"));
|
|
2707
2707
|
} else {
|
|
2708
|
-
let _ = (y = (o = (W = (
|
|
2708
|
+
let _ = (y = (o = (W = (P = v == null ? void 0 : v.split(":")) == null ? void 0 : P[((Y = v == null ? void 0 : v.split(":")) == null ? void 0 : Y.length) - 1]) == null ? void 0 : W.split(")")) == null ? void 0 : o[0]) == null ? void 0 : y.replaceAll("'", "");
|
|
2709
2709
|
_ = _ + "[" + ((oe = (de = (H = v == null ? void 0 : v.split("(")) == null ? void 0 : H[((F = v == null ? void 0 : v.split("(")) == null ? void 0 : F.length) - 1]) == null ? void 0 : de.split(")")) == null ? void 0 : oe[0].replaceAll(":", "/").replaceAll("'", "")) + "]", E.push(_);
|
|
2710
2710
|
}
|
|
2711
2711
|
}), c = E;
|
|
@@ -2721,116 +2721,116 @@ const an = /* @__PURE__ */ Ue(en, [["render", ln]]), sn = { class: "extra-conten
|
|
|
2721
2721
|
};
|
|
2722
2722
|
};
|
|
2723
2723
|
let De = "$R";
|
|
2724
|
-
const tn = (
|
|
2725
|
-
let m =
|
|
2724
|
+
const tn = (u) => /^'[^']+':\{.*\}$/.exec(l(u)), dn = (u) => /^'[^']+':\[\[.*\]\]$/.exec(l(u)), pn = (u) => /^'([^']+)':.*$/.exec(l(u)), ol = (u) => {
|
|
2725
|
+
let m = u;
|
|
2726
2726
|
const a = [];
|
|
2727
2727
|
let s = "";
|
|
2728
2728
|
for (const c of m)
|
|
2729
2729
|
c.includes("{") || s.includes("{") || c.includes("[") || s.includes("[") || c.includes("【") || s.includes("【") || c.includes("(") || s.includes("(") || c.includes("(") || s.includes("(") || c.includes("/*") || s.includes("/*") || c.includes("&") || s.includes("&") ? (s += c.trim(), l(s).split("{").length - 1 === l(s).split("}").length - 1 && l(s).split("【").length - 1 === l(s).split("】").length - 1 && l(s).split("[").length - 1 === l(s).split("]").length - 1 && l(s).split("(").length - 1 === l(s).split(")").length - 1 && l(s).split("(").length - 1 === l(s).split(")").length - 1 && l(s).split("/*").length - 1 === l(s).split("*/").length - 1 && s[s.length - 1] !== "," && s[s.length - 1] !== "&" && (a.push(s.replace(/\/\*[\s\S]*?\*\//g, "")), s = "")) : a.push(c.trim().replace(/\/\*[\s\S]*?\*\//g, ""));
|
|
2730
2730
|
return a;
|
|
2731
|
-
}, ea = (
|
|
2732
|
-
let a =
|
|
2731
|
+
}, ea = (u, m) => {
|
|
2732
|
+
let a = u;
|
|
2733
2733
|
const s = [];
|
|
2734
2734
|
let c = "", O = 0;
|
|
2735
2735
|
for (const N of a)
|
|
2736
|
-
O++, N.includes("{") || c.includes("{") || N.includes("[") || c.includes("[") || N.includes("【") || c.includes("【") || N.includes("(") || c.includes("(") || N.includes("(") || c.includes("(") || N.includes("/*") || c.includes("/*") ? (c += N.trim(), l(c).split("{").length - 1 === l(c).split("}").length - 1 && l(c).split("【").length - 1 === l(c).split("】").length - 1 && l(c).split("[").length - 1 === l(c).split("]").length - 1 && l(c).split("(").length - 1 === l(c).split(")").length - 1 && l(c).split("(").length - 1 === l(c).split(")").length - 1 && l(c).split("/*").length - 1 === l(c).split("*/").length - 1 && c[c.length - 1] !== "," && c[c.length - 1] === m ? (s.push(c.replace(/\/\*[\s\S]*?\*\//g, "")), c = "") : O === (
|
|
2736
|
+
O++, N.includes("{") || c.includes("{") || N.includes("[") || c.includes("[") || N.includes("【") || c.includes("【") || N.includes("(") || c.includes("(") || N.includes("(") || c.includes("(") || N.includes("/*") || c.includes("/*") ? (c += N.trim(), l(c).split("{").length - 1 === l(c).split("}").length - 1 && l(c).split("【").length - 1 === l(c).split("】").length - 1 && l(c).split("[").length - 1 === l(c).split("]").length - 1 && l(c).split("(").length - 1 === l(c).split(")").length - 1 && l(c).split("(").length - 1 === l(c).split(")").length - 1 && l(c).split("/*").length - 1 === l(c).split("*/").length - 1 && c[c.length - 1] !== "," && c[c.length - 1] === m ? (s.push(c.replace(/\/\*[\s\S]*?\*\//g, "")), c = "") : O === (u == null ? void 0 : u.length) && s.push(c.replace(/\/\*[\s\S]*?\*\//g, ""))) : (c += N.trim(), (c == null ? void 0 : c[(c == null ? void 0 : c.length) - 1]) === m && (s.push(c.replace(/\/\*[\s\S]*?\*\//g, "")), c = ""));
|
|
2737
2737
|
return s;
|
|
2738
|
-
}, la = (
|
|
2739
|
-
var m, a, s, c, O, N, C, U, Q, T, ie, q, pe, se,
|
|
2740
|
-
if (pn(
|
|
2741
|
-
let
|
|
2738
|
+
}, la = (u) => /^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l(u)), fn = (u) => {
|
|
2739
|
+
var m, a, s, c, O, N, C, U, Q, T, ie, q, pe, se, ee, D, $, te, p, h, b, r, d, A, K, fe, re, ne, i, I, E, v, Y, P, W, o, y, F, H, de, oe, z, S, w, g, x, t, L, _e;
|
|
2740
|
+
if (pn(u)) {
|
|
2741
|
+
let R = {}, ue = (s = (a = (m = u == null ? void 0 : u.replace(":", De)) == null ? void 0 : m.split(De)) == null ? void 0 : a[0]) == null ? void 0 : s.replaceAll("'", ""), ve = "", M = (O = (c = u == null ? void 0 : u.replace(":", De)) == null ? void 0 : c.split(De)) == null ? void 0 : O[1];
|
|
2742
2742
|
if (M.includes("{") || M.includes("(")) {
|
|
2743
2743
|
M.includes("{") ? ve = ve + ((Q = (U = (C = (N = M == null ? void 0 : M.split("{")) == null ? void 0 : N[1]) == null ? void 0 : C.split("}")) == null ? void 0 : U[0]) == null ? void 0 : Q.replace(":", "/").replaceAll("'", "")) + "[" : ve = ve + ((pe = (q = (ie = (T = M == null ? void 0 : M.split("(")) == null ? void 0 : T[1]) == null ? void 0 : ie.split(")")) == null ? void 0 : q[0]) == null ? void 0 : pe.replace(":", "/").replaceAll("'", "")) + "[";
|
|
2744
|
-
const e = (
|
|
2744
|
+
const e = (ee = (se = M == null ? void 0 : M.replace("[", De)) == null ? void 0 : se.split(De)) == null ? void 0 : ee[1], n = e.lastIndexOf("]"), f = e.substring(0, n) + De + e.substring(n + 1);
|
|
2745
2745
|
ve = ve + ((D = f == null ? void 0 : f.split(De)) == null ? void 0 : D[0]) + "]";
|
|
2746
2746
|
} else
|
|
2747
|
-
ve = (p = (te = ($ =
|
|
2748
|
-
return
|
|
2747
|
+
ve = (p = (te = ($ = u == null ? void 0 : u.replace(":", De)) == null ? void 0 : $.split(De)) == null ? void 0 : te[1]) == null ? void 0 : p.replaceAll("'", "");
|
|
2748
|
+
return R[ue] = ve, {
|
|
2749
2749
|
groupName: "",
|
|
2750
|
-
formContents: [[
|
|
2750
|
+
formContents: [[R]]
|
|
2751
2751
|
};
|
|
2752
2752
|
} else {
|
|
2753
|
-
let
|
|
2754
|
-
if (
|
|
2755
|
-
ue = (b = (h =
|
|
2756
|
-
let M = (d = (
|
|
2757
|
-
M != null && M.includes("{") ? ve = ve + ((re = (fe = (K = (A = M == null ? void 0 : M.split("{")) == null ? void 0 : A[1]) == null ? void 0 : K.split("}")) == null ? void 0 : fe[0]) == null ? void 0 : re.replaceAll(":", "/").replaceAll("'", "")) + "[" : ve = ve + ((E = (I = (i = (ne = M == null ? void 0 : M.split("(")) == null ? void 0 : ne[1]) == null ? void 0 : i.split(")")) == null ? void 0 : I[0]) == null ? void 0 : E.replaceAll(":", "/").replaceAll("'", "")) + "[", ve = ve + ((
|
|
2753
|
+
let R = {}, ue = "", ve = "";
|
|
2754
|
+
if (u.includes("#")) {
|
|
2755
|
+
ue = (b = (h = u == null ? void 0 : u.split("#")) == null ? void 0 : h[0]) == null ? void 0 : b.replaceAll("'", "");
|
|
2756
|
+
let M = (d = (r = u == null ? void 0 : u.split("#")) == null ? void 0 : r[1]) == null ? void 0 : d.replaceAll("'", "");
|
|
2757
|
+
M != null && M.includes("{") ? ve = ve + ((re = (fe = (K = (A = M == null ? void 0 : M.split("{")) == null ? void 0 : A[1]) == null ? void 0 : K.split("}")) == null ? void 0 : fe[0]) == null ? void 0 : re.replaceAll(":", "/").replaceAll("'", "")) + "[" : ve = ve + ((E = (I = (i = (ne = M == null ? void 0 : M.split("(")) == null ? void 0 : ne[1]) == null ? void 0 : i.split(")")) == null ? void 0 : I[0]) == null ? void 0 : E.replaceAll(":", "/").replaceAll("'", "")) + "[", ve = ve + ((P = (Y = (v = M == null ? void 0 : M.split("[")) == null ? void 0 : v[1]) == null ? void 0 : Y.split("]")) == null ? void 0 : P[0]) + "]";
|
|
2758
2758
|
} else {
|
|
2759
|
-
let M = (y = (o = (W =
|
|
2759
|
+
let M = (y = (o = (W = u == null ? void 0 : u.split("]")) == null ? void 0 : W[0]) == null ? void 0 : o.split("[")) == null ? void 0 : y[1];
|
|
2760
2760
|
if ((F = M == null ? void 0 : M.split(":")) == null || F.forEach((e, n) => {
|
|
2761
2761
|
var f;
|
|
2762
2762
|
((f = M == null ? void 0 : M.split(":")) == null ? void 0 : f.length) - 1 === n && (ue = e == null ? void 0 : e.replaceAll("'", ""));
|
|
2763
|
-
}), !(
|
|
2764
|
-
ve = ((z = (oe = (de = (H =
|
|
2763
|
+
}), !(u != null && u.includes("[")))
|
|
2764
|
+
ve = ((z = (oe = (de = (H = u == null ? void 0 : u.split("]")) == null ? void 0 : H[1]) == null ? void 0 : de.replace(":", De).split(De)) == null ? void 0 : oe[1]) == null ? void 0 : z.replaceAll("'", "")) ?? "";
|
|
2765
2765
|
else {
|
|
2766
|
-
let e = (L = (t = (x = (g = (w = (S = l(
|
|
2766
|
+
let e = (L = (t = (x = (g = (w = (S = l(u)) == null ? void 0 : S.split("(")) == null ? void 0 : w[1]) == null ? void 0 : g.split(")")) == null ? void 0 : x[0]) == null ? void 0 : t.replaceAll("{", "").replaceAll("}", "")) == null ? void 0 : L.replaceAll("'", "").replaceAll(":", "/"), n = "";
|
|
2767
2767
|
(_e = M == null ? void 0 : M.split(":")) == null || _e.forEach((f) => {
|
|
2768
2768
|
n = n === "" ? n + (f == null ? void 0 : f.replaceAll("'", "")) : n + ":" + (f == null ? void 0 : f.replaceAll("'", ""));
|
|
2769
2769
|
}), ve = e + "[" + n + "]";
|
|
2770
2770
|
}
|
|
2771
2771
|
}
|
|
2772
|
-
return
|
|
2772
|
+
return R[ue] = ve, {
|
|
2773
2773
|
groupName: "",
|
|
2774
|
-
formContents: [[
|
|
2774
|
+
formContents: [[R]]
|
|
2775
2775
|
};
|
|
2776
2776
|
}
|
|
2777
|
-
}, hn = (
|
|
2778
|
-
let a =
|
|
2777
|
+
}, hn = (u) => (u == null ? void 0 : u[0]) === "[" && (u == null ? void 0 : u[u.length - 1]) === "]" && !(u != null && u.includes("{")), vn = (u, m) => {
|
|
2778
|
+
let a = u.length;
|
|
2779
2779
|
for (; a--; )
|
|
2780
|
-
if (
|
|
2781
|
-
return
|
|
2782
|
-
return
|
|
2783
|
-
}, mn = (
|
|
2780
|
+
if (u[a] === ")")
|
|
2781
|
+
return u.substring(0, a) + m + u.substring(a + 1);
|
|
2782
|
+
return u;
|
|
2783
|
+
}, mn = (u) => {
|
|
2784
2784
|
var O, N, C, U, Q;
|
|
2785
|
-
let m =
|
|
2785
|
+
let m = u.slice(1, u.length - 1), a;
|
|
2786
2786
|
(m == null ? void 0 : m[0]) === "[" ? a = (N = (O = ol(l(m))) == null ? void 0 : O.filter((T) => T !== ",")) == null ? void 0 : N.map((T) => T == null ? void 0 : T.slice(1, T.length - 1)) : (m = "[" + l(m) + "]", a = (U = (C = ol(l(m))) == null ? void 0 : C.filter((T) => T !== ",")) == null ? void 0 : U.map((T) => T == null ? void 0 : T.slice(1, T.length - 1))), a = (Q = l(a)) == null ? void 0 : Q.map((T) => {
|
|
2787
2787
|
var ie, q;
|
|
2788
2788
|
return T = (q = (ie = T.replace(")", De)) == null ? void 0 : ie.split(De)) == null ? void 0 : q[1], T;
|
|
2789
2789
|
});
|
|
2790
2790
|
let s = [], c = [];
|
|
2791
2791
|
return a == null || a.forEach((T) => {
|
|
2792
|
-
var pe, se,
|
|
2792
|
+
var pe, se, ee, D, $, te, p, h, b, r, d, A, K, fe, re, ne, i, I, E, v, Y, P, W, o, y, F, H, de, oe, z, S, w;
|
|
2793
2793
|
let ie = (se = (pe = l(T)) == null ? void 0 : pe.slice(1, l(T).length - 1)) == null ? void 0 : se.replace(":", De).split(De);
|
|
2794
|
-
if (((D = (
|
|
2794
|
+
if (((D = (ee = l(ie)) == null ? void 0 : ee[0]) == null ? void 0 : D.replaceAll("'", "")) === "输入") {
|
|
2795
2795
|
if (!((te = ($ = l(ie)) == null ? void 0 : $[1]) != null && te.includes("[")) && !((h = (p = l(ie)) == null ? void 0 : p[1]) != null && h.includes("("))) {
|
|
2796
|
-
nl((b = l(ie)) == null ? void 0 : b[1].replaceAll("'", '"')) && c.push(JSON.parse((
|
|
2796
|
+
nl((b = l(ie)) == null ? void 0 : b[1].replaceAll("'", '"')) && c.push(JSON.parse((r = l(ie)) == null ? void 0 : r[1].replaceAll("'", '"')));
|
|
2797
2797
|
return;
|
|
2798
2798
|
}
|
|
2799
2799
|
if (((A = (d = l(ie)) == null ? void 0 : d[1]) == null ? void 0 : A[0]) === "[") {
|
|
2800
2800
|
let g = (ne = (K = l(ie)) == null ? void 0 : K[1]) == null ? void 0 : ne.slice(1, ((re = (fe = l(ie)) == null ? void 0 : fe[1]) == null ? void 0 : re.length) - 1);
|
|
2801
2801
|
(I = (i = ol(g)) == null ? void 0 : i.filter((x) => x !== ",")) == null || I.forEach((x) => {
|
|
2802
2802
|
var ue, ve, M, e, n, f, k, _, J, X, V, G, ke, me, Ie, ge, le, Ce, be, xe, Ne, je;
|
|
2803
|
-
let t = {}, L = (M = (ve = l(x)) == null ? void 0 : ve.slice(1, ((ue = l(x)) == null ? void 0 : ue.length) - 1)) == null ? void 0 : M.replace(":", De).split(De), _e = (e = L == null ? void 0 : L[0]) == null ? void 0 : e.replaceAll("'", ""),
|
|
2804
|
-
(n = L == null ? void 0 : L[1]) != null && n.includes("(") ? (
|
|
2803
|
+
let t = {}, L = (M = (ve = l(x)) == null ? void 0 : ve.slice(1, ((ue = l(x)) == null ? void 0 : ue.length) - 1)) == null ? void 0 : M.replace(":", De).split(De), _e = (e = L == null ? void 0 : L[0]) == null ? void 0 : e.replaceAll("'", ""), R;
|
|
2804
|
+
(n = L == null ? void 0 : L[1]) != null && n.includes("(") ? (R = (me = (ke = (G = (V = (X = (J = (_ = (k = l(L)) == null ? void 0 : k[1]) == null ? void 0 : _.replaceAll("{", "")) == null ? void 0 : J.replaceAll("}", "")) == null ? void 0 : X.split("(")) == null ? void 0 : V[1]) == null ? void 0 : G.split(")")) == null ? void 0 : ke[0]) == null ? void 0 : me.replaceAll(":", "/").replaceAll("'", ""), (ge = (Ie = l(L)) == null ? void 0 : Ie[1]) != null && ge.includes("[") && (R = l(R) + "[" + ((je = (Ne = (xe = (be = (Ce = (le = l(L)) == null ? void 0 : le[1]) == null ? void 0 : Ce.split("[")) == null ? void 0 : be[1]) == null ? void 0 : xe.split("]")) == null ? void 0 : Ne[0]) == null ? void 0 : je.replaceAll("'", "")) + "]")) : R = (f = L == null ? void 0 : L[1]) == null ? void 0 : f.replaceAll("'", ""), t[_e] = R, c.push(t);
|
|
2805
2805
|
});
|
|
2806
2806
|
}
|
|
2807
2807
|
} else {
|
|
2808
|
-
if (!((v = (E = l(ie)) == null ? void 0 : E[1]) != null && v.includes("[")) && !((
|
|
2808
|
+
if (!((v = (E = l(ie)) == null ? void 0 : E[1]) != null && v.includes("[")) && !((P = (Y = l(ie)) == null ? void 0 : Y[1]) != null && P.includes("("))) {
|
|
2809
2809
|
nl((W = l(ie)) == null ? void 0 : W[1].replaceAll("'", '"')) && s.push(JSON.parse((o = l(ie)) == null ? void 0 : o[1].replaceAll("'", '"')));
|
|
2810
2810
|
return;
|
|
2811
2811
|
}
|
|
2812
2812
|
if (((F = (y = l(ie)) == null ? void 0 : y[1]) == null ? void 0 : F[0]) === "[") {
|
|
2813
2813
|
let g = (z = (H = l(ie)) == null ? void 0 : H[1]) == null ? void 0 : z.slice(1, ((oe = (de = l(ie)) == null ? void 0 : de[1]) == null ? void 0 : oe.length) - 1);
|
|
2814
2814
|
(w = (S = ol(g)) == null ? void 0 : S.filter((x) => x !== ",")) == null || w.forEach((x) => {
|
|
2815
|
-
var ue, ve, M, e, n, f, k, _, J, X, V, G, ke, me, Ie, ge, le, Ce, be, xe, Ne, je, j, Be, Oe, pl, ml,
|
|
2816
|
-
let t = {}, L = (M = (ve = l(x)) == null ? void 0 : ve.slice(1, ((ue = l(x)) == null ? void 0 : ue.length) - 1)) == null ? void 0 : M.replace(":", De).split(De), _e = (e = L == null ? void 0 : L[0]) == null ? void 0 : e.replaceAll("'", ""),
|
|
2815
|
+
var ue, ve, M, e, n, f, k, _, J, X, V, G, ke, me, Ie, ge, le, Ce, be, xe, Ne, je, j, Be, Oe, pl, ml, Ye, ul, rl, We, fl, Ze;
|
|
2816
|
+
let t = {}, L = (M = (ve = l(x)) == null ? void 0 : ve.slice(1, ((ue = l(x)) == null ? void 0 : ue.length) - 1)) == null ? void 0 : M.replace(":", De).split(De), _e = (e = L == null ? void 0 : L[0]) == null ? void 0 : e.replaceAll("'", ""), R;
|
|
2817
2817
|
if (!((n = L == null ? void 0 : L[1]) != null && n.includes("(")))
|
|
2818
|
-
|
|
2819
|
-
else if (
|
|
2820
|
-
|
|
2818
|
+
R = (f = L == null ? void 0 : L[1]) == null ? void 0 : f.replaceAll("'", "");
|
|
2819
|
+
else if (R = (G = (V = (X = (J = (_ = (k = l(L)) == null ? void 0 : k[1]) == null ? void 0 : _.replaceAll("{", "")) == null ? void 0 : J.replaceAll("}", "")) == null ? void 0 : X.replace("(", De)) == null ? void 0 : V.split(De)) == null ? void 0 : G[1], R = (me = (ke = vn(l(R), De)) == null ? void 0 : ke.split(De)) == null ? void 0 : me[0], !(R != null && R.includes("(")))
|
|
2820
|
+
R = (Ie = l(R)) == null ? void 0 : Ie.replaceAll(":", "/").replaceAll("'", ""), (le = (ge = l(L)) == null ? void 0 : ge[1]) != null && le.includes("[") && (R = l(R) + "[" + ((j = (je = (Ne = (xe = (be = (Ce = l(L)) == null ? void 0 : Ce[1]) == null ? void 0 : be.split("[")) == null ? void 0 : xe[1]) == null ? void 0 : Ne.split("]")) == null ? void 0 : je[0]) == null ? void 0 : j.replaceAll("'", "")) + "]");
|
|
2821
2821
|
else {
|
|
2822
|
-
let
|
|
2823
|
-
(Be = ea(
|
|
2822
|
+
let el = "";
|
|
2823
|
+
(Be = ea(R, ":")) == null || Be.forEach((Je) => {
|
|
2824
2824
|
var Dl, Al, Il, xl, El, $l, Bl, Tl, Sl, Fl, Ol, Ll, Pl, Rl, Ul;
|
|
2825
2825
|
if (!(Je != null && Je.includes("(")))
|
|
2826
|
-
|
|
2826
|
+
el = el === "" ? el + ((Dl = Je == null ? void 0 : Je.replaceAll(":", "")) == null ? void 0 : Dl.replaceAll("'", "")) : el + "/" + ((Al = Je == null ? void 0 : Je.replaceAll(":", "")) == null ? void 0 : Al.replaceAll("'", ""));
|
|
2827
2827
|
else {
|
|
2828
2828
|
let yl = (Fl = (Sl = (Tl = (Bl = ($l = (El = (xl = (Il = l(Je)) == null ? void 0 : Il.replaceAll("{", "")) == null ? void 0 : xl.replaceAll("}", "")) == null ? void 0 : El.replace("(", De)) == null ? void 0 : $l.split(De)) == null ? void 0 : Bl[1]) == null ? void 0 : Tl.split(")")) == null ? void 0 : Sl[0]) == null ? void 0 : Fl.replaceAll(":", "/").replaceAll("'", "");
|
|
2829
|
-
yl = yl + "[" + ((Ul = (Rl = (Pl = (Ll = (Ol = l(Je)) == null ? void 0 : Ol.split("[")) == null ? void 0 : Ll[1]) == null ? void 0 : Pl.split("]")) == null ? void 0 : Rl[0]) == null ? void 0 : Ul.replaceAll("'", "")) + "]",
|
|
2829
|
+
yl = yl + "[" + ((Ul = (Rl = (Pl = (Ll = (Ol = l(Je)) == null ? void 0 : Ol.split("[")) == null ? void 0 : Ll[1]) == null ? void 0 : Pl.split("]")) == null ? void 0 : Rl[0]) == null ? void 0 : Ul.replaceAll("'", "")) + "]", el = el === "" ? el + "[" + yl + "]" : el + "/[" + yl + "]";
|
|
2830
2830
|
}
|
|
2831
|
-
}),
|
|
2831
|
+
}), R = el + "[" + ((Ze = (fl = (We = (rl = (pl = (Oe = l(L)) == null ? void 0 : Oe[1]) == null ? void 0 : pl.split("[")) == null ? void 0 : rl[((ul = (Ye = (ml = l(L)) == null ? void 0 : ml[1]) == null ? void 0 : Ye.split("[")) == null ? void 0 : ul.length) - 1]) == null ? void 0 : We.split("]")) == null ? void 0 : fl[0]) == null ? void 0 : Ze.replaceAll("'", "")) + "]";
|
|
2832
2832
|
}
|
|
2833
|
-
t[_e] =
|
|
2833
|
+
t[_e] = R, s.push(t);
|
|
2834
2834
|
});
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
@@ -2838,12 +2838,12 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2838
2838
|
output: s,
|
|
2839
2839
|
input: c
|
|
2840
2840
|
};
|
|
2841
|
-
}, Ha = (
|
|
2842
|
-
var s, c, O, N, C, U, Q, T, ie, q, pe, se,
|
|
2841
|
+
}, Ha = (u) => {
|
|
2842
|
+
var s, c, O, N, C, U, Q, T, ie, q, pe, se, ee, D, $, te, p, h, b, r, d, A, K, fe, re, ne, i, I, E, v, Y, P, W, o, y, F, H, de, oe, z, S, w, g, x, t, L, _e, R, ue, ve;
|
|
2843
2843
|
let m = "";
|
|
2844
|
-
|
|
2845
|
-
let a =
|
|
2846
|
-
if ((tn(l(
|
|
2844
|
+
u = u.replace(/:([^=]*)==/g, ":");
|
|
2845
|
+
let a = u;
|
|
2846
|
+
if ((tn(l(u)) !== null || dn(l(u)) !== null) && (m = (c = (s = l(u).replace(":", De).split(De)) == null ? void 0 : s[0]) == null ? void 0 : c.replaceAll("'", ""), a = (O = l(u).replace(":", De).split(De)) == null ? void 0 : O[1]), la(l(a).slice(1, ((N = l(a)) == null ? void 0 : N.length) - 1)) || hn(l(a).slice(1, ((C = l(a)) == null ? void 0 : C.length) - 1)))
|
|
2847
2847
|
if (((Q = l(a).slice(1, ((U = l(a)) == null ? void 0 : U.length) - 1)) == null ? void 0 : Q[1]) !== "[") {
|
|
2848
2848
|
const M = Yl(l(a).slice(1, ((T = l(a)) == null ? void 0 : T.length) - 1));
|
|
2849
2849
|
return {
|
|
@@ -2865,7 +2865,7 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2865
2865
|
};
|
|
2866
2866
|
});
|
|
2867
2867
|
} else {
|
|
2868
|
-
const M = Yl(l(a).slice(1, ((
|
|
2868
|
+
const M = Yl(l(a).slice(1, ((ee = l(a)) == null ? void 0 : ee.length) - 1));
|
|
2869
2869
|
return {
|
|
2870
2870
|
groupName: m,
|
|
2871
2871
|
tableColumn: M == null ? void 0 : M.tableColumns,
|
|
@@ -2879,7 +2879,7 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2879
2879
|
M = JSON.parse(($ = a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : $.replaceAll("'", '"'));
|
|
2880
2880
|
else if (a.includes("(")) {
|
|
2881
2881
|
if ((a == null ? void 0 : a[0]) !== "{" && !((a == null ? void 0 : a[0]) === "[" && (a == null ? void 0 : a[1]) === "[")) {
|
|
2882
|
-
let e = (I = (i = (ne = (re = l(a)) == null ? void 0 : re.split("]")) == null ? void 0 : ne[0]) == null ? void 0 : i.split("[")) == null ? void 0 : I[1], n = "", k = ((o = (W = (
|
|
2882
|
+
let e = (I = (i = (ne = (re = l(a)) == null ? void 0 : re.split("]")) == null ? void 0 : ne[0]) == null ? void 0 : i.split("[")) == null ? void 0 : I[1], n = "", k = ((o = (W = (P = (Y = (v = (E = l(a)) == null ? void 0 : E.split(")")) == null ? void 0 : v[0]) == null ? void 0 : Y.split("(")) == null ? void 0 : P[1]) == null ? void 0 : W.replaceAll("[", "")) == null ? void 0 : o.replaceAll("]", "")).replaceAll("'", "").replaceAll(":", "/");
|
|
2883
2883
|
(y = k == null ? void 0 : k.split("/")) == null || y.forEach((J, X) => {
|
|
2884
2884
|
var V;
|
|
2885
2885
|
X !== ((V = k == null ? void 0 : k.split("/")) == null ? void 0 : V.length) - 1 && (n = n === "" ? n + J : n + "/" + J);
|
|
@@ -2901,7 +2901,7 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2901
2901
|
});
|
|
2902
2902
|
});
|
|
2903
2903
|
}), {
|
|
2904
|
-
groupName: (
|
|
2904
|
+
groupName: (R = n == null ? void 0 : n[0]) == null ? void 0 : R.groupName,
|
|
2905
2905
|
// formExtra?.groupName,
|
|
2906
2906
|
formContents: f
|
|
2907
2907
|
// formExtra?.formContents
|
|
@@ -2927,7 +2927,7 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2927
2927
|
}
|
|
2928
2928
|
} else if (a = "[[" + a + "]]", nl((te = a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : te.replaceAll("'", '"')))
|
|
2929
2929
|
M = JSON.parse((p = a.slice(1, (a == null ? void 0 : a.length) - 1)) == null ? void 0 : p.replaceAll("'", '"'));
|
|
2930
|
-
else if (a = a.slice(2, a.length - 2), ((
|
|
2930
|
+
else if (a = a.slice(2, a.length - 2), ((r = (b = (h = a == null ? void 0 : a.replace(":", De)) == null ? void 0 : h.split(De)) == null ? void 0 : b[1]) == null ? void 0 : r[0]) !== "{") {
|
|
2931
2931
|
a = ((A = (d = a == null ? void 0 : a.replace(":", De)) == null ? void 0 : d.split(De)) == null ? void 0 : A[0]) + ":{[" + ((fe = (K = a == null ? void 0 : a.replace(":", De)) == null ? void 0 : K.split(De)) == null ? void 0 : fe[1]) + "]}";
|
|
2932
2932
|
const e = Ha(a);
|
|
2933
2933
|
return e != null && e.tableColumn ? {
|
|
@@ -2944,19 +2944,19 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2944
2944
|
formContents: M
|
|
2945
2945
|
};
|
|
2946
2946
|
}
|
|
2947
|
-
}, aa = (
|
|
2947
|
+
}, aa = (u) => Ha(l(u).slice(1, l(u).length - 1)), zo = (u) => {
|
|
2948
2948
|
var a;
|
|
2949
2949
|
let m = [];
|
|
2950
|
-
if (!((
|
|
2951
|
-
let s = (a = ol(
|
|
2950
|
+
if (!((u == null ? void 0 : u[0]) === "[" && (u == null ? void 0 : u[1]) === "[")) {
|
|
2951
|
+
let s = (a = ol(u)) == null ? void 0 : a.filter((c) => c !== ",");
|
|
2952
2952
|
s == null || s.forEach((c) => {
|
|
2953
2953
|
m.push(aa(c));
|
|
2954
2954
|
});
|
|
2955
2955
|
}
|
|
2956
2956
|
return m;
|
|
2957
2957
|
}, yn = oa(Me), { routeToChildPath: Zl } = He(yn), bn = Na(Me), { activeMenuPath: La } = He(bn), gn = na(), { loginUserInfo: Pa } = He(gn), kn = async () => {
|
|
2958
|
-
var c, O, N, C, U, Q, T, ie, q, pe, se,
|
|
2959
|
-
let
|
|
2958
|
+
var c, O, N, C, U, Q, T, ie, q, pe, se, ee, D, $, te, p, h, b, r, d, A, K, fe, re, ne, i, I;
|
|
2959
|
+
let u = "";
|
|
2960
2960
|
const m = await bl({
|
|
2961
2961
|
key: {
|
|
2962
2962
|
type: "structure",
|
|
@@ -2964,26 +2964,33 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2964
2964
|
systemKey: sessionStorage.getItem("systemKey")
|
|
2965
2965
|
}
|
|
2966
2966
|
});
|
|
2967
|
-
((O = (c = m == null ? void 0 : m.data) == null ? void 0 : c.result) == null ? void 0 : O.length) > 0 && (
|
|
2967
|
+
((O = (c = m == null ? void 0 : m.data) == null ? void 0 : c.result) == null ? void 0 : O.length) > 0 && (u = (se = (pe = (q = (ie = (T = (Q = (U = (C = (N = m == null ? void 0 : m.data) == null ? void 0 : N.result) == null ? void 0 : C[0]) == null ? void 0 : U.value) == null ? void 0 : Q.pageData) == null ? void 0 : T.compData) == null ? void 0 : ie.find((E) => (E == null ? void 0 : E.key) === "header")) == null ? void 0 : q.contents) == null ? void 0 : pe[0]) == null ? void 0 : se.label);
|
|
2968
2968
|
const a = await bl({
|
|
2969
2969
|
key: {
|
|
2970
|
-
pageKey: (D = La.value) != null && D.includes(`loading${(
|
|
2970
|
+
pageKey: (D = La.value) != null && D.includes(`loading${(ee = Pa.value) == null ? void 0 : ee.account}`) ? l(Zl).value + `/loading${($ = Pa.value) == null ? void 0 : $.account}` : La.value,
|
|
2971
2971
|
systemKey: sessionStorage.getItem("systemKey")
|
|
2972
2972
|
}
|
|
2973
2973
|
});
|
|
2974
2974
|
let s = [];
|
|
2975
2975
|
if (((p = (te = a == null ? void 0 : a.data) == null ? void 0 : te.result) == null ? void 0 : p.length) > 0) {
|
|
2976
|
-
let E = (ne = (re = (fe = (K = (A = (d = (
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2976
|
+
let E = (ne = (re = (fe = (K = (A = (d = (r = (b = (h = a == null ? void 0 : a.data) == null ? void 0 : h.result) == null ? void 0 : b[0]) == null ? void 0 : r.value) == null ? void 0 : d.pageData) == null ? void 0 : A.compData) == null ? void 0 : K.find((v) => (v == null ? void 0 : v.key) === "formContent")) == null ? void 0 : fe.contents) == null ? void 0 : re.find((v) => {
|
|
2977
|
+
var Y, P;
|
|
2978
|
+
return (v == null ? void 0 : v.key) === u || ((P = (Y = v == null ? void 0 : v.optionUrl) == null ? void 0 : Y.groupSelect) == null ? void 0 : P[1]) === u;
|
|
2979
|
+
})) == null ? void 0 : ne.value;
|
|
2980
|
+
if ((I = (i = a == null ? void 0 : a.data) == null ? void 0 : i.result) == null || I.forEach((v) => {
|
|
2981
|
+
var P;
|
|
2982
|
+
let Y = (P = l(v)) == null ? void 0 : P.key;
|
|
2983
|
+
Y.pageKey = l(Zl).value + "/" + E, s.push({
|
|
2981
2984
|
id: v == null ? void 0 : v.id,
|
|
2982
|
-
key:
|
|
2985
|
+
key: Y
|
|
2983
2986
|
});
|
|
2984
|
-
}),
|
|
2987
|
+
}), E === "") {
|
|
2988
|
+
Xe.error(`保存失败,${u}的必填字段没有填写`);
|
|
2989
|
+
return;
|
|
2990
|
+
}
|
|
2991
|
+
await ja({
|
|
2985
2992
|
dataList: s
|
|
2986
|
-
}),
|
|
2993
|
+
}), Xe.success("保存成功");
|
|
2987
2994
|
}
|
|
2988
2995
|
}, _n = { class: "method-content" }, Cn = {
|
|
2989
2996
|
__name: "index",
|
|
@@ -3003,8 +3010,8 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3003
3010
|
}
|
|
3004
3011
|
}
|
|
3005
3012
|
},
|
|
3006
|
-
setup(
|
|
3007
|
-
const m =
|
|
3013
|
+
setup(u) {
|
|
3014
|
+
const m = Z([]), a = u, s = oa(Me), c = Z(!1), O = Na(Me), N = na(Me), { itemData: C, isEdit: U, routeToChildPath: Q } = He(s), { activeMenuPath: T, platform: ie } = He(O), { loginUserInfo: q } = He(N), pe = Z(!1), se = (d, A) => {
|
|
3008
3015
|
const K = A;
|
|
3009
3016
|
return d == null ? void 0 : d.map((fe) => {
|
|
3010
3017
|
var re;
|
|
@@ -3016,13 +3023,13 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3016
3023
|
};
|
|
3017
3024
|
})) == null ? void 0 : re.filter((ne) => ne.key !== "操作"), fe;
|
|
3018
3025
|
});
|
|
3019
|
-
},
|
|
3026
|
+
}, ee = async () => {
|
|
3020
3027
|
await kn();
|
|
3021
3028
|
};
|
|
3022
3029
|
Ke(
|
|
3023
3030
|
() => C.value,
|
|
3024
3031
|
async () => {
|
|
3025
|
-
U.value === "view" && !pe.value && await
|
|
3032
|
+
U.value === "view" && !pe.value && await r(l(a.itemData)), pe.value = !1;
|
|
3026
3033
|
},
|
|
3027
3034
|
{ deep: !0 }
|
|
3028
3035
|
);
|
|
@@ -3037,28 +3044,28 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3037
3044
|
d = ms(d, A);
|
|
3038
3045
|
return d;
|
|
3039
3046
|
}, $ = (d, A) => {
|
|
3040
|
-
var fe, re, ne, i, I, E, v,
|
|
3041
|
-
let K = (fe = l(A)) == null ? void 0 : fe.filter((
|
|
3047
|
+
var fe, re, ne, i, I, E, v, Y;
|
|
3048
|
+
let K = (fe = l(A)) == null ? void 0 : fe.filter((P) => (P == null ? void 0 : P.comp) !== "methodButton");
|
|
3042
3049
|
if (d != null && d.includes("[")) {
|
|
3043
|
-
let
|
|
3044
|
-
if (
|
|
3045
|
-
let o = (v = K == null ? void 0 : K.find((y) => (y == null ? void 0 : y.name) === (
|
|
3050
|
+
let P = (E = (I = (i = (ne = (re = l(d)) == null ? void 0 : re.split("[")) == null ? void 0 : ne[1]) == null ? void 0 : i.split("]")) == null ? void 0 : I[0]) == null ? void 0 : E.split(":"), W = "";
|
|
3051
|
+
if (P != null && P[0]) {
|
|
3052
|
+
let o = (v = K == null ? void 0 : K.find((y) => (y == null ? void 0 : y.name) === (P == null ? void 0 : P[0]))) == null ? void 0 : v.compData;
|
|
3046
3053
|
o == null || o.forEach((y) => {
|
|
3047
3054
|
var F;
|
|
3048
3055
|
(y == null ? void 0 : y.key) === "formContent" && ((F = y == null ? void 0 : y.contents) == null || F.forEach((H) => {
|
|
3049
|
-
(H == null ? void 0 : H.key) === (
|
|
3056
|
+
(H == null ? void 0 : H.key) === (P == null ? void 0 : P[1]) && (W = H == null ? void 0 : H.value);
|
|
3050
3057
|
}));
|
|
3051
3058
|
});
|
|
3052
3059
|
}
|
|
3053
3060
|
return W;
|
|
3054
3061
|
} else if (d != null && d.includes("/")) {
|
|
3055
|
-
let
|
|
3056
|
-
return (
|
|
3057
|
-
var y, F, H, de, oe, z, S, w, g, x, t, L, _e,
|
|
3062
|
+
let P = {};
|
|
3063
|
+
return (Y = l(K)) == null || Y.forEach((W, o) => {
|
|
3064
|
+
var y, F, H, de, oe, z, S, w, g, x, t, L, _e, R, ue, ve, M, e, n;
|
|
3058
3065
|
if ((W == null ? void 0 : W.comp) === "Table") {
|
|
3059
|
-
let f = Array.isArray((H = (F = (y = W == null ? void 0 : W.compData) == null ? void 0 : y.find((X) => (X == null ? void 0 : X.key) === "header")) == null ? void 0 : F.contents) == null ? void 0 : H[0]) ? (S = (z = (oe = (de = W == null ? void 0 : W.compData) == null ? void 0 : de.find((X) => (X == null ? void 0 : X.key) === "header")) == null ? void 0 : oe.contents) == null ? void 0 : z[0]) == null ? void 0 : S.some((X) => X == null ? void 0 : X.children) : [], k = (x = (g = (w = W == null ? void 0 : W.compData) == null ? void 0 : w.find((X) => (X == null ? void 0 : X.key) === "tableContents")) == null ? void 0 : g.contents) == null ? void 0 : x.map((X) => X.slice(1)), _ = (ue = (
|
|
3066
|
+
let f = Array.isArray((H = (F = (y = W == null ? void 0 : W.compData) == null ? void 0 : y.find((X) => (X == null ? void 0 : X.key) === "header")) == null ? void 0 : F.contents) == null ? void 0 : H[0]) ? (S = (z = (oe = (de = W == null ? void 0 : W.compData) == null ? void 0 : de.find((X) => (X == null ? void 0 : X.key) === "header")) == null ? void 0 : oe.contents) == null ? void 0 : z[0]) == null ? void 0 : S.some((X) => X == null ? void 0 : X.children) : [], k = (x = (g = (w = W == null ? void 0 : W.compData) == null ? void 0 : w.find((X) => (X == null ? void 0 : X.key) === "tableContents")) == null ? void 0 : g.contents) == null ? void 0 : x.map((X) => X.slice(1)), _ = (ue = (R = (_e = (L = (t = W == null ? void 0 : W.compData) == null ? void 0 : t.find((X) => (X == null ? void 0 : X.key) === "header")) == null ? void 0 : L.contents) == null ? void 0 : _e[0]) == null ? void 0 : R[0]) == null ? void 0 : ue.label, J = (M = (ve = W == null ? void 0 : W.compData) == null ? void 0 : ve.find((X) => (X == null ? void 0 : X.key) === "header")) == null ? void 0 : M.contents;
|
|
3060
3067
|
if (f)
|
|
3061
|
-
(f == null ? void 0 : f.length) === 0 ?
|
|
3068
|
+
(f == null ? void 0 : f.length) === 0 ? P[W.name] = se(k, J) : P[_] = se(k, J);
|
|
3062
3069
|
else {
|
|
3063
3070
|
const X = [];
|
|
3064
3071
|
J = J.slice(1, J.length - 1), J == null || J.forEach((V, G) => {
|
|
@@ -3068,20 +3075,20 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3068
3075
|
value: ke[G + 1]
|
|
3069
3076
|
});
|
|
3070
3077
|
});
|
|
3071
|
-
}),
|
|
3078
|
+
}), P["form" + o] = X;
|
|
3072
3079
|
}
|
|
3073
3080
|
} else {
|
|
3074
3081
|
const f = (n = (e = W.compData) == null ? void 0 : e.find((_) => (_ == null ? void 0 : _.key) === "formContent")) == null ? void 0 : n.contents;
|
|
3075
|
-
|
|
3082
|
+
P != null && P.form || (P.form = []);
|
|
3076
3083
|
const k = [];
|
|
3077
3084
|
f == null || f.forEach((_) => {
|
|
3078
3085
|
_.key !== "" && (_ = {
|
|
3079
3086
|
key: (_ == null ? void 0 : _.key) ?? (_ == null ? void 0 : _.label),
|
|
3080
3087
|
value: _ == null ? void 0 : _.value
|
|
3081
3088
|
}, k.push(_));
|
|
3082
|
-
}),
|
|
3089
|
+
}), P.form = [...k, ...l(P == null ? void 0 : P.form)];
|
|
3083
3090
|
}
|
|
3084
|
-
}),
|
|
3091
|
+
}), P;
|
|
3085
3092
|
} else
|
|
3086
3093
|
return d;
|
|
3087
3094
|
}, te = async (d, A, K) => {
|
|
@@ -3097,7 +3104,7 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3097
3104
|
[o[K[1]]]: o
|
|
3098
3105
|
});
|
|
3099
3106
|
});
|
|
3100
|
-
let v = [],
|
|
3107
|
+
let v = [], Y = I == null ? void 0 : I.map((o) => {
|
|
3101
3108
|
var y;
|
|
3102
3109
|
return (y = Object.keys(o)) == null ? void 0 : y[0];
|
|
3103
3110
|
});
|
|
@@ -3106,17 +3113,17 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3106
3113
|
(o == null ? void 0 : o.name) === (K == null ? void 0 : K[0]) && ((y = o == null ? void 0 : o.compData) == null || y.forEach((F) => {
|
|
3107
3114
|
var H;
|
|
3108
3115
|
(F == null ? void 0 : F.key) === "tableContents" && ((H = F == null ? void 0 : F.contents) == null || H.forEach((de) => {
|
|
3109
|
-
de != null && de.some((oe) =>
|
|
3110
|
-
[de.find((oe) => oe.id).id]: de.find((oe) =>
|
|
3116
|
+
de != null && de.some((oe) => Y.includes(oe)) && v.push({
|
|
3117
|
+
[de.find((oe) => oe.id).id]: de.find((oe) => Y.includes(oe))
|
|
3111
3118
|
});
|
|
3112
3119
|
}));
|
|
3113
3120
|
}));
|
|
3114
3121
|
});
|
|
3115
|
-
let
|
|
3122
|
+
let P = v == null ? void 0 : v.map((o) => {
|
|
3116
3123
|
var y;
|
|
3117
3124
|
return (y = Object.keys(o)) == null ? void 0 : y[0];
|
|
3118
3125
|
}), W = [];
|
|
3119
|
-
|
|
3126
|
+
P == null || P.forEach((o) => {
|
|
3120
3127
|
var H;
|
|
3121
3128
|
let y = (H = v == null ? void 0 : v.find((de) => {
|
|
3122
3129
|
var oe;
|
|
@@ -3136,7 +3143,7 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3136
3143
|
});
|
|
3137
3144
|
}
|
|
3138
3145
|
}, p = async (d, A, K) => {
|
|
3139
|
-
var ne, i, I, E, v,
|
|
3146
|
+
var ne, i, I, E, v, Y, P, W, o;
|
|
3140
3147
|
let fe = await vl(A, sessionStorage.getItem("systemKey"), ""), re = fe == null ? void 0 : fe.find((y) => (y == null ? void 0 : y.name) === (K == null ? void 0 : K[0]));
|
|
3141
3148
|
if (re) {
|
|
3142
3149
|
if ((re == null ? void 0 : re.comp) === "Table") {
|
|
@@ -3168,9 +3175,9 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3168
3175
|
g != null && g.includes("(") && de.push(g);
|
|
3169
3176
|
}), de = [...new Set(de)];
|
|
3170
3177
|
const oe = de == null ? void 0 : de.map(async (g) => {
|
|
3171
|
-
var
|
|
3178
|
+
var R, ue, ve, M, e, n, f, k, _, J, X, V;
|
|
3172
3179
|
let x = "";
|
|
3173
|
-
(n = (e = (M = (ve = (ue = (
|
|
3180
|
+
(n = (e = (M = (ve = (ue = (R = l(g)) == null ? void 0 : R.split("(")) == null ? void 0 : ue[1]) == null ? void 0 : ve.split(")")) == null ? void 0 : M[0]) == null ? void 0 : e.split(":")) == null || n.forEach((G) => {
|
|
3174
3181
|
x = x === "" ? x + G.replaceAll("'", "") : x + "/" + G.replaceAll("'", "");
|
|
3175
3182
|
});
|
|
3176
3183
|
let t = [];
|
|
@@ -3191,14 +3198,14 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3191
3198
|
[g]: _e
|
|
3192
3199
|
};
|
|
3193
3200
|
}), z = await Promise.all(oe);
|
|
3194
|
-
y.compData = (
|
|
3201
|
+
y.compData = (Y = (v = l(y)) == null ? void 0 : v.compData) == null ? void 0 : Y.map((g) => {
|
|
3195
3202
|
var x, t;
|
|
3196
3203
|
return (g == null ? void 0 : g.key) === "formContent" && (g.contents = (t = (x = l(g)) == null ? void 0 : x.contents) == null ? void 0 : t.map((L) => {
|
|
3197
|
-
var _e,
|
|
3198
|
-
return (_e = d[H]) != null && _e[L == null ? void 0 : L.key] && (d[H][L == null ? void 0 : L.key].includes("(") ? L.value = (
|
|
3204
|
+
var _e, R, ue, ve;
|
|
3205
|
+
return (_e = d[H]) != null && _e[L == null ? void 0 : L.key] && (d[H][L == null ? void 0 : L.key].includes("(") ? L.value = (R = z == null ? void 0 : z.find((M) => {
|
|
3199
3206
|
var e;
|
|
3200
3207
|
return ((e = Object.keys(M)) == null ? void 0 : e[0]) === d[H][L == null ? void 0 : L.key];
|
|
3201
|
-
})) == null ? void 0 :
|
|
3208
|
+
})) == null ? void 0 : R[d[H][L == null ? void 0 : L.key]] : L.value = (ve = (ue = l(d)) == null ? void 0 : ue[H]) == null ? void 0 : ve[L == null ? void 0 : L.key]), L;
|
|
3202
3209
|
})), g;
|
|
3203
3210
|
});
|
|
3204
3211
|
const S = await bl({
|
|
@@ -3209,7 +3216,7 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3209
3216
|
}
|
|
3210
3217
|
});
|
|
3211
3218
|
let w = "";
|
|
3212
|
-
((
|
|
3219
|
+
((P = S == null ? void 0 : S.data) == null ? void 0 : P.type) === "success" && ((o = (W = S == null ? void 0 : S.data) == null ? void 0 : W.result) == null || o.forEach((g) => {
|
|
3213
3220
|
var x, t;
|
|
3214
3221
|
((t = (x = g == null ? void 0 : g.value) == null ? void 0 : x.pageData) == null ? void 0 : t.name) === (K == null ? void 0 : K[0]) && (w = g.id);
|
|
3215
3222
|
}), await $a({
|
|
@@ -3221,13 +3228,13 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3221
3228
|
}
|
|
3222
3229
|
}
|
|
3223
3230
|
}, h = async (d, A, K) => {
|
|
3224
|
-
var ne, i, I, E, v,
|
|
3225
|
-
let fe = await vl(A, sessionStorage.getItem("systemKey"), ""), re = fe == null ? void 0 : fe.find((
|
|
3231
|
+
var ne, i, I, E, v, Y;
|
|
3232
|
+
let fe = await vl(A, sessionStorage.getItem("systemKey"), ""), re = fe == null ? void 0 : fe.find((P) => (P == null ? void 0 : P.name) === (K == null ? void 0 : K[0]));
|
|
3226
3233
|
if (re) {
|
|
3227
3234
|
if (!(K != null && K[1]) && (re == null ? void 0 : re.comp) === "Table") {
|
|
3228
|
-
let
|
|
3235
|
+
let P = {};
|
|
3229
3236
|
for (let W in l(d))
|
|
3230
|
-
l(d)[W] !== "loginUser" ?
|
|
3237
|
+
l(d)[W] !== "loginUser" ? P[W] = l(d)[W] : P[W] = (ne = q.value) == null ? void 0 : ne.account;
|
|
3231
3238
|
await Ea({
|
|
3232
3239
|
key: {
|
|
3233
3240
|
type: "data",
|
|
@@ -3236,12 +3243,12 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3236
3243
|
systemKey: sessionStorage.getItem("systemKey")
|
|
3237
3244
|
},
|
|
3238
3245
|
value: {
|
|
3239
|
-
tableData:
|
|
3246
|
+
tableData: P
|
|
3240
3247
|
}
|
|
3241
3248
|
});
|
|
3242
3249
|
} else if (!(K != null && K[1]) && (re == null ? void 0 : re.comp) === "Form") {
|
|
3243
|
-
let
|
|
3244
|
-
|
|
3250
|
+
let P = l(re);
|
|
3251
|
+
P.compData = (I = (i = l(P)) == null ? void 0 : i.compData) == null ? void 0 : I.map((y) => {
|
|
3245
3252
|
var F, H;
|
|
3246
3253
|
return (y == null ? void 0 : y.key) === "formContent" && (y.contents = (H = (F = l(y)) == null ? void 0 : F.contents) == null ? void 0 : H.map((de) => {
|
|
3247
3254
|
var oe, z;
|
|
@@ -3256,27 +3263,27 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3256
3263
|
}
|
|
3257
3264
|
});
|
|
3258
3265
|
let o = "";
|
|
3259
|
-
((E = W == null ? void 0 : W.data) == null ? void 0 : E.type) === "success" && ((
|
|
3266
|
+
((E = W == null ? void 0 : W.data) == null ? void 0 : E.type) === "success" && ((Y = (v = W == null ? void 0 : W.data) == null ? void 0 : v.result) == null || Y.forEach((y) => {
|
|
3260
3267
|
var F, H;
|
|
3261
3268
|
((H = (F = y == null ? void 0 : y.value) == null ? void 0 : F.pageData) == null ? void 0 : H.name) === (K == null ? void 0 : K[0]) && (o = y.id);
|
|
3262
3269
|
}), await $a({
|
|
3263
3270
|
id: o,
|
|
3264
3271
|
value: {
|
|
3265
|
-
pageData:
|
|
3272
|
+
pageData: P
|
|
3266
3273
|
}
|
|
3267
3274
|
}));
|
|
3268
3275
|
}
|
|
3269
3276
|
}
|
|
3270
3277
|
}, b = async (d) => {
|
|
3271
|
-
var K, fe, re, ne, i, I, E, v,
|
|
3278
|
+
var K, fe, re, ne, i, I, E, v, Y, P, W, o, y, F, H, de, oe, z;
|
|
3272
3279
|
let A = {};
|
|
3273
3280
|
if (ie.value !== "browser") {
|
|
3274
3281
|
const S = [];
|
|
3275
3282
|
A.form = {}, (K = l(d.content)) == null || K.forEach((g, x) => {
|
|
3276
|
-
var t, L, _e,
|
|
3283
|
+
var t, L, _e, R, ue, ve, M, e, n, f, k, _, J, X;
|
|
3277
3284
|
if ((g == null ? void 0 : g.comp) === "Table") {
|
|
3278
3285
|
(L = (t = g == null ? void 0 : g.compData) == null ? void 0 : t.find((me) => (me == null ? void 0 : me.key) === "header")) == null || L.contents;
|
|
3279
|
-
let V = (ue = (
|
|
3286
|
+
let V = (ue = (R = (_e = g == null ? void 0 : g.compData) == null ? void 0 : _e.find((me) => (me == null ? void 0 : me.key) === "tableContents")) == null ? void 0 : R.contents) == null ? void 0 : ue.map((me) => me.slice(1));
|
|
3280
3287
|
(f = (n = (e = (M = (ve = g == null ? void 0 : g.compData) == null ? void 0 : ve.find((me) => (me == null ? void 0 : me.key) === "header")) == null ? void 0 : M.contents) == null ? void 0 : e[0]) == null ? void 0 : n[0]) == null || f.label;
|
|
3281
3288
|
let G = (_ = (k = g == null ? void 0 : g.compData) == null ? void 0 : k.find((me) => (me == null ? void 0 : me.key) === "header")) == null ? void 0 : _.contents, ke = [];
|
|
3282
3289
|
V == null || V.forEach((me) => {
|
|
@@ -3320,25 +3327,25 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3320
3327
|
);
|
|
3321
3328
|
await Promise.all(L);
|
|
3322
3329
|
const _e = (I = l(C.value)) == null ? void 0 : I.filter((ue) => (ue == null ? void 0 : ue.comp) === "methodButton");
|
|
3323
|
-
let
|
|
3324
|
-
await ps(
|
|
3330
|
+
let R = [...L, ..._e];
|
|
3331
|
+
await ps(R), c.value = !1;
|
|
3325
3332
|
} else
|
|
3326
|
-
|
|
3333
|
+
Xe.error("方法调用失败:" + ((E = g == null ? void 0 : g.data) == null ? void 0 : E.errors)), c.value = !1;
|
|
3327
3334
|
} catch {
|
|
3328
|
-
|
|
3335
|
+
Xe.error("方法调用失败"), c.value = !1;
|
|
3329
3336
|
}
|
|
3330
3337
|
s.setFreshContent(!0);
|
|
3331
3338
|
}
|
|
3332
3339
|
} else if (d.api) {
|
|
3333
3340
|
let S = await vl(T.value, sessionStorage.getItem("systemKey"), ""), w = {};
|
|
3334
|
-
(
|
|
3341
|
+
(Y = (v = d == null ? void 0 : d.extraValues) == null ? void 0 : v.input) == null || Y.forEach((R) => {
|
|
3335
3342
|
var ue;
|
|
3336
|
-
w[Object.keys(
|
|
3343
|
+
w[Object.keys(R)[0]] = $((ue = Object.values(R)) == null ? void 0 : ue[0], S);
|
|
3337
3344
|
});
|
|
3338
3345
|
let g = !1;
|
|
3339
|
-
(W = (
|
|
3346
|
+
(W = (P = d == null ? void 0 : d.extraValues) == null ? void 0 : P.output) == null || W.forEach((R) => {
|
|
3340
3347
|
var ue, ve;
|
|
3341
|
-
(ve = (ue = Object.values(
|
|
3348
|
+
(ve = (ue = Object.values(R)) == null ? void 0 : ue[0]) != null && ve.includes(".doc") && (g = !0);
|
|
3342
3349
|
});
|
|
3343
3350
|
let x;
|
|
3344
3351
|
g ? x = await Ml.post(d.api, w, {
|
|
@@ -3352,12 +3359,12 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3352
3359
|
"Content-Type": "application/json"
|
|
3353
3360
|
}
|
|
3354
3361
|
});
|
|
3355
|
-
let t = (H = (F = (y = (o = l(d)) == null ? void 0 : o.extraValues) == null ? void 0 : y.output) == null ? void 0 : F.map((
|
|
3362
|
+
let t = (H = (F = (y = (o = l(d)) == null ? void 0 : o.extraValues) == null ? void 0 : y.output) == null ? void 0 : F.map((R) => {
|
|
3356
3363
|
var ue, ve, M, e, n, f, k, _, J, X, V, G, ke, me, Ie;
|
|
3357
|
-
if (!((ve = (ue = Object.values(
|
|
3358
|
-
let ge = (X = (J = (_ = (e = l((M = Object.values(
|
|
3364
|
+
if (!((ve = (ue = Object.values(R)) == null ? void 0 : ue[0]) != null && ve.includes(".doc"))) {
|
|
3365
|
+
let ge = (X = (J = (_ = (e = l((M = Object.values(R)) == null ? void 0 : M[0])) == null ? void 0 : e.split("[")) == null ? void 0 : _[((k = (f = l((n = Object.values(R)) == null ? void 0 : n[0])) == null ? void 0 : f.split("[")) == null ? void 0 : k.length) - 1]) == null ? void 0 : J.split("]")) == null ? void 0 : X[0];
|
|
3359
3366
|
ge == null || ge.split(":");
|
|
3360
|
-
let le = l((V = Object.values(
|
|
3367
|
+
let le = l((V = Object.values(R)) == null ? void 0 : V[0]).substring(0, l((G = Object.values(R)) == null ? void 0 : G[0]).lastIndexOf("["));
|
|
3361
3368
|
if (le = (me = l(le)) == null ? void 0 : me.slice(0, ((ke = l(le)) == null ? void 0 : ke.length) - 1), le != null && le.includes("[")) {
|
|
3362
3369
|
let Ce = "";
|
|
3363
3370
|
if ((Ie = ea(le, "/")) == null || Ie.forEach((be) => {
|
|
@@ -3365,11 +3372,11 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3365
3372
|
if (!(be != null && be.includes("[")))
|
|
3366
3373
|
Ce = Ce === "" ? Ce + be.replaceAll("/", "") : Ce + "/" + be.replaceAll("/", "");
|
|
3367
3374
|
else {
|
|
3368
|
-
let ml = l(be).slice(1, ((xe = l(be)) == null ? void 0 : xe.length) - 1),
|
|
3375
|
+
let ml = l(be).slice(1, ((xe = l(be)) == null ? void 0 : xe.length) - 1), Ye = (Oe = (Be = (j = (je = (Ne = l(ml)) == null ? void 0 : Ne.split("[")) == null ? void 0 : je[1]) == null ? void 0 : j.split("]")) == null ? void 0 : Be[0]) == null ? void 0 : Oe.split(":"), ul = "", rl = (pl = S == null ? void 0 : S.find((We) => (We == null ? void 0 : We.name) === (Ye == null ? void 0 : Ye[0]))) == null ? void 0 : pl.compData;
|
|
3369
3376
|
rl == null || rl.forEach((We) => {
|
|
3370
3377
|
var fl;
|
|
3371
|
-
(We == null ? void 0 : We.key) === "formContent" && ((fl = We == null ? void 0 : We.contents) == null || fl.forEach((
|
|
3372
|
-
(
|
|
3378
|
+
(We == null ? void 0 : We.key) === "formContent" && ((fl = We == null ? void 0 : We.contents) == null || fl.forEach((Ze) => {
|
|
3379
|
+
(Ze == null ? void 0 : Ze.key) === (Ye == null ? void 0 : Ye[1]) && (ul = Ze == null ? void 0 : Ze.value);
|
|
3373
3380
|
}));
|
|
3374
3381
|
}), Ce = Ce === "" ? Ce + ul.replaceAll("/", "") : Ce + "/" + ul.replaceAll("/", "");
|
|
3375
3382
|
}
|
|
@@ -3377,31 +3384,31 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3377
3384
|
return le;
|
|
3378
3385
|
}
|
|
3379
3386
|
}
|
|
3380
|
-
})) == null ? void 0 : H.filter((
|
|
3387
|
+
})) == null ? void 0 : H.filter((R) => R);
|
|
3381
3388
|
t = [...new Set(l(t))];
|
|
3382
|
-
let L = t == null ? void 0 : t.map(async (
|
|
3383
|
-
let ue = await vl(
|
|
3389
|
+
let L = t == null ? void 0 : t.map(async (R) => {
|
|
3390
|
+
let ue = await vl(R, sessionStorage.getItem("systemKey"), "");
|
|
3384
3391
|
if ((ue == null ? void 0 : ue.length) === 0)
|
|
3385
|
-
return await fs(
|
|
3392
|
+
return await fs(R);
|
|
3386
3393
|
});
|
|
3387
3394
|
await Promise.all(L);
|
|
3388
|
-
let _e = (z = (oe = (de = l(d)) == null ? void 0 : de.extraValues) == null ? void 0 : oe.output) == null ? void 0 : z.map(async (
|
|
3389
|
-
var J, X, V, G, ke, me, Ie, ge, le, Ce, be, xe, Ne, je, j, Be, Oe, pl, ml,
|
|
3390
|
-
if ((X = (J = Object.values(
|
|
3395
|
+
let _e = (z = (oe = (de = l(d)) == null ? void 0 : de.extraValues) == null ? void 0 : oe.output) == null ? void 0 : z.map(async (R) => {
|
|
3396
|
+
var J, X, V, G, ke, me, Ie, ge, le, Ce, be, xe, Ne, je, j, Be, Oe, pl, ml, Ye, ul, rl, We, fl, Ze, el, Je, Dl, Al, Il, xl, El, $l, Bl, Tl, Sl, Fl, Ol, Ll, Pl, Rl, Ul, yl, ra, ca, ta, da, pa, fa, ha, va, ma, ya, ba, ga, ka, _a, Ca, wa, Da;
|
|
3397
|
+
if ((X = (J = Object.values(R)) == null ? void 0 : J[0]) != null && X.includes(".doc")) {
|
|
3391
3398
|
var ue = new Blob([x.data], {
|
|
3392
3399
|
type: "application/octet-stream;charset=UTF-8"
|
|
3393
3400
|
}), ve = x.headers["content-disposition"], M = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), e = M.exec(ve), n = ((ke = (G = (V = d == null ? void 0 : d.extraContent) == null ? void 0 : V[0]) == null ? void 0 : G.split(".")) == null ? void 0 : ke[0]) + "." + ((me = e == null ? void 0 : e[1].split(".")) == null ? void 0 : me[1]), f = document.createElement("a"), k = window.URL.createObjectURL(ue), _ = /^["](.*)["]$/g;
|
|
3394
3401
|
f.style.display = "none", f.href = k, f.download = decodeURI(n.replace(_, "$1")), document.body.appendChild(f), f.click(), document.body.removeChild(f), window.URL.revokeObjectURL(k);
|
|
3395
3402
|
} else {
|
|
3396
|
-
let Hl = (je = (Ne = (xe = (ge = l((Ie = Object.values(
|
|
3403
|
+
let Hl = (je = (Ne = (xe = (ge = l((Ie = Object.values(R)) == null ? void 0 : Ie[0])) == null ? void 0 : ge.split("[")) == null ? void 0 : xe[((be = (Ce = l((le = Object.values(R)) == null ? void 0 : le[0])) == null ? void 0 : Ce.split("[")) == null ? void 0 : be.length) - 1]) == null ? void 0 : Ne.split("]")) == null ? void 0 : je[0], Ee = Hl == null ? void 0 : Hl.split(":"), al = l((j = Object.values(R)) == null ? void 0 : j[0]).substring(0, l((Be = Object.values(R)) == null ? void 0 : Be[0]).lastIndexOf("["));
|
|
3397
3404
|
if (al.includes("[") && (al = (pl = l(al)) == null ? void 0 : pl.slice(0, ((Oe = l(al)) == null ? void 0 : Oe.length) - 1)), al != null && al.includes("[")) {
|
|
3398
3405
|
let Le = "";
|
|
3399
3406
|
(ml = ea(al, "/")) == null || ml.forEach((Re) => {
|
|
3400
|
-
var jl, qe,
|
|
3407
|
+
var jl, qe, ll, hl, Nl, Aa, Ia;
|
|
3401
3408
|
if (!(Re != null && Re.includes("[")))
|
|
3402
3409
|
Le = Le === "" ? Le + Re.replaceAll("/", "") : Le + "/" + Re.replaceAll("/", "");
|
|
3403
3410
|
else {
|
|
3404
|
-
let qa = l(Re).slice(1, ((jl = l(Re)) == null ? void 0 : jl.length) - 1), _l = (Aa = (Nl = (hl = (
|
|
3411
|
+
let qa = l(Re).slice(1, ((jl = l(Re)) == null ? void 0 : jl.length) - 1), _l = (Aa = (Nl = (hl = (ll = (qe = l(qa)) == null ? void 0 : qe.split("[")) == null ? void 0 : ll[1]) == null ? void 0 : hl.split("]")) == null ? void 0 : Nl[0]) == null ? void 0 : Aa.split(":"), ql = "", Ql = (Ia = S == null ? void 0 : S.find((sl) => (sl == null ? void 0 : sl.name) === (_l == null ? void 0 : _l[0]))) == null ? void 0 : Ia.compData;
|
|
3405
3412
|
Ql == null || Ql.forEach((sl) => {
|
|
3406
3413
|
var xa;
|
|
3407
3414
|
(sl == null ? void 0 : sl.key) === "formContent" && ((xa = sl == null ? void 0 : sl.contents) == null || xa.forEach((Cl) => {
|
|
@@ -3411,17 +3418,17 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3411
3418
|
}
|
|
3412
3419
|
}), al = Le;
|
|
3413
3420
|
}
|
|
3414
|
-
if (((
|
|
3421
|
+
if (((Ye = x == null ? void 0 : x.data) == null ? void 0 : Ye.statusCode) === 200) {
|
|
3415
3422
|
if ((rl = (ul = x == null ? void 0 : x.data) == null ? void 0 : ul.data) != null && rl[Ee == null ? void 0 : Ee[0]] && (Ee == null ? void 0 : Ee.length) === 1)
|
|
3416
3423
|
return await h((fl = (We = x == null ? void 0 : x.data) == null ? void 0 : We.data) == null ? void 0 : fl[Ee == null ? void 0 : Ee[0]], al, Ee);
|
|
3417
|
-
if ((
|
|
3424
|
+
if ((el = (Ze = x == null ? void 0 : x.data) == null ? void 0 : Ze.data) != null && el[Ee == null ? void 0 : Ee[0]])
|
|
3418
3425
|
return await te((Dl = (Je = x == null ? void 0 : x.data) == null ? void 0 : Je.data) == null ? void 0 : Dl[Ee == null ? void 0 : Ee[0]], al, Ee);
|
|
3419
3426
|
if ((Ee == null ? void 0 : Ee.length) === 1) {
|
|
3420
3427
|
const Le = (xl = (Il = (Al = x == null ? void 0 : x.data) == null ? void 0 : Al.data) == null ? void 0 : Il.path) == null ? void 0 : xl.path;
|
|
3421
3428
|
let Re = "";
|
|
3422
|
-
(Sl = (Tl = (Bl = ($l = (El = Le == null ? void 0 : Le.split("(")) == null ? void 0 : El[1]) == null ? void 0 : $l.split(")")) == null ? void 0 : Bl[0]) == null ? void 0 : Tl.split(":")) == null || Sl.forEach((
|
|
3429
|
+
(Sl = (Tl = (Bl = ($l = (El = Le == null ? void 0 : Le.split("(")) == null ? void 0 : El[1]) == null ? void 0 : $l.split(")")) == null ? void 0 : Bl[0]) == null ? void 0 : Tl.split(":")) == null || Sl.forEach((ll) => {
|
|
3423
3430
|
var hl, Nl;
|
|
3424
|
-
Re = Re === "" ? Re + ((hl =
|
|
3431
|
+
Re = Re === "" ? Re + ((hl = ll == null ? void 0 : ll.replaceAll("'", "")) == null ? void 0 : hl.trim()) : Re + "/" + ((Nl = ll == null ? void 0 : ll.replaceAll("'", "")) == null ? void 0 : Nl.trim());
|
|
3425
3432
|
});
|
|
3426
3433
|
let jl = [(Rl = (Pl = (Ll = (Ol = (Fl = Le == null ? void 0 : Le.split("<")) == null ? void 0 : Fl[1]) == null ? void 0 : Ol.split(">")) == null ? void 0 : Ll[0]) == null ? void 0 : Pl.replaceAll("'", "")) == null ? void 0 : Rl.trim()], qe;
|
|
3427
3434
|
return (ra = (yl = (Ul = x == null ? void 0 : x.data) == null ? void 0 : Ul.data) == null ? void 0 : yl.data) != null && ra[Ee == null ? void 0 : Ee[0]] ? qe = await h((da = (ta = (ca = x == null ? void 0 : x.data) == null ? void 0 : ca.data) == null ? void 0 : ta.data) == null ? void 0 : da[Ee == null ? void 0 : Ee[0]], Re, Ee) : qe = await p((fa = (pa = x == null ? void 0 : x.data) == null ? void 0 : pa.data) == null ? void 0 : fa.data, Re, jl), qe;
|
|
@@ -3429,8 +3436,8 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3429
3436
|
const Le = (ma = (va = (ha = x == null ? void 0 : x.data) == null ? void 0 : ha.data) == null ? void 0 : va.path) == null ? void 0 : ma.path;
|
|
3430
3437
|
let Re = "";
|
|
3431
3438
|
return (_a = (ka = (ga = (ba = (ya = Le == null ? void 0 : Le.split("(")) == null ? void 0 : ya[1]) == null ? void 0 : ba.split(")")) == null ? void 0 : ga[0]) == null ? void 0 : ka.split(":")) == null || _a.forEach((qe) => {
|
|
3432
|
-
var
|
|
3433
|
-
Re = Re === "" ? Re + ((
|
|
3439
|
+
var ll, hl;
|
|
3440
|
+
Re = Re === "" ? Re + ((ll = qe == null ? void 0 : qe.replaceAll("'", "")) == null ? void 0 : ll.trim()) : Re + "/" + ((hl = qe == null ? void 0 : qe.replaceAll("'", "")) == null ? void 0 : hl.trim());
|
|
3434
3441
|
}), await te((Da = (wa = (Ca = x == null ? void 0 : x.data) == null ? void 0 : Ca.data) == null ? void 0 : wa.data) == null ? void 0 : Da[Ee == null ? void 0 : Ee[0]], Re, Ee);
|
|
3435
3442
|
}
|
|
3436
3443
|
}
|
|
@@ -3439,13 +3446,13 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3439
3446
|
await Promise.all(_e);
|
|
3440
3447
|
}
|
|
3441
3448
|
pe.value = !0;
|
|
3442
|
-
},
|
|
3449
|
+
}, r = async (d) => {
|
|
3443
3450
|
var ne, i, I;
|
|
3444
3451
|
const A = l(d);
|
|
3445
3452
|
let K;
|
|
3446
3453
|
d != null && d[0].path && (K = await (A == null ? void 0 : A.map(async (E, v) => {
|
|
3447
3454
|
var y, F, H, de, oe, z, S, w, g, x;
|
|
3448
|
-
const
|
|
3455
|
+
const P = (await bl({
|
|
3449
3456
|
key: {
|
|
3450
3457
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
3451
3458
|
type: "data",
|
|
@@ -3454,12 +3461,12 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3454
3461
|
})).data.result;
|
|
3455
3462
|
let W = "";
|
|
3456
3463
|
const o = await vl(T.value, sessionStorage.getItem("systemKey"), "");
|
|
3457
|
-
return
|
|
3458
|
-
var L, _e,
|
|
3459
|
-
((_e = (L = t == null ? void 0 : t.value) == null ? void 0 : L.tableData) == null ? void 0 : _e.算法名称) === ((
|
|
3464
|
+
return P == null || P.forEach((t) => {
|
|
3465
|
+
var L, _e, R, ue, ve;
|
|
3466
|
+
((_e = (L = t == null ? void 0 : t.value) == null ? void 0 : L.tableData) == null ? void 0 : _e.算法名称) === ((R = A == null ? void 0 : A[v]) == null ? void 0 : R.method) && (W = (ve = (ue = t == null ? void 0 : t.value) == null ? void 0 : ue.tableData) == null ? void 0 : ve.算法体);
|
|
3460
3467
|
}), {
|
|
3461
|
-
buttonName: ((F = A == null ? void 0 : A[v]) == null ? void 0 : F.method) ?? ((oe = (de = (H =
|
|
3462
|
-
api: W === "" ? (w = (S = (z =
|
|
3468
|
+
buttonName: ((F = A == null ? void 0 : A[v]) == null ? void 0 : F.method) ?? ((oe = (de = (H = P == null ? void 0 : P[0]) == null ? void 0 : H.value) == null ? void 0 : de.tableData) == null ? void 0 : oe.算法名称),
|
|
3469
|
+
api: W === "" ? (w = (S = (z = P == null ? void 0 : P[0]) == null ? void 0 : z.value) == null ? void 0 : S.tableData) == null ? void 0 : w.算法体 : W,
|
|
3463
3470
|
content: o == null ? void 0 : o.filter((t) => t.comp !== "methodButton"),
|
|
3464
3471
|
extraContent: (g = l(E.value)) == null ? void 0 : g.slice(1),
|
|
3465
3472
|
methodName: (E == null ? void 0 : E.path) ?? "",
|
|
@@ -3468,22 +3475,22 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3468
3475
|
})));
|
|
3469
3476
|
const fe = A == null ? void 0 : A.map(async (E) => {
|
|
3470
3477
|
var y, F, H, de, oe, z;
|
|
3471
|
-
const
|
|
3478
|
+
const Y = (y = (await bl({
|
|
3472
3479
|
key: {
|
|
3473
3480
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
3474
3481
|
parentTable: "",
|
|
3475
3482
|
type: "method",
|
|
3476
3483
|
methodName: E.method
|
|
3477
3484
|
}
|
|
3478
|
-
})).data.result) == null ? void 0 : y[0],
|
|
3485
|
+
})).data.result) == null ? void 0 : y[0], P = await bl({
|
|
3479
3486
|
key: {
|
|
3480
3487
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
3481
3488
|
type: "methodData",
|
|
3482
|
-
tableId:
|
|
3489
|
+
tableId: Y == null ? void 0 : Y.id
|
|
3483
3490
|
}
|
|
3484
|
-
}), W = await vl(T.value, sessionStorage.getItem("systemKey"), ""), o = (F =
|
|
3491
|
+
}), W = await vl(T.value, sessionStorage.getItem("systemKey"), ""), o = (F = P.data.result) == null ? void 0 : F[0];
|
|
3485
3492
|
return {
|
|
3486
|
-
buttonName: (H =
|
|
3493
|
+
buttonName: (H = Y == null ? void 0 : Y.key) == null ? void 0 : H.methodKey,
|
|
3487
3494
|
api: (oe = (de = o == null ? void 0 : o.value) == null ? void 0 : de.tableData) == null ? void 0 : oe[0],
|
|
3488
3495
|
content: W == null ? void 0 : W.filter((S) => S.comp !== "methodButton"),
|
|
3489
3496
|
extraContent: (z = l(E.value)) == null ? void 0 : z.slice(1),
|
|
@@ -3492,16 +3499,16 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3492
3499
|
}), re = (ne = d == null ? void 0 : d[0]) != null && ne.path && ((i = d == null ? void 0 : d[0]) == null ? void 0 : i.path) !== "" ? await Promise.all(K) : await Promise.all(fe);
|
|
3493
3500
|
m.value = re == null ? void 0 : re.filter((E) => E == null ? void 0 : E.extraContent), (I = m.value) == null || I.forEach((E) => {
|
|
3494
3501
|
var v;
|
|
3495
|
-
E.api === "" && ((v = E.content) == null || v.forEach((
|
|
3496
|
-
var
|
|
3497
|
-
|
|
3502
|
+
E.api === "" && ((v = E.content) == null || v.forEach((Y) => {
|
|
3503
|
+
var P;
|
|
3504
|
+
Y.comp == "Table" && s.setExtraContents(cs(Y.compData, (P = E.extraContent) == null ? void 0 : P[0]));
|
|
3498
3505
|
}));
|
|
3499
3506
|
});
|
|
3500
3507
|
};
|
|
3501
3508
|
return Ke(
|
|
3502
3509
|
() => a.itemData,
|
|
3503
3510
|
async () => {
|
|
3504
|
-
U.value == "view" && !pe.value && await
|
|
3511
|
+
U.value == "view" && !pe.value && await r(l(a.itemData)), pe.value = !1;
|
|
3505
3512
|
},
|
|
3506
3513
|
{ immediate: !0, deep: !0 }
|
|
3507
3514
|
), (d, A) => (ce(), ye("div", _n, [
|
|
@@ -3517,13 +3524,13 @@ const tn = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), dn = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3517
3524
|
Wl(Q) !== "" ? (ce(), Fe(Wl(Ba), {
|
|
3518
3525
|
key: 0,
|
|
3519
3526
|
class: "calculator-content",
|
|
3520
|
-
onClickTrigger:
|
|
3527
|
+
onClickTrigger: ee,
|
|
3521
3528
|
modelValue: "保存"
|
|
3522
3529
|
})) : Qe("", !0)
|
|
3523
3530
|
]));
|
|
3524
3531
|
}
|
|
3525
3532
|
}, wn = /* @__PURE__ */ Ue(Cn, [["__scopeId", "data-v-5faf81a1"]]), Dn = {};
|
|
3526
|
-
function An(
|
|
3533
|
+
function An(u, m) {
|
|
3527
3534
|
return " 567 ";
|
|
3528
3535
|
}
|
|
3529
3536
|
const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module content" }, En = { class: "module data" }, $n = { class: "module layout" }, Bn = { class: "form-content" }, Tn = /* @__PURE__ */ kl({
|
|
@@ -3539,12 +3546,12 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3539
3546
|
}
|
|
3540
3547
|
},
|
|
3541
3548
|
emits: ["change"],
|
|
3542
|
-
setup(
|
|
3543
|
-
const a =
|
|
3549
|
+
setup(u, { emit: m }) {
|
|
3550
|
+
const a = u, s = m, c = sa({
|
|
3544
3551
|
visible: !1,
|
|
3545
3552
|
width: "40%",
|
|
3546
3553
|
title: "签名配置"
|
|
3547
|
-
}), O =
|
|
3554
|
+
}), O = Z("create"), N = Z([
|
|
3548
3555
|
{
|
|
3549
3556
|
label: "取消",
|
|
3550
3557
|
background: "#c0c4cc"
|
|
@@ -3553,7 +3560,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3553
3560
|
label: "确认",
|
|
3554
3561
|
background: "#436aaf"
|
|
3555
3562
|
}
|
|
3556
|
-
]), C =
|
|
3563
|
+
]), C = Z([
|
|
3557
3564
|
{
|
|
3558
3565
|
label: "宽度(%):",
|
|
3559
3566
|
prop: "signPadWidth",
|
|
@@ -3646,7 +3653,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3646
3653
|
// ],
|
|
3647
3654
|
// value: false
|
|
3648
3655
|
// },
|
|
3649
|
-
]), Q =
|
|
3656
|
+
]), Q = Z({}), T = Z([]), ie = () => ({
|
|
3650
3657
|
comp: "Signature",
|
|
3651
3658
|
compData: [
|
|
3652
3659
|
{
|
|
@@ -3693,7 +3700,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3693
3700
|
T.value.splice($, 1), O.value = "delete";
|
|
3694
3701
|
break;
|
|
3695
3702
|
}
|
|
3696
|
-
},
|
|
3703
|
+
}, ee = () => {
|
|
3697
3704
|
c.visible = !1;
|
|
3698
3705
|
};
|
|
3699
3706
|
return Ke(() => a == null ? void 0 : a.itemContents, (D) => {
|
|
@@ -3733,7 +3740,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3733
3740
|
ae(p, {
|
|
3734
3741
|
type: "primary",
|
|
3735
3742
|
size: "small",
|
|
3736
|
-
onClick: (
|
|
3743
|
+
onClick: (r) => se("update", { ...h, index: b + 1 })
|
|
3737
3744
|
}, {
|
|
3738
3745
|
default: he(() => $[3] || ($[3] = [
|
|
3739
3746
|
$e("修改")
|
|
@@ -3744,7 +3751,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3744
3751
|
ae(p, {
|
|
3745
3752
|
type: "danger",
|
|
3746
3753
|
size: "small",
|
|
3747
|
-
onClick: (
|
|
3754
|
+
onClick: (r) => se("delete", b)
|
|
3748
3755
|
}, {
|
|
3749
3756
|
default: he(() => $[4] || ($[4] = [
|
|
3750
3757
|
$e("删除")
|
|
@@ -3765,7 +3772,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3765
3772
|
ae(Ge, {
|
|
3766
3773
|
visible: c.visible,
|
|
3767
3774
|
title: c.title,
|
|
3768
|
-
onBeforeDestroy:
|
|
3775
|
+
onBeforeDestroy: ee,
|
|
3769
3776
|
width: c.width
|
|
3770
3777
|
}, {
|
|
3771
3778
|
default: he(() => [
|
|
@@ -3799,8 +3806,8 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3799
3806
|
}
|
|
3800
3807
|
},
|
|
3801
3808
|
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
3802
|
-
setup(
|
|
3803
|
-
const a =
|
|
3809
|
+
setup(u, { emit: m }) {
|
|
3810
|
+
const a = u, s = m, c = Z(1), O = ia(() => {
|
|
3804
3811
|
var ie, q;
|
|
3805
3812
|
return (ie = a == null ? void 0 : a.stepConfig) != null && ie.allowTrigger ? c.value : (q = a == null ? void 0 : a.stepConfig) == null ? void 0 : q.active;
|
|
3806
3813
|
}), N = (ie, q) => {
|
|
@@ -3815,21 +3822,21 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3815
3822
|
s("changeTrigger", ie);
|
|
3816
3823
|
};
|
|
3817
3824
|
return (ie, q) => {
|
|
3818
|
-
var
|
|
3825
|
+
var ee, D, $, te, p;
|
|
3819
3826
|
const pe = Te("el-step"), se = Te("el-steps");
|
|
3820
3827
|
return ce(), ye(Se, null, [
|
|
3821
3828
|
ae(se, {
|
|
3822
|
-
direction: (
|
|
3829
|
+
direction: (ee = u.stepConfig) == null ? void 0 : ee.direction,
|
|
3823
3830
|
active: O.value,
|
|
3824
3831
|
"finish-status": "success",
|
|
3825
|
-
simple: (D =
|
|
3826
|
-
"align-center": (($ =
|
|
3832
|
+
simple: (D = u.stepConfig) == null ? void 0 : D.simple,
|
|
3833
|
+
"align-center": (($ = u.stepConfig) == null ? void 0 : $.alignCenter) ?? !0
|
|
3827
3834
|
}, {
|
|
3828
3835
|
default: he(() => [
|
|
3829
|
-
(ce(!0), ye(Se, null, Pe(
|
|
3836
|
+
(ce(!0), ye(Se, null, Pe(u.stepList, (h, b) => (ce(), Fe(pe, {
|
|
3830
3837
|
key: b,
|
|
3831
3838
|
class: "step-item",
|
|
3832
|
-
onClick: (
|
|
3839
|
+
onClick: (r) => N(h, b + 1)
|
|
3833
3840
|
}, {
|
|
3834
3841
|
title: he(() => [
|
|
3835
3842
|
zl(ie.$slots, "title", {
|
|
@@ -3846,18 +3853,18 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3846
3853
|
]),
|
|
3847
3854
|
_: 3
|
|
3848
3855
|
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
3849
|
-
(te =
|
|
3856
|
+
(te = u.stepConfig) != null && te.allowTrigger && ((p = u.stepConfig) != null && p.active) ? (ce(!0), ye(Se, { key: 0 }, Pe(U(), (h, b) => (ce(), ye("div", {
|
|
3850
3857
|
key: b,
|
|
3851
3858
|
class: "step-cont-wrap"
|
|
3852
3859
|
}, [
|
|
3853
3860
|
(ce(), Fe(Kl(C(h == null ? void 0 : h.type)), {
|
|
3854
3861
|
modelValue: h.value,
|
|
3855
|
-
"onUpdate:modelValue": (
|
|
3862
|
+
"onUpdate:modelValue": (r) => h.value = r,
|
|
3856
3863
|
onClickTrigger: Q,
|
|
3857
3864
|
onChangeTrigger: T,
|
|
3858
3865
|
content: h == null ? void 0 : h.content
|
|
3859
3866
|
}, Ya({ _: 2 }, [
|
|
3860
|
-
Pe(ie.$slots, (
|
|
3867
|
+
Pe(ie.$slots, (r, d) => ({
|
|
3861
3868
|
name: d,
|
|
3862
3869
|
fn: he((A) => [
|
|
3863
3870
|
zl(ie.$slots, d, Za({ ref_for: !0 }, A || {}), void 0, !0)
|
|
@@ -3881,8 +3888,8 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3881
3888
|
}
|
|
3882
3889
|
},
|
|
3883
3890
|
emits: ["clickStep"],
|
|
3884
|
-
setup(
|
|
3885
|
-
const a =
|
|
3891
|
+
setup(u, { emit: m }) {
|
|
3892
|
+
const a = u, s = m, c = Z({}), O = Z([]), N = (C, U) => {
|
|
3886
3893
|
s("clickStep", C, U);
|
|
3887
3894
|
};
|
|
3888
3895
|
return Ke(() => a == null ? void 0 : a.itemData, (C) => {
|
|
@@ -3923,22 +3930,22 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3923
3930
|
}
|
|
3924
3931
|
}
|
|
3925
3932
|
},
|
|
3926
|
-
setup(
|
|
3933
|
+
setup(u) {
|
|
3927
3934
|
return (m, a) => {
|
|
3928
3935
|
const s = Te("el-timeline-item"), c = Te("el-timeline");
|
|
3929
3936
|
return ce(), Fe(c, null, {
|
|
3930
3937
|
default: he(() => [
|
|
3931
|
-
(ce(!0), ye(Se, null, Pe(
|
|
3938
|
+
(ce(!0), ye(Se, null, Pe(u.activities, (O, N) => (ce(), Fe(s, {
|
|
3932
3939
|
key: N,
|
|
3933
3940
|
timestamp: O.timestamp,
|
|
3934
|
-
placement:
|
|
3935
|
-
center:
|
|
3941
|
+
placement: u.timeLineConfig.placement,
|
|
3942
|
+
center: u.timeLineConfig.isCenter,
|
|
3936
3943
|
"hide-timestamp": !0,
|
|
3937
|
-
type:
|
|
3938
|
-
color:
|
|
3939
|
-
size:
|
|
3940
|
-
icon:
|
|
3941
|
-
hollow:
|
|
3944
|
+
type: u.timeLineConfig.type,
|
|
3945
|
+
color: u.timeLineConfig.color,
|
|
3946
|
+
size: u.timeLineConfig.size,
|
|
3947
|
+
icon: u.timeLineConfig.icon,
|
|
3948
|
+
hollow: u.timeLineConfig.isHollow
|
|
3942
3949
|
}, {
|
|
3943
3950
|
default: he(() => [
|
|
3944
3951
|
zl(m.$slots, "content", {
|
|
@@ -3961,8 +3968,8 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3961
3968
|
default: () => []
|
|
3962
3969
|
}
|
|
3963
3970
|
},
|
|
3964
|
-
setup(
|
|
3965
|
-
const m =
|
|
3971
|
+
setup(u) {
|
|
3972
|
+
const m = u, a = Z({}), s = Z([]);
|
|
3966
3973
|
return Ke(() => m == null ? void 0 : m.itemData, (c) => {
|
|
3967
3974
|
var O, N;
|
|
3968
3975
|
s.value = (O = c == null ? void 0 : c.find((C) => (C == null ? void 0 : C.key) === "timeLineList")) == null ? void 0 : O.contents, a.value = (N = c == null ? void 0 : c.find((C) => (C == null ? void 0 : C.key) === "timeLineConfig")) == null ? void 0 : N.contents;
|
|
@@ -3992,8 +3999,8 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
3992
3999
|
},
|
|
3993
4000
|
index: Number
|
|
3994
4001
|
},
|
|
3995
|
-
setup(
|
|
3996
|
-
const m =
|
|
4002
|
+
setup(u) {
|
|
4003
|
+
const m = u, a = Z([]);
|
|
3997
4004
|
return Ke(
|
|
3998
4005
|
() => m == null ? void 0 : m.itemData,
|
|
3999
4006
|
(s) => {
|
|
@@ -4022,31 +4029,31 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4022
4029
|
curStructureCompIds: []
|
|
4023
4030
|
}),
|
|
4024
4031
|
actions: {
|
|
4025
|
-
setItemData(
|
|
4026
|
-
this.itemData =
|
|
4032
|
+
setItemData(u) {
|
|
4033
|
+
this.itemData = u;
|
|
4027
4034
|
},
|
|
4028
|
-
setCurStructureCompIds(
|
|
4029
|
-
this.curStructureCompIds =
|
|
4035
|
+
setCurStructureCompIds(u) {
|
|
4036
|
+
this.curStructureCompIds = u;
|
|
4030
4037
|
},
|
|
4031
|
-
setRefreshCurStructure(
|
|
4032
|
-
this.isRefreshCurStructure =
|
|
4038
|
+
setRefreshCurStructure(u) {
|
|
4039
|
+
this.isRefreshCurStructure = u;
|
|
4033
4040
|
},
|
|
4034
|
-
setOriginalData(
|
|
4035
|
-
this.originalData =
|
|
4041
|
+
setOriginalData(u) {
|
|
4042
|
+
this.originalData = u;
|
|
4036
4043
|
},
|
|
4037
|
-
setExtraContents(
|
|
4038
|
-
this.extraContents =
|
|
4044
|
+
setExtraContents(u) {
|
|
4045
|
+
this.extraContents = u;
|
|
4039
4046
|
},
|
|
4040
|
-
setNodeDev(
|
|
4041
|
-
this.nodeDev =
|
|
4047
|
+
setNodeDev(u) {
|
|
4048
|
+
this.nodeDev = u;
|
|
4042
4049
|
},
|
|
4043
|
-
setIsEdit(
|
|
4044
|
-
this.isEdit =
|
|
4050
|
+
setIsEdit(u) {
|
|
4051
|
+
this.isEdit = u;
|
|
4045
4052
|
}
|
|
4046
4053
|
}
|
|
4047
4054
|
}), Mn = { class: "type-select" }, Jn = ["onClick"], Gn = { class: "list-icon" }, Hn = {
|
|
4048
4055
|
__name: "modelSelect",
|
|
4049
|
-
setup(
|
|
4056
|
+
setup(u) {
|
|
4050
4057
|
const m = Gl(Me), { itemData: a } = He(m), s = (c) => {
|
|
4051
4058
|
const O = l(a.value);
|
|
4052
4059
|
O.push({
|
|
@@ -4082,40 +4089,40 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4082
4089
|
class: "edit-content"
|
|
4083
4090
|
}, io = ["onClick"], no = { class: "comp-child" }, oo = {
|
|
4084
4091
|
__name: "modelFill",
|
|
4085
|
-
setup(
|
|
4086
|
-
const m = Gl(Me), { itemData: a, originalData: s } = He(m), c =
|
|
4087
|
-
|
|
4088
|
-
const O =
|
|
4089
|
-
var
|
|
4090
|
-
let se = (
|
|
4092
|
+
setup(u) {
|
|
4093
|
+
const m = Gl(Me), { itemData: a, originalData: s } = He(m), c = Z([]);
|
|
4094
|
+
Z([]);
|
|
4095
|
+
const O = Z([]), N = Z([]), C = (pe) => {
|
|
4096
|
+
var ee;
|
|
4097
|
+
let se = (ee = l(N.value)) == null ? void 0 : ee.map((D, $) => (pe === $ && (D.content = !0), D));
|
|
4091
4098
|
N.value = se;
|
|
4092
4099
|
}, U = (pe) => {
|
|
4093
|
-
var
|
|
4094
|
-
let se = (
|
|
4100
|
+
var ee;
|
|
4101
|
+
let se = (ee = l(N.value)) == null ? void 0 : ee.map((D, $) => (pe === $ && (D.content = !1), D));
|
|
4095
4102
|
N.value = se, c.value = l(a.value);
|
|
4096
4103
|
}, Q = (pe, se) => {
|
|
4097
4104
|
var te;
|
|
4098
|
-
let
|
|
4099
|
-
N.value =
|
|
4105
|
+
let ee = (te = l(N.value)) == null ? void 0 : te.map((p, h) => (pe === h && (p.content = !1), p));
|
|
4106
|
+
N.value = ee;
|
|
4100
4107
|
const D = l(a.value), $ = D == null ? void 0 : D.filter((p, h) => (h === pe && (p.name = se), p));
|
|
4101
4108
|
m.setOriginalData($), m.setItemData($);
|
|
4102
4109
|
};
|
|
4103
4110
|
Ke(
|
|
4104
4111
|
() => a.value,
|
|
4105
4112
|
() => {
|
|
4106
|
-
var pe, se,
|
|
4107
|
-
!a.value || ((pe = a.value) == null ? void 0 : pe.length) === 0 ? c.value = [] : c.value = (se = l(a.value)) == null ? void 0 : se.filter((D) => (D == null ? void 0 : D.comp) !== "methodButton"), O.value = c.value, N.value = (
|
|
4113
|
+
var pe, se, ee;
|
|
4114
|
+
!a.value || ((pe = a.value) == null ? void 0 : pe.length) === 0 ? c.value = [] : c.value = (se = l(a.value)) == null ? void 0 : se.filter((D) => (D == null ? void 0 : D.comp) !== "methodButton"), O.value = c.value, N.value = (ee = l(O.value)) == null ? void 0 : ee.map((D, $) => ({
|
|
4108
4115
|
id: $,
|
|
4109
4116
|
content: !1
|
|
4110
4117
|
}));
|
|
4111
4118
|
},
|
|
4112
4119
|
{ deep: !0, immediate: !0 }
|
|
4113
4120
|
);
|
|
4114
|
-
const T = (pe) => ua(pe), ie = (pe, se,
|
|
4121
|
+
const T = (pe) => ua(pe), ie = (pe, se, ee) => {
|
|
4115
4122
|
var $, te;
|
|
4116
4123
|
if (!pe) return;
|
|
4117
4124
|
let D = l(a.value);
|
|
4118
|
-
D = ($ = D == null ? void 0 : D.map((p, h) => (h ===
|
|
4125
|
+
D = ($ = D == null ? void 0 : D.map((p, h) => (h === ee && (p.compData = pe), p))) == null ? void 0 : $.filter((p) => (p == null ? void 0 : p.comp) !== "methodButton"), N.value = (te = l(D)) == null ? void 0 : te.map((p, h) => ({
|
|
4119
4126
|
id: h,
|
|
4120
4127
|
content: !1
|
|
4121
4128
|
})), m.setOriginalData(D), m.setItemData(D);
|
|
@@ -4125,8 +4132,8 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4125
4132
|
cancelButtonText: "取消",
|
|
4126
4133
|
type: "warning"
|
|
4127
4134
|
}).then(() => {
|
|
4128
|
-
const se = l(a.value),
|
|
4129
|
-
m.setOriginalData(
|
|
4135
|
+
const se = l(a.value), ee = se == null ? void 0 : se.filter((D, $) => $ !== pe);
|
|
4136
|
+
m.setOriginalData(ee), m.setItemData(ee), Xe({
|
|
4130
4137
|
type: "success",
|
|
4131
4138
|
message: "删除成功"
|
|
4132
4139
|
});
|
|
@@ -4134,7 +4141,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4134
4141
|
});
|
|
4135
4142
|
};
|
|
4136
4143
|
return (pe, se) => {
|
|
4137
|
-
const
|
|
4144
|
+
const ee = Te("svg-icon");
|
|
4138
4145
|
return ce(), ye("div", Qn, [
|
|
4139
4146
|
se[1] || (se[1] = B("div", { class: "fill-operate" }, we("操作栏"), -1)),
|
|
4140
4147
|
B("div", Xn, [
|
|
@@ -4143,7 +4150,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4143
4150
|
collapseContents: c.value
|
|
4144
4151
|
}, {
|
|
4145
4152
|
title: he(({ item: D, index: $ }) => {
|
|
4146
|
-
var te, p, h, b,
|
|
4153
|
+
var te, p, h, b, r, d, A, K, fe, re;
|
|
4147
4154
|
return [
|
|
4148
4155
|
B("div", Yn, [
|
|
4149
4156
|
B("div", Zn, [
|
|
@@ -4160,12 +4167,12 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4160
4167
|
}, ["stop"]))
|
|
4161
4168
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4162
4169
|
])) : Qe("", !0),
|
|
4163
|
-
(d = (
|
|
4170
|
+
(d = (r = N.value) == null ? void 0 : r.find((ne) => ne.id === $)) != null && d.content ? Qe("", !0) : (ce(), ye("div", {
|
|
4164
4171
|
key: 2,
|
|
4165
4172
|
onClick: Vl((ne) => C($), ["stop"]),
|
|
4166
4173
|
class: "icon-content"
|
|
4167
4174
|
}, [
|
|
4168
|
-
ae(
|
|
4175
|
+
ae(ee, {
|
|
4169
4176
|
name: "Edit",
|
|
4170
4177
|
style: { width: "16px", height: "16px" }
|
|
4171
4178
|
})
|
|
@@ -4173,13 +4180,13 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4173
4180
|
]),
|
|
4174
4181
|
B("div", ao, [
|
|
4175
4182
|
(K = (A = N.value) == null ? void 0 : A.find((ne) => ne.id === $)) != null && K.content ? (ce(), ye("div", so, [
|
|
4176
|
-
ae(
|
|
4183
|
+
ae(ee, {
|
|
4177
4184
|
name: "Cancel",
|
|
4178
4185
|
style: { width: "16px", height: "16px" },
|
|
4179
4186
|
class: "icon-content",
|
|
4180
4187
|
onClick: Vl((ne) => U($), ["stop"])
|
|
4181
4188
|
}, null, 8, ["onClick"]),
|
|
4182
|
-
ae(
|
|
4189
|
+
ae(ee, {
|
|
4183
4190
|
name: "Save",
|
|
4184
4191
|
onClick: Vl((ne) => Q($, D.name), ["stop"]),
|
|
4185
4192
|
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
@@ -4191,7 +4198,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4191
4198
|
onClick: Vl((ne) => q($), ["stop"]),
|
|
4192
4199
|
class: "icon-content"
|
|
4193
4200
|
}, [
|
|
4194
|
-
ae(
|
|
4201
|
+
ae(ee, {
|
|
4195
4202
|
name: "Delete",
|
|
4196
4203
|
style: { width: "16px", height: "16px" }
|
|
4197
4204
|
})
|
|
@@ -4223,8 +4230,8 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4223
4230
|
class: "show-content"
|
|
4224
4231
|
}, co = { style: { display: "flex" } }, to = {
|
|
4225
4232
|
__name: "modelShow",
|
|
4226
|
-
setup(
|
|
4227
|
-
const m = Gl(Me), { itemData: a } = He(m), s =
|
|
4233
|
+
setup(u) {
|
|
4234
|
+
const m = Gl(Me), { itemData: a } = He(m), s = Z([]);
|
|
4228
4235
|
Ke(
|
|
4229
4236
|
() => a.value,
|
|
4230
4237
|
() => {
|
|
@@ -4263,8 +4270,8 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4263
4270
|
}
|
|
4264
4271
|
},
|
|
4265
4272
|
emits: ["change"],
|
|
4266
|
-
setup(
|
|
4267
|
-
const a =
|
|
4273
|
+
setup(u, { emit: m }) {
|
|
4274
|
+
const a = u, s = m, c = Z([]), O = Z(!1), N = Z(""), C = Z({ title: "" }), U = Z(-1), Q = Z(!1), T = Z(-1), ie = Z(/* @__PURE__ */ new Map()), q = Z(null), pe = Gl(Me), { itemData: se } = He(pe), ee = () => {
|
|
4268
4275
|
N.value = "新增标签页", C.value.title = "", U.value = -1, O.value = !0;
|
|
4269
4276
|
}, D = (o) => {
|
|
4270
4277
|
N.value = "修改标签页", C.value.title = c.value[o].title, U.value = o, O.value = !0;
|
|
@@ -4296,7 +4303,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4296
4303
|
q.value = l(se.value);
|
|
4297
4304
|
let F = ie.value.get(y);
|
|
4298
4305
|
!F && ((H = c.value[o].children) == null ? void 0 : H.length) > 0 && (F = K(c.value[o].children)), F ? pe.setItemData(l(F)) : pe.setItemData([]), Q.value = !0;
|
|
4299
|
-
},
|
|
4306
|
+
}, r = ia(() => {
|
|
4300
4307
|
const o = oa(Me), y = He(o).itemData.value;
|
|
4301
4308
|
return console.log("可用组件数据", y), !y || !Array.isArray(y) ? [] : y.filter((F) => {
|
|
4302
4309
|
var H;
|
|
@@ -4393,13 +4400,13 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4393
4400
|
case "Table":
|
|
4394
4401
|
return {
|
|
4395
4402
|
type: "table",
|
|
4396
|
-
content:
|
|
4403
|
+
content: Y(oe || []),
|
|
4397
4404
|
value: "表格"
|
|
4398
4405
|
};
|
|
4399
4406
|
default:
|
|
4400
4407
|
return {
|
|
4401
4408
|
type: "xxx",
|
|
4402
|
-
content:
|
|
4409
|
+
content: P(oe || []),
|
|
4403
4410
|
value: ""
|
|
4404
4411
|
};
|
|
4405
4412
|
}
|
|
@@ -4432,7 +4439,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4432
4439
|
}
|
|
4433
4440
|
oe === "enableWrap" ? y[S] = !!z : y[S] = Array.isArray(z) ? z : [];
|
|
4434
4441
|
}), y;
|
|
4435
|
-
},
|
|
4442
|
+
}, Y = (o) => {
|
|
4436
4443
|
const y = {
|
|
4437
4444
|
columns: [],
|
|
4438
4445
|
tableData: [],
|
|
@@ -4461,7 +4468,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4461
4468
|
}
|
|
4462
4469
|
y[S] = Array.isArray(z) ? z : [];
|
|
4463
4470
|
}), y;
|
|
4464
|
-
},
|
|
4471
|
+
}, P = (o) => (console.log("Default conversion logic - to be implemented"), {
|
|
4465
4472
|
originalData: o,
|
|
4466
4473
|
processed: !1,
|
|
4467
4474
|
componentType: "unknown"
|
|
@@ -4494,7 +4501,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4494
4501
|
return ce(), ye("div", null, [
|
|
4495
4502
|
B("div", fo, [
|
|
4496
4503
|
y[6] || (y[6] = B("h4", null, "标签页管理", -1)),
|
|
4497
|
-
B("button", { onClick:
|
|
4504
|
+
B("button", { onClick: ee }, [
|
|
4498
4505
|
ae(F, {
|
|
4499
4506
|
name: "Plus",
|
|
4500
4507
|
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
@@ -4579,7 +4586,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4579
4586
|
B("div", Co, [
|
|
4580
4587
|
y[8] || (y[8] = B("h5", null, "添加已有组件", -1)),
|
|
4581
4588
|
B("div", wo, [
|
|
4582
|
-
(ce(!0), ye(Se, null, Pe(
|
|
4589
|
+
(ce(!0), ye(Se, null, Pe(r.value, (z) => (ce(), ye("div", {
|
|
4583
4590
|
key: z.id,
|
|
4584
4591
|
class: "component-item",
|
|
4585
4592
|
onClick: (S) => A(z)
|
|
@@ -4609,7 +4616,7 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4609
4616
|
]);
|
|
4610
4617
|
};
|
|
4611
4618
|
}
|
|
4612
|
-
}, Bo = /* @__PURE__ */ Ue($o, [["__scopeId", "data-v-151936e8"]]), To =
|
|
4619
|
+
}, Bo = /* @__PURE__ */ Ue($o, [["__scopeId", "data-v-151936e8"]]), To = Z([
|
|
4613
4620
|
{
|
|
4614
4621
|
name: "表格",
|
|
4615
4622
|
type: "table",
|
|
@@ -4680,8 +4687,8 @@ const In = /* @__PURE__ */ Ue(Dn, [["render", An]]), xn = { class: "module conte
|
|
|
4680
4687
|
TABSOPERATE: Bo
|
|
4681
4688
|
// 添加其他组件...
|
|
4682
4689
|
};
|
|
4683
|
-
function ua(
|
|
4684
|
-
return So[
|
|
4690
|
+
function ua(u) {
|
|
4691
|
+
return So[u == null ? void 0 : u.toUpperCase()] || null;
|
|
4685
4692
|
}
|
|
4686
4693
|
export {
|
|
4687
4694
|
zo as a,
|