From 5808f76456ca0d40de5074f132b73a5a488e3e13 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 09 Dec 2025 09:12:03 +0800
Subject: [PATCH] Merge branch 'refs/heads/feature/v9.0/9.0.1' into test

---
 src/views/device/components/DockControlPanel.vue |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/src/views/device/components/DockControlPanel.vue b/src/views/device/components/DockControlPanel.vue
index cf2eb78..e51976b 100644
--- a/src/views/device/components/DockControlPanel.vue
+++ b/src/views/device/components/DockControlPanel.vue
@@ -82,6 +82,8 @@
 import { cmdList as baseCmdList } from '@/types/device-cmd'
 import { useDockControl } from './use-dock-control'
 import { EDockModeCode } from '@/types/device'
+import { updateDeviceSettingFormModelByOsd, updateDeviceSettingInfoByOsd } from '@/utils/device-setting';
+import { initDeviceSetting, initDeviceSettingFormModel } from '@/types/device-setting';
 import { updateDeviceCmdInfoByOsd, updateDeviceCmdInfoByExecuteInfo } from '@/utils/device-cmd'
 import { setThermalCurrentPaletteStyle, setPhotoStorageSet, setVideoStorageSet, getLiveStatus, setStreamsSwitch, photoAndVideoCmd } from '@/api/device-setting'
 import DeviceSettingBox from './DeviceSettingBox.vue'
@@ -89,12 +91,21 @@
 import { useConnectWebSocket } from '@/utils/websocket/connect-websocket';
 import { getWebsocketUrl } from '@/utils/websocket/config';
 import EventBus from '@/utils/eventBus';
+import { cloneDeep } from 'lodash';
 
 const valueStyle = ref(0)
 const cameraModeValue = ref(0)
 const videoValue = ref("zoom")
 const photo_storage_settings = ref([])
 const video_storage_settings = ref([])
+
+
+
+let deviceSetting = ref(cloneDeep(initDeviceSetting));
+const deviceSettingFormModelFromOsd = ref(cloneDeep(initDeviceSettingFormModel));
+
+provide('deviceSetting', deviceSetting)
+provide('deviceSettingFormModelFromOsd', deviceSettingFormModelFromOsd)
 
 // 定义一个数据videoList
 const videoList = reactive([])
@@ -222,7 +233,8 @@
 watch(
   () => Store.getters.deviceState,
   value => {
-    // console.log('设备状态变化', value)
+    // console.log(value, '测试')
+    // console.log('设备状态变化', value.deviceInfo[props.deviceInfo.child_sn])
     if (props.sn && (value.currentSn === props.deviceInfo.child_sn || value.currentSn === props.deviceInfo.device_sn)) {
       debugStatus.value = value.dockInfo[props.deviceInfo.device_sn]?.basic_osd?.mode_code === EDockModeCode.Remote_Debugging
       const devices = {}
@@ -240,6 +252,9 @@
       }
       deviceInfo = ref(value.deviceInfo[props.deviceInfo.child_sn])
       updateDeviceCmdInfoByOsd(cmdList.value, devices)
+      // by cpz
+      updateDeviceSettingInfoByOsd(deviceSetting, value.deviceInfo[props.deviceInfo.child_sn]);
+      updateDeviceSettingFormModelByOsd(deviceSettingFormModelFromOsd, value.deviceInfo[props.deviceInfo.child_sn])
     }
   },
   {
@@ -465,9 +480,10 @@
   border-radius: 2px;
 
   .control-cmd-wrapper {
+    font-size: 14px;
     .control-cmd-header {
       font-size: 14px;
-      font-weight: 600;
+      //font-weight: 600;
       padding: 10px 10px 0px;
 
       .debug-btn {
@@ -498,7 +514,10 @@
           flex-direction: column;
 
           .item-label {
-            font-weight: 700;
+            //font-weight: 700;
+          }
+          .item-status {
+            color: #8d8b8b;
           }
         }
       }

--
Gitblit v1.9.3