编辑工作台

This commit is contained in:
徐哼唧L
2023-06-21 16:20:33 +08:00
parent 2448358bb9
commit 6a924b067e

View File

@@ -238,11 +238,11 @@
<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;" v-if="iken.rated!=null"> <p v-for="(iken, index) in item.reviewScore" style="line-height: 28px;">
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.reviewScore.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.reviewScore)}}</b>
</p> </p>
<p> <p>
<span v-for="(iken, index) in item.review" style="display: inline-block;padding: 5px;"> <span v-for="(iken, index) in item.review" style="display: inline-block;padding: 5px;">
@@ -999,6 +999,13 @@
this.tableData[i].file_supper = 0 this.tableData[i].file_supper = 0
} }
} }
this.tableData[i].reviewScore = []
for (let j = 0; j < this.tableData[i].review.length; j++){
if(this.tableData[i].review[j].rated!=null){
this.tableData[i].reviewScore.push(this.tableData[i].review[j])
}
}
this.tableData[i].reportList = [] this.tableData[i].reportList = []
if (this.tableData[i].reports.length == 1) { if (this.tableData[i].reports.length == 1) {
@@ -1575,14 +1582,10 @@
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++) {
if (arry[i].rated != null) { all += arry[i].rated
all += arry[i].rated
person = person + 1
}
}; };
str = (all / person).toFixed(1) str = (all / arry.length).toFixed(1)
return str; return str;
}, },