|
@@ -354,7 +354,7 @@ export default {
|
|
|
data.dateTime[0] +
|
|
|
"--" +
|
|
|
data.dateTime[1];
|
|
|
- this.listHeader = ["时间", "重量"];
|
|
|
+ this.listHeader = ["序号", "时间", "重量"];
|
|
|
} else if (this.action === 1) {
|
|
|
this.listname =
|
|
|
"航班量统计" +
|
|
@@ -364,7 +364,7 @@ export default {
|
|
|
data.dateTime[0] +
|
|
|
"--" +
|
|
|
data.dateTime[1];
|
|
|
- this.listHeader = ["时间", "重量"];
|
|
|
+ this.listHeader = ["序号", "时间", "重量"];
|
|
|
} else if (this.action === 2) {
|
|
|
this.listname =
|
|
|
"特货统计" +
|
|
@@ -377,9 +377,9 @@ export default {
|
|
|
data.dateTime[1];
|
|
|
console.log();
|
|
|
if (data.set == 1) {
|
|
|
- this.listHeader = ["时间", "单"];
|
|
|
+ this.listHeader = ["序号", "时间", "单"];
|
|
|
} else if (data.set == 2) {
|
|
|
- this.listHeader = ["时间", "重量"];
|
|
|
+ this.listHeader = ["序号", "时间", "重量"];
|
|
|
}
|
|
|
} else if (this.action === 3) {
|
|
|
this.listname =
|
|
@@ -390,7 +390,7 @@ export default {
|
|
|
data.dateTime[0] +
|
|
|
"--" +
|
|
|
data.dateTime[1];
|
|
|
- this.listHeader = ["时间", "重量"];
|
|
|
+ this.listHeader = ["序号", "时间", "重量"];
|
|
|
}
|
|
|
},
|
|
|
//获取表格数据
|
|
@@ -463,17 +463,17 @@ export default {
|
|
|
*/
|
|
|
const data = this.tableList.map((item, index) => {
|
|
|
if (this.action === 0) {
|
|
|
- return [item.dat, item.weight];
|
|
|
+ return [index + 1, item.dat, item.weight];
|
|
|
} else if (this.action === 1) {
|
|
|
- return [item.dat, item.flightNum];
|
|
|
+ return [index + 1, item.dat, item.flightNum];
|
|
|
} else if (this.action === 2) {
|
|
|
if (this.set == 1) {
|
|
|
- return [item.dat, item.flightNum];
|
|
|
+ return [index + 1, item.dat, item.flightNum];
|
|
|
} else if (this.set == 2) {
|
|
|
- return [item.dat, item.weight];
|
|
|
+ return [index + 1, item.dat, item.weight];
|
|
|
}
|
|
|
} else if (this.action === 3) {
|
|
|
- return [item.fdt, item.weight];
|
|
|
+ return [index + 1, item.fdt, item.weight];
|
|
|
}
|
|
|
});
|
|
|
// 调用我们封装好的方法进行导出Excel
|