|
|
@ -1,13 +1,13 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="login-container" :style="{ 'background-image': 'url(' + loginbgimg + ')' }">
|
|
|
|
<div class="login-container" :style="{ 'background-image': 'url(' + loginbgimg + ')' }">
|
|
|
|
<div v-if="isbig" class="title-container" style="text-align:center">
|
|
|
|
<div v-if="isbig" class="title-container" style="text-align:center; padding: 160px 70px 0;">
|
|
|
|
<br><br>
|
|
|
|
<br><br>
|
|
|
|
<img :src="loginlogo" width="720" :height=height>
|
|
|
|
<img :src="loginlogo" width="720" :height=height>
|
|
|
|
<br><br>
|
|
|
|
<br><br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else class="title-container" style="text-align:center; padding: 160px 70px 0;">
|
|
|
|
<div v-else class="title-container" style="text-align:center; padding: 260px 70px 0;">
|
|
|
|
<img :src="loginlogo" width="100" height="100"><br><br><br><br>
|
|
|
|
<img :src="loginlogo" width="100" height="100"><br><br><br>
|
|
|
|
<h3 style="font-size:45px" class="title">{{ logintitle }}</h3><br>
|
|
|
|
<h1 style="font-size:40px" class="title">{{ logintitle }}</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left" style="padding: 10px 100px 0;">
|
|
|
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left" style="padding: 10px 100px 0;">
|
|
|
|
<el-form-item prop="username">
|
|
|
|
<el-form-item prop="username">
|
|
|
@ -17,7 +17,7 @@
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
ref="username"
|
|
|
|
ref="username"
|
|
|
|
v-model="loginForm.username"
|
|
|
|
v-model="loginForm.username"
|
|
|
|
placeholder="Username"
|
|
|
|
placeholder="用户名"
|
|
|
|
name="username"
|
|
|
|
name="username"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
tabindex="1"
|
|
|
|
tabindex="1"
|
|
|
@ -34,7 +34,7 @@
|
|
|
|
ref="password"
|
|
|
|
ref="password"
|
|
|
|
v-model="loginForm.password"
|
|
|
|
v-model="loginForm.password"
|
|
|
|
:type="passwordType"
|
|
|
|
:type="passwordType"
|
|
|
|
placeholder="Password"
|
|
|
|
placeholder="密码"
|
|
|
|
name="password"
|
|
|
|
name="password"
|
|
|
|
tabindex="2"
|
|
|
|
tabindex="2"
|
|
|
|
auto-complete="on"
|
|
|
|
auto-complete="on"
|
|
|
@ -45,7 +45,7 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<!-- <el-checkbox v-model="loginForm.Ldapchecked" label="启动ldap验证" border class="ldap" /> -->
|
|
|
|
<!-- <el-checkbox v-model="loginForm.Ldapchecked" label="启动ldap验证" border class="ldap" /> -->
|
|
|
|
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">登 录</el-button>
|
|
|
|
<el-button :loading="loading" type="primary" round class="login-button" @click.native.prevent="handleLogin">登 录</el-button>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div align="center" class="title-container">
|
|
|
|
<div align="center" class="title-container">
|
|
|
|
<span style="font-size:12px" class="title">{{ VER }}</span>
|
|
|
|
<span style="font-size:12px" class="title">{{ VER }}</span>
|
|
|
@ -93,7 +93,7 @@ export default {
|
|
|
|
passwordType: 'password',
|
|
|
|
passwordType: 'password',
|
|
|
|
loginlogo: '',
|
|
|
|
loginlogo: '',
|
|
|
|
loginbgimg: '',
|
|
|
|
loginbgimg: '',
|
|
|
|
logintitle: 'T e n S u n S',
|
|
|
|
logintitle: 'Welcome to TenSunS',
|
|
|
|
isbig: true,
|
|
|
|
isbig: true,
|
|
|
|
height: '330',
|
|
|
|
height: '330',
|
|
|
|
redirect: undefined
|
|
|
|
redirect: undefined
|
|
|
@ -219,12 +219,25 @@ $cursor: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.login-button {
|
|
|
|
|
|
|
|
width:60%;
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
margin-bottom:15px;
|
|
|
|
|
|
|
|
border: 0px solid rgba(255, 255, 255, 0);
|
|
|
|
|
|
|
|
background: rgba(0, 0, 0, 0.2);
|
|
|
|
|
|
|
|
}
|
|
|
|
.el-form-item {
|
|
|
|
.el-form-item {
|
|
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
|
|
border: 0px solid rgba(255, 255, 255, 0);
|
|
|
|
background: rgba(0, 0, 0, 0.1);
|
|
|
|
background: rgba(0, 0, 0, 0.1);
|
|
|
|
border-radius: 5px;
|
|
|
|
border-radius: 5px;
|
|
|
|
color: #454545;
|
|
|
|
color: #454545;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.el-form-item__content {
|
|
|
|
|
|
|
|
line-height: 33px;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
font-size: 14px
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|