ss-component-new 1.3.699 → 1.3.701
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.
- package/dist/JSEncrypt-B36c1iN5.js +1983 -0
- package/dist/MTLLoader-DC5Di-ql.js +657 -0
- package/dist/URDFLoader-BqfNCQLH.js +2299 -0
- package/dist/animationData-BNQm3jIu.js +83 -0
- package/dist/array-BXz16Xf3.js +1045 -0
- package/dist/clone-Dp_gc9ll.js +8 -0
- package/dist/config.js +1 -1
- package/dist/eleIcon-qStmsM1q.js +29 -0
- package/dist/fileUtil-UOt_otFo.js +20 -0
- package/dist/iconfont-B2Moc_Mi.js +1026 -0
- package/dist/icons/svg/functionList.svg +1 -0
- package/dist/icons/svg/method.svg +1 -0
- package/dist/index-11kpzK0A.js +209 -0
- package/dist/index-B0H3C7WG.js +103 -0
- package/dist/index-B3OyTnhN.js +119 -0
- package/dist/{index-BKK_dL6t.js → index-BHtNKL1L.js} +1 -1
- package/dist/index-Bbwy0rRx.js +411 -0
- package/dist/index-BbyrFzEO.js +93 -0
- package/dist/index-Bk_HGMFV.js +20578 -0
- package/dist/index-BooO2Bml.js +78 -0
- package/dist/index-BpgixwCC.js +83 -0
- package/dist/index-Bw3sTXPI.js +8993 -0
- package/dist/index-Bz8vSCfN.js +84 -0
- package/dist/index-CAm10a_p.js +107 -0
- package/dist/index-CGVmScXF.js +470 -0
- package/dist/index-CGi0g-VN.js +627 -0
- package/dist/index-CTD1ZbEQ.js +873 -0
- package/dist/index-CV_jQDcg.js +9 -0
- package/dist/index-CWOXvFfD.js +44 -0
- package/dist/{index-BKoAuSBh.js → index-ChNfRlIP.js} +18 -223
- package/dist/index-Ch_Lf81f.js +63004 -0
- package/dist/index-CjsQSzV6.js +572 -0
- package/dist/index-Ck_oTi7E.js +25297 -0
- package/dist/index-CydXQbtX.js +622 -0
- package/dist/index-DAJxL40d.js +55 -0
- package/dist/index-DBsEVMiM.js +201 -0
- package/dist/index-DG4hoOWt.js +665 -0
- package/dist/index-DUbk5m5P.js +99 -0
- package/dist/index-Ds6m_4JJ.js +28500 -0
- package/dist/index-DupTchhl.js +1000 -0
- package/dist/index-DyCq_odP.js +331 -0
- package/dist/index-DynGQqC3.js +93 -0
- package/dist/index-UB_oCdlo.js +62 -0
- package/dist/index-YjBTGOkO.js +61 -0
- package/dist/index-ib1DMe8v.js +98 -0
- package/dist/index-jbOjjV0j.js +447 -0
- package/dist/index-ke-XsSa7.js +30 -0
- package/dist/index-lPVVum78.js +48 -0
- package/dist/index-rlStojTL.js +52 -0
- package/dist/index-uF-ibwG0.js +9 -0
- package/dist/{index-DzkvwqGK.js → index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D9DRZPyb.js} +113595 -105662
- package/dist/isString-0ZglyOfu.js +8 -0
- package/dist/localIcon-D5UoFBU5.js +76 -0
- package/dist/main-1uytY6Nj.js +502 -0
- package/dist/menuIndex-BB0uVPRX.js +159 -0
- package/dist/request-1RPa2bBn.js +9048 -0
- package/dist/ss-component.css +8 -2
- package/dist/ss-component.js +64 -28
- package/dist/ss-component2.js +75 -15
- package/dist/ss-component3.js +1 -1
- package/dist/threeModel-BEmaHjYZ.js +1109 -0
- package/dist/threePreview-D7ncVQLV.js +2810 -0
- package/dist/threeSceneView-ClvW-1FZ.js +1290 -0
- package/dist/threeSceneViewForCPMPIP-D7zwZFBW.js +539 -0
- package/dist/threeTrackPathView-VySiazeH.js +620 -0
- package/dist/threeViewerHost-sD-GHVTI.js +233 -0
- package/dist/urdfTree-B-7DfE39.js +254 -0
- package/dist/workpieceTreePanel-DB06G34P.js +559 -0
- package/package.json +6 -8
- package/public/config.js +1 -1
- package/public/icons/svg/functionList.svg +1 -0
- package/public/icons/svg/method.svg +1 -0
- package/dist/index-BqyJXXmI.js +0 -213
- package/dist/index-CTEz1Xq6.js +0 -182
- package/dist/index-CrIVk8ml.js +0 -1044
- package/dist/index-D1ebCzlM.js +0 -50
- package/dist/menu-ZnhLgjWw.js +0 -5218
- package/dist/origin-Bs605dr-.js +0 -11468
- /package/dist/icons/svg/{update.svg → Update.svg} +0 -0
- /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
- /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
- /package/public/icons/svg/{update.svg → Update.svg} +0 -0
- /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
- /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
|
@@ -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-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
|
+
};
|