瀏覽代碼

map change

tags/v1.2.0
lixin 1 年之前
父節點
當前提交
4db20338c1
共有 1 個文件被更改,包括 15 次插入2 次删除
  1. +15
    -2
      src/views/dashboard/components/WarningDrawer.vue

+ 15
- 2
src/views/dashboard/components/WarningDrawer.vue 查看文件

} }


const handleOperate = () => { const handleOperate = () => {
data.operate = data.operate === '悬停' ? '继续飞行' : '悬停'
stopOrGo(data.operate) stopOrGo(data.operate)
data.operate = data.operate === '悬停' ? '继续飞行' : '悬停'
} }
const stopOrGo = async(value) => { const stopOrGo = async(value) => {
if (value !== '悬停') {
if (value === '悬停') {
const res = await controlAir({ const res = await controlAir({
value: { value: {
'zhilin': '01', 'zhilin': '01',
if (res.code === 0) { if (res.code === 0) {
console.log('悬停成功') console.log('悬停成功')
} }
} else {
const res = await controlAir({
value: {
'zhilin': '04',
'taskId': inspectionStore.getList?.id,
'airportId': inspectionStore.getList?.airportId,
'msg': '飞行任务'
}
})

if (res.code === 0) {
console.log('继续飞行')
}
} }
} }



Loading…
取消
儲存