|
|
@@ -18,7 +18,7 @@
|
|
|
{{ toShamsi(answerBook.attending_start_time) }}
|
|
|
</div>
|
|
|
<div class="col-md-4 col-12">
|
|
|
- {{ answerBook.test_info.test_set_info.test_questions.length }}
|
|
|
+ {{ answerBook.test_info.test_questions_info.list.length }}
|
|
|
سوال
|
|
|
</div>
|
|
|
<div class="col-md-4 col-12">
|
|
|
@@ -120,7 +120,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
- // this.getAnswerBook()
|
|
|
this.getTestQuestions()
|
|
|
this.mounted = true
|
|
|
},
|
|
|
@@ -189,25 +188,6 @@ export default {
|
|
|
backToClassList () {
|
|
|
this.$router.push({ name: 'UserPanel.Profile.AllClassrooms' })
|
|
|
},
|
|
|
- getAnswerBook () {
|
|
|
- this.answerBook.loading = true
|
|
|
- APIGateway.answerBook.get(this.$route.params.answer_book_id)
|
|
|
- .then((answerBook) => {
|
|
|
- this.answerBook = new AnswerBook(answerBook)
|
|
|
- if (this.answerBook.test_info.test_questions_length === 0) {
|
|
|
- this.$q.notify({
|
|
|
- type: 'negative',
|
|
|
- message: 'لیست سوالات آزمون خالی است.'
|
|
|
- })
|
|
|
- this.backToClassList()
|
|
|
- }
|
|
|
- this.answerBook.loading = false
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.answerBook.loading = false
|
|
|
- this.backToClassList()
|
|
|
- })
|
|
|
- },
|
|
|
initPageFromAnswerBook (answerBook) {
|
|
|
this.answerBook = new AnswerBook(answerBook)
|
|
|
this.answerBook.loading = false
|