ss-component-new 1.1.613 → 1.1.615
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/{index-C2gWLtuP.js → index-B6QaCaqA.js} +1914 -1900
- package/dist/{index-B7MJ84rl.js → index-BIWYupwC.js} +2 -2
- package/dist/{index-Chwdv_Xm.cjs → index-BIwbRfZV.cjs} +1 -1
- package/dist/{index-BTcprbvh.cjs → index-BKmSTTMQ.cjs} +1 -1
- package/dist/{index-B4CjnKtd.cjs → index-BQsnTc3q.cjs} +1 -1
- package/dist/{index-D_HszcpC.js → index-BUBSx35j.js} +2 -2
- package/dist/{index-A885uuFC.js → index-BaFFVLSx.js} +2 -2
- package/dist/{index-ByqiusUf.js → index-Bexz-XTn.js} +2 -2
- package/dist/{index-B4gAKBoa.cjs → index-BmMtgdyD.cjs} +1 -1
- package/dist/{index-Bh3pY3Jj.js → index-Bo5LxH0R.js} +4 -4
- package/dist/{index-CPq1CV6b.cjs → index-C4MoAi8A.cjs} +1 -1
- package/dist/{index-CtxOJNHA.cjs → index-C8Ajhm1J.cjs} +1 -1
- package/dist/index-C8OcDHI8.cjs +1 -0
- package/dist/{index-j-V6cmGh.js → index-C8xCpRxo.js} +147 -146
- package/dist/{index-DY7U0ulO.cjs → index-CZ89rQnr.cjs} +1 -1
- package/dist/index-C_0I-i8V.cjs +1 -0
- package/dist/{index-DDffuw8C.cjs → index-CcnA-z8S.cjs} +168 -168
- package/dist/{index-DHXlo9Tk.js → index-CeIrTIy_.js} +2 -2
- package/dist/{index-DVNL8B38.js → index-CfcFMIgE.js} +1 -1
- package/dist/{index-C8JbYV9i.js → index-ClJ1cGzL.js} +3 -3
- package/dist/{index-8Juw-vHr.cjs → index-CrC-SpUw.cjs} +1 -1
- package/dist/{index-BscVxcWg.cjs → index-CshDokGB.cjs} +1 -1
- package/dist/{index-CjbW-TOF.js → index-CupbZVTS.js} +249 -243
- package/dist/{index-5cKa20gg.js → index-D3AT3gF-.js} +2 -2
- package/dist/{index-u76SwcjA.cjs → index-D9JIHP4v.cjs} +1 -1
- package/dist/{index-DaljBanN.js → index-DOSx4wIZ.js} +1 -1
- package/dist/{index-DYxoBbtJ.cjs → index-DZ5qhDQe.cjs} +1 -1
- package/dist/{index-DnS2Ulaz.js → index-DhvQs7gl.js} +1 -1
- package/dist/{index-CjfSFVch.cjs → index-Dm7SM4YC.cjs} +1 -1
- package/dist/{index-CoQ5q08W.cjs → index-DmRE2cVC.cjs} +1 -1
- package/dist/{index-uOFoDGfr.js → index-DtVpV7EJ.js} +6 -7
- package/dist/{index-C2oTEiOz.cjs → index-DwEIuuNm.cjs} +1 -1
- package/dist/{index-DuYtDUrA.cjs → index-DxrHtk8v.cjs} +1 -1
- package/dist/index-GmDBztwV.js +133 -0
- package/dist/{index-B_jcwz8h.js → index-LThj-yaI.js} +4 -4
- package/dist/{index-DXmRodF3.cjs → index-OvZBqXdL.cjs} +1 -1
- package/dist/{index-z9FzE2kG.cjs → index-WwP4JICq.cjs} +1 -1
- package/dist/{index-B7STLPQk.js → index-XO8F4SuQ.js} +1 -1
- package/dist/{index-C8IGgf80.js → index-f8bHzA1N.js} +1 -1
- package/dist/{index-DCT9raO7.js → index-kBsp3BdQ.js} +10 -10
- package/dist/{index-CIk03V2m.js → index-sYouPqTP.js} +6 -6
- package/dist/{index-BnolyTQo.cjs → index-zePkpBVb.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BBjmwIHl.js → index.vue_vue_type_script_setup_true_lang-6ThktX0W.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-C0WdqAD3.cjs → index.vue_vue_type_script_setup_true_lang-D2XdpbX2.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-8sKf69T7.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CCe3D1Fi.cjs} +58 -58
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BBtXjJyn.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Ce-Qmyx6.js} +5046 -5034
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DIyem6Zd.js → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-BJv6YZwy.js} +59 -59
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DfW-NcWK.cjs → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-IWNNVYfV.cjs} +5 -5
- package/dist/{index.vue_vue_type_style_index_0_scoped_57a7854d_lang-Bj6wXs-K.js → index.vue_vue_type_style_index_0_scoped_57a7854d_lang-Bnu-UWuz.js} +18 -18
- package/dist/{index.vue_vue_type_style_index_0_scoped_57a7854d_lang-CoP3t1MS.cjs → index.vue_vue_type_style_index_0_scoped_57a7854d_lang-IfwcHebz.cjs} +1 -1
- package/dist/{main-DEB71tXS.cjs → main-BPiaiKSm.cjs} +1 -1
- package/dist/{main-DSnZpabn.js → main-CNizRBdz.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-j-ksghdx.cjs → threeModel-BpduEcPZ.cjs} +1 -1
- package/dist/{threeModel-BuK8iClH.js → threeModel-vh07xxLE.js} +1 -1
- package/package.json +1 -1
- package/dist/index-6DTZ5srt.cjs +0 -1
- package/dist/index-B8Kd-FiX.cjs +0 -1
- package/dist/index-BefuyAwv.js +0 -125
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as u, computed as
|
|
2
|
-
import { bR as we, g as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { d as
|
|
6
|
-
import { E as
|
|
7
|
-
const
|
|
1
|
+
import { ref as u, computed as R, reactive as J, nextTick as H, watch as X } from "vue";
|
|
2
|
+
import { bR as we, g as j, s as C, E as f, c as N, bO as Y, bM as Z, bP as m, p as A, u as ee } from "./menu-DArqZlON.js";
|
|
3
|
+
import { u as te } from "./login-C8DAyy2e.js";
|
|
4
|
+
import { u as De } from "./modelComp-6AqovLWA.js";
|
|
5
|
+
import { d as se, i as Ie, e as V } from "./crypto-BRyGpjGR.js";
|
|
6
|
+
import { E as Ee } from "./index-DaOakrcL.js";
|
|
7
|
+
const re = we("authorityState", {
|
|
8
8
|
state: () => ({
|
|
9
9
|
routerPageStructures: []
|
|
10
10
|
}),
|
|
@@ -13,25 +13,25 @@ const le = we("authorityState", {
|
|
|
13
13
|
this.routerPageStructures = e;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
}),
|
|
16
|
+
}), Me = ee(A), { activeMenuPath: b } = C(Me), ne = te(A), { structureData: Re } = C(ne), Ne = re(A), { routerPageStructures: Oe } = C(Ne), ae = De(A), je = u([
|
|
17
17
|
{
|
|
18
18
|
label: "角色名称",
|
|
19
19
|
value: "",
|
|
20
20
|
name: "roleName"
|
|
21
21
|
}
|
|
22
|
-
]),
|
|
22
|
+
]), xe = u([
|
|
23
23
|
{
|
|
24
24
|
label: "查询"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
label: "重置"
|
|
28
28
|
}
|
|
29
|
-
]),
|
|
29
|
+
]), q = J({
|
|
30
30
|
isFilter: !1,
|
|
31
31
|
filterForm: {}
|
|
32
|
-
}),
|
|
33
|
-
|
|
34
|
-
},
|
|
32
|
+
}), Fe = u(!1), We = (e) => {
|
|
33
|
+
q.isFilter = !0, q.filterForm = e;
|
|
34
|
+
}, ce = u([
|
|
35
35
|
// {
|
|
36
36
|
// key: "extraButton",
|
|
37
37
|
// contents: [
|
|
@@ -119,98 +119,99 @@ const le = we("authorityState", {
|
|
|
119
119
|
// // ],
|
|
120
120
|
// // ]
|
|
121
121
|
// }
|
|
122
|
-
]),
|
|
122
|
+
]), le = u([]), oe = u(""), Le = R(() => {
|
|
123
123
|
var r, s, t, n, a;
|
|
124
|
-
const e = (r =
|
|
124
|
+
const e = (r = Oe.value) == null ? void 0 : r.find((l) => {
|
|
125
125
|
var c;
|
|
126
126
|
return ((c = l == null ? void 0 : l.comp) == null ? void 0 : c.toUpperCase()) === "TABLE";
|
|
127
127
|
});
|
|
128
128
|
if (e) {
|
|
129
|
-
|
|
129
|
+
oe.value = e.name, le.value = (n = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : n.filter((c) => (c == null ? void 0 : c.label) !== "操作");
|
|
130
130
|
const l = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((c) => {
|
|
131
131
|
if ((c == null ? void 0 : c.key) === "rowButton") {
|
|
132
132
|
let o = [];
|
|
133
|
-
return
|
|
133
|
+
return T.value ? o = [...c == null ? void 0 : c.contents, { label: "授权" }] : o = c == null ? void 0 : c.contents, {
|
|
134
134
|
...c,
|
|
135
135
|
contents: o
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
return c;
|
|
139
139
|
});
|
|
140
|
-
return
|
|
140
|
+
return ve(l), l;
|
|
141
141
|
}
|
|
142
142
|
return [];
|
|
143
|
-
}),
|
|
144
|
-
|
|
145
|
-
},
|
|
143
|
+
}), _e = (e) => {
|
|
144
|
+
L(e.singleContent, e.buttonName, O.value);
|
|
145
|
+
}, k = u({}), x = u(), P = async (e, r, s) => {
|
|
146
146
|
var t, n;
|
|
147
147
|
try {
|
|
148
148
|
const a = await e(r);
|
|
149
|
-
return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (s !== "查询" && await
|
|
149
|
+
return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (s !== "查询" && await ne.setLogRecordAsync({
|
|
150
150
|
type: s,
|
|
151
151
|
data: r
|
|
152
152
|
}, b.value), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
|
|
153
153
|
} catch (a) {
|
|
154
|
-
|
|
154
|
+
f.error(a);
|
|
155
155
|
}
|
|
156
|
-
},
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
|
|
156
|
+
}, Ue = (e, r) => {
|
|
157
|
+
const s = new Map(r.map((n) => [n.path, n.checkedButtons]));
|
|
158
|
+
function t(n) {
|
|
159
|
+
var l, c;
|
|
160
|
+
const a = (l = n == null ? void 0 : n.path) != null && l.startsWith("/") ? (c = n == null ? void 0 : n.path) == null ? void 0 : c.substring(1) : n == null ? void 0 : n.path;
|
|
161
|
+
s.has(a) && (n.checkedButtons = s.get(a)), n.children && n.children.length > 0 && n.children.forEach(t);
|
|
162
|
+
}
|
|
163
|
+
e.forEach(t);
|
|
164
|
+
}, ue = (e) => e == null ? void 0 : e.map((r) => {
|
|
164
165
|
var t;
|
|
165
166
|
const s = {
|
|
166
167
|
...r,
|
|
167
168
|
checkedButtons: []
|
|
168
169
|
};
|
|
169
|
-
return s.children && ((t = s.children) == null ? void 0 : t.length) > 0 && (s.children =
|
|
170
|
-
}),
|
|
170
|
+
return s.children && ((t = s.children) == null ? void 0 : t.length) > 0 && (s.children = ue(s.children)), s;
|
|
171
|
+
}), he = (e) => {
|
|
171
172
|
for (const r in e)
|
|
172
173
|
if (Array.isArray(e[r]))
|
|
173
174
|
return r;
|
|
174
175
|
return "";
|
|
175
|
-
},
|
|
176
|
+
}, ie = (e) => {
|
|
176
177
|
const r = [];
|
|
177
178
|
let s = 0;
|
|
178
179
|
for (; s < e.length; )
|
|
179
180
|
if (typeof e[s] == "string") {
|
|
180
181
|
const t = { title: e[s] };
|
|
181
|
-
s + 1 < e.length && Array.isArray(e[s + 1]) ? (t.children =
|
|
182
|
+
s + 1 < e.length && Array.isArray(e[s + 1]) ? (t.children = ie(e[s + 1]), s += 2) : s += 1, r.push(t);
|
|
182
183
|
}
|
|
183
184
|
return r;
|
|
184
|
-
},
|
|
185
|
+
}, fe = (e) => {
|
|
185
186
|
const r = [];
|
|
186
187
|
let s = 0;
|
|
187
188
|
for (; s < (e == null ? void 0 : e.length); ) {
|
|
188
189
|
const t = { title: e == null ? void 0 : e[s] };
|
|
189
|
-
s + 1 < (e == null ? void 0 : e.length) && Array.isArray(e == null ? void 0 : e[s + 1]) ? (t.children =
|
|
190
|
+
s + 1 < (e == null ? void 0 : e.length) && Array.isArray(e == null ? void 0 : e[s + 1]) ? (t.children = ie(e == null ? void 0 : e[s + 1]), s += 2) : s += 1, r.push(t);
|
|
190
191
|
}
|
|
191
192
|
return r;
|
|
192
|
-
},
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
}, F = (e, r = "", s = /* @__PURE__ */ new Map()) => e == null ? void 0 : e.map((t) => {
|
|
194
|
+
const n = r ? `${r}/${t.title}` : t.title;
|
|
195
|
+
if (s.has(n))
|
|
196
|
+
return s.get(n);
|
|
197
|
+
const a = {
|
|
198
|
+
...t,
|
|
199
|
+
path: n
|
|
196
200
|
};
|
|
197
|
-
return
|
|
198
|
-
}),
|
|
201
|
+
return t.children && t.children.length > 0 && (a.children = F(t.children, n, s)), s.set(n, a), a;
|
|
202
|
+
}), ye = (e, r) => e.reduce((s, t) => {
|
|
199
203
|
const n = t[r];
|
|
200
204
|
return s[n] || (s[n] = []), s[n].push(t), s;
|
|
201
|
-
}, {}),
|
|
205
|
+
}, {}), pe = (e) => {
|
|
202
206
|
const r = [];
|
|
203
|
-
function s(n) {
|
|
204
|
-
!
|
|
207
|
+
function s(t, n) {
|
|
208
|
+
!t.children || t.children.length === 0 ? r.push({
|
|
209
|
+
...t,
|
|
210
|
+
parentPath: n || ""
|
|
211
|
+
}) : t.children.forEach((a) => s(a, t.path || n));
|
|
205
212
|
}
|
|
206
|
-
return e.forEach((
|
|
207
|
-
|
|
208
|
-
return {
|
|
209
|
-
...n,
|
|
210
|
-
parentPath: (c = (l = (a = n.path) == null ? void 0 : a.split("/")) == null ? void 0 : l.slice(0, -1)) == null ? void 0 : c.join("/")
|
|
211
|
-
};
|
|
212
|
-
});
|
|
213
|
-
}, Ae = (e) => Object.entries(e).map(([s, t]) => ({
|
|
213
|
+
return e.forEach((t) => s(t, "")), r;
|
|
214
|
+
}, ge = (e) => Object.entries(e).map(([s, t]) => ({
|
|
214
215
|
path: s,
|
|
215
216
|
checkedButtons: t == null ? void 0 : t.map((n) => n == null ? void 0 : n.path)
|
|
216
217
|
})), ze = (e) => Object.prototype.toString.call(e) === "[object Object]" && e !== null, Qe = (e) => {
|
|
@@ -223,13 +224,13 @@ const le = we("authorityState", {
|
|
|
223
224
|
const a = `a${n}`;
|
|
224
225
|
r[a] = t;
|
|
225
226
|
})), r;
|
|
226
|
-
},
|
|
227
|
+
}, S = u(""), ve = (e) => {
|
|
227
228
|
var n;
|
|
228
229
|
const r = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.key) === "tableContents");
|
|
229
230
|
if (!r) return "";
|
|
230
231
|
const s = (n = r == null ? void 0 : r.contents) == null ? void 0 : n[0], t = Qe(s);
|
|
231
|
-
|
|
232
|
-
},
|
|
232
|
+
S.value = he(t);
|
|
233
|
+
}, Ve = (e) => {
|
|
233
234
|
if (!Array.isArray(e))
|
|
234
235
|
return !1;
|
|
235
236
|
for (let r of e) {
|
|
@@ -240,20 +241,20 @@ const le = we("authorityState", {
|
|
|
240
241
|
return !1;
|
|
241
242
|
}
|
|
242
243
|
return !0;
|
|
243
|
-
},
|
|
244
|
+
}, qe = (e) => {
|
|
244
245
|
const r = [];
|
|
245
246
|
for (const s in e)
|
|
246
247
|
e[s].forEach((n) => {
|
|
247
248
|
var o, h;
|
|
248
249
|
const a = (o = n.path) != null && o.startsWith("/") ? (h = n.path) == null ? void 0 : h.substring(1) : n.path, l = a == null ? void 0 : a.split("/");
|
|
249
250
|
let c = r;
|
|
250
|
-
l.forEach((
|
|
251
|
-
let
|
|
252
|
-
|
|
251
|
+
l.forEach((y) => {
|
|
252
|
+
let p = c.find((v) => v.title === y);
|
|
253
|
+
p || (p = { title: y, path: n.path, children: [] }, c.push(p)), c = p.children;
|
|
253
254
|
});
|
|
254
255
|
});
|
|
255
256
|
return r;
|
|
256
|
-
},
|
|
257
|
+
}, Ge = (e) => {
|
|
257
258
|
const r = {};
|
|
258
259
|
return e.forEach((s) => {
|
|
259
260
|
const { path: t, checkedButtons: n } = s, a = t, l = n.map((c) => ({
|
|
@@ -263,26 +264,26 @@ const le = we("authorityState", {
|
|
|
263
264
|
}));
|
|
264
265
|
r[a] = l;
|
|
265
266
|
}), r;
|
|
266
|
-
},
|
|
267
|
+
}, be = (e) => {
|
|
267
268
|
let r = [];
|
|
268
269
|
for (const s of e) {
|
|
269
270
|
let t = [s.title];
|
|
270
271
|
if (s.children && Array.isArray(s.children)) {
|
|
271
|
-
let n =
|
|
272
|
+
let n = be(s.children);
|
|
272
273
|
n.length > 0 && t.push(n);
|
|
273
274
|
}
|
|
274
275
|
r.push(t);
|
|
275
276
|
}
|
|
276
277
|
return r;
|
|
277
|
-
},
|
|
278
|
+
}, Je = (e) => {
|
|
278
279
|
const r = [];
|
|
279
280
|
for (const s of e) {
|
|
280
281
|
if (!Array.isArray(s) || s.length !== 2) continue;
|
|
281
|
-
const [t, n] = s, a =
|
|
282
|
-
l === -1 ? r.push(t, a) : r[l + 1] =
|
|
282
|
+
const [t, n] = s, a = de(n), l = r.indexOf(t);
|
|
283
|
+
l === -1 ? r.push(t, a) : r[l + 1] = Ae(r[l + 1], a);
|
|
283
284
|
}
|
|
284
285
|
return r;
|
|
285
|
-
},
|
|
286
|
+
}, de = (e) => {
|
|
286
287
|
const r = [];
|
|
287
288
|
for (const s of e)
|
|
288
289
|
if (Array.isArray(s)) {
|
|
@@ -290,42 +291,49 @@ const le = we("authorityState", {
|
|
|
290
291
|
r.push(s[0]);
|
|
291
292
|
else if (s.length === 2 && typeof s[0] == "string") {
|
|
292
293
|
const [t, n] = s;
|
|
293
|
-
r.push(t,
|
|
294
|
+
r.push(t, de(n));
|
|
294
295
|
}
|
|
295
296
|
}
|
|
296
297
|
return r;
|
|
297
|
-
},
|
|
298
|
+
}, Ae = (e, r) => {
|
|
298
299
|
const s = [...e];
|
|
299
300
|
let t = 0;
|
|
300
301
|
for (; t < r.length; ) {
|
|
301
302
|
const n = r[t];
|
|
302
303
|
if (typeof n == "string") {
|
|
303
304
|
const a = s.indexOf(n);
|
|
304
|
-
a === -1 ? s.push(n, r[t + 1]) : s[a + 1] =
|
|
305
|
+
a === -1 ? s.push(n, r[t + 1]) : s[a + 1] = Ae(s[a + 1], r[t + 1]), t += 2;
|
|
305
306
|
} else
|
|
306
307
|
s.push(n), t += 1;
|
|
307
308
|
}
|
|
308
309
|
return s;
|
|
309
|
-
},
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
}, He = async (e, r) => {
|
|
311
|
+
var s, t;
|
|
312
|
+
if (k.value = N(r), ae.setRefreshCurStructure(!1), (s = B.value) == null || s.splice(0), e === "授权") {
|
|
313
|
+
if (!S.value) {
|
|
314
|
+
f.error("请正确定义角色权限");
|
|
313
315
|
return;
|
|
314
316
|
}
|
|
315
|
-
const
|
|
316
|
-
let
|
|
317
|
-
if (
|
|
318
|
-
|
|
317
|
+
const n = Ve(k.value[S.value]);
|
|
318
|
+
let a;
|
|
319
|
+
if (n)
|
|
320
|
+
a = k.value[S.value];
|
|
319
321
|
else {
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
+
const c = fe(k.value[S.value]), o = F(c), h = pe(o), y = ye(h, "parentPath");
|
|
323
|
+
a = ge(y);
|
|
324
|
+
}
|
|
325
|
+
if (!a || !Array.isArray(a)) {
|
|
326
|
+
f.error("权限数据处理出错了,请联系管理员");
|
|
327
|
+
return;
|
|
322
328
|
}
|
|
323
|
-
|
|
329
|
+
d.title = `【${r.a0}】授权`, d.show = !0, await H();
|
|
330
|
+
const l = a == null ? void 0 : a.map((c) => c == null ? void 0 : c.path);
|
|
331
|
+
(t = x.value) == null || t.setCheckedKeys(l), Ue(w.value, a);
|
|
324
332
|
}
|
|
325
|
-
},
|
|
326
|
-
|
|
327
|
-
},
|
|
328
|
-
const r = await P(
|
|
333
|
+
}, Xe = () => {
|
|
334
|
+
d.show = !1;
|
|
335
|
+
}, D = u(), Ye = async (e) => {
|
|
336
|
+
const r = await P(j, {
|
|
329
337
|
key: {
|
|
330
338
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
331
339
|
type: "data",
|
|
@@ -351,17 +359,17 @@ const le = we("authorityState", {
|
|
|
351
359
|
id: t.id
|
|
352
360
|
};
|
|
353
361
|
});
|
|
354
|
-
},
|
|
362
|
+
}, W = (e, r) => {
|
|
355
363
|
let s = {};
|
|
356
364
|
return r == null || r.forEach((t, n) => {
|
|
357
365
|
t.label && e && (s[t.label] = (e == null ? void 0 : e[`a${n}`]) ?? null);
|
|
358
366
|
}), s;
|
|
359
|
-
},
|
|
367
|
+
}, L = (e, r, s) => {
|
|
360
368
|
var a, l, c, o;
|
|
361
|
-
const t =
|
|
369
|
+
const t = N(e);
|
|
362
370
|
t != null && t.id && delete t.id;
|
|
363
|
-
const n =
|
|
364
|
-
|
|
371
|
+
const n = W(t, le.value);
|
|
372
|
+
r === "新增" ? P(Y, {
|
|
365
373
|
key: {
|
|
366
374
|
type: "data",
|
|
367
375
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -372,11 +380,11 @@ const le = we("authorityState", {
|
|
|
372
380
|
tableData: n
|
|
373
381
|
}
|
|
374
382
|
}, r).then((h) => {
|
|
375
|
-
|
|
383
|
+
D.value = {
|
|
376
384
|
...e,
|
|
377
385
|
newId: h
|
|
378
|
-
}, r && h &&
|
|
379
|
-
}) : r === "编辑" ?
|
|
386
|
+
}, r && h && f.success(r + "成功");
|
|
387
|
+
}) : r === "编辑" ? P(Z, {
|
|
380
388
|
id: e.id,
|
|
381
389
|
key: {
|
|
382
390
|
type: "data",
|
|
@@ -388,13 +396,13 @@ const le = we("authorityState", {
|
|
|
388
396
|
tableData: n
|
|
389
397
|
}
|
|
390
398
|
}, r).then((h) => {
|
|
391
|
-
r && h &&
|
|
392
|
-
})
|
|
399
|
+
r && h && f.success(r + "成功"), d.show = !1;
|
|
400
|
+
}) : r === "删除" && P(m, {
|
|
393
401
|
id: e.id
|
|
394
402
|
}, r).then((h) => {
|
|
395
|
-
r && h &&
|
|
396
|
-
}),
|
|
397
|
-
},
|
|
403
|
+
r && h && f.success(r + "成功");
|
|
404
|
+
}), ae.setRefreshCurStructure(!0);
|
|
405
|
+
}, ke = (e) => {
|
|
398
406
|
let r = [];
|
|
399
407
|
return e == null || e.forEach((s) => {
|
|
400
408
|
var t;
|
|
@@ -406,31 +414,31 @@ const le = we("authorityState", {
|
|
|
406
414
|
};
|
|
407
415
|
r = r.concat(n);
|
|
408
416
|
}
|
|
409
|
-
s.children && (r = r.concat(
|
|
417
|
+
s.children && (r = r.concat(ke(s.children)));
|
|
410
418
|
}), r;
|
|
411
|
-
},
|
|
412
|
-
const e =
|
|
413
|
-
|
|
414
|
-
...
|
|
419
|
+
}, Ze = () => {
|
|
420
|
+
const e = ke(w.value), r = Ge(e), s = qe(r), t = be(s), n = Je(t);
|
|
421
|
+
D.value = {
|
|
422
|
+
...k.value,
|
|
415
423
|
// roleAuthority: extractCheckedButtonPaths(menuData.value)
|
|
416
424
|
// ['a' + authorityIndex]: checkedKeys
|
|
417
425
|
// todo 模型驱动
|
|
418
|
-
[
|
|
419
|
-
},
|
|
420
|
-
|
|
426
|
+
[S.value]: n
|
|
427
|
+
}, H(() => {
|
|
428
|
+
L(D.value, "编辑", O.value);
|
|
421
429
|
});
|
|
422
|
-
},
|
|
430
|
+
}, d = J({
|
|
423
431
|
show: !1,
|
|
424
432
|
title: "角色授权",
|
|
425
433
|
width: "35%",
|
|
426
434
|
draggable: !0
|
|
427
|
-
}),
|
|
435
|
+
}), me = ({ isPenultimate: e }, r) => {
|
|
428
436
|
var s, t;
|
|
429
437
|
return console.log("isPenultimate", e, r), ((t = (s = r == null ? void 0 : r.data) == null ? void 0 : s.renderButtons) == null ? void 0 : t.length) > 0 ? "is-penultimate" : "";
|
|
430
|
-
},
|
|
438
|
+
}, O = u(0), et = async (e) => {
|
|
431
439
|
var t, n, a, l, c;
|
|
432
440
|
let r;
|
|
433
|
-
const s = await
|
|
441
|
+
const s = await j({
|
|
434
442
|
key: {
|
|
435
443
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
436
444
|
type: "structure",
|
|
@@ -438,8 +446,8 @@ const le = we("authorityState", {
|
|
|
438
446
|
pageKey: e != null && e.startsWith("/") ? e == null ? void 0 : e.substring(1) : e
|
|
439
447
|
}
|
|
440
448
|
});
|
|
441
|
-
return ((t = s == null ? void 0 : s.data) == null ? void 0 : t.code) === 200 && (n = s == null ? void 0 : s.data) != null && n.result && ((a = s == null ? void 0 : s.data) == null ? void 0 : a.result.length) > 0 && (r = (c = (l = s == null ? void 0 : s.data.result) == null ? void 0 : l[0]) == null ? void 0 : c.id,
|
|
442
|
-
}, w = u([]),
|
|
449
|
+
return ((t = s == null ? void 0 : s.data) == null ? void 0 : t.code) === 200 && (n = s == null ? void 0 : s.data) != null && n.result && ((a = s == null ? void 0 : s.data) == null ? void 0 : a.result.length) > 0 && (r = (c = (l = s == null ? void 0 : s.data.result) == null ? void 0 : l[0]) == null ? void 0 : c.id, O.value = r), r;
|
|
450
|
+
}, w = u([]), tt = u([
|
|
443
451
|
{
|
|
444
452
|
path: "资源管理",
|
|
445
453
|
buttons: ["查询", "新增", "编辑", "删除"]
|
|
@@ -448,39 +456,39 @@ const le = we("authorityState", {
|
|
|
448
456
|
path: "资源管理/人员",
|
|
449
457
|
buttons: ["查询", "新增", "编辑", "删除"]
|
|
450
458
|
}
|
|
451
|
-
]),
|
|
459
|
+
]), st = (e, r) => {
|
|
452
460
|
var s;
|
|
453
|
-
e.checkedButtons = r ? (s = e.renderButtons) == null ? void 0 : s.map((t) => t.path) : []
|
|
454
|
-
},
|
|
461
|
+
e.checkedButtons = r ? (s = e.renderButtons) == null ? void 0 : s.map((t) => t.path) : [];
|
|
462
|
+
}, B = u([]), rt = (e, r) => {
|
|
455
463
|
var s, t, n;
|
|
456
|
-
r.checkedButtons = e, ((s = r.checkedButtons) == null ? void 0 : s.length) === ((t = r.renderButtons) == null ? void 0 : t.length) ?
|
|
464
|
+
r.checkedButtons = e, ((s = r.checkedButtons) == null ? void 0 : s.length) === ((t = r.renderButtons) == null ? void 0 : t.length) ? B.value.push(r.path) : (e == null ? void 0 : e.length) === 0 && (B.value = (n = B.value) == null ? void 0 : n.filter((a) => a !== r.path));
|
|
457
465
|
};
|
|
458
|
-
|
|
466
|
+
X(() => B.value.length, () => {
|
|
459
467
|
var e;
|
|
460
|
-
(e =
|
|
468
|
+
(e = x.value) == null || e.setCheckedKeys([...B.value]);
|
|
461
469
|
});
|
|
462
|
-
|
|
463
|
-
e || (w.value =
|
|
470
|
+
X(() => d.show, (e) => {
|
|
471
|
+
e || (w.value = ue(w.value));
|
|
464
472
|
});
|
|
465
|
-
const
|
|
473
|
+
const Se = R(() => {
|
|
466
474
|
var s;
|
|
467
|
-
const e = (s =
|
|
475
|
+
const e = (s = N(Re.value)) == null ? void 0 : s.filter((t) => {
|
|
468
476
|
var n, a;
|
|
469
477
|
return ((a = (n = t == null ? void 0 : t.key) == null ? void 0 : n.pageKey) == null ? void 0 : a.toUpperCase()) !== "MENU";
|
|
470
478
|
});
|
|
471
479
|
return e == null ? void 0 : e.map((t) => {
|
|
472
|
-
var l, c, o, h,
|
|
480
|
+
var l, c, o, h, y, p, v, Q;
|
|
473
481
|
const n = /button/i;
|
|
474
|
-
let a = (o = (c = (l = t == null ? void 0 : t.value) == null ? void 0 : l.pageData) == null ? void 0 : c.compData) == null ? void 0 : o.filter((
|
|
482
|
+
let a = (o = (c = (l = t == null ? void 0 : t.value) == null ? void 0 : l.pageData) == null ? void 0 : c.compData) == null ? void 0 : o.filter((K) => n.test(K == null ? void 0 : K.key));
|
|
475
483
|
return a = Array.from(
|
|
476
|
-
new Set(a == null ? void 0 : a.flatMap((
|
|
484
|
+
new Set(a == null ? void 0 : a.flatMap((K) => K.contents.map(($e) => $e.label)))
|
|
477
485
|
), {
|
|
478
|
-
path: (
|
|
486
|
+
path: (y = (h = t == null ? void 0 : t.key) == null ? void 0 : h.pageKey) != null && y.startsWith("/") ? (v = (p = t == null ? void 0 : t.key) == null ? void 0 : p.pageKey) == null ? void 0 : v.substring(1) : (Q = t == null ? void 0 : t.key) == null ? void 0 : Q.pageKey,
|
|
479
487
|
buttons: a
|
|
480
488
|
};
|
|
481
489
|
});
|
|
482
|
-
}),
|
|
483
|
-
const s = [e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.title) === "平台管理")].flatMap((t) => t == null ? void 0 : t.
|
|
490
|
+
}), nt = u([]), at = (e) => {
|
|
491
|
+
const s = [e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.title) === "平台管理")].flatMap((t) => t == null ? void 0 : t.children);
|
|
484
492
|
return s == null ? void 0 : s.map((t) => {
|
|
485
493
|
var n, a;
|
|
486
494
|
return {
|
|
@@ -489,7 +497,7 @@ const F = O(() => {
|
|
|
489
497
|
buttons: ["新增", "查看", "编辑", "删除"]
|
|
490
498
|
};
|
|
491
499
|
});
|
|
492
|
-
},
|
|
500
|
+
}, G = (e, r) => {
|
|
493
501
|
var s;
|
|
494
502
|
if (e.carryData) {
|
|
495
503
|
if (e.path === "系统管理/个人中心") {
|
|
@@ -512,24 +520,23 @@ const F = O(() => {
|
|
|
512
520
|
});
|
|
513
521
|
}
|
|
514
522
|
return [];
|
|
515
|
-
},
|
|
523
|
+
}, Be = (e, r) => {
|
|
516
524
|
if (Array.isArray(e))
|
|
517
525
|
return e == null ? void 0 : e.map((s) => {
|
|
518
526
|
var a, l;
|
|
519
527
|
const t = (a = s == null ? void 0 : s.path) != null && a.startsWith("/") ? (l = s == null ? void 0 : s.path) == null ? void 0 : l.substring(1) : s == null ? void 0 : s.path, n = r == null ? void 0 : r.find((c) => (c == null ? void 0 : c.path) === t);
|
|
520
|
-
return s.
|
|
528
|
+
return s.children && s.children.length > 0 ? {
|
|
521
529
|
...s,
|
|
522
|
-
renderButtons:
|
|
530
|
+
renderButtons: G(s, n),
|
|
523
531
|
checkedButtons: [],
|
|
524
|
-
children:
|
|
525
|
-
childMenus: W(s.childMenus, F.value)
|
|
532
|
+
children: Be(s.children, Se.value)
|
|
526
533
|
} : {
|
|
527
534
|
...s,
|
|
528
|
-
renderButtons:
|
|
535
|
+
renderButtons: G(s, n),
|
|
529
536
|
checkedButtons: []
|
|
530
537
|
};
|
|
531
538
|
});
|
|
532
|
-
},
|
|
539
|
+
}, ct = {
|
|
533
540
|
comp: "Group",
|
|
534
541
|
name: "/系统管理/角色管理",
|
|
535
542
|
compData: [
|
|
@@ -538,72 +545,71 @@ const F = O(() => {
|
|
|
538
545
|
contents: [
|
|
539
546
|
{
|
|
540
547
|
comp: "Table",
|
|
541
|
-
compData:
|
|
548
|
+
compData: ce.value,
|
|
542
549
|
name: ""
|
|
543
550
|
}
|
|
544
551
|
]
|
|
545
552
|
}
|
|
546
553
|
]
|
|
547
|
-
},
|
|
554
|
+
}, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
548
555
|
__proto__: null,
|
|
549
|
-
addButtonsToTree:
|
|
550
|
-
addPathToTree:
|
|
551
|
-
authorizeDialog:
|
|
552
|
-
buttonValue:
|
|
553
|
-
changedRow:
|
|
554
|
-
clickRow:
|
|
555
|
-
clickRowButton:
|
|
556
|
-
clickSubmitAuthority:
|
|
557
|
-
closeAuthorizeDialog:
|
|
558
|
-
compName:
|
|
559
|
-
convertArrayToTree:
|
|
560
|
-
convertIndexToLabel:
|
|
561
|
-
customNodeClass:
|
|
562
|
-
getActivePageStructureId:
|
|
563
|
-
getAuthorityKey:
|
|
564
|
-
getFirstArrayProperty:
|
|
565
|
-
getLeafNodesRecursive:
|
|
566
|
-
getPageDataAsync:
|
|
567
|
-
groupByField:
|
|
568
|
-
handleAddSysMenusButtons:
|
|
569
|
-
handleItemDataChange:
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
handleRowAuthorityRender: Ae,
|
|
556
|
+
addButtonsToTree: Be,
|
|
557
|
+
addPathToTree: F,
|
|
558
|
+
authorizeDialog: d,
|
|
559
|
+
buttonValue: xe,
|
|
560
|
+
changedRow: D,
|
|
561
|
+
clickRow: k,
|
|
562
|
+
clickRowButton: He,
|
|
563
|
+
clickSubmitAuthority: Ze,
|
|
564
|
+
closeAuthorizeDialog: Xe,
|
|
565
|
+
compName: oe,
|
|
566
|
+
convertArrayToTree: fe,
|
|
567
|
+
convertIndexToLabel: W,
|
|
568
|
+
customNodeClass: me,
|
|
569
|
+
getActivePageStructureId: et,
|
|
570
|
+
getAuthorityKey: ve,
|
|
571
|
+
getFirstArrayProperty: he,
|
|
572
|
+
getLeafNodesRecursive: pe,
|
|
573
|
+
getPageDataAsync: Ye,
|
|
574
|
+
groupByField: ye,
|
|
575
|
+
handleAddSysMenusButtons: at,
|
|
576
|
+
handleItemDataChange: _e,
|
|
577
|
+
handleNodeBtnChange: rt,
|
|
578
|
+
handleNodeCheckChange: st,
|
|
579
|
+
handleQueryChange: We,
|
|
580
|
+
handleRowAuthorityRender: ge,
|
|
575
581
|
handleSubmitAsync: P,
|
|
576
|
-
isPageDataExist:
|
|
582
|
+
isPageDataExist: Fe,
|
|
577
583
|
menuData: w,
|
|
578
|
-
menusButtons:
|
|
579
|
-
pageData:
|
|
580
|
-
pageDataFiltered:
|
|
581
|
-
queryFormData:
|
|
582
|
-
structureButtons:
|
|
583
|
-
structureId:
|
|
584
|
-
submitTableAsyncByVerify:
|
|
585
|
-
tempRolePageData:
|
|
586
|
-
tempSysMenus:
|
|
587
|
-
treeRef:
|
|
588
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
584
|
+
menusButtons: tt,
|
|
585
|
+
pageData: ce,
|
|
586
|
+
pageDataFiltered: Le,
|
|
587
|
+
queryFormData: je,
|
|
588
|
+
structureButtons: Se,
|
|
589
|
+
structureId: O,
|
|
590
|
+
submitTableAsyncByVerify: L,
|
|
591
|
+
tempRolePageData: ct,
|
|
592
|
+
tempSysMenus: nt,
|
|
593
|
+
treeRef: x
|
|
594
|
+
}, Symbol.toStringTag, { value: "Module" })), Ce = te(A), { superAdminInfo: lt, cryptoInfo: i } = C(Ce), ot = ee(A), { activeMenuPath: g } = C(ot), I = "123456", ut = re(A), { routerPageStructures: ht } = C(ut), _ = u(0), it = u([
|
|
589
595
|
{
|
|
590
596
|
label: "用户名称",
|
|
591
597
|
value: "",
|
|
592
598
|
name: "userName"
|
|
593
599
|
}
|
|
594
|
-
]),
|
|
600
|
+
]), T = R(() => {
|
|
595
601
|
const e = sessionStorage.getItem("isSuperAdmin");
|
|
596
602
|
return e ? JSON.parse(e) : !1;
|
|
597
|
-
}),
|
|
603
|
+
}), ft = (e) => {
|
|
598
604
|
console.log("handleQueryChange", e);
|
|
599
|
-
},
|
|
605
|
+
}, U = u([]), Ke = u(""), E = R(() => {
|
|
600
606
|
var r, s, t, n, a;
|
|
601
|
-
const e = (r =
|
|
607
|
+
const e = (r = ht.value) == null ? void 0 : r.find((l) => {
|
|
602
608
|
var c;
|
|
603
609
|
return ((c = l == null ? void 0 : l.comp) == null ? void 0 : c.toUpperCase()) === "TABLE";
|
|
604
610
|
});
|
|
605
611
|
if (e) {
|
|
606
|
-
|
|
612
|
+
Ke.value = e.name, U.value = (n = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : n.filter((c) => (c == null ? void 0 : c.label) !== "操作");
|
|
607
613
|
const l = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((c) => {
|
|
608
614
|
if ((c == null ? void 0 : c.key) === "rowButton") {
|
|
609
615
|
const o = [...c == null ? void 0 : c.contents, { label: "重置密码" }];
|
|
@@ -617,12 +623,12 @@ const F = O(() => {
|
|
|
617
623
|
return console.log(245, l), l;
|
|
618
624
|
}
|
|
619
625
|
return [];
|
|
620
|
-
}),
|
|
621
|
-
|
|
622
|
-
},
|
|
626
|
+
}), yt = (e) => {
|
|
627
|
+
z(e.singleContent, e.buttonName, _.value);
|
|
628
|
+
}, M = u(), pt = (e) => {
|
|
623
629
|
console.log("onDoubleClick", e);
|
|
624
|
-
},
|
|
625
|
-
e === "重置密码" &&
|
|
630
|
+
}, gt = (e, r) => {
|
|
631
|
+
e === "重置密码" && Ee.confirm(
|
|
626
632
|
`该操作将会重置【${r == null ? void 0 : r.account}】的密码,确认重置?`,
|
|
627
633
|
"警告",
|
|
628
634
|
{
|
|
@@ -631,17 +637,17 @@ const F = O(() => {
|
|
|
631
637
|
type: "warning"
|
|
632
638
|
}
|
|
633
639
|
).then(() => {
|
|
634
|
-
|
|
640
|
+
M.value = {
|
|
635
641
|
...r,
|
|
636
642
|
password: I
|
|
637
|
-
},
|
|
643
|
+
}, z(M.value, e, _.value);
|
|
638
644
|
}).catch(() => {
|
|
639
|
-
|
|
645
|
+
f.info("取消重置");
|
|
640
646
|
});
|
|
641
|
-
},
|
|
642
|
-
|
|
647
|
+
}, Pe = () => {
|
|
648
|
+
Te(g.value).then((e) => {
|
|
643
649
|
var s;
|
|
644
|
-
const r = Array.isArray(e) && (e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.account) !==
|
|
650
|
+
const r = Array.isArray(e) && (e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.account) !== lt.value.account));
|
|
645
651
|
E.value = (s = E.value) == null ? void 0 : s.map((t) => t.key === "tableContents" ? {
|
|
646
652
|
...t,
|
|
647
653
|
// 不显示超管
|
|
@@ -651,66 +657,66 @@ const F = O(() => {
|
|
|
651
657
|
...n,
|
|
652
658
|
// 登录用户是超管才给解密
|
|
653
659
|
// password: loginUserIsSuper.value ? decryptData(d?.password, cryptoInfo?.value?.privateKey) : d?.password
|
|
654
|
-
password:
|
|
660
|
+
password: se(n == null ? void 0 : n.password, (a = i == null ? void 0 : i.value) == null ? void 0 : a.privateKey)
|
|
655
661
|
};
|
|
656
662
|
})
|
|
657
663
|
} : t);
|
|
658
664
|
});
|
|
659
|
-
},
|
|
665
|
+
}, $ = async (e, r, s) => {
|
|
660
666
|
var t, n;
|
|
661
667
|
try {
|
|
662
668
|
const a = await e(r);
|
|
663
|
-
return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (s !== "查询" && await
|
|
669
|
+
return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (s !== "查询" && await Ce.setLogRecordAsync({
|
|
664
670
|
type: s,
|
|
665
671
|
data: r
|
|
666
|
-
},
|
|
672
|
+
}, g.value), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
|
|
667
673
|
} catch (a) {
|
|
668
|
-
|
|
674
|
+
f.error(a);
|
|
669
675
|
}
|
|
670
|
-
},
|
|
671
|
-
var a, l, c, o, h,
|
|
672
|
-
const t =
|
|
676
|
+
}, z = (e, r, s) => {
|
|
677
|
+
var a, l, c, o, h, y;
|
|
678
|
+
const t = N(e);
|
|
673
679
|
t != null && t.id && delete t.id;
|
|
674
|
-
const n =
|
|
675
|
-
|
|
680
|
+
const n = W(t, U.value);
|
|
681
|
+
Ie() && n && (!n.password && T.value ? n.password = V(I, (a = i == null ? void 0 : i.value) == null ? void 0 : a.publicKey) : n.password && T.value && (n.password = V(n == null ? void 0 : n.password, (l = i == null ? void 0 : i.value) == null ? void 0 : l.publicKey))), r === "新增" ? $(Y, {
|
|
676
682
|
key: {
|
|
677
683
|
type: "data",
|
|
678
684
|
layer: n == null ? void 0 : n.layer,
|
|
679
685
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
680
|
-
pageKey: (c =
|
|
686
|
+
pageKey: (c = g.value) != null && c.startsWith("/") ? (o = g.value) == null ? void 0 : o.substring(1) : g.value,
|
|
681
687
|
tableId: s
|
|
682
688
|
},
|
|
683
689
|
value: {
|
|
684
690
|
tableData: n
|
|
685
691
|
}
|
|
686
|
-
}, r).then((
|
|
692
|
+
}, r).then((p) => {
|
|
687
693
|
var v;
|
|
688
|
-
|
|
694
|
+
M.value = {
|
|
689
695
|
...e,
|
|
690
|
-
newId:
|
|
691
|
-
password:
|
|
692
|
-
}, r &&
|
|
693
|
-
}) : r === "编辑" || r === "重置密码" ?
|
|
696
|
+
newId: p,
|
|
697
|
+
password: T.value ? se((e == null ? void 0 : e.password) ?? I, (v = i == null ? void 0 : i.value) == null ? void 0 : v.privateKey) : e == null ? void 0 : e.password
|
|
698
|
+
}, r && p && f.success(r + "成功");
|
|
699
|
+
}) : r === "编辑" || r === "重置密码" ? $(Z, {
|
|
694
700
|
id: e.id,
|
|
695
701
|
key: {
|
|
696
702
|
type: "data",
|
|
697
703
|
layer: n == null ? void 0 : n.layer,
|
|
698
704
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
699
|
-
pageKey: (h =
|
|
705
|
+
pageKey: (h = g.value) != null && h.startsWith("/") ? (y = g.value) == null ? void 0 : y.substring(1) : g.value,
|
|
700
706
|
tableId: s
|
|
701
707
|
},
|
|
702
708
|
value: {
|
|
703
709
|
tableData: n
|
|
704
710
|
}
|
|
705
711
|
}, r).then(() => {
|
|
706
|
-
r === "重置密码" &&
|
|
707
|
-
}) : r === "删除" &&
|
|
712
|
+
r === "重置密码" && Pe(), r && f.success(r + "成功"), d.show = !1;
|
|
713
|
+
}) : r === "删除" && $(m, {
|
|
708
714
|
id: e.id
|
|
709
715
|
}, r).then(() => {
|
|
710
|
-
r &&
|
|
716
|
+
r && f.success(r + "成功");
|
|
711
717
|
});
|
|
712
|
-
},
|
|
713
|
-
const r = await
|
|
718
|
+
}, Te = async (e) => {
|
|
719
|
+
const r = await $(j, {
|
|
714
720
|
key: {
|
|
715
721
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
716
722
|
type: "data",
|
|
@@ -732,7 +738,7 @@ const F = O(() => {
|
|
|
732
738
|
id: t.id
|
|
733
739
|
};
|
|
734
740
|
});
|
|
735
|
-
},
|
|
741
|
+
}, vt = {
|
|
736
742
|
comp: "Group",
|
|
737
743
|
name: "/系统管理/用户管理",
|
|
738
744
|
compData: [
|
|
@@ -749,37 +755,37 @@ const F = O(() => {
|
|
|
749
755
|
]
|
|
750
756
|
}, Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
751
757
|
__proto__: null,
|
|
752
|
-
changedRow:
|
|
753
|
-
clickRowButton:
|
|
754
|
-
columns:
|
|
755
|
-
compName:
|
|
756
|
-
getPageDataAsync:
|
|
757
|
-
handleItemDataChange:
|
|
758
|
-
handleQueryChange:
|
|
759
|
-
handleSubmitAsync:
|
|
760
|
-
loginUserIsSuper:
|
|
758
|
+
changedRow: M,
|
|
759
|
+
clickRowButton: gt,
|
|
760
|
+
columns: U,
|
|
761
|
+
compName: Ke,
|
|
762
|
+
getPageDataAsync: Te,
|
|
763
|
+
handleItemDataChange: yt,
|
|
764
|
+
handleQueryChange: ft,
|
|
765
|
+
handleSubmitAsync: $,
|
|
766
|
+
loginUserIsSuper: T,
|
|
761
767
|
onDoubleClick: pt,
|
|
762
768
|
pageData: E,
|
|
763
|
-
queryFormData:
|
|
764
|
-
refreshUserTableData:
|
|
769
|
+
queryFormData: it,
|
|
770
|
+
refreshUserTableData: Pe,
|
|
765
771
|
resetPassword: I,
|
|
766
|
-
structureId:
|
|
767
|
-
submitTableAsyncByVerify:
|
|
768
|
-
tempUserPageData:
|
|
772
|
+
structureId: _,
|
|
773
|
+
submitTableAsyncByVerify: z,
|
|
774
|
+
tempUserPageData: vt
|
|
769
775
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
770
776
|
export {
|
|
771
777
|
Kt as S,
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
778
|
+
F as a,
|
|
779
|
+
pe as b,
|
|
780
|
+
fe as c,
|
|
781
|
+
ye as d,
|
|
782
|
+
Te as e,
|
|
783
|
+
$ as f,
|
|
784
|
+
he as g,
|
|
785
|
+
ge as h,
|
|
786
|
+
et as i,
|
|
787
|
+
Ct as j,
|
|
782
788
|
I as r,
|
|
783
|
-
|
|
784
|
-
|
|
789
|
+
z as s,
|
|
790
|
+
re as u
|
|
785
791
|
};
|