Explorar el Código

清除清除回访时间

zhangxc hace 6 años
padre
commit
b8ae295393
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 1
      src/components/Advice/index.jsx
  2. 1 0
      src/store/actions/treat.js

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

@@ -93,7 +93,7 @@ class Advice extends Component{
             {/* {advice.commontreatment && <div className={style['treat-input']}  onInput={this.handleComTreatInput}  contentEditable={true} style = {{outline: 'none'}}></div>} */}
             {<Textarea value={advice.commontreatment} isRead={isRead} handleChangeAssistValue={this.handleComTreatInput} ></Textarea>}
         </div>}
-        {!isFirstMainDiag &&<div><FollowUp  noHeader="true" textStyle={{padding: '0 10px'}}  setFollowUp={saveFollowUp} followUp = {followUp} isRead={isRead}></FollowUp></div>}
+        {!isFirstMainDiag && followUp &&<div><FollowUp  noHeader="true" textStyle={{padding: '0 10px'}}  setFollowUp={saveFollowUp} followUp = {followUp} isRead={isRead}></FollowUp></div>}
         {advice.scheme && advice.scheme.length > 0 &&<div contentEditable='false' className={style['scheme']}>
           {advice.scheme && advice.scheme.length > 0  && <h1>治疗方案</h1>}
           {scheme}

+ 1 - 0
src/store/actions/treat.js

@@ -19,6 +19,7 @@ export const clearTreat = (state, action) => {
     res.treatment = [];
     res.adversReactionList=[];
     res.hasFollowUp = false;
+    res.followUp = '';
     return res
 }