|
@@ -92,7 +92,8 @@
|
|
{{
|
|
{{
|
|
tab.examInfo
|
|
tab.examInfo
|
|
? toFixed(
|
|
? toFixed(
|
|
- (tab.examInfo.doNum / tab.examInfo.totalNum) *
|
|
|
|
|
|
+ (tab.examInfo.rightNum /
|
|
|
|
+ tab.examInfo.totalNum) *
|
|
100
|
|
100
|
|
)
|
|
)
|
|
: "-"
|
|
: "-"
|
|
@@ -114,7 +115,10 @@
|
|
{{ val }}
|
|
{{ val }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="random-box-bom-btn" @click="beginExam">
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="random-box-bom-btn"
|
|
|
|
+ @click="beginExam(tab.examInfo)"
|
|
|
|
+ >
|
|
开始做题
|
|
开始做题
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -721,7 +725,10 @@ export default {
|
|
query,
|
|
query,
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- beginExam() {
|
|
|
|
|
|
+ beginExam({ rightNum, totalNum }) {
|
|
|
|
+ if (rightNum == totalNum) {
|
|
|
|
+ return this.$message.success("题目已经做完了!");
|
|
|
|
+ }
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "/bank-exam/" + this.goodsId,
|
|
path: "/bank-exam/" + this.goodsId,
|
|
query: {
|
|
query: {
|