ss-component-new 1.2.44 → 1.2.45

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 (98) hide show
  1. package/dist/{MTLLoader-S0-tgcId.js → MTLLoader-Bp_zXJHj.js} +1 -1
  2. package/dist/{MTLLoader-z5-t3xJP.cjs → MTLLoader-CP_pjCVi.cjs} +1 -1
  3. package/dist/{OrbitControls-BV-VucZ-.cjs → OrbitControls-B5zHPgTk.cjs} +1 -1
  4. package/dist/{OrbitControls-neGlLp4U.js → OrbitControls-QeoZHu0O.js} +1 -1
  5. package/dist/{animationData-DGlw1Pwm.js → animationData-B5eOmRnz.js} +3 -3
  6. package/dist/{animationData-BI3PXunj.cjs → animationData-Ba6obiMd.cjs} +1 -1
  7. package/dist/{array-BzXzat0I.cjs → array-CXTr_u8T.cjs} +1 -1
  8. package/dist/{array-B0sVMejm.js → array-CpD9GkZu.js} +1 -1
  9. package/dist/{dataUtil-BMiqO5iF.cjs → dataUtil-BxHv9-qc.cjs} +1 -1
  10. package/dist/{dataUtil-yN0F9IZh.js → dataUtil-iQRU-HFQ.js} +1 -1
  11. package/dist/{fileUtil-CLjIZqTr.cjs → fileUtil-DOKmUgX6.cjs} +1 -1
  12. package/dist/{fileUtil-Bev09uzf.js → fileUtil-DtFX4qSS.js} +1 -1
  13. package/dist/{iconfont-DCNS3tUf.js → iconfont-BI4Uo8yP.js} +2 -2
  14. package/dist/{iconfont-DIct6CCo.cjs → iconfont-nIq9TlPr.cjs} +1 -1
  15. package/dist/{index-Dn9nE8Eq.cjs → index-AosP55-j.cjs} +1 -1
  16. package/dist/{index-Cy7dhIjv.cjs → index-B-ErCfWs.cjs} +1 -1
  17. package/dist/{index-CmPg86RO.js → index-B4ekORH0.js} +1 -1
  18. package/dist/{index-DuQEB-MM.cjs → index-B5ElOuGg.cjs} +1 -1
  19. package/dist/{index-CB9fhGS6.js → index-B8iVe_eb.js} +17 -17
  20. package/dist/{index-CbbcH5oq.js → index-B9sOWZWH.js} +5 -5
  21. package/dist/{index-Cx2uJNrm.cjs → index-BDur1jFN.cjs} +1 -1
  22. package/dist/index-BJu7m-Nr.cjs +1 -0
  23. package/dist/{index-BobtqupC.cjs → index-Bb0GRmmB.cjs} +1 -1
  24. package/dist/{index-CLfSP16a.cjs → index-BfP_DVsu.cjs} +1 -1
  25. package/dist/{index-XI2Rvi0q.js → index-BiXsFita.js} +1 -1
  26. package/dist/{index-DLOY0GPB.js → index-BtQRcdm8.js} +2 -2
  27. package/dist/{index-DsELssZh.cjs → index-By2szESa.cjs} +1 -1
  28. package/dist/{index-BA3EBTs5.cjs → index-C7enRklE.cjs} +1 -1
  29. package/dist/{index-BhBoXLgm.cjs → index-C8peX_zn.cjs} +1 -1
  30. package/dist/{index-bwwqrQDH.js → index-C9jcqjv8.js} +1 -1
  31. package/dist/{index-lMKlyOCK.js → index-CB31dswD.js} +4 -4
  32. package/dist/{index-Bl_wu7Ce.js → index-CG_g2ziw.js} +1 -1
  33. package/dist/{index-CbXglzHn.cjs → index-CIasmB1I.cjs} +1 -1
  34. package/dist/{index-_hpntJ68.js → index-CLtZ8LSX.js} +1 -1
  35. package/dist/{index-_R_mDcr0.cjs → index-CRSHYsls.cjs} +1 -1
  36. package/dist/{index-DVFTyM4M.js → index-CXXjdjCc.js} +4 -4
  37. package/dist/{index-r1aE58w0.cjs → index-CaCpfXzA.cjs} +1 -1
  38. package/dist/{index-Da7Akok4.js → index-CeXS_yjh.js} +4 -4
  39. package/dist/{index-Dbkrv2wN.cjs → index-Cgo-pHHk.cjs} +1 -1
  40. package/dist/{index-CsCIkw9R.cjs → index-ChzT-uN5.cjs} +1 -1
  41. package/dist/{index-B_Tkvppm.js → index-CjlgPPLu.js} +7 -7
  42. package/dist/{index-DL6qIAmS.cjs → index-CqYwvSb1.cjs} +1 -1
  43. package/dist/{index-DIPySh01.cjs → index-Cxu7w2E_.cjs} +1 -1
  44. package/dist/{index-DwJ_KFIl.js → index-DDz2Uaa6.js} +1 -1
  45. package/dist/{index-Doph8iRz.js → index-DFgo_-tB.js} +1 -1
  46. package/dist/{index-6PGBoTBs.cjs → index-DIqmyCXw.cjs} +1 -1
  47. package/dist/{index-D86mE5bR.js → index-DNTETHco.js} +1 -1
  48. package/dist/{index-D2pDrujp.cjs → index-DZrrnLsD.cjs} +1 -1
  49. package/dist/{index-DpBque0B.js → index-DaNkpB7i.js} +8 -8
  50. package/dist/{index-BgFjc2to.js → index-DerJOgVr.js} +3 -3
  51. package/dist/index-Dl_nOM4w.js +602 -0
  52. package/dist/{index-DAQyshAW.js → index-Hsfgg6Jr.js} +1 -1
  53. package/dist/{index-CY-dTAL6.js → index-QsfFZ239.js} +3 -3
  54. package/dist/{index-B0cPiCrJ.cjs → index-Rn_5RMYO.cjs} +1 -1
  55. package/dist/{index-cZUdQLs9.cjs → index-W04qB42v.cjs} +1 -1
  56. package/dist/{index-DJ9hDOV8.js → index-Yj-fe5Fq.js} +2 -2
  57. package/dist/{index-Cm0sETei.js → index-ntjMJGUe.js} +1 -1
  58. package/dist/{index-BoXz8LQd.js → index-s5__Qjzi.js} +1 -1
  59. package/dist/{index-3HHIJyYz.cjs → index-xnnwo0kC.cjs} +1 -1
  60. package/dist/{index-Hznc1RHv.cjs → index-ytX2FVZK.cjs} +1 -1
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BI9sR6fB.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bj08IQ8o.js} +8 -8
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-HDmb-6aI.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-D1qJ0WdA.cjs} +1 -1
  63. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bmw4uN_h.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BHN6MuWN.js} +2095 -2110
  64. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-JMLqADEE.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BnVF9mg-.cjs} +51 -51
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-wyjrIVAw.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BYGwQPjD.js} +4 -4
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DsySz2Q6.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-Dp-hCMfv.cjs} +1 -1
  67. package/dist/{index.vue_vue_type_style_index_1_lang-Cu2BshsL.js → index.vue_vue_type_style_index_1_lang-CU-2e_BS.js} +3 -3
  68. package/dist/{index.vue_vue_type_style_index_1_lang-HFKqIlIz.cjs → index.vue_vue_type_style_index_1_lang-Ckqvc1oN.cjs} +1 -1
  69. package/dist/{main-DnoUlIhf.cjs → main-Cu9JHgqK.cjs} +1 -1
  70. package/dist/{main-CZ7ecnlE.js → main-Dr4DzkFw.js} +3 -3
  71. package/dist/ss-component.cjs +1 -1
  72. package/dist/ss-component.css +1 -1
  73. package/dist/ss-component.js +9 -9
  74. package/dist/ss-component2.cjs +1 -1
  75. package/dist/ss-component2.js +11 -11
  76. package/dist/{threeModel-DoiYcvs4.js → threeModel-BxSAmes5.js} +4 -4
  77. package/dist/{threeModel-SJkYCRZG.cjs → threeModel-CfE4qItC.cjs} +1 -1
  78. package/dist/{threePreview-CJ3vTE2P.js → threePreview-Bo7UlxmA.js} +3 -3
  79. package/dist/{threePreview-UGPvJ0Kr.cjs → threePreview-Do2o5OBN.cjs} +1 -1
  80. package/dist/{threeSceneView-4qe_PpyY.cjs → threeSceneView-D7n8nPfy.cjs} +1 -1
  81. package/dist/{threeSceneView-CWbDj-33.js → threeSceneView-DZs6WyDt.js} +8 -8
  82. package/dist/{threeSceneViewForCPMPIP-GISXOGMC.js → threeSceneViewForCPMPIP-BlOqsiB_.js} +8 -8
  83. package/dist/{threeSceneViewForCPMPIP-YOScA2Ku.cjs → threeSceneViewForCPMPIP-jBfAtm1G.cjs} +1 -1
  84. package/dist/{threeTrackPathView-SikIkQ4h.js → threeTrackPathView-DVHETbx3.js} +4 -4
  85. package/dist/{threeTrackPathView-C7GA97Vy.cjs → threeTrackPathView-D_mOz7ZU.cjs} +1 -1
  86. package/dist/{threeViewerHost-CbmFGUtP.js → threeViewerHost-B4_JNQvE.js} +2 -2
  87. package/dist/{threeViewerHost-DNfmRw6a.cjs → threeViewerHost-CSVMxHgm.cjs} +1 -1
  88. package/dist/{urdfTree-bqnyp0ks.cjs → urdfTree-77wdErmJ.cjs} +1 -1
  89. package/dist/{urdfTree-DfcawAzu.js → urdfTree-C6zY5_p4.js} +1 -1
  90. package/dist/{workpieceTreePanel-DtlsVo1q.js → workpieceTreePanel-27hu7whF.js} +5 -5
  91. package/dist/{workpieceTreePanel-XHkn5qFT.cjs → workpieceTreePanel-CMwRzaFj.cjs} +1 -1
  92. package/package.json +1 -1
  93. package/dist/index-e1IN0g06.js +0 -577
  94. package/dist/index-zo_7oW0G.cjs +0 -1
  95. package/dist/obj/model.mtl +0 -42
  96. package/dist/obj/model.obj +0 -26110
  97. package/public/obj/model.mtl +0 -42
  98. package/public/obj/model.obj +0 -26110
@@ -1,18 +1,18 @@
1
1
  import { computed as v, watch as u, onMounted as S, onUnmounted as B, resolveComponent as I, createElementBlock as D, openBlock as p, createVNode as K } from "vue";
2
- import "./index-B_Tkvppm.js";
2
+ import "./index-CjlgPPLu.js";
3
3
  import { u as T, p as j, s as x } from "./index-DsSA-OiE.js";
4
- import "./array-B0sVMejm.js";
4
+ import "./array-CpD9GkZu.js";
5
5
  import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bmw4uN_h.js";
7
- import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-wyjrIVAw.js";
8
- import "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BI9sR6fB.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BHN6MuWN.js";
7
+ import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-BYGwQPjD.js";
8
+ import "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bj08IQ8o.js";
9
9
  import "./index-BHtNKL1L.js";
10
- import "./index.vue_vue_type_style_index_1_lang-Cu2BshsL.js";
10
+ import "./index.vue_vue_type_style_index_1_lang-CU-2e_BS.js";
11
11
  import "./index-Bbjcv84T.js";
12
12
  import "./index-l2JNYn9u.js";
13
13
  import "vue-router";
14
- import "./index-BgFjc2to.js";
15
- import "./dataUtil-yN0F9IZh.js";
14
+ import "./index-DerJOgVr.js";
15
+ import "./dataUtil-iQRU-HFQ.js";
16
16
  /* empty css */
17
17
  import "./index-BYAakLtY.js";
18
18
  const L = {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as F, computed as N, ref as p, watch as $, 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 { s as H } from "./index-Doph8iRz.js";
3
- import { d as M, u as P } from "./threeViewerHost-CbmFGUtP.js";
2
+ import { s as H } from "./index-DFgo_-tB.js";
3
+ import { d as M, u as P } from "./threeViewerHost-B4_JNQvE.js";
4
4
  import { E as z } from "./index-DsSA-OiE.js";
5
5
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { S as W } from "./index-DVFTyM4M.js";
6
+ import { S as W } from "./index-CXXjdjCc.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",
@@ -0,0 +1,602 @@
1
+ import { createElementBlock as X, openBlock as Y, createElementVNode as h, renderSlot as U, defineComponent as te, ref as M, resolveComponent as D, createVNode as T, withCtx as g, unref as j, reactive as ce, watch as ne, onBeforeUnmount as ye, onMounted as pe, toDisplayString as x, createTextVNode as z } from "vue";
2
+ import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import { a as re, u as ie, p as le, E, s as ge, b as ve, g as G } from "./index-DsSA-OiE.js";
4
+ import { d as de, r as me, g as he, c as be, b as _e, e as we, f as Ae, h as Ce } from "./index-l2JNYn9u.js";
5
+ import { useRouter as Te } from "vue-router";
6
+ import { v as ke } from "./index-BYAakLtY.js";
7
+ const Ne = {}, Se = { class: "left-wrap" }, Ie = { class: "left-bg" };
8
+ function Ke(S, P) {
9
+ return Y(), X("div", Se, [
10
+ h("div", Ie, [
11
+ U(S.$slots, "img", {}, void 0, !0)
12
+ ])
13
+ ]);
14
+ }
15
+ const Le = /* @__PURE__ */ Z(Ne, [["render", Ke], ["__scopeId", "data-v-9b7ee6c9"]]), Q = {
16
+ ACCOUNT: "account",
17
+ FACE: "face"
18
+ }, Ee = { class: "right-wrap" }, $e = { class: "tab-content" }, Ue = { class: "tab-tips" }, Me = { class: "tab-content" }, Pe = { class: "tab-tips" }, Be = /* @__PURE__ */ te({
19
+ __name: "index",
20
+ props: {
21
+ tabList: {
22
+ type: Array,
23
+ default: []
24
+ },
25
+ loading: {
26
+ type: Boolean,
27
+ default: !1
28
+ }
29
+ },
30
+ emits: ["clickLogin", "handleTabChange"],
31
+ setup(S, { emit: P }) {
32
+ const b = M(Q.ACCOUNT), d = P, k = () => {
33
+ d("clickLogin", b.value);
34
+ }, v = (u) => {
35
+ d("handleTabChange", u);
36
+ };
37
+ return (u, m) => {
38
+ const f = D("el-button"), _ = D("el-tab-pane"), w = D("el-tabs");
39
+ return Y(), X("div", Ee, [
40
+ T(w, {
41
+ modelValue: b.value,
42
+ "onUpdate:modelValue": m[0] || (m[0] = (N) => b.value = N),
43
+ class: "right-tabs",
44
+ onTabChange: v
45
+ }, {
46
+ default: g(() => [
47
+ T(_, {
48
+ name: j(Q).ACCOUNT
49
+ }, {
50
+ label: g(() => [
51
+ U(u.$slots, "tabLabel1", {}, void 0, !0)
52
+ ]),
53
+ default: g(() => [
54
+ h("div", $e, [
55
+ U(u.$slots, "tabContent1", {}, void 0, !0)
56
+ ]),
57
+ h("div", {
58
+ class: "tab-button special",
59
+ onClick: k
60
+ }, [
61
+ T(f, { loading: S.loading }, {
62
+ default: g(() => [
63
+ U(u.$slots, "tabButton1", {}, void 0, !0)
64
+ ]),
65
+ _: 3
66
+ }, 8, ["loading"])
67
+ ]),
68
+ h("div", Ue, [
69
+ U(u.$slots, "tabTips1", {}, void 0, !0)
70
+ ])
71
+ ]),
72
+ _: 3
73
+ }, 8, ["name"]),
74
+ T(_, {
75
+ name: j(Q).FACE
76
+ }, {
77
+ label: g(() => [
78
+ U(u.$slots, "tabLabel2", {}, void 0, !0)
79
+ ]),
80
+ default: g(() => [
81
+ h("div", Me, [
82
+ U(u.$slots, "tabContent2", {}, void 0, !0)
83
+ ]),
84
+ h("div", Pe, [
85
+ U(u.$slots, "tabTips2", {}, void 0, !0)
86
+ ])
87
+ ]),
88
+ _: 3
89
+ }, 8, ["name"])
90
+ ]),
91
+ _: 3
92
+ }, 8, ["modelValue"])
93
+ ]);
94
+ };
95
+ }
96
+ }), Ve = /* @__PURE__ */ Z(Be, [["__scopeId", "data-v-8b1962f0"]]), xe = { class: "account-wrap" }, De = /* @__PURE__ */ te({
97
+ __name: "index",
98
+ props: {
99
+ activeTabName: {
100
+ type: String,
101
+ default: ""
102
+ },
103
+ isClickLogin: {
104
+ type: Boolean,
105
+ default: !1
106
+ }
107
+ },
108
+ emits: ["handleLoginFormChange"],
109
+ setup(S, { emit: P }) {
110
+ const b = S, d = ce({
111
+ account: "",
112
+ password: ""
113
+ }), k = ce({
114
+ account: [
115
+ { required: !0, message: "请输入账号", trigger: "blur" }
116
+ ],
117
+ password: [
118
+ { required: !0, message: "请输入密码", trigger: "blur" }
119
+ ]
120
+ }), v = M(null), u = P;
121
+ return ne(() => b.isClickLogin, (m) => {
122
+ var f;
123
+ m && (b == null ? void 0 : b.activeTabName) === "account" && ((f = v.value) == null || f.validate((_) => {
124
+ var w;
125
+ for (let N in d)
126
+ d.hasOwnProperty(N) && (d[N] = (w = d[N]) == null ? void 0 : w.trim());
127
+ u("handleLoginFormChange", _, _ ? d : null);
128
+ }));
129
+ }, {
130
+ immediate: !0
131
+ }), ne(() => b.activeTabName, (m) => {
132
+ var f;
133
+ m === "account" && ((f = v.value) == null || f.resetFields());
134
+ }), (m, f) => {
135
+ const _ = D("svg-icon"), w = D("el-input"), N = D("el-form-item"), R = D("el-form");
136
+ return Y(), X("div", xe, [
137
+ T(R, {
138
+ model: d,
139
+ rules: k,
140
+ ref_key: "formRef",
141
+ ref: v
142
+ }, {
143
+ default: g(() => [
144
+ T(N, {
145
+ label: "",
146
+ prop: "account"
147
+ }, {
148
+ default: g(() => [
149
+ T(w, {
150
+ class: "account-input",
151
+ modelValue: d.account,
152
+ "onUpdate:modelValue": f[0] || (f[0] = (I) => d.account = I),
153
+ placeholder: "请输入账号",
154
+ clearable: ""
155
+ }, {
156
+ prefix: g(() => [
157
+ T(_, {
158
+ name: "account",
159
+ style: { width: "15px", height: "15px" }
160
+ })
161
+ ]),
162
+ _: 1
163
+ }, 8, ["modelValue"])
164
+ ]),
165
+ _: 1
166
+ }),
167
+ T(N, {
168
+ label: "",
169
+ prop: "password"
170
+ }, {
171
+ default: g(() => [
172
+ T(w, {
173
+ class: "account-input",
174
+ modelValue: d.password,
175
+ "onUpdate:modelValue": f[1] || (f[1] = (I) => d.password = I),
176
+ type: "password",
177
+ placeholder: "请输入密码",
178
+ "show-password": "",
179
+ clearable: ""
180
+ }, {
181
+ prefix: g(() => [
182
+ T(_, {
183
+ name: "password",
184
+ style: { width: "15px", height: "15px" }
185
+ })
186
+ ]),
187
+ _: 1
188
+ }, 8, ["modelValue"])
189
+ ]),
190
+ _: 1
191
+ })
192
+ ]),
193
+ _: 1
194
+ }, 8, ["model", "rules"])
195
+ ]);
196
+ };
197
+ }
198
+ }), Re = /* @__PURE__ */ Z(De, [["__scopeId", "data-v-48037c0f"]]);
199
+ function Oe(S) {
200
+ return re({
201
+ url: "http://139.196.154.85:20015/api/face/face-verify",
202
+ method: "post",
203
+ data: S
204
+ });
205
+ }
206
+ const Fe = { class: "account-wrap" }, je = { class: "video-wrap" }, He = /* @__PURE__ */ te({
207
+ __name: "index",
208
+ props: {
209
+ systemKey: { default: "" },
210
+ activeTabName: { default: "" },
211
+ isClickLogin: { type: Boolean, default: !1 }
212
+ },
213
+ emits: ["handleLoginFormChange"],
214
+ setup(S, { emit: P }) {
215
+ const b = S, d = P, k = ie(le), v = M(null), u = M(null);
216
+ let m = !1, f = null;
217
+ const _ = async (r, p) => {
218
+ const { privateKey: K } = await k.getModelSecretAsync();
219
+ let A = r;
220
+ return p !== "superAdmin" && (A = de(r, K)), A;
221
+ }, w = async (r) => {
222
+ if (!r)
223
+ return;
224
+ const p = new FormData();
225
+ p.set("file", r), b.systemKey && p.set("systemKey", b.systemKey), console.log("Face Recognition", b.systemKey);
226
+ const K = await Oe(p), { data: A } = K || {}, { account: $, password: B, layer: O } = (A == null ? void 0 : A.data) || {}, F = A == null ? void 0 : A.msg;
227
+ if (!$) {
228
+ E.warning(F || "识别失败,请重新识别!");
229
+ return;
230
+ }
231
+ const q = await _(B, O);
232
+ d("handleLoginFormChange", !0, {
233
+ account: $,
234
+ password: q
235
+ });
236
+ }, N = () => {
237
+ if (!u.value || !v.value)
238
+ return;
239
+ const r = u.value, p = r.getContext("2d"), K = v.value;
240
+ r.width = 200, r.height = 200;
241
+ const A = K.videoWidth || 640, $ = K.videoHeight || 480, B = Math.min(200 / A, 200 / $), O = A * B, F = $ * B, q = (200 - O) / 2, ae = (200 - F) / 2;
242
+ p == null || p.drawImage(K, 0, 0, A, $, q, ae, O, F), r.toBlob((t) => {
243
+ if (t) {
244
+ const a = new File([t], "face.png", { type: "image/png" });
245
+ w(a);
246
+ }
247
+ }, "image/png");
248
+ }, R = async () => {
249
+ if (!v.value || m)
250
+ return;
251
+ const r = v.value;
252
+ try {
253
+ if (f = await navigator.mediaDevices.getUserMedia({
254
+ video: { facingMode: "user" },
255
+ // 前置;后置用 'environment'
256
+ audio: !1
257
+ }), r) {
258
+ const p = r;
259
+ p.srcObject = f, m = !0;
260
+ }
261
+ } catch {
262
+ E.warning("摄像头启动失败");
263
+ }
264
+ };
265
+ function I(r) {
266
+ if (r && (r.getTracks().forEach((p) => p.stop()), v.value)) {
267
+ const p = v.value;
268
+ p.srcObject = null;
269
+ }
270
+ }
271
+ const H = () => {
272
+ I(f), m = !1;
273
+ };
274
+ return ne(() => b.activeTabName, (r) => {
275
+ if (r !== Q.FACE) {
276
+ H();
277
+ return;
278
+ }
279
+ if (r === Q.FACE && !m) {
280
+ R();
281
+ return;
282
+ }
283
+ }), ye(() => {
284
+ H();
285
+ }), (r, p) => (Y(), X("div", Fe, [
286
+ h("div", je, [
287
+ h("video", {
288
+ class: "face-video",
289
+ ref_key: "videoRef",
290
+ ref: v,
291
+ id: "v",
292
+ autoplay: "",
293
+ playsinline: ""
294
+ }, null, 512)
295
+ ]),
296
+ h("button", {
297
+ class: "face-screenshot",
298
+ onClick: N
299
+ }, "人脸识别"),
300
+ h("canvas", {
301
+ ref_key: "canvasRef",
302
+ ref: u,
303
+ id: "canvas"
304
+ }, null, 512)
305
+ ]));
306
+ }
307
+ }), qe = /* @__PURE__ */ Z(He, [["__scopeId", "data-v-0ae97a87"]]);
308
+ function Je() {
309
+ return re({
310
+ url: "/api/sysAuth/login",
311
+ method: "post",
312
+ data: {
313
+ account: "superadmin",
314
+ password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
315
+ tenantId: -1,
316
+ code: "",
317
+ codeId: 0
318
+ }
319
+ });
320
+ }
321
+ const We = { class: "login-wrap" }, ze = { class: "login-body" }, Ge = { class: "login-body-item left" }, Qe = { class: "title" }, Xe = { class: "login-body-item right" }, Ye = /* @__PURE__ */ te({
322
+ __name: "index",
323
+ props: {
324
+ oldSystemKey: {}
325
+ },
326
+ emits: ["change"],
327
+ setup(S, { emit: P }) {
328
+ const b = Te(), d = ie(le), { systemKey: k, systemInfo: v, loginUserInfo: u } = ge(d), m = M({
329
+ // sysCTitle: 'INSOFWORKS',
330
+ sysCTitle: "",
331
+ sysETitle: "",
332
+ // sysETitle: 'Dynamic Test Information System',
333
+ loginTitle: "账户密码登录",
334
+ tabs: [
335
+ {
336
+ name: "密码登录",
337
+ btnLabel: "登录",
338
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
339
+ },
340
+ {
341
+ name: "人脸识别",
342
+ btnLabel: "人脸识别",
343
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
344
+ },
345
+ {
346
+ name: "刷卡登录",
347
+ btnLabel: "登录",
348
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
349
+ }
350
+ ]
351
+ }), f = M("account"), _ = M(!1), w = M(!1), N = () => {
352
+ _.value = !0;
353
+ }, R = (t, a) => {
354
+ _.value = !1, t && F(a);
355
+ }, I = (t) => he(t), H = (t) => {
356
+ let a;
357
+ const s = be(t), n = _e(s), i = we(n), y = Ae(i, "parentPath");
358
+ return a = Ce(y), a;
359
+ }, r = (t, a) => {
360
+ var n, i, y;
361
+ const s = (a == null ? void 0 : a.userRoles) ?? (a == null ? void 0 : a.角色名称);
362
+ try {
363
+ if (a.layer && ((n = a == null ? void 0 : a.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN")
364
+ return "superAdmin";
365
+ if (Array.isArray(s)) {
366
+ if ((s == null ? void 0 : s.length) === 1) {
367
+ const o = t == null ? void 0 : t.find((e) => (e == null ? void 0 : e.roleName) === (s == null ? void 0 : s[0]) || e.角色名称 === (s == null ? void 0 : s[0])), C = I(o), c = H(o == null ? void 0 : o[C]);
368
+ return o && c && Array.isArray(c) ? o ? c == null ? void 0 : c.flatMap((e) => e.checkedButtons) : [] : [];
369
+ }
370
+ if ((s == null ? void 0 : s.length) > 1) {
371
+ let o = t == null ? void 0 : t.filter((e) => s == null ? void 0 : s.includes(e.roleName || (e == null ? void 0 : e.角色名称)));
372
+ const C = I(o == null ? void 0 : o[0]), c = (y = (i = o == null ? void 0 : o.map((e) => Array.isArray(e == null ? void 0 : e[C]) ? e == null ? void 0 : e[C] : [])) == null ? void 0 : i.flat()) == null ? void 0 : y.flatMap((e) => e.checkedButtons);
373
+ return (c == null ? void 0 : c.length) === 0 ? E.error("该用户没有权限,请联系管理员") : new Set(c);
374
+ }
375
+ }
376
+ if (typeof s == "string") {
377
+ const o = t == null ? void 0 : t.find((e) => (e == null ? void 0 : e.roleName) === s || (e == null ? void 0 : e.角色名称) === s), C = I(o), c = H(o == null ? void 0 : o[C]);
378
+ return o && c && Array.isArray(c) ? o ? c == null ? void 0 : c.flatMap((e) => e.checkedButtons) : [] : [];
379
+ }
380
+ } catch (o) {
381
+ throw new Error(o);
382
+ }
383
+ }, p = async (t) => {
384
+ var a, s;
385
+ try {
386
+ let n = [];
387
+ const i = await G({
388
+ key: {
389
+ // systemKey: user?.systemKey,
390
+ systemKey: k.value ? k.value : t == null ? void 0 : t.systemKey,
391
+ // pageKey: '/系统管理/角色管理',
392
+ pageKey: "系统管理/角色管理",
393
+ type: "data"
394
+ }
395
+ });
396
+ if (i.data.code === 200) {
397
+ const y = (s = (a = i.data) == null ? void 0 : a.result) == null ? void 0 : s.map((o) => o.value.tableData);
398
+ n = r(y, t);
399
+ }
400
+ if (n)
401
+ return Array.isArray(n) ? Array.from(n) : n;
402
+ throw E.error("获取用户权限失败,请联系管理员"), new Error("获取用户权限失败,请联系管理员");
403
+ } catch (n) {
404
+ throw E.error("获取用户权限失败,请联系管理员"), new Error(n);
405
+ }
406
+ }, K = async (t) => {
407
+ var a, s, n, i, y, o, C;
408
+ try {
409
+ let c = [], e, V, J;
410
+ k.value ? J = {
411
+ // pageKey: '/系统管理/用户管理',
412
+ pageKey: "系统管理/用户管理",
413
+ type: "data",
414
+ // 通过electron传递的值获取模型key,解决多账号导入同一模型,账号名重复权限失败问题
415
+ systemKey: k.value
416
+ } : J = {
417
+ // pageKey: '/系统管理/用户管理',
418
+ pageKey: "系统管理/用户管理",
419
+ type: "data"
420
+ };
421
+ const oe = await G({
422
+ key: J
423
+ });
424
+ let ee;
425
+ if (!sessionStorage.getItem("systemKey") || sessionStorage.getItem("systemKey") === "" ? ee = await G({
426
+ key: {
427
+ layer: "superAdmin"
428
+ // systemKey:sessionStorage.getItem('tenantKey')
429
+ }
430
+ }) : ee = await G({
431
+ key: {
432
+ layer: "superAdmin",
433
+ systemKey: sessionStorage.getItem("systemKey")
434
+ }
435
+ }), oe.data.code === 200 && ee.data.code === 200) {
436
+ const ue = (s = (a = ee.data) == null ? void 0 : a.result) == null ? void 0 : s.map((l) => {
437
+ var L, W;
438
+ return {
439
+ ...l.value.tableData,
440
+ layer: (L = l.key) == null ? void 0 : L.layer,
441
+ systemKey: (W = l == null ? void 0 : l.key) == null ? void 0 : W.systemKey,
442
+ id: l.id
443
+ };
444
+ }), fe = (i = (n = oe.data) == null ? void 0 : n.result) == null ? void 0 : i.map((l) => {
445
+ var L, W;
446
+ return {
447
+ ...l.value.tableData,
448
+ layer: (L = l.key) == null ? void 0 : L.layer,
449
+ systemKey: (W = l == null ? void 0 : l.key) == null ? void 0 : W.systemKey,
450
+ id: l.id
451
+ };
452
+ }), se = [...ue, ...fe];
453
+ if (e = se == null ? void 0 : se.find((l) => (l == null ? void 0 : l.account) === (t == null ? void 0 : t.account) || (l == null ? void 0 : l.账号) === (t == null ? void 0 : t.account)), e) {
454
+ if (((y = e.layer) == null ? void 0 : y.toUpperCase()) !== "SUPERADMIN" && (!(e != null && e.状态) || (e == null ? void 0 : e.状态) === "禁用" || (e == null ? void 0 : e.status) === "禁用")) {
455
+ E.error("该用户已被禁用,请联系管理员"), w.value = !1;
456
+ return;
457
+ }
458
+ c = await p(e);
459
+ const { privateKey: l } = await d.getModelSecretAsync(e);
460
+ let L;
461
+ if (e.password ? L = ((o = e.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? e.password : de(e.password, l) : L = ((C = e.layer) == null ? void 0 : C.toUpperCase()) === "SUPERADMIN" ? e.password : me, (t == null ? void 0 : t.password) === L)
462
+ V = e;
463
+ else
464
+ throw V = null, E.error("输入的密码错误,请重新输入"), w.value = !1, new Error("输入的密码错误,请重新输入");
465
+ } else
466
+ return E.error("该用户不存在,请重新输入");
467
+ }
468
+ return V && c ? {
469
+ matchedUser: V,
470
+ userAuthority: c
471
+ } : void 0;
472
+ } catch (c) {
473
+ throw new Error(c);
474
+ }
475
+ }, A = async (t) => {
476
+ var s, n, i;
477
+ const a = await K(t);
478
+ if (a != null && a.matchedUser) {
479
+ d.setLoginUserInfo(a.matchedUser), sessionStorage.setItem("authority", JSON.stringify(a.userAuthority));
480
+ const y = ((n = (s = a.matchedUser) == null ? void 0 : s.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
481
+ return sessionStorage.setItem("isSuperAdmin", JSON.stringify(y)), sessionStorage.setItem("systemKey", k.value ? k.value : (i = a.matchedUser) == null ? void 0 : i.systemKey), await $(a.matchedUser), !0;
482
+ } else
483
+ throw w.value = !1, new Error("该用户数据处理失败,请联系管理员");
484
+ }, $ = async (t) => {
485
+ var s, n, i, y, o, C, c, e, V;
486
+ const a = await G({
487
+ key: {
488
+ // pageKey: '/user',
489
+ layer: "superAdmin",
490
+ systemKey: k.value ? k.value : t == null ? void 0 : t.systemKey
491
+ // systemKey: user?.systemKey
492
+ }
493
+ });
494
+ if (a.data.code === 200 && (s = a.data) != null && s.result && Array.isArray((n = a.data) == null ? void 0 : n.result) && ((y = (i = a.data) == null ? void 0 : i.result) == null ? void 0 : y.length) > 0) {
495
+ const J = (V = (e = (c = (C = (o = a.data) == null ? void 0 : o.result) == null ? void 0 : C[0]) == null ? void 0 : c.value) == null ? void 0 : e.tableData) == null ? void 0 : V.account;
496
+ d.setSuperAdminInfo({
497
+ account: J
498
+ });
499
+ }
500
+ }, B = async () => {
501
+ var t, a, s;
502
+ try {
503
+ const n = await Je();
504
+ return ((t = n == null ? void 0 : n.data) == null ? void 0 : t.code) === 200 ? (sessionStorage.setItem("loginToken", (s = (a = n.data) == null ? void 0 : a.result) == null ? void 0 : s.accessToken), !0) : !1;
505
+ } catch (n) {
506
+ E.error(n);
507
+ }
508
+ }, O = async () => {
509
+ var t, a, s;
510
+ try {
511
+ const n = await ve.post("http://139.196.154.85:20024/api/sysAuth/login", {
512
+ account: "superadmin",
513
+ password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
514
+ codeId: 0,
515
+ code: ""
516
+ });
517
+ return ((t = n == null ? void 0 : n.data) == null ? void 0 : t.code) === 200 && sessionStorage.setItem("magicToken", (s = (a = n.data) == null ? void 0 : a.result) == null ? void 0 : s.accessToken), !0;
518
+ } catch {
519
+ return !0;
520
+ }
521
+ };
522
+ pe(async () => {
523
+ await B();
524
+ });
525
+ const F = async (t) => {
526
+ var i, y, o, C;
527
+ w.value = !0;
528
+ let a = [A(t), B(), O()];
529
+ const s = await Promise.all(a);
530
+ (s == null ? void 0 : s.every((c) => c)) && (await ke(), b.push("/"), d.setLogRecordAsync({
531
+ type: "登录",
532
+ data: {
533
+ account: ((i = u.value) == null ? void 0 : i.account) ?? ((y = u.value) == null ? void 0 : y.账号),
534
+ userName: ((o = u.value) == null ? void 0 : o.姓名) || ((C = u.value) == null ? void 0 : C.userName) || "未知"
535
+ }
536
+ }, "/login", "login"));
537
+ }, q = (t) => {
538
+ f.value = t, _.value = !1, w.value = !1;
539
+ }, ae = (t) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(t);
540
+ return (t, a) => (Y(), X("div", We, [
541
+ h("div", ze, [
542
+ h("div", Ge, [
543
+ T(Le, { class: "login-left-bg" }, {
544
+ img: g(() => {
545
+ var s, n, i, y;
546
+ return [
547
+ h("div", Qe, [
548
+ h("div", null, x(((s = j(v)) == null ? void 0 : s.EnglishName) || "INSOFWORKS"), 1),
549
+ h("div", null, x((n = j(v)) != null && n.chineseName && ae((i = j(v)) == null ? void 0 : i.chineseName) ? (y = j(v)) == null ? void 0 : y.chineseName : "工业软件集成开发平台"), 1)
550
+ ]),
551
+ a[0] || (a[0] = h("div", { class: "divide-line" }, null, -1))
552
+ ];
553
+ }),
554
+ _: 1
555
+ })
556
+ ]),
557
+ h("div", Xe, [
558
+ T(Ve, {
559
+ loading: w.value,
560
+ onClickLogin: N,
561
+ onHandleTabChange: q
562
+ }, {
563
+ title: g(() => [
564
+ z(x(m.value.loginTitle), 1)
565
+ ]),
566
+ tabLabel1: g(() => [
567
+ z(x(m.value.tabs[0].name), 1)
568
+ ]),
569
+ tabContent1: g(() => [
570
+ T(Re, {
571
+ activeTabName: f.value,
572
+ isClickLogin: _.value,
573
+ onHandleLoginFormChange: R
574
+ }, null, 8, ["activeTabName", "isClickLogin"])
575
+ ]),
576
+ tabButton1: g(() => [
577
+ z(x(m.value.tabs[0].btnLabel), 1)
578
+ ]),
579
+ tabLabel2: g(() => [
580
+ z(x(m.value.tabs[1].name), 1)
581
+ ]),
582
+ tabContent2: g(() => [
583
+ T(qe, {
584
+ systemKey: t.oldSystemKey,
585
+ activeTabName: f.value,
586
+ isClickLogin: _.value,
587
+ onHandleLoginFormChange: R
588
+ }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
589
+ ]),
590
+ tabButton2: g(() => [
591
+ z(x(m.value.tabs[1].btnLabel), 1)
592
+ ]),
593
+ _: 1
594
+ }, 8, ["loading"])
595
+ ])
596
+ ])
597
+ ]));
598
+ }
599
+ }), ot = /* @__PURE__ */ Z(Ye, [["__scopeId", "data-v-c56e9da8"]]);
600
+ export {
601
+ ot as default
602
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
2
2
  import { p as h, s as k, c as m, g as x } from "./index-DsSA-OiE.js";
3
3
  import { u as M } from "./index-l2JNYn9u.js";
4
- import { s as D } from "./index-CbbcH5oq.js";
4
+ import { s as D } from "./index-B9sOWZWH.js";
5
5
  import { a as T, d as S, f as w } from "./index-Ce60cKSI.js";
6
6
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const N = { class: "menu-content" }, E = /* @__PURE__ */ y({
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, createElementVNode as t, withDirectives as g, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
2
2
  import { S as I, t as x } from "./index-Bbjcv84T.js";
3
- import { s as w, a as L } from "./index-BgFjc2to.js";
3
+ import { s as w, a as L } from "./index-DerJOgVr.js";
4
4
  import "./index-BHtNKL1L.js";
5
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bmw4uN_h.js";
6
- import { d as E } from "./index-DVFTyM4M.js";
5
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BHN6MuWN.js";
6
+ import { d as E } from "./index-CXXjdjCc.js";
7
7
  import { u as N, s as U } from "./index-DsSA-OiE.js";
8
8
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const z = { class: "personal-wrapper" }, F = { class: "personal-box left" }, H = { class: "base-avatar" }, K = { class: "center-avatar" }, M = { class: "base-info" }, R = { class: "base-signature" }, j = { class: "personal-box right" }, q = /* @__PURE__ */ C({