소스 검색

+症候bug

zhouna 4 년 전
부모
커밋
3bc27f8005
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/components/Diagnosis/index.jsx
  2. 1 0
      src/components/DiagnosticList/index.jsx

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

@@ -100,6 +100,7 @@ class Diagnosis extends Component {
         if (isTcm) {    //添加中医诊断后才显示中医症候添加按钮
             const len = tcmList.length>0?tcmList.length-1:0;
             const showNext = tcmList.length===0||(tcmList.length>0&&tcmList[len].tcmDiag&&tcmList[len].tcmSyndrome);
+            const showZh = tcmList.length>0&&tcmList[len].tcmDiag&&!tcmList[len].tcmSyndrome;
             return (<div id="diagnosisTcmResult">
                 <ItemBox id="tcmDiagnosis" title="中医诊断" boxHeight='auto' hideAllDrop={this.props.hideAllDrop}
                          titleTop='22px' marginTop='9px' backgroundColor='#EAF7FD'>
@@ -110,8 +111,6 @@ class Diagnosis extends Component {
                     {showNext?<div style={{marginLeft: '10px', position: 'relative', color: '#000'}}>
                         <Add showText="添加中医诊断结果" handleClick={this.handleTcmShowSearch} id="addTcmDiag"
                              height="50px"/>
-                            {tcmList.length&&tcmList[len].tcmDiag?<Add showText="添加中医症候" handleClick={this.handleSymShowSearch} id="addSymDiag"
-                             height="50px"/>:''}
                         <DiagResultSearch
                             refreshScroller={this.refreshScroller}
                             setHighter={this.props.setHighter}

+ 1 - 0
src/components/DiagnosticList/index.jsx

@@ -354,6 +354,7 @@ class DiagnosticList extends Component {
                             {index === 0 ? '' : <span className={style['diag-up']} onClick={() => {this.upDiagnostic(index)}}><img className={style["diag-up"]} src={diagUp}/></span>}
                             {diagList.length === 1 ? '' : index !== 0 ? '' : <span onClick={() => {this.downDiagnostic(index)}} className={style['diag-down']}><img className={style["diag-down"]} src={diagDown}/></span>}
                             <span className={style['diag-number']} style={{fontWeight:index === 0 ?'bold':'normal'}}>{index === 0 ? '1' : index+1}</span>
+
                                 {tcmDiag?<span className={style['diag-name']}
                                   onMouseEnter={this.handleMouseEnterDrug.bind(this,index)}
                                   onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}