This commit is contained in:
2024-11-08 17:51:01 +08:00
parent 8be808a3b4
commit 263b86eba3
2 changed files with 105 additions and 44 deletions

View File

@@ -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;
},
// 保存个人信息

View File

@@ -53,6 +53,14 @@
<i class="el-icon-download" style="margin-left: 20px; color: #66b1ff; font-weight: bold"></i> </a
><br />
</div>
<div class="file_sty" v-for="item in SMList">
<img src="../../assets/img/icon_0.png" alt="" class="icon_img" />
<a :href="mediaUrl + item.file_url" target="_blank" class="txt_pdf"
>Supplementary Material
<span style="margin-left: 50px; color: #888; font-size: 13px">{{ item.ctime }}</span>
<i class="el-icon-download" style="margin-left: 20px; color: #66b1ff; font-weight: bold"></i> </a
><br />
</div>
<p style="margin-top: 5px; color: #999; font-size: 14px">
<b style="color: #e41411">Download failed?</b>
@@ -361,6 +369,7 @@ export default {
txt_mess: {},
fileList: [],
picList: [],
SMList: [],//补充材料
mediaUrl: this.Common.mediaUrl,
add_edit: {
article_id: this.$route.query.Art_id,
@@ -552,6 +561,23 @@ export default {
.catch((err) => {
this.$message.error(err);
});
this.$api
.post('api/Reviewer/getCFilelistByID', {
revid: this.Art_id
})
.then((res) => {
for (var i = 0; i < res.data.length; i++) {
let date = new Date(parseInt(res.data[i].ctime) * 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();
res.data[i].ctime = Y + M + D;
}
this.SMList = res.data;
})
.catch((err) => {
this.$message.error(err);
});
//初始化问卷
this.$api