From 646eb9c27063ba57a56df95d48cb6455bcef99c1 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Mon, 29 Apr 2024 17:00:53 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=BB=BC=E5=90=88=E9=A9=BE=E9=A9=B6?= =?UTF-8?q?=E8=88=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/home.js | 4 +- .../copilot/components/CopilotHeader.vue | 2 +- src/views/copilot/container.vue | 2 +- .../copilot/energy/components/ElecCost.vue | 30 ++ .../copilot/energy/components/NatGas.vue | 30 ++ .../energy/components/StockMonitor.vue | 30 ++ .../copilot/energy/components/WaterCost.vue | 30 ++ src/views/copilot/energy/index.vue | 71 ++++- .../copilot/yield/components/ChipInvest.vue | 2 +- .../yield/components/sub/bar/BarChartBase.vue | 257 ------------------ 10 files changed, 190 insertions(+), 268 deletions(-) create mode 100644 src/views/copilot/energy/components/ElecCost.vue create mode 100644 src/views/copilot/energy/components/NatGas.vue create mode 100644 src/views/copilot/energy/components/StockMonitor.vue create mode 100644 src/views/copilot/energy/components/WaterCost.vue delete mode 100644 src/views/copilot/yield/components/sub/bar/BarChartBase.vue diff --git a/src/store/modules/home.js b/src/store/modules/home.js index ca92d85..fc0d0bf 100644 --- a/src/store/modules/home.js +++ b/src/store/modules/home.js @@ -64,9 +64,11 @@ const actions = { }, /** 初始化驾驶舱数据 */ async initCopilot({ commit }, { period, source }) { + if (source == 'comprehensive') return; + const fetcher = { yield: getCopilotYield, - energy: getCopilotEnergy, + comprehensive: getCopilotEnergy, efficiency: getCopilotEfficiency, }[source]; // 获取产量数据 diff --git a/src/views/copilot/components/CopilotHeader.vue b/src/views/copilot/components/CopilotHeader.vue index 8ee26cf..40ced8d 100644 --- a/src/views/copilot/components/CopilotHeader.vue +++ b/src/views/copilot/components/CopilotHeader.vue @@ -9,7 +9,7 @@