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

@@ -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