ss-component-new 1.2.78 → 1.2.79

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