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() } })