ss-component-new 1.1.509 → 1.1.511
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-BTjyzwbz.js → array-6rfRfZoy.js} +1 -1
- package/dist/{array-T-glopHk.cjs → array-BKzrrmWD.cjs} +2 -2
- package/dist/{index-BqlWuQ7F.cjs → index-3GfpOmBm.cjs} +1 -1
- package/dist/index-9keTbNci.js +1490 -0
- package/dist/{index-BPe56KwL.js → index-B72kja43.js} +12 -13
- package/dist/{index-B3sFb3ED.js → index-BBFJJ4tl.js} +5 -5
- package/dist/index-BBQKck4p.cjs +1 -0
- package/dist/index-BBQrfTQg.cjs +1 -0
- package/dist/index-BDmXVjP1.cjs +1 -0
- package/dist/{index-BC6o_HwA.js → index-BPQ17KYZ.js} +1 -1
- package/dist/{index-OUNz_X1-.js → index-BSC7EQfO.js} +15 -15
- package/dist/{index-B6WyqdEq.js → index-BY-71neG.js} +27 -28
- package/dist/{index-pWCRQCtH.cjs → index-BdCeB39f.cjs} +1 -1
- package/dist/{index-0Aj-6Pfy.cjs → index-Bk9CevKt.cjs} +3 -3
- package/dist/{index-WupiV34P.js → index-Bsluws3x.js} +1 -1
- package/dist/{index-D-3H8d48.js → index-Btfqm3Aj.js} +16 -17
- package/dist/index-Bw7fhgWa.js +186 -0
- package/dist/{index-BrZj-udo.js → index-Bz3SW9qv.js} +6 -6
- package/dist/{index--d0-FcKi.js → index-C-RVIq7e.js} +3 -3
- package/dist/{index-BcRfxlOl.cjs → index-C3G2rcyE.cjs} +1 -1
- package/dist/{index-18OPgy7M.js → index-C3Lo66u2.js} +4 -4
- package/dist/index-C8zdykvt.cjs +1 -0
- package/dist/{index-D9fT9K4k.js → index-COMGfNcR.js} +3 -3
- package/dist/index-CRSpuXYg.cjs +1 -0
- package/dist/index-CT9N59g0.cjs +1 -0
- package/dist/{index-cyR-UE9m.cjs → index-CbWlMlxi.cjs} +1 -1
- package/dist/{index-DXv077SA.cjs → index-Cd0szVvZ.cjs} +1 -1
- package/dist/{index-C17_NPz0.cjs → index-Ci1hpo3R.cjs} +1 -1
- package/dist/{index-JqG9oXli.js → index-CmUqS1hN.js} +1 -1
- package/dist/{index-MDG-_61i.js → index-CqmGUncB.js} +3 -3
- package/dist/index-D42emtHS.cjs +1 -0
- package/dist/{index-qlszF_bh.js → index-D5AYFKTM.js} +2 -2
- package/dist/{index-B-3rJW5B.cjs → index-D8QyJVl9.cjs} +1 -1
- package/dist/{index-Dx6aORao.cjs → index-D9ZIJbHw.cjs} +12 -12
- package/dist/{index-DpBfp4fC.js → index-DF8AKNJv.js} +16 -17
- package/dist/index-DGHLPooK.js +457 -0
- package/dist/{index-BeUJWi0x.js → index-DLfWd1qr.js} +5 -5
- package/dist/index-DQxqAo5T.cjs +1 -0
- package/dist/index-DRXd1T3-.cjs +1 -0
- package/dist/{index-TnYimoKI.cjs → index-DgsMW7lK.cjs} +1 -1
- package/dist/{index-B35jXtRb.js → index-DnGhhxPP.js} +5 -5
- package/dist/{index-pxmLD5OC.cjs → index-Dw520ieR.cjs} +1 -1
- package/dist/{index-uN3j6KsS.cjs → index-Dy4AlOOz.cjs} +1 -1
- package/dist/{index-DNQe9fKA.js → index-DzjXzyVN.js} +1 -1
- package/dist/{index-OYYGU2YE.js → index-LCDlyiVS.js} +4 -4
- package/dist/index-NJKX8un9.js +3995 -0
- package/dist/{index-DYRVEBa9.js → index-NkBocgtR.js} +111 -112
- package/dist/{index-55yBsyRr.cjs → index-Oixs__9V.cjs} +1 -1
- package/dist/{index-Dh39r6dj.cjs → index-XKC9uwi7.cjs} +1 -1
- package/dist/{index-DtUmPH3r.cjs → index-YT4yRM1k.cjs} +1 -1
- package/dist/{index-CRkYxnL4.cjs → index-lZj2FVM-.cjs} +1 -1
- package/dist/{index-DwMyURBu.js → index-t25R8oz_.js} +9 -9
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dzi9C_6v.js → index.vue_vue_type_script_setup_true_lang-D0IUrek5.js} +40 -40
- package/dist/{index.vue_vue_type_script_setup_true_lang-CGZnYRAf.cjs → index.vue_vue_type_script_setup_true_lang-DWwRe3NO.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C0_XMLvd.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0GZj6SDy.js} +9343 -9713
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B40u7Mx6.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BruAa-uD.cjs} +86 -86
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-9V0_8cmZ.js → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang--3mE_B9B.js} +15 -15
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B-GFoPJ9.cjs → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B2bfU2M4.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BFaKxxEb.cjs +56 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BSG1ySNA.js → index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BZQSdupd.js} +9759 -9781
- package/dist/{login-CW3Tv6wk.cjs → login-BHMBhU8d.cjs} +1 -1
- package/dist/{login-Bb_Ovfvl.js → login-CROQ1_RU.js} +4 -4
- package/dist/{main-DeaRuNYD.js → main-1yb7Pay5.js} +7 -8
- package/dist/main-DkeO8sGR.cjs +1 -0
- package/dist/{menu-jWcM5fkr.js → menu-BPLW-L8U.js} +3946 -3581
- package/dist/menu-CQ3_ZXwC.cjs +21 -0
- package/dist/menuIndex-BJdEj1Et.cjs +1 -0
- package/dist/menuIndex-BsKyxgvr.js +60 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-AKBKLvxK.js → threeModel-CFiMikXU.js} +322 -321
- package/dist/{threeModel-CEMnXOw2.cjs → threeModel-Cz-eN53p.cjs} +1 -1
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-BOOCIUn8.js → threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-DZ9BnDSy.js} +2 -2
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-C1EygWi0.cjs → threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-MfXPrK37.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index--3QjFI9W.cjs +0 -1
- package/dist/index-BkKYXjJ0.cjs +0 -1
- package/dist/index-Bpt6Hcq2.cjs +0 -1
- package/dist/index-CI__ZdC-.cjs +0 -1
- package/dist/index-CPfseYEB.cjs +0 -1
- package/dist/index-CZN1K7bK.js +0 -408
- package/dist/index-Cdxp_a8K.js +0 -185
- package/dist/index-CxS1YyFs.cjs +0 -1
- package/dist/index-DXIV-OAV.cjs +0 -1
- package/dist/index-DY4cro4C.js +0 -3995
- package/dist/index-DtsLJPQK.js +0 -1493
- package/dist/index-jVYlDMIh.cjs +0 -1
- package/dist/index-qHbYDYso.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-Cek8Ghpc.cjs +0 -56
- package/dist/main-BrbcMu5X.cjs +0 -1
- package/dist/menu-BXTfsfTB.cjs +0 -21
- package/dist/menuIndex-BWim3TlH.js +0 -33
- package/dist/menuIndex-Cg6xI-jR.cjs +0 -1
|
@@ -0,0 +1,3995 @@
|
|
|
1
|
+
import { p as Dl, a as fl, j as rl, q as Il, r as Tl, v as $l, w as El, x as tl, y as Bl, z as Fl, A as Al, B as Sl } from "./index-9keTbNci.js";
|
|
2
|
+
import { ref as F, watch as Ee, createElementBlock as X, openBlock as S, createVNode as B, resolveComponent as ye, Fragment as be, renderList as _e, createElementVNode as f, createCommentVNode as Pe, toDisplayString as se, withCtx as q, createBlock as ke, createTextVNode as me, defineComponent as Ge, reactive as nl, resolveDynamicComponent as Xe, unref as ml, computed as ol, renderSlot as Ze, createSlots as Ll, mergeProps as Ol, normalizeStyle as Rl, withModifiers as Qe } from "vue";
|
|
3
|
+
import { bR as hl, p as Ue, c as p, s as Je, E as je, u as Vl, g as Ye, d as cl } from "./menu-BPLW-L8U.js";
|
|
4
|
+
import { d as Le, c as Oe, e as yl, _ as Nl, f as Pl, h as jl, a as Ul } from "./index-C3Lo66u2.js";
|
|
5
|
+
import { F as dl, a as Wl, b as $e, m as He, s as We, f as qe, e as al } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0GZj6SDy.js";
|
|
6
|
+
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
import { E as Ke } from "./index-NkBocgtR.js";
|
|
8
|
+
import { u as bl } from "./threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-DZ9BnDSy.js";
|
|
9
|
+
import { s as zl, a as Ml } from "./index-LCDlyiVS.js";
|
|
10
|
+
import Kl from "./index-CZtXRS3l.js";
|
|
11
|
+
const Jl = (k) => k.match(/\((.*)\)/)[1], ql = hl("formComp", {
|
|
12
|
+
state: () => ({
|
|
13
|
+
objUrl: [],
|
|
14
|
+
blobUrls: []
|
|
15
|
+
}),
|
|
16
|
+
actions: {
|
|
17
|
+
setObjUrl(k) {
|
|
18
|
+
this.objUrl = k;
|
|
19
|
+
},
|
|
20
|
+
setBlobUrls(k) {
|
|
21
|
+
this.blobUrls = k;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}), Gl = { class: "form-content" }, Hl = {
|
|
25
|
+
__name: "index",
|
|
26
|
+
props: {
|
|
27
|
+
formRules: Object,
|
|
28
|
+
itemData: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default: () => []
|
|
31
|
+
},
|
|
32
|
+
childItemData: {
|
|
33
|
+
type: Array,
|
|
34
|
+
default: () => []
|
|
35
|
+
},
|
|
36
|
+
index: Number
|
|
37
|
+
},
|
|
38
|
+
emits: ["change", "contentChange"],
|
|
39
|
+
setup(k, { emit: L }) {
|
|
40
|
+
const v = k, o = L, m = F([]), I = F(!1), j = F([]), b = Dl(Ue), $ = ql(Ue), O = F(!1), E = F(), ae = (Q) => {
|
|
41
|
+
var N, n, u, s;
|
|
42
|
+
const U = (n = (N = p(v.itemData)) == null ? void 0 : N.find((i) => (i == null ? void 0 : i.key) === "formContent")) == null ? void 0 : n.contents, C = p(Q.content);
|
|
43
|
+
let c = {};
|
|
44
|
+
C && ((u = Object.values(C)) == null ? void 0 : u.length) > 0 && ((s = Object.values(C)) == null || s.forEach((i, d) => {
|
|
45
|
+
c[U[d].key] = i;
|
|
46
|
+
}));
|
|
47
|
+
const t = {
|
|
48
|
+
content: c,
|
|
49
|
+
index: v == null ? void 0 : v.index,
|
|
50
|
+
buttonName: Q == null ? void 0 : Q.buttonName
|
|
51
|
+
};
|
|
52
|
+
o("change", t);
|
|
53
|
+
}, H = (Q) => {
|
|
54
|
+
var N, n, u;
|
|
55
|
+
if (!Q) return;
|
|
56
|
+
const U = p(v.itemData), C = U == null ? void 0 : U.map((s) => {
|
|
57
|
+
var i;
|
|
58
|
+
return (s == null ? void 0 : s.key) === "formContent" && ((i = s.contents) == null || i.map((d, G) => {
|
|
59
|
+
var le, de, pe, a, _, M, w, P, ie, ce, g, V, l, x, oe, z, D;
|
|
60
|
+
return d.type = d != null && d.type ? d.type : (a = (pe = (de = (le = d == null ? void 0 : d.key) == null ? void 0 : le.split("$")) == null ? void 0 : de[1]) == null ? void 0 : pe.split("(")) != null && a[0] ? (M = (_ = dl) == null ? void 0 : _.find((K) => {
|
|
61
|
+
var W, Z, fe, he;
|
|
62
|
+
return (K == null ? void 0 : K.key) === ((he = (fe = (Z = (W = d == null ? void 0 : d.key) == null ? void 0 : W.split("$")) == null ? void 0 : Z[1]) == null ? void 0 : fe.split("(")) == null ? void 0 : he[0]);
|
|
63
|
+
})) == null ? void 0 : M.value : "Input", d.options = d != null && d.options ? d.options : ((ie = (P = (w = d == null ? void 0 : d.key) == null ? void 0 : w.split("$")) == null ? void 0 : P[1]) == null ? void 0 : ie.length) > 0 ? (l = (V = Jl((g = (ce = d == null ? void 0 : d.key) == null ? void 0 : ce.split("$")) == null ? void 0 : g[1])) == null ? void 0 : V.split(",")) == null ? void 0 : l.map((K) => ({
|
|
64
|
+
label: K,
|
|
65
|
+
value: K
|
|
66
|
+
})) : [], (x = d == null ? void 0 : d.key) != null && x.includes("$") && (d.key = (z = (oe = d == null ? void 0 : d.key) == null ? void 0 : oe.split("$")) == null ? void 0 : z[0]), d.value = (D = Object.values(Q)) == null ? void 0 : D[G], d;
|
|
67
|
+
})), s;
|
|
68
|
+
});
|
|
69
|
+
let c = [], t = [];
|
|
70
|
+
if ((n = p((N = C == null ? void 0 : C.find((s) => (s == null ? void 0 : s.key) === "formContent")) == null ? void 0 : N.contents)) == null || n.forEach((s) => {
|
|
71
|
+
var i;
|
|
72
|
+
Array.isArray(s == null ? void 0 : s.value) && ((i = s == null ? void 0 : s.value) != null && i.find((d) => {
|
|
73
|
+
var G;
|
|
74
|
+
return (G = d == null ? void 0 : d.url) == null ? void 0 : G.includes(".obj");
|
|
75
|
+
})) && (t = s == null ? void 0 : s.value);
|
|
76
|
+
}), (t == null ? void 0 : t.length) > 0) {
|
|
77
|
+
const s = (u = p(t)) == null ? void 0 : u.filter((i) => {
|
|
78
|
+
var d;
|
|
79
|
+
return (d = i == null ? void 0 : i.url) == null ? void 0 : d.includes(".obj");
|
|
80
|
+
});
|
|
81
|
+
s == null || s.forEach((i) => {
|
|
82
|
+
var G, le, de, pe;
|
|
83
|
+
const d = (G = t == null ? void 0 : t.filter((a) => {
|
|
84
|
+
var _;
|
|
85
|
+
return (a == null ? void 0 : a.name) === (i == null ? void 0 : i.name) && ((_ = a == null ? void 0 : a.url) == null ? void 0 : _.includes(".mtl"));
|
|
86
|
+
})) == null ? void 0 : G.map((a) => a == null ? void 0 : a.url);
|
|
87
|
+
c.push({
|
|
88
|
+
objUrl: i == null ? void 0 : i.url,
|
|
89
|
+
mtlUrls: ((le = t == null ? void 0 : t.filter((a) => {
|
|
90
|
+
var _;
|
|
91
|
+
return (a == null ? void 0 : a.name) === (i == null ? void 0 : i.name) && ((_ = a == null ? void 0 : a.url) == null ? void 0 : _.includes(".mtl"));
|
|
92
|
+
})) == null ? void 0 : le.length) === 1 ? (pe = (de = t == null ? void 0 : t.filter((a) => {
|
|
93
|
+
var _;
|
|
94
|
+
return (a == null ? void 0 : a.name) === (i == null ? void 0 : i.name) && ((_ = a == null ? void 0 : a.url) == null ? void 0 : _.includes(".mtl"));
|
|
95
|
+
})) == null ? void 0 : de[0]) == null ? void 0 : pe.url : d
|
|
96
|
+
});
|
|
97
|
+
}), $.setObjUrl(c);
|
|
98
|
+
}
|
|
99
|
+
o("contentChange", {
|
|
100
|
+
contents: C,
|
|
101
|
+
index: v.index
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
return Ee(
|
|
105
|
+
() => v.itemData,
|
|
106
|
+
async () => {
|
|
107
|
+
var N, n, u, s, i, d, G, le, de, pe, a, _, M;
|
|
108
|
+
const Q = (N = v.itemData) == null ? void 0 : N.find((w) => (w == null ? void 0 : w.key) === "formContent"), U = (n = p(v.itemData)) == null ? void 0 : n.find((w) => (w == null ? void 0 : w.key) === "formButton"), C = (u = p(v.itemData)) == null ? void 0 : u.find((w) => (w == null ? void 0 : w.key) === "formFlex"), c = (s = p(v.itemData)) == null ? void 0 : s.find((w) => (w == null ? void 0 : w.key) === "formWrap"), t = (i = p(v.itemData)) == null ? void 0 : i.find((w) => (w == null ? void 0 : w.key) === "enableWrap");
|
|
109
|
+
if ((c == null ? void 0 : c.contents) === "纵向" ? I.value = !1 : I.value = !0, O.value = (t == null ? void 0 : t.contents) === void 0 ? !1 : t == null ? void 0 : t.contents, E.value = typeof (C == null ? void 0 : C.contents) != "boolean" ? !(!(C != null && C.contents) === "" || ((d = C == null ? void 0 : C.contents) == null ? void 0 : d.toUpperCase()) === "VERTICAL") : C == null ? void 0 : C.contents, ((G = Q == null ? void 0 : Q.contents) == null ? void 0 : G.length) > 0 && Array.isArray(Q == null ? void 0 : Q.contents)) {
|
|
110
|
+
const w = [];
|
|
111
|
+
await ((le = Q == null ? void 0 : Q.contents) == null ? void 0 : le.forEach(async (l, x) => {
|
|
112
|
+
var oe, z, D, K, W, Z, fe, he, Be, Fe, xe, Ae;
|
|
113
|
+
if ((l == null ? void 0 : l.label) !== "") {
|
|
114
|
+
let we = (l == null ? void 0 : l.label) ?? (l == null ? void 0 : l.key) ?? "", De = (l == null ? void 0 : l.type) ?? "", Ce = (l == null ? void 0 : l.options) ?? [];
|
|
115
|
+
if ((oe = l == null ? void 0 : l.key) != null && oe.includes("$") && (we = (z = p(l == null ? void 0 : l.key).split("$")) == null ? void 0 : z[0], ((K = (D = p(l == null ? void 0 : l.key).split("$")) == null ? void 0 : D[1]) == null ? void 0 : K.length) > 0)) {
|
|
116
|
+
const [r, h] = (Z = (W = p(l == null ? void 0 : l.key).split("$")) == null ? void 0 : W[1]) == null ? void 0 : Z.split(/[()]/);
|
|
117
|
+
De = ((fe = dl.find((y) => (y == null ? void 0 : y.key) === r)) == null ? void 0 : fe.value) ?? "", ((he = h == null ? void 0 : h.split(",")) == null ? void 0 : he.length) > 0 && (Ce = (Be = h == null ? void 0 : h.split(",")) == null ? void 0 : Be.map((y) => ({
|
|
118
|
+
label: y,
|
|
119
|
+
value: y
|
|
120
|
+
})));
|
|
121
|
+
}
|
|
122
|
+
let e = [];
|
|
123
|
+
l != null && l.contents && !Array.isArray(l == null ? void 0 : l.contents) && (e = (xe = (Fe = l == null ? void 0 : l.contents) == null ? void 0 : Fe.split(",")) == null ? void 0 : xe.map((r) => ({
|
|
124
|
+
label: r,
|
|
125
|
+
value: r
|
|
126
|
+
}))), w.push({
|
|
127
|
+
label: we ?? "",
|
|
128
|
+
name: "t" + x,
|
|
129
|
+
type: De === "" ? "Input" : De,
|
|
130
|
+
value: l != null && l.originalContent && (l == null ? void 0 : l.originalContent) !== "" ? l.originalContent : l != null && l.value ? l.value : (Ce == null ? void 0 : Ce.length) > 0 ? (Ae = Ce == null ? void 0 : Ce[0]) == null ? void 0 : Ae.value : (l == null ? void 0 : l.value) ?? "",
|
|
131
|
+
id: (l == null ? void 0 : l.id) ?? x,
|
|
132
|
+
contents: (e == null ? void 0 : e.length) > 0 ? e : Ce ?? [],
|
|
133
|
+
width: (l == null ? void 0 : l.width) ?? 1,
|
|
134
|
+
config: l == null ? void 0 : l.config,
|
|
135
|
+
optionUrl: (l == null ? void 0 : l.optionUrl) ?? l
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}));
|
|
139
|
+
const P = w == null ? void 0 : w.map((l) => l.value);
|
|
140
|
+
let ie = "";
|
|
141
|
+
P == null || P.forEach((l) => {
|
|
142
|
+
l !== "" && l !== void 0 && (ie = ie === "" ? l : ie + "/" + l);
|
|
143
|
+
}), b.setSelectArray(P), b.setSelectString(ie), m.value = w;
|
|
144
|
+
let ce = [], g = [];
|
|
145
|
+
if ((de = p(m.value)) == null || de.forEach((l) => {
|
|
146
|
+
var x;
|
|
147
|
+
Array.isArray(l == null ? void 0 : l.value) && ((x = l == null ? void 0 : l.value) != null && x.find((oe) => {
|
|
148
|
+
var z;
|
|
149
|
+
return (z = oe == null ? void 0 : oe.url) == null ? void 0 : z.includes(".obj");
|
|
150
|
+
})) && (g = l == null ? void 0 : l.value);
|
|
151
|
+
}), (g == null ? void 0 : g.length) > 0) {
|
|
152
|
+
const l = (pe = p(g)) == null ? void 0 : pe.filter((x) => {
|
|
153
|
+
var oe;
|
|
154
|
+
return (oe = x == null ? void 0 : x.url) == null ? void 0 : oe.includes(".obj");
|
|
155
|
+
});
|
|
156
|
+
l == null || l.forEach((x) => {
|
|
157
|
+
var z, D, K, W;
|
|
158
|
+
const oe = (z = g == null ? void 0 : g.filter((Z) => {
|
|
159
|
+
var fe;
|
|
160
|
+
return (Z == null ? void 0 : Z.name) === (x == null ? void 0 : x.name) && ((fe = Z == null ? void 0 : Z.url) == null ? void 0 : fe.includes(".mtl"));
|
|
161
|
+
})) == null ? void 0 : z.map((Z) => Z == null ? void 0 : Z.url);
|
|
162
|
+
ce.push({
|
|
163
|
+
objUrl: x == null ? void 0 : x.url,
|
|
164
|
+
mtlUrls: ((D = g == null ? void 0 : g.filter((Z) => {
|
|
165
|
+
var fe;
|
|
166
|
+
return (Z == null ? void 0 : Z.name) === (x == null ? void 0 : x.name) && ((fe = Z == null ? void 0 : Z.url) == null ? void 0 : fe.includes(".mtl"));
|
|
167
|
+
})) == null ? void 0 : D.length) === 1 ? (W = (K = g == null ? void 0 : g.filter((Z) => {
|
|
168
|
+
var fe;
|
|
169
|
+
return (Z == null ? void 0 : Z.name) === (x == null ? void 0 : x.name) && ((fe = Z == null ? void 0 : Z.url) == null ? void 0 : fe.includes(".mtl"));
|
|
170
|
+
})) == null ? void 0 : K[0]) == null ? void 0 : W.url : oe
|
|
171
|
+
});
|
|
172
|
+
}), $.setObjUrl(ce);
|
|
173
|
+
}
|
|
174
|
+
let V = [];
|
|
175
|
+
(a = p(m.value)) == null || a.forEach((l) => {
|
|
176
|
+
var x, oe, z, D, K, W, Z, fe, he, Be, Fe, xe, Ae;
|
|
177
|
+
if ((oe = (x = l == null ? void 0 : l.value) == null ? void 0 : x.toString()) != null && oe.includes(".stl") || (D = (z = l == null ? void 0 : l.value) == null ? void 0 : z.toString()) != null && D.includes(".STL") || (W = (K = l == null ? void 0 : l.value) == null ? void 0 : K.toString()) != null && W.includes(".obj") || (fe = (Z = l == null ? void 0 : l.value) == null ? void 0 : Z.toString()) != null && fe.includes(".mtl") || (Be = (he = l == null ? void 0 : l.value) == null ? void 0 : he.toString()) != null && Be.includes(".urdf")) {
|
|
178
|
+
let we = {}, De = [], Ce;
|
|
179
|
+
Array.isArray(l == null ? void 0 : l.value) ? Ce = l == null ? void 0 : l.value : Ce = (Fe = l == null ? void 0 : l.value) == null ? void 0 : Fe.split(","), Ce == null || Ce.forEach((e) => {
|
|
180
|
+
e.includes(".mtl") ? De.push(e) : we.blob = we.blob === "undefined" ? e : we.blob + "," + e;
|
|
181
|
+
}), (De == null ? void 0 : De.length) > 0 && (we.mtlBlobs = De), (Ae = (xe = Object.values(we)) == null ? void 0 : xe[0]) != null && Ae.includes("http:") && V.push(we);
|
|
182
|
+
}
|
|
183
|
+
}), (V == null ? void 0 : V.length) > 0 && $.setBlobUrls(V);
|
|
184
|
+
} else
|
|
185
|
+
m.value = [];
|
|
186
|
+
if (((_ = U == null ? void 0 : U.contents) == null ? void 0 : _.length) > 0) {
|
|
187
|
+
const w = [];
|
|
188
|
+
(M = U == null ? void 0 : U.contents) == null || M.forEach((P, ie) => {
|
|
189
|
+
(P == null ? void 0 : P.label) !== "" && w.push({
|
|
190
|
+
label: (P == null ? void 0 : P.label) ?? "",
|
|
191
|
+
id: (P == null ? void 0 : P.id) ?? ie,
|
|
192
|
+
type: (P == null ? void 0 : P.type) ?? "",
|
|
193
|
+
background: P == null ? void 0 : P.background
|
|
194
|
+
});
|
|
195
|
+
}), j.value = w;
|
|
196
|
+
} else
|
|
197
|
+
j.value = [];
|
|
198
|
+
},
|
|
199
|
+
{ deep: !0, immediate: !0 }
|
|
200
|
+
), (Q, U) => (S(), X("div", Gl, [
|
|
201
|
+
B(Le, {
|
|
202
|
+
rowContents: m.value,
|
|
203
|
+
formRules: k.formRules,
|
|
204
|
+
buttonValue: j.value,
|
|
205
|
+
isRowFlex: !1,
|
|
206
|
+
isEnableWrap: O.value,
|
|
207
|
+
onOnButtonClick: ae,
|
|
208
|
+
onChange: H,
|
|
209
|
+
isButtonRow: I.value
|
|
210
|
+
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEnableWrap", "isButtonRow"])
|
|
211
|
+
]));
|
|
212
|
+
}
|
|
213
|
+
}, pl = /* @__PURE__ */ Te(Hl, [["__scopeId", "data-v-a7f671b4"]]), el = F(0), gl = (k) => {
|
|
214
|
+
var L;
|
|
215
|
+
return !k || (k == null ? void 0 : k.length) === 0 ? [] : (L = p(k)) == null ? void 0 : L.map((o) => (el.value++, o = {
|
|
216
|
+
label: (o == null ? void 0 : o.label) ?? "",
|
|
217
|
+
prop: (o == null ? void 0 : o.label) === "操作" ? "operate" : o == null ? void 0 : o.prop,
|
|
218
|
+
width: o != null && o.width ? parseInt(o.width) : "",
|
|
219
|
+
fixed: (o == null ? void 0 : o.fixed) ?? void 0,
|
|
220
|
+
sortable: (o == null ? void 0 : o.sortable) ?? !1,
|
|
221
|
+
align: (o == null ? void 0 : o.align) ?? "center",
|
|
222
|
+
showOverflowTooltip: (o == null ? void 0 : o.showOverflowTooltip) ?? !0,
|
|
223
|
+
isNotDrag: (o == null ? void 0 : o.isNotDrag) ?? !1,
|
|
224
|
+
isEditCol: (o == null ? void 0 : o.isEditCol) ?? !1,
|
|
225
|
+
isOperate: (o == null ? void 0 : o.isOperate) ?? !1,
|
|
226
|
+
id: (o == null ? void 0 : o.id) ?? el.value,
|
|
227
|
+
children: gl(o == null ? void 0 : o.children)
|
|
228
|
+
}, o));
|
|
229
|
+
}, Ql = (k) => {
|
|
230
|
+
var v;
|
|
231
|
+
return (v = p(k)) == null ? void 0 : v.map((o) => (el.value++, o = {
|
|
232
|
+
label: (o == null ? void 0 : o.label) ?? "",
|
|
233
|
+
prop: (o == null ? void 0 : o.label) === "操作" ? "operate" : o == null ? void 0 : o.prop,
|
|
234
|
+
width: o != null && o.width ? parseInt(o.width) : "",
|
|
235
|
+
fixed: (o == null ? void 0 : o.fixed) ?? void 0,
|
|
236
|
+
sortable: (o == null ? void 0 : o.sortable) ?? !1,
|
|
237
|
+
align: (o == null ? void 0 : o.align) ?? "center",
|
|
238
|
+
showOverflowTooltip: (o == null ? void 0 : o.showOverflowTooltip) ?? !0,
|
|
239
|
+
isNotDrag: (o == null ? void 0 : o.isNotDrag) ?? !1,
|
|
240
|
+
isEditCol: (o == null ? void 0 : o.isEditCol) ?? !1,
|
|
241
|
+
isOperate: (o == null ? void 0 : o.isOperate) ?? !1,
|
|
242
|
+
id: (o == null ? void 0 : o.id) ?? el.value,
|
|
243
|
+
children: gl(o == null ? void 0 : o.children)
|
|
244
|
+
}, o));
|
|
245
|
+
}, Cl = (k, L) => {
|
|
246
|
+
var v;
|
|
247
|
+
return k != null && k.find((o) => (o == null ? void 0 : o.id) === L) ? (v = p(k)) == null ? void 0 : v.filter((m) => (m == null ? void 0 : m.id) !== L) : (k = k == null ? void 0 : k.map((o) => (o.children = Cl(o == null ? void 0 : o.children, L), o)), k);
|
|
248
|
+
}, _l = (k, L) => {
|
|
249
|
+
var v;
|
|
250
|
+
return k != null && k.find((o) => (o == null ? void 0 : o.id) === (L == null ? void 0 : L.id)) ? (v = p(k)) == null ? void 0 : v.map((m) => ((m == null ? void 0 : m.id) === (L == null ? void 0 : L.id) && (m = L), m)) : (k = k == null ? void 0 : k.map((o) => (o.children = _l(o == null ? void 0 : o.children, L), o)), k);
|
|
251
|
+
}, kl = (k, L) => {
|
|
252
|
+
var v;
|
|
253
|
+
return k != null && k.find((o) => {
|
|
254
|
+
var m;
|
|
255
|
+
return (o == null ? void 0 : o.id) === ((m = L == null ? void 0 : L.contents) == null ? void 0 : m.id);
|
|
256
|
+
}) ? (v = p(k)) == null ? void 0 : v.map((m) => {
|
|
257
|
+
var I;
|
|
258
|
+
return (m == null ? void 0 : m.id) === ((I = L == null ? void 0 : L.contents) == null ? void 0 : I.id) && (m = L == null ? void 0 : L.contents), m;
|
|
259
|
+
}) : (k = k == null ? void 0 : k.map((o) => (o.children = kl(o == null ? void 0 : o.children, L), o)), k);
|
|
260
|
+
}, wl = (k, L) => {
|
|
261
|
+
var v;
|
|
262
|
+
return k != null && k.find((o) => (o == null ? void 0 : o.id) === (L == null ? void 0 : L.id)) ? (v = p(k)) == null ? void 0 : v.map((m) => ((m == null ? void 0 : m.id) === (L == null ? void 0 : L.id) && (m != null && m.children || (m.children = []), m.children.push(L.contents)), m)) : (k = k == null ? void 0 : k.map((o) => (o.children = wl(o == null ? void 0 : o.children, L), o)), k);
|
|
263
|
+
}, ve = [
|
|
264
|
+
{
|
|
265
|
+
key: "label",
|
|
266
|
+
label: "标签名",
|
|
267
|
+
type: "Input"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
key: "prop",
|
|
271
|
+
label: "属性名",
|
|
272
|
+
type: "Input"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
key: "width",
|
|
276
|
+
label: "宽度",
|
|
277
|
+
type: "Input"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
key: "sortable",
|
|
281
|
+
label: "是否支持排序",
|
|
282
|
+
type: "Switch"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
key: "align",
|
|
286
|
+
label: "文本所在位置",
|
|
287
|
+
type: "Radio",
|
|
288
|
+
options: [
|
|
289
|
+
{
|
|
290
|
+
label: "left",
|
|
291
|
+
value: "左"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
label: "center",
|
|
295
|
+
value: "中"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
label: "right",
|
|
299
|
+
value: "右"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
key: "fixed",
|
|
305
|
+
label: "是否固定列",
|
|
306
|
+
type: "Switch"
|
|
307
|
+
}
|
|
308
|
+
], Xl = [
|
|
309
|
+
{
|
|
310
|
+
label: "查看",
|
|
311
|
+
value: "view"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
label: "修改",
|
|
315
|
+
value: "fix"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
label: "删除",
|
|
319
|
+
value: "delete"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
label: "三维算例",
|
|
323
|
+
value: "modelExample"
|
|
324
|
+
}
|
|
325
|
+
], Yl = [
|
|
326
|
+
{
|
|
327
|
+
label: "新增",
|
|
328
|
+
value: "add"
|
|
329
|
+
}
|
|
330
|
+
], ze = [
|
|
331
|
+
{
|
|
332
|
+
key: "label",
|
|
333
|
+
label: "按钮名",
|
|
334
|
+
type: "Input"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
key: "type",
|
|
338
|
+
label: "类型",
|
|
339
|
+
type: "Select",
|
|
340
|
+
options: Yl
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
key: "background",
|
|
344
|
+
label: "按钮背景色",
|
|
345
|
+
type: "Color"
|
|
346
|
+
}
|
|
347
|
+
], Me = [
|
|
348
|
+
{
|
|
349
|
+
key: "label",
|
|
350
|
+
label: "按钮名",
|
|
351
|
+
type: "Input"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
key: "type",
|
|
355
|
+
label: "类型",
|
|
356
|
+
type: "Select",
|
|
357
|
+
options: Xl
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
key: "textColor",
|
|
361
|
+
label: "按钮颜色",
|
|
362
|
+
type: "Color"
|
|
363
|
+
}
|
|
364
|
+
], Zl = { class: "table-header-child" }, ea = { class: "table-header-child-main" }, la = { class: "table-header-child-content" }, aa = { class: "table-header-child-content-item" }, na = { class: "fix-button" }, oa = { key: 0 }, sa = { class: "form-content" }, ia = {
|
|
365
|
+
__name: "tableNewChild",
|
|
366
|
+
props: {
|
|
367
|
+
tableChildContents: Array
|
|
368
|
+
},
|
|
369
|
+
emits: ["fixChange", "deleteChange"],
|
|
370
|
+
setup(k, { emit: L }) {
|
|
371
|
+
const v = k, o = L, m = F(!1), I = F(""), j = fl(Ue), { tableIndex: b } = Je(j);
|
|
372
|
+
F(0);
|
|
373
|
+
const $ = F(""), O = F([]), E = F([]), ae = (n) => {
|
|
374
|
+
var s;
|
|
375
|
+
m.value = !0;
|
|
376
|
+
let u = [];
|
|
377
|
+
ve == null || ve.forEach((i) => {
|
|
378
|
+
let d = p(b.value) + 1;
|
|
379
|
+
j.setTableIndex(d), u.push({
|
|
380
|
+
label: i == null ? void 0 : i.label,
|
|
381
|
+
name: i == null ? void 0 : i.label,
|
|
382
|
+
type: i.type,
|
|
383
|
+
value: n[i.key],
|
|
384
|
+
id: b.value,
|
|
385
|
+
contents: i == null ? void 0 : i.options
|
|
386
|
+
});
|
|
387
|
+
}), n != null && n.children && ((s = n == null ? void 0 : n.children) == null ? void 0 : s.length) > 0 && u.push({
|
|
388
|
+
children: n == null ? void 0 : n.children,
|
|
389
|
+
isFormColHidden: !0
|
|
390
|
+
}), $.value = n == null ? void 0 : n.id, O.value = u, E.value = u;
|
|
391
|
+
}, H = (n) => {
|
|
392
|
+
o("fixChange", p(n));
|
|
393
|
+
}, Q = (n) => {
|
|
394
|
+
o("deleteChange", p(n));
|
|
395
|
+
}, U = (n) => {
|
|
396
|
+
m.value = !0;
|
|
397
|
+
let u = [];
|
|
398
|
+
ve == null || ve.forEach((s) => {
|
|
399
|
+
let i = p(b.value) + 1;
|
|
400
|
+
j.setTableIndex(i), u.push({
|
|
401
|
+
label: s == null ? void 0 : s.label,
|
|
402
|
+
name: s == null ? void 0 : s.label,
|
|
403
|
+
type: s.type,
|
|
404
|
+
value: "",
|
|
405
|
+
id: b.value,
|
|
406
|
+
contents: s == null ? void 0 : s.options
|
|
407
|
+
});
|
|
408
|
+
}), I.value = n == null ? void 0 : n.id, O.value = u, E.value = u;
|
|
409
|
+
}, C = (n) => {
|
|
410
|
+
let u = p(E.value);
|
|
411
|
+
u = u == null ? void 0 : u.map((s) => (s.children || (s.value = n == null ? void 0 : n[s.name]), s)), E.value = u;
|
|
412
|
+
}, c = () => {
|
|
413
|
+
var u, s;
|
|
414
|
+
O.value = E.value;
|
|
415
|
+
let n = {};
|
|
416
|
+
if ($.value !== "")
|
|
417
|
+
n.id = $.value, (u = O.value) == null || u.forEach((i) => {
|
|
418
|
+
const d = ve == null ? void 0 : ve.find((G) => (G == null ? void 0 : G.label) === (i == null ? void 0 : i.label));
|
|
419
|
+
d ? n[d.key] = i.value : i != null && i.children && i.children.length > 0 && (n.children = i.children);
|
|
420
|
+
}), m.value = !1, o("fixChange", {
|
|
421
|
+
contents: p(n),
|
|
422
|
+
id: I.value,
|
|
423
|
+
type: "fix"
|
|
424
|
+
});
|
|
425
|
+
else {
|
|
426
|
+
let i = p(b.value) + 1;
|
|
427
|
+
j.setTableIndex(i), n.id = "id" + b.value, (s = O.value) == null || s.forEach((d) => {
|
|
428
|
+
const G = ve == null ? void 0 : ve.find((le) => (le == null ? void 0 : le.label) === (d == null ? void 0 : d.label));
|
|
429
|
+
G ? n[G.key] = d.value : d != null && d.children && d.children.length > 0 && (n.children = d.children);
|
|
430
|
+
}), m.value = !1, o("fixChange", {
|
|
431
|
+
contents: p(n),
|
|
432
|
+
id: I.value,
|
|
433
|
+
type: "add"
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
$.value = "", O.value = [], E.value = [];
|
|
437
|
+
}, t = () => {
|
|
438
|
+
m.value = !1, $.value = "", I.value = "", O.value = [], E.value = [];
|
|
439
|
+
}, N = (n) => {
|
|
440
|
+
Ke.confirm("是否确认要删除", "", {
|
|
441
|
+
confirmButtonText: "确认",
|
|
442
|
+
cancelButtonText: "取消",
|
|
443
|
+
type: "warning"
|
|
444
|
+
}).then(
|
|
445
|
+
() => {
|
|
446
|
+
o("deleteChange", n), je({
|
|
447
|
+
type: "success",
|
|
448
|
+
message: "删除成功"
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
).catch(() => {
|
|
452
|
+
});
|
|
453
|
+
};
|
|
454
|
+
return (n, u) => {
|
|
455
|
+
const s = ye("svg-icon");
|
|
456
|
+
return S(), X("div", Zl, [
|
|
457
|
+
(S(!0), X(be, null, _e(v == null ? void 0 : v.tableChildContents, (i, d) => (S(), X("div", ea, [
|
|
458
|
+
f("div", la, [
|
|
459
|
+
f("div", aa, se(i.label), 1),
|
|
460
|
+
f("div", na, [
|
|
461
|
+
B(s, {
|
|
462
|
+
name: "ChildAdd",
|
|
463
|
+
class: "svg-icon-content",
|
|
464
|
+
style: { width: "24px", height: "24px" },
|
|
465
|
+
onClick: (G) => U(i)
|
|
466
|
+
}, null, 8, ["onClick"]),
|
|
467
|
+
B(s, {
|
|
468
|
+
name: "ChildFix",
|
|
469
|
+
class: "svg-icon-content",
|
|
470
|
+
style: { width: "24px", height: "24px" },
|
|
471
|
+
onClick: (G) => ae(i)
|
|
472
|
+
}, null, 8, ["onClick"]),
|
|
473
|
+
B(s, {
|
|
474
|
+
name: "ChildDelete",
|
|
475
|
+
class: "svg-icon-content",
|
|
476
|
+
style: { width: "24px", height: "24px" },
|
|
477
|
+
onClick: (G) => N(i)
|
|
478
|
+
}, null, 8, ["onClick"])
|
|
479
|
+
])
|
|
480
|
+
]),
|
|
481
|
+
i != null && i.children && i.children.length > 0 ? (S(), X("div", oa, [
|
|
482
|
+
B(xl, {
|
|
483
|
+
tableChildContents: i == null ? void 0 : i.children,
|
|
484
|
+
onDeleteChange: Q,
|
|
485
|
+
onFixChange: H
|
|
486
|
+
}, null, 8, ["tableChildContents"])
|
|
487
|
+
])) : Pe("", !0)
|
|
488
|
+
]))), 256)),
|
|
489
|
+
B(Oe, {
|
|
490
|
+
visible: m.value,
|
|
491
|
+
onBeforeDestroy: t,
|
|
492
|
+
width: 840
|
|
493
|
+
}, {
|
|
494
|
+
default: q(() => [
|
|
495
|
+
f("div", sa, [
|
|
496
|
+
(S(), ke(Le, {
|
|
497
|
+
rowContents: O.value,
|
|
498
|
+
key: O.value,
|
|
499
|
+
isEnableWrap: !0,
|
|
500
|
+
onChange: C
|
|
501
|
+
}, null, 8, ["rowContents"]))
|
|
502
|
+
])
|
|
503
|
+
]),
|
|
504
|
+
footer: q(() => [
|
|
505
|
+
f("div", { class: "dialog-footer" }, [
|
|
506
|
+
f("div", {
|
|
507
|
+
onClick: t,
|
|
508
|
+
class: "cancel-button button"
|
|
509
|
+
}, se("取消")),
|
|
510
|
+
f("div", {
|
|
511
|
+
class: "ok-button button",
|
|
512
|
+
onClick: c
|
|
513
|
+
}, se("确认"))
|
|
514
|
+
])
|
|
515
|
+
]),
|
|
516
|
+
_: 1
|
|
517
|
+
}, 8, ["visible"])
|
|
518
|
+
]);
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
}, ua = /* @__PURE__ */ Te(ia, [["__scopeId", "data-v-e0fef72d"]]), ra = { class: "table-header-child" }, ta = { class: "table-header-child-main" }, ca = { class: "table-header-child-content" }, da = { class: "table-header-child-content-item" }, pa = { class: "fix-button" }, va = { key: 0 }, fa = { class: "form-content" }, ma = { class: "dialog-footer" }, ha = {
|
|
522
|
+
__name: "tableChildren",
|
|
523
|
+
props: {
|
|
524
|
+
tableChildContents: Array
|
|
525
|
+
},
|
|
526
|
+
emits: ["fixChange", "deleteChange"],
|
|
527
|
+
setup(k, { emit: L }) {
|
|
528
|
+
const v = k, o = L, m = F(!1), I = F(""), j = fl(Ue), { tableIndex: b } = Je(j), $ = F(""), O = F([]), E = F([]), ae = (n) => {
|
|
529
|
+
o("fixChange", p(n));
|
|
530
|
+
}, H = (n) => {
|
|
531
|
+
var s;
|
|
532
|
+
m.value = !0;
|
|
533
|
+
let u = [];
|
|
534
|
+
ve == null || ve.forEach((i) => {
|
|
535
|
+
let d = p(b.value) + 1;
|
|
536
|
+
j.setTableIndex(d), u.push({
|
|
537
|
+
label: i == null ? void 0 : i.label,
|
|
538
|
+
name: i == null ? void 0 : i.label,
|
|
539
|
+
type: i.type,
|
|
540
|
+
value: n[i.key],
|
|
541
|
+
id: b.value,
|
|
542
|
+
contents: i == null ? void 0 : i.options
|
|
543
|
+
});
|
|
544
|
+
}), n != null && n.children && ((s = n == null ? void 0 : n.children) == null ? void 0 : s.length) > 0 && u.push({
|
|
545
|
+
children: n == null ? void 0 : n.children,
|
|
546
|
+
isFormColHidden: !0
|
|
547
|
+
}), $.value = n == null ? void 0 : n.id, O.value = u, E.value = u;
|
|
548
|
+
}, Q = (n) => {
|
|
549
|
+
m.value = !0;
|
|
550
|
+
let u = [];
|
|
551
|
+
ve == null || ve.forEach((s) => {
|
|
552
|
+
let i = p(b.value) + 1;
|
|
553
|
+
j.setTableIndex(i), u.push({
|
|
554
|
+
label: s == null ? void 0 : s.label,
|
|
555
|
+
name: s == null ? void 0 : s.label,
|
|
556
|
+
type: s.type,
|
|
557
|
+
value: "",
|
|
558
|
+
id: b.value,
|
|
559
|
+
contents: s == null ? void 0 : s.options
|
|
560
|
+
});
|
|
561
|
+
}), I.value = n == null ? void 0 : n.id, O.value = u, E.value = u;
|
|
562
|
+
}, U = (n) => {
|
|
563
|
+
let u = p(E.value);
|
|
564
|
+
u = u == null ? void 0 : u.map((s) => (s.children || (s.value = n == null ? void 0 : n[s.name]), s)), E.value = u;
|
|
565
|
+
}, C = () => {
|
|
566
|
+
var u, s;
|
|
567
|
+
O.value = E.value;
|
|
568
|
+
let n = {};
|
|
569
|
+
if ($.value !== "")
|
|
570
|
+
n.id = $.value, (u = O.value) == null || u.forEach((i) => {
|
|
571
|
+
const d = ve == null ? void 0 : ve.find((G) => (G == null ? void 0 : G.label) === (i == null ? void 0 : i.label));
|
|
572
|
+
d ? n[d.key] = i.value : i != null && i.children && i.children.length > 0 && (n.children = i.children);
|
|
573
|
+
}), m.value = !1, o("fixChange", {
|
|
574
|
+
contents: p(n),
|
|
575
|
+
id: I.value,
|
|
576
|
+
type: "fix"
|
|
577
|
+
});
|
|
578
|
+
else {
|
|
579
|
+
let i = p(b.value) + 1;
|
|
580
|
+
j.setTableIndex(i), n.id = "idChild" + b.value, (s = O.value) == null || s.forEach((d) => {
|
|
581
|
+
const G = ve == null ? void 0 : ve.find((le) => (le == null ? void 0 : le.label) === (d == null ? void 0 : d.label));
|
|
582
|
+
G ? n[G.key] = d.value : d != null && d.children && d.children.length > 0 && (n.children = d.children);
|
|
583
|
+
}), m.value = !1, o("fixChange", {
|
|
584
|
+
contents: p(n),
|
|
585
|
+
id: I.value,
|
|
586
|
+
type: "add"
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
$.value = "", O.value = [], E.value = [];
|
|
590
|
+
}, c = () => {
|
|
591
|
+
m.value = !1, $.value = "", I.value = "", O.value = [], E.value = [];
|
|
592
|
+
}, t = (n) => {
|
|
593
|
+
Ke.confirm("是否确认要删除", "", {
|
|
594
|
+
confirmButtonText: "确认",
|
|
595
|
+
cancelButtonText: "取消",
|
|
596
|
+
type: "warning"
|
|
597
|
+
}).then(
|
|
598
|
+
() => {
|
|
599
|
+
o("deleteChange", n), je({
|
|
600
|
+
type: "success",
|
|
601
|
+
message: "删除成功"
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
).catch(() => {
|
|
605
|
+
});
|
|
606
|
+
}, N = (n) => {
|
|
607
|
+
o("deleteChange", n);
|
|
608
|
+
};
|
|
609
|
+
return (n, u) => {
|
|
610
|
+
const s = ye("svg-icon"), i = ye("el-button");
|
|
611
|
+
return S(), X("div", ra, [
|
|
612
|
+
(S(!0), X(be, null, _e(v == null ? void 0 : v.tableChildContents, (d, G) => (S(), X("div", ta, [
|
|
613
|
+
f("div", ca, [
|
|
614
|
+
f("div", da, se(d.label), 1),
|
|
615
|
+
f("div", pa, [
|
|
616
|
+
B(s, {
|
|
617
|
+
name: "ChildAdd",
|
|
618
|
+
class: "svg-icon-content",
|
|
619
|
+
style: { width: "24px", height: "24px" },
|
|
620
|
+
onClick: (le) => Q(d)
|
|
621
|
+
}, null, 8, ["onClick"]),
|
|
622
|
+
B(s, {
|
|
623
|
+
name: "ChildFix",
|
|
624
|
+
class: "svg-icon-content",
|
|
625
|
+
style: { width: "24px", height: "24px" },
|
|
626
|
+
onClick: (le) => H(d)
|
|
627
|
+
}, null, 8, ["onClick"]),
|
|
628
|
+
B(s, {
|
|
629
|
+
name: "ChildDelete",
|
|
630
|
+
class: "svg-icon-content",
|
|
631
|
+
style: { width: "24px", height: "24px" },
|
|
632
|
+
onClick: (le) => t(d)
|
|
633
|
+
}, null, 8, ["onClick"])
|
|
634
|
+
])
|
|
635
|
+
]),
|
|
636
|
+
d != null && d.children && d.children.length > 0 ? (S(), X("div", va, [
|
|
637
|
+
B(ua, {
|
|
638
|
+
tableChildContents: d == null ? void 0 : d.children,
|
|
639
|
+
onDeleteChange: N,
|
|
640
|
+
onFixChange: ae
|
|
641
|
+
}, null, 8, ["tableChildContents"])
|
|
642
|
+
])) : Pe("", !0)
|
|
643
|
+
]))), 256)),
|
|
644
|
+
B(Oe, {
|
|
645
|
+
visible: m.value,
|
|
646
|
+
onBeforeDestroy: c,
|
|
647
|
+
width: 840
|
|
648
|
+
}, {
|
|
649
|
+
default: q(() => [
|
|
650
|
+
f("div", fa, [
|
|
651
|
+
(S(), ke(Le, {
|
|
652
|
+
rowContents: O.value,
|
|
653
|
+
key: O.value,
|
|
654
|
+
isEnableWrap: !0,
|
|
655
|
+
onChange: U
|
|
656
|
+
}, null, 8, ["rowContents"]))
|
|
657
|
+
])
|
|
658
|
+
]),
|
|
659
|
+
footer: q(() => [
|
|
660
|
+
f("div", ma, [
|
|
661
|
+
B(i, {
|
|
662
|
+
onClick: c,
|
|
663
|
+
class: "cancel-button button",
|
|
664
|
+
id: "themeBorderButton"
|
|
665
|
+
}, {
|
|
666
|
+
default: q(() => u[0] || (u[0] = [
|
|
667
|
+
me(se("取消"))
|
|
668
|
+
])),
|
|
669
|
+
_: 1,
|
|
670
|
+
__: [0]
|
|
671
|
+
}),
|
|
672
|
+
B(i, {
|
|
673
|
+
class: "ok-button button",
|
|
674
|
+
onClick: C,
|
|
675
|
+
id: "themeButton"
|
|
676
|
+
}, {
|
|
677
|
+
default: q(() => u[1] || (u[1] = [
|
|
678
|
+
me(se("确认"))
|
|
679
|
+
])),
|
|
680
|
+
_: 1,
|
|
681
|
+
__: [1]
|
|
682
|
+
})
|
|
683
|
+
])
|
|
684
|
+
]),
|
|
685
|
+
_: 1
|
|
686
|
+
}, 8, ["visible"])
|
|
687
|
+
]);
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
}, xl = /* @__PURE__ */ Te(ha, [["__scopeId", "data-v-ebd68fa1"]]), ya = { class: "table-operate-content" }, ba = { class: "table-operate-item" }, ga = { class: "operate-title" }, Ca = { class: "operate-content" }, _a = { class: "fix-content" }, ka = { class: "fix-content-label" }, wa = { class: "fix-button" }, xa = { key: 0 }, Da = { class: "operate-title" }, Ia = { class: "operate-content" }, Ta = { class: "fix-content" }, $a = { class: "fix-content-label" }, Ea = { class: "fix-button" }, Ba = { class: "operate-title" }, Fa = { class: "operate-content" }, Aa = { class: "fix-content" }, Sa = { class: "fix-content-label" }, La = { class: "fix-button" }, Oa = { class: "operate-title" }, Ra = { class: "operate-content" }, Va = { class: "fix-content" }, Na = { class: "fix-content-label" }, Pa = { class: "fix-button" }, ja = { class: "operate-content" }, Ua = { style: { display: "flex", "justify-content": "space-between" } }, Wa = { class: "form-content" }, za = { class: "dialog-footer" }, Ma = { class: "form-content" }, Ka = { class: "dialog-footer" }, Ja = { class: "form-content" }, qa = { class: "dialog-footer" }, Ga = { class: "form-content" }, Ha = { class: "dialog-footer" }, Qa = {
|
|
691
|
+
__name: "operate",
|
|
692
|
+
props: {
|
|
693
|
+
itemContents: {
|
|
694
|
+
type: Array,
|
|
695
|
+
default: () => []
|
|
696
|
+
},
|
|
697
|
+
originalItemContents: {
|
|
698
|
+
type: Array,
|
|
699
|
+
default: () => []
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
emits: ["change"],
|
|
703
|
+
setup(k, { emit: L }) {
|
|
704
|
+
const v = k, o = L, m = F([]), I = F(!1), j = F(!1), b = F([]), $ = F(!1), O = F([]), E = F(!1), ae = F([]), H = F(""), Q = F(""), U = F([]), C = F([]), c = F([]), t = F([]), N = F(!1), n = F([]), u = F([]), s = F(0), i = F([]), d = F([]), G = F([]), le = () => {
|
|
705
|
+
N.value = !0;
|
|
706
|
+
let e = [];
|
|
707
|
+
ze == null || ze.forEach((r) => {
|
|
708
|
+
s.value++, e.push({
|
|
709
|
+
label: r == null ? void 0 : r.label,
|
|
710
|
+
name: r == null ? void 0 : r.label,
|
|
711
|
+
type: r.type,
|
|
712
|
+
value: (r == null ? void 0 : r.key) === "background" ? "var(--ssComponent-primary-color)" : "",
|
|
713
|
+
id: s.value,
|
|
714
|
+
contents: r == null ? void 0 : r.options
|
|
715
|
+
});
|
|
716
|
+
}), n.value = e, u.value = e;
|
|
717
|
+
}, de = () => {
|
|
718
|
+
var r, h, y;
|
|
719
|
+
j.value = !0;
|
|
720
|
+
let e = [];
|
|
721
|
+
(y = (h = (r = $e) == null ? void 0 : r.find((R) => (R == null ? void 0 : R.key) === "Input")) == null ? void 0 : h.value) == null || y.forEach((R) => {
|
|
722
|
+
s.value++, e.push({
|
|
723
|
+
label: R == null ? void 0 : R.label,
|
|
724
|
+
name: R == null ? void 0 : R.label,
|
|
725
|
+
type: R.type,
|
|
726
|
+
value: (R == null ? void 0 : R.label) === "类型" ? "Input" : "",
|
|
727
|
+
id: s.value,
|
|
728
|
+
contents: R == null ? void 0 : R.options
|
|
729
|
+
});
|
|
730
|
+
}), i.value = e, d.value = e;
|
|
731
|
+
}, pe = (e) => {
|
|
732
|
+
e || (i.value = d.value);
|
|
733
|
+
}, a = async (e) => {
|
|
734
|
+
var r, h, y, R, J, re, A, Y, ne, Ie, Re, te;
|
|
735
|
+
if ((e == null ? void 0 : e.类型) !== ((h = (r = d.value) == null ? void 0 : r.find((ee) => (ee == null ? void 0 : ee.label) === "类型")) == null ? void 0 : h.value)) {
|
|
736
|
+
let ee = [], ge = await ((J = (R = (y = $e) == null ? void 0 : y.find((ue) => (ue == null ? void 0 : ue.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : R.value) == null ? void 0 : J.value) ? await ((Ie = (ne = (Y = $e) == null ? void 0 : Y.find((ue) => (ue == null ? void 0 : ue.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : ne.value) == null ? void 0 : Ie.value) : (A = (re = $e) == null ? void 0 : re.find((ue) => (ue == null ? void 0 : ue.key) === ((e == null ? void 0 : e.类型) === "" ? "Input" : e == null ? void 0 : e.类型))) == null ? void 0 : A.value;
|
|
737
|
+
if (ge == null || ge.forEach((ue) => {
|
|
738
|
+
s.value++, ee.push({
|
|
739
|
+
label: ue == null ? void 0 : ue.label,
|
|
740
|
+
name: ue == null ? void 0 : ue.label,
|
|
741
|
+
type: ue.type,
|
|
742
|
+
value: (e == null ? void 0 : e[ue.label]) ?? "",
|
|
743
|
+
id: s.value,
|
|
744
|
+
contents: ue == null ? void 0 : ue.options
|
|
745
|
+
});
|
|
746
|
+
}), e != null && e.菜单选项 && ((Re = e == null ? void 0 : e.菜单选项) == null ? void 0 : Re.length) > 0) {
|
|
747
|
+
const ue = await He(e == null ? void 0 : e.菜单选项);
|
|
748
|
+
ee = ee == null ? void 0 : ee.map((Se) => ((Se == null ? void 0 : Se.name) === "组信息选项" && (Se.contents = ue), Se));
|
|
749
|
+
}
|
|
750
|
+
d.value = await We(p(ee)), i.value = await We(p(ee));
|
|
751
|
+
} else {
|
|
752
|
+
let ee = p(i.value);
|
|
753
|
+
if (ee = ee == null ? void 0 : ee.map((ge) => (ge.value = e == null ? void 0 : e[ge.name], ge)), e != null && e.菜单选项 && ((te = e == null ? void 0 : e.菜单选项) == null ? void 0 : te.length) > 0) {
|
|
754
|
+
const ge = await He(e == null ? void 0 : e.菜单选项);
|
|
755
|
+
ee = ee == null ? void 0 : ee.map((ue) => ((ue == null ? void 0 : ue.name) === "组信息选项" && (ue.contents = ge), ue));
|
|
756
|
+
}
|
|
757
|
+
ee = qe(ee), d.value = await We(p(ee));
|
|
758
|
+
}
|
|
759
|
+
}, _ = async (e) => {
|
|
760
|
+
await a(e), i.value = d.value;
|
|
761
|
+
}, M = async (e) => {
|
|
762
|
+
var y, R, J, re, A, Y, ne, Ie, Re;
|
|
763
|
+
j.value = !0;
|
|
764
|
+
let r = [];
|
|
765
|
+
const h = await ((J = (R = (y = $e) == null ? void 0 : y.find((te) => (te == null ? void 0 : te.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : R.value) == null ? void 0 : J.value) ? await ((Ie = (ne = (Y = $e) == null ? void 0 : Y.find((te) => (te == null ? void 0 : te.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : ne.value) == null ? void 0 : Ie.value) : (A = (re = $e) == null ? void 0 : re.find((te) => (te == null ? void 0 : te.key) === ((e == null ? void 0 : e.type) === "" ? "Input" : e == null ? void 0 : e.type))) == null ? void 0 : A.value;
|
|
766
|
+
if (h == null || h.forEach((te) => {
|
|
767
|
+
s.value++, r.push({
|
|
768
|
+
label: te == null ? void 0 : te.label,
|
|
769
|
+
name: te == null ? void 0 : te.label,
|
|
770
|
+
type: te.type,
|
|
771
|
+
value: (te == null ? void 0 : te.label) === "类型" && e[te.key] === "" ? "Input" : e[te.key],
|
|
772
|
+
id: s.value,
|
|
773
|
+
contents: te == null ? void 0 : te.options
|
|
774
|
+
});
|
|
775
|
+
}), e != null && e.menuSelect && ((Re = e == null ? void 0 : e.menuSelect) == null ? void 0 : Re.length) > 0) {
|
|
776
|
+
const te = await He(e == null ? void 0 : e.menuSelect);
|
|
777
|
+
r = r == null ? void 0 : r.map((ee) => ((ee == null ? void 0 : ee.name) === "组信息选项" && (ee.contents = te), ee));
|
|
778
|
+
}
|
|
779
|
+
H.value = e == null ? void 0 : e.id, i.value = await We(qe(r)), d.value = await We(qe(r));
|
|
780
|
+
}, w = (e) => {
|
|
781
|
+
Ke.confirm("是否确认要删除", "", {
|
|
782
|
+
confirmButtonText: "确认",
|
|
783
|
+
cancelButtonText: "取消",
|
|
784
|
+
type: "warning"
|
|
785
|
+
}).then(
|
|
786
|
+
() => {
|
|
787
|
+
var r, h;
|
|
788
|
+
G.value = (r = p(G.value)) == null ? void 0 : r.filter((y) => (y == null ? void 0 : y.id) !== (e == null ? void 0 : e.id)), o("change", (h = p(v.originalItemContents)) == null ? void 0 : h.map((y) => ((y == null ? void 0 : y.key) === "tableToForm" && (y.contents = G.value), y))), je({
|
|
789
|
+
type: "success",
|
|
790
|
+
message: "删除成功"
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
).catch(() => {
|
|
794
|
+
});
|
|
795
|
+
}, P = () => {
|
|
796
|
+
j.value = !1, i.value = [], H.value = "";
|
|
797
|
+
}, ie = async () => {
|
|
798
|
+
var y, R, J, re, A, Y, ne, Ie, Re, te;
|
|
799
|
+
i.value = d.value;
|
|
800
|
+
let e = {};
|
|
801
|
+
H.value !== "" ? e.id = H.value : (s.value++, e.id = "id" + s.value);
|
|
802
|
+
let r = await ((J = (R = (y = $e) == null ? void 0 : y.find((ee) => {
|
|
803
|
+
var ge, ue;
|
|
804
|
+
return (ee == null ? void 0 : ee.key) === (((ue = (ge = i.value) == null ? void 0 : ge.find((Se) => (Se == null ? void 0 : Se.label) === "类型")) == null ? void 0 : ue.value) ?? "label");
|
|
805
|
+
})) == null ? void 0 : R.value) == null ? void 0 : J.value) ?? ((A = (re = $e) == null ? void 0 : re.find((ee) => {
|
|
806
|
+
var ge, ue;
|
|
807
|
+
return (ee == null ? void 0 : ee.key) === (((ue = (ge = i.value) == null ? void 0 : ge.find((Se) => (Se == null ? void 0 : Se.label) === "类型")) == null ? void 0 : ue.value) ?? "label");
|
|
808
|
+
})) == null ? void 0 : A.value);
|
|
809
|
+
if ((Y = i.value) == null || Y.forEach((ee) => {
|
|
810
|
+
const ge = r == null ? void 0 : r.find((ue) => (ue == null ? void 0 : ue.label) === (ee == null ? void 0 : ee.label));
|
|
811
|
+
ge && (e[ge.key] = ee.value);
|
|
812
|
+
}), e.name = e.label, (ne = G.value) != null && ne.find((ee) => ee.id === e.id))
|
|
813
|
+
G.value = (Ie = G.value) == null ? void 0 : Ie.map((ee) => (ee.id === e.id && (ee = e), ee));
|
|
814
|
+
else {
|
|
815
|
+
let ee = p(G.value);
|
|
816
|
+
G.value || (G.value = []), ee.push(e), G.value = ee;
|
|
817
|
+
}
|
|
818
|
+
G.value = G.value.map(({ id: ee, ...ge }) => ge), j.value = !1, H.value = "";
|
|
819
|
+
let h = p(v.originalItemContents);
|
|
820
|
+
(Re = p(v.originalItemContents)) != null && Re.find((ee) => (ee == null ? void 0 : ee.key) === "tableToForm") ? h = (te = p(v.originalItemContents)) == null ? void 0 : te.map((ee) => ((ee == null ? void 0 : ee.key) === "tableToForm" && (ee.contents = G.value), ee)) : h.push({
|
|
821
|
+
key: "tableToForm",
|
|
822
|
+
contents: G.value
|
|
823
|
+
}), o("change", h);
|
|
824
|
+
}, ce = (e) => {
|
|
825
|
+
N.value = !0;
|
|
826
|
+
let r = [];
|
|
827
|
+
ze == null || ze.forEach((h) => {
|
|
828
|
+
s.value++, r.push({
|
|
829
|
+
label: h == null ? void 0 : h.label,
|
|
830
|
+
name: h == null ? void 0 : h.label,
|
|
831
|
+
type: h.type,
|
|
832
|
+
value: e[h.key],
|
|
833
|
+
id: s.value,
|
|
834
|
+
contents: h == null ? void 0 : h.options
|
|
835
|
+
});
|
|
836
|
+
}), H.value = e == null ? void 0 : e.id, n.value = r, u.value = r;
|
|
837
|
+
};
|
|
838
|
+
Ee(
|
|
839
|
+
() => E.value,
|
|
840
|
+
() => {
|
|
841
|
+
var r, h;
|
|
842
|
+
let e = p(v.originalItemContents);
|
|
843
|
+
(r = p(v.originalItemContents)) != null && r.find((y) => (y == null ? void 0 : y.key) === "page") ? e = (h = p(v.originalItemContents)) == null ? void 0 : h.map((y) => ((y == null ? void 0 : y.key) === "page" && (y.contents = E.value), y)) : e.push({
|
|
844
|
+
key: "page",
|
|
845
|
+
contents: E.value
|
|
846
|
+
}), o("change", e);
|
|
847
|
+
},
|
|
848
|
+
{ deep: !0 }
|
|
849
|
+
);
|
|
850
|
+
const g = (e) => {
|
|
851
|
+
Ke.confirm("是否确认要删除", "", {
|
|
852
|
+
confirmButtonText: "确认",
|
|
853
|
+
cancelButtonText: "取消",
|
|
854
|
+
type: "warning"
|
|
855
|
+
}).then(
|
|
856
|
+
() => {
|
|
857
|
+
var r, h;
|
|
858
|
+
C.value = (r = p(C.value)) == null ? void 0 : r.filter((y) => (y == null ? void 0 : y.id) !== (e == null ? void 0 : e.id)), o("change", (h = p(v.originalItemContents)) == null ? void 0 : h.map((y) => ((y == null ? void 0 : y.key) === "extraButton" && (y.contents = C.value), y))), je({
|
|
859
|
+
type: "success",
|
|
860
|
+
message: "删除成功"
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
).catch(() => {
|
|
864
|
+
});
|
|
865
|
+
}, V = () => {
|
|
866
|
+
var h, y, R, J, re;
|
|
867
|
+
n.value = u.value;
|
|
868
|
+
let e = {};
|
|
869
|
+
if (H.value !== "" ? e.id = H.value : (s.value++, e.id = "id" + s.value), (h = n.value) == null || h.forEach((A) => {
|
|
870
|
+
const Y = ze == null ? void 0 : ze.find((ne) => (ne == null ? void 0 : ne.label) === (A == null ? void 0 : A.label));
|
|
871
|
+
Y ? e[Y.key] = A.value : A != null && A.children && A.children.length > 0 && (e.children = A.children);
|
|
872
|
+
}), (y = C.value) != null && y.find((A) => A.id === e.id))
|
|
873
|
+
C.value = (R = C.value) == null ? void 0 : R.map((A) => (A.id === e.id && (A = e), A));
|
|
874
|
+
else {
|
|
875
|
+
let A = p(C.value) ?? [];
|
|
876
|
+
A.push(e), C.value = A;
|
|
877
|
+
}
|
|
878
|
+
N.value = !1, H.value = "";
|
|
879
|
+
let r = p(v.originalItemContents);
|
|
880
|
+
(J = p(v.originalItemContents)) != null && J.find((A) => (A == null ? void 0 : A.key) === "extraButton") ? r = (re = p(v.originalItemContents)) == null ? void 0 : re.map((A) => ((A == null ? void 0 : A.key) === "extraButton" && (A.contents = C.value), A)) : r.push({
|
|
881
|
+
key: "extraButton",
|
|
882
|
+
contents: C.value
|
|
883
|
+
}), o("change", r);
|
|
884
|
+
}, l = (e) => {
|
|
885
|
+
let r = p(u.value);
|
|
886
|
+
r = r == null ? void 0 : r.map((h) => (h.children || (h.value = e == null ? void 0 : e[h.name]), h)), u.value = r;
|
|
887
|
+
}, x = () => {
|
|
888
|
+
N.value = !1, n.value = [], H.value = "";
|
|
889
|
+
}, oe = (e) => {
|
|
890
|
+
$.value = !0;
|
|
891
|
+
let r = [];
|
|
892
|
+
Me == null || Me.forEach((h) => {
|
|
893
|
+
s.value++, r.push({
|
|
894
|
+
label: h == null ? void 0 : h.label,
|
|
895
|
+
name: h == null ? void 0 : h.label,
|
|
896
|
+
type: h.type,
|
|
897
|
+
value: e[h.key],
|
|
898
|
+
id: s.value,
|
|
899
|
+
contents: h == null ? void 0 : h.options
|
|
900
|
+
});
|
|
901
|
+
}), H.value = e == null ? void 0 : e.id, c.value = r, t.value = r;
|
|
902
|
+
}, z = (e) => {
|
|
903
|
+
Ke.confirm("是否确认要删除", "", {
|
|
904
|
+
confirmButtonText: "确认",
|
|
905
|
+
cancelButtonText: "取消",
|
|
906
|
+
type: "warning"
|
|
907
|
+
}).then(
|
|
908
|
+
() => {
|
|
909
|
+
var r, h;
|
|
910
|
+
U.value = (r = p(U.value)) == null ? void 0 : r.filter((y) => (y == null ? void 0 : y.id) !== (e == null ? void 0 : e.id)), o("change", (h = p(v.originalItemContents)) == null ? void 0 : h.map((y) => ((y == null ? void 0 : y.key) === "rowButton" && (y.contents = U.value), y))), je({
|
|
911
|
+
type: "success",
|
|
912
|
+
message: "删除成功"
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
).catch(() => {
|
|
916
|
+
});
|
|
917
|
+
}, D = () => {
|
|
918
|
+
I.value = !0;
|
|
919
|
+
let e = [];
|
|
920
|
+
ve == null || ve.forEach((r) => {
|
|
921
|
+
s.value++, e.push({
|
|
922
|
+
label: r == null ? void 0 : r.label,
|
|
923
|
+
name: r == null ? void 0 : r.label,
|
|
924
|
+
type: r.type,
|
|
925
|
+
value: "",
|
|
926
|
+
id: s.value,
|
|
927
|
+
contents: r == null ? void 0 : r.options
|
|
928
|
+
});
|
|
929
|
+
}), O.value = e, ae.value = e;
|
|
930
|
+
}, K = () => {
|
|
931
|
+
$.value = !0;
|
|
932
|
+
let e = [];
|
|
933
|
+
Me == null || Me.forEach((r) => {
|
|
934
|
+
s.value++, e.push({
|
|
935
|
+
label: r == null ? void 0 : r.label,
|
|
936
|
+
name: r == null ? void 0 : r.label,
|
|
937
|
+
type: r.type,
|
|
938
|
+
value: "",
|
|
939
|
+
id: s.value,
|
|
940
|
+
contents: r == null ? void 0 : r.options
|
|
941
|
+
});
|
|
942
|
+
}), c.value = e, t.value = e;
|
|
943
|
+
}, W = (e) => {
|
|
944
|
+
let r = p(t.value);
|
|
945
|
+
r = r == null ? void 0 : r.map((h) => (h.children || (h.value = e == null ? void 0 : e[h.name]), h)), t.value = r;
|
|
946
|
+
}, Z = () => {
|
|
947
|
+
var h, y, R, J, re;
|
|
948
|
+
c.value = t.value;
|
|
949
|
+
let e = {};
|
|
950
|
+
if (H.value !== "" ? e.id = H.value : (s.value++, e.id = "id" + s.value), (h = c.value) == null || h.forEach((A) => {
|
|
951
|
+
const Y = Me == null ? void 0 : Me.find((ne) => (ne == null ? void 0 : ne.label) === (A == null ? void 0 : A.label));
|
|
952
|
+
Y ? e[Y.key] = A.value : A != null && A.children && A.children.length > 0 && (e.children = A.children);
|
|
953
|
+
}), (y = U.value) != null && y.find((A) => A.id === e.id))
|
|
954
|
+
U.value = (R = U.value) == null ? void 0 : R.map((A) => (A.id === e.id && (A = e), A));
|
|
955
|
+
else {
|
|
956
|
+
let A = p(U.value);
|
|
957
|
+
A.push(e), U.value = A;
|
|
958
|
+
}
|
|
959
|
+
$.value = !1, H.value = "";
|
|
960
|
+
let r = p(v.originalItemContents);
|
|
961
|
+
(J = p(v.originalItemContents)) != null && J.find((A) => (A == null ? void 0 : A.key) === "rowButton") ? r = (re = p(v.originalItemContents)) == null ? void 0 : re.map((A) => ((A == null ? void 0 : A.key) === "rowButton" && (A.contents = U.value), A)) : r.push({
|
|
962
|
+
key: "rowButton",
|
|
963
|
+
contents: U.value
|
|
964
|
+
}), o("change", r);
|
|
965
|
+
}, fe = () => {
|
|
966
|
+
$.value = !1, H.value = "", t.value = [], c.value = [];
|
|
967
|
+
}, he = (e) => {
|
|
968
|
+
I.value = !0;
|
|
969
|
+
let r = [];
|
|
970
|
+
ve == null || ve.forEach((h) => {
|
|
971
|
+
s.value++, r.push({
|
|
972
|
+
label: h == null ? void 0 : h.label,
|
|
973
|
+
name: h == null ? void 0 : h.label,
|
|
974
|
+
type: h.type,
|
|
975
|
+
value: "",
|
|
976
|
+
id: s.value,
|
|
977
|
+
contents: h == null ? void 0 : h.options
|
|
978
|
+
});
|
|
979
|
+
}), O.value = r, Q.value = e == null ? void 0 : e.id, ae.value = r;
|
|
980
|
+
}, Be = (e) => {
|
|
981
|
+
var r;
|
|
982
|
+
b.value = Cl(p(b.value), e == null ? void 0 : e.id), o("change", (r = p(v.originalItemContents)) == null ? void 0 : r.map((h) => {
|
|
983
|
+
var y;
|
|
984
|
+
return (h == null ? void 0 : h.key) === "header" && (h.contents = (y = b.value) != null && y.some((R) => R == null ? void 0 : R.children) ? [b.value] : b.value), h;
|
|
985
|
+
}));
|
|
986
|
+
}, Fe = (e) => {
|
|
987
|
+
var h, y, R;
|
|
988
|
+
e.type === "fix" ? e.id !== "" ? b.value = kl(b.value, e) : b.value = _l(b.value, e == null ? void 0 : e.contents) : b.value = wl(b.value, e), b.value = (h = b.value) != null && h.some((J) => J == null ? void 0 : J.children) ? [b.value] : b.value, H.value = "";
|
|
989
|
+
let r = p(v.originalItemContents);
|
|
990
|
+
(y = p(v.originalItemContents)) != null && y.find((J) => (J == null ? void 0 : J.key) === "header") ? r = (R = p(v.originalItemContents)) == null ? void 0 : R.map((J) => ((J == null ? void 0 : J.key) === "header" && (J.contents = b.value), J)) : r.push({
|
|
991
|
+
key: "header",
|
|
992
|
+
contents: b.value
|
|
993
|
+
}), o("change", r);
|
|
994
|
+
}, xe = (e) => {
|
|
995
|
+
var h;
|
|
996
|
+
I.value = !0;
|
|
997
|
+
let r = [];
|
|
998
|
+
ve == null || ve.forEach((y) => {
|
|
999
|
+
s.value++, r.push({
|
|
1000
|
+
label: y == null ? void 0 : y.label,
|
|
1001
|
+
name: y == null ? void 0 : y.label,
|
|
1002
|
+
type: y.type,
|
|
1003
|
+
value: e[y.key],
|
|
1004
|
+
id: s.value,
|
|
1005
|
+
contents: y == null ? void 0 : y.options
|
|
1006
|
+
});
|
|
1007
|
+
}), e != null && e.children && ((h = e == null ? void 0 : e.children) == null ? void 0 : h.length) > 0 && r.push({
|
|
1008
|
+
children: e == null ? void 0 : e.children,
|
|
1009
|
+
isFormColHidden: !0
|
|
1010
|
+
}), H.value = e == null ? void 0 : e.id, Q.value = "", O.value = r, ae.value = r;
|
|
1011
|
+
}, Ae = (e) => {
|
|
1012
|
+
let r = p(ae.value);
|
|
1013
|
+
r = r == null ? void 0 : r.map((h) => (h.children || (h.value = e == null ? void 0 : e[h.name]), h)), ae.value = r;
|
|
1014
|
+
}, we = () => {
|
|
1015
|
+
I.value = !1, H.value = "", Q.value = "", ae.value = [];
|
|
1016
|
+
}, De = () => {
|
|
1017
|
+
var h, y, R, J, re, A;
|
|
1018
|
+
O.value = ae.value;
|
|
1019
|
+
let e = {};
|
|
1020
|
+
if (H.value !== "" ? e.id = H.value : (s.value++, e.id = "id" + s.value), (h = O.value) == null || h.forEach((Y) => {
|
|
1021
|
+
const ne = ve == null ? void 0 : ve.find((Ie) => (Ie == null ? void 0 : Ie.label) === (Y == null ? void 0 : Y.label));
|
|
1022
|
+
ne ? e[ne.key] = Y.value : Y != null && Y.children && Y.children.length > 0 && (e.children = Y.children);
|
|
1023
|
+
}), (y = b.value) != null && y.find((Y) => Y.id === e.id))
|
|
1024
|
+
b.value = (R = b.value) == null ? void 0 : R.map((Y) => (Y.id === e.id && (Y = e), Y));
|
|
1025
|
+
else {
|
|
1026
|
+
let Y = p(b.value) ?? [];
|
|
1027
|
+
Q.value === "" ? Y.push(e) : Y = Y == null ? void 0 : Y.map((ne) => (ne.id === Q.value && (ne.children || (ne.children = []), ne.children.push(e)), ne)), b.value = Y;
|
|
1028
|
+
}
|
|
1029
|
+
b.value = (J = b.value) != null && J.some((Y) => Y == null ? void 0 : Y.children) ? [b.value] : b.value, I.value = !1, H.value = "", Q.value = "";
|
|
1030
|
+
let r = p(v.originalItemContents);
|
|
1031
|
+
(re = p(v.originalItemContents)) != null && re.find((Y) => (Y == null ? void 0 : Y.key) === "header") ? r = (A = p(v.originalItemContents)) == null ? void 0 : A.map((Y) => ((Y == null ? void 0 : Y.key) === "header" && (Y.contents = b.value), Y)) : r.push({
|
|
1032
|
+
key: "header",
|
|
1033
|
+
contents: b.value
|
|
1034
|
+
}), o("change", r);
|
|
1035
|
+
}, Ce = (e) => {
|
|
1036
|
+
Ke.confirm("是否确认要删除", "", {
|
|
1037
|
+
confirmButtonText: "确认",
|
|
1038
|
+
cancelButtonText: "取消",
|
|
1039
|
+
type: "warning"
|
|
1040
|
+
}).then(
|
|
1041
|
+
() => {
|
|
1042
|
+
var r, h;
|
|
1043
|
+
b.value = (r = p(b.value)) == null ? void 0 : r.filter((y) => (y == null ? void 0 : y.id) !== (e == null ? void 0 : e.id)), o("change", (h = p(v.originalItemContents)) == null ? void 0 : h.map((y) => {
|
|
1044
|
+
var R;
|
|
1045
|
+
return (y == null ? void 0 : y.key) === "header" && (y.contents = (R = b.value) != null && R.some((J) => J == null ? void 0 : J.children) ? [b.value] : b.value), y;
|
|
1046
|
+
})), je({
|
|
1047
|
+
type: "success",
|
|
1048
|
+
message: "删除成功"
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
).catch(() => {
|
|
1052
|
+
});
|
|
1053
|
+
};
|
|
1054
|
+
return Ee(
|
|
1055
|
+
() => v.originalItemContents,
|
|
1056
|
+
() => {
|
|
1057
|
+
var e, r, h, y, R, J, re, A, Y, ne, Ie, Re, te, ee, ge, ue, Se, il, ul;
|
|
1058
|
+
if (!(!v.originalItemContents || v.originalItemContents.length === 0))
|
|
1059
|
+
if (m.value = p(v.originalItemContents), b.value = (r = (e = m.value) == null ? void 0 : e.find((T) => (T == null ? void 0 : T.key) === "header")) == null ? void 0 : r.contents, U.value = (y = (h = m.value) == null ? void 0 : h.find((T) => (T == null ? void 0 : T.key) === "rowButton")) == null ? void 0 : y.contents, C.value = (J = (R = m.value) == null ? void 0 : R.find((T) => (T == null ? void 0 : T.key) === "extraButton")) == null ? void 0 : J.contents, E.value = (A = (re = m.value) == null ? void 0 : re.find((T) => (T == null ? void 0 : T.key) === "page")) != null && A.contents ? !!((ne = (Y = m.value) == null ? void 0 : Y.find((T) => (T == null ? void 0 : T.key) === "page")) != null && ne.contents) : !1, G.value = (Re = (Ie = m.value) == null ? void 0 : Ie.find((T) => (T == null ? void 0 : T.key) === "tableToForm")) == null ? void 0 : Re.contents, b.value = (te = b.value) == null ? void 0 : te.map((T, Ne) => (Array.isArray(T) ? T = Ql(T) : T = {
|
|
1060
|
+
label: (T == null ? void 0 : T.label) ?? "",
|
|
1061
|
+
prop: (T == null ? void 0 : T.label) === "操作" ? "operate" : T == null ? void 0 : T.prop,
|
|
1062
|
+
width: T != null && T.width ? parseInt(T.width) : "",
|
|
1063
|
+
fixed: (T == null ? void 0 : T.fixed) ?? void 0,
|
|
1064
|
+
sortable: (T == null ? void 0 : T.sortable) ?? !1,
|
|
1065
|
+
align: (T == null ? void 0 : T.align) ?? "center",
|
|
1066
|
+
showOverflowTooltip: (T == null ? void 0 : T.showOverflowTooltip) ?? !0,
|
|
1067
|
+
isNotDrag: (T == null ? void 0 : T.isNotDrag) ?? !1,
|
|
1068
|
+
isEditCol: (T == null ? void 0 : T.isEditCol) ?? !1,
|
|
1069
|
+
isOperate: (T == null ? void 0 : T.isOperate) ?? !1,
|
|
1070
|
+
id: (T == null ? void 0 : T.id) ?? Ne
|
|
1071
|
+
}, T)), b.value = (ee = b.value) != null && ee.every((T) => Array.isArray(T)) ? (ge = b.value) == null ? void 0 : ge[0] : b.value, U.value = (ue = U.value) == null ? void 0 : ue.map((T, Ne) => T = {
|
|
1072
|
+
label: (T == null ? void 0 : T.label) ?? "",
|
|
1073
|
+
type: (T == null ? void 0 : T.type) ?? "",
|
|
1074
|
+
textColor: (T == null ? void 0 : T.textColor) ?? "#000000",
|
|
1075
|
+
id: (T == null ? void 0 : T.id) ?? Ne
|
|
1076
|
+
}), C.value = (Se = C.value) == null ? void 0 : Se.map((T, Ne) => T = {
|
|
1077
|
+
label: (T == null ? void 0 : T.label) ?? "",
|
|
1078
|
+
type: (T == null ? void 0 : T.type) ?? "",
|
|
1079
|
+
background: (T == null ? void 0 : T.background) ?? "var(--ssComponent-primary-color)",
|
|
1080
|
+
id: (T == null ? void 0 : T.id) ?? Ne
|
|
1081
|
+
}), G.value)
|
|
1082
|
+
G.value = (ul = G.value) == null ? void 0 : ul.map((T) => {
|
|
1083
|
+
s.value++;
|
|
1084
|
+
let Ne = T;
|
|
1085
|
+
return Ne.id = s.value, Ne;
|
|
1086
|
+
});
|
|
1087
|
+
else {
|
|
1088
|
+
let T = [];
|
|
1089
|
+
const Ne = (il = Wl(p(b.value))) == null ? void 0 : il.filter((Ve) => (Ve == null ? void 0 : Ve.prop) !== "operate");
|
|
1090
|
+
Ne == null || Ne.forEach((Ve) => {
|
|
1091
|
+
s.value++, T.push({
|
|
1092
|
+
label: Ve == null ? void 0 : Ve.label,
|
|
1093
|
+
name: Ve == null ? void 0 : Ve.label,
|
|
1094
|
+
type: "Input",
|
|
1095
|
+
value: "",
|
|
1096
|
+
id: s.value,
|
|
1097
|
+
contents: Ve == null ? void 0 : Ve.options
|
|
1098
|
+
});
|
|
1099
|
+
}), G.value = T;
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
{ deep: !0, immediate: !0 }
|
|
1103
|
+
), (e, r) => {
|
|
1104
|
+
const h = ye("svg-icon"), y = ye("el-button");
|
|
1105
|
+
return S(), X("div", ya, [
|
|
1106
|
+
f("div", ba, [
|
|
1107
|
+
f("div", ga, [
|
|
1108
|
+
r[2] || (r[2] = f("div", null, se("表头"), -1)),
|
|
1109
|
+
B(y, {
|
|
1110
|
+
class: "icon-content",
|
|
1111
|
+
onClick: D,
|
|
1112
|
+
id: "themeButton"
|
|
1113
|
+
}, {
|
|
1114
|
+
icon: q(() => [
|
|
1115
|
+
B(h, {
|
|
1116
|
+
name: "Plus",
|
|
1117
|
+
class: "icon-size"
|
|
1118
|
+
})
|
|
1119
|
+
]),
|
|
1120
|
+
default: q(() => [
|
|
1121
|
+
r[1] || (r[1] = me(" 新增 "))
|
|
1122
|
+
]),
|
|
1123
|
+
_: 1,
|
|
1124
|
+
__: [1]
|
|
1125
|
+
})
|
|
1126
|
+
]),
|
|
1127
|
+
f("div", Ca, [
|
|
1128
|
+
(S(!0), X(be, null, _e(b.value, (R, J) => (S(), X("div", { key: J }, [
|
|
1129
|
+
f("div", _a, [
|
|
1130
|
+
f("div", ka, se(R == null ? void 0 : R.label), 1),
|
|
1131
|
+
f("div", wa, [
|
|
1132
|
+
B(h, {
|
|
1133
|
+
name: "ChildAdd",
|
|
1134
|
+
class: "svg-icon-content",
|
|
1135
|
+
style: { width: "24px", height: "24px" },
|
|
1136
|
+
onClick: (re) => he(R)
|
|
1137
|
+
}, null, 8, ["onClick"]),
|
|
1138
|
+
B(h, {
|
|
1139
|
+
name: "ChildFix",
|
|
1140
|
+
class: "svg-icon-content",
|
|
1141
|
+
style: { width: "24px", height: "24px" },
|
|
1142
|
+
onClick: (re) => xe(R)
|
|
1143
|
+
}, null, 8, ["onClick"]),
|
|
1144
|
+
B(h, {
|
|
1145
|
+
name: "ChildDelete",
|
|
1146
|
+
class: "svg-icon-content",
|
|
1147
|
+
style: { width: "24px", height: "24px" },
|
|
1148
|
+
onClick: (re) => Ce(R)
|
|
1149
|
+
}, null, 8, ["onClick"])
|
|
1150
|
+
])
|
|
1151
|
+
]),
|
|
1152
|
+
R != null && R.children && R.children.length > 0 ? (S(), X("div", xa, [
|
|
1153
|
+
B(xl, {
|
|
1154
|
+
tableChildContents: R == null ? void 0 : R.children,
|
|
1155
|
+
onDeleteChange: Be,
|
|
1156
|
+
onFixChange: Fe
|
|
1157
|
+
}, null, 8, ["tableChildContents"])
|
|
1158
|
+
])) : Pe("", !0)
|
|
1159
|
+
]))), 128))
|
|
1160
|
+
]),
|
|
1161
|
+
f("div", Da, [
|
|
1162
|
+
r[4] || (r[4] = f("div", null, se("行内按钮"), -1)),
|
|
1163
|
+
B(y, {
|
|
1164
|
+
class: "icon-content",
|
|
1165
|
+
id: "themeButton",
|
|
1166
|
+
onClick: K
|
|
1167
|
+
}, {
|
|
1168
|
+
icon: q(() => [
|
|
1169
|
+
B(h, {
|
|
1170
|
+
name: "Plus",
|
|
1171
|
+
class: "icon-size"
|
|
1172
|
+
})
|
|
1173
|
+
]),
|
|
1174
|
+
default: q(() => [
|
|
1175
|
+
r[3] || (r[3] = me(" 新增 "))
|
|
1176
|
+
]),
|
|
1177
|
+
_: 1,
|
|
1178
|
+
__: [3]
|
|
1179
|
+
})
|
|
1180
|
+
]),
|
|
1181
|
+
f("div", Ia, [
|
|
1182
|
+
(S(!0), X(be, null, _e(U.value, (R, J) => (S(), X("div", { key: J }, [
|
|
1183
|
+
f("div", Ta, [
|
|
1184
|
+
f("div", $a, se(R == null ? void 0 : R.label), 1),
|
|
1185
|
+
f("div", Ea, [
|
|
1186
|
+
B(h, {
|
|
1187
|
+
name: "ChildFix",
|
|
1188
|
+
style: { width: "24px", height: "24px" },
|
|
1189
|
+
class: "svg-icon-content",
|
|
1190
|
+
onClick: (re) => oe(R)
|
|
1191
|
+
}, null, 8, ["onClick"]),
|
|
1192
|
+
B(h, {
|
|
1193
|
+
name: "ChildDelete",
|
|
1194
|
+
class: "svg-icon-content",
|
|
1195
|
+
style: { width: "24px", height: "24px" },
|
|
1196
|
+
onClick: (re) => z(R)
|
|
1197
|
+
}, null, 8, ["onClick"])
|
|
1198
|
+
])
|
|
1199
|
+
])
|
|
1200
|
+
]))), 128))
|
|
1201
|
+
]),
|
|
1202
|
+
f("div", Ba, [
|
|
1203
|
+
r[6] || (r[6] = f("div", null, se("表外按钮"), -1)),
|
|
1204
|
+
B(y, {
|
|
1205
|
+
class: "icon-content",
|
|
1206
|
+
id: "themeButton",
|
|
1207
|
+
onClick: le
|
|
1208
|
+
}, {
|
|
1209
|
+
icon: q(() => [
|
|
1210
|
+
B(h, {
|
|
1211
|
+
name: "Plus",
|
|
1212
|
+
class: "icon-size"
|
|
1213
|
+
})
|
|
1214
|
+
]),
|
|
1215
|
+
default: q(() => [
|
|
1216
|
+
r[5] || (r[5] = me(" 新增 "))
|
|
1217
|
+
]),
|
|
1218
|
+
_: 1,
|
|
1219
|
+
__: [5]
|
|
1220
|
+
})
|
|
1221
|
+
]),
|
|
1222
|
+
f("div", Fa, [
|
|
1223
|
+
(S(!0), X(be, null, _e(C.value, (R, J) => (S(), X("div", { key: J }, [
|
|
1224
|
+
f("div", Aa, [
|
|
1225
|
+
f("div", Sa, se(R == null ? void 0 : R.label), 1),
|
|
1226
|
+
f("div", La, [
|
|
1227
|
+
B(h, {
|
|
1228
|
+
name: "ChildFix",
|
|
1229
|
+
style: { width: "24px", height: "24px" },
|
|
1230
|
+
class: "svg-icon-content",
|
|
1231
|
+
onClick: (re) => ce(R)
|
|
1232
|
+
}, null, 8, ["onClick"]),
|
|
1233
|
+
B(h, {
|
|
1234
|
+
name: "ChildDelete",
|
|
1235
|
+
class: "svg-icon-content",
|
|
1236
|
+
style: { width: "24px", height: "24px" },
|
|
1237
|
+
onClick: (re) => g(R)
|
|
1238
|
+
}, null, 8, ["onClick"])
|
|
1239
|
+
])
|
|
1240
|
+
])
|
|
1241
|
+
]))), 128))
|
|
1242
|
+
]),
|
|
1243
|
+
f("div", Oa, [
|
|
1244
|
+
r[8] || (r[8] = f("div", null, se("表格弹框字段设置"), -1)),
|
|
1245
|
+
B(y, {
|
|
1246
|
+
class: "icon-content",
|
|
1247
|
+
id: "themeButton",
|
|
1248
|
+
onClick: de
|
|
1249
|
+
}, {
|
|
1250
|
+
icon: q(() => [
|
|
1251
|
+
B(h, {
|
|
1252
|
+
name: "Plus",
|
|
1253
|
+
class: "icon-size"
|
|
1254
|
+
})
|
|
1255
|
+
]),
|
|
1256
|
+
default: q(() => [
|
|
1257
|
+
r[7] || (r[7] = me(" 新增 "))
|
|
1258
|
+
]),
|
|
1259
|
+
_: 1,
|
|
1260
|
+
__: [7]
|
|
1261
|
+
})
|
|
1262
|
+
]),
|
|
1263
|
+
f("div", Ra, [
|
|
1264
|
+
(S(!0), X(be, null, _e(G.value, (R, J) => (S(), X("div", { key: J }, [
|
|
1265
|
+
f("div", Va, [
|
|
1266
|
+
f("div", Na, se(R == null ? void 0 : R.label), 1),
|
|
1267
|
+
f("div", Pa, [
|
|
1268
|
+
B(h, {
|
|
1269
|
+
name: "ChildFix",
|
|
1270
|
+
style: { width: "24px", height: "24px" },
|
|
1271
|
+
class: "svg-icon-content",
|
|
1272
|
+
onClick: (re) => M(R)
|
|
1273
|
+
}, null, 8, ["onClick"]),
|
|
1274
|
+
B(h, {
|
|
1275
|
+
name: "ChildDelete",
|
|
1276
|
+
class: "svg-icon-content",
|
|
1277
|
+
style: { width: "24px", height: "24px" },
|
|
1278
|
+
onClick: (re) => w(R)
|
|
1279
|
+
}, null, 8, ["onClick"])
|
|
1280
|
+
])
|
|
1281
|
+
])
|
|
1282
|
+
]))), 128))
|
|
1283
|
+
]),
|
|
1284
|
+
r[10] || (r[10] = f("div", { class: "operate-title" }, [
|
|
1285
|
+
f("div", null, se("分页"))
|
|
1286
|
+
], -1)),
|
|
1287
|
+
f("div", ja, [
|
|
1288
|
+
f("div", Ua, [
|
|
1289
|
+
r[9] || (r[9] = f("div", { class: "operate-center-content" }, se("是否分页"), -1)),
|
|
1290
|
+
B(yl, {
|
|
1291
|
+
modelValue: E.value,
|
|
1292
|
+
"onUpdate:modelValue": r[0] || (r[0] = (R) => E.value = R)
|
|
1293
|
+
}, null, 8, ["modelValue"])
|
|
1294
|
+
])
|
|
1295
|
+
])
|
|
1296
|
+
]),
|
|
1297
|
+
B(Oe, {
|
|
1298
|
+
visible: I.value,
|
|
1299
|
+
onBeforeDestroy: we,
|
|
1300
|
+
width: 840
|
|
1301
|
+
}, {
|
|
1302
|
+
default: q(() => [
|
|
1303
|
+
f("div", Wa, [
|
|
1304
|
+
(S(), ke(Le, {
|
|
1305
|
+
rowContents: O.value,
|
|
1306
|
+
key: O.value,
|
|
1307
|
+
isEnableWrap: !0,
|
|
1308
|
+
onChange: Ae
|
|
1309
|
+
}, null, 8, ["rowContents"]))
|
|
1310
|
+
])
|
|
1311
|
+
]),
|
|
1312
|
+
footer: q(() => [
|
|
1313
|
+
f("div", za, [
|
|
1314
|
+
B(y, {
|
|
1315
|
+
onClick: we,
|
|
1316
|
+
class: "cancel-button button",
|
|
1317
|
+
id: "themeBorderButton"
|
|
1318
|
+
}, {
|
|
1319
|
+
default: q(() => r[11] || (r[11] = [
|
|
1320
|
+
me(se("取消"))
|
|
1321
|
+
])),
|
|
1322
|
+
_: 1,
|
|
1323
|
+
__: [11]
|
|
1324
|
+
}),
|
|
1325
|
+
B(y, {
|
|
1326
|
+
class: "ok-button button",
|
|
1327
|
+
onClick: De,
|
|
1328
|
+
id: "themeButton"
|
|
1329
|
+
}, {
|
|
1330
|
+
default: q(() => r[12] || (r[12] = [
|
|
1331
|
+
me(se("确认"))
|
|
1332
|
+
])),
|
|
1333
|
+
_: 1,
|
|
1334
|
+
__: [12]
|
|
1335
|
+
})
|
|
1336
|
+
])
|
|
1337
|
+
]),
|
|
1338
|
+
_: 1
|
|
1339
|
+
}, 8, ["visible"]),
|
|
1340
|
+
B(Oe, {
|
|
1341
|
+
visible: $.value,
|
|
1342
|
+
onBeforeDestroy: fe,
|
|
1343
|
+
width: 840
|
|
1344
|
+
}, {
|
|
1345
|
+
default: q(() => [
|
|
1346
|
+
f("div", Ma, [
|
|
1347
|
+
(S(), ke(Le, {
|
|
1348
|
+
rowContents: c.value,
|
|
1349
|
+
key: c.value,
|
|
1350
|
+
isEnableWrap: !0,
|
|
1351
|
+
onChange: W
|
|
1352
|
+
}, null, 8, ["rowContents"]))
|
|
1353
|
+
])
|
|
1354
|
+
]),
|
|
1355
|
+
footer: q(() => [
|
|
1356
|
+
f("div", Ka, [
|
|
1357
|
+
B(y, {
|
|
1358
|
+
onClick: fe,
|
|
1359
|
+
class: "cancel-button button",
|
|
1360
|
+
id: "themeBorderButton"
|
|
1361
|
+
}, {
|
|
1362
|
+
default: q(() => r[13] || (r[13] = [
|
|
1363
|
+
me(se("取消"))
|
|
1364
|
+
])),
|
|
1365
|
+
_: 1,
|
|
1366
|
+
__: [13]
|
|
1367
|
+
}),
|
|
1368
|
+
B(y, {
|
|
1369
|
+
class: "ok-button button",
|
|
1370
|
+
onClick: Z,
|
|
1371
|
+
id: "themeButton"
|
|
1372
|
+
}, {
|
|
1373
|
+
default: q(() => r[14] || (r[14] = [
|
|
1374
|
+
me(se("确认"))
|
|
1375
|
+
])),
|
|
1376
|
+
_: 1,
|
|
1377
|
+
__: [14]
|
|
1378
|
+
})
|
|
1379
|
+
])
|
|
1380
|
+
]),
|
|
1381
|
+
_: 1
|
|
1382
|
+
}, 8, ["visible"]),
|
|
1383
|
+
B(Oe, {
|
|
1384
|
+
visible: N.value,
|
|
1385
|
+
onBeforeDestroy: x,
|
|
1386
|
+
width: 840
|
|
1387
|
+
}, {
|
|
1388
|
+
default: q(() => [
|
|
1389
|
+
f("div", Ja, [
|
|
1390
|
+
(S(), ke(Le, {
|
|
1391
|
+
rowContents: n.value,
|
|
1392
|
+
key: n.value,
|
|
1393
|
+
isEnableWrap: !0,
|
|
1394
|
+
onChange: l
|
|
1395
|
+
}, null, 8, ["rowContents"]))
|
|
1396
|
+
])
|
|
1397
|
+
]),
|
|
1398
|
+
footer: q(() => [
|
|
1399
|
+
f("div", qa, [
|
|
1400
|
+
B(y, {
|
|
1401
|
+
onClick: x,
|
|
1402
|
+
class: "cancel-button button",
|
|
1403
|
+
id: "themeBorderButton"
|
|
1404
|
+
}, {
|
|
1405
|
+
default: q(() => r[15] || (r[15] = [
|
|
1406
|
+
me(se("取消"))
|
|
1407
|
+
])),
|
|
1408
|
+
_: 1,
|
|
1409
|
+
__: [15]
|
|
1410
|
+
}),
|
|
1411
|
+
B(y, {
|
|
1412
|
+
class: "ok-button button",
|
|
1413
|
+
onClick: V,
|
|
1414
|
+
id: "themeButton"
|
|
1415
|
+
}, {
|
|
1416
|
+
default: q(() => r[16] || (r[16] = [
|
|
1417
|
+
me(se("确认"))
|
|
1418
|
+
])),
|
|
1419
|
+
_: 1,
|
|
1420
|
+
__: [16]
|
|
1421
|
+
})
|
|
1422
|
+
])
|
|
1423
|
+
]),
|
|
1424
|
+
_: 1
|
|
1425
|
+
}, 8, ["visible"]),
|
|
1426
|
+
B(Oe, {
|
|
1427
|
+
visible: j.value,
|
|
1428
|
+
onBeforeDestroy: P,
|
|
1429
|
+
width: 840
|
|
1430
|
+
}, {
|
|
1431
|
+
default: q(() => [
|
|
1432
|
+
f("div", Ga, [
|
|
1433
|
+
(S(), ke(Le, {
|
|
1434
|
+
rowContents: i.value,
|
|
1435
|
+
key: i.value,
|
|
1436
|
+
isEnableWrap: !0,
|
|
1437
|
+
onChange: a,
|
|
1438
|
+
onChangeVisible: pe,
|
|
1439
|
+
onBlurChange: _
|
|
1440
|
+
}, null, 8, ["rowContents"]))
|
|
1441
|
+
])
|
|
1442
|
+
]),
|
|
1443
|
+
footer: q(() => [
|
|
1444
|
+
f("div", Ha, [
|
|
1445
|
+
B(y, {
|
|
1446
|
+
onClick: P,
|
|
1447
|
+
class: "cancel-button button",
|
|
1448
|
+
id: "themeBorderButton"
|
|
1449
|
+
}, {
|
|
1450
|
+
default: q(() => r[17] || (r[17] = [
|
|
1451
|
+
me(se("取消"))
|
|
1452
|
+
])),
|
|
1453
|
+
_: 1,
|
|
1454
|
+
__: [17]
|
|
1455
|
+
}),
|
|
1456
|
+
B(y, {
|
|
1457
|
+
class: "ok-button button",
|
|
1458
|
+
onClick: ie,
|
|
1459
|
+
id: "themeButton"
|
|
1460
|
+
}, {
|
|
1461
|
+
default: q(() => r[18] || (r[18] = [
|
|
1462
|
+
me(se("确认"))
|
|
1463
|
+
])),
|
|
1464
|
+
_: 1,
|
|
1465
|
+
__: [18]
|
|
1466
|
+
})
|
|
1467
|
+
])
|
|
1468
|
+
]),
|
|
1469
|
+
_: 1
|
|
1470
|
+
}, 8, ["visible"])
|
|
1471
|
+
]);
|
|
1472
|
+
};
|
|
1473
|
+
}
|
|
1474
|
+
}, Xa = /* @__PURE__ */ Te(Qa, [["__scopeId", "data-v-cd274ba4"]]), Ya = { class: "form-operate-content" }, Za = { class: "form-operate-item" }, en = { class: "operate-title" }, ln = { class: "operate-content" }, an = { class: "fix-content" }, nn = { class: "fix-button" }, on = { class: "operate-title" }, sn = { class: "operate-content" }, un = { class: "fix-content" }, rn = { class: "fix-button" }, tn = { style: { display: "flex", "justify-content": "space-between" } }, cn = { class: "form-content" }, dn = { class: "dialog-footer" }, pn = { class: "form-content" }, vn = {
|
|
1475
|
+
__name: "operate",
|
|
1476
|
+
props: {
|
|
1477
|
+
itemContents: {
|
|
1478
|
+
type: Array,
|
|
1479
|
+
default: () => []
|
|
1480
|
+
},
|
|
1481
|
+
originalItemContents: {
|
|
1482
|
+
type: Array,
|
|
1483
|
+
default: () => []
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
emits: ["change"],
|
|
1487
|
+
setup(k, { emit: L }) {
|
|
1488
|
+
const v = k, o = L, m = F(!1), I = F([]), j = F([]), b = F(!1), $ = F([]), O = F([]), E = F(""), ae = F(!1), H = F(0), Q = F([]), U = F([]), C = async (a) => {
|
|
1489
|
+
var w, P, ie, ce, g, V;
|
|
1490
|
+
m.value = !0;
|
|
1491
|
+
let _ = [];
|
|
1492
|
+
const M = await ((ie = (P = (w = $e) == null ? void 0 : w.find((l) => (l == null ? void 0 : l.key) === ((a == null ? void 0 : a.type) === "" ? "Input" : a == null ? void 0 : a.type))) == null ? void 0 : P.value) == null ? void 0 : ie.value) ?? ((g = (ce = $e) == null ? void 0 : ce.find((l) => (l == null ? void 0 : l.key) === ((a == null ? void 0 : a.type) === "" ? "Input" : a == null ? void 0 : a.type))) == null ? void 0 : g.value);
|
|
1493
|
+
if (M == null || M.forEach((l) => {
|
|
1494
|
+
H.value++, _.push({
|
|
1495
|
+
label: l == null ? void 0 : l.label,
|
|
1496
|
+
name: l == null ? void 0 : l.label,
|
|
1497
|
+
type: l.type,
|
|
1498
|
+
value: (l == null ? void 0 : l.label) === "类型" && a[l.key] === "" ? "Input" : a[l.key],
|
|
1499
|
+
id: H.value,
|
|
1500
|
+
contents: l == null ? void 0 : l.options
|
|
1501
|
+
});
|
|
1502
|
+
}), a != null && a.menuSelect && ((V = a == null ? void 0 : a.menuSelect) == null ? void 0 : V.length) > 0) {
|
|
1503
|
+
const l = await He(a == null ? void 0 : a.menuSelect);
|
|
1504
|
+
_ = _ == null ? void 0 : _.map((x) => ((x == null ? void 0 : x.name) === "组信息选项" && (x.contents = l), x));
|
|
1505
|
+
}
|
|
1506
|
+
E.value = a == null ? void 0 : a.id, I.value = await We(qe(_)), j.value = await We(qe(_));
|
|
1507
|
+
}, c = (a) => {
|
|
1508
|
+
var M;
|
|
1509
|
+
b.value = !0;
|
|
1510
|
+
let _ = [];
|
|
1511
|
+
(M = al) == null || M.forEach((w) => {
|
|
1512
|
+
H.value++, _.push({
|
|
1513
|
+
label: w == null ? void 0 : w.label,
|
|
1514
|
+
name: w == null ? void 0 : w.label,
|
|
1515
|
+
type: w.type,
|
|
1516
|
+
value: (w == null ? void 0 : w.label) === "类型" && a[w.key] === "" ? "normal" : a[w.key],
|
|
1517
|
+
id: H.value,
|
|
1518
|
+
contents: w == null ? void 0 : w.options
|
|
1519
|
+
});
|
|
1520
|
+
}), Q.value = _, U.value = _, E.value = a == null ? void 0 : a.id;
|
|
1521
|
+
};
|
|
1522
|
+
Ee(
|
|
1523
|
+
() => ae.value,
|
|
1524
|
+
() => {
|
|
1525
|
+
var _, M;
|
|
1526
|
+
let a = p(v.originalItemContents);
|
|
1527
|
+
(_ = p(v.originalItemContents)) != null && _.find((w) => (w == null ? void 0 : w.key) === "enableWrap") ? a = (M = p(v.originalItemContents)) == null ? void 0 : M.map((w) => ((w == null ? void 0 : w.key) === "enableWrap" && (w.contents = !ae.value), w)) : a.push({
|
|
1528
|
+
key: "enableWrap",
|
|
1529
|
+
contents: !ae.value
|
|
1530
|
+
}), o("change", a);
|
|
1531
|
+
},
|
|
1532
|
+
{ deep: !0 }
|
|
1533
|
+
);
|
|
1534
|
+
const t = () => {
|
|
1535
|
+
var M, w, P, ie, ce;
|
|
1536
|
+
Q.value = U.value;
|
|
1537
|
+
let a = {};
|
|
1538
|
+
if (E.value !== "" ? a.id = E.value : (H.value++, a.id = "id" + H.value), (M = Q.value) == null || M.forEach((g) => {
|
|
1539
|
+
var l;
|
|
1540
|
+
const V = (l = al) == null ? void 0 : l.find((x) => (x == null ? void 0 : x.label) === (g == null ? void 0 : g.label));
|
|
1541
|
+
V && (a[V.key] = g.value);
|
|
1542
|
+
}), (w = $.value) != null && w.find((g) => g.id === a.id))
|
|
1543
|
+
$.value = (P = $.value) == null ? void 0 : P.map((g) => (g.id === a.id && (g = a), g));
|
|
1544
|
+
else {
|
|
1545
|
+
let g = p($.value);
|
|
1546
|
+
$.value || ($.value = []), g.push(a), $.value = g;
|
|
1547
|
+
}
|
|
1548
|
+
b.value = !1, E.value = "";
|
|
1549
|
+
let _ = p(v.originalItemContents);
|
|
1550
|
+
(ie = p(v.originalItemContents)) != null && ie.find((g) => (g == null ? void 0 : g.key) === "formButton") ? _ = (ce = p(v.originalItemContents)) == null ? void 0 : ce.map((g) => ((g == null ? void 0 : g.key) === "formButton" && (g.contents = $.value), g)) : _.push({
|
|
1551
|
+
key: "formButton",
|
|
1552
|
+
contents: $.value
|
|
1553
|
+
}), o("change", _);
|
|
1554
|
+
}, N = (a) => {
|
|
1555
|
+
Ke.confirm("是否确认要删除", "", {
|
|
1556
|
+
confirmButtonText: "确认",
|
|
1557
|
+
cancelButtonText: "取消",
|
|
1558
|
+
type: "warning"
|
|
1559
|
+
}).then(
|
|
1560
|
+
() => {
|
|
1561
|
+
var _, M;
|
|
1562
|
+
O.value = (_ = p(O.value)) == null ? void 0 : _.filter((w) => (w == null ? void 0 : w.id) !== (a == null ? void 0 : a.id)), o("change", (M = p(v.originalItemContents)) == null ? void 0 : M.map((w) => ((w == null ? void 0 : w.key) === "formContent" && (w.contents = O.value), w))), je({
|
|
1563
|
+
type: "success",
|
|
1564
|
+
message: "删除成功"
|
|
1565
|
+
});
|
|
1566
|
+
}
|
|
1567
|
+
).catch(() => {
|
|
1568
|
+
});
|
|
1569
|
+
}, n = (a) => {
|
|
1570
|
+
Ke.confirm("是否确认要删除", "", {
|
|
1571
|
+
confirmButtonText: "确认",
|
|
1572
|
+
cancelButtonText: "取消",
|
|
1573
|
+
type: "warning"
|
|
1574
|
+
}).then(
|
|
1575
|
+
() => {
|
|
1576
|
+
var _, M;
|
|
1577
|
+
$.value = (_ = p($.value)) == null ? void 0 : _.filter((w) => (w == null ? void 0 : w.id) !== (a == null ? void 0 : a.id)), o("change", (M = p(v.originalItemContents)) == null ? void 0 : M.map((w) => ((w == null ? void 0 : w.key) === "formButton" && (w.contents = $.value), w))), je({
|
|
1578
|
+
type: "success",
|
|
1579
|
+
message: "删除成功"
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
).catch(() => {
|
|
1583
|
+
});
|
|
1584
|
+
}, u = () => {
|
|
1585
|
+
var _;
|
|
1586
|
+
b.value = !0;
|
|
1587
|
+
let a = [];
|
|
1588
|
+
(_ = al) == null || _.forEach((M) => {
|
|
1589
|
+
H.value++, a.push({
|
|
1590
|
+
label: M == null ? void 0 : M.label,
|
|
1591
|
+
name: M == null ? void 0 : M.label,
|
|
1592
|
+
type: M.type,
|
|
1593
|
+
value: (M == null ? void 0 : M.label) === "类型" ? "normal" : "",
|
|
1594
|
+
id: H.value,
|
|
1595
|
+
contents: M == null ? void 0 : M.options
|
|
1596
|
+
});
|
|
1597
|
+
}), Q.value = a, U.value = a;
|
|
1598
|
+
}, s = () => {
|
|
1599
|
+
var _, M, w;
|
|
1600
|
+
m.value = !0;
|
|
1601
|
+
let a = [];
|
|
1602
|
+
(w = (M = (_ = $e) == null ? void 0 : _.find((P) => (P == null ? void 0 : P.key) === "Input")) == null ? void 0 : M.value) == null || w.forEach((P) => {
|
|
1603
|
+
H.value++, a.push({
|
|
1604
|
+
label: P == null ? void 0 : P.label,
|
|
1605
|
+
name: P == null ? void 0 : P.label,
|
|
1606
|
+
type: P.type,
|
|
1607
|
+
value: (P == null ? void 0 : P.label) === "类型" ? "Input" : "",
|
|
1608
|
+
id: H.value,
|
|
1609
|
+
contents: P == null ? void 0 : P.options
|
|
1610
|
+
});
|
|
1611
|
+
}), I.value = a, j.value = a;
|
|
1612
|
+
}, i = (a) => {
|
|
1613
|
+
let _ = p(U.value);
|
|
1614
|
+
_ = _ == null ? void 0 : _.map((M) => (M.value = a == null ? void 0 : a[M.name], M)), U.value = _;
|
|
1615
|
+
}, d = async (a) => {
|
|
1616
|
+
var _, M, w, P, ie, ce, g, V, l, x, oe, z;
|
|
1617
|
+
if ((a == null ? void 0 : a.类型) !== ((M = (_ = j.value) == null ? void 0 : _.find((D) => (D == null ? void 0 : D.label) === "类型")) == null ? void 0 : M.value)) {
|
|
1618
|
+
let D = [];
|
|
1619
|
+
const K = await ((ie = (P = (w = $e) == null ? void 0 : w.find((W) => (W == null ? void 0 : W.key) === ((a == null ? void 0 : a.类型) === "" ? "Input" : a == null ? void 0 : a.类型))) == null ? void 0 : P.value) == null ? void 0 : ie.value) ? await ((x = (l = (V = $e) == null ? void 0 : V.find((W) => (W == null ? void 0 : W.key) === ((a == null ? void 0 : a.类型) === "" ? "Input" : a == null ? void 0 : a.类型))) == null ? void 0 : l.value) == null ? void 0 : x.value) : (g = (ce = $e) == null ? void 0 : ce.find((W) => (W == null ? void 0 : W.key) === ((a == null ? void 0 : a.类型) === "" ? "Input" : a == null ? void 0 : a.类型))) == null ? void 0 : g.value;
|
|
1620
|
+
if (K == null || K.forEach((W) => {
|
|
1621
|
+
H.value++, D.push({
|
|
1622
|
+
label: W == null ? void 0 : W.label,
|
|
1623
|
+
name: W == null ? void 0 : W.label,
|
|
1624
|
+
type: W.type,
|
|
1625
|
+
value: (a == null ? void 0 : a[W.label]) ?? "",
|
|
1626
|
+
id: H.value,
|
|
1627
|
+
contents: W == null ? void 0 : W.options
|
|
1628
|
+
});
|
|
1629
|
+
}), a != null && a.菜单选项 && ((oe = a == null ? void 0 : a.菜单选项) == null ? void 0 : oe.length) > 0) {
|
|
1630
|
+
const W = await He(a == null ? void 0 : a.菜单选项);
|
|
1631
|
+
D = D == null ? void 0 : D.map((Z) => ((Z == null ? void 0 : Z.name) === "组信息选项" && (Z.contents = W), Z));
|
|
1632
|
+
}
|
|
1633
|
+
j.value = await We(p(D)), I.value = await We(p(D));
|
|
1634
|
+
} else {
|
|
1635
|
+
let D = p(j.value);
|
|
1636
|
+
if (D = D == null ? void 0 : D.map((K) => (K.value = a == null ? void 0 : a[K.name], K)), a != null && a.菜单选项 && ((z = a == null ? void 0 : a.菜单选项) == null ? void 0 : z.length) > 0) {
|
|
1637
|
+
const K = await He(a == null ? void 0 : a.菜单选项);
|
|
1638
|
+
D = D == null ? void 0 : D.map((W) => ((W == null ? void 0 : W.name) === "组信息选项" && (W.contents = K), W));
|
|
1639
|
+
}
|
|
1640
|
+
D = qe(D), j.value = await We(p(D));
|
|
1641
|
+
}
|
|
1642
|
+
}, G = (a) => {
|
|
1643
|
+
a || (I.value = j.value);
|
|
1644
|
+
}, le = async (a) => {
|
|
1645
|
+
await d(a), I.value = j.value;
|
|
1646
|
+
}, de = async () => {
|
|
1647
|
+
var w, P, ie, ce, g, V, l, x, oe, z;
|
|
1648
|
+
I.value = j.value;
|
|
1649
|
+
let a = {};
|
|
1650
|
+
E.value !== "" ? a.id = E.value : (H.value++, a.id = "id" + H.value);
|
|
1651
|
+
let _ = await ((ie = (P = (w = $e) == null ? void 0 : w.find((D) => {
|
|
1652
|
+
var K, W;
|
|
1653
|
+
return (D == null ? void 0 : D.key) === (((W = (K = I.value) == null ? void 0 : K.find((Z) => (Z == null ? void 0 : Z.label) === "类型")) == null ? void 0 : W.value) ?? "label");
|
|
1654
|
+
})) == null ? void 0 : P.value) == null ? void 0 : ie.value) ?? ((g = (ce = $e) == null ? void 0 : ce.find((D) => {
|
|
1655
|
+
var K, W;
|
|
1656
|
+
return (D == null ? void 0 : D.key) === (((W = (K = I.value) == null ? void 0 : K.find((Z) => (Z == null ? void 0 : Z.label) === "类型")) == null ? void 0 : W.value) ?? "label");
|
|
1657
|
+
})) == null ? void 0 : g.value);
|
|
1658
|
+
if ((V = I.value) == null || V.forEach((D) => {
|
|
1659
|
+
const K = _ == null ? void 0 : _.find((W) => (W == null ? void 0 : W.label) === (D == null ? void 0 : D.label));
|
|
1660
|
+
K && (a[K.key] = D.value);
|
|
1661
|
+
}), a.width = 1, a.key = a == null ? void 0 : a.label, (l = O.value) != null && l.find((D) => D.id === a.id))
|
|
1662
|
+
O.value = (x = O.value) == null ? void 0 : x.map((D) => (D.id === a.id && (D = a), D));
|
|
1663
|
+
else {
|
|
1664
|
+
let D = p(O.value);
|
|
1665
|
+
D.push(a), O.value = D;
|
|
1666
|
+
}
|
|
1667
|
+
O.value = O.value.map(({ id: D, ...K }) => K), m.value = !1, E.value = "";
|
|
1668
|
+
let M = p(v.originalItemContents);
|
|
1669
|
+
(oe = p(v.originalItemContents)) != null && oe.find((D) => (D == null ? void 0 : D.key) === "formContent") ? M = (z = p(v.originalItemContents)) == null ? void 0 : z.map((D) => ((D == null ? void 0 : D.key) === "formContent" && (D.contents = O.value), D)) : M.push({
|
|
1670
|
+
key: "formContent",
|
|
1671
|
+
contents: O.value
|
|
1672
|
+
}), o("change", M);
|
|
1673
|
+
}, pe = () => {
|
|
1674
|
+
m.value = !1, b.value = !1, E.value = "", j.value = [], U.value = [];
|
|
1675
|
+
};
|
|
1676
|
+
return Ee(
|
|
1677
|
+
() => v.originalItemContents,
|
|
1678
|
+
() => {
|
|
1679
|
+
var _, M, w, P, ie, ce;
|
|
1680
|
+
if (!v.originalItemContents || v.originalItemContents.length === 0) return;
|
|
1681
|
+
const a = p(v.originalItemContents);
|
|
1682
|
+
O.value = ((_ = a == null ? void 0 : a.find((g) => (g == null ? void 0 : g.key) === "formContent")) == null ? void 0 : _.contents) ?? [], $.value = ((M = a == null ? void 0 : a.find((g) => (g == null ? void 0 : g.key) === "formButton")) == null ? void 0 : M.contents) ?? [], ae.value = (w = a == null ? void 0 : a.find((g) => (g == null ? void 0 : g.key) === "enableWrap")) != null && w.contents ? !((P = a == null ? void 0 : a.find((g) => (g == null ? void 0 : g.key) === "enableWrap")) != null && P.contents) : !0, O.value = (ie = p(O.value)) == null ? void 0 : ie.map((g, V) => {
|
|
1683
|
+
var x;
|
|
1684
|
+
let l = g;
|
|
1685
|
+
return l.id = (g == null ? void 0 : g.id) ?? V, g != null && g.label || (g.label = (g == null ? void 0 : g.key) ?? (g == null ? void 0 : g.label) ?? ""), g != null && g.type || (g.type = (g == null ? void 0 : g.type) ?? ""), g.contents = ((x = g == null ? void 0 : g.options) == null ? void 0 : x.length) === 0 ? (g == null ? void 0 : g.contents) ?? "" : g == null ? void 0 : g.options, l;
|
|
1686
|
+
}), O.value = qe(O.value), $.value = (ce = $.value) == null ? void 0 : ce.map((g, V) => g = {
|
|
1687
|
+
label: (g == null ? void 0 : g.label) ?? "",
|
|
1688
|
+
type: (g == null ? void 0 : g.type) ?? "",
|
|
1689
|
+
background: (g == null ? void 0 : g.background) ?? "var(--ssComponent-primary-color)",
|
|
1690
|
+
id: V
|
|
1691
|
+
});
|
|
1692
|
+
},
|
|
1693
|
+
{ deep: !0, immediate: !0 }
|
|
1694
|
+
), (a, _) => {
|
|
1695
|
+
const M = ye("svg-icon"), w = ye("el-button");
|
|
1696
|
+
return S(), X("div", Ya, [
|
|
1697
|
+
f("div", Za, [
|
|
1698
|
+
f("div", en, [
|
|
1699
|
+
_[2] || (_[2] = f("div", null, se("表单内容"), -1)),
|
|
1700
|
+
B(w, {
|
|
1701
|
+
class: "icon-content",
|
|
1702
|
+
id: "themeButton",
|
|
1703
|
+
onClick: s
|
|
1704
|
+
}, {
|
|
1705
|
+
icon: q(() => [
|
|
1706
|
+
B(M, {
|
|
1707
|
+
name: "Plus",
|
|
1708
|
+
class: "icon-size"
|
|
1709
|
+
})
|
|
1710
|
+
]),
|
|
1711
|
+
default: q(() => [
|
|
1712
|
+
_[1] || (_[1] = f("div", null, se("新增"), -1))
|
|
1713
|
+
]),
|
|
1714
|
+
_: 1,
|
|
1715
|
+
__: [1]
|
|
1716
|
+
})
|
|
1717
|
+
]),
|
|
1718
|
+
f("div", ln, [
|
|
1719
|
+
(S(!0), X(be, null, _e(O.value, (P, ie) => (S(), X("div", { key: ie }, [
|
|
1720
|
+
f("div", an, [
|
|
1721
|
+
f("div", null, se(P.label), 1),
|
|
1722
|
+
f("div", nn, [
|
|
1723
|
+
B(M, {
|
|
1724
|
+
name: "ChildFix",
|
|
1725
|
+
class: "svg-icon-content",
|
|
1726
|
+
style: { width: "24px", height: "24px" },
|
|
1727
|
+
onClick: (ce) => C(P)
|
|
1728
|
+
}, null, 8, ["onClick"]),
|
|
1729
|
+
B(M, {
|
|
1730
|
+
name: "ChildDelete",
|
|
1731
|
+
class: "svg-icon-content",
|
|
1732
|
+
style: { width: "24px", height: "24px" },
|
|
1733
|
+
onClick: (ce) => N(P)
|
|
1734
|
+
}, null, 8, ["onClick"])
|
|
1735
|
+
])
|
|
1736
|
+
])
|
|
1737
|
+
]))), 128))
|
|
1738
|
+
]),
|
|
1739
|
+
f("div", on, [
|
|
1740
|
+
_[4] || (_[4] = f("div", null, se("表单按钮"), -1)),
|
|
1741
|
+
B(w, {
|
|
1742
|
+
class: "icon-content",
|
|
1743
|
+
id: "themeButton",
|
|
1744
|
+
onClick: u
|
|
1745
|
+
}, {
|
|
1746
|
+
icon: q(() => [
|
|
1747
|
+
B(M, {
|
|
1748
|
+
name: "Plus",
|
|
1749
|
+
class: "icon-size"
|
|
1750
|
+
})
|
|
1751
|
+
]),
|
|
1752
|
+
default: q(() => [
|
|
1753
|
+
_[3] || (_[3] = me(" 新增 "))
|
|
1754
|
+
]),
|
|
1755
|
+
_: 1,
|
|
1756
|
+
__: [3]
|
|
1757
|
+
})
|
|
1758
|
+
]),
|
|
1759
|
+
f("div", sn, [
|
|
1760
|
+
(S(!0), X(be, null, _e($.value, (P, ie) => (S(), X("div", { key: ie }, [
|
|
1761
|
+
f("div", un, [
|
|
1762
|
+
f("div", null, se(P.label), 1),
|
|
1763
|
+
f("div", rn, [
|
|
1764
|
+
B(M, {
|
|
1765
|
+
name: "ChildFix",
|
|
1766
|
+
class: "svg-icon-content",
|
|
1767
|
+
style: { width: "24px", height: "24px" },
|
|
1768
|
+
onClick: (ce) => c(P)
|
|
1769
|
+
}, null, 8, ["onClick"]),
|
|
1770
|
+
B(M, {
|
|
1771
|
+
name: "ChildDelete",
|
|
1772
|
+
class: "svg-icon-content",
|
|
1773
|
+
style: { width: "24px", height: "24px" },
|
|
1774
|
+
onClick: (ce) => n(P)
|
|
1775
|
+
}, null, 8, ["onClick"])
|
|
1776
|
+
])
|
|
1777
|
+
])
|
|
1778
|
+
]))), 128))
|
|
1779
|
+
]),
|
|
1780
|
+
_[6] || (_[6] = f("div", { class: "operate-title" }, [
|
|
1781
|
+
f("div", null, se("表单布局"))
|
|
1782
|
+
], -1)),
|
|
1783
|
+
f("div", tn, [
|
|
1784
|
+
_[5] || (_[5] = f("div", { class: "operate-center-content" }, se("是否自动撑宽"), -1)),
|
|
1785
|
+
B(yl, {
|
|
1786
|
+
modelValue: ae.value,
|
|
1787
|
+
"onUpdate:modelValue": _[0] || (_[0] = (P) => ae.value = P)
|
|
1788
|
+
}, null, 8, ["modelValue"])
|
|
1789
|
+
])
|
|
1790
|
+
]),
|
|
1791
|
+
B(Oe, {
|
|
1792
|
+
visible: m.value,
|
|
1793
|
+
onBeforeDestroy: pe,
|
|
1794
|
+
width: 840
|
|
1795
|
+
}, {
|
|
1796
|
+
default: q(() => [
|
|
1797
|
+
f("div", cn, [
|
|
1798
|
+
(S(), ke(Le, {
|
|
1799
|
+
rowContents: I.value,
|
|
1800
|
+
key: I.value,
|
|
1801
|
+
isEnableWrap: !0,
|
|
1802
|
+
onChange: d,
|
|
1803
|
+
onChangeVisible: G,
|
|
1804
|
+
onBlurChange: le
|
|
1805
|
+
}, null, 8, ["rowContents"]))
|
|
1806
|
+
])
|
|
1807
|
+
]),
|
|
1808
|
+
footer: q(() => [
|
|
1809
|
+
f("div", dn, [
|
|
1810
|
+
B(w, {
|
|
1811
|
+
onClick: pe,
|
|
1812
|
+
class: "cancel-button button",
|
|
1813
|
+
id: "themeBorderButton"
|
|
1814
|
+
}, {
|
|
1815
|
+
default: q(() => _[7] || (_[7] = [
|
|
1816
|
+
me(se("取消"))
|
|
1817
|
+
])),
|
|
1818
|
+
_: 1,
|
|
1819
|
+
__: [7]
|
|
1820
|
+
}),
|
|
1821
|
+
B(w, {
|
|
1822
|
+
class: "ok-button button",
|
|
1823
|
+
onClick: de,
|
|
1824
|
+
id: "themeButton"
|
|
1825
|
+
}, {
|
|
1826
|
+
default: q(() => _[8] || (_[8] = [
|
|
1827
|
+
me(se("确认"))
|
|
1828
|
+
])),
|
|
1829
|
+
_: 1,
|
|
1830
|
+
__: [8]
|
|
1831
|
+
})
|
|
1832
|
+
])
|
|
1833
|
+
]),
|
|
1834
|
+
_: 1
|
|
1835
|
+
}, 8, ["visible"]),
|
|
1836
|
+
B(Oe, {
|
|
1837
|
+
visible: b.value,
|
|
1838
|
+
onBeforeDestroy: pe,
|
|
1839
|
+
width: 840
|
|
1840
|
+
}, {
|
|
1841
|
+
default: q(() => [
|
|
1842
|
+
f("div", pn, [
|
|
1843
|
+
(S(), ke(Le, {
|
|
1844
|
+
rowContents: Q.value,
|
|
1845
|
+
key: Q.value,
|
|
1846
|
+
isEnableWrap: !0,
|
|
1847
|
+
onChange: i
|
|
1848
|
+
}, null, 8, ["rowContents"]))
|
|
1849
|
+
])
|
|
1850
|
+
]),
|
|
1851
|
+
footer: q(() => [
|
|
1852
|
+
f("div", { class: "dialog-footer" }, [
|
|
1853
|
+
f("div", {
|
|
1854
|
+
onClick: pe,
|
|
1855
|
+
class: "cancel-button button"
|
|
1856
|
+
}, se("取消")),
|
|
1857
|
+
f("div", {
|
|
1858
|
+
class: "ok-button button",
|
|
1859
|
+
onClick: t
|
|
1860
|
+
}, se("确认"))
|
|
1861
|
+
])
|
|
1862
|
+
]),
|
|
1863
|
+
_: 1
|
|
1864
|
+
}, 8, ["visible"])
|
|
1865
|
+
]);
|
|
1866
|
+
};
|
|
1867
|
+
}
|
|
1868
|
+
}, vl = /* @__PURE__ */ Te(vn, [["__scopeId", "data-v-0bdc7014"]]), fn = { class: "step-module content" }, mn = { class: "module-data" }, hn = { class: "step-module layout" }, yn = { class: "form-content" }, bn = /* @__PURE__ */ Ge({
|
|
1869
|
+
__name: "operate",
|
|
1870
|
+
props: {
|
|
1871
|
+
itemContents: {
|
|
1872
|
+
type: Array,
|
|
1873
|
+
default: () => []
|
|
1874
|
+
},
|
|
1875
|
+
originalItemContents: {
|
|
1876
|
+
type: Array,
|
|
1877
|
+
default: () => []
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
emits: ["change"],
|
|
1881
|
+
setup(k, { emit: L }) {
|
|
1882
|
+
const v = k, o = L, m = F([
|
|
1883
|
+
{
|
|
1884
|
+
label: "方向:",
|
|
1885
|
+
prop: "direction",
|
|
1886
|
+
type: "RADIO",
|
|
1887
|
+
contents: [
|
|
1888
|
+
{
|
|
1889
|
+
label: "水平",
|
|
1890
|
+
value: "horizontal"
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
label: "垂直",
|
|
1894
|
+
value: "vertical"
|
|
1895
|
+
}
|
|
1896
|
+
],
|
|
1897
|
+
value: "horizontal"
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
label: "是否居中:",
|
|
1901
|
+
prop: "alignCenter",
|
|
1902
|
+
type: "RADIO",
|
|
1903
|
+
contents: [
|
|
1904
|
+
{
|
|
1905
|
+
label: "是",
|
|
1906
|
+
value: !0
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
label: "否",
|
|
1910
|
+
value: !1
|
|
1911
|
+
}
|
|
1912
|
+
],
|
|
1913
|
+
value: !0
|
|
1914
|
+
},
|
|
1915
|
+
// {
|
|
1916
|
+
// label: '是否交互',
|
|
1917
|
+
// prop: 'allowTrigger',
|
|
1918
|
+
// type: 'RADIO',
|
|
1919
|
+
// contents: [
|
|
1920
|
+
// {
|
|
1921
|
+
// label: '是',
|
|
1922
|
+
// value: true,
|
|
1923
|
+
// }, {
|
|
1924
|
+
// label: '否',
|
|
1925
|
+
// value: false,
|
|
1926
|
+
// },
|
|
1927
|
+
// ],
|
|
1928
|
+
// value: 'horizontal'
|
|
1929
|
+
// },
|
|
1930
|
+
{
|
|
1931
|
+
label: "应用简洁风格",
|
|
1932
|
+
prop: "simple",
|
|
1933
|
+
type: "RADIO",
|
|
1934
|
+
contents: [
|
|
1935
|
+
{
|
|
1936
|
+
label: "是",
|
|
1937
|
+
value: !0
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
label: "否",
|
|
1941
|
+
value: !1
|
|
1942
|
+
}
|
|
1943
|
+
],
|
|
1944
|
+
value: !1
|
|
1945
|
+
}
|
|
1946
|
+
]), I = F([
|
|
1947
|
+
{
|
|
1948
|
+
label: "",
|
|
1949
|
+
prop: "index",
|
|
1950
|
+
type: "input",
|
|
1951
|
+
value: "",
|
|
1952
|
+
isFormColHidden: !0
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
label: "标题",
|
|
1956
|
+
prop: "title",
|
|
1957
|
+
type: "input",
|
|
1958
|
+
value: ""
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
label: "描述",
|
|
1962
|
+
prop: "description",
|
|
1963
|
+
type: "input",
|
|
1964
|
+
value: ""
|
|
1965
|
+
}
|
|
1966
|
+
]), j = F([
|
|
1967
|
+
{
|
|
1968
|
+
label: "取消",
|
|
1969
|
+
background: "#c0c4cc"
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
label: "确认",
|
|
1973
|
+
background: "#436aaf"
|
|
1974
|
+
}
|
|
1975
|
+
]), b = nl({
|
|
1976
|
+
visible: !1,
|
|
1977
|
+
width: "40%",
|
|
1978
|
+
title: "步骤条"
|
|
1979
|
+
}), $ = F("create"), O = F({}), E = F([]), ae = (c) => {
|
|
1980
|
+
var t;
|
|
1981
|
+
O.value = c, o("change", (t = U()) == null ? void 0 : t.compData);
|
|
1982
|
+
}, H = (c, t) => {
|
|
1983
|
+
var N, n;
|
|
1984
|
+
switch (c) {
|
|
1985
|
+
case "create":
|
|
1986
|
+
(N = I.value) == null || N.forEach((u) => {
|
|
1987
|
+
u.value = "";
|
|
1988
|
+
}), $.value = "create", b.visible = !0;
|
|
1989
|
+
break;
|
|
1990
|
+
case "update":
|
|
1991
|
+
(n = I.value) == null || n.forEach((u) => {
|
|
1992
|
+
u.value = t[u == null ? void 0 : u.prop];
|
|
1993
|
+
}), $.value = "update", b.visible = !0;
|
|
1994
|
+
break;
|
|
1995
|
+
case "delete":
|
|
1996
|
+
E.value.splice(t, 1), $.value = "delete";
|
|
1997
|
+
break;
|
|
1998
|
+
}
|
|
1999
|
+
}, Q = (c) => {
|
|
2000
|
+
var t, N, n;
|
|
2001
|
+
if ((c == null ? void 0 : c.buttonName) === "确认") {
|
|
2002
|
+
const u = p(c == null ? void 0 : c.content);
|
|
2003
|
+
switch (Object.keys(u).forEach((s) => {
|
|
2004
|
+
u[s] === "" && delete u[s];
|
|
2005
|
+
}), $.value) {
|
|
2006
|
+
case "create":
|
|
2007
|
+
E.value.push({
|
|
2008
|
+
...u,
|
|
2009
|
+
index: ((t = E.value) == null ? void 0 : t.length) + 1
|
|
2010
|
+
});
|
|
2011
|
+
break;
|
|
2012
|
+
case "update":
|
|
2013
|
+
E.value = (N = E.value) == null ? void 0 : N.map((s) => s.index === (u == null ? void 0 : u.index) ? {
|
|
2014
|
+
...s,
|
|
2015
|
+
title: u == null ? void 0 : u.title,
|
|
2016
|
+
description: u == null ? void 0 : u.description
|
|
2017
|
+
} : s);
|
|
2018
|
+
break;
|
|
2019
|
+
}
|
|
2020
|
+
o("change", (n = U()) == null ? void 0 : n.compData), b.visible = !1;
|
|
2021
|
+
} else
|
|
2022
|
+
b.visible = !1;
|
|
2023
|
+
}, U = () => ({
|
|
2024
|
+
comp: "Step",
|
|
2025
|
+
compData: [
|
|
2026
|
+
{
|
|
2027
|
+
key: "stepList",
|
|
2028
|
+
contents: E.value
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
key: "stepConfig",
|
|
2032
|
+
contents: O.value
|
|
2033
|
+
}
|
|
2034
|
+
]
|
|
2035
|
+
}), C = () => {
|
|
2036
|
+
b.visible = !1;
|
|
2037
|
+
};
|
|
2038
|
+
return Ee(() => v == null ? void 0 : v.itemContents, (c) => {
|
|
2039
|
+
var t, N;
|
|
2040
|
+
c && (O.value = ((t = c == null ? void 0 : c.find((n) => n.key === "stepConfig")) == null ? void 0 : t.contents) ?? {}, E.value = ((N = c == null ? void 0 : c.find((n) => n.key === "stepList")) == null ? void 0 : N.contents) ?? []);
|
|
2041
|
+
}, { immediate: !0 }), (c, t) => {
|
|
2042
|
+
const N = ye("svg-icon"), n = ye("el-button");
|
|
2043
|
+
return S(), X(be, null, [
|
|
2044
|
+
f("div", null, [
|
|
2045
|
+
f("div", fn, [
|
|
2046
|
+
t[2] || (t[2] = f("h4", { class: "module-title" }, "内容", -1)),
|
|
2047
|
+
B(n, {
|
|
2048
|
+
class: "module-icon",
|
|
2049
|
+
id: "themeButton",
|
|
2050
|
+
onClick: t[0] || (t[0] = (u) => H("create"))
|
|
2051
|
+
}, {
|
|
2052
|
+
icon: q(() => [
|
|
2053
|
+
B(N, {
|
|
2054
|
+
name: "Plus",
|
|
2055
|
+
class: "icon-size"
|
|
2056
|
+
})
|
|
2057
|
+
]),
|
|
2058
|
+
default: q(() => [
|
|
2059
|
+
t[1] || (t[1] = me(" 新增 "))
|
|
2060
|
+
]),
|
|
2061
|
+
_: 1,
|
|
2062
|
+
__: [1]
|
|
2063
|
+
})
|
|
2064
|
+
]),
|
|
2065
|
+
f("div", mn, [
|
|
2066
|
+
(S(!0), X(be, null, _e(E.value, (u, s) => (S(), X("div", {
|
|
2067
|
+
class: "module-data-item",
|
|
2068
|
+
key: s
|
|
2069
|
+
}, [
|
|
2070
|
+
f("span", null, se(u == null ? void 0 : u.title), 1),
|
|
2071
|
+
f("div", null, [
|
|
2072
|
+
B(n, {
|
|
2073
|
+
type: "primary",
|
|
2074
|
+
size: "small",
|
|
2075
|
+
onClick: (i) => H("update", { ...u, index: s + 1 })
|
|
2076
|
+
}, {
|
|
2077
|
+
default: q(() => t[3] || (t[3] = [
|
|
2078
|
+
me("修改")
|
|
2079
|
+
])),
|
|
2080
|
+
_: 2,
|
|
2081
|
+
__: [3]
|
|
2082
|
+
}, 1032, ["onClick"]),
|
|
2083
|
+
B(n, {
|
|
2084
|
+
type: "danger",
|
|
2085
|
+
size: "small",
|
|
2086
|
+
onClick: (i) => H("delete", s)
|
|
2087
|
+
}, {
|
|
2088
|
+
default: q(() => t[4] || (t[4] = [
|
|
2089
|
+
me("删除")
|
|
2090
|
+
])),
|
|
2091
|
+
_: 2,
|
|
2092
|
+
__: [4]
|
|
2093
|
+
}, 1032, ["onClick"])
|
|
2094
|
+
])
|
|
2095
|
+
]))), 128))
|
|
2096
|
+
]),
|
|
2097
|
+
f("div", hn, [
|
|
2098
|
+
t[5] || (t[5] = f("div", { class: "module-title" }, "布局", -1)),
|
|
2099
|
+
B(Le, {
|
|
2100
|
+
rowContents: m.value,
|
|
2101
|
+
onChange: ae
|
|
2102
|
+
}, null, 8, ["rowContents"])
|
|
2103
|
+
])
|
|
2104
|
+
]),
|
|
2105
|
+
B(Oe, {
|
|
2106
|
+
visible: b.visible,
|
|
2107
|
+
title: b.title,
|
|
2108
|
+
onBeforeDestroy: C,
|
|
2109
|
+
width: b.width
|
|
2110
|
+
}, {
|
|
2111
|
+
default: q(() => [
|
|
2112
|
+
f("div", yn, [
|
|
2113
|
+
(S(), ke(Le, {
|
|
2114
|
+
rowContents: I.value,
|
|
2115
|
+
key: I.value,
|
|
2116
|
+
isEnableWrap: !1,
|
|
2117
|
+
isButtonRow: !1,
|
|
2118
|
+
isStartJustify: !1,
|
|
2119
|
+
buttonValue: j.value,
|
|
2120
|
+
onOnButtonClick: Q
|
|
2121
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2122
|
+
])
|
|
2123
|
+
]),
|
|
2124
|
+
_: 1
|
|
2125
|
+
}, 8, ["visible", "title", "width"])
|
|
2126
|
+
], 64);
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
}), gn = /* @__PURE__ */ Te(bn, [["__scopeId", "data-v-7dbd17f2"]]), Cn = { class: "step-module content" }, _n = { class: "module-data" }, kn = { class: "step-module layout" }, wn = { class: "form-content" }, xn = /* @__PURE__ */ Ge({
|
|
2130
|
+
__name: "operate",
|
|
2131
|
+
props: {
|
|
2132
|
+
itemContents: {
|
|
2133
|
+
type: Array,
|
|
2134
|
+
default: () => []
|
|
2135
|
+
},
|
|
2136
|
+
originalItemContents: {
|
|
2137
|
+
type: Array,
|
|
2138
|
+
default: () => []
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
emits: ["change"],
|
|
2142
|
+
setup(k, { emit: L }) {
|
|
2143
|
+
const v = k, o = L, m = F("create"), I = F({}), j = F([]), b = F([
|
|
2144
|
+
{
|
|
2145
|
+
label: "方向:",
|
|
2146
|
+
prop: "placement",
|
|
2147
|
+
type: "radio",
|
|
2148
|
+
contents: [
|
|
2149
|
+
{
|
|
2150
|
+
label: "底部",
|
|
2151
|
+
value: "bottom"
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
label: "顶部",
|
|
2155
|
+
value: "top"
|
|
2156
|
+
}
|
|
2157
|
+
],
|
|
2158
|
+
value: "bottom"
|
|
2159
|
+
},
|
|
2160
|
+
{
|
|
2161
|
+
label: "节点类型:",
|
|
2162
|
+
prop: "type",
|
|
2163
|
+
type: "select",
|
|
2164
|
+
contents: [
|
|
2165
|
+
{
|
|
2166
|
+
label: "primary",
|
|
2167
|
+
value: "primary"
|
|
2168
|
+
},
|
|
2169
|
+
{
|
|
2170
|
+
label: "success",
|
|
2171
|
+
value: "success"
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
label: "warning",
|
|
2175
|
+
value: "warning"
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
label: "danger",
|
|
2179
|
+
value: "danger"
|
|
2180
|
+
},
|
|
2181
|
+
{
|
|
2182
|
+
label: "info",
|
|
2183
|
+
value: "info"
|
|
2184
|
+
}
|
|
2185
|
+
],
|
|
2186
|
+
value: "primary"
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
label: "颜色:",
|
|
2190
|
+
prop: "color",
|
|
2191
|
+
type: "color",
|
|
2192
|
+
value: ""
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
label: "尺寸:",
|
|
2196
|
+
prop: "size",
|
|
2197
|
+
type: "radio",
|
|
2198
|
+
contents: [
|
|
2199
|
+
{
|
|
2200
|
+
label: "normal",
|
|
2201
|
+
value: "normal"
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
label: "large",
|
|
2205
|
+
value: "large"
|
|
2206
|
+
}
|
|
2207
|
+
],
|
|
2208
|
+
value: "normal"
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
label: "是否空心",
|
|
2212
|
+
prop: "isHollow",
|
|
2213
|
+
type: "RADIO",
|
|
2214
|
+
contents: [
|
|
2215
|
+
{
|
|
2216
|
+
label: "是",
|
|
2217
|
+
value: !0
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
label: "否",
|
|
2221
|
+
value: !1
|
|
2222
|
+
}
|
|
2223
|
+
],
|
|
2224
|
+
value: !0
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
label: "是否居中",
|
|
2228
|
+
prop: "isCenter",
|
|
2229
|
+
type: "RADIO",
|
|
2230
|
+
contents: [
|
|
2231
|
+
{
|
|
2232
|
+
label: "是",
|
|
2233
|
+
value: !0
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
label: "否",
|
|
2237
|
+
value: !1
|
|
2238
|
+
}
|
|
2239
|
+
],
|
|
2240
|
+
value: !0
|
|
2241
|
+
}
|
|
2242
|
+
]), $ = F([
|
|
2243
|
+
{
|
|
2244
|
+
label: "",
|
|
2245
|
+
prop: "index",
|
|
2246
|
+
type: "input",
|
|
2247
|
+
value: "",
|
|
2248
|
+
isFormColHidden: !0
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
label: "内容",
|
|
2252
|
+
prop: "content",
|
|
2253
|
+
type: "input",
|
|
2254
|
+
value: ""
|
|
2255
|
+
},
|
|
2256
|
+
{
|
|
2257
|
+
label: "时间戳",
|
|
2258
|
+
prop: "timestamp",
|
|
2259
|
+
type: "datetime",
|
|
2260
|
+
value: ""
|
|
2261
|
+
}
|
|
2262
|
+
]), O = F([
|
|
2263
|
+
{
|
|
2264
|
+
label: "取消",
|
|
2265
|
+
background: "#c0c4cc"
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
label: "确认",
|
|
2269
|
+
background: "#436aaf"
|
|
2270
|
+
}
|
|
2271
|
+
]), E = nl({
|
|
2272
|
+
visible: !1,
|
|
2273
|
+
width: "40%",
|
|
2274
|
+
title: "时间线"
|
|
2275
|
+
}), ae = (c) => {
|
|
2276
|
+
var t;
|
|
2277
|
+
I.value = c, console.log(1212, c), o("change", (t = U()) == null ? void 0 : t.compData);
|
|
2278
|
+
}, H = (c, t) => {
|
|
2279
|
+
var N, n;
|
|
2280
|
+
switch (c) {
|
|
2281
|
+
case "create":
|
|
2282
|
+
(N = $.value) == null || N.forEach((u) => {
|
|
2283
|
+
u.value = "";
|
|
2284
|
+
}), m.value = "create", E.visible = !0;
|
|
2285
|
+
break;
|
|
2286
|
+
case "update":
|
|
2287
|
+
(n = $.value) == null || n.forEach((u) => {
|
|
2288
|
+
u.value = t[u == null ? void 0 : u.prop];
|
|
2289
|
+
}), m.value = "update", E.visible = !0;
|
|
2290
|
+
break;
|
|
2291
|
+
case "delete":
|
|
2292
|
+
j.value.splice(t, 1), m.value = "delete";
|
|
2293
|
+
break;
|
|
2294
|
+
}
|
|
2295
|
+
}, Q = (c) => {
|
|
2296
|
+
var t, N, n, u;
|
|
2297
|
+
if ((c == null ? void 0 : c.buttonName) === "确认") {
|
|
2298
|
+
const s = p(c == null ? void 0 : c.content);
|
|
2299
|
+
switch (Object.keys(s).forEach((i) => {
|
|
2300
|
+
s[i] === "" && delete s[i];
|
|
2301
|
+
}), m.value) {
|
|
2302
|
+
case "create":
|
|
2303
|
+
console.log(1335, j.value, s), (N = j.value) == null || N.push({
|
|
2304
|
+
...s,
|
|
2305
|
+
index: ((t = j.value) == null ? void 0 : t.length) + 1
|
|
2306
|
+
});
|
|
2307
|
+
break;
|
|
2308
|
+
case "update":
|
|
2309
|
+
j.value = (n = j.value) == null ? void 0 : n.map((i) => i.index === (s == null ? void 0 : s.index) ? {
|
|
2310
|
+
...i,
|
|
2311
|
+
content: s == null ? void 0 : s.content,
|
|
2312
|
+
timestamp: s == null ? void 0 : s.timestamp
|
|
2313
|
+
} : i);
|
|
2314
|
+
break;
|
|
2315
|
+
}
|
|
2316
|
+
o("change", (u = U()) == null ? void 0 : u.compData), E.visible = !1;
|
|
2317
|
+
} else
|
|
2318
|
+
E.visible = !1;
|
|
2319
|
+
}, U = () => ({
|
|
2320
|
+
comp: "TimeLine",
|
|
2321
|
+
compData: [
|
|
2322
|
+
{
|
|
2323
|
+
key: "timeLineList",
|
|
2324
|
+
contents: j.value
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
key: "timeLineConfig",
|
|
2328
|
+
contents: I.value
|
|
2329
|
+
}
|
|
2330
|
+
]
|
|
2331
|
+
}), C = () => {
|
|
2332
|
+
E.visible = !1;
|
|
2333
|
+
};
|
|
2334
|
+
return Ee(() => v == null ? void 0 : v.itemContents, (c) => {
|
|
2335
|
+
var t, N;
|
|
2336
|
+
c && (I.value = ((t = c == null ? void 0 : c.find((n) => n.key === "timeLineConfig")) == null ? void 0 : t.contents) ?? {}, j.value = ((N = c == null ? void 0 : c.find((n) => n.key === "timeLineList")) == null ? void 0 : N.contents) ?? []);
|
|
2337
|
+
}, { immediate: !0 }), (c, t) => {
|
|
2338
|
+
const N = ye("svg-icon"), n = ye("el-button");
|
|
2339
|
+
return S(), X(be, null, [
|
|
2340
|
+
f("div", null, [
|
|
2341
|
+
f("div", Cn, [
|
|
2342
|
+
t[2] || (t[2] = f("h4", { class: "module-title" }, "内容", -1)),
|
|
2343
|
+
B(n, {
|
|
2344
|
+
class: "module-icon",
|
|
2345
|
+
id: "themeButton",
|
|
2346
|
+
onClick: t[0] || (t[0] = (u) => H("create"))
|
|
2347
|
+
}, {
|
|
2348
|
+
icon: q(() => [
|
|
2349
|
+
B(N, {
|
|
2350
|
+
name: "Plus",
|
|
2351
|
+
class: "icon-size"
|
|
2352
|
+
})
|
|
2353
|
+
]),
|
|
2354
|
+
default: q(() => [
|
|
2355
|
+
t[1] || (t[1] = me(" 新增 "))
|
|
2356
|
+
]),
|
|
2357
|
+
_: 1,
|
|
2358
|
+
__: [1]
|
|
2359
|
+
})
|
|
2360
|
+
]),
|
|
2361
|
+
f("div", _n, [
|
|
2362
|
+
(S(!0), X(be, null, _e(j.value, (u, s) => (S(), X("div", {
|
|
2363
|
+
class: "module-data-item",
|
|
2364
|
+
key: s
|
|
2365
|
+
}, [
|
|
2366
|
+
f("span", null, se(u == null ? void 0 : u.content), 1),
|
|
2367
|
+
f("div", null, [
|
|
2368
|
+
B(n, {
|
|
2369
|
+
type: "primary",
|
|
2370
|
+
size: "small",
|
|
2371
|
+
onClick: (i) => H("update", { ...u, index: s + 1 })
|
|
2372
|
+
}, {
|
|
2373
|
+
default: q(() => t[3] || (t[3] = [
|
|
2374
|
+
me("修改")
|
|
2375
|
+
])),
|
|
2376
|
+
_: 2,
|
|
2377
|
+
__: [3]
|
|
2378
|
+
}, 1032, ["onClick"]),
|
|
2379
|
+
B(n, {
|
|
2380
|
+
type: "danger",
|
|
2381
|
+
size: "small",
|
|
2382
|
+
onClick: (i) => H("delete", s)
|
|
2383
|
+
}, {
|
|
2384
|
+
default: q(() => t[4] || (t[4] = [
|
|
2385
|
+
me("删除")
|
|
2386
|
+
])),
|
|
2387
|
+
_: 2,
|
|
2388
|
+
__: [4]
|
|
2389
|
+
}, 1032, ["onClick"])
|
|
2390
|
+
])
|
|
2391
|
+
]))), 128))
|
|
2392
|
+
]),
|
|
2393
|
+
f("div", kn, [
|
|
2394
|
+
t[5] || (t[5] = f("div", { class: "module-title" }, "布局", -1)),
|
|
2395
|
+
B(Le, {
|
|
2396
|
+
rowContents: b.value,
|
|
2397
|
+
onChange: ae
|
|
2398
|
+
}, null, 8, ["rowContents"])
|
|
2399
|
+
])
|
|
2400
|
+
]),
|
|
2401
|
+
B(Oe, {
|
|
2402
|
+
visible: E.visible,
|
|
2403
|
+
title: E.title,
|
|
2404
|
+
onBeforeDestroy: C,
|
|
2405
|
+
width: E.width
|
|
2406
|
+
}, {
|
|
2407
|
+
default: q(() => [
|
|
2408
|
+
f("div", wn, [
|
|
2409
|
+
(S(), ke(Le, {
|
|
2410
|
+
rowContents: $.value,
|
|
2411
|
+
key: $.value,
|
|
2412
|
+
isEnableWrap: !1,
|
|
2413
|
+
isButtonRow: !1,
|
|
2414
|
+
isStartJustify: !1,
|
|
2415
|
+
buttonValue: O.value,
|
|
2416
|
+
onOnButtonClick: Q
|
|
2417
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
2418
|
+
])
|
|
2419
|
+
]),
|
|
2420
|
+
_: 1
|
|
2421
|
+
}, 8, ["visible", "title", "width"])
|
|
2422
|
+
], 64);
|
|
2423
|
+
};
|
|
2424
|
+
}
|
|
2425
|
+
}), Dn = /* @__PURE__ */ Te(xn, [["__scopeId", "data-v-f6b5d4fc"]]), In = {};
|
|
2426
|
+
function Tn(k, L) {
|
|
2427
|
+
return S(), X("div");
|
|
2428
|
+
}
|
|
2429
|
+
const $n = /* @__PURE__ */ Te(In, [["render", Tn]]), En = { class: "extra-content" }, Bn = { key: 0 }, Fn = { key: 1 }, An = { class: "dialog-footer" }, Sn = {
|
|
2430
|
+
__name: "index",
|
|
2431
|
+
props: {
|
|
2432
|
+
itemData: {
|
|
2433
|
+
type: Array,
|
|
2434
|
+
default: () => []
|
|
2435
|
+
},
|
|
2436
|
+
childItemData: {
|
|
2437
|
+
type: Array,
|
|
2438
|
+
default: () => []
|
|
2439
|
+
},
|
|
2440
|
+
index: Number,
|
|
2441
|
+
changedContent: {
|
|
2442
|
+
type: Object,
|
|
2443
|
+
default: () => {
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
},
|
|
2447
|
+
emits: ["change"],
|
|
2448
|
+
setup(k, { emit: L }) {
|
|
2449
|
+
const v = k, o = F(0), m = F(), I = F(), j = L, b = F(!1), $ = F({}), O = F({}), E = F();
|
|
2450
|
+
Ee(
|
|
2451
|
+
() => [v.itemData],
|
|
2452
|
+
() => {
|
|
2453
|
+
var u;
|
|
2454
|
+
const n = p(v.itemData);
|
|
2455
|
+
m.value = (u = p(n)) == null ? void 0 : u.map((s) => {
|
|
2456
|
+
var i;
|
|
2457
|
+
if (s.key === "extra") {
|
|
2458
|
+
let d = [];
|
|
2459
|
+
(i = s.value) == null || i.forEach((G) => {
|
|
2460
|
+
var le;
|
|
2461
|
+
d.push((le = Object.values(G)) == null ? void 0 : le[0]);
|
|
2462
|
+
}), s.value = d;
|
|
2463
|
+
}
|
|
2464
|
+
return s;
|
|
2465
|
+
});
|
|
2466
|
+
},
|
|
2467
|
+
{ deep: !0, immediate: !0 }
|
|
2468
|
+
);
|
|
2469
|
+
const ae = (n, u, s, i) => {
|
|
2470
|
+
var G;
|
|
2471
|
+
let d = {};
|
|
2472
|
+
((G = n == null ? void 0 : n[0]) == null ? void 0 : G.contents) === "详情" && (b.value = !0, d[u] = n, I.value = n == null ? void 0 : n.filter((le) => (le == null ? void 0 : le.key) !== "tableContentName"), $.value = d, O.value = s, E.value = i.id);
|
|
2473
|
+
}, H = (n) => {
|
|
2474
|
+
var le, de, pe, a;
|
|
2475
|
+
const u = (de = (le = Object.values(p($.value))) == null ? void 0 : le[0]) == null ? void 0 : de.filter((_) => (_ == null ? void 0 : _.key) === "tableContentName"), s = (a = (pe = Object.values(p($.value))) == null ? void 0 : pe[0]) == null ? void 0 : a.filter((_) => (_ == null ? void 0 : _.key) !== "tableContentName"), i = s == null ? void 0 : s.map((_, M) => {
|
|
2476
|
+
var w;
|
|
2477
|
+
return M === n.index && (_ == null ? void 0 : _.comp) === "Table" && (_.compData = (w = _.compData) == null ? void 0 : w.map((P) => {
|
|
2478
|
+
var ie, ce;
|
|
2479
|
+
return (P == null ? void 0 : P.key) === "tableContents" && (P.contents = (ce = (ie = n.content) == null ? void 0 : ie.map((g) => {
|
|
2480
|
+
let V = {};
|
|
2481
|
+
for (let l in g)
|
|
2482
|
+
l !== "id" && (V[l] = g[l]);
|
|
2483
|
+
return V;
|
|
2484
|
+
})) == null ? void 0 : ce.map((g) => Object.values(g))), P;
|
|
2485
|
+
})), _;
|
|
2486
|
+
});
|
|
2487
|
+
i.unshift(u == null ? void 0 : u[0]);
|
|
2488
|
+
let d = p($.value), G = {};
|
|
2489
|
+
for (let _ in d)
|
|
2490
|
+
G[_] = i;
|
|
2491
|
+
$.value = G;
|
|
2492
|
+
}, Q = () => {
|
|
2493
|
+
b.value = !1, $.value = {}, O.value = {}, E.value = void 0, o.value++;
|
|
2494
|
+
}, U = (n) => {
|
|
2495
|
+
var le, de, pe, a;
|
|
2496
|
+
const u = (de = (le = Object.values(p($.value))) == null ? void 0 : le[0]) == null ? void 0 : de.filter((_) => (_ == null ? void 0 : _.key) === "tableContentName"), s = (a = (pe = Object.values(p($.value))) == null ? void 0 : pe[0]) == null ? void 0 : a.filter((_) => (_ == null ? void 0 : _.key) !== "tableContentName"), i = s == null ? void 0 : s.map((_, M) => (M === n.index && (_.compData = n.contents), _));
|
|
2497
|
+
i.unshift(u == null ? void 0 : u[0]);
|
|
2498
|
+
let d = p($.value), G = {};
|
|
2499
|
+
for (let _ in d)
|
|
2500
|
+
G[_] = i;
|
|
2501
|
+
$.value = G;
|
|
2502
|
+
}, C = () => {
|
|
2503
|
+
var u, s;
|
|
2504
|
+
let n = {};
|
|
2505
|
+
for (let i in O.value)
|
|
2506
|
+
i === ((u = Object.keys($.value)) == null ? void 0 : u[0]) ? n[i] = (s = Object.values($.value)) == null ? void 0 : s[0] : n[i] = O.value[i];
|
|
2507
|
+
j("change", {
|
|
2508
|
+
buttonName: "编辑",
|
|
2509
|
+
index: E.value,
|
|
2510
|
+
singleContent: n
|
|
2511
|
+
}, "methodData"), b.value = !1, $.value = {}, O.value = {}, E.value = void 0;
|
|
2512
|
+
}, c = () => {
|
|
2513
|
+
b.value = !1, $.value = {}, O.value = {}, E.value = void 0;
|
|
2514
|
+
}, t = (n) => {
|
|
2515
|
+
j("change", n, "methodData");
|
|
2516
|
+
}, N = (n) => sl(n);
|
|
2517
|
+
return (n, u) => {
|
|
2518
|
+
const s = ye("el-button");
|
|
2519
|
+
return S(), X("div", En, [
|
|
2520
|
+
(S(!0), X(be, null, _e(m.value, (i, d) => (S(), X("div", { key: o.value }, [
|
|
2521
|
+
(i == null ? void 0 : i.key) === "extra" ? (S(), X("div", Bn)) : (S(), X("div", Fn, [
|
|
2522
|
+
(S(), ke(Xe(N(i.comp)), {
|
|
2523
|
+
itemData: i == null ? void 0 : i.compData,
|
|
2524
|
+
childItemData: i == null ? void 0 : i.itemChildData,
|
|
2525
|
+
key: d,
|
|
2526
|
+
index: (i == null ? void 0 : i.id) ?? d,
|
|
2527
|
+
onContentClick: ae,
|
|
2528
|
+
onChange: t
|
|
2529
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2530
|
+
]))
|
|
2531
|
+
]))), 128)),
|
|
2532
|
+
B(Oe, {
|
|
2533
|
+
visible: b.value,
|
|
2534
|
+
onBeforeDestroy: c
|
|
2535
|
+
}, {
|
|
2536
|
+
default: q(() => [
|
|
2537
|
+
(S(!0), X(be, null, _e(I.value, (i, d) => (S(), X("div", {
|
|
2538
|
+
key: d,
|
|
2539
|
+
class: "extra-dialog"
|
|
2540
|
+
}, [
|
|
2541
|
+
(S(), ke(Xe(N(i.comp)), {
|
|
2542
|
+
itemData: i == null ? void 0 : i.compData,
|
|
2543
|
+
onChange: H,
|
|
2544
|
+
childItemData: i == null ? void 0 : i.itemChildData,
|
|
2545
|
+
key: d,
|
|
2546
|
+
onContentChange: U,
|
|
2547
|
+
index: (i == null ? void 0 : i.id) ?? d,
|
|
2548
|
+
class: "extra-component"
|
|
2549
|
+
}, null, 40, ["itemData", "childItemData", "index"]))
|
|
2550
|
+
]))), 128))
|
|
2551
|
+
]),
|
|
2552
|
+
footer: q(() => [
|
|
2553
|
+
f("div", An, [
|
|
2554
|
+
B(s, {
|
|
2555
|
+
class: "cancel-button footer-button",
|
|
2556
|
+
onClick: Q,
|
|
2557
|
+
id: "themeBorderButton"
|
|
2558
|
+
}, {
|
|
2559
|
+
default: q(() => u[0] || (u[0] = [
|
|
2560
|
+
me(se("取消"))
|
|
2561
|
+
])),
|
|
2562
|
+
_: 1,
|
|
2563
|
+
__: [0]
|
|
2564
|
+
}),
|
|
2565
|
+
B(s, {
|
|
2566
|
+
class: "confirm-button footer-button",
|
|
2567
|
+
onClick: C,
|
|
2568
|
+
id: "themeButton"
|
|
2569
|
+
}, {
|
|
2570
|
+
default: q(() => u[1] || (u[1] = [
|
|
2571
|
+
me(se("确认"))
|
|
2572
|
+
])),
|
|
2573
|
+
_: 1,
|
|
2574
|
+
__: [1]
|
|
2575
|
+
})
|
|
2576
|
+
])
|
|
2577
|
+
]),
|
|
2578
|
+
_: 1
|
|
2579
|
+
}, 8, ["visible"])
|
|
2580
|
+
]);
|
|
2581
|
+
};
|
|
2582
|
+
}
|
|
2583
|
+
}, Ln = /* @__PURE__ */ Te(Sn, [["__scopeId", "data-v-2d9c5ab2"]]), On = { class: "method-content" }, Rn = {
|
|
2584
|
+
__name: "index",
|
|
2585
|
+
props: {
|
|
2586
|
+
itemData: {
|
|
2587
|
+
type: Array,
|
|
2588
|
+
default: () => []
|
|
2589
|
+
},
|
|
2590
|
+
childItemData: {
|
|
2591
|
+
type: Array,
|
|
2592
|
+
default: () => []
|
|
2593
|
+
},
|
|
2594
|
+
index: Number,
|
|
2595
|
+
changedContent: {
|
|
2596
|
+
type: Object,
|
|
2597
|
+
default: () => {
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
},
|
|
2601
|
+
setup(k) {
|
|
2602
|
+
const L = F([]), v = k, o = bl(Ue), m = F(!1), I = Vl(Ue), { itemData: j, isEdit: b } = Je(o), { activeMenuPath: $, platform: O } = Je(I), E = F(!1), ae = (C, c) => {
|
|
2603
|
+
const t = c;
|
|
2604
|
+
return C == null ? void 0 : C.map((N) => {
|
|
2605
|
+
var n;
|
|
2606
|
+
return N = (n = N == null ? void 0 : N.map((u, s) => {
|
|
2607
|
+
var i;
|
|
2608
|
+
return {
|
|
2609
|
+
key: (i = t[s]) == null ? void 0 : i.label,
|
|
2610
|
+
value: u
|
|
2611
|
+
};
|
|
2612
|
+
})) == null ? void 0 : n.filter((u) => u.key !== "操作"), N;
|
|
2613
|
+
});
|
|
2614
|
+
};
|
|
2615
|
+
Ee(
|
|
2616
|
+
() => j.value,
|
|
2617
|
+
async () => {
|
|
2618
|
+
b.value === "view" && !E.value && await U(p(v.itemData)), E.value = !1;
|
|
2619
|
+
},
|
|
2620
|
+
{ deep: !0 }
|
|
2621
|
+
);
|
|
2622
|
+
const H = async (C, c) => {
|
|
2623
|
+
var t;
|
|
2624
|
+
if (tl(C == null ? void 0 : C.name, c)) {
|
|
2625
|
+
let N = tl(C == null ? void 0 : C.name, c);
|
|
2626
|
+
C == null || C.id, C.compData = await Promise.all(
|
|
2627
|
+
(t = p(C.compData)) == null ? void 0 : t.map(async (n) => ((n == null ? void 0 : n.key) === "tableContents" && (n.extra = await Bl(p(n.contents)), n.contents = Fl(p(N))), n))
|
|
2628
|
+
);
|
|
2629
|
+
} else
|
|
2630
|
+
C = Al(C, c);
|
|
2631
|
+
return C;
|
|
2632
|
+
}, Q = async (C) => {
|
|
2633
|
+
var le, de, pe, a, _, M, w, P, ie, ce, g, V, l;
|
|
2634
|
+
let c = {};
|
|
2635
|
+
if (O.value !== "browser") {
|
|
2636
|
+
const x = [];
|
|
2637
|
+
c.form = {}, (le = p(C.content)) == null || le.forEach((z, D) => {
|
|
2638
|
+
var K, W, Z, fe, he, Be, Fe, xe, Ae, we, De, Ce, e, r;
|
|
2639
|
+
if ((z == null ? void 0 : z.comp) === "Table") {
|
|
2640
|
+
(W = (K = z == null ? void 0 : z.compData) == null ? void 0 : K.find((J) => (J == null ? void 0 : J.key) === "header")) == null || W.contents;
|
|
2641
|
+
let h = (he = (fe = (Z = z == null ? void 0 : z.compData) == null ? void 0 : Z.find((J) => (J == null ? void 0 : J.key) === "tableContents")) == null ? void 0 : fe.contents) == null ? void 0 : he.map((J) => J.slice(1));
|
|
2642
|
+
(we = (Ae = (xe = (Fe = (Be = z == null ? void 0 : z.compData) == null ? void 0 : Be.find((J) => (J == null ? void 0 : J.key) === "header")) == null ? void 0 : Fe.contents) == null ? void 0 : xe[0]) == null ? void 0 : Ae[0]) == null || we.label;
|
|
2643
|
+
let y = (Ce = (De = z == null ? void 0 : z.compData) == null ? void 0 : De.find((J) => (J == null ? void 0 : J.key) === "header")) == null ? void 0 : Ce.contents, R = [];
|
|
2644
|
+
h == null || h.forEach((J) => {
|
|
2645
|
+
let re = [];
|
|
2646
|
+
J == null || J.forEach((A, Y) => {
|
|
2647
|
+
var Ie;
|
|
2648
|
+
let ne = {};
|
|
2649
|
+
((Ie = y[Y]) == null ? void 0 : Ie.label) !== "操作" && (ne[y[Y].label] = A, re.push(ne));
|
|
2650
|
+
}), R.push(re);
|
|
2651
|
+
}), c[z.name] = R;
|
|
2652
|
+
} else {
|
|
2653
|
+
const h = (r = (e = z.compData) == null ? void 0 : e.find((y) => (y == null ? void 0 : y.key) === "formContent")) == null ? void 0 : r.contents;
|
|
2654
|
+
h == null || h.forEach((y) => {
|
|
2655
|
+
y.key !== "" && (y = {
|
|
2656
|
+
key: (y == null ? void 0 : y.key) ?? (y == null ? void 0 : y.label),
|
|
2657
|
+
value: y == null ? void 0 : y.value
|
|
2658
|
+
}, x.push(y));
|
|
2659
|
+
});
|
|
2660
|
+
}
|
|
2661
|
+
}), c.form = Tl(x);
|
|
2662
|
+
let oe = c.form;
|
|
2663
|
+
for (let z in c)
|
|
2664
|
+
z !== "form" && (oe[z] = $l(c[z]));
|
|
2665
|
+
if (C.api) {
|
|
2666
|
+
try {
|
|
2667
|
+
m.value = !0;
|
|
2668
|
+
const z = await cl.post(
|
|
2669
|
+
C.api,
|
|
2670
|
+
oe,
|
|
2671
|
+
{
|
|
2672
|
+
headers: {
|
|
2673
|
+
"Content-Type": "application/json"
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
);
|
|
2677
|
+
if (((de = z == null ? void 0 : z.data) == null ? void 0 : de.code) === 200 || ((pe = z == null ? void 0 : z.data) == null ? void 0 : pe.statusCode) === 200) {
|
|
2678
|
+
let D = await ((a = z == null ? void 0 : z.data) == null ? void 0 : a.data);
|
|
2679
|
+
const K = (_ = p(j.value)) == null ? void 0 : _.filter((he) => (he == null ? void 0 : he.comp) !== "methodButton"), W = await Promise.all(
|
|
2680
|
+
K.map((he) => H(he, D))
|
|
2681
|
+
);
|
|
2682
|
+
await Promise.all(W);
|
|
2683
|
+
const Z = (M = p(j.value)) == null ? void 0 : M.filter((he) => (he == null ? void 0 : he.comp) === "methodButton");
|
|
2684
|
+
let fe = [...W, ...Z];
|
|
2685
|
+
await El(fe), m.value = !1;
|
|
2686
|
+
} else
|
|
2687
|
+
je.error("方法调用失败:" + ((w = z == null ? void 0 : z.data) == null ? void 0 : w.errors)), m.value = !1;
|
|
2688
|
+
} catch {
|
|
2689
|
+
je.error("方法调用失败"), m.value = !1;
|
|
2690
|
+
}
|
|
2691
|
+
o.setFreshContent(!0);
|
|
2692
|
+
}
|
|
2693
|
+
} else if ((P = p(C.content)) == null || P.forEach((x, oe) => {
|
|
2694
|
+
var z, D, K, W, Z, fe, he, Be, Fe, xe, Ae, we, De, Ce, e, r, h, y, R;
|
|
2695
|
+
if ((x == null ? void 0 : x.comp) === "Table") {
|
|
2696
|
+
let J = Array.isArray((K = (D = (z = x == null ? void 0 : x.compData) == null ? void 0 : z.find((ne) => (ne == null ? void 0 : ne.key) === "header")) == null ? void 0 : D.contents) == null ? void 0 : K[0]) ? (he = (fe = (Z = (W = x == null ? void 0 : x.compData) == null ? void 0 : W.find((ne) => (ne == null ? void 0 : ne.key) === "header")) == null ? void 0 : Z.contents) == null ? void 0 : fe[0]) == null ? void 0 : he.some((ne) => ne == null ? void 0 : ne.children) : [], re = (xe = (Fe = (Be = x == null ? void 0 : x.compData) == null ? void 0 : Be.find((ne) => (ne == null ? void 0 : ne.key) === "tableContents")) == null ? void 0 : Fe.contents) == null ? void 0 : xe.map((ne) => ne.slice(1)), A = (e = (Ce = (De = (we = (Ae = x == null ? void 0 : x.compData) == null ? void 0 : Ae.find((ne) => (ne == null ? void 0 : ne.key) === "header")) == null ? void 0 : we.contents) == null ? void 0 : De[0]) == null ? void 0 : Ce[0]) == null ? void 0 : e.label, Y = (h = (r = x == null ? void 0 : x.compData) == null ? void 0 : r.find((ne) => (ne == null ? void 0 : ne.key) === "header")) == null ? void 0 : h.contents;
|
|
2697
|
+
if (J)
|
|
2698
|
+
(J == null ? void 0 : J.length) === 0 ? c[x.name] = ae(re, Y) : c[A] = ae(re, Y);
|
|
2699
|
+
else {
|
|
2700
|
+
const ne = [];
|
|
2701
|
+
Y = Y.slice(1, Y.length - 1), Y == null || Y.forEach((Ie, Re) => {
|
|
2702
|
+
re == null || re.forEach((te) => {
|
|
2703
|
+
ne.push({
|
|
2704
|
+
key: Ie.label + te[0],
|
|
2705
|
+
value: te[Re + 1]
|
|
2706
|
+
});
|
|
2707
|
+
});
|
|
2708
|
+
}), c["form" + oe] = ne;
|
|
2709
|
+
}
|
|
2710
|
+
} else {
|
|
2711
|
+
const J = (R = (y = x.compData) == null ? void 0 : y.find((A) => (A == null ? void 0 : A.key) === "formContent")) == null ? void 0 : R.contents;
|
|
2712
|
+
c.form = {};
|
|
2713
|
+
const re = [];
|
|
2714
|
+
J == null || J.forEach((A) => {
|
|
2715
|
+
A.key !== "" && (A = {
|
|
2716
|
+
key: (A == null ? void 0 : A.key) ?? (A == null ? void 0 : A.label),
|
|
2717
|
+
value: A == null ? void 0 : A.value
|
|
2718
|
+
}, re.push(A));
|
|
2719
|
+
}), c.form = re;
|
|
2720
|
+
}
|
|
2721
|
+
}), C.api) {
|
|
2722
|
+
let x = {};
|
|
2723
|
+
(ie = C == null ? void 0 : C.extraValues) == null || ie.forEach((z) => {
|
|
2724
|
+
var D, K;
|
|
2725
|
+
((D = Object.keys(z)) == null ? void 0 : D[0]) !== "data" ? x[Object.keys(z)[0]] = (K = Object.values(z)) == null ? void 0 : K[0] : x[Object.keys(z)[0]] = c;
|
|
2726
|
+
});
|
|
2727
|
+
const oe = await cl.post(C.api, x, {
|
|
2728
|
+
responseType: "blob",
|
|
2729
|
+
// 必须设置
|
|
2730
|
+
headers: {
|
|
2731
|
+
"Content-Type": "application/json"
|
|
2732
|
+
}
|
|
2733
|
+
});
|
|
2734
|
+
var t = new Blob([oe.data], {
|
|
2735
|
+
type: "application/octet-stream;charset=UTF-8"
|
|
2736
|
+
}), N = oe.headers["content-disposition"], n = new RegExp("filename=([^;]+\\.[^\\.;]+);*"), u = n.exec(N), s = ((V = (g = (ce = C == null ? void 0 : C.extraContent) == null ? void 0 : ce[0]) == null ? void 0 : g.split(".")) == null ? void 0 : V[0]) + "." + ((l = u[1].split(".")) == null ? void 0 : l[1]), i = document.createElement("a"), d = window.URL.createObjectURL(t), G = /^["](.*)["]$/g;
|
|
2737
|
+
i.style.display = "none", i.href = d, i.download = decodeURI(s.replace(G, "$1")), document.body.appendChild(i), i.click(), document.body.removeChild(i), window.URL.revokeObjectURL(d);
|
|
2738
|
+
}
|
|
2739
|
+
E.value = !0;
|
|
2740
|
+
}, U = async (C) => {
|
|
2741
|
+
var u, s, i;
|
|
2742
|
+
const c = p(C);
|
|
2743
|
+
let t;
|
|
2744
|
+
C != null && C[0].path && (t = await (c == null ? void 0 : c.map(async (d) => {
|
|
2745
|
+
var _, M, w, P, ie, ce, g, V, l, x, oe, z;
|
|
2746
|
+
const le = (M = (await Ye({
|
|
2747
|
+
key: {
|
|
2748
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
2749
|
+
type: "data",
|
|
2750
|
+
pageKey: (_ = C == null ? void 0 : C[0]) == null ? void 0 : _.path
|
|
2751
|
+
}
|
|
2752
|
+
})).data.result) == null ? void 0 : M[0], de = await Ye({
|
|
2753
|
+
key: {
|
|
2754
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
2755
|
+
type: "structure",
|
|
2756
|
+
pageKey: ((w = C == null ? void 0 : C[0]) == null ? void 0 : w.path) + "/" + (d == null ? void 0 : d.method) + "/算例1"
|
|
2757
|
+
}
|
|
2758
|
+
});
|
|
2759
|
+
let pe = [];
|
|
2760
|
+
((ie = (P = de == null ? void 0 : de.data) == null ? void 0 : P.result) == null ? void 0 : ie.length) > 0 && ((g = (ce = de == null ? void 0 : de.data) == null ? void 0 : ce.result) == null || g.forEach((D) => {
|
|
2761
|
+
var K, W, Z, fe, he, Be, Fe;
|
|
2762
|
+
((W = (K = D == null ? void 0 : D.value) == null ? void 0 : K.pageData) == null ? void 0 : W.name) === "输入" && ((fe = (Z = D == null ? void 0 : D.value) == null ? void 0 : Z.pageData) == null ? void 0 : fe.comp) === "Form" && ((Fe = (Be = (he = D == null ? void 0 : D.value) == null ? void 0 : he.pageData) == null ? void 0 : Be.compData) == null || Fe.forEach((xe) => {
|
|
2763
|
+
var Ae;
|
|
2764
|
+
(xe == null ? void 0 : xe.key) === "formContent" && ((Ae = xe == null ? void 0 : xe.contents) == null || Ae.forEach((we) => {
|
|
2765
|
+
let De = {};
|
|
2766
|
+
De[we.key] = we.value, pe.push(De);
|
|
2767
|
+
}));
|
|
2768
|
+
}));
|
|
2769
|
+
}));
|
|
2770
|
+
const a = await rl($.value, sessionStorage.getItem("systemKey"), "");
|
|
2771
|
+
return {
|
|
2772
|
+
buttonName: (l = (V = le == null ? void 0 : le.value) == null ? void 0 : V.tableData) == null ? void 0 : l.算法名称,
|
|
2773
|
+
api: (oe = (x = le == null ? void 0 : le.value) == null ? void 0 : x.tableData) == null ? void 0 : oe.算法体,
|
|
2774
|
+
content: a == null ? void 0 : a.filter((D) => D.comp !== "methodButton"),
|
|
2775
|
+
extraContent: (z = p(d.value)) == null ? void 0 : z.slice(1),
|
|
2776
|
+
methodName: (d == null ? void 0 : d.path) ?? "",
|
|
2777
|
+
extraValues: pe
|
|
2778
|
+
};
|
|
2779
|
+
})));
|
|
2780
|
+
const N = c == null ? void 0 : c.map(async (d) => {
|
|
2781
|
+
var _, M, w, P, ie, ce;
|
|
2782
|
+
const le = (_ = (await Ye({
|
|
2783
|
+
key: {
|
|
2784
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
2785
|
+
parentTable: "",
|
|
2786
|
+
type: "method",
|
|
2787
|
+
methodName: d.method
|
|
2788
|
+
}
|
|
2789
|
+
})).data.result) == null ? void 0 : _[0], de = await Ye({
|
|
2790
|
+
key: {
|
|
2791
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
2792
|
+
type: "methodData",
|
|
2793
|
+
tableId: le == null ? void 0 : le.id
|
|
2794
|
+
}
|
|
2795
|
+
}), pe = await rl($.value, sessionStorage.getItem("systemKey"), ""), a = (M = de.data.result) == null ? void 0 : M[0];
|
|
2796
|
+
return {
|
|
2797
|
+
buttonName: (w = le == null ? void 0 : le.key) == null ? void 0 : w.methodKey,
|
|
2798
|
+
api: (ie = (P = a == null ? void 0 : a.value) == null ? void 0 : P.tableData) == null ? void 0 : ie[0],
|
|
2799
|
+
content: pe == null ? void 0 : pe.filter((g) => g.comp !== "methodButton"),
|
|
2800
|
+
extraContent: (ce = p(d.value)) == null ? void 0 : ce.slice(1),
|
|
2801
|
+
methodName: (d == null ? void 0 : d.method) ?? ""
|
|
2802
|
+
};
|
|
2803
|
+
}), n = (u = C == null ? void 0 : C[0]) != null && u.path && ((s = C == null ? void 0 : C[0]) == null ? void 0 : s.path) !== "" ? await Promise.all(t) : await Promise.all(N);
|
|
2804
|
+
L.value = n == null ? void 0 : n.filter((d) => d == null ? void 0 : d.extraContent), (i = L.value) == null || i.forEach((d) => {
|
|
2805
|
+
var G;
|
|
2806
|
+
d.api === "" && ((G = d.content) == null || G.forEach((le) => {
|
|
2807
|
+
var de;
|
|
2808
|
+
le.comp == "Table" && o.setExtraContents(Il(le.compData, (de = d.extraContent) == null ? void 0 : de[0]));
|
|
2809
|
+
}));
|
|
2810
|
+
});
|
|
2811
|
+
};
|
|
2812
|
+
return Ee(
|
|
2813
|
+
() => v.itemData,
|
|
2814
|
+
async () => {
|
|
2815
|
+
b.value == "view" && !E.value && await U(p(v.itemData)), E.value = !1;
|
|
2816
|
+
},
|
|
2817
|
+
{ immediate: !0, deep: !0 }
|
|
2818
|
+
), (C, c) => (S(), X("div", On, [
|
|
2819
|
+
(S(!0), X(be, null, _e(L.value, (t) => (S(), X("div", null, [
|
|
2820
|
+
t.api !== "" ? (S(), ke(ml(Nl), {
|
|
2821
|
+
key: 0,
|
|
2822
|
+
class: "calculator-content",
|
|
2823
|
+
modelValue: t.buttonName,
|
|
2824
|
+
onClickTrigger: (N) => Q(t),
|
|
2825
|
+
loading: m.value
|
|
2826
|
+
}, null, 8, ["modelValue", "onClickTrigger", "loading"])) : Pe("", !0)
|
|
2827
|
+
]))), 256))
|
|
2828
|
+
]));
|
|
2829
|
+
}
|
|
2830
|
+
}, Vn = /* @__PURE__ */ Te(Rn, [["__scopeId", "data-v-b348121a"]]), Nn = {};
|
|
2831
|
+
function Pn(k, L) {
|
|
2832
|
+
return " 567 ";
|
|
2833
|
+
}
|
|
2834
|
+
const jn = /* @__PURE__ */ Te(Nn, [["render", Pn]]), Un = { class: "module content" }, Wn = { class: "module data" }, zn = { class: "module layout" }, Mn = { class: "form-content" }, Kn = /* @__PURE__ */ Ge({
|
|
2835
|
+
__name: "operate",
|
|
2836
|
+
props: {
|
|
2837
|
+
itemContents: {
|
|
2838
|
+
type: Array,
|
|
2839
|
+
default: () => []
|
|
2840
|
+
},
|
|
2841
|
+
originalItemContents: {
|
|
2842
|
+
type: Array,
|
|
2843
|
+
default: () => []
|
|
2844
|
+
}
|
|
2845
|
+
},
|
|
2846
|
+
emits: ["change"],
|
|
2847
|
+
setup(k, { emit: L }) {
|
|
2848
|
+
const v = k, o = L, m = nl({
|
|
2849
|
+
visible: !1,
|
|
2850
|
+
width: "40%",
|
|
2851
|
+
title: "签名配置"
|
|
2852
|
+
}), I = F("create"), j = F([
|
|
2853
|
+
{
|
|
2854
|
+
label: "取消",
|
|
2855
|
+
background: "#c0c4cc"
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
label: "确认",
|
|
2859
|
+
background: "#436aaf"
|
|
2860
|
+
}
|
|
2861
|
+
]), b = F([
|
|
2862
|
+
{
|
|
2863
|
+
label: "宽度(%):",
|
|
2864
|
+
prop: "signPadWidth",
|
|
2865
|
+
type: "number",
|
|
2866
|
+
value: "30"
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
label: "弹窗名称:",
|
|
2870
|
+
prop: "dialogTitle",
|
|
2871
|
+
type: "input",
|
|
2872
|
+
value: ""
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
label: "弹窗宽度(%):",
|
|
2876
|
+
prop: "dialogWidth",
|
|
2877
|
+
type: "number",
|
|
2878
|
+
value: "30"
|
|
2879
|
+
},
|
|
2880
|
+
{
|
|
2881
|
+
label: "弹窗显示:",
|
|
2882
|
+
prop: "dialogShow",
|
|
2883
|
+
type: "radio",
|
|
2884
|
+
contents: [
|
|
2885
|
+
{
|
|
2886
|
+
label: "显示",
|
|
2887
|
+
value: !0
|
|
2888
|
+
},
|
|
2889
|
+
{
|
|
2890
|
+
label: "隐藏",
|
|
2891
|
+
value: !1
|
|
2892
|
+
}
|
|
2893
|
+
],
|
|
2894
|
+
value: !1,
|
|
2895
|
+
isFormColHidden: !0
|
|
2896
|
+
},
|
|
2897
|
+
{
|
|
2898
|
+
label: "路径:",
|
|
2899
|
+
prop: "url",
|
|
2900
|
+
type: "input",
|
|
2901
|
+
value: "",
|
|
2902
|
+
isFormColHidden: !0
|
|
2903
|
+
}
|
|
2904
|
+
]), $ = ol(() => [
|
|
2905
|
+
{
|
|
2906
|
+
label: "",
|
|
2907
|
+
prop: "index",
|
|
2908
|
+
type: "input",
|
|
2909
|
+
value: "",
|
|
2910
|
+
isFormColHidden: !0
|
|
2911
|
+
},
|
|
2912
|
+
{
|
|
2913
|
+
label: "类型:",
|
|
2914
|
+
prop: "label",
|
|
2915
|
+
type: "select",
|
|
2916
|
+
contents: [
|
|
2917
|
+
{
|
|
2918
|
+
label: "电子签名",
|
|
2919
|
+
value: "电子签名"
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
label: "签字版",
|
|
2923
|
+
value: "签字版"
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
label: "上传签名",
|
|
2927
|
+
value: "上传签名"
|
|
2928
|
+
}
|
|
2929
|
+
],
|
|
2930
|
+
value: ""
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
label: "图标",
|
|
2934
|
+
prop: "icon",
|
|
2935
|
+
type: "inputPopover",
|
|
2936
|
+
value: ""
|
|
2937
|
+
}
|
|
2938
|
+
// {
|
|
2939
|
+
// label: '是否禁用',
|
|
2940
|
+
// prop: 'disabled',
|
|
2941
|
+
// type: 'radio',
|
|
2942
|
+
// contents: [
|
|
2943
|
+
// {
|
|
2944
|
+
// label: '是',
|
|
2945
|
+
// value: true,
|
|
2946
|
+
// },
|
|
2947
|
+
// {
|
|
2948
|
+
// label: '否',
|
|
2949
|
+
// value: false,
|
|
2950
|
+
// }
|
|
2951
|
+
// ],
|
|
2952
|
+
// value: false
|
|
2953
|
+
// },
|
|
2954
|
+
]), O = F({}), E = F([]), ae = () => ({
|
|
2955
|
+
comp: "Signature",
|
|
2956
|
+
compData: [
|
|
2957
|
+
{
|
|
2958
|
+
key: "signTypeList",
|
|
2959
|
+
contents: E.value
|
|
2960
|
+
},
|
|
2961
|
+
{
|
|
2962
|
+
key: "signConfig",
|
|
2963
|
+
contents: O.value
|
|
2964
|
+
}
|
|
2965
|
+
]
|
|
2966
|
+
}), H = (c) => {
|
|
2967
|
+
var t;
|
|
2968
|
+
O.value = p(c), o("change", (t = ae()) == null ? void 0 : t.compData);
|
|
2969
|
+
}, Q = (c) => {
|
|
2970
|
+
var t, N;
|
|
2971
|
+
if ((c == null ? void 0 : c.buttonName) === "确认") {
|
|
2972
|
+
const n = p(c == null ? void 0 : c.content);
|
|
2973
|
+
switch (I.value) {
|
|
2974
|
+
case "create":
|
|
2975
|
+
E.value.push({
|
|
2976
|
+
...n,
|
|
2977
|
+
index: ((t = E.value) == null ? void 0 : t.length) + 1
|
|
2978
|
+
});
|
|
2979
|
+
break;
|
|
2980
|
+
}
|
|
2981
|
+
o("change", (N = ae()) == null ? void 0 : N.compData), m.visible = !1;
|
|
2982
|
+
} else
|
|
2983
|
+
m.visible = !1;
|
|
2984
|
+
}, U = (c, t) => {
|
|
2985
|
+
var N, n;
|
|
2986
|
+
switch (c) {
|
|
2987
|
+
case "create":
|
|
2988
|
+
(N = $.value) == null || N.forEach((u) => {
|
|
2989
|
+
u.value = "";
|
|
2990
|
+
}), I.value = "create", m.visible = !0;
|
|
2991
|
+
break;
|
|
2992
|
+
case "update":
|
|
2993
|
+
(n = $.value) == null || n.forEach((u) => {
|
|
2994
|
+
u.value = t[u == null ? void 0 : u.prop];
|
|
2995
|
+
}), I.value = "update", m.visible = !0;
|
|
2996
|
+
break;
|
|
2997
|
+
case "delete":
|
|
2998
|
+
E.value.splice(t, 1), I.value = "delete";
|
|
2999
|
+
break;
|
|
3000
|
+
}
|
|
3001
|
+
}, C = () => {
|
|
3002
|
+
m.visible = !1;
|
|
3003
|
+
};
|
|
3004
|
+
return Ee(() => v == null ? void 0 : v.itemContents, (c) => {
|
|
3005
|
+
var t, N;
|
|
3006
|
+
c && (O.value = ((t = c == null ? void 0 : c.find((n) => n.key === "signConfig")) == null ? void 0 : t.contents) ?? {}, E.value = ((N = c == null ? void 0 : c.find((n) => n.key === "signTypeList")) == null ? void 0 : N.contents) ?? []);
|
|
3007
|
+
}, { immediate: !0 }), (c, t) => {
|
|
3008
|
+
const N = ye("svg-icon"), n = ye("el-button");
|
|
3009
|
+
return S(), X(be, null, [
|
|
3010
|
+
f("div", null, [
|
|
3011
|
+
f("div", Un, [
|
|
3012
|
+
t[2] || (t[2] = f("h4", { class: "module-title" }, "签名类型", -1)),
|
|
3013
|
+
B(n, {
|
|
3014
|
+
class: "module-icon",
|
|
3015
|
+
id: "themeButton",
|
|
3016
|
+
onClick: t[0] || (t[0] = (u) => U("create"))
|
|
3017
|
+
}, {
|
|
3018
|
+
icon: q(() => [
|
|
3019
|
+
B(N, {
|
|
3020
|
+
name: "Plus",
|
|
3021
|
+
class: "icon-size"
|
|
3022
|
+
})
|
|
3023
|
+
]),
|
|
3024
|
+
default: q(() => [
|
|
3025
|
+
t[1] || (t[1] = me(" 新增 "))
|
|
3026
|
+
]),
|
|
3027
|
+
_: 1,
|
|
3028
|
+
__: [1]
|
|
3029
|
+
})
|
|
3030
|
+
]),
|
|
3031
|
+
f("div", Wn, [
|
|
3032
|
+
(S(!0), X(be, null, _e(E.value, (u, s) => (S(), X("div", {
|
|
3033
|
+
class: "module-data-item",
|
|
3034
|
+
key: s
|
|
3035
|
+
}, [
|
|
3036
|
+
f("span", null, se(u == null ? void 0 : u.label), 1),
|
|
3037
|
+
f("div", null, [
|
|
3038
|
+
B(n, {
|
|
3039
|
+
type: "primary",
|
|
3040
|
+
size: "small",
|
|
3041
|
+
onClick: (i) => U("update", { ...u, index: s + 1 })
|
|
3042
|
+
}, {
|
|
3043
|
+
default: q(() => t[3] || (t[3] = [
|
|
3044
|
+
me("修改")
|
|
3045
|
+
])),
|
|
3046
|
+
_: 2,
|
|
3047
|
+
__: [3]
|
|
3048
|
+
}, 1032, ["onClick"]),
|
|
3049
|
+
B(n, {
|
|
3050
|
+
type: "danger",
|
|
3051
|
+
size: "small",
|
|
3052
|
+
onClick: (i) => U("delete", s)
|
|
3053
|
+
}, {
|
|
3054
|
+
default: q(() => t[4] || (t[4] = [
|
|
3055
|
+
me("删除")
|
|
3056
|
+
])),
|
|
3057
|
+
_: 2,
|
|
3058
|
+
__: [4]
|
|
3059
|
+
}, 1032, ["onClick"])
|
|
3060
|
+
])
|
|
3061
|
+
]))), 128))
|
|
3062
|
+
]),
|
|
3063
|
+
f("div", zn, [
|
|
3064
|
+
B(Le, {
|
|
3065
|
+
rowContents: b.value,
|
|
3066
|
+
onChange: H
|
|
3067
|
+
}, null, 8, ["rowContents"])
|
|
3068
|
+
])
|
|
3069
|
+
]),
|
|
3070
|
+
B(Oe, {
|
|
3071
|
+
visible: m.visible,
|
|
3072
|
+
title: m.title,
|
|
3073
|
+
onBeforeDestroy: C,
|
|
3074
|
+
width: m.width
|
|
3075
|
+
}, {
|
|
3076
|
+
default: q(() => [
|
|
3077
|
+
f("div", Mn, [
|
|
3078
|
+
(S(), ke(Le, {
|
|
3079
|
+
rowContents: $.value,
|
|
3080
|
+
key: $.value,
|
|
3081
|
+
isEnableWrap: !1,
|
|
3082
|
+
isButtonRow: !1,
|
|
3083
|
+
isStartJustify: !1,
|
|
3084
|
+
buttonValue: j.value,
|
|
3085
|
+
onOnButtonClick: Q
|
|
3086
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
3087
|
+
])
|
|
3088
|
+
]),
|
|
3089
|
+
_: 1
|
|
3090
|
+
}, 8, ["visible", "title", "width"])
|
|
3091
|
+
], 64);
|
|
3092
|
+
};
|
|
3093
|
+
}
|
|
3094
|
+
}), Jn = /* @__PURE__ */ Te(Kn, [["__scopeId", "data-v-487e0536"]]), qn = /* @__PURE__ */ Ge({
|
|
3095
|
+
__name: "index",
|
|
3096
|
+
props: {
|
|
3097
|
+
stepConfig: {
|
|
3098
|
+
type: Object,
|
|
3099
|
+
default: {}
|
|
3100
|
+
},
|
|
3101
|
+
stepList: {
|
|
3102
|
+
type: Array,
|
|
3103
|
+
default: () => []
|
|
3104
|
+
}
|
|
3105
|
+
},
|
|
3106
|
+
emits: ["clickStep", "clickTrigger", "changeTrigger"],
|
|
3107
|
+
setup(k, { emit: L }) {
|
|
3108
|
+
const v = k, o = L, m = F(1), I = ol(() => {
|
|
3109
|
+
var ae, H;
|
|
3110
|
+
return (ae = v == null ? void 0 : v.stepConfig) != null && ae.allowTrigger ? m.value : (H = v == null ? void 0 : v.stepConfig) == null ? void 0 : H.active;
|
|
3111
|
+
}), j = (ae, H) => {
|
|
3112
|
+
m.value = H, o("clickStep", ae, H);
|
|
3113
|
+
}, b = (ae) => Pl(ae), $ = () => {
|
|
3114
|
+
var H;
|
|
3115
|
+
const ae = (H = v == null ? void 0 : v.stepList) == null ? void 0 : H.find((Q, U) => U + 1 === I.value);
|
|
3116
|
+
return console.log("findStep", ae), ae ? ae == null ? void 0 : ae.children : [];
|
|
3117
|
+
}, O = (ae) => {
|
|
3118
|
+
o("clickTrigger", ae);
|
|
3119
|
+
}, E = (ae) => {
|
|
3120
|
+
o("changeTrigger", ae);
|
|
3121
|
+
};
|
|
3122
|
+
return (ae, H) => {
|
|
3123
|
+
var C, c, t, N, n;
|
|
3124
|
+
const Q = ye("el-step"), U = ye("el-steps");
|
|
3125
|
+
return S(), X(be, null, [
|
|
3126
|
+
B(U, {
|
|
3127
|
+
direction: (C = k.stepConfig) == null ? void 0 : C.direction,
|
|
3128
|
+
active: I.value,
|
|
3129
|
+
"finish-status": "success",
|
|
3130
|
+
simple: (c = k.stepConfig) == null ? void 0 : c.simple,
|
|
3131
|
+
"align-center": ((t = k.stepConfig) == null ? void 0 : t.alignCenter) ?? !0
|
|
3132
|
+
}, {
|
|
3133
|
+
default: q(() => [
|
|
3134
|
+
(S(!0), X(be, null, _e(k.stepList, (u, s) => (S(), ke(Q, {
|
|
3135
|
+
key: s,
|
|
3136
|
+
class: "step-item",
|
|
3137
|
+
onClick: (i) => j(u, s + 1)
|
|
3138
|
+
}, {
|
|
3139
|
+
title: q(() => [
|
|
3140
|
+
Ze(ae.$slots, "title", {
|
|
3141
|
+
title: u == null ? void 0 : u.title
|
|
3142
|
+
}, void 0, !0)
|
|
3143
|
+
]),
|
|
3144
|
+
description: q(() => [
|
|
3145
|
+
Ze(ae.$slots, "description", {
|
|
3146
|
+
description: u == null ? void 0 : u.description
|
|
3147
|
+
}, void 0, !0)
|
|
3148
|
+
]),
|
|
3149
|
+
_: 2
|
|
3150
|
+
}, 1032, ["onClick"]))), 128))
|
|
3151
|
+
]),
|
|
3152
|
+
_: 3
|
|
3153
|
+
}, 8, ["direction", "active", "simple", "align-center"]),
|
|
3154
|
+
(N = k.stepConfig) != null && N.allowTrigger && ((n = k.stepConfig) != null && n.active) ? (S(!0), X(be, { key: 0 }, _e($(), (u, s) => (S(), X("div", {
|
|
3155
|
+
key: s,
|
|
3156
|
+
class: "step-cont-wrap"
|
|
3157
|
+
}, [
|
|
3158
|
+
(S(), ke(Xe(b(u == null ? void 0 : u.type)), {
|
|
3159
|
+
modelValue: u.value,
|
|
3160
|
+
"onUpdate:modelValue": (i) => u.value = i,
|
|
3161
|
+
onClickTrigger: O,
|
|
3162
|
+
onChangeTrigger: E,
|
|
3163
|
+
content: u == null ? void 0 : u.content
|
|
3164
|
+
}, Ll({ _: 2 }, [
|
|
3165
|
+
_e(ae.$slots, (i, d) => ({
|
|
3166
|
+
name: d,
|
|
3167
|
+
fn: q((G) => [
|
|
3168
|
+
Ze(ae.$slots, d, Ol({ ref_for: !0 }, G || {}), void 0, !0)
|
|
3169
|
+
])
|
|
3170
|
+
}))
|
|
3171
|
+
]), 1064, ["modelValue", "onUpdate:modelValue", "content"]))
|
|
3172
|
+
]))), 128)) : Pe("", !0)
|
|
3173
|
+
], 64);
|
|
3174
|
+
};
|
|
3175
|
+
}
|
|
3176
|
+
}), Gn = /* @__PURE__ */ Te(qn, [["__scopeId", "data-v-d7c99969"]]), Hn = /* @__PURE__ */ Ge({
|
|
3177
|
+
__name: "index",
|
|
3178
|
+
props: {
|
|
3179
|
+
itemData: {
|
|
3180
|
+
type: Array,
|
|
3181
|
+
default: () => []
|
|
3182
|
+
},
|
|
3183
|
+
childItemData: {
|
|
3184
|
+
type: Array,
|
|
3185
|
+
default: () => []
|
|
3186
|
+
}
|
|
3187
|
+
},
|
|
3188
|
+
emits: ["clickStep"],
|
|
3189
|
+
setup(k, { emit: L }) {
|
|
3190
|
+
const v = k, o = L, m = F({}), I = F([]), j = (b, $) => {
|
|
3191
|
+
o("clickStep", b, $);
|
|
3192
|
+
};
|
|
3193
|
+
return Ee(() => v == null ? void 0 : v.itemData, (b) => {
|
|
3194
|
+
var $, O;
|
|
3195
|
+
I.value = ($ = b == null ? void 0 : b.find((E) => (E == null ? void 0 : E.key) === "stepList")) == null ? void 0 : $.contents, m.value = (O = b == null ? void 0 : b.find((E) => (E == null ? void 0 : E.key) === "stepConfig")) == null ? void 0 : O.contents;
|
|
3196
|
+
}, {
|
|
3197
|
+
immediate: !0
|
|
3198
|
+
}), (b, $) => {
|
|
3199
|
+
const O = ye("svg-icon");
|
|
3200
|
+
return S(), ke(Gn, {
|
|
3201
|
+
stepConfig: m.value,
|
|
3202
|
+
stepList: I.value,
|
|
3203
|
+
onClickStep: j
|
|
3204
|
+
}, {
|
|
3205
|
+
icon: q(() => [
|
|
3206
|
+
B(O, { name: "import" })
|
|
3207
|
+
]),
|
|
3208
|
+
title: q(({ title: E }) => [
|
|
3209
|
+
me(se(E), 1)
|
|
3210
|
+
]),
|
|
3211
|
+
description: q(({ description: E }) => [
|
|
3212
|
+
me(se(E), 1)
|
|
3213
|
+
]),
|
|
3214
|
+
_: 1
|
|
3215
|
+
}, 8, ["stepConfig", "stepList"]);
|
|
3216
|
+
};
|
|
3217
|
+
}
|
|
3218
|
+
}), Qn = /* @__PURE__ */ Ge({
|
|
3219
|
+
__name: "index",
|
|
3220
|
+
props: {
|
|
3221
|
+
activities: {
|
|
3222
|
+
type: Array,
|
|
3223
|
+
default: () => []
|
|
3224
|
+
},
|
|
3225
|
+
timeLineConfig: {
|
|
3226
|
+
type: Object,
|
|
3227
|
+
default: () => {
|
|
3228
|
+
}
|
|
3229
|
+
}
|
|
3230
|
+
},
|
|
3231
|
+
setup(k) {
|
|
3232
|
+
return (L, v) => {
|
|
3233
|
+
const o = ye("el-timeline-item"), m = ye("el-timeline");
|
|
3234
|
+
return S(), ke(m, null, {
|
|
3235
|
+
default: q(() => [
|
|
3236
|
+
(S(!0), X(be, null, _e(k.activities, (I, j) => (S(), ke(o, {
|
|
3237
|
+
key: j,
|
|
3238
|
+
timestamp: I.timestamp,
|
|
3239
|
+
placement: k.timeLineConfig.placement,
|
|
3240
|
+
center: k.timeLineConfig.isCenter,
|
|
3241
|
+
"hide-timestamp": !0,
|
|
3242
|
+
type: k.timeLineConfig.type,
|
|
3243
|
+
color: k.timeLineConfig.color,
|
|
3244
|
+
size: k.timeLineConfig.size,
|
|
3245
|
+
icon: k.timeLineConfig.icon,
|
|
3246
|
+
hollow: k.timeLineConfig.isHollow
|
|
3247
|
+
}, {
|
|
3248
|
+
default: q(() => [
|
|
3249
|
+
Ze(L.$slots, "content", {
|
|
3250
|
+
content: I == null ? void 0 : I.content,
|
|
3251
|
+
timestamp: I == null ? void 0 : I.timestamp
|
|
3252
|
+
}, void 0, !0)
|
|
3253
|
+
]),
|
|
3254
|
+
_: 2
|
|
3255
|
+
}, 1032, ["timestamp", "placement", "center", "type", "color", "size", "icon", "hollow"]))), 128))
|
|
3256
|
+
]),
|
|
3257
|
+
_: 3
|
|
3258
|
+
});
|
|
3259
|
+
};
|
|
3260
|
+
}
|
|
3261
|
+
}), Xn = /* @__PURE__ */ Te(Qn, [["__scopeId", "data-v-4172a886"]]), Yn = { class: "line-content" }, Zn = { class: "line-time" }, eo = /* @__PURE__ */ Ge({
|
|
3262
|
+
__name: "index",
|
|
3263
|
+
props: {
|
|
3264
|
+
itemData: {
|
|
3265
|
+
type: Array,
|
|
3266
|
+
default: () => []
|
|
3267
|
+
}
|
|
3268
|
+
},
|
|
3269
|
+
setup(k) {
|
|
3270
|
+
const L = k, v = F({}), o = F([]);
|
|
3271
|
+
return Ee(() => L == null ? void 0 : L.itemData, (m) => {
|
|
3272
|
+
var I, j;
|
|
3273
|
+
o.value = (I = m == null ? void 0 : m.find((b) => (b == null ? void 0 : b.key) === "timeLineList")) == null ? void 0 : I.contents, v.value = (j = m == null ? void 0 : m.find((b) => (b == null ? void 0 : b.key) === "timeLineConfig")) == null ? void 0 : j.contents;
|
|
3274
|
+
}, {
|
|
3275
|
+
immediate: !0
|
|
3276
|
+
}), (m, I) => (S(), ke(Xn, {
|
|
3277
|
+
activities: o.value,
|
|
3278
|
+
timeLineConfig: v.value
|
|
3279
|
+
}, {
|
|
3280
|
+
content: q(({ content: j, timestamp: b }) => [
|
|
3281
|
+
f("span", Yn, se(j), 1),
|
|
3282
|
+
f("span", Zn, se(b), 1)
|
|
3283
|
+
]),
|
|
3284
|
+
_: 1
|
|
3285
|
+
}, 8, ["activities", "timeLineConfig"]));
|
|
3286
|
+
}
|
|
3287
|
+
}), lo = /* @__PURE__ */ Te(eo, [["__scopeId", "data-v-b4d9deed"]]), ao = { class: "tabs-content" }, no = {
|
|
3288
|
+
__name: "index",
|
|
3289
|
+
props: {
|
|
3290
|
+
itemData: {
|
|
3291
|
+
type: Array,
|
|
3292
|
+
default: () => []
|
|
3293
|
+
},
|
|
3294
|
+
childItemData: {
|
|
3295
|
+
type: Array,
|
|
3296
|
+
default: () => []
|
|
3297
|
+
},
|
|
3298
|
+
index: Number
|
|
3299
|
+
},
|
|
3300
|
+
setup(k) {
|
|
3301
|
+
const L = k, v = F([]);
|
|
3302
|
+
return Ee(
|
|
3303
|
+
() => L == null ? void 0 : L.itemData,
|
|
3304
|
+
(o) => {
|
|
3305
|
+
const m = o.find((I) => (I == null ? void 0 : I.key) == "stepList");
|
|
3306
|
+
m && (v.value = m.contents.map((I) => ({
|
|
3307
|
+
value: I.value || I.title,
|
|
3308
|
+
label: I.label || I.title,
|
|
3309
|
+
children: I.children || []
|
|
3310
|
+
// 关键:传递子内容
|
|
3311
|
+
})));
|
|
3312
|
+
},
|
|
3313
|
+
{ immediate: !0, deep: !0 }
|
|
3314
|
+
), (o, m) => (S(), X("div", ao, [
|
|
3315
|
+
B(jl, { tabsContents: v.value }, null, 8, ["tabsContents"])
|
|
3316
|
+
]));
|
|
3317
|
+
}
|
|
3318
|
+
}, oo = /* @__PURE__ */ Te(no, [["__scopeId", "data-v-d3bb10b7"]]), ll = hl("tabComp", {
|
|
3319
|
+
state: () => ({
|
|
3320
|
+
itemData: [],
|
|
3321
|
+
originalData: [],
|
|
3322
|
+
extraContents: [],
|
|
3323
|
+
nodeDev: "",
|
|
3324
|
+
isEdit: "view",
|
|
3325
|
+
isRefreshCurStructure: !1,
|
|
3326
|
+
isSubmitCurStructure: !1,
|
|
3327
|
+
curStructureCompIds: []
|
|
3328
|
+
}),
|
|
3329
|
+
actions: {
|
|
3330
|
+
setItemData(k) {
|
|
3331
|
+
this.itemData = k;
|
|
3332
|
+
},
|
|
3333
|
+
setCurStructureCompIds(k) {
|
|
3334
|
+
this.curStructureCompIds = k;
|
|
3335
|
+
},
|
|
3336
|
+
setRefreshCurStructure(k) {
|
|
3337
|
+
this.isRefreshCurStructure = k;
|
|
3338
|
+
},
|
|
3339
|
+
setOriginalData(k) {
|
|
3340
|
+
this.originalData = k;
|
|
3341
|
+
},
|
|
3342
|
+
setExtraContents(k) {
|
|
3343
|
+
this.extraContents = k;
|
|
3344
|
+
},
|
|
3345
|
+
setNodeDev(k) {
|
|
3346
|
+
this.nodeDev = k;
|
|
3347
|
+
},
|
|
3348
|
+
setIsEdit(k) {
|
|
3349
|
+
this.isEdit = k;
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
}), so = { class: "type-select" }, io = ["onClick"], uo = { class: "list-icon" }, ro = {
|
|
3353
|
+
__name: "modelSelect",
|
|
3354
|
+
setup(k) {
|
|
3355
|
+
const L = ll(Ue), { itemData: v } = Je(L), o = (m) => {
|
|
3356
|
+
const I = p(v.value);
|
|
3357
|
+
I.push({
|
|
3358
|
+
comp: m.comp,
|
|
3359
|
+
name: m.name,
|
|
3360
|
+
compData: []
|
|
3361
|
+
}), L.setItemData(I);
|
|
3362
|
+
};
|
|
3363
|
+
return (m, I) => {
|
|
3364
|
+
const j = ye("svg-icon");
|
|
3365
|
+
return S(), X("div", so, [
|
|
3366
|
+
(S(!0), X(be, null, _e(ml(Ko), (b, $) => (S(), X("div", {
|
|
3367
|
+
class: "type-list",
|
|
3368
|
+
key: $
|
|
3369
|
+
}, [
|
|
3370
|
+
f("div", {
|
|
3371
|
+
class: "list-content",
|
|
3372
|
+
onClick: (O) => o(b)
|
|
3373
|
+
}, [
|
|
3374
|
+
f("div", uo, [
|
|
3375
|
+
B(j, {
|
|
3376
|
+
name: b.icon
|
|
3377
|
+
}, null, 8, ["name"])
|
|
3378
|
+
]),
|
|
3379
|
+
f("div", null, se(b.name), 1)
|
|
3380
|
+
], 8, io)
|
|
3381
|
+
]))), 128))
|
|
3382
|
+
]);
|
|
3383
|
+
};
|
|
3384
|
+
}
|
|
3385
|
+
}, to = /* @__PURE__ */ Te(ro, [["__scopeId", "data-v-91799bf8"]]), co = { class: "fill-content" }, po = { class: "operate-content" }, vo = { class: "collapse-title-content" }, fo = { class: "collapse-title-item" }, mo = { key: 1 }, ho = ["onClick"], yo = { class: "icon-content" }, bo = {
|
|
3386
|
+
key: 0,
|
|
3387
|
+
class: "edit-content"
|
|
3388
|
+
}, go = ["onClick"], Co = { class: "comp-child" }, _o = {
|
|
3389
|
+
__name: "modelFill",
|
|
3390
|
+
setup(k) {
|
|
3391
|
+
const L = ll(Ue), { itemData: v, originalData: o } = Je(L), m = F([]);
|
|
3392
|
+
F([]);
|
|
3393
|
+
const I = F([]), j = F([]), b = (Q) => {
|
|
3394
|
+
var C;
|
|
3395
|
+
let U = (C = p(j.value)) == null ? void 0 : C.map((c, t) => (Q === t && (c.content = !0), c));
|
|
3396
|
+
j.value = U;
|
|
3397
|
+
}, $ = (Q) => {
|
|
3398
|
+
var C;
|
|
3399
|
+
let U = (C = p(j.value)) == null ? void 0 : C.map((c, t) => (Q === t && (c.content = !1), c));
|
|
3400
|
+
j.value = U, m.value = p(v.value);
|
|
3401
|
+
}, O = (Q, U) => {
|
|
3402
|
+
var N;
|
|
3403
|
+
let C = (N = p(j.value)) == null ? void 0 : N.map((n, u) => (Q === u && (n.content = !1), n));
|
|
3404
|
+
j.value = C;
|
|
3405
|
+
const c = p(v.value), t = c == null ? void 0 : c.filter((n, u) => (u === Q && (n.name = U), n));
|
|
3406
|
+
L.setOriginalData(t), L.setItemData(t);
|
|
3407
|
+
};
|
|
3408
|
+
Ee(
|
|
3409
|
+
() => v.value,
|
|
3410
|
+
() => {
|
|
3411
|
+
var Q, U, C;
|
|
3412
|
+
!v.value || ((Q = v.value) == null ? void 0 : Q.length) === 0 ? m.value = [] : m.value = (U = p(v.value)) == null ? void 0 : U.filter((c) => (c == null ? void 0 : c.comp) !== "methodButton"), I.value = m.value, j.value = (C = p(I.value)) == null ? void 0 : C.map((c, t) => ({
|
|
3413
|
+
id: t,
|
|
3414
|
+
content: !1
|
|
3415
|
+
}));
|
|
3416
|
+
},
|
|
3417
|
+
{ deep: !0, immediate: !0 }
|
|
3418
|
+
);
|
|
3419
|
+
const E = (Q) => sl(Q), ae = (Q, U, C) => {
|
|
3420
|
+
var t, N;
|
|
3421
|
+
if (!Q) return;
|
|
3422
|
+
let c = p(v.value);
|
|
3423
|
+
c = (t = c == null ? void 0 : c.map((n, u) => (u === C && (n.compData = Q), n))) == null ? void 0 : t.filter((n) => (n == null ? void 0 : n.comp) !== "methodButton"), j.value = (N = p(c)) == null ? void 0 : N.map((n, u) => ({
|
|
3424
|
+
id: u,
|
|
3425
|
+
content: !1
|
|
3426
|
+
})), L.setOriginalData(c), L.setItemData(c);
|
|
3427
|
+
}, H = (Q) => {
|
|
3428
|
+
Ke.confirm("是否确认要删除", "", {
|
|
3429
|
+
confirmButtonText: "确认",
|
|
3430
|
+
cancelButtonText: "取消",
|
|
3431
|
+
type: "warning"
|
|
3432
|
+
}).then(() => {
|
|
3433
|
+
const U = p(v.value), C = U == null ? void 0 : U.filter((c, t) => t !== Q);
|
|
3434
|
+
L.setOriginalData(C), L.setItemData(C), je({
|
|
3435
|
+
type: "success",
|
|
3436
|
+
message: "删除成功"
|
|
3437
|
+
});
|
|
3438
|
+
}).catch(() => {
|
|
3439
|
+
});
|
|
3440
|
+
};
|
|
3441
|
+
return (Q, U) => {
|
|
3442
|
+
const C = ye("svg-icon");
|
|
3443
|
+
return S(), X("div", co, [
|
|
3444
|
+
U[1] || (U[1] = f("div", { class: "fill-operate" }, se("操作栏"), -1)),
|
|
3445
|
+
f("div", po, [
|
|
3446
|
+
B(Kl, {
|
|
3447
|
+
class: "collapse-content",
|
|
3448
|
+
collapseContents: m.value
|
|
3449
|
+
}, {
|
|
3450
|
+
title: q(({ item: c, index: t }) => {
|
|
3451
|
+
var N, n, u, s, i, d, G, le, de, pe;
|
|
3452
|
+
return [
|
|
3453
|
+
f("div", vo, [
|
|
3454
|
+
f("div", fo, [
|
|
3455
|
+
(n = (N = j.value) == null ? void 0 : N.find((a) => a.id === t)) != null && n.content ? Pe("", !0) : (S(), X("div", {
|
|
3456
|
+
key: 0,
|
|
3457
|
+
class: "collapse-title",
|
|
3458
|
+
style: Rl({ marginRight: c.name && c.name !== "" ? "8px" : "0px" })
|
|
3459
|
+
}, se(c.name), 5)),
|
|
3460
|
+
(s = (u = j.value) == null ? void 0 : u.find((a) => a.id === t)) != null && s.content ? (S(), X("div", mo, [
|
|
3461
|
+
B(Ul, {
|
|
3462
|
+
modelValue: c.name,
|
|
3463
|
+
"onUpdate:modelValue": (a) => c.name = a,
|
|
3464
|
+
onClick: U[0] || (U[0] = Qe(() => {
|
|
3465
|
+
}, ["stop"]))
|
|
3466
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
3467
|
+
])) : Pe("", !0),
|
|
3468
|
+
(d = (i = j.value) == null ? void 0 : i.find((a) => a.id === t)) != null && d.content ? Pe("", !0) : (S(), X("div", {
|
|
3469
|
+
key: 2,
|
|
3470
|
+
onClick: Qe((a) => b(t), ["stop"]),
|
|
3471
|
+
class: "icon-content"
|
|
3472
|
+
}, [
|
|
3473
|
+
B(C, {
|
|
3474
|
+
name: "Edit",
|
|
3475
|
+
style: { width: "16px", height: "16px" }
|
|
3476
|
+
})
|
|
3477
|
+
], 8, ho))
|
|
3478
|
+
]),
|
|
3479
|
+
f("div", yo, [
|
|
3480
|
+
(le = (G = j.value) == null ? void 0 : G.find((a) => a.id === t)) != null && le.content ? (S(), X("div", bo, [
|
|
3481
|
+
B(C, {
|
|
3482
|
+
name: "Cancel",
|
|
3483
|
+
style: { width: "16px", height: "16px" },
|
|
3484
|
+
class: "icon-content",
|
|
3485
|
+
onClick: Qe((a) => $(t), ["stop"])
|
|
3486
|
+
}, null, 8, ["onClick"]),
|
|
3487
|
+
B(C, {
|
|
3488
|
+
name: "Save",
|
|
3489
|
+
onClick: Qe((a) => O(t, c.name), ["stop"]),
|
|
3490
|
+
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
3491
|
+
class: "icon-content"
|
|
3492
|
+
}, null, 8, ["onClick"])
|
|
3493
|
+
])) : Pe("", !0),
|
|
3494
|
+
(pe = (de = j.value) == null ? void 0 : de.find((a) => a.id === t)) != null && pe.content ? Pe("", !0) : (S(), X("div", {
|
|
3495
|
+
key: 1,
|
|
3496
|
+
onClick: Qe((a) => H(t), ["stop"]),
|
|
3497
|
+
class: "icon-content"
|
|
3498
|
+
}, [
|
|
3499
|
+
B(C, {
|
|
3500
|
+
name: "Delete",
|
|
3501
|
+
style: { width: "16px", height: "16px" }
|
|
3502
|
+
})
|
|
3503
|
+
], 8, go))
|
|
3504
|
+
])
|
|
3505
|
+
])
|
|
3506
|
+
];
|
|
3507
|
+
}),
|
|
3508
|
+
content: q(({ item: c, index: t }) => {
|
|
3509
|
+
var N, n;
|
|
3510
|
+
return [
|
|
3511
|
+
f("div", Co, [
|
|
3512
|
+
(S(), ke(Xe(E(c.comp + "Operate")), {
|
|
3513
|
+
itemContents: c == null ? void 0 : c.compData,
|
|
3514
|
+
originalItemContents: (n = (N = I.value) == null ? void 0 : N.find((u, s) => s === t)) == null ? void 0 : n.compData,
|
|
3515
|
+
onChange: (u) => ae(u, c, t)
|
|
3516
|
+
}, null, 40, ["itemContents", "originalItemContents", "onChange"]))
|
|
3517
|
+
])
|
|
3518
|
+
];
|
|
3519
|
+
}),
|
|
3520
|
+
_: 1
|
|
3521
|
+
}, 8, ["collapseContents"])
|
|
3522
|
+
])
|
|
3523
|
+
]);
|
|
3524
|
+
};
|
|
3525
|
+
}
|
|
3526
|
+
}, ko = /* @__PURE__ */ Te(_o, [["__scopeId", "data-v-78d7fc46"]]), wo = {
|
|
3527
|
+
key: 0,
|
|
3528
|
+
class: "show-content"
|
|
3529
|
+
}, xo = { style: { display: "flex" } }, Do = {
|
|
3530
|
+
__name: "modelShow",
|
|
3531
|
+
setup(k) {
|
|
3532
|
+
const L = ll(Ue), { itemData: v } = Je(L), o = F([]);
|
|
3533
|
+
Ee(
|
|
3534
|
+
() => v.value,
|
|
3535
|
+
() => {
|
|
3536
|
+
var I;
|
|
3537
|
+
!v.value || ((I = v.value) == null ? void 0 : I.length) === 0 ? o.value = [] : o.value = p(v.value);
|
|
3538
|
+
},
|
|
3539
|
+
{ deep: !0, immediate: !0 }
|
|
3540
|
+
);
|
|
3541
|
+
const m = (I) => sl(I);
|
|
3542
|
+
return (I, j) => {
|
|
3543
|
+
var b;
|
|
3544
|
+
return ((b = o.value) == null ? void 0 : b.length) > 0 ? (S(), X("div", wo, [
|
|
3545
|
+
(S(!0), X(be, null, _e(o.value, ($, O) => (S(), X("div", {
|
|
3546
|
+
class: "item-content",
|
|
3547
|
+
key: O
|
|
3548
|
+
}, [
|
|
3549
|
+
f("div", xo, se($.name), 1),
|
|
3550
|
+
(S(), ke(Xe(m($.comp)), {
|
|
3551
|
+
itemData: $ == null ? void 0 : $.compData,
|
|
3552
|
+
childItemData: $ == null ? void 0 : $.itemChildData,
|
|
3553
|
+
key: O
|
|
3554
|
+
}, null, 8, ["itemData", "childItemData"]))
|
|
3555
|
+
]))), 128))
|
|
3556
|
+
])) : Pe("", !0);
|
|
3557
|
+
};
|
|
3558
|
+
}
|
|
3559
|
+
}, Io = /* @__PURE__ */ Te(Do, [["__scopeId", "data-v-3f3e863e"]]), To = { class: "tabs-header" }, $o = { class: "tabs-list" }, Eo = { class: "tab-name" }, Bo = { class: "tab-actions" }, Fo = ["onClick"], Ao = ["onClick"], So = ["onClick"], Lo = { class: "model-operate" }, Oo = {
|
|
3560
|
+
class: "model-select",
|
|
3561
|
+
style: { display: "unset" }
|
|
3562
|
+
}, Ro = { class: "existing-components" }, Vo = { class: "component-list" }, No = ["onClick"], Po = { class: "component-info" }, jo = { class: "component-type" }, Uo = { class: "component-name" }, Wo = { class: "model-fill" }, zo = {
|
|
3563
|
+
__name: "operate",
|
|
3564
|
+
props: {
|
|
3565
|
+
itemContents: {
|
|
3566
|
+
type: Array,
|
|
3567
|
+
default: () => []
|
|
3568
|
+
}
|
|
3569
|
+
},
|
|
3570
|
+
emits: ["change"],
|
|
3571
|
+
setup(k, { emit: L }) {
|
|
3572
|
+
const v = k, o = L, m = F([]), I = F(!1), j = F(""), b = F({ title: "" }), $ = F(-1), O = F(!1), E = F(-1), ae = F(/* @__PURE__ */ new Map()), H = F(null), Q = ll(Ue), { itemData: U } = Je(Q), C = () => {
|
|
3573
|
+
j.value = "新增标签页", b.value.title = "", $.value = -1, I.value = !0;
|
|
3574
|
+
}, c = (V) => {
|
|
3575
|
+
j.value = "修改标签页", b.value.title = m.value[V].title, $.value = V, I.value = !0;
|
|
3576
|
+
}, t = (V) => {
|
|
3577
|
+
const l = u(V);
|
|
3578
|
+
ae.value.delete(l), m.value.splice(V, 1), g();
|
|
3579
|
+
}, N = () => {
|
|
3580
|
+
if (b.value.title.trim()) {
|
|
3581
|
+
if ($.value === -1) {
|
|
3582
|
+
const V = {
|
|
3583
|
+
title: b.value.title,
|
|
3584
|
+
value: b.value.title,
|
|
3585
|
+
label: b.value.title,
|
|
3586
|
+
children: [],
|
|
3587
|
+
id: n()
|
|
3588
|
+
};
|
|
3589
|
+
m.value.push(V);
|
|
3590
|
+
} else
|
|
3591
|
+
m.value[$.value].title = b.value.title, m.value[$.value].value = b.value.title, m.value[$.value].label = b.value.title;
|
|
3592
|
+
I.value = !1, g();
|
|
3593
|
+
}
|
|
3594
|
+
}, n = () => `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, u = (V) => {
|
|
3595
|
+
const l = m.value[V];
|
|
3596
|
+
return l.id || (l.id = n()), l.id;
|
|
3597
|
+
}, s = (V) => {
|
|
3598
|
+
var oe;
|
|
3599
|
+
E.value = V;
|
|
3600
|
+
const l = u(V);
|
|
3601
|
+
H.value = p(U.value);
|
|
3602
|
+
let x = ae.value.get(l);
|
|
3603
|
+
!x && ((oe = m.value[V].children) == null ? void 0 : oe.length) > 0 && (x = le(m.value[V].children)), x ? Q.setItemData(p(x)) : Q.setItemData([]), O.value = !0;
|
|
3604
|
+
}, i = ol(() => {
|
|
3605
|
+
const V = bl(Ue), l = Je(V).itemData.value;
|
|
3606
|
+
return console.log("可用组件数据", l), !l || !Array.isArray(l) ? [] : l.filter((x) => {
|
|
3607
|
+
var oe;
|
|
3608
|
+
if (x.comp === "Tabs" && E.value >= 0) {
|
|
3609
|
+
const z = u(E.value);
|
|
3610
|
+
if ((oe = x.compData) == null ? void 0 : oe.some(
|
|
3611
|
+
(K) => {
|
|
3612
|
+
var W;
|
|
3613
|
+
return K.key === "stepList" && ((W = K.contents) == null ? void 0 : W.some((Z) => Z.id === z));
|
|
3614
|
+
}
|
|
3615
|
+
)) return !1;
|
|
3616
|
+
}
|
|
3617
|
+
return !0;
|
|
3618
|
+
});
|
|
3619
|
+
}), d = (V) => ({
|
|
3620
|
+
Table: "表格",
|
|
3621
|
+
Form: "表单",
|
|
3622
|
+
Tabs: "标签页",
|
|
3623
|
+
Chart: "图表",
|
|
3624
|
+
Card: "卡片"
|
|
3625
|
+
})[V] || V, G = (V) => {
|
|
3626
|
+
var l;
|
|
3627
|
+
try {
|
|
3628
|
+
const x = p(V);
|
|
3629
|
+
x.id = Date.now() + Math.random(), x.comp === "Tabs" && ((l = x.compData) == null || l.forEach((z) => {
|
|
3630
|
+
z.key === "stepList" && z.contents && z.contents.forEach((D) => {
|
|
3631
|
+
D.id = n();
|
|
3632
|
+
});
|
|
3633
|
+
}));
|
|
3634
|
+
const oe = p(U.value);
|
|
3635
|
+
oe.push(x), Q.setItemData(oe);
|
|
3636
|
+
} catch (x) {
|
|
3637
|
+
console.error("添加组件失败:", x);
|
|
3638
|
+
}
|
|
3639
|
+
}, le = (V) => V.map((l) => {
|
|
3640
|
+
var x;
|
|
3641
|
+
switch (l.type) {
|
|
3642
|
+
case "form":
|
|
3643
|
+
return {
|
|
3644
|
+
comp: "Form",
|
|
3645
|
+
name: l.value || "表单",
|
|
3646
|
+
compData: de(l.content)
|
|
3647
|
+
};
|
|
3648
|
+
case "table":
|
|
3649
|
+
return {
|
|
3650
|
+
comp: "Table",
|
|
3651
|
+
name: l.value || "表格",
|
|
3652
|
+
compData: pe(l.content)
|
|
3653
|
+
};
|
|
3654
|
+
default:
|
|
3655
|
+
return {
|
|
3656
|
+
comp: "Unknown",
|
|
3657
|
+
name: l.value || "",
|
|
3658
|
+
compData: ((x = l.content) == null ? void 0 : x.originalData) || []
|
|
3659
|
+
};
|
|
3660
|
+
}
|
|
3661
|
+
}), de = (V) => {
|
|
3662
|
+
if (!V) return [];
|
|
3663
|
+
const l = [];
|
|
3664
|
+
return V.rowContents && l.push({
|
|
3665
|
+
key: "formContent",
|
|
3666
|
+
contents: V.rowContents
|
|
3667
|
+
}), V.buttonValue && l.push({
|
|
3668
|
+
key: "formButton",
|
|
3669
|
+
contents: V.buttonValue
|
|
3670
|
+
}), typeof V.isEnableWrap < "u" && l.push({
|
|
3671
|
+
key: "enableWrap",
|
|
3672
|
+
contents: V.isEnableWrap
|
|
3673
|
+
}), l;
|
|
3674
|
+
}, pe = (V) => [], a = () => {
|
|
3675
|
+
if (E.value >= 0 && E.value < m.value.length) {
|
|
3676
|
+
const V = u(E.value);
|
|
3677
|
+
ae.value.set(V, p(U.value)), m.value[E.value].children = w(U.value), console.log("保存后的数据", w(U.value));
|
|
3678
|
+
}
|
|
3679
|
+
O.value = !1, E.value = -1, H.value = null, g();
|
|
3680
|
+
}, _ = () => {
|
|
3681
|
+
H.value && Q.setItemData(p(H.value)), O.value = !1, E.value = -1, H.value = null;
|
|
3682
|
+
}, M = () => {
|
|
3683
|
+
O.value && _();
|
|
3684
|
+
}, w = (V) => {
|
|
3685
|
+
if (!Array.isArray(V))
|
|
3686
|
+
throw new Error("sourceData must be an array");
|
|
3687
|
+
return V.map((l, x) => {
|
|
3688
|
+
if (!l || typeof l != "object")
|
|
3689
|
+
return l;
|
|
3690
|
+
const { comp: oe, name: z, compData: D } = l;
|
|
3691
|
+
switch (oe) {
|
|
3692
|
+
case "Form":
|
|
3693
|
+
return {
|
|
3694
|
+
type: "form",
|
|
3695
|
+
content: P(D || []),
|
|
3696
|
+
value: "表单"
|
|
3697
|
+
};
|
|
3698
|
+
case "Table":
|
|
3699
|
+
return {
|
|
3700
|
+
type: "table",
|
|
3701
|
+
content: ie(D || []),
|
|
3702
|
+
value: "表格"
|
|
3703
|
+
};
|
|
3704
|
+
default:
|
|
3705
|
+
return {
|
|
3706
|
+
type: "xxx",
|
|
3707
|
+
content: ce(D || []),
|
|
3708
|
+
value: ""
|
|
3709
|
+
};
|
|
3710
|
+
}
|
|
3711
|
+
});
|
|
3712
|
+
}, P = (V) => {
|
|
3713
|
+
const l = {
|
|
3714
|
+
formRules: {},
|
|
3715
|
+
rowContents: [],
|
|
3716
|
+
buttonValue: [],
|
|
3717
|
+
rowValues: [],
|
|
3718
|
+
isEnableWrap: !0,
|
|
3719
|
+
isRowFlex: !0,
|
|
3720
|
+
isButtonRow: !0,
|
|
3721
|
+
isEdit: !0,
|
|
3722
|
+
isStartJustify: !0
|
|
3723
|
+
}, x = {
|
|
3724
|
+
formContent: "rowContents",
|
|
3725
|
+
enableWrap: "isEnableWrap",
|
|
3726
|
+
formButton: "buttonValue"
|
|
3727
|
+
};
|
|
3728
|
+
return V.forEach((oe, z) => {
|
|
3729
|
+
if (!oe || typeof oe != "object") {
|
|
3730
|
+
console.warn(`Invalid config at index ${z}:`, oe);
|
|
3731
|
+
return;
|
|
3732
|
+
}
|
|
3733
|
+
const { key: D, contents: K } = oe, W = x[D];
|
|
3734
|
+
if (!W) {
|
|
3735
|
+
console.warn(`Unknown Form config key: ${D}`);
|
|
3736
|
+
return;
|
|
3737
|
+
}
|
|
3738
|
+
D === "enableWrap" ? l[W] = !!K : l[W] = Array.isArray(K) ? K : [];
|
|
3739
|
+
}), l;
|
|
3740
|
+
}, ie = (V) => {
|
|
3741
|
+
const l = {
|
|
3742
|
+
columns: [],
|
|
3743
|
+
tableData: [],
|
|
3744
|
+
extraButton: [],
|
|
3745
|
+
rowButton: [],
|
|
3746
|
+
currentPage: 0,
|
|
3747
|
+
total: 0,
|
|
3748
|
+
pageSize: 0,
|
|
3749
|
+
isShowPagination: !0,
|
|
3750
|
+
isShowEdit: !0,
|
|
3751
|
+
isMoveColumn: !0,
|
|
3752
|
+
isShowDelete: !0
|
|
3753
|
+
}, x = {
|
|
3754
|
+
header: "columns",
|
|
3755
|
+
tableContents: "tableData"
|
|
3756
|
+
};
|
|
3757
|
+
return V.forEach((oe, z) => {
|
|
3758
|
+
if (!oe || typeof oe != "object") {
|
|
3759
|
+
console.warn(`Invalid config at index ${z}:`, oe);
|
|
3760
|
+
return;
|
|
3761
|
+
}
|
|
3762
|
+
const { key: D, contents: K } = oe, W = x[D];
|
|
3763
|
+
if (!W) {
|
|
3764
|
+
console.warn(`Unknown Table config key: ${D}`);
|
|
3765
|
+
return;
|
|
3766
|
+
}
|
|
3767
|
+
l[W] = Array.isArray(K) ? K : [];
|
|
3768
|
+
}), l;
|
|
3769
|
+
}, ce = (V) => (console.log("Default conversion logic - to be implemented"), {
|
|
3770
|
+
originalData: V,
|
|
3771
|
+
processed: !1,
|
|
3772
|
+
componentType: "unknown"
|
|
3773
|
+
}), g = () => {
|
|
3774
|
+
const V = [
|
|
3775
|
+
{
|
|
3776
|
+
key: "stepList",
|
|
3777
|
+
contents: m.value
|
|
3778
|
+
}
|
|
3779
|
+
];
|
|
3780
|
+
o("change", V);
|
|
3781
|
+
};
|
|
3782
|
+
return Ee(
|
|
3783
|
+
() => v.itemContents,
|
|
3784
|
+
(V) => {
|
|
3785
|
+
if (V && V.length > 0) {
|
|
3786
|
+
const l = V.find((x) => x.key === "stepList");
|
|
3787
|
+
l && l.contents && (m.value = l.contents.map((x) => ({
|
|
3788
|
+
title: x.title || "",
|
|
3789
|
+
value: x.value || x.title || "",
|
|
3790
|
+
label: x.label || x.title || "",
|
|
3791
|
+
children: x.children || [],
|
|
3792
|
+
id: x.id || n()
|
|
3793
|
+
})));
|
|
3794
|
+
}
|
|
3795
|
+
},
|
|
3796
|
+
{ immediate: !0, deep: !0 }
|
|
3797
|
+
), (V, l) => {
|
|
3798
|
+
const x = ye("svg-icon"), oe = ye("el-input"), z = ye("el-form-item"), D = ye("el-form");
|
|
3799
|
+
return S(), X("div", null, [
|
|
3800
|
+
f("div", To, [
|
|
3801
|
+
l[6] || (l[6] = f("h4", null, "标签页管理", -1)),
|
|
3802
|
+
f("button", { onClick: C }, [
|
|
3803
|
+
B(x, {
|
|
3804
|
+
name: "Plus",
|
|
3805
|
+
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
3806
|
+
}),
|
|
3807
|
+
l[5] || (l[5] = me(" 新增标签页 "))
|
|
3808
|
+
])
|
|
3809
|
+
]),
|
|
3810
|
+
f("div", $o, [
|
|
3811
|
+
(S(!0), X(be, null, _e(m.value, (K, W) => (S(), X("div", {
|
|
3812
|
+
class: "tab-item",
|
|
3813
|
+
key: W
|
|
3814
|
+
}, [
|
|
3815
|
+
f("span", Eo, se(K.title), 1),
|
|
3816
|
+
f("div", Bo, [
|
|
3817
|
+
f("button", {
|
|
3818
|
+
onClick: (Z) => c(W)
|
|
3819
|
+
}, "修改标题", 8, Fo),
|
|
3820
|
+
f("button", {
|
|
3821
|
+
onClick: (Z) => s(W)
|
|
3822
|
+
}, "布局调整", 8, Ao),
|
|
3823
|
+
f("button", {
|
|
3824
|
+
onClick: (Z) => t(W)
|
|
3825
|
+
}, "删除", 8, So)
|
|
3826
|
+
])
|
|
3827
|
+
]))), 128))
|
|
3828
|
+
]),
|
|
3829
|
+
B(Oe, {
|
|
3830
|
+
modelValue: I.value,
|
|
3831
|
+
"onUpdate:modelValue": l[2] || (l[2] = (K) => I.value = K),
|
|
3832
|
+
title: j.value,
|
|
3833
|
+
onBeforeDestroy: l[3] || (l[3] = (K) => I.value = !1)
|
|
3834
|
+
}, {
|
|
3835
|
+
footer: q(() => [
|
|
3836
|
+
f("button", {
|
|
3837
|
+
onClick: l[1] || (l[1] = (K) => I.value = !1)
|
|
3838
|
+
}, "取消"),
|
|
3839
|
+
f("button", {
|
|
3840
|
+
type: "primary",
|
|
3841
|
+
onClick: N
|
|
3842
|
+
}, "确定")
|
|
3843
|
+
]),
|
|
3844
|
+
default: q(() => [
|
|
3845
|
+
B(D, {
|
|
3846
|
+
model: b.value,
|
|
3847
|
+
"label-width": "80px"
|
|
3848
|
+
}, {
|
|
3849
|
+
default: q(() => [
|
|
3850
|
+
B(z, {
|
|
3851
|
+
label: "标签名称",
|
|
3852
|
+
required: ""
|
|
3853
|
+
}, {
|
|
3854
|
+
default: q(() => [
|
|
3855
|
+
B(oe, {
|
|
3856
|
+
modelValue: b.value.title,
|
|
3857
|
+
"onUpdate:modelValue": l[0] || (l[0] = (K) => b.value.title = K),
|
|
3858
|
+
placeholder: "请输入标签页名称"
|
|
3859
|
+
}, null, 8, ["modelValue"])
|
|
3860
|
+
]),
|
|
3861
|
+
_: 1
|
|
3862
|
+
})
|
|
3863
|
+
]),
|
|
3864
|
+
_: 1
|
|
3865
|
+
}, 8, ["model"])
|
|
3866
|
+
]),
|
|
3867
|
+
_: 1
|
|
3868
|
+
}, 8, ["modelValue", "title"]),
|
|
3869
|
+
B(Oe, {
|
|
3870
|
+
modelValue: O.value,
|
|
3871
|
+
"onUpdate:modelValue": l[4] || (l[4] = (K) => O.value = K),
|
|
3872
|
+
title: "布局调整",
|
|
3873
|
+
fullScreen: "",
|
|
3874
|
+
onBeforeDestroy: M
|
|
3875
|
+
}, {
|
|
3876
|
+
footer: q(() => [
|
|
3877
|
+
f("button", { onClick: _ }, "取消"),
|
|
3878
|
+
f("button", { onClick: a }, "确定")
|
|
3879
|
+
]),
|
|
3880
|
+
default: q(() => [
|
|
3881
|
+
f("div", Lo, [
|
|
3882
|
+
f("div", Oo, [
|
|
3883
|
+
B(to),
|
|
3884
|
+
f("div", Ro, [
|
|
3885
|
+
l[8] || (l[8] = f("h5", null, "添加已有组件", -1)),
|
|
3886
|
+
f("div", Vo, [
|
|
3887
|
+
(S(!0), X(be, null, _e(i.value, (K) => (S(), X("div", {
|
|
3888
|
+
key: K.id,
|
|
3889
|
+
class: "component-item",
|
|
3890
|
+
onClick: (W) => G(K)
|
|
3891
|
+
}, [
|
|
3892
|
+
f("div", Po, [
|
|
3893
|
+
f("span", jo, se(d(K.comp)), 1),
|
|
3894
|
+
f("span", Uo, se(K.name), 1)
|
|
3895
|
+
]),
|
|
3896
|
+
l[7] || (l[7] = f("button", { class: "add-btn" }, "添加", -1))
|
|
3897
|
+
], 8, No))), 128))
|
|
3898
|
+
])
|
|
3899
|
+
])
|
|
3900
|
+
]),
|
|
3901
|
+
(S(), X("div", {
|
|
3902
|
+
class: "model-show",
|
|
3903
|
+
key: V.innerWidth
|
|
3904
|
+
}, [
|
|
3905
|
+
B(Io)
|
|
3906
|
+
])),
|
|
3907
|
+
f("div", Wo, [
|
|
3908
|
+
B(ko)
|
|
3909
|
+
])
|
|
3910
|
+
])
|
|
3911
|
+
]),
|
|
3912
|
+
_: 1
|
|
3913
|
+
}, 8, ["modelValue"])
|
|
3914
|
+
]);
|
|
3915
|
+
};
|
|
3916
|
+
}
|
|
3917
|
+
}, Mo = /* @__PURE__ */ Te(zo, [["__scopeId", "data-v-151936e8"]]), Ko = F([
|
|
3918
|
+
{
|
|
3919
|
+
name: "表格",
|
|
3920
|
+
type: "table",
|
|
3921
|
+
comp: "Table",
|
|
3922
|
+
icon: "Table"
|
|
3923
|
+
},
|
|
3924
|
+
{
|
|
3925
|
+
name: "表单",
|
|
3926
|
+
type: "form",
|
|
3927
|
+
comp: "Form",
|
|
3928
|
+
icon: "Form"
|
|
3929
|
+
},
|
|
3930
|
+
{
|
|
3931
|
+
name: "折叠",
|
|
3932
|
+
type: "fold",
|
|
3933
|
+
comp: "Fold",
|
|
3934
|
+
icon: "Fold"
|
|
3935
|
+
},
|
|
3936
|
+
{
|
|
3937
|
+
name: "头像",
|
|
3938
|
+
type: "avatar",
|
|
3939
|
+
comp: "AvatarUpload",
|
|
3940
|
+
icon: "Avatar"
|
|
3941
|
+
},
|
|
3942
|
+
{
|
|
3943
|
+
name: "签名",
|
|
3944
|
+
type: "signature",
|
|
3945
|
+
comp: "Signature",
|
|
3946
|
+
icon: "Signature"
|
|
3947
|
+
},
|
|
3948
|
+
{
|
|
3949
|
+
name: "步骤条",
|
|
3950
|
+
type: "step",
|
|
3951
|
+
comp: "Step",
|
|
3952
|
+
icon: "Step"
|
|
3953
|
+
},
|
|
3954
|
+
{
|
|
3955
|
+
name: "时间线",
|
|
3956
|
+
type: "timeLine",
|
|
3957
|
+
comp: "TimeLine",
|
|
3958
|
+
icon: "TimeLine"
|
|
3959
|
+
},
|
|
3960
|
+
{
|
|
3961
|
+
name: "标签页",
|
|
3962
|
+
type: "tabs",
|
|
3963
|
+
comp: "Tabs",
|
|
3964
|
+
icon: "Tabs"
|
|
3965
|
+
}
|
|
3966
|
+
]), Jo = {
|
|
3967
|
+
TABLE: Sl,
|
|
3968
|
+
FORM: pl,
|
|
3969
|
+
TABLEOPERATE: Xa,
|
|
3970
|
+
FORMOPERATE: vl,
|
|
3971
|
+
FOLD: $n,
|
|
3972
|
+
CALCULATOR: Ln,
|
|
3973
|
+
METHODBUTTON: Vn,
|
|
3974
|
+
AVATARUPLOAD: Ml,
|
|
3975
|
+
SIGNATURE: zl,
|
|
3976
|
+
FORMTOP: pl,
|
|
3977
|
+
STEP: Hn,
|
|
3978
|
+
STEPOPERATE: gn,
|
|
3979
|
+
TIMELINE: lo,
|
|
3980
|
+
TIMELINEOPERATE: Dn,
|
|
3981
|
+
FORMTOPOPERATE: vl,
|
|
3982
|
+
SIGNATUREOPERATE: Jn,
|
|
3983
|
+
AVATARUPLOADOPERATE: jn,
|
|
3984
|
+
TABS: oo,
|
|
3985
|
+
TABSOPERATE: Mo
|
|
3986
|
+
// 添加其他组件...
|
|
3987
|
+
};
|
|
3988
|
+
function sl(k) {
|
|
3989
|
+
return Jo[k == null ? void 0 : k.toUpperCase()] || null;
|
|
3990
|
+
}
|
|
3991
|
+
export {
|
|
3992
|
+
sl as g,
|
|
3993
|
+
Ko as s,
|
|
3994
|
+
ql as u
|
|
3995
|
+
};
|