|
@@ -672,6 +672,10 @@
|
|
|
if (newPaper.item.length) {
|
|
|
newPaper.item.forEach(i => {
|
|
|
if (!i.score) i.score = 0
|
|
|
+ // 如果有综合题 则将小题的分数进行累加作为综合题的分数
|
|
|
+ if(i.type === 'compose' && i.children.length){
|
|
|
+ i.score = i.children.reduce((a,b) => a + b.score , 0)
|
|
|
+ }
|
|
|
})
|
|
|
this.orderList.push({
|
|
|
list: newPaper.item
|