WANG 6 ani în urmă
părinte
comite
b09801cd20
1 a modificat fișierele cu 15 adăugiri și 0 ștergeri
  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;