测试报告倒序及分页修复
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user