fix : setting下的页面在翻页、搜索时去掉向接口传递的'total'参数
This commit is contained in:
@@ -16,7 +16,8 @@ export default {
|
|||||||
},
|
},
|
||||||
pageObj: { // 分页对象
|
pageObj: { // 分页对象
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: defaultPageSize
|
pageSize: defaultPageSize,
|
||||||
|
total: ''
|
||||||
},
|
},
|
||||||
/* 工具参数 */
|
/* 工具参数 */
|
||||||
tools: {
|
tools: {
|
||||||
@@ -65,8 +66,11 @@ export default {
|
|||||||
if (params) {
|
if (params) {
|
||||||
this.searchLabel = { ...this.searchLabel, ...params }
|
this.searchLabel = { ...this.searchLabel, ...params }
|
||||||
}
|
}
|
||||||
|
// console.log(...this.pageObj)
|
||||||
this.searchLabel = { ...this.searchLabel, ...this.pageObj }
|
this.searchLabel = { ...this.searchLabel, ...this.pageObj }
|
||||||
this.tools.loading = true
|
this.tools.loading = true
|
||||||
|
// console.log(typeof this.searchLabel)
|
||||||
|
console.log(delete this.searchLabel.total)
|
||||||
get(this.url, this.searchLabel).then(response => {
|
get(this.url, this.searchLabel).then(response => {
|
||||||
this.tools.loading = false
|
this.tools.loading = false
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
@@ -144,7 +148,6 @@ export default {
|
|||||||
this.getTableData()
|
this.getTableData()
|
||||||
},
|
},
|
||||||
search (params) {
|
search (params) {
|
||||||
console.info(params)
|
|
||||||
this.pageObj.pageNo = 1
|
this.pageObj.pageNo = 1
|
||||||
this.getTableData({ q: params })
|
this.getTableData({ q: params })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user