ss-component-new 1.2.26 → 1.2.28

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 (115) hide show
  1. package/dist/{MTLLoader-j7rSXeZy.js → MTLLoader-BreJsr54.js} +1 -1
  2. package/dist/{MTLLoader-CSavblQS.cjs → MTLLoader-Cqv49Ps8.cjs} +1 -1
  3. package/dist/{OrbitControls-BYxGl2XB.js → OrbitControls-BCu-cP7k.js} +1 -1
  4. package/dist/{OrbitControls-dRON011u.cjs → OrbitControls-C956u7BP.cjs} +1 -1
  5. package/dist/{animationData-rmZ0EGb8.cjs → animationData-C3-BiUgV.cjs} +1 -1
  6. package/dist/{animationData-Br4BCkiq.js → animationData-CMjNjOqc.js} +4 -4
  7. package/dist/{array-CeASBMWY.cjs → array-0u9Sf3UC.cjs} +1 -1
  8. package/dist/{array-Cx8FbegO.js → array-BGIM4b6g.js} +2 -2
  9. package/dist/{dataUtil-RzgUhlgJ.cjs → dataUtil-BFjWNDM1.cjs} +1 -1
  10. package/dist/{dataUtil-CJxHUail.js → dataUtil-D9l7-XhR.js} +2 -2
  11. package/dist/{fileUtil-BM6WhafY.cjs → fileUtil-BFtJHTM0.cjs} +1 -1
  12. package/dist/{fileUtil-BVzW5lTY.js → fileUtil-D7XVXEhb.js} +1 -1
  13. package/dist/{iconfont-J7S-v_zE.js → iconfont-B9Cj3DQM.js} +2 -2
  14. package/dist/{iconfont-Dsx_JtWY.cjs → iconfont-BDfcbq2v.cjs} +1 -1
  15. package/dist/icons/svg//344/272/272/345/203/217.svg +1 -0
  16. package/dist/{index-ClzEamlP.js → index-3QB55tXZ.js} +7 -7
  17. package/dist/{index-BGm3sgAn.cjs → index-B33wtiif.cjs} +1 -1
  18. package/dist/{index-D7wMQSEM.js → index-B8bpiPXB.js} +1 -1
  19. package/dist/{index-BvgHldVC.cjs → index-B9TlIok8.cjs} +12 -12
  20. package/dist/{index-DbHiWNBM.cjs → index-BWxbWhC9.cjs} +1 -1
  21. package/dist/{index-BoTEVRWS.js → index-BZwQB2HO.js} +5 -5
  22. package/dist/{index-DRSU72SE.js → index-BaE0DPgC.js} +66 -59
  23. package/dist/{index-DN8avrWv.cjs → index-BccOOMaP.cjs} +1 -1
  24. package/dist/index-BgHY8wmn.cjs +1 -0
  25. package/dist/{index-DpxXt1oz.js → index-Boazv8yC.js} +2 -2
  26. package/dist/{index-D5YeHxKp.js → index-BqRVuEsE.js} +6 -6
  27. package/dist/{index-CyNvD7fs.js → index-BwLaQntz.js} +1 -1
  28. package/dist/{index-Dr7mB3zJ.js → index-C-8LROmP.js} +2 -2
  29. package/dist/{index-DcT0aYIX.js → index-C1lZkQG-.js} +423 -423
  30. package/dist/{index-DWBL8V_4.js → index-C5UpEVah.js} +2 -2
  31. package/dist/index-C5fTUrKx.js +573 -0
  32. package/dist/{index-BH-cEIyF.cjs → index-C9_Cxm8G.cjs} +1 -1
  33. package/dist/{index-D5fqqSXr.cjs → index-CBFF2bsB.cjs} +1 -1
  34. package/dist/{index-YhB_cMji.cjs → index-CC9RkSBT.cjs} +1 -1
  35. package/dist/{index-BJkToJcC.cjs → index-CK5VdzmO.cjs} +1 -1
  36. package/dist/{index-CeWLT1YO.js → index-CKY0sj_X.js} +3 -3
  37. package/dist/{index-Cm99VII_.js → index-CMwwUi6o.js} +6 -6
  38. package/dist/{index-DjMSxB8D.cjs → index-CP7b7BrB.cjs} +1 -1
  39. package/dist/{index-BU5WJczo.js → index-CZu3TggJ.js} +1 -1
  40. package/dist/{index-Bp0GMpLC.cjs → index-C_cWjavY.cjs} +1 -1
  41. package/dist/{index-DVv2nM9_.cjs → index-Cd9j5j41.cjs} +1 -1
  42. package/dist/{index-B7l9bX5c.cjs → index-Cwh5m4lg.cjs} +1 -1
  43. package/dist/index-D0XPyuy4.cjs +1 -0
  44. package/dist/{index-lw6M4N-Q.cjs → index-D3TgRd-7.cjs} +1 -1
  45. package/dist/{index-Ie0BUTFu.js → index-D5Dtcn-_.js} +6 -6
  46. package/dist/{index-Bp5zOMHT.cjs → index-DE-uHAMH.cjs} +1 -1
  47. package/dist/{index-T2VihBuZ.js → index-DHOcRi3S.js} +6 -6
  48. package/dist/{index-CMIII30g.cjs → index-DMyPjpxO.cjs} +1 -1
  49. package/dist/{index-BvB9p0W4.js → index-DR7aNxVH.js} +4 -4
  50. package/dist/{index-0dw7iEtO.cjs → index-DVqfroe6.cjs} +1 -1
  51. package/dist/{index-ggXXcZCO.js → index-DiTYB-a4.js} +63 -58
  52. package/dist/index-DnFxL5wb.cjs +1 -0
  53. package/dist/{index-CaGluCnk.js → index-DqR3IwgZ.js} +12 -12
  54. package/dist/{index-zAZNzNG-.js → index-DsCD1neC.js} +2 -2
  55. package/dist/{index-CNxiv6y5.js → index-Dx2X9pR1.js} +43 -43
  56. package/dist/{index-C2B83Ywj.cjs → index-GGokR_Lx.cjs} +1 -1
  57. package/dist/{index-7pDDKkwc.js → index-HduGypr9.js} +34 -34
  58. package/dist/index-LcnC2GQ4.cjs +1 -0
  59. package/dist/{index-DoWGbQss.js → index-OTxJnh9Z.js} +153 -153
  60. package/dist/{index-DodooTli.js → index-Rr9ZBYig.js} +2 -2
  61. package/dist/{index-BEfXSiWp.js → index-Sa2hQZ0h.js} +2 -2
  62. package/dist/{index-BkcjJQlg.cjs → index-TKouySTA.cjs} +1 -1
  63. package/dist/{index-veEr0Ju4.js → index-gPnrvvE9.js} +1324 -1321
  64. package/dist/{index-BPxe8bKe.js → index-gXbhagnF.js} +3 -3
  65. package/dist/{index-CAPstY_B.cjs → index-mpoVA-DC.cjs} +1 -1
  66. package/dist/{index-C9GfFRyr.cjs → index-uIVtG4RY.cjs} +1 -1
  67. package/dist/index-wQJN1jpI.js +2466 -0
  68. package/dist/index-zLkhy4JK.cjs +1 -0
  69. package/dist/{index-DFbvbOsE.js → index-zZ9bfGNx.js} +1 -1
  70. package/dist/{index-DMHh2MZZ.cjs → index-znR89ub7.cjs} +1 -1
  71. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DGl2lQmW.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js} +2 -2
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BWh0GUiI.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs} +1 -1
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BjBzi9R7.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BQiH2RRX.js} +11 -11
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BwjCaKYV.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-Dqpyi0E8.cjs} +1 -1
  75. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-D21h7jT_.cjs +37 -0
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DZGhek9_.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-PE_6dfIO.js} +12719 -12591
  77. package/dist/{index.vue_vue_type_style_index_1_lang-BHt4rvMd.js → index.vue_vue_type_style_index_1_lang-9ANlnWKt.js} +5 -5
  78. package/dist/index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs +32 -0
  79. package/dist/{index.vue_vue_type_style_index_1_lang-C2PJ2fvM.cjs → index.vue_vue_type_style_index_1_lang-D4RvHwPS.cjs} +1 -1
  80. package/dist/{index.vue_vue_type_style_index_1_lang-WD8HOZyf.js → index.vue_vue_type_style_index_1_lang-DwvuVXW6.js} +2580 -2471
  81. package/dist/{isString-BbPmUYHG.js → isString-BuBBWjRr.js} +1 -1
  82. package/dist/{main-DWa3MZxf.js → main-DpLQlLK2.js} +5 -5
  83. package/dist/{main-DlDkQh0n.cjs → main-Mx9r7ydp.cjs} +1 -1
  84. package/dist/ss-component.cjs +1 -1
  85. package/dist/ss-component.css +2 -2
  86. package/dist/ss-component.js +11 -11
  87. package/dist/ss-component2.cjs +1 -1
  88. package/dist/ss-component2.js +12 -12
  89. package/dist/{threeModel-CBsLcTcX.js → threeModel-CZ-qFwwk.js} +5 -5
  90. package/dist/{threeModel-Dt9Ounip.cjs → threeModel-DTwQnnAO.cjs} +1 -1
  91. package/dist/{threePreview-DSMFTIuC.cjs → threePreview-CUGoEzKf.cjs} +1 -1
  92. package/dist/{threePreview-D99A_IHZ.js → threePreview-DutKTPWH.js} +4 -4
  93. package/dist/{threeSceneView-BD22yXw4.js → threeSceneView-CzgWYHBw.js} +11 -11
  94. package/dist/{threeSceneView-Dv2uGsTN.cjs → threeSceneView-f1V-z4jr.cjs} +1 -1
  95. package/dist/{threeSceneViewForCPMPIP-CpBphI9E.js → threeSceneViewForCPMPIP-2sXIw3I1.js} +61 -61
  96. package/dist/{threeSceneViewForCPMPIP-DfaTaroP.cjs → threeSceneViewForCPMPIP-CojHDVHC.cjs} +1 -1
  97. package/dist/{threeTrackPathView-BGePzJh4.cjs → threeTrackPathView-BGHiOyJo.cjs} +1 -1
  98. package/dist/{threeTrackPathView-bFuXaesk.js → threeTrackPathView-DA4_8jas.js} +6 -6
  99. package/dist/{threeViewerHost-gGHqJpTR.js → threeViewerHost-BNObp9oA.js} +17 -17
  100. package/dist/{threeViewerHost-bQqnJLh9.cjs → threeViewerHost-D3WDKrIQ.cjs} +1 -1
  101. package/dist/{urdfTree-nXEMcLFV.cjs → urdfTree-CWStzmk2.cjs} +1 -1
  102. package/dist/{urdfTree-B2Zs54qS.js → urdfTree-CnkPddyT.js} +1 -1
  103. package/dist/{workpieceTreePanel-CXD_XizT.js → workpieceTreePanel-BvhFt3Xw.js} +5 -5
  104. package/dist/{workpieceTreePanel-Brforhya.cjs → workpieceTreePanel-DXyb_Wnw.cjs} +1 -1
  105. package/package.json +1 -1
  106. package/public/icons/svg//344/272/272/345/203/217.svg +1 -0
  107. package/dist/index-B3l8CoGZ.js +0 -2384
  108. package/dist/index-BRAUJGR3.cjs +0 -1
  109. package/dist/index-BjRAas3a.cjs +0 -1
  110. package/dist/index-Cf9NTS7v.cjs +0 -1
  111. package/dist/index-D3x3jleA.js +0 -654
  112. package/dist/index-DWTsFx-2.cjs +0 -1
  113. package/dist/index-Dc8TgzRR.cjs +0 -1
  114. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BKfBwnMQ.cjs +0 -37
  115. package/dist/index.vue_vue_type_style_index_1_lang-f2wxl9Ai.cjs +0 -32
@@ -1,654 +0,0 @@
1
- import { createElementBlock as Q, openBlock as O, createElementVNode as f, renderSlot as E, defineComponent as X, ref as B, resolveComponent as U, createVNode as b, withCtx as u, reactive as te, watch as Y, onMounted as de, unref as D, toDisplayString as L, createTextVNode as x } from "vue";
2
- import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { a as ne, E as S, u as ue, p as pe, s as fe, b as ge, g as $ } from "./index-7pDDKkwc.js";
4
- import { d as ye, r as ve, g as be, c as me, b as he, e as Ae, f as _e, h as we } from "./index.vue_vue_type_style_index_1_lang-WD8HOZyf.js";
5
- import { useRouter as Ce } from "vue-router";
6
- import { v as ke } from "./index-DodooTli.js";
7
- const Ie = {}, Ee = { class: "left-wrap" }, Se = { class: "left-bg" };
8
- function Te(k, T) {
9
- return O(), Q("div", Ee, [
10
- f("div", Se, [
11
- E(k.$slots, "img", {}, void 0, !0)
12
- ])
13
- ]);
14
- }
15
- const Ne = /* @__PURE__ */ F(Ie, [["render", Te], ["__scopeId", "data-v-9b7ee6c9"]]), Ke = { class: "right-wrap" }, Le = { class: "tab-content" }, Be = { class: "tab-tips" }, Ue = { class: "tab-content" }, Me = { class: "tab-tips" }, Re = { class: "tab-content" }, Pe = { class: "tab-tips" }, xe = /* @__PURE__ */ X({
16
- __name: "index",
17
- props: {
18
- tabList: {
19
- type: Array,
20
- default: []
21
- },
22
- loading: {
23
- type: Boolean,
24
- default: !1
25
- }
26
- },
27
- emits: ["clickLogin", "handleTabClick"],
28
- setup(k, { emit: T }) {
29
- const A = B("account"), d = T, v = () => {
30
- d("clickLogin", A.value);
31
- }, w = () => {
32
- d("handleTabClick", A.value);
33
- };
34
- return (i, m) => {
35
- const p = U("el-button"), c = U("el-tab-pane"), r = U("el-tabs");
36
- return O(), Q("div", Ke, [
37
- b(r, {
38
- modelValue: A.value,
39
- "onUpdate:modelValue": m[0] || (m[0] = (_) => A.value = _),
40
- class: "right-tabs",
41
- onTabClick: w
42
- }, {
43
- default: u(() => [
44
- b(c, { name: "account" }, {
45
- label: u(() => [
46
- E(i.$slots, "tabLabel1", {}, void 0, !0)
47
- ]),
48
- default: u(() => [
49
- f("div", Le, [
50
- E(i.$slots, "tabContent1", {}, void 0, !0)
51
- ]),
52
- f("div", {
53
- class: "tab-button special",
54
- onClick: v
55
- }, [
56
- b(p, { loading: k.loading }, {
57
- default: u(() => [
58
- E(i.$slots, "tabButton1", {}, void 0, !0)
59
- ]),
60
- _: 3
61
- }, 8, ["loading"])
62
- ]),
63
- f("div", Be, [
64
- E(i.$slots, "tabTips1", {}, void 0, !0)
65
- ])
66
- ]),
67
- _: 3
68
- }),
69
- b(c, { name: "face" }, {
70
- label: u(() => [
71
- E(i.$slots, "tabLabel2", {}, void 0, !0)
72
- ]),
73
- default: u(() => [
74
- f("div", Ue, [
75
- E(i.$slots, "tabContent2", {}, void 0, !0)
76
- ]),
77
- f("div", Me, [
78
- E(i.$slots, "tabTips2", {}, void 0, !0)
79
- ])
80
- ]),
81
- _: 3
82
- }),
83
- b(c, { name: "card" }, {
84
- label: u(() => [
85
- E(i.$slots, "tabLabel3", {}, void 0, !0)
86
- ]),
87
- default: u(() => [
88
- f("div", Re, [
89
- E(i.$slots, "tabContent3", {}, void 0, !0)
90
- ]),
91
- f("div", {
92
- class: "tab-button special",
93
- onClick: v
94
- }, [
95
- b(p, { loading: k.loading }, {
96
- default: u(() => [
97
- E(i.$slots, "tabButton3", {}, void 0, !0)
98
- ]),
99
- _: 3
100
- }, 8, ["loading"])
101
- ]),
102
- f("div", Pe, [
103
- E(i.$slots, "tabTips3", {}, void 0, !0)
104
- ])
105
- ]),
106
- _: 3
107
- })
108
- ]),
109
- _: 3
110
- }, 8, ["modelValue"])
111
- ]);
112
- };
113
- }
114
- }), De = /* @__PURE__ */ F(xe, [["__scopeId", "data-v-c2476df5"]]), Qe = { class: "account-wrap" }, Oe = /* @__PURE__ */ X({
115
- __name: "index",
116
- props: {
117
- activeTabName: {
118
- type: String,
119
- default: ""
120
- },
121
- isClickLogin: {
122
- type: Boolean,
123
- default: !1
124
- }
125
- },
126
- emits: ["handleLoginFormChange"],
127
- setup(k, { emit: T }) {
128
- const A = k, d = te({
129
- account: "",
130
- password: ""
131
- }), v = te({
132
- account: [
133
- { required: !0, message: "请输入账号", trigger: "blur" }
134
- ],
135
- password: [
136
- { required: !0, message: "请输入密码", trigger: "blur" }
137
- ]
138
- }), w = B(null), i = T;
139
- return Y(() => A.isClickLogin, (m) => {
140
- var p;
141
- m && (A == null ? void 0 : A.activeTabName) === "account" && ((p = w.value) == null || p.validate((c) => {
142
- var r;
143
- for (let _ in d)
144
- d.hasOwnProperty(_) && (d[_] = (r = d[_]) == null ? void 0 : r.trim());
145
- i("handleLoginFormChange", c, c ? d : null);
146
- }));
147
- }, {
148
- immediate: !0
149
- }), Y(() => A.activeTabName, (m) => {
150
- var p;
151
- m === "account" && ((p = w.value) == null || p.resetFields());
152
- }), (m, p) => {
153
- const c = U("svg-icon"), r = U("el-input"), _ = U("el-form-item"), N = U("el-form");
154
- return O(), Q("div", Qe, [
155
- b(N, {
156
- model: d,
157
- rules: v,
158
- ref_key: "formRef",
159
- ref: w
160
- }, {
161
- default: u(() => [
162
- b(_, {
163
- label: "",
164
- prop: "account"
165
- }, {
166
- default: u(() => [
167
- b(r, {
168
- class: "account-input",
169
- modelValue: d.account,
170
- "onUpdate:modelValue": p[0] || (p[0] = (I) => d.account = I),
171
- placeholder: "请输入账号",
172
- clearable: ""
173
- }, {
174
- prefix: u(() => [
175
- b(c, {
176
- name: "account",
177
- style: { width: "15px", height: "15px" }
178
- })
179
- ]),
180
- _: 1
181
- }, 8, ["modelValue"])
182
- ]),
183
- _: 1
184
- }),
185
- b(_, {
186
- label: "",
187
- prop: "password"
188
- }, {
189
- default: u(() => [
190
- b(r, {
191
- class: "account-input",
192
- modelValue: d.password,
193
- "onUpdate:modelValue": p[1] || (p[1] = (I) => d.password = I),
194
- type: "password",
195
- placeholder: "请输入密码",
196
- "show-password": "",
197
- clearable: ""
198
- }, {
199
- prefix: u(() => [
200
- b(c, {
201
- name: "password",
202
- style: { width: "15px", height: "15px" }
203
- })
204
- ]),
205
- _: 1
206
- }, 8, ["modelValue"])
207
- ]),
208
- _: 1
209
- })
210
- ]),
211
- _: 1
212
- }, 8, ["model", "rules"])
213
- ]);
214
- };
215
- }
216
- }), Fe = /* @__PURE__ */ F(Oe, [["__scopeId", "data-v-48037c0f"]]);
217
- function Ve(k) {
218
- return ne({
219
- url: "http://192.168.124.108:20013/api/face/face-verify",
220
- method: "post",
221
- data: k
222
- });
223
- }
224
- const Je = { class: "account-wrap" }, $e = { class: "video-wrap" }, Xe = /* @__PURE__ */ X({
225
- __name: "index",
226
- props: {
227
- activeTabName: {
228
- type: String,
229
- default: ""
230
- },
231
- isClickLogin: {
232
- type: Boolean,
233
- default: !1
234
- }
235
- },
236
- emits: ["handleLoginFormChange"],
237
- setup(k, { emit: T }) {
238
- const A = k, d = T, v = B(null), w = B(null);
239
- Y(() => A.isClickLogin, (c) => {
240
- c && (A == null || A.activeTabName);
241
- }, {
242
- immediate: !0
243
- });
244
- const i = async (c) => {
245
- if (!c)
246
- return;
247
- const r = new FormData();
248
- r.set("file", c);
249
- const _ = await Ve(r), { data: N } = _ || {}, { match: I, account: M, password: R } = N;
250
- if (!I) {
251
- S.error("识别失败,请重新识别!");
252
- return;
253
- }
254
- d("handleLoginFormChange", !0, {
255
- account: M,
256
- password: R
257
- });
258
- }, m = () => {
259
- if (!w.value || !v.value)
260
- return;
261
- const c = w.value, r = c.getContext("2d"), _ = v.value;
262
- c.width = 200, c.height = 200;
263
- const N = _.videoWidth || 640, I = _.videoHeight || 480, M = Math.min(200 / N, 200 / I), R = N * M, q = I * M, W = (200 - R) / 2, j = (200 - q) / 2;
264
- r == null || r.drawImage(_, 0, 0, N, I, W, j, R, q), c.toBlob((G) => {
265
- if (G) {
266
- const H = new File([G], "face.png", { type: "image/png" });
267
- i(H);
268
- }
269
- }, "image/png");
270
- }, p = async () => {
271
- if (!v.value)
272
- return;
273
- const c = v.value;
274
- try {
275
- const r = await navigator.mediaDevices.getUserMedia({
276
- video: { facingMode: "user" },
277
- // 前置;后置用 'environment'
278
- audio: !1
279
- });
280
- if (c) {
281
- const _ = c;
282
- _.srcObject = r;
283
- }
284
- } catch (r) {
285
- S.warning("摄像头失败: " + r.message);
286
- }
287
- };
288
- return de(() => {
289
- p();
290
- }), (c, r) => (O(), Q("div", Je, [
291
- f("div", $e, [
292
- f("video", {
293
- class: "face-video",
294
- ref_key: "videoRef",
295
- ref: v,
296
- id: "v",
297
- autoplay: "",
298
- playsinline: ""
299
- }, null, 512)
300
- ]),
301
- f("button", {
302
- class: "face-screenshot",
303
- onClick: m
304
- }, "人脸识别"),
305
- f("canvas", {
306
- ref_key: "canvasRef",
307
- ref: w,
308
- id: "canvas"
309
- }, null, 512)
310
- ]));
311
- }
312
- }), qe = /* @__PURE__ */ F(Xe, [["__scopeId", "data-v-4f612c1a"]]), Ge = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAd9JREFUWEftl71OAkEQx/97QC8XEj+iiTGexo/OnvgE0ChPIIXHQwgP4amxsYZGnkCtpbAxxiyJFEqCJie1yK7ZixhUuNtZYkLUa2/+M7+ZnbnbYTB87P3bIpi1BWCt34UEzpkUF35huWjimpmIlCbp8TMGbA7RX/uus27i2xjI9rgMC+i7jpFvI5EC+XEg2+NlSKTBMKmTuS5QlB2ApgRqz66TVXGDCmmIPhh7RxGl0bXrT15pWNLjVQZkdBuwF0i3qaPAv8StMNvjDwBmdIGQwJyfd+51xn7i4GbekvE7bd8SLQUUOi3fnElR0v3GvEPvaQOpHiIDKe9SlIQlTtq7K41BwexjPosXsQNmkWCCpjYCoqRMtP0HiirY76uQBWQRS1xalhCvnW4aQDmqCmHvR6rQsB/oKIMyClDOd53KoGxTHs8IoGpSKWOgeCI29ZhfaA0EOmpMi26n+beBAIzXkanjGLemDlpkrMbepGmjNMZTFuXY9D0dSF09wE7bhaWrsKD2IV+FgNrNtilwVKCK7zo5SgDqJY0EFJPMeSos1ilAKa++ISBruhoSUNi3Z1hA2+PqyLR/uPRLvm6qJnbqkk9dg0ziEDQV8qJIcE42DRbFnkp3lSZHiRZ8WqXfAFwe+He0YFLSAAAAAElFTkSuQmCC", Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAx1JREFUWEfFV01oE1EQnnmpYJRGL/6gYsGLVCoUzMGLNrO1B4sYKooXQT0JWtSK4KEHEVERPCjUHgqCQlFED4raUmP3bS0UhRQKnrTorQdFBBOkBZP97AuJbNo0+2KF7GlJ3sz3zcw3M2+Z6vxwnfHJmkAqlVrT0NCwB8BepdQuAOuJaEMxgK/M/M33/UlmfpvL5cY7Ojp+2gQXSiCdTq/IZrNniOg0gM1WTplniKi/sbHxbjwe/13NpioBrXUcwB0iarUBrnBmipnPiUh6KfslCXiet9/3/af/CFxmppQ6nEgkhiv5qkhAa90N4Ob/AC/5YOZLItK30OciAlrrAwAe24Iz8yul1A0imgPQ5ft+75LpZj4qIi+D/5cRMILLZDJejTXvcRxnwDgdGxtrzufzS9abiKZisVgiKMwyAlrr8wCu2UZvzjHzgIj0mHet9fH59uyvqnrmXhG5/bc0pZehoaFYNBpN27ZaoLY/mPk1EeUAmDnRFEJgZnZ2Nt7Z2ZkpBFA6rLXeB+B5LdEXM/ARwPZa7Jg5KSJvygi4rnuFiC7aOlJKPSCiR4lEYrw4L0aIaKWl/S3HcS6XEfA8b9T3/d2WDoxORhzHmQxk0JSv2cZeKfVunnj7whJ8ALDNwkFBpMy8Q0SOBQhMA9hkYW9sv4jIzoUEvgFYbeHAEOgFcKK9vf1JUf0tAN5b2BaOMPMvETHLrEyEtgQKTmKx2NpSP7uue4GIri6XgG0JTARDInIkkP5hs6ZrILC4BLWIkJlPicigAZyYmIjOzc19twU35yqKsJY2zGazG5PJZNY4c103SUQPayFARIvb0HYQMfOoiBwMpL8PwEkiMkPMkAl9Kg4i21HMzGdF5F4JxfO8TwA+Axg33RGGzsyVR3GxnUKXETM3iUih5lrrFiK6T0TdRPQCwCoLApWXkTG0WceRSKS1ra1tugSUSqWa5397RkRbwsBD13ExqqoXEqXUYD6fvx6JRLYCOEREXQDWWYCb9q1+IQkIq35XsoC46ncpDWSiftfyEom6fpgEhVW3TzMbdS/nTOi34XKc29j+AXyzojCfNKqJAAAAAElFTkSuQmCC", Ye = { class: "card-wrap" }, We = { class: "card-icon card" }, je = { class: "card-input" }, He = { class: "card-icon info" }, ze = /* @__PURE__ */ X({
313
- __name: "index",
314
- props: {
315
- activeTabName: {
316
- type: String,
317
- default: ""
318
- }
319
- },
320
- emits: ["handleCardInput"],
321
- setup(k, { emit: T }) {
322
- const A = k, d = B(""), v = T, w = (i) => {
323
- v("handleCardInput", i == null ? void 0 : i.trim());
324
- };
325
- return Y(() => A.activeTabName, (i) => {
326
- i && (d.value = "");
327
- }), (i, m) => {
328
- const p = U("el-image"), c = U("el-input");
329
- return O(), Q("div", Ye, [
330
- f("div", We, [
331
- b(p, {
332
- src: D(Ge),
333
- fit: "contain"
334
- }, null, 8, ["src"])
335
- ]),
336
- f("div", je, [
337
- b(c, {
338
- modelValue: d.value,
339
- "onUpdate:modelValue": m[0] || (m[0] = (r) => d.value = r),
340
- onChange: w,
341
- clearable: ""
342
- }, null, 8, ["modelValue"])
343
- ]),
344
- f("div", He, [
345
- b(p, {
346
- src: D(Ze),
347
- fit: "contain"
348
- }, null, 8, ["src"])
349
- ])
350
- ]);
351
- };
352
- }
353
- }), ea = /* @__PURE__ */ F(ze, [["__scopeId", "data-v-e8a73fc2"]]);
354
- function aa() {
355
- return ne({
356
- url: "/api/sysAuth/login",
357
- method: "post",
358
- data: {
359
- account: "superadmin",
360
- password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
361
- tenantId: -1,
362
- code: "",
363
- codeId: 0
364
- }
365
- });
366
- }
367
- const ta = { class: "login-wrap" }, na = { class: "login-body" }, sa = { class: "login-body-item left" }, oa = { class: "title" }, ca = { class: "login-body-item right" }, ra = /* @__PURE__ */ X({
368
- __name: "index",
369
- emits: ["change"],
370
- setup(k, { emit: T }) {
371
- const A = Ce(), d = ue(pe), { systemKey: v, systemInfo: w, loginUserInfo: i } = fe(d), m = B({
372
- // sysCTitle: 'INSOFWORKS',
373
- sysCTitle: "",
374
- sysETitle: "",
375
- // sysETitle: 'Dynamic Test Information System',
376
- loginTitle: "账户密码登录",
377
- tabs: [
378
- {
379
- name: "密码登录",
380
- btnLabel: "登录",
381
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
382
- },
383
- {
384
- name: "人脸识别",
385
- btnLabel: "人脸识别",
386
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
387
- },
388
- {
389
- name: "刷卡登录",
390
- btnLabel: "登录",
391
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
392
- }
393
- ]
394
- }), p = B("account"), c = B(!1), r = B(!1), _ = () => {
395
- c.value = !0;
396
- }, N = (a) => {
397
- c.value = !1, ee(a);
398
- }, I = (a, t) => {
399
- c.value = !1, a && ee(t);
400
- }, M = (a) => be(a), R = (a) => {
401
- let t;
402
- const n = me(a), s = he(n), g = Ae(s), h = _e(g, "parentPath");
403
- return t = we(h), t;
404
- }, q = (a, t) => {
405
- var s, g, h;
406
- const n = (t == null ? void 0 : t.userRoles) ?? (t == null ? void 0 : t.角色名称);
407
- try {
408
- if (t.layer && ((s = t == null ? void 0 : t.layer) == null ? void 0 : s.toUpperCase()) === "SUPERADMIN")
409
- return "superAdmin";
410
- if (Array.isArray(n)) {
411
- if ((n == null ? void 0 : n.length) === 1) {
412
- const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === (n == null ? void 0 : n[0]) || e.角色名称 === (n == null ? void 0 : n[0])), C = M(o), l = R(o == null ? void 0 : o[C]);
413
- return o && l && Array.isArray(l) ? o ? l == null ? void 0 : l.flatMap((e) => e.checkedButtons) : [] : [];
414
- }
415
- if ((n == null ? void 0 : n.length) > 1) {
416
- let o = a == null ? void 0 : a.filter((e) => n == null ? void 0 : n.includes(e.roleName || (e == null ? void 0 : e.角色名称)));
417
- const C = M(o == null ? void 0 : o[0]), l = (h = (g = o == null ? void 0 : o.map((e) => Array.isArray(e == null ? void 0 : e[C]) ? e == null ? void 0 : e[C] : [])) == null ? void 0 : g.flat()) == null ? void 0 : h.flatMap((e) => e.checkedButtons);
418
- return (l == null ? void 0 : l.length) === 0 ? S.error("该用户没有权限,请联系管理员") : new Set(l);
419
- }
420
- }
421
- if (typeof n == "string") {
422
- const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === n || (e == null ? void 0 : e.角色名称) === n), C = M(o), l = R(o == null ? void 0 : o[C]);
423
- return o && l && Array.isArray(l) ? o ? l == null ? void 0 : l.flatMap((e) => e.checkedButtons) : [] : [];
424
- }
425
- } catch (o) {
426
- throw new Error(o);
427
- }
428
- }, W = async (a) => {
429
- var t, n;
430
- try {
431
- let s = [];
432
- const g = await $({
433
- key: {
434
- // systemKey: user?.systemKey,
435
- systemKey: v.value ? v.value : a == null ? void 0 : a.systemKey,
436
- // pageKey: '/系统管理/角色管理',
437
- pageKey: "系统管理/角色管理",
438
- type: "data"
439
- }
440
- });
441
- if (g.data.code === 200) {
442
- const h = (n = (t = g.data) == null ? void 0 : t.result) == null ? void 0 : n.map((o) => o.value.tableData);
443
- s = q(h, a);
444
- }
445
- if (s)
446
- return Array.isArray(s) ? Array.from(s) : s;
447
- throw S.error("获取用户权限失败,请联系管理员"), new Error("获取用户权限失败,请联系管理员");
448
- } catch (s) {
449
- throw S.error("获取用户权限失败,请联系管理员"), new Error(s);
450
- }
451
- }, j = async (a) => {
452
- var t, n, s, g, h, o, C;
453
- try {
454
- let l = [], e, P, V;
455
- v.value ? V = {
456
- // pageKey: '/系统管理/用户管理',
457
- pageKey: "系统管理/用户管理",
458
- type: "data",
459
- // 通过electron传递的值获取模型key,解决多账号导入同一模型,账号名重复权限失败问题
460
- systemKey: v.value
461
- } : V = {
462
- // pageKey: '/系统管理/用户管理',
463
- pageKey: "系统管理/用户管理",
464
- type: "data"
465
- };
466
- const ae = await $({
467
- key: V
468
- });
469
- let Z;
470
- if (!sessionStorage.getItem("systemKey") || sessionStorage.getItem("systemKey") === "" ? Z = await $({
471
- key: {
472
- layer: "superAdmin"
473
- // systemKey:sessionStorage.getItem('tenantKey')
474
- }
475
- }) : Z = await $({
476
- key: {
477
- layer: "superAdmin",
478
- systemKey: sessionStorage.getItem("systemKey")
479
- }
480
- }), ae.data.code === 200 && Z.data.code === 200) {
481
- const ie = (n = (t = Z.data) == null ? void 0 : t.result) == null ? void 0 : n.map((y) => {
482
- var K, J;
483
- return {
484
- ...y.value.tableData,
485
- layer: (K = y.key) == null ? void 0 : K.layer,
486
- systemKey: (J = y == null ? void 0 : y.key) == null ? void 0 : J.systemKey,
487
- id: y.id
488
- };
489
- }), le = (g = (s = ae.data) == null ? void 0 : s.result) == null ? void 0 : g.map((y) => {
490
- var K, J;
491
- return {
492
- ...y.value.tableData,
493
- layer: (K = y.key) == null ? void 0 : K.layer,
494
- systemKey: (J = y == null ? void 0 : y.key) == null ? void 0 : J.systemKey,
495
- id: y.id
496
- };
497
- }), z = [...ie, ...le];
498
- if (e = z == null ? void 0 : z.find((y) => (y == null ? void 0 : y.account) === (a == null ? void 0 : a.account) || (y == null ? void 0 : y.账号) === (a == null ? void 0 : a.account)), e) {
499
- if (((h = e.layer) == null ? void 0 : h.toUpperCase()) !== "SUPERADMIN" && (!(e != null && e.状态) || (e == null ? void 0 : e.状态) === "禁用" || (e == null ? void 0 : e.status) === "禁用")) {
500
- S.error("该用户已被禁用,请联系管理员"), r.value = !1;
501
- return;
502
- }
503
- l = await W(e);
504
- const { privateKey: y } = await d.getModelSecretAsync(e);
505
- let K;
506
- if (e.password ? K = ((o = e.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? e.password : ye(e.password, y) : K = ((C = e.layer) == null ? void 0 : C.toUpperCase()) === "SUPERADMIN" ? e.password : ve, (a == null ? void 0 : a.password) === K)
507
- P = e;
508
- else
509
- throw P = null, S.error("输入的密码错误,请重新输入"), r.value = !1, new Error("输入的密码错误,请重新输入");
510
- } else
511
- return S.error("该用户不存在,请重新输入");
512
- }
513
- return P && l ? {
514
- matchedUser: P,
515
- userAuthority: l
516
- } : void 0;
517
- } catch (l) {
518
- throw new Error(l);
519
- }
520
- }, G = async (a) => {
521
- var n, s, g;
522
- const t = await j(a);
523
- if (t != null && t.matchedUser) {
524
- d.setLoginUserInfo(t.matchedUser), sessionStorage.setItem("authority", JSON.stringify(t.userAuthority));
525
- const h = ((s = (n = t.matchedUser) == null ? void 0 : n.layer) == null ? void 0 : s.toUpperCase()) === "SUPERADMIN";
526
- return sessionStorage.setItem("isSuperAdmin", JSON.stringify(h)), sessionStorage.setItem("systemKey", v.value ? v.value : (g = t.matchedUser) == null ? void 0 : g.systemKey), await H(t.matchedUser), !0;
527
- } else
528
- throw r.value = !1, new Error("该用户数据处理失败,请联系管理员");
529
- }, H = async (a) => {
530
- var n, s, g, h, o, C, l, e, P;
531
- const t = await $({
532
- key: {
533
- // pageKey: '/user',
534
- layer: "superAdmin",
535
- systemKey: v.value ? v.value : a == null ? void 0 : a.systemKey
536
- // systemKey: user?.systemKey
537
- }
538
- });
539
- if (t.data.code === 200 && (n = t.data) != null && n.result && Array.isArray((s = t.data) == null ? void 0 : s.result) && ((h = (g = t.data) == null ? void 0 : g.result) == null ? void 0 : h.length) > 0) {
540
- const V = (P = (e = (l = (C = (o = t.data) == null ? void 0 : o.result) == null ? void 0 : C[0]) == null ? void 0 : l.value) == null ? void 0 : e.tableData) == null ? void 0 : P.account;
541
- d.setSuperAdminInfo({
542
- account: V
543
- });
544
- }
545
- }, se = async () => {
546
- var a, t, n;
547
- try {
548
- const s = await aa();
549
- return ((a = s == null ? void 0 : s.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("loginToken", (n = (t = s.data) == null ? void 0 : t.result) == null ? void 0 : n.accessToken), !0) : !1;
550
- } catch (s) {
551
- S.error(s);
552
- }
553
- }, oe = async () => {
554
- var a, t, n;
555
- try {
556
- const s = await ge.post("http://139.196.154.85:20024/api/sysAuth/login", {
557
- account: "superadmin",
558
- password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
559
- codeId: 0,
560
- code: ""
561
- });
562
- return ((a = s == null ? void 0 : s.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("magicToken", (n = (t = s.data) == null ? void 0 : t.result) == null ? void 0 : n.accessToken), !0) : !1;
563
- } catch (s) {
564
- S.error(s);
565
- }
566
- }, ee = async (a) => {
567
- var g, h, o, C;
568
- r.value = !0;
569
- let t = [G(a), se(), oe()];
570
- const n = await Promise.all(t);
571
- (n == null ? void 0 : n.every((l) => l)) && (await ke(), A.push("/"), d.setLogRecordAsync({
572
- type: "登录",
573
- data: {
574
- account: ((g = i.value) == null ? void 0 : g.account) ?? ((h = i.value) == null ? void 0 : h.账号),
575
- userName: ((o = i.value) == null ? void 0 : o.姓名) || ((C = i.value) == null ? void 0 : C.userName) || "未知"
576
- }
577
- }, "/login", "login"));
578
- }, ce = (a) => {
579
- p.value = a, c.value = !1, r.value = !1;
580
- }, re = (a) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);
581
- return (a, t) => (O(), Q("div", ta, [
582
- f("div", na, [
583
- f("div", sa, [
584
- b(Ne, { class: "login-left-bg" }, {
585
- img: u(() => {
586
- var n, s, g, h;
587
- return [
588
- f("div", oa, [
589
- f("div", null, L(((n = D(w)) == null ? void 0 : n.EnglishName) || "INSOFWORKS"), 1),
590
- f("div", null, L((s = D(w)) != null && s.chineseName && re((g = D(w)) == null ? void 0 : g.chineseName) ? (h = D(w)) == null ? void 0 : h.chineseName : "工业软件集成开发平台"), 1)
591
- ]),
592
- t[0] || (t[0] = f("div", { class: "divide-line" }, null, -1))
593
- ];
594
- }),
595
- _: 1
596
- })
597
- ]),
598
- f("div", ca, [
599
- b(De, {
600
- loading: r.value,
601
- onClickLogin: _,
602
- onHandleTabClick: ce
603
- }, {
604
- title: u(() => [
605
- x(L(m.value.loginTitle), 1)
606
- ]),
607
- tabLabel1: u(() => [
608
- x(L(m.value.tabs[0].name), 1)
609
- ]),
610
- tabContent1: u(() => [
611
- b(Fe, {
612
- activeTabName: p.value,
613
- isClickLogin: c.value,
614
- onHandleLoginFormChange: I
615
- }, null, 8, ["activeTabName", "isClickLogin"])
616
- ]),
617
- tabButton1: u(() => [
618
- x(L(m.value.tabs[0].btnLabel), 1)
619
- ]),
620
- tabLabel2: u(() => [
621
- x(L(m.value.tabs[1].name), 1)
622
- ]),
623
- tabContent2: u(() => [
624
- b(qe, {
625
- activeTabName: p.value,
626
- isClickLogin: c.value,
627
- onHandleLoginFormChange: I
628
- }, null, 8, ["activeTabName", "isClickLogin"])
629
- ]),
630
- tabButton2: u(() => [
631
- x(L(m.value.tabs[1].btnLabel), 1)
632
- ]),
633
- tabLabel3: u(() => [
634
- x(L(m.value.tabs[2].name), 1)
635
- ]),
636
- tabContent3: u(() => [
637
- b(ea, {
638
- activeTabName: p.value,
639
- onHandleCardInput: N
640
- }, null, 8, ["activeTabName"])
641
- ]),
642
- tabButton3: u(() => [
643
- x(L(m.value.tabs[2].btnLabel), 1)
644
- ]),
645
- _: 1
646
- }, 8, ["loading"])
647
- ])
648
- ])
649
- ]));
650
- }
651
- }), ga = /* @__PURE__ */ F(ra, [["__scopeId", "data-v-3c402c7d"]]);
652
- export {
653
- ga as default
654
- };