From d66d87731e88588de5c66f2189d6fd8252f0c7ae Mon Sep 17 00:00:00 2001
From: lizijiee <562949697@qq.com>
Date: Thu, 28 Mar 2024 00:10:46 +0800
Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E6=97=A5=E6=9C=9F=E6=A0=BC?=
=?UTF-8?q?=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/worksheet/content/Content.vue | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue
index 139614f..fe175fd 100644
--- a/src/views/worksheet/content/Content.vue
+++ b/src/views/worksheet/content/Content.vue
@@ -456,11 +456,14 @@ function previewHandler(event: MouseEvent) {
@@ -586,12 +589,14 @@ function previewHandler(event: MouseEvent) {
- {{ item.photoDateTimestamp ? formatToDateHMS(Number(item.photoDateTimestamp) || 0) : '-'
+ {{ item.photoDateTimestamp ? formatToDateHMS(Number(item.photoDateTimestamp) ||
+ 0) : '-'
}}
- {{ item.submitDateTimestamp ? formatToDateHMS(Number(item.submitDateTimestamp) || 0) : '-'
+ {{ item.submitDateTimestamp ? formatToDateHMS(Number(item.submitDateTimestamp)
+ || 0) : '-'
}}
@@ -1067,5 +1072,4 @@ function previewHandler(event: MouseEvent) {
::v-deep(.n-divider:not(.n-divider--vertical)) {
margin-top: 12px;
margin-bottom: 12px;
-}
-
+}
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 2/2] =?UTF-8?q?feat:=20=E6=8E=92=E5=BA=8F=E6=8C=89?=
=?UTF-8?q?=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) {
-