lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
59e9ff132c
Modificáronse 2 ficheiros con 5 adicións e 2 borrados
  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 = {