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.
- package/dist/array-58d570LL.cjs +7 -0
- package/dist/array-DEqtaw54.js +346 -0
- package/dist/{crypto-BRyGpjGR.js → crypto-Cq-QCViO.js} +178 -186
- package/dist/{crypto-CRbcEKIz.cjs → crypto-DX0stRPJ.cjs} +5 -5
- package/dist/{index-DuwxEG2Y.js → index-B36maAk9.js} +1 -1
- package/dist/index-B3ZWxITJ.js +1145 -0
- package/dist/{index-BJiXsb3E.cjs → index-B7pGY6s-.cjs} +1 -1
- package/dist/{index-WPbX9sqP.cjs → index-BEJ2yw6L.cjs} +1 -1
- package/dist/{index-9QTlnrEQ.cjs → index-BEZVG2w4.cjs} +1 -1
- package/dist/{index-BOzZXj2f.js → index-BMDwIj9Q.js} +7 -7
- package/dist/index-BN5_bPlI.js +711 -0
- package/dist/index-BQE6u3FY.cjs +7 -0
- package/dist/{index-DrUjNhjW.js → index-BTjvMH2-.js} +1 -1
- package/dist/{index-9srnYnzT.js → index-BXxCcVg9.js} +9 -9
- package/dist/{index-DIv5glVC.js → index-BZFpxFyZ.js} +422 -422
- package/dist/{index-Dm1_86kX.js → index-BgYMdBaM.js} +4 -5
- package/dist/index-BgwUuCZn.cjs +1 -0
- package/dist/{index-BJitBJZu.cjs → index-BvLNLX2m.cjs} +2 -2
- package/dist/{index-DoIHM98M.js → index-BvQxCFwq.js} +1 -1
- package/dist/{index-CilqH8oC.cjs → index-BvYov-FM.cjs} +1 -1
- package/dist/{index-DjhZHYH_.cjs → index-BxqdT6ZG.cjs} +1 -1
- package/dist/{index-B6_X9xq9.js → index-C-BnL_J8.js} +5 -6
- package/dist/{index-FBp-XX6h.js → index-C43LmEa1.js} +7051 -7021
- package/dist/{index-DbuzlHfh.js → index-C4kRcJZB.js} +21 -21
- package/dist/{index-8nzu3dKT.js → index-C9jJnj5S.js} +7 -7
- package/dist/{index-BVuLbYm9.cjs → index-CEGtcyt7.cjs} +1 -1
- package/dist/{index-Bhg9ISur.js → index-CHVY3mt7.js} +8 -9
- package/dist/index-CHXbD46C.cjs +87 -0
- package/dist/{index-BSAEf__V.js → index-CJja2QG9.js} +7 -7
- package/dist/{index-CNQtTLfb.cjs → index-CK03QmTY.cjs} +1 -1
- package/dist/index-CbfDuVGd.cjs +1 -0
- package/dist/{index-BxHhG5PY.js → index-CcbpKTyr.js} +3 -3
- package/dist/{index-BHxsT1eb.cjs → index-CiowzSFS.cjs} +1 -1
- package/dist/{index-CTTEAggF.cjs → index-CvagfQk6.cjs} +1 -1
- package/dist/{index-DrCpGMdZ.js → index-D-45U022.js} +11 -12
- package/dist/{index-UYsrvpRs.js → index-D9Mgi3hi.js} +4 -4
- package/dist/{index-AzrB9NlT.js → index-DGX_omwS.js} +4 -4
- package/dist/{index-BibIA5-P.cjs → index-DHhoPw_A.cjs} +1 -1
- package/dist/{index-CffNkMWN.cjs → index-DQycMGEY.cjs} +1 -1
- package/dist/{index-C8jmJvXd.cjs → index-DRpTJPjg.cjs} +1 -1
- package/dist/{index-BJIMXITA.js → index-DT0rIFKm.js} +6 -6
- package/dist/index-DcIVU-Ov.cjs +1 -0
- package/dist/{index-3dpRV7yS.cjs → index-DgY-01TT.cjs} +1 -1
- package/dist/{index-DHhMROzm.cjs → index-Dp0i47OJ.cjs} +1 -1
- package/dist/{index-DPm-3I4S.js → index-DqHrwwb1.js} +6 -6
- package/dist/{index-CA9lI4P8.js → index-DseMLCbI.js} +5 -5
- package/dist/{index-ZUmqWSaw.cjs → index-Dt5TGPLg.cjs} +1 -1
- package/dist/{index-BPDslvev.js → index-DtYFEnXc.js} +2 -2
- package/dist/{index-eSv5uzFM.js → index-NEUjKmq0.js} +354 -359
- package/dist/{index-VOSN3Mnh.js → index-NIMrswsz.js} +9 -9
- package/dist/{index-DMp2zGXo.js → index-ZuGl0u3I.js} +7 -7
- package/dist/{index-BimZK7wy.cjs → index-jESujSgy.cjs} +1 -1
- package/dist/{index-Dxfzna5p.cjs → index-jghM2Y0h.cjs} +1 -1
- package/dist/{index-BszUQuvL.cjs → index-sKVluUJX.cjs} +1 -1
- package/dist/{index-CdLmmvxi.cjs → index-uVl30He2.cjs} +1 -1
- package/dist/index-zMtEEusk.cjs +1 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dr6igsfU.cjs → index.vue_vue_type_script_setup_true_lang-BaYvLcMI.cjs} +1 -1
- 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
- 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
- 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
- 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
- package/dist/index.vue_vue_type_style_index_0_scoped_306ecd73_lang-Dt5xjsaj.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CTM5_Xpt.js +1429 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DhLcXmdy.cjs +1 -0
- package/dist/login-BkG9ft6j.js +75 -0
- package/dist/login-uBBsyOif.cjs +1 -0
- package/dist/{main-C7zpT64X.js → main-B29DPpx0.js} +6 -6
- package/dist/{main-NoOanZcQ.cjs → main-DqvMBu9E.cjs} +1 -1
- package/dist/{menu-B-Z5KAh5.cjs → menu-CEY-shM3.cjs} +4 -4
- package/dist/{menu-D9x5_s9p.js → menu-Dz_fVXUK.js} +8 -8
- package/dist/menuIndex-BWim3TlH.js +33 -0
- package/dist/menuIndex-Cg6xI-jR.cjs +1 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-MVkoDB-c.cjs → threeModel-Djd02U60.cjs} +1 -1
- package/dist/{threeModel-BazaxATJ.js → threeModel-V5HRhps2.js} +5 -6
- 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
- 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
- package/package.json +1 -1
- package/dist/array-CYOvmzeK.js +0 -1310
- package/dist/array-DAoy3WS9.cjs +0 -7
- package/dist/index-BA-Qtevs.cjs +0 -1
- package/dist/index-Bvr0YvSP.cjs +0 -74
- package/dist/index-CyOcoFxe.cjs +0 -1
- package/dist/index-D68A4TXc.cjs +0 -1
- package/dist/index-DBB_scdx.cjs +0 -1
- package/dist/index-Dnq8JVuW.cjs +0 -7
- package/dist/index-TEDdJfFz.js +0 -677
- package/dist/index-faxMOO3y.js +0 -1717
- package/dist/index.vue_vue_type_style_index_0_scoped_306ecd73_lang-B7CgbfdF.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-COxDD0Fj.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-DDi07ZiD.js +0 -1593
- package/dist/login-CARNmuDg.js +0 -103
- package/dist/login-DsWsywlE.cjs +0 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
package/dist/index-TEDdJfFz.js
DELETED
|
@@ -1,677 +0,0 @@
|
|
|
1
|
-
import { ref as b, computed as j, reactive as te, nextTick as L, defineComponent as ge, onMounted as fe, resolveComponent as J, resolveDirective as ve, createElementBlock as Q, openBlock as X, createElementVNode as A, withDirectives as he, createVNode as D, withCtx as x, createTextVNode as Y } from "vue";
|
|
2
|
-
import { s as le, g as $, u as ae, E as N, p as K, c as oe, d as ne, e as be, h as ye } from "./menu-D9x5_s9p.js";
|
|
3
|
-
import { u as Ce } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CnQhvwfL.js";
|
|
4
|
-
import { u as ke, v as Te } from "./index-faxMOO3y.js";
|
|
5
|
-
import { h as De } from "./index-Bhg9ISur.js";
|
|
6
|
-
import { f as Ie } from "./login-CARNmuDg.js";
|
|
7
|
-
import { c as E } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CaGB6aRQ.js";
|
|
8
|
-
import { s as _e, b as we } from "./index-UYsrvpRs.js";
|
|
9
|
-
import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const _ = Ce(K), re = ke(K), k = ae(K), { menus: se, configMenu: F, activeMenuPath: z, cacheStructures: S } = le(k), U = b(!1), Se = j(() => {
|
|
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 = E(se.value)) == null ? void 0 : t.map((a) => ({
|
|
65
|
-
...a,
|
|
66
|
-
menuType: "系统菜单"
|
|
67
|
-
}))) == null ? void 0 : e.filter((a) => a.title !== "系统管理" && a.title !== "平台管理")
|
|
68
|
-
}
|
|
69
|
-
];
|
|
70
|
-
}), W = b([]), O = b([
|
|
71
|
-
{
|
|
72
|
-
// label: "新增",
|
|
73
|
-
label: "新建"
|
|
74
|
-
}
|
|
75
|
-
]), Ne = j(() => [
|
|
76
|
-
{
|
|
77
|
-
key: "extraButton",
|
|
78
|
-
contents: O.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: W.value
|
|
172
|
-
}
|
|
173
|
-
]), ue = b([]), T = b({}), Fe = b({}), Z = 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
|
-
},
|
|
247
|
-
{
|
|
248
|
-
label: "",
|
|
249
|
-
prop: "structureIds",
|
|
250
|
-
type: "input",
|
|
251
|
-
value: [],
|
|
252
|
-
isFormColHidden: !0
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
label: "继承配置:",
|
|
256
|
-
prop: "allowInherit",
|
|
257
|
-
type: "radio",
|
|
258
|
-
contents: [
|
|
259
|
-
{
|
|
260
|
-
label: "是",
|
|
261
|
-
value: !0
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
label: "否",
|
|
265
|
-
value: !1
|
|
266
|
-
}
|
|
267
|
-
],
|
|
268
|
-
value: !1
|
|
269
|
-
}
|
|
270
|
-
]), V = (t) => {
|
|
271
|
-
var e;
|
|
272
|
-
console.log("formatFormData", t), ue.value = t ? (e = Z.value) == null ? void 0 : e.map((a) => a.prop === "dialogConfig" || a.prop === "contentConfig" || a.prop === "trigger" ? a : {
|
|
273
|
-
...a,
|
|
274
|
-
value: t ? t[a == null ? void 0 : a.prop] : ""
|
|
275
|
-
}) : Z.value;
|
|
276
|
-
}, Be = b([
|
|
277
|
-
{
|
|
278
|
-
label: "查询"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
label: "重置"
|
|
282
|
-
}
|
|
283
|
-
]), Pe = async () => {
|
|
284
|
-
}, ce = (t) => t.map((e) => e.childMenus && e.childMenus.length > 0 ? {
|
|
285
|
-
...e,
|
|
286
|
-
value: e == null ? void 0 : e.title,
|
|
287
|
-
label: e == null ? void 0 : e.title,
|
|
288
|
-
children: ce(e.childMenus)
|
|
289
|
-
} : {
|
|
290
|
-
...e,
|
|
291
|
-
value: e == null ? void 0 : e.title,
|
|
292
|
-
label: e == null ? void 0 : e.title
|
|
293
|
-
}), f = te({
|
|
294
|
-
show: !1,
|
|
295
|
-
title: "菜单配置",
|
|
296
|
-
width: "30%",
|
|
297
|
-
type: "create"
|
|
298
|
-
}), q = b([]), C = b({}), h = b(null), I = b([]), ie = j(() => {
|
|
299
|
-
var t;
|
|
300
|
-
return (t = ce(se.value)) == null ? void 0 : t.filter((e) => e.title !== "系统管理" && e.title !== "平台管理");
|
|
301
|
-
}), de = async (t) => {
|
|
302
|
-
var a, s, n, u;
|
|
303
|
-
const e = await $({
|
|
304
|
-
key: {
|
|
305
|
-
type: "subStructure",
|
|
306
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
307
|
-
pageKey: t,
|
|
308
|
-
version: 1
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
((a = e == null ? void 0 : e.data) == null ? void 0 : a.code) === 200 && (s = e.data) != null && s.result && (I.value = (u = (n = e.data) == null ? void 0 : n.result) == null ? void 0 : u.map((o) => {
|
|
312
|
-
var c;
|
|
313
|
-
return {
|
|
314
|
-
id: o == null ? void 0 : o.id,
|
|
315
|
-
...(c = o == null ? void 0 : o.value) == null ? void 0 : c.pageData
|
|
316
|
-
};
|
|
317
|
-
}));
|
|
318
|
-
}, xe = async (t) => {
|
|
319
|
-
var e;
|
|
320
|
-
U.value = !0, h.value = {
|
|
321
|
-
...t,
|
|
322
|
-
rootNode: Ie(ie.value, t.path)
|
|
323
|
-
}, (t == null ? void 0 : t.level) === 0 ? O.value.splice(0) : (O.value = [{ label: "新建" }], q.value = (e = t == null ? void 0 : t.path) == null ? void 0 : e.split("/")), await k.setConfigMenu(null), await de(t == null ? void 0 : t.path), await R(t);
|
|
324
|
-
}, Ke = (t) => {
|
|
325
|
-
switch (t) {
|
|
326
|
-
case "新建":
|
|
327
|
-
return "create";
|
|
328
|
-
case "修改":
|
|
329
|
-
return "update";
|
|
330
|
-
case "删除":
|
|
331
|
-
return "delete";
|
|
332
|
-
}
|
|
333
|
-
}, Ee = async (t, e) => {
|
|
334
|
-
var a, s;
|
|
335
|
-
if (!h.value) return N.warning("请先选择菜单");
|
|
336
|
-
if (f.type = Ke(t), q.value = [], _.setSubmitCurStructure(!1), re.setSelectTitle([]), k.setCacheStructures(null), C.value = E(e), f.type !== "delete") {
|
|
337
|
-
switch (f.type) {
|
|
338
|
-
case "create":
|
|
339
|
-
V(null), await k.setConfigMenu(null);
|
|
340
|
-
break;
|
|
341
|
-
case "update":
|
|
342
|
-
V(C.value), await k.setConfigMenu(C.value);
|
|
343
|
-
break;
|
|
344
|
-
}
|
|
345
|
-
await L(), f.title = `【${f.type === "create" ? (a = h.value) == null ? void 0 : a.path : (s = C.value) == null ? void 0 : s.path}】菜单配置${t}`, f.show = !0;
|
|
346
|
-
} else
|
|
347
|
-
await pe(C.value, f.type);
|
|
348
|
-
}, Re = async (t) => {
|
|
349
|
-
var e;
|
|
350
|
-
T.value = t, await k.setConfigMenu({
|
|
351
|
-
...T.value,
|
|
352
|
-
path: (e = h.value) == null ? void 0 : e.path
|
|
353
|
-
});
|
|
354
|
-
}, Ae = b(null), He = async (t, e) => {
|
|
355
|
-
var o, c, d, i, p;
|
|
356
|
-
if (f.type === "create" && ((o = I.value) == null ? void 0 : o.length) > 0 && e === "contentConfig" && _.setItemData(I.value), !(t != null && t.structureIds) || ((c = t == null ? void 0 : t.structureIds) == null ? void 0 : c.length) === 0) return;
|
|
357
|
-
const a = (i = (d = t == null ? void 0 : t.structureIds) == null ? void 0 : d.filter((l) => (l == null ? void 0 : l.key) === e)) == null ? void 0 : i.map((l) => l == null ? void 0 : l.id);
|
|
358
|
-
console.log("getTriggerStructures", t == null ? void 0 : t.structureIds, e);
|
|
359
|
-
let s = a == null ? void 0 : a.map((l) => {
|
|
360
|
-
if (l)
|
|
361
|
-
return $({ id: l });
|
|
362
|
-
});
|
|
363
|
-
const n = await Promise.all(s);
|
|
364
|
-
if (n == null ? void 0 : n.every((l) => {
|
|
365
|
-
var g;
|
|
366
|
-
return ((g = l == null ? void 0 : l.data) == null ? void 0 : g.code) === 200;
|
|
367
|
-
}))
|
|
368
|
-
if ((n == null ? void 0 : n.length) > 0) {
|
|
369
|
-
const l = n == null ? void 0 : n.map((g) => {
|
|
370
|
-
var y, w, r, B, P, M, v, G;
|
|
371
|
-
return {
|
|
372
|
-
id: (r = (w = (y = g == null ? void 0 : g.data) == null ? void 0 : y.result) == null ? void 0 : w[0]) == null ? void 0 : r.id,
|
|
373
|
-
...(G = (v = (M = (P = (B = g == null ? void 0 : g.data) == null ? void 0 : B.result) == null ? void 0 : P[0]) == null ? void 0 : M.value) == null ? void 0 : v.pageData) == null ? void 0 : G.structure
|
|
374
|
-
};
|
|
375
|
-
});
|
|
376
|
-
_.setItemData(l), console.log("clickTrigger2", l);
|
|
377
|
-
} else
|
|
378
|
-
((p = I.value) == null ? void 0 : p.length) > 0 && e === "contentConfig" && _.setItemData(I.value);
|
|
379
|
-
}, Oe = async (t) => {
|
|
380
|
-
var n, u, o, c, d, i, p, l;
|
|
381
|
-
const e = t === "操作触发的弹窗结构" ? "dialogConfig" : "contentConfig";
|
|
382
|
-
if (k.setButtonTriggerType(e), f.type === "create" && ((n = S.value) == null ? void 0 : n.length) > 0) {
|
|
383
|
-
const g = (o = (u = S.value) == null ? void 0 : u.filter((y) => (y == null ? void 0 : y.key) === e)) == null ? void 0 : o.flatMap((y) => y == null ? void 0 : y.data);
|
|
384
|
-
console.log("clickTrigger", e, S.value, g), _.setItemData(g);
|
|
385
|
-
} else
|
|
386
|
-
await He(C.value, e);
|
|
387
|
-
let a;
|
|
388
|
-
(c = T.value) != null && c.subMenus && ((d = T.value) == null ? void 0 : d.subMenus.length) > 0 && (a = (i = q.value) == null ? void 0 : i.map((g) => ({
|
|
389
|
-
value: g
|
|
390
|
-
})), a.unshift({
|
|
391
|
-
value: (p = C.value) == null ? void 0 : p.title
|
|
392
|
-
}));
|
|
393
|
-
let s;
|
|
394
|
-
f.type === "create" ? s = {
|
|
395
|
-
...T.value,
|
|
396
|
-
path: (l = h.value) == null ? void 0 : l.path
|
|
397
|
-
} : f.type === "update" && (s = F.value), await k.setConfigMenu(s), re.setSelectTitle(a), _.setIsEdit("edit");
|
|
398
|
-
}, R = async (t) => {
|
|
399
|
-
var a, s, n, u, o, c;
|
|
400
|
-
const e = await $({
|
|
401
|
-
key: {
|
|
402
|
-
type: "menuConfigData",
|
|
403
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
404
|
-
pageKey: z.value + "/" + (t == null ? void 0 : t.path),
|
|
405
|
-
tableId: ""
|
|
406
|
-
}
|
|
407
|
-
});
|
|
408
|
-
((a = e == null ? void 0 : e.data) == null ? void 0 : a.code) === 200 && (s = e.data) != null && s.result && (W.value = ((u = (n = e.data) == null ? void 0 : n.result) == null ? void 0 : u.length) > 0 ? (c = (o = e.data) == null ? void 0 : o.result) == null ? void 0 : c.map((d) => {
|
|
409
|
-
var i;
|
|
410
|
-
return {
|
|
411
|
-
id: d == null ? void 0 : d.id,
|
|
412
|
-
...(i = d == null ? void 0 : d.value) == null ? void 0 : i.tableData
|
|
413
|
-
};
|
|
414
|
-
}) : []), U.value = !1;
|
|
415
|
-
}, H = async (t, e, a = "contentConfig") => {
|
|
416
|
-
var s, n, u, o, c, d;
|
|
417
|
-
console.log("clickSubmitForm4", t);
|
|
418
|
-
try {
|
|
419
|
-
let i, p;
|
|
420
|
-
if (e === "create")
|
|
421
|
-
i = {
|
|
422
|
-
key: {
|
|
423
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
424
|
-
pageKey: z.value + "/" + ((s = h.value) == null ? void 0 : s.path),
|
|
425
|
-
type: "structure",
|
|
426
|
-
rootNodePath: (u = (n = h.value) == null ? void 0 : n.rootNode) == null ? void 0 : u.path,
|
|
427
|
-
structureBelong: a,
|
|
428
|
-
parentTable: "",
|
|
429
|
-
version: 1
|
|
430
|
-
},
|
|
431
|
-
value: {
|
|
432
|
-
pageData: t
|
|
433
|
-
}
|
|
434
|
-
}, p = oe;
|
|
435
|
-
else if (e === "update") {
|
|
436
|
-
const g = E(t.data);
|
|
437
|
-
g == null || delete g.id, i = {
|
|
438
|
-
id: t == null ? void 0 : t.id,
|
|
439
|
-
// key: {
|
|
440
|
-
// systemKey: sessionStorage.getItem("systemKey"),
|
|
441
|
-
// pageKey: activeMenuPath.value + '/' + clickNode.value?.path,
|
|
442
|
-
// type: 'structure',
|
|
443
|
-
// rootNodePath: clickNode.value?.rootNode?.path,
|
|
444
|
-
// structureBelong,
|
|
445
|
-
// parentTable: '',
|
|
446
|
-
// version: 1
|
|
447
|
-
// },
|
|
448
|
-
value: {
|
|
449
|
-
pageData: g
|
|
450
|
-
}
|
|
451
|
-
}, p = ne;
|
|
452
|
-
} else e === "delete" && (i = {
|
|
453
|
-
id: t
|
|
454
|
-
}, p = be);
|
|
455
|
-
const l = await p(i);
|
|
456
|
-
if (((o = l == null ? void 0 : l.data) == null ? void 0 : o.code) !== 200)
|
|
457
|
-
throw N.error("保存响应失败"), new Error("保存响应失败");
|
|
458
|
-
return {
|
|
459
|
-
status: ((c = l == null ? void 0 : l.data) == null ? void 0 : c.code) === 200,
|
|
460
|
-
data: {
|
|
461
|
-
id: (d = l == null ? void 0 : l.data) == null ? void 0 : d.result,
|
|
462
|
-
key: a
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
} catch {
|
|
466
|
-
N.error("保存响应失败");
|
|
467
|
-
}
|
|
468
|
-
}, m = (t, e) => {
|
|
469
|
-
var d, i, p;
|
|
470
|
-
const a = (d = t == null ? void 0 : t.flatMap((l) => l == null ? void 0 : l.data)) == null ? void 0 : d.map((l) => l == null ? void 0 : l.id), s = e.filter((l) => !(a != null && a.includes(l))), n = a == null ? void 0 : a.filter((l) => !e.includes(l));
|
|
471
|
-
let u = null, o = null, c = null;
|
|
472
|
-
return u = [...s, ...n].filter((l) => l), o = (i = t == null ? void 0 : t.flatMap((l) => l == null ? void 0 : l.data)) == null ? void 0 : i.filter((l) => !(l != null && l.id)), c = (p = t == null ? void 0 : t.flatMap((l) => l == null ? void 0 : l.data)) == null ? void 0 : p.filter((l) => l == null ? void 0 : l.id), {
|
|
473
|
-
deleteIds: u,
|
|
474
|
-
createComps: o,
|
|
475
|
-
updateComps: c
|
|
476
|
-
};
|
|
477
|
-
}, ee = (t, e) => {
|
|
478
|
-
var s, n, u, o, c, d;
|
|
479
|
-
let a = [];
|
|
480
|
-
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) => {
|
|
481
|
-
a.push(H(i, "delete", t));
|
|
482
|
-
})), ((u = e == null ? void 0 : e.createComps) == null ? void 0 : u.length) > 0 && ((o = e == null ? void 0 : e.createComps) == null || o.forEach((i) => {
|
|
483
|
-
var p, l;
|
|
484
|
-
a.push(H({
|
|
485
|
-
menuConfig: F.value,
|
|
486
|
-
structure: i,
|
|
487
|
-
rootNodePath: (l = (p = h.value) == null ? void 0 : p.rootNode) == null ? void 0 : l.path
|
|
488
|
-
}, "create", t));
|
|
489
|
-
})), ((c = e == null ? void 0 : e.updateComps) == null ? void 0 : c.length) > 0 && ((d = e == null ? void 0 : e.updateComps) == null || d.forEach((i) => {
|
|
490
|
-
var p, l;
|
|
491
|
-
a.push(H({
|
|
492
|
-
menuConfig: F.value,
|
|
493
|
-
structure: i,
|
|
494
|
-
rootNodePath: (l = (p = h.value) == null ? void 0 : p.rootNode) == null ? void 0 : l.path
|
|
495
|
-
}, "update", t));
|
|
496
|
-
})), a;
|
|
497
|
-
}, Ve = async (t, e) => {
|
|
498
|
-
var l, g, y, w;
|
|
499
|
-
const a = (l = I.value) == null ? void 0 : l.map((r) => r == null ? void 0 : r.id), s = t == null ? void 0 : t.filter((r) => (r == null ? void 0 : r.key) === "contentConfig"), n = t == null ? void 0 : t.filter((r) => (r == null ? void 0 : r.key) === "dialogConfig"), u = (w = (y = (g = S.value) == null ? void 0 : g.filter((r) => (r == null ? void 0 : r.key) === "dialogConfig")) == null ? void 0 : y.flatMap((r) => r == null ? void 0 : r.data)) == null ? void 0 : w.map((r) => r == null ? void 0 : r.id), o = m(n, u), c = m(s, a);
|
|
500
|
-
console.log("clickSubmitForm1", o, c, e);
|
|
501
|
-
const d = ee("dialogConfig", o), i = ee("contentConfig", c), p = [...d, ...i];
|
|
502
|
-
await Promise.all(p).then((r) => {
|
|
503
|
-
var M;
|
|
504
|
-
const B = r == null ? void 0 : r.every((v) => v.status);
|
|
505
|
-
if (console.log("clickSubmitForm3Promise:", r, p, C.value, f.type), !B) return;
|
|
506
|
-
const P = (M = r == null ? void 0 : r.flatMap((v) => v == null ? void 0 : v.data)) == null ? void 0 : M.filter((v) => (v == null ? void 0 : v.id) !== null && (v == null ? void 0 : v.id) !== void 0);
|
|
507
|
-
pe({
|
|
508
|
-
...e,
|
|
509
|
-
structureIds: P
|
|
510
|
-
}, f.type);
|
|
511
|
-
}).catch((r) => {
|
|
512
|
-
N.error(r);
|
|
513
|
-
});
|
|
514
|
-
}, pe = async (t, e) => {
|
|
515
|
-
var n, u;
|
|
516
|
-
let a, s;
|
|
517
|
-
e === "create" ? (a = {
|
|
518
|
-
key: {
|
|
519
|
-
type: "menuConfigData",
|
|
520
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
521
|
-
pageKey: z.value + "/" + ((n = h.value) == null ? void 0 : n.path),
|
|
522
|
-
tableId: ""
|
|
523
|
-
},
|
|
524
|
-
value: {
|
|
525
|
-
tableData: t
|
|
526
|
-
}
|
|
527
|
-
}, s = oe) : e === "update" ? (a = {
|
|
528
|
-
id: t == null ? void 0 : t.id,
|
|
529
|
-
// key: {
|
|
530
|
-
// type: "menuConfigData",
|
|
531
|
-
// systemKey: sessionStorage.getItem("systemKey"),
|
|
532
|
-
// pageKey: activeMenuPath.value + '/' + clickNode.value?.path,
|
|
533
|
-
// tableId: '',
|
|
534
|
-
// },
|
|
535
|
-
value: {
|
|
536
|
-
tableData: t
|
|
537
|
-
}
|
|
538
|
-
}, s = ne) : e === "delete" && (a = {
|
|
539
|
-
ids: [t.id, ...(u = t == null ? void 0 : t.structureIds) == null ? void 0 : u.map((o) => o.id)]
|
|
540
|
-
}, s = ye), De(s, a, e).then((o) => {
|
|
541
|
-
e === "create" && W.value.push({
|
|
542
|
-
...t,
|
|
543
|
-
id: o
|
|
544
|
-
}), e && o && N.success("响应成功"), R(h.value);
|
|
545
|
-
});
|
|
546
|
-
}, je = async () => {
|
|
547
|
-
var a, s, n, u, o;
|
|
548
|
-
const t = E(S.value);
|
|
549
|
-
await L();
|
|
550
|
-
const e = f.type === "create" ? {
|
|
551
|
-
...F.value,
|
|
552
|
-
rootNodePath: (s = (a = h.value) == null ? void 0 : a.rootNode) == null ? void 0 : s.path
|
|
553
|
-
} : {
|
|
554
|
-
...F.value,
|
|
555
|
-
rootNodePath: (u = (n = h.value) == null ? void 0 : n.rootNode) == null ? void 0 : u.path,
|
|
556
|
-
id: (o = C.value) == null ? void 0 : o.id
|
|
557
|
-
};
|
|
558
|
-
await Ve(t, e), T.value = {}, f.show = !1, await R(h.value);
|
|
559
|
-
}, Le = () => {
|
|
560
|
-
f.show = !1;
|
|
561
|
-
}, $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
562
|
-
__proto__: null,
|
|
563
|
-
beforeDialogDestroy: Le,
|
|
564
|
-
buttonValue: Be,
|
|
565
|
-
changeTrigger: Re,
|
|
566
|
-
changedRow: Fe,
|
|
567
|
-
clickNodeTrigger: xe,
|
|
568
|
-
clickRowButton: Ee,
|
|
569
|
-
clickSubmitForm: je,
|
|
570
|
-
clickTrigger: Oe,
|
|
571
|
-
dialogInfo: f,
|
|
572
|
-
formatFormData: V,
|
|
573
|
-
getTableDataAsync: R,
|
|
574
|
-
handleItemDataChange: Pe,
|
|
575
|
-
handleSubInitialStructure: de,
|
|
576
|
-
inputForm: T,
|
|
577
|
-
menuPageData: Ne,
|
|
578
|
-
operatingForm: Ae,
|
|
579
|
-
pageData: Se,
|
|
580
|
-
renderFormData: ue,
|
|
581
|
-
tableLoading: U,
|
|
582
|
-
treeData: ie
|
|
583
|
-
}, Symbol.toStringTag, { value: "Module" })), ze = { class: "menu-module" }, Ue = { class: "tree-wrap" }, We = {
|
|
584
|
-
class: "table-wrap",
|
|
585
|
-
"element-loading-text": "加载中..."
|
|
586
|
-
}, qe = { class: "module-dialog-default" }, Ge = /* @__PURE__ */ ge({
|
|
587
|
-
__name: "index",
|
|
588
|
-
setup(t) {
|
|
589
|
-
const e = te({ ...$e }), a = b(null), s = ae(K), { configMenu: n } = le(s);
|
|
590
|
-
return fe(() => {
|
|
591
|
-
var u;
|
|
592
|
-
e.formatFormData(n.value), console.log(12345, n.value), L(() => {
|
|
593
|
-
var o, c;
|
|
594
|
-
(c = a.value) == null || c.setCurrentKey((o = n.value) == null ? void 0 : o.path);
|
|
595
|
-
}), n.value && e.handleSubInitialStructure((u = n.value) == null ? void 0 : u.path);
|
|
596
|
-
}), (u, o) => {
|
|
597
|
-
const c = J("el-tree"), d = J("el-button"), i = ve("loading");
|
|
598
|
-
return X(), Q("div", ze, [
|
|
599
|
-
A("div", Ue, [
|
|
600
|
-
D(c, {
|
|
601
|
-
ref_key: "treeRef",
|
|
602
|
-
ref: a,
|
|
603
|
-
data: e.treeData,
|
|
604
|
-
"expand-on-click-node": !1,
|
|
605
|
-
"node-key": "path",
|
|
606
|
-
props: { children: "children", label: "label", path: "path" },
|
|
607
|
-
"highlight-current": "",
|
|
608
|
-
"default-expand-all": "",
|
|
609
|
-
"check-on-click-leaf": !1,
|
|
610
|
-
"check-strictly": "",
|
|
611
|
-
onNodeClick: e.clickNodeTrigger
|
|
612
|
-
}, null, 8, ["data", "onNodeClick"])
|
|
613
|
-
]),
|
|
614
|
-
he((X(), Q("div", We, [
|
|
615
|
-
D(Te, {
|
|
616
|
-
itemData: e.menuPageData,
|
|
617
|
-
changedContent: e.changedRow,
|
|
618
|
-
operatingForm: e.operatingForm,
|
|
619
|
-
onOnFormChange: e.changeTrigger,
|
|
620
|
-
onChange: e.handleItemDataChange,
|
|
621
|
-
onClickTrigger: e.clickTrigger,
|
|
622
|
-
onOnButtonClick: e.clickRowButton
|
|
623
|
-
}, null, 8, ["itemData", "changedContent", "operatingForm", "onOnFormChange", "onChange", "onClickTrigger", "onOnButtonClick"])
|
|
624
|
-
])), [
|
|
625
|
-
[i, e.tableLoading]
|
|
626
|
-
]),
|
|
627
|
-
D(_e, {
|
|
628
|
-
class: "module-dialog",
|
|
629
|
-
title: e.dialogInfo.title,
|
|
630
|
-
visible: e.dialogInfo.show,
|
|
631
|
-
width: e.dialogInfo.width,
|
|
632
|
-
onBeforeDestroy: e.beforeDialogDestroy
|
|
633
|
-
}, {
|
|
634
|
-
default: x(() => [
|
|
635
|
-
A("div", qe, [
|
|
636
|
-
D(we, {
|
|
637
|
-
rowContents: e.renderFormData,
|
|
638
|
-
isEnableWrap: !1,
|
|
639
|
-
isEdit: !0,
|
|
640
|
-
onChange: e.changeTrigger,
|
|
641
|
-
onClickTrigger: e.clickTrigger
|
|
642
|
-
}, null, 8, ["rowContents", "onChange", "onClickTrigger"])
|
|
643
|
-
])
|
|
644
|
-
]),
|
|
645
|
-
footer: x(() => [
|
|
646
|
-
A("div", null, [
|
|
647
|
-
D(d, {
|
|
648
|
-
onClick: e.beforeDialogDestroy,
|
|
649
|
-
id: "themeBorderButton"
|
|
650
|
-
}, {
|
|
651
|
-
default: x(() => o[0] || (o[0] = [
|
|
652
|
-
Y("取消")
|
|
653
|
-
])),
|
|
654
|
-
_: 1,
|
|
655
|
-
__: [0]
|
|
656
|
-
}, 8, ["onClick"]),
|
|
657
|
-
D(d, {
|
|
658
|
-
id: "themeButton",
|
|
659
|
-
onClick: e.clickSubmitForm
|
|
660
|
-
}, {
|
|
661
|
-
default: x(() => o[1] || (o[1] = [
|
|
662
|
-
Y(" 确认 ")
|
|
663
|
-
])),
|
|
664
|
-
_: 1,
|
|
665
|
-
__: [1]
|
|
666
|
-
}, 8, ["onClick"])
|
|
667
|
-
])
|
|
668
|
-
]),
|
|
669
|
-
_: 1
|
|
670
|
-
}, 8, ["title", "visible", "width", "onBeforeDestroy"])
|
|
671
|
-
]);
|
|
672
|
-
};
|
|
673
|
-
}
|
|
674
|
-
}), at = /* @__PURE__ */ Me(Ge, [["__scopeId", "data-v-541cf007"]]);
|
|
675
|
-
export {
|
|
676
|
-
at as default
|
|
677
|
-
};
|