|
|
|
@ -270,7 +270,7 @@ |
|
|
|
@click="runCommand('一键返航', '无人机将返回绑定机巢并自动降落。')" |
|
|
|
> |
|
|
|
<svg><use href="#i-home" /></svg> |
|
|
|
<span><strong>一键返航</strong><small>{{ buttonStatusText('一键返航') }}</small></span> |
|
|
|
<span><strong>一键返航</strong><small>{{ commandProgress.buttonTitle === '一键返航' && commandProgress.status ? buttonStatusText('一键返航') : '自动回巢 · 降落' }}</small></span> |
|
|
|
</button> |
|
|
|
<button |
|
|
|
v-else |
|
|
|
@ -278,14 +278,14 @@ |
|
|
|
@click="runCommand('起飞', '无人机将立即起飞进入待命状态。')" |
|
|
|
> |
|
|
|
<svg><use href="#i-plane" /></svg> |
|
|
|
<span><strong>起飞</strong><small>{{ buttonStatusText('起飞') }}</small></span> |
|
|
|
<span><strong>起飞</strong><small>{{ commandProgress.buttonTitle === '起飞' && commandProgress.status ? buttonStatusText('起飞') : '离巢后进入待命' }}</small></span> |
|
|
|
</button> |
|
|
|
<div class="secondary-actions"> |
|
|
|
<button @click="runCommand('暂停任务', '向绑定机巢下发暂停指令。')"><svg><use href="#i-stop" /></svg>暂停任务</button> |
|
|
|
<button @click="runCommand('继续任务', '向绑定机巢下发继续指令。')"><svg><use href="#i-play" /></svg>继续任务</button> |
|
|
|
<button @click="runCommand('取消任务', '向绑定机巢下发取消指令。')"><svg><use href="#i-x" /></svg>取消任务</button> |
|
|
|
</div> |
|
|
|
<button class="reset-action" @click="runCommand('紧急停止', '立即中止飞行,无人机原地悬停待命。')"><svg><use href="#i-stop" /></svg><span><strong>紧急停止</strong><small>{{ buttonStatusText('紧急停止') }}</small></span></button> |
|
|
|
<button class="reset-action" @click="runCommand('紧急停止', '立即中止飞行,无人机原地悬停待命。')"><svg><use href="#i-stop" /></svg><span><strong>紧急停止</strong><small>{{ commandProgress.buttonTitle === '紧急停止' && commandProgress.status ? buttonStatusText('紧急停止') : '中止任务 · 原地悬停' }}</small></span></button> |
|
|
|
<div v-show="controlExpanded" class="drone-control-all"> |
|
|
|
<button v-for="cmd in droneExtraCommands" :key="cmd.title" :class="{ danger: cmd.danger }" @click="runCommand(cmd.title, cmd.desc)"> |
|
|
|
<svg><use :href="cmd.icon" /></svg> |
|
|
|
|