Commit 4635c818 authored by 范骋宇's avatar 范骋宇 🇺🇸

登录页面调整

parent 4b449d3f
This diff is collapsed.
This diff is collapsed.
...@@ -109,7 +109,12 @@ const actions = { ...@@ -109,7 +109,12 @@ const actions = {
localStorage.setItem('user', userVO.name) localStorage.setItem('user', userVO.name)
localStorage.setItem('fullName', userVO.nickName) localStorage.setItem('fullName', userVO.nickName)
localStorage.setItem('userId', userVO.id) localStorage.setItem('userId', userVO.id)
localStorage.setItem('uploadUrl', response.items.prefsSite && response.items.prefsSite.endPoint ? response.items.prefsSite.endPoint : '') let uploadUrl = response.items.prefsSite && response.items.prefsSite.endPoint ? response.items.prefsSite.endPoint : ''
if (process.env.NODE_ENV === 'development') {
// eslint-disable-next-line no-undef
uploadUrl = VUE_APP_BASE_API
}
localStorage.setItem('uploadUrl', uploadUrl)
commit('SET_USER_ID', userVO.id) commit('SET_USER_ID', userVO.id)
localStorage.setItem('token', token) localStorage.setItem('token', token)
showMessage('登录成功!', 'success') showMessage('登录成功!', 'success')
......
...@@ -34,32 +34,16 @@ ...@@ -34,32 +34,16 @@
<img src="/images/li.gif" style="position: fixed;width: 100%;bottom: 0;z-index:-1;"> <img src="/images/li.gif" style="position: fixed;width: 100%;bottom: 0;z-index:-1;">
</div> --> </div> -->
<div class="login-background"> <div class="login-background">
<img class="login-pic" src="/images/login-pic.png" alt=""> <div class="logo_box">
<div class="login-box"> <img class="logo_img" src="/images/logo.png" alt="">
<div class="login-box-header"> <div class="logo_text">
<div v-if="supportedLanguages && supportedLanguages.length>1" class="lang-box"> <div class="logo_text_top">多传感器联合标定与校准系统</div>
<el-dropdown <div class="logo_text_bottom">数据库管理软件</div>
id="plat-setting-container"
class="right-menu-item"
trigger="click"
>
<div class="plat-setting-wrapper">
<svg-icon class-name="plat-setting-icon" icon-class="i18n" />
</div> </div>
<el-dropdown-menu slot="dropdown" class="setting-dropdown" popper-class="dropdown-zindex">
<el-dropdown-item
v-for="menu in supportedLanguages"
:key="menu.id"
@click.native="changeLang(menu.langCode)"
>
<span style="display: block">{{ menu.langName }}</span>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div> </div>
</div> <div class="login-round">
<div class="login-box-body"> <div class="login-box">
<span class="welcom_login">欢迎登录</span>
<el-form ref="loginForm" :model="loginForm" :rules="loginFormRules" class="login-form"> <el-form ref="loginForm" :model="loginForm" :rules="loginFormRules" class="login-form">
<el-form-item prop="account"> <el-form-item prop="account">
<el-input ref="account" v-model="loginForm.account" :placeholder="$t('用户名')"> <el-input ref="account" v-model="loginForm.account" :placeholder="$t('用户名')">
...@@ -81,9 +65,6 @@ ...@@ -81,9 +65,6 @@
<!-- <span>忘记密码</span> --> <!-- <span>忘记密码</span> -->
</div> </div>
</div> </div>
<div class="login-box-foot">
Copyright 2021 yond-e , Inc. All rights reserved
</div>
</div> </div>
<dee-dialog <dee-dialog
:title="$t('修改密码')" :title="$t('修改密码')"
...@@ -217,6 +198,9 @@ export default { ...@@ -217,6 +198,9 @@ export default {
} }
}, },
getMenusPerm() { getMenusPerm() {
if (!this.activeWorkSpace) {
return this.$utils.showMessageWarning('您没有访问数据中心的权限,请联系管理员!')
}
getPageByWorkspaceId({ id: this.activeWorkSpace.id }).then(res => { getPageByWorkspaceId({ id: this.activeWorkSpace.id }).then(res => {
const allApps = res.items.sourceDxAppWorkLink ? res.items.sourceDxAppWorkLink.map(r => { const allApps = res.items.sourceDxAppWorkLink ? res.items.sourceDxAppWorkLink.map(r => {
return r.target return r.target
...@@ -414,150 +398,112 @@ export default { ...@@ -414,150 +398,112 @@ export default {
<style lang="scss"> <style lang="scss">
.login-background{ .login-background{
position: relative; position: relative;
.login-pic{
position: absolute;
left:8%;
top: 0;
bottom: 0;
display: block;
width: 47%;
// height: 628px;
margin: auto;
}
.login-box{
width: 400px;
height: 430px;
border-radius: 10px;
background: #FFF;
position: absolute;
left: 52%;
top: 0;
bottom: 0;
/* margin-left: -200px; */
/* margin-top: -280px; */
margin: auto 0 auto 0;
.password-box{
display: flex; display: flex;
padding: 30px 0; justify-content: center;
justify-content: space-between;
font-size: 14px;
color: #606266;
cursor: pointer;
}
.login-box-header{
height: 62px;
width: 100%; width: 100%;
background: url('/images/login-header.png'); height: 100%;
position: absolute; // background-image: url('/images/river.png'), linear-gradient(90deg, #324A8D 20%, #4BAE47 100%);
background-image: url('/images/bg.png');
background-size: cover;
background-repeat: no-repeat;
position: fixed;
background-position: bottom;
top: 0; top: 0;
padding: 8px; bottom: 0;
box-sizing: border-box; left: 0;
.lang-box{ right: 0;
.logo_box{
display: flex; display: flex;
padding:10px 8px;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: center;
#plat-setting-container{ position:absolute;
.plat-setting-wrapper{ left:2vw;
.plat-setting-icon{ top:2vh;
font-size: 26px; .logo_img{
} width:5vw;
} }
} .logo_text{
} .logo_text_top{
font-size: 18px;
} }
.login-box-body{ .logo_text_bottom{
padding:80px 20px; font-size: 14px;
.el-form-item { color:#313337;
margin-bottom: 30px
} }
} }
.login-box-foot{
width: 100%;
padding: 26px 20px;
box-sizing: border-box;
position: absolute;
bottom: 0;
color: #666666;
font-size: 14px;
&::before{
content: '';
background: #DCDCDC;
height: 1px;
left: 20px;
right: 20px;
top: 0;
position: absolute
} }
.login-round{
margin-top:5vh;
height: 32vw;
width: 32vw;
background-image: url('/images/login-pic.png');
background-size: 100% 100%;
background-repeat: no-repeat; /* 确保背景图像不重复 */
display: flex;
justify-content: center;
align-items: center;
.login-box{
width: 50%;
height: 50%;
.welcom_login{
height: 15%;
margin-bottom:5%;
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
font-weight: 800;
color:black;
} }
.login-form{ .login-form{
.el-input{ .el-input{
font-size:18px; font-size:18px;
height: 50px height:2.4vw;
} }
.el-input__prefix{ .el-input__prefix{
line-height: 50px; //background-color: red;
width: 60px; line-height: 2.4vw;
color: #1988C0 width: 2.4vw;
color:#8598A7;
// color: #1988C0
} }
.el-input__inner { .el-input__inner {
background-color: transparent; background-color: transparent !important;;
border-top: 0;
border-left: 0;
border-right: 0;
border-radius: 0; border-radius: 0;
color: #475057; color: #475057;
height:50px; height:2.4vw;
line-height: 50px; line-height: 2.4vw;
padding-left: 60px; padding-left: 2.4vw;
}
} }
} }
.imgSize {
height: 25px;
}
width: 100%;
height: 100%;
// background-image: url('/images/river.png'), linear-gradient(90deg, #324A8D 20%, #4BAE47 100%);
background-image: url('/images/bg.png');
background-size: cover;
background-repeat: no-repeat;
position: fixed;
background-position: bottom;
top: 0;
bottom: 0;
left: 0;
right: 0;
.dee-form2{
padding:0;
}
// .login-form{
// width: 332px;
// .user-pic{
// width:16px;
// height:20px;
// }
// }
.login-btn { .login-btn {
width: 100%; width: 100%;
height: 50px; height: 2.4vw;
background: linear-gradient(-90deg, #2C9AD2, #2BA3E0); background-image: url('/images/login_btn.png');
background-size: 100% 100%;
background-repeat: no-repeat; /* 确保背景图像不重复 */
border-width:0; border-width:0;
// border-radius: 4px; // border-radius: 4px;
color: #ffffff; color: #ffffff;
font-size: 18px; font-size: 18px;
&:hover{ &:hover{
background:#2BA3E0; background-image: url('/images/login_btn_hover.png');
color: #FFF color: #FFF
} }
// text-shadow: 0 1px 10px rgba(3, 25, 74, 0.34); // text-shadow: 0 1px 10px rgba(3, 25, 74, 0.34);
} }
.password-box{
display: flex;
padding: 2vh 0;
justify-content: space-between;
font-size: 14px;
color: #606266;
cursor: pointer;
}
}
}
.el-button.is-loading { .el-button.is-loading {
.el-icon-loading { .el-icon-loading {
left:130px; left:130px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment