编辑工作台
This commit is contained in:
@@ -238,11 +238,11 @@
|
||||
<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;" 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>
|
||||
</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 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.reviewScore)}}</b>
|
||||
</p>
|
||||
<p>
|
||||
<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].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 = []
|
||||
if (this.tableData[i].reports.length == 1) {
|
||||
@@ -1575,14 +1582,10 @@
|
||||
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
|
||||
}
|
||||
all += arry[i].rated
|
||||
};
|
||||
str = (all / person).toFixed(1)
|
||||
str = (all / arry.length).toFixed(1)
|
||||
return str;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user