mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
fix: 设置分页10条每页无效的问题
This commit is contained in:
parent
1ca4c67f7e
commit
7367a769b1
@ -212,7 +212,7 @@ export default {
|
||||
keys: this.keys,
|
||||
archived: 'yes',
|
||||
page: Math.max(this.page, 1),
|
||||
pagesize: Math.max($A.runNum(this.pageSize), 20),
|
||||
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
||||
},
|
||||
}).then(({data}) => {
|
||||
this.loadIng--;
|
||||
|
||||
@ -63,6 +63,7 @@ export default {
|
||||
|
||||
lists: [],
|
||||
listPage: 1,
|
||||
listPageSize: 20,
|
||||
hasMorePages: false,
|
||||
totalNum: -1,
|
||||
}
|
||||
@ -107,7 +108,7 @@ export default {
|
||||
project_id: this.projectId,
|
||||
task_id: this.taskId,
|
||||
page: Math.max(this.listPage, 1),
|
||||
pagesize: this.pagesize,
|
||||
pagesize: Math.max($A.runNum(this.listPageSize), 10),
|
||||
}
|
||||
}).then(({data}) => {
|
||||
this.loadIng--;
|
||||
|
||||
@ -197,7 +197,7 @@ export default {
|
||||
all: 1,
|
||||
archived,
|
||||
page: Math.max(this.page, 1),
|
||||
pagesize: Math.max($A.runNum(this.pageSize), 20),
|
||||
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
||||
},
|
||||
}).then(({data}) => {
|
||||
this.loadIng--;
|
||||
|
||||
@ -164,8 +164,8 @@ export default {
|
||||
this.$store.dispatch("call", {
|
||||
url: 'report/my',
|
||||
data: {
|
||||
page: this.listPage,
|
||||
pagesize: this.listPageSize,
|
||||
page: Math.max(this.listPage, 1),
|
||||
pagesize: Math.max($A.runNum(this.listPageSize), 10),
|
||||
created_at: this.createAt,
|
||||
type: this.reportType
|
||||
},
|
||||
|
||||
@ -188,8 +188,8 @@ export default {
|
||||
this.$store.dispatch("call", {
|
||||
url: 'report/receive',
|
||||
data: {
|
||||
page: this.listPage,
|
||||
pagesize: this.listPageSize,
|
||||
page: Math.max(this.listPage, 1),
|
||||
pagesize: Math.max($A.runNum(this.listPageSize), 10),
|
||||
username: this.username,
|
||||
created_at: this.createAt,
|
||||
type: this.reportType
|
||||
|
||||
@ -259,7 +259,7 @@ export default {
|
||||
archived_at: 'desc'
|
||||
},
|
||||
page: Math.max(this.page, 1),
|
||||
pagesize: Math.max($A.runNum(this.pageSize), 20),
|
||||
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
||||
},
|
||||
}).then(({data}) => {
|
||||
this.loadIng--;
|
||||
|
||||
@ -207,7 +207,7 @@ export default {
|
||||
deleted_at: 'desc'
|
||||
},
|
||||
page: Math.max(this.page, 1),
|
||||
pagesize: Math.max($A.runNum(this.pageSize), 20),
|
||||
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
||||
},
|
||||
}).then(({data}) => {
|
||||
this.loadIng--;
|
||||
|
||||
@ -297,7 +297,7 @@ export default {
|
||||
data: {
|
||||
keys: this.keys,
|
||||
page: Math.max(this.page, 1),
|
||||
pagesize: Math.max($A.runNum(this.pageSize), 20),
|
||||
pagesize: Math.max($A.runNum(this.pageSize), 10),
|
||||
},
|
||||
}).then(({data}) => {
|
||||
this.loadIng--;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user