From 7d48d0ca04d969781365c52b200e625b0c542d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Thu, 28 Sep 2023 15:31:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E6=9D=83=E4=BA=A4=E6=98=93=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/notice/index.vue | 46 ++++++++++----- src/views/project/index.vue | 83 ++++++++++++++++++---------- src/views/user/application/index.vue | 13 +++-- 3 files changed, 96 insertions(+), 46 deletions(-) diff --git a/src/views/notice/index.vue b/src/views/notice/index.vue index 94b439e7..e6ebbf47 100644 --- a/src/views/notice/index.vue +++ b/src/views/notice/index.vue @@ -140,53 +140,73 @@ export default { getList(){ this.loading = true; noticeList(this.queryParams).then(response => { - this.noticeList = response.rows; + response.rows.forEach(res=>{ + this.noticeList.push(res); + }) + if(this.noticeList.length >= response.total){ this.finished = true; return; + }else{ + this.loading = false; + this.queryParams.pageNum += 1 ; } - this.queryParams.pageNum += 1 ; - this.loading = false; + + // if(this.noticeList.length >= response.total){ + // this.finished = true; + // this.loading = false; + // return; + // } + // this.queryParams.pageNum += 1 ; + // this.loading = false; }); }, //鉴证公告集合 getAttestationList(){ this.attestationLoading = true; Attestation(this.attestationQueryParams).then(response => { - this.attestationList = response.rows; - console.log(response.rows) + response.rows.forEach(res=>{ + this.attestationList.push(res); + }) if(this.attestationList.length >= response.total){ this.attestationFinished = true; return; + }else{ + this.attestationLoading = false; + this.attestationQueryParams.pageNum += 1 ; } - this.queryParams.pageNum += 1 ; - this.attestationLoading = false; }); }, //招标公告集合 getinviteTendersList(){ this.inviteTendersLoading = true; tenderList(this.inviteTendersQueryParams).then(response => { - this.inviteTendersList = response.rows; + response.rows.forEach(res=>{ + this.inviteTendersList.push(res); + }) if(this.inviteTendersList.length >= response.total){ this.inviteTendersFinished = true; return; + }else{ + this.inviteTendersLoading = false; + this.inviteTendersQueryParams.pageNum += 1 ; } - this.inviteTendersQueryParams.pageNum += 1 ; - this.inviteTendersLoading = false; }); }, //招标公告集合 getwinTheBiddingList(){ this.winTheBiddingLoading = true; winList(this.winTheBiddingQueryParams).then(response => { - this.winTheBiddingList = response.rows; + response.rows.forEach(res=>{ + this.winTheBiddingList.push(res); + }) if(this.winTheBiddingList.length >= response.total){ this.winTheBiddingFinished = true; return; + }else{ + this.winTheBiddingLoading = false; + this.winTheBiddingQueryParams.pageNum += 1 ; } - this.winTheBiddingQueryParams.pageNum += 1 ; - this.winTheBiddingLoading = false; }); }, }, diff --git a/src/views/project/index.vue b/src/views/project/index.vue index baad5662..564589d9 100644 --- a/src/views/project/index.vue +++ b/src/views/project/index.vue @@ -18,7 +18,7 @@ - +