|
|
@@ -1,80 +1,8 @@
|
|
|
<script setup lang="ts">
|
|
|
-import { contain } from 'echarts/types/src/scale/helper.js'
|
|
|
-
|
|
|
const props = defineProps({
|
|
|
data: Object
|
|
|
})
|
|
|
|
|
|
-const dataA = {
|
|
|
- containerStatusData: [
|
|
|
- {
|
|
|
- label: 'CAAU2233090 / 20SD',
|
|
|
- content: [
|
|
|
- {
|
|
|
- code: 'VD',
|
|
|
- title: 'Vessel Departure',
|
|
|
- date: '2025-01-02 00:00',
|
|
|
- country: 'CNQDG',
|
|
|
- timezone: 'Asia/Shanghai'
|
|
|
- },
|
|
|
- {
|
|
|
- code: 'I',
|
|
|
- title: 'Gate in full for a booking',
|
|
|
- date: '2024-12-19 15:07',
|
|
|
- country: 'CNTAO',
|
|
|
- timezone: 'Asia/Shanghai'
|
|
|
- },
|
|
|
- {
|
|
|
- code: 'EE',
|
|
|
- title: 'Empty Equipment Dispatched',
|
|
|
- date: '2024-12-13 11:45',
|
|
|
- country: 'CNTAO',
|
|
|
- timezone: 'Asia/Shanghai'
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ],
|
|
|
- simplexData: [
|
|
|
- {
|
|
|
- index: 1,
|
|
|
- label: 'Place of Receipt',
|
|
|
- path: 'QINGDAO, CHINA/CNQDG',
|
|
|
- isArrival: true,
|
|
|
- children: []
|
|
|
- },
|
|
|
- {
|
|
|
- index: 2,
|
|
|
- label: 'Port of Loading',
|
|
|
- path: 'QINGDAO, CHINA/CNQDG',
|
|
|
- isArrival: true,
|
|
|
- children: [
|
|
|
- {
|
|
|
- label: 'Departure(ATD)',
|
|
|
- date: '2025-01-02 00:00'
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- index: 3,
|
|
|
- label: 'Port of Discharge',
|
|
|
- path: 'NEWARK, NJ/USEWR',
|
|
|
- isArrival: false,
|
|
|
- children: [
|
|
|
- {
|
|
|
- label: 'Arrival(ETA)',
|
|
|
- date: '2025-02-09'
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- index: 4,
|
|
|
- label: 'Place of Delivery',
|
|
|
- path: 'NEWARK, NJ/USEWR',
|
|
|
- isArrival: false
|
|
|
- }
|
|
|
- ]
|
|
|
-}
|
|
|
-
|
|
|
const activeName = ref('shipmentStatus')
|
|
|
|
|
|
const handleTabClick = (name: string) => {
|
|
|
@@ -102,10 +30,10 @@ const handleTabClick = (name: string) => {
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
<template v-if="activeName === 'shipmentStatus'">
|
|
|
- <ShipmentStatus :data="dataA?.simplexData" />
|
|
|
+ <ShipmentStatus :data="props.data?.simplexData" />
|
|
|
</template>
|
|
|
<template v-else-if="activeName === 'containerStatus'">
|
|
|
- <ContainerStatus :data="dataA?.containerStatusData" />
|
|
|
+ <ContainerStatus :data="props.data?.containerStatusData" />
|
|
|
</template>
|
|
|
</div>
|
|
|
</div>
|