ss-component-new 1.1.415 → 1.1.416

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 (101) hide show
  1. package/dist/array-58d570LL.cjs +7 -0
  2. package/dist/array-DEqtaw54.js +346 -0
  3. package/dist/{crypto-BRyGpjGR.js → crypto-Cq-QCViO.js} +178 -186
  4. package/dist/{crypto-CRbcEKIz.cjs → crypto-DX0stRPJ.cjs} +5 -5
  5. package/dist/{index-DuwxEG2Y.js → index-B36maAk9.js} +1 -1
  6. package/dist/index-B3ZWxITJ.js +1145 -0
  7. package/dist/{index-BJiXsb3E.cjs → index-B7pGY6s-.cjs} +1 -1
  8. package/dist/{index-WPbX9sqP.cjs → index-BEJ2yw6L.cjs} +1 -1
  9. package/dist/{index-9QTlnrEQ.cjs → index-BEZVG2w4.cjs} +1 -1
  10. package/dist/{index-BOzZXj2f.js → index-BMDwIj9Q.js} +7 -7
  11. package/dist/index-BN5_bPlI.js +711 -0
  12. package/dist/index-BQE6u3FY.cjs +7 -0
  13. package/dist/{index-DrUjNhjW.js → index-BTjvMH2-.js} +1 -1
  14. package/dist/{index-9srnYnzT.js → index-BXxCcVg9.js} +9 -9
  15. package/dist/{index-DIv5glVC.js → index-BZFpxFyZ.js} +422 -422
  16. package/dist/{index-Dm1_86kX.js → index-BgYMdBaM.js} +4 -5
  17. package/dist/index-BgwUuCZn.cjs +1 -0
  18. package/dist/{index-BJitBJZu.cjs → index-BvLNLX2m.cjs} +2 -2
  19. package/dist/{index-DoIHM98M.js → index-BvQxCFwq.js} +1 -1
  20. package/dist/{index-CilqH8oC.cjs → index-BvYov-FM.cjs} +1 -1
  21. package/dist/{index-DjhZHYH_.cjs → index-BxqdT6ZG.cjs} +1 -1
  22. package/dist/{index-B6_X9xq9.js → index-C-BnL_J8.js} +5 -6
  23. package/dist/{index-FBp-XX6h.js → index-C43LmEa1.js} +7051 -7021
  24. package/dist/{index-DbuzlHfh.js → index-C4kRcJZB.js} +21 -21
  25. package/dist/{index-8nzu3dKT.js → index-C9jJnj5S.js} +7 -7
  26. package/dist/{index-BVuLbYm9.cjs → index-CEGtcyt7.cjs} +1 -1
  27. package/dist/{index-Bhg9ISur.js → index-CHVY3mt7.js} +8 -9
  28. package/dist/index-CHXbD46C.cjs +87 -0
  29. package/dist/{index-BSAEf__V.js → index-CJja2QG9.js} +7 -7
  30. package/dist/{index-CNQtTLfb.cjs → index-CK03QmTY.cjs} +1 -1
  31. package/dist/index-CbfDuVGd.cjs +1 -0
  32. package/dist/{index-BxHhG5PY.js → index-CcbpKTyr.js} +3 -3
  33. package/dist/{index-BHxsT1eb.cjs → index-CiowzSFS.cjs} +1 -1
  34. package/dist/{index-CTTEAggF.cjs → index-CvagfQk6.cjs} +1 -1
  35. package/dist/{index-DrCpGMdZ.js → index-D-45U022.js} +11 -12
  36. package/dist/{index-UYsrvpRs.js → index-D9Mgi3hi.js} +4 -4
  37. package/dist/{index-AzrB9NlT.js → index-DGX_omwS.js} +4 -4
  38. package/dist/{index-BibIA5-P.cjs → index-DHhoPw_A.cjs} +1 -1
  39. package/dist/{index-CffNkMWN.cjs → index-DQycMGEY.cjs} +1 -1
  40. package/dist/{index-C8jmJvXd.cjs → index-DRpTJPjg.cjs} +1 -1
  41. package/dist/{index-BJIMXITA.js → index-DT0rIFKm.js} +6 -6
  42. package/dist/index-DcIVU-Ov.cjs +1 -0
  43. package/dist/{index-3dpRV7yS.cjs → index-DgY-01TT.cjs} +1 -1
  44. package/dist/{index-DHhMROzm.cjs → index-Dp0i47OJ.cjs} +1 -1
  45. package/dist/{index-DPm-3I4S.js → index-DqHrwwb1.js} +6 -6
  46. package/dist/{index-CA9lI4P8.js → index-DseMLCbI.js} +5 -5
  47. package/dist/{index-ZUmqWSaw.cjs → index-Dt5TGPLg.cjs} +1 -1
  48. package/dist/{index-BPDslvev.js → index-DtYFEnXc.js} +2 -2
  49. package/dist/{index-eSv5uzFM.js → index-NEUjKmq0.js} +354 -359
  50. package/dist/{index-VOSN3Mnh.js → index-NIMrswsz.js} +9 -9
  51. package/dist/{index-DMp2zGXo.js → index-ZuGl0u3I.js} +7 -7
  52. package/dist/{index-BimZK7wy.cjs → index-jESujSgy.cjs} +1 -1
  53. package/dist/{index-Dxfzna5p.cjs → index-jghM2Y0h.cjs} +1 -1
  54. package/dist/{index-BszUQuvL.cjs → index-sKVluUJX.cjs} +1 -1
  55. package/dist/{index-CdLmmvxi.cjs → index-uVl30He2.cjs} +1 -1
  56. package/dist/index-zMtEEusk.cjs +1 -0
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-Dr6igsfU.cjs → index.vue_vue_type_script_setup_true_lang-BaYvLcMI.cjs} +1 -1
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-CKDefrVd.js → index.vue_vue_type_script_setup_true_lang-CAcdw_AX.js} +3 -3
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-x_oCFRtr.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B4LEhoqI.cjs} +8 -8
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CaGB6aRQ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CopMGaPW.js} +11 -17
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CMsb25AU.js → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-BOZV3S47.js} +90 -89
  62. package/dist/index.vue_vue_type_style_index_0_scoped_306ecd73_lang-Dt5xjsaj.cjs +1 -0
  63. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CTM5_Xpt.js +1429 -0
  64. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DhLcXmdy.cjs +1 -0
  65. package/dist/login-BkG9ft6j.js +75 -0
  66. package/dist/login-uBBsyOif.cjs +1 -0
  67. package/dist/{main-C7zpT64X.js → main-B29DPpx0.js} +6 -6
  68. package/dist/{main-NoOanZcQ.cjs → main-DqvMBu9E.cjs} +1 -1
  69. package/dist/{menu-B-Z5KAh5.cjs → menu-CEY-shM3.cjs} +4 -4
  70. package/dist/{menu-D9x5_s9p.js → menu-Dz_fVXUK.js} +8 -8
  71. package/dist/menuIndex-BWim3TlH.js +33 -0
  72. package/dist/menuIndex-Cg6xI-jR.cjs +1 -0
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.css +1 -1
  75. package/dist/ss-component.js +10 -10
  76. package/dist/ss-component3.cjs +1 -1
  77. package/dist/ss-component3.js +1 -1
  78. package/dist/{threeModel-MVkoDB-c.cjs → threeModel-Djd02U60.cjs} +1 -1
  79. package/dist/{threeModel-BazaxATJ.js → threeModel-V5HRhps2.js} +5 -6
  80. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CnQhvwfL.js → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-B08ZEGHO.js} +2 -2
  81. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CBBWsMHp.cjs → threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-BTtFKEwD.cjs} +1 -1
  82. package/package.json +1 -1
  83. package/dist/array-CYOvmzeK.js +0 -1310
  84. package/dist/array-DAoy3WS9.cjs +0 -7
  85. package/dist/index-BA-Qtevs.cjs +0 -1
  86. package/dist/index-Bvr0YvSP.cjs +0 -74
  87. package/dist/index-CyOcoFxe.cjs +0 -1
  88. package/dist/index-D68A4TXc.cjs +0 -1
  89. package/dist/index-DBB_scdx.cjs +0 -1
  90. package/dist/index-Dnq8JVuW.cjs +0 -7
  91. package/dist/index-TEDdJfFz.js +0 -677
  92. package/dist/index-faxMOO3y.js +0 -1717
  93. package/dist/index.vue_vue_type_style_index_0_scoped_306ecd73_lang-B7CgbfdF.cjs +0 -1
  94. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-COxDD0Fj.cjs +0 -1
  95. package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DDi07ZiD.js +0 -1593
  96. package/dist/login-CARNmuDg.js +0 -103
  97. package/dist/login-DsWsywlE.cjs +0 -1
  98. package/dist/obj/model.mtl +0 -42
  99. package/dist/obj/model.obj +0 -26110
  100. package/public/obj/model.mtl +0 -42
  101. package/public/obj/model.obj +0 -26110
@@ -0,0 +1,1145 @@
1
+ import { ref as j, watch as Te, nextTick as Ia, resolveComponent as Xe, createBlock as Ye, openBlock as se, withCtx as z, createElementVNode as ie, renderSlot as Aa, onMounted as Ze, createElementBlock as ye, normalizeClass as $a, toDisplayString as Ae, createCommentVNode as Oa, Fragment as wa, renderList as Sa, normalizeStyle as Fa, createVNode as L, unref as Ra, defineComponent as Ma, createSlots as xa, createTextVNode as Ve } from "vue";
2
+ import { f as Le, g as oe, c as He, h as Va, i as Ha, s as je, u as ja, p as Ee, e as Ja, d as Ca } from "./menu-Dz_fVXUK.js";
3
+ import { u as Ua } from "./threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-B08ZEGHO.js";
4
+ import { a3 as Wa } from "./index-C4kRcJZB.js";
5
+ import { b as Je, f as qa, s as Ta } from "./index-D9Mgi3hi.js";
6
+ import { g as Ue, c as O, n as _a, o as za, p as Ga, q as Qa, r as Xa } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CopMGaPW.js";
7
+ import { _ as ea } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ const Ya = {
9
+ __name: "index",
10
+ props: {
11
+ isVisible: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ title: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ width: {
20
+ type: Number,
21
+ default: 200
22
+ }
23
+ },
24
+ setup(i) {
25
+ const n = i, a = j(null), e = j(!1), l = j(null);
26
+ return Te(
27
+ () => n == null ? void 0 : n.isVisible,
28
+ () => {
29
+ e.value = n == null ? void 0 : n.isVisible;
30
+ },
31
+ { deep: !0, immediate: !0 }
32
+ ), Te(
33
+ () => l.value,
34
+ () => {
35
+ Ia(() => {
36
+ var o, r;
37
+ (r = (o = a.value) == null ? void 0 : o.updatePopper) == null || r.call(o);
38
+ });
39
+ },
40
+ { deep: !0, immediate: !0 }
41
+ ), (o, r) => {
42
+ const y = Xe("el-popover");
43
+ return se(), Ye(y, {
44
+ visible: e.value,
45
+ placement: "bottom",
46
+ title: n == null ? void 0 : n.title,
47
+ width: n == null ? void 0 : n.width,
48
+ ref_key: "popOverRef",
49
+ ref: a
50
+ }, {
51
+ reference: z(() => [
52
+ ie("div", null, [
53
+ Aa(o.$slots, "reference", {
54
+ ref_key: "referenceRef",
55
+ ref: l
56
+ })
57
+ ])
58
+ ]),
59
+ default: z(() => [
60
+ ie("div", null, [
61
+ Aa(o.$slots, "content")
62
+ ])
63
+ ]),
64
+ _: 3
65
+ }, 8, ["visible", "title", "width"]);
66
+ };
67
+ }
68
+ }, Za = { class: "extra-button-content" }, La = { class: "table-operator-wrap" }, el = {
69
+ key: 0,
70
+ class: "extra-header"
71
+ }, al = ["onClick"], ll = { class: "extra-button-filter" }, il = { class: "form-content-value" }, ol = {
72
+ __name: "header",
73
+ props: {
74
+ compName: {
75
+ type: String,
76
+ default: "表格名称",
77
+ required: !1
78
+ },
79
+ buttons: {
80
+ type: Array,
81
+ default: () => []
82
+ },
83
+ columns: {
84
+ type: Array,
85
+ default: () => []
86
+ }
87
+ },
88
+ emits: ["buttonClick", "filter"],
89
+ setup(i, { emit: n }) {
90
+ const a = n, e = i, l = j(!1), o = j([]), r = j([{ label: "取消" }, { label: "确认" }]), y = (f) => {
91
+ a("buttonClick", f);
92
+ }, g = (f) => {
93
+ var A, m;
94
+ o.value = (m = (A = Ue(O(f))) == null ? void 0 : A.filter((D) => (D == null ? void 0 : D.label) !== "" && (D == null ? void 0 : D.label) !== "操作")) == null ? void 0 : m.map((D) => ({
95
+ label: (D == null ? void 0 : D.label) ?? "",
96
+ value: "",
97
+ name: (D == null ? void 0 : D.label) ?? "",
98
+ isFormColHidden: D == null ? void 0 : D.isTableColHidden
99
+ }));
100
+ }, u = (f) => {
101
+ (f == null ? void 0 : f.buttonName) === "确认" && a("filter", f == null ? void 0 : f.content), l.value = !1;
102
+ };
103
+ return Ze(() => {
104
+ g(e.columns);
105
+ }), Te(
106
+ () => e.columns,
107
+ () => {
108
+ g(e.columns);
109
+ },
110
+ { deep: !0, immediate: !0 }
111
+ ), (f, A) => {
112
+ var D;
113
+ const m = Xe("el-tooltip");
114
+ return se(), ye("div", Za, [
115
+ ie("div", {
116
+ class: $a(i.compName ? "table-name-wrap" : "")
117
+ }, Ae(i.compName), 3),
118
+ ie("div", La, [
119
+ e != null && e.buttons && ((D = e == null ? void 0 : e.buttons) == null ? void 0 : D.length) > 0 ? (se(), ye("div", el, [
120
+ (se(!0), ye(wa, null, Sa(e == null ? void 0 : e.buttons, (K, B) => (se(), ye("div", {
121
+ class: "extra-contents",
122
+ key: B
123
+ }, [
124
+ ie("div", {
125
+ class: "extra-content",
126
+ style: Fa({ background: (K == null ? void 0 : K.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" }),
127
+ onClick: (I) => y(K == null ? void 0 : K.label)
128
+ }, Ae(K == null ? void 0 : K.label), 13, al)
129
+ ]))), 128))
130
+ ])) : Oa("", !0),
131
+ ie("div", ll, [
132
+ L(Ya, {
133
+ title: "筛选数据",
134
+ width: 500,
135
+ isVisible: l.value
136
+ }, {
137
+ reference: z(() => [
138
+ L(m, {
139
+ content: "筛选",
140
+ placement: "top-start"
141
+ }, {
142
+ default: z(() => [
143
+ ie("div", {
144
+ class: "button-style",
145
+ onClick: A[0] || (A[0] = (K) => l.value = !l.value)
146
+ }, [
147
+ L(Ra(Wa), { color: "var(--ssComponent-black)" })
148
+ ])
149
+ ]),
150
+ _: 1
151
+ })
152
+ ]),
153
+ content: z(() => [
154
+ ie("div", il, [
155
+ (se(), Ye(Je, {
156
+ rowContents: o.value,
157
+ buttonValue: r.value,
158
+ isRowFlex: !0,
159
+ isEnableWrap: !1,
160
+ isButtonRow: !1,
161
+ key: r.value,
162
+ isStartJustify: !1,
163
+ onOnButtonClick: u
164
+ }, null, 8, ["rowContents", "buttonValue"]))
165
+ ])
166
+ ]),
167
+ _: 1
168
+ }, 8, ["isVisible"])
169
+ ])
170
+ ])
171
+ ]);
172
+ };
173
+ }
174
+ }, nl = /* @__PURE__ */ ea(ol, [["__scopeId", "data-v-a3b05d95"]]), sl = Le("formToTableComp", {
175
+ state: () => ({
176
+ selectArray: [],
177
+ selectString: ""
178
+ }),
179
+ actions: {
180
+ setSelectArray(i) {
181
+ this.selectArray = i;
182
+ },
183
+ setSelectString(i) {
184
+ this.selectString = i;
185
+ }
186
+ }
187
+ }), rl = { class: "calculator-content" }, tl = { class: "calculator-child" }, ul = { class: "calculator-child" }, dl = /* @__PURE__ */ Ma({
188
+ __name: "calculator",
189
+ setup(i) {
190
+ const n = j(), a = j();
191
+ return Ze(() => {
192
+ n.value = [
193
+ {
194
+ type: "Upload",
195
+ label: "输入",
196
+ name: "input"
197
+ }
198
+ ], a.value = [
199
+ {
200
+ type: "Upload",
201
+ label: "输出",
202
+ name: "output"
203
+ }
204
+ ];
205
+ }), (e, l) => (se(), ye("div", rl, [
206
+ ie("div", tl, [
207
+ L(Je, {
208
+ rowContents: n.value,
209
+ isRowFlex: !0
210
+ }, null, 8, ["rowContents"])
211
+ ]),
212
+ ie("div", ul, [
213
+ L(Je, {
214
+ rowContents: a.value,
215
+ isEdit: !1,
216
+ isRowFlex: !0
217
+ }, null, 8, ["rowContents"])
218
+ ])
219
+ ]));
220
+ }
221
+ }), cl = /* @__PURE__ */ ea(dl, [["__scopeId", "data-v-73db0fe7"]]), fl = Le("unit", {
222
+ state: () => ({
223
+ selectIndex: "",
224
+ selectMenu: "",
225
+ selectTitle: []
226
+ }),
227
+ actions: {
228
+ setSelectIndex(i) {
229
+ this.selectIndex = i;
230
+ },
231
+ setSelectMenu(i) {
232
+ this.selectMenu = i;
233
+ },
234
+ setSelectTitle(i) {
235
+ this.selectTitle = i;
236
+ }
237
+ }
238
+ }), Ea = (i, n) => {
239
+ let a = i, e = n;
240
+ return Array.isArray(a) && (a = a == null ? void 0 : a.map((l, o) => {
241
+ if (Array.isArray(l)) {
242
+ let r = {};
243
+ return l = l == null ? void 0 : l.forEach((y, g) => {
244
+ var u;
245
+ (u = e == null ? void 0 : e[g]) != null && u.prop ? r[e[g].prop] = y : Array.isArray(y) && (r.children = Ea(y, e));
246
+ }), Object.assign(r, { id: o });
247
+ } else
248
+ return l;
249
+ })), a;
250
+ }, Na = (i, n, a) => {
251
+ let e = i, l = n;
252
+ return e = e == null ? void 0 : e.map((o, r) => {
253
+ var y, g;
254
+ return !Array.isArray(o) || !((y = l == null ? void 0 : l[r]) != null && y.label) && !a || (o.unshift(((g = l == null ? void 0 : l[r]) == null ? void 0 : g.label) ?? ""), o.some((u) => Array.isArray(u)) && (o = o == null ? void 0 : o.map((u) => {
255
+ var f;
256
+ return Array.isArray(u) && (u = Na(u, (f = l == null ? void 0 : l[r]) == null ? void 0 : f.children, a)), u;
257
+ }))), o;
258
+ }), e;
259
+ }, yl = (i, n, a) => {
260
+ if (n === "")
261
+ return i == null ? void 0 : i.filter((e) => (e == null ? void 0 : e.id) !== a);
262
+ {
263
+ const e = n.split("-");
264
+ return pl(i, e, a);
265
+ }
266
+ }, pl = (i, n, a) => {
267
+ let e = i, l = n;
268
+ return (l == null ? void 0 : l.length) === 0 ? e = e == null ? void 0 : e.filter((o) => o.id !== a) : e = e == null ? void 0 : e.map((o) => (o.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), o = Ka(o, l, a)), o)), e;
269
+ }, Ka = (i, n, a) => {
270
+ var o, r;
271
+ let e = i, l = n;
272
+ return (l == null ? void 0 : l.length) === 0 ? e.children = (o = e.children) == null ? void 0 : o.filter((y) => y.id !== a) : e.children = (r = e.children) == null ? void 0 : r.map((y) => (y.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), y = Ka(y, l, a)), y)), e;
273
+ }, hl = (i, n, a) => {
274
+ if (n === "")
275
+ return a;
276
+ {
277
+ const e = n.split("-");
278
+ return gl(i, e, a);
279
+ }
280
+ }, gl = (i, n, a) => {
281
+ let e = i, l = n;
282
+ return (l == null ? void 0 : l.length) === 0 ? e = a : e = e == null ? void 0 : e.map((o) => (o.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), o = Pa(o, l, a)), o)), e;
283
+ }, Pa = (i, n, a) => {
284
+ var o;
285
+ let e = i, l = n;
286
+ return (l == null ? void 0 : l.length) === 0 ? e.children = a : e.children = (o = e.children) == null ? void 0 : o.map((r) => (r.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), r = Pa(r, l, a)), r)), e;
287
+ }, We = (i, n) => i == null ? void 0 : i.map((e) => {
288
+ var l, o, r, y, g, u;
289
+ if (Array.isArray(e) ? e = e : e = [e], (l = e == null ? void 0 : e.filter((f) => !(f != null && f.id))) != null && l.every((f) => typeof f != "object" || f === null))
290
+ return e;
291
+ if ((o = e == null ? void 0 : e.filter((f) => !(f != null && f.id))) != null && o.some((f) => Array.isArray(f)))
292
+ return e;
293
+ {
294
+ let f = [];
295
+ if (f.push(e == null ? void 0 : e.find((A) => A == null ? void 0 : A.id)), Array.isArray(n == null ? void 0 : n[0])) {
296
+ const A = (r = e == null ? void 0 : e.filter((m) => !(m != null && m.id))) == null ? void 0 : r[0];
297
+ (y = Ue(O(n == null ? void 0 : n[0]))) == null || y.forEach((m) => {
298
+ f.push(A == null ? void 0 : A[(m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.label) ?? m]);
299
+ });
300
+ } else {
301
+ const A = (g = e == null ? void 0 : e.filter((m) => !(m != null && m.id))) == null ? void 0 : g[0];
302
+ (u = Ue(O(n))) == null || u.forEach((m) => {
303
+ f.push(A == null ? void 0 : A[(m == null ? void 0 : m.prop) ?? (m == null ? void 0 : m.label) ?? m]);
304
+ });
305
+ }
306
+ return f;
307
+ }
308
+ }), _e = (i) => {
309
+ let n = [];
310
+ function a(l) {
311
+ Array.isArray(l) && (l == null || l.forEach((o) => {
312
+ Array.isArray(o) || (o = [o]), o == null || o.forEach((r) => {
313
+ !(r != null && r.children) || r.children.length === 0 ? n.push(r.label) : e(r.children);
314
+ });
315
+ }));
316
+ }
317
+ function e(l) {
318
+ l == null || l.forEach((o) => {
319
+ !(o != null && o.children) || o.children.length === 0 ? n.push(o.label) : e(o.children);
320
+ });
321
+ }
322
+ return a(i), n;
323
+ }, bl = (i, n, a) => {
324
+ var l;
325
+ let e = (l = O(i)) == null ? void 0 : l.map((o) => (o = o.filter((r) => !(r != null && r.id)), o));
326
+ return e = e == null ? void 0 : e.map((o) => {
327
+ var r;
328
+ return o = (r = o.map((y, g) => {
329
+ let u = {};
330
+ if (a != null && a.find((f) => f === n[g]))
331
+ return u[n[g]] = y, u;
332
+ })) == null ? void 0 : r.filter((y) => y), o;
333
+ }), e;
334
+ }, Ml = (i, n) => {
335
+ var r, y;
336
+ const a = O(i), e = (r = a == null ? void 0 : a.find((g) => (g == null ? void 0 : g.key) === "header")) == null ? void 0 : r.contents, l = (y = a == null ? void 0 : a.find((g) => (g == null ? void 0 : g.key) === "tableContents")) == null ? void 0 : y.contents;
337
+ return bl(l, _e(e).slice(0, _e(e).length - 1), n);
338
+ }, xl = (i) => {
339
+ let n = {};
340
+ return i == null || i.forEach((a) => {
341
+ n[a.key] = a.value;
342
+ }), n;
343
+ }, Vl = (i) => {
344
+ var a;
345
+ let n = [];
346
+ return (a = O(i)) == null || a.forEach((e) => {
347
+ let l = {};
348
+ e == null || e.forEach((o) => {
349
+ l[Object.keys(o)[0]] = Object.values(o)[0];
350
+ }), n.push(l);
351
+ }), n;
352
+ }, Hl = (i, n) => {
353
+ if (n != null && n[i])
354
+ return n == null ? void 0 : n[i];
355
+ }, ml = async (i) => {
356
+ var r, y, g;
357
+ if (!(i != null && i.extra)) return;
358
+ let n = (r = i == null ? void 0 : i.extra) == null ? void 0 : r.tableId, a = i == null ? void 0 : i.contents;
359
+ const l = (g = (await oe({
360
+ key: {
361
+ type: "data",
362
+ pageKey: (y = i == null ? void 0 : i.extra) == null ? void 0 : y.pageKey,
363
+ tableId: n,
364
+ systemKey: sessionStorage.getItem("systemKey")
365
+ }
366
+ })).data.result) == null ? void 0 : g.map((u) => u == null ? void 0 : u.id);
367
+ l && (l == null ? void 0 : l.length) > 0 && await Va({
368
+ ids: l
369
+ });
370
+ let o = [];
371
+ a == null || a.forEach((u) => {
372
+ var A, m;
373
+ let f = {};
374
+ (A = Object.keys(u)) == null || A.forEach((D) => {
375
+ f[D.toUpperCase()] = u[D.toLowerCase()];
376
+ }), o.push({
377
+ key: {
378
+ type: "data",
379
+ pageKey: (m = i == null ? void 0 : i.extra) == null ? void 0 : m.pageKey,
380
+ tableId: n,
381
+ systemKey: sessionStorage.getItem("systemKey")
382
+ },
383
+ value: {
384
+ tableData: f
385
+ }
386
+ });
387
+ }), await Ha({
388
+ dataList: o
389
+ });
390
+ }, vl = (i, n) => {
391
+ var o;
392
+ let a = O(i), e = !1, l = Object.keys(n);
393
+ return (o = a.compData) == null || o.forEach((r) => {
394
+ var y;
395
+ Array.isArray(r == null ? void 0 : r.contents) && ((y = r == null ? void 0 : r.contents) == null || y.forEach((g) => {
396
+ e = l.includes(g.key);
397
+ }));
398
+ }), e;
399
+ }, Jl = (i, n) => {
400
+ var l;
401
+ let a = O(i);
402
+ return vl(O(a), n) && (a.compData = (l = a.compData) == null ? void 0 : l.map((o) => {
403
+ var r;
404
+ return (o == null ? void 0 : o.key) === "formContent" && (o.contents = (r = o == null ? void 0 : o.contents) == null ? void 0 : r.map((y) => (Object.keys(n).includes(y.key) && (y.value = n[y.key]), y))), o;
405
+ })), a;
406
+ }, Ul = (i) => {
407
+ let n = O(i);
408
+ return n == null || n.forEach((a) => {
409
+ let e = {};
410
+ for (let l in a)
411
+ e[l.toUpperCase()] = a[l];
412
+ }), n;
413
+ }, Wl = async (i) => {
414
+ var r, y, g, u, f;
415
+ let n = (y = (r = i == null ? void 0 : i[0]) == null ? void 0 : r.find((A) => A == null ? void 0 : A.id)) == null ? void 0 : y.id;
416
+ const a = await oe({
417
+ id: n
418
+ });
419
+ let e = await ((f = (u = (g = a == null ? void 0 : a.data) == null ? void 0 : g.result) == null ? void 0 : u[0]) == null ? void 0 : f.key), l = e == null ? void 0 : e.pageKey, o = e == null ? void 0 : e.tableId;
420
+ return {
421
+ pageKey: l,
422
+ tableId: o
423
+ };
424
+ }, kl = async (i) => {
425
+ let n = {
426
+ comp: i == null ? void 0 : i.comp,
427
+ compData: i == null ? void 0 : i.compData,
428
+ name: i == null ? void 0 : i.name
429
+ };
430
+ await He({
431
+ id: i == null ? void 0 : i.id,
432
+ value: {
433
+ pageData: n
434
+ }
435
+ });
436
+ }, ql = async (i) => {
437
+ let n = i == null ? void 0 : i.map(async (a) => {
438
+ var l;
439
+ let e;
440
+ return (a == null ? void 0 : a.comp) === "Form" ? e = await kl(a) : (a == null ? void 0 : a.comp) === "Table" && (e = await ml((l = a == null ? void 0 : a.compData) == null ? void 0 : l.find((o) => (o == null ? void 0 : o.key) === "tableContents"))), e;
441
+ });
442
+ await Promise.all(n);
443
+ }, qe = (i, n) => {
444
+ let a = {};
445
+ return Array.isArray(i) ? i == null || i.forEach((e, l) => {
446
+ a[n[l]] = e;
447
+ }) : [i].forEach((e, l) => {
448
+ a[n[l]] = e;
449
+ }), a;
450
+ }, Qe = ja(Ee), { activeMenuPath: Al } = je(Qe), Cl = (i) => {
451
+ var a;
452
+ const n = Array.isArray(i) ? i == null ? void 0 : i[0] : {};
453
+ return (a = n == null ? void 0 : n.contents) == null ? void 0 : a.map((e) => ({
454
+ ...e[0],
455
+ ...e[1]
456
+ }));
457
+ }, Tl = async (i, n) => {
458
+ var u, f, A, m, D, K, B, I, ee, J, G, V, C, P, R, F;
459
+ const a = (f = (u = i == null ? void 0 : i.find((E) => (E == null ? void 0 : E.key) === "header")) == null ? void 0 : u.contents) == null ? void 0 : f.find((E) => E == null ? void 0 : E.columnPath);
460
+ let e = (m = (A = O(a == null ? void 0 : a.columnPath)) == null ? void 0 : A.split("[")) == null ? void 0 : m[0], l = (ee = (I = (B = (K = (D = O(a == null ? void 0 : a.columnPath)) == null ? void 0 : D.split("[")) == null ? void 0 : K[1]) == null ? void 0 : B.split("]")) == null ? void 0 : I[0]) == null ? void 0 : ee.replaceAll("'", ""), o = [];
461
+ const r = await oe({
462
+ key: {
463
+ pageKey: e,
464
+ systemKey: sessionStorage.getItem("systemKey"),
465
+ type: "structure"
466
+ }
467
+ }), y = await oe({
468
+ key: {
469
+ pageKey: Al.value,
470
+ systemKey: sessionStorage.getItem("systemKey"),
471
+ tableId: parseInt(n),
472
+ type: "data"
473
+ }
474
+ }), g = [];
475
+ if ((G = (J = y == null ? void 0 : y.data) == null ? void 0 : J.result) == null || G.forEach((E) => {
476
+ g.push(
477
+ [
478
+ {
479
+ id: E == null ? void 0 : E.id
480
+ },
481
+ E.value.tableData
482
+ ]
483
+ );
484
+ }), Array.isArray((V = r == null ? void 0 : r.data) == null ? void 0 : V.result) && ((P = (C = r == null ? void 0 : r.data) == null ? void 0 : C.result) == null ? void 0 : P.length) > 0) {
485
+ const E = await ((F = (R = r == null ? void 0 : r.data) == null ? void 0 : R.result) == null ? void 0 : F.map(async (N) => {
486
+ var de, Q, ae, be, T, Ce, ne, Ne, Ke, Pe, Be, Ie, $e, Re, De;
487
+ if (((Q = (de = N == null ? void 0 : N.value) == null ? void 0 : de.pageData) == null ? void 0 : Q.name) === l) {
488
+ o = O((be = (ae = N == null ? void 0 : N.value) == null ? void 0 : ae.pageData) == null ? void 0 : be.compData);
489
+ const Oe = await oe({
490
+ key: {
491
+ pageKey: e,
492
+ systemKey: sessionStorage.getItem("systemKey"),
493
+ tableId: N == null ? void 0 : N.id,
494
+ type: "data"
495
+ }
496
+ }), ze = (Ce = (T = Oe == null ? void 0 : Oe.data) == null ? void 0 : T.result) == null ? void 0 : Ce.map(($) => {
497
+ var s;
498
+ let me = [];
499
+ return me.push({
500
+ id: $ == null ? void 0 : $.id
501
+ }), me.push((s = $ == null ? void 0 : $.value) == null ? void 0 : s.tableData), me;
502
+ });
503
+ let Me = We(g, (Pe = (Ke = (Ne = (ne = N == null ? void 0 : N.value) == null ? void 0 : ne.pageData) == null ? void 0 : Ne.compData) == null ? void 0 : Ke.find(($) => ($ == null ? void 0 : $.key) === "header")) == null ? void 0 : Pe.contents), we = !1;
504
+ we = ((Be = O(Me)) == null ? void 0 : Be.map(($) => $.slice(1))).every(($) => $.every((me) => me === void 0)), we ? o.push({
505
+ key: "tableContents",
506
+ contents: We(ze, (De = (Re = ($e = (Ie = N == null ? void 0 : N.value) == null ? void 0 : Ie.pageData) == null ? void 0 : $e.compData) == null ? void 0 : Re.find(($) => ($ == null ? void 0 : $.key) === "header")) == null ? void 0 : De.contents)
507
+ }) : o.push({
508
+ key: "tableContents",
509
+ contents: Me
510
+ });
511
+ }
512
+ }));
513
+ await Promise.all(E);
514
+ }
515
+ return o;
516
+ }, Da = async (i, n, a = "", e, l = !1, o) => {
517
+ var K, B, I, ee, J, G, V;
518
+ let r;
519
+ if (!l)
520
+ r = await oe({
521
+ key: {
522
+ pageKey: i,
523
+ systemKey: n,
524
+ parentTable: a
525
+ }
526
+ });
527
+ else {
528
+ let C = o == null ? void 0 : o.map((R) => {
529
+ if (R)
530
+ return oe({ id: R });
531
+ });
532
+ const P = await Promise.all(C);
533
+ r = {
534
+ data: {
535
+ result: P == null ? void 0 : P.map((R) => {
536
+ var F, E;
537
+ return (E = (F = R == null ? void 0 : R.data) == null ? void 0 : F.result) == null ? void 0 : E[0];
538
+ })
539
+ }
540
+ };
541
+ }
542
+ const y = await oe({
543
+ key: {
544
+ pageKey: i,
545
+ systemKey: n,
546
+ type: "structureMethod"
547
+ }
548
+ }), g = (B = (K = r == null ? void 0 : r.data) == null ? void 0 : K.result) == null ? void 0 : B.map((C) => C.id);
549
+ if (!g) return;
550
+ const u = g == null ? void 0 : g.map((C) => oe({
551
+ key: {
552
+ pageKey: i,
553
+ systemKey: n,
554
+ tableId: C
555
+ }
556
+ })), f = await Promise.all(u), A = [];
557
+ f == null || f.forEach((C) => {
558
+ var F, E, N, de;
559
+ const P = (F = C.data.result) == null ? void 0 : F.map((Q) => {
560
+ const ae = Array.isArray(Q.value.tableData) ? Q.value.tableData : [Q.value.tableData];
561
+ return ae.unshift({
562
+ id: Q.id
563
+ }), ae;
564
+ }), R = (de = (N = (E = C.data.result) == null ? void 0 : E[0]) == null ? void 0 : N.key) == null ? void 0 : de.tableId;
565
+ A.push({
566
+ key: R,
567
+ contents: P
568
+ });
569
+ });
570
+ let m = [];
571
+ const D = await ((I = r.data.result) == null ? void 0 : I.map(async (C) => {
572
+ var E, N, de, Q, ae, be;
573
+ const P = C.value.pageData, R = C == null ? void 0 : C.id;
574
+ let F = (E = O(P.compData)) == null ? void 0 : E.filter((T) => (T == null ? void 0 : T.key) !== "tableContents");
575
+ if (F && (F != null && F.find((T) => (T == null ? void 0 : T.key) === "header")) && ((de = (N = F == null ? void 0 : F.find((T) => (T == null ? void 0 : T.key) === "header")) == null ? void 0 : N.contents) != null && de.every((T) => !(T != null && T.columnPath))) ? F.push({
576
+ key: "tableContents",
577
+ // contents: getTableContents(currentTableContents?.find((v: any) => v?.key === t.id)?.contents, newCompData?.find((s: any) => s?.key === "header")?.contents)
578
+ contents: e === "/系统管理/用户管理" ? Cl(A) : We((Q = A == null ? void 0 : A.find((T) => (T == null ? void 0 : T.key) === C.id)) == null ? void 0 : Q.contents, (ae = F == null ? void 0 : F.find((T) => (T == null ? void 0 : T.key) === "header")) == null ? void 0 : ae.contents)
579
+ }) : F && (F != null && F.find((T) => (T == null ? void 0 : T.key) === "header")) && (F = await Tl(O(F), R)), P.compData = F, P.id = C.id, ((be = C.key) == null ? void 0 : be.type) !== "method")
580
+ m.push(P);
581
+ else {
582
+ let T;
583
+ T = {
584
+ name: "",
585
+ compData: [P],
586
+ comp: "calculator"
587
+ }, m.push(T);
588
+ }
589
+ }));
590
+ return await Promise.all(D), ((J = (ee = y.data.result) == null ? void 0 : ee.map((C) => C.value.pageData)) == null ? void 0 : J.filter((C) => Object.values(C).length > 0).length) > 0 && m.push({
591
+ comp: "methodButton",
592
+ name: "",
593
+ compData: (V = (G = y.data.result) == null ? void 0 : G.map((C) => C.value.pageData)) == null ? void 0 : V.filter((C) => Object.values(C).length > 0)
594
+ }), m = m.sort((C, P) => C.id - P.id), m;
595
+ }, zl = async (i) => {
596
+ await Ja({
597
+ id: i
598
+ });
599
+ }, Gl = async (i, n, a, e, l, o, r) => {
600
+ var g, u, f, A, m, D, K, B, I, ee, J, G, V;
601
+ const y = ((u = (g = r == null ? void 0 : r.content) == null ? void 0 : g[0]) == null ? void 0 : u.id) ?? "";
602
+ if (y !== "" && ((f = r == null ? void 0 : r.content) == null ? void 0 : f.length) > 1) {
603
+ const C = await oe({
604
+ id: y
605
+ });
606
+ let P = ((K = (D = (m = (A = C == null ? void 0 : C.data) == null ? void 0 : A.result) == null ? void 0 : m[0]) == null ? void 0 : D.key) == null ? void 0 : K.tableId) ?? "", R = ((J = (ee = (I = (B = C == null ? void 0 : C.data) == null ? void 0 : B.result) == null ? void 0 : I[0]) == null ? void 0 : ee.key) == null ? void 0 : J.pageKey) ?? "";
607
+ await Ca({
608
+ key: {
609
+ type: i,
610
+ pageKey: R,
611
+ tableId: P,
612
+ systemKey: e
613
+ },
614
+ value: {
615
+ tableData: qe(l, (G = _e(o)) == null ? void 0 : G.filter((F) => F !== "操作"))
616
+ }
617
+ });
618
+ } else
619
+ await Ca({
620
+ key: {
621
+ type: i,
622
+ pageKey: n,
623
+ tableId: a,
624
+ systemKey: e
625
+ },
626
+ value: {
627
+ tableData: qe(l, (V = _e(o)) == null ? void 0 : V.filter((C) => C !== "操作"))
628
+ }
629
+ });
630
+ }, Ql = async (i, n, a, e, l, o, r) => {
631
+ var f, A, m, D, K, B, I, ee, J, G;
632
+ const y = await oe({
633
+ id: e
634
+ });
635
+ let g = ((D = (m = (A = (f = y == null ? void 0 : y.data) == null ? void 0 : f.result) == null ? void 0 : A[0]) == null ? void 0 : m.key) == null ? void 0 : D.tableId) ?? "", u = ((ee = (I = (B = (K = y == null ? void 0 : y.data) == null ? void 0 : K.result) == null ? void 0 : B[0]) == null ? void 0 : I.key) == null ? void 0 : ee.pageKey) ?? "";
636
+ g && g !== "" ? await He({
637
+ key: {
638
+ type: i,
639
+ pageKey: u,
640
+ tableId: g,
641
+ systemKey: l
642
+ },
643
+ value: {
644
+ tableData: qe(o, (J = _e(r)) == null ? void 0 : J.filter((V) => V !== "操作"))
645
+ },
646
+ id: e
647
+ }) : await He({
648
+ key: {
649
+ type: i,
650
+ pageKey: n,
651
+ tableId: a,
652
+ systemKey: l
653
+ },
654
+ value: {
655
+ tableData: qe(o, (G = _e(r)) == null ? void 0 : G.filter((V) => V !== "操作"))
656
+ },
657
+ id: e
658
+ });
659
+ }, Xl = async (i, n) => {
660
+ await He({
661
+ value: {
662
+ pageData: n
663
+ },
664
+ id: i
665
+ });
666
+ }, _l = async (i, n) => await oe({
667
+ key: i,
668
+ valueLikes: n
669
+ }), Yl = async () => {
670
+ var i, n, a, e, l, o, r, y, g;
671
+ try {
672
+ const u = await oe({
673
+ key: {
674
+ systemKey: sessionStorage.getItem("systemKey"),
675
+ layer: "superAdmin"
676
+ }
677
+ });
678
+ ((i = u == null ? void 0 : u.data) == null ? void 0 : i.code) === 200 && (Qe.setPlatform(((l = (e = (a = (n = u == null ? void 0 : u.data) == null ? void 0 : n.result) == null ? void 0 : a[0]) == null ? void 0 : e.key) == null ? void 0 : l.systemType) === "制造系统" ? "client" : "browser"), Qe.setPlatName(((g = (y = (r = (o = u == null ? void 0 : u.data) == null ? void 0 : o.result) == null ? void 0 : r[0]) == null ? void 0 : y.key) == null ? void 0 : g.name) ?? ""));
679
+ } catch (u) {
680
+ return Promise.reject(u);
681
+ }
682
+ }, Dl = Le("modelTableComp", {
683
+ state: () => ({
684
+ tableIndex: 0,
685
+ tableShowThree: ""
686
+ }),
687
+ actions: {
688
+ setTableIndex(i) {
689
+ this.tableIndex = i;
690
+ },
691
+ setTableShowThree(i) {
692
+ this.tableShowThree = i;
693
+ }
694
+ }
695
+ }), Ol = { class: "table-content" }, wl = ["onClick"], Sl = { class: "form-content" }, Fl = {
696
+ key: 0,
697
+ class: "dialog-footer"
698
+ }, jl = { class: "dialog-footer" }, El = {
699
+ __name: "index",
700
+ props: {
701
+ compName: {
702
+ type: String,
703
+ default: "",
704
+ required: !1
705
+ },
706
+ operatingForm: {
707
+ type: Object,
708
+ default: () => {
709
+ }
710
+ },
711
+ itemData: {
712
+ type: Array,
713
+ default: () => []
714
+ },
715
+ childItemData: {
716
+ type: Array,
717
+ default: () => []
718
+ },
719
+ index: Number,
720
+ changedContent: {
721
+ type: Object,
722
+ default: () => {
723
+ }
724
+ }
725
+ },
726
+ emits: ["change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick"],
727
+ setup(i, { emit: n }) {
728
+ const a = i, e = n, l = j([]), o = ja(), { activeMenuPath: r } = je(o), y = Dl(Ee), g = Ua(Ee), { extraContents: u } = je(g), f = j([]);
729
+ j(!1);
730
+ const A = j("");
731
+ j();
732
+ const m = j(!0), D = j(0), K = j(!1), B = j(""), I = j(!1), ee = j({
733
+ label: "查看三维模型"
734
+ }), J = j(!1), G = j(), V = j([]), C = j([]), P = j(!1), R = j([]), F = j([]), E = j(), N = j(), de = sl(Ee), Q = j(), ae = fl(Ee), { selectIndex: be, selectMenu: T, selectTitle: Ce } = je(ae), { selectString: ne } = je(de), Ne = j(720), Ke = () => {
735
+ I.value = !1;
736
+ }, Pe = (s) => {
737
+ e("clickTrigger", s);
738
+ }, Be = (s, c) => {
739
+ if (Object.values(c).length !== 0)
740
+ return Object.values(c).find((p) => {
741
+ var _, k, h;
742
+ return ((_ = p == null ? void 0 : p.toString()) == null ? void 0 : _.includes(".txt")) || ((k = p == null ? void 0 : p.toString()) == null ? void 0 : k.includes(".cpt")) || ((h = p == null ? void 0 : p.toString()) == null ? void 0 : h.includes(".obj"));
743
+ }) ? [...s, ee.value] : s;
744
+ }, Ie = (s) => {
745
+ var k;
746
+ ne.value === "" ? s == null || s[0] : (s == null ? void 0 : s.find((h) => (h == null ? void 0 : h.selectLabel) === "(" + ne.value + ")")) ?? (s == null || s.find((h) => !(h != null && h.selectLabel)));
747
+ let c = s;
748
+ (k = l.value) != null && k.find((h) => h.prop === "index");
749
+ let p = E.value;
750
+ const _ = [];
751
+ return c == null || c.forEach((h, t) => {
752
+ var H;
753
+ let w = {};
754
+ if (Array.isArray(h)) {
755
+ let S = [];
756
+ h == null || h.filter((M) => !(M != null && M.id)).forEach((M, U) => {
757
+ var pe, x, X, he, ce;
758
+ if ((pe = p == null ? void 0 : p[U]) != null && pe.prop && !Array.isArray(M)) {
759
+ let re = {};
760
+ re[p[U].column] = M, u != null && u.value && ((x = u == null ? void 0 : u.value) == null ? void 0 : x.length) > 0 && ((X = u == null ? void 0 : u.value) != null && X.find((Y) => JSON.stringify(Y == null ? void 0 : Y[0]) === JSON.stringify(re))) && (S = (he = u == null ? void 0 : u.value) == null ? void 0 : he.find((Y) => JSON.stringify(Y == null ? void 0 : Y[0]) === JSON.stringify(re))), S && S.length > 0 ? w[p[U].prop] = S != null && S.find((Y) => {
761
+ var ge;
762
+ return ((ge = Object.keys(Y)) == null ? void 0 : ge[0]) === p[U].column;
763
+ }) ? (ce = S == null ? void 0 : S.find((Y) => {
764
+ var ge;
765
+ return ((ge = Object.keys(Y)) == null ? void 0 : ge[0]) === p[U].column;
766
+ })) == null ? void 0 : ce[p[U].column] : M : w[p[U].prop] = M;
767
+ }
768
+ });
769
+ } else
770
+ w = h;
771
+ Array.isArray(h) && h.some((S) => S == null ? void 0 : S.id) ? _.push(Object.assign(w, { id: (H = h == null ? void 0 : h.find((S) => S.id)) == null ? void 0 : H.id })) : w.id ? _.push(w) : _.push(Object.assign(w, { id: t }));
772
+ }), _;
773
+ }, $e = async (s) => {
774
+ var k, h, t, w, H;
775
+ let c = {};
776
+ for (let S in s)
777
+ s[S] !== "" && (c["tableData." + S] = s[S]);
778
+ const p = await _l({
779
+ type: "data",
780
+ tableId: a == null ? void 0 : a.index,
781
+ systemKey: sessionStorage.getItem("systemKey"),
782
+ pageKey: r.value
783
+ }, c), _ = (t = (h = (k = O(p)) == null ? void 0 : k.data) == null ? void 0 : h.result) == null ? void 0 : t.map((S) => {
784
+ var U;
785
+ let M = [];
786
+ return M.push({
787
+ id: S.id
788
+ }), M.push((U = S == null ? void 0 : S.value) == null ? void 0 : U.tableData), M;
789
+ });
790
+ f.value = Ie(We(_, (H = (w = O(l.value)) == null ? void 0 : w.map((S) => S.label)) == null ? void 0 : H.filter((S) => S !== "操作")));
791
+ }, Re = async (s) => {
792
+ var _, k, h, t, w, H, S, M, U, pe;
793
+ const c = (_ = O(l.value)) == null ? void 0 : _.filter((x) => x == null ? void 0 : x.isRoute);
794
+ if ((c == null ? void 0 : c.length) > 0) {
795
+ let x = (k = c == null ? void 0 : c[0]) == null ? void 0 : k.prop, X = r.value + "/" + (s == null ? void 0 : s[x]), he = r.value, ce = await Da(X, sessionStorage.getItem("systemKey"), "", X);
796
+ if ((ce == null ? void 0 : ce.length) > 0)
797
+ g.setRouteToChildPath(he), o.setActiveMenuPath(X);
798
+ else {
799
+ const re = await Qa(a == null ? void 0 : a.index);
800
+ re && (X = r.value + "/" + (re == null ? void 0 : re[(h = c == null ? void 0 : c[0]) == null ? void 0 : h.label]), await Xa(X, r.value + "/" + (s == null ? void 0 : s[x])), g.setRouteToChildPath(he), o.setActiveMenuPath(r.value + "/" + (s == null ? void 0 : s[x])));
801
+ }
802
+ }
803
+ let p = await Da(r.value, sessionStorage.getItem("systemKey"), s.id);
804
+ if (p = p == null ? void 0 : p.filter((x) => x.comp !== "methodButton"), p && p.length > 0) {
805
+ const x = !Array.isArray(Ce.value) && ((t = Ce.value) == null ? void 0 : t.key) !== "main" ? [] : Ce.value;
806
+ x.push({
807
+ key: T.value === "" ? (w = s == null ? void 0 : s.id) == null ? void 0 : w.toString() : T.value + "-" + ((H = s == null ? void 0 : s.id) == null ? void 0 : H.toString()),
808
+ value: s[(S = Object.keys(s)) == null ? void 0 : S.filter((X) => X !== "index" && X !== "id")[0]]
809
+ }), ae.setSelectMenu(T.value === "" ? (M = s == null ? void 0 : s.id) == null ? void 0 : M.toString() : T.value + "-" + ((U = s == null ? void 0 : s.id) == null ? void 0 : U.toString())), ae.setSelectTitle(x), ae.setSelectIndex((pe = s == null ? void 0 : s.id) == null ? void 0 : pe.toString()), e("pageChange", p);
810
+ }
811
+ }, De = (s) => {
812
+ var c;
813
+ (c = O(a.itemData)) == null || c.map((p) => ((p == null ? void 0 : p.key) === "tableContents" && (p.contents = s), p));
814
+ }, Oe = (s, c, p) => {
815
+ e("contentClick", s, c, p, { id: a == null ? void 0 : a.index, type: "table" });
816
+ }, ze = (s) => {
817
+ e("rowClick", s);
818
+ };
819
+ Te(
820
+ () => a.changedContent,
821
+ () => {
822
+ var p, _;
823
+ if (!a.changedContent) return;
824
+ let s = (p = f.value) == null ? void 0 : p.map((k) => {
825
+ var h;
826
+ return k.id === ((h = a.changedContent) == null ? void 0 : h.id) && (k = {
827
+ ...a.changedContent,
828
+ id: a.changedContent.newId ? a.changedContent.newId : a.changedContent.id
829
+ }, delete k.newId), k;
830
+ });
831
+ const c = (_ = a.itemData) == null ? void 0 : _.map((k) => ((k == null ? void 0 : k.key) === "tableContents" && (k.contents = s), k));
832
+ f.value = s, e("contentChange", {
833
+ contents: c,
834
+ index: a.index
835
+ }), e("change", {
836
+ content: s,
837
+ index: a == null ? void 0 : a.index,
838
+ buttonName: "",
839
+ id: a == null ? void 0 : a.index
840
+ });
841
+ },
842
+ { deep: !0, immediate: !0 }
843
+ );
844
+ const Me = () => {
845
+ }, we = (s, c, p) => {
846
+ var _, k, h;
847
+ if (A.value = "", P.value = !0, m.value = !0, e("onButtonClick", s, c), s === "删除") {
848
+ f.value = (_ = O(f.value)) == null ? void 0 : _.filter((w) => (w == null ? void 0 : w.id) !== (c == null ? void 0 : c.id));
849
+ const t = yl(Q.value, T.value, c == null ? void 0 : c.id);
850
+ De(t), e("change", {
851
+ content: f.value,
852
+ singleContent: c,
853
+ index: a == null ? void 0 : a.index,
854
+ type: "delete",
855
+ buttonName: s,
856
+ column: l.value
857
+ });
858
+ } else if (s === "新增")
859
+ B.value = "新增", Se(""), I.value = !0;
860
+ else if (s === "编辑")
861
+ B.value = "编辑", Se(c), I.value = !0;
862
+ else if (s === "查看")
863
+ B.value = "查看", Se(c), P.value = !1, m.value = !1, I.value = !0;
864
+ else if (s === "查看三维模型") {
865
+ const t = {};
866
+ for (let H in c)
867
+ H !== "id" && (t[H] = c[H]);
868
+ let w = (k = Object.values(t)) == null ? void 0 : k[1];
869
+ y.setTableShowThree(w);
870
+ } else ((h = p == null ? void 0 : p.extra) == null ? void 0 : h.type) === "modelExample" && (B.value = s, J.value = !0);
871
+ }, Se = (s) => {
872
+ var _, k, h;
873
+ const c = [];
874
+ let p = [];
875
+ for (let t in s)
876
+ Array.isArray(s == null ? void 0 : s[t]) && p.push(t);
877
+ (k = Ue((_ = O(l.value)) == null ? void 0 : _.filter((t) => (t == null ? void 0 : t.label) !== "操作"))) == null || k.forEach((t, w) => {
878
+ p.find((H) => H === (t == null ? void 0 : t.prop)) || c.push({
879
+ label: (t == null ? void 0 : t.label) ?? "",
880
+ name: (t == null ? void 0 : t.prop) ?? "t" + w,
881
+ type: !(t != null && t.formType) || (t == null ? void 0 : t.formType) === "" ? "Input" : t == null ? void 0 : t.formType,
882
+ value: (s == null ? void 0 : s[t == null ? void 0 : t.prop]) ?? (t == null ? void 0 : t.value) ?? "",
883
+ id: (t == null ? void 0 : t.id) ?? w,
884
+ contents: (t == null ? void 0 : t.options) ?? [],
885
+ width: 1,
886
+ isFormColHidden: t == null ? void 0 : t.isFormColHidden
887
+ });
888
+ }), s === "" || !s || (A.value = s == null ? void 0 : s.id), F.value = V.value && ((h = V.value) == null ? void 0 : h.length) > 0 ? Ga(V.value) : c;
889
+ };
890
+ Ze(() => {
891
+ G.value = window.innerWidth - 240 * 2;
892
+ });
893
+ const $ = () => {
894
+ let s, c = O(f.value);
895
+ A.value === "" ? (D.value++, c.push(Object.assign(N.value, { id: D.value })), s = Object.assign(N.value, { id: D.value })) : c = c == null ? void 0 : c.map((_) => ((_ == null ? void 0 : _.id) === A.value && (_ = Object.assign(_, N.value), s = _), _)), f.value = c;
896
+ const p = hl(Q.value, T.value, c);
897
+ De(p), I.value = !1, e("change", {
898
+ content: p,
899
+ singleContent: s,
900
+ index: a == null ? void 0 : a.index,
901
+ buttonName: B.value,
902
+ column: l.value
903
+ });
904
+ }, me = (s) => {
905
+ N.value = s, e("onFormChange", s);
906
+ };
907
+ return Te(
908
+ () => [a.itemData, ne.value, be.value, T.value, u == null ? void 0 : u.value],
909
+ () => {
910
+ var H, S, M, U, pe, x, X, he, ce, re, Y, ge, aa, la, ia, oa, na, sa, ra, ta, ua, da, ca, fa, ya, pa;
911
+ const s = (H = O(a.itemData)) == null ? void 0 : H.filter((b) => (b == null ? void 0 : b.key) === "header");
912
+ (S = O(a.itemData)) == null || S.filter((b) => (b == null ? void 0 : b.key) === "tableIndexColumn")[0];
913
+ const c = (M = O(a.itemData)) == null ? void 0 : M.find((b) => (b == null ? void 0 : b.key) === "page"), p = (U = O(a.itemData)) == null ? void 0 : U.find((b) => (b == null ? void 0 : b.key) === "rowButton"), _ = (pe = O(a.itemData)) == null ? void 0 : pe.find((b) => (b == null ? void 0 : b.key) === "extraButton"), k = (x = O(a.itemData)) == null ? void 0 : x.filter((b) => (b == null ? void 0 : b.key) === "tableContents"), h = (X = O(a.itemData)) == null ? void 0 : X.filter((b) => (b == null ? void 0 : b.key) === "tableIndex");
914
+ V.value = (re = (ce = (he = O(a.itemData)) == null ? void 0 : he.filter((b) => (b == null ? void 0 : b.key) === "tableToForm")) == null ? void 0 : ce[0]) == null ? void 0 : re.contents, K.value = (c == null ? void 0 : c.contents) ?? !1;
915
+ let t = [];
916
+ ne.value === "" ? t = s == null ? void 0 : s[0] : t = (s == null ? void 0 : s.find((b) => (b == null ? void 0 : b.selectLabel) === "(" + ne.value + ")")) ?? (s == null ? void 0 : s.find((b) => !(b != null && b.selectLabel)));
917
+ let w = [];
918
+ if (ne.value === "" ? w = h == null ? void 0 : h[0] : w = (h == null ? void 0 : h.find((b) => (b == null ? void 0 : b.selectLabel) === "(" + ne.value + ")")) ?? (h == null ? void 0 : h.find((b) => !(b != null && b.selectLabel))), ((Y = t == null ? void 0 : t.contents) == null ? void 0 : Y.length) > 0) {
919
+ let b = [];
920
+ if (t != null && t.contents.some((v) => Array.isArray(v) && (v == null ? void 0 : v.find((d) => d.children))))
921
+ T.value === "" ? b = (aa = (ge = _a(O(t == null ? void 0 : t.contents))) == null ? void 0 : ge[0]) == null ? void 0 : aa.filter((v) => !Array.isArray(v)) : (T.value.split("-"), b = (la = _a(O(t == null ? void 0 : t.contents))) == null ? void 0 : la[0]);
922
+ else {
923
+ const v = t != null && t.contents.some((d) => Array.isArray(d)) ? (ia = t == null ? void 0 : t.contents) == null ? void 0 : ia[0] : t == null ? void 0 : t.contents;
924
+ v == null || v.forEach((d, W) => {
925
+ b.push({
926
+ label: (d == null ? void 0 : d.label) ?? "",
927
+ prop: (d == null ? void 0 : d.label) === "操作" ? "operate" : (d == null ? void 0 : d.prop) ?? "a" + W,
928
+ width: (d == null ? void 0 : d.label) === "操作" ? "200" : d != null && d.width ? parseInt(d.width) : "",
929
+ fixed: (d == null ? void 0 : d.fixed) ?? void 0,
930
+ sortable: (d == null ? void 0 : d.sortable) ?? !1,
931
+ align: (d == null ? void 0 : d.align) ?? "center",
932
+ showOverflowTooltip: (d == null ? void 0 : d.showOverflowTooltip) ?? !0,
933
+ isNotDrag: (d == null ? void 0 : d.isNotDrag) ?? !1,
934
+ isEditCol: (d == null ? void 0 : d.isEditCol) ?? !1,
935
+ isOperate: (d == null ? void 0 : d.isOperate) ?? !1,
936
+ id: (d == null ? void 0 : d.id) ?? W,
937
+ type: (d == null ? void 0 : d.label) === "操作" ? "operate" : void 0,
938
+ formType: (d == null ? void 0 : d.formType) ?? "",
939
+ isTableColHidden: d == null ? void 0 : d.isTableColHidden,
940
+ isFormColHidden: d == null ? void 0 : d.isFormColHidden,
941
+ options: (d == null ? void 0 : d.options) ?? [],
942
+ value: (d == null ? void 0 : d.value) ?? "",
943
+ formMenuSelect: (d == null ? void 0 : d.formMenuSelect) ?? [],
944
+ isRoute: (d == null ? void 0 : d.isRoute) ?? !1
945
+ });
946
+ });
947
+ }
948
+ l.value = b;
949
+ let le = (na = (oa = za(O(l.value))) == null ? void 0 : oa.filter((v) => (v == null ? void 0 : v.type) !== "operate")) == null ? void 0 : na.map((v, d) => ({
950
+ prop: (v == null ? void 0 : v.prop) ?? "a" + d,
951
+ column: v.label
952
+ }));
953
+ E.value = le;
954
+ let Z = [];
955
+ ne.value === "" ? Z = k == null ? void 0 : k[0] : Z = (k == null ? void 0 : k.find((v) => (v == null ? void 0 : v.selectLabel) === "(" + ne.value + ")")) ?? (k == null ? void 0 : k.find((v) => !(v != null && v.selectLabel)));
956
+ let ve = Array.isArray((sa = Z == null ? void 0 : Z.contents) == null ? void 0 : sa[0]) && ((ra = Z == null ? void 0 : Z.contents) != null && ra[0].every((v) => Array.isArray(v))) ? (ta = O(Z == null ? void 0 : Z.contents)) == null ? void 0 : ta[0] : O(Z == null ? void 0 : Z.contents);
957
+ w != null && w.contents && ((ua = w == null ? void 0 : w.contents) == null ? void 0 : ua.length) !== 0 && (ve = (da = O(ve)) == null ? void 0 : da.map((v, d) => {
958
+ if (!Array.isArray(v)) {
959
+ let W = {};
960
+ for (let ke in v)
961
+ ke !== "id" && ke !== "index" && (W[ke] = v[ke]);
962
+ v = Object.values(W);
963
+ }
964
+ return v;
965
+ }));
966
+ const Ba = !!((ca = l.value) != null && ca.find((v) => v.prop === "index"));
967
+ ve = Na(O(ve), w == null ? void 0 : w.contents, Ba);
968
+ const xe = [];
969
+ ve == null || ve.forEach((v, d) => {
970
+ var ke;
971
+ let W = {};
972
+ if (Array.isArray(v)) {
973
+ let q = [];
974
+ v == null || v.filter((te) => !(te != null && te.id)).forEach((te, fe) => {
975
+ var ha, ga, ba, ma, va, ka;
976
+ if ((ha = le == null ? void 0 : le[fe]) != null && ha.prop && !Array.isArray(te)) {
977
+ let Ge = {};
978
+ Ge[le[fe].column] = te, u != null && u.value && ((ga = u == null ? void 0 : u.value) == null ? void 0 : ga.length) > 0 && ((ba = u == null ? void 0 : u.value) != null && ba.find((ue) => JSON.stringify(ue == null ? void 0 : ue[0]) === JSON.stringify(Ge))) && (q = (ma = u == null ? void 0 : u.value) == null ? void 0 : ma.find((ue) => JSON.stringify(ue == null ? void 0 : ue[0]) === JSON.stringify(Ge))), q && q.length > 0 ? W[le[fe].prop] = q != null && q.find((ue) => {
979
+ var Fe;
980
+ return ((Fe = Object.keys(ue)) == null ? void 0 : Fe[0]) === le[fe].column;
981
+ }) ? (va = q == null ? void 0 : q.find((ue) => {
982
+ var Fe;
983
+ return ((Fe = Object.keys(ue)) == null ? void 0 : Fe[0]) === le[fe].column;
984
+ })) == null ? void 0 : va[le[fe].column] : te : W[le[fe].prop] = te;
985
+ } else Array.isArray(te) && ((ka = le[fe]) != null && ka.prop ? W[le[fe].prop] = te : W.children = Ea(te, le));
986
+ });
987
+ } else
988
+ W = v;
989
+ Array.isArray(v) && v.some((q) => q == null ? void 0 : q.id) ? xe.push(Object.assign(W, { id: (ke = v == null ? void 0 : v.find((q) => q.id)) == null ? void 0 : ke.id })) : W.id ? xe.push(W) : xe.push(Object.assign(W, { id: d }));
990
+ }), f.value = xe;
991
+ } else
992
+ l.value = [], f.value = [];
993
+ ((fa = p == null ? void 0 : p.contents) == null ? void 0 : fa.length) > 0 ? C.value = p == null ? void 0 : p.contents : C.value = [], ((ya = _ == null ? void 0 : _.contents) == null ? void 0 : ya.length) > 0 ? R.value = _ == null ? void 0 : _.contents : R.value = [], D.value = ((pa = f == null ? void 0 : f.value) == null ? void 0 : pa.length) ?? 0, Q.value = f.value;
994
+ },
995
+ { deep: !0, immediate: !0 }
996
+ ), Te(() => a == null ? void 0 : a.operatingForm, (s) => {
997
+ s != null && s.form && (Se(s == null ? void 0 : s.form), B.value = s == null ? void 0 : s.dialogTitle, P.value = !0, I.value = !0);
998
+ }, { immediate: !0, deep: !0 }), (s, c) => {
999
+ var _;
1000
+ const p = Xe("el-button");
1001
+ return se(), ye("div", Ol, [
1002
+ (se(), Ye(qa, {
1003
+ columns: l.value,
1004
+ key: l.value,
1005
+ tableData: f.value,
1006
+ isShowPagination: K.value,
1007
+ isShowEdit: !1,
1008
+ isShowDelete: !1,
1009
+ onDbClickRow: Re,
1010
+ extraButton: R.value,
1011
+ onContentClick: Oe,
1012
+ onRowClick: ze
1013
+ }, xa({
1014
+ headerButton: z((k) => [
1015
+ L(nl, {
1016
+ compName: i.compName,
1017
+ buttons: k.buttons,
1018
+ onButtonClick: c[0] || (c[0] = (h) => we(h, "", {})),
1019
+ columns: l.value,
1020
+ onFilter: $e
1021
+ }, null, 8, ["compName", "buttons", "columns"])
1022
+ ]),
1023
+ _: 2
1024
+ }, [
1025
+ ((_ = C.value) == null ? void 0 : _.length) > 0 ? {
1026
+ name: "actions",
1027
+ fn: z(({ item: k }) => [
1028
+ (se(!0), ye(wa, null, Sa(Be(C.value, k), (h, t) => (se(), ye("div", { key: t }, [
1029
+ ie("div", {
1030
+ style: Fa({ color: h == null ? void 0 : h.textColor }),
1031
+ class: "extra-button-label",
1032
+ onClick: (w) => we(h == null ? void 0 : h.label, k, {
1033
+ extra: h
1034
+ })
1035
+ }, Ae(h == null ? void 0 : h.label), 13, wl)
1036
+ ]))), 128))
1037
+ ]),
1038
+ key: "0"
1039
+ } : void 0
1040
+ ]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
1041
+ L(Ta, {
1042
+ title: B.value,
1043
+ visible: I.value,
1044
+ width: Ne.value,
1045
+ onBeforeDestroy: Ke
1046
+ }, {
1047
+ default: z(() => [
1048
+ ie("div", Sl, [
1049
+ L(Je, {
1050
+ rowContents: F.value,
1051
+ isEnableWrap: !1,
1052
+ onChange: me,
1053
+ onClickTrigger: Pe,
1054
+ isEdit: m.value
1055
+ }, null, 8, ["rowContents", "isEdit"])
1056
+ ])
1057
+ ]),
1058
+ footer: z(() => [
1059
+ P.value ? (se(), ye("div", Fl, [
1060
+ L(p, {
1061
+ onClick: c[1] || (c[1] = (k) => I.value = !1),
1062
+ id: "themeBorderButton"
1063
+ }, {
1064
+ default: z(() => c[4] || (c[4] = [
1065
+ Ve(Ae("取消"))
1066
+ ])),
1067
+ _: 1,
1068
+ __: [4]
1069
+ }),
1070
+ L(p, {
1071
+ class: "ok-button",
1072
+ onClick: $,
1073
+ id: "themeButton"
1074
+ }, {
1075
+ default: z(() => c[5] || (c[5] = [
1076
+ Ve(Ae("确认"))
1077
+ ])),
1078
+ _: 1,
1079
+ __: [5]
1080
+ })
1081
+ ])) : Oa("", !0)
1082
+ ]),
1083
+ _: 1
1084
+ }, 8, ["title", "visible", "width"]),
1085
+ L(Ta, {
1086
+ title: B.value,
1087
+ visible: J.value,
1088
+ width: G.value,
1089
+ onBeforeDestroy: c[3] || (c[3] = (k) => J.value = !1)
1090
+ }, {
1091
+ default: z(() => [
1092
+ L(cl)
1093
+ ]),
1094
+ footer: z(() => [
1095
+ ie("div", jl, [
1096
+ L(p, {
1097
+ onClick: c[2] || (c[2] = (k) => J.value = !1),
1098
+ class: "cancel-button",
1099
+ id: "themeBorderButton"
1100
+ }, {
1101
+ default: z(() => c[6] || (c[6] = [
1102
+ Ve(Ae("取消"))
1103
+ ])),
1104
+ _: 1,
1105
+ __: [6]
1106
+ }),
1107
+ L(p, {
1108
+ class: "ok-button",
1109
+ onClick: Me,
1110
+ id: "themeButton"
1111
+ }, {
1112
+ default: z(() => c[7] || (c[7] = [
1113
+ Ve(Ae("确认"))
1114
+ ])),
1115
+ _: 1,
1116
+ __: [7]
1117
+ })
1118
+ ])
1119
+ ]),
1120
+ _: 1
1121
+ }, 8, ["title", "visible", "width"])
1122
+ ]);
1123
+ };
1124
+ }
1125
+ }, Zl = /* @__PURE__ */ ea(El, [["__scopeId", "data-v-e3235efa"]]);
1126
+ export {
1127
+ Dl as a,
1128
+ Gl as b,
1129
+ Ql as c,
1130
+ zl as d,
1131
+ sl as e,
1132
+ Xl as f,
1133
+ Da as g,
1134
+ xl as h,
1135
+ Vl as i,
1136
+ ql as j,
1137
+ Hl as k,
1138
+ Yl as l,
1139
+ Ml as m,
1140
+ Wl as n,
1141
+ Ul as o,
1142
+ Jl as p,
1143
+ Zl as s,
1144
+ fl as u
1145
+ };