Browse Source

feat:fix bugs

dev
zhaobing’ 1 year ago
parent
commit
938f573701
  1. 2
      api/app/lib/schedule/workOrder.js
  2. 4
      web/client/src/sections/projectGroup/containers/bigscreen.jsx

2
api/app/lib/schedule/workOrder.js

@ -94,6 +94,8 @@ module.exports = function (app, opts,ctx) {
}
}else{
console.log('未查询到数据')
}
}catch(error){
console.error('失败原因',error)

4
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) => {
<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.fromname}</div>
{c.name}</div>
<div style={{ textAlign: 'center', width: '25%', fontFamily: 'SourceHanSansCN-Regular', fontWeight: 400 }}>
{c.duration}h</div>
</div> : <></>

Loading…
Cancel
Save