From 6fcf7918917edf0bfdcdda1e95287635cb415a40 Mon Sep 17 00:00:00 2001 From: wxs <211789910@qq.com> Date: Tue, 10 Mar 2026 10:30:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=97=A0=E4=BA=BA=E6=9C=BA=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=EF=BC=8C=E4=BA=AE=E5=BA=A6log,=E5=BC=80=E5=85=B3?= =?UTF-8?q?=E6=9C=BA=E7=AD=89=E5=8A=9F=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/Skyeye-sys-ui/src/api/device.js | 6 - frontend/Skyeye-sys-ui/src/api/task.js | 6 + frontend/Skyeye-sys-ui/src/lang/en.js | 5 + frontend/Skyeye-sys-ui/src/lang/zh.js | 5 + .../home/components/device1-manage/index.vue | 38 ++-- .../home/components/twin-situation/index.js | 212 +++++++++++------- .../home/components/twin-situation/index.scss | 18 +- .../home/components/twin-situation/index.vue | 80 ++++--- .../components/twin-situation/uavTarget.js | 15 +- 9 files changed, 241 insertions(+), 144 deletions(-) diff --git a/frontend/Skyeye-sys-ui/src/api/device.js b/frontend/Skyeye-sys-ui/src/api/device.js index c9fa317..fb9541c 100644 --- a/frontend/Skyeye-sys-ui/src/api/device.js +++ b/frontend/Skyeye-sys-ui/src/api/device.js @@ -41,9 +41,3 @@ export const uavUpdate = params => // #endregion export const getLastStatus = params => req('get', '/skyeye/payload/getLastStatus', params) -// 雷达开启 -export const deviceControlTurnon = params => - req('post', '/sar/control/turnon', params) -// 雷达关闭 -export const deviceControlEndall = params => - req('post', '/sar/control/endall', params) diff --git a/frontend/Skyeye-sys-ui/src/api/task.js b/frontend/Skyeye-sys-ui/src/api/task.js index 923e965..5218c3e 100644 --- a/frontend/Skyeye-sys-ui/src/api/task.js +++ b/frontend/Skyeye-sys-ui/src/api/task.js @@ -90,3 +90,9 @@ export const changeJobStatus = params => export const execBrightnessexport = params => req('post', '/jm/job/exec/brightness', params) +// 雷达开启 +export const deviceControlTurnon = params => + req('post', '/sar/control/turnon', params) +// 雷达关闭 +export const deviceControlEndall = params => + req('post', '/sar/control/endall', params) diff --git a/frontend/Skyeye-sys-ui/src/lang/en.js b/frontend/Skyeye-sys-ui/src/lang/en.js index c847c02..5ced186 100644 --- a/frontend/Skyeye-sys-ui/src/lang/en.js +++ b/frontend/Skyeye-sys-ui/src/lang/en.js @@ -88,6 +88,7 @@ export default { noExecutingTasks: 'No executing tasks', endTask: 'Ended Task', fly: { + isPowerOn: 'Is Power On', statusInfo: 'Flight Status Information', height: 'Height', speed: 'Speed', @@ -171,6 +172,8 @@ export default { stopTaskConfirm: 'Are you sure you want to stop this task?', stopTaskSuccess: 'Task stopped successfully!', planArea: 'Planning Area', + startScan: 'Start Scan', + endScan: 'End Scan', direction: { left: 'Left', right: 'Right', @@ -189,6 +192,8 @@ export default { loaderType: 'Please select loader type', ratio: 'Please enter ratio', }, + radarTurnOnSuccess: 'Radar turned on successfully', + radarEndConfirm: 'Are you sure you want to end scan?', }, device1Manage: { uav: 'UAV', diff --git a/frontend/Skyeye-sys-ui/src/lang/zh.js b/frontend/Skyeye-sys-ui/src/lang/zh.js index 4047d55..cbce1a5 100644 --- a/frontend/Skyeye-sys-ui/src/lang/zh.js +++ b/frontend/Skyeye-sys-ui/src/lang/zh.js @@ -87,6 +87,7 @@ export default { noExecutingTasks: '暂无执行中的任务', endTask: '结束任务', fly: { + isPowerOn: '是否开机', statusInfo: '飞行状态信息', height: '高度', speed: '速度', @@ -176,6 +177,8 @@ export default { }, uavline: "航线", createAirline: '创建航线', + startScan: '开始扫描', + endScan: '结束扫描', rules: { inputTaskName: '请输入任务名称', startAltitude: '请输入起飞点高度', @@ -188,6 +191,8 @@ export default { loaderType: '请选择载荷类型', ratio: '请输入比例', }, + radarTurnOnSuccess: '已开始扫描', + radarEndConfirm: '确定要结束结束扫描?', }, device1Manage: { uav: '无人机', diff --git a/frontend/Skyeye-sys-ui/src/views/home/components/device1-manage/index.vue b/frontend/Skyeye-sys-ui/src/views/home/components/device1-manage/index.vue index d47c229..84e8a73 100644 --- a/frontend/Skyeye-sys-ui/src/views/home/components/device1-manage/index.vue +++ b/frontend/Skyeye-sys-ui/src/views/home/components/device1-manage/index.vue @@ -83,15 +83,25 @@ height="100%" > @@ -111,7 +121,7 @@ @click="editDevice(scope.row)" > -