ss-component-new 1.1.550 → 1.1.552
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-BnQjIsIE.cjs → index-B3OgUMxZ.cjs} +1 -1
- package/dist/{index-DzkstraD.cjs → index-B9uC4tS8.cjs} +1 -1
- package/dist/{index-DffAxKgW.js → index-BG1OEOyl.js} +1 -1
- package/dist/index-BImKcDoO.cjs +1 -0
- package/dist/{index-B-LpOBDT.js → index-BIqrhoc3.js} +3 -3
- package/dist/{index-CrHUNEBr.js → index-BT2f4FLq.js} +2 -2
- package/dist/{index-Cgc-DX9q.js → index-BWR-wioX.js} +1 -1
- package/dist/{index-CVJeodc-.js → index-BXuzdNd8.js} +1 -1
- package/dist/{index-BJOl0tWq.cjs → index-BsItO9KY.cjs} +1 -1
- package/dist/{index-C4m_4W5O.cjs → index-BvsQ93Dk.cjs} +1 -1
- package/dist/{index-D2V35IDN.cjs → index-BxnDBGDC.cjs} +1 -1
- package/dist/{index-Dsep5_xJ.js → index-C2JHM_8A.js} +15 -14
- package/dist/index-C2UyEyuW.cjs +1 -0
- package/dist/index-CFs5XhDB.cjs +15 -0
- package/dist/{index-DUoU0Edg.js → index-CNKck1IN.js} +5 -5
- package/dist/{index-DKAPyIzJ.js → index-CTL7xS-L.js} +3 -3
- package/dist/{index-CT_76-PQ.cjs → index-CUmF1cOi.cjs} +1 -1
- package/dist/{index-DSRou0iN.cjs → index-CYj1gF5q.cjs} +1 -1
- package/dist/index-CZ6afBwK.cjs +1 -0
- package/dist/{index-BNie-hat.cjs → index-Ca4GQBZm.cjs} +1 -1
- package/dist/{index-ffDSB4Kw.js → index-CcbZfGsJ.js} +1212 -1239
- package/dist/{index-BDSvnw9H.js → index-CiZ2YAhq.js} +49 -48
- package/dist/{index-CV_vgV9a.js → index-CpsSJGyI.js} +1 -1
- package/dist/{index-C5wSDhcl.js → index-CsCuCAbN.js} +1 -1
- package/dist/index-Csb_gyiA.cjs +1 -0
- package/dist/{index-B1Ym6yK-.cjs → index-D6OLOdzT.cjs} +1 -1
- package/dist/{index-CG3UBl7o.cjs → index-D6aOs9h0.cjs} +1 -1
- package/dist/{index-B8H4YhbP.js → index-DGA3OWJM.js} +6 -5
- package/dist/{index-BINS4o5j.cjs → index-DGtegmw2.cjs} +1 -1
- package/dist/{index-CqjuwXtz.js → index-DNmz0vZR.js} +2 -2
- package/dist/{index-D_JSQo_I.js → index-DnU4tt9j.js} +1 -1
- package/dist/{index-Bs2Gr0Fy.js → index-gBugMNnB.js} +1 -1
- package/dist/index-nuI9V5ye.js +31 -0
- package/dist/{index-DiVZz6Oe.cjs → index-w-MJfuW8.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-jWX58keO.cjs → index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-CMsstxHC.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-BCSf0d8L.js → index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-CfknFSZO.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_0_scoped_d888ede3_lang-03raezMI.cjs → index.vue_vue_type_style_index_0_scoped_d888ede3_lang-BlwV7pHr.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_d888ede3_lang-DHjeIUnQ.js → index.vue_vue_type_style_index_0_scoped_d888ede3_lang-bRTgUmAd.js} +13 -13
- package/dist/{main-BnM6BTFN.cjs → main-BKy8Vv3Z.cjs} +1 -1
- package/dist/{main-pHlV-zuf.js → main-BwaV15pa.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-C0gjw1Od.js → threeModel-Cyl4KzRm.js} +357 -365
- package/dist/threeModel-DXgbPmC1.cjs +1 -0
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_e36a07b8_lang-C4kzFz9R.js → threeModel.vue_vue_type_style_index_0_scoped_14112288_lang-BV7oq1Z4.js} +1 -1
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_e36a07b8_lang-CO6ZYvsh.cjs → threeModel.vue_vue_type_style_index_0_scoped_14112288_lang-DCn4bomb.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BiZ2ZTnh.cjs +0 -1
- package/dist/index-C-_hjdfJ.cjs +0 -1
- package/dist/index-CxnxDX6H.cjs +0 -15
- package/dist/index-DGYkSeKR.cjs +0 -1
- package/dist/threeModel-CWur_6HM.cjs +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ref as K, watch as Fe, nextTick as nl, resolveComponent as la, createBlock as Ge, openBlock as ue, withCtx as ee, createElementVNode as fe, renderSlot as Oa, onMounted as ra, createElementBlock as Te, normalizeClass as ol, toDisplayString as Ee, createCommentVNode as ea, Fragment as Ga, renderList as Va, normalizeStyle as qa, createVNode as ne, unref as sl, defineComponent as ul, createSlots as fl, createTextVNode as Je } from "vue";
|
|
2
2
|
import { c1 as tl, bW as Sa, m as cl, c2 as Ea, c3 as Pa, c4 as Fa, F as Ia, S as Ze, G as dl, r as Na, n as Ra, c5 as yl, c as m, bR as ia, g as ce, bM as Ve, f as pl, bL as Wa, s as Ke, u as Qa, p as je, bP as gl, bO as Ba } from "./menu-DV47UKJo.js";
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
5
|
-
import { a as Ie, h as ja, i as
|
|
3
|
+
import { d as qe, i as hl, s as Ka, j as bl } from "./index-CcbZfGsJ.js";
|
|
4
|
+
import { u as vl } from "./modelComp-B4I2gbtf.js";
|
|
5
|
+
import { a as Ie, h as ja, i as ml, j as Al, k as Tl, l as kl } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BPJ7Cu30.js";
|
|
6
6
|
import { _ as na } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import "./threeModel.
|
|
7
|
+
import "./threeModel.vue_vue_type_style_index_0_scoped_14112288_lang-BV7oq1Z4.js";
|
|
8
|
+
import { d as _l } from "./index-nuI9V5ye.js";
|
|
8
9
|
var wl = "__lodash_hash_undefined__";
|
|
9
10
|
function Dl(a) {
|
|
10
11
|
return this.__data__.set(a, wl), this;
|
|
@@ -469,7 +470,7 @@ const ar = {
|
|
|
469
470
|
}
|
|
470
471
|
return f;
|
|
471
472
|
}
|
|
472
|
-
}),
|
|
473
|
+
}), Wr = (a) => {
|
|
473
474
|
try {
|
|
474
475
|
return JSON.parse(a), !0;
|
|
475
476
|
} catch {
|
|
@@ -501,16 +502,16 @@ const ar = {
|
|
|
501
502
|
return y[r[c]] = t, y;
|
|
502
503
|
})) == null ? void 0 : o.filter((t) => t), n;
|
|
503
504
|
}), e;
|
|
504
|
-
},
|
|
505
|
+
}, Qr = (a, r) => {
|
|
505
506
|
var o, t;
|
|
506
507
|
const i = m(a), e = (o = i == null ? void 0 : i.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : o.contents, l = (t = i == null ? void 0 : i.find((c) => (c == null ? void 0 : c.key) === "tableContents")) == null ? void 0 : t.contents;
|
|
507
508
|
return Tr(l, Ne(e).slice(0, Ne(e).length - 1), r);
|
|
508
|
-
},
|
|
509
|
+
}, Xr = (a) => {
|
|
509
510
|
let r = {};
|
|
510
511
|
return a == null || a.forEach((i) => {
|
|
511
512
|
r[i.key] = i.value;
|
|
512
513
|
}), r;
|
|
513
|
-
},
|
|
514
|
+
}, Yr = (a) => {
|
|
514
515
|
var i;
|
|
515
516
|
let r = [];
|
|
516
517
|
return (i = m(a)) == null || i.forEach((e) => {
|
|
@@ -519,7 +520,7 @@ const ar = {
|
|
|
519
520
|
l[Object.keys(n)[0]] = Object.values(n)[0];
|
|
520
521
|
}), r.push(l);
|
|
521
522
|
}), r;
|
|
522
|
-
},
|
|
523
|
+
}, Zr = (a, r) => {
|
|
523
524
|
if (r != null && r[a])
|
|
524
525
|
return r == null ? void 0 : r[a];
|
|
525
526
|
}, kr = async (a, r) => {
|
|
@@ -566,21 +567,21 @@ const ar = {
|
|
|
566
567
|
e = l.includes(c.key);
|
|
567
568
|
}));
|
|
568
569
|
}), e;
|
|
569
|
-
},
|
|
570
|
+
}, zr = (a, r) => {
|
|
570
571
|
var l;
|
|
571
572
|
let i = m(a);
|
|
572
573
|
return _r(m(i), r) && (i.compData = (l = i.compData) == null ? void 0 : l.map((n) => {
|
|
573
574
|
var o;
|
|
574
575
|
return (n == null ? void 0 : n.key) === "formContent" && (n.contents = (o = n == null ? void 0 : n.contents) == null ? void 0 : o.map((t) => (Object.keys(r).includes(t.key) && (t.value = r[t.key]), t))), n;
|
|
575
576
|
})), i;
|
|
576
|
-
},
|
|
577
|
+
}, ei = (a) => {
|
|
577
578
|
let r = m(a);
|
|
578
579
|
return r == null || r.forEach((i) => {
|
|
579
580
|
let e = {};
|
|
580
581
|
for (let l in i)
|
|
581
582
|
e[l.toUpperCase()] = i[l];
|
|
582
583
|
}), r;
|
|
583
|
-
},
|
|
584
|
+
}, ai = async (a) => {
|
|
584
585
|
var o, t, c, y, f;
|
|
585
586
|
let r = (t = (o = a == null ? void 0 : a[0]) == null ? void 0 : o.find((d) => d == null ? void 0 : d.id)) == null ? void 0 : t.id;
|
|
586
587
|
const i = await ce({
|
|
@@ -603,14 +604,14 @@ const ar = {
|
|
|
603
604
|
pageData: r
|
|
604
605
|
}
|
|
605
606
|
});
|
|
606
|
-
},
|
|
607
|
+
}, li = async (a) => {
|
|
607
608
|
let r = a == null ? void 0 : a.map(async (i) => {
|
|
608
609
|
var l, n, o;
|
|
609
610
|
let e;
|
|
610
611
|
return (i == null ? void 0 : i.comp) === "Form" ? e = await wr(i) : (i == null ? void 0 : i.comp) === "Table" && (e = await kr((l = i == null ? void 0 : i.compData) == null ? void 0 : l.find((t) => (t == null ? void 0 : t.key) === "tableContents"), (o = (n = i == null ? void 0 : i.compData) == null ? void 0 : n.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : o.contents)), e;
|
|
611
612
|
});
|
|
612
613
|
await Promise.all(r);
|
|
613
|
-
},
|
|
614
|
+
}, ri = (a) => {
|
|
614
615
|
var l, n, o, t;
|
|
615
616
|
const r = a;
|
|
616
617
|
let i = [];
|
|
@@ -627,7 +628,7 @@ const ar = {
|
|
|
627
628
|
});
|
|
628
629
|
}
|
|
629
630
|
}), r.compData = i, r;
|
|
630
|
-
},
|
|
631
|
+
}, ii = (a) => {
|
|
631
632
|
var n, o, t, c, y;
|
|
632
633
|
const r = (n = a.compData) == null ? void 0 : n.filter((f) => (f == null ? void 0 : f.key) === "tableContents" || (f == null ? void 0 : f.key) === "tableIndex"), i = (t = (o = r == null ? void 0 : r.find((f) => (f == null ? void 0 : f.key) === "tableIndex")) == null ? void 0 : o.contents) == null ? void 0 : t.map((f) => f.label), e = (c = r == null ? void 0 : r.find((f) => (f == null ? void 0 : f.key) === "tableContents")) == null ? void 0 : c.contents;
|
|
633
634
|
let l = [];
|
|
@@ -691,7 +692,7 @@ const ar = {
|
|
|
691
692
|
});
|
|
692
693
|
}
|
|
693
694
|
return i(a, r);
|
|
694
|
-
},
|
|
695
|
+
}, ni = (a) => {
|
|
695
696
|
var i, e, l, n, o, t, c, y, f, d, p, A, C, P, M, j, $, Q, D, B, q, R, X, x, L;
|
|
696
697
|
const r = a;
|
|
697
698
|
if ((a == null ? void 0 : a.comp) === "Table") {
|
|
@@ -733,7 +734,7 @@ const ar = {
|
|
|
733
734
|
}) : [a].forEach((e, l) => {
|
|
734
735
|
i[r[l]] = e;
|
|
735
736
|
}), i;
|
|
736
|
-
},
|
|
737
|
+
}, oi = async (a) => {
|
|
737
738
|
const r = m(a);
|
|
738
739
|
let i = [], e = [];
|
|
739
740
|
r == null || r.forEach((l) => {
|
|
@@ -880,11 +881,11 @@ const ar = {
|
|
|
880
881
|
name: "",
|
|
881
882
|
compData: (Q = ($ = o.data.result) == null ? void 0 : $.map((D) => D.value.pageData)) == null ? void 0 : Q.filter((D) => Object.values(D).length > 0)
|
|
882
883
|
}), d = d.sort((D, B) => D.id - B.id), d;
|
|
883
|
-
},
|
|
884
|
+
}, si = async (a) => {
|
|
884
885
|
await gl({
|
|
885
886
|
id: a
|
|
886
887
|
});
|
|
887
|
-
},
|
|
888
|
+
}, ui = async (a, r, i, e, l, n, o) => {
|
|
888
889
|
var c, y, f, d, p, A, C, P, M, j, $, Q, D;
|
|
889
890
|
const t = ((y = (c = o == null ? void 0 : o.content) == null ? void 0 : c[0]) == null ? void 0 : y.id) ?? "";
|
|
890
891
|
if (t !== "" && ((f = o == null ? void 0 : o.content) == null ? void 0 : f.length) > 1) {
|
|
@@ -915,7 +916,7 @@ const ar = {
|
|
|
915
916
|
tableData: Xe(l, (D = Ne(n)) == null ? void 0 : D.filter((B) => B !== "操作"))
|
|
916
917
|
}
|
|
917
918
|
});
|
|
918
|
-
},
|
|
919
|
+
}, fi = async (a, r, i, e, l, n, o) => {
|
|
919
920
|
var f, d, p, A, C, P, M, j, $, Q;
|
|
920
921
|
const t = await ce({
|
|
921
922
|
id: e
|
|
@@ -944,7 +945,7 @@ const ar = {
|
|
|
944
945
|
},
|
|
945
946
|
id: e
|
|
946
947
|
});
|
|
947
|
-
},
|
|
948
|
+
}, ti = async (a, r) => {
|
|
948
949
|
await Ve({
|
|
949
950
|
value: {
|
|
950
951
|
pageData: r
|
|
@@ -954,7 +955,7 @@ const ar = {
|
|
|
954
955
|
}, Ir = async (a, r) => await ce({
|
|
955
956
|
key: a,
|
|
956
957
|
valueLikes: r
|
|
957
|
-
}),
|
|
958
|
+
}), ci = async () => {
|
|
958
959
|
var a, r, i, e, l, n, o, t, c;
|
|
959
960
|
try {
|
|
960
961
|
const y = await ce({
|
|
@@ -1013,7 +1014,7 @@ const ar = {
|
|
|
1013
1014
|
},
|
|
1014
1015
|
emits: ["change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick"],
|
|
1015
1016
|
setup(a, { emit: r }) {
|
|
1016
|
-
const i = a, e = r, l = K([]), n = K(!1), o = K(), t = Qa(), { activeMenuPath: c } = Ke(t), y = Nr(je), f =
|
|
1017
|
+
const i = a, e = r, l = K([]), n = K(!1), o = K(), t = Qa(), { activeMenuPath: c } = Ke(t), y = Nr(je), f = vl(je), { extraContents: d } = Ke(f), p = K([]);
|
|
1017
1018
|
K(!1);
|
|
1018
1019
|
const A = K("");
|
|
1019
1020
|
K();
|
|
@@ -1084,8 +1085,8 @@ const ar = {
|
|
|
1084
1085
|
if ((me == null ? void 0 : me.length) > 0)
|
|
1085
1086
|
f.setRouteToChildPath(we), t.setActiveMenuPath(oe);
|
|
1086
1087
|
else {
|
|
1087
|
-
const de = await
|
|
1088
|
-
de && (oe = c.value + "/" + (de == null ? void 0 : de[(g = b == null ? void 0 : b[0]) == null ? void 0 : g.label]), await
|
|
1088
|
+
const de = await Tl(i == null ? void 0 : i.index);
|
|
1089
|
+
de && (oe = c.value + "/" + (de == null ? void 0 : de[(g = b == null ? void 0 : b[0]) == null ? void 0 : g.label]), await kl(oe, c.value + "/" + (u == null ? void 0 : u[J])), f.setRouteToChildPath(we), t.setActiveMenuPath(c.value + "/" + (u == null ? void 0 : u[J])));
|
|
1089
1090
|
}
|
|
1090
1091
|
}
|
|
1091
1092
|
let v = await Ha(c.value, sessionStorage.getItem("systemKey"), u.id);
|
|
@@ -1105,7 +1106,7 @@ const ar = {
|
|
|
1105
1106
|
let g = m(u);
|
|
1106
1107
|
g = await ((T = m(g)) == null ? void 0 : T.map(async (k) => {
|
|
1107
1108
|
var s, U, Y, J;
|
|
1108
|
-
const G = await
|
|
1109
|
+
const G = await _l({
|
|
1109
1110
|
url: k == null ? void 0 : k.url
|
|
1110
1111
|
});
|
|
1111
1112
|
let E = URL.createObjectURL(G.data);
|
|
@@ -1214,7 +1215,7 @@ const ar = {
|
|
|
1214
1215
|
var Y;
|
|
1215
1216
|
let U = (Y = I == null ? void 0 : I.find((J) => (J == null ? void 0 : J.label) === (s == null ? void 0 : s.label))) == null ? void 0 : Y.prop;
|
|
1216
1217
|
return U && (s.value = u[U]), s;
|
|
1217
|
-
})), L.value = q.value && ((E = q.value) == null ? void 0 : E.length) > 0 ?
|
|
1218
|
+
})), L.value = q.value && ((E = q.value) == null ? void 0 : E.length) > 0 ? Al(q.value) : b;
|
|
1218
1219
|
};
|
|
1219
1220
|
ra(() => {
|
|
1220
1221
|
B.value = window.innerWidth - 240 * 2;
|
|
@@ -1289,7 +1290,7 @@ const ar = {
|
|
|
1289
1290
|
});
|
|
1290
1291
|
}
|
|
1291
1292
|
l.value = _;
|
|
1292
|
-
let se = (ca = (ta =
|
|
1293
|
+
let se = (ca = (ta = ml(m(l.value))) == null ? void 0 : ta.filter((w) => (w == null ? void 0 : w.type) !== "operate")) == null ? void 0 : ca.map((w, h) => ({
|
|
1293
1294
|
prop: (w == null ? void 0 : w.prop) ?? "a" + h,
|
|
1294
1295
|
column: w.label
|
|
1295
1296
|
}));
|
|
@@ -1470,36 +1471,36 @@ const ar = {
|
|
|
1470
1471
|
]);
|
|
1471
1472
|
};
|
|
1472
1473
|
}
|
|
1473
|
-
},
|
|
1474
|
+
}, di = /* @__PURE__ */ na(Mr, [["__scopeId", "data-v-5390f736"]]);
|
|
1474
1475
|
export {
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1476
|
+
zr as A,
|
|
1477
|
+
di as B,
|
|
1478
|
+
Wr as I,
|
|
1478
1479
|
We as S,
|
|
1479
1480
|
Nr as a,
|
|
1480
1481
|
Xe as b,
|
|
1481
1482
|
Ya as c,
|
|
1482
1483
|
Sl as d,
|
|
1483
|
-
|
|
1484
|
-
|
|
1484
|
+
ri as e,
|
|
1485
|
+
ii as f,
|
|
1485
1486
|
Ha as g,
|
|
1486
1487
|
Ne as h,
|
|
1487
1488
|
er as i,
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1489
|
+
oi as j,
|
|
1490
|
+
ti as k,
|
|
1491
|
+
ci as l,
|
|
1492
|
+
si as m,
|
|
1493
|
+
ui as n,
|
|
1494
|
+
fi as o,
|
|
1494
1495
|
tr as p,
|
|
1495
|
-
|
|
1496
|
-
|
|
1496
|
+
Qr as q,
|
|
1497
|
+
Xr as r,
|
|
1497
1498
|
Il as s,
|
|
1498
|
-
|
|
1499
|
+
ni as t,
|
|
1499
1500
|
hr as u,
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1501
|
+
Yr as v,
|
|
1502
|
+
li as w,
|
|
1503
|
+
Zr as x,
|
|
1504
|
+
ai as y,
|
|
1505
|
+
ei as z
|
|
1505
1506
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as o, reactive as r, onMounted as n, createElementBlock
|
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
3
|
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BPJ7Cu30.js";
|
|
4
4
|
import { u as i, s as p } from "./menu-DV47UKJo.js";
|
|
5
|
-
import { B as u } from "./index-
|
|
5
|
+
import { B as u } from "./index-CiZ2YAhq.js";
|
|
6
6
|
import { S as l } from "./index-CDBkv_Ya.js";
|
|
7
7
|
import { i as d } from "./index-z1F5TOoY.js";
|
|
8
8
|
const _ = { class: "role-wrapper" }, M = /* @__PURE__ */ o({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as u, createVNode as i } from "vue";
|
|
2
|
-
import { B as m } from "./index-
|
|
2
|
+
import { B as m } from "./index-CiZ2YAhq.js";
|
|
3
3
|
import { S as l, i as d } from "./index-z1F5TOoY.js";
|
|
4
4
|
import { u as g, s as p } from "./menu-DV47UKJo.js";
|
|
5
5
|
import { u as f } from "./crypto-8Ga3ud_Q.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./menu-B-wiVQl5.cjs");function a(t){const e=sessionStorage.getItem("loginToken")??"123456";return o.service({url:"/api/sysFile/uploadAvatar",method:"post",data:t,headers:{Authorization:e,"Content-Type":"multipart/form-data"}})}function i(t){const e=sessionStorage.getItem("loginToken")??"123456";return o.service({url:"/api/sysFile/downloadFile",method:"post",data:t,headers:{Authorization:e,Accept:"application/octet-stream"},responseType:"blob"})}exports.downloadAvatarApi=i;exports.uploadAvatarApi=a;
|
|
@@ -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-CK9PyDrN.cjs");const n=require("./menu-B-wiVQl5.cjs"),u=require("./index-
|
|
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-CK9PyDrN.cjs");const n=require("./menu-B-wiVQl5.cjs"),u=require("./index-CZ6afBwK.cjs"),o=require("./index-C2mK8_eD.cjs"),c=require("./index-RqtMCA_6.cjs"),i=e.defineComponent({__name:"index",setup(s){const t=e.reactive({...o.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await c.getActivePageStructureId(r.value)}),(d,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),g=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),g=require("./index-BsItO9KY.cjs"),c=require("./menu-B-wiVQl5.cjs"),B=require("./modelComp-BlAKXNIt.cjs");require("./array-CP2rPazD.cjs");const y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T=require("./index-C31XRLFj.cjs"),F=require("./index-CFs5XhDB.cjs"),O=require("./index-CGCXj04X.cjs"),R={class:"type-select"},b=["onClick"],L={class:"list-icon"},U={__name:"index",setup(V){const u=B.useModelComp(c.pinia),{itemData:r}=c.storeToRefs(u),C=_=>{const d=c.cloneDeep(r.value);d.push({comp:_.comp,name:_.name,compData:[]}),u.setItemData(d)};return(_,d)=>{const i=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g.slotContent),(f,v)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:v},[e.createElementVNode("div",{class:"list-content",onClick:k=>C(f)},[e.createElementVNode("div",L,[e.createVNode(i,{name:f.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(f.name),1)],8,b)]))),128))])}}},z=y._export_sfc(U,[["__scopeId","data-v-1f87163f"]]),H={class:"fill-content"},j={class:"operate-content"},A={class:"collapse-title-content"},G={class:"collapse-title-item"},J={key:1},K=["onClick"],P={class:"icon-content"},Q={key:0,class:"edit-content"},W=["onClick"],X={class:"comp-child"},Y={__name:"index",setup(V){const u=B.useModelComp(c.pinia),{itemData:r,originalData:C}=c.storeToRefs(u),_=e.ref([]);e.ref([]);const d=e.ref([]),i=e.ref([]),f=s=>{var n;let a=(n=c.cloneDeep(i.value))==null?void 0:n.map((t,o)=>(s===o&&(t.content=!0),t));i.value=a},v=s=>{var n;let a=(n=c.cloneDeep(i.value))==null?void 0:n.map((t,o)=>(s===o&&(t.content=!1),t));i.value=a,_.value=c.cloneDeep(r.value)},k=(s,a)=>{var h;let n=(h=c.cloneDeep(i.value))==null?void 0:h.map((l,m)=>(s===m&&(l.content=!1),l));i.value=n;const t=c.cloneDeep(r.value),o=t==null?void 0:t.filter((l,m)=>(m===s&&(l.name=a),l));u.setOriginalData(o),u.setItemData(o)};e.watch(()=>r.value,()=>{var s,a,n;!r.value||((s=r.value)==null?void 0:s.length)===0?_.value=[]:_.value=(a=c.cloneDeep(r.value))==null?void 0:a.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),d.value=_.value,i.value=(n=c.cloneDeep(d.value))==null?void 0:n.map((t,o)=>({id:o,content:!1}))},{deep:!0,immediate:!0});const S=s=>g.getComponent(s),M=(s,a,n)=>{var o,h;if(!s)return;let t=c.cloneDeep(r.value);t=(o=t==null?void 0:t.map((l,m)=>(m===n&&(l.compData=s),l)))==null?void 0:o.filter(l=>(l==null?void 0:l.comp)!=="methodButton"),i.value=(h=c.cloneDeep(t))==null?void 0:h.map((l,m)=>({id:m,content:!1})),u.setOriginalData(t),u.setItemData(t)},q=s=>{O.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const a=c.cloneDeep(r.value),n=a==null?void 0:a.filter((t,o)=>o!==s);u.setOriginalData(n),u.setItemData(n),c.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(s,a)=>{const n=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",H,[a[1]||(a[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",j,[e.createVNode(T.default,{class:"collapse-content",collapseContents:_.value},{title:e.withCtx(({item:t,index:o})=>{var h,l,m,D,E,N,w,x,$,I;return[e.createElementVNode("div",A,[e.createElementVNode("div",G,[(l=(h=i.value)==null?void 0:h.find(p=>p.id===o))!=null&&l.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:t.name&&t.name!==""?"8px":"0px"})},e.toDisplayString(t.name),5)),(D=(m=i.value)==null?void 0:m.find(p=>p.id===o))!=null&&D.content?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(F._sfc_main$2,{modelValue:t.name,"onUpdate:modelValue":p=>t.name=p,onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(N=(E=i.value)==null?void 0:E.find(p=>p.id===o))!=null&&N.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(p=>f(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Edit",style:{width:"16px",height:"16px"}})],8,K))]),e.createElementVNode("div",P,[(x=(w=i.value)==null?void 0:w.find(p=>p.id===o))!=null&&x.content?(e.openBlock(),e.createElementBlock("div",Q,[e.createVNode(n,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(p=>v(o),["stop"])},null,8,["onClick"]),e.createVNode(n,{name:"Save",onClick:e.withModifiers(p=>k(o,t.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(I=($=i.value)==null?void 0:$.find(p=>p.id===o))!=null&&I.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(p=>q(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Delete",style:{width:"16px",height:"16px"}})],8,W))])])]}),content:e.withCtx(({item:t,index:o})=>{var h,l;return[e.createElementVNode("div",X,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S(t.comp+"Operate")),{itemContents:t==null?void 0:t.compData,originalItemContents:(l=(h=d.value)==null?void 0:h.find((m,D)=>D===o))==null?void 0:l.compData,onChange:m=>M(m,t,o)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},Z=y._export_sfc(Y,[["__scopeId","data-v-27bd1564"]]),ee={key:0,class:"show-content"},te={style:{display:"flex"}},oe={__name:"index",setup(V){const u=B.useModelComp(c.pinia),{itemData:r}=c.storeToRefs(u),C=e.ref([]);e.watch(()=>r.value,()=>{var d;!r.value||((d=r.value)==null?void 0:d.length)===0?C.value=[]:C.value=c.cloneDeep(r.value)},{deep:!0,immediate:!0});const _=d=>g.getComponent(d);return(d,i)=>{var f;return((f=C.value)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(v,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.createElementVNode("div",te,e.toDisplayString(v.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:k},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=y._export_sfc(oe,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=Z;exports.modelSelect=z;exports.modelShow=ne;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent as $, computed as F, ref as h, watch as P, createElementBlock as E, openBlock as p, createVNode as v, createElementVNode as j, withCtx as c, createTextVNode as T, toDisplayString as k, resolveComponent as B, createBlock as U, Fragment as V, renderList as z, normalizeStyle as R } from "vue";
|
|
2
2
|
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-lD5FjnBK.js";
|
|
3
|
-
import { d as H, u as L
|
|
3
|
+
import { d as H, u as L } from "./index-nuI9V5ye.js";
|
|
4
4
|
import { E as N } from "./menu-DV47UKJo.js";
|
|
5
5
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
import { S as M } from "./index-CcbZfGsJ.js";
|
|
6
7
|
import { S as x } from "./index-BHtNKL1L.js";
|
|
7
8
|
const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
8
9
|
__name: "index",
|
|
@@ -80,7 +81,7 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
80
81
|
]);
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
|
-
}),
|
|
84
|
+
}), te = /* @__PURE__ */ O(D, [["__scopeId", "data-v-bcb7a17f"]]), G = /* @__PURE__ */ $({
|
|
84
85
|
__name: "index",
|
|
85
86
|
props: {
|
|
86
87
|
itemData: {
|
|
@@ -223,8 +224,8 @@ const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
|
223
224
|
}, 8, ["signPadInfo"]);
|
|
224
225
|
};
|
|
225
226
|
}
|
|
226
|
-
}),
|
|
227
|
+
}), ne = /* @__PURE__ */ O(G, [["__scopeId", "data-v-b9bd887d"]]);
|
|
227
228
|
export {
|
|
228
|
-
|
|
229
|
-
|
|
229
|
+
te as a,
|
|
230
|
+
ne as s
|
|
230
231
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),t=require("./menu-B-wiVQl5.cjs"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),t=require("./menu-B-wiVQl5.cjs"),_=require("./index-CZ6afBwK.cjs"),r=require("./index-Cwjqsu4B.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g={class:"menu-content"},v=l.defineComponent({__name:"index",setup(h){const d=t.useMenuState(t.pinia),{menus:c}=t.storeToRefs(d),p=l.ref([]),f=async()=>{var o,n,u,a;const e=await t.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((o=e==null?void 0:e.data)==null?void 0:o.type)==="success"){let i=(u=(n=e==null?void 0:e.data)==null?void 0:n.result)==null?void 0:u.map(s=>s);return i=(a=t.cloneDeep(i))==null?void 0:a.map(s=>{var m;const b=Object.values((m=s==null?void 0:s.value)==null?void 0:m.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),i}else return[]};l.onMounted(async()=>{var u;const e=await f(),n=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(u=t.cloneDeep(c.value))==null?void 0:u.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];n.push({key:"tableContents",contents:e}),p.value=n});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,o)=>(l.openBlock(),l.createElementBlock("div",g,[l.createVNode(_.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),x=C._export_sfc(v,[["__scopeId","data-v-26f5cadc"]]);exports.default=x;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { resolveComponent as L, createElementBlock as _, openBlock as r, Fragment as j, renderList as q, unref as W, createElementVNode as C, createVNode as D, toDisplayString as E, ref as I, watch as A, withCtx as z, createBlock as G, resolveDynamicComponent as H, createCommentVNode as y, normalizeStyle as X, withModifiers as w } from "vue";
|
|
2
|
-
import { s as Y, g as J } from "./index-
|
|
2
|
+
import { s as Y, g as J } from "./index-CTL7xS-L.js";
|
|
3
3
|
import { p as B, s as V, c as v, E as Z } from "./menu-DV47UKJo.js";
|
|
4
4
|
import { u as S } from "./modelComp-B4I2gbtf.js";
|
|
5
5
|
import "./array-CLz11m07.js";
|
|
6
6
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import ee from "./index-CZtXRS3l.js";
|
|
8
|
-
import { b as te } from "./index-
|
|
8
|
+
import { b as te } from "./index-CcbZfGsJ.js";
|
|
9
9
|
import { E as ne } from "./index-8i6baSTn.js";
|
|
10
10
|
const oe = { class: "type-select" }, se = ["onClick"], ae = { class: "list-icon" }, le = {
|
|
11
11
|
__name: "index",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
|
|
2
2
|
import { u as h, p as k, s as x, c as m, g as M } from "./menu-DV47UKJo.js";
|
|
3
|
-
import { B as D } from "./index-
|
|
3
|
+
import { B as D } from "./index-CiZ2YAhq.js";
|
|
4
4
|
import { a as T, d as B, f as S } from "./index-B3MmxsIn.js";
|
|
5
5
|
import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const N = { class: "menu-content" }, E = /* @__PURE__ */ y({
|
|
@@ -2,7 +2,7 @@ import { defineComponent as o, reactive as n, onMounted as r, createElementBlock
|
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
3
|
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BPJ7Cu30.js";
|
|
4
4
|
import { u as i, s as u } from "./menu-DV47UKJo.js";
|
|
5
|
-
import { B as p } from "./index-
|
|
5
|
+
import { B as p } from "./index-CiZ2YAhq.js";
|
|
6
6
|
import { S as l } from "./index-BQw5HyPd.js";
|
|
7
7
|
import { i as d } from "./index-z1F5TOoY.js";
|
|
8
8
|
const I = /* @__PURE__ */ o({
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { b as e } from "./menu-DV47UKJo.js";
|
|
2
|
+
function r(t) {
|
|
3
|
+
const o = sessionStorage.getItem("loginToken") ?? "123456";
|
|
4
|
+
return e({
|
|
5
|
+
url: "/api/sysFile/uploadAvatar",
|
|
6
|
+
method: "post",
|
|
7
|
+
data: t,
|
|
8
|
+
headers: {
|
|
9
|
+
Authorization: o,
|
|
10
|
+
"Content-Type": "multipart/form-data"
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function s(t) {
|
|
15
|
+
const o = sessionStorage.getItem("loginToken") ?? "123456";
|
|
16
|
+
return e({
|
|
17
|
+
url: "/api/sysFile/downloadFile",
|
|
18
|
+
method: "post",
|
|
19
|
+
data: t,
|
|
20
|
+
headers: {
|
|
21
|
+
Authorization: o,
|
|
22
|
+
Accept: "application/octet-stream"
|
|
23
|
+
// 明确要求返回二进制流
|
|
24
|
+
},
|
|
25
|
+
responseType: "blob"
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
s as d,
|
|
30
|
+
r as u
|
|
31
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),p=require("./menu-B-wiVQl5.cjs"),w=require("./crypto-Cd99aqcx.cjs"),I=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),p=require("./menu-B-wiVQl5.cjs"),w=require("./crypto-Cd99aqcx.cjs"),I=require("./index-C2UyEyuW.cjs"),T=require("./index-CFs5XhDB.cjs"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=w.useLoginState(p.pinia),{loginUserInfo:u,cryptoInfo:m}=p.storeToRefs(U),F=p.useMenuState(p.pinia),{activeMenuPath:h}=p.storeToRefs(F),D=n.ref(0);var E,k,N,B;const O=n.ref([{label:"",name:"account",value:(E=u.value)==null?void 0:E.account},{label:"",name:"userDept",value:(k=u.value)==null?void 0:k.userDept},{label:"",name:"userRoles",value:(B=(N=u.value)==null?void 0:N.userRoles)==null?void 0:B.join("、")}]),j=()=>{},b=n.ref(!1),C=n.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),A=n.ref([{label:"签字版",icon:p.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:p.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:p.upload_filled_default,type:"buttonUpload",disabled:!1}]),R=n.ref(!1),V=n.computed(()=>{var t;const s=sessionStorage.getItem("authority"),e=JSON.parse(s||"");return Array.isArray(e)?(R.value=!(e!=null&&e.includes(`${h.value}/上传头像`)),(t=A.value)==null?void 0:t.map(r=>({...r,disabled:!(e!=null&&e.includes(`${h.value}/签名`))}))):typeof e=="string"&&(e==null?void 0:e.toUpperCase())==="SUPERADMIN"?A.value:[]}),W=n.computed(()=>[{key:"signConfig",contents:C},{key:"signTypeList",contents:V.value}]),H=s=>{C.dialogShow=s.label==="电子签名"},x=()=>{C.dialogShow=!1},M=async s=>{var t,r,o,l,a,i,c,g,f;const e=await p.getInsofDataApi({id:s,key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:"/系统管理/用户管理"}});if(((t=e==null?void 0:e.data)==null?void 0:t.code)===200&&e.data.result&&Array.isArray(e.data.result)&&e.data.result.length>0){const y={...(l=(o=(r=e.data.result)==null?void 0:r[0])==null?void 0:o.value)==null?void 0:l.tableData,id:(i=(a=e.data.result)==null?void 0:a[0])==null?void 0:i.id,layer:(f=(g=(c=e.data.result)==null?void 0:c[0])==null?void 0:g.key)==null?void 0:f.layer};U.setLoginUserInfo(y)}},q=async s=>{var e,t,r;try{const o=await p.updateInsofDataApi({id:(e=u.value)==null?void 0:e.id,value:{tableData:s}});((t=o==null?void 0:o.data)==null?void 0:t.code)===200&&(x(),p.ElMessage.success("修改成功"),await M((r=u.value)==null?void 0:r.id),b.value=!1)}catch{p.ElMessage.error("修改响应失败"),b.value=!1}},z=async(s,e)=>{var r;const t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",[s]:e};b.value=!0,await q(t)},v=n.reactive({baseCols:[],otherCols:[]}),K=n.ref([]),P=n.ref(),J=(s,e,t)=>{var l,a,i,c,g;let r;const o=e;((a=(l=u.value)==null?void 0:l.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?r=w.decryptData((i=u.value)==null?void 0:i.password,(c=m==null?void 0:m.value)==null?void 0:c.privateKey):r=(g=u.value)==null?void 0:g.password,r===o?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},Z=(s,e,t)=>{e?/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]).{6,}$/.test(e)?t():t(new Error("密码必须包含大写字母、小写字母、数字和特殊字符,并且长度至少为6个字符")):t(new Error("请输入密码"))},G=(s,e,t)=>{var r;e!==((r=P.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},Q=async()=>{var e,t,r,o,l,a,i,c,g;const s=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"/系统管理/用户管理"}});if(((e=s==null?void 0:s.data)==null?void 0:e.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const f=(i=(a=(l=(o=(r=s.data.result)==null?void 0:r[0])==null?void 0:o.value)==null?void 0:l.pageData)==null?void 0:a.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="header"),y=["password","status","userDept","avatar","signature","account","userRoles","layer"];v.baseCols=f&&((c=f.contents)==null?void 0:c.map(d=>({...d,isFormColHidden:(y==null?void 0:y.includes(d==null?void 0:d.prop))||(d==null?void 0:d.label)==="操作"})));const S=(g=f.contents)==null?void 0:g.find(d=>(d==null?void 0:d.prop)==="password"),$=[{...S,label:"当前密码",prop:"currentPass",validator:J},{...S,label:"新密码",prop:"newtPass",validator:Z},{...S,label:"确认密码",prop:"confirmNewPass",validator:G}];v.otherCols=$,ee(u.value)}},X=s=>{P.value=s},Y=async({content:s,buttonName:e})=>{var r,o,l,a,i;let t;e==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(o=u.value)==null?void 0:o.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:w.encryptData(s==null?void 0:s.confirmNewPass,(a=m.value)==null?void 0:a.publicKey)}),e==="保存基本信息"&&(t={...u.value,...s,status:((i=u.value)==null?void 0:i.status)??"启用"}),b.value=!0,await q(t)},_=()=>{const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},e=sessionStorage.getItem("authority"),t=JSON.parse(e||"");if(Array.isArray(t)){const r=t!=null&&t.includes(`${h.value}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${h.value}/修改密码`)?s==null?void 0:s.other:[];return{base:r,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},ee=s=>{var e,t,r,o,l;_(),K.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(e=v.baseCols)==null?void 0:e.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:s[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=_())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=v.otherCols)==null?void 0:r.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(o=v.otherCols)==null?void 0:o.reduce((a,i)=>(a[i.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(c,g,f)=>i.validator(c,g,f),trigger:"blur"}],a),{}),buttonValue:(l=_())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},te=Object.freeze(Object.defineProperty({__proto__:null,beforeSignDestroy:x,changeFormTrigger:X,clickFormButton:j,clickSignButton:H,clickTabButton:Y,getUserTableHeadersAsync:Q,itemData:W,loading:b,refreshLoginUserInfoAsync:M,rowContents:O,signPadInfo:C,signTypes:V,submitImageAsync:z,tabKey:D,tabsContents:K,tempSignTypes:A,uploadDisabled:R},Symbol.toStringTag,{value:"Module"})),ae={class:"personal-wrapper"},se={class:"personal-box left"},re={class:"base-avatar"},ne={class:"center-avatar"},oe={class:"base-info"},le={class:"base-signature"},ie={class:"personal-box right"},ue=n.defineComponent({__name:"index",setup(s){const e=n.reactive({...te}),t=w.useLoginState(),{loginUserInfo:r}=p.storeToRefs(t);return n.onMounted(()=>{var o;e.getUserTableHeadersAsync(),e.refreshLoginUserInfoAsync((o=r==null?void 0:r.value)==null?void 0:o.id),D.value++}),(o,l)=>{const a=n.resolveDirective("loading");return n.openBlock(),n.createElementBlock("div",ae,[n.createElementVNode("div",se,[n.createElementVNode("div",re,[n.withDirectives((n.openBlock(),n.createElementBlock("div",ne,[n.createVNode(I.ssAvatar,{disabled:e.uploadDisabled,userInfo:n.unref(r),onSubmitImage:l[0]||(l[0]=i=>e.submitImageAsync("avatarUrl",i))},null,8,["disabled","userInfo"])])),[[a,e.loading]])]),n.createElementVNode("div",oe,[n.createVNode(T.ssForm,{rowContents:e.rowContents,isEnableWrap:!1,isButtonRow:!0,isEdit:!1},null,8,["rowContents"])]),n.createElementVNode("div",le,[n.createVNode(I.ssSignature,{userInfo:n.unref(r),itemData:e.itemData,onClickSignButton:e.clickSignButton,onBeforeDestroy:e.beforeSignDestroy,onClickSubmitSign:l[1]||(l[1]=i=>e.submitImageAsync("signature",i))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"])])]),n.createElementVNode("div",ie,[(n.openBlock(),n.createBlock(T.ssTab,{key:n.unref(D),tabsContents:e.tabsContents,onChangeTrigger:e.changeFormTrigger,onClickTrigger:e.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])])}}}),de=L._export_sfc(ue,[["__scopeId","data-v-a55e627c"]]);exports.default=de;
|