ss-component-new 1.2.85 → 1.2.87

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