|
@@ -1,11 +1,29 @@
|
|
|
<template>
|
|
|
<div class="airportInfo">
|
|
|
<div class="variable">
|
|
|
- <StatisticsHeader :title="titleTop" :items="formItems" :data="formData" :eledata="eledata" with-setting :withSetting="false" :withExport="true" :set="set" :action="action" :asShow="asShow" @getFormData="getFormData" @export="tableToExcel('table')" @upset="upset" @fore="fore"/>
|
|
|
+ <StatisticsHeader :title="titleTop" :items="formItems" :data="formData" :eledata="eledata" with-setting :withSetting="false" :withExport="true" :set="set" :action="action" :asShow="asShow" @getFormData="getFormData" @export="tableToExcel('table')" @upset="upset" @fore="fore" />
|
|
|
</div>
|
|
|
<div v-loading="loading" element-loading-text="数据加载中..." class="echart">
|
|
|
<!-- <Echarts :id="dataid" :option="tableData" v-if="picShow == true ? true : false" /> -->
|
|
|
- <Tableformbrs ref="table" :tableList="tableNewList" :action="action" :set="set" />
|
|
|
+ <Tableformbrs :tableList="tableNewList" :action="action" :set="set" />
|
|
|
+ <el-table ref="table" :data="tableList" style="width: 100%;visibility: hidden;" height="calc(100vh - 236px)" max-height="calc(100vh - 236px)">
|
|
|
+ <el-table-column prop="flight_all_no" label="航班号" :align="'center'">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="flight_date" label="航班日期" :align="'center'">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="stock_code" label="运单号" :align="'center'">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="index_class" label="指标分类" :align="'center'">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="node" label="节点名称" :align="'center'">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="execT" label="节点时间" :align="'center'">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="department" label="一级部门" :align="'center'">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="second_department" label="二级部门" :align="'center'">
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</div>
|
|
|
<div v-if="total > 0" class="pagination">
|
|
|
<el-pagination background layout="prev, pager, next" @current-change="currentChange" :total="total" />
|
|
@@ -121,6 +139,10 @@ export default {
|
|
|
value: "时间相同",
|
|
|
label: "时间相同",
|
|
|
},
|
|
|
+ {
|
|
|
+ value: "全部",
|
|
|
+ label: "全部",
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
@@ -165,17 +187,63 @@ export default {
|
|
|
handler (newVal) {
|
|
|
const { fttpId, fttp, flighttype, flightno } = newVal
|
|
|
if (flightno) {
|
|
|
- const datas = this.tableList.filter(item => item.flight_all_no == flightno)
|
|
|
+ let datas = []
|
|
|
+ if (fttp && !flighttype) {
|
|
|
+ if (fttp !== '全部') {
|
|
|
+ datas = this.tableList.filter(item => item.flight_all_no == flightno && item.index_class == fttp)
|
|
|
+ } else {
|
|
|
+ datas = this.tableList.filter(item => item.flight_all_no == flightno)
|
|
|
+ }
|
|
|
+ } else if (!fttp && flighttype) {
|
|
|
+ if (flighttype !== '全部') {
|
|
|
+ datas = this.tableList.filter(item => item.flight_all_no == flightno && item.second_department == flighttype)
|
|
|
+ } else {
|
|
|
+ datas = this.tableList.filter(item => item.flight_all_no == flightno)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (fttp && flighttype) {
|
|
|
+ if (fttp !== '全部' && flighttype !== '全部') {
|
|
|
+ datas = this.tableList.filter(item => item.flight_all_no == flightno && item.second_department == flighttype && item.index_class == fttp)
|
|
|
+ } else if (fttp !== '全部' && flighttype === '全部') {
|
|
|
+ datas = this.tableList.filter(item => item.flight_all_no == flightno && item.index_class == fttp)
|
|
|
+ } else if (fttp === '全部' && flighttype !== '全部') {
|
|
|
+ datas = this.tableList.filter(item => item.flight_all_no == flightno && item.second_department == flighttype)
|
|
|
+ } else {
|
|
|
+ datas = this.tableList.filter(item => item.flight_all_no == flightno)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ datas = this.tableList.filter(item => item.flight_all_no == flightno)
|
|
|
+ }
|
|
|
this.setTable(datas)
|
|
|
} else {
|
|
|
if (fttp && !flighttype) {
|
|
|
- const datas = this.tableList.filter(item => item.index_class == fttp)
|
|
|
+ let datas = []
|
|
|
+ if (fttp !== '全部') {
|
|
|
+ datas = this.tableList.filter(item => item.index_class == fttp)
|
|
|
+ } else {
|
|
|
+ datas = this.tableList
|
|
|
+ }
|
|
|
this.setTable(datas)
|
|
|
} else if (!fttp && flighttype) {
|
|
|
- const datas = this.tableList.filter(item => item.second_department == flighttype)
|
|
|
+ let datas = []
|
|
|
+ if (fttp !== '全部') {
|
|
|
+ datas = this.tableList.filter(item => item.second_department == flighttype)
|
|
|
+ } else {
|
|
|
+ datas = this.tableList
|
|
|
+ }
|
|
|
this.setTable(datas)
|
|
|
} else if (fttp && flighttype) {
|
|
|
- const datas = this.tableList.filter(item => item.second_department == flighttype && item.index_class == fttp)
|
|
|
+ let datas = []
|
|
|
+ if (fttp !== '全部' && flighttype !== '全部') {
|
|
|
+ datas = this.tableList.filter(item => item.second_department == flighttype && item.index_class == fttp)
|
|
|
+ } else if (fttp !== '全部' && flighttype === '全部') {
|
|
|
+ datas = this.tableList.filter(item => item.index_class == fttp)
|
|
|
+ } else if (fttp === '全部' && flighttype !== '全部') {
|
|
|
+ datas = this.tableList.filter(item => item.second_department == flighttype)
|
|
|
+ } else {
|
|
|
+ datas = this.tableList
|
|
|
+ }
|
|
|
this.setTable(datas)
|
|
|
} else {
|
|
|
const datas = this.tableList
|
|
@@ -218,8 +286,6 @@ export default {
|
|
|
this.listname =
|
|
|
"节点明细统计" + '-' +
|
|
|
typeName + '-' +
|
|
|
- data.fttp + '-' +
|
|
|
- data.flighttype + '-' +
|
|
|
data.dateTime;
|
|
|
this.listHeader = ["序号", "时间", "航班(班)", "环比(%)"];
|
|
|
},
|
|
@@ -243,7 +309,11 @@ export default {
|
|
|
{
|
|
|
label: '装卸部(美华)',
|
|
|
value: '装卸部(美华)'
|
|
|
- }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "全部",
|
|
|
+ label: "全部",
|
|
|
+ },
|
|
|
]
|
|
|
break;
|
|
|
case 52234:
|
|
@@ -259,7 +329,11 @@ export default {
|
|
|
{
|
|
|
label: '装卸部(美华)',
|
|
|
value: '装卸部(美华)'
|
|
|
- }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "全部",
|
|
|
+ label: "全部",
|
|
|
+ },
|
|
|
]
|
|
|
break;
|
|
|
case 52235:
|
|
@@ -267,7 +341,11 @@ export default {
|
|
|
{
|
|
|
label: '龙略',
|
|
|
value: '龙略'
|
|
|
- }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "全部",
|
|
|
+ label: "全部",
|
|
|
+ },
|
|
|
]
|
|
|
break;
|
|
|
case 52236:
|
|
@@ -283,7 +361,11 @@ export default {
|
|
|
{
|
|
|
label: '龙略',
|
|
|
value: '龙略'
|
|
|
- }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "全部",
|
|
|
+ label: "全部",
|
|
|
+ },
|
|
|
]
|
|
|
break;
|
|
|
default:
|
|
@@ -299,7 +381,11 @@ export default {
|
|
|
{
|
|
|
label: '装卸部(美华)',
|
|
|
value: '装卸部(美华)'
|
|
|
- }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "全部",
|
|
|
+ label: "全部",
|
|
|
+ },
|
|
|
]
|
|
|
break;
|
|
|
}
|
|
@@ -310,7 +396,7 @@ export default {
|
|
|
try {
|
|
|
const { code, returnData } = await Query({
|
|
|
id: id,
|
|
|
- pageSize:9999,
|
|
|
+ pageSize: 9999,
|
|
|
dataContent: data,
|
|
|
});
|
|
|
if (code == 0) {
|