|
@@ -8,17 +8,8 @@
|
|
|
<template>
|
|
|
<div class="transfer-in">
|
|
|
<!--功能区-表单-->
|
|
|
- <div
|
|
|
- ref="formWrap"
|
|
|
- class="terminal-form-wrap"
|
|
|
- >
|
|
|
- <el-form
|
|
|
- ref="form"
|
|
|
- :inline="true"
|
|
|
- :model="formData"
|
|
|
- :rules="rules"
|
|
|
- class="form"
|
|
|
- >
|
|
|
+ <div ref="formWrap" class="terminal-form-wrap">
|
|
|
+ <el-form ref="form" :inline="true" :model="formData" :rules="rules" class="form">
|
|
|
<div class="form-left">
|
|
|
<el-form-item prop="currentAirport">
|
|
|
<!-- <el-cascader
|
|
@@ -33,51 +24,15 @@
|
|
|
filterable
|
|
|
@change="setCurrentAirport"
|
|
|
/> -->
|
|
|
- <el-select
|
|
|
- v-model="formData.currentAirport"
|
|
|
- class="input-shadow"
|
|
|
- size="small"
|
|
|
- filterable
|
|
|
- placeholder="请选择机场"
|
|
|
- @change="airPortChange"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="(item, index) in AirportList"
|
|
|
- :key="index"
|
|
|
- :label="item.PlanDepartureApt"
|
|
|
- :value="item.PlanDepartureApt"
|
|
|
- />
|
|
|
+ <el-select v-model="formData.currentAirport" class="input-shadow" size="small" filterable placeholder="请选择机场" @change="airPortChange">
|
|
|
+ <el-option v-for="(item, index) in AirportList" :key="index" :label="item.PlanDepartureApt" :value="item.PlanDepartureApt" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="inboundCarrier">
|
|
|
- <el-cascader
|
|
|
- v-model="formData.inboundCarrier"
|
|
|
- class="input-shadow"
|
|
|
- style="width: 164px"
|
|
|
- size="small"
|
|
|
- :options="carrierProps"
|
|
|
- :props="optionProps"
|
|
|
- placeholder="进港承运航司"
|
|
|
- collapse-tags
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- @change="resetLoopEvent"
|
|
|
- />
|
|
|
+ <el-cascader v-model="formData.inboundCarrier" class="input-shadow" style="width: 164px" size="small" :options="carrierProps" :props="optionProps" placeholder="进港承运航司" collapse-tags clearable filterable @change="resetLoopEvent" />
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="outgoingAirline">
|
|
|
- <el-cascader
|
|
|
- v-model="formData.outgoingAirline"
|
|
|
- class="input-shadow"
|
|
|
- style="width: 164px"
|
|
|
- size="small"
|
|
|
- :options="carrierPropsop"
|
|
|
- :props="optionPropser"
|
|
|
- placeholder="离港承运航司"
|
|
|
- collapse-tags
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- @change="resetLoopEvent"
|
|
|
- />
|
|
|
+ <el-cascader v-model="formData.outgoingAirline" class="input-shadow" style="width: 164px" size="small" :options="carrierPropsop" :props="optionPropser" placeholder="离港承运航司" collapse-tags clearable filterable @change="resetLoopEvent" />
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item prop="startDate">
|
|
|
<el-date-picker
|
|
@@ -103,20 +58,8 @@
|
|
|
@change="endDateChangeHandler"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <el-form-item
|
|
|
- prop="FlightDate"
|
|
|
- label="航班日期"
|
|
|
- >
|
|
|
- <el-date-picker
|
|
|
- v-model="formData.FlightDate"
|
|
|
- size="small"
|
|
|
- type="daterange"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- :picker-options="dateRangePickerOptions"
|
|
|
- @change="dateChangeHandler"
|
|
|
- />
|
|
|
+ <el-form-item prop="FlightDate" label="航班日期">
|
|
|
+ <el-date-picker v-model="formData.FlightDate" size="small" type="daterange" value-format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="dateRangePickerOptions" @change="dateChangeHandler" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<!-- <el-form-item>
|
|
@@ -134,112 +77,36 @@
|
|
|
</li>
|
|
|
</div>
|
|
|
</el-form-item> -->
|
|
|
- <div
|
|
|
- class="form-right"
|
|
|
- @keyup.enter="onSubmit(1)"
|
|
|
- >
|
|
|
+ <div class="form-right" @keyup.enter="onSubmit(1)">
|
|
|
<el-form-item prop="search">
|
|
|
- <el-popover
|
|
|
- :value="popoverVisible"
|
|
|
- placement="bottom"
|
|
|
- trigger="manual"
|
|
|
- >
|
|
|
+ <el-popover :value="popoverVisible" placement="bottom" trigger="manual">
|
|
|
<span>请输入航班号(示例:CA1234)或行李牌号(示例:1234567890)</span>
|
|
|
- <el-input
|
|
|
- slot="reference"
|
|
|
- v-model="formData.search"
|
|
|
- class="input-shadow"
|
|
|
- style="width: 240px;"
|
|
|
- size="small"
|
|
|
- placeholder="请输入内容"
|
|
|
- prefix-icon="el-icon-search"
|
|
|
- clearable
|
|
|
- @focus="popoverVisible = true"
|
|
|
- @blur="popoverVisible = false"
|
|
|
- />
|
|
|
+ <el-input slot="reference" v-model="formData.search" class="input-shadow" style="width: 240px;" size="small" placeholder="请输入内容" prefix-icon="el-icon-search" clearable @focus="popoverVisible = true" @blur="popoverVisible = false" />
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button
|
|
|
- class="btn-shadow"
|
|
|
- size="mini"
|
|
|
- type="primary"
|
|
|
- @click="onSubmit(1)"
|
|
|
- >搜索</el-button>
|
|
|
+ <el-button class="btn-shadow" size="mini" type="primary" @click="onSubmit(1)">搜索</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-is="['ti_showTransit']">
|
|
|
- <el-button
|
|
|
- class="btn-shadow"
|
|
|
- size="mini"
|
|
|
- type="primary"
|
|
|
- @click="changeView"
|
|
|
- >切换视角</el-button>
|
|
|
+ <el-button class="btn-shadow" size="mini" type="primary" @click="changeView">切换视角</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-is="['i_timeIcon']">
|
|
|
<TimeZoneSelector />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <img
|
|
|
- class="btn-img btn-shadow"
|
|
|
- src="../../../../assets/baggage/ic_setting.png"
|
|
|
- @click="show"
|
|
|
- >
|
|
|
+ <img class="btn-img btn-shadow" src="../../../../assets/baggage/ic_setting.png" @click="show">
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<!--表格-->
|
|
|
- <div
|
|
|
- v-loading="loading"
|
|
|
- class="terminal-table"
|
|
|
- element-loading-text="拼命加载中"
|
|
|
- element-loading-spinner="el-icon-loading"
|
|
|
- element-loading-background="rgba(0, 0, 0, 0.8)"
|
|
|
- >
|
|
|
- <el-table
|
|
|
- ref="table"
|
|
|
- class="table"
|
|
|
- :data="dealedTableData"
|
|
|
- :height="computedTableHeight"
|
|
|
- show-summary
|
|
|
- :summary-method="summaryMethod"
|
|
|
- :span-method="arraySpanMethod"
|
|
|
- :header-cell-class-name="headerCellClass"
|
|
|
- :row-class-name="tableRowClassName"
|
|
|
- :cell-class-name="cellClass"
|
|
|
- border
|
|
|
- stripe
|
|
|
- fit
|
|
|
- @cell-click="cellClickHandler"
|
|
|
- >
|
|
|
- <el-table-column
|
|
|
- v-for="col in tableColsCopy"
|
|
|
- :key="col.prop"
|
|
|
- :prop="col.prop"
|
|
|
- :label="col.label"
|
|
|
- :width="col.width"
|
|
|
- :fixed="col.fixed"
|
|
|
- >
|
|
|
- <el-table-column
|
|
|
- v-for="childCol in col.children"
|
|
|
- :key="childCol.prop"
|
|
|
- :prop="childCol.prop"
|
|
|
- :label="childCol.label"
|
|
|
- :width="childCol.width"
|
|
|
- :formatter="tableFormat"
|
|
|
- >
|
|
|
+ <div v-loading="loading" class="terminal-table" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8)">
|
|
|
+ <el-table ref="table" class="table" :data="dealedTableData" :height="computedTableHeight" show-summary :summary-method="summaryMethod" :span-method="arraySpanMethod" :header-cell-class-name="headerCellClass" :row-class-name="tableRowClassName" :cell-class-name="cellClass" border stripe fit @cell-click="cellClickHandler">
|
|
|
+ <el-table-column v-for="col in tableColsCopy" :key="col.prop" :prop="col.prop" :label="col.label" :width="col.width" :fixed="col.fixed">
|
|
|
+ <el-table-column v-for="childCol in col.children" :key="childCol.prop" :prop="childCol.prop" :label="childCol.label" :width="childCol.width" :formatter="tableFormat">
|
|
|
<template #header>
|
|
|
- <el-tooltip
|
|
|
- :content="childCol.disc"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <TableHeaderCell
|
|
|
- :label="childCol.label"
|
|
|
- :filter-options="tableDataFilters[childCol.prop]"
|
|
|
- :filter-values.sync="filterValues[childCol.prop]"
|
|
|
- :sortable="childCol.sortable"
|
|
|
- :sort-rule.sync="tableDataSortRules[childCol.prop]"
|
|
|
- />
|
|
|
+ <el-tooltip :content="childCol.disc" placement="top">
|
|
|
+ <TableHeaderCell :label="childCol.label" :filter-options="tableDataFilters[childCol.prop]" :filter-values.sync="filterValues[childCol.prop]" :sortable="childCol.sortable" :sort-rule.sync="tableDataSortRules[childCol.prop]" />
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -247,38 +114,18 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<!--列设置-->
|
|
|
- <Dialog
|
|
|
- :flag="dialogFlag"
|
|
|
- class="dialog-check-cols"
|
|
|
- >
|
|
|
+ <Dialog :flag="dialogFlag" class="dialog-check-cols">
|
|
|
<div class="col-dialog">
|
|
|
<div class="title">列设置</div>
|
|
|
<div class="content">
|
|
|
- <el-tree
|
|
|
- :data="tableCols"
|
|
|
- :class="colsCheckClass"
|
|
|
- show-checkbox
|
|
|
- node-key="index"
|
|
|
- :default-expand-all="true"
|
|
|
- :props="{
|
|
|
+ <el-tree :data="tableCols" :class="colsCheckClass" show-checkbox node-key="index" :default-expand-all="true" :props="{
|
|
|
label: 'label',
|
|
|
children: 'children',
|
|
|
- }"
|
|
|
- :default-checked-keys="checkedKeysTemp"
|
|
|
- @check="handleCheck"
|
|
|
- />
|
|
|
+ }" :default-checked-keys="checkedKeysTemp" @check="handleCheck" />
|
|
|
</div>
|
|
|
<div class="foot right t30">
|
|
|
- <el-button
|
|
|
- size="medium"
|
|
|
- class="r24"
|
|
|
- type="primary"
|
|
|
- @click="onCheck"
|
|
|
- >确定</el-button>
|
|
|
- <el-button
|
|
|
- size="medium"
|
|
|
- @click="hide"
|
|
|
- >取消</el-button>
|
|
|
+ <el-button size="medium" class="r24" type="primary" @click="onCheck">确定</el-button>
|
|
|
+ <el-button size="medium" @click="hide">取消</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</Dialog>
|
|
@@ -300,7 +147,7 @@ export default {
|
|
|
name: 'DepartureTerminalView',
|
|
|
components: { Dialog, TimeZoneSelector, TableHeaderCell },
|
|
|
mixins: [terminalMixin, formMixin, tableColsMixin, timeZoneMixin],
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
return {
|
|
|
optionProps: {
|
|
|
value: 'inAicompanyCode2',
|
|
@@ -323,7 +170,7 @@ export default {
|
|
|
{
|
|
|
prop: 'PreFlightNO',
|
|
|
label: '航班号',
|
|
|
- disc:'进港航班编号',
|
|
|
+ disc: '进港航班编号',
|
|
|
width: 80,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
@@ -331,13 +178,13 @@ export default {
|
|
|
{
|
|
|
prop: 'PreFlightDate',
|
|
|
label: '航班日期',
|
|
|
- disc:'指航班计划起飞日期(不变的,机票上),不是预计起飞日期(预计起飞时间可能多个),也不是实际起飞日期(实际起飞等于最后预计)',
|
|
|
+ disc: '指航班计划起飞日期(不变的,机票上),不是预计起飞日期(预计起飞时间可能多个),也不是实际起飞日期(实际起飞等于最后预计)',
|
|
|
width: 100
|
|
|
},
|
|
|
{
|
|
|
prop: 'PreAirport',
|
|
|
label: '起飞航站',
|
|
|
- disc:'指进港航班的起飞机场三字码',
|
|
|
+ disc: '指进港航班的起飞机场三字码',
|
|
|
width: 100,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
@@ -345,13 +192,13 @@ export default {
|
|
|
{
|
|
|
prop: 'ActualLandingTime',
|
|
|
label: '降落时间',
|
|
|
- disc:'指航班预计到达时间,数据是变化的,仅显示最新结果',
|
|
|
+ disc: '指航班预计到达时间,数据是变化的,仅显示最新结果',
|
|
|
width: 100
|
|
|
},
|
|
|
{
|
|
|
prop: 'LandingBuild',
|
|
|
label: '降落航站楼',
|
|
|
- disc:'指航班降落后位于机场的哪个航站楼',
|
|
|
+ disc: '指航班降落后位于机场的哪个航站楼',
|
|
|
width: 98,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
@@ -359,7 +206,7 @@ export default {
|
|
|
{
|
|
|
prop: 'Carousel',
|
|
|
label: '行李转盘',
|
|
|
- disc:'指航班到达后行李提取的地方,仅显示最新信息',
|
|
|
+ disc: '指航班到达后行李提取的地方,仅显示最新信息',
|
|
|
width: 100,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
@@ -367,7 +214,7 @@ export default {
|
|
|
{
|
|
|
prop: 'StandForLanding',
|
|
|
label: '降落停机位',
|
|
|
- disc:'指航班的停机位代码,数据是变化的,仅显示最新信息',
|
|
|
+ disc: '指航班的停机位代码,数据是变化的,仅显示最新信息',
|
|
|
width: 98,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
@@ -375,13 +222,13 @@ export default {
|
|
|
{
|
|
|
prop: 'inTransferBaggageCount',
|
|
|
label: '中转行李数',
|
|
|
- disc:'指航班在本航站预计需要中转至对应航班的行李数量',
|
|
|
+ disc: '指航班在本航站预计需要中转至对应航班的行李数量',
|
|
|
|
|
|
},
|
|
|
{
|
|
|
prop: 'inTransferredBaggageCount',
|
|
|
label: '已中转行李数',
|
|
|
- disc:'指航班在本航站实际已经中转至对应航班的行李数量',
|
|
|
+ disc: '指航班在本航站实际已经中转至对应航班的行李数量',
|
|
|
width: 100
|
|
|
}
|
|
|
]
|
|
@@ -393,7 +240,7 @@ export default {
|
|
|
{
|
|
|
prop: 'FlightNO',
|
|
|
label: '航班号',
|
|
|
- disc:'指航班编号',
|
|
|
+ disc: '指航班编号',
|
|
|
width: 80,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
@@ -401,26 +248,26 @@ export default {
|
|
|
{
|
|
|
prop: 'FlightDate',
|
|
|
label: '航班日期',
|
|
|
- disc:'指航班计划起飞日期(不变的,机票上),不是预计起飞日期(预计起飞时间可能多个),也不是实际起飞日期(实际起飞等于最后预计)',
|
|
|
+ disc: '指航班计划起飞日期(不变的,机票上),不是预计起飞日期(预计起飞时间可能多个),也不是实际起飞日期(实际起飞等于最后预计)',
|
|
|
width: 100
|
|
|
},
|
|
|
{
|
|
|
prop: 'ActualDepartureTime',
|
|
|
label: '起飞时间',
|
|
|
- disc:'指航班预计起飞时间,数据是变化的,仅显示最新结果',
|
|
|
+ disc: '指航班预计起飞时间,数据是变化的,仅显示最新结果',
|
|
|
width: 100
|
|
|
},
|
|
|
{
|
|
|
prop: 'TargetAirport',
|
|
|
label: '目的站',
|
|
|
- disc:'指航班执飞航段的目的航站,以航站三字码+航站简称显示',
|
|
|
+ disc: '指航班执飞航段的目的航站,以航站三字码+航站简称显示',
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
|
},
|
|
|
{
|
|
|
prop: 'DepartureBuild',
|
|
|
label: '起飞航站楼',
|
|
|
- disc:'指航班执飞航段的起飞航站的航站楼',
|
|
|
+ disc: '指航班执飞航段的起飞航站的航站楼',
|
|
|
width: 98,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
@@ -428,7 +275,7 @@ export default {
|
|
|
{
|
|
|
prop: 'BordingGate',
|
|
|
label: '起飞登机口',
|
|
|
- disc:'指航班的登机口代码,数据是变化的,仅显示最新信息',
|
|
|
+ disc: '指航班的登机口代码,数据是变化的,仅显示最新信息',
|
|
|
width: 98,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
@@ -436,7 +283,7 @@ export default {
|
|
|
{
|
|
|
prop: 'StandForDepartrue',
|
|
|
label: '起飞停机位',
|
|
|
- disc:'指航班的停机位代码,数据是变化的,仅显示最新信息',
|
|
|
+ disc: '指航班的停机位代码,数据是变化的,仅显示最新信息',
|
|
|
width: 98,
|
|
|
filterable: true,
|
|
|
sortable: true
|
|
@@ -444,19 +291,19 @@ export default {
|
|
|
{
|
|
|
prop: 'outTransferBaggageCount',
|
|
|
label: '中转进行李数',
|
|
|
- disc:'指其它航班预计中转至本航班的行李数量',
|
|
|
+ disc: '指其它航班预计中转至本航班的行李数量',
|
|
|
width: 100
|
|
|
},
|
|
|
{
|
|
|
prop: 'outTransferredBaggageCount',
|
|
|
label: '已中转进行李数',
|
|
|
- disc:'指其它航班实际已中转至本航班的行李数量',
|
|
|
+ disc: '指其它航班实际已中转至本航班的行李数量',
|
|
|
width: 120
|
|
|
},
|
|
|
{
|
|
|
prop: 'timeDifference',
|
|
|
label: '转运时间',
|
|
|
- disc:'指中转动作完成时间',
|
|
|
+ disc: '指中转动作完成时间',
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -474,7 +321,7 @@ export default {
|
|
|
flag: 0
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ created () {
|
|
|
// this.getAirPortData()
|
|
|
const { startDate, endDate } = this.$route.query
|
|
|
Object.entries(this.$route.query).forEach(([key, value]) => {
|
|
@@ -489,23 +336,23 @@ export default {
|
|
|
this.formData.FlightDate[1] = endDate
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ mounted () {
|
|
|
this.$refs['form'].validateField('FlightDate')
|
|
|
this.getAirPortData()
|
|
|
},
|
|
|
- beforeDestroy() {
|
|
|
+ beforeDestroy () {
|
|
|
if (this.loopEvent) {
|
|
|
clearInterval(this.loopEvent)
|
|
|
this.loopEvent = null
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- singleDay() {
|
|
|
+ singleDay () {
|
|
|
return this.startDate === this.endDate
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- resetLoopEvent() {
|
|
|
+ resetLoopEvent () {
|
|
|
this.loading = true
|
|
|
this.hasSetTableScroll = false
|
|
|
if (this.loopEvent) {
|
|
@@ -517,7 +364,7 @@ export default {
|
|
|
that.getTableData()
|
|
|
}, 3000)
|
|
|
},
|
|
|
- headerCellClass({ row, column }) {
|
|
|
+ headerCellClass ({ row, column }) {
|
|
|
const classes = []
|
|
|
const rule = this.tableDataSortRules[column.property]
|
|
|
if (rule) {
|
|
@@ -525,7 +372,7 @@ export default {
|
|
|
}
|
|
|
return classes.join(' ')
|
|
|
},
|
|
|
- tableRowClassName({ row, rowIndex }) {
|
|
|
+ tableRowClassName ({ row, rowIndex }) {
|
|
|
const classes = []
|
|
|
if (row.hasArrived) {
|
|
|
classes.push('bgl-hui')
|
|
@@ -535,7 +382,7 @@ export default {
|
|
|
}
|
|
|
return classes.join(' ')
|
|
|
},
|
|
|
- changeView() {
|
|
|
+ changeView () {
|
|
|
const query = {
|
|
|
...this.formData,
|
|
|
startDate: this.startDate,
|
|
@@ -547,21 +394,21 @@ export default {
|
|
|
query
|
|
|
})
|
|
|
},
|
|
|
- airPortChange() {
|
|
|
+ airPortChange () {
|
|
|
this.getAviationData()
|
|
|
this.upAviationData()
|
|
|
this.resetLoopEvent()
|
|
|
},
|
|
|
- dateChangeHandler() {
|
|
|
+ dateChangeHandler () {
|
|
|
this.getAviationData()
|
|
|
this.upAviationData()
|
|
|
this.resetLoopEvent()
|
|
|
},
|
|
|
// 选择机场
|
|
|
- async getAirPortData() {
|
|
|
+ async getAirPortData () {
|
|
|
try {
|
|
|
const res = await getQuery({
|
|
|
- id: 72,
|
|
|
+ id: DATACONTENT_ID.departureAirId,
|
|
|
dataContent: []
|
|
|
})
|
|
|
if (Number(res.code) === 0) {
|
|
@@ -578,10 +425,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 选择航司
|
|
|
- async getAviationData() {
|
|
|
+ async getAviationData () {
|
|
|
try {
|
|
|
const res = await getQuery({
|
|
|
- id: 71,
|
|
|
+ id: DATACONTENT_ID.departureAviJoinId,
|
|
|
dataContent: [this.formData.currentAirport]
|
|
|
})
|
|
|
if (Number(res.code) === 0) {
|
|
@@ -594,10 +441,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 选择航司
|
|
|
- async upAviationData() {
|
|
|
+ async upAviationData () {
|
|
|
try {
|
|
|
const res = await getQuery({
|
|
|
- id: 74,
|
|
|
+ id: DATACONTENT_ID.departureAviLeaveId,
|
|
|
dataContent: [this.formData.currentAirport]
|
|
|
})
|
|
|
if (Number(res.code) === 0) {
|
|
@@ -620,7 +467,7 @@ export default {
|
|
|
// this.flightAttrQuery(params)
|
|
|
// },
|
|
|
// 获取表格数据
|
|
|
- async getTableData() {
|
|
|
+ async getTableData () {
|
|
|
if (!this.formData.currentAirport || !this.startDate || !this.endDate) {
|
|
|
return
|
|
|
}
|
|
@@ -643,7 +490,7 @@ export default {
|
|
|
]
|
|
|
try {
|
|
|
const res = await getQuery({
|
|
|
- id: 69,
|
|
|
+ id: DATACONTENT_ID.departureTableId,
|
|
|
dataContent: [...arr]
|
|
|
})
|
|
|
if (Number(res.code) === 0) {
|
|
@@ -661,7 +508,7 @@ export default {
|
|
|
console.log('出错了', error)
|
|
|
}
|
|
|
},
|
|
|
- initTableData(tableData) {
|
|
|
+ initTableData (tableData) {
|
|
|
this.arrivalCount = 0
|
|
|
// this.baggageCount = 0
|
|
|
tableData.forEach(item => {
|
|
@@ -686,13 +533,13 @@ export default {
|
|
|
this.setTableScroll()
|
|
|
})
|
|
|
},
|
|
|
- hasArrived(flight) {
|
|
|
+ hasArrived (flight) {
|
|
|
const now = new Date()
|
|
|
const ActualLandingTime = new Date(flight.ActualLandingTime.replace('T', ' '))
|
|
|
flight['hasArrived'] = now > ActualLandingTime && !flight['flightCanceled']
|
|
|
return flight['hasArrived']
|
|
|
},
|
|
|
- setTableScroll() {
|
|
|
+ setTableScroll () {
|
|
|
if (!this.singleDay || this.hasSetTableScroll || this.arrivalCount === 0) {
|
|
|
return
|
|
|
}
|
|
@@ -713,7 +560,7 @@ export default {
|
|
|
}, 0)
|
|
|
this.hasSetTableScroll = true
|
|
|
},
|
|
|
- setNumberTransform() {
|
|
|
+ setNumberTransform () {
|
|
|
const numberItems = this.$refs.numberItem // 拿到数字的ref,计算元素数量
|
|
|
const numberArr = this.orderNum.filter(item => !isNaN(item))
|
|
|
// 结合CSS 对数字字符进行滚动,显示订单数量
|
|
@@ -723,7 +570,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- toOrderNum(num) {
|
|
|
+ toOrderNum (num) {
|
|
|
num = num.toString()
|
|
|
if (num.length < 6) {
|
|
|
num = '0' + num // 如未满八位数,添加"0"补位
|
|
@@ -736,7 +583,7 @@ export default {
|
|
|
}
|
|
|
this.setNumberTransform()
|
|
|
},
|
|
|
- arraySpanMethod({ row, column, rowIndex, columnIndex }) {
|
|
|
+ arraySpanMethod ({ row, column, rowIndex, columnIndex }) {
|
|
|
for (let i = 0; i < 7; i++) {
|
|
|
if (columnIndex === i) {
|
|
|
const _row = this.spanArr[rowIndex]
|
|
@@ -773,7 +620,7 @@ export default {
|
|
|
optgroup,
|
|
|
select,
|
|
|
textarea {
|
|
|
- font-family: Helvetica, 'Microsoft YaHei';
|
|
|
+ font-family: Helvetica, "Microsoft YaHei";
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
.el-switch__label {
|
|
@@ -879,7 +726,7 @@ export default {
|
|
|
padding: 0;
|
|
|
text-align: center;
|
|
|
font-size: 14px;
|
|
|
- font-family: Helvetica, 'Microsoft YaHei';
|
|
|
+ font-family: Helvetica, "Microsoft YaHei";
|
|
|
letter-spacing: 0;
|
|
|
}
|
|
|
.cell-click {
|
|
@@ -913,7 +760,7 @@ export default {
|
|
|
&.redBorder {
|
|
|
position: relative;
|
|
|
&::after {
|
|
|
- content: '';
|
|
|
+ content: "";
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
bottom: 0;
|