From ea3c860e0572af6752e90104646beb65edb97f2f Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Tue, 10 Jan 2023 14:37:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Template/labelModel.vue | 8 ++++---- src/views/Template/modelTodo.vue | 8 ++++---- src/views/Template/requiremining.vue | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/Template/labelModel.vue b/src/views/Template/labelModel.vue index ba5a7d6..b24b461 100644 --- a/src/views/Template/labelModel.vue +++ b/src/views/Template/labelModel.vue @@ -646,16 +646,16 @@ export default { method: 'get', params: { houseId:this.houseId, - pageNum:this.pageNum, - pageSize:this.pageSize, + current:this.pageNum, + size:this.pageSize, keywordsName: this.value, keyType: this.keyType } }).then(res => { this.loading= false if(res.code==0){ - this.tableData=res.data.results; - this.total=res.data.totalRecord; + this.tableData = res.data.records ||[]; + this.total=res.data.total; } }).catch((e)=>{ this.loading= false diff --git a/src/views/Template/modelTodo.vue b/src/views/Template/modelTodo.vue index a4f67f7..e88c0e3 100644 --- a/src/views/Template/modelTodo.vue +++ b/src/views/Template/modelTodo.vue @@ -731,8 +731,8 @@ export default { url: `/autoSR/zk/todo/list`, method: "get", params: { - pageNum: this.pageNum, - pageSize: this.pageSize, + current: this.pageNum, + size: this.pageSize, houseName: this.searchForm.houseName, updateUserName: this.searchForm.updateUserName, name: this.searchForm.name, @@ -743,8 +743,8 @@ export default { }).then((res) => { // console.log(res) if(res.code==0){ - this.tableData = res.data.results || []; - this.total = res.data.totalRecord; + this.tableData = res.data.records || []; + this.total = res.data.total; } else { this.tableData = []; } diff --git a/src/views/Template/requiremining.vue b/src/views/Template/requiremining.vue index 1d2da10..27a6bd4 100644 --- a/src/views/Template/requiremining.vue +++ b/src/views/Template/requiremining.vue @@ -1,13 +1,13 @@