ss-component-new 1.3.382 → 1.3.384
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-COQzSlop.js → MTLLoader-BQHXDxnO.js} +1 -1
- package/dist/{MTLLoader-DAuK2Puz.cjs → MTLLoader-CkcKuBZC.cjs} +1 -1
- package/dist/{OrbitControls-BSpF9hj8.js → OrbitControls-BLTRuhDa.js} +1 -1
- package/dist/{OrbitControls-knTPRn96.cjs → OrbitControls-DE3CExKk.cjs} +1 -1
- package/dist/{URDFLoader-D6_CEpHZ.cjs → URDFLoader-D8tyuenp.cjs} +1 -1
- package/dist/{URDFLoader-kbmOvMIB.js → URDFLoader-imRRXSC6.js} +2 -2
- package/dist/{animationData-DbE8xWWf.js → animationData-BvgGr_AD.js} +3 -3
- package/dist/{animationData-DmjEvene.cjs → animationData-C0XKzhAY.cjs} +1 -1
- package/dist/{array-BSUZ99oH.js → array-CTY5U_PN.js} +4 -4
- package/dist/{array-BvQOaFxO.cjs → array-sBmECoLs.cjs} +1 -1
- package/dist/{clone-mFCVwr-G.js → clone-C1cp_ZPA.js} +1 -1
- package/dist/clone-ClJmDMw-.cjs +1 -0
- package/dist/{eleIcon-CiJIZabf.js → eleIcon-B_axj8bR.js} +1 -1
- package/dist/{eleIcon-D20IQFYA.cjs → eleIcon-Dr0KcGoI.cjs} +1 -1
- package/dist/{iconfont-DDZGPkz5.cjs → iconfont-CgUOBkc4.cjs} +1 -1
- package/dist/{iconfont-D72sm9Jm.js → iconfont-DF-mcDbr.js} +2 -2
- package/dist/{index-Bf5kpdKA.js → index-9f9f04mZ.js} +4 -4
- package/dist/{index-DnwmGvcp.js → index-B-H0eGnk.js} +8075 -8063
- package/dist/{index-Dub2SbvH.cjs → index-B1FeUhQ3.cjs} +1 -1
- package/dist/index-B1fJDMjR.cjs +1 -0
- package/dist/{index-BvPKncXn.cjs → index-B6tumL2U.cjs} +1 -1
- package/dist/{index-DIfJQHZp.js → index-B8Y_9tEG.js} +3 -3
- package/dist/{index-BZCpc5VL.js → index-B9g2i970.js} +22 -22
- package/dist/index-BA7_vyhG.cjs +1 -0
- package/dist/{index-DxRhIGgJ.js → index-BCT70WiL.js} +18 -18
- package/dist/{index-CKcz17VF.cjs → index-BELWa90a.cjs} +1 -1
- package/dist/{index--l3tMF8l.cjs → index-BGmW1CP0.cjs} +1 -1
- package/dist/{index-BEli6-9O.cjs → index-BUD_iRcK.cjs} +6 -6
- package/dist/{index-Bx95j-0r.cjs → index-BYFXJgbP.cjs} +1 -1
- package/dist/{index-DkTQi1Vq.js → index-Bc2mOUH-.js} +1 -1
- package/dist/{index-DljiGtdC.cjs → index-BcDE44RI.cjs} +1 -1
- package/dist/{index-Ck1Oilyz.cjs → index-BjMprvSX.cjs} +1 -1
- package/dist/{index-P8lg86z4.js → index-Bldno7Iy.js} +10 -10
- package/dist/{index-CmYd6_TA.js → index-BmZwVwZC.js} +1 -1
- package/dist/{index-KB0XWCq4.cjs → index-Bon3pRBp.cjs} +1 -1
- package/dist/index-BqY1Tkyr.cjs +25 -0
- package/dist/{index-0AwREool.cjs → index-BrM2852p.cjs} +1 -1
- package/dist/{index-eh2g6__P.js → index-BrWiuGP2.js} +2 -2
- package/dist/{index-DFGJd-mG.cjs → index-BtSPIq4_.cjs} +1 -1
- package/dist/{index-Ff9cJTW6.cjs → index-Btb3Lv0L.cjs} +1 -1
- package/dist/{index-CzsK_2wL.cjs → index-BvxR8f8X.cjs} +1 -1
- package/dist/{index-DvSKkDLq.js → index-ByUugKZ4.js} +1 -1
- package/dist/{index-B2-ME7I0.cjs → index-C1mWisuO.cjs} +1 -1
- package/dist/{index-WnDj_ILy.cjs → index-C93sz4z1.cjs} +1 -1
- package/dist/{index-6nl_N4qo.cjs → index-CA6wKd_G.cjs} +1 -1
- package/dist/{index-DtAHjBND.js → index-CEQD4kWk.js} +4 -4
- package/dist/{index-BRaaqaJs.js → index-CKzb7xC4.js} +2 -2
- package/dist/index-CNivaVr-.cjs +2 -0
- package/dist/{index-meO4_UNB.cjs → index-CR69-jEg.cjs} +1 -1
- package/dist/{index-BrBW7tRO.cjs → index-CRJ8dFCC.cjs} +2 -2
- package/dist/{index-BjuzVLIW.js → index-CV8KZP8q.js} +2 -2
- package/dist/{index-QpJbzLNb.js → index-CafzZfEy.js} +59 -50
- package/dist/{index-CGQcujDu.js → index-CbJj36LL.js} +2 -2
- package/dist/{index-IiRA9o9r.cjs → index-Cq_4-egL.cjs} +1 -1
- package/dist/{index-D32grlvH.js → index-CxatyCqn.js} +191 -191
- package/dist/{index-DsMPZC4m.js → index-D5eCm00g.js} +5 -5
- package/dist/{index-ziWPnxXp.js → index-DAvhF5vB.js} +8 -8
- package/dist/{index-Bq0PnZa6.cjs → index-DAw4LkTg.cjs} +1 -1
- package/dist/{index-DQ6jmi_D.cjs → index-DEJ3o_Up.cjs} +1 -1
- package/dist/index-DFkCQ0f_.js +10279 -0
- package/dist/{index-CMK4Oemk.js → index-DHAhIKmQ.js} +2 -2
- package/dist/{index-DCSqmK8s.js → index-DJ53lh6a.js} +3 -3
- package/dist/{index-Adu9r9O6.js → index-DKdzfYLA.js} +4 -4
- package/dist/index-DPM6pfAI.js +161 -0
- package/dist/{index-CIGlEa5l.js → index-DUq4XELr.js} +1 -1
- package/dist/index-DWBWvNDH.js +991 -0
- package/dist/{index-DPpm7s-I.cjs → index-DieG68B-.cjs} +1 -1
- package/dist/{index-CW4qJdP8.cjs → index-DmwxzDGW.cjs} +1 -1
- package/dist/{index-A81u786j.js → index-Dz6JFp0r.js} +2 -2
- package/dist/{index-B4CN6AYM.js → index-GYxiPBtz.js} +5 -5
- package/dist/{index-CTMMHmwj.js → index-OJlYJM1j.js} +261 -257
- package/dist/{index-DkYlSN6W.js → index-PL7-PIPs.js} +2 -2
- package/dist/{index-DMmOKrQZ.cjs → index-TRkfc1lq.cjs} +1 -1
- package/dist/{index-BJ-thkmN.cjs → index-aYsnw0xY.cjs} +1 -1
- package/dist/{index-Fmivd5TB.js → index-heDO7aCF.js} +2 -2
- package/dist/{index-DntOrygq.js → index-jFCWOSpo.js} +6 -6
- package/dist/{index-D-CWxIQ_.cjs → index-n7GfhOVN.cjs} +1 -1
- package/dist/{index-BKmXhP9j.cjs → index-q2BN200x.cjs} +1 -1
- package/dist/{index-CyCYlmRK.js → index-roi8I5S3.js} +1 -1
- package/dist/{index-BZWiTy-K.cjs → index-xttC7OK3.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-1iUOnCnG.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B9qUQdPf.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CvrpCION.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DeDQ2Vpf.js} +4 -4
- package/dist/{isString-DNBlKLZH.cjs → isString-CGrvcmBw.cjs} +1 -1
- package/dist/{isString-D42PBiNa.js → isString-ChmgnNIb.js} +1 -1
- package/dist/{main-CRDks8iO.cjs → main-CpVlWVrP.cjs} +1 -1
- package/dist/{main-8ogz4WPH.js → main-y6n9UlHW.js} +4 -4
- package/dist/{menuIndex-4akJxcU5.cjs → menuIndex-CYeoqj0a.cjs} +1 -1
- package/dist/{menuIndex-DUFFnrEE.js → menuIndex-D3tjk7D7.js} +1 -1
- package/dist/{request-BC2w2vGr.cjs → request-Dl8yi2iS.cjs} +6 -6
- package/dist/{request-CbksSN84.js → request-XJsZ4h2T.js} +80 -79
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +12 -12
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +13 -13
- package/dist/{threeModel-BltK6ahE.js → threeModel-C5eTXG0s.js} +5 -5
- package/dist/{threeModel-pBCJbJUj.cjs → threeModel-Dg-07eQL.cjs} +1 -1
- package/dist/{threePreview-LzLgioUW.cjs → threePreview-CszWwdug.cjs} +1 -1
- package/dist/{threePreview-qDH9f8Ts.js → threePreview-DNQsBr54.js} +5 -5
- package/dist/{threeSceneView-Dj7Ei0tl.cjs → threeSceneView-BU4wHFeI.cjs} +1 -1
- package/dist/{threeSceneView-lpkLya7B.js → threeSceneView-DUmO1oB5.js} +39 -39
- package/dist/{threeSceneViewForCPMPIP-u6-wkzf5.js → threeSceneViewForCPMPIP-CC-c7ijL.js} +9 -9
- package/dist/{threeSceneViewForCPMPIP-CWy6aopm.cjs → threeSceneViewForCPMPIP-KrPFDjjY.cjs} +1 -1
- package/dist/{threeTrackPathView-ChBJzHaY.js → threeTrackPathView-CNw6tT-i.js} +6 -6
- package/dist/{threeTrackPathView-B9p_9ESK.cjs → threeTrackPathView-D09nMCuF.cjs} +1 -1
- package/dist/{threeViewerHost-CSn-5XgQ.cjs → threeViewerHost-Df7LK7Wh.cjs} +1 -1
- package/dist/{threeViewerHost-DuJdDO8l.js → threeViewerHost-yEXWE3BL.js} +3 -3
- package/dist/{urdfTree-CPWlk_zb.cjs → urdfTree-BRAUDT58.cjs} +1 -1
- package/dist/{urdfTree-CHqT5mZW.js → urdfTree-WPGh2KP8.js} +1 -1
- package/dist/{workpieceTreePanel-6yKh6IEH.cjs → workpieceTreePanel-D4MJD2ee.cjs} +1 -1
- package/dist/{workpieceTreePanel-BtXiR5Fg.js → workpieceTreePanel-DFlTuJZM.js} +4 -4
- package/package.json +1 -1
- package/dist/clone-lZuOJI1b.cjs +0 -1
- package/dist/index-BXP2Ie3L.js +0 -619
- package/dist/index-Bi-PYsF7.js +0 -151
- package/dist/index-COvTB4A8.js +0 -10242
- package/dist/index-D7H81vN9.cjs +0 -1
- package/dist/index-E8q1Dd5H.cjs +0 -2
- package/dist/index-MaP8ZSc8.cjs +0 -25
- package/dist/index-mHYDJOd1.cjs +0 -1
package/dist/index-BXP2Ie3L.js
DELETED
|
@@ -1,619 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as S, openBlock as x, createElementVNode as n, renderSlot as F, defineComponent as H, ref as U, resolveComponent as C, createVNode as o, withCtx as t, unref as D, reactive as j, computed as Q, onMounted as X, createBlock as Y, watch as K, Fragment as Z, createTextVNode as E, onBeforeUnmount as ee, createCommentVNode as te, toDisplayString as I } from "vue";
|
|
2
|
-
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { b as z, p as M, s as q, u as oe, a as ae, l as ne, v as se } from "./index-CTMMHmwj.js";
|
|
4
|
-
import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
5
|
-
import "./JSEncrypt-B36c1iN5.js";
|
|
6
|
-
import { u as le } from "./index-DkYlSN6W.js";
|
|
7
|
-
import { E as J } from "./request-CbksSN84.js";
|
|
8
|
-
import { useRouter as ie } from "vue-router";
|
|
9
|
-
import { l as ce } from "./index-BRaaqaJs.js";
|
|
10
|
-
const re = {}, ue = { class: "left-wrap" }, de = { class: "left-bg" };
|
|
11
|
-
function pe(f, b) {
|
|
12
|
-
return x(), S("div", ue, [
|
|
13
|
-
n("div", de, [
|
|
14
|
-
F(f.$slots, "img", {}, void 0, !0)
|
|
15
|
-
])
|
|
16
|
-
]);
|
|
17
|
-
}
|
|
18
|
-
const me = /* @__PURE__ */ B(re, [["render", pe], ["__scopeId", "data-v-9b7ee6c9"]]), O = {
|
|
19
|
-
ACCOUNT: "account",
|
|
20
|
-
FACE: "face"
|
|
21
|
-
}, fe = { class: "right-wrap" }, _e = { class: "tab-content" }, ge = { class: "tab-tips" }, ve = { class: "tab-content" }, be = { class: "tab-tips" }, he = /* @__PURE__ */ H({
|
|
22
|
-
__name: "index",
|
|
23
|
-
props: {
|
|
24
|
-
tabList: {
|
|
25
|
-
type: Array,
|
|
26
|
-
default: []
|
|
27
|
-
},
|
|
28
|
-
loading: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
emits: ["clickLogin", "handleTabChange"],
|
|
34
|
-
setup(f, { emit: b }) {
|
|
35
|
-
const r = U(O.ACCOUNT), l = b, w = () => {
|
|
36
|
-
l("clickLogin", r.value);
|
|
37
|
-
}, i = (p) => {
|
|
38
|
-
l("handleTabChange", p);
|
|
39
|
-
};
|
|
40
|
-
return (p, y) => {
|
|
41
|
-
const _ = C("el-button"), L = C("el-tab-pane"), u = C("el-tabs");
|
|
42
|
-
return x(), S("div", fe, [
|
|
43
|
-
o(u, {
|
|
44
|
-
modelValue: r.value,
|
|
45
|
-
"onUpdate:modelValue": y[0] || (y[0] = (s) => r.value = s),
|
|
46
|
-
class: "right-tabs",
|
|
47
|
-
onTabChange: i
|
|
48
|
-
}, {
|
|
49
|
-
default: t(() => [
|
|
50
|
-
o(L, {
|
|
51
|
-
name: D(O).ACCOUNT
|
|
52
|
-
}, {
|
|
53
|
-
label: t(() => [
|
|
54
|
-
F(p.$slots, "tabLabel1", {}, void 0, !0)
|
|
55
|
-
]),
|
|
56
|
-
default: t(() => [
|
|
57
|
-
n("div", _e, [
|
|
58
|
-
F(p.$slots, "tabContent1", {}, void 0, !0)
|
|
59
|
-
]),
|
|
60
|
-
n("div", {
|
|
61
|
-
class: "tab-button special",
|
|
62
|
-
onClick: w
|
|
63
|
-
}, [
|
|
64
|
-
o(_, { loading: f.loading }, {
|
|
65
|
-
default: t(() => [
|
|
66
|
-
F(p.$slots, "tabButton1", {}, void 0, !0)
|
|
67
|
-
]),
|
|
68
|
-
_: 3
|
|
69
|
-
}, 8, ["loading"])
|
|
70
|
-
]),
|
|
71
|
-
n("div", ge, [
|
|
72
|
-
F(p.$slots, "tabTips1", {}, void 0, !0)
|
|
73
|
-
])
|
|
74
|
-
]),
|
|
75
|
-
_: 3
|
|
76
|
-
}, 8, ["name"]),
|
|
77
|
-
o(L, {
|
|
78
|
-
name: D(O).FACE
|
|
79
|
-
}, {
|
|
80
|
-
label: t(() => [
|
|
81
|
-
F(p.$slots, "tabLabel2", {}, void 0, !0)
|
|
82
|
-
]),
|
|
83
|
-
default: t(() => [
|
|
84
|
-
n("div", ve, [
|
|
85
|
-
F(p.$slots, "tabContent2", {}, void 0, !0)
|
|
86
|
-
]),
|
|
87
|
-
n("div", be, [
|
|
88
|
-
F(p.$slots, "tabTips2", {}, void 0, !0)
|
|
89
|
-
])
|
|
90
|
-
]),
|
|
91
|
-
_: 3
|
|
92
|
-
}, 8, ["name"])
|
|
93
|
-
]),
|
|
94
|
-
_: 3
|
|
95
|
-
}, 8, ["modelValue"])
|
|
96
|
-
]);
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
}), ye = /* @__PURE__ */ B(he, [["__scopeId", "data-v-8b1962f0"]]), Ce = /^[a-z][a-z0-9+.-]*:\/\//i, P = (f) => Ce.test(f);
|
|
100
|
-
function we(f) {
|
|
101
|
-
P(f) || (f = `http://${f}`);
|
|
102
|
-
try {
|
|
103
|
-
const b = new URL(f);
|
|
104
|
-
return {
|
|
105
|
-
host: b.hostname,
|
|
106
|
-
// 域名:example.com
|
|
107
|
-
port: b.port || null
|
|
108
|
-
// 端口:8080(默认端口返回空字符串,转为 null)
|
|
109
|
-
};
|
|
110
|
-
} catch {
|
|
111
|
-
return {
|
|
112
|
-
host: null,
|
|
113
|
-
port: null
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
const Le = () => ({ initUrlInfo: () => ({
|
|
118
|
-
host: null,
|
|
119
|
-
port: null
|
|
120
|
-
}), hasProtocol: P, generateUrl: (r) => {
|
|
121
|
-
const { host: l, port: w } = r;
|
|
122
|
-
if (!l)
|
|
123
|
-
return null;
|
|
124
|
-
let i = `${l}`;
|
|
125
|
-
return P(l) || (i = `http://${i}`), w && (i = `${i}:${w}`), i;
|
|
126
|
-
} }), Ue = { class: "body-wrapper" }, Te = { class: "api-form-wrapper" }, $e = { class: "edit-footer" }, ke = { class: "footer-right" }, Ae = /* @__PURE__ */ H({
|
|
127
|
-
__name: "index",
|
|
128
|
-
emits: ["updateApiUrl"],
|
|
129
|
-
setup(f, { expose: b, emit: r }) {
|
|
130
|
-
const l = r, w = z(M), { systemUrl: i } = q(w), { initUrlInfo: p, generateUrl: y } = Le(), _ = U(p()), L = U(), u = j({
|
|
131
|
-
host: [
|
|
132
|
-
{ required: !0, message: "请输入职位名称", trigger: "blur" }
|
|
133
|
-
]
|
|
134
|
-
}), s = Q(() => i.value || "http://222.92.178.198:63002"), v = () => {
|
|
135
|
-
_.value = we(s.value);
|
|
136
|
-
};
|
|
137
|
-
X(() => {
|
|
138
|
-
v();
|
|
139
|
-
});
|
|
140
|
-
const g = U(!1), e = () => {
|
|
141
|
-
v(), g.value = !0;
|
|
142
|
-
}, c = () => {
|
|
143
|
-
g.value = !1;
|
|
144
|
-
}, m = () => {
|
|
145
|
-
c();
|
|
146
|
-
}, h = async () => {
|
|
147
|
-
var d;
|
|
148
|
-
await ((d = L.value) == null ? void 0 : d.validate());
|
|
149
|
-
const T = y(_.value);
|
|
150
|
-
l("updateApiUrl", T), m();
|
|
151
|
-
};
|
|
152
|
-
return b({
|
|
153
|
-
openDialog: e,
|
|
154
|
-
handleClose: m
|
|
155
|
-
}), (T, d) => {
|
|
156
|
-
const N = C("el-input"), R = C("el-form-item"), a = C("el-col"), k = C("el-row"), $ = C("el-form"), A = C("el-dialog");
|
|
157
|
-
return x(), Y(A, {
|
|
158
|
-
class: "api-form-dialog",
|
|
159
|
-
modelValue: g.value,
|
|
160
|
-
"onUpdate:modelValue": d[2] || (d[2] = (V) => g.value = V),
|
|
161
|
-
"before-close": m,
|
|
162
|
-
"destroy-on-close": "",
|
|
163
|
-
"show-close": !1
|
|
164
|
-
}, {
|
|
165
|
-
header: t(() => d[3] || (d[3] = [])),
|
|
166
|
-
default: t(() => [
|
|
167
|
-
n("div", Ue, [
|
|
168
|
-
n("div", Te, [
|
|
169
|
-
o($, {
|
|
170
|
-
class: "api-edit-form",
|
|
171
|
-
ref_key: "apiFormRef",
|
|
172
|
-
ref: L,
|
|
173
|
-
model: _.value,
|
|
174
|
-
rules: u
|
|
175
|
-
}, {
|
|
176
|
-
default: t(() => [
|
|
177
|
-
o(k, { gutter: 20 }, {
|
|
178
|
-
default: t(() => [
|
|
179
|
-
o(a, { span: 12 }, {
|
|
180
|
-
default: t(() => [
|
|
181
|
-
o(R, {
|
|
182
|
-
prop: "host",
|
|
183
|
-
label: "主机名",
|
|
184
|
-
"label-position": "top"
|
|
185
|
-
}, {
|
|
186
|
-
default: t(() => [
|
|
187
|
-
o(N, {
|
|
188
|
-
modelValue: _.value.host,
|
|
189
|
-
"onUpdate:modelValue": d[0] || (d[0] = (V) => _.value.host = V),
|
|
190
|
-
"aria-label": "主机名",
|
|
191
|
-
placeholder: "主机名"
|
|
192
|
-
}, null, 8, ["modelValue"])
|
|
193
|
-
]),
|
|
194
|
-
_: 1
|
|
195
|
-
})
|
|
196
|
-
]),
|
|
197
|
-
_: 1
|
|
198
|
-
}),
|
|
199
|
-
o(a, { span: 12 }, {
|
|
200
|
-
default: t(() => [
|
|
201
|
-
o(R, {
|
|
202
|
-
prop: "port",
|
|
203
|
-
label: "端口",
|
|
204
|
-
"label-position": "top"
|
|
205
|
-
}, {
|
|
206
|
-
default: t(() => [
|
|
207
|
-
o(N, {
|
|
208
|
-
modelValue: _.value.port,
|
|
209
|
-
"onUpdate:modelValue": d[1] || (d[1] = (V) => _.value.port = V),
|
|
210
|
-
"aria-label": "端口",
|
|
211
|
-
placeholder: "端口"
|
|
212
|
-
}, null, 8, ["modelValue"])
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
})
|
|
216
|
-
]),
|
|
217
|
-
_: 1
|
|
218
|
-
})
|
|
219
|
-
]),
|
|
220
|
-
_: 1
|
|
221
|
-
})
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
}, 8, ["model", "rules"])
|
|
225
|
-
])
|
|
226
|
-
])
|
|
227
|
-
]),
|
|
228
|
-
footer: t(() => [
|
|
229
|
-
n("div", $e, [
|
|
230
|
-
d[4] || (d[4] = n("div", { class: "footer-left" }, null, -1)),
|
|
231
|
-
n("div", ke, [
|
|
232
|
-
o(G, {
|
|
233
|
-
class: "cancel",
|
|
234
|
-
emptyColor: !0,
|
|
235
|
-
onClickTrigger: m,
|
|
236
|
-
modelValue: "取消",
|
|
237
|
-
buttonType: "info"
|
|
238
|
-
}),
|
|
239
|
-
o(G, {
|
|
240
|
-
class: "confirm",
|
|
241
|
-
emptyColor: !0,
|
|
242
|
-
onClickTrigger: h,
|
|
243
|
-
modelValue: "确定",
|
|
244
|
-
buttonType: "primary"
|
|
245
|
-
})
|
|
246
|
-
])
|
|
247
|
-
])
|
|
248
|
-
]),
|
|
249
|
-
_: 1
|
|
250
|
-
}, 8, ["modelValue"]);
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
}), Fe = /* @__PURE__ */ B(Ae, [["__scopeId", "data-v-20c1098b"]]), Ve = { class: "account-wrap" }, Ne = { class: "extra-operate" }, Re = /* @__PURE__ */ H({
|
|
254
|
-
__name: "index",
|
|
255
|
-
props: {
|
|
256
|
-
activeTabName: {
|
|
257
|
-
type: String,
|
|
258
|
-
default: ""
|
|
259
|
-
},
|
|
260
|
-
isClickLogin: {
|
|
261
|
-
type: Boolean,
|
|
262
|
-
default: !1
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
emits: ["handleLoginFormChange", "updateApiUrl"],
|
|
266
|
-
setup(f, { emit: b }) {
|
|
267
|
-
const r = f, l = j({
|
|
268
|
-
account: "",
|
|
269
|
-
password: ""
|
|
270
|
-
}), w = j({
|
|
271
|
-
account: [
|
|
272
|
-
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
273
|
-
],
|
|
274
|
-
password: [
|
|
275
|
-
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
276
|
-
]
|
|
277
|
-
}), i = U(null), p = b;
|
|
278
|
-
K(() => r.isClickLogin, (u) => {
|
|
279
|
-
var s;
|
|
280
|
-
u && (r == null ? void 0 : r.activeTabName) === "account" && ((s = i.value) == null || s.validate((v) => {
|
|
281
|
-
var g;
|
|
282
|
-
for (let e in l)
|
|
283
|
-
l.hasOwnProperty(e) && (l[e] = (g = l[e]) == null ? void 0 : g.trim());
|
|
284
|
-
p("handleLoginFormChange", v, v ? l : null);
|
|
285
|
-
}));
|
|
286
|
-
}, {
|
|
287
|
-
immediate: !0
|
|
288
|
-
}), K(() => r.activeTabName, (u) => {
|
|
289
|
-
var s;
|
|
290
|
-
u === "account" && ((s = i.value) == null || s.resetFields());
|
|
291
|
-
});
|
|
292
|
-
const y = U(), _ = () => {
|
|
293
|
-
var u, s;
|
|
294
|
-
(s = (u = y.value) == null ? void 0 : u.openDialog) == null || s.call(u);
|
|
295
|
-
}, L = (u) => {
|
|
296
|
-
p("updateApiUrl", u);
|
|
297
|
-
};
|
|
298
|
-
return (u, s) => {
|
|
299
|
-
const v = C("svg-icon"), g = C("el-input"), e = C("el-form-item"), c = C("el-form"), m = C("el-link");
|
|
300
|
-
return x(), S(Z, null, [
|
|
301
|
-
n("div", Ve, [
|
|
302
|
-
o(c, {
|
|
303
|
-
model: l,
|
|
304
|
-
rules: w,
|
|
305
|
-
ref_key: "formRef",
|
|
306
|
-
ref: i
|
|
307
|
-
}, {
|
|
308
|
-
default: t(() => [
|
|
309
|
-
o(e, {
|
|
310
|
-
label: "",
|
|
311
|
-
prop: "account"
|
|
312
|
-
}, {
|
|
313
|
-
default: t(() => [
|
|
314
|
-
o(g, {
|
|
315
|
-
class: "account-input",
|
|
316
|
-
modelValue: l.account,
|
|
317
|
-
"onUpdate:modelValue": s[0] || (s[0] = (h) => l.account = h),
|
|
318
|
-
placeholder: "请输入账号",
|
|
319
|
-
clearable: ""
|
|
320
|
-
}, {
|
|
321
|
-
prefix: t(() => [
|
|
322
|
-
o(v, {
|
|
323
|
-
name: "account",
|
|
324
|
-
style: { width: "15px", height: "15px" }
|
|
325
|
-
})
|
|
326
|
-
]),
|
|
327
|
-
_: 1
|
|
328
|
-
}, 8, ["modelValue"])
|
|
329
|
-
]),
|
|
330
|
-
_: 1
|
|
331
|
-
}),
|
|
332
|
-
o(e, {
|
|
333
|
-
label: "",
|
|
334
|
-
prop: "password"
|
|
335
|
-
}, {
|
|
336
|
-
default: t(() => [
|
|
337
|
-
o(g, {
|
|
338
|
-
class: "account-input",
|
|
339
|
-
modelValue: l.password,
|
|
340
|
-
"onUpdate:modelValue": s[1] || (s[1] = (h) => l.password = h),
|
|
341
|
-
type: "password",
|
|
342
|
-
placeholder: "请输入密码",
|
|
343
|
-
"show-password": "",
|
|
344
|
-
clearable: ""
|
|
345
|
-
}, {
|
|
346
|
-
prefix: t(() => [
|
|
347
|
-
o(v, {
|
|
348
|
-
name: "password",
|
|
349
|
-
style: { width: "15px", height: "15px" }
|
|
350
|
-
})
|
|
351
|
-
]),
|
|
352
|
-
_: 1
|
|
353
|
-
}, 8, ["modelValue"])
|
|
354
|
-
]),
|
|
355
|
-
_: 1
|
|
356
|
-
})
|
|
357
|
-
]),
|
|
358
|
-
_: 1
|
|
359
|
-
}, 8, ["model", "rules"]),
|
|
360
|
-
n("div", Ne, [
|
|
361
|
-
o(m, {
|
|
362
|
-
class: "api-button",
|
|
363
|
-
type: "primary",
|
|
364
|
-
onClick: _
|
|
365
|
-
}, {
|
|
366
|
-
default: t(() => s[2] || (s[2] = [
|
|
367
|
-
E("接口地址")
|
|
368
|
-
])),
|
|
369
|
-
_: 1,
|
|
370
|
-
__: [2]
|
|
371
|
-
})
|
|
372
|
-
])
|
|
373
|
-
]),
|
|
374
|
-
o(Fe, {
|
|
375
|
-
ref_key: "apiFormDialogRef",
|
|
376
|
-
ref: y,
|
|
377
|
-
onUpdateApiUrl: L
|
|
378
|
-
}, null, 512)
|
|
379
|
-
], 64);
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
}), Ie = /* @__PURE__ */ B(Re, [["__scopeId", "data-v-032ff9a0"]]), xe = { class: "account-wrap" }, Ee = { class: "video-wrap" }, Se = /* @__PURE__ */ H({
|
|
383
|
-
__name: "index",
|
|
384
|
-
props: {
|
|
385
|
-
systemKey: { default: "" },
|
|
386
|
-
activeTabName: { default: "" },
|
|
387
|
-
isClickLogin: { type: Boolean, default: !1 }
|
|
388
|
-
},
|
|
389
|
-
emits: ["handleLoginFormChange"],
|
|
390
|
-
setup(f, { emit: b }) {
|
|
391
|
-
const r = f, l = b;
|
|
392
|
-
z(M);
|
|
393
|
-
const { initVerify: w } = le(), i = U(null), p = U(null);
|
|
394
|
-
let y = !1, _ = null;
|
|
395
|
-
const L = async (e) => {
|
|
396
|
-
if (!e)
|
|
397
|
-
return;
|
|
398
|
-
const c = await w(e), { data: m } = c || {}, { account: h, password: T } = (m == null ? void 0 : m.data) || {}, d = m == null ? void 0 : m.msg;
|
|
399
|
-
if (!h) {
|
|
400
|
-
J.warning(d || "识别失败,请重新识别!");
|
|
401
|
-
return;
|
|
402
|
-
}
|
|
403
|
-
l("handleLoginFormChange", !0, {
|
|
404
|
-
account: h,
|
|
405
|
-
password: T
|
|
406
|
-
});
|
|
407
|
-
}, u = () => {
|
|
408
|
-
if (!p.value || !i.value)
|
|
409
|
-
return;
|
|
410
|
-
const e = p.value, c = e.getContext("2d"), m = i.value;
|
|
411
|
-
e.width = 200, e.height = 200;
|
|
412
|
-
const h = m.videoWidth || 640, T = m.videoHeight || 480, d = Math.min(200 / h, 200 / T), N = h * d, R = T * d, a = (200 - N) / 2, k = (200 - R) / 2;
|
|
413
|
-
c == null || c.drawImage(m, 0, 0, h, T, a, k, N, R), e.toBlob(($) => {
|
|
414
|
-
if ($) {
|
|
415
|
-
const A = new File([$], "face.png", { type: "image/png" });
|
|
416
|
-
L(A);
|
|
417
|
-
}
|
|
418
|
-
}, "image/png");
|
|
419
|
-
}, s = async () => {
|
|
420
|
-
if (!i.value || y)
|
|
421
|
-
return;
|
|
422
|
-
const e = i.value;
|
|
423
|
-
try {
|
|
424
|
-
if (_ = await navigator.mediaDevices.getUserMedia({
|
|
425
|
-
video: { facingMode: "user" },
|
|
426
|
-
// 前置;后置用 'environment'
|
|
427
|
-
audio: !1
|
|
428
|
-
}), e) {
|
|
429
|
-
const c = e;
|
|
430
|
-
c.srcObject = _, y = !0;
|
|
431
|
-
}
|
|
432
|
-
} catch {
|
|
433
|
-
J.warning("摄像头启动失败");
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
|
-
function v(e) {
|
|
437
|
-
if (e && (e.getTracks().forEach((c) => c.stop()), i.value)) {
|
|
438
|
-
const c = i.value;
|
|
439
|
-
c.srcObject = null;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
const g = () => {
|
|
443
|
-
v(_), y = !1;
|
|
444
|
-
};
|
|
445
|
-
return K(() => r.activeTabName, (e) => {
|
|
446
|
-
if (e !== O.FACE) {
|
|
447
|
-
g();
|
|
448
|
-
return;
|
|
449
|
-
}
|
|
450
|
-
if (e === O.FACE && !y) {
|
|
451
|
-
s();
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
}), ee(() => {
|
|
455
|
-
g();
|
|
456
|
-
}), (e, c) => (x(), S("div", xe, [
|
|
457
|
-
n("div", Ee, [
|
|
458
|
-
n("video", {
|
|
459
|
-
class: "face-video",
|
|
460
|
-
ref_key: "videoRef",
|
|
461
|
-
ref: i,
|
|
462
|
-
id: "v",
|
|
463
|
-
autoplay: "",
|
|
464
|
-
playsinline: ""
|
|
465
|
-
}, null, 512)
|
|
466
|
-
]),
|
|
467
|
-
F(e.$slots, "default", {}, () => [
|
|
468
|
-
n("button", {
|
|
469
|
-
class: "face-screenshot",
|
|
470
|
-
onClick: u
|
|
471
|
-
}, "人脸识别")
|
|
472
|
-
], !0),
|
|
473
|
-
n("canvas", {
|
|
474
|
-
ref_key: "canvasRef",
|
|
475
|
-
ref: p,
|
|
476
|
-
id: "canvas"
|
|
477
|
-
}, null, 512)
|
|
478
|
-
]));
|
|
479
|
-
}
|
|
480
|
-
}), Be = /* @__PURE__ */ B(Se, [["__scopeId", "data-v-b64bc91c"]]), Me = { class: "login-wrap" }, Oe = { class: "login-body" }, He = { class: "login-body-item left" }, De = { class: "title" }, Ke = { class: "first-level" }, je = {
|
|
481
|
-
key: 0,
|
|
482
|
-
class: "logo"
|
|
483
|
-
}, qe = ["src"], Pe = { class: "english-name" }, ze = { class: "login-body-item right" }, We = /* @__PURE__ */ H({
|
|
484
|
-
__name: "index",
|
|
485
|
-
props: {
|
|
486
|
-
oldSystemKey: {},
|
|
487
|
-
loginContent: {}
|
|
488
|
-
},
|
|
489
|
-
emits: ["change", "projectLogin", "updateApiUrl"],
|
|
490
|
-
setup(f, { emit: b }) {
|
|
491
|
-
const r = f, l = ie(), w = b, i = oe(M), p = ae(M), { refreshLogin: y } = q(p), _ = z(M), { systemInfo: L, loginUserInfo: u } = q(_), s = Q(() => {
|
|
492
|
-
var a;
|
|
493
|
-
return ((a = L.value) == null ? void 0 : a.logo) || ne;
|
|
494
|
-
}), v = U({
|
|
495
|
-
// sysCTitle: 'INSOFWORKS',
|
|
496
|
-
sysCTitle: "",
|
|
497
|
-
sysETitle: "",
|
|
498
|
-
// sysETitle: 'Dynamic Test Information System',
|
|
499
|
-
loginTitle: "账户密码登录",
|
|
500
|
-
tabs: [
|
|
501
|
-
{
|
|
502
|
-
name: "密码登录",
|
|
503
|
-
btnLabel: "登录",
|
|
504
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
name: "人脸识别",
|
|
508
|
-
btnLabel: "人脸识别",
|
|
509
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
name: "刷卡登录",
|
|
513
|
-
btnLabel: "登录",
|
|
514
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
515
|
-
}
|
|
516
|
-
]
|
|
517
|
-
}), g = U("account"), e = U(!1), c = U(!1), m = () => {
|
|
518
|
-
e.value = !0;
|
|
519
|
-
}, h = (a, k) => {
|
|
520
|
-
e.value = !1, a && d(k);
|
|
521
|
-
}, T = async () => (sessionStorage.setItem("loginToken", "111"), !0);
|
|
522
|
-
X(async () => {
|
|
523
|
-
await T();
|
|
524
|
-
});
|
|
525
|
-
const d = async (a) => {
|
|
526
|
-
var $, A, V, W;
|
|
527
|
-
c.value = !0, await ce(a) ? (w("projectLogin", a), await se(), l.push("/"), _.setLogRecordAsync({
|
|
528
|
-
type: "登录",
|
|
529
|
-
data: {
|
|
530
|
-
account: (($ = u.value) == null ? void 0 : $.account) ?? ((A = u.value) == null ? void 0 : A.账号),
|
|
531
|
-
userName: ((V = u.value) == null ? void 0 : V.姓名) || ((W = u.value) == null ? void 0 : W.userName) || "未知"
|
|
532
|
-
}
|
|
533
|
-
}, "/login", "login"), i.setHasClickEditComp(!1)) : c.value = !1, c.value = !1;
|
|
534
|
-
};
|
|
535
|
-
K(
|
|
536
|
-
() => r == null ? void 0 : r.loginContent,
|
|
537
|
-
() => {
|
|
538
|
-
let a = r == null ? void 0 : r.loginContent;
|
|
539
|
-
a != null && a.account && (a != null && a.password) && !y.value && d(a);
|
|
540
|
-
},
|
|
541
|
-
{ deep: !0, immediate: !0 }
|
|
542
|
-
);
|
|
543
|
-
const N = (a) => {
|
|
544
|
-
g.value = a, e.value = !1, c.value = !1;
|
|
545
|
-
}, R = (a) => {
|
|
546
|
-
w("updateApiUrl", a);
|
|
547
|
-
};
|
|
548
|
-
return (a, k) => (x(), S("div", Me, [
|
|
549
|
-
n("div", Oe, [
|
|
550
|
-
n("div", He, [
|
|
551
|
-
o(me, { class: "login-left-bg" }, {
|
|
552
|
-
img: t(() => {
|
|
553
|
-
var $, A;
|
|
554
|
-
return [
|
|
555
|
-
n("div", De, [
|
|
556
|
-
n("div", Ke, [
|
|
557
|
-
s.value ? (x(), S("div", je, [
|
|
558
|
-
n("img", {
|
|
559
|
-
src: s.value,
|
|
560
|
-
alt: ""
|
|
561
|
-
}, null, 8, qe)
|
|
562
|
-
])) : te("", !0),
|
|
563
|
-
n("div", Pe, I((($ = D(L)) == null ? void 0 : $.EnglishName) || "Insofworks"), 1)
|
|
564
|
-
]),
|
|
565
|
-
n("div", null, I(((A = D(L)) == null ? void 0 : A.chineseName) || "工业软件建模与开发系统"), 1)
|
|
566
|
-
]),
|
|
567
|
-
k[0] || (k[0] = n("div", { class: "divide-line" }, null, -1))
|
|
568
|
-
];
|
|
569
|
-
}),
|
|
570
|
-
_: 1
|
|
571
|
-
})
|
|
572
|
-
]),
|
|
573
|
-
n("div", ze, [
|
|
574
|
-
o(ye, {
|
|
575
|
-
loading: c.value,
|
|
576
|
-
onClickLogin: m,
|
|
577
|
-
onHandleTabChange: N
|
|
578
|
-
}, {
|
|
579
|
-
title: t(() => [
|
|
580
|
-
E(I(v.value.loginTitle), 1)
|
|
581
|
-
]),
|
|
582
|
-
tabLabel1: t(() => [
|
|
583
|
-
E(I(v.value.tabs[0].name), 1)
|
|
584
|
-
]),
|
|
585
|
-
tabContent1: t(() => [
|
|
586
|
-
o(Ie, {
|
|
587
|
-
activeTabName: g.value,
|
|
588
|
-
isClickLogin: e.value,
|
|
589
|
-
onHandleLoginFormChange: h,
|
|
590
|
-
onUpdateApiUrl: R
|
|
591
|
-
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
592
|
-
]),
|
|
593
|
-
tabButton1: t(() => [
|
|
594
|
-
E(I(v.value.tabs[0].btnLabel), 1)
|
|
595
|
-
]),
|
|
596
|
-
tabLabel2: t(() => [
|
|
597
|
-
E(I(v.value.tabs[1].name), 1)
|
|
598
|
-
]),
|
|
599
|
-
tabContent2: t(() => [
|
|
600
|
-
o(Be, {
|
|
601
|
-
systemKey: a.oldSystemKey,
|
|
602
|
-
activeTabName: g.value,
|
|
603
|
-
isClickLogin: e.value,
|
|
604
|
-
onHandleLoginFormChange: h
|
|
605
|
-
}, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
|
|
606
|
-
]),
|
|
607
|
-
tabButton2: t(() => [
|
|
608
|
-
E(I(v.value.tabs[1].btnLabel), 1)
|
|
609
|
-
]),
|
|
610
|
-
_: 1
|
|
611
|
-
}, 8, ["loading"])
|
|
612
|
-
])
|
|
613
|
-
])
|
|
614
|
-
]));
|
|
615
|
-
}
|
|
616
|
-
}), at = /* @__PURE__ */ B(We, [["__scopeId", "data-v-ddcd537b"]]);
|
|
617
|
-
export {
|
|
618
|
-
at as default
|
|
619
|
-
};
|