Browse Source

证书列表添加导出功能

sunlupeng 1 year ago
parent
commit
12f1b3c180
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/certManage/certList.vue

+ 4 - 0
src/views/certManage/certList.vue

@@ -13,6 +13,7 @@
           </el-option>
         </el-select>
         <el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleFilter">查找</el-button>
+        <el-button class="filter-item" type="primary" v-waves icon="el-icon-download" @click="handleDownLoad">导出</el-button>
       </div>
   
       <!-- 查询结果 -->
@@ -144,6 +145,9 @@
       this.getList();
     },
     methods: {
+      handleDownLoad(){
+            window.location.href = process.env.BASE_API + '/mall-integral-obtain/export/certificate?name=' + this.listQuery.name + '&title=' + this.listQuery.title + '&userName=' + this.listQuery.userName + '&status=' + this.listQuery.status;
+        },
       getList() {
         this.listLoading = true;
         list(this.listQuery)