ali 2 سال پیش
والد
کامیت
820a6e2744
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 6 4
      src/components/Widgets/Test/ShowTestGradeForGrader/ShowTestGradeForGrader.vue

+ 6 - 4
src/components/Widgets/Test/ShowTestGradeForGrader/ShowTestGradeForGrader.vue

@@ -280,22 +280,24 @@ export default {
     confirmScores () {
       this.answerBook.loading = true
       APIGateway.answerBook.confirmScores(this.$route.params.answer_book_id)
-        .then((answerBook) => {
-          this.loadAnswerBook(answerBook)
+        .then(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
         .catch(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
     },
     confirmUngradable () {
       this.answerBook.loading = true
       APIGateway.answerBook.confirmUngradable(this.$route.params.answer_book_id)
-        .then((answerBook) => {
-          this.loadAnswerBook(answerBook)
+        .then(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
         .catch(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
     }