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