Просмотр исходного кода

文本模式慢病复诊现病史不显示文字模板

zhouna 6 лет назад
Родитель
Сommit
c9fba6873c

+ 2 - 2
src/common/components/Textarea/index.jsx

@@ -21,9 +21,9 @@ class Textarea extends Component {
     this.handleKeydown = this.handleKeydown.bind(this);
   }
   handleFocus(){            //初始显示props中的值,focus已经显示输入的值,避免值更新闪烁
-    const {handleFocus,fuzhen,handleInput} = this.props;
+    const {handleFocus,fuzhen,handleInput,isChronic} = this.props;
     handleFocus&&handleFocus();         //其他史、查体获取数据的方法
-    if(fuzhen&&!(this.$dom.current.innerText?this.$dom.current.innerText:this.$dom.current.innerHTML)){
+    if(fuzhen&&!isChronic&&!(this.$dom.current.innerText?this.$dom.current.innerText:this.$dom.current.innerHTML)){
       const text = config.currentText.replace("(**)",fuzhen);
       this.$dom.current.innerText?(this.$dom.current.innerText = text):(this.$dom.current.innerHTML = text);
       handleInput&&handleInput({text});

+ 13 - 0
src/components/AssessResult/index.jsx

@@ -0,0 +1,13 @@
+import React, { Component } from "react";
+import style from "./index.less";
+
+class AssessResult extends Component{
+  constructor(props){
+    super(props);
+  }
+  render(){
+    return <div className={style['container']}>
+
+    </div>
+  }
+}

+ 0 - 0
src/components/AssessResult/index.less


+ 2 - 1
src/components/CurrentIll/index.jsx

@@ -142,7 +142,7 @@ class CurrentIll extends Component{
   }
 
   render(){
-    const {fuzhen,type,fetchPushInfos,handleInput,isRead,saveText,searchData,totalHide,showArr,focusIndex,editClear,data,boxLeft,boxTop} = this.props;
+    const {fuzhen,isChronic,type,fetchPushInfos,handleInput,isRead,saveText,searchData,totalHide,showArr,focusIndex,editClear,data,boxLeft,boxTop} = this.props;
     const {showMoudle,forbidInput,boxMark,show} = this.state;
     const searchFlag = searchData.length > 0 ? true : false;
 
@@ -151,6 +151,7 @@ class CurrentIll extends Component{
                         isRead={isRead}
                         value={saveText[0]}
                         fuzhen={fuzhen}
+                        isChronic={isChronic}
                         handlePush={fetchPushInfos}
                         handleInput={handleInput}/>;
     }

+ 1 - 0
src/containers/CurrentIll.js

@@ -41,6 +41,7 @@ function mapStateToProps(state) { //console.log(111,state);
         fuzhen:state.diagnosticList.mainSuitStr,//诊断第一个复诊值
         boxTop:state.homePage.boxTop,
         boxLeft:state.homePage.boxLeft,
+        isChronic:!!state.diagnosticList.chronicMagItem
 
     }
 }