You need to sign in before continuing.
Commit 8c097c75893084ef02c88e42df9b0ddcfac25ba3
1 parent
ecb5361a
v1.9 优化考情详情 时间显示错误问题
Showing
1 changed file
with
2 additions
and
6 deletions
src/components/oa/todayAttendanceDetail.vue
| @@ -71,6 +71,7 @@ | @@ -71,6 +71,7 @@ | ||
| 71 | </template> | 71 | </template> |
| 72 | 72 | ||
| 73 | <script> | 73 | <script> |
| 74 | +import {timeMinFormat} from '@/utils/dateUtil' | ||
| 74 | export default { | 75 | export default { |
| 75 | name: 'TodayAttendanceDetail', | 76 | name: 'TodayAttendanceDetail', |
| 76 | data() { | 77 | data() { |
| @@ -88,12 +89,7 @@ export default { | @@ -88,12 +89,7 @@ export default { | ||
| 88 | this.tableData = [] | 89 | this.tableData = [] |
| 89 | this.visible = false | 90 | this.visible = false |
| 90 | }, | 91 | }, |
| 91 | - timeMinFormat(time) { | ||
| 92 | - if (!time) return '' | ||
| 93 | - const hours = Math.floor(time / 60) | ||
| 94 | - const minutes = time % 60 | ||
| 95 | - return `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}` | ||
| 96 | - } | 92 | + timeMinFormat, |
| 97 | } | 93 | } |
| 98 | } | 94 | } |
| 99 | </script> | 95 | </script> |