ss-component-new 1.1.261 → 1.1.263
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-CGcjUVKX.cjs → array-BCYeTWHp.cjs} +1 -1
- package/dist/{array-BKq3BIQz.js → array-BiSkXjDh.js} +2 -2
- package/dist/{cloneDeep-B7uQBoFQ.cjs → cloneDeep-BShYbOkw.cjs} +1 -1
- package/dist/{cloneDeep-C2Kxf4cz.js → cloneDeep-CxhinJk5.js} +1 -1
- package/dist/{index-DSHdwrIv.js → index--CBmQToI.js} +4 -4
- package/dist/index-21rauG0g.cjs +1 -0
- package/dist/index-3fLiW589.cjs +1 -0
- package/dist/{index-B-UH_ubV.js → index-5G9gxVsG.js} +8 -8
- package/dist/{index-JlAZlJSa.js → index-6mqoLKfR.js} +6 -6
- package/dist/{index-BXTWkSfY.js → index-B0SEIfhd.js} +3 -3
- package/dist/{index-P8qnw1yi.js → index-B2bPpqmz.js} +5 -5
- package/dist/{index-CV8NL82B.js → index-B5fyktOS.js} +1 -1
- package/dist/index-B5vG0PaI.cjs +1 -0
- package/dist/{index-BEMqiaE4.cjs → index-B8d1EBwW.cjs} +1 -1
- package/dist/{index-B2U6bRXC.js → index-B96mvnY6.js} +1 -1
- package/dist/{index-i7I_BwC_.js → index-BEPkDcRB.js} +4 -4
- package/dist/{index-BSvAtDik.js → index-BEQcfNC8.js} +3264 -3260
- package/dist/{index-CUS5J9_e.js → index-BG7p7J6-.js} +3 -3
- package/dist/{index-XGNOqMia.cjs → index-BJEmWdGc.cjs} +1 -1
- package/dist/{index-BKkSFReI.cjs → index-BJWxGK8l.cjs} +1 -1
- package/dist/{index-C99sTbLR.cjs → index-BPGk6VZT.cjs} +1 -1
- package/dist/{index-BNRMWt2X.cjs → index-BRYyDz7j.cjs} +1 -1
- package/dist/{index-kzgPDfJF.cjs → index-BReBoqZM.cjs} +1 -1
- package/dist/{index-BqjnsqxM.cjs → index-BRgT-cwL.cjs} +1 -1
- package/dist/{index-CdbyfD9T.cjs → index-BTWHfvj_.cjs} +1 -1
- package/dist/{index-k1B4X854.js → index-BW_gJg6Y.js} +4 -4
- package/dist/index-BeYDJriQ.js +458 -0
- package/dist/{index-1FDUIkCX.cjs → index-BiIAlHzV.cjs} +1 -1
- package/dist/{index-CU_Jx-5J.cjs → index-Bl-nqQUb.cjs} +1 -1
- package/dist/{index-BPDeDTcT.js → index-BqqWyJ_i.js} +8 -8
- package/dist/{index-Dqq6ANsR.js → index-BxD91iWh.js} +1 -1
- package/dist/index-C3-tA5Oy.js +3520 -0
- package/dist/{index-CcWrPjiF.js → index-C8FwXAiK.js} +1 -1
- package/dist/{index-BTE2McnW.cjs → index-C9gBSiUj.cjs} +1 -1
- package/dist/{index-SuPnthkA.cjs → index-CNnhenkX.cjs} +1 -1
- package/dist/{index-CbAVZYKT.cjs → index-CPNiI7xc.cjs} +1 -1
- package/dist/{index-B5JYLkwE.js → index-CWpNIgx-.js} +5 -5
- package/dist/index-CYjQVlPG.cjs +1 -0
- package/dist/{index-CPLQkq0l.cjs → index-Cd2qjywt.cjs} +1 -1
- package/dist/index-ClyxHDAy.cjs +1 -0
- package/dist/{index-BpRK84YO.js → index-Cmf6TSRr.js} +9 -9
- package/dist/{index-BPc4Eac7.cjs → index-CvoVhrqh.cjs} +1 -1
- package/dist/{index-C4WiBNX7.cjs → index-CzuGT7Su.cjs} +1 -1
- package/dist/index-D0isXbYa.js +290 -0
- package/dist/{index-CtNApXqx.js → index-D9sisgye.js} +1 -1
- package/dist/{index-CRA36cu_.js → index-DJRZAkF4.js} +4 -4
- package/dist/{index-DBUg3cD4.js → index-DSPU33cy.js} +5 -5
- package/dist/{index-BuzU8y87.js → index-DdfwFwkR.js} +3 -3
- package/dist/{index-ChrvsNKe.cjs → index-DecqROTY.cjs} +1 -1
- package/dist/{index-BEUHy5vT.js → index-DhT3lFvD.js} +5 -5
- package/dist/{index-DJt9epxc.js → index-Duw1U19n.js} +3 -3
- package/dist/{index-DiqIaffC.js → index-DvydSDWz.js} +10 -10
- package/dist/{index-BSHYuItV.cjs → index-GDAKW2b9.cjs} +1 -1
- package/dist/{index-LztiiC8W.js → index-WOjw27kj.js} +38 -38
- package/dist/{index-DrgtDDgh.js → index-YBOakoO-.js} +1 -1
- package/dist/{index-BDeQhlHq.cjs → index-cPpFPrRC.cjs} +1 -1
- package/dist/{index-BePWixJ7.cjs → index-h9avu7we.cjs} +1 -1
- package/dist/{index-ChDUVY4O.cjs → index-jxXiBXta.cjs} +1 -1
- package/dist/{index-DqW6UiIO.cjs → index-kq_YOCp0.cjs} +32 -32
- package/dist/{index-D5iqPx4_.cjs → index-sYRfzwGi.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CsELnqsB.cjs → index.vue_vue_type_script_setup_true_lang-WZ_0N2ba.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-GU5YecI_.js → index.vue_vue_type_script_setup_true_lang-dRZKrDpe.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-HXVPBHSR.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-D6zTMeXs.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_11a5120d_lang-CiQLJOHK.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DC0qx2mv.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Dhxd_sQH.cjs → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-B9TnTaRE.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-BP1ltJdK.js → index.vue_vue_type_style_index_0_scoped_4b7a2e5d_lang-Bnu6O5Dx.js} +12 -12
- package/dist/{login-MRZ_aZ2l.cjs → login-B_Ta8W8C.cjs} +1 -1
- package/dist/{login-f0ZOWhgZ.js → login-D_UosrWe.js} +2 -2
- package/dist/{main-CD7tAcIb.js → main-CHSqRi2c.js} +7 -7
- package/dist/{main-CpGTA5Qv.cjs → main-DRtNsfjw.cjs} +1 -1
- package/dist/{menu-uQv0bEzE.js → menu-BjwI4sfO.js} +7 -2
- package/dist/{menu-PjSpUL7w.cjs → menu-CH06rBlw.cjs} +7 -7
- package/dist/{modelComp-BavIqTd8.js → modelComp-CiiFZm1t.js} +1 -1
- package/dist/{modelComp-qapurFEA.cjs → modelComp-LhGhARtD.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/index-BxNkT68g.js +0 -271
- package/dist/index-CW3K0wJl.cjs +0 -1
- package/dist/index-CaEGsvtY.cjs +0 -1
- package/dist/index-Clc0UQZs.cjs +0 -1
- package/dist/index-CrY9cebv.cjs +0 -1
- package/dist/index-DJXxlOVw.cjs +0 -1
- package/dist/index-DMxFp_J8.js +0 -301
- package/dist/index-Dz-F31F9.js +0 -3475
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
import { computed as m, ref as r, reactive as F, defineComponent as V, onMounted as j, nextTick as z, resolveComponent as S, createElementBlock as U, openBlock as W, createElementVNode as v, createVNode as g, withCtx as f, createTextVNode as M } from "vue";
|
|
2
|
+
import { s as B, E as h, u as x, g as q, c as G, b as J, d as L } from "./menu-BjwI4sfO.js";
|
|
3
|
+
import { u as Q } from "./modelComp-CiiFZm1t.js";
|
|
4
|
+
import { p as y } from "./index-YBOakoO-.js";
|
|
5
|
+
import { a as X, s as Y } from "./index-BEQcfNC8.js";
|
|
6
|
+
import { h as Z } from "./index-D0isXbYa.js";
|
|
7
|
+
import { h as $ } from "./index-DvydSDWz.js";
|
|
8
|
+
import "./crypto-BRyGpjGR.js";
|
|
9
|
+
import { c as D } from "./cloneDeep-CxhinJk5.js";
|
|
10
|
+
import { s as ee, a as te } from "./index-CWpNIgx-.js";
|
|
11
|
+
import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const K = Q(y), E = X(y), d = x(y), { menus: P, configMenu: R, activeMenuPath: C, cacheStructures: ae } = B(d), oe = m(() => {
|
|
13
|
+
var t, e;
|
|
14
|
+
return [
|
|
15
|
+
{
|
|
16
|
+
key: "extraButton",
|
|
17
|
+
contents: [
|
|
18
|
+
// {
|
|
19
|
+
// label: "新增"
|
|
20
|
+
// }
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
key: "rowButton",
|
|
25
|
+
contents: [
|
|
26
|
+
{
|
|
27
|
+
label: "修改"
|
|
28
|
+
}
|
|
29
|
+
// {
|
|
30
|
+
// label: "删除"
|
|
31
|
+
// }
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
key: "header",
|
|
36
|
+
contents: [
|
|
37
|
+
{
|
|
38
|
+
label: "菜单名称",
|
|
39
|
+
prop: "title",
|
|
40
|
+
isFormColHidden: !1
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "菜单类型",
|
|
44
|
+
prop: "menuType",
|
|
45
|
+
formType: "select",
|
|
46
|
+
options: [
|
|
47
|
+
{
|
|
48
|
+
label: "系统菜单",
|
|
49
|
+
value: "集团"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: "公司",
|
|
53
|
+
value: "公司"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
isTableColHidden: !1,
|
|
57
|
+
isFormColHidden: !0
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "操作"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
key: "tableContents",
|
|
66
|
+
contents: (e = (t = D(P.value)) == null ? void 0 : t.map((l) => ({
|
|
67
|
+
...l,
|
|
68
|
+
menuType: "系统菜单"
|
|
69
|
+
}))) == null ? void 0 : e.filter((l) => l.title !== "系统管理" && l.title !== "平台管理")
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
}), k = r([]), ne = m(() => [
|
|
73
|
+
{
|
|
74
|
+
key: "extraButton",
|
|
75
|
+
contents: [
|
|
76
|
+
{
|
|
77
|
+
label: "新增"
|
|
78
|
+
// label: "新建",
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: "rowButton",
|
|
84
|
+
contents: [
|
|
85
|
+
{
|
|
86
|
+
label: "编辑"
|
|
87
|
+
// label: "修改",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
label: "删除"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
key: "header",
|
|
96
|
+
contents: [
|
|
97
|
+
{
|
|
98
|
+
label: "操作类型",
|
|
99
|
+
prop: "operateType",
|
|
100
|
+
formType: "select",
|
|
101
|
+
options: [
|
|
102
|
+
{
|
|
103
|
+
label: "新增",
|
|
104
|
+
value: "create"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
label: "编辑",
|
|
108
|
+
value: "update"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
label: "删除",
|
|
112
|
+
value: "delete"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
value: ""
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
label: "操作图标",
|
|
119
|
+
prop: "operateIcon",
|
|
120
|
+
formType: "inputPopover",
|
|
121
|
+
value: ""
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
label: "图标触发事件",
|
|
125
|
+
prop: "trigger",
|
|
126
|
+
formType: "select",
|
|
127
|
+
options: [
|
|
128
|
+
{
|
|
129
|
+
label: "弹出弹窗",
|
|
130
|
+
value: "openDialog"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
value: "openDialog"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
label: "配置一:",
|
|
137
|
+
prop: "dialogConfig",
|
|
138
|
+
formType: "button",
|
|
139
|
+
value: "弹窗内容"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
label: "配置二:",
|
|
143
|
+
prop: "contentConfig",
|
|
144
|
+
formType: "button",
|
|
145
|
+
value: "模块内容"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: "操作"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
key: "tableContents",
|
|
154
|
+
contents: k.value
|
|
155
|
+
}
|
|
156
|
+
]), A = r([]), u = r({}), N = r({}), se = r([
|
|
157
|
+
// {
|
|
158
|
+
// label: "配置菜单:",
|
|
159
|
+
// prop: 'menu',
|
|
160
|
+
// type: 'cascader',
|
|
161
|
+
// contents: [],
|
|
162
|
+
// config: {
|
|
163
|
+
// checkStrictly: true
|
|
164
|
+
// },
|
|
165
|
+
// // value: ['压气机叶片', 'CJ-1000A']
|
|
166
|
+
// value: []
|
|
167
|
+
// },
|
|
168
|
+
{
|
|
169
|
+
label: "菜单",
|
|
170
|
+
prop: "path",
|
|
171
|
+
isFormColHidden: !0,
|
|
172
|
+
value: ""
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
label: "菜单图标:",
|
|
176
|
+
prop: "menuIcon",
|
|
177
|
+
type: "inputPopover",
|
|
178
|
+
value: ""
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
label: "操作类型:",
|
|
182
|
+
prop: "operateType",
|
|
183
|
+
type: "select",
|
|
184
|
+
contents: [
|
|
185
|
+
{
|
|
186
|
+
label: "新增",
|
|
187
|
+
value: "create"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
label: "编辑",
|
|
191
|
+
value: "update"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
label: "删除",
|
|
195
|
+
value: "delete"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
value: ""
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
label: "操作图标:",
|
|
202
|
+
prop: "operateIcon",
|
|
203
|
+
type: "inputPopover",
|
|
204
|
+
value: ""
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
label: "图标触发事件:",
|
|
208
|
+
prop: "trigger",
|
|
209
|
+
type: "select",
|
|
210
|
+
contents: [
|
|
211
|
+
{
|
|
212
|
+
label: "弹出弹窗",
|
|
213
|
+
value: "openDialog"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
value: "openDialog"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
label: "配置一:",
|
|
220
|
+
prop: "dialogConfig",
|
|
221
|
+
type: "button",
|
|
222
|
+
value: "弹窗结构"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
label: "配置二:",
|
|
226
|
+
prop: "contentConfig",
|
|
227
|
+
type: "button",
|
|
228
|
+
value: "生成模块结构"
|
|
229
|
+
}
|
|
230
|
+
]), re = (t) => {
|
|
231
|
+
var e;
|
|
232
|
+
A.value = (e = se.value) == null ? void 0 : e.map((l) => l.prop === "menu" ? {
|
|
233
|
+
...l,
|
|
234
|
+
// contents: options,
|
|
235
|
+
value: t == null ? void 0 : t[l == null ? void 0 : l.prop]
|
|
236
|
+
} : l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l : {
|
|
237
|
+
...l,
|
|
238
|
+
value: t == null ? void 0 : t[l == null ? void 0 : l.prop]
|
|
239
|
+
});
|
|
240
|
+
}, ue = r([
|
|
241
|
+
{
|
|
242
|
+
label: "查询"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
label: "重置"
|
|
246
|
+
}
|
|
247
|
+
]), ce = async (t) => {
|
|
248
|
+
console.log(345, t), await be(t.singleContent, t.buttonName);
|
|
249
|
+
}, O = (t) => t.map((e) => e.childMenus && e.childMenus.length > 0 ? {
|
|
250
|
+
...e,
|
|
251
|
+
value: e == null ? void 0 : e.title,
|
|
252
|
+
label: e == null ? void 0 : e.title,
|
|
253
|
+
children: O(e.childMenus)
|
|
254
|
+
} : {
|
|
255
|
+
...e,
|
|
256
|
+
value: e == null ? void 0 : e.title,
|
|
257
|
+
label: e == null ? void 0 : e.title
|
|
258
|
+
}), _ = F({
|
|
259
|
+
show: !1,
|
|
260
|
+
title: "菜单配置",
|
|
261
|
+
width: "30%"
|
|
262
|
+
}), T = r([]), H = r({}), c = r(null), ie = m(() => {
|
|
263
|
+
var t;
|
|
264
|
+
return (t = O(P.value)) == null ? void 0 : t.filter((e) => e.title !== "系统管理" && e.title !== "平台管理");
|
|
265
|
+
}), pe = (t) => {
|
|
266
|
+
var e;
|
|
267
|
+
T.value = (e = t == null ? void 0 : t.path) == null ? void 0 : e.split("/"), c.value = t, w();
|
|
268
|
+
}, b = r(""), ge = async (t, e) => {
|
|
269
|
+
if (!c.value) return h.warning("请先选择菜单");
|
|
270
|
+
b.value = t, T.value = [], K.setSubmitCurStructure(!1), H.value = D(e), (t === "新建" || t === "修改") && t === "新建" && (E.setSelectTitle([]), d.setConfigMenu(null));
|
|
271
|
+
}, de = (t) => {
|
|
272
|
+
var e;
|
|
273
|
+
u.value = t, d.setConfigMenu({
|
|
274
|
+
...u.value,
|
|
275
|
+
path: (e = c.value) == null ? void 0 : e.path
|
|
276
|
+
}), console.log(566, t);
|
|
277
|
+
}, ve = (t) => {
|
|
278
|
+
var l, n, a, s, o;
|
|
279
|
+
d.setButtonTriggerType(t === "弹窗结构" ? "dialogConfig" : "contentConfig");
|
|
280
|
+
let e;
|
|
281
|
+
(l = u.value) != null && l.subMenus && ((n = u.value) == null ? void 0 : n.subMenus.length) > 0 && (e = (a = T.value) == null ? void 0 : a.map((i) => ({
|
|
282
|
+
value: i
|
|
283
|
+
})), e.unshift({
|
|
284
|
+
value: (s = H.value) == null ? void 0 : s.title
|
|
285
|
+
})), d.setConfigMenu({
|
|
286
|
+
...u.value,
|
|
287
|
+
path: (o = c.value) == null ? void 0 : o.path
|
|
288
|
+
}), E.setSelectTitle(e), K.setIsEdit("edit");
|
|
289
|
+
}, w = async () => {
|
|
290
|
+
var e, l, n, a, s, o, i;
|
|
291
|
+
const t = await q({
|
|
292
|
+
key: {
|
|
293
|
+
type: "menuConfigData",
|
|
294
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
295
|
+
pageKey: C.value + "/" + ((e = c.value) == null ? void 0 : e.path),
|
|
296
|
+
tableId: ""
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
((l = t == null ? void 0 : t.data) == null ? void 0 : l.code) === 200 && (n = t.data) != null && n.result && ((s = (a = t.data) == null ? void 0 : a.result) == null ? void 0 : s.length) > 0 && (k.value = (i = (o = t.data) == null ? void 0 : o.result) == null ? void 0 : i.map((p) => {
|
|
300
|
+
var I;
|
|
301
|
+
return (I = p == null ? void 0 : p.value) == null ? void 0 : I.tableData;
|
|
302
|
+
}), console.log(567, k.value));
|
|
303
|
+
}, fe = async (t) => {
|
|
304
|
+
let e = [];
|
|
305
|
+
t == null || t.forEach((l) => {
|
|
306
|
+
var n;
|
|
307
|
+
(n = l == null ? void 0 : l.data) == null || n.forEach((a) => {
|
|
308
|
+
var s;
|
|
309
|
+
a && e.push(Z(a, "create", (s = R.value) == null ? void 0 : s.path, l == null ? void 0 : l.key));
|
|
310
|
+
});
|
|
311
|
+
}), await Promise.all(e).then(() => {
|
|
312
|
+
h.success("保存成功");
|
|
313
|
+
}).catch((l) => {
|
|
314
|
+
h.success(l);
|
|
315
|
+
});
|
|
316
|
+
}, be = async (t, e) => {
|
|
317
|
+
var a, s;
|
|
318
|
+
let l, n;
|
|
319
|
+
e === "新增" ? (l = {
|
|
320
|
+
key: {
|
|
321
|
+
type: "menuConfigData",
|
|
322
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
323
|
+
pageKey: C.value + "/" + ((a = c.value) == null ? void 0 : a.path),
|
|
324
|
+
tableId: ""
|
|
325
|
+
},
|
|
326
|
+
value: {
|
|
327
|
+
tableData: t
|
|
328
|
+
}
|
|
329
|
+
}, n = G) : e === "编辑" ? (l = {
|
|
330
|
+
id: t == null ? void 0 : t.id,
|
|
331
|
+
key: {
|
|
332
|
+
type: "menuConfigData",
|
|
333
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
334
|
+
pageKey: C.value + "/" + ((s = c.value) == null ? void 0 : s.path),
|
|
335
|
+
tableId: ""
|
|
336
|
+
},
|
|
337
|
+
value: {
|
|
338
|
+
tableData: t
|
|
339
|
+
}
|
|
340
|
+
}, n = J) : e === "删除" && (l = {
|
|
341
|
+
id: t.id
|
|
342
|
+
}, n = L), $(n, l, b.value).then((o) => {
|
|
343
|
+
e === "新增" && (N.value = {
|
|
344
|
+
...t,
|
|
345
|
+
newId: o
|
|
346
|
+
}), b.value && o && h.success(b.value + "成功");
|
|
347
|
+
});
|
|
348
|
+
}, he = async () => {
|
|
349
|
+
const t = D(ae.value);
|
|
350
|
+
console.log("clickSubmitForm", R.value, t), await fe(t), u.value = {}, _.show = !1, d.setCacheStructures([]), await w();
|
|
351
|
+
}, ye = () => {
|
|
352
|
+
_.show = !1;
|
|
353
|
+
}, Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
354
|
+
__proto__: null,
|
|
355
|
+
beforeDialogDestroy: ye,
|
|
356
|
+
buttonValue: ue,
|
|
357
|
+
changeTrigger: de,
|
|
358
|
+
changedRow: N,
|
|
359
|
+
clickNode: pe,
|
|
360
|
+
clickRowButton: ge,
|
|
361
|
+
clickSubmitForm: he,
|
|
362
|
+
clickTrigger: ve,
|
|
363
|
+
dialogInfo: _,
|
|
364
|
+
formatFormData: re,
|
|
365
|
+
getTableDataAsync: w,
|
|
366
|
+
handleItemDataChange: ce,
|
|
367
|
+
inputForm: u,
|
|
368
|
+
menuPageData: ne,
|
|
369
|
+
pageData: oe,
|
|
370
|
+
renderFormData: A,
|
|
371
|
+
treeData: ie
|
|
372
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = { class: "menu-module" }, me = { class: "tree-wrap" }, De = { class: "table-wrap" }, _e = { class: "module-dialog-default" }, Te = /* @__PURE__ */ V({
|
|
373
|
+
__name: "index",
|
|
374
|
+
setup(t) {
|
|
375
|
+
const e = F({ ...Ce }), l = r(null), n = x(y), { configMenu: a } = B(n);
|
|
376
|
+
return j(() => {
|
|
377
|
+
e.formatFormData(a.value), console.log(12345, a.value), a.value ? e.clickRowButton("新增", a.value) : e.getTableDataAsync(), z(() => {
|
|
378
|
+
var s, o;
|
|
379
|
+
(o = l.value) == null || o.setCurrentKey((s = a.value) == null ? void 0 : s.path);
|
|
380
|
+
});
|
|
381
|
+
}), (s, o) => {
|
|
382
|
+
const i = S("el-tree"), p = S("el-button");
|
|
383
|
+
return W(), U("div", ke, [
|
|
384
|
+
v("div", me, [
|
|
385
|
+
g(i, {
|
|
386
|
+
ref_key: "treeRef",
|
|
387
|
+
ref: l,
|
|
388
|
+
data: e.treeData,
|
|
389
|
+
"expand-on-click-node": !1,
|
|
390
|
+
"node-key": "path",
|
|
391
|
+
props: { children: "children", label: "label", path: "path" },
|
|
392
|
+
"highlight-current": "",
|
|
393
|
+
"default-expand-all": "",
|
|
394
|
+
"check-on-click-leaf": !1,
|
|
395
|
+
"check-strictly": "",
|
|
396
|
+
onNodeClick: e.clickNode
|
|
397
|
+
}, null, 8, ["data", "onNodeClick"])
|
|
398
|
+
]),
|
|
399
|
+
v("div", De, [
|
|
400
|
+
g(Y, {
|
|
401
|
+
itemData: e.menuPageData,
|
|
402
|
+
changedContent: e.changedRow,
|
|
403
|
+
onOnFormChange: e.changeTrigger,
|
|
404
|
+
onChange: e.handleItemDataChange,
|
|
405
|
+
onClickTrigger: e.clickTrigger,
|
|
406
|
+
onOnButtonClick: e.clickRowButton
|
|
407
|
+
}, null, 8, ["itemData", "changedContent", "onOnFormChange", "onChange", "onClickTrigger", "onOnButtonClick"])
|
|
408
|
+
]),
|
|
409
|
+
g(ee, {
|
|
410
|
+
class: "module-dialog",
|
|
411
|
+
title: e.dialogInfo.title,
|
|
412
|
+
visible: e.dialogInfo.show,
|
|
413
|
+
width: e.dialogInfo.width,
|
|
414
|
+
onBeforeDestroy: e.beforeDialogDestroy
|
|
415
|
+
}, {
|
|
416
|
+
default: f(() => [
|
|
417
|
+
v("div", _e, [
|
|
418
|
+
g(te, {
|
|
419
|
+
rowContents: e.renderFormData,
|
|
420
|
+
isEnableWrap: !1,
|
|
421
|
+
isEdit: !0,
|
|
422
|
+
onChange: e.changeTrigger,
|
|
423
|
+
onClickTrigger: e.clickTrigger
|
|
424
|
+
}, null, 8, ["rowContents", "onChange", "onClickTrigger"])
|
|
425
|
+
])
|
|
426
|
+
]),
|
|
427
|
+
footer: f(() => [
|
|
428
|
+
v("div", null, [
|
|
429
|
+
g(p, {
|
|
430
|
+
onClick: e.beforeDialogDestroy
|
|
431
|
+
}, {
|
|
432
|
+
default: f(() => o[0] || (o[0] = [
|
|
433
|
+
M("取消")
|
|
434
|
+
])),
|
|
435
|
+
_: 1,
|
|
436
|
+
__: [0]
|
|
437
|
+
}, 8, ["onClick"]),
|
|
438
|
+
g(p, {
|
|
439
|
+
type: "primary",
|
|
440
|
+
onClick: e.clickSubmitForm
|
|
441
|
+
}, {
|
|
442
|
+
default: f(() => o[1] || (o[1] = [
|
|
443
|
+
M(" 确认 ")
|
|
444
|
+
])),
|
|
445
|
+
_: 1,
|
|
446
|
+
__: [1]
|
|
447
|
+
}, 8, ["onClick"])
|
|
448
|
+
])
|
|
449
|
+
]),
|
|
450
|
+
_: 1
|
|
451
|
+
}, 8, ["title", "visible", "width", "onBeforeDestroy"])
|
|
452
|
+
]);
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
}), Ae = /* @__PURE__ */ le(Te, [["__scopeId", "data-v-3cf09eef"]]);
|
|
456
|
+
export {
|
|
457
|
+
Ae as default
|
|
458
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BReBoqZM.cjs"),a=require("./index-kq_YOCp0.cjs"),r=require("./index-CzuGT7Su.cjs"),o=require("./index-jxXiBXta.cjs"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...r.State});return e.onMounted(async()=>{t.structureId=await o.getActivePageStructureId()}),(l,_)=>(e.openBlock(),e.createElementBlock("div",c,[e.createVNode(n.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(a.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),u=s._export_sfc(i,[["__scopeId","data-v-c1856cfa"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),S=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),S=require("./index-BPGk6VZT.cjs"),U=require("./login-B_Ta8W8C.cjs"),g=require("./menu-CH06rBlw.cjs"),R=require("./crypto-CRbcEKIz.cjs"),A=require("./index-BTWHfvj_.cjs"),T=require("./index-BReBoqZM.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=U.useLoginState(),{loginUserInfo:u,cryptoInfo:m}=g.storeToRefs(V),j=g.useMenuState(),{activeMenuPath:h}=g.storeToRefs(j),D=n.ref(0);var k,E,N,B;const W=n.ref([{label:"",name:"account",value:(k=u.value)==null?void 0:k.account},{label:"",name:"userDept",value:(E=u.value)==null?void 0:E.userDept},{label:"",name:"userRoles",value:(B=(N=u.value)==null?void 0:N.userRoles)==null?void 0:B.join("、")}]),H=()=>{},b=n.ref(!1),w=n.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),I=n.ref([{label:"签字版",icon:S.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:S.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:S.upload_filled_default,type:"buttonUpload",disabled:!1}]),q=n.ref(!1),K=n.computed(()=>{var t;const s=sessionStorage.getItem("authority"),e=JSON.parse(s||"");return Array.isArray(e)?(q.value=!(e!=null&&e.includes(`${h.value}/上传头像`)),(t=I.value)==null?void 0:t.map(r=>({...r,disabled:!(e!=null&&e.includes(`${h.value}/签名`))}))):typeof e=="string"&&(e==null?void 0:e.toUpperCase())==="SUPERADMIN"?I.value:[]}),z=n.computed(()=>[{key:"signConfig",contents:w},{key:"signTypeList",contents:K.value}]),J=s=>{w.dialogShow=s.label==="电子签名"},x=()=>{w.dialogShow=!1},M=async s=>{var t,r,l,o,a,i,c,p,f;const e=await g.getInsofDataApi({id:s,key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:"/系统管理/用户管理"}});if(((t=e==null?void 0:e.data)==null?void 0:t.code)===200&&e.data.result&&Array.isArray(e.data.result)&&e.data.result.length>0){const y={...(o=(l=(r=e.data.result)==null?void 0:r[0])==null?void 0:l.value)==null?void 0:o.tableData,id:(i=(a=e.data.result)==null?void 0:a[0])==null?void 0:i.id,layer:(f=(p=(c=e.data.result)==null?void 0:c[0])==null?void 0:p.key)==null?void 0:f.layer};V.setLoginUserInfo(y)}},P=async s=>{var e,t,r,l;try{const o=await g.updateInsofDataApi({id:(e=u.value)==null?void 0:e.id,key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:"/系统管理/用户管理",layer:(t=u.value)==null?void 0:t.layer},value:{tableData:s}});((r=o==null?void 0:o.data)==null?void 0:r.code)===200&&(x(),g.ElMessage.success("修改成功"),await M((l=u.value)==null?void 0:l.id),b.value=!1)}catch{g.ElMessage.error("修改响应失败"),b.value=!1}},Z=async(s,e)=>{var r;const t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",[s]:e};b.value=!0,console.log(3434,u.value),await P(t)},v=n.reactive({baseCols:[],otherCols:[]}),$=n.ref([]),L=n.ref(),G=(s,e,t)=>{var o,a,i,c,p;let r;const l=e;((a=(o=u.value)==null?void 0:o.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?r=R.decryptData((i=u.value)==null?void 0:i.password,(c=m==null?void 0:m.value)==null?void 0:c.privateKey):r=(p=u.value)==null?void 0:p.password,r===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},Q=(s,e,t)=>{e?/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]).{6,}$/.test(e)?t():t(new Error("密码必须包含大写字母、小写字母、数字和特殊字符,并且长度至少为6个字符")):t(new Error("请输入密码"))},X=(s,e,t)=>{var r;e!==((r=L.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},Y=async()=>{var e,t,r,l,o,a,i,c,p;const s=await g.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"/系统管理/用户管理"}});if(((e=s==null?void 0:s.data)==null?void 0:e.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const f=(i=(a=(o=(l=(r=s.data.result)==null?void 0:r[0])==null?void 0:l.value)==null?void 0:o.pageData)==null?void 0:a.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="header"),y=["password","status","userDept","avatar","signature","account","userRoles","layer"];v.baseCols=f&&((c=f.contents)==null?void 0:c.map(d=>({...d,isFormColHidden:(y==null?void 0:y.includes(d==null?void 0:d.prop))||(d==null?void 0:d.label)==="操作"})));const C=(p=f.contents)==null?void 0:p.find(d=>(d==null?void 0:d.prop)==="password"),F=[{...C,label:"当前密码",prop:"currentPass",validator:G},{...C,label:"新密码",prop:"newtPass",validator:Q},{...C,label:"确认密码",prop:"confirmNewPass",validator:X}];v.otherCols=F,ae(u.value)}},ee=s=>{L.value=s},te=async({content:s,buttonName:e})=>{var r,l,o,a,i;let t;e==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((o=(l=u.value)==null?void 0:l.layer)==null?void 0:o.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:R.encryptData(s==null?void 0:s.confirmNewPass,(a=m.value)==null?void 0:a.publicKey)}),e==="保存基本信息"&&(t={...u.value,...s,status:((i=u.value)==null?void 0:i.status)??"启用"}),b.value=!0,await P(t)},_=()=>{const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},e=sessionStorage.getItem("authority"),t=JSON.parse(e||"");if(Array.isArray(t)){const r=t!=null&&t.includes(`${h.value}/基本信息`)?s==null?void 0:s.base:[],l=t!=null&&t.includes(`${h.value}/修改密码`)?s==null?void 0:s.other:[];return{base:r,other:l}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},ae=s=>{var e,t,r,l,o;_(),$.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(e=v.baseCols)==null?void 0:e.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:s[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=_())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=v.otherCols)==null?void 0:r.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=v.otherCols)==null?void 0:l.reduce((a,i)=>(a[i.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(c,p,f)=>i.validator(c,p,f),trigger:"blur"}],a),{}),buttonValue:(o=_())==null?void 0:o.other,isEnableWrap:!1},value:""}]}]},se=Object.freeze(Object.defineProperty({__proto__:null,beforeSignDestroy:x,changeFormTrigger:ee,clickFormButton:H,clickSignButton:J,clickTabButton:te,getUserTableHeadersAsync:Y,itemData:z,loading:b,refreshLoginUserInfoAsync:M,rowContents:W,signPadInfo:w,signTypes:K,submitImageAsync:Z,tabKey:D,tabsContents:$,tempSignTypes:I,uploadDisabled:q},Symbol.toStringTag,{value:"Module"})),re={class:"personal-wrapper"},ne={class:"personal-box left"},oe={class:"base-avatar"},le={class:"center-avatar"},ie={class:"base-info"},ue={class:"base-signature"},de={class:"personal-box right"},ce=n.defineComponent({__name:"index",setup(s){const e=n.reactive({...se}),t=U.useLoginState(),{loginUserInfo:r}=g.storeToRefs(t);return n.onMounted(()=>{var l;e.getUserTableHeadersAsync(),e.refreshLoginUserInfoAsync((l=r==null?void 0:r.value)==null?void 0:l.id),D.value++}),(l,o)=>{const a=n.resolveDirective("loading");return n.openBlock(),n.createElementBlock("div",re,[n.createElementVNode("div",ne,[n.createElementVNode("div",oe,[n.withDirectives((n.openBlock(),n.createElementBlock("div",le,[n.createVNode(A.ssAvatar,{disabled:e.uploadDisabled,userInfo:n.unref(r),onSubmitImage:o[0]||(o[0]=i=>e.submitImageAsync("avatarUrl",i))},null,8,["disabled","userInfo"])])),[[a,e.loading]])]),n.createElementVNode("div",ie,[n.createVNode(T.ssForm,{rowContents:e.rowContents,isEnableWrap:!1,isButtonRow:!0,isEdit:!1},null,8,["rowContents"])]),n.createElementVNode("div",ue,[n.createVNode(A.ssSignature,{userInfo:n.unref(r),itemData:e.itemData,onClickSignButton:e.clickSignButton,onBeforeDestroy:e.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=i=>e.submitImageAsync("signature",i))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"])])]),n.createElementVNode("div",de,[(n.openBlock(),n.createBlock(T.ssTab,{key:n.unref(D),tabsContents:e.tabsContents,onChangeTrigger:e.changeFormTrigger,onClickTrigger:e.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])])}}}),pe=O._export_sfc(ce,[["__scopeId","data-v-a55e627c"]]);exports.default=pe;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { resolveComponent as L, createElementBlock as _, openBlock as r, Fragment as j, renderList as q, unref as W, createElementVNode as C, createVNode as D, toDisplayString as E, ref as I, watch as A, withCtx as z, createBlock as G, resolveDynamicComponent as H, createCommentVNode as y, normalizeStyle as X, withModifiers as w } from "vue";
|
|
2
|
-
import { s as Y, g as J } from "./index-
|
|
3
|
-
import { p as B } from "./index-
|
|
4
|
-
import { u as V } from "./modelComp-
|
|
5
|
-
import { s as S, E as Z } from "./menu-
|
|
6
|
-
import "./array-
|
|
2
|
+
import { s as Y, g as J } from "./index-C3-tA5Oy.js";
|
|
3
|
+
import { p as B } from "./index-YBOakoO-.js";
|
|
4
|
+
import { u as V } from "./modelComp-CiiFZm1t.js";
|
|
5
|
+
import { s as S, E as Z } from "./menu-BjwI4sfO.js";
|
|
6
|
+
import "./array-BiSkXjDh.js";
|
|
7
7
|
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
import { c as v } from "./cloneDeep-
|
|
8
|
+
import { c as v } from "./cloneDeep-CxhinJk5.js";
|
|
9
9
|
import ee from "./index-CZtXRS3l.js";
|
|
10
|
-
import { _ as te } from "./index-
|
|
11
|
-
import { E as ne } from "./index-
|
|
10
|
+
import { _ as te } from "./index-CWpNIgx-.js";
|
|
11
|
+
import { E as ne } from "./index-B0SEIfhd.js";
|
|
12
12
|
const oe = { class: "type-select" }, se = ["onClick"], ae = { class: "list-icon" }, le = {
|
|
13
13
|
__name: "index",
|
|
14
14
|
setup(O) {
|