From 5c93eae4ce94d3ff463849e999562f23cadd6a49 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Mon, 20 May 2024 00:58:48 +0800
Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E7=BB=86=E8=8A=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../DetailComponent/SummaryDetail.vue | 26 +++++++++----------
src/views/project-demand/summary/add.vue | 2 +-
2 files changed, 13 insertions(+), 15 deletions(-)
diff --git a/src/components/DetailComponent/SummaryDetail.vue b/src/components/DetailComponent/SummaryDetail.vue
index 3493915..9f376fe 100644
--- a/src/components/DetailComponent/SummaryDetail.vue
+++ b/src/components/DetailComponent/SummaryDetail.vue
@@ -123,7 +123,7 @@
- {{localFormData.fileList}}
+ {{localFormData.singleFile?.originalFileName}}
@@ -140,9 +140,9 @@
@@ -168,8 +168,6 @@ const props = defineProps({
},
})
const localFormData = ref({})
-const summaryForm = ref()
-
const tableConfig = reactive({
columns: [
{
@@ -208,14 +206,14 @@ const tableConfig = reactive({
]
})
-const handleDownload = (fileList) => {
- // downloadFile(row.fileId).then(res => {
- // const blob = new Blob([res])
- // let a = document.createElement('a')
- // a.href=URL.createObjectURL(blob)
- // a.download = row.originalFileName
- // a.click()
- // })
+const handleDownload = (row) => {
+ downloadFile(row.fileId).then(res => {
+ const blob = new Blob([res])
+ let a = document.createElement('a')
+ a.href=URL.createObjectURL(blob)
+ a.download = row.originalFileName
+ a.click()
+ })
}
watch(
diff --git a/src/views/project-demand/summary/add.vue b/src/views/project-demand/summary/add.vue
index b6c87a7..1607123 100644
--- a/src/views/project-demand/summary/add.vue
+++ b/src/views/project-demand/summary/add.vue
@@ -450,7 +450,7 @@ const init = async () => {
}
onMounted(async () => {
await init()
- if (route.query.id) {
+ if (route.query.projectId) {
await getDetailInfo()
}
})