|  | @@ -1,7 +1,7 @@
 | 
	
		
			
				|  |  |  import ModuleTitle from '@/components/ManagementPage/moduleTitle';
 | 
	
		
			
				|  |  |  import { getDumuDetail } from '@/services/eqSelfInspection';
 | 
	
		
			
				|  |  |  import { connect, useModel, useParams, useRequest } from '@umijs/max';
 | 
	
		
			
				|  |  | -import { Checkbox, Col, Row, Spin, Table } from 'antd';
 | 
	
		
			
				|  |  | +import { Affix, Checkbox, Col, Row, Spin, Table } from 'antd';
 | 
	
		
			
				|  |  |  import { useEffect, useMemo, useState } from 'react';
 | 
	
		
			
				|  |  |  import styles from './PatrolReportDetail.less';
 | 
	
		
			
				|  |  |  import DosingFlowCom from './Table/DosingFlowCom';
 | 
	
	
		
			
				|  | @@ -97,80 +97,81 @@ function Detail(props) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    return (
 | 
	
		
			
				|  |  |      <Spin spinning={loading}>
 | 
	
		
			
				|  |  | -      <div className={styles.card}>
 | 
	
		
			
				|  |  | -        <Row>
 | 
	
		
			
				|  |  | -          <Col span={24} className={styles.cardText}>
 | 
	
		
			
				|  |  | -            自检时间:{data?.CreatedTime}
 | 
	
		
			
				|  |  | -          </Col>
 | 
	
		
			
				|  |  | -        </Row>
 | 
	
		
			
				|  |  | -        <Row>
 | 
	
		
			
				|  |  | -          <Col span={10} className={styles.cardText}>
 | 
	
		
			
				|  |  | -            自检路线:{data?.RouteInfo?.Name}
 | 
	
		
			
				|  |  | -          </Col>
 | 
	
		
			
				|  |  | -          <Col span={8} className={styles.cardText}>
 | 
	
		
			
				|  |  | -            工艺段:{data?.RouteInfo?.GroupID}
 | 
	
		
			
				|  |  | -          </Col>
 | 
	
		
			
				|  |  | -        </Row>
 | 
	
		
			
				|  |  | -        <Row>
 | 
	
		
			
				|  |  | -          {result.map((item, index) => (
 | 
	
		
			
				|  |  | -            <Col span={index == 0 ? 10 : 7} className={styles.cardText}>
 | 
	
		
			
				|  |  | -              {index == 0 && '自检结果:'}
 | 
	
		
			
				|  |  | -              {item.label}-
 | 
	
		
			
				|  |  | -              <span style={{ color: item.color }}>{item.value}</span>
 | 
	
		
			
				|  |  | +      <Affix>
 | 
	
		
			
				|  |  | +        <div className={styles.card}>
 | 
	
		
			
				|  |  | +          <Row>
 | 
	
		
			
				|  |  | +            <Col span={24} className={styles.cardText}>
 | 
	
		
			
				|  |  | +              自检时间:{data?.CreatedTime}
 | 
	
		
			
				|  |  |              </Col>
 | 
	
		
			
				|  |  | -          ))}
 | 
	
		
			
				|  |  | -        </Row>
 | 
	
		
			
				|  |  | -      </div>
 | 
	
		
			
				|  |  | -      <div>
 | 
	
		
			
				|  |  | -        <Checkbox.Group
 | 
	
		
			
				|  |  | -          onChange={(check) => {
 | 
	
		
			
				|  |  | -            // 未勾选则认为全部显示
 | 
	
		
			
				|  |  | -            if (check.length == 0) {
 | 
	
		
			
				|  |  | -              setStatusCheck([1, 2, 3]);
 | 
	
		
			
				|  |  | -            } else {
 | 
	
		
			
				|  |  | -              setStatusCheck(check);
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          }}
 | 
	
		
			
				|  |  | -          style={{
 | 
	
		
			
				|  |  | -            width: '70%',
 | 
	
		
			
				|  |  | -            margin: '0 auto',
 | 
	
		
			
				|  |  | -            display: 'flex',
 | 
	
		
			
				|  |  | -            justifyContent: 'center',
 | 
	
		
			
				|  |  | -            marginBottom: '0.3rem',
 | 
	
		
			
				|  |  | -          }}
 | 
	
		
			
				|  |  | -        >
 | 
	
		
			
				|  |  | -          <Checkbox value={1}>异常数据</Checkbox>
 | 
	
		
			
				|  |  | -          <Checkbox value={2} style={{ margin: '0 0.5rem' }}>
 | 
	
		
			
				|  |  | -            警告数据
 | 
	
		
			
				|  |  | -          </Checkbox>
 | 
	
		
			
				|  |  | -          <Checkbox value={0}>正常数据</Checkbox>
 | 
	
		
			
				|  |  | -        </Checkbox.Group>
 | 
	
		
			
				|  |  | -        {/* 设备自检报告 */}
 | 
	
		
			
				|  |  | -        <DeviceReport
 | 
	
		
			
				|  |  | -          sendMessageToUnity={sendMessageToUnity}
 | 
	
		
			
				|  |  | -          select={select}
 | 
	
		
			
				|  |  | -          data={data}
 | 
	
		
			
				|  |  | -          userList={userList}
 | 
	
		
			
				|  |  | -          statusCheck={statusCheck}
 | 
	
		
			
				|  |  | -        />
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        {/* 工艺自检报告 */}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        <AalysisTable
 | 
	
		
			
				|  |  | -          onClickItem={sendMessageToUnity}
 | 
	
		
			
				|  |  | -          select={select}
 | 
	
		
			
				|  |  | -          data={data}
 | 
	
		
			
				|  |  | -          statusCheck={statusCheck}
 | 
	
		
			
				|  |  | -        />
 | 
	
		
			
				|  |  | -        {/* 安全自检报告 */}
 | 
	
		
			
				|  |  | -        <SecureReport
 | 
	
		
			
				|  |  | -          sendMessageToUnity={sendMessageToUnity}
 | 
	
		
			
				|  |  | -          select={select}
 | 
	
		
			
				|  |  | -          data={data}
 | 
	
		
			
				|  |  | -          userList={userList}
 | 
	
		
			
				|  |  | -          statusCheck={statusCheck}
 | 
	
		
			
				|  |  | -        />
 | 
	
		
			
				|  |  | -      </div>
 | 
	
		
			
				|  |  | +          </Row>
 | 
	
		
			
				|  |  | +          <Row>
 | 
	
		
			
				|  |  | +            <Col span={10} className={styles.cardText}>
 | 
	
		
			
				|  |  | +              自检路线:{data?.RouteInfo?.Name}
 | 
	
		
			
				|  |  | +            </Col>
 | 
	
		
			
				|  |  | +            <Col span={8} className={styles.cardText}>
 | 
	
		
			
				|  |  | +              工艺段:{data?.RouteInfo?.GroupID}
 | 
	
		
			
				|  |  | +            </Col>
 | 
	
		
			
				|  |  | +          </Row>
 | 
	
		
			
				|  |  | +          <Row>
 | 
	
		
			
				|  |  | +            {result.map((item, index) => (
 | 
	
		
			
				|  |  | +              <Col span={index == 0 ? 10 : 7} className={styles.cardText}>
 | 
	
		
			
				|  |  | +                {index == 0 && '自检结果:'}
 | 
	
		
			
				|  |  | +                {item.label}-
 | 
	
		
			
				|  |  | +                <span style={{ color: item.color }}>{item.value}</span>
 | 
	
		
			
				|  |  | +              </Col>
 | 
	
		
			
				|  |  | +            ))}
 | 
	
		
			
				|  |  | +          </Row>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +      </Affix>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      <Checkbox.Group
 | 
	
		
			
				|  |  | +        onChange={(check) => {
 | 
	
		
			
				|  |  | +          // 未勾选则认为全部显示
 | 
	
		
			
				|  |  | +          if (check.length == 0) {
 | 
	
		
			
				|  |  | +            setStatusCheck([1, 2, 3]);
 | 
	
		
			
				|  |  | +          } else {
 | 
	
		
			
				|  |  | +            setStatusCheck(check);
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        }}
 | 
	
		
			
				|  |  | +        style={{
 | 
	
		
			
				|  |  | +          width: '70%',
 | 
	
		
			
				|  |  | +          margin: '0 auto',
 | 
	
		
			
				|  |  | +          display: 'flex',
 | 
	
		
			
				|  |  | +          justifyContent: 'center',
 | 
	
		
			
				|  |  | +          marginBottom: '0.3rem',
 | 
	
		
			
				|  |  | +        }}
 | 
	
		
			
				|  |  | +      >
 | 
	
		
			
				|  |  | +        <Checkbox value={1}>异常数据</Checkbox>
 | 
	
		
			
				|  |  | +        <Checkbox value={2} style={{ margin: '0 0.5rem' }}>
 | 
	
		
			
				|  |  | +          警告数据
 | 
	
		
			
				|  |  | +        </Checkbox>
 | 
	
		
			
				|  |  | +        <Checkbox value={0}>正常数据</Checkbox>
 | 
	
		
			
				|  |  | +      </Checkbox.Group>
 | 
	
		
			
				|  |  | +      {/* 设备自检报告 */}
 | 
	
		
			
				|  |  | +      <DeviceReport
 | 
	
		
			
				|  |  | +        sendMessageToUnity={sendMessageToUnity}
 | 
	
		
			
				|  |  | +        select={select}
 | 
	
		
			
				|  |  | +        data={data}
 | 
	
		
			
				|  |  | +        userList={userList}
 | 
	
		
			
				|  |  | +        statusCheck={statusCheck}
 | 
	
		
			
				|  |  | +      />
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      {/* 工艺自检报告 */}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      <AalysisTable
 | 
	
		
			
				|  |  | +        onClickItem={sendMessageToUnity}
 | 
	
		
			
				|  |  | +        select={select}
 | 
	
		
			
				|  |  | +        data={data}
 | 
	
		
			
				|  |  | +        statusCheck={statusCheck}
 | 
	
		
			
				|  |  | +      />
 | 
	
		
			
				|  |  | +      {/* 安全自检报告 */}
 | 
	
		
			
				|  |  | +      <SecureReport
 | 
	
		
			
				|  |  | +        sendMessageToUnity={sendMessageToUnity}
 | 
	
		
			
				|  |  | +        select={select}
 | 
	
		
			
				|  |  | +        data={data}
 | 
	
		
			
				|  |  | +        userList={userList}
 | 
	
		
			
				|  |  | +        statusCheck={statusCheck}
 | 
	
		
			
				|  |  | +      />
 | 
	
		
			
				|  |  |      </Spin>
 | 
	
		
			
				|  |  |    );
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -353,7 +354,7 @@ function AalysisTable(props) {
 | 
	
		
			
				|  |  |            return (
 | 
	
		
			
				|  |  |              <div>
 | 
	
		
			
				|  |  |                {record.fix_plan.map((item) => (
 | 
	
		
			
				|  |  | -                <div style={{lineHeight: 1.8}}>
 | 
	
		
			
				|  |  | +                <div style={{ lineHeight: 1.8 }}>
 | 
	
		
			
				|  |  |                    {item.content}
 | 
	
		
			
				|  |  |                    <MandateBtn relationId={record.id} />
 | 
	
		
			
				|  |  |                  </div>
 |