|
@@ -85,23 +85,24 @@
|
|
|
icon="el-icon-search"
|
|
|
size="small"
|
|
|
@click="getOrders"
|
|
|
- v-hasPermi="['airTicket:flightSegmentqhf:query']"
|
|
|
+ v-hasPermi="['airTicket:IBU:query']"
|
|
|
>
|
|
|
查询
|
|
|
</el-button>
|
|
|
- <!-- <el-button
|
|
|
+ <el-button
|
|
|
icon="el-icon-download"
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
@click="getOrdersToExcel"
|
|
|
+ v-hasPermi="['airTicket:IBU:export']"
|
|
|
>
|
|
|
导出
|
|
|
- </el-button> -->
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
@click="getFlightoa"
|
|
|
- v-hasPermi="['airTicket:flightSegmentqhf:resStatistic']"
|
|
|
+ v-hasPermi="['airTicket:IBU:resStatistic']"
|
|
|
>
|
|
|
重新统计
|
|
|
</el-button>
|
|
@@ -179,30 +180,17 @@ export default {
|
|
|
methods: {
|
|
|
// 导出
|
|
|
getOrdersToExcel() {
|
|
|
- // const params = {
|
|
|
- // ...this.search,
|
|
|
- // page: this.pageInfo.page,
|
|
|
- // size: this.pageInfo.size,
|
|
|
- // username: encodeURI(store.getters.name),
|
|
|
- // userid: store.getters.id,
|
|
|
- // token: store.getters.token,
|
|
|
- // };
|
|
|
- // const a = document.createElement('a')
|
|
|
- // let href = this.$http.defaults.baseURL + api.segmentscExportExcel + '?'
|
|
|
- // Object.entries(params).forEach((v) => (href += `${v[0]}=${v[1]}&`))
|
|
|
- // a.href = href.slice(0, -1)
|
|
|
- // a.style.display = 'none'
|
|
|
- // document.body.appendChild(a)
|
|
|
- // a.click()
|
|
|
- // document.body.removeChild(a)
|
|
|
- // this.excelLoading = false
|
|
|
- // this.download(
|
|
|
- // "monitor/job/export",
|
|
|
- // {
|
|
|
- // ...params,
|
|
|
- // },
|
|
|
- // `job_${new Date().getTime()}.xlsx`
|
|
|
- // );
|
|
|
+ let { airline, startDay, endDay } = this.search;
|
|
|
+ this.download(
|
|
|
+ "statistic/export",
|
|
|
+ {
|
|
|
+ startDay: startDay ? startDay : this.Utils.formatDate(new Date()),
|
|
|
+ endDay: endDay ? endDay : this.Utils.formatDate(new Date()),
|
|
|
+ airline: airline ? airline : null,
|
|
|
+ type: 2,
|
|
|
+ },
|
|
|
+ `IBU航段统计_${new Date().getTime()}.xlsx`
|
|
|
+ );
|
|
|
},
|
|
|
// 重新统计
|
|
|
getFlightoa() {
|