编辑工作台

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