From be61fa9d8bc78e12edce709fdfc0dbb029b70f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B6=E6=99=B6=20=E5=BC=A0?= Date: Mon, 23 Aug 2021 09:13:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20setting=E4=B8=8B=E7=9A=84=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=9C=A8=E7=BF=BB=E9=A1=B5=E3=80=81=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=97=B6=E5=8E=BB=E6=8E=89=E5=90=91=E6=8E=A5=E5=8F=A3=E4=BC=A0?= =?UTF-8?q?=E9=80=92=E7=9A=84'total'=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/dataList.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 }) }