parent
11f392000c
commit
86f4712c05
|
@ -140,15 +140,18 @@ export default {
|
||||||
computed: {},
|
computed: {},
|
||||||
// 监控data中的数据变化
|
// 监控data中的数据变化
|
||||||
watch: {
|
watch: {
|
||||||
tableData: function() {
|
tableData: {
|
||||||
let sum = 0
|
deep: true,
|
||||||
this.tableData.forEach(element => {
|
handler: function() {
|
||||||
if (element.totalScore) {
|
let sum = 0
|
||||||
console.log('单条总分数', element.totalScore)
|
this.tableData.forEach(element => {
|
||||||
sum = sum + element.totalScore
|
if (element.totalScore) {
|
||||||
}
|
console.log('单条总分数', element.totalScore)
|
||||||
})
|
sum = sum + element.totalScore
|
||||||
this.form.totalScore = sum
|
}
|
||||||
|
})
|
||||||
|
this.form.totalScore = sum
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 方法集合
|
// 方法集合
|
||||||
|
@ -181,7 +184,6 @@ export default {
|
||||||
if (t1.topicType === t2.topicType) {
|
if (t1.topicType === t2.topicType) {
|
||||||
this.$set(this.tableData[t1Index], 'topicNum', t2.topicNum)
|
this.$set(this.tableData[t1Index], 'topicNum', t2.topicNum)
|
||||||
this.$set(this.tableData[t1Index], 'topicScore', t2.topicScore)
|
this.$set(this.tableData[t1Index], 'topicScore', t2.topicScore)
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue