|
@@ -88,7 +88,7 @@
|
|
|
this.accountId=accountId
|
|
|
this.groupId=groupId
|
|
|
this.init()
|
|
|
- this.getDangerByPage()
|
|
|
+ this.getData()
|
|
|
},
|
|
|
methods: {
|
|
|
formateGoafName({
|
|
@@ -107,7 +107,6 @@
|
|
|
tab_type=this.groupId
|
|
|
}
|
|
|
getDangerByList().then((res)=>{
|
|
|
- console.log(res.data.filter(item=>item.status==4&&item['submit'+type]===tab_type).length)
|
|
|
this.statistics.review=res.data.filter(item=>item.status==1&&item['review'+type]===tab_type).length
|
|
|
this.statistics.rectify=res.data.filter(item=>item.status==2&&item['rectify'+type]===tab_type).length
|
|
|
this.statistics.accept=res.data.filter(item=>item.status==3&&item['accept'+type]===tab_type).length
|
|
@@ -136,13 +135,16 @@
|
|
|
},
|
|
|
changeTab(type){
|
|
|
this.type=type
|
|
|
+ this.page=1;
|
|
|
+ this.items=[]
|
|
|
this.init()
|
|
|
this.getData()
|
|
|
+
|
|
|
},
|
|
|
changeStuas(status,name){
|
|
|
this.conditions.status=status
|
|
|
this.title=name
|
|
|
- this.getData()
|
|
|
+ this.getData()
|
|
|
},
|
|
|
linkTo(item){
|
|
|
if(item.status===4||this.type==='group'){
|
|
@@ -194,14 +196,13 @@
|
|
|
}
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
- this.page=1;
|
|
|
- this.getDangerByPage()
|
|
|
+ this.getData()
|
|
|
setTimeout(()=>{
|
|
|
uni.stopPullDownRefresh()
|
|
|
})
|
|
|
},
|
|
|
onReachBottom(){
|
|
|
- this.getDangerByPage()
|
|
|
+ this.getData()
|
|
|
}
|
|
|
}
|
|
|
</script>
|