Pārlūkot izejas kodu

统计数据获取调整

zhangjie 1 gadu atpakaļ
vecāks
revīzija
b5e9fc2ec3

+ 1 - 0
src/features/invigilation/InvigilationDetail/InvigilationDetail.vue

@@ -194,6 +194,7 @@
           data-type="complete"
           :exam-id="filter.examId"
           :exam-activity-id="filter.examActivityId"
+          freshen
         ></summary-line>
       </div>
     </div>

+ 5 - 1
src/features/invigilation/common/mixins/summaryLineMixin.js

@@ -73,6 +73,10 @@ export default {
         return ["trouble", "complete", "progress"].includes(val);
       },
     },
+    freshen: {
+      type: Boolean,
+      default: false,
+    },
   },
   // mounted() {
   //   this.initData();
@@ -103,7 +107,7 @@ export default {
       const res = await examPropCount({
         examId: this.examId,
         examActivityId: this.examActivityId,
-        freshen: true,
+        freshen: this.freshen,
       }).catch(() => {});
       this.examPropData = (res && res.data && res.data.data) || {};
       if (this.examPropData["completionRate"])