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