@@ -312,6 +416,53 @@
+
+
+
+
+
+ -
+
{{ i + 1 }} .
+
+
+ {{ v.firstname }} {{ v.lastname }}
+
+ ( {{ $t('partyListCorr.Email') }}:
+ {{ v.email }})
+
+
+
+
+
+
+ WOS
+
+
+
+
@@ -365,6 +516,7 @@
+
@@ -620,6 +772,86 @@
OK
+
+
+
+
+ {{ userIndexForm.account }}
+
+
+ Time :
+
+
+
+ Index :
+
+
+
+
+
+ Website :
+
+
+
+
+
+
+
+
+
+
+ Google account :
+
+
+
+ Certified
+
+ Certified
+
+
+
+
+ Please select one and press the OK button.
+
+
+
{{ item.name }}
+
Email :{{ item.email }}
+
Affiliations :{{ item.affiliations }}
+
+ {{ item.link }}
+
+
+
+
+
+
+
+
@@ -814,7 +1046,9 @@ export default {
data() {
return {
citeLoading: false,
+ wosLoading: false,
authorList: [],
+ editorList: [],
loading: false,
authorArticlesList: [],
userrole: localStorage.getItem('U_status'),
@@ -827,6 +1061,7 @@ export default {
wos_index: '',
google_index: ''
},
+ userIndexForm: {},
geogleList: [],
reviewTable: {},
authorTable: {},
@@ -842,6 +1077,7 @@ export default {
pictureUrl: '',
messageVisible: false,
indexVisible: false,
+ userIndexVisible: false,
bankVisible: false,
cvitaVisible: false,
fileL_pdf1: [],
@@ -1064,8 +1300,36 @@ export default {
created() {
this.getSelectData();
this.getDate();
+ this.getAllEditor();
},
methods: {
+ async getWosList(id) {
+ var that = this;
+ this.authorList = [];
+ this.wosLoading = true;
+ await this.$api
+ .post('api/User/getAuthorForArticle', {
+ article_id: id
+ })
+ .then(async (res) => {
+ if (res.code == 0) {
+ this.authorList = res.data.list;
+ this.wosLoading = false;
+ setTimeout(() => {
+ that.$nextTick(() => {
+ that.$refs.popover.updatePopper();
+ });
+ }, 100);
+ } else {
+ this.$message.error(res.msg);
+ this.wosLoading = false;
+ }
+ })
+ .catch((err) => {
+ this.$message.error(err);
+ this.wosLoading = false;
+ });
+ },
async getAuthorList(id) {
var that = this;
this.authorList = [];
@@ -1093,6 +1357,22 @@ export default {
this.citeLoading = false;
});
},
+ async getAllEditor(id) {
+ var that = this;
+ this.editorList = [];
+ await this.$api
+ .post('api/User/getAllEditor', {})
+ .then(async (res) => {
+ if (res.code == 0) {
+ this.editorList = res.data.editors;
+ } else {
+ this.$message.error(res.msg);
+ }
+ })
+ .catch((err) => {
+ this.$message.error(err);
+ });
+ },
// 获取下拉列表
getSelectData() {
this.$api
@@ -1305,10 +1585,10 @@ export default {
console.log('Input string is valid.');
} else {
console.log('Input string is invalid.');
- this.$message.error(this.$t('info.realname'))
- return false
+ this.$message.error(this.$t('info.realname'));
+ return false;
}
-
+
this.$api
.post('api/Ucenter/updateUserInfo', this.MessForm)
.then((res) => {
@@ -1367,6 +1647,61 @@ export default {
this.indexVisible = true;
}
},
+ // 个人指数修改
+ handleUserIndex(e) {
+ var type = '';
+ var typeName = '';
+ var index = '';
+ var date = '';
+ 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;
+
+ 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;
+
+ website = this.userMessage.g_website;
+
+ g_author = this.userMessage.g_author;
+ 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;
+ },
// 保存个人信息
saveIndex() {
@@ -1396,6 +1731,34 @@ export default {
this.$message.error(err);
});
},
+ // 保存个人信息
+ saveUserIndex() {
+ let link_geo = '';
+ if (this.userIndexForm.type == 2) {
+ if (this.userIndexForm.g_author == '') {
+ this.$message.error('Please select one!');
+ return;
+ }
+ link_geo = 'api/User/googleBindAuthor';
+ } else {
+ link_geo = 'api/User/editUserIndex';
+ }
+ this.$api
+ .post(link_geo, this.userIndexForm)
+ .then((res) => {
+ if (res.code == 0) {
+ this.$message.success('Successfully modified personal index');
+ this.userIndexVisible = false;
+ this.bankVisible = false;
+ this.getDate();
+ } else {
+ this.$message.error(res.msg);
+ }
+ })
+ .catch((err) => {
+ this.$message.error(err);
+ });
+ },
// 选择填写方式
checkAddType(e) {
@@ -1407,8 +1770,8 @@ export default {
// 选择谷歌账号
choseGego(e) {
- this.IndexForm.g_author = e.author_id;
- this.IndexForm.g_website = e.link;
+ this.userIndexForm.g_author = e.author_id;
+ this.userIndexForm.website = e.link;
},
// 指数颜色
@@ -1451,6 +1814,40 @@ export default {
}
return str;
},
+ colorIndex1(num, time) {
+ let str = '';
+ if (num < 10) {
+ str = '' + num + '';
+ } else if (num < 15) {
+ str = '' + num + '';
+ } else {
+ str = '' + num + '';
+ }
+ if (time == 0) {
+ str = '0 ';
+ }
+ return str;
+ },
+ colorIndex2(time) {
+ if (time != 0) {
+ let date = new Date(parseInt(time * 1000));
+ let Y = date.getFullYear() + '-';
+ let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) + '-' : date.getMonth() + 1 + '-';
+ let D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
+ let H = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
+ let U = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
+ time = Y + M + D;
+ }
+
+ let str = '';
+
+ str = ' ' + time + '';
+
+ if (time == 0) {
+ str = '(No time)';
+ }
+ return str;
+ },
// 下拉身份
chan_role(e) {
@@ -2151,4 +2548,21 @@ export default {
color: #006699 !important;
padding: 3px !important;
}
+
+.userIndexBox .s_rol {
+ width: 29%;
+ height: 300px;
+}
+.userIndexBox h3 {
+ color: rgb(0, 102, 153);
+ letter-spacing: 1px;
+}
+.userIndexBox .rol_mess {
+ text-align: left;
+ padding-top: 10px !important;
+ padding-bottom: 0 !important;
+}
+.userIndexBox .s_rol > div.rol_mess > font {
+ width: auto;
+}