fix: 修复分页功能未生效问题,移除前端排序参数

This commit is contained in:
wkc
2026-02-27 14:32:35 +08:00
parent daf00281cd
commit d77ba7011c

View File

@@ -19,7 +19,7 @@
:data-list="projectList" :data-list="projectList"
:total="total" :total="total"
:page-params="queryParams" :page-params="queryParams"
@pagination="getList" @pagination="handlePagination"
@enter="handleEnter" @enter="handleEnter"
@view-result="handleViewResult" @view-result="handleViewResult"
@re-analyze="handleReAnalyze" @re-analyze="handleReAnalyze"
@@ -94,9 +94,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
projectName: null, projectName: null,
status: null, status: null
orderByColumn: 'updateTime',
isAsc: 'desc'
}, },
// 标签页数量统计 // 标签页数量统计
tabCounts: { tabCounts: {
@@ -153,6 +151,14 @@ export default {
this.queryParams.pageNum = 1 this.queryParams.pageNum = 1
this.getList() this.getList()
}, },
/** 分页事件处理 */
handlePagination(pagination) {
if (pagination) {
this.queryParams.pageNum = pagination.pageNum
this.queryParams.pageSize = pagination.pageSize
}
this.getList()
},
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.projectForm = this.getEmptyForm() this.projectForm = this.getEmptyForm()