吉安感知网项目-前端
chenyao
2026-02-11 e4439e5d0a2cba9983f013bd044fe4e22c7b7077
applications/task-work-order/src/views/orderView/flyingHand/index.vue
@@ -72,7 +72,7 @@
               </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">
@@ -113,7 +113,7 @@
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'
@@ -136,7 +136,7 @@
const flyingHandData = ref({})
const dictObj = ref({
   patrolTaskType: [], // 擅长任务类型
   workOrderType: [], // 擅长任务类型
   skilledUavType: [], // 擅长机型
   technicalStrength: [] // 技术特长
})
@@ -178,8 +178,18 @@
// 查看飞手
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
   }
}
// 编辑飞手
@@ -212,7 +222,7 @@
// 获取字典
function getDictList() {
   getDictionaryByCode('patrolTaskType,skilledUavType,technicalStrength').then(res => {
   getDictionaryByCode('workOrderType,skilledUavType,technicalStrength').then(res => {
      dictObj.value = res.data.data
   })
}
@@ -233,4 +243,4 @@
    getFlyingHandList()
})
</script>
<style scoped lang="scss"></style>
<style scoped lang="scss"></style>