ss-component-new 1.2.57 → 1.2.59

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