diff --git a/public/map/components/CompanyShorePower.vue b/public/map/components/CompanyShorePower.vue
new file mode 100644
index 0000000..ee82048
--- /dev/null
+++ b/public/map/components/CompanyShorePower.vue
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+

+
港口企业岸电使用
+
+
+
+
+
+
+
+
+

+
码头详情
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/map/components/PortOverview.vue b/public/map/components/PortOverview.vue
new file mode 100644
index 0000000..6740ac2
--- /dev/null
+++ b/public/map/components/PortOverview.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+

+
船舶状态
+
+
+
+
+
+
+
+
+
+
+
🚢
+
{{ ship.shipBasicInfo.name }}
+
+
+
+ 正常
+
+
+ 空闲
+
+
+ 故障
+
+
+
+
+
+
+
+
+
+
+
+
+

+
{{ selectedShip.shipBasicInfo.name }}
+
+
+
+
+
{{ selectedShip.shorePowerAndShip?.powerUsage || 0 }}
+
功率(kW)
+
+
+
{{ shorePowerStatusMap[selectedShip.shorePowerAndShip?.status || ''] }}
+
岸电状态
+
+
+
+
+
+
+
+

+
船舶详情
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/map/components/ShipShorePower.vue b/public/map/components/ShipShorePower.vue
new file mode 100644
index 0000000..4e3f936
--- /dev/null
+++ b/public/map/components/ShipShorePower.vue
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+

+
概览
+
+
+
+
+
{{ berthingShips }}
+
在泊船舶数量
+
+
+
{{ shorePowerShips }}
+
使用岸电船舶数量
+
+
+
{{ noShorePowerShips }}
+
未使用岸电船舶数量
+
+
+
+
+
+
+
+

+
数据
+
+
+
+
+
+
{{ ship.name }}
+
{{ ship.wharf }}
+
{{ ship.berth }}
+
{{ ship.status }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/map/components/ShorePowerUsage.vue b/public/map/components/ShorePowerUsage.vue
new file mode 100644
index 0000000..d745c4d
--- /dev/null
+++ b/public/map/components/ShorePowerUsage.vue
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+

+
总览
+
+
+
+
+
{{ totalPower }}
+
累计用电(千瓦时)
+
+
+
{{ fuelReduction }}
+
减少燃油(吨)
+
+
+
{{ co2Reduction }}
+
减少二氧化碳排放(千克)
+
+
+
{{ pm25Reduction }}
+
减少PM2.5排放(千克)
+
+
+
{{ noxReduction }}
+
减少氮氧化物(千克)
+
+
+
{{ so2Reduction }}
+
减少二氧化硫(千克)
+
+
+
+
+
+
+
+
+

+
减少燃油(吨)
+
+
+
+
+
+
+
+
+
+

+
减少CO₂排放(千克)
+
+
+
+
+
+
+
+
+
+

+
减少PM2.5排放(千克)
+
+
+
+
+
+
+
+
+
+

+
减少NOₓ排放(千克)
+
+
+
+
+
+
+
+
+
+

+
减少SO₂排放(千克)
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/map/components/_index.vue b/public/map/components/bk/components_index.vue
similarity index 100%
rename from public/map/components/_index.vue
rename to public/map/components/bk/components_index.vue
diff --git a/public/map/_index.vue b/public/map/components/bk/map_index.vue
similarity index 100%
rename from public/map/_index.vue
rename to public/map/components/bk/map_index.vue
diff --git a/public/map/components/index.vue b/public/map/components/cesiumMap.vue
similarity index 100%
rename from public/map/components/index.vue
rename to public/map/components/cesiumMap.vue
diff --git a/public/map/components/BarChart.vue b/public/map/components/charts/BarChart.vue
similarity index 100%
rename from public/map/components/BarChart.vue
rename to public/map/components/charts/BarChart.vue
diff --git a/public/map/components/charts/BarChartMinute.vue b/public/map/components/charts/BarChartMinute.vue
new file mode 100644
index 0000000..5ecd646
--- /dev/null
+++ b/public/map/components/charts/BarChartMinute.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/map/components/LineChart.vue b/public/map/components/charts/LineChart.vue
similarity index 93%
rename from public/map/components/LineChart.vue
rename to public/map/components/charts/LineChart.vue
index 1f3b849..925d538 100644
--- a/public/map/components/LineChart.vue
+++ b/public/map/components/charts/LineChart.vue
@@ -37,7 +37,7 @@ const updateChart = () => {
const option = {
title: {
- text: props.title,
+ // text: props.title,
textStyle: {
color: '#fff',
fontSize: 14
@@ -113,10 +113,10 @@ const updateChart = () => {
}
],
grid: {
- left: '5%',
- right: '5%',
- top: '15%',
- bottom: '10%',
+ left: '1%',
+ right: '1%',
+ top: '6%',
+ bottom: '1%',
containLabel: true
}
}
@@ -142,7 +142,10 @@ const handleResize = () => {
// 组件挂载时初始化图表
onMounted(() => {
- initChart()
+ // 延迟初始化,确保DOM已经完全渲染
+ setTimeout(() => {
+ initChart()
+ }, 200)
window.addEventListener('resize', handleResize)
})
@@ -160,6 +163,6 @@ onBeforeUnmount(() => {
.line-chart-container {
width: 100%;
height: 100%;
- min-height: 200px;
+ min-height: 0;
}
\ No newline at end of file
diff --git a/public/map/components/PieChart.vue b/public/map/components/charts/PieChart.vue
similarity index 100%
rename from public/map/components/PieChart.vue
rename to public/map/components/charts/PieChart.vue
diff --git a/public/map/components/index.html b/public/map/components/index.html
deleted file mode 100644
index 0305cf7..0000000
--- a/public/map/components/index.html
+++ /dev/null
@@ -1,240 +0,0 @@
-
-
-
-
- CesiumJS 天地图纯影像示例
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/public/map/index.vue b/public/map/index.vue
index 87d8ce3..da435de 100644
--- a/public/map/index.vue
+++ b/public/map/index.vue
@@ -1,8 +1,6 @@
-
-
+
曹妃甸港区船舶岸电监管平台
@@ -21,324 +19,29 @@
-
-
-
-
-

-
船舶状态
-
-
-
-
-
-
-
-
🚢
-
{{ ship.shipBasicInfo.name }}
-
-
-
-
-
-
-
-
-
-
-
-
-

-
船舶详情
-
-
-
-
- 船名:
- {{ selectedShip.shipBasicInfo.name }}
-
-
- 英文船名:
- {{ selectedShip.shipBasicInfo.nameEn }}
-
-
- 船舶呼号:
- {{ selectedShip.shipBasicInfo.callSign }}
-
-
- 船长:
- {{ selectedShip.shipBasicInfo.length }} 米
-
-
- 船宽:
- {{ selectedShip.shipBasicInfo.width }} 米
-
-
- 满载吃水深度:
- {{ selectedShip.shipBasicInfo.fullLoadDraft }} 米
-
-
- 吨位:
- {{ selectedShip.shipBasicInfo.tonnage }} 吨
-
-
- 航运单位:
- {{ selectedShip.shipBasicInfo.shippingCompany }}
-
-
- 岸电联系人:
- {{ selectedShip.shipBasicInfo.shorePowerContact }}
-
-
- 联系方式:
- {{ selectedShip.shipBasicInfo.shorePowerContactPhone }}
-
-
- 船检登记号:
- {{ selectedShip.shipBasicInfo.inspectionNo }}
-
-
- 创建时间:
- {{ new Date(selectedShip.shipBasicInfo.createTime).toLocaleString() }}
-
-
-
-
-
-
-
-
-

-
岸电信息
-
-
-
-
- 停泊状态:
- {{ selectedShip.shorePowerAndShip.type === 'left' ? '左舷停泊' :
- selectedShip.shorePowerAndShip.type === 'right' ? '右舷停泊' : selectedShip.shorePowerAndShip.type
- }}
-
-
- 靠泊状态:
- {{ getShorePowerStatusText(selectedShip.shorePowerAndShip.status) }}
-
-
-
-
-
-
-
-
-

-
岸电信息
-
-
-
-
-
-
-
-

-
船舶详情
-
-
-
-
+
-
-
-
-
-

-
总览
-
-
-
-
-
{{ totalPower }}
-
累计用电(千瓦时)
-
-
-
{{ fuelReduction }}
-
减少燃油(吨)
-
-
-
{{ co2Reduction }}
-
减少二氧化碳排放(千克)
-
-
-
{{ pm25Reduction }}
-
减少PM2.5排放(千克)
-
-
-
{{ noxReduction }}
-
减少氮氧化物(千克)
-
-
-
{{ so2Reduction }}
-
减少二氧化硫(千克)
-
-
-
-
-
-
-
-
-

-
减少燃油(吨)
-
-
-
-
-
-
-
-
-
-

-
减少二氧化碳排放(千克)
-
-
-
-
-
-
-
-
-
-
-
-

-
减少PM2.5排放(千克)
-
-
-
-
-
-
-
-
-

-
减少氮氧化物(千克)
-
-
-
-
-
-
-
-
-
-

-
减少二氧化硫(千克)
-
-
-
-
-
-
+
-
-
-
-
-

-
港口企业岸电使用
-
-
-
-
-
-
-
-
-

-
码头详情
-
-
-
-
+
-
-
-
-
-

-
概览
-
-
-
-
-
{{ berthingShips }}
-
在泊船舶数量
-
-
-
{{ shorePowerShips }}
-
使用岸电船舶数量
-
-
-
{{ noShorePowerShips }}
-
未使用岸电船舶数量
-
-
-
-
-
-
-
-

-
数据
-
-
-
-
-
-
{{ ship.name }}
-
{{ ship.wharf }}
-
{{ ship.berth }}
-
{{ ship.status }}
-
-
-
-
-
-
-
+
@@ -347,10 +50,11 @@