ss-component-new 1.2.1 → 1.2.2
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.
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { createElementBlock as D, openBlock as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { createElementBlock as D, openBlock as J, createElementVNode as m, renderSlot as L, defineComponent as X, ref as B, resolveComponent as E, createVNode as g, withCtx as y, reactive as H, watch as Y, unref as T, toDisplayString as U, createTextVNode as R } from "vue";
|
|
2
|
+
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
import { d as ie, r as de, g as ue, c as pe, b as fe, e as ye, f as ge, h as Ae } from "./index.vue_vue_type_style_index_1_lang-AXp5rRSK.js";
|
|
4
4
|
import { useRouter as be } from "vue-router";
|
|
5
|
-
import { a as me, u as he, p as ve, s as _e, E, b as we, g as Q } from "./index-CYp77kPp.js";
|
|
5
|
+
import { a as me, u as he, p as ve, s as _e, E as S, b as we, g as Q } from "./index-CYp77kPp.js";
|
|
6
6
|
import { v as Ce } from "./index-wHil9Fox.js";
|
|
7
|
-
const Ie = {}, ke = { class: "left-wrap" },
|
|
8
|
-
function
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const Ie = {}, ke = { class: "left-wrap" }, Ee = { class: "left-bg" };
|
|
8
|
+
function Se(I, K) {
|
|
9
|
+
return J(), D("div", ke, [
|
|
10
|
+
m("div", Ee, [
|
|
11
|
+
L(I.$slots, "img", {}, void 0, !0)
|
|
12
12
|
])
|
|
13
13
|
]);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const Te = /* @__PURE__ */ O(Ie, [["render", Se], ["__scopeId", "data-v-9b7ee6c9"]]), Ke = { class: "right-wrap" }, Ne = { class: "right-title" }, Ue = { class: "right-content" }, Be = { class: "tab-content" }, Le = { class: "tab-tips" }, Me = /* @__PURE__ */ X({
|
|
16
16
|
__name: "index",
|
|
17
17
|
props: {
|
|
18
18
|
tabList: {
|
|
@@ -26,46 +26,46 @@ const Ke = /* @__PURE__ */ J(Ie, [["render", Ee], ["__scopeId", "data-v-9b7ee6c9
|
|
|
26
26
|
},
|
|
27
27
|
emits: ["clickLogin", "handleTabClick"],
|
|
28
28
|
setup(I, { emit: K }) {
|
|
29
|
-
const w =
|
|
29
|
+
const w = B("account"), c = K, v = () => {
|
|
30
30
|
c("clickLogin", w.value);
|
|
31
31
|
}, _ = () => {
|
|
32
32
|
c("handleTabClick", w.value);
|
|
33
33
|
};
|
|
34
|
-
return (u,
|
|
35
|
-
const p =
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
return (u, A) => {
|
|
35
|
+
const p = E("el-button"), h = E("el-tab-pane"), b = E("el-tabs");
|
|
36
|
+
return J(), D("div", Ke, [
|
|
37
|
+
m("div", Ne, [
|
|
38
|
+
L(u.$slots, "title", {}, void 0, !0)
|
|
39
39
|
]),
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
m("div", Ue, [
|
|
41
|
+
g(b, {
|
|
42
42
|
modelValue: w.value,
|
|
43
|
-
"onUpdate:modelValue":
|
|
43
|
+
"onUpdate:modelValue": A[0] || (A[0] = (C) => w.value = C),
|
|
44
44
|
class: "right-tabs",
|
|
45
45
|
onTabClick: _
|
|
46
46
|
}, {
|
|
47
|
-
default:
|
|
48
|
-
|
|
49
|
-
label:
|
|
50
|
-
|
|
47
|
+
default: y(() => [
|
|
48
|
+
g(h, { name: "account" }, {
|
|
49
|
+
label: y(() => [
|
|
50
|
+
L(u.$slots, "tabLabel2", {}, void 0, !0)
|
|
51
51
|
]),
|
|
52
|
-
default:
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
default: y(() => [
|
|
53
|
+
m("div", Be, [
|
|
54
|
+
L(u.$slots, "tabContent2", {}, void 0, !0)
|
|
55
55
|
]),
|
|
56
|
-
|
|
56
|
+
m("div", {
|
|
57
57
|
class: "tab-button special",
|
|
58
58
|
onClick: v
|
|
59
59
|
}, [
|
|
60
|
-
|
|
61
|
-
default:
|
|
62
|
-
|
|
60
|
+
g(p, { loading: I.loading }, {
|
|
61
|
+
default: y(() => [
|
|
62
|
+
L(u.$slots, "tabButton2", {}, void 0, !0)
|
|
63
63
|
]),
|
|
64
64
|
_: 3
|
|
65
65
|
}, 8, ["loading"])
|
|
66
66
|
]),
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
m("div", Le, [
|
|
68
|
+
L(u.$slots, "tabTips2", {}, void 0, !0)
|
|
69
69
|
])
|
|
70
70
|
]),
|
|
71
71
|
_: 3
|
|
@@ -77,7 +77,7 @@ const Ke = /* @__PURE__ */ J(Ie, [["render", Ee], ["__scopeId", "data-v-9b7ee6c9
|
|
|
77
77
|
]);
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
}), Pe = /* @__PURE__ */
|
|
80
|
+
}), Pe = /* @__PURE__ */ O(Me, [["__scopeId", "data-v-3ebcb6e2"]]), xe = { class: "account-wrap" }, Re = /* @__PURE__ */ X({
|
|
81
81
|
__name: "index",
|
|
82
82
|
props: {
|
|
83
83
|
activeTabName: {
|
|
@@ -91,53 +91,53 @@ const Ke = /* @__PURE__ */ J(Ie, [["render", Ee], ["__scopeId", "data-v-9b7ee6c9
|
|
|
91
91
|
},
|
|
92
92
|
emits: ["handleLoginFormChange"],
|
|
93
93
|
setup(I, { emit: K }) {
|
|
94
|
-
const w = I, c =
|
|
94
|
+
const w = I, c = H({
|
|
95
95
|
account: "",
|
|
96
96
|
password: ""
|
|
97
|
-
}), v =
|
|
97
|
+
}), v = H({
|
|
98
98
|
account: [
|
|
99
99
|
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
100
100
|
],
|
|
101
101
|
password: [
|
|
102
102
|
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
103
103
|
]
|
|
104
|
-
}), _ =
|
|
105
|
-
return Y(() => w.isClickLogin, (
|
|
104
|
+
}), _ = B(null), u = K;
|
|
105
|
+
return Y(() => w.isClickLogin, (A) => {
|
|
106
106
|
var p;
|
|
107
|
-
|
|
108
|
-
var
|
|
107
|
+
A && ((p = _.value) == null || p.validate((h) => {
|
|
108
|
+
var b;
|
|
109
109
|
for (let C in c)
|
|
110
|
-
c.hasOwnProperty(C) && (c[C] = (
|
|
111
|
-
u("handleLoginFormChange",
|
|
110
|
+
c.hasOwnProperty(C) && (c[C] = (b = c[C]) == null ? void 0 : b.trim());
|
|
111
|
+
u("handleLoginFormChange", h, h ? c : null);
|
|
112
112
|
}));
|
|
113
113
|
}, {
|
|
114
114
|
immediate: !0
|
|
115
|
-
}), Y(() => w.activeTabName, (
|
|
115
|
+
}), Y(() => w.activeTabName, (A) => {
|
|
116
116
|
var p;
|
|
117
|
-
|
|
118
|
-
}), (
|
|
119
|
-
const
|
|
120
|
-
return
|
|
121
|
-
|
|
117
|
+
A && ((p = _.value) == null || p.resetFields());
|
|
118
|
+
}), (A, p) => {
|
|
119
|
+
const h = E("svg-icon"), b = E("el-input"), C = E("el-form-item"), q = E("el-form");
|
|
120
|
+
return J(), D("div", xe, [
|
|
121
|
+
g(q, {
|
|
122
122
|
model: c,
|
|
123
123
|
rules: v,
|
|
124
124
|
ref_key: "formRef",
|
|
125
125
|
ref: _
|
|
126
126
|
}, {
|
|
127
|
-
default:
|
|
128
|
-
|
|
127
|
+
default: y(() => [
|
|
128
|
+
g(C, {
|
|
129
129
|
label: "",
|
|
130
130
|
prop: "account"
|
|
131
131
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
132
|
+
default: y(() => [
|
|
133
|
+
g(b, {
|
|
134
134
|
modelValue: c.account,
|
|
135
135
|
"onUpdate:modelValue": p[0] || (p[0] = (M) => c.account = M),
|
|
136
136
|
placeholder: "请输入账号",
|
|
137
137
|
clearable: ""
|
|
138
138
|
}, {
|
|
139
|
-
prefix:
|
|
140
|
-
|
|
139
|
+
prefix: y(() => [
|
|
140
|
+
g(h, {
|
|
141
141
|
name: "account",
|
|
142
142
|
style: { width: "15px", height: "15px" }
|
|
143
143
|
})
|
|
@@ -147,12 +147,12 @@ const Ke = /* @__PURE__ */ J(Ie, [["render", Ee], ["__scopeId", "data-v-9b7ee6c9
|
|
|
147
147
|
]),
|
|
148
148
|
_: 1
|
|
149
149
|
}),
|
|
150
|
-
|
|
150
|
+
g(C, {
|
|
151
151
|
label: "",
|
|
152
152
|
prop: "password"
|
|
153
153
|
}, {
|
|
154
|
-
default:
|
|
155
|
-
|
|
154
|
+
default: y(() => [
|
|
155
|
+
g(b, {
|
|
156
156
|
modelValue: c.password,
|
|
157
157
|
"onUpdate:modelValue": p[1] || (p[1] = (M) => c.password = M),
|
|
158
158
|
type: "password",
|
|
@@ -160,8 +160,8 @@ const Ke = /* @__PURE__ */ J(Ie, [["render", Ee], ["__scopeId", "data-v-9b7ee6c9
|
|
|
160
160
|
"show-password": "",
|
|
161
161
|
clearable: ""
|
|
162
162
|
}, {
|
|
163
|
-
prefix:
|
|
164
|
-
|
|
163
|
+
prefix: y(() => [
|
|
164
|
+
g(h, {
|
|
165
165
|
name: "password",
|
|
166
166
|
style: { width: "15px", height: "15px" }
|
|
167
167
|
})
|
|
@@ -177,7 +177,7 @@ const Ke = /* @__PURE__ */ J(Ie, [["render", Ee], ["__scopeId", "data-v-9b7ee6c9
|
|
|
177
177
|
]);
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
}), Qe = /* @__PURE__ */
|
|
180
|
+
}), Qe = /* @__PURE__ */ O(Re, [["__scopeId", "data-v-702adefe"]]), De = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAd9JREFUWEftl71OAkEQx/97QC8XEj+iiTGexo/OnvgE0ChPIIXHQwgP4amxsYZGnkCtpbAxxiyJFEqCJie1yK7ZixhUuNtZYkLUa2/+M7+ZnbnbYTB87P3bIpi1BWCt34UEzpkUF35huWjimpmIlCbp8TMGbA7RX/uus27i2xjI9rgMC+i7jpFvI5EC+XEg2+NlSKTBMKmTuS5QlB2ApgRqz66TVXGDCmmIPhh7RxGl0bXrT15pWNLjVQZkdBuwF0i3qaPAv8StMNvjDwBmdIGQwJyfd+51xn7i4GbekvE7bd8SLQUUOi3fnElR0v3GvEPvaQOpHiIDKe9SlIQlTtq7K41BwexjPosXsQNmkWCCpjYCoqRMtP0HiirY76uQBWQRS1xalhCvnW4aQDmqCmHvR6rQsB/oKIMyClDOd53KoGxTHs8IoGpSKWOgeCI29ZhfaA0EOmpMi26n+beBAIzXkanjGLemDlpkrMbepGmjNMZTFuXY9D0dSF09wE7bhaWrsKD2IV+FgNrNtilwVKCK7zo5SgDqJY0EFJPMeSos1ilAKa++ISBruhoSUNi3Z1hA2+PqyLR/uPRLvm6qJnbqkk9dg0ziEDQV8qJIcE42DRbFnkp3lSZHiRZ8WqXfAFwe+He0YFLSAAAAAElFTkSuQmCC", Je = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAx1JREFUWEfFV01oE1EQnnmpYJRGL/6gYsGLVCoUzMGLNrO1B4sYKooXQT0JWtSK4KEHEVERPCjUHgqCQlFED4raUmP3bS0UhRQKnrTorQdFBBOkBZP97AuJbNo0+2KF7GlJ3sz3zcw3M2+Z6vxwnfHJmkAqlVrT0NCwB8BepdQuAOuJaEMxgK/M/M33/UlmfpvL5cY7Ojp+2gQXSiCdTq/IZrNniOg0gM1WTplniKi/sbHxbjwe/13NpioBrXUcwB0iarUBrnBmipnPiUh6KfslCXiet9/3/af/CFxmppQ6nEgkhiv5qkhAa90N4Ob/AC/5YOZLItK30OciAlrrAwAe24Iz8yul1A0imgPQ5ft+75LpZj4qIi+D/5cRMILLZDJejTXvcRxnwDgdGxtrzufzS9abiKZisVgiKMwyAlrr8wCu2UZvzjHzgIj0mHet9fH59uyvqnrmXhG5/bc0pZehoaFYNBpN27ZaoLY/mPk1EeUAmDnRFEJgZnZ2Nt7Z2ZkpBFA6rLXeB+B5LdEXM/ARwPZa7Jg5KSJvygi4rnuFiC7aOlJKPSCiR4lEYrw4L0aIaKWl/S3HcS6XEfA8b9T3/d2WDoxORhzHmQxk0JSv2cZeKfVunnj7whJ8ALDNwkFBpMy8Q0SOBQhMA9hkYW9sv4jIzoUEvgFYbeHAEOgFcKK9vf1JUf0tAN5b2BaOMPMvETHLrEyEtgQKTmKx2NpSP7uue4GIri6XgG0JTARDInIkkP5hs6ZrILC4BLWIkJlPicigAZyYmIjOzc19twU35yqKsJY2zGazG5PJZNY4c103SUQPayFARIvb0HYQMfOoiBwMpL8PwEkiMkPMkAl9Kg4i21HMzGdF5F4JxfO8TwA+Axg33RGGzsyVR3GxnUKXETM3iUih5lrrFiK6T0TdRPQCwCoLApWXkTG0WceRSKS1ra1tugSUSqWa5397RkRbwsBD13ExqqoXEqXUYD6fvx6JRLYCOEREXQDWWYCb9q1+IQkIq35XsoC46ncpDWSiftfyEom6fpgEhVW3TzMbdS/nTOi34XKc29j+AXyzojCfNKqJAAAAAElFTkSuQmCC", Oe = { class: "card-wrap" }, Ve = { class: "card-icon card" }, Xe = { class: "card-input" }, qe = { class: "card-icon info" }, Ge = /* @__PURE__ */ X({
|
|
181
181
|
__name: "index",
|
|
182
182
|
props: {
|
|
183
183
|
activeTabName: {
|
|
@@ -187,38 +187,38 @@ const Ke = /* @__PURE__ */ J(Ie, [["render", Ee], ["__scopeId", "data-v-9b7ee6c9
|
|
|
187
187
|
},
|
|
188
188
|
emits: ["handleCardInput"],
|
|
189
189
|
setup(I, { emit: K }) {
|
|
190
|
-
const w = I, c =
|
|
190
|
+
const w = I, c = B(""), v = K, _ = (u) => {
|
|
191
191
|
v("handleCardInput", u == null ? void 0 : u.trim());
|
|
192
192
|
};
|
|
193
193
|
return Y(() => w.activeTabName, (u) => {
|
|
194
194
|
u && (c.value = "");
|
|
195
|
-
}), (u,
|
|
196
|
-
const p =
|
|
197
|
-
return
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
src:
|
|
195
|
+
}), (u, A) => {
|
|
196
|
+
const p = E("el-image"), h = E("el-input");
|
|
197
|
+
return J(), D("div", Oe, [
|
|
198
|
+
m("div", Ve, [
|
|
199
|
+
g(p, {
|
|
200
|
+
src: T(De),
|
|
201
201
|
fit: "contain"
|
|
202
202
|
}, null, 8, ["src"])
|
|
203
203
|
]),
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
m("div", Xe, [
|
|
205
|
+
g(h, {
|
|
206
206
|
modelValue: c.value,
|
|
207
|
-
"onUpdate:modelValue":
|
|
207
|
+
"onUpdate:modelValue": A[0] || (A[0] = (b) => c.value = b),
|
|
208
208
|
onChange: _,
|
|
209
209
|
clearable: ""
|
|
210
210
|
}, null, 8, ["modelValue"])
|
|
211
211
|
]),
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
src:
|
|
212
|
+
m("div", qe, [
|
|
213
|
+
g(p, {
|
|
214
|
+
src: T(Je),
|
|
215
215
|
fit: "contain"
|
|
216
216
|
}, null, 8, ["src"])
|
|
217
217
|
])
|
|
218
218
|
]);
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
-
}), Ze = /* @__PURE__ */
|
|
221
|
+
}), Ze = /* @__PURE__ */ O(Ge, [["__scopeId", "data-v-cd989d3c"]]);
|
|
222
222
|
function Ye() {
|
|
223
223
|
return me({
|
|
224
224
|
url: "/api/sysAuth/login",
|
|
@@ -232,11 +232,11 @@ function Ye() {
|
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
const Fe = { class: "login-wrap" },
|
|
235
|
+
const Fe = { class: "login-wrap" }, je = { class: "login-body" }, We = { class: "login-body-item left" }, ze = { class: "title" }, He = { class: "login-body-item right" }, $e = /* @__PURE__ */ X({
|
|
236
236
|
__name: "index",
|
|
237
237
|
emits: ["change"],
|
|
238
238
|
setup(I, { emit: K }) {
|
|
239
|
-
const w = be(), c = he(ve), { systemKey: v, systemInfo: _, loginUserInfo: u } = _e(c),
|
|
239
|
+
const w = be(), c = he(ve), { systemKey: v, systemInfo: _, loginUserInfo: u } = _e(c), A = B({
|
|
240
240
|
// sysCTitle: 'INSOFWORKS',
|
|
241
241
|
sysCTitle: "",
|
|
242
242
|
sysETitle: "",
|
|
@@ -254,17 +254,17 @@ const Fe = { class: "login-wrap" }, We = { class: "login-body" }, je = { class:
|
|
|
254
254
|
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
255
255
|
}
|
|
256
256
|
]
|
|
257
|
-
}), p =
|
|
258
|
-
|
|
257
|
+
}), p = B(""), h = B(!1), b = B(!1), C = () => {
|
|
258
|
+
h.value = !0;
|
|
259
259
|
}, q = (a) => {
|
|
260
|
-
|
|
260
|
+
h.value = !1, j(a);
|
|
261
261
|
}, M = (a, t) => {
|
|
262
|
-
|
|
262
|
+
h.value = !1, a && j(t);
|
|
263
263
|
}, G = (a) => ue(a), F = (a) => {
|
|
264
264
|
let t;
|
|
265
265
|
const s = pe(a), n = fe(s), l = ye(n), d = ge(l, "parentPath");
|
|
266
266
|
return t = Ae(d), t;
|
|
267
|
-
},
|
|
267
|
+
}, $ = (a, t) => {
|
|
268
268
|
var n, l, d;
|
|
269
269
|
const s = (t == null ? void 0 : t.userRoles) ?? (t == null ? void 0 : t.角色名称);
|
|
270
270
|
try {
|
|
@@ -272,23 +272,23 @@ const Fe = { class: "login-wrap" }, We = { class: "login-body" }, je = { class:
|
|
|
272
272
|
return "superAdmin";
|
|
273
273
|
if (Array.isArray(s)) {
|
|
274
274
|
if ((s == null ? void 0 : s.length) === 1) {
|
|
275
|
-
const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === (s == null ? void 0 : s[0]) || e.角色名称 === (s == null ? void 0 : s[0])),
|
|
275
|
+
const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === (s == null ? void 0 : s[0]) || e.角色名称 === (s == null ? void 0 : s[0])), f = G(o), r = F(o == null ? void 0 : o[f]);
|
|
276
276
|
return o && r && Array.isArray(r) ? o ? r == null ? void 0 : r.flatMap((e) => e.checkedButtons) : [] : [];
|
|
277
277
|
}
|
|
278
278
|
if ((s == null ? void 0 : s.length) > 1) {
|
|
279
279
|
let o = a == null ? void 0 : a.filter((e) => s == null ? void 0 : s.includes(e.roleName || (e == null ? void 0 : e.角色名称)));
|
|
280
|
-
const
|
|
281
|
-
return (r == null ? void 0 : r.length) === 0 ?
|
|
280
|
+
const f = G(o == null ? void 0 : o[0]), r = (d = (l = o == null ? void 0 : o.map((e) => Array.isArray(e == null ? void 0 : e[f]) ? e == null ? void 0 : e[f] : [])) == null ? void 0 : l.flat()) == null ? void 0 : d.flatMap((e) => e.checkedButtons);
|
|
281
|
+
return (r == null ? void 0 : r.length) === 0 ? S.error("该用户没有权限,请联系管理员") : new Set(r);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
if (typeof s == "string") {
|
|
285
|
-
const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === s || (e == null ? void 0 : e.角色名称) === s),
|
|
285
|
+
const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === s || (e == null ? void 0 : e.角色名称) === s), f = G(o), r = F(o == null ? void 0 : o[f]);
|
|
286
286
|
return o && r && Array.isArray(r) ? o ? r == null ? void 0 : r.flatMap((e) => e.checkedButtons) : [] : [];
|
|
287
287
|
}
|
|
288
288
|
} catch (o) {
|
|
289
289
|
throw new Error(o);
|
|
290
290
|
}
|
|
291
|
-
},
|
|
291
|
+
}, ee = async (a) => {
|
|
292
292
|
var t, s;
|
|
293
293
|
try {
|
|
294
294
|
let n = [];
|
|
@@ -303,18 +303,18 @@ const Fe = { class: "login-wrap" }, We = { class: "login-body" }, je = { class:
|
|
|
303
303
|
});
|
|
304
304
|
if (l.data.code === 200) {
|
|
305
305
|
const d = (s = (t = l.data) == null ? void 0 : t.result) == null ? void 0 : s.map((o) => o.value.tableData);
|
|
306
|
-
n =
|
|
306
|
+
n = $(d, a);
|
|
307
307
|
}
|
|
308
308
|
if (n)
|
|
309
309
|
return Array.isArray(n) ? Array.from(n) : n;
|
|
310
|
-
throw
|
|
310
|
+
throw S.error("获取用户权限失败,请联系管理员"), new Error("获取用户权限失败,请联系管理员");
|
|
311
311
|
} catch (n) {
|
|
312
|
-
throw
|
|
312
|
+
throw S.error("获取用户权限失败,请联系管理员"), new Error(n);
|
|
313
313
|
}
|
|
314
|
-
},
|
|
315
|
-
var t, s, n, l, d, o,
|
|
314
|
+
}, ae = async (a) => {
|
|
315
|
+
var t, s, n, l, d, o, f;
|
|
316
316
|
try {
|
|
317
|
-
let r = [], e,
|
|
317
|
+
let r = [], e, N, P;
|
|
318
318
|
v.value ? P = {
|
|
319
319
|
// pageKey: '/系统管理/用户管理',
|
|
320
320
|
pageKey: "系统管理/用户管理",
|
|
@@ -326,7 +326,7 @@ const Fe = { class: "login-wrap" }, We = { class: "login-body" }, je = { class:
|
|
|
326
326
|
pageKey: "系统管理/用户管理",
|
|
327
327
|
type: "data"
|
|
328
328
|
};
|
|
329
|
-
const
|
|
329
|
+
const z = await Q({
|
|
330
330
|
key: P
|
|
331
331
|
});
|
|
332
332
|
let V;
|
|
@@ -340,7 +340,7 @@ const Fe = { class: "login-wrap" }, We = { class: "login-body" }, je = { class:
|
|
|
340
340
|
layer: "superAdmin",
|
|
341
341
|
systemKey: sessionStorage.getItem("systemKey")
|
|
342
342
|
}
|
|
343
|
-
}),
|
|
343
|
+
}), z.data.code === 200 && V.data.code === 200) {
|
|
344
344
|
const ce = (s = (t = V.data) == null ? void 0 : t.result) == null ? void 0 : s.map((i) => {
|
|
345
345
|
var k, x;
|
|
346
346
|
return {
|
|
@@ -349,7 +349,7 @@ const Fe = { class: "login-wrap" }, We = { class: "login-body" }, je = { class:
|
|
|
349
349
|
systemKey: (x = i == null ? void 0 : i.key) == null ? void 0 : x.systemKey,
|
|
350
350
|
id: i.id
|
|
351
351
|
};
|
|
352
|
-
}), le = (l = (n =
|
|
352
|
+
}), le = (l = (n = z.data) == null ? void 0 : n.result) == null ? void 0 : l.map((i) => {
|
|
353
353
|
var k, x;
|
|
354
354
|
return {
|
|
355
355
|
...i.value.tableData,
|
|
@@ -360,37 +360,37 @@ const Fe = { class: "login-wrap" }, We = { class: "login-body" }, je = { class:
|
|
|
360
360
|
}), Z = [...ce, ...le];
|
|
361
361
|
if (e = Z == null ? void 0 : Z.find((i) => (i == null ? void 0 : i.account) === (a == null ? void 0 : a.account) || (i == null ? void 0 : i.账号) === (a == null ? void 0 : a.account)), e) {
|
|
362
362
|
if (((d = e.layer) == null ? void 0 : d.toUpperCase()) !== "SUPERADMIN" && (!(e != null && e.状态) || (e == null ? void 0 : e.状态) === "禁用" || (e == null ? void 0 : e.status) === "禁用")) {
|
|
363
|
-
|
|
363
|
+
S.error("该用户已被禁用,请联系管理员"), b.value = !1;
|
|
364
364
|
return;
|
|
365
365
|
}
|
|
366
|
-
r = await
|
|
366
|
+
r = await ee(e);
|
|
367
367
|
const { privateKey: i } = await c.getModelSecretAsync(e);
|
|
368
368
|
let k;
|
|
369
|
-
if (e.password ? k = ((o = e.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? e.password : ie(e.password, i) : k = ((
|
|
370
|
-
|
|
369
|
+
if (e.password ? k = ((o = e.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? e.password : ie(e.password, i) : k = ((f = e.layer) == null ? void 0 : f.toUpperCase()) === "SUPERADMIN" ? e.password : de, (a == null ? void 0 : a.password) === k)
|
|
370
|
+
N = e;
|
|
371
371
|
else
|
|
372
|
-
throw
|
|
372
|
+
throw N = null, S.error("输入的密码错误,请重新输入"), b.value = !1, new Error("输入的密码错误,请重新输入");
|
|
373
373
|
} else
|
|
374
|
-
return
|
|
374
|
+
return S.error("该用户不存在,请重新输入");
|
|
375
375
|
}
|
|
376
|
-
return
|
|
377
|
-
matchedUser:
|
|
376
|
+
return N && r ? {
|
|
377
|
+
matchedUser: N,
|
|
378
378
|
userAuthority: r
|
|
379
379
|
} : void 0;
|
|
380
380
|
} catch (r) {
|
|
381
381
|
throw new Error(r);
|
|
382
382
|
}
|
|
383
|
-
},
|
|
383
|
+
}, te = async (a) => {
|
|
384
384
|
var s, n, l;
|
|
385
|
-
const t = await
|
|
385
|
+
const t = await ae(a);
|
|
386
386
|
if (t != null && t.matchedUser) {
|
|
387
387
|
c.setLoginUserInfo(t.matchedUser), sessionStorage.setItem("authority", JSON.stringify(t.userAuthority));
|
|
388
388
|
const d = ((n = (s = t.matchedUser) == null ? void 0 : s.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
|
|
389
|
-
return sessionStorage.setItem("isSuperAdmin", JSON.stringify(d)), sessionStorage.setItem("systemKey", v.value ? v.value : (l = t.matchedUser) == null ? void 0 : l.systemKey), await
|
|
389
|
+
return sessionStorage.setItem("isSuperAdmin", JSON.stringify(d)), sessionStorage.setItem("systemKey", v.value ? v.value : (l = t.matchedUser) == null ? void 0 : l.systemKey), await se(t.matchedUser), !0;
|
|
390
390
|
} else
|
|
391
|
-
throw
|
|
392
|
-
},
|
|
393
|
-
var s, n, l, d, o,
|
|
391
|
+
throw b.value = !1, new Error("该用户数据处理失败,请联系管理员");
|
|
392
|
+
}, se = async (a) => {
|
|
393
|
+
var s, n, l, d, o, f, r, e, N;
|
|
394
394
|
const t = await Q({
|
|
395
395
|
key: {
|
|
396
396
|
// pageKey: '/user',
|
|
@@ -400,20 +400,20 @@ const Fe = { class: "login-wrap" }, We = { class: "login-body" }, je = { class:
|
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
402
|
if (t.data.code === 200 && (s = t.data) != null && s.result && Array.isArray((n = t.data) == null ? void 0 : n.result) && ((d = (l = t.data) == null ? void 0 : l.result) == null ? void 0 : d.length) > 0) {
|
|
403
|
-
const P = (
|
|
403
|
+
const P = (N = (e = (r = (f = (o = t.data) == null ? void 0 : o.result) == null ? void 0 : f[0]) == null ? void 0 : r.value) == null ? void 0 : e.tableData) == null ? void 0 : N.account;
|
|
404
404
|
c.setSuperAdminInfo({
|
|
405
405
|
account: P
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
|
-
},
|
|
408
|
+
}, ne = async () => {
|
|
409
409
|
var a, t, s;
|
|
410
410
|
try {
|
|
411
411
|
const n = await Ye();
|
|
412
412
|
return ((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("loginToken", (s = (t = n.data) == null ? void 0 : t.result) == null ? void 0 : s.accessToken), !0) : !1;
|
|
413
413
|
} catch (n) {
|
|
414
|
-
|
|
414
|
+
S.error(n);
|
|
415
415
|
}
|
|
416
|
-
},
|
|
416
|
+
}, oe = async () => {
|
|
417
417
|
var a, t, s;
|
|
418
418
|
try {
|
|
419
419
|
const n = await we.post("http://139.196.154.85:20024/api/sysAuth/login", {
|
|
@@ -424,73 +424,73 @@ const Fe = { class: "login-wrap" }, We = { class: "login-body" }, je = { class:
|
|
|
424
424
|
});
|
|
425
425
|
return ((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("magicToken", (s = (t = n.data) == null ? void 0 : t.result) == null ? void 0 : s.accessToken), !0) : !1;
|
|
426
426
|
} catch (n) {
|
|
427
|
-
|
|
427
|
+
S.error(n);
|
|
428
428
|
}
|
|
429
|
-
},
|
|
430
|
-
var l, d, o,
|
|
431
|
-
|
|
432
|
-
let t = [
|
|
429
|
+
}, j = async (a) => {
|
|
430
|
+
var l, d, o, f;
|
|
431
|
+
b.value = !0;
|
|
432
|
+
let t = [te(a), ne(), oe()];
|
|
433
433
|
const s = await Promise.all(t);
|
|
434
434
|
(s == null ? void 0 : s.every((r) => r)) && (await Ce(), w.push("/"), c.setLogRecordAsync({
|
|
435
435
|
type: "登录",
|
|
436
436
|
data: {
|
|
437
437
|
account: ((l = u.value) == null ? void 0 : l.account) ?? ((d = u.value) == null ? void 0 : d.账号),
|
|
438
|
-
userName: ((o = u.value) == null ? void 0 : o.姓名) || ((
|
|
438
|
+
userName: ((o = u.value) == null ? void 0 : o.姓名) || ((f = u.value) == null ? void 0 : f.userName) || "未知"
|
|
439
439
|
}
|
|
440
440
|
}, "/login", "login"));
|
|
441
|
-
},
|
|
442
|
-
p.value = a,
|
|
443
|
-
},
|
|
444
|
-
return (a, t) => (
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
img:
|
|
449
|
-
var s, n, l, d;
|
|
441
|
+
}, re = (a) => {
|
|
442
|
+
p.value = a, h.value = !1, b.value = !1;
|
|
443
|
+
}, W = (a) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);
|
|
444
|
+
return (a, t) => (J(), D("div", Fe, [
|
|
445
|
+
m("div", je, [
|
|
446
|
+
m("div", We, [
|
|
447
|
+
g(Te, { class: "login-left-bg" }, {
|
|
448
|
+
img: y(() => {
|
|
449
|
+
var s, n, l, d, o, f;
|
|
450
450
|
return [
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
451
|
+
m("div", ze, [
|
|
452
|
+
m("div", null, U((s = T(_)) != null && s.EnglishName && W((n = T(_)) == null ? void 0 : n.EnglishName) ? (l = T(_)) == null ? void 0 : l.EnglishName : "SFRTubeBending"), 1),
|
|
453
|
+
m("div", null, U((d = T(_)) != null && d.chineseName && W((o = T(_)) == null ? void 0 : o.chineseName) ? (f = T(_)) == null ? void 0 : f.chineseName : "机器人弯管离线编程系统"), 1)
|
|
454
454
|
]),
|
|
455
|
-
t[0] || (t[0] =
|
|
455
|
+
t[0] || (t[0] = m("div", { class: "divide-line" }, null, -1))
|
|
456
456
|
];
|
|
457
457
|
}),
|
|
458
458
|
_: 1
|
|
459
459
|
})
|
|
460
460
|
]),
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
loading:
|
|
461
|
+
m("div", He, [
|
|
462
|
+
g(Pe, {
|
|
463
|
+
loading: b.value,
|
|
464
464
|
onClickLogin: C,
|
|
465
|
-
onHandleTabClick:
|
|
465
|
+
onHandleTabClick: re
|
|
466
466
|
}, {
|
|
467
|
-
title:
|
|
468
|
-
R(
|
|
467
|
+
title: y(() => [
|
|
468
|
+
R(U(A.value.loginTitle), 1)
|
|
469
469
|
]),
|
|
470
|
-
tabLabel1:
|
|
471
|
-
R(
|
|
470
|
+
tabLabel1: y(() => [
|
|
471
|
+
R(U(A.value.tabs[0].name), 1)
|
|
472
472
|
]),
|
|
473
|
-
tabContent1:
|
|
474
|
-
|
|
473
|
+
tabContent1: y(() => [
|
|
474
|
+
g(Ze, {
|
|
475
475
|
activeTabName: p.value,
|
|
476
476
|
onHandleCardInput: q
|
|
477
477
|
}, null, 8, ["activeTabName"])
|
|
478
478
|
]),
|
|
479
|
-
tabButton1:
|
|
480
|
-
R(
|
|
479
|
+
tabButton1: y(() => [
|
|
480
|
+
R(U(A.value.tabs[0].btnLabel), 1)
|
|
481
481
|
]),
|
|
482
|
-
tabLabel2:
|
|
483
|
-
R(
|
|
482
|
+
tabLabel2: y(() => [
|
|
483
|
+
R(U(A.value.tabs[1].name), 1)
|
|
484
484
|
]),
|
|
485
|
-
tabContent2:
|
|
486
|
-
|
|
485
|
+
tabContent2: y(() => [
|
|
486
|
+
g(Qe, {
|
|
487
487
|
activeTabName: p.value,
|
|
488
|
-
isClickLogin:
|
|
488
|
+
isClickLogin: h.value,
|
|
489
489
|
onHandleLoginFormChange: M
|
|
490
490
|
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
491
491
|
]),
|
|
492
|
-
tabButton2:
|
|
493
|
-
R(
|
|
492
|
+
tabButton2: y(() => [
|
|
493
|
+
R(U(A.value.tabs[1].btnLabel), 1)
|
|
494
494
|
]),
|
|
495
495
|
_: 1
|
|
496
496
|
}, 8, ["loading"])
|
|
@@ -498,7 +498,7 @@ const Fe = { class: "login-wrap" }, We = { class: "login-body" }, je = { class:
|
|
|
498
498
|
])
|
|
499
499
|
]));
|
|
500
500
|
}
|
|
501
|
-
}), ra = /* @__PURE__ */
|
|
501
|
+
}), ra = /* @__PURE__ */ O($e, [["__scopeId", "data-v-ec7d598f"]]);
|
|
502
502
|
export {
|
|
503
503
|
ra as default
|
|
504
504
|
};
|