Browse Source

word模板

xiatian 3 years ago
parent
commit
c5870f2eec
1 changed files with 15 additions and 0 deletions
  1. 15 0
      src/modules/questions/views/ImportPaperInfo.vue

+ 15 - 0
src/modules/questions/views/ImportPaperInfo.vue

@@ -87,6 +87,13 @@
               @click="submitUpload"
               >确认上传
             </el-button>
+            <el-button
+              type="info"
+              plain
+              icon="icon el-icon-download"
+              @click="donwTemplate"
+              >下载word模板
+            </el-button>
             <el-button
               type="danger"
               plain
@@ -293,6 +300,14 @@ export default {
       }
       return true;
     },
+    donwTemplate() {
+      window.location.href =
+        QUESTION_API +
+        "/import/paper/template?$key=" +
+        this.user.key +
+        "&$token=" +
+        this.user.token;
+    },
     //确定上传
     submitUpload() {
       console.log("this form:", this.formSearch);