ss-component-new 1.1.134 → 1.1.136

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 (88) hide show
  1. package/dist/array-5Pi_vrB4.js +2273 -0
  2. package/dist/array-BjgAlNtF.cjs +7 -0
  3. package/dist/{cloneDeep-BsEGQOkx.cjs → cloneDeep-Bzug5d4F.cjs} +1 -1
  4. package/dist/{cloneDeep-Db0Z_2J7.js → cloneDeep-Cc63EzZV.js} +1 -1
  5. package/dist/{index-C-sZAeKP.cjs → index-91zJrqjs.cjs} +1 -1
  6. package/dist/index-B-OWENQ0.cjs +1 -0
  7. package/dist/index-B8odLCIx.cjs +6 -0
  8. package/dist/{index-DlDyraNd.js → index-BGLzGltQ.js} +1 -1
  9. package/dist/index-BSlJJiN9.cjs +6 -0
  10. package/dist/{index-wkFgNYGI.js → index-BV9q5v4A.js} +55 -44
  11. package/dist/index-BVkOb0I9.cjs +1 -0
  12. package/dist/{index-DB80q325.js → index-Bb8-t5G9.js} +11 -12
  13. package/dist/{index-CED67cOd.js → index-BgZ6sQ0W.js} +23 -23
  14. package/dist/index-BkavIrOf.js +330 -0
  15. package/dist/index-BnGBvY9U.cjs +1 -0
  16. package/dist/{index-COO-9pPj.cjs → index-BtMfnrpv.cjs} +1 -1
  17. package/dist/{index-DlCskFUK.cjs → index-C8jwhP_V.cjs} +1 -1
  18. package/dist/index-C8ofKvo8.cjs +1 -0
  19. package/dist/index-CIBrUeN_.cjs +1 -0
  20. package/dist/{index-BLSq-wSR.js → index-CJKjrI-E.js} +6 -6
  21. package/dist/{index-DWZxQzwS.js → index-CXSZpNdn.js} +286 -283
  22. package/dist/{index-DwJfOJVl.js → index-CYHQktKl.js} +16 -5
  23. package/dist/{index-B9hlPxMW.js → index-CjrJ2TKD.js} +1 -1
  24. package/dist/index-Cl6cBBE1.js +650 -0
  25. package/dist/index-CmyFuqBo.cjs +1 -0
  26. package/dist/index-CooWRcVw.js +120 -0
  27. package/dist/index-CrtdIMYE.cjs +1 -0
  28. package/dist/index-DApeVZv4.cjs +1 -0
  29. package/dist/{index-CwLrhXQr.cjs → index-DKEqtXj0.cjs} +3 -3
  30. package/dist/index-DKq5fNWo.cjs +1 -0
  31. package/dist/index-DNoSOdIX.js +29 -0
  32. package/dist/index-DOIGOPNZ.js +159 -0
  33. package/dist/index-DSWOMYXG.js +134 -0
  34. package/dist/{index-BKKU4FW_.js → index-DeU-UCAx.js} +218 -210
  35. package/dist/index-DrUFjgr5.js +2114 -0
  36. package/dist/{index-C76lJAO8.cjs → index-RL6uslGR.cjs} +3 -3
  37. package/dist/{index-5YxT5PxR.js → index-VlvSwltF.js} +46 -46
  38. package/dist/index-W-9W7gWk.cjs +1 -0
  39. package/dist/{index-BIF3KZS4.js → index-cPHHgVQI.js} +10 -11
  40. package/dist/index-htlfZCR5.cjs +1 -0
  41. package/dist/index-l_CFUNIw.cjs +1 -0
  42. package/dist/{index-CnctR5S5.js → index-zNpBUKES.js} +364 -334
  43. package/dist/index.vue_vue_type_script_setup_true_lang-Dsil2awN.js +51 -0
  44. package/dist/index.vue_vue_type_script_setup_true_lang-v-fKQ-qD.cjs +1 -0
  45. package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-BUc3oYkg.cjs +1 -0
  46. package/dist/{index.vue_vue_type_style_index_0_scoped_baf99455_lang-CxZLteKB.js → index.vue_vue_type_style_index_0_scoped_baf99455_lang-CWDc9fZ3.js} +178 -151
  47. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Dnfh78IK.cjs +1 -0
  48. package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DsvH3GsN.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DuzluCvf.js} +65 -66
  49. package/dist/login-BJL3UOFs.js +93 -0
  50. package/dist/login-C9_hVzJI.cjs +1 -0
  51. package/dist/{main-BZCZ-AZ1.cjs → main-B33BjDPL.cjs} +1 -1
  52. package/dist/{main-D8-s8qYv.js → main-DkutNnJa.js} +6 -6
  53. package/dist/{menu-DHhscnBr.js → menu-CviAaP4o.js} +195 -177
  54. package/dist/{menu-C1nYRlpW.cjs → menu-ImEX9f2U.cjs} +5 -5
  55. package/dist/modelComp-D7y4j3I1.cjs +1 -0
  56. package/dist/{modelComp-CKaRH5Dv.js → modelComp-DFH7qNeB.js} +3 -3
  57. package/dist/ss-component.cjs +1 -1
  58. package/dist/ss-component.css +1 -1
  59. package/dist/ss-component.js +6 -6
  60. package/dist/ss-component2.cjs +1 -1
  61. package/dist/ss-component2.js +1 -1
  62. package/package.json +1 -1
  63. package/dist/array-BSzTpKEY.cjs +0 -7
  64. package/dist/array-C3Ctznz3.js +0 -2179
  65. package/dist/index-0siz80HB.cjs +0 -1
  66. package/dist/index-B2pb8nxM.cjs +0 -1
  67. package/dist/index-B730AiVp.js +0 -319
  68. package/dist/index-BB-SZ3BL.cjs +0 -1
  69. package/dist/index-BCxk6ocq.js +0 -644
  70. package/dist/index-BIZrzrZw.cjs +0 -1
  71. package/dist/index-BR6ZEzzD.js +0 -31
  72. package/dist/index-BUhBbexy.js +0 -138
  73. package/dist/index-Bbvft4U9.cjs +0 -1
  74. package/dist/index-BxAnc4_W.cjs +0 -1
  75. package/dist/index-C0xKWYq8.js +0 -199
  76. package/dist/index-CSU9Xkx8.js +0 -1919
  77. package/dist/index-Chpe2Rka.cjs +0 -1
  78. package/dist/index-Cqwe2mEl.cjs +0 -6
  79. package/dist/index-D1JYdpDK.cjs +0 -1
  80. package/dist/index-D5EW9BXp.cjs +0 -1
  81. package/dist/index-DE0UHB_h.cjs +0 -1
  82. package/dist/index-amV5Wcy2.cjs +0 -1
  83. package/dist/index-jk5XYhG1.cjs +0 -6
  84. package/dist/index.vue_vue_type_style_index_0_scoped_baf99455_lang-BIqt_Rvr.cjs +0 -1
  85. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Duft0DGi.cjs +0 -1
  86. package/dist/login-C33cIW9F.js +0 -56
  87. package/dist/login-bKAlwOCB.cjs +0 -1
  88. package/dist/modelComp-DxPDC-S-.cjs +0 -1
@@ -0,0 +1,650 @@
1
+ import { ref as k, watch as L, nextTick as oa, resolveComponent as Ve, createBlock as ce, openBlock as H, withCtx as V, createElementVNode as S, renderSlot as $e, onMounted as Me, createElementBlock as P, createCommentVNode as Re, Fragment as Pe, renderList as We, normalizeStyle as ze, toDisplayString as ne, createVNode as Q, unref as sa, createSlots as ra } from "vue";
2
+ import { g as ue, d as ta, c as ua, u as da, p as Ie } from "./index-DrUFjgr5.js";
3
+ import { a2 as ca } from "./index-CYHQktKl.js";
4
+ import { s as Ue, a as fa, b as pa } from "./index-zNpBUKES.js";
5
+ import { c as A } from "./cloneDeep-Cc63EzZV.js";
6
+ import { _ as Ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ import { d as Je, u as ha, s as de } from "./menu-CviAaP4o.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(r) {
25
+ const t = r, e = k(null), a = k(!1), l = k(null);
26
+ return L(
27
+ () => t == null ? void 0 : t.isVisible,
28
+ () => {
29
+ a.value = t == null ? void 0 : t.isVisible;
30
+ },
31
+ { deep: !0, immediate: !0 }
32
+ ), L(
33
+ () => l.value,
34
+ () => {
35
+ oa(() => {
36
+ var o, b;
37
+ (b = (o = e.value) == null ? void 0 : o.updatePopper) == null || b.call(o);
38
+ });
39
+ },
40
+ { deep: !0, immediate: !0 }
41
+ ), (o, b) => {
42
+ const h = Ve("el-popover");
43
+ return H(), ce(h, {
44
+ visible: a.value,
45
+ placement: "bottom",
46
+ title: t == null ? void 0 : t.title,
47
+ width: t == null ? void 0 : t.width,
48
+ ref_key: "popOverRef",
49
+ ref: e
50
+ }, {
51
+ reference: V(() => [
52
+ S("div", null, [
53
+ $e(o.$slots, "reference", {
54
+ ref_key: "referenceRef",
55
+ ref: l
56
+ })
57
+ ])
58
+ ]),
59
+ default: V(() => [
60
+ S("div", null, [
61
+ $e(o.$slots, "content")
62
+ ])
63
+ ]),
64
+ _: 3
65
+ }, 8, ["visible", "title", "width"]);
66
+ };
67
+ }
68
+ }, X = k(0), ie = (r) => (X.value++, r == null ? void 0 : r.map((e) => Array.isArray(e) ? ie(e) : {
69
+ label: (e == null ? void 0 : e.label) ?? "",
70
+ prop: (e == null ? void 0 : e.label) === "操作" ? "operate" : (e == null ? void 0 : e.prop) ?? "a" + X.value,
71
+ width: (e == null ? void 0 : e.label) === "操作" ? "160" : e != null && e.width ? parseInt(e.width) : "",
72
+ fixed: (e == null ? void 0 : e.fixed) ?? void 0,
73
+ sortable: (e == null ? void 0 : e.sortable) ?? !1,
74
+ align: (e == null ? void 0 : e.align) ?? "center",
75
+ showOverflowTooltip: (e == null ? void 0 : e.showOverflowTooltip) ?? !0,
76
+ isNotDrag: (e == null ? void 0 : e.isNotDrag) ?? !1,
77
+ isEditCol: (e == null ? void 0 : e.isEditCol) ?? !1,
78
+ isOperate: (e == null ? void 0 : e.isOperate) ?? !1,
79
+ id: (e == null ? void 0 : e.id) ?? X.value,
80
+ type: (e == null ? void 0 : e.label) === "操作" ? "operate" : void 0,
81
+ formType: (e == null ? void 0 : e.formType) ?? "",
82
+ isHidden: e == null ? void 0 : e.isHidden,
83
+ options: (e == null ? void 0 : e.options) ?? [],
84
+ children: ie(e.children) ?? void 0
85
+ })), ga = (r) => {
86
+ const t = [];
87
+ function e(a) {
88
+ if (Array.isArray(a))
89
+ for (const l of a)
90
+ !l.children || l.children.length === 0 ? t.push(l) : e(l.children);
91
+ }
92
+ return e(r), t;
93
+ }, Se = (r) => A(r).map((e) => (Array.isArray(e) && (e = e.map((a) => (Array.isArray(a) ? a = ie(a) : (a = {
94
+ label: (a == null ? void 0 : a.label) ?? "",
95
+ prop: (a == null ? void 0 : a.label) === "操作" ? "operate" : (a == null ? void 0 : a.prop) ?? "a" + X.value,
96
+ width: (a == null ? void 0 : a.label) === "操作" ? "160" : a != null && a.width ? parseInt(a.width) : "",
97
+ fixed: (a == null ? void 0 : a.fixed) ?? void 0,
98
+ sortable: (a == null ? void 0 : a.sortable) ?? !1,
99
+ align: (a == null ? void 0 : a.align) ?? "center",
100
+ showOverflowTooltip: (a == null ? void 0 : a.showOverflowTooltip) ?? !0,
101
+ isNotDrag: (a == null ? void 0 : a.isNotDrag) ?? !1,
102
+ isEditCol: (a == null ? void 0 : a.isEditCol) ?? !1,
103
+ isOperate: (a == null ? void 0 : a.isOperate) ?? !1,
104
+ id: (a == null ? void 0 : a.id) ?? X.value,
105
+ type: (a == null ? void 0 : a.label) === "操作" ? "operate" : void 0,
106
+ formType: (a == null ? void 0 : a.formType) ?? "",
107
+ isHidden: a == null ? void 0 : a.isHidden,
108
+ options: (a == null ? void 0 : a.options) ?? [],
109
+ children: ie(a.children)
110
+ }, X.value++), a))), e)), qe = (r) => {
111
+ function t(e, a = []) {
112
+ if (!e || e.length === 0) return [];
113
+ let l = a;
114
+ return e == null || e.forEach((o) => {
115
+ var b;
116
+ o != null && o.children && ((b = o.children) == null ? void 0 : b.length) > 0 ? l = t(o == null ? void 0 : o.children, l) : l.push(o);
117
+ }), l;
118
+ }
119
+ return t(r);
120
+ }, ba = { class: "extra-button-content" }, ma = {
121
+ key: 0,
122
+ class: "extra-header"
123
+ }, Ca = ["onClick"], ka = { class: "extra-button-filter" }, Aa = { class: "form-content-value" }, _a = {
124
+ __name: "header",
125
+ props: {
126
+ buttons: {
127
+ type: Array,
128
+ default: () => []
129
+ },
130
+ columns: {
131
+ type: Array,
132
+ default: () => []
133
+ }
134
+ },
135
+ emits: ["buttonClick"],
136
+ setup(r, { emit: t }) {
137
+ const e = t, a = r, l = k(!1), o = k([]), b = k([{ label: "取消" }, { label: "确认" }]), h = (v) => {
138
+ e("buttonClick", v);
139
+ }, D = (v) => {
140
+ var j, N;
141
+ o.value = (N = (j = qe(A(v))) == null ? void 0 : j.filter((y) => (y == null ? void 0 : y.label) !== "" && (y == null ? void 0 : y.label) !== "操作")) == null ? void 0 : N.map((y) => ({
142
+ label: (y == null ? void 0 : y.label) ?? "",
143
+ value: "",
144
+ name: (y == null ? void 0 : y.prop) ?? "",
145
+ isFormColHidden: y == null ? void 0 : y.isTableColHidden
146
+ }));
147
+ }, _ = (v) => {
148
+ l.value = !1;
149
+ };
150
+ return Me(() => {
151
+ D(a.columns);
152
+ }), L(
153
+ () => a.columns,
154
+ () => {
155
+ D(a.columns);
156
+ },
157
+ { deep: !0, immediate: !0 }
158
+ ), (v, j) => {
159
+ var y;
160
+ const N = Ve("el-tooltip");
161
+ return H(), P("div", ba, [
162
+ a != null && a.buttons && ((y = a == null ? void 0 : a.buttons) == null ? void 0 : y.length) > 0 ? (H(), P("div", ma, [
163
+ (H(!0), P(Pe, null, We(a == null ? void 0 : a.buttons, (T, M) => (H(), P("div", {
164
+ class: "extra-contents",
165
+ key: M
166
+ }, [
167
+ S("div", {
168
+ class: "extra-content",
169
+ style: ze({ background: (T == null ? void 0 : T.background) ?? "var(--ssComponent-primary-color)", color: "var(--system-bg)" }),
170
+ onClick: (C) => h(T == null ? void 0 : T.label)
171
+ }, ne(T == null ? void 0 : T.label), 13, Ca)
172
+ ]))), 128))
173
+ ])) : Re("", !0),
174
+ S("div", ka, [
175
+ Q(ya, {
176
+ title: "筛选数据",
177
+ width: 500,
178
+ isVisible: l.value
179
+ }, {
180
+ reference: V(() => [
181
+ Q(N, {
182
+ content: "筛选",
183
+ placement: "top-start"
184
+ }, {
185
+ default: V(() => [
186
+ S("div", {
187
+ class: "button-style",
188
+ onClick: j[0] || (j[0] = (T) => l.value = !l.value)
189
+ }, [
190
+ Q(sa(ca))
191
+ ])
192
+ ]),
193
+ _: 1
194
+ })
195
+ ]),
196
+ content: V(() => [
197
+ S("div", Aa, [
198
+ (H(), ce(Ue, {
199
+ rowContents: o.value,
200
+ buttonValue: b.value,
201
+ isRowFlex: !0,
202
+ isEnableWrap: !1,
203
+ isButtonRow: !1,
204
+ key: b.value,
205
+ isStartJustify: !1,
206
+ onOnButtonClick: _
207
+ }, null, 8, ["rowContents", "buttonValue"]))
208
+ ])
209
+ ]),
210
+ _: 1
211
+ }, 8, ["isVisible"])
212
+ ])
213
+ ]);
214
+ };
215
+ }
216
+ }, Da = /* @__PURE__ */ Ge(_a, [["__scopeId", "data-v-699600c9"]]), Ta = Je("formToTableComp", {
217
+ state: () => ({
218
+ selectArray: [],
219
+ selectString: ""
220
+ }),
221
+ actions: {
222
+ setSelectArray(r) {
223
+ this.selectArray = r;
224
+ },
225
+ setSelectString(r) {
226
+ this.selectString = r;
227
+ }
228
+ }
229
+ }), va = Je("unit", {
230
+ state: () => ({
231
+ selectIndex: "",
232
+ selectMenu: "",
233
+ selectTitle: []
234
+ }),
235
+ actions: {
236
+ setSelectIndex(r) {
237
+ this.selectIndex = r;
238
+ },
239
+ setSelectMenu(r) {
240
+ this.selectMenu = r;
241
+ },
242
+ setSelectTitle(r) {
243
+ this.selectTitle = r;
244
+ }
245
+ }
246
+ }), Qe = (r, t) => {
247
+ let e = r, a = t;
248
+ return Array.isArray(e) && (e = e == null ? void 0 : e.map((l, o) => {
249
+ if (Array.isArray(l)) {
250
+ let b = {};
251
+ return l = l == null ? void 0 : l.forEach((h, D) => {
252
+ var _;
253
+ (_ = a == null ? void 0 : a[D]) != null && _.prop ? b[a[D].prop] = h : Array.isArray(h) && (b.children = Qe(h, a));
254
+ }), Object.assign(b, { id: o });
255
+ } else
256
+ return l;
257
+ })), e;
258
+ }, Xe = (r, t, e) => {
259
+ let a = r, l = t;
260
+ return a = a == null ? void 0 : a.map((o, b) => {
261
+ var h, D;
262
+ return !Array.isArray(o) || !((h = l == null ? void 0 : l[b]) != null && h.label) && !e || (o.unshift(((D = l == null ? void 0 : l[b]) == null ? void 0 : D.label) ?? ""), o.some((_) => Array.isArray(_)) && (o = o == null ? void 0 : o.map((_) => {
263
+ var v;
264
+ return Array.isArray(_) && (_ = Xe(_, (v = l == null ? void 0 : l[b]) == null ? void 0 : v.children, e)), _;
265
+ }))), o;
266
+ }), a;
267
+ }, wa = (r, t, e) => {
268
+ if (t === "")
269
+ return r == null ? void 0 : r.filter((a) => (a == null ? void 0 : a.id) !== e);
270
+ {
271
+ const a = t.split("-");
272
+ return Oa(r, a, e);
273
+ }
274
+ }, Oa = (r, t, e) => {
275
+ let a = r, l = t;
276
+ return (l == null ? void 0 : l.length) === 0 ? a = a == null ? void 0 : a.filter((o) => o.id !== e) : a = a == null ? void 0 : a.map((o) => (o.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), o = Ye(o, l, e)), o)), a;
277
+ }, Ye = (r, t, e) => {
278
+ var o, b;
279
+ let a = r, l = t;
280
+ return (l == null ? void 0 : l.length) === 0 ? a.children = (o = a.children) == null ? void 0 : o.filter((h) => h.id !== e) : a.children = (b = a.children) == null ? void 0 : b.map((h) => (h.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), h = Ye(h, l, e)), h)), a;
281
+ }, xa = (r, t, e) => {
282
+ if (t === "")
283
+ return e;
284
+ {
285
+ const a = t.split("-");
286
+ return Ea(r, a, e);
287
+ }
288
+ }, Ea = (r, t, e) => {
289
+ let a = r, l = t;
290
+ return (l == null ? void 0 : l.length) === 0 ? a = e : a = a == null ? void 0 : a.map((o) => (o.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), o = Ze(o, l, e)), o)), a;
291
+ }, Ze = (r, t, e) => {
292
+ var o;
293
+ let a = r, l = t;
294
+ return (l == null ? void 0 : l.length) === 0 ? a.children = e : a.children = (o = a.children) == null ? void 0 : o.map((b) => (b.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), b = Ze(b, l, e)), b)), a;
295
+ }, Na = async (r, t, e = "") => {
296
+ var v, j, N, y, T, M;
297
+ const a = await ue({
298
+ key: {
299
+ pageKey: r,
300
+ systemKey: t,
301
+ parentTable: e
302
+ }
303
+ }), l = await ue({
304
+ key: {
305
+ pageKey: r,
306
+ systemKey: t,
307
+ type: "structureMethod"
308
+ }
309
+ }), o = (v = a.data.result) == null ? void 0 : v.map((C) => C.id), b = o == null ? void 0 : o.map((C) => ue({
310
+ key: {
311
+ pageKey: r,
312
+ systemKey: t,
313
+ tableId: C
314
+ }
315
+ })), h = await Promise.all(b), D = [];
316
+ h == null || h.forEach((C) => {
317
+ var I, W, B, z;
318
+ const $ = (I = C.data.result) == null ? void 0 : I.map((ee) => {
319
+ const F = ee.value.tableData;
320
+ return F.unshift({
321
+ id: ee.id
322
+ }), F;
323
+ }), q = (z = (B = (W = C.data.result) == null ? void 0 : W[0]) == null ? void 0 : B.key) == null ? void 0 : z.tableId;
324
+ D.push({
325
+ key: q,
326
+ contents: $
327
+ });
328
+ });
329
+ const _ = [];
330
+ return (j = a.data.result) == null || j.forEach((C) => {
331
+ var I, W;
332
+ const $ = C.value.pageData, q = A($.compData);
333
+ if (q.push({
334
+ key: "tableContents",
335
+ contents: (I = D == null ? void 0 : D.find((B) => (B == null ? void 0 : B.key) === C.id)) == null ? void 0 : I.contents
336
+ }), $.compData = q, $.id = C.id, ((W = C.key) == null ? void 0 : W.type) !== "method")
337
+ _.push($);
338
+ else {
339
+ let B;
340
+ B = {
341
+ name: "",
342
+ compData: [$],
343
+ comp: "calculator"
344
+ }, _.push(B);
345
+ }
346
+ }), ((y = (N = l.data.result) == null ? void 0 : N.map((C) => C.value.pageData)) == null ? void 0 : y.filter((C) => Object.values(C).length > 0).length) > 0 && _.push({
347
+ comp: "methodButton",
348
+ name: "",
349
+ compData: (M = (T = l.data.result) == null ? void 0 : T.map((C) => C.value.pageData)) == null ? void 0 : M.filter((C) => Object.values(C).length > 0)
350
+ }), _;
351
+ }, za = async (r) => {
352
+ await ta({
353
+ id: r
354
+ });
355
+ }, Ua = async (r, t, e, a, l) => {
356
+ await ua({
357
+ key: {
358
+ type: r,
359
+ pageKey: t,
360
+ tableId: e,
361
+ systemKey: a
362
+ },
363
+ value: {
364
+ tableData: l
365
+ }
366
+ });
367
+ }, Ga = async (r, t, e, a, l, o) => {
368
+ await da({
369
+ key: {
370
+ type: r,
371
+ pageKey: t,
372
+ tableId: e,
373
+ systemKey: l
374
+ },
375
+ value: {
376
+ tableData: o
377
+ },
378
+ id: a
379
+ });
380
+ }, Ba = { class: "table-content" }, Fa = ["onClick"], ja = { class: "form-content" }, Ha = {
381
+ key: 0,
382
+ class: "dialog-footer"
383
+ }, $a = {
384
+ __name: "index",
385
+ props: {
386
+ itemData: {
387
+ type: Array,
388
+ default: () => []
389
+ },
390
+ childItemData: {
391
+ type: Array,
392
+ default: () => []
393
+ },
394
+ index: Number,
395
+ changedContent: {
396
+ type: Object,
397
+ default: () => {
398
+ }
399
+ }
400
+ },
401
+ emits: ["change", "contentChange", "onButtonClick", "contentClick", "pageChange"],
402
+ setup(r, { emit: t }) {
403
+ const e = r, a = t, l = k([]), o = ha(), { activeMenuPath: b } = de(o), h = k([]), D = k("");
404
+ k();
405
+ const _ = k(!0), v = k(0), j = k(!1), N = k(""), y = k(!1), T = k([]), M = k(!1), C = k([]), $ = k([]), q = k(), I = k(), W = Ta(Ie), B = k(), z = va(Ie), { selectIndex: ee, selectMenu: F, selectTitle: oe } = de(z), { selectString: U } = de(W), Ke = k(720), Le = () => {
406
+ y.value = !1;
407
+ }, ea = async (n) => {
408
+ var m, p, f, s, g, w, Y;
409
+ const c = await Na(b.value, sessionStorage.getItem("systemKey"), n.id);
410
+ if (c && c.length > 0) {
411
+ const Z = !Array.isArray(oe.value) && ((m = oe.value) == null ? void 0 : m.key) !== "main" ? [] : oe.value;
412
+ Z.push({
413
+ key: F.value === "" ? (p = n == null ? void 0 : n.id) == null ? void 0 : p.toString() : F.value + "-" + ((f = n == null ? void 0 : n.id) == null ? void 0 : f.toString()),
414
+ value: n[(s = Object.keys(n)) == null ? void 0 : s.filter((K) => K !== "index" && K !== "id")[0]]
415
+ }), z.setSelectMenu(F.value === "" ? (g = n == null ? void 0 : n.id) == null ? void 0 : g.toString() : F.value + "-" + ((w = n == null ? void 0 : n.id) == null ? void 0 : w.toString())), z.setSelectTitle(Z), z.setSelectIndex((Y = n == null ? void 0 : n.id) == null ? void 0 : Y.toString()), a("pageChange", c);
416
+ }
417
+ }, fe = (n) => {
418
+ var m;
419
+ const c = (m = A(e.itemData)) == null ? void 0 : m.map((p) => ((p == null ? void 0 : p.key) === "tableContents" && (p.contents = n), p));
420
+ a("contentChange", {
421
+ contents: c,
422
+ index: e.index
423
+ });
424
+ }, aa = (n, c, m) => {
425
+ a("contentClick", n, c, m, { id: e == null ? void 0 : e.index });
426
+ };
427
+ L(
428
+ () => e.changedContent,
429
+ () => {
430
+ var m, p;
431
+ if (!e.changedContent) return;
432
+ let n = (m = h.value) == null ? void 0 : m.map((f) => {
433
+ var s;
434
+ return f.id === ((s = e.changedContent) == null ? void 0 : s.id) && (f = {
435
+ ...e.changedContent,
436
+ id: e.changedContent.newId ? e.changedContent.newId : e.changedContent.id
437
+ }, delete f.newId), f;
438
+ });
439
+ const c = (p = e.itemData) == null ? void 0 : p.map((f) => ((f == null ? void 0 : f.key) === "tableContents" && (f.contents = n), f));
440
+ h.value = n, console.log(133, e.changedContent, n), a("contentChange", {
441
+ contents: c,
442
+ index: e.index
443
+ }), a("change", {
444
+ content: n,
445
+ index: e == null ? void 0 : e.index,
446
+ buttonName: "",
447
+ id: e == null ? void 0 : e.index
448
+ });
449
+ },
450
+ { deep: !0, immediate: !0 }
451
+ );
452
+ const se = (n, c) => {
453
+ var m;
454
+ if (D.value = "", M.value = !0, _.value = !0, a("onButtonClick", n, c), n === "删除") {
455
+ h.value = (m = A(h.value)) == null ? void 0 : m.filter((f) => (f == null ? void 0 : f.id) !== (c == null ? void 0 : c.id));
456
+ const p = wa(B.value, F.value, c == null ? void 0 : c.id);
457
+ fe(p), a("change", {
458
+ content: h.value,
459
+ singleContent: c,
460
+ index: e == null ? void 0 : e.index,
461
+ type: "delete",
462
+ buttonName: n
463
+ });
464
+ } else n === "新增" ? (N.value = "新增", re(""), y.value = !0) : n === "编辑" ? (N.value = "编辑", re(c), y.value = !0) : n === "查看" && (N.value = "查看", re(c), M.value = !1, _.value = !1, y.value = !0);
465
+ }, re = (n) => {
466
+ var p, f;
467
+ const c = [];
468
+ let m = [];
469
+ for (let s in n)
470
+ Array.isArray(n == null ? void 0 : n[s]) && m.push(s);
471
+ (f = qe((p = A(l.value)) == null ? void 0 : p.filter((s) => s.label !== "" && (s == null ? void 0 : s.label) !== "操作"))) == null || f.forEach((s, g) => {
472
+ m.find((w) => w === (s == null ? void 0 : s.prop)) || c.push({
473
+ label: (s == null ? void 0 : s.label) ?? "",
474
+ name: (s == null ? void 0 : s.prop) ?? "t" + g,
475
+ type: !(s != null && s.formType) || (s == null ? void 0 : s.formType) === "" ? "Input" : s == null ? void 0 : s.formType,
476
+ value: (n == null ? void 0 : n[s == null ? void 0 : s.prop]) ?? "",
477
+ id: (s == null ? void 0 : s.id) ?? g,
478
+ contents: (s == null ? void 0 : s.options) ?? [],
479
+ width: 1,
480
+ isFormColHidden: s == null ? void 0 : s.isFormColHidden
481
+ });
482
+ }), n === "" || !n || (D.value = n == null ? void 0 : n.id), $.value = c;
483
+ };
484
+ Me(() => {
485
+ });
486
+ const la = () => {
487
+ let n, c = A(h.value);
488
+ D.value === "" ? (v.value++, c.push(Object.assign(I.value, { id: v.value })), n = Object.assign(I.value, { id: v.value })) : c = c == null ? void 0 : c.map((p) => ((p == null ? void 0 : p.id) === D.value && (p = Object.assign(p, I.value), n = p), p)), h.value = c;
489
+ const m = xa(B.value, F.value, c);
490
+ fe(m), y.value = !1, a("change", {
491
+ content: m,
492
+ singleContent: n,
493
+ index: e == null ? void 0 : e.index,
494
+ buttonName: N.value
495
+ });
496
+ }, na = (n) => {
497
+ I.value = n;
498
+ };
499
+ return L(
500
+ () => [e.itemData, U.value, ee.value, F.value],
501
+ () => {
502
+ var Y, Z, K, pe, he, ye, ge, be, me, Ce, ke, Ae, _e, De, Te, ve, we, Oe, xe, Ee, Ne, Be, Fe;
503
+ const n = (Y = A(e.itemData)) == null ? void 0 : Y.filter((u) => (u == null ? void 0 : u.key) === "header");
504
+ (Z = A(e.itemData)) == null || Z.filter((u) => (u == null ? void 0 : u.key) === "tableIndexColumn")[0];
505
+ const c = (K = A(e.itemData)) == null ? void 0 : K.find((u) => (u == null ? void 0 : u.key) === "page"), m = (pe = A(e.itemData)) == null ? void 0 : pe.find((u) => (u == null ? void 0 : u.key) === "rowButton"), p = (he = A(e.itemData)) == null ? void 0 : he.find((u) => (u == null ? void 0 : u.key) === "extraButton"), f = (ye = A(e.itemData)) == null ? void 0 : ye.filter((u) => (u == null ? void 0 : u.key) === "tableContents"), s = (ge = A(e.itemData)) == null ? void 0 : ge.filter((u) => (u == null ? void 0 : u.key) === "tableIndex");
506
+ j.value = (c == null ? void 0 : c.contents) ?? !0;
507
+ let g = [];
508
+ U.value === "" ? g = n == null ? void 0 : n[0] : g = (n == null ? void 0 : n.find((u) => (u == null ? void 0 : u.selectLabel) === "(" + U.value + ")")) ?? (n == null ? void 0 : n.find((u) => !(u != null && u.selectLabel)));
509
+ let w = [];
510
+ if (U.value === "" ? w = s == null ? void 0 : s[0] : w = (s == null ? void 0 : s.find((u) => (u == null ? void 0 : u.selectLabel) === "(" + U.value + ")")) ?? (s == null ? void 0 : s.find((u) => !(u != null && u.selectLabel))), ((be = g == null ? void 0 : g.contents) == null ? void 0 : be.length) > 0) {
511
+ let u = [];
512
+ if (g != null && g.contents.some((d) => Array.isArray(d) && (d == null ? void 0 : d.find((i) => i.children))))
513
+ F.value === "" ? u = (Ce = (me = Se(A(g == null ? void 0 : g.contents))) == null ? void 0 : me[0]) == null ? void 0 : Ce.filter((d) => !Array.isArray(d)) : (F.value.split("-"), u = (ke = Se(A(g == null ? void 0 : g.contents))) == null ? void 0 : ke[0]);
514
+ else {
515
+ const d = g != null && g.contents.some((i) => Array.isArray(i)) ? (Ae = g == null ? void 0 : g.contents) == null ? void 0 : Ae[0] : g == null ? void 0 : g.contents;
516
+ d == null || d.forEach((i, x) => {
517
+ u.push({
518
+ label: (i == null ? void 0 : i.label) ?? "",
519
+ prop: (i == null ? void 0 : i.label) === "操作" ? "operate" : (i == null ? void 0 : i.prop) ?? "a" + x,
520
+ width: (i == null ? void 0 : i.label) === "操作" ? "160" : i != null && i.width ? parseInt(i.width) : "",
521
+ fixed: (i == null ? void 0 : i.fixed) ?? void 0,
522
+ sortable: (i == null ? void 0 : i.sortable) ?? !1,
523
+ align: (i == null ? void 0 : i.align) ?? "center",
524
+ showOverflowTooltip: (i == null ? void 0 : i.showOverflowTooltip) ?? !0,
525
+ isNotDrag: (i == null ? void 0 : i.isNotDrag) ?? !1,
526
+ isEditCol: (i == null ? void 0 : i.isEditCol) ?? !1,
527
+ isOperate: (i == null ? void 0 : i.isOperate) ?? !1,
528
+ id: (i == null ? void 0 : i.id) ?? x,
529
+ type: (i == null ? void 0 : i.label) === "操作" ? "operate" : void 0,
530
+ formType: (i == null ? void 0 : i.formType) ?? "",
531
+ isTableColHidden: i == null ? void 0 : i.isTableColHidden,
532
+ isFormColHidden: i == null ? void 0 : i.isFormColHidden,
533
+ options: (i == null ? void 0 : i.options) ?? []
534
+ });
535
+ });
536
+ }
537
+ l.value = u;
538
+ let R = (De = (_e = ga(A(l.value))) == null ? void 0 : _e.filter((d) => (d == null ? void 0 : d.type) !== "operate")) == null ? void 0 : De.map((d, i) => ({
539
+ prop: (d == null ? void 0 : d.prop) ?? "a" + i
540
+ }));
541
+ q.value = R;
542
+ let O = [];
543
+ U.value === "" ? O = f == null ? void 0 : f[0] : O = (f == null ? void 0 : f.find((d) => (d == null ? void 0 : d.selectLabel) === "(" + U.value + ")")) ?? (f == null ? void 0 : f.find((d) => !(d != null && d.selectLabel)));
544
+ let G = Array.isArray((Te = O == null ? void 0 : O.contents) == null ? void 0 : Te[0]) && ((ve = O == null ? void 0 : O.contents) != null && ve[0].every((d) => Array.isArray(d))) ? (we = A(O == null ? void 0 : O.contents)) == null ? void 0 : we[0] : A(O == null ? void 0 : O.contents);
545
+ w != null && w.contents && ((Oe = w == null ? void 0 : w.contents) == null ? void 0 : Oe.length) !== 0 && (G = (xe = A(G)) == null ? void 0 : xe.map((d, i) => {
546
+ if (!Array.isArray(d)) {
547
+ let x = {};
548
+ for (let J in d)
549
+ J !== "id" && J !== "index" && (x[J] = d[J]);
550
+ d = Object.values(x);
551
+ }
552
+ return d;
553
+ }));
554
+ const ia = !!((Ee = l.value) != null && Ee.find((d) => d.prop === "index"));
555
+ G = Xe(A(G), w == null ? void 0 : w.contents, ia);
556
+ const ae = [];
557
+ G == null || G.forEach((d, i) => {
558
+ var J;
559
+ let x = {};
560
+ Array.isArray(d) ? d == null || d.filter((E) => !E.id).forEach((E, le) => {
561
+ var je, He;
562
+ (je = R == null ? void 0 : R[le]) != null && je.prop && !Array.isArray(E) ? x[R[le].prop] = E : Array.isArray(E) && (E.find((te) => (te == null ? void 0 : te.key) === "tableContentName") && ((He = R[le]) != null && He.prop) ? x[R[le].prop] = E : x.children = Qe(E, R));
563
+ }) : x = d, Array.isArray(d) && d.some((E) => E == null ? void 0 : E.id) ? ae.push(Object.assign(x, { id: (J = d == null ? void 0 : d.find((E) => E.id)) == null ? void 0 : J.id })) : x.id ? ae.push(x) : ae.push(Object.assign(x, { id: i }));
564
+ }), h.value = ae;
565
+ } else
566
+ l.value = [], h.value = [];
567
+ ((Ne = m == null ? void 0 : m.contents) == null ? void 0 : Ne.length) > 0 ? T.value = m == null ? void 0 : m.contents : T.value = [], ((Be = p == null ? void 0 : p.contents) == null ? void 0 : Be.length) > 0 ? C.value = p == null ? void 0 : p.contents : C.value = [], v.value = ((Fe = h == null ? void 0 : h.value) == null ? void 0 : Fe.length) ?? 0, B.value = h.value;
568
+ },
569
+ { deep: !0, immediate: !0 }
570
+ ), (n, c) => {
571
+ var m;
572
+ return H(), P("div", Ba, [
573
+ (H(), ce(fa, {
574
+ columns: l.value,
575
+ key: l.value,
576
+ tableData: h.value,
577
+ isShowPagination: j.value,
578
+ isShowEdit: !1,
579
+ isShowDelete: !1,
580
+ onDbClickRow: ea,
581
+ extraButton: C.value,
582
+ onButtonClick: c[1] || (c[1] = (p) => se(p, "")),
583
+ onContentClick: aa
584
+ }, ra({
585
+ headerButton: V((p) => [
586
+ Q(Da, {
587
+ buttons: p.buttons,
588
+ onButtonClick: c[0] || (c[0] = (f) => se(f, "")),
589
+ columns: l.value
590
+ }, null, 8, ["buttons", "columns"])
591
+ ]),
592
+ _: 2
593
+ }, [
594
+ ((m = T.value) == null ? void 0 : m.length) > 0 ? {
595
+ name: "actions",
596
+ fn: V(({ item: p }) => [
597
+ (H(!0), P(Pe, null, We(T.value, (f, s) => (H(), P("div", { key: s }, [
598
+ S("div", {
599
+ style: ze({ color: f == null ? void 0 : f.textColor }),
600
+ class: "extra-button-label",
601
+ onClick: (g) => se(f == null ? void 0 : f.label, p)
602
+ }, ne(f == null ? void 0 : f.label), 13, Fa)
603
+ ]))), 128))
604
+ ]),
605
+ key: "0"
606
+ } : void 0
607
+ ]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
608
+ Q(pa, {
609
+ title: N.value,
610
+ visible: y.value,
611
+ width: Ke.value,
612
+ onBeforeDestroy: Le
613
+ }, {
614
+ default: V(() => [
615
+ S("div", ja, [
616
+ Q(Ue, {
617
+ rowContents: $.value,
618
+ isEnableWrap: !1,
619
+ onChange: na,
620
+ isEdit: _.value
621
+ }, null, 8, ["rowContents", "isEdit"])
622
+ ])
623
+ ]),
624
+ footer: V(() => [
625
+ M.value ? (H(), P("div", Ha, [
626
+ S("div", {
627
+ onClick: c[2] || (c[2] = (p) => y.value = !1),
628
+ class: "cancel-button"
629
+ }, ne("取消")),
630
+ S("div", {
631
+ class: "ok-button",
632
+ onClick: la
633
+ }, ne("确认"))
634
+ ])) : Re("", !0)
635
+ ]),
636
+ _: 1
637
+ }, 8, ["title", "visible", "width"])
638
+ ]);
639
+ };
640
+ }
641
+ }, Ja = /* @__PURE__ */ Ge($a, [["__scopeId", "data-v-400638c0"]]);
642
+ export {
643
+ va as a,
644
+ Ua as b,
645
+ za as d,
646
+ Ga as f,
647
+ Na as g,
648
+ Ja as s,
649
+ Ta as u
650
+ };
@@ -0,0 +1 @@
1
+ "use strict";const a=require("./index-BSlJJiN9.cjs"),f=require("./login-C9_hVzJI.cjs"),o=require("./menu-ImEX9f2U.cjs"),D=o.useMenuState(a.pinia),m=f.useLoginState(a.pinia),I=()=>{const S=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),d=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});Promise.all([S,d]).then(t=>{var r,u,n,i,c,g,l,y;const e=t==null?void 0:t[0],s=t==null?void 0:t[1];if(e.data.code===200){const p=(l=(g=(c=(i=(n=(u=(r=e==null?void 0:e.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:n.value)==null?void 0:i.pageData)==null?void 0:c.compData)==null?void 0:g[0])==null?void 0:l.contents;D.setRawMenus(p??[])}else o.ElMessage.error("获取模型菜单响应失败");s.data.code===200?s.data.result&&((y=s.data.result)==null?void 0:y.length)>0&&(m.setStructureData(s.data.result),m.setIsStructureExist(!0)):o.ElMessage.error("获取模型结构响应失败")})};exports.verifyStructureDataToStore=I;