ss-component-new 1.3.665 → 1.3.666

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 (84) hide show
  1. package/dist/MTLLoader-DI0avKtj.js +657 -0
  2. package/dist/URDFLoader-PUxvYFDe.js +2304 -0
  3. package/dist/animationData-05aVUytq.js +83 -0
  4. package/dist/array-BHRYnJKv.js +1044 -0
  5. package/dist/clone-Ddn1p6-1.js +8 -0
  6. package/dist/config.js +1 -1
  7. package/dist/eleIcon-BWVKfp5t.js +29 -0
  8. package/dist/iconfont-BNdGaGPn.js +1018 -0
  9. package/dist/icons/svg/Update.svg +1 -0
  10. package/dist/icons/svg/functionList.svg +1 -0
  11. package/dist/icons/svg/uploadCopy.svg +1 -0
  12. package/dist/index-7mFTFA3-.js +107 -0
  13. package/dist/index-BDhIWgKn.js +658 -0
  14. package/dist/index-BFqUz4pN.js +52 -0
  15. package/dist/index-BP1mKUQP.js +627 -0
  16. package/dist/index-BczRQX8N.js +407 -0
  17. package/dist/index-BnrvtCYj.js +55 -0
  18. package/dist/index-Bpr501oZ.js +78 -0
  19. package/dist/index-BvbZiTVB.js +342 -0
  20. package/dist/index-Bvvz41NY.js +44 -0
  21. package/dist/index-C2M8MGB3.js +83 -0
  22. package/dist/index-C67QqPPT.js +24865 -0
  23. package/dist/index-C85-PeF1.js +11773 -0
  24. package/dist/index-C9DBY1gg.js +103 -0
  25. package/dist/index-CFFbhR3G.js +996 -0
  26. package/dist/index-COr2mcbl.js +48 -0
  27. package/dist/index-CQ8DCGnJ.js +98 -0
  28. package/dist/index-CV2cha0T.js +864 -0
  29. package/dist/index-CV_jQDcg.js +9 -0
  30. package/dist/index-CXe4q28L.js +447 -0
  31. package/dist/{index-BobGeNMx.js → index-ChNfRlIP.js} +5 -5
  32. package/dist/index-CqNlqFQ5.js +117 -0
  33. package/dist/index-D-5v1Jx7.js +93 -0
  34. package/dist/index-D4LcEpQ7.js +619 -0
  35. package/dist/index-D9w3QWuY.js +468 -0
  36. package/dist/index-DGObzWyL.js +8984 -0
  37. package/dist/index-DJ59jXR0.js +28483 -0
  38. package/dist/index-DJrzqi4-.js +209 -0
  39. package/dist/index-D_kI6aHR.js +98 -0
  40. package/dist/index-DhQcwkOc.js +61958 -0
  41. package/dist/index-DhULdX5n.js +2623 -0
  42. package/dist/index-Dibj25i7.js +93 -0
  43. package/dist/index-Dr9Wt5nC.js +84 -0
  44. package/dist/index-Dwt0Wlg_.js +201 -0
  45. package/dist/index-WPJbEuld.js +62 -0
  46. package/dist/index-YVR3acYT.js +61 -0
  47. package/dist/{index-BKK_dL6t.js → index-dD-mKgue.js} +3 -3
  48. package/dist/index-roQK_1xA.js +30 -0
  49. package/dist/index-uF-ibwG0.js +9 -0
  50. package/dist/{index.vue_vue_type_script_setup_true_lang-DRzriV-s.js → index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js} +2 -2
  51. package/dist/index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CG9X8aa2.js +137728 -0
  52. package/dist/isString-CoCw_sp3.js +8 -0
  53. package/dist/localIcon-CoJHw5ss.js +76 -0
  54. package/dist/main-Dlo2i9wB.js +502 -0
  55. package/dist/menuIndex-Dt0NyAyE.js +159 -0
  56. package/dist/request-DiogHwkN.js +9465 -0
  57. package/dist/ss-component.css +8 -2
  58. package/dist/ss-component.js +64 -28
  59. package/dist/ss-component2.js +75 -15
  60. package/dist/ss-component3.js +1 -1
  61. package/dist/threeModel-BfY7WDWB.js +1108 -0
  62. package/dist/threePreview-BHLSA5YS.js +2259 -0
  63. package/dist/threeSceneView-ZTUK-ls2.js +1289 -0
  64. package/dist/threeSceneViewForCPMPIP-DCG4eBvk.js +538 -0
  65. package/dist/threeTrackPathView-BR8-g2Tr.js +620 -0
  66. package/dist/threeViewerHost-BwblfmOC.js +233 -0
  67. package/dist/urdfTree-IEJgkVzs.js +254 -0
  68. package/dist/workpieceTreePanel-aZV2ut3W.js +555 -0
  69. package/package.json +4 -4
  70. package/public/config.js +1 -1
  71. package/public/icons/svg/Update.svg +1 -0
  72. package/public/icons/svg/functionList.svg +1 -0
  73. package/public/icons/svg/uploadCopy.svg +1 -0
  74. package/dist/index-CoXdIQt_.js +0 -50
  75. package/dist/index-DJWOuBw9.js +0 -195
  76. package/dist/index-DK2pco3V.js +0 -1044
  77. package/dist/index-DfraOPVU.js +0 -9022
  78. package/dist/index-MHAwX3y9.js +0 -182
  79. package/dist/menu-B8iV5Rhf.js +0 -5215
  80. package/dist/origin-C4Shcrcr.js +0 -11428
  81. /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  82. /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
  83. /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  84. /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
@@ -0,0 +1,627 @@
1
+ import { ref as i, nextTick as B, reactive as ie, computed as _, watch as ye } from "vue";
2
+ import { c as J, u as be, p as U, a as he, o as Ce, s as Ie } from "./index-DGObzWyL.js";
3
+ import { j as ke } from "./index-DJ59jXR0.js";
4
+ import { g as $, c as ae, u as oe, d as Te, a as Me } from "./index-YVR3acYT.js";
5
+ import { e as Se } from "./menuIndex-Dt0NyAyE.js";
6
+ import { E as S } from "./request-DiogHwkN.js";
7
+ const F = he(U), ne = Ce(U), C = be(U), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = Ie(C), z = i(!1), se = _(() => {
8
+ var e, t;
9
+ return [
10
+ {
11
+ key: "extraButton",
12
+ contents: [
13
+ // {
14
+ // label: "新增"
15
+ // }
16
+ ]
17
+ },
18
+ {
19
+ key: "rowButton",
20
+ contents: [
21
+ {
22
+ label: "修改"
23
+ }
24
+ // {
25
+ // label: "删除"
26
+ // }
27
+ ]
28
+ },
29
+ {
30
+ key: "header",
31
+ contents: [
32
+ {
33
+ label: "菜单名称",
34
+ prop: "title",
35
+ isFormColHidden: !1
36
+ },
37
+ {
38
+ label: "菜单类型",
39
+ prop: "menuType",
40
+ formType: "select",
41
+ options: [
42
+ {
43
+ label: "系统菜单",
44
+ value: "集团"
45
+ },
46
+ {
47
+ label: "公司",
48
+ value: "公司"
49
+ }
50
+ ],
51
+ isTableColHidden: !1,
52
+ isFormColHidden: !0
53
+ },
54
+ {
55
+ label: "操作"
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ key: "tableContents",
61
+ contents: (t = (e = J(ue.value)) == null ? void 0 : e.map((l) => ({
62
+ ...l,
63
+ menuType: "系统菜单"
64
+ }))) == null ? void 0 : t.filter((l) => l.title !== "系统管理" && l.title !== "平台管理")
65
+ }
66
+ ];
67
+ }), G = i([]), O = i([
68
+ {
69
+ // label: "新增",
70
+ label: "新建"
71
+ }
72
+ ]), we = _(() => [
73
+ {
74
+ key: "extraButton",
75
+ contents: O.value
76
+ },
77
+ {
78
+ key: "rowButton",
79
+ contents: [
80
+ {
81
+ // label: "编辑",
82
+ label: "修改"
83
+ },
84
+ {
85
+ label: "删除"
86
+ }
87
+ ]
88
+ },
89
+ {
90
+ key: "header",
91
+ contents: [
92
+ {
93
+ label: "操作类型",
94
+ prop: "operateType",
95
+ formType: "select",
96
+ options: [
97
+ {
98
+ label: "新增",
99
+ value: "新增"
100
+ },
101
+ {
102
+ label: "编辑",
103
+ value: "编辑"
104
+ },
105
+ {
106
+ label: "删除",
107
+ value: "删除"
108
+ }
109
+ ],
110
+ value: ""
111
+ },
112
+ {
113
+ label: "操作图标",
114
+ prop: "operateIcon",
115
+ formType: "inputPopover",
116
+ value: ""
117
+ },
118
+ {
119
+ label: "操作触发事件",
120
+ prop: "trigger",
121
+ formType: "select",
122
+ options: [
123
+ {
124
+ label: "弹出弹窗",
125
+ value: "openDialog"
126
+ }
127
+ ],
128
+ value: "openDialog"
129
+ },
130
+ {
131
+ label: "配置一:",
132
+ prop: "dialogConfig",
133
+ formType: "button",
134
+ value: "弹窗内容",
135
+ isTableColHidden: !0
136
+ },
137
+ {
138
+ label: "配置二:",
139
+ prop: "contentConfig",
140
+ formType: "button",
141
+ value: "模块内容",
142
+ isTableColHidden: !0
143
+ },
144
+ {
145
+ label: "继承配置:",
146
+ prop: "allowInherit",
147
+ formType: "radio",
148
+ contents: [
149
+ {
150
+ label: "是",
151
+ value: !0
152
+ },
153
+ {
154
+ label: "否",
155
+ value: !1
156
+ }
157
+ ],
158
+ value: !1,
159
+ isTableColHidden: !0
160
+ },
161
+ {
162
+ label: "操作"
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ key: "tableContents",
168
+ contents: G.value
169
+ }
170
+ ]), L = i([]), I = i({}), De = i({}), x = i([
171
+ // {
172
+ // label: "配置菜单:",
173
+ // prop: 'menu',
174
+ // type: 'cascader',
175
+ // contents: [],
176
+ // config: {
177
+ // checkStrictly: true
178
+ // },
179
+ // // value: ['压气机叶片', 'CJ-1000A']
180
+ // value: []
181
+ // },
182
+ {
183
+ label: "菜单",
184
+ prop: "path",
185
+ isFormColHidden: !0,
186
+ value: ""
187
+ },
188
+ {
189
+ label: "操作类型:",
190
+ prop: "operateType",
191
+ type: "select",
192
+ contents: [
193
+ {
194
+ label: "新增",
195
+ value: "新增"
196
+ },
197
+ {
198
+ label: "编辑",
199
+ value: "编辑"
200
+ },
201
+ {
202
+ label: "删除",
203
+ value: "删除"
204
+ }
205
+ ],
206
+ value: ""
207
+ },
208
+ {
209
+ label: "操作图标:",
210
+ prop: "operateIcon",
211
+ type: "inputPopover",
212
+ value: ""
213
+ },
214
+ {
215
+ label: "操作触发事件:",
216
+ prop: "trigger",
217
+ type: "select",
218
+ contents: [
219
+ {
220
+ label: "弹出弹窗",
221
+ value: "openDialog"
222
+ }
223
+ ],
224
+ value: "openDialog"
225
+ },
226
+ {
227
+ label: "生成的菜单图标:",
228
+ prop: "menuIcon",
229
+ type: "inputPopover",
230
+ value: ""
231
+ },
232
+ {
233
+ label: "配置一:",
234
+ prop: "dialogConfig",
235
+ type: "button",
236
+ value: "操作触发的弹窗结构"
237
+ },
238
+ {
239
+ label: "配置二:",
240
+ prop: "contentConfig",
241
+ type: "button",
242
+ value: "操作生成的模块结构",
243
+ isFormColHidden: !1
244
+ },
245
+ {
246
+ label: "",
247
+ prop: "structureIds",
248
+ type: "input",
249
+ value: [],
250
+ isFormColHidden: !0
251
+ },
252
+ {
253
+ label: "继承配置:",
254
+ prop: "allowInherit",
255
+ type: "radio",
256
+ contents: [
257
+ {
258
+ label: "是",
259
+ value: !0
260
+ },
261
+ {
262
+ label: "否",
263
+ value: !1
264
+ }
265
+ ],
266
+ value: !0
267
+ }
268
+ ]), j = (e) => {
269
+ var t;
270
+ L.value = e ? (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l : {
271
+ ...l,
272
+ value: e ? e[l == null ? void 0 : l.prop] : ""
273
+ }) : x.value;
274
+ }, Ne = i([
275
+ {
276
+ label: "查询"
277
+ },
278
+ {
279
+ label: "重置"
280
+ }
281
+ ]), Pe = async () => {
282
+ }, re = (e) => e.map((t) => t.childMenus && t.childMenus.length > 0 ? {
283
+ ...t,
284
+ value: t == null ? void 0 : t.title,
285
+ label: t == null ? void 0 : t.title,
286
+ children: re(t.childMenus)
287
+ } : {
288
+ ...t,
289
+ value: t == null ? void 0 : t.title,
290
+ label: t == null ? void 0 : t.title
291
+ }), g = ie({
292
+ show: !1,
293
+ title: "菜单配置",
294
+ width: "30%",
295
+ type: "create"
296
+ }), V = i([]), h = i({}), b = i(null), ce = i([]), pe = _(() => {
297
+ var e;
298
+ return (e = re(ue.value)) == null ? void 0 : e.filter((t) => t.title !== "系统管理" && t.title !== "平台管理");
299
+ }), fe = async (e) => {
300
+ var l, u, n, c;
301
+ const t = await $({
302
+ key: {
303
+ type: "subStructure",
304
+ systemKey: sessionStorage.getItem("systemKey"),
305
+ pageKey: e,
306
+ version: 1
307
+ }
308
+ });
309
+ if (((l = t == null ? void 0 : t.data) == null ? void 0 : l.code) === 200 && (u = t.data) != null && u.result) {
310
+ const s = (c = (n = t.data) == null ? void 0 : n.result) == null ? void 0 : c.map((p) => {
311
+ var f;
312
+ return {
313
+ id: p == null ? void 0 : p.id,
314
+ ...(f = p == null ? void 0 : p.value) == null ? void 0 : f.pageData
315
+ };
316
+ });
317
+ ce.value = s, C.setCacheStructures({
318
+ key: "contentConfig",
319
+ data: s
320
+ });
321
+ }
322
+ }, Fe = async (e) => {
323
+ var t;
324
+ z.value = !0, b.value = {
325
+ ...e,
326
+ rootNode: Se(pe.value, e.path)
327
+ }, C.setCacheStructures(null), (e == null ? void 0 : e.level) === 0 ? O.value.splice(0) : (O.value = [{ label: "新建" }], V.value = (t = e == null ? void 0 : e.path) == null ? void 0 : t.split("/")), await C.setConfigMenu(null), await fe(e == null ? void 0 : e.path), await H(e);
328
+ }, Ke = (e) => {
329
+ switch (e) {
330
+ case "新建":
331
+ return "create";
332
+ case "修改":
333
+ return "update";
334
+ case "删除":
335
+ return "delete";
336
+ }
337
+ }, Be = async (e, t) => {
338
+ var l, u;
339
+ if (!b.value) return S.warning("请先选择菜单");
340
+ if (g.type = Ke(e), V.value = [], F.setSubmitCurStructure(!1), ne.setSelectTitle([]), h.value = J(t), g.type !== "delete") {
341
+ switch (g.type) {
342
+ case "create":
343
+ j(null), await C.setConfigMenu(null);
344
+ break;
345
+ case "update":
346
+ j(h.value), await C.setConfigMenu(h.value), console.log("clickRowButton", h.value);
347
+ break;
348
+ }
349
+ await B(), g.title = `【${g.type === "create" ? (l = b.value) == null ? void 0 : l.path : (u = h.value) == null ? void 0 : u.path}】菜单配置${e}`, g.show = !0;
350
+ } else
351
+ await ge(h.value, g.type);
352
+ }, de = i(!0), He = async (e) => {
353
+ var t;
354
+ I.value = e, await C.setConfigMenu({
355
+ ...I.value,
356
+ path: (t = b.value) == null ? void 0 : t.path
357
+ }), de.value = (e == null ? void 0 : e.operateType) !== "新增";
358
+ };
359
+ ye(() => de.value, async (e) => {
360
+ var t;
361
+ await B(), L.value = (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l.prop === "contentConfig" ? {
362
+ ...l,
363
+ isFormColHidden: e
364
+ } : l : {
365
+ ...l,
366
+ value: I.value ? I.value[l == null ? void 0 : l.prop] : ""
367
+ });
368
+ }, { immediate: !0, deep: !0 });
369
+ const Ae = i(null), Ee = async (e, t) => {
370
+ var s, p, f, r, y;
371
+ if (g.type === "create") {
372
+ const a = (p = (s = K.value) == null ? void 0 : s.filter((d) => (d == null ? void 0 : d.key) === t)) == null ? void 0 : p.flatMap((d) => d == null ? void 0 : d.data);
373
+ F.setItemData(a), C.setCacheStructures({
374
+ key: t,
375
+ data: a
376
+ });
377
+ }
378
+ if (console.log("getTriggerStructures1", e == null ? void 0 : e.structureIds, t), !(e != null && e.structureIds) || ((f = e == null ? void 0 : e.structureIds) == null ? void 0 : f.length) === 0) return;
379
+ const l = (y = (r = e == null ? void 0 : e.structureIds) == null ? void 0 : r.filter((a) => (a == null ? void 0 : a.key) === t)) == null ? void 0 : y.map((a) => a == null ? void 0 : a.id);
380
+ let u = l == null ? void 0 : l.map((a) => {
381
+ if (a)
382
+ return $({ id: a });
383
+ });
384
+ const n = await Promise.all(u), c = n == null ? void 0 : n.every((a) => {
385
+ var d;
386
+ return ((d = a == null ? void 0 : a.data) == null ? void 0 : d.code) === 200;
387
+ });
388
+ if (console.log("getTriggerStructures2", e == null ? void 0 : e.structureIds, t, n), c && (n == null ? void 0 : n.length) > 0) {
389
+ const a = n == null ? void 0 : n.map((d) => {
390
+ var k, T, D, N, P, o, A;
391
+ return {
392
+ id: (D = (T = (k = d == null ? void 0 : d.data) == null ? void 0 : k.result) == null ? void 0 : T[0]) == null ? void 0 : D.id,
393
+ ...(A = (o = (P = (N = d == null ? void 0 : d.data) == null ? void 0 : N.result) == null ? void 0 : P[0]) == null ? void 0 : o.value) == null ? void 0 : A.pageData
394
+ };
395
+ });
396
+ F.setItemData(a), C.setCacheStructures({
397
+ key: t,
398
+ data: a
399
+ });
400
+ }
401
+ }, Re = async (e) => {
402
+ var n, c, s, p, f;
403
+ const t = e === "操作触发的弹窗结构" ? "dialogConfig" : "contentConfig";
404
+ C.setButtonTriggerType(t), await Ee(h.value, t);
405
+ let l;
406
+ (n = I.value) != null && n.subMenus && ((c = I.value) == null ? void 0 : c.subMenus.length) > 0 && (l = (s = V.value) == null ? void 0 : s.map((r) => ({
407
+ value: r
408
+ })), l.unshift({
409
+ value: (p = h.value) == null ? void 0 : p.title
410
+ }));
411
+ let u;
412
+ g.type === "create" ? u = {
413
+ ...I.value,
414
+ path: (f = b.value) == null ? void 0 : f.path
415
+ } : g.type === "update" && (u = R.value), await C.setConfigMenu(u), ne.setSelectTitle(l), F.setIsEdit("edit");
416
+ }, H = async (e) => {
417
+ var l, u, n, c, s, p;
418
+ const t = await $({
419
+ key: {
420
+ type: "menuConfigData",
421
+ systemKey: sessionStorage.getItem("systemKey"),
422
+ pageKey: q.value + "/" + (e == null ? void 0 : e.path),
423
+ tableId: ""
424
+ }
425
+ });
426
+ ((l = t == null ? void 0 : t.data) == null ? void 0 : l.code) === 200 && (u = t.data) != null && u.result && (G.value = ((c = (n = t.data) == null ? void 0 : n.result) == null ? void 0 : c.length) > 0 ? (p = (s = t.data) == null ? void 0 : s.result) == null ? void 0 : p.map((f) => {
427
+ var r;
428
+ return {
429
+ id: f == null ? void 0 : f.id,
430
+ ...(r = f == null ? void 0 : f.value) == null ? void 0 : r.tableData
431
+ };
432
+ }) : []), z.value = !1;
433
+ }, E = async (e, t, l = "contentConfig") => {
434
+ var u, n, c, s, p, f;
435
+ try {
436
+ let r, y;
437
+ t === "create" ? (r = {
438
+ key: {
439
+ systemKey: sessionStorage.getItem("systemKey"),
440
+ pageKey: q.value + "/" + ((u = b.value) == null ? void 0 : u.path),
441
+ type: "structure",
442
+ rootNodePath: (c = (n = b.value) == null ? void 0 : n.rootNode) == null ? void 0 : c.path,
443
+ structureBelong: l,
444
+ parentTable: "",
445
+ version: 1
446
+ },
447
+ value: {
448
+ pageData: e
449
+ }
450
+ }, y = ae) : t === "update" ? (r = {
451
+ id: e == null ? void 0 : e.id,
452
+ // key: {
453
+ // systemKey: sessionStorage.getItem("systemKey"),
454
+ // pageKey: activeMenuPath.value + '/' + clickNode.value?.path,
455
+ // type: 'structure',
456
+ // rootNodePath: clickNode.value?.rootNode?.path,
457
+ // structureBelong,
458
+ // parentTable: '',
459
+ // version: 1
460
+ // },
461
+ value: {
462
+ pageData: e
463
+ }
464
+ }, y = oe) : t === "delete" && (r = {
465
+ id: e
466
+ }, y = Te);
467
+ const a = await y(r);
468
+ if (((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) !== 200)
469
+ throw S.error("保存响应失败"), new Error("保存响应失败");
470
+ const d = t === "create" ? (p = a == null ? void 0 : a.data) == null ? void 0 : p.result : e == null ? void 0 : e.id;
471
+ return {
472
+ status: ((f = a == null ? void 0 : a.data) == null ? void 0 : f.code) === 200,
473
+ data: {
474
+ id: d,
475
+ key: l
476
+ }
477
+ };
478
+ } catch {
479
+ S.error("保存响应失败");
480
+ }
481
+ }, te = (e, t) => {
482
+ var f, r, y;
483
+ const l = (f = e == null ? void 0 : e.flatMap((a) => a == null ? void 0 : a.data)) == null ? void 0 : f.map((a) => a == null ? void 0 : a.id), u = t.filter((a) => !(l != null && l.includes(a))), n = l == null ? void 0 : l.filter((a) => !t.includes(a));
484
+ let c = null, s = null, p = null;
485
+ return c = [...u, ...n].filter((a) => a), s = (r = e == null ? void 0 : e.flatMap((a) => a == null ? void 0 : a.data)) == null ? void 0 : r.filter((a) => !(a != null && a.id)), p = (y = e == null ? void 0 : e.flatMap((a) => a == null ? void 0 : a.data)) == null ? void 0 : y.filter((a) => a == null ? void 0 : a.id).filter((a) => Object.keys(a).length > 1), {
486
+ deleteIds: c,
487
+ createComps: s,
488
+ updateComps: p
489
+ };
490
+ }, le = (e, t) => {
491
+ var u, n, c, s, p, f;
492
+ let l = [];
493
+ return ((u = t == null ? void 0 : t.deleteIds) == null ? void 0 : u.length) > 0 && ((n = t == null ? void 0 : t.deleteIds) == null || n.forEach((r) => {
494
+ l.push(E(r, "delete", e));
495
+ })), ((c = t == null ? void 0 : t.createComps) == null ? void 0 : c.length) > 0 && ((s = t == null ? void 0 : t.createComps) == null || s.forEach((r) => {
496
+ l.push(E(r, "create", e));
497
+ })), ((p = t == null ? void 0 : t.updateComps) == null ? void 0 : p.length) > 0 && ((f = t == null ? void 0 : t.updateComps) == null || f.forEach((r) => {
498
+ r != null && r.id && l.push(E(r, "update", e));
499
+ })), l;
500
+ }, Oe = (e) => {
501
+ const t = /* @__PURE__ */ new Map();
502
+ return e.forEach((l) => {
503
+ t.set(l.id, l);
504
+ }), Array.from(t.values());
505
+ }, xe = async (e, t) => {
506
+ var l, u, n, c, s, p, f;
507
+ try {
508
+ const r = e == null ? void 0 : e.filter((o) => (o == null ? void 0 : o.key) === "contentConfig"), y = e == null ? void 0 : e.filter((o) => (o == null ? void 0 : o.key) === "dialogConfig");
509
+ await B();
510
+ const a = (n = (u = (l = K.value) == null ? void 0 : l.filter((o) => (o == null ? void 0 : o.key) === "dialogConfig")) == null ? void 0 : u.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : n.map((o) => o == null ? void 0 : o.id);
511
+ let d = (p = (s = (c = K.value) == null ? void 0 : c.filter((o) => (o == null ? void 0 : o.key) === "contentConfig")) == null ? void 0 : s.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : p.map((o) => o == null ? void 0 : o.id);
512
+ d = [...d, ...(f = ce.value) == null ? void 0 : f.map((o) => o == null ? void 0 : o.id)];
513
+ const k = te(y, a), T = te(r, d), D = le("dialogConfig", k), N = le("contentConfig", T), P = [...D, ...N];
514
+ await Promise.all(P).then((o) => {
515
+ var Q, W, X, Y, Z, m, ee;
516
+ if (!(o == null ? void 0 : o.every((v) => v.status))) return;
517
+ let w = (Q = o == null ? void 0 : o.flatMap((v) => v == null ? void 0 : v.data)) == null ? void 0 : Q.filter((v) => (v == null ? void 0 : v.id) !== null && (v == null ? void 0 : v.id) !== void 0);
518
+ if (((W = k == null ? void 0 : k.updateComps) == null ? void 0 : W.length) === 0 && g.type === "update") {
519
+ const v = (Y = (X = h.value) == null ? void 0 : X.structureIds) == null ? void 0 : Y.filter((M) => (M == null ? void 0 : M.key) === "dialogConfig");
520
+ w = [...w, ...v];
521
+ }
522
+ if (((Z = T == null ? void 0 : T.updateComps) == null ? void 0 : Z.length) === 0 && g.type === "update") {
523
+ const v = (ee = (m = h.value) == null ? void 0 : m.structureIds) == null ? void 0 : ee.filter((M) => (M == null ? void 0 : M.key) === "contentConfig");
524
+ w = [...w, ...v];
525
+ }
526
+ const ve = Oe(w);
527
+ ge({
528
+ ...t,
529
+ isNotInitial: !0,
530
+ structureIds: ve
531
+ }, g.type);
532
+ }).catch((o) => {
533
+ S.error(o);
534
+ });
535
+ } catch (r) {
536
+ throw S.error(r), new Error(r);
537
+ }
538
+ }, ge = async (e, t) => {
539
+ var n, c;
540
+ let l, u;
541
+ t === "create" ? (l = {
542
+ key: {
543
+ type: "menuConfigData",
544
+ systemKey: sessionStorage.getItem("systemKey"),
545
+ pageKey: q.value + "/" + ((n = b.value) == null ? void 0 : n.path),
546
+ tableId: "",
547
+ rootNodePath: e == null ? void 0 : e.rootNodePath
548
+ },
549
+ value: {
550
+ tableData: e
551
+ }
552
+ }, u = ae) : t === "update" ? (l = {
553
+ id: e == null ? void 0 : e.id,
554
+ // key: {
555
+ // type: "menuConfigData",
556
+ // systemKey: sessionStorage.getItem("systemKey"),
557
+ // pageKey: activeMenuPath.value + '/' + clickNode.value?.path,
558
+ // tableId: '',
559
+ // },
560
+ value: {
561
+ tableData: e
562
+ }
563
+ }, u = oe) : t === "delete" && (l = {
564
+ ids: [e.id, ...(c = e == null ? void 0 : e.structureIds) == null ? void 0 : c.map((s) => s.id)]
565
+ }, u = Me), ke(u, l, t).then((s) => {
566
+ t === "create" && G.value.push({
567
+ ...e,
568
+ id: s
569
+ }), t && s && S.success("响应成功"), H(b.value);
570
+ });
571
+ }, je = async () => {
572
+ var l, u, n, c, s;
573
+ const e = JSON.parse(J(JSON.stringify(K.value)));
574
+ await B();
575
+ const t = g.type === "create" ? {
576
+ ...R.value,
577
+ rootNodePath: (u = (l = b.value) == null ? void 0 : l.rootNode) == null ? void 0 : u.path
578
+ } : {
579
+ ...R.value,
580
+ rootNodePath: (c = (n = b.value) == null ? void 0 : n.rootNode) == null ? void 0 : c.path,
581
+ id: (s = h.value) == null ? void 0 : s.id
582
+ };
583
+ await xe(e, t), I.value = {}, g.show = !1, await H(b.value);
584
+ }, _e = () => {
585
+ g.show = !1;
586
+ }, Je = {
587
+ comp: "Group",
588
+ name: "/平台管理/菜单管理",
589
+ compData: [
590
+ {
591
+ key: "groupContents",
592
+ contents: [
593
+ {
594
+ comp: "Table",
595
+ compData: se.value,
596
+ name: ""
597
+ }
598
+ ]
599
+ }
600
+ ]
601
+ }, Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
602
+ __proto__: null,
603
+ beforeDialogDestroy: _e,
604
+ buttonValue: Ne,
605
+ changeTrigger: He,
606
+ changedRow: De,
607
+ clickNodeTrigger: Fe,
608
+ clickRowButton: Be,
609
+ clickSubmitForm: je,
610
+ clickTrigger: Re,
611
+ dialogInfo: g,
612
+ formatFormData: j,
613
+ getInitialSubStructure: fe,
614
+ getTableDataAsync: H,
615
+ handleItemDataChange: Pe,
616
+ inputForm: I,
617
+ menuPageData: we,
618
+ operatingForm: Ae,
619
+ pageData: se,
620
+ renderFormData: L,
621
+ tableLoading: z,
622
+ tempMenuPageData: Je,
623
+ treeData: pe
624
+ }, Symbol.toStringTag, { value: "Module" }));
625
+ export {
626
+ Ve as S
627
+ };