From 2a45e8331f65e4fc6dee2fba898bfbeaa01b0f5c Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 21 Apr 2025 16:34:15 +0800
Subject: [PATCH] Merge branch 'test' of http://139.196.74.78:10010/r/drone/command-center-dashboard into test
---
src/views/SignMachineNest/MachineLeft/MachineData.vue | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/views/SignMachineNest/MachineLeft/MachineData.vue b/src/views/SignMachineNest/MachineLeft/MachineData.vue
index 0a4db03..01ccb7d 100644
--- a/src/views/SignMachineNest/MachineLeft/MachineData.vue
+++ b/src/views/SignMachineNest/MachineLeft/MachineData.vue
@@ -27,13 +27,13 @@
const statisticsList = ref([]);
+const singleTotal = inject('singleTotal')
// 添加监听
-watch(
- () => store.state.home.singleTotal,
+watch(singleTotal,
(newValue) => {
if (!newValue) return;
statisticsList.value = [
- { imgurl: rwcs, num: newValue.fly_count || 0, text: '任务次数(次)' },
+ { imgurl: rwcs, num: newValue.task_num || 0, text: '任务次数(次)' },
{ imgurl: sjs, num: newValue.event_count || 0, text: '事件数(件)' },
{ imgurl: jscb, num: newValue.total_cost_saved || 0, text: '节省成本(万元)' },
{ imgurl: rwcg, num: newValue.achievement_count || 0, text: '任务成果(个)' },
--
Gitblit v1.9.3