瀏覽代碼

添加默认值

zhangxc 4 年之前
父節點
當前提交
e5eb3de7ea
共有 3 個文件被更改,包括 7 次插入4 次删除
  1. 3 3
      src/components/PushData/index.jsx
  2. 3 0
      src/components/PushData/index.less
  3. 1 1
      src/store/reducers/print.js

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

@@ -48,11 +48,11 @@ class PushData extends Component{
             {showPushData&&<div id="dragModalWrap" className={style['pushWrapper']} style={{right:(windowWidth-1200)/2+'px'}}>
                 {/* <div id="dragModalTitle"  className={style['pushDataTitle']}>朗通智能提醒 <span className={style['pushDataHide']} onClick={this.hidePushData}>收起</span></div> */}
                 <div className={style['pushDataTitle']}>朗通智能提醒 <span className={style['pushDataHide']} onClick={this.hidePushData}>收起</span></div>
-                {mrId&&<iframe id='embedPage'  src={url} frameborder="0" width="400" height="560"></iframe>}
-                {!mrId&&<div className={style['pushEmpty']}>
+                {hospitalId&&<iframe id='embedPage'  src={url} frameborder="0" width="400" height="560"></iframe>}
+                {!hospitalId&&<div className={style['pushEmpty']}>
                         <div className={style['pushEmptyBox']}>
                             <img className={style['pushEmptyImg']} src={pushEmpty} alt=""/>
-                            <p>等待内容输入中…</p>
+                            <p className={style['pushEmptyTxt']}>等待内容输入中…</p>
                         </div>
                 </div>}
 

+ 3 - 0
src/components/PushData/index.less

@@ -32,6 +32,9 @@
 .pushEmptyImg{
     width: 130px;
 }
+.pushEmptyTxt{
+    margin: 15px 0 0 0;
+}
 .pushWrapper{
     width:402px;
     // height:600px;

+ 1 - 1
src/store/reducers/print.js

@@ -12,7 +12,7 @@ const initState = {
   mrInfo:{
     update:0,
     mrId:'',
-    mode: ''
+    mode: 'plan_default'
   }
 };
 export default function(state = initState, action) {