浏览代码

fix: 动态展示container status部分链接

zhouyuhao 7 月之前
父节点
当前提交
e611347adf

+ 5 - 2
src/components/ContainerStatus/src/ContainerStatus.vue

@@ -10,7 +10,8 @@ const emptyImg = computed(() => {
   return themeStore.theme === 'dark' ? darkPng : lightPng
 })
 const props = defineProps({
-  data: Object
+  data: Object,
+  website: String
 })
 
 const activeNames = ref<number[]>([])
@@ -78,11 +79,13 @@ watch(
 <style lang="scss" scoped>
 .container-status {
   position: relative;
+  display: flex;
+  flex-direction: column;
   width: 100%;
   height: 100%;
   overflow: auto;
   .container {
-    height: 358px;
+    flex: 1;
     padding-bottom: 8px;
     overflow: auto;
   }

+ 2 - 2
src/views/Tracking/src/components/TrackingDetail/src/components/TransportStep.vue

@@ -43,7 +43,7 @@ const handleTabClick = (name: string) => {
           activeName === 'containerStatus' && props.data?.transportInfo?.mode !== 'Air Freight'
         "
       >
-        <ContainerStatus :data="props.data?.containerStatusData" />
+        <ContainerStatus :data="props.data?.containerStatusData" :website="props.data?.website" />
       </template>
     </div>
   </div>
@@ -87,4 +87,4 @@ const handleTabClick = (name: string) => {
     border-bottom: none;
   }
 }
-</style>
+</style>