Selaa lähdekoodia

[FIX] 评审显示异常

Kunduin 7 vuotta sitten
vanhempi
commit
dcb7984203

+ 1 - 1
src/components/CheckList/ResultCheckListItem.vue

@@ -50,7 +50,7 @@
         <span class="state state-error" v-else>ERROR</span>
         <span class="comments">{{ checkResultItem.teacherComment }}</span>
       </div>
-      <div v-else>
+      <div v-if="isReviewing">
         <div class="line-container">
           <b-checkbox
             class="checkbox-section"

+ 4 - 3
src/views/teacher/Review/ReviewDetail/GroupDocDetail/index.vue

@@ -92,9 +92,10 @@ export default {
       const { reviewId, groupId } = this.$route.params;
       postTeacherArgueResult(reviewId, groupId, checkListItem)
         .then(() =>
-          getTeacherReviewGroupDetail(reviewId, groupId).then(
-            resp => (this.detail = resp.data)
-          )
+          getTeacherReviewGroupDetail(reviewId, groupId).then(resp => {
+            this.detail = resp.data;
+            this.reviewingId = -1;
+          })
         )
         .catch(err =>
           this.$toast.open({