diff --git a/web/client/src/sections/humanAffairs/components/importPositionRating.jsx b/web/client/src/sections/humanAffairs/components/importPositionRating.jsx index 7c5f93f..c186d40 100644 --- a/web/client/src/sections/humanAffairs/components/importPositionRating.jsx +++ b/web/client/src/sections/humanAffairs/components/importPositionRating.jsx @@ -89,7 +89,8 @@ const ImportPositionRatingModal = props => { //如2020/8/1,xlsx会解析成 Fri Jul 31 2020 23:59:17 GMT+0800 小了43秒 let a = new Date(v); a.setTime(a.getTime() + 43 * 1000); - return a.getFullYear() + '-' + a.getMonth() + '-' + a.getDay(); + return a; + // return a.getFullYear() + '-' + a.getMonth() + '-' + a.getDay(); } return ( @@ -162,7 +163,7 @@ const ImportPositionRatingModal = props => { } else if (["theoryPassed", "totalRatingPassed"].includes(item)) { if (!["是", "否"].includes(obj[item])) { - errmsg = `第${i + 2}行【${IMPORT_FIELD[item].label}】不合法,请修改`; + errmsg = `第${i + 2}行【${IMPORT_FIELD[item].label}】不合规,请修改`; break; } else { obj[item] = "是" == obj[item] ? true : false; @@ -175,17 +176,17 @@ const ImportPositionRatingModal = props => { } else { if (!obj.ratingTime.toString().match(/^(\d{1,4})(-|.|\/)(\d{1,2})\2(\d{1,2})$/)) { - errmsg = `第${i + 2}行【${IMPORT_FIELD[item].label}】不合法,请将单元格更改为时间格式`; + errmsg = `第${i + 2}行【${IMPORT_FIELD[item].label}】不合规,请将单元格更改为时间格式`; break; } } } else { - errmsg = `第${i + 2}行【${IMPORT_FIELD[item].label}】不合法,请修改`; + errmsg = `第${i + 2}行【${IMPORT_FIELD[item].label}】不合规,请修改`; break; } } else if (["theoryBasicScore", "totalScore"].includes(item)) { if (isNaN(obj[item])) { - errmsg = `第${i + 2}行【${IMPORT_FIELD[item].label}】不合法,请修改`; + errmsg = `第${i + 2}行【${IMPORT_FIELD[item].label}】不合规,请修改`; break; } }