|
@@ -74,6 +74,8 @@ import {
|
|
|
uploadProjectReportCont,
|
|
|
getProjectReportResult,
|
|
|
} from "@/api/allAnalysisPage";
|
|
|
+import { getProjectList } from "@/api/projectManagementPage";
|
|
|
+
|
|
|
import { useRouter } from "vue-router";
|
|
|
import { onBeforeMount, onMounted, nextTick } from "vue";
|
|
|
import { downloadByLink } from "@/utils/utils";
|
|
@@ -147,8 +149,15 @@ function clearSetTs() {
|
|
|
setTs = [];
|
|
|
}
|
|
|
|
|
|
-function exportReport() {
|
|
|
- if (props.curProject && props.curProject.needCompute) {
|
|
|
+async function exportReport() {
|
|
|
+ const res = await getProjectList({
|
|
|
+ id: props.curProject.id,
|
|
|
+ rootOrgId: -1,
|
|
|
+ pageNo: 1,
|
|
|
+ pageSize: 1,
|
|
|
+ });
|
|
|
+ const project = res.data.content[0];
|
|
|
+ if (project && project.needCompute) {
|
|
|
void message.info("有数据更新请重新计算");
|
|
|
return;
|
|
|
}
|