测试报告倒序及分页修复

This commit is contained in:
pfl
2025-06-03 11:12:08 +08:00
parent c6a73afb76
commit eb58fd40c7
6 changed files with 23 additions and 8 deletions

View File

@@ -67,10 +67,10 @@ export function addTestReport(data) {
})
}
export function getTestReportList(id) {
export function getTestReportList(data) {
return request({
url: api.getTestReportList,
method: 'post',
data: {id}
params: data
})
}

View File

@@ -91,7 +91,7 @@ export default {
planId: '',
},
queryParams: {
planId: '',
id: '',
pageNum: 1,
pageSize: 10,
},
@@ -107,8 +107,8 @@ export default {
methods: {
getList() {
this.loading = true
this.queryParams.planId = this.planId
getTestReportList(this.queryParams.planId).then(res => {
this.queryParams.id = Number(this.planId)
getTestReportList(this.queryParams).then(res => {
this.list = res.rows
this.total = res.total
this.loading = false