diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index 70443c5..1f84c21 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -125,6 +125,9 @@ function handleKeydown(event) { isFullScreen.value = false; // batchModalRef.value.closeModal() + } else if (event.keyCode === 27) { + overTask.value = null; + overTasktwo.value = null; } else if (event.key === "p" || event.key === "P") { // 获取当前时间 const now = Date.now(); @@ -592,13 +595,6 @@ function checkBottom() { } }, 500); } -function reset() { - taskpagination.pageNo = 0; - taskpagination.pageSize = 20; - taskDetailPictureList.value.length = 0; - loading.value = false; - canloadMore = true; -} async function loadMore() { console.log(loading.value); @@ -625,6 +621,22 @@ async function fetchList() { return []; } } +async function reset() { + pagination.pageNo = 0; + pagination.pageSize = 30; + taskDetailPictureList.value.length = 0; + loading.value = false; + canloadMore = true; + // layout() +} +async function refreshHandler() { + getImgList(); +} +function sortHandler(orderby: "similarityScore" | "createdate") { + sortBy.orderName = orderby; + sortBy.orderType = sortBy.orderType === "asc" ? "desc" : "asc"; + refreshHandler(); +}