|
|
@@ -218,10 +218,27 @@ export default defineComponent({ |
|
|
|
clearInterval(data.liveTimer) |
|
|
|
data.liveTimer = null |
|
|
|
} else { |
|
|
|
handleDrawerColse() |
|
|
|
$dialog.confirm( |
|
|
|
{ |
|
|
|
type: 'error', |
|
|
|
title: '错误', |
|
|
|
showIcon: false, |
|
|
|
content: `飞行任务失败`, |
|
|
|
positiveText: '返回', |
|
|
|
// 是否在摁下 Esc 键的时候关闭对话框 |
|
|
|
closeOnEsc: false, |
|
|
|
// 是否可以通过点击 mask 关闭对话框 |
|
|
|
maskClosable: false, |
|
|
|
// 不填对应的按钮不会出现 |
|
|
|
negativeText: null, |
|
|
|
confirm: () => { |
|
|
|
handleDrawerColse() |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
}, 3 * 60 * 1000) |
|
|
|
}, 2 * 60 * 1000) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
@@ -276,10 +293,18 @@ export default defineComponent({ |
|
|
|
'msg': '飞行任务' |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
// 继续飞行关闭手动控制 |
|
|
|
data.control = '手动控制' |
|
|
|
data.showControl = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const handleControl = () => { |
|
|
|
if (data.control === '手动控制') { |
|
|
|
stopOrGo('悬停') |
|
|
|
data.operate = '继续飞行' |
|
|
|
} |
|
|
|
data.control = data.control === '手动控制' ? '关闭控制' : '手动控制' |
|
|
|
data.showControl = !data.showControl |
|
|
|
} |