2025-06-06 16:30:16 +08:00
|
|
|
import React,{useState} from 'react';
|
2025-05-28 15:09:02 +08:00
|
|
|
|
|
|
|
|
import Dialog from '@material-ui/core/Dialog';
|
|
|
|
|
import DialogContent from '@material-ui/core/DialogContent';
|
|
|
|
|
import DpPaperComponent from '../../../../layouts/mui/DpPaperCompanent';
|
|
|
|
|
import DpTabs from '../../../../layouts/mui/DpTabs';
|
|
|
|
|
import DpTab from '../../../../layouts/mui/DpTab';
|
|
|
|
|
import RzSearch from '../../components/RzSearch';
|
|
|
|
|
import DpAppBar from '../../../../layouts/mui/DpAppBar';
|
|
|
|
|
import DpBackgroundDrop from '../../../../layouts/mui/DpBackdrop';
|
|
|
|
|
import DpCloseButton from '../../../../layouts/mui/DpCloseButton';
|
|
|
|
|
import DrpSearch from '../../components/DrpSearch';
|
|
|
|
|
import DrpStAround from '../../components/DrpStAround';
|
|
|
|
|
import GqJcsj from '../../components/Hdjcsj'
|
|
|
|
|
import Table from './table'
|
2025-06-06 16:30:16 +08:00
|
|
|
import ModalView from './view'
|
|
|
|
|
import { makeStyles } from '@material-ui/core/styles';
|
2025-05-28 15:09:02 +08:00
|
|
|
function HDStDlg({ record, onClose }) {
|
2025-06-06 16:30:16 +08:00
|
|
|
const useStyles = makeStyles((theme) => ({
|
|
|
|
|
|
|
|
|
|
addButton: {
|
|
|
|
|
backgroundColor: '#1f6feb',
|
|
|
|
|
color: '#ffffff',
|
|
|
|
|
border: 'none',
|
|
|
|
|
padding: '0px 12px',
|
|
|
|
|
borderRadius: 6,
|
|
|
|
|
marginTop: 6,
|
|
|
|
|
marginRight:20,
|
|
|
|
|
height:35,
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
'&:hover': {
|
|
|
|
|
backgroundColor: '#388bfd',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}));
|
|
|
|
|
const classes = useStyles();
|
2025-05-28 15:09:02 +08:00
|
|
|
const [value, setValue] = React.useState(0);
|
2025-06-06 16:30:16 +08:00
|
|
|
const [visible, setVisible] = useState(false)
|
|
|
|
|
|
2025-05-28 15:09:02 +08:00
|
|
|
return (
|
|
|
|
|
<Dialog
|
|
|
|
|
open={true}
|
|
|
|
|
onClose={onClose}
|
|
|
|
|
maxWidth="xl"
|
|
|
|
|
style={{ borderRadius: 0 }}
|
|
|
|
|
PaperComponent={DpPaperComponent}
|
|
|
|
|
BackdropComponent={DpBackgroundDrop}
|
|
|
|
|
>
|
|
|
|
|
<div className="boxhead"></div>
|
|
|
|
|
<DialogContent style={{ padding: 0, width: '80rem', overflowX: 'hidden' }}>
|
|
|
|
|
<DpAppBar position="sticky">
|
|
|
|
|
<DpTabs value={value} indicatorColor="primary" onChange={(_, v) => setValue(v)}>
|
|
|
|
|
<DpTab label={record.res_nm+'-'+record.cd_nm} />
|
|
|
|
|
</DpTabs>
|
2025-06-06 16:30:16 +08:00
|
|
|
<button className={classes.addButton} onClick={()=>setVisible(true)}>所在断面浸润线</button>
|
2025-05-28 15:09:02 +08:00
|
|
|
<DpCloseButton onClick={onClose} />
|
|
|
|
|
</DpAppBar>
|
|
|
|
|
<div style={{ padding: '2rem', hminHeight: '50rem',maxHeight: '60rem' }}>
|
|
|
|
|
<Table/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</DialogContent>
|
|
|
|
|
<div className="boxfoot"></div>
|
2025-06-06 16:30:16 +08:00
|
|
|
<ModalView
|
|
|
|
|
open={visible}
|
|
|
|
|
onClose={() => setVisible(false)}
|
|
|
|
|
></ModalView>
|
2025-05-28 15:09:02 +08:00
|
|
|
</Dialog>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default React.memo(HDStDlg);
|