ss-component-new 1.1.605 → 1.1.607

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