|  |  | @ -29,27 +29,35 @@ 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')))) | 
			
		
	
		
			
				
					|  |  |  |          const count = res?.payload?.data?.rows?.filter(i=>{ | 
			
		
	
		
			
				
					|  |  |  |             // console.log(i?.frequency?.match(/^[0-9]*$/),'jjj')
 | 
			
		
	
		
			
				
					|  |  |  |             if(i?.frequency.split('/')[i?.frequency.split('/').length-1]==='天'){ | 
			
		
	
		
			
				
					|  |  |  |                //  console.log(i?.frequency?.match(/[\d.]/g).join(''),'jjj')
 | 
			
		
	
		
			
				
					|  |  |  |                 return parseInt(moment().format('YYYYMMDD'))<=parseInt(moment(i.endTime).format('YYYYMMDD')) | 
			
		
	
		
			
				
					|  |  |  |                // console.log('是的',i?.frequency.split('/')[i?.frequency.split('/').length-1])
 | 
			
		
	
		
			
				
					|  |  |  |             }else if(i?.frequency.split('/')[i?.frequency.split('/').length-1]==='周'){     | 
			
		
	
		
			
				
					|  |  |  |                // console.log(i?.frequency?.match(/^[0-9]*$/),'jjj')
 | 
			
		
	
		
			
				
					|  |  |  |                 return parseInt(moment().format('YYYYMMDD'))<=parseInt(moment(i.endTime).format('YYYYMMDD'))&&res2?.payload?.data?.filter(j=>j.patrolPlanId===i.id | 
			
		
	
		
			
				
					|  |  |  |                   &&moment(j.inspectionTim).week()===moment().week()).length<parseInt(i?.frequency?.match(/[\d.]/g).join('')) | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |             else if(i?.frequency.split('/')[i?.frequency.split('/').length-1]==='月'){     | 
			
		
	
		
			
				
					|  |  |  |                // console.log(i?.frequency?.match(/^[0-9]*$/),'jjj')
 | 
			
		
	
		
			
				
					|  |  |  |                 return parseInt(moment().format('YYYYMMDD'))<=parseInt(moment(i.endTime).format('YYYYMMDD'))&&res2?.payload?.data?.filter(j=>j.patrolPlanId===i.id | 
			
		
	
		
			
				
					|  |  |  |                   &&moment(j.inspectionTim).month()===moment().month()).length<parseInt(i?.frequency?.match(/[\d.]/g).join('')) | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |          }) | 
			
		
	
		
			
				
					|  |  |  |          console.log(count,'count') | 
			
		
	
		
			
				
					|  |  |  |          setplandata(count) | 
			
		
	
		
			
				
					|  |  |  |          console.log(res,'res') | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |          calcChartData(res2?.payload?.data) | 
			
		
	
		
			
				
					|  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |    },[]) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |    console.log(xunjiandata,'xunjiandata') | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |    const calcChartData = (data) => { | 
			
		
	
		
			
				
					|  |  |  |       let arr = [] | 
			
		
	
	
		
			
				
					|  |  | 
 |