瀏覽代碼

参数带hospitalId

zhangxc 4 年之前
父節點
當前提交
598c136b64
共有 2 個文件被更改,包括 3 次插入2 次删除
  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
     }
 }