| | |
| | | <el-table-column label="操作" width="230" align="center"> |
| | | <template #default="scope"> |
| | | <el-button icon="el-icon-view" type="text" @click="handleDetail(scope.row)">查看</el-button> |
| | | <el-button icon="el-icon-view" type="text" @click="handleDelete(scope.row)">删除</el-button> |
| | | <!-- <el-button icon="el-icon-delete" type="text" @click="handleDelete">删除</el-button> --> |
| | | <el-button type="text" @click="handleStar(scope.row)"> |
| | | <el-icon><Star /></el-icon> |
| | |
| | | }) |
| | | } |
| | | |
| | | // 删除 |
| | | function handleDelete(row) { |
| | | ElMessageBox.confirm('确定删除该条数据?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | }).then(() => { |
| | | updateDroneFlight({ isDeleted: row.id }).then(res => { |
| | | ElMessage.success('删除成功') |
| | | getList() |
| | | }) |
| | | }).catch(() => { |
| | | ElMessage({ |
| | | type: 'info', |
| | | message: '已取消删除' |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | // 导出 |
| | | function handleExport(row) { |
| | | exportBlob( |