ss-component-new 1.1.596 → 1.1.598
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-mnEYd91h.cjs → array-C1gcNGaP.cjs} +1 -1
- package/dist/{array-wJSGLzMi.js → array-CaisX3_y.js} +1 -1
- package/dist/{crypto-BRyGpjGR.js → crypto-BLqrsrbD.js} +503 -430
- package/dist/{crypto-CRbcEKIz.cjs → crypto-kdpAHFnl.cjs} +11 -11
- package/dist/index-2tDhJ_PE.cjs +74 -0
- package/dist/{index-CdV-dIPz.js → index-6zxl3bAx.js} +3 -3
- package/dist/{index-Bq9zvPYq.js → index-B40Vg6be.js} +6 -6
- package/dist/index-BA5Dtdnf.cjs +1 -0
- package/dist/{index-DIQgn1lv.js → index-BIT-bLqc.js} +1 -1
- package/dist/index-BND1JkQV.cjs +1 -0
- package/dist/{index-C1KIIGh8.js → index-BQcbH-Bx.js} +5 -5
- package/dist/index-BTFmTXxw.cjs +1 -0
- package/dist/{index-Dr_FFxuS.cjs → index-BTR1Mq9-.cjs} +1 -1
- package/dist/{index-BhIXAFkM.js → index-BX8Qt4Rx.js} +6 -7
- package/dist/index-BkcTV4rw.cjs +1 -0
- package/dist/{index-DTKpspvK.cjs → index-BlUO9yjl.cjs} +1 -1
- package/dist/{index-Dm8EQvZF.cjs → index-Bn3uMi-8.cjs} +1 -1
- package/dist/index-Bp7fX2Un.cjs +1 -0
- package/dist/{index-Bb1N38wE.js → index-BzxOgHaM.js} +3 -3
- package/dist/{index-CUnz8HhY.cjs → index-C1pvDeK-.cjs} +1 -1
- package/dist/index-C2whMdL5.cjs +1 -0
- package/dist/{index-_h1qmm7b.js → index-C39wdrEg.js} +13 -13
- package/dist/{index-BmX_GIIO.cjs → index-CDtFBTgg.cjs} +1 -1
- package/dist/{index-Db0lTu76.js → index-CJT5TxjA.js} +3 -3
- package/dist/{index-DHuIlYC1.cjs → index-CLbudYRq.cjs} +1 -1
- package/dist/index-CLx_m5eO.cjs +1 -0
- package/dist/{index-bALhgSe4.js → index-CZevQ8Dr.js} +22 -23
- package/dist/index-CdUSKaxX.cjs +1 -0
- package/dist/{index-DSsJ2-ii.cjs → index-D-9AsLgs.cjs} +1 -1
- package/dist/{index-BriwvEur.js → index-D-EA3Esr.js} +4 -4
- package/dist/{index-BIu-jTfc.js → index-D0SLiYEQ.js} +1 -1
- package/dist/{index-Zt6huWXY.js → index-D7dvgWgC.js} +8 -8
- package/dist/{index-Bk3SowMg.js → index-D93nyxZ8.js} +4 -4
- package/dist/{index-B4LVTE2a.cjs → index-D9qvpCOL.cjs} +174 -174
- package/dist/{index-DQm7DvqZ.cjs → index-DAXzplpp.cjs} +1 -1
- package/dist/{index-CB4s2Qtu.cjs → index-DHxqKUgB.cjs} +1 -1
- package/dist/{index-C7x-mC0R.js → index-DJuUjZvH.js} +83 -84
- package/dist/index-DTyUDeyD.js +4369 -0
- package/dist/{index-CwYjbsHf.cjs → index-DeXIDjm6.cjs} +1 -1
- package/dist/{index-TRcS4V2m.js → index-DiGq9Lsv.js} +5 -5
- package/dist/{index-BBnnl-_P.cjs → index-Dnc9hCoC.cjs} +1 -1
- package/dist/{index-BurAdhpz.js → index-DyUmQMqi.js} +4 -4
- package/dist/index-HXTaOl2k.cjs +1 -0
- package/dist/{index-CmXpvujN.js → index-HkaBIp59.js} +1 -1
- package/dist/{index-BOb-2bQ6.js → index-RN-gwhe0.js} +2 -2
- package/dist/{index-Bkm9CeI0.js → index-V9vs-ScR.js} +1 -1
- package/dist/{index-8gbPS8-X.js → index-VF7EMAm-.js} +3 -3
- package/dist/{index-4me0w_d_.js → index-Ww4aroev.js} +3 -3
- package/dist/{index-BrR-UBrL.js → index-bCB0m90F.js} +5 -5
- package/dist/{index-CJ_rdkr8.js → index-hBF27unU.js} +7021 -7051
- package/dist/{index-Dsnvzj37.cjs → index-mWOC2B6n.cjs} +1 -1
- package/dist/{index-CjrWmm5T.js → index-sLT63BWC.js} +2030 -2020
- package/dist/{index-l52VRsV3.cjs → index-v95HBZGa.cjs} +1 -1
- package/dist/{index-P7MVl516.cjs → index-vqffUZk8.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DdxkZBiO.js → index.vue_vue_type_script_setup_true_lang-CPMJDln6.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-CKo9xhlB.cjs → index.vue_vue_type_script_setup_true_lang-T3qSOy6p.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfEICeD4.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BNbsh3Kc.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DXFzvQ4G.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DPUizNX8.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-BrSe9KLj.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-C4KOyCan.js → index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-CNhkr8wC.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DNiiRDF0.cjs → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-CcbD9_8d.cjs} +10 -10
- package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang--Ckdd4kI.js → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DCgz0iSg.js} +2170 -2164
- package/dist/{main-CBruCFMa.cjs → main-OEqZN7Ta.cjs} +1 -1
- package/dist/{main-BdwwE9kL.js → main-v-I0DDbj.js} +5 -5
- package/dist/{menu-DYsWoy6Z.cjs → menu-1olc0mrV.cjs} +9 -9
- package/dist/{menu-Qw1eGtzq.js → menu-BxkEScwt.js} +201 -199
- package/dist/menuIndex-DGUNtXPA.cjs +1 -0
- package/dist/menuIndex-DaxuTIfn.js +60 -0
- package/dist/{modelComp-y7HaQuVQ.js → modelComp-Bj7Q1JDt.js} +1 -1
- package/dist/{modelComp-8s0tWZDU.cjs → modelComp-C5jCD_od.cjs} +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-WeRc8TWE.js → threeModel-D_RxjZwp.js} +568 -550
- package/dist/threeModel-ncwxCK1P.cjs +1 -0
- package/package.json +1 -1
- package/dist/index-B-P2iW5F.cjs +0 -1
- package/dist/index-BFKRXrzQ.cjs +0 -1
- package/dist/index-BJi_ECqJ.cjs +0 -1
- package/dist/index-BiqWWf_i.cjs +0 -1
- package/dist/index-DFdkXYtv.js +0 -4373
- package/dist/index-DJc0EPc7.cjs +0 -1
- package/dist/index-DUjNOx49.cjs +0 -1
- package/dist/index-K05hKXiU.cjs +0 -1
- package/dist/index-R71UAxtE.cjs +0 -1
- package/dist/index-RFCzxTjm.cjs +0 -87
- package/dist/index-n20urAJT.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-CHdcwZZm.cjs +0 -1
- package/dist/login-BBvcYktp.cjs +0 -1
- package/dist/login-afGmER0u.js +0 -129
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threeModel-DQIGp3UU.cjs +0 -1
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DPUizNX8.cjs");const n=require("./menu-1olc0mrV.cjs"),o=require("./index-D9qvpCOL.cjs"),c=require("./index-CLbudYRq.cjs"),u=require("./index-CdUSKaxX.cjs"),s={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...c.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await u.getActivePageStructureId(r.value)}),(l,m)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(o.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ref as u, computed as E, reactive as H, nextTick as X, watch as Y } from "vue";
|
|
2
|
-
import { bR as Te, g as N, s as S, E as g, c as O, bO as Z, bM as m, bP as ee, p as k, u as te } from "./menu-
|
|
3
|
-
import { u as se } from "./
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import { E as we } from "./index-CmXpvujN.js";
|
|
2
|
+
import { bR as Te, g as N, s as S, E as g, c as O, bO as Z, bM as m, bP as ee, p as k, u as te } from "./menu-BxkEScwt.js";
|
|
3
|
+
import { u as se, d as ne, i as Ke, e as G } from "./crypto-BLqrsrbD.js";
|
|
4
|
+
import { u as Pe } from "./modelComp-Bj7Q1JDt.js";
|
|
5
|
+
import { E as we } from "./index-HkaBIp59.js";
|
|
7
6
|
const re = Te("authorityState", {
|
|
8
7
|
state: () => ({
|
|
9
8
|
routerPageStructures: []
|
|
@@ -13,7 +12,7 @@ const re = Te("authorityState", {
|
|
|
13
12
|
this.routerPageStructures = e;
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
|
-
}), De = te(k), { activeMenuPath: v } = S(De), ae = se(k), { structureData: $e } = S(ae), Me = re(k), { routerPageStructures: Re } = S(Me),
|
|
15
|
+
}), De = te(k), { activeMenuPath: v } = S(De), ae = se(k), { structureData: $e } = S(ae), Me = re(k), { routerPageStructures: Re } = S(Me), ce = Pe(k), Ie = u([
|
|
17
16
|
{
|
|
18
17
|
label: "角色名称",
|
|
19
18
|
value: "",
|
|
@@ -121,28 +120,28 @@ const re = Te("authorityState", {
|
|
|
121
120
|
// }
|
|
122
121
|
]), j = u([]), Fe = E(() => {
|
|
123
122
|
var n, s, t, r, a;
|
|
124
|
-
const e = (n = Re.value) == null ? void 0 : n.find((
|
|
125
|
-
var
|
|
126
|
-
return ((
|
|
123
|
+
const e = (n = Re.value) == null ? void 0 : n.find((o) => {
|
|
124
|
+
var c;
|
|
125
|
+
return ((c = o == null ? void 0 : o.comp) == null ? void 0 : c.toUpperCase()) === "TABLE";
|
|
127
126
|
});
|
|
128
127
|
if (e) {
|
|
129
|
-
j.value = (r = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((
|
|
130
|
-
const
|
|
131
|
-
if ((
|
|
128
|
+
j.value = (r = (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 : r.filter((c) => (c == null ? void 0 : c.label) !== "操作");
|
|
129
|
+
const o = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((c) => {
|
|
130
|
+
if ((c == null ? void 0 : c.key) === "rowButton") {
|
|
132
131
|
let l = [];
|
|
133
|
-
return K.value ? l = [...
|
|
134
|
-
...
|
|
132
|
+
return K.value ? l = [...c == null ? void 0 : c.contents, { label: "授权" }] : l = c == null ? void 0 : c.contents, {
|
|
133
|
+
...c,
|
|
135
134
|
contents: l
|
|
136
135
|
};
|
|
137
136
|
}
|
|
138
|
-
return
|
|
137
|
+
return c;
|
|
139
138
|
});
|
|
140
|
-
return de(
|
|
139
|
+
return de(o), o;
|
|
141
140
|
}
|
|
142
141
|
return [];
|
|
143
142
|
}), xe = (e) => {
|
|
144
143
|
W(e.singleContent, e.buttonName, w.value);
|
|
145
|
-
}, b = u({}),
|
|
144
|
+
}, b = u({}), oe = u(), B = async (e, n, s) => {
|
|
146
145
|
var t, r;
|
|
147
146
|
try {
|
|
148
147
|
const a = await e(n);
|
|
@@ -181,7 +180,7 @@ const re = Te("authorityState", {
|
|
|
181
180
|
s + 1 < e.length && Array.isArray(e[s + 1]) ? (t.children = ie(e[s + 1]), s += 2) : s += 1, n.push(t);
|
|
182
181
|
}
|
|
183
182
|
return n;
|
|
184
|
-
},
|
|
183
|
+
}, ye = (e) => {
|
|
185
184
|
const n = [];
|
|
186
185
|
let s = 0;
|
|
187
186
|
for (; s < (e == null ? void 0 : e.length); ) {
|
|
@@ -195,7 +194,7 @@ const re = Te("authorityState", {
|
|
|
195
194
|
path: t
|
|
196
195
|
};
|
|
197
196
|
return s.children && s.children.length > 0 && (r.children = _(s.children, t)), r;
|
|
198
|
-
}),
|
|
197
|
+
}), fe = (e, n) => e.reduce((s, t) => {
|
|
199
198
|
const r = t[n];
|
|
200
199
|
return s[r] || (s[r] = []), s[r].push(t), s;
|
|
201
200
|
}, {}), ge = (e) => {
|
|
@@ -204,10 +203,10 @@ const re = Te("authorityState", {
|
|
|
204
203
|
!r.children || r.children.length === 0 ? n.push(r) : r.children.forEach((a) => s(a));
|
|
205
204
|
}
|
|
206
205
|
return e.forEach((r) => s(r)), n == null ? void 0 : n.map((r) => {
|
|
207
|
-
var a,
|
|
206
|
+
var a, o, c;
|
|
208
207
|
return {
|
|
209
208
|
...r,
|
|
210
|
-
parentPath: (
|
|
209
|
+
parentPath: (c = (o = (a = r.path) == null ? void 0 : a.split("/")) == null ? void 0 : o.slice(0, -1)) == null ? void 0 : c.join("/")
|
|
211
210
|
};
|
|
212
211
|
});
|
|
213
212
|
}, pe = (e) => Object.entries(e).map(([s, t]) => ({
|
|
@@ -245,23 +244,23 @@ const re = Te("authorityState", {
|
|
|
245
244
|
for (const s in e)
|
|
246
245
|
e[s].forEach((r) => {
|
|
247
246
|
var l, h;
|
|
248
|
-
const a = (l = r.path) != null && l.startsWith("/") ? (h = r.path) == null ? void 0 : h.substring(1) : r.path,
|
|
249
|
-
let
|
|
250
|
-
|
|
251
|
-
let
|
|
252
|
-
|
|
247
|
+
const a = (l = r.path) != null && l.startsWith("/") ? (h = r.path) == null ? void 0 : h.substring(1) : r.path, o = a == null ? void 0 : a.split("/");
|
|
248
|
+
let c = n;
|
|
249
|
+
o.forEach((y) => {
|
|
250
|
+
let f = c.find(($) => $.title === y);
|
|
251
|
+
f || (f = { title: y, path: r.path, children: [] }, c.push(f)), c = f.children;
|
|
253
252
|
});
|
|
254
253
|
});
|
|
255
254
|
return n;
|
|
256
255
|
}, We = (e) => {
|
|
257
256
|
const n = {};
|
|
258
257
|
return e.forEach((s) => {
|
|
259
|
-
const { path: t, checkedButtons: r } = s, a = t,
|
|
260
|
-
title:
|
|
261
|
-
path:
|
|
258
|
+
const { path: t, checkedButtons: r } = s, a = t, o = r.map((c) => ({
|
|
259
|
+
title: c.split("/").pop() || "",
|
|
260
|
+
path: c,
|
|
262
261
|
parentPath: a
|
|
263
262
|
}));
|
|
264
|
-
n[a] =
|
|
263
|
+
n[a] = o;
|
|
265
264
|
}), n;
|
|
266
265
|
}, ve = (e) => {
|
|
267
266
|
let n = [];
|
|
@@ -278,8 +277,8 @@ const re = Te("authorityState", {
|
|
|
278
277
|
const n = [];
|
|
279
278
|
for (const s of e) {
|
|
280
279
|
if (!Array.isArray(s) || s.length !== 2) continue;
|
|
281
|
-
const [t, r] = s, a = be(r),
|
|
282
|
-
|
|
280
|
+
const [t, r] = s, a = be(r), o = n.indexOf(t);
|
|
281
|
+
o === -1 ? n.push(t, a) : n[o + 1] = Ae(n[o + 1], a);
|
|
283
282
|
}
|
|
284
283
|
return n;
|
|
285
284
|
}, be = (e) => {
|
|
@@ -307,7 +306,7 @@ const re = Te("authorityState", {
|
|
|
307
306
|
}
|
|
308
307
|
return s;
|
|
309
308
|
}, Ve = async (e, n) => {
|
|
310
|
-
if (b.value = O(n),
|
|
309
|
+
if (b.value = O(n), ce.setRefreshCurStructure(!1), e === "授权") {
|
|
311
310
|
console.log("clickRowButton0", d.value), console.log("clickRowButton1", b.value[d.value]);
|
|
312
311
|
const s = _e(b.value[d.value]);
|
|
313
312
|
console.log("clickRowButton4", s);
|
|
@@ -315,8 +314,8 @@ const re = Te("authorityState", {
|
|
|
315
314
|
if (s)
|
|
316
315
|
t = b.value[d.value];
|
|
317
316
|
else {
|
|
318
|
-
const r =
|
|
319
|
-
t = pe(
|
|
317
|
+
const r = ye(b.value[d.value]), a = _(r), o = ge(a), c = fe(o, "parentPath");
|
|
318
|
+
t = pe(c);
|
|
320
319
|
}
|
|
321
320
|
console.log("clickRowButton5", t), await X(), A.title = `【${n.a0}】授权`, A.show = !0, t && Array.isArray(t) && le(D.value, t);
|
|
322
321
|
}
|
|
@@ -340,8 +339,8 @@ const re = Te("authorityState", {
|
|
|
340
339
|
var r;
|
|
341
340
|
if (Array.isArray(t == null ? void 0 : t.tableData)) {
|
|
342
341
|
let a = { id: t.id };
|
|
343
|
-
return (r = t == null ? void 0 : t.tableData) == null || r.forEach((
|
|
344
|
-
a[`a${
|
|
342
|
+
return (r = t == null ? void 0 : t.tableData) == null || r.forEach((o, c) => {
|
|
343
|
+
a[`a${c}`] = o;
|
|
345
344
|
}), a;
|
|
346
345
|
} else
|
|
347
346
|
return {
|
|
@@ -355,7 +354,7 @@ const re = Te("authorityState", {
|
|
|
355
354
|
t.label && e && (s[t.label] = (e == null ? void 0 : e[`a${r}`]) ?? null);
|
|
356
355
|
}), s;
|
|
357
356
|
}, W = (e, n, s) => {
|
|
358
|
-
var a,
|
|
357
|
+
var a, o, c, l;
|
|
359
358
|
const t = O(e);
|
|
360
359
|
t != null && t.id && delete t.id;
|
|
361
360
|
const r = U(t, j.value);
|
|
@@ -363,7 +362,7 @@ const re = Te("authorityState", {
|
|
|
363
362
|
key: {
|
|
364
363
|
type: "data",
|
|
365
364
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
366
|
-
pageKey: (a = v.value) != null && a.startsWith("/") ? (
|
|
365
|
+
pageKey: (a = v.value) != null && a.startsWith("/") ? (o = v.value) == null ? void 0 : o.substring(1) : v.value,
|
|
367
366
|
tableId: s
|
|
368
367
|
},
|
|
369
368
|
value: {
|
|
@@ -379,7 +378,7 @@ const re = Te("authorityState", {
|
|
|
379
378
|
key: {
|
|
380
379
|
type: "data",
|
|
381
380
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
382
|
-
pageKey: (
|
|
381
|
+
pageKey: (c = v.value) != null && c.startsWith("/") ? (l = v.value) == null ? void 0 : l.substring(1) : v.value,
|
|
383
382
|
tableId: s
|
|
384
383
|
},
|
|
385
384
|
value: {
|
|
@@ -391,7 +390,7 @@ const re = Te("authorityState", {
|
|
|
391
390
|
id: e.id
|
|
392
391
|
}, n).then((h) => {
|
|
393
392
|
n && h && g.success(n + "成功");
|
|
394
|
-
}),
|
|
393
|
+
}), ce.setRefreshCurStructure(!0);
|
|
395
394
|
}, ke = (e) => {
|
|
396
395
|
let n = [];
|
|
397
396
|
return e == null || e.forEach((s) => {
|
|
@@ -426,7 +425,7 @@ const re = Te("authorityState", {
|
|
|
426
425
|
var s, t;
|
|
427
426
|
return console.log("isPenultimate", e, n), ((t = (s = n == null ? void 0 : n.data) == null ? void 0 : s.renderButtons) == null ? void 0 : t.length) > 0 ? "is-penultimate" : "";
|
|
428
427
|
}, w = u(0), He = async (e) => {
|
|
429
|
-
var t, r, a,
|
|
428
|
+
var t, r, a, o, c;
|
|
430
429
|
let n;
|
|
431
430
|
const s = await N({
|
|
432
431
|
key: {
|
|
@@ -436,7 +435,7 @@ const re = Te("authorityState", {
|
|
|
436
435
|
pageKey: e != null && e.startsWith("/") ? e == null ? void 0 : e.substring(1) : e
|
|
437
436
|
}
|
|
438
437
|
});
|
|
439
|
-
return ((t = s == null ? void 0 : s.data) == null ? void 0 : t.code) === 200 && (r = s == null ? void 0 : s.data) != null && r.result && ((a = s == null ? void 0 : s.data) == null ? void 0 : a.result.length) > 0 && (n = (
|
|
438
|
+
return ((t = s == null ? void 0 : s.data) == null ? void 0 : t.code) === 200 && (r = s == null ? void 0 : s.data) != null && r.result && ((a = s == null ? void 0 : s.data) == null ? void 0 : a.result.length) > 0 && (n = (c = (o = s == null ? void 0 : s.data.result) == null ? void 0 : o[0]) == null ? void 0 : c.id, w.value = n), n;
|
|
440
439
|
}, D = u([]), Xe = u([
|
|
441
440
|
{
|
|
442
441
|
path: "资源管理",
|
|
@@ -455,7 +454,7 @@ const re = Te("authorityState", {
|
|
|
455
454
|
};
|
|
456
455
|
Y(() => T.value.length, () => {
|
|
457
456
|
var e;
|
|
458
|
-
(e =
|
|
457
|
+
(e = oe.value) == null || e.setCheckedKeys([...T.value]);
|
|
459
458
|
});
|
|
460
459
|
Y(() => A.show, (e) => {
|
|
461
460
|
e || (D.value = ue(D.value));
|
|
@@ -467,11 +466,11 @@ const F = E(() => {
|
|
|
467
466
|
return ((a = (r = t == null ? void 0 : t.key) == null ? void 0 : r.pageKey) == null ? void 0 : a.toUpperCase()) !== "MENU";
|
|
468
467
|
});
|
|
469
468
|
return [...e == null ? void 0 : e.map((t) => {
|
|
470
|
-
var
|
|
469
|
+
var o, c, l, h;
|
|
471
470
|
const r = /button/i;
|
|
472
|
-
let a = (l = (
|
|
471
|
+
let a = (l = (c = (o = t == null ? void 0 : t.value) == null ? void 0 : o.pageData) == null ? void 0 : c.compData) == null ? void 0 : l.filter((y) => r.test(y == null ? void 0 : y.key));
|
|
473
472
|
return a = Array.from(
|
|
474
|
-
new Set(a == null ? void 0 : a.flatMap((
|
|
473
|
+
new Set(a == null ? void 0 : a.flatMap((y) => y.contents.map((f) => f.label)))
|
|
475
474
|
), {
|
|
476
475
|
path: (h = t == null ? void 0 : t.key) == null ? void 0 : h.pageKey,
|
|
477
476
|
buttons: a
|
|
@@ -488,21 +487,21 @@ const F = E(() => {
|
|
|
488
487
|
if (Array.isArray(e))
|
|
489
488
|
return Q.value = me(e), e == null ? void 0 : e.map((s) => {
|
|
490
489
|
var r, a;
|
|
491
|
-
const t = n == null ? void 0 : n.find((
|
|
490
|
+
const t = n == null ? void 0 : n.find((o) => (o == null ? void 0 : o.path) === (s == null ? void 0 : s.path));
|
|
492
491
|
return s.childMenus && s.childMenus.length > 0 ? {
|
|
493
492
|
...s,
|
|
494
|
-
renderButtons: s.carryData ? (r = t == null ? void 0 : t.buttons) == null ? void 0 : r.map((
|
|
495
|
-
title:
|
|
496
|
-
path: s.path + "/" +
|
|
493
|
+
renderButtons: s.carryData ? (r = t == null ? void 0 : t.buttons) == null ? void 0 : r.map((o) => ({
|
|
494
|
+
title: o,
|
|
495
|
+
path: s.path + "/" + o
|
|
497
496
|
})) : [],
|
|
498
497
|
checkedButtons: [],
|
|
499
498
|
children: x(s.childMenus, F.value),
|
|
500
499
|
childMenus: x(s.childMenus, F.value)
|
|
501
500
|
} : {
|
|
502
501
|
...s,
|
|
503
|
-
renderButtons: s.carryData ? (a = t == null ? void 0 : t.buttons) == null ? void 0 : a.map((
|
|
504
|
-
title:
|
|
505
|
-
path: s.path + "/" +
|
|
502
|
+
renderButtons: s.carryData ? (a = t == null ? void 0 : t.buttons) == null ? void 0 : a.map((o) => ({
|
|
503
|
+
title: o,
|
|
504
|
+
path: s.path + "/" + o
|
|
506
505
|
})) : [],
|
|
507
506
|
checkedButtons: []
|
|
508
507
|
};
|
|
@@ -522,7 +521,7 @@ const F = E(() => {
|
|
|
522
521
|
]
|
|
523
522
|
}
|
|
524
523
|
]
|
|
525
|
-
},
|
|
524
|
+
}, dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
526
525
|
__proto__: null,
|
|
527
526
|
addButtonsToTree: x,
|
|
528
527
|
addPathToTree: _,
|
|
@@ -533,7 +532,7 @@ const F = E(() => {
|
|
|
533
532
|
clickRowButton: Ve,
|
|
534
533
|
clickSubmitAuthority: Ge,
|
|
535
534
|
closeAuthorizeDialog: ze,
|
|
536
|
-
convertArrayToTree:
|
|
535
|
+
convertArrayToTree: ye,
|
|
537
536
|
convertIndexToLabel: U,
|
|
538
537
|
customNodeClass: Je,
|
|
539
538
|
getActivePageStructureId: He,
|
|
@@ -541,7 +540,7 @@ const F = E(() => {
|
|
|
541
540
|
getFirstArrayProperty: he,
|
|
542
541
|
getLeafNodesRecursive: ge,
|
|
543
542
|
getPageDataAsync: qe,
|
|
544
|
-
groupByField:
|
|
543
|
+
groupByField: fe,
|
|
545
544
|
handleItemDataChange: xe,
|
|
546
545
|
handleNodeBtnChange: Ze,
|
|
547
546
|
handleNodeCheckChange: Ye,
|
|
@@ -559,7 +558,7 @@ const F = E(() => {
|
|
|
559
558
|
submitTableAsyncByVerify: W,
|
|
560
559
|
tempRolePageData: et,
|
|
561
560
|
tempSysMenus: Q,
|
|
562
|
-
treeRef:
|
|
561
|
+
treeRef: oe
|
|
563
562
|
}, Symbol.toStringTag, { value: "Module" })), Se = se(k), { superAdminInfo: tt, cryptoInfo: i } = S(Se), st = te(k), { activeMenuPath: p } = S(st), M = "123456", nt = re(k), { routerPageStructures: rt } = S(nt), V = u(0), at = u([
|
|
564
563
|
{
|
|
565
564
|
label: "用户名称",
|
|
@@ -569,30 +568,30 @@ const F = E(() => {
|
|
|
569
568
|
]), K = E(() => {
|
|
570
569
|
const e = sessionStorage.getItem("isSuperAdmin");
|
|
571
570
|
return e ? JSON.parse(e) : !1;
|
|
572
|
-
}),
|
|
571
|
+
}), ct = (e) => {
|
|
573
572
|
console.log("handleQueryChange", e);
|
|
574
573
|
}, z = u([]), R = E(() => {
|
|
575
574
|
var n, s, t, r, a;
|
|
576
|
-
const e = (n = rt.value) == null ? void 0 : n.find((
|
|
577
|
-
var
|
|
578
|
-
return ((
|
|
575
|
+
const e = (n = rt.value) == null ? void 0 : n.find((o) => {
|
|
576
|
+
var c;
|
|
577
|
+
return ((c = o == null ? void 0 : o.comp) == null ? void 0 : c.toUpperCase()) === "TABLE";
|
|
579
578
|
});
|
|
580
579
|
if (e) {
|
|
581
|
-
z.value = (r = (t = (s = e == null ? void 0 : e.compData) == null ? void 0 : s.find((
|
|
582
|
-
const
|
|
583
|
-
if ((
|
|
584
|
-
const l = [...
|
|
580
|
+
z.value = (r = (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 : r.filter((c) => (c == null ? void 0 : c.label) !== "操作");
|
|
581
|
+
const o = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.map((c) => {
|
|
582
|
+
if ((c == null ? void 0 : c.key) === "rowButton") {
|
|
583
|
+
const l = [...c == null ? void 0 : c.contents, { label: "重置密码" }];
|
|
585
584
|
return {
|
|
586
|
-
...
|
|
585
|
+
...c,
|
|
587
586
|
contents: l
|
|
588
587
|
};
|
|
589
588
|
}
|
|
590
|
-
return
|
|
589
|
+
return c;
|
|
591
590
|
});
|
|
592
|
-
return console.log(245,
|
|
591
|
+
return console.log(245, o), o;
|
|
593
592
|
}
|
|
594
593
|
return [];
|
|
595
|
-
}),
|
|
594
|
+
}), ot = (e) => {
|
|
596
595
|
q(e.singleContent, e.buttonName, V.value);
|
|
597
596
|
}, I = u(), lt = (e) => {
|
|
598
597
|
console.log("onDoubleClick", e);
|
|
@@ -643,35 +642,35 @@ const F = E(() => {
|
|
|
643
642
|
g.error(a);
|
|
644
643
|
}
|
|
645
644
|
}, q = (e, n, s) => {
|
|
646
|
-
var a,
|
|
645
|
+
var a, o, c, l, h, y;
|
|
647
646
|
const t = O(e);
|
|
648
647
|
t != null && t.id && delete t.id;
|
|
649
648
|
const r = U(t, z.value);
|
|
650
|
-
|
|
649
|
+
Ke() && r && (!r.password && K.value ? r.password = G(M, (a = i == null ? void 0 : i.value) == null ? void 0 : a.publicKey) : r.password && K.value && (r.password = G(r == null ? void 0 : r.password, (o = i == null ? void 0 : i.value) == null ? void 0 : o.publicKey))), n === "新增" ? P(Z, {
|
|
651
650
|
key: {
|
|
652
651
|
type: "data",
|
|
653
652
|
layer: r == null ? void 0 : r.layer,
|
|
654
653
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
655
|
-
pageKey: (
|
|
654
|
+
pageKey: (c = p.value) != null && c.startsWith("/") ? (l = p.value) == null ? void 0 : l.substring(1) : p.value,
|
|
656
655
|
tableId: s
|
|
657
656
|
},
|
|
658
657
|
value: {
|
|
659
658
|
tableData: r
|
|
660
659
|
}
|
|
661
|
-
}, n).then((
|
|
660
|
+
}, n).then((f) => {
|
|
662
661
|
var $;
|
|
663
662
|
I.value = {
|
|
664
663
|
...e,
|
|
665
|
-
newId:
|
|
664
|
+
newId: f,
|
|
666
665
|
password: K.value ? ne((e == null ? void 0 : e.password) ?? M, ($ = i == null ? void 0 : i.value) == null ? void 0 : $.privateKey) : e == null ? void 0 : e.password
|
|
667
|
-
}, n &&
|
|
666
|
+
}, n && f && g.success(n + "成功");
|
|
668
667
|
}) : n === "编辑" || n === "重置密码" ? P(m, {
|
|
669
668
|
id: e.id,
|
|
670
669
|
key: {
|
|
671
670
|
type: "data",
|
|
672
671
|
layer: r == null ? void 0 : r.layer,
|
|
673
672
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
674
|
-
pageKey: (h = p.value) != null && h.startsWith("/") ? (
|
|
673
|
+
pageKey: (h = p.value) != null && h.startsWith("/") ? (y = p.value) == null ? void 0 : y.substring(1) : p.value,
|
|
675
674
|
tableId: s
|
|
676
675
|
},
|
|
677
676
|
value: {
|
|
@@ -722,14 +721,14 @@ const F = E(() => {
|
|
|
722
721
|
]
|
|
723
722
|
}
|
|
724
723
|
]
|
|
725
|
-
},
|
|
724
|
+
}, vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
726
725
|
__proto__: null,
|
|
727
726
|
changedRow: I,
|
|
728
727
|
clickRowButton: ut,
|
|
729
728
|
columns: z,
|
|
730
729
|
getPageDataAsync: Ce,
|
|
731
|
-
handleItemDataChange:
|
|
732
|
-
handleQueryChange:
|
|
730
|
+
handleItemDataChange: ot,
|
|
731
|
+
handleQueryChange: ct,
|
|
733
732
|
handleSubmitAsync: P,
|
|
734
733
|
loginUserIsSuper: K,
|
|
735
734
|
onDoubleClick: lt,
|
|
@@ -742,17 +741,17 @@ const F = E(() => {
|
|
|
742
741
|
tempUserPageData: ht
|
|
743
742
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
744
743
|
export {
|
|
745
|
-
|
|
744
|
+
vt as S,
|
|
746
745
|
_ as a,
|
|
747
746
|
ge as b,
|
|
748
|
-
|
|
749
|
-
|
|
747
|
+
ye as c,
|
|
748
|
+
fe as d,
|
|
750
749
|
Ce as e,
|
|
751
750
|
P as f,
|
|
752
751
|
he as g,
|
|
753
752
|
pe as h,
|
|
754
753
|
He as i,
|
|
755
|
-
|
|
754
|
+
dt as j,
|
|
756
755
|
M as r,
|
|
757
756
|
q as s,
|
|
758
757
|
re as u
|