| | |
| | | <template> |
| | | <div class="login"> |
| | | <el-row> |
| | | <el-col :xs="24"> |
| | | <div style="color: #fff; background-color: #0f73ee; width: 100%; height: 200px; text-align: center; padding: 15px; font-family: '微软雅黑'"> |
| | | <div style="font-size: 42px; padding-top: 40px; width: 400px; margin: 0 auto"> |
| | | <div class="logoImg"></div> |
| | | <!-- <img :src="logo" alt="logo" style="width: 100px; height: 100px; float: left" /> --> |
| | | <div style="float: left; margin-top: 13px; width: 300px; text-align: left"> |
| | | <div>TerraDT</div> |
| | | <div style="letter-spacing: 1.5px; font-size: 20px; font-weight: 600; margin-top: -8px; margin-left: 3px">泰瑞工业数字孪生管理平台</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="logoTitle"> |
| | | <div class="titleItem"> |
| | | <div class="logImg"></div> |
| | | </div> |
| | | |
| | | <!-- <div class="titleItem"> |
| | | <div class="logText">数字孪生智能配网巡检系统</div> |
| | | </div> --> |
| | | </div> |
| | | <div class="logContent"> |
| | | <div class="contFrom"> |
| | | <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form"> |
| | | <!-- <div style="margin-bottom: 10px; font-size: 14px; font-family: '微软雅黑'; color: #f78e21">演示账号:fastbee 123456</div> --> |
| | | <el-form-item label="用户名"></el-form-item> |
| | | <el-form-item prop="username"> |
| | | <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号"> |
| | | <svg-icon slot="prefix" icon-class="user" class="input-icon" /> |
| | | <el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="Admin"> |
| | | <template slot="prefix"> |
| | | <img src="../assets/logo/形状 4.png" alt="Custom Icon" style="width: 1rem; height: 1rem;"> |
| | | </template> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="密码"></el-form-item> |
| | | <el-form-item prop="password"> |
| | | <el-input v-model="loginForm.password" type="password" auto-complete="off" placeholder="密码" @keyup.enter.native="handleLogin"> |
| | | <svg-icon slot="prefix" icon-class="password" class="input-icon" /> |
| | | <el-input v-model="loginForm.password" type="password" auto-complete="off" placeholder="密码" |
| | | @keyup.enter.native="handleLogin"> |
| | | <template slot="prefix"> |
| | | <img src="../assets/logo/形状 5.png" alt="Custom Icon" style="width: 1rem; height: 1rem;"> |
| | | </template> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="验证码"></el-form-item> |
| | | <el-form-item v-if="captchaOnOff" prop="code"> |
| | | <el-input v-model="loginForm.code" auto-complete="off" placeholder="验证码" style="width: 63%" @keyup.enter.native="handleLogin"> |
| | | <svg-icon slot="prefix" icon-class="validCode" class="input-icon" /> |
| | | <el-input v-model="loginForm.code" auto-complete="off" placeholder="验证码" style="width: 63%" |
| | | @keyup.enter.native="handleLogin"> |
| | | <template slot="prefix"> |
| | | <img src="../assets/logo/形状 6.png" alt="Custom Icon" style="width: 1rem; height: 1rem;"> |
| | | </template> |
| | | </el-input> |
| | | |
| | | <div class="login-code"> |
| | | <img :src="codeUrl" @click="getCode" /> |
| | | </div> |
| | | </el-form-item> |
| | | <el-checkbox v-model="loginForm.rememberMe" style="margin: 0px 0px 25px 0px; color: #000">记住密码</el-checkbox> |
| | | <el-checkbox v-model="loginForm.rememberMe" style="margin: 0px 0px 25px 0px; font-family: Source Han Sans SC; |
| | | color: #ffffff;">记住密码</el-checkbox> |
| | | |
| | | <el-form-item style="width: 100%"> |
| | | <div style="margin-bottom: 10px"> |
| | | <el-button v-if="!bindAccount" :loading="loading" type="primary" style="width: 100%" @click.native.prevent="handleLogin"> |
| | | <el-button v-if="!bindAccount" :loading="loading" type="primary" style="width: 100%" |
| | | @click.native.prevent="handleLogin"> |
| | | <span v-if="!loading">登 录</span> |
| | | <span v-else>登 录 中...</span> |
| | | </el-button> |
| | | <el-button v-else :loading="loading" type="primary" style="width: 100%" @click.native.prevent="handleBind"> |
| | | <el-button v-else :loading="loading" type="primary" style="width: 100%" |
| | | @click.native.prevent="handleBind"> |
| | | <span v-if="!loading">绑 定</span> |
| | | <span v-else>绑 定 中...</span> |
| | | </el-button> |
| | | </div> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- 底部 --> |
| | | <div class="el-login-footer"> |
| | | <span> |
| | | Copyright © 2004-2023 |
| | | <a target="_blank" href="https://www.smartearth.cn/">SmartEarth</a> |
| | | All Rights Reserved. |
| | | </span> |
| | | </div> |
| | | <div class="contMessage"> |
| | | <span> |
| | | Copyright © 2004-2023 |
| | | <a target="_blank" href="https://www.smartearth.cn/">SmartEarth</a> |
| | | All Rights Reserved. |
| | | </span> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | .push({ |
| | | path: this.redirect || '/', |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { }); |
| | | }) |
| | | .catch(() => { |
| | | this.loading = false; |
| | |
| | | .push({ |
| | | path: this.redirect || '/', |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { }); |
| | | if (this.captchaOnOff) { |
| | | this.getCode(); |
| | | this.loading = false; |
| | |
| | | const errorId = this.$route.query.errorId; |
| | | if (errorId !== undefined && errorId !== null) { |
| | | getErrorMsg(errorId) |
| | | .then((res) => {}) |
| | | .then((res) => { }) |
| | | .catch((err) => { |
| | | this.$router.push({ query: {} }); |
| | | console.log(err); |
| | |
| | | .push({ |
| | | path: '/', |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { }); |
| | | }) |
| | | .catch(() => { |
| | | this.loading = false; |
| | |
| | | .push({ |
| | | path: this.redirect || '/', |
| | | }) |
| | | .catch(() => {}); |
| | | .catch(() => { }); |
| | | }) |
| | | .catch(() => { |
| | | this.loading = false; |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | <style scoped lang="scss"> |
| | | .login { |
| | | height: 100%; |
| | | overflow: auto; |
| | | } |
| | | .logoImg { |
| | | width: 100px; |
| | | height: 100px; |
| | | background: url('../assets/logo/logo.png') no-repeat; |
| | | background-size: 100% 100%; |
| | | float: left; |
| | | } |
| | | .bindAccountTitle { |
| | | margin: 0px auto 30px auto; |
| | | text-align: center; |
| | | color: #333; |
| | | font-size: 24px; |
| | | } |
| | | |
| | | .login-form { |
| | | margin: 30px auto 0 auto; |
| | | padding: 15px; |
| | | z-index: 1000; |
| | | max-width: 350px; |
| | | |
| | | input { |
| | | height: 38px; |
| | | background-color: #f1f1f1; |
| | | color: #666; |
| | | } |
| | | |
| | | .input-icon { |
| | | height: 39px; |
| | | width: 14px; |
| | | margin-left: 2px; |
| | | } |
| | | } |
| | | |
| | | .login-code { |
| | | width: 33%; |
| | | float: right; |
| | | |
| | | img { |
| | | cursor: pointer; |
| | | vertical-align: middle; |
| | | border-radius: 3px; |
| | | height: 38px; |
| | | } |
| | | } |
| | | |
| | | .el-login-footer { |
| | | height: 40px; |
| | | line-height: 40px; |
| | | position: fixed; |
| | | bottom: 0; |
| | | // overflow: auto; |
| | | width: 100%; |
| | | text-align: center; |
| | | color: #333; |
| | | font-family: Arial; |
| | | font-size: 12px; |
| | | letter-spacing: 1px; |
| | | } |
| | | position: absolute; |
| | | background: url('../assets/logo/图层 3.png') no-repeat; |
| | | background-size: 100% 100%; |
| | | |
| | | .alert-box-wrap { |
| | | border: 1px solid #f78e21; |
| | | |
| | | .alert-message-wrap { |
| | | font-size: 14px; |
| | | font-family: '微软雅黑'; |
| | | color: rgba(197, 41, 41, 0.856); |
| | | margin-left: 10px; |
| | | .logoTitle { |
| | | height: 100%; |
| | | background: #368ED5; |
| | | width: 100%; |
| | | z-index: -1; |
| | | position: absolute; |
| | | display: flex; |
| | | justify-content: center; |
| | | |
| | | .titleItem { |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | height: 266px; |
| | | } |
| | | |
| | | .logImg { |
| | | width: 570px; |
| | | height: 90px; |
| | | background: url('../assets/logo/Login3.png') no-repeat; |
| | | background-size: 100% 100%; |
| | | } |
| | | |
| | | .logText { |
| | | font-family: SourceHanSansSC-Bold; |
| | | font-size: 36px; |
| | | font-weight: bold; |
| | | color: #ffffff; |
| | | margin-left: 19px; |
| | | } |
| | | } |
| | | |
| | | .logContent { |
| | | width: 100%; |
| | | height: calc(100% - 266px); |
| | | bottom: 0px; |
| | | position: absolute; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | .contFrom { |
| | | flex: 1; |
| | | |
| | | |
| | | } |
| | | |
| | | .contMessage { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | line-height: 40px; |
| | | font-family: Source Han Sans SC; |
| | | color: #ffffff; |
| | | } |
| | | |
| | | } |
| | | |
| | | .login-form { |
| | | margin: 30px auto 0 auto; |
| | | padding: 15px; |
| | | z-index: 1000; |
| | | max-width: 350px; |
| | | |
| | | input { |
| | | height: 38px; |
| | | background-color: #f1f1f1; |
| | | color: #666; |
| | | } |
| | | |
| | | .input-icon { |
| | | height: 39px; |
| | | width: 14px; |
| | | margin-left: 2px; |
| | | } |
| | | } |
| | | |
| | | .login-code { |
| | | width: 33%; |
| | | float: right; |
| | | |
| | | img { |
| | | cursor: pointer; |
| | | vertical-align: middle; |
| | | border-radius: 3px; |
| | | height: 38px; |
| | | } |
| | | } |
| | | |
| | | .alert-box-wrap { |
| | | border: 1px solid #f78e21; |
| | | |
| | | .alert-message-wrap { |
| | | font-size: 14px; |
| | | font-family: '微软雅黑'; |
| | | color: rgba(197, 41, 41, 0.856); |
| | | margin-left: 10px; |
| | | } |
| | | } |
| | | |
| | | ::v-deep .el-form-item__label { |
| | | line-height: 0px !important; |
| | | font-family: Source Han Sans SC; |
| | | color: #ffffff; |
| | | font-weight: 300; |
| | | margin-top: 10px; |
| | | font-size: 16px; |
| | | line-height: 10px; |
| | | } |
| | | |
| | | ::v-deep .el-button { |
| | | background: transparent !important; |
| | | border-color: #ffffff; |
| | | height: 52px; |
| | | } |
| | | } |
| | | </style> |