ss-component-new 1.3.660 → 1.3.662
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/config.js +1 -1
- package/dist/{index-Cz0F1nRr.js → index-BBinXULM.js} +319 -318
- package/dist/{index-BofWylNB.js → index-CbFmq_Ex.js} +1 -1
- package/dist/index-D0WUIn62.js +194 -0
- package/dist/{index-C5rFKP3J.js → index-DKykyI5s.js} +39 -38
- package/dist/{index-p2dYw5GI.js → index-DPuDAXhP.js} +12 -11
- package/dist/{index-CLw1Ncst.js → index-Dt-Jpm9C.js} +13 -13
- package/dist/menu-CZNGSy8m.js +5222 -0
- package/dist/origin-weHfdTeb.js +11428 -0
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +31 -214
- package/dist/ss-component2.js +2 -2
- package/package.json +1 -1
- package/public/config.js +1 -1
- package/dist/_plugin-vue_export-helper-BZ_eTSzz.js +0 -16638
package/dist/ss-component.js
CHANGED
|
@@ -1,221 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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) {
|
|
1
|
+
import { defineAsyncComponent as m } from "vue";
|
|
2
|
+
import s from "./ss-component2.js";
|
|
3
|
+
import { t as c, c as f, b as i } from "./index-CbFmq_Ex.js";
|
|
4
|
+
import { S as w } from "./index-CbFmq_Ex.js";
|
|
5
|
+
import { u as a } from "./menu-CZNGSy8m.js";
|
|
6
|
+
const o = m(() => import("./index-D0WUIn62.js"));
|
|
7
|
+
o.install = (t) => {
|
|
8
|
+
t.component("ssComponent", o);
|
|
9
|
+
};
|
|
10
|
+
const r = a(), l = [o], S = (t) => {
|
|
11
|
+
l.forEach((e) => {
|
|
12
|
+
t.use(e);
|
|
13
|
+
}), t.use(s), t.config.globalProperties.$router = s;
|
|
14
|
+
}, u = (t) => {
|
|
15
|
+
switch (t) {
|
|
199
16
|
case "browser":
|
|
200
|
-
return
|
|
17
|
+
return i;
|
|
201
18
|
case "client":
|
|
202
|
-
return
|
|
19
|
+
return f;
|
|
203
20
|
case "three":
|
|
204
|
-
return
|
|
21
|
+
return c;
|
|
205
22
|
}
|
|
206
|
-
},
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
|
|
23
|
+
}, h = (t) => {
|
|
24
|
+
const e = document.documentElement;
|
|
25
|
+
t == null || t.forEach((n) => {
|
|
26
|
+
e.style.setProperty(n.name, n.value);
|
|
210
27
|
});
|
|
211
|
-
},
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
},
|
|
28
|
+
}, p = (t) => {
|
|
29
|
+
r.setPlatform(t);
|
|
30
|
+
const e = u(t);
|
|
31
|
+
h(e);
|
|
32
|
+
}, T = { getPlatform: r.platform, setPlatform: r.setPlatform, initPlatform: p };
|
|
216
33
|
export {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
34
|
+
w as SvgIcon,
|
|
35
|
+
S as default,
|
|
36
|
+
T as platformApi,
|
|
37
|
+
s as router
|
|
221
38
|
};
|
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-DKykyI5s.js")
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
path: "/",
|
|
10
10
|
name: "Model",
|
|
11
|
-
component: async () => import("./index-
|
|
11
|
+
component: async () => import("./index-BBinXULM.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'),
|
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://222.92.178.198:63003",
|
|
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": "",
|