ss-component-new 1.2.196 → 1.2.198

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