编辑工作台

This commit is contained in:
徐哼唧L
2023-06-21 16:06:58 +08:00
parent 75a08bbe70
commit d3593e6eb2

View File

@@ -1,8 +1,8 @@
<template>
<div style="min-width: 1200px;">
<div class="handle-box">
<el-badge :value="item.num" type="warning" v-for="item in statList" :hidden='item.num==0||item.state==3||item.state==5'
style="margin-right: 25px;">
<el-badge :value="item.num" type="warning" v-for="item in statList"
:hidden='item.num==0||item.state==3||item.state==5' style="margin-right: 25px;">
<el-button @click="query.state=item.state;getdate()" :type="query.state==item.state?'primary':''">
{{$t('artstate.state'+item.state)}}
</el-button>
@@ -92,15 +92,17 @@
<div style="display: flex;margin-left: auto;">
<div class="fixCard" style="width: 26%;">
<b style="font-size: 16px;letter-spacing: -0.5px;">Manuscript File</b>
<b style="font-size: 16px;letter-spacing: -0.5px;">Manuscript Files</b>
<p style="height: 10px;"></p>
<div class="fi_new" v-if="item.file.coverLetter">
<p>
Cover letter
<sup style="color: #006699;">({{item.file.coverLetter.length}})</sup> :
<b class="btnUpDown el-icon-arrow-up" v-if="item.file_cover==0"
<b class="btnUpDown el-icon-arrow-up"
v-if="item.file_cover==0&&item.file.coverLetter.length>1"
@click="changeFileUpdown(1,ikgn,'file_cover')"></b>
<b class="btnUpDown el-icon-arrow-down" v-if="item.file_cover==1"
<b class="btnUpDown el-icon-arrow-down"
v-if="item.file_cover==1&&item.file.coverLetter.length>1"
@click="changeFileUpdown(0,ikgn,'file_cover')"></b>
</p>
<div v-for="ikrm in item.file.coverLetter" v-if="item.file_cover==1">
@@ -118,9 +120,11 @@
<p>
Figures
<sup style="color: #006699;">({{item.file.picturesAndTables.length}})</sup> :
<b class="btnUpDown el-icon-arrow-up" v-if="item.file_figer==0"
<b class="btnUpDown el-icon-arrow-up"
v-if="item.file_figer==0&&item.file.picturesAndTables.length>1"
@click="changeFileUpdown(1,ikgn,'file_figer')"></b>
<b class="btnUpDown el-icon-arrow-down" v-if="item.file_figer==1"
<b class="btnUpDown el-icon-arrow-down"
v-if="item.file_figer==1&&item.file.picturesAndTables.length>1"
@click="changeFileUpdown(0,ikgn,'file_figer')"></b>
</p>
<div v-for="ikrm in item.file.picturesAndTables" v-if="item.file_figer==1">
@@ -138,9 +142,11 @@
<p>
Title page
<sup style="color: #006699;">({{item.file.totalpage.length}})</sup> :
<b class="btnUpDown el-icon-arrow-up" v-if="item.file_total==0"
<b class="btnUpDown el-icon-arrow-up"
v-if="item.file_total==0&&item.file.totalpage.length>1"
@click="changeFileUpdown(1,ikgn,'file_total')"></b>
<b class="btnUpDown el-icon-arrow-down" v-if="item.file_total==1"
<b class="btnUpDown el-icon-arrow-down"
v-if="item.file_total==1&&item.file.totalpage.length>1"
@click="changeFileUpdown(0,ikgn,'file_total')"></b>
</p>
<div v-for="ikrm in item.file.totalpage" v-if="item.file_total==1">
@@ -158,9 +164,11 @@
<p>
Manuscirpt
<sup style="color: #006699;">({{item.file.manuscirpt.length}})</sup> :
<b class="btnUpDown el-icon-arrow-up" v-if="item.file_maun==0"
<b class="btnUpDown el-icon-arrow-up"
v-if="item.file_maun==0&&item.file.manuscirpt.length>1"
@click="changeFileUpdown(1,ikgn,'file_maun')"></b>
<b class="btnUpDown el-icon-arrow-down" v-if="item.file_maun==1"
<b class="btnUpDown el-icon-arrow-down"
v-if="item.file_maun==1&&item.file.manuscirpt.length>1"
@click="changeFileUpdown(0,ikgn,'file_maun')"></b>
</p>
<div v-for="ikrm in item.file.manuscirpt" v-if="item.file_maun==1">
@@ -178,9 +186,11 @@
<p>
Supplementary Material
<sup style="color: #006699;">({{item.file.supplementary.length}})</sup> :
<b class="btnUpDown el-icon-arrow-up" v-if="item.file_supper==0"
<b class="btnUpDown el-icon-arrow-up"
v-if="item.file_supper==0&&item.file.supplementary.length>1"
@click="changeFileUpdown(1,ikgn,'file_supper')"></b>
<b class="btnUpDown el-icon-arrow-down" v-if="item.file_supper==1"
<b class="btnUpDown el-icon-arrow-down"
v-if="item.file_supper==1&&item.file.supplementary.length>1"
@click="changeFileUpdown(0,ikgn,'file_supper')"></b>
</p>
<div v-for="ikrm in item.file.supplementary" v-if="item.file_supper==1">
@@ -228,15 +238,24 @@
<div class="fixCard" style="width: 18%;">
<b style="font-size: 16px;letter-spacing: -0.5px;">Reviewer Decision</b>
<p style="height: 5px;"></p>
<p v-for="(iken, index) in item.review" style="line-height: 28px;">
<p v-for="(iken, index) in item.review" style="line-height: 28px;" v-if="iken.rated!=null">
Reviewer{{index+1}} score : <b style="color: #db890e;font-size: 18px;">{{iken.rated}}</b>
</p>
<p v-if="item.review.length>0" style="font-size: 15px;margin: 0 0 5px 0;">
Average : <b style="font-size: 18px;color: #db890e;">{{avegeCount(item.review)}}</b>
</p>
<p>
<el-button v-for="(iken, index) in item.review" :type="iken.state==2?'danger':'success'" circle
style="padding: 5px;"></el-button>
<span v-for="(iken, index) in item.review" style="display: inline-block;padding: 5px;">
<font v-if="iken.state==0"
style="width: 12px;height: 12px;display: block;border-radius: 10px;background-color: #ccc;">
</font>
<font v-if="iken.state==1||iken.state==3"
style="width: 12px;height: 12px;display: block;border-radius: 10px;background-color: #67c23a;">
</font>
<font v-if="iken.state==2"
style="width: 12px;height: 12px;display: block;border-radius: 10px;background-color: #f56c6c;">
</font>
</span>
</p>
<p style="margin-top: 10px;">
<b @click="articleReviewer(item)" class="btnCliArt">
@@ -712,14 +731,16 @@
<el-dialog title="" :visible.sync="communVisible" width="800px">
<p style="word-break: normal;margin-bottom: 20px;font-size: 15px;font-weight: bold;letter-spacing: -0.5px;line-height: 22px;">
<p
style="word-break: normal;margin-bottom: 20px;font-size: 15px;font-weight: bold;letter-spacing: -0.5px;line-height: 22px;">
{{msgform.title}}
</p>
<timetalk :talkMsgs="talkMsgs" :msgform="msgform"></timetalk>
</el-dialog>
<el-dialog title="Manuscript Tracking" :visible.sync="trackVisible" width="700px">
<p style="word-break: normal;margin-bottom: 20px;font-size: 15px;font-weight: bold;letter-spacing: -0.5px;line-height: 22px;">
<p
style="word-break: normal;margin-bottom: 20px;font-size: 15px;font-weight: bold;letter-spacing: -0.5px;line-height: 22px;">
{{timeLaxis.title}}
</p>
<div style="">
@@ -945,11 +966,40 @@
this.Total = res.total;
this.tableData = res.data;
for (let i = 0; i < this.tableData.length; i++) {
this.tableData[i].file_cover = 1
this.tableData[i].file_figer = 1
this.tableData[i].file_total = 1
this.tableData[i].file_maun = 1
this.tableData[i].file_supper = 1
if (this.tableData[i].file.coverLetter) {
if (this.tableData[i].file.coverLetter.length > 1) {
this.tableData[i].file_cover = 0
}
}
if (this.tableData[i].file.picturesAndTables) {
if (this.tableData[i].file.picturesAndTables.length > 1) {
this.tableData[i].file_figer = 0
}
}
if (this.tableData[i].file.totalpage) {
if (this.tableData[i].file.totalpage.length > 1) {
this.tableData[i].file_total = 0
}
}
if (this.tableData[i].file.manuscirpt) {
if (this.tableData[i].file.coverLetter || this.tableData[i].file.picturesAndTables || this.tableData[i]
.file.totalpage || this.tableData[i].file.supplementary) {
if(this.tableData[i].file.manuscirpt.length > 1){
this.tableData[i].file_maun = 0
}
}
}
if (this.tableData[i].file.supplementary) {
if (this.tableData[i].file.supplementary.length > 1) {
this.tableData[i].file_supper = 0
}
}
this.tableData[i].reportList = []
if (this.tableData[i].reports.length == 1) {
for (let j = 0; j < this.tableData[i].reports.length; j++) {
@@ -997,7 +1047,6 @@
changeFileUpdown(e, i, m) {
this.tableData[i][m] = e
this.$forceUpdate()
console.log(this.tableData[i][m])
},
//文章送审
articleReviewer(row) {
@@ -1526,10 +1575,14 @@
avegeCount(arry) {
let str = 0;
let all = 0
let person = 0
for (let i = 0; i < arry.length; i++) {
if (arry[i].rated != null) {
all += arry[i].rated
person = person + 1
}
};
str = (all / arry.length).toFixed(1)
str = (all / person).toFixed(1)
return str;
},