ss-component-new 1.3.310 → 1.3.312
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-OzB6aQ1J.cjs → MTLLoader-B_CVjRD3.cjs} +1 -1
- package/dist/{MTLLoader-CIEnVGmG.js → MTLLoader-EqTvrYY4.js} +1 -1
- package/dist/{OrbitControls-AFlrwr_K.js → OrbitControls-BWEzwfsj.js} +1 -1
- package/dist/{OrbitControls-DkGe2Ptd.cjs → OrbitControls-CVBaqbnl.cjs} +1 -1
- package/dist/{URDFLoader-SQ3u-Q_8.js → URDFLoader-CBgIAY7r.js} +2 -2
- package/dist/{URDFLoader-DSqxUYRw.cjs → URDFLoader-CjlI08WF.cjs} +1 -1
- package/dist/{animationData-DEAc-sVN.js → animationData-3_m7lLjY.js} +3 -3
- package/dist/{animationData-B6OfhxX7.cjs → animationData-BW0tyNwK.cjs} +1 -1
- package/dist/{array-CAaog6qg.cjs → array-6JGphca2.cjs} +1 -1
- package/dist/{array-Ydde3r7w.js → array-pCdPCkFk.js} +4 -4
- package/dist/{clone-7AmADFiU.js → clone-BRPsYo3q.js} +1 -1
- package/dist/clone-YEtL4Hc_.cjs +1 -0
- package/dist/{dayjs.min-DTIKCUrF.js → dayjs.min-BztxmKP_.js} +1 -1
- package/dist/{dayjs.min-CJNj6LcW.cjs → dayjs.min-CDrjrMM0.cjs} +1 -1
- package/dist/{iconfont--3ZMb9Aj.js → iconfont-CKIwR3b9.js} +2 -2
- package/dist/{iconfont-dsQaI5I4.cjs → iconfont-SFIwTxFE.cjs} +1 -1
- package/dist/{index-EMsSHq7U.cjs → index--x3Xyi1Z.cjs} +1 -1
- package/dist/{index-BhadNQIa.cjs → index-3pCLleMh.cjs} +1 -1
- package/dist/{index-DJnMQzMz.cjs → index-6ZtJKzRc.cjs} +1 -1
- package/dist/{index-DL9VQs02.js → index-7qukfzO5.js} +2 -2
- package/dist/{index-U9njmngc.cjs → index-9noobS53.cjs} +1 -1
- package/dist/{index-DSJJfH49.cjs → index-B-T8_bdu.cjs} +1 -1
- package/dist/{index-CT1fhrt6.js → index-B0SellVu.js} +9 -9
- package/dist/{index-2KYbe_7L.js → index-B52ZLLQv.js} +2 -2
- package/dist/{index-CyD2ZGI0.js → index-BF9aAYMR.js} +2 -2
- package/dist/{index-CGaMJ1tM.cjs → index-BK0gH8VF.cjs} +1 -1
- package/dist/{index-DBrsZqeh.cjs → index-BLjQR-pc.cjs} +1 -1
- package/dist/{index-wZ9pUfoa.js → index-BMYgC8uY.js} +2 -2
- package/dist/index-BcmjDw9_.cjs +1 -0
- package/dist/{index-D2crrlxW.js → index-BiDRxcDB.js} +6 -6
- package/dist/{index-CFZ-f-2F.cjs → index-BjBmRkcU.cjs} +1 -1
- package/dist/{index-CQGipCwR.js → index-Bjkw2zNs.js} +3 -3
- package/dist/{index-hLwB_v-A.cjs → index-BkL1aC6N.cjs} +1 -1
- package/dist/{index-ClBVw2TK.js → index-BmgVXwns.js} +3 -3
- package/dist/{index-B3t77A1L.cjs → index-BnAQib1R.cjs} +1 -1
- package/dist/{index-D6-Yrm0v.cjs → index-BpBeXMIB.cjs} +1 -1
- package/dist/{index-DeiDI-1m.cjs → index-BzWVTbrh.cjs} +1 -1
- package/dist/{index-DIR0HLgr.js → index-C0Yr99tK.js} +6 -6
- package/dist/{index-tH9fLWoV.js → index-C9rHbbYh.js} +2 -2
- package/dist/{index-krueaJgV.js → index-CE94hhEU.js} +9 -9
- package/dist/{index-Kt492P5R.cjs → index-CHAUkN76.cjs} +1 -1
- package/dist/{index-BesmmP6V.js → index-CKnb5PT-.js} +4 -4
- package/dist/{index-B2Bsxjo3.cjs → index-CLSz6naC.cjs} +1 -1
- package/dist/{index-Di2VsnFa.js → index-CMtpW0nm.js} +46 -40
- package/dist/{index-6-ZsdeZD.js → index-CQvnxubl.js} +4 -4
- package/dist/{index-B0RsEw5m.cjs → index-CXyrdYv3.cjs} +1 -1
- package/dist/{index-FPHxJvUf.cjs → index-CaPpJ-X9.cjs} +1 -1
- package/dist/{index-BlLEla5k.cjs → index-Cm8Vk-AI.cjs} +1 -1
- package/dist/{index-DNV_O6Dc.js → index-Cn_-UXHQ.js} +1 -1
- package/dist/index-D5fkvwtp.cjs +2 -0
- package/dist/index-D7khcIZY.cjs +1 -0
- package/dist/{index-CRqblQs6.cjs → index-DD8E_nN2.cjs} +1 -1
- package/dist/{index-DqIM3shB.js → index-DIVvLDgI.js} +1 -1
- package/dist/{index-YmuGsjrw.cjs → index-DLUTpNTV.cjs} +1 -1
- package/dist/{index-BU3Yohec.cjs → index-DWRBpEQC.cjs} +1 -1
- package/dist/{index-Cf2gp9fi.js → index-DYfVyol_.js} +3 -3
- package/dist/{index-Clae5SKB.cjs → index-DbjAoGwL.cjs} +1 -1
- package/dist/{index-DEHdaKzw.cjs → index-Dck5mho-.cjs} +1 -1
- package/dist/{index-CIuY1IfZ.js → index-DgqjkCDI.js} +1 -1
- package/dist/{index-CuPeKtNC.cjs → index-DiRLGrKr.cjs} +1 -1
- package/dist/{index-Ciy-wUsx.js → index-DjtTOlhY.js} +3379 -3347
- package/dist/{index-oAsacBj3.js → index-DpJ7w2uU.js} +2 -2
- package/dist/{index-D25spbOo.js → index-DtuwBR5e.js} +1 -1
- package/dist/{index-BuTyP2j6.js → index-Dzv_oSab.js} +1 -1
- package/dist/{index-4dur0sB4.js → index-E4jIAYIF.js} +4 -4
- package/dist/{index-D3oAYPfe.js → index-L1-Gc07u.js} +13 -13
- package/dist/{index-Dt6f0dss.cjs → index-R9ATh_A3.cjs} +1 -1
- package/dist/{index-BkS6ltPu.js → index-RMPdJ6EN.js} +1 -1
- package/dist/{index-17CQJTv4.cjs → index-aeATtKsA.cjs} +1 -1
- package/dist/{index-XSrc1sWV.js → index-jPuRLZP_.js} +4 -4
- package/dist/index-k5FIpfnl.js +666 -0
- package/dist/{index-r6mcGvmD.js → index-tq9Fe8Z6.js} +1 -1
- package/dist/{index-5EqtwNP3.cjs → index-x2yaioji.cjs} +1 -1
- package/dist/{index-DyBLFpRg.js → index-xYeo-ZaT.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DniaKXV9.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-GDPy2Gmg.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D13dnI_4.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Y67ic07F.cjs} +1 -1
- package/dist/{main-CwH9qJVm.js → main-CUasxogy.js} +4 -4
- package/dist/{main-DdEjcQ4o.cjs → main-fRPJ6_5q.cjs} +1 -1
- package/dist/{menu-CN_Tf3mn.js → menu-BMnGyr1i.js} +1 -2
- package/dist/{menu-N76i05Ex.cjs → menu-D2crOMII.cjs} +4 -4
- package/dist/{menuIndex-CD5tqM1b.js → menuIndex-BDgRHAHX.js} +1 -1
- package/dist/{menuIndex-r6NllfjR.cjs → menuIndex-DHKljvlF.cjs} +1 -1
- 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-Uk6zD89R.cjs → threeModel-Bg53R3z6.cjs} +1 -1
- package/dist/{threeModel-BD7DSPW-.js → threeModel-CioVFv-c.js} +4 -4
- package/dist/{threePreview-BHGQBuXr.cjs → threePreview-BkjniUty.cjs} +1 -1
- package/dist/{threePreview-CZqaZ45g.js → threePreview-nKzZJCc7.js} +4 -4
- package/dist/{threeSceneView-wkRekazs.js → threeSceneView-BUfAKhsS.js} +14 -14
- package/dist/{threeSceneView-DN_qbrRS.cjs → threeSceneView-DfxrRHrX.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-mwU1RKVh.js → threeSceneViewForCPMPIP-BWEkrsQg.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-BztGaGm9.cjs → threeSceneViewForCPMPIP-CAHSSx5O.cjs} +1 -1
- package/dist/{threeTrackPathView-BQzCi_23.cjs → threeTrackPathView-VP-eZLrv.cjs} +1 -1
- package/dist/{threeTrackPathView-D6IuvNTn.js → threeTrackPathView-bL3sfLNY.js} +4 -4
- package/dist/{threeViewerHost-DsDxhyJb.js → threeViewerHost-Bcl4RBft.js} +3 -3
- package/dist/{threeViewerHost-BEzl0gjk.cjs → threeViewerHost-DaXhxauJ.cjs} +1 -1
- package/dist/{urdfTree-BoRXNADP.cjs → urdfTree-CIh17W2z.cjs} +1 -1
- package/dist/{urdfTree-6bW1rIxd.js → urdfTree-CV9Nz2mB.js} +1 -1
- package/dist/{workpieceTreePanel-BunFs5sL.cjs → workpieceTreePanel-BFXv5IT9.cjs} +1 -1
- package/dist/{workpieceTreePanel-BhCB5YyR.js → workpieceTreePanel-DlxoDyDg.js} +4 -4
- package/package.json +1 -1
- package/dist/clone-DR4pDnuw.cjs +0 -1
- package/dist/index-Bc-WLx7S.cjs +0 -1
- package/dist/index-BsmJfM3E.cjs +0 -2
- package/dist/index-DMv7whzL.cjs +0 -1
- package/dist/index-vcuXxLeo.js +0 -481
|
@@ -0,0 +1,666 @@
|
|
|
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
|
+
};
|
|
@@ -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-BMnGyr1i.js";
|
|
4
4
|
const Nt = _t("authorityState", {
|
|
5
5
|
state: () => ({
|
|
6
6
|
routerPageStructures: []
|