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,711 @@
1
+ import { ref as b, computed as U, reactive as ge, nextTick as N, watch as we, defineComponent as Se, onMounted as _e, resolveComponent as ne, resolveDirective as Me, createElementBlock as re, openBlock as se, createElementVNode as R, withDirectives as Fe, createVNode as _, withCtx as E, createTextVNode as ue } from "vue";
2
+ import { s as pe, g as $, u as de, E as M, p as K, d as fe, c as ve, e as Ne, h as Be } from "./menu-Dz_fVXUK.js";
3
+ import { u as Pe } from "./threeModel.vue_vue_type_style_index_0_scoped_43c8b141_lang-B08ZEGHO.js";
4
+ import { u as xe, s as Ee } from "./index-B3ZWxITJ.js";
5
+ import { h as Ke } from "./index-CHVY3mt7.js";
6
+ import { a as He } from "./menuIndex-BWim3TlH.js";
7
+ import { c as q } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CopMGaPW.js";
8
+ import { s as Re, b as Ae } from "./index-D9Mgi3hi.js";
9
+ import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const F = Pe(K), he = xe(K), T = de(K), { menus: ye, configMenu: O, activeMenuPath: z, cacheStructures: I } = pe(T), W = b(!1), Ve = U(() => {
11
+ var t, e;
12
+ return [
13
+ {
14
+ key: "extraButton",
15
+ contents: [
16
+ // {
17
+ // label: "新增"
18
+ // }
19
+ ]
20
+ },
21
+ {
22
+ key: "rowButton",
23
+ contents: [
24
+ {
25
+ label: "修改"
26
+ }
27
+ // {
28
+ // label: "删除"
29
+ // }
30
+ ]
31
+ },
32
+ {
33
+ key: "header",
34
+ contents: [
35
+ {
36
+ label: "菜单名称",
37
+ prop: "title",
38
+ isFormColHidden: !1
39
+ },
40
+ {
41
+ label: "菜单类型",
42
+ prop: "menuType",
43
+ formType: "select",
44
+ options: [
45
+ {
46
+ label: "系统菜单",
47
+ value: "集团"
48
+ },
49
+ {
50
+ label: "公司",
51
+ value: "公司"
52
+ }
53
+ ],
54
+ isTableColHidden: !1,
55
+ isFormColHidden: !0
56
+ },
57
+ {
58
+ label: "操作"
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ key: "tableContents",
64
+ contents: (e = (t = q(ye.value)) == null ? void 0 : t.map((l) => ({
65
+ ...l,
66
+ menuType: "系统菜单"
67
+ }))) == null ? void 0 : e.filter((l) => l.title !== "系统管理" && l.title !== "平台管理")
68
+ }
69
+ ];
70
+ }), G = b([]), V = b([
71
+ {
72
+ // label: "新增",
73
+ label: "新建"
74
+ }
75
+ ]), je = U(() => [
76
+ {
77
+ key: "extraButton",
78
+ contents: V.value
79
+ },
80
+ {
81
+ key: "rowButton",
82
+ contents: [
83
+ {
84
+ // label: "编辑",
85
+ label: "修改"
86
+ },
87
+ {
88
+ label: "删除"
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ key: "header",
94
+ contents: [
95
+ {
96
+ label: "操作类型",
97
+ prop: "operateType",
98
+ formType: "select",
99
+ options: [
100
+ {
101
+ label: "新增",
102
+ value: "新增"
103
+ },
104
+ {
105
+ label: "编辑",
106
+ value: "编辑"
107
+ },
108
+ {
109
+ label: "删除",
110
+ value: "删除"
111
+ }
112
+ ],
113
+ value: ""
114
+ },
115
+ {
116
+ label: "操作图标",
117
+ prop: "operateIcon",
118
+ formType: "inputPopover",
119
+ value: ""
120
+ },
121
+ {
122
+ label: "操作触发事件",
123
+ prop: "trigger",
124
+ formType: "select",
125
+ options: [
126
+ {
127
+ label: "弹出弹窗",
128
+ value: "openDialog"
129
+ }
130
+ ],
131
+ value: "openDialog"
132
+ },
133
+ {
134
+ label: "配置一:",
135
+ prop: "dialogConfig",
136
+ formType: "button",
137
+ value: "弹窗内容",
138
+ isTableColHidden: !0
139
+ },
140
+ {
141
+ label: "配置二:",
142
+ prop: "contentConfig",
143
+ formType: "button",
144
+ value: "模块内容",
145
+ isTableColHidden: !0
146
+ },
147
+ {
148
+ label: "继承配置:",
149
+ prop: "allowInherit",
150
+ formType: "radio",
151
+ contents: [
152
+ {
153
+ label: "是",
154
+ value: !0
155
+ },
156
+ {
157
+ label: "否",
158
+ value: !1
159
+ }
160
+ ],
161
+ value: !1,
162
+ isTableColHidden: !0
163
+ },
164
+ {
165
+ label: "操作"
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ key: "tableContents",
171
+ contents: G.value
172
+ }
173
+ ]), Q = b([]), D = b({}), Je = b({}), j = b([
174
+ // {
175
+ // label: "配置菜单:",
176
+ // prop: 'menu',
177
+ // type: 'cascader',
178
+ // contents: [],
179
+ // config: {
180
+ // checkStrictly: true
181
+ // },
182
+ // // value: ['压气机叶片', 'CJ-1000A']
183
+ // value: []
184
+ // },
185
+ {
186
+ label: "菜单",
187
+ prop: "path",
188
+ isFormColHidden: !0,
189
+ value: ""
190
+ },
191
+ {
192
+ label: "菜单图标:",
193
+ prop: "menuIcon",
194
+ type: "inputPopover",
195
+ value: ""
196
+ },
197
+ {
198
+ label: "操作类型:",
199
+ prop: "operateType",
200
+ type: "select",
201
+ contents: [
202
+ {
203
+ label: "新增",
204
+ value: "新增"
205
+ },
206
+ {
207
+ label: "编辑",
208
+ value: "编辑"
209
+ },
210
+ {
211
+ label: "删除",
212
+ value: "删除"
213
+ }
214
+ ],
215
+ value: ""
216
+ },
217
+ {
218
+ label: "操作图标:",
219
+ prop: "operateIcon",
220
+ type: "inputPopover",
221
+ value: ""
222
+ },
223
+ {
224
+ label: "操作触发事件:",
225
+ prop: "trigger",
226
+ type: "select",
227
+ contents: [
228
+ {
229
+ label: "弹出弹窗",
230
+ value: "openDialog"
231
+ }
232
+ ],
233
+ value: "openDialog"
234
+ },
235
+ {
236
+ label: "配置一:",
237
+ prop: "dialogConfig",
238
+ type: "button",
239
+ value: "操作触发的弹窗结构"
240
+ },
241
+ {
242
+ label: "配置二:",
243
+ prop: "contentConfig",
244
+ type: "button",
245
+ value: "操作生成的模块结构",
246
+ isFormColHidden: !1
247
+ },
248
+ {
249
+ label: "",
250
+ prop: "structureIds",
251
+ type: "input",
252
+ value: [],
253
+ isFormColHidden: !0
254
+ },
255
+ {
256
+ label: "继承配置:",
257
+ prop: "allowInherit",
258
+ type: "radio",
259
+ contents: [
260
+ {
261
+ label: "是",
262
+ value: !0
263
+ },
264
+ {
265
+ label: "否",
266
+ value: !1
267
+ }
268
+ ],
269
+ value: !1
270
+ }
271
+ ]), J = (t) => {
272
+ var e;
273
+ Q.value = t ? (e = j.value) == null ? void 0 : e.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l : {
274
+ ...l,
275
+ value: t ? t[l == null ? void 0 : l.prop] : ""
276
+ }) : j.value;
277
+ }, Le = b([
278
+ {
279
+ label: "查询"
280
+ },
281
+ {
282
+ label: "重置"
283
+ }
284
+ ]), Ue = async () => {
285
+ }, be = (t) => t.map((e) => e.childMenus && e.childMenus.length > 0 ? {
286
+ ...e,
287
+ value: e == null ? void 0 : e.title,
288
+ label: e == null ? void 0 : e.title,
289
+ children: be(e.childMenus)
290
+ } : {
291
+ ...e,
292
+ value: e == null ? void 0 : e.title,
293
+ label: e == null ? void 0 : e.title
294
+ }), f = ge({
295
+ show: !1,
296
+ title: "菜单配置",
297
+ width: "30%",
298
+ type: "create"
299
+ }), X = b([]), y = b({}), k = b(null), Ce = b([]), ke = U(() => {
300
+ var t;
301
+ return (t = be(ye.value)) == null ? void 0 : t.filter((e) => e.title !== "系统管理" && e.title !== "平台管理");
302
+ }), Te = async (t) => {
303
+ var l, s, n, g, r;
304
+ const e = await $({
305
+ key: {
306
+ type: "subStructure",
307
+ systemKey: sessionStorage.getItem("systemKey"),
308
+ pageKey: t,
309
+ version: 1
310
+ }
311
+ });
312
+ if (((l = e == null ? void 0 : e.data) == null ? void 0 : l.code) === 200 && (s = e.data) != null && s.result) {
313
+ const p = (g = (n = e.data) == null ? void 0 : n.result) == null ? void 0 : g.map((c) => {
314
+ var i;
315
+ return {
316
+ id: c == null ? void 0 : c.id,
317
+ ...(i = c == null ? void 0 : c.value) == null ? void 0 : i.pageData
318
+ };
319
+ });
320
+ Ce.value = p, T.setCacheStructures({
321
+ key: "contentConfig",
322
+ data: p
323
+ }), console.log(9990, (r = e.data) == null ? void 0 : r.result, p, I.value);
324
+ }
325
+ }, $e = async (t) => {
326
+ var e;
327
+ T.setCacheStructures(null), W.value = !0, k.value = {
328
+ ...t,
329
+ rootNode: He(ke.value, t.path)
330
+ }, (t == null ? void 0 : t.level) === 0 ? V.value.splice(0) : (V.value = [{ label: "新建" }], X.value = (e = t == null ? void 0 : t.path) == null ? void 0 : e.split("/")), await T.setConfigMenu(null), await Te(t == null ? void 0 : t.path), await H(t);
331
+ }, qe = (t) => {
332
+ switch (t) {
333
+ case "新建":
334
+ return "create";
335
+ case "修改":
336
+ return "update";
337
+ case "删除":
338
+ return "delete";
339
+ }
340
+ }, ze = async (t, e) => {
341
+ var l, s;
342
+ if (!k.value) return M.warning("请先选择菜单");
343
+ if (f.type = qe(t), X.value = [], F.setSubmitCurStructure(!1), he.setSelectTitle([]), y.value = q(e), f.type !== "delete") {
344
+ switch (f.type) {
345
+ case "create":
346
+ J(null), await T.setConfigMenu(null);
347
+ break;
348
+ case "update":
349
+ J(y.value), await T.setConfigMenu(y.value), console.log("clickRowButton", y.value);
350
+ break;
351
+ }
352
+ await N(), f.title = `【${f.type === "create" ? (l = k.value) == null ? void 0 : l.path : (s = y.value) == null ? void 0 : s.path}】菜单配置${t}`, f.show = !0;
353
+ } else
354
+ await Ie(y.value, f.type);
355
+ }, L = b(!0), We = async (t) => {
356
+ var e;
357
+ D.value = t, await T.setConfigMenu({
358
+ ...D.value,
359
+ path: (e = k.value) == null ? void 0 : e.path
360
+ }), L.value = (t == null ? void 0 : t.operateType) !== "新增", console.log("7890changeTrigger", L.value);
361
+ };
362
+ we(() => L.value, async (t) => {
363
+ var e;
364
+ await N(), Q.value = (e = j.value) == null ? void 0 : e.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l.prop === "contentConfig" ? {
365
+ ...l,
366
+ isFormColHidden: t
367
+ } : l : {
368
+ ...l,
369
+ value: D.value ? D.value[l == null ? void 0 : l.prop] : ""
370
+ }), console.log(7890, t);
371
+ }, { immediate: !0, deep: !0 });
372
+ const Ge = b(null), Qe = async (t, e) => {
373
+ var r, p, c, i;
374
+ if (f.type === "create") {
375
+ const u = (r = I.value) == null ? void 0 : r.flatMap((o) => o.data);
376
+ console.log(99901, I.value, u, e), (u == null ? void 0 : u.length) > 0 && e === "contentConfig" && F.setItemData(u);
377
+ }
378
+ if (console.log("getTriggerStructures1", t == null ? void 0 : t.structureIds, e), !(t != null && t.structureIds) || ((p = t == null ? void 0 : t.structureIds) == null ? void 0 : p.length) === 0) return;
379
+ const l = (i = (c = t == null ? void 0 : t.structureIds) == null ? void 0 : c.filter((u) => (u == null ? void 0 : u.key) === e)) == null ? void 0 : i.map((u) => u == null ? void 0 : u.id);
380
+ let s = l == null ? void 0 : l.map((u) => {
381
+ if (u)
382
+ return $({ id: u });
383
+ });
384
+ const n = await Promise.all(s), g = n == null ? void 0 : n.every((u) => {
385
+ var o;
386
+ return ((o = u == null ? void 0 : u.data) == null ? void 0 : o.code) === 200;
387
+ });
388
+ if (console.log("getTriggerStructures2", t == null ? void 0 : t.structureIds, e, n), g && (n == null ? void 0 : n.length) > 0) {
389
+ const u = n == null ? void 0 : n.map((o) => {
390
+ var v, d, C, B, P, x, a;
391
+ return {
392
+ id: (C = (d = (v = o == null ? void 0 : o.data) == null ? void 0 : v.result) == null ? void 0 : d[0]) == null ? void 0 : C.id,
393
+ ...(a = (x = (P = (B = o == null ? void 0 : o.data) == null ? void 0 : B.result) == null ? void 0 : P[0]) == null ? void 0 : x.value) == null ? void 0 : a.pageData
394
+ };
395
+ });
396
+ F.setItemData(u), T.setCacheStructures({
397
+ key: e,
398
+ data: u
399
+ });
400
+ }
401
+ }, Xe = async (t) => {
402
+ var n, g, r, p, c, i, u, o;
403
+ const e = t === "操作触发的弹窗结构" ? "dialogConfig" : "contentConfig";
404
+ if (T.setButtonTriggerType(e), f.type === "create" && ((n = I.value) == null ? void 0 : n.length) > 0) {
405
+ const v = (r = (g = I.value) == null ? void 0 : g.filter((d) => (d == null ? void 0 : d.key) === e)) == null ? void 0 : r.flatMap((d) => d == null ? void 0 : d.data);
406
+ console.log("clickTrigger", e, I.value, v), F.setItemData(v);
407
+ } else
408
+ await Qe(y.value, e);
409
+ let l;
410
+ (p = D.value) != null && p.subMenus && ((c = D.value) == null ? void 0 : c.subMenus.length) > 0 && (l = (i = X.value) == null ? void 0 : i.map((v) => ({
411
+ value: v
412
+ })), l.unshift({
413
+ value: (u = y.value) == null ? void 0 : u.title
414
+ }));
415
+ let s;
416
+ f.type === "create" ? s = {
417
+ ...D.value,
418
+ path: (o = k.value) == null ? void 0 : o.path
419
+ } : f.type === "update" && (s = O.value), await T.setConfigMenu(s), he.setSelectTitle(l), F.setIsEdit("edit");
420
+ }, H = async (t) => {
421
+ var l, s, n, g, r, p;
422
+ const e = await $({
423
+ key: {
424
+ type: "menuConfigData",
425
+ systemKey: sessionStorage.getItem("systemKey"),
426
+ pageKey: z.value + "/" + (t == null ? void 0 : t.path),
427
+ tableId: ""
428
+ }
429
+ });
430
+ ((l = e == null ? void 0 : e.data) == null ? void 0 : l.code) === 200 && (s = e.data) != null && s.result && (G.value = ((g = (n = e.data) == null ? void 0 : n.result) == null ? void 0 : g.length) > 0 ? (p = (r = e.data) == null ? void 0 : r.result) == null ? void 0 : p.map((c) => {
431
+ var i;
432
+ return {
433
+ id: c == null ? void 0 : c.id,
434
+ ...(i = c == null ? void 0 : c.value) == null ? void 0 : i.tableData
435
+ };
436
+ }) : []), W.value = !1;
437
+ }, A = async (t, e, l = "contentConfig") => {
438
+ var s, n, g, r, p, c, i, u;
439
+ console.log("clickSubmitForm4", t);
440
+ try {
441
+ let o, v;
442
+ e === "create" ? (o = {
443
+ key: {
444
+ systemKey: sessionStorage.getItem("systemKey"),
445
+ pageKey: z.value + "/" + ((s = k.value) == null ? void 0 : s.path),
446
+ type: "structure",
447
+ rootNodePath: (g = (n = k.value) == null ? void 0 : n.rootNode) == null ? void 0 : g.path,
448
+ structureBelong: l,
449
+ parentTable: "",
450
+ version: 1
451
+ },
452
+ value: {
453
+ pageData: t
454
+ }
455
+ }, v = fe) : e === "update" ? (o = {
456
+ id: (r = t == null ? void 0 : t.structure) == null ? void 0 : r.id,
457
+ // key: {
458
+ // systemKey: sessionStorage.getItem("systemKey"),
459
+ // pageKey: activeMenuPath.value + '/' + clickNode.value?.path,
460
+ // type: 'structure',
461
+ // rootNodePath: clickNode.value?.rootNode?.path,
462
+ // structureBelong,
463
+ // parentTable: '',
464
+ // version: 1
465
+ // },
466
+ value: {
467
+ pageData: t
468
+ }
469
+ }, v = ve) : e === "delete" && (o = {
470
+ id: t
471
+ }, v = Ne);
472
+ const d = await v(o);
473
+ if (((p = d == null ? void 0 : d.data) == null ? void 0 : p.code) !== 200)
474
+ throw M.error("保存响应失败"), new Error("保存响应失败");
475
+ const C = e === "create" ? (c = d == null ? void 0 : d.data) == null ? void 0 : c.result : (i = t == null ? void 0 : t.structure) == null ? void 0 : i.id;
476
+ return console.log("查看返回的数据id:", e, C), {
477
+ status: ((u = d == null ? void 0 : d.data) == null ? void 0 : u.code) === 200,
478
+ data: {
479
+ id: C,
480
+ key: l
481
+ }
482
+ };
483
+ } catch {
484
+ M.error("保存响应失败");
485
+ }
486
+ }, ce = (t, e) => {
487
+ var c, i, u;
488
+ const l = (c = t == null ? void 0 : t.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : c.map((o) => o == null ? void 0 : o.id), s = e.filter((o) => !(l != null && l.includes(o))), n = l == null ? void 0 : l.filter((o) => !e.includes(o));
489
+ let g = null, r = null, p = null;
490
+ return g = [...s, ...n].filter((o) => o), r = (i = t == null ? void 0 : t.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : i.filter((o) => !(o != null && o.id)), p = (u = t == null ? void 0 : t.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : u.filter((o) => o == null ? void 0 : o.id).filter((o) => Object.keys(o).length > 1), console.log("getDifferentBusiness", t, g, r, p, y.value), {
491
+ deleteIds: g,
492
+ createComps: r,
493
+ updateComps: p
494
+ };
495
+ }, ie = (t, e) => {
496
+ var s, n, g, r, p, c;
497
+ let l = [];
498
+ return ((s = e == null ? void 0 : e.deleteIds) == null ? void 0 : s.length) > 0 && ((n = e == null ? void 0 : e.deleteIds) == null || n.forEach((i) => {
499
+ l.push(A(i, "delete", t));
500
+ })), ((g = e == null ? void 0 : e.createComps) == null ? void 0 : g.length) > 0 && ((r = e == null ? void 0 : e.createComps) == null || r.forEach((i) => {
501
+ l.push(A(i, "create", t));
502
+ })), ((p = e == null ? void 0 : e.updateComps) == null ? void 0 : p.length) > 0 && ((c = e == null ? void 0 : e.updateComps) == null || c.forEach((i) => {
503
+ i != null && i.id && l.push(A(i, "update", t));
504
+ })), l;
505
+ }, Ye = (t) => {
506
+ const e = /* @__PURE__ */ new Map();
507
+ return t.forEach((l) => {
508
+ e.set(l.id, l);
509
+ }), Array.from(e.values());
510
+ }, Ze = async (t, e) => {
511
+ var l, s, n, g, r, p, c;
512
+ try {
513
+ console.log("structures", t);
514
+ const i = t == null ? void 0 : t.filter((a) => (a == null ? void 0 : a.key) === "contentConfig"), u = t == null ? void 0 : t.filter((a) => (a == null ? void 0 : a.key) === "dialogConfig");
515
+ await N();
516
+ const o = (n = (s = (l = I.value) == null ? void 0 : l.filter((a) => (a == null ? void 0 : a.key) === "dialogConfig")) == null ? void 0 : s.flatMap((a) => a == null ? void 0 : a.data)) == null ? void 0 : n.map((a) => a == null ? void 0 : a.id);
517
+ let v = (p = (r = (g = I.value) == null ? void 0 : g.filter((a) => (a == null ? void 0 : a.key) === "contentConfig")) == null ? void 0 : r.flatMap((a) => a == null ? void 0 : a.data)) == null ? void 0 : p.map((a) => a == null ? void 0 : a.id);
518
+ console.log("submitMenuStructures", o, v), v = [...v, ...(c = Ce.value) == null ? void 0 : c.map((a) => a == null ? void 0 : a.id)];
519
+ const d = ce(u, o), C = ce(i, v);
520
+ console.log("clickSubmitForm1", u, i, d, C, e);
521
+ const B = ie("dialogConfig", d), P = ie("contentConfig", C), x = [...B, ...P];
522
+ await Promise.all(x).then((a) => {
523
+ var Z, m, ee, te, le, oe, ae;
524
+ const De = a == null ? void 0 : a.every((h) => h.status);
525
+ if (console.log("clickSubmitForm3Promise:", a, y.value, d, C), !De) return;
526
+ let w = (Z = a == null ? void 0 : a.flatMap((h) => h == null ? void 0 : h.data)) == null ? void 0 : Z.filter((h) => (h == null ? void 0 : h.id) !== null && (h == null ? void 0 : h.id) !== void 0);
527
+ if (console.log("clickSubmitForm4Promise:", w, d, C, y.value), ((m = d == null ? void 0 : d.updateComps) == null ? void 0 : m.length) === 0 && f.type === "update") {
528
+ const h = (te = (ee = y.value) == null ? void 0 : ee.structureIds) == null ? void 0 : te.filter((S) => (S == null ? void 0 : S.key) === "dialogConfig");
529
+ w = [...w, ...h];
530
+ }
531
+ if (console.log("clickSubmitForm5Promise:", w), ((le = C == null ? void 0 : C.updateComps) == null ? void 0 : le.length) === 0 && f.type === "update") {
532
+ const h = (ae = (oe = y.value) == null ? void 0 : oe.structureIds) == null ? void 0 : ae.filter((S) => (S == null ? void 0 : S.key) === "contentConfig");
533
+ w = [...w, ...h];
534
+ }
535
+ const Y = Ye(w);
536
+ console.log("clickSubmitForm6Promise:", Y, w, y.value), Ie({
537
+ ...e,
538
+ isNotInitial: !0,
539
+ structureIds: Y
540
+ }, f.type);
541
+ }).catch((a) => {
542
+ M.error(a);
543
+ });
544
+ } catch (i) {
545
+ throw M.error(i), new Error(i);
546
+ }
547
+ }, Ie = async (t, e) => {
548
+ var n, g;
549
+ let l, s;
550
+ e === "create" ? (l = {
551
+ key: {
552
+ type: "menuConfigData",
553
+ systemKey: sessionStorage.getItem("systemKey"),
554
+ pageKey: z.value + "/" + ((n = k.value) == null ? void 0 : n.path),
555
+ tableId: "",
556
+ rootNodePath: t == null ? void 0 : t.rootNodePath
557
+ },
558
+ value: {
559
+ tableData: t
560
+ }
561
+ }, s = fe) : e === "update" ? (l = {
562
+ id: t == null ? void 0 : t.id,
563
+ // key: {
564
+ // type: "menuConfigData",
565
+ // systemKey: sessionStorage.getItem("systemKey"),
566
+ // pageKey: activeMenuPath.value + '/' + clickNode.value?.path,
567
+ // tableId: '',
568
+ // },
569
+ value: {
570
+ tableData: t
571
+ }
572
+ }, s = ve) : e === "delete" && (l = {
573
+ ids: [t.id, ...(g = t == null ? void 0 : t.structureIds) == null ? void 0 : g.map((r) => r.id)]
574
+ }, s = Be), Ke(s, l, e).then((r) => {
575
+ e === "create" && G.value.push({
576
+ ...t,
577
+ id: r
578
+ }), e && r && M.success("响应成功"), H(k.value);
579
+ });
580
+ }, me = async () => {
581
+ var l, s, n, g, r;
582
+ const t = JSON.parse(q(JSON.stringify(I.value)));
583
+ console.log("clickSubmitForm-1", t), await N();
584
+ const e = f.type === "create" ? {
585
+ ...O.value,
586
+ rootNodePath: (s = (l = k.value) == null ? void 0 : l.rootNode) == null ? void 0 : s.path
587
+ } : {
588
+ ...O.value,
589
+ rootNodePath: (g = (n = k.value) == null ? void 0 : n.rootNode) == null ? void 0 : g.path,
590
+ id: (r = y.value) == null ? void 0 : r.id
591
+ };
592
+ await Ze(t, e), D.value = {}, f.show = !1, await H(k.value);
593
+ }, et = () => {
594
+ f.show = !1;
595
+ }, tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
596
+ __proto__: null,
597
+ beforeDialogDestroy: et,
598
+ buttonValue: Le,
599
+ changeTrigger: We,
600
+ changedRow: Je,
601
+ clickNodeTrigger: $e,
602
+ clickRowButton: ze,
603
+ clickSubmitForm: me,
604
+ clickTrigger: Xe,
605
+ dialogInfo: f,
606
+ formatFormData: J,
607
+ getInitialSubStructure: Te,
608
+ getTableDataAsync: H,
609
+ handleItemDataChange: Ue,
610
+ inputForm: D,
611
+ menuPageData: je,
612
+ operatingForm: Ge,
613
+ pageData: Ve,
614
+ renderFormData: Q,
615
+ tableLoading: W,
616
+ treeData: ke
617
+ }, Symbol.toStringTag, { value: "Module" })), lt = { class: "menu-module" }, ot = { class: "tree-wrap" }, at = {
618
+ class: "table-wrap",
619
+ "element-loading-text": "加载中..."
620
+ }, nt = { class: "module-dialog-default" }, rt = /* @__PURE__ */ Se({
621
+ __name: "index",
622
+ setup(t) {
623
+ const e = ge({ ...tt }), l = b(null), s = de(K), { configMenu: n } = pe(s);
624
+ return _e(() => {
625
+ var g;
626
+ e.formatFormData(n.value), console.log(12345, n.value), N(() => {
627
+ var r, p;
628
+ (p = l.value) == null || p.setCurrentKey((r = n.value) == null ? void 0 : r.path);
629
+ }), n.value && e.getInitialSubStructure((g = n.value) == null ? void 0 : g.path);
630
+ }), (g, r) => {
631
+ const p = ne("el-tree"), c = ne("el-button"), i = Me("loading");
632
+ return se(), re("div", lt, [
633
+ R("div", ot, [
634
+ _(p, {
635
+ ref_key: "treeRef",
636
+ ref: l,
637
+ data: e.treeData,
638
+ "expand-on-click-node": !1,
639
+ "node-key": "path",
640
+ props: { children: "children", label: "label", path: "path" },
641
+ "highlight-current": "",
642
+ "default-expand-all": "",
643
+ "check-on-click-leaf": !1,
644
+ "check-strictly": "",
645
+ onNodeClick: e.clickNodeTrigger
646
+ }, null, 8, ["data", "onNodeClick"])
647
+ ]),
648
+ Fe((se(), re("div", at, [
649
+ _(Ee, {
650
+ itemData: e.menuPageData,
651
+ changedContent: e.changedRow,
652
+ operatingForm: e.operatingForm,
653
+ onOnFormChange: e.changeTrigger,
654
+ onChange: e.handleItemDataChange,
655
+ onClickTrigger: e.clickTrigger,
656
+ onOnButtonClick: e.clickRowButton
657
+ }, null, 8, ["itemData", "changedContent", "operatingForm", "onOnFormChange", "onChange", "onClickTrigger", "onOnButtonClick"])
658
+ ])), [
659
+ [i, e.tableLoading]
660
+ ]),
661
+ _(Re, {
662
+ class: "module-dialog",
663
+ title: e.dialogInfo.title,
664
+ visible: e.dialogInfo.show,
665
+ width: e.dialogInfo.width,
666
+ onBeforeDestroy: e.beforeDialogDestroy
667
+ }, {
668
+ default: E(() => [
669
+ R("div", nt, [
670
+ _(Ae, {
671
+ rowContents: e.renderFormData,
672
+ isEnableWrap: !1,
673
+ isEdit: !0,
674
+ onChange: e.changeTrigger,
675
+ onClickTrigger: e.clickTrigger
676
+ }, null, 8, ["rowContents", "onChange", "onClickTrigger"])
677
+ ])
678
+ ]),
679
+ footer: E(() => [
680
+ R("div", null, [
681
+ _(c, {
682
+ onClick: e.beforeDialogDestroy,
683
+ id: "themeBorderButton"
684
+ }, {
685
+ default: E(() => r[0] || (r[0] = [
686
+ ue("取消")
687
+ ])),
688
+ _: 1,
689
+ __: [0]
690
+ }, 8, ["onClick"]),
691
+ _(c, {
692
+ id: "themeButton",
693
+ onClick: e.clickSubmitForm
694
+ }, {
695
+ default: E(() => r[1] || (r[1] = [
696
+ ue(" 确认 ")
697
+ ])),
698
+ _: 1,
699
+ __: [1]
700
+ }, 8, ["onClick"])
701
+ ])
702
+ ]),
703
+ _: 1
704
+ }, 8, ["title", "visible", "width", "onBeforeDestroy"])
705
+ ]);
706
+ };
707
+ }
708
+ }), ht = /* @__PURE__ */ Oe(rt, [["__scopeId", "data-v-6741a125"]]);
709
+ export {
710
+ ht as default
711
+ };