ss-component-new 1.3.308 → 1.3.310
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-C5MDF_u9.js → MTLLoader-CIEnVGmG.js} +1 -1
- package/dist/{MTLLoader-ZhszjUpU.cjs → MTLLoader-OzB6aQ1J.cjs} +1 -1
- package/dist/{OrbitControls-CJUe63YQ.js → OrbitControls-AFlrwr_K.js} +1 -1
- package/dist/{OrbitControls-q8pvLR01.cjs → OrbitControls-DkGe2Ptd.cjs} +1 -1
- package/dist/{URDFLoader-Dz18c9fI.cjs → URDFLoader-DSqxUYRw.cjs} +1 -1
- package/dist/{URDFLoader-DoX-Y7W1.js → URDFLoader-SQ3u-Q_8.js} +2 -2
- package/dist/{animationData-FjGiDA1a.cjs → animationData-B6OfhxX7.cjs} +1 -1
- package/dist/{animationData-B0KsThxS.js → animationData-DEAc-sVN.js} +3 -3
- package/dist/{array-CFglXJ-5.cjs → array-CAaog6qg.cjs} +1 -1
- package/dist/{array-CpUJ9Gnj.js → array-Ydde3r7w.js} +4 -4
- package/dist/{clone-BRPsYo3q.js → clone-7AmADFiU.js} +1 -1
- package/dist/clone-DR4pDnuw.cjs +1 -0
- package/dist/{dayjs.min-CDrjrMM0.cjs → dayjs.min-CJNj6LcW.cjs} +1 -1
- package/dist/{dayjs.min-BztxmKP_.js → dayjs.min-DTIKCUrF.js} +1 -1
- package/dist/{iconfont-YRMokIWN.js → iconfont--3ZMb9Aj.js} +2 -2
- package/dist/{iconfont-G-gdm-Om.cjs → iconfont-dsQaI5I4.cjs} +1 -1
- package/dist/{index-BTfG4kv2.cjs → index-17CQJTv4.cjs} +1 -1
- package/dist/{index-B52ZLLQv.js → index-2KYbe_7L.js} +2 -2
- package/dist/{index-E4jIAYIF.js → index-4dur0sB4.js} +4 -4
- package/dist/{index-CsrYLqV4.cjs → index-5EqtwNP3.cjs} +2 -2
- package/dist/{index-CQvnxubl.js → index-6-ZsdeZD.js} +4 -4
- package/dist/{index-DYtXnpdP.cjs → index-B0RsEw5m.cjs} +1 -1
- package/dist/{index-BpShqnXB.cjs → index-B2Bsxjo3.cjs} +1 -1
- package/dist/{index-CRcuEuLy.cjs → index-B3t77A1L.cjs} +1 -1
- package/dist/{index-B9SDicC_.cjs → index-BU3Yohec.cjs} +1 -1
- package/dist/index-Bc-WLx7S.cjs +1 -0
- package/dist/{index-COMnc7Iz.js → index-BesmmP6V.js} +4 -4
- package/dist/{index-CIl1smq5.cjs → index-BhadNQIa.cjs} +1 -1
- package/dist/{index-RMPdJ6EN.js → index-BkS6ltPu.js} +1 -1
- package/dist/{index-Cm8Vk-AI.cjs → index-BlLEla5k.cjs} +1 -1
- package/dist/{index-D4w1aI2Z.cjs → index-BsmJfM3E.cjs} +1 -1
- package/dist/{index-Cfm4OgG5.js → index-BuTyP2j6.js} +1 -1
- package/dist/{index-BjBmRkcU.cjs → index-CFZ-f-2F.cjs} +1 -1
- package/dist/{index-CoecNIDg.cjs → index-CGaMJ1tM.cjs} +1 -1
- package/dist/{index-DW2gQwvW.js → index-CIuY1IfZ.js} +1 -1
- package/dist/{index-Bjkw2zNs.js → index-CQGipCwR.js} +3 -3
- package/dist/{index-DD8E_nN2.cjs → index-CRqblQs6.cjs} +1 -1
- package/dist/{index-Dmsmfi-S.js → index-CT1fhrt6.js} +9 -9
- package/dist/{index-DYfVyol_.js → index-Cf2gp9fi.js} +3 -3
- package/dist/{index-Cm5qsKko.js → index-Ciy-wUsx.js} +19 -19
- package/dist/{index-BmgVXwns.js → index-ClBVw2TK.js} +3 -3
- package/dist/{index-DbjAoGwL.cjs → index-Clae5SKB.cjs} +1 -1
- package/dist/{index-DiRLGrKr.cjs → index-CuPeKtNC.cjs} +1 -1
- package/dist/{index-BF9aAYMR.js → index-CyD2ZGI0.js} +2 -2
- package/dist/{index-DtuwBR5e.js → index-D25spbOo.js} +1 -1
- package/dist/{index-BgDSG6D4.js → index-D2crrlxW.js} +6 -6
- package/dist/{index-DwBGCg5X.js → index-D3oAYPfe.js} +14 -15
- package/dist/{index-BpBeXMIB.cjs → index-D6-Yrm0v.cjs} +1 -1
- package/dist/{index-BVDs8qrj.cjs → index-DBrsZqeh.cjs} +1 -1
- package/dist/{index-GlEFHx6g.cjs → index-DEHdaKzw.cjs} +1 -1
- package/dist/{index-CUah87qj.js → index-DIR0HLgr.js} +6 -6
- package/dist/{index-6ZtJKzRc.cjs → index-DJnMQzMz.cjs} +1 -1
- package/dist/{index-Cq2yCfdn.js → index-DL9VQs02.js} +2 -2
- package/dist/index-DMv7whzL.cjs +1 -0
- package/dist/{index-Cn_-UXHQ.js → index-DNV_O6Dc.js} +1 -1
- package/dist/{index-B-T8_bdu.cjs → index-DSJJfH49.cjs} +1 -1
- package/dist/{index-BzWVTbrh.cjs → index-DeiDI-1m.cjs} +1 -1
- package/dist/{index-DiHhjpML.js → index-Di2VsnFa.js} +27 -30
- package/dist/{index-BtOyM_sR.js → index-DqIM3shB.js} +1 -1
- package/dist/{index-R9ATh_A3.cjs → index-Dt6f0dss.cjs} +1 -1
- package/dist/{index-xYeo-ZaT.js → index-DyBLFpRg.js} +1 -1
- package/dist/{index-C83KN5ng.cjs → index-EMsSHq7U.cjs} +1 -1
- package/dist/{index-Dg_Yvyg2.cjs → index-FPHxJvUf.cjs} +1 -1
- package/dist/{index-CHAUkN76.cjs → index-Kt492P5R.cjs} +1 -1
- package/dist/{index-BR2KdBRg.cjs → index-U9njmngc.cjs} +1 -1
- package/dist/{index-CicCVoUT.js → index-XSrc1sWV.js} +4 -4
- package/dist/{index-BasmAzPa.cjs → index-YmuGsjrw.cjs} +1 -1
- package/dist/{index-BkL1aC6N.cjs → index-hLwB_v-A.cjs} +1 -1
- package/dist/{index-DIQ--db3.js → index-krueaJgV.js} +9 -9
- package/dist/{index-wd51At0u.js → index-oAsacBj3.js} +2 -2
- package/dist/{index-tq9Fe8Z6.js → index-r6mcGvmD.js} +1 -1
- package/dist/{index-B8L8lFax.js → index-tH9fLWoV.js} +2 -2
- package/dist/index-vcuXxLeo.js +481 -0
- package/dist/{index-B9bdrEgM.js → index-wZ9pUfoa.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-SGy5yG5i.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D13dnI_4.cjs} +62 -62
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dvs2RyZp.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DniaKXV9.js} +1848 -1843
- package/dist/{main-10L0g1fI.js → main-CwH9qJVm.js} +4 -4
- package/dist/{main-BXWv8TM8.cjs → main-DdEjcQ4o.cjs} +1 -1
- package/dist/{menu-BMnGyr1i.js → menu-CN_Tf3mn.js} +2 -1
- package/dist/{menu-D2crOMII.cjs → menu-N76i05Ex.cjs} +4 -4
- package/dist/{menuIndex-BDgRHAHX.js → menuIndex-CD5tqM1b.js} +1 -1
- package/dist/{menuIndex-DHKljvlF.cjs → menuIndex-r6NllfjR.cjs} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +12 -12
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-D4oP1GvW.js → threeModel-BD7DSPW-.js} +4 -4
- package/dist/{threeModel-D08sZvKL.cjs → threeModel-Uk6zD89R.cjs} +1 -1
- package/dist/{threePreview-CDcZMK0E.cjs → threePreview-BHGQBuXr.cjs} +1 -1
- package/dist/{threePreview-CtfWSGvR.js → threePreview-CZqaZ45g.js} +4 -4
- package/dist/{threeSceneView-CROSNNdm.cjs → threeSceneView-DN_qbrRS.cjs} +1 -1
- package/dist/{threeSceneView-Bg2WfhfE.js → threeSceneView-wkRekazs.js} +14 -14
- package/dist/{threeSceneViewForCPMPIP-D_WJ3MvX.cjs → threeSceneViewForCPMPIP-BztGaGm9.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-B9GQ96pF.js → threeSceneViewForCPMPIP-mwU1RKVh.js} +8 -8
- package/dist/{threeTrackPathView-C_PwU0kh.cjs → threeTrackPathView-BQzCi_23.cjs} +1 -1
- package/dist/{threeTrackPathView-9nQfED_U.js → threeTrackPathView-D6IuvNTn.js} +4 -4
- package/dist/{threeViewerHost-CIqealDo.cjs → threeViewerHost-BEzl0gjk.cjs} +1 -1
- package/dist/{threeViewerHost-BTQIg4FD.js → threeViewerHost-DsDxhyJb.js} +3 -3
- package/dist/{urdfTree-_BQaYRwa.js → urdfTree-6bW1rIxd.js} +1 -1
- package/dist/{urdfTree-DiQXKQ6F.cjs → urdfTree-BoRXNADP.cjs} +1 -1
- package/dist/{workpieceTreePanel-BmqjPWca.js → workpieceTreePanel-BhCB5YyR.js} +4 -4
- package/dist/{workpieceTreePanel-CokRYPH2.cjs → workpieceTreePanel-BunFs5sL.cjs} +1 -1
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/clone-YEtL4Hc_.cjs +0 -1
- package/dist/index-D7khcIZY.cjs +0 -1
- package/dist/index-DeV3S8tV.cjs +0 -1
- package/dist/index-k5FIpfnl.js +0 -666
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as E, reactive as Bt, computed as rt, watch as At } from "vue";
|
|
2
2
|
import { E as pt } from "./request-CoGtW0Ux.js";
|
|
3
|
-
import { L as _t, u as Ot, p as P, s as L, b as Vt, a as It, c as kt } from "./menu-
|
|
3
|
+
import { L as _t, u as Ot, p as P, s as L, b as Vt, a as It, c as kt } from "./menu-CN_Tf3mn.js";
|
|
4
4
|
const Nt = _t("authorityState", {
|
|
5
5
|
state: () => ({
|
|
6
6
|
routerPageStructures: []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
|
|
2
|
-
import { s as b } from "./index-
|
|
3
|
-
import { c as s } from "./menu-
|
|
2
|
+
import { s as b } from "./index-BuTyP2j6.js";
|
|
3
|
+
import { c as s } from "./menu-CN_Tf3mn.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const A = (t, n, a) => {
|
|
6
6
|
var r, d, p, m;
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { createElementBlock as R, openBlock as M, createElementVNode as r, renderSlot as k, defineComponent as O, ref as S, resolveComponent as E, createVNode as v, withCtx as d, unref as q, reactive as Z, watch as K, onBeforeUnmount as oe, computed as ne, onMounted as se, createCommentVNode as ie, toDisplayString as A, createTextVNode as V } from "vue";
|
|
2
|
+
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import { b as D, p as x, l as le, d as ce, u as re, a as de, s as ee, e as ue } from "./menu-CN_Tf3mn.js";
|
|
4
|
+
import "./index-r6mcGvmD.js";
|
|
5
|
+
import { u as me } from "./index-DNV_O6Dc.js";
|
|
6
|
+
import { E as P } from "./request-CoGtW0Ux.js";
|
|
7
|
+
import { useRouter as ge } from "vue-router";
|
|
8
|
+
import { u as fe, l as pe, v as _e } from "./index-2KYbe_7L.js";
|
|
9
|
+
const ve = {}, be = { class: "left-wrap" }, he = { class: "left-bg" };
|
|
10
|
+
function ye(h, g) {
|
|
11
|
+
return M(), R("div", be, [
|
|
12
|
+
r("div", he, [
|
|
13
|
+
k(h.$slots, "img", {}, void 0, !0)
|
|
14
|
+
])
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
const Ce = /* @__PURE__ */ I(ve, [["render", ye], ["__scopeId", "data-v-9b7ee6c9"]]), B = {
|
|
18
|
+
ACCOUNT: "account",
|
|
19
|
+
FACE: "face"
|
|
20
|
+
}, we = { class: "right-wrap" }, Le = { class: "tab-content" }, Te = { class: "tab-tips" }, ke = { class: "tab-content" }, Ne = { class: "tab-tips" }, $e = /* @__PURE__ */ O({
|
|
21
|
+
__name: "index",
|
|
22
|
+
props: {
|
|
23
|
+
tabList: {
|
|
24
|
+
type: Array,
|
|
25
|
+
default: []
|
|
26
|
+
},
|
|
27
|
+
loading: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["clickLogin", "handleTabChange"],
|
|
33
|
+
setup(h, { emit: g }) {
|
|
34
|
+
const t = S(B.ACCOUNT), e = g, C = () => {
|
|
35
|
+
e("clickLogin", t.value);
|
|
36
|
+
}, u = (l) => {
|
|
37
|
+
e("handleTabChange", l);
|
|
38
|
+
};
|
|
39
|
+
return (l, f) => {
|
|
40
|
+
const o = E("el-button"), b = E("el-tab-pane"), m = E("el-tabs");
|
|
41
|
+
return M(), R("div", we, [
|
|
42
|
+
v(m, {
|
|
43
|
+
modelValue: t.value,
|
|
44
|
+
"onUpdate:modelValue": f[0] || (f[0] = (s) => t.value = s),
|
|
45
|
+
class: "right-tabs",
|
|
46
|
+
onTabChange: u
|
|
47
|
+
}, {
|
|
48
|
+
default: d(() => [
|
|
49
|
+
v(b, {
|
|
50
|
+
name: q(B).ACCOUNT
|
|
51
|
+
}, {
|
|
52
|
+
label: d(() => [
|
|
53
|
+
k(l.$slots, "tabLabel1", {}, void 0, !0)
|
|
54
|
+
]),
|
|
55
|
+
default: d(() => [
|
|
56
|
+
r("div", Le, [
|
|
57
|
+
k(l.$slots, "tabContent1", {}, void 0, !0)
|
|
58
|
+
]),
|
|
59
|
+
r("div", {
|
|
60
|
+
class: "tab-button special",
|
|
61
|
+
onClick: C
|
|
62
|
+
}, [
|
|
63
|
+
v(o, { loading: h.loading }, {
|
|
64
|
+
default: d(() => [
|
|
65
|
+
k(l.$slots, "tabButton1", {}, void 0, !0)
|
|
66
|
+
]),
|
|
67
|
+
_: 3
|
|
68
|
+
}, 8, ["loading"])
|
|
69
|
+
]),
|
|
70
|
+
r("div", Te, [
|
|
71
|
+
k(l.$slots, "tabTips1", {}, void 0, !0)
|
|
72
|
+
])
|
|
73
|
+
]),
|
|
74
|
+
_: 3
|
|
75
|
+
}, 8, ["name"]),
|
|
76
|
+
v(b, {
|
|
77
|
+
name: q(B).FACE
|
|
78
|
+
}, {
|
|
79
|
+
label: d(() => [
|
|
80
|
+
k(l.$slots, "tabLabel2", {}, void 0, !0)
|
|
81
|
+
]),
|
|
82
|
+
default: d(() => [
|
|
83
|
+
r("div", ke, [
|
|
84
|
+
k(l.$slots, "tabContent2", {}, void 0, !0)
|
|
85
|
+
]),
|
|
86
|
+
r("div", Ne, [
|
|
87
|
+
k(l.$slots, "tabTips2", {}, void 0, !0)
|
|
88
|
+
])
|
|
89
|
+
]),
|
|
90
|
+
_: 3
|
|
91
|
+
}, 8, ["name"])
|
|
92
|
+
]),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 8, ["modelValue"])
|
|
95
|
+
]);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}), Se = /* @__PURE__ */ I($e, [["__scopeId", "data-v-8b1962f0"]]), Fe = { class: "account-wrap" }, Ae = /* @__PURE__ */ O({
|
|
99
|
+
__name: "index",
|
|
100
|
+
props: {
|
|
101
|
+
activeTabName: {
|
|
102
|
+
type: String,
|
|
103
|
+
default: ""
|
|
104
|
+
},
|
|
105
|
+
isClickLogin: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: !1
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
emits: ["handleLoginFormChange"],
|
|
111
|
+
setup(h, { emit: g }) {
|
|
112
|
+
const t = h, e = Z({
|
|
113
|
+
account: "",
|
|
114
|
+
password: ""
|
|
115
|
+
}), C = Z({
|
|
116
|
+
account: [
|
|
117
|
+
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
118
|
+
],
|
|
119
|
+
password: [
|
|
120
|
+
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
121
|
+
]
|
|
122
|
+
}), u = S(null), l = g;
|
|
123
|
+
return K(() => t.isClickLogin, (f) => {
|
|
124
|
+
var o;
|
|
125
|
+
f && (t == null ? void 0 : t.activeTabName) === "account" && ((o = u.value) == null || o.validate((b) => {
|
|
126
|
+
var m;
|
|
127
|
+
for (let s in e)
|
|
128
|
+
e.hasOwnProperty(s) && (e[s] = (m = e[s]) == null ? void 0 : m.trim());
|
|
129
|
+
l("handleLoginFormChange", b, b ? e : null);
|
|
130
|
+
}));
|
|
131
|
+
}, {
|
|
132
|
+
immediate: !0
|
|
133
|
+
}), K(() => t.activeTabName, (f) => {
|
|
134
|
+
var o;
|
|
135
|
+
f === "account" && ((o = u.value) == null || o.resetFields());
|
|
136
|
+
}), (f, o) => {
|
|
137
|
+
const b = E("svg-icon"), m = E("el-input"), s = E("el-form-item"), L = E("el-form");
|
|
138
|
+
return M(), R("div", Fe, [
|
|
139
|
+
v(L, {
|
|
140
|
+
model: e,
|
|
141
|
+
rules: C,
|
|
142
|
+
ref_key: "formRef",
|
|
143
|
+
ref: u
|
|
144
|
+
}, {
|
|
145
|
+
default: d(() => [
|
|
146
|
+
v(s, {
|
|
147
|
+
label: "",
|
|
148
|
+
prop: "account"
|
|
149
|
+
}, {
|
|
150
|
+
default: d(() => [
|
|
151
|
+
v(m, {
|
|
152
|
+
class: "account-input",
|
|
153
|
+
modelValue: e.account,
|
|
154
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => e.account = p),
|
|
155
|
+
placeholder: "请输入账号",
|
|
156
|
+
clearable: ""
|
|
157
|
+
}, {
|
|
158
|
+
prefix: d(() => [
|
|
159
|
+
v(b, {
|
|
160
|
+
name: "account",
|
|
161
|
+
style: { width: "15px", height: "15px" }
|
|
162
|
+
})
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["modelValue"])
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}),
|
|
169
|
+
v(s, {
|
|
170
|
+
label: "",
|
|
171
|
+
prop: "password"
|
|
172
|
+
}, {
|
|
173
|
+
default: d(() => [
|
|
174
|
+
v(m, {
|
|
175
|
+
class: "account-input",
|
|
176
|
+
modelValue: e.password,
|
|
177
|
+
"onUpdate:modelValue": o[1] || (o[1] = (p) => e.password = p),
|
|
178
|
+
type: "password",
|
|
179
|
+
placeholder: "请输入密码",
|
|
180
|
+
"show-password": "",
|
|
181
|
+
clearable: ""
|
|
182
|
+
}, {
|
|
183
|
+
prefix: d(() => [
|
|
184
|
+
v(b, {
|
|
185
|
+
name: "password",
|
|
186
|
+
style: { width: "15px", height: "15px" }
|
|
187
|
+
})
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["modelValue"])
|
|
191
|
+
]),
|
|
192
|
+
_: 1
|
|
193
|
+
})
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
}, 8, ["model", "rules"])
|
|
197
|
+
]);
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
}), Ee = /* @__PURE__ */ I(Ae, [["__scopeId", "data-v-48037c0f"]]), Re = { class: "account-wrap" }, Me = { class: "video-wrap" }, Ve = /* @__PURE__ */ O({
|
|
201
|
+
__name: "index",
|
|
202
|
+
props: {
|
|
203
|
+
systemKey: { default: "" },
|
|
204
|
+
activeTabName: { default: "" },
|
|
205
|
+
isClickLogin: { type: Boolean, default: !1 }
|
|
206
|
+
},
|
|
207
|
+
emits: ["handleLoginFormChange"],
|
|
208
|
+
setup(h, { emit: g }) {
|
|
209
|
+
const t = h, e = g;
|
|
210
|
+
D(x);
|
|
211
|
+
const { initVerify: C } = me(), u = S(null), l = S(null);
|
|
212
|
+
let f = !1, o = null;
|
|
213
|
+
const b = async (a) => {
|
|
214
|
+
if (!a)
|
|
215
|
+
return;
|
|
216
|
+
const n = await C(a), { data: c } = n || {}, { account: y, password: w } = (c == null ? void 0 : c.data) || {}, _ = c == null ? void 0 : c.msg;
|
|
217
|
+
if (!y) {
|
|
218
|
+
P.warning(_ || "识别失败,请重新识别!");
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
e("handleLoginFormChange", !0, {
|
|
222
|
+
account: y,
|
|
223
|
+
password: w
|
|
224
|
+
});
|
|
225
|
+
}, m = () => {
|
|
226
|
+
if (!l.value || !u.value)
|
|
227
|
+
return;
|
|
228
|
+
const a = l.value, n = a.getContext("2d"), c = u.value;
|
|
229
|
+
a.width = 200, a.height = 200;
|
|
230
|
+
const y = c.videoWidth || 640, w = c.videoHeight || 480, _ = Math.min(200 / y, 200 / w), N = y * _, F = w * _, H = (200 - N) / 2, i = (200 - F) / 2;
|
|
231
|
+
n == null || n.drawImage(c, 0, 0, y, w, H, i, N, F), a.toBlob((T) => {
|
|
232
|
+
if (T) {
|
|
233
|
+
const $ = new File([T], "face.png", { type: "image/png" });
|
|
234
|
+
b($);
|
|
235
|
+
}
|
|
236
|
+
}, "image/png");
|
|
237
|
+
}, s = async () => {
|
|
238
|
+
if (!u.value || f)
|
|
239
|
+
return;
|
|
240
|
+
const a = u.value;
|
|
241
|
+
try {
|
|
242
|
+
if (o = await navigator.mediaDevices.getUserMedia({
|
|
243
|
+
video: { facingMode: "user" },
|
|
244
|
+
// 前置;后置用 'environment'
|
|
245
|
+
audio: !1
|
|
246
|
+
}), a) {
|
|
247
|
+
const n = a;
|
|
248
|
+
n.srcObject = o, f = !0;
|
|
249
|
+
}
|
|
250
|
+
} catch {
|
|
251
|
+
P.warning("摄像头启动失败");
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
function L(a) {
|
|
255
|
+
if (a && (a.getTracks().forEach((n) => n.stop()), u.value)) {
|
|
256
|
+
const n = u.value;
|
|
257
|
+
n.srcObject = null;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
const p = () => {
|
|
261
|
+
L(o), f = !1;
|
|
262
|
+
};
|
|
263
|
+
return K(() => t.activeTabName, (a) => {
|
|
264
|
+
if (a !== B.FACE) {
|
|
265
|
+
p();
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
if (a === B.FACE && !f) {
|
|
269
|
+
s();
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
}), oe(() => {
|
|
273
|
+
p();
|
|
274
|
+
}), (a, n) => (M(), R("div", Re, [
|
|
275
|
+
r("div", Me, [
|
|
276
|
+
r("video", {
|
|
277
|
+
class: "face-video",
|
|
278
|
+
ref_key: "videoRef",
|
|
279
|
+
ref: u,
|
|
280
|
+
id: "v",
|
|
281
|
+
autoplay: "",
|
|
282
|
+
playsinline: ""
|
|
283
|
+
}, null, 512)
|
|
284
|
+
]),
|
|
285
|
+
k(a.$slots, "default", {}, () => [
|
|
286
|
+
r("button", {
|
|
287
|
+
class: "face-screenshot",
|
|
288
|
+
onClick: m
|
|
289
|
+
}, "人脸识别")
|
|
290
|
+
], !0),
|
|
291
|
+
r("canvas", {
|
|
292
|
+
ref_key: "canvasRef",
|
|
293
|
+
ref: l,
|
|
294
|
+
id: "canvas"
|
|
295
|
+
}, null, 512)
|
|
296
|
+
]));
|
|
297
|
+
}
|
|
298
|
+
}), xe = /* @__PURE__ */ I(Ve, [["__scopeId", "data-v-b64bc91c"]]), te = D(x), { isDefaultModel: Be } = fe(), Ie = async (h, g) => {
|
|
299
|
+
var C, u, l, f, o, b, m, s, L, p, a, n, c, y;
|
|
300
|
+
let t = Object.values(h), e = await le({
|
|
301
|
+
userName: (C = t == null ? void 0 : t[0]) == null ? void 0 : C.trim(),
|
|
302
|
+
password: (u = t == null ? void 0 : t[1]) == null ? void 0 : u.trim()
|
|
303
|
+
});
|
|
304
|
+
if (((l = e == null ? void 0 : e.data) == null ? void 0 : l.status) === 200 && ((o = (f = e == null ? void 0 : e.data) == null ? void 0 : f.result) == null ? void 0 : o.length) <= 0 && (e = await ce({
|
|
305
|
+
userName: (b = t == null ? void 0 : t[0]) == null ? void 0 : b.trim(),
|
|
306
|
+
password: (m = t == null ? void 0 : t[1]) == null ? void 0 : m.trim(),
|
|
307
|
+
path: "系统管理/用户管理",
|
|
308
|
+
platId: g
|
|
309
|
+
})), ((s = e == null ? void 0 : e.data) == null ? void 0 : s.status) === 200 && ((p = (L = e == null ? void 0 : e.data) == null ? void 0 : L.result) == null ? void 0 : p.length) > 0) {
|
|
310
|
+
const _ = ((n = (a = e == null ? void 0 : e.data) == null ? void 0 : a.result) == null ? void 0 : n.find((F) => Be(F))) || ((y = (c = e == null ? void 0 : e.data) == null ? void 0 : c.result) == null ? void 0 : y[0]);
|
|
311
|
+
sessionStorage.setItem("systemKey", g && g !== "" ? g : _ == null ? void 0 : _.plat_id);
|
|
312
|
+
let N = _;
|
|
313
|
+
return N.plat_id = N.plat_id ?? g, te.setLoginUserInfo(N), te.setSystemKey(g && g !== "" ? g : _ == null ? void 0 : _.plat_id), !0;
|
|
314
|
+
} else
|
|
315
|
+
return P.error("输入的密码错误,请重新输入"), !1;
|
|
316
|
+
}, Ue = { class: "login-wrap" }, je = { class: "login-body" }, qe = { class: "login-body-item left" }, Ke = { class: "title" }, Oe = { class: "first-level" }, He = {
|
|
317
|
+
key: 0,
|
|
318
|
+
class: "logo"
|
|
319
|
+
}, Pe = ["src"], De = { class: "english-name" }, Je = { class: "login-body-item right" }, We = /* @__PURE__ */ O({
|
|
320
|
+
__name: "index",
|
|
321
|
+
props: {
|
|
322
|
+
oldSystemKey: {},
|
|
323
|
+
loginContent: {}
|
|
324
|
+
},
|
|
325
|
+
emits: ["change", "projectLogin"],
|
|
326
|
+
setup(h, { emit: g }) {
|
|
327
|
+
const t = h, e = ge(), C = g, u = re(x), l = de(x), { refreshLogin: f } = ee(l), o = D(x), { systemKey: b, systemInfo: m, loginUserInfo: s } = ee(o), L = ne(() => {
|
|
328
|
+
var i;
|
|
329
|
+
return ((i = m.value) == null ? void 0 : i.logo) || pe;
|
|
330
|
+
}), p = S({
|
|
331
|
+
// sysCTitle: 'INSOFWORKS',
|
|
332
|
+
sysCTitle: "",
|
|
333
|
+
sysETitle: "",
|
|
334
|
+
// sysETitle: 'Dynamic Test Information System',
|
|
335
|
+
loginTitle: "账户密码登录",
|
|
336
|
+
tabs: [
|
|
337
|
+
{
|
|
338
|
+
name: "密码登录",
|
|
339
|
+
btnLabel: "登录",
|
|
340
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
name: "人脸识别",
|
|
344
|
+
btnLabel: "人脸识别",
|
|
345
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: "刷卡登录",
|
|
349
|
+
btnLabel: "登录",
|
|
350
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
}), a = S("account"), n = S(!1), c = S(!1), y = () => {
|
|
354
|
+
n.value = !0;
|
|
355
|
+
}, w = (i, T) => {
|
|
356
|
+
n.value = !1, i && F(T);
|
|
357
|
+
}, _ = async () => (sessionStorage.setItem("loginToken", "111"), !0), N = async () => (sessionStorage.setItem("magicToken", "123456"), !0);
|
|
358
|
+
se(async () => {
|
|
359
|
+
await _();
|
|
360
|
+
});
|
|
361
|
+
const F = async (i) => {
|
|
362
|
+
var J, W, z, G, Q, X, Y;
|
|
363
|
+
c.value = !0;
|
|
364
|
+
let T = [Ie(i, (J = m.value) == null ? void 0 : J.plat_id), _(), N()];
|
|
365
|
+
const $ = await Promise.all(T), U = $ == null ? void 0 : $.every((j) => j);
|
|
366
|
+
let ae = [
|
|
367
|
+
{
|
|
368
|
+
id: "1",
|
|
369
|
+
request_method: "Post",
|
|
370
|
+
request_url: "/platform/getdata",
|
|
371
|
+
request_param: JSON.stringify({
|
|
372
|
+
userName: "hjj",
|
|
373
|
+
password: "1"
|
|
374
|
+
}),
|
|
375
|
+
request_result: "{}",
|
|
376
|
+
is_delete: !1,
|
|
377
|
+
request_table: "admin_user",
|
|
378
|
+
request_type: "login"
|
|
379
|
+
}
|
|
380
|
+
];
|
|
381
|
+
try {
|
|
382
|
+
const j = ((W = s == null ? void 0 : s.value) == null ? void 0 : W.plat_id) || ((z = m.value) == null ? void 0 : z.plat_id);
|
|
383
|
+
await ue({
|
|
384
|
+
platId: parseInt(j),
|
|
385
|
+
changeContents: [{
|
|
386
|
+
tableName: "log",
|
|
387
|
+
tableContents: ae
|
|
388
|
+
}]
|
|
389
|
+
});
|
|
390
|
+
} catch {
|
|
391
|
+
}
|
|
392
|
+
U ? (C("projectLogin", i), await _e(), e.push("/"), o.setLogRecordAsync({
|
|
393
|
+
type: "登录",
|
|
394
|
+
data: {
|
|
395
|
+
account: ((G = s.value) == null ? void 0 : G.account) ?? ((Q = s.value) == null ? void 0 : Q.账号),
|
|
396
|
+
userName: ((X = s.value) == null ? void 0 : X.姓名) || ((Y = s.value) == null ? void 0 : Y.userName) || "未知"
|
|
397
|
+
}
|
|
398
|
+
}, "/login", "login"), u.setHasClickEditComp(!1)) : c.value = !1, c.value = !1;
|
|
399
|
+
};
|
|
400
|
+
K(
|
|
401
|
+
() => t == null ? void 0 : t.loginContent,
|
|
402
|
+
() => {
|
|
403
|
+
let i = t == null ? void 0 : t.loginContent;
|
|
404
|
+
i != null && i.account && (i != null && i.password) && !f.value && F(i);
|
|
405
|
+
},
|
|
406
|
+
{ deep: !0, immediate: !0 }
|
|
407
|
+
);
|
|
408
|
+
const H = (i) => {
|
|
409
|
+
a.value = i, n.value = !1, c.value = !1;
|
|
410
|
+
};
|
|
411
|
+
return (i, T) => (M(), R("div", Ue, [
|
|
412
|
+
r("div", je, [
|
|
413
|
+
r("div", qe, [
|
|
414
|
+
v(Ce, { class: "login-left-bg" }, {
|
|
415
|
+
img: d(() => {
|
|
416
|
+
var $, U;
|
|
417
|
+
return [
|
|
418
|
+
r("div", Ke, [
|
|
419
|
+
r("div", Oe, [
|
|
420
|
+
L.value ? (M(), R("div", He, [
|
|
421
|
+
r("img", {
|
|
422
|
+
src: L.value,
|
|
423
|
+
alt: ""
|
|
424
|
+
}, null, 8, Pe)
|
|
425
|
+
])) : ie("", !0),
|
|
426
|
+
r("div", De, A((($ = q(m)) == null ? void 0 : $.EnglishName) || "Insofworks"), 1)
|
|
427
|
+
]),
|
|
428
|
+
r("div", null, A(((U = q(m)) == null ? void 0 : U.chineseName) || "工业软件建模与开发系统"), 1)
|
|
429
|
+
]),
|
|
430
|
+
T[0] || (T[0] = r("div", { class: "divide-line" }, null, -1))
|
|
431
|
+
];
|
|
432
|
+
}),
|
|
433
|
+
_: 1
|
|
434
|
+
})
|
|
435
|
+
]),
|
|
436
|
+
r("div", Je, [
|
|
437
|
+
v(Se, {
|
|
438
|
+
loading: c.value,
|
|
439
|
+
onClickLogin: y,
|
|
440
|
+
onHandleTabChange: H
|
|
441
|
+
}, {
|
|
442
|
+
title: d(() => [
|
|
443
|
+
V(A(p.value.loginTitle), 1)
|
|
444
|
+
]),
|
|
445
|
+
tabLabel1: d(() => [
|
|
446
|
+
V(A(p.value.tabs[0].name), 1)
|
|
447
|
+
]),
|
|
448
|
+
tabContent1: d(() => [
|
|
449
|
+
v(Ee, {
|
|
450
|
+
activeTabName: a.value,
|
|
451
|
+
isClickLogin: n.value,
|
|
452
|
+
onHandleLoginFormChange: w
|
|
453
|
+
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
454
|
+
]),
|
|
455
|
+
tabButton1: d(() => [
|
|
456
|
+
V(A(p.value.tabs[0].btnLabel), 1)
|
|
457
|
+
]),
|
|
458
|
+
tabLabel2: d(() => [
|
|
459
|
+
V(A(p.value.tabs[1].name), 1)
|
|
460
|
+
]),
|
|
461
|
+
tabContent2: d(() => [
|
|
462
|
+
v(xe, {
|
|
463
|
+
systemKey: i.oldSystemKey,
|
|
464
|
+
activeTabName: a.value,
|
|
465
|
+
isClickLogin: n.value,
|
|
466
|
+
onHandleLoginFormChange: w
|
|
467
|
+
}, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
|
|
468
|
+
]),
|
|
469
|
+
tabButton2: d(() => [
|
|
470
|
+
V(A(p.value.tabs[1].btnLabel), 1)
|
|
471
|
+
]),
|
|
472
|
+
_: 1
|
|
473
|
+
}, 8, ["loading"])
|
|
474
|
+
])
|
|
475
|
+
])
|
|
476
|
+
]));
|
|
477
|
+
}
|
|
478
|
+
}), at = /* @__PURE__ */ I(We, [["__scopeId", "data-v-2da2fa80"]]);
|
|
479
|
+
export {
|
|
480
|
+
at as default
|
|
481
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
|
|
2
|
-
import { S as m } from "./index-
|
|
3
|
-
import { Z as _ } from "./index-
|
|
2
|
+
import { S as m } from "./index-DyBLFpRg.js";
|
|
3
|
+
import { Z as _ } from "./index-D3oAYPfe.js";
|
|
4
4
|
import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
|
|
6
6
|
__name: "index",
|