优化滚动条

This commit is contained in:
“zouyf” 2024-11-13 14:36:39 +08:00
parent 4feeb2ef56
commit 3195159a1a
1 changed files with 26 additions and 28 deletions

View File

@ -94,6 +94,7 @@
:data="workResource.entpCourseWorkList"
style="width: 100%; height: 100%;"
v-loading="pageParams.loading"
ref="tableRef"
>
<el-table-column type="index" width="60" />
<el-table-column align="left" >
@ -510,10 +511,8 @@ function Apis(key) {
})
}
const handleQueryFromEntpCourseWork= async (queryType) => {
pageParams.value.loading = true;
// ( warn: )
// if (this.courseObj.edusubject=='' && this.courseObj.edustage=='') {
// // [+][+]
@ -553,16 +552,12 @@ const handleQueryFromEntpCourseWork= async (queryType) => {
pageParams.value.originCount = workResource.entpCourseWorkList.length;
pageParams.value.total = parseInt(res.msg);
paginationParams.pageNum = Math.ceil(parseInt(res.msg)/paginationParams.pageSize);
console.log('first->', pageParams.value, paginationParams);
//console.log('first->', pageParams.value, paginationParams);
}
}
pageParams.value.loading = false;
});
//const entpcourseworkres = await listEntpcourseworkNew(queryForm);
// const data = entpcourseworkres.data;
}
//
@ -982,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() => {