优化滚动条

This commit is contained in:
“zouyf” 2024-11-13 14:08:28 +08:00
parent f899729db0
commit b973fd685c
1 changed files with 5 additions and 1 deletions

View File

@ -94,6 +94,7 @@
:data="workResource.entpCourseWorkList" :data="workResource.entpCourseWorkList"
style="width: 100%; height: 100%;" style="width: 100%; height: 100%;"
v-loading="pageParams.loading" v-loading="pageParams.loading"
ref="tableRef"
> >
<el-table-column type="index" width="60" /> <el-table-column type="index" width="60" />
<el-table-column align="left" > <el-table-column align="left" >
@ -976,11 +977,14 @@ const showExamAnalyseDrawer = (row) => {
}) })
} }
const tableRef = ref();
const getPaginationList = ( page, limit ) => { const getPaginationList = ( page, limit ) => {
paginationParams.pageNum = page; paginationParams.pageNum = page;
paginationParams.pageSize = limit; paginationParams.pageSize = limit;
console.log(page, limit) //console.log(page, limit)
handleQueryFromEntpCourseWork(0); handleQueryFromEntpCourseWork(0);
//
tableRef.value.setScrollTop(0);
} }
const pageLoad = async() => { const pageLoad = async() => {