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
package/dist/index-k5FIpfnl.js
DELETED
|
@@ -1,666 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as I, openBlock as R, createElementVNode as m, renderSlot as F, defineComponent as q, ref as k, resolveComponent as w, createVNode as l, withCtx as s, unref as D, reactive as z, computed as se, onMounted as le, createBlock as ce, watch as P, Fragment as re, createTextVNode as x, onBeforeUnmount as ue, createCommentVNode as de, toDisplayString as V } from "vue";
|
|
2
|
-
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { b as H, p as E, s as J, l as me, d as pe, u as fe, a as _e, e as ge } from "./menu-BMnGyr1i.js";
|
|
4
|
-
import { _ as ae } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
5
|
-
import "./index-tq9Fe8Z6.js";
|
|
6
|
-
import { u as ve } from "./index-Cn_-UXHQ.js";
|
|
7
|
-
import { E as W } from "./request-CoGtW0Ux.js";
|
|
8
|
-
import { useRouter as be } from "vue-router";
|
|
9
|
-
import { u as he, l as ye, v as Ce } from "./index-B52ZLLQv.js";
|
|
10
|
-
const we = {}, Le = { class: "left-wrap" }, Ue = { class: "left-bg" };
|
|
11
|
-
function Te(v, p) {
|
|
12
|
-
return R(), I("div", Le, [
|
|
13
|
-
m("div", Ue, [
|
|
14
|
-
F(v.$slots, "img", {}, void 0, !0)
|
|
15
|
-
])
|
|
16
|
-
]);
|
|
17
|
-
}
|
|
18
|
-
const ke = /* @__PURE__ */ M(we, [["render", Te], ["__scopeId", "data-v-9b7ee6c9"]]), O = {
|
|
19
|
-
ACCOUNT: "account",
|
|
20
|
-
FACE: "face"
|
|
21
|
-
}, $e = { class: "right-wrap" }, Ae = { class: "tab-content" }, Ne = { class: "tab-tips" }, Fe = { class: "tab-content" }, Ve = { class: "tab-tips" }, Re = /* @__PURE__ */ q({
|
|
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(v, { emit: p }) {
|
|
35
|
-
const t = k(O.ACCOUNT), e = p, y = () => {
|
|
36
|
-
e("clickLogin", t.value);
|
|
37
|
-
}, i = (f) => {
|
|
38
|
-
e("handleTabChange", f);
|
|
39
|
-
};
|
|
40
|
-
return (f, b) => {
|
|
41
|
-
const g = w("el-button"), L = w("el-tab-pane"), c = w("el-tabs");
|
|
42
|
-
return R(), I("div", $e, [
|
|
43
|
-
l(c, {
|
|
44
|
-
modelValue: t.value,
|
|
45
|
-
"onUpdate:modelValue": b[0] || (b[0] = (a) => t.value = a),
|
|
46
|
-
class: "right-tabs",
|
|
47
|
-
onTabChange: i
|
|
48
|
-
}, {
|
|
49
|
-
default: s(() => [
|
|
50
|
-
l(L, {
|
|
51
|
-
name: D(O).ACCOUNT
|
|
52
|
-
}, {
|
|
53
|
-
label: s(() => [
|
|
54
|
-
F(f.$slots, "tabLabel1", {}, void 0, !0)
|
|
55
|
-
]),
|
|
56
|
-
default: s(() => [
|
|
57
|
-
m("div", Ae, [
|
|
58
|
-
F(f.$slots, "tabContent1", {}, void 0, !0)
|
|
59
|
-
]),
|
|
60
|
-
m("div", {
|
|
61
|
-
class: "tab-button special",
|
|
62
|
-
onClick: y
|
|
63
|
-
}, [
|
|
64
|
-
l(g, { loading: v.loading }, {
|
|
65
|
-
default: s(() => [
|
|
66
|
-
F(f.$slots, "tabButton1", {}, void 0, !0)
|
|
67
|
-
]),
|
|
68
|
-
_: 3
|
|
69
|
-
}, 8, ["loading"])
|
|
70
|
-
]),
|
|
71
|
-
m("div", Ne, [
|
|
72
|
-
F(f.$slots, "tabTips1", {}, void 0, !0)
|
|
73
|
-
])
|
|
74
|
-
]),
|
|
75
|
-
_: 3
|
|
76
|
-
}, 8, ["name"]),
|
|
77
|
-
l(L, {
|
|
78
|
-
name: D(O).FACE
|
|
79
|
-
}, {
|
|
80
|
-
label: s(() => [
|
|
81
|
-
F(f.$slots, "tabLabel2", {}, void 0, !0)
|
|
82
|
-
]),
|
|
83
|
-
default: s(() => [
|
|
84
|
-
m("div", Fe, [
|
|
85
|
-
F(f.$slots, "tabContent2", {}, void 0, !0)
|
|
86
|
-
]),
|
|
87
|
-
m("div", Ve, [
|
|
88
|
-
F(f.$slots, "tabTips2", {}, void 0, !0)
|
|
89
|
-
])
|
|
90
|
-
]),
|
|
91
|
-
_: 3
|
|
92
|
-
}, 8, ["name"])
|
|
93
|
-
]),
|
|
94
|
-
_: 3
|
|
95
|
-
}, 8, ["modelValue"])
|
|
96
|
-
]);
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
}), Se = /* @__PURE__ */ M(Re, [["__scopeId", "data-v-8b1962f0"]]), xe = /^[a-z][a-z0-9+.-]*:\/\//i, G = (v) => xe.test(v);
|
|
100
|
-
function Ee(v) {
|
|
101
|
-
G(v) || (v = `http://${v}`);
|
|
102
|
-
try {
|
|
103
|
-
const p = new URL(v);
|
|
104
|
-
return {
|
|
105
|
-
host: p.hostname,
|
|
106
|
-
// 域名:example.com
|
|
107
|
-
port: p.port || null
|
|
108
|
-
// 端口:8080(默认端口返回空字符串,转为 null)
|
|
109
|
-
};
|
|
110
|
-
} catch {
|
|
111
|
-
return {
|
|
112
|
-
host: null,
|
|
113
|
-
port: null
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
const Ie = () => ({ initUrlInfo: () => ({
|
|
118
|
-
host: null,
|
|
119
|
-
port: null
|
|
120
|
-
}), hasProtocol: G, generateUrl: (t) => {
|
|
121
|
-
const { host: e, port: y } = t;
|
|
122
|
-
if (!e)
|
|
123
|
-
return null;
|
|
124
|
-
let i = `${e}`;
|
|
125
|
-
return G(e) || (i = `http://${i}`), y && (i = `${i}:${y}`), i;
|
|
126
|
-
} }), Me = { class: "body-wrapper" }, Be = { class: "api-form-wrapper" }, Oe = { class: "edit-footer" }, qe = { class: "footer-right" }, je = /* @__PURE__ */ q({
|
|
127
|
-
__name: "index",
|
|
128
|
-
emits: ["updateApiUrl"],
|
|
129
|
-
setup(v, { expose: p, emit: t }) {
|
|
130
|
-
const e = t, y = H(E), { systemUrl: i } = J(y), { initUrlInfo: f, generateUrl: b } = Ie(), g = k(f()), L = k(), c = z({
|
|
131
|
-
host: [
|
|
132
|
-
{ required: !0, message: "请输入职位名称", trigger: "blur" }
|
|
133
|
-
]
|
|
134
|
-
}), a = se(() => i.value || "http://222.92.178.198:63002"), C = () => {
|
|
135
|
-
g.value = Ee(a.value);
|
|
136
|
-
};
|
|
137
|
-
le(() => {
|
|
138
|
-
C();
|
|
139
|
-
});
|
|
140
|
-
const _ = k(!1), o = () => {
|
|
141
|
-
C(), _.value = !0;
|
|
142
|
-
}, r = () => {
|
|
143
|
-
_.value = !1;
|
|
144
|
-
}, u = () => {
|
|
145
|
-
r();
|
|
146
|
-
}, h = async () => {
|
|
147
|
-
var n;
|
|
148
|
-
await ((n = L.value) == null ? void 0 : n.validate());
|
|
149
|
-
const U = b(g.value);
|
|
150
|
-
e("updateApiUrl", U), u();
|
|
151
|
-
};
|
|
152
|
-
return p({
|
|
153
|
-
openDialog: o,
|
|
154
|
-
handleClose: u
|
|
155
|
-
}), (U, n) => {
|
|
156
|
-
const $ = w("el-input"), A = w("el-form-item"), S = w("el-col"), B = w("el-row"), d = w("el-form"), N = w("el-dialog");
|
|
157
|
-
return R(), ce(N, {
|
|
158
|
-
class: "api-form-dialog",
|
|
159
|
-
modelValue: _.value,
|
|
160
|
-
"onUpdate:modelValue": n[2] || (n[2] = (T) => _.value = T),
|
|
161
|
-
"before-close": u,
|
|
162
|
-
"destroy-on-close": "",
|
|
163
|
-
"show-close": !1
|
|
164
|
-
}, {
|
|
165
|
-
header: s(() => n[3] || (n[3] = [])),
|
|
166
|
-
default: s(() => [
|
|
167
|
-
m("div", Me, [
|
|
168
|
-
m("div", Be, [
|
|
169
|
-
l(d, {
|
|
170
|
-
class: "api-edit-form",
|
|
171
|
-
ref_key: "apiFormRef",
|
|
172
|
-
ref: L,
|
|
173
|
-
model: g.value,
|
|
174
|
-
rules: c
|
|
175
|
-
}, {
|
|
176
|
-
default: s(() => [
|
|
177
|
-
l(B, { gutter: 20 }, {
|
|
178
|
-
default: s(() => [
|
|
179
|
-
l(S, { span: 12 }, {
|
|
180
|
-
default: s(() => [
|
|
181
|
-
l(A, {
|
|
182
|
-
prop: "host",
|
|
183
|
-
label: "主机名",
|
|
184
|
-
"label-position": "top"
|
|
185
|
-
}, {
|
|
186
|
-
default: s(() => [
|
|
187
|
-
l($, {
|
|
188
|
-
modelValue: g.value.host,
|
|
189
|
-
"onUpdate:modelValue": n[0] || (n[0] = (T) => g.value.host = T),
|
|
190
|
-
"aria-label": "主机名",
|
|
191
|
-
placeholder: "主机名"
|
|
192
|
-
}, null, 8, ["modelValue"])
|
|
193
|
-
]),
|
|
194
|
-
_: 1
|
|
195
|
-
})
|
|
196
|
-
]),
|
|
197
|
-
_: 1
|
|
198
|
-
}),
|
|
199
|
-
l(S, { span: 12 }, {
|
|
200
|
-
default: s(() => [
|
|
201
|
-
l(A, {
|
|
202
|
-
prop: "port",
|
|
203
|
-
label: "端口",
|
|
204
|
-
"label-position": "top"
|
|
205
|
-
}, {
|
|
206
|
-
default: s(() => [
|
|
207
|
-
l($, {
|
|
208
|
-
modelValue: g.value.port,
|
|
209
|
-
"onUpdate:modelValue": n[1] || (n[1] = (T) => g.value.port = T),
|
|
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: s(() => [
|
|
229
|
-
m("div", Oe, [
|
|
230
|
-
n[4] || (n[4] = m("div", { class: "footer-left" }, null, -1)),
|
|
231
|
-
m("div", qe, [
|
|
232
|
-
l(ae, {
|
|
233
|
-
class: "cancel",
|
|
234
|
-
emptyColor: !0,
|
|
235
|
-
onClickTrigger: u,
|
|
236
|
-
modelValue: "取消",
|
|
237
|
-
buttonType: "info"
|
|
238
|
-
}),
|
|
239
|
-
l(ae, {
|
|
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
|
-
}), Ke = /* @__PURE__ */ M(je, [["__scopeId", "data-v-20c1098b"]]), De = { class: "account-wrap" }, Pe = { class: "extra-operate" }, He = /* @__PURE__ */ q({
|
|
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(v, { emit: p }) {
|
|
267
|
-
const t = v, e = z({
|
|
268
|
-
account: "",
|
|
269
|
-
password: ""
|
|
270
|
-
}), y = z({
|
|
271
|
-
account: [
|
|
272
|
-
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
273
|
-
],
|
|
274
|
-
password: [
|
|
275
|
-
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
276
|
-
]
|
|
277
|
-
}), i = k(null), f = p;
|
|
278
|
-
P(() => t.isClickLogin, (c) => {
|
|
279
|
-
var a;
|
|
280
|
-
c && (t == null ? void 0 : t.activeTabName) === "account" && ((a = i.value) == null || a.validate((C) => {
|
|
281
|
-
var _;
|
|
282
|
-
for (let o in e)
|
|
283
|
-
e.hasOwnProperty(o) && (e[o] = (_ = e[o]) == null ? void 0 : _.trim());
|
|
284
|
-
f("handleLoginFormChange", C, C ? e : null);
|
|
285
|
-
}));
|
|
286
|
-
}, {
|
|
287
|
-
immediate: !0
|
|
288
|
-
}), P(() => t.activeTabName, (c) => {
|
|
289
|
-
var a;
|
|
290
|
-
c === "account" && ((a = i.value) == null || a.resetFields());
|
|
291
|
-
});
|
|
292
|
-
const b = k(), g = () => {
|
|
293
|
-
var c, a;
|
|
294
|
-
(a = (c = b.value) == null ? void 0 : c.openDialog) == null || a.call(c);
|
|
295
|
-
}, L = (c) => {
|
|
296
|
-
f("updateApiUrl", c);
|
|
297
|
-
};
|
|
298
|
-
return (c, a) => {
|
|
299
|
-
const C = w("svg-icon"), _ = w("el-input"), o = w("el-form-item"), r = w("el-form"), u = w("el-link");
|
|
300
|
-
return R(), I(re, null, [
|
|
301
|
-
m("div", De, [
|
|
302
|
-
l(r, {
|
|
303
|
-
model: e,
|
|
304
|
-
rules: y,
|
|
305
|
-
ref_key: "formRef",
|
|
306
|
-
ref: i
|
|
307
|
-
}, {
|
|
308
|
-
default: s(() => [
|
|
309
|
-
l(o, {
|
|
310
|
-
label: "",
|
|
311
|
-
prop: "account"
|
|
312
|
-
}, {
|
|
313
|
-
default: s(() => [
|
|
314
|
-
l(_, {
|
|
315
|
-
class: "account-input",
|
|
316
|
-
modelValue: e.account,
|
|
317
|
-
"onUpdate:modelValue": a[0] || (a[0] = (h) => e.account = h),
|
|
318
|
-
placeholder: "请输入账号",
|
|
319
|
-
clearable: ""
|
|
320
|
-
}, {
|
|
321
|
-
prefix: s(() => [
|
|
322
|
-
l(C, {
|
|
323
|
-
name: "account",
|
|
324
|
-
style: { width: "15px", height: "15px" }
|
|
325
|
-
})
|
|
326
|
-
]),
|
|
327
|
-
_: 1
|
|
328
|
-
}, 8, ["modelValue"])
|
|
329
|
-
]),
|
|
330
|
-
_: 1
|
|
331
|
-
}),
|
|
332
|
-
l(o, {
|
|
333
|
-
label: "",
|
|
334
|
-
prop: "password"
|
|
335
|
-
}, {
|
|
336
|
-
default: s(() => [
|
|
337
|
-
l(_, {
|
|
338
|
-
class: "account-input",
|
|
339
|
-
modelValue: e.password,
|
|
340
|
-
"onUpdate:modelValue": a[1] || (a[1] = (h) => e.password = h),
|
|
341
|
-
type: "password",
|
|
342
|
-
placeholder: "请输入密码",
|
|
343
|
-
"show-password": "",
|
|
344
|
-
clearable: ""
|
|
345
|
-
}, {
|
|
346
|
-
prefix: s(() => [
|
|
347
|
-
l(C, {
|
|
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
|
-
m("div", Pe, [
|
|
361
|
-
l(u, {
|
|
362
|
-
class: "api-button",
|
|
363
|
-
type: "primary",
|
|
364
|
-
onClick: g
|
|
365
|
-
}, {
|
|
366
|
-
default: s(() => a[2] || (a[2] = [
|
|
367
|
-
x("接口地址")
|
|
368
|
-
])),
|
|
369
|
-
_: 1,
|
|
370
|
-
__: [2]
|
|
371
|
-
})
|
|
372
|
-
])
|
|
373
|
-
]),
|
|
374
|
-
l(Ke, {
|
|
375
|
-
ref_key: "apiFormDialogRef",
|
|
376
|
-
ref: b,
|
|
377
|
-
onUpdateApiUrl: L
|
|
378
|
-
}, null, 512)
|
|
379
|
-
], 64);
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
}), ze = /* @__PURE__ */ M(He, [["__scopeId", "data-v-032ff9a0"]]), Je = { class: "account-wrap" }, We = { class: "video-wrap" }, Ge = /* @__PURE__ */ q({
|
|
383
|
-
__name: "index",
|
|
384
|
-
props: {
|
|
385
|
-
systemKey: { default: "" },
|
|
386
|
-
activeTabName: { default: "" },
|
|
387
|
-
isClickLogin: { type: Boolean, default: !1 }
|
|
388
|
-
},
|
|
389
|
-
emits: ["handleLoginFormChange"],
|
|
390
|
-
setup(v, { emit: p }) {
|
|
391
|
-
const t = v, e = p;
|
|
392
|
-
H(E);
|
|
393
|
-
const { initVerify: y } = ve(), i = k(null), f = k(null);
|
|
394
|
-
let b = !1, g = null;
|
|
395
|
-
const L = async (o) => {
|
|
396
|
-
if (!o)
|
|
397
|
-
return;
|
|
398
|
-
const r = await y(o), { data: u } = r || {}, { account: h, password: U } = (u == null ? void 0 : u.data) || {}, n = u == null ? void 0 : u.msg;
|
|
399
|
-
if (!h) {
|
|
400
|
-
W.warning(n || "识别失败,请重新识别!");
|
|
401
|
-
return;
|
|
402
|
-
}
|
|
403
|
-
e("handleLoginFormChange", !0, {
|
|
404
|
-
account: h,
|
|
405
|
-
password: U
|
|
406
|
-
});
|
|
407
|
-
}, c = () => {
|
|
408
|
-
if (!f.value || !i.value)
|
|
409
|
-
return;
|
|
410
|
-
const o = f.value, r = o.getContext("2d"), u = i.value;
|
|
411
|
-
o.width = 200, o.height = 200;
|
|
412
|
-
const h = u.videoWidth || 640, U = u.videoHeight || 480, n = Math.min(200 / h, 200 / U), $ = h * n, A = U * n, S = (200 - $) / 2, B = (200 - A) / 2;
|
|
413
|
-
r == null || r.drawImage(u, 0, 0, h, U, S, B, $, A), o.toBlob((d) => {
|
|
414
|
-
if (d) {
|
|
415
|
-
const N = new File([d], "face.png", { type: "image/png" });
|
|
416
|
-
L(N);
|
|
417
|
-
}
|
|
418
|
-
}, "image/png");
|
|
419
|
-
}, a = async () => {
|
|
420
|
-
if (!i.value || b)
|
|
421
|
-
return;
|
|
422
|
-
const o = i.value;
|
|
423
|
-
try {
|
|
424
|
-
if (g = await navigator.mediaDevices.getUserMedia({
|
|
425
|
-
video: { facingMode: "user" },
|
|
426
|
-
// 前置;后置用 'environment'
|
|
427
|
-
audio: !1
|
|
428
|
-
}), o) {
|
|
429
|
-
const r = o;
|
|
430
|
-
r.srcObject = g, b = !0;
|
|
431
|
-
}
|
|
432
|
-
} catch {
|
|
433
|
-
W.warning("摄像头启动失败");
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
|
-
function C(o) {
|
|
437
|
-
if (o && (o.getTracks().forEach((r) => r.stop()), i.value)) {
|
|
438
|
-
const r = i.value;
|
|
439
|
-
r.srcObject = null;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
const _ = () => {
|
|
443
|
-
C(g), b = !1;
|
|
444
|
-
};
|
|
445
|
-
return P(() => t.activeTabName, (o) => {
|
|
446
|
-
if (o !== O.FACE) {
|
|
447
|
-
_();
|
|
448
|
-
return;
|
|
449
|
-
}
|
|
450
|
-
if (o === O.FACE && !b) {
|
|
451
|
-
a();
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
}), ue(() => {
|
|
455
|
-
_();
|
|
456
|
-
}), (o, r) => (R(), I("div", Je, [
|
|
457
|
-
m("div", We, [
|
|
458
|
-
m("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(o.$slots, "default", {}, () => [
|
|
468
|
-
m("button", {
|
|
469
|
-
class: "face-screenshot",
|
|
470
|
-
onClick: c
|
|
471
|
-
}, "人脸识别")
|
|
472
|
-
], !0),
|
|
473
|
-
m("canvas", {
|
|
474
|
-
ref_key: "canvasRef",
|
|
475
|
-
ref: f,
|
|
476
|
-
id: "canvas"
|
|
477
|
-
}, null, 512)
|
|
478
|
-
]));
|
|
479
|
-
}
|
|
480
|
-
}), Qe = /* @__PURE__ */ M(Ge, [["__scopeId", "data-v-b64bc91c"]]), ne = H(E), { isDefaultModel: Xe } = he(), Ye = async (v, p) => {
|
|
481
|
-
var y, i, f, b, g, L, c, a, C, _, o, r, u, h;
|
|
482
|
-
let t = Object.values(v), e = await me({
|
|
483
|
-
userName: (y = t == null ? void 0 : t[0]) == null ? void 0 : y.trim(),
|
|
484
|
-
password: (i = t == null ? void 0 : t[1]) == null ? void 0 : i.trim()
|
|
485
|
-
});
|
|
486
|
-
if (((f = e == null ? void 0 : e.data) == null ? void 0 : f.status) === 200 && ((g = (b = e == null ? void 0 : e.data) == null ? void 0 : b.result) == null ? void 0 : g.length) <= 0 && (e = await pe({
|
|
487
|
-
userName: (L = t == null ? void 0 : t[0]) == null ? void 0 : L.trim(),
|
|
488
|
-
password: (c = t == null ? void 0 : t[1]) == null ? void 0 : c.trim(),
|
|
489
|
-
path: "系统管理/用户管理",
|
|
490
|
-
platId: p
|
|
491
|
-
})), ((a = e == null ? void 0 : e.data) == null ? void 0 : a.status) === 200 && ((_ = (C = e == null ? void 0 : e.data) == null ? void 0 : C.result) == null ? void 0 : _.length) > 0) {
|
|
492
|
-
const n = ((r = (o = e == null ? void 0 : e.data) == null ? void 0 : o.result) == null ? void 0 : r.find((A) => Xe(A))) || ((h = (u = e == null ? void 0 : e.data) == null ? void 0 : u.result) == null ? void 0 : h[0]);
|
|
493
|
-
sessionStorage.setItem("systemKey", p && p !== "" ? p : n == null ? void 0 : n.plat_id);
|
|
494
|
-
let $ = n;
|
|
495
|
-
return $.plat_id = $.plat_id ?? p, ne.setLoginUserInfo($), ne.setSystemKey(p && p !== "" ? p : n == null ? void 0 : n.plat_id), !0;
|
|
496
|
-
} else
|
|
497
|
-
return W.error("输入的密码错误,请重新输入"), !1;
|
|
498
|
-
}, Ze = { class: "login-wrap" }, et = { class: "login-body" }, tt = { class: "login-body-item left" }, ot = { class: "title" }, at = { class: "first-level" }, nt = {
|
|
499
|
-
key: 0,
|
|
500
|
-
class: "logo"
|
|
501
|
-
}, st = ["src"], lt = { class: "english-name" }, it = { class: "login-body-item right" }, ct = /* @__PURE__ */ q({
|
|
502
|
-
__name: "index",
|
|
503
|
-
props: {
|
|
504
|
-
oldSystemKey: {},
|
|
505
|
-
loginContent: {}
|
|
506
|
-
},
|
|
507
|
-
emits: ["change", "projectLogin", "updateApiUrl"],
|
|
508
|
-
setup(v, { emit: p }) {
|
|
509
|
-
const t = v, e = be(), y = p, i = fe(E), f = _e(E), { refreshLogin: b } = J(f), g = H(E), { systemKey: L, systemInfo: c, loginUserInfo: a } = J(g), C = se(() => {
|
|
510
|
-
var d;
|
|
511
|
-
return ((d = c.value) == null ? void 0 : d.logo) || ye;
|
|
512
|
-
}), _ = k({
|
|
513
|
-
// sysCTitle: 'INSOFWORKS',
|
|
514
|
-
sysCTitle: "",
|
|
515
|
-
sysETitle: "",
|
|
516
|
-
// sysETitle: 'Dynamic Test Information System',
|
|
517
|
-
loginTitle: "账户密码登录",
|
|
518
|
-
tabs: [
|
|
519
|
-
{
|
|
520
|
-
name: "密码登录",
|
|
521
|
-
btnLabel: "登录",
|
|
522
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
name: "人脸识别",
|
|
526
|
-
btnLabel: "人脸识别",
|
|
527
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
name: "刷卡登录",
|
|
531
|
-
btnLabel: "登录",
|
|
532
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
533
|
-
}
|
|
534
|
-
]
|
|
535
|
-
}), o = k("account"), r = k(!1), u = k(!1), h = () => {
|
|
536
|
-
r.value = !0;
|
|
537
|
-
}, U = (d, N) => {
|
|
538
|
-
r.value = !1, d && A(N);
|
|
539
|
-
}, n = async () => (sessionStorage.setItem("loginToken", "111"), !0), $ = async () => (sessionStorage.setItem("magicToken", "123456"), !0);
|
|
540
|
-
le(async () => {
|
|
541
|
-
await n();
|
|
542
|
-
});
|
|
543
|
-
const A = async (d) => {
|
|
544
|
-
var Q, X, Y, Z, ee, te, oe;
|
|
545
|
-
u.value = !0;
|
|
546
|
-
let N = [Ye(d, (Q = c.value) == null ? void 0 : Q.plat_id), n(), $()];
|
|
547
|
-
const T = await Promise.all(N), j = T == null ? void 0 : T.every((K) => K);
|
|
548
|
-
let ie = [
|
|
549
|
-
{
|
|
550
|
-
id: "1",
|
|
551
|
-
request_method: "Post",
|
|
552
|
-
request_url: "/platform/getdata",
|
|
553
|
-
request_param: JSON.stringify({
|
|
554
|
-
userName: "hjj",
|
|
555
|
-
password: "1"
|
|
556
|
-
}),
|
|
557
|
-
request_result: "{}",
|
|
558
|
-
is_delete: !1,
|
|
559
|
-
request_table: "admin_user",
|
|
560
|
-
request_type: "login"
|
|
561
|
-
}
|
|
562
|
-
];
|
|
563
|
-
try {
|
|
564
|
-
const K = ((X = a == null ? void 0 : a.value) == null ? void 0 : X.plat_id) || ((Y = c.value) == null ? void 0 : Y.plat_id);
|
|
565
|
-
await ge({
|
|
566
|
-
platId: parseInt(K),
|
|
567
|
-
changeContents: [{
|
|
568
|
-
tableName: "log",
|
|
569
|
-
tableContents: ie
|
|
570
|
-
}]
|
|
571
|
-
});
|
|
572
|
-
} catch {
|
|
573
|
-
}
|
|
574
|
-
j ? (y("projectLogin", d), await Ce(), e.push("/"), g.setLogRecordAsync({
|
|
575
|
-
type: "登录",
|
|
576
|
-
data: {
|
|
577
|
-
account: ((Z = a.value) == null ? void 0 : Z.account) ?? ((ee = a.value) == null ? void 0 : ee.账号),
|
|
578
|
-
userName: ((te = a.value) == null ? void 0 : te.姓名) || ((oe = a.value) == null ? void 0 : oe.userName) || "未知"
|
|
579
|
-
}
|
|
580
|
-
}, "/login", "login"), i.setHasClickEditComp(!1)) : u.value = !1, u.value = !1;
|
|
581
|
-
};
|
|
582
|
-
P(
|
|
583
|
-
() => t == null ? void 0 : t.loginContent,
|
|
584
|
-
() => {
|
|
585
|
-
let d = t == null ? void 0 : t.loginContent;
|
|
586
|
-
d != null && d.account && (d != null && d.password) && !b.value && A(d);
|
|
587
|
-
},
|
|
588
|
-
{ deep: !0, immediate: !0 }
|
|
589
|
-
);
|
|
590
|
-
const S = (d) => {
|
|
591
|
-
o.value = d, r.value = !1, u.value = !1;
|
|
592
|
-
}, B = (d) => {
|
|
593
|
-
y("updateApiUrl", d);
|
|
594
|
-
};
|
|
595
|
-
return (d, N) => (R(), I("div", Ze, [
|
|
596
|
-
m("div", et, [
|
|
597
|
-
m("div", tt, [
|
|
598
|
-
l(ke, { class: "login-left-bg" }, {
|
|
599
|
-
img: s(() => {
|
|
600
|
-
var T, j;
|
|
601
|
-
return [
|
|
602
|
-
m("div", ot, [
|
|
603
|
-
m("div", at, [
|
|
604
|
-
C.value ? (R(), I("div", nt, [
|
|
605
|
-
m("img", {
|
|
606
|
-
src: C.value,
|
|
607
|
-
alt: ""
|
|
608
|
-
}, null, 8, st)
|
|
609
|
-
])) : de("", !0),
|
|
610
|
-
m("div", lt, V(((T = D(c)) == null ? void 0 : T.EnglishName) || "Insofworks"), 1)
|
|
611
|
-
]),
|
|
612
|
-
m("div", null, V(((j = D(c)) == null ? void 0 : j.chineseName) || "工业软件建模与开发系统"), 1)
|
|
613
|
-
]),
|
|
614
|
-
N[0] || (N[0] = m("div", { class: "divide-line" }, null, -1))
|
|
615
|
-
];
|
|
616
|
-
}),
|
|
617
|
-
_: 1
|
|
618
|
-
})
|
|
619
|
-
]),
|
|
620
|
-
m("div", it, [
|
|
621
|
-
l(Se, {
|
|
622
|
-
loading: u.value,
|
|
623
|
-
onClickLogin: h,
|
|
624
|
-
onHandleTabChange: S
|
|
625
|
-
}, {
|
|
626
|
-
title: s(() => [
|
|
627
|
-
x(V(_.value.loginTitle), 1)
|
|
628
|
-
]),
|
|
629
|
-
tabLabel1: s(() => [
|
|
630
|
-
x(V(_.value.tabs[0].name), 1)
|
|
631
|
-
]),
|
|
632
|
-
tabContent1: s(() => [
|
|
633
|
-
l(ze, {
|
|
634
|
-
activeTabName: o.value,
|
|
635
|
-
isClickLogin: r.value,
|
|
636
|
-
onHandleLoginFormChange: U,
|
|
637
|
-
onUpdateApiUrl: B
|
|
638
|
-
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
639
|
-
]),
|
|
640
|
-
tabButton1: s(() => [
|
|
641
|
-
x(V(_.value.tabs[0].btnLabel), 1)
|
|
642
|
-
]),
|
|
643
|
-
tabLabel2: s(() => [
|
|
644
|
-
x(V(_.value.tabs[1].name), 1)
|
|
645
|
-
]),
|
|
646
|
-
tabContent2: s(() => [
|
|
647
|
-
l(Qe, {
|
|
648
|
-
systemKey: d.oldSystemKey,
|
|
649
|
-
activeTabName: o.value,
|
|
650
|
-
isClickLogin: r.value,
|
|
651
|
-
onHandleLoginFormChange: U
|
|
652
|
-
}, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
|
|
653
|
-
]),
|
|
654
|
-
tabButton2: s(() => [
|
|
655
|
-
x(V(_.value.tabs[1].btnLabel), 1)
|
|
656
|
-
]),
|
|
657
|
-
_: 1
|
|
658
|
-
}, 8, ["loading"])
|
|
659
|
-
])
|
|
660
|
-
])
|
|
661
|
-
]));
|
|
662
|
-
}
|
|
663
|
-
}), bt = /* @__PURE__ */ M(ct, [["__scopeId", "data-v-495b95b8"]]);
|
|
664
|
-
export {
|
|
665
|
-
bt as default
|
|
666
|
-
};
|