ss-component-new 1.2.87 → 1.2.88

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 (91) hide show
  1. package/dist/{MTLLoader-J3dtRBIA.cjs → MTLLoader-B80JTR99.cjs} +1 -1
  2. package/dist/{MTLLoader-DkSNLhC7.js → MTLLoader-BvaV7uwT.js} +1 -1
  3. package/dist/{OrbitControls-CIInWJog.js → OrbitControls-CsOBnTjC.js} +1 -1
  4. package/dist/{OrbitControls-D7ENpunL.cjs → OrbitControls-DoPM71mH.cjs} +1 -1
  5. package/dist/{URDFLoader-ZNkXTFDG.cjs → URDFLoader-BqD794xh.cjs} +1 -1
  6. package/dist/{URDFLoader-KWmrVx3h.js → URDFLoader-DQfsHMd5.js} +2 -2
  7. package/dist/{animationData-9UtaGYaZ.cjs → animationData-BoWRwtcd.cjs} +1 -1
  8. package/dist/{animationData-AtWrsTvx.js → animationData-CBg8dSKI.js} +1 -1
  9. package/dist/{array-DfNjR0Qy.cjs → array-1iHhiS79.cjs} +1 -1
  10. package/dist/{array-CATO5Q6T.js → array-CjAv6QVq.js} +1 -1
  11. package/dist/{iconfont-U_cmKvyB.cjs → iconfont-BPLN6GUd.cjs} +1 -1
  12. package/dist/{iconfont-CUOKY8wo.js → iconfont-DiBzGJyo.js} +2 -2
  13. package/dist/{index-kP_CVzzK.js → index--ghQ5k3_.js} +1 -1
  14. package/dist/{index-ByrRF4uT.js → index-301dw6yo.js} +3 -3
  15. package/dist/{index-CluLZeK5.js → index-3wZhr7Fi.js} +2 -2
  16. package/dist/{index-BOX5TGPv.js → index-B1DBt67p.js} +1 -1
  17. package/dist/{index-DKeLuZIo.cjs → index-BCtl2NxW.cjs} +1 -1
  18. package/dist/{index-I9nYBweF.cjs → index-BFANt5jV.cjs} +1 -1
  19. package/dist/{index-Dv5U7UHo.cjs → index-BNCHYmsf.cjs} +1 -1
  20. package/dist/{index-DHW5e_u_.cjs → index-BNSXLKoO.cjs} +1 -1
  21. package/dist/{index-UH73jPSH.cjs → index-BOa_GGBd.cjs} +1 -1
  22. package/dist/{index-o4iJ58d0.cjs → index-BQHm1PzE.cjs} +1 -1
  23. package/dist/{index-DtCpetgB.js → index-BUADHRye.js} +1 -1
  24. package/dist/index-BeOC6_Rs.js +2892 -0
  25. package/dist/{index-B69WOtXS.js → index-BrcxhM_n.js} +16 -16
  26. package/dist/{index-DzqEIEfs.js → index-Bs0WvM0c.js} +1 -1
  27. package/dist/{index-Otnitd83.cjs → index-Bx4cvh02.cjs} +1 -1
  28. package/dist/{index-0IFTdOV8.js → index-CBtzIuCH.js} +4 -4
  29. package/dist/{index-CMsqZu-f.js → index-CDuKzCKB.js} +1 -1
  30. package/dist/{index-CB2c5ESn.cjs → index-CG4YPZDw.cjs} +1 -1
  31. package/dist/{index-vB3AblAt.cjs → index-CH93K9S5.cjs} +1 -1
  32. package/dist/{index-u7d75s7T.cjs → index-CHezxnGi.cjs} +1 -1
  33. package/dist/{index-B52lJ3Ug.cjs → index-CT8cEcs0.cjs} +1 -1
  34. package/dist/{index-Ds0IFjwu.js → index-CXm30ZHm.js} +1 -1
  35. package/dist/{index-Cz2PyWsi.js → index-CYJA6p7V.js} +4 -4
  36. package/dist/{index-CxVSFkzd.js → index-CZ9TXNU2.js} +1 -1
  37. package/dist/{index-Dd3ofxbk.cjs → index-CfWEB3pJ.cjs} +1 -1
  38. package/dist/{index-m5CO_eOy.js → index-CqvE_Qjb.js} +7 -7
  39. package/dist/{index-CffEdIhY.cjs → index-CwH69hsN.cjs} +1 -1
  40. package/dist/{index-CAlMVMU_.cjs → index-DB518Xlw.cjs} +1 -1
  41. package/dist/{index-D38I7nZo.js → index-DCDGUq8k.js} +1 -1
  42. package/dist/{index-rC2K3Bzj.js → index-DMSnIby8.js} +1 -1
  43. package/dist/{index-Be9ofpB5.js → index-DPiH4DOm.js} +1 -1
  44. package/dist/{index-DRL2SPEo.cjs → index-DX2cj3sr.cjs} +1 -1
  45. package/dist/{index-sZDWq1eU.cjs → index-DZe-zVdk.cjs} +1 -1
  46. package/dist/index-DmskyZyo.cjs +1 -0
  47. package/dist/{index-CDW9opLV.js → index-DmybJzVN.js} +4 -4
  48. package/dist/{index-DTuRU8za.cjs → index-Dn8n1CgH.cjs} +1 -1
  49. package/dist/{index-BecXuN38.cjs → index-DxhOdcCZ.cjs} +1 -1
  50. package/dist/{index-C4h-dVEe.cjs → index-HXQttHGW.cjs} +1 -1
  51. package/dist/{index-BPyk3UIE.js → index-L3c13sm0.js} +3091 -3080
  52. package/dist/{index-BSnfRMZW.cjs → index-bwJA1xof.cjs} +1 -1
  53. package/dist/index-ccEsTfT_.cjs +1 -0
  54. package/dist/{index-BTR-xG0v.js → index-llLbvtW2.js} +1 -1
  55. package/dist/{index-sawDaaXq.js → index-rp8RZzFp.js} +3 -3
  56. package/dist/{index-CN-NFjlN.js → index-unEjygZb.js} +2 -2
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BcCwZRas.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BzMjTFoF.js} +949 -931
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DlpiRV_h.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-cak3PDM6.cjs} +6 -6
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UNe6-w-O.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BGMoHKA2.js} +10286 -10281
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BMVxMU7L.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CV6nDMIw.cjs} +139 -139
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-8v2JVeca.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DNB0puJW.js} +4 -4
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-AgWRuXVC.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-KIzTGzsY.cjs} +1 -1
  63. package/dist/{index.vue_vue_type_style_index_1_lang-C1z71r3A.cjs → index.vue_vue_type_style_index_1_lang-B5YDG1xA.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_1_lang-DqwucUxZ.js → index.vue_vue_type_style_index_1_lang-DUif2S65.js} +3 -3
  65. package/dist/{main-kIoRHR7Y.cjs → main-DutkM9KI.cjs} +1 -1
  66. package/dist/{main-CHjImz22.js → main-sGbL3tgN.js} +3 -3
  67. package/dist/ss-component.cjs +1 -1
  68. package/dist/ss-component.css +1 -1
  69. package/dist/ss-component.js +9 -9
  70. package/dist/ss-component2.cjs +1 -1
  71. package/dist/ss-component2.js +10 -10
  72. package/dist/{threeModel-DhMeqTnZ.cjs → threeModel-CWBZ93hr.cjs} +1 -1
  73. package/dist/{threeModel-B7dMmL7L.js → threeModel-K70ydqee.js} +4 -4
  74. package/dist/{threePreview-CloRtEyk.cjs → threePreview-BE29Ko0Q.cjs} +1 -1
  75. package/dist/{threePreview-C7hIZVal.js → threePreview-Bt_e1pHv.js} +3 -3
  76. package/dist/{threeSceneView-DfL2muQG.js → threeSceneView-BTDJvJbi.js} +8 -8
  77. package/dist/{threeSceneView-0NHz_iE7.cjs → threeSceneView-C-ZgxeNQ.cjs} +1 -1
  78. package/dist/{threeSceneViewForCPMPIP-DKqP4yRh.cjs → threeSceneViewForCPMPIP-Be3kgnPT.cjs} +1 -1
  79. package/dist/{threeSceneViewForCPMPIP-DOcbIW0k.js → threeSceneViewForCPMPIP-CnooSV-P.js} +7 -7
  80. package/dist/{threeTrackPathView-BADN-C5w.cjs → threeTrackPathView-Dum8r0Ak.cjs} +1 -1
  81. package/dist/{threeTrackPathView-BBGLRj2K.js → threeTrackPathView-SBHKvZId.js} +3 -3
  82. package/dist/{threeViewerHost-Cvy-AzyZ.js → threeViewerHost-B8xTDMfq.js} +2 -2
  83. package/dist/{threeViewerHost-DmUYNEfj.cjs → threeViewerHost-CtLUuUwr.cjs} +1 -1
  84. package/dist/{urdfTree-CeIoAIYI.js → urdfTree-BkbJqJkX.js} +1 -1
  85. package/dist/{urdfTree-Cf5fPKfb.cjs → urdfTree-CJRi6aAI.cjs} +1 -1
  86. package/dist/{workpieceTreePanel-CDnC5lGB.cjs → workpieceTreePanel-Co2trvcl.cjs} +1 -1
  87. package/dist/{workpieceTreePanel-Bjf8fR7u.js → workpieceTreePanel-D0P-OQIb.js} +4 -4
  88. package/package.json +1 -1
  89. package/dist/index-B0lL5Vdy.cjs +0 -1
  90. package/dist/index-DCYFKE13.cjs +0 -1
  91. package/dist/index-DMZt8ROM.js +0 -2878
@@ -0,0 +1,2892 @@
1
+ import { ref as J, watch as He, nextTick as ia, resolveComponent as Qe, createBlock as je, openBlock as V, withCtx as X, createElementVNode as ce, renderSlot as Ka, onMounted as Sa, createElementBlock as ye, normalizeStyle as xl, normalizeClass as un, toDisplayString as Oe, createCommentVNode as _e, createVNode as re, unref as Ve, Fragment as dl, renderList as pl, createTextVNode as Ye, defineComponent as sn, reactive as ql, inject as dr, provide as pr, onBeforeUnmount as fr, computed as za, onUnmounted as gr, createSlots as hr, withDirectives as Ja, vShow as Wa } from "vue";
2
+ import { by as Ra, ay as qa, c as G, E as Re, bS as ka, g as Al, p as Tl, s as jl, u as yr, e as Ga, b as ml, bK as vr, bI as Ha, d as br, ce as Sr } from "./index-BgE_6FYY.js";
3
+ import { C as Hl, am as kr, an as Ql, ao as Tr, g as Ll, a as mr, u as Ar, B as xr, ap as Qa, aq as Xa, ar as Ur, as as Cr, d as va, F as Ya, m as Za, l as _r, at as Ia, M as Or, au as Dr, av as Er, aw as jr, S as Lr } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BGMoHKA2.js";
4
+ import { c as Pl, _ as Va, h as Pr, d as $r, E as Br } from "./index-CYJA6p7V.js";
5
+ import { a as Nr, T as Mr } from "./threeViewerHost-B8xTDMfq.js";
6
+ import { u as Fr, a as wr, E as en } from "./index-D_qR3hDI.js";
7
+ import "./index.vue_vue_type_style_index_1_lang-DUif2S65.js";
8
+ import { _ as oa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ import { s as Gl } from "./index-Bs0WvM0c.js";
10
+ import "./index-Bmtw8a5p.js";
11
+ import { i as ln } from "./isString-Bb0EYAKj.js";
12
+ const an = (E) => E.match(/\((.*)\)/)[1], nn = {
13
+ __name: "index",
14
+ props: {
15
+ isVisible: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ title: {
20
+ type: String,
21
+ default: ""
22
+ },
23
+ placement: {
24
+ type: String,
25
+ default: "bottom"
26
+ },
27
+ width: {
28
+ type: Number,
29
+ default: 200
30
+ }
31
+ },
32
+ setup(E) {
33
+ const le = E, Z = J(null), P = J(!1), L = J(null);
34
+ return He(
35
+ () => le == null ? void 0 : le.isVisible,
36
+ () => {
37
+ P.value = le == null ? void 0 : le.isVisible;
38
+ },
39
+ { deep: !0, immediate: !0 }
40
+ ), He(
41
+ () => L.value,
42
+ () => {
43
+ ia(() => {
44
+ var s, ne;
45
+ (ne = (s = Z.value) == null ? void 0 : s.updatePopper) == null || ne.call(s);
46
+ });
47
+ },
48
+ { deep: !0, immediate: !0 }
49
+ ), (s, ne) => {
50
+ const fe = Qe("el-popover");
51
+ return V(), je(fe, {
52
+ visible: P.value,
53
+ title: le == null ? void 0 : le.title,
54
+ placement: le == null ? void 0 : le.placement,
55
+ width: le == null ? void 0 : le.width,
56
+ ref_key: "popOverRef",
57
+ ref: Z
58
+ }, {
59
+ reference: X(() => [
60
+ ce("div", null, [
61
+ Ka(s.$slots, "reference", {
62
+ ref_key: "referenceRef",
63
+ ref: L
64
+ })
65
+ ])
66
+ ]),
67
+ default: X(() => [
68
+ ce("div", null, [
69
+ Ka(s.$slots, "content")
70
+ ])
71
+ ]),
72
+ _: 3
73
+ }, 8, ["visible", "title", "placement", "width"]);
74
+ };
75
+ }
76
+ }, Kr = {
77
+ key: 0,
78
+ class: "extra-button-content"
79
+ }, zr = { class: "table-operator-wrap" }, Jr = { class: "extra-button-filter" }, Wr = { class: "form-content-value" }, Rr = {
80
+ key: 0,
81
+ class: "extra-header"
82
+ }, qr = {
83
+ class: "drop-menu",
84
+ style: { width: "120px" }
85
+ }, Gr = { key: 0 }, Hr = { key: 1 }, Qr = {
86
+ key: 1,
87
+ class: "extra-button-content tabs-button-wrapper"
88
+ }, Xr = { class: "table-operator-wrap" }, Yr = { class: "extra-button-filter" }, Zr = { class: "form-content-value" }, Ir = {
89
+ key: 0,
90
+ class: "extra-header"
91
+ }, Vr = {
92
+ class: "drop-menu",
93
+ style: { width: "120px" }
94
+ }, eu = { key: 0 }, lu = { key: 1 }, au = {
95
+ __name: "header",
96
+ props: {
97
+ pageLayout: {
98
+ type: String,
99
+ default: "vertical"
100
+ },
101
+ lockingPage: Boolean,
102
+ level: {
103
+ type: Number,
104
+ default: 1
105
+ },
106
+ compName: {
107
+ type: String,
108
+ default: "表格名称",
109
+ required: !1
110
+ },
111
+ isDevMode: Boolean,
112
+ selectNums: Number,
113
+ dataNums: Number,
114
+ filterValues: Array,
115
+ buttons: {
116
+ type: Array,
117
+ default: () => []
118
+ },
119
+ columns: {
120
+ type: Array,
121
+ default: () => []
122
+ }
123
+ },
124
+ emits: ["buttonClick", "filter", "getImportData"],
125
+ setup(E, { emit: le }) {
126
+ const Z = le, P = E, L = J(""), s = J(!1), ne = J([]), fe = J([{ label: "取消", background: "#999999" }, {
127
+ label: "清空",
128
+ background: "#999999"
129
+ }, { label: "确认" }]), Ue = [
130
+ {
131
+ label: "新增",
132
+ icon: "Plus"
133
+ },
134
+ {
135
+ label: "导入",
136
+ icon: "import"
137
+ },
138
+ {
139
+ label: "导出",
140
+ icon: "export"
141
+ }
142
+ ], ge = (te) => {
143
+ const ke = te.raw;
144
+ if (!ke) return;
145
+ const se = new FileReader();
146
+ se.onload = (H) => {
147
+ try {
148
+ const W = new Uint8Array(H.target.result), Le = kr(W, { type: "array" }), Xe = Le.SheetNames[0], ue = Le.Sheets[Xe], Ke = Ql.decode_range(ue["!ref"]).e.c + 1, Y = new Array(Ke).fill(""), S = [];
149
+ for (const z in ue) {
150
+ if (z[0] === "!") continue;
151
+ const { r: oe, c: xe } = Ql.decode_cell(z);
152
+ let Pe = ue[z].v;
153
+ if (ue[z].t === "n" && Pe > 0 && Pe < 1e6 && (Pe = new Date((Pe - 25569) * 86400 * 1e3).toISOString().split("T")[0]), (Pe == null || Pe === "") && (Pe = ""), oe === 0)
154
+ Y[xe] = Pe;
155
+ else {
156
+ if (!S[oe - 1]) {
157
+ S[oe - 1] = {};
158
+ for (let ze = 0; ze < Ke; ze++)
159
+ S[oe - 1][`col_${ze}`] = "";
160
+ }
161
+ S[oe - 1][`col_${xe}`] = Pe;
162
+ }
163
+ }
164
+ for (let z = 0; z < Ke; z++)
165
+ Y[z] === void 0 && (Y[z] = "");
166
+ const Me = S == null ? void 0 : S[0];
167
+ if (!(Me != null && Me.hasOwnProperty("col_0"))) return Re.error("导入的数据列不匹配,请检查是否错位");
168
+ Z("getImportData", Y, S);
169
+ } catch (W) {
170
+ throw Re.error(W.message), new Error(W.message);
171
+ }
172
+ }, se.readAsArrayBuffer(ke);
173
+ }, el = (te) => {
174
+ var se;
175
+ const ke = (se = ne.value) == null ? void 0 : se.reduce((H, W, Le) => (Le === 0 ? H[W.label] = te : H[W.label] = W == null ? void 0 : W.value, H), {});
176
+ Z("filter", ke, te, !0);
177
+ }, sl = (te) => {
178
+ Z("buttonClick", te);
179
+ }, hl = (te) => {
180
+ var ke, se;
181
+ ne.value = (se = (ke = Hl(G(te))) == null ? void 0 : ke.filter((H) => (H == null ? void 0 : H.label) !== "" && (H == null ? void 0 : H.label) !== "操作")) == null ? void 0 : se.map((H) => ({
182
+ label: (H == null ? void 0 : H.label) ?? "",
183
+ value: "",
184
+ name: (H == null ? void 0 : H.label) ?? "",
185
+ isFormColHidden: H == null ? void 0 : H.isTableColHidden,
186
+ width: 2
187
+ }));
188
+ }, Ne = J(!1), fl = (te) => {
189
+ var ke;
190
+ if ((te == null ? void 0 : te.buttonName) === "确认" && (Z("filter", te == null ? void 0 : te.content), Ne.value = (te == null ? void 0 : te.content) && Object.values(te == null ? void 0 : te.content).length > 0), (te == null ? void 0 : te.buttonName) === "清空") {
191
+ const se = G(te == null ? void 0 : te.content);
192
+ for (const H in se)
193
+ se[H] = "";
194
+ ne.value = (ke = ne.value) == null ? void 0 : ke.map((H) => ({
195
+ ...H,
196
+ value: ""
197
+ })), Z("filter", se), Ne.value = !1;
198
+ }
199
+ s.value = !1;
200
+ }, gl = () => {
201
+ var ke, se;
202
+ ne.value = (ke = ne.value) == null ? void 0 : ke.map((H) => ({
203
+ ...H,
204
+ value: ""
205
+ }));
206
+ const te = (se = ne.value) == null ? void 0 : se.reduce((H, W) => (H[W.label] = W.value, H), {});
207
+ Z("filter", te);
208
+ };
209
+ return Sa(() => {
210
+ hl(P.columns);
211
+ }), He(
212
+ () => P.columns,
213
+ () => {
214
+ hl(P.columns);
215
+ },
216
+ { deep: !0, immediate: !0 }
217
+ ), (te, ke) => {
218
+ var ue, qe, Ke, Y;
219
+ const se = Qe("el-icon"), H = Qe("svg-icon"), W = Qe("el-input"), Le = Qe("el-button"), Xe = Qe("el-upload");
220
+ return E.pageLayout === "vertical" ? (V(), ye("div", Kr, [
221
+ ce("div", {
222
+ class: un(E.compName ? "table-name-wrap" : ""),
223
+ style: xl({
224
+ background: (P == null ? void 0 : P.level) > 1 ? "transparent" : "var(--ssgroup-background)",
225
+ paddingLeft: ((P == null ? void 0 : P.level) - 1) * 12 + "px",
226
+ fontWeight: 600 - ((P == null ? void 0 : P.level) - 1) * 100 >= 400 ? 600 - ((P == null ? void 0 : P.level) - 1) * 100 : 400,
227
+ fontSize: 17 - (P == null ? void 0 : P.level) >= 14 ? 17 - (P == null ? void 0 : P.level) + "px" : "14px"
228
+ })
229
+ }, Oe(E.compName), 7),
230
+ ce("div", zr, [
231
+ ce("div", Jr, [
232
+ re(nn, {
233
+ title: "",
234
+ width: 800,
235
+ placement: "bottom-start",
236
+ isVisible: s.value
237
+ }, {
238
+ reference: X(() => {
239
+ var S, Me, z, oe;
240
+ return [
241
+ re(W, {
242
+ modelValue: L.value,
243
+ "onUpdate:modelValue": ke[1] || (ke[1] = (xe) => L.value = xe),
244
+ style: { "min-width": "80px" },
245
+ placeholder: Ne.value ? (z = (Me = (S = E.filterValues) == null ? void 0 : S.filter((xe) => xe)) == null ? void 0 : Me.slice(0, 3)) == null ? void 0 : z.join("/") : "搜索",
246
+ "prefix-icon": Ve(Ra),
247
+ clearable: "",
248
+ onInput: el,
249
+ disabled: ((oe = ne.value) == null ? void 0 : oe.length) === 0
250
+ }, {
251
+ suffix: X(() => {
252
+ var xe, Pe;
253
+ return [
254
+ !L.value && ((Pe = (xe = E.filterValues) == null ? void 0 : xe.filter((ze) => ze)) != null && Pe.join("/")) ? (V(), je(se, {
255
+ key: 0,
256
+ style: { cursor: "pointer" },
257
+ onClick: gl
258
+ }, {
259
+ default: X(() => [
260
+ re(Ve(qa))
261
+ ]),
262
+ _: 1
263
+ })) : _e("", !0)
264
+ ];
265
+ }),
266
+ append: X(() => [
267
+ ce("span", {
268
+ title: "条件查询",
269
+ onClick: ke[0] || (ke[0] = (xe) => s.value = !s.value)
270
+ }, [
271
+ re(H, {
272
+ name: "query",
273
+ style: { width: "15px", height: "15px", cursor: "pointer" }
274
+ })
275
+ ])
276
+ ]),
277
+ _: 1
278
+ }, 8, ["modelValue", "placeholder", "prefix-icon", "disabled"])
279
+ ];
280
+ }),
281
+ content: X(() => [
282
+ ce("div", Wr, [
283
+ (V(), je(Pl, {
284
+ rowContents: ne.value,
285
+ buttonValue: fe.value,
286
+ isRowFlex: !0,
287
+ isEnableWrap: !1,
288
+ isButtonRow: !1,
289
+ key: fe.value,
290
+ isStartJustify: !1,
291
+ onOnButtonClick: fl
292
+ }, null, 8, ["rowContents", "buttonValue"]))
293
+ ])
294
+ ]),
295
+ _: 1
296
+ }, 8, ["isVisible"])
297
+ ]),
298
+ E.buttons && ((ue = E.buttons) == null ? void 0 : ue.length) > 0 ? (V(), ye("div", Rr, [
299
+ (V(!0), ye(dl, null, pl((qe = E.buttons) == null ? void 0 : qe.filter((S) => E.isDevMode || (S == null ? void 0 : S.label) !== "修改模板"), (S, Me) => (V(), ye("div", {
300
+ class: "extra-contents",
301
+ key: Me
302
+ }, [
303
+ (S == null ? void 0 : S.type) === "upload" ? (V(), je(Xe, {
304
+ key: 0,
305
+ class: "upload-button-wrap",
306
+ "on-change": ge,
307
+ accept: ".xlsx,.xls",
308
+ "auto-upload": !1,
309
+ action: "#",
310
+ "show-file-list": !1,
311
+ disabled: !!E.lockingPage
312
+ }, {
313
+ default: X(() => [
314
+ re(Le, {
315
+ disabled: !!E.lockingPage,
316
+ style: xl({ background: (S == null ? void 0 : S.background) ?? "var(--ssbutton-theme-bg)", color: (S == null ? void 0 : S.color) ?? "var(--ssbutton-theme-color)" })
317
+ }, {
318
+ default: X(() => [
319
+ Ye(Oe(S == null ? void 0 : S.label), 1)
320
+ ]),
321
+ _: 2
322
+ }, 1032, ["disabled", "style"])
323
+ ]),
324
+ _: 2
325
+ }, 1032, ["disabled"])) : _e("", !0),
326
+ (S == null ? void 0 : S.type) === "popover" ? (V(), je(Va, { key: 1 }, {
327
+ dropTitle: X(() => [
328
+ (S == null ? void 0 : S.type) === "popover" ? (V(), je(Le, {
329
+ key: 0,
330
+ disabled: !!E.lockingPage,
331
+ style: xl({ background: (S == null ? void 0 : S.background) ?? "var(--ssbutton-theme-bg)", color: (S == null ? void 0 : S.color) ?? "var(--ssbutton-theme-color)" })
332
+ }, {
333
+ default: X(() => [
334
+ Ye(Oe(S == null ? void 0 : S.label), 1)
335
+ ]),
336
+ _: 2
337
+ }, 1032, ["disabled", "style"])) : _e("", !0)
338
+ ]),
339
+ dropMenu: X(() => [
340
+ ce("div", qr, [
341
+ (V(!0), ye(dl, null, pl(S == null ? void 0 : S.contents, (z) => (V(), je(Le, {
342
+ key: z == null ? void 0 : z.label,
343
+ disabled: !!E.lockingPage,
344
+ style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
345
+ onClick: (oe) => sl(z == null ? void 0 : z.label)
346
+ }, {
347
+ default: X(() => {
348
+ var oe, xe;
349
+ return [
350
+ Ye(Oe(z == null ? void 0 : z.label), 1),
351
+ (oe = z == null ? void 0 : z.label) != null && oe.includes("选中") ? (V(), ye("span", Gr, "(" + Oe(E.selectNums) + ")", 1)) : _e("", !0),
352
+ (xe = z == null ? void 0 : z.label) != null && xe.includes("全部") ? (V(), ye("span", Hr, "(" + Oe(E.dataNums) + ")", 1)) : _e("", !0)
353
+ ];
354
+ }),
355
+ _: 2
356
+ }, 1032, ["disabled", "onClick"]))), 128))
357
+ ])
358
+ ]),
359
+ _: 2
360
+ }, 1024)) : _e("", !0),
361
+ S != null && S.type ? _e("", !0) : (V(), je(Le, {
362
+ key: 2,
363
+ id: "themeButton",
364
+ disabled: !!E.lockingPage,
365
+ style: xl({ background: (S == null ? void 0 : S.background) ?? "var(--ssbutton-theme-bg)", color: (S == null ? void 0 : S.color) ?? "var(--ssbutton-theme-color)" }),
366
+ onClick: (z) => sl(S == null ? void 0 : S.label)
367
+ }, {
368
+ default: X(() => [
369
+ Ye(Oe(S == null ? void 0 : S.label), 1)
370
+ ]),
371
+ _: 2
372
+ }, 1032, ["disabled", "style", "onClick"]))
373
+ ]))), 128))
374
+ ])) : _e("", !0)
375
+ ])
376
+ ])) : (V(), ye("div", Qr, [
377
+ ce("div", Xr, [
378
+ ce("div", Yr, [
379
+ re(nn, {
380
+ title: "",
381
+ width: 800,
382
+ placement: "bottom-start",
383
+ isVisible: s.value
384
+ }, {
385
+ reference: X(() => {
386
+ var S, Me, z, oe;
387
+ return [
388
+ re(W, {
389
+ modelValue: L.value,
390
+ "onUpdate:modelValue": ke[3] || (ke[3] = (xe) => L.value = xe),
391
+ style: { "min-width": "80px" },
392
+ placeholder: Ne.value ? (z = (Me = (S = E.filterValues) == null ? void 0 : S.filter((xe) => xe)) == null ? void 0 : Me.slice(0, 3)) == null ? void 0 : z.join("/") : "搜索",
393
+ "prefix-icon": Ve(Ra),
394
+ clearable: "",
395
+ onInput: el,
396
+ disabled: ((oe = ne.value) == null ? void 0 : oe.length) === 0
397
+ }, {
398
+ suffix: X(() => {
399
+ var xe, Pe;
400
+ return [
401
+ !L.value && ((Pe = (xe = E.filterValues) == null ? void 0 : xe.filter((ze) => ze)) != null && Pe.join("/")) ? (V(), je(se, {
402
+ key: 0,
403
+ style: { cursor: "pointer" },
404
+ onClick: gl
405
+ }, {
406
+ default: X(() => [
407
+ re(Ve(qa))
408
+ ]),
409
+ _: 1
410
+ })) : _e("", !0)
411
+ ];
412
+ }),
413
+ append: X(() => [
414
+ ce("span", {
415
+ title: "条件查询",
416
+ onClick: ke[2] || (ke[2] = (xe) => s.value = !s.value)
417
+ }, [
418
+ re(H, {
419
+ name: "query",
420
+ style: { width: "15px", height: "15px", cursor: "pointer" }
421
+ })
422
+ ])
423
+ ]),
424
+ _: 1
425
+ }, 8, ["modelValue", "placeholder", "prefix-icon", "disabled"])
426
+ ];
427
+ }),
428
+ content: X(() => [
429
+ ce("div", Zr, [
430
+ (V(), je(Pl, {
431
+ rowContents: ne.value,
432
+ buttonValue: fe.value,
433
+ isRowFlex: !0,
434
+ isEnableWrap: !1,
435
+ isButtonRow: !1,
436
+ key: fe.value,
437
+ isStartJustify: !1,
438
+ onOnButtonClick: fl
439
+ }, null, 8, ["rowContents", "buttonValue"]))
440
+ ])
441
+ ]),
442
+ _: 1
443
+ }, 8, ["isVisible"])
444
+ ]),
445
+ E.buttons && ((Ke = E.buttons) == null ? void 0 : Ke.length) > 0 ? (V(), ye("div", Ir, [
446
+ (V(!0), ye(dl, null, pl((Y = E.buttons) == null ? void 0 : Y.filter((S) => E.isDevMode || (S == null ? void 0 : S.label) !== "修改模板"), (S, Me) => (V(), ye("div", {
447
+ class: "extra-contents",
448
+ key: Me
449
+ }, [
450
+ (S == null ? void 0 : S.type) === "upload" ? (V(), je(Xe, {
451
+ key: 0,
452
+ class: "upload-button-wrap",
453
+ "on-change": ge,
454
+ accept: ".xlsx,.xls",
455
+ "auto-upload": !1,
456
+ action: "#",
457
+ "show-file-list": !1
458
+ }, {
459
+ default: X(() => [
460
+ re(Le, { style: { background: "transparent", color: "#666666" } }, {
461
+ icon: X(() => {
462
+ var z;
463
+ return [
464
+ re(H, {
465
+ name: (z = Ue == null ? void 0 : Ue.find((oe) => (oe == null ? void 0 : oe.label) === (S == null ? void 0 : S.label))) == null ? void 0 : z.icon
466
+ }, null, 8, ["name"])
467
+ ];
468
+ }),
469
+ default: X(() => [
470
+ Ye(" " + Oe(S == null ? void 0 : S.label), 1)
471
+ ]),
472
+ _: 2
473
+ }, 1024)
474
+ ]),
475
+ _: 2
476
+ }, 1024)) : _e("", !0),
477
+ (S == null ? void 0 : S.type) === "popover" ? (V(), je(Va, { key: 1 }, {
478
+ dropTitle: X(() => [
479
+ (S == null ? void 0 : S.type) === "popover" ? (V(), je(Le, {
480
+ key: 0,
481
+ style: { background: "transparent", color: "#666666" }
482
+ }, {
483
+ icon: X(() => {
484
+ var z;
485
+ return [
486
+ re(H, {
487
+ name: (z = Ue == null ? void 0 : Ue.find((oe) => (oe == null ? void 0 : oe.label) === (S == null ? void 0 : S.label))) == null ? void 0 : z.icon
488
+ }, null, 8, ["name"])
489
+ ];
490
+ }),
491
+ default: X(() => [
492
+ Ye(" " + Oe(S == null ? void 0 : S.label), 1)
493
+ ]),
494
+ _: 2
495
+ }, 1024)) : _e("", !0)
496
+ ]),
497
+ dropMenu: X(() => [
498
+ ce("div", Vr, [
499
+ (V(!0), ye(dl, null, pl(S == null ? void 0 : S.contents, (z) => (V(), je(Le, {
500
+ key: z == null ? void 0 : z.label,
501
+ style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
502
+ onClick: (oe) => sl(z == null ? void 0 : z.label)
503
+ }, {
504
+ default: X(() => {
505
+ var oe, xe;
506
+ return [
507
+ Ye(Oe(z == null ? void 0 : z.label), 1),
508
+ (oe = z == null ? void 0 : z.label) != null && oe.includes("选中") ? (V(), ye("span", eu, "(" + Oe(E.selectNums) + ")", 1)) : _e("", !0),
509
+ (xe = z == null ? void 0 : z.label) != null && xe.includes("全部") ? (V(), ye("span", lu, "(" + Oe(E.dataNums) + ")", 1)) : _e("", !0)
510
+ ];
511
+ }),
512
+ _: 2
513
+ }, 1032, ["onClick"]))), 128))
514
+ ])
515
+ ]),
516
+ _: 2
517
+ }, 1024)) : _e("", !0),
518
+ S != null && S.type ? _e("", !0) : (V(), je(Le, {
519
+ key: 2,
520
+ id: "themeButton",
521
+ style: xl({ background: "transparent", color: (S == null ? void 0 : S.label) === "新增" ? "var(--ssbutton-theme-bg)" : "#666666" }),
522
+ onClick: (z) => sl(S == null ? void 0 : S.label)
523
+ }, {
524
+ icon: X(() => {
525
+ var z;
526
+ return [
527
+ re(H, {
528
+ name: (z = Ue == null ? void 0 : Ue.find((oe) => (oe == null ? void 0 : oe.label) === (S == null ? void 0 : S.label))) == null ? void 0 : z.icon
529
+ }, null, 8, ["name"])
530
+ ];
531
+ }),
532
+ default: X(() => [
533
+ Ye(" " + Oe(S == null ? void 0 : S.label), 1)
534
+ ]),
535
+ _: 2
536
+ }, 1032, ["style", "onClick"]))
537
+ ]))), 128))
538
+ ])) : _e("", !0)
539
+ ])
540
+ ]));
541
+ };
542
+ }
543
+ }, nu = /* @__PURE__ */ oa(au, [["__scopeId", "data-v-dc7dc670"]]), ru = /* @__PURE__ */ sn({
544
+ __name: "batch",
545
+ props: {
546
+ lockingPage: Boolean,
547
+ buttons: {
548
+ type: Array,
549
+ default: () => []
550
+ },
551
+ selectTableItems: {
552
+ type: Array,
553
+ default: () => []
554
+ },
555
+ columns: {
556
+ type: Array,
557
+ default: () => []
558
+ }
559
+ },
560
+ emits: ["buttonClick"],
561
+ setup(E, { emit: le }) {
562
+ const Z = E, P = le, L = (ne) => {
563
+ P("buttonClick", ne);
564
+ }, s = (ne) => {
565
+ var fe;
566
+ return ne != null && ne.includes("删除") ? ((fe = Z.selectTableItems) == null ? void 0 : fe.length) > 0 ? "warning-active-type" : "warning-type" : "default-type";
567
+ };
568
+ return (ne, fe) => {
569
+ const Ue = Qe("el-button");
570
+ return V(), ye("div", null, [
571
+ (V(!0), ye(dl, null, pl(E.buttons, (ge) => (V(), je(Ue, {
572
+ key: ge == null ? void 0 : ge.label,
573
+ disabled: !!E.lockingPage,
574
+ class: un(s(ge == null ? void 0 : ge.label)),
575
+ onClick: (el) => L(ge == null ? void 0 : ge.label)
576
+ }, {
577
+ default: X(() => [
578
+ Ye(Oe(ge == null ? void 0 : ge.label), 1)
579
+ ]),
580
+ _: 2
581
+ }, 1032, ["disabled", "class", "onClick"]))), 128))
582
+ ]);
583
+ };
584
+ }
585
+ }), uu = /* @__PURE__ */ oa(ru, [["__scopeId", "data-v-70b12973"]]), su = ka("formToTableComp", {
586
+ state: () => ({
587
+ selectArray: [],
588
+ selectString: ""
589
+ }),
590
+ actions: {
591
+ setSelectArray(E) {
592
+ this.selectArray = E;
593
+ },
594
+ setSelectString(E) {
595
+ this.selectString = E;
596
+ }
597
+ }
598
+ }), iu = { class: "calculator-content" }, ou = { class: "calculator-child" }, tu = { class: "calculator-child" }, cu = /* @__PURE__ */ sn({
599
+ __name: "calculator",
600
+ setup(E) {
601
+ const le = J(), Z = J();
602
+ return Sa(() => {
603
+ le.value = [
604
+ {
605
+ type: "Upload",
606
+ label: "输入",
607
+ name: "input"
608
+ }
609
+ ], Z.value = [
610
+ {
611
+ type: "Upload",
612
+ label: "输出",
613
+ name: "output"
614
+ }
615
+ ];
616
+ }), (P, L) => (V(), ye("div", iu, [
617
+ ce("div", ou, [
618
+ re(Pl, {
619
+ rowContents: le.value,
620
+ isRowFlex: !0
621
+ }, null, 8, ["rowContents"])
622
+ ]),
623
+ ce("div", tu, [
624
+ re(Pl, {
625
+ rowContents: Z.value,
626
+ isEdit: !1,
627
+ isRowFlex: !0
628
+ }, null, 8, ["rowContents"])
629
+ ])
630
+ ]));
631
+ }
632
+ }), du = /* @__PURE__ */ oa(cu, [["__scopeId", "data-v-73db0fe7"]]), pu = ka("unit", {
633
+ state: () => ({
634
+ selectIndex: "",
635
+ selectMenu: "",
636
+ selectTitle: []
637
+ }),
638
+ actions: {
639
+ setSelectIndex(E) {
640
+ this.selectIndex = E;
641
+ },
642
+ setSelectMenu(E) {
643
+ this.selectMenu = E;
644
+ },
645
+ setSelectTitle(E) {
646
+ this.selectTitle = E;
647
+ }
648
+ }
649
+ }), ba = (E, le) => {
650
+ let Z = E, P = le;
651
+ return Array.isArray(Z) && (Z = Z == null ? void 0 : Z.map((L, s) => {
652
+ if (Array.isArray(L)) {
653
+ let ne = {};
654
+ return L = L == null ? void 0 : L.forEach((fe, Ue) => {
655
+ var ge;
656
+ (ge = P == null ? void 0 : P[Ue]) != null && ge.prop ? ne[P[Ue].prop] = fe : Array.isArray(fe) && (ne.children = ba(fe, P));
657
+ }), Object.assign(ne, { id: s });
658
+ } else
659
+ return L;
660
+ })), Z;
661
+ }, on = (E, le, Z) => {
662
+ let P = E, L = le;
663
+ return P = P == null ? void 0 : P.map((s, ne) => {
664
+ var fe, Ue;
665
+ return !Array.isArray(s) || !((fe = L == null ? void 0 : L[ne]) != null && fe.label) && !Z || (s.unshift(((Ue = L == null ? void 0 : L[ne]) == null ? void 0 : Ue.label) ?? ""), s.some((ge) => Array.isArray(ge)) && (s = s == null ? void 0 : s.map((ge) => {
666
+ var el;
667
+ return Array.isArray(ge) && (ge = on(ge, (el = L == null ? void 0 : L[ne]) == null ? void 0 : el.children, Z)), ge;
668
+ }))), s;
669
+ }), P;
670
+ }, fu = (E, le, Z) => {
671
+ if (le === "")
672
+ return E == null ? void 0 : E.filter((P) => (P == null ? void 0 : P.id) !== Z);
673
+ {
674
+ const P = le.split("-");
675
+ return gu(E, P, Z);
676
+ }
677
+ }, gu = (E, le, Z) => {
678
+ let P = E, L = le;
679
+ return (L == null ? void 0 : L.length) === 0 ? P = P == null ? void 0 : P.filter((s) => s.id !== Z) : P = P == null ? void 0 : P.map((s) => (s.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), s = tn(s, L, Z)), s)), P;
680
+ }, tn = (E, le, Z) => {
681
+ var s, ne;
682
+ let P = E, L = le;
683
+ return (L == null ? void 0 : L.length) === 0 ? P.children = (s = P.children) == null ? void 0 : s.filter((fe) => fe.id !== Z) : P.children = (ne = P.children) == null ? void 0 : ne.map((fe) => (fe.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), fe = tn(fe, L, Z)), fe)), P;
684
+ }, hu = (E, le, Z) => {
685
+ if (le === "")
686
+ return Z;
687
+ {
688
+ const P = le.split("-");
689
+ return yu(E, P, Z);
690
+ }
691
+ }, yu = (E, le, Z) => {
692
+ let P = E, L = le;
693
+ return (L == null ? void 0 : L.length) === 0 ? P = Z : P = P == null ? void 0 : P.map((s) => (s.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), s = cn(s, L, Z)), s)), P;
694
+ }, cn = (E, le, Z) => {
695
+ var s;
696
+ let P = E, L = le;
697
+ return (L == null ? void 0 : L.length) === 0 ? P.children = Z : P.children = (s = P.children) == null ? void 0 : s.map((ne) => (ne.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), ne = cn(ne, L, Z)), ne)), P;
698
+ }, vu = ka("formComp", {
699
+ state: () => ({
700
+ objUrl: [],
701
+ blobUrls: []
702
+ }),
703
+ actions: {
704
+ setObjUrl(E) {
705
+ this.objUrl = E;
706
+ },
707
+ setBlobUrls(E) {
708
+ this.blobUrls = E;
709
+ }
710
+ }
711
+ }), rn = async (E, le) => {
712
+ var ne, fe, Ue, ge, el, sl, hl, Ne, fl, gl, te, ke, se, H, W, Le, Xe;
713
+ let Z = (fe = (ne = G(E)) == null ? void 0 : ne.optionUrl) == null ? void 0 : fe.menuSelect, P = [];
714
+ Z == null || Z.forEach((ue) => {
715
+ });
716
+ let L = "", s = await Tr(Z);
717
+ if (s == null || s.forEach((ue) => {
718
+ var qe, Ke, Y, S;
719
+ (ue == null ? void 0 : ue.name) === (((S = (Y = (Ke = (qe = G(E)) == null ? void 0 : qe.optionUrl) == null ? void 0 : Ke.groupSelect) == null ? void 0 : Y[0]) == null ? void 0 : S.replaceAll("'", "")) ?? "") && (L = ue == null ? void 0 : ue.id);
720
+ }), le) {
721
+ L = le;
722
+ const ue = await Al({
723
+ id: L
724
+ }), qe = (sl = (el = (ge = (Ue = ue == null ? void 0 : ue.data) == null ? void 0 : Ue.result) == null ? void 0 : ge[0]) == null ? void 0 : el.key) == null ? void 0 : sl.pageKey;
725
+ s = await Ll(qe, sessionStorage.getItem("systemKey"), "");
726
+ }
727
+ if (L !== "") {
728
+ let ue;
729
+ le ? ue = (hl = s == null ? void 0 : s.find((Y) => (Y == null ? void 0 : Y.id) === le)) == null ? void 0 : hl.compData : ue = (Ne = s == null ? void 0 : s.find((Y) => {
730
+ var S, Me, z, oe;
731
+ return (Y == null ? void 0 : Y.name) === (((Me = (S = E == null ? void 0 : E.groupSelect) == null ? void 0 : S.split(":")) == null ? void 0 : Me[0]) || ((oe = (z = E == null ? void 0 : E.optionUrl) == null ? void 0 : z.groupSelect) == null ? void 0 : oe[0]));
732
+ })) == null ? void 0 : Ne.compData;
733
+ let qe = (gl = (fl = ue == null ? void 0 : ue.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : fl.contents) == null ? void 0 : gl.map((Y) => Y == null ? void 0 : Y.label);
734
+ (ke = (te = ue == null ? void 0 : ue.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : te.contents) != null && ke.every((Y) => Array.isArray(Y)) && (qe = (W = Hl((H = (se = ue == null ? void 0 : ue.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : se.contents) == null ? void 0 : H[0])) == null ? void 0 : W.map((Y) => Y == null ? void 0 : Y.prop));
735
+ let Ke = (Xe = (Le = ue == null ? void 0 : ue.find((Y) => (Y == null ? void 0 : Y.key) === "tableContents")) == null ? void 0 : Le.contents) == null ? void 0 : Xe.map((Y) => (Y = Y == null ? void 0 : Y.filter((S) => !(S != null && S.id)), Y));
736
+ Ke == null || Ke.forEach((Y) => {
737
+ P.push(mr(Y, qe));
738
+ });
739
+ }
740
+ return P;
741
+ }, bu = { class: "table-content" }, Su = { class: "menu-config-wrap" }, ku = ["onClick"], Tu = {
742
+ key: 0,
743
+ class: "viewport-wrap"
744
+ }, mu = ["onClick"], Au = { title: "选择显示列信息" }, xu = {
745
+ class: "menu-config-wrap",
746
+ style: { padding: "0 0 0 16px", "box-sizing": "border-box", "min-height": "200px", width: "400px", overflow: "auto", position: "relative" }
747
+ }, Uu = ["title"], Cu = { class: "col-operate-wrap" }, _u = {
748
+ title: "拖拽排序列",
749
+ style: { cursor: "move", color: "grey", position: "absolute", right: "15px" }
750
+ }, Ou = { class: "pop-view" }, Du = { class: "pop-wrapper" }, Eu = { class: "file-list-pop" }, ju = ["title", "onClick"], Lu = ["onClick"], Pu = ["onClick"], $u = { class: "form-content" }, Bu = {
751
+ key: 0,
752
+ class: "dialog-footer"
753
+ }, Nu = { class: "dialog-footer" }, Mu = { class: "form-content" }, Fu = {
754
+ __name: "index",
755
+ props: {
756
+ pageLayout: {
757
+ type: String,
758
+ default: "vertical"
759
+ },
760
+ level: {
761
+ type: Number,
762
+ default: 1
763
+ },
764
+ compName: {
765
+ type: String,
766
+ default: "",
767
+ required: !1
768
+ },
769
+ compNames: {
770
+ type: Array,
771
+ default: () => [],
772
+ required: !1
773
+ },
774
+ compItem: {
775
+ type: Object,
776
+ default: () => {
777
+ }
778
+ },
779
+ operatingForm: {
780
+ type: Object,
781
+ default: () => {
782
+ }
783
+ },
784
+ cacheNewData: {
785
+ type: Object,
786
+ default: () => {
787
+ }
788
+ },
789
+ config: Object,
790
+ parentTableId: {
791
+ type: Number,
792
+ default: 0
793
+ },
794
+ itemData: {
795
+ type: Array,
796
+ default: () => []
797
+ },
798
+ childItemData: {
799
+ type: Array,
800
+ default: () => []
801
+ },
802
+ index: Number,
803
+ isDevMode: Boolean,
804
+ changedContent: {
805
+ type: Object,
806
+ default: () => {
807
+ }
808
+ },
809
+ showHeader: {
810
+ type: Boolean,
811
+ default: !0
812
+ },
813
+ allowSelect: {
814
+ type: Boolean,
815
+ default: !1
816
+ },
817
+ allowOperate: {
818
+ type: Boolean,
819
+ default: !0
820
+ },
821
+ allMapContents: {
822
+ type: Object,
823
+ default: () => {
824
+ }
825
+ }
826
+ },
827
+ emits: ["getSliceContLength", "clickMainKey", "change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick", "routeUrl"],
828
+ setup(E, { emit: le }) {
829
+ var wa;
830
+ const Z = J([]), P = vu(Tl), L = J(null), s = E, ne = J(s == null ? void 0 : s.allowSelect), fe = J((wa = s == null ? void 0 : s.config) == null ? void 0 : wa.showIndex), Ue = J(), ge = J([
831
+ {
832
+ label: "排序",
833
+ value: "sortable",
834
+ checked: !1
835
+ },
836
+ {
837
+ label: "筛选",
838
+ value: "filterable",
839
+ checked: !1
840
+ },
841
+ {
842
+ label: "合计",
843
+ value: "showSummary",
844
+ checked: !1
845
+ },
846
+ {
847
+ label: "编辑",
848
+ value: "operable",
849
+ checked: !1
850
+ }
851
+ ]), el = Ar(Tl);
852
+ let sl = "$R";
853
+ const { originalPath: hl } = jl(el), Ne = hl.value, fl = J(!1), gl = J(!1), te = J(!1), ke = ql({
854
+ column: {},
855
+ status: !1,
856
+ text: "合计"
857
+ }), se = ql({
858
+ currentPage: 1,
859
+ pageSize: 10,
860
+ total: 0,
861
+ pageSizes: [5, 10, 20, 50, 100]
862
+ }), H = le, W = J([]), Le = ql({ prop: "", order: null }), Xe = J([]), ue = J(!1), qe = J(!1), Ke = J(null), { isUseBackdrop: Y, initTrackFileType: S, getFileExtension: Me, setData: z, getFileInfo: oe, getFilesInfo: xe } = Nr(), Pe = J([]), ze = J(!1), Ul = J(), Fe = Fr(), { importLoading: wu, activeMenuPath: Te, contentLoading: Ku, linkMenuInfo: dn } = jl(Fe), pn = xr(Tl), De = wr(Tl), { extraContents: me, cacheUpdatingData: $l, tableViewContents: Bl, tableLoading: zu, pageMapState: Cl, lockingPage: Xl } = jl(De), I = J([]), Yl = J([]), Zl = J(/* @__PURE__ */ new Map());
863
+ J(!1);
864
+ const il = J("");
865
+ J();
866
+ const Il = J(!0), _l = J(0), Ta = J(!0), ll = J(""), ol = J(!1), fn = J({
867
+ label: "查看三维模型"
868
+ }), Vl = J(!1), ta = J(), Ze = J([]), yl = J([]), ea = J(!1), Nl = J([]), Ol = J([]), vl = J([]), we = J([]), al = J(), Je = J(), gn = su(Tl), la = J(), ca = J(0), aa = pu(Tl), { selectIndex: hn, selectMenu: cl, selectTitle: da } = jl(aa), { selectString: bl } = jl(gn), yn = yr(Tl), { loginUserInfo: tl } = jl(yn), vn = J(720), nl = J(!1), na = J(!1), rl = J([]), Sl = J(), Ml = J(!0), ma = J(!0), kl = J([]), bn = dr("contentRef");
869
+ pr("contentRef", bn), He(() => {
870
+ var e;
871
+ return (e = I.value) == null ? void 0 : e.length;
872
+ }, (e) => {
873
+ se.total = e;
874
+ }), He(
875
+ () => Bl.value,
876
+ async () => {
877
+ var i, o, t, d, g, T, O, N, h, C, D, x, F, B, $, n, v, c;
878
+ if (((i = Bl.value) == null ? void 0 : i.length) === 0 || !((o = s == null ? void 0 : s.itemData) != null && o.find((k) => (k == null ? void 0 : k.key) === "columnPath")) || !((t = s == null ? void 0 : s.itemData) != null && t.find((k) => (k == null ? void 0 : k.key) === "pageColumn"))) return;
879
+ let e = (h = (N = (O = (T = (g = (d = s == null ? void 0 : s.itemData) == null ? void 0 : d.find((k) => (k == null ? void 0 : k.key) === "pageColumn")) == null ? void 0 : g.contents) == null ? void 0 : T.split("[")) == null ? void 0 : O[1]) == null ? void 0 : N.split("]")) == null ? void 0 : h[0], l = ((F = (x = (D = (C = s == null ? void 0 : s.itemData) == null ? void 0 : C.find((k) => (k == null ? void 0 : k.key) === "pageColumn")) == null ? void 0 : D.contents) == null ? void 0 : x.split("[")) == null ? void 0 : F[0]) + (($ = (B = Bl.value) == null ? void 0 : B.find((k) => (k == null ? void 0 : k.key) === e)) == null ? void 0 : $.value), r = ((v = (n = s == null ? void 0 : s.itemData) == null ? void 0 : n.find((k) => (k == null ? void 0 : k.key) === "pageGroup")) == null ? void 0 : v.contents) ?? "", a = await Ll(l, sessionStorage.getItem("systemKey"), ""), u = (c = a == null ? void 0 : a.find((k) => (k == null ? void 0 : k.name) === (r === "" ? s == null ? void 0 : s.compName : r))) == null ? void 0 : c.compData;
880
+ Ma(u, s.allMapContents);
881
+ },
882
+ { deep: !0 }
883
+ );
884
+ const Sn = async (e, l) => {
885
+ var r, a, u, i, o;
886
+ try {
887
+ const t = await Al({ id: (s == null ? void 0 : s.parentTableId) || (s == null ? void 0 : s.index) });
888
+ let d;
889
+ ((r = t == null ? void 0 : t.data) == null ? void 0 : r.code) === 200 && (d = ((u = (a = t == null ? void 0 : t.data) == null ? void 0 : a.result) == null ? void 0 : u[0]) || null);
890
+ const g = {
891
+ type: "data",
892
+ pageKey: s != null && s.parentTableId ? (i = d == null ? void 0 : d.key) == null ? void 0 : i.pageKey : Te.value,
893
+ tableId: (s == null ? void 0 : s.parentTableId) || (s == null ? void 0 : s.index),
894
+ systemKey: sessionStorage.getItem("systemKey")
895
+ }, T = l == null ? void 0 : l.map((h) => {
896
+ const C = Object.keys(h), D = {};
897
+ return C.forEach((x, F) => {
898
+ D[e[F]] = h[x];
899
+ }), D;
900
+ }), O = T == null ? void 0 : T.map((h) => ({
901
+ key: g,
902
+ value: {
903
+ tableData: h
904
+ }
905
+ })), N = await Ha({ dataList: O });
906
+ ((o = N == null ? void 0 : N.data) == null ? void 0 : o.code) === 200 ? (De.setRefreshCurStructure(!0), Re.success("导入数据成功")) : Re.error("导入数据响应失败");
907
+ } catch (t) {
908
+ throw Re.error("导入数据处理失败"), new Error(t);
909
+ }
910
+ }, kn = async (e) => {
911
+ var l, r;
912
+ if (e != null && e.includes(".txt") || e != null && e.includes(".cpt") || e != null && e.includes(".cyd")) {
913
+ const a = await ml.get(e, {
914
+ responseType: "blob",
915
+ // 必须设置
916
+ headers: {
917
+ "Content-Type": "application/json"
918
+ }
919
+ }), u = new Blob([a.data], {
920
+ type: "application/octet-stream;charset=UTF-8"
921
+ });
922
+ let i = URL.createObjectURL(u);
923
+ Ul.value = [{
924
+ name: (r = e == null ? void 0 : e.split("/")) == null ? void 0 : r[((l = e == null ? void 0 : e.split("/")) == null ? void 0 : l.length) - 1],
925
+ blobUrl: i
926
+ }], ze.value = !0;
927
+ }
928
+ };
929
+ fr(() => {
930
+ ma.value = !1;
931
+ let e = ca.value;
932
+ ca.value = e + 1;
933
+ });
934
+ const Aa = za(() => {
935
+ var a, u;
936
+ const e = (se.currentPage - 1) * se.pageSize, l = e + se.pageSize, r = (a = W.value) == null ? void 0 : a.find((i) => {
937
+ var o;
938
+ return (i == null ? void 0 : i.sortable) && ((o = i == null ? void 0 : i.label) == null ? void 0 : o.includes("时间"));
939
+ });
940
+ return r && (Le.order = "descending", Le.prop = r == null ? void 0 : r.prop), H("getSliceContLength", se), (u = I.value) == null ? void 0 : u.slice(e, l);
941
+ }), Tn = (e) => {
942
+ se.currentPage = e, H("getSliceContLength", se);
943
+ }, mn = (e) => {
944
+ var l;
945
+ se.pageSize = e, e * se.currentPage > ((l = I.value) == null ? void 0 : l.length) && (se.currentPage = 1, se.pageSize = 10, Re.warning("分页无效,返回第一页")), H("getSliceContLength", se);
946
+ }, An = (e, l) => {
947
+ var o, t;
948
+ const r = (t = (o = W.value) == null ? void 0 : o.map((d) => d == null ? void 0 : d.prop)) == null ? void 0 : t.filter((d) => d !== "operate");
949
+ let a;
950
+ const u = (e == null ? void 0 : e.length) === (r == null ? void 0 : r.length);
951
+ if (e != null && e.includes("序号")) return Re.error("导入的数据不需要包含序号列");
952
+ if (a = u ? e : e.slice(0, r == null ? void 0 : r.length), !(a == null ? void 0 : a.every((d) => r == null ? void 0 : r.find((g) => d === g)))) return Re.error("导入的数据表头不匹配");
953
+ Sn(a, l);
954
+ }, xn = (e, l) => {
955
+ var r;
956
+ De.setRefreshCurStructure(!1), ((r = W.value) == null ? void 0 : r.length) === 0 || An(e, l);
957
+ }, Un = (e, l, r, a) => {
958
+ const u = [], i = [], o = (g) => Object.keys(g).length;
959
+ for (const g in e)
960
+ if (e[g] !== void 0) {
961
+ const T = e[g], O = [];
962
+ for (const [N, h] of Object.entries(T))
963
+ O.push(h), i.length < o(T) && i.push(N);
964
+ u.push(O);
965
+ }
966
+ u.unshift(i);
967
+ const t = Ql.aoa_to_sheet(u), d = Ql.book_new();
968
+ Ql.book_append_sheet(d, t, a), jr(d, `${l}.xlsx`), rl.value = [];
969
+ }, ra = async (e, l, r, a = !1, u) => {
970
+ var i, o, t, d, g, T, O, N;
971
+ try {
972
+ De.setRefreshCurStructure(!1);
973
+ const h = await Al({
974
+ id: s == null ? void 0 : s.index
975
+ });
976
+ if (((i = h == null ? void 0 : h.data) == null ? void 0 : i.code) === 200) {
977
+ let C = (g = (d = (t = (o = h == null ? void 0 : h.data) == null ? void 0 : o.result) == null ? void 0 : t[0]) == null ? void 0 : d.value) == null ? void 0 : g.pageData;
978
+ a ? C = {
979
+ ...C,
980
+ compData: (O = C == null ? void 0 : C.compData) == null ? void 0 : O.map((x) => {
981
+ var F;
982
+ return (x == null ? void 0 : x.key) === "header" ? {
983
+ ...x,
984
+ contents: (F = x == null ? void 0 : x.contents) == null ? void 0 : F.map((B) => ({
985
+ ...B,
986
+ [e]: r
987
+ }))
988
+ } : x;
989
+ })
990
+ } : C = {
991
+ ...C,
992
+ compData: (T = C == null ? void 0 : C.compData) == null ? void 0 : T.map((x) => {
993
+ var F, B;
994
+ return (x == null ? void 0 : x.key) === "header" ? {
995
+ ...x,
996
+ contents: (F = x == null ? void 0 : x.contents) == null ? void 0 : F.map(($) => ($ == null ? void 0 : $.prop) === (l == null ? void 0 : l.prop) ? {
997
+ ...$,
998
+ [e]: r
999
+ } : $)
1000
+ } : (x == null ? void 0 : x.key) === "tableToForm" && u ? {
1001
+ ...x,
1002
+ contents: (B = x == null ? void 0 : x.contents) == null ? void 0 : B.map(($) => ($ == null ? void 0 : $.prop) === (l == null ? void 0 : l.prop) ? {
1003
+ ...$,
1004
+ [u]: r
1005
+ } : $)
1006
+ } : x;
1007
+ })
1008
+ };
1009
+ const D = await br({
1010
+ id: s == null ? void 0 : s.index,
1011
+ value: {
1012
+ pageData: C
1013
+ }
1014
+ });
1015
+ ((N = D == null ? void 0 : D.data) == null ? void 0 : N.code) === 200 ? (Re.success("编辑成功"), De.setRefreshCurStructure(!0)) : Re.error("编辑响应失败");
1016
+ }
1017
+ } catch (h) {
1018
+ Re.error(h);
1019
+ }
1020
+ }, Cn = async (e, l) => {
1021
+ await ra("label", l, e);
1022
+ }, _n = async (e, l) => {
1023
+ await ra("columnType", l, e, !1, "type");
1024
+ }, On = () => {
1025
+ $l.value ? nl.value = !1 : Fa();
1026
+ }, Dn = (e) => {
1027
+ rl.value = e;
1028
+ }, En = (e, l) => {
1029
+ Sl.value === l ? Ml.value = !1 : Ml.value = !0, Sl.value = l == null ? void 0 : l.changeProp;
1030
+ }, Fl = za(() => {
1031
+ var r, a, u;
1032
+ const e = (r = W.value) == null ? void 0 : r.some((i) => i == null ? void 0 : i.filterable);
1033
+ return document.documentElement.style.setProperty("--ssTable-header-filter-display", e ? "inline-block" : "none"), (u = (a = W.value) == null ? void 0 : a.filter((i) => (i == null ? void 0 : i.label) !== "操作")) == null ? void 0 : u.map((i) => ({
1034
+ ...i,
1035
+ filterable: !!(i != null && i.filterable),
1036
+ showSummary: !!(i != null && i.showSummary),
1037
+ operable: !!(i != null && i.operable)
1038
+ }));
1039
+ }), jn = async (e, l, r) => {
1040
+ const a = G(W.value);
1041
+ await ia(), W.value = a == null ? void 0 : a.map((u) => (r == null ? void 0 : r.label) === (u == null ? void 0 : u.label) ? {
1042
+ ...u,
1043
+ [l]: e
1044
+ } : u), await ra(l, r, e);
1045
+ }, pa = async (e, l) => {
1046
+ await ra(l, null, e, !0);
1047
+ }, Ln = () => {
1048
+ ol.value = !1;
1049
+ }, Pn = (e) => {
1050
+ H("clickTrigger", e);
1051
+ }, xa = async (e) => {
1052
+ var i, o, t, d, g, T, O, N, h, C, D, x, F, B, $;
1053
+ const l = e == null ? void 0 : e.row, r = e == null ? void 0 : e.rowData, a = e == null ? void 0 : e.suffix;
1054
+ if ((i = l == null ? void 0 : l.toString()) != null && i.includes(".urdf") || e != null && e.isUrdf || a != null && a.includes(".urdf")) {
1055
+ if (l.includes(",")) {
1056
+ Re.error("当前版本仅允许单个urdf预览!");
1057
+ return;
1058
+ }
1059
+ if (Y(l)) {
1060
+ const v = {
1061
+ files: [oe(l)],
1062
+ data: {}
1063
+ };
1064
+ z(v);
1065
+ return;
1066
+ }
1067
+ Nl.value = [{
1068
+ url: l,
1069
+ extension: Me(l)
1070
+ }], qe.value = !0, Ke.value = {
1071
+ data: G(r)
1072
+ }, ue.value = !0;
1073
+ return;
1074
+ }
1075
+ let u = [];
1076
+ if ((o = l == null ? void 0 : l.toString()) != null && o.includes(".stl") || (t = l == null ? void 0 : l.toString()) != null && t.includes(".STL") || (d = l == null ? void 0 : l.toString()) != null && d.includes(".obj") || (g = l == null ? void 0 : l.toString()) != null && g.includes(".mtl")) {
1077
+ const n = (T = l == null ? void 0 : l.toString()) == null ? void 0 : T.split(","), v = xe(n), c = v == null ? void 0 : v[0];
1078
+ if (Y(c == null ? void 0 : c.extension)) {
1079
+ z({
1080
+ files: v,
1081
+ data: {}
1082
+ });
1083
+ return;
1084
+ }
1085
+ Nl.value = v, qe.value = !1, ue.value = !0;
1086
+ return;
1087
+ }
1088
+ if ((O = l == null ? void 0 : l.toString()) != null && O.includes(".stl") || (N = l == null ? void 0 : l.toString()) != null && N.includes(".STL") || (h = l == null ? void 0 : l.toString()) != null && h.includes(".obj") || (C = l == null ? void 0 : l.toString()) != null && C.includes(".mtl") || a != null && a.includes(".stl") || a != null && a.includes(".STL") || a != null && a.includes(".obj") || a != null && a.includes(".mtl")) {
1089
+ let n, v = [], c = {};
1090
+ if (Array.isArray(l) ? n = l : n = l == null ? void 0 : l.split(","), n == null || n.forEach((k) => {
1091
+ k.includes(".mtl") ? v.push(k) : c.blob = c.blob ? c.blob + "," + k : k;
1092
+ }), (v == null ? void 0 : v.length) > 0 && (c.mtlBlobs = v), a && (c.suffix = a), (x = (D = Object.values(c)) == null ? void 0 : D[0]) != null && x.includes("http:"))
1093
+ u.push(c);
1094
+ else {
1095
+ const k = new Blob([c.blob], {
1096
+ type: "application/octet-stream;charset=UTF-8"
1097
+ });
1098
+ let m = URL.createObjectURL(k), w = "";
1099
+ (F = l == null ? void 0 : l.split("/")) == null || F.forEach((p, U) => {
1100
+ var b;
1101
+ U === ((b = l == null ? void 0 : l.split("/")) == null ? void 0 : b.length) - 1 && (w = p);
1102
+ }), (B = c.blob) != null && B.includes(".stl") && (w = (w == null ? void 0 : w.replaceAll(">", "")) + ".urdf"), Ul.value = [{
1103
+ name: w,
1104
+ blobUrl: m
1105
+ }], ze.value = !0;
1106
+ }
1107
+ } else {
1108
+ const n = await ml.get(l, {
1109
+ responseType: "blob",
1110
+ headers: {
1111
+ "Content-Type": "application/json"
1112
+ }
1113
+ }), v = new Blob([n.data], {
1114
+ type: "application/octet-stream;charset=UTF-8"
1115
+ });
1116
+ let c = URL.createObjectURL(v), k = "";
1117
+ if (($ = l == null ? void 0 : l.split("/")) == null || $.forEach((m, w) => {
1118
+ var p;
1119
+ w === ((p = l == null ? void 0 : l.split("/")) == null ? void 0 : p.length) - 1 && (k = m);
1120
+ }), Y(k)) {
1121
+ const m = S(k), w = oe(l);
1122
+ z({
1123
+ files: [w],
1124
+ data: {
1125
+ trackFileType: m
1126
+ }
1127
+ });
1128
+ return;
1129
+ }
1130
+ Ul.value = [{
1131
+ name: k,
1132
+ blobUrl: c
1133
+ }], ze.value = !0;
1134
+ }
1135
+ (u == null ? void 0 : u.length) > 0 && P.setBlobUrls(u);
1136
+ }, ua = (e) => {
1137
+ var a, u, i, o;
1138
+ if (e != null && e.downloadUrl)
1139
+ return e == null ? void 0 : e.name;
1140
+ const l = (o = (a = e == null ? void 0 : e.url) == null ? void 0 : a.split(".")) == null ? void 0 : o[((i = (u = e == null ? void 0 : e.url) == null ? void 0 : u.split(".")) == null ? void 0 : i.length) - 1];
1141
+ return (e == null ? void 0 : e.name) + "." + l;
1142
+ }, $n = async (e) => {
1143
+ let l = null, r = null;
1144
+ if (e != null && e.downloadUrl) {
1145
+ const u = await fa(), i = Br.service({
1146
+ lock: !0,
1147
+ text: "Loading",
1148
+ background: "rgba(0, 0, 0, 0.7)"
1149
+ }), o = await ml.post(e == null ? void 0 : e.url, null, {
1150
+ responseType: "blob",
1151
+ // 必须设置
1152
+ headers: {
1153
+ Authorization: u,
1154
+ baseURL: "http://139.196.154.85:20025",
1155
+ "Content-Type": "application/json"
1156
+ }
1157
+ }).finally(() => {
1158
+ i.close();
1159
+ }), t = new Blob([o.data], {
1160
+ type: "application/octet-stream;charset=UTF-8"
1161
+ });
1162
+ l = URL.createObjectURL(t), r = e == null ? void 0 : e.name;
1163
+ } else {
1164
+ const u = await va({
1165
+ url: e == null ? void 0 : e.url
1166
+ });
1167
+ !e.url.toUpperCase().includes(".OBJ") && !e.url.toUpperCase().includes(".STL") && !e.url.toUpperCase().includes(".MTL") && !e.url.toUpperCase().includes(".URDF") ? (l = URL.createObjectURL(u.data), r = ua(e)) : l = e == null ? void 0 : e.url;
1168
+ }
1169
+ if (Y(l)) {
1170
+ const u = {
1171
+ row: `${l}`,
1172
+ suffix: Me(r)
1173
+ };
1174
+ xa(u);
1175
+ return;
1176
+ }
1177
+ const a = {
1178
+ name: r,
1179
+ blobUrl: l
1180
+ };
1181
+ Ul.value = [a], ze.value = !0;
1182
+ }, Bn = async (e) => {
1183
+ let l = null, r = null;
1184
+ if (e != null && e.downloadUrl) {
1185
+ const i = await fa(), o = await ml.post(e == null ? void 0 : e.url, null, {
1186
+ responseType: "blob",
1187
+ // 必须设置
1188
+ headers: {
1189
+ Authorization: i,
1190
+ baseURL: "http://139.196.154.85:20025",
1191
+ "Content-Type": "application/json"
1192
+ }
1193
+ }), t = new Blob([o.data], {
1194
+ type: "application/octet-stream;charset=UTF-8"
1195
+ });
1196
+ l = URL.createObjectURL(t), r = e == null ? void 0 : e.name;
1197
+ } else {
1198
+ const i = await va({
1199
+ url: e == null ? void 0 : e.url
1200
+ });
1201
+ l = URL.createObjectURL(i.data), r = ua(e);
1202
+ }
1203
+ const a = {
1204
+ name: r,
1205
+ blobUrl: l
1206
+ }, u = document.createElement("a");
1207
+ u.href = a.blobUrl, u.download = a.name, u.style.display = "none", document.body.appendChild(u), u.click(), setTimeout(() => {
1208
+ document.body.removeChild(u);
1209
+ }, 100);
1210
+ }, Nn = (e, l) => {
1211
+ var r;
1212
+ if (Object.values(l).length !== 0)
1213
+ return Object.values(l).find((a) => {
1214
+ var u, i, o;
1215
+ return ((u = a == null ? void 0 : a.toString()) == null ? void 0 : u.includes(".txt")) || ((i = a == null ? void 0 : a.toString()) == null ? void 0 : i.includes(".cpt")) || ((o = a == null ? void 0 : a.toString()) == null ? void 0 : o.includes(".obj"));
1216
+ }) ? [...e, fn.value] : (r = s == null ? void 0 : s.config) != null && r.allowMove ? [...e, { label: "迁移" }] : e;
1217
+ }, Mn = (e, l = {}) => [...e == null ? void 0 : e.values()].filter((r) => Object.keys(l).every((a) => {
1218
+ var o;
1219
+ const u = r[a], i = (o = l[a]) == null ? void 0 : o.toLowerCase();
1220
+ return i && u && typeof u == "string" ? u.toLowerCase().includes(i) : !0;
1221
+ })), Ua = J([]), Fn = async (e, l, r = !1) => {
1222
+ var a;
1223
+ if (e) {
1224
+ if (De.setTableLoading(!0), Ua.value = Object.values(e), e && ((a = Object.values(e)) != null && a.every((u) => !u)))
1225
+ return I.value = Yl.value;
1226
+ if (r) {
1227
+ I.value = [...Zl.value.values()].filter((u) => Object.values(u).some((i) => typeof i == "string" ? i == null ? void 0 : i.toLowerCase().includes(l == null ? void 0 : l.toLowerCase()) : !1));
1228
+ return;
1229
+ }
1230
+ I.value = Mn(Zl.value, e), De.setTableLoading(!1);
1231
+ }
1232
+ }, wn = async (e) => {
1233
+ var o, t, d, g, T, O, N, h, C, D, x, F, B, $, n;
1234
+ const l = await Al({
1235
+ keyLikes: {
1236
+ pageKey: `loading${((o = tl.value) == null ? void 0 : o.account) || ((t = tl.value) == null ? void 0 : t.账号)}`,
1237
+ systemKey: sessionStorage.getItem("systemKey")
1238
+ }
1239
+ }), r = await Al({
1240
+ keyLikes: {
1241
+ pageKey: `updateLoading${((d = tl.value) == null ? void 0 : d.account) || ((g = tl.value) == null ? void 0 : g.账号)}`,
1242
+ systemKey: sessionStorage.getItem("systemKey")
1243
+ }
1244
+ });
1245
+ let a = (O = (T = l == null ? void 0 : l.data) == null ? void 0 : T.result) == null ? void 0 : O.map((v) => v == null ? void 0 : v.id);
1246
+ const u = (h = (N = r == null ? void 0 : r.data) == null ? void 0 : N.result) == null ? void 0 : h.map((v) => v == null ? void 0 : v.id);
1247
+ a = [...G(a), ...u], (a == null ? void 0 : a.length) > 0 && (a != null && a.every((v) => v !== null && v)) && await Ga({
1248
+ ids: a
1249
+ });
1250
+ let i = await Ll(Te.value, sessionStorage.getItem("systemKey"), e.id);
1251
+ if (i = i == null ? void 0 : i.filter((v) => v.comp !== "methodButton"), i && i.length > 0) {
1252
+ const v = !Array.isArray(da.value) && ((C = da.value) == null ? void 0 : C.key) !== "main" ? [] : da.value;
1253
+ v.push({
1254
+ key: cl.value === "" ? (D = e == null ? void 0 : e.id) == null ? void 0 : D.toString() : cl.value + "-" + ((x = e == null ? void 0 : e.id) == null ? void 0 : x.toString()),
1255
+ value: e[(F = Object.keys(e)) == null ? void 0 : F.filter((c) => c !== "index" && c !== "id")[0]]
1256
+ }), aa.setSelectMenu(cl.value === "" ? (B = e == null ? void 0 : e.id) == null ? void 0 : B.toString() : cl.value + "-" + (($ = e == null ? void 0 : e.id) == null ? void 0 : $.toString())), aa.setSelectTitle(v), aa.setSelectIndex((n = e == null ? void 0 : e.id) == null ? void 0 : n.toString()), H("pageChange", i);
1257
+ }
1258
+ }, Ca = async (e, l, r, a) => {
1259
+ var u, i, o, t, d, g, T, O, N, h, C, D, x, F, B, $;
1260
+ if (H("clickMainKey", r), (a == null ? void 0 : a.isExistChild) === !0) {
1261
+ let n = (u = a == null ? void 0 : a.columnType) == null ? void 0 : u.prop, v = a == null ? void 0 : a.data;
1262
+ if (kl.value = await Ll(Te.value, sessionStorage.getItem("systemKey"), ""), !kl.value) {
1263
+ let k = (t = (o = (i = Te.value) == null ? void 0 : i.split("/")) == null ? void 0 : o.filter((m, w) => {
1264
+ var p, U;
1265
+ return w !== ((U = (p = Te.value) == null ? void 0 : p.split("/")) == null ? void 0 : U.length) - 1;
1266
+ })) == null ? void 0 : t.join("/");
1267
+ kl.value = await Ll(k, sessionStorage.getItem("systemKey"), "");
1268
+ }
1269
+ let c = (d = kl.value) == null ? void 0 : d.filter((k) => (k == null ? void 0 : k.name) === n);
1270
+ kl.value = c == null ? void 0 : c.map((k) => {
1271
+ var m;
1272
+ return k.compData = (m = k.compData) == null ? void 0 : m.map((w) => {
1273
+ var p, U;
1274
+ return (w == null ? void 0 : w.key) === "tableContents" && (p = w == null ? void 0 : w.contents) != null && p.every((b) => b == null ? void 0 : b.find((R) => R == null ? void 0 : R.id)) && (w.contents = (U = w == null ? void 0 : w.contents) == null ? void 0 : U.filter((b) => (b == null ? void 0 : b[1]) === v)), w;
1275
+ }), k;
1276
+ }), H("routeUrl", kl.value, {
1277
+ isEdit: !0,
1278
+ routerUrl: Te.value
1279
+ });
1280
+ return;
1281
+ }
1282
+ if ((a == null ? void 0 : a.data) === "查看" && (e != null && e.every((n) => (n == null ? void 0 : n.url) && (n == null ? void 0 : n.name)))) {
1283
+ let n = G(e);
1284
+ n = await ((g = G(n)) == null ? void 0 : g.map(async (c) => {
1285
+ var w, p, U, b;
1286
+ const k = await va({
1287
+ url: c == null ? void 0 : c.url
1288
+ });
1289
+ let m = URL.createObjectURL(k.data);
1290
+ return {
1291
+ name: (c == null ? void 0 : c.name) + "." + ((b = (w = c == null ? void 0 : c.url) == null ? void 0 : w.split(".")) == null ? void 0 : b[((U = (p = c == null ? void 0 : c.url) == null ? void 0 : p.split(".")) == null ? void 0 : U.length) - 1]),
1292
+ blobUrl: m
1293
+ };
1294
+ }));
1295
+ let v = await Promise.all(n);
1296
+ Ul.value = v, ze.value = !0;
1297
+ }
1298
+ if (G(W.value), (a == null ? void 0 : a.isMainKey) === !0) {
1299
+ Fe.setActiveMenuPath(void 0), De.setRouteToChildPath(void 0), De.setFixMenuStatus(!0);
1300
+ let n = (O = (T = s.itemData) == null ? void 0 : T.find((c) => (c == null ? void 0 : c.key) === "contentTableId")) == null ? void 0 : O.contents, v = (h = (N = s.itemData) == null ? void 0 : N.find((c) => (c == null ? void 0 : c.key) === "relatedFilter")) == null ? void 0 : h.index;
1301
+ if (v !== 0) {
1302
+ let c = (D = (C = W.value) == null ? void 0 : C[v]) == null ? void 0 : D.prop;
1303
+ if ((r == null ? void 0 : r[c]) === (a == null ? void 0 : a.data)) {
1304
+ let k = await Al({
1305
+ id: n
1306
+ }), m = ($ = (B = (F = (x = k == null ? void 0 : k.data) == null ? void 0 : x.result) == null ? void 0 : F[0]) == null ? void 0 : B.key) == null ? void 0 : $.pageKey;
1307
+ Fe.setActiveMenuPath(m + "/" + (a == null ? void 0 : a.data));
1308
+ } else
1309
+ Fe.setActiveMenuPath(G(Te).value + "/" + (a == null ? void 0 : a.data));
1310
+ } else
1311
+ Fe.setActiveMenuPath(G(Te).value + "/" + (a == null ? void 0 : a.data));
1312
+ }
1313
+ }, Kn = () => {
1314
+ ze.value = !1;
1315
+ }, zn = (e) => {
1316
+ H("rowClick", e);
1317
+ };
1318
+ He(
1319
+ () => s.changedContent,
1320
+ () => {
1321
+ var r, a;
1322
+ if (!s.changedContent) return;
1323
+ let e = (r = I.value) == null ? void 0 : r.map((u) => {
1324
+ var i;
1325
+ return u.id === ((i = s.changedContent) == null ? void 0 : i.id) && (u = {
1326
+ ...s.changedContent,
1327
+ id: s.changedContent.newId ? s.changedContent.newId : s.changedContent.id
1328
+ }, delete u.newId), u;
1329
+ });
1330
+ const l = (a = s.itemData) == null ? void 0 : a.map((u) => ((u == null ? void 0 : u.key) === "tableContents" && (u.contents = e), u));
1331
+ I.value = e, H("contentChange", {
1332
+ contents: l,
1333
+ index: s.index
1334
+ }), H("change", {
1335
+ content: e,
1336
+ index: s == null ? void 0 : s.index,
1337
+ buttonName: "",
1338
+ id: s == null ? void 0 : s.index
1339
+ });
1340
+ },
1341
+ { deep: !0, immediate: !0 }
1342
+ );
1343
+ const Jn = () => {
1344
+ }, Wn = async () => {
1345
+ const e = Te.value, l = sessionStorage.getItem("systemKey"), r = await Ll(e, l, ""), a = (r == null ? void 0 : r.find((t) => (t == null ? void 0 : t.name) === "方法明细")) || (r == null ? void 0 : r[0]), u = (a == null ? void 0 : a.compData) || [], i = u == null ? void 0 : u.find((t) => {
1346
+ const d = t == null ? void 0 : t.key;
1347
+ return d === "formContent" || d === "tableContents";
1348
+ });
1349
+ return i == null ? void 0 : i.contents;
1350
+ }, fa = async () => `Bearer ${Sr.get("access-token")}`, Rn = async (e, { token: l, inputData: r } = {}) => await ml.post(e, r, {
1351
+ headers: {
1352
+ Authorization: l
1353
+ }
1354
+ }).catch((u) => (Fe.setImportLoading(!1), Promise.reject(u))), qn = (e) => {
1355
+ const l = [], r = (a) => {
1356
+ a && typeof a == "object" && !Array.isArray(a) ? Object.values(a).forEach(r) : l.push(a);
1357
+ };
1358
+ return r(e), l;
1359
+ }, Gn = async (e, l, r) => {
1360
+ var B, $, n, v, c, k, m, w;
1361
+ Fe.setImportLoading(!0), De.setFreshContent(!1);
1362
+ let a = await Wn().catch((p) => (Fe.setImportLoading(!1), Promise.reject(p)));
1363
+ a = a == null ? void 0 : a.filter((p) => {
1364
+ var U;
1365
+ return ((U = p == null ? void 0 : p.find((b) => b == null ? void 0 : b.id)) == null ? void 0 : U.id) === (l == null ? void 0 : l.id);
1366
+ });
1367
+ let u = Ia([(B = W.value) == null ? void 0 : B.filter((p) => (p == null ? void 0 : p.label) !== "操作")]);
1368
+ const i = (n = ($ = Or(a, u)) == null ? void 0 : $[0]) == null ? void 0 : n.find((p) => {
1369
+ const U = p == null ? void 0 : p.key;
1370
+ return U === "算法体" || U === "方法体";
1371
+ }), o = i == null ? void 0 : i.value;
1372
+ if (!o) {
1373
+ console.log("未搜索到isMain, 缺少算法执行接口"), Fe.setImportLoading(!1);
1374
+ return;
1375
+ }
1376
+ const t = W.value ? Ia([W.value]) : [], d = t.find((p) => {
1377
+ const U = p == null ? void 0 : p.prop;
1378
+ return U === "输入" || U === "输入数据.输入1" || U === "样本输入数据";
1379
+ }), g = d == null ? void 0 : d.prop;
1380
+ let T = l == null ? void 0 : l[g];
1381
+ const O = await fa().catch((p) => (Fe.setImportLoading(!1), Promise.reject(p))), N = await Rn(o, {
1382
+ token: O,
1383
+ inputData: T
1384
+ }).catch((p) => (Fe.setImportLoading(!1), Promise.reject(p))), h = (v = N == null ? void 0 : N.data) == null ? void 0 : v.data, C = t.find((p) => (p == null ? void 0 : p.prop) === "输出数据.输出1"), D = C == null ? void 0 : C.prop;
1385
+ let x = [], F = [];
1386
+ if (((c = Object.values(h)) == null ? void 0 : c.length) > 0) {
1387
+ let p = [];
1388
+ const U = new FormData(), b = (k = qn(h)) == null ? void 0 : k.map(async (q) => {
1389
+ var _, j;
1390
+ if (!Array.isArray(q) && (q != null && q.includes("http"))) {
1391
+ let Q = await ml.get(q, { responseType: "blob" }), ee = (j = q == null ? void 0 : q.split("/")) == null ? void 0 : j[((_ = q == null ? void 0 : q.split("/")) == null ? void 0 : _.length) - 1];
1392
+ U.append("files", Q.data, ee);
1393
+ } else
1394
+ p.push(q);
1395
+ });
1396
+ if (await Promise.all(b), !Dr(U)) {
1397
+ let q = await Er(U), _ = (w = (m = q == null ? void 0 : q.data) == null ? void 0 : m.result) == null ? void 0 : w.map((j) => {
1398
+ var Q, ee, ie, M, y, K;
1399
+ return {
1400
+ name: (K = (y = (M = (Q = j == null ? void 0 : j.url) == null ? void 0 : Q.split("/")) == null ? void 0 : M[((ie = (ee = j == null ? void 0 : j.url) == null ? void 0 : ee.split("/")) == null ? void 0 : ie.length) - 1]) == null ? void 0 : y.split(".")) == null ? void 0 : K[0],
1401
+ url: j == null ? void 0 : j.url
1402
+ };
1403
+ });
1404
+ p = [...p, ..._];
1405
+ }
1406
+ let R = {};
1407
+ for (let q in l)
1408
+ q !== "id" && (R[q] = l[q]);
1409
+ R[D] = p, F.push({
1410
+ id: l == null ? void 0 : l.id,
1411
+ value: {
1412
+ tableData: R
1413
+ }
1414
+ });
1415
+ }
1416
+ (F == null ? void 0 : F.length) > 0 && await vr({
1417
+ dataList: F
1418
+ }), (x == null ? void 0 : x.length) > 0 && await Ha({
1419
+ dataList: x
1420
+ }), zl(!0), Fe.setImportLoading(!1), De.setFreshContent(!0);
1421
+ }, _a = (e, l) => (e = e == null ? void 0 : e.map((r) => {
1422
+ var a, u;
1423
+ return r != null && r.children && ((a = r.children) != null && a.find((i) => i.id === (l == null ? void 0 : l.id)) ? r.children = (u = r.children) == null ? void 0 : u.filter((i) => (i == null ? void 0 : i.id) !== (l == null ? void 0 : l.id)) : r.children = _a(r.children, l)), r;
1424
+ }), e), Ee = ql({
1425
+ title: "迁移至",
1426
+ show: !1,
1427
+ width: "20%",
1428
+ selectRow: null,
1429
+ from: s == null ? void 0 : s.index,
1430
+ to: null,
1431
+ contents: [],
1432
+ formRules: {
1433
+ groupName: [
1434
+ { required: !0, message: "输入不能为空", trigger: "blur" },
1435
+ {
1436
+ validator: (e, l, r) => {
1437
+ l === (s == null ? void 0 : s.index) ? r(new Error("选择源不能和目标源一致")) : r();
1438
+ }
1439
+ }
1440
+ ]
1441
+ },
1442
+ buttonValue: [{ label: "取消", background: "#999999", color: "var(--ssbutton-theme-color)" }, {
1443
+ label: "确认",
1444
+ background: "var(--ssbutton-theme-bg)",
1445
+ color: "var(--ssbutton-theme-color)"
1446
+ }]
1447
+ }), Hn = () => {
1448
+ Ee.show = !1;
1449
+ }, Qn = (e) => {
1450
+ var l, r;
1451
+ if ((e == null ? void 0 : e.buttonName) === "取消") return Ee.show = !1;
1452
+ Ee.to = e == null ? void 0 : e.content, !(!(s != null && s.index) || !((l = Ee.to) != null && l.groupName)) && (s == null ? void 0 : s.index) !== ((r = Ee.to) == null ? void 0 : r.groupName) && (H("change", {
1453
+ buttonName: "迁移",
1454
+ value: {
1455
+ from: Ee.from,
1456
+ to: Ee.to,
1457
+ data: Ee.selectRow
1458
+ }
1459
+ }), Ee.show = !1);
1460
+ }, sa = async (e, l, r) => {
1461
+ var a, u, i, o, t, d, g, T, O, N, h, C, D, x, F;
1462
+ if (il.value = "", ea.value = !0, Il.value = !0, H("onButtonClick", e, l), e === "删除")
1463
+ en.confirm("是否确认删除", "温馨提示", {
1464
+ confirmButtonText: "确认",
1465
+ cancelButtonText: "取消",
1466
+ type: "warning"
1467
+ }).then(() => {
1468
+ var B, $;
1469
+ (B = I.value) != null && B.find((n) => (n == null ? void 0 : n.id) === (l == null ? void 0 : l.id)) ? I.value = ($ = G(I.value)) == null ? void 0 : $.filter((n) => (n == null ? void 0 : n.id) !== (l == null ? void 0 : l.id)) : I.value = _a(G(I.value), l), fu(la.value, cl.value, l == null ? void 0 : l.id), De.setTableLoading(s == null ? void 0 : s.index), H("change", {
1470
+ content: I.value,
1471
+ singleContent: l,
1472
+ index: s == null ? void 0 : s.index,
1473
+ type: "delete",
1474
+ buttonName: e,
1475
+ column: W.value
1476
+ });
1477
+ });
1478
+ else if (e === "批量删除") {
1479
+ if (((a = rl.value) == null ? void 0 : a.length) === 0)
1480
+ return Re.warning("请先勾选操作的数据");
1481
+ en.confirm("是否确认删除", "温馨提示", {
1482
+ confirmButtonText: "确认",
1483
+ cancelButtonText: "取消",
1484
+ type: "warning"
1485
+ }).then(
1486
+ () => {
1487
+ var $, n;
1488
+ const B = ($ = rl.value) == null ? void 0 : $.map((v) => v.id);
1489
+ I.value = (n = G(I.value)) == null ? void 0 : n.filter((v) => !(B != null && B.includes(v.id))), De.setTableLoading(s == null ? void 0 : s.index), H("change", {
1490
+ content: I.value,
1491
+ singleContent: null,
1492
+ selectItems: rl.value,
1493
+ index: s == null ? void 0 : s.index,
1494
+ type: "batchDelete",
1495
+ buttonName: e,
1496
+ column: W.value
1497
+ });
1498
+ }
1499
+ );
1500
+ } else if (e === "复制新增") {
1501
+ ll.value = "新增";
1502
+ const B = G(l), $ = (u = W.value) == null ? void 0 : u.find((c) => c == null ? void 0 : c.isMainKey), n = $ || ((i = W.value) == null ? void 0 : i[0]), v = (o = vl.value) == null ? void 0 : o.find((c) => (c == null ? void 0 : c.label) === "新建");
1503
+ await Da(!0, v, { data: B, firstCol: n });
1504
+ } else if (e === "新增")
1505
+ ll.value = "新增", Kl(""), ol.value = !0;
1506
+ else if (e === "编辑")
1507
+ ll.value = "编辑", Kl(l), ol.value = !0;
1508
+ else if (e === "查看")
1509
+ ll.value = "查看", Kl(l), ea.value = !1, Il.value = !1, ol.value = !0;
1510
+ else if (e === "查看三维模型") {
1511
+ const B = {};
1512
+ for (let n in l)
1513
+ n !== "id" && (B[n] = l[n]);
1514
+ let $ = (t = Object.values(B)) == null ? void 0 : t[1];
1515
+ pn.setTableShowThree($);
1516
+ } else if (((d = r == null ? void 0 : r.extra) == null ? void 0 : d.type) === "modelExample")
1517
+ ll.value = e, Vl.value = !0;
1518
+ else if (e === "新建") {
1519
+ let B = Cl.value, $ = [];
1520
+ for (let m in B)
1521
+ m != null && m.includes(`loading${((g = tl.value) == null ? void 0 : g.account) || ((T = tl.value) == null ? void 0 : T.账号)}`) && ($ = [...$, ...m]);
1522
+ let n = [];
1523
+ for (let m in B)
1524
+ m != null && m.includes(`updateLoading${((O = tl.value) == null ? void 0 : O.account) || ((N = tl.value) == null ? void 0 : N.账号)}`) && (n = [...n, ...m]);
1525
+ let v = $ == null ? void 0 : $.map((m) => m == null ? void 0 : m.id);
1526
+ const c = n == null ? void 0 : n.map((m) => m == null ? void 0 : m.id);
1527
+ v = [...G(v), ...c], (v == null ? void 0 : v.length) > 0 && (v != null && v.every((m) => m !== null && m)) && await Ga({
1528
+ ids: v
1529
+ });
1530
+ const k = (h = vl.value) == null ? void 0 : h.find((m) => (m == null ? void 0 : m.label) === "新建");
1531
+ await Da(!1, k);
1532
+ } else if (e === "修改模板") {
1533
+ let B = G(Te).value;
1534
+ De.setRouteToChildPath(B), Fe.setActiveMenuPath(B + Ne);
1535
+ } else if (e === "执行")
1536
+ Gn(e, l);
1537
+ else if (e != null && e.includes("导出")) {
1538
+ if (e === "导出选中" && ((C = rl.value) == null ? void 0 : C.length) === 0)
1539
+ return Re.warning(`请先勾选${e}的数据`);
1540
+ if (e === "导出全部" && ((D = I.value) == null ? void 0 : D.length) === 0)
1541
+ return Re.warning("暂无数据导出");
1542
+ const B = (F = (x = W.value) == null ? void 0 : x.map((n) => n == null ? void 0 : n.label)) == null ? void 0 : F.filter((n) => n !== "操作"), $ = e === "导出全部" ? G(I.value) : G(rl.value);
1543
+ $ == null || $.forEach((n) => {
1544
+ n == null || delete n.id;
1545
+ }), Un($, s == null ? void 0 : s.compName, B, s == null ? void 0 : s.compName);
1546
+ } else e === "迁移" && (Ee.selectRow = l, Ee.show = !0);
1547
+ }, Xn = async (e) => {
1548
+ var r, a, u, i, o, t;
1549
+ const l = await Al({
1550
+ key: {
1551
+ pageKey: e,
1552
+ type: "structure",
1553
+ systemKey: sessionStorage.getItem("systemKey")
1554
+ }
1555
+ });
1556
+ if (((r = l == null ? void 0 : l.data) == null ? void 0 : r.code) === 200)
1557
+ return Array.isArray((a = l == null ? void 0 : l.data) == null ? void 0 : a.result) && ((i = (u = l == null ? void 0 : l.data) == null ? void 0 : u.result) == null ? void 0 : i.length) > 0 ? (t = (o = l == null ? void 0 : l.data) == null ? void 0 : o.result) == null ? void 0 : t.map((d) => {
1558
+ var g;
1559
+ return {
1560
+ id: d == null ? void 0 : d.id,
1561
+ ...(g = d == null ? void 0 : d.value) == null ? void 0 : g.pageData
1562
+ };
1563
+ }) : [];
1564
+ }, Yn = async (e, l) => {
1565
+ var r, a, u, i, o, t, d, g, T, O, N, h, C, D, x, F, B, $, n, v;
1566
+ try {
1567
+ let c, k;
1568
+ const m = (r = Cl.value[Te.value + Ne]) == null ? void 0 : r.filter((j) => {
1569
+ var Q;
1570
+ return ((Q = j == null ? void 0 : j.key) == null ? void 0 : Q.type) === "structureMethod";
1571
+ }), w = (a = Cl.value[Te.value + Ne]) == null ? void 0 : a.filter((j) => {
1572
+ var Q;
1573
+ return ((Q = j == null ? void 0 : j.key) == null ? void 0 : Q.type) === "structure";
1574
+ }), p = m == null ? void 0 : m.find((j) => {
1575
+ var Q, ee;
1576
+ return ((ee = (Q = j == null ? void 0 : j.value) == null ? void 0 : Q.pageData) == null ? void 0 : ee.method) === "保存";
1577
+ });
1578
+ if (!p) return;
1579
+ const U = (t = (o = Cl.value[(i = (u = p == null ? void 0 : p.value) == null ? void 0 : u.pageData) == null ? void 0 : i.path]) == null ? void 0 : o.filter((j) => {
1580
+ var Q;
1581
+ return ((Q = j == null ? void 0 : j.key) == null ? void 0 : Q.type) === "data";
1582
+ })) == null ? void 0 : t.find((j) => {
1583
+ var Q, ee, ie, M;
1584
+ return ((ee = (Q = j == null ? void 0 : j.value) == null ? void 0 : Q.tableData) == null ? void 0 : ee.算法名称) === ((M = (ie = p == null ? void 0 : p.value) == null ? void 0 : ie.pageData) == null ? void 0 : M.method);
1585
+ });
1586
+ if (!U) return;
1587
+ const b = {
1588
+ buttonName: (g = (d = p == null ? void 0 : p.value) == null ? void 0 : d.pageData) == null ? void 0 : g.method,
1589
+ api: (O = (T = U == null ? void 0 : U.value) == null ? void 0 : T.tableData) == null ? void 0 : O.算法体,
1590
+ content: w == null ? void 0 : w.map((j) => {
1591
+ var Q;
1592
+ return (Q = j == null ? void 0 : j.value) == null ? void 0 : Q.pageData;
1593
+ }),
1594
+ extraContent: [],
1595
+ extraValues: (h = (N = p == null ? void 0 : p.value) == null ? void 0 : N.pageData) == null ? void 0 : h.data,
1596
+ methodName: (D = (C = p == null ? void 0 : p.value) == null ? void 0 : C.pageData) == null ? void 0 : D.path
1597
+ };
1598
+ if (!e) return;
1599
+ const R = {
1600
+ ...e,
1601
+ compData: (x = e == null ? void 0 : e.compData) == null ? void 0 : x.map((j) => {
1602
+ var Q;
1603
+ return (j == null ? void 0 : j.key) === "formContent" ? {
1604
+ ...j,
1605
+ contents: (Q = j == null ? void 0 : j.contents) == null ? void 0 : Q.map((ee) => (ee == null ? void 0 : ee.prop) === l ? {
1606
+ ...ee,
1607
+ value: ""
1608
+ } : ee)
1609
+ } : j;
1610
+ })
1611
+ }, q = {
1612
+ key: {
1613
+ pageKey: Te.value + Ne,
1614
+ parentTable: "",
1615
+ systemKey: sessionStorage.getItem("systemKey"),
1616
+ type: "structure"
1617
+ },
1618
+ value: {
1619
+ pageData: R
1620
+ }
1621
+ }, _ = await ml.post(b.api, q, {
1622
+ headers: {
1623
+ "Content-Type": "application/json"
1624
+ }
1625
+ });
1626
+ return ((F = _ == null ? void 0 : _.data) == null ? void 0 : F.code) === 200 && (c = ($ = (B = _ == null ? void 0 : _.data) == null ? void 0 : B.result) == null ? void 0 : $.latestReportCode, k = (v = (n = _ == null ? void 0 : _.data) == null ? void 0 : n.result) == null ? void 0 : v.status), {
1627
+ newMainKeyValue: c,
1628
+ newStatus: k
1629
+ };
1630
+ } catch (c) {
1631
+ throw Re.error(c), new Error(c);
1632
+ }
1633
+ }, Oa = (e, l, r, a) => {
1634
+ var u;
1635
+ H("contentChange", {
1636
+ contents: (u = e == null ? void 0 : e.compData) == null ? void 0 : u.map((i) => {
1637
+ var o;
1638
+ return (i == null ? void 0 : i.key) === "formContent" ? {
1639
+ ...i,
1640
+ contents: (o = i == null ? void 0 : i.contents) == null ? void 0 : o.map((t) => (t == null ? void 0 : t.key) === l ? {
1641
+ ...t,
1642
+ value: r
1643
+ } : wl.value && (t == null ? void 0 : t.prop) === wl.prop ? {
1644
+ ...t,
1645
+ value: wl.value
1646
+ } : t)
1647
+ } : i;
1648
+ }),
1649
+ index: e == null ? void 0 : e.id
1650
+ }, a);
1651
+ }, wl = ql({
1652
+ prop: "状态",
1653
+ value: ""
1654
+ }), Zn = J(["系统自动生成信息", "审批意见"]), In = async (e, l, r) => {
1655
+ var d, g;
1656
+ let a = e == null ? void 0 : e[l == null ? void 0 : l.prop], u = 1, i, o;
1657
+ const t = G(Te).value + Ne + a;
1658
+ if (t) {
1659
+ wl.value = "", i = (d = Cl.value[t]) == null ? void 0 : d.filter((N) => {
1660
+ var h;
1661
+ return ((h = N == null ? void 0 : N.key) == null ? void 0 : h.type) === "structure";
1662
+ });
1663
+ const T = i == null ? void 0 : i.find((N) => {
1664
+ var h, C, D;
1665
+ return ((D = (C = (h = N == null ? void 0 : N.value) == null ? void 0 : h.pageData) == null ? void 0 : C.comp) == null ? void 0 : D.toUpperCase()) === "FORM";
1666
+ });
1667
+ o = {
1668
+ ...(g = T == null ? void 0 : T.value) == null ? void 0 : g.pageData,
1669
+ id: T == null ? void 0 : T.id
1670
+ };
1671
+ const O = await Yn(o, l == null ? void 0 : l.prop);
1672
+ if (wl.value = O == null ? void 0 : O.newStatus, O != null && O.newMainKeyValue) return O == null ? void 0 : O.newMainKeyValue;
1673
+ }
1674
+ if (I.value.some((T) => (T == null ? void 0 : T[l == null ? void 0 : l.prop]) === a)) {
1675
+ const T = a;
1676
+ for (; I.value.some((O) => (O == null ? void 0 : O[l == null ? void 0 : l.prop]) === `${T}(${u})`); )
1677
+ u++;
1678
+ a = `${T}(${u})`;
1679
+ }
1680
+ return a;
1681
+ }, Da = async (e, l, r) => {
1682
+ var o, t, d, g, T, O, N, h;
1683
+ let a, u;
1684
+ const i = await In(r == null ? void 0 : r.data, r == null ? void 0 : r.firstCol);
1685
+ if (e ? (a = G(Te).value + Ne + ((g = r == null ? void 0 : r.data) == null ? void 0 : g[(d = r == null ? void 0 : r.firstCol) == null ? void 0 : d.prop]), u = G(Te).value + Ne + i) : (a = G(Te).value + Ne, u = G(a) + `loading${((o = tl.value) == null ? void 0 : o.account) || ((t = tl.value) == null ? void 0 : t.账号)}`), l) {
1686
+ const C = (O = (T = Cl.value[u]) == null ? void 0 : T.filter((D) => {
1687
+ var x;
1688
+ return ((x = D == null ? void 0 : D.key) == null ? void 0 : x.parentTable) === "";
1689
+ })) == null ? void 0 : O.map((D) => {
1690
+ var x;
1691
+ return {
1692
+ id: D == null ? void 0 : D.id,
1693
+ ...(x = D == null ? void 0 : D.value) == null ? void 0 : x.pageData
1694
+ };
1695
+ });
1696
+ if ((C == null ? void 0 : C.length) > 0)
1697
+ if (e) {
1698
+ const D = C == null ? void 0 : C.find((x) => {
1699
+ var F;
1700
+ return ((F = x == null ? void 0 : x.comp) == null ? void 0 : F.toUpperCase()) === "FORM";
1701
+ });
1702
+ D && Oa(D, (N = r == null ? void 0 : r.firstCol) == null ? void 0 : N.label, i, Te.value);
1703
+ } else
1704
+ De.setRouteToChildPath(G(Te).value), Fe.setActiveMenuPath(u);
1705
+ else if (await _r(a, u, null, null, e ? Zn.value : null), e) {
1706
+ const D = await Xn(u);
1707
+ if ((D == null ? void 0 : D.length) > 0) {
1708
+ const x = D == null ? void 0 : D.find((F) => {
1709
+ var B;
1710
+ return ((B = F == null ? void 0 : F.comp) == null ? void 0 : B.toUpperCase()) === "FORM";
1711
+ });
1712
+ x && Oa(x, (h = r == null ? void 0 : r.firstCol) == null ? void 0 : h.label, i, Te.value);
1713
+ }
1714
+ } else
1715
+ De.setRouteToChildPath(G(Te).value), Fe.setActiveMenuPath(u);
1716
+ } else
1717
+ e ? (il.value = "", Je.value = r == null ? void 0 : r.data, zl(!0, r == null ? void 0 : r.firstCol, i)) : (De.setRouteToChildPath(G(Te).value), Fe.setActiveMenuPath(u));
1718
+ }, Vn = () => {
1719
+ ue.value = !1, Nl.value = [], qe.value = !1;
1720
+ }, Kl = (e) => {
1721
+ var o, t, d, g, T, O, N, h, C, D, x, F, B, $;
1722
+ const l = [];
1723
+ let r = [];
1724
+ for (let n in e)
1725
+ Array.isArray(e == null ? void 0 : e[n]) && r.push(n);
1726
+ Xe.value = G(W.value), (t = Hl((o = G(W.value)) == null ? void 0 : o.filter((n) => (n == null ? void 0 : n.label) !== "操作"))) == null || t.forEach((n, v) => {
1727
+ var c;
1728
+ r.find((k) => k === (n == null ? void 0 : n.prop)) || (n != null && n.formType && ((c = n == null ? void 0 : n.formType) == null ? void 0 : c.toUpperCase()) === "SELECT" || n != null && n.menuId ? l.push({
1729
+ label: (n == null ? void 0 : n.prop) || (n == null ? void 0 : n.label) || "",
1730
+ name: (n == null ? void 0 : n.prop) ?? "t" + v,
1731
+ prop: n == null ? void 0 : n.prop,
1732
+ type: "Select",
1733
+ // (!t?.formType || t?.formType === '') ? 'Input' : t?.formType,
1734
+ value: (e == null ? void 0 : e[n == null ? void 0 : n.prop]) ?? (n == null ? void 0 : n.value) ?? "",
1735
+ id: (n == null ? void 0 : n.id) ?? v,
1736
+ contents: (n == null ? void 0 : n.options) ?? [],
1737
+ width: 1,
1738
+ isFormColHidden: n == null ? void 0 : n.isFormColHidden,
1739
+ disabled: n == null ? void 0 : n.disabled,
1740
+ optionUrl: {
1741
+ groupSelect: n == null ? void 0 : n.groupSelect,
1742
+ menuSelect: n == null ? void 0 : n.formMenuSelect,
1743
+ type: "Select",
1744
+ selectRelateType: n == null ? void 0 : n.selectRelateType,
1745
+ allSelectionContents: (n == null ? void 0 : n.allSelectionContents) ?? [],
1746
+ selectFilter: n == null ? void 0 : n.selectFilter,
1747
+ menuId: n == null ? void 0 : n.menuId
1748
+ }
1749
+ }) : l.push({
1750
+ label: (n == null ? void 0 : n.prop) || (n == null ? void 0 : n.label) || "",
1751
+ prop: n == null ? void 0 : n.prop,
1752
+ name: (n == null ? void 0 : n.prop) ?? "t" + v,
1753
+ type: !(n != null && n.formType) || (n == null ? void 0 : n.formType) === "" ? "Input" : n == null ? void 0 : n.formType,
1754
+ value: (e == null ? void 0 : e[n == null ? void 0 : n.prop]) ?? (n == null ? void 0 : n.value) ?? "",
1755
+ id: (n == null ? void 0 : n.id) ?? v,
1756
+ contents: (n == null ? void 0 : n.options) ?? [],
1757
+ width: 1,
1758
+ isFormColHidden: n == null ? void 0 : n.isFormColHidden,
1759
+ disabled: n == null ? void 0 : n.disabled
1760
+ }));
1761
+ }), e === "" || !e || (il.value = (e == null ? void 0 : e.id) ?? "");
1762
+ let a = Hl((d = G(W.value)) == null ? void 0 : d.filter((n) => (n == null ? void 0 : n.label) !== "操作"));
1763
+ Ze.value && ((g = Ze.value) == null ? void 0 : g.length) > 0 && (Ze.value = (T = G(Ze).value) == null ? void 0 : T.map((n) => {
1764
+ var c;
1765
+ let v = (n == null ? void 0 : n.prop) || ((c = a == null ? void 0 : a.find((k) => (k == null ? void 0 : k.label) === (n == null ? void 0 : n.label))) == null ? void 0 : c.prop);
1766
+ return v && (n.value = e[v]), n;
1767
+ })), we.value = Ze.value && ((O = Ze.value) == null ? void 0 : O.length) > 0 ? Cr(Ze.value) : l;
1768
+ let u = [], i = (N = s.itemData) == null ? void 0 : N.filter((n) => (n == null ? void 0 : n.key) === "filterAllType");
1769
+ if ((i == null ? void 0 : i.length) > 0 && (u = (i == null ? void 0 : i.map((v) => v == null ? void 0 : v.value)).flat()), (u == null ? void 0 : u.length) > 0) {
1770
+ let n = u == null ? void 0 : u.find((v) => {
1771
+ var c;
1772
+ return (c = v == null ? void 0 : v.content) == null ? void 0 : c.includes("@Select");
1773
+ });
1774
+ if (n != null && n.content) {
1775
+ let v = (D = (C = (h = n == null ? void 0 : n.content) == null ? void 0 : h.replace(":", sl)) == null ? void 0 : C.split(sl)) == null ? void 0 : D[1];
1776
+ if (((x = v == null ? void 0 : v.trim()) == null ? void 0 : x.toUpperCase()) === "MANUAL") {
1777
+ let c = (B = (F = s.itemData) == null ? void 0 : F.find((k) => (k == null ? void 0 : k.key) === "contentTableId")) == null ? void 0 : B.contents;
1778
+ we.value = ($ = we.value) == null ? void 0 : $.map((k, m) => {
1779
+ var w, p, U, b, R, q, _, j, Q, ee, ie;
1780
+ return (w = k == null ? void 0 : k.optionUrl) != null && w.menuId && (k.type = "Select", (p = k == null ? void 0 : k.optionUrl) != null && p.menuId ? (k.optionUrl.menuId = c, k.optionUrl.menuFilter = u, k.optionUrl.multiple = (R = (b = (U = u == null ? void 0 : u.find((M) => {
1781
+ var y;
1782
+ return (y = M == null ? void 0 : M.content) == null ? void 0 : y.includes("@Num");
1783
+ })) == null ? void 0 : U.content) == null ? void 0 : b.split(":")) != null && R[1] && parseInt((j = (_ = (q = u == null ? void 0 : u.find((M) => {
1784
+ var y;
1785
+ return (y = M == null ? void 0 : M.content) == null ? void 0 : y.includes("@Num");
1786
+ })) == null ? void 0 : q.content) == null ? void 0 : _.split(":")) == null ? void 0 : j[1]) > 1 ? !0 : void 0, k.optionUrl.multipleLimit = (ie = (ee = (Q = u == null ? void 0 : u.find((M) => {
1787
+ var y;
1788
+ return (y = M == null ? void 0 : M.content) == null ? void 0 : y.includes("@Num");
1789
+ })) == null ? void 0 : Q.content) == null ? void 0 : ee.split(":")) == null ? void 0 : ie[1]) : k.optionUrl = {
1790
+ menuId: c,
1791
+ menuFilter: u
1792
+ }), k;
1793
+ });
1794
+ }
1795
+ }
1796
+ }
1797
+ }, er = () => {
1798
+ var l;
1799
+ const e = (l = L.value) == null ? void 0 : l.$el;
1800
+ e && Lr.create(e, {
1801
+ animation: 150,
1802
+ handle: ".col-drag-icon",
1803
+ ghostClass: "sortable-ghost",
1804
+ onEnd: (r) => {
1805
+ var o;
1806
+ const { oldIndex: a, newIndex: u } = r;
1807
+ if (a === u) return;
1808
+ const i = Fl.value.splice(a, 1)[0];
1809
+ Fl.value.splice(u, 0, i), W.value = (o = W.value) == null ? void 0 : o.slice().sort((t, d) => {
1810
+ if (t.label === "操作") return 1;
1811
+ if (d.label === "操作") return -1;
1812
+ const g = Fl.value.findIndex((O) => O.label === t.label), T = Fl.value.findIndex((O) => O.label === d.label);
1813
+ return g - T;
1814
+ });
1815
+ }
1816
+ });
1817
+ };
1818
+ Sa(() => {
1819
+ ta.value = window.innerWidth - 240 * 2;
1820
+ });
1821
+ const lr = () => {
1822
+ ia(() => {
1823
+ er();
1824
+ });
1825
+ }, ga = (e, l) => {
1826
+ var a;
1827
+ if (!e && !(e != null && e.children)) return {
1828
+ contents: e,
1829
+ currentSelectContents: void 0
1830
+ };
1831
+ let r;
1832
+ return e.children = (a = e.children) == null ? void 0 : a.map((u) => {
1833
+ var i, o;
1834
+ if ((u == null ? void 0 : u.id) === il.value) {
1835
+ let t = {};
1836
+ for (let d in u) {
1837
+ let g = (i = l == null ? void 0 : l.find((T) => (T == null ? void 0 : T.prop) === d)) == null ? void 0 : i.label;
1838
+ g ? t[d] = (o = Je.value) == null ? void 0 : o[g] : t[d] = u[d];
1839
+ }
1840
+ u = Object.assign(t, Je.value), r = u;
1841
+ } else {
1842
+ let t = ga(u, l);
1843
+ u = t == null ? void 0 : t.contents, r = t == null ? void 0 : t.currentSelectContents;
1844
+ }
1845
+ return u;
1846
+ }), {
1847
+ contents: e,
1848
+ currentSelectContents: r
1849
+ };
1850
+ }, Ea = (e, l) => {
1851
+ let r, a;
1852
+ return e != null && e.find((u) => (u == null ? void 0 : u.id) === il.value) ? r = e == null ? void 0 : e.map((u) => {
1853
+ var i, o;
1854
+ if ((u == null ? void 0 : u.id) === il.value) {
1855
+ let t = {};
1856
+ for (let d in u) {
1857
+ let g = (i = l == null ? void 0 : l.find((T) => (T == null ? void 0 : T.prop) === d)) == null ? void 0 : i.label;
1858
+ g ? t[d] = (o = Je.value) == null ? void 0 : o[g] : t[d] = u[d];
1859
+ }
1860
+ u = Object.assign(t, Je.value), a = u;
1861
+ }
1862
+ return u;
1863
+ }) : r = e == null ? void 0 : e.map((u) => {
1864
+ var i, o, t, d;
1865
+ if ((u == null ? void 0 : u.id) === il.value) {
1866
+ let g = {};
1867
+ for (let T in u) {
1868
+ let O = (i = l == null ? void 0 : l.find((N) => (N == null ? void 0 : N.prop) === T)) == null ? void 0 : i.label;
1869
+ O ? g[T] = (o = Je.value) == null ? void 0 : o[O] : g[T] = u[T];
1870
+ }
1871
+ u = Object.assign(g, Je.value), a = u;
1872
+ } else
1873
+ u = (t = ga(u, l)) == null ? void 0 : t.contents, a = (d = ga(u, l)) == null ? void 0 : d.currentSelectContents;
1874
+ return u;
1875
+ }), {
1876
+ newContents: r,
1877
+ currentSelectContents: a
1878
+ };
1879
+ }, ja = (e, l, r) => {
1880
+ var a, u;
1881
+ return e[l == null ? void 0 : l.prop] = r, typeof e.id == "number" && (e.id = (a = e.id) == null ? void 0 : a.toString()), e.children && ((u = e.children) == null ? void 0 : u.length) > 0 && (e.children = e.children.map(ja)), e;
1882
+ }, ha = (e) => {
1883
+ var r;
1884
+ const l = [];
1885
+ return l.push({ ...e }), e != null && e.children && Array.isArray(e.children) && ((r = e.children) == null || r.forEach((a) => {
1886
+ l.push(...ha(a));
1887
+ })), (l == null ? void 0 : l.length) > 0 ? l == null ? void 0 : l.map((a) => {
1888
+ const u = { ...a };
1889
+ return delete u.children, u;
1890
+ }) : [];
1891
+ }, zl = (e = !0, l, r) => {
1892
+ var g, T, O, N, h, C, D, x, F, B, $, n, v, c, k, m, w, p, U, b, R, q, _, j, Q, ee, ie;
1893
+ let a = Hl((g = G(W.value)) == null ? void 0 : g.filter((M) => (M == null ? void 0 : M.label) !== "操作")), u, i = G(I.value);
1894
+ if (!Je.value) {
1895
+ ol.value = !1;
1896
+ return;
1897
+ }
1898
+ if (il.value === "") {
1899
+ _l.value++;
1900
+ let M;
1901
+ l && r ? M = {
1902
+ id: _l.value.toString(),
1903
+ [l == null ? void 0 : l.prop]: r,
1904
+ children: Je.value.children
1905
+ } : M = { id: _l.value.toString() }, M != null && M.children && (M = {
1906
+ ...M,
1907
+ children: (T = M.children) == null ? void 0 : T.map((y) => ja(y, l, r))
1908
+ }), i.push(Object.assign(Je.value, M)), u = Object.assign(Je.value, M);
1909
+ } else
1910
+ i = (O = Ea(i, a)) == null ? void 0 : O.newContents, u = (N = Ea(i, a)) == null ? void 0 : N.currentSelectContents;
1911
+ const o = (h = s.itemData) == null ? void 0 : h.filter((M) => (M == null ? void 0 : M.key) === "childTree")[0];
1912
+ if (((C = o == null ? void 0 : o.contents) == null ? void 0 : C.length) > 0) {
1913
+ ll.value = "编辑";
1914
+ const M = [];
1915
+ i == null || i.forEach((y, K) => {
1916
+ var ve;
1917
+ let ae = {};
1918
+ if (Array.isArray(y)) {
1919
+ let de = [];
1920
+ y == null || y.filter((pe) => !(pe != null && pe.id)).forEach((pe, A) => {
1921
+ var f, Ae, be, he, Ce, Se, ul;
1922
+ if ((Ae = (f = al.value) == null ? void 0 : f[A]) != null && Ae.prop && !Array.isArray(pe)) {
1923
+ let Ie = {};
1924
+ Ie[al.value[A].column] = pe, me != null && me.value && ((be = me == null ? void 0 : me.value) == null ? void 0 : be.length) > 0 && ((he = me == null ? void 0 : me.value) != null && he.find(($e) => JSON.stringify($e == null ? void 0 : $e[0]) === JSON.stringify(Ie))) && (de = (Ce = me == null ? void 0 : me.value) == null ? void 0 : Ce.find(($e) => JSON.stringify($e == null ? void 0 : $e[0]) === JSON.stringify(Ie))), de && de.length > 0 ? ae[al.value[A].prop] = de != null && de.find(($e) => {
1925
+ var Be;
1926
+ return ((Be = Object.keys($e)) == null ? void 0 : Be[0]) === al.value[A].column;
1927
+ }) ? (Se = de == null ? void 0 : de.find(($e) => {
1928
+ var Be;
1929
+ return ((Be = Object.keys($e)) == null ? void 0 : Be[0]) === al.value[A].column;
1930
+ })) == null ? void 0 : Se[al.value[A].column] : pe : ae[al.value[A].prop] = pe;
1931
+ } else Array.isArray(pe) && ((ul = al.value[A]) != null && ul.prop ? ae[al.value[A].prop] = pe : ae.children = ba(pe, al.value));
1932
+ });
1933
+ } else
1934
+ ae = y;
1935
+ Array.isArray(y) && y.some((de) => de == null ? void 0 : de.id) ? M.push(Object.assign(ae, { id: (ve = y == null ? void 0 : y.find((de) => de.id)) == null ? void 0 : ve.id })) : ae.id ? M.push(ae) : M.push(Object.assign(ae, { id: K.toString() }));
1936
+ }), I.value = Na(M, o, W.value);
1937
+ } else
1938
+ I.value = i;
1939
+ $a(I.value), la.value = I.value;
1940
+ const t = hu(la.value, cl.value, i);
1941
+ let d = [];
1942
+ if ($l.value ? (d = (D = G($l).value.singleContent) == null ? void 0 : D.filter((M) => (M == null ? void 0 : M.id) !== (u == null ? void 0 : u.id)), d.push(u)) : d = [u], nl.value) {
1943
+ const M = {
1944
+ content: t,
1945
+ singleContent: ((x = o == null ? void 0 : o.contents) == null ? void 0 : x.length) > 0 ? d == null ? void 0 : d.flatMap(ha) : d,
1946
+ index: s == null ? void 0 : s.index,
1947
+ buttonName: "编辑",
1948
+ column: W.value,
1949
+ parentTableId: s == null ? void 0 : s.parentTableId
1950
+ };
1951
+ De.setCacheUpdatingData(M);
1952
+ }
1953
+ if (e) {
1954
+ let M = (n = ($ = (B = (F = s.itemData) == null ? void 0 : F.find((K) => (K == null ? void 0 : K.key) === "filterAllType")) == null ? void 0 : B.value) == null ? void 0 : $.find((K) => (K == null ? void 0 : K.value) === "onConditionContents")) == null ? void 0 : n.content;
1955
+ const y = {
1956
+ content: t,
1957
+ singleContent: ((v = o == null ? void 0 : o.contents) == null ? void 0 : v.length) > 0 ? ha(u) : u,
1958
+ index: s == null ? void 0 : s.index,
1959
+ buttonName: ll.value,
1960
+ column: W.value,
1961
+ parentTableId: s == null ? void 0 : s.parentTableId,
1962
+ filter: M,
1963
+ allFilter: (k = (c = s.itemData) == null ? void 0 : c.find((K) => (K == null ? void 0 : K.key) === "filterAllType")) == null ? void 0 : k.value,
1964
+ pathIndex: (w = (m = s.itemData) == null ? void 0 : m.find((K) => (K == null ? void 0 : K.key) === "relatedFilter")) == null ? void 0 : w.index
1965
+ };
1966
+ De.setTableLoading(s == null ? void 0 : s.index), ol.value = !1, Je.value = void 0, H("change", y);
1967
+ }
1968
+ if ((b = (U = (p = we.value) == null ? void 0 : p[0]) == null ? void 0 : U.optionUrl) != null && b.menuId) {
1969
+ ol.value = !1;
1970
+ let M = (R = s.itemData) == null ? void 0 : R.filter((y) => (y == null ? void 0 : y.key) === "filterAllType");
1971
+ if ((M == null ? void 0 : M.length) > 0) {
1972
+ let K = (j = (_ = (q = (M == null ? void 0 : M.map((ae) => ae == null ? void 0 : ae.value)).flat().find((ae) => {
1973
+ var ve;
1974
+ return (ve = ae == null ? void 0 : ae.content) == null ? void 0 : ve.includes("@Num");
1975
+ })) == null ? void 0 : q.content) == null ? void 0 : _.split(":")) == null ? void 0 : j[1];
1976
+ K = parseInt(K), I.value = (ie = I.value) == null ? void 0 : ie.slice(((Q = I.value) == null ? void 0 : Q.length) - K, (ee = I.value) == null ? void 0 : ee.length);
1977
+ }
1978
+ }
1979
+ };
1980
+ gr(() => {
1981
+ W.value = [], I.value = [], Xe.value = [], Pe.value = [], Ze.value = [], yl.value = [], Nl.value = [], Ol.value = [], we.value = [], rl.value = [], L.value = null;
1982
+ });
1983
+ const La = async (e, l, r) => {
1984
+ var g, T, O, N, h, C, D, x, F, B, $;
1985
+ Sl.value = r == null ? void 0 : r.prop;
1986
+ const a = G(s.itemData), u = a == null ? void 0 : a.map((n) => {
1987
+ var v;
1988
+ return (n == null ? void 0 : n.key) === "header" && ((v = n.contents) == null || v.map((c, k) => {
1989
+ var m, w, p, U, b, R, q, _, j, Q, ee, ie, M, y, K, ae, ve, de, pe;
1990
+ return c.type = c != null && c.type ? c.type : (U = (p = (w = (m = c == null ? void 0 : c.key) == null ? void 0 : m.split("$")) == null ? void 0 : w[1]) == null ? void 0 : p.split("(")) != null && U[0] ? (R = (b = Ya) == null ? void 0 : b.find((A) => {
1991
+ var f, Ae, be, he;
1992
+ return (A == null ? void 0 : A.key) === ((he = (be = (Ae = (f = c == null ? void 0 : c.key) == null ? void 0 : f.split("$")) == null ? void 0 : Ae[1]) == null ? void 0 : be.split("(")) == null ? void 0 : he[0]);
1993
+ })) == null ? void 0 : R.value : "Input", c.options = c != null && c.options ? c.options : ((j = (_ = (q = c == null ? void 0 : c.key) == null ? void 0 : q.split("$")) == null ? void 0 : _[1]) == null ? void 0 : j.length) > 0 ? (M = (ie = an((ee = (Q = c == null ? void 0 : c.key) == null ? void 0 : Q.split("$")) == null ? void 0 : ee[1])) == null ? void 0 : ie.split(",")) == null ? void 0 : M.map((A) => ({
1994
+ label: A,
1995
+ value: A
1996
+ })) : [], (y = c == null ? void 0 : c.key) != null && y.includes("$") && (c.key = (ae = (K = c == null ? void 0 : c.key) == null ? void 0 : K.split("$")) == null ? void 0 : ae[0]), c.value = (ve = Object.values(l)) == null ? void 0 : ve[k], c.optionUrl = c != null && c.formMenuSelect && ((de = c == null ? void 0 : c.formMenuSelect) == null ? void 0 : de.length) > 0 ? {
1997
+ groupSelect: (pe = c == null ? void 0 : c.groupSelect) == null ? void 0 : pe.split(/[::]/).map((A) => A.trim()),
1998
+ menuSelect: c == null ? void 0 : c.formMenuSelect,
1999
+ selectRelateType: "",
2000
+ type: (c == null ? void 0 : c.formType) ?? (c != null && c.groupSelect ? "Select" : "")
2001
+ } : null, c;
2002
+ })), n;
2003
+ });
2004
+ let i = G(we.value), o = (T = (g = G(u)) == null ? void 0 : g.find((n) => (n == null ? void 0 : n.key) === "header")) == null ? void 0 : T.contents;
2005
+ i = i == null ? void 0 : i.map((n) => {
2006
+ var v;
2007
+ return n.value = (v = o == null ? void 0 : o.find((c, k) => k === (n == null ? void 0 : n.id))) == null ? void 0 : v.value, n;
2008
+ });
2009
+ let t = "", d = (h = (N = (O = G(u)) == null ? void 0 : O.find((n) => (n == null ? void 0 : n.key) === "header")) == null ? void 0 : N.contents) == null ? void 0 : h.find((n, v) => {
2010
+ var c, k, m;
2011
+ return (n == null ? void 0 : n.label) === Sl.value || (v == null ? void 0 : v.toString()) === ((m = (k = (c = Sl.value) == null ? void 0 : c.split("a")) == null ? void 0 : k[1]) == null ? void 0 : m.toString());
2012
+ });
2013
+ if ((x = (D = (C = G(u)) == null ? void 0 : C.find((n) => (n == null ? void 0 : n.key) === "header")) == null ? void 0 : D.contents) == null || x.forEach((n) => {
2014
+ var v, c, k, m, w;
2015
+ t === "" && ((k = (c = (v = n == null ? void 0 : n.optionUrl) == null ? void 0 : v.groupSelect) == null ? void 0 : c[1]) != null && k.includes("[")) && (t = (w = (m = n == null ? void 0 : n.optionUrl) == null ? void 0 : m.groupSelect) == null ? void 0 : w[1]);
2016
+ }), (F = d == null ? void 0 : d.optionUrl) != null && F.menuSelect) {
2017
+ let n = await rn(d), v;
2018
+ if (n == null || n.forEach((c) => {
2019
+ var k, m, w, p, U, b, R, q, _, j;
2020
+ t === ((m = (k = d == null ? void 0 : d.optionUrl) == null ? void 0 : k.groupSelect) == null ? void 0 : m[1]) && ((U = (p = (w = d == null ? void 0 : d.optionUrl) == null ? void 0 : w.groupSelect) == null ? void 0 : p[1]) != null && U.includes("[")) && ((j = G(c)) == null ? void 0 : j[(_ = (q = (R = (b = d == null ? void 0 : d.optionUrl) == null ? void 0 : b.groupSelect) == null ? void 0 : R[1]) == null ? void 0 : q.replaceAll("[", "")) == null ? void 0 : _.replaceAll("]", "")]) === (d == null ? void 0 : d.value) && (v = c);
2021
+ }), v) {
2022
+ let c = G(i);
2023
+ c = c == null ? void 0 : c.map((m) => {
2024
+ var w, p, U, b, R, q, _, j, Q, ee, ie;
2025
+ return (v != null && v[m == null ? void 0 : m.label] || v != null && v[(b = (U = (p = (w = m == null ? void 0 : m.optionUrl) == null ? void 0 : w.groupSelect) == null ? void 0 : p[1]) == null ? void 0 : U.replaceAll("[", "")) == null ? void 0 : b.replaceAll("]", "")]) && ((_ = (q = (R = m == null ? void 0 : m.optionUrl) == null ? void 0 : R.groupSelect) == null ? void 0 : q[1]) != null && _.includes("[")) && (m.value = (v == null ? void 0 : v[m == null ? void 0 : m.label]) || (v == null ? void 0 : v[(ie = (ee = (Q = (j = m == null ? void 0 : m.optionUrl) == null ? void 0 : j.groupSelect) == null ? void 0 : Q[1]) == null ? void 0 : ee.replaceAll("[", "")) == null ? void 0 : ie.replaceAll("]", "")])), m;
2026
+ }), I.value = (B = G(I.value)) == null ? void 0 : B.map((m) => {
2027
+ if ((m == null ? void 0 : m.id) === (l == null ? void 0 : l.id)) {
2028
+ const w = {};
2029
+ return c == null || c.forEach((p) => {
2030
+ w[p.name] = p.value;
2031
+ }), w.id = m == null ? void 0 : m.id, w;
2032
+ }
2033
+ return m;
2034
+ });
2035
+ let k = G(c);
2036
+ k = k == null ? void 0 : k.map((m) => {
2037
+ var w, p, U, b;
2038
+ return (p = (w = m == null ? void 0 : m.optionUrl) == null ? void 0 : w.menuSelect) != null && p.some((R) => R == null ? void 0 : R.includes) && (m.optionUrl.menuSelect = (b = (U = m == null ? void 0 : m.optionUrl) == null ? void 0 : U.menuSelect) == null ? void 0 : b.map((R) => {
2039
+ var q, _, j, Q;
2040
+ if (R != null && R.includes("[")) {
2041
+ let ee = (_ = (q = R == null ? void 0 : R.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : q.split(":")) == null ? void 0 : _[1];
2042
+ R = (Q = (j = G(c)) == null ? void 0 : j.find((ie) => (ie == null ? void 0 : ie.label) === ee)) == null ? void 0 : Q.value;
2043
+ }
2044
+ return R;
2045
+ })), m;
2046
+ }), I.value = ($ = G(I.value)) == null ? void 0 : $.map((m) => {
2047
+ if ((m == null ? void 0 : m.id) === (l == null ? void 0 : l.id)) {
2048
+ const w = {};
2049
+ return k == null || k.forEach((p) => {
2050
+ w[p.name] = p.value;
2051
+ }), w.id = m == null ? void 0 : m.id, w;
2052
+ }
2053
+ return m;
2054
+ });
2055
+ }
2056
+ }
2057
+ }, ar = async (e) => {
2058
+ var O, N, h, C, D, x, F, B, $, n, v, c, k, m, w;
2059
+ if (!e) return;
2060
+ Je.value = e;
2061
+ const l = G(s.itemData);
2062
+ let r = l == null ? void 0 : l.map((p) => {
2063
+ var U;
2064
+ return (p == null ? void 0 : p.key) === "header" && ((U = p.contents) == null || U.map((b, R) => {
2065
+ var q, _, j, Q, ee, ie, M, y, K, ae, ve, de, pe, A, f, Ae, be, he, Ce;
2066
+ return b.type = b != null && b.type ? b.type : (Q = (j = (_ = (q = b == null ? void 0 : b.key) == null ? void 0 : q.split("$")) == null ? void 0 : _[1]) == null ? void 0 : j.split("(")) != null && Q[0] ? (ie = (ee = Ya) == null ? void 0 : ee.find((Se) => {
2067
+ var ul, Ie, $e, Be;
2068
+ return (Se == null ? void 0 : Se.key) === ((Be = ($e = (Ie = (ul = b == null ? void 0 : b.key) == null ? void 0 : ul.split("$")) == null ? void 0 : Ie[1]) == null ? void 0 : $e.split("(")) == null ? void 0 : Be[0]);
2069
+ })) == null ? void 0 : ie.value : "Input", b.options = b != null && b.options ? b.options : ((K = (y = (M = b == null ? void 0 : b.key) == null ? void 0 : M.split("$")) == null ? void 0 : y[1]) == null ? void 0 : K.length) > 0 ? (pe = (de = an((ve = (ae = b == null ? void 0 : b.key) == null ? void 0 : ae.split("$")) == null ? void 0 : ve[1])) == null ? void 0 : de.split(",")) == null ? void 0 : pe.map((Se) => ({
2070
+ label: Se,
2071
+ value: Se
2072
+ })) : [], (A = b == null ? void 0 : b.key) != null && A.includes("$") && (b.key = (Ae = (f = b == null ? void 0 : b.key) == null ? void 0 : f.split("$")) == null ? void 0 : Ae[0]), b.value = (be = Object.values(e)) == null ? void 0 : be[R], b.optionUrl = b != null && b.formMenuSelect && ((he = b == null ? void 0 : b.formMenuSelect) == null ? void 0 : he.length) > 0 ? {
2073
+ groupSelect: (Ce = b == null ? void 0 : b.groupSelect) == null ? void 0 : Ce.split(/[::]/).map((Se) => Se.trim()),
2074
+ menuSelect: b == null ? void 0 : b.formMenuSelect,
2075
+ selectRelateType: "",
2076
+ type: (b == null ? void 0 : b.formType) ?? (b != null && b.groupSelect ? "Select" : "")
2077
+ } : null, b;
2078
+ })), p;
2079
+ }), a = we.value, u = (N = (O = G(r)) == null ? void 0 : O.find((p) => (p == null ? void 0 : p.key) === "header")) == null ? void 0 : N.contents;
2080
+ if (u = u == null ? void 0 : u.filter((p) => (p == null ? void 0 : p.label) !== "操作"), u.push({
2081
+ label: "操作",
2082
+ type: "operate"
2083
+ }), a = a == null ? void 0 : a.map((p) => {
2084
+ var U;
2085
+ return p.value = p.value ?? ((U = u == null ? void 0 : u.find((b, R) => (b == null ? void 0 : b.prop) === (p == null ? void 0 : p.name))) == null ? void 0 : U.value), p;
2086
+ }), !Ml.value) return;
2087
+ let i = "", o = (D = (C = (h = G(r)) == null ? void 0 : h.find((p) => (p == null ? void 0 : p.key) === "header")) == null ? void 0 : C.contents) == null ? void 0 : D.find((p, U) => {
2088
+ var b, R, q;
2089
+ return (p == null ? void 0 : p.label) === Sl.value || (U == null ? void 0 : U.toString()) === ((q = (R = (b = Sl.value) == null ? void 0 : b.split("a")) == null ? void 0 : R[1]) == null ? void 0 : q.toString());
2090
+ }), t = (x = o == null ? void 0 : o.optionUrl) == null ? void 0 : x.menuSelect, d = !0;
2091
+ ($ = (B = (F = G(r)) == null ? void 0 : F.find((p) => (p == null ? void 0 : p.key) === "header")) == null ? void 0 : B.contents) == null || $.forEach((p) => {
2092
+ var U, b, R, q, _, j;
2093
+ d && ((R = (b = (U = p == null ? void 0 : p.optionUrl) == null ? void 0 : U.groupSelect) == null ? void 0 : b[1]) != null && R.includes("[")) && (i = (_ = (q = p == null ? void 0 : p.optionUrl) == null ? void 0 : q.groupSelect) == null ? void 0 : _[1], JSON.stringify(t) === JSON.stringify((j = p == null ? void 0 : p.optionUrl) == null ? void 0 : j.menuSelect) && (d = !1));
2094
+ });
2095
+ let g = G(a);
2096
+ g = g == null ? void 0 : g.map((p) => {
2097
+ var U, b;
2098
+ return (p == null ? void 0 : p.type) === "Select" && ((b = (U = p == null ? void 0 : p.optionUrl) == null ? void 0 : U.allSelectionContents) == null ? void 0 : b.length) > 0 && (p.optionUrl.contactValue = e), p.value = e == null ? void 0 : e[p == null ? void 0 : p.prop], p;
2099
+ }), we.value = G(g);
2100
+ let T = (c = (v = (n = we.value) == null ? void 0 : n.find((p) => {
2101
+ var U;
2102
+ return (U = p == null ? void 0 : p.optionUrl) == null ? void 0 : U.menuId;
2103
+ })) == null ? void 0 : v.optionUrl) == null ? void 0 : c.menuId;
2104
+ if ((k = o == null ? void 0 : o.optionUrl) != null && k.menuSelect && Ml.value || T) {
2105
+ let p = await rn(o, T), U;
2106
+ if ((m = o == null ? void 0 : o.optionUrl) == null || m.menuSelect, p == null || p.forEach((b) => {
2107
+ var R, q, _, j, Q, ee, ie, M, y, K, ae, ve, de, pe;
2108
+ i === ((q = (R = o == null ? void 0 : o.optionUrl) == null ? void 0 : R.groupSelect) == null ? void 0 : q[1]) && ((Q = (j = (_ = o == null ? void 0 : o.optionUrl) == null ? void 0 : _.groupSelect) == null ? void 0 : j[1]) != null && Q.includes("[")) && ((K = G(b)) == null ? void 0 : K[(y = (M = (ie = (ee = o == null ? void 0 : o.optionUrl) == null ? void 0 : ee.groupSelect) == null ? void 0 : ie[1]) == null ? void 0 : M.replaceAll("[", "")) == null ? void 0 : y.replaceAll("]", "")]) === (o == null ? void 0 : o.value) && (U = b), T && b[(ve = (ae = we.value) == null ? void 0 : ae.find((A) => {
2109
+ var f;
2110
+ return (f = A == null ? void 0 : A.optionUrl) == null ? void 0 : f.menuId;
2111
+ })) == null ? void 0 : ve.prop] === e[(pe = (de = we.value) == null ? void 0 : de.find((A) => {
2112
+ var f;
2113
+ return (f = A == null ? void 0 : A.optionUrl) == null ? void 0 : f.menuId;
2114
+ })) == null ? void 0 : pe.prop] && (U = b);
2115
+ }), U) {
2116
+ let b = G(a);
2117
+ b = b == null ? void 0 : b.map((_) => {
2118
+ var j, Q, ee, ie, M, y, K, ae, ve, de, pe, A, f, Ae, be, he, Ce;
2119
+ return (U != null && U[_ == null ? void 0 : _.label] || U != null && U[(ie = (ee = (Q = (j = _ == null ? void 0 : _.optionUrl) == null ? void 0 : j.groupSelect) == null ? void 0 : Q[1]) == null ? void 0 : ee.replaceAll("[", "")) == null ? void 0 : ie.replaceAll("]", "")]) && ((K = (y = (M = _ == null ? void 0 : _.optionUrl) == null ? void 0 : M.groupSelect) == null ? void 0 : y[1]) != null && K.includes("[")) && (_.value = (U == null ? void 0 : U[_ == null ? void 0 : _.label]) || (U == null ? void 0 : U[(pe = (de = (ve = (ae = _ == null ? void 0 : _.optionUrl) == null ? void 0 : ae.groupSelect) == null ? void 0 : ve[1]) == null ? void 0 : de.replaceAll("[", "")) == null ? void 0 : pe.replaceAll("]", "")])), T && (U != null && U[_ == null ? void 0 : _.label]) ? _.value = (U == null ? void 0 : U[_ == null ? void 0 : _.label]) || (U == null ? void 0 : U[(be = (Ae = (f = (A = _ == null ? void 0 : _.optionUrl) == null ? void 0 : A.groupSelect) == null ? void 0 : f[1]) == null ? void 0 : Ae.replaceAll("[", "")) == null ? void 0 : be.replaceAll("]", "")]) : _.value = (Ce = (he = we.value) == null ? void 0 : he.find((Se) => (Se == null ? void 0 : Se.prop) === (_ == null ? void 0 : _.prop))) == null ? void 0 : Ce.value, _;
2120
+ }), we.value = G(b);
2121
+ let R = G(b);
2122
+ R = R == null ? void 0 : R.map((_) => {
2123
+ var j, Q, ee, ie, M, y;
2124
+ return (Q = (j = _ == null ? void 0 : _.optionUrl) == null ? void 0 : j.menuSelect) != null && Q.some((K) => K == null ? void 0 : K.includes("[")) && (_.optionUrl.oldMenuSelect = (ie = (ee = G(_)) == null ? void 0 : ee.optionUrl) == null ? void 0 : ie.menuSelect, _.optionUrl.menuSelect = (y = (M = _ == null ? void 0 : _.optionUrl) == null ? void 0 : M.menuSelect) == null ? void 0 : y.map((K) => {
2125
+ var ae, ve, de, pe;
2126
+ if (K != null && K.includes("[")) {
2127
+ let A = (ve = (ae = K == null ? void 0 : K.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : ae.split(":")) == null ? void 0 : ve[1];
2128
+ K = (pe = (de = G(b)) == null ? void 0 : de.find((f) => (f == null ? void 0 : f.label) === A)) == null ? void 0 : pe.value;
2129
+ }
2130
+ return K;
2131
+ })), _;
2132
+ }), we.value = R;
2133
+ let q = {};
2134
+ (w = we.value) == null || w.forEach((_) => {
2135
+ q[_.prop] = _ == null ? void 0 : _.value;
2136
+ }), Je.value = q;
2137
+ }
2138
+ }
2139
+ Ml.value = !1;
2140
+ }, nr = (e) => e ? (e == null ? void 0 : e.toUpperCase()) === "INPUT" ? "TEXTAREA" : e : "TEXTAREA", rr = (e) => {
2141
+ var i, o;
2142
+ const l = (o = (i = Ze.value) == null ? void 0 : i.find((t) => (t == null ? void 0 : t.label) === (e == null ? void 0 : e.label))) == null ? void 0 : o.multiple, r = e == null ? void 0 : e.prop;
2143
+ if ((e == null ? void 0 : e.formType) != "Select")
2144
+ return;
2145
+ I.value.forEach((t) => {
2146
+ const d = t == null ? void 0 : t[r];
2147
+ l && ln(d) && (t[r] = [d]), !l && !ln(d) && (t[r] = "");
2148
+ });
2149
+ }, Pa = (e, l) => {
2150
+ var r;
2151
+ return l == null || l.forEach((a) => {
2152
+ e[a == null ? void 0 : a.prop] = a == null ? void 0 : a.value;
2153
+ }), e.children && ((r = e.children) == null ? void 0 : r.length) > 0 && (e.children = e.children.map((a) => Pa(a, l))), e;
2154
+ }, ya = (e) => {
2155
+ var r, a, u, i, o, t;
2156
+ Kl("");
2157
+ const l = (r = we.value) == null ? void 0 : r.reduce((d, g) => (d[g.name] = g.value, d), {});
2158
+ if (((a = Object.keys(l)) == null ? void 0 : a.length) > 0) {
2159
+ Je.value = l, il.value = "", _l.value = (u = I.value) == null ? void 0 : u.length, Ol.value = (i = vl.value) == null ? void 0 : i.filter((g) => (g == null ? void 0 : g.label) !== "新增");
2160
+ const d = (t = (o = Xe.value) == null ? void 0 : o.filter((g) => (g == null ? void 0 : g.label) !== "操作")) == null ? void 0 : t.map((g) => {
2161
+ var O, N, h;
2162
+ const T = (N = (O = Ze.value) == null ? void 0 : O.find((C) => (C == null ? void 0 : C.label) === (g == null ? void 0 : g.label))) == null ? void 0 : N.multiple;
2163
+ return rr(g), {
2164
+ ...g,
2165
+ contents: (g == null ? void 0 : g.options) ?? [],
2166
+ // type: 'edit',
2167
+ optionUrl: g != null && g.formMenuSelect && ((h = g == null ? void 0 : g.formMenuSelect) == null ? void 0 : h.length) > 0 ? {
2168
+ groupSelect: g == null ? void 0 : g.groupSelect,
2169
+ menuSelect: g == null ? void 0 : g.formMenuSelect,
2170
+ selectRelateType: "",
2171
+ type: g == null ? void 0 : g.formType,
2172
+ multiple: T
2173
+ } : null
2174
+ // 表格编辑视图组件类型:兼容表头类型切换逻辑,优先模型里定义的类型,其次是手动配置的类型
2175
+ // columnType: convertColType(col?.formType) || col?.columnType
2176
+ };
2177
+ });
2178
+ W.value = d == null ? void 0 : d.map((g) => Pa(g, [{
2179
+ prop: "type",
2180
+ value: "edit"
2181
+ }, { prop: "columnType", value: nr(g == null ? void 0 : g.formType) || (g == null ? void 0 : g.columnType) }])), e === "createClick" && zl(!1);
2182
+ }
2183
+ }, Dl = {
2184
+ START: "开始时间",
2185
+ END: "结束时间",
2186
+ HOURS: "工时"
2187
+ }, ur = (e, l) => Number(Za(l).diff(Za(e), "day", !0).toFixed(1)), $a = (e) => {
2188
+ var i;
2189
+ const l = s.itemData, r = (i = l == null ? void 0 : l.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : i.contents, a = /* @__PURE__ */ new Map();
2190
+ return r == null || r.forEach((o, t) => {
2191
+ const { label: d } = o;
2192
+ a.set(d, t);
2193
+ }), !a.has(Dl.START) || !a.has(Dl.END) || !a.has(Dl.HOURS) ? e : e == null ? void 0 : e.map((o) => {
2194
+ const t = o == null ? void 0 : o[Dl.START], d = o == null ? void 0 : o[Dl.END], g = ur(t, d);
2195
+ return t && d && (o[Dl.HOURS] = `${g}天`), o;
2196
+ });
2197
+ }, Ba = (e, l, r = 0) => {
2198
+ if (r > ((l == null ? void 0 : l.length) ?? "")) return e;
2199
+ const a = l == null ? void 0 : l[r], u = /* @__PURE__ */ new Map();
2200
+ for (const o of e) {
2201
+ const t = o[a];
2202
+ u.has(t) || u.set(t, []), u.get(t) && u.get(t).push(o);
2203
+ }
2204
+ const i = [];
2205
+ for (const [o, t] of u) {
2206
+ const [d, ...g] = t, T = { ...d };
2207
+ r + 1 === ((l == null ? void 0 : l.length) ?? "") ? T.children = t == null ? void 0 : t.map((O) => (O.level = G(r) + 1, O)).filter((O, N) => N !== 0) : g.length > 0 && (T.children = Ba(g, l, r + 1)), T.level = r, i.push(T);
2208
+ }
2209
+ return i;
2210
+ }, Na = (e, l, r) => {
2211
+ var u;
2212
+ if (!(l != null && l.contents) || ((u = l == null ? void 0 : l.contents) == null ? void 0 : u.length) === 0)
2213
+ return e;
2214
+ let a = [];
2215
+ return a = Ba(e, l == null ? void 0 : l.contents, 0), a;
2216
+ }, Ma = (e, l) => {
2217
+ var N, h, C, D, x, F, B, $, n, v, c, k, m, w, p, U, b, R, q, _, j, Q, ee, ie, M;
2218
+ const r = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "header");
2219
+ e == null || e.filter((y) => (y == null ? void 0 : y.key) === "tableIndexColumn")[0];
2220
+ const a = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "childTree")[0];
2221
+ let u = l;
2222
+ const i = e == null ? void 0 : e.find((y) => (y == null ? void 0 : y.key) === "page"), o = e == null ? void 0 : e.find((y) => (y == null ? void 0 : y.key) === "rowButton"), t = e == null ? void 0 : e.find((y) => (y == null ? void 0 : y.key) === "extraButton"), d = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "tableContents"), g = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "tableIndex");
2223
+ Ze.value = (h = (N = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "tableToForm")) == null ? void 0 : N[0]) == null ? void 0 : h.contents, Ta.value = (i == null ? void 0 : i.contents) ?? !0;
2224
+ let T = [];
2225
+ bl.value === "" ? T = r == null ? void 0 : r[0] : T = (r == null ? void 0 : r.find((y) => (y == null ? void 0 : y.selectLabel) === "(" + bl.value + ")")) ?? (r == null ? void 0 : r.find((y) => !(y != null && y.selectLabel)));
2226
+ let O = [];
2227
+ if (bl.value === "" ? O = g == null ? void 0 : g[0] : O = (g == null ? void 0 : g.find((y) => (y == null ? void 0 : y.selectLabel) === "(" + bl.value + ")")) ?? (g == null ? void 0 : g.find((y) => !(y != null && y.selectLabel))), ((C = T == null ? void 0 : T.contents) == null ? void 0 : C.length) > 0) {
2228
+ let y = [];
2229
+ if (T != null && T.contents.some((A) => Array.isArray(A) && (A == null ? void 0 : A.find((f) => f.children))))
2230
+ cl.value === "" ? y = (x = (D = Qa(T == null ? void 0 : T.contents)) == null ? void 0 : D[0]) == null ? void 0 : x.filter((A) => !Array.isArray(A)) : (cl.value.split("-"), y = (F = Qa(T == null ? void 0 : T.contents)) == null ? void 0 : F[0]);
2231
+ else {
2232
+ let A = T != null && T.contents.some((f) => Array.isArray(f)) ? (B = T == null ? void 0 : T.contents) == null ? void 0 : B[0] : T == null ? void 0 : T.contents;
2233
+ A == null || A.forEach((f, Ae) => {
2234
+ var Ce, Se, ul, Ie, $e;
2235
+ let be = "";
2236
+ (Se = (Ce = Te.value) == null ? void 0 : Ce.split("/")) == null || Se.forEach((Be) => {
2237
+ var Jl, Wl, El;
2238
+ if (Be !== "") {
2239
+ let Ge = (El = (Wl = (Jl = Be == null ? void 0 : Be.split(Ne + "updateLoading")) == null ? void 0 : Jl[0]) == null ? void 0 : Wl.split(Ne + "loading")) == null ? void 0 : El[0];
2240
+ be = be === "" ? be + Ge : be + "/" + Ge;
2241
+ }
2242
+ }), be = be + Ne + (f == null ? void 0 : f.directiveLabel);
2243
+ const he = (ul = Ze.value) == null ? void 0 : ul.find((Be) => (Be == null ? void 0 : Be.prop) === (f == null ? void 0 : f.prop));
2244
+ y.push({
2245
+ label: (f == null ? void 0 : f.label) ?? "",
2246
+ prop: (f == null ? void 0 : f.label) === "操作" ? "operate" : (f == null ? void 0 : f.prop) ?? "a" + Ae,
2247
+ // width: t?.label === '操作' ? '200' : (t?.width ? parseInt(t.width) : ''),
2248
+ width: f != null && f.width ? parseInt(f.width) : "",
2249
+ fixed: (f == null ? void 0 : f.fixed) ?? void 0,
2250
+ sortable: (f == null ? void 0 : f.sortable) ?? !1,
2251
+ filterable: (f == null ? void 0 : f.filterable) ?? !1,
2252
+ operable: (f == null ? void 0 : f.operable) ?? !1,
2253
+ showSummary: (f == null ? void 0 : f.showSummary) ?? !1,
2254
+ align: (f == null ? void 0 : f.align) ?? "left",
2255
+ showOverflowTooltip: (f == null ? void 0 : f.showOverflowTooltip) ?? !0,
2256
+ isNotDrag: (f == null ? void 0 : f.isNotDrag) ?? !1,
2257
+ isEditCol: (f == null ? void 0 : f.isEditCol) ?? !1,
2258
+ isOperate: (f == null ? void 0 : f.isOperate) ?? !1,
2259
+ id: (f == null ? void 0 : f.id) ?? Ae,
2260
+ type: (f == null ? void 0 : f.label) === "操作" ? "operate" : void 0,
2261
+ formType: (f == null ? void 0 : f.formType) ?? (f != null && f.groupSelect ? "Select" : ""),
2262
+ isTableColHidden: f == null ? void 0 : f.isTableColHidden,
2263
+ isFormColHidden: f == null ? void 0 : f.isFormColHidden,
2264
+ disabled: f == null ? void 0 : f.disabled,
2265
+ options: (f == null ? void 0 : f.options) ?? [],
2266
+ value: (f == null ? void 0 : f.value) ?? "",
2267
+ formMenuSelect: (f == null ? void 0 : f.formMenuSelect) ?? [],
2268
+ isRoute: (f == null ? void 0 : f.isRoute) ?? !1,
2269
+ groupSelect: f != null && f.groupSelect ? (Ie = f == null ? void 0 : f.groupSelect) == null ? void 0 : Ie.replaceAll('"', "").split(":") : [],
2270
+ isMainKey: (f == null ? void 0 : f.isMainKey) || (f == null ? void 0 : f.directiveLabel) === "#isMain",
2271
+ // 同步弹窗列类型到表格列类型
2272
+ columnType: (he == null ? void 0 : he.type) || (f == null ? void 0 : f.columnType) || "TEXTAREA",
2273
+ directiveLabel: f == null ? void 0 : f.directiveLabel,
2274
+ isExistChild: !!(f != null && f.directiveLabel && !(u != null && u[be]) && !(($e = f == null ? void 0 : f.directiveLabel) != null && $e.includes("@")) && (f == null ? void 0 : f.directiveLabel) !== "#isMain"),
2275
+ childPath: (f == null ? void 0 : f.directiveLabel) !== "#isMain" ? be : void 0,
2276
+ allSelectionContents: (f == null ? void 0 : f.allSelectionContents) ?? [],
2277
+ selectFilter: f == null ? void 0 : f.selectFilter,
2278
+ menuId: f == null ? void 0 : f.menuId
2279
+ });
2280
+ });
2281
+ }
2282
+ W.value = Xa(y), Pe.value = Xa(y), Z.value = ($ = W.value) == null ? void 0 : $.map((A) => A == null ? void 0 : A.label), gl.value = (n = W.value) == null ? void 0 : n.every((A) => A == null ? void 0 : A.filterable), te.value = (v = W.value) == null ? void 0 : v.every((A) => A == null ? void 0 : A.operable), fl.value = (c = W.value) == null ? void 0 : c.every((A) => A == null ? void 0 : A.sortable);
2283
+ let K = (m = (k = Ur(W.value)) == null ? void 0 : k.filter((A) => (A == null ? void 0 : A.type) !== "operate")) == null ? void 0 : m.map((A, f) => ({
2284
+ prop: (A == null ? void 0 : A.prop) ?? "a" + f,
2285
+ column: A.label
2286
+ }));
2287
+ al.value = K;
2288
+ let ae = [];
2289
+ bl.value === "" ? ae = d == null ? void 0 : d[0] : ae = (d == null ? void 0 : d.find((A) => (A == null ? void 0 : A.selectLabel) === "(" + bl.value + ")")) ?? (d == null ? void 0 : d.find((A) => !(A != null && A.selectLabel)));
2290
+ let ve = Array.isArray((w = ae == null ? void 0 : ae.contents) == null ? void 0 : w[0]) && ((p = ae == null ? void 0 : ae.contents) != null && p[0].every((A) => Array.isArray(A))) ? (U = ae == null ? void 0 : ae.contents) == null ? void 0 : U[0] : ae == null ? void 0 : ae.contents;
2291
+ O != null && O.contents && ((b = O == null ? void 0 : O.contents) == null ? void 0 : b.length) !== 0 && (ve = (R = G(ve)) == null ? void 0 : R.map((A, f) => {
2292
+ if (!Array.isArray(A)) {
2293
+ let Ae = {};
2294
+ for (let be in A)
2295
+ be !== "id" && be !== "index" && (Ae[be] = A[be]);
2296
+ A = Object.values(Ae);
2297
+ }
2298
+ return A;
2299
+ }));
2300
+ const de = !!((q = W.value) != null && q.find((A) => A.prop === "index"));
2301
+ ve = on(ve, O == null ? void 0 : O.contents, de);
2302
+ const pe = [];
2303
+ ve == null || ve.forEach((A, f) => {
2304
+ var be;
2305
+ let Ae = {};
2306
+ if (Array.isArray(A)) {
2307
+ let he = [];
2308
+ A == null || A.filter((Ce) => !(Ce != null && Ce.id)).forEach((Ce, Se) => {
2309
+ var ul, Ie, $e, Be, Jl, Wl;
2310
+ if ((ul = K == null ? void 0 : K[Se]) != null && ul.prop && !Array.isArray(Ce)) {
2311
+ let El = {};
2312
+ El[K[Se].column] = Ce, me != null && me.value && ((Ie = me == null ? void 0 : me.value) == null ? void 0 : Ie.length) > 0 && (($e = me == null ? void 0 : me.value) != null && $e.find((Ge) => JSON.stringify(Ge == null ? void 0 : Ge[0]) === JSON.stringify(El))) && (he = (Be = me == null ? void 0 : me.value) == null ? void 0 : Be.find((Ge) => JSON.stringify(Ge == null ? void 0 : Ge[0]) === JSON.stringify(El))), he && he.length > 0 ? Ae[K[Se].prop] = he != null && he.find((Ge) => {
2313
+ var Rl;
2314
+ return ((Rl = Object.keys(Ge)) == null ? void 0 : Rl[0]) === K[Se].column;
2315
+ }) ? (Jl = he == null ? void 0 : he.find((Ge) => {
2316
+ var Rl;
2317
+ return ((Rl = Object.keys(Ge)) == null ? void 0 : Rl[0]) === K[Se].column;
2318
+ })) == null ? void 0 : Jl[K[Se].column] : Ce : Ae[K[Se].prop] = Ce;
2319
+ } else Array.isArray(Ce) && ((Wl = K[Se]) != null && Wl.prop ? Ae[K[Se].prop] = Ce : Ae.children = ba(Ce, K));
2320
+ });
2321
+ } else
2322
+ Ae = A;
2323
+ Array.isArray(A) && A.some((he) => he == null ? void 0 : he.id) ? pe.push(Object.assign(Ae, { id: (be = A == null ? void 0 : A.find((he) => he.id)) == null ? void 0 : be.id })) : Ae.id ? pe.push(Ae) : pe.push(Object.assign(Ae, { id: f.toString() }));
2324
+ }), I.value = Na(pe, a, W.value), Yl.value = pe, (_ = Yl.value) == null || _.forEach((A) => {
2325
+ var f;
2326
+ (f = Zl.value) == null || f.set(A.id, A);
2327
+ });
2328
+ } else
2329
+ W.value = [], Xe.value = [], I.value = [], Yl.value = [], Zl.value = /* @__PURE__ */ new Map();
2330
+ ((j = o == null ? void 0 : o.contents) == null ? void 0 : j.length) > 0 ? yl.value = o == null ? void 0 : o.contents : yl.value = [], ((Q = t == null ? void 0 : t.contents) == null ? void 0 : Q.length) > 0 ? (Ol.value = t == null ? void 0 : t.contents, vl.value = t == null ? void 0 : t.contents) : (Ol.value = [], vl.value = []), _l.value = ((ee = I == null ? void 0 : I.value) == null ? void 0 : ee.length) ?? 0, $a(I.value), la.value = I.value, nl.value && (W.value = (M = (ie = Xe.value) == null ? void 0 : ie.filter((y) => (y == null ? void 0 : y.label) !== "操作")) == null ? void 0 : M.map((y) => {
2331
+ var K;
2332
+ return {
2333
+ ...y,
2334
+ type: "edit",
2335
+ optionUrl: y != null && y.formMenuSelect && ((K = y == null ? void 0 : y.formMenuSelect) == null ? void 0 : K.length) > 0 ? {
2336
+ groupSelect: y == null ? void 0 : y.groupSelect,
2337
+ menuSelect: y == null ? void 0 : y.formMenuSelect,
2338
+ selectRelateType: "",
2339
+ type: y == null ? void 0 : y.formType
2340
+ } : null
2341
+ };
2342
+ }), ya());
2343
+ };
2344
+ He(
2345
+ () => [s.itemData, bl.value, hn.value, cl.value, me == null ? void 0 : me.value],
2346
+ async () => {
2347
+ var e, l, r, a, u, i;
2348
+ if ((e = s == null ? void 0 : s.itemData) != null && e.find((o) => (o == null ? void 0 : o.key) === "columnPath") && !((l = Bl.value) != null && l.find((o) => {
2349
+ var t, d;
2350
+ return (o == null ? void 0 : o.key) === ((d = (t = s == null ? void 0 : s.itemData) == null ? void 0 : t.find((g) => (g == null ? void 0 : g.key) === "columnPath")) == null ? void 0 : d.contents);
2351
+ }))) {
2352
+ let o = Bl.value, t = {
2353
+ key: (a = (r = s == null ? void 0 : s.itemData) == null ? void 0 : r.find((d) => (d == null ? void 0 : d.key) === "columnPath")) == null ? void 0 : a.contents,
2354
+ value: (i = (u = s == null ? void 0 : s.itemData) == null ? void 0 : u.find((d) => (d == null ? void 0 : d.key) === "columnUsingPath")) == null ? void 0 : i.contents
2355
+ };
2356
+ o != null && o.find((d) => (d == null ? void 0 : d.key) === (t == null ? void 0 : t.key)) ? o = o == null ? void 0 : o.map((d) => ((d == null ? void 0 : d.key) === (t == null ? void 0 : t.key) && (d.value = t.value), d)) : o.push(t), De.setTableViewContents(o);
2357
+ }
2358
+ Ma(s.itemData, s.allMapContents);
2359
+ },
2360
+ { deep: !0, immediate: !0 }
2361
+ ), He(() => s == null ? void 0 : s.operatingForm, (e) => {
2362
+ e != null && e.form && (Kl(e == null ? void 0 : e.form), ll.value = e == null ? void 0 : e.dialogTitle, ea.value = !0, ol.value = !0);
2363
+ }, { immediate: !0, deep: !0 });
2364
+ const Fa = () => {
2365
+ var e;
2366
+ (e = Ue.value) != null && e.includes("read") && (nl.value = !nl.value);
2367
+ }, sr = () => {
2368
+ na.value = !na.value;
2369
+ };
2370
+ He(() => {
2371
+ var e;
2372
+ return (e = s == null ? void 0 : s.config) == null ? void 0 : e.viewport;
2373
+ }, (e) => {
2374
+ var l;
2375
+ Ue.value = e, (e == null ? void 0 : e.length) === 0 ? nl.value = !1 : (e != null && e.includes("read") || (nl.value = !0), e != null && e.includes("edit") || (nl.value = !1)), fe.value = ((l = s == null ? void 0 : s.config) == null ? void 0 : l.showIndex) || nl.value;
2376
+ }, { immediate: !0 }), He(() => nl.value, (e) => {
2377
+ var l;
2378
+ e ? (ya("viewChange"), De.setCacheUpdatingData(null)) : (Ol.value = vl.value, W.value = Pe.value, $l.value && (De.setTableLoading(s == null ? void 0 : s.index), H("change", $l.value))), ne.value = e, fe.value = e || ((l = s == null ? void 0 : s.config) == null ? void 0 : l.showIndex);
2379
+ }, { immediate: !0 }), He(() => {
2380
+ var e;
2381
+ return (e = Aa.value) == null ? void 0 : e.length;
2382
+ }, (e) => {
2383
+ e === 0 && (se.currentPage = 1);
2384
+ }), He(() => s == null ? void 0 : s.compNames, (e) => {
2385
+ Ee.contents = [
2386
+ {
2387
+ label: "列表名",
2388
+ prop: "groupName",
2389
+ name: "列表名",
2390
+ type: "select",
2391
+ value: "",
2392
+ id: 0,
2393
+ contents: e || [],
2394
+ width: 1
2395
+ }
2396
+ ];
2397
+ }, { immediate: !0 }), J(!1);
2398
+ const ir = (e, l) => {
2399
+ var r;
2400
+ ya("createClick"), l === se.pageSize && (se.currentPage = Math.ceil(((r = I.value) == null ? void 0 : r.length) / se.pageSize));
2401
+ }, or = (e, l, r) => {
2402
+ var a;
2403
+ La(r, e, l), Je.value = G(e), il.value = e == null ? void 0 : e.id, _l.value = (a = I.value) == null ? void 0 : a.length, ll.value = typeof (e == null ? void 0 : e.id) == "string" ? "新增" : "编辑", zl(!1);
2404
+ }, We = (e) => {
2405
+ var d, g, T, O, N, h, C, D, x, F;
2406
+ const { row: l, column: r, item: a, slotData: u } = e;
2407
+ let i = l != null && l[r == null ? void 0 : r.prop] || (l == null ? void 0 : l[r == null ? void 0 : r.prop]) === 0 ? ((g = (d = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : d[0]) == null ? void 0 : g.contents) ?? ((l == null ? void 0 : l[r == null ? void 0 : r.prop]) === 0 ? "0" : l == null ? void 0 : l[r == null ? void 0 : r.prop]) : ((O = (T = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : T[0]) == null ? void 0 : O.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((h = (N = u == null ? void 0 : u[a == null ? void 0 : a.prop]) == null ? void 0 : N[0]) == null ? void 0 : h.contents) ?? (u == null ? void 0 : u[a == null ? void 0 : a.prop]) ?? ((x = (D = l == null ? void 0 : l[(C = a == null ? void 0 : a.child) == null ? void 0 : C.prop]) == null ? void 0 : D[0]) == null ? void 0 : x.contents) ?? (l == null ? void 0 : l[(F = a == null ? void 0 : a.child) == null ? void 0 : F.prop]), t = Array.isArray(i) && !(i != null && i.every((B) => typeof B == "string" || typeof B == "number")) ? "查看" : i;
2408
+ return t = Array.isArray(t) ? t.join(",") : t, t;
2409
+ }, tr = (e) => {
2410
+ var g, T, O, N, h, C, D, x, F, B;
2411
+ const { row: l, column: r, item: a, slotData: u } = e;
2412
+ let i = l != null && l[r == null ? void 0 : r.prop] ? ((T = (g = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : g[0]) == null ? void 0 : T.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) : ((N = (O = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : O[0]) == null ? void 0 : N.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((C = (h = u == null ? void 0 : u[a == null ? void 0 : a.prop]) == null ? void 0 : h[0]) == null ? void 0 : C.contents) ?? (u == null ? void 0 : u[a == null ? void 0 : a.prop]) ?? ((F = (x = l == null ? void 0 : l[(D = a == null ? void 0 : a.child) == null ? void 0 : D.prop]) == null ? void 0 : x[0]) == null ? void 0 : F.contents) ?? (l == null ? void 0 : l[(B = a == null ? void 0 : a.child) == null ? void 0 : B.prop]);
2413
+ const t = Array.isArray(i) && !(i != null && i.every(($) => typeof $ == "string" || typeof $ == "number")), d = Array.isArray(i) && (i == null ? void 0 : i.find(($) => $ == null ? void 0 : $.url));
2414
+ return t && d;
2415
+ }, cr = (e, l) => e.find((r) => Object.values(r).some((a) => a === l));
2416
+ return He(() => dn.value, async (e) => {
2417
+ if (e) {
2418
+ Fe.setContentLoading(!0), await ia();
2419
+ const l = cr(I.value, e == null ? void 0 : e.data);
2420
+ if (!l) return Fe.setContentLoading(!1);
2421
+ await Ca(e == null ? void 0 : e.data, null, l, { data: e == null ? void 0 : e.data, isMainKey: !0 }), Fe.setContentLoading(!1);
2422
+ }
2423
+ }, { deep: !0, immediate: !0 }), He(() => s == null ? void 0 : s.cacheNewData, (e) => {
2424
+ var l;
2425
+ e && (Array.isArray(e) || (e == null ? void 0 : e.compId) === (s == null ? void 0 : s.index) && (I.value = (l = I.value) == null ? void 0 : l.map((r) => {
2426
+ var a;
2427
+ return (r == null ? void 0 : r.id) === ((a = e == null ? void 0 : e.data) == null ? void 0 : a.id) ? {
2428
+ ...r,
2429
+ id: e == null ? void 0 : e.resId
2430
+ } : r;
2431
+ })));
2432
+ }, { immediate: !0, deep: !0 }), (e, l) => {
2433
+ var g, T, O, N;
2434
+ const r = Qe("svg-icon"), a = Qe("el-popover"), u = Qe("el-switch"), i = Qe("el-checkbox"), o = Qe("el-checkbox-group"), t = Qe("el-button"), d = Qe("LookComponent");
2435
+ return V(), ye("div", bu, [
2436
+ ma.value ? (V(), je(Pr, {
2437
+ id: "excel-table",
2438
+ pageObj: se,
2439
+ showIndex: fe.value,
2440
+ isTree: (g = E.compItem) == null ? void 0 : g.isTree,
2441
+ summaryInfo: ke,
2442
+ columns: W.value,
2443
+ defaultSort: Le,
2444
+ isCardViewport: na.value,
2445
+ checkedColumns: Z.value,
2446
+ key: ca.value + JSON.stringify(W.value),
2447
+ tableData: Aa.value,
2448
+ isEditViewport: nl.value,
2449
+ isShowPagination: Ta.value,
2450
+ isShowEdit: !1,
2451
+ isShowDelete: !1,
2452
+ allowSelect: ne.value,
2453
+ onDbClickRow: wn,
2454
+ extraButton: Ol.value,
2455
+ rowButton: yl.value,
2456
+ cacheExtraButtons: vl.value,
2457
+ isClearSelection: ((T = rl.value) == null ? void 0 : T.length) === 0,
2458
+ onDoCurrentChange: Tn,
2459
+ onDoSizeChange: mn,
2460
+ onContentClick: Ca,
2461
+ onRowClick: zn,
2462
+ onSelectChange: Dn,
2463
+ onCellChange: or,
2464
+ onChange: La,
2465
+ onPreview: xa,
2466
+ onSubmitEditingTable: On,
2467
+ onHandleColEditChange: Cn,
2468
+ onHandleColTypeChange: _n,
2469
+ onClickButton: sa
2470
+ }, hr({
2471
+ headerButton: X((h) => {
2472
+ var C, D;
2473
+ return [
2474
+ E.showHeader ? (V(), je(nu, {
2475
+ key: 0,
2476
+ pageLayout: E.pageLayout,
2477
+ lockingPage: Ve(Xl) === Ve(Te),
2478
+ filterValues: Ua.value,
2479
+ selectNums: (C = rl.value) == null ? void 0 : C.length,
2480
+ dataNums: (D = I.value) == null ? void 0 : D.length,
2481
+ compName: E.compName,
2482
+ isDevMode: E.isDevMode,
2483
+ buttons: h.buttons,
2484
+ onButtonClick: l[0] || (l[0] = (x) => sa(x, "", {})),
2485
+ columns: W.value,
2486
+ onFilter: Fn,
2487
+ onGetImportData: xn,
2488
+ level: E.level
2489
+ }, null, 8, ["pageLayout", "lockingPage", "filterValues", "selectNums", "dataNums", "compName", "isDevMode", "buttons", "columns", "level"])) : _e("", !0)
2490
+ ];
2491
+ }),
2492
+ viewport: X(() => {
2493
+ var h, C, D, x;
2494
+ return [
2495
+ ((h = I.value) == null ? void 0 : h.length) > 0 && E.allowOperate ? (V(), ye("div", Tu, [
2496
+ (C = Ue.value) != null && C.includes("read") && ((D = Ue.value) != null && D.includes("edit")) && ((x = yl.value) != null && x.some((F) => (F == null ? void 0 : F.label) === "编辑")) && !na.value && Ve(Xl) !== Ve(Te) ? (V(), ye("span", {
2497
+ key: 0,
2498
+ title: "编辑表格",
2499
+ onClick: Fa
2500
+ }, [
2501
+ re(r, {
2502
+ name: "editTable",
2503
+ class: "view-icon"
2504
+ })
2505
+ ])) : _e("", !0),
2506
+ ce("span", {
2507
+ title: "卡片视图",
2508
+ onClick: sr
2509
+ }, [
2510
+ re(r, {
2511
+ name: "cardViewport",
2512
+ class: "view-icon"
2513
+ })
2514
+ ])
2515
+ ])) : _e("", !0)
2516
+ ];
2517
+ }),
2518
+ rowCreate: X(({ row: h, index: C }) => [
2519
+ ce("span", {
2520
+ title: "新增",
2521
+ class: "row-create-wrap",
2522
+ onClick: (D) => ir(h, C)
2523
+ }, [
2524
+ re(r, {
2525
+ name: "rowCreate",
2526
+ style: { width: "10px", height: "10px" }
2527
+ })
2528
+ ], 8, mu)
2529
+ ]),
2530
+ operateCol: X(() => [
2531
+ re(a, {
2532
+ title: "选择显示列信息",
2533
+ placement: "left-start",
2534
+ "popper-class": "menu-operate-popover",
2535
+ trigger: "hover",
2536
+ onShow: lr
2537
+ }, {
2538
+ reference: X(() => [
2539
+ ce("span", Au, [
2540
+ re(r, {
2541
+ name: "operate",
2542
+ style: { width: "15px", height: "15px", cursor: "pointer" }
2543
+ })
2544
+ ])
2545
+ ]),
2546
+ default: X(() => [
2547
+ ce("div", xu, [
2548
+ l[11] || (l[11] = ce("div", { class: "group-title" }, "表格操作", -1)),
2549
+ re(u, {
2550
+ "model-value": fl.value,
2551
+ "active-text": "排序",
2552
+ "inactive-text": "",
2553
+ style: { "margin-right": "8px" },
2554
+ onChange: l[2] || (l[2] = (h) => pa(h, "sortable"))
2555
+ }, null, 8, ["model-value"]),
2556
+ re(u, {
2557
+ "model-value": gl.value,
2558
+ "active-text": "筛选",
2559
+ "inactive-text": "",
2560
+ style: { "margin-right": "8px" },
2561
+ onChange: l[3] || (l[3] = (h) => pa(h, "filterable"))
2562
+ }, null, 8, ["model-value"]),
2563
+ re(u, {
2564
+ "model-value": te.value,
2565
+ "active-text": "编辑所有表头",
2566
+ "inactive-text": "",
2567
+ onChange: l[4] || (l[4] = (h) => pa(h, "operable"))
2568
+ }, null, 8, ["model-value"]),
2569
+ l[12] || (l[12] = ce("div", { class: "group-title" }, "表格列操作", -1)),
2570
+ re(o, {
2571
+ modelValue: Z.value,
2572
+ "onUpdate:modelValue": l[5] || (l[5] = (h) => Z.value = h),
2573
+ style: { height: "100%" },
2574
+ min: 2,
2575
+ ref_key: "checkboxGroupRef",
2576
+ ref: L
2577
+ }, {
2578
+ default: X(() => [
2579
+ (V(!0), ye(dl, null, pl(Fl.value, (h) => (V(), ye("div", {
2580
+ style: { display: "flex", "align-items": "center" },
2581
+ key: h.label
2582
+ }, [
2583
+ re(i, {
2584
+ value: h.label,
2585
+ style: { width: "100%", marginRight: 0 }
2586
+ }, {
2587
+ default: X(() => [
2588
+ ce("span", {
2589
+ title: h.label,
2590
+ style: { display: "inline-block", width: "250px", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }
2591
+ }, Oe(h.label), 9, Uu)
2592
+ ]),
2593
+ _: 2
2594
+ }, 1032, ["value"]),
2595
+ re(a, {
2596
+ title: "列操作",
2597
+ placement: "left",
2598
+ teleported: !1,
2599
+ trigger: "hover"
2600
+ }, {
2601
+ reference: X(() => [
2602
+ re(r, {
2603
+ name: "colOperate",
2604
+ style: { width: "15px", height: "15px", cursor: "pointer", color: "grey", position: "absolute", right: "40px" }
2605
+ })
2606
+ ]),
2607
+ default: X(() => {
2608
+ var C;
2609
+ return [
2610
+ ce("div", Cu, [
2611
+ (V(!0), ye(dl, null, pl((C = Object.keys(h)) == null ? void 0 : C.filter((D) => {
2612
+ var x;
2613
+ return (x = ge.value) == null ? void 0 : x.find((F) => (F == null ? void 0 : F.value) === D);
2614
+ }), (D) => {
2615
+ var x, F;
2616
+ return V(), ye("div", { key: D }, [
2617
+ re(u, {
2618
+ "model-value": h == null ? void 0 : h[D],
2619
+ "active-text": (F = (x = ge.value) == null ? void 0 : x.find((B) => (B == null ? void 0 : B.value) === D)) == null ? void 0 : F.label,
2620
+ onChange: (B) => jn(B, D, h)
2621
+ }, null, 8, ["model-value", "active-text", "onChange"])
2622
+ ]);
2623
+ }), 128))
2624
+ ])
2625
+ ];
2626
+ }),
2627
+ _: 2
2628
+ }, 1024),
2629
+ ce("span", _u, [
2630
+ re(r, {
2631
+ name: "drag",
2632
+ class: "col-drag-icon",
2633
+ style: { width: "15px", height: "15px" }
2634
+ })
2635
+ ])
2636
+ ]))), 128))
2637
+ ]),
2638
+ _: 1
2639
+ }, 8, ["modelValue"])
2640
+ ])
2641
+ ]),
2642
+ _: 1
2643
+ })
2644
+ ]),
2645
+ content: X((h) => {
2646
+ var C, D, x, F, B, $, n, v, c, k, m, w, p, U, b, R, q, _;
2647
+ return [
2648
+ tr(h) ? (V(), je(a, {
2649
+ key: 0,
2650
+ "popper-class": "file-popover",
2651
+ placement: "right",
2652
+ trigger: "hover",
2653
+ effect: "light",
2654
+ width: "auto"
2655
+ }, {
2656
+ reference: X(() => [
2657
+ ce("span", Ou, Oe(We(h)), 1)
2658
+ ]),
2659
+ default: X(() => {
2660
+ var j, Q;
2661
+ return [
2662
+ ce("div", Du, [
2663
+ (V(!0), ye(dl, null, pl((Q = h == null ? void 0 : h.row) == null ? void 0 : Q[(j = h == null ? void 0 : h.column) == null ? void 0 : j.prop], (ee) => (V(), ye("div", Eu, [
2664
+ ce("div", {
2665
+ class: "prop-url",
2666
+ title: ua(ee),
2667
+ onClick: (ie) => $n(ee)
2668
+ }, Oe(ua(ee)), 9, ju),
2669
+ ce("div", {
2670
+ class: "prop-download",
2671
+ onClick: (ie) => Bn(ee)
2672
+ }, " 下载 ", 8, Lu)
2673
+ ]))), 256))
2674
+ ])
2675
+ ];
2676
+ }),
2677
+ _: 2
2678
+ }, 1024)) : (V(), ye("div", {
2679
+ key: 1,
2680
+ style: xl({
2681
+ color: !Array.isArray(We(h)) && ((D = (C = We(h)) == null ? void 0 : C.toString()) != null && D.includes(".txt") || (F = (x = We(h)) == null ? void 0 : x.toString()) != null && F.includes(".cpt") || ($ = (B = We(h)) == null ? void 0 : B.toString()) != null && $.includes(".cyd")) ? "var(--vertical-menuitem-active-bg)" : "",
2682
+ textDecoration: !Array.isArray(We(h)) && ((v = (n = We(h)) == null ? void 0 : n.toString()) != null && v.includes(".txt") || (k = (c = We(h)) == null ? void 0 : c.toString()) != null && k.includes(".cpt") || (w = (m = We(h)) == null ? void 0 : m.toString()) != null && w.includes(".cyd")) ? "underline" : "",
2683
+ cursor: !Array.isArray(We(h)) && ((U = (p = We(h)) == null ? void 0 : p.toString()) != null && U.includes(".txt") || (R = (b = We(h)) == null ? void 0 : b.toString()) != null && R.includes(".cpt") || (_ = (q = We(h)) == null ? void 0 : q.toString()) != null && _.includes(".cyd")) ? "pointer" : "",
2684
+ marginLeft: (h == null ? void 0 : h.colIndex) === 0 ? `${((h == null ? void 0 : h.level) ?? 0) * 20}px` : 0
2685
+ }),
2686
+ onClick: (j) => kn(We(h))
2687
+ }, Oe(We(h) === 0 ? "0" : We(h)), 13, Pu))
2688
+ ];
2689
+ }),
2690
+ _: 2
2691
+ }, [
2692
+ ((O = yl.value) == null ? void 0 : O.length) > 0 && Ve(Xl) !== Ve(Te) ? {
2693
+ name: "actions",
2694
+ fn: X(({ item: h }) => [
2695
+ re(a, {
2696
+ title: "",
2697
+ placement: "left-start",
2698
+ "popper-class": "menu-operate-popover"
2699
+ }, {
2700
+ reference: X(() => [
2701
+ re(r, {
2702
+ name: "more",
2703
+ style: { cursor: "pointer", width: "15px", height: "15px" }
2704
+ })
2705
+ ]),
2706
+ default: X(() => [
2707
+ ce("div", Su, [
2708
+ (V(!0), ye(dl, null, pl(Nn(yl.value, h), (C, D) => (V(), ye("div", {
2709
+ class: "menu-config-item",
2710
+ key: D,
2711
+ onClick: (x) => sa(C == null ? void 0 : C.label, h, { extra: C })
2712
+ }, [
2713
+ ce("div", {
2714
+ style: xl({ color: C == null ? void 0 : C.textColor }),
2715
+ class: "extra-button-label"
2716
+ }, Oe(C == null ? void 0 : C.label), 5)
2717
+ ], 8, ku))), 128))
2718
+ ])
2719
+ ]),
2720
+ _: 2
2721
+ }, 1024)
2722
+ ]),
2723
+ key: "0"
2724
+ } : void 0,
2725
+ ((N = I.value) == null ? void 0 : N.length) > 0 ? {
2726
+ name: "batchButton",
2727
+ fn: X((h) => [
2728
+ Ja(re(uu, {
2729
+ lockingPage: Ve(Xl) === Ve(Te),
2730
+ buttons: h.buttons,
2731
+ selectTableItems: rl.value,
2732
+ onButtonClick: l[1] || (l[1] = (C) => sa(C, "", {}))
2733
+ }, null, 8, ["lockingPage", "buttons", "selectTableItems"]), [
2734
+ [Wa, ne.value]
2735
+ ]),
2736
+ Ja(ce("div", null, null, 512), [
2737
+ [Wa, !ne.value]
2738
+ ])
2739
+ ]),
2740
+ key: "1"
2741
+ } : void 0
2742
+ ]), 1032, ["pageObj", "showIndex", "isTree", "summaryInfo", "columns", "defaultSort", "isCardViewport", "checkedColumns", "tableData", "isEditViewport", "isShowPagination", "allowSelect", "extraButton", "rowButton", "cacheExtraButtons", "isClearSelection"])) : _e("", !0),
2743
+ re(Gl, {
2744
+ title: ll.value,
2745
+ visible: ol.value,
2746
+ width: vn.value,
2747
+ onBeforeDestroy: Ln,
2748
+ style: { height: "74%" }
2749
+ }, {
2750
+ default: X(() => [
2751
+ ce("div", $u, [
2752
+ re(Pl, {
2753
+ rowContents: we.value,
2754
+ isEnableWrap: !1,
2755
+ showOperator: !1,
2756
+ onChange: ar,
2757
+ onClickTrigger: Pn,
2758
+ isEdit: Il.value,
2759
+ onBlurChange: En
2760
+ }, null, 8, ["rowContents", "isEdit"])
2761
+ ])
2762
+ ]),
2763
+ footer: X(() => [
2764
+ ea.value ? (V(), ye("div", Bu, [
2765
+ re(t, {
2766
+ onClick: l[6] || (l[6] = (h) => ol.value = !1),
2767
+ id: "themeBorderButton"
2768
+ }, {
2769
+ default: X(() => l[13] || (l[13] = [
2770
+ Ye(Oe("取消"))
2771
+ ])),
2772
+ _: 1,
2773
+ __: [13]
2774
+ }),
2775
+ re(t, {
2776
+ class: "ok-button",
2777
+ onClick: l[7] || (l[7] = (h) => zl(!0)),
2778
+ id: "themeButton"
2779
+ }, {
2780
+ default: X(() => l[14] || (l[14] = [
2781
+ Ye(Oe("确认"))
2782
+ ])),
2783
+ _: 1,
2784
+ __: [14]
2785
+ })
2786
+ ])) : _e("", !0)
2787
+ ]),
2788
+ _: 1
2789
+ }, 8, ["title", "visible", "width"]),
2790
+ re(Gl, {
2791
+ title: ll.value,
2792
+ visible: Vl.value,
2793
+ width: ta.value,
2794
+ onBeforeDestroy: l[9] || (l[9] = (h) => Vl.value = !1)
2795
+ }, {
2796
+ default: X(() => [
2797
+ re(du)
2798
+ ]),
2799
+ footer: X(() => [
2800
+ ce("div", Nu, [
2801
+ re(t, {
2802
+ onClick: l[8] || (l[8] = (h) => Vl.value = !1),
2803
+ class: "cancel-button",
2804
+ id: "themeBorderButton"
2805
+ }, {
2806
+ default: X(() => l[15] || (l[15] = [
2807
+ Ye(Oe("取消"))
2808
+ ])),
2809
+ _: 1,
2810
+ __: [15]
2811
+ }),
2812
+ re(t, {
2813
+ class: "ok-button",
2814
+ onClick: Jn,
2815
+ id: "themeButton"
2816
+ }, {
2817
+ default: X(() => l[16] || (l[16] = [
2818
+ Ye(Oe("确认"))
2819
+ ])),
2820
+ _: 1,
2821
+ __: [16]
2822
+ })
2823
+ ])
2824
+ ]),
2825
+ _: 1
2826
+ }, 8, ["title", "visible", "width"]),
2827
+ ze.value ? (V(), je($r, {
2828
+ key: 1,
2829
+ fileDataList: Ul.value,
2830
+ onDestroy: Kn
2831
+ }, null, 8, ["fileDataList"])) : _e("", !0),
2832
+ ue.value ? (V(), je(Gl, {
2833
+ key: 2,
2834
+ visible: ue.value,
2835
+ onBeforeDestroy: Vn,
2836
+ style: { height: "80vh", width: "80vw" },
2837
+ "body-class": "three-dialog-body",
2838
+ "footer-class": "three-dialog-footer"
2839
+ }, {
2840
+ default: X(() => [
2841
+ re(Mr, {
2842
+ files: Nl.value,
2843
+ threeData: Ke.value
2844
+ }, null, 8, ["files", "threeData"])
2845
+ ]),
2846
+ _: 1
2847
+ }, 8, ["visible"])) : _e("", !0),
2848
+ re(Gl, {
2849
+ visible: e.componentVisible,
2850
+ onBeforeDestroy: l[10] || (l[10] = (h) => e.componentVisible = !1),
2851
+ width: ta.value,
2852
+ style: { height: "70vh" }
2853
+ }, {
2854
+ default: X(() => [
2855
+ re(d, { dialogItem: kl.value }, null, 8, ["dialogItem"])
2856
+ ]),
2857
+ _: 1
2858
+ }, 8, ["visible", "width"]),
2859
+ re(Gl, {
2860
+ title: Ee.title,
2861
+ visible: Ee.show,
2862
+ width: Ee.width,
2863
+ onBeforeDestroy: Hn
2864
+ }, {
2865
+ default: X(() => [
2866
+ ce("div", Mu, [
2867
+ re(Pl, {
2868
+ rowContents: Ee == null ? void 0 : Ee.contents,
2869
+ formRules: Ee == null ? void 0 : Ee.formRules,
2870
+ showOperator: !1,
2871
+ buttonValue: Ee.buttonValue,
2872
+ isEdit: Il.value,
2873
+ isStartJustify: !1,
2874
+ isEnableWrap: !1,
2875
+ onOnButtonClick: Qn
2876
+ }, null, 8, ["rowContents", "formRules", "buttonValue", "isEdit"])
2877
+ ])
2878
+ ]),
2879
+ _: 1
2880
+ }, 8, ["title", "visible", "width"])
2881
+ ]);
2882
+ };
2883
+ }
2884
+ }, Vu = /* @__PURE__ */ oa(Fu, [["__scopeId", "data-v-6b19745c"]]);
2885
+ export {
2886
+ vu as a,
2887
+ su as b,
2888
+ an as f,
2889
+ rn as g,
2890
+ Vu as s,
2891
+ pu as u
2892
+ };