From 3c0666e06632fd1e5e460c7b327fb92e69666ddf Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Thu, 28 Mar 2024 00:38:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=92=E5=BA=8F=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icons/active-sort.svg | 12 ++++++++++++ src/views/worksheet/content/Content.vue | 21 +++++++++++++-------- 2 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 src/assets/icons/active-sort.svg diff --git a/src/assets/icons/active-sort.svg b/src/assets/icons/active-sort.svg new file mode 100644 index 0000000..b9b32df --- /dev/null +++ b/src/assets/icons/active-sort.svg @@ -0,0 +1,12 @@ + + + 排序 + + + + + + + + + \ No newline at end of file diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue index fe175fd..af9755d 100644 --- a/src/views/worksheet/content/Content.vue +++ b/src/views/worksheet/content/Content.vue @@ -68,7 +68,7 @@ const imageRef = ref(); const listData = ref([]); const loading = ref(false); const el = ref(null); - +const selectedSortName = ref(''); let canloadMore = true; let processItems: any[] = []; @@ -312,7 +312,7 @@ async function handleSelect(item: any) { } async function sortHandler(orderby: "similarityScore" | "createdate") { - + selectedSortName.value = orderby; sortBy.orderName = orderby; sortBy.orderType = sortBy.orderType === "asc" ? "desc" : "asc"; refreshHandler(); @@ -462,7 +462,8 @@ function previewHandler(event: MouseEvent) {
{{ - taskDetailInfo?.photoDateTimestamp ? format(taskDetailInfo?.photoDateTimestamp, 'yyyy-MM-dd HH:mm:ss') : '-' + taskDetailInfo?.photoDateTimestamp ? format(taskDetailInfo?.photoDateTimestamp, 'yyyy-MM-dd HH:mm:ss') : + '-' }}
@@ -564,20 +565,23 @@ function previewHandler(event: MouseEvent) { -
+
任务包图片
-
+
时间排序 - + +
相似度排序 - + +
@@ -1072,4 +1076,5 @@ function previewHandler(event: MouseEvent) { ::v-deep(.n-divider:not(.n-divider--vertical)) { margin-top: 12px; margin-bottom: 12px; -} +} +