index.jsx 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import React from "react";
  2. import style from "./index.less";
  3. import WrapModalTitle from "./WrapModalTitle";
  4. import WrapModalTable from "./WrapModalTable";
  5. import WrapModalTableSon from "./WrapModalTableSon";
  6. import WrapModalRight from "./WrapModalRight";
  7. import { dragBox } from '@utils/drag';
  8. class WrapModalBody extends React.Component {
  9. constructor(props) {
  10. super(props)
  11. }
  12. showInIcss(){
  13. const {showInIcss,closeInIcss} = this.props
  14. closeInIcss&&closeInIcss()
  15. showInIcss&&showInIcss();
  16. dragBox('previewWrapper', 'previewStatic', 'del')
  17. }
  18. render() {
  19. const { handleSearch, hospitalInspect,height,selectOneCheck, handleGetSonList,selectWaring,message, hospitalSonInspect,allCheckImportIns,allCheck,checkedList,selectGroupList } = this.props;
  20. return <div className={style['container']}>
  21. <div className={`${style.left}`}>
  22. <WrapModalTitle handleSearch={handleSearch} message={message}></WrapModalTitle>
  23. <WrapModalTable
  24. hospitalInspect={hospitalInspect}
  25. handleGetSonList={handleGetSonList}
  26. ></WrapModalTable>
  27. {
  28. hospitalSonInspect && hospitalSonInspect.lisExcelWrapper?
  29. <WrapModalTableSon
  30. allCheck={allCheck}
  31. checkedList={checkedList}
  32. selectWaring={selectWaring}
  33. allCheckImportIns={allCheckImportIns}
  34. selectOneCheck={selectOneCheck}
  35. selectGroupList={selectGroupList}
  36. hospitalSonInspect={hospitalSonInspect}
  37. ></WrapModalTableSon>:null
  38. }
  39. </div>
  40. <div className={`${style.right}`}>
  41. <WrapModalRight showInIcss={this.showInIcss.bind(this)} height={height} selectGroupList={selectGroupList}></WrapModalRight>
  42. </div>
  43. </div>
  44. }
  45. }
  46. export default WrapModalBody;