ss-component-new 1.3.433 → 1.3.435
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/index-DdE_CHsO.cjs +1 -0
- package/dist/{index-iGRV5jtr.js → index-L_BH-SIP.js} +4454 -4445
- package/dist/{index-XG75Mi-k.js → index-Pda6xIs5.js} +44 -44
- package/dist/index-j5gKbJLv.cjs +2 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +1 -1
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
- package/dist/index-BGbr6Njb.cjs +0 -2
- package/dist/index-Zawfieio.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { b as
|
|
3
|
-
import { l as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as P, ref as W, computed as z, watch as r, nextTick as N, onMounted as k, onUnmounted as G, resolveComponent as V, createElementBlock as L, openBlock as w, createBlock as $ } from "vue";
|
|
2
|
+
import { b as q, p as h, s as v, d as J, a as Q, u as X, v as Y } from "./index-BK-oz1IK.js";
|
|
3
|
+
import { l as Z } from "./index-RF5qQdBY.js";
|
|
4
|
+
import { useRouter as p } from "vue-router";
|
|
5
|
+
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const te = { key: 0 }, ne = /* @__PURE__ */ P({
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: {
|
|
9
9
|
windowConfig: {
|
|
@@ -72,13 +72,13 @@ const ee = { key: 0 }, te = /* @__PURE__ */ O({
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
emits: ["buildContent", "openThreeBuild", "threeData", "setLoginInfo", "projectLogin", "updateApiUrl", "clearFileContent", "systemContent", "getMenuPathValue", "executeWorkspace"],
|
|
75
|
-
setup(d, { emit:
|
|
76
|
-
const
|
|
75
|
+
setup(d, { emit: _ }) {
|
|
76
|
+
const A = p(), l = q(h), { loginUserInfo: f } = v(l), { initSystemInfo: D } = J(), E = Q(h), { refreshLogin: F } = v(E), y = X(h), g = W(!0), { activeMenuPath: I } = v(y), e = d, o = _, j = z(() => {
|
|
77
77
|
var t, n;
|
|
78
78
|
return (e == null ? void 0 : e.showButton) || ((n = (t = f.value) == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
79
|
-
}),
|
|
79
|
+
}), B = (t) => {
|
|
80
80
|
o("systemContent", t);
|
|
81
|
-
},
|
|
81
|
+
}, M = () => {
|
|
82
82
|
o("clearFileContent");
|
|
83
83
|
};
|
|
84
84
|
r(
|
|
@@ -97,41 +97,41 @@ const ee = { key: 0 }, te = /* @__PURE__ */ O({
|
|
|
97
97
|
), r(
|
|
98
98
|
() => e == null ? void 0 : e.loginContent,
|
|
99
99
|
async () => {
|
|
100
|
-
var n, i, c,
|
|
100
|
+
var n, i, c, u;
|
|
101
101
|
g.value = !0;
|
|
102
102
|
let t = e == null ? void 0 : e.loginContent;
|
|
103
|
-
if (t != null && t.account && (t != null && t.password) && !
|
|
104
|
-
let s = await
|
|
105
|
-
o("systemContent", s == null ? void 0 : s.allMenuContents),
|
|
103
|
+
if (t != null && t.account && (t != null && t.password) && !F.value && (await Z(t), status)) {
|
|
104
|
+
let s = await Y();
|
|
105
|
+
o("systemContent", s == null ? void 0 : s.allMenuContents), A.push("/"), l.setLogRecordAsync({
|
|
106
106
|
type: "登录",
|
|
107
107
|
data: {
|
|
108
108
|
account: ((n = f.value) == null ? void 0 : n.account) ?? ((i = f.value) == null ? void 0 : i.账号),
|
|
109
|
-
userName: ((c = f.value) == null ? void 0 : c.姓名) || ((
|
|
109
|
+
userName: ((c = f.value) == null ? void 0 : c.姓名) || ((u = f.value) == null ? void 0 : u.userName) || "未知"
|
|
110
110
|
}
|
|
111
111
|
}, "/login", "login"), y.setHasClickEditComp(!1);
|
|
112
112
|
}
|
|
113
|
-
g.value = !1, await
|
|
113
|
+
g.value = !1, await N();
|
|
114
114
|
},
|
|
115
115
|
{ deep: !0, immediate: !0 }
|
|
116
116
|
);
|
|
117
|
-
const
|
|
117
|
+
const T = (t) => {
|
|
118
118
|
o("projectLogin", t);
|
|
119
|
-
},
|
|
119
|
+
}, b = () => {
|
|
120
120
|
o("projectLogin", "");
|
|
121
121
|
};
|
|
122
122
|
r(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
|
|
123
|
-
|
|
123
|
+
l.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
|
|
124
124
|
}, { immediate: !0 }), r(
|
|
125
125
|
() => e == null ? void 0 : e.interfaceContent,
|
|
126
126
|
() => {
|
|
127
|
-
var i, c,
|
|
127
|
+
var i, c, u, s, m;
|
|
128
128
|
if (!(e != null && e.interfaceContent) || Array.isArray(e == null ? void 0 : e.interfaceContent) && ((i = e == null ? void 0 : e.interfaceContent) == null ? void 0 : i.length) === 0) return;
|
|
129
|
-
let t = (c = e == null ? void 0 : e.interfaceContent) == null ? void 0 : c.find((a) => a == null ? void 0 : a.includes("VITE_API_NEW_URL")), n = (
|
|
130
|
-
n = (s = n == null ? void 0 : n.split("=")) == null ? void 0 : s[1], n = n == null ? void 0 : n.trim(), t = (m = t == null ? void 0 : t.split("=")) == null ? void 0 : m[1], t = t == null ? void 0 : t.trim(),
|
|
129
|
+
let t = (c = e == null ? void 0 : e.interfaceContent) == null ? void 0 : c.find((a) => a == null ? void 0 : a.includes("VITE_API_NEW_URL")), n = (u = e == null ? void 0 : e.interfaceContent) == null ? void 0 : u.find((a) => a == null ? void 0 : a.includes("VITE_FACE_RECOGNITION_API_URL"));
|
|
130
|
+
n = (s = n == null ? void 0 : n.split("=")) == null ? void 0 : s[1], n = n == null ? void 0 : n.trim(), t = (m = t == null ? void 0 : t.split("=")) == null ? void 0 : m[1], t = t == null ? void 0 : t.trim(), l.setExtraUrl(n ?? ""), l.setSystemUrl(t ?? "");
|
|
131
131
|
},
|
|
132
132
|
{ immediate: !0, deep: !0 }
|
|
133
|
-
),
|
|
134
|
-
e.systemInfo ?
|
|
133
|
+
), k(async () => {
|
|
134
|
+
e.systemInfo ? l.setSystemInfo(e.systemInfo) : await D();
|
|
135
135
|
});
|
|
136
136
|
const x = () => {
|
|
137
137
|
o("buildContent");
|
|
@@ -141,54 +141,54 @@ const ee = { key: 0 }, te = /* @__PURE__ */ O({
|
|
|
141
141
|
o("openThreeBuild", t);
|
|
142
142
|
}, R = (t) => {
|
|
143
143
|
o("threeData", t);
|
|
144
|
-
}, b = (t) => {
|
|
145
|
-
o("updateApiUrl", t);
|
|
146
144
|
}, H = (t) => {
|
|
145
|
+
o("updateApiUrl", t);
|
|
146
|
+
}, O = (t) => {
|
|
147
147
|
o("executeWorkspace", t);
|
|
148
148
|
}, C = () => {
|
|
149
|
-
var m, a;
|
|
150
|
-
const t = e != null && e.windowConfig ? (m = e == null ? void 0 : e.windowConfig) == null ? void 0 : m.width : window.innerWidth, n = e
|
|
151
|
-
|
|
152
|
-
const i = 1920, c = 16,
|
|
149
|
+
var m, a, S;
|
|
150
|
+
const t = e != null && e.windowConfig ? (m = e == null ? void 0 : e.windowConfig) == null ? void 0 : m.width : window.innerWidth, n = (a = e == null ? void 0 : e.windowConfig) != null && a.height ? (S = e == null ? void 0 : e.windowConfig) == null ? void 0 : S.height : window.innerHeight;
|
|
151
|
+
y.setSystemHeight(n);
|
|
152
|
+
const i = 1920, c = 16, u = t / i, s = c * u;
|
|
153
153
|
document.documentElement.style.fontSize = `${s}px`;
|
|
154
154
|
};
|
|
155
|
-
return
|
|
155
|
+
return k(() => {
|
|
156
156
|
C(), window.addEventListener("resize", C);
|
|
157
|
-
}),
|
|
157
|
+
}), G(() => {
|
|
158
158
|
window.removeEventListener("resize", C);
|
|
159
159
|
}), (t, n) => {
|
|
160
|
-
const i =
|
|
161
|
-
return w(),
|
|
162
|
-
g.value ? (w(),
|
|
160
|
+
const i = V("router-view");
|
|
161
|
+
return w(), L("div", null, [
|
|
162
|
+
g.value ? (w(), L("div", te)) : (w(), $(i, {
|
|
163
163
|
key: 1,
|
|
164
164
|
mode: e == null ? void 0 : e.mode,
|
|
165
165
|
content: e == null ? void 0 : e.content,
|
|
166
166
|
jsonContents: e == null ? void 0 : e.jsonContents,
|
|
167
167
|
pathContent: e == null ? void 0 : e.pathContent,
|
|
168
|
-
showButton:
|
|
168
|
+
showButton: j.value,
|
|
169
169
|
nodeDev: e == null ? void 0 : e.nodeDev,
|
|
170
170
|
windowConfig: d.windowConfig,
|
|
171
171
|
systemInfo: d.systemInfo,
|
|
172
172
|
"old-systemKey": d.systemKey,
|
|
173
173
|
onBuildContent: x,
|
|
174
|
-
onProjectLogin:
|
|
175
|
-
onClearLogin:
|
|
176
|
-
onUpdateApiUrl:
|
|
174
|
+
onProjectLogin: T,
|
|
175
|
+
onClearLogin: b,
|
|
176
|
+
onUpdateApiUrl: H,
|
|
177
177
|
onOpenThreeBuild: U,
|
|
178
178
|
pageKey: d.pageKey,
|
|
179
179
|
onThreeData: R,
|
|
180
180
|
onSetLoginInfo: K,
|
|
181
181
|
loginContent: e == null ? void 0 : e.loginContent,
|
|
182
|
-
onClearFileContent:
|
|
183
|
-
onSystemContent:
|
|
184
|
-
onExecuteWorkspace:
|
|
182
|
+
onClearFileContent: M,
|
|
183
|
+
onSystemContent: B,
|
|
184
|
+
onExecuteWorkspace: O,
|
|
185
185
|
workspaceHistoryData: e == null ? void 0 : e.workspaceHistoryData,
|
|
186
186
|
workspaceInfo: e == null ? void 0 : e.workspaceInfo
|
|
187
187
|
}, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey", "loginContent", "workspaceHistoryData", "workspaceInfo"]))
|
|
188
188
|
]);
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
}),
|
|
191
|
+
}), ue = /* @__PURE__ */ ee(ne, [["__scopeId", "data-v-b9cb5093"]]);
|
|
192
192
|
export {
|
|
193
|
-
|
|
193
|
+
ue as default
|
|
194
194
|
};
|