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