Browse Source

feat:fix bugs

dev
zhaobing’ 1 year ago
parent
commit
63ebec2422
  1. 2
      web/client/src/sections/projectGroup/containers/bigscreen.jsx

2
web/client/src/sections/projectGroup/containers/bigscreen.jsx

@ -155,7 +155,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,startTime:moment(v?.startTime).add(8, 'hours').format('YYYY-MM-DD HH'),duration:moment(v?.endTime).add(8, 'hours').diff(v?.startTime,'hours') })) || [])
setGroupProject(res.payload.data?.slice(0, 10).map(v => ({name:v.formname,startTime:moment(v?.startTime).format('YYYY-MM-DD'),duration:moment(v?.endTime).add(8, 'hours').diff(v?.startTime,'hours') })) || [])
}
})

Loading…
Cancel
Save