ss-component-new 1.2.186 → 1.2.188

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