diff --git a/public/map/components/CompanyShorePower.vue b/public/map/components/CompanyShorePower.vue index dad9138..af461ab 100644 --- a/public/map/components/CompanyShorePower.vue +++ b/public/map/components/CompanyShorePower.vue @@ -2,6 +2,50 @@
+
+
+
+
+ + 岸电箱状态 +
+ +
+ +
+
+
+
岸电箱名称
+
状态
+
历史
+
+
+
+
+
+ {{ shorepower.name }} +
+
+
+ {{ shorepower.storePowerStatus }} +
+ +
+
+ 查看 +
+
+
+
+
+
@@ -65,50 +109,7 @@
-
-
-
-
- - 岸电箱状态 -
- -
-
-
-
-
岸电箱名称
-
状态
-
历史
-
-
-
-
-
- {{ shorepower.name }} -
-
-
- {{ shorepower.storePowerStatus }} -
- -
-
- 查看 -
-
-
-
-
-
@@ -137,7 +138,7 @@
{{ company.name }}
-
泊位数: {{ company.children?.length || 0 }}
+
泊位数: {{ company.shorePowerCount || 0 }}
-
总量: {{ calculateTotal(company.children).toFixed(2) }}
+
总量: {{ handGetDeviceData(company.shorePowerIds) }}
-
-
-
{{ berth.measureValue?.toFixed(2) - || 0 }}
+
+
+
{{ disteItem.name }}
-
{{ berth.name }}
+
+
+
{{ + handGetDeviceData(shorePower.totalPowerDeviceId) || 0 }}
+ +
{{ shorePower.name }} +
+
+
+
@@ -169,18 +178,23 @@ - \ No newline at end of file diff --git a/public/map/components/ShowData.vue b/public/map/components/ShowData.vue index 19d14c1..86896b7 100644 --- a/public/map/components/ShowData.vue +++ b/public/map/components/ShowData.vue @@ -184,22 +184,26 @@
-
+
{{ calculateShorePowerUsageRate() }}%
岸电使用率
{{ shipTotalData.berthingShips }}
-
在港船舶数量
+
在港船舶
+
+
+
{{ shipTotalData.berthingShips }}
+
在泊船舶
{{ shipTotalData.shorePowerShips }}
-
使用岸电船舶数量
+
使用岸电船舶
{{ shipTotalData.noShorePowerShips }}
-
未使用岸电船舶数量
+
未使用岸电船舶
- + - + + + + :realtime-device-data-time="realtimeDeviceDataTime" v-if="dataLoad" /> @@ -249,6 +252,7 @@ import PublicMapComponents from './components/cesiumMap.vue' // import PortOverview from './components/PortOverview.vue' import ShorePowerUsage from './components/ShorePowerUsage.vue' +import ShorePowerUsageSingleData from './components/ShorePowerUsageSingleData.vue' import ShowData from './components/ShowData.vue' import CompanyShorePower from './components/CompanyShorePower.vue' import ShipShorePower from './components/ShipShorePower.vue' @@ -830,7 +834,6 @@ const handleGetlRangeData = async (realtimeDeviceData: RealtimeDeviceData[]) => try { const res: RealtimeDeviceData[] = realtimeDeviceData.filter(item => item.deviceCode.includes('Kwh')); const ids = res.map(item => item.id); - console.log(ids); const params = { ids: ids.join(','), // year: new Date().getFullYear()