From 938f5737011db3660a8b0de511c76358921eb3e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Fri, 22 Sep 2023 17:43:04 +0800 Subject: [PATCH] feat:fix bugs --- api/app/lib/schedule/workOrder.js | 2 ++ web/client/src/sections/projectGroup/containers/bigscreen.jsx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/app/lib/schedule/workOrder.js b/api/app/lib/schedule/workOrder.js index 607f810..dd2a6c1 100644 --- a/api/app/lib/schedule/workOrder.js +++ b/api/app/lib/schedule/workOrder.js @@ -94,6 +94,8 @@ module.exports = function (app, opts,ctx) { } + }else{ + console.log('未查询到数据') } }catch(error){ console.error('失败原因',error) diff --git a/web/client/src/sections/projectGroup/containers/bigscreen.jsx b/web/client/src/sections/projectGroup/containers/bigscreen.jsx index 2801d5a..f320dbb 100644 --- a/web/client/src/sections/projectGroup/containers/bigscreen.jsx +++ b/web/client/src/sections/projectGroup/containers/bigscreen.jsx @@ -154,7 +154,7 @@ const Bigscreen = (props) => { }) dispatch(actions.projectGroup.getWorkOrdersRepairRank({projectIds:query})).then(res=>{ if(res.success){ - setGroupProject(res.payload.data?.slice(0, 10).map(v => ({name:v.formname,duration:moment(v?.endTime).diff(v?.startTime,'hours') })) || []) + setGroupProject(res.payload.data?.slice(0, 10).map(v => ({name:v.formname,duration:moment(v?.endTime).add(8, 'hours').diff(v?.startTime,'hours') })) || []) } }) @@ -326,7 +326,7 @@ const Bigscreen = (props) => {
NO.{index + 1}
- {c.fromname}
+ {c.name}
{c.duration}h
: <>