ss-component-new 1.3.321 → 1.3.323

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 (121) hide show
  1. package/dist/{MTLLoader-CK9k2OkC.js → MTLLoader-CWm4zRXg.js} +1 -1
  2. package/dist/{MTLLoader-sFjooHYy.cjs → MTLLoader-D31u_J1I.cjs} +1 -1
  3. package/dist/{OrbitControls-s3zz-OdY.js → OrbitControls-BHymD-uS.js} +1 -1
  4. package/dist/{OrbitControls-C8tvN177.cjs → OrbitControls-CNPfT-k2.cjs} +1 -1
  5. package/dist/{URDFLoader-F13ne6AZ.cjs → URDFLoader-B6fSdZBW.cjs} +1 -1
  6. package/dist/{URDFLoader-C4CxlYaQ.js → URDFLoader-CwxwkM1Z.js} +2 -2
  7. package/dist/{animationData-30iUya9L.cjs → animationData-Cj4Vg9K7.cjs} +1 -1
  8. package/dist/{animationData-Bq0ZKGU5.js → animationData-Dr4AL7Tn.js} +15 -15
  9. package/dist/{array-Bv-GB6_m.js → array-4MUsfO8Y.js} +4 -4
  10. package/dist/{array-Bnm7Uy8H.cjs → array-DhFIb8Ci.cjs} +1 -1
  11. package/dist/clone-D6y-bsE3.cjs +1 -0
  12. package/dist/{clone-BkoeZZPJ.js → clone-DkUTKKWA.js} +1 -1
  13. package/dist/{dayjs.min-D2kum5JL.js → dayjs.min-BL2Zt4iO.js} +1 -1
  14. package/dist/{dayjs.min-CKeZNApM.cjs → dayjs.min-DYXCWUDw.cjs} +1 -1
  15. package/dist/{iconfont-CAf85VWB.js → iconfont-B4tW5MMA.js} +2 -2
  16. package/dist/{iconfont-m42I_Zch.cjs → iconfont-sC2feAth.cjs} +1 -1
  17. package/dist/{JSEncrypt-B36c1iN5.js → index-4L13fekz.js} +743 -453
  18. package/dist/index-7psGt_5p.cjs +1 -0
  19. package/dist/{index-BVH050w0.cjs → index-8S3bQzsS.cjs} +1 -1
  20. package/dist/{index-DwxZZ2Rv.js → index-B1u8xeDs.js} +2 -2
  21. package/dist/{index-86Qtt4Gi.cjs → index-B88VGc4X.cjs} +2 -2
  22. package/dist/{index-DG7fwVK4.js → index-BBFKG5Lg.js} +3667 -3954
  23. package/dist/{index-TdRQ4U-0.cjs → index-BBtFM-Ge.cjs} +1 -1
  24. package/dist/{index-BuytoK__.cjs → index-BE9ZWUsI.cjs} +1 -1
  25. package/dist/{index-_WSPThGL.cjs → index-BFlrYtOA.cjs} +1 -1
  26. package/dist/{index-BG_BTIbd.js → index-BGsbzbfR.js} +1 -1
  27. package/dist/{index-CQVWTddk.js → index-BNEyTIe4.js} +4 -4
  28. package/dist/{index-BhssV5Si.js → index-BRxMnV1e.js} +3 -3
  29. package/dist/{index-B1vAZHjo.js → index-BU1ISY19.js} +1 -1
  30. package/dist/{index-C6e8tITh.js → index-BWNRm72Z.js} +1194 -1185
  31. package/dist/{index-Cf8X898z.cjs → index-BbtC7Ji7.cjs} +1 -1
  32. package/dist/{index-BbN4AWqw.js → index-BiHyvosO.js} +2 -2
  33. package/dist/index-Bkqa7S3G.js +132 -0
  34. package/dist/{index-C4FN-3yG.cjs → index-BlX6PtgC.cjs} +1 -1
  35. package/dist/{index-DyNe1ivN.js → index-BnKm-Z6I.js} +3 -3
  36. package/dist/index-BnpnirTe.js +9581 -0
  37. package/dist/{index-DcEc7R08.js → index-BoX2OxZA.js} +4 -4
  38. package/dist/{index-xRIUu3ui.js → index-ByOP4S4w.js} +70 -71
  39. package/dist/{index-BY8CAuth.cjs → index-C1eYjrgp.cjs} +1 -1
  40. package/dist/{index-DLlv5Kx4.js → index-C5Ftg2Ji.js} +9 -9
  41. package/dist/{index-BfoNwJYn.cjs → index-CO4nfCVV.cjs} +1 -1
  42. package/dist/{index-DTia9oJS.js → index-CURV4Sc-.js} +4 -4
  43. package/dist/{index-BfGzv-hd.js → index-CXS2rLtC.js} +1 -1
  44. package/dist/{index-EwzDPuOE.js → index-CdBuyUt1.js} +6 -6
  45. package/dist/{JSEncrypt-IYbV4kRj.cjs → index-Cg7sjq06.cjs} +11 -11
  46. package/dist/index-ChruFvf_.cjs +2 -0
  47. package/dist/{index-C8xNjOoe.cjs → index-Ci8QRYNC.cjs} +1 -1
  48. package/dist/index-CkhEA2q9.cjs +1 -0
  49. package/dist/{index-CG6BDUaD.js → index-CmuaqOdl.js} +1 -1
  50. package/dist/{index-CB-G5qY8.cjs → index-CoGh0s71.cjs} +1 -1
  51. package/dist/{index-D6Rv9ZER.cjs → index-D8TUy7GH.cjs} +1 -1
  52. package/dist/{index-Dxa2zPqr.cjs → index-D8sIT3Vh.cjs} +1 -1
  53. package/dist/{index-MSe7REup.cjs → index-DBT-8yul.cjs} +1 -1
  54. package/dist/{index-kCIwjtpa.cjs → index-DM4xlAcv.cjs} +1 -1
  55. package/dist/{index-CUvGyQdt.js → index-DN-7yQww.js} +11 -10
  56. package/dist/{index-BS1qv-TP.cjs → index-DON2Zslz.cjs} +1 -1
  57. package/dist/{index-CCMOSYej.js → index-DPBG_wGE.js} +61 -60
  58. package/dist/{index-CgyXQw5s.cjs → index-DR7h_uyW.cjs} +1 -1
  59. package/dist/index-DUvD0wQS.cjs +1 -0
  60. package/dist/index-DayoUCBG.cjs +1 -0
  61. package/dist/{index-CTi_kU2w.cjs → index-Dfv0Mqza.cjs} +1 -1
  62. package/dist/index-DjT2Wfww.cjs +7 -0
  63. package/dist/index-DmGKehIr.js +666 -0
  64. package/dist/{index-EZOEpeg0.js → index-Dn7_myZr.js} +1 -1
  65. package/dist/index-DqCM7s8O.cjs +104 -0
  66. package/dist/{index-CBshL1g5.js → index-DuIvsQ90.js} +6 -6
  67. package/dist/{index-DKlVcN6L.cjs → index-JU7i7uT2.cjs} +1 -1
  68. package/dist/{index-DtjSUQQ4.cjs → index-MoS_Z1Sz.cjs} +1 -1
  69. package/dist/{index-Chkv6RvP.js → index-bSrw4Jt0.js} +2 -2
  70. package/dist/{index-0hNM9dP5.js → index-d9w5FXdk.js} +3 -3
  71. package/dist/{index-B-TORwhC.js → index-gbjjuq3H.js} +2 -2
  72. package/dist/{index-DH0ChZga.js → index-lH4Qm1Ga.js} +1 -1
  73. package/dist/{index-BmDdag7O.cjs → index-tIBP_Zfx.cjs} +1 -1
  74. package/dist/{index-DweESdia.js → index-umip598j.js} +1 -1
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D06b2AXV.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B6QAxDwV.js} +1843 -1848
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B1YdRpLC.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DXfPRq7d.cjs} +62 -62
  77. package/dist/{main-vQ17tgzX.cjs → main-DQcF01Xl.cjs} +1 -1
  78. package/dist/{main-BjTVrhEn.js → main-eAThV5_B.js} +4 -4
  79. package/dist/{menu-B5Ed9tCx.js → menu-B6brhvAI.js} +2 -1
  80. package/dist/{menu-FU5yiMy8.cjs → menu-D-MiErGd.cjs} +1 -1
  81. package/dist/{menuIndex-CqjGgoWs.cjs → menuIndex-B0wuhry0.cjs} +1 -1
  82. package/dist/{menuIndex-Bofzhsc4.js → menuIndex-uEOgSHtu.js} +1 -1
  83. package/dist/ss-component.cjs +1 -1
  84. package/dist/ss-component.css +1 -1
  85. package/dist/ss-component.js +12 -12
  86. package/dist/ss-component2.cjs +1 -1
  87. package/dist/ss-component2.js +12 -12
  88. package/dist/{threeModel-DV88nk0c.js → threeModel-BEEBOb-O.js} +4 -4
  89. package/dist/{threeModel-B0JqdXMa.cjs → threeModel-VpTZXnvK.cjs} +1 -1
  90. package/dist/{threePreview-YeMZY7Qw.cjs → threePreview-Q8fSB5U0.cjs} +1 -1
  91. package/dist/{threePreview-fM_yCMMk.js → threePreview-w_rSKqjy.js} +4 -4
  92. package/dist/{threeSceneView-B0Si-K-g.js → threeSceneView-BEX9gMj3.js} +16 -15
  93. package/dist/{threeSceneView-DNqHyTyD.cjs → threeSceneView-_RnUHKEx.cjs} +1 -1
  94. package/dist/{threeSceneViewForCPMPIP-QqobgKqL.js → threeSceneViewForCPMPIP-C9VdJLKv.js} +8 -8
  95. package/dist/{threeSceneViewForCPMPIP-B7VfFwXj.cjs → threeSceneViewForCPMPIP-CB2f5jlV.cjs} +1 -1
  96. package/dist/{threeTrackPathView-7k2jorHI.cjs → threeTrackPathView-92QVfAiq.cjs} +1 -1
  97. package/dist/{threeTrackPathView-4fzrYO07.js → threeTrackPathView-BeCkYlv6.js} +4 -4
  98. package/dist/{threeViewerHost-BfyPonp9.cjs → threeViewerHost-72UwjSXh.cjs} +1 -1
  99. package/dist/{threeViewerHost-_yA6hGHE.js → threeViewerHost-DdoyfVK0.js} +3 -3
  100. package/dist/{urdfTree-DK450tLa.cjs → urdfTree-B72ps0XA.cjs} +1 -1
  101. package/dist/{urdfTree-Crc6_c_f.js → urdfTree-DY_PJG4H.js} +1 -1
  102. package/dist/{workpieceTreePanel-g8lvT_yP.js → workpieceTreePanel-B3oPVOh9.js} +4 -4
  103. package/dist/{workpieceTreePanel-a72VDGqM.cjs → workpieceTreePanel-ZO1UvaT0.cjs} +1 -1
  104. package/package.json +1 -1
  105. package/dist/clone-D6Ofpm75.cjs +0 -1
  106. package/dist/index-BBuhs0ay.cjs +0 -1
  107. package/dist/index-B_K-miXW.cjs +0 -1
  108. package/dist/index-Bi3chwDQ.cjs +0 -104
  109. package/dist/index-C7RuokDP.cjs +0 -1
  110. package/dist/index-CFjmSYEv.cjs +0 -1
  111. package/dist/index-CLiXOvYt.js +0 -159
  112. package/dist/index-CMDhafac.js +0 -620
  113. package/dist/index-CjYwnKjV.js +0 -56
  114. package/dist/index-CwTW_wuh.js +0 -9561
  115. package/dist/index-DLQrTFGN.cjs +0 -1
  116. package/dist/index-DmBnQ7BX.cjs +0 -2
  117. package/dist/index-aziCJXBJ.cjs +0 -7
  118. package/dist/obj/model.mtl +0 -42
  119. package/dist/obj/model.obj +0 -26110
  120. package/public/obj/model.mtl +0 -42
  121. package/public/obj/model.obj +0 -26110
@@ -0,0 +1,666 @@
1
+ import { createElementBlock as I, openBlock as R, createElementVNode as m, renderSlot as F, defineComponent as q, ref as k, resolveComponent as w, createVNode as l, withCtx as s, unref as D, reactive as z, computed as se, onMounted as le, createBlock as ce, watch as P, Fragment as re, createTextVNode as x, onBeforeUnmount as ue, createCommentVNode as de, toDisplayString as V } from "vue";
2
+ import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import { b as H, p as E, s as J, l as me, d as pe, u as fe, a as _e, e as ge } from "./menu-B6brhvAI.js";
4
+ import { _ as ae } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
5
+ import "./index-4L13fekz.js";
6
+ import { u as ve } from "./index-CXS2rLtC.js";
7
+ import { E as W } from "./request-CoGtW0Ux.js";
8
+ import { useRouter as be } from "vue-router";
9
+ import { u as he, l as ye, v as Ce } from "./index-BWNRm72Z.js";
10
+ const we = {}, Le = { class: "left-wrap" }, Ue = { class: "left-bg" };
11
+ function Te(v, p) {
12
+ return R(), I("div", Le, [
13
+ m("div", Ue, [
14
+ F(v.$slots, "img", {}, void 0, !0)
15
+ ])
16
+ ]);
17
+ }
18
+ const ke = /* @__PURE__ */ M(we, [["render", Te], ["__scopeId", "data-v-9b7ee6c9"]]), O = {
19
+ ACCOUNT: "account",
20
+ FACE: "face"
21
+ }, $e = { class: "right-wrap" }, Ae = { class: "tab-content" }, Ne = { class: "tab-tips" }, Fe = { class: "tab-content" }, Ve = { class: "tab-tips" }, Re = /* @__PURE__ */ q({
22
+ __name: "index",
23
+ props: {
24
+ tabList: {
25
+ type: Array,
26
+ default: []
27
+ },
28
+ loading: {
29
+ type: Boolean,
30
+ default: !1
31
+ }
32
+ },
33
+ emits: ["clickLogin", "handleTabChange"],
34
+ setup(v, { emit: p }) {
35
+ const t = k(O.ACCOUNT), e = p, y = () => {
36
+ e("clickLogin", t.value);
37
+ }, i = (f) => {
38
+ e("handleTabChange", f);
39
+ };
40
+ return (f, b) => {
41
+ const g = w("el-button"), L = w("el-tab-pane"), c = w("el-tabs");
42
+ return R(), I("div", $e, [
43
+ l(c, {
44
+ modelValue: t.value,
45
+ "onUpdate:modelValue": b[0] || (b[0] = (a) => t.value = a),
46
+ class: "right-tabs",
47
+ onTabChange: i
48
+ }, {
49
+ default: s(() => [
50
+ l(L, {
51
+ name: D(O).ACCOUNT
52
+ }, {
53
+ label: s(() => [
54
+ F(f.$slots, "tabLabel1", {}, void 0, !0)
55
+ ]),
56
+ default: s(() => [
57
+ m("div", Ae, [
58
+ F(f.$slots, "tabContent1", {}, void 0, !0)
59
+ ]),
60
+ m("div", {
61
+ class: "tab-button special",
62
+ onClick: y
63
+ }, [
64
+ l(g, { loading: v.loading }, {
65
+ default: s(() => [
66
+ F(f.$slots, "tabButton1", {}, void 0, !0)
67
+ ]),
68
+ _: 3
69
+ }, 8, ["loading"])
70
+ ]),
71
+ m("div", Ne, [
72
+ F(f.$slots, "tabTips1", {}, void 0, !0)
73
+ ])
74
+ ]),
75
+ _: 3
76
+ }, 8, ["name"]),
77
+ l(L, {
78
+ name: D(O).FACE
79
+ }, {
80
+ label: s(() => [
81
+ F(f.$slots, "tabLabel2", {}, void 0, !0)
82
+ ]),
83
+ default: s(() => [
84
+ m("div", Fe, [
85
+ F(f.$slots, "tabContent2", {}, void 0, !0)
86
+ ]),
87
+ m("div", Ve, [
88
+ F(f.$slots, "tabTips2", {}, void 0, !0)
89
+ ])
90
+ ]),
91
+ _: 3
92
+ }, 8, ["name"])
93
+ ]),
94
+ _: 3
95
+ }, 8, ["modelValue"])
96
+ ]);
97
+ };
98
+ }
99
+ }), Se = /* @__PURE__ */ M(Re, [["__scopeId", "data-v-8b1962f0"]]), xe = /^[a-z][a-z0-9+.-]*:\/\//i, G = (v) => xe.test(v);
100
+ function Ee(v) {
101
+ G(v) || (v = `http://${v}`);
102
+ try {
103
+ const p = new URL(v);
104
+ return {
105
+ host: p.hostname,
106
+ // 域名:example.com
107
+ port: p.port || null
108
+ // 端口:8080(默认端口返回空字符串,转为 null)
109
+ };
110
+ } catch {
111
+ return {
112
+ host: null,
113
+ port: null
114
+ };
115
+ }
116
+ }
117
+ const Ie = () => ({ initUrlInfo: () => ({
118
+ host: null,
119
+ port: null
120
+ }), hasProtocol: G, generateUrl: (t) => {
121
+ const { host: e, port: y } = t;
122
+ if (!e)
123
+ return null;
124
+ let i = `${e}`;
125
+ return G(e) || (i = `http://${i}`), y && (i = `${i}:${y}`), i;
126
+ } }), Me = { class: "body-wrapper" }, Be = { class: "api-form-wrapper" }, Oe = { class: "edit-footer" }, qe = { class: "footer-right" }, je = /* @__PURE__ */ q({
127
+ __name: "index",
128
+ emits: ["updateApiUrl"],
129
+ setup(v, { expose: p, emit: t }) {
130
+ const e = t, y = H(E), { systemUrl: i } = J(y), { initUrlInfo: f, generateUrl: b } = Ie(), g = k(f()), L = k(), c = z({
131
+ host: [
132
+ { required: !0, message: "请输入职位名称", trigger: "blur" }
133
+ ]
134
+ }), a = se(() => i.value || "http://222.92.178.198:63002"), C = () => {
135
+ g.value = Ee(a.value);
136
+ };
137
+ le(() => {
138
+ C();
139
+ });
140
+ const _ = k(!1), o = () => {
141
+ C(), _.value = !0;
142
+ }, r = () => {
143
+ _.value = !1;
144
+ }, u = () => {
145
+ r();
146
+ }, h = async () => {
147
+ var n;
148
+ await ((n = L.value) == null ? void 0 : n.validate());
149
+ const U = b(g.value);
150
+ e("updateApiUrl", U), u();
151
+ };
152
+ return p({
153
+ openDialog: o,
154
+ handleClose: u
155
+ }), (U, n) => {
156
+ const $ = w("el-input"), A = w("el-form-item"), S = w("el-col"), B = w("el-row"), d = w("el-form"), N = w("el-dialog");
157
+ return R(), ce(N, {
158
+ class: "api-form-dialog",
159
+ modelValue: _.value,
160
+ "onUpdate:modelValue": n[2] || (n[2] = (T) => _.value = T),
161
+ "before-close": u,
162
+ "destroy-on-close": "",
163
+ "show-close": !1
164
+ }, {
165
+ header: s(() => n[3] || (n[3] = [])),
166
+ default: s(() => [
167
+ m("div", Me, [
168
+ m("div", Be, [
169
+ l(d, {
170
+ class: "api-edit-form",
171
+ ref_key: "apiFormRef",
172
+ ref: L,
173
+ model: g.value,
174
+ rules: c
175
+ }, {
176
+ default: s(() => [
177
+ l(B, { gutter: 20 }, {
178
+ default: s(() => [
179
+ l(S, { span: 12 }, {
180
+ default: s(() => [
181
+ l(A, {
182
+ prop: "host",
183
+ label: "主机名",
184
+ "label-position": "top"
185
+ }, {
186
+ default: s(() => [
187
+ l($, {
188
+ modelValue: g.value.host,
189
+ "onUpdate:modelValue": n[0] || (n[0] = (T) => g.value.host = T),
190
+ "aria-label": "主机名",
191
+ placeholder: "主机名"
192
+ }, null, 8, ["modelValue"])
193
+ ]),
194
+ _: 1
195
+ })
196
+ ]),
197
+ _: 1
198
+ }),
199
+ l(S, { span: 12 }, {
200
+ default: s(() => [
201
+ l(A, {
202
+ prop: "port",
203
+ label: "端口",
204
+ "label-position": "top"
205
+ }, {
206
+ default: s(() => [
207
+ l($, {
208
+ modelValue: g.value.port,
209
+ "onUpdate:modelValue": n[1] || (n[1] = (T) => g.value.port = T),
210
+ "aria-label": "端口",
211
+ placeholder: "端口"
212
+ }, null, 8, ["modelValue"])
213
+ ]),
214
+ _: 1
215
+ })
216
+ ]),
217
+ _: 1
218
+ })
219
+ ]),
220
+ _: 1
221
+ })
222
+ ]),
223
+ _: 1
224
+ }, 8, ["model", "rules"])
225
+ ])
226
+ ])
227
+ ]),
228
+ footer: s(() => [
229
+ m("div", Oe, [
230
+ n[4] || (n[4] = m("div", { class: "footer-left" }, null, -1)),
231
+ m("div", qe, [
232
+ l(ae, {
233
+ class: "cancel",
234
+ emptyColor: !0,
235
+ onClickTrigger: u,
236
+ modelValue: "取消",
237
+ buttonType: "info"
238
+ }),
239
+ l(ae, {
240
+ class: "confirm",
241
+ emptyColor: !0,
242
+ onClickTrigger: h,
243
+ modelValue: "确定",
244
+ buttonType: "primary"
245
+ })
246
+ ])
247
+ ])
248
+ ]),
249
+ _: 1
250
+ }, 8, ["modelValue"]);
251
+ };
252
+ }
253
+ }), Ke = /* @__PURE__ */ M(je, [["__scopeId", "data-v-20c1098b"]]), De = { class: "account-wrap" }, Pe = { class: "extra-operate" }, He = /* @__PURE__ */ q({
254
+ __name: "index",
255
+ props: {
256
+ activeTabName: {
257
+ type: String,
258
+ default: ""
259
+ },
260
+ isClickLogin: {
261
+ type: Boolean,
262
+ default: !1
263
+ }
264
+ },
265
+ emits: ["handleLoginFormChange", "updateApiUrl"],
266
+ setup(v, { emit: p }) {
267
+ const t = v, e = z({
268
+ account: "",
269
+ password: ""
270
+ }), y = z({
271
+ account: [
272
+ { required: !0, message: "请输入账号", trigger: "blur" }
273
+ ],
274
+ password: [
275
+ { required: !0, message: "请输入密码", trigger: "blur" }
276
+ ]
277
+ }), i = k(null), f = p;
278
+ P(() => t.isClickLogin, (c) => {
279
+ var a;
280
+ c && (t == null ? void 0 : t.activeTabName) === "account" && ((a = i.value) == null || a.validate((C) => {
281
+ var _;
282
+ for (let o in e)
283
+ e.hasOwnProperty(o) && (e[o] = (_ = e[o]) == null ? void 0 : _.trim());
284
+ f("handleLoginFormChange", C, C ? e : null);
285
+ }));
286
+ }, {
287
+ immediate: !0
288
+ }), P(() => t.activeTabName, (c) => {
289
+ var a;
290
+ c === "account" && ((a = i.value) == null || a.resetFields());
291
+ });
292
+ const b = k(), g = () => {
293
+ var c, a;
294
+ (a = (c = b.value) == null ? void 0 : c.openDialog) == null || a.call(c);
295
+ }, L = (c) => {
296
+ f("updateApiUrl", c);
297
+ };
298
+ return (c, a) => {
299
+ const C = w("svg-icon"), _ = w("el-input"), o = w("el-form-item"), r = w("el-form"), u = w("el-link");
300
+ return R(), I(re, null, [
301
+ m("div", De, [
302
+ l(r, {
303
+ model: e,
304
+ rules: y,
305
+ ref_key: "formRef",
306
+ ref: i
307
+ }, {
308
+ default: s(() => [
309
+ l(o, {
310
+ label: "",
311
+ prop: "account"
312
+ }, {
313
+ default: s(() => [
314
+ l(_, {
315
+ class: "account-input",
316
+ modelValue: e.account,
317
+ "onUpdate:modelValue": a[0] || (a[0] = (h) => e.account = h),
318
+ placeholder: "请输入账号",
319
+ clearable: ""
320
+ }, {
321
+ prefix: s(() => [
322
+ l(C, {
323
+ name: "account",
324
+ style: { width: "15px", height: "15px" }
325
+ })
326
+ ]),
327
+ _: 1
328
+ }, 8, ["modelValue"])
329
+ ]),
330
+ _: 1
331
+ }),
332
+ l(o, {
333
+ label: "",
334
+ prop: "password"
335
+ }, {
336
+ default: s(() => [
337
+ l(_, {
338
+ class: "account-input",
339
+ modelValue: e.password,
340
+ "onUpdate:modelValue": a[1] || (a[1] = (h) => e.password = h),
341
+ type: "password",
342
+ placeholder: "请输入密码",
343
+ "show-password": "",
344
+ clearable: ""
345
+ }, {
346
+ prefix: s(() => [
347
+ l(C, {
348
+ name: "password",
349
+ style: { width: "15px", height: "15px" }
350
+ })
351
+ ]),
352
+ _: 1
353
+ }, 8, ["modelValue"])
354
+ ]),
355
+ _: 1
356
+ })
357
+ ]),
358
+ _: 1
359
+ }, 8, ["model", "rules"]),
360
+ m("div", Pe, [
361
+ l(u, {
362
+ class: "api-button",
363
+ type: "primary",
364
+ onClick: g
365
+ }, {
366
+ default: s(() => a[2] || (a[2] = [
367
+ x("接口地址")
368
+ ])),
369
+ _: 1,
370
+ __: [2]
371
+ })
372
+ ])
373
+ ]),
374
+ l(Ke, {
375
+ ref_key: "apiFormDialogRef",
376
+ ref: b,
377
+ onUpdateApiUrl: L
378
+ }, null, 512)
379
+ ], 64);
380
+ };
381
+ }
382
+ }), ze = /* @__PURE__ */ M(He, [["__scopeId", "data-v-032ff9a0"]]), Je = { class: "account-wrap" }, We = { class: "video-wrap" }, Ge = /* @__PURE__ */ q({
383
+ __name: "index",
384
+ props: {
385
+ systemKey: { default: "" },
386
+ activeTabName: { default: "" },
387
+ isClickLogin: { type: Boolean, default: !1 }
388
+ },
389
+ emits: ["handleLoginFormChange"],
390
+ setup(v, { emit: p }) {
391
+ const t = v, e = p;
392
+ H(E);
393
+ const { initVerify: y } = ve(), i = k(null), f = k(null);
394
+ let b = !1, g = null;
395
+ const L = async (o) => {
396
+ if (!o)
397
+ return;
398
+ const r = await y(o), { data: u } = r || {}, { account: h, password: U } = (u == null ? void 0 : u.data) || {}, n = u == null ? void 0 : u.msg;
399
+ if (!h) {
400
+ W.warning(n || "识别失败,请重新识别!");
401
+ return;
402
+ }
403
+ e("handleLoginFormChange", !0, {
404
+ account: h,
405
+ password: U
406
+ });
407
+ }, c = () => {
408
+ if (!f.value || !i.value)
409
+ return;
410
+ const o = f.value, r = o.getContext("2d"), u = i.value;
411
+ o.width = 200, o.height = 200;
412
+ const h = u.videoWidth || 640, U = u.videoHeight || 480, n = Math.min(200 / h, 200 / U), $ = h * n, A = U * n, S = (200 - $) / 2, B = (200 - A) / 2;
413
+ r == null || r.drawImage(u, 0, 0, h, U, S, B, $, A), o.toBlob((d) => {
414
+ if (d) {
415
+ const N = new File([d], "face.png", { type: "image/png" });
416
+ L(N);
417
+ }
418
+ }, "image/png");
419
+ }, a = async () => {
420
+ if (!i.value || b)
421
+ return;
422
+ const o = i.value;
423
+ try {
424
+ if (g = await navigator.mediaDevices.getUserMedia({
425
+ video: { facingMode: "user" },
426
+ // 前置;后置用 'environment'
427
+ audio: !1
428
+ }), o) {
429
+ const r = o;
430
+ r.srcObject = g, b = !0;
431
+ }
432
+ } catch {
433
+ W.warning("摄像头启动失败");
434
+ }
435
+ };
436
+ function C(o) {
437
+ if (o && (o.getTracks().forEach((r) => r.stop()), i.value)) {
438
+ const r = i.value;
439
+ r.srcObject = null;
440
+ }
441
+ }
442
+ const _ = () => {
443
+ C(g), b = !1;
444
+ };
445
+ return P(() => t.activeTabName, (o) => {
446
+ if (o !== O.FACE) {
447
+ _();
448
+ return;
449
+ }
450
+ if (o === O.FACE && !b) {
451
+ a();
452
+ return;
453
+ }
454
+ }), ue(() => {
455
+ _();
456
+ }), (o, r) => (R(), I("div", Je, [
457
+ m("div", We, [
458
+ m("video", {
459
+ class: "face-video",
460
+ ref_key: "videoRef",
461
+ ref: i,
462
+ id: "v",
463
+ autoplay: "",
464
+ playsinline: ""
465
+ }, null, 512)
466
+ ]),
467
+ F(o.$slots, "default", {}, () => [
468
+ m("button", {
469
+ class: "face-screenshot",
470
+ onClick: c
471
+ }, "人脸识别")
472
+ ], !0),
473
+ m("canvas", {
474
+ ref_key: "canvasRef",
475
+ ref: f,
476
+ id: "canvas"
477
+ }, null, 512)
478
+ ]));
479
+ }
480
+ }), Qe = /* @__PURE__ */ M(Ge, [["__scopeId", "data-v-b64bc91c"]]), ne = H(E), { isDefaultModel: Xe } = he(), Ye = async (v, p) => {
481
+ var y, i, f, b, g, L, c, a, C, _, o, r, u, h;
482
+ let t = Object.values(v), e = await me({
483
+ userName: (y = t == null ? void 0 : t[0]) == null ? void 0 : y.trim(),
484
+ password: (i = t == null ? void 0 : t[1]) == null ? void 0 : i.trim()
485
+ });
486
+ if (((f = e == null ? void 0 : e.data) == null ? void 0 : f.status) === 200 && ((g = (b = e == null ? void 0 : e.data) == null ? void 0 : b.result) == null ? void 0 : g.length) <= 0 && (e = await pe({
487
+ userName: (L = t == null ? void 0 : t[0]) == null ? void 0 : L.trim(),
488
+ password: (c = t == null ? void 0 : t[1]) == null ? void 0 : c.trim(),
489
+ path: "系统管理/用户管理",
490
+ platId: p
491
+ })), ((a = e == null ? void 0 : e.data) == null ? void 0 : a.status) === 200 && ((_ = (C = e == null ? void 0 : e.data) == null ? void 0 : C.result) == null ? void 0 : _.length) > 0) {
492
+ const n = ((r = (o = e == null ? void 0 : e.data) == null ? void 0 : o.result) == null ? void 0 : r.find((A) => Xe(A))) || ((h = (u = e == null ? void 0 : e.data) == null ? void 0 : u.result) == null ? void 0 : h[0]);
493
+ sessionStorage.setItem("systemKey", p && p !== "" ? p : n == null ? void 0 : n.plat_id);
494
+ let $ = n;
495
+ return $.plat_id = $.plat_id ?? p, ne.setLoginUserInfo($), ne.setSystemKey(p && p !== "" ? p : n == null ? void 0 : n.plat_id), !0;
496
+ } else
497
+ return W.error("输入的密码错误,请重新输入"), !1;
498
+ }, Ze = { class: "login-wrap" }, et = { class: "login-body" }, tt = { class: "login-body-item left" }, ot = { class: "title" }, at = { class: "first-level" }, nt = {
499
+ key: 0,
500
+ class: "logo"
501
+ }, st = ["src"], lt = { class: "english-name" }, it = { class: "login-body-item right" }, ct = /* @__PURE__ */ q({
502
+ __name: "index",
503
+ props: {
504
+ oldSystemKey: {},
505
+ loginContent: {}
506
+ },
507
+ emits: ["change", "projectLogin", "updateApiUrl"],
508
+ setup(v, { emit: p }) {
509
+ const t = v, e = be(), y = p, i = fe(E), f = _e(E), { refreshLogin: b } = J(f), g = H(E), { systemKey: L, systemInfo: c, loginUserInfo: a } = J(g), C = se(() => {
510
+ var d;
511
+ return ((d = c.value) == null ? void 0 : d.logo) || ye;
512
+ }), _ = k({
513
+ // sysCTitle: 'INSOFWORKS',
514
+ sysCTitle: "",
515
+ sysETitle: "",
516
+ // sysETitle: 'Dynamic Test Information System',
517
+ loginTitle: "账户密码登录",
518
+ tabs: [
519
+ {
520
+ name: "密码登录",
521
+ btnLabel: "登录",
522
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
523
+ },
524
+ {
525
+ name: "人脸识别",
526
+ btnLabel: "人脸识别",
527
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
528
+ },
529
+ {
530
+ name: "刷卡登录",
531
+ btnLabel: "登录",
532
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
533
+ }
534
+ ]
535
+ }), o = k("account"), r = k(!1), u = k(!1), h = () => {
536
+ r.value = !0;
537
+ }, U = (d, N) => {
538
+ r.value = !1, d && A(N);
539
+ }, n = async () => (sessionStorage.setItem("loginToken", "111"), !0), $ = async () => (sessionStorage.setItem("magicToken", "123456"), !0);
540
+ le(async () => {
541
+ await n();
542
+ });
543
+ const A = async (d) => {
544
+ var Q, X, Y, Z, ee, te, oe;
545
+ u.value = !0;
546
+ let N = [Ye(d, (Q = c.value) == null ? void 0 : Q.plat_id), n(), $()];
547
+ const T = await Promise.all(N), j = T == null ? void 0 : T.every((K) => K);
548
+ let ie = [
549
+ {
550
+ id: "1",
551
+ request_method: "Post",
552
+ request_url: "/platform/getdata",
553
+ request_param: JSON.stringify({
554
+ userName: "hjj",
555
+ password: "1"
556
+ }),
557
+ request_result: "{}",
558
+ is_delete: !1,
559
+ request_table: "admin_user",
560
+ request_type: "login"
561
+ }
562
+ ];
563
+ try {
564
+ const K = ((X = a == null ? void 0 : a.value) == null ? void 0 : X.plat_id) || ((Y = c.value) == null ? void 0 : Y.plat_id);
565
+ await ge({
566
+ platId: parseInt(K),
567
+ changeContents: [{
568
+ tableName: "log",
569
+ tableContents: ie
570
+ }]
571
+ });
572
+ } catch {
573
+ }
574
+ j ? (y("projectLogin", d), await Ce(), e.push("/"), g.setLogRecordAsync({
575
+ type: "登录",
576
+ data: {
577
+ account: ((Z = a.value) == null ? void 0 : Z.account) ?? ((ee = a.value) == null ? void 0 : ee.账号),
578
+ userName: ((te = a.value) == null ? void 0 : te.姓名) || ((oe = a.value) == null ? void 0 : oe.userName) || "未知"
579
+ }
580
+ }, "/login", "login"), i.setHasClickEditComp(!1)) : u.value = !1, u.value = !1;
581
+ };
582
+ P(
583
+ () => t == null ? void 0 : t.loginContent,
584
+ () => {
585
+ let d = t == null ? void 0 : t.loginContent;
586
+ d != null && d.account && (d != null && d.password) && !b.value && A(d);
587
+ },
588
+ { deep: !0, immediate: !0 }
589
+ );
590
+ const S = (d) => {
591
+ o.value = d, r.value = !1, u.value = !1;
592
+ }, B = (d) => {
593
+ y("updateApiUrl", d);
594
+ };
595
+ return (d, N) => (R(), I("div", Ze, [
596
+ m("div", et, [
597
+ m("div", tt, [
598
+ l(ke, { class: "login-left-bg" }, {
599
+ img: s(() => {
600
+ var T, j;
601
+ return [
602
+ m("div", ot, [
603
+ m("div", at, [
604
+ C.value ? (R(), I("div", nt, [
605
+ m("img", {
606
+ src: C.value,
607
+ alt: ""
608
+ }, null, 8, st)
609
+ ])) : de("", !0),
610
+ m("div", lt, V(((T = D(c)) == null ? void 0 : T.EnglishName) || "Insofworks"), 1)
611
+ ]),
612
+ m("div", null, V(((j = D(c)) == null ? void 0 : j.chineseName) || "工业软件建模与开发系统"), 1)
613
+ ]),
614
+ N[0] || (N[0] = m("div", { class: "divide-line" }, null, -1))
615
+ ];
616
+ }),
617
+ _: 1
618
+ })
619
+ ]),
620
+ m("div", it, [
621
+ l(Se, {
622
+ loading: u.value,
623
+ onClickLogin: h,
624
+ onHandleTabChange: S
625
+ }, {
626
+ title: s(() => [
627
+ x(V(_.value.loginTitle), 1)
628
+ ]),
629
+ tabLabel1: s(() => [
630
+ x(V(_.value.tabs[0].name), 1)
631
+ ]),
632
+ tabContent1: s(() => [
633
+ l(ze, {
634
+ activeTabName: o.value,
635
+ isClickLogin: r.value,
636
+ onHandleLoginFormChange: U,
637
+ onUpdateApiUrl: B
638
+ }, null, 8, ["activeTabName", "isClickLogin"])
639
+ ]),
640
+ tabButton1: s(() => [
641
+ x(V(_.value.tabs[0].btnLabel), 1)
642
+ ]),
643
+ tabLabel2: s(() => [
644
+ x(V(_.value.tabs[1].name), 1)
645
+ ]),
646
+ tabContent2: s(() => [
647
+ l(Qe, {
648
+ systemKey: d.oldSystemKey,
649
+ activeTabName: o.value,
650
+ isClickLogin: r.value,
651
+ onHandleLoginFormChange: U
652
+ }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
653
+ ]),
654
+ tabButton2: s(() => [
655
+ x(V(_.value.tabs[1].btnLabel), 1)
656
+ ]),
657
+ _: 1
658
+ }, 8, ["loading"])
659
+ ])
660
+ ])
661
+ ]));
662
+ }
663
+ }), bt = /* @__PURE__ */ M(ct, [["__scopeId", "data-v-495b95b8"]]);
664
+ export {
665
+ bt as default
666
+ };
@@ -1,6 +1,6 @@
1
1
  import { ref as A, computed as c, onMounted as _ } from "vue";
2
2
  import { useRouter as g } from "vue-router";
3
- import { u as C, p as h, n as R, c as b, g as S, j as E } from "./menu-B5Ed9tCx.js";
3
+ import { u as C, p as h, n as R, c as b, g as S, j as E } from "./menu-B6brhvAI.js";
4
4
  const l = {
5
5
  ALLOW: {
6
6
  value: "允许"