提交超分图片格式暂定为jpeg

This commit is contained in:
X1627315083
2024-03-22 14:30:29 +08:00
parent 84674c63fd
commit f12a188526
3 changed files with 39 additions and 41 deletions

View File

@@ -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>