From 4a42f2afecb262dce6b564bdf9182af67316589d Mon Sep 17 00:00:00 2001 From: "WORK\\64751" <64751245@qq.com> Date: Tue, 2 Sep 2025 13:05:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B6=E6=AE=B5=E6=80=A7=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 5 +- src/apis/common.js | 13 +- src/assets/iconfont/demo_index.html | 75 ++++++- src/assets/iconfont/iconfont.css | 18 +- src/assets/iconfont/iconfont.js | 2 +- src/assets/iconfont/iconfont.json | 21 ++ src/assets/iconfont/iconfont.ttf | Bin 8236 -> 8800 bytes src/assets/iconfont/iconfont.woff | Bin 5516 -> 5800 bytes src/assets/iconfont/iconfont.woff2 | Bin 4716 -> 4932 bytes src/assets/icons/leftplane.png | Bin 2262 -> 1542 bytes src/assets/icons/middleplane.png | Bin 0 -> 1320 bytes src/assets/icons/rightplane.png | Bin 2497 -> 1619 bytes src/assets/style/main.less | 42 ++++ src/views/carbin/components/beforeCheck.vue | 209 +++++++++++++++++--- src/views/carbin/components/flying.vue | 30 +-- src/views/carbin/index.vue | 147 +++++++++++--- src/views/carbin/toolComp/planeControl.vue | 41 ++-- src/views/carbin/toolComp/screen.vue | 6 +- 18 files changed, 511 insertions(+), 98 deletions(-) create mode 100644 src/assets/icons/middleplane.png diff --git a/index.html b/index.html index 0abba9c..efdb2ca 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,10 @@ - +
- - {{ item.time }} - {{ item.description }} - + + + + {{ item.time }} + + {{ + item.description + }} + {{ + item.description + }} + {{ item.description }} + 耗时{{ item.diffSeconds }}
@@ -152,9 +314,12 @@ onUnmounted(() => { } .fail_text { font-weight: 500; - color: #ffffff; - background: linear-gradient(0deg, #de4747 0%, #f12626 100%); - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; + //color: #ffffff; + //background: linear-gradient(0deg, #de4747 0%, #f12626 100%); + //-webkit-background-clip: text; + //-webkit-text-fill-color: transparent; +} +.errorBox { + box-shadow: inset 0 0 5px 5px rgba(255, 0, 0, 0.5); } diff --git a/src/views/carbin/components/flying.vue b/src/views/carbin/components/flying.vue index f473644..1519cdc 100644 --- a/src/views/carbin/components/flying.vue +++ b/src/views/carbin/components/flying.vue @@ -27,6 +27,9 @@ let viewMode = ref(1) //1-1/4方式 2-对半方式 let littleViewMode = ref(2) //1-舱外视频 2-舱内视频 3-无人机视频 let littleViewModeName = ref('舱内画面') +import img_default from '@/assets/icons/state1.png' +import img_touch from '@/assets/icons/state2.png' + //飞机高度 let planeAlt = 0 //已修改过小窗的视频类型 @@ -37,7 +40,7 @@ let planeStateList = reactive({ key: 'vspeed', name: '爬升速度', icon: 'icon-shangshengxiajiang', - value: '-', + value: '0', touch: false, content: '爬升
速度', unit: '/s', @@ -46,7 +49,7 @@ let planeStateList = reactive({ id: 2, name: '平飞速度', icon: 'icon-jiantouzuoyou', - value: '-', + value: '0', touch: false, content: '平飞
速度', unit: '/s', @@ -55,7 +58,7 @@ let planeStateList = reactive({ id: 3, name: '距离机场', icon: 'icon-H', - value: '-', + value: '0', touch: false, content: '距离
机场', unit: 'm', @@ -64,7 +67,7 @@ let planeStateList = reactive({ id: 4, name: '海拔高度', icon: 'icon-tiedijuli', - value: '-', + value: '0', touch: false, content: '海拔
高度', unit: 'm', @@ -73,7 +76,7 @@ let planeStateList = reactive({ id: 5, name: '无人机俯仰角', icon: 'icon-flight-takeoff-line', - value: '-', + value: '0', touch: false, content: '无人机
俯仰角', unit: '°', @@ -82,7 +85,7 @@ let planeStateList = reactive({ id: 6, name: '无人机偏航角', icon: 'icon-feihangqipianhangjiao', - value: '-', + value: '0', content: '无人机
偏航角', touch: false, unit: '°', @@ -91,7 +94,7 @@ let planeStateList = reactive({ id: 7, name: '云台俯仰角', icon: 'icon-pianhangjiao-1', - value: '-', + value: '0', content: '云台
俯仰角', touch: false, unit: '°', @@ -100,7 +103,7 @@ let planeStateList = reactive({ id: 8, name: '云台偏航角', icon: 'icon-pianhangjiao-1', - value: '-', + value: '0', content: '云台
偏航角', touch: false, unit: '°', @@ -208,7 +211,8 @@ airPortSocketStore.$subscribe((mutate, state) => { -
+
+
- +
- 电池电量 + 电池电量
{{ precent }}%/{{ lastTime }}min
@@ -120,17 +123,19 @@ onMounted(() => {}) diff --git a/src/views/carbin/toolComp/screen.vue b/src/views/carbin/toolComp/screen.vue index d825a29..2479639 100644 --- a/src/views/carbin/toolComp/screen.vue +++ b/src/views/carbin/toolComp/screen.vue @@ -39,11 +39,15 @@ const iframeLoaded = () => { } const setVideo = () => { + // let tempLive = 'http://127.0.0.1:7001/live/movie.flv' if (showType.value == 'video_out') { + // LiveOptions.videoUrl = tempLive LiveOptions.videoUrl = row.external_monitor_url } else if (showType.value == 'video_in') { + // LiveOptions.videoUrl = tempLive LiveOptions.videoUrl = row.internal_monitor_url } else if (showType.value == 'video_plane') { + // LiveOptions.videoUrl = tempLive LiveOptions.videoUrl = row.camera_url } // console.log(row) @@ -66,7 +70,7 @@ watch(