Browse Source

feat:fix bugs

dev
zhaobing’ 1 year ago
parent
commit
b1b4ca2db2
  1. 4
      web/client/src/sections/projectGroup/containers/bigscreen.jsx

4
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).add(8, 'hours').format('YYYY-MM-DD HH'),duration:moment(v?.endTime).add(8, 'hours').diff(v?.startTime,'hours') })) || [])
}
})
@ -328,7 +328,7 @@ const Bigscreen = (props) => {
<div style={{ textAlign: 'center', width: '25%', fontFamily: 'SourceHanSansCN-Regular', color: '#2C66F3', fontWeight: 400 }}>
NO.{index + 1}</div>
<div title={c.fromname} style={{ textAlign: 'center', padding: '0 6px', width: '49%', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>
{c.name}({s.startTime})</div>
{c.name}({c.startTime})</div>
<div style={{ textAlign: 'center', width: '25%', fontFamily: 'SourceHanSansCN-Regular', fontWeight: 400 }}>
{c.duration}h</div>
</div> : <></>

Loading…
Cancel
Save