From 7e89ae52ea3b97429a116bd3d8e4b2ba05e02164 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期二, 30 九月 2025 09:39:39 +0800 Subject: [PATCH] 2025.9.30 新增单次走航报告自动生成功能 --- 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