ss-component-new 1.2.177 → 1.2.179

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