Explorar el Código

离港起飞判断修改

zhongxiaoyu hace 2 años
padre
commit
a450f24652

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

@@ -483,7 +483,7 @@ export default {
       if (row.flightStatus === 'CAN') {
         classes.push('bgl-canceled')
       }
-      if (row.hasTakeOff === 0) {
+      if (row.hasTakeOff === 1) {
         classes.push('bgl-hui')
         if (rowIndex === this.leaveCount - 1) {
           classes.push('redBorder')
@@ -543,13 +543,13 @@ export default {
       this.baggageCount = 0
       tableData.forEach(item => {
         item['flightCanceled'] = item['flightStatus'] === 'CAN' ? 1 : 0
-        if (item['hasTakeOff'] === 0 && !item['flightCanceled']) {
+        if (item['hasTakeOff'] === 1 && !item['flightCanceled']) {
           this.leaveCount++
         }
         item['landingNumber'] = item['landingNumber'] ?? 0
         this.baggageCount = this.baggageCount + item.preLoad
       })
-      this.tableData = this._.sortBy(tableData, ['hasTakeOff', 'planDepartureTime'])
+      this.tableData = this._.orderBy(tableData, ['hasTakeOff', 'planDepartureTime'], ['desc', 'asc'])
       setTableFilters(this.tableData, this.tableDataFilters)
       this.toOrderNum(this.baggageCount)
       // setInterval(() => {

+ 1 - 0
src/views/statisticsCharts/components/statisticsHeader.vue

@@ -80,6 +80,7 @@
       <el-form-item v-if="withExport">
         <img
           src="../../../assets/nav/ic_export.png"
+          title="导出"
           class="btn-icon-only"
           @click="exportClickHandler"
         >