diff --git a/src/mixins/dataList.js b/src/mixins/dataList.js index d2eb8c32..adc19b8a 100644 --- a/src/mixins/dataList.js +++ b/src/mixins/dataList.js @@ -16,7 +16,8 @@ export default { }, pageObj: { // 分页对象 pageNo: 1, - pageSize: defaultPageSize + pageSize: defaultPageSize, + total: '' }, /* 工具参数 */ tools: { @@ -65,8 +66,11 @@ export default { if (params) { this.searchLabel = { ...this.searchLabel, ...params } } + // console.log(...this.pageObj) this.searchLabel = { ...this.searchLabel, ...this.pageObj } this.tools.loading = true + // console.log(typeof this.searchLabel) + console.log(delete this.searchLabel.total) get(this.url, this.searchLabel).then(response => { this.tools.loading = false if (response.code === 200) { @@ -144,7 +148,6 @@ export default { this.getTableData() }, search (params) { - console.info(params) this.pageObj.pageNo = 1 this.getTableData({ q: params }) }