|
@@ -54,7 +54,12 @@
|
|
|
@click="toggleEnableExamStudentArray({ enable: 0 })"
|
|
|
>禁用</el-button
|
|
|
>
|
|
|
- <!-- <el-button>导入</el-button> -->
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="icon icon-upload"
|
|
|
+ @click="exportExamStudent"
|
|
|
+ >导出</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -154,6 +159,7 @@
|
|
|
|
|
|
<script>
|
|
|
import {
|
|
|
+ exportExamStudent,
|
|
|
searchExamStudents,
|
|
|
toggleEnableExamStudent,
|
|
|
toggleEnableExamStudentArray,
|
|
@@ -256,6 +262,17 @@ export default {
|
|
|
this.selectedBasePhoto = url;
|
|
|
this.basePhotoDialogVisible = true;
|
|
|
},
|
|
|
+ async exportExamStudent() {
|
|
|
+ try {
|
|
|
+ const valid = await this.$refs.form.validate();
|
|
|
+ if (!valid) return;
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ await exportExamStudent(this.form);
|
|
|
+ this.$notify({ title: "导出任务已成功启动", type: "success" });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|