ss-component-new 1.1.720 → 1.1.721
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-qlcp7dSO.js → array-BcN1bdmj.js} +1 -1
- package/dist/{array-DEbfPHDH.cjs → array-CgJ6luvr.cjs} +1 -1
- package/dist/{index-BwhKCIej.js → index-50HGqFLU.js} +3 -3
- package/dist/{index-z0QR4tVS.cjs → index-B9SUJ4Zu.cjs} +1 -1
- package/dist/{index-DiP6O-5D.cjs → index-BAdqe1Qk.cjs} +1 -1
- package/dist/{index-1sXWJq2l.js → index-BHBGoWFE.js} +4 -4
- package/dist/{index-BCZ59Y4K.js → index-BHZ56TUj.js} +1 -0
- package/dist/{index-2p69g4HY.cjs → index-BKUqLOwQ.cjs} +5 -5
- package/dist/{index-zfP0aoN3.cjs → index-BV3gIolN.cjs} +1 -1
- package/dist/{index-BeHX-iSq.js → index-BYl3ZfMW.js} +2 -2
- package/dist/{index-C4f8PJA1.js → index-B_GAWj5p.js} +3 -3
- package/dist/{index-D1tLA_OV.js → index-B_h8SY5M.js} +1 -1
- package/dist/{index-CcW3dvPS.js → index-BaJiGLkX.js} +1 -1
- package/dist/{index-C23Pn4nJ.cjs → index-BaOJ2FlA.cjs} +1 -1
- package/dist/{index-DURRklJg.cjs → index-Be3sB22h.cjs} +1 -1
- package/dist/{index-B8yLxBTE.js → index-Bidjqofb.js} +5 -5
- package/dist/{index-DvGVJ0hp.js → index-Bjlg9wnM.js} +6 -6
- package/dist/{index-DsBOxOiC.cjs → index-BkryeHcb.cjs} +1 -1
- package/dist/{index-B5xOJfq6.js → index-Bl6RAbAc.js} +2 -2
- package/dist/{index-B2l-kEN9.cjs → index-Bwj8bU3w.cjs} +1 -1
- package/dist/{index-BrQVl4Zd.cjs → index-Bxw2nNk2.cjs} +1 -1
- package/dist/{index-BOUMEwvf.js → index-C08wAtul.js} +4 -4
- package/dist/{index-D5ELKa9H.cjs → index-C1IBXnyt.cjs} +1 -1
- package/dist/{index-CmfIvT3g.js → index-C2KiCWir.js} +3 -3
- package/dist/{index-BJJQvCLK.cjs → index-C5OJDom_.cjs} +1 -1
- package/dist/{index-BwIaZMgn.js → index-C8KgQTfH.js} +7558 -7453
- package/dist/{index-CkDvcCFV.cjs → index-CAV4FH8Z.cjs} +1 -1
- package/dist/{index-BCcGa1Ni.js → index-CIPfJ4V5.js} +6 -6
- package/dist/{index-C2VsPkt3.cjs → index-CLaUio0q.cjs} +1 -1
- package/dist/{index-BfbhJt5N.cjs → index-CSfd9Nvs.cjs} +1 -1
- package/dist/{index-D6NF1MuH.js → index-CVDOumPC.js} +3 -3
- package/dist/{index-DSKn6Ebg.js → index-Cd71tWDj.js} +3 -3
- package/dist/{index-DgPw8IAq.cjs → index-CeOHn1Vk.cjs} +1 -1
- package/dist/{index-DiHU6eQ6.cjs → index-Cx320XRD.cjs} +1 -1
- package/dist/{index-B7qmdczF.js → index-CyCiiIH7.js} +8 -8
- package/dist/{index-eHp0tJMh.cjs → index-CyTykQhT.cjs} +1 -1
- package/dist/{index-BoPmmUFe.cjs → index-D4nn1MaA.cjs} +1 -1
- package/dist/{index-DM0p7s11.cjs → index-D9G0MN0h.cjs} +1 -1
- package/dist/{index-CgQHP109.cjs → index-D9HFpsnH.cjs} +1 -1
- package/dist/{index-oVFO2ehi.js → index-DFwEXQv-.js} +4 -4
- package/dist/{index-Ct0CmWjo.js → index-DIlWcnao.js} +1 -1
- package/dist/{index-CatyTybI.js → index-DJ2FxFvx.js} +1 -1
- package/dist/{index-DyH3cqs6.js → index-DLPqu104.js} +6 -6
- package/dist/index-DOn8yEZJ.cjs +4207 -0
- package/dist/{index-zcupmvZE.cjs → index-Dn7yNpUx.cjs} +1 -1
- package/dist/{index-DkVRhgEp.cjs → index-Dz7-jX87.cjs} +1 -1
- package/dist/{index-uxUXgOHv.cjs → index-GxAWv8aU.cjs} +1 -1
- package/dist/{index-CfFxvIyn.cjs → index-VQ4mf0NG.cjs} +1 -1
- package/dist/{index-Cf8gmSBA.js → index-YA8F1H22.js} +3 -3
- package/dist/{index-By3_dv73.js → index-di0y5Ciz.js} +663 -662
- package/dist/{index-8V3HMbzD.cjs → index-fniyUh6b.cjs} +1 -1
- package/dist/{index-9xkmciOn.js → index-onW5suua.js} +4 -4
- package/dist/{index-SkmkkNfn.js → index-v9IlbVxb.js} +3 -3
- package/dist/{index-Cb3jqwM0.js → index-xSTLa8Bb.js} +108 -108
- package/dist/{index.vue_vue_type_script_setup_true_lang-COqYQkpd.js → index.vue_vue_type_script_setup_true_lang-DAIduaBX.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dzme5B0i.cjs → index.vue_vue_type_script_setup_true_lang-De8jbnS5.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BH1vPpoM.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bn_-cql3.cjs} +57 -57
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CvD6y-YU.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C_N41ilG.js} +1715 -1720
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-Dd_VBPHR.js → index.vue_vue_type_style_index_0_scoped_8606206c_lang-BgHhMOqW.js} +15 -15
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-BT4NFC5D.cjs → index.vue_vue_type_style_index_0_scoped_8606206c_lang-CCQ1V4Ad.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Dhj1K76x.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BajRaUap.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CBsgEuhs.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CVGFhYru.cjs} +1 -1
- package/dist/{login-BKNb-U3r.cjs → login-DoVI1BJb.cjs} +1 -1
- package/dist/{login-Bpq5wJyt.js → login-Dxsw3cch.js} +1 -1
- package/dist/{main-BjCfrhva.js → main-B5FfttkG.js} +4 -4
- package/dist/{main-BtckrOrJ.cjs → main-C_jD1CK-.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-d0Y2Oi7B.js → threeModel-BNhwg7RT.js} +3 -3
- package/dist/{threeModel-SN65YHZO.cjs → threeModel-Dwjk_uWz.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CSO1CCLV.cjs +0 -4207
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { b as qa, a as Qa, t as Xa, f as Ya, g as Za, c as Oa, i as Ea, s as ei } from "./index-
|
|
1
|
+
import { b as qa, a as Qa, t as Xa, f as Ya, g as Za, c as Oa, i as Ea, s as ei } from "./index-C8KgQTfH.js";
|
|
2
2
|
import { ref as q, watch as Ye, createElementBlock as ke, openBlock as se, createVNode as ae, createBlock as Oe, createCommentVNode as Xe, withCtx as ve, resolveComponent as Ue, Fragment as je, renderList as Je, createElementVNode as E, toDisplayString as De, createTextVNode as Be, defineComponent as El, reactive as wa, resolveDynamicComponent as da, unref as Al, computed as Da, renderSlot as pa, createSlots as li, mergeProps as ai, normalizeStyle as ii, withModifiers as ra } from "vue";
|
|
3
|
-
import { p as al, b as Ia, s as sl, c as l, a as Va, u as xa, m as si } from "./login-
|
|
4
|
-
import { e as el, f as Ra, s as ll, h as Ua, a as Sa, i as ni, j as oi, b as ui } from "./index-
|
|
5
|
-
import { bp as ri, bq as ci, a as ba, E as ol, g as gl, bl as ka, b as ja, bj as Pa, bk as ya, bm as di } from "./index-
|
|
6
|
-
import { F as $a, A as ti, I as _a, B as pi, C as Qe, D as Fl, E as fl, G as Tl, H as ga, J as fi, g as hl, K as hi, L as vi } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { p as al, b as Ia, s as sl, c as l, a as Va, u as xa, m as si } from "./login-Dxsw3cch.js";
|
|
4
|
+
import { e as el, f as Ra, s as ll, h as Ua, a as Sa, i as ni, j as oi, b as ui } from "./index-Bidjqofb.js";
|
|
5
|
+
import { bp as ri, bq as ci, a as ba, E as ol, g as gl, bl as ka, b as ja, bj as Pa, bk as ya, bm as di } from "./index-BHZ56TUj.js";
|
|
6
|
+
import { F as $a, A as ti, I as _a, B as pi, C as Qe, D as Fl, E as fl, G as Tl, H as ga, J as fi, g as hl, K as hi, L as vi } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C_N41ilG.js";
|
|
7
7
|
import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
import { E as bl } from "./index-
|
|
9
|
-
import { s as mi, a as yi } from "./index-
|
|
8
|
+
import { E as bl } from "./index-BYl3ZfMW.js";
|
|
9
|
+
import { s as mi, a as yi } from "./index-50HGqFLU.js";
|
|
10
10
|
import gi from "./index-CZtXRS3l.js";
|
|
11
11
|
var bi = "[object Boolean]";
|
|
12
12
|
function Ka(r) {
|
|
@@ -33,11 +33,11 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
33
33
|
setup(r, { emit: V }) {
|
|
34
34
|
const g = q(!1), i = q(!1), o = q(""), j = () => {
|
|
35
35
|
g.value = !1, i.value = null, o.value = "";
|
|
36
|
-
}, L = r, w = V, N = q([]), ee = q(), O = q(!1), ce = q(!1), oe = q([]), _e = q(), te = qa(al), be = Qa(al), T = q(!1),
|
|
37
|
-
|
|
36
|
+
}, L = r, w = V, N = q([]), ee = q(), O = q(!1), ce = q(!1), oe = q([]), _e = q(), te = qa(al), be = Qa(al), T = q(!1), S = q(), me = Ia(al), { loginUserInfo: d } = sl(me), f = q(), m = q(!0), k = (C, Z) => {
|
|
37
|
+
f.value === Z ? m.value = !1 : m.value = !0, f.value = Z == null ? void 0 : Z.changeProp;
|
|
38
38
|
}, ue = async (C) => {
|
|
39
|
-
var x, s, c, D, I, W, H,
|
|
40
|
-
let
|
|
39
|
+
var x, s, c, D, I, W, H, B, u, X;
|
|
40
|
+
let Z = [];
|
|
41
41
|
if ((x = C == null ? void 0 : C.toString()) != null && x.includes(".urdf")) {
|
|
42
42
|
o.value = C, g.value = !0;
|
|
43
43
|
return;
|
|
@@ -47,13 +47,13 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
47
47
|
if (Array.isArray(C) ? z = C : z = C == null ? void 0 : C.split(","), z == null || z.forEach((R) => {
|
|
48
48
|
R.includes(".mtl") ? pe.push(R) : Q.blob = Q.blob ? Q.blob + "," + R : R;
|
|
49
49
|
}), (pe == null ? void 0 : pe.length) > 0 && (Q.mtlBlobs = pe), (H = (W = Object.values(Q)) == null ? void 0 : W[0]) != null && H.includes("http:"))
|
|
50
|
-
|
|
50
|
+
Z.push(Q);
|
|
51
51
|
else {
|
|
52
52
|
const R = new Blob([Q.blob], {
|
|
53
53
|
type: "application/octet-stream;charset=UTF-8"
|
|
54
54
|
});
|
|
55
55
|
let P = URL.createObjectURL(R), U = "";
|
|
56
|
-
(
|
|
56
|
+
(B = C == null ? void 0 : C.split("/")) == null || B.forEach((A, fe) => {
|
|
57
57
|
var le;
|
|
58
58
|
fe === ((le = C == null ? void 0 : C.split("/")) == null ? void 0 : le.length) - 1 && (U = A);
|
|
59
59
|
}), (u = Q.blob) != null && u.includes(".stl") && (U = (U == null ? void 0 : U.replaceAll(">", "")) + ".urdf"), _e.value = [{
|
|
@@ -79,15 +79,15 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
79
79
|
blobUrl: Q
|
|
80
80
|
}], ce.value = !0;
|
|
81
81
|
}
|
|
82
|
-
(
|
|
82
|
+
(Z == null ? void 0 : Z.length) > 0 && be.setBlobUrls(Z);
|
|
83
83
|
}, ge = () => {
|
|
84
84
|
ce.value = !1;
|
|
85
85
|
}, Ie = (C) => {
|
|
86
86
|
var D, I, W, H;
|
|
87
|
-
const
|
|
87
|
+
const Z = (I = (D = l(L.itemData)) == null ? void 0 : D.find((B) => (B == null ? void 0 : B.key) === "formContent")) == null ? void 0 : I.contents, x = l(C.content);
|
|
88
88
|
let s = {};
|
|
89
|
-
x && ((W = Object.values(x)) == null ? void 0 : W.length) > 0 && ((H = Object.values(x)) == null || H.forEach((
|
|
90
|
-
s[
|
|
89
|
+
x && ((W = Object.values(x)) == null ? void 0 : W.length) > 0 && ((H = Object.values(x)) == null || H.forEach((B, u) => {
|
|
90
|
+
s[Z[u].key] = B;
|
|
91
91
|
}));
|
|
92
92
|
const c = {
|
|
93
93
|
content: s,
|
|
@@ -96,105 +96,106 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
96
96
|
};
|
|
97
97
|
w("change", c);
|
|
98
98
|
}, Fe = async (C) => {
|
|
99
|
-
var
|
|
99
|
+
var B, u, X, z, pe, Q, R, P, U, A, fe, le;
|
|
100
100
|
if (!C) return;
|
|
101
|
-
const
|
|
102
|
-
let x =
|
|
101
|
+
const Z = l(L.itemData);
|
|
102
|
+
let x = Z == null ? void 0 : Z.map((F) => {
|
|
103
103
|
var b;
|
|
104
|
-
return (
|
|
105
|
-
var
|
|
106
|
-
return
|
|
104
|
+
return (F == null ? void 0 : F.key) === "formContent" && ((b = F.contents) == null || b.map((y, J) => {
|
|
105
|
+
var p, n, Y, e, a, t, v, _, M, ye, K, ie, ne, Ce, de, G, h;
|
|
106
|
+
return y.type = y != null && y.type ? y.type : (e = (Y = (n = (p = y == null ? void 0 : y.key) == null ? void 0 : p.split("$")) == null ? void 0 : n[1]) == null ? void 0 : Y.split("(")) != null && e[0] ? (t = (a = $a) == null ? void 0 : a.find((he) => {
|
|
107
107
|
var re, we, Pe, Ke;
|
|
108
|
-
return (he == null ? void 0 : he.key) === ((Ke = (Pe = (we = (re =
|
|
109
|
-
})) == null ? void 0 : t.value : "Input",
|
|
108
|
+
return (he == null ? void 0 : he.key) === ((Ke = (Pe = (we = (re = y == null ? void 0 : y.key) == null ? void 0 : re.split("$")) == null ? void 0 : we[1]) == null ? void 0 : Pe.split("(")) == null ? void 0 : Ke[0]);
|
|
109
|
+
})) == null ? void 0 : t.value : "Input", y.options = y != null && y.options ? y.options : ((M = (_ = (v = y == null ? void 0 : y.key) == null ? void 0 : v.split("$")) == null ? void 0 : _[1]) == null ? void 0 : M.length) > 0 ? (ne = (ie = Ya((K = (ye = y == null ? void 0 : y.key) == null ? void 0 : ye.split("$")) == null ? void 0 : K[1])) == null ? void 0 : ie.split(",")) == null ? void 0 : ne.map((he) => ({
|
|
110
110
|
label: he,
|
|
111
111
|
value: he
|
|
112
|
-
})) : [], (Ce =
|
|
113
|
-
})),
|
|
114
|
-
}), s = l(N).value, c = (u = (
|
|
115
|
-
if (s = s == null ? void 0 : s.map((
|
|
112
|
+
})) : [], (Ce = y == null ? void 0 : y.key) != null && Ce.includes("$") && (y.key = (G = (de = y == null ? void 0 : y.key) == null ? void 0 : de.split("$")) == null ? void 0 : G[0]), y.value = (h = Object.values(C)) == null ? void 0 : h[J], y;
|
|
113
|
+
})), F;
|
|
114
|
+
}), s = l(N).value, c = (u = (B = l(x)) == null ? void 0 : B.find((F) => (F == null ? void 0 : F.key) === "formContent")) == null ? void 0 : u.contents;
|
|
115
|
+
if (s = s == null ? void 0 : s.map((F) => {
|
|
116
116
|
var b;
|
|
117
|
-
return
|
|
118
|
-
}), !
|
|
117
|
+
return F.value = (b = c == null ? void 0 : c.find((y, J) => ((y == null ? void 0 : y.id) ?? J) === (F == null ? void 0 : F.id))) == null ? void 0 : b.value, F;
|
|
118
|
+
}), !m.value) {
|
|
119
119
|
w("contentChange", {
|
|
120
120
|
contents: x,
|
|
121
121
|
index: L.index
|
|
122
122
|
});
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
|
-
let D = "", I = (pe = (z = (X = l(x)) == null ? void 0 : X.find((
|
|
126
|
-
var
|
|
127
|
-
return (
|
|
125
|
+
let D = "", I = (pe = (z = (X = l(x)) == null ? void 0 : X.find((F) => (F == null ? void 0 : F.key) === "formContent")) == null ? void 0 : z.contents) == null ? void 0 : pe.find((F, b) => {
|
|
126
|
+
var y, J;
|
|
127
|
+
return (F == null ? void 0 : F.label) === f.value || b.toString() === ((J = (y = f.value) == null ? void 0 : y.split("t")) == null ? void 0 : J[1].toString());
|
|
128
128
|
});
|
|
129
|
-
if ((P = (R = (Q = l(x)) == null ? void 0 : Q.find((
|
|
130
|
-
var b,
|
|
131
|
-
D === "" && ((J = (
|
|
132
|
-
}), (U = I == null ? void 0 : I.optionUrl) != null && U.menuSelect &&
|
|
133
|
-
let
|
|
134
|
-
if (
|
|
135
|
-
var J,
|
|
136
|
-
D === ((
|
|
129
|
+
if ((P = (R = (Q = l(x)) == null ? void 0 : Q.find((F) => (F == null ? void 0 : F.key) === "formContent")) == null ? void 0 : R.contents) == null || P.forEach((F) => {
|
|
130
|
+
var b, y, J, p, n;
|
|
131
|
+
D === "" && ((J = (y = (b = F == null ? void 0 : F.optionUrl) == null ? void 0 : b.groupSelect) == null ? void 0 : y[1]) != null && J.includes("[")) && (D = (n = (p = F == null ? void 0 : F.optionUrl) == null ? void 0 : p.groupSelect) == null ? void 0 : n[1]);
|
|
132
|
+
}), (U = I == null ? void 0 : I.optionUrl) != null && U.menuSelect && m.value) {
|
|
133
|
+
let F = await Za(I), b;
|
|
134
|
+
if (F == null || F.forEach((y) => {
|
|
135
|
+
var J, p, n, Y, e, a, t, v, _, M;
|
|
136
|
+
D === ((p = (J = I == null ? void 0 : I.optionUrl) == null ? void 0 : J.groupSelect) == null ? void 0 : p[1]) && ((e = (Y = (n = I == null ? void 0 : I.optionUrl) == null ? void 0 : n.groupSelect) == null ? void 0 : Y[1]) != null && e.includes("[")) && ((M = l(y)) == null ? void 0 : M[(_ = (v = (t = (a = I == null ? void 0 : I.optionUrl) == null ? void 0 : a.groupSelect) == null ? void 0 : t[1]) == null ? void 0 : v.replaceAll("[", "")) == null ? void 0 : _.replaceAll("]", "")]) === (I == null ? void 0 : I.value) && (b = y);
|
|
137
137
|
}), b) {
|
|
138
|
-
let
|
|
139
|
-
|
|
140
|
-
var n,
|
|
141
|
-
return (b != null && b[
|
|
142
|
-
}),
|
|
143
|
-
var n,
|
|
144
|
-
return (n =
|
|
145
|
-
}), N.value = l(
|
|
146
|
-
let J = l(
|
|
147
|
-
J = J == null ? void 0 : J.map((
|
|
148
|
-
var n,
|
|
149
|
-
return (
|
|
138
|
+
let y = l(s);
|
|
139
|
+
y = y == null ? void 0 : y.map((p) => {
|
|
140
|
+
var n, Y, e, a, t, v, _, M, ye, K, ie;
|
|
141
|
+
return (b != null && b[p == null ? void 0 : p.label] || b != null && b[(a = (e = (Y = (n = p == null ? void 0 : p.optionUrl) == null ? void 0 : n.groupSelect) == null ? void 0 : Y[1]) == null ? void 0 : e.replaceAll("[", "")) == null ? void 0 : a.replaceAll("]", "")]) && ((_ = (v = (t = p == null ? void 0 : p.optionUrl) == null ? void 0 : t.groupSelect) == null ? void 0 : v[1]) != null && _.includes("[")) && (p.value = (b == null ? void 0 : b[p == null ? void 0 : p.label]) || (b == null ? void 0 : b[(ie = (K = (ye = (M = p == null ? void 0 : p.optionUrl) == null ? void 0 : M.groupSelect) == null ? void 0 : ye[1]) == null ? void 0 : K.replaceAll("[", "")) == null ? void 0 : ie.replaceAll("]", "")])), p;
|
|
142
|
+
}), y = y == null ? void 0 : y.map((p) => {
|
|
143
|
+
var n, Y, e;
|
|
144
|
+
return (n = p == null ? void 0 : p.optionUrl) != null && n.oldMenuSelect && (p.optionUrl.menuSelect = (e = (Y = l(p)) == null ? void 0 : Y.optionUrl) == null ? void 0 : e.oldMenuSelect), p;
|
|
145
|
+
}), N.value = l(y);
|
|
146
|
+
let J = l(y);
|
|
147
|
+
J = J == null ? void 0 : J.map((p) => {
|
|
148
|
+
var n, Y, e, a, t, v;
|
|
149
|
+
return (Y = (n = p == null ? void 0 : p.optionUrl) == null ? void 0 : n.menuSelect) != null && Y.some((_) => _ == null ? void 0 : _.includes("[")) && (p.optionUrl.oldMenuSelect = (a = (e = l(p)) == null ? void 0 : e.optionUrl) == null ? void 0 : a.menuSelect, p.optionUrl.menuSelect = (v = (t = p == null ? void 0 : p.optionUrl) == null ? void 0 : t.menuSelect) == null ? void 0 : v.map((_) => {
|
|
150
150
|
var M, ye, K, ie;
|
|
151
151
|
if (_ != null && _.includes("[")) {
|
|
152
152
|
let ne = (ye = (M = _ == null ? void 0 : _.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : M.split(":")) == null ? void 0 : ye[1];
|
|
153
|
-
_ = (ie = (K = l(
|
|
153
|
+
_ = (ie = (K = l(y)) == null ? void 0 : K.find((Ce) => (Ce == null ? void 0 : Ce.label) === ne)) == null ? void 0 : ie.value;
|
|
154
154
|
}
|
|
155
155
|
return _;
|
|
156
|
-
})),
|
|
156
|
+
})), p;
|
|
157
157
|
}), N.value = J;
|
|
158
158
|
} else
|
|
159
159
|
N.value = s;
|
|
160
|
+
x = x == null ? void 0 : x.map((y) => {
|
|
161
|
+
var J;
|
|
162
|
+
return (y == null ? void 0 : y.key) === "formContent" && (y.contents = (J = y.contents) == null ? void 0 : J.map((p) => {
|
|
163
|
+
var n, Y;
|
|
164
|
+
return p.value = ((Y = (n = l(N).value) == null ? void 0 : n.find((e) => (e == null ? void 0 : e.label) === (p == null ? void 0 : p.key))) == null ? void 0 : Y.value) ?? (p == null ? void 0 : p.value), p;
|
|
165
|
+
})), y;
|
|
166
|
+
});
|
|
160
167
|
}
|
|
161
|
-
|
|
162
|
-
var b;
|
|
163
|
-
return (S == null ? void 0 : S.key) === "formContent" && (S.contents = (b = S.contents) == null ? void 0 : b.map((m) => {
|
|
164
|
-
var J, f;
|
|
165
|
-
return m.value = ((f = (J = l(N).value) == null ? void 0 : J.find((n) => (n == null ? void 0 : n.label) === (m == null ? void 0 : m.key))) == null ? void 0 : f.value) ?? (m == null ? void 0 : m.value), m;
|
|
166
|
-
})), S;
|
|
167
|
-
}), y.value = !1, w("contentChange", {
|
|
168
|
+
m.value = !1, w("contentChange", {
|
|
168
169
|
contents: x,
|
|
169
170
|
index: L.index
|
|
170
171
|
});
|
|
171
172
|
let W = [], H = [];
|
|
172
|
-
if ((fe = l((A = x == null ? void 0 : x.find((
|
|
173
|
+
if ((fe = l((A = x == null ? void 0 : x.find((F) => (F == null ? void 0 : F.key) === "formContent")) == null ? void 0 : A.contents)) == null || fe.forEach((F) => {
|
|
173
174
|
var b;
|
|
174
|
-
Array.isArray(
|
|
175
|
+
Array.isArray(F == null ? void 0 : F.value) && ((b = F == null ? void 0 : F.value) != null && b.find((y) => {
|
|
175
176
|
var J;
|
|
176
|
-
return (J =
|
|
177
|
-
})) && (H =
|
|
177
|
+
return (J = y == null ? void 0 : y.url) == null ? void 0 : J.includes(".obj");
|
|
178
|
+
})) && (H = F == null ? void 0 : F.value);
|
|
178
179
|
}), (H == null ? void 0 : H.length) > 0) {
|
|
179
|
-
const
|
|
180
|
-
var
|
|
181
|
-
return (
|
|
180
|
+
const F = (le = l(H)) == null ? void 0 : le.filter((b) => {
|
|
181
|
+
var y;
|
|
182
|
+
return (y = b == null ? void 0 : b.url) == null ? void 0 : y.includes(".obj");
|
|
182
183
|
});
|
|
183
|
-
|
|
184
|
-
var J,
|
|
185
|
-
const
|
|
184
|
+
F == null || F.forEach((b) => {
|
|
185
|
+
var J, p, n, Y;
|
|
186
|
+
const y = (J = H == null ? void 0 : H.filter((e) => {
|
|
186
187
|
var a;
|
|
187
188
|
return (e == null ? void 0 : e.name) === (b == null ? void 0 : b.name) && ((a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".mtl"));
|
|
188
189
|
})) == null ? void 0 : J.map((e) => e == null ? void 0 : e.url);
|
|
189
190
|
W.push({
|
|
190
191
|
objUrl: b == null ? void 0 : b.url,
|
|
191
|
-
mtlUrls: ((
|
|
192
|
+
mtlUrls: ((p = H == null ? void 0 : H.filter((e) => {
|
|
192
193
|
var a;
|
|
193
194
|
return (e == null ? void 0 : e.name) === (b == null ? void 0 : b.name) && ((a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".mtl"));
|
|
194
|
-
})) == null ? void 0 :
|
|
195
|
+
})) == null ? void 0 : p.length) === 1 ? (Y = (n = H == null ? void 0 : H.filter((e) => {
|
|
195
196
|
var a;
|
|
196
197
|
return (e == null ? void 0 : e.name) === (b == null ? void 0 : b.name) && ((a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".mtl"));
|
|
197
|
-
})) == null ? void 0 : n[0]) == null ? void 0 :
|
|
198
|
+
})) == null ? void 0 : n[0]) == null ? void 0 : Y.url : y
|
|
198
199
|
});
|
|
199
200
|
}), be.setObjUrl(W);
|
|
200
201
|
}
|
|
@@ -202,11 +203,11 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
202
203
|
return Ye(
|
|
203
204
|
() => L.itemData,
|
|
204
205
|
async () => {
|
|
205
|
-
var D, I, W, H,
|
|
206
|
-
const C = (D = L.itemData) == null ? void 0 : D.find((le) => (le == null ? void 0 : le.key) === "formContent"),
|
|
207
|
-
if ((s == null ? void 0 : s.contents) === "纵向" ? O.value = !1 : O.value = !0, T.value = (c == null ? void 0 : c.contents) === void 0 ? !1 : c == null ? void 0 : c.contents,
|
|
208
|
-
const le = await ((z = C == null ? void 0 : C.contents) == null ? void 0 : z.map(async (n,
|
|
209
|
-
var K, ie, ne, Ce, de, G, h, he, re, we, Pe, Ke,
|
|
206
|
+
var D, I, W, H, B, u, X, z, pe, Q, R, P, U, A, fe;
|
|
207
|
+
const C = (D = L.itemData) == null ? void 0 : D.find((le) => (le == null ? void 0 : le.key) === "formContent"), Z = (I = l(L.itemData)) == null ? void 0 : I.find((le) => (le == null ? void 0 : le.key) === "formButton"), x = (W = l(L.itemData)) == null ? void 0 : W.find((le) => (le == null ? void 0 : le.key) === "formFlex"), s = (H = l(L.itemData)) == null ? void 0 : H.find((le) => (le == null ? void 0 : le.key) === "formWrap"), c = (B = l(L.itemData)) == null ? void 0 : B.find((le) => (le == null ? void 0 : le.key) === "enableWrap");
|
|
208
|
+
if ((s == null ? void 0 : s.contents) === "纵向" ? O.value = !1 : O.value = !0, T.value = (c == null ? void 0 : c.contents) === void 0 ? !1 : c == null ? void 0 : c.contents, S.value = typeof (x == null ? void 0 : x.contents) != "boolean" ? !(!(x != null && x.contents) === "" || ((u = x == null ? void 0 : x.contents) == null ? void 0 : u.toUpperCase()) === "VERTICAL") : x == null ? void 0 : x.contents, ((X = C == null ? void 0 : C.contents) == null ? void 0 : X.length) > 0 && Array.isArray(C == null ? void 0 : C.contents)) {
|
|
209
|
+
const le = await ((z = C == null ? void 0 : C.contents) == null ? void 0 : z.map(async (n, Y) => {
|
|
210
|
+
var K, ie, ne, Ce, de, G, h, he, re, we, Pe, Ke, $, Te, xe, Ve;
|
|
210
211
|
let e = (n == null ? void 0 : n.label) ?? (n == null ? void 0 : n.key) ?? "", a = (n == null ? void 0 : n.type) ?? "", t = (n == null ? void 0 : n.options) ?? [];
|
|
211
212
|
if ((K = n == null ? void 0 : n.key) != null && K.includes("$") && (e = (ie = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : ie[0], ((Ce = (ne = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : ne[1]) == null ? void 0 : Ce.length) > 0)) {
|
|
212
213
|
const [Ae, $e] = (G = (de = l(n == null ? void 0 : n.key).split("$")) == null ? void 0 : de[1]) == null ? void 0 : G.split(/[()]/);
|
|
@@ -220,13 +221,13 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
220
221
|
label: Ae,
|
|
221
222
|
value: Ae
|
|
222
223
|
})));
|
|
223
|
-
let _ = await ti((Ke = l(n)) == null ? void 0 : Ke.optionUrl), M = _ !== void 0 && !(n != null && n.value) ? _ : n != null && n.originalContent && (n == null ? void 0 : n.originalContent) !== "" ? n.originalContent : n != null && n.value ? n.value : (t == null ? void 0 : t.length) > 0 ? (
|
|
224
|
+
let _ = await ti((Ke = l(n)) == null ? void 0 : Ke.optionUrl), M = _ !== void 0 && !(n != null && n.value) ? _ : n != null && n.originalContent && (n == null ? void 0 : n.originalContent) !== "" ? n.originalContent : n != null && n.value ? n.value : (t == null ? void 0 : t.length) > 0 ? ($ = t == null ? void 0 : t[0]) == null ? void 0 : $.value : (n == null ? void 0 : n.value) ?? "";
|
|
224
225
|
return typeof M == "string" && (M != null && M.includes("loginUser")) && (M = ((Te = d.value) == null ? void 0 : Te.姓名) ?? ((xe = d.value) == null ? void 0 : xe.userName) ?? ((Ve = d.value) == null ? void 0 : Ve.account)), {
|
|
225
226
|
label: e ?? "",
|
|
226
|
-
name: "t" +
|
|
227
|
+
name: "t" + Y,
|
|
227
228
|
type: _ !== void 0 || a === "" ? "Input" : a,
|
|
228
229
|
value: n != null && n.isNewDate && M === "" ? /* @__PURE__ */ new Date() : M,
|
|
229
|
-
id: (n == null ? void 0 : n.id) ??
|
|
230
|
+
id: (n == null ? void 0 : n.id) ?? Y,
|
|
230
231
|
contents: (v == null ? void 0 : v.length) > 0 ? v : t ?? [],
|
|
231
232
|
width: (n == null ? void 0 : n.width) ?? 1,
|
|
232
233
|
config: n == null ? void 0 : n.config,
|
|
@@ -234,44 +235,44 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
234
235
|
isFormColHidden: n == null ? void 0 : n.isFormColHidden,
|
|
235
236
|
isMain: n == null ? void 0 : n.isMain
|
|
236
237
|
};
|
|
237
|
-
})),
|
|
238
|
-
let
|
|
238
|
+
})), F = await Promise.all(le), b = F == null ? void 0 : F.map((n) => n == null ? void 0 : n.value);
|
|
239
|
+
let y = "";
|
|
239
240
|
b == null || b.forEach((n) => {
|
|
240
|
-
n !== "" && n !== void 0 && (
|
|
241
|
-
}), te.setSelectArray(b), te.setSelectString(
|
|
242
|
-
let J = [],
|
|
241
|
+
n !== "" && n !== void 0 && (y = y === "" ? n : y + "/" + n);
|
|
242
|
+
}), te.setSelectArray(b), te.setSelectString(y), N.value = (pe = l(F)) == null ? void 0 : pe.map((n) => (n != null && n.value && _a(n == null ? void 0 : n.value) && Array.isArray(JSON.parse(n == null ? void 0 : n.value)) && (n.value = JSON.parse(n.value)), n));
|
|
243
|
+
let J = [], p = [];
|
|
243
244
|
if ((Q = l(N.value)) == null || Q.forEach((n) => {
|
|
244
|
-
var
|
|
245
|
-
Array.isArray(n == null ? void 0 : n.value) && ((
|
|
245
|
+
var Y;
|
|
246
|
+
Array.isArray(n == null ? void 0 : n.value) && ((Y = n == null ? void 0 : n.value) != null && Y.find((e) => {
|
|
246
247
|
var a;
|
|
247
248
|
return (a = e == null ? void 0 : e.url) == null ? void 0 : a.includes(".obj");
|
|
248
|
-
})) && (
|
|
249
|
-
}), (
|
|
250
|
-
const n = (R = l(
|
|
249
|
+
})) && (p = n == null ? void 0 : n.value);
|
|
250
|
+
}), (p == null ? void 0 : p.length) > 0) {
|
|
251
|
+
const n = (R = l(p)) == null ? void 0 : R.filter((Y) => {
|
|
251
252
|
var e;
|
|
252
|
-
return (e =
|
|
253
|
+
return (e = Y == null ? void 0 : Y.url) == null ? void 0 : e.includes(".obj");
|
|
253
254
|
});
|
|
254
|
-
n == null || n.forEach((
|
|
255
|
+
n == null || n.forEach((Y) => {
|
|
255
256
|
var a, t, v, _;
|
|
256
|
-
const e = (a =
|
|
257
|
+
const e = (a = p == null ? void 0 : p.filter((M) => {
|
|
257
258
|
var ye;
|
|
258
|
-
return (M == null ? void 0 : M.name) === (
|
|
259
|
+
return (M == null ? void 0 : M.name) === (Y == null ? void 0 : Y.name) && ((ye = M == null ? void 0 : M.url) == null ? void 0 : ye.includes(".mtl"));
|
|
259
260
|
})) == null ? void 0 : a.map((M) => M == null ? void 0 : M.url);
|
|
260
261
|
J.push({
|
|
261
|
-
objUrl:
|
|
262
|
-
mtlUrls: ((t =
|
|
262
|
+
objUrl: Y == null ? void 0 : Y.url,
|
|
263
|
+
mtlUrls: ((t = p == null ? void 0 : p.filter((M) => {
|
|
263
264
|
var ye;
|
|
264
|
-
return (M == null ? void 0 : M.name) === (
|
|
265
|
-
})) == null ? void 0 : t.length) === 1 ? (_ = (v =
|
|
265
|
+
return (M == null ? void 0 : M.name) === (Y == null ? void 0 : Y.name) && ((ye = M == null ? void 0 : M.url) == null ? void 0 : ye.includes(".mtl"));
|
|
266
|
+
})) == null ? void 0 : t.length) === 1 ? (_ = (v = p == null ? void 0 : p.filter((M) => {
|
|
266
267
|
var ye;
|
|
267
|
-
return (M == null ? void 0 : M.name) === (
|
|
268
|
+
return (M == null ? void 0 : M.name) === (Y == null ? void 0 : Y.name) && ((ye = M == null ? void 0 : M.url) == null ? void 0 : ye.includes(".mtl"));
|
|
268
269
|
})) == null ? void 0 : v[0]) == null ? void 0 : _.url : e
|
|
269
270
|
});
|
|
270
271
|
}), be.setObjUrl(J);
|
|
271
272
|
}
|
|
272
273
|
(P = l(N.value)) == null || P.forEach((n) => {
|
|
273
|
-
var
|
|
274
|
-
if ((e = (
|
|
274
|
+
var Y, e, a, t, v, _, M, ye, K, ie, ne, Ce, de;
|
|
275
|
+
if ((e = (Y = n == null ? void 0 : n.value) == null ? void 0 : Y.toString()) != null && e.includes(".stl") || (t = (a = n == null ? void 0 : n.value) == null ? void 0 : a.toString()) != null && t.includes(".STL") || (_ = (v = n == null ? void 0 : n.value) == null ? void 0 : v.toString()) != null && _.includes(".obj") || (ye = (M = n == null ? void 0 : n.value) == null ? void 0 : M.toString()) != null && ye.includes(".mtl") || (ie = (K = n == null ? void 0 : n.value) == null ? void 0 : K.toString()) != null && ie.includes(".urdf")) {
|
|
275
276
|
let G = {}, h = [], he;
|
|
276
277
|
Array.isArray(n == null ? void 0 : n.value) ? he = n == null ? void 0 : n.value : he = (ne = n == null ? void 0 : n.value) == null ? void 0 : ne.split(","), he == null || he.forEach((re) => {
|
|
277
278
|
re.includes(".mtl") ? h.push(re) : G.blob = G.blob === "undefined" ? re : G.blob + "," + re;
|
|
@@ -284,27 +285,27 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
284
285
|
ee.value = L == null ? void 0 : L.formRules;
|
|
285
286
|
else {
|
|
286
287
|
let le = {};
|
|
287
|
-
(U = l(N).value) == null || U.forEach((
|
|
288
|
-
(
|
|
288
|
+
(U = l(N).value) == null || U.forEach((F) => {
|
|
289
|
+
(F == null ? void 0 : F.isMain) === !0 && (le[F.name] = [
|
|
289
290
|
{ required: !0 }
|
|
290
291
|
]);
|
|
291
292
|
}), ee.value = le;
|
|
292
293
|
}
|
|
293
|
-
if (((A =
|
|
294
|
+
if (((A = Z == null ? void 0 : Z.contents) == null ? void 0 : A.length) > 0) {
|
|
294
295
|
const le = [];
|
|
295
|
-
(fe =
|
|
296
|
-
(
|
|
297
|
-
label: (
|
|
298
|
-
id: (
|
|
299
|
-
type: (
|
|
300
|
-
background:
|
|
296
|
+
(fe = Z == null ? void 0 : Z.contents) == null || fe.forEach((F, b) => {
|
|
297
|
+
(F == null ? void 0 : F.label) !== "" && le.push({
|
|
298
|
+
label: (F == null ? void 0 : F.label) ?? "",
|
|
299
|
+
id: (F == null ? void 0 : F.id) ?? b,
|
|
300
|
+
type: (F == null ? void 0 : F.type) ?? "",
|
|
301
|
+
background: F == null ? void 0 : F.background
|
|
301
302
|
});
|
|
302
303
|
}), oe.value = le;
|
|
303
304
|
} else
|
|
304
305
|
oe.value = [];
|
|
305
306
|
},
|
|
306
307
|
{ deep: !0, immediate: !0 }
|
|
307
|
-
), (C,
|
|
308
|
+
), (C, Z) => (se(), ke("div", _i, [
|
|
308
309
|
ae(el, {
|
|
309
310
|
rowContents: N.value,
|
|
310
311
|
formRules: ee.value,
|
|
@@ -338,7 +339,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
338
339
|
}, 8, ["visible"])) : Xe("", !0)
|
|
339
340
|
]));
|
|
340
341
|
}
|
|
341
|
-
}, Ba = /* @__PURE__ */ He(Ci, [["__scopeId", "data-v-
|
|
342
|
+
}, Ba = /* @__PURE__ */ He(Ci, [["__scopeId", "data-v-e48c215d"]]), fa = q(0), Na = (r) => {
|
|
342
343
|
var V;
|
|
343
344
|
return !r || (r == null ? void 0 : r.length) === 0 ? [] : (V = l(r)) == null ? void 0 : V.map((i) => (fa.value++, i = {
|
|
344
345
|
label: (i == null ? void 0 : i.label) ?? "",
|
|
@@ -499,12 +500,12 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
499
500
|
const g = r, i = V, o = q(!1), j = q(""), L = Oa(al), { tableIndex: w } = sl(L);
|
|
500
501
|
q(0);
|
|
501
502
|
const N = q(""), ee = q([]), O = q([]), ce = (d) => {
|
|
502
|
-
var
|
|
503
|
+
var m;
|
|
503
504
|
o.value = !0;
|
|
504
|
-
let
|
|
505
|
+
let f = [];
|
|
505
506
|
Ee == null || Ee.forEach((k) => {
|
|
506
507
|
let ue = l(w.value) + 1;
|
|
507
|
-
L.setTableIndex(ue),
|
|
508
|
+
L.setTableIndex(ue), f.push({
|
|
508
509
|
label: k == null ? void 0 : k.label,
|
|
509
510
|
name: k == null ? void 0 : k.label,
|
|
510
511
|
type: k.type,
|
|
@@ -512,37 +513,37 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
512
513
|
id: w.value,
|
|
513
514
|
contents: k == null ? void 0 : k.options
|
|
514
515
|
});
|
|
515
|
-
}), d != null && d.children && ((
|
|
516
|
+
}), d != null && d.children && ((m = d == null ? void 0 : d.children) == null ? void 0 : m.length) > 0 && f.push({
|
|
516
517
|
children: d == null ? void 0 : d.children,
|
|
517
518
|
isFormColHidden: !0
|
|
518
|
-
}), N.value = d == null ? void 0 : d.id, ee.value =
|
|
519
|
+
}), N.value = d == null ? void 0 : d.id, ee.value = f, O.value = f;
|
|
519
520
|
}, oe = (d) => {
|
|
520
521
|
i("fixChange", l(d));
|
|
521
522
|
}, _e = (d) => {
|
|
522
523
|
i("deleteChange", l(d));
|
|
523
524
|
}, te = (d) => {
|
|
524
525
|
o.value = !0;
|
|
525
|
-
let
|
|
526
|
-
Ee == null || Ee.forEach((
|
|
526
|
+
let f = [];
|
|
527
|
+
Ee == null || Ee.forEach((m) => {
|
|
527
528
|
let k = l(w.value) + 1;
|
|
528
|
-
L.setTableIndex(k),
|
|
529
|
-
label:
|
|
530
|
-
name:
|
|
531
|
-
type:
|
|
529
|
+
L.setTableIndex(k), f.push({
|
|
530
|
+
label: m == null ? void 0 : m.label,
|
|
531
|
+
name: m == null ? void 0 : m.label,
|
|
532
|
+
type: m.type,
|
|
532
533
|
value: "",
|
|
533
534
|
id: w.value,
|
|
534
|
-
contents:
|
|
535
|
+
contents: m == null ? void 0 : m.options
|
|
535
536
|
});
|
|
536
|
-
}), j.value = d == null ? void 0 : d.id, ee.value =
|
|
537
|
+
}), j.value = d == null ? void 0 : d.id, ee.value = f, O.value = f;
|
|
537
538
|
}, be = (d) => {
|
|
538
|
-
let
|
|
539
|
-
|
|
539
|
+
let f = l(O.value);
|
|
540
|
+
f = f == null ? void 0 : f.map((m) => (m.children || (m.value = d == null ? void 0 : d[m.name]), m)), O.value = f;
|
|
540
541
|
}, T = () => {
|
|
541
|
-
var
|
|
542
|
+
var f, m;
|
|
542
543
|
ee.value = O.value;
|
|
543
544
|
let d = {};
|
|
544
545
|
if (N.value !== "")
|
|
545
|
-
d.id = N.value, (
|
|
546
|
+
d.id = N.value, (f = ee.value) == null || f.forEach((k) => {
|
|
546
547
|
const ue = Ee == null ? void 0 : Ee.find((ge) => (ge == null ? void 0 : ge.label) === (k == null ? void 0 : k.label));
|
|
547
548
|
ue ? d[ue.key] = k.value : k != null && k.children && k.children.length > 0 && (d.children = k.children);
|
|
548
549
|
}), o.value = !1, i("fixChange", {
|
|
@@ -552,7 +553,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
552
553
|
});
|
|
553
554
|
else {
|
|
554
555
|
let k = l(w.value) + 1;
|
|
555
|
-
L.setTableIndex(k), d.id = "id" + w.value, (
|
|
556
|
+
L.setTableIndex(k), d.id = "id" + w.value, (m = ee.value) == null || m.forEach((ue) => {
|
|
556
557
|
const ge = Ee == null ? void 0 : Ee.find((Ie) => (Ie == null ? void 0 : Ie.label) === (ue == null ? void 0 : ue.label));
|
|
557
558
|
ge ? d[ge.key] = ue.value : ue != null && ue.children && ue.children.length > 0 && (d.children = ue.children);
|
|
558
559
|
}), o.value = !1, i("fixChange", {
|
|
@@ -562,7 +563,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
562
563
|
});
|
|
563
564
|
}
|
|
564
565
|
N.value = "", ee.value = [], O.value = [];
|
|
565
|
-
},
|
|
566
|
+
}, S = () => {
|
|
566
567
|
o.value = !1, N.value = "", j.value = "", ee.value = [], O.value = [];
|
|
567
568
|
}, me = (d) => {
|
|
568
569
|
bl.confirm("是否确认要删除", "", {
|
|
@@ -579,26 +580,26 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
579
580
|
).catch(() => {
|
|
580
581
|
});
|
|
581
582
|
};
|
|
582
|
-
return (d,
|
|
583
|
-
const
|
|
583
|
+
return (d, f) => {
|
|
584
|
+
const m = Ue("svg-icon");
|
|
584
585
|
return se(), ke("div", xi, [
|
|
585
586
|
(se(!0), ke(je, null, Je(g == null ? void 0 : g.tableChildContents, (k, ue) => (se(), ke("div", Ai, [
|
|
586
587
|
E("div", Ti, [
|
|
587
588
|
E("div", Ei, De(k.label), 1),
|
|
588
589
|
E("div", Si, [
|
|
589
|
-
ae(
|
|
590
|
+
ae(m, {
|
|
590
591
|
name: "ChildAdd",
|
|
591
592
|
class: "svg-icon-content",
|
|
592
593
|
style: { width: "24px", height: "24px" },
|
|
593
594
|
onClick: (ge) => te(k)
|
|
594
595
|
}, null, 8, ["onClick"]),
|
|
595
|
-
ae(
|
|
596
|
+
ae(m, {
|
|
596
597
|
name: "ChildFix",
|
|
597
598
|
class: "svg-icon-content",
|
|
598
599
|
style: { width: "24px", height: "24px" },
|
|
599
600
|
onClick: (ge) => ce(k)
|
|
600
601
|
}, null, 8, ["onClick"]),
|
|
601
|
-
ae(
|
|
602
|
+
ae(m, {
|
|
602
603
|
name: "ChildDelete",
|
|
603
604
|
class: "svg-icon-content",
|
|
604
605
|
style: { width: "24px", height: "24px" },
|
|
@@ -616,7 +617,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
616
617
|
]))), 256)),
|
|
617
618
|
ae(ll, {
|
|
618
619
|
visible: o.value,
|
|
619
|
-
onBeforeDestroy:
|
|
620
|
+
onBeforeDestroy: S,
|
|
620
621
|
width: 840
|
|
621
622
|
}, {
|
|
622
623
|
default: ve(() => [
|
|
@@ -632,7 +633,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
632
633
|
footer: ve(() => [
|
|
633
634
|
E("div", { class: "dialog-footer" }, [
|
|
634
635
|
E("div", {
|
|
635
|
-
onClick:
|
|
636
|
+
onClick: S,
|
|
636
637
|
class: "cancel-button button"
|
|
637
638
|
}, De("取消")),
|
|
638
639
|
E("div", {
|
|
@@ -656,12 +657,12 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
656
657
|
const g = r, i = V, o = q(!1), j = q(""), L = Oa(al), { tableIndex: w } = sl(L), N = q(""), ee = q([]), O = q([]), ce = (d) => {
|
|
657
658
|
i("fixChange", l(d));
|
|
658
659
|
}, oe = (d) => {
|
|
659
|
-
var
|
|
660
|
+
var m;
|
|
660
661
|
o.value = !0;
|
|
661
|
-
let
|
|
662
|
+
let f = [];
|
|
662
663
|
Ee == null || Ee.forEach((k) => {
|
|
663
664
|
let ue = l(w.value) + 1;
|
|
664
|
-
L.setTableIndex(ue),
|
|
665
|
+
L.setTableIndex(ue), f.push({
|
|
665
666
|
label: k == null ? void 0 : k.label,
|
|
666
667
|
name: k == null ? void 0 : k.label,
|
|
667
668
|
type: k.type,
|
|
@@ -669,33 +670,33 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
669
670
|
id: w.value,
|
|
670
671
|
contents: k == null ? void 0 : k.options
|
|
671
672
|
});
|
|
672
|
-
}), d != null && d.children && ((
|
|
673
|
+
}), d != null && d.children && ((m = d == null ? void 0 : d.children) == null ? void 0 : m.length) > 0 && f.push({
|
|
673
674
|
children: d == null ? void 0 : d.children,
|
|
674
675
|
isFormColHidden: !0
|
|
675
|
-
}), N.value = d == null ? void 0 : d.id, ee.value =
|
|
676
|
+
}), N.value = d == null ? void 0 : d.id, ee.value = f, O.value = f;
|
|
676
677
|
}, _e = (d) => {
|
|
677
678
|
o.value = !0;
|
|
678
|
-
let
|
|
679
|
-
Ee == null || Ee.forEach((
|
|
679
|
+
let f = [];
|
|
680
|
+
Ee == null || Ee.forEach((m) => {
|
|
680
681
|
let k = l(w.value) + 1;
|
|
681
|
-
L.setTableIndex(k),
|
|
682
|
-
label:
|
|
683
|
-
name:
|
|
684
|
-
type:
|
|
682
|
+
L.setTableIndex(k), f.push({
|
|
683
|
+
label: m == null ? void 0 : m.label,
|
|
684
|
+
name: m == null ? void 0 : m.label,
|
|
685
|
+
type: m.type,
|
|
685
686
|
value: "",
|
|
686
687
|
id: w.value,
|
|
687
|
-
contents:
|
|
688
|
+
contents: m == null ? void 0 : m.options
|
|
688
689
|
});
|
|
689
|
-
}), j.value = d == null ? void 0 : d.id, ee.value =
|
|
690
|
+
}), j.value = d == null ? void 0 : d.id, ee.value = f, O.value = f;
|
|
690
691
|
}, te = (d) => {
|
|
691
|
-
let
|
|
692
|
-
|
|
692
|
+
let f = l(O.value);
|
|
693
|
+
f = f == null ? void 0 : f.map((m) => (m.children || (m.value = d == null ? void 0 : d[m.name]), m)), O.value = f;
|
|
693
694
|
}, be = () => {
|
|
694
|
-
var
|
|
695
|
+
var f, m;
|
|
695
696
|
ee.value = O.value;
|
|
696
697
|
let d = {};
|
|
697
698
|
if (N.value !== "")
|
|
698
|
-
d.id = N.value, (
|
|
699
|
+
d.id = N.value, (f = ee.value) == null || f.forEach((k) => {
|
|
699
700
|
const ue = Ee == null ? void 0 : Ee.find((ge) => (ge == null ? void 0 : ge.label) === (k == null ? void 0 : k.label));
|
|
700
701
|
ue ? d[ue.key] = k.value : k != null && k.children && k.children.length > 0 && (d.children = k.children);
|
|
701
702
|
}), o.value = !1, i("fixChange", {
|
|
@@ -705,7 +706,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
705
706
|
});
|
|
706
707
|
else {
|
|
707
708
|
let k = l(w.value) + 1;
|
|
708
|
-
L.setTableIndex(k), d.id = "idChild" + w.value, (
|
|
709
|
+
L.setTableIndex(k), d.id = "idChild" + w.value, (m = ee.value) == null || m.forEach((ue) => {
|
|
709
710
|
const ge = Ee == null ? void 0 : Ee.find((Ie) => (Ie == null ? void 0 : Ie.label) === (ue == null ? void 0 : ue.label));
|
|
710
711
|
ge ? d[ge.key] = ue.value : ue != null && ue.children && ue.children.length > 0 && (d.children = ue.children);
|
|
711
712
|
}), o.value = !1, i("fixChange", {
|
|
@@ -717,7 +718,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
717
718
|
N.value = "", ee.value = [], O.value = [];
|
|
718
719
|
}, T = () => {
|
|
719
720
|
o.value = !1, N.value = "", j.value = "", ee.value = [], O.value = [];
|
|
720
|
-
},
|
|
721
|
+
}, S = (d) => {
|
|
721
722
|
bl.confirm("是否确认要删除", "", {
|
|
722
723
|
confirmButtonText: "确认",
|
|
723
724
|
cancelButtonText: "取消",
|
|
@@ -734,30 +735,30 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
734
735
|
}, me = (d) => {
|
|
735
736
|
i("deleteChange", d);
|
|
736
737
|
};
|
|
737
|
-
return (d,
|
|
738
|
-
const
|
|
738
|
+
return (d, f) => {
|
|
739
|
+
const m = Ue("svg-icon"), k = Ue("el-button");
|
|
739
740
|
return se(), ke("div", Oi, [
|
|
740
741
|
(se(!0), ke(je, null, Je(g == null ? void 0 : g.tableChildContents, (ue, ge) => (se(), ke("div", Vi, [
|
|
741
742
|
E("div", Ri, [
|
|
742
743
|
E("div", Ui, De(ue.label), 1),
|
|
743
744
|
E("div", ji, [
|
|
744
|
-
ae(
|
|
745
|
+
ae(m, {
|
|
745
746
|
name: "ChildAdd",
|
|
746
747
|
class: "svg-icon-content",
|
|
747
748
|
style: { width: "24px", height: "24px" },
|
|
748
749
|
onClick: (Ie) => _e(ue)
|
|
749
750
|
}, null, 8, ["onClick"]),
|
|
750
|
-
ae(
|
|
751
|
+
ae(m, {
|
|
751
752
|
name: "ChildFix",
|
|
752
753
|
class: "svg-icon-content",
|
|
753
754
|
style: { width: "24px", height: "24px" },
|
|
754
755
|
onClick: (Ie) => oe(ue)
|
|
755
756
|
}, null, 8, ["onClick"]),
|
|
756
|
-
ae(
|
|
757
|
+
ae(m, {
|
|
757
758
|
name: "ChildDelete",
|
|
758
759
|
class: "svg-icon-content",
|
|
759
760
|
style: { width: "24px", height: "24px" },
|
|
760
|
-
onClick: (Ie) =>
|
|
761
|
+
onClick: (Ie) => S(ue)
|
|
761
762
|
}, null, 8, ["onClick"])
|
|
762
763
|
])
|
|
763
764
|
]),
|
|
@@ -791,7 +792,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
791
792
|
class: "cancel-button button",
|
|
792
793
|
id: "themeBorderButton"
|
|
793
794
|
}, {
|
|
794
|
-
default: ve(() =>
|
|
795
|
+
default: ve(() => f[0] || (f[0] = [
|
|
795
796
|
Be(De("取消"))
|
|
796
797
|
])),
|
|
797
798
|
_: 1,
|
|
@@ -802,7 +803,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
802
803
|
onClick: be,
|
|
803
804
|
id: "themeButton"
|
|
804
805
|
}, {
|
|
805
|
-
default: ve(() =>
|
|
806
|
+
default: ve(() => f[1] || (f[1] = [
|
|
806
807
|
Be(De("确认"))
|
|
807
808
|
])),
|
|
808
809
|
_: 1,
|
|
@@ -829,46 +830,46 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
829
830
|
},
|
|
830
831
|
emits: ["change"],
|
|
831
832
|
setup(r, { emit: V }) {
|
|
832
|
-
const g = r, i = V, o = q([]), j = q(!1), L = q(!1), w = q([]), N = q(!1), ee = q([]), O = q(!1), ce = q([]), oe = q(""), _e = q(""), te = q([]), be = q([]), T = q([]),
|
|
833
|
+
const g = r, i = V, o = q([]), j = q(!1), L = q(!1), w = q([]), N = q(!1), ee = q([]), O = q(!1), ce = q([]), oe = q(""), _e = q(""), te = q([]), be = q([]), T = q([]), S = q([]), me = q(!1), d = q([]), f = q([]), m = q(0), k = q([]), ue = q([]), ge = q([]), Ie = () => {
|
|
833
834
|
me.value = !0;
|
|
834
835
|
let e = [];
|
|
835
836
|
vl == null || vl.forEach((a) => {
|
|
836
|
-
|
|
837
|
+
m.value++, e.push({
|
|
837
838
|
label: a == null ? void 0 : a.label,
|
|
838
839
|
name: a == null ? void 0 : a.label,
|
|
839
840
|
type: a.type,
|
|
840
841
|
value: (a == null ? void 0 : a.key) === "background" ? "var(--ssComponent-primary-color)" : "",
|
|
841
|
-
id:
|
|
842
|
+
id: m.value,
|
|
842
843
|
contents: a == null ? void 0 : a.options
|
|
843
844
|
});
|
|
844
|
-
}), d.value = e,
|
|
845
|
+
}), d.value = e, f.value = e;
|
|
845
846
|
}, Fe = () => {
|
|
846
847
|
var a, t, v;
|
|
847
848
|
L.value = !0;
|
|
848
849
|
let e = [];
|
|
849
850
|
(v = (t = (a = Qe) == null ? void 0 : a.find((_) => (_ == null ? void 0 : _.key) === "Input")) == null ? void 0 : t.value) == null || v.forEach((_) => {
|
|
850
|
-
|
|
851
|
+
m.value++, e.push({
|
|
851
852
|
label: _ == null ? void 0 : _.label,
|
|
852
853
|
name: _ == null ? void 0 : _.label,
|
|
853
854
|
type: _.type,
|
|
854
855
|
value: (_ == null ? void 0 : _.label) === "类型" ? "Input" : "",
|
|
855
|
-
id:
|
|
856
|
+
id: m.value,
|
|
856
857
|
contents: _ == null ? void 0 : _.options
|
|
857
858
|
});
|
|
858
859
|
}), k.value = e, ue.value = e;
|
|
859
860
|
}, C = (e) => {
|
|
860
861
|
e || (k.value = ue.value);
|
|
861
|
-
},
|
|
862
|
+
}, Z = async (e) => {
|
|
862
863
|
var a, t, v, _, M, ye, K, ie, ne, Ce, de, G;
|
|
863
864
|
if ((e == null ? void 0 : e.类型) !== ((t = (a = ue.value) == null ? void 0 : a.find((h) => (h == null ? void 0 : h.label) === "类型")) == null ? void 0 : t.value)) {
|
|
864
865
|
let h = [], he = await ((M = (_ = (v = Qe) == null ? void 0 : v.find((re) => (re == null ? void 0 : re.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : _.value) == null ? void 0 : M.value) ? await ((Ce = (ne = (ie = Qe) == null ? void 0 : ie.find((re) => (re == null ? void 0 : re.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : ne.value) == null ? void 0 : Ce.value) : (K = (ye = Qe) == null ? void 0 : ye.find((re) => (re == null ? void 0 : re.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : K.value;
|
|
865
866
|
if (he == null || he.forEach((re) => {
|
|
866
|
-
|
|
867
|
+
m.value++, h.push({
|
|
867
868
|
label: re == null ? void 0 : re.label,
|
|
868
869
|
name: re == null ? void 0 : re.label,
|
|
869
870
|
type: re.type,
|
|
870
871
|
value: (e == null ? void 0 : e[re.label]) ?? "",
|
|
871
|
-
id:
|
|
872
|
+
id: m.value,
|
|
872
873
|
contents: re == null ? void 0 : re.options
|
|
873
874
|
});
|
|
874
875
|
}), e != null && e.菜单选项 && ((de = e == null ? void 0 : e.菜单选项) == null ? void 0 : de.length) > 0) {
|
|
@@ -885,7 +886,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
885
886
|
h = Tl(h), ue.value = await fl(l(h));
|
|
886
887
|
}
|
|
887
888
|
}, x = async (e) => {
|
|
888
|
-
await
|
|
889
|
+
await Z(e), k.value = ue.value;
|
|
889
890
|
}, s = (e, a) => {
|
|
890
891
|
if (console.log(345, e), (a == null ? void 0 : a.type) == "Select" && (e == null ? void 0 : e.key) === "selectRelateType") {
|
|
891
892
|
const t = a == null ? void 0 : a.optionUrl;
|
|
@@ -912,13 +913,13 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
912
913
|
let a = [];
|
|
913
914
|
const t = await ((M = (_ = (v = Qe) == null ? void 0 : v.find((G) => (G == null ? void 0 : G.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : _.value) == null ? void 0 : M.value) ? await ((Ce = (ne = (ie = Qe) == null ? void 0 : ie.find((G) => (G == null ? void 0 : G.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : ne.value) == null ? void 0 : Ce.value) : (K = (ye = Qe) == null ? void 0 : ye.find((G) => (G == null ? void 0 : G.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : K.value;
|
|
914
915
|
if (t == null || t.forEach((G) => {
|
|
915
|
-
|
|
916
|
+
m.value++, a.push({
|
|
916
917
|
label: G == null ? void 0 : G.label,
|
|
917
918
|
name: G == null ? void 0 : G.label,
|
|
918
919
|
type: G.type,
|
|
919
920
|
// value: (t?.label === "类型" && content[t.key] === '') ? "Input" : content[t.key],
|
|
920
921
|
value: s(G, e),
|
|
921
|
-
id:
|
|
922
|
+
id: m.value,
|
|
922
923
|
contents: G == null ? void 0 : G.options
|
|
923
924
|
});
|
|
924
925
|
}), e != null && e.menuSelect && ((de = e == null ? void 0 : e.menuSelect) == null ? void 0 : de.length) > 0) {
|
|
@@ -947,7 +948,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
947
948
|
var v, _, M, ye, K, ie, ne, Ce, de, G;
|
|
948
949
|
k.value = ue.value;
|
|
949
950
|
let e = {};
|
|
950
|
-
oe.value !== "" ? e.id = oe.value : (
|
|
951
|
+
oe.value !== "" ? e.id = oe.value : (m.value++, e.id = "id" + m.value);
|
|
951
952
|
let a = await ((M = (_ = (v = Qe) == null ? void 0 : v.find((h) => {
|
|
952
953
|
var he, re;
|
|
953
954
|
return (h == null ? void 0 : h.key) === (((re = (he = k.value) == null ? void 0 : he.find((we) => (we == null ? void 0 : we.label) === "类型")) == null ? void 0 : re.value) ?? "label");
|
|
@@ -974,15 +975,15 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
974
975
|
me.value = !0;
|
|
975
976
|
let a = [];
|
|
976
977
|
vl == null || vl.forEach((t) => {
|
|
977
|
-
|
|
978
|
+
m.value++, a.push({
|
|
978
979
|
label: t == null ? void 0 : t.label,
|
|
979
980
|
name: t == null ? void 0 : t.label,
|
|
980
981
|
type: t.type,
|
|
981
982
|
value: e[t.key],
|
|
982
|
-
id:
|
|
983
|
+
id: m.value,
|
|
983
984
|
contents: t == null ? void 0 : t.options
|
|
984
985
|
});
|
|
985
|
-
}), oe.value = e == null ? void 0 : e.id, d.value = a,
|
|
986
|
+
}), oe.value = e == null ? void 0 : e.id, d.value = a, f.value = a;
|
|
986
987
|
};
|
|
987
988
|
Ye(
|
|
988
989
|
() => O.value,
|
|
@@ -996,7 +997,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
996
997
|
},
|
|
997
998
|
{ deep: !0 }
|
|
998
999
|
);
|
|
999
|
-
const
|
|
1000
|
+
const B = (e) => {
|
|
1000
1001
|
bl.confirm("是否确认要删除", "", {
|
|
1001
1002
|
confirmButtonText: "确认",
|
|
1002
1003
|
cancelButtonText: "取消",
|
|
@@ -1013,9 +1014,9 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1013
1014
|
});
|
|
1014
1015
|
}, u = () => {
|
|
1015
1016
|
var t, v, _, M, ye;
|
|
1016
|
-
d.value =
|
|
1017
|
+
d.value = f.value;
|
|
1017
1018
|
let e = {};
|
|
1018
|
-
if (oe.value !== "" ? e.id = oe.value : (
|
|
1019
|
+
if (oe.value !== "" ? e.id = oe.value : (m.value++, e.id = "id" + m.value), (t = d.value) == null || t.forEach((K) => {
|
|
1019
1020
|
const ie = vl == null ? void 0 : vl.find((ne) => (ne == null ? void 0 : ne.label) === (K == null ? void 0 : K.label));
|
|
1020
1021
|
ie ? e[ie.key] = K.value : K != null && K.children && K.children.length > 0 && (e.children = K.children);
|
|
1021
1022
|
}), (v = be.value) != null && v.find((K) => K.id === e.id))
|
|
@@ -1031,23 +1032,23 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1031
1032
|
contents: be.value
|
|
1032
1033
|
}), i("change", a);
|
|
1033
1034
|
}, X = (e) => {
|
|
1034
|
-
let a = l(
|
|
1035
|
-
a = a == null ? void 0 : a.map((t) => (t.children || (t.value = e == null ? void 0 : e[t.name]), t)),
|
|
1035
|
+
let a = l(f.value);
|
|
1036
|
+
a = a == null ? void 0 : a.map((t) => (t.children || (t.value = e == null ? void 0 : e[t.name]), t)), f.value = a;
|
|
1036
1037
|
}, z = () => {
|
|
1037
1038
|
me.value = !1, d.value = [], oe.value = "";
|
|
1038
1039
|
}, pe = (e) => {
|
|
1039
1040
|
N.value = !0;
|
|
1040
1041
|
let a = [];
|
|
1041
1042
|
ml == null || ml.forEach((t) => {
|
|
1042
|
-
|
|
1043
|
+
m.value++, a.push({
|
|
1043
1044
|
label: t == null ? void 0 : t.label,
|
|
1044
1045
|
name: t == null ? void 0 : t.label,
|
|
1045
1046
|
type: t.type,
|
|
1046
1047
|
value: e[t.key],
|
|
1047
|
-
id:
|
|
1048
|
+
id: m.value,
|
|
1048
1049
|
contents: t == null ? void 0 : t.options
|
|
1049
1050
|
});
|
|
1050
|
-
}), oe.value = e == null ? void 0 : e.id, T.value = a,
|
|
1051
|
+
}), oe.value = e == null ? void 0 : e.id, T.value = a, S.value = a;
|
|
1051
1052
|
}, Q = (e) => {
|
|
1052
1053
|
bl.confirm("是否确认要删除", "", {
|
|
1053
1054
|
confirmButtonText: "确认",
|
|
@@ -1067,12 +1068,12 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1067
1068
|
j.value = !0;
|
|
1068
1069
|
let e = [];
|
|
1069
1070
|
Ee == null || Ee.forEach((a) => {
|
|
1070
|
-
|
|
1071
|
+
m.value++, e.push({
|
|
1071
1072
|
label: a == null ? void 0 : a.label,
|
|
1072
1073
|
name: a == null ? void 0 : a.label,
|
|
1073
1074
|
type: a.type,
|
|
1074
1075
|
value: "",
|
|
1075
|
-
id:
|
|
1076
|
+
id: m.value,
|
|
1076
1077
|
contents: a == null ? void 0 : a.options
|
|
1077
1078
|
});
|
|
1078
1079
|
}), ee.value = e, ce.value = e;
|
|
@@ -1080,23 +1081,23 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1080
1081
|
N.value = !0;
|
|
1081
1082
|
let e = [];
|
|
1082
1083
|
ml == null || ml.forEach((a) => {
|
|
1083
|
-
|
|
1084
|
+
m.value++, e.push({
|
|
1084
1085
|
label: a == null ? void 0 : a.label,
|
|
1085
1086
|
name: a == null ? void 0 : a.label,
|
|
1086
1087
|
type: a.type,
|
|
1087
1088
|
value: "",
|
|
1088
|
-
id:
|
|
1089
|
+
id: m.value,
|
|
1089
1090
|
contents: a == null ? void 0 : a.options
|
|
1090
1091
|
});
|
|
1091
|
-
}), T.value = e,
|
|
1092
|
+
}), T.value = e, S.value = e;
|
|
1092
1093
|
}, U = (e) => {
|
|
1093
|
-
let a = l(
|
|
1094
|
-
a = a == null ? void 0 : a.map((t) => (t.children || (t.value = e == null ? void 0 : e[t.name]), t)),
|
|
1094
|
+
let a = l(S.value);
|
|
1095
|
+
a = a == null ? void 0 : a.map((t) => (t.children || (t.value = e == null ? void 0 : e[t.name]), t)), S.value = a;
|
|
1095
1096
|
}, A = () => {
|
|
1096
1097
|
var t, v, _, M, ye;
|
|
1097
|
-
T.value =
|
|
1098
|
+
T.value = S.value;
|
|
1098
1099
|
let e = {};
|
|
1099
|
-
if (oe.value !== "" ? e.id = oe.value : (
|
|
1100
|
+
if (oe.value !== "" ? e.id = oe.value : (m.value++, e.id = "id" + m.value), (t = T.value) == null || t.forEach((K) => {
|
|
1100
1101
|
const ie = ml == null ? void 0 : ml.find((ne) => (ne == null ? void 0 : ne.label) === (K == null ? void 0 : K.label));
|
|
1101
1102
|
ie ? e[ie.key] = K.value : K != null && K.children && K.children.length > 0 && (e.children = K.children);
|
|
1102
1103
|
}), (v = te.value) != null && v.find((K) => K.id === e.id))
|
|
@@ -1112,21 +1113,21 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1112
1113
|
contents: te.value
|
|
1113
1114
|
}), i("change", a);
|
|
1114
1115
|
}, fe = () => {
|
|
1115
|
-
N.value = !1, oe.value = "",
|
|
1116
|
+
N.value = !1, oe.value = "", S.value = [], T.value = [];
|
|
1116
1117
|
}, le = (e) => {
|
|
1117
1118
|
j.value = !0;
|
|
1118
1119
|
let a = [];
|
|
1119
1120
|
Ee == null || Ee.forEach((t) => {
|
|
1120
|
-
|
|
1121
|
+
m.value++, a.push({
|
|
1121
1122
|
label: t == null ? void 0 : t.label,
|
|
1122
1123
|
name: t == null ? void 0 : t.label,
|
|
1123
1124
|
type: t.type,
|
|
1124
1125
|
value: "",
|
|
1125
|
-
id:
|
|
1126
|
+
id: m.value,
|
|
1126
1127
|
contents: t == null ? void 0 : t.options
|
|
1127
1128
|
});
|
|
1128
1129
|
}), ee.value = a, _e.value = e == null ? void 0 : e.id, ce.value = a;
|
|
1129
|
-
},
|
|
1130
|
+
}, F = (e) => {
|
|
1130
1131
|
var a;
|
|
1131
1132
|
w.value = Ma(l(w.value), e == null ? void 0 : e.id), i("change", (a = l(g.originalItemContents)) == null ? void 0 : a.map((t) => {
|
|
1132
1133
|
var v;
|
|
@@ -1140,17 +1141,17 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1140
1141
|
key: "header",
|
|
1141
1142
|
contents: w.value
|
|
1142
1143
|
}), i("change", a);
|
|
1143
|
-
},
|
|
1144
|
+
}, y = (e) => {
|
|
1144
1145
|
var t;
|
|
1145
1146
|
j.value = !0;
|
|
1146
1147
|
let a = [];
|
|
1147
1148
|
Ee == null || Ee.forEach((v) => {
|
|
1148
|
-
|
|
1149
|
+
m.value++, a.push({
|
|
1149
1150
|
label: v == null ? void 0 : v.label,
|
|
1150
1151
|
name: v == null ? void 0 : v.label,
|
|
1151
1152
|
type: v.type,
|
|
1152
1153
|
value: e[v.key],
|
|
1153
|
-
id:
|
|
1154
|
+
id: m.value,
|
|
1154
1155
|
contents: v == null ? void 0 : v.options
|
|
1155
1156
|
});
|
|
1156
1157
|
}), e != null && e.children && ((t = e == null ? void 0 : e.children) == null ? void 0 : t.length) > 0 && a.push({
|
|
@@ -1160,13 +1161,13 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1160
1161
|
}, J = (e) => {
|
|
1161
1162
|
let a = l(ce.value);
|
|
1162
1163
|
a = a == null ? void 0 : a.map((t) => (t.children || (t.value = e == null ? void 0 : e[t.name]), t)), ce.value = a;
|
|
1163
|
-
},
|
|
1164
|
+
}, p = () => {
|
|
1164
1165
|
j.value = !1, oe.value = "", _e.value = "", ce.value = [];
|
|
1165
1166
|
}, n = () => {
|
|
1166
1167
|
var t, v, _, M, ye, K;
|
|
1167
1168
|
ee.value = ce.value;
|
|
1168
1169
|
let e = {};
|
|
1169
|
-
if (oe.value !== "" ? e.id = oe.value : (
|
|
1170
|
+
if (oe.value !== "" ? e.id = oe.value : (m.value++, e.id = "id" + m.value), (t = ee.value) == null || t.forEach((ie) => {
|
|
1170
1171
|
const ne = Ee == null ? void 0 : Ee.find((Ce) => (Ce == null ? void 0 : Ce.label) === (ie == null ? void 0 : ie.label));
|
|
1171
1172
|
ne ? e[ne.key] = ie.value : ie != null && ie.children && ie.children.length > 0 && (e.children = ie.children);
|
|
1172
1173
|
}), (v = w.value) != null && v.find((ie) => ie.id === e.id))
|
|
@@ -1181,7 +1182,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1181
1182
|
key: "header",
|
|
1182
1183
|
contents: w.value
|
|
1183
1184
|
}), i("change", a);
|
|
1184
|
-
},
|
|
1185
|
+
}, Y = (e) => {
|
|
1185
1186
|
bl.confirm("是否确认要删除", "", {
|
|
1186
1187
|
confirmButtonText: "确认",
|
|
1187
1188
|
cancelButtonText: "取消",
|
|
@@ -1205,53 +1206,53 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1205
1206
|
() => {
|
|
1206
1207
|
var e, a, t, v, _, M, ye, K, ie, ne, Ce, de, G, h, he, re, we, Pe, Ke;
|
|
1207
1208
|
if (!(!g.originalItemContents || g.originalItemContents.length === 0))
|
|
1208
|
-
if (o.value = l(g.originalItemContents), w.value = (a = (e = o.value) == null ? void 0 : e.find((
|
|
1209
|
-
label: (
|
|
1210
|
-
prop: (
|
|
1211
|
-
width:
|
|
1212
|
-
fixed: (
|
|
1213
|
-
sortable: (
|
|
1214
|
-
align: (
|
|
1215
|
-
showOverflowTooltip: (
|
|
1216
|
-
isNotDrag: (
|
|
1217
|
-
isEditCol: (
|
|
1218
|
-
isOperate: (
|
|
1219
|
-
id: (
|
|
1220
|
-
formMenuSelect: (
|
|
1221
|
-
groupSelect: (
|
|
1222
|
-
},
|
|
1223
|
-
label: (
|
|
1224
|
-
type: (
|
|
1225
|
-
textColor: (
|
|
1226
|
-
id: (
|
|
1227
|
-
}), be.value = (we = be.value) == null ? void 0 : we.map((
|
|
1228
|
-
label: (
|
|
1229
|
-
type: (
|
|
1230
|
-
background: (
|
|
1231
|
-
id: (
|
|
1209
|
+
if (o.value = l(g.originalItemContents), w.value = (a = (e = o.value) == null ? void 0 : e.find(($) => ($ == null ? void 0 : $.key) === "header")) == null ? void 0 : a.contents, te.value = (v = (t = o.value) == null ? void 0 : t.find(($) => ($ == null ? void 0 : $.key) === "rowButton")) == null ? void 0 : v.contents, be.value = (M = (_ = o.value) == null ? void 0 : _.find(($) => ($ == null ? void 0 : $.key) === "extraButton")) == null ? void 0 : M.contents, O.value = (K = (ye = o.value) == null ? void 0 : ye.find(($) => ($ == null ? void 0 : $.key) === "page")) != null && K.contents ? !!((ne = (ie = o.value) == null ? void 0 : ie.find(($) => ($ == null ? void 0 : $.key) === "page")) != null && ne.contents) : !1, ge.value = (de = (Ce = o.value) == null ? void 0 : Ce.find(($) => ($ == null ? void 0 : $.key) === "tableToForm")) == null ? void 0 : de.contents, w.value = (G = w.value) == null ? void 0 : G.map(($, Te) => (Array.isArray($) ? $ = wi($) : $ = {
|
|
1210
|
+
label: ($ == null ? void 0 : $.label) ?? "",
|
|
1211
|
+
prop: ($ == null ? void 0 : $.label) === "操作" ? "operate" : $ == null ? void 0 : $.prop,
|
|
1212
|
+
width: $ != null && $.width ? parseInt($.width) : "",
|
|
1213
|
+
fixed: ($ == null ? void 0 : $.fixed) ?? void 0,
|
|
1214
|
+
sortable: ($ == null ? void 0 : $.sortable) ?? !1,
|
|
1215
|
+
align: ($ == null ? void 0 : $.align) ?? "left",
|
|
1216
|
+
showOverflowTooltip: ($ == null ? void 0 : $.showOverflowTooltip) ?? !0,
|
|
1217
|
+
isNotDrag: ($ == null ? void 0 : $.isNotDrag) ?? !1,
|
|
1218
|
+
isEditCol: ($ == null ? void 0 : $.isEditCol) ?? !1,
|
|
1219
|
+
isOperate: ($ == null ? void 0 : $.isOperate) ?? !1,
|
|
1220
|
+
id: ($ == null ? void 0 : $.id) ?? Te,
|
|
1221
|
+
formMenuSelect: ($ == null ? void 0 : $.formMenuSelect) ?? void 0,
|
|
1222
|
+
groupSelect: ($ == null ? void 0 : $.groupSelect) ?? void 0
|
|
1223
|
+
}, $)), w.value = (h = w.value) != null && h.every(($) => Array.isArray($)) ? (he = w.value) == null ? void 0 : he[0] : w.value, te.value = (re = te.value) == null ? void 0 : re.map(($, Te) => $ = {
|
|
1224
|
+
label: ($ == null ? void 0 : $.label) ?? "",
|
|
1225
|
+
type: ($ == null ? void 0 : $.type) ?? "",
|
|
1226
|
+
textColor: ($ == null ? void 0 : $.textColor) ?? "#000000",
|
|
1227
|
+
id: ($ == null ? void 0 : $.id) ?? Te
|
|
1228
|
+
}), be.value = (we = be.value) == null ? void 0 : we.map(($, Te) => $ = {
|
|
1229
|
+
label: ($ == null ? void 0 : $.label) ?? "",
|
|
1230
|
+
type: ($ == null ? void 0 : $.type) ?? "",
|
|
1231
|
+
background: ($ == null ? void 0 : $.background) ?? "var(--ssComponent-primary-color)",
|
|
1232
|
+
id: ($ == null ? void 0 : $.id) ?? Te
|
|
1232
1233
|
}), ge.value)
|
|
1233
|
-
ge.value = (Ke = ge.value) == null ? void 0 : Ke.map((
|
|
1234
|
-
|
|
1235
|
-
let Te =
|
|
1236
|
-
return Te.id =
|
|
1234
|
+
ge.value = (Ke = ge.value) == null ? void 0 : Ke.map(($) => {
|
|
1235
|
+
m.value++;
|
|
1236
|
+
let Te = $;
|
|
1237
|
+
return Te.id = m.value, Te;
|
|
1237
1238
|
});
|
|
1238
1239
|
else {
|
|
1239
|
-
let
|
|
1240
|
+
let $ = [];
|
|
1240
1241
|
const Te = (Pe = pi(l(w.value))) == null ? void 0 : Pe.filter((xe) => (xe == null ? void 0 : xe.prop) !== "operate");
|
|
1241
1242
|
Te == null || Te.forEach((xe) => {
|
|
1242
1243
|
var Ve;
|
|
1243
|
-
|
|
1244
|
+
m.value++, $.push({
|
|
1244
1245
|
label: xe == null ? void 0 : xe.label,
|
|
1245
1246
|
name: xe == null ? void 0 : xe.label,
|
|
1246
1247
|
type: xe != null && xe.groupSelect ? "Select" : "Input",
|
|
1247
1248
|
value: "",
|
|
1248
|
-
id:
|
|
1249
|
+
id: m.value,
|
|
1249
1250
|
contents: xe == null ? void 0 : xe.options,
|
|
1250
1251
|
menuSelect: xe == null ? void 0 : xe.formMenuSelect,
|
|
1251
1252
|
groupSelect: (Ve = xe == null ? void 0 : xe.groupSelect) == null ? void 0 : Ve.split(":"),
|
|
1252
1253
|
selectRelateType: "关联绑定列"
|
|
1253
1254
|
});
|
|
1254
|
-
}), ge.value =
|
|
1255
|
+
}), ge.value = $;
|
|
1255
1256
|
}
|
|
1256
1257
|
},
|
|
1257
1258
|
{ deep: !0, immediate: !0 }
|
|
@@ -1294,20 +1295,20 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1294
1295
|
name: "ChildFix",
|
|
1295
1296
|
class: "svg-icon-content",
|
|
1296
1297
|
style: { width: "24px", height: "24px" },
|
|
1297
|
-
onClick: (ye) =>
|
|
1298
|
+
onClick: (ye) => y(_)
|
|
1298
1299
|
}, null, 8, ["onClick"]),
|
|
1299
1300
|
ae(t, {
|
|
1300
1301
|
name: "ChildDelete",
|
|
1301
1302
|
class: "svg-icon-content",
|
|
1302
1303
|
style: { width: "24px", height: "24px" },
|
|
1303
|
-
onClick: (ye) =>
|
|
1304
|
+
onClick: (ye) => Y(_)
|
|
1304
1305
|
}, null, 8, ["onClick"])
|
|
1305
1306
|
])
|
|
1306
1307
|
]),
|
|
1307
1308
|
_ != null && _.children && _.children.length > 0 ? (se(), ke("div", Xi, [
|
|
1308
1309
|
ae(Ha, {
|
|
1309
1310
|
tableChildContents: _ == null ? void 0 : _.children,
|
|
1310
|
-
onDeleteChange:
|
|
1311
|
+
onDeleteChange: F,
|
|
1311
1312
|
onFixChange: b
|
|
1312
1313
|
}, null, 8, ["tableChildContents"])
|
|
1313
1314
|
])) : Xe("", !0)
|
|
@@ -1389,7 +1390,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1389
1390
|
name: "ChildDelete",
|
|
1390
1391
|
class: "svg-icon-content",
|
|
1391
1392
|
style: { width: "24px", height: "24px" },
|
|
1392
|
-
onClick: (ye) =>
|
|
1393
|
+
onClick: (ye) => B(_)
|
|
1393
1394
|
}, null, 8, ["onClick"])
|
|
1394
1395
|
])
|
|
1395
1396
|
])
|
|
@@ -1451,7 +1452,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1451
1452
|
]),
|
|
1452
1453
|
ae(ll, {
|
|
1453
1454
|
visible: j.value,
|
|
1454
|
-
onBeforeDestroy:
|
|
1455
|
+
onBeforeDestroy: p,
|
|
1455
1456
|
width: 840
|
|
1456
1457
|
}, {
|
|
1457
1458
|
default: ve(() => [
|
|
@@ -1467,7 +1468,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1467
1468
|
footer: ve(() => [
|
|
1468
1469
|
E("div", ms, [
|
|
1469
1470
|
ae(v, {
|
|
1470
|
-
onClick:
|
|
1471
|
+
onClick: p,
|
|
1471
1472
|
class: "cancel-button button",
|
|
1472
1473
|
id: "themeBorderButton"
|
|
1473
1474
|
}, {
|
|
@@ -1589,7 +1590,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1589
1590
|
rowContents: k.value,
|
|
1590
1591
|
key: k.value,
|
|
1591
1592
|
isEnableWrap: !0,
|
|
1592
|
-
onChange:
|
|
1593
|
+
onChange: Z,
|
|
1593
1594
|
onChangeVisible: C,
|
|
1594
1595
|
onBlurChange: x
|
|
1595
1596
|
}, null, 8, ["rowContents"]))
|
|
@@ -1661,10 +1662,10 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1661
1662
|
}
|
|
1662
1663
|
return (s == null ? void 0 : s.label) === "类型" && c[s.key] === "" ? "Input" : (s == null ? void 0 : s.key) === "isFormColHidden" && !c[s.key] ? !1 : c[s.key];
|
|
1663
1664
|
}, T = async (s) => {
|
|
1664
|
-
var I, W, H,
|
|
1665
|
+
var I, W, H, B, u, X;
|
|
1665
1666
|
o.value = !0;
|
|
1666
1667
|
let c = [];
|
|
1667
|
-
const D = await ((H = (W = (I = Qe) == null ? void 0 : I.find((z) => (z == null ? void 0 : z.key) === ((s == null ? void 0 : s.type) === "" ? "Input" : s == null ? void 0 : s.type))) == null ? void 0 : W.value) == null ? void 0 : H.value) ?? ((u = (
|
|
1668
|
+
const D = await ((H = (W = (I = Qe) == null ? void 0 : I.find((z) => (z == null ? void 0 : z.key) === ((s == null ? void 0 : s.type) === "" ? "Input" : s == null ? void 0 : s.type))) == null ? void 0 : W.value) == null ? void 0 : H.value) ?? ((u = (B = Qe) == null ? void 0 : B.find((z) => (z == null ? void 0 : z.key) === ((s == null ? void 0 : s.type) === "" ? "Input" : s == null ? void 0 : s.type))) == null ? void 0 : u.value);
|
|
1668
1669
|
if (D == null || D.forEach((z) => {
|
|
1669
1670
|
oe.value++, c.push({
|
|
1670
1671
|
label: z == null ? void 0 : z.label,
|
|
@@ -1681,7 +1682,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1681
1682
|
c = c == null ? void 0 : c.map((pe) => ((pe == null ? void 0 : pe.name) === "组信息选项" && (pe.contents = z), pe));
|
|
1682
1683
|
}
|
|
1683
1684
|
O.value = s == null ? void 0 : s.id, j.value = await fl(Tl(c)), L.value = await fl(Tl(c));
|
|
1684
|
-
},
|
|
1685
|
+
}, S = (s) => {
|
|
1685
1686
|
var D;
|
|
1686
1687
|
w.value = !0;
|
|
1687
1688
|
let c = [];
|
|
@@ -1709,7 +1710,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1709
1710
|
{ deep: !0 }
|
|
1710
1711
|
);
|
|
1711
1712
|
const me = () => {
|
|
1712
|
-
var D, I, W, H,
|
|
1713
|
+
var D, I, W, H, B;
|
|
1713
1714
|
_e.value = te.value;
|
|
1714
1715
|
let s = {};
|
|
1715
1716
|
if (O.value !== "" ? s.id = O.value : (oe.value++, s.id = "id" + oe.value), (D = _e.value) == null || D.forEach((u) => {
|
|
@@ -1724,7 +1725,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1724
1725
|
}
|
|
1725
1726
|
w.value = !1, O.value = "";
|
|
1726
1727
|
let c = l(g.originalItemContents);
|
|
1727
|
-
(H = l(g.originalItemContents)) != null && H.find((u) => (u == null ? void 0 : u.key) === "formButton") ? c = (
|
|
1728
|
+
(H = l(g.originalItemContents)) != null && H.find((u) => (u == null ? void 0 : u.key) === "formButton") ? c = (B = l(g.originalItemContents)) == null ? void 0 : B.map((u) => ((u == null ? void 0 : u.key) === "formButton" && (u.contents = N.value), u)) : c.push({
|
|
1728
1729
|
key: "formButton",
|
|
1729
1730
|
contents: N.value
|
|
1730
1731
|
}), i("change", c);
|
|
@@ -1743,7 +1744,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1743
1744
|
}
|
|
1744
1745
|
).catch(() => {
|
|
1745
1746
|
});
|
|
1746
|
-
},
|
|
1747
|
+
}, f = (s) => {
|
|
1747
1748
|
bl.confirm("是否确认要删除", "", {
|
|
1748
1749
|
confirmButtonText: "确认",
|
|
1749
1750
|
cancelButtonText: "取消",
|
|
@@ -1758,7 +1759,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1758
1759
|
}
|
|
1759
1760
|
).catch(() => {
|
|
1760
1761
|
});
|
|
1761
|
-
},
|
|
1762
|
+
}, m = () => {
|
|
1762
1763
|
var c;
|
|
1763
1764
|
w.value = !0;
|
|
1764
1765
|
let s = [];
|
|
@@ -1796,12 +1797,12 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1796
1797
|
const D = s.find((W) => (W == null ? void 0 : W.name) === "多选"), I = s.find((W) => (W == null ? void 0 : W.name) === "初始值");
|
|
1797
1798
|
D != null && D.value && Ea(I.value) && (I.value = [I.value]), !(D != null && D.value) && !Ea(I.value) && (I.value = "");
|
|
1798
1799
|
}, Ie = async (s) => {
|
|
1799
|
-
var c, D, I, W, H,
|
|
1800
|
+
var c, D, I, W, H, B, u, X, z, pe, Q, R;
|
|
1800
1801
|
if ((s == null ? void 0 : s.类型) !== ((D = (c = L.value) == null ? void 0 : c.find((P) => (P == null ? void 0 : P.label) === "类型")) == null ? void 0 : D.value)) {
|
|
1801
1802
|
let P = [];
|
|
1802
|
-
const U = await ((H = (W = (I = Qe) == null ? void 0 : I.find((A) => (A == null ? void 0 : A.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : W.value) == null ? void 0 : H.value) ? await ((pe = (z = (X = Qe) == null ? void 0 : X.find((A) => (A == null ? void 0 : A.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : z.value) == null ? void 0 : pe.value) : (u = (
|
|
1803
|
+
const U = await ((H = (W = (I = Qe) == null ? void 0 : I.find((A) => (A == null ? void 0 : A.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : W.value) == null ? void 0 : H.value) ? await ((pe = (z = (X = Qe) == null ? void 0 : X.find((A) => (A == null ? void 0 : A.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : z.value) == null ? void 0 : pe.value) : (u = (B = Qe) == null ? void 0 : B.find((A) => (A == null ? void 0 : A.key) === ((s == null ? void 0 : s.类型) === "" ? "Input" : s == null ? void 0 : s.类型))) == null ? void 0 : u.value;
|
|
1803
1804
|
if (U == null || U.forEach((A) => {
|
|
1804
|
-
var le,
|
|
1805
|
+
var le, F;
|
|
1805
1806
|
oe.value++;
|
|
1806
1807
|
const fe = ki(A == null ? void 0 : A.default) ? (s == null ? void 0 : s[A.label]) ?? A.value ?? "" : A == null ? void 0 : A.default;
|
|
1807
1808
|
P.push({
|
|
@@ -1811,7 +1812,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1811
1812
|
value: fe,
|
|
1812
1813
|
id: oe.value,
|
|
1813
1814
|
contents: A == null ? void 0 : A.options,
|
|
1814
|
-
width: ((
|
|
1815
|
+
width: ((F = (le = L.value) == null ? void 0 : le[0]) == null ? void 0 : F.width) ?? 1
|
|
1815
1816
|
});
|
|
1816
1817
|
}), s != null && s.菜单选项 && ((Q = s == null ? void 0 : s.菜单选项) == null ? void 0 : Q.length) > 0) {
|
|
1817
1818
|
const A = await Fl(s == null ? void 0 : s.菜单选项);
|
|
@@ -1830,17 +1831,17 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1830
1831
|
s || (j.value = L.value);
|
|
1831
1832
|
}, C = async (s) => {
|
|
1832
1833
|
await Ie(s), j.value = L.value;
|
|
1833
|
-
},
|
|
1834
|
-
var I, W, H,
|
|
1834
|
+
}, Z = async () => {
|
|
1835
|
+
var I, W, H, B, u, X, z, pe, Q, R, P, U;
|
|
1835
1836
|
j.value = L.value;
|
|
1836
1837
|
let s = {};
|
|
1837
1838
|
s.width = ((W = (I = j.value) == null ? void 0 : I[0]) == null ? void 0 : W.width) ?? 1, O.value !== "" ? s.id = O.value : (oe.value++, s.id = "id" + oe.value);
|
|
1838
|
-
let c = await ((u = (
|
|
1839
|
+
let c = await ((u = (B = (H = Qe) == null ? void 0 : H.find((A) => {
|
|
1839
1840
|
var fe, le;
|
|
1840
|
-
return (A == null ? void 0 : A.key) === (((le = (fe = j.value) == null ? void 0 : fe.find((
|
|
1841
|
-
})) == null ? void 0 :
|
|
1841
|
+
return (A == null ? void 0 : A.key) === (((le = (fe = j.value) == null ? void 0 : fe.find((F) => (F == null ? void 0 : F.label) === "类型")) == null ? void 0 : le.value) ?? "label");
|
|
1842
|
+
})) == null ? void 0 : B.value) == null ? void 0 : u.value) ?? ((z = (X = Qe) == null ? void 0 : X.find((A) => {
|
|
1842
1843
|
var fe, le;
|
|
1843
|
-
return (A == null ? void 0 : A.key) === (((le = (fe = j.value) == null ? void 0 : fe.find((
|
|
1844
|
+
return (A == null ? void 0 : A.key) === (((le = (fe = j.value) == null ? void 0 : fe.find((F) => (F == null ? void 0 : F.label) === "类型")) == null ? void 0 : le.value) ?? "label");
|
|
1844
1845
|
})) == null ? void 0 : z.value);
|
|
1845
1846
|
if ((pe = j.value) == null || pe.forEach((A) => {
|
|
1846
1847
|
const fe = c == null ? void 0 : c.find((le) => (le == null ? void 0 : le.label) === (A == null ? void 0 : A.label));
|
|
@@ -1863,14 +1864,14 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1863
1864
|
return Ye(
|
|
1864
1865
|
() => g.originalItemContents,
|
|
1865
1866
|
() => {
|
|
1866
|
-
var c, D, I, W, H,
|
|
1867
|
+
var c, D, I, W, H, B;
|
|
1867
1868
|
if (!g.originalItemContents || g.originalItemContents.length === 0) return;
|
|
1868
1869
|
const s = l(g.originalItemContents);
|
|
1869
1870
|
ee.value = ((c = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "formContent")) == null ? void 0 : c.contents) ?? [], N.value = ((D = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "formButton")) == null ? void 0 : D.contents) ?? [], ce.value = (I = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && I.contents ? !((W = s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.key) === "enableWrap")) != null && W.contents) : !0, ee.value = (H = l(ee.value)) == null ? void 0 : H.map((u, X) => {
|
|
1870
1871
|
var pe;
|
|
1871
1872
|
let z = u;
|
|
1872
1873
|
return z.id = (u == null ? void 0 : u.id) ?? X, u != null && u.label || (u.label = (u == null ? void 0 : u.key) ?? (u == null ? void 0 : u.label) ?? ""), u != null && u.type || (u.type = (u == null ? void 0 : u.type) ?? ""), u.contents = ((pe = u == null ? void 0 : u.options) == null ? void 0 : pe.length) === 0 ? (u == null ? void 0 : u.contents) ?? "" : u == null ? void 0 : u.options, z;
|
|
1873
|
-
}), ee.value = Tl(ee.value), N.value = (
|
|
1874
|
+
}), ee.value = Tl(ee.value), N.value = (B = N.value) == null ? void 0 : B.map((u, X) => u = {
|
|
1874
1875
|
label: (u == null ? void 0 : u.label) ?? "",
|
|
1875
1876
|
type: (u == null ? void 0 : u.type) ?? "",
|
|
1876
1877
|
background: (u == null ? void 0 : u.background) ?? "var(--ssComponent-primary-color)",
|
|
@@ -1911,13 +1912,13 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1911
1912
|
name: "ChildFix",
|
|
1912
1913
|
class: "svg-icon-content",
|
|
1913
1914
|
style: { width: "24px", height: "24px" },
|
|
1914
|
-
onClick: (
|
|
1915
|
+
onClick: (B) => T(W)
|
|
1915
1916
|
}, null, 8, ["onClick"]),
|
|
1916
1917
|
ae(D, {
|
|
1917
1918
|
name: "ChildDelete",
|
|
1918
1919
|
class: "svg-icon-content",
|
|
1919
1920
|
style: { width: "24px", height: "24px" },
|
|
1920
|
-
onClick: (
|
|
1921
|
+
onClick: (B) => d(W)
|
|
1921
1922
|
}, null, 8, ["onClick"])
|
|
1922
1923
|
])
|
|
1923
1924
|
])
|
|
@@ -1928,7 +1929,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1928
1929
|
ae(I, {
|
|
1929
1930
|
class: "icon-content",
|
|
1930
1931
|
id: "themeButton",
|
|
1931
|
-
onClick:
|
|
1932
|
+
onClick: m
|
|
1932
1933
|
}, {
|
|
1933
1934
|
icon: ve(() => [
|
|
1934
1935
|
ae(D, {
|
|
@@ -1952,13 +1953,13 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
1952
1953
|
name: "ChildFix",
|
|
1953
1954
|
class: "svg-icon-content",
|
|
1954
1955
|
style: { width: "24px", height: "24px" },
|
|
1955
|
-
onClick: (
|
|
1956
|
+
onClick: (B) => S(W)
|
|
1956
1957
|
}, null, 8, ["onClick"]),
|
|
1957
1958
|
ae(D, {
|
|
1958
1959
|
name: "ChildDelete",
|
|
1959
1960
|
class: "svg-icon-content",
|
|
1960
1961
|
style: { width: "24px", height: "24px" },
|
|
1961
|
-
onClick: (
|
|
1962
|
+
onClick: (B) => f(W)
|
|
1962
1963
|
}, null, 8, ["onClick"])
|
|
1963
1964
|
])
|
|
1964
1965
|
])
|
|
@@ -2007,7 +2008,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
2007
2008
|
}),
|
|
2008
2009
|
ae(I, {
|
|
2009
2010
|
class: "ok-button button",
|
|
2010
|
-
onClick:
|
|
2011
|
+
onClick: Z,
|
|
2011
2012
|
id: "themeButton"
|
|
2012
2013
|
}, {
|
|
2013
2014
|
default: ve(() => c[8] || (c[8] = [
|
|
@@ -2164,44 +2165,44 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
2164
2165
|
width: "40%",
|
|
2165
2166
|
title: "步骤条"
|
|
2166
2167
|
}), N = q("create"), ee = q({}), O = q([]), ce = (T) => {
|
|
2167
|
-
var
|
|
2168
|
-
ee.value = T, i("change", (
|
|
2169
|
-
}, oe = (T,
|
|
2168
|
+
var S;
|
|
2169
|
+
ee.value = T, i("change", (S = te()) == null ? void 0 : S.compData);
|
|
2170
|
+
}, oe = (T, S) => {
|
|
2170
2171
|
var me, d;
|
|
2171
2172
|
switch (T) {
|
|
2172
2173
|
case "create":
|
|
2173
|
-
(me = j.value) == null || me.forEach((
|
|
2174
|
-
|
|
2174
|
+
(me = j.value) == null || me.forEach((f) => {
|
|
2175
|
+
f.value = "";
|
|
2175
2176
|
}), N.value = "create", w.visible = !0;
|
|
2176
2177
|
break;
|
|
2177
2178
|
case "update":
|
|
2178
|
-
(d = j.value) == null || d.forEach((
|
|
2179
|
-
|
|
2179
|
+
(d = j.value) == null || d.forEach((f) => {
|
|
2180
|
+
f.value = S[f == null ? void 0 : f.prop];
|
|
2180
2181
|
}), N.value = "update", w.visible = !0;
|
|
2181
2182
|
break;
|
|
2182
2183
|
case "delete":
|
|
2183
|
-
O.value.splice(
|
|
2184
|
+
O.value.splice(S, 1), N.value = "delete";
|
|
2184
2185
|
break;
|
|
2185
2186
|
}
|
|
2186
2187
|
}, _e = (T) => {
|
|
2187
|
-
var
|
|
2188
|
+
var S, me, d;
|
|
2188
2189
|
if ((T == null ? void 0 : T.buttonName) === "确认") {
|
|
2189
|
-
const
|
|
2190
|
-
switch (Object.keys(
|
|
2191
|
-
|
|
2190
|
+
const f = l(T == null ? void 0 : T.content);
|
|
2191
|
+
switch (Object.keys(f).forEach((m) => {
|
|
2192
|
+
f[m] === "" && delete f[m];
|
|
2192
2193
|
}), N.value) {
|
|
2193
2194
|
case "create":
|
|
2194
2195
|
O.value.push({
|
|
2195
|
-
...
|
|
2196
|
-
index: ((
|
|
2196
|
+
...f,
|
|
2197
|
+
index: ((S = O.value) == null ? void 0 : S.length) + 1
|
|
2197
2198
|
});
|
|
2198
2199
|
break;
|
|
2199
2200
|
case "update":
|
|
2200
|
-
O.value = (me = O.value) == null ? void 0 : me.map((
|
|
2201
|
-
...
|
|
2202
|
-
title:
|
|
2203
|
-
description:
|
|
2204
|
-
} :
|
|
2201
|
+
O.value = (me = O.value) == null ? void 0 : me.map((m) => m.index === (f == null ? void 0 : f.index) ? {
|
|
2202
|
+
...m,
|
|
2203
|
+
title: f == null ? void 0 : f.title,
|
|
2204
|
+
description: f == null ? void 0 : f.description
|
|
2205
|
+
} : m);
|
|
2205
2206
|
break;
|
|
2206
2207
|
}
|
|
2207
2208
|
i("change", (d = te()) == null ? void 0 : d.compData), w.visible = !1;
|
|
@@ -2223,18 +2224,18 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
2223
2224
|
w.visible = !1;
|
|
2224
2225
|
};
|
|
2225
2226
|
return Ye(() => g == null ? void 0 : g.itemContents, (T) => {
|
|
2226
|
-
var
|
|
2227
|
-
T && (ee.value = ((
|
|
2228
|
-
}, { immediate: !0 }), (T,
|
|
2227
|
+
var S, me;
|
|
2228
|
+
T && (ee.value = ((S = T == null ? void 0 : T.find((d) => d.key === "stepConfig")) == null ? void 0 : S.contents) ?? {}, O.value = ((me = T == null ? void 0 : T.find((d) => d.key === "stepList")) == null ? void 0 : me.contents) ?? []);
|
|
2229
|
+
}, { immediate: !0 }), (T, S) => {
|
|
2229
2230
|
const me = Ue("svg-icon"), d = Ue("el-button");
|
|
2230
2231
|
return se(), ke(je, null, [
|
|
2231
2232
|
E("div", null, [
|
|
2232
2233
|
E("div", Ps, [
|
|
2233
|
-
|
|
2234
|
+
S[2] || (S[2] = E("h4", { class: "module-title" }, "内容", -1)),
|
|
2234
2235
|
ae(d, {
|
|
2235
2236
|
class: "module-icon",
|
|
2236
2237
|
id: "themeButton",
|
|
2237
|
-
onClick:
|
|
2238
|
+
onClick: S[0] || (S[0] = (f) => oe("create"))
|
|
2238
2239
|
}, {
|
|
2239
2240
|
icon: ve(() => [
|
|
2240
2241
|
ae(me, {
|
|
@@ -2243,25 +2244,25 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
2243
2244
|
})
|
|
2244
2245
|
]),
|
|
2245
2246
|
default: ve(() => [
|
|
2246
|
-
|
|
2247
|
+
S[1] || (S[1] = Be(" 新增 "))
|
|
2247
2248
|
]),
|
|
2248
2249
|
_: 1,
|
|
2249
2250
|
__: [1]
|
|
2250
2251
|
})
|
|
2251
2252
|
]),
|
|
2252
2253
|
E("div", Ks, [
|
|
2253
|
-
(se(!0), ke(je, null, Je(O.value, (
|
|
2254
|
+
(se(!0), ke(je, null, Je(O.value, (f, m) => (se(), ke("div", {
|
|
2254
2255
|
class: "module-data-item",
|
|
2255
|
-
key:
|
|
2256
|
+
key: m
|
|
2256
2257
|
}, [
|
|
2257
|
-
E("span", null, De(
|
|
2258
|
+
E("span", null, De(f == null ? void 0 : f.title), 1),
|
|
2258
2259
|
E("div", null, [
|
|
2259
2260
|
ae(d, {
|
|
2260
2261
|
type: "primary",
|
|
2261
2262
|
size: "small",
|
|
2262
|
-
onClick: (k) => oe("update", { ...
|
|
2263
|
+
onClick: (k) => oe("update", { ...f, index: m + 1 })
|
|
2263
2264
|
}, {
|
|
2264
|
-
default: ve(() =>
|
|
2265
|
+
default: ve(() => S[3] || (S[3] = [
|
|
2265
2266
|
Be("修改")
|
|
2266
2267
|
])),
|
|
2267
2268
|
_: 2,
|
|
@@ -2270,9 +2271,9 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
2270
2271
|
ae(d, {
|
|
2271
2272
|
type: "danger",
|
|
2272
2273
|
size: "small",
|
|
2273
|
-
onClick: (k) => oe("delete",
|
|
2274
|
+
onClick: (k) => oe("delete", m)
|
|
2274
2275
|
}, {
|
|
2275
|
-
default: ve(() =>
|
|
2276
|
+
default: ve(() => S[4] || (S[4] = [
|
|
2276
2277
|
Be("删除")
|
|
2277
2278
|
])),
|
|
2278
2279
|
_: 2,
|
|
@@ -2282,7 +2283,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
2282
2283
|
]))), 128))
|
|
2283
2284
|
]),
|
|
2284
2285
|
E("div", Ns, [
|
|
2285
|
-
|
|
2286
|
+
S[5] || (S[5] = E("div", { class: "module-title" }, "布局", -1)),
|
|
2286
2287
|
ae(el, {
|
|
2287
2288
|
rowContents: o.value,
|
|
2288
2289
|
onChange: ce
|
|
@@ -2460,47 +2461,47 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
2460
2461
|
width: "40%",
|
|
2461
2462
|
title: "时间线"
|
|
2462
2463
|
}), ce = (T) => {
|
|
2463
|
-
var
|
|
2464
|
-
j.value = T, console.log(1212, T), i("change", (
|
|
2465
|
-
}, oe = (T,
|
|
2464
|
+
var S;
|
|
2465
|
+
j.value = T, console.log(1212, T), i("change", (S = te()) == null ? void 0 : S.compData);
|
|
2466
|
+
}, oe = (T, S) => {
|
|
2466
2467
|
var me, d;
|
|
2467
2468
|
switch (T) {
|
|
2468
2469
|
case "create":
|
|
2469
|
-
(me = N.value) == null || me.forEach((
|
|
2470
|
-
|
|
2470
|
+
(me = N.value) == null || me.forEach((f) => {
|
|
2471
|
+
f.value = "";
|
|
2471
2472
|
}), o.value = "create", O.visible = !0;
|
|
2472
2473
|
break;
|
|
2473
2474
|
case "update":
|
|
2474
|
-
(d = N.value) == null || d.forEach((
|
|
2475
|
-
|
|
2475
|
+
(d = N.value) == null || d.forEach((f) => {
|
|
2476
|
+
f.value = S[f == null ? void 0 : f.prop];
|
|
2476
2477
|
}), o.value = "update", O.visible = !0;
|
|
2477
2478
|
break;
|
|
2478
2479
|
case "delete":
|
|
2479
|
-
L.value.splice(
|
|
2480
|
+
L.value.splice(S, 1), o.value = "delete";
|
|
2480
2481
|
break;
|
|
2481
2482
|
}
|
|
2482
2483
|
}, _e = (T) => {
|
|
2483
|
-
var
|
|
2484
|
+
var S, me, d, f;
|
|
2484
2485
|
if ((T == null ? void 0 : T.buttonName) === "确认") {
|
|
2485
|
-
const
|
|
2486
|
-
switch (Object.keys(
|
|
2487
|
-
|
|
2486
|
+
const m = l(T == null ? void 0 : T.content);
|
|
2487
|
+
switch (Object.keys(m).forEach((k) => {
|
|
2488
|
+
m[k] === "" && delete m[k];
|
|
2488
2489
|
}), o.value) {
|
|
2489
2490
|
case "create":
|
|
2490
|
-
console.log(1335, L.value,
|
|
2491
|
-
...
|
|
2492
|
-
index: ((
|
|
2491
|
+
console.log(1335, L.value, m), (me = L.value) == null || me.push({
|
|
2492
|
+
...m,
|
|
2493
|
+
index: ((S = L.value) == null ? void 0 : S.length) + 1
|
|
2493
2494
|
});
|
|
2494
2495
|
break;
|
|
2495
2496
|
case "update":
|
|
2496
|
-
L.value = (d = L.value) == null ? void 0 : d.map((k) => k.index === (
|
|
2497
|
+
L.value = (d = L.value) == null ? void 0 : d.map((k) => k.index === (m == null ? void 0 : m.index) ? {
|
|
2497
2498
|
...k,
|
|
2498
|
-
content:
|
|
2499
|
-
timestamp:
|
|
2499
|
+
content: m == null ? void 0 : m.content,
|
|
2500
|
+
timestamp: m == null ? void 0 : m.timestamp
|
|
2500
2501
|
} : k);
|
|
2501
2502
|
break;
|
|
2502
2503
|
}
|
|
2503
|
-
i("change", (
|
|
2504
|
+
i("change", (f = te()) == null ? void 0 : f.compData), O.visible = !1;
|
|
2504
2505
|
} else
|
|
2505
2506
|
O.visible = !1;
|
|
2506
2507
|
}, te = () => ({
|
|
@@ -2519,18 +2520,18 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
2519
2520
|
O.visible = !1;
|
|
2520
2521
|
};
|
|
2521
2522
|
return Ye(() => g == null ? void 0 : g.itemContents, (T) => {
|
|
2522
|
-
var
|
|
2523
|
-
T && (j.value = ((
|
|
2524
|
-
}, { immediate: !0 }), (T,
|
|
2523
|
+
var S, me;
|
|
2524
|
+
T && (j.value = ((S = T == null ? void 0 : T.find((d) => d.key === "timeLineConfig")) == null ? void 0 : S.contents) ?? {}, L.value = ((me = T == null ? void 0 : T.find((d) => d.key === "timeLineList")) == null ? void 0 : me.contents) ?? []);
|
|
2525
|
+
}, { immediate: !0 }), (T, S) => {
|
|
2525
2526
|
const me = Ue("svg-icon"), d = Ue("el-button");
|
|
2526
2527
|
return se(), ke(je, null, [
|
|
2527
2528
|
E("div", null, [
|
|
2528
2529
|
E("div", Js, [
|
|
2529
|
-
|
|
2530
|
+
S[2] || (S[2] = E("h4", { class: "module-title" }, "内容", -1)),
|
|
2530
2531
|
ae(d, {
|
|
2531
2532
|
class: "module-icon",
|
|
2532
2533
|
id: "themeButton",
|
|
2533
|
-
onClick:
|
|
2534
|
+
onClick: S[0] || (S[0] = (f) => oe("create"))
|
|
2534
2535
|
}, {
|
|
2535
2536
|
icon: ve(() => [
|
|
2536
2537
|
ae(me, {
|
|
@@ -2539,25 +2540,25 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
2539
2540
|
})
|
|
2540
2541
|
]),
|
|
2541
2542
|
default: ve(() => [
|
|
2542
|
-
|
|
2543
|
+
S[1] || (S[1] = Be(" 新增 "))
|
|
2543
2544
|
]),
|
|
2544
2545
|
_: 1,
|
|
2545
2546
|
__: [1]
|
|
2546
2547
|
})
|
|
2547
2548
|
]),
|
|
2548
2549
|
E("div", Hs, [
|
|
2549
|
-
(se(!0), ke(je, null, Je(L.value, (
|
|
2550
|
+
(se(!0), ke(je, null, Je(L.value, (f, m) => (se(), ke("div", {
|
|
2550
2551
|
class: "module-data-item",
|
|
2551
|
-
key:
|
|
2552
|
+
key: m
|
|
2552
2553
|
}, [
|
|
2553
|
-
E("span", null, De(
|
|
2554
|
+
E("span", null, De(f == null ? void 0 : f.content), 1),
|
|
2554
2555
|
E("div", null, [
|
|
2555
2556
|
ae(d, {
|
|
2556
2557
|
type: "primary",
|
|
2557
2558
|
size: "small",
|
|
2558
|
-
onClick: (k) => oe("update", { ...
|
|
2559
|
+
onClick: (k) => oe("update", { ...f, index: m + 1 })
|
|
2559
2560
|
}, {
|
|
2560
|
-
default: ve(() =>
|
|
2561
|
+
default: ve(() => S[3] || (S[3] = [
|
|
2561
2562
|
Be("修改")
|
|
2562
2563
|
])),
|
|
2563
2564
|
_: 2,
|
|
@@ -2566,9 +2567,9 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
2566
2567
|
ae(d, {
|
|
2567
2568
|
type: "danger",
|
|
2568
2569
|
size: "small",
|
|
2569
|
-
onClick: (k) => oe("delete",
|
|
2570
|
+
onClick: (k) => oe("delete", m)
|
|
2570
2571
|
}, {
|
|
2571
|
-
default: ve(() =>
|
|
2572
|
+
default: ve(() => S[4] || (S[4] = [
|
|
2572
2573
|
Be("删除")
|
|
2573
2574
|
])),
|
|
2574
2575
|
_: 2,
|
|
@@ -2578,7 +2579,7 @@ const _i = { class: "form-content" }, Ci = {
|
|
|
2578
2579
|
]))), 128))
|
|
2579
2580
|
]),
|
|
2580
2581
|
E("div", Gs, [
|
|
2581
|
-
|
|
2582
|
+
S[5] || (S[5] = E("div", { class: "module-title" }, "布局", -1)),
|
|
2582
2583
|
ae(el, {
|
|
2583
2584
|
rowContents: w.value,
|
|
2584
2585
|
onChange: ce
|
|
@@ -2637,41 +2638,41 @@ const en = /* @__PURE__ */ He(Ys, [["render", Zs]]), ln = { class: "extra-conten
|
|
|
2637
2638
|
Ye(
|
|
2638
2639
|
() => [g.itemData],
|
|
2639
2640
|
() => {
|
|
2640
|
-
var
|
|
2641
|
+
var f;
|
|
2641
2642
|
const d = l(g.itemData);
|
|
2642
|
-
o.value = (
|
|
2643
|
+
o.value = (f = l(d)) == null ? void 0 : f.map((m) => {
|
|
2643
2644
|
var k;
|
|
2644
|
-
if (
|
|
2645
|
+
if (m.key === "extra") {
|
|
2645
2646
|
let ue = [];
|
|
2646
|
-
(k =
|
|
2647
|
+
(k = m.value) == null || k.forEach((ge) => {
|
|
2647
2648
|
var Ie;
|
|
2648
2649
|
ue.push((Ie = Object.values(ge)) == null ? void 0 : Ie[0]);
|
|
2649
|
-
}),
|
|
2650
|
+
}), m.value = ue;
|
|
2650
2651
|
}
|
|
2651
|
-
return
|
|
2652
|
+
return m;
|
|
2652
2653
|
});
|
|
2653
2654
|
},
|
|
2654
2655
|
{ deep: !0, immediate: !0 }
|
|
2655
2656
|
);
|
|
2656
|
-
const ce = (d,
|
|
2657
|
+
const ce = (d, f, m, k) => {
|
|
2657
2658
|
var ge;
|
|
2658
2659
|
let ue = {};
|
|
2659
|
-
((ge = d == null ? void 0 : d[0]) == null ? void 0 : ge.contents) === "详情" && (w.value = !0, ue[
|
|
2660
|
+
((ge = d == null ? void 0 : d[0]) == null ? void 0 : ge.contents) === "详情" && (w.value = !0, ue[f] = d, j.value = d == null ? void 0 : d.filter((Ie) => (Ie == null ? void 0 : Ie.key) !== "tableContentName"), N.value = ue, ee.value = m, O.value = k.id);
|
|
2660
2661
|
}, oe = (d) => {
|
|
2661
|
-
var Ie, Fe, C,
|
|
2662
|
-
const
|
|
2662
|
+
var Ie, Fe, C, Z;
|
|
2663
|
+
const f = (Fe = (Ie = Object.values(l(N.value))) == null ? void 0 : Ie[0]) == null ? void 0 : Fe.filter((x) => (x == null ? void 0 : x.key) === "tableContentName"), m = (Z = (C = Object.values(l(N.value))) == null ? void 0 : C[0]) == null ? void 0 : Z.filter((x) => (x == null ? void 0 : x.key) !== "tableContentName"), k = m == null ? void 0 : m.map((x, s) => {
|
|
2663
2664
|
var c;
|
|
2664
2665
|
return s === d.index && (x == null ? void 0 : x.comp) === "Table" && (x.compData = (c = x.compData) == null ? void 0 : c.map((D) => {
|
|
2665
2666
|
var I, W;
|
|
2666
2667
|
return (D == null ? void 0 : D.key) === "tableContents" && (D.contents = (W = (I = d.content) == null ? void 0 : I.map((H) => {
|
|
2667
|
-
let
|
|
2668
|
+
let B = {};
|
|
2668
2669
|
for (let u in H)
|
|
2669
|
-
u !== "id" && (
|
|
2670
|
-
return
|
|
2670
|
+
u !== "id" && (B[u] = H[u]);
|
|
2671
|
+
return B;
|
|
2671
2672
|
})) == null ? void 0 : W.map((H) => Object.values(H))), D;
|
|
2672
2673
|
})), x;
|
|
2673
2674
|
});
|
|
2674
|
-
k.unshift(
|
|
2675
|
+
k.unshift(f == null ? void 0 : f[0]);
|
|
2675
2676
|
let ue = l(N.value), ge = {};
|
|
2676
2677
|
for (let x in ue)
|
|
2677
2678
|
ge[x] = k;
|
|
@@ -2679,18 +2680,18 @@ const en = /* @__PURE__ */ He(Ys, [["render", Zs]]), ln = { class: "extra-conten
|
|
|
2679
2680
|
}, _e = () => {
|
|
2680
2681
|
w.value = !1, N.value = {}, ee.value = {}, O.value = void 0, i.value++;
|
|
2681
2682
|
}, te = (d) => {
|
|
2682
|
-
var Ie, Fe, C,
|
|
2683
|
-
const
|
|
2684
|
-
k.unshift(
|
|
2683
|
+
var Ie, Fe, C, Z;
|
|
2684
|
+
const f = (Fe = (Ie = Object.values(l(N.value))) == null ? void 0 : Ie[0]) == null ? void 0 : Fe.filter((x) => (x == null ? void 0 : x.key) === "tableContentName"), m = (Z = (C = Object.values(l(N.value))) == null ? void 0 : C[0]) == null ? void 0 : Z.filter((x) => (x == null ? void 0 : x.key) !== "tableContentName"), k = m == null ? void 0 : m.map((x, s) => (s === d.index && (x.compData = d.contents), x));
|
|
2685
|
+
k.unshift(f == null ? void 0 : f[0]);
|
|
2685
2686
|
let ue = l(N.value), ge = {};
|
|
2686
2687
|
for (let x in ue)
|
|
2687
2688
|
ge[x] = k;
|
|
2688
2689
|
N.value = ge;
|
|
2689
2690
|
}, be = () => {
|
|
2690
|
-
var
|
|
2691
|
+
var f, m;
|
|
2691
2692
|
let d = {};
|
|
2692
2693
|
for (let k in ee.value)
|
|
2693
|
-
k === ((
|
|
2694
|
+
k === ((f = Object.keys(N.value)) == null ? void 0 : f[0]) ? d[k] = (m = Object.values(N.value)) == null ? void 0 : m[0] : d[k] = ee.value[k];
|
|
2694
2695
|
L("change", {
|
|
2695
2696
|
buttonName: "编辑",
|
|
2696
2697
|
index: O.value,
|
|
@@ -2698,11 +2699,11 @@ const en = /* @__PURE__ */ He(Ys, [["render", Zs]]), ln = { class: "extra-conten
|
|
|
2698
2699
|
}, "methodData"), w.value = !1, N.value = {}, ee.value = {}, O.value = void 0;
|
|
2699
2700
|
}, T = () => {
|
|
2700
2701
|
w.value = !1, N.value = {}, ee.value = {}, O.value = void 0;
|
|
2701
|
-
},
|
|
2702
|
+
}, S = (d) => {
|
|
2702
2703
|
L("change", d, "methodData");
|
|
2703
2704
|
}, me = (d) => Aa(d);
|
|
2704
|
-
return (d,
|
|
2705
|
-
const
|
|
2705
|
+
return (d, f) => {
|
|
2706
|
+
const m = Ue("el-button");
|
|
2706
2707
|
return se(), ke("div", ln, [
|
|
2707
2708
|
(se(!0), ke(je, null, Je(o.value, (k, ue) => (se(), ke("div", { key: i.value }, [
|
|
2708
2709
|
(k == null ? void 0 : k.key) === "extra" ? (se(), ke("div", an)) : (se(), ke("div", sn, [
|
|
@@ -2712,7 +2713,7 @@ const en = /* @__PURE__ */ He(Ys, [["render", Zs]]), ln = { class: "extra-conten
|
|
|
2712
2713
|
key: ue,
|
|
2713
2714
|
index: (k == null ? void 0 : k.id) ?? ue,
|
|
2714
2715
|
onContentClick: ce,
|
|
2715
|
-
onChange:
|
|
2716
|
+
onChange: S
|
|
2716
2717
|
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2717
2718
|
]))
|
|
2718
2719
|
]))), 128)),
|
|
@@ -2738,23 +2739,23 @@ const en = /* @__PURE__ */ He(Ys, [["render", Zs]]), ln = { class: "extra-conten
|
|
|
2738
2739
|
]),
|
|
2739
2740
|
footer: ve(() => [
|
|
2740
2741
|
E("div", nn, [
|
|
2741
|
-
ae(
|
|
2742
|
+
ae(m, {
|
|
2742
2743
|
class: "cancel-button footer-button",
|
|
2743
2744
|
onClick: _e,
|
|
2744
2745
|
id: "themeBorderButton"
|
|
2745
2746
|
}, {
|
|
2746
|
-
default: ve(() =>
|
|
2747
|
+
default: ve(() => f[0] || (f[0] = [
|
|
2747
2748
|
Be(De("取消"))
|
|
2748
2749
|
])),
|
|
2749
2750
|
_: 1,
|
|
2750
2751
|
__: [0]
|
|
2751
2752
|
}),
|
|
2752
|
-
ae(
|
|
2753
|
+
ae(m, {
|
|
2753
2754
|
class: "confirm-button footer-button",
|
|
2754
2755
|
onClick: be,
|
|
2755
2756
|
id: "themeButton"
|
|
2756
2757
|
}, {
|
|
2757
|
-
default: ve(() =>
|
|
2758
|
+
default: ve(() => f[1] || (f[1] = [
|
|
2758
2759
|
Be(De("确认"))
|
|
2759
2760
|
])),
|
|
2760
2761
|
_: 1,
|
|
@@ -2791,19 +2792,19 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2791
2792
|
j++, L.includes("{") || o.includes("{") || L.includes("[") || o.includes("[") || L.includes("【") || o.includes("【") || L.includes("(") || o.includes("(") || L.includes("(") || o.includes("(") || L.includes("/*") || o.includes("/*") ? (o += L.trim(), l(o).split("{").length - 1 === l(o).split("}").length - 1 && l(o).split("【").length - 1 === l(o).split("】").length - 1 && l(o).split("[").length - 1 === l(o).split("]").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("/*").length - 1 === l(o).split("*/").length - 1 && o[o.length - 1] === V ? (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = "") : j === (r == null ? void 0 : r.length) && (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = "")) : (o += L.trim(), (o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1]) === V && (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = ""));
|
|
2792
2793
|
return (o == null ? void 0 : o.length) !== 0 && i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), i;
|
|
2793
2794
|
}, Ro = (r) => /^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l(r)), Uo = (r) => {
|
|
2794
|
-
var V, g, i, o, j, L, w, N, ee, O, ce, oe, _e, te, be, T,
|
|
2795
|
+
var V, g, i, o, j, L, w, N, ee, O, ce, oe, _e, te, be, T, S, me, d, f, m, k, ue, ge, Ie, Fe, C, Z, x, s, c, D, I, W, H, B, u, X, z, pe, Q, R, P, U, A, fe, le, F, b, y, J, p, n, Y, e, a, t, v, _, M, ye, K, ie, ne;
|
|
2795
2796
|
if (rn(r)) {
|
|
2796
2797
|
let Ce = {}, de = (i = (g = (V = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : V.split(Le)) == null ? void 0 : g[0]) == null ? void 0 : i.replaceAll("'", ""), G = "", h = (j = (o = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : o.split(Le)) == null ? void 0 : j[1];
|
|
2797
2798
|
if (((L = La(h, "/")) == null ? void 0 : L.length) > 1)
|
|
2798
2799
|
G = (w = La(h, "/")) == null ? void 0 : w.map((he) => he == null ? void 0 : he.replaceAll("/", "").replaceAll("'", ""));
|
|
2799
2800
|
else if (h.includes("{") || h.includes("("))
|
|
2800
|
-
if (h.includes("{") ? G = G + ((_e = (oe = (ce = (O = (ee = (N = h == null ? void 0 : h.split("{")) == null ? void 0 : N[1]) == null ? void 0 : ee.split("}")) == null ? void 0 : O[0]) == null ? void 0 : ce.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : oe.replaceAll("[", "([")) == null ? void 0 : _e.replaceAll("]", "])")) + "[" : G = G + ((d = (me = (
|
|
2801
|
-
G = G + ((ue = (k = (
|
|
2801
|
+
if (h.includes("{") ? G = G + ((_e = (oe = (ce = (O = (ee = (N = h == null ? void 0 : h.split("{")) == null ? void 0 : N[1]) == null ? void 0 : ee.split("}")) == null ? void 0 : O[0]) == null ? void 0 : ce.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : oe.replaceAll("[", "([")) == null ? void 0 : _e.replaceAll("]", "])")) + "[" : G = G + ((d = (me = (S = (T = (be = (te = h == null ? void 0 : h.split("(")) == null ? void 0 : te[1]) == null ? void 0 : be.split(")")) == null ? void 0 : T[0]) == null ? void 0 : S.replaceAll(":", "/").replaceAll("'", "")) == null ? void 0 : me.replaceAll("[", "([")) == null ? void 0 : d.replaceAll("]", "])")) + "[", !((f = h == null ? void 0 : h.split(")")) != null && f[1]))
|
|
2802
|
+
G = G + ((ue = (k = (m = h == null ? void 0 : h.split("[")) == null ? void 0 : m[1]) == null ? void 0 : k.split("]")) == null ? void 0 : ue[0]) + "]";
|
|
2802
2803
|
else {
|
|
2803
2804
|
const he = (C = (Fe = (Ie = (ge = h == null ? void 0 : h.split(")")) == null ? void 0 : ge[1]) == null ? void 0 : Ie.replace("[", Le)) == null ? void 0 : Fe.split(Le)) == null ? void 0 : C[1];
|
|
2804
2805
|
if (he) {
|
|
2805
2806
|
const re = he.lastIndexOf("]"), we = he.substring(0, re) + Le + he.substring(re + 1);
|
|
2806
|
-
G = G + ((
|
|
2807
|
+
G = G + ((Z = we == null ? void 0 : we.split(Le)) == null ? void 0 : Z[0]) + "]";
|
|
2807
2808
|
} else
|
|
2808
2809
|
G = (c = (s = (x = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : x.split(Le)) == null ? void 0 : s[1]) == null ? void 0 : c.replaceAll("'", "");
|
|
2809
2810
|
}
|
|
@@ -2816,16 +2817,16 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2816
2817
|
} else {
|
|
2817
2818
|
let Ce = {}, de = "", G = "";
|
|
2818
2819
|
if (r.includes("#")) {
|
|
2819
|
-
de = (
|
|
2820
|
+
de = (B = (H = r == null ? void 0 : r.split("#")) == null ? void 0 : H[0]) == null ? void 0 : B.replaceAll("'", "");
|
|
2820
2821
|
let h = (X = (u = r == null ? void 0 : r.split("#")) == null ? void 0 : u[1]) == null ? void 0 : X.replaceAll("'", "");
|
|
2821
|
-
h != null && h.includes("{") ? G = G + ((R = (Q = (pe = (z = h == null ? void 0 : h.split("{")) == null ? void 0 : z[1]) == null ? void 0 : pe.split("}")) == null ? void 0 : Q[0]) == null ? void 0 : R.replaceAll(":", "/").replaceAll("'", "")) + "[" : G = G + ((fe = (A = (U = (P = h == null ? void 0 : h.split("(")) == null ? void 0 : P[1]) == null ? void 0 : U.split(")")) == null ? void 0 : A[0]) == null ? void 0 : fe.replaceAll(":", "/").replaceAll("'", "")) + "[", G = G + ((b = (
|
|
2822
|
+
h != null && h.includes("{") ? G = G + ((R = (Q = (pe = (z = h == null ? void 0 : h.split("{")) == null ? void 0 : z[1]) == null ? void 0 : pe.split("}")) == null ? void 0 : Q[0]) == null ? void 0 : R.replaceAll(":", "/").replaceAll("'", "")) + "[" : G = G + ((fe = (A = (U = (P = h == null ? void 0 : h.split("(")) == null ? void 0 : P[1]) == null ? void 0 : U.split(")")) == null ? void 0 : A[0]) == null ? void 0 : fe.replaceAll(":", "/").replaceAll("'", "")) + "[", G = G + ((b = (F = (le = h == null ? void 0 : h.split("[")) == null ? void 0 : le[1]) == null ? void 0 : F.split("]")) == null ? void 0 : b[0]) + "]";
|
|
2822
2823
|
} else {
|
|
2823
|
-
let h = (
|
|
2824
|
+
let h = (p = (J = (y = r == null ? void 0 : r.split("]")) == null ? void 0 : y[0]) == null ? void 0 : J.split("[")) == null ? void 0 : p[1];
|
|
2824
2825
|
if ((n = h == null ? void 0 : h.split(":")) == null || n.forEach((he, re) => {
|
|
2825
2826
|
var we;
|
|
2826
2827
|
((we = h == null ? void 0 : h.split(":")) == null ? void 0 : we.length) - 1 === re && (de = he == null ? void 0 : he.replaceAll("'", ""));
|
|
2827
2828
|
}), !(r != null && r.includes("[")))
|
|
2828
|
-
G = ((t = (a = (e = (
|
|
2829
|
+
G = ((t = (a = (e = (Y = r == null ? void 0 : r.split("]")) == null ? void 0 : Y[1]) == null ? void 0 : e.replace(":", Le).split(Le)) == null ? void 0 : a[1]) == null ? void 0 : t.replaceAll("'", "")) ?? "";
|
|
2829
2830
|
else {
|
|
2830
2831
|
let he = (ie = (K = (ye = (M = (_ = (v = l(r)) == null ? void 0 : v.split("(")) == null ? void 0 : _[1]) == null ? void 0 : M.split(")")) == null ? void 0 : ye[0]) == null ? void 0 : K.replaceAll("{", "").replaceAll("}", "")) == null ? void 0 : ie.replaceAll("'", "").replaceAll(":", "/"), re = "";
|
|
2831
2832
|
(ne = h == null ? void 0 : h.split(":")) == null || ne.forEach((we) => {
|
|
@@ -2853,34 +2854,34 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2853
2854
|
});
|
|
2854
2855
|
let i = [], o = [];
|
|
2855
2856
|
return g == null || g.forEach((O) => {
|
|
2856
|
-
var _e, te, be, T,
|
|
2857
|
+
var _e, te, be, T, S, me, d, f, m, k, ue, ge, Ie, Fe, C, Z, x, s, c, D, I, W, H, B, u, X, z, pe, Q, R, P, U, A, fe, le, F, b, y, J, p, n, Y, e, a, t, v, _, M;
|
|
2857
2858
|
let ce = (te = (_e = l(O)) == null ? void 0 : _e.slice(1, l(O).length - 1)) == null ? void 0 : te.replace(":", Le).split(Le);
|
|
2858
2859
|
if (((T = (be = l(ce)) == null ? void 0 : be[0]) == null ? void 0 : T.replaceAll("'", "")) === "输入") {
|
|
2859
|
-
if (!((me = (
|
|
2860
|
-
_a((
|
|
2860
|
+
if (!((me = (S = l(ce)) == null ? void 0 : S[1]) != null && me.includes("[")) && !((f = (d = l(ce)) == null ? void 0 : d[1]) != null && f.includes("("))) {
|
|
2861
|
+
_a((m = l(ce)) == null ? void 0 : m[1].replaceAll("'", '"')) && o.push(JSON.parse((k = l(ce)) == null ? void 0 : k[1].replaceAll("'", '"')));
|
|
2861
2862
|
return;
|
|
2862
2863
|
}
|
|
2863
2864
|
if (((ge = (ue = l(ce)) == null ? void 0 : ue[1]) == null ? void 0 : ge[0]) === "[") {
|
|
2864
|
-
let ye = (
|
|
2865
|
+
let ye = (Z = (Ie = l(ce)) == null ? void 0 : Ie[1]) == null ? void 0 : Z.slice(1, ((C = (Fe = l(ce)) == null ? void 0 : Fe[1]) == null ? void 0 : C.length) - 1);
|
|
2865
2866
|
(s = (x = ta(ye)) == null ? void 0 : x.filter((K) => K !== ",")) == null || s.forEach((K) => {
|
|
2866
|
-
var G, h, he, re, we, Pe, Ke,
|
|
2867
|
+
var G, h, he, re, we, Pe, Ke, $, Te, xe, Ve, Ae, $e, We, Ge, rl, Ze, kl, _l, Cl, wl, Dl;
|
|
2867
2868
|
let ie = {}, ne = (he = (h = l(K)) == null ? void 0 : h.slice(1, ((G = l(K)) == null ? void 0 : G.length) - 1)) == null ? void 0 : he.replace(":", Le).split(Le), Ce = (re = ne == null ? void 0 : ne[0]) == null ? void 0 : re.replaceAll("'", ""), de;
|
|
2868
|
-
(we = ne == null ? void 0 : ne[1]) != null && we.includes("(") ? (de = (We = ($e = (Ae = (Ve = (xe = (Te = (
|
|
2869
|
+
(we = ne == null ? void 0 : ne[1]) != null && we.includes("(") ? (de = (We = ($e = (Ae = (Ve = (xe = (Te = ($ = (Ke = l(ne)) == null ? void 0 : Ke[1]) == null ? void 0 : $.replaceAll("{", "")) == null ? void 0 : Te.replaceAll("}", "")) == null ? void 0 : xe.split("(")) == null ? void 0 : Ve[1]) == null ? void 0 : Ae.split(")")) == null ? void 0 : $e[0]) == null ? void 0 : We.replaceAll(":", "/").replaceAll("'", ""), (rl = (Ge = l(ne)) == null ? void 0 : Ge[1]) != null && rl.includes("[") && (de = l(de) + "[" + ((Dl = (wl = (Cl = (_l = (kl = (Ze = l(ne)) == null ? void 0 : Ze[1]) == null ? void 0 : kl.split("[")) == null ? void 0 : _l[1]) == null ? void 0 : Cl.split("]")) == null ? void 0 : wl[0]) == null ? void 0 : Dl.replaceAll("'", "")) + "]")) : de = (Pe = ne == null ? void 0 : ne[1]) == null ? void 0 : Pe.replaceAll("'", ""), ie[Ce] = de, o.push(ie);
|
|
2869
2870
|
});
|
|
2870
2871
|
}
|
|
2871
2872
|
} else {
|
|
2872
2873
|
if (!((D = (c = l(ce)) == null ? void 0 : c[1]) != null && D.includes("[")) && !((W = (I = l(ce)) == null ? void 0 : I[1]) != null && W.includes("("))) {
|
|
2873
|
-
_a((H = l(ce)) == null ? void 0 : H[1].replaceAll("'", '"')) && i.push(JSON.parse((
|
|
2874
|
+
_a((H = l(ce)) == null ? void 0 : H[1].replaceAll("'", '"')) && i.push(JSON.parse((B = l(ce)) == null ? void 0 : B[1].replaceAll("'", '"')));
|
|
2874
2875
|
return;
|
|
2875
2876
|
}
|
|
2876
2877
|
if (((X = (u = l(ce)) == null ? void 0 : u[1]) == null ? void 0 : X[0]) === "[") {
|
|
2877
2878
|
let ye = (R = (z = l(ce)) == null ? void 0 : z[1]) == null ? void 0 : R.slice(1, ((Q = (pe = l(ce)) == null ? void 0 : pe[1]) == null ? void 0 : Q.length) - 1);
|
|
2878
2879
|
(U = (P = ta(ye)) == null ? void 0 : P.filter((K) => K !== ",")) == null || U.forEach((K) => {
|
|
2879
|
-
var G, h, he, re, we, Pe, Ke,
|
|
2880
|
+
var G, h, he, re, we, Pe, Ke, $, Te, xe, Ve, Ae, $e, We, Ge, rl, Ze, kl, _l, Cl, wl, Dl, Ll, Ol, Vl, Rl, Ul, jl, Pl, Kl, Nl, Ml, Wl;
|
|
2880
2881
|
let ie = {}, ne = (he = (h = l(K)) == null ? void 0 : h.slice(1, ((G = l(K)) == null ? void 0 : G.length) - 1)) == null ? void 0 : he.replace(":", Le).split(Le), Ce = (re = ne == null ? void 0 : ne[0]) == null ? void 0 : re.replaceAll("'", ""), de;
|
|
2881
2882
|
if (!((we = ne == null ? void 0 : ne[1]) != null && we.includes("(")))
|
|
2882
2883
|
de = (Pe = ne == null ? void 0 : ne[1]) == null ? void 0 : Pe.replaceAll("'", "");
|
|
2883
|
-
else if (de = (Ae = (Ve = (xe = (Te = (
|
|
2884
|
+
else if (de = (Ae = (Ve = (xe = (Te = ($ = (Ke = l(ne)) == null ? void 0 : Ke[1]) == null ? void 0 : $.replaceAll("{", "")) == null ? void 0 : Te.replaceAll("}", "")) == null ? void 0 : xe.replace("(", Le)) == null ? void 0 : Ve.split(Le)) == null ? void 0 : Ae[1], de = (We = ($e = cn(l(de), Le)) == null ? void 0 : $e.split(Le)) == null ? void 0 : We[0], !(de != null && de.includes("(")))
|
|
2884
2885
|
de = (Ge = l(de)) == null ? void 0 : Ge.replaceAll(":", "/").replaceAll("'", ""), (Ze = (rl = l(ne)) == null ? void 0 : rl[1]) != null && Ze.includes("[") && (de = l(de) + "[" + ((Ll = (Dl = (wl = (Cl = (_l = (kl = l(ne)) == null ? void 0 : kl[1]) == null ? void 0 : _l.split("[")) == null ? void 0 : Cl[1]) == null ? void 0 : wl.split("]")) == null ? void 0 : Dl[0]) == null ? void 0 : Ll.replaceAll("'", "")) + "]");
|
|
2885
2886
|
else {
|
|
2886
2887
|
let ul = "";
|
|
@@ -2897,7 +2898,7 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2897
2898
|
ie[Ce] = de, i.push(ie);
|
|
2898
2899
|
});
|
|
2899
2900
|
} else {
|
|
2900
|
-
let ye = (
|
|
2901
|
+
let ye = (F = (A = l(ce)) == null ? void 0 : A[1]) == null ? void 0 : F.slice(1, ((le = (fe = l(ce)) == null ? void 0 : fe[1]) == null ? void 0 : le.length) - 1), K = {}, ie = (t = (a = (J = (y = (b = l(ye)) == null ? void 0 : b.split("]")) == null ? void 0 : y[0]) == null ? void 0 : J.split(":")) == null ? void 0 : a[((e = (Y = (n = (p = l(ye)) == null ? void 0 : p.split("]")) == null ? void 0 : n[0]) == null ? void 0 : Y.split(":")) == null ? void 0 : e.length) - 1]) == null ? void 0 : t.replaceAll("'", ""), ne = ((M = (_ = (v = l(ye)) == null ? void 0 : v.split("]")) == null ? void 0 : _[0]) == null ? void 0 : M.replaceAll("'", "")) + "]";
|
|
2901
2902
|
K[ie] = ne, i.push(K);
|
|
2902
2903
|
}
|
|
2903
2904
|
}
|
|
@@ -2906,7 +2907,7 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2906
2907
|
input: o
|
|
2907
2908
|
};
|
|
2908
2909
|
}, dn = xa(al), { routeToChildPath: tl } = sl(dn), ca = Va(al), { activeMenuPath: Bl } = sl(ca), tn = Ia(), { loginUserInfo: yl } = sl(tn), pn = async () => {
|
|
2909
|
-
var j, L, w, N, ee, O, ce, oe, _e, te, be, T,
|
|
2910
|
+
var j, L, w, N, ee, O, ce, oe, _e, te, be, T, S, me, d, f, m, k, ue, ge, Ie, Fe, C, Z, x, s, c, D, I, W, H, B, u, X, z, pe, Q, R, P, U, A, fe, le, F;
|
|
2910
2911
|
let r = "";
|
|
2911
2912
|
const V = await gl({
|
|
2912
2913
|
key: {
|
|
@@ -2916,11 +2917,11 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2916
2917
|
}
|
|
2917
2918
|
});
|
|
2918
2919
|
if (((L = (j = V == null ? void 0 : V.data) == null ? void 0 : j.result) == null ? void 0 : L.length) > 0) {
|
|
2919
|
-
let b = (_e = (oe = (ce = (O = (ee = (N = (w = V == null ? void 0 : V.data) == null ? void 0 : w.result) == null ? void 0 : N[0]) == null ? void 0 : ee.value) == null ? void 0 : O.pageData) == null ? void 0 : ce.compData) == null ? void 0 : oe.find((
|
|
2920
|
+
let b = (_e = (oe = (ce = (O = (ee = (N = (w = V == null ? void 0 : V.data) == null ? void 0 : w.result) == null ? void 0 : N[0]) == null ? void 0 : ee.value) == null ? void 0 : O.pageData) == null ? void 0 : ce.compData) == null ? void 0 : oe.find((y) => (y == null ? void 0 : y.key) === "header")) == null ? void 0 : _e.contents;
|
|
2920
2921
|
r = (be = (te = l(b)) == null ? void 0 : te[0]) == null ? void 0 : be.label;
|
|
2921
2922
|
}
|
|
2922
2923
|
let g = Bl.value;
|
|
2923
|
-
(
|
|
2924
|
+
(S = Bl.value) != null && S.includes(`updateLoading${(T = yl.value) == null ? void 0 : T.account}`) ? g = l(Bl).value : (d = Bl.value) != null && d.includes(`loading${(me = yl.value) == null ? void 0 : me.account}`) && (g = l(tl).value + `/loading${(f = yl.value) == null ? void 0 : f.account}`);
|
|
2924
2925
|
const i = await gl({
|
|
2925
2926
|
key: {
|
|
2926
2927
|
pageKey: g,
|
|
@@ -2928,20 +2929,20 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2928
2929
|
}
|
|
2929
2930
|
});
|
|
2930
2931
|
let o = [];
|
|
2931
|
-
if (((k = (
|
|
2932
|
-
let b = "",
|
|
2933
|
-
(ge = (ue = i == null ? void 0 : i.data) == null ? void 0 : ue.result) == null || ge.forEach((
|
|
2934
|
-
var n,
|
|
2935
|
-
((
|
|
2936
|
-
(v == null ? void 0 : v.key) === "formContent" && (
|
|
2932
|
+
if (((k = (m = i == null ? void 0 : i.data) == null ? void 0 : m.result) == null ? void 0 : k.length) > 0) {
|
|
2933
|
+
let b = "", y = [];
|
|
2934
|
+
(ge = (ue = i == null ? void 0 : i.data) == null ? void 0 : ue.result) == null || ge.forEach((p) => {
|
|
2935
|
+
var n, Y, e, a, t;
|
|
2936
|
+
((Y = (n = p == null ? void 0 : p.value) == null ? void 0 : n.pageData) == null ? void 0 : Y.comp) === "Form" && ((t = (a = (e = p == null ? void 0 : p.value) == null ? void 0 : e.pageData) == null ? void 0 : a.compData) == null || t.forEach((v) => {
|
|
2937
|
+
(v == null ? void 0 : v.key) === "formContent" && (y = [...y, ...v == null ? void 0 : v.contents]);
|
|
2937
2938
|
}));
|
|
2938
2939
|
});
|
|
2939
|
-
let J =
|
|
2940
|
-
if (J ? (b = J == null ? void 0 : J.value, r = J == null ? void 0 : J.key) : b = (I = (D = (c = (s = (x = (
|
|
2941
|
-
var n,
|
|
2942
|
-
return (
|
|
2940
|
+
let J = y == null ? void 0 : y.find((p) => (p == null ? void 0 : p.isMain) === !0);
|
|
2941
|
+
if (J ? (b = J == null ? void 0 : J.value, r = J == null ? void 0 : J.key) : b = (I = (D = (c = (s = (x = (Z = (C = (Fe = (Ie = i == null ? void 0 : i.data) == null ? void 0 : Ie.result) == null ? void 0 : Fe[0]) == null ? void 0 : C.value) == null ? void 0 : Z.pageData) == null ? void 0 : x.compData) == null ? void 0 : s.find((p) => (p == null ? void 0 : p.key) === "formContent")) == null ? void 0 : c.contents) == null ? void 0 : D.find((p) => {
|
|
2942
|
+
var n, Y;
|
|
2943
|
+
return (p == null ? void 0 : p.key) === r || ((Y = (n = p == null ? void 0 : p.optionUrl) == null ? void 0 : n.groupSelect) == null ? void 0 : Y[1]) === r;
|
|
2943
2944
|
})) == null ? void 0 : I.value, (H = Bl.value) != null && H.includes(`updateLoading${(W = yl.value) == null ? void 0 : W.account}`)) {
|
|
2944
|
-
let
|
|
2945
|
+
let p = [];
|
|
2945
2946
|
const n = await gl({
|
|
2946
2947
|
key: {
|
|
2947
2948
|
pageKey: (Q = Bl.value.split(`/updateLoading${(pe = yl.value) == null ? void 0 : pe.account}`)) == null ? void 0 : Q[0],
|
|
@@ -2949,36 +2950,36 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2949
2950
|
}
|
|
2950
2951
|
});
|
|
2951
2952
|
if (((P = (R = n == null ? void 0 : n.data) == null ? void 0 : R.result) == null ? void 0 : P.length) > 0) {
|
|
2952
|
-
let
|
|
2953
|
+
let Y = [], e = (U = i == null ? void 0 : i.data) == null ? void 0 : U.result;
|
|
2953
2954
|
(A = l(e)) == null || A.forEach((a) => {
|
|
2954
2955
|
var t, v, _, M, ye, K, ie, ne, Ce, de, G, h, he, re, we, Pe, Ke;
|
|
2955
2956
|
if (((t = a == null ? void 0 : a.key) == null ? void 0 : t.type) === "structure")
|
|
2956
|
-
if ((_ = (v = n == null ? void 0 : n.data) == null ? void 0 : v.result) != null && _.find((
|
|
2957
|
+
if ((_ = (v = n == null ? void 0 : n.data) == null ? void 0 : v.result) != null && _.find(($) => {
|
|
2957
2958
|
var Te, xe, Ve, Ae;
|
|
2958
|
-
return ((xe = (Te =
|
|
2959
|
+
return ((xe = (Te = $ == null ? void 0 : $.value) == null ? void 0 : Te.pageData) == null ? void 0 : xe.name) === ((Ae = (Ve = a == null ? void 0 : a.value) == null ? void 0 : Ve.pageData) == null ? void 0 : Ae.name);
|
|
2959
2960
|
})) {
|
|
2960
|
-
let
|
|
2961
|
-
|
|
2961
|
+
let $ = a == null ? void 0 : a.key;
|
|
2962
|
+
$.pageKey = l(tl).value + "/" + b, o.push({
|
|
2962
2963
|
id: (K = (ye = (M = n == null ? void 0 : n.data) == null ? void 0 : M.result) == null ? void 0 : ye.find((Te) => {
|
|
2963
2964
|
var xe, Ve, Ae, $e;
|
|
2964
2965
|
return ((Ve = (xe = Te == null ? void 0 : Te.value) == null ? void 0 : xe.pageData) == null ? void 0 : Ve.name) === (($e = (Ae = a == null ? void 0 : a.value) == null ? void 0 : Ae.pageData) == null ? void 0 : $e.name);
|
|
2965
2966
|
})) == null ? void 0 : K.id,
|
|
2966
|
-
key:
|
|
2967
|
+
key: $,
|
|
2967
2968
|
value: a == null ? void 0 : a.value
|
|
2968
2969
|
});
|
|
2969
2970
|
} else {
|
|
2970
|
-
let
|
|
2971
|
-
|
|
2972
|
-
key:
|
|
2971
|
+
let $ = a == null ? void 0 : a.key;
|
|
2972
|
+
$.pageKey = l(tl).value + "/" + b, p.push({
|
|
2973
|
+
key: $,
|
|
2973
2974
|
value: a == null ? void 0 : a.value
|
|
2974
2975
|
});
|
|
2975
2976
|
}
|
|
2976
2977
|
else {
|
|
2977
|
-
let
|
|
2978
|
+
let $ = (Ce = (ne = (ie = n == null ? void 0 : n.data) == null ? void 0 : ie.result) == null ? void 0 : ne.filter((Ae) => {
|
|
2978
2979
|
var $e;
|
|
2979
2980
|
return (($e = Ae == null ? void 0 : Ae.key) == null ? void 0 : $e.type) === "data";
|
|
2980
2981
|
})) == null ? void 0 : Ce.map((Ae) => Ae == null ? void 0 : Ae.id);
|
|
2981
|
-
|
|
2982
|
+
Y = [...Y, ...$];
|
|
2982
2983
|
let Te = (he = (h = (G = (de = l(e)) == null ? void 0 : de.find((Ae) => {
|
|
2983
2984
|
var $e;
|
|
2984
2985
|
return (($e = a == null ? void 0 : a.key) == null ? void 0 : $e.tableId) === (Ae == null ? void 0 : Ae.id);
|
|
@@ -2986,13 +2987,13 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2986
2987
|
var $e, We;
|
|
2987
2988
|
return ((We = ($e = Ae == null ? void 0 : Ae.value) == null ? void 0 : $e.pageData) == null ? void 0 : We.name) === Te;
|
|
2988
2989
|
})) == null ? void 0 : Pe.id, Ve = (Ke = l(a)) == null ? void 0 : Ke.key;
|
|
2989
|
-
Ve.tableId = xe, Ve.pageKey = l(tl).value + "/" + b,
|
|
2990
|
+
Ve.tableId = xe, Ve.pageKey = l(tl).value + "/" + b, p.push({
|
|
2990
2991
|
key: Ve,
|
|
2991
2992
|
value: a == null ? void 0 : a.value
|
|
2992
2993
|
});
|
|
2993
2994
|
}
|
|
2994
|
-
}), (
|
|
2995
|
-
ids:
|
|
2995
|
+
}), (Y == null ? void 0 : Y.length) > 0 && (Y = [...new Set(Y)], await ja({
|
|
2996
|
+
ids: Y
|
|
2996
2997
|
})), (le = (fe = i == null ? void 0 : i.data) == null ? void 0 : fe.result) == null || le.forEach((a) => {
|
|
2997
2998
|
var v, _;
|
|
2998
2999
|
let t = (v = l(a)) == null ? void 0 : v.key;
|
|
@@ -3008,15 +3009,15 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3008
3009
|
}
|
|
3009
3010
|
(o == null ? void 0 : o.length) > 0 && (await ka({
|
|
3010
3011
|
dataList: o
|
|
3011
|
-
}), (
|
|
3012
|
-
dataList:
|
|
3013
|
-
}), ol.success("保存成功"), ca.setActiveMenuPath(l(tl).value + "/" + b + `/updateLoading${(
|
|
3012
|
+
}), (p == null ? void 0 : p.length) > 0 && Pa({
|
|
3013
|
+
dataList: p
|
|
3014
|
+
}), ol.success("保存成功"), ca.setActiveMenuPath(l(tl).value + "/" + b + `/updateLoading${(F = yl.value) == null ? void 0 : F.account}`));
|
|
3014
3015
|
} else {
|
|
3015
|
-
if ((u = (
|
|
3016
|
-
var
|
|
3017
|
-
let n = (
|
|
3016
|
+
if ((u = (B = i == null ? void 0 : i.data) == null ? void 0 : B.result) == null || u.forEach((p) => {
|
|
3017
|
+
var Y;
|
|
3018
|
+
let n = (Y = l(p)) == null ? void 0 : Y.key;
|
|
3018
3019
|
n.pageKey = l(tl).value + "/" + b, ca.setChildMenu(n.pageKey), o.push({
|
|
3019
|
-
id:
|
|
3020
|
+
id: p == null ? void 0 : p.id,
|
|
3020
3021
|
key: n
|
|
3021
3022
|
});
|
|
3022
3023
|
}), b === "") {
|
|
@@ -3050,8 +3051,8 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3050
3051
|
}
|
|
3051
3052
|
},
|
|
3052
3053
|
setup(r) {
|
|
3053
|
-
const V = q([]), g = r, i = q(!1), o = q(), j = xa(al), L = q(!1), w = Va(al), N = Ia(al), { itemData: ee, isEdit: O, routeToChildPath: ce } = sl(j), { activeMenuPath: oe, platform: _e, childMenu: te } = sl(w), { loginUserInfo: be } = sl(N), T = q(!1),
|
|
3054
|
-
const x =
|
|
3054
|
+
const V = q([]), g = r, i = q(!1), o = q(), j = xa(al), L = q(!1), w = Va(al), N = Ia(al), { itemData: ee, isEdit: O, routeToChildPath: ce } = sl(j), { activeMenuPath: oe, platform: _e, childMenu: te } = sl(w), { loginUserInfo: be } = sl(N), T = q(!1), S = (C, Z) => {
|
|
3055
|
+
const x = Z;
|
|
3055
3056
|
return C == null ? void 0 : C.map((s) => {
|
|
3056
3057
|
var c;
|
|
3057
3058
|
return s = (c = s == null ? void 0 : s.map((D, I) => {
|
|
@@ -3063,8 +3064,8 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3063
3064
|
})) == null ? void 0 : c.filter((D) => D.key !== "操作"), s;
|
|
3064
3065
|
});
|
|
3065
3066
|
}, me = async () => {
|
|
3066
|
-
var C,
|
|
3067
|
-
(C = V.value) != null && C.find((x) => (x == null ? void 0 : x.buttonName) === "保存") && await Ie((
|
|
3067
|
+
var C, Z;
|
|
3068
|
+
(C = V.value) != null && C.find((x) => (x == null ? void 0 : x.buttonName) === "保存") && await Ie((Z = V.value) == null ? void 0 : Z.find((x) => (x == null ? void 0 : x.buttonName) === "保存")), await pn();
|
|
3068
3069
|
};
|
|
3069
3070
|
Ye(
|
|
3070
3071
|
() => ee.value,
|
|
@@ -3075,26 +3076,26 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3075
3076
|
);
|
|
3076
3077
|
const d = () => {
|
|
3077
3078
|
i.value = !1, o.value = void 0;
|
|
3078
|
-
},
|
|
3079
|
-
var s, c, D, I, W, H,
|
|
3080
|
-
let x = (s = l(
|
|
3079
|
+
}, f = (C, Z) => {
|
|
3080
|
+
var s, c, D, I, W, H, B, u, X, z, pe, Q;
|
|
3081
|
+
let x = (s = l(Z)) == null ? void 0 : s.filter((R) => (R == null ? void 0 : R.comp) !== "methodButton");
|
|
3081
3082
|
if (C != null && C.includes("[")) {
|
|
3082
3083
|
let R = (H = (W = (I = (D = (c = l(C)) == null ? void 0 : c.split("[")) == null ? void 0 : D[1]) == null ? void 0 : I.split("]")) == null ? void 0 : W[0]) == null ? void 0 : H.split(":"), P = "";
|
|
3083
3084
|
if (R != null && R[0]) {
|
|
3084
|
-
let U = (
|
|
3085
|
+
let U = (B = x == null ? void 0 : x.find((A) => (A == null ? void 0 : A.name) === (R == null ? void 0 : R[0]))) == null ? void 0 : B.compData;
|
|
3085
3086
|
U == null || U.forEach((A) => {
|
|
3086
|
-
var fe, le,
|
|
3087
|
+
var fe, le, F, b, y;
|
|
3087
3088
|
if ((A == null ? void 0 : A.key) === "formContent")
|
|
3088
3089
|
(fe = A == null ? void 0 : A.contents) == null || fe.forEach((J) => {
|
|
3089
3090
|
(J == null ? void 0 : J.key) === (R == null ? void 0 : R[1]) && (P = J == null ? void 0 : J.value.toString());
|
|
3090
3091
|
});
|
|
3091
3092
|
else if ((A == null ? void 0 : A.key) === "tableContents") {
|
|
3092
|
-
let J = [],
|
|
3093
|
-
(
|
|
3094
|
-
let
|
|
3095
|
-
n = n == null ? void 0 : n.filter((e) => !(e != null && e.id)),
|
|
3096
|
-
|
|
3097
|
-
}), J.push(
|
|
3093
|
+
let J = [], p = (b = (F = (le = U == null ? void 0 : U.find((n) => (n == null ? void 0 : n.key) === "header")) == null ? void 0 : le.contents) == null ? void 0 : F.map((n) => n == null ? void 0 : n.label)) == null ? void 0 : b.filter((n) => n !== "操作");
|
|
3094
|
+
(y = A.contents) == null || y.forEach((n) => {
|
|
3095
|
+
let Y = {};
|
|
3096
|
+
n = n == null ? void 0 : n.filter((e) => !(e != null && e.id)), p == null || p.forEach((e, a) => {
|
|
3097
|
+
Y[e] = n[a];
|
|
3098
|
+
}), J.push(Y);
|
|
3098
3099
|
}), P = J;
|
|
3099
3100
|
}
|
|
3100
3101
|
});
|
|
@@ -3103,11 +3104,11 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3103
3104
|
} else if (C != null && C.includes("/")) {
|
|
3104
3105
|
let R = {};
|
|
3105
3106
|
return (u = l(x)) == null || u.forEach((P, U) => {
|
|
3106
|
-
var A, fe, le,
|
|
3107
|
+
var A, fe, le, F, b, y, J, p, n, Y, e, a, t, v, _, M, ye, K, ie;
|
|
3107
3108
|
if ((P == null ? void 0 : P.comp) === "Table") {
|
|
3108
|
-
let ne = Array.isArray((le = (fe = (A = P == null ? void 0 : P.compData) == null ? void 0 : A.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : fe.contents) == null ? void 0 : le[0]) ? (J = (
|
|
3109
|
+
let ne = Array.isArray((le = (fe = (A = P == null ? void 0 : P.compData) == null ? void 0 : A.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : fe.contents) == null ? void 0 : le[0]) ? (J = (y = (b = (F = P == null ? void 0 : P.compData) == null ? void 0 : F.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : b.contents) == null ? void 0 : y[0]) == null ? void 0 : J.some((h) => h == null ? void 0 : h.children) : [], Ce = (Y = (n = (p = P == null ? void 0 : P.compData) == null ? void 0 : p.find((h) => (h == null ? void 0 : h.key) === "tableContents")) == null ? void 0 : n.contents) == null ? void 0 : Y.map((h) => h.slice(1)), de = (_ = (v = (t = (a = (e = P == null ? void 0 : P.compData) == null ? void 0 : e.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : a.contents) == null ? void 0 : t[0]) == null ? void 0 : v[0]) == null ? void 0 : _.label, G = (ye = (M = P == null ? void 0 : P.compData) == null ? void 0 : M.find((h) => (h == null ? void 0 : h.key) === "header")) == null ? void 0 : ye.contents;
|
|
3109
3110
|
if (ne)
|
|
3110
|
-
(ne == null ? void 0 : ne.length) === 0 ? R[P.name] =
|
|
3111
|
+
(ne == null ? void 0 : ne.length) === 0 ? R[P.name] = S(Ce, G) : R[de] = S(Ce, G);
|
|
3111
3112
|
else {
|
|
3112
3113
|
const h = [];
|
|
3113
3114
|
G = G.slice(1, G.length - 1), G == null || G.forEach((he, re) => {
|
|
@@ -3133,7 +3134,7 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3133
3134
|
}), R;
|
|
3134
3135
|
} else {
|
|
3135
3136
|
if (C === "createInsofDataApi") {
|
|
3136
|
-
let R = (X = l(
|
|
3137
|
+
let R = (X = l(Z)) == null ? void 0 : X[0];
|
|
3137
3138
|
return R = {
|
|
3138
3139
|
comp: (z = l(R)) == null ? void 0 : z.comp,
|
|
3139
3140
|
compData: (pe = l(R)) == null ? void 0 : pe.compData,
|
|
@@ -3152,16 +3153,16 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3152
3153
|
}
|
|
3153
3154
|
return C;
|
|
3154
3155
|
}
|
|
3155
|
-
},
|
|
3156
|
+
}, m = async (C, Z, x) => {
|
|
3156
3157
|
var D, I;
|
|
3157
|
-
let s = await hl(
|
|
3158
|
+
let s = await hl(Z, sessionStorage.getItem("systemKey"), ""), c = s == null ? void 0 : s.find((W) => (W == null ? void 0 : W.name) === (x == null ? void 0 : x[0]));
|
|
3158
3159
|
if (c) {
|
|
3159
3160
|
if ((c == null ? void 0 : c.comp) === "Table") {
|
|
3160
3161
|
let W = {};
|
|
3161
3162
|
for (let Q in l(C))
|
|
3162
3163
|
l(C)[Q] !== "loginUser" ? W[Q] = l(C)[Q] : W[Q] = (D = be.value) == null ? void 0 : D.account;
|
|
3163
|
-
let H = [],
|
|
3164
|
-
Array.isArray(C) || (
|
|
3164
|
+
let H = [], B = W;
|
|
3165
|
+
Array.isArray(C) || (B = [W]), B == null || B.forEach((Q) => {
|
|
3165
3166
|
H.push({
|
|
3166
3167
|
[Q[x[1]]]: Q
|
|
3167
3168
|
});
|
|
@@ -3211,8 +3212,8 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3211
3212
|
let H = {};
|
|
3212
3213
|
for (let u in W)
|
|
3213
3214
|
u !== "id" && (H[u] = W[u]);
|
|
3214
|
-
let
|
|
3215
|
-
if (
|
|
3215
|
+
let B = [];
|
|
3216
|
+
if (B.push({
|
|
3216
3217
|
id: c == null ? void 0 : c.id,
|
|
3217
3218
|
keyType: x == null ? void 0 : x[1],
|
|
3218
3219
|
// key: {
|
|
@@ -3225,13 +3226,13 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3225
3226
|
value: {
|
|
3226
3227
|
pageData: H
|
|
3227
3228
|
}
|
|
3228
|
-
}), (
|
|
3229
|
-
return
|
|
3229
|
+
}), (B == null ? void 0 : B.length) > 0)
|
|
3230
|
+
return B;
|
|
3230
3231
|
}
|
|
3231
3232
|
}
|
|
3232
|
-
}, k = async (C,
|
|
3233
|
-
var D, I, W, H,
|
|
3234
|
-
let s = await hl(
|
|
3233
|
+
}, k = async (C, Z, x) => {
|
|
3234
|
+
var D, I, W, H, B, u, X, z, pe;
|
|
3235
|
+
let s = await hl(Z, sessionStorage.getItem("systemKey"), ""), c = s == null ? void 0 : s.find((Q) => (Q == null ? void 0 : Q.name) === (x == null ? void 0 : x[0]));
|
|
3235
3236
|
if (c) {
|
|
3236
3237
|
if ((c == null ? void 0 : c.comp) === "Table") {
|
|
3237
3238
|
let Q = {};
|
|
@@ -3240,7 +3241,7 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3240
3241
|
await di({
|
|
3241
3242
|
key: {
|
|
3242
3243
|
type: "data",
|
|
3243
|
-
pageKey:
|
|
3244
|
+
pageKey: Z,
|
|
3244
3245
|
tableId: c == null ? void 0 : c.id,
|
|
3245
3246
|
systemKey: sessionStorage.getItem("systemKey")
|
|
3246
3247
|
},
|
|
@@ -3251,10 +3252,10 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3251
3252
|
} else if ((c == null ? void 0 : c.comp) === "Form") {
|
|
3252
3253
|
let Q = l(c), R = Object.keys(C), P = "";
|
|
3253
3254
|
(W = (I = l(Q)) == null ? void 0 : I.compData) == null || W.forEach((b) => {
|
|
3254
|
-
var
|
|
3255
|
-
(b == null ? void 0 : b.key) === "formContent" && ((J = (
|
|
3255
|
+
var y, J;
|
|
3256
|
+
(b == null ? void 0 : b.key) === "formContent" && ((J = (y = l(b)) == null ? void 0 : y.contents) == null || J.forEach((p) => {
|
|
3256
3257
|
var n;
|
|
3257
|
-
R.includes(
|
|
3258
|
+
R.includes(p == null ? void 0 : p.key) && (p == null ? void 0 : p.value) === ((n = be.value) == null ? void 0 : n.姓名) && (P = p == null ? void 0 : p.key);
|
|
3258
3259
|
}));
|
|
3259
3260
|
});
|
|
3260
3261
|
let U = [];
|
|
@@ -3262,18 +3263,18 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3262
3263
|
b != null && b.includes("(") && U.push(b);
|
|
3263
3264
|
}), U = [...new Set(U)];
|
|
3264
3265
|
const A = U == null ? void 0 : U.map(async (b) => {
|
|
3265
|
-
var
|
|
3266
|
-
let
|
|
3267
|
-
(_ = (v = (t = (a = (e = (
|
|
3268
|
-
|
|
3266
|
+
var Y, e, a, t, v, _, M, ye, K, ie, ne, Ce;
|
|
3267
|
+
let y = "";
|
|
3268
|
+
(_ = (v = (t = (a = (e = (Y = l(b)) == null ? void 0 : Y.split("(")) == null ? void 0 : e[1]) == null ? void 0 : a.split(")")) == null ? void 0 : t[0]) == null ? void 0 : v.split(":")) == null || _.forEach((de) => {
|
|
3269
|
+
y = y === "" ? y + de.replaceAll("'", "") : y + "/" + de.replaceAll("'", "");
|
|
3269
3270
|
});
|
|
3270
3271
|
let J = [];
|
|
3271
3272
|
(Ce = (ne = (ie = (K = (ye = (M = l(b)) == null ? void 0 : M.split("<")) == null ? void 0 : ye[1]) == null ? void 0 : K.split(">")) == null ? void 0 : ie[0]) == null ? void 0 : ne.split(":")) == null || Ce.forEach((de) => {
|
|
3272
3273
|
J.push(de.replaceAll("'", ""));
|
|
3273
3274
|
});
|
|
3274
|
-
const
|
|
3275
|
+
const p = await hl(y, sessionStorage.getItem("systemKey"), "");
|
|
3275
3276
|
let n = "";
|
|
3276
|
-
return
|
|
3277
|
+
return p == null || p.forEach((de) => {
|
|
3277
3278
|
var G;
|
|
3278
3279
|
de.name === (J == null ? void 0 : J[0]) && ((G = de == null ? void 0 : de.compData) == null || G.forEach((h) => {
|
|
3279
3280
|
var he;
|
|
@@ -3285,76 +3286,76 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3285
3286
|
[b]: n
|
|
3286
3287
|
};
|
|
3287
3288
|
}), fe = await Promise.all(A);
|
|
3288
|
-
Q.compData = (u = (
|
|
3289
|
-
var
|
|
3290
|
-
return (b == null ? void 0 : b.key) === "formContent" && (b.contents = (J = (
|
|
3291
|
-
var n,
|
|
3292
|
-
return (n = C[P]) != null && n[
|
|
3289
|
+
Q.compData = (u = (B = l(Q)) == null ? void 0 : B.compData) == null ? void 0 : u.map((b) => {
|
|
3290
|
+
var y, J;
|
|
3291
|
+
return (b == null ? void 0 : b.key) === "formContent" && (b.contents = (J = (y = l(b)) == null ? void 0 : y.contents) == null ? void 0 : J.map((p) => {
|
|
3292
|
+
var n, Y, e, a;
|
|
3293
|
+
return (n = C[P]) != null && n[p == null ? void 0 : p.key] && (C[P][p == null ? void 0 : p.key].includes("(") ? p.value = (Y = fe == null ? void 0 : fe.find((t) => {
|
|
3293
3294
|
var v;
|
|
3294
|
-
return ((v = Object.keys(t)) == null ? void 0 : v[0]) === C[P][
|
|
3295
|
-
})) == null ? void 0 :
|
|
3295
|
+
return ((v = Object.keys(t)) == null ? void 0 : v[0]) === C[P][p == null ? void 0 : p.key];
|
|
3296
|
+
})) == null ? void 0 : Y[C[P][p == null ? void 0 : p.key]] : p.value = (a = (e = l(C)) == null ? void 0 : e[P]) == null ? void 0 : a[p == null ? void 0 : p.key]), p;
|
|
3296
3297
|
})), b;
|
|
3297
3298
|
});
|
|
3298
3299
|
const le = await gl({
|
|
3299
3300
|
key: {
|
|
3300
3301
|
type: "structure",
|
|
3301
|
-
pageKey:
|
|
3302
|
+
pageKey: Z,
|
|
3302
3303
|
systemKey: sessionStorage.getItem("systemKey")
|
|
3303
3304
|
}
|
|
3304
3305
|
});
|
|
3305
|
-
let
|
|
3306
|
+
let F = "";
|
|
3306
3307
|
((X = le == null ? void 0 : le.data) == null ? void 0 : X.type) === "success" && ((pe = (z = le == null ? void 0 : le.data) == null ? void 0 : z.result) == null || pe.forEach((b) => {
|
|
3307
|
-
var
|
|
3308
|
-
((J = (
|
|
3308
|
+
var y, J;
|
|
3309
|
+
((J = (y = b == null ? void 0 : b.value) == null ? void 0 : y.pageData) == null ? void 0 : J.name) === (x == null ? void 0 : x[0]) && (F = b.id);
|
|
3309
3310
|
}), await ya({
|
|
3310
|
-
id:
|
|
3311
|
+
id: F,
|
|
3311
3312
|
value: {
|
|
3312
3313
|
pageData: Q
|
|
3313
3314
|
}
|
|
3314
3315
|
}));
|
|
3315
3316
|
}
|
|
3316
3317
|
}
|
|
3317
|
-
}, ue = async (C,
|
|
3318
|
-
var D, I, W, H,
|
|
3319
|
-
let s = await hl(
|
|
3318
|
+
}, ue = async (C, Z, x) => {
|
|
3319
|
+
var D, I, W, H, B, u, X, z, pe, Q, R, P, U, A;
|
|
3320
|
+
let s = await hl(Z, sessionStorage.getItem("systemKey"), ""), c = s == null ? void 0 : s.find((fe) => (fe == null ? void 0 : fe.name) === (x == null ? void 0 : x[0]));
|
|
3320
3321
|
if (c) {
|
|
3321
3322
|
if (!(x != null && x[1]) && (c == null ? void 0 : c.comp) === "Table") {
|
|
3322
|
-
let fe = {}, le = (W = (I = (D = c == null ? void 0 : c.compData) == null ? void 0 : D.find((
|
|
3323
|
-
for (let
|
|
3324
|
-
if (l(C)[
|
|
3325
|
-
let J = l(C)[
|
|
3323
|
+
let fe = {}, le = (W = (I = (D = c == null ? void 0 : c.compData) == null ? void 0 : D.find((y) => (y == null ? void 0 : y.key) === "header")) == null ? void 0 : I.contents) == null ? void 0 : W.map((y) => y == null ? void 0 : y.label);
|
|
3324
|
+
for (let y in l(C))
|
|
3325
|
+
if (l(C)[y] !== "loginUser") {
|
|
3326
|
+
let J = l(C)[y], p = {};
|
|
3326
3327
|
for (let n in J)
|
|
3327
|
-
if (le != null && le.find((
|
|
3328
|
-
|
|
3328
|
+
if (le != null && le.find((Y) => Y === n))
|
|
3329
|
+
p[n] = J[n];
|
|
3329
3330
|
else {
|
|
3330
|
-
let
|
|
3331
|
-
|
|
3331
|
+
let Y = le == null ? void 0 : le.find((e) => (e == null ? void 0 : e.toUpperCase()) === (n == null ? void 0 : n.toUpperCase()));
|
|
3332
|
+
p[Y] = J[n];
|
|
3332
3333
|
}
|
|
3333
|
-
fe[
|
|
3334
|
+
fe[y] = p;
|
|
3334
3335
|
} else
|
|
3335
|
-
fe[
|
|
3336
|
-
let
|
|
3336
|
+
fe[y] = (H = be.value) == null ? void 0 : H.account;
|
|
3337
|
+
let F = await gl({
|
|
3337
3338
|
keyLikes: {
|
|
3338
3339
|
tableId: c == null ? void 0 : c.id
|
|
3339
3340
|
}
|
|
3340
3341
|
});
|
|
3341
|
-
if (((u = (
|
|
3342
|
-
let
|
|
3343
|
-
(
|
|
3344
|
-
ids:
|
|
3342
|
+
if (((u = (B = F == null ? void 0 : F.data) == null ? void 0 : B.result) == null ? void 0 : u.length) > 0) {
|
|
3343
|
+
let y = (z = (X = F == null ? void 0 : F.data) == null ? void 0 : X.result) == null ? void 0 : z.map((J) => J == null ? void 0 : J.id);
|
|
3344
|
+
(y == null ? void 0 : y.length) > 0 && await ja({
|
|
3345
|
+
ids: y
|
|
3345
3346
|
});
|
|
3346
3347
|
}
|
|
3347
3348
|
let b = [];
|
|
3348
|
-
(pe = Object.values(fe)) == null || pe.forEach((
|
|
3349
|
+
(pe = Object.values(fe)) == null || pe.forEach((y) => {
|
|
3349
3350
|
b.push({
|
|
3350
3351
|
key: {
|
|
3351
3352
|
type: "data",
|
|
3352
|
-
pageKey:
|
|
3353
|
+
pageKey: Z,
|
|
3353
3354
|
tableId: c == null ? void 0 : c.id,
|
|
3354
3355
|
systemKey: sessionStorage.getItem("systemKey")
|
|
3355
3356
|
},
|
|
3356
3357
|
value: {
|
|
3357
|
-
tableData:
|
|
3358
|
+
tableData: y
|
|
3358
3359
|
}
|
|
3359
3360
|
});
|
|
3360
3361
|
}), (b == null ? void 0 : b.length) > 0 && await Pa({
|
|
@@ -3363,25 +3364,25 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3363
3364
|
} else if (!(x != null && x[1]) && (c == null ? void 0 : c.comp) === "Form") {
|
|
3364
3365
|
let fe = l(c);
|
|
3365
3366
|
fe.compData = (R = (Q = l(fe)) == null ? void 0 : Q.compData) == null ? void 0 : R.map((b) => {
|
|
3366
|
-
var
|
|
3367
|
-
return (b == null ? void 0 : b.key) === "formContent" && (b.contents = (J = (
|
|
3368
|
-
var n,
|
|
3369
|
-
return (n = l(C)) != null && n[
|
|
3367
|
+
var y, J;
|
|
3368
|
+
return (b == null ? void 0 : b.key) === "formContent" && (b.contents = (J = (y = l(b)) == null ? void 0 : y.contents) == null ? void 0 : J.map((p) => {
|
|
3369
|
+
var n, Y;
|
|
3370
|
+
return (n = l(C)) != null && n[p == null ? void 0 : p.key] && (p.value = (Y = l(C)) == null ? void 0 : Y[p == null ? void 0 : p.key]), p;
|
|
3370
3371
|
})), b;
|
|
3371
3372
|
});
|
|
3372
3373
|
const le = await gl({
|
|
3373
3374
|
key: {
|
|
3374
3375
|
type: "structure",
|
|
3375
|
-
pageKey:
|
|
3376
|
+
pageKey: Z,
|
|
3376
3377
|
systemKey: sessionStorage.getItem("systemKey")
|
|
3377
3378
|
}
|
|
3378
3379
|
});
|
|
3379
|
-
let
|
|
3380
|
+
let F = "";
|
|
3380
3381
|
((P = le == null ? void 0 : le.data) == null ? void 0 : P.type) === "success" && ((A = (U = le == null ? void 0 : le.data) == null ? void 0 : U.result) == null || A.forEach((b) => {
|
|
3381
|
-
var
|
|
3382
|
-
((J = (
|
|
3382
|
+
var y, J;
|
|
3383
|
+
((J = (y = b == null ? void 0 : b.value) == null ? void 0 : y.pageData) == null ? void 0 : J.name) === (x == null ? void 0 : x[0]) && (F = b.id);
|
|
3383
3384
|
}), await ya({
|
|
3384
|
-
id:
|
|
3385
|
+
id: F,
|
|
3385
3386
|
value: {
|
|
3386
3387
|
pageData: fe
|
|
3387
3388
|
}
|
|
@@ -3389,17 +3390,17 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3389
3390
|
}
|
|
3390
3391
|
}
|
|
3391
3392
|
}, ge = ["createInsofDataApi"], Ie = async (C) => {
|
|
3392
|
-
var
|
|
3393
|
+
var Z, x, s, c, D, I, W, H, B, u, X, z, pe;
|
|
3393
3394
|
if (w.setImportLoading(!0), C.api) {
|
|
3394
3395
|
let Q = await hl((te == null ? void 0 : te.value) === "" ? oe.value : te == null ? void 0 : te.value, sessionStorage.getItem("systemKey"), ""), R = {};
|
|
3395
|
-
(x = (
|
|
3396
|
-
var
|
|
3397
|
-
ge != null && ge.find((J) => J === b) ? R =
|
|
3396
|
+
(x = (Z = C == null ? void 0 : C.extraValues) == null ? void 0 : Z.input) == null || x.forEach((b) => {
|
|
3397
|
+
var y;
|
|
3398
|
+
ge != null && ge.find((J) => J === b) ? R = f(b, Q) : R[Object.keys(b)[0]] = f((y = Object.values(b)) == null ? void 0 : y[0], Q);
|
|
3398
3399
|
});
|
|
3399
3400
|
let P = !1;
|
|
3400
3401
|
(c = (s = C == null ? void 0 : C.extraValues) == null ? void 0 : s.output) == null || c.forEach((b) => {
|
|
3401
|
-
var
|
|
3402
|
-
(J = (
|
|
3402
|
+
var y, J;
|
|
3403
|
+
(J = (y = Object.values(b)) == null ? void 0 : y[0]) != null && J.includes(".doc") && (P = !0);
|
|
3403
3404
|
});
|
|
3404
3405
|
let U;
|
|
3405
3406
|
P ? U = await ba.post(C.api, R, {
|
|
@@ -3414,19 +3415,19 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3414
3415
|
}
|
|
3415
3416
|
});
|
|
3416
3417
|
let A = (H = (W = (I = (D = l(C)) == null ? void 0 : D.extraValues) == null ? void 0 : I.output) == null ? void 0 : W.map((b) => {
|
|
3417
|
-
var
|
|
3418
|
-
if (!((J = (
|
|
3419
|
-
let de = (_ = (v = (t = (n = l((
|
|
3418
|
+
var y, J, p, n, Y, e, a, t, v, _, M, ye, K, ie, ne, Ce;
|
|
3419
|
+
if (!((J = (y = Object.values(b)) == null ? void 0 : y[0]) != null && J.includes(".doc"))) {
|
|
3420
|
+
let de = (_ = (v = (t = (n = l((p = Object.values(b)) == null ? void 0 : p[0])) == null ? void 0 : n.split("[")) == null ? void 0 : t[((a = (e = l((Y = Object.values(b)) == null ? void 0 : Y[0])) == null ? void 0 : e.split("[")) == null ? void 0 : a.length) - 1]) == null ? void 0 : v.split("]")) == null ? void 0 : _[0];
|
|
3420
3421
|
de == null || de.split(":");
|
|
3421
3422
|
let G = (K = l((M = Object.values(b)) == null ? void 0 : M[0])) == null ? void 0 : K.substring(0, l((ye = Object.values(b)) == null ? void 0 : ye[0]).lastIndexOf("["));
|
|
3422
3423
|
if (G = (ne = l(G)) == null ? void 0 : ne.slice(0, ((ie = l(G)) == null ? void 0 : ie.length) - 1), G != null && G.includes("[")) {
|
|
3423
3424
|
let h = "";
|
|
3424
3425
|
if ((Ce = Ca(G, "/")) == null || Ce.forEach((he) => {
|
|
3425
|
-
var re, we, Pe, Ke,
|
|
3426
|
+
var re, we, Pe, Ke, $, Te, xe;
|
|
3426
3427
|
if (!(he != null && he.includes("[")))
|
|
3427
3428
|
h = h === "" ? h + he.replaceAll("/", "") : h + "/" + he.replaceAll("/", "");
|
|
3428
3429
|
else {
|
|
3429
|
-
let Ve = l(he).slice(1, ((re = l(he)) == null ? void 0 : re.length) - 1), Ae = (Te = (
|
|
3430
|
+
let Ve = l(he).slice(1, ((re = l(he)) == null ? void 0 : re.length) - 1), Ae = (Te = ($ = (Ke = (Pe = (we = l(Ve)) == null ? void 0 : we.split("[")) == null ? void 0 : Pe[1]) == null ? void 0 : Ke.split("]")) == null ? void 0 : $[0]) == null ? void 0 : Te.split(":"), $e = "", We = (xe = Q == null ? void 0 : Q.find((Ge) => (Ge == null ? void 0 : Ge.name) === (Ae == null ? void 0 : Ae[0]))) == null ? void 0 : xe.compData;
|
|
3430
3431
|
We == null || We.forEach((Ge) => {
|
|
3431
3432
|
var rl;
|
|
3432
3433
|
(Ge == null ? void 0 : Ge.key) === "formContent" && ((rl = Ge == null ? void 0 : Ge.contents) == null || rl.forEach((Ze) => {
|
|
@@ -3441,21 +3442,21 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3441
3442
|
})) == null ? void 0 : H.filter((b) => b);
|
|
3442
3443
|
A = [...new Set(l(A))];
|
|
3443
3444
|
let fe = A == null ? void 0 : A.map(async (b) => {
|
|
3444
|
-
let
|
|
3445
|
-
if ((
|
|
3445
|
+
let y = await hl(b, sessionStorage.getItem("systemKey"), "");
|
|
3446
|
+
if ((y == null ? void 0 : y.length) === 0)
|
|
3446
3447
|
return await vi(b);
|
|
3447
3448
|
});
|
|
3448
3449
|
await Promise.all(fe);
|
|
3449
|
-
let le = [],
|
|
3450
|
-
var a, t, v, _, M, ye, K, ie, ne, Ce, de, G, h, he, re, we, Pe, Ke,
|
|
3450
|
+
let le = [], F = (X = (u = (B = l(C)) == null ? void 0 : B.extraValues) == null ? void 0 : u.output) == null ? void 0 : X.map(async (b) => {
|
|
3451
|
+
var a, t, v, _, M, ye, K, ie, ne, Ce, de, G, h, he, re, we, Pe, Ke, $, Te, xe, Ve, Ae, $e, We, Ge, rl, Ze, kl, _l, Cl, wl, Dl, Ll, Ol, Vl, Rl, Ul, jl, Pl, Kl, Nl, Ml, Wl, ul, il, zl, Jl, Hl, Gl, ql, Ql, Xl, Yl, Zl, ea, la, aa, ia, sa, na;
|
|
3451
3452
|
if ((t = (a = Object.values(b)) == null ? void 0 : a[0]) != null && t.includes(".doc")) {
|
|
3452
|
-
var
|
|
3453
|
+
var y = new Blob([U.data], {
|
|
3453
3454
|
type: "application/octet-stream;charset=UTF-8"
|
|
3454
|
-
}), J = U.headers["content-disposition"],
|
|
3455
|
+
}), J = U.headers["content-disposition"], p = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), n = p.exec(J), Y = n == null ? void 0 : n[1];
|
|
3455
3456
|
document.createElement("a");
|
|
3456
|
-
var e = window.URL.createObjectURL(
|
|
3457
|
+
var e = window.URL.createObjectURL(y);
|
|
3457
3458
|
o.value = [{
|
|
3458
|
-
name:
|
|
3459
|
+
name: Y,
|
|
3459
3460
|
blobUrl: e
|
|
3460
3461
|
}], i.value = !0;
|
|
3461
3462
|
} else {
|
|
@@ -3478,12 +3479,12 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3478
3479
|
}), nl = Se;
|
|
3479
3480
|
}
|
|
3480
3481
|
let xl = l((Pe = Object.keys(b)) == null ? void 0 : Pe[0]);
|
|
3481
|
-
if (((Ke = U == null ? void 0 : U.data) == null ? void 0 : Ke.statusCode) === 200 || ((
|
|
3482
|
+
if (((Ke = U == null ? void 0 : U.data) == null ? void 0 : Ke.statusCode) === 200 || (($ = U == null ? void 0 : U.data) == null ? void 0 : $.code) === 200) {
|
|
3482
3483
|
if ((xe = (Te = U == null ? void 0 : U.data) == null ? void 0 : Te.data) != null && xe[xl] && (Re == null ? void 0 : Re.length) === 1)
|
|
3483
3484
|
return await ue((Ae = (Ve = U == null ? void 0 : U.data) == null ? void 0 : Ve.data) == null ? void 0 : Ae[xl], nl, Re);
|
|
3484
3485
|
if ((We = ($e = U == null ? void 0 : U.data) == null ? void 0 : $e.data) != null && We[xl]) {
|
|
3485
|
-
let Se = await
|
|
3486
|
-
return le = [...le, ...Se], Se;
|
|
3486
|
+
let Se = await m((rl = (Ge = U == null ? void 0 : U.data) == null ? void 0 : Ge.data) == null ? void 0 : rl[xl], nl, Re);
|
|
3487
|
+
return Se && (le = [...le, ...Se]), Se;
|
|
3487
3488
|
} else {
|
|
3488
3489
|
if (!((Ze = U == null ? void 0 : U.data) != null && Ze.data)) {
|
|
3489
3490
|
let Se = await hl(oe.value, sessionStorage.getItem("systemKey"), "");
|
|
@@ -3528,28 +3529,28 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3528
3529
|
return (aa = (la = (ea = (Zl = (Yl = Se == null ? void 0 : Se.split("(")) == null ? void 0 : Yl[1]) == null ? void 0 : Zl.split(")")) == null ? void 0 : ea[0]) == null ? void 0 : la.split(":")) == null || aa.forEach((qe) => {
|
|
3529
3530
|
var Me, cl;
|
|
3530
3531
|
Ne = Ne === "" ? Ne + ((Me = qe == null ? void 0 : qe.replaceAll("'", "")) == null ? void 0 : Me.trim()) : Ne + "/" + ((cl = qe == null ? void 0 : qe.replaceAll("'", "")) == null ? void 0 : cl.trim());
|
|
3531
|
-
}), await
|
|
3532
|
+
}), await m((na = (sa = (ia = U == null ? void 0 : U.data) == null ? void 0 : ia.data) == null ? void 0 : sa.data) == null ? void 0 : na[Re == null ? void 0 : Re[0]], Ne, Re);
|
|
3532
3533
|
}
|
|
3533
3534
|
}
|
|
3534
3535
|
}
|
|
3535
3536
|
}
|
|
3536
3537
|
});
|
|
3537
|
-
if (await Promise.all(
|
|
3538
|
+
if (await Promise.all(F), (le == null ? void 0 : le.length) > 0) {
|
|
3538
3539
|
let b = (z = l(le)) == null ? void 0 : z[0];
|
|
3539
|
-
b.value.pageData.compData = (pe = b.value.pageData.compData) == null ? void 0 : pe.map((
|
|
3540
|
+
b.value.pageData.compData = (pe = b.value.pageData.compData) == null ? void 0 : pe.map((y) => {
|
|
3540
3541
|
var J;
|
|
3541
|
-
return (
|
|
3542
|
-
var
|
|
3543
|
-
let n = (
|
|
3542
|
+
return (y == null ? void 0 : y.key) === "formContent" && (y.contents = (J = y.contents) == null ? void 0 : J.map((p) => {
|
|
3543
|
+
var Y, e, a, t;
|
|
3544
|
+
let n = (Y = l(le)) == null ? void 0 : Y.find((v) => (v == null ? void 0 : v.keyType) === (p == null ? void 0 : p.key));
|
|
3544
3545
|
if (n) {
|
|
3545
|
-
let v = (t = (a = (e = n.value.pageData.compData) == null ? void 0 : e.find((_) => (_ == null ? void 0 : _.key) === "formContent")) == null ? void 0 : a.contents) == null ? void 0 : t.find((_) => (_ == null ? void 0 : _.key) === (
|
|
3546
|
-
|
|
3546
|
+
let v = (t = (a = (e = n.value.pageData.compData) == null ? void 0 : e.find((_) => (_ == null ? void 0 : _.key) === "formContent")) == null ? void 0 : a.contents) == null ? void 0 : t.find((_) => (_ == null ? void 0 : _.key) === (p == null ? void 0 : p.key));
|
|
3547
|
+
p.value = v == null ? void 0 : v.value;
|
|
3547
3548
|
}
|
|
3548
|
-
return
|
|
3549
|
-
})),
|
|
3549
|
+
return p;
|
|
3550
|
+
})), y;
|
|
3550
3551
|
});
|
|
3551
|
-
for (let
|
|
3552
|
-
|
|
3552
|
+
for (let y in b)
|
|
3553
|
+
y !== "keyType" && b[y];
|
|
3553
3554
|
await ya(b);
|
|
3554
3555
|
}
|
|
3555
3556
|
j.setFreshContent(!0);
|
|
@@ -3557,10 +3558,10 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3557
3558
|
w.setImportLoading(!1), T.value = !0;
|
|
3558
3559
|
}, Fe = async (C) => {
|
|
3559
3560
|
var D, I, W;
|
|
3560
|
-
const
|
|
3561
|
+
const Z = l(C);
|
|
3561
3562
|
let x;
|
|
3562
|
-
C != null && C[0].path && (x = await (
|
|
3563
|
-
var Q, R, P, U, A, fe, le,
|
|
3563
|
+
C != null && C[0].path && (x = await (Z == null ? void 0 : Z.map(async (H, B) => {
|
|
3564
|
+
var Q, R, P, U, A, fe, le, F, b, y;
|
|
3564
3565
|
const X = (await gl({
|
|
3565
3566
|
key: {
|
|
3566
3567
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -3571,18 +3572,18 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3571
3572
|
let z = "";
|
|
3572
3573
|
const pe = await hl(oe.value, sessionStorage.getItem("systemKey"), "");
|
|
3573
3574
|
return X == null || X.forEach((J) => {
|
|
3574
|
-
var
|
|
3575
|
-
((n = (
|
|
3575
|
+
var p, n, Y, e, a;
|
|
3576
|
+
((n = (p = J == null ? void 0 : J.value) == null ? void 0 : p.tableData) == null ? void 0 : n.算法名称) === ((Y = Z == null ? void 0 : Z[B]) == null ? void 0 : Y.method) && (z = (a = (e = J == null ? void 0 : J.value) == null ? void 0 : e.tableData) == null ? void 0 : a.算法体);
|
|
3576
3577
|
}), {
|
|
3577
|
-
buttonName: ((R =
|
|
3578
|
-
api: z === "" ? (
|
|
3578
|
+
buttonName: ((R = Z == null ? void 0 : Z[B]) == null ? void 0 : R.method) ?? ((A = (U = (P = X == null ? void 0 : X[0]) == null ? void 0 : P.value) == null ? void 0 : U.tableData) == null ? void 0 : A.算法名称),
|
|
3579
|
+
api: z === "" ? (F = (le = (fe = X == null ? void 0 : X[0]) == null ? void 0 : fe.value) == null ? void 0 : le.tableData) == null ? void 0 : F.算法体 : z,
|
|
3579
3580
|
content: pe == null ? void 0 : pe.filter((J) => J.comp !== "methodButton"),
|
|
3580
3581
|
extraContent: (b = l(H.value)) == null ? void 0 : b.slice(1),
|
|
3581
3582
|
methodName: (H == null ? void 0 : H.path) ?? "",
|
|
3582
|
-
extraValues: (
|
|
3583
|
+
extraValues: (y = Z == null ? void 0 : Z[B]) == null ? void 0 : y.data
|
|
3583
3584
|
};
|
|
3584
3585
|
})));
|
|
3585
|
-
const s =
|
|
3586
|
+
const s = Z == null ? void 0 : Z.map(async (H) => {
|
|
3586
3587
|
var Q, R, P, U, A, fe;
|
|
3587
3588
|
const u = (Q = (await gl({
|
|
3588
3589
|
key: {
|
|
@@ -3607,8 +3608,8 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3607
3608
|
};
|
|
3608
3609
|
}), c = (D = C == null ? void 0 : C[0]) != null && D.path && ((I = C == null ? void 0 : C[0]) == null ? void 0 : I.path) !== "" ? await Promise.all(x) : await Promise.all(s);
|
|
3609
3610
|
V.value = c == null ? void 0 : c.filter((H) => H == null ? void 0 : H.extraContent), (W = V.value) == null || W.forEach((H) => {
|
|
3610
|
-
var
|
|
3611
|
-
H.api === "" && ((
|
|
3611
|
+
var B;
|
|
3612
|
+
H.api === "" && ((B = H.content) == null || B.forEach((u) => {
|
|
3612
3613
|
var X;
|
|
3613
3614
|
u.comp == "Table" && j.setExtraContents(hi(u.compData, (X = H.extraContent) == null ? void 0 : X[0]));
|
|
3614
3615
|
}));
|
|
@@ -3620,7 +3621,7 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3620
3621
|
O.value == "view" && !T.value && await Fe(l(g.itemData)), T.value = !1;
|
|
3621
3622
|
},
|
|
3622
3623
|
{ immediate: !0, deep: !0 }
|
|
3623
|
-
), (C,
|
|
3624
|
+
), (C, Z) => {
|
|
3624
3625
|
var x, s, c;
|
|
3625
3626
|
return Al(O) !== "edit" ? (se(), ke("div", fn, [
|
|
3626
3627
|
(se(!0), ke(je, null, Je((x = V.value) == null ? void 0 : x.filter((D) => (D == null ? void 0 : D.buttonName) !== "保存"), (D) => (se(), ke("div", null, [
|
|
@@ -3646,7 +3647,7 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3646
3647
|
])) : Xe("", !0);
|
|
3647
3648
|
};
|
|
3648
3649
|
}
|
|
3649
|
-
}, vn = /* @__PURE__ */ He(hn, [["__scopeId", "data-v-
|
|
3650
|
+
}, vn = /* @__PURE__ */ He(hn, [["__scopeId", "data-v-dbc633d4"]]), mn = {};
|
|
3650
3651
|
function yn(r, V) {
|
|
3651
3652
|
return " 567 ";
|
|
3652
3653
|
}
|
|
@@ -3783,56 +3784,56 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
3783
3784
|
}
|
|
3784
3785
|
]
|
|
3785
3786
|
}), oe = (T) => {
|
|
3786
|
-
var
|
|
3787
|
-
ee.value = l(T), i("change", (
|
|
3787
|
+
var S;
|
|
3788
|
+
ee.value = l(T), i("change", (S = ce()) == null ? void 0 : S.compData);
|
|
3788
3789
|
}, _e = (T) => {
|
|
3789
|
-
var
|
|
3790
|
+
var S, me;
|
|
3790
3791
|
if ((T == null ? void 0 : T.buttonName) === "确认") {
|
|
3791
3792
|
const d = l(T == null ? void 0 : T.content);
|
|
3792
3793
|
switch (j.value) {
|
|
3793
3794
|
case "create":
|
|
3794
3795
|
O.value.push({
|
|
3795
3796
|
...d,
|
|
3796
|
-
index: ((
|
|
3797
|
+
index: ((S = O.value) == null ? void 0 : S.length) + 1
|
|
3797
3798
|
});
|
|
3798
3799
|
break;
|
|
3799
3800
|
}
|
|
3800
3801
|
i("change", (me = ce()) == null ? void 0 : me.compData), o.visible = !1;
|
|
3801
3802
|
} else
|
|
3802
3803
|
o.visible = !1;
|
|
3803
|
-
}, te = (T,
|
|
3804
|
+
}, te = (T, S) => {
|
|
3804
3805
|
var me, d;
|
|
3805
3806
|
switch (T) {
|
|
3806
3807
|
case "create":
|
|
3807
|
-
(me = N.value) == null || me.forEach((
|
|
3808
|
-
|
|
3808
|
+
(me = N.value) == null || me.forEach((f) => {
|
|
3809
|
+
f.value = "";
|
|
3809
3810
|
}), j.value = "create", o.visible = !0;
|
|
3810
3811
|
break;
|
|
3811
3812
|
case "update":
|
|
3812
|
-
(d = N.value) == null || d.forEach((
|
|
3813
|
-
|
|
3813
|
+
(d = N.value) == null || d.forEach((f) => {
|
|
3814
|
+
f.value = S[f == null ? void 0 : f.prop];
|
|
3814
3815
|
}), j.value = "update", o.visible = !0;
|
|
3815
3816
|
break;
|
|
3816
3817
|
case "delete":
|
|
3817
|
-
O.value.splice(
|
|
3818
|
+
O.value.splice(S, 1), j.value = "delete";
|
|
3818
3819
|
break;
|
|
3819
3820
|
}
|
|
3820
3821
|
}, be = () => {
|
|
3821
3822
|
o.visible = !1;
|
|
3822
3823
|
};
|
|
3823
3824
|
return Ye(() => g == null ? void 0 : g.itemContents, (T) => {
|
|
3824
|
-
var
|
|
3825
|
-
T && (ee.value = ((
|
|
3826
|
-
}, { immediate: !0 }), (T,
|
|
3825
|
+
var S, me;
|
|
3826
|
+
T && (ee.value = ((S = T == null ? void 0 : T.find((d) => d.key === "signConfig")) == null ? void 0 : S.contents) ?? {}, O.value = ((me = T == null ? void 0 : T.find((d) => d.key === "signTypeList")) == null ? void 0 : me.contents) ?? []);
|
|
3827
|
+
}, { immediate: !0 }), (T, S) => {
|
|
3827
3828
|
const me = Ue("svg-icon"), d = Ue("el-button");
|
|
3828
3829
|
return se(), ke(je, null, [
|
|
3829
3830
|
E("div", null, [
|
|
3830
3831
|
E("div", bn, [
|
|
3831
|
-
|
|
3832
|
+
S[2] || (S[2] = E("h4", { class: "module-title" }, "签名类型", -1)),
|
|
3832
3833
|
ae(d, {
|
|
3833
3834
|
class: "module-icon",
|
|
3834
3835
|
id: "themeButton",
|
|
3835
|
-
onClick:
|
|
3836
|
+
onClick: S[0] || (S[0] = (f) => te("create"))
|
|
3836
3837
|
}, {
|
|
3837
3838
|
icon: ve(() => [
|
|
3838
3839
|
ae(me, {
|
|
@@ -3841,25 +3842,25 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
3841
3842
|
})
|
|
3842
3843
|
]),
|
|
3843
3844
|
default: ve(() => [
|
|
3844
|
-
|
|
3845
|
+
S[1] || (S[1] = Be(" 新增 "))
|
|
3845
3846
|
]),
|
|
3846
3847
|
_: 1,
|
|
3847
3848
|
__: [1]
|
|
3848
3849
|
})
|
|
3849
3850
|
]),
|
|
3850
3851
|
E("div", kn, [
|
|
3851
|
-
(se(!0), ke(je, null, Je(O.value, (
|
|
3852
|
+
(se(!0), ke(je, null, Je(O.value, (f, m) => (se(), ke("div", {
|
|
3852
3853
|
class: "module-data-item",
|
|
3853
|
-
key:
|
|
3854
|
+
key: m
|
|
3854
3855
|
}, [
|
|
3855
|
-
E("span", null, De(
|
|
3856
|
+
E("span", null, De(f == null ? void 0 : f.label), 1),
|
|
3856
3857
|
E("div", null, [
|
|
3857
3858
|
ae(d, {
|
|
3858
3859
|
type: "primary",
|
|
3859
3860
|
size: "small",
|
|
3860
|
-
onClick: (k) => te("update", { ...
|
|
3861
|
+
onClick: (k) => te("update", { ...f, index: m + 1 })
|
|
3861
3862
|
}, {
|
|
3862
|
-
default: ve(() =>
|
|
3863
|
+
default: ve(() => S[3] || (S[3] = [
|
|
3863
3864
|
Be("修改")
|
|
3864
3865
|
])),
|
|
3865
3866
|
_: 2,
|
|
@@ -3868,9 +3869,9 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
3868
3869
|
ae(d, {
|
|
3869
3870
|
type: "danger",
|
|
3870
3871
|
size: "small",
|
|
3871
|
-
onClick: (k) => te("delete",
|
|
3872
|
+
onClick: (k) => te("delete", m)
|
|
3872
3873
|
}, {
|
|
3873
|
-
default: ve(() =>
|
|
3874
|
+
default: ve(() => S[4] || (S[4] = [
|
|
3874
3875
|
Be("删除")
|
|
3875
3876
|
])),
|
|
3876
3877
|
_: 2,
|
|
@@ -3939,7 +3940,7 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
3939
3940
|
i("changeTrigger", ce);
|
|
3940
3941
|
};
|
|
3941
3942
|
return (ce, oe) => {
|
|
3942
|
-
var be, T,
|
|
3943
|
+
var be, T, S, me, d;
|
|
3943
3944
|
const _e = Ue("el-step"), te = Ue("el-steps");
|
|
3944
3945
|
return se(), ke(je, null, [
|
|
3945
3946
|
ae(te, {
|
|
@@ -3947,22 +3948,22 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
3947
3948
|
active: j.value,
|
|
3948
3949
|
"finish-status": "success",
|
|
3949
3950
|
simple: (T = r.stepConfig) == null ? void 0 : T.simple,
|
|
3950
|
-
"align-center": ((
|
|
3951
|
+
"align-center": ((S = r.stepConfig) == null ? void 0 : S.alignCenter) ?? !0
|
|
3951
3952
|
}, {
|
|
3952
3953
|
default: ve(() => [
|
|
3953
|
-
(se(!0), ke(je, null, Je(r.stepList, (
|
|
3954
|
-
key:
|
|
3954
|
+
(se(!0), ke(je, null, Je(r.stepList, (f, m) => (se(), Oe(_e, {
|
|
3955
|
+
key: m,
|
|
3955
3956
|
class: "step-item",
|
|
3956
|
-
onClick: (k) => L(
|
|
3957
|
+
onClick: (k) => L(f, m + 1)
|
|
3957
3958
|
}, {
|
|
3958
3959
|
title: ve(() => [
|
|
3959
3960
|
pa(ce.$slots, "title", {
|
|
3960
|
-
title:
|
|
3961
|
+
title: f == null ? void 0 : f.title
|
|
3961
3962
|
}, void 0, !0)
|
|
3962
3963
|
]),
|
|
3963
3964
|
description: ve(() => [
|
|
3964
3965
|
pa(ce.$slots, "description", {
|
|
3965
|
-
description:
|
|
3966
|
+
description: f == null ? void 0 : f.description
|
|
3966
3967
|
}, void 0, !0)
|
|
3967
3968
|
]),
|
|
3968
3969
|
_: 2
|
|
@@ -3970,16 +3971,16 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
3970
3971
|
]),
|
|
3971
3972
|
_: 3
|
|
3972
3973
|
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
3973
|
-
(me = r.stepConfig) != null && me.allowTrigger && ((d = r.stepConfig) != null && d.active) ? (se(!0), ke(je, { key: 0 }, Je(N(), (
|
|
3974
|
-
key:
|
|
3974
|
+
(me = r.stepConfig) != null && me.allowTrigger && ((d = r.stepConfig) != null && d.active) ? (se(!0), ke(je, { key: 0 }, Je(N(), (f, m) => (se(), ke("div", {
|
|
3975
|
+
key: m,
|
|
3975
3976
|
class: "step-cont-wrap"
|
|
3976
3977
|
}, [
|
|
3977
|
-
(se(), Oe(da(w(
|
|
3978
|
-
modelValue:
|
|
3979
|
-
"onUpdate:modelValue": (k) =>
|
|
3978
|
+
(se(), Oe(da(w(f == null ? void 0 : f.type)), {
|
|
3979
|
+
modelValue: f.value,
|
|
3980
|
+
"onUpdate:modelValue": (k) => f.value = k,
|
|
3980
3981
|
onClickTrigger: ee,
|
|
3981
3982
|
onChangeTrigger: O,
|
|
3982
|
-
content:
|
|
3983
|
+
content: f == null ? void 0 : f.content
|
|
3983
3984
|
}, li({ _: 2 }, [
|
|
3984
3985
|
Je(ce.$slots, (k, ue) => ({
|
|
3985
3986
|
name: ue,
|
|
@@ -4211,36 +4212,36 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4211
4212
|
q([]);
|
|
4212
4213
|
const j = q([]), L = q([]), w = (_e) => {
|
|
4213
4214
|
var be;
|
|
4214
|
-
let te = (be = l(L.value)) == null ? void 0 : be.map((T,
|
|
4215
|
+
let te = (be = l(L.value)) == null ? void 0 : be.map((T, S) => (_e === S && (T.content = !0), T));
|
|
4215
4216
|
L.value = te;
|
|
4216
4217
|
}, N = (_e) => {
|
|
4217
4218
|
var be;
|
|
4218
|
-
let te = (be = l(L.value)) == null ? void 0 : be.map((T,
|
|
4219
|
+
let te = (be = l(L.value)) == null ? void 0 : be.map((T, S) => (_e === S && (T.content = !1), T));
|
|
4219
4220
|
L.value = te, o.value = l(g.value);
|
|
4220
4221
|
}, ee = (_e, te) => {
|
|
4221
4222
|
var me;
|
|
4222
|
-
let be = (me = l(L.value)) == null ? void 0 : me.map((d,
|
|
4223
|
+
let be = (me = l(L.value)) == null ? void 0 : me.map((d, f) => (_e === f && (d.content = !1), d));
|
|
4223
4224
|
L.value = be;
|
|
4224
|
-
const T = l(g.value),
|
|
4225
|
-
V.setOriginalData(
|
|
4225
|
+
const T = l(g.value), S = T == null ? void 0 : T.filter((d, f) => (f === _e && (d.name = te), d));
|
|
4226
|
+
V.setOriginalData(S), V.setItemData(S);
|
|
4226
4227
|
};
|
|
4227
4228
|
Ye(
|
|
4228
4229
|
() => g.value,
|
|
4229
4230
|
() => {
|
|
4230
4231
|
var _e, te, be;
|
|
4231
|
-
!g.value || ((_e = g.value) == null ? void 0 : _e.length) === 0 ? o.value = [] : o.value = (te = l(g.value)) == null ? void 0 : te.filter((T) => (T == null ? void 0 : T.comp) !== "methodButton"), j.value = o.value, L.value = (be = l(j.value)) == null ? void 0 : be.map((T,
|
|
4232
|
-
id:
|
|
4232
|
+
!g.value || ((_e = g.value) == null ? void 0 : _e.length) === 0 ? o.value = [] : o.value = (te = l(g.value)) == null ? void 0 : te.filter((T) => (T == null ? void 0 : T.comp) !== "methodButton"), j.value = o.value, L.value = (be = l(j.value)) == null ? void 0 : be.map((T, S) => ({
|
|
4233
|
+
id: S,
|
|
4233
4234
|
content: !1
|
|
4234
4235
|
}));
|
|
4235
4236
|
},
|
|
4236
4237
|
{ deep: !0, immediate: !0 }
|
|
4237
4238
|
);
|
|
4238
4239
|
const O = (_e) => Aa(_e), ce = (_e, te, be) => {
|
|
4239
|
-
var
|
|
4240
|
+
var S, me;
|
|
4240
4241
|
if (!_e) return;
|
|
4241
4242
|
let T = l(g.value);
|
|
4242
|
-
T = (
|
|
4243
|
-
id:
|
|
4243
|
+
T = (S = T == null ? void 0 : T.map((d, f) => (f === be && (d.compData = _e), d))) == null ? void 0 : S.filter((d) => (d == null ? void 0 : d.comp) !== "methodButton"), L.value = (me = l(T)) == null ? void 0 : me.map((d, f) => ({
|
|
4244
|
+
id: f,
|
|
4244
4245
|
content: !1
|
|
4245
4246
|
})), V.setOriginalData(T), V.setItemData(T);
|
|
4246
4247
|
}, oe = (_e) => {
|
|
@@ -4249,7 +4250,7 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4249
4250
|
cancelButtonText: "取消",
|
|
4250
4251
|
type: "warning"
|
|
4251
4252
|
}).then(() => {
|
|
4252
|
-
const te = l(g.value), be = te == null ? void 0 : te.filter((T,
|
|
4253
|
+
const te = l(g.value), be = te == null ? void 0 : te.filter((T, S) => S !== _e);
|
|
4253
4254
|
V.setOriginalData(be), V.setItemData(be), ol({
|
|
4254
4255
|
type: "success",
|
|
4255
4256
|
message: "删除成功"
|
|
@@ -4266,27 +4267,27 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4266
4267
|
class: "collapse-content",
|
|
4267
4268
|
collapseContents: o.value
|
|
4268
4269
|
}, {
|
|
4269
|
-
title: ve(({ item: T, index:
|
|
4270
|
-
var me, d,
|
|
4270
|
+
title: ve(({ item: T, index: S }) => {
|
|
4271
|
+
var me, d, f, m, k, ue, ge, Ie, Fe, C;
|
|
4271
4272
|
return [
|
|
4272
4273
|
E("div", Wn, [
|
|
4273
4274
|
E("div", zn, [
|
|
4274
|
-
(d = (me = L.value) == null ? void 0 : me.find((
|
|
4275
|
+
(d = (me = L.value) == null ? void 0 : me.find((Z) => Z.id === S)) != null && d.content ? Xe("", !0) : (se(), ke("div", {
|
|
4275
4276
|
key: 0,
|
|
4276
4277
|
class: "collapse-title",
|
|
4277
4278
|
style: ii({ marginRight: T.name && T.name !== "" ? "8px" : "0px" })
|
|
4278
4279
|
}, De(T.name), 5)),
|
|
4279
|
-
(
|
|
4280
|
+
(m = (f = L.value) == null ? void 0 : f.find((Z) => Z.id === S)) != null && m.content ? (se(), ke("div", Jn, [
|
|
4280
4281
|
ae(ui, {
|
|
4281
4282
|
modelValue: T.name,
|
|
4282
|
-
"onUpdate:modelValue": (
|
|
4283
|
+
"onUpdate:modelValue": (Z) => T.name = Z,
|
|
4283
4284
|
onClick: te[0] || (te[0] = ra(() => {
|
|
4284
4285
|
}, ["stop"]))
|
|
4285
4286
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
4286
4287
|
])) : Xe("", !0),
|
|
4287
|
-
(ue = (k = L.value) == null ? void 0 : k.find((
|
|
4288
|
+
(ue = (k = L.value) == null ? void 0 : k.find((Z) => Z.id === S)) != null && ue.content ? Xe("", !0) : (se(), ke("div", {
|
|
4288
4289
|
key: 2,
|
|
4289
|
-
onClick: ra((
|
|
4290
|
+
onClick: ra((Z) => w(S), ["stop"]),
|
|
4290
4291
|
class: "icon-content"
|
|
4291
4292
|
}, [
|
|
4292
4293
|
ae(be, {
|
|
@@ -4296,23 +4297,23 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4296
4297
|
], 8, Hn))
|
|
4297
4298
|
]),
|
|
4298
4299
|
E("div", Gn, [
|
|
4299
|
-
(Ie = (ge = L.value) == null ? void 0 : ge.find((
|
|
4300
|
+
(Ie = (ge = L.value) == null ? void 0 : ge.find((Z) => Z.id === S)) != null && Ie.content ? (se(), ke("div", qn, [
|
|
4300
4301
|
ae(be, {
|
|
4301
4302
|
name: "Cancel",
|
|
4302
4303
|
style: { width: "16px", height: "16px" },
|
|
4303
4304
|
class: "icon-content",
|
|
4304
|
-
onClick: ra((
|
|
4305
|
+
onClick: ra((Z) => N(S), ["stop"])
|
|
4305
4306
|
}, null, 8, ["onClick"]),
|
|
4306
4307
|
ae(be, {
|
|
4307
4308
|
name: "Save",
|
|
4308
|
-
onClick: ra((
|
|
4309
|
+
onClick: ra((Z) => ee(S, T.name), ["stop"]),
|
|
4309
4310
|
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
4310
4311
|
class: "icon-content"
|
|
4311
4312
|
}, null, 8, ["onClick"])
|
|
4312
4313
|
])) : Xe("", !0),
|
|
4313
|
-
(C = (Fe = L.value) == null ? void 0 : Fe.find((
|
|
4314
|
+
(C = (Fe = L.value) == null ? void 0 : Fe.find((Z) => Z.id === S)) != null && C.content ? Xe("", !0) : (se(), ke("div", {
|
|
4314
4315
|
key: 1,
|
|
4315
|
-
onClick: ra((
|
|
4316
|
+
onClick: ra((Z) => oe(S), ["stop"]),
|
|
4316
4317
|
class: "icon-content"
|
|
4317
4318
|
}, [
|
|
4318
4319
|
ae(be, {
|
|
@@ -4324,14 +4325,14 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4324
4325
|
])
|
|
4325
4326
|
];
|
|
4326
4327
|
}),
|
|
4327
|
-
content: ve(({ item: T, index:
|
|
4328
|
+
content: ve(({ item: T, index: S }) => {
|
|
4328
4329
|
var me, d;
|
|
4329
4330
|
return [
|
|
4330
4331
|
E("div", Xn, [
|
|
4331
4332
|
(se(), Oe(da(O(T.comp + "Operate")), {
|
|
4332
4333
|
itemContents: T == null ? void 0 : T.compData,
|
|
4333
|
-
originalItemContents: (d = (me = j.value) == null ? void 0 : me.find((
|
|
4334
|
-
onChange: (
|
|
4334
|
+
originalItemContents: (d = (me = j.value) == null ? void 0 : me.find((f, m) => m === S)) == null ? void 0 : d.compData,
|
|
4335
|
+
onChange: (f) => ce(f, T, S)
|
|
4335
4336
|
}, null, 40, ["itemContents", "originalItemContents", "onChange"]))
|
|
4336
4337
|
])
|
|
4337
4338
|
];
|
|
@@ -4390,42 +4391,42 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4390
4391
|
setup(r, { emit: V }) {
|
|
4391
4392
|
const g = r, i = V, o = q([]), j = q(!1), L = q(""), w = q({ title: "" }), N = q(-1), ee = q(!1), O = q(-1), ce = q(/* @__PURE__ */ new Map()), oe = q(null), _e = ha(al), { itemData: te } = sl(_e), be = () => {
|
|
4392
4393
|
L.value = "新增标签页", w.value.title = "", N.value = -1, j.value = !0;
|
|
4393
|
-
}, T = (
|
|
4394
|
-
L.value = "修改标签页", w.value.title = o.value[
|
|
4395
|
-
},
|
|
4396
|
-
const u =
|
|
4397
|
-
ce.value.delete(u), o.value.splice(
|
|
4394
|
+
}, T = (B) => {
|
|
4395
|
+
L.value = "修改标签页", w.value.title = o.value[B].title, N.value = B, j.value = !0;
|
|
4396
|
+
}, S = (B) => {
|
|
4397
|
+
const u = f(B);
|
|
4398
|
+
ce.value.delete(u), o.value.splice(B, 1), H();
|
|
4398
4399
|
}, me = () => {
|
|
4399
4400
|
if (w.value.title.trim()) {
|
|
4400
4401
|
if (N.value === -1) {
|
|
4401
|
-
const
|
|
4402
|
+
const B = {
|
|
4402
4403
|
title: w.value.title,
|
|
4403
4404
|
value: w.value.title,
|
|
4404
4405
|
label: w.value.title,
|
|
4405
4406
|
children: [],
|
|
4406
4407
|
id: d()
|
|
4407
4408
|
};
|
|
4408
|
-
o.value.push(
|
|
4409
|
+
o.value.push(B);
|
|
4409
4410
|
} else
|
|
4410
4411
|
o.value[N.value].title = w.value.title, o.value[N.value].value = w.value.title, o.value[N.value].label = w.value.title;
|
|
4411
4412
|
j.value = !1, H();
|
|
4412
4413
|
}
|
|
4413
|
-
}, d = () => `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`,
|
|
4414
|
-
const u = o.value[
|
|
4414
|
+
}, d = () => `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, f = (B) => {
|
|
4415
|
+
const u = o.value[B];
|
|
4415
4416
|
return u.id || (u.id = d()), u.id;
|
|
4416
|
-
},
|
|
4417
|
+
}, m = (B) => {
|
|
4417
4418
|
var z;
|
|
4418
|
-
O.value =
|
|
4419
|
-
const u =
|
|
4419
|
+
O.value = B;
|
|
4420
|
+
const u = f(B);
|
|
4420
4421
|
oe.value = l(te.value);
|
|
4421
4422
|
let X = ce.value.get(u);
|
|
4422
|
-
!X && ((z = o.value[
|
|
4423
|
+
!X && ((z = o.value[B].children) == null ? void 0 : z.length) > 0 && (X = Ie(o.value[B].children)), X ? _e.setItemData(l(X)) : _e.setItemData([]), ee.value = !0;
|
|
4423
4424
|
}, k = Da(() => {
|
|
4424
|
-
const
|
|
4425
|
+
const B = xa(al), u = sl(B).itemData.value;
|
|
4425
4426
|
return console.log("可用组件数据", u), !u || !Array.isArray(u) ? [] : u.filter((X) => {
|
|
4426
4427
|
var z;
|
|
4427
4428
|
if (X.comp === "Tabs" && O.value >= 0) {
|
|
4428
|
-
const pe =
|
|
4429
|
+
const pe = f(O.value);
|
|
4429
4430
|
if ((z = X.compData) == null ? void 0 : z.some(
|
|
4430
4431
|
(R) => {
|
|
4431
4432
|
var P;
|
|
@@ -4435,16 +4436,16 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4435
4436
|
}
|
|
4436
4437
|
return !0;
|
|
4437
4438
|
});
|
|
4438
|
-
}), ue = (
|
|
4439
|
+
}), ue = (B) => ({
|
|
4439
4440
|
Table: "表格",
|
|
4440
4441
|
Form: "表单",
|
|
4441
4442
|
Tabs: "标签页",
|
|
4442
4443
|
Chart: "图表",
|
|
4443
4444
|
Card: "卡片"
|
|
4444
|
-
})[
|
|
4445
|
+
})[B] || B, ge = (B) => {
|
|
4445
4446
|
var u;
|
|
4446
4447
|
try {
|
|
4447
|
-
const X = l(
|
|
4448
|
+
const X = l(B);
|
|
4448
4449
|
X.id = Date.now() + Math.random(), X.comp === "Tabs" && ((u = X.compData) == null || u.forEach((pe) => {
|
|
4449
4450
|
pe.key === "stepList" && pe.contents && pe.contents.forEach((Q) => {
|
|
4450
4451
|
Q.id = d();
|
|
@@ -4455,7 +4456,7 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4455
4456
|
} catch (X) {
|
|
4456
4457
|
console.error("添加组件失败:", X);
|
|
4457
4458
|
}
|
|
4458
|
-
}, Ie = (
|
|
4459
|
+
}, Ie = (B) => B.map((u) => {
|
|
4459
4460
|
var X;
|
|
4460
4461
|
switch (u.type) {
|
|
4461
4462
|
case "form":
|
|
@@ -4477,33 +4478,33 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4477
4478
|
compData: ((X = u.content) == null ? void 0 : X.originalData) || []
|
|
4478
4479
|
};
|
|
4479
4480
|
}
|
|
4480
|
-
}), Fe = (
|
|
4481
|
-
if (!
|
|
4481
|
+
}), Fe = (B) => {
|
|
4482
|
+
if (!B) return [];
|
|
4482
4483
|
const u = [];
|
|
4483
|
-
return
|
|
4484
|
+
return B.rowContents && u.push({
|
|
4484
4485
|
key: "formContent",
|
|
4485
|
-
contents:
|
|
4486
|
-
}),
|
|
4486
|
+
contents: B.rowContents
|
|
4487
|
+
}), B.buttonValue && u.push({
|
|
4487
4488
|
key: "formButton",
|
|
4488
|
-
contents:
|
|
4489
|
-
}), typeof
|
|
4489
|
+
contents: B.buttonValue
|
|
4490
|
+
}), typeof B.isEnableWrap < "u" && u.push({
|
|
4490
4491
|
key: "enableWrap",
|
|
4491
|
-
contents:
|
|
4492
|
+
contents: B.isEnableWrap
|
|
4492
4493
|
}), u;
|
|
4493
|
-
}, C = (
|
|
4494
|
+
}, C = (B) => [], Z = () => {
|
|
4494
4495
|
if (O.value >= 0 && O.value < o.value.length) {
|
|
4495
|
-
const
|
|
4496
|
-
ce.value.set(
|
|
4496
|
+
const B = f(O.value);
|
|
4497
|
+
ce.value.set(B, l(te.value)), o.value[O.value].children = c(te.value), console.log("保存后的数据", c(te.value));
|
|
4497
4498
|
}
|
|
4498
4499
|
ee.value = !1, O.value = -1, oe.value = null, H();
|
|
4499
4500
|
}, x = () => {
|
|
4500
4501
|
oe.value && _e.setItemData(l(oe.value)), ee.value = !1, O.value = -1, oe.value = null;
|
|
4501
4502
|
}, s = () => {
|
|
4502
4503
|
ee.value && x();
|
|
4503
|
-
}, c = (
|
|
4504
|
-
if (!Array.isArray(
|
|
4504
|
+
}, c = (B) => {
|
|
4505
|
+
if (!Array.isArray(B))
|
|
4505
4506
|
throw new Error("sourceData must be an array");
|
|
4506
|
-
return
|
|
4507
|
+
return B.map((u, X) => {
|
|
4507
4508
|
if (!u || typeof u != "object")
|
|
4508
4509
|
return u;
|
|
4509
4510
|
const { comp: z, name: pe, compData: Q } = u;
|
|
@@ -4528,7 +4529,7 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4528
4529
|
};
|
|
4529
4530
|
}
|
|
4530
4531
|
});
|
|
4531
|
-
}, D = (
|
|
4532
|
+
}, D = (B) => {
|
|
4532
4533
|
const u = {
|
|
4533
4534
|
formRules: {},
|
|
4534
4535
|
rowContents: [],
|
|
@@ -4544,7 +4545,7 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4544
4545
|
enableWrap: "isEnableWrap",
|
|
4545
4546
|
formButton: "buttonValue"
|
|
4546
4547
|
};
|
|
4547
|
-
return
|
|
4548
|
+
return B.forEach((z, pe) => {
|
|
4548
4549
|
if (!z || typeof z != "object") {
|
|
4549
4550
|
console.warn(`Invalid config at index ${pe}:`, z);
|
|
4550
4551
|
return;
|
|
@@ -4556,7 +4557,7 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4556
4557
|
}
|
|
4557
4558
|
Q === "enableWrap" ? u[P] = !!R : u[P] = Array.isArray(R) ? R : [];
|
|
4558
4559
|
}), u;
|
|
4559
|
-
}, I = (
|
|
4560
|
+
}, I = (B) => {
|
|
4560
4561
|
const u = {
|
|
4561
4562
|
columns: [],
|
|
4562
4563
|
tableData: [],
|
|
@@ -4573,7 +4574,7 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4573
4574
|
header: "columns",
|
|
4574
4575
|
tableContents: "tableData"
|
|
4575
4576
|
};
|
|
4576
|
-
return
|
|
4577
|
+
return B.forEach((z, pe) => {
|
|
4577
4578
|
if (!z || typeof z != "object") {
|
|
4578
4579
|
console.warn(`Invalid config at index ${pe}:`, z);
|
|
4579
4580
|
return;
|
|
@@ -4585,24 +4586,24 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4585
4586
|
}
|
|
4586
4587
|
u[P] = Array.isArray(R) ? R : [];
|
|
4587
4588
|
}), u;
|
|
4588
|
-
}, W = (
|
|
4589
|
-
originalData:
|
|
4589
|
+
}, W = (B) => (console.log("Default conversion logic - to be implemented"), {
|
|
4590
|
+
originalData: B,
|
|
4590
4591
|
processed: !1,
|
|
4591
4592
|
componentType: "unknown"
|
|
4592
4593
|
}), H = () => {
|
|
4593
|
-
const
|
|
4594
|
+
const B = [
|
|
4594
4595
|
{
|
|
4595
4596
|
key: "stepList",
|
|
4596
4597
|
contents: o.value
|
|
4597
4598
|
}
|
|
4598
4599
|
];
|
|
4599
|
-
i("change",
|
|
4600
|
+
i("change", B);
|
|
4600
4601
|
};
|
|
4601
4602
|
return Ye(
|
|
4602
4603
|
() => g.itemContents,
|
|
4603
|
-
(
|
|
4604
|
-
if (
|
|
4605
|
-
const u =
|
|
4604
|
+
(B) => {
|
|
4605
|
+
if (B && B.length > 0) {
|
|
4606
|
+
const u = B.find((X) => X.key === "stepList");
|
|
4606
4607
|
u && u.contents && (o.value = u.contents.map((X) => ({
|
|
4607
4608
|
title: X.title || "",
|
|
4608
4609
|
value: X.value || X.title || "",
|
|
@@ -4613,7 +4614,7 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4613
4614
|
}
|
|
4614
4615
|
},
|
|
4615
4616
|
{ immediate: !0, deep: !0 }
|
|
4616
|
-
), (
|
|
4617
|
+
), (B, u) => {
|
|
4617
4618
|
const X = Ue("svg-icon"), z = Ue("el-input"), pe = Ue("el-form-item"), Q = Ue("el-form");
|
|
4618
4619
|
return se(), ke("div", null, [
|
|
4619
4620
|
E("div", so, [
|
|
@@ -4637,10 +4638,10 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4637
4638
|
onClick: (U) => T(P)
|
|
4638
4639
|
}, "修改标题", 8, ro),
|
|
4639
4640
|
E("button", {
|
|
4640
|
-
onClick: (U) =>
|
|
4641
|
+
onClick: (U) => m(P)
|
|
4641
4642
|
}, "布局调整", 8, co),
|
|
4642
4643
|
E("button", {
|
|
4643
|
-
onClick: (U) =>
|
|
4644
|
+
onClick: (U) => S(P)
|
|
4644
4645
|
}, "删除", 8, to)
|
|
4645
4646
|
])
|
|
4646
4647
|
]))), 128))
|
|
@@ -4694,7 +4695,7 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4694
4695
|
}, {
|
|
4695
4696
|
footer: ve(() => [
|
|
4696
4697
|
E("button", { onClick: x }, "取消"),
|
|
4697
|
-
E("button", { onClick:
|
|
4698
|
+
E("button", { onClick: Z }, "确定")
|
|
4698
4699
|
]),
|
|
4699
4700
|
default: ve(() => [
|
|
4700
4701
|
E("div", po, [
|
|
@@ -4719,7 +4720,7 @@ const gn = /* @__PURE__ */ He(mn, [["render", yn]]), bn = { class: "module conte
|
|
|
4719
4720
|
]),
|
|
4720
4721
|
(se(), ke("div", {
|
|
4721
4722
|
class: "model-show",
|
|
4722
|
-
key:
|
|
4723
|
+
key: B.innerWidth
|
|
4723
4724
|
}, [
|
|
4724
4725
|
ae(io)
|
|
4725
4726
|
])),
|