From 32fd413bd63ebc93f897bf2c8176b3c3dee1525e Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Sat, 18 Jan 2025 10:21:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FirstJob/joblist.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/FirstJob/joblist.vue b/src/components/FirstJob/joblist.vue index 5087e75..09158d4 100644 --- a/src/components/FirstJob/joblist.vue +++ b/src/components/FirstJob/joblist.vue @@ -1203,7 +1203,7 @@ export default { this.isFetching = false; }); } else { - this.getJobList().then(() => { + this.getJobList({isScroll:1}).then(() => { this.isFetching = false; }); } @@ -1250,7 +1250,7 @@ export default { }, async getJobList(newdata) { // this.isspinning = true; - console.log("this.formvalue", this.formvalue); + console.log('newdata',newdata); try { newdata = { district: "", @@ -1261,6 +1261,7 @@ export default { pageNum: this.formvalue.pageNum, // 使用当前页码 pageSize: 8, total: null, //分页配置 + isScroll: newdata && newdata.isScroll == 1 ? 1 : 0, }; for (var k in this.formvalue) { if (Array.isArray(this.formvalue[k])) { @@ -1281,7 +1282,12 @@ export default { this.isStop = false; this.speed = 1; } - this.jobMainList = this.jobMainList.concat(disposeJobListData(data.data.recordList)); // 追加数据 + if(newdata.isScroll == 1){ + this.jobMainList = this.jobMainList.concat(disposeJobListData(data.data.recordList)); // 追加数据 + }else{ + this.jobMainList = disposeJobListData(data.data.recordList) + } + this.formvalue.total = data.data.recordCount; } else { this.$message.info("数据获取失败");