|
@@ -232,7 +232,10 @@
|
|
|
>上次做到</span
|
|
>上次做到</span
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="btn_div">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="btn_div"
|
|
|
|
|
+ v-if="section.simulateStatus !== 1"
|
|
|
|
|
+ >
|
|
|
<!-- 正确率
|
|
<!-- 正确率
|
|
|
<span style="color: rgb(52, 216, 71)"
|
|
<span style="color: rgb(52, 216, 71)"
|
|
|
>{{
|
|
>{{
|
|
@@ -298,7 +301,11 @@
|
|
|
)
|
|
)
|
|
|
"
|
|
"
|
|
|
class="btn"
|
|
class="btn"
|
|
|
- >重新做题</el-button
|
|
|
|
|
|
|
+ >{{
|
|
|
|
|
+ section.simulateStatus === 1
|
|
|
|
|
+ ? "开始做题"
|
|
|
|
|
+ : "重新做题"
|
|
|
|
|
+ }}</el-button
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -359,6 +366,7 @@
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
<div
|
|
<div
|
|
|
|
|
+ v-if="section.simulateStatus !== 1"
|
|
|
style="width: auto; padding: 0px 14px"
|
|
style="width: auto; padding: 0px 14px"
|
|
|
class="btn_div"
|
|
class="btn_div"
|
|
|
>
|
|
>
|
|
@@ -409,7 +417,11 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="doRepeat(section, item.majorId, 0)"
|
|
@click="doRepeat(section, item.majorId, 0)"
|
|
|
class="btn"
|
|
class="btn"
|
|
|
- >重新做题
|
|
|
|
|
|
|
+ >{{
|
|
|
|
|
+ section.simulateStatus === 1
|
|
|
|
|
+ ? "开始做题"
|
|
|
|
|
+ : "重新做题"
|
|
|
|
|
+ }}
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -434,6 +446,7 @@
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
<div
|
|
<div
|
|
|
|
|
+ v-if="item.simulateStatus !== 1"
|
|
|
style="width: auto; padding: 0px 14px"
|
|
style="width: auto; padding: 0px 14px"
|
|
|
class="btn_div"
|
|
class="btn_div"
|
|
|
>
|
|
>
|
|
@@ -479,7 +492,11 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="doRepeat(item, 0, 0)"
|
|
@click="doRepeat(item, 0, 0)"
|
|
|
class="btn"
|
|
class="btn"
|
|
|
- >重新做题</el-button
|
|
|
|
|
|
|
+ >{{
|
|
|
|
|
+ item.simulateStatus === 1
|
|
|
|
|
+ ? "开始做题"
|
|
|
|
|
+ : "重新做题"
|
|
|
|
|
+ }}</el-button
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -770,6 +787,7 @@ export default {
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: "/bank-exam/" + this.goodsId,
|
|
path: "/bank-exam/" + this.goodsId,
|
|
|
query: {
|
|
query: {
|
|
|
|
|
+ simulateStatus: this.simulateStatus || 0,
|
|
|
orderGoodsId: this.orderGoodsId,
|
|
orderGoodsId: this.orderGoodsId,
|
|
|
number: this.activeNum,
|
|
number: this.activeNum,
|
|
|
moduleId: 0,
|
|
moduleId: 0,
|
|
@@ -941,6 +959,7 @@ export default {
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: "/bank-exam/" + this.goodsId,
|
|
path: "/bank-exam/" + this.goodsId,
|
|
|
query: {
|
|
query: {
|
|
|
|
|
+ simulateStatus: this.simulateStatus || 0,
|
|
|
examId: section.examId || section.majorId,
|
|
examId: section.examId || section.majorId,
|
|
|
moduleId: moduleId || 0,
|
|
moduleId: moduleId || 0,
|
|
|
chapterId: chapterId || 0,
|
|
chapterId: chapterId || 0,
|
|
@@ -953,6 +972,7 @@ export default {
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: "/bank-exam/" + this.goodsId,
|
|
path: "/bank-exam/" + this.goodsId,
|
|
|
query: {
|
|
query: {
|
|
|
|
|
+ simulateStatus: this.simulateStatus || 0,
|
|
|
examId: examInfo.examId,
|
|
examId: examInfo.examId,
|
|
|
moduleId: examInfo.moduleExamId,
|
|
moduleId: examInfo.moduleExamId,
|
|
|
chapterId: examInfo.chapterExamId,
|
|
chapterId: examInfo.chapterExamId,
|
|
@@ -1021,9 +1041,11 @@ export default {
|
|
|
showClose: false,
|
|
showClose: false,
|
|
|
})
|
|
})
|
|
|
.then((_) => {
|
|
.then((_) => {
|
|
|
|
|
+ console.log(section, "aaa");
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: "/bank-exam/" + this.goodsId,
|
|
path: "/bank-exam/" + this.goodsId,
|
|
|
query: {
|
|
query: {
|
|
|
|
|
+ simulateStatus: this.simulateStatus || 0,
|
|
|
examId: section.examId || section.majorId,
|
|
examId: section.examId || section.majorId,
|
|
|
moduleId: moduleId || 0,
|
|
moduleId: moduleId || 0,
|
|
|
chapterId: chapterId || 0,
|
|
chapterId: chapterId || 0,
|
|
@@ -1035,6 +1057,7 @@ export default {
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: "/bank-exam-all-explain/" + section.recordId,
|
|
path: "/bank-exam-all-explain/" + section.recordId,
|
|
|
query: {
|
|
query: {
|
|
|
|
|
+ simulateStatus: this.simulateStatus || 0,
|
|
|
examId: section.examId || section.majorId,
|
|
examId: section.examId || section.majorId,
|
|
|
moduleId: moduleId || 0,
|
|
moduleId: moduleId || 0,
|
|
|
chapterId: chapterId || 0,
|
|
chapterId: chapterId || 0,
|
|
@@ -1068,6 +1091,7 @@ export default {
|
|
|
getExamDetail(exam_id) {
|
|
getExamDetail(exam_id) {
|
|
|
return new Promise((resolve) => {
|
|
return new Promise((resolve) => {
|
|
|
this.$request.getExamDetail(exam_id).then((res) => {
|
|
this.$request.getExamDetail(exam_id).then((res) => {
|
|
|
|
|
+ this.simulateStatus = res.data.simulateStatus;
|
|
|
resolve(res.data.answerNum);
|
|
resolve(res.data.answerNum);
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|