Browse Source

删除多余代码

林旭祥 8 tháng trước cách đây
mục cha
commit
8a9a4c4154
1 tập tin đã thay đổi với 0 bổ sung28 xóa
  1. 0 28
      src/views/train/run.vue

+ 0 - 28
src/views/train/run.vue

@@ -708,33 +708,6 @@ const faceStudentListLongRun: any = computed(() => {
   }
 });
 
-/**
-* 成绩翻页
-*/
-const getScroll = (event?: any) => {
-  if (studentPage.value.current == studentPage.value.pages) {
-    return false;
-  }
-  let obj = event.target;
-  let scrollHeight = obj.scrollHeight;
-  let scrollTop = obj.scrollTop;
-  let clientHeight = obj.clientHeight;
-  //提前100高度加载数据
-  if (scrollTop + clientHeight + 100 >= scrollHeight) {
-    console.log('到底了!')
-    //继续加载下一页
-    if (debounceTime.value) {
-      clearTimeout(debounceTime.value)
-    }
-    debounceTime.value = setTimeout(() => {
-      studentPage.value.current++;
-      getReportList();
-    }, 500)
-  } else {
-    console.log('没到底')
-  }
-};
-
 onBeforeMount(() => {
   parameter.value = route.query;
   let project = parameter.value.project;
@@ -769,7 +742,6 @@ onBeforeMount(() => {
     getMessage(data);
   });
   initSpeech();
-  getReportList();
 })
 
 onUnmounted(() => {