|
@@ -323,9 +323,9 @@ export default {
|
|
|
this.loading = true
|
|
|
try {
|
|
|
let params = {
|
|
|
- serviceId: SERVICE_ID.AirportIds,
|
|
|
- dataContent: [],
|
|
|
- pageSize: 9999,
|
|
|
+ serviceid: 74,
|
|
|
+ datacontent: [{filter:{1:1}}],
|
|
|
+ event: '0',
|
|
|
}
|
|
|
if (this.queryId) {
|
|
|
params = {
|
|
@@ -336,13 +336,13 @@ export default {
|
|
|
}
|
|
|
const {
|
|
|
code,
|
|
|
- returnData: { listValues },
|
|
|
+ returnData,
|
|
|
message,
|
|
|
} = await Query(params)
|
|
|
if (String(code) !== '0') {
|
|
|
throw new Error(message || '失败')
|
|
|
}
|
|
|
- this.aiportOptions = listValues.map(aiport => ({
|
|
|
+ this.aiportOptions = returnData.map(aiport => ({
|
|
|
label: aiport.code3,
|
|
|
value: aiport.code3,
|
|
|
}))
|
|
@@ -357,23 +357,23 @@ export default {
|
|
|
try {
|
|
|
const {
|
|
|
code,
|
|
|
- returnData: listValues,
|
|
|
+ returnData,
|
|
|
message,
|
|
|
} = await Query({
|
|
|
- serviceId,
|
|
|
- dataContent: [
|
|
|
- {
|
|
|
+ serviceid,
|
|
|
+ datacontent: [
|
|
|
+ {filter:{
|
|
|
fd1: defaultDate,
|
|
|
fd2: defaultDate,
|
|
|
airport: this.currentAirport,
|
|
|
- },
|
|
|
+ },}
|
|
|
],
|
|
|
- pageSize: 9999,
|
|
|
+ event: '0',
|
|
|
})
|
|
|
if (String(code) !== '0') {
|
|
|
throw new Error(message || '失败')
|
|
|
}
|
|
|
- return listValues
|
|
|
+ return returnData
|
|
|
} catch (error) {
|
|
|
console.error(error)
|
|
|
return []
|
|
@@ -385,24 +385,24 @@ export default {
|
|
|
this.companyData = []
|
|
|
const {
|
|
|
code,
|
|
|
- returnData: listValues,
|
|
|
+ returnData,
|
|
|
message,
|
|
|
} = await Query({
|
|
|
- serviceId: SERVICE_ID.dashboardCompanyData,
|
|
|
- dataContent: [
|
|
|
- {
|
|
|
+ serviceid: SERVICE_ID.dashboardCompanyData,
|
|
|
+ datacontent: [
|
|
|
+ {filter:{
|
|
|
airport: this.currentAirport,
|
|
|
fd1: defaultDate,
|
|
|
fd2: defaultDate,
|
|
|
- },
|
|
|
+ },}
|
|
|
],
|
|
|
- pageSize: 9999,
|
|
|
+ event: '0',
|
|
|
})
|
|
|
if (String(code) !== '0') {
|
|
|
throw new Error(message || '失败')
|
|
|
}
|
|
|
- const max = Math.max(...listValues.map(item => Number(item.bags)))
|
|
|
- this.companyData = listValues.map(item => ({
|
|
|
+ const max = Math.max(...returnData.map(item => Number(item.bags)))
|
|
|
+ this.companyData = returnData.map(item => ({
|
|
|
name: item.iata_code,
|
|
|
count: Number(item.bags),
|
|
|
percentage: max ? (Number(item.bags) / max).toFixed(2) * 100 : 0,
|
|
@@ -419,15 +419,15 @@ export default {
|
|
|
returnData: listValues,
|
|
|
message,
|
|
|
} = await Query({
|
|
|
- serviceId: SERVICE_ID.dashboardMap,
|
|
|
- dataContent: [
|
|
|
- {
|
|
|
+ serviceid: SERVICE_ID.dashboardMap,
|
|
|
+ datacontent: [
|
|
|
+ {filter:{
|
|
|
airport: this.currentAirport,
|
|
|
fd1: defaultDate,
|
|
|
fd2: defaultDate,
|
|
|
- },
|
|
|
+ },}
|
|
|
],
|
|
|
- pageSize: 9999,
|
|
|
+ event: '0',
|
|
|
})
|
|
|
if (String(code) !== '0') {
|
|
|
this.boxMap.series[0].data = []
|