From 9d5c393ebef58c202a25b6eac23ce6f63a27be98 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Thu, 18 Jul 2024 22:06:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2b?= =?UTF-8?q?ug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AllocationSummaryDetail.vue | 28 +-- .../DetailComponent/ApprovalDetail.vue | 39 +++-- .../DetailComponent/ProjectApply.vue | 132 +++++++------- .../DetailComponent/SummaryDetail.vue | 12 +- src/components/SearchFilesByTag.vue | 11 +- src/components/steps/index.vue | 2 +- src/fvcomponents/fvTable/index.vue | 4 +- src/utils/request.js | 6 +- src/views/expense-management/share/detail.vue | 2 +- .../AllocationSummaryDetailMoblie.vue | 42 ++--- .../share/moblieDetail/index.vue | 13 +- .../moblieDetail/CollectionDetailMoblie.vue | 11 +- .../project-management/filing/attachment.vue | 11 +- .../project-management/filing/upload.vue | 8 +- .../implementation/account.vue | 6 +- .../implementation/attachment.vue | 3 +- .../implementation/detail.vue | 12 +- .../implementation/index.vue | 1 - .../implementation/upload.vue | 14 +- .../mobledetail/ApprovalDetailMoblie.vue | 162 +++++++++++++++++- .../mobledetail/CollectionDetailMoblie.vue | 11 +- .../mobledetail/ShareDetailMobile.vue | 105 ++++++------ .../mobledetail/SpecialFundDetailMobile.vue | 2 +- .../mobledetail/StepsMoblie.vue | 36 ++-- .../mobledetail/SummaryDetailMoblie.vue | 71 +++++++- .../project-management/mobledetail/index.vue | 46 ++--- .../phaseDetailMoblie/index.vue | 26 ++- src/views/workflow/common/OperationRender.vue | 32 +++- 28 files changed, 562 insertions(+), 286 deletions(-) diff --git a/src/components/DetailComponent/AllocationSummaryDetail.vue b/src/components/DetailComponent/AllocationSummaryDetail.vue index a088ddc..19c8820 100644 --- a/src/components/DetailComponent/AllocationSummaryDetail.vue +++ b/src/components/DetailComponent/AllocationSummaryDetail.vue @@ -37,20 +37,14 @@ import {getAllocationSummaryDetails} from "@/api/expense-manage"; import {shareExportExcel} from "@/api/expense-manage"; -const tableData = ref([{ - id: '12987122', - name: 'Tom', - amount1: '234', - amount2: '3.2', - amount3: 10, -}, - { - id: '12987123', - name: 'Tom', - amount1: '165', - amount2: '4.43', - amount3: 12, - }]) +const props = defineProps({ + allocationName :{ + type: String, + default: '' + } +}) + +const tableData = ref() const loading = ref(false) const table = ref() const route = useRoute() @@ -91,11 +85,7 @@ const getSummaries = (param) => { const exportExcelHandler = () => { shareExportExcel(route.query.id).then(res => { console.log(res) - let reg = /filename=([^&]+)/; - let contentDisposition = decodeURI(res.headers['content-disposition']) - let result = reg.exec(contentDisposition) - let fileName = result[1] - fileName = fileName.replace(/\"/g, '') + let fileName = `科技创新项目费用分摊表-${props.allocationName}.zip` const blob = new Blob([res.data]) let a = document.createElement('a') a.href = URL.createObjectURL(blob) diff --git a/src/components/DetailComponent/ApprovalDetail.vue b/src/components/DetailComponent/ApprovalDetail.vue index 026d404..880366a 100644 --- a/src/components/DetailComponent/ApprovalDetail.vue +++ b/src/components/DetailComponent/ApprovalDetail.vue @@ -1,6 +1,6 @@