| | |
| | | positions.unshift({latitude: maxItem.latitude, longitude: maxItem.longitude, height:maxItem.drone_height }) |
| | | positions.push({latitude: maxItem.latitude, longitude: maxItem.longitude, height:maxItem.drone_height}) |
| | | let resultHeight = 0 |
| | | let valueHeight = 0 |
| | | await getWaylineMaxTerrainHeight(positions).then(res => { |
| | | resultHeight = safeHeight.value > (res.data.data + 30) ? safeHeight.value : (res.data.data + 30) |
| | | resultHeight = (safeHeight.value + maxItem.drone_height) > (res.data.data + 30) ? (safeHeight.value + maxItem.drone_height) : (res.data.data + 30) |
| | | console.log(resultHeight,maxItem.drone_height, '999') |
| | | valueHeight = (resultHeight - maxItem.drone_height) > backHeight ? _.round(resultHeight - maxItem.drone_height) : 0 |
| | | }) |
| | | let valueHeight = _.round(backHeight - resultHeight, 2) |
| | | if (valueHeight < 0) { |
| | | await ElMessageBox.confirm(`当前返航高度存在安全隐患,建议调整为${resultHeight}米以上后进行发布`, '提示', { |
| | | if (valueHeight > 0) { |
| | | await ElMessageBox.confirm(`当前返航高度存在安全隐患,建议调整为${valueHeight}米以上后进行发布`, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | |
| | | const aiTypeList = inject('aiTypeList') |
| | | |
| | | watch(activeTab, (newTab, oldTab) => { |
| | | if (newTab === 'all') { |
| | | searchForm.status = '' |
| | | } |
| | | if(newTab === 'WAIT_AUDIT') { |
| | | searchForm.status = '1' |
| | | } |
| | |
| | | if(newTab === 'PASS') { |
| | | searchForm.status = '3' |
| | | } |
| | | }, { immediate: true }) |
| | | emit('search', searchForm); |
| | | }) |
| | | |
| | | // 周期 |
| | | const cycles = ref(['每天', '周一', '周二', '周三', '周四', '周五', '周六', '周末', '周天', '工作日']) |
| | |
| | | searchForm.deal_time = "" |
| | | searchForm.file_id = "" |
| | | searchForm.key_word = "" |
| | | searchForm.status = '' |
| | | if (activeTab.value === 'all') { |
| | | searchForm.status = '' |
| | | } |
| | | searchForm.rep_fre_type = '' |
| | | dateRange.value = '' |
| | | searchForm.create_start_date = null |
| | |
| | | // tab切换 |
| | | function handleTabChange (tab) { |
| | | activeTab.value = tab.paneName |
| | | orderListParams.status = '' |
| | | if (tab.paneName === 'WAIT_AUDIT') { |
| | | orderListParams.status = '1' |
| | | } else if (tab.paneName === 'REJECTED') { |
| | | orderListParams.status = '2' |
| | | } else if (tab.paneName === 'PASS') { |
| | | orderListParams.status = '3' |
| | | } else if (tab.paneName === 'DRAFT') { |
| | | orderListParams.status = '0' |
| | | } |
| | | refreshGetOrderList() |
| | | // orderListParams.status = '' |
| | | // if (tab.paneName === 'WAIT_AUDIT') { |
| | | // orderListParams.status = '1' |
| | | // } else if (tab.paneName === 'REJECTED') { |
| | | // orderListParams.status = '2' |
| | | // } else if (tab.paneName === 'PASS') { |
| | | // orderListParams.status = '3' |
| | | // } else if (tab.paneName === 'DRAFT') { |
| | | // orderListParams.status = '0' |
| | | // } |
| | | // refreshGetOrderList() |
| | | } |
| | | |
| | | // 更新统计数 |
| | |
| | | const searchClick = params => { |
| | | orderListParams.current = 1 |
| | | orderListParams.size = 10 |
| | | console.log('333', params) |
| | | orderListParams.searchParams = params |
| | | getTableList() |
| | | } |