ss-component-new 1.3.78 → 1.3.79
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-Bkr7rTJW.js → MTLLoader-J6KQSJo5.js} +1 -1
- package/dist/{MTLLoader-ByAfB26z.cjs → MTLLoader-xQUyDMUQ.cjs} +1 -1
- package/dist/{OrbitControls-goGQ9Lfs.js → OrbitControls-CYS3lt7t.js} +1 -1
- package/dist/{OrbitControls-BcfNtf3a.cjs → OrbitControls-wLj5IZpu.cjs} +1 -1
- package/dist/{URDFLoader-nyfij85d.cjs → URDFLoader-CMw9yh3v.cjs} +1 -1
- package/dist/{URDFLoader-d1AzVQ5F.js → URDFLoader-FM9qqfOl.js} +2 -2
- package/dist/{animationData-Cew-c11l.cjs → animationData-2UX1B5_q.cjs} +1 -1
- package/dist/{animationData-Sok20fOI.js → animationData-DUH4W8MK.js} +2 -2
- package/dist/{array-CCxIPliQ.cjs → array-Bd12qj41.cjs} +1 -1
- package/dist/{array-BkHYCyls.js → array-C2VeqIuB.js} +6 -6
- package/dist/{iconfont-CJoblcL2.js → iconfont-BCTnYuQD.js} +2 -2
- package/dist/{iconfont-DZ9KiHjj.cjs → iconfont-iC_6bHfi.cjs} +1 -1
- package/dist/{index-eUZKu-7F.cjs → index-0igLJsrJ.cjs} +1 -1
- package/dist/{index-D7GkHVm4.cjs → index-5dvr_F6Q.cjs} +1 -1
- package/dist/{index-DmeZpSGM.js → index-AR7D1heX.js} +5 -5
- package/dist/{index-DLGxv8po.js → index-B-dZDLlp.js} +4 -4
- package/dist/{index-EtZh1qtq.js → index-B4xBmgak.js} +2 -2
- package/dist/{index-Dyhg1YNv.js → index-B5i-XCGU.js} +1 -1
- package/dist/{index-oJEY_fSN.js → index-B7Q8lfZm.js} +12 -12
- package/dist/{index-Dld88iXe.js → index-BDXWwpnM.js} +1 -1
- package/dist/index-BTqL_HGH.cjs +19 -0
- package/dist/{index-D8DcUSsZ.cjs → index-B_MCMG28.cjs} +1 -1
- package/dist/{index-fwa9LBX5.cjs → index-BfOeLrc4.cjs} +1 -1
- package/dist/index-BgDlt5VR.js +466 -0
- package/dist/{index-Bj7H-CHU.js → index-BmwOHAWI.js} +4 -4
- package/dist/{index-t9jd4l9Q.js → index-BodCp2oo.js} +2 -2
- package/dist/{index-BQWGBLrD.cjs → index-BqvVG799.cjs} +1 -1
- package/dist/{index-AHbRUQqE.cjs → index-Bwewgc3l.cjs} +1 -1
- package/dist/{index-DilZmA-l.cjs → index-BySUbdBm.cjs} +1 -1
- package/dist/{index-CjCqvZ07.cjs → index-C3UwBzuP.cjs} +2 -2
- package/dist/{index-DXxZIqBP.cjs → index-C6KO8_us.cjs} +1 -1
- package/dist/index-CCjUy3aK.cjs +1 -0
- package/dist/{index-BVh3Ylgt.cjs → index-CIvnqPpe.cjs} +1 -1
- package/dist/{index-CM8Na0Nb.js → index-CKrXLddb.js} +15 -15
- package/dist/{index-CGpIY6jB.js → index-COu_zvcV.js} +2053 -2048
- package/dist/{index-CNLUhFlr.js → index-CP3licEB.js} +2 -2
- package/dist/{index-D8k54p_x.cjs → index-CPffhaiD.cjs} +1 -1
- package/dist/index-CTGFVPrU.js +8192 -0
- package/dist/index-CUElPXgv.cjs +1 -0
- package/dist/{index-C036vLtM.cjs → index-CVCJuzlD.cjs} +1 -1
- package/dist/{index-Dlob1bxY.cjs → index-CeXyg5Rl.cjs} +1 -1
- package/dist/{index-BZqkclA9.cjs → index-Cl7_1LxQ.cjs} +1 -1
- package/dist/{index-B7cNKrrU.cjs → index-Cl8_F2w0.cjs} +1 -1
- package/dist/{index-BPmWhs0O.js → index-ClIqEC4B.js} +2 -2
- package/dist/{index-XSETNP_T.js → index-CnEbdJ_u.js} +1 -1
- package/dist/{index-CI8pzqx6.js → index-CqEyKbrr.js} +6 -6
- package/dist/index-Cu1ObOAB.js +19 -0
- package/dist/{index-G0nsjixB.js → index-CzL_5aJo.js} +8 -8
- package/dist/{index-D9hditHi.js → index-CzXa6BB9.js} +1 -1
- package/dist/{index-BysdHzB7.cjs → index-D1Cy49Op.cjs} +1 -1
- package/dist/{index-DijK6RWK.js → index-D4pvlJjc.js} +7 -7
- package/dist/{index-CST5bbhY.js → index-DKRx656d.js} +6 -6
- package/dist/{index-CWY9HxrG.js → index-DPM1jo0z.js} +1 -1
- package/dist/{index-BgKqiFcg.cjs → index-DPms6EYm.cjs} +1 -1
- package/dist/{index-M_FLMoBh.cjs → index-DYLAzmSg.cjs} +1 -1
- package/dist/index-Dc6Q0f3F.cjs +11 -0
- package/dist/{index-JAXzKk2F.js → index-DcWo3vcO.js} +28 -28
- package/dist/{index-DHdrBDP4.cjs → index-DcqWejmU.cjs} +1 -1
- package/dist/{index-TvWbGp-2.cjs → index-DidUY5n8.cjs} +1 -1
- package/dist/{index-BAelm3VG.cjs → index-DkS40ewf.cjs} +1 -1
- package/dist/{index-BRPLPxlx.cjs → index-DngWdaTr.cjs} +1 -1
- package/dist/{index-2B1wHje0.cjs → index-DpocbqLg.cjs} +1 -1
- package/dist/{index-DsymuEzu.cjs → index-Du5edMFi.cjs} +13 -13
- package/dist/{index-CInkQ8cP.cjs → index-Dx6MbKD4.cjs} +1 -1
- package/dist/{index-ChiYyt8L.js → index-EuIwRz8c.js} +2 -2
- package/dist/{index-DaWzSNzm.js → index-Gu-cpRk9.js} +1 -1
- package/dist/{index-DBh4mbmL.js → index-KUyZ7T9o.js} +3212 -3201
- package/dist/{index-cKFeu5XW.cjs → index-WBDZ_4z8.cjs} +1 -1
- package/dist/{index-CIGrCpB_.js → index-YfmQ3HO9.js} +8 -8
- package/dist/{index-DnMPqjrX.js → index-eQnRGO0h.js} +4 -4
- package/dist/{index-rCV_Ea-P.js → index-gF-4JYat.js} +1 -1
- package/dist/{index-BIbLwf-J.cjs → index-gVJsXKak.cjs} +1 -1
- package/dist/{index-5CdDKPk6.js → index-igtlvQAe.js} +2 -2
- package/dist/{index-K1n-pA4G.js → index-jkHlUTog.js} +2616 -2545
- package/dist/{index-BHrQS0PO.js → index-lz-ekKYh.js} +1 -1
- package/dist/index-rbS2iECn.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-Ceq-4YAl.cjs → index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-Dj8zYuMh.cjs} +49 -49
- package/dist/{index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js → index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-surfEjhe.js} +2071 -2076
- package/dist/{index.vue_vue_type_style_index_1_lang-D9kYnXoD.cjs → index.vue_vue_type_style_index_1_lang-CBwwjCVB.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DDUoM--M.js → index.vue_vue_type_style_index_1_lang-DSIK6FYX.js} +5 -5
- package/dist/{isString-D4Yi9bDE.js → isString-Bn5VcA2n.js} +1 -1
- package/dist/{isString-Cdf6R00a.cjs → isString-DhPkQDQg.cjs} +1 -1
- package/dist/{main-DKugsEJQ.js → main-NW4XXiNt.js} +4 -4
- package/dist/{main-DDI-kRzh.cjs → main-p38X05Mj.cjs} +1 -1
- package/dist/{menuIndex-BVHXKOLk.cjs → menuIndex-D332F0dw.cjs} +1 -1
- package/dist/{menuIndex-BvSKgV5f.js → menuIndex-DOraLCRw.js} +1 -1
- 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 +13 -13
- package/dist/{threeModel-BwWSWObs.js → threeModel-C4O9G7gx.js} +6 -6
- package/dist/{threeModel-BC_JZ1RV.cjs → threeModel-DH7KgOVV.cjs} +1 -1
- package/dist/{threePreview-CfyAicAQ.js → threePreview-BCM2X6a_.js} +5 -5
- package/dist/{threePreview-mSNaLCWp.cjs → threePreview-C1XUqnbj.cjs} +1 -1
- package/dist/{threeSceneView-66dCWgEi.cjs → threeSceneView-BehsA9j_.cjs} +1 -1
- package/dist/{threeSceneView-Dbr2KLMM.js → threeSceneView-C3A4G5J_.js} +11 -11
- package/dist/{threeSceneViewForCPMPIP-tPswynXd.js → threeSceneViewForCPMPIP-DG49msmU.js} +9 -9
- package/dist/{threeSceneViewForCPMPIP-BzMYLFuK.cjs → threeSceneViewForCPMPIP-DczSoavc.cjs} +1 -1
- package/dist/{threeTrackPathView-C65T-bEd.cjs → threeTrackPathView-CGy2nPcI.cjs} +1 -1
- package/dist/{threeTrackPathView-CZt3mY2y.js → threeTrackPathView-CZTHAZ4q.js} +6 -6
- package/dist/{threeViewerHost-DtuM2v2G.cjs → threeViewerHost-BO_RtFQ8.cjs} +1 -1
- package/dist/{threeViewerHost-D2qSyCw-.js → threeViewerHost-CjckAsTF.js} +3 -3
- package/dist/{urdfTree-UVAVh9q0.cjs → urdfTree-CJKP_T_2.cjs} +1 -1
- package/dist/{urdfTree-BCj0sPXo.js → urdfTree-DsYvLkJQ.js} +1 -1
- package/dist/{workpieceTreePanel-CrpY18jo.js → workpieceTreePanel-CzdZZhzq.js} +4 -4
- package/dist/{workpieceTreePanel-BtxWzOMx.cjs → workpieceTreePanel-Ds0qy--F.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BFvOrU__.cjs +0 -19
- package/dist/index-BQ5LLLCI.cjs +0 -1
- package/dist/index-C5pQXH0_.cjs +0 -11
- package/dist/index-Cuw9DLEb.cjs +0 -1
- package/dist/index-D0aKEqnU.js +0 -476
- package/dist/index-KEXDCkKc.js +0 -8139
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
package/dist/index-D0aKEqnU.js
DELETED
|
@@ -1,476 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as I, openBlock as B, createElementVNode as v, renderSlot as $, defineComponent as P, ref as A, resolveComponent as E, createVNode as h, withCtx as u, unref as R, reactive as q, watch as D, onBeforeUnmount as J, onMounted as Q, toDisplayString as S, createTextVNode as V } from "vue";
|
|
2
|
-
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { b as j, p as H, d as X, s as Y } from "./index-JAXzKk2F.js";
|
|
4
|
-
import { s as z, E as O, a as Z } from "./index-K1n-pA4G.js";
|
|
5
|
-
import { useRouter as ee } from "vue-router";
|
|
6
|
-
import { v as te } from "./index-BPmWhs0O.js";
|
|
7
|
-
import { l as ae, a as oe } from "./index-D9hditHi.js";
|
|
8
|
-
const ne = {}, se = { class: "left-wrap" }, ie = { class: "left-bg" };
|
|
9
|
-
function ce(y, _) {
|
|
10
|
-
return B(), I("div", se, [
|
|
11
|
-
v("div", ie, [
|
|
12
|
-
$(y.$slots, "img", {}, void 0, !0)
|
|
13
|
-
])
|
|
14
|
-
]);
|
|
15
|
-
}
|
|
16
|
-
const le = /* @__PURE__ */ M(ne, [["render", ce], ["__scopeId", "data-v-9b7ee6c9"]]), x = {
|
|
17
|
-
ACCOUNT: "account",
|
|
18
|
-
FACE: "face"
|
|
19
|
-
}, re = { class: "right-wrap" }, de = { class: "tab-content" }, ue = { class: "tab-tips" }, me = { class: "tab-content" }, fe = { class: "tab-tips" }, pe = /* @__PURE__ */ P({
|
|
20
|
-
__name: "index",
|
|
21
|
-
props: {
|
|
22
|
-
tabList: {
|
|
23
|
-
type: Array,
|
|
24
|
-
default: []
|
|
25
|
-
},
|
|
26
|
-
loading: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !1
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
emits: ["clickLogin", "handleTabChange"],
|
|
32
|
-
setup(y, { emit: _ }) {
|
|
33
|
-
const t = A(x.ACCOUNT), e = _, w = () => {
|
|
34
|
-
e("clickLogin", t.value);
|
|
35
|
-
}, g = (i) => {
|
|
36
|
-
e("handleTabChange", i);
|
|
37
|
-
};
|
|
38
|
-
return (i, l) => {
|
|
39
|
-
const o = E("el-button"), b = E("el-tab-pane"), m = E("el-tabs");
|
|
40
|
-
return B(), I("div", re, [
|
|
41
|
-
h(m, {
|
|
42
|
-
modelValue: t.value,
|
|
43
|
-
"onUpdate:modelValue": l[0] || (l[0] = (f) => t.value = f),
|
|
44
|
-
class: "right-tabs",
|
|
45
|
-
onTabChange: g
|
|
46
|
-
}, {
|
|
47
|
-
default: u(() => [
|
|
48
|
-
h(b, {
|
|
49
|
-
name: R(x).ACCOUNT
|
|
50
|
-
}, {
|
|
51
|
-
label: u(() => [
|
|
52
|
-
$(i.$slots, "tabLabel1", {}, void 0, !0)
|
|
53
|
-
]),
|
|
54
|
-
default: u(() => [
|
|
55
|
-
v("div", de, [
|
|
56
|
-
$(i.$slots, "tabContent1", {}, void 0, !0)
|
|
57
|
-
]),
|
|
58
|
-
v("div", {
|
|
59
|
-
class: "tab-button special",
|
|
60
|
-
onClick: w
|
|
61
|
-
}, [
|
|
62
|
-
h(o, { loading: y.loading }, {
|
|
63
|
-
default: u(() => [
|
|
64
|
-
$(i.$slots, "tabButton1", {}, void 0, !0)
|
|
65
|
-
]),
|
|
66
|
-
_: 3
|
|
67
|
-
}, 8, ["loading"])
|
|
68
|
-
]),
|
|
69
|
-
v("div", ue, [
|
|
70
|
-
$(i.$slots, "tabTips1", {}, void 0, !0)
|
|
71
|
-
])
|
|
72
|
-
]),
|
|
73
|
-
_: 3
|
|
74
|
-
}, 8, ["name"]),
|
|
75
|
-
h(b, {
|
|
76
|
-
name: R(x).FACE
|
|
77
|
-
}, {
|
|
78
|
-
label: u(() => [
|
|
79
|
-
$(i.$slots, "tabLabel2", {}, void 0, !0)
|
|
80
|
-
]),
|
|
81
|
-
default: u(() => [
|
|
82
|
-
v("div", me, [
|
|
83
|
-
$(i.$slots, "tabContent2", {}, void 0, !0)
|
|
84
|
-
]),
|
|
85
|
-
v("div", fe, [
|
|
86
|
-
$(i.$slots, "tabTips2", {}, void 0, !0)
|
|
87
|
-
])
|
|
88
|
-
]),
|
|
89
|
-
_: 3
|
|
90
|
-
}, 8, ["name"])
|
|
91
|
-
]),
|
|
92
|
-
_: 3
|
|
93
|
-
}, 8, ["modelValue"])
|
|
94
|
-
]);
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
}), ge = /* @__PURE__ */ M(pe, [["__scopeId", "data-v-8b1962f0"]]), be = { class: "account-wrap" }, ve = /* @__PURE__ */ P({
|
|
98
|
-
__name: "index",
|
|
99
|
-
props: {
|
|
100
|
-
activeTabName: {
|
|
101
|
-
type: String,
|
|
102
|
-
default: ""
|
|
103
|
-
},
|
|
104
|
-
isClickLogin: {
|
|
105
|
-
type: Boolean,
|
|
106
|
-
default: !1
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
emits: ["handleLoginFormChange"],
|
|
110
|
-
setup(y, { emit: _ }) {
|
|
111
|
-
const t = y, e = q({
|
|
112
|
-
account: "",
|
|
113
|
-
password: ""
|
|
114
|
-
}), w = q({
|
|
115
|
-
account: [
|
|
116
|
-
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
117
|
-
],
|
|
118
|
-
password: [
|
|
119
|
-
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
120
|
-
]
|
|
121
|
-
}), g = A(null), i = _;
|
|
122
|
-
return D(() => t.isClickLogin, (l) => {
|
|
123
|
-
var o;
|
|
124
|
-
l && (t == null ? void 0 : t.activeTabName) === "account" && ((o = g.value) == null || o.validate((b) => {
|
|
125
|
-
var m;
|
|
126
|
-
for (let f in e)
|
|
127
|
-
e.hasOwnProperty(f) && (e[f] = (m = e[f]) == null ? void 0 : m.trim());
|
|
128
|
-
i("handleLoginFormChange", b, b ? e : null);
|
|
129
|
-
}));
|
|
130
|
-
}, {
|
|
131
|
-
immediate: !0
|
|
132
|
-
}), D(() => t.activeTabName, (l) => {
|
|
133
|
-
var o;
|
|
134
|
-
l === "account" && ((o = g.value) == null || o.resetFields());
|
|
135
|
-
}), (l, o) => {
|
|
136
|
-
const b = E("svg-icon"), m = E("el-input"), f = E("el-form-item"), k = E("el-form");
|
|
137
|
-
return B(), I("div", be, [
|
|
138
|
-
h(k, {
|
|
139
|
-
model: e,
|
|
140
|
-
rules: w,
|
|
141
|
-
ref_key: "formRef",
|
|
142
|
-
ref: g
|
|
143
|
-
}, {
|
|
144
|
-
default: u(() => [
|
|
145
|
-
h(f, {
|
|
146
|
-
label: "",
|
|
147
|
-
prop: "account"
|
|
148
|
-
}, {
|
|
149
|
-
default: u(() => [
|
|
150
|
-
h(m, {
|
|
151
|
-
class: "account-input",
|
|
152
|
-
modelValue: e.account,
|
|
153
|
-
"onUpdate:modelValue": o[0] || (o[0] = (L) => e.account = L),
|
|
154
|
-
placeholder: "请输入账号",
|
|
155
|
-
clearable: ""
|
|
156
|
-
}, {
|
|
157
|
-
prefix: u(() => [
|
|
158
|
-
h(b, {
|
|
159
|
-
name: "account",
|
|
160
|
-
style: { width: "15px", height: "15px" }
|
|
161
|
-
})
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
}, 8, ["modelValue"])
|
|
165
|
-
]),
|
|
166
|
-
_: 1
|
|
167
|
-
}),
|
|
168
|
-
h(f, {
|
|
169
|
-
label: "",
|
|
170
|
-
prop: "password"
|
|
171
|
-
}, {
|
|
172
|
-
default: u(() => [
|
|
173
|
-
h(m, {
|
|
174
|
-
class: "account-input",
|
|
175
|
-
modelValue: e.password,
|
|
176
|
-
"onUpdate:modelValue": o[1] || (o[1] = (L) => e.password = L),
|
|
177
|
-
type: "password",
|
|
178
|
-
placeholder: "请输入密码",
|
|
179
|
-
"show-password": "",
|
|
180
|
-
clearable: ""
|
|
181
|
-
}, {
|
|
182
|
-
prefix: u(() => [
|
|
183
|
-
h(b, {
|
|
184
|
-
name: "password",
|
|
185
|
-
style: { width: "15px", height: "15px" }
|
|
186
|
-
})
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
}, 8, ["modelValue"])
|
|
190
|
-
]),
|
|
191
|
-
_: 1
|
|
192
|
-
})
|
|
193
|
-
]),
|
|
194
|
-
_: 1
|
|
195
|
-
}, 8, ["model", "rules"])
|
|
196
|
-
]);
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
}), _e = /* @__PURE__ */ M(ve, [["__scopeId", "data-v-48037c0f"]]);
|
|
200
|
-
function he(y) {
|
|
201
|
-
return z({
|
|
202
|
-
url: "http://139.196.154.85:20015/api/face/face-verify",
|
|
203
|
-
method: "post",
|
|
204
|
-
data: y
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
const ye = { class: "account-wrap" }, Ce = { class: "video-wrap" }, we = /* @__PURE__ */ P({
|
|
208
|
-
__name: "index",
|
|
209
|
-
props: {
|
|
210
|
-
systemKey: { default: "" },
|
|
211
|
-
activeTabName: { default: "" },
|
|
212
|
-
isClickLogin: { type: Boolean, default: !1 }
|
|
213
|
-
},
|
|
214
|
-
emits: ["handleLoginFormChange"],
|
|
215
|
-
setup(y, { emit: _ }) {
|
|
216
|
-
const t = y, e = _, w = j(H), g = A(null), i = A(null);
|
|
217
|
-
let l = !1, o = null;
|
|
218
|
-
const b = async (n, c) => {
|
|
219
|
-
const { privateKey: C } = await w.getModelSecretAsync();
|
|
220
|
-
let p = n;
|
|
221
|
-
return c !== "superAdmin" && (p = X(n, C)), p;
|
|
222
|
-
}, m = async (n) => {
|
|
223
|
-
if (!n)
|
|
224
|
-
return;
|
|
225
|
-
const c = new FormData();
|
|
226
|
-
c.set("file", n), t.systemKey && c.set("systemKey", t.systemKey), console.log("Face Recognition", t.systemKey);
|
|
227
|
-
const C = await he(c), { data: p } = C || {}, { account: s, password: r, layer: d } = (p == null ? void 0 : p.data) || {}, a = p == null ? void 0 : p.msg;
|
|
228
|
-
if (!s) {
|
|
229
|
-
O.warning(a || "识别失败,请重新识别!");
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
const T = await b(r, d);
|
|
233
|
-
e("handleLoginFormChange", !0, {
|
|
234
|
-
account: s,
|
|
235
|
-
password: T
|
|
236
|
-
});
|
|
237
|
-
}, f = () => {
|
|
238
|
-
if (!i.value || !g.value)
|
|
239
|
-
return;
|
|
240
|
-
const n = i.value, c = n.getContext("2d"), C = g.value;
|
|
241
|
-
n.width = 200, n.height = 200;
|
|
242
|
-
const p = C.videoWidth || 640, s = C.videoHeight || 480, r = Math.min(200 / p, 200 / s), d = p * r, a = s * r, T = (200 - d) / 2, F = (200 - a) / 2;
|
|
243
|
-
c == null || c.drawImage(C, 0, 0, p, s, T, F, d, a), n.toBlob((K) => {
|
|
244
|
-
if (K) {
|
|
245
|
-
const U = new File([K], "face.png", { type: "image/png" });
|
|
246
|
-
m(U);
|
|
247
|
-
}
|
|
248
|
-
}, "image/png");
|
|
249
|
-
}, k = async () => {
|
|
250
|
-
if (!g.value || l)
|
|
251
|
-
return;
|
|
252
|
-
const n = g.value;
|
|
253
|
-
try {
|
|
254
|
-
if (o = await navigator.mediaDevices.getUserMedia({
|
|
255
|
-
video: { facingMode: "user" },
|
|
256
|
-
// 前置;后置用 'environment'
|
|
257
|
-
audio: !1
|
|
258
|
-
}), n) {
|
|
259
|
-
const c = n;
|
|
260
|
-
c.srcObject = o, l = !0;
|
|
261
|
-
}
|
|
262
|
-
} catch {
|
|
263
|
-
O.warning("摄像头启动失败");
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
function L(n) {
|
|
267
|
-
if (n && (n.getTracks().forEach((c) => c.stop()), g.value)) {
|
|
268
|
-
const c = g.value;
|
|
269
|
-
c.srcObject = null;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
const N = () => {
|
|
273
|
-
L(o), l = !1;
|
|
274
|
-
};
|
|
275
|
-
return D(() => t.activeTabName, (n) => {
|
|
276
|
-
if (n !== x.FACE) {
|
|
277
|
-
N();
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
if (n === x.FACE && !l) {
|
|
281
|
-
k();
|
|
282
|
-
return;
|
|
283
|
-
}
|
|
284
|
-
}), J(() => {
|
|
285
|
-
N();
|
|
286
|
-
}), (n, c) => (B(), I("div", ye, [
|
|
287
|
-
v("div", Ce, [
|
|
288
|
-
v("video", {
|
|
289
|
-
class: "face-video",
|
|
290
|
-
ref_key: "videoRef",
|
|
291
|
-
ref: g,
|
|
292
|
-
id: "v",
|
|
293
|
-
autoplay: "",
|
|
294
|
-
playsinline: ""
|
|
295
|
-
}, null, 512)
|
|
296
|
-
]),
|
|
297
|
-
v("button", {
|
|
298
|
-
class: "face-screenshot",
|
|
299
|
-
onClick: f
|
|
300
|
-
}, "人脸识别"),
|
|
301
|
-
v("canvas", {
|
|
302
|
-
ref_key: "canvasRef",
|
|
303
|
-
ref: i,
|
|
304
|
-
id: "canvas"
|
|
305
|
-
}, null, 512)
|
|
306
|
-
]));
|
|
307
|
-
}
|
|
308
|
-
}), Le = /* @__PURE__ */ M(we, [["__scopeId", "data-v-0ae97a87"]]);
|
|
309
|
-
function Te() {
|
|
310
|
-
return z({
|
|
311
|
-
url: "/api/sysAuth/login",
|
|
312
|
-
method: "post",
|
|
313
|
-
data: {
|
|
314
|
-
account: "superadmin",
|
|
315
|
-
password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
|
|
316
|
-
tenantId: -1,
|
|
317
|
-
code: "",
|
|
318
|
-
codeId: 0
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
const W = j(H), ke = async (y, _) => {
|
|
323
|
-
var w, g, i, l, o, b, m, f, k, L, N, n, c, C, p, s, r, d;
|
|
324
|
-
let t = Object.values(y), e = await ae({
|
|
325
|
-
userName: (w = t == null ? void 0 : t[0]) == null ? void 0 : w.trim(),
|
|
326
|
-
password: (g = t == null ? void 0 : t[1]) == null ? void 0 : g.trim()
|
|
327
|
-
});
|
|
328
|
-
if (((i = e == null ? void 0 : e.data) == null ? void 0 : i.status) === 200 && ((o = (l = e == null ? void 0 : e.data) == null ? void 0 : l.result) == null ? void 0 : o.length) <= 0 && (e = await oe({
|
|
329
|
-
userName: (b = t == null ? void 0 : t[0]) == null ? void 0 : b.trim(),
|
|
330
|
-
password: (m = t == null ? void 0 : t[1]) == null ? void 0 : m.trim(),
|
|
331
|
-
path: "系统管理/用户管理",
|
|
332
|
-
platId: _
|
|
333
|
-
// platId: '785771438178373'
|
|
334
|
-
})), ((f = e == null ? void 0 : e.data) == null ? void 0 : f.status) === 200 && ((L = (k = e == null ? void 0 : e.data) == null ? void 0 : k.result) == null ? void 0 : L.length) > 0) {
|
|
335
|
-
sessionStorage.setItem("systemKey", _ && _ !== "" ? _ : (c = (n = (N = e == null ? void 0 : e.data) == null ? void 0 : N.result) == null ? void 0 : n[0]) == null ? void 0 : c.plat_id);
|
|
336
|
-
let a = (p = (C = e == null ? void 0 : e.data) == null ? void 0 : C.result) == null ? void 0 : p[0];
|
|
337
|
-
return a.plat_id = a.plat_id ?? _, W.setLoginUserInfo(a), W.setSystemKey(_ && _ !== "" ? _ : (d = (r = (s = e == null ? void 0 : e.data) == null ? void 0 : s.result) == null ? void 0 : r[0]) == null ? void 0 : d.plat_id), !0;
|
|
338
|
-
} else
|
|
339
|
-
return O.error("输入的密码错误,请重新输入"), !1;
|
|
340
|
-
}, Ne = { class: "login-wrap" }, $e = { class: "login-body" }, Ae = { class: "login-body-item left" }, Fe = { class: "title" }, Se = { class: "login-body-item right" }, Ee = /* @__PURE__ */ P({
|
|
341
|
-
__name: "index",
|
|
342
|
-
props: {
|
|
343
|
-
oldSystemKey: {}
|
|
344
|
-
},
|
|
345
|
-
emits: ["change"],
|
|
346
|
-
setup(y, { emit: _ }) {
|
|
347
|
-
const t = y, e = ee(), w = j(H), { systemKey: g, systemInfo: i, loginUserInfo: l } = Y(w), o = A({
|
|
348
|
-
// sysCTitle: 'INSOFWORKS',
|
|
349
|
-
sysCTitle: "",
|
|
350
|
-
sysETitle: "",
|
|
351
|
-
// sysETitle: 'Dynamic Test Information System',
|
|
352
|
-
loginTitle: "账户密码登录",
|
|
353
|
-
tabs: [
|
|
354
|
-
{
|
|
355
|
-
name: "密码登录",
|
|
356
|
-
btnLabel: "登录",
|
|
357
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
name: "人脸识别",
|
|
361
|
-
btnLabel: "人脸识别",
|
|
362
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
name: "刷卡登录",
|
|
366
|
-
btnLabel: "登录",
|
|
367
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
368
|
-
}
|
|
369
|
-
]
|
|
370
|
-
}), b = A("account"), m = A(!1), f = A(!1), k = () => {
|
|
371
|
-
m.value = !0;
|
|
372
|
-
}, L = (s, r) => {
|
|
373
|
-
m.value = !1, s && c(r);
|
|
374
|
-
}, N = async () => {
|
|
375
|
-
var s, r, d;
|
|
376
|
-
try {
|
|
377
|
-
const a = await Te();
|
|
378
|
-
return ((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) === 200 ? (sessionStorage.setItem("loginToken", (d = (r = a.data) == null ? void 0 : r.result) == null ? void 0 : d.accessToken), !0) : !1;
|
|
379
|
-
} catch (a) {
|
|
380
|
-
O.error(a);
|
|
381
|
-
}
|
|
382
|
-
}, n = async () => {
|
|
383
|
-
var s, r, d;
|
|
384
|
-
try {
|
|
385
|
-
const a = await Z.post("http://139.196.154.85:20024/api/sysAuth/login", {
|
|
386
|
-
account: "superadmin",
|
|
387
|
-
password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
|
|
388
|
-
codeId: 0,
|
|
389
|
-
code: ""
|
|
390
|
-
});
|
|
391
|
-
return ((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) === 200 && sessionStorage.setItem("magicToken", (d = (r = a.data) == null ? void 0 : r.result) == null ? void 0 : d.accessToken), !0;
|
|
392
|
-
} catch {
|
|
393
|
-
return !0;
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
Q(async () => {
|
|
397
|
-
await N();
|
|
398
|
-
});
|
|
399
|
-
const c = async (s) => {
|
|
400
|
-
var T, F, K, U;
|
|
401
|
-
f.value = !0;
|
|
402
|
-
let r = [ke(s, t.oldSystemKey), N(), n()];
|
|
403
|
-
const d = await Promise.all(r);
|
|
404
|
-
(d == null ? void 0 : d.every((G) => G)) ? (await te(), e.push("/"), w.setLogRecordAsync({
|
|
405
|
-
type: "登录",
|
|
406
|
-
data: {
|
|
407
|
-
account: ((T = l.value) == null ? void 0 : T.account) ?? ((F = l.value) == null ? void 0 : F.账号),
|
|
408
|
-
userName: ((K = l.value) == null ? void 0 : K.姓名) || ((U = l.value) == null ? void 0 : U.userName) || "未知"
|
|
409
|
-
}
|
|
410
|
-
}, "/login", "login")) : f.value = !1;
|
|
411
|
-
}, C = (s) => {
|
|
412
|
-
b.value = s, m.value = !1, f.value = !1;
|
|
413
|
-
}, p = (s) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(s);
|
|
414
|
-
return (s, r) => (B(), I("div", Ne, [
|
|
415
|
-
v("div", $e, [
|
|
416
|
-
v("div", Ae, [
|
|
417
|
-
h(le, { class: "login-left-bg" }, {
|
|
418
|
-
img: u(() => {
|
|
419
|
-
var d, a, T, F;
|
|
420
|
-
return [
|
|
421
|
-
v("div", Fe, [
|
|
422
|
-
v("div", null, S(((d = R(i)) == null ? void 0 : d.EnglishName) || "ETCS"), 1),
|
|
423
|
-
v("div", null, S((a = R(i)) != null && a.chineseName && p((T = R(i)) == null ? void 0 : T.chineseName) ? (F = R(i)) == null ? void 0 : F.chineseName : "发动机试验管控系统"), 1)
|
|
424
|
-
]),
|
|
425
|
-
r[0] || (r[0] = v("div", { class: "divide-line" }, null, -1))
|
|
426
|
-
];
|
|
427
|
-
}),
|
|
428
|
-
_: 1
|
|
429
|
-
})
|
|
430
|
-
]),
|
|
431
|
-
v("div", Se, [
|
|
432
|
-
h(ge, {
|
|
433
|
-
loading: f.value,
|
|
434
|
-
onClickLogin: k,
|
|
435
|
-
onHandleTabChange: C
|
|
436
|
-
}, {
|
|
437
|
-
title: u(() => [
|
|
438
|
-
V(S(o.value.loginTitle), 1)
|
|
439
|
-
]),
|
|
440
|
-
tabLabel1: u(() => [
|
|
441
|
-
V(S(o.value.tabs[0].name), 1)
|
|
442
|
-
]),
|
|
443
|
-
tabContent1: u(() => [
|
|
444
|
-
h(_e, {
|
|
445
|
-
activeTabName: b.value,
|
|
446
|
-
isClickLogin: m.value,
|
|
447
|
-
onHandleLoginFormChange: L
|
|
448
|
-
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
449
|
-
]),
|
|
450
|
-
tabButton1: u(() => [
|
|
451
|
-
V(S(o.value.tabs[0].btnLabel), 1)
|
|
452
|
-
]),
|
|
453
|
-
tabLabel2: u(() => [
|
|
454
|
-
V(S(o.value.tabs[1].name), 1)
|
|
455
|
-
]),
|
|
456
|
-
tabContent2: u(() => [
|
|
457
|
-
h(Le, {
|
|
458
|
-
systemKey: s.oldSystemKey,
|
|
459
|
-
activeTabName: b.value,
|
|
460
|
-
isClickLogin: m.value,
|
|
461
|
-
onHandleLoginFormChange: L
|
|
462
|
-
}, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
|
|
463
|
-
]),
|
|
464
|
-
tabButton2: u(() => [
|
|
465
|
-
V(S(o.value.tabs[1].btnLabel), 1)
|
|
466
|
-
]),
|
|
467
|
-
_: 1
|
|
468
|
-
}, 8, ["loading"])
|
|
469
|
-
])
|
|
470
|
-
])
|
|
471
|
-
]));
|
|
472
|
-
}
|
|
473
|
-
}), Ue = /* @__PURE__ */ M(Ee, [["__scopeId", "data-v-ca0d27a0"]]);
|
|
474
|
-
export {
|
|
475
|
-
Ue as default
|
|
476
|
-
};
|