소스 검색

导出作业没加指定科目

lrf402788946 4 년 전
부모
커밋
8a19988eca
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;
       }
     },
   },