Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
薪
薪瑞通-前端
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
许珑标
薪瑞通-前端
Commits
ec53d3b8
Commit
ec53d3b8
authored
Mar 04, 2025
by
许珑标
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工立方定制功能
parent
630c9c6a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
src/api/login.js
src/api/login.js
+1
-1
src/layout/components/Sidebar/Logo.vue
src/layout/components/Sidebar/Logo.vue
+2
-2
src/views/index.vue
src/views/index.vue
+2
-2
src/views/login.vue
src/views/login.vue
+7
-7
No files found.
src/api/login.js
View file @
ec53d3b8
...
...
@@ -10,7 +10,7 @@ export function login(username, password, code, smsCode, uuid) {
uuid
}
return
request
({
url
:
'
/login
BySmsCode
'
,
url
:
'
/login
'
,
headers
:
{
isToken
:
false
},
...
...
src/layout/components/Sidebar/Logo.vue
View file @
ec53d3b8
...
...
@@ -40,7 +40,7 @@ export default {
},
data
()
{
return
{
title
:
'
薪瑞通
'
,
title
:
'
工立方
'
,
logo
:
logoImg
}
}
...
...
@@ -72,7 +72,7 @@ export default {
&
.sidebar-logo
{
width
:
52px
;
height
:
32px
;
height
:
auto
;
vertical-align
:
middle
;
margin-right
:
12px
;
}
...
...
src/views/index.vue
View file @
ec53d3b8
...
...
@@ -3,8 +3,8 @@
<div
class=
"home"
>
<el-card
class=
"margin-bottom-small"
>
<div>
<!--
<img
src=
"@/assets/images/welcome.png"
alt=
"welcome"
/>
--
>
<img
src=
"@/assets/images/glf-logo.png"
alt=
"welcome"
/
>
<img
src=
"@/assets/images/index-barder.png"
alt=
"welcome"
/
>
<!--
<img
src=
"@/assets/images/glf-logo.png"
alt=
"welcome"
/>
--
>
</div>
</el-card>
</div>
...
...
src/views/login.vue
View file @
ec53d3b8
...
...
@@ -11,13 +11,13 @@
</el-form-item>
<el-form-item
prop=
"password"
>
<el-input
v-model=
"loginForm.password"
type=
"password"
auto-complete=
"off"
placeholder=
"密码"
@
keyup.enter.native=
"
getSmsCode
"
>
@
keyup.enter.native=
"
handleLogin
"
>
<svg-icon
slot=
"prefix"
icon-class=
"password"
class=
"el-input__icon input-icon"
/>
</el-input>
</el-form-item>
<el-form-item
prop=
"code"
v-if=
"captchaEnabled"
>
<el-input
v-model=
"loginForm.code"
auto-complete=
"off"
placeholder=
"数字验证码"
style=
"width: 63%;"
@
keyup.enter.native=
"
getSmsCode
"
>
@
keyup.enter.native=
"
handleLogin
"
>
<svg-icon
slot=
"prefix"
icon-class=
"validCode"
class=
"el-input__icon input-icon"
/>
</el-input>
<div
class=
"login-code"
>
...
...
@@ -37,7 +37,7 @@
<el-checkbox
v-model=
"loginForm.rememberMe"
style=
"margin:12px 0px 25px 0px;"
>
记住密码
</el-checkbox>
<el-form-item
style=
"width:100%;"
>
<el-button
:loading=
"loading"
size=
"medium"
type=
"primary"
style=
"width:100%;"
@
click.native.prevent=
"
getSmsCode
"
>
@
click.native.prevent=
"
handleLogin
"
>
<span
v-if=
"!loading"
>
登 录
</span>
<span
v-else
>
登 录 中...
</span>
</el-button>
...
...
@@ -77,8 +77,8 @@
</div>
<!-- 底部 -->
<div
class=
"el-login-footer"
>
<a
class=
"text-color"
href=
"https://beian.miit.gov.cn/#/Integrated/index"
target=
"_blank"
>
<span
style=
"color: #00afff"
>
备案号:冀ICP备2024097706号-1
</span></a
>
<!--
<a
class=
"text-color"
href=
"https://beian.miit.gov.cn/#/Integrated/index"
target=
"_blank"
>
<span-->
<!-- style="color: #00afff">备案号:冀ICP备2024097706号-1
</span></a>
--
>
</div>
<!-- 重新获取验证码弹窗 -->
<el-dialog
title=
"请选完成数字验证"
:visible.sync=
"dialogVisible"
width=
"30%"
center
top=
"26vh !important"
>
...
...
@@ -230,7 +230,7 @@ export default {
// this.loginRules.smsCode = [{ required: true, trigger: "change", message: "请输入短信验证码" }]
// this.$refs.loginForm.validate(valid => {
// if (valid) {
this
.
loginForm
.
smsCode
=
code
//
this.loginForm.smsCode = code
this
.
loading
=
true
;
if
(
this
.
loginForm
.
rememberMe
)
{
Cookies
.
set
(
"
username
"
,
this
.
loginForm
.
username
,
{
expires
:
30
});
...
...
@@ -375,7 +375,7 @@ export default {
left
:
8vw
;
top
:
9vh
;
width
:
200px
;
height
:
45px
;
height
:
auto
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment