From b973fd685cc5d900d8aed9d77966ddb54b358abd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9Czouyf=E2=80=9D?= <80906036@qq.com>
Date: Wed, 13 Nov 2024 14:08:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=BB=9A=E5=8A=A8=E6=9D=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/classTask/container/newTask/taskTypeView.vue | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue
index f8d13ce..e817af6 100644
--- a/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue
+++ b/src/renderer/src/views/classTask/container/newTask/taskTypeView.vue
@@ -94,6 +94,7 @@
:data="workResource.entpCourseWorkList"
style="width: 100%; height: 100%;"
v-loading="pageParams.loading"
+ ref="tableRef"
>
@@ -976,11 +977,14 @@ const showExamAnalyseDrawer = (row) => {
})
}
+const tableRef = ref();
const getPaginationList = ( page, limit ) => {
paginationParams.pageNum = page;
paginationParams.pageSize = limit;
- console.log(page, limit)
+ //console.log(page, limit)
handleQueryFromEntpCourseWork(0);
+ // 重置滚动条至顶部
+ tableRef.value.setScrollTop(0);
}
const pageLoad = async() => {