ss-component-new 1.2.186 → 1.2.188

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