Explorar o código

导出作业没加指定科目

lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
8a19988eca
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
       }
     },
   },