import React from "react"; import style from "../index.less"; import check_circle from '../img/check-circle.png'; import check_right from '../img/check-right.png'; import {getStatusImg} from '@utils/tools'; class WrapModalTableSon extends React.Component { constructor(props) { super(props); this.getImgPath = this.getImgPath.bind(this) } getImgPath(name,groupName,item){ const { checkedList,selectOneCheck } = this.props; let num = 0; for(let k = 0;k < checkedList.length;k++){ let tmpLis = checkedList[k]; if(tmpLis == name){ return selectOneCheck(name,groupName,item)} src={check_right} alt="" /> }else{ ++num } } if(num == checkedList.length){ return selectOneCheck(name,groupName,item)} src={check_circle} alt="" /> } } render() { const { hospitalSonInspect,allCheck,btnMsg,selectWaring,allCheckImportIns } = this.props; return
组名称 : {hospitalSonInspect.groupName}{btnMsg}
全选 编号 项目名称 结果 单位 参考值 5?'':'none'}}>
{/* {type-0正常1异常2上升3下降} */} { hospitalSonInspect && hospitalSonInspect.lisExcelWrapper && hospitalSonInspect.lisExcelWrapper.map((item, idx) => { return }) }
{ this.getImgPath(item.itemName,hospitalSonInspect.groupName,item) } {idx+1} {item.itemName} { getStatusImg(item.type,item.value,1) } {item.unit} {item.min}-{item.max}
} } export default WrapModalTableSon;