ss-component-new 1.3.321 → 1.3.323
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-CK9k2OkC.js → MTLLoader-CWm4zRXg.js} +1 -1
- package/dist/{MTLLoader-sFjooHYy.cjs → MTLLoader-D31u_J1I.cjs} +1 -1
- package/dist/{OrbitControls-s3zz-OdY.js → OrbitControls-BHymD-uS.js} +1 -1
- package/dist/{OrbitControls-C8tvN177.cjs → OrbitControls-CNPfT-k2.cjs} +1 -1
- package/dist/{URDFLoader-F13ne6AZ.cjs → URDFLoader-B6fSdZBW.cjs} +1 -1
- package/dist/{URDFLoader-C4CxlYaQ.js → URDFLoader-CwxwkM1Z.js} +2 -2
- package/dist/{animationData-30iUya9L.cjs → animationData-Cj4Vg9K7.cjs} +1 -1
- package/dist/{animationData-Bq0ZKGU5.js → animationData-Dr4AL7Tn.js} +15 -15
- package/dist/{array-Bv-GB6_m.js → array-4MUsfO8Y.js} +4 -4
- package/dist/{array-Bnm7Uy8H.cjs → array-DhFIb8Ci.cjs} +1 -1
- package/dist/clone-D6y-bsE3.cjs +1 -0
- package/dist/{clone-BkoeZZPJ.js → clone-DkUTKKWA.js} +1 -1
- package/dist/{dayjs.min-D2kum5JL.js → dayjs.min-BL2Zt4iO.js} +1 -1
- package/dist/{dayjs.min-CKeZNApM.cjs → dayjs.min-DYXCWUDw.cjs} +1 -1
- package/dist/{iconfont-CAf85VWB.js → iconfont-B4tW5MMA.js} +2 -2
- package/dist/{iconfont-m42I_Zch.cjs → iconfont-sC2feAth.cjs} +1 -1
- package/dist/{JSEncrypt-B36c1iN5.js → index-4L13fekz.js} +743 -453
- package/dist/index-7psGt_5p.cjs +1 -0
- package/dist/{index-BVH050w0.cjs → index-8S3bQzsS.cjs} +1 -1
- package/dist/{index-DwxZZ2Rv.js → index-B1u8xeDs.js} +2 -2
- package/dist/{index-86Qtt4Gi.cjs → index-B88VGc4X.cjs} +2 -2
- package/dist/{index-DG7fwVK4.js → index-BBFKG5Lg.js} +3667 -3954
- package/dist/{index-TdRQ4U-0.cjs → index-BBtFM-Ge.cjs} +1 -1
- package/dist/{index-BuytoK__.cjs → index-BE9ZWUsI.cjs} +1 -1
- package/dist/{index-_WSPThGL.cjs → index-BFlrYtOA.cjs} +1 -1
- package/dist/{index-BG_BTIbd.js → index-BGsbzbfR.js} +1 -1
- package/dist/{index-CQVWTddk.js → index-BNEyTIe4.js} +4 -4
- package/dist/{index-BhssV5Si.js → index-BRxMnV1e.js} +3 -3
- package/dist/{index-B1vAZHjo.js → index-BU1ISY19.js} +1 -1
- package/dist/{index-C6e8tITh.js → index-BWNRm72Z.js} +1194 -1185
- package/dist/{index-Cf8X898z.cjs → index-BbtC7Ji7.cjs} +1 -1
- package/dist/{index-BbN4AWqw.js → index-BiHyvosO.js} +2 -2
- package/dist/index-Bkqa7S3G.js +132 -0
- package/dist/{index-C4FN-3yG.cjs → index-BlX6PtgC.cjs} +1 -1
- package/dist/{index-DyNe1ivN.js → index-BnKm-Z6I.js} +3 -3
- package/dist/index-BnpnirTe.js +9581 -0
- package/dist/{index-DcEc7R08.js → index-BoX2OxZA.js} +4 -4
- package/dist/{index-xRIUu3ui.js → index-ByOP4S4w.js} +70 -71
- package/dist/{index-BY8CAuth.cjs → index-C1eYjrgp.cjs} +1 -1
- package/dist/{index-DLlv5Kx4.js → index-C5Ftg2Ji.js} +9 -9
- package/dist/{index-BfoNwJYn.cjs → index-CO4nfCVV.cjs} +1 -1
- package/dist/{index-DTia9oJS.js → index-CURV4Sc-.js} +4 -4
- package/dist/{index-BfGzv-hd.js → index-CXS2rLtC.js} +1 -1
- package/dist/{index-EwzDPuOE.js → index-CdBuyUt1.js} +6 -6
- package/dist/{JSEncrypt-IYbV4kRj.cjs → index-Cg7sjq06.cjs} +11 -11
- package/dist/index-ChruFvf_.cjs +2 -0
- package/dist/{index-C8xNjOoe.cjs → index-Ci8QRYNC.cjs} +1 -1
- package/dist/index-CkhEA2q9.cjs +1 -0
- package/dist/{index-CG6BDUaD.js → index-CmuaqOdl.js} +1 -1
- package/dist/{index-CB-G5qY8.cjs → index-CoGh0s71.cjs} +1 -1
- package/dist/{index-D6Rv9ZER.cjs → index-D8TUy7GH.cjs} +1 -1
- package/dist/{index-Dxa2zPqr.cjs → index-D8sIT3Vh.cjs} +1 -1
- package/dist/{index-MSe7REup.cjs → index-DBT-8yul.cjs} +1 -1
- package/dist/{index-kCIwjtpa.cjs → index-DM4xlAcv.cjs} +1 -1
- package/dist/{index-CUvGyQdt.js → index-DN-7yQww.js} +11 -10
- package/dist/{index-BS1qv-TP.cjs → index-DON2Zslz.cjs} +1 -1
- package/dist/{index-CCMOSYej.js → index-DPBG_wGE.js} +61 -60
- package/dist/{index-CgyXQw5s.cjs → index-DR7h_uyW.cjs} +1 -1
- package/dist/index-DUvD0wQS.cjs +1 -0
- package/dist/index-DayoUCBG.cjs +1 -0
- package/dist/{index-CTi_kU2w.cjs → index-Dfv0Mqza.cjs} +1 -1
- package/dist/index-DjT2Wfww.cjs +7 -0
- package/dist/index-DmGKehIr.js +666 -0
- package/dist/{index-EZOEpeg0.js → index-Dn7_myZr.js} +1 -1
- package/dist/index-DqCM7s8O.cjs +104 -0
- package/dist/{index-CBshL1g5.js → index-DuIvsQ90.js} +6 -6
- package/dist/{index-DKlVcN6L.cjs → index-JU7i7uT2.cjs} +1 -1
- package/dist/{index-DtjSUQQ4.cjs → index-MoS_Z1Sz.cjs} +1 -1
- package/dist/{index-Chkv6RvP.js → index-bSrw4Jt0.js} +2 -2
- package/dist/{index-0hNM9dP5.js → index-d9w5FXdk.js} +3 -3
- package/dist/{index-B-TORwhC.js → index-gbjjuq3H.js} +2 -2
- package/dist/{index-DH0ChZga.js → index-lH4Qm1Ga.js} +1 -1
- package/dist/{index-BmDdag7O.cjs → index-tIBP_Zfx.cjs} +1 -1
- package/dist/{index-DweESdia.js → index-umip598j.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D06b2AXV.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B6QAxDwV.js} +1843 -1848
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B1YdRpLC.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DXfPRq7d.cjs} +62 -62
- package/dist/{main-vQ17tgzX.cjs → main-DQcF01Xl.cjs} +1 -1
- package/dist/{main-BjTVrhEn.js → main-eAThV5_B.js} +4 -4
- package/dist/{menu-B5Ed9tCx.js → menu-B6brhvAI.js} +2 -1
- package/dist/{menu-FU5yiMy8.cjs → menu-D-MiErGd.cjs} +1 -1
- package/dist/{menuIndex-CqjGgoWs.cjs → menuIndex-B0wuhry0.cjs} +1 -1
- package/dist/{menuIndex-Bofzhsc4.js → menuIndex-uEOgSHtu.js} +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-DV88nk0c.js → threeModel-BEEBOb-O.js} +4 -4
- package/dist/{threeModel-B0JqdXMa.cjs → threeModel-VpTZXnvK.cjs} +1 -1
- package/dist/{threePreview-YeMZY7Qw.cjs → threePreview-Q8fSB5U0.cjs} +1 -1
- package/dist/{threePreview-fM_yCMMk.js → threePreview-w_rSKqjy.js} +4 -4
- package/dist/{threeSceneView-B0Si-K-g.js → threeSceneView-BEX9gMj3.js} +16 -15
- package/dist/{threeSceneView-DNqHyTyD.cjs → threeSceneView-_RnUHKEx.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-QqobgKqL.js → threeSceneViewForCPMPIP-C9VdJLKv.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-B7VfFwXj.cjs → threeSceneViewForCPMPIP-CB2f5jlV.cjs} +1 -1
- package/dist/{threeTrackPathView-7k2jorHI.cjs → threeTrackPathView-92QVfAiq.cjs} +1 -1
- package/dist/{threeTrackPathView-4fzrYO07.js → threeTrackPathView-BeCkYlv6.js} +4 -4
- package/dist/{threeViewerHost-BfyPonp9.cjs → threeViewerHost-72UwjSXh.cjs} +1 -1
- package/dist/{threeViewerHost-_yA6hGHE.js → threeViewerHost-DdoyfVK0.js} +3 -3
- package/dist/{urdfTree-DK450tLa.cjs → urdfTree-B72ps0XA.cjs} +1 -1
- package/dist/{urdfTree-Crc6_c_f.js → urdfTree-DY_PJG4H.js} +1 -1
- package/dist/{workpieceTreePanel-g8lvT_yP.js → workpieceTreePanel-B3oPVOh9.js} +4 -4
- package/dist/{workpieceTreePanel-a72VDGqM.cjs → workpieceTreePanel-ZO1UvaT0.cjs} +1 -1
- package/package.json +1 -1
- package/dist/clone-D6Ofpm75.cjs +0 -1
- package/dist/index-BBuhs0ay.cjs +0 -1
- package/dist/index-B_K-miXW.cjs +0 -1
- package/dist/index-Bi3chwDQ.cjs +0 -104
- package/dist/index-C7RuokDP.cjs +0 -1
- package/dist/index-CFjmSYEv.cjs +0 -1
- package/dist/index-CLiXOvYt.js +0 -159
- package/dist/index-CMDhafac.js +0 -620
- package/dist/index-CjYwnKjV.js +0 -56
- package/dist/index-CwTW_wuh.js +0 -9561
- package/dist/index-DLQrTFGN.cjs +0 -1
- package/dist/index-DmBnQ7BX.cjs +0 -2
- package/dist/index-aziCJXBJ.cjs +0 -7
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
package/dist/index-CMDhafac.js
DELETED
|
@@ -1,620 +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 } from "./menu-B5Ed9tCx.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 ne } from "./index-BfGzv-hd.js";
|
|
7
|
-
import { E as J } from "./request-CoGtW0Ux.js";
|
|
8
|
-
import { useRouter as se } from "vue-router";
|
|
9
|
-
import { l as le, v as ie } from "./index-C6e8tITh.js";
|
|
10
|
-
import { l as ce } from "./index-CjYwnKjV.js";
|
|
11
|
-
const re = {}, ue = { class: "left-wrap" }, de = { class: "left-bg" };
|
|
12
|
-
function pe(f, b) {
|
|
13
|
-
return x(), S("div", ue, [
|
|
14
|
-
n("div", de, [
|
|
15
|
-
F(f.$slots, "img", {}, void 0, !0)
|
|
16
|
-
])
|
|
17
|
-
]);
|
|
18
|
-
}
|
|
19
|
-
const me = /* @__PURE__ */ B(re, [["render", pe], ["__scopeId", "data-v-9b7ee6c9"]]), O = {
|
|
20
|
-
ACCOUNT: "account",
|
|
21
|
-
FACE: "face"
|
|
22
|
-
}, fe = { class: "right-wrap" }, _e = { class: "tab-content" }, ge = { class: "tab-tips" }, ve = { class: "tab-content" }, be = { class: "tab-tips" }, he = /* @__PURE__ */ H({
|
|
23
|
-
__name: "index",
|
|
24
|
-
props: {
|
|
25
|
-
tabList: {
|
|
26
|
-
type: Array,
|
|
27
|
-
default: []
|
|
28
|
-
},
|
|
29
|
-
loading: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !1
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
emits: ["clickLogin", "handleTabChange"],
|
|
35
|
-
setup(f, { emit: b }) {
|
|
36
|
-
const r = U(O.ACCOUNT), l = b, w = () => {
|
|
37
|
-
l("clickLogin", r.value);
|
|
38
|
-
}, i = (p) => {
|
|
39
|
-
l("handleTabChange", p);
|
|
40
|
-
};
|
|
41
|
-
return (p, y) => {
|
|
42
|
-
const _ = C("el-button"), L = C("el-tab-pane"), u = C("el-tabs");
|
|
43
|
-
return x(), S("div", fe, [
|
|
44
|
-
o(u, {
|
|
45
|
-
modelValue: r.value,
|
|
46
|
-
"onUpdate:modelValue": y[0] || (y[0] = (s) => r.value = s),
|
|
47
|
-
class: "right-tabs",
|
|
48
|
-
onTabChange: i
|
|
49
|
-
}, {
|
|
50
|
-
default: t(() => [
|
|
51
|
-
o(L, {
|
|
52
|
-
name: D(O).ACCOUNT
|
|
53
|
-
}, {
|
|
54
|
-
label: t(() => [
|
|
55
|
-
F(p.$slots, "tabLabel1", {}, void 0, !0)
|
|
56
|
-
]),
|
|
57
|
-
default: t(() => [
|
|
58
|
-
n("div", _e, [
|
|
59
|
-
F(p.$slots, "tabContent1", {}, void 0, !0)
|
|
60
|
-
]),
|
|
61
|
-
n("div", {
|
|
62
|
-
class: "tab-button special",
|
|
63
|
-
onClick: w
|
|
64
|
-
}, [
|
|
65
|
-
o(_, { loading: f.loading }, {
|
|
66
|
-
default: t(() => [
|
|
67
|
-
F(p.$slots, "tabButton1", {}, void 0, !0)
|
|
68
|
-
]),
|
|
69
|
-
_: 3
|
|
70
|
-
}, 8, ["loading"])
|
|
71
|
-
]),
|
|
72
|
-
n("div", ge, [
|
|
73
|
-
F(p.$slots, "tabTips1", {}, void 0, !0)
|
|
74
|
-
])
|
|
75
|
-
]),
|
|
76
|
-
_: 3
|
|
77
|
-
}, 8, ["name"]),
|
|
78
|
-
o(L, {
|
|
79
|
-
name: D(O).FACE
|
|
80
|
-
}, {
|
|
81
|
-
label: t(() => [
|
|
82
|
-
F(p.$slots, "tabLabel2", {}, void 0, !0)
|
|
83
|
-
]),
|
|
84
|
-
default: t(() => [
|
|
85
|
-
n("div", ve, [
|
|
86
|
-
F(p.$slots, "tabContent2", {}, void 0, !0)
|
|
87
|
-
]),
|
|
88
|
-
n("div", be, [
|
|
89
|
-
F(p.$slots, "tabTips2", {}, void 0, !0)
|
|
90
|
-
])
|
|
91
|
-
]),
|
|
92
|
-
_: 3
|
|
93
|
-
}, 8, ["name"])
|
|
94
|
-
]),
|
|
95
|
-
_: 3
|
|
96
|
-
}, 8, ["modelValue"])
|
|
97
|
-
]);
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
}), ye = /* @__PURE__ */ B(he, [["__scopeId", "data-v-8b1962f0"]]), Ce = /^[a-z][a-z0-9+.-]*:\/\//i, P = (f) => Ce.test(f);
|
|
101
|
-
function we(f) {
|
|
102
|
-
P(f) || (f = `http://${f}`);
|
|
103
|
-
try {
|
|
104
|
-
const b = new URL(f);
|
|
105
|
-
return {
|
|
106
|
-
host: b.hostname,
|
|
107
|
-
// 域名:example.com
|
|
108
|
-
port: b.port || null
|
|
109
|
-
// 端口:8080(默认端口返回空字符串,转为 null)
|
|
110
|
-
};
|
|
111
|
-
} catch {
|
|
112
|
-
return {
|
|
113
|
-
host: null,
|
|
114
|
-
port: null
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
const Le = () => ({ initUrlInfo: () => ({
|
|
119
|
-
host: null,
|
|
120
|
-
port: null
|
|
121
|
-
}), hasProtocol: P, generateUrl: (r) => {
|
|
122
|
-
const { host: l, port: w } = r;
|
|
123
|
-
if (!l)
|
|
124
|
-
return null;
|
|
125
|
-
let i = `${l}`;
|
|
126
|
-
return P(l) || (i = `http://${i}`), w && (i = `${i}:${w}`), i;
|
|
127
|
-
} }), Ue = { class: "body-wrapper" }, Te = { class: "api-form-wrapper" }, $e = { class: "edit-footer" }, ke = { class: "footer-right" }, Ae = /* @__PURE__ */ H({
|
|
128
|
-
__name: "index",
|
|
129
|
-
emits: ["updateApiUrl"],
|
|
130
|
-
setup(f, { expose: b, emit: r }) {
|
|
131
|
-
const l = r, w = z(M), { systemUrl: i } = q(w), { initUrlInfo: p, generateUrl: y } = Le(), _ = U(p()), L = U(), u = j({
|
|
132
|
-
host: [
|
|
133
|
-
{ required: !0, message: "请输入职位名称", trigger: "blur" }
|
|
134
|
-
]
|
|
135
|
-
}), s = Q(() => i.value || "http://222.92.178.198:63002"), v = () => {
|
|
136
|
-
_.value = we(s.value);
|
|
137
|
-
};
|
|
138
|
-
X(() => {
|
|
139
|
-
v();
|
|
140
|
-
});
|
|
141
|
-
const g = U(!1), e = () => {
|
|
142
|
-
v(), g.value = !0;
|
|
143
|
-
}, c = () => {
|
|
144
|
-
g.value = !1;
|
|
145
|
-
}, m = () => {
|
|
146
|
-
c();
|
|
147
|
-
}, h = async () => {
|
|
148
|
-
var d;
|
|
149
|
-
await ((d = L.value) == null ? void 0 : d.validate());
|
|
150
|
-
const T = y(_.value);
|
|
151
|
-
l("updateApiUrl", T), m();
|
|
152
|
-
};
|
|
153
|
-
return b({
|
|
154
|
-
openDialog: e,
|
|
155
|
-
handleClose: m
|
|
156
|
-
}), (T, d) => {
|
|
157
|
-
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");
|
|
158
|
-
return x(), Y(A, {
|
|
159
|
-
class: "api-form-dialog",
|
|
160
|
-
modelValue: g.value,
|
|
161
|
-
"onUpdate:modelValue": d[2] || (d[2] = (V) => g.value = V),
|
|
162
|
-
"before-close": m,
|
|
163
|
-
"destroy-on-close": "",
|
|
164
|
-
"show-close": !1
|
|
165
|
-
}, {
|
|
166
|
-
header: t(() => d[3] || (d[3] = [])),
|
|
167
|
-
default: t(() => [
|
|
168
|
-
n("div", Ue, [
|
|
169
|
-
n("div", Te, [
|
|
170
|
-
o($, {
|
|
171
|
-
class: "api-edit-form",
|
|
172
|
-
ref_key: "apiFormRef",
|
|
173
|
-
ref: L,
|
|
174
|
-
model: _.value,
|
|
175
|
-
rules: u
|
|
176
|
-
}, {
|
|
177
|
-
default: t(() => [
|
|
178
|
-
o(k, { gutter: 20 }, {
|
|
179
|
-
default: t(() => [
|
|
180
|
-
o(a, { span: 12 }, {
|
|
181
|
-
default: t(() => [
|
|
182
|
-
o(R, {
|
|
183
|
-
prop: "host",
|
|
184
|
-
label: "主机名",
|
|
185
|
-
"label-position": "top"
|
|
186
|
-
}, {
|
|
187
|
-
default: t(() => [
|
|
188
|
-
o(N, {
|
|
189
|
-
modelValue: _.value.host,
|
|
190
|
-
"onUpdate:modelValue": d[0] || (d[0] = (V) => _.value.host = V),
|
|
191
|
-
"aria-label": "主机名",
|
|
192
|
-
placeholder: "主机名"
|
|
193
|
-
}, null, 8, ["modelValue"])
|
|
194
|
-
]),
|
|
195
|
-
_: 1
|
|
196
|
-
})
|
|
197
|
-
]),
|
|
198
|
-
_: 1
|
|
199
|
-
}),
|
|
200
|
-
o(a, { span: 12 }, {
|
|
201
|
-
default: t(() => [
|
|
202
|
-
o(R, {
|
|
203
|
-
prop: "port",
|
|
204
|
-
label: "端口",
|
|
205
|
-
"label-position": "top"
|
|
206
|
-
}, {
|
|
207
|
-
default: t(() => [
|
|
208
|
-
o(N, {
|
|
209
|
-
modelValue: _.value.port,
|
|
210
|
-
"onUpdate:modelValue": d[1] || (d[1] = (V) => _.value.port = V),
|
|
211
|
-
"aria-label": "端口",
|
|
212
|
-
placeholder: "端口"
|
|
213
|
-
}, null, 8, ["modelValue"])
|
|
214
|
-
]),
|
|
215
|
-
_: 1
|
|
216
|
-
})
|
|
217
|
-
]),
|
|
218
|
-
_: 1
|
|
219
|
-
})
|
|
220
|
-
]),
|
|
221
|
-
_: 1
|
|
222
|
-
})
|
|
223
|
-
]),
|
|
224
|
-
_: 1
|
|
225
|
-
}, 8, ["model", "rules"])
|
|
226
|
-
])
|
|
227
|
-
])
|
|
228
|
-
]),
|
|
229
|
-
footer: t(() => [
|
|
230
|
-
n("div", $e, [
|
|
231
|
-
d[4] || (d[4] = n("div", { class: "footer-left" }, null, -1)),
|
|
232
|
-
n("div", ke, [
|
|
233
|
-
o(G, {
|
|
234
|
-
class: "cancel",
|
|
235
|
-
emptyColor: !0,
|
|
236
|
-
onClickTrigger: m,
|
|
237
|
-
modelValue: "取消",
|
|
238
|
-
buttonType: "info"
|
|
239
|
-
}),
|
|
240
|
-
o(G, {
|
|
241
|
-
class: "confirm",
|
|
242
|
-
emptyColor: !0,
|
|
243
|
-
onClickTrigger: h,
|
|
244
|
-
modelValue: "确定",
|
|
245
|
-
buttonType: "primary"
|
|
246
|
-
})
|
|
247
|
-
])
|
|
248
|
-
])
|
|
249
|
-
]),
|
|
250
|
-
_: 1
|
|
251
|
-
}, 8, ["modelValue"]);
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
}), Fe = /* @__PURE__ */ B(Ae, [["__scopeId", "data-v-20c1098b"]]), Ve = { class: "account-wrap" }, Ne = { class: "extra-operate" }, Re = /* @__PURE__ */ H({
|
|
255
|
-
__name: "index",
|
|
256
|
-
props: {
|
|
257
|
-
activeTabName: {
|
|
258
|
-
type: String,
|
|
259
|
-
default: ""
|
|
260
|
-
},
|
|
261
|
-
isClickLogin: {
|
|
262
|
-
type: Boolean,
|
|
263
|
-
default: !1
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
emits: ["handleLoginFormChange", "updateApiUrl"],
|
|
267
|
-
setup(f, { emit: b }) {
|
|
268
|
-
const r = f, l = j({
|
|
269
|
-
account: "",
|
|
270
|
-
password: ""
|
|
271
|
-
}), w = j({
|
|
272
|
-
account: [
|
|
273
|
-
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
274
|
-
],
|
|
275
|
-
password: [
|
|
276
|
-
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
277
|
-
]
|
|
278
|
-
}), i = U(null), p = b;
|
|
279
|
-
K(() => r.isClickLogin, (u) => {
|
|
280
|
-
var s;
|
|
281
|
-
u && (r == null ? void 0 : r.activeTabName) === "account" && ((s = i.value) == null || s.validate((v) => {
|
|
282
|
-
var g;
|
|
283
|
-
for (let e in l)
|
|
284
|
-
l.hasOwnProperty(e) && (l[e] = (g = l[e]) == null ? void 0 : g.trim());
|
|
285
|
-
p("handleLoginFormChange", v, v ? l : null);
|
|
286
|
-
}));
|
|
287
|
-
}, {
|
|
288
|
-
immediate: !0
|
|
289
|
-
}), K(() => r.activeTabName, (u) => {
|
|
290
|
-
var s;
|
|
291
|
-
u === "account" && ((s = i.value) == null || s.resetFields());
|
|
292
|
-
});
|
|
293
|
-
const y = U(), _ = () => {
|
|
294
|
-
var u, s;
|
|
295
|
-
(s = (u = y.value) == null ? void 0 : u.openDialog) == null || s.call(u);
|
|
296
|
-
}, L = (u) => {
|
|
297
|
-
p("updateApiUrl", u);
|
|
298
|
-
};
|
|
299
|
-
return (u, s) => {
|
|
300
|
-
const v = C("svg-icon"), g = C("el-input"), e = C("el-form-item"), c = C("el-form"), m = C("el-link");
|
|
301
|
-
return x(), S(Z, null, [
|
|
302
|
-
n("div", Ve, [
|
|
303
|
-
o(c, {
|
|
304
|
-
model: l,
|
|
305
|
-
rules: w,
|
|
306
|
-
ref_key: "formRef",
|
|
307
|
-
ref: i
|
|
308
|
-
}, {
|
|
309
|
-
default: t(() => [
|
|
310
|
-
o(e, {
|
|
311
|
-
label: "",
|
|
312
|
-
prop: "account"
|
|
313
|
-
}, {
|
|
314
|
-
default: t(() => [
|
|
315
|
-
o(g, {
|
|
316
|
-
class: "account-input",
|
|
317
|
-
modelValue: l.account,
|
|
318
|
-
"onUpdate:modelValue": s[0] || (s[0] = (h) => l.account = h),
|
|
319
|
-
placeholder: "请输入账号",
|
|
320
|
-
clearable: ""
|
|
321
|
-
}, {
|
|
322
|
-
prefix: t(() => [
|
|
323
|
-
o(v, {
|
|
324
|
-
name: "account",
|
|
325
|
-
style: { width: "15px", height: "15px" }
|
|
326
|
-
})
|
|
327
|
-
]),
|
|
328
|
-
_: 1
|
|
329
|
-
}, 8, ["modelValue"])
|
|
330
|
-
]),
|
|
331
|
-
_: 1
|
|
332
|
-
}),
|
|
333
|
-
o(e, {
|
|
334
|
-
label: "",
|
|
335
|
-
prop: "password"
|
|
336
|
-
}, {
|
|
337
|
-
default: t(() => [
|
|
338
|
-
o(g, {
|
|
339
|
-
class: "account-input",
|
|
340
|
-
modelValue: l.password,
|
|
341
|
-
"onUpdate:modelValue": s[1] || (s[1] = (h) => l.password = h),
|
|
342
|
-
type: "password",
|
|
343
|
-
placeholder: "请输入密码",
|
|
344
|
-
"show-password": "",
|
|
345
|
-
clearable: ""
|
|
346
|
-
}, {
|
|
347
|
-
prefix: t(() => [
|
|
348
|
-
o(v, {
|
|
349
|
-
name: "password",
|
|
350
|
-
style: { width: "15px", height: "15px" }
|
|
351
|
-
})
|
|
352
|
-
]),
|
|
353
|
-
_: 1
|
|
354
|
-
}, 8, ["modelValue"])
|
|
355
|
-
]),
|
|
356
|
-
_: 1
|
|
357
|
-
})
|
|
358
|
-
]),
|
|
359
|
-
_: 1
|
|
360
|
-
}, 8, ["model", "rules"]),
|
|
361
|
-
n("div", Ne, [
|
|
362
|
-
o(m, {
|
|
363
|
-
class: "api-button",
|
|
364
|
-
type: "primary",
|
|
365
|
-
onClick: _
|
|
366
|
-
}, {
|
|
367
|
-
default: t(() => s[2] || (s[2] = [
|
|
368
|
-
E("接口地址")
|
|
369
|
-
])),
|
|
370
|
-
_: 1,
|
|
371
|
-
__: [2]
|
|
372
|
-
})
|
|
373
|
-
])
|
|
374
|
-
]),
|
|
375
|
-
o(Fe, {
|
|
376
|
-
ref_key: "apiFormDialogRef",
|
|
377
|
-
ref: y,
|
|
378
|
-
onUpdateApiUrl: L
|
|
379
|
-
}, null, 512)
|
|
380
|
-
], 64);
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
}), Ie = /* @__PURE__ */ B(Re, [["__scopeId", "data-v-032ff9a0"]]), xe = { class: "account-wrap" }, Ee = { class: "video-wrap" }, Se = /* @__PURE__ */ H({
|
|
384
|
-
__name: "index",
|
|
385
|
-
props: {
|
|
386
|
-
systemKey: { default: "" },
|
|
387
|
-
activeTabName: { default: "" },
|
|
388
|
-
isClickLogin: { type: Boolean, default: !1 }
|
|
389
|
-
},
|
|
390
|
-
emits: ["handleLoginFormChange"],
|
|
391
|
-
setup(f, { emit: b }) {
|
|
392
|
-
const r = f, l = b;
|
|
393
|
-
z(M);
|
|
394
|
-
const { initVerify: w } = ne(), i = U(null), p = U(null);
|
|
395
|
-
let y = !1, _ = null;
|
|
396
|
-
const L = async (e) => {
|
|
397
|
-
if (!e)
|
|
398
|
-
return;
|
|
399
|
-
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;
|
|
400
|
-
if (!h) {
|
|
401
|
-
J.warning(d || "识别失败,请重新识别!");
|
|
402
|
-
return;
|
|
403
|
-
}
|
|
404
|
-
l("handleLoginFormChange", !0, {
|
|
405
|
-
account: h,
|
|
406
|
-
password: T
|
|
407
|
-
});
|
|
408
|
-
}, u = () => {
|
|
409
|
-
if (!p.value || !i.value)
|
|
410
|
-
return;
|
|
411
|
-
const e = p.value, c = e.getContext("2d"), m = i.value;
|
|
412
|
-
e.width = 200, e.height = 200;
|
|
413
|
-
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;
|
|
414
|
-
c == null || c.drawImage(m, 0, 0, h, T, a, k, N, R), e.toBlob(($) => {
|
|
415
|
-
if ($) {
|
|
416
|
-
const A = new File([$], "face.png", { type: "image/png" });
|
|
417
|
-
L(A);
|
|
418
|
-
}
|
|
419
|
-
}, "image/png");
|
|
420
|
-
}, s = async () => {
|
|
421
|
-
if (!i.value || y)
|
|
422
|
-
return;
|
|
423
|
-
const e = i.value;
|
|
424
|
-
try {
|
|
425
|
-
if (_ = await navigator.mediaDevices.getUserMedia({
|
|
426
|
-
video: { facingMode: "user" },
|
|
427
|
-
// 前置;后置用 'environment'
|
|
428
|
-
audio: !1
|
|
429
|
-
}), e) {
|
|
430
|
-
const c = e;
|
|
431
|
-
c.srcObject = _, y = !0;
|
|
432
|
-
}
|
|
433
|
-
} catch {
|
|
434
|
-
J.warning("摄像头启动失败");
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
function v(e) {
|
|
438
|
-
if (e && (e.getTracks().forEach((c) => c.stop()), i.value)) {
|
|
439
|
-
const c = i.value;
|
|
440
|
-
c.srcObject = null;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
const g = () => {
|
|
444
|
-
v(_), y = !1;
|
|
445
|
-
};
|
|
446
|
-
return K(() => r.activeTabName, (e) => {
|
|
447
|
-
if (e !== O.FACE) {
|
|
448
|
-
g();
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
if (e === O.FACE && !y) {
|
|
452
|
-
s();
|
|
453
|
-
return;
|
|
454
|
-
}
|
|
455
|
-
}), ee(() => {
|
|
456
|
-
g();
|
|
457
|
-
}), (e, c) => (x(), S("div", xe, [
|
|
458
|
-
n("div", Ee, [
|
|
459
|
-
n("video", {
|
|
460
|
-
class: "face-video",
|
|
461
|
-
ref_key: "videoRef",
|
|
462
|
-
ref: i,
|
|
463
|
-
id: "v",
|
|
464
|
-
autoplay: "",
|
|
465
|
-
playsinline: ""
|
|
466
|
-
}, null, 512)
|
|
467
|
-
]),
|
|
468
|
-
F(e.$slots, "default", {}, () => [
|
|
469
|
-
n("button", {
|
|
470
|
-
class: "face-screenshot",
|
|
471
|
-
onClick: u
|
|
472
|
-
}, "人脸识别")
|
|
473
|
-
], !0),
|
|
474
|
-
n("canvas", {
|
|
475
|
-
ref_key: "canvasRef",
|
|
476
|
-
ref: p,
|
|
477
|
-
id: "canvas"
|
|
478
|
-
}, null, 512)
|
|
479
|
-
]));
|
|
480
|
-
}
|
|
481
|
-
}), 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 = {
|
|
482
|
-
key: 0,
|
|
483
|
-
class: "logo"
|
|
484
|
-
}, qe = ["src"], Pe = { class: "english-name" }, ze = { class: "login-body-item right" }, We = /* @__PURE__ */ H({
|
|
485
|
-
__name: "index",
|
|
486
|
-
props: {
|
|
487
|
-
oldSystemKey: {},
|
|
488
|
-
loginContent: {}
|
|
489
|
-
},
|
|
490
|
-
emits: ["change", "projectLogin", "updateApiUrl"],
|
|
491
|
-
setup(f, { emit: b }) {
|
|
492
|
-
const r = f, l = se(), w = b, i = oe(M), p = ae(M), { refreshLogin: y } = q(p), _ = z(M), { systemInfo: L, loginUserInfo: u } = q(_), s = Q(() => {
|
|
493
|
-
var a;
|
|
494
|
-
return ((a = L.value) == null ? void 0 : a.logo) || le;
|
|
495
|
-
}), v = U({
|
|
496
|
-
// sysCTitle: 'INSOFWORKS',
|
|
497
|
-
sysCTitle: "",
|
|
498
|
-
sysETitle: "",
|
|
499
|
-
// sysETitle: 'Dynamic Test Information System',
|
|
500
|
-
loginTitle: "账户密码登录",
|
|
501
|
-
tabs: [
|
|
502
|
-
{
|
|
503
|
-
name: "密码登录",
|
|
504
|
-
btnLabel: "登录",
|
|
505
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
name: "人脸识别",
|
|
509
|
-
btnLabel: "人脸识别",
|
|
510
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
name: "刷卡登录",
|
|
514
|
-
btnLabel: "登录",
|
|
515
|
-
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
516
|
-
}
|
|
517
|
-
]
|
|
518
|
-
}), g = U("account"), e = U(!1), c = U(!1), m = () => {
|
|
519
|
-
e.value = !0;
|
|
520
|
-
}, h = (a, k) => {
|
|
521
|
-
e.value = !1, a && d(k);
|
|
522
|
-
}, T = async () => (sessionStorage.setItem("loginToken", "111"), !0);
|
|
523
|
-
X(async () => {
|
|
524
|
-
await T();
|
|
525
|
-
});
|
|
526
|
-
const d = async (a) => {
|
|
527
|
-
var $, A, V, W;
|
|
528
|
-
c.value = !0, await ce(a) ? (w("projectLogin", a), await ie(), l.push("/"), _.setLogRecordAsync({
|
|
529
|
-
type: "登录",
|
|
530
|
-
data: {
|
|
531
|
-
account: (($ = u.value) == null ? void 0 : $.account) ?? ((A = u.value) == null ? void 0 : A.账号),
|
|
532
|
-
userName: ((V = u.value) == null ? void 0 : V.姓名) || ((W = u.value) == null ? void 0 : W.userName) || "未知"
|
|
533
|
-
}
|
|
534
|
-
}, "/login", "login"), i.setHasClickEditComp(!1)) : c.value = !1, c.value = !1;
|
|
535
|
-
};
|
|
536
|
-
K(
|
|
537
|
-
() => r == null ? void 0 : r.loginContent,
|
|
538
|
-
() => {
|
|
539
|
-
let a = r == null ? void 0 : r.loginContent;
|
|
540
|
-
a != null && a.account && (a != null && a.password) && !y.value && d(a);
|
|
541
|
-
},
|
|
542
|
-
{ deep: !0, immediate: !0 }
|
|
543
|
-
);
|
|
544
|
-
const N = (a) => {
|
|
545
|
-
g.value = a, e.value = !1, c.value = !1;
|
|
546
|
-
}, R = (a) => {
|
|
547
|
-
w("updateApiUrl", a);
|
|
548
|
-
};
|
|
549
|
-
return (a, k) => (x(), S("div", Me, [
|
|
550
|
-
n("div", Oe, [
|
|
551
|
-
n("div", He, [
|
|
552
|
-
o(me, { class: "login-left-bg" }, {
|
|
553
|
-
img: t(() => {
|
|
554
|
-
var $, A;
|
|
555
|
-
return [
|
|
556
|
-
n("div", De, [
|
|
557
|
-
n("div", Ke, [
|
|
558
|
-
s.value ? (x(), S("div", je, [
|
|
559
|
-
n("img", {
|
|
560
|
-
src: s.value,
|
|
561
|
-
alt: ""
|
|
562
|
-
}, null, 8, qe)
|
|
563
|
-
])) : te("", !0),
|
|
564
|
-
n("div", Pe, I((($ = D(L)) == null ? void 0 : $.EnglishName) || "Insofworks"), 1)
|
|
565
|
-
]),
|
|
566
|
-
n("div", null, I(((A = D(L)) == null ? void 0 : A.chineseName) || "工业软件建模与开发系统"), 1)
|
|
567
|
-
]),
|
|
568
|
-
k[0] || (k[0] = n("div", { class: "divide-line" }, null, -1))
|
|
569
|
-
];
|
|
570
|
-
}),
|
|
571
|
-
_: 1
|
|
572
|
-
})
|
|
573
|
-
]),
|
|
574
|
-
n("div", ze, [
|
|
575
|
-
o(ye, {
|
|
576
|
-
loading: c.value,
|
|
577
|
-
onClickLogin: m,
|
|
578
|
-
onHandleTabChange: N
|
|
579
|
-
}, {
|
|
580
|
-
title: t(() => [
|
|
581
|
-
E(I(v.value.loginTitle), 1)
|
|
582
|
-
]),
|
|
583
|
-
tabLabel1: t(() => [
|
|
584
|
-
E(I(v.value.tabs[0].name), 1)
|
|
585
|
-
]),
|
|
586
|
-
tabContent1: t(() => [
|
|
587
|
-
o(Ie, {
|
|
588
|
-
activeTabName: g.value,
|
|
589
|
-
isClickLogin: e.value,
|
|
590
|
-
onHandleLoginFormChange: h,
|
|
591
|
-
onUpdateApiUrl: R
|
|
592
|
-
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
593
|
-
]),
|
|
594
|
-
tabButton1: t(() => [
|
|
595
|
-
E(I(v.value.tabs[0].btnLabel), 1)
|
|
596
|
-
]),
|
|
597
|
-
tabLabel2: t(() => [
|
|
598
|
-
E(I(v.value.tabs[1].name), 1)
|
|
599
|
-
]),
|
|
600
|
-
tabContent2: t(() => [
|
|
601
|
-
o(Be, {
|
|
602
|
-
systemKey: a.oldSystemKey,
|
|
603
|
-
activeTabName: g.value,
|
|
604
|
-
isClickLogin: e.value,
|
|
605
|
-
onHandleLoginFormChange: h
|
|
606
|
-
}, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
|
|
607
|
-
]),
|
|
608
|
-
tabButton2: t(() => [
|
|
609
|
-
E(I(v.value.tabs[1].btnLabel), 1)
|
|
610
|
-
]),
|
|
611
|
-
_: 1
|
|
612
|
-
}, 8, ["loading"])
|
|
613
|
-
])
|
|
614
|
-
])
|
|
615
|
-
]));
|
|
616
|
-
}
|
|
617
|
-
}), nt = /* @__PURE__ */ B(We, [["__scopeId", "data-v-ddcd537b"]]);
|
|
618
|
-
export {
|
|
619
|
-
nt as default
|
|
620
|
-
};
|
package/dist/index-CjYwnKjV.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { l as P, d as C, b, p as N, s as L, e as R } from "./menu-B5Ed9tCx.js";
|
|
2
|
-
import { u as T } from "./index-C6e8tITh.js";
|
|
3
|
-
import { E as k } from "./request-CoGtW0Ux.js";
|
|
4
|
-
const A = b(N), { isDefaultModel: D } = T(), E = async (m, a) => {
|
|
5
|
-
var l, n, r, i, s, d, p, g, f, _, y, h, S, w;
|
|
6
|
-
let e = Object.values(m), t = await P({
|
|
7
|
-
userName: (l = e == null ? void 0 : e[0]) == null ? void 0 : l.trim(),
|
|
8
|
-
password: (n = e == null ? void 0 : e[1]) == null ? void 0 : n.trim()
|
|
9
|
-
});
|
|
10
|
-
if (((r = t == null ? void 0 : t.data) == null ? void 0 : r.status) === 200 && ((s = (i = t == null ? void 0 : t.data) == null ? void 0 : i.result) == null ? void 0 : s.length) <= 0 && (t = await C({
|
|
11
|
-
userName: (d = e == null ? void 0 : e[0]) == null ? void 0 : d.trim(),
|
|
12
|
-
password: (p = e == null ? void 0 : e[1]) == null ? void 0 : p.trim(),
|
|
13
|
-
path: "系统管理/用户管理",
|
|
14
|
-
platId: a
|
|
15
|
-
})), ((g = t == null ? void 0 : t.data) == null ? void 0 : g.status) === 200 && ((_ = (f = t == null ? void 0 : t.data) == null ? void 0 : f.result) == null ? void 0 : _.length) > 0) {
|
|
16
|
-
const o = ((h = (y = t == null ? void 0 : t.data) == null ? void 0 : y.result) == null ? void 0 : h.find((M) => D(M))) || ((w = (S = t == null ? void 0 : t.data) == null ? void 0 : S.result) == null ? void 0 : w[0]);
|
|
17
|
-
sessionStorage.setItem("systemKey", a && a !== "" ? a : o == null ? void 0 : o.plat_id);
|
|
18
|
-
let u = o;
|
|
19
|
-
return u.plat_id = u.plat_id ?? a, A.setLoginUserInfo(u), A.setSystemKey(a && a !== "" ? a : o == null ? void 0 : o.plat_id), !0;
|
|
20
|
-
} else
|
|
21
|
-
return k.error("输入的密码错误,请重新输入"), !1;
|
|
22
|
-
}, K = b(N), { systemInfo: q, loginUserInfo: c } = L(K), O = async () => (sessionStorage.setItem("loginToken", "111"), !0), x = async () => (sessionStorage.setItem("magicToken", "123456"), !0), J = async (m) => {
|
|
23
|
-
var n, r, i;
|
|
24
|
-
let a = [E(m, (n = q.value) == null ? void 0 : n.plat_id), O(), x()];
|
|
25
|
-
const e = await Promise.all(a), t = e == null ? void 0 : e.every((s) => s);
|
|
26
|
-
let l = [
|
|
27
|
-
{
|
|
28
|
-
id: "1",
|
|
29
|
-
request_method: "Post",
|
|
30
|
-
request_url: "/platform/getdata",
|
|
31
|
-
request_param: JSON.stringify({
|
|
32
|
-
userName: "hjj",
|
|
33
|
-
password: "1"
|
|
34
|
-
}),
|
|
35
|
-
request_result: "{}",
|
|
36
|
-
is_delete: !1,
|
|
37
|
-
request_table: "admin_user",
|
|
38
|
-
request_type: "login"
|
|
39
|
-
}
|
|
40
|
-
];
|
|
41
|
-
try {
|
|
42
|
-
const s = ((r = c == null ? void 0 : c.value) == null ? void 0 : r.plat_id) || ((i = q.value) == null ? void 0 : i.plat_id);
|
|
43
|
-
return await R({
|
|
44
|
-
platId: parseInt(s),
|
|
45
|
-
changeContents: [{
|
|
46
|
-
tableName: "log",
|
|
47
|
-
tableContents: l
|
|
48
|
-
}]
|
|
49
|
-
}), t;
|
|
50
|
-
} catch {
|
|
51
|
-
return t;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
export {
|
|
55
|
-
J as l
|
|
56
|
-
};
|