ss-component-new 1.3.78 → 1.3.79
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-Bkr7rTJW.js → MTLLoader-J6KQSJo5.js} +1 -1
- package/dist/{MTLLoader-ByAfB26z.cjs → MTLLoader-xQUyDMUQ.cjs} +1 -1
- package/dist/{OrbitControls-goGQ9Lfs.js → OrbitControls-CYS3lt7t.js} +1 -1
- package/dist/{OrbitControls-BcfNtf3a.cjs → OrbitControls-wLj5IZpu.cjs} +1 -1
- package/dist/{URDFLoader-nyfij85d.cjs → URDFLoader-CMw9yh3v.cjs} +1 -1
- package/dist/{URDFLoader-d1AzVQ5F.js → URDFLoader-FM9qqfOl.js} +2 -2
- package/dist/{animationData-Cew-c11l.cjs → animationData-2UX1B5_q.cjs} +1 -1
- package/dist/{animationData-Sok20fOI.js → animationData-DUH4W8MK.js} +2 -2
- package/dist/{array-CCxIPliQ.cjs → array-Bd12qj41.cjs} +1 -1
- package/dist/{array-BkHYCyls.js → array-C2VeqIuB.js} +6 -6
- package/dist/{iconfont-CJoblcL2.js → iconfont-BCTnYuQD.js} +2 -2
- package/dist/{iconfont-DZ9KiHjj.cjs → iconfont-iC_6bHfi.cjs} +1 -1
- package/dist/{index-eUZKu-7F.cjs → index-0igLJsrJ.cjs} +1 -1
- package/dist/{index-D7GkHVm4.cjs → index-5dvr_F6Q.cjs} +1 -1
- package/dist/{index-DmeZpSGM.js → index-AR7D1heX.js} +5 -5
- package/dist/{index-DLGxv8po.js → index-B-dZDLlp.js} +4 -4
- package/dist/{index-EtZh1qtq.js → index-B4xBmgak.js} +2 -2
- package/dist/{index-Dyhg1YNv.js → index-B5i-XCGU.js} +1 -1
- package/dist/{index-oJEY_fSN.js → index-B7Q8lfZm.js} +12 -12
- package/dist/{index-Dld88iXe.js → index-BDXWwpnM.js} +1 -1
- package/dist/index-BTqL_HGH.cjs +19 -0
- package/dist/{index-D8DcUSsZ.cjs → index-B_MCMG28.cjs} +1 -1
- package/dist/{index-fwa9LBX5.cjs → index-BfOeLrc4.cjs} +1 -1
- package/dist/index-BgDlt5VR.js +466 -0
- package/dist/{index-Bj7H-CHU.js → index-BmwOHAWI.js} +4 -4
- package/dist/{index-t9jd4l9Q.js → index-BodCp2oo.js} +2 -2
- package/dist/{index-BQWGBLrD.cjs → index-BqvVG799.cjs} +1 -1
- package/dist/{index-AHbRUQqE.cjs → index-Bwewgc3l.cjs} +1 -1
- package/dist/{index-DilZmA-l.cjs → index-BySUbdBm.cjs} +1 -1
- package/dist/{index-CjCqvZ07.cjs → index-C3UwBzuP.cjs} +2 -2
- package/dist/{index-DXxZIqBP.cjs → index-C6KO8_us.cjs} +1 -1
- package/dist/index-CCjUy3aK.cjs +1 -0
- package/dist/{index-BVh3Ylgt.cjs → index-CIvnqPpe.cjs} +1 -1
- package/dist/{index-CM8Na0Nb.js → index-CKrXLddb.js} +15 -15
- package/dist/{index-CGpIY6jB.js → index-COu_zvcV.js} +2053 -2048
- package/dist/{index-CNLUhFlr.js → index-CP3licEB.js} +2 -2
- package/dist/{index-D8k54p_x.cjs → index-CPffhaiD.cjs} +1 -1
- package/dist/index-CTGFVPrU.js +8192 -0
- package/dist/index-CUElPXgv.cjs +1 -0
- package/dist/{index-C036vLtM.cjs → index-CVCJuzlD.cjs} +1 -1
- package/dist/{index-Dlob1bxY.cjs → index-CeXyg5Rl.cjs} +1 -1
- package/dist/{index-BZqkclA9.cjs → index-Cl7_1LxQ.cjs} +1 -1
- package/dist/{index-B7cNKrrU.cjs → index-Cl8_F2w0.cjs} +1 -1
- package/dist/{index-BPmWhs0O.js → index-ClIqEC4B.js} +2 -2
- package/dist/{index-XSETNP_T.js → index-CnEbdJ_u.js} +1 -1
- package/dist/{index-CI8pzqx6.js → index-CqEyKbrr.js} +6 -6
- package/dist/index-Cu1ObOAB.js +19 -0
- package/dist/{index-G0nsjixB.js → index-CzL_5aJo.js} +8 -8
- package/dist/{index-D9hditHi.js → index-CzXa6BB9.js} +1 -1
- package/dist/{index-BysdHzB7.cjs → index-D1Cy49Op.cjs} +1 -1
- package/dist/{index-DijK6RWK.js → index-D4pvlJjc.js} +7 -7
- package/dist/{index-CST5bbhY.js → index-DKRx656d.js} +6 -6
- package/dist/{index-CWY9HxrG.js → index-DPM1jo0z.js} +1 -1
- package/dist/{index-BgKqiFcg.cjs → index-DPms6EYm.cjs} +1 -1
- package/dist/{index-M_FLMoBh.cjs → index-DYLAzmSg.cjs} +1 -1
- package/dist/index-Dc6Q0f3F.cjs +11 -0
- package/dist/{index-JAXzKk2F.js → index-DcWo3vcO.js} +28 -28
- package/dist/{index-DHdrBDP4.cjs → index-DcqWejmU.cjs} +1 -1
- package/dist/{index-TvWbGp-2.cjs → index-DidUY5n8.cjs} +1 -1
- package/dist/{index-BAelm3VG.cjs → index-DkS40ewf.cjs} +1 -1
- package/dist/{index-BRPLPxlx.cjs → index-DngWdaTr.cjs} +1 -1
- package/dist/{index-2B1wHje0.cjs → index-DpocbqLg.cjs} +1 -1
- package/dist/{index-DsymuEzu.cjs → index-Du5edMFi.cjs} +13 -13
- package/dist/{index-CInkQ8cP.cjs → index-Dx6MbKD4.cjs} +1 -1
- package/dist/{index-ChiYyt8L.js → index-EuIwRz8c.js} +2 -2
- package/dist/{index-DaWzSNzm.js → index-Gu-cpRk9.js} +1 -1
- package/dist/{index-DBh4mbmL.js → index-KUyZ7T9o.js} +3212 -3201
- package/dist/{index-cKFeu5XW.cjs → index-WBDZ_4z8.cjs} +1 -1
- package/dist/{index-CIGrCpB_.js → index-YfmQ3HO9.js} +8 -8
- package/dist/{index-DnMPqjrX.js → index-eQnRGO0h.js} +4 -4
- package/dist/{index-rCV_Ea-P.js → index-gF-4JYat.js} +1 -1
- package/dist/{index-BIbLwf-J.cjs → index-gVJsXKak.cjs} +1 -1
- package/dist/{index-5CdDKPk6.js → index-igtlvQAe.js} +2 -2
- package/dist/{index-K1n-pA4G.js → index-jkHlUTog.js} +2616 -2545
- package/dist/{index-BHrQS0PO.js → index-lz-ekKYh.js} +1 -1
- package/dist/index-rbS2iECn.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-Ceq-4YAl.cjs → index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-Dj8zYuMh.cjs} +49 -49
- package/dist/{index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js → index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-surfEjhe.js} +2071 -2076
- package/dist/{index.vue_vue_type_style_index_1_lang-D9kYnXoD.cjs → index.vue_vue_type_style_index_1_lang-CBwwjCVB.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DDUoM--M.js → index.vue_vue_type_style_index_1_lang-DSIK6FYX.js} +5 -5
- package/dist/{isString-D4Yi9bDE.js → isString-Bn5VcA2n.js} +1 -1
- package/dist/{isString-Cdf6R00a.cjs → isString-DhPkQDQg.cjs} +1 -1
- package/dist/{main-DKugsEJQ.js → main-NW4XXiNt.js} +4 -4
- package/dist/{main-DDI-kRzh.cjs → main-p38X05Mj.cjs} +1 -1
- package/dist/{menuIndex-BVHXKOLk.cjs → menuIndex-D332F0dw.cjs} +1 -1
- package/dist/{menuIndex-BvSKgV5f.js → menuIndex-DOraLCRw.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +13 -13
- package/dist/{threeModel-BwWSWObs.js → threeModel-C4O9G7gx.js} +6 -6
- package/dist/{threeModel-BC_JZ1RV.cjs → threeModel-DH7KgOVV.cjs} +1 -1
- package/dist/{threePreview-CfyAicAQ.js → threePreview-BCM2X6a_.js} +5 -5
- package/dist/{threePreview-mSNaLCWp.cjs → threePreview-C1XUqnbj.cjs} +1 -1
- package/dist/{threeSceneView-66dCWgEi.cjs → threeSceneView-BehsA9j_.cjs} +1 -1
- package/dist/{threeSceneView-Dbr2KLMM.js → threeSceneView-C3A4G5J_.js} +11 -11
- package/dist/{threeSceneViewForCPMPIP-tPswynXd.js → threeSceneViewForCPMPIP-DG49msmU.js} +9 -9
- package/dist/{threeSceneViewForCPMPIP-BzMYLFuK.cjs → threeSceneViewForCPMPIP-DczSoavc.cjs} +1 -1
- package/dist/{threeTrackPathView-C65T-bEd.cjs → threeTrackPathView-CGy2nPcI.cjs} +1 -1
- package/dist/{threeTrackPathView-CZt3mY2y.js → threeTrackPathView-CZTHAZ4q.js} +6 -6
- package/dist/{threeViewerHost-DtuM2v2G.cjs → threeViewerHost-BO_RtFQ8.cjs} +1 -1
- package/dist/{threeViewerHost-D2qSyCw-.js → threeViewerHost-CjckAsTF.js} +3 -3
- package/dist/{urdfTree-UVAVh9q0.cjs → urdfTree-CJKP_T_2.cjs} +1 -1
- package/dist/{urdfTree-BCj0sPXo.js → urdfTree-DsYvLkJQ.js} +1 -1
- package/dist/{workpieceTreePanel-CrpY18jo.js → workpieceTreePanel-CzdZZhzq.js} +4 -4
- package/dist/{workpieceTreePanel-BtxWzOMx.cjs → workpieceTreePanel-Ds0qy--F.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BFvOrU__.cjs +0 -19
- package/dist/index-BQ5LLLCI.cjs +0 -1
- package/dist/index-C5pQXH0_.cjs +0 -11
- package/dist/index-Cuw9DLEb.cjs +0 -1
- package/dist/index-D0aKEqnU.js +0 -476
- package/dist/index-KEXDCkKc.js +0 -8139
- 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
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import { createElementBlock as I, openBlock as K, createElementVNode as b, renderSlot as $, defineComponent as M, ref as F, resolveComponent as E, createVNode as h, withCtx as d, unref as R, reactive as q, watch as O, onBeforeUnmount as G, onMounted as J, toDisplayString as S, createTextVNode as V } from "vue";
|
|
2
|
+
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import { b as j, p as H, s as Q } from "./index-DcWo3vcO.js";
|
|
4
|
+
import { v as X } from "./index-Cu1ObOAB.js";
|
|
5
|
+
import { E as U, s as Y, a as Z } from "./index-jkHlUTog.js";
|
|
6
|
+
import { useRouter as ee } from "vue-router";
|
|
7
|
+
import { v as te } from "./index-ClIqEC4B.js";
|
|
8
|
+
import { l as ae, a as oe } from "./index-CzXa6BB9.js";
|
|
9
|
+
const ne = {}, se = { class: "left-wrap" }, ie = { class: "left-bg" };
|
|
10
|
+
function ce(C, v) {
|
|
11
|
+
return K(), I("div", se, [
|
|
12
|
+
b("div", ie, [
|
|
13
|
+
$(C.$slots, "img", {}, void 0, !0)
|
|
14
|
+
])
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
const le = /* @__PURE__ */ B(ne, [["render", ce], ["__scopeId", "data-v-9b7ee6c9"]]), x = {
|
|
18
|
+
ACCOUNT: "account",
|
|
19
|
+
FACE: "face"
|
|
20
|
+
}, re = { class: "right-wrap" }, de = { class: "tab-content" }, ue = { class: "tab-tips" }, me = { class: "tab-content" }, fe = { class: "tab-tips" }, ge = /* @__PURE__ */ M({
|
|
21
|
+
__name: "index",
|
|
22
|
+
props: {
|
|
23
|
+
tabList: {
|
|
24
|
+
type: Array,
|
|
25
|
+
default: []
|
|
26
|
+
},
|
|
27
|
+
loading: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["clickLogin", "handleTabChange"],
|
|
33
|
+
setup(C, { emit: v }) {
|
|
34
|
+
const t = F(x.ACCOUNT), e = v, f = () => {
|
|
35
|
+
e("clickLogin", t.value);
|
|
36
|
+
}, y = (o) => {
|
|
37
|
+
e("handleTabChange", o);
|
|
38
|
+
};
|
|
39
|
+
return (o, r) => {
|
|
40
|
+
const n = E("el-button"), g = E("el-tab-pane"), u = E("el-tabs");
|
|
41
|
+
return K(), I("div", re, [
|
|
42
|
+
h(u, {
|
|
43
|
+
modelValue: t.value,
|
|
44
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => t.value = m),
|
|
45
|
+
class: "right-tabs",
|
|
46
|
+
onTabChange: y
|
|
47
|
+
}, {
|
|
48
|
+
default: d(() => [
|
|
49
|
+
h(g, {
|
|
50
|
+
name: R(x).ACCOUNT
|
|
51
|
+
}, {
|
|
52
|
+
label: d(() => [
|
|
53
|
+
$(o.$slots, "tabLabel1", {}, void 0, !0)
|
|
54
|
+
]),
|
|
55
|
+
default: d(() => [
|
|
56
|
+
b("div", de, [
|
|
57
|
+
$(o.$slots, "tabContent1", {}, void 0, !0)
|
|
58
|
+
]),
|
|
59
|
+
b("div", {
|
|
60
|
+
class: "tab-button special",
|
|
61
|
+
onClick: f
|
|
62
|
+
}, [
|
|
63
|
+
h(n, { loading: C.loading }, {
|
|
64
|
+
default: d(() => [
|
|
65
|
+
$(o.$slots, "tabButton1", {}, void 0, !0)
|
|
66
|
+
]),
|
|
67
|
+
_: 3
|
|
68
|
+
}, 8, ["loading"])
|
|
69
|
+
]),
|
|
70
|
+
b("div", ue, [
|
|
71
|
+
$(o.$slots, "tabTips1", {}, void 0, !0)
|
|
72
|
+
])
|
|
73
|
+
]),
|
|
74
|
+
_: 3
|
|
75
|
+
}, 8, ["name"]),
|
|
76
|
+
h(g, {
|
|
77
|
+
name: R(x).FACE
|
|
78
|
+
}, {
|
|
79
|
+
label: d(() => [
|
|
80
|
+
$(o.$slots, "tabLabel2", {}, void 0, !0)
|
|
81
|
+
]),
|
|
82
|
+
default: d(() => [
|
|
83
|
+
b("div", me, [
|
|
84
|
+
$(o.$slots, "tabContent2", {}, void 0, !0)
|
|
85
|
+
]),
|
|
86
|
+
b("div", fe, [
|
|
87
|
+
$(o.$slots, "tabTips2", {}, void 0, !0)
|
|
88
|
+
])
|
|
89
|
+
]),
|
|
90
|
+
_: 3
|
|
91
|
+
}, 8, ["name"])
|
|
92
|
+
]),
|
|
93
|
+
_: 3
|
|
94
|
+
}, 8, ["modelValue"])
|
|
95
|
+
]);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
}), pe = /* @__PURE__ */ B(ge, [["__scopeId", "data-v-8b1962f0"]]), be = { class: "account-wrap" }, ve = /* @__PURE__ */ M({
|
|
99
|
+
__name: "index",
|
|
100
|
+
props: {
|
|
101
|
+
activeTabName: {
|
|
102
|
+
type: String,
|
|
103
|
+
default: ""
|
|
104
|
+
},
|
|
105
|
+
isClickLogin: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: !1
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
emits: ["handleLoginFormChange"],
|
|
111
|
+
setup(C, { emit: v }) {
|
|
112
|
+
const t = C, e = q({
|
|
113
|
+
account: "",
|
|
114
|
+
password: ""
|
|
115
|
+
}), f = q({
|
|
116
|
+
account: [
|
|
117
|
+
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
118
|
+
],
|
|
119
|
+
password: [
|
|
120
|
+
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
121
|
+
]
|
|
122
|
+
}), y = F(null), o = v;
|
|
123
|
+
return O(() => t.isClickLogin, (r) => {
|
|
124
|
+
var n;
|
|
125
|
+
r && (t == null ? void 0 : t.activeTabName) === "account" && ((n = y.value) == null || n.validate((g) => {
|
|
126
|
+
var u;
|
|
127
|
+
for (let m in e)
|
|
128
|
+
e.hasOwnProperty(m) && (e[m] = (u = e[m]) == null ? void 0 : u.trim());
|
|
129
|
+
o("handleLoginFormChange", g, g ? e : null);
|
|
130
|
+
}));
|
|
131
|
+
}, {
|
|
132
|
+
immediate: !0
|
|
133
|
+
}), O(() => t.activeTabName, (r) => {
|
|
134
|
+
var n;
|
|
135
|
+
r === "account" && ((n = y.value) == null || n.resetFields());
|
|
136
|
+
}), (r, n) => {
|
|
137
|
+
const g = E("svg-icon"), u = E("el-input"), m = E("el-form-item"), T = E("el-form");
|
|
138
|
+
return K(), I("div", be, [
|
|
139
|
+
h(T, {
|
|
140
|
+
model: e,
|
|
141
|
+
rules: f,
|
|
142
|
+
ref_key: "formRef",
|
|
143
|
+
ref: y
|
|
144
|
+
}, {
|
|
145
|
+
default: d(() => [
|
|
146
|
+
h(m, {
|
|
147
|
+
label: "",
|
|
148
|
+
prop: "account"
|
|
149
|
+
}, {
|
|
150
|
+
default: d(() => [
|
|
151
|
+
h(u, {
|
|
152
|
+
class: "account-input",
|
|
153
|
+
modelValue: e.account,
|
|
154
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => e.account = a),
|
|
155
|
+
placeholder: "请输入账号",
|
|
156
|
+
clearable: ""
|
|
157
|
+
}, {
|
|
158
|
+
prefix: d(() => [
|
|
159
|
+
h(g, {
|
|
160
|
+
name: "account",
|
|
161
|
+
style: { width: "15px", height: "15px" }
|
|
162
|
+
})
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["modelValue"])
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}),
|
|
169
|
+
h(m, {
|
|
170
|
+
label: "",
|
|
171
|
+
prop: "password"
|
|
172
|
+
}, {
|
|
173
|
+
default: d(() => [
|
|
174
|
+
h(u, {
|
|
175
|
+
class: "account-input",
|
|
176
|
+
modelValue: e.password,
|
|
177
|
+
"onUpdate:modelValue": n[1] || (n[1] = (a) => e.password = a),
|
|
178
|
+
type: "password",
|
|
179
|
+
placeholder: "请输入密码",
|
|
180
|
+
"show-password": "",
|
|
181
|
+
clearable: ""
|
|
182
|
+
}, {
|
|
183
|
+
prefix: d(() => [
|
|
184
|
+
h(g, {
|
|
185
|
+
name: "password",
|
|
186
|
+
style: { width: "15px", height: "15px" }
|
|
187
|
+
})
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["modelValue"])
|
|
191
|
+
]),
|
|
192
|
+
_: 1
|
|
193
|
+
})
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
}, 8, ["model", "rules"])
|
|
197
|
+
]);
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
}), _e = /* @__PURE__ */ B(ve, [["__scopeId", "data-v-48037c0f"]]), he = { class: "account-wrap" }, ye = { class: "video-wrap" }, Ce = /* @__PURE__ */ M({
|
|
201
|
+
__name: "index",
|
|
202
|
+
props: {
|
|
203
|
+
systemKey: { default: "" },
|
|
204
|
+
activeTabName: { default: "" },
|
|
205
|
+
isClickLogin: { type: Boolean, default: !1 }
|
|
206
|
+
},
|
|
207
|
+
emits: ["handleLoginFormChange"],
|
|
208
|
+
setup(C, { emit: v }) {
|
|
209
|
+
const t = C, e = v;
|
|
210
|
+
j(H);
|
|
211
|
+
const f = F(null), y = F(null);
|
|
212
|
+
let o = !1, r = null;
|
|
213
|
+
const n = async (a) => {
|
|
214
|
+
if (!a)
|
|
215
|
+
return;
|
|
216
|
+
const c = new FormData();
|
|
217
|
+
c.set("file", a), t.systemKey && c.set("systemKey", t.systemKey), console.log("Face Recognition", t.systemKey);
|
|
218
|
+
const L = await X(c), { data: _ } = L || {}, { user_name: w, password: k, layer: i } = (_ == null ? void 0 : _.data) || {}, l = _ == null ? void 0 : _.msg;
|
|
219
|
+
if (!w) {
|
|
220
|
+
U.warning(l || "识别失败,请重新识别!");
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
e("handleLoginFormChange", !0, {
|
|
224
|
+
account: w,
|
|
225
|
+
password: k
|
|
226
|
+
});
|
|
227
|
+
}, g = () => {
|
|
228
|
+
if (!y.value || !f.value)
|
|
229
|
+
return;
|
|
230
|
+
const a = y.value, c = a.getContext("2d"), L = f.value;
|
|
231
|
+
a.width = 200, a.height = 200;
|
|
232
|
+
const _ = L.videoWidth || 640, w = L.videoHeight || 480, k = Math.min(200 / _, 200 / w), i = _ * k, l = w * k, p = (200 - i) / 2, s = (200 - l) / 2;
|
|
233
|
+
c == null || c.drawImage(L, 0, 0, _, w, p, s, i, l), a.toBlob((N) => {
|
|
234
|
+
if (N) {
|
|
235
|
+
const A = new File([N], "face.png", { type: "image/png" });
|
|
236
|
+
n(A);
|
|
237
|
+
}
|
|
238
|
+
}, "image/png");
|
|
239
|
+
}, u = async () => {
|
|
240
|
+
if (!f.value || o)
|
|
241
|
+
return;
|
|
242
|
+
const a = f.value;
|
|
243
|
+
try {
|
|
244
|
+
if (r = await navigator.mediaDevices.getUserMedia({
|
|
245
|
+
video: { facingMode: "user" },
|
|
246
|
+
// 前置;后置用 'environment'
|
|
247
|
+
audio: !1
|
|
248
|
+
}), a) {
|
|
249
|
+
const c = a;
|
|
250
|
+
c.srcObject = r, o = !0;
|
|
251
|
+
}
|
|
252
|
+
} catch {
|
|
253
|
+
U.warning("摄像头启动失败");
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
function m(a) {
|
|
257
|
+
if (a && (a.getTracks().forEach((c) => c.stop()), f.value)) {
|
|
258
|
+
const c = f.value;
|
|
259
|
+
c.srcObject = null;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
const T = () => {
|
|
263
|
+
m(r), o = !1;
|
|
264
|
+
};
|
|
265
|
+
return O(() => t.activeTabName, (a) => {
|
|
266
|
+
if (a !== x.FACE) {
|
|
267
|
+
T();
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
if (a === x.FACE && !o) {
|
|
271
|
+
u();
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
}), G(() => {
|
|
275
|
+
T();
|
|
276
|
+
}), (a, c) => (K(), I("div", he, [
|
|
277
|
+
b("div", ye, [
|
|
278
|
+
b("video", {
|
|
279
|
+
class: "face-video",
|
|
280
|
+
ref_key: "videoRef",
|
|
281
|
+
ref: f,
|
|
282
|
+
id: "v",
|
|
283
|
+
autoplay: "",
|
|
284
|
+
playsinline: ""
|
|
285
|
+
}, null, 512)
|
|
286
|
+
]),
|
|
287
|
+
b("button", {
|
|
288
|
+
class: "face-screenshot",
|
|
289
|
+
onClick: g
|
|
290
|
+
}, "人脸识别"),
|
|
291
|
+
b("canvas", {
|
|
292
|
+
ref_key: "canvasRef",
|
|
293
|
+
ref: y,
|
|
294
|
+
id: "canvas"
|
|
295
|
+
}, null, 512)
|
|
296
|
+
]));
|
|
297
|
+
}
|
|
298
|
+
}), we = /* @__PURE__ */ B(Ce, [["__scopeId", "data-v-0efc65bd"]]);
|
|
299
|
+
function Le() {
|
|
300
|
+
return Y({
|
|
301
|
+
url: "/api/sysAuth/login",
|
|
302
|
+
method: "post",
|
|
303
|
+
data: {
|
|
304
|
+
account: "superadmin",
|
|
305
|
+
password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
|
|
306
|
+
tenantId: -1,
|
|
307
|
+
code: "",
|
|
308
|
+
codeId: 0
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
const W = j(H), Te = async (C, v) => {
|
|
313
|
+
var f, y, o, r, n, g, u, m, T, a, c, L, _, w, k, i, l, p;
|
|
314
|
+
let t = Object.values(C), e = await ae({
|
|
315
|
+
userName: (f = t == null ? void 0 : t[0]) == null ? void 0 : f.trim(),
|
|
316
|
+
password: (y = t == null ? void 0 : t[1]) == null ? void 0 : y.trim()
|
|
317
|
+
});
|
|
318
|
+
if (((o = e == null ? void 0 : e.data) == null ? void 0 : o.status) === 200 && ((n = (r = e == null ? void 0 : e.data) == null ? void 0 : r.result) == null ? void 0 : n.length) <= 0 && (e = await oe({
|
|
319
|
+
userName: (g = t == null ? void 0 : t[0]) == null ? void 0 : g.trim(),
|
|
320
|
+
password: (u = t == null ? void 0 : t[1]) == null ? void 0 : u.trim(),
|
|
321
|
+
path: "系统管理/用户管理",
|
|
322
|
+
platId: v
|
|
323
|
+
// platId: '785771438178373'
|
|
324
|
+
})), ((m = e == null ? void 0 : e.data) == null ? void 0 : m.status) === 200 && ((a = (T = e == null ? void 0 : e.data) == null ? void 0 : T.result) == null ? void 0 : a.length) > 0) {
|
|
325
|
+
sessionStorage.setItem("systemKey", v && v !== "" ? v : (_ = (L = (c = e == null ? void 0 : e.data) == null ? void 0 : c.result) == null ? void 0 : L[0]) == null ? void 0 : _.plat_id);
|
|
326
|
+
let s = (k = (w = e == null ? void 0 : e.data) == null ? void 0 : w.result) == null ? void 0 : k[0];
|
|
327
|
+
return s.plat_id = s.plat_id ?? v, W.setLoginUserInfo(s), W.setSystemKey(v && v !== "" ? v : (p = (l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.result) == null ? void 0 : l[0]) == null ? void 0 : p.plat_id), !0;
|
|
328
|
+
} else
|
|
329
|
+
return U.error("输入的密码错误,请重新输入"), !1;
|
|
330
|
+
}, ke = { class: "login-wrap" }, Ne = { class: "login-body" }, $e = { class: "login-body-item left" }, Fe = { class: "title" }, Ae = { class: "login-body-item right" }, Se = /* @__PURE__ */ M({
|
|
331
|
+
__name: "index",
|
|
332
|
+
props: {
|
|
333
|
+
oldSystemKey: {}
|
|
334
|
+
},
|
|
335
|
+
emits: ["change"],
|
|
336
|
+
setup(C, { emit: v }) {
|
|
337
|
+
const t = C, e = ee(), f = j(H), { systemKey: y, systemInfo: o, loginUserInfo: r } = Q(f), n = F({
|
|
338
|
+
// sysCTitle: 'INSOFWORKS',
|
|
339
|
+
sysCTitle: "",
|
|
340
|
+
sysETitle: "",
|
|
341
|
+
// sysETitle: 'Dynamic Test Information System',
|
|
342
|
+
loginTitle: "账户密码登录",
|
|
343
|
+
tabs: [
|
|
344
|
+
{
|
|
345
|
+
name: "密码登录",
|
|
346
|
+
btnLabel: "登录",
|
|
347
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
name: "人脸识别",
|
|
351
|
+
btnLabel: "人脸识别",
|
|
352
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
name: "刷卡登录",
|
|
356
|
+
btnLabel: "登录",
|
|
357
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
}), g = F("account"), u = F(!1), m = F(!1), T = () => {
|
|
361
|
+
u.value = !0;
|
|
362
|
+
}, a = (i, l) => {
|
|
363
|
+
u.value = !1, i && _(l);
|
|
364
|
+
}, c = async () => {
|
|
365
|
+
var i, l, p;
|
|
366
|
+
try {
|
|
367
|
+
const s = await Le();
|
|
368
|
+
return ((i = s == null ? void 0 : s.data) == null ? void 0 : i.code) === 200 ? (sessionStorage.setItem("loginToken", (p = (l = s.data) == null ? void 0 : l.result) == null ? void 0 : p.accessToken), !0) : !1;
|
|
369
|
+
} catch (s) {
|
|
370
|
+
U.error(s);
|
|
371
|
+
}
|
|
372
|
+
}, L = async () => {
|
|
373
|
+
var i, l, p;
|
|
374
|
+
try {
|
|
375
|
+
const s = await Z.post("http://139.196.154.85:20024/api/sysAuth/login", {
|
|
376
|
+
account: "superadmin",
|
|
377
|
+
password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
|
|
378
|
+
codeId: 0,
|
|
379
|
+
code: ""
|
|
380
|
+
});
|
|
381
|
+
return ((i = s == null ? void 0 : s.data) == null ? void 0 : i.code) === 200 && sessionStorage.setItem("magicToken", (p = (l = s.data) == null ? void 0 : l.result) == null ? void 0 : p.accessToken), !0;
|
|
382
|
+
} catch {
|
|
383
|
+
return !0;
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
J(async () => {
|
|
387
|
+
await c();
|
|
388
|
+
});
|
|
389
|
+
const _ = async (i) => {
|
|
390
|
+
var N, A, P, D;
|
|
391
|
+
m.value = !0;
|
|
392
|
+
let l = [Te(i, t.oldSystemKey), c(), L()];
|
|
393
|
+
const p = await Promise.all(l);
|
|
394
|
+
(p == null ? void 0 : p.every((z) => z)) ? (await te(), e.push("/"), f.setLogRecordAsync({
|
|
395
|
+
type: "登录",
|
|
396
|
+
data: {
|
|
397
|
+
account: ((N = r.value) == null ? void 0 : N.account) ?? ((A = r.value) == null ? void 0 : A.账号),
|
|
398
|
+
userName: ((P = r.value) == null ? void 0 : P.姓名) || ((D = r.value) == null ? void 0 : D.userName) || "未知"
|
|
399
|
+
}
|
|
400
|
+
}, "/login", "login")) : m.value = !1;
|
|
401
|
+
}, w = (i) => {
|
|
402
|
+
g.value = i, u.value = !1, m.value = !1;
|
|
403
|
+
}, k = (i) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(i);
|
|
404
|
+
return (i, l) => (K(), I("div", ke, [
|
|
405
|
+
b("div", Ne, [
|
|
406
|
+
b("div", $e, [
|
|
407
|
+
h(le, { class: "login-left-bg" }, {
|
|
408
|
+
img: d(() => {
|
|
409
|
+
var p, s, N, A;
|
|
410
|
+
return [
|
|
411
|
+
b("div", Fe, [
|
|
412
|
+
b("div", null, S(((p = R(o)) == null ? void 0 : p.EnglishName) || "ETCS"), 1),
|
|
413
|
+
b("div", null, S((s = R(o)) != null && s.chineseName && k((N = R(o)) == null ? void 0 : N.chineseName) ? (A = R(o)) == null ? void 0 : A.chineseName : "发动机试验管控系统"), 1)
|
|
414
|
+
]),
|
|
415
|
+
l[0] || (l[0] = b("div", { class: "divide-line" }, null, -1))
|
|
416
|
+
];
|
|
417
|
+
}),
|
|
418
|
+
_: 1
|
|
419
|
+
})
|
|
420
|
+
]),
|
|
421
|
+
b("div", Ae, [
|
|
422
|
+
h(pe, {
|
|
423
|
+
loading: m.value,
|
|
424
|
+
onClickLogin: T,
|
|
425
|
+
onHandleTabChange: w
|
|
426
|
+
}, {
|
|
427
|
+
title: d(() => [
|
|
428
|
+
V(S(n.value.loginTitle), 1)
|
|
429
|
+
]),
|
|
430
|
+
tabLabel1: d(() => [
|
|
431
|
+
V(S(n.value.tabs[0].name), 1)
|
|
432
|
+
]),
|
|
433
|
+
tabContent1: d(() => [
|
|
434
|
+
h(_e, {
|
|
435
|
+
activeTabName: g.value,
|
|
436
|
+
isClickLogin: u.value,
|
|
437
|
+
onHandleLoginFormChange: a
|
|
438
|
+
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
439
|
+
]),
|
|
440
|
+
tabButton1: d(() => [
|
|
441
|
+
V(S(n.value.tabs[0].btnLabel), 1)
|
|
442
|
+
]),
|
|
443
|
+
tabLabel2: d(() => [
|
|
444
|
+
V(S(n.value.tabs[1].name), 1)
|
|
445
|
+
]),
|
|
446
|
+
tabContent2: d(() => [
|
|
447
|
+
h(we, {
|
|
448
|
+
systemKey: i.oldSystemKey,
|
|
449
|
+
activeTabName: g.value,
|
|
450
|
+
isClickLogin: u.value,
|
|
451
|
+
onHandleLoginFormChange: a
|
|
452
|
+
}, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
|
|
453
|
+
]),
|
|
454
|
+
tabButton2: d(() => [
|
|
455
|
+
V(S(n.value.tabs[1].btnLabel), 1)
|
|
456
|
+
]),
|
|
457
|
+
_: 1
|
|
458
|
+
}, 8, ["loading"])
|
|
459
|
+
])
|
|
460
|
+
])
|
|
461
|
+
]));
|
|
462
|
+
}
|
|
463
|
+
}), Me = /* @__PURE__ */ B(Se, [["__scopeId", "data-v-ca0d27a0"]]);
|
|
464
|
+
export {
|
|
465
|
+
Me as default
|
|
466
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as F, computed as N, ref as p, watch as P, createElementBlock as B, openBlock as b, createVNode as v, createCommentVNode as j, withCtx as u, createTextVNode as T, toDisplayString as I, resolveComponent as k, createBlock as x, Fragment as L, renderList as O, createElementVNode as R, normalizeStyle as q } from "vue";
|
|
2
|
-
import { A as H } from "./index-
|
|
3
|
-
import { d as M, f as V } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-
|
|
4
|
-
import { E as z } from "./index-
|
|
2
|
+
import { A as H } from "./index-B7Q8lfZm.js";
|
|
3
|
+
import { d as M, f as V } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-surfEjhe.js";
|
|
4
|
+
import { E as z } from "./index-jkHlUTog.js";
|
|
5
5
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { S as W } from "./index-
|
|
6
|
+
import { S as W } from "./index-KUyZ7T9o.js";
|
|
7
7
|
import { S as E } from "./index-BHtNKL1L.js";
|
|
8
8
|
const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F({
|
|
9
9
|
__name: "index",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
|
|
2
|
-
import { S as m } from "./index-
|
|
3
|
-
import { s as _ } from "./index-
|
|
2
|
+
import { S as m } from "./index-B4xBmgak.js";
|
|
3
|
+
import { s as _ } from "./index-CTGFVPrU.js";
|
|
4
4
|
import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
|
|
6
6
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-gVJsXKak.cjs"),r=require("./index-BTqL_HGH.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-Dj8zYuMh.cjs");const n=require("./index-BfOeLrc4.cjs"),b=require("./index-Dc6Q0f3F.cjs"),i=require("./index-BTqL_HGH.cjs"),y=n.useModelComp(),{itemData:g}=n.storeToRefs(y),u=o.ref(0),D=o.ref([{label:"机构名称",value:"",name:"deptName"}]),f=e=>{console.log("handleQueryChange",e)},c=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),m=e=>{n.submitTableAsyncByVerify(e.singleContent,e.buttonName,u.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},_=async e=>{const a=await n.handleSubmitAsync(b.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),r=a==null?void 0:a.map(t=>{var l;return{id:t.id,tableData:(l=t==null?void 0:t.value)==null?void 0:l.tableData}});return r==null?void 0:r.map(t=>{var l;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(l=t==null?void 0:t.tableData)==null||l.forEach((p,d)=>{s[`a${d}`]=p}),s}else return{...t.tableData,id:t.id}})},S={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:c.value,name:""}]}]};o.watch(()=>g.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(c.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const k=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:_,handleItemDataChange:m,handleQueryChange:f,onButtonClick:C,onDoubleClick:h,pageData:c,queryFormData:D,structureId:u,tempDeptPageData:S},Symbol.toStringTag,{value:"Module"})),v={class:"role-wrapper"},T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...k}),r=n.useMenuState(),{activeMenuPath:t}=n.storeToRefs(r);return o.onMounted(async()=>{a.structureId=await n.getActivePageStructureId(t.value)}),(l,s)=>(o.openBlock(),o.createElementBlock("div",v,[o.createVNode(i.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./index-BTqL_HGH.cjs"),y=require("./index-Dc6Q0f3F.cjs"),n=require("./index-BfOeLrc4.cjs"),g=n.useModelComp(),{itemData:i}=n.storeToRefs(g),u=o.ref(0),m=o.ref([{label:"机构名称",value:"",name:"deptName"}]),D=e=>{console.log("handleQueryChange",e)},c=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),f=e=>{n.submitTableAsyncByVerify(e.singleContent,e.buttonName,u.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},k=async e=>{const a=await n.handleSubmitAsync(y.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var r;return{id:t.id,tableData:(r=t==null?void 0:t.value)==null?void 0:r.tableData}});return l==null?void 0:l.map(t=>{var r;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(r=t==null?void 0:t.tableData)==null||r.forEach((d,p)=>{s[`a${p}`]=d}),s}else return{...t.tableData,id:t.id}})},_={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:c.value,name:""}]}]};o.watch(()=>i.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(c.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:k,handleItemDataChange:f,handleQueryChange:D,onButtonClick:C,onDoubleClick:h,pageData:c,queryFormData:m,structureId:u,tempPostPageData:_},Symbol.toStringTag,{value:"Module"})),T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),l=n.useMenuState(),{activeMenuPath:t}=n.storeToRefs(l);return o.onMounted(async()=>{a.structureId=await n.getActivePageStructureId(t.value)}),(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(b.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
|