|
@@ -1,22 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="nav">
|
|
|
|
|
- <!-- <header>
|
|
|
|
|
- <a href="/" class="nav-logo leftpadding" alt="egg"><img src="../assets/img/logo2.png" style="height:45px;"></a>
|
|
|
|
|
- <ul class="nav-item">
|
|
|
|
|
- <li>
|
|
|
|
|
- <form id="search-form">
|
|
|
|
|
- <input type="text" id="search-query" class="search-query st-default-search-input">
|
|
|
|
|
- </form>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li><a href="/zh-cn/intro/" alt="介绍">biobank</a></li>
|
|
|
|
|
- <li><a href="/api/" alt="API">LIMS</a></li>
|
|
|
|
|
- <li><a href="/zh-cn/tutorials/index.html" alt="其他">智能婴儿床</a></li>
|
|
|
|
|
- <li><a href="https://github.com/search?q=topic%3Aegg-plugin&type=Repositories" alt="其他">其他</a></li>
|
|
|
|
|
- <li>
|
|
|
|
|
- <li class="translations">
|
|
|
|
|
- </li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </header> -->
|
|
|
|
|
|
|
+ <div >
|
|
|
|
|
|
|
|
<div class="container">
|
|
<div class="container">
|
|
|
<el-row>
|
|
<el-row>
|
|
@@ -26,7 +9,7 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="9">
|
|
<el-col :span="9">
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
|
- <el-form class="login-form" auto-complete="off" :model="model" :rules="rules" ref="login-form">
|
|
|
|
|
|
|
+ <el-form class="login-form" auto-complete="off" :model="model" :rules="rules" ref="user" label-position="top">
|
|
|
<h2 class="heading">登录</h2>
|
|
<h2 class="heading">登录</h2>
|
|
|
<el-form-item label="用户名" prop="username">
|
|
<el-form-item label="用户名" prop="username">
|
|
|
<el-input type="text" v-model="model.username" placeholder="请输入用户名">
|
|
<el-input type="text" v-model="model.username" placeholder="请输入用户名">
|
|
@@ -126,9 +109,16 @@
|
|
|
password: this.model.password.replace(/(^\s*)|(\s*$)/g, "")
|
|
password: this.model.password.replace(/(^\s*)|(\s*$)/g, "")
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- this.$router.push(this.$route.query.page || '/')
|
|
|
|
|
|
|
+ if (process.env.appclient == 'lims') {
|
|
|
|
|
+ this.$router.push(this.$route.query.page || '/indexlims')
|
|
|
|
|
+ } else if (process.env.appclient == 'cellbank') {
|
|
|
|
|
+ this.$router.push(this.$route.query.page || '/indexdqm')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$router.push(this.$route.query.page || '/')
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
|
|
+ // this.$message.warning(e.message)
|
|
|
this.$message.warning('账号或密码错误')
|
|
this.$message.warning('账号或密码错误')
|
|
|
} finally {
|
|
} finally {
|
|
|
this.logging = false
|
|
this.logging = false
|
|
@@ -166,11 +156,11 @@
|
|
|
min-width: 1300px;
|
|
min-width: 1300px;
|
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
|
}
|
|
}
|
|
|
- // .heading {
|
|
|
|
|
- // margin: 0 0 1rem;
|
|
|
|
|
- // font-weight: 400;
|
|
|
|
|
- // font-size: 1.5rem;
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ .heading {
|
|
|
|
|
+ margin: 0 0 1rem;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ font-size: 1.5rem;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
.nav ul.nav-item {
|
|
.nav ul.nav-item {
|
|
|
height: 32px;
|
|
height: 32px;
|
|
@@ -309,7 +299,7 @@
|
|
|
max-width: 1136px;
|
|
max-width: 1136px;
|
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
|
padding-top: 0px;
|
|
padding-top: 0px;
|
|
|
- padding-bottom: 0px;
|
|
|
|
|
|
|
+ padding-bottom: 30px;
|
|
|
}
|
|
}
|
|
|
.box-card {
|
|
.box-card {
|
|
|
margin-top: 140px;
|
|
margin-top: 140px;
|