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> </el-dialog>
<!-- user指数弹出框 --> <!-- user指数弹出框 -->
<el-dialog :title="`Edit personal index ( ${userIndexForm.typeName} )`" :visible.sync="userIndexVisible" min-width="600px"> <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"> <el-form-item label="Account :" prop="account">
{{ userIndexForm.account }} {{ userIndexForm.account }}
</el-form-item> </el-form-item>
@@ -787,7 +796,7 @@
<el-input v-model="userIndexForm.index"></el-input> <el-input v-model="userIndexForm.index"></el-input>
</el-form-item> </el-form-item>
<template v-if=" userIndexForm.type == 1"> <template v-if="userIndexForm.type == 1">
<el-form-item> <el-form-item>
<span slot="label"> Website : </span> <span slot="label"> Website : </span>
<el-input v-model="userIndexForm.website"></el-input> <el-input v-model="userIndexForm.website"></el-input>
@@ -816,7 +825,7 @@
Certified Certified
</a> </a>
<el-button <el-button
@click="handleIndex(3)" @click="handleUserIndex(3)"
type="warning" type="warning"
icon="el-icon-paperclip" icon="el-icon-paperclip"
size="mini" size="mini"
@@ -832,7 +841,7 @@
</p> </p>
<div <div
v-for="item in geogleList" 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)" @click="choseGego(item)"
v-if="bankVisible" v-if="bankVisible"
> >
@@ -1050,6 +1059,7 @@ export default {
authorList: [], authorList: [],
editorList: [], editorList: [],
loading: false, loading: false,
userloading: false,
authorArticlesList: [], authorArticlesList: [],
userrole: localStorage.getItem('U_status'), userrole: localStorage.getItem('U_status'),
baseUrl: this.Common.baseUrl, baseUrl: this.Common.baseUrl,
@@ -1656,6 +1666,27 @@ export default {
var website = ''; var website = '';
var editor_id = ''; var editor_id = '';
var g_author = ''; var g_author = '';
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) { switch (e) {
case 'wos': case 'wos':
type = 0; type = 0;
@@ -1681,6 +1712,9 @@ export default {
website = this.userMessage.g_website; website = this.userMessage.g_website;
g_author = this.userMessage.g_author; g_author = this.userMessage.g_author;
this.bankVisible = false;
this.geogleList = [];
break; break;
} }
@@ -1701,6 +1735,7 @@ export default {
// this.userIndexForm.type = e; // this.userIndexForm.type = e;
this.userIndexVisible = true; 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 <i class="el-icon-download" style="margin-left: 20px; color: #66b1ff; font-weight: bold"></i> </a
><br /> ><br />
</div> </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"> <p style="margin-top: 5px; color: #999; font-size: 14px">
<b style="color: #e41411">Download failed?</b> <b style="color: #e41411">Download failed?</b>
@@ -361,6 +369,7 @@ export default {
txt_mess: {}, txt_mess: {},
fileList: [], fileList: [],
picList: [], picList: [],
SMList: [],//补充材料
mediaUrl: this.Common.mediaUrl, mediaUrl: this.Common.mediaUrl,
add_edit: { add_edit: {
article_id: this.$route.query.Art_id, article_id: this.$route.query.Art_id,
@@ -552,6 +561,23 @@ export default {
.catch((err) => { .catch((err) => {
this.$message.error(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 this.$api