|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: zk
|
|
|
* @Date: 2022-01-17 10:39:22
|
|
|
- * @LastEditTime: 2022-05-12 17:35:52
|
|
|
+ * @LastEditTime: 2022-05-13 09:37:48
|
|
|
* @LastEditors: your name
|
|
|
* @Description: 离港01
|
|
|
-->
|
|
@@ -368,7 +368,7 @@ export default {
|
|
|
dataContent: []
|
|
|
})
|
|
|
if (Number(res.code) === 0) {
|
|
|
- this.AirportList = res.returnData
|
|
|
+ this.AirportList = this._.orderBy(res.returnData, o => o.PlanDepartureApt)
|
|
|
this.formData.currentAirport = 'PEK'
|
|
|
this.getTableData()
|
|
|
} else {
|
|
@@ -408,6 +408,9 @@ export default {
|
|
|
// },
|
|
|
// 获取表格数据
|
|
|
async getTableData() {
|
|
|
+ if (!this.formData.currentAirport) {
|
|
|
+ return
|
|
|
+ }
|
|
|
const arr = [this.formData.currentAirport, this.formData.startDate, this.formData.endDate]
|
|
|
try {
|
|
|
const res = await getQuery({
|
|
@@ -450,7 +453,7 @@ export default {
|
|
|
})
|
|
|
tableData.forEach(item => {
|
|
|
Object.keys(tempSets).forEach(key => {
|
|
|
- ;(item[key] ?? '') !== '' && tempSets[key].add(item[key])
|
|
|
+ (item[key] ?? '') !== '' && tempSets[key].add(item[key])
|
|
|
})
|
|
|
})
|
|
|
Object.keys(tempSets).forEach(key => {
|