From 433d25cc375f679ebace4ec832aa4ffb7e857b4b Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 19 Apr 2025 22:18:35 +0800
Subject: [PATCH] feat: 事件跳转后台
---
src/components/CurrentTaskDetails/ControlPanel/BaseControl.vue | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/components/CurrentTaskDetails/ControlPanel/BaseControl.vue b/src/components/CurrentTaskDetails/ControlPanel/BaseControl.vue
index aacaf7d..c365f48 100644
--- a/src/components/CurrentTaskDetails/ControlPanel/BaseControl.vue
+++ b/src/components/CurrentTaskDetails/ControlPanel/BaseControl.vue
@@ -8,6 +8,7 @@
</div>
<div
v-for="item in list3"
+ :key="item.name"
:style="item.style"
class="operateBtn"
:title="item.name"
@@ -33,6 +34,8 @@
const list3 = computed(() => [
{ name: '自动控制', svg: 'autoControl', style: { top: '-70%' }, active: isAutoControl.value, handle: autoControl },
+ //如果是返航, 继续任务 就是自动任务
+ //如果是取消返航, 继续任务 就是自动任务
{ name: '继续任务', svg: 'continueTask', style: { left: '70%' }, active: false, handle: autoControl },
{
name: '手动控制',
@@ -45,7 +48,6 @@
])
function autoControl() {
- isAutoControl.value = true
EventBus.emit('controlPanel-cancelControl')
}
@@ -87,6 +89,7 @@
&:hover {
cursor: pointer;
+ //background: radial-gradient(circle, #5d5c5e 0%, #514f52 50%, #3d3b3d 100%);
box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.3);
}
}
--
Gitblit v1.9.3