浏览代码

航站视图图片引用错误问题修复

zhongxiaoyu 2 年之前
父节点
当前提交
1d80a7a2b5

+ 2 - 2
src/router/index.js

@@ -88,10 +88,10 @@ const createRouter = () =>
 const router = createRouter()
 
 router.beforeEach((to, from, next) => {
-  if (from.path.includes('flight') && from.query.flightNO && from.query.flightDate) {
+  if (from.path.includes('flightView') && from.query.flightNO && from.query.flightDate) {
     store.dispatch('keepAlive/savePage', from)
   }
-  if (to.path.includes('flight') && from.path.includes('baggage') && (!to.query.flightNO || !to.query.flightDate)) {
+  if (to.path.includes('flightView') && from.path.includes('baggageView') && (!to.query.flightNO || !to.query.flightDate)) {
     const savedPage = store.getters.savedPages.find(savedPage => savedPage.name === to.name)
     if (savedPage) {
       next(savedPage.fullPath)

+ 3 - 3
src/views/baggageManagement/components/arrival/index.vue

@@ -468,7 +468,7 @@ export default {
   mounted() {
     this.getAirPortData()
     this.table = this.$refs.table.bodyWrapper
-    let that = this
+    const that = this
     this.table.addEventListener('scroll', () => {
       that.scrollTop = this.table.scrollTop
     })
@@ -755,8 +755,8 @@ export default {
     width: 41px;
     height: 42px;
     /* 背景图片 */
-    background: url(/images/text-bg-blue.png) no-repeat center center;
-    background-size: 100% 100%;
+    // background: url('/images/text-bg-blue.png') no-repeat center center;
+    // background-size: 100% 100%;
     // background: #ccc;
     list-style: none;
     margin-right: 5px;

+ 3 - 3
src/views/baggageManagement/components/departure/index.vue

@@ -412,7 +412,7 @@ export default {
   mounted() {
     this.getAirPortData()
     this.table = this.$refs.table.bodyWrapper
-    let that = this
+    const that = this
     this.table.addEventListener('scroll', () => {
       that.scrollTop = this.table.scrollTop
     })
@@ -692,8 +692,8 @@ export default {
     width: 41px;
     height: 42px;
     /* 背景图片 */
-    background: url(/images/text-bg-blue.png) no-repeat center center;
-    background-size: 100% 100%;
+    // background: url(/images/text-bg-blue.png) no-repeat center center;
+    // background-size: 100% 100%;
     // background: #ccc;
     list-style: none;
     margin-right: 5px;

+ 3 - 3
src/views/baggageManagement/components/transferArrival/index.vue

@@ -511,7 +511,7 @@ export default {
     this.$refs['form'].validateField('flightDate')
     this.getAirPortData()
     this.table = this.$refs.table.bodyWrapper
-    let that = this
+    const that = this
     this.table.addEventListener('scroll', () => {
       that.scrollTop = this.table.scrollTop
     })
@@ -882,8 +882,8 @@ export default {
     width: 41px;
     height: 42px;
     /* 背景图片 */
-    background: url(/images/text-bg-blue.png) no-repeat center center;
-    background-size: 100% 100%;
+    // background: url(/images/text-bg-blue.png) no-repeat center center;
+    // background-size: 100% 100%;
     // background: #ccc;
     list-style: none;
     margin-right: 5px;

+ 8 - 8
src/views/baggageManagement/components/transferDeparture/index.vue

@@ -455,6 +455,11 @@ export default {
       table: null
     }
   },
+  computed: {
+    singleDay() {
+      return this.startDate === this.endDate
+    }
+  },
   created() {
     // this.getAirPortData()
   },
@@ -462,7 +467,7 @@ export default {
     this.$refs['form'].validateField('flightDate')
     this.getAirPortData()
     this.table = this.$refs.table.bodyWrapper
-    let that = this
+    const that = this
     this.table.addEventListener('scroll', () => {
       that.scrollTop = this.table.scrollTop
     })
@@ -499,11 +504,6 @@ export default {
       this.loopEvent = null
     }
   },
-  computed: {
-    singleDay() {
-      return this.startDate === this.endDate
-    }
-  },
   methods: {
     resetLoopEvent() {
       this.loading = true
@@ -845,8 +845,8 @@ export default {
     width: 41px;
     height: 42px;
     /* 背景图片 */
-    background: url(/images/text-bg-blue.png) no-repeat center center;
-    background-size: 100% 100%;
+    // background: url(/images/text-bg-blue.png) no-repeat center center;
+    // background-size: 100% 100%;
     // background: #ccc;
     list-style: none;
     margin-right: 5px;