From 3ac695aaee5aab01d8cb39a56388c2740913dbec Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期五, 06 十二月 2024 17:18:23 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- admin/src/views/statistics/platformRecord.vue | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/admin/src/views/statistics/platformRecord.vue b/admin/src/views/statistics/platformRecord.vue index 49f98e1..f9f3291 100644 --- a/admin/src/views/statistics/platformRecord.vue +++ b/admin/src/views/statistics/platformRecord.vue @@ -116,7 +116,14 @@ this.list.forEach(item => { item.inTypeTemp = item.inType == 0 ? '鏁存墭鐩�' : '浠剁儫' item.taskOrigin = 'WMS鑾峰彇' - item.workTime = dayjs.duration(item.param3, 'seconds').format('H鏃秏鍒唖绉�') + // item.workTime = dayjs.duration(item.param3, 'seconds').format('H鏃秏鍒唖绉�') + if(item.param3 > 3600){ + item.workTime = Math.ceil(item.param3 / 3600) + '鏃�' + Math.ceil(Math.ceil(item.param3 % 3600) / 60) + '鍒�' + item.param3 % 60 + '绉�' + }else if(item.param3 > 60){ + item.workTime = Math.ceil(item.param3 / 60) + '鍒�' + item.param3 % 60 + '绉�' + }else{ + item.workTime = item.param3 + '绉�' + } }) this.pagination.total = res.total || 0 }, () => { -- Gitblit v1.9.3