提交超分图片格式暂定为jpeg
This commit is contained in:
@@ -108,27 +108,27 @@ export default defineComponent({
|
||||
mounted() {
|
||||
},
|
||||
directives:{
|
||||
observe:{
|
||||
mounted (el,binding) {
|
||||
// console.log(binding.instance);
|
||||
const ob = new IntersectionObserver(callback,{
|
||||
root:null,
|
||||
threshold:[0.1]
|
||||
})
|
||||
ob.observe(el)
|
||||
// this.currentPage = 1
|
||||
// this.pageSize = 12
|
||||
let this_:any = binding.instance
|
||||
function callback(entries:any, observer:any) {
|
||||
entries.forEach((entry:any) => {
|
||||
if (entry.isIntersecting) {
|
||||
this_.getTaskMoreList()
|
||||
} else {
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
// observe:{
|
||||
// mounted (el,binding) {
|
||||
// // console.log(binding.instance);
|
||||
// const ob = new IntersectionObserver(callback,{
|
||||
// root:null,
|
||||
// threshold:[0.1]
|
||||
// })
|
||||
// ob.observe(el)
|
||||
// // this.currentPage = 1
|
||||
// // this.pageSize = 12
|
||||
// let this_:any = binding.instance
|
||||
// function callback(entries:any, observer:any) {
|
||||
// entries.forEach((entry:any) => {
|
||||
// if (entry.isIntersecting) {
|
||||
// this_.getTaskMoreList()
|
||||
// } else {
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
// },
|
||||
},
|
||||
watch:{
|
||||
taskList:{
|
||||
@@ -197,19 +197,19 @@ export default defineComponent({
|
||||
}
|
||||
})
|
||||
},
|
||||
getTaskMoreList(){
|
||||
let data = {
|
||||
size:this.pageSize,
|
||||
page: this.currentPage,
|
||||
type:this.currentState.value,
|
||||
endTime: "",
|
||||
startTime: "",
|
||||
}
|
||||
this.currentPage += 1
|
||||
Https.axiosPost(Https.httpUrls.getTasksHistory,data).then((rv)=>{
|
||||
this.taskListMore = rv
|
||||
})
|
||||
}
|
||||
// getTaskMoreList(){
|
||||
// let data = {
|
||||
// size:this.pageSize,
|
||||
// page: this.currentPage,
|
||||
// type:this.currentState.value,
|
||||
// endTime: "",
|
||||
// startTime: "",
|
||||
// }
|
||||
// this.currentPage += 1
|
||||
// Https.axiosPost(Https.httpUrls.getTasksHistory,data).then((rv)=>{
|
||||
// this.taskListMore = rv
|
||||
// })
|
||||
// }
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user