0
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<div class="ms-title">{{ $t('system.title_2') }}</div>
|
||||
<el-form :model="param" :rules="rules" ref="login" label-width="0px" class="ms-content">
|
||||
<el-form-item prop="username">
|
||||
<el-input v-model="param.username" auto-complete="off" placeholder="username">
|
||||
<el-input v-model="param.username" auto-complete="off" placeholder="username/email">
|
||||
<i slot="prefix" class="el-icon-lx-people" />
|
||||
<!-- <el-button slot="prepend" icon="el-icon-lx-people"></el-button> -->
|
||||
</el-input>
|
||||
@@ -34,14 +34,19 @@
|
||||
</div>
|
||||
<el-row style="text-align: left">
|
||||
<el-col :span="12">
|
||||
<el-link :underline="false" type="primary" @click="doRetrieve()" style="font-size:12px">{{ $t('system.repassword') }}</el-link>
|
||||
<el-link :underline="false" type="primary" @click="doRetrieve()" style="font-size:12px">
|
||||
{{ $t('system.repassword') }}
|
||||
</el-link>
|
||||
</el-col>
|
||||
<el-col :span="12" style="text-align: right;padding-right: 15px;">
|
||||
<el-link :underline="false" type="primary" @click="doRegister()" style="font-size:12px">{{ $t('system.register') }}</el-link>
|
||||
<el-link :underline="false" type="primary" @click="doRegister()" style="font-size:12px">
|
||||
{{ $t('system.register') }}
|
||||
</el-link>
|
||||
</el-col>
|
||||
<el-col :span="24" style="margin-top: 5px">
|
||||
<el-link :underline="false" type="primary" @click="skip_check()" style="font-size:12px">
|
||||
<img class="orcid" src="../../assets/img/orcid.png" style="float: left; margin: -1px 5px 0 0;" />{{$t('system.orcidlogin')}}
|
||||
<img class="orcid" src="../../assets/img/orcid.png"
|
||||
style="float: left; margin: -1px 5px 0 0;" />{{$t('system.orcidlogin')}}
|
||||
</el-link>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -126,6 +131,7 @@
|
||||
roleVisible: false,
|
||||
showCLO: false,
|
||||
user_cap: '',
|
||||
verification: '',
|
||||
param: {
|
||||
username: '',
|
||||
password: '',
|
||||
@@ -154,8 +160,32 @@
|
||||
},
|
||||
created: function() {
|
||||
this.getCaptcha();
|
||||
this.yanzheng();
|
||||
},
|
||||
methods: {
|
||||
yanzheng() {
|
||||
this.verification = this.$route.query.code
|
||||
if (this.verification != undefined) {
|
||||
console.log(this.verification)
|
||||
this.$api
|
||||
.post('api/User/checkRegisterCode', {
|
||||
'code': this.verification
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$message({
|
||||
duration: 0,
|
||||
showClose: true,
|
||||
message: 'To proceed, please log in to tmrjournals.com.',
|
||||
type: 'success'
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
}
|
||||
},
|
||||
submitForm() {
|
||||
//登录操作
|
||||
this.$refs.login.validate((valid) => {
|
||||
@@ -179,7 +209,8 @@
|
||||
} else {
|
||||
this.$message.success('login success');
|
||||
// U_status 0超级管理员 1编辑 2作者
|
||||
if (this.param.username == 'superadmin' || this.param.username == 'wuxiongzhi2') {
|
||||
if (this.param.username == 'superadmin' || this.param.username ==
|
||||
'wuxiongzhi2') {
|
||||
localStorage.setItem('U_status', '0'); //超级管理员
|
||||
localStorage.setItem('U_role', 'superadmin');
|
||||
localStorage.setItem('U_name', res.userinfo.account);
|
||||
@@ -226,7 +257,8 @@
|
||||
if (this.user_cap.includes('chief')) {
|
||||
this.$router.push('/managing');
|
||||
} else {
|
||||
this.$message.error("Sorry, you can not login as Editor-in-Chief, please contact publisher@tmrjournals.com.");
|
||||
this.$message.error(
|
||||
"Sorry, you can not login as Editor-in-Chief, please contact publisher@tmrjournals.com.");
|
||||
}
|
||||
},
|
||||
Edit() { //编委
|
||||
@@ -234,7 +266,8 @@
|
||||
this.$router.push('/editorial');
|
||||
} else {
|
||||
this.$message.error(
|
||||
"Sorry, you can not login as Editorial board member, please contact publisher@tmrjournals.com.");
|
||||
"Sorry, you can not login as Editorial board member, please contact publisher@tmrjournals.com."
|
||||
);
|
||||
}
|
||||
},
|
||||
Revi() { //审稿人
|
||||
@@ -249,7 +282,8 @@
|
||||
this.$router.push('/youthed');
|
||||
} else {
|
||||
this.$message.error(
|
||||
"Sorry, you can not login as Young scientist member, please contact publisher@tmrjournals.com.");
|
||||
"Sorry, you can not login as Young scientist member, please contact publisher@tmrjournals.com."
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user