ss-component-new 1.1.729 → 1.1.730
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-DvKDOIGB.js → array-Chq56wY-.js} +1 -1
- package/dist/{array-CU_OZlOe.cjs → array-urs2YM9W.cjs} +1 -1
- package/dist/{index-DseGoh_s.js → index--OiS672d.js} +315 -289
- package/dist/{index-jyMi9q-0.js → index-B-DZgyTe.js} +6 -6
- package/dist/{index-DIkHqhPG.js → index-B-NNykYn.js} +580 -506
- package/dist/{index-BkJD7I2W.js → index-B0LTdJlU.js} +2 -2
- package/dist/{index-BJoAo4eR.js → index-BANcWFX4.js} +3 -3
- package/dist/{index-CfhtlRJh.cjs → index-BF2AID8M.cjs} +1 -1
- package/dist/{index-5xG1mLNc.js → index-BIzz2S2T.js} +3 -3
- package/dist/{index-CTZvW8Fg.cjs → index-BJY6k2v6.cjs} +12 -12
- package/dist/{index-1AJPd78t.cjs → index-BLMCHl98.cjs} +1 -1
- package/dist/{index-D3uzrMDn.js → index-BMan7fYQ.js} +9 -9
- package/dist/{index-BUh0LsYj.js → index-BP6Mj3YQ.js} +11346 -9341
- package/dist/{index-Dw_5h9yW.cjs → index-BVGMndWJ.cjs} +1 -1
- package/dist/{index-CANwR7cK.js → index-BWIWTxcq.js} +1 -1
- package/dist/{index-CNRvK4Xj.cjs → index-B_M7VblC.cjs} +1 -1
- package/dist/{index-Bdu-6tUy.cjs → index-BrA6bnq-.cjs} +1 -1
- package/dist/{index-DiHh_qmY.cjs → index-BuMToqKz.cjs} +1 -1
- package/dist/{index-nmKxXFXJ.js → index-C1kpJhrP.js} +89 -89
- package/dist/{index-BSJ39FNj.cjs → index-C57QK6aw.cjs} +1 -1
- package/dist/{index-C9ygF_9Z.js → index-CRcGWRXi.js} +2540 -2546
- package/dist/{index-CTmW7rWz.js → index-CUtfKRih.js} +6 -6
- package/dist/{index-BTK655Rt.cjs → index-CaoCX-Ef.cjs} +1 -1
- package/dist/{index-Cb3t0lj_.js → index-Cd2Qugmv.js} +87 -87
- package/dist/{index-Cg9bDrdL.js → index-CfOA8FTm.js} +1 -1
- package/dist/{index-D6FDC2OT.js → index-CkIhXpWC.js} +3 -3
- package/dist/index-CqTZkhZ6.cjs +1 -0
- package/dist/{index-8yPe_ZIm.cjs → index-CvbK1Ahp.cjs} +1 -1
- package/dist/{index-DtAFpiBz.js → index-CzTzYbhX.js} +7 -7
- package/dist/{index-CGu6YgDp.cjs → index-D0oNUC1D.cjs} +1 -1
- package/dist/index-D1dxQDMI.cjs +1 -0
- package/dist/{index-SwW4eSXB.js → index-D3wrt7DE.js} +1 -1
- package/dist/index-D40pqfbc.cjs +4207 -0
- package/dist/{index-CTA-V8kI.js → index-D5OU6MsR.js} +4 -4
- package/dist/{index-DUEUaonl.js → index-D8zx1S0X.js} +4 -4
- package/dist/{index-CYfIkC78.js → index-DDVPb6Bw.js} +6 -6
- package/dist/{index-BC2VbTNW.cjs → index-DJdGrZgK.cjs} +1 -1
- package/dist/{index-BDARIJzh.cjs → index-DNC5xRwP.cjs} +1 -1
- package/dist/index-DRf6O2_0.cjs +1 -0
- package/dist/{index-B6dg_ENP.js → index-DfuXEj6A.js} +3 -3
- package/dist/{index-BWSzs3A-.js → index-DiKEBwKK.js} +4 -4
- package/dist/{index-B5aAw-C5.cjs → index-DitWZL9U.cjs} +1 -1
- package/dist/index-DjS_rbXu.cjs +1 -0
- package/dist/{index-2X8ZJCBr.js → index-DmQobvLH.js} +5 -5
- package/dist/index-Dmbs_wb1.js +4915 -0
- package/dist/{index-CdZvcMjf.cjs → index-GkKxkxkq.cjs} +1 -1
- package/dist/{index-DkT1FEwR.cjs → index-O1YgbETS.cjs} +1 -1
- package/dist/{index-CH66t2vt.js → index-P65GinRI.js} +2 -2
- package/dist/{index-w4bBY3bg.cjs → index-UpKpeILM.cjs} +1 -1
- package/dist/{index-CKOHeMkR.js → index-fwyOQTrU.js} +5 -5
- package/dist/{index-CLci5Czv.cjs → index-kCt_G9AN.cjs} +1 -1
- package/dist/{index-B9Vdectg.cjs → index-lQvEwTHJ.cjs} +1 -1
- package/dist/{index-9FgR1N_g.js → index-rZa-VsMt.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CyDSZn-Q.js → index.vue_vue_type_script_setup_true_lang-87y_319I.js} +14 -14
- package/dist/{index.vue_vue_type_script_setup_true_lang-BRlh6QO_.cjs → index.vue_vue_type_script_setup_true_lang-cLhH0csh.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-VzL4xNxw.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BA84T8Xo.cjs} +58 -58
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DZM6EJDg.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CteU-qco.js} +1729 -1723
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-Bj0CmLCT.cjs → index.vue_vue_type_style_index_0_scoped_8606206c_lang-CaduV9Gk.cjs} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_8606206c_lang-CSrw2Qin.js → index.vue_vue_type_style_index_0_scoped_8606206c_lang-Ct9waiYK.js} +9155 -9109
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BvckNB-n.cjs → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DBheYjn6.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BtGNhyQV.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-IC5LRNwO.js} +8 -8
- package/dist/{login-DTNO3Kcx.cjs → login-BH0_LUL8.cjs} +4 -4
- package/dist/{login-tuTXg0Re.js → login-BKPwNp6e.js} +410 -410
- package/dist/{main-DdSI8q3y.cjs → main-BhCgs8VF.cjs} +1 -1
- package/dist/{main-DZ3x6_Gx.js → main-C-JC9Azq.js} +5 -5
- package/dist/{modelComp-BwgAaNtJ.js → modelComp-D0KFt81W.js} +1 -1
- package/dist/{modelComp-BAkwstz-.cjs → modelComp-DiHxFQC8.cjs} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-BXxpDTWW.cjs → threeModel-BPKTvLAF.cjs} +1 -1
- package/dist/{threeModel-PYPOqSkk.js → threeModel-CqhC0vxK.js} +3 -3
- package/dist/threePreview-B4bdjjLv.cjs +1 -0
- package/dist/threePreview-HolW2L13.js +197 -0
- package/dist/threeSceneView-CcWzv8VC.js +353 -0
- package/dist/threeSceneView-XuA69kfg.cjs +1 -0
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-BZ9F30cB.js +0 -4828
- package/dist/index-D1IAgzys.cjs +0 -4207
- package/dist/index-DKCAoA0f.cjs +0 -1
- package/dist/index-DTKR6eas.cjs +0 -1
- package/dist/index-DW7Dagux.cjs +0 -1
- package/dist/index-GtHPQTxX.cjs +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { g as
|
|
3
|
-
import { l as we, s as
|
|
4
|
-
import { u as
|
|
5
|
-
import { d as
|
|
6
|
-
import { E as
|
|
7
|
-
const
|
|
1
|
+
import { ref as l, computed as x, reactive as X, nextTick as Y, watch as Z } from "vue";
|
|
2
|
+
import { g as W, E as A, bm as m, bk as ee, b as te, bn as se } from "./index-Cd2Qugmv.js";
|
|
3
|
+
import { l as we, s as T, c as F, p as v, u as re, a as ne } from "./login-BKPwNp6e.js";
|
|
4
|
+
import { u as ae } from "./modelComp-D0KFt81W.js";
|
|
5
|
+
import { d as ce, i as Ee, e as q } from "./crypto-BRyGpjGR.js";
|
|
6
|
+
import { E as Me } from "./index-C1kpJhrP.js";
|
|
7
|
+
const oe = we("authorityState", {
|
|
8
8
|
state: () => ({
|
|
9
9
|
routerPageStructures: []
|
|
10
10
|
}),
|
|
@@ -13,25 +13,25 @@ const re = we("authorityState", {
|
|
|
13
13
|
this.routerPageStructures = e;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
}),
|
|
16
|
+
}), Ne = re(v), { activeMenuPath: S } = T(Ne), Re = ne(v), { structureData: xe } = T(Re), Fe = oe(v), { routerPageStructures: Oe } = T(Fe), j = ae(v), je = l([
|
|
17
17
|
{
|
|
18
18
|
label: "角色名称",
|
|
19
19
|
value: "",
|
|
20
20
|
name: "roleName"
|
|
21
21
|
}
|
|
22
|
-
]),
|
|
22
|
+
]), We = l([
|
|
23
23
|
{
|
|
24
24
|
label: "查询"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
label: "重置"
|
|
28
28
|
}
|
|
29
|
-
]),
|
|
29
|
+
]), H = X({
|
|
30
30
|
isFilter: !1,
|
|
31
31
|
filterForm: {}
|
|
32
|
-
}),
|
|
33
|
-
|
|
34
|
-
},
|
|
32
|
+
}), Ue = l(!1), _e = (e) => {
|
|
33
|
+
H.isFilter = !0, H.filterForm = e;
|
|
34
|
+
}, ue = l([
|
|
35
35
|
// {
|
|
36
36
|
// key: "extraButton",
|
|
37
37
|
// contents: [
|
|
@@ -119,41 +119,51 @@ const re = we("authorityState", {
|
|
|
119
119
|
// // ],
|
|
120
120
|
// // ]
|
|
121
121
|
// }
|
|
122
|
-
]),
|
|
122
|
+
]), le = l([]), he = l(""), Le = x(() => {
|
|
123
123
|
var r, s, t, n, a;
|
|
124
124
|
const e = (r = Oe.value) == null ? void 0 : r.find((o) => {
|
|
125
125
|
var c;
|
|
126
126
|
return ((c = o == null ? void 0 : o.comp) == null ? void 0 : c.toUpperCase()) === "TABLE";
|
|
127
127
|
});
|
|
128
128
|
if (e) {
|
|
129
|
-
|
|
129
|
+
he.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 o = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((c) => {
|
|
131
|
+
var h;
|
|
131
132
|
if ((c == null ? void 0 : c.key) === "rowButton") {
|
|
132
|
-
let
|
|
133
|
-
return P.value ?
|
|
133
|
+
let u = [];
|
|
134
|
+
return P.value ? u = [...c == null ? void 0 : c.contents, { label: "授权" }] : u = c == null ? void 0 : c.contents, {
|
|
134
135
|
...c,
|
|
135
|
-
contents:
|
|
136
|
+
contents: u
|
|
136
137
|
};
|
|
137
138
|
}
|
|
138
|
-
return c
|
|
139
|
+
return (c == null ? void 0 : c.key) === "header" ? {
|
|
140
|
+
...c,
|
|
141
|
+
contents: (h = c == null ? void 0 : c.contents) == null ? void 0 : h.map((u) => {
|
|
142
|
+
var i, f;
|
|
143
|
+
return {
|
|
144
|
+
...u,
|
|
145
|
+
isTableColHidden: (i = u == null ? void 0 : u.prop) == null ? void 0 : i.includes("授权"),
|
|
146
|
+
isFormColHidden: (f = u == null ? void 0 : u.prop) == null ? void 0 : f.includes("授权")
|
|
147
|
+
};
|
|
148
|
+
})
|
|
149
|
+
} : c;
|
|
139
150
|
});
|
|
140
|
-
return
|
|
151
|
+
return de(o), o;
|
|
141
152
|
}
|
|
142
153
|
return [];
|
|
143
|
-
}),
|
|
144
|
-
|
|
145
|
-
},
|
|
154
|
+
}), ze = (e) => {
|
|
155
|
+
z(e.singleContent, e.buttonName, O.value, e == null ? void 0 : e.selectItems);
|
|
156
|
+
}, C = l({}), U = l(), D = async (e, r, s) => {
|
|
146
157
|
var t, n;
|
|
147
158
|
try {
|
|
148
159
|
const a = await e(r);
|
|
149
|
-
return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (
|
|
150
|
-
type: s,
|
|
151
|
-
data: r
|
|
152
|
-
}, v.value), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
|
|
160
|
+
return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (j.setRefreshCurStructure(!0), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
|
|
153
161
|
} catch (a) {
|
|
154
|
-
|
|
162
|
+
A.error(a);
|
|
163
|
+
} finally {
|
|
164
|
+
j.setCacheUpdatingData(null);
|
|
155
165
|
}
|
|
156
|
-
},
|
|
166
|
+
}, Ie = (e, r) => {
|
|
157
167
|
const s = new Map(r.map((n) => [n.path, n.checkedButtons]));
|
|
158
168
|
function t(n) {
|
|
159
169
|
var o, c;
|
|
@@ -161,25 +171,25 @@ const re = we("authorityState", {
|
|
|
161
171
|
s.has(a) && (n.checkedButtons = s.get(a)), n.children && n.children.length > 0 && n.children.forEach(t);
|
|
162
172
|
}
|
|
163
173
|
e.forEach(t);
|
|
164
|
-
},
|
|
174
|
+
}, ie = (e) => e == null ? void 0 : e.map((r) => {
|
|
165
175
|
var t;
|
|
166
176
|
const s = {
|
|
167
177
|
...r,
|
|
168
178
|
checkedButtons: []
|
|
169
179
|
};
|
|
170
|
-
return s.children && ((t = s.children) == null ? void 0 : t.length) > 0 && (s.children =
|
|
171
|
-
}),
|
|
180
|
+
return s.children && ((t = s.children) == null ? void 0 : t.length) > 0 && (s.children = ie(s.children)), s;
|
|
181
|
+
}), fe = (e) => {
|
|
172
182
|
for (const r in e)
|
|
173
183
|
if (Array.isArray(e[r]))
|
|
174
184
|
return r;
|
|
175
185
|
return "";
|
|
176
|
-
},
|
|
186
|
+
}, pe = (e) => {
|
|
177
187
|
const r = [];
|
|
178
188
|
let s = 0;
|
|
179
189
|
for (; s < e.length; )
|
|
180
190
|
if (typeof e[s] == "string") {
|
|
181
191
|
const t = { title: e[s] };
|
|
182
|
-
s + 1 < e.length && Array.isArray(e[s + 1]) ? (t.children =
|
|
192
|
+
s + 1 < e.length && Array.isArray(e[s + 1]) ? (t.children = pe(e[s + 1]), s += 2) : s += 1, r.push(t);
|
|
183
193
|
}
|
|
184
194
|
return r;
|
|
185
195
|
}, ye = (e) => {
|
|
@@ -187,10 +197,10 @@ const re = we("authorityState", {
|
|
|
187
197
|
let s = 0;
|
|
188
198
|
for (; s < (e == null ? void 0 : e.length); ) {
|
|
189
199
|
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 =
|
|
200
|
+
s + 1 < (e == null ? void 0 : e.length) && Array.isArray(e == null ? void 0 : e[s + 1]) ? (t.children = pe(e == null ? void 0 : e[s + 1]), s += 2) : s += 1, r.push(t);
|
|
191
201
|
}
|
|
192
202
|
return r;
|
|
193
|
-
},
|
|
203
|
+
}, _ = (e, r = "", s = /* @__PURE__ */ new Map()) => e == null ? void 0 : e.map((t) => {
|
|
194
204
|
const n = r ? `${r}/${t.title}` : t.title;
|
|
195
205
|
if (s.has(n))
|
|
196
206
|
return s.get(n);
|
|
@@ -198,11 +208,11 @@ const re = we("authorityState", {
|
|
|
198
208
|
...t,
|
|
199
209
|
path: n
|
|
200
210
|
};
|
|
201
|
-
return t.children && t.children.length > 0 && (a.children =
|
|
202
|
-
}),
|
|
211
|
+
return t.children && t.children.length > 0 && (a.children = _(t.children, n, s)), s.set(n, a), a;
|
|
212
|
+
}), ge = (e, r) => e.reduce((s, t) => {
|
|
203
213
|
const n = t[r];
|
|
204
214
|
return s[n] || (s[n] = []), s[n].push(t), s;
|
|
205
|
-
}, {}),
|
|
215
|
+
}, {}), ve = (e) => {
|
|
206
216
|
const r = [];
|
|
207
217
|
function s(t, n) {
|
|
208
218
|
!t.children || t.children.length === 0 ? r.push({
|
|
@@ -211,26 +221,25 @@ const re = we("authorityState", {
|
|
|
211
221
|
}) : t.children.forEach((a) => s(a, t.path || n));
|
|
212
222
|
}
|
|
213
223
|
return e.forEach((t) => s(t, "")), r;
|
|
214
|
-
},
|
|
224
|
+
}, be = (e) => Object.entries(e).map(([s, t]) => ({
|
|
215
225
|
path: s,
|
|
216
226
|
checkedButtons: t == null ? void 0 : t.map((n) => n == null ? void 0 : n.path)
|
|
217
|
-
})),
|
|
218
|
-
const
|
|
219
|
-
var
|
|
220
|
-
return !(
|
|
227
|
+
})), Qe = (e) => Object.prototype.toString.call(e) === "[object Object]" && e !== null, Ve = (e, r) => {
|
|
228
|
+
const s = {}, t = Array.isArray(e) ? e == null ? void 0 : e.filter((n) => {
|
|
229
|
+
var a;
|
|
230
|
+
return !(Qe(n) && ((a = Object.keys(n)) != null && a.includes("id")));
|
|
221
231
|
}) : null;
|
|
222
|
-
return
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}, Ve = (e) => {
|
|
232
|
+
return t && (t == null || t.forEach((n, a) => {
|
|
233
|
+
var o;
|
|
234
|
+
s[(o = r[a]) == null ? void 0 : o.prop] = n;
|
|
235
|
+
})), console.log("用到a为键的地方", s, t, r), s;
|
|
236
|
+
}, B = l(""), de = (e) => {
|
|
237
|
+
var a;
|
|
238
|
+
const r = e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.key) === "tableContents"), s = e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.key) === "header");
|
|
239
|
+
if (!r || !s) return "";
|
|
240
|
+
const t = (a = r == null ? void 0 : r.contents) == null ? void 0 : a[0], n = Ve(t, s == null ? void 0 : s.contents);
|
|
241
|
+
B.value = fe(n);
|
|
242
|
+
}, qe = (e) => {
|
|
234
243
|
if (!Array.isArray(e))
|
|
235
244
|
return !1;
|
|
236
245
|
for (let r of e) {
|
|
@@ -241,16 +250,16 @@ const re = we("authorityState", {
|
|
|
241
250
|
return !1;
|
|
242
251
|
}
|
|
243
252
|
return !0;
|
|
244
|
-
},
|
|
253
|
+
}, He = (e) => {
|
|
245
254
|
const r = [];
|
|
246
255
|
for (const s in e)
|
|
247
256
|
e[s].forEach((n) => {
|
|
248
|
-
var
|
|
249
|
-
const a = (
|
|
257
|
+
var h, u;
|
|
258
|
+
const a = (h = n.path) != null && h.startsWith("/") ? (u = n.path) == null ? void 0 : u.substring(1) : n.path, o = a == null ? void 0 : a.split("/");
|
|
250
259
|
let c = r;
|
|
251
|
-
o.forEach((
|
|
252
|
-
let f = c.find((
|
|
253
|
-
f || (f = { title:
|
|
260
|
+
o.forEach((i) => {
|
|
261
|
+
let f = c.find((p) => p.title === i);
|
|
262
|
+
f || (f = { title: i, path: n.path, children: [] }, c.push(f)), c = f.children;
|
|
254
263
|
});
|
|
255
264
|
});
|
|
256
265
|
return r;
|
|
@@ -264,12 +273,12 @@ const re = we("authorityState", {
|
|
|
264
273
|
}));
|
|
265
274
|
r[a] = o;
|
|
266
275
|
}), r;
|
|
267
|
-
},
|
|
276
|
+
}, Ae = (e) => {
|
|
268
277
|
let r = [];
|
|
269
278
|
for (const s of e) {
|
|
270
279
|
let t = [s.title];
|
|
271
280
|
if (s.children && Array.isArray(s.children)) {
|
|
272
|
-
let n =
|
|
281
|
+
let n = Ae(s.children);
|
|
273
282
|
n.length > 0 && t.push(n);
|
|
274
283
|
}
|
|
275
284
|
r.push(t);
|
|
@@ -279,11 +288,11 @@ const re = we("authorityState", {
|
|
|
279
288
|
const r = [];
|
|
280
289
|
for (const s of e) {
|
|
281
290
|
if (!Array.isArray(s) || s.length !== 2) continue;
|
|
282
|
-
const [t, n] = s, a =
|
|
283
|
-
o === -1 ? r.push(t, a) : r[o + 1] =
|
|
291
|
+
const [t, n] = s, a = ke(n), o = r.indexOf(t);
|
|
292
|
+
o === -1 ? r.push(t, a) : r[o + 1] = Se(r[o + 1], a);
|
|
284
293
|
}
|
|
285
294
|
return r;
|
|
286
|
-
},
|
|
295
|
+
}, ke = (e) => {
|
|
287
296
|
const r = [];
|
|
288
297
|
for (const s of e)
|
|
289
298
|
if (Array.isArray(s)) {
|
|
@@ -291,55 +300,55 @@ const re = we("authorityState", {
|
|
|
291
300
|
r.push(s[0]);
|
|
292
301
|
else if (s.length === 2 && typeof s[0] == "string") {
|
|
293
302
|
const [t, n] = s;
|
|
294
|
-
r.push(t,
|
|
303
|
+
r.push(t, ke(n));
|
|
295
304
|
}
|
|
296
305
|
}
|
|
297
306
|
return r;
|
|
298
|
-
},
|
|
307
|
+
}, Se = (e, r) => {
|
|
299
308
|
const s = [...e];
|
|
300
309
|
let t = 0;
|
|
301
310
|
for (; t < r.length; ) {
|
|
302
311
|
const n = r[t];
|
|
303
312
|
if (typeof n == "string") {
|
|
304
313
|
const a = s.indexOf(n);
|
|
305
|
-
a === -1 ? s.push(n, r[t + 1]) : s[a + 1] =
|
|
314
|
+
a === -1 ? s.push(n, r[t + 1]) : s[a + 1] = Se(s[a + 1], r[t + 1]), t += 2;
|
|
306
315
|
} else
|
|
307
316
|
s.push(n), t += 1;
|
|
308
317
|
}
|
|
309
318
|
return s;
|
|
310
|
-
},
|
|
319
|
+
}, Xe = async (e, r) => {
|
|
311
320
|
var s, t;
|
|
312
|
-
if (
|
|
313
|
-
if (!
|
|
314
|
-
|
|
321
|
+
if (C.value = F(r), j.setRefreshCurStructure(!1), (s = K.value) == null || s.splice(0), e === "授权") {
|
|
322
|
+
if (!B.value) {
|
|
323
|
+
A.error("请正确定义角色权限");
|
|
315
324
|
return;
|
|
316
325
|
}
|
|
317
|
-
const n =
|
|
326
|
+
const n = qe(C.value[B.value]);
|
|
318
327
|
let a;
|
|
319
328
|
if (n)
|
|
320
|
-
a =
|
|
329
|
+
a = C.value[B.value];
|
|
321
330
|
else {
|
|
322
|
-
const c = ye(
|
|
323
|
-
a =
|
|
331
|
+
const c = ye(C.value[B.value]), h = _(c), u = ve(h), i = ge(u, "parentPath");
|
|
332
|
+
a = be(i);
|
|
324
333
|
}
|
|
325
334
|
if (!a || !Array.isArray(a)) {
|
|
326
|
-
|
|
335
|
+
A.error("权限数据处理出错了,请联系管理员");
|
|
327
336
|
return;
|
|
328
337
|
}
|
|
329
|
-
|
|
338
|
+
k.title = `【${r.a0}】授权`, k.show = !0, await Y();
|
|
330
339
|
const o = a == null ? void 0 : a.map((c) => c == null ? void 0 : c.path);
|
|
331
|
-
(t =
|
|
340
|
+
(t = U.value) == null || t.setCheckedKeys(o), Ie(w.value, a);
|
|
332
341
|
}
|
|
333
|
-
},
|
|
334
|
-
|
|
335
|
-
},
|
|
336
|
-
const r = await
|
|
342
|
+
}, Ye = () => {
|
|
343
|
+
k.show = !1;
|
|
344
|
+
}, E = l(), Ze = async (e) => {
|
|
345
|
+
const r = await D(W, {
|
|
337
346
|
key: {
|
|
338
347
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
339
348
|
type: "data",
|
|
340
349
|
pageKey: e
|
|
341
350
|
}
|
|
342
|
-
}
|
|
351
|
+
}), s = r == null ? void 0 : r.map((t) => {
|
|
343
352
|
var n;
|
|
344
353
|
return {
|
|
345
354
|
id: t.id,
|
|
@@ -359,50 +368,59 @@ const re = we("authorityState", {
|
|
|
359
368
|
id: t.id
|
|
360
369
|
};
|
|
361
370
|
});
|
|
362
|
-
},
|
|
371
|
+
}, L = (e, r) => {
|
|
363
372
|
let s = {};
|
|
364
|
-
return r == null || r.forEach((t
|
|
365
|
-
t.label && e && (s[t.label] = (e == null ? void 0 : e[
|
|
373
|
+
return r == null || r.forEach((t) => {
|
|
374
|
+
t.label && e && (s[t.label] = (e == null ? void 0 : e[t == null ? void 0 : t.prop]) ?? null);
|
|
366
375
|
}), s;
|
|
367
|
-
},
|
|
368
|
-
var
|
|
369
|
-
const
|
|
370
|
-
|
|
371
|
-
const
|
|
372
|
-
r === "新增"
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
376
|
+
}, z = (e, r, s, t) => {
|
|
377
|
+
var o, c, h, u;
|
|
378
|
+
const n = F(e);
|
|
379
|
+
n != null && n.id && delete n.id;
|
|
380
|
+
const a = L(n, le.value);
|
|
381
|
+
if (r === "新增")
|
|
382
|
+
D(m, {
|
|
383
|
+
key: {
|
|
384
|
+
type: "data",
|
|
385
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
386
|
+
pageKey: (o = S.value) != null && o.startsWith("/") ? (c = S.value) == null ? void 0 : c.substring(1) : S.value,
|
|
387
|
+
tableId: s
|
|
388
|
+
},
|
|
389
|
+
value: {
|
|
390
|
+
tableData: a
|
|
391
|
+
}
|
|
392
|
+
}).then((i) => {
|
|
393
|
+
E.value = {
|
|
394
|
+
...e,
|
|
395
|
+
newId: i
|
|
396
|
+
};
|
|
397
|
+
});
|
|
398
|
+
else if (r === "编辑")
|
|
399
|
+
D(ee, {
|
|
400
|
+
id: e.id,
|
|
401
|
+
key: {
|
|
402
|
+
type: "data",
|
|
403
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
404
|
+
pageKey: (h = S.value) != null && h.startsWith("/") ? (u = S.value) == null ? void 0 : u.substring(1) : S.value,
|
|
405
|
+
tableId: s
|
|
406
|
+
},
|
|
407
|
+
value: {
|
|
408
|
+
tableData: a
|
|
409
|
+
}
|
|
410
|
+
}).then((i) => {
|
|
411
|
+
k.show = !1;
|
|
412
|
+
});
|
|
413
|
+
else if (r != null && r.includes("删除")) {
|
|
414
|
+
const i = r != null && r.includes("批量") ? te : se, f = r != null && r.includes("批量") ? {
|
|
415
|
+
ids: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((p) => p == null ? void 0 : p.id) : []
|
|
416
|
+
} : {
|
|
417
|
+
id: e.id
|
|
386
418
|
};
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
pageKey: (c = v.value) != null && c.startsWith("/") ? (l = v.value) == null ? void 0 : l.substring(1) : v.value,
|
|
393
|
-
tableId: s
|
|
394
|
-
},
|
|
395
|
-
value: {
|
|
396
|
-
tableData: n
|
|
397
|
-
}
|
|
398
|
-
}, r).then((h) => {
|
|
399
|
-
d.show = !1;
|
|
400
|
-
}) : r === "删除" && T(m, {
|
|
401
|
-
id: e.id
|
|
402
|
-
}, r).then((h) => {
|
|
403
|
-
r && h && b.success(r + "成功");
|
|
404
|
-
}), ae.setRefreshCurStructure(!0);
|
|
405
|
-
}, ke = (e) => {
|
|
419
|
+
D(i, f).then((p) => {
|
|
420
|
+
r && p && A.success(r + "成功");
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
}, Ce = (e) => {
|
|
406
424
|
let r = [];
|
|
407
425
|
return e == null || e.forEach((s) => {
|
|
408
426
|
var t;
|
|
@@ -414,31 +432,31 @@ const re = we("authorityState", {
|
|
|
414
432
|
};
|
|
415
433
|
r = r.concat(n);
|
|
416
434
|
}
|
|
417
|
-
s.children && (r = r.concat(
|
|
435
|
+
s.children && (r = r.concat(Ce(s.children)));
|
|
418
436
|
}), r;
|
|
419
|
-
},
|
|
420
|
-
const e =
|
|
421
|
-
|
|
422
|
-
...
|
|
437
|
+
}, me = () => {
|
|
438
|
+
const e = Ce(w.value), r = Ge(e), s = He(r), t = Ae(s), n = Je(t);
|
|
439
|
+
E.value = {
|
|
440
|
+
...C.value,
|
|
423
441
|
// roleAuthority: extractCheckedButtonPaths(menuData.value)
|
|
424
442
|
// ['a' + authorityIndex]: checkedKeys
|
|
425
443
|
// todo 模型驱动
|
|
426
|
-
[
|
|
427
|
-
},
|
|
428
|
-
|
|
444
|
+
[B.value]: n
|
|
445
|
+
}, Y(() => {
|
|
446
|
+
z(E.value, "编辑", O.value);
|
|
429
447
|
});
|
|
430
|
-
},
|
|
448
|
+
}, k = X({
|
|
431
449
|
show: !1,
|
|
432
450
|
title: "角色授权",
|
|
433
451
|
width: "50%",
|
|
434
452
|
draggable: !0
|
|
435
|
-
}),
|
|
453
|
+
}), et = ({ isPenultimate: e }, r) => {
|
|
436
454
|
var s, t;
|
|
437
455
|
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 =
|
|
456
|
+
}, O = l(0), tt = async (e) => {
|
|
439
457
|
var t, n, a, o, c;
|
|
440
458
|
let r;
|
|
441
|
-
const s = await
|
|
459
|
+
const s = await W({
|
|
442
460
|
key: {
|
|
443
461
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
444
462
|
type: "structure",
|
|
@@ -447,7 +465,7 @@ const re = we("authorityState", {
|
|
|
447
465
|
}
|
|
448
466
|
});
|
|
449
467
|
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 = (o = s == null ? void 0 : s.data.result) == null ? void 0 : o[0]) == null ? void 0 : c.id, O.value = r), r;
|
|
450
|
-
}, w =
|
|
468
|
+
}, w = l([]), st = l([
|
|
451
469
|
{
|
|
452
470
|
path: "资源管理",
|
|
453
471
|
buttons: ["查询", "新增", "编辑", "删除"]
|
|
@@ -456,43 +474,43 @@ const re = we("authorityState", {
|
|
|
456
474
|
path: "资源管理/人员",
|
|
457
475
|
buttons: ["查询", "新增", "编辑", "删除"]
|
|
458
476
|
}
|
|
459
|
-
]),
|
|
477
|
+
]), rt = (e, r) => {
|
|
460
478
|
var s;
|
|
461
479
|
e.checkedButtons = r ? (s = e.renderButtons) == null ? void 0 : s.map((t) => t.path) : [];
|
|
462
|
-
},
|
|
480
|
+
}, K = l([]), nt = (e, r) => {
|
|
463
481
|
var s, t, n;
|
|
464
|
-
r.checkedButtons = e, ((s = r.checkedButtons) == null ? void 0 : s.length) === ((t = r.renderButtons) == null ? void 0 : t.length) ?
|
|
482
|
+
r.checkedButtons = e, ((s = r.checkedButtons) == null ? void 0 : s.length) === ((t = r.renderButtons) == null ? void 0 : t.length) ? K.value.push(r.path) : (e == null ? void 0 : e.length) === 0 && (K.value = (n = K.value) == null ? void 0 : n.filter((a) => a !== r.path));
|
|
465
483
|
};
|
|
466
|
-
|
|
484
|
+
Z(() => K.value.length, () => {
|
|
467
485
|
var e;
|
|
468
|
-
(e =
|
|
486
|
+
(e = U.value) == null || e.setCheckedKeys([...K.value]);
|
|
469
487
|
});
|
|
470
|
-
|
|
471
|
-
e || (w.value =
|
|
488
|
+
Z(() => k.show, (e) => {
|
|
489
|
+
e || (w.value = ie(w.value));
|
|
472
490
|
});
|
|
473
|
-
const
|
|
491
|
+
const Be = x(() => {
|
|
474
492
|
var s;
|
|
475
|
-
const e = (s =
|
|
493
|
+
const e = (s = F(xe.value)) == null ? void 0 : s.filter((t) => {
|
|
476
494
|
var n, a;
|
|
477
495
|
return ((a = (n = t == null ? void 0 : t.key) == null ? void 0 : n.pageKey) == null ? void 0 : a.toUpperCase()) !== "MENU";
|
|
478
496
|
});
|
|
479
497
|
return e == null ? void 0 : e.map((t) => {
|
|
480
|
-
var o, c,
|
|
498
|
+
var o, c, h, u, i, f, p, b;
|
|
481
499
|
const n = /button/i;
|
|
482
|
-
let a = (
|
|
500
|
+
let a = (h = (c = (o = t == null ? void 0 : t.value) == null ? void 0 : o.pageData) == null ? void 0 : c.compData) == null ? void 0 : h.filter((g) => n.test(g == null ? void 0 : g.key));
|
|
483
501
|
return a = Array.from(
|
|
484
|
-
new Set(a == null ? void 0 : a.flatMap((
|
|
502
|
+
new Set(a == null ? void 0 : a.flatMap((g) => g.contents.map(($e) => $e.label)))
|
|
485
503
|
), {
|
|
486
|
-
path: (
|
|
504
|
+
path: (i = (u = t == null ? void 0 : t.key) == null ? void 0 : u.pageKey) != null && i.startsWith("/") ? (p = (f = t == null ? void 0 : t.key) == null ? void 0 : f.pageKey) == null ? void 0 : p.substring(1) : (b = t == null ? void 0 : t.key) == null ? void 0 : b.pageKey,
|
|
487
505
|
buttons: a
|
|
488
506
|
};
|
|
489
507
|
});
|
|
490
|
-
}),
|
|
508
|
+
}), at = l([]), ct = (e) => {
|
|
491
509
|
const s = [e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.title) === "平台管理")].flatMap((t) => t == null ? void 0 : t.children);
|
|
492
510
|
return s == null ? void 0 : s.map((t) => {
|
|
493
511
|
var n, a;
|
|
494
512
|
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,
|
|
513
|
+
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 == null ? void 0 : t.path,
|
|
496
514
|
// buttons: item?.path === '/系统管理/个人中心' ? ['基本信息', '上传头像', '签名', '修改密码'] : ['新增', '查看', '编辑', '删除']
|
|
497
515
|
buttons: ["新增", "查看", "编辑", "删除"]
|
|
498
516
|
};
|
|
@@ -520,7 +538,7 @@ const Se = R(() => {
|
|
|
520
538
|
});
|
|
521
539
|
}
|
|
522
540
|
return [];
|
|
523
|
-
},
|
|
541
|
+
}, Ke = (e, r) => {
|
|
524
542
|
if (Array.isArray(e))
|
|
525
543
|
return e == null ? void 0 : e.map((s) => {
|
|
526
544
|
var a, o;
|
|
@@ -529,14 +547,14 @@ const Se = R(() => {
|
|
|
529
547
|
...s,
|
|
530
548
|
renderButtons: G(s, n),
|
|
531
549
|
checkedButtons: [],
|
|
532
|
-
children:
|
|
550
|
+
children: Ke(s.children, Be.value)
|
|
533
551
|
} : {
|
|
534
552
|
...s,
|
|
535
553
|
renderButtons: G(s, n),
|
|
536
554
|
checkedButtons: []
|
|
537
555
|
};
|
|
538
556
|
});
|
|
539
|
-
},
|
|
557
|
+
}, ot = {
|
|
540
558
|
comp: "Group",
|
|
541
559
|
name: "/系统管理/角色管理",
|
|
542
560
|
compData: [
|
|
@@ -545,85 +563,85 @@ const Se = R(() => {
|
|
|
545
563
|
contents: [
|
|
546
564
|
{
|
|
547
565
|
comp: "Table",
|
|
548
|
-
compData:
|
|
566
|
+
compData: ue.value,
|
|
549
567
|
name: ""
|
|
550
568
|
}
|
|
551
569
|
]
|
|
552
570
|
}
|
|
553
571
|
]
|
|
554
|
-
},
|
|
572
|
+
}, Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
555
573
|
__proto__: null,
|
|
556
|
-
addButtonsToTree:
|
|
557
|
-
addPathToTree:
|
|
558
|
-
authorizeDialog:
|
|
559
|
-
buttonValue:
|
|
560
|
-
changedRow:
|
|
561
|
-
clickRow:
|
|
562
|
-
clickRowButton:
|
|
563
|
-
clickSubmitAuthority:
|
|
564
|
-
closeAuthorizeDialog:
|
|
565
|
-
compName:
|
|
574
|
+
addButtonsToTree: Ke,
|
|
575
|
+
addPathToTree: _,
|
|
576
|
+
authorizeDialog: k,
|
|
577
|
+
buttonValue: We,
|
|
578
|
+
changedRow: E,
|
|
579
|
+
clickRow: C,
|
|
580
|
+
clickRowButton: Xe,
|
|
581
|
+
clickSubmitAuthority: me,
|
|
582
|
+
closeAuthorizeDialog: Ye,
|
|
583
|
+
compName: he,
|
|
566
584
|
convertArrayToTree: ye,
|
|
567
|
-
convertIndexToLabel:
|
|
568
|
-
customNodeClass:
|
|
569
|
-
getActivePageStructureId:
|
|
570
|
-
getAuthorityKey:
|
|
571
|
-
getFirstArrayProperty:
|
|
572
|
-
getLeafNodesRecursive:
|
|
573
|
-
getPageDataAsync:
|
|
574
|
-
groupByField:
|
|
575
|
-
handleAddSysMenusButtons:
|
|
576
|
-
handleItemDataChange:
|
|
577
|
-
handleNodeBtnChange:
|
|
578
|
-
handleNodeCheckChange:
|
|
579
|
-
handleQueryChange:
|
|
580
|
-
handleRowAuthorityRender:
|
|
581
|
-
handleSubmitAsync:
|
|
582
|
-
isPageDataExist:
|
|
585
|
+
convertIndexToLabel: L,
|
|
586
|
+
customNodeClass: et,
|
|
587
|
+
getActivePageStructureId: tt,
|
|
588
|
+
getAuthorityKey: de,
|
|
589
|
+
getFirstArrayProperty: fe,
|
|
590
|
+
getLeafNodesRecursive: ve,
|
|
591
|
+
getPageDataAsync: Ze,
|
|
592
|
+
groupByField: ge,
|
|
593
|
+
handleAddSysMenusButtons: ct,
|
|
594
|
+
handleItemDataChange: ze,
|
|
595
|
+
handleNodeBtnChange: nt,
|
|
596
|
+
handleNodeCheckChange: rt,
|
|
597
|
+
handleQueryChange: _e,
|
|
598
|
+
handleRowAuthorityRender: be,
|
|
599
|
+
handleSubmitAsync: D,
|
|
600
|
+
isPageDataExist: Ue,
|
|
583
601
|
menuData: w,
|
|
584
|
-
menusButtons:
|
|
585
|
-
pageData:
|
|
602
|
+
menusButtons: st,
|
|
603
|
+
pageData: ue,
|
|
586
604
|
pageDataFiltered: Le,
|
|
587
605
|
queryFormData: je,
|
|
588
|
-
structureButtons:
|
|
606
|
+
structureButtons: Be,
|
|
589
607
|
structureId: O,
|
|
590
|
-
submitTableAsyncByVerify:
|
|
591
|
-
tempRolePageData:
|
|
592
|
-
tempSysMenus:
|
|
593
|
-
treeRef:
|
|
594
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
608
|
+
submitTableAsyncByVerify: z,
|
|
609
|
+
tempRolePageData: ot,
|
|
610
|
+
tempSysMenus: at,
|
|
611
|
+
treeRef: U
|
|
612
|
+
}, Symbol.toStringTag, { value: "Module" })), ut = ne(v), { superAdminInfo: lt, cryptoInfo: y } = T(ut), ht = re(v), { activeMenuPath: d } = T(ht), J = ae(v), M = "123456", it = oe(v), { routerPageStructures: ft } = T(it), I = l(0), pt = l([
|
|
595
613
|
{
|
|
596
614
|
label: "用户名称",
|
|
597
615
|
value: "",
|
|
598
616
|
name: "userName"
|
|
599
617
|
}
|
|
600
|
-
]), P =
|
|
618
|
+
]), P = x(() => {
|
|
601
619
|
const e = sessionStorage.getItem("isSuperAdmin");
|
|
602
620
|
return e ? JSON.parse(e) : !1;
|
|
603
621
|
}), yt = (e) => {
|
|
604
622
|
console.log("handleQueryChange", e);
|
|
605
|
-
},
|
|
623
|
+
}, Q = l([]), Te = l(""), N = x(() => {
|
|
606
624
|
var r, s, t, n, a;
|
|
607
|
-
const e = (r =
|
|
625
|
+
const e = (r = ft.value) == null ? void 0 : r.find((o) => {
|
|
608
626
|
var c;
|
|
609
627
|
return ((c = o == null ? void 0 : o.comp) == null ? void 0 : c.toUpperCase()) === "TABLE";
|
|
610
628
|
});
|
|
611
|
-
return e ? (
|
|
629
|
+
return e ? (Te.value = e.name, Q.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) !== "操作"), (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((c) => {
|
|
612
630
|
if ((c == null ? void 0 : c.key) === "rowButton") {
|
|
613
|
-
const
|
|
631
|
+
const h = [...c == null ? void 0 : c.contents, { label: "重置密码" }];
|
|
614
632
|
return {
|
|
615
633
|
...c,
|
|
616
|
-
contents:
|
|
634
|
+
contents: h
|
|
617
635
|
};
|
|
618
636
|
}
|
|
619
637
|
return c;
|
|
620
638
|
})) : [];
|
|
621
|
-
}),
|
|
622
|
-
|
|
623
|
-
},
|
|
639
|
+
}), gt = (e) => {
|
|
640
|
+
V(e.singleContent, e.buttonName, I.value, e == null ? void 0 : e.selectItems);
|
|
641
|
+
}, R = l(), vt = (e) => {
|
|
624
642
|
console.log("onDoubleClick", e);
|
|
625
|
-
},
|
|
626
|
-
e === "重置密码" &&
|
|
643
|
+
}, bt = (e, r) => {
|
|
644
|
+
e === "重置密码" && Me.confirm(
|
|
627
645
|
`该操作将会重置【${r == null ? void 0 : r.account}】的密码,确认重置?`,
|
|
628
646
|
"警告",
|
|
629
647
|
{
|
|
@@ -632,18 +650,18 @@ const Se = R(() => {
|
|
|
632
650
|
type: "warning"
|
|
633
651
|
}
|
|
634
652
|
).then(() => {
|
|
635
|
-
|
|
653
|
+
R.value = {
|
|
636
654
|
...r,
|
|
637
|
-
password:
|
|
638
|
-
},
|
|
655
|
+
password: M
|
|
656
|
+
}, V(R.value, e, I.value);
|
|
639
657
|
}).catch(() => {
|
|
640
|
-
|
|
658
|
+
A.info("取消重置");
|
|
641
659
|
});
|
|
642
|
-
},
|
|
643
|
-
Pe(
|
|
660
|
+
}, De = () => {
|
|
661
|
+
Pe(d.value).then((e) => {
|
|
644
662
|
var s;
|
|
645
|
-
const r = Array.isArray(e) && (e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.account) !==
|
|
646
|
-
|
|
663
|
+
const r = Array.isArray(e) && (e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.account) !== lt.value.account));
|
|
664
|
+
N.value = (s = N.value) == null ? void 0 : s.map((t) => t.key === "tableContents" ? {
|
|
647
665
|
...t,
|
|
648
666
|
// 不显示超管
|
|
649
667
|
contents: r == null ? void 0 : r.map((n) => {
|
|
@@ -652,7 +670,7 @@ const Se = R(() => {
|
|
|
652
670
|
...n,
|
|
653
671
|
// 登录用户是超管才给解密
|
|
654
672
|
// password: loginUserIsSuper.value ? decryptData(d?.password, cryptoInfo?.value?.privateKey) : d?.password
|
|
655
|
-
password:
|
|
673
|
+
password: ce(n == null ? void 0 : n.password, (a = y == null ? void 0 : y.value) == null ? void 0 : a.privateKey)
|
|
656
674
|
};
|
|
657
675
|
})
|
|
658
676
|
} : t);
|
|
@@ -661,63 +679,71 @@ const Se = R(() => {
|
|
|
661
679
|
var t, n;
|
|
662
680
|
try {
|
|
663
681
|
const a = await e(r);
|
|
664
|
-
return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (
|
|
665
|
-
type: s,
|
|
666
|
-
data: r
|
|
667
|
-
}, p.value), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
|
|
682
|
+
return ((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 ? (J.setRefreshCurStructure(!0), a.data.result || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.code) === 200) : null;
|
|
668
683
|
} catch (a) {
|
|
669
|
-
|
|
684
|
+
A.error(a);
|
|
685
|
+
} finally {
|
|
686
|
+
J.setCacheUpdatingData(null);
|
|
670
687
|
}
|
|
671
|
-
},
|
|
672
|
-
var
|
|
673
|
-
const
|
|
674
|
-
|
|
675
|
-
const
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
688
|
+
}, V = (e, r, s, t) => {
|
|
689
|
+
var o, c, h, u, i, f;
|
|
690
|
+
const n = F(e);
|
|
691
|
+
n != null && n.id && delete n.id;
|
|
692
|
+
const a = L(n, Q.value);
|
|
693
|
+
if (Ee() && a && (!a.password && P.value ? a.password = q(M, (o = y == null ? void 0 : y.value) == null ? void 0 : o.publicKey) : a.password && P.value && (a.password = q(a == null ? void 0 : a.password, (c = y == null ? void 0 : y.value) == null ? void 0 : c.publicKey))), r === "新增")
|
|
694
|
+
$(m, {
|
|
695
|
+
key: {
|
|
696
|
+
type: "data",
|
|
697
|
+
layer: a == null ? void 0 : a.layer,
|
|
698
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
699
|
+
pageKey: (h = d.value) != null && h.startsWith("/") ? (u = d.value) == null ? void 0 : u.substring(1) : d.value,
|
|
700
|
+
tableId: s
|
|
701
|
+
},
|
|
702
|
+
value: {
|
|
703
|
+
tableData: a
|
|
704
|
+
}
|
|
705
|
+
}).then((p) => {
|
|
706
|
+
var b;
|
|
707
|
+
R.value = {
|
|
708
|
+
...e,
|
|
709
|
+
newId: p,
|
|
710
|
+
password: P.value ? ce((e == null ? void 0 : e.password) ?? M, (b = y == null ? void 0 : y.value) == null ? void 0 : b.privateKey) : e == null ? void 0 : e.password
|
|
711
|
+
};
|
|
712
|
+
});
|
|
713
|
+
else if (r === "编辑" || r === "重置密码")
|
|
714
|
+
$(ee, {
|
|
715
|
+
id: e.id,
|
|
716
|
+
key: {
|
|
717
|
+
type: "data",
|
|
718
|
+
layer: a == null ? void 0 : a.layer,
|
|
719
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
720
|
+
pageKey: (i = d.value) != null && i.startsWith("/") ? (f = d.value) == null ? void 0 : f.substring(1) : d.value,
|
|
721
|
+
tableId: s
|
|
722
|
+
},
|
|
723
|
+
value: {
|
|
724
|
+
tableData: a
|
|
725
|
+
}
|
|
726
|
+
}).then(() => {
|
|
727
|
+
r === "重置密码" && De(), k.show = !1;
|
|
728
|
+
});
|
|
729
|
+
else if (r != null && r.includes("删除")) {
|
|
730
|
+
const p = r != null && r.includes("批量") ? te : se, b = r != null && r.includes("批量") ? {
|
|
731
|
+
ids: t && (t == null ? void 0 : t.length) > 0 ? t == null ? void 0 : t.map((g) => g == null ? void 0 : g.id) : []
|
|
732
|
+
} : {
|
|
733
|
+
id: e.id
|
|
693
734
|
};
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
layer: n == null ? void 0 : n.layer,
|
|
699
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
700
|
-
pageKey: (h = p.value) != null && h.startsWith("/") ? (y = p.value) == null ? void 0 : y.substring(1) : p.value,
|
|
701
|
-
tableId: s
|
|
702
|
-
},
|
|
703
|
-
value: {
|
|
704
|
-
tableData: n
|
|
705
|
-
}
|
|
706
|
-
}, r).then(() => {
|
|
707
|
-
r === "重置密码" && Te(), d.show = !1;
|
|
708
|
-
}) : r === "删除" && $(m, {
|
|
709
|
-
id: e.id
|
|
710
|
-
}, r).then(() => {
|
|
711
|
-
r && b.success(r + "成功");
|
|
712
|
-
});
|
|
735
|
+
$(p, b).then((g) => {
|
|
736
|
+
r && g && A.success(r + "成功");
|
|
737
|
+
});
|
|
738
|
+
}
|
|
713
739
|
}, Pe = async (e) => {
|
|
714
|
-
const r = await $(
|
|
740
|
+
const r = await $(W, {
|
|
715
741
|
key: {
|
|
716
742
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
717
743
|
type: "data",
|
|
718
744
|
pageKey: e
|
|
719
745
|
}
|
|
720
|
-
}
|
|
746
|
+
}), s = r == null ? void 0 : r.map((t) => {
|
|
721
747
|
var n, a;
|
|
722
748
|
return {
|
|
723
749
|
id: t.id,
|
|
@@ -733,7 +759,7 @@ const Se = R(() => {
|
|
|
733
759
|
id: t.id
|
|
734
760
|
};
|
|
735
761
|
});
|
|
736
|
-
},
|
|
762
|
+
}, dt = {
|
|
737
763
|
comp: "Group",
|
|
738
764
|
name: "/系统管理/用户管理",
|
|
739
765
|
compData: [
|
|
@@ -742,45 +768,45 @@ const Se = R(() => {
|
|
|
742
768
|
contents: [
|
|
743
769
|
{
|
|
744
770
|
comp: "Table",
|
|
745
|
-
compData:
|
|
771
|
+
compData: N.value,
|
|
746
772
|
name: ""
|
|
747
773
|
}
|
|
748
774
|
]
|
|
749
775
|
}
|
|
750
776
|
]
|
|
751
|
-
},
|
|
777
|
+
}, Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
752
778
|
__proto__: null,
|
|
753
|
-
changedRow:
|
|
754
|
-
clickRowButton:
|
|
755
|
-
columns:
|
|
756
|
-
compName:
|
|
779
|
+
changedRow: R,
|
|
780
|
+
clickRowButton: bt,
|
|
781
|
+
columns: Q,
|
|
782
|
+
compName: Te,
|
|
757
783
|
getPageDataAsync: Pe,
|
|
758
|
-
handleItemDataChange:
|
|
784
|
+
handleItemDataChange: gt,
|
|
759
785
|
handleQueryChange: yt,
|
|
760
786
|
handleSubmitAsync: $,
|
|
761
787
|
loginUserIsSuper: P,
|
|
762
|
-
onDoubleClick:
|
|
763
|
-
pageData:
|
|
764
|
-
queryFormData:
|
|
765
|
-
refreshUserTableData:
|
|
766
|
-
resetPassword:
|
|
767
|
-
structureId:
|
|
768
|
-
submitTableAsyncByVerify:
|
|
769
|
-
tempUserPageData:
|
|
788
|
+
onDoubleClick: vt,
|
|
789
|
+
pageData: N,
|
|
790
|
+
queryFormData: pt,
|
|
791
|
+
refreshUserTableData: De,
|
|
792
|
+
resetPassword: M,
|
|
793
|
+
structureId: I,
|
|
794
|
+
submitTableAsyncByVerify: V,
|
|
795
|
+
tempUserPageData: dt
|
|
770
796
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
771
797
|
export {
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
798
|
+
Dt as S,
|
|
799
|
+
_ as a,
|
|
800
|
+
ve as b,
|
|
775
801
|
ye as c,
|
|
776
|
-
|
|
802
|
+
ge as d,
|
|
777
803
|
Pe as e,
|
|
778
804
|
$ as f,
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
805
|
+
fe as g,
|
|
806
|
+
be as h,
|
|
807
|
+
tt as i,
|
|
808
|
+
Tt as j,
|
|
809
|
+
M as r,
|
|
810
|
+
V as s,
|
|
811
|
+
oe as u
|
|
786
812
|
};
|