Explorar o código

fix: 显示bug

zhangjie hai 11 meses
pai
achega
06c4bd2967

+ 1 - 0
src/constants/enumerate.js

@@ -212,6 +212,7 @@ export const DATA_TASK_STATUS = {
 export const DATA_TASK_TYPE = {
   USER_IMPORT: "用户导入",
   //   STUDENT_IMPORT: "学生导入",
+  BASIC_EXAM_STUDENT_EXPORT: "考生导出",
   BASIC_EXAM_STUDENT_IMPORT: "考生导入",
   BASIC_EXAM_STUDENT_TEACHER_IMPORT: "任课老师导入",
   //   CLAZZ_IMPORT: "班级导入",

+ 17 - 7
src/modules/base/views/ExamStudentManage.vue

@@ -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) {

+ 1 - 1
src/modules/mark/views/ScoreManage.vue

@@ -137,7 +137,7 @@
         >
         </el-pagination>
       </div>
-      <div v-if="total === 0" class="tips-markedness">
+      <div class="tips-markedness">
         <p>
           如果成绩查询菜单下没有数据,请先在评卷管理模块—评卷管理菜单下,结束评卷
           <el-button