liyongli 2 سال پیش
والد
کامیت
47c0743c44
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 6 4
      src/views/Proofread/index.vue

+ 6 - 4
src/views/Proofread/index.vue

@@ -33,9 +33,9 @@
           <el-button type="primary" @click="onSubmit" :loading="load">
             查询
           </el-button>
-          <!-- <el-button type="primary" @click="onExport" :loading="load">
+          <el-button type="primary" @click="onExport" :loading="load">
             导出
-          </el-button> -->
+          </el-button>
         </el-form-item>
       </el-form>
     </el-card>
@@ -84,7 +84,7 @@
 import { getYoumeiList, getYoumeiProportion } from '@/api/newMdeiaApi';
 import dayjs from 'dayjs';
 
-// import config from "@/config/index";
+import config from "@/config/index";
 import * as echarts from 'echarts/core';
 import { PieChart } from 'echarts/charts';
 import {
@@ -208,7 +208,9 @@ export default {
       this.getDate();
       this.getEcharts();
     },
-    onExport() {},
+    onExport() {
+        window.open(config.base.youmei + "/export-log?keyword=" +this.form.keyword + '&startTime=' + this.form.time[0] + '&endTime=' + this.form.time[1]);
+    },
   },
   components: {},
 };