mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
v1.9 优化考情详情 时间显示错误问题
This commit is contained in:
parent
ecb5361a08
commit
8c097c7589
@ -71,6 +71,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {timeMinFormat} from '@/utils/dateUtil'
|
||||||
export default {
|
export default {
|
||||||
name: 'TodayAttendanceDetail',
|
name: 'TodayAttendanceDetail',
|
||||||
data() {
|
data() {
|
||||||
@ -88,12 +89,7 @@ export default {
|
|||||||
this.tableData = []
|
this.tableData = []
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
timeMinFormat(time) {
|
timeMinFormat,
|
||||||
if (!time) return ''
|
|
||||||
const hours = Math.floor(time / 60)
|
|
||||||
const minutes = time % 60
|
|
||||||
return `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}`
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user