Explorar el Código

参数带hospitalId

zhangxc hace 4 años
padre
commit
598c136b64
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 2 2
      src/components/PushData/index.jsx
  2. 1 0
      src/containers/PushDataContainer.js

+ 2 - 2
src/components/PushData/index.jsx

@@ -37,9 +37,9 @@ class PushData extends Component{
 
     render(){
         const {hashNum } = this.state
-        const {mrId,planCode,showPushData,togglePushData ,windowWidth,windowHeight} = this.props
+        const {mrId,planCode,showPushData,togglePushData ,windowWidth,windowHeight,hospitalId} = this.props
         console.log(windowWidth,windowHeight)
-        const url =`${pushPage2}?mrId=${mrId}&planCode=${planCode}`;
+        const url =`${pushPage2}?mrId=${mrId}&planCode=${planCode}&hospitalId=${hospitalId}`;
         return <div >
             {!showPushData&&<div className={style['slideButton']} style={{right:(windowWidth-1200)/2+'px'}} onClick={this.showPushData}> 
                 朗通智能提醒 

+ 1 - 0
src/containers/PushDataContainer.js

@@ -13,6 +13,7 @@ function mapStateToProps(state){
         planCode:mrInfo.mode,
         windowHeight:state.homePage.windowHeight,
         windowWidth:state.homePage.windowWidth,
+        hospitalId:state.historyTemplates.HospitalInfo.id
     }
 }