This commit is contained in:
xulu
2022-03-10 17:34:35 +08:00
parent 4f5e6e1f78
commit a2a8a06ff6
44 changed files with 9609 additions and 969 deletions

View File

@@ -13,7 +13,7 @@
<el-option :key="0" label="All journals" :value="0"></el-option>
<el-option v-for="item in items" :key="item.journal_id" :label="item.title" :value="item.journal_id"></el-option>
</el-select>
<el-select v-model="query.state" @change="getdate" placeholder="Please select status" style="margin-left:10px;width: 130px;">
<el-select v-model="query.state" @change="getdate" placeholder="Please select status" style="margin-left:10px;width: 130px;">
<el-option :key="0" label="All status" :value="0"></el-option>
<el-option :key="1" :label="$t('artstate.state1')" :value="1"></el-option>
<el-option :key="2" :label="$t('artstate.state2')" :value="2"></el-option>
@@ -23,10 +23,10 @@
</el-select>
<el-input v-model="query.name" placeholder="Title" style="margin:0 10px;width: 200px;"></el-input>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">Search</el-button>
<el-button type="primary" icon="el-icon-edit-outline" @click="addArticle" style="float: right;width: 200px;">New Submission</el-button>
<el-button type="primary" icon="el-icon-edit-outline" @click="addArticle" style="float: right;width: 200px;">New
Submission</el-button>
</div>
<el-table :data="tableData" border ref="multipleTable">
>
<el-table-column type="index" label="No." width="55" align="center"></el-table-column>
<!-- <el-table-column prop="article_id" label="ID" width="55" align="center"></el-table-column> -->
<el-table-column label="Title" align="center">
@@ -45,11 +45,187 @@
</template>
</el-table-column>
</el-table>
<div shadow="never" v-for="item in tableData" class="mangu_list">
<div style="padding: 20px;">
<p style="color: #006699;">
<font style="color: #666b7a;">ID : </font>
{{item.accept_sn}}
</p>
<p class="man_title">{{item.title}}</p>
<p class="man_con">
<font style="color: #666b7a;">Type : </font>
<span style="font-weight: normal;">{{item.type | ellipsis}}</span>
<font style="color: #666b7a;">Journal : </font>
<b style="color: #006699;font-weight: normal;">{{item.journalname}}</b>
</p>
<p>
<font style="color: #666b7a;">Update Time : </font>
<b style="font-weight: normal;">{{item.ctime}}</b>
</p>
<div class="man_state" :style="item.state | stateColor">
{{item.state | stateChange}}
</div>
</div>
<div class="man_btn">
<span @click="esy_mtps(item.article_id)"><i class="el-icon-document"></i>Manuscript process</span>
<font> | </font>
<span @click="esy_deta(item.article_id)"><i class="el-icon-document-copy"></i>Detail</span>
<font> | </font>
<span @click="esy_file(item.article_id)"><i class="el-icon-folder-opened"></i>Files</span>
</div>
<div class="man_progess">
<font style="color: #666b7a;">
<i class="el-icon-time"></i>Latest Progress :
</font>
<b style="margin: 0 0 0 5px;">{{item.state | stateChange}} </b>
<router-link :to="{path:'/articleList',query:{art_id:item.article_id}}" v-if="item.state==4" style="color: #333;">
: <span style="margin: 0 0 0 5px;">click to</span>
<img src="../../assets/img/right_band.png" style="width: 14px;margin: 0 3px 0 10px;">
<b style="margin-left: 5px;color: #006699;text-decoration: underline;">Major revision</b>
</router-link>
</div>
</div>
<div class="pagination">
<el-pagination background layout="total, prev, pager, next" :current-page="query.pageIndex" :page-size="query.pageSize"
:total="Total" @current-change="handlePageChange"></el-pagination>
</div>
</div>
<!-- 文章内容 -->
<el-dialog title="Basic information" :visible.sync="artextVisible" width="600px">
<div class="art_state_message">
<p>
<font>Title :</font><b>{{artextForm.title}}</b>
</p>
<p>
<font>Type :</font><b>{{artextForm.type | ellipsis}}</b>
</p>
<p v-show="artextForm.type=='A'">
<font>Ethical Approval :</font><b>{{artextForm.approval?'Yes':'No'}}</b>
</p>
<p v-if="artextForm.special_num > 0">
<font>Special Issues :</font><b>{{ artextForm.special_title }}</b>
</p>
<p>
<font>Journal :</font><b>{{artextForm | journal_me}}</b>
</p>
<p>
<font>Major :</font><b>{{artextForm.major}}</b>
</p>
<el-collapse v-model="activeNames" class="auth_colla auth_colla_new">
<el-collapse-item :title="authorList_name" name="1">
<div v-for="(item, index) in artextForm.authors" class="auth_mess">
<h4 style="font-weight: bolder;">
<img src="../../assets/img/state_one.png" v-if="item.isSuper" style="width: 15px;margin: 0 2px 0 0;vertical-align: text-bottom;">
{{item.firstname}} {{item.lastname}} {{item.isSuper?'#':''}}{{item.isReport?'*':''}}
</h4>
<div>
<p v-if="item.email">
<img src="../../assets/img/state_email.png" v-if="item.isReport" style="width: 14px;margin: 0 8px 0 0;vertical-align: text-bottom;">
<font>Email : </font>{{item.email}}
</p>
<p v-if="item.orcid">
<font>ORCID iD : </font>{{item.orcid}}
</p>
<p>
<font>First author : </font>
<b v-if="item.isSuper">Yes</b>
<b v-if="!item.isSuper">No</b>
</p>
<p>
<font>Corresponding Author :</font>
<b v-if="item.isReport">Yes</b>
<b v-if="!item.isReport">No</b>
</p>
<p v-if="item.address">
<font>Address : </font>{{item.address}}
</p>
<p v-if="item.company">
<font>Institution : </font>{{item.company}}
</p>
<p v-if="item.department">
<font>Department : </font>{{item.department}}
</p>
<p v-if="item.title">
<font>Title : </font>{{item.title}}
</p>
<p v-if="item.country">
<font>Country : </font>{{item.country}}
</p>
</div>
</div>
</el-collapse-item>
</el-collapse>
<p style="margin-top: 15px;">
<font>Abstrart :</font><b>{{artextForm.abstrart}}</b>
</p>
<p v-if="artextForm.keyWords">
<font>KeyWords :</font><b>{{artextForm.keyWords}}</b>
</p>
<p v-if="artextForm.fund">
<font>Fund :</font><b>{{artextForm.fund}}</b>
</p>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="artextVisible=false">OK</el-button>
</span>
</el-dialog>
<!-- 文章文件 -->
<el-dialog title="Basic information files" :visible.sync="artfileVisible" width="600px">
<div class="art_file" style="margin-top: 0;border-top-color:#fff;padding-top: 0;">
<h4 v-if="coverLetterFileList">Cover letter : </h4>
<p v-if="coverLetterFileList">
<a v-for="item in coverLetterFileList" :href="mediaUrl + item.file_url">
<img src="../../assets/img/icon_0.png">
<span>
<font>Uploader : </font>{{item.username}}
<i><i class="el-icon-time"></i>{{formatDate(item.ctime)}}</i>
</span>
</a>
</p>
<br clear="both" v-if="coverLetterFileList">
<h4 v-if="picturesAndTablesFileList">Figures : </h4>
<p v-if="picturesAndTablesFileList">
<a v-for="item in picturesAndTablesFileList" :href="mediaUrl + item.file_url">
<img src="../../assets/img/icon_0.png">
<span>
<font>Uploader : </font>{{item.username}}
<i><i class="el-icon-time"></i>{{formatDate(item.ctime)}}</i>
</span>
</a>
</p>
<br clear="both" v-if="picturesAndTablesFileList">
<h4>Title page : </h4>
<p>
<a v-for="item in totalpageFileList" :href="mediaUrl + item.file_url">
<img src="../../assets/img/icon_0.png">
<span>
<font>Uploader : </font>{{item.username}}
<i><i class="el-icon-time"></i>{{formatDate(item.ctime)}}</i>
</span>
</a>
</p>
<br clear="both">
<h4>Manuscirpt : </h4>
<p>
<a v-for="item in manuscirptFileList" :href="mediaUrl + item.file_url">
<img src="../../assets/img/icon_0.png">
<span>
<font>Uploader : </font>{{item.username}}
<i><i class="el-icon-time"></i>{{formatDate(item.ctime)}}</i>
</span>
</a>
</p>
<br clear="both">
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="artfileVisible=false">OK</el-button>
</span>
</el-dialog>
</div>
</template>
@@ -58,10 +234,13 @@
name: 'articleList',
data() {
return {
baseUrl: this.Common.baseUrl,
mediaUrl: this.Common.mediaUrl,
items: '',
query: {
username: localStorage.getItem('U_name'),
journal: localStorage.getItem('ms_journal_alias') ? parseInt(localStorage.getItem('ms_journal_alias')) : 0,
// journal: localStorage.getItem('ms_journal_alias') ? parseInt(localStorage.getItem('ms_journal_alias')) : 0,
journal: 0,
name: '',
state: 0,
pageIndex: 1,
@@ -70,11 +249,17 @@
tableData: [],
multipleSelection: [],
delList: [],
activeNames: [],
artextForm: {},
coverLetterFileList: [],
picturesAndTablesFileList: [],
totalpageFileList: [],
manuscirptFileList: [],
authorList_name: '',
editVisible: false,
artextVisible: false,
artfileVisible: false,
Total: 0
// form: {},
// idx: -1,
// id: -1
};
},
created() {
@@ -93,13 +278,20 @@
console.log(err);
});
},
// 获取数据
// 获取文章列表数据
getdate() {
this.$api
.post('api/Article/getArticle', this.query)
.then(res => {
console.log(res);
this.Total = res.total;
for (let 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.tableData = res.data;
})
.catch(err => {
@@ -170,12 +362,238 @@
if (row.editor_act == 1) {
return 'hasChange-row';
}
}
},
// 点击稿件进程
esy_mtps(e) {
this.$router.push({
path: 'articleProcess',
query: {
id: e
}
});
},
// 点击稿件内容
esy_deta(e) {
this.$api
.post('api/Article/getArticleDetail', {
articleId: e,
human: 'author'
})
.then(res => {
this.artextForm = res.article
this.artextForm.major = res.major;
this.artextForm.authors = []
let alist = res.authors;
let alist_name = [];
for (let i in alist) {
this.artextForm.authors.push({
art_aut_id: alist[i].art_aut_id,
firstname: alist[i].firstname,
lastname: alist[i].lastname,
orcid: alist[i].orcid,
company: alist[i].company,
department: alist[i].department,
title: alist[i].author_title,
country: alist[i].country,
email: alist[i].email,
address: alist[i].address,
isSuper: alist[i].is_super == 1 ? true : false,
isReport: alist[i].is_report == 1 ? true : false
});
if (i == alist.length - 1) {
alist_name.push(alist[i].firstname + ' ' + alist[i].lastname)
} else {
alist_name.push(alist[i].firstname + ' ' + alist[i].lastname + ' , ')
}
}
this.authorList_name = "Author : " + alist_name.join("");
this.artextVisible = true
})
.catch(err => {
console.log(err);
});
},
// 点击稿件文件
esy_file(e) {
this.$api
.post('api/Article/getFilelistByArticleID', {
articleId: e
})
.then(res => {
this.coverLetterFileList = res.coverLetter;
this.picturesAndTablesFileList = res.picturesAndTables;
this.manuscirptFileList = res.manuscirpt;
this.totalpageFileList = res.totalpage;
this.artfileVisible = true
})
.catch(err => {
console.log(err);
});
},
formatDate(timestamp) {
var date = new Date(timestamp * 1000); //时间戳为10位需*1000时间戳为13位的话不需乘1000
var Y = date.getFullYear() + '-';
var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
var D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
var m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
return Y + M + D + ' ' + h + ':' + m + ':' + s;
},
},
filters: {
// 文章类型
ellipsis(value) {
let frag = '';
switch (value) {
case "A":
frag = 'ARTICLE';
break;
case 'B':
frag = 'REVIEW';
break;
case 'C':
frag = 'CASE REPORT';
break;
case 'P':
frag = 'RESEARCH PROPOSAL';
break;
case 'N':
frag = 'NEWS';
break;
case 'T':
frag = 'COMMENT';
break;
case 'CT':
frag = 'CORRECTION';
break;
case 'HT':
frag = 'HYPOTHESIS';
break;
case 'PF':
frag = 'PREFACE';
break;
case 'ET':
frag = 'EDITORIAL';
break;
case 'RP':
frag = 'REPORT';
break;
case 'EF':
frag = 'EMPIRICAL FORMULA';
break;
case 'EM':
frag = 'EVIDENCE-BASED MEDICINE';
break;
case 'EC':
frag = 'EXPERT CONSENSUS';
break;
case 'LTE':
frag = 'LETTER TO EDITOR';
break;
case 'QI':
frag = 'QUESTIONNAIRE INVESTIGATION';
break;
case 'PT':
frag = 'PROTOCOL';
break;
case 'CS':
frag = 'CASE SERIES';
break;
default:
frag = 'OTHERS';
}
return frag;
},
// 稿件状态
stateChange(value) {
let str = '';
switch (value) {
case 0:
str = 'Received';
break;
case 1:
str = 'With editor';
break;
case 2:
str = 'Under review';
break;
case 3:
str = 'Reject';
break;
case 4:
str = 'Revision';
break;
case 5:
str = 'Accepted';
break;
case 6:
str = 'Fininal decision';
break;
default:
str = 'error!!';
}
return str;
},
// 稿件状态颜色
stateColor(value) {
let str = '';
switch (value) {
case 0:
str = 'background-color: #B5C334;';
break;
case 1:
str = 'background-color: #f75822;';
break;
case 2:
str = 'background-color: #0ebee1;';
break;
case 3:
str = 'background-color: #f3170f;';
break;
case 4:
str = 'background-color: #5a90e1;';
break;
case 5:
str = 'background-color: #91cc75;';
break;
case 6:
str = 'background-color: #27727B;';
break;
default:
str = 'background-color: #888;';
}
return str;
},
journal_me(e) {
var frag = e.journalname;
if (e.special_num > 0) {
frag += "(Special Issues)";
}
return frag;
},
},
computed: {
}
};
</script>
<style scoped>
.container {
color: #333;
}
.handle-box {
margin-bottom: 20px;
}
@@ -212,9 +630,78 @@
.item {
margin-top: 5px;
}
</style>
<style>
.el-table .hasChange-row {
background-color: #ffebe8;
}
.mangu_list {
color: #333;
margin: 0 0 20px 0;
font-size: 14px;
position: relative;
border-radius: 5px;
border: 1px solid #EBEEF5;
}
.mangu_list .man_title {
margin: 15px 0 20px 0;
font-weight: bolder;
font-size: 16px;
}
.mangu_list .man_con {
margin: 0 0 10px 0;
}
.mangu_list .man_con>span {
color: #555;
font-weight: bolder;
border-radius: 5px;
margin: 0 50px 0 0;
/* background-color: #b9bcbd; */
/* padding: 2px 5px; */
/* font-size: 12px; */
}
.mangu_list .man_state {
position: absolute;
right: 0;
top: 0;
color: #fff;
padding: 5px 15px;
border-top-right-radius: 3px;
}
.mangu_list .man_progess {
padding: 15px 20px;
border-top: 1px solid #EBEEF5;
}
.mangu_list .man_progess i {
margin: 0 5px 0 0;
}
.mangu_list .man_btn {
color: #006699;
position: absolute;
bottom: 70px;
right: 20px;
}
.mangu_list .man_btn>span:hover {
text-decoration: underline;
cursor: pointer;
color: #06374e;
}
.mangu_list .man_btn i {
margin: 0 8px 0 0;
}
.mangu_list .man_btn font {
margin: 0 18px;
}
</style>