From 8184e64ee56e86f3cb0a418b60703640420791c6 Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Fri, 25 Aug 2023 16:47:03 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E8=BD=BD=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Debug.vue | 29 +++++++++++++++++++++++++++++
src/components/DetailTable.vue | 4 ++--
2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/src/components/Debug.vue b/src/components/Debug.vue
index ce99a35..0337f2a 100644
--- a/src/components/Debug.vue
+++ b/src/components/Debug.vue
@@ -97,6 +97,12 @@
保存
+ 载入配置
@@ -186,6 +192,29 @@ const handleSelectChange = async val => {
}
}
+const loadConfig = async () => {
+ const val = station_core_id.value
+ const res = await getCameraConfig(val)
+ if (res?.code == 200) {
+ if (res?.data?.exposure) {
+ exposure.value = res?.data?.exposure
+ // 改变相机的exposure
+ handleExposureTime(res?.data?.exposure)
+ } else {
+ exposure.value = 0
+ handleExposureTime(0)
+ }
+ if (res?.data?.brightness) {
+ simulation_brightness.value = res?.data?.brightness
+ // 改变相机的simulation_brightness
+ handleSimulationBrightness(res?.data?.brightness)
+ } else {
+ simulation_brightness.value = 0
+ handleSimulationBrightness(0)
+ }
+ }
+}
+
onMounted(async () => {
const res = await coreListApi()
if (res?.code == 200) {
diff --git a/src/components/DetailTable.vue b/src/components/DetailTable.vue
index 7f5e36e..6ef1bc9 100644
--- a/src/components/DetailTable.vue
+++ b/src/components/DetailTable.vue
@@ -70,7 +70,6 @@ const columns = ref([
justifyContent: 'center',
}}
>
-
{row.resultSerial}
+ {row.resultSerial}
)
} else if (row.result == 2) {
@@ -141,7 +141,6 @@ const columns = ref([
justifyContent: 'center',
}}
>
- {row.resultSerial}
+ {row.resultSerial}
)
} else {