ss-component-new 1.2.30 → 1.2.31

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