|
@@ -1,35 +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
|
|
|
- v-if="!picShow"
|
|
|
- :tableList="tableList"
|
|
|
- :action="action"
|
|
|
- :set="set"
|
|
|
- :listall="listall"
|
|
|
- />
|
|
|
+ <Echarts :id="dataid" :option="tableData" v-if="picShow == true ? true : false" />
|
|
|
+ <Tableformbrs v-if="!picShow" :tableList="tableList" :action="action" :set="set" :listall="listall" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -42,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: [],
|
|
@@ -160,19 +136,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 = [];
|
|
@@ -216,7 +192,7 @@ export default {
|
|
|
];
|
|
|
},
|
|
|
//获取表格数据
|
|
|
- async getQuery(data, dat) {
|
|
|
+ async getQuery (data, dat) {
|
|
|
try {
|
|
|
const { code, returnData } = await Query({
|
|
|
id: this.listqueryTemplateID,
|
|
@@ -295,7 +271,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//导出
|
|
|
- tableToExcel() {
|
|
|
+ tableToExcel () {
|
|
|
import("../../../utils/Export2Excel").then((excel) => {
|
|
|
// 设置导出表格的头部
|
|
|
const tHeader = this.listHeader;
|
|
@@ -306,22 +282,22 @@ export default {
|
|
|
const data = this.tableListcop.map((item, index) => {
|
|
|
return this.picShow
|
|
|
? [
|
|
|
- item.indexs,
|
|
|
- item.dat,
|
|
|
- item.pullFlightNum,
|
|
|
- item.flightChain,
|
|
|
- item.pullWeight,
|
|
|
- item.weightChain,
|
|
|
- ]
|
|
|
+ item.indexs,
|
|
|
+ item.dat,
|
|
|
+ item.pullFlightNum,
|
|
|
+ item.flightChain,
|
|
|
+ item.pullWeight,
|
|
|
+ item.weightChain,
|
|
|
+ ]
|
|
|
: [
|
|
|
- item.indexs,
|
|
|
- item.flightdate,
|
|
|
- item.flightNo,
|
|
|
- item.line,
|
|
|
- item.stand,
|
|
|
- item.totalWeight,
|
|
|
- item.pullWeight,
|
|
|
- ]
|
|
|
+ item.indexs,
|
|
|
+ item.flightdate,
|
|
|
+ item.flightNo,
|
|
|
+ item.line,
|
|
|
+ item.stand,
|
|
|
+ item.totalWeight,
|
|
|
+ item.pullWeight,
|
|
|
+ ]
|
|
|
});
|
|
|
if (!this.picShow) {
|
|
|
data[data.length - 1][2] = data.length - 1
|
|
@@ -341,7 +317,7 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- upset(data) {
|
|
|
+ upset (data) {
|
|
|
this.picShow = data;
|
|
|
if (this.picShow == false) {
|
|
|
this.tableData.time = [];
|