|
@@ -1,34 +1,11 @@
|
|
|
<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"
|
|
|
- @upset="upset"
|
|
|
- />
|
|
|
+ <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" @upset="upset" />
|
|
|
</div>
|
|
|
<div class="echart">
|
|
|
- <Echarts
|
|
|
- :id="dataid"
|
|
|
- :option="tableData"
|
|
|
- v-if="picShow == true ? true : false"
|
|
|
- />
|
|
|
- <Tableformbrs
|
|
|
- :tableList="tableList"
|
|
|
- :action="action"
|
|
|
- v-if="!picShow"
|
|
|
- :set="set"
|
|
|
- />
|
|
|
+ <Echarts :id="dataid" :option="tableData" v-if="picShow == true ? true : false" />
|
|
|
+ <Tableformbrs :tableList="tableList" :action="action" v-if="!picShow" :set="set" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -41,7 +18,7 @@ import { export_json_to_excel } from "@/utils/Export2Excel";
|
|
|
import { Query } from "@/api/webApi";
|
|
|
export default {
|
|
|
name: "ChartsBar",
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
return {
|
|
|
asShow: true,
|
|
|
optiondata: [],
|
|
@@ -118,7 +95,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
value: "国内离港-全部",
|
|
|
- label: "国内离港-全部",
|
|
|
+ label: "国内出港-全部",
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -174,19 +151,19 @@ export default {
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ mounted () {
|
|
|
// this.getQuery([]);
|
|
|
},
|
|
|
watch: {
|
|
|
// 监听数据变化,重绘折线图
|
|
|
option: {
|
|
|
deep: true,
|
|
|
- handler(newVal) {},
|
|
|
+ handler (newVal) { },
|
|
|
},
|
|
|
},
|
|
|
- destroyed() {},
|
|
|
+ destroyed () { },
|
|
|
methods: {
|
|
|
- getFormData(data) {
|
|
|
+ getFormData (data) {
|
|
|
this.tableData.time = [];
|
|
|
this.tableData.data1 = [];
|
|
|
this.tableData.data2 = [];
|
|
@@ -211,7 +188,7 @@ export default {
|
|
|
this.listHeader = ["序号", "时间", "航班(班)", "环比(%)"];
|
|
|
},
|
|
|
//获取表格数据
|
|
|
- async getQuery(data, dat) {
|
|
|
+ async getQuery (data, dat) {
|
|
|
try {
|
|
|
const { code, returnData } = await Query({
|
|
|
id: this.listqueryTemplateID,
|
|
@@ -271,7 +248,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//导出
|
|
|
- tableToExcel() {
|
|
|
+ tableToExcel () {
|
|
|
import("../../../utils/Export2Excel").then((excel) => {
|
|
|
// 设置导出表格的头部
|
|
|
const tHeader = this.listHeader;
|
|
@@ -297,7 +274,7 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- upset(data) {
|
|
|
+ upset (data) {
|
|
|
this.picShow = data;
|
|
|
},
|
|
|
},
|