|
@@ -29,17 +29,13 @@ class PushData extends Component{
|
|
|
togglePushData()
|
|
|
}
|
|
|
componentWillReceiveProps(next){
|
|
|
- // if(next.update!=this.props.update){
|
|
|
- this.setState({
|
|
|
- hashNum:Math.random()
|
|
|
- });
|
|
|
- // }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
render(){
|
|
|
const {hashNum } = this.state
|
|
|
const {mrId,planCode,showPushData,togglePushData ,windowWidth,windowHeight,hospitalId} = this.props
|
|
|
- const url =`${pushPage2}?mrId=${mrId=="reStart" ? '':mrId}&planCode=${planCode}&hospitalId=${hospitalId}`;
|
|
|
+ const url =`${pushPage2}?mrId=${mrId.indexOf("reStart") > - 1?"":mrId}&planCode=${planCode}&hospitalId=${hospitalId}${mrId.indexOf("reStart") > - 1 ? '&reStart='+Math.random():""}`;
|
|
|
return <div >
|
|
|
{!showPushData&&<div className={style['slideButton']} style={{right:(windowWidth-1200)/2+'px'}} onClick={this.showPushData}>
|
|
|
朗通智能提醒
|