ss-component-new 1.3.667 → 1.3.668
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-97ajvYTo.js +657 -0
- package/dist/URDFLoader-BTohsFFD.js +2299 -0
- package/dist/animationData-Bh1dENkM.js +83 -0
- package/dist/array-BeZlnHE5.js +1045 -0
- package/dist/clone-64Nh3RrP.js +8 -0
- package/dist/config.js +1 -1
- package/dist/eleIcon-DlIcb4df.js +29 -0
- package/dist/iconfont-DLildctL.js +1018 -0
- package/dist/icons/svg/Update.svg +1 -0
- package/dist/icons/svg/functionList.svg +1 -0
- package/dist/icons/svg/uploadCopy.svg +1 -0
- package/dist/index-11kpzK0A.js +209 -0
- package/dist/index-8ZSWGLlP.js +664 -0
- package/dist/index-B24zodK9.js +48 -0
- package/dist/index-BAILi3_p.js +627 -0
- package/dist/index-BEqKA-R8.js +342 -0
- package/dist/{index-BKK_dL6t.js → index-BHtNKL1L.js} +1 -1
- package/dist/index-BI0lhlHy.js +107 -0
- package/dist/index-BaGFPX8W.js +103 -0
- package/dist/index-BosPsk5k.js +83 -0
- package/dist/index-Byq7jT-a.js +470 -0
- package/dist/index-CDuL9GwS.js +8985 -0
- package/dist/index-CG1vGzHt.js +44 -0
- package/dist/index-CJySKIdc.js +61 -0
- package/dist/index-COgke2F-.js +119 -0
- package/dist/index-CRwB8jQA.js +572 -0
- package/dist/index-CUfQEUxH.js +873 -0
- package/dist/index-CV_jQDcg.js +9 -0
- package/dist/{index-BobGeNMx.js → index-ChNfRlIP.js} +5 -5
- package/dist/index-ChtDRE_0.js +62 -0
- package/dist/index-ClXCn3x3.js +84 -0
- package/dist/index-CqjkyYQM.js +55 -0
- package/dist/index-CzGgc0w7.js +98 -0
- package/dist/index-CzMViO4H.js +28484 -0
- package/dist/index-D9fiFfMC.js +201 -0
- package/dist/index-DL9OWmfj.js +93 -0
- package/dist/index-DNzOZL27.js +1000 -0
- package/dist/index-DQHZjNCb.js +24423 -0
- package/dist/index-DSIS-l1N.js +93 -0
- package/dist/index-DTudxHP8.js +11815 -0
- package/dist/index-DU0QRffL.js +30 -0
- package/dist/index-DibaunZs.js +61957 -0
- package/dist/index-DkXSSUDS.js +447 -0
- package/dist/index-DlFmNKos.js +99 -0
- package/dist/index-DnRdT_Vp.js +78 -0
- package/dist/index-SOPMlMak.js +622 -0
- package/dist/index-aibiYft7.js +411 -0
- package/dist/index-rlStojTL.js +52 -0
- package/dist/index-uF-ibwG0.js +9 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CdPZBari.js +137703 -0
- package/dist/isString-h0UV2hrP.js +8 -0
- package/dist/localIcon-D5UoFBU5.js +76 -0
- package/dist/main-C7ijH7Xb.js +502 -0
- package/dist/menuIndex-CycdWV7s.js +159 -0
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/request-DolpfyNJ.js +9047 -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-BQDoEUp8.js +1108 -0
- package/dist/threePreview-CIDX4oie.js +2259 -0
- package/dist/threeSceneView-C17oeWoh.js +1290 -0
- package/dist/threeSceneViewForCPMPIP-C1NcTzgS.js +539 -0
- package/dist/threeTrackPathView-BvI1Y9Qf.js +620 -0
- package/dist/threeViewerHost-Cs8SXBpW.js +233 -0
- package/dist/urdfTree-Dkdd2JSt.js +254 -0
- package/dist/workpieceTreePanel-VMAn_xKW.js +559 -0
- package/package.json +4 -4
- package/public/config.js +1 -1
- package/public/icons/svg/Update.svg +1 -0
- package/public/icons/svg/functionList.svg +1 -0
- package/public/icons/svg/uploadCopy.svg +1 -0
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-CCShKHTf.js +0 -50
- package/dist/index-CHLS51j8.js +0 -1044
- package/dist/index-Ccv8qbdo.js +0 -9091
- package/dist/index-D2V0zCQE.js +0 -195
- package/dist/index-DgjdKpj-.js +0 -182
- package/dist/menu-B8iV5Rhf.js +0 -5215
- package/dist/origin-B7bb-ZcE.js +0 -11428
- /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/{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-CDuL9GwS.js";
|
|
3
|
+
import { l as ee } from "./index-CqjkyYQM.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
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { ref as P, computed as c, onMounted as _ } from "vue";
|
|
2
|
+
import { useRouter as C } from "vue-router";
|
|
3
|
+
import { u as g, p as h, A as R, c as b, q as S, w as E } from "./index-CDuL9GwS.js";
|
|
4
|
+
const l = {
|
|
5
|
+
ALLOW: {
|
|
6
|
+
value: "允许"
|
|
7
|
+
},
|
|
8
|
+
DENY: {
|
|
9
|
+
value: "不允许"
|
|
10
|
+
}
|
|
11
|
+
}, M = "系统管理/用户管理", N = "用户列表", D = {
|
|
12
|
+
title: "个人中心",
|
|
13
|
+
path: "/个人中心",
|
|
14
|
+
level: 1,
|
|
15
|
+
show: !0,
|
|
16
|
+
icon: "个人中心",
|
|
17
|
+
carryData: !0,
|
|
18
|
+
isPenultimate: !0,
|
|
19
|
+
isRouter: !0,
|
|
20
|
+
children: [],
|
|
21
|
+
childMenus: []
|
|
22
|
+
}, K = {
|
|
23
|
+
BASE: {
|
|
24
|
+
label: "基础信息",
|
|
25
|
+
value: "base"
|
|
26
|
+
},
|
|
27
|
+
RESET_PASSWORD_BY_FACE_RECOGNITION: {
|
|
28
|
+
label: "修改密码",
|
|
29
|
+
value: "reset-password-by-face-recognition"
|
|
30
|
+
}
|
|
31
|
+
}, T = () => {
|
|
32
|
+
const u = C(), s = g(h), { platId: o, isSuperAdmin: i } = R(), p = (e) => {
|
|
33
|
+
const { id: t } = e;
|
|
34
|
+
return {
|
|
35
|
+
id: t,
|
|
36
|
+
password: "",
|
|
37
|
+
allow_reset_password: l.DENY.value
|
|
38
|
+
};
|
|
39
|
+
}, r = P([]), d = c(() => {
|
|
40
|
+
var t, a;
|
|
41
|
+
const e = (a = (t = r.value) == null ? void 0 : t.find) == null ? void 0 : a.call(t, (n) => n.property_name === N);
|
|
42
|
+
return e == null ? void 0 : e.object_id;
|
|
43
|
+
}), w = async () => {
|
|
44
|
+
var a;
|
|
45
|
+
const e = {
|
|
46
|
+
pageName: M,
|
|
47
|
+
platId: o.value
|
|
48
|
+
}, t = await S(e);
|
|
49
|
+
return ((a = t == null ? void 0 : t.data) == null ? void 0 : a.result) || [];
|
|
50
|
+
}, f = async () => {
|
|
51
|
+
const e = await w();
|
|
52
|
+
r.value = e || [];
|
|
53
|
+
};
|
|
54
|
+
_(async () => {
|
|
55
|
+
await f();
|
|
56
|
+
});
|
|
57
|
+
const y = c(() => `content_${d.value}`), m = async (e) => ({
|
|
58
|
+
platId: o.value,
|
|
59
|
+
changeContents: [
|
|
60
|
+
{
|
|
61
|
+
tableContents: [e],
|
|
62
|
+
tableName: y.value
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}), I = (e) => {
|
|
66
|
+
const { allow_reset_password: t } = e;
|
|
67
|
+
return t === l.ALLOW.value;
|
|
68
|
+
}, v = async (e) => {
|
|
69
|
+
const { id: t, password: a, allow_reset_password: n } = e;
|
|
70
|
+
return m({
|
|
71
|
+
id: t,
|
|
72
|
+
password: a,
|
|
73
|
+
allow_reset_password: n
|
|
74
|
+
});
|
|
75
|
+
}, A = async (e) => {
|
|
76
|
+
const t = await v(e);
|
|
77
|
+
return await E(t);
|
|
78
|
+
};
|
|
79
|
+
return {
|
|
80
|
+
isSuperAdmin: i,
|
|
81
|
+
toPersonalCenter: () => {
|
|
82
|
+
const e = b(D);
|
|
83
|
+
s.setAsideMenus([e]), s.setActiveMenuPath(e == null ? void 0 : e.path), s.setActiveAsideMenu(e), u.push(e.path);
|
|
84
|
+
},
|
|
85
|
+
isAllowReplacePassword: I,
|
|
86
|
+
initReplacePassword: async (e) => await A(e),
|
|
87
|
+
initEditForm: p
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export {
|
|
91
|
+
K as t,
|
|
92
|
+
T as u
|
|
93
|
+
};
|