|
@@ -1,5 +1,6 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
|
|
|
+import emptyImage from './image/no-data.png'
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
|
data: Object
|
|
data: Object
|
|
@@ -48,7 +49,7 @@ const formatTimezone = (time: string, timezone: string) => {
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
<div class="container-status">
|
|
<div class="container-status">
|
|
|
- <el-collapse class="container" v-model="activeNames">
|
|
|
|
|
|
|
+ <el-collapse class="container" v-if="containerStatusData.length !== 0" v-model="activeNames">
|
|
|
<el-collapse-item
|
|
<el-collapse-item
|
|
|
:title="containers.label"
|
|
:title="containers.label"
|
|
|
v-for="(containers, name) in containerStatusData"
|
|
v-for="(containers, name) in containerStatusData"
|
|
@@ -75,6 +76,10 @@ const formatTimezone = (time: string, timezone: string) => {
|
|
|
</div>
|
|
</div>
|
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
</el-collapse>
|
|
|
|
|
+ <div v-else class="empty-content" style="">
|
|
|
|
|
+ <el-image :src="emptyImage" alt="empty"></el-image>
|
|
|
|
|
+ <div class="empty-text" style="">No data</div>
|
|
|
|
|
+ </div>
|
|
|
<div class="footer">
|
|
<div class="footer">
|
|
|
Tracking on carrier website:
|
|
Tracking on carrier website:
|
|
|
<a href="http://www.rcjgroup.com/" target="_blank" class="link">http://www.rcjgroup.com/</a>
|
|
<a href="http://www.rcjgroup.com/" target="_blank" class="link">http://www.rcjgroup.com/</a>
|
|
@@ -93,6 +98,22 @@ const formatTimezone = (time: string, timezone: string) => {
|
|
|
padding-bottom: 8px;
|
|
padding-bottom: 8px;
|
|
|
overflow: auto;
|
|
overflow: auto;
|
|
|
}
|
|
}
|
|
|
|
|
+ .empty-content {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ height: 394px;
|
|
|
|
|
+ .el-image {
|
|
|
|
|
+ width: 200px;
|
|
|
|
|
+ height: 200px;
|
|
|
|
|
+ margin-top: 20px;
|
|
|
|
|
+ object-fit: cover;
|
|
|
|
|
+ }
|
|
|
|
|
+ .empty-text {
|
|
|
|
|
+ margin-top: 8px;
|
|
|
|
|
+ color: #b5b9bf;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
.footer {
|
|
.footer {
|
|
|
line-height: 38px;
|
|
line-height: 38px;
|
|
|
color: #999;
|
|
color: #999;
|