| | |
| | | <el-select |
| | | no-data-text="暂无推荐飞手" |
| | | class="gd-select" |
| | | popper-class="gd-select-popper" |
| | | popper-class="gd-select-popper" |
| | | v-model="row.deviceFlyerId" |
| | | placeholder="请选择" |
| | | filterable |
| | | :disabled="dialogReadonly || !taskList[$index].patrolTaskType" |
| | | @change="handleFlyerChange($index, $event)" |
| | | |
| | | > |
| | | <el-option |
| | | v-for="item in flyerListMap[$index] || []" |
| | |
| | | executeTime: '', |
| | | patrolRouteUrl: '', |
| | | deviceFlyerId: '', |
| | | recommendFlyerName: '', |
| | | deviceId: null, |
| | | taskDesc: '', |
| | | }) |
| | |
| | | async function handlePatrolTaskTypeChange(index, skilledTaskType) { |
| | | // 清空该行已选择的飞手 |
| | | taskList.value[index].deviceFlyerId = '' |
| | | taskList.value[index].recommendFlyerName = '' |
| | | // 获取对应的飞手列表 |
| | | await getFlyerList(index, skilledTaskType) |
| | | } |
| | | |
| | | function handleFlyerChange(index, flyerId) { |
| | | const selectedFlyer = (flyerListMap.value[index] || []).find(item => item.flyerId === flyerId) |
| | | taskList.value[index].recommendFlyerName = selectedFlyer?.flyerName || '' |
| | | } |
| | | |
| | | |
| | | import * as turf from '@turf/turf' |
| | | |