ss-component-new 1.3.736 → 1.3.738

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 (130) hide show
  1. package/dist/JSEncrypt-B36c1iN5.js +1983 -0
  2. package/dist/MTLLoader-BVktbBYH.js +657 -0
  3. package/dist/URDFLoader-DOfmRu4N.js +2299 -0
  4. package/dist/__vite-browser-external-DYxpcVy9.js +4 -0
  5. package/dist/animationData-DFwWrgvB.js +83 -0
  6. package/dist/array-BblFKp6J.js +1045 -0
  7. package/dist/clone-B58hfp9X.js +8 -0
  8. package/dist/config.js +1 -1
  9. package/dist/eleIcon-qStmsM1q.js +29 -0
  10. package/dist/fileUtil-UOt_otFo.js +20 -0
  11. package/dist/iconfont-kC8HZ4Ly.js +1030 -0
  12. package/dist/icons/svg/functionList.svg +1 -0
  13. package/dist/icons/svg/method.svg +1 -0
  14. package/dist/index-11kpzK0A.js +209 -0
  15. package/dist/index-5E79iwO0.js +83 -0
  16. package/dist/index-B1p0mv2e.js +201 -0
  17. package/dist/index-B4TcjId0.js +331 -0
  18. package/dist/index-B5ngelGR.js +20578 -0
  19. package/dist/index-BHtNKL1L.js +27 -0
  20. package/dist/index-BiiVP9UY.js +447 -0
  21. package/dist/index-BzB2Vn8c.js +93 -0
  22. package/dist/index-C-eAXBcR.js +78 -0
  23. package/dist/index-C5USB9qE.js +48 -0
  24. package/dist/index-C84z9NFx.js +30 -0
  25. package/dist/index-CDE3W8eV.js +103 -0
  26. package/dist/index-CK4tG84e.js +572 -0
  27. package/dist/index-CLm6QFZK.js +627 -0
  28. package/dist/index-CToBJlDQ.js +28500 -0
  29. package/dist/index-CV_jQDcg.js +9 -0
  30. package/dist/index-CWOXvFfD.js +44 -0
  31. package/dist/index-CXQiVSNJ.js +622 -0
  32. package/dist/{index-DyhB-cd1.js → index-ChNfRlIP.js} +18 -253
  33. package/dist/index-Cryd-gMS.js +62 -0
  34. package/dist/index-Cy0pOs1M.js +411 -0
  35. package/dist/index-DJJYgWGf.js +93 -0
  36. package/dist/index-DQsXaCwv.js +25341 -0
  37. package/dist/index-DUbk5m5P.js +99 -0
  38. package/dist/index-Dep-Vngh.js +1000 -0
  39. package/dist/index-Dgtvod-r.js +84 -0
  40. package/dist/index-Di9zYrW0.js +665 -0
  41. package/dist/index-DrKojU3W.js +470 -0
  42. package/dist/index-Q06_a3No.js +873 -0
  43. package/dist/index-XnbtYIMr.js +58 -0
  44. package/dist/index-YjBTGOkO.js +61 -0
  45. package/dist/index-fQsebbH3.js +107 -0
  46. package/dist/index-nOF50-Li.js +98 -0
  47. package/dist/index-rlStojTL.js +52 -0
  48. package/dist/index-uF-ibwG0.js +9 -0
  49. package/dist/index-wkaC1Dyn.js +119 -0
  50. package/dist/index-yOnrK71-.js +8994 -0
  51. package/dist/index-yRb0l-bC.js +63306 -0
  52. package/dist/index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-lORgn-P0.js +137927 -0
  53. package/dist/isString-0ZglyOfu.js +8 -0
  54. package/dist/localIcon-D5UoFBU5.js +76 -0
  55. package/dist/main-BeZonpqe.js +502 -0
  56. package/dist/menuIndex-Cv7pne94.js +159 -0
  57. package/dist/obj/model.mtl +42 -0
  58. package/dist/obj/model.obj +26110 -0
  59. package/dist/pyodide-Dc1Mu-0d.js +489 -0
  60. package/dist/request-1RPa2bBn.js +9048 -0
  61. package/dist/ss-component.css +8 -2
  62. package/dist/ss-component.js +64 -28
  63. package/dist/ss-component2.js +75 -15
  64. package/dist/ss-component3.js +1 -1
  65. package/dist/threeModel-BFDsEVGl.js +1109 -0
  66. package/dist/threePreview-CgmqKkIH.js +3091 -0
  67. package/dist/threeSceneView-BEZwdi1j.js +1290 -0
  68. package/dist/threeSceneViewForCPMPIP-CusZYRCU.js +539 -0
  69. package/dist/threeTrackPathView-CbhiJklA.js +620 -0
  70. package/dist/threeViewerHost-d0umFxXA.js +233 -0
  71. package/dist/urdfTree-Bko5D1KR.js +254 -0
  72. package/dist/workpieceTreePanel-DTgX-q2q.js +559 -0
  73. package/package.json +8 -11
  74. package/public/config.js +1 -1
  75. package/public/icons/svg/functionList.svg +1 -0
  76. package/public/icons/svg/method.svg +1 -0
  77. package/public/obj/model.mtl +42 -0
  78. package/public/obj/model.obj +26110 -0
  79. package/dist/index-8KTFGqOM.js +0 -25
  80. package/dist/index-A8OE-eSF.js +0 -29
  81. package/dist/index-B2xkIV6C.js +0 -25
  82. package/dist/index-B3v82KuY.js +0 -1044
  83. package/dist/index-BeE5LpiD.js +0 -50679
  84. package/dist/index-C0HH0uAE.js +0 -188
  85. package/dist/index-C0U2Epeo.js +0 -25
  86. package/dist/index-C8GSZPvd.js +0 -4
  87. package/dist/index-CA0CoKiz.js +0 -25
  88. package/dist/index-CHjBtkir.js +0 -4
  89. package/dist/index-CJP9hdx4.js +0 -53
  90. package/dist/index-COeMUCuq.js +0 -213
  91. package/dist/index-COxVr3MC.js +0 -4
  92. package/dist/index-CXoQiaXz.js +0 -27
  93. package/dist/index-CdanNGTM.js +0 -4
  94. package/dist/index-CfwzR4gE.js +0 -469
  95. package/dist/index-CoEteqj_.js +0 -4
  96. package/dist/index-Cqt27z96.js +0 -23
  97. package/dist/index-Cqyl2URI.js +0 -32
  98. package/dist/index-CuIbbhNo.js +0 -25
  99. package/dist/index-D1WMhpsE.js +0 -26
  100. package/dist/index-D3G5ymZc.js +0 -4
  101. package/dist/index-D5oMkTBW.js +0 -35
  102. package/dist/index-D7CiXPV2.js +0 -634
  103. package/dist/index-DGogREB4.js +0 -26
  104. package/dist/index-DRqX_bCT.js +0 -4
  105. package/dist/index-DbUt70zC.js +0 -50
  106. package/dist/index-DnLZtsZU.js +0 -4
  107. package/dist/index-IoMa0kLh.js +0 -27
  108. package/dist/index-JkTP1vyC.js +0 -4
  109. package/dist/index-LuY_QZlf.js +0 -181
  110. package/dist/index-boICNvPL.js +0 -4
  111. package/dist/index-uriwf_fo.js +0 -4
  112. package/dist/index.vue_vue_type_script_setup_true_lang-B-JCE78v.js +0 -21
  113. package/dist/index.vue_vue_type_script_setup_true_lang-BSZB17y-.js +0 -42
  114. package/dist/index.vue_vue_type_script_setup_true_lang-Brir5Bym.js +0 -41
  115. package/dist/index.vue_vue_type_script_setup_true_lang-BrnE_n0l.js +0 -25
  116. package/dist/index.vue_vue_type_script_setup_true_lang-C7BgxSz4.js +0 -28
  117. package/dist/index.vue_vue_type_script_setup_true_lang-CARZt7yC.js +0 -25
  118. package/dist/index.vue_vue_type_script_setup_true_lang-CVALRKBG.js +0 -48
  119. package/dist/index.vue_vue_type_script_setup_true_lang-CsThRoDZ.js +0 -28
  120. package/dist/index.vue_vue_type_script_setup_true_lang-CuwhbWHH.js +0 -39
  121. package/dist/index.vue_vue_type_script_setup_true_lang-DAb-qhJ1.js +0 -40
  122. package/dist/index.vue_vue_type_script_setup_true_lang-DimtrEJj.js +0 -26
  123. package/dist/menu-ClNHLze7.js +0 -5208
  124. package/dist/platform-CPTootse.js +0 -11429
  125. /package/dist/icons/svg/{update.svg → Update.svg} +0 -0
  126. /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  127. /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
  128. /package/public/icons/svg/{update.svg → Update.svg} +0 -0
  129. /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  130. /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1780642425297" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2833" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M384 806.4l275.2-275.2-57.6-57.6-19.2 19.2c-12.8 12.8-38.4 12.8-51.2 0-12.8-12.8-12.8-38.4 0-51.2l19.2-19.2c25.6-25.6 64-25.6 89.6 0l64 70.4c25.6 25.6 25.6 64 0 89.6l-275.2 275.2c6.4 12.8 12.8 32 12.8 44.8 0 51.2-44.8 96-96 96S256 947.2 256 896s44.8-96 96-96c12.8 0 25.6 0 32 6.4z m275.2-563.2L384 518.4l57.6 57.6 19.2-19.2c12.8-12.8 38.4-12.8 51.2 0 12.8 12.8 12.8 38.4 0 51.2l-25.6 25.6c-25.6 25.6-64 25.6-89.6 0l-64-70.4c-25.6-25.6-25.6-64 0-89.6L614.4 192c-6.4-12.8-6.4-19.2-6.4-32 0-51.2 44.8-96 96-96s96 44.8 96 96S755.2 256 704 256c-19.2 0-32-6.4-44.8-12.8z m198.4 275.2l-128-128c-12.8-12.8-12.8-38.4 0-51.2 12.8-12.8 38.4-12.8 51.2 0l128 128c12.8 12.8 19.2 32 19.2 51.2 0 19.2-6.4 38.4-19.2 51.2l-128 128c-12.8 12.8-38.4 12.8-51.2 0-12.8-12.8-12.8-38.4 0-51.2l128-128z m-691.2 0l128 128c12.8 12.8 12.8 38.4 0 51.2-12.8 12.8-38.4 12.8-51.2 0l-128-128c-12.8-12.8-19.2-32-19.2-51.2 0-19.2 6.4-38.4 19.2-51.2l128-128c12.8-12.8 38.4-12.8 51.2 0 12.8 12.8 12.8 38.4 0 51.2l-128 128z" p-id="2834"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1782276995812" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4176" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M469.745309 0a469.745309 469.745309 0 1 0 0 939.490619A469.745309 469.745309 0 0 0 469.809272 0z m0 81.872821a387.872488 387.872488 0 1 1 0 775.744977 387.872488 387.872488 0 0 1 0-775.744977z" fill="#444444" p-id="4177"></path><path d="M753.485804 753.485804a40.93641 40.93641 0 0 1 55.264154-2.4306l2.558525 2.4306 200.204633 200.076706a40.93641 40.93641 0 0 1-55.328118 60.317242l-2.622488-2.4306-200.140669-200.076705a40.93641 40.93641 0 0 1 0-57.886643z" fill="#444444" p-id="4178"></path><path d="M266.086668 552.64154c15.351154 0 29.423045 8.571061 36.45899 22.19521l-1.982857-2.878341c45.733646 70.487382 115.005728 111.295866 198.477627 113.598539l7.419724 0.063963V767.557695c-112.575129 0-208.327951-53.217334-270.308235-144.556699l-4.28553-6.396314 0.191889-0.127927a40.93641 40.93641 0 0 1 34.028392-63.771252z" p-id="4179"></path></svg>
@@ -0,0 +1,209 @@
1
+ import { ref as L, reactive as O, watch as X, resolveComponent as Y, createBlock as P, openBlock as s, normalizeStyle as U, withCtx as S, renderSlot as B, createElementBlock as a, createCommentVNode as r, withModifiers as u, createElementVNode as j, toDisplayString as q } from "vue";
2
+ /* empty css */
3
+ import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const F = { class: "dialog-title" }, G = {
5
+ __name: "index",
6
+ props: {
7
+ title: {
8
+ type: String,
9
+ default: ""
10
+ },
11
+ dialogWidth: {
12
+ type: [Number, String],
13
+ default: 600
14
+ },
15
+ visible: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ fullScreen: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ // 仅在 resizable=true 时生效
24
+ dialogHeight: {
25
+ type: [Number, String],
26
+ default: 600
27
+ },
28
+ // 仅在 resizable=true 时生效
29
+ minWidth: {
30
+ type: [Number, String],
31
+ default: 400
32
+ },
33
+ // 仅在 resizable=true 时生效
34
+ minHeight: {
35
+ type: [Number, String],
36
+ default: 300
37
+ },
38
+ showClose: {
39
+ type: Boolean,
40
+ default: !0
41
+ },
42
+ closeOnClickModal: {
43
+ type: Boolean,
44
+ default: !0
45
+ },
46
+ closeOnPressEscape: {
47
+ type: Boolean,
48
+ default: !0
49
+ },
50
+ modalClass: {
51
+ type: String,
52
+ default: ""
53
+ },
54
+ alignCenter: {
55
+ type: Boolean,
56
+ default: !1
57
+ },
58
+ appendToBody: {
59
+ type: Boolean,
60
+ default: !0
61
+ },
62
+ zIndex: {
63
+ type: Number,
64
+ default: void 0
65
+ },
66
+ // 是否允许四边拖拽改变弹窗大小
67
+ resizable: {
68
+ type: Boolean,
69
+ default: !1
70
+ }
71
+ },
72
+ emits: ["beforeDestroy"],
73
+ setup(w, { emit: $ }) {
74
+ const e = w, T = $, v = L(!1), o = O({
75
+ width: void 0,
76
+ height: void 0,
77
+ minWidth: void 0,
78
+ minHeight: void 0
79
+ });
80
+ let W = !1, m = "", C = 0, E = 0, h = 0, y = 0, p = 0, z = 0, x = null;
81
+ const D = (i) => {
82
+ var n, l;
83
+ const t = (l = (n = i == null ? void 0 : i.target) == null ? void 0 : n.closest) == null ? void 0 : l.call(n, ".el-dialog");
84
+ return t || null;
85
+ }, I = (i) => {
86
+ if (!i || i === "none")
87
+ return { tx: 0, ty: 0 };
88
+ let t = i.match(/matrix\(([^)]+)\)/);
89
+ if (t) {
90
+ const n = t[1].split(",").map((l) => Number(l.trim()));
91
+ return { tx: (n == null ? void 0 : n[4]) || 0, ty: (n == null ? void 0 : n[5]) || 0 };
92
+ }
93
+ if (t = i.match(/matrix3d\(([^)]+)\)/), t) {
94
+ const n = t[1].split(",").map((l) => Number(l.trim()));
95
+ return { tx: (n == null ? void 0 : n[12]) || 0, ty: (n == null ? void 0 : n[13]) || 0 };
96
+ }
97
+ return t = i.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/), t ? { tx: Number(t[1]) || 0, ty: Number(t[2]) || 0 } : { tx: 0, ty: 0 };
98
+ }, R = (i, t, n) => {
99
+ i.style.transform = `translate(${t}px, ${n}px)`;
100
+ }, d = (i, t) => {
101
+ if (!e.resizable) return;
102
+ const n = D(i);
103
+ if (!n) return;
104
+ x = n, W = !0, m = t, C = i.clientX, E = i.clientY;
105
+ const l = n.getBoundingClientRect();
106
+ h = l.width, y = l.height;
107
+ const f = window.getComputedStyle(n), { tx: g, ty: c } = I(f.transform);
108
+ p = g, z = c, document.addEventListener("mousemove", M), document.addEventListener("mouseup", N);
109
+ }, M = (i) => {
110
+ if (!W || !x) return;
111
+ const t = i.clientX - C, n = i.clientY - E, l = parseInt(o.minWidth || "0", 10) || 0, f = parseInt(o.minHeight || "0", 10) || 0;
112
+ let g = h, c = y, H = p, k = z;
113
+ if (m.includes("right") && (g = Math.max(l, h + t)), m.includes("bottom") && (c = Math.max(f, y + n)), m.includes("left")) {
114
+ const b = h - t;
115
+ b < l ? (g = l, H = p + (h - l)) : (g = b, H = p + t);
116
+ }
117
+ if (m.includes("top")) {
118
+ const b = y - n;
119
+ b < f ? (c = f, k = z + (y - f)) : (c = b, k = z + n);
120
+ }
121
+ o.width = `${g}px`, o.height = `${c}px`, R(x, H, k);
122
+ }, N = () => {
123
+ W = !1, m = "", x = null, document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", N);
124
+ }, V = () => {
125
+ T("beforeDestroy");
126
+ };
127
+ return X(
128
+ () => e == null ? void 0 : e.visible,
129
+ (i) => {
130
+ v.value = i, i && (e.resizable ? (o.width = typeof e.dialogWidth == "number" ? `${e.dialogWidth}px` : e.dialogWidth, o.height = typeof e.dialogHeight == "number" ? `${e.dialogHeight}px` : e.dialogHeight, o.minWidth = typeof e.minWidth == "number" ? `${e.minWidth}px` : e.minWidth, o.minHeight = typeof e.minHeight == "number" ? `${e.minHeight}px` : e.minHeight) : (o.width = void 0, o.height = void 0, o.minWidth = void 0, o.minHeight = void 0));
131
+ },
132
+ { deep: !0, immediate: !0 }
133
+ ), (i, t) => {
134
+ const n = Y("el-dialog");
135
+ return s(), P(n, {
136
+ modelValue: v.value,
137
+ "onUpdate:modelValue": t[8] || (t[8] = (l) => v.value = l),
138
+ width: e == null ? void 0 : e.dialogWidth,
139
+ "before-close": V,
140
+ draggable: "",
141
+ style: U(e != null && e.resizable ? o : void 0),
142
+ fullscreen: e == null ? void 0 : e.fullScreen,
143
+ "destroy-on-close": !0,
144
+ "show-close": e == null ? void 0 : e.showClose,
145
+ "close-on-click-modal": e == null ? void 0 : e.closeOnClickModal,
146
+ "modal-class": w.modalClass,
147
+ "close-on-press-escape": e == null ? void 0 : e.closeOnPressEscape,
148
+ "align-center": e == null ? void 0 : e.alignCenter,
149
+ "append-to-body": w.appendToBody,
150
+ "z-index": e == null ? void 0 : e.zIndex
151
+ }, {
152
+ header: S(() => [
153
+ j("div", F, q(e == null ? void 0 : e.title), 1),
154
+ B(i.$slots, "header", {}, void 0, !0)
155
+ ]),
156
+ footer: S(() => [
157
+ B(i.$slots, "footer", {}, void 0, !0)
158
+ ]),
159
+ default: S(() => [
160
+ B(i.$slots, "default", {}, void 0, !0),
161
+ e.resizable ? (s(), a("div", {
162
+ key: 0,
163
+ class: "resizable-handle top",
164
+ onMousedown: t[0] || (t[0] = u((l) => d(l, "top"), ["stop"]))
165
+ }, null, 32)) : r("", !0),
166
+ e.resizable ? (s(), a("div", {
167
+ key: 1,
168
+ class: "resizable-handle right",
169
+ onMousedown: t[1] || (t[1] = u((l) => d(l, "right"), ["stop"]))
170
+ }, null, 32)) : r("", !0),
171
+ e.resizable ? (s(), a("div", {
172
+ key: 2,
173
+ class: "resizable-handle bottom",
174
+ onMousedown: t[2] || (t[2] = u((l) => d(l, "bottom"), ["stop"]))
175
+ }, null, 32)) : r("", !0),
176
+ e.resizable ? (s(), a("div", {
177
+ key: 3,
178
+ class: "resizable-handle left",
179
+ onMousedown: t[3] || (t[3] = u((l) => d(l, "left"), ["stop"]))
180
+ }, null, 32)) : r("", !0),
181
+ e.resizable ? (s(), a("div", {
182
+ key: 4,
183
+ class: "resizable-handle top-left",
184
+ onMousedown: t[4] || (t[4] = u((l) => d(l, "top-left"), ["stop"]))
185
+ }, null, 32)) : r("", !0),
186
+ e.resizable ? (s(), a("div", {
187
+ key: 5,
188
+ class: "resizable-handle top-right",
189
+ onMousedown: t[5] || (t[5] = u((l) => d(l, "top-right"), ["stop"]))
190
+ }, null, 32)) : r("", !0),
191
+ e.resizable ? (s(), a("div", {
192
+ key: 6,
193
+ class: "resizable-handle bottom-left",
194
+ onMousedown: t[6] || (t[6] = u((l) => d(l, "bottom-left"), ["stop"]))
195
+ }, null, 32)) : r("", !0),
196
+ e.resizable ? (s(), a("div", {
197
+ key: 7,
198
+ class: "resizable-handle bottom-right",
199
+ onMousedown: t[7] || (t[7] = u((l) => d(l, "bottom-right"), ["stop"]))
200
+ }, null, 32)) : r("", !0)
201
+ ]),
202
+ _: 3
203
+ }, 8, ["modelValue", "width", "style", "fullscreen", "show-close", "close-on-click-modal", "modal-class", "close-on-press-escape", "align-center", "append-to-body", "z-index"]);
204
+ };
205
+ }
206
+ }, Z = /* @__PURE__ */ A(G, [["__scopeId", "data-v-16b3a6b2"]]);
207
+ export {
208
+ Z as s
209
+ };
@@ -0,0 +1,83 @@
1
+ import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
+ import { W as m } from "./index-yRb0l-bC.js";
3
+ import { g as d, c as _ } from "./index-CDE3W8eV.js";
4
+ import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const l = n([]), g = c(() => [
6
+ {
7
+ key: "extraButton",
8
+ contents: [
9
+ {
10
+ label: "清空",
11
+ background: "#f56c6c",
12
+ color: "#ffffff"
13
+ }
14
+ ]
15
+ },
16
+ {
17
+ key: "rowButton",
18
+ contents: []
19
+ },
20
+ {
21
+ key: "header",
22
+ contents: [
23
+ {
24
+ label: "模块名称",
25
+ prop: "module",
26
+ filterable: !0
27
+ },
28
+ {
29
+ label: "操作类型",
30
+ prop: "type",
31
+ filterable: !0
32
+ },
33
+ {
34
+ label: "账号",
35
+ prop: "account",
36
+ filterable: !0
37
+ },
38
+ {
39
+ label: "姓名",
40
+ prop: "userName",
41
+ filterable: !0
42
+ },
43
+ {
44
+ label: "时间",
45
+ prop: "timeStamp",
46
+ sortable: !0
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ key: "tableContents",
52
+ contents: l.value
53
+ }
54
+ ]), y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
55
+ __proto__: null,
56
+ pageData: g,
57
+ tableData: l
58
+ }, Symbol.toStringTag, { value: "Module" })), D = { class: "log-wrap" }, B = /* @__PURE__ */ s({
59
+ __name: "index",
60
+ setup(x) {
61
+ const e = p({ ...y });
62
+ i(async () => {
63
+ e.tableData = await d("operate");
64
+ });
65
+ const r = (o) => {
66
+ var t;
67
+ _(o, (t = e.tableData) == null ? void 0 : t.map((a) => a.id), (a) => {
68
+ a && (e.tableData = []);
69
+ });
70
+ };
71
+ return (o, t) => (f(), u("div", D, [
72
+ b(m, {
73
+ itemData: e.pageData,
74
+ allowOperate: !1,
75
+ allowSelect: !1,
76
+ onOnButtonClick: r
77
+ }, null, 8, ["itemData"])
78
+ ]));
79
+ }
80
+ }), O = /* @__PURE__ */ k(B, [["__scopeId", "data-v-3d3b471d"]]);
81
+ export {
82
+ O as default
83
+ };
@@ -0,0 +1,201 @@
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-yOnrK71-.js";
3
+ import { l as ee } from "./index-XnbtYIMr.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
+ };