|
|
@@ -15,7 +15,7 @@ export default class ItemComp extends Component{
|
|
|
constructor(props){
|
|
|
super(props);
|
|
|
this.state = {
|
|
|
- showTime1:this.props.itemdata.inDate==null ? this.props.itemdata.outDate : this.props.itemdata.inDate,
|
|
|
+ showTime1:(this.props.itemdata.inDate==''||this.props.itemdata.inDate==null) ? this.props.itemdata.outDate : this.props.itemdata.inDate,
|
|
|
}
|
|
|
}
|
|
|
render(){
|
|
|
@@ -28,7 +28,7 @@ export default class ItemComp extends Component{
|
|
|
style={{height: '100%', justifyContent: 'center', alignItems: 'center'}}>
|
|
|
{this.props.isFirst ? <div style={{flex: 1}}></div>
|
|
|
: <div style={{background: '#E9E9E9', flex: '1', width: '2px'}}></div>}
|
|
|
- {this.props.itemdata.inDate == null ? <img className="mg-circle out_in" src={exit_img} alt=""/> :
|
|
|
+ {(this.props.itemdata.inDate==''||this.props.itemdata.inDate==null) ? <img className="mg-circle out_in" src={exit_img} alt=""/> :
|
|
|
<img className="mg-circle out_in" src={enter_img} alt=""/>
|
|
|
}
|
|
|
{this.props.isLast ? <div style={{flex: 1}}></div>
|