|
|
@@ -1,7 +1,38 @@
|
|
|
<template>
|
|
|
<div class="df">
|
|
|
<div id="map-container" class="map-container"></div>
|
|
|
- <div class="info">info</div>
|
|
|
+ <div class="info">
|
|
|
+ <div class="data">
|
|
|
+ <div class="df aic">
|
|
|
+ <div class="shu"></div>
|
|
|
+ <div class="right-title">数据统计</div>
|
|
|
+ </div>
|
|
|
+ <div class="df data-line">
|
|
|
+ <img class="icon" src="../../assets/ship.png" />
|
|
|
+ <div class="data-text">
|
|
|
+ <div class="data-title">总航次数</div>
|
|
|
+ <div class="df aib">
|
|
|
+ <div class="num">{{ shipNum }}</div>
|
|
|
+ <div class="unit">次</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="df data-line">
|
|
|
+ <img class="icon" src="../../assets/rubber.png" />
|
|
|
+ <div class="data-text">
|
|
|
+ <div class="data-title">总实际装载吨数</div>
|
|
|
+ <div class="df aib">
|
|
|
+ <div class="num">{{ shipLoadTons }}</div>
|
|
|
+ <div class="unit">吨</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="df aic mt30">
|
|
|
+ <div class="shu"></div>
|
|
|
+ <div class="right-title">船舶信息</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div v-if="false" class="p20 bgf">
|
|
|
<div id="voyage" class="container-title">船舶信息</div>
|
|
|
@@ -233,11 +264,11 @@ async function getIndexData() {
|
|
|
|
|
|
function goTo(type) {
|
|
|
currentType.value = type;
|
|
|
- document.querySelector(`#${type}`).scrollIntoView({
|
|
|
- behavior: "smooth",
|
|
|
- block: "center",
|
|
|
- inline: "nearest",
|
|
|
- });
|
|
|
+ // document.querySelector(`#${type}`).scrollIntoView({
|
|
|
+ // behavior: "smooth",
|
|
|
+ // block: "center",
|
|
|
+ // inline: "nearest",
|
|
|
+ // });
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
|
@@ -247,19 +278,15 @@ onMounted(() => {
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
.map-container {
|
|
|
- width: calc(100vw - 440px);
|
|
|
+ width: calc(100vw - 487px);
|
|
|
height: calc(100vh - 60px);
|
|
|
}
|
|
|
|
|
|
.info {
|
|
|
- width: 220px;
|
|
|
+ width: 267px;
|
|
|
background: #fff;
|
|
|
}
|
|
|
|
|
|
-.unit {
|
|
|
- margin-left: 5px;
|
|
|
-}
|
|
|
-
|
|
|
.card {
|
|
|
width: 33.3%;
|
|
|
height: 120px;
|
|
|
@@ -299,4 +326,65 @@ onMounted(() => {
|
|
|
margin-top: 20px;
|
|
|
margin-left: 20px;
|
|
|
}
|
|
|
+
|
|
|
+.data {
|
|
|
+ width: 220px;
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 4px;
|
|
|
+ margin-top: 12px;
|
|
|
+ margin-bottom: 18px;
|
|
|
+ padding-top: 16px;
|
|
|
+ padding-left: 24px;
|
|
|
+ padding-bottom: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.icon {
|
|
|
+ width: 48px;
|
|
|
+ height: 48px;
|
|
|
+ border-radius: 4px;
|
|
|
+ margin-right: 16px;
|
|
|
+}
|
|
|
+
|
|
|
+.data-line {
|
|
|
+ align-items: center;
|
|
|
+ width: 219px;
|
|
|
+ border-bottom: 1px solid rgba(216, 216, 216, 0.24);
|
|
|
+ padding: 12px 0;
|
|
|
+}
|
|
|
+
|
|
|
+.shu {
|
|
|
+ width: 3px;
|
|
|
+ height: 16px;
|
|
|
+ background: #008efe;
|
|
|
+ margin-right: 16px;
|
|
|
+}
|
|
|
+
|
|
|
+.right-title {
|
|
|
+ font-size: 20px;
|
|
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #333333;
|
|
|
+}
|
|
|
+
|
|
|
+.data-title {
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #616975;
|
|
|
+}
|
|
|
+
|
|
|
+.num {
|
|
|
+ font-size: 30px;
|
|
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #333333;
|
|
|
+ margin-right: 5px;
|
|
|
+}
|
|
|
+
|
|
|
+.unit {
|
|
|
+ font-size: 12px;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #353a42;
|
|
|
+}
|
|
|
</style>
|