ss-component-new 1.2.28 → 1.2.30

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 (140) hide show
  1. package/dist/{MTLLoader-Cqv49Ps8.cjs → MTLLoader-CGJ_BoN_.cjs} +1 -1
  2. package/dist/{MTLLoader-BreJsr54.js → MTLLoader-DKu2hJu8.js} +1 -1
  3. package/dist/{OrbitControls-BCu-cP7k.js → OrbitControls-BqqUzhiB.js} +1 -1
  4. package/dist/{OrbitControls-C956u7BP.cjs → OrbitControls-CcSIJs8U.cjs} +1 -1
  5. package/dist/{animationData-CMjNjOqc.js → animationData-C9-csPUd.js} +4 -4
  6. package/dist/{animationData-C3-BiUgV.cjs → animationData-CqnPk9Xj.cjs} +1 -1
  7. package/dist/array-CNff52dF.cjs +11 -0
  8. package/dist/array-GAxUIYkk.js +626 -0
  9. package/dist/config.js +1 -0
  10. package/dist/{dataUtil-BFjWNDM1.cjs → dataUtil-B8GQMfU9.cjs} +1 -1
  11. package/dist/{dataUtil-D9l7-XhR.js → dataUtil-CUqnwA-C.js} +2 -2
  12. package/dist/{fileUtil-D7XVXEhb.js → fileUtil-2jbB0UOW.js} +1 -1
  13. package/dist/{fileUtil-BFtJHTM0.cjs → fileUtil-DmlOwzdA.cjs} +1 -1
  14. package/dist/{iconfont-BDfcbq2v.cjs → iconfont-BRjtaT1w.cjs} +1 -1
  15. package/dist/{iconfont-B9Cj3DQM.js → iconfont-Clbumxhq.js} +2 -2
  16. package/dist/icons/svg/LowCodeEvent.svg +1 -1
  17. package/dist/icons/svg/LowCodeExtend.svg +1 -1
  18. package/dist/icons/svg/LowCodeSetting.svg +1 -1
  19. package/dist/icons/svg/LowCodeStyle.svg +1 -1
  20. package/dist/{index-DE-uHAMH.cjs → index-4vFpZiro.cjs} +1 -1
  21. package/dist/{index-DR7aNxVH.js → index-B1K65cVA.js} +4 -4
  22. package/dist/{index-C5UpEVah.js → index-B1TG4KX4.js} +2 -2
  23. package/dist/{index-C_cWjavY.cjs → index-B4kwMjRZ.cjs} +1 -1
  24. package/dist/{index-BaE0DPgC.js → index-B524ZAt_.js} +52 -52
  25. package/dist/{index-CMIGSPjz.cjs → index-B5KCSN4c.cjs} +1 -1
  26. package/dist/index-B6nEh_Jv.js +2865 -0
  27. package/dist/{index-zLkhy4JK.cjs → index-BDHmuN0R.cjs} +1 -1
  28. package/dist/{index-Rr9ZBYig.js → index-BH-dztWs.js} +2 -2
  29. package/dist/{index-DMyPjpxO.cjs → index-BKH5yrms.cjs} +1 -1
  30. package/dist/index-BQ4Ui0xZ.cjs +1 -0
  31. package/dist/{index-DqR3IwgZ.js → index-BR2gy9VY.js} +12 -12
  32. package/dist/{index-CC9RkSBT.cjs → index-BUqXSmZN.cjs} +1 -1
  33. package/dist/index-BVaHwt5f.cjs +1 -0
  34. package/dist/{index-gXbhagnF.js → index-BVx8ubcY.js} +3 -3
  35. package/dist/{index-Dx2X9pR1.js → index-Bf_EwhXB.js} +40 -40
  36. package/dist/{index-DVqfroe6.cjs → index-Bg67M1I0.cjs} +1 -1
  37. package/dist/index-Bnlo1Vn9.cjs +1 -0
  38. package/dist/{index-gPnrvvE9.js → index-BuPMGirQ.js} +3123 -3043
  39. package/dist/{index-Cwh5m4lg.cjs → index-C4sVFEb2.cjs} +1 -1
  40. package/dist/{index-CP7b7BrB.cjs → index-C5bKf4Rc.cjs} +1 -1
  41. package/dist/{index-DY5-ctYG.cjs → index-C8YYklCT.cjs} +1 -1
  42. package/dist/index-CBzeyNqc.cjs +1 -0
  43. package/dist/{index-Boazv8yC.js → index-CF3_9CuM.js} +2 -2
  44. package/dist/index-CGrK7vLD.cjs +15 -0
  45. package/dist/index-CJz9KUlK.js +2761 -0
  46. package/dist/index-CLYAJN6W.js +12157 -0
  47. package/dist/index-CPUuPtdW.cjs +1 -0
  48. package/dist/index-CQGU-KUl.cjs +1 -0
  49. package/dist/{index-BZwQB2HO.js → index-CSkbFCKk.js} +8 -8
  50. package/dist/{index-DiTYB-a4.js → index-CVduLh5F.js} +4 -4
  51. package/dist/{index-Cd9j5j41.cjs → index-CVfE7lev.cjs} +1 -1
  52. package/dist/{index-C5fTUrKx.js → index-CWvU6SMj.js} +80 -80
  53. package/dist/{index-CZu3TggJ.js → index-CkTqgfCV.js} +1 -1
  54. package/dist/{index-CBFF2bsB.cjs → index-Ct1BlKod.cjs} +1 -1
  55. package/dist/{index-BqRVuEsE.js → index-Cx-hhVVM.js} +6 -6
  56. package/dist/{index-LcnC2GQ4.cjs → index-D-vSuC_W.cjs} +1 -1
  57. package/dist/{index-HduGypr9.js → index-DBDeHECn.js} +7888 -8186
  58. package/dist/{index-CK5VdzmO.cjs → index-DC41esc7.cjs} +1 -1
  59. package/dist/index-DEBf-IBT.cjs +21 -0
  60. package/dist/{index-BwLaQntz.js → index-DKQfWQa7.js} +1 -1
  61. package/dist/index-DLNYVMBT.js +718 -0
  62. package/dist/{index-CKY0sj_X.js → index-DNmodmj5.js} +3 -3
  63. package/dist/{index-D5Dtcn-_.js → index-DOqV1gv2.js} +10 -10
  64. package/dist/{index-BWxbWhC9.cjs → index-DPJaR6_y.cjs} +1 -1
  65. package/dist/{index-B8bpiPXB.js → index-DQEoNTv9.js} +1 -1
  66. package/dist/{index-3QB55tXZ.js → index-D_vF-xur.js} +8 -8
  67. package/dist/{index-C9_Cxm8G.cjs → index-Dc_H7_4Q.cjs} +1 -1
  68. package/dist/{index-DsCD1neC.js → index-DnxJ5v5h.js} +2 -2
  69. package/dist/{index-DHOcRi3S.js → index-DpHuDey-.js} +6 -6
  70. package/dist/{index-mpoVA-DC.cjs → index-Dyk6Ept4.cjs} +1 -1
  71. package/dist/{index-zZ9bfGNx.js → index-LjM9Nk8B.js} +17 -17
  72. package/dist/{index-B33wtiif.cjs → index-M0XPuhvZ.cjs} +1 -1
  73. package/dist/index-NsYVgt6J.cjs +1 -0
  74. package/dist/{index-GGokR_Lx.cjs → index-T8lPGzLV.cjs} +1 -1
  75. package/dist/{index-Sa2hQZ0h.js → index-ZxdNFChm.js} +2 -2
  76. package/dist/{index-BccOOMaP.cjs → index-eU4qzdNW.cjs} +1 -1
  77. package/dist/{index-C-8LROmP.js → index-h2jxROLW.js} +2 -2
  78. package/dist/index-rlStojTL.js +52 -0
  79. package/dist/{index-TKouySTA.cjs → index-zfSd0dDx.cjs} +1 -1
  80. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BAJOxaYG.js +38119 -0
  81. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bz5a6KNq.cjs +56 -0
  82. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs} +105 -105
  83. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js} +2 -2
  84. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BQiH2RRX.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-B5pFO8Nu.js} +13 -13
  85. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Dqpyi0E8.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CfeHVTqR.cjs} +1 -1
  86. package/dist/{index.vue_vue_type_style_index_1_lang-9ANlnWKt.js → index.vue_vue_type_style_index_1_lang-C_-spRZf.js} +5 -5
  87. package/dist/index.vue_vue_type_style_index_1_lang-C_c9xkIT.js +8381 -0
  88. package/dist/index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs +32 -0
  89. package/dist/{index.vue_vue_type_style_index_1_lang-D4RvHwPS.cjs → index.vue_vue_type_style_index_1_lang-Dn15anMU.cjs} +1 -1
  90. package/dist/{isString-Cqq3-gAK.cjs → isString-D6Z6SOrb.cjs} +1 -1
  91. package/dist/{isString-BuBBWjRr.js → isString-DBnuELeA.js} +1 -1
  92. package/dist/{main-Mx9r7ydp.cjs → main-Cqs48dh5.cjs} +1 -1
  93. package/dist/{main-DpLQlLK2.js → main-D13CgkQa.js} +5 -5
  94. package/dist/ss-component.cjs +1 -1
  95. package/dist/ss-component.css +2 -2
  96. package/dist/ss-component.js +12 -12
  97. package/dist/ss-component2.cjs +1 -1
  98. package/dist/ss-component2.js +12 -12
  99. package/dist/{threeModel-DTwQnnAO.cjs → threeModel-B1Q-W8uT.cjs} +1 -1
  100. package/dist/{threeModel-CZ-qFwwk.js → threeModel-CdhAh8Bx.js} +5 -5
  101. package/dist/{threePreview-CUGoEzKf.cjs → threePreview-DFaqe_Df.cjs} +1 -1
  102. package/dist/{threePreview-DutKTPWH.js → threePreview-qK1L0B-6.js} +4 -4
  103. package/dist/{threeSceneView-CzgWYHBw.js → threeSceneView-D7A2EUjB.js} +87 -87
  104. package/dist/{threeSceneView-f1V-z4jr.cjs → threeSceneView-MV6u29zj.cjs} +1 -1
  105. package/dist/{threeSceneViewForCPMPIP-2sXIw3I1.js → threeSceneViewForCPMPIP-CFMeh1a1.js} +59 -59
  106. package/dist/{threeSceneViewForCPMPIP-CojHDVHC.cjs → threeSceneViewForCPMPIP-DWIRSSMI.cjs} +1 -1
  107. package/dist/{threeTrackPathView-BGHiOyJo.cjs → threeTrackPathView-jcnhqw1L.cjs} +1 -1
  108. package/dist/{threeTrackPathView-DA4_8jas.js → threeTrackPathView-zpNY2aoY.js} +6 -6
  109. package/dist/{threeViewerHost-D3WDKrIQ.cjs → threeViewerHost-Bmk1dyAX.cjs} +1 -1
  110. package/dist/{threeViewerHost-BNObp9oA.js → threeViewerHost-SnFuinLz.js} +14 -14
  111. package/dist/{urdfTree-CWStzmk2.cjs → urdfTree-BhIdc1in.cjs} +1 -1
  112. package/dist/{urdfTree-CnkPddyT.js → urdfTree-BqMKYhyU.js} +1 -1
  113. package/dist/{workpieceTreePanel-BvhFt3Xw.js → workpieceTreePanel-CrJBeLgr.js} +5 -5
  114. package/dist/{workpieceTreePanel-DXyb_Wnw.cjs → workpieceTreePanel-ugZl4wP-.cjs} +1 -1
  115. package/package.json +2 -2
  116. package/public/config.js +1 -0
  117. package/public/icons/svg/LowCodeEvent.svg +1 -1
  118. package/public/icons/svg/LowCodeExtend.svg +1 -1
  119. package/public/icons/svg/LowCodeSetting.svg +1 -1
  120. package/public/icons/svg/LowCodeStyle.svg +1 -1
  121. package/dist/array-0u9Sf3UC.cjs +0 -11
  122. package/dist/array-BGIM4b6g.js +0 -1142
  123. package/dist/index-B9TlIok8.cjs +0 -15
  124. package/dist/index-BgHY8wmn.cjs +0 -1
  125. package/dist/index-C1lZkQG-.js +0 -7298
  126. package/dist/index-CMwwUi6o.js +0 -3621
  127. package/dist/index-D0XPyuy4.cjs +0 -1
  128. package/dist/index-D3TgRd-7.cjs +0 -1
  129. package/dist/index-DEEZPcpU.cjs +0 -1
  130. package/dist/index-DiRBJiMW.js +0 -43
  131. package/dist/index-DnFxL5wb.cjs +0 -1
  132. package/dist/index-Dv1G67_Q.cjs +0 -21
  133. package/dist/index-OTxJnh9Z.js +0 -2570
  134. package/dist/index-uIVtG4RY.cjs +0 -1
  135. package/dist/index-wQJN1jpI.js +0 -2466
  136. package/dist/index-znR89ub7.cjs +0 -1
  137. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-D21h7jT_.cjs +0 -37
  138. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-PE_6dfIO.js +0 -38930
  139. package/dist/index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs +0 -32
  140. package/dist/index.vue_vue_type_style_index_1_lang-DwvuVXW6.js +0 -8249
@@ -0,0 +1,2865 @@
1
+ import { ref as G, watch as We, nextTick as ua, resolveComponent as qe, createBlock as Le, openBlock as ee, withCtx as X, createElementVNode as fe, renderSlot as Ka, onMounted as ba, createElementBlock as be, normalizeStyle as ml, normalizeClass as rr, toDisplayString as Oe, createCommentVNode as Ce, createVNode as ue, unref as Xe, Fragment as il, renderList as tl, createTextVNode as He, 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 { bh as Ra, as as Wa, c as H, E as Je, c0 as Sa, g as Dl, p as Tl, s as Ol, u as fn, bt as ha, e as qa, b as Al, bv as gn, d as hn, c3 as yn } from "./index-DBDeHECn.js";
3
+ import { d as Ga, aO as vn } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js";
4
+ import { c as El, _ as Ha, h as bn, e as Sn, E as kn } from "./index-BuPMGirQ.js";
5
+ import { b as Tn, T as An, d as ya, c as mn } from "./threeViewerHost-SnFuinLz.js";
6
+ import { aL as Rl, aF as Un, j as ol, k as _n, i as xn, u as Cn, aK as On, a as Dn, a_ as Qa, a$ as Xa, b0 as En, b1 as jn, l as na, E as Ya, aI as Za, b2 as Ia, aT as Ln, b3 as $n } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.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-C_-spRZf.js";
9
+ import { _ as sa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ import { s as Jl } from "./index-LjM9Nk8B.js";
11
+ import "./index-CSkbFCKk.js";
12
+ import { i as Va } from "./isString-DBnuELeA.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, I = 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 = I.value) == null ? void 0 : s.updatePopper) == null || ne.call(s);
47
+ });
48
+ },
49
+ { deep: !0, immediate: !0 }
50
+ ), (s, ne) => {
51
+ const ye = qe("el-popover");
52
+ return ee(), Le(ye, {
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: I
59
+ }, {
60
+ reference: X(() => [
61
+ fe("div", null, [
62
+ Ka(s.$slots, "reference", {
63
+ ref_key: "referenceRef",
64
+ ref: $
65
+ })
66
+ ])
67
+ ]),
68
+ default: X(() => [
69
+ fe("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
+ }, Nn = { class: "table-operator-wrap" }, Mn = { 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" }, Hn = { class: "form-content-value" }, Qn = {
90
+ key: 0,
91
+ class: "extra-header"
92
+ }, Xn = {
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 I = re, B = j, $ = G(""), s = G(!1), ne = G([]), ye = 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
+ ], ve = (de) => {
144
+ const Se = de.raw;
145
+ if (!Se) return;
146
+ const te = new FileReader();
147
+ te.onload = (Q) => {
148
+ try {
149
+ const q = new Uint8Array(Q.target.result), $e = Pn(q, { type: "array" }), Ge = $e.SheetNames[0], oe = $e.Sheets[Ge], Ke = Wl.decode_range(oe["!ref"]).e.c + 1, Y = new Array(Ke).fill(""), v = [];
150
+ for (const w in oe) {
151
+ if (w[0] === "!") continue;
152
+ const { r: pe, c: le } = Wl.decode_cell(w);
153
+ let we = oe[w].v;
154
+ if (oe[w].t === "n" && we > 0 && we < 1e6 && (we = new Date((we - 25569) * 86400 * 1e3).toISOString().split("T")[0]), (we == null || we === "") && (we = ""), pe === 0)
155
+ Y[le] = we;
156
+ else {
157
+ if (!v[pe - 1]) {
158
+ v[pe - 1] = {};
159
+ for (let rl = 0; rl < Ke; rl++)
160
+ v[pe - 1][`col_${rl}`] = "";
161
+ }
162
+ v[pe - 1][`col_${le}`] = we;
163
+ }
164
+ }
165
+ for (let w = 0; w < Ke; w++)
166
+ Y[w] === void 0 && (Y[w] = "");
167
+ const _e = v == null ? void 0 : v[0];
168
+ if (!(_e != null && _e.hasOwnProperty("col_0"))) return Je.error("导入的数据列不匹配,请检查是否错位");
169
+ I("getImportData", Y, v);
170
+ } catch (q) {
171
+ throw Je.error(q.message), new Error(q.message);
172
+ }
173
+ }, te.readAsArrayBuffer(Se);
174
+ }, Ye = (de) => {
175
+ var te;
176
+ const Se = (te = ne.value) == null ? void 0 : te.reduce((Q, q, $e) => ($e === 0 ? Q[q.label] = de : Q[q.label] = q == null ? void 0 : q.value, Q), {});
177
+ I("filter", Se, de, !0);
178
+ }, al = (de) => {
179
+ I("buttonClick", de);
180
+ }, hl = (de) => {
181
+ var Se, te;
182
+ ne.value = (te = (Se = Rl(H(de))) == null ? void 0 : Se.filter((Q) => (Q == null ? void 0 : Q.label) !== "" && (Q == null ? void 0 : Q.label) !== "操作")) == null ? void 0 : te.map((Q) => ({
183
+ label: (Q == null ? void 0 : Q.label) ?? "",
184
+ value: "",
185
+ name: (Q == null ? void 0 : Q.label) ?? "",
186
+ isFormColHidden: Q == null ? void 0 : Q.isTableColHidden,
187
+ width: 2
188
+ }));
189
+ }, ge = G(!1), cl = (de) => {
190
+ var Se;
191
+ if ((de == null ? void 0 : de.buttonName) === "确认" && (I("filter", de == null ? void 0 : de.content), ge.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 te = H(de == null ? void 0 : de.content);
193
+ for (const Q in te)
194
+ te[Q] = "";
195
+ ne.value = (Se = ne.value) == null ? void 0 : Se.map((Q) => ({
196
+ ...Q,
197
+ value: ""
198
+ })), I("filter", te), ge.value = !1;
199
+ }
200
+ s.value = !1;
201
+ }, dl = () => {
202
+ var Se, te;
203
+ ne.value = (Se = ne.value) == null ? void 0 : Se.map((Q) => ({
204
+ ...Q,
205
+ value: ""
206
+ }));
207
+ const de = (te = ne.value) == null ? void 0 : te.reduce((Q, q) => (Q[q.label] = q.value, Q), {});
208
+ I("filter", de);
209
+ };
210
+ return ba(() => {
211
+ hl(B.columns);
212
+ }), We(
213
+ () => B.columns,
214
+ () => {
215
+ hl(B.columns);
216
+ },
217
+ { deep: !0, immediate: !0 }
218
+ ), (de, Se) => {
219
+ var oe, Me, Ke, Y;
220
+ const te = qe("el-icon"), Q = qe("svg-icon"), q = qe("el-input"), $e = qe("el-button"), Ge = qe("el-upload");
221
+ return j.pageLayout === "vertical" ? (ee(), be("div", wn, [
222
+ fe("div", {
223
+ class: rr(j.compName ? "table-name-wrap" : ""),
224
+ style: ml({
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
+ fe("div", Nn, [
232
+ fe("div", Mn, [
233
+ ue(lr, {
234
+ title: "",
235
+ width: 800,
236
+ placement: "bottom-start",
237
+ isVisible: s.value
238
+ }, {
239
+ reference: X(() => {
240
+ var v, _e, w, pe;
241
+ return [
242
+ ue(q, {
243
+ modelValue: $.value,
244
+ "onUpdate:modelValue": Se[1] || (Se[1] = (le) => $.value = le),
245
+ style: { "min-width": "80px" },
246
+ placeholder: ge.value ? (w = (_e = (v = j.filterValues) == null ? void 0 : v.filter((le) => le)) == null ? void 0 : _e.slice(0, 3)) == null ? void 0 : w.join("/") : "搜索",
247
+ "prefix-icon": Xe(Ra),
248
+ clearable: "",
249
+ onInput: Ye,
250
+ disabled: ((pe = ne.value) == null ? void 0 : pe.length) === 0
251
+ }, {
252
+ suffix: X(() => {
253
+ var le, we;
254
+ return [
255
+ !$.value && ((we = (le = j.filterValues) == null ? void 0 : le.filter((rl) => rl)) != null && we.join("/")) ? (ee(), Le(te, {
256
+ key: 0,
257
+ style: { cursor: "pointer" },
258
+ onClick: dl
259
+ }, {
260
+ default: X(() => [
261
+ ue(Xe(Wa))
262
+ ]),
263
+ _: 1
264
+ })) : Ce("", !0)
265
+ ];
266
+ }),
267
+ append: X(() => [
268
+ fe("span", {
269
+ title: "条件查询",
270
+ onClick: Se[0] || (Se[0] = (le) => s.value = !s.value)
271
+ }, [
272
+ ue(Q, {
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: X(() => [
283
+ fe("div", Kn, [
284
+ (ee(), Le(El, {
285
+ rowContents: ne.value,
286
+ buttonValue: ye.value,
287
+ isRowFlex: !0,
288
+ isEnableWrap: !1,
289
+ isButtonRow: !1,
290
+ key: ye.value,
291
+ isStartJustify: !1,
292
+ onOnButtonClick: cl
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 ? (ee(), be("div", Fn, [
300
+ (ee(!0), be(il, null, tl((Me = j.buttons) == null ? void 0 : Me.filter((v) => j.isDevMode || (v == null ? void 0 : v.label) !== "修改模板"), (v, _e) => (ee(), be("div", {
301
+ class: "extra-contents",
302
+ key: _e
303
+ }, [
304
+ (v == null ? void 0 : v.type) === "upload" ? (ee(), Le(Ge, {
305
+ key: 0,
306
+ class: "upload-button-wrap",
307
+ "on-change": ve,
308
+ accept: ".xlsx,.xls",
309
+ "auto-upload": !1,
310
+ action: "#",
311
+ "show-file-list": !1,
312
+ disabled: !!j.lockingPage
313
+ }, {
314
+ default: X(() => [
315
+ ue($e, {
316
+ disabled: !!j.lockingPage,
317
+ style: ml({ 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: X(() => [
320
+ He(Oe(v == null ? void 0 : v.label), 1)
321
+ ]),
322
+ _: 2
323
+ }, 1032, ["disabled", "style"])
324
+ ]),
325
+ _: 2
326
+ }, 1032, ["disabled"])) : Ce("", !0),
327
+ (v == null ? void 0 : v.type) === "popover" ? (ee(), Le(Ha, { key: 1 }, {
328
+ dropTitle: X(() => [
329
+ (v == null ? void 0 : v.type) === "popover" ? (ee(), Le($e, {
330
+ key: 0,
331
+ disabled: !!j.lockingPage,
332
+ style: ml({ 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: X(() => [
335
+ He(Oe(v == null ? void 0 : v.label), 1)
336
+ ]),
337
+ _: 2
338
+ }, 1032, ["disabled", "style"])) : Ce("", !0)
339
+ ]),
340
+ dropMenu: X(() => [
341
+ fe("div", zn, [
342
+ (ee(!0), be(il, null, tl(v == null ? void 0 : v.contents, (w) => (ee(), Le($e, {
343
+ key: w == null ? void 0 : w.label,
344
+ disabled: !!j.lockingPage,
345
+ style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
346
+ onClick: (pe) => al(w == null ? void 0 : w.label)
347
+ }, {
348
+ default: X(() => {
349
+ var pe, le;
350
+ return [
351
+ He(Oe(w == null ? void 0 : w.label), 1),
352
+ (pe = w == null ? void 0 : w.label) != null && pe.includes("选中") ? (ee(), be("span", Jn, "(" + Oe(j.selectNums) + ")", 1)) : Ce("", !0),
353
+ (le = w == null ? void 0 : w.label) != null && le.includes("全部") ? (ee(), be("span", Rn, "(" + Oe(j.dataNums) + ")", 1)) : Ce("", !0)
354
+ ];
355
+ }),
356
+ _: 2
357
+ }, 1032, ["disabled", "onClick"]))), 128))
358
+ ])
359
+ ]),
360
+ _: 2
361
+ }, 1024)) : Ce("", !0),
362
+ v != null && v.type ? Ce("", !0) : (ee(), Le($e, {
363
+ key: 2,
364
+ id: "themeButton",
365
+ disabled: !!j.lockingPage,
366
+ style: ml({ background: (v == null ? void 0 : v.background) ?? "var(--ssbutton-theme-bg)", color: (v == null ? void 0 : v.color) ?? "var(--ssbutton-theme-color)" }),
367
+ onClick: (w) => al(v == null ? void 0 : v.label)
368
+ }, {
369
+ default: X(() => [
370
+ He(Oe(v == null ? void 0 : v.label), 1)
371
+ ]),
372
+ _: 2
373
+ }, 1032, ["disabled", "style", "onClick"]))
374
+ ]))), 128))
375
+ ])) : Ce("", !0)
376
+ ])
377
+ ])) : (ee(), be("div", Wn, [
378
+ fe("div", qn, [
379
+ fe("div", Gn, [
380
+ ue(lr, {
381
+ title: "",
382
+ width: 800,
383
+ placement: "bottom-start",
384
+ isVisible: s.value
385
+ }, {
386
+ reference: X(() => {
387
+ var v, _e, w, pe;
388
+ return [
389
+ ue(q, {
390
+ modelValue: $.value,
391
+ "onUpdate:modelValue": Se[3] || (Se[3] = (le) => $.value = le),
392
+ style: { "min-width": "80px" },
393
+ placeholder: ge.value ? (w = (_e = (v = j.filterValues) == null ? void 0 : v.filter((le) => le)) == null ? void 0 : _e.slice(0, 3)) == null ? void 0 : w.join("/") : "搜索",
394
+ "prefix-icon": Xe(Ra),
395
+ clearable: "",
396
+ onInput: Ye,
397
+ disabled: ((pe = ne.value) == null ? void 0 : pe.length) === 0
398
+ }, {
399
+ suffix: X(() => {
400
+ var le, we;
401
+ return [
402
+ !$.value && ((we = (le = j.filterValues) == null ? void 0 : le.filter((rl) => rl)) != null && we.join("/")) ? (ee(), Le(te, {
403
+ key: 0,
404
+ style: { cursor: "pointer" },
405
+ onClick: dl
406
+ }, {
407
+ default: X(() => [
408
+ ue(Xe(Wa))
409
+ ]),
410
+ _: 1
411
+ })) : Ce("", !0)
412
+ ];
413
+ }),
414
+ append: X(() => [
415
+ fe("span", {
416
+ title: "条件查询",
417
+ onClick: Se[2] || (Se[2] = (le) => s.value = !s.value)
418
+ }, [
419
+ ue(Q, {
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: X(() => [
430
+ fe("div", Hn, [
431
+ (ee(), Le(El, {
432
+ rowContents: ne.value,
433
+ buttonValue: ye.value,
434
+ isRowFlex: !0,
435
+ isEnableWrap: !1,
436
+ isButtonRow: !1,
437
+ key: ye.value,
438
+ isStartJustify: !1,
439
+ onOnButtonClick: cl
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 ? (ee(), be("div", Qn, [
447
+ (ee(!0), be(il, null, tl((Y = j.buttons) == null ? void 0 : Y.filter((v) => j.isDevMode || (v == null ? void 0 : v.label) !== "修改模板"), (v, _e) => (ee(), be("div", {
448
+ class: "extra-contents",
449
+ key: _e
450
+ }, [
451
+ (v == null ? void 0 : v.type) === "upload" ? (ee(), Le(Ge, {
452
+ key: 0,
453
+ class: "upload-button-wrap",
454
+ "on-change": ve,
455
+ accept: ".xlsx,.xls",
456
+ "auto-upload": !1,
457
+ action: "#",
458
+ "show-file-list": !1
459
+ }, {
460
+ default: X(() => [
461
+ ue($e, { style: { background: "transparent", color: "#666666" } }, {
462
+ icon: X(() => {
463
+ var w;
464
+ return [
465
+ ue(Q, {
466
+ name: (w = Ue == null ? void 0 : Ue.find((pe) => (pe == null ? void 0 : pe.label) === (v == null ? void 0 : v.label))) == null ? void 0 : w.icon
467
+ }, null, 8, ["name"])
468
+ ];
469
+ }),
470
+ default: X(() => [
471
+ He(" " + Oe(v == null ? void 0 : v.label), 1)
472
+ ]),
473
+ _: 2
474
+ }, 1024)
475
+ ]),
476
+ _: 2
477
+ }, 1024)) : Ce("", !0),
478
+ (v == null ? void 0 : v.type) === "popover" ? (ee(), Le(Ha, { key: 1 }, {
479
+ dropTitle: X(() => [
480
+ (v == null ? void 0 : v.type) === "popover" ? (ee(), Le($e, {
481
+ key: 0,
482
+ style: { background: "transparent", color: "#666666" }
483
+ }, {
484
+ icon: X(() => {
485
+ var w;
486
+ return [
487
+ ue(Q, {
488
+ name: (w = Ue == null ? void 0 : Ue.find((pe) => (pe == null ? void 0 : pe.label) === (v == null ? void 0 : v.label))) == null ? void 0 : w.icon
489
+ }, null, 8, ["name"])
490
+ ];
491
+ }),
492
+ default: X(() => [
493
+ He(" " + Oe(v == null ? void 0 : v.label), 1)
494
+ ]),
495
+ _: 2
496
+ }, 1024)) : Ce("", !0)
497
+ ]),
498
+ dropMenu: X(() => [
499
+ fe("div", Xn, [
500
+ (ee(!0), be(il, null, tl(v == null ? void 0 : v.contents, (w) => (ee(), Le($e, {
501
+ key: w == null ? void 0 : w.label,
502
+ style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
503
+ onClick: (pe) => al(w == null ? void 0 : w.label)
504
+ }, {
505
+ default: X(() => {
506
+ var pe, le;
507
+ return [
508
+ He(Oe(w == null ? void 0 : w.label), 1),
509
+ (pe = w == null ? void 0 : w.label) != null && pe.includes("选中") ? (ee(), be("span", Yn, "(" + Oe(j.selectNums) + ")", 1)) : Ce("", !0),
510
+ (le = w == null ? void 0 : w.label) != null && le.includes("全部") ? (ee(), be("span", Zn, "(" + Oe(j.dataNums) + ")", 1)) : Ce("", !0)
511
+ ];
512
+ }),
513
+ _: 2
514
+ }, 1032, ["onClick"]))), 128))
515
+ ])
516
+ ]),
517
+ _: 2
518
+ }, 1024)) : Ce("", !0),
519
+ v != null && v.type ? Ce("", !0) : (ee(), Le($e, {
520
+ key: 2,
521
+ id: "themeButton",
522
+ style: ml({ background: "transparent", color: (v == null ? void 0 : v.label) === "新增" ? "var(--ssbutton-theme-bg)" : "#666666" }),
523
+ onClick: (w) => al(v == null ? void 0 : v.label)
524
+ }, {
525
+ icon: X(() => {
526
+ var w;
527
+ return [
528
+ ue(Q, {
529
+ name: (w = Ue == null ? void 0 : Ue.find((pe) => (pe == null ? void 0 : pe.label) === (v == null ? void 0 : v.label))) == null ? void 0 : w.icon
530
+ }, null, 8, ["name"])
531
+ ];
532
+ }),
533
+ default: X(() => [
534
+ He(" " + Oe(v == null ? void 0 : v.label), 1)
535
+ ]),
536
+ _: 2
537
+ }, 1032, ["style", "onClick"]))
538
+ ]))), 128))
539
+ ])) : Ce("", !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 I = j, B = re, $ = (ne) => {
564
+ B("buttonClick", ne);
565
+ }, s = (ne) => {
566
+ var ye;
567
+ return ne != null && ne.includes("删除") ? ((ye = I.selectTableItems) == null ? void 0 : ye.length) > 0 ? "warning-active-type" : "warning-type" : "default-type";
568
+ };
569
+ return (ne, ye) => {
570
+ const Ue = qe("el-button");
571
+ return ee(), be("div", null, [
572
+ (ee(!0), be(il, null, tl(j.buttons, (ve) => (ee(), Le(Ue, {
573
+ key: ve == null ? void 0 : ve.label,
574
+ disabled: !!j.lockingPage,
575
+ class: rr(s(ve == null ? void 0 : ve.label)),
576
+ onClick: (Ye) => $(ve == null ? void 0 : ve.label)
577
+ }, {
578
+ default: X(() => [
579
+ He(Oe(ve == null ? void 0 : ve.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(), I = G();
603
+ return ba(() => {
604
+ re.value = [
605
+ {
606
+ type: "Upload",
607
+ label: "输入",
608
+ name: "input"
609
+ }
610
+ ], I.value = [
611
+ {
612
+ type: "Upload",
613
+ label: "输出",
614
+ name: "output"
615
+ }
616
+ ];
617
+ }), (B, $) => (ee(), be("div", ru, [
618
+ fe("div", nu, [
619
+ ue(El, {
620
+ rowContents: re.value,
621
+ isRowFlex: !0
622
+ }, null, 8, ["rowContents"])
623
+ ]),
624
+ fe("div", uu, [
625
+ ue(El, {
626
+ rowContents: I.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 I = j, B = re;
652
+ return Array.isArray(I) && (I = I == null ? void 0 : I.map(($, s) => {
653
+ if (Array.isArray($)) {
654
+ let ne = {};
655
+ return $ = $ == null ? void 0 : $.forEach((ye, Ue) => {
656
+ var ve;
657
+ (ve = B == null ? void 0 : B[Ue]) != null && ve.prop ? ne[B[Ue].prop] = ye : Array.isArray(ye) && (ne.children = va(ye, B));
658
+ }), Object.assign(ne, { id: s });
659
+ } else
660
+ return $;
661
+ })), I;
662
+ }, ur = (j, re, I) => {
663
+ let B = j, $ = re;
664
+ return B = B == null ? void 0 : B.map((s, ne) => {
665
+ var ye, Ue;
666
+ return !Array.isArray(s) || !((ye = $ == null ? void 0 : $[ne]) != null && ye.label) && !I || (s.unshift(((Ue = $ == null ? void 0 : $[ne]) == null ? void 0 : Ue.label) ?? ""), s.some((ve) => Array.isArray(ve)) && (s = s == null ? void 0 : s.map((ve) => {
667
+ var Ye;
668
+ return Array.isArray(ve) && (ve = ur(ve, (Ye = $ == null ? void 0 : $[ne]) == null ? void 0 : Ye.children, I)), ve;
669
+ }))), s;
670
+ }), B;
671
+ }, tu = (j, re, I) => {
672
+ if (re === "")
673
+ return j == null ? void 0 : j.filter((B) => (B == null ? void 0 : B.id) !== I);
674
+ {
675
+ const B = re.split("-");
676
+ return cu(j, B, I);
677
+ }
678
+ }, cu = (j, re, I) => {
679
+ let B = j, $ = re;
680
+ return ($ == null ? void 0 : $.length) === 0 ? B = B == null ? void 0 : B.filter((s) => s.id !== I) : B = B == null ? void 0 : B.map((s) => (s.id.toString() === ($ == null ? void 0 : $[0]) && ($ == null || $.shift(), s = sr(s, $, I)), s)), B;
681
+ }, sr = (j, re, I) => {
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((ye) => ye.id !== I) : B.children = (ne = B.children) == null ? void 0 : ne.map((ye) => (ye.id.toString() === ($ == null ? void 0 : $[0]) && ($ == null || $.shift(), ye = sr(ye, $, I)), ye)), B;
685
+ }, du = (j, re, I) => {
686
+ if (re === "")
687
+ return I;
688
+ {
689
+ const B = re.split("-");
690
+ return pu(j, B, I);
691
+ }
692
+ }, pu = (j, re, I) => {
693
+ let B = j, $ = re;
694
+ return ($ == null ? void 0 : $.length) === 0 ? B = I : B = B == null ? void 0 : B.map((s) => (s.id.toString() === ($ == null ? void 0 : $[0]) && ($ == null || $.shift(), s = or(s, $, I)), s)), B;
695
+ }, or = (j, re, I) => {
696
+ var s;
697
+ let B = j, $ = re;
698
+ return ($ == null ? void 0 : $.length) === 0 ? B.children = I : B.children = (s = B.children) == null ? void 0 : s.map((ne) => (ne.id.toString() === ($ == null ? void 0 : $[0]) && ($ == null || $.shift(), ne = or(ne, $, I)), 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, ye, Ue, ve, Ye, al, hl, ge, cl, dl, de, Se, te, Q, q, $e, Ge;
714
+ let I = (ye = (ne = H(j)) == null ? void 0 : ne.optionUrl) == null ? void 0 : ye.menuSelect, B = [];
715
+ I == null || I.forEach((oe) => {
716
+ });
717
+ let $ = "", s = await Un(I);
718
+ if (s == null || s.forEach((oe) => {
719
+ var Me, Ke, Y, v;
720
+ (oe == null ? void 0 : oe.name) === (((v = (Y = (Ke = (Me = H(j)) == null ? void 0 : Me.optionUrl) == null ? void 0 : Ke.groupSelect) == null ? void 0 : Y[0]) == null ? void 0 : v.replaceAll("'", "")) ?? "") && ($ = oe == null ? void 0 : oe.id);
721
+ }), re) {
722
+ $ = re;
723
+ const oe = await Dl({
724
+ id: $
725
+ }), Me = (al = (Ye = (ve = (Ue = oe == null ? void 0 : oe.data) == null ? void 0 : Ue.result) == null ? void 0 : ve[0]) == null ? void 0 : Ye.key) == null ? void 0 : al.pageKey;
726
+ s = await ol(Me, sessionStorage.getItem("systemKey"), "");
727
+ }
728
+ if ($ !== "") {
729
+ let oe;
730
+ re ? oe = (hl = s == null ? void 0 : s.find((Y) => (Y == null ? void 0 : Y.id) === re)) == null ? void 0 : hl.compData : oe = (ge = s == null ? void 0 : s.find((Y) => {
731
+ var v, _e, w, pe;
732
+ return (Y == null ? void 0 : Y.name) === (((_e = (v = j == null ? void 0 : j.groupSelect) == null ? void 0 : v.split(":")) == null ? void 0 : _e[0]) || ((pe = (w = j == null ? void 0 : j.optionUrl) == null ? void 0 : w.groupSelect) == null ? void 0 : pe[0]));
733
+ })) == null ? void 0 : ge.compData;
734
+ let Me = (dl = (cl = oe == null ? void 0 : oe.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : cl.contents) == null ? void 0 : dl.map((Y) => Y == null ? void 0 : Y.label);
735
+ (Se = (de = oe == null ? void 0 : oe.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : de.contents) != null && Se.every((Y) => Array.isArray(Y)) && (Me = (q = Rl((Q = (te = oe == null ? void 0 : oe.find((Y) => (Y == null ? void 0 : Y.key) === "header")) == null ? void 0 : te.contents) == null ? void 0 : Q[0])) == null ? void 0 : q.map((Y) => Y == null ? void 0 : Y.prop));
736
+ let Ke = (Ge = ($e = oe == null ? void 0 : oe.find((Y) => (Y == null ? void 0 : Y.key) === "tableContents")) == null ? void 0 : $e.contents) == null ? void 0 : Ge.map((Y) => (Y = Y == null ? void 0 : Y.filter((v) => !(v != null && v.id)), Y));
737
+ Ke == null || Ke.forEach((Y) => {
738
+ B.push(_n(Y, Me));
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" }, xu = { class: "file-list-pop" }, Cu = ["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 Ma;
831
+ const I = G([]), B = fu(Tl), $ = G(null), s = j, ne = G(s == null ? void 0 : s.allowSelect), ye = G((Ma = s == null ? void 0 : s.config) == null ? void 0 : Ma.showIndex), Ue = G(), ve = 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 = xn(Tl);
853
+ let al = "$R";
854
+ const { originalPath: hl } = Ol(Ye), ge = hl.value, cl = G(!1), dl = G(!1), de = G(!1), Se = zl({
855
+ column: {},
856
+ status: !1,
857
+ text: "合计"
858
+ }), te = zl({
859
+ currentPage: 1,
860
+ pageSize: 10,
861
+ total: 0,
862
+ pageSizes: [5, 10, 20, 50, 100]
863
+ }), Q = re, q = G([]), $e = zl({ prop: "", order: null }), Ge = G([]), oe = G(!1), Me = G(!1), Ke = G(null);
864
+ Tn();
865
+ const Y = G([]), v = G(!1), _e = G(), w = Cn(), { importLoading: pe, activeMenuPath: le, contentLoading: we, linkMenuInfo: rl } = Ol(w), ir = On(Tl), De = Dn(Tl), { extraContents: ke, cacheUpdatingData: jl, tableViewContents: Ll, tableLoading: Bu, pageMapState: yl, lockingPage: ql } = Ol(De), V = G([]), Gl = G([]), Hl = G(/* @__PURE__ */ new Map());
866
+ G(!1);
867
+ const nl = G("");
868
+ G();
869
+ const Ql = G(!0), Ul = G(0), ka = G(!0), Ze = G(""), ul = G(!1), tr = G({
870
+ label: "查看三维模型"
871
+ }), Xl = G(!1), oa = G(), Qe = G([]), vl = G([]), Yl = G(!1), $l = G([]), _l = G([]), bl = G([]), Pe = G([]), Ie = G(), Fe = G(), cr = au(Tl), Zl = G(), ia = G(0), Il = iu(Tl), { selectIndex: dr, selectMenu: sl, selectTitle: ta } = Ol(Il), { selectString: Sl } = Ol(cr), pr = fn(Tl), { loginUserInfo: xe } = Ol(pr), fr = G(720), Ve = G(!1), Vl = G(!1), el = G([]), kl = G(), Pl = G(!0), Ta = G(!0), ea = G([]), gr = on("contentRef");
872
+ tn("contentRef", gr), We(() => {
873
+ var e;
874
+ return (e = V.value) == null ? void 0 : e.length;
875
+ }, (e) => {
876
+ te.total = e;
877
+ }), We(
878
+ () => Ll.value,
879
+ async () => {
880
+ var o, i, t, c, p, b, O, z, g, U, D, m, J, F, K, n, k, h;
881
+ if (((o = Ll.value) == null ? void 0 : o.length) === 0 || !((i = s == null ? void 0 : s.itemData) != null && i.find((A) => (A == null ? void 0 : A.key) === "columnPath")) || !((t = s == null ? void 0 : s.itemData) != null && t.find((A) => (A == null ? void 0 : A.key) === "pageColumn"))) return;
882
+ let e = (g = (z = (O = (b = (p = (c = s == null ? void 0 : s.itemData) == null ? void 0 : c.find((A) => (A == null ? void 0 : A.key) === "pageColumn")) == null ? void 0 : p.contents) == null ? void 0 : b.split("[")) == null ? void 0 : O[1]) == null ? void 0 : z.split("]")) == null ? void 0 : g[0], l = ((J = (m = (D = (U = s == null ? void 0 : s.itemData) == null ? void 0 : U.find((A) => (A == null ? void 0 : A.key) === "pageColumn")) == null ? void 0 : D.contents) == null ? void 0 : m.split("[")) == null ? void 0 : J[0]) + ((K = (F = Ll.value) == null ? void 0 : F.find((A) => (A == null ? void 0 : A.key) === e)) == null ? void 0 : K.value), r = ((k = (n = s == null ? void 0 : s.itemData) == null ? void 0 : n.find((A) => (A == null ? void 0 : A.key) === "pageGroup")) == null ? void 0 : k.contents) ?? "", a = await ol(l, sessionStorage.getItem("systemKey"), ""), u = (h = a == null ? void 0 : a.find((A) => (A == null ? void 0 : A.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 Dl({ 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 p = {
894
+ type: "data",
895
+ pageKey: s != null && s.parentTableId ? (o = c == null ? void 0 : c.key) == null ? void 0 : o.pageKey : le.value,
896
+ tableId: (s == null ? void 0 : s.parentTableId) || (s == null ? void 0 : s.index),
897
+ systemKey: sessionStorage.getItem("systemKey")
898
+ }, b = l == null ? void 0 : l.map((g) => {
899
+ const U = Object.keys(g), D = {};
900
+ return U.forEach((m, J) => {
901
+ D[e[J]] = g[m];
902
+ }), D;
903
+ }), O = b == null ? void 0 : b.map((g) => ({
904
+ key: p,
905
+ value: {
906
+ tableData: g
907
+ }
908
+ })), z = await ha({ dataList: O });
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 Al.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 = (te.currentPage - 1) * te.pageSize, l = e + te.pageSize, r = (a = q.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), Q("getSliceContLength", te), (u = V.value) == null ? void 0 : u.slice(e, l);
944
+ }), vr = (e) => {
945
+ te.currentPage = e, Q("getSliceContLength", te);
946
+ }, br = (e) => {
947
+ var l;
948
+ te.pageSize = e, e * te.currentPage > ((l = V.value) == null ? void 0 : l.length) && (te.currentPage = 1, te.pageSize = 10, Je.warning("分页无效,返回第一页")), Q("getSliceContLength", te);
949
+ }, Sr = (e, l) => {
950
+ var i, t;
951
+ const r = (t = (i = q.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((p) => c === p)))) return Je.error("导入的数据表头不匹配");
956
+ hr(a, l);
957
+ }, kr = (e, l) => {
958
+ var r;
959
+ De.setRefreshCurStructure(!1), ((r = q.value) == null ? void 0 : r.length) === 0 || Sr(e, l);
960
+ }, Tr = (e, l, r, a) => {
961
+ const u = [], o = [], i = (p) => Object.keys(p).length;
962
+ for (const p in e)
963
+ if (e[p] !== void 0) {
964
+ const b = e[p], O = [];
965
+ for (const [z, g] of Object.entries(b))
966
+ O.push(g), o.length < i(b) && o.push(z);
967
+ u.push(O);
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, p, b, O, z;
974
+ try {
975
+ De.setRefreshCurStructure(!1);
976
+ const g = await Dl({
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 U = (p = (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 : p.pageData;
981
+ a ? U = {
982
+ ...U,
983
+ compData: (O = U == null ? void 0 : U.compData) == null ? void 0 : O.map((m) => {
984
+ var J;
985
+ return (m == null ? void 0 : m.key) === "header" ? {
986
+ ...m,
987
+ contents: (J = m == null ? void 0 : m.contents) == null ? void 0 : J.map((F) => ({
988
+ ...F,
989
+ [e]: r
990
+ }))
991
+ } : m;
992
+ })
993
+ } : U = {
994
+ ...U,
995
+ compData: (b = U == null ? void 0 : U.compData) == null ? void 0 : b.map((m) => {
996
+ var J, F;
997
+ return (m == null ? void 0 : m.key) === "header" ? {
998
+ ...m,
999
+ contents: (J = m == null ? void 0 : m.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
+ } : (m == null ? void 0 : m.key) === "tableToForm" && u ? {
1004
+ ...m,
1005
+ contents: (F = m == null ? void 0 : m.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
+ } : m;
1010
+ })
1011
+ };
1012
+ const D = await hn({
1013
+ id: s == null ? void 0 : s.index,
1014
+ value: {
1015
+ pageData: U
1016
+ }
1017
+ });
1018
+ ((z = D == null ? void 0 : D.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
+ jl.value ? Ve.value = !1 : Na();
1029
+ }, _r = (e) => {
1030
+ el.value = e;
1031
+ }, xr = (e, l) => {
1032
+ kl.value === l ? Pl.value = !1 : Pl.value = !0, kl.value = l == null ? void 0 : l.changeProp;
1033
+ }, Bl = Fa(() => {
1034
+ var r, a, u;
1035
+ const e = (r = q.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 = q.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
+ }), Cr = async (e, l, r) => {
1043
+ const a = H(q.value);
1044
+ await ua(), q.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
+ ul.value = !1;
1052
+ }, Dr = (e) => {
1053
+ Q("clickTrigger", e);
1054
+ }, ma = async (e) => {
1055
+ var o, i, t, c, p, b, O, z, g, U, D, m, 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
+ $l.value = [l], Me.value = !0, Ke.value = {
1063
+ data: H(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") || (p = l == null ? void 0 : l.toString()) != null && p.includes(".mtl")) {
1069
+ $l.value = (b = l == null ? void 0 : l.toString()) == null ? void 0 : b.split(","), Me.value = !1, oe.value = !0;
1070
+ return;
1071
+ }
1072
+ if ((O = l == null ? void 0 : l.toString()) != null && O.includes(".stl") || (z = l == null ? void 0 : l.toString()) != null && z.includes(".STL") || (g = l == null ? void 0 : l.toString()) != null && g.includes(".obj") || (U = l == null ? void 0 : l.toString()) != null && U.includes(".mtl") || a != null && a.includes(".stl") || a != null && a.includes(".STL") || a != null && a.includes(".obj") || a != null && a.includes(".mtl")) {
1073
+ let n, k = [], h = {};
1074
+ if (Array.isArray(l) ? n = l : n = l == null ? void 0 : l.split(","), n == null || n.forEach((A) => {
1075
+ A.includes(".mtl") ? k.push(A) : h.blob = h.blob ? h.blob + "," + A : A;
1076
+ }), (k == null ? void 0 : k.length) > 0 && (h.mtlBlobs = k), a && (h.suffix = a), (m = (D = Object.values(h)) == null ? void 0 : D[0]) != null && m.includes("http:"))
1077
+ u.push(h);
1078
+ else {
1079
+ const A = new Blob([h.blob], {
1080
+ type: "application/octet-stream;charset=UTF-8"
1081
+ });
1082
+ let T = URL.createObjectURL(A), Z = "";
1083
+ (J = l == null ? void 0 : l.split("/")) == null || J.forEach((L, x) => {
1084
+ var R;
1085
+ x === ((R = l == null ? void 0 : l.split("/")) == null ? void 0 : R.length) - 1 && (Z = L);
1086
+ }), (F = h.blob) != null && F.includes(".stl") && (Z = (Z == null ? void 0 : Z.replaceAll(">", "")) + ".urdf"), _e.value = [{
1087
+ name: Z,
1088
+ blobUrl: T
1089
+ }], v.value = !0;
1090
+ }
1091
+ } else {
1092
+ const n = await Al.get(l, {
1093
+ responseType: "blob",
1094
+ headers: {
1095
+ "Content-Type": "application/json"
1096
+ }
1097
+ }), k = new Blob([n.data], {
1098
+ type: "application/octet-stream;charset=UTF-8"
1099
+ });
1100
+ let h = URL.createObjectURL(k), A = "";
1101
+ (K = l == null ? void 0 : l.split("/")) == null || K.forEach((T, Z) => {
1102
+ var L;
1103
+ Z === ((L = l == null ? void 0 : l.split("/")) == null ? void 0 : L.length) - 1 && (A = T);
1104
+ }), _e.value = [{
1105
+ name: A,
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 Al.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 p = r == null ? void 0 : r.lastIndexOf(".");
1138
+ a = r == null ? void 0 : r.slice(p);
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 Al.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 V.value = Gl.value;
1202
+ if (r) {
1203
+ V.value = [...Hl.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
+ V.value = $r(Hl.value, e), De.setTableLoading(!1);
1207
+ }
1208
+ }, Br = async (e) => {
1209
+ var i, t, c, p, b, O, z, g, U, D, m, J, F, K, n;
1210
+ const l = await Dl({
1211
+ keyLikes: {
1212
+ pageKey: `loading${((i = xe.value) == null ? void 0 : i.account) || ((t = xe.value) == null ? void 0 : t.账号)}`,
1213
+ systemKey: sessionStorage.getItem("systemKey")
1214
+ }
1215
+ }), r = await Dl({
1216
+ keyLikes: {
1217
+ pageKey: `updateLoading${((c = xe.value) == null ? void 0 : c.account) || ((p = xe.value) == null ? void 0 : p.账号)}`,
1218
+ systemKey: sessionStorage.getItem("systemKey")
1219
+ }
1220
+ });
1221
+ let a = (O = (b = l == null ? void 0 : l.data) == null ? void 0 : b.result) == null ? void 0 : O.map((k) => k == null ? void 0 : k.id);
1222
+ const u = (g = (z = r == null ? void 0 : r.data) == null ? void 0 : z.result) == null ? void 0 : g.map((k) => k == null ? void 0 : k.id);
1223
+ a = [...H(a), ...u], (a == null ? void 0 : a.length) > 0 && (a != null && a.every((k) => k !== null && k)) && await qa({
1224
+ ids: a
1225
+ });
1226
+ let o = await ol(le.value, sessionStorage.getItem("systemKey"), e.id);
1227
+ if (o = o == null ? void 0 : o.filter((k) => k.comp !== "methodButton"), o && o.length > 0) {
1228
+ const k = !Array.isArray(ta.value) && ((U = ta.value) == null ? void 0 : U.key) !== "main" ? [] : ta.value;
1229
+ k.push({
1230
+ key: sl.value === "" ? (D = e == null ? void 0 : e.id) == null ? void 0 : D.toString() : sl.value + "-" + ((m = e == null ? void 0 : e.id) == null ? void 0 : m.toString()),
1231
+ value: e[(J = Object.keys(e)) == null ? void 0 : J.filter((h) => h !== "index" && h !== "id")[0]]
1232
+ }), Il.setSelectMenu(sl.value === "" ? (F = e == null ? void 0 : e.id) == null ? void 0 : F.toString() : sl.value + "-" + ((K = e == null ? void 0 : e.id) == null ? void 0 : K.toString())), Il.setSelectTitle(k), Il.setSelectIndex((n = e == null ? void 0 : e.id) == null ? void 0 : n.toString()), Q("pageChange", o);
1233
+ }
1234
+ }, _a = async (e, l, r, a) => {
1235
+ var o, i, t, c, p, b, O, z, g, U, D, m, J, F, K, n, k, h, A, T, Z, L, x, R, S;
1236
+ if (Q("clickMainKey", r), (a == null ? void 0 : a.isExistChild) === !0) {
1237
+ let E = (i = (o = q.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[E], d = (p = (c = a == null ? void 0 : a.columnType) == null ? void 0 : c.childPath) == null ? void 0 : p.split(ge), N = [];
1238
+ d == null || d.forEach((P, y) => {
1239
+ (d == null ? void 0 : d.length) - 1 === y && N.push(C), N.push(P);
1240
+ }), N = N.join(ge);
1241
+ let M = await ol(N, sessionStorage.getItem("systemKey"), ""), ae = await ol((b = a == null ? void 0 : a.columnType) == null ? void 0 : b.childPath, sessionStorage.getItem("systemKey"), "");
1242
+ if (!M || (M == null ? void 0 : M.length) === 0) {
1243
+ let P = [];
1244
+ ae == null || ae.forEach((W) => {
1245
+ var je, Ae, _, f;
1246
+ let se = {
1247
+ type: "structure",
1248
+ pageKey: N,
1249
+ version: 1,
1250
+ systemKey: sessionStorage.getItem("systemKey"),
1251
+ parentTable: "",
1252
+ createUserId: (je = xe.value) == null ? void 0 : je.id,
1253
+ parentPageKey: "",
1254
+ createUserLayer: ((Ae = xe.value) == null ? void 0 : Ae.dept) || ((_ = xe.value) == null ? void 0 : _.部门名称)
1255
+ }, Te = {
1256
+ pageData: {
1257
+ comp: W == null ? void 0 : W.comp,
1258
+ compData: (f = W == null ? void 0 : W.compData) == null ? void 0 : f.filter((ce) => (ce == null ? void 0 : ce.key) !== "tableContents"),
1259
+ name: W == null ? void 0 : W.name,
1260
+ isShow: W == null ? void 0 : W.isShow
1261
+ }
1262
+ };
1263
+ P.push({
1264
+ key: se,
1265
+ value: Te
1266
+ });
1267
+ }), (P == null ? void 0 : P.length) > 0 && await ha({
1268
+ dataList: P
1269
+ });
1270
+ let y = await ol(N, sessionStorage.getItem("systemKey"), "");
1271
+ ea.value = y;
1272
+ } else
1273
+ ea.value = M;
1274
+ Q("routeUrl", ea.value, {
1275
+ isEdit: !0,
1276
+ routerUrl: N
1277
+ });
1278
+ return;
1279
+ }
1280
+ if ((a == null ? void 0 : a.data) === "查看" && (e != null && e.every((E) => (E == null ? void 0 : E.url) && (E == null ? void 0 : E.name)))) {
1281
+ let E = H(e);
1282
+ E = await ((O = H(E)) == null ? void 0 : O.map(async (d) => {
1283
+ var ae, P, y, W;
1284
+ const N = await ya({
1285
+ url: d == null ? void 0 : d.url
1286
+ });
1287
+ let M = URL.createObjectURL(N.data);
1288
+ return {
1289
+ name: (d == null ? void 0 : d.name) + "." + ((W = (ae = d == null ? void 0 : d.url) == null ? void 0 : ae.split(".")) == null ? void 0 : W[((y = (P = d == null ? void 0 : d.url) == null ? void 0 : P.split(".")) == null ? void 0 : y.length) - 1]),
1290
+ blobUrl: M
1291
+ };
1292
+ }));
1293
+ let C = await Promise.all(E);
1294
+ _e.value = C, v.value = !0;
1295
+ }
1296
+ const u = H(q.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 E = H(le).value + ge + (a == null ? void 0 : a.data), C = H(le).value, d = (U = (g = yl.value[E]) == null ? void 0 : g.filter((P) => {
1300
+ var y, W;
1301
+ return ((y = P == null ? void 0 : P.key) == null ? void 0 : y.type) === "structure" && ((W = P == null ? void 0 : P.key) == null ? void 0 : W.parentTable) === "";
1302
+ })) == null ? void 0 : U.map((P) => {
1303
+ var y;
1304
+ return (y = P == null ? void 0 : P.value) == null ? void 0 : y.pageData;
1305
+ }), N = {};
1306
+ (D = q.value) == null || D.forEach((P) => {
1307
+ (P == null ? void 0 : P.label) !== "操作" && (N[P.label] = r[P.prop] ?? r[P.label]);
1308
+ });
1309
+ let M = (J = (m = s == null ? void 0 : s.itemData) == null ? void 0 : m.find((P) => (P == null ? void 0 : P.key) === "mainRouters")) == null ? void 0 : J.contents, ae;
1310
+ if ((M == null ? void 0 : M.length) > 0) {
1311
+ let P = E == null ? void 0 : E.split(ge)[((F = E == null ? void 0 : E.split(ge)) == null ? void 0 : F.length) - 1], y = M == null ? void 0 : M.find((W) => (W == null ? void 0 : W.key) === P);
1312
+ ae = (y == null ? void 0 : y.routerContent) + ge + (y == null ? void 0 : y.key);
1313
+ }
1314
+ if ((d == null ? void 0 : d.length) > 0)
1315
+ await ol(E + ge + `updateLoading${((K = xe.value) == null ? void 0 : K.account) || ((n = xe.value) == null ? void 0 : n.账号)}`, sessionStorage.getItem("systemKey"), "") || await na(E, E + ge + `updateLoading${((k = xe.value) == null ? void 0 : k.account) || ((h = xe.value) == null ? void 0 : h.账号)}`, N, ae), De.setRouteToChildPath(C), w.setActiveMenuPath(E + ge + `updateLoading${((A = xe.value) == null ? void 0 : A.account) || ((T = xe.value) == null ? void 0 : T.账号)}`);
1316
+ else {
1317
+ (Z = u == null ? void 0 : u[0]) == null || Z.prop;
1318
+ let P = H(le).value + ge + (a == null ? void 0 : a.data), y = H(le).value;
1319
+ await ol(y + ge, sessionStorage.getItem("systemKey"), ""), await na(y + ge, P, N), await na(P, P + ge + `updateLoading${((L = xe.value) == null ? void 0 : L.account) || ((x = xe.value) == null ? void 0 : x.账号)}`, N, ae), De.setRouteToChildPath(y), w.setActiveMenuPath(P + ge + `updateLoading${((R = xe.value) == null ? void 0 : R.account) || ((S = xe.value) == null ? void 0 : S.账号)}`);
1320
+ }
1321
+ }
1322
+ }, wr = () => {
1323
+ v.value = !1;
1324
+ }, Nr = (e) => {
1325
+ Q("rowClick", e);
1326
+ };
1327
+ We(
1328
+ () => s.changedContent,
1329
+ () => {
1330
+ var r, a;
1331
+ if (!s.changedContent) return;
1332
+ let e = (r = V.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
+ V.value = e, Q("contentChange", {
1341
+ contents: l,
1342
+ index: s.index
1343
+ }), Q("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 Mr = () => {
1353
+ }, Kr = async () => {
1354
+ const e = le.value, l = sessionStorage.getItem("systemKey"), r = await ol(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 Al.post(e, r, {
1360
+ headers: {
1361
+ Authorization: l
1362
+ }
1363
+ }).catch((u) => (w.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, k, h, A, T, Z;
1370
+ w.setImportLoading(!0), De.setFreshContent(!1);
1371
+ let a = await Kr().catch((L) => (w.setImportLoading(!1), Promise.reject(L)));
1372
+ a = a == null ? void 0 : a.filter((L) => {
1373
+ var x;
1374
+ return ((x = L == null ? void 0 : L.find((R) => R == null ? void 0 : R.id)) == null ? void 0 : x.id) === (l == null ? void 0 : l.id);
1375
+ });
1376
+ let u = Ia([(F = q.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 x = L == null ? void 0 : L.key;
1379
+ return x === "算法体" || x === "方法体";
1380
+ }), i = o == null ? void 0 : o.value;
1381
+ if (!i) {
1382
+ console.log("未搜索到isMain, 缺少算法执行接口"), w.setImportLoading(!1);
1383
+ return;
1384
+ }
1385
+ const t = q.value ? Ia([q.value]) : [], c = t.find((L) => {
1386
+ const x = L == null ? void 0 : L.prop;
1387
+ return x === "输入" || x === "输入数据.输入1" || x === "样本输入数据";
1388
+ }), p = c == null ? void 0 : c.prop;
1389
+ let b = l == null ? void 0 : l[p];
1390
+ const O = await da().catch((L) => (w.setImportLoading(!1), Promise.reject(L))), z = await Fr(i, {
1391
+ token: O,
1392
+ inputData: b
1393
+ }).catch((L) => (w.setImportLoading(!1), Promise.reject(L))), g = (k = z == null ? void 0 : z.data) == null ? void 0 : k.data, U = t.find((L) => (L == null ? void 0 : L.prop) === "输出数据.输出1"), D = U == null ? void 0 : U.prop;
1394
+ let m = [], J = [];
1395
+ if (((h = Object.values(g)) == null ? void 0 : h.length) > 0) {
1396
+ let L = [];
1397
+ const x = new FormData(), R = (A = zr(g)) == null ? void 0 : A.map(async (E) => {
1398
+ var C, d;
1399
+ if (!Array.isArray(E) && (E != null && E.includes("http"))) {
1400
+ let N = await Al.get(E, { responseType: "blob" }), M = (d = E == null ? void 0 : E.split("/")) == null ? void 0 : d[((C = E == null ? void 0 : E.split("/")) == null ? void 0 : C.length) - 1];
1401
+ x.append("files", N.data, M);
1402
+ } else
1403
+ L.push(E);
1404
+ });
1405
+ if (await Promise.all(R), !$n(x)) {
1406
+ let E = await mn(x), C = (Z = (T = E == null ? void 0 : E.data) == null ? void 0 : T.result) == null ? void 0 : Z.map((d) => {
1407
+ var N, M, ae, P, y, W;
1408
+ return {
1409
+ name: (W = (y = (P = (N = d == null ? void 0 : d.url) == null ? void 0 : N.split("/")) == null ? void 0 : P[((ae = (M = d == null ? void 0 : d.url) == null ? void 0 : M.split("/")) == null ? void 0 : ae.length) - 1]) == null ? void 0 : y.split(".")) == null ? void 0 : W[0],
1410
+ url: d == null ? void 0 : d.url
1411
+ };
1412
+ });
1413
+ L = [...L, ...C];
1414
+ }
1415
+ let S = {};
1416
+ for (let E in l)
1417
+ E !== "id" && (S[E] = l[E]);
1418
+ S[D] = L, J.push({
1419
+ id: l == null ? void 0 : l.id,
1420
+ value: {
1421
+ tableData: S
1422
+ }
1423
+ });
1424
+ }
1425
+ (J == null ? void 0 : J.length) > 0 && await gn({
1426
+ dataList: J
1427
+ }), (m == null ? void 0 : m.length) > 0 && await ha({
1428
+ dataList: m
1429
+ }), Ml(!0), w.setImportLoading(!1), De.setFreshContent(!0);
1430
+ }, xa = (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 = xa(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) && (Q("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, p, b, O, z, g, U, D, m, J;
1469
+ if (nl.value = "", Yl.value = !0, Ql.value = !0, Q("onButtonClick", e, l), e === "删除")
1470
+ Ya.confirm("是否确认删除", "温馨提示", {
1471
+ confirmButtonText: "确认",
1472
+ cancelButtonText: "取消",
1473
+ type: "warning"
1474
+ }).then(() => {
1475
+ var F, K;
1476
+ (F = V.value) != null && F.find((n) => (n == null ? void 0 : n.id) === (l == null ? void 0 : l.id)) ? V.value = (K = H(V.value)) == null ? void 0 : K.filter((n) => (n == null ? void 0 : n.id) !== (l == null ? void 0 : l.id)) : V.value = xa(H(V.value), l), tu(Zl.value, sl.value, l == null ? void 0 : l.id), De.setTableLoading(s == null ? void 0 : s.index), Q("change", {
1477
+ content: V.value,
1478
+ singleContent: l,
1479
+ index: s == null ? void 0 : s.index,
1480
+ type: "delete",
1481
+ buttonName: e,
1482
+ column: q.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((k) => k.id);
1496
+ V.value = (n = H(V.value)) == null ? void 0 : n.filter((k) => !(F != null && F.includes(k.id))), De.setTableLoading(s == null ? void 0 : s.index), Q("change", {
1497
+ content: V.value,
1498
+ singleContent: null,
1499
+ selectItems: el.value,
1500
+ index: s == null ? void 0 : s.index,
1501
+ type: "batchDelete",
1502
+ buttonName: e,
1503
+ column: q.value
1504
+ });
1505
+ }
1506
+ );
1507
+ } else if (e === "复制新增") {
1508
+ Ze.value = "新增";
1509
+ const F = H(l), K = (u = q.value) == null ? void 0 : u.find((h) => h == null ? void 0 : h.isMainKey), n = K || ((o = q.value) == null ? void 0 : o[0]), k = (i = bl.value) == null ? void 0 : i.find((h) => (h == null ? void 0 : h.label) === "新建");
1510
+ await Oa(!0, k, { data: F, firstCol: n });
1511
+ } else if (e === "新增")
1512
+ Ze.value = "新增", Nl(""), ul.value = !0;
1513
+ else if (e === "编辑")
1514
+ Ze.value = "编辑", Nl(l), ul.value = !0;
1515
+ else if (e === "查看")
1516
+ Ze.value = "查看", Nl(l), Yl.value = !1, Ql.value = !1, ul.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, Xl.value = !0;
1525
+ else if (e === "新建") {
1526
+ let F = yl.value, K = [];
1527
+ for (let T in F)
1528
+ T != null && T.includes(`loading${((p = xe.value) == null ? void 0 : p.account) || ((b = xe.value) == null ? void 0 : b.账号)}`) && (K = [...K, ...T]);
1529
+ let n = [];
1530
+ for (let T in F)
1531
+ T != null && T.includes(`updateLoading${((O = xe.value) == null ? void 0 : O.account) || ((z = xe.value) == null ? void 0 : z.账号)}`) && (n = [...n, ...T]);
1532
+ let k = K == null ? void 0 : K.map((T) => T == null ? void 0 : T.id);
1533
+ const h = n == null ? void 0 : n.map((T) => T == null ? void 0 : T.id);
1534
+ k = [...H(k), ...h], (k == null ? void 0 : k.length) > 0 && (k != null && k.every((T) => T !== null && T)) && await qa({
1535
+ ids: k
1536
+ });
1537
+ const A = (g = bl.value) == null ? void 0 : g.find((T) => (T == null ? void 0 : T.label) === "新建");
1538
+ await Oa(!1, A);
1539
+ } else if (e === "修改模板") {
1540
+ let F = H(le).value;
1541
+ De.setRouteToChildPath(F), w.setActiveMenuPath(F + ge);
1542
+ } else if (e === "执行")
1543
+ Jr(e, l);
1544
+ else if (e != null && e.includes("导出")) {
1545
+ if (e === "导出选中" && ((U = el.value) == null ? void 0 : U.length) === 0)
1546
+ return Je.warning(`请先勾选${e}的数据`);
1547
+ if (e === "导出全部" && ((D = V.value) == null ? void 0 : D.length) === 0)
1548
+ return Je.warning("暂无数据导出");
1549
+ const F = (J = (m = q.value) == null ? void 0 : m.map((n) => n == null ? void 0 : n.label)) == null ? void 0 : J.filter((n) => n !== "操作"), K = e === "导出全部" ? H(V.value) : H(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 Dl({
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 p;
1566
+ return {
1567
+ id: c == null ? void 0 : c.id,
1568
+ ...(p = c == null ? void 0 : c.value) == null ? void 0 : p.pageData
1569
+ };
1570
+ }) : [];
1571
+ }, Gr = async (e, l) => {
1572
+ var r, a, u, o, i, t, c, p, b, O, z, g, U, D, m, J, F, K, n, k;
1573
+ try {
1574
+ let h, A;
1575
+ const T = (r = yl.value[le.value + ge]) == null ? void 0 : r.filter((d) => {
1576
+ var N;
1577
+ return ((N = d == null ? void 0 : d.key) == null ? void 0 : N.type) === "structureMethod";
1578
+ }), Z = (a = yl.value[le.value + ge]) == null ? void 0 : a.filter((d) => {
1579
+ var N;
1580
+ return ((N = d == null ? void 0 : d.key) == null ? void 0 : N.type) === "structure";
1581
+ }), L = T == null ? void 0 : T.find((d) => {
1582
+ var N, M;
1583
+ return ((M = (N = d == null ? void 0 : d.value) == null ? void 0 : N.pageData) == null ? void 0 : M.method) === "保存";
1584
+ });
1585
+ if (!L) return;
1586
+ const x = (t = (i = yl.value[(o = (u = L == null ? void 0 : L.value) == null ? void 0 : u.pageData) == null ? void 0 : o.path]) == null ? void 0 : i.filter((d) => {
1587
+ var N;
1588
+ return ((N = d == null ? void 0 : d.key) == null ? void 0 : N.type) === "data";
1589
+ })) == null ? void 0 : t.find((d) => {
1590
+ var N, M, ae, P;
1591
+ return ((M = (N = d == null ? void 0 : d.value) == null ? void 0 : N.tableData) == null ? void 0 : M.算法名称) === ((P = (ae = L == null ? void 0 : L.value) == null ? void 0 : ae.pageData) == null ? void 0 : P.method);
1592
+ });
1593
+ if (!x) return;
1594
+ const R = {
1595
+ buttonName: (p = (c = L == null ? void 0 : L.value) == null ? void 0 : c.pageData) == null ? void 0 : p.method,
1596
+ api: (O = (b = x == null ? void 0 : x.value) == null ? void 0 : b.tableData) == null ? void 0 : O.算法体,
1597
+ content: Z == null ? void 0 : Z.map((d) => {
1598
+ var N;
1599
+ return (N = d == null ? void 0 : d.value) == null ? void 0 : N.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: (D = (U = L == null ? void 0 : L.value) == null ? void 0 : U.pageData) == null ? void 0 : D.path
1604
+ };
1605
+ if (!e) return;
1606
+ const S = {
1607
+ ...e,
1608
+ compData: (m = e == null ? void 0 : e.compData) == null ? void 0 : m.map((d) => {
1609
+ var N;
1610
+ return (d == null ? void 0 : d.key) === "formContent" ? {
1611
+ ...d,
1612
+ contents: (N = d == null ? void 0 : d.contents) == null ? void 0 : N.map((M) => (M == null ? void 0 : M.prop) === l ? {
1613
+ ...M,
1614
+ value: ""
1615
+ } : M)
1616
+ } : d;
1617
+ })
1618
+ }, E = {
1619
+ key: {
1620
+ pageKey: le.value + ge,
1621
+ parentTable: "",
1622
+ systemKey: sessionStorage.getItem("systemKey"),
1623
+ type: "structure"
1624
+ },
1625
+ value: {
1626
+ pageData: S
1627
+ }
1628
+ }, C = await Al.post(R.api, E, {
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, A = (k = (n = C == null ? void 0 : C.data) == null ? void 0 : n.result) == null ? void 0 : k.status), {
1634
+ newMainKeyValue: h,
1635
+ newStatus: A
1636
+ };
1637
+ } catch (h) {
1638
+ throw Je.error(h), new Error(h);
1639
+ }
1640
+ }, Ca = (e, l, r, a) => {
1641
+ var u;
1642
+ Q("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
+ } : wl.value && (t == null ? void 0 : t.prop) === wl.prop ? {
1651
+ ...t,
1652
+ value: wl.value
1653
+ } : t)
1654
+ } : o;
1655
+ }),
1656
+ index: e == null ? void 0 : e.id
1657
+ }, a);
1658
+ }, wl = zl({
1659
+ prop: "状态",
1660
+ value: ""
1661
+ }), Hr = G(["系统自动生成信息", "审批意见"]), Qr = async (e, l, r) => {
1662
+ var c, p;
1663
+ let a = e == null ? void 0 : e[l == null ? void 0 : l.prop], u = 1, o, i;
1664
+ const t = H(le).value + ge + a;
1665
+ if (t) {
1666
+ wl.value = "", o = (c = yl.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 b = o == null ? void 0 : o.find((z) => {
1671
+ var g, U, D;
1672
+ return ((D = (U = (g = z == null ? void 0 : z.value) == null ? void 0 : g.pageData) == null ? void 0 : U.comp) == null ? void 0 : D.toUpperCase()) === "FORM";
1673
+ });
1674
+ i = {
1675
+ ...(p = b == null ? void 0 : b.value) == null ? void 0 : p.pageData,
1676
+ id: b == null ? void 0 : b.id
1677
+ };
1678
+ const O = await Gr(i, l == null ? void 0 : l.prop);
1679
+ if (wl.value = O == null ? void 0 : O.newStatus, O != null && O.newMainKeyValue) return O == null ? void 0 : O.newMainKeyValue;
1680
+ }
1681
+ if (V.value.some((b) => (b == null ? void 0 : b[l == null ? void 0 : l.prop]) === a)) {
1682
+ const b = a;
1683
+ for (; V.value.some((O) => (O == null ? void 0 : O[l == null ? void 0 : l.prop]) === `${b}(${u})`); )
1684
+ u++;
1685
+ a = `${b}(${u})`;
1686
+ }
1687
+ return a;
1688
+ }, Oa = async (e, l, r) => {
1689
+ var i, t, c, p, b, O, z, g;
1690
+ let a, u;
1691
+ const o = await Qr(r == null ? void 0 : r.data, r == null ? void 0 : r.firstCol);
1692
+ if (e ? (a = H(le).value + ge + ((p = r == null ? void 0 : r.data) == null ? void 0 : p[(c = r == null ? void 0 : r.firstCol) == null ? void 0 : c.prop]), u = H(le).value + ge + o) : (a = H(le).value + ge, u = H(a) + `loading${((i = xe.value) == null ? void 0 : i.account) || ((t = xe.value) == null ? void 0 : t.账号)}`), l) {
1693
+ const U = (O = (b = yl.value[u]) == null ? void 0 : b.filter((D) => {
1694
+ var m;
1695
+ return ((m = D == null ? void 0 : D.key) == null ? void 0 : m.parentTable) === "";
1696
+ })) == null ? void 0 : O.map((D) => {
1697
+ var m;
1698
+ return {
1699
+ id: D == null ? void 0 : D.id,
1700
+ ...(m = D == null ? void 0 : D.value) == null ? void 0 : m.pageData
1701
+ };
1702
+ });
1703
+ if ((U == null ? void 0 : U.length) > 0)
1704
+ if (e) {
1705
+ const D = U == null ? void 0 : U.find((m) => {
1706
+ var J;
1707
+ return ((J = m == null ? void 0 : m.comp) == null ? void 0 : J.toUpperCase()) === "FORM";
1708
+ });
1709
+ D && Ca(D, (z = r == null ? void 0 : r.firstCol) == null ? void 0 : z.label, o, le.value);
1710
+ } else
1711
+ De.setRouteToChildPath(H(le).value), w.setActiveMenuPath(u);
1712
+ else if (await na(a, u, null, null, e ? Hr.value : null), e) {
1713
+ const D = await qr(u);
1714
+ if ((D == null ? void 0 : D.length) > 0) {
1715
+ const m = D == null ? void 0 : D.find((J) => {
1716
+ var F;
1717
+ return ((F = J == null ? void 0 : J.comp) == null ? void 0 : F.toUpperCase()) === "FORM";
1718
+ });
1719
+ m && Ca(m, (g = r == null ? void 0 : r.firstCol) == null ? void 0 : g.label, o, le.value);
1720
+ }
1721
+ } else
1722
+ De.setRouteToChildPath(H(le).value), w.setActiveMenuPath(u);
1723
+ } else
1724
+ e ? (nl.value = "", Fe.value = r == null ? void 0 : r.data, Ml(!0, r == null ? void 0 : r.firstCol, o)) : (De.setRouteToChildPath(H(le).value), w.setActiveMenuPath(u));
1725
+ }, Xr = () => {
1726
+ oe.value = !1, $l.value = [], Me.value = !1;
1727
+ }, Nl = (e) => {
1728
+ var i, t, c, p, b, O, z, g, U, D, m, 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 = H(q.value), (t = Rl((i = H(q.value)) == null ? void 0 : i.filter((n) => (n == null ? void 0 : n.label) !== "操作"))) == null || t.forEach((n, k) => {
1734
+ var h;
1735
+ r.find((A) => A === (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" + k,
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) ?? k,
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
+ }
1752
+ }) : l.push({
1753
+ label: (n == null ? void 0 : n.prop) || (n == null ? void 0 : n.label) || "",
1754
+ prop: n == null ? void 0 : n.prop,
1755
+ name: (n == null ? void 0 : n.prop) ?? "t" + k,
1756
+ type: !(n != null && n.formType) || (n == null ? void 0 : n.formType) === "" ? "Input" : n == null ? void 0 : n.formType,
1757
+ value: (e == null ? void 0 : e[n == null ? void 0 : n.prop]) ?? (n == null ? void 0 : n.value) ?? "",
1758
+ id: (n == null ? void 0 : n.id) ?? k,
1759
+ contents: (n == null ? void 0 : n.options) ?? [],
1760
+ width: 1,
1761
+ isFormColHidden: n == null ? void 0 : n.isFormColHidden,
1762
+ disabled: n == null ? void 0 : n.disabled
1763
+ }));
1764
+ }), e === "" || !e || (nl.value = (e == null ? void 0 : e.id) ?? "");
1765
+ let a = Rl((c = H(q.value)) == null ? void 0 : c.filter((n) => (n == null ? void 0 : n.label) !== "操作"));
1766
+ Qe.value && ((p = Qe.value) == null ? void 0 : p.length) > 0 && (Qe.value = (b = H(Qe).value) == null ? void 0 : b.map((n) => {
1767
+ var h;
1768
+ let k = (n == null ? void 0 : n.prop) || ((h = a == null ? void 0 : a.find((A) => (A == null ? void 0 : A.label) === (n == null ? void 0 : n.label))) == null ? void 0 : h.prop);
1769
+ return k && (n.value = e[k]), n;
1770
+ })), Pe.value = Qe.value && ((O = Qe.value) == null ? void 0 : O.length) > 0 ? jn(Qe.value) : l;
1771
+ let u = [], o = (z = s.itemData) == null ? void 0 : z.filter((n) => (n == null ? void 0 : n.key) === "filterAllType");
1772
+ if ((o == null ? void 0 : o.length) > 0 && (u = (o == null ? void 0 : o.map((k) => k == null ? void 0 : k.value)).flat()), (u == null ? void 0 : u.length) > 0) {
1773
+ let n = u == null ? void 0 : u.find((k) => {
1774
+ var h;
1775
+ return (h = k == null ? void 0 : k.content) == null ? void 0 : h.includes("@Type");
1776
+ });
1777
+ if (n != null && n.content) {
1778
+ let k = (D = (U = (g = n == null ? void 0 : n.content) == null ? void 0 : g.replace(":", al)) == null ? void 0 : U.split(al)) == null ? void 0 : D[1];
1779
+ if (((m = k == null ? void 0 : k.trim()) == null ? void 0 : m.toUpperCase()) === "MANUAL") {
1780
+ let h = (F = (J = s.itemData) == null ? void 0 : J.find((A) => (A == null ? void 0 : A.key) === "contentTableId")) == null ? void 0 : F.contents;
1781
+ Pe.value = (K = Pe.value) == null ? void 0 : K.map((A, T) => {
1782
+ var Z;
1783
+ return T === 0 && (A.type = "Select", (Z = A == null ? void 0 : A.optionUrl) != null && Z.menuId ? (A.optionUrl.menuId = h, A.optionUrl.menuFilter = u) : A.optionUrl = {
1784
+ menuId: h,
1785
+ menuFilter: u
1786
+ }), A;
1787
+ });
1788
+ }
1789
+ }
1790
+ }
1791
+ }, Yr = () => {
1792
+ var l;
1793
+ const e = (l = $.value) == null ? void 0 : l.$el;
1794
+ e && vn.create(e, {
1795
+ animation: 150,
1796
+ handle: ".col-drag-icon",
1797
+ ghostClass: "sortable-ghost",
1798
+ onEnd: (r) => {
1799
+ var i;
1800
+ const { oldIndex: a, newIndex: u } = r;
1801
+ if (a === u) return;
1802
+ const o = Bl.value.splice(a, 1)[0];
1803
+ Bl.value.splice(u, 0, o), q.value = (i = q.value) == null ? void 0 : i.slice().sort((t, c) => {
1804
+ if (t.label === "操作") return 1;
1805
+ if (c.label === "操作") return -1;
1806
+ const p = Bl.value.findIndex((O) => O.label === t.label), b = Bl.value.findIndex((O) => O.label === c.label);
1807
+ return p - b;
1808
+ });
1809
+ }
1810
+ });
1811
+ };
1812
+ ba(() => {
1813
+ oa.value = window.innerWidth - 240 * 2;
1814
+ });
1815
+ const Zr = () => {
1816
+ ua(() => {
1817
+ Yr();
1818
+ });
1819
+ }, pa = (e, l) => {
1820
+ var a;
1821
+ if (!e && !(e != null && e.children)) return {
1822
+ contents: e,
1823
+ currentSelectContents: void 0
1824
+ };
1825
+ let r;
1826
+ return e.children = (a = e.children) == null ? void 0 : a.map((u) => {
1827
+ var o, i;
1828
+ if ((u == null ? void 0 : u.id) === nl.value) {
1829
+ let t = {};
1830
+ for (let c in u) {
1831
+ let p = (o = l == null ? void 0 : l.find((b) => (b == null ? void 0 : b.prop) === c)) == null ? void 0 : o.label;
1832
+ p ? t[c] = (i = Fe.value) == null ? void 0 : i[p] : t[c] = u[c];
1833
+ }
1834
+ u = Object.assign(t, Fe.value), r = u;
1835
+ } else {
1836
+ let t = pa(u, l);
1837
+ u = t == null ? void 0 : t.contents, r = t == null ? void 0 : t.currentSelectContents;
1838
+ }
1839
+ return u;
1840
+ }), {
1841
+ contents: e,
1842
+ currentSelectContents: r
1843
+ };
1844
+ }, Da = (e, l) => {
1845
+ let r, a;
1846
+ return e != null && e.find((u) => (u == null ? void 0 : u.id) === nl.value) ? r = e == null ? void 0 : e.map((u) => {
1847
+ var o, i;
1848
+ if ((u == null ? void 0 : u.id) === nl.value) {
1849
+ let t = {};
1850
+ for (let c in u) {
1851
+ let p = (o = l == null ? void 0 : l.find((b) => (b == null ? void 0 : b.prop) === c)) == null ? void 0 : o.label;
1852
+ p ? t[c] = (i = Fe.value) == null ? void 0 : i[p] : t[c] = u[c];
1853
+ }
1854
+ u = Object.assign(t, Fe.value), a = u;
1855
+ }
1856
+ return u;
1857
+ }) : r = e == null ? void 0 : e.map((u) => {
1858
+ var o, i, t, c;
1859
+ if ((u == null ? void 0 : u.id) === nl.value) {
1860
+ let p = {};
1861
+ for (let b in u) {
1862
+ let O = (o = l == null ? void 0 : l.find((z) => (z == null ? void 0 : z.prop) === b)) == null ? void 0 : o.label;
1863
+ O ? p[b] = (i = Fe.value) == null ? void 0 : i[O] : p[b] = u[b];
1864
+ }
1865
+ u = Object.assign(p, Fe.value), a = u;
1866
+ } else
1867
+ u = (t = pa(u, l)) == null ? void 0 : t.contents, a = (c = pa(u, l)) == null ? void 0 : c.currentSelectContents;
1868
+ return u;
1869
+ }), {
1870
+ newContents: r,
1871
+ currentSelectContents: a
1872
+ };
1873
+ }, Ea = (e, l, r) => {
1874
+ var a, u;
1875
+ 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;
1876
+ }, fa = (e) => {
1877
+ var r;
1878
+ const l = [];
1879
+ return l.push({ ...e }), e != null && e.children && Array.isArray(e.children) && ((r = e.children) == null || r.forEach((a) => {
1880
+ l.push(...fa(a));
1881
+ })), (l == null ? void 0 : l.length) > 0 ? l == null ? void 0 : l.map((a) => {
1882
+ const u = { ...a };
1883
+ return delete u.children, u;
1884
+ }) : [];
1885
+ }, Ml = (e = !0, l, r) => {
1886
+ var p, b, O, z, g, U, D, m, J, F, K, n, k, h, A, T, Z, L, x, R, S, E;
1887
+ let a = Rl((p = H(q.value)) == null ? void 0 : p.filter((C) => (C == null ? void 0 : C.label) !== "操作")), u, o = H(V.value);
1888
+ if (!Fe.value) {
1889
+ ul.value = !1;
1890
+ return;
1891
+ }
1892
+ if (nl.value === "") {
1893
+ Ul.value++;
1894
+ let C;
1895
+ l && r ? C = {
1896
+ id: Ul.value.toString(),
1897
+ [l == null ? void 0 : l.prop]: r,
1898
+ children: Fe.value.children
1899
+ } : C = { id: Ul.value.toString() }, C != null && C.children && (C = {
1900
+ ...C,
1901
+ children: (b = C.children) == null ? void 0 : b.map((d) => Ea(d, l, r))
1902
+ }), o.push(Object.assign(Fe.value, C)), u = Object.assign(Fe.value, C);
1903
+ } else
1904
+ o = (O = Da(o, a)) == null ? void 0 : O.newContents, u = (z = Da(o, a)) == null ? void 0 : z.currentSelectContents;
1905
+ const i = (g = s.itemData) == null ? void 0 : g.filter((C) => (C == null ? void 0 : C.key) === "childTree")[0];
1906
+ if (((U = i == null ? void 0 : i.contents) == null ? void 0 : U.length) > 0) {
1907
+ Ze.value = "编辑";
1908
+ const C = [];
1909
+ o == null || o.forEach((d, N) => {
1910
+ var ae;
1911
+ let M = {};
1912
+ if (Array.isArray(d)) {
1913
+ let P = [];
1914
+ d == null || d.filter((y) => !(y != null && y.id)).forEach((y, W) => {
1915
+ var se, Te, je, Ae, _, f, ce;
1916
+ if ((Te = (se = Ie.value) == null ? void 0 : se[W]) != null && Te.prop && !Array.isArray(y)) {
1917
+ let he = {};
1918
+ he[Ie.value[W].column] = y, ke != null && ke.value && ((je = ke == null ? void 0 : ke.value) == null ? void 0 : je.length) > 0 && ((Ae = ke == null ? void 0 : ke.value) != null && Ae.find((ie) => JSON.stringify(ie == null ? void 0 : ie[0]) === JSON.stringify(he))) && (P = (_ = ke == null ? void 0 : ke.value) == null ? void 0 : _.find((ie) => JSON.stringify(ie == null ? void 0 : ie[0]) === JSON.stringify(he))), P && P.length > 0 ? M[Ie.value[W].prop] = P != null && P.find((ie) => {
1919
+ var me;
1920
+ return ((me = Object.keys(ie)) == null ? void 0 : me[0]) === Ie.value[W].column;
1921
+ }) ? (f = P == null ? void 0 : P.find((ie) => {
1922
+ var me;
1923
+ return ((me = Object.keys(ie)) == null ? void 0 : me[0]) === Ie.value[W].column;
1924
+ })) == null ? void 0 : f[Ie.value[W].column] : y : M[Ie.value[W].prop] = y;
1925
+ } else Array.isArray(y) && ((ce = Ie.value[W]) != null && ce.prop ? M[Ie.value[W].prop] = y : M.children = va(y, Ie.value));
1926
+ });
1927
+ } else
1928
+ M = d;
1929
+ Array.isArray(d) && d.some((P) => P == null ? void 0 : P.id) ? C.push(Object.assign(M, { id: (ae = d == null ? void 0 : d.find((P) => P.id)) == null ? void 0 : ae.id })) : M.id ? C.push(M) : C.push(Object.assign(M, { id: N.toString() }));
1930
+ }), V.value = Ba(C, i, q.value);
1931
+ } else
1932
+ V.value = o;
1933
+ $a(V.value), Zl.value = V.value;
1934
+ const t = du(Zl.value, sl.value, o);
1935
+ let c = [];
1936
+ if (jl.value ? (c = (D = H(jl).value.singleContent) == null ? void 0 : D.filter((C) => (C == null ? void 0 : C.id) !== (u == null ? void 0 : u.id)), c.push(u)) : c = [u], Ve.value) {
1937
+ const C = {
1938
+ content: t,
1939
+ singleContent: ((m = i == null ? void 0 : i.contents) == null ? void 0 : m.length) > 0 ? c == null ? void 0 : c.flatMap(fa) : c,
1940
+ index: s == null ? void 0 : s.index,
1941
+ buttonName: "编辑",
1942
+ column: q.value,
1943
+ parentTableId: s == null ? void 0 : s.parentTableId
1944
+ };
1945
+ De.setCacheUpdatingData(C);
1946
+ }
1947
+ if (e && !((K = (F = (J = Pe.value) == null ? void 0 : J[0]) == null ? void 0 : F.optionUrl) != null && K.menuId)) {
1948
+ const C = {
1949
+ content: t,
1950
+ singleContent: ((n = i == null ? void 0 : i.contents) == null ? void 0 : n.length) > 0 ? fa(u) : u,
1951
+ index: s == null ? void 0 : s.index,
1952
+ buttonName: Ze.value,
1953
+ column: q.value,
1954
+ parentTableId: s == null ? void 0 : s.parentTableId
1955
+ };
1956
+ De.setTableLoading(s == null ? void 0 : s.index), ul.value = !1, Fe.value = void 0, Q("change", C);
1957
+ }
1958
+ if ((A = (h = (k = Pe.value) == null ? void 0 : k[0]) == null ? void 0 : h.optionUrl) != null && A.menuId) {
1959
+ ul.value = !1;
1960
+ let C = (T = s.itemData) == null ? void 0 : T.filter((d) => (d == null ? void 0 : d.key) === "filterAllType");
1961
+ if ((C == null ? void 0 : C.length) > 0) {
1962
+ let N = (x = (L = (Z = (C == null ? void 0 : C.map((M) => M == null ? void 0 : M.value)).flat().find((M) => {
1963
+ var ae;
1964
+ return (ae = M == null ? void 0 : M.content) == null ? void 0 : ae.includes("@Num");
1965
+ })) == null ? void 0 : Z.content) == null ? void 0 : L.split(":")) == null ? void 0 : x[1];
1966
+ N = parseInt(N), V.value = (E = V.value) == null ? void 0 : E.slice(((R = V.value) == null ? void 0 : R.length) - N, (S = V.value) == null ? void 0 : S.length);
1967
+ }
1968
+ }
1969
+ };
1970
+ dn(() => {
1971
+ q.value = [], V.value = [], Ge.value = [], Y.value = [], Qe.value = [], vl.value = [], $l.value = [], _l.value = [], Pe.value = [], el.value = [], $.value = null;
1972
+ });
1973
+ const ja = async (e, l, r) => {
1974
+ var p, b, O, z, g, U, D, m, J, F, K;
1975
+ kl.value = r == null ? void 0 : r.prop;
1976
+ const a = H(s.itemData), u = a == null ? void 0 : a.map((n) => {
1977
+ var k;
1978
+ return (n == null ? void 0 : n.key) === "header" && ((k = n.contents) == null || k.map((h, A) => {
1979
+ var T, Z, L, x, R, S, E, C, d, N, M, ae, P, y, W, se, Te, je, Ae;
1980
+ return h.type = h != null && h.type ? h.type : (x = (L = (Z = (T = h == null ? void 0 : h.key) == null ? void 0 : T.split("$")) == null ? void 0 : Z[1]) == null ? void 0 : L.split("(")) != null && x[0] ? (S = (R = Za) == null ? void 0 : R.find((_) => {
1981
+ var f, ce, he, ie;
1982
+ return (_ == null ? void 0 : _.key) === ((ie = (he = (ce = (f = h == null ? void 0 : h.key) == null ? void 0 : f.split("$")) == null ? void 0 : ce[1]) == null ? void 0 : he.split("(")) == null ? void 0 : ie[0]);
1983
+ })) == null ? void 0 : S.value : "Input", h.options = h != null && h.options ? h.options : ((d = (C = (E = h == null ? void 0 : h.key) == null ? void 0 : E.split("$")) == null ? void 0 : C[1]) == null ? void 0 : d.length) > 0 ? (P = (ae = er((M = (N = h == null ? void 0 : h.key) == null ? void 0 : N.split("$")) == null ? void 0 : M[1])) == null ? void 0 : ae.split(",")) == null ? void 0 : P.map((_) => ({
1984
+ label: _,
1985
+ value: _
1986
+ })) : [], (y = h == null ? void 0 : h.key) != null && y.includes("$") && (h.key = (se = (W = h == null ? void 0 : h.key) == null ? void 0 : W.split("$")) == null ? void 0 : se[0]), h.value = (Te = Object.values(l)) == null ? void 0 : Te[A], h.optionUrl = h != null && h.formMenuSelect && ((je = h == null ? void 0 : h.formMenuSelect) == null ? void 0 : je.length) > 0 ? {
1987
+ groupSelect: (Ae = h == null ? void 0 : h.groupSelect) == null ? void 0 : Ae.split(/[::]/).map((_) => _.trim()),
1988
+ menuSelect: h == null ? void 0 : h.formMenuSelect,
1989
+ selectRelateType: "",
1990
+ type: (h == null ? void 0 : h.formType) ?? (h != null && h.groupSelect ? "Select" : "")
1991
+ } : null, h;
1992
+ })), n;
1993
+ });
1994
+ let o = H(Pe.value), i = (b = (p = H(u)) == null ? void 0 : p.find((n) => (n == null ? void 0 : n.key) === "header")) == null ? void 0 : b.contents;
1995
+ o = o == null ? void 0 : o.map((n) => {
1996
+ var k;
1997
+ return n.value = (k = i == null ? void 0 : i.find((h, A) => A === (n == null ? void 0 : n.id))) == null ? void 0 : k.value, n;
1998
+ });
1999
+ let t = "", c = (g = (z = (O = H(u)) == null ? void 0 : O.find((n) => (n == null ? void 0 : n.key) === "header")) == null ? void 0 : z.contents) == null ? void 0 : g.find((n, k) => {
2000
+ var h, A, T;
2001
+ return (n == null ? void 0 : n.label) === kl.value || (k == null ? void 0 : k.toString()) === ((T = (A = (h = kl.value) == null ? void 0 : h.split("a")) == null ? void 0 : A[1]) == null ? void 0 : T.toString());
2002
+ });
2003
+ if ((m = (D = (U = H(u)) == null ? void 0 : U.find((n) => (n == null ? void 0 : n.key) === "header")) == null ? void 0 : D.contents) == null || m.forEach((n) => {
2004
+ var k, h, A, T, Z;
2005
+ t === "" && ((A = (h = (k = n == null ? void 0 : n.optionUrl) == null ? void 0 : k.groupSelect) == null ? void 0 : h[1]) != null && A.includes("[")) && (t = (Z = (T = n == null ? void 0 : n.optionUrl) == null ? void 0 : T.groupSelect) == null ? void 0 : Z[1]);
2006
+ }), (J = c == null ? void 0 : c.optionUrl) != null && J.menuSelect) {
2007
+ let n = await ar(c), k;
2008
+ if (n == null || n.forEach((h) => {
2009
+ var A, T, Z, L, x, R, S, E, C, d;
2010
+ t === ((T = (A = c == null ? void 0 : c.optionUrl) == null ? void 0 : A.groupSelect) == null ? void 0 : T[1]) && ((x = (L = (Z = c == null ? void 0 : c.optionUrl) == null ? void 0 : Z.groupSelect) == null ? void 0 : L[1]) != null && x.includes("[")) && ((d = H(h)) == null ? void 0 : d[(C = (E = (S = (R = c == null ? void 0 : c.optionUrl) == null ? void 0 : R.groupSelect) == null ? void 0 : S[1]) == null ? void 0 : E.replaceAll("[", "")) == null ? void 0 : C.replaceAll("]", "")]) === (c == null ? void 0 : c.value) && (k = h);
2011
+ }), k) {
2012
+ let h = H(o);
2013
+ h = h == null ? void 0 : h.map((T) => {
2014
+ var Z, L, x, R, S, E, C, d, N, M, ae;
2015
+ return (k != null && k[T == null ? void 0 : T.label] || k != null && k[(R = (x = (L = (Z = T == null ? void 0 : T.optionUrl) == null ? void 0 : Z.groupSelect) == null ? void 0 : L[1]) == null ? void 0 : x.replaceAll("[", "")) == null ? void 0 : R.replaceAll("]", "")]) && ((C = (E = (S = T == null ? void 0 : T.optionUrl) == null ? void 0 : S.groupSelect) == null ? void 0 : E[1]) != null && C.includes("[")) && (T.value = (k == null ? void 0 : k[T == null ? void 0 : T.label]) || (k == null ? void 0 : k[(ae = (M = (N = (d = T == null ? void 0 : T.optionUrl) == null ? void 0 : d.groupSelect) == null ? void 0 : N[1]) == null ? void 0 : M.replaceAll("[", "")) == null ? void 0 : ae.replaceAll("]", "")])), T;
2016
+ }), V.value = (F = H(V.value)) == null ? void 0 : F.map((T) => {
2017
+ if ((T == null ? void 0 : T.id) === (l == null ? void 0 : l.id)) {
2018
+ const Z = {};
2019
+ return h == null || h.forEach((L) => {
2020
+ Z[L.name] = L.value;
2021
+ }), Z.id = T == null ? void 0 : T.id, Z;
2022
+ }
2023
+ return T;
2024
+ });
2025
+ let A = H(h);
2026
+ A = A == null ? void 0 : A.map((T) => {
2027
+ var Z, L, x, R;
2028
+ return (L = (Z = T == null ? void 0 : T.optionUrl) == null ? void 0 : Z.menuSelect) != null && L.some((S) => S == null ? void 0 : S.includes) && (T.optionUrl.menuSelect = (R = (x = T == null ? void 0 : T.optionUrl) == null ? void 0 : x.menuSelect) == null ? void 0 : R.map((S) => {
2029
+ var E, C, d, N;
2030
+ if (S != null && S.includes("[")) {
2031
+ let M = (C = (E = S == null ? void 0 : S.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : E.split(":")) == null ? void 0 : C[1];
2032
+ S = (N = (d = H(h)) == null ? void 0 : d.find((ae) => (ae == null ? void 0 : ae.label) === M)) == null ? void 0 : N.value;
2033
+ }
2034
+ return S;
2035
+ })), T;
2036
+ }), V.value = (K = H(V.value)) == null ? void 0 : K.map((T) => {
2037
+ if ((T == null ? void 0 : T.id) === (l == null ? void 0 : l.id)) {
2038
+ const Z = {};
2039
+ return A == null || A.forEach((L) => {
2040
+ Z[L.name] = L.value;
2041
+ }), Z.id = T == null ? void 0 : T.id, Z;
2042
+ }
2043
+ return T;
2044
+ });
2045
+ }
2046
+ }
2047
+ }, Ir = async (e) => {
2048
+ var p, b, O, z, g, U, D, m, J, F, K, n, k, h, A, T, Z, L;
2049
+ if (!e) return;
2050
+ Fe.value = e;
2051
+ const l = H(s.itemData);
2052
+ let r = l == null ? void 0 : l.map((x) => {
2053
+ var R;
2054
+ return (x == null ? void 0 : x.key) === "header" && ((R = x.contents) == null || R.map((S, E) => {
2055
+ var C, d, N, M, ae, P, y, W, se, Te, je, Ae, _, f, ce, he, ie, me, Be;
2056
+ return S.type = S != null && S.type ? S.type : (M = (N = (d = (C = S == null ? void 0 : S.key) == null ? void 0 : C.split("$")) == null ? void 0 : d[1]) == null ? void 0 : N.split("(")) != null && M[0] ? (P = (ae = Za) == null ? void 0 : ae.find((Ne) => {
2057
+ var pl, Re, fl, gl;
2058
+ return (Ne == null ? void 0 : Ne.key) === ((gl = (fl = (Re = (pl = S == null ? void 0 : S.key) == null ? void 0 : pl.split("$")) == null ? void 0 : Re[1]) == null ? void 0 : fl.split("(")) == null ? void 0 : gl[0]);
2059
+ })) == null ? void 0 : P.value : "Input", S.options = S != null && S.options ? S.options : ((se = (W = (y = S == null ? void 0 : S.key) == null ? void 0 : y.split("$")) == null ? void 0 : W[1]) == null ? void 0 : se.length) > 0 ? (_ = (Ae = er((je = (Te = S == null ? void 0 : S.key) == null ? void 0 : Te.split("$")) == null ? void 0 : je[1])) == null ? void 0 : Ae.split(",")) == null ? void 0 : _.map((Ne) => ({
2060
+ label: Ne,
2061
+ value: Ne
2062
+ })) : [], (f = S == null ? void 0 : S.key) != null && f.includes("$") && (S.key = (he = (ce = S == null ? void 0 : S.key) == null ? void 0 : ce.split("$")) == null ? void 0 : he[0]), S.value = (ie = Object.values(e)) == null ? void 0 : ie[E], S.optionUrl = S != null && S.formMenuSelect && ((me = S == null ? void 0 : S.formMenuSelect) == null ? void 0 : me.length) > 0 ? {
2063
+ groupSelect: (Be = S == null ? void 0 : S.groupSelect) == null ? void 0 : Be.split(/[::]/).map((Ne) => Ne.trim()),
2064
+ menuSelect: S == null ? void 0 : S.formMenuSelect,
2065
+ selectRelateType: "",
2066
+ type: (S == null ? void 0 : S.formType) ?? (S != null && S.groupSelect ? "Select" : "")
2067
+ } : null, S;
2068
+ })), x;
2069
+ }), a = Pe.value, u = (b = (p = H(r)) == null ? void 0 : p.find((x) => (x == null ? void 0 : x.key) === "header")) == null ? void 0 : b.contents;
2070
+ if (u = u == null ? void 0 : u.filter((x) => (x == null ? void 0 : x.label) !== "操作"), u.push({
2071
+ label: "操作",
2072
+ type: "operate"
2073
+ }), a = a == null ? void 0 : a.map((x) => {
2074
+ var R;
2075
+ return x.value = x.value ?? ((R = u == null ? void 0 : u.find((S, E) => (S == null ? void 0 : S.prop) === (x == null ? void 0 : x.name))) == null ? void 0 : R.value), x;
2076
+ }), !Pl.value) return;
2077
+ let o = "", i = (g = (z = (O = H(r)) == null ? void 0 : O.find((x) => (x == null ? void 0 : x.key) === "header")) == null ? void 0 : z.contents) == null ? void 0 : g.find((x, R) => {
2078
+ var S, E, C;
2079
+ return (x == null ? void 0 : x.label) === kl.value || (R == null ? void 0 : R.toString()) === ((C = (E = (S = kl.value) == null ? void 0 : S.split("a")) == null ? void 0 : E[1]) == null ? void 0 : C.toString());
2080
+ }), t = (U = i == null ? void 0 : i.optionUrl) == null ? void 0 : U.menuSelect, c = !0;
2081
+ if ((J = (m = (D = H(r)) == null ? void 0 : D.find((x) => (x == null ? void 0 : x.key) === "header")) == null ? void 0 : m.contents) == null || J.forEach((x) => {
2082
+ var R, S, E, C, d, N;
2083
+ c && ((E = (S = (R = x == null ? void 0 : x.optionUrl) == null ? void 0 : R.groupSelect) == null ? void 0 : S[1]) != null && E.includes("[")) && (o = (d = (C = x == null ? void 0 : x.optionUrl) == null ? void 0 : C.groupSelect) == null ? void 0 : d[1], JSON.stringify(t) === JSON.stringify((N = x == null ? void 0 : x.optionUrl) == null ? void 0 : N.menuSelect) && (c = !1));
2084
+ }), (F = i == null ? void 0 : i.optionUrl) != null && F.menuSelect && Pl.value || (k = (n = (K = Pe.value) == null ? void 0 : K[0]) == null ? void 0 : n.optionUrl) != null && k.menuId) {
2085
+ let x = await ar(i, (T = (A = (h = Pe.value) == null ? void 0 : h[0]) == null ? void 0 : A.optionUrl) == null ? void 0 : T.menuId), R;
2086
+ if ((Z = i == null ? void 0 : i.optionUrl) == null || Z.menuSelect, x == null || x.forEach((S) => {
2087
+ var E, C, d, N, M, ae, P, y, W, se, Te, je, Ae, _, f, ce, he;
2088
+ o === ((C = (E = i == null ? void 0 : i.optionUrl) == null ? void 0 : E.groupSelect) == null ? void 0 : C[1]) && ((M = (N = (d = i == null ? void 0 : i.optionUrl) == null ? void 0 : d.groupSelect) == null ? void 0 : N[1]) != null && M.includes("[")) && ((se = H(S)) == null ? void 0 : se[(W = (y = (P = (ae = i == null ? void 0 : i.optionUrl) == null ? void 0 : ae.groupSelect) == null ? void 0 : P[1]) == null ? void 0 : y.replaceAll("[", "")) == null ? void 0 : W.replaceAll("]", "")]) === (i == null ? void 0 : i.value) && (R = S), (Ae = (je = (Te = Pe.value) == null ? void 0 : Te[0]) == null ? void 0 : je.optionUrl) != null && Ae.menuId && S[(f = (_ = Pe.value) == null ? void 0 : _[0]) == null ? void 0 : f.prop] === e[(he = (ce = Pe.value) == null ? void 0 : ce[0]) == null ? void 0 : he.prop] && (R = S);
2089
+ }), R) {
2090
+ let S = H(a);
2091
+ S = S == null ? void 0 : S.map((d) => {
2092
+ var N, M, ae, P, y, W, se, Te, je, Ae, _, f, ce, he, ie, me, Be, Ne;
2093
+ return (R != null && R[d == null ? void 0 : d.label] || R != null && R[(P = (ae = (M = (N = d == null ? void 0 : d.optionUrl) == null ? void 0 : N.groupSelect) == null ? void 0 : M[1]) == null ? void 0 : ae.replaceAll("[", "")) == null ? void 0 : P.replaceAll("]", "")]) && ((se = (W = (y = d == null ? void 0 : d.optionUrl) == null ? void 0 : y.groupSelect) == null ? void 0 : W[1]) != null && se.includes("[")) && (d.value = (R == null ? void 0 : R[d == null ? void 0 : d.label]) || (R == null ? void 0 : R[(_ = (Ae = (je = (Te = d == null ? void 0 : d.optionUrl) == null ? void 0 : Te.groupSelect) == null ? void 0 : je[1]) == null ? void 0 : Ae.replaceAll("[", "")) == null ? void 0 : _.replaceAll("]", "")])), (he = (ce = (f = Pe.value) == null ? void 0 : f[0]) == null ? void 0 : ce.optionUrl) != null && he.menuId && (d.value = (R == null ? void 0 : R[d == null ? void 0 : d.label]) || (R == null ? void 0 : R[(Ne = (Be = (me = (ie = d == null ? void 0 : d.optionUrl) == null ? void 0 : ie.groupSelect) == null ? void 0 : me[1]) == null ? void 0 : Be.replaceAll("[", "")) == null ? void 0 : Ne.replaceAll("]", "")])), d;
2094
+ }), Pe.value = H(S);
2095
+ let E = H(S);
2096
+ E = E == null ? void 0 : E.map((d) => {
2097
+ var N, M, ae, P, y, W;
2098
+ return (M = (N = d == null ? void 0 : d.optionUrl) == null ? void 0 : N.menuSelect) != null && M.some((se) => se == null ? void 0 : se.includes("[")) && (d.optionUrl.oldMenuSelect = (P = (ae = H(d)) == null ? void 0 : ae.optionUrl) == null ? void 0 : P.menuSelect, d.optionUrl.menuSelect = (W = (y = d == null ? void 0 : d.optionUrl) == null ? void 0 : y.menuSelect) == null ? void 0 : W.map((se) => {
2099
+ var Te, je, Ae, _;
2100
+ if (se != null && se.includes("[")) {
2101
+ let f = (je = (Te = se == null ? void 0 : se.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : Te.split(":")) == null ? void 0 : je[1];
2102
+ se = (_ = (Ae = H(S)) == null ? void 0 : Ae.find((ce) => (ce == null ? void 0 : ce.label) === f)) == null ? void 0 : _.value;
2103
+ }
2104
+ return se;
2105
+ })), d;
2106
+ }), Pe.value = E;
2107
+ let C = {};
2108
+ (L = Pe.value) == null || L.forEach((d) => {
2109
+ C[d.prop] = d == null ? void 0 : d.value;
2110
+ }), Fe.value = C;
2111
+ }
2112
+ }
2113
+ Pl.value = !1;
2114
+ }, Vr = (e) => e ? (e == null ? void 0 : e.toUpperCase()) === "INPUT" ? "TEXTAREA" : e : "TEXTAREA", en = (e) => {
2115
+ var o, i;
2116
+ const l = (i = (o = Qe.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;
2117
+ if ((e == null ? void 0 : e.formType) != "Select")
2118
+ return;
2119
+ V.value.forEach((t) => {
2120
+ const c = t == null ? void 0 : t[r];
2121
+ l && Va(c) && (t[r] = [c]), !l && !Va(c) && (t[r] = "");
2122
+ });
2123
+ }, La = (e, l) => {
2124
+ var r;
2125
+ return l == null || l.forEach((a) => {
2126
+ e[a == null ? void 0 : a.prop] = a == null ? void 0 : a.value;
2127
+ }), e.children && ((r = e.children) == null ? void 0 : r.length) > 0 && (e.children = e.children.map((a) => La(a, l))), e;
2128
+ }, ga = (e) => {
2129
+ var r, a, u, o, i, t;
2130
+ Nl("");
2131
+ const l = (r = Pe.value) == null ? void 0 : r.reduce((c, p) => (c[p.name] = p.value, c), {});
2132
+ if (((a = Object.keys(l)) == null ? void 0 : a.length) > 0) {
2133
+ Fe.value = l, nl.value = "", Ul.value = (u = V.value) == null ? void 0 : u.length, _l.value = (o = bl.value) == null ? void 0 : o.filter((p) => (p == null ? void 0 : p.label) !== "新增");
2134
+ const c = (t = (i = Ge.value) == null ? void 0 : i.filter((p) => (p == null ? void 0 : p.label) !== "操作")) == null ? void 0 : t.map((p) => {
2135
+ var O, z, g;
2136
+ const b = (z = (O = Qe.value) == null ? void 0 : O.find((U) => (U == null ? void 0 : U.label) === (p == null ? void 0 : p.label))) == null ? void 0 : z.multiple;
2137
+ return en(p), {
2138
+ ...p,
2139
+ contents: (p == null ? void 0 : p.options) ?? [],
2140
+ // type: 'edit',
2141
+ optionUrl: p != null && p.formMenuSelect && ((g = p == null ? void 0 : p.formMenuSelect) == null ? void 0 : g.length) > 0 ? {
2142
+ groupSelect: p == null ? void 0 : p.groupSelect,
2143
+ menuSelect: p == null ? void 0 : p.formMenuSelect,
2144
+ selectRelateType: "",
2145
+ type: p == null ? void 0 : p.formType,
2146
+ multiple: b
2147
+ } : null
2148
+ // 表格编辑视图组件类型:兼容表头类型切换逻辑,优先模型里定义的类型,其次是手动配置的类型
2149
+ // columnType: convertColType(col?.formType) || col?.columnType
2150
+ };
2151
+ });
2152
+ q.value = c == null ? void 0 : c.map((p) => La(p, [{
2153
+ prop: "type",
2154
+ value: "edit"
2155
+ }, { prop: "columnType", value: Vr(p == null ? void 0 : p.formType) || (p == null ? void 0 : p.columnType) }])), e === "createClick" && Ml(!1);
2156
+ }
2157
+ }, xl = {
2158
+ START: "开始时间",
2159
+ END: "结束时间",
2160
+ HOURS: "工时"
2161
+ }, ln = (e, l) => Number(Ga(l).diff(Ga(e), "day", !0).toFixed(1)), $a = (e) => {
2162
+ var o;
2163
+ 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();
2164
+ return r == null || r.forEach((i, t) => {
2165
+ const { label: c } = i;
2166
+ a.set(c, t);
2167
+ }), !a.has(xl.START) || !a.has(xl.END) || !a.has(xl.HOURS) ? e : e == null ? void 0 : e.map((i) => {
2168
+ const t = i == null ? void 0 : i[xl.START], c = i == null ? void 0 : i[xl.END], p = ln(t, c);
2169
+ return t && c && (i[xl.HOURS] = `${p}天`), i;
2170
+ });
2171
+ }, Pa = (e, l, r = 0) => {
2172
+ if (r > ((l == null ? void 0 : l.length) ?? "")) return e;
2173
+ const a = l == null ? void 0 : l[r], u = /* @__PURE__ */ new Map();
2174
+ for (const i of e) {
2175
+ const t = i[a];
2176
+ u.has(t) || u.set(t, []), u.get(t) && u.get(t).push(i);
2177
+ }
2178
+ const o = [];
2179
+ for (const [i, t] of u) {
2180
+ const [c, ...p] = t, b = { ...c };
2181
+ r + 1 === ((l == null ? void 0 : l.length) ?? "") ? b.children = t == null ? void 0 : t.map((O) => (O.level = H(r) + 1, O)).filter((O, z) => z !== 0) : p.length > 0 && (b.children = Pa(p, l, r + 1)), b.level = r, o.push(b);
2182
+ }
2183
+ return o;
2184
+ }, Ba = (e, l, r) => {
2185
+ var u;
2186
+ if (!(l != null && l.contents) || ((u = l == null ? void 0 : l.contents) == null ? void 0 : u.length) === 0)
2187
+ return e;
2188
+ let a = [];
2189
+ return a = Pa(e, l == null ? void 0 : l.contents, 0), a;
2190
+ }, wa = (e, l) => {
2191
+ var z, g, U, D, m, J, F, K, n, k, h, A, T, Z, L, x, R, S, E, C, d, N, M, ae, P;
2192
+ const r = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "header");
2193
+ e == null || e.filter((y) => (y == null ? void 0 : y.key) === "tableIndexColumn")[0];
2194
+ const a = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "childTree")[0];
2195
+ let u = l;
2196
+ 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"), p = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.key) === "tableIndex");
2197
+ Qe.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;
2198
+ let b = [];
2199
+ Sl.value === "" ? b = r == null ? void 0 : r[0] : b = (r == null ? void 0 : r.find((y) => (y == null ? void 0 : y.selectLabel) === "(" + Sl.value + ")")) ?? (r == null ? void 0 : r.find((y) => !(y != null && y.selectLabel)));
2200
+ let O = [];
2201
+ if (Sl.value === "" ? O = p == null ? void 0 : p[0] : O = (p == null ? void 0 : p.find((y) => (y == null ? void 0 : y.selectLabel) === "(" + Sl.value + ")")) ?? (p == null ? void 0 : p.find((y) => !(y != null && y.selectLabel))), ((U = b == null ? void 0 : b.contents) == null ? void 0 : U.length) > 0) {
2202
+ let y = [];
2203
+ if (b != null && b.contents.some((_) => Array.isArray(_) && (_ == null ? void 0 : _.find((f) => f.children))))
2204
+ sl.value === "" ? y = (m = (D = Qa(b == null ? void 0 : b.contents)) == null ? void 0 : D[0]) == null ? void 0 : m.filter((_) => !Array.isArray(_)) : (sl.value.split("-"), y = (J = Qa(b == null ? void 0 : b.contents)) == null ? void 0 : J[0]);
2205
+ else {
2206
+ let _ = b != null && b.contents.some((f) => Array.isArray(f)) ? (F = b == null ? void 0 : b.contents) == null ? void 0 : F[0] : b == null ? void 0 : b.contents;
2207
+ _ == null || _.forEach((f, ce) => {
2208
+ var me, Be, Ne, pl;
2209
+ let he = "";
2210
+ (Be = (me = le.value) == null ? void 0 : me.split("/")) == null || Be.forEach((Re) => {
2211
+ var fl, gl, Kl;
2212
+ if (Re !== "") {
2213
+ let Cl = (Kl = (gl = (fl = Re == null ? void 0 : Re.split(ge + "updateLoading")) == null ? void 0 : fl[0]) == null ? void 0 : gl.split(ge + "loading")) == null ? void 0 : Kl[0];
2214
+ he = he === "" ? he + Cl : he + "/" + Cl;
2215
+ }
2216
+ }), he = he + ge + (f == null ? void 0 : f.directiveLabel);
2217
+ const ie = (Ne = Qe.value) == null ? void 0 : Ne.find((Re) => (Re == null ? void 0 : Re.prop) === (f == null ? void 0 : f.prop));
2218
+ y.push({
2219
+ label: (f == null ? void 0 : f.label) ?? "",
2220
+ prop: (f == null ? void 0 : f.label) === "操作" ? "operate" : (f == null ? void 0 : f.prop) ?? "a" + ce,
2221
+ // width: t?.label === '操作' ? '200' : (t?.width ? parseInt(t.width) : ''),
2222
+ width: f != null && f.width ? parseInt(f.width) : "",
2223
+ fixed: (f == null ? void 0 : f.fixed) ?? void 0,
2224
+ sortable: (f == null ? void 0 : f.sortable) ?? !1,
2225
+ filterable: (f == null ? void 0 : f.filterable) ?? !1,
2226
+ operable: (f == null ? void 0 : f.operable) ?? !1,
2227
+ showSummary: (f == null ? void 0 : f.showSummary) ?? !1,
2228
+ align: (f == null ? void 0 : f.align) ?? "left",
2229
+ showOverflowTooltip: (f == null ? void 0 : f.showOverflowTooltip) ?? !0,
2230
+ isNotDrag: (f == null ? void 0 : f.isNotDrag) ?? !1,
2231
+ isEditCol: (f == null ? void 0 : f.isEditCol) ?? !1,
2232
+ isOperate: (f == null ? void 0 : f.isOperate) ?? !1,
2233
+ id: (f == null ? void 0 : f.id) ?? ce,
2234
+ type: (f == null ? void 0 : f.label) === "操作" ? "operate" : void 0,
2235
+ formType: (f == null ? void 0 : f.formType) ?? (f != null && f.groupSelect ? "Select" : ""),
2236
+ isTableColHidden: f == null ? void 0 : f.isTableColHidden,
2237
+ isFormColHidden: f == null ? void 0 : f.isFormColHidden,
2238
+ disabled: f == null ? void 0 : f.disabled,
2239
+ options: (f == null ? void 0 : f.options) ?? [],
2240
+ value: (f == null ? void 0 : f.value) ?? "",
2241
+ formMenuSelect: (f == null ? void 0 : f.formMenuSelect) ?? [],
2242
+ isRoute: (f == null ? void 0 : f.isRoute) ?? !1,
2243
+ groupSelect: f != null && f.groupSelect ? (pl = f == null ? void 0 : f.groupSelect) == null ? void 0 : pl.replaceAll('"', "").split(":") : [],
2244
+ isMainKey: (f == null ? void 0 : f.isMainKey) || (f == null ? void 0 : f.directiveLabel) && !u[he],
2245
+ // 同步弹窗列类型到表格列类型
2246
+ columnType: (ie == null ? void 0 : ie.type) || (f == null ? void 0 : f.columnType) || "TEXTAREA",
2247
+ directiveLabel: f == null ? void 0 : f.directiveLabel,
2248
+ isExistChild: !!(f != null && f.directiveLabel && u[he]),
2249
+ childPath: he
2250
+ });
2251
+ });
2252
+ }
2253
+ q.value = Xa(y), Y.value = Xa(y), I.value = (K = q.value) == null ? void 0 : K.map((_) => _ == null ? void 0 : _.label), dl.value = (n = q.value) == null ? void 0 : n.every((_) => _ == null ? void 0 : _.filterable), de.value = (k = q.value) == null ? void 0 : k.every((_) => _ == null ? void 0 : _.operable), cl.value = (h = q.value) == null ? void 0 : h.every((_) => _ == null ? void 0 : _.sortable);
2254
+ let W = (T = (A = En(q.value)) == null ? void 0 : A.filter((_) => (_ == null ? void 0 : _.type) !== "operate")) == null ? void 0 : T.map((_, f) => ({
2255
+ prop: (_ == null ? void 0 : _.prop) ?? "a" + f,
2256
+ column: _.label
2257
+ }));
2258
+ Ie.value = W;
2259
+ let se = [];
2260
+ Sl.value === "" ? se = c == null ? void 0 : c[0] : se = (c == null ? void 0 : c.find((_) => (_ == null ? void 0 : _.selectLabel) === "(" + Sl.value + ")")) ?? (c == null ? void 0 : c.find((_) => !(_ != null && _.selectLabel)));
2261
+ let Te = Array.isArray((Z = se == null ? void 0 : se.contents) == null ? void 0 : Z[0]) && ((L = se == null ? void 0 : se.contents) != null && L[0].every((_) => Array.isArray(_))) ? (x = se == null ? void 0 : se.contents) == null ? void 0 : x[0] : se == null ? void 0 : se.contents;
2262
+ O != null && O.contents && ((R = O == null ? void 0 : O.contents) == null ? void 0 : R.length) !== 0 && (Te = (S = H(Te)) == null ? void 0 : S.map((_, f) => {
2263
+ if (!Array.isArray(_)) {
2264
+ let ce = {};
2265
+ for (let he in _)
2266
+ he !== "id" && he !== "index" && (ce[he] = _[he]);
2267
+ _ = Object.values(ce);
2268
+ }
2269
+ return _;
2270
+ }));
2271
+ const je = !!((E = q.value) != null && E.find((_) => _.prop === "index"));
2272
+ Te = ur(Te, O == null ? void 0 : O.contents, je);
2273
+ const Ae = [];
2274
+ Te == null || Te.forEach((_, f) => {
2275
+ var he;
2276
+ let ce = {};
2277
+ if (Array.isArray(_)) {
2278
+ let ie = [];
2279
+ _ == null || _.filter((me) => !(me != null && me.id)).forEach((me, Be) => {
2280
+ var Ne, pl, Re, fl, gl, Kl;
2281
+ if ((Ne = W == null ? void 0 : W[Be]) != null && Ne.prop && !Array.isArray(me)) {
2282
+ let Cl = {};
2283
+ Cl[W[Be].column] = me, ke != null && ke.value && ((pl = ke == null ? void 0 : ke.value) == null ? void 0 : pl.length) > 0 && ((Re = ke == null ? void 0 : ke.value) != null && Re.find((ll) => JSON.stringify(ll == null ? void 0 : ll[0]) === JSON.stringify(Cl))) && (ie = (fl = ke == null ? void 0 : ke.value) == null ? void 0 : fl.find((ll) => JSON.stringify(ll == null ? void 0 : ll[0]) === JSON.stringify(Cl))), ie && ie.length > 0 ? ce[W[Be].prop] = ie != null && ie.find((ll) => {
2284
+ var Fl;
2285
+ return ((Fl = Object.keys(ll)) == null ? void 0 : Fl[0]) === W[Be].column;
2286
+ }) ? (gl = ie == null ? void 0 : ie.find((ll) => {
2287
+ var Fl;
2288
+ return ((Fl = Object.keys(ll)) == null ? void 0 : Fl[0]) === W[Be].column;
2289
+ })) == null ? void 0 : gl[W[Be].column] : me : ce[W[Be].prop] = me;
2290
+ } else Array.isArray(me) && ((Kl = W[Be]) != null && Kl.prop ? ce[W[Be].prop] = me : ce.children = va(me, W));
2291
+ });
2292
+ } else
2293
+ ce = _;
2294
+ Array.isArray(_) && _.some((ie) => ie == null ? void 0 : ie.id) ? Ae.push(Object.assign(ce, { id: (he = _ == null ? void 0 : _.find((ie) => ie.id)) == null ? void 0 : he.id })) : ce.id ? Ae.push(ce) : Ae.push(Object.assign(ce, { id: f.toString() }));
2295
+ }), V.value = Ba(Ae, a, q.value), Gl.value = Ae, (C = Gl.value) == null || C.forEach((_) => {
2296
+ var f;
2297
+ (f = Hl.value) == null || f.set(_.id, _);
2298
+ });
2299
+ } else
2300
+ q.value = [], Ge.value = [], V.value = [], Gl.value = [], Hl.value = /* @__PURE__ */ new Map();
2301
+ ((d = i == null ? void 0 : i.contents) == null ? void 0 : d.length) > 0 ? vl.value = i == null ? void 0 : i.contents : vl.value = [], ((N = t == null ? void 0 : t.contents) == null ? void 0 : N.length) > 0 ? (_l.value = t == null ? void 0 : t.contents, bl.value = t == null ? void 0 : t.contents) : (_l.value = [], bl.value = []), Ul.value = ((M = V == null ? void 0 : V.value) == null ? void 0 : M.length) ?? 0, $a(V.value), Zl.value = V.value, Ve.value && (q.value = (P = (ae = Ge.value) == null ? void 0 : ae.filter((y) => (y == null ? void 0 : y.label) !== "操作")) == null ? void 0 : P.map((y) => {
2302
+ var W;
2303
+ return {
2304
+ ...y,
2305
+ type: "edit",
2306
+ optionUrl: y != null && y.formMenuSelect && ((W = y == null ? void 0 : y.formMenuSelect) == null ? void 0 : W.length) > 0 ? {
2307
+ groupSelect: y == null ? void 0 : y.groupSelect,
2308
+ menuSelect: y == null ? void 0 : y.formMenuSelect,
2309
+ selectRelateType: "",
2310
+ type: y == null ? void 0 : y.formType
2311
+ } : null
2312
+ };
2313
+ }), ga());
2314
+ };
2315
+ We(
2316
+ () => [s.itemData, Sl.value, dr.value, sl.value, ke == null ? void 0 : ke.value],
2317
+ async () => {
2318
+ var e, l, r, a, u, o;
2319
+ if ((e = s == null ? void 0 : s.itemData) != null && e.find((i) => (i == null ? void 0 : i.key) === "columnPath") && !((l = Ll.value) != null && l.find((i) => {
2320
+ var t, c;
2321
+ return (i == null ? void 0 : i.key) === ((c = (t = s == null ? void 0 : s.itemData) == null ? void 0 : t.find((p) => (p == null ? void 0 : p.key) === "columnPath")) == null ? void 0 : c.contents);
2322
+ }))) {
2323
+ let i = Ll.value, t = {
2324
+ 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,
2325
+ 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
2326
+ };
2327
+ 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);
2328
+ }
2329
+ wa(s.itemData, s.allMapContents);
2330
+ },
2331
+ { deep: !0, immediate: !0 }
2332
+ ), We(() => s == null ? void 0 : s.operatingForm, (e) => {
2333
+ e != null && e.form && (Nl(e == null ? void 0 : e.form), Ze.value = e == null ? void 0 : e.dialogTitle, Yl.value = !0, ul.value = !0);
2334
+ }, { immediate: !0, deep: !0 });
2335
+ const Na = () => {
2336
+ var e;
2337
+ (e = Ue.value) != null && e.includes("read") && (Ve.value = !Ve.value);
2338
+ }, an = () => {
2339
+ Vl.value = !Vl.value;
2340
+ };
2341
+ We(() => {
2342
+ var e;
2343
+ return (e = s == null ? void 0 : s.config) == null ? void 0 : e.viewport;
2344
+ }, (e) => {
2345
+ var l;
2346
+ 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)), ye.value = ((l = s == null ? void 0 : s.config) == null ? void 0 : l.showIndex) || Ve.value;
2347
+ }, { immediate: !0 }), We(() => Ve.value, (e) => {
2348
+ var l;
2349
+ e ? (ga("viewChange"), De.setCacheUpdatingData(null)) : (_l.value = bl.value, q.value = Y.value, jl.value && (De.setTableLoading(s == null ? void 0 : s.index), Q("change", jl.value))), ne.value = e, ye.value = e || ((l = s == null ? void 0 : s.config) == null ? void 0 : l.showIndex);
2350
+ }, { immediate: !0 }), We(() => {
2351
+ var e;
2352
+ return (e = Aa.value) == null ? void 0 : e.length;
2353
+ }, (e) => {
2354
+ e === 0 && (te.currentPage = 1);
2355
+ }), We(() => s == null ? void 0 : s.compNames, (e) => {
2356
+ Ee.contents = [
2357
+ {
2358
+ label: "列表名",
2359
+ prop: "groupName",
2360
+ name: "列表名",
2361
+ type: "select",
2362
+ value: "",
2363
+ id: 0,
2364
+ contents: e || [],
2365
+ width: 1
2366
+ }
2367
+ ];
2368
+ }, { immediate: !0 }), G(!1);
2369
+ const rn = (e, l) => {
2370
+ var r;
2371
+ ga("createClick"), l === te.pageSize && (te.currentPage = Math.ceil(((r = V.value) == null ? void 0 : r.length) / te.pageSize));
2372
+ }, nn = (e, l, r) => {
2373
+ var a;
2374
+ ja(r, e, l), Fe.value = H(e), nl.value = e == null ? void 0 : e.id, Ul.value = (a = V.value) == null ? void 0 : a.length, Ze.value = typeof (e == null ? void 0 : e.id) == "string" ? "新增" : "编辑", Ml(!1);
2375
+ }, ze = (e) => {
2376
+ var c, p, b, O, z, g, U, D, m, J;
2377
+ const { row: l, column: r, item: a, slotData: u } = e;
2378
+ let o = l != null && l[r == null ? void 0 : r.prop] || (l == null ? void 0 : l[r == null ? void 0 : r.prop]) === 0 ? ((p = (c = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : c[0]) == null ? void 0 : p.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]) : ((O = (b = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : b[0]) == null ? void 0 : O.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]) ?? ((m = (D = l == null ? void 0 : l[(U = a == null ? void 0 : a.child) == null ? void 0 : U.prop]) == null ? void 0 : D[0]) == null ? void 0 : m.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;
2379
+ return t = Array.isArray(t) ? t.join(",") : t, t;
2380
+ }, un = (e) => {
2381
+ var p, b, O, z, g, U, D, m, J, F;
2382
+ const { row: l, column: r, item: a, slotData: u } = e;
2383
+ let o = l != null && l[r == null ? void 0 : r.prop] ? ((b = (p = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : p[0]) == null ? void 0 : b.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) : ((z = (O = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : O[0]) == null ? void 0 : z.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((U = (g = u == null ? void 0 : u[a == null ? void 0 : a.prop]) == null ? void 0 : g[0]) == null ? void 0 : U.contents) ?? (u == null ? void 0 : u[a == null ? void 0 : a.prop]) ?? ((J = (m = l == null ? void 0 : l[(D = a == null ? void 0 : a.child) == null ? void 0 : D.prop]) == null ? void 0 : m[0]) == null ? void 0 : J.contents) ?? (l == null ? void 0 : l[(F = a == null ? void 0 : a.child) == null ? void 0 : F.prop]);
2384
+ 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));
2385
+ return t && c;
2386
+ }, sn = (e, l) => e.find((r) => Object.values(r).some((a) => a === l));
2387
+ return We(() => rl.value, async (e) => {
2388
+ if (e) {
2389
+ w.setContentLoading(!0), await ua();
2390
+ const l = sn(V.value, e == null ? void 0 : e.data);
2391
+ if (!l) return w.setContentLoading(!1);
2392
+ await _a(e == null ? void 0 : e.data, null, l, { data: e == null ? void 0 : e.data, isMainKey: !0 }), w.setContentLoading(!1);
2393
+ }
2394
+ }, { deep: !0, immediate: !0 }), We(() => s == null ? void 0 : s.cacheNewData, (e) => {
2395
+ var l;
2396
+ e && (Array.isArray(e) || (e == null ? void 0 : e.compId) === (s == null ? void 0 : s.index) && (V.value = (l = V.value) == null ? void 0 : l.map((r) => {
2397
+ var a;
2398
+ return (r == null ? void 0 : r.id) === ((a = e == null ? void 0 : e.data) == null ? void 0 : a.id) ? {
2399
+ ...r,
2400
+ id: e == null ? void 0 : e.resId
2401
+ } : r;
2402
+ })));
2403
+ }, { immediate: !0, deep: !0 }), (e, l) => {
2404
+ var p, b, O, z;
2405
+ 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");
2406
+ return ee(), be("div", gu, [
2407
+ Ta.value ? (ee(), Le(bn, {
2408
+ id: "excel-table",
2409
+ pageObj: te,
2410
+ showIndex: ye.value,
2411
+ isTree: (p = j.compItem) == null ? void 0 : p.isTree,
2412
+ summaryInfo: Se,
2413
+ columns: q.value,
2414
+ defaultSort: $e,
2415
+ isCardViewport: Vl.value,
2416
+ checkedColumns: I.value,
2417
+ key: ia.value + JSON.stringify(q.value),
2418
+ tableData: Aa.value,
2419
+ isEditViewport: Ve.value,
2420
+ isShowPagination: ka.value,
2421
+ isShowEdit: !1,
2422
+ isShowDelete: !1,
2423
+ allowSelect: ne.value,
2424
+ onDbClickRow: Br,
2425
+ extraButton: _l.value,
2426
+ rowButton: vl.value,
2427
+ cacheExtraButtons: bl.value,
2428
+ isClearSelection: ((b = el.value) == null ? void 0 : b.length) === 0,
2429
+ onDoCurrentChange: vr,
2430
+ onDoSizeChange: br,
2431
+ onContentClick: _a,
2432
+ onRowClick: Nr,
2433
+ onSelectChange: _r,
2434
+ onCellChange: nn,
2435
+ onChange: ja,
2436
+ onPreview: ma,
2437
+ onSubmitEditingTable: Ur,
2438
+ onHandleColEditChange: Ar,
2439
+ onHandleColTypeChange: mr,
2440
+ onClickButton: ra
2441
+ }, pn({
2442
+ headerButton: X((g) => {
2443
+ var U, D;
2444
+ return [
2445
+ j.showHeader ? (ee(), Le(Vn, {
2446
+ key: 0,
2447
+ pageLayout: j.pageLayout,
2448
+ lockingPage: Xe(ql) === Xe(le),
2449
+ filterValues: Ua.value,
2450
+ selectNums: (U = el.value) == null ? void 0 : U.length,
2451
+ dataNums: (D = V.value) == null ? void 0 : D.length,
2452
+ compName: j.compName,
2453
+ isDevMode: j.isDevMode,
2454
+ buttons: g.buttons,
2455
+ onButtonClick: l[0] || (l[0] = (m) => ra(m, "", {})),
2456
+ columns: q.value,
2457
+ onFilter: Pr,
2458
+ onGetImportData: kr,
2459
+ level: j.level
2460
+ }, null, 8, ["pageLayout", "lockingPage", "filterValues", "selectNums", "dataNums", "compName", "isDevMode", "buttons", "columns", "level"])) : Ce("", !0)
2461
+ ];
2462
+ }),
2463
+ viewport: X(() => {
2464
+ var g, U, D, m;
2465
+ return [
2466
+ ((g = V.value) == null ? void 0 : g.length) > 0 && j.allowOperate ? (ee(), be("div", vu, [
2467
+ (U = Ue.value) != null && U.includes("read") && ((D = Ue.value) != null && D.includes("edit")) && ((m = vl.value) != null && m.some((J) => (J == null ? void 0 : J.label) === "编辑")) && !Vl.value && Xe(ql) !== Xe(le) ? (ee(), be("span", {
2468
+ key: 0,
2469
+ title: "编辑表格",
2470
+ onClick: Na
2471
+ }, [
2472
+ ue(r, {
2473
+ name: "editTable",
2474
+ class: "view-icon"
2475
+ })
2476
+ ])) : Ce("", !0),
2477
+ fe("span", {
2478
+ title: "卡片视图",
2479
+ onClick: an
2480
+ }, [
2481
+ ue(r, {
2482
+ name: "cardViewport",
2483
+ class: "view-icon"
2484
+ })
2485
+ ])
2486
+ ])) : Ce("", !0)
2487
+ ];
2488
+ }),
2489
+ rowCreate: X(({ row: g, index: U }) => [
2490
+ fe("span", {
2491
+ title: "新增",
2492
+ class: "row-create-wrap",
2493
+ onClick: (D) => rn(g, U)
2494
+ }, [
2495
+ ue(r, {
2496
+ name: "rowCreate",
2497
+ style: { width: "10px", height: "10px" }
2498
+ })
2499
+ ], 8, bu)
2500
+ ]),
2501
+ operateCol: X(() => [
2502
+ ue(a, {
2503
+ title: "选择显示列信息",
2504
+ placement: "left-start",
2505
+ "popper-class": "menu-operate-popover",
2506
+ trigger: "hover",
2507
+ onShow: Zr
2508
+ }, {
2509
+ reference: X(() => [
2510
+ fe("span", Su, [
2511
+ ue(r, {
2512
+ name: "operate",
2513
+ style: { width: "15px", height: "15px", cursor: "pointer" }
2514
+ })
2515
+ ])
2516
+ ]),
2517
+ default: X(() => [
2518
+ fe("div", ku, [
2519
+ l[11] || (l[11] = fe("div", { class: "group-title" }, "表格操作", -1)),
2520
+ ue(u, {
2521
+ "model-value": cl.value,
2522
+ "active-text": "排序",
2523
+ "inactive-text": "",
2524
+ style: { "margin-right": "8px" },
2525
+ onChange: l[2] || (l[2] = (g) => ca(g, "sortable"))
2526
+ }, null, 8, ["model-value"]),
2527
+ ue(u, {
2528
+ "model-value": dl.value,
2529
+ "active-text": "筛选",
2530
+ "inactive-text": "",
2531
+ style: { "margin-right": "8px" },
2532
+ onChange: l[3] || (l[3] = (g) => ca(g, "filterable"))
2533
+ }, null, 8, ["model-value"]),
2534
+ ue(u, {
2535
+ "model-value": de.value,
2536
+ "active-text": "编辑所有表头",
2537
+ "inactive-text": "",
2538
+ onChange: l[4] || (l[4] = (g) => ca(g, "operable"))
2539
+ }, null, 8, ["model-value"]),
2540
+ l[12] || (l[12] = fe("div", { class: "group-title" }, "表格列操作", -1)),
2541
+ ue(i, {
2542
+ modelValue: I.value,
2543
+ "onUpdate:modelValue": l[5] || (l[5] = (g) => I.value = g),
2544
+ style: { height: "100%" },
2545
+ min: 2,
2546
+ ref_key: "checkboxGroupRef",
2547
+ ref: $
2548
+ }, {
2549
+ default: X(() => [
2550
+ (ee(!0), be(il, null, tl(Bl.value, (g) => (ee(), be("div", {
2551
+ style: { display: "flex", "align-items": "center" },
2552
+ key: g.label
2553
+ }, [
2554
+ ue(o, {
2555
+ value: g.label,
2556
+ style: { width: "100%", marginRight: 0 }
2557
+ }, {
2558
+ default: X(() => [
2559
+ fe("span", {
2560
+ title: g.label,
2561
+ style: { display: "inline-block", width: "250px", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }
2562
+ }, Oe(g.label), 9, Tu)
2563
+ ]),
2564
+ _: 2
2565
+ }, 1032, ["value"]),
2566
+ ue(a, {
2567
+ title: "列操作",
2568
+ placement: "left",
2569
+ teleported: !1,
2570
+ trigger: "hover"
2571
+ }, {
2572
+ reference: X(() => [
2573
+ ue(r, {
2574
+ name: "colOperate",
2575
+ style: { width: "15px", height: "15px", cursor: "pointer", color: "grey", position: "absolute", right: "40px" }
2576
+ })
2577
+ ]),
2578
+ default: X(() => {
2579
+ var U;
2580
+ return [
2581
+ fe("div", Au, [
2582
+ (ee(!0), be(il, null, tl((U = Object.keys(g)) == null ? void 0 : U.filter((D) => {
2583
+ var m;
2584
+ return (m = ve.value) == null ? void 0 : m.find((J) => (J == null ? void 0 : J.value) === D);
2585
+ }), (D) => {
2586
+ var m, J;
2587
+ return ee(), be("div", { key: D }, [
2588
+ ue(u, {
2589
+ "model-value": g == null ? void 0 : g[D],
2590
+ "active-text": (J = (m = ve.value) == null ? void 0 : m.find((F) => (F == null ? void 0 : F.value) === D)) == null ? void 0 : J.label,
2591
+ onChange: (F) => Cr(F, D, g)
2592
+ }, null, 8, ["model-value", "active-text", "onChange"])
2593
+ ]);
2594
+ }), 128))
2595
+ ])
2596
+ ];
2597
+ }),
2598
+ _: 2
2599
+ }, 1024),
2600
+ fe("span", mu, [
2601
+ ue(r, {
2602
+ name: "drag",
2603
+ class: "col-drag-icon",
2604
+ style: { width: "15px", height: "15px" }
2605
+ })
2606
+ ])
2607
+ ]))), 128))
2608
+ ]),
2609
+ _: 1
2610
+ }, 8, ["modelValue"])
2611
+ ])
2612
+ ]),
2613
+ _: 1
2614
+ })
2615
+ ]),
2616
+ content: X((g) => {
2617
+ var U, D, m, J, F, K, n, k, h, A, T, Z, L, x, R, S, E, C;
2618
+ return [
2619
+ un(g) ? (ee(), Le(a, {
2620
+ key: 0,
2621
+ "popper-class": "file-popover",
2622
+ placement: "right",
2623
+ trigger: "hover",
2624
+ effect: "light",
2625
+ width: "auto"
2626
+ }, {
2627
+ reference: X(() => [
2628
+ fe("span", Uu, Oe(ze(g)), 1)
2629
+ ]),
2630
+ default: X(() => {
2631
+ var d, N;
2632
+ return [
2633
+ fe("div", _u, [
2634
+ (ee(!0), be(il, null, tl((N = g == null ? void 0 : g.row) == null ? void 0 : N[(d = g == null ? void 0 : g.column) == null ? void 0 : d.prop], (M) => (ee(), be("div", xu, [
2635
+ fe("div", {
2636
+ class: "prop-url",
2637
+ title: aa(M),
2638
+ onClick: (ae) => Er(M)
2639
+ }, Oe(aa(M)), 9, Cu),
2640
+ fe("div", {
2641
+ class: "prop-download",
2642
+ onClick: (ae) => jr(M)
2643
+ }, " 下载 ", 8, Ou)
2644
+ ]))), 256))
2645
+ ])
2646
+ ];
2647
+ }),
2648
+ _: 2
2649
+ }, 1024)) : (ee(), be("div", {
2650
+ key: 1,
2651
+ style: ml({
2652
+ color: !Array.isArray(ze(g)) && ((D = (U = ze(g)) == null ? void 0 : U.toString()) != null && D.includes(".txt") || (J = (m = ze(g)) == null ? void 0 : m.toString()) != null && J.includes(".cpt") || (K = (F = ze(g)) == null ? void 0 : F.toString()) != null && K.includes(".cyd")) ? "var(--vertical-menuitem-active-bg)" : "",
2653
+ textDecoration: !Array.isArray(ze(g)) && ((k = (n = ze(g)) == null ? void 0 : n.toString()) != null && k.includes(".txt") || (A = (h = ze(g)) == null ? void 0 : h.toString()) != null && A.includes(".cpt") || (Z = (T = ze(g)) == null ? void 0 : T.toString()) != null && Z.includes(".cyd")) ? "underline" : "",
2654
+ cursor: !Array.isArray(ze(g)) && ((x = (L = ze(g)) == null ? void 0 : L.toString()) != null && x.includes(".txt") || (S = (R = ze(g)) == null ? void 0 : R.toString()) != null && S.includes(".cpt") || (C = (E = ze(g)) == null ? void 0 : E.toString()) != null && C.includes(".cyd")) ? "pointer" : "",
2655
+ marginLeft: (g == null ? void 0 : g.colIndex) === 0 ? `${((g == null ? void 0 : g.level) ?? 0) * 20}px` : 0
2656
+ }),
2657
+ onClick: (d) => yr(ze(g))
2658
+ }, Oe(ze(g) === 0 ? "0" : ze(g)), 13, Du))
2659
+ ];
2660
+ }),
2661
+ _: 2
2662
+ }, [
2663
+ ((O = vl.value) == null ? void 0 : O.length) > 0 && Xe(ql) !== Xe(le) ? {
2664
+ name: "actions",
2665
+ fn: X(({ item: g }) => [
2666
+ ue(a, {
2667
+ title: "",
2668
+ placement: "left-start",
2669
+ "popper-class": "menu-operate-popover"
2670
+ }, {
2671
+ reference: X(() => [
2672
+ ue(r, {
2673
+ name: "more",
2674
+ style: { cursor: "pointer", width: "15px", height: "15px" }
2675
+ })
2676
+ ]),
2677
+ default: X(() => [
2678
+ fe("div", hu, [
2679
+ (ee(!0), be(il, null, tl(Lr(vl.value, g), (U, D) => (ee(), be("div", {
2680
+ class: "menu-config-item",
2681
+ key: D,
2682
+ onClick: (m) => ra(U == null ? void 0 : U.label, g, { extra: U })
2683
+ }, [
2684
+ fe("div", {
2685
+ style: ml({ color: U == null ? void 0 : U.textColor }),
2686
+ class: "extra-button-label"
2687
+ }, Oe(U == null ? void 0 : U.label), 5)
2688
+ ], 8, yu))), 128))
2689
+ ])
2690
+ ]),
2691
+ _: 2
2692
+ }, 1024)
2693
+ ]),
2694
+ key: "0"
2695
+ } : void 0,
2696
+ ((z = V.value) == null ? void 0 : z.length) > 0 ? {
2697
+ name: "batchButton",
2698
+ fn: X((g) => [
2699
+ za(ue(lu, {
2700
+ lockingPage: Xe(ql) === Xe(le),
2701
+ buttons: g.buttons,
2702
+ selectTableItems: el.value,
2703
+ onButtonClick: l[1] || (l[1] = (U) => ra(U, "", {}))
2704
+ }, null, 8, ["lockingPage", "buttons", "selectTableItems"]), [
2705
+ [Ja, ne.value]
2706
+ ]),
2707
+ za(fe("div", null, null, 512), [
2708
+ [Ja, !ne.value]
2709
+ ])
2710
+ ]),
2711
+ key: "1"
2712
+ } : void 0
2713
+ ]), 1032, ["pageObj", "showIndex", "isTree", "summaryInfo", "columns", "defaultSort", "isCardViewport", "checkedColumns", "tableData", "isEditViewport", "isShowPagination", "allowSelect", "extraButton", "rowButton", "cacheExtraButtons", "isClearSelection"])) : Ce("", !0),
2714
+ ue(Jl, {
2715
+ title: Ze.value,
2716
+ visible: ul.value,
2717
+ width: fr.value,
2718
+ onBeforeDestroy: Or,
2719
+ style: { height: "74%" }
2720
+ }, {
2721
+ default: X(() => [
2722
+ fe("div", Eu, [
2723
+ ue(El, {
2724
+ rowContents: Pe.value,
2725
+ isEnableWrap: !1,
2726
+ showOperator: !1,
2727
+ onChange: Ir,
2728
+ onClickTrigger: Dr,
2729
+ isEdit: Ql.value,
2730
+ onBlurChange: xr
2731
+ }, null, 8, ["rowContents", "isEdit"])
2732
+ ])
2733
+ ]),
2734
+ footer: X(() => [
2735
+ Yl.value ? (ee(), be("div", ju, [
2736
+ ue(t, {
2737
+ onClick: l[6] || (l[6] = (g) => ul.value = !1),
2738
+ id: "themeBorderButton"
2739
+ }, {
2740
+ default: X(() => l[13] || (l[13] = [
2741
+ He(Oe("取消"))
2742
+ ])),
2743
+ _: 1,
2744
+ __: [13]
2745
+ }),
2746
+ ue(t, {
2747
+ class: "ok-button",
2748
+ onClick: l[7] || (l[7] = (g) => Ml(!0)),
2749
+ id: "themeButton"
2750
+ }, {
2751
+ default: X(() => l[14] || (l[14] = [
2752
+ He(Oe("确认"))
2753
+ ])),
2754
+ _: 1,
2755
+ __: [14]
2756
+ })
2757
+ ])) : Ce("", !0)
2758
+ ]),
2759
+ _: 1
2760
+ }, 8, ["title", "visible", "width"]),
2761
+ ue(Jl, {
2762
+ title: Ze.value,
2763
+ visible: Xl.value,
2764
+ width: oa.value,
2765
+ onBeforeDestroy: l[9] || (l[9] = (g) => Xl.value = !1)
2766
+ }, {
2767
+ default: X(() => [
2768
+ ue(ou)
2769
+ ]),
2770
+ footer: X(() => [
2771
+ fe("div", Lu, [
2772
+ ue(t, {
2773
+ onClick: l[8] || (l[8] = (g) => Xl.value = !1),
2774
+ class: "cancel-button",
2775
+ id: "themeBorderButton"
2776
+ }, {
2777
+ default: X(() => l[15] || (l[15] = [
2778
+ He(Oe("取消"))
2779
+ ])),
2780
+ _: 1,
2781
+ __: [15]
2782
+ }),
2783
+ ue(t, {
2784
+ class: "ok-button",
2785
+ onClick: Mr,
2786
+ id: "themeButton"
2787
+ }, {
2788
+ default: X(() => l[16] || (l[16] = [
2789
+ He(Oe("确认"))
2790
+ ])),
2791
+ _: 1,
2792
+ __: [16]
2793
+ })
2794
+ ])
2795
+ ]),
2796
+ _: 1
2797
+ }, 8, ["title", "visible", "width"]),
2798
+ v.value ? (ee(), Le(Sn, {
2799
+ key: 1,
2800
+ fileDataList: _e.value,
2801
+ onDestroy: wr
2802
+ }, null, 8, ["fileDataList"])) : Ce("", !0),
2803
+ oe.value ? (ee(), Le(Jl, {
2804
+ key: 2,
2805
+ visible: oe.value,
2806
+ onBeforeDestroy: Xr,
2807
+ style: { height: "80vh", width: "80vw" },
2808
+ "body-class": "three-dialog-body",
2809
+ "footer-class": "three-dialog-footer"
2810
+ }, {
2811
+ default: X(() => [
2812
+ ue(An, {
2813
+ "file-urls": $l.value,
2814
+ isThreeScene: Me.value,
2815
+ isSelfWindow: !0,
2816
+ threeData: Ke.value
2817
+ }, null, 8, ["file-urls", "isThreeScene", "threeData"])
2818
+ ]),
2819
+ _: 1
2820
+ }, 8, ["visible"])) : Ce("", !0),
2821
+ ue(Jl, {
2822
+ visible: e.componentVisible,
2823
+ onBeforeDestroy: l[10] || (l[10] = (g) => e.componentVisible = !1),
2824
+ width: oa.value,
2825
+ style: { height: "70vh" }
2826
+ }, {
2827
+ default: X(() => [
2828
+ ue(c, { dialogItem: ea.value }, null, 8, ["dialogItem"])
2829
+ ]),
2830
+ _: 1
2831
+ }, 8, ["visible", "width"]),
2832
+ ue(Jl, {
2833
+ title: Ee.title,
2834
+ visible: Ee.show,
2835
+ width: Ee.width,
2836
+ onBeforeDestroy: Rr
2837
+ }, {
2838
+ default: X(() => [
2839
+ fe("div", $u, [
2840
+ ue(El, {
2841
+ rowContents: Ee == null ? void 0 : Ee.contents,
2842
+ formRules: Ee == null ? void 0 : Ee.formRules,
2843
+ showOperator: !1,
2844
+ buttonValue: Ee.buttonValue,
2845
+ isEdit: Ql.value,
2846
+ isStartJustify: !1,
2847
+ isEnableWrap: !1,
2848
+ onOnButtonClick: Wr
2849
+ }, null, 8, ["rowContents", "formRules", "buttonValue", "isEdit"])
2850
+ ])
2851
+ ]),
2852
+ _: 1
2853
+ }, 8, ["title", "visible", "width"])
2854
+ ]);
2855
+ };
2856
+ }
2857
+ }, Qu = /* @__PURE__ */ sa(Pu, [["__scopeId", "data-v-7e6369ef"]]);
2858
+ export {
2859
+ fu as a,
2860
+ au as b,
2861
+ er as f,
2862
+ ar as g,
2863
+ Qu as s,
2864
+ iu as u
2865
+ };