|
@@ -75,6 +75,13 @@
|
|
|
@click="toExportStudent"
|
|
|
>导出</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ v-if="checkPrivilege('button', 'export')"
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-s-order"
|
|
|
+ @click="handleTaskType('BASIC_EXAM_STUDENT_EXPORT')"
|
|
|
+ >导出结果查询</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button
|
|
@@ -381,6 +388,7 @@ export default {
|
|
|
curRow: {},
|
|
|
loading: false,
|
|
|
download: false,
|
|
|
+ importTaskType: "BASIC_EXAM_STUDENT_IMPORT",
|
|
|
curTaskType: "BASIC_EXAM_STUDENT_IMPORT",
|
|
|
taskTypes: [],
|
|
|
// import
|
|
@@ -399,7 +407,7 @@ export default {
|
|
|
if (this.checkPrivilege("button", "ImportTeacher")) {
|
|
|
taskTypes.push("BASIC_EXAM_STUDENT_TEACHER_IMPORT");
|
|
|
}
|
|
|
- if (taskTypes.length === 1) this.curTaskType = taskTypes[0];
|
|
|
+ if (taskTypes.length === 1) this.importTaskType = taskTypes[0];
|
|
|
this.taskTypes = taskTypes;
|
|
|
},
|
|
|
methods: {
|
|
@@ -529,15 +537,16 @@ export default {
|
|
|
if (this.loading) return;
|
|
|
|
|
|
this.loading = true;
|
|
|
- const res = await downloadByApi(() => {
|
|
|
- return exportExamStudent({ ...this.filterSe, ...this.filter });
|
|
|
- }, "").catch((e) => {
|
|
|
- this.$message.error(e || "下载失败,请重新尝试!");
|
|
|
- });
|
|
|
+ const res = await exportExamStudent({
|
|
|
+ ...this.filterSe,
|
|
|
+ ...this.filter,
|
|
|
+ }).catch(() => {});
|
|
|
this.loading = false;
|
|
|
|
|
|
if (!res) return;
|
|
|
- this.$message.success("下载成功!");
|
|
|
+ this.$message.success(
|
|
|
+ "操作成功,请在右侧导入导出结果查询中查看导出结果!"
|
|
|
+ );
|
|
|
},
|
|
|
// import
|
|
|
toImport() {
|
|
@@ -547,6 +556,7 @@ export default {
|
|
|
this.$refs.ImportFileTeacher.open();
|
|
|
},
|
|
|
toDataTask() {
|
|
|
+ this.curTaskType = this.importTaskType;
|
|
|
this.$refs.DataTaskDialog.open();
|
|
|
},
|
|
|
handleTaskType(val) {
|