|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: zk
|
|
|
* @Date: 2022-01-17 10:39:22
|
|
|
- * @LastEditTime: 2022-05-17 20:24:51
|
|
|
+ * @LastEditTime: 2022-05-18 11:30:27
|
|
|
* @LastEditors: your name
|
|
|
* @Description: 离港01
|
|
|
-->
|
|
@@ -151,7 +151,7 @@
|
|
|
<el-form-item>
|
|
|
<img
|
|
|
class="btn-img"
|
|
|
- src="../../../../assets/departure/ic_setting.png"
|
|
|
+ src="../../../../assets/baggage/ic_setting.png"
|
|
|
@click="show"
|
|
|
>
|
|
|
</el-form-item>
|
|
@@ -180,7 +180,6 @@
|
|
|
:data="tableData"
|
|
|
class="table"
|
|
|
max-height="100%"
|
|
|
- :height="computedTableHeight"
|
|
|
show-summary
|
|
|
:summary-method="summaryMethod"
|
|
|
:span-method="arraySpanMethod"
|
|
@@ -261,7 +260,6 @@ import formMixin from '../../mixins/form'
|
|
|
import tableColsMixin from '../../mixins/tableCols'
|
|
|
import timeZoneMixin from '../../mixins/timeZone'
|
|
|
import { getQuery } from '@/api/flight'
|
|
|
-import { commonTableCellClass } from '@/utils/table'
|
|
|
|
|
|
export default {
|
|
|
name: 'DepartureTerminalView',
|
|
@@ -423,49 +421,49 @@ export default {
|
|
|
// },
|
|
|
// },
|
|
|
methods: {
|
|
|
- cellClass({ row, column, rowIndex, columnIndex }) {
|
|
|
- let classString = commonTableCellClass({ row, column, rowIndex, columnIndex })
|
|
|
- if (['FlightNO', 'PreFlightNO', 'inTransferBaggageCount'].includes(column.property)) {
|
|
|
- classString += '' + 'cell-click'
|
|
|
- if (this.clickedCells.some(cell => cell.pageName === this.$route.name && cell.cellValue === row[column.property])) {
|
|
|
- classString += ' cell-clicked'
|
|
|
- }
|
|
|
- }
|
|
|
- return classString
|
|
|
- },
|
|
|
- cellClick(row, column, cell, event) {
|
|
|
- if (['FlightNO'].includes(column.property)) {
|
|
|
- this.$store.dispatch('keepAlive/addClickedCell', {
|
|
|
- cellValue: row[column.property],
|
|
|
- columnProp: column.property,
|
|
|
- pageName: this.$route.name
|
|
|
- })
|
|
|
- }
|
|
|
- switch (column.property) {
|
|
|
- case 'FlightNO':
|
|
|
- this.$router.push({ path: '/transfer/arrival/flightView', query: row })
|
|
|
- break
|
|
|
- case 'PreFlightNO': {
|
|
|
- const row2 = this._.cloneDeep(row)
|
|
|
- row2.FlightNO = row2.PreFlightNO
|
|
|
- this.$router.push({ path: '/transfer/arrival/flightView', query: row2 })
|
|
|
- break
|
|
|
- }
|
|
|
- case 'inTransferBaggageCount':
|
|
|
- this.$router.push({
|
|
|
- path: '/advance',
|
|
|
- query: {
|
|
|
- FlightNO: row.FlightNO,
|
|
|
- transferArrival: row.PreFlightNO,
|
|
|
- startDate: row.FlightDate,
|
|
|
- endDate: row.FlightDate
|
|
|
- }
|
|
|
- })
|
|
|
- break
|
|
|
- default:
|
|
|
- break
|
|
|
- }
|
|
|
- },
|
|
|
+ // cellClass({ row, column, rowIndex, columnIndex }) {
|
|
|
+ // let classString = commonTableCellClass({ row, column, rowIndex, columnIndex })
|
|
|
+ // if (['FlightNO', 'PreFlightNO', 'inTransferBaggageCount'].includes(column.property)) {
|
|
|
+ // classString += '' + 'cell-click'
|
|
|
+ // if (this.clickedCells.some(cell => cell.pageName === this.$route.name && cell.cellValue === row[column.property])) {
|
|
|
+ // classString += ' cell-clicked'
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // return classString
|
|
|
+ // },
|
|
|
+ // cellClick(row, column, cell, event) {
|
|
|
+ // if (['FlightNO'].includes(column.property)) {
|
|
|
+ // this.$store.dispatch('keepAlive/addClickedCell', {
|
|
|
+ // cellValue: row[column.property],
|
|
|
+ // columnProp: column.property,
|
|
|
+ // pageName: this.$route.name
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // switch (column.property) {
|
|
|
+ // case 'FlightNO':
|
|
|
+ // this.$router.push({ path: '/transfer/arrival/flightView', query: row })
|
|
|
+ // break
|
|
|
+ // case 'PreFlightNO': {
|
|
|
+ // const row2 = this._.cloneDeep(row)
|
|
|
+ // row2.FlightNO = row2.PreFlightNO
|
|
|
+ // this.$router.push({ path: '/transfer/arrival/flightView', query: row2 })
|
|
|
+ // break
|
|
|
+ // }
|
|
|
+ // case 'inTransferBaggageCount':
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/advance',
|
|
|
+ // query: {
|
|
|
+ // FlightNO: row.FlightNO,
|
|
|
+ // transferArrival: row.PreFlightNO,
|
|
|
+ // startDate: row.FlightDate,
|
|
|
+ // endDate: row.FlightDate
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // break
|
|
|
+ // default:
|
|
|
+ // break
|
|
|
+ // }
|
|
|
+ // },
|
|
|
changeView() {
|
|
|
this.$router.replace({
|
|
|
path: '/transfer/departure'
|
|
@@ -563,8 +561,8 @@ export default {
|
|
|
if (!this.currentAirport) {
|
|
|
return
|
|
|
}
|
|
|
- const arrs1 = [this.formData.inboundCarrier.length == 0 ? '' : this.formData.inboundCarrier[0]]
|
|
|
- const arrs2 = [this.formData.outgoingAirline.length == 0 ? '' : this.formData.outgoingAirline[0]]
|
|
|
+ const arrs1 = [this.formData.inboundCarrier.length === 0 ? '' : this.formData.inboundCarrier[0]]
|
|
|
+ const arrs2 = [this.formData.outgoingAirline.length === 0 ? '' : this.formData.outgoingAirline[0]]
|
|
|
const arr = [
|
|
|
this.formData.currentAirport,
|
|
|
this.formData.startDate,
|
|
@@ -871,6 +869,7 @@ export default {
|
|
|
width: 100%;
|
|
|
::v-deep .table {
|
|
|
width: 100%;
|
|
|
+ height: calc(100vh - 177px);
|
|
|
.cell {
|
|
|
padding: 0;
|
|
|
text-align: center;
|