diff --git a/web/client/src/sections/humanAffairs/containers/employeeInformation.jsx b/web/client/src/sections/humanAffairs/containers/employeeInformation.jsx index 12c193a..d923548 100644 --- a/web/client/src/sections/humanAffairs/containers/employeeInformation.jsx +++ b/web/client/src/sections/humanAffairs/containers/employeeInformation.jsx @@ -380,7 +380,7 @@ const employeeInformation = (props) => { key: "employmentLife", sorter: (a, b) => { }, render: (_, r, index) => { - return (r.hiredate ? {moment(new Date()).diff(r.hiredate, 'years') + '年'} : '-') + return (r.hiredate ? {String(moment(new Date()).diff(r.hiredate, 'years', true)).substring(0, 3) + '年'} : '-') }, }, { title: '试用期时间', diff --git a/web/client/src/sections/humanAffairs/containers/personnelFiles.jsx b/web/client/src/sections/humanAffairs/containers/personnelFiles.jsx index 33379d3..56f6e6e 100644 --- a/web/client/src/sections/humanAffairs/containers/personnelFiles.jsx +++ b/web/client/src/sections/humanAffairs/containers/personnelFiles.jsx @@ -241,7 +241,7 @@ const Rest = (props) => { return (