lrf402788946 hace 4 años
padre
commit
7e64401475
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      src/views/student/index.vue

+ 5 - 5
src/views/student/index.vue

@@ -260,11 +260,11 @@ export default {
       const obj = { ...data, model };
       const obj = { ...data, model };
       const msg = this.$message({ duration: 0, message: '正在导出,请稍后...' });
       const msg = this.$message({ duration: 0, message: '正在导出,请稍后...' });
       const res = await this.toExport(obj);
       const res = await this.toExport(obj);
-      // msg.close();
-      // if (this.$checkRes(res)) {
-      //   const { data } = res;
-      //   window.open(data);
-      // }
+      msg.close();
+      if (this.$checkRes(res)) {
+        const { data } = res;
+        window.open(data);
+      }
     },
     },
     getTerm(termid) {
     getTerm(termid) {
       console.log(termid);
       console.log(termid);