index.jsx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import React from "react";
  2. import style from "../index.less";
  3. const WrapModalTable = (props) => {
  4. const { hospitalInspect, handleGetSonList } = props;
  5. return <div className={style['modalTable']}>
  6. <div className={style.tablePubP}>
  7. <table>
  8. <tr className={style.head}>
  9. <td className={`${style.fst} ellipsOver`}>编号</td>
  10. <td className={`${style.sec} ellipsOver`}>标本类型</td>
  11. <td className={`${style.trd} ellipsOver`}>组名称</td>
  12. <td className={`${style.four} ellipsOver`}>送检医生</td>
  13. <td className={`${style.fif} ellipsOver`}>送检时间</td>
  14. <td className={`${style.six} ellipsOver`}>报告时间</td>
  15. <td className={`${style.sev} ellipsOver`} style={{display:hospitalInspect.length>5?'':'none'}}></td>
  16. </tr>
  17. </table>
  18. </div>
  19. <div className={`${style.parentTable} ${style.tablePubP}`}>
  20. <table>
  21. {
  22. hospitalInspect && hospitalInspect.map((item, idx) => {
  23. return <tr onClick={() => handleGetSonList(item.groupName)}>
  24. <td className={`${style.fst} ellipsOver`}>{idx+1}</td>
  25. <td title={item.specimenType} className={`${style.sec} ellipsOver`}>{item.specimenType}</td>
  26. <td title={item.groupName} className={`${style.trd} ellipsOver`}>{item.groupName}</td>
  27. <td title={item.inspectDoctor} className={`${style.four} ellipsOver`}>{item.inspectDoctor}</td>
  28. <td title={item.inspectTime} className={`${style.fif} ellipsOver`}>{item.inspectTime}</td>
  29. <td title={item.reportTime} className={`${style.six} ellipsOver`}>{item.reportTime}</td>
  30. </tr>
  31. })
  32. }
  33. </table>
  34. </div>
  35. </div>
  36. }
  37. export default WrapModalTable;