WANG 6 years ago
parent
commit
b09801cd20
1 changed files with 15 additions and 0 deletions
  1. 15 0
      src/modules/examwork/view/student.vue

+ 15 - 0
src/modules/examwork/view/student.vue

@@ -109,6 +109,9 @@
                 @click="disableStudent('')"
                 >禁用
               </el-button>
+              <el-button size="small" type="primary" @click="exportStudent">
+                <i class="fa fa-download" aria-hidden="true"></i>导出
+              </el-button>
             </el-form-item>
           </el-form>
 
@@ -658,6 +661,18 @@ export default {
           }
         });
     },
+    exportStudent() {
+      var param = new URLSearchParams(this.formSearch);
+      window.open(
+        CORE_API +
+          "/student/export?$key=" +
+          this.user.key +
+          "&$token=" +
+          this.user.token +
+          "&" +
+          param
+      );
+    },
     checkIds(row) {
       if (row) {
         return row.id;