Jelajahi Sumber

修改TestDetail

Prevalence 7 tahun lalu
induk
melakukan
c22ad0997e
1 mengubah file dengan 4 tambahan dan 5 penghapusan
  1. 4 5
      src/views/teacher/DlWork/DLWorkDetail/DLTestDetail.vue

+ 4 - 5
src/views/teacher/DlWork/DLWorkDetail/DLTestDetail.vue

@@ -8,7 +8,7 @@
           class="test-item"
           class="test-item"
           :key="item.id"
           :key="item.id"
           :to="`${$route.path}/unit/${item.id}`"
           :to="`${$route.path}/unit/${item.id}`"
-          v-for="item in dlTestList"
+          v-for="item in testList"
           tag="div"
           tag="div"
         >
         >
           <div><strong>准确率测试 : #</strong> {{ item.id }}</div>
           <div><strong>准确率测试 : #</strong> {{ item.id }}</div>
@@ -39,7 +39,7 @@ export default {
     projectDetail: {
     projectDetail: {
       type: Object,
       type: Object,
       default: () => ({
       default: () => ({
-        dlTestList: []
+        testList: []
       })
       })
     },
     },
     detailLoading: {
     detailLoading: {
@@ -48,8 +48,8 @@ export default {
     }
     }
   },
   },
   computed: {
   computed: {
-    dlTestList() {
-      return this.sortTestList(this.projectDetail.dlTestList);
+    testList() {
+      return this.sortTestList(this.projectDetail.testList);
     }
     }
   },
   },
   data() {
   data() {
@@ -60,7 +60,6 @@ export default {
   mixins: [timeMixins],
   mixins: [timeMixins],
   methods: {
   methods: {
     sortTestList(list) {
     sortTestList(list) {
-      console.log(list);
       if (!list) return [];
       if (!list) return [];
       const copyList = list.slice(0);
       const copyList = list.slice(0);
       copyList.sort((a, b) => b.time - a.time);
       copyList.sort((a, b) => b.time - a.time);