From 8686d60ebf660beba39c65de3224dac3f41196fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Thu, 21 Sep 2023 15:23:12 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9Afix=20bugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/sections/projectGroup/containers/bigscreen.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/client/src/sections/projectGroup/containers/bigscreen.jsx b/web/client/src/sections/projectGroup/containers/bigscreen.jsx index e6f3f19..195e9d5 100644 --- a/web/client/src/sections/projectGroup/containers/bigscreen.jsx +++ b/web/client/src/sections/projectGroup/containers/bigscreen.jsx @@ -135,24 +135,24 @@ const Bigscreen = (props) => { } }, [mockData]) - +console.log('xxx1',actions) useEffect(() => { if(groupDetail?.pomsProjectIds&&groupDetail?.pomsProjectIds.length){ const query=groupDetail?.pomsProjectIds+'' - dispatch(actions.projectGroup.getProjectWorkOrders({projectIds:query}).then(res=>{ + dispatch(actions.projectGroup.getProjectWorkOrders({projectIds:query})).then(res=>{ if(res.success){ setProportion([...res.payload.data?.slice(0, 3)?.map(v => ({ name: pomsProjectBasicAll.find(item=>item.valiue===v.projectId)?.label, value: v.count })), { value: res.payload.data&&res.payload.data.length>3?res.payload.data?.slice(3)?.reduce((p,c)=>{ return p+c },0):0, name: '其它' }]) } - })) - dispatch(actions.projectGroup.getProjectWorkOrders({projectIds:query}).then(res=>{ + }) + dispatch(actions.projectGroup.getProjectWorkOrders({projectIds:query})).then(res=>{ if(res.success){ setGroupProject(res.payload.data?.slice(0, 10).map(v => ({name:v.formname,duration:v?.endTime.diff(v?.startTime,'hours') })) || []) } - })) + }) } },[groupDetail])