|  | @@ -1,4 +1,5 @@
 | 
	
		
			
				|  |  |  import { queryProject } from '@/services/diagnosticTec';
 | 
	
		
			
				|  |  | +import { UnityAction } from '@/utils/utils';
 | 
	
		
			
				|  |  |  import { useRequest } from '@umijs/max';
 | 
	
		
			
				|  |  |  import { useRef } from 'react';
 | 
	
		
			
				|  |  |  import Swiper from 'react-id-swiper';
 | 
	
	
		
			
				|  | @@ -10,13 +11,18 @@ const Projects = () => {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    const { data: projectList } = useRequest(queryProject, {
 | 
	
		
			
				|  |  |      formatResult: (res) => {
 | 
	
		
			
				|  |  | -      return res?.data?.list?.filter((item) => item?.Stage == 3);
 | 
	
		
			
				|  |  | +      // return res?.data?.list?.filter((item) => item?.Stage == 3);
 | 
	
		
			
				|  |  | +      var list = [];
 | 
	
		
			
				|  |  | +      res.data.forEach((item) => {
 | 
	
		
			
				|  |  | +        list = list.concat(item.List);
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +      return list;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    });
 | 
	
		
			
				|  |  |    const params = {
 | 
	
		
			
				|  |  |      slidesPerView: 'auto',
 | 
	
		
			
				|  |  |      freeMode: true,
 | 
	
		
			
				|  |  | -    spaceBetween: 30,
 | 
	
		
			
				|  |  | +    spaceBetween: 50,
 | 
	
		
			
				|  |  |    };
 | 
	
		
			
				|  |  |    const goNext = () => {
 | 
	
		
			
				|  |  |      if (ref.current !== null && ref.current.swiper !== null) {
 | 
	
	
		
			
				|  | @@ -29,6 +35,11 @@ const Projects = () => {
 | 
	
		
			
				|  |  |        ref.current.swiper.slidePrev();
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    };
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  const toProject = (item) => {
 | 
	
		
			
				|  |  | +    UnityAction.sendMsg('project', JSON.stringify(item));
 | 
	
		
			
				|  |  | +  };
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |    return (
 | 
	
		
			
				|  |  |      <div className={styles.main}>
 | 
	
		
			
				|  |  |        <div className={styles.titleCon}>
 | 
	
	
		
			
				|  | @@ -41,7 +52,7 @@ const Projects = () => {
 | 
	
		
			
				|  |  |        <div className={styles.swiper}>
 | 
	
		
			
				|  |  |          <Swiper {...params} ref={ref}>
 | 
	
		
			
				|  |  |            {projectList?.map((item) => (
 | 
	
		
			
				|  |  | -            <div>
 | 
	
		
			
				|  |  | +            <div key={item.ProjectId} onClick={() => toProject(item)}>
 | 
	
		
			
				|  |  |                <div className={styles.swiperItem}>
 | 
	
		
			
				|  |  |                  <div
 | 
	
		
			
				|  |  |                    className={styles.pic}
 | 
	
	
		
			
				|  | @@ -55,7 +66,8 @@ const Projects = () => {
 | 
	
		
			
				|  |  |                      <div className={styles.line} />
 | 
	
		
			
				|  |  |                      <div className={styles.valueCon}>
 | 
	
		
			
				|  |  |                        <span className={styles.value}>
 | 
	
		
			
				|  |  | -                        2347<span className={styles.valueCon}>m3/h</span>
 | 
	
		
			
				|  |  | +                        {item.WaterIn}
 | 
	
		
			
				|  |  | +                        <div className={styles.valueCon}>m3/h</div>
 | 
	
		
			
				|  |  |                        </span>
 | 
	
		
			
				|  |  |                        <div>进水流量</div>
 | 
	
		
			
				|  |  |                      </div>
 | 
	
	
		
			
				|  | @@ -64,7 +76,8 @@ const Projects = () => {
 | 
	
		
			
				|  |  |                      <div className={styles.line} />
 | 
	
		
			
				|  |  |                      <div className={styles.valueCon}>
 | 
	
		
			
				|  |  |                        <span className={styles.value}>
 | 
	
		
			
				|  |  | -                        2347<span className={styles.valueCon}>m3/h</span>
 | 
	
		
			
				|  |  | +                        {item.WaterOut}
 | 
	
		
			
				|  |  | +                        <div className={styles.valueCon}>m3/h</div>
 | 
	
		
			
				|  |  |                        </span>
 | 
	
		
			
				|  |  |                        <div>进水流量</div>
 | 
	
		
			
				|  |  |                      </div>
 |