From 08ffcf9d7ffafaa82d8de7f9b5fcfdb49e9c3688 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 05 十一月 2025 17:33:54 +0800
Subject: [PATCH] 动态溯源 1. 修复CO因子文本没有正常显示的问题;
---
src/components/mission/MissionManage.vue | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/components/mission/MissionManage.vue b/src/components/mission/MissionManage.vue
index 9c1c51f..87f8e22 100644
--- a/src/components/mission/MissionManage.vue
+++ b/src/components/mission/MissionManage.vue
@@ -60,14 +60,14 @@
class="el-button-custom"
@click="deleteMission(row)"
></el-button>
- <!-- <el-button
+ <el-button
:loading="row.downloadLoading"
type="primary"
size="small"
icon="Document"
class="el-button-custom"
@click="downloadReport(row)"
- ></el-button> -->
+ ></el-button>
</template>
</el-table-column>
</el-table>
@@ -118,6 +118,7 @@
import { mapStores } from 'pinia';
import { useMissionStore } from '@/stores/mission';
import { useFetchData } from '@/composables/fetchData';
+import { downloadReport } from '@/components/mission/missionReportDownload.js';
export default {
setup() {
@@ -163,9 +164,10 @@
},
downloadReport(row) {
row.downloadLoading = true;
- missionApi
- .downloadReport(row.missionCode)
- .finally(() => (row.downloadLoading = false));
+ // missionApi
+ // .downloadReport(row.missionCode)
+ // .finally(() => (row.downloadLoading = false));
+ downloadReport(row).finally(() => (row.downloadLoading = false));
},
// eslint-disable-next-line no-unused-vars
timeFormatter(row, col, cellValue, index) {
--
Gitblit v1.9.3