ss-component-new 1.2.26 → 1.2.28
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/{MTLLoader-j7rSXeZy.js → MTLLoader-BreJsr54.js} +1 -1
- package/dist/{MTLLoader-CSavblQS.cjs → MTLLoader-Cqv49Ps8.cjs} +1 -1
- package/dist/{OrbitControls-BYxGl2XB.js → OrbitControls-BCu-cP7k.js} +1 -1
- package/dist/{OrbitControls-dRON011u.cjs → OrbitControls-C956u7BP.cjs} +1 -1
- package/dist/{animationData-rmZ0EGb8.cjs → animationData-C3-BiUgV.cjs} +1 -1
- package/dist/{animationData-Br4BCkiq.js → animationData-CMjNjOqc.js} +4 -4
- package/dist/{array-CeASBMWY.cjs → array-0u9Sf3UC.cjs} +1 -1
- package/dist/{array-Cx8FbegO.js → array-BGIM4b6g.js} +2 -2
- package/dist/{dataUtil-RzgUhlgJ.cjs → dataUtil-BFjWNDM1.cjs} +1 -1
- package/dist/{dataUtil-CJxHUail.js → dataUtil-D9l7-XhR.js} +2 -2
- package/dist/{fileUtil-BM6WhafY.cjs → fileUtil-BFtJHTM0.cjs} +1 -1
- package/dist/{fileUtil-BVzW5lTY.js → fileUtil-D7XVXEhb.js} +1 -1
- package/dist/{iconfont-J7S-v_zE.js → iconfont-B9Cj3DQM.js} +2 -2
- package/dist/{iconfont-Dsx_JtWY.cjs → iconfont-BDfcbq2v.cjs} +1 -1
- package/dist/icons/svg//344/272/272/345/203/217.svg +1 -0
- package/dist/{index-ClzEamlP.js → index-3QB55tXZ.js} +7 -7
- package/dist/{index-BGm3sgAn.cjs → index-B33wtiif.cjs} +1 -1
- package/dist/{index-D7wMQSEM.js → index-B8bpiPXB.js} +1 -1
- package/dist/{index-BvgHldVC.cjs → index-B9TlIok8.cjs} +12 -12
- package/dist/{index-DbHiWNBM.cjs → index-BWxbWhC9.cjs} +1 -1
- package/dist/{index-BoTEVRWS.js → index-BZwQB2HO.js} +5 -5
- package/dist/{index-DRSU72SE.js → index-BaE0DPgC.js} +66 -59
- package/dist/{index-DN8avrWv.cjs → index-BccOOMaP.cjs} +1 -1
- package/dist/index-BgHY8wmn.cjs +1 -0
- package/dist/{index-DpxXt1oz.js → index-Boazv8yC.js} +2 -2
- package/dist/{index-D5YeHxKp.js → index-BqRVuEsE.js} +6 -6
- package/dist/{index-CyNvD7fs.js → index-BwLaQntz.js} +1 -1
- package/dist/{index-Dr7mB3zJ.js → index-C-8LROmP.js} +2 -2
- package/dist/{index-DcT0aYIX.js → index-C1lZkQG-.js} +423 -423
- package/dist/{index-DWBL8V_4.js → index-C5UpEVah.js} +2 -2
- package/dist/index-C5fTUrKx.js +573 -0
- package/dist/{index-BH-cEIyF.cjs → index-C9_Cxm8G.cjs} +1 -1
- package/dist/{index-D5fqqSXr.cjs → index-CBFF2bsB.cjs} +1 -1
- package/dist/{index-YhB_cMji.cjs → index-CC9RkSBT.cjs} +1 -1
- package/dist/{index-BJkToJcC.cjs → index-CK5VdzmO.cjs} +1 -1
- package/dist/{index-CeWLT1YO.js → index-CKY0sj_X.js} +3 -3
- package/dist/{index-Cm99VII_.js → index-CMwwUi6o.js} +6 -6
- package/dist/{index-DjMSxB8D.cjs → index-CP7b7BrB.cjs} +1 -1
- package/dist/{index-BU5WJczo.js → index-CZu3TggJ.js} +1 -1
- package/dist/{index-Bp0GMpLC.cjs → index-C_cWjavY.cjs} +1 -1
- package/dist/{index-DVv2nM9_.cjs → index-Cd9j5j41.cjs} +1 -1
- package/dist/{index-B7l9bX5c.cjs → index-Cwh5m4lg.cjs} +1 -1
- package/dist/index-D0XPyuy4.cjs +1 -0
- package/dist/{index-lw6M4N-Q.cjs → index-D3TgRd-7.cjs} +1 -1
- package/dist/{index-Ie0BUTFu.js → index-D5Dtcn-_.js} +6 -6
- package/dist/{index-Bp5zOMHT.cjs → index-DE-uHAMH.cjs} +1 -1
- package/dist/{index-T2VihBuZ.js → index-DHOcRi3S.js} +6 -6
- package/dist/{index-CMIII30g.cjs → index-DMyPjpxO.cjs} +1 -1
- package/dist/{index-BvB9p0W4.js → index-DR7aNxVH.js} +4 -4
- package/dist/{index-0dw7iEtO.cjs → index-DVqfroe6.cjs} +1 -1
- package/dist/{index-ggXXcZCO.js → index-DiTYB-a4.js} +63 -58
- package/dist/index-DnFxL5wb.cjs +1 -0
- package/dist/{index-CaGluCnk.js → index-DqR3IwgZ.js} +12 -12
- package/dist/{index-zAZNzNG-.js → index-DsCD1neC.js} +2 -2
- package/dist/{index-CNxiv6y5.js → index-Dx2X9pR1.js} +43 -43
- package/dist/{index-C2B83Ywj.cjs → index-GGokR_Lx.cjs} +1 -1
- package/dist/{index-7pDDKkwc.js → index-HduGypr9.js} +34 -34
- package/dist/index-LcnC2GQ4.cjs +1 -0
- package/dist/{index-DoWGbQss.js → index-OTxJnh9Z.js} +153 -153
- package/dist/{index-DodooTli.js → index-Rr9ZBYig.js} +2 -2
- package/dist/{index-BEfXSiWp.js → index-Sa2hQZ0h.js} +2 -2
- package/dist/{index-BkcjJQlg.cjs → index-TKouySTA.cjs} +1 -1
- package/dist/{index-veEr0Ju4.js → index-gPnrvvE9.js} +1324 -1321
- package/dist/{index-BPxe8bKe.js → index-gXbhagnF.js} +3 -3
- package/dist/{index-CAPstY_B.cjs → index-mpoVA-DC.cjs} +1 -1
- package/dist/{index-C9GfFRyr.cjs → index-uIVtG4RY.cjs} +1 -1
- package/dist/index-wQJN1jpI.js +2466 -0
- package/dist/index-zLkhy4JK.cjs +1 -0
- package/dist/{index-DFbvbOsE.js → index-zZ9bfGNx.js} +1 -1
- package/dist/{index-DMHh2MZZ.cjs → index-znR89ub7.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DGl2lQmW.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BWh0GUiI.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BjBzi9R7.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BQiH2RRX.js} +11 -11
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BwjCaKYV.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-Dqpyi0E8.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-D21h7jT_.cjs +37 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DZGhek9_.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-PE_6dfIO.js} +12719 -12591
- package/dist/{index.vue_vue_type_style_index_1_lang-BHt4rvMd.js → index.vue_vue_type_style_index_1_lang-9ANlnWKt.js} +5 -5
- package/dist/index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs +32 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-C2PJ2fvM.cjs → index.vue_vue_type_style_index_1_lang-D4RvHwPS.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-WD8HOZyf.js → index.vue_vue_type_style_index_1_lang-DwvuVXW6.js} +2580 -2471
- package/dist/{isString-BbPmUYHG.js → isString-BuBBWjRr.js} +1 -1
- package/dist/{main-DWa3MZxf.js → main-DpLQlLK2.js} +5 -5
- package/dist/{main-DlDkQh0n.cjs → main-Mx9r7ydp.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-CBsLcTcX.js → threeModel-CZ-qFwwk.js} +5 -5
- package/dist/{threeModel-Dt9Ounip.cjs → threeModel-DTwQnnAO.cjs} +1 -1
- package/dist/{threePreview-DSMFTIuC.cjs → threePreview-CUGoEzKf.cjs} +1 -1
- package/dist/{threePreview-D99A_IHZ.js → threePreview-DutKTPWH.js} +4 -4
- package/dist/{threeSceneView-BD22yXw4.js → threeSceneView-CzgWYHBw.js} +11 -11
- package/dist/{threeSceneView-Dv2uGsTN.cjs → threeSceneView-f1V-z4jr.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CpBphI9E.js → threeSceneViewForCPMPIP-2sXIw3I1.js} +61 -61
- package/dist/{threeSceneViewForCPMPIP-DfaTaroP.cjs → threeSceneViewForCPMPIP-CojHDVHC.cjs} +1 -1
- package/dist/{threeTrackPathView-BGePzJh4.cjs → threeTrackPathView-BGHiOyJo.cjs} +1 -1
- package/dist/{threeTrackPathView-bFuXaesk.js → threeTrackPathView-DA4_8jas.js} +6 -6
- package/dist/{threeViewerHost-gGHqJpTR.js → threeViewerHost-BNObp9oA.js} +17 -17
- package/dist/{threeViewerHost-bQqnJLh9.cjs → threeViewerHost-D3WDKrIQ.cjs} +1 -1
- package/dist/{urdfTree-nXEMcLFV.cjs → urdfTree-CWStzmk2.cjs} +1 -1
- package/dist/{urdfTree-B2Zs54qS.js → urdfTree-CnkPddyT.js} +1 -1
- package/dist/{workpieceTreePanel-CXD_XizT.js → workpieceTreePanel-BvhFt3Xw.js} +5 -5
- package/dist/{workpieceTreePanel-Brforhya.cjs → workpieceTreePanel-DXyb_Wnw.cjs} +1 -1
- package/package.json +1 -1
- package/public/icons/svg//344/272/272/345/203/217.svg +1 -0
- package/dist/index-B3l8CoGZ.js +0 -2384
- package/dist/index-BRAUJGR3.cjs +0 -1
- package/dist/index-BjRAas3a.cjs +0 -1
- package/dist/index-Cf9NTS7v.cjs +0 -1
- package/dist/index-D3x3jleA.js +0 -654
- package/dist/index-DWTsFx-2.cjs +0 -1
- package/dist/index-Dc8TgzRR.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BKfBwnMQ.cjs +0 -37
- package/dist/index.vue_vue_type_style_index_1_lang-f2wxl9Ai.cjs +0 -32
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-CC9RkSBT.cjs"),_=require("./index-zLkhy4JK.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs");const h=require("./index-B9TlIok8.cjs");require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs");const f=require("./index-Dv1G67_Q.cjs"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V={class:"personal-wrapper"},x={class:"personal-box left"},N={class:"base-avatar"},S={class:"center-avatar"},D={class:"base-info"},E={class:"base-signature"},k={class:"personal-box right"},B=e.defineComponent({__name:"index",setup(T){const t=e.reactive({...l.State}),b=f.useLoginState(),{loginUserInfo:n}=f.storeToRefs(b);return e.onMounted(()=>{var s;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((s=n==null?void 0:n.value)==null?void 0:s.id),l.tabKey.value++}),(s,o)=>{var c,d,u,g,p,m,v;const r=e.resolveComponent("svg-icon"),i=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",x,[e.createElementVNode("div",N,[e.createElementVNode("div",S,[e.withDirectives(e.createVNode(_.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:o[0]||(o[0]=a=>t.submitImageAsync("avatarUrl",a))},null,8,["disabled","userInfo"]),[[i,t.avatarLoading]])])]),e.createElementVNode("div",D,[e.createElementVNode("div",null,[e.createVNode(r,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(_.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=a=>t.submitImageAsync("signature",a))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[i,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(),e.createBlock(h.ssTab,{key:e.unref(l.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[i,t.loading]])])}}}),C=y._export_sfc(B,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=C;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as f, computed as S, reactive as P } from "vue";
|
|
2
|
-
import { s as R, ck as $, cl as j, cj as B, g as _, u as H, p as L, c as J,
|
|
3
|
-
import {
|
|
4
|
-
const A = H(L), { loginUserInfo: o, cryptoInfo: c } = R(A), X =
|
|
2
|
+
import { s as R, ck as $, cl as j, cj as B, g as _, u as H, p as L, c as J, d as x, E as T } from "./index-HduGypr9.js";
|
|
3
|
+
import { aZ as z, u as Z, d as G, r as Q } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
|
|
4
|
+
const A = H(L), { loginUserInfo: o, cryptoInfo: c } = R(A), X = Z(L), { activeMenuPath: g } = R(X), Y = f(0), M = S(() => {
|
|
5
5
|
var s, a, t, r, l, n, e, u, p, d, v;
|
|
6
6
|
return [
|
|
7
7
|
{
|
|
@@ -315,12 +315,12 @@ const A = H(L), { loginUserInfo: o, cryptoInfo: c } = R(A), X = Y(L), { activeMe
|
|
|
315
315
|
signTypes: k,
|
|
316
316
|
signatureLoading: I,
|
|
317
317
|
submitImageAsync: se,
|
|
318
|
-
tabKey:
|
|
318
|
+
tabKey: Y,
|
|
319
319
|
tabsContents: W,
|
|
320
320
|
tempSignTypes: C,
|
|
321
321
|
uploadDisabled: N
|
|
322
322
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
323
323
|
export {
|
|
324
324
|
ge as S,
|
|
325
|
-
|
|
325
|
+
Y as t
|
|
326
326
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { aY as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
-
import { M as X, a8 as G, a2 as J, G as
|
|
4
|
-
import { _ as
|
|
1
|
+
import { defineComponent as x, ref as I, reactive as T, resolveComponent as v, createElementBlock as E, openBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as H, nextTick as N, Fragment as $, withDirectives as q, renderSlot as z, vShow as M } from "vue";
|
|
2
|
+
import { aY as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
|
|
3
|
+
import { M as X, a8 as G, a2 as J, G as D, H as c, aD as R, $ as g } from "./index-HduGypr9.js";
|
|
4
|
+
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const Y = "ElUpload";
|
|
6
6
|
class K extends Error {
|
|
7
7
|
constructor(r, o, n, p) {
|
|
8
8
|
super(r), this.name = "UploadAjaxError", this.status = o, this.method = n, this.url = p;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function B(t, r, o) {
|
|
12
12
|
let n;
|
|
13
13
|
return o.response ? n = `${o.response.error || o.response}` : o.responseText ? n = `${o.responseText}` : n = `fail to ${r.method} ${t} ${o.status}`, new K(n, o.status, r.method, t);
|
|
14
14
|
}
|
|
@@ -34,10 +34,10 @@ const W = (t) => {
|
|
|
34
34
|
for (const [e, i] of Object.entries(t.data))
|
|
35
35
|
G(i) && i.length ? n.append(e, ...i) : n.append(e, i);
|
|
36
36
|
n.append(t.filename, t.file, t.file.name), r.addEventListener("error", () => {
|
|
37
|
-
t.onError(
|
|
37
|
+
t.onError(B(o, t, r));
|
|
38
38
|
}), r.addEventListener("load", () => {
|
|
39
39
|
if (r.status < 200 || r.status >= 300)
|
|
40
|
-
return t.onError(
|
|
40
|
+
return t.onError(B(o, t, r));
|
|
41
41
|
t.onSuccess(Q(r));
|
|
42
42
|
}), r.open(t.method, o, !0), t.withCredentials && "withCredentials" in r && (r.withCredentials = !0);
|
|
43
43
|
const p = t.headers || {};
|
|
@@ -49,7 +49,7 @@ const W = (t) => {
|
|
|
49
49
|
return r.send(n), r;
|
|
50
50
|
}, Z = ["text", "picture", "picture-card"];
|
|
51
51
|
let ee = 1;
|
|
52
|
-
const te = () => Date.now() + ee++, re =
|
|
52
|
+
const te = () => Date.now() + ee++, re = D({
|
|
53
53
|
action: {
|
|
54
54
|
type: String,
|
|
55
55
|
default: "#"
|
|
@@ -63,7 +63,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
63
63
|
},
|
|
64
64
|
data: {
|
|
65
65
|
type: c([Object, Function, Promise]),
|
|
66
|
-
default: () =>
|
|
66
|
+
default: () => R({})
|
|
67
67
|
},
|
|
68
68
|
multiple: Boolean,
|
|
69
69
|
name: {
|
|
@@ -82,7 +82,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
82
82
|
},
|
|
83
83
|
fileList: {
|
|
84
84
|
type: c(Array),
|
|
85
|
-
default: () =>
|
|
85
|
+
default: () => R([])
|
|
86
86
|
},
|
|
87
87
|
autoUpload: {
|
|
88
88
|
type: Boolean,
|
|
@@ -99,7 +99,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
99
99
|
},
|
|
100
100
|
disabled: Boolean,
|
|
101
101
|
limit: Number
|
|
102
|
-
}), Ce =
|
|
102
|
+
}), Ce = D({
|
|
103
103
|
...re,
|
|
104
104
|
beforeUpload: {
|
|
105
105
|
type: c(Function),
|
|
@@ -139,7 +139,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
139
139
|
crossorigin: {
|
|
140
140
|
type: c(String)
|
|
141
141
|
}
|
|
142
|
-
}), ae = { style: { "text-align": "left" } }, oe = { class: "cropper-warp" }, se = { class: "cropper-warp-left" }, ne = ["src"], le = { class: "cropper-warp-right" }, ie = { class: "cropper-warp-right-item" }, ce = { class: "cropper-warp-right-value" }, pe = ["src"], de = { class: "cropper-warp-right-item" }, ue = { class: "cropper-warp-right-value" }, fe = ["src"], ge = { class: "dialog-footer" }, me = /* @__PURE__ */
|
|
142
|
+
}), ae = { style: { "text-align": "left" } }, oe = { class: "cropper-warp" }, se = { class: "cropper-warp-left" }, ne = ["src"], le = { class: "cropper-warp-right" }, ie = { class: "cropper-warp-right-item" }, ce = { class: "cropper-warp-right-value" }, pe = ["src"], de = { class: "cropper-warp-right-item" }, ue = { class: "cropper-warp-right-value" }, fe = ["src"], ge = { class: "dialog-footer" }, me = /* @__PURE__ */ x({
|
|
143
143
|
__name: "index",
|
|
144
144
|
props: {
|
|
145
145
|
title: {
|
|
@@ -149,28 +149,28 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
149
149
|
},
|
|
150
150
|
emits: ["submitImage", "deleteImage"],
|
|
151
151
|
setup(t, { expose: r, emit: o }) {
|
|
152
|
-
const n = o, p =
|
|
152
|
+
const n = o, p = I(), e = T({
|
|
153
153
|
isShowDialog: !1,
|
|
154
154
|
cropperImg: "",
|
|
155
155
|
cropperImgBase64: "",
|
|
156
156
|
cropper: null
|
|
157
157
|
}), i = async (s) => {
|
|
158
|
-
if (!s) return;
|
|
158
|
+
if (e.isShowDialog = !0, !s) return;
|
|
159
159
|
let a = window.URL || window.webkitURL;
|
|
160
|
-
e.cropperImg = a.createObjectURL(s),
|
|
161
|
-
|
|
160
|
+
e.cropperImg = a.createObjectURL(s), N(() => {
|
|
161
|
+
k();
|
|
162
162
|
});
|
|
163
|
-
},
|
|
163
|
+
}, y = () => {
|
|
164
164
|
var s;
|
|
165
165
|
(s = e.cropper) == null || s.destroy(), e.isShowDialog = !1;
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
},
|
|
169
|
-
const s = await
|
|
170
|
-
n("submitImage", { file: s }),
|
|
166
|
+
}, _ = () => {
|
|
167
|
+
y();
|
|
168
|
+
}, b = async () => {
|
|
169
|
+
const s = await S();
|
|
170
|
+
n("submitImage", { file: s }), y();
|
|
171
171
|
}, f = async () => {
|
|
172
172
|
n("deleteImage");
|
|
173
|
-
},
|
|
173
|
+
}, k = () => {
|
|
174
174
|
const s = document.querySelector(".cropper-warp-left-img");
|
|
175
175
|
s && s.setAttribute("crossOrigin", "anonymous"), e.cropper = new V(s, {
|
|
176
176
|
viewMode: 1,
|
|
@@ -186,14 +186,16 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
186
186
|
e.cropperImgBase64 = e.cropper.getCroppedCanvas().toDataURL("image/jpeg");
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
}, S = async () => e != null && e.cropper ? new Promise((s) => {
|
|
190
|
+
var a, m;
|
|
191
|
+
(m = (a = e == null ? void 0 : e.cropper) == null ? void 0 : a.getCroppedCanvas()) == null || m.toBlob((C) => {
|
|
192
|
+
s(C);
|
|
192
193
|
});
|
|
193
|
-
}),
|
|
194
|
+
}) : (await fetch(e.cropperImg)).blob(), F = async (s) => {
|
|
195
|
+
var m;
|
|
194
196
|
let a = window.URL || window.webkitURL;
|
|
195
|
-
e.cropperImg = a.createObjectURL(s.raw), e.cropper.replace(e.cropperImg);
|
|
196
|
-
},
|
|
197
|
+
e.cropperImg = a.createObjectURL(s.raw), (m = e.cropper) == null || m.replace(e.cropperImg);
|
|
198
|
+
}, P = (s) => {
|
|
197
199
|
p.value.clearFiles();
|
|
198
200
|
const a = s[0];
|
|
199
201
|
a.uid = te(), p.value.handleStart(a);
|
|
@@ -201,22 +203,22 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
201
203
|
return r({
|
|
202
204
|
openDialog: i
|
|
203
205
|
}), (s, a) => {
|
|
204
|
-
const
|
|
205
|
-
return
|
|
206
|
+
const m = v("ele-Edit"), C = v("el-icon"), w = v("el-button"), O = v("el-upload"), j = v("el-dialog");
|
|
207
|
+
return U(), E("div", null, [
|
|
206
208
|
u(j, {
|
|
207
209
|
modelValue: e.isShowDialog,
|
|
208
210
|
"onUpdate:modelValue": a[0] || (a[0] = (A) => e.isShowDialog = A),
|
|
209
211
|
width: "769px",
|
|
210
|
-
"before-close":
|
|
212
|
+
"before-close": _
|
|
211
213
|
}, {
|
|
212
214
|
header: d(() => [
|
|
213
215
|
l("div", ae, [
|
|
214
|
-
u(
|
|
216
|
+
u(C, {
|
|
215
217
|
size: "16",
|
|
216
218
|
style: { "margin-right": "3px", display: "inline", "vertical-align": "middle" }
|
|
217
219
|
}, {
|
|
218
220
|
default: d(() => [
|
|
219
|
-
u(
|
|
221
|
+
u(m)
|
|
220
222
|
]),
|
|
221
223
|
_: 1
|
|
222
224
|
}),
|
|
@@ -233,30 +235,30 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
233
235
|
limit: 1,
|
|
234
236
|
"show-file-list": !1,
|
|
235
237
|
"auto-upload": !1,
|
|
236
|
-
"on-change":
|
|
237
|
-
"on-exceed":
|
|
238
|
+
"on-change": F,
|
|
239
|
+
"on-exceed": P
|
|
238
240
|
}, {
|
|
239
241
|
trigger: d(() => [
|
|
240
|
-
u(
|
|
242
|
+
u(w, {
|
|
241
243
|
type: "info",
|
|
242
244
|
icon: "ele-Picture"
|
|
243
245
|
}, {
|
|
244
246
|
default: d(() => a[4] || (a[4] = [
|
|
245
|
-
|
|
247
|
+
h("选择图片")
|
|
246
248
|
])),
|
|
247
249
|
_: 1,
|
|
248
250
|
__: [4]
|
|
249
251
|
})
|
|
250
252
|
]),
|
|
251
253
|
default: d(() => [
|
|
252
|
-
u(
|
|
254
|
+
u(w, {
|
|
253
255
|
onClick: f,
|
|
254
256
|
type: "danger",
|
|
255
257
|
icon: "ele-Picture",
|
|
256
258
|
style: { "margin-left": "8px" }
|
|
257
259
|
}, {
|
|
258
260
|
default: d(() => a[5] || (a[5] = [
|
|
259
|
-
|
|
261
|
+
h("删除图片")
|
|
260
262
|
])),
|
|
261
263
|
_: 1,
|
|
262
264
|
__: [5]
|
|
@@ -265,22 +267,22 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
265
267
|
_: 1
|
|
266
268
|
}, 512),
|
|
267
269
|
l("div", null, [
|
|
268
|
-
u(
|
|
269
|
-
onClick:
|
|
270
|
+
u(w, {
|
|
271
|
+
onClick: _,
|
|
270
272
|
id: "themeBorderButton"
|
|
271
273
|
}, {
|
|
272
274
|
default: d(() => a[6] || (a[6] = [
|
|
273
|
-
|
|
275
|
+
h("取 消")
|
|
274
276
|
])),
|
|
275
277
|
_: 1,
|
|
276
278
|
__: [6]
|
|
277
279
|
}),
|
|
278
|
-
u(
|
|
279
|
-
onClick:
|
|
280
|
+
u(w, {
|
|
281
|
+
onClick: b,
|
|
280
282
|
id: "themeButton"
|
|
281
283
|
}, {
|
|
282
284
|
default: d(() => a[7] || (a[7] = [
|
|
283
|
-
|
|
285
|
+
h("确 定")
|
|
284
286
|
])),
|
|
285
287
|
_: 1,
|
|
286
288
|
__: [7]
|
|
@@ -324,7 +326,7 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
324
326
|
]);
|
|
325
327
|
};
|
|
326
328
|
}
|
|
327
|
-
}), ve = /* @__PURE__ */
|
|
329
|
+
}), ve = /* @__PURE__ */ L(me, [["__scopeId", "data-v-4a19ffcf"]]), ye = /* @__PURE__ */ x({
|
|
328
330
|
__name: "index",
|
|
329
331
|
props: {
|
|
330
332
|
avatarUrl: {
|
|
@@ -346,24 +348,28 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
346
348
|
banClick: {
|
|
347
349
|
type: Boolean,
|
|
348
350
|
default: !1
|
|
351
|
+
},
|
|
352
|
+
clickStop: {
|
|
353
|
+
type: Boolean,
|
|
354
|
+
default: !0
|
|
349
355
|
}
|
|
350
356
|
},
|
|
351
357
|
emits: ["submitImage", "deleteImage", "clickAvatar"],
|
|
352
358
|
setup(t, { emit: r }) {
|
|
353
|
-
const o = t, n =
|
|
359
|
+
const o = t, n = I(), p = I(null), e = r, i = () => !0, y = async () => {
|
|
354
360
|
var f;
|
|
355
361
|
o != null && o.banClick || (e("clickAvatar", o.avatarUrl), (f = n.value) == null || f.openDialog(o.avatarBlob));
|
|
356
|
-
},
|
|
362
|
+
}, _ = async (f) => {
|
|
357
363
|
e("submitImage", f);
|
|
358
|
-
},
|
|
364
|
+
}, b = async () => {
|
|
359
365
|
e("deleteImage");
|
|
360
366
|
};
|
|
361
|
-
return (f,
|
|
362
|
-
const
|
|
363
|
-
return
|
|
364
|
-
u(
|
|
367
|
+
return (f, k) => {
|
|
368
|
+
const S = v("el-avatar");
|
|
369
|
+
return U(), E($, null, [
|
|
370
|
+
u(S, {
|
|
365
371
|
src: t.avatarUrl,
|
|
366
|
-
onClick:
|
|
372
|
+
onClick: y,
|
|
367
373
|
fit: "cover",
|
|
368
374
|
size: t.size,
|
|
369
375
|
ref_key: "avatarRef",
|
|
@@ -382,19 +388,20 @@ const te = () => Date.now() + ee++, re = E({
|
|
|
382
388
|
ref: n,
|
|
383
389
|
title: "更改头像",
|
|
384
390
|
avatarUrl: t.avatarUrl,
|
|
385
|
-
onSubmitImage:
|
|
386
|
-
onDeleteImage:
|
|
391
|
+
onSubmitImage: _,
|
|
392
|
+
onDeleteImage: b
|
|
387
393
|
}, null, 8, ["avatarUrl"]), [
|
|
388
|
-
[M, t.showCropper]
|
|
394
|
+
[M, t.showCropper && (o == null ? void 0 : o.clickStop)]
|
|
389
395
|
])
|
|
390
396
|
], 64);
|
|
391
397
|
};
|
|
392
398
|
}
|
|
393
|
-
}), _e = /* @__PURE__ */
|
|
399
|
+
}), _e = /* @__PURE__ */ L(ye, [["__scopeId", "data-v-82946fb9"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
394
400
|
__proto__: null,
|
|
395
401
|
default: _e
|
|
396
402
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
397
403
|
export {
|
|
404
|
+
ve as C,
|
|
398
405
|
re as a,
|
|
399
406
|
Ce as b,
|
|
400
407
|
te as g,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-TKouySTA.cjs"),r=require("./index-D0XPyuy4.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),i=require("./index-Dv1G67_Q.cjs"),k=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs"),G=require("vue-router"),Q=require("./index-mpoVA-DC.cjs"),X={},Y={class:"left-wrap"},Z={class:"left-bg"};function ee(V,T){return e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("div",Z,[e.renderSlot(V.$slots,"img",{},void 0,!0)])])}const te=P._export_sfc(X,[["render",ee],["__scopeId","data-v-9b7ee6c9"]]),ae={class:"right-wrap"},oe={class:"tab-content"},ne={class:"tab-tips"},se={class:"tab-content"},re={class:"tab-tips"},ce=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(V,{emit:T}){const b=e.ref("account"),p=T,A=()=>{p("clickLogin",b.value)},_=f=>{p("handleTabChange",f)};return(f,m)=>{const g=e.resolveComponent("el-button"),w=e.resolveComponent("el-tab-pane"),v=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(v,{modelValue:b.value,"onUpdate:modelValue":m[0]||(m[0]=l=>b.value=l),class:"right-tabs",onTabChange:_},{default:e.withCtx(()=>[e.createVNode(w,{name:"account"},{label:e.withCtx(()=>[e.renderSlot(f.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",oe,[e.renderSlot(f.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:A},[e.createVNode(g,{loading:V.loading},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",ne,[e.renderSlot(f.$slots,"tabTips1",{},void 0,!0)])]),_:3}),e.createVNode(w,{name:"face"},{label:e.withCtx(()=>[e.renderSlot(f.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",se,[e.renderSlot(f.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",re,[e.renderSlot(f.$slots,"tabTips2",{},void 0,!0)])]),_:3})]),_:3},8,["modelValue"])])}}}),le=P._export_sfc(ce,[["__scopeId","data-v-516c8b4a"]]),ie={class:"account-wrap"},de=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(V,{emit:T}){const b=V,p=e.reactive({account:"",password:""}),A=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),_=e.ref(null),f=T;return e.watch(()=>b.isClickLogin,m=>{var g;m&&(b==null?void 0:b.activeTabName)==="account"&&((g=_.value)==null||g.validate(w=>{var v;for(let l in p)p.hasOwnProperty(l)&&(p[l]=(v=p[l])==null?void 0:v.trim());f("handleLoginFormChange",w,w?p:null)}))},{immediate:!0}),e.watch(()=>b.activeTabName,m=>{var g;m==="account"&&((g=_.value)==null||g.resetFields())}),(m,g)=>{const w=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-input"),l=e.resolveComponent("el-form-item"),h=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(h,{model:p,rules:A,ref_key:"formRef",ref:_},{default:e.withCtx(()=>[e.createVNode(l,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(v,{class:"account-input",modelValue:p.account,"onUpdate:modelValue":g[0]||(g[0]=C=>p.account=C),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(w,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(l,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(v,{class:"account-input",modelValue:p.password,"onUpdate:modelValue":g[1]||(g[1]=C=>p.password=C),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(w,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),ue=P._export_sfc(de,[["__scopeId","data-v-48037c0f"]]);function pe(V){return i.service({url:"http://192.168.124.108:20013/api/face/face-verify",method:"post",data:V})}const fe={class:"account-wrap"},ye={class:"video-wrap"},ge=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(V,{emit:T}){const b=V,p=T,A=i.useLoginState(i.pinia),_=e.ref(null),f=e.ref(null);let m=!1;const g=async l=>{if(!l)return;const h=new FormData;h.set("file",l),b.systemKey&&h.set("systemKey",b.systemKey),console.log("Face Recognition",b.systemKey);const C=await pe(h),{data:S}=C||{},{account:x,password:I,layer:M}=(S==null?void 0:S.data)||{},L=S==null?void 0:S.msg;if(!x){i.ElMessage.error(L||"识别失败,请重新识别!");return}const{privateKey:D}=await A.getModelSecretAsync();let $=I;M!=="superAdmin"&&($=k.decryptData(I,D)),p("handleLoginFormChange",!0,{account:x,password:$})},w=()=>{if(!f.value||!_.value)return;const l=f.value,h=l.getContext("2d"),C=_.value;l.width=200,l.height=200;const S=C.videoWidth||640,x=C.videoHeight||480,I=Math.min(200/S,200/x),M=S*I,L=x*I,D=(200-M)/2,$=(200-L)/2;h==null||h.drawImage(C,0,0,S,x,D,$,M,L),l.toBlob(R=>{if(R){const O=new File([R],"face.png",{type:"image/png"});g(O)}},"image/png")},v=async()=>{if(!_.value||m)return;const l=_.value;try{const h=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1});if(l){const C=l;C.srcObject=h,m=!0}}catch(h){i.ElMessage.warning("摄像头失败: "+h.message)}};return e.watch(()=>b.activeTabName,l=>{l==="face"&&!m&&v()}),e.onMounted(()=>{v()}),(l,h)=>(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("div",ye,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:_,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("button",{class:"face-screenshot",onClick:w},"人脸识别"),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:f,id:"canvas"},null,512)]))}}),me=P._export_sfc(ge,[["__scopeId","data-v-c3d74988"]]);function ve(){const V={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return i.service({url:"/api/sysAuth/login",method:"post",data:V})}const he={class:"login-wrap"},be={class:"login-body"},_e={class:"login-body-item left"},we={class:"title"},Ce={class:"login-body-item right"},Ne=e.defineComponent({__name:"index",props:{oldSystemKey:{}},emits:["change"],setup(V,{emit:T}){const b=G.useRouter(),p=i.useLoginState(i.pinia),{systemKey:A,systemInfo:_,loginUserInfo:f}=i.storeToRefs(p),m=e.ref({sysCTitle:"",sysETitle:"",loginTitle:"账户密码登录",tabs:[{name:"密码登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"人脸识别",btnLabel:"人脸识别",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"刷卡登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"}]}),g=e.ref("account"),w=e.ref(!1),v=e.ref(!1),l=()=>{w.value=!0},h=(a,o)=>{w.value=!1,a&&O(o)},C=a=>k.getFirstArrayProperty(a),S=a=>{let o;const n=k.convertArrayToTree(a),s=k.addPathToTree(n),d=k.getLeafNodesRecursive(s),y=k.groupByField(d,"parentPath");return o=k.handleRowAuthorityRender(y),o},x=(a,o)=>{var s,d,y;const n=(o==null?void 0:o.userRoles)??(o==null?void 0:o.角色名称);try{if(o.layer&&((s=o==null?void 0:o.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN")return"superAdmin";if(Array.isArray(n)){if((n==null?void 0:n.length)===1){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===(n==null?void 0:n[0])||t.角色名称===(n==null?void 0:n[0])),N=C(r),c=S(r==null?void 0:r[N]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}if((n==null?void 0:n.length)>1){let r=a==null?void 0:a.filter(t=>n==null?void 0:n.includes(t.roleName||(t==null?void 0:t.角色名称)));const N=C(r==null?void 0:r[0]),c=(y=(d=r==null?void 0:r.map(t=>Array.isArray(t==null?void 0:t[N])?t==null?void 0:t[N]:[]))==null?void 0:d.flat())==null?void 0:y.flatMap(t=>t.checkedButtons);return(c==null?void 0:c.length)===0?i.ElMessage.error("该用户没有权限,请联系管理员"):new Set(c)}}if(typeof n=="string"){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===n||(t==null?void 0:t.角色名称)===n),N=C(r),c=S(r==null?void 0:r[N]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}}catch(r){throw new Error(r)}},I=async a=>{var o,n;try{let s=[];const d=await i.getInsofDataApi({key:{systemKey:A.value?A.value:a==null?void 0:a.systemKey,pageKey:"系统管理/角色管理",type:"data"}});if(d.data.code===200){const y=(n=(o=d.data)==null?void 0:o.result)==null?void 0:n.map(r=>r.value.tableData);s=x(y,a)}if(s)return Array.isArray(s)?Array.from(s):s;throw i.ElMessage.error("获取用户权限失败,请联系管理员"),new Error("获取用户权限失败,请联系管理员")}catch(s){throw i.ElMessage.error("获取用户权限失败,请联系管理员"),new Error(s)}},M=async a=>{var o,n,s,d,y,r,N;try{let c=[],t,K,B;A.value?B={pageKey:"系统管理/用户管理",type:"data",systemKey:A.value}:B={pageKey:"系统管理/用户管理",type:"data"};const j=await i.getInsofDataApi({key:B});let q;if(!sessionStorage.getItem("systemKey")||sessionStorage.getItem("systemKey")===""?q=await i.getInsofDataApi({key:{layer:"superAdmin"}}):q=await i.getInsofDataApi({key:{layer:"superAdmin",systemKey:sessionStorage.getItem("systemKey")}}),j.data.code===200&&q.data.code===200){const W=(n=(o=q.data)==null?void 0:o.result)==null?void 0:n.map(u=>{var E,U;return{...u.value.tableData,layer:(E=u.key)==null?void 0:E.layer,systemKey:(U=u==null?void 0:u.key)==null?void 0:U.systemKey,id:u.id}}),z=(d=(s=j.data)==null?void 0:s.result)==null?void 0:d.map(u=>{var E,U;return{...u.value.tableData,layer:(E=u.key)==null?void 0:E.layer,systemKey:(U=u==null?void 0:u.key)==null?void 0:U.systemKey,id:u.id}}),H=[...W,...z];if(t=H==null?void 0:H.find(u=>(u==null?void 0:u.account)===(a==null?void 0:a.account)||(u==null?void 0:u.账号)===(a==null?void 0:a.account)),t){if(((y=t.layer)==null?void 0:y.toUpperCase())!=="SUPERADMIN"&&(!(t!=null&&t.状态)||(t==null?void 0:t.状态)==="禁用"||(t==null?void 0:t.status)==="禁用")){i.ElMessage.error("该用户已被禁用,请联系管理员"),v.value=!1;return}c=await I(t);const{privateKey:u}=await p.getModelSecretAsync(t);let E;if(t.password?E=((r=t.layer)==null?void 0:r.toUpperCase())==="SUPERADMIN"?t.password:k.decryptData(t.password,u):E=((N=t.layer)==null?void 0:N.toUpperCase())==="SUPERADMIN"?t.password:k.resetPassword,(a==null?void 0:a.password)===E)K=t;else throw K=null,i.ElMessage.error("输入的密码错误,请重新输入"),v.value=!1,new Error("输入的密码错误,请重新输入")}else return i.ElMessage.error("该用户不存在,请重新输入")}return K&&c?{matchedUser:K,userAuthority:c}:void 0}catch(c){throw new Error(c)}},L=async a=>{var n,s,d;const o=await M(a);if(o!=null&&o.matchedUser){p.setLoginUserInfo(o.matchedUser),sessionStorage.setItem("authority",JSON.stringify(o.userAuthority));const y=((s=(n=o.matchedUser)==null?void 0:n.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN";return sessionStorage.setItem("isSuperAdmin",JSON.stringify(y)),sessionStorage.setItem("systemKey",A.value?A.value:(d=o.matchedUser)==null?void 0:d.systemKey),await D(o.matchedUser),!0}else throw v.value=!1,new Error("该用户数据处理失败,请联系管理员")},D=async a=>{var n,s,d,y,r,N,c,t,K;const o=await i.getInsofDataApi({key:{layer:"superAdmin",systemKey:A.value?A.value:a==null?void 0:a.systemKey}});if(o.data.code===200&&(n=o.data)!=null&&n.result&&Array.isArray((s=o.data)==null?void 0:s.result)&&((y=(d=o.data)==null?void 0:d.result)==null?void 0:y.length)>0){const B=(K=(t=(c=(N=(r=o.data)==null?void 0:r.result)==null?void 0:N[0])==null?void 0:c.value)==null?void 0:t.tableData)==null?void 0:K.account;p.setSuperAdminInfo({account:B})}},$=async()=>{var a,o,n;try{const s=await ve();return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("loginToken",(n=(o=s.data)==null?void 0:o.result)==null?void 0:n.accessToken),!0):!1}catch(s){i.ElMessage.error(s)}},R=async()=>{var a,o,n;try{const s=await i.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("magicToken",(n=(o=s.data)==null?void 0:o.result)==null?void 0:n.accessToken),!0):!1}catch(s){i.ElMessage.error(s)}},O=async a=>{var d,y,r,N;v.value=!0;let o=[L(a),$(),R()];const n=await Promise.all(o);(n==null?void 0:n.every(c=>c))&&(await Q.verifyStructureDataToStore(),b.push("/"),p.setLogRecordAsync({type:"登录",data:{account:((d=f.value)==null?void 0:d.account)??((y=f.value)==null?void 0:y.账号),userName:((r=f.value)==null?void 0:r.姓名)||((N=f.value)==null?void 0:N.userName)||"未知"}},"/login","login"))},F=a=>{g.value=a,w.value=!1,v.value=!1},J=a=>/^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);return(a,o)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",be,[e.createElementVNode("div",_e,[e.createVNode(te,{class:"login-left-bg"},{img:e.withCtx(()=>{var n,s,d,y;return[e.createElementVNode("div",we,[e.createElementVNode("div",null,e.toDisplayString(((n=e.unref(_))==null?void 0:n.EnglishName)||"INSOFWORKS"),1),e.createElementVNode("div",null,e.toDisplayString((s=e.unref(_))!=null&&s.chineseName&&J((d=e.unref(_))==null?void 0:d.chineseName)?(y=e.unref(_))==null?void 0:y.chineseName:"工业软件集成开发平台"),1)]),o[0]||(o[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",Ce,[e.createVNode(le,{loading:v.value,onClickLogin:l,onHandleTabChange:F},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(ue,{activeTabName:g.value,isClickLogin:w.value,onHandleLoginFormChange:h},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(me,{systemKey:a.oldSystemKey,activeTabName:g.value,isClickLogin:w.value,onHandleLoginFormChange:h},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),Ae=P._export_sfc(Ne,[["__scopeId","data-v-cc09996c"]]);exports.default=Ae;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as _, computed as A } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { E as N } from "./index.vue_vue_type_style_index_1_lang-
|
|
2
|
+
import { e as I, E as s, g as M } from "./index-HduGypr9.js";
|
|
3
|
+
import { E as N } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
|
|
4
4
|
const K = _([]), T = A(() => [
|
|
5
5
|
{
|
|
6
6
|
key: "extraButton",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as g, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as f } from "vue";
|
|
2
|
-
import { S as x } from "./index-
|
|
3
|
-
import { s as B } from "./index-
|
|
4
|
-
import { s as F } from "./index-
|
|
5
|
-
import { c as y } from "./index-
|
|
6
|
-
import { u as S } from "./index.vue_vue_type_style_index_1_lang-
|
|
7
|
-
import { p as I, s as N } from "./index-
|
|
2
|
+
import { S as x } from "./index-Dx2X9pR1.js";
|
|
3
|
+
import { s as B } from "./index-OTxJnh9Z.js";
|
|
4
|
+
import { s as F } from "./index-zZ9bfGNx.js";
|
|
5
|
+
import { c as y } from "./index-gPnrvvE9.js";
|
|
6
|
+
import { u as S } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
|
|
7
|
+
import { p as I, s as N } from "./index-HduGypr9.js";
|
|
8
8
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const E = { class: "menu-module" }, M = {
|
|
10
10
|
class: "table-wrap",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as f, ref as i, onMounted as E, resolveComponent as s, createElementBlock as v, openBlock as _, createElementVNode as b, createVNode as u, withCtx as c, Fragment as w, renderList as A, createBlock as B, createTextVNode as F } from "vue";
|
|
2
|
-
import { g as I, E as g } from "./index-
|
|
2
|
+
import { g as I, E as g } from "./index-HduGypr9.js";
|
|
3
3
|
import { useRouter as M } from "vue-router";
|
|
4
4
|
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const T = { class: "tenant-wrap" }, $ = { class: "tenant-content" }, q = /* @__PURE__ */ C({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
|
|
2
|
-
import { s as m } from "./index-
|
|
3
|
-
import { g as d, c as _ } from "./index-
|
|
2
|
+
import { s as m } from "./index-OTxJnh9Z.js";
|
|
3
|
+
import { g as d, c as _ } from "./index-Boazv8yC.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const l = n([]), g = c(() => [
|
|
6
6
|
{
|