|
|
@@ -8,6 +8,13 @@ done.vue<template> |
|
|
|
<img :src="image" style="width:100%;height: 150px"/> |
|
|
|
</van-swipe-item> |
|
|
|
</van-swipe> |
|
|
|
|
|
|
|
<van-list |
|
|
|
v-model="loading" |
|
|
|
:finished="finished" |
|
|
|
finished-text="没有更多了" |
|
|
|
@load="getList" |
|
|
|
> |
|
|
|
<van-cell-group @click="goDetail(item)" v-for="(item,index) in taskList" :key="index" style="width: 96%;margin:2%;border-radius: 6px;overflow: hidden;padding-top: 10px;box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);"> |
|
|
|
<van-cell style="padding: 0 0"> |
|
|
|
<template #title> |
|
|
@@ -41,7 +48,8 @@ done.vue<template> |
|
|
|
</template> |
|
|
|
</van-cell> |
|
|
|
</van-cell-group> |
|
|
|
<van-empty v-if="taskList.length<1" description="暂无事项" /> |
|
|
|
</van-list> |
|
|
|
<van-empty v-if="taskList.length<1" description="暂无事项" /> |
|
|
|
<yinnongIndex></yinnongIndex> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@@ -59,6 +67,8 @@ done.vue<template> |
|
|
|
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<template> |
|
|
|
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<template> |
|
|
|
} |
|
|
|
}, |
|
|
|
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<template> |
|
|
|
}); |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
if(this.taskList.length >= response.total){ |
|
|
|
this.finished = true; |
|
|
|
return; |
|
|
|
}else{ |
|
|
|
this.loading = false; |
|
|
|
this.queryParams.pageNum += 1 ; |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
goDetail(item){ |
|
|
|