luolei 4 years ago
parent
commit
bc55a350cf

+ 7 - 1
src/components/PatInfo/index.jsx

@@ -35,6 +35,12 @@ class PatInfo extends Component {
       }
     });
   }
+  componentWillReceiveProps(nextProps){
+    const {patientName,sex,patientAge} = nextProps.patInfo.message;
+    if(!patientName&&!sex&&!patientAge){
+      this.setState({cover:true})
+    }
+  }
   handleName(e){
     let value = e.target.value
     const { setParams } = this.props;
@@ -140,7 +146,7 @@ class PatInfo extends Component {
         <td key='3' className={`${style.tdBorderB} ${style.tdBorderR} ${style.tdBorderTwo}`}>
           <span className={style['title']}>年龄:</span>
           <input type="text" className={style['age']} style={{"borderColor":reg?'#FF545B':'#E6E6E6'}} placeholder="请输入" onChange={(e)=>this.handleAge(e)} value={message.patientAge}/>
-          <i style={{color:reg?'#FF545B':'#999999'}}>* 请输入1-150以内的整数</i>
+          <i style={{color:reg?'#FF545B':'#999999',display:reg?'block':'none'}}>* 请输入1-150以内的整数</i>
         </td>
         <td key='2' className={`${style.tdBorderB} ${style.tdBorderR} ${style.tdBorderThree}`}>
           <span className={style['title']}>性别:</span>

+ 1 - 1
src/components/PushItems/index.jsx

@@ -253,7 +253,7 @@ class PushItems extends Component {
               </h1>
               <div  className={style["contentBox"]}>
                 {assay.length === 0 && check.length === 0 ? (
-                  <span>无</span>
+                  <span style={{padding:"6px 0",display:"inline-block"}}>无</span>
                 ) : (<ul>
                      <RecommendInspect
                       title = '化验'

+ 1 - 1
src/store/actions/typeConfig.js

@@ -27,7 +27,7 @@ export const setReadMode=(state,action)=>{
   const res=Object.assign({},state);
   res.readMode = action.readMode||(action.readConfig&&action.readConfig[0]);
   if(action.readConfig){
-    res.readConfig = action.readConfig;
+    res.readConfig = 1||action.readConfig;
   }
   res.isPreIcss = action.isPreIcss||false
   return res;

+ 2 - 1
src/utils/config.js

@@ -8,7 +8,8 @@ const host='http://192.168.2.241:5050';//后端接口访问地址
 //const host='http://192.168.2.164:8080';
 // const host='http://192.168.3.117:5050'; //周铁刚
 // const newIcssVisitUrl = '223.93.170.82:13000';    //icss服务访问地址(跳转目的地),不能加http://
-const imageUrlPrefix = 'http://223.93.170.82:12282';
+const imageUrlPrefix = 'http://192.168.2.241:12282';
+// const imageUrlPrefix = 'http://223.93.170.82:12282';
 module.exports={
     host,
     prefix:'/api/icss',            //带权限验证的api