ss-component-new 1.1.641 → 1.1.643
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-VzXJcPjW.js → array-B8lWuPWk.js} +1 -1
- package/dist/{crypto-CRbcEKIz.cjs → crypto-DNSUM6-T.cjs} +11 -11
- package/dist/{crypto-BRyGpjGR.js → crypto-v3jAna0Y.js} +510 -383
- package/dist/index-B1zrlvmA.cjs +1 -0
- package/dist/{index-CmiV5XIf.cjs → index-B3Uwh6Xf.cjs} +1 -1
- package/dist/{index-C1wsQvWA.js → index-B3z_K4tN.js} +6 -6
- package/dist/{index-BSq1_igb.js → index-B98K3NQ_.js} +5 -5
- package/dist/{index-t5gEjDaU.cjs → index-BGU26U8N.cjs} +1 -1
- package/dist/index-BJOfcIfK.cjs +1 -0
- package/dist/{index-eFEWH0CT.cjs → index-BV7GMSHu.cjs} +1 -1
- package/dist/{index-CgBJhDgc.js → index-BXkdOTkd.js} +6 -6
- package/dist/index-BdSJGJAj.cjs +1 -0
- package/dist/index-BgOWcpJo.cjs +1 -0
- package/dist/index-BgjQ12lw.cjs +1 -0
- package/dist/index-Bjsc84L1.js +1357 -0
- package/dist/index-BtbXPos3.cjs +1 -0
- package/dist/index-C0YmHmRc.js +3295 -0
- package/dist/{index-B9JN6GiA.js → index-C90tv0Xl.js} +9 -10
- package/dist/index-CHDQYj9k.cjs +7 -0
- package/dist/{index-D-u3BBde.cjs → index-CUE8dRo3.cjs} +1 -1
- package/dist/{index-BdC8VdZV.js → index-Ce6cmWoK.js} +1 -1
- package/dist/{index-COe0AKmG.js → index-Cf8HSIB7.js} +9 -9
- package/dist/{index-DivndMew.js → index-CoO_L719.js} +1 -1
- package/dist/{index-Dtsb5A9W.cjs → index-Cq5FEQ8T.cjs} +1 -1
- package/dist/{index-bxA-k3D8.js → index-CstZeLoO.js} +4 -4
- package/dist/{index-BDUZPFuu.js → index-CzRn17aQ.js} +3 -3
- package/dist/{index-h3FJuBkM.js → index-D9rKJ22p.js} +24 -25
- package/dist/{index-BSItzZL7.cjs → index-DDZUeSoG.cjs} +1 -1
- package/dist/{index-BShB-8d9.js → index-DJq9wJbj.js} +6 -6
- package/dist/index-DYLTl0bA.cjs +4207 -0
- package/dist/{index-DIojadyo.js → index-DZOOs3JX.js} +5 -5
- package/dist/{index-DDkuhF7W.js → index-DaCmhrZN.js} +5 -5
- package/dist/{index-CZVc3Or_.cjs → index-DamR6g_M.cjs} +1 -1
- package/dist/{index-Crd7Dg0j.js → index-Dc9ujwGk.js} +1 -1
- package/dist/{index-BgVieMmq.js → index-DkuHB0rR.js} +6 -6
- package/dist/{index-PoFKTn5c.js → index-DnROsSAu.js} +1 -1
- package/dist/{index-DIEuoEuZ.js → index-Dv0m3N6o.js} +13688 -8591
- package/dist/{index-DKUyEy-O.cjs → index-H7RfjeN4.cjs} +1 -1
- package/dist/{index--7CXDWhp.js → index-S9mHFIiJ.js} +5 -6
- package/dist/{index-BMLnk4tK.js → index-TImrSuqA.js} +7 -7
- package/dist/{index-qJTvlSE4.cjs → index-Wq7SUf3w.cjs} +1 -1
- package/dist/{index-B3pzeaEn.cjs → index-XoLdZvmA.cjs} +1 -1
- package/dist/{index-BqT6FOpQ.cjs → index-j-6MQx0k.cjs} +1 -1
- package/dist/{index-CPIuib6Z.js → index-j_-9sdsj.js} +5 -5
- package/dist/{index--YE0I3eJ.cjs → index-yP9dxTXr.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BSHKpL3U.cjs → index.vue_vue_type_script_setup_true_lang-DPRs_TEM.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-zFnpYkL9.js → index.vue_vue_type_script_setup_true_lang-DmZ8M3M2.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Ds2Sv3Xv.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CLRx6Pr7.js} +6287 -6287
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CsM4kD2l.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-G9Ly6LrV.cjs} +100 -100
- package/dist/{index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-Cj4SDzVh.js → index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-Bx59UssX.js} +9761 -10107
- package/dist/{index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-CBmEjZ1W.cjs → index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-Cx257lrG.cjs} +13 -13
- package/dist/index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-BxhCfpJ1.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-CZw5zzDj.js → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-DnzbmtTR.js} +8 -8
- package/dist/{main-CuzsZxGq.js → main-B3z7cAFc.js} +5 -5
- package/dist/{main-Cm90V52F.cjs → main-Bytk3eJi.cjs} +1 -1
- package/dist/{menu-wif0xsml.js → menu-EkyEcRhA.js} +16 -16
- package/dist/{modelComp-CJ4sMWBs.js → modelComp-DocJQ-pY.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-B-xHjjGT.js → threeModel-8fmYfsGI.js} +62 -62
- package/dist/{threeModel-Bf9c_DS5.cjs → threeModel-DUi0i12h.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-1CHqDeCV.js +0 -1366
- package/dist/index-B4pwTIJ4.cjs +0 -1
- package/dist/index-BHxSsIXo.js +0 -2511
- package/dist/index-BK43_N9M.cjs +0 -1
- package/dist/index-B_G9Phpw.cjs +0 -1
- package/dist/index-BnN2rNsF.cjs +0 -1
- package/dist/index-CDe14QVc.cjs +0 -1
- package/dist/index-CLvHw6UB.cjs +0 -1
- package/dist/index-D8krRZ2d.cjs +0 -4207
- package/dist/index-DgSqC47C.cjs +0 -1
- package/dist/index-DiRkx0Jd.js +0 -4693
- package/dist/index-MSj62TUk.cjs +0 -7
- package/dist/index-xG5ojf2o.cjs +0 -1
- package/dist/index-zwRivr5J.js +0 -791
- package/dist/index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-CtgbucH4.cjs +0 -1
- package/dist/login-C7jVTvUQ.cjs +0 -1
- package/dist/login-wUTWXQ7u.js +0 -129
- 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-zwRivr5J.js
DELETED
|
@@ -1,791 +0,0 @@
|
|
|
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-wif0xsml.js";
|
|
3
|
-
import { u as te } from "./login-wUTWXQ7u.js";
|
|
4
|
-
import { u as De } from "./modelComp-CJ4sMWBs.js";
|
|
5
|
-
import { d as se, i as Ie, e as V } from "./crypto-BRyGpjGR.js";
|
|
6
|
-
import { E as Ee } from "./index-BHxSsIXo.js";
|
|
7
|
-
const re = we("authorityState", {
|
|
8
|
-
state: () => ({
|
|
9
|
-
routerPageStructures: []
|
|
10
|
-
}),
|
|
11
|
-
actions: {
|
|
12
|
-
setRouterPageStructure(e) {
|
|
13
|
-
this.routerPageStructures = e;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
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
|
-
{
|
|
18
|
-
label: "角色名称",
|
|
19
|
-
value: "",
|
|
20
|
-
name: "roleName"
|
|
21
|
-
}
|
|
22
|
-
]), xe = u([
|
|
23
|
-
{
|
|
24
|
-
label: "查询"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: "重置"
|
|
28
|
-
}
|
|
29
|
-
]), q = J({
|
|
30
|
-
isFilter: !1,
|
|
31
|
-
filterForm: {}
|
|
32
|
-
}), Fe = u(!1), We = (e) => {
|
|
33
|
-
q.isFilter = !0, q.filterForm = e;
|
|
34
|
-
}, ce = u([
|
|
35
|
-
// {
|
|
36
|
-
// key: "extraButton",
|
|
37
|
-
// contents: [
|
|
38
|
-
// {
|
|
39
|
-
// label: "新增"
|
|
40
|
-
// }
|
|
41
|
-
// ]
|
|
42
|
-
// },
|
|
43
|
-
// {
|
|
44
|
-
// key: "rowButton",
|
|
45
|
-
// contents: [
|
|
46
|
-
// {
|
|
47
|
-
// label: "授权",
|
|
48
|
-
// textColor: `blue`
|
|
49
|
-
// }, {
|
|
50
|
-
// label: "编辑"
|
|
51
|
-
// },
|
|
52
|
-
// {
|
|
53
|
-
// label: "删除",
|
|
54
|
-
// textColor: 'red'
|
|
55
|
-
// }
|
|
56
|
-
// ]
|
|
57
|
-
// },
|
|
58
|
-
// // {
|
|
59
|
-
// // key: "tableIndex",
|
|
60
|
-
// // contents: []
|
|
61
|
-
// // },
|
|
62
|
-
// {
|
|
63
|
-
// key: "header",
|
|
64
|
-
// contents: [
|
|
65
|
-
// {
|
|
66
|
-
// label: "角色名称",
|
|
67
|
-
// prop: 'roleName'
|
|
68
|
-
// },
|
|
69
|
-
// {
|
|
70
|
-
// label: "角色状态",
|
|
71
|
-
// formType: 'Radio',
|
|
72
|
-
// prop: 'roleStatus',
|
|
73
|
-
// options: [
|
|
74
|
-
// {
|
|
75
|
-
// label: "启用",
|
|
76
|
-
// value: "启用"
|
|
77
|
-
// },
|
|
78
|
-
// {
|
|
79
|
-
// label: "禁用",
|
|
80
|
-
// value: "禁用"
|
|
81
|
-
// }
|
|
82
|
-
// ]
|
|
83
|
-
// },
|
|
84
|
-
// {
|
|
85
|
-
// label: "角色排序",
|
|
86
|
-
// prop: 'roleOrder',
|
|
87
|
-
// formType: 'Number',
|
|
88
|
-
// }, {
|
|
89
|
-
// label: "备注",
|
|
90
|
-
// prop: 'remark',
|
|
91
|
-
// formType: 'TextArea',
|
|
92
|
-
// }, {
|
|
93
|
-
// label: "权限",
|
|
94
|
-
// prop: 'roleAuthority',
|
|
95
|
-
// isTableColHidden: true,
|
|
96
|
-
// isFormColHidden: true,
|
|
97
|
-
// },
|
|
98
|
-
// {
|
|
99
|
-
// label: "操作"
|
|
100
|
-
// }
|
|
101
|
-
// ]
|
|
102
|
-
// },
|
|
103
|
-
// {
|
|
104
|
-
// key: "tableContents",
|
|
105
|
-
// contents: []
|
|
106
|
-
// // contents: [
|
|
107
|
-
// // [
|
|
108
|
-
// // "超级管理员",
|
|
109
|
-
// // "启动",
|
|
110
|
-
// // 1,
|
|
111
|
-
// // []
|
|
112
|
-
// // // ['元元模型/系统/查询', '元元模型/系统/新增', '元元模型/系统/编辑']
|
|
113
|
-
// // ], [
|
|
114
|
-
// // "普通管理员",
|
|
115
|
-
// // "启动",
|
|
116
|
-
// // 2,
|
|
117
|
-
// // []
|
|
118
|
-
// // // ['元元模型/系统/查询', '元元模型/系统/新增', '元元模型/系统/编辑']
|
|
119
|
-
// // ],
|
|
120
|
-
// // ]
|
|
121
|
-
// }
|
|
122
|
-
]), le = u([]), oe = u(""), Le = R(() => {
|
|
123
|
-
var r, s, t, n, a;
|
|
124
|
-
const e = (r = Oe.value) == null ? void 0 : r.find((l) => {
|
|
125
|
-
var c;
|
|
126
|
-
return ((c = l == null ? void 0 : l.comp) == null ? void 0 : c.toUpperCase()) === "TABLE";
|
|
127
|
-
});
|
|
128
|
-
if (e) {
|
|
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
|
-
const l = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((c) => {
|
|
131
|
-
if ((c == null ? void 0 : c.key) === "rowButton") {
|
|
132
|
-
let o = [];
|
|
133
|
-
return T.value ? o = [...c == null ? void 0 : c.contents, { label: "授权" }] : o = c == null ? void 0 : c.contents, {
|
|
134
|
-
...c,
|
|
135
|
-
contents: o
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
return c;
|
|
139
|
-
});
|
|
140
|
-
return ve(l), l;
|
|
141
|
-
}
|
|
142
|
-
return [];
|
|
143
|
-
}), _e = (e) => {
|
|
144
|
-
L(e.singleContent, e.buttonName, O.value);
|
|
145
|
-
}, k = u({}), x = u(), P = async (e, r, s) => {
|
|
146
|
-
var t, n;
|
|
147
|
-
try {
|
|
148
|
-
const a = await e(r);
|
|
149
|
-
return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (s !== "查询" && await ne.setLogRecordAsync({
|
|
150
|
-
type: s,
|
|
151
|
-
data: r
|
|
152
|
-
}, b.value), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
|
|
153
|
-
} catch (a) {
|
|
154
|
-
f.error(a);
|
|
155
|
-
}
|
|
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) => {
|
|
165
|
-
var t;
|
|
166
|
-
const s = {
|
|
167
|
-
...r,
|
|
168
|
-
checkedButtons: []
|
|
169
|
-
};
|
|
170
|
-
return s.children && ((t = s.children) == null ? void 0 : t.length) > 0 && (s.children = ue(s.children)), s;
|
|
171
|
-
}), he = (e) => {
|
|
172
|
-
for (const r in e)
|
|
173
|
-
if (Array.isArray(e[r]))
|
|
174
|
-
return r;
|
|
175
|
-
return "";
|
|
176
|
-
}, ie = (e) => {
|
|
177
|
-
const r = [];
|
|
178
|
-
let s = 0;
|
|
179
|
-
for (; s < e.length; )
|
|
180
|
-
if (typeof e[s] == "string") {
|
|
181
|
-
const t = { title: e[s] };
|
|
182
|
-
s + 1 < e.length && Array.isArray(e[s + 1]) ? (t.children = ie(e[s + 1]), s += 2) : s += 1, r.push(t);
|
|
183
|
-
}
|
|
184
|
-
return r;
|
|
185
|
-
}, fe = (e) => {
|
|
186
|
-
const r = [];
|
|
187
|
-
let s = 0;
|
|
188
|
-
for (; s < (e == null ? void 0 : e.length); ) {
|
|
189
|
-
const t = { title: e == null ? void 0 : e[s] };
|
|
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);
|
|
191
|
-
}
|
|
192
|
-
return r;
|
|
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
|
|
200
|
-
};
|
|
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) => {
|
|
203
|
-
const n = t[r];
|
|
204
|
-
return s[n] || (s[n] = []), s[n].push(t), s;
|
|
205
|
-
}, {}), pe = (e) => {
|
|
206
|
-
const r = [];
|
|
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));
|
|
212
|
-
}
|
|
213
|
-
return e.forEach((t) => s(t, "")), r;
|
|
214
|
-
}, ge = (e) => Object.entries(e).map(([s, t]) => ({
|
|
215
|
-
path: s,
|
|
216
|
-
checkedButtons: t == null ? void 0 : t.map((n) => n == null ? void 0 : n.path)
|
|
217
|
-
})), ze = (e) => Object.prototype.toString.call(e) === "[object Object]" && e !== null, Qe = (e) => {
|
|
218
|
-
const r = {}, s = Array.isArray(e) ? e == null ? void 0 : e.filter((t) => {
|
|
219
|
-
var n;
|
|
220
|
-
return !(ze(t) && ((n = Object.keys(t)) != null && n.includes("id")));
|
|
221
|
-
}) : null;
|
|
222
|
-
return s && (s == null || s.forEach((t, n) => {
|
|
223
|
-
if (n <= 0) return;
|
|
224
|
-
const a = `a${n}`;
|
|
225
|
-
r[a] = t;
|
|
226
|
-
})), r;
|
|
227
|
-
}, S = u(""), ve = (e) => {
|
|
228
|
-
var n;
|
|
229
|
-
const r = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.key) === "tableContents");
|
|
230
|
-
if (!r) return "";
|
|
231
|
-
const s = (n = r == null ? void 0 : r.contents) == null ? void 0 : n[0], t = Qe(s);
|
|
232
|
-
S.value = he(t);
|
|
233
|
-
}, Ve = (e) => {
|
|
234
|
-
if (!Array.isArray(e))
|
|
235
|
-
return !1;
|
|
236
|
-
for (let r of e) {
|
|
237
|
-
if (typeof r != "object" || r === null || typeof r.path != "string" || !Array.isArray(r.checkedButtons))
|
|
238
|
-
return !1;
|
|
239
|
-
for (let s of r.checkedButtons)
|
|
240
|
-
if (typeof s != "string")
|
|
241
|
-
return !1;
|
|
242
|
-
}
|
|
243
|
-
return !0;
|
|
244
|
-
}, qe = (e) => {
|
|
245
|
-
const r = [];
|
|
246
|
-
for (const s in e)
|
|
247
|
-
e[s].forEach((n) => {
|
|
248
|
-
var o, h;
|
|
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("/");
|
|
250
|
-
let c = r;
|
|
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;
|
|
254
|
-
});
|
|
255
|
-
});
|
|
256
|
-
return r;
|
|
257
|
-
}, Ge = (e) => {
|
|
258
|
-
const r = {};
|
|
259
|
-
return e.forEach((s) => {
|
|
260
|
-
const { path: t, checkedButtons: n } = s, a = t, l = n.map((c) => ({
|
|
261
|
-
title: c.split("/").pop() || "",
|
|
262
|
-
path: c,
|
|
263
|
-
parentPath: a
|
|
264
|
-
}));
|
|
265
|
-
r[a] = l;
|
|
266
|
-
}), r;
|
|
267
|
-
}, be = (e) => {
|
|
268
|
-
let r = [];
|
|
269
|
-
for (const s of e) {
|
|
270
|
-
let t = [s.title];
|
|
271
|
-
if (s.children && Array.isArray(s.children)) {
|
|
272
|
-
let n = be(s.children);
|
|
273
|
-
n.length > 0 && t.push(n);
|
|
274
|
-
}
|
|
275
|
-
r.push(t);
|
|
276
|
-
}
|
|
277
|
-
return r;
|
|
278
|
-
}, Je = (e) => {
|
|
279
|
-
const r = [];
|
|
280
|
-
for (const s of e) {
|
|
281
|
-
if (!Array.isArray(s) || s.length !== 2) continue;
|
|
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);
|
|
284
|
-
}
|
|
285
|
-
return r;
|
|
286
|
-
}, de = (e) => {
|
|
287
|
-
const r = [];
|
|
288
|
-
for (const s of e)
|
|
289
|
-
if (Array.isArray(s)) {
|
|
290
|
-
if (s.length === 1 && typeof s[0] == "string")
|
|
291
|
-
r.push(s[0]);
|
|
292
|
-
else if (s.length === 2 && typeof s[0] == "string") {
|
|
293
|
-
const [t, n] = s;
|
|
294
|
-
r.push(t, de(n));
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
return r;
|
|
298
|
-
}, Ae = (e, r) => {
|
|
299
|
-
const s = [...e];
|
|
300
|
-
let t = 0;
|
|
301
|
-
for (; t < r.length; ) {
|
|
302
|
-
const n = r[t];
|
|
303
|
-
if (typeof n == "string") {
|
|
304
|
-
const a = s.indexOf(n);
|
|
305
|
-
a === -1 ? s.push(n, r[t + 1]) : s[a + 1] = Ae(s[a + 1], r[t + 1]), t += 2;
|
|
306
|
-
} else
|
|
307
|
-
s.push(n), t += 1;
|
|
308
|
-
}
|
|
309
|
-
return s;
|
|
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("请正确定义角色权限");
|
|
315
|
-
return;
|
|
316
|
-
}
|
|
317
|
-
const n = Ve(k.value[S.value]);
|
|
318
|
-
let a;
|
|
319
|
-
if (n)
|
|
320
|
-
a = k.value[S.value];
|
|
321
|
-
else {
|
|
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;
|
|
328
|
-
}
|
|
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);
|
|
332
|
-
}
|
|
333
|
-
}, Xe = () => {
|
|
334
|
-
d.show = !1;
|
|
335
|
-
}, D = u(), Ye = async (e) => {
|
|
336
|
-
const r = await P(j, {
|
|
337
|
-
key: {
|
|
338
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
339
|
-
type: "data",
|
|
340
|
-
pageKey: e
|
|
341
|
-
}
|
|
342
|
-
}, "查询"), s = r == null ? void 0 : r.map((t) => {
|
|
343
|
-
var n;
|
|
344
|
-
return {
|
|
345
|
-
id: t.id,
|
|
346
|
-
tableData: (n = t == null ? void 0 : t.value) == null ? void 0 : n.tableData
|
|
347
|
-
};
|
|
348
|
-
});
|
|
349
|
-
return s == null ? void 0 : s.map((t) => {
|
|
350
|
-
var n;
|
|
351
|
-
if (Array.isArray(t == null ? void 0 : t.tableData)) {
|
|
352
|
-
let a = { id: t.id };
|
|
353
|
-
return (n = t == null ? void 0 : t.tableData) == null || n.forEach((l, c) => {
|
|
354
|
-
a[`a${c}`] = l;
|
|
355
|
-
}), a;
|
|
356
|
-
} else
|
|
357
|
-
return {
|
|
358
|
-
...t.tableData,
|
|
359
|
-
id: t.id
|
|
360
|
-
};
|
|
361
|
-
});
|
|
362
|
-
}, W = (e, r) => {
|
|
363
|
-
let s = {};
|
|
364
|
-
return r == null || r.forEach((t, n) => {
|
|
365
|
-
t.label && e && (s[t.label] = (e == null ? void 0 : e[`a${n}`]) ?? null);
|
|
366
|
-
}), s;
|
|
367
|
-
}, L = (e, r, s) => {
|
|
368
|
-
var a, l, c, o;
|
|
369
|
-
const t = N(e);
|
|
370
|
-
t != null && t.id && delete t.id;
|
|
371
|
-
const n = W(t, le.value);
|
|
372
|
-
r === "新增" ? P(Y, {
|
|
373
|
-
key: {
|
|
374
|
-
type: "data",
|
|
375
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
376
|
-
pageKey: (a = b.value) != null && a.startsWith("/") ? (l = b.value) == null ? void 0 : l.substring(1) : b.value,
|
|
377
|
-
tableId: s
|
|
378
|
-
},
|
|
379
|
-
value: {
|
|
380
|
-
tableData: n
|
|
381
|
-
}
|
|
382
|
-
}, r).then((h) => {
|
|
383
|
-
D.value = {
|
|
384
|
-
...e,
|
|
385
|
-
newId: h
|
|
386
|
-
}, r && h && f.success(r + "成功");
|
|
387
|
-
}) : r === "编辑" ? P(Z, {
|
|
388
|
-
id: e.id,
|
|
389
|
-
key: {
|
|
390
|
-
type: "data",
|
|
391
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
392
|
-
pageKey: (c = b.value) != null && c.startsWith("/") ? (o = b.value) == null ? void 0 : o.substring(1) : b.value,
|
|
393
|
-
tableId: s
|
|
394
|
-
},
|
|
395
|
-
value: {
|
|
396
|
-
tableData: n
|
|
397
|
-
}
|
|
398
|
-
}, r).then((h) => {
|
|
399
|
-
r && h && f.success(r + "成功"), d.show = !1;
|
|
400
|
-
}) : r === "删除" && P(m, {
|
|
401
|
-
id: e.id
|
|
402
|
-
}, r).then((h) => {
|
|
403
|
-
r && h && f.success(r + "成功");
|
|
404
|
-
}), ae.setRefreshCurStructure(!0);
|
|
405
|
-
}, ke = (e) => {
|
|
406
|
-
let r = [];
|
|
407
|
-
return e == null || e.forEach((s) => {
|
|
408
|
-
var t;
|
|
409
|
-
if (s.checkedButtons && ((t = s.checkedButtons) == null ? void 0 : t.length) > 0) {
|
|
410
|
-
const n = {
|
|
411
|
-
path: s.path,
|
|
412
|
-
checkedButtons: s.checkedButtons
|
|
413
|
-
// isCheckedAll: node.checkedButtons?.length === node.renderButtons?.length
|
|
414
|
-
};
|
|
415
|
-
r = r.concat(n);
|
|
416
|
-
}
|
|
417
|
-
s.children && (r = r.concat(ke(s.children)));
|
|
418
|
-
}), r;
|
|
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,
|
|
423
|
-
// roleAuthority: extractCheckedButtonPaths(menuData.value)
|
|
424
|
-
// ['a' + authorityIndex]: checkedKeys
|
|
425
|
-
// todo 模型驱动
|
|
426
|
-
[S.value]: n
|
|
427
|
-
}, H(() => {
|
|
428
|
-
L(D.value, "编辑", O.value);
|
|
429
|
-
});
|
|
430
|
-
}, d = J({
|
|
431
|
-
show: !1,
|
|
432
|
-
title: "角色授权",
|
|
433
|
-
width: "35%",
|
|
434
|
-
draggable: !0
|
|
435
|
-
}), me = ({ isPenultimate: e }, r) => {
|
|
436
|
-
var s, t;
|
|
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" : "";
|
|
438
|
-
}, O = u(0), et = async (e) => {
|
|
439
|
-
var t, n, a, l, c;
|
|
440
|
-
let r;
|
|
441
|
-
const s = await j({
|
|
442
|
-
key: {
|
|
443
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
444
|
-
type: "structure",
|
|
445
|
-
// 路由页面路径前缀会有/,但存储数据或获取数据时是要过滤掉/
|
|
446
|
-
pageKey: e != null && e.startsWith("/") ? e == null ? void 0 : e.substring(1) : e
|
|
447
|
-
}
|
|
448
|
-
});
|
|
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([
|
|
451
|
-
{
|
|
452
|
-
path: "资源管理",
|
|
453
|
-
buttons: ["查询", "新增", "编辑", "删除"]
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
path: "资源管理/人员",
|
|
457
|
-
buttons: ["查询", "新增", "编辑", "删除"]
|
|
458
|
-
}
|
|
459
|
-
]), st = (e, r) => {
|
|
460
|
-
var s;
|
|
461
|
-
e.checkedButtons = r ? (s = e.renderButtons) == null ? void 0 : s.map((t) => t.path) : [];
|
|
462
|
-
}, B = u([]), rt = (e, r) => {
|
|
463
|
-
var s, t, n;
|
|
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));
|
|
465
|
-
};
|
|
466
|
-
X(() => B.value.length, () => {
|
|
467
|
-
var e;
|
|
468
|
-
(e = x.value) == null || e.setCheckedKeys([...B.value]);
|
|
469
|
-
});
|
|
470
|
-
X(() => d.show, (e) => {
|
|
471
|
-
e || (w.value = ue(w.value));
|
|
472
|
-
});
|
|
473
|
-
const Se = R(() => {
|
|
474
|
-
var s;
|
|
475
|
-
const e = (s = N(Re.value)) == null ? void 0 : s.filter((t) => {
|
|
476
|
-
var n, a;
|
|
477
|
-
return ((a = (n = t == null ? void 0 : t.key) == null ? void 0 : n.pageKey) == null ? void 0 : a.toUpperCase()) !== "MENU";
|
|
478
|
-
});
|
|
479
|
-
return e == null ? void 0 : e.map((t) => {
|
|
480
|
-
var l, c, o, h, y, p, v, Q;
|
|
481
|
-
const n = /button/i;
|
|
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));
|
|
483
|
-
return a = Array.from(
|
|
484
|
-
new Set(a == null ? void 0 : a.flatMap((K) => K.contents.map(($e) => $e.label)))
|
|
485
|
-
), {
|
|
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,
|
|
487
|
-
buttons: a
|
|
488
|
-
};
|
|
489
|
-
});
|
|
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);
|
|
492
|
-
return s == null ? void 0 : s.map((t) => {
|
|
493
|
-
var n, a;
|
|
494
|
-
return {
|
|
495
|
-
path: (n = t == null ? void 0 : t.path) != null && n.startsWith("/") ? (a = t == null ? void 0 : t.path) == null ? void 0 : a.substring(1) : t.path,
|
|
496
|
-
// buttons: item?.path === '/系统管理/个人中心' ? ['基本信息', '上传头像', '签名', '修改密码'] : ['新增', '查看', '编辑', '删除']
|
|
497
|
-
buttons: ["新增", "查看", "编辑", "删除"]
|
|
498
|
-
};
|
|
499
|
-
});
|
|
500
|
-
}, G = (e, r) => {
|
|
501
|
-
var s;
|
|
502
|
-
if (e.carryData) {
|
|
503
|
-
if (e.path === "系统管理/个人中心") {
|
|
504
|
-
const t = ["基本信息", "上传头像", "签名", "修改密码"];
|
|
505
|
-
return t == null ? void 0 : t.map((n) => {
|
|
506
|
-
var a, l;
|
|
507
|
-
return {
|
|
508
|
-
title: n,
|
|
509
|
-
path: (a = e == null ? void 0 : e.path) != null && a.startsWith("/") ? ((l = e == null ? void 0 : e.path) == null ? void 0 : l.substring(1)) + "/" + n : e.path + "/" + n
|
|
510
|
-
};
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
return (s = r == null ? void 0 : r.buttons) == null ? void 0 : s.map((t) => {
|
|
514
|
-
var n, a;
|
|
515
|
-
return {
|
|
516
|
-
title: t,
|
|
517
|
-
// path: node.path + '/' + button
|
|
518
|
-
path: (n = e == null ? void 0 : e.path) != null && n.startsWith("/") ? ((a = e == null ? void 0 : e.path) == null ? void 0 : a.substring(1)) + "/" + t : e.path + "/" + t
|
|
519
|
-
};
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
return [];
|
|
523
|
-
}, Be = (e, r) => {
|
|
524
|
-
if (Array.isArray(e))
|
|
525
|
-
return e == null ? void 0 : e.map((s) => {
|
|
526
|
-
var a, l;
|
|
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);
|
|
528
|
-
return s.children && s.children.length > 0 ? {
|
|
529
|
-
...s,
|
|
530
|
-
renderButtons: G(s, n),
|
|
531
|
-
checkedButtons: [],
|
|
532
|
-
children: Be(s.children, Se.value)
|
|
533
|
-
} : {
|
|
534
|
-
...s,
|
|
535
|
-
renderButtons: G(s, n),
|
|
536
|
-
checkedButtons: []
|
|
537
|
-
};
|
|
538
|
-
});
|
|
539
|
-
}, ct = {
|
|
540
|
-
comp: "Group",
|
|
541
|
-
name: "/系统管理/角色管理",
|
|
542
|
-
compData: [
|
|
543
|
-
{
|
|
544
|
-
key: "groupContents",
|
|
545
|
-
contents: [
|
|
546
|
-
{
|
|
547
|
-
comp: "Table",
|
|
548
|
-
compData: ce.value,
|
|
549
|
-
name: ""
|
|
550
|
-
}
|
|
551
|
-
]
|
|
552
|
-
}
|
|
553
|
-
]
|
|
554
|
-
}, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
555
|
-
__proto__: null,
|
|
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,
|
|
581
|
-
handleSubmitAsync: P,
|
|
582
|
-
isPageDataExist: Fe,
|
|
583
|
-
menuData: w,
|
|
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([
|
|
595
|
-
{
|
|
596
|
-
label: "用户名称",
|
|
597
|
-
value: "",
|
|
598
|
-
name: "userName"
|
|
599
|
-
}
|
|
600
|
-
]), T = R(() => {
|
|
601
|
-
const e = sessionStorage.getItem("isSuperAdmin");
|
|
602
|
-
return e ? JSON.parse(e) : !1;
|
|
603
|
-
}), ft = (e) => {
|
|
604
|
-
console.log("handleQueryChange", e);
|
|
605
|
-
}, U = u([]), Ke = u(""), E = R(() => {
|
|
606
|
-
var r, s, t, n, a;
|
|
607
|
-
const e = (r = ht.value) == null ? void 0 : r.find((l) => {
|
|
608
|
-
var c;
|
|
609
|
-
return ((c = l == null ? void 0 : l.comp) == null ? void 0 : c.toUpperCase()) === "TABLE";
|
|
610
|
-
});
|
|
611
|
-
if (e) {
|
|
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) !== "操作");
|
|
613
|
-
const l = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((c) => {
|
|
614
|
-
if ((c == null ? void 0 : c.key) === "rowButton") {
|
|
615
|
-
const o = [...c == null ? void 0 : c.contents, { label: "重置密码" }];
|
|
616
|
-
return {
|
|
617
|
-
...c,
|
|
618
|
-
contents: o
|
|
619
|
-
};
|
|
620
|
-
}
|
|
621
|
-
return c;
|
|
622
|
-
});
|
|
623
|
-
return console.log(245, l), l;
|
|
624
|
-
}
|
|
625
|
-
return [];
|
|
626
|
-
}), yt = (e) => {
|
|
627
|
-
z(e.singleContent, e.buttonName, _.value);
|
|
628
|
-
}, M = u(), pt = (e) => {
|
|
629
|
-
console.log("onDoubleClick", e);
|
|
630
|
-
}, gt = (e, r) => {
|
|
631
|
-
e === "重置密码" && Ee.confirm(
|
|
632
|
-
`该操作将会重置【${r == null ? void 0 : r.account}】的密码,确认重置?`,
|
|
633
|
-
"警告",
|
|
634
|
-
{
|
|
635
|
-
confirmButtonText: "确认",
|
|
636
|
-
cancelButtonText: "取消",
|
|
637
|
-
type: "warning"
|
|
638
|
-
}
|
|
639
|
-
).then(() => {
|
|
640
|
-
M.value = {
|
|
641
|
-
...r,
|
|
642
|
-
password: I
|
|
643
|
-
}, z(M.value, e, _.value);
|
|
644
|
-
}).catch(() => {
|
|
645
|
-
f.info("取消重置");
|
|
646
|
-
});
|
|
647
|
-
}, Pe = () => {
|
|
648
|
-
Te(g.value).then((e) => {
|
|
649
|
-
var s;
|
|
650
|
-
const r = Array.isArray(e) && (e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.account) !== lt.value.account));
|
|
651
|
-
E.value = (s = E.value) == null ? void 0 : s.map((t) => t.key === "tableContents" ? {
|
|
652
|
-
...t,
|
|
653
|
-
// 不显示超管
|
|
654
|
-
contents: r == null ? void 0 : r.map((n) => {
|
|
655
|
-
var a;
|
|
656
|
-
return {
|
|
657
|
-
...n,
|
|
658
|
-
// 登录用户是超管才给解密
|
|
659
|
-
// password: loginUserIsSuper.value ? decryptData(d?.password, cryptoInfo?.value?.privateKey) : d?.password
|
|
660
|
-
password: se(n == null ? void 0 : n.password, (a = i == null ? void 0 : i.value) == null ? void 0 : a.privateKey)
|
|
661
|
-
};
|
|
662
|
-
})
|
|
663
|
-
} : t);
|
|
664
|
-
});
|
|
665
|
-
}, $ = async (e, r, s) => {
|
|
666
|
-
var t, n;
|
|
667
|
-
try {
|
|
668
|
-
const a = await e(r);
|
|
669
|
-
return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (s !== "查询" && await Ce.setLogRecordAsync({
|
|
670
|
-
type: s,
|
|
671
|
-
data: r
|
|
672
|
-
}, g.value), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
|
|
673
|
-
} catch (a) {
|
|
674
|
-
f.error(a);
|
|
675
|
-
}
|
|
676
|
-
}, z = (e, r, s) => {
|
|
677
|
-
var a, l, c, o, h, y;
|
|
678
|
-
const t = N(e);
|
|
679
|
-
t != null && t.id && delete t.id;
|
|
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, {
|
|
682
|
-
key: {
|
|
683
|
-
type: "data",
|
|
684
|
-
layer: n == null ? void 0 : n.layer,
|
|
685
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
686
|
-
pageKey: (c = g.value) != null && c.startsWith("/") ? (o = g.value) == null ? void 0 : o.substring(1) : g.value,
|
|
687
|
-
tableId: s
|
|
688
|
-
},
|
|
689
|
-
value: {
|
|
690
|
-
tableData: n
|
|
691
|
-
}
|
|
692
|
-
}, r).then((p) => {
|
|
693
|
-
var v;
|
|
694
|
-
M.value = {
|
|
695
|
-
...e,
|
|
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, {
|
|
700
|
-
id: e.id,
|
|
701
|
-
key: {
|
|
702
|
-
type: "data",
|
|
703
|
-
layer: n == null ? void 0 : n.layer,
|
|
704
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
705
|
-
pageKey: (h = g.value) != null && h.startsWith("/") ? (y = g.value) == null ? void 0 : y.substring(1) : g.value,
|
|
706
|
-
tableId: s
|
|
707
|
-
},
|
|
708
|
-
value: {
|
|
709
|
-
tableData: n
|
|
710
|
-
}
|
|
711
|
-
}, r).then(() => {
|
|
712
|
-
r === "重置密码" && Pe(), r && f.success(r + "成功"), d.show = !1;
|
|
713
|
-
}) : r === "删除" && $(m, {
|
|
714
|
-
id: e.id
|
|
715
|
-
}, r).then(() => {
|
|
716
|
-
r && f.success(r + "成功");
|
|
717
|
-
});
|
|
718
|
-
}, Te = async (e) => {
|
|
719
|
-
const r = await $(j, {
|
|
720
|
-
key: {
|
|
721
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
722
|
-
type: "data",
|
|
723
|
-
pageKey: e
|
|
724
|
-
}
|
|
725
|
-
}, "查询"), s = r == null ? void 0 : r.map((t) => {
|
|
726
|
-
var n, a;
|
|
727
|
-
return {
|
|
728
|
-
id: t.id,
|
|
729
|
-
layer: (n = t.key) == null ? void 0 : n.layer,
|
|
730
|
-
tableData: (a = t == null ? void 0 : t.value) == null ? void 0 : a.tableData
|
|
731
|
-
};
|
|
732
|
-
});
|
|
733
|
-
return s == null ? void 0 : s.map((t) => {
|
|
734
|
-
var n;
|
|
735
|
-
if (!Array.isArray(t == null ? void 0 : t.tableData)) return {
|
|
736
|
-
...t.tableData,
|
|
737
|
-
layer: (n = t.key) == null ? void 0 : n.layer,
|
|
738
|
-
id: t.id
|
|
739
|
-
};
|
|
740
|
-
});
|
|
741
|
-
}, vt = {
|
|
742
|
-
comp: "Group",
|
|
743
|
-
name: "/系统管理/用户管理",
|
|
744
|
-
compData: [
|
|
745
|
-
{
|
|
746
|
-
key: "groupContents",
|
|
747
|
-
contents: [
|
|
748
|
-
{
|
|
749
|
-
comp: "Table",
|
|
750
|
-
compData: E.value,
|
|
751
|
-
name: ""
|
|
752
|
-
}
|
|
753
|
-
]
|
|
754
|
-
}
|
|
755
|
-
]
|
|
756
|
-
}, Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
757
|
-
__proto__: null,
|
|
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,
|
|
767
|
-
onDoubleClick: pt,
|
|
768
|
-
pageData: E,
|
|
769
|
-
queryFormData: it,
|
|
770
|
-
refreshUserTableData: Pe,
|
|
771
|
-
resetPassword: I,
|
|
772
|
-
structureId: _,
|
|
773
|
-
submitTableAsyncByVerify: z,
|
|
774
|
-
tempUserPageData: vt
|
|
775
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
776
|
-
export {
|
|
777
|
-
Kt as S,
|
|
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,
|
|
788
|
-
I as r,
|
|
789
|
-
z as s,
|
|
790
|
-
re as u
|
|
791
|
-
};
|