Browse Source

匹配度分析数据导出上传

littleblue55 1 month ago
parent
commit
dc6ade418b
1 changed files with 20 additions and 0 deletions
  1. 20 0
      src/views/match/index.vue

+ 20 - 0
src/views/match/index.vue

@@ -121,6 +121,20 @@
         </el-form-item>
       </el-form>
     </div>
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-show="tableData.length > 0"
+          v-hasPermi="['match:match:export']"
+        >导出</el-button>
+      </el-col>
+      <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
+    </el-row>
     <el-table :data="tableData" border>
       <el-table-column
         prop="enterpriseName"
@@ -466,6 +480,11 @@ export default {
 
       return true; // 所有校验通过
     },
+    handleExport() {
+      this.download('match/match/export', {
+        ...this.matchForm,
+      }, `match_${new Date().getTime()}.xlsx`)
+    }
   },
   computed: {
     seasonOptions() {
@@ -480,6 +499,7 @@ export default {
         : [];
       return options || []; // 以防得到 undefined
     },
+    
   },
 };
 </script>