| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">擅长任务类型</div> |
| | | <div class="val">{{ getDictLabel(formData.skilledTaskType, dictObj.patrolTaskType) }}</div> |
| | | <div class="val">{{ getDictLabel(formData.skilledTaskType, dictObj.workOrderType) }}</div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <div class="label">项目经验</div> |
| | |
| | | :disabled="dialogType === 'view'" |
| | | > |
| | | <el-option |
| | | v-for="item in dictObj.patrolTaskType" |
| | | v-for="item in dictObj.workOrderType" |
| | | :key="item.dictKey" |
| | | :label="item.dictValue" |
| | | :value="item.dictKey" |
| | |
| | | color="#4C34FF" |
| | | @click="handleSubmit" |
| | | > |
| | | 确定 |
| | | 保存 |
| | | </el-button> |
| | | </template> |
| | | </el-dialog> |
| | |
| | | const dialogTitle = computed(() => { |
| | | switch (props.dialogType) { |
| | | case 'add': |
| | | return '新增' |
| | | return '飞手建档' |
| | | case 'edit': |
| | | return '编辑' |
| | | case 'view': |
| | |
| | | if (newData) { |
| | | Object.assign(formData.value, newData) |
| | | formData.value.flightHours = Number(newData.flightHours) |
| | | } |
| | | } |
| | | }, |
| | | { deep: true, immediate: true } |
| | | ) |
| | |
| | | margin-bottom: 20px; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |