ss-component-new 1.2.78 → 1.2.79

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