| | |
| | | </el-table-column> |
| | | <el-table-column prop="skilledTaskType" show-overflow-tooltip label="擅长任务类型"> |
| | | <template v-slot="{ row }"> |
| | | {{ getDictLabel(row.skilledTaskType, dictObj.patrolTaskType) }} |
| | | {{ getDictLabel(row.skilledTaskType, dictObj.workOrderType) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" class-name="operation-btns" width="180"> |
| | |
| | | import { getDictionaryByCode } from '@/api/system/dictbiz' |
| | | import { getDictLabel } from '@ztzf/utils' |
| | | import { getFlyingHandPage, removeFlyingHand } from './flyingHandApi' |
| | | import { deviceFlyerApi } from '@/api/zkxt' |
| | | import { deviceFlyerApi,deviceFlyerDetailApi } from '@/api/zkxt' |
| | | import FlyingHandDialog from './FlyingHandDialog.vue' |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | | import { prod } from 'mathjs' |
| | |
| | | const flyingHandData = ref({}) |
| | | |
| | | const dictObj = ref({ |
| | | patrolTaskType: [], // 擅长任务类型 |
| | | workOrderType: [], // 擅长任务类型 |
| | | skilledUavType: [], // 擅长机型 |
| | | technicalStrength: [] // 技术特长 |
| | | }) |
| | |
| | | // 查看飞手 |
| | | function viewFlyingHand(row) { |
| | | dialogType.value = 'view' |
| | | flyingHandData.value = { ...row } |
| | | dialogVisible.value = true |
| | | if (row.flyerId) { |
| | | deviceFlyerDetailApi(row.flyerId).then(res => { |
| | | flyingHandData.value = { ...row } |
| | | flyingHandData.value.licenseFrontFileUrl = res.data.data.licenseFrontFileUrl |
| | | flyingHandData.value.licenseBackFileUrl = res.data.data.licenseBackFileUrl |
| | | flyingHandData.value.certification = [res.data.data.licenseFrontFileUrl, res.data.data.licenseBackFileUrl] |
| | | dialogVisible.value = true |
| | | }) |
| | | } else { |
| | | flyingHandData.value = { ...row } |
| | | dialogVisible.value = true |
| | | } |
| | | } |
| | | |
| | | // 编辑飞手 |
| | |
| | | |
| | | // 获取字典 |
| | | function getDictList() { |
| | | getDictionaryByCode('patrolTaskType,skilledUavType,technicalStrength').then(res => { |
| | | getDictionaryByCode('workOrderType,skilledUavType,technicalStrength').then(res => { |
| | | dictObj.value = res.data.data |
| | | }) |
| | | } |
| | |
| | | getFlyingHandList() |
| | | }) |
| | | </script> |
| | | <style scoped lang="scss"></style> |
| | | <style scoped lang="scss"></style> |