| | |
| | | align="center" |
| | | :formatter="timeFormatter" |
| | | /> |
| | | <el-table-column label="管理" width="70" align="center"> |
| | | <el-table-column label="管理" width="140" align="center"> |
| | | <template #default="{ row }"> |
| | | <el-button |
| | | type="primary" |
| | |
| | | class="el-button-custom" |
| | | @click="deleteMission(row)" |
| | | >删除</el-button |
| | | > |
| | | <el-button |
| | | :loading="row.downloadLoading" |
| | | type="primary" |
| | | size="small" |
| | | class="el-button-custom" |
| | | @click="downloadReport(row)" |
| | | >报告</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-button> --> |
| | | <MissionCreate></MissionCreate> |
| | | </div> |
| | | <div> |
| | | <!-- <div> |
| | | <el-button type="primary" class="el-button-custom"> |
| | | 数据导入 |
| | | </el-button> |
| | | </div> |
| | | <div> |
| | | </div> --> |
| | | <!-- <div> |
| | | <el-button type="primary" class="el-button-custom"> |
| | | 下载模板 |
| | | </el-button> |
| | | </div> |
| | | </div> --> |
| | | </el-col> |
| | | </el-row> |
| | | </CardDialog> |
| | |
| | | </template> |
| | | <script> |
| | | import moment from 'moment'; |
| | | import missionApi from '@/api/missionApi'; |
| | | import { mapStores } from 'pinia'; |
| | | import { useMissionStore } from '@/stores/mission'; |
| | | import { useFetchData } from '@/composables/fetchData'; |
| | |
| | | }; |
| | | this.msgBoxVisible = true; |
| | | }, |
| | | downloadReport(row) { |
| | | row.downloadLoading = true; |
| | | missionApi |
| | | .downloadReport(row.missionCode) |
| | | .finally(() => (row.downloadLoading = false)); |
| | | }, |
| | | timeFormatter(row, col, cellValue, index) { |
| | | return moment(cellValue).format('YYYY-MM-DD HH:mm:ss'); |
| | | } |