From 2e2cbd613a896c6b84521182b560684ce003f190 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com>
Date: Tue, 10 Sep 2024 10:12:40 +0800
Subject: [PATCH] =?UTF-8?q?task=20=E9=93=B6=E5=86=9C=E5=B7=B2=E5=8A=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/yinnong/doneCompleted/doneNew.vue | 24 ++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/src/views/yinnong/doneCompleted/doneNew.vue b/src/views/yinnong/doneCompleted/doneNew.vue
index 4f078063..8633dec0 100644
--- a/src/views/yinnong/doneCompleted/doneNew.vue
+++ b/src/views/yinnong/doneCompleted/doneNew.vue
@@ -8,6 +8,13 @@ done.vue
+
+
@@ -41,7 +48,8 @@ done.vue
-
+
+
@@ -59,6 +67,8 @@ done.vue
name: "done",
data(){
return{
+ loading:false,
+ finished:false,
taskList:[],
transferTypeOptions:[],
activeName:this.$route.query.activeName?this.$route.query.activeName:'2',
@@ -80,7 +90,7 @@ done.vue
if(this.$route.query.activeName){
this.activeName = this.$route.query.activeName
}
- this.getList();
+ // this.getList();
});
//console.log(this.$route.query.fr)
if(this.$route.query.fr){
@@ -97,7 +107,6 @@ done.vue
}
},
getList() {
- this.taskList = []
//this.$set(this.queryParams, "systemType", '4');
this.$set(this.queryParams, "deptId", this.$store.state.user.deptId);
A_myDoneList(this.queryParams).then((response) => {
@@ -118,6 +127,15 @@ done.vue
});
}
})
+
+ if(this.taskList.length >= response.total){
+ this.finished = true;
+ return;
+ }else{
+ this.loading = false;
+ this.queryParams.pageNum += 1 ;
+ }
+
})
},
goDetail(item){