diff --git a/src/components/page/articleListEditor_A.vue b/src/components/page/articleListEditor_A.vue index 4f51f96..e4dccc4 100644 --- a/src/components/page/articleListEditor_A.vue +++ b/src/components/page/articleListEditor_A.vue @@ -238,11 +238,11 @@
+
Reviewer{{index+1}} score : {{iken.rated}}
-- Average : {{avegeCount(item.review)}} +
+ Average : {{avegeCount(item.reviewScore)}}
@@ -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; },