|
@@ -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(() => {
|