diff --git a/src/views/project-management/initiation/detail.vue b/src/views/project-management/initiation/detail.vue
index 261efd6..4659bd5 100644
--- a/src/views/project-management/initiation/detail.vue
+++ b/src/views/project-management/initiation/detail.vue
@@ -8,7 +8,7 @@
>
+ :companyOption="companyOption" @getInfo="getDemandCollectionInfo" @download="downloadDetailFile"/>
@@ -21,6 +21,7 @@ import {getInfo} from "@/api/project-demand/index.js";
import {getSubCompOpt} from '@/api/user/user.js'
import {useProcessStore} from '@/stores/processStore.js';
import CollectionDetail from "@/components/DetailComponent/CollectionDetail.vue";
+import {downloadFile} from "@/api/project-demand";
const route = useRoute()
const activeName = ref('first')
@@ -51,6 +52,15 @@ const getDemandCollectionInfo = async () => {
})
})
}
+const downloadDetailFile = (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()
+ })
+}
const handleClick = (tab, event) => {
console.log(tab, event)
if (tab.index.value === 0) {
diff --git a/src/views/project-management/initiation/index.vue b/src/views/project-management/initiation/index.vue
index c47dcbc..094c11e 100644
--- a/src/views/project-management/initiation/index.vue
+++ b/src/views/project-management/initiation/index.vue
@@ -165,7 +165,7 @@ const tableConfig = reactive({
}
}
],
- api: '',
+ api: '/workflow/mosr/requirement',
params: {},
})