|
@@ -545,7 +545,9 @@ export default {
|
|
|
Object.entries(query).forEach(([key, value]) => {
|
|
|
if (!['startDate', 'endDate'].includes(key) && (value ?? '') !== '') {
|
|
|
flag = true
|
|
|
- this.form[key] = ['unLoad', 'checkIn', 'active', 'transferIn', 'canceled'].includes(key) ? Number(value) : value
|
|
|
+ this.form[key] = ['unLoad', 'checkIn', 'active', 'transferIn', 'canceled'].includes(key)
|
|
|
+ ? Number(value)
|
|
|
+ : value
|
|
|
}
|
|
|
})
|
|
|
startDate && (this.time[0] = startDate)
|
|
@@ -595,7 +597,14 @@ export default {
|
|
|
let classString = ''
|
|
|
if (['FlightNO', 'TransferFlightNO', 'BagSN'].includes(column.property)) {
|
|
|
classString += 'cell-click'
|
|
|
- if (this.clickedCells.some(cell => cell.pageName === 'advance' && cell.cellValue === row[column.property])) {
|
|
|
+ if (
|
|
|
+ this.clickedCells.some(
|
|
|
+ cell =>
|
|
|
+ cell.pageName === 'advance' &&
|
|
|
+ Object.entries(cell.row).every(([key, value]) => row[key] === value) &&
|
|
|
+ cell.columnProp === column.property
|
|
|
+ )
|
|
|
+ ) {
|
|
|
classString += ' cell-clicked'
|
|
|
}
|
|
|
}
|
|
@@ -604,7 +613,7 @@ export default {
|
|
|
cellClick(row, column, cell, event) {
|
|
|
if (['FlightNO', 'TransferFlightNO', 'BagSN'].includes(column.property)) {
|
|
|
this.$store.dispatch('keepAlive/addClickedCell', {
|
|
|
- cellValue: row[column.property],
|
|
|
+ row,
|
|
|
columnProp: column.property,
|
|
|
pageName: 'advance'
|
|
|
})
|
|
@@ -773,10 +782,7 @@ export default {
|
|
|
if (index === 0) {
|
|
|
this.spanArr.push(1)
|
|
|
} else {
|
|
|
- if (
|
|
|
- item.FlightNO === arr[index - 1].FlightNO &&
|
|
|
- item.FlightDate === arr[index - 1].FlightDate
|
|
|
- ) {
|
|
|
+ if (item.FlightNO === arr[index - 1].FlightNO && item.FlightDate === arr[index - 1].FlightDate) {
|
|
|
this.spanArr[contactDot] += 1
|
|
|
this.spanArr.push(0)
|
|
|
} else {
|