系統監控 : 介面微調、2D沒顯示問題修正、語言包 | 首頁 : 系統小卡點擊問題修正
This commit is contained in:
parent
acf083a10b
commit
96a16f8ed8
@ -40,6 +40,12 @@
|
|||||||
"end_date": "结束日期",
|
"end_date": "结束日期",
|
||||||
"end_time": "结束时间"
|
"end_time": "结束时间"
|
||||||
},
|
},
|
||||||
|
"system": {
|
||||||
|
"status": "状态",
|
||||||
|
"details": "详细资料",
|
||||||
|
"attribute": "属性",
|
||||||
|
"value": "值"
|
||||||
|
},
|
||||||
"energy": {
|
"energy": {
|
||||||
"elec_consumption": "用电即时分布",
|
"elec_consumption": "用电即时分布",
|
||||||
"total_elec": "总用电",
|
"total_elec": "总用电",
|
||||||
|
@ -16,12 +16,12 @@
|
|||||||
},
|
},
|
||||||
"dashboard": {
|
"dashboard": {
|
||||||
"yesterday_today": "昨天/今天",
|
"yesterday_today": "昨天/今天",
|
||||||
"elec_consumption_comparison":"用電量比較",
|
"elec_consumption_comparison": "用電量比較",
|
||||||
"today_electricity_consumption":"今日用電量",
|
"today_electricity_consumption": "今日用電量",
|
||||||
"yesterday_electricity_consumption":"昨天用電量",
|
"yesterday_electricity_consumption": "昨天用電量",
|
||||||
"this_last_week":"本週/上週",
|
"this_last_week": "本週/上週",
|
||||||
"thisweek_electricity_consumption":"本周用電量",
|
"thisweek_electricity_consumption": "本周用電量",
|
||||||
"lastweek_electricity_consumption":"上週用電量"
|
"lastweek_electricity_consumption": "上週用電量"
|
||||||
},
|
},
|
||||||
"history": {
|
"history": {
|
||||||
"title": "歷史資料",
|
"title": "歷史資料",
|
||||||
@ -40,6 +40,12 @@
|
|||||||
"end_date": "結束日期",
|
"end_date": "結束日期",
|
||||||
"end_time": "結束時間"
|
"end_time": "結束時間"
|
||||||
},
|
},
|
||||||
|
"system": {
|
||||||
|
"status": "狀態",
|
||||||
|
"details": "詳細資料",
|
||||||
|
"attribute": "屬性",
|
||||||
|
"value": "數值"
|
||||||
|
},
|
||||||
"energy": {
|
"energy": {
|
||||||
"elec_consumption": "用電即時分佈",
|
"elec_consumption": "用電即時分佈",
|
||||||
"total_elec": "總用電",
|
"total_elec": "總用電",
|
||||||
|
@ -40,6 +40,12 @@
|
|||||||
"thisweek_electricity_consumption": "This week’s electricity consumption",
|
"thisweek_electricity_consumption": "This week’s electricity consumption",
|
||||||
"lastweek_electricity_consumption": "Last week’s electricity consumption"
|
"lastweek_electricity_consumption": "Last week’s electricity consumption"
|
||||||
},
|
},
|
||||||
|
"system": {
|
||||||
|
"status": "Status",
|
||||||
|
"details": "Details",
|
||||||
|
"attribute": "Attribute",
|
||||||
|
"value": "value"
|
||||||
|
},
|
||||||
"energy": {
|
"energy": {
|
||||||
"elec_consumption": "Real-time distribution of electricity consumption",
|
"elec_consumption": "Real-time distribution of electricity consumption",
|
||||||
"total_elec": "Total electricity consumption",
|
"total_elec": "Total electricity consumption",
|
||||||
|
@ -124,6 +124,7 @@ const navigateToSubSystem = (mainSystemId, subSystemId) => {
|
|||||||
params: {
|
params: {
|
||||||
main_system_id: mainSystemId,
|
main_system_id: mainSystemId,
|
||||||
sub_system_id: subSystemId,
|
sub_system_id: subSystemId,
|
||||||
|
floor_id: 'main'
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -206,8 +206,8 @@ provide("system_selectedDevice", { selectedDeviceRealtime, selectedDevice, getCu
|
|||||||
<div class="col-span-1 h-full flex flex-col justify-between">
|
<div class="col-span-1 h-full flex flex-col justify-between">
|
||||||
<SystemMode />
|
<SystemMode />
|
||||||
<div class="min-h-[75vh] relative">
|
<div class="min-h-[75vh] relative">
|
||||||
<SystemFloor v-show="route.query.mode === '2D'" />
|
<SystemFloor :class="twMerge('absolute h-full w-full', route.query.mode === '2D' ? 'opacity-100 z-10' : 'opacity-0 z-0')"/>
|
||||||
<div :class="twMerge('absolute h-full w-full', route.query.mode === '3D' ? 'opacity-100' : 'opacity-0')">
|
<div :class="twMerge('absolute h-full w-full', route.query.mode === '3D' ? 'opacity-100 z-10' : 'opacity-0 z-0')">
|
||||||
<ForgeForSystem :initialData="{}" />
|
<ForgeForSystem :initialData="{}" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -30,16 +30,16 @@ watch(selectedFloor, (newValue) => {
|
|||||||
<div class="sec02">
|
<div class="sec02">
|
||||||
<img v-if="device.device_image_url" :src="device.device_image_url" alt="" class="w-8 h-8">
|
<img v-if="device.device_image_url" :src="device.device_image_url" alt="" class="w-8 h-8">
|
||||||
<span class="w-8 h-8" v-else></span>
|
<span class="w-8 h-8" v-else></span>
|
||||||
<span>{{ device.full_name }}</span>
|
<span class="w-32 break-all">{{ device.full_name }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-between">
|
<div class="flex justify-between">
|
||||||
<div class="sec03">
|
<div class="sec03">
|
||||||
<span></span>
|
<span></span>
|
||||||
<span>狀態:</span>
|
<span>{{$t("system.status")}}:</span>
|
||||||
<span></span>
|
<span></span>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn-text border-0 "
|
<button class="btn-text border-0 "
|
||||||
@click.stop.prevent="(e) => getCurrentInfoModalData(e, { left: e.clientX, top: e.clientY }, device)">詳細資料</button>
|
@click.stop.prevent="(e) => getCurrentInfoModalData(e, { left: e.clientX, top: e.clientY }, device)">{{$t("system.details")}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { computed, inject } from "vue";
|
import { computed, inject } from "vue";
|
||||||
|
import { useI18n } from "vue-i18n";
|
||||||
|
|
||||||
|
const { t, locale } = useI18n();
|
||||||
|
|
||||||
const { selectedDevice, selectedDeviceRealtime } = inject("system_selectedDevice");
|
const { selectedDevice, selectedDeviceRealtime } = inject("system_selectedDevice");
|
||||||
|
|
||||||
@ -12,11 +15,11 @@ const data = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const columns = [{
|
const columns = [{
|
||||||
title: "屬性",
|
title: t("system.attribute"),
|
||||||
key: "points"
|
key: "points"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "值",
|
title: t("system.value"),
|
||||||
key: "value"
|
key: "value"
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user