| | |
| | | destroy-on-close |
| | | :close-on-click-modal="false" |
| | | > |
| | | <el-row class="detail-row-view" v-if="dialogType === 'view'"> |
| | | <el-col :span="12"> |
| | | <div class="label">飞手姓名</div> |
| | | <div class="val">{{ formData.flyerName }}</div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">飞手电话</div> |
| | | <div class="val">{{ formData.flyerPhone }}</div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">飞行时长</div> |
| | | <div class="val">{{ formData.flightHours }}</div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">技术特长</div> |
| | | <div class="val">{{ getDictLabel(formData.technicalStrength, dictObj.technicalStrength) }}</div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">擅长机型</div> |
| | | <div class="val">{{ getDictLabel(formData.skilledUavType, dictObj.skilledUavType) }}</div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">擅长任务类型</div> |
| | | <div class="val">{{ getDictLabel(formData.skilledTaskType, dictObj.skilledTaskType) }}</div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">项目经验</div> |
| | | <div class="val">{{ formData.projectExperience }}</div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">飞手证书</div> |
| | | <div class="val"> |
| | | <el-image |
| | | v-for="(item, index) in formData.certification" |
| | | :key="index" |
| | | :src="item" |
| | | :preview-src-list="formData.certification" |
| | | class="gd-image" |
| | | style="width: 100px; height: 100px; margin-right: 10px;" |
| | | /> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-form |
| | | ref="formRef" |
| | | :model="formData" |
| | | :rules="rules" |
| | | class="gd-form" |
| | | label-width="160px" |
| | | v-else |
| | | > |
| | | <el-row> |
| | | <el-col :span="12"> |
| | |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24" v-if="dialogType === 'view'"> |
| | | <!-- <el-col :span="24" v-if="dialogType === 'view'"> |
| | | <el-form-item label="飞手证书" prop="certification"> |
| | | <el-image |
| | | v-for="(item, index) in formData.certification" |
| | |
| | | style="width: 100px; height: 100px; margin-right: 10px;" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | </el-form> |
| | | <template #footer> |
| | |
| | | import { ref, reactive, computed, watch, inject } from 'vue' |
| | | import { submitFlyingHand } from './flyingHandApi' |
| | | import { ElMessage } from 'element-plus' |
| | | import { getDictLabel } from '@ztzf/utils' |
| | | |
| | | import { fieldRules } from '@ztzf/utils' |
| | | |
| | |
| | | const dialogTitle = computed(() => { |
| | | switch (props.dialogType) { |
| | | case 'add': |
| | | return '添加飞手信息' |
| | | return '新增' |
| | | case 'edit': |
| | | return '编辑飞手信息' |
| | | return '编辑' |
| | | case 'view': |
| | | return '查看飞手信息' |
| | | return '查看' |
| | | default: |
| | | return '飞手信息' |
| | | } |