From da3548c6540f6fc0c982f737f25fc4abcb793efd Mon Sep 17 00:00:00 2001 From: xiaomai Date: Thu, 4 Dec 2025 14:14:16 +0800 Subject: [PATCH] fix(export): sync bidding items order on sort and rename preview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates the iddingItems state when the sortable list is reordered to ensure the exported data reflects the visual order. Additionally, renames the xportCsv computed property to csvPreview for better clarity. --- app/pages/export/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/pages/export/index.vue b/app/pages/export/index.vue index 00962dd..5077c65 100644 --- a/app/pages/export/index.vue +++ b/app/pages/export/index.vue @@ -163,7 +163,7 @@

导出预览

-
{{ exportCsv }}
+
{{ csvPreview }}
{ + biddingItems.value = [...biddingItemList.value]; + }, }); const applyStartPriceButtonClicked = () => { @@ -325,7 +328,7 @@ function toUnderscore(name: string) { } // Export Preview -const exportCsv = computed(() => { +const csvPreview = computed(() => { return [ ...biddingItems.value.map( (biddingItem) => @@ -337,7 +340,7 @@ const exportCsv = computed(() => { }); const downloadCsv = () => { - const blob = new Blob([exportCsv.value], { type: "text/csv;charset=utf-8;" }); + const blob = new Blob([csvPreview.value], { type: "text/csv;charset=utf-8;" }); const url = URL.createObjectURL(blob); const a = document.createElement("a"); a.href = url;