ss-component-new 1.2.53 → 1.2.55

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