Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
refined-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
refined-platform
Commits
9ce7f426
Commit
9ce7f426
authored
Aug 11, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tui
parent
16729f38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
refined-manager-ui/admin/src/views/login/login.vue
refined-manager-ui/admin/src/views/login/login.vue
+22
-9
No files found.
refined-manager-ui/admin/src/views/login/login.vue
View file @
9ce7f426
...
...
@@ -3,23 +3,33 @@
<
template
>
<div
class=
"page page-login flex flex-v"
>
<div
class=
"form-wrap flex flex-1"
>
<el-form
@
submit.prevent=
'onSubmit'
ref=
"form"
:model=
"form"
label-width=
"80px"
size=
"small"
>
<h1>
智慧大厅精细化管理平台
</h1>
<el-form
@
submit.prevent=
"onSubmit"
ref=
"form"
:model=
"form"
label-width=
"80px"
size=
"small"
>
<h1>
{{
title
}}
</h1>
<el-form-item
label=
"用户名"
>
<el-input
v-model=
"form.loginName"
></el-input>
</el-form-item>
<el-form-item
label=
"密码"
>
<el-input
v-model=
"form.password"
type=
'password'
></el-input>
<el-input
v-model=
"form.password"
type=
"password"
></el-input>
</el-form-item>
<el-form-item
size=
"large"
>
<el-button
type=
"primary"
native-type=
'submit'
:loading=
'loading'
@
click=
'onSubmit'
>
登录
</el-button>
<el-button
type=
"primary"
native-type=
"submit"
:loading=
"loading"
@
click=
"onSubmit"
>
登录
</el-button
>
</el-form-item>
</el-form>
</div>
<div
class=
"footer"
>
</div>
<div
class=
"footer"
></div>
</div>
</
template
>
...
...
@@ -41,6 +51,9 @@ export default {
// });
// window.location.href=process.env.VUE_APP_PORTAL_URL=='undefined'?'http://192.168.0.98:11072':process.env.VUE_APP_PORTAL_URL
localStorage
.
getItem
(
"
sysName
"
)
?
(
this
.
title
=
localStorage
.
getItem
(
"
sysName
"
))
:
(
this
.
title
=
"
智慧大厅精细化管理平台
"
);
},
methods
:
{
login
()
{
...
...
@@ -51,7 +64,7 @@ export default {
},
loginSuccess
({
data
})
{
console
.
log
(
"
userData
"
,
data
);
console
.
log
(
"
redirect
"
,
this
.
redirect
)
console
.
log
(
"
redirect
"
,
this
.
redirect
);
this
.
$store
.
commit
(
"
setUserData
"
,
data
);
this
.
$router
.
replace
({
path
:
this
.
redirect
,
...
...
@@ -92,6 +105,7 @@ export default {
loginName
:
""
,
password
:
""
,
},
title
:
""
,
};
},
};
...
...
@@ -140,4 +154,3 @@ export default {
}
}
</
style
>
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