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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as a, createElementBlock as o, openBlock as u, mergeProps as i, toHandlers as r, createElementVNode as v } from "vue";
|
|
2
|
-
import { _ as c } from "./
|
|
2
|
+
import { _ as c } from "./menu-CZNGSy8m.js";
|
|
3
3
|
const s = ["xlink:href"], b = {
|
|
4
4
|
__name: "index",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { defineComponent as R, ref as W, computed as b, watch as l, nextTick as z, onMounted as S, onUnmounted as N, resolveComponent as V, createElementBlock as v, openBlock as C, createBlock as G } from "vue";
|
|
2
|
+
import { u as $, a as q, g as J, v as Q } from "./origin-weHfdTeb.js";
|
|
3
|
+
import { p as k, s as L, u as X, _ as Y } from "./menu-CZNGSy8m.js";
|
|
4
|
+
import { l as Z } from "./index-DPuDAXhP.js";
|
|
5
|
+
import { useRouter as p } from "vue-router";
|
|
6
|
+
const ee = { key: 0 }, te = /* @__PURE__ */ R({
|
|
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(s, { emit: _ }) {
|
|
76
|
+
const D = p(), c = $(k), { loginUserInfo: f } = L(c), { initSystemInfo: A } = q(), d = X(k), g = W(!0), { activeMenuPath: h } = L(d), e = s, o = _, F = b(() => {
|
|
77
|
+
var t, n;
|
|
78
|
+
return (e == null ? void 0 : e.showButton) || ((n = (t = f.value) == null ? void 0 : t.accounttype) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
79
|
+
}), E = (t) => {
|
|
80
|
+
o("systemContent", t);
|
|
81
|
+
}, j = () => {
|
|
82
|
+
o("updateVersion");
|
|
83
|
+
}, B = () => {
|
|
84
|
+
o("clearFileContent");
|
|
85
|
+
};
|
|
86
|
+
l(
|
|
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 && d.setLocalFiles(e == null ? void 0 : e.menuFiles);
|
|
91
|
+
},
|
|
92
|
+
{ deep: !0, immediate: !0 }
|
|
93
|
+
), l(
|
|
94
|
+
() => h.value,
|
|
95
|
+
async () => {
|
|
96
|
+
var n, i;
|
|
97
|
+
let t = await J({
|
|
98
|
+
platId: parseInt((n = f == null ? void 0 : f.value) == null ? void 0 : n.plat_id)
|
|
99
|
+
});
|
|
100
|
+
t = (i = t == null ? void 0 : t.data) == null ? void 0 : i.result, d.setDataFiles(t), o("getMenuPathValue", h.value);
|
|
101
|
+
},
|
|
102
|
+
{ deep: !0, immediate: !0 }
|
|
103
|
+
), l(
|
|
104
|
+
() => e == null ? void 0 : e.loginContent,
|
|
105
|
+
async () => {
|
|
106
|
+
g.value = !0;
|
|
107
|
+
let t = e == null ? void 0 : e.loginContent;
|
|
108
|
+
if (t != null && t.account && (t != null && t.password) && (await Z(t), status)) {
|
|
109
|
+
let n = await Q();
|
|
110
|
+
o("systemContent", n == null ? void 0 : n.allMenuContents), D.push("/"), d.setHasClickEditComp(!1);
|
|
111
|
+
}
|
|
112
|
+
g.value = !1, await z();
|
|
113
|
+
},
|
|
114
|
+
{ deep: !0, immediate: !0 }
|
|
115
|
+
);
|
|
116
|
+
const M = (t) => {
|
|
117
|
+
o("projectLogin", t);
|
|
118
|
+
}, T = () => {
|
|
119
|
+
o("projectLogin", "");
|
|
120
|
+
};
|
|
121
|
+
l(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
|
|
122
|
+
c.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
|
|
123
|
+
}, { immediate: !0 }), l(
|
|
124
|
+
() => e == null ? void 0 : e.interfaceContent,
|
|
125
|
+
() => {
|
|
126
|
+
var i, m, r, y, u;
|
|
127
|
+
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;
|
|
128
|
+
let t = (m = e == null ? void 0 : e.interfaceContent) == null ? void 0 : m.find((a) => a == null ? void 0 : a.includes("VITE_API_NEW_URL")), n = (r = e == null ? void 0 : e.interfaceContent) == null ? void 0 : r.find((a) => a == null ? void 0 : a.includes("VITE_FACE_RECOGNITION_API_URL"));
|
|
129
|
+
n = (y = n == null ? void 0 : n.split("=")) == null ? void 0 : y[1], n = n == null ? void 0 : n.trim(), t = (u = t == null ? void 0 : t.split("=")) == null ? void 0 : u[1], t = t == null ? void 0 : t.trim(), c.setExtraUrl(n ?? ""), c.setSystemUrl(t ?? "");
|
|
130
|
+
},
|
|
131
|
+
{ immediate: !0, deep: !0 }
|
|
132
|
+
), S(async () => {
|
|
133
|
+
e.systemInfo ? c.setSystemInfo(e.systemInfo) : await A();
|
|
134
|
+
});
|
|
135
|
+
const x = () => {
|
|
136
|
+
o("buildContent");
|
|
137
|
+
}, K = () => {
|
|
138
|
+
o("setLoginInfo");
|
|
139
|
+
}, U = (t) => {
|
|
140
|
+
o("openThreeBuild", t);
|
|
141
|
+
}, H = (t) => {
|
|
142
|
+
o("threeData", t);
|
|
143
|
+
}, O = (t) => {
|
|
144
|
+
o("updateApiUrl", t);
|
|
145
|
+
}, P = (t) => {
|
|
146
|
+
o("executeWorkspace", t);
|
|
147
|
+
}, w = () => {
|
|
148
|
+
var u, a, I;
|
|
149
|
+
const t = e != null && e.windowConfig ? (u = e == null ? void 0 : e.windowConfig) == null ? void 0 : u.width : window.innerWidth, n = (a = e == null ? void 0 : e.windowConfig) != null && a.height ? (I = e == null ? void 0 : e.windowConfig) == null ? void 0 : I.height : window.innerHeight;
|
|
150
|
+
d.setSystemHeight(n);
|
|
151
|
+
const i = 1920, m = 16, r = t / i, y = m * r;
|
|
152
|
+
document.documentElement.style.fontSize = `${y}px`;
|
|
153
|
+
};
|
|
154
|
+
return S(() => {
|
|
155
|
+
w(), window.addEventListener("resize", w);
|
|
156
|
+
}), N(() => {
|
|
157
|
+
window.removeEventListener("resize", w);
|
|
158
|
+
}), (t, n) => {
|
|
159
|
+
const i = V("router-view");
|
|
160
|
+
return C(), v("div", null, [
|
|
161
|
+
g.value ? (C(), v("div", ee)) : (C(), G(i, {
|
|
162
|
+
key: 1,
|
|
163
|
+
mode: e == null ? void 0 : e.mode,
|
|
164
|
+
content: e == null ? void 0 : e.content,
|
|
165
|
+
jsonContents: e == null ? void 0 : e.jsonContents,
|
|
166
|
+
pathContent: e == null ? void 0 : e.pathContent,
|
|
167
|
+
showButton: F.value,
|
|
168
|
+
nodeDev: e == null ? void 0 : e.nodeDev,
|
|
169
|
+
windowConfig: s.windowConfig,
|
|
170
|
+
systemInfo: s.systemInfo,
|
|
171
|
+
"old-systemKey": s.systemKey,
|
|
172
|
+
onBuildContent: x,
|
|
173
|
+
onProjectLogin: M,
|
|
174
|
+
onClearLogin: T,
|
|
175
|
+
onUpdateApiUrl: O,
|
|
176
|
+
onOpenThreeBuild: U,
|
|
177
|
+
pageKey: s.pageKey,
|
|
178
|
+
onThreeData: H,
|
|
179
|
+
onSetLoginInfo: K,
|
|
180
|
+
loginContent: e == null ? void 0 : e.loginContent,
|
|
181
|
+
onUpdateVersion: j,
|
|
182
|
+
onClearFileContent: B,
|
|
183
|
+
onSystemContent: E,
|
|
184
|
+
onExecuteWorkspace: P,
|
|
185
|
+
workspaceHistoryData: e == null ? void 0 : e.workspaceHistoryData,
|
|
186
|
+
workspaceInfo: e == null ? void 0 : e.workspaceInfo
|
|
187
|
+
}, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey", "loginContent", "workspaceHistoryData", "workspaceInfo"]))
|
|
188
|
+
]);
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}), ce = /* @__PURE__ */ Y(te, [["__scopeId", "data-v-d3a775f0"]]);
|
|
192
|
+
export {
|
|
193
|
+
ce as default
|
|
194
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { createElementBlock as D, openBlock as $, createElementVNode as l, renderSlot as R, defineComponent as W, ref as C, resolveComponent as w, createVNode as t, withCtx as o, unref as O, reactive as se, computed as G, onMounted as fe, createBlock as J, resolveDirective as Ue, createCommentVNode as oe, withDirectives as ke, normalizeClass as ne, toDisplayString as x, Transition as Ve, watch as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { createElementBlock as D, openBlock as $, createElementVNode as l, renderSlot as R, defineComponent as W, ref as C, resolveComponent as w, createVNode as t, withCtx as o, unref as O, reactive as se, computed as G, onMounted as fe, createBlock as J, resolveDirective as Ue, createCommentVNode as oe, withDirectives as ke, normalizeClass as ne, toDisplayString as x, Transition as Ve, watch as H, Fragment as Le, createTextVNode as M, onBeforeUnmount as $e } from "vue";
|
|
2
|
+
import { _ as K, p as ee, s as le, u as Ie } from "./menu-CZNGSy8m.js";
|
|
3
|
+
import { u as te, c as Fe, b as qe, f as Ae, d as ie, E as re, s as ve, e as De, l as xe, p as Re, v as Ne } from "./origin-weHfdTeb.js";
|
|
3
4
|
import { _ as Y } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
4
5
|
import { useRouter as Se } from "vue-router";
|
|
5
|
-
import { l as Ee } from "./index-
|
|
6
|
+
import { l as Ee } from "./index-DPuDAXhP.js";
|
|
6
7
|
const Me = {}, Pe = { class: "left-wrap" }, Be = { class: "left-bg" };
|
|
7
8
|
function Oe(f, U) {
|
|
8
9
|
return $(), D("div", Pe, [
|
|
@@ -11,10 +12,10 @@ function Oe(f, U) {
|
|
|
11
12
|
])
|
|
12
13
|
]);
|
|
13
14
|
}
|
|
14
|
-
const
|
|
15
|
+
const He = /* @__PURE__ */ K(Me, [["render", Oe], ["__scopeId", "data-v-b3dd4a82"]]), Z = {
|
|
15
16
|
ACCOUNT: "account",
|
|
16
17
|
FACE: "face"
|
|
17
|
-
},
|
|
18
|
+
}, Ke = { class: "right-wrap" }, je = { class: "tab-content" }, ze = { class: "tab-tips" }, Qe = { class: "tab-content" }, We = { class: "tab-tips" }, Xe = /* @__PURE__ */ W({
|
|
18
19
|
__name: "index",
|
|
19
20
|
props: {
|
|
20
21
|
tabList: {
|
|
@@ -35,7 +36,7 @@ const je = /* @__PURE__ */ H(Me, [["render", Oe], ["__scopeId", "data-v-b3dd4a82
|
|
|
35
36
|
};
|
|
36
37
|
return (_, T) => {
|
|
37
38
|
const v = w("el-button"), m = w("el-tab-pane"), y = w("el-tabs");
|
|
38
|
-
return $(), D("div",
|
|
39
|
+
return $(), D("div", Ke, [
|
|
39
40
|
t(y, {
|
|
40
41
|
modelValue: g.value,
|
|
41
42
|
"onUpdate:modelValue": T[0] || (T[0] = (b) => g.value = b),
|
|
@@ -50,7 +51,7 @@ const je = /* @__PURE__ */ H(Me, [["render", Oe], ["__scopeId", "data-v-b3dd4a82
|
|
|
50
51
|
R(_.$slots, "tabLabel1", {}, void 0, !0)
|
|
51
52
|
]),
|
|
52
53
|
default: o(() => [
|
|
53
|
-
l("div",
|
|
54
|
+
l("div", je, [
|
|
54
55
|
R(_.$slots, "tabContent1", {}, void 0, !0)
|
|
55
56
|
]),
|
|
56
57
|
l("div", {
|
|
@@ -92,7 +93,7 @@ const je = /* @__PURE__ */ H(Me, [["render", Oe], ["__scopeId", "data-v-b3dd4a82
|
|
|
92
93
|
]);
|
|
93
94
|
};
|
|
94
95
|
}
|
|
95
|
-
}), Ge = /* @__PURE__ */
|
|
96
|
+
}), Ge = /* @__PURE__ */ K(Xe, [["__scopeId", "data-v-57780a32"]]), Je = /^[a-z][a-z0-9+.-]*:\/\//i, ce = (f) => Je.test(f);
|
|
96
97
|
function Ye(f) {
|
|
97
98
|
ce(f) || (f = `http://${f}`);
|
|
98
99
|
try {
|
|
@@ -127,7 +128,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
127
128
|
host: [
|
|
128
129
|
{ required: !0, message: "请输入职位名称", trigger: "blur" }
|
|
129
130
|
]
|
|
130
|
-
}), b = G(() => e.value || "http://
|
|
131
|
+
}), b = G(() => e.value || "http://222.92.178.198:63003"), n = () => {
|
|
131
132
|
v.value = Ye(b.value);
|
|
132
133
|
};
|
|
133
134
|
fe(() => {
|
|
@@ -149,7 +150,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
149
150
|
openDialog: i,
|
|
150
151
|
handleClose: u
|
|
151
152
|
}), (L, d) => {
|
|
152
|
-
const r = w("el-input"), k = w("el-form-item"), q = w("el-col"), N = w("el-row"),
|
|
153
|
+
const r = w("el-input"), k = w("el-form-item"), q = w("el-col"), N = w("el-row"), j = w("el-form"), X = w("el-dialog");
|
|
153
154
|
return $(), J(X, {
|
|
154
155
|
class: "api-form-dialog",
|
|
155
156
|
modelValue: a.value,
|
|
@@ -162,7 +163,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
162
163
|
default: o(() => [
|
|
163
164
|
l("div", et, [
|
|
164
165
|
l("div", tt, [
|
|
165
|
-
t(
|
|
166
|
+
t(j, {
|
|
166
167
|
class: "api-edit-form",
|
|
167
168
|
ref_key: "apiFormRef",
|
|
168
169
|
ref: m,
|
|
@@ -246,7 +247,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
246
247
|
}, 8, ["modelValue"]);
|
|
247
248
|
};
|
|
248
249
|
}
|
|
249
|
-
}), lt = /* @__PURE__ */
|
|
250
|
+
}), lt = /* @__PURE__ */ K(st, [["__scopeId", "data-v-a0901fa1"]]), nt = { class: "dialog-header" }, it = { class: "dialog-subtitle" }, rt = {
|
|
250
251
|
key: 0,
|
|
251
252
|
class: "restart-panel"
|
|
252
253
|
}, ct = { class: "restart-title" }, ut = { class: "restart-subtitle" }, dt = {
|
|
@@ -258,7 +259,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
258
259
|
}, gt = 6e4, me = 2e3, _t = /* @__PURE__ */ W({
|
|
259
260
|
__name: "index",
|
|
260
261
|
setup(f, { expose: U }) {
|
|
261
|
-
const g = te(ee), { systemUrl: p } = le(g), V = G(() => p.value || "http://
|
|
262
|
+
const g = te(ee), { systemUrl: p } = le(g), V = G(() => p.value || "http://222.92.178.198:63003"), e = se({
|
|
262
263
|
databaseType: "sqlite",
|
|
263
264
|
sqliteDir: "sqlite-data",
|
|
264
265
|
user: "",
|
|
@@ -293,7 +294,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
293
294
|
i.value = 1, c = setInterval(() => {
|
|
294
295
|
i.value = i.value >= 3 ? 1 : i.value + 1;
|
|
295
296
|
}, 500);
|
|
296
|
-
},
|
|
297
|
+
}, j = () => {
|
|
297
298
|
r();
|
|
298
299
|
const h = setInterval(() => {
|
|
299
300
|
n.value = Math.min(n.value + 3, 100), n.value >= 100 && (clearInterval(h), a.value = "success");
|
|
@@ -307,7 +308,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
307
308
|
}
|
|
308
309
|
try {
|
|
309
310
|
const { data: s } = await ie.get(V.value + "/platform/config/db", { timeout: 3e3 });
|
|
310
|
-
(s == null ? void 0 : s.code) === 200 && (k(),
|
|
311
|
+
(s == null ? void 0 : s.code) === 200 && (k(), j());
|
|
311
312
|
} catch {
|
|
312
313
|
}
|
|
313
314
|
}, me);
|
|
@@ -373,7 +374,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
373
374
|
class: "restart-icon"
|
|
374
375
|
}, {
|
|
375
376
|
default: o(() => [
|
|
376
|
-
t(O(
|
|
377
|
+
t(O(Fe))
|
|
377
378
|
]),
|
|
378
379
|
_: 1
|
|
379
380
|
})) : ($(), J(z, {
|
|
@@ -381,7 +382,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
381
382
|
class: "restart-icon"
|
|
382
383
|
}, {
|
|
383
384
|
default: o(() => [
|
|
384
|
-
t(O(
|
|
385
|
+
t(O(qe))
|
|
385
386
|
]),
|
|
386
387
|
_: 1
|
|
387
388
|
}))
|
|
@@ -448,7 +449,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
448
449
|
prefix: o(() => [
|
|
449
450
|
t(z, null, {
|
|
450
451
|
default: o(() => [
|
|
451
|
-
t(O(
|
|
452
|
+
t(O(Ae))
|
|
452
453
|
]),
|
|
453
454
|
_: 1
|
|
454
455
|
})
|
|
@@ -594,7 +595,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
594
595
|
}, 8, ["modelValue", "close-on-click-modal", "close-on-press-escape"]);
|
|
595
596
|
};
|
|
596
597
|
}
|
|
597
|
-
}), bt = /* @__PURE__ */
|
|
598
|
+
}), bt = /* @__PURE__ */ K(_t, [["__scopeId", "data-v-36cdd580"]]), yt = { class: "account-wrap" }, ht = { class: "extra-operate" }, Ct = /* @__PURE__ */ W({
|
|
598
599
|
__name: "index",
|
|
599
600
|
props: {
|
|
600
601
|
activeTabName: {
|
|
@@ -619,7 +620,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
619
620
|
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
620
621
|
]
|
|
621
622
|
}), e = C(null), _ = U;
|
|
622
|
-
|
|
623
|
+
H(() => g.isClickLogin, (n) => {
|
|
623
624
|
var a;
|
|
624
625
|
n && (g == null ? void 0 : g.activeTabName) === "account" && ((a = e.value) == null || a.validate((i) => {
|
|
625
626
|
var c;
|
|
@@ -629,7 +630,7 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
629
630
|
}));
|
|
630
631
|
}, {
|
|
631
632
|
immediate: !0
|
|
632
|
-
}),
|
|
633
|
+
}), H(() => g.activeTabName, (n) => {
|
|
633
634
|
var a;
|
|
634
635
|
n === "account" && ((a = e.value) == null || a.resetFields());
|
|
635
636
|
});
|
|
@@ -741,16 +742,16 @@ const Ze = () => ({ initUrlInfo: () => ({
|
|
|
741
742
|
], 64);
|
|
742
743
|
};
|
|
743
744
|
}
|
|
744
|
-
}), wt = /* @__PURE__ */
|
|
745
|
-
let ge = P.value === "" || !P.value ? "http://
|
|
746
|
-
|
|
745
|
+
}), wt = /* @__PURE__ */ K(Ct, [["__scopeId", "data-v-7ec7eefc"]]), Tt = te(ee), { systemUrl: P, extraUrl: B } = le(Tt);
|
|
746
|
+
let ge = P.value === "" || !P.value ? "http://222.92.178.198:63003" : P.value, _e = B.value === "" || !B.value ? "http://139.196.154.85:20015" : B.value;
|
|
747
|
+
H(
|
|
747
748
|
() => P.value,
|
|
748
749
|
() => {
|
|
749
|
-
ge = P.value === "" || !P.value ? "http://
|
|
750
|
+
ge = P.value === "" || !P.value ? "http://222.92.178.198:63003" : P.value;
|
|
750
751
|
},
|
|
751
752
|
{ deep: !0, immediate: !0 }
|
|
752
753
|
);
|
|
753
|
-
|
|
754
|
+
H(
|
|
754
755
|
() => B.value,
|
|
755
756
|
() => {
|
|
756
757
|
_e = B.value === "" || !B.value ? "http://139.196.154.85:20015" : B.value;
|
|
@@ -772,7 +773,7 @@ function kt(f) {
|
|
|
772
773
|
});
|
|
773
774
|
}
|
|
774
775
|
const Vt = () => {
|
|
775
|
-
const f = te(), { platId: U, userName: g, account: p, isSuperAdmin: V } =
|
|
776
|
+
const f = te(), { platId: U, userName: g, account: p, isSuperAdmin: V } = De(), e = async (m) => {
|
|
776
777
|
if (!m)
|
|
777
778
|
return;
|
|
778
779
|
const y = new FormData();
|
|
@@ -825,9 +826,9 @@ const Vt = () => {
|
|
|
825
826
|
const i = _.value, c = i.getContext("2d"), u = e.value;
|
|
826
827
|
i.width = 200, i.height = 200;
|
|
827
828
|
const I = u.videoWidth || 640, L = u.videoHeight || 480, d = Math.min(200 / I, 200 / L), r = I * d, k = L * d, q = (200 - r) / 2, N = (200 - k) / 2;
|
|
828
|
-
c == null || c.drawImage(u, 0, 0, I, L, q, N, r, k), i.toBlob((
|
|
829
|
-
if (
|
|
830
|
-
const X = new File([
|
|
829
|
+
c == null || c.drawImage(u, 0, 0, I, L, q, N, r, k), i.toBlob((j) => {
|
|
830
|
+
if (j) {
|
|
831
|
+
const X = new File([j], "face.png", { type: "image/png" });
|
|
831
832
|
m(X);
|
|
832
833
|
}
|
|
833
834
|
}, "image/png");
|
|
@@ -857,7 +858,7 @@ const Vt = () => {
|
|
|
857
858
|
const a = () => {
|
|
858
859
|
n(v), T = !1;
|
|
859
860
|
};
|
|
860
|
-
return
|
|
861
|
+
return H(() => g.activeTabName, (i) => {
|
|
861
862
|
if (i !== Z.FACE) {
|
|
862
863
|
a();
|
|
863
864
|
return;
|
|
@@ -892,7 +893,7 @@ const Vt = () => {
|
|
|
892
893
|
}, null, 512)
|
|
893
894
|
]));
|
|
894
895
|
}
|
|
895
|
-
}), Ft = /* @__PURE__ */
|
|
896
|
+
}), Ft = /* @__PURE__ */ K(It, [["__scopeId", "data-v-94ec015b"]]), qt = { class: "login-wrap" }, At = { class: "login-body" }, Dt = { class: "login-body-item left" }, xt = { class: "title" }, Rt = { class: "first-level" }, Nt = {
|
|
896
897
|
key: 0,
|
|
897
898
|
class: "logo"
|
|
898
899
|
}, St = ["src"], Et = { class: "english-name" }, Mt = { class: "login-body-item right" }, Pt = /* @__PURE__ */ W({
|
|
@@ -903,13 +904,13 @@ const Vt = () => {
|
|
|
903
904
|
},
|
|
904
905
|
emits: ["change", "projectLogin", "updateApiUrl", "systemContent"],
|
|
905
906
|
setup(f, { emit: U }) {
|
|
906
|
-
const g = f, p =
|
|
907
|
+
const g = f, p = Ie(ee), V = te(ee), { systemInfo: e } = le(V), _ = C(""), T = C("account"), v = C(!1), m = C(!1), y = Se(), b = U, n = async (r) => {
|
|
907
908
|
const k = await Re({
|
|
908
909
|
url: r
|
|
909
910
|
});
|
|
910
911
|
return URL.createObjectURL(k == null ? void 0 : k.data);
|
|
911
912
|
};
|
|
912
|
-
|
|
913
|
+
H(() => {
|
|
913
914
|
var r;
|
|
914
915
|
return (r = e.value) == null ? void 0 : r.logo;
|
|
915
916
|
}, async (r) => {
|
|
@@ -955,7 +956,7 @@ const Vt = () => {
|
|
|
955
956
|
m.value = !1;
|
|
956
957
|
m.value = !1;
|
|
957
958
|
};
|
|
958
|
-
|
|
959
|
+
H(
|
|
959
960
|
() => g == null ? void 0 : g.loginContent,
|
|
960
961
|
() => {
|
|
961
962
|
let r = g == null ? void 0 : g.loginContent;
|
|
@@ -971,7 +972,7 @@ const Vt = () => {
|
|
|
971
972
|
return (r, k) => ($(), D("div", qt, [
|
|
972
973
|
l("div", At, [
|
|
973
974
|
l("div", Dt, [
|
|
974
|
-
t(
|
|
975
|
+
t(He, { class: "login-left-bg" }, {
|
|
975
976
|
img: o(() => {
|
|
976
977
|
var q, N;
|
|
977
978
|
return [
|
|
@@ -1036,7 +1037,7 @@ const Vt = () => {
|
|
|
1036
1037
|
])
|
|
1037
1038
|
]));
|
|
1038
1039
|
}
|
|
1039
|
-
}),
|
|
1040
|
+
}), Qt = /* @__PURE__ */ K(Pt, [["__scopeId", "data-v-8aacc6bf"]]);
|
|
1040
1041
|
export {
|
|
1041
|
-
|
|
1042
|
+
Qt as default
|
|
1042
1043
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { h as w, a as N, u as S, E as b, i as v } from "./origin-weHfdTeb.js";
|
|
2
|
+
import { p as h, s as A } from "./menu-CZNGSy8m.js";
|
|
3
|
+
const y = S(h), { isDefaultModel: M } = N(), P = async (m, s) => {
|
|
4
|
+
var u, o, r, i, a, d, g, p, f;
|
|
5
|
+
let t = Object.values(m), e = await w({
|
|
5
6
|
userName: (u = t == null ? void 0 : t[0]) == null ? void 0 : u.trim(),
|
|
6
7
|
password: (o = t == null ? void 0 : t[1]) == null ? void 0 : o.trim()
|
|
7
8
|
});
|
|
8
9
|
if (((r = e == null ? void 0 : e.data) == null ? void 0 : r.status) === 200 && ((a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.result) == null ? void 0 : a.length) > 0) {
|
|
9
|
-
const n = ((g = (d = e == null ? void 0 : e.data) == null ? void 0 : d.result) == null ? void 0 : g.find((q) => M(q))) || ((
|
|
10
|
+
const n = ((g = (d = e == null ? void 0 : e.data) == null ? void 0 : d.result) == null ? void 0 : g.find((q) => M(q))) || ((f = (p = e == null ? void 0 : e.data) == null ? void 0 : p.result) == null ? void 0 : f[0]);
|
|
10
11
|
sessionStorage.setItem("systemKey", s && s !== "" ? s : n == null ? void 0 : n.id);
|
|
11
|
-
let
|
|
12
|
-
return
|
|
12
|
+
let c = n;
|
|
13
|
+
return c.plat_id = c.id ?? s, y.setLoginUserInfo(c), y.setSystemKey(s && s !== "" ? s : n == null ? void 0 : n.id), !0;
|
|
13
14
|
} else
|
|
14
15
|
return b.error("输入的密码错误,请重新输入"), !1;
|
|
15
|
-
},
|
|
16
|
+
}, L = S(h), { systemInfo: _, loginUserInfo: l } = A(L), T = async () => (sessionStorage.setItem("loginToken", "111"), !0), j = async () => (sessionStorage.setItem("magicToken", "123456"), !0), E = async (m) => {
|
|
16
17
|
var o, r, i;
|
|
17
|
-
let s = [P(
|
|
18
|
+
let s = [P(m, (o = _.value) == null ? void 0 : o.plat_id), T(), j()];
|
|
18
19
|
const t = await Promise.all(s), e = t == null ? void 0 : t.every((a) => a);
|
|
19
20
|
let u = [
|
|
20
21
|
{
|
|
@@ -33,7 +34,7 @@ const f = S(h), { isDefaultModel: M } = w(), P = async (c, s) => {
|
|
|
33
34
|
];
|
|
34
35
|
try {
|
|
35
36
|
const a = ((r = l == null ? void 0 : l.value) == null ? void 0 : r.plat_id) || ((i = _.value) == null ? void 0 : i.plat_id);
|
|
36
|
-
return await
|
|
37
|
+
return await v({
|
|
37
38
|
platId: parseInt(a),
|
|
38
39
|
changeContents: [{
|
|
39
40
|
tableName: "log",
|
|
@@ -45,5 +46,5 @@ const f = S(h), { isDefaultModel: M } = w(), P = async (c, s) => {
|
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
E as l
|
|
49
50
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as q, resolveComponent as u, createElementBlock as k, openBlock as s, Fragment as y, renderList as C, createBlock as f, createCommentVNode as z, withCtx as o, createVNode as r, createSlots as O, renderSlot as d, mergeProps as P, computed as
|
|
2
|
-
import {
|
|
3
|
-
import { S as $ } from "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as q, resolveComponent as u, createElementBlock as k, openBlock as s, Fragment as y, renderList as C, createBlock as f, createCommentVNode as z, withCtx as o, createVNode as r, createSlots as O, renderSlot as d, mergeProps as P, computed as j, ref as D, normalizeStyle as g } from "vue";
|
|
2
|
+
import { u as G, p as w, s as b, l as H, _ as J } from "./menu-CZNGSy8m.js";
|
|
3
|
+
import { S as $ } from "./index-CbFmq_Ex.js";
|
|
4
|
+
import "./index-BBinXULM.js";
|
|
5
|
+
const K = /* @__PURE__ */ q({
|
|
6
6
|
__name: "menuItem",
|
|
7
7
|
props: {
|
|
8
8
|
menuList: {
|
|
@@ -69,7 +69,7 @@ const J = /* @__PURE__ */ q({
|
|
|
69
69
|
], 64))), 256);
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
}),
|
|
72
|
+
}), N = /* @__PURE__ */ q({
|
|
73
73
|
__name: "index",
|
|
74
74
|
props: {
|
|
75
75
|
menuList: {
|
|
@@ -89,7 +89,7 @@ const J = /* @__PURE__ */ q({
|
|
|
89
89
|
},
|
|
90
90
|
emits: ["clickMenu", "openMenu", "closeMenu", "selectMenu"],
|
|
91
91
|
setup(i, { expose: x, emit: p }) {
|
|
92
|
-
const m =
|
|
92
|
+
const m = G(w), { activeMenuPath: L, activeTopMenuPath: M } = b(m), l = H(w), { routeToChildPath: S } = b(l), c = i, a = p, _ = (n) => {
|
|
93
93
|
a("clickMenu", n);
|
|
94
94
|
}, e = (n) => {
|
|
95
95
|
a("openMenu", n);
|
|
@@ -97,7 +97,7 @@ const J = /* @__PURE__ */ q({
|
|
|
97
97
|
a("selectMenu", n);
|
|
98
98
|
}, h = (n) => {
|
|
99
99
|
a("closeMenu", n);
|
|
100
|
-
}, R =
|
|
100
|
+
}, R = j(() => S.value ? (c == null ? void 0 : c.mode) === "vertical" ? S.value : M.value : (c == null ? void 0 : c.mode) === "vertical" ? L.value : M.value), v = D(null);
|
|
101
101
|
return x({
|
|
102
102
|
handleResize: () => {
|
|
103
103
|
var n;
|
|
@@ -106,7 +106,7 @@ const J = /* @__PURE__ */ q({
|
|
|
106
106
|
openMenuRefByIndex: (n) => {
|
|
107
107
|
v.value && v.value.open(n);
|
|
108
108
|
}
|
|
109
|
-
}), (n,
|
|
109
|
+
}), (n, W) => {
|
|
110
110
|
const T = u("el-sub-menu"), A = u("el-menu-item"), V = u("el-menu");
|
|
111
111
|
return s(), f(V, {
|
|
112
112
|
ref_key: "menuRef",
|
|
@@ -129,7 +129,7 @@ const J = /* @__PURE__ */ q({
|
|
|
129
129
|
t.show && t.children && t.children.length > 0 ? (s(), f(T, {
|
|
130
130
|
index: t.path,
|
|
131
131
|
key: t.path,
|
|
132
|
-
style:
|
|
132
|
+
style: g(t.style)
|
|
133
133
|
}, {
|
|
134
134
|
title: o(() => [
|
|
135
135
|
r($, {
|
|
@@ -139,7 +139,7 @@ const J = /* @__PURE__ */ q({
|
|
|
139
139
|
d(n.$slots, "title", { menu: t }, void 0, !0)
|
|
140
140
|
]),
|
|
141
141
|
default: o(() => [
|
|
142
|
-
r(
|
|
142
|
+
r(K, {
|
|
143
143
|
menuList: t.children,
|
|
144
144
|
onClickMenu: _
|
|
145
145
|
}, O({ _: 2 }, [
|
|
@@ -155,7 +155,7 @@ const J = /* @__PURE__ */ q({
|
|
|
155
155
|
}, 1032, ["index", "style"])) : t.show ? (s(), f(A, {
|
|
156
156
|
index: t.path,
|
|
157
157
|
key: t.path,
|
|
158
|
-
style:
|
|
158
|
+
style: g(t.style),
|
|
159
159
|
onClick: (E) => _(t)
|
|
160
160
|
}, {
|
|
161
161
|
title: o(() => [
|
|
@@ -175,7 +175,7 @@ const J = /* @__PURE__ */ q({
|
|
|
175
175
|
}, 8, ["mode", "default-active", "unique-opened", "collapse"]);
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
}), te = /* @__PURE__ */
|
|
178
|
+
}), te = /* @__PURE__ */ J(N, [["__scopeId", "data-v-1566b485"]]);
|
|
179
179
|
export {
|
|
180
180
|
te as default
|
|
181
181
|
};
|