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,577 +0,0 @@
1
- import { createElementBlock as J, openBlock as W, createElementVNode as m, renderSlot as $, defineComponent as Y, ref as E, resolveComponent as x, createVNode as k, withCtx as y, reactive as se, watch as ae, onMounted as ne, toDisplayString as B, unref as X, createTextVNode as j } from "vue";
2
- import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { a as oe, u as ce, p as re, E as N, s as ye, b as pe, g as q } from "./index-DsSA-OiE.js";
4
- import { d as ie, r as ge, g as ve, c as me, b as be, e as he, f as _e, h as we } from "./index-l2JNYn9u.js";
5
- import { useRouter as Ae } from "vue-router";
6
- import { v as Ce } from "./index-BYAakLtY.js";
7
- const ke = {}, Se = { class: "left-wrap" }, Ie = { class: "left-bg" };
8
- function Te(T, M) {
9
- return W(), J("div", Se, [
10
- m("div", Ie, [
11
- $(T.$slots, "img", {}, void 0, !0)
12
- ])
13
- ]);
14
- }
15
- const Ke = /* @__PURE__ */ z(ke, [["render", Te], ["__scopeId", "data-v-9b7ee6c9"]]), Ne = { class: "right-wrap" }, Le = { class: "tab-content" }, $e = { class: "tab-tips" }, Ee = { class: "tab-content" }, Me = { class: "tab-tips" }, Ue = /* @__PURE__ */ Y({
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", "handleTabChange"],
28
- setup(T, { emit: M }) {
29
- const b = E("account"), d = M, S = () => {
30
- d("clickLogin", b.value);
31
- }, h = (u) => {
32
- d("handleTabChange", u);
33
- };
34
- return (u, g) => {
35
- const p = x("el-button"), _ = x("el-tab-pane"), v = x("el-tabs");
36
- return W(), J("div", Ne, [
37
- k(v, {
38
- modelValue: b.value,
39
- "onUpdate:modelValue": g[0] || (g[0] = (r) => b.value = r),
40
- class: "right-tabs",
41
- onTabChange: h
42
- }, {
43
- default: y(() => [
44
- k(_, { name: "account" }, {
45
- label: y(() => [
46
- $(u.$slots, "tabLabel1", {}, void 0, !0)
47
- ]),
48
- default: y(() => [
49
- m("div", Le, [
50
- $(u.$slots, "tabContent1", {}, void 0, !0)
51
- ]),
52
- m("div", {
53
- class: "tab-button special",
54
- onClick: S
55
- }, [
56
- k(p, { loading: T.loading }, {
57
- default: y(() => [
58
- $(u.$slots, "tabButton1", {}, void 0, !0)
59
- ]),
60
- _: 3
61
- }, 8, ["loading"])
62
- ]),
63
- m("div", $e, [
64
- $(u.$slots, "tabTips1", {}, void 0, !0)
65
- ])
66
- ]),
67
- _: 3
68
- }),
69
- k(_, { name: "face" }, {
70
- label: y(() => [
71
- $(u.$slots, "tabLabel2", {}, void 0, !0)
72
- ]),
73
- default: y(() => [
74
- m("div", Ee, [
75
- $(u.$slots, "tabContent2", {}, void 0, !0)
76
- ]),
77
- m("div", Me, [
78
- $(u.$slots, "tabTips2", {}, void 0, !0)
79
- ])
80
- ]),
81
- _: 3
82
- })
83
- ]),
84
- _: 3
85
- }, 8, ["modelValue"])
86
- ]);
87
- };
88
- }
89
- }), Pe = /* @__PURE__ */ z(Ue, [["__scopeId", "data-v-516c8b4a"]]), Ve = { class: "account-wrap" }, Be = /* @__PURE__ */ Y({
90
- __name: "index",
91
- props: {
92
- activeTabName: {
93
- type: String,
94
- default: ""
95
- },
96
- isClickLogin: {
97
- type: Boolean,
98
- default: !1
99
- }
100
- },
101
- emits: ["handleLoginFormChange"],
102
- setup(T, { emit: M }) {
103
- const b = T, d = se({
104
- account: "",
105
- password: ""
106
- }), S = se({
107
- account: [
108
- { required: !0, message: "请输入账号", trigger: "blur" }
109
- ],
110
- password: [
111
- { required: !0, message: "请输入密码", trigger: "blur" }
112
- ]
113
- }), h = E(null), u = M;
114
- return ae(() => b.isClickLogin, (g) => {
115
- var p;
116
- g && (b == null ? void 0 : b.activeTabName) === "account" && ((p = h.value) == null || p.validate((_) => {
117
- var v;
118
- for (let r in d)
119
- d.hasOwnProperty(r) && (d[r] = (v = d[r]) == null ? void 0 : v.trim());
120
- u("handleLoginFormChange", _, _ ? d : null);
121
- }));
122
- }, {
123
- immediate: !0
124
- }), ae(() => b.activeTabName, (g) => {
125
- var p;
126
- g === "account" && ((p = h.value) == null || p.resetFields());
127
- }), (g, p) => {
128
- const _ = x("svg-icon"), v = x("el-input"), r = x("el-form-item"), w = x("el-form");
129
- return W(), J("div", Ve, [
130
- k(w, {
131
- model: d,
132
- rules: S,
133
- ref_key: "formRef",
134
- ref: h
135
- }, {
136
- default: y(() => [
137
- k(r, {
138
- label: "",
139
- prop: "account"
140
- }, {
141
- default: y(() => [
142
- k(v, {
143
- class: "account-input",
144
- modelValue: d.account,
145
- "onUpdate:modelValue": p[0] || (p[0] = (A) => d.account = A),
146
- placeholder: "请输入账号",
147
- clearable: ""
148
- }, {
149
- prefix: y(() => [
150
- k(_, {
151
- name: "account",
152
- style: { width: "15px", height: "15px" }
153
- })
154
- ]),
155
- _: 1
156
- }, 8, ["modelValue"])
157
- ]),
158
- _: 1
159
- }),
160
- k(r, {
161
- label: "",
162
- prop: "password"
163
- }, {
164
- default: y(() => [
165
- k(v, {
166
- class: "account-input",
167
- modelValue: d.password,
168
- "onUpdate:modelValue": p[1] || (p[1] = (A) => d.password = A),
169
- type: "password",
170
- placeholder: "请输入密码",
171
- "show-password": "",
172
- clearable: ""
173
- }, {
174
- prefix: y(() => [
175
- k(_, {
176
- name: "password",
177
- style: { width: "15px", height: "15px" }
178
- })
179
- ]),
180
- _: 1
181
- }, 8, ["modelValue"])
182
- ]),
183
- _: 1
184
- })
185
- ]),
186
- _: 1
187
- }, 8, ["model", "rules"])
188
- ]);
189
- };
190
- }
191
- }), xe = /* @__PURE__ */ z(Be, [["__scopeId", "data-v-48037c0f"]]);
192
- function De(T) {
193
- return oe({
194
- url: "http://139.196.154.85:20015/api/face/face-verify",
195
- method: "post",
196
- data: T
197
- });
198
- }
199
- const Re = { class: "account-wrap" }, Oe = { class: "video-wrap" }, Fe = /* @__PURE__ */ Y({
200
- __name: "index",
201
- props: {
202
- systemKey: { default: "" },
203
- activeTabName: { default: "" },
204
- isClickLogin: { type: Boolean, default: !1 }
205
- },
206
- emits: ["handleLoginFormChange"],
207
- setup(T, { emit: M }) {
208
- const b = T, d = M, S = ce(re), h = E(null), u = E(null);
209
- let g = !1;
210
- const p = async (r) => {
211
- if (!r)
212
- return;
213
- const w = new FormData();
214
- w.set("file", r), b.systemKey && w.set("systemKey", b.systemKey), console.log("Face Recognition", b.systemKey);
215
- const A = await De(w), { data: I } = A || {}, { account: L, password: U, layer: D } = (I == null ? void 0 : I.data) || {}, R = I == null ? void 0 : I.msg;
216
- if (!L) {
217
- N.warning(R || "识别失败,请重新识别!");
218
- return;
219
- }
220
- const { privateKey: O } = await S.getModelSecretAsync();
221
- let P = U;
222
- D !== "superAdmin" && (P = ie(U, O)), d("handleLoginFormChange", !0, {
223
- account: L,
224
- password: P
225
- });
226
- }, _ = () => {
227
- if (!u.value || !h.value)
228
- return;
229
- const r = u.value, w = r.getContext("2d"), A = h.value;
230
- r.width = 200, r.height = 200;
231
- const I = A.videoWidth || 640, L = A.videoHeight || 480, U = Math.min(200 / I, 200 / L), D = I * U, R = L * U, O = (200 - D) / 2, P = (200 - R) / 2;
232
- w == null || w.drawImage(A, 0, 0, I, L, O, P, D, R), r.toBlob((G) => {
233
- if (G) {
234
- const Z = new File([G], "face.png", { type: "image/png" });
235
- p(Z);
236
- }
237
- }, "image/png");
238
- }, v = async () => {
239
- if (!h.value || g)
240
- return;
241
- const r = h.value;
242
- try {
243
- const w = await navigator.mediaDevices.getUserMedia({
244
- video: { facingMode: "user" },
245
- // 前置;后置用 'environment'
246
- audio: !1
247
- });
248
- if (r) {
249
- const A = r;
250
- A.srcObject = w, g = !0;
251
- }
252
- } catch {
253
- N.warning("摄像头启动失败");
254
- }
255
- };
256
- return ae(() => b.activeTabName, (r) => {
257
- r === "face" && !g && v();
258
- }), ne(() => {
259
- v();
260
- }), (r, w) => (W(), J("div", Re, [
261
- m("div", Oe, [
262
- m("video", {
263
- class: "face-video",
264
- ref_key: "videoRef",
265
- ref: h,
266
- id: "v",
267
- autoplay: "",
268
- playsinline: ""
269
- }, null, 512)
270
- ]),
271
- m("button", {
272
- class: "face-screenshot",
273
- onClick: _
274
- }, "人脸识别"),
275
- m("canvas", {
276
- ref_key: "canvasRef",
277
- ref: u,
278
- id: "canvas"
279
- }, null, 512)
280
- ]));
281
- }
282
- }), He = /* @__PURE__ */ z(Fe, [["__scopeId", "data-v-5538dabd"]]);
283
- function je() {
284
- return oe({
285
- url: "/api/sysAuth/login",
286
- method: "post",
287
- data: {
288
- account: "superadmin",
289
- password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
290
- tenantId: -1,
291
- code: "",
292
- codeId: 0
293
- }
294
- });
295
- }
296
- const qe = { class: "login-wrap" }, Je = { class: "login-body" }, We = { class: "login-body-item left" }, ze = { class: "title" }, Ge = { class: "login-body-item right" }, Qe = /* @__PURE__ */ Y({
297
- __name: "index",
298
- props: {
299
- oldSystemKey: {}
300
- },
301
- emits: ["change"],
302
- setup(T, { emit: M }) {
303
- const b = Ae(), d = ce(re), { systemKey: S, systemInfo: h, loginUserInfo: u } = ye(d), g = E({
304
- // sysCTitle: 'INSOFWORKS',
305
- sysCTitle: "",
306
- sysETitle: "",
307
- // sysETitle: 'Dynamic Test Information System',
308
- loginTitle: "账户密码登录",
309
- tabs: [
310
- {
311
- name: "密码登录",
312
- btnLabel: "登录",
313
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
314
- },
315
- {
316
- name: "人脸识别",
317
- btnLabel: "人脸识别",
318
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
319
- },
320
- {
321
- name: "刷卡登录",
322
- btnLabel: "登录",
323
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
324
- }
325
- ]
326
- }), p = E("account"), _ = E(!1), v = E(!1), r = () => {
327
- _.value = !0;
328
- }, w = (a, t) => {
329
- _.value = !1, a && Z(t);
330
- }, A = (a) => ve(a), I = (a) => {
331
- let t;
332
- const s = me(a), n = be(s), i = he(n), f = _e(i, "parentPath");
333
- return t = we(f), t;
334
- }, L = (a, t) => {
335
- var n, i, f;
336
- const s = (t == null ? void 0 : t.userRoles) ?? (t == null ? void 0 : t.角色名称);
337
- try {
338
- if (t.layer && ((n = t == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN")
339
- return "superAdmin";
340
- if (Array.isArray(s)) {
341
- if ((s == null ? void 0 : s.length) === 1) {
342
- const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === (s == null ? void 0 : s[0]) || e.角色名称 === (s == null ? void 0 : s[0])), C = A(o), c = I(o == null ? void 0 : o[C]);
343
- return o && c && Array.isArray(c) ? o ? c == null ? void 0 : c.flatMap((e) => e.checkedButtons) : [] : [];
344
- }
345
- if ((s == null ? void 0 : s.length) > 1) {
346
- let o = a == null ? void 0 : a.filter((e) => s == null ? void 0 : s.includes(e.roleName || (e == null ? void 0 : e.角色名称)));
347
- const C = A(o == null ? void 0 : o[0]), c = (f = (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 : f.flatMap((e) => e.checkedButtons);
348
- return (c == null ? void 0 : c.length) === 0 ? N.error("该用户没有权限,请联系管理员") : new Set(c);
349
- }
350
- }
351
- if (typeof s == "string") {
352
- const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === s || (e == null ? void 0 : e.角色名称) === s), C = A(o), c = I(o == null ? void 0 : o[C]);
353
- return o && c && Array.isArray(c) ? o ? c == null ? void 0 : c.flatMap((e) => e.checkedButtons) : [] : [];
354
- }
355
- } catch (o) {
356
- throw new Error(o);
357
- }
358
- }, U = async (a) => {
359
- var t, s;
360
- try {
361
- let n = [];
362
- const i = await q({
363
- key: {
364
- // systemKey: user?.systemKey,
365
- systemKey: S.value ? S.value : a == null ? void 0 : a.systemKey,
366
- // pageKey: '/系统管理/角色管理',
367
- pageKey: "系统管理/角色管理",
368
- type: "data"
369
- }
370
- });
371
- if (i.data.code === 200) {
372
- const f = (s = (t = i.data) == null ? void 0 : t.result) == null ? void 0 : s.map((o) => o.value.tableData);
373
- n = L(f, a);
374
- }
375
- if (n)
376
- return Array.isArray(n) ? Array.from(n) : n;
377
- throw N.error("获取用户权限失败,请联系管理员"), new Error("获取用户权限失败,请联系管理员");
378
- } catch (n) {
379
- throw N.error("获取用户权限失败,请联系管理员"), new Error(n);
380
- }
381
- }, D = async (a) => {
382
- var t, s, n, i, f, o, C;
383
- try {
384
- let c = [], e, V, F;
385
- S.value ? F = {
386
- // pageKey: '/系统管理/用户管理',
387
- pageKey: "系统管理/用户管理",
388
- type: "data",
389
- // 通过electron传递的值获取模型key,解决多账号导入同一模型,账号名重复权限失败问题
390
- systemKey: S.value
391
- } : F = {
392
- // pageKey: '/系统管理/用户管理',
393
- pageKey: "系统管理/用户管理",
394
- type: "data"
395
- };
396
- const te = await q({
397
- key: F
398
- });
399
- let Q;
400
- if (!sessionStorage.getItem("systemKey") || sessionStorage.getItem("systemKey") === "" ? Q = await q({
401
- key: {
402
- layer: "superAdmin"
403
- // systemKey:sessionStorage.getItem('tenantKey')
404
- }
405
- }) : Q = await q({
406
- key: {
407
- layer: "superAdmin",
408
- systemKey: sessionStorage.getItem("systemKey")
409
- }
410
- }), te.data.code === 200 && Q.data.code === 200) {
411
- const ue = (s = (t = Q.data) == null ? void 0 : t.result) == null ? void 0 : s.map((l) => {
412
- var K, H;
413
- return {
414
- ...l.value.tableData,
415
- layer: (K = l.key) == null ? void 0 : K.layer,
416
- systemKey: (H = l == null ? void 0 : l.key) == null ? void 0 : H.systemKey,
417
- id: l.id
418
- };
419
- }), fe = (i = (n = te.data) == null ? void 0 : n.result) == null ? void 0 : i.map((l) => {
420
- var K, H;
421
- return {
422
- ...l.value.tableData,
423
- layer: (K = l.key) == null ? void 0 : K.layer,
424
- systemKey: (H = l == null ? void 0 : l.key) == null ? void 0 : H.systemKey,
425
- id: l.id
426
- };
427
- }), ee = [...ue, ...fe];
428
- if (e = ee == null ? void 0 : ee.find((l) => (l == null ? void 0 : l.account) === (a == null ? void 0 : a.account) || (l == null ? void 0 : l.账号) === (a == null ? void 0 : a.account)), e) {
429
- if (((f = e.layer) == null ? void 0 : f.toUpperCase()) !== "SUPERADMIN" && (!(e != null && e.状态) || (e == null ? void 0 : e.状态) === "禁用" || (e == null ? void 0 : e.status) === "禁用")) {
430
- N.error("该用户已被禁用,请联系管理员"), v.value = !1;
431
- return;
432
- }
433
- c = await U(e);
434
- const { privateKey: l } = await d.getModelSecretAsync(e);
435
- let K;
436
- if (e.password ? K = ((o = e.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? e.password : ie(e.password, l) : K = ((C = e.layer) == null ? void 0 : C.toUpperCase()) === "SUPERADMIN" ? e.password : ge, (a == null ? void 0 : a.password) === K)
437
- V = e;
438
- else
439
- throw V = null, N.error("输入的密码错误,请重新输入"), v.value = !1, new Error("输入的密码错误,请重新输入");
440
- } else
441
- return N.error("该用户不存在,请重新输入");
442
- }
443
- return V && c ? {
444
- matchedUser: V,
445
- userAuthority: c
446
- } : void 0;
447
- } catch (c) {
448
- throw new Error(c);
449
- }
450
- }, R = async (a) => {
451
- var s, n, i;
452
- const t = await D(a);
453
- if (t != null && t.matchedUser) {
454
- d.setLoginUserInfo(t.matchedUser), sessionStorage.setItem("authority", JSON.stringify(t.userAuthority));
455
- const f = ((n = (s = t.matchedUser) == null ? void 0 : s.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
456
- return sessionStorage.setItem("isSuperAdmin", JSON.stringify(f)), sessionStorage.setItem("systemKey", S.value ? S.value : (i = t.matchedUser) == null ? void 0 : i.systemKey), await O(t.matchedUser), !0;
457
- } else
458
- throw v.value = !1, new Error("该用户数据处理失败,请联系管理员");
459
- }, O = async (a) => {
460
- var s, n, i, f, o, C, c, e, V;
461
- const t = await q({
462
- key: {
463
- // pageKey: '/user',
464
- layer: "superAdmin",
465
- systemKey: S.value ? S.value : a == null ? void 0 : a.systemKey
466
- // systemKey: user?.systemKey
467
- }
468
- });
469
- if (t.data.code === 200 && (s = t.data) != null && s.result && Array.isArray((n = t.data) == null ? void 0 : n.result) && ((f = (i = t.data) == null ? void 0 : i.result) == null ? void 0 : f.length) > 0) {
470
- const F = (V = (e = (c = (C = (o = t.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;
471
- d.setSuperAdminInfo({
472
- account: F
473
- });
474
- }
475
- }, P = async () => {
476
- var a, t, s;
477
- try {
478
- const n = await je();
479
- return ((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("loginToken", (s = (t = n.data) == null ? void 0 : t.result) == null ? void 0 : s.accessToken), !0) : !1;
480
- } catch (n) {
481
- N.error(n);
482
- }
483
- }, G = async () => {
484
- var a, t, s;
485
- try {
486
- const n = await pe.post("http://139.196.154.85:20024/api/sysAuth/login", {
487
- account: "superadmin",
488
- password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
489
- codeId: 0,
490
- code: ""
491
- });
492
- return ((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 200 && sessionStorage.setItem("magicToken", (s = (t = n.data) == null ? void 0 : t.result) == null ? void 0 : s.accessToken), !0;
493
- } catch {
494
- return !0;
495
- }
496
- };
497
- ne(async () => {
498
- await P();
499
- });
500
- const Z = async (a) => {
501
- var i, f, o, C;
502
- v.value = !0;
503
- let t = [R(a), P(), G()];
504
- const s = await Promise.all(t);
505
- (s == null ? void 0 : s.every((c) => c)) && (await Ce(), b.push("/"), d.setLogRecordAsync({
506
- type: "登录",
507
- data: {
508
- account: ((i = u.value) == null ? void 0 : i.account) ?? ((f = u.value) == null ? void 0 : f.账号),
509
- userName: ((o = u.value) == null ? void 0 : o.姓名) || ((C = u.value) == null ? void 0 : C.userName) || "未知"
510
- }
511
- }, "/login", "login"));
512
- }, le = (a) => {
513
- p.value = a, _.value = !1, v.value = !1;
514
- }, de = (a) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);
515
- return (a, t) => (W(), J("div", qe, [
516
- m("div", Je, [
517
- m("div", We, [
518
- k(Ke, { class: "login-left-bg" }, {
519
- img: y(() => {
520
- var s, n, i, f;
521
- return [
522
- m("div", ze, [
523
- m("div", null, B(((s = X(h)) == null ? void 0 : s.EnglishName) || "INSOFWORKS"), 1),
524
- m("div", null, B((n = X(h)) != null && n.chineseName && de((i = X(h)) == null ? void 0 : i.chineseName) ? (f = X(h)) == null ? void 0 : f.chineseName : "工业软件集成开发平台"), 1)
525
- ]),
526
- t[0] || (t[0] = m("div", { class: "divide-line" }, null, -1))
527
- ];
528
- }),
529
- _: 1
530
- })
531
- ]),
532
- m("div", Ge, [
533
- k(Pe, {
534
- loading: v.value,
535
- onClickLogin: r,
536
- onHandleTabChange: le
537
- }, {
538
- title: y(() => [
539
- j(B(g.value.loginTitle), 1)
540
- ]),
541
- tabLabel1: y(() => [
542
- j(B(g.value.tabs[0].name), 1)
543
- ]),
544
- tabContent1: y(() => [
545
- k(xe, {
546
- activeTabName: p.value,
547
- isClickLogin: _.value,
548
- onHandleLoginFormChange: w
549
- }, null, 8, ["activeTabName", "isClickLogin"])
550
- ]),
551
- tabButton1: y(() => [
552
- j(B(g.value.tabs[0].btnLabel), 1)
553
- ]),
554
- tabLabel2: y(() => [
555
- j(B(g.value.tabs[1].name), 1)
556
- ]),
557
- tabContent2: y(() => [
558
- k(He, {
559
- systemKey: a.oldSystemKey,
560
- activeTabName: p.value,
561
- isClickLogin: _.value,
562
- onHandleLoginFormChange: w
563
- }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
564
- ]),
565
- tabButton2: y(() => [
566
- j(B(g.value.tabs[1].btnLabel), 1)
567
- ]),
568
- _: 1
569
- }, 8, ["loading"])
570
- ])
571
- ])
572
- ]));
573
- }
574
- }), sa = /* @__PURE__ */ z(Qe, [["__scopeId", "data-v-c56e9da8"]]);
575
- export {
576
- sa as default
577
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=require("./index-C8qRkCgn.cjs"),k=require("./index-H18D4EBa.cjs"),G=require("vue-router"),Q=require("./index-CvPFDCfO.cjs"),X={},Y={class:"left-wrap"},Z={class:"left-bg"};function ee(V,T){return e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("div",Z,[e.renderSlot(V.$slots,"img",{},void 0,!0)])])}const te=P._export_sfc(X,[["render",ee],["__scopeId","data-v-9b7ee6c9"]]),ae={class:"right-wrap"},ne={class:"tab-content"},oe={class:"tab-tips"},se={class:"tab-content"},re={class:"tab-tips"},ce=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(V,{emit:T}){const v=e.ref("account"),p=T,A=()=>{p("clickLogin",v.value)},b=f=>{p("handleTabChange",f)};return(f,m)=>{const g=e.resolveComponent("el-button"),_=e.resolveComponent("el-tab-pane"),h=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(h,{modelValue:v.value,"onUpdate:modelValue":m[0]||(m[0]=l=>v.value=l),class:"right-tabs",onTabChange:b},{default:e.withCtx(()=>[e.createVNode(_,{name:"account"},{label:e.withCtx(()=>[e.renderSlot(f.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",ne,[e.renderSlot(f.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:A},[e.createVNode(g,{loading:V.loading},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",oe,[e.renderSlot(f.$slots,"tabTips1",{},void 0,!0)])]),_:3}),e.createVNode(_,{name:"face"},{label:e.withCtx(()=>[e.renderSlot(f.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",se,[e.renderSlot(f.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",re,[e.renderSlot(f.$slots,"tabTips2",{},void 0,!0)])]),_:3})]),_:3},8,["modelValue"])])}}}),le=P._export_sfc(ce,[["__scopeId","data-v-516c8b4a"]]),ie={class:"account-wrap"},de=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(V,{emit:T}){const v=V,p=e.reactive({account:"",password:""}),A=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),b=e.ref(null),f=T;return e.watch(()=>v.isClickLogin,m=>{var g;m&&(v==null?void 0:v.activeTabName)==="account"&&((g=b.value)==null||g.validate(_=>{var h;for(let l in p)p.hasOwnProperty(l)&&(p[l]=(h=p[l])==null?void 0:h.trim());f("handleLoginFormChange",_,_?p:null)}))},{immediate:!0}),e.watch(()=>v.activeTabName,m=>{var g;m==="account"&&((g=b.value)==null||g.resetFields())}),(m,g)=>{const _=e.resolveComponent("svg-icon"),h=e.resolveComponent("el-input"),l=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(w,{model:p,rules:A,ref_key:"formRef",ref:b},{default:e.withCtx(()=>[e.createVNode(l,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(h,{class:"account-input",modelValue:p.account,"onUpdate:modelValue":g[0]||(g[0]=C=>p.account=C),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(_,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(l,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(h,{class:"account-input",modelValue:p.password,"onUpdate:modelValue":g[1]||(g[1]=C=>p.password=C),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(_,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),ue=P._export_sfc(de,[["__scopeId","data-v-48037c0f"]]);function pe(V){return u.service({url:"http://139.196.154.85:20015/api/face/face-verify",method:"post",data:V})}const fe={class:"account-wrap"},ye={class:"video-wrap"},ge=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(V,{emit:T}){const v=V,p=T,A=u.useLoginState(u.pinia),b=e.ref(null),f=e.ref(null);let m=!1;const g=async l=>{if(!l)return;const w=new FormData;w.set("file",l),v.systemKey&&w.set("systemKey",v.systemKey),console.log("Face Recognition",v.systemKey);const C=await pe(w),{data:S}=C||{},{account:x,password:I,layer:L}=(S==null?void 0:S.data)||{},$=S==null?void 0:S.msg;if(!x){u.ElMessage.warning($||"识别失败,请重新识别!");return}const{privateKey:D}=await A.getModelSecretAsync();let K=I;L!=="superAdmin"&&(K=k.decryptData(I,D)),p("handleLoginFormChange",!0,{account:x,password:K})},_=()=>{if(!f.value||!b.value)return;const l=f.value,w=l.getContext("2d"),C=b.value;l.width=200,l.height=200;const S=C.videoWidth||640,x=C.videoHeight||480,I=Math.min(200/S,200/x),L=S*I,$=x*I,D=(200-L)/2,K=(200-$)/2;w==null||w.drawImage(C,0,0,S,x,D,K,L,$),l.toBlob(R=>{if(R){const O=new File([R],"face.png",{type:"image/png"});g(O)}},"image/png")},h=async()=>{if(!b.value||m)return;const l=b.value;try{const w=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1});if(l){const C=l;C.srcObject=w,m=!0}}catch{u.ElMessage.warning("摄像头启动失败")}};return e.watch(()=>v.activeTabName,l=>{l==="face"&&!m&&h()}),e.onMounted(()=>{h()}),(l,w)=>(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("div",ye,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:b,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("button",{class:"face-screenshot",onClick:_},"人脸识别"),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:f,id:"canvas"},null,512)]))}}),me=P._export_sfc(ge,[["__scopeId","data-v-5538dabd"]]);function he(){const V={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return u.service({url:"/api/sysAuth/login",method:"post",data:V})}const ve={class:"login-wrap"},be={class:"login-body"},_e={class:"login-body-item left"},we={class:"title"},Ce={class:"login-body-item right"},Ne=e.defineComponent({__name:"index",props:{oldSystemKey:{}},emits:["change"],setup(V,{emit:T}){const v=G.useRouter(),p=u.useLoginState(u.pinia),{systemKey:A,systemInfo:b,loginUserInfo:f}=u.storeToRefs(p),m=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浏览器请使用极速模式"}]}),g=e.ref("account"),_=e.ref(!1),h=e.ref(!1),l=()=>{_.value=!0},w=(a,n)=>{_.value=!1,a&&O(n)},C=a=>k.getFirstArrayProperty(a),S=a=>{let n;const o=k.convertArrayToTree(a),s=k.addPathToTree(o),i=k.getLeafNodesRecursive(s),y=k.groupByField(i,"parentPath");return n=k.handleRowAuthorityRender(y),n},x=(a,n)=>{var s,i,y;const o=(n==null?void 0:n.userRoles)??(n==null?void 0:n.角色名称);try{if(n.layer&&((s=n==null?void 0:n.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN")return"superAdmin";if(Array.isArray(o)){if((o==null?void 0:o.length)===1){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===(o==null?void 0:o[0])||t.角色名称===(o==null?void 0:o[0])),N=C(r),c=S(r==null?void 0:r[N]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}if((o==null?void 0:o.length)>1){let r=a==null?void 0:a.filter(t=>o==null?void 0:o.includes(t.roleName||(t==null?void 0:t.角色名称)));const N=C(r==null?void 0:r[0]),c=(y=(i=r==null?void 0:r.map(t=>Array.isArray(t==null?void 0:t[N])?t==null?void 0:t[N]:[]))==null?void 0:i.flat())==null?void 0:y.flatMap(t=>t.checkedButtons);return(c==null?void 0:c.length)===0?u.ElMessage.error("该用户没有权限,请联系管理员"):new Set(c)}}if(typeof o=="string"){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===o||(t==null?void 0:t.角色名称)===o),N=C(r),c=S(r==null?void 0:r[N]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}}catch(r){throw new Error(r)}},I=async a=>{var n,o;try{let s=[];const i=await u.getInsofDataApi({key:{systemKey:A.value?A.value:a==null?void 0:a.systemKey,pageKey:"系统管理/角色管理",type:"data"}});if(i.data.code===200){const y=(o=(n=i.data)==null?void 0:n.result)==null?void 0:o.map(r=>r.value.tableData);s=x(y,a)}if(s)return Array.isArray(s)?Array.from(s):s;throw u.ElMessage.error("获取用户权限失败,请联系管理员"),new Error("获取用户权限失败,请联系管理员")}catch(s){throw u.ElMessage.error("获取用户权限失败,请联系管理员"),new Error(s)}},L=async a=>{var n,o,s,i,y,r,N;try{let c=[],t,M,B;A.value?B={pageKey:"系统管理/用户管理",type:"data",systemKey:A.value}:B={pageKey:"系统管理/用户管理",type:"data"};const j=await u.getInsofDataApi({key:B});let q;if(!sessionStorage.getItem("systemKey")||sessionStorage.getItem("systemKey")===""?q=await u.getInsofDataApi({key:{layer:"superAdmin"}}):q=await u.getInsofDataApi({key:{layer:"superAdmin",systemKey:sessionStorage.getItem("systemKey")}}),j.data.code===200&&q.data.code===200){const W=(o=(n=q.data)==null?void 0:n.result)==null?void 0:o.map(d=>{var E,U;return{...d.value.tableData,layer:(E=d.key)==null?void 0:E.layer,systemKey:(U=d==null?void 0:d.key)==null?void 0:U.systemKey,id:d.id}}),z=(i=(s=j.data)==null?void 0:s.result)==null?void 0:i.map(d=>{var E,U;return{...d.value.tableData,layer:(E=d.key)==null?void 0:E.layer,systemKey:(U=d==null?void 0:d.key)==null?void 0:U.systemKey,id:d.id}}),H=[...W,...z];if(t=H==null?void 0:H.find(d=>(d==null?void 0:d.account)===(a==null?void 0:a.account)||(d==null?void 0:d.账号)===(a==null?void 0:a.account)),t){if(((y=t.layer)==null?void 0:y.toUpperCase())!=="SUPERADMIN"&&(!(t!=null&&t.状态)||(t==null?void 0:t.状态)==="禁用"||(t==null?void 0:t.status)==="禁用")){u.ElMessage.error("该用户已被禁用,请联系管理员"),h.value=!1;return}c=await I(t);const{privateKey:d}=await p.getModelSecretAsync(t);let E;if(t.password?E=((r=t.layer)==null?void 0:r.toUpperCase())==="SUPERADMIN"?t.password:k.decryptData(t.password,d):E=((N=t.layer)==null?void 0:N.toUpperCase())==="SUPERADMIN"?t.password:k.resetPassword,(a==null?void 0:a.password)===E)M=t;else throw M=null,u.ElMessage.error("输入的密码错误,请重新输入"),h.value=!1,new Error("输入的密码错误,请重新输入")}else return u.ElMessage.error("该用户不存在,请重新输入")}return M&&c?{matchedUser:M,userAuthority:c}:void 0}catch(c){throw new Error(c)}},$=async a=>{var o,s,i;const n=await L(a);if(n!=null&&n.matchedUser){p.setLoginUserInfo(n.matchedUser),sessionStorage.setItem("authority",JSON.stringify(n.userAuthority));const y=((s=(o=n.matchedUser)==null?void 0:o.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN";return sessionStorage.setItem("isSuperAdmin",JSON.stringify(y)),sessionStorage.setItem("systemKey",A.value?A.value:(i=n.matchedUser)==null?void 0:i.systemKey),await D(n.matchedUser),!0}else throw h.value=!1,new Error("该用户数据处理失败,请联系管理员")},D=async a=>{var o,s,i,y,r,N,c,t,M;const n=await u.getInsofDataApi({key:{layer:"superAdmin",systemKey:A.value?A.value:a==null?void 0:a.systemKey}});if(n.data.code===200&&(o=n.data)!=null&&o.result&&Array.isArray((s=n.data)==null?void 0:s.result)&&((y=(i=n.data)==null?void 0:i.result)==null?void 0:y.length)>0){const B=(M=(t=(c=(N=(r=n.data)==null?void 0:r.result)==null?void 0:N[0])==null?void 0:c.value)==null?void 0:t.tableData)==null?void 0:M.account;p.setSuperAdminInfo({account:B})}},K=async()=>{var a,n,o;try{const s=await he();return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("loginToken",(o=(n=s.data)==null?void 0:n.result)==null?void 0:o.accessToken),!0):!1}catch(s){u.ElMessage.error(s)}},R=async()=>{var a,n,o;try{const s=await u.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});return((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&sessionStorage.setItem("magicToken",(o=(n=s.data)==null?void 0:n.result)==null?void 0:o.accessToken),!0}catch{return!0}};e.onMounted(async()=>{await K()});const O=async a=>{var i,y,r,N;h.value=!0;let n=[$(a),K(),R()];const o=await Promise.all(n);(o==null?void 0:o.every(c=>c))&&(await Q.verifyStructureDataToStore(),v.push("/"),p.setLogRecordAsync({type:"登录",data:{account:((i=f.value)==null?void 0:i.account)??((y=f.value)==null?void 0:y.账号),userName:((r=f.value)==null?void 0:r.姓名)||((N=f.value)==null?void 0:N.userName)||"未知"}},"/login","login"))},F=a=>{g.value=a,_.value=!1,h.value=!1},J=a=>/^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);return(a,n)=>(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",be,[e.createElementVNode("div",_e,[e.createVNode(te,{class:"login-left-bg"},{img:e.withCtx(()=>{var o,s,i,y;return[e.createElementVNode("div",we,[e.createElementVNode("div",null,e.toDisplayString(((o=e.unref(b))==null?void 0:o.EnglishName)||"INSOFWORKS"),1),e.createElementVNode("div",null,e.toDisplayString((s=e.unref(b))!=null&&s.chineseName&&J((i=e.unref(b))==null?void 0:i.chineseName)?(y=e.unref(b))==null?void 0:y.chineseName:"工业软件集成开发平台"),1)]),n[0]||(n[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",Ce,[e.createVNode(le,{loading:h.value,onClickLogin:l,onHandleTabChange:F},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(ue,{activeTabName:g.value,isClickLogin:_.value,onHandleLoginFormChange:w},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(me,{systemKey:a.oldSystemKey,activeTabName:g.value,isClickLogin:_.value,onHandleLoginFormChange:w},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),Ae=P._export_sfc(Ne,[["__scopeId","data-v-c56e9da8"]]);exports.default=Ae;
@@ -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