Browse Source

导出作业没加指定科目

lrf402788946 4 years ago
parent
commit
8a19988eca
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/views/task/index.vue

+ 2 - 0
src/views/task/index.vue

@@ -158,10 +158,12 @@ export default {
     async toExport(range) {
       let msg = this.$message('正在导出,请稍后....');
       let data = { range };
+      if (this.subid) data.subid = this.subid;
       const res = await this.export(data);
       msg.close();
       if (this.$checkRes(res, '导出成功', res.errmsg || '导出失败')) {
         window.open(res.data);
+        this.subid = undefined;
       }
     },
   },