ss-component-new 1.3.299 → 1.3.301

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 (79) hide show
  1. package/dist/{MTLLoader-C6rfxQ-U.cjs → MTLLoader-CLDHKsuZ.cjs} +1 -1
  2. package/dist/{MTLLoader-QOhYCFfg.js → MTLLoader-RDE-ZA7R.js} +1 -1
  3. package/dist/{OrbitControls-BYkzMsSX.js → OrbitControls-BMOJWSL-.js} +1 -1
  4. package/dist/{OrbitControls-stRsVWeF.cjs → OrbitControls-BdotT7Cg.cjs} +1 -1
  5. package/dist/{URDFLoader-C51mjCMr.cjs → URDFLoader-Y4l_xAEg.cjs} +1 -1
  6. package/dist/{URDFLoader-0Z7i50uS.js → URDFLoader-emHFNLHl.js} +2 -2
  7. package/dist/{animationData-B2ukhquH.js → animationData-BHoj-1LD.js} +1 -1
  8. package/dist/{animationData-2Gchlfns.cjs → animationData-CQdthirF.cjs} +1 -1
  9. package/dist/{array-DqQ10pgf.js → array-Cio8S2Pj.js} +2 -2
  10. package/dist/{array-T9nqLG8-.cjs → array-P5J-DgMu.cjs} +1 -1
  11. package/dist/{iconfont-T5Fea0KO.js → iconfont-Cg9QlUoy.js} +2 -2
  12. package/dist/{iconfont-B3tjmizt.cjs → iconfont-Cp7o4QAt.cjs} +1 -1
  13. package/dist/index-5rsqoznF.cjs +1 -0
  14. package/dist/{index-BfuVz3K9.js → index-6teHdmr0.js} +1 -1
  15. package/dist/{index-CcukUQFg.cjs → index-8VjHjOci.cjs} +1 -1
  16. package/dist/{index-DEyzTMWb.js → index-B47-vpvz.js} +8 -8
  17. package/dist/{index-CNNvnXL-.cjs → index-BGYRY71Y.cjs} +1 -1
  18. package/dist/{index-DsrGHWEC.js → index-BREFniPq.js} +2 -2
  19. package/dist/{index-B7SicFCg.js → index-BS23fm8I.js} +4 -4
  20. package/dist/{index-CgJcqeX6.cjs → index-BWfqrsaY.cjs} +1 -1
  21. package/dist/{index-GO1Lz7Zt.cjs → index-BdGKsSb2.cjs} +1 -1
  22. package/dist/{index-D_gRgix8.cjs → index-BohJ0pIH.cjs} +1 -1
  23. package/dist/index-Br8-OQ_d.js +679 -0
  24. package/dist/index-BwyBfUCz.cjs +1 -0
  25. package/dist/{index-CBb-zQHx.cjs → index-C3RYFBPK.cjs} +1 -1
  26. package/dist/{index-C7GJL6z-.js → index-CPz5Q62a.js} +1 -1
  27. package/dist/{index-oQh1Uggj.js → index-CagHv4za.js} +1 -1
  28. package/dist/{index-DG_ZoAwM.cjs → index-Cro-IzQv.cjs} +1 -1
  29. package/dist/{index-CBcfU3m6.cjs → index-CtBrDQiG.cjs} +1 -1
  30. package/dist/{index-q95IIhgh.js → index-CwZs4rIC.js} +3 -3
  31. package/dist/{index-D19XK7TO.cjs → index-D1vYje_p.cjs} +1 -1
  32. package/dist/{index-Bn7knDwT.js → index-D58LRV4j.js} +3 -3
  33. package/dist/{index-BgfmfNPA.js → index-D6yEF8Ru.js} +11 -11
  34. package/dist/{index-mssdamNL.cjs → index-DOCsP0-B.cjs} +2 -2
  35. package/dist/{index-Dai4JO2O.js → index-DXKzYxhw.js} +1 -1
  36. package/dist/{index-DenEnDJU.cjs → index-Dkvr_yZQ.cjs} +1 -1
  37. package/dist/{index-xffrXm5v.js → index-DmMl7DkC.js} +2 -2
  38. package/dist/{index-fUAdrzUM.js → index-DoQ2DjBA.js} +1 -1
  39. package/dist/{index-4EJ5L5Xz.cjs → index-DsIkRvPS.cjs} +1 -1
  40. package/dist/{index-DoKZdFff.js → index-DsUMFNuA.js} +3 -3
  41. package/dist/{index-ejX66qtQ.cjs → index-H8n2KFLX.cjs} +1 -1
  42. package/dist/{index-B7uNKUJO.cjs → index-PAFvx19H.cjs} +1 -1
  43. package/dist/{index-Ck4FzhK5.js → index-d3eamXNt.js} +1 -1
  44. package/dist/{index-_-BYjVt0.js → index-rjTawDw6.js} +1 -1
  45. package/dist/{index-seYmaZzj.js → index-tT9c2s2F.js} +37 -46
  46. package/dist/{index-DRwDJR5N.cjs → index-yXqsfBiR.cjs} +1 -1
  47. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DLhSjOxx.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dmtv1jQ3.js} +1839 -1844
  48. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-6F-e2GJs.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-_g-HLUBE.cjs} +61 -61
  49. package/dist/{main-lz6P4Grc.js → main-C5mcsbRd.js} +2 -2
  50. package/dist/{main-BZlQ_ZJE.cjs → main-D8ovrBi2.cjs} +1 -1
  51. package/dist/ss-component.cjs +1 -1
  52. package/dist/ss-component.css +1 -1
  53. package/dist/ss-component.js +9 -9
  54. package/dist/ss-component2.cjs +1 -1
  55. package/dist/ss-component2.js +9 -9
  56. package/dist/{threeModel-CwmK2TwD.js → threeModel-3JirGS2j.js} +3 -3
  57. package/dist/{threeModel-B8eFQDHt.cjs → threeModel-D3UmXNUb.cjs} +1 -1
  58. package/dist/{threePreview-DQX5gazP.cjs → threePreview-_Pa_rEAW.cjs} +1 -1
  59. package/dist/{threePreview-DtTo1E4j.js → threePreview-diIAbbKf.js} +3 -3
  60. package/dist/{threeSceneView-DTG1bI4T.cjs → threeSceneView-B5pQXPj7.cjs} +1 -1
  61. package/dist/{threeSceneView-Cqbj-LVO.js → threeSceneView-DINMkVVz.js} +8 -8
  62. package/dist/{threeSceneViewForCPMPIP-yD2zYzyp.js → threeSceneViewForCPMPIP-DqzjXWdH.js} +7 -7
  63. package/dist/{threeSceneViewForCPMPIP-CbvF6hkZ.cjs → threeSceneViewForCPMPIP-k5RanDHf.cjs} +1 -1
  64. package/dist/{threeTrackPathView-CMukJRgd.js → threeTrackPathView-CmGiZRgE.js} +3 -3
  65. package/dist/{threeTrackPathView-yar3btno.cjs → threeTrackPathView-DFuI3kE-.cjs} +1 -1
  66. package/dist/{threeViewerHost-DDYA5LuC.js → threeViewerHost-B-HsQ66C.js} +2 -2
  67. package/dist/{threeViewerHost-tSqOUmM_.cjs → threeViewerHost-msa4WUeH.cjs} +1 -1
  68. package/dist/{urdfTree-D7WPM5fm.cjs → urdfTree-CeTWjJ2Y.cjs} +1 -1
  69. package/dist/{urdfTree-Cfw6km7X.js → urdfTree-DwmC3WSP.js} +1 -1
  70. package/dist/{workpieceTreePanel-rK0hhgpD.cjs → workpieceTreePanel-BjTo7Vbi.cjs} +1 -1
  71. package/dist/{workpieceTreePanel-D3uYkSze.js → workpieceTreePanel-MbzDAYJO.js} +4 -4
  72. package/package.json +1 -1
  73. package/dist/index-BYvr8bra.js +0 -481
  74. package/dist/index-Bb5jvp_6.cjs +0 -1
  75. package/dist/index-Dw_T3WYA.cjs +0 -1
  76. package/dist/obj/model.mtl +0 -42
  77. package/dist/obj/model.obj +0 -26110
  78. package/public/obj/model.mtl +0 -42
  79. package/public/obj/model.obj +0 -26110
@@ -1,481 +0,0 @@
1
- import { createElementBlock as R, openBlock as V, createElementVNode as c, renderSlot as T, defineComponent as K, ref as F, resolveComponent as E, createVNode as b, withCtx as r, unref as U, reactive as Y, watch as j, onBeforeUnmount as ee, computed as te, onMounted as ae, createCommentVNode as oe, toDisplayString as A, createTextVNode as M } from "vue";
2
- import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { b as P, p as q, l as ne, d as se, u as ie, s as le, e as ce } from "./menu-BMAZOS2j.js";
4
- import "./index-CEwg_zdl.js";
5
- import { u as re } from "./index-CqiskI7e.js";
6
- import { E as H } from "./request-CoGtW0Ux.js";
7
- import { useRouter as de } from "vue-router";
8
- import { u as ue, l as me, v as ge } from "./index-CkXAOjdK.js";
9
- const fe = {}, pe = { class: "left-wrap" }, _e = { class: "left-bg" };
10
- function ve(y, m) {
11
- return V(), R("div", pe, [
12
- c("div", _e, [
13
- T(y.$slots, "img", {}, void 0, !0)
14
- ])
15
- ]);
16
- }
17
- const be = /* @__PURE__ */ B(fe, [["render", ve], ["__scopeId", "data-v-9b7ee6c9"]]), x = {
18
- ACCOUNT: "account",
19
- FACE: "face"
20
- }, he = { class: "right-wrap" }, ye = { class: "tab-content" }, Ce = { class: "tab-tips" }, we = { class: "tab-content" }, Le = { class: "tab-tips" }, Te = /* @__PURE__ */ K({
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(y, { emit: m }) {
34
- const t = F(x.ACCOUNT), e = m, C = () => {
35
- e("clickLogin", t.value);
36
- }, d = (s) => {
37
- e("handleTabChange", s);
38
- };
39
- return (s, g) => {
40
- const o = E("el-button"), i = E("el-tab-pane"), p = E("el-tabs");
41
- return V(), R("div", he, [
42
- b(p, {
43
- modelValue: t.value,
44
- "onUpdate:modelValue": g[0] || (g[0] = (l) => t.value = l),
45
- class: "right-tabs",
46
- onTabChange: d
47
- }, {
48
- default: r(() => [
49
- b(i, {
50
- name: U(x).ACCOUNT
51
- }, {
52
- label: r(() => [
53
- T(s.$slots, "tabLabel1", {}, void 0, !0)
54
- ]),
55
- default: r(() => [
56
- c("div", ye, [
57
- T(s.$slots, "tabContent1", {}, void 0, !0)
58
- ]),
59
- c("div", {
60
- class: "tab-button special",
61
- onClick: C
62
- }, [
63
- b(o, { loading: y.loading }, {
64
- default: r(() => [
65
- T(s.$slots, "tabButton1", {}, void 0, !0)
66
- ]),
67
- _: 3
68
- }, 8, ["loading"])
69
- ]),
70
- c("div", Ce, [
71
- T(s.$slots, "tabTips1", {}, void 0, !0)
72
- ])
73
- ]),
74
- _: 3
75
- }, 8, ["name"]),
76
- b(i, {
77
- name: U(x).FACE
78
- }, {
79
- label: r(() => [
80
- T(s.$slots, "tabLabel2", {}, void 0, !0)
81
- ]),
82
- default: r(() => [
83
- c("div", we, [
84
- T(s.$slots, "tabContent2", {}, void 0, !0)
85
- ]),
86
- c("div", Le, [
87
- T(s.$slots, "tabTips2", {}, void 0, !0)
88
- ])
89
- ]),
90
- _: 3
91
- }, 8, ["name"])
92
- ]),
93
- _: 3
94
- }, 8, ["modelValue"])
95
- ]);
96
- };
97
- }
98
- }), ke = /* @__PURE__ */ B(Te, [["__scopeId", "data-v-8b1962f0"]]), Ne = { class: "account-wrap" }, $e = /* @__PURE__ */ K({
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(y, { emit: m }) {
112
- const t = y, e = Y({
113
- account: "",
114
- password: ""
115
- }), C = Y({
116
- account: [
117
- { required: !0, message: "请输入账号", trigger: "blur" }
118
- ],
119
- password: [
120
- { required: !0, message: "请输入密码", trigger: "blur" }
121
- ]
122
- }), d = F(null), s = m;
123
- return j(() => t.isClickLogin, (g) => {
124
- var o;
125
- g && (t == null ? void 0 : t.activeTabName) === "account" && ((o = d.value) == null || o.validate((i) => {
126
- var p;
127
- for (let l in e)
128
- e.hasOwnProperty(l) && (e[l] = (p = e[l]) == null ? void 0 : p.trim());
129
- s("handleLoginFormChange", i, i ? e : null);
130
- }));
131
- }, {
132
- immediate: !0
133
- }), j(() => t.activeTabName, (g) => {
134
- var o;
135
- g === "account" && ((o = d.value) == null || o.resetFields());
136
- }), (g, o) => {
137
- const i = E("svg-icon"), p = E("el-input"), l = E("el-form-item"), w = E("el-form");
138
- return V(), R("div", Ne, [
139
- b(w, {
140
- model: e,
141
- rules: C,
142
- ref_key: "formRef",
143
- ref: d
144
- }, {
145
- default: r(() => [
146
- b(l, {
147
- label: "",
148
- prop: "account"
149
- }, {
150
- default: r(() => [
151
- b(p, {
152
- class: "account-input",
153
- modelValue: e.account,
154
- "onUpdate:modelValue": o[0] || (o[0] = (_) => e.account = _),
155
- placeholder: "请输入账号",
156
- clearable: ""
157
- }, {
158
- prefix: r(() => [
159
- b(i, {
160
- name: "account",
161
- style: { width: "15px", height: "15px" }
162
- })
163
- ]),
164
- _: 1
165
- }, 8, ["modelValue"])
166
- ]),
167
- _: 1
168
- }),
169
- b(l, {
170
- label: "",
171
- prop: "password"
172
- }, {
173
- default: r(() => [
174
- b(p, {
175
- class: "account-input",
176
- modelValue: e.password,
177
- "onUpdate:modelValue": o[1] || (o[1] = (_) => e.password = _),
178
- type: "password",
179
- placeholder: "请输入密码",
180
- "show-password": "",
181
- clearable: ""
182
- }, {
183
- prefix: r(() => [
184
- b(i, {
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
- }), Fe = /* @__PURE__ */ B($e, [["__scopeId", "data-v-48037c0f"]]), Se = { class: "account-wrap" }, Ae = { class: "video-wrap" }, Ee = /* @__PURE__ */ K({
201
- __name: "index",
202
- props: {
203
- systemKey: { default: "" },
204
- activeTabName: { default: "" },
205
- isClickLogin: { type: Boolean, default: !1 }
206
- },
207
- emits: ["handleLoginFormChange"],
208
- setup(y, { emit: m }) {
209
- const t = y, e = m;
210
- P(q);
211
- const { initVerify: C } = re(), d = F(null), s = F(null);
212
- let g = !1, o = null;
213
- const i = async (a) => {
214
- if (!a)
215
- return;
216
- const u = await C(a), { data: f } = u || {}, { account: h, password: L } = (f == null ? void 0 : f.data) || {}, v = f == null ? void 0 : f.msg;
217
- if (!h) {
218
- H.warning(v || "识别失败,请重新识别!");
219
- return;
220
- }
221
- e("handleLoginFormChange", !0, {
222
- account: h,
223
- password: L
224
- });
225
- }, p = () => {
226
- if (!s.value || !d.value)
227
- return;
228
- const a = s.value, u = a.getContext("2d"), f = d.value;
229
- a.width = 200, a.height = 200;
230
- const h = f.videoWidth || 640, L = f.videoHeight || 480, v = Math.min(200 / h, 200 / L), k = h * v, n = L * v, N = (200 - k) / 2, $ = (200 - n) / 2;
231
- u == null || u.drawImage(f, 0, 0, h, L, N, $, k, n), a.toBlob((S) => {
232
- if (S) {
233
- const O = new File([S], "face.png", { type: "image/png" });
234
- i(O);
235
- }
236
- }, "image/png");
237
- }, l = async () => {
238
- if (!d.value || g)
239
- return;
240
- const a = d.value;
241
- try {
242
- if (o = await navigator.mediaDevices.getUserMedia({
243
- video: { facingMode: "user" },
244
- // 前置;后置用 'environment'
245
- audio: !1
246
- }), a) {
247
- const u = a;
248
- u.srcObject = o, g = !0;
249
- }
250
- } catch {
251
- H.warning("摄像头启动失败");
252
- }
253
- };
254
- function w(a) {
255
- if (a && (a.getTracks().forEach((u) => u.stop()), d.value)) {
256
- const u = d.value;
257
- u.srcObject = null;
258
- }
259
- }
260
- const _ = () => {
261
- w(o), g = !1;
262
- };
263
- return j(() => t.activeTabName, (a) => {
264
- if (a !== x.FACE) {
265
- _();
266
- return;
267
- }
268
- if (a === x.FACE && !g) {
269
- l();
270
- return;
271
- }
272
- }), ee(() => {
273
- _();
274
- }), (a, u) => (V(), R("div", Se, [
275
- c("div", Ae, [
276
- c("video", {
277
- class: "face-video",
278
- ref_key: "videoRef",
279
- ref: d,
280
- id: "v",
281
- autoplay: "",
282
- playsinline: ""
283
- }, null, 512)
284
- ]),
285
- T(a.$slots, "default", {}, () => [
286
- c("button", {
287
- class: "face-screenshot",
288
- onClick: p
289
- }, "人脸识别")
290
- ], !0),
291
- c("canvas", {
292
- ref_key: "canvasRef",
293
- ref: s,
294
- id: "canvas"
295
- }, null, 512)
296
- ]));
297
- }
298
- }), Re = /* @__PURE__ */ B(Ee, [["__scopeId", "data-v-b64bc91c"]]), Z = P(q), { isDefaultModel: Ve } = ue(), Me = async (y, m) => {
299
- var C, d, s, g, o, i, p, l, w, _, a, u, f, h;
300
- let t = Object.values(y), e = await ne({
301
- userName: (C = t == null ? void 0 : t[0]) == null ? void 0 : C.trim(),
302
- password: (d = t == null ? void 0 : t[1]) == null ? void 0 : d.trim()
303
- });
304
- if (((s = e == null ? void 0 : e.data) == null ? void 0 : s.status) === 200 && ((o = (g = e == null ? void 0 : e.data) == null ? void 0 : g.result) == null ? void 0 : o.length) <= 0 && (e = await se({
305
- userName: (i = t == null ? void 0 : t[0]) == null ? void 0 : i.trim(),
306
- password: (p = t == null ? void 0 : t[1]) == null ? void 0 : p.trim(),
307
- path: "系统管理/用户管理",
308
- platId: m
309
- })), ((l = e == null ? void 0 : e.data) == null ? void 0 : l.status) === 200 && ((_ = (w = e == null ? void 0 : e.data) == null ? void 0 : w.result) == null ? void 0 : _.length) > 0) {
310
- const v = ((u = (a = e == null ? void 0 : e.data) == null ? void 0 : a.result) == null ? void 0 : u.find((n) => Ve(n))) || ((h = (f = e == null ? void 0 : e.data) == null ? void 0 : f.result) == null ? void 0 : h[0]);
311
- sessionStorage.setItem("systemKey", m && m !== "" ? m : v == null ? void 0 : v.plat_id);
312
- let k = v;
313
- return k.plat_id = k.plat_id ?? m, Z.setLoginUserInfo(k), Z.setSystemKey(m && m !== "" ? m : v == null ? void 0 : v.plat_id), !0;
314
- } else
315
- return H.error("输入的密码错误,请重新输入"), !1;
316
- }, xe = { class: "login-wrap" }, Be = { class: "login-body" }, Ie = { class: "login-body-item left" }, Ue = { class: "title" }, je = { class: "first-level" }, qe = {
317
- key: 0,
318
- class: "logo"
319
- }, Ke = ["src"], Oe = { class: "english-name" }, He = { class: "login-body-item right" }, Pe = /* @__PURE__ */ K({
320
- __name: "index",
321
- props: {
322
- oldSystemKey: {},
323
- loginContent: {}
324
- },
325
- emits: ["change", "projectLogin"],
326
- setup(y, { emit: m }) {
327
- const t = y, e = de(), C = m, d = ie(q), s = P(q), { systemKey: g, systemInfo: o, loginUserInfo: i } = le(s), p = te(() => {
328
- var n;
329
- return ((n = o.value) == null ? void 0 : n.logo) || me;
330
- }), l = F({
331
- // sysCTitle: 'INSOFWORKS',
332
- sysCTitle: "",
333
- sysETitle: "",
334
- // sysETitle: 'Dynamic Test Information System',
335
- loginTitle: "账户密码登录",
336
- tabs: [
337
- {
338
- name: "密码登录",
339
- btnLabel: "登录",
340
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
341
- },
342
- {
343
- name: "人脸识别",
344
- btnLabel: "人脸识别",
345
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
346
- },
347
- {
348
- name: "刷卡登录",
349
- btnLabel: "登录",
350
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
351
- }
352
- ]
353
- }), w = F("account"), _ = F(!1), a = F(!1), u = () => {
354
- _.value = !0;
355
- }, f = (n, N) => {
356
- _.value = !1, n && v(N);
357
- }, h = async () => (sessionStorage.setItem("loginToken", "111"), !0), L = async () => (sessionStorage.setItem("magicToken", "123456"), !0);
358
- ae(async () => {
359
- await h();
360
- });
361
- const v = async (n) => {
362
- var D, J, W, z, G, Q, X;
363
- a.value = !0;
364
- let N = [Me(n, (D = o.value) == null ? void 0 : D.plat_id), h(), L()];
365
- const $ = await Promise.all(N), S = $ == null ? void 0 : $.every((I) => I);
366
- let O = [
367
- {
368
- id: "1",
369
- request_method: "Post",
370
- request_url: "/platform/getdata",
371
- request_param: JSON.stringify({
372
- userName: "hjj",
373
- password: "1"
374
- }),
375
- request_result: "{}",
376
- is_delete: !1,
377
- request_table: "admin_user",
378
- request_type: "login"
379
- }
380
- ];
381
- try {
382
- const I = ((J = i == null ? void 0 : i.value) == null ? void 0 : J.plat_id) || ((W = o.value) == null ? void 0 : W.plat_id);
383
- await ce({
384
- platId: parseInt(I),
385
- changeContents: [{
386
- tableName: "log",
387
- tableContents: O
388
- }]
389
- });
390
- } catch {
391
- }
392
- S ? (C("projectLogin", n), await ge(), e.push("/"), s.setLogRecordAsync({
393
- type: "登录",
394
- data: {
395
- account: ((z = i.value) == null ? void 0 : z.account) ?? ((G = i.value) == null ? void 0 : G.账号),
396
- userName: ((Q = i.value) == null ? void 0 : Q.姓名) || ((X = i.value) == null ? void 0 : X.userName) || "未知"
397
- }
398
- }, "/login", "login"), d.setHasClickEditComp(!1)) : a.value = !1, a.value = !1;
399
- };
400
- j(
401
- () => t == null ? void 0 : t.loginContent,
402
- () => {
403
- let n = t == null ? void 0 : t.loginContent;
404
- n != null && n.account && (n != null && n.password) && v(n);
405
- },
406
- { deep: !0, immediate: !0 }
407
- );
408
- const k = (n) => {
409
- w.value = n, _.value = !1, a.value = !1;
410
- };
411
- return (n, N) => (V(), R("div", xe, [
412
- c("div", Be, [
413
- c("div", Ie, [
414
- b(be, { class: "login-left-bg" }, {
415
- img: r(() => {
416
- var $, S;
417
- return [
418
- c("div", Ue, [
419
- c("div", je, [
420
- p.value ? (V(), R("div", qe, [
421
- c("img", {
422
- src: p.value,
423
- alt: ""
424
- }, null, 8, Ke)
425
- ])) : oe("", !0),
426
- c("div", Oe, A((($ = U(o)) == null ? void 0 : $.EnglishName) || "Insofworks"), 1)
427
- ]),
428
- c("div", null, A(((S = U(o)) == null ? void 0 : S.chineseName) || "工业软件建模与开发系统"), 1)
429
- ]),
430
- N[0] || (N[0] = c("div", { class: "divide-line" }, null, -1))
431
- ];
432
- }),
433
- _: 1
434
- })
435
- ]),
436
- c("div", He, [
437
- b(ke, {
438
- loading: a.value,
439
- onClickLogin: u,
440
- onHandleTabChange: k
441
- }, {
442
- title: r(() => [
443
- M(A(l.value.loginTitle), 1)
444
- ]),
445
- tabLabel1: r(() => [
446
- M(A(l.value.tabs[0].name), 1)
447
- ]),
448
- tabContent1: r(() => [
449
- b(Fe, {
450
- activeTabName: w.value,
451
- isClickLogin: _.value,
452
- onHandleLoginFormChange: f
453
- }, null, 8, ["activeTabName", "isClickLogin"])
454
- ]),
455
- tabButton1: r(() => [
456
- M(A(l.value.tabs[0].btnLabel), 1)
457
- ]),
458
- tabLabel2: r(() => [
459
- M(A(l.value.tabs[1].name), 1)
460
- ]),
461
- tabContent2: r(() => [
462
- b(Re, {
463
- systemKey: n.oldSystemKey,
464
- activeTabName: w.value,
465
- isClickLogin: _.value,
466
- onHandleLoginFormChange: f
467
- }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
468
- ]),
469
- tabButton2: r(() => [
470
- M(A(l.value.tabs[1].btnLabel), 1)
471
- ]),
472
- _: 1
473
- }, 8, ["loading"])
474
- ])
475
- ])
476
- ]));
477
- }
478
- }), Ze = /* @__PURE__ */ B(Pe, [["__scopeId", "data-v-233316bd"]]);
479
- export {
480
- Ze as default
481
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),h=require("./menu-DopnPfbG.cjs");require("./index-CwOB279v.cjs");const U=require("./index-cC0isUDx.cjs"),$=require("./request-BC2w2vGr.cjs"),K=require("vue-router"),B=require("./index-CQY6ageG.cjs"),D={},H={class:"left-wrap"},P={class:"left-bg"};function J(b,u){return e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("div",P,[e.renderSlot(b.$slots,"img",{},void 0,!0)])])}const W=k._export_sfc(D,[["render",J],["__scopeId","data-v-9b7ee6c9"]]),x={ACCOUNT:"account",FACE:"face"},z={class:"right-wrap"},G={class:"tab-content"},Q={class:"tab-tips"},X={class:"tab-content"},Y={class:"tab-tips"},Z=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(b,{emit:u}){const o=e.ref(x.ACCOUNT),t=u,C=()=>{t("clickLogin",o.value)},r=i=>{t("handleTabChange",i)};return(i,m)=>{const a=e.resolveComponent("el-button"),l=e.resolveComponent("el-tab-pane"),p=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(p,{modelValue:o.value,"onUpdate:modelValue":m[0]||(m[0]=c=>o.value=c),class:"right-tabs",onTabChange:r},{default:e.withCtx(()=>[e.createVNode(l,{name:e.unref(x).ACCOUNT},{label:e.withCtx(()=>[e.renderSlot(i.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",G,[e.renderSlot(i.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:C},[e.createVNode(a,{loading:b.loading},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",Q,[e.renderSlot(i.$slots,"tabTips1",{},void 0,!0)])]),_:3},8,["name"]),e.createVNode(l,{name:e.unref(x).FACE},{label:e.withCtx(()=>[e.renderSlot(i.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",X,[e.renderSlot(i.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",Y,[e.renderSlot(i.$slots,"tabTips2",{},void 0,!0)])]),_:3},8,["name"])]),_:3},8,["modelValue"])])}}}),ee=k._export_sfc(Z,[["__scopeId","data-v-8b1962f0"]]),te={class:"account-wrap"},oe=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(b,{emit:u}){const o=b,t=e.reactive({account:"",password:""}),C=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),r=e.ref(null),i=u;return e.watch(()=>o.isClickLogin,m=>{var a;m&&(o==null?void 0:o.activeTabName)==="account"&&((a=r.value)==null||a.validate(l=>{var p;for(let c in t)t.hasOwnProperty(c)&&(t[c]=(p=t[c])==null?void 0:p.trim());i("handleLoginFormChange",l,l?t:null)}))},{immediate:!0}),e.watch(()=>o.activeTabName,m=>{var a;m==="account"&&((a=r.value)==null||a.resetFields())}),(m,a)=>{const l=e.resolveComponent("svg-icon"),p=e.resolveComponent("el-input"),c=e.resolveComponent("el-form-item"),y=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",te,[e.createVNode(y,{model:t,rules:C,ref_key:"formRef",ref:r},{default:e.withCtx(()=>[e.createVNode(c,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(p,{class:"account-input",modelValue:t.account,"onUpdate:modelValue":a[0]||(a[0]=f=>t.account=f),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(l,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(c,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(p,{class:"account-input",modelValue:t.password,"onUpdate:modelValue":a[1]||(a[1]=f=>t.password=f),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(l,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),ne=k._export_sfc(oe,[["__scopeId","data-v-48037c0f"]]),ae={class:"account-wrap"},se={class:"video-wrap"},ie=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(b,{emit:u}){const o=b,t=u;h.useLoginState(h.pinia);const{initVerify:C}=U.useFaceRecognition(),r=e.ref(null),i=e.ref(null);let m=!1,a=null;const l=async n=>{if(!n)return;const d=await C(n),{data:g}=d||{},{account:v,password:N}=(g==null?void 0:g.data)||{},_=g==null?void 0:g.msg;if(!v){$.ElMessage.warning(_||"识别失败,请重新识别!");return}t("handleLoginFormChange",!0,{account:v,password:N})},p=()=>{if(!i.value||!r.value)return;const n=i.value,d=n.getContext("2d"),g=r.value;n.width=200,n.height=200;const v=g.videoWidth||640,N=g.videoHeight||480,_=Math.min(200/v,200/N),w=v*_,s=N*_,V=(200-w)/2,E=(200-s)/2;d==null||d.drawImage(g,0,0,v,N,V,E,w,s),n.toBlob(L=>{if(L){const S=new File([L],"face.png",{type:"image/png"});l(S)}},"image/png")},c=async()=>{if(!r.value||m)return;const n=r.value;try{if(a=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1}),n){const d=n;d.srcObject=a,m=!0}}catch{$.ElMessage.warning("摄像头启动失败")}};function y(n){if(n&&(n.getTracks().forEach(d=>d.stop()),r.value)){const d=r.value;d.srcObject=null}}const f=()=>{y(a),m=!1};return e.watch(()=>o.activeTabName,n=>{if(n!==x.FACE){f();return}if(n===x.FACE&&!m){c();return}}),e.onBeforeUnmount(()=>{f()}),(n,d)=>(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",se,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:r,id:"v",autoplay:"",playsinline:""},null,512)]),e.renderSlot(n.$slots,"default",{},()=>[e.createElementVNode("button",{class:"face-screenshot",onClick:p},"人脸识别")],!0),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:i,id:"canvas"},null,512)]))}}),le=k._export_sfc(ie,[["__scopeId","data-v-b64bc91c"]]),O=h.useLoginState(h.pinia),{isDefaultModel:ce}=B.useModelManagement(),re=async(b,u)=>{var C,r,i,m,a,l,p,c,y,f,n,d,g,v;let o=Object.values(b),t=await h.loginPlatFormDataApi({userName:(C=o==null?void 0:o[0])==null?void 0:C.trim(),password:(r=o==null?void 0:o[1])==null?void 0:r.trim()});if(((i=t==null?void 0:t.data)==null?void 0:i.status)===200&&((a=(m=t==null?void 0:t.data)==null?void 0:m.result)==null?void 0:a.length)<=0&&(t=await h.loginCommonAccount({userName:(l=o==null?void 0:o[0])==null?void 0:l.trim(),password:(p=o==null?void 0:o[1])==null?void 0:p.trim(),path:"系统管理/用户管理",platId:u})),((c=t==null?void 0:t.data)==null?void 0:c.status)===200&&((f=(y=t==null?void 0:t.data)==null?void 0:y.result)==null?void 0:f.length)>0){const _=((d=(n=t==null?void 0:t.data)==null?void 0:n.result)==null?void 0:d.find(s=>ce(s)))||((v=(g=t==null?void 0:t.data)==null?void 0:g.result)==null?void 0:v[0]);sessionStorage.setItem("systemKey",u&&u!==""?u:_==null?void 0:_.plat_id);let w=_;return w.plat_id=w.plat_id??u,O.setLoginUserInfo(w),O.setSystemKey(u&&u!==""?u:_==null?void 0:_.plat_id),!0}else return $.ElMessage.error("输入的密码错误,请重新输入"),!1},de={class:"login-wrap"},ue={class:"login-body"},me={class:"login-body-item left"},ge={class:"title"},pe={class:"first-level"},fe={key:0,class:"logo"},_e=["src"],ve={class:"english-name"},he={class:"login-body-item right"},be=e.defineComponent({__name:"index",props:{oldSystemKey:{},loginContent:{}},emits:["change","projectLogin"],setup(b,{emit:u}){const o=b,t=K.useRouter(),C=u,r=h.useMenuState(h.pinia),i=h.useLoginState(h.pinia),{systemKey:m,systemInfo:a,loginUserInfo:l}=h.storeToRefs(i),p=e.computed(()=>{var s;return((s=a.value)==null?void 0:s.logo)||B.logo}),c=e.ref({sysCTitle:"",sysETitle:"",loginTitle:"账户密码登录",tabs:[{name:"密码登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"人脸识别",btnLabel:"人脸识别",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"刷卡登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"}]}),y=e.ref("account"),f=e.ref(!1),n=e.ref(!1),d=()=>{f.value=!0},g=(s,V)=>{f.value=!1,s&&_(V)},v=async()=>(sessionStorage.setItem("loginToken","111"),!0),N=async()=>(sessionStorage.setItem("magicToken","123456"),!0);e.onMounted(async()=>{await v()});const _=async s=>{var F,q,A,R,M,I,j;n.value=!0;let V=[re(s,(F=a.value)==null?void 0:F.plat_id),v(),N()];const E=await Promise.all(V),L=E==null?void 0:E.every(T=>T);let S=[{id:"1",request_method:"Post",request_url:"/platform/getdata",request_param:JSON.stringify({userName:"hjj",password:"1"}),request_result:"{}",is_delete:!1,request_table:"admin_user",request_type:"login"}];try{const T=((q=l==null?void 0:l.value)==null?void 0:q.plat_id)||((A=a.value)==null?void 0:A.plat_id);await h.pageBatchAddApi({platId:parseInt(T),changeContents:[{tableName:"log",tableContents:S}]})}catch{}L?(C("projectLogin",s),await B.verifyStructureDataToStore(),t.push("/"),i.setLogRecordAsync({type:"登录",data:{account:((R=l.value)==null?void 0:R.account)??((M=l.value)==null?void 0:M.账号),userName:((I=l.value)==null?void 0:I.姓名)||((j=l.value)==null?void 0:j.userName)||"未知"}},"/login","login"),r.setHasClickEditComp(!1)):n.value=!1,n.value=!1};e.watch(()=>o==null?void 0:o.loginContent,()=>{let s=o==null?void 0:o.loginContent;s!=null&&s.account&&(s!=null&&s.password)&&_(s)},{deep:!0,immediate:!0});const w=s=>{y.value=s,f.value=!1,n.value=!1};return(s,V)=>(e.openBlock(),e.createElementBlock("div",de,[e.createElementVNode("div",ue,[e.createElementVNode("div",me,[e.createVNode(W,{class:"login-left-bg"},{img:e.withCtx(()=>{var E,L;return[e.createElementVNode("div",ge,[e.createElementVNode("div",pe,[p.value?(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("img",{src:p.value,alt:""},null,8,_e)])):e.createCommentVNode("",!0),e.createElementVNode("div",ve,e.toDisplayString(((E=e.unref(a))==null?void 0:E.EnglishName)||"Insofworks"),1)]),e.createElementVNode("div",null,e.toDisplayString(((L=e.unref(a))==null?void 0:L.chineseName)||"工业软件建模与开发系统"),1)]),V[0]||(V[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",he,[e.createVNode(ee,{loading:n.value,onClickLogin:d,onHandleTabChange:w},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(ne,{activeTabName:y.value,isClickLogin:f.value,onHandleLoginFormChange:g},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(le,{systemKey:s.oldSystemKey,activeTabName:y.value,isClickLogin:f.value,onHandleLoginFormChange:g},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),Ce=k._export_sfc(be,[["__scopeId","data-v-233316bd"]]);exports.default=Ce;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),f=require("./menu-DopnPfbG.cjs"),j=require("./index-CQY6ageG.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),L=n.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!1},nodeDev:{type:String,default:""},pageKey:{type:String,default:""},interfaceContent:{type:Array,default:()=>[]},loginContent:{type:Object,default:()=>{}}},emits:["buildContent","openThreeBuild","threeData","setLoginInfo","projectLogin"],setup(s,{emit:m}){const c=f.useLoginState(f.pinia),{loginUserInfo:r}=f.storeToRefs(c),{initSystemInfo:g}=j.useModelManagement(),e=s,a=m,w=n.computed(()=>{var t,o;return(e==null?void 0:e.showButton)||((o=(t=r.value)==null?void 0:t.layer)==null?void 0:o.toUpperCase())==="SUPERADMIN"}),C=t=>{a("projectLogin",t)};n.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,o])=>{c.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.interfaceContent,()=>{var o,i,u;if(!(e!=null&&e.interfaceContent)||Array.isArray(e==null?void 0:e.interfaceContent)&&((o=e==null?void 0:e.interfaceContent)==null?void 0:o.length)===0)return;let t=(i=e==null?void 0:e.interfaceContent)==null?void 0:i.find(d=>d==null?void 0:d.includes("VITE_API_NEW_URL"));t=(u=t==null?void 0:t.split("="))==null?void 0:u[1],t=t==null?void 0:t.trim(),c.setSystemUrl(t??"")},{immediate:!0,deep:!0}),n.onMounted(async()=>{e.systemInfo?c.setSystemInfo(e.systemInfo):await g()});const h=()=>{a("buildContent")},S=()=>{a("setLoginInfo")},I=t=>{a("openThreeBuild",t)},v=t=>{a("threeData",t)},l=()=>{var y;const t=e!=null&&e.windowConfig?(y=e==null?void 0:e.windowConfig)==null?void 0:y.width:window.innerWidth,o=1920,i=16,u=t/o,d=i*u;document.documentElement.style.fontSize=`${d}px`};return n.onMounted(()=>{l(),window.addEventListener("resize",l)}),n.onUnmounted(()=>{window.removeEventListener("resize",l)}),(t,o)=>{const i=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(i,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:w.value,nodeDev:e==null?void 0:e.nodeDev,windowConfig:s.windowConfig,systemInfo:s.systemInfo,"old-systemKey":s.systemKey,onBuildContent:h,onProjectLogin:C,onOpenThreeBuild:I,pageKey:s.pageKey,onThreeData:v,onSetLoginInfo:S,loginContent:e==null?void 0:e.loginContent},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey","loginContent"])])}}}),_=B._export_sfc(L,[["__scopeId","data-v-c2972e64"]]);exports.default=_;
@@ -1,42 +0,0 @@
1
- # CAD Exchanger 3.24.0 (cadexchanger.com)
2
- # Material Count: 5
3
-
4
- newmtl Material_1
5
- Ns 0.000000
6
- Ka 0.200000 0.200000 0.200000
7
- Kd 0.666667 0.666667 0.666667
8
- Ks 0.000000 0.000000 0.000000
9
- Ke 0.000000 0.000000 0.000000
10
- d 1.000000
11
-
12
- newmtl Material_2
13
- Ns 0.000000
14
- Ka 0.200000 0.200000 0.200000
15
- Kd 0.133333 0.133333 0.133333
16
- Ks 0.000000 0.000000 0.000000
17
- Ke 0.000000 0.000000 0.000000
18
- d 1.000000
19
-
20
- newmtl Material_3
21
- Ns 0.000000
22
- Ka 0.200000 0.200000 0.200000
23
- Kd 0.733333 0.733333 0.733333
24
- Ks 0.000000 0.000000 0.000000
25
- Ke 0.000000 0.000000 0.000000
26
- d 1.000000
27
-
28
- newmtl Material_5
29
- Ns 0.000000
30
- Ka 0.200000 0.200000 0.200000
31
- Kd 0.396078 0.941176 0.450980
32
- Ks 0.000000 0.000000 0.000000
33
- Ke 0.000000 0.000000 0.000000
34
- d 1.000000
35
-
36
- newmtl Material_4
37
- Ns 0.000000
38
- Ka 0.200000 0.200000 0.200000
39
- Kd 1.000000 1.000000 0.000000
40
- Ks 0.000000 0.000000 0.000000
41
- Ke 0.000000 0.000000 0.000000
42
- d 1.000000