lrf402788946 4 anos atrás
pai
commit
59e9ff132c
2 arquivos alterados com 5 adições e 2 exclusões
  1. 4 1
      app/service/student.js
  2. 1 1
      config/config.prod.js

+ 4 - 1
app/service/student.js

@@ -428,7 +428,10 @@ class StudentService extends CrudService {
       return i;
     });
     const meta = this.metaBx();
-    return await this.ctx.service.util.toExcel(studentList, meta, '学生名单');
+    let fn = '学生名单';
+    const head = _.head(classList);
+    if (head) fn = `${head.term}期-${head.batch}批${fn}`;
+    return await this.ctx.service.util.toExcel(studentList, meta, fn);
   }
 
   metaBx() {

+ 1 - 1
config/config.prod.js

@@ -10,7 +10,7 @@ module.exports = () => {
   // 导出配置
   config.cdn = {
     repos_root_path: '/usr/local/workspace/service-file/upload',
-    repos_root_url_excel: '/excel',
+    repos_root_url_excel: '/excel/',
   };
 
   config.wxapi = {