ss-component-new 1.3.113 → 1.3.114

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.
Files changed (112) hide show
  1. package/dist/{MTLLoader-BviVUPWi.cjs → MTLLoader-DcIQb_s3.cjs} +1 -1
  2. package/dist/{MTLLoader-y4B1LPuT.js → MTLLoader-iRxhJhIF.js} +34 -34
  3. package/dist/{OrbitControls-Cqppy3wb.cjs → OrbitControls-9REskSZo.cjs} +1 -1
  4. package/dist/{OrbitControls-390k2OM3.js → OrbitControls-PQJZejy_.js} +1 -1
  5. package/dist/{URDFLoader-C2tFq0lk.cjs → URDFLoader-BuABv8Tv.cjs} +1 -1
  6. package/dist/{URDFLoader-BlbEAIgR.js → URDFLoader-Buak6sTX.js} +222 -222
  7. package/dist/{animationData-DfDLy_M4.js → animationData-DJhhkfHw.js} +18 -18
  8. package/dist/{animationData-B1Jlpr7b.cjs → animationData-DiCszzEt.cjs} +1 -1
  9. package/dist/{array-DLBDgy0c.js → array-Be4dCwU5.js} +5 -5
  10. package/dist/{array-ymebeoXj.cjs → array-BsWbhqqH.cjs} +1 -1
  11. package/dist/{iconfont-cBX7rs7k.cjs → iconfont-CTi1EROO.cjs} +1 -1
  12. package/dist/{iconfont-BYa5tDrN.js → iconfont-Dkz3EhnP.js} +37 -37
  13. package/dist/{index-JJBPRJiI.cjs → index-1ATQxYGc.cjs} +1 -1
  14. package/dist/{index-UytjSmc1.cjs → index-69FRQH94.cjs} +1 -1
  15. package/dist/{index-4p0yEeUu.js → index-B2WIMplB.js} +1 -1
  16. package/dist/{index--hQDmx_x.js → index-B2pcDjLn.js} +2 -2
  17. package/dist/{index-pE8_wnGy.cjs → index-B9sLkbkE.cjs} +1 -1
  18. package/dist/{index-DdCyGfF9.cjs → index-BBrdsI9W.cjs} +1 -1
  19. package/dist/{index-DJoiySWn.cjs → index-BEpwtI2Q.cjs} +1 -1
  20. package/dist/{index-BXZlLwr6.cjs → index-Bd8mah99.cjs} +1 -1
  21. package/dist/{index-CXtLJs5O.js → index-BhJTGJWX.js} +27 -25
  22. package/dist/{index-C2yeqxnB.js → index-BhPhyI8f.js} +3 -3
  23. package/dist/{index-bbJ9Y_oO.js → index-BhU0rWGt.js} +3 -3
  24. package/dist/index-BhsUBoCD.cjs +1 -0
  25. package/dist/{index-DpirbR20.js → index-Bjm0BPhX.js} +12 -12
  26. package/dist/{index-BmlomuGZ.cjs → index-Bk8qPn0a.cjs} +1 -1
  27. package/dist/{index-BfNg0B2v.js → index-BsoWrBpk.js} +33 -33
  28. package/dist/{index-DpIzJvIr.cjs → index-BuaAY6T_.cjs} +1 -1
  29. package/dist/{index-DaX27S_0.js → index-BugYnyXc.js} +31 -31
  30. package/dist/{index-DMzBNabY.js → index-Bz_ZsUz_.js} +1 -1
  31. package/dist/{index-D6UEkdRE.cjs → index-C1HjpqRi.cjs} +1 -1
  32. package/dist/{index-CXkaTWVT.js → index-C3LqP4qY.js} +2 -2
  33. package/dist/{index-DovAfsVt.js → index-C4NqB81x.js} +2 -2
  34. package/dist/{index-D0e2ki27.js → index-CMMIt7u5.js} +63 -64
  35. package/dist/{index-DLK6UU4l.cjs → index-C_CGGyPH.cjs} +1 -1
  36. package/dist/{index-CYXsxIou.js → index-CdOlTQZV.js} +1 -1
  37. package/dist/{index-CVwsrCrZ.cjs → index-CdzQfZvY.cjs} +12 -12
  38. package/dist/{index-CaV5K0t4.js → index-Cn5h5u4P.js} +2408 -2005
  39. package/dist/{index-Cg30L32X.cjs → index-CpZcO0Vv.cjs} +3 -3
  40. package/dist/{index-BxmhgJuz.js → index-Cw0eFU8n.js} +1 -1
  41. package/dist/{index-CXlemLjY.js → index-D8c3Spt0.js} +1 -1
  42. package/dist/{index-Drd5_tIE.js → index-DHrzZlzn.js} +2 -2
  43. package/dist/{index-CEiscADV.cjs → index-DVhZbYfk.cjs} +1 -1
  44. package/dist/{index-CJiEoadC.js → index-Dar27fP9.js} +5 -5
  45. package/dist/index-DavcqNxP.cjs +1 -0
  46. package/dist/{index-DczQgLYk.cjs → index-DbAWw4as.cjs} +5 -5
  47. package/dist/{index-C6_KNp1M.cjs → index-DbnQZ22f.cjs} +1 -1
  48. package/dist/{index-CIoHy7Dg.js → index-Ddn_i6kt.js} +3 -3
  49. package/dist/index-DgBjwajW.js +456 -0
  50. package/dist/{index-SeEbZNcJ.cjs → index-DhFQdrUj.cjs} +1 -1
  51. package/dist/index-DiowIVZT.cjs +36 -0
  52. package/dist/{index-YwMY3Aya.js → index-DkgsdCot.js} +7 -7
  53. package/dist/{index-NdxRkX7O.js → index-Do9OpnU6.js} +316 -316
  54. package/dist/{index-DONt1we8.js → index-DpdFnDS3.js} +128 -78
  55. package/dist/{index-mabPGJUl.js → index-DqljyATQ.js} +1924 -1902
  56. package/dist/{index-B9g8IV0C.cjs → index-Dxxg-n__.cjs} +1 -1
  57. package/dist/{index-B22a33l9.js → index-DzSpBcvn.js} +1 -1
  58. package/dist/{index-BjAtlMRE.cjs → index-OS-qw-PB.cjs} +1 -1
  59. package/dist/{index-BVURmufk.js → index-RJF35C5O.js} +7 -7
  60. package/dist/index-SJHk-hwy.cjs +1 -0
  61. package/dist/index-TspEOSLc.cjs +1 -0
  62. package/dist/{index-DnJB2OQC.cjs → index-d198q36G.cjs} +1 -1
  63. package/dist/{index-CVySIgt4.cjs → index-eOampyhu.cjs} +1 -1
  64. package/dist/index-h4MsH7WN.cjs +1 -0
  65. package/dist/{index-DBdrmcqM.cjs → index-hSBc9pHD.cjs} +1 -1
  66. package/dist/index-kP2LUcSw.cjs +1 -0
  67. package/dist/{index-BIOl9xBh.js → index-p6bofhog.js} +2 -2
  68. package/dist/{index-D39f9FDD.cjs → index-rgLAMPYl.cjs} +1 -1
  69. package/dist/{index-8TMkI46d.js → index-tXc9-Dpz.js} +5 -5
  70. package/dist/{index-Cu75UXH1.js → index-wT_u7Sip.js} +2 -2
  71. package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Cp7jnXuw.js} +19045 -19450
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CuQjU1nB.cjs} +397 -397
  73. package/dist/{index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs → index.vue_vue_type_style_index_1_lang-AEdMqNIL.cjs} +2 -2
  74. package/dist/{index.vue_vue_type_style_index_1_lang-B88Ne666.js → index.vue_vue_type_style_index_1_lang-DzaXkSeA.js} +134 -134
  75. package/dist/{main-b1OREkjD.js → main-BuHWLsd1.js} +4 -4
  76. package/dist/{main-ChE0Sl1V.cjs → main-CvEytDJd.cjs} +1 -1
  77. package/dist/{menuIndex-QovY60sY.cjs → menuIndex-7DwfwtqQ.cjs} +1 -1
  78. package/dist/{menuIndex-BlBV6RY8.js → menuIndex-BpEQqtCU.js} +1 -1
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +1 -1
  81. package/dist/ss-component.js +10 -10
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +12 -12
  84. package/dist/{threeModel-BTiM-_yY.cjs → threeModel-BBPdmBqX.cjs} +1 -1
  85. package/dist/{threeModel-CUViA1pV.js → threeModel-qPRHxt0O.js} +62 -62
  86. package/dist/{threePreview-fEcukbqP.js → threePreview-BNspl3PQ.js} +102 -102
  87. package/dist/{threePreview-DiDVwpOj.cjs → threePreview-BQfgRzYJ.cjs} +1 -1
  88. package/dist/{threeSceneView-CxhlNkvh.cjs → threeSceneView-BTG6qz5g.cjs} +1 -1
  89. package/dist/{threeSceneView-BsxoPqAA.js → threeSceneView-Dkw-3Lex.js} +133 -133
  90. package/dist/{threeSceneViewForCPMPIP-CCTwBiPg.js → threeSceneViewForCPMPIP-BUGbgcyW.js} +8 -8
  91. package/dist/{threeSceneViewForCPMPIP-Bq9A66VO.cjs → threeSceneViewForCPMPIP-DZtGuJLA.cjs} +1 -1
  92. package/dist/{threeTrackPathView-D7zto1f1.cjs → threeTrackPathView-BMRciFya.cjs} +1 -1
  93. package/dist/{threeTrackPathView-DbqptnRu.js → threeTrackPathView-D5aLq-PQ.js} +94 -94
  94. package/dist/{threeViewerHost-B9vgyTcM.js → threeViewerHost-B5ajpfKi.js} +17 -17
  95. package/dist/{threeViewerHost-Dhc4vxhv.cjs → threeViewerHost-DZgqSUXb.cjs} +1 -1
  96. package/dist/{urdfTree-CfUfqc73.cjs → urdfTree-CXoYn4F5.cjs} +1 -1
  97. package/dist/{urdfTree-B9gafrR3.js → urdfTree-DVRrRAEg.js} +1 -1
  98. package/dist/{workpieceTreePanel-DzEBifIL.cjs → workpieceTreePanel--Lz2aEfm.cjs} +1 -1
  99. package/dist/{workpieceTreePanel-CoUx6lll.js → workpieceTreePanel-myjwdWI9.js} +81 -81
  100. package/package.json +1 -1
  101. package/dist/index-8ddlDjHL.js +0 -455
  102. package/dist/index-BLGT4-wX.cjs +0 -1
  103. package/dist/index-CTGhzBZx.cjs +0 -1
  104. package/dist/index-D7Ao1GyZ.cjs +0 -1
  105. package/dist/index-DUqjjluX.cjs +0 -1
  106. package/dist/index-NtRUaVwS.cjs +0 -1
  107. package/dist/index-aMvM6ti6.cjs +0 -1
  108. package/dist/index-kutaq0AT.cjs +0 -36
  109. package/dist/obj/model.mtl +0 -42
  110. package/dist/obj/model.obj +0 -26110
  111. package/public/obj/model.mtl +0 -42
  112. package/public/obj/model.obj +0 -26110
@@ -1,455 +0,0 @@
1
- import { createElementBlock as V, openBlock as K, createElementVNode as l, renderSlot as $, defineComponent as O, ref as S, resolveComponent as E, createVNode as b, withCtx as r, unref as F, reactive as q, watch as j, onBeforeUnmount as G, onMounted as J, createCommentVNode as Q, toDisplayString as R, createTextVNode as B } from "vue";
2
- import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { b as P, p as D, s as X } from "./index-CaV5K0t4.js";
4
- import { v as Y } from "./index-V_SKEMp8.js";
5
- import { E as H, a as Z } from "./index-WLdc1goT.js";
6
- import { useRouter as ee } from "vue-router";
7
- import { v as te } from "./index-CXlemLjY.js";
8
- import { l as ae, a as oe } from "./index-DoHjMY5d.js";
9
- const se = {}, ne = { class: "left-wrap" }, ie = { class: "left-bg" };
10
- function ce(C, p) {
11
- return K(), V("div", ne, [
12
- l("div", ie, [
13
- $(C.$slots, "img", {}, void 0, !0)
14
- ])
15
- ]);
16
- }
17
- const le = /* @__PURE__ */ M(se, [["render", ce], ["__scopeId", "data-v-9b7ee6c9"]]), U = {
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__ */ O({
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: p }) {
34
- const t = S(U.ACCOUNT), e = p, m = () => {
35
- e("clickLogin", t.value);
36
- }, y = (o) => {
37
- e("handleTabChange", o);
38
- };
39
- return (o, i) => {
40
- const s = E("el-button"), f = E("el-tab-pane"), d = E("el-tabs");
41
- return K(), V("div", re, [
42
- b(d, {
43
- modelValue: t.value,
44
- "onUpdate:modelValue": i[0] || (i[0] = (u) => t.value = u),
45
- class: "right-tabs",
46
- onTabChange: y
47
- }, {
48
- default: r(() => [
49
- b(f, {
50
- name: F(U).ACCOUNT
51
- }, {
52
- label: r(() => [
53
- $(o.$slots, "tabLabel1", {}, void 0, !0)
54
- ]),
55
- default: r(() => [
56
- l("div", de, [
57
- $(o.$slots, "tabContent1", {}, void 0, !0)
58
- ]),
59
- l("div", {
60
- class: "tab-button special",
61
- onClick: m
62
- }, [
63
- b(s, { loading: C.loading }, {
64
- default: r(() => [
65
- $(o.$slots, "tabButton1", {}, void 0, !0)
66
- ]),
67
- _: 3
68
- }, 8, ["loading"])
69
- ]),
70
- l("div", ue, [
71
- $(o.$slots, "tabTips1", {}, void 0, !0)
72
- ])
73
- ]),
74
- _: 3
75
- }, 8, ["name"]),
76
- b(f, {
77
- name: F(U).FACE
78
- }, {
79
- label: r(() => [
80
- $(o.$slots, "tabLabel2", {}, void 0, !0)
81
- ]),
82
- default: r(() => [
83
- l("div", me, [
84
- $(o.$slots, "tabContent2", {}, void 0, !0)
85
- ]),
86
- l("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__ */ M(ge, [["__scopeId", "data-v-8b1962f0"]]), _e = { class: "account-wrap" }, ve = /* @__PURE__ */ O({
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: p }) {
112
- const t = C, e = q({
113
- account: "",
114
- password: ""
115
- }), m = q({
116
- account: [
117
- { required: !0, message: "请输入账号", trigger: "blur" }
118
- ],
119
- password: [
120
- { required: !0, message: "请输入密码", trigger: "blur" }
121
- ]
122
- }), y = S(null), o = p;
123
- return j(() => t.isClickLogin, (i) => {
124
- var s;
125
- i && (t == null ? void 0 : t.activeTabName) === "account" && ((s = y.value) == null || s.validate((f) => {
126
- var d;
127
- for (let u in e)
128
- e.hasOwnProperty(u) && (e[u] = (d = e[u]) == null ? void 0 : d.trim());
129
- o("handleLoginFormChange", f, f ? e : null);
130
- }));
131
- }, {
132
- immediate: !0
133
- }), j(() => t.activeTabName, (i) => {
134
- var s;
135
- i === "account" && ((s = y.value) == null || s.resetFields());
136
- }), (i, s) => {
137
- const f = E("svg-icon"), d = E("el-input"), u = E("el-form-item"), T = E("el-form");
138
- return K(), V("div", _e, [
139
- b(T, {
140
- model: e,
141
- rules: m,
142
- ref_key: "formRef",
143
- ref: y
144
- }, {
145
- default: r(() => [
146
- b(u, {
147
- label: "",
148
- prop: "account"
149
- }, {
150
- default: r(() => [
151
- b(d, {
152
- class: "account-input",
153
- modelValue: e.account,
154
- "onUpdate:modelValue": s[0] || (s[0] = (a) => e.account = a),
155
- placeholder: "请输入账号",
156
- clearable: ""
157
- }, {
158
- prefix: r(() => [
159
- b(f, {
160
- name: "account",
161
- style: { width: "15px", height: "15px" }
162
- })
163
- ]),
164
- _: 1
165
- }, 8, ["modelValue"])
166
- ]),
167
- _: 1
168
- }),
169
- b(u, {
170
- label: "",
171
- prop: "password"
172
- }, {
173
- default: r(() => [
174
- b(d, {
175
- class: "account-input",
176
- modelValue: e.password,
177
- "onUpdate:modelValue": s[1] || (s[1] = (a) => e.password = a),
178
- type: "password",
179
- placeholder: "请输入密码",
180
- "show-password": "",
181
- clearable: ""
182
- }, {
183
- prefix: r(() => [
184
- b(f, {
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
- }), be = /* @__PURE__ */ M(ve, [["__scopeId", "data-v-48037c0f"]]), he = { class: "account-wrap" }, ye = { class: "video-wrap" }, Ce = /* @__PURE__ */ O({
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: p }) {
209
- const t = C, e = p;
210
- P(D);
211
- const m = S(null), y = S(null);
212
- let o = !1, i = null;
213
- const s = async (a) => {
214
- if (!a)
215
- return;
216
- const n = new FormData();
217
- n.set("file", a), t.systemKey && n.set("systemKey", t.systemKey), console.log("Face Recognition", t.systemKey);
218
- const L = await Y(n), { data: v } = L || {}, { user_name: w, password: N, layer: c } = (v == null ? void 0 : v.data) || {}, g = v == null ? void 0 : v.msg;
219
- if (!w) {
220
- H.warning(g || "识别失败,请重新识别!");
221
- return;
222
- }
223
- e("handleLoginFormChange", !0, {
224
- account: w,
225
- password: N
226
- });
227
- }, f = () => {
228
- if (!y.value || !m.value)
229
- return;
230
- const a = y.value, n = a.getContext("2d"), L = m.value;
231
- a.width = 200, a.height = 200;
232
- const v = L.videoWidth || 640, w = L.videoHeight || 480, N = Math.min(200 / v, 200 / w), c = v * N, g = w * N, h = (200 - c) / 2, _ = (200 - g) / 2;
233
- n == null || n.drawImage(L, 0, 0, v, w, h, _, c, g), a.toBlob((k) => {
234
- if (k) {
235
- const A = new File([k], "face.png", { type: "image/png" });
236
- s(A);
237
- }
238
- }, "image/png");
239
- }, d = async () => {
240
- if (!m.value || o)
241
- return;
242
- const a = m.value;
243
- try {
244
- if (i = await navigator.mediaDevices.getUserMedia({
245
- video: { facingMode: "user" },
246
- // 前置;后置用 'environment'
247
- audio: !1
248
- }), a) {
249
- const n = a;
250
- n.srcObject = i, o = !0;
251
- }
252
- } catch {
253
- H.warning("摄像头启动失败");
254
- }
255
- };
256
- function u(a) {
257
- if (a && (a.getTracks().forEach((n) => n.stop()), m.value)) {
258
- const n = m.value;
259
- n.srcObject = null;
260
- }
261
- }
262
- const T = () => {
263
- u(i), o = !1;
264
- };
265
- return j(() => t.activeTabName, (a) => {
266
- if (a !== U.FACE) {
267
- T();
268
- return;
269
- }
270
- if (a === U.FACE && !o) {
271
- d();
272
- return;
273
- }
274
- }), G(() => {
275
- T();
276
- }), (a, n) => (K(), V("div", he, [
277
- l("div", ye, [
278
- l("video", {
279
- class: "face-video",
280
- ref_key: "videoRef",
281
- ref: m,
282
- id: "v",
283
- autoplay: "",
284
- playsinline: ""
285
- }, null, 512)
286
- ]),
287
- l("button", {
288
- class: "face-screenshot",
289
- onClick: f
290
- }, "人脸识别"),
291
- l("canvas", {
292
- ref_key: "canvasRef",
293
- ref: y,
294
- id: "canvas"
295
- }, null, 512)
296
- ]));
297
- }
298
- }), we = /* @__PURE__ */ M(Ce, [["__scopeId", "data-v-0efc65bd"]]), W = P(D), Le = async (C, p) => {
299
- var m, y, o, i, s, f, d, u, T, a, n, L, v, w, N, c, g, h;
300
- let t = Object.values(C), e = await ae({
301
- userName: (m = t == null ? void 0 : t[0]) == null ? void 0 : m.trim(),
302
- password: (y = t == null ? void 0 : t[1]) == null ? void 0 : y.trim()
303
- });
304
- if (((o = e == null ? void 0 : e.data) == null ? void 0 : o.status) === 200 && ((s = (i = e == null ? void 0 : e.data) == null ? void 0 : i.result) == null ? void 0 : s.length) <= 0 && (e = await oe({
305
- userName: (f = t == null ? void 0 : t[0]) == null ? void 0 : f.trim(),
306
- password: (d = t == null ? void 0 : t[1]) == null ? void 0 : d.trim(),
307
- path: "系统管理/用户管理",
308
- platId: p
309
- // platId: '785771438178373'
310
- })), ((u = e == null ? void 0 : e.data) == null ? void 0 : u.status) === 200 && ((a = (T = e == null ? void 0 : e.data) == null ? void 0 : T.result) == null ? void 0 : a.length) > 0) {
311
- sessionStorage.setItem("systemKey", p && p !== "" ? p : (v = (L = (n = e == null ? void 0 : e.data) == null ? void 0 : n.result) == null ? void 0 : L[0]) == null ? void 0 : v.plat_id);
312
- let _ = (N = (w = e == null ? void 0 : e.data) == null ? void 0 : w.result) == null ? void 0 : N[0];
313
- return _.plat_id = _.plat_id ?? p, W.setLoginUserInfo(_), W.setSystemKey(p && p !== "" ? p : (h = (g = (c = e == null ? void 0 : e.data) == null ? void 0 : c.result) == null ? void 0 : g[0]) == null ? void 0 : h.plat_id), !0;
314
- } else
315
- return H.error("输入的密码错误,请重新输入"), !1;
316
- }, Te = { class: "login-wrap" }, Ne = { class: "login-body" }, ke = { class: "login-body-item left" }, $e = { class: "title" }, Fe = { class: "first-level" }, Se = {
317
- key: 0,
318
- class: "logo"
319
- }, Ae = ["src"], Re = { class: "english-name" }, Ee = { class: "login-body-item right" }, Ve = /* @__PURE__ */ O({
320
- __name: "index",
321
- props: {
322
- oldSystemKey: {}
323
- },
324
- emits: ["change"],
325
- setup(C, { emit: p }) {
326
- const t = C, e = ee(), m = P(D), { systemKey: y, systemInfo: o, loginUserInfo: i } = X(m), s = S({
327
- // sysCTitle: 'INSOFWORKS',
328
- sysCTitle: "",
329
- sysETitle: "",
330
- // sysETitle: 'Dynamic Test Information System',
331
- loginTitle: "账户密码登录",
332
- tabs: [
333
- {
334
- name: "密码登录",
335
- btnLabel: "登录",
336
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
337
- },
338
- {
339
- name: "人脸识别",
340
- btnLabel: "人脸识别",
341
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
342
- },
343
- {
344
- name: "刷卡登录",
345
- btnLabel: "登录",
346
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
347
- }
348
- ]
349
- }), f = S("account"), d = S(!1), u = S(!1), T = () => {
350
- d.value = !0;
351
- }, a = (c, g) => {
352
- d.value = !1, c && v(g);
353
- }, n = async () => (sessionStorage.setItem("loginToken", "111"), !0), L = async () => {
354
- var c, g, h;
355
- try {
356
- const _ = await Z.post("http://139.196.154.85:20024/api/sysAuth/login", {
357
- account: "superadmin",
358
- password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
359
- codeId: 0,
360
- code: ""
361
- });
362
- return ((c = _ == null ? void 0 : _.data) == null ? void 0 : c.code) === 200 && sessionStorage.setItem("magicToken", (h = (g = _.data) == null ? void 0 : g.result) == null ? void 0 : h.accessToken), !0;
363
- } catch {
364
- return !0;
365
- }
366
- };
367
- J(async () => {
368
- await n();
369
- });
370
- const v = async (c) => {
371
- var k, A, x, I;
372
- u.value = !0;
373
- let g = [Le(c, t.oldSystemKey), n(), L()];
374
- const h = await Promise.all(g);
375
- (h == null ? void 0 : h.every((z) => z)) ? (await te(), e.push("/"), m.setLogRecordAsync({
376
- type: "登录",
377
- data: {
378
- account: ((k = i.value) == null ? void 0 : k.account) ?? ((A = i.value) == null ? void 0 : A.账号),
379
- userName: ((x = i.value) == null ? void 0 : x.姓名) || ((I = i.value) == null ? void 0 : I.userName) || "未知"
380
- }
381
- }, "/login", "login")) : u.value = !1;
382
- }, w = (c) => {
383
- f.value = c, d.value = !1, u.value = !1;
384
- }, N = (c) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(c);
385
- return (c, g) => (K(), V("div", Te, [
386
- l("div", Ne, [
387
- l("div", ke, [
388
- b(le, { class: "login-left-bg" }, {
389
- img: r(() => {
390
- var h, _, k, A, x, I;
391
- return [
392
- l("div", $e, [
393
- l("div", Fe, [
394
- (h = F(o)) != null && h.logo ? (K(), V("div", Se, [
395
- l("img", {
396
- src: (_ = F(o)) == null ? void 0 : _.logo,
397
- alt: ""
398
- }, null, 8, Ae)
399
- ])) : Q("", !0),
400
- l("div", Re, R(((k = F(o)) == null ? void 0 : k.EnglishName) || "INSOFWORKS"), 1)
401
- ]),
402
- l("div", null, R((A = F(o)) != null && A.chineseName && N((x = F(o)) == null ? void 0 : x.chineseName) ? (I = F(o)) == null ? void 0 : I.chineseName : "工业软件集成开发平台"), 1)
403
- ]),
404
- g[0] || (g[0] = l("div", { class: "divide-line" }, null, -1))
405
- ];
406
- }),
407
- _: 1
408
- })
409
- ]),
410
- l("div", Ee, [
411
- b(pe, {
412
- loading: u.value,
413
- onClickLogin: T,
414
- onHandleTabChange: w
415
- }, {
416
- title: r(() => [
417
- B(R(s.value.loginTitle), 1)
418
- ]),
419
- tabLabel1: r(() => [
420
- B(R(s.value.tabs[0].name), 1)
421
- ]),
422
- tabContent1: r(() => [
423
- b(be, {
424
- activeTabName: f.value,
425
- isClickLogin: d.value,
426
- onHandleLoginFormChange: a
427
- }, null, 8, ["activeTabName", "isClickLogin"])
428
- ]),
429
- tabButton1: r(() => [
430
- B(R(s.value.tabs[0].btnLabel), 1)
431
- ]),
432
- tabLabel2: r(() => [
433
- B(R(s.value.tabs[1].name), 1)
434
- ]),
435
- tabContent2: r(() => [
436
- b(we, {
437
- systemKey: c.oldSystemKey,
438
- activeTabName: f.value,
439
- isClickLogin: d.value,
440
- onHandleLoginFormChange: a
441
- }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
442
- ]),
443
- tabButton2: r(() => [
444
- B(R(s.value.tabs[1].btnLabel), 1)
445
- ]),
446
- _: 1
447
- }, 8, ["loading"])
448
- ])
449
- ])
450
- ]));
451
- }
452
- }), He = /* @__PURE__ */ M(Ve, [["__scopeId", "data-v-d34b3da5"]]);
453
- export {
454
- He as default
455
- };