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 139614f..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(); @@ -456,11 +456,15 @@ function previewHandler(event: MouseEvent) {
@@ -561,20 +565,23 @@ function previewHandler(event: MouseEvent) {
-
+
任务包图片
-
+
时间排序 - + +
相似度排序 - + +
@@ -586,12 +593,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) : '-' }}