unique(arr) {
const res = new Map();
return arr.filter((arr) => !res.has(arr.processName) && res.set(arr.processName, 1))
},
getMyApplicationData(){
this.queryParam.current = this.filterParams.page;
this.queryParam.size=this.filterParams.pageSize;
this.$ajax.get('/apply/getByPage',this.queryParam).then(res =>{
if (res.result.records.length<=0){
this.loading = true;
}else {
this.loading = false;
}
if (this.filterParams.page == 1){
this.myApplicationList = res.result.records
}else {
this.myApplicationList = this.myApplicationList.concat(res.result.records);
}
if (this.myApplicationList.length>0) {
this.section.processName = this.unique(this.myApplicationList);
}
this.filterParams.page++;
if (res.result.records.length <20){
setTimeout(()=>{
this.$refs.compscroll&&this.$refs.compscroll.nomore(this.filterParams.page-2)
},30)
}
});
},