| | |
| | | </el-table-column> |
| | | <el-table-column prop="end_time" label="标签" align="center"> |
| | | <template #default="scope"> |
| | | <el-select v-model="scope.row.states"> |
| | | <el-select v-model="scope.row.label_id" @change="handleUpdateLabel"> |
| | | <el-option |
| | | v-for="item in labelList" |
| | | :key="item.value" |
| | |
| | | </el-dialog> --> |
| | | </template> |
| | | <script setup> |
| | | import { getHistoryTrack, exportFlyLog, addStar } from '@/api/logs'; |
| | | import { getHistoryTrack, exportFlyLog, addStar, updateDroneFlight } from '@/api/logs'; |
| | | import { downloadXls } from '@/utils/util'; |
| | | |
| | | const total = ref(0) |
| | |
| | | }) |
| | | } |
| | | |
| | | // 打标签 |
| | | function handleUpdateLabel(row) { |
| | | updateDroneFlight({ flight_log_id: row.id, states: row.states }).then(res => { |
| | | getList() |
| | | }) |
| | | } |
| | | |
| | | // 导出 |
| | | function handleExport(row) { |
| | | exportFlyLog({ flight_id: row.id }).then(res => { |