zydx-plus 1.32.178 → 1.32.179
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -160,7 +160,10 @@ export default {
|
|
|
160
160
|
if(i === 6) this.question[n].midScore = value === 0? '' : value
|
|
161
161
|
const total = (this.question[n].easy === ''? 0: this.question[n].easy) + (this.question[n].hard === ''? 0: this.question[n].hard) + (this.question[n].mid === ''? 0: this.question[n].mid)
|
|
162
162
|
this.question[n].count = (total === 0)? '-' : total
|
|
163
|
-
const
|
|
163
|
+
const num1 = this.question[n].easyScore === ''? 0: this.question[n].easyScore * this.question[n].easy
|
|
164
|
+
const num2 = this.question[n].hardScore === ''? 0: this.question[n].hardScore * this.question[n].hard
|
|
165
|
+
const num3 = this.question[n].midScore === ''? 0: this.question[n].midScore * this.question[n].mid
|
|
166
|
+
const total2 = num1 + num2 + num3
|
|
164
167
|
this.question[n].allScore = (total2 === 0)? '-' : total2
|
|
165
168
|
this.totalScore()
|
|
166
169
|
},
|
|
@@ -169,9 +172,9 @@ export default {
|
|
|
169
172
|
this.hardNum = 0
|
|
170
173
|
this.midNum = 0
|
|
171
174
|
this.question.forEach(x => {
|
|
172
|
-
this.easyNum += x.easyScore === '' ? 0: Number(x.easyScore)
|
|
173
|
-
this.hardNum += x.hardScore === '' ? 0: Number(x.hardScore)
|
|
174
|
-
this.midNum += x.midScore === '' ? 0: Number(x.midScore)
|
|
175
|
+
this.easyNum += x.easyScore === '' ? 0: Number(x.easyScore) * Number(x.easy)
|
|
176
|
+
this.hardNum += x.hardScore === '' ? 0: Number(x.hardScore) * Number(x.hard)
|
|
177
|
+
this.midNum += x.midScore === '' ? 0: Number(x.midScore) * Number(x.mid)
|
|
175
178
|
})
|
|
176
179
|
this.totalNum = this.easyNum + this.hardNum + this.midNum
|
|
177
180
|
},
|