zydx-plus 1.32.177 → 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
|
@@ -73,11 +73,9 @@
|
|
|
73
73
|
</template>
|
|
74
74
|
|
|
75
75
|
<script>
|
|
76
|
-
import TableHead from "@/components/data_table/src/table_head.vue";
|
|
77
76
|
|
|
78
77
|
export default {
|
|
79
78
|
name: "zydx-question",
|
|
80
|
-
components: {TableHead},
|
|
81
79
|
data() {
|
|
82
80
|
return {
|
|
83
81
|
question: [],
|
|
@@ -162,7 +160,10 @@ export default {
|
|
|
162
160
|
if(i === 6) this.question[n].midScore = value === 0? '' : value
|
|
163
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)
|
|
164
162
|
this.question[n].count = (total === 0)? '-' : total
|
|
165
|
-
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
|
|
166
167
|
this.question[n].allScore = (total2 === 0)? '-' : total2
|
|
167
168
|
this.totalScore()
|
|
168
169
|
},
|
|
@@ -171,9 +172,9 @@ export default {
|
|
|
171
172
|
this.hardNum = 0
|
|
172
173
|
this.midNum = 0
|
|
173
174
|
this.question.forEach(x => {
|
|
174
|
-
this.easyNum += x.easyScore === '' ? 0: Number(x.easyScore)
|
|
175
|
-
this.hardNum += x.hardScore === '' ? 0: Number(x.hardScore)
|
|
176
|
-
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)
|
|
177
178
|
})
|
|
178
179
|
this.totalNum = this.easyNum + this.hardNum + this.midNum
|
|
179
180
|
},
|