ss-component-new 1.3.659 → 1.3.660
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/{platform-BsULsE0-.js → _plugin-vue_export-helper-BZ_eTSzz.js} +14645 -14691
- package/dist/config.js +1 -1
- package/dist/index-BofWylNB.js +620 -0
- package/dist/index-C5rFKP3J.js +1042 -0
- package/dist/{index-ZPct7ETq.js → index-CLw1Ncst.js} +9 -8
- package/dist/{index-C_HX7GAm.js → index-Cz0F1nRr.js} +2195 -2808
- package/dist/index-p2dYw5GI.js +49 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DRzriV-s.js +55 -0
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +214 -26
- package/dist/ss-component2.js +4 -4
- package/package.json +1 -1
- package/public/config.js +1 -1
- package/dist/index-CQG5_ZDD.js +0 -1084
package/dist/ss-component.js
CHANGED
|
@@ -1,33 +1,221 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { defineComponent as z, ref as N, computed as V, watch as r, nextTick as $, onMounted as E, onUnmounted as G, resolveComponent as q, createElementBlock as L, openBlock as S, createBlock as J } from "vue";
|
|
2
|
+
import { u as Q, p as _, s as A, a as X, b as F, g as Y, v as Z, _ as p } from "./_plugin-vue_export-helper-BZ_eTSzz.js";
|
|
3
|
+
import { l as ee } from "./index-p2dYw5GI.js";
|
|
4
|
+
import { useRouter as te } from "vue-router";
|
|
5
|
+
import D from "./ss-component2.js";
|
|
6
|
+
import { t as ne, c as oe, b as ae } from "./index-BofWylNB.js";
|
|
7
|
+
import { S as ke } from "./index-BofWylNB.js";
|
|
8
|
+
const ie = { key: 0 }, se = /* @__PURE__ */ z({
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: {
|
|
11
|
+
windowConfig: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => {
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
systemInfo: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default: () => {
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
systemKey: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
pathContent: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
},
|
|
29
|
+
mode: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "view"
|
|
32
|
+
},
|
|
33
|
+
content: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: ""
|
|
36
|
+
},
|
|
37
|
+
jsonContents: {
|
|
38
|
+
type: Array,
|
|
39
|
+
default: () => []
|
|
40
|
+
},
|
|
41
|
+
showButton: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: !1
|
|
44
|
+
},
|
|
45
|
+
nodeDev: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: ""
|
|
48
|
+
},
|
|
49
|
+
pageKey: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: ""
|
|
52
|
+
},
|
|
53
|
+
interfaceContent: {
|
|
54
|
+
type: Array,
|
|
55
|
+
default: () => []
|
|
56
|
+
},
|
|
57
|
+
loginContent: {
|
|
58
|
+
type: Object,
|
|
59
|
+
default: () => {
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
menuFiles: {
|
|
63
|
+
type: Array,
|
|
64
|
+
default: () => []
|
|
65
|
+
},
|
|
66
|
+
workspaceHistoryData: {
|
|
67
|
+
type: Array,
|
|
68
|
+
default: () => []
|
|
69
|
+
},
|
|
70
|
+
// 用于打开/拣选工作区
|
|
71
|
+
workspaceInfo: {
|
|
72
|
+
type: Object,
|
|
73
|
+
default: () => []
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
emits: ["buildContent", "openThreeBuild", "threeData", "setLoginInfo", "projectLogin", "updateApiUrl", "clearFileContent", "systemContent", "getMenuPathValue", "executeWorkspace", "updateVersion"],
|
|
77
|
+
setup(o, { emit: c }) {
|
|
78
|
+
const f = te(), l = Q(_), { loginUserInfo: m } = A(l), { initSystemInfo: T } = X(), u = F(_), w = N(!0), { activeMenuPath: v } = A(u), e = o, a = c, P = V(() => {
|
|
79
|
+
var t, n;
|
|
80
|
+
return (e == null ? void 0 : e.showButton) || ((n = (t = m.value) == null ? void 0 : t.accounttype) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
81
|
+
}), j = (t) => {
|
|
82
|
+
a("systemContent", t);
|
|
83
|
+
}, B = () => {
|
|
84
|
+
a("updateVersion");
|
|
85
|
+
}, b = () => {
|
|
86
|
+
a("clearFileContent");
|
|
87
|
+
};
|
|
88
|
+
r(
|
|
89
|
+
() => e == null ? void 0 : e.menuFiles,
|
|
90
|
+
() => {
|
|
91
|
+
var t;
|
|
92
|
+
((t = e == null ? void 0 : e.menuFiles) == null ? void 0 : t.length) > 0 && u.setLocalFiles(e == null ? void 0 : e.menuFiles);
|
|
93
|
+
},
|
|
94
|
+
{ deep: !0, immediate: !0 }
|
|
95
|
+
), r(
|
|
96
|
+
() => v.value,
|
|
97
|
+
async () => {
|
|
98
|
+
var n, s;
|
|
99
|
+
let t = await Y({
|
|
100
|
+
platId: parseInt((n = m == null ? void 0 : m.value) == null ? void 0 : n.plat_id)
|
|
101
|
+
});
|
|
102
|
+
t = (s = t == null ? void 0 : t.data) == null ? void 0 : s.result, u.setDataFiles(t), a("getMenuPathValue", v.value);
|
|
103
|
+
},
|
|
104
|
+
{ deep: !0, immediate: !0 }
|
|
105
|
+
), r(
|
|
106
|
+
() => e == null ? void 0 : e.loginContent,
|
|
107
|
+
async () => {
|
|
108
|
+
w.value = !0;
|
|
109
|
+
let t = e == null ? void 0 : e.loginContent;
|
|
110
|
+
if (t != null && t.account && (t != null && t.password) && (await ee(t), status)) {
|
|
111
|
+
let n = await Z();
|
|
112
|
+
a("systemContent", n == null ? void 0 : n.allMenuContents), f.push("/"), u.setHasClickEditComp(!1);
|
|
113
|
+
}
|
|
114
|
+
w.value = !1, await $();
|
|
115
|
+
},
|
|
116
|
+
{ deep: !0, immediate: !0 }
|
|
117
|
+
);
|
|
118
|
+
const M = (t) => {
|
|
119
|
+
a("projectLogin", t);
|
|
120
|
+
}, x = () => {
|
|
121
|
+
a("projectLogin", "");
|
|
122
|
+
};
|
|
123
|
+
r(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
|
|
124
|
+
l.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
|
|
125
|
+
}, { immediate: !0 }), r(
|
|
126
|
+
() => e == null ? void 0 : e.interfaceContent,
|
|
127
|
+
() => {
|
|
128
|
+
var s, y, g, C, d;
|
|
129
|
+
if (!(e != null && e.interfaceContent) || Array.isArray(e == null ? void 0 : e.interfaceContent) && ((s = e == null ? void 0 : e.interfaceContent) == null ? void 0 : s.length) === 0) return;
|
|
130
|
+
let t = (y = e == null ? void 0 : e.interfaceContent) == null ? void 0 : y.find((i) => i == null ? void 0 : i.includes("VITE_API_NEW_URL")), n = (g = e == null ? void 0 : e.interfaceContent) == null ? void 0 : g.find((i) => i == null ? void 0 : i.includes("VITE_FACE_RECOGNITION_API_URL"));
|
|
131
|
+
n = (C = n == null ? void 0 : n.split("=")) == null ? void 0 : C[1], n = n == null ? void 0 : n.trim(), t = (d = t == null ? void 0 : t.split("=")) == null ? void 0 : d[1], t = t == null ? void 0 : t.trim(), l.setExtraUrl(n ?? ""), l.setSystemUrl(t ?? "");
|
|
132
|
+
},
|
|
133
|
+
{ immediate: !0, deep: !0 }
|
|
134
|
+
), E(async () => {
|
|
135
|
+
e.systemInfo ? l.setSystemInfo(e.systemInfo) : await T();
|
|
136
|
+
});
|
|
137
|
+
const K = () => {
|
|
138
|
+
a("buildContent");
|
|
139
|
+
}, U = () => {
|
|
140
|
+
a("setLoginInfo");
|
|
141
|
+
}, H = (t) => {
|
|
142
|
+
a("openThreeBuild", t);
|
|
143
|
+
}, O = (t) => {
|
|
144
|
+
a("threeData", t);
|
|
145
|
+
}, R = (t) => {
|
|
146
|
+
a("updateApiUrl", t);
|
|
147
|
+
}, W = (t) => {
|
|
148
|
+
a("executeWorkspace", t);
|
|
149
|
+
}, h = () => {
|
|
150
|
+
var d, i, k;
|
|
151
|
+
const t = e != null && e.windowConfig ? (d = e == null ? void 0 : e.windowConfig) == null ? void 0 : d.width : window.innerWidth, n = (i = e == null ? void 0 : e.windowConfig) != null && i.height ? (k = e == null ? void 0 : e.windowConfig) == null ? void 0 : k.height : window.innerHeight;
|
|
152
|
+
u.setSystemHeight(n);
|
|
153
|
+
const s = 1920, y = 16, g = t / s, C = y * g;
|
|
154
|
+
document.documentElement.style.fontSize = `${C}px`;
|
|
155
|
+
};
|
|
156
|
+
return E(() => {
|
|
157
|
+
h(), window.addEventListener("resize", h);
|
|
158
|
+
}), G(() => {
|
|
159
|
+
window.removeEventListener("resize", h);
|
|
160
|
+
}), (t, n) => {
|
|
161
|
+
const s = q("router-view");
|
|
162
|
+
return S(), L("div", null, [
|
|
163
|
+
w.value ? (S(), L("div", ie)) : (S(), J(s, {
|
|
164
|
+
key: 1,
|
|
165
|
+
mode: e == null ? void 0 : e.mode,
|
|
166
|
+
content: e == null ? void 0 : e.content,
|
|
167
|
+
jsonContents: e == null ? void 0 : e.jsonContents,
|
|
168
|
+
pathContent: e == null ? void 0 : e.pathContent,
|
|
169
|
+
showButton: P.value,
|
|
170
|
+
nodeDev: e == null ? void 0 : e.nodeDev,
|
|
171
|
+
windowConfig: o.windowConfig,
|
|
172
|
+
systemInfo: o.systemInfo,
|
|
173
|
+
"old-systemKey": o.systemKey,
|
|
174
|
+
onBuildContent: K,
|
|
175
|
+
onProjectLogin: M,
|
|
176
|
+
onClearLogin: x,
|
|
177
|
+
onUpdateApiUrl: R,
|
|
178
|
+
onOpenThreeBuild: H,
|
|
179
|
+
pageKey: o.pageKey,
|
|
180
|
+
onThreeData: O,
|
|
181
|
+
onSetLoginInfo: U,
|
|
182
|
+
loginContent: e == null ? void 0 : e.loginContent,
|
|
183
|
+
onUpdateVersion: B,
|
|
184
|
+
onClearFileContent: b,
|
|
185
|
+
onSystemContent: j,
|
|
186
|
+
onExecuteWorkspace: W,
|
|
187
|
+
workspaceHistoryData: e == null ? void 0 : e.workspaceHistoryData,
|
|
188
|
+
workspaceInfo: e == null ? void 0 : e.workspaceInfo
|
|
189
|
+
}, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey", "loginContent", "workspaceHistoryData", "workspaceInfo"]))
|
|
190
|
+
]);
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
}), ce = /* @__PURE__ */ p(se, [["__scopeId", "data-v-d3a775f0"]]), I = F(), le = [ce], he = (o) => {
|
|
194
|
+
le.forEach((c) => {
|
|
195
|
+
o.use(c);
|
|
196
|
+
}), o.use(D), o.config.globalProperties.$router = D;
|
|
197
|
+
}, ue = (o) => {
|
|
198
|
+
switch (o) {
|
|
11
199
|
case "browser":
|
|
12
|
-
return
|
|
200
|
+
return ae;
|
|
13
201
|
case "client":
|
|
14
|
-
return
|
|
202
|
+
return oe;
|
|
15
203
|
case "three":
|
|
16
|
-
return
|
|
204
|
+
return ne;
|
|
17
205
|
}
|
|
18
|
-
},
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
206
|
+
}, de = (o) => {
|
|
207
|
+
const c = document.documentElement;
|
|
208
|
+
o == null || o.forEach((f) => {
|
|
209
|
+
c.style.setProperty(f.name, f.value);
|
|
22
210
|
});
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
},
|
|
211
|
+
}, re = (o) => {
|
|
212
|
+
I.setPlatform(o);
|
|
213
|
+
const c = ue(o);
|
|
214
|
+
de(c);
|
|
215
|
+
}, Se = { getPlatform: I.platform, setPlatform: I.setPlatform, initPlatform: re };
|
|
28
216
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
217
|
+
ke as SvgIcon,
|
|
218
|
+
he as default,
|
|
219
|
+
Se as platformApi,
|
|
220
|
+
D as router
|
|
33
221
|
};
|
package/dist/ss-component2.js
CHANGED
|
@@ -3,12 +3,12 @@ const r = [
|
|
|
3
3
|
{
|
|
4
4
|
path: "/login",
|
|
5
5
|
name: "Login",
|
|
6
|
-
component: async () => import("./index-
|
|
6
|
+
component: async () => import("./index-C5rFKP3J.js")
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
path: "/",
|
|
10
10
|
name: "Model",
|
|
11
|
-
component: async () => import("./index-
|
|
11
|
+
component: async () => import("./index-Cz0F1nRr.js"),
|
|
12
12
|
// component: async ()=>import('@/components/views/model/component/main.vue'),
|
|
13
13
|
// component: async ()=>import('@/components/views/canvas/index.vue'),
|
|
14
14
|
// component: async ()=>import('@/components/views/test/index.vue'),
|
|
@@ -49,8 +49,8 @@ const r = [
|
|
|
49
49
|
history: t(),
|
|
50
50
|
routes: r
|
|
51
51
|
});
|
|
52
|
-
i.beforeEach((
|
|
53
|
-
!sessionStorage.getItem("loginToken") &&
|
|
52
|
+
i.beforeEach((e, a, o) => {
|
|
53
|
+
!sessionStorage.getItem("loginToken") && e.path !== "/login" ? o("/login") : o();
|
|
54
54
|
});
|
|
55
55
|
export {
|
|
56
56
|
i as default
|
package/package.json
CHANGED
package/public/config.js
CHANGED
|
@@ -5,7 +5,7 @@ window.__env__ = {
|
|
|
5
5
|
"VITE_PUBLIC_PATH": "",
|
|
6
6
|
"VITE_SM_PUBLIC_KEY": "0484C7466D950E120E5ECE5DD85D0C90EAA85081A3A2BD7C57AE6DC822EFCCBD66620C67B0103FC8DD280E36C3B282977B722AAEC3C56518EDCEBAFB72C5A05312",
|
|
7
7
|
"VITE_API_URL": "http://222.92.178.198:62001",
|
|
8
|
-
"VITE_API_NEW_URL": "http://
|
|
8
|
+
"VITE_API_NEW_URL": "http://192.168.124.24:6007",
|
|
9
9
|
"VITE_REPORT_URL": "http://139.196.154.85:20031",
|
|
10
10
|
"VITE_FACE_RECOGNITION_API_URL": "http://139.196.154.85:20015",
|
|
11
11
|
"VITE_DEFAULT_USER": "",
|