ss-component-new 1.3.301 → 1.3.302

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 (111) hide show
  1. package/dist/{MTLLoader-RDE-ZA7R.js → MTLLoader-BrEAUYmm.js} +1 -1
  2. package/dist/{MTLLoader-CLDHKsuZ.cjs → MTLLoader-DqRiQxtb.cjs} +1 -1
  3. package/dist/{OrbitControls-BdotT7Cg.cjs → OrbitControls-DjWgA8Ek.cjs} +1 -1
  4. package/dist/{OrbitControls-BMOJWSL-.js → OrbitControls-Xm3TiWSm.js} +1 -1
  5. package/dist/{URDFLoader-Y4l_xAEg.cjs → URDFLoader-BG8UBoRV.cjs} +1 -1
  6. package/dist/{URDFLoader-emHFNLHl.js → URDFLoader-BVq4-_nm.js} +2 -2
  7. package/dist/{animationData-BHoj-1LD.js → animationData-CKnGxrwv.js} +3 -3
  8. package/dist/{animationData-CQdthirF.cjs → animationData-CvSQOLjD.cjs} +1 -1
  9. package/dist/{array-P5J-DgMu.cjs → array-BWgfvvzW.cjs} +1 -1
  10. package/dist/{array-Cio8S2Pj.js → array-BpsLG-qe.js} +4 -4
  11. package/dist/clone-BkXJ1f6m.cjs +1 -0
  12. package/dist/{clone-DlNyA_zn.js → clone-DXbbt8Hm.js} +1 -1
  13. package/dist/{dayjs.min-73fIR1V_.cjs → dayjs.min-C_98bw1w.cjs} +1 -1
  14. package/dist/{dayjs.min-E1ZLJ-8j.js → dayjs.min-DuspkzAg.js} +1 -1
  15. package/dist/{iconfont-Cp7o4QAt.cjs → iconfont-Bh5e2p75.cjs} +1 -1
  16. package/dist/{iconfont-Cg9QlUoy.js → iconfont-CI2ln_lz.js} +2 -2
  17. package/dist/{index-BdGKsSb2.cjs → index--9RSY5nc.cjs} +1 -1
  18. package/dist/{index-Co-U8J6E.cjs → index-1hSToJw_.cjs} +1 -1
  19. package/dist/{index-CQY6ageG.cjs → index-92G6p6-P.cjs} +1 -1
  20. package/dist/{index-fAnqtn_m.cjs → index-B6OWlCN4.cjs} +1 -1
  21. package/dist/{index-0hpStIBH.js → index-B7B9vl_S.js} +4 -4
  22. package/dist/{index-D1vYje_p.cjs → index-BHp_Rra2.cjs} +1 -1
  23. package/dist/{index-6teHdmr0.js → index-BMj0wGQ5.js} +1 -1
  24. package/dist/{index-tT9c2s2F.js → index-BR5mRxoX.js} +47 -38
  25. package/dist/{index-CwOB279v.cjs → index-BVbA0cHb.cjs} +1 -1
  26. package/dist/{index-H8n2KFLX.cjs → index-BY-jyYWy.cjs} +1 -1
  27. package/dist/{index-B846yqBS.js → index-BbRiCABC.js} +2 -2
  28. package/dist/{index-BkOJA3nu.cjs → index-BcTkU3nu.cjs} +1 -1
  29. package/dist/{index-CwZs4rIC.js → index-BezhZle5.js} +6 -6
  30. package/dist/{index-CEwg_zdl.js → index-Bwv7RY5s.js} +1 -1
  31. package/dist/{index-DsUMFNuA.js → index-BzX1r1DQ.js} +6 -6
  32. package/dist/index-CAHcIkx6.cjs +1 -0
  33. package/dist/{index-BEEOZ_LN.js → index-CDVaGIeb.js} +1 -1
  34. package/dist/{index-cC0isUDx.cjs → index-CNFkoqud.cjs} +1 -1
  35. package/dist/index-CR2bMJxC.js +9785 -0
  36. package/dist/index-CR4U-WNu.cjs +2 -0
  37. package/dist/{index-DXKzYxhw.js → index-CT0_6X-e.js} +2 -2
  38. package/dist/{index-rjTawDw6.js → index-C_dda12R.js} +2 -2
  39. package/dist/{index-DmMl7DkC.js → index-CbuRLwLx.js} +4 -4
  40. package/dist/index-CcybWQ0a.cjs +25 -0
  41. package/dist/{index-PAFvx19H.cjs → index-D3Lc8UUG.cjs} +1 -1
  42. package/dist/{index-CkXAOjdK.js → index-D4rNc1Ug.js} +2 -2
  43. package/dist/{index-sqfOcL_Q.cjs → index-D6rBwYFi.cjs} +1 -1
  44. package/dist/{index-Cro-IzQv.cjs → index-D9VN9VwZ.cjs} +1 -1
  45. package/dist/{index-D58LRV4j.js → index-D9jDJTOl.js} +9 -9
  46. package/dist/{index-yXqsfBiR.cjs → index-DB7w6WMF.cjs} +1 -1
  47. package/dist/{index-DoQ2DjBA.js → index-DF7jIWvH.js} +2 -2
  48. package/dist/{index-BS23fm8I.js → index-DGknSo3g.js} +9 -9
  49. package/dist/{index-BJQ12PRZ.cjs → index-DIgF229o.cjs} +1 -1
  50. package/dist/{index-8VjHjOci.cjs → index-DJEST34U.cjs} +1 -1
  51. package/dist/{index-CtBrDQiG.cjs → index-DKl62QNQ.cjs} +1 -1
  52. package/dist/{index-BGYRY71Y.cjs → index-DOou0S80.cjs} +1 -1
  53. package/dist/{index-6egNZH3a.js → index-DPbLX2EM.js} +3 -3
  54. package/dist/{index-CEuh0_6n.js → index-DRSO21bq.js} +1 -1
  55. package/dist/index-DT8J-Un0.js +481 -0
  56. package/dist/index-De7jtHBb.cjs +1 -0
  57. package/dist/{index-C3RYFBPK.cjs → index-DliVCzLT.cjs} +1 -1
  58. package/dist/{index-C4Dlzm7P.js → index-DmmlczJa.js} +4 -4
  59. package/dist/{index-CPz5Q62a.js → index-DnqpKHUZ.js} +1 -1
  60. package/dist/{index-BohJ0pIH.cjs → index-DrZ2rTX6.cjs} +1 -1
  61. package/dist/{index-CagHv4za.js → index-DvF67cFp.js} +1 -1
  62. package/dist/{index-BREFniPq.js → index-DxKAizLR.js} +4 -4
  63. package/dist/{index-Ba_o-vqP.cjs → index-DzS8TUJx.cjs} +1 -1
  64. package/dist/{index-CsBViUVV.js → index-MM7KiUTF.js} +3 -3
  65. package/dist/{index-DsIkRvPS.cjs → index-Q9XfSrZY.cjs} +1 -1
  66. package/dist/{index-BxEBUPI0.cjs → index-R66yOvAG.cjs} +1 -1
  67. package/dist/{index-CAIY8beW.js → index-SQ7v5v4-.js} +3 -3
  68. package/dist/{index-CkTFRGxB.js → index-WrlsRfB9.js} +1 -1
  69. package/dist/{index-CqiskI7e.js → index-Y6ou98p7.js} +1 -1
  70. package/dist/{index-Dkvr_yZQ.cjs → index-apX7jShx.cjs} +1 -1
  71. package/dist/{index-d3eamXNt.js → index-fChGNUaV.js} +2 -2
  72. package/dist/{index-Cq0IbX2g.cjs → index-g7Wgp9gu.cjs} +1 -1
  73. package/dist/{index-Cck4n4WY.cjs → index-ucDLs-jz.cjs} +1 -1
  74. package/dist/{index-B47-vpvz.js → index-xocA7N1o.js} +7912 -7900
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-_g-HLUBE.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CA4D5g5S.cjs} +1 -1
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dmtv1jQ3.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Ct_Gif7C.js} +4 -4
  77. package/dist/{main-C5mcsbRd.js → main-SWG15a-I.js} +4 -4
  78. package/dist/{main-D8ovrBi2.cjs → main-Yz4Oqt7r.cjs} +1 -1
  79. package/dist/{menu-BMAZOS2j.js → menu-BzDsNPVM.js} +648 -560
  80. package/dist/{menu-DopnPfbG.cjs → menu-DUkDo01b.cjs} +5 -6
  81. package/dist/{menuIndex-DhpobxSC.cjs → menuIndex-BkBrPObt.cjs} +1 -1
  82. package/dist/{menuIndex-DuWSagQ-.js → menuIndex-yuvNAovT.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-D3UmXNUb.cjs → threeModel-C63Sjop5.cjs} +1 -1
  89. package/dist/{threeModel-3JirGS2j.js → threeModel-b1yjN3xi.js} +4 -4
  90. package/dist/{threePreview-diIAbbKf.js → threePreview-EMOU8ESj.js} +4 -4
  91. package/dist/{threePreview-_Pa_rEAW.cjs → threePreview-T5JQIpIE.cjs} +1 -1
  92. package/dist/{threeSceneView-B5pQXPj7.cjs → threeSceneView-CVnwcWw9.cjs} +1 -1
  93. package/dist/{threeSceneView-DINMkVVz.js → threeSceneView-zDdeQECN.js} +14 -14
  94. package/dist/{threeSceneViewForCPMPIP-DqzjXWdH.js → threeSceneViewForCPMPIP-Cy9q2ndz.js} +8 -8
  95. package/dist/{threeSceneViewForCPMPIP-k5RanDHf.cjs → threeSceneViewForCPMPIP-DXVojXop.cjs} +1 -1
  96. package/dist/{threeTrackPathView-DFuI3kE-.cjs → threeTrackPathView-ewxBf_AV.cjs} +1 -1
  97. package/dist/{threeTrackPathView-CmGiZRgE.js → threeTrackPathView-jXEBNcpF.js} +4 -4
  98. package/dist/{threeViewerHost-B-HsQ66C.js → threeViewerHost-CQeDys9O.js} +3 -3
  99. package/dist/{threeViewerHost-msa4WUeH.cjs → threeViewerHost-WO0px6I6.cjs} +1 -1
  100. package/dist/{urdfTree-DwmC3WSP.js → urdfTree-BRwS94Xs.js} +1 -1
  101. package/dist/{urdfTree-CeTWjJ2Y.cjs → urdfTree-BVYJZhPX.cjs} +1 -1
  102. package/dist/{workpieceTreePanel-MbzDAYJO.js → workpieceTreePanel-D29Boj5S.js} +4 -4
  103. package/dist/{workpieceTreePanel-BjTo7Vbi.cjs → workpieceTreePanel-FDRKfo7x.cjs} +1 -1
  104. package/package.json +1 -1
  105. package/dist/clone-DZsVSfvJ.cjs +0 -1
  106. package/dist/index-5rsqoznF.cjs +0 -1
  107. package/dist/index-BWfqrsaY.cjs +0 -2
  108. package/dist/index-Br8-OQ_d.js +0 -679
  109. package/dist/index-BwyBfUCz.cjs +0 -1
  110. package/dist/index-D6yEF8Ru.js +0 -9698
  111. package/dist/index-DOCsP0-B.cjs +0 -25
@@ -1,679 +0,0 @@
1
- import { createElementBlock as x, openBlock as I, createElementVNode as d, renderSlot as N, defineComponent as q, ref as A, resolveComponent as U, createVNode as i, withCtx as a, unref as K, reactive as H, computed as oe, onMounted as ae, createBlock as se, watch as z, Fragment as le, createTextVNode as S, onBeforeUnmount as ie, createCommentVNode as ce, toDisplayString as R } from "vue";
2
- import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { b as j, p as O, s as ne, l as re, d as de, u as ue, e as me } from "./menu-BMAZOS2j.js";
4
- import { _ as ee } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
5
- import "./index-CEwg_zdl.js";
6
- import { u as pe } from "./index-CqiskI7e.js";
7
- import { E as P, s as fe } from "./request-CoGtW0Ux.js";
8
- import { useRouter as _e } from "vue-router";
9
- import { u as ge, l as ve, v as be } from "./index-CkXAOjdK.js";
10
- const he = {}, ye = { class: "left-wrap" }, Ce = { class: "left-bg" };
11
- function we(b, u) {
12
- return I(), x("div", ye, [
13
- d("div", Ce, [
14
- N(b.$slots, "img", {}, void 0, !0)
15
- ])
16
- ]);
17
- }
18
- const Le = /* @__PURE__ */ E(he, [["render", we], ["__scopeId", "data-v-9b7ee6c9"]]), M = {
19
- ACCOUNT: "account",
20
- FACE: "face"
21
- }, Te = { class: "right-wrap" }, Ue = { class: "tab-content" }, ke = { class: "tab-tips" }, $e = { class: "tab-content" }, Ae = { class: "tab-tips" }, Ve = /* @__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(b, { emit: u }) {
35
- const o = A(M.ACCOUNT), e = u, w = () => {
36
- e("clickLogin", o.value);
37
- }, l = (_) => {
38
- e("handleTabChange", _);
39
- };
40
- return (_, g) => {
41
- const c = U("el-button"), L = U("el-tab-pane"), r = U("el-tabs");
42
- return I(), x("div", Te, [
43
- i(r, {
44
- modelValue: o.value,
45
- "onUpdate:modelValue": g[0] || (g[0] = (n) => o.value = n),
46
- class: "right-tabs",
47
- onTabChange: l
48
- }, {
49
- default: a(() => [
50
- i(L, {
51
- name: K(M).ACCOUNT
52
- }, {
53
- label: a(() => [
54
- N(_.$slots, "tabLabel1", {}, void 0, !0)
55
- ]),
56
- default: a(() => [
57
- d("div", Ue, [
58
- N(_.$slots, "tabContent1", {}, void 0, !0)
59
- ]),
60
- d("div", {
61
- class: "tab-button special",
62
- onClick: w
63
- }, [
64
- i(c, { loading: b.loading }, {
65
- default: a(() => [
66
- N(_.$slots, "tabButton1", {}, void 0, !0)
67
- ]),
68
- _: 3
69
- }, 8, ["loading"])
70
- ]),
71
- d("div", ke, [
72
- N(_.$slots, "tabTips1", {}, void 0, !0)
73
- ])
74
- ]),
75
- _: 3
76
- }, 8, ["name"]),
77
- i(L, {
78
- name: K(M).FACE
79
- }, {
80
- label: a(() => [
81
- N(_.$slots, "tabLabel2", {}, void 0, !0)
82
- ]),
83
- default: a(() => [
84
- d("div", $e, [
85
- N(_.$slots, "tabContent2", {}, void 0, !0)
86
- ]),
87
- d("div", Ae, [
88
- N(_.$slots, "tabTips2", {}, void 0, !0)
89
- ])
90
- ]),
91
- _: 3
92
- }, 8, ["name"])
93
- ]),
94
- _: 3
95
- }, 8, ["modelValue"])
96
- ]);
97
- };
98
- }
99
- }), Ne = /* @__PURE__ */ E(Ve, [["__scopeId", "data-v-8b1962f0"]]), Fe = /^[a-z][a-z0-9+.-]*:\/\//i, J = (b) => Fe.test(b);
100
- function Re(b) {
101
- J(b) || (b = `http://${b}`);
102
- try {
103
- const u = new URL(b);
104
- return {
105
- host: u.hostname,
106
- // 域名:example.com
107
- port: u.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: J, generateUrl: (o) => {
121
- const { host: e, port: w } = o;
122
- if (!e)
123
- return null;
124
- let l = `${e}`;
125
- return J(e) || (l = `http://${l}`), w && (l = `${l}:${w}`), l;
126
- } }), Se = { class: "body-wrapper" }, xe = { class: "api-form-wrapper" }, Ee = { class: "edit-footer" }, Be = { class: "footer-right" }, Me = /* @__PURE__ */ q({
127
- __name: "index",
128
- emits: ["updateApiUrl"],
129
- setup(b, { expose: u, emit: o }) {
130
- const e = o, w = j(O), { systemUrl: l } = ne(w), { initUrlInfo: _, generateUrl: g } = Ie(), c = A(_()), L = A(), r = H({
131
- host: [
132
- { required: !0, message: "请输入职位名称", trigger: "blur" }
133
- ]
134
- }), n = oe(() => l.value || "http://222.92.178.198:63002"), h = () => {
135
- c.value = Re(n.value);
136
- };
137
- ae(() => {
138
- h();
139
- });
140
- const v = A(!1), t = () => {
141
- v.value = !0;
142
- }, m = () => {
143
- v.value = !1;
144
- }, p = () => {
145
- h(), m();
146
- }, y = async () => {
147
- var s;
148
- await ((s = L.value) == null ? void 0 : s.validate());
149
- const $ = g(c.value);
150
- e("updateApiUrl", $), p();
151
- };
152
- return u({
153
- openDialog: t,
154
- handleClose: p
155
- }), ($, s) => {
156
- const V = U("el-input"), f = U("el-form-item"), T = U("el-col"), k = U("el-row"), C = U("el-form"), B = U("el-dialog");
157
- return I(), se(B, {
158
- class: "api-form-dialog",
159
- modelValue: v.value,
160
- "onUpdate:modelValue": s[2] || (s[2] = (F) => v.value = F),
161
- "before-close": p,
162
- "destroy-on-close": "",
163
- "show-close": !1
164
- }, {
165
- header: a(() => s[3] || (s[3] = [])),
166
- default: a(() => [
167
- d("div", Se, [
168
- d("div", xe, [
169
- i(C, {
170
- class: "api-edit-form",
171
- ref_key: "apiFormRef",
172
- ref: L,
173
- model: c.value,
174
- rules: r
175
- }, {
176
- default: a(() => [
177
- i(k, { gutter: 20 }, {
178
- default: a(() => [
179
- i(T, { span: 12 }, {
180
- default: a(() => [
181
- i(f, {
182
- prop: "host",
183
- label: "主机名",
184
- "label-position": "top"
185
- }, {
186
- default: a(() => [
187
- i(V, {
188
- modelValue: c.value.host,
189
- "onUpdate:modelValue": s[0] || (s[0] = (F) => c.value.host = F),
190
- "aria-label": "主机名",
191
- placeholder: "主机名"
192
- }, null, 8, ["modelValue"])
193
- ]),
194
- _: 1
195
- })
196
- ]),
197
- _: 1
198
- }),
199
- i(T, { span: 12 }, {
200
- default: a(() => [
201
- i(f, {
202
- prop: "port",
203
- label: "端口",
204
- "label-position": "top"
205
- }, {
206
- default: a(() => [
207
- i(V, {
208
- modelValue: c.value.port,
209
- "onUpdate:modelValue": s[1] || (s[1] = (F) => c.value.port = F),
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: a(() => [
229
- d("div", Ee, [
230
- s[4] || (s[4] = d("div", { class: "footer-left" }, null, -1)),
231
- d("div", Be, [
232
- i(ee, {
233
- class: "cancel",
234
- emptyColor: !0,
235
- onClickTrigger: p,
236
- modelValue: "取消",
237
- buttonType: "info"
238
- }),
239
- i(ee, {
240
- class: "confirm",
241
- emptyColor: !0,
242
- onClickTrigger: y,
243
- modelValue: "确定",
244
- buttonType: "primary"
245
- })
246
- ])
247
- ])
248
- ]),
249
- _: 1
250
- }, 8, ["modelValue"]);
251
- };
252
- }
253
- }), Oe = /* @__PURE__ */ E(Me, [["__scopeId", "data-v-3e10c3b2"]]), qe = { class: "account-wrap" }, De = { class: "extra-operate" }, Ke = /* @__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(b, { emit: u }) {
267
- const o = b, e = H({
268
- account: "",
269
- password: ""
270
- }), w = H({
271
- account: [
272
- { required: !0, message: "请输入账号", trigger: "blur" }
273
- ],
274
- password: [
275
- { required: !0, message: "请输入密码", trigger: "blur" }
276
- ]
277
- }), l = A(null), _ = u;
278
- z(() => o.isClickLogin, (r) => {
279
- var n;
280
- r && (o == null ? void 0 : o.activeTabName) === "account" && ((n = l.value) == null || n.validate((h) => {
281
- var v;
282
- for (let t in e)
283
- e.hasOwnProperty(t) && (e[t] = (v = e[t]) == null ? void 0 : v.trim());
284
- _("handleLoginFormChange", h, h ? e : null);
285
- }));
286
- }, {
287
- immediate: !0
288
- }), z(() => o.activeTabName, (r) => {
289
- var n;
290
- r === "account" && ((n = l.value) == null || n.resetFields());
291
- });
292
- const g = A(), c = () => {
293
- var r, n;
294
- (n = (r = g.value) == null ? void 0 : r.openDialog) == null || n.call(r);
295
- }, L = (r) => {
296
- _("updateApiUrl", r);
297
- };
298
- return (r, n) => {
299
- const h = U("svg-icon"), v = U("el-input"), t = U("el-form-item"), m = U("el-form"), p = U("el-link");
300
- return I(), x(le, null, [
301
- d("div", qe, [
302
- i(m, {
303
- model: e,
304
- rules: w,
305
- ref_key: "formRef",
306
- ref: l
307
- }, {
308
- default: a(() => [
309
- i(t, {
310
- label: "",
311
- prop: "account"
312
- }, {
313
- default: a(() => [
314
- i(v, {
315
- class: "account-input",
316
- modelValue: e.account,
317
- "onUpdate:modelValue": n[0] || (n[0] = (y) => e.account = y),
318
- placeholder: "请输入账号",
319
- clearable: ""
320
- }, {
321
- prefix: a(() => [
322
- i(h, {
323
- name: "account",
324
- style: { width: "15px", height: "15px" }
325
- })
326
- ]),
327
- _: 1
328
- }, 8, ["modelValue"])
329
- ]),
330
- _: 1
331
- }),
332
- i(t, {
333
- label: "",
334
- prop: "password"
335
- }, {
336
- default: a(() => [
337
- i(v, {
338
- class: "account-input",
339
- modelValue: e.password,
340
- "onUpdate:modelValue": n[1] || (n[1] = (y) => e.password = y),
341
- type: "password",
342
- placeholder: "请输入密码",
343
- "show-password": "",
344
- clearable: ""
345
- }, {
346
- prefix: a(() => [
347
- i(h, {
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
- d("div", De, [
361
- i(p, {
362
- class: "api-button",
363
- type: "primary",
364
- onClick: c
365
- }, {
366
- default: a(() => n[2] || (n[2] = [
367
- S("接口地址")
368
- ])),
369
- _: 1,
370
- __: [2]
371
- })
372
- ])
373
- ]),
374
- i(Oe, {
375
- ref_key: "apiFormDialogRef",
376
- ref: g,
377
- onUpdateApiUrl: L
378
- }, null, 512)
379
- ], 64);
380
- };
381
- }
382
- }), Pe = /* @__PURE__ */ E(Ke, [["__scopeId", "data-v-032ff9a0"]]), je = { class: "account-wrap" }, He = { class: "video-wrap" }, ze = /* @__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(b, { emit: u }) {
391
- const o = b, e = u;
392
- j(O);
393
- const { initVerify: w } = pe(), l = A(null), _ = A(null);
394
- let g = !1, c = null;
395
- const L = async (t) => {
396
- if (!t)
397
- return;
398
- const m = await w(t), { data: p } = m || {}, { account: y, password: $ } = (p == null ? void 0 : p.data) || {}, s = p == null ? void 0 : p.msg;
399
- if (!y) {
400
- P.warning(s || "识别失败,请重新识别!");
401
- return;
402
- }
403
- e("handleLoginFormChange", !0, {
404
- account: y,
405
- password: $
406
- });
407
- }, r = () => {
408
- if (!_.value || !l.value)
409
- return;
410
- const t = _.value, m = t.getContext("2d"), p = l.value;
411
- t.width = 200, t.height = 200;
412
- const y = p.videoWidth || 640, $ = p.videoHeight || 480, s = Math.min(200 / y, 200 / $), V = y * s, f = $ * s, T = (200 - V) / 2, k = (200 - f) / 2;
413
- m == null || m.drawImage(p, 0, 0, y, $, T, k, V, f), t.toBlob((C) => {
414
- if (C) {
415
- const B = new File([C], "face.png", { type: "image/png" });
416
- L(B);
417
- }
418
- }, "image/png");
419
- }, n = async () => {
420
- if (!l.value || g)
421
- return;
422
- const t = l.value;
423
- try {
424
- if (c = await navigator.mediaDevices.getUserMedia({
425
- video: { facingMode: "user" },
426
- // 前置;后置用 'environment'
427
- audio: !1
428
- }), t) {
429
- const m = t;
430
- m.srcObject = c, g = !0;
431
- }
432
- } catch {
433
- P.warning("摄像头启动失败");
434
- }
435
- };
436
- function h(t) {
437
- if (t && (t.getTracks().forEach((m) => m.stop()), l.value)) {
438
- const m = l.value;
439
- m.srcObject = null;
440
- }
441
- }
442
- const v = () => {
443
- h(c), g = !1;
444
- };
445
- return z(() => o.activeTabName, (t) => {
446
- if (t !== M.FACE) {
447
- v();
448
- return;
449
- }
450
- if (t === M.FACE && !g) {
451
- n();
452
- return;
453
- }
454
- }), ie(() => {
455
- v();
456
- }), (t, m) => (I(), x("div", je, [
457
- d("div", He, [
458
- d("video", {
459
- class: "face-video",
460
- ref_key: "videoRef",
461
- ref: l,
462
- id: "v",
463
- autoplay: "",
464
- playsinline: ""
465
- }, null, 512)
466
- ]),
467
- N(t.$slots, "default", {}, () => [
468
- d("button", {
469
- class: "face-screenshot",
470
- onClick: r
471
- }, "人脸识别")
472
- ], !0),
473
- d("canvas", {
474
- ref_key: "canvasRef",
475
- ref: _,
476
- id: "canvas"
477
- }, null, 512)
478
- ]));
479
- }
480
- }), Je = /* @__PURE__ */ E(ze, [["__scopeId", "data-v-b64bc91c"]]);
481
- function We() {
482
- return fe({
483
- url: "/api/sysAuth/login",
484
- method: "post",
485
- data: {
486
- account: "superadmin",
487
- password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
488
- tenantId: -1,
489
- code: "",
490
- codeId: 0
491
- }
492
- });
493
- }
494
- const te = j(O), { isDefaultModel: Ge } = ge(), Qe = async (b, u) => {
495
- var w, l, _, g, c, L, r, n, h, v, t, m, p, y;
496
- let o = Object.values(b), e = await re({
497
- userName: (w = o == null ? void 0 : o[0]) == null ? void 0 : w.trim(),
498
- password: (l = o == null ? void 0 : o[1]) == null ? void 0 : l.trim()
499
- });
500
- if (((_ = e == null ? void 0 : e.data) == null ? void 0 : _.status) === 200 && ((c = (g = e == null ? void 0 : e.data) == null ? void 0 : g.result) == null ? void 0 : c.length) <= 0 && (e = await de({
501
- userName: (L = o == null ? void 0 : o[0]) == null ? void 0 : L.trim(),
502
- password: (r = o == null ? void 0 : o[1]) == null ? void 0 : r.trim(),
503
- path: "系统管理/用户管理",
504
- platId: u
505
- })), ((n = e == null ? void 0 : e.data) == null ? void 0 : n.status) === 200 && ((v = (h = e == null ? void 0 : e.data) == null ? void 0 : h.result) == null ? void 0 : v.length) > 0) {
506
- const s = ((m = (t = e == null ? void 0 : e.data) == null ? void 0 : t.result) == null ? void 0 : m.find((f) => Ge(f))) || ((y = (p = e == null ? void 0 : e.data) == null ? void 0 : p.result) == null ? void 0 : y[0]);
507
- sessionStorage.setItem("systemKey", u && u !== "" ? u : s == null ? void 0 : s.plat_id);
508
- let V = s;
509
- return V.plat_id = V.plat_id ?? u, te.setLoginUserInfo(V), te.setSystemKey(u && u !== "" ? u : s == null ? void 0 : s.plat_id), !0;
510
- } else
511
- return P.error("输入的密码错误,请重新输入"), !1;
512
- }, Xe = { class: "login-wrap" }, Ye = { class: "login-body" }, Ze = { class: "login-body-item left" }, et = { class: "title" }, tt = { class: "first-level" }, ot = {
513
- key: 0,
514
- class: "logo"
515
- }, at = ["src"], nt = { class: "english-name" }, st = { class: "login-body-item right" }, lt = /* @__PURE__ */ q({
516
- __name: "index",
517
- props: {
518
- oldSystemKey: {}
519
- },
520
- emits: ["change", "updateApiUrl"],
521
- setup(b, { emit: u }) {
522
- const o = _e(), e = u, w = ue(O), l = j(O), { systemKey: _, systemInfo: g, loginUserInfo: c } = ne(l), L = oe(() => {
523
- var f;
524
- return ((f = g.value) == null ? void 0 : f.logo) || ve;
525
- }), r = A({
526
- // sysCTitle: 'INSOFWORKS',
527
- sysCTitle: "",
528
- sysETitle: "",
529
- // sysETitle: 'Dynamic Test Information System',
530
- loginTitle: "账户密码登录",
531
- tabs: [
532
- {
533
- name: "密码登录",
534
- btnLabel: "登录",
535
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
536
- },
537
- {
538
- name: "人脸识别",
539
- btnLabel: "人脸识别",
540
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
541
- },
542
- {
543
- name: "刷卡登录",
544
- btnLabel: "登录",
545
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
546
- }
547
- ]
548
- }), n = A("account"), h = A(!1), v = A(!1), t = () => {
549
- h.value = !0;
550
- }, m = (f, T) => {
551
- h.value = !1, f && $(T);
552
- }, p = async () => {
553
- var f, T, k;
554
- try {
555
- const C = await We();
556
- return ((f = C == null ? void 0 : C.data) == null ? void 0 : f.code) === 200 ? (sessionStorage.setItem("loginToken", (k = (T = C.data) == null ? void 0 : T.result) == null ? void 0 : k.accessToken), !0) : !1;
557
- } catch (C) {
558
- P.error(C);
559
- }
560
- return !0;
561
- }, y = async () => (sessionStorage.setItem("magicToken", "123456"), !0);
562
- ae(async () => {
563
- await p();
564
- });
565
- const $ = async (f) => {
566
- var F, W, G, Q, X, Y, Z;
567
- v.value = !0;
568
- let T = [Qe(f, (F = g.value) == null ? void 0 : F.plat_id), p(), y()];
569
- const k = await Promise.all(T), C = k == null ? void 0 : k.every((D) => D);
570
- let B = [
571
- {
572
- id: "1",
573
- request_method: "Post",
574
- request_url: "/platform/getdata",
575
- request_param: JSON.stringify({
576
- userName: "hjj",
577
- password: "1"
578
- }),
579
- request_result: "{}",
580
- is_delete: !1,
581
- request_table: "admin_user",
582
- request_type: "login"
583
- }
584
- ];
585
- try {
586
- const D = ((W = c == null ? void 0 : c.value) == null ? void 0 : W.plat_id) || ((G = g.value) == null ? void 0 : G.plat_id);
587
- await me({
588
- platId: parseInt(D),
589
- changeContents: [{
590
- tableName: "log",
591
- tableContents: B
592
- }]
593
- });
594
- } catch {
595
- }
596
- C ? (await be(), o.push("/"), l.setLogRecordAsync({
597
- type: "登录",
598
- data: {
599
- account: ((Q = c.value) == null ? void 0 : Q.account) ?? ((X = c.value) == null ? void 0 : X.账号),
600
- userName: ((Y = c.value) == null ? void 0 : Y.姓名) || ((Z = c.value) == null ? void 0 : Z.userName) || "未知"
601
- }
602
- }, "/login", "login"), w.setHasClickEditComp(!1)) : v.value = !1;
603
- }, s = (f) => {
604
- n.value = f, h.value = !1, v.value = !1;
605
- }, V = (f) => {
606
- e("updateApiUrl", f);
607
- };
608
- return (f, T) => (I(), x("div", Xe, [
609
- d("div", Ye, [
610
- d("div", Ze, [
611
- i(Le, { class: "login-left-bg" }, {
612
- img: a(() => {
613
- var k, C;
614
- return [
615
- d("div", et, [
616
- d("div", tt, [
617
- L.value ? (I(), x("div", ot, [
618
- d("img", {
619
- src: L.value,
620
- alt: ""
621
- }, null, 8, at)
622
- ])) : ce("", !0),
623
- d("div", nt, R(((k = K(g)) == null ? void 0 : k.EnglishName) || "Insofworks"), 1)
624
- ]),
625
- d("div", null, R(((C = K(g)) == null ? void 0 : C.chineseName) || "工业软件建模与开发系统"), 1)
626
- ]),
627
- T[0] || (T[0] = d("div", { class: "divide-line" }, null, -1))
628
- ];
629
- }),
630
- _: 1
631
- })
632
- ]),
633
- d("div", st, [
634
- i(Ne, {
635
- loading: v.value,
636
- onClickLogin: t,
637
- onHandleTabChange: s
638
- }, {
639
- title: a(() => [
640
- S(R(r.value.loginTitle), 1)
641
- ]),
642
- tabLabel1: a(() => [
643
- S(R(r.value.tabs[0].name), 1)
644
- ]),
645
- tabContent1: a(() => [
646
- i(Pe, {
647
- activeTabName: n.value,
648
- isClickLogin: h.value,
649
- onHandleLoginFormChange: m,
650
- onUpdateApiUrl: V
651
- }, null, 8, ["activeTabName", "isClickLogin"])
652
- ]),
653
- tabButton1: a(() => [
654
- S(R(r.value.tabs[0].btnLabel), 1)
655
- ]),
656
- tabLabel2: a(() => [
657
- S(R(r.value.tabs[1].name), 1)
658
- ]),
659
- tabContent2: a(() => [
660
- i(Je, {
661
- systemKey: f.oldSystemKey,
662
- activeTabName: n.value,
663
- isClickLogin: h.value,
664
- onHandleLoginFormChange: m
665
- }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
666
- ]),
667
- tabButton2: a(() => [
668
- S(R(r.value.tabs[1].btnLabel), 1)
669
- ]),
670
- _: 1
671
- }, 8, ["loading"])
672
- ])
673
- ])
674
- ]));
675
- }
676
- }), gt = /* @__PURE__ */ E(lt, [["__scopeId", "data-v-55e15f61"]]);
677
- export {
678
- gt as default
679
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./menu-DopnPfbG.cjs"),v=require("./index-CQY6ageG.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_=n.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!1},nodeDev:{type:String,default:""},pageKey:{type:String,default:""},interfaceContent:{type:Array,default:()=>[]}},emits:["buildContent","openThreeBuild","threeData","setLoginInfo"],setup(s,{emit:m}){const d=l.useLoginState(l.pinia),{loginUserInfo:r}=l.storeToRefs(d),{initSystemInfo:w}=v.useModelManagement(),e=s,u=m,g=n.computed(()=>{var t,o;return(e==null?void 0:e.showButton)||((o=(t=r.value)==null?void 0:t.layer)==null?void 0:o.toUpperCase())==="SUPERADMIN"});n.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,o])=>{d.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.interfaceContent,()=>{var o,i,c;if(!(e!=null&&e.interfaceContent)||Array.isArray(e==null?void 0:e.interfaceContent)&&((o=e==null?void 0:e.interfaceContent)==null?void 0:o.length)===0)return;let t=(i=e==null?void 0:e.interfaceContent)==null?void 0:i.find(a=>a==null?void 0:a.includes("VITE_API_NEW_URL"));t=(c=t==null?void 0:t.split("="))==null?void 0:c[1],t=t==null?void 0:t.trim(),d.setSystemUrl(t??"")},{immediate:!0,deep:!0}),n.onMounted(async()=>{e.systemInfo?d.setSystemInfo(e.systemInfo):await w()});const C=()=>{u("buildContent")},h=()=>{u("setLoginInfo")},S=t=>{u("openThreeBuild",t)},I=t=>{u("threeData",t)},f=()=>{var y;const t=e!=null&&e.windowConfig?(y=e==null?void 0:e.windowConfig)==null?void 0:y.width:window.innerWidth,o=1920,i=16,c=t/o,a=i*c;document.documentElement.style.fontSize=`${a}px`};return n.onMounted(()=>{f(),window.addEventListener("resize",f)}),n.onUnmounted(()=>{window.removeEventListener("resize",f)}),(t,o)=>{const i=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(i,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:g.value,nodeDev:e==null?void 0:e.nodeDev,windowConfig:s.windowConfig,systemInfo:s.systemInfo,"old-systemKey":s.systemKey,onBuildContent:C,onOpenThreeBuild:S,pageKey:s.pageKey,onThreeData:I,onSetLoginInfo:h},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey"])])}}}),D=B._export_sfc(_,[["__scopeId","data-v-a16fd15f"]]);exports.default=D;