|
@@ -47,31 +47,31 @@ const simulateDepartureTrackNodes = [
|
|
|
},
|
|
|
{
|
|
|
id: 3,
|
|
|
- name: '安检',
|
|
|
+ name: '理货',
|
|
|
flag: true,
|
|
|
descriptions: ['A32', '534件', '通过', '10:25'],
|
|
|
},
|
|
|
{
|
|
|
id: 4,
|
|
|
- name: '安检',
|
|
|
+ name: '待运区',
|
|
|
flag: true,
|
|
|
descriptions: ['A32', '534件', '通过', '10:25'],
|
|
|
},
|
|
|
{
|
|
|
id: 5,
|
|
|
- name: '安检',
|
|
|
+ name: '货站交接',
|
|
|
flag: true,
|
|
|
descriptions: ['A32', '534件', '通过', '10:25'],
|
|
|
},
|
|
|
{
|
|
|
id: 6,
|
|
|
- name: '安检',
|
|
|
+ name: '机下交接',
|
|
|
flag: false,
|
|
|
descriptions: ['A32', '534件', '通过', '10:25'],
|
|
|
},
|
|
|
{
|
|
|
id: 7,
|
|
|
- name: '安检安检',
|
|
|
+ name: '装机',
|
|
|
flag: false,
|
|
|
descriptions: ['A32', '534件', '通过', '10:25'],
|
|
|
},
|
|
@@ -85,19 +85,19 @@ const simulateArrivalTrackNodes = [
|
|
|
},
|
|
|
{
|
|
|
id: 2,
|
|
|
- name: '安检',
|
|
|
+ name: '机下交接',
|
|
|
flag: true,
|
|
|
descriptions: ['A32', '534件', '通过', '10:25'],
|
|
|
},
|
|
|
{
|
|
|
id: 3,
|
|
|
- name: '安检',
|
|
|
+ name: '货站交接',
|
|
|
flag: true,
|
|
|
descriptions: ['A32', '534件', '通过', '10:25'],
|
|
|
},
|
|
|
{
|
|
|
id: 4,
|
|
|
- name: '安检',
|
|
|
+ name: '提取',
|
|
|
flag: false,
|
|
|
descriptions: ['A32', '534件', '通过', '10:25'],
|
|
|
},
|
|
@@ -117,7 +117,9 @@ export default function useTrackData(
|
|
|
) => {
|
|
|
const airlines = await pre
|
|
|
const trackNodeList = await getTrackData(
|
|
|
- DATACONTENT_ID[trackName],
|
|
|
+ DATACONTENT_ID[
|
|
|
+ trackName.endsWith('Waybill') ? 'waybillTrack' : 'goodsTrack'
|
|
|
+ ],
|
|
|
dataContent
|
|
|
)
|
|
|
const trackAirport = {
|
|
@@ -178,15 +180,26 @@ export default function useTrackData(
|
|
|
// })
|
|
|
|
|
|
const getSimulateTrackData = () => {
|
|
|
- const length = trackName === 'waybillTrack' ? 2 : 1
|
|
|
+ const length = trackName.endsWith('Waybill') ? 2 : 1
|
|
|
trackAirlines.value = Array.from({ length }).map((_, index) => ({
|
|
|
flightNO: index < 1 ? 'CA1001' : 'CA1003',
|
|
|
flightDate: '2022/09/10',
|
|
|
airports: Array.from({ length: 2 }).map((_, i) => ({
|
|
|
airport: i < 1 ? '深圳机场' : '南京机场',
|
|
|
- isDeparture: i < 1 ? 1 : 0,
|
|
|
- trackSteps:
|
|
|
- i < 1 ? simulateDepartureTrackNodes : simulateArrivalTrackNodes,
|
|
|
+ isDeparture: trackName.includes('Departure')
|
|
|
+ ? i < 1
|
|
|
+ ? 1
|
|
|
+ : 0
|
|
|
+ : i < 1
|
|
|
+ ? 0
|
|
|
+ : 1,
|
|
|
+ trackSteps: trackName.includes('Departure')
|
|
|
+ ? i < 1
|
|
|
+ ? simulateDepartureTrackNodes
|
|
|
+ : simulateArrivalTrackNodes
|
|
|
+ : i < 1
|
|
|
+ ? simulateArrivalTrackNodes
|
|
|
+ : simulateDepartureTrackNodes,
|
|
|
})),
|
|
|
}))
|
|
|
}
|