Selaa lähdekoodia

style: 合并dev分支代码

zhouyuhao 11 kuukautta sitten
vanhempi
commit
0e4273d960

+ 1 - 2
src/auto-imports.d.ts

@@ -3,7 +3,6 @@
 // @ts-nocheck
 // noinspection JSUnusedGlobalSymbols
 // Generated by unplugin-auto-import
-// biome-ignore lint: disable
 export {}
 declare global {
   const $api: typeof import('@/api/index')['default']
@@ -69,6 +68,6 @@ declare global {
 // for type re-export
 declare global {
   // @ts-ignore
-  export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
+  export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
   import('vue')
 }

+ 0 - 1
src/components/CustomizeColumns/src/CustomizeColumns.vue

@@ -384,7 +384,6 @@ defineExpose({
               <VueDraggable
                 v-model="groupItem.children"
                 class="column-list"
-                :sort="false"
                 ghost-class="ghost-column"
                 :forceFallback="true"
                 fallbackClass="fallback-class"

+ 1 - 1
src/utils/axios.ts

@@ -60,7 +60,7 @@ class HttpAxios {
         sessionStorage.clear()
         router.push('/login')
         const userStore = useUserStore()
-        userStore.logout(false)
+        userStore.logout()
         ElMessage.warning({
           message: 'Please log in to use this feature.',
           grouping: true

+ 2 - 1
src/views/Booking/src/BookingView.vue

@@ -397,8 +397,9 @@ const SearchInput = () => {
     <div class="heaer_top">
       <div class="search">
         <el-input
-          placeholder="Enter Booking/HBL/PO/Container/Carrier Booking No. "
+          placeholder="Enter Booking/HBL/PO/Carrier Booking No. "
           v-model="BookingSearch"
+          @keyup.enter="SearchInput"
         >
           <template #prefix>
             <span class="iconfont_icon">

+ 5 - 2
src/views/Dashboard/src/DashboardView.vue

@@ -1218,8 +1218,11 @@ const ClickParams = (val: any) => {
   vertical-align: -2px;
 }
 .Management {
-  max-height: 800px;
-  overflow-y: auto;
+  max-height: 640px;
+  overflow-y: hidden;
+}
+.Management:hover {
+  overflow-y: scroll;
 }
 .title {
   font-weight: 700;

+ 1 - 0
src/views/Tracking/src/TrackingView.vue

@@ -645,6 +645,7 @@ const SearchInput = () => {
         <el-input
           placeholder="Enter Booking/HBL/PO/Container/Carrier Booking No. "
           v-model="TrackingSearch"
+          @keyup.enter="SearchInput"
         >
           <template #prefix>
             <span class="iconfont_icon">

+ 4 - 8
src/views/Tracking/src/components/TrackingDetail/src/TrackingDetail.vue

@@ -201,7 +201,7 @@ const { isOverflow: isDestinationOverflow } = useOverflow(destinationRef, allDat
       </div>
     </div>
     <div class="transport-map">
-      <MapView :serial_no="allData?.serial_no" :uncode="allData?.uncode"></MapView>
+      <MapView style="flex: 1" :serial_no="allData?.serial_no" :uncode="allData?.uncode"></MapView>
       <TransportStep class="transport-step" :data="allData"></TransportStep>
     </div>
     <div class="info-content">
@@ -411,14 +411,10 @@ const { isOverflow: isDestinationOverflow } = useOverflow(destinationRef, allDat
     }
   }
   .transport-map {
-    position: relative;
+    display: flex;
+    gap: 8px;
     margin-bottom: 8px;
-    .transport-step {
-      position: absolute;
-      top: 8px;
-      right: 16px;
-      z-index: 1000;
-    }
+    padding: 0 24px;
   }
 }
 

+ 5 - 6
src/views/Tracking/src/components/TrackingDetail/src/components/MapView.vue

@@ -2,7 +2,7 @@
   <div
     id="tracking-map"
     ref="mapContainer"
-    style="width: 100%; height: 520px"
+    style="width: 100%; height: 448px"
     class="tracking-map"
   ></div>
 </template>
@@ -272,7 +272,6 @@ let visibleMarkers = new Set()
 
 // 添加标记后更新中心和缩放级别
 const addMarkersToMap = () => {
-  // debugger
   if (!map) return // 确保地图已经初始化
 
   markerPositions.value.forEach((position) => {
@@ -302,7 +301,7 @@ const addMarkersToMap = () => {
   if (viewData.value.length > 0) {
     // 根据标记的位置设置中心点以及缩放级别
     const bounds = L.latLngBounds(viewData.value)
-    map!.fitBounds(bounds, { paddingTopLeft: [20, 70], paddingBottomRight: [400, 0] })
+    map!.fitBounds(bounds, { paddingTopLeft: [20, 70], paddingBottomRight: [0, 0] })
     setTimeout(() => {
       if (isFirstRender) {
         initialCenter = map!.getCenter()
@@ -344,7 +343,6 @@ const addShipMarker = (x: number) => {
     // 获取线段的最后一个点和倒数第二个点
     const lastPoint = solidLine[solidLine.length - 1]
     const secondLastPoint = solidLine[solidLine.length - 2]
-    console.log(lastPoint, secondLastPoint, 'lastPoint, secondLastPoint')
     // 计算线段末端的角度(以弧度为单位)
     const angle =
       (Math.atan2(
@@ -481,7 +479,7 @@ const getMarker = () => {
             }
             markerPositions.value.push({
               lat: item.lat,
-              lng: (Number(item.lng) + 360) % 360,
+              lng: item.lng,
               city: item.infor,
               label: item.label,
               icon: iconColorList[item.label].icon,
@@ -490,7 +488,7 @@ const getMarker = () => {
           })
         viewData.value = (data?.rangePoint.length > 0 ? data?.rangePoint : data?.point)?.map(
           (item) => {
-            return [Number(item.lat), (Number(item.lon || item.lng) + 360) % 360]
+            return [Number(item.lat), item.lon || item.lng]
           }
         )
         // 请求成功后添加标记,并动态添加重置按钮
@@ -534,6 +532,7 @@ onUnmounted(() => {
 <style lang="scss">
 @import 'leaflet/dist/leaflet.css';
 .tracking-map {
+  border-radius: 12px;
   .leaflet-popup-content-wrapper {
     border-radius: 6px;
   }

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

@@ -42,7 +42,7 @@ const handleTabClick = (name: string) => {
 <style lang="scss" scoped>
 .transport-step {
   width: 400px;
-  height: 484px;
+  height: 448px;
   background-color: #fff;
   border: 1px solid #eaebed;
   border-radius: 12px;