guhongwei 4 years ago
parent
commit
51b3570861
2 changed files with 5 additions and 1 deletions
  1. BIN
      public/sheetjs.xlsx
  2. 5 1
      src/views/new-plan/detail.vue

BIN
public/sheetjs.xlsx


+ 5 - 1
src/views/new-plan/detail.vue

@@ -2,7 +2,7 @@
   <div id="detail">
     <list-frame :title="pageTitle" returns="./index" :needFilter="false" :needPag="false" :needAdd="false">
       <el-col class="mb">
-        <el-button type="primary" size="mini" @click="exportExcel()">下载上传名单模板</el-button>
+        <el-button type="primary" size="mini"><a href="/sheetjs.xlsx" download="上传名单模板.xlsx">下载上传名单模板</a></el-button>
       </el-col>
       <data-table
         id="out-table"
@@ -191,5 +191,9 @@ export default {
 .mb {
   text-align: right;
   margin: 15px 0;
+  a {
+    text-decoration: none;
+    color: #fff;
+  }
 }
 </style>