From 19370f5d86619be358d782a403abcac108e39d05 Mon Sep 17 00:00:00 2001 From: ko1234 Date: Fri, 25 Jul 2025 17:07:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A0=81=E8=A8=AD=E5=82=99modal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/Dashboard.vue | 11 +- .../components/DashboardEffectScatter.vue | 36 +-- .../DashboardEffectScatterModal.vue | 287 ++++++++++++++++++ .../DashboardEffectScatterModalChart.vue | 227 ++++++++++++++ .../components/DashboardElectricity.vue | 4 +- .../components/ForgeInfoModalChart.vue | 219 +++++++++++++ 6 files changed, 763 insertions(+), 21 deletions(-) create mode 100644 src/views/dashboard/components/DashboardEffectScatterModal.vue create mode 100644 src/views/dashboard/components/DashboardEffectScatterModalChart.vue create mode 100644 src/views/dashboard/components/ForgeInfoModalChart.vue diff --git a/src/views/dashboard/Dashboard.vue b/src/views/dashboard/Dashboard.vue index ae2313e..1cbdc3a 100644 --- a/src/views/dashboard/Dashboard.vue +++ b/src/views/dashboard/Dashboard.vue @@ -72,10 +72,19 @@ const getData = async () => { x, y, { - full_name: device.full_name, + device_number: device.device_number || "", // 設備編號 + device_coordinate: device.device_coordinate || "", // 設備座標 + device_image_url: device.device_image_url, + full_name: device.full_name, // 設備名稱 + main_id: device.main_id, + points: device.points || [], + floor: floor.full_name, state: state, icon: device.device_image ? `${FILE_BASEURL}/upload/device_icon/${device.device_image}` : '', bgColor: bgColor, + Online_color: device.device_normal_color, + Offline_color: device.device_close_color, + Error_color: device.device_error_color, bgSize: 50, } ]; diff --git a/src/views/dashboard/components/DashboardEffectScatter.vue b/src/views/dashboard/components/DashboardEffectScatter.vue index d90d482..4617753 100644 --- a/src/views/dashboard/components/DashboardEffectScatter.vue +++ b/src/views/dashboard/components/DashboardEffectScatter.vue @@ -1,6 +1,7 @@