提交
This commit is contained in:
@@ -774,7 +774,16 @@
|
||||
</el-dialog>
|
||||
<!-- user指数弹出框 -->
|
||||
<el-dialog :title="`Edit personal index ( ${userIndexForm.typeName} )`" :visible.sync="userIndexVisible" min-width="600px">
|
||||
<el-form ref="index_Form" :model="userIndexForm" :rules="rules" label-width="170px">
|
||||
<el-form
|
||||
ref="index_Form"
|
||||
:model="userIndexForm"
|
||||
:rules="rules"
|
||||
label-width="170px"
|
||||
v-loading="userloading"
|
||||
element-loading-text="拼命加载中"
|
||||
element-loading-spinner="el-icon-loading"
|
||||
element-loading-background="rgba(255, 255, 255, 0.8)"
|
||||
>
|
||||
<el-form-item label="Account :" prop="account">
|
||||
{{ userIndexForm.account }}
|
||||
</el-form-item>
|
||||
@@ -787,7 +796,7 @@
|
||||
<el-input v-model="userIndexForm.index"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<template v-if=" userIndexForm.type == 1">
|
||||
<template v-if="userIndexForm.type == 1">
|
||||
<el-form-item>
|
||||
<span slot="label"> Website : </span>
|
||||
<el-input v-model="userIndexForm.website"></el-input>
|
||||
@@ -816,7 +825,7 @@
|
||||
Certified
|
||||
</a>
|
||||
<el-button
|
||||
@click="handleIndex(3)"
|
||||
@click="handleUserIndex(3)"
|
||||
type="warning"
|
||||
icon="el-icon-paperclip"
|
||||
size="mini"
|
||||
@@ -832,7 +841,7 @@
|
||||
</p>
|
||||
<div
|
||||
v-for="item in geogleList"
|
||||
:class="IndexForm.g_author == item.author_id ? 'gugeList gu_col' : 'gugeList'"
|
||||
:class="userIndexForm.g_author == item.author_id ? 'gugeList gu_col' : 'gugeList'"
|
||||
@click="choseGego(item)"
|
||||
v-if="bankVisible"
|
||||
>
|
||||
@@ -1050,6 +1059,7 @@ export default {
|
||||
authorList: [],
|
||||
editorList: [],
|
||||
loading: false,
|
||||
userloading: false,
|
||||
authorArticlesList: [],
|
||||
userrole: localStorage.getItem('U_status'),
|
||||
baseUrl: this.Common.baseUrl,
|
||||
@@ -1656,51 +1666,76 @@ export default {
|
||||
var website = '';
|
||||
var editor_id = '';
|
||||
var g_author = '';
|
||||
switch (e) {
|
||||
case 'wos':
|
||||
type = 0;
|
||||
typeName = 'WOS';
|
||||
index = this.userMessage.wos_index;
|
||||
date = this.userMessage.wos_time;
|
||||
if (e == 3) {
|
||||
this.userloading = true;
|
||||
this.$api
|
||||
.post('api/User/googleGetAuthor', {
|
||||
user_id: this.userMessage.user_id
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.geogleList = res.data.authors;
|
||||
this.bankVisible = true;
|
||||
this.userloading = false;
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
this.userloading = false;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
this.$message.error(err);
|
||||
this.userloading = false;
|
||||
});
|
||||
} else {
|
||||
switch (e) {
|
||||
case 'wos':
|
||||
type = 0;
|
||||
typeName = 'WOS';
|
||||
index = this.userMessage.wos_index;
|
||||
date = this.userMessage.wos_time;
|
||||
|
||||
break;
|
||||
case 'scopus':
|
||||
type = 1;
|
||||
typeName = 'Scopus';
|
||||
index = this.userMessage.scopus_index;
|
||||
date = this.userMessage.scopus_time;
|
||||
website = this.userMessage.scopus_website;
|
||||
break;
|
||||
case 'scopus':
|
||||
type = 1;
|
||||
typeName = 'Scopus';
|
||||
index = this.userMessage.scopus_index;
|
||||
date = this.userMessage.scopus_time;
|
||||
website = this.userMessage.scopus_website;
|
||||
|
||||
break;
|
||||
case 'google':
|
||||
type = 2;
|
||||
typeName = 'Google';
|
||||
index = this.userMessage.google_index;
|
||||
date = this.userMessage.google_time;
|
||||
break;
|
||||
case 'google':
|
||||
type = 2;
|
||||
typeName = 'Google';
|
||||
index = this.userMessage.google_index;
|
||||
date = this.userMessage.google_time;
|
||||
|
||||
website = this.userMessage.g_website;
|
||||
website = this.userMessage.g_website;
|
||||
|
||||
g_author = this.userMessage.g_author;
|
||||
break;
|
||||
g_author = this.userMessage.g_author;
|
||||
|
||||
this.bankVisible = false;
|
||||
this.geogleList = [];
|
||||
break;
|
||||
}
|
||||
|
||||
this.userIndexForm = {
|
||||
type: type,
|
||||
|
||||
index: index,
|
||||
date: date,
|
||||
website: website,
|
||||
editor_id: localStorage.getItem('U_id'),
|
||||
g_author: g_author,
|
||||
|
||||
user_id: this.userMessage.user_id,
|
||||
account: this.userMessage.account,
|
||||
typeName: typeName
|
||||
};
|
||||
console.log('this.userIndexForm at line 1641:', this.userIndexForm);
|
||||
// this.userIndexForm.type = e;
|
||||
|
||||
this.userIndexVisible = true;
|
||||
}
|
||||
|
||||
this.userIndexForm = {
|
||||
type: type,
|
||||
|
||||
index: index,
|
||||
date: date,
|
||||
website: website,
|
||||
editor_id: localStorage.getItem('U_id'),
|
||||
g_author: g_author,
|
||||
|
||||
user_id: this.userMessage.user_id,
|
||||
account: this.userMessage.account,
|
||||
typeName: typeName
|
||||
};
|
||||
console.log('this.userIndexForm at line 1641:', this.userIndexForm);
|
||||
// this.userIndexForm.type = e;
|
||||
|
||||
this.userIndexVisible = true;
|
||||
},
|
||||
|
||||
// 保存个人信息
|
||||
|
||||
Reference in New Issue
Block a user