lrf402788946 4 年之前
父节点
当前提交
23be701179
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/service/school.js

+ 2 - 1
app/service/school.js

@@ -252,8 +252,9 @@ class SchoolService extends CrudService {
       for (let i = 0; i < cols.length; i++) {
         const col = cols[i];
         if (!col) break;
-        let val = noWhite(row.getCell(col.colIndex));
+        let val = _.trim(row.getCell(col.colIndex));
         if (col.column === 'id_number') val = val.toUpperCase();
+        if (val && val !== '') val = noWhite(val);
         stu[col.column] = val;
       }
       stuList.push(stu);