Pārlūkot izejas kodu

feat:IBU航线统计导出功能增加

yangchengxiu 3 mēneši atpakaļ
vecāks
revīzija
0e710d3dcd

+ 1 - 1
src/api/flightEnquiry/oneENormal.js

@@ -11,7 +11,7 @@ export function normalQuery(data) {
 // 黑屏查询
 export function blackScreenQuery(data) {
   return request({
-    url: "/etermapi/avh/blackScreenQuery",
+    url: "/etermapi/avh/blackScreenQuery2",
     method: "post",
     data,
   });

+ 16 - 28
src/views/airTicket/IBU/index.vue

@@ -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() {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 513 - 821
src/views/flightEnquiry/oneEBlack/index.vue


+ 2 - 2
vue.config.js

@@ -67,8 +67,8 @@ module.exports = {
       },
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       "/oaapi": {
-        // target: `http://192.168.1.121:8081/`, // tx
-        target: `http://192.168.1.108:8081`, // xw
+        target: `http://192.168.1.121:8081/`, // tx
+        // target: `http://192.168.1.108:8081`, // xw
         changeOrigin: true,
         pathRewrite: {
           "^/oaapi": "",