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 @@