ss-component-new 1.2.35 → 1.2.37
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-FxU_fujo.js → index-B-xelo5W.js} +25 -24
- package/dist/{index-BGawVO8_.js → index-BPzUmT8-.js} +1 -1
- package/dist/index-CagsR3TK.cjs +1 -0
- package/dist/{index-DBOGQ_8_.cjs → index-ClnJ1K8q.cjs} +1 -1
- package/dist/index-CqzA5JZV.js +2761 -0
- package/dist/{index-vdrqZ1gy.cjs → index-DXY5_0gS.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DiudRKdf.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BV1JZ-3O.js} +5636 -5636
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B5SNVNAy.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DNHgx7h4.cjs} +7 -7
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +1 -1
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +2 -2
- package/package.json +1 -1
- package/dist/index-2Lh3QPTd.cjs +0 -1
- package/dist/index-sATQxsrK.js +0 -2761
|
@@ -4,10 +4,10 @@ import { a as ne, u as oe, p as ce, E as K, s as ye, b as pe, g as q } from "./i
|
|
|
4
4
|
import { d as re, r as ge, g as ve, c as me, b as be, e as he, f as _e, h as we } from "./index.vue_vue_type_style_index_1_lang-6KO-EDQa.js";
|
|
5
5
|
import { useRouter as Ae } from "vue-router";
|
|
6
6
|
import { v as Ce } from "./index-DdWJf1s4.js";
|
|
7
|
-
const ke = {},
|
|
7
|
+
const ke = {}, Ie = { class: "left-wrap" }, Se = { class: "left-bg" };
|
|
8
8
|
function Te(T, M) {
|
|
9
|
-
return W(), J("div",
|
|
10
|
-
m("div",
|
|
9
|
+
return W(), J("div", Ie, [
|
|
10
|
+
m("div", Se, [
|
|
11
11
|
$(T.$slots, "img", {}, void 0, !0)
|
|
12
12
|
])
|
|
13
13
|
]);
|
|
@@ -26,7 +26,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
26
26
|
},
|
|
27
27
|
emits: ["clickLogin", "handleTabChange"],
|
|
28
28
|
setup(T, { emit: M }) {
|
|
29
|
-
const b = E("account"), d = M,
|
|
29
|
+
const b = E("account"), d = M, I = () => {
|
|
30
30
|
d("clickLogin", b.value);
|
|
31
31
|
}, h = (u) => {
|
|
32
32
|
d("handleTabChange", u);
|
|
@@ -51,7 +51,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
51
51
|
]),
|
|
52
52
|
m("div", {
|
|
53
53
|
class: "tab-button special",
|
|
54
|
-
onClick:
|
|
54
|
+
onClick: I
|
|
55
55
|
}, [
|
|
56
56
|
k(p, { loading: T.loading }, {
|
|
57
57
|
default: y(() => [
|
|
@@ -103,7 +103,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
103
103
|
const b = T, d = se({
|
|
104
104
|
account: "",
|
|
105
105
|
password: ""
|
|
106
|
-
}),
|
|
106
|
+
}), I = se({
|
|
107
107
|
account: [
|
|
108
108
|
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
109
109
|
],
|
|
@@ -129,7 +129,7 @@ const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9
|
|
|
129
129
|
return W(), J("div", Ve, [
|
|
130
130
|
k(w, {
|
|
131
131
|
model: d,
|
|
132
|
-
rules:
|
|
132
|
+
rules: I,
|
|
133
133
|
ref_key: "formRef",
|
|
134
134
|
ref: h
|
|
135
135
|
}, {
|
|
@@ -205,19 +205,19 @@ const Re = { class: "account-wrap" }, Oe = { class: "video-wrap" }, Fe = /* @__P
|
|
|
205
205
|
},
|
|
206
206
|
emits: ["handleLoginFormChange"],
|
|
207
207
|
setup(T, { emit: M }) {
|
|
208
|
-
const b = T, d = M,
|
|
208
|
+
const b = T, d = M, I = oe(ce), h = E(null), u = E(null);
|
|
209
209
|
let g = !1;
|
|
210
210
|
const p = async (r) => {
|
|
211
211
|
if (!r)
|
|
212
212
|
return;
|
|
213
213
|
const w = new FormData();
|
|
214
214
|
w.set("file", r), b.systemKey && w.set("systemKey", b.systemKey), console.log("Face Recognition", b.systemKey);
|
|
215
|
-
const A = await De(w), { data:
|
|
215
|
+
const A = await De(w), { data: S } = A || {}, { account: L, password: U, layer: x } = (S == null ? void 0 : S.data) || {}, D = S == null ? void 0 : S.msg;
|
|
216
216
|
if (!L) {
|
|
217
217
|
K.warning(D || "识别失败,请重新识别!");
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
|
-
const { privateKey: O } = await
|
|
220
|
+
const { privateKey: O } = await I.getModelSecretAsync();
|
|
221
221
|
let R = U;
|
|
222
222
|
x !== "superAdmin" && (R = re(U, O)), d("handleLoginFormChange", !0, {
|
|
223
223
|
account: L,
|
|
@@ -228,8 +228,8 @@ const Re = { class: "account-wrap" }, Oe = { class: "video-wrap" }, Fe = /* @__P
|
|
|
228
228
|
return;
|
|
229
229
|
const r = u.value, w = r.getContext("2d"), A = h.value;
|
|
230
230
|
r.width = 200, r.height = 200;
|
|
231
|
-
const
|
|
232
|
-
w == null || w.drawImage(A, 0, 0,
|
|
231
|
+
const S = A.videoWidth || 640, L = A.videoHeight || 480, U = Math.min(200 / S, 200 / L), x = S * U, D = L * U, O = (200 - x) / 2, R = (200 - D) / 2;
|
|
232
|
+
w == null || w.drawImage(A, 0, 0, S, L, O, R, x, D), r.toBlob((G) => {
|
|
233
233
|
if (G) {
|
|
234
234
|
const Z = new File([G], "face.png", { type: "image/png" });
|
|
235
235
|
p(Z);
|
|
@@ -300,7 +300,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
300
300
|
},
|
|
301
301
|
emits: ["change"],
|
|
302
302
|
setup(T, { emit: M }) {
|
|
303
|
-
const b = Ae(), d = oe(ce), { systemKey:
|
|
303
|
+
const b = Ae(), d = oe(ce), { systemKey: I, systemInfo: h, loginUserInfo: u } = ye(d), g = E({
|
|
304
304
|
// sysCTitle: 'INSOFWORKS',
|
|
305
305
|
sysCTitle: "",
|
|
306
306
|
sysETitle: "",
|
|
@@ -327,7 +327,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
327
327
|
_.value = !0;
|
|
328
328
|
}, w = (a, t) => {
|
|
329
329
|
_.value = !1, a && Z(t);
|
|
330
|
-
}, A = (a) => ve(a),
|
|
330
|
+
}, A = (a) => ve(a), S = (a) => {
|
|
331
331
|
let t;
|
|
332
332
|
const s = me(a), n = be(s), l = he(n), f = _e(l, "parentPath");
|
|
333
333
|
return t = we(f), t;
|
|
@@ -339,7 +339,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
339
339
|
return "superAdmin";
|
|
340
340
|
if (Array.isArray(s)) {
|
|
341
341
|
if ((s == null ? void 0 : s.length) === 1) {
|
|
342
|
-
const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === (s == null ? void 0 : s[0]) || e.角色名称 === (s == null ? void 0 : s[0])), C = A(o), c =
|
|
342
|
+
const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === (s == null ? void 0 : s[0]) || e.角色名称 === (s == null ? void 0 : s[0])), C = A(o), c = S(o == null ? void 0 : o[C]);
|
|
343
343
|
return o && c && Array.isArray(c) ? o ? c == null ? void 0 : c.flatMap((e) => e.checkedButtons) : [] : [];
|
|
344
344
|
}
|
|
345
345
|
if ((s == null ? void 0 : s.length) > 1) {
|
|
@@ -349,7 +349,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
if (typeof s == "string") {
|
|
352
|
-
const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === s || (e == null ? void 0 : e.角色名称) === s), C = A(o), c =
|
|
352
|
+
const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === s || (e == null ? void 0 : e.角色名称) === s), C = A(o), c = S(o == null ? void 0 : o[C]);
|
|
353
353
|
return o && c && Array.isArray(c) ? o ? c == null ? void 0 : c.flatMap((e) => e.checkedButtons) : [] : [];
|
|
354
354
|
}
|
|
355
355
|
} catch (o) {
|
|
@@ -362,7 +362,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
362
362
|
const l = await q({
|
|
363
363
|
key: {
|
|
364
364
|
// systemKey: user?.systemKey,
|
|
365
|
-
systemKey:
|
|
365
|
+
systemKey: I.value ? I.value : a == null ? void 0 : a.systemKey,
|
|
366
366
|
// pageKey: '/系统管理/角色管理',
|
|
367
367
|
pageKey: "系统管理/角色管理",
|
|
368
368
|
type: "data"
|
|
@@ -382,12 +382,12 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
382
382
|
var t, s, n, l, f, o, C;
|
|
383
383
|
try {
|
|
384
384
|
let c = [], e, P, F;
|
|
385
|
-
|
|
385
|
+
I.value ? F = {
|
|
386
386
|
// pageKey: '/系统管理/用户管理',
|
|
387
387
|
pageKey: "系统管理/用户管理",
|
|
388
388
|
type: "data",
|
|
389
389
|
// 通过electron传递的值获取模型key,解决多账号导入同一模型,账号名重复权限失败问题
|
|
390
|
-
systemKey:
|
|
390
|
+
systemKey: I.value
|
|
391
391
|
} : F = {
|
|
392
392
|
// pageKey: '/系统管理/用户管理',
|
|
393
393
|
pageKey: "系统管理/用户管理",
|
|
@@ -453,7 +453,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
453
453
|
if (t != null && t.matchedUser) {
|
|
454
454
|
d.setLoginUserInfo(t.matchedUser), sessionStorage.setItem("authority", JSON.stringify(t.userAuthority));
|
|
455
455
|
const f = ((n = (s = t.matchedUser) == null ? void 0 : s.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
456
|
-
return sessionStorage.setItem("isSuperAdmin", JSON.stringify(f)), sessionStorage.setItem("systemKey",
|
|
456
|
+
return sessionStorage.setItem("isSuperAdmin", JSON.stringify(f)), sessionStorage.setItem("systemKey", I.value ? I.value : (l = t.matchedUser) == null ? void 0 : l.systemKey), await O(t.matchedUser), !0;
|
|
457
457
|
} else
|
|
458
458
|
throw v.value = !1, new Error("该用户数据处理失败,请联系管理员");
|
|
459
459
|
}, O = async (a) => {
|
|
@@ -462,7 +462,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
462
462
|
key: {
|
|
463
463
|
// pageKey: '/user',
|
|
464
464
|
layer: "superAdmin",
|
|
465
|
-
systemKey:
|
|
465
|
+
systemKey: I.value ? I.value : a == null ? void 0 : a.systemKey
|
|
466
466
|
// systemKey: user?.systemKey
|
|
467
467
|
}
|
|
468
468
|
});
|
|
@@ -483,11 +483,12 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
483
483
|
}, G = async () => {
|
|
484
484
|
var a, t, s;
|
|
485
485
|
try {
|
|
486
|
-
const n = await pe.post("http://
|
|
486
|
+
const n = await pe.post("http://222.92.178.198:62001/api/sysAuth/login", {
|
|
487
487
|
account: "superadmin",
|
|
488
488
|
password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
|
|
489
489
|
codeId: 0,
|
|
490
|
-
code: ""
|
|
490
|
+
code: "",
|
|
491
|
+
tenantId: -1
|
|
491
492
|
});
|
|
492
493
|
return ((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("magicToken", (s = (t = n.data) == null ? void 0 : t.result) == null ? void 0 : s.accessToken), !0) : !1;
|
|
493
494
|
} catch (n) {
|
|
@@ -567,7 +568,7 @@ const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class:
|
|
|
567
568
|
])
|
|
568
569
|
]));
|
|
569
570
|
}
|
|
570
|
-
}), sa = /* @__PURE__ */ z(Qe, [["__scopeId", "data-v-
|
|
571
|
+
}), sa = /* @__PURE__ */ z(Qe, [["__scopeId", "data-v-0d08102c"]]);
|
|
571
572
|
export {
|
|
572
573
|
sa as default
|
|
573
574
|
};
|
|
@@ -5,7 +5,7 @@ import "./array-D7EDjc7l.js";
|
|
|
5
5
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import "./index.vue_vue_type_style_index_1_lang-6KO-EDQa.js";
|
|
7
7
|
import "./index.vue_vue_type_style_index_0_scoped_92477073_lang--woCJ_em.js";
|
|
8
|
-
import "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-
|
|
8
|
+
import "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BV1JZ-3O.js";
|
|
9
9
|
import "./index-BHtNKL1L.js";
|
|
10
10
|
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTRnGkVw.js";
|
|
11
11
|
import "./index.vue_vue_type_style_index_1_lang-jt5oqPmv.js";
|