diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue index 2836177..e2362c8 100644 --- a/frontend/src/views/home/components/table.vue +++ b/frontend/src/views/home/components/table.vue @@ -43,7 +43,7 @@ > - + { // 打开 drawer(新增、查看、编辑) -const openDrawer = (title: string, row: any) => { +const openDrawer = async (title: string, row: any) => { if (title === '查看') { const link = document.createElement('a'); @@ -1028,9 +1028,9 @@ const openDrawer = (title: string, row: any) => { if(title === '生成') { - //reportDialogVisible.value = true; + + await useDownload(downloadDevData,'调试报告'+formatDate(new Date()), {planId:checkStore.planId,devId:row.id}, false,'.docx') emit('batchGenerateClicked'); // 触发事件 - useDownload(downloadDevData,'调试报告'+formatDate(new Date()), {planId:checkStore.planId,devId:row.id}, false,'.docx') } if(title === '检测数据查询') @@ -1045,8 +1045,9 @@ const openDrawer = (title: string, row: any) => { if (title === '归档') { + + await documentedPqDev([row.id]) emit('batchGenerateClicked'); // 触发事件 - documentedPqDev([row.id]) // const loading = ElLoading.service({ // lock: true, // text: '归档中...',