Quellcode durchsuchen

行李列表排序

zhaoke vor 1 Jahr
Ursprung
Commit
ca9ecc22f7
1 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen
  1. 6 2
      src/views/newQuery/components/table.vue

+ 6 - 2
src/views/newQuery/components/table.vue

@@ -469,6 +469,10 @@ export default {
         })
         this.tableData = _.orderBy(nTableData, ['departure_flights_leave_date', 'normalState'], ['asc', 'desc'])
       }
+      if (this.$route.path == '/newBagDetails') {
+        const nTableData = [...tableData]
+        this.tableData = _.orderBy(nTableData, ['readTime'], ['asc', 'desc'])
+      }
       const filters = this.setTableFilters(this.tableData, this.tableDataFilters)
       this.tableDataFilters = _.cloneDeep(filters)
       this.tableGroup(this.tableData)
@@ -515,9 +519,9 @@ export default {
       this.spanArr = spanArr
       this.pos = pos
     },
-    setTableScroll() {
+    setTableScroll () {
       const count = Math.max(this.leaveCount, this.arriveCount)
-      if ( this.hasSetTableScroll || count === 0) {
+      if (this.hasSetTableScroll || count === 0) {
         return
       }
       const table = this.$refs['table'].$el