Browse Source

细节优化

master
liujiangyong 2 years ago
parent
commit
c01b35a4f8
  1. 6
      web/client/src/layout/containers/layout/index.js
  2. 4
      web/client/src/sections/shouye/containers/shouye.js

6
web/client/src/layout/containers/layout/index.js

@ -67,7 +67,7 @@ const LayoutContainer = props => {
dom.scrollTop = 0;
}
})
return (
<Layout id="layout">
<Layout.Header style={{ padding: 0 }}>
@ -100,10 +100,10 @@ const LayoutContainer = props => {
background: '#F2F3F5'
}}>
<div style={{ minWidth: 520 }}>
<div style={{ padding: '0px 16px 4px', borderBottom: '1px solid #e8e8e8' }}>
<div style={{ padding: '0px 16px 4px' }}>
<Breadcrumbs routes={routes} />
</div>
<div style={{ paddingTop: 12 }}>
<div>
{children}
</div>
</div>

4
web/client/src/sections/shouye/containers/shouye.js

@ -29,7 +29,6 @@ const Information = (props) => {
useEffect(() => {
dispatch(getPatrolPlan()).then(async (res) => {
const res2 = await dispatch(patrolManage.records(`patrolRecord/all/${times[0]}/${times[1]}/null/null`))
console.log(res2, 'res2')
setshijiandata(res2?.payload?.data)
setxunjiandata(res2?.payload?.data.filter(i => parseInt(moment().format('YYYYMMDD')) === parseInt(moment(i.inspectionTime).format('YYYYMMDD'))))
let num = 0
@ -63,14 +62,11 @@ const Information = (props) => {
// &&moment(j.inspectionTim).month()===moment().month()).length<parseInt(i?.frequency?.match(/[\d.]/g).join(''))
}
})
console.log(num, 'count')
setplandata(num)
console.log(res, 'res')
calcChartData(res2?.payload?.data)
})
}, [])
console.log(xunjiandata, 'xunjiandata')
const calcChartData = (data) => {
let arr1 = [], arr2 = [], arr4 = []

Loading…
Cancel
Save