| | |
| | | <basic-container> |
| | | <el-form ref="queryParamsRef" :model="searchParams" class="gd-search-form"> |
| | | <el-form-item label="飞手姓名" prop="flyerName"> |
| | | <el-select |
| | | <el-input |
| | | class="gd-input gray" |
| | | v-model="searchParams.flyerName" |
| | | placeholder="请输入飞手姓名" |
| | | clearable |
| | | /> |
| | | <!-- <el-select |
| | | class="gd-select gray" |
| | | popper-class="gd-select-popper" |
| | | v-model="searchParams.flyerName" |
| | |
| | | :label="item.name" |
| | | :value="item.id" |
| | | /> |
| | | </el-select> |
| | | </el-select> --> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="擅长机型" prop="skilledUavType"> |
| | |
| | | </el-form> |
| | | |
| | | <div class="gd-table-toolbar"> |
| | | <el-button :icon="Plus" color="#4C34FF" type="primary" @click="addFlyingHand">新增</el-button> |
| | | <el-button :icon="Plus" color="#4C34FF" type="primary" @click="addFlyingHand">飞手建档</el-button> |
| | | </div> |
| | | |
| | | <div class="gd-table-container" v-loading="loading"> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="skilledTaskType" show-overflow-tooltip label="擅长任务类型"> |
| | | <template v-slot="{ row }"> |
| | | {{ getDictLabel(row.skilledTaskType, dictObj.skilledTaskType) }} |
| | | {{ 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({ |
| | | skilledTaskType: [], // 擅长任务类型 |
| | | 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('skilledTaskType,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> |