From b8612669875785783a5494cc94767c066dd93293 Mon Sep 17 00:00:00 2001 From: lihui_ocr Date: Thu, 11 Apr 2024 22:26:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=8E=92=E5=BA=8F=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/content/Content.vue | 73 ++++++++++++++++++++++-------- 1 file changed, 55 insertions(+), 18 deletions(-) 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(); +}