From 3cd9c972c3a9336194b18f5518c10fa1a6125055 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Wed, 02 Apr 2025 19:47:19 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/drone/command-center-dashboard
---
src/store/modules/home.js | 59 +++++++++++++++++++++++++++++------------------------------
1 files changed, 29 insertions(+), 30 deletions(-)
diff --git a/src/store/modules/home.js b/src/store/modules/home.js
index 0a4e0c3..3c93ae4 100644
--- a/src/store/modules/home.js
+++ b/src/store/modules/home.js
@@ -1,4 +1,4 @@
-import { set } from "lodash";
+import { set } from 'lodash'
import { EDeviceTypeName } from '@/utils/staticData/enums'
const home = {
@@ -66,33 +66,32 @@
},
setDockOnfo: (state, info) => {
if (Object.keys(info.host).length === 0) return
-
- if (!state.deviceState.dockInfo[info.sn]) {
- state.deviceState.dockInfo[info.sn] = {}
- }
- state.deviceState.currentSn = info.sn
- state.deviceState.currentType = EDeviceTypeName.Dock
- const dock = state.deviceState.dockInfo[info.sn]
- if (info.host.mode_code !== undefined) {
- dock.basic_osd = info.host
- state.deviceState.drone_charge_state_new =
- dock.basic_osd.drone_charge_state
- return
- }
- if (info.host.sdr) {
- dock.link_osd = info.host
- return
- }
- if (info.host.job_number !== undefined) {
- dock.work_osd = info.host
- }
- },
- },
- getters:{
- test(state) {
- return state.singleUavHome.id.toString() + '65'
- }
- }
-};
-export default home;
+ if (!state.deviceState.dockInfo[info.sn]) {
+ state.deviceState.dockInfo[info.sn] = {}
+ }
+ state.deviceState.currentSn = info.sn
+ state.deviceState.currentType = EDeviceTypeName.Dock
+ const dock = state.deviceState.dockInfo[info.sn]
+ if (info.host.mode_code !== undefined) {
+ dock.basic_osd = info.host
+ state.deviceState.drone_charge_state_new = dock.basic_osd.drone_charge_state
+ return
+ }
+ if (info.host.sdr) {
+ dock.link_osd = info.host
+ return
+ }
+ if (info.host.job_number !== undefined) {
+ dock.work_osd = info.host
+ }
+ },
+ },
+ getters: {
+ test(state) {
+ return state.singleUavHome.id.toString() + '65'
+ },
+ },
+}
+
+export default home
--
Gitblit v1.9.3