Browse Source

修改TestDetail

Prevalence 7 năm trước cách đây
mục cha
commit
c22ad0997e
1 tập tin đã thay đổi với 4 bổ sung5 xóa
  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"
           :key="item.id"
           :to="`${$route.path}/unit/${item.id}`"
-          v-for="item in dlTestList"
+          v-for="item in testList"
           tag="div"
         >
           <div><strong>准确率测试 : #</strong> {{ item.id }}</div>
@@ -39,7 +39,7 @@ export default {
     projectDetail: {
       type: Object,
       default: () => ({
-        dlTestList: []
+        testList: []
       })
     },
     detailLoading: {
@@ -48,8 +48,8 @@ export default {
     }
   },
   computed: {
-    dlTestList() {
-      return this.sortTestList(this.projectDetail.dlTestList);
+    testList() {
+      return this.sortTestList(this.projectDetail.testList);
     }
   },
   data() {
@@ -60,7 +60,6 @@ export default {
   mixins: [timeMixins],
   methods: {
     sortTestList(list) {
-      console.log(list);
       if (!list) return [];
       const copyList = list.slice(0);
       copyList.sort((a, b) => b.time - a.time);