|
|
@ -242,10 +242,11 @@ |
|
|
|
hdata: {}, |
|
|
|
hdata: {}, |
|
|
|
willDeleteApp: false, |
|
|
|
willDeleteApp: false, |
|
|
|
delapp: {}, |
|
|
|
delapp: {}, |
|
|
|
has_next:false, |
|
|
|
has_next:true, |
|
|
|
query:{'page':1,size:20}, |
|
|
|
query:{'page':1,size:20}, |
|
|
|
searchflag:false, |
|
|
|
searchflag:false, |
|
|
|
uploadflag:false |
|
|
|
uploadflag:false, |
|
|
|
|
|
|
|
autoloadflag:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, methods: { |
|
|
|
}, methods: { |
|
|
|
searchFun(){ |
|
|
|
searchFun(){ |
|
|
@ -253,6 +254,7 @@ |
|
|
|
if(keysearch === ''){ |
|
|
|
if(keysearch === ''){ |
|
|
|
this.searchflag=false; |
|
|
|
this.searchflag=false; |
|
|
|
this.applists=[]; |
|
|
|
this.applists=[]; |
|
|
|
|
|
|
|
this.orgapplists=[]; |
|
|
|
this.query.page=1; |
|
|
|
this.query.page=1; |
|
|
|
if(this.searchfromtype){ |
|
|
|
if(this.searchfromtype){ |
|
|
|
this.getappsFun({"type": this.searchfromtype}); |
|
|
|
this.getappsFun({"type": this.searchfromtype}); |
|
|
@ -263,6 +265,8 @@ |
|
|
|
this.searchflag=true |
|
|
|
this.searchflag=true |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.searchflag){ |
|
|
|
if(this.searchflag){ |
|
|
|
|
|
|
|
this.applists=[]; |
|
|
|
|
|
|
|
this.orgapplists=[]; |
|
|
|
if(this.searchfromtype){ |
|
|
|
if(this.searchfromtype){ |
|
|
|
this.getappsFun({"type": this.searchfromtype,'page':1,size:999}); |
|
|
|
this.getappsFun({"type": this.searchfromtype,'page':1,size:999}); |
|
|
|
}else { |
|
|
|
}else { |
|
|
@ -274,7 +278,10 @@ |
|
|
|
// eslint-disable-next-line no-console |
|
|
|
// eslint-disable-next-line no-console |
|
|
|
// console.log(getScrollTop() , getWindowHeight(),getScrollTop() + getWindowHeight(), getScrollHeight()); |
|
|
|
// console.log(getScrollTop() , getWindowHeight(),getScrollTop() + getWindowHeight(), getScrollHeight()); |
|
|
|
if(getScrollTop() + getWindowHeight() >= getScrollHeight()){ |
|
|
|
if(getScrollTop() + getWindowHeight() >= getScrollHeight()){ |
|
|
|
|
|
|
|
|
|
|
|
if(this.has_next){ //先判断下一页是否有数据 |
|
|
|
if(this.has_next){ //先判断下一页是否有数据 |
|
|
|
|
|
|
|
if(this.autoloadflag) { |
|
|
|
|
|
|
|
this.autoloadflag = false; |
|
|
|
if (this.applists.length === 0) { |
|
|
|
if (this.applists.length === 0) { |
|
|
|
this.query.page = 1; |
|
|
|
this.query.page = 1; |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -283,15 +290,13 @@ |
|
|
|
if (this.searchfromtype !== '') { |
|
|
|
if (this.searchfromtype !== '') { |
|
|
|
this.query.type = this.searchfromtype; |
|
|
|
this.query.type = this.searchfromtype; |
|
|
|
} |
|
|
|
} |
|
|
|
// this.getappsFun(dict(this.query,{"types": this.searchfromtype})); |
|
|
|
|
|
|
|
// this.getappsFun({"type": this.searchfromtype}); |
|
|
|
|
|
|
|
// }else { |
|
|
|
|
|
|
|
this.getappsFun(this.query); |
|
|
|
this.getappsFun(this.query); |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
// eslint-disable-next-line no-console |
|
|
|
if(! this.has_next){ |
|
|
|
console.log("end") |
|
|
|
this.$message.success("已经到底啦") |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -314,6 +319,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
getapps(data => { |
|
|
|
getapps(data => { |
|
|
|
if (data.code === 1000) { |
|
|
|
if (data.code === 1000) { |
|
|
|
|
|
|
|
this.autoloadflag = true; |
|
|
|
|
|
|
|
|
|
|
|
if(this.uploadflag){ |
|
|
|
if(this.uploadflag){ |
|
|
|
this.applists = data.data ; |
|
|
|
this.applists = data.data ; |
|
|
|
this.uploadflag = false; |
|
|
|
this.uploadflag = false; |
|
|
@ -453,6 +460,8 @@ |
|
|
|
}, mounted() { |
|
|
|
}, mounted() { |
|
|
|
// this.$store.dispatch('dosetAh',this.getBH); |
|
|
|
// this.$store.dispatch('dosetAh',this.getBH); |
|
|
|
window.addEventListener('scroll',this.auto_load); |
|
|
|
window.addEventListener('scroll',this.auto_load); |
|
|
|
|
|
|
|
this.$store.dispatch('doucurrentapp', {}); |
|
|
|
|
|
|
|
|
|
|
|
this.getappsFun({}); |
|
|
|
this.getappsFun({}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|