|
@@ -6,8 +6,12 @@ import {getStatusImg} from '@utils/tools';
|
|
|
|
|
|
class WrapModalTableSon extends React.Component {
|
|
class WrapModalTableSon extends React.Component {
|
|
constructor(props) {
|
|
constructor(props) {
|
|
- super(props)
|
|
|
|
|
|
+ super(props);
|
|
|
|
+ this.state = {
|
|
|
|
+ msg:'选中异常值数据'
|
|
|
|
+ }
|
|
this.getImgPath = this.getImgPath.bind(this)
|
|
this.getImgPath = this.getImgPath.bind(this)
|
|
|
|
+ this.selectWaring = this.selectWaring.bind(this)
|
|
}
|
|
}
|
|
getImgPath(name,groupName,item){
|
|
getImgPath(name,groupName,item){
|
|
const { checkedList,selectOneCheck } = this.props;
|
|
const { checkedList,selectOneCheck } = this.props;
|
|
@@ -24,11 +28,19 @@ class WrapModalTableSon extends React.Component {
|
|
return <img className={style.check} onClick={()=>selectOneCheck(name,groupName,item)} src={check_circle} alt="" />
|
|
return <img className={style.check} onClick={()=>selectOneCheck(name,groupName,item)} src={check_circle} alt="" />
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ selectWaring(){
|
|
|
|
+ let tmpMsg = this.state.msg
|
|
|
|
+ const { selectWaring } = this.props;
|
|
|
|
+ this.setState({
|
|
|
|
+ msg:tmpMsg=='选中异常值数据'?'取消选中异常值数据集':'选中异常值数据'
|
|
|
|
+ })
|
|
|
|
+ selectWaring&&selectWaring()
|
|
|
|
+ }
|
|
render() {
|
|
render() {
|
|
- const { hospitalSonInspect,allCheckImportIns,allCheck,selectWaring } = this.props;
|
|
|
|
|
|
+ const { hospitalSonInspect,allCheckImportIns,allCheck } = this.props;
|
|
return <div className={style['modalTable']}>
|
|
return <div className={style['modalTable']}>
|
|
<div className={style.sonTitle}>
|
|
<div className={style.sonTitle}>
|
|
- <span>组名称 : {hospitalSonInspect.groupName}</span><span className={style.btn} onClick={selectWaring}>选中异常值数据</span>
|
|
|
|
|
|
+ <span>组名称 : {hospitalSonInspect.groupName}</span><span className={style.btn} onClick={this.selectWaring}>{this.state.msg}</span>
|
|
</div>
|
|
</div>
|
|
<div className={`${style.SonTable}`}>
|
|
<div className={`${style.SonTable}`}>
|
|
<table>
|
|
<table>
|