ss-component-new 1.3.696 → 1.3.698

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 (87) hide show
  1. package/dist/config.js +1 -1
  2. package/dist/header-R5IfoKTX.js +4029 -0
  3. package/dist/index-B9isvN1d.js +182 -0
  4. package/dist/index-BKKAvqK3.js +1043 -0
  5. package/dist/{index-BHtNKL1L.js → index-BKK_dL6t.js} +1 -1
  6. package/dist/{index-ChNfRlIP.js → index-BKoAuSBh.js} +223 -18
  7. package/dist/index-By70dOai.js +50 -0
  8. package/dist/index-Cc1nPEpp.js +49044 -0
  9. package/dist/index-RUwH0Fls.js +365 -0
  10. package/dist/index.vue_vue_type_script_setup_true_lang-Dj5jZLRU.js +11484 -0
  11. package/dist/menu-Blo579Ai.js +5217 -0
  12. package/dist/ss-component.css +2 -8
  13. package/dist/ss-component.js +28 -64
  14. package/dist/ss-component2.js +15 -75
  15. package/dist/ss-component3.js +1 -1
  16. package/package.json +8 -6
  17. package/public/config.js +1 -1
  18. package/dist/JSEncrypt-B36c1iN5.js +0 -1983
  19. package/dist/MTLLoader-DzQM5Czw.js +0 -657
  20. package/dist/URDFLoader-CPXooEPU.js +0 -2299
  21. package/dist/animationData-DOIhMG9C.js +0 -83
  22. package/dist/array-CLHtElDn.js +0 -1045
  23. package/dist/clone-Dp_gc9ll.js +0 -8
  24. package/dist/eleIcon-qStmsM1q.js +0 -29
  25. package/dist/fileUtil-UOt_otFo.js +0 -20
  26. package/dist/iconfont-DmEA4YvX.js +0 -1018
  27. package/dist/icons/svg/functionList.svg +0 -1
  28. package/dist/icons/svg/method.svg +0 -1
  29. package/dist/index-11kpzK0A.js +0 -209
  30. package/dist/index-1izAkRXf.js +0 -572
  31. package/dist/index-B0H3C7WG.js +0 -103
  32. package/dist/index-B25qk008.js +0 -470
  33. package/dist/index-BJLCuYEK.js +0 -84
  34. package/dist/index-BbyrFzEO.js +0 -93
  35. package/dist/index-BooO2Bml.js +0 -78
  36. package/dist/index-Bw3sTXPI.js +0 -8993
  37. package/dist/index-C7sOKXGv.js +0 -48
  38. package/dist/index-C8Ap8ZMv.js +0 -873
  39. package/dist/index-CGi0g-VN.js +0 -627
  40. package/dist/index-CKem1G5u.js +0 -63004
  41. package/dist/index-CV_jQDcg.js +0 -9
  42. package/dist/index-CWOXvFfD.js +0 -44
  43. package/dist/index-CmdNsQMw.js +0 -93
  44. package/dist/index-CydXQbtX.js +0 -622
  45. package/dist/index-D9XVxZlg.js +0 -411
  46. package/dist/index-DAJxL40d.js +0 -55
  47. package/dist/index-DBsEVMiM.js +0 -201
  48. package/dist/index-DG4hoOWt.js +0 -665
  49. package/dist/index-DH6bfbMC.js +0 -119
  50. package/dist/index-DUbk5m5P.js +0 -99
  51. package/dist/index-DashTaLW.js +0 -30
  52. package/dist/index-DbPvKW8Q.js +0 -98
  53. package/dist/index-Ds6m_4JJ.js +0 -28500
  54. package/dist/index-DupTchhl.js +0 -1000
  55. package/dist/index-DyCq_odP.js +0 -331
  56. package/dist/index-N6DWelhz.js +0 -20549
  57. package/dist/index-UB_oCdlo.js +0 -62
  58. package/dist/index-YjBTGOkO.js +0 -61
  59. package/dist/index-_H190mm4.js +0 -83
  60. package/dist/index-jbOjjV0j.js +0 -447
  61. package/dist/index-mBAa1AXl.js +0 -107
  62. package/dist/index-qSuG4S8O.js +0 -25297
  63. package/dist/index-rlStojTL.js +0 -52
  64. package/dist/index-uF-ibwG0.js +0 -9
  65. package/dist/index.vue_vue_type_script_setup_true_lang-DRzriV-s.js +0 -55
  66. package/dist/index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Mr9QL-WU.js +0 -137877
  67. package/dist/isString-0ZglyOfu.js +0 -8
  68. package/dist/localIcon-D5UoFBU5.js +0 -76
  69. package/dist/main-Cs0nFQEQ.js +0 -502
  70. package/dist/menuIndex-BB0uVPRX.js +0 -159
  71. package/dist/request-1RPa2bBn.js +0 -9048
  72. package/dist/threeModel-BJjbCDpj.js +0 -1108
  73. package/dist/threePreview-Bfo24URW.js +0 -2259
  74. package/dist/threeSceneView-CHiKXhnX.js +0 -1290
  75. package/dist/threeSceneViewForCPMPIP-KLFT3AYb.js +0 -539
  76. package/dist/threeTrackPathView-DOy0uuLZ.js +0 -620
  77. package/dist/threeViewerHost-D1mrtsv3.js +0 -233
  78. package/dist/urdfTree-C6mx4T9t.js +0 -254
  79. package/dist/workpieceTreePanel-CnO3zz7U.js +0 -559
  80. package/public/icons/svg/functionList.svg +0 -1
  81. package/public/icons/svg/method.svg +0 -1
  82. /package/dist/icons/svg/{tableClose.svg → table-close.svg} +0 -0
  83. /package/dist/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
  84. /package/dist/icons/svg/{Update.svg → update.svg} +0 -0
  85. /package/public/icons/svg/{tableClose.svg → table-close.svg} +0 -0
  86. /package/public/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
  87. /package/public/icons/svg/{Update.svg → update.svg} +0 -0
@@ -1,411 +0,0 @@
1
- import { defineComponent as x, ref as I, reactive as T, resolveComponent as v, createElementBlock as E, openBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as z, nextTick as N, Fragment as q, withDirectives as H, renderSlot as $, vShow as M } from "vue";
2
- import { as as V } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Mr9QL-WU.js";
3
- import { aD as X, az as J, ao as G, a7 as D, a9 as c, aa as R, ar as g } from "./request-1RPa2bBn.js";
4
- import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const K = "ElUpload";
6
- class Q extends Error {
7
- constructor(r, o, n, p) {
8
- super(r), this.name = "UploadAjaxError", this.status = o, this.method = n, this.url = p;
9
- }
10
- }
11
- function B(t, r, o) {
12
- let n;
13
- return o.response ? n = `${o.response.error || o.response}` : o.responseText ? n = `${o.responseText}` : n = `fail to ${r.method} ${t} ${o.status}`, new Q(n, o.status, r.method, t);
14
- }
15
- function W(t) {
16
- const r = t.responseText || t.response;
17
- if (!r)
18
- return r;
19
- try {
20
- return JSON.parse(r);
21
- } catch {
22
- return r;
23
- }
24
- }
25
- const Y = (t) => {
26
- typeof XMLHttpRequest > "u" && X(K, "XMLHttpRequest is undefined");
27
- const r = new XMLHttpRequest(), o = t.action;
28
- r.upload && r.upload.addEventListener("progress", (e) => {
29
- const i = e;
30
- i.percent = e.total > 0 ? e.loaded / e.total * 100 : 0, t.onProgress(i);
31
- });
32
- const n = new FormData();
33
- if (t.data)
34
- for (const [e, i] of Object.entries(t.data))
35
- J(i) && i.length ? n.append(e, ...i) : n.append(e, i);
36
- n.append(t.filename, t.file, t.file.name), r.addEventListener("error", () => {
37
- t.onError(B(o, t, r));
38
- }), r.addEventListener("load", () => {
39
- if (r.status < 200 || r.status >= 300)
40
- return t.onError(B(o, t, r));
41
- t.onSuccess(W(r));
42
- }), r.open(t.method, o, !0), t.withCredentials && "withCredentials" in r && (r.withCredentials = !0);
43
- const p = t.headers || {};
44
- if (p instanceof Headers)
45
- p.forEach((e, i) => r.setRequestHeader(i, e));
46
- else
47
- for (const [e, i] of Object.entries(p))
48
- G(i) || r.setRequestHeader(e, String(i));
49
- return r.send(n), r;
50
- }, Z = ["text", "picture", "picture-card"];
51
- let ee = 1;
52
- const te = () => Date.now() + ee++, re = D({
53
- action: {
54
- type: String,
55
- default: "#"
56
- },
57
- headers: {
58
- type: c(Object)
59
- },
60
- method: {
61
- type: String,
62
- default: "post"
63
- },
64
- data: {
65
- type: c([Object, Function, Promise]),
66
- default: () => R({})
67
- },
68
- multiple: Boolean,
69
- name: {
70
- type: String,
71
- default: "file"
72
- },
73
- drag: Boolean,
74
- withCredentials: Boolean,
75
- showFileList: {
76
- type: Boolean,
77
- default: !0
78
- },
79
- accept: {
80
- type: String,
81
- default: ""
82
- },
83
- fileList: {
84
- type: c(Array),
85
- default: () => R([])
86
- },
87
- autoUpload: {
88
- type: Boolean,
89
- default: !0
90
- },
91
- listType: {
92
- type: String,
93
- values: Z,
94
- default: "text"
95
- },
96
- httpRequest: {
97
- type: c(Function),
98
- default: Y
99
- },
100
- disabled: Boolean,
101
- limit: Number
102
- }), Ce = D({
103
- ...re,
104
- beforeUpload: {
105
- type: c(Function),
106
- default: g
107
- },
108
- beforeRemove: {
109
- type: c(Function)
110
- },
111
- onRemove: {
112
- type: c(Function),
113
- default: g
114
- },
115
- onChange: {
116
- type: c(Function),
117
- default: g
118
- },
119
- onPreview: {
120
- type: c(Function),
121
- default: g
122
- },
123
- onSuccess: {
124
- type: c(Function),
125
- default: g
126
- },
127
- onProgress: {
128
- type: c(Function),
129
- default: g
130
- },
131
- onError: {
132
- type: c(Function),
133
- default: g
134
- },
135
- onExceed: {
136
- type: c(Function),
137
- default: g
138
- },
139
- crossorigin: {
140
- type: c(String)
141
- }
142
- }), ae = { style: { "text-align": "left" } }, oe = { class: "cropper-warp" }, se = { class: "cropper-warp-left" }, ne = ["src"], le = { class: "cropper-warp-right" }, ie = { class: "cropper-warp-right-item" }, ce = { class: "cropper-warp-right-value" }, pe = ["src"], de = { class: "cropper-warp-right-item" }, ue = { class: "cropper-warp-right-value" }, fe = ["src"], ge = { class: "dialog-footer" }, me = /* @__PURE__ */ x({
143
- __name: "index",
144
- props: {
145
- title: {
146
- type: String,
147
- default: ""
148
- }
149
- },
150
- emits: ["submitImage", "deleteImage"],
151
- setup(t, { expose: r, emit: o }) {
152
- const n = o, p = I(), e = T({
153
- isShowDialog: !1,
154
- cropperImg: "",
155
- cropperImgBase64: "",
156
- cropper: null
157
- }), i = async (s) => {
158
- if (e.isShowDialog = !0, !s) return;
159
- let a = window.URL || window.webkitURL;
160
- e.cropperImg = a.createObjectURL(s), N(() => {
161
- k();
162
- });
163
- }, y = () => {
164
- var s;
165
- (s = e.cropper) == null || s.destroy(), e.isShowDialog = !1;
166
- }, _ = () => {
167
- y();
168
- }, b = async () => {
169
- const s = await S();
170
- n("submitImage", { file: s }), y();
171
- }, f = async () => {
172
- n("deleteImage");
173
- }, k = () => {
174
- const s = document.querySelector(".cropper-warp-left-img");
175
- s && s.setAttribute("crossOrigin", "anonymous"), e.cropper = new V(s, {
176
- viewMode: 1,
177
- dragMode: "none",
178
- initialAspectRatio: 1,
179
- aspectRatio: 1,
180
- preview: ".before",
181
- background: !0,
182
- autoCropArea: 1,
183
- // zoomOnWheel: false,
184
- checkCrossOrigin: !1,
185
- crop: () => {
186
- e.cropperImgBase64 = e.cropper.getCroppedCanvas().toDataURL("image/jpeg");
187
- }
188
- });
189
- }, S = async () => e != null && e.cropper ? new Promise((s) => {
190
- var a, m;
191
- (m = (a = e == null ? void 0 : e.cropper) == null ? void 0 : a.getCroppedCanvas()) == null || m.toBlob((C) => {
192
- s(C);
193
- });
194
- }) : (await fetch(e.cropperImg)).blob(), F = async (s) => {
195
- var m;
196
- let a = window.URL || window.webkitURL;
197
- e.cropperImg = a.createObjectURL(s.raw), (m = e.cropper) == null || m.replace(e.cropperImg);
198
- }, P = (s) => {
199
- p.value.clearFiles();
200
- const a = s[0];
201
- a.uid = te(), p.value.handleStart(a);
202
- };
203
- return r({
204
- openDialog: i
205
- }), (s, a) => {
206
- const m = v("ele-Edit"), C = v("el-icon"), w = v("el-button"), O = v("el-upload"), j = v("el-dialog");
207
- return U(), E("div", null, [
208
- u(j, {
209
- modelValue: e.isShowDialog,
210
- "onUpdate:modelValue": a[0] || (a[0] = (A) => e.isShowDialog = A),
211
- width: "769px",
212
- "before-close": _
213
- }, {
214
- header: d(() => [
215
- l("div", ae, [
216
- u(C, {
217
- size: "16",
218
- style: { "margin-right": "3px", display: "inline", "vertical-align": "middle" }
219
- }, {
220
- default: d(() => [
221
- u(m)
222
- ]),
223
- _: 1
224
- }),
225
- l("span", null, z(t.title), 1)
226
- ])
227
- ]),
228
- footer: d(() => [
229
- l("span", ge, [
230
- u(O, {
231
- class: "avatar-uploader",
232
- ref_key: "uploadSignRef",
233
- ref: p,
234
- accept: ".jpg,.png",
235
- limit: 1,
236
- "show-file-list": !1,
237
- "auto-upload": !1,
238
- "on-change": F,
239
- "on-exceed": P
240
- }, {
241
- trigger: d(() => [
242
- u(w, {
243
- type: "info",
244
- icon: "ele-Picture"
245
- }, {
246
- default: d(() => a[4] || (a[4] = [
247
- h("选择图片")
248
- ])),
249
- _: 1,
250
- __: [4]
251
- })
252
- ]),
253
- default: d(() => [
254
- u(w, {
255
- onClick: f,
256
- type: "danger",
257
- icon: "ele-Picture",
258
- style: { "margin-left": "8px" }
259
- }, {
260
- default: d(() => a[5] || (a[5] = [
261
- h("删除图片")
262
- ])),
263
- _: 1,
264
- __: [5]
265
- })
266
- ]),
267
- _: 1
268
- }, 512),
269
- l("div", null, [
270
- u(w, {
271
- onClick: _,
272
- id: "themeBorderButton"
273
- }, {
274
- default: d(() => a[6] || (a[6] = [
275
- h("取 消")
276
- ])),
277
- _: 1,
278
- __: [6]
279
- }),
280
- u(w, {
281
- onClick: b,
282
- id: "themeButton"
283
- }, {
284
- default: d(() => a[7] || (a[7] = [
285
- h("确 定")
286
- ])),
287
- _: 1,
288
- __: [7]
289
- })
290
- ])
291
- ])
292
- ]),
293
- default: d(() => [
294
- l("div", oe, [
295
- l("div", se, [
296
- l("img", {
297
- src: e.cropperImg,
298
- class: "cropper-warp-left-img"
299
- }, null, 8, ne)
300
- ]),
301
- l("div", le, [
302
- a[3] || (a[3] = l("div", { class: "cropper-warp-right-title" }, "预览", -1)),
303
- l("div", ie, [
304
- l("div", ce, [
305
- l("img", {
306
- src: e.cropperImgBase64,
307
- class: "cropper-warp-right-value-img"
308
- }, null, 8, pe)
309
- ]),
310
- a[1] || (a[1] = l("div", { class: "cropper-warp-right-label" }, "100 x 100", -1))
311
- ]),
312
- l("div", de, [
313
- l("div", ue, [
314
- l("img", {
315
- src: e.cropperImgBase64,
316
- class: "cropper-warp-right-value-img cropper-size"
317
- }, null, 8, fe)
318
- ]),
319
- a[2] || (a[2] = l("div", { class: "cropper-warp-right-label" }, "50 x 50", -1))
320
- ])
321
- ])
322
- ])
323
- ]),
324
- _: 1
325
- }, 8, ["modelValue"])
326
- ]);
327
- };
328
- }
329
- }), ve = /* @__PURE__ */ L(me, [["__scopeId", "data-v-4a19ffcf"]]), ye = /* @__PURE__ */ x({
330
- __name: "index",
331
- props: {
332
- avatarUrl: {
333
- type: String,
334
- default: ""
335
- },
336
- avatarBlob: {
337
- type: Blob,
338
- default: ""
339
- },
340
- size: {
341
- type: [String, Number],
342
- default: "large"
343
- },
344
- showCropper: {
345
- type: Boolean,
346
- default: !0
347
- },
348
- banClick: {
349
- type: Boolean,
350
- default: !1
351
- },
352
- clickStop: {
353
- type: Boolean,
354
- default: !0
355
- }
356
- },
357
- emits: ["submitImage", "deleteImage", "clickAvatar"],
358
- setup(t, { emit: r }) {
359
- const o = t, n = I(), p = I(null), e = r, i = () => !0, y = async () => {
360
- var f;
361
- o != null && o.banClick || (e("clickAvatar", o.avatarUrl), (f = n.value) == null || f.openDialog(o.avatarBlob));
362
- }, _ = async (f) => {
363
- e("submitImage", f);
364
- }, b = async () => {
365
- e("deleteImage");
366
- };
367
- return (f, k) => {
368
- const S = v("el-avatar");
369
- return U(), E(q, null, [
370
- u(S, {
371
- src: t.avatarUrl,
372
- onClick: y,
373
- fit: "cover",
374
- size: t.size,
375
- ref_key: "avatarRef",
376
- ref: p,
377
- style: { background: "var(--user-avatar-bg)" },
378
- alt: "头像查找失败",
379
- onError: i
380
- }, {
381
- default: d(() => [
382
- $(f.$slots, "avatarDefault", {}, void 0, !0)
383
- ]),
384
- _: 3
385
- }, 8, ["src", "size"]),
386
- H(u(ve, {
387
- ref_key: "cropperDialogRef",
388
- ref: n,
389
- title: "更改头像",
390
- avatarUrl: t.avatarUrl,
391
- onSubmitImage: _,
392
- onDeleteImage: b
393
- }, null, 8, ["avatarUrl"]), [
394
- [M, t.showCropper && (o == null ? void 0 : o.clickStop)]
395
- ])
396
- ], 64);
397
- };
398
- }
399
- }), _e = /* @__PURE__ */ L(ye, [["__scopeId", "data-v-82946fb9"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
400
- __proto__: null,
401
- default: _e
402
- }, Symbol.toStringTag, { value: "Module" }));
403
- export {
404
- _e as A,
405
- ve as C,
406
- re as a,
407
- Ce as b,
408
- te as g,
409
- Ie as i,
410
- Z as u
411
- };
@@ -1,55 +0,0 @@
1
- import { f as P, h as C, d as L, b, p as N, s as R, i as T } from "./index-Bw3sTXPI.js";
2
- import { E as k } from "./request-1RPa2bBn.js";
3
- const A = b(N), { isDefaultModel: D } = L(), E = async (c, a) => {
4
- var l, n, r, i, s, d, g, p, f, _, y, h, S, w;
5
- let e = Object.values(c), t = await P({
6
- userName: (l = e == null ? void 0 : e[0]) == null ? void 0 : l.trim(),
7
- password: (n = e == null ? void 0 : e[1]) == null ? void 0 : n.trim()
8
- });
9
- if (((r = t == null ? void 0 : t.data) == null ? void 0 : r.status) === 200 && ((s = (i = t == null ? void 0 : t.data) == null ? void 0 : i.result) == null ? void 0 : s.length) <= 0 && (t = await C({
10
- userName: (d = e == null ? void 0 : e[0]) == null ? void 0 : d.trim(),
11
- password: (g = e == null ? void 0 : e[1]) == null ? void 0 : g.trim(),
12
- path: "系统管理/用户管理",
13
- platId: a
14
- })), ((p = t == null ? void 0 : t.data) == null ? void 0 : p.status) === 200 && ((_ = (f = t == null ? void 0 : t.data) == null ? void 0 : f.result) == null ? void 0 : _.length) > 0) {
15
- const o = ((h = (y = t == null ? void 0 : t.data) == null ? void 0 : y.result) == null ? void 0 : h.find((M) => D(M))) || ((w = (S = t == null ? void 0 : t.data) == null ? void 0 : S.result) == null ? void 0 : w[0]);
16
- sessionStorage.setItem("systemKey", a && a !== "" ? a : o == null ? void 0 : o.plat_id);
17
- let m = o;
18
- return m.plat_id = m.plat_id ?? a, A.setLoginUserInfo(m), A.setSystemKey(a && a !== "" ? a : o == null ? void 0 : o.plat_id), !0;
19
- } else
20
- return k.error("输入的密码错误,请重新输入"), !1;
21
- }, K = b(N), { systemInfo: q, loginUserInfo: u } = R(K), O = async () => (sessionStorage.setItem("loginToken", "111"), !0), x = async () => (sessionStorage.setItem("magicToken", "123456"), !0), I = async (c) => {
22
- var n, r, i;
23
- let a = [E(c, (n = q.value) == null ? void 0 : n.plat_id), O(), x()];
24
- const e = await Promise.all(a), t = e == null ? void 0 : e.every((s) => s);
25
- let l = [
26
- {
27
- id: "1",
28
- request_method: "Post",
29
- request_url: "/platform/getdata",
30
- request_param: JSON.stringify({
31
- userName: "hjj",
32
- password: "1"
33
- }),
34
- request_result: "{}",
35
- is_delete: !1,
36
- request_table: "admin_user",
37
- request_type: "login"
38
- }
39
- ];
40
- try {
41
- const s = ((r = u == null ? void 0 : u.value) == null ? void 0 : r.plat_id) || ((i = q.value) == null ? void 0 : i.plat_id);
42
- return await T({
43
- platId: parseInt(s),
44
- changeContents: [{
45
- tableName: "log",
46
- tableContents: l
47
- }]
48
- }), t;
49
- } catch {
50
- return t;
51
- }
52
- };
53
- export {
54
- I as l
55
- };
@@ -1,201 +0,0 @@
1
- import { defineComponent as W, ref as z, computed as N, watch as y, nextTick as V, onMounted as k, onUnmounted as G, resolveComponent as $, createElementBlock as L, openBlock as w, createBlock as q } from "vue";
2
- import { b as J, p as h, s as v, d as Q, a as X, u as Y, g as Z, v as p } from "./index-Bw3sTXPI.js";
3
- import { l as ee } from "./index-DAJxL40d.js";
4
- import { useRouter as te } from "vue-router";
5
- import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- const oe = { key: 0 }, ae = /* @__PURE__ */ W({
7
- __name: "index",
8
- props: {
9
- windowConfig: {
10
- type: Object,
11
- default: () => {
12
- }
13
- },
14
- systemInfo: {
15
- type: Object,
16
- default: () => {
17
- }
18
- },
19
- systemKey: {
20
- type: String,
21
- default: ""
22
- },
23
- pathContent: {
24
- type: String,
25
- default: ""
26
- },
27
- mode: {
28
- type: String,
29
- default: "view"
30
- },
31
- content: {
32
- type: String,
33
- default: ""
34
- },
35
- jsonContents: {
36
- type: Array,
37
- default: () => []
38
- },
39
- showButton: {
40
- type: Boolean,
41
- default: !1
42
- },
43
- nodeDev: {
44
- type: String,
45
- default: ""
46
- },
47
- pageKey: {
48
- type: String,
49
- default: ""
50
- },
51
- interfaceContent: {
52
- type: Array,
53
- default: () => []
54
- },
55
- loginContent: {
56
- type: Object,
57
- default: () => {
58
- }
59
- },
60
- menuFiles: {
61
- type: Array,
62
- default: () => []
63
- },
64
- workspaceHistoryData: {
65
- type: Array,
66
- default: () => []
67
- },
68
- // 用于打开/拣选工作区
69
- workspaceInfo: {
70
- type: Object,
71
- default: () => []
72
- }
73
- },
74
- emits: ["buildContent", "openThreeBuild", "threeData", "setLoginInfo", "projectLogin", "updateApiUrl", "clearFileContent", "systemContent", "getMenuPathValue", "executeWorkspace", "updateVersion"],
75
- setup(m, { emit: _ }) {
76
- const A = te(), d = J(h), { loginUserInfo: s } = v(d), { initSystemInfo: D } = Q(), F = X(h), { refreshLogin: E } = v(F), f = Y(h), g = z(!0), { activeMenuPath: I } = v(f), e = m, o = _, j = N(() => {
77
- var t, n;
78
- return (e == null ? void 0 : e.showButton) || ((n = (t = s.value) == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
79
- }), B = (t) => {
80
- o("systemContent", t);
81
- }, M = () => {
82
- o("updateVersion");
83
- }, T = () => {
84
- o("clearFileContent");
85
- };
86
- y(
87
- () => e == null ? void 0 : e.menuFiles,
88
- () => {
89
- var t;
90
- ((t = e == null ? void 0 : e.menuFiles) == null ? void 0 : t.length) > 0 && f.setLocalFiles(e == null ? void 0 : e.menuFiles);
91
- },
92
- { deep: !0, immediate: !0 }
93
- ), y(
94
- () => I.value,
95
- async () => {
96
- var n, a;
97
- let t = await Z({
98
- platId: parseInt((n = s == null ? void 0 : s.value) == null ? void 0 : n.plat_id)
99
- });
100
- t = (a = t == null ? void 0 : t.data) == null ? void 0 : a.result, f.setDataFiles(t), o("getMenuPathValue", I.value);
101
- },
102
- { deep: !0, immediate: !0 }
103
- ), y(
104
- () => e == null ? void 0 : e.loginContent,
105
- async () => {
106
- var n, a, u, l;
107
- g.value = !0;
108
- let t = e == null ? void 0 : e.loginContent;
109
- if (t != null && t.account && (t != null && t.password) && !E.value && (await ee(t), status)) {
110
- let c = await p();
111
- o("systemContent", c == null ? void 0 : c.allMenuContents), A.push("/"), d.setLogRecordAsync({
112
- type: "登录",
113
- data: {
114
- account: ((n = s.value) == null ? void 0 : n.account) ?? ((a = s.value) == null ? void 0 : a.账号),
115
- userName: ((u = s.value) == null ? void 0 : u.姓名) || ((l = s.value) == null ? void 0 : l.userName) || "未知"
116
- }
117
- }, "/login", "login"), f.setHasClickEditComp(!1);
118
- }
119
- g.value = !1, await V();
120
- },
121
- { deep: !0, immediate: !0 }
122
- );
123
- const b = (t) => {
124
- o("projectLogin", t);
125
- }, x = () => {
126
- o("projectLogin", "");
127
- };
128
- y(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
129
- d.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
130
- }, { immediate: !0 }), y(
131
- () => e == null ? void 0 : e.interfaceContent,
132
- () => {
133
- var a, u, l, c, r;
134
- if (!(e != null && e.interfaceContent) || Array.isArray(e == null ? void 0 : e.interfaceContent) && ((a = e == null ? void 0 : e.interfaceContent) == null ? void 0 : a.length) === 0) return;
135
- let t = (u = e == null ? void 0 : e.interfaceContent) == null ? void 0 : u.find((i) => i == null ? void 0 : i.includes("VITE_API_NEW_URL")), n = (l = e == null ? void 0 : e.interfaceContent) == null ? void 0 : l.find((i) => i == null ? void 0 : i.includes("VITE_FACE_RECOGNITION_API_URL"));
136
- n = (c = n == null ? void 0 : n.split("=")) == null ? void 0 : c[1], n = n == null ? void 0 : n.trim(), t = (r = t == null ? void 0 : t.split("=")) == null ? void 0 : r[1], t = t == null ? void 0 : t.trim(), d.setExtraUrl(n ?? ""), d.setSystemUrl(t ?? "");
137
- },
138
- { immediate: !0, deep: !0 }
139
- ), k(async () => {
140
- e.systemInfo ? d.setSystemInfo(e.systemInfo) : await D();
141
- });
142
- const K = () => {
143
- o("buildContent");
144
- }, R = () => {
145
- o("setLoginInfo");
146
- }, U = (t) => {
147
- o("openThreeBuild", t);
148
- }, H = (t) => {
149
- o("threeData", t);
150
- }, O = (t) => {
151
- o("updateApiUrl", t);
152
- }, P = (t) => {
153
- o("executeWorkspace", t);
154
- }, C = () => {
155
- var r, i, S;
156
- const t = e != null && e.windowConfig ? (r = e == null ? void 0 : e.windowConfig) == null ? void 0 : r.width : window.innerWidth, n = (i = e == null ? void 0 : e.windowConfig) != null && i.height ? (S = e == null ? void 0 : e.windowConfig) == null ? void 0 : S.height : window.innerHeight;
157
- f.setSystemHeight(n);
158
- const a = 1920, u = 16, l = t / a, c = u * l;
159
- document.documentElement.style.fontSize = `${c}px`;
160
- };
161
- return k(() => {
162
- C(), window.addEventListener("resize", C);
163
- }), G(() => {
164
- window.removeEventListener("resize", C);
165
- }), (t, n) => {
166
- const a = $("router-view");
167
- return w(), L("div", null, [
168
- g.value ? (w(), L("div", oe)) : (w(), q(a, {
169
- key: 1,
170
- mode: e == null ? void 0 : e.mode,
171
- content: e == null ? void 0 : e.content,
172
- jsonContents: e == null ? void 0 : e.jsonContents,
173
- pathContent: e == null ? void 0 : e.pathContent,
174
- showButton: j.value,
175
- nodeDev: e == null ? void 0 : e.nodeDev,
176
- windowConfig: m.windowConfig,
177
- systemInfo: m.systemInfo,
178
- "old-systemKey": m.systemKey,
179
- onBuildContent: K,
180
- onProjectLogin: b,
181
- onClearLogin: x,
182
- onUpdateApiUrl: O,
183
- onOpenThreeBuild: U,
184
- pageKey: m.pageKey,
185
- onThreeData: H,
186
- onSetLoginInfo: R,
187
- loginContent: e == null ? void 0 : e.loginContent,
188
- onUpdateVersion: M,
189
- onClearFileContent: T,
190
- onSystemContent: B,
191
- onExecuteWorkspace: P,
192
- workspaceHistoryData: e == null ? void 0 : e.workspaceHistoryData,
193
- workspaceInfo: e == null ? void 0 : e.workspaceInfo
194
- }, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey", "loginContent", "workspaceHistoryData", "workspaceInfo"]))
195
- ]);
196
- };
197
- }
198
- }), de = /* @__PURE__ */ ne(ae, [["__scopeId", "data-v-201a6b2b"]]);
199
- export {
200
- de as default
201
- };