From 96a16f8ed81c30360e651ca1b2c0f98fa2523bc7 Mon Sep 17 00:00:00 2001 From: "WIN-VB61HI6M32L\\Administrator" Date: Tue, 22 Oct 2024 15:43:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=B5=B1=E7=9B=A3=E6=8E=A7=20:=20?= =?UTF-8?q?=E4=BB=8B=E9=9D=A2=E5=BE=AE=E8=AA=BF=E3=80=812D=E6=B2=92?= =?UTF-8?q?=E9=A1=AF=E7=A4=BA=E5=95=8F=E9=A1=8C=E4=BF=AE=E6=AD=A3=E3=80=81?= =?UTF-8?q?=E8=AA=9E=E8=A8=80=E5=8C=85=20|=20=E9=A6=96=E9=A0=81=20:=20?= =?UTF-8?q?=E7=B3=BB=E7=B5=B1=E5=B0=8F=E5=8D=A1=E9=BB=9E=E6=93=8A=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/cn.json | 6 ++++++ src/config/tw.json | 18 ++++++++++++------ src/config/us.json | 6 ++++++ .../dashboard/components/DashboardSysCard.vue | 1 + src/views/system/System.vue | 4 ++-- src/views/system/components/SystemCard.vue | 6 +++--- .../components/SystemInfoModalDesktop.vue | 7 +++++-- 7 files changed, 35 insertions(+), 13 deletions(-) diff --git a/src/config/cn.json b/src/config/cn.json index 6665b4a..c59069d 100644 --- a/src/config/cn.json +++ b/src/config/cn.json @@ -40,6 +40,12 @@ "end_date": "结束日期", "end_time": "结束时间" }, + "system": { + "status": "状态", + "details": "详细资料", + "attribute": "属性", + "value": "值" + }, "energy": { "elec_consumption": "用电即时分布", "total_elec": "总用电", diff --git a/src/config/tw.json b/src/config/tw.json index 0c54577..c09a5ed 100644 --- a/src/config/tw.json +++ b/src/config/tw.json @@ -16,12 +16,12 @@ }, "dashboard": { "yesterday_today": "昨天/今天", - "elec_consumption_comparison":"用電量比較", - "today_electricity_consumption":"今日用電量", - "yesterday_electricity_consumption":"昨天用電量", - "this_last_week":"本週/上週", - "thisweek_electricity_consumption":"本周用電量", - "lastweek_electricity_consumption":"上週用電量" + "elec_consumption_comparison": "用電量比較", + "today_electricity_consumption": "今日用電量", + "yesterday_electricity_consumption": "昨天用電量", + "this_last_week": "本週/上週", + "thisweek_electricity_consumption": "本周用電量", + "lastweek_electricity_consumption": "上週用電量" }, "history": { "title": "歷史資料", @@ -40,6 +40,12 @@ "end_date": "結束日期", "end_time": "結束時間" }, + "system": { + "status": "狀態", + "details": "詳細資料", + "attribute": "屬性", + "value": "數值" + }, "energy": { "elec_consumption": "用電即時分佈", "total_elec": "總用電", diff --git a/src/config/us.json b/src/config/us.json index 7ba5396..170c361 100644 --- a/src/config/us.json +++ b/src/config/us.json @@ -40,6 +40,12 @@ "thisweek_electricity_consumption": "This week’s electricity consumption", "lastweek_electricity_consumption": "Last week’s electricity consumption" }, + "system": { + "status": "Status", + "details": "Details", + "attribute": "Attribute", + "value": "value" + }, "energy": { "elec_consumption": "Real-time distribution of electricity consumption", "total_elec": "Total electricity consumption", diff --git a/src/views/dashboard/components/DashboardSysCard.vue b/src/views/dashboard/components/DashboardSysCard.vue index 5c0a7a0..3960ff9 100644 --- a/src/views/dashboard/components/DashboardSysCard.vue +++ b/src/views/dashboard/components/DashboardSysCard.vue @@ -124,6 +124,7 @@ const navigateToSubSystem = (mainSystemId, subSystemId) => { params: { main_system_id: mainSystemId, sub_system_id: subSystemId, + floor_id: 'main' }, }); }; diff --git a/src/views/system/System.vue b/src/views/system/System.vue index 3ea8806..dbba160 100644 --- a/src/views/system/System.vue +++ b/src/views/system/System.vue @@ -206,8 +206,8 @@ provide("system_selectedDevice", { selectedDeviceRealtime, selectedDevice, getCu
- -
+ +
diff --git a/src/views/system/components/SystemCard.vue b/src/views/system/components/SystemCard.vue index 6ae249c..a8c06d4 100644 --- a/src/views/system/components/SystemCard.vue +++ b/src/views/system/components/SystemCard.vue @@ -30,16 +30,16 @@ watch(selectedFloor, (newValue) => {
- {{ device.full_name }} + {{ device.full_name }}
- 狀態: + {{$t("system.status")}}:
+ @click.stop.prevent="(e) => getCurrentInfoModalData(e, { left: e.clientX, top: e.clientY }, device)">{{$t("system.details")}}
diff --git a/src/views/system/components/SystemInfoModalDesktop.vue b/src/views/system/components/SystemInfoModalDesktop.vue index 7bb64e2..90f40df 100644 --- a/src/views/system/components/SystemInfoModalDesktop.vue +++ b/src/views/system/components/SystemInfoModalDesktop.vue @@ -1,5 +1,8 @@