|
@@ -67,7 +67,10 @@ import { goBack, downloadFileURL } from "@/utils/utils";
|
|
|
import { onMounted } from "vue";
|
|
|
import { useRoute } from "vue-router";
|
|
|
import router from "@/router";
|
|
|
-import { getSasPaperList } from "@/api/allAnalysisPage";
|
|
|
+import {
|
|
|
+ getSasPaperList,
|
|
|
+ batchExportProjectReport,
|
|
|
+} from "@/api/allAnalysisPage";
|
|
|
import { getProjectList } from "@/api/projectManagementPage";
|
|
|
// import EventBus from "@/plugins/eventBus";
|
|
|
import ScoreRate from "./ScoreRate.vue";
|
|
@@ -324,7 +327,12 @@ function exportReport() {
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
|
selectProjectRef.showModal();
|
|
|
}
|
|
|
-function projectSelected(projectId: number) {
|
|
|
+async function projectSelected(projectId: number) {
|
|
|
compareProjectId = projectId;
|
|
|
+ await batchExportProjectReport({
|
|
|
+ projectId,
|
|
|
+ compareProjectId,
|
|
|
+ });
|
|
|
+ void message.success("导出任务已经提交,请在任务管理中查询导出结果!");
|
|
|
}
|
|
|
</script>
|