|
@@ -345,11 +345,10 @@ class DiagnosticList extends Component {
|
|
const {showTipsDetails,tipsDetails,showAllName}=pushMessage;
|
|
const {showTipsDetails,tipsDetails,showAllName}=pushMessage;
|
|
const {visible, treatTitle, hasOndel, hasOnIndex,delItem} = this.state;
|
|
const {visible, treatTitle, hasOndel, hasOnIndex,delItem} = this.state;
|
|
const diagList = isTcm?tcmList:list;
|
|
const diagList = isTcm?tcmList:list;
|
|
- if(isTcm){ //中医
|
|
|
|
-
|
|
|
|
|
|
+ if(isTcm){ //中医,添加中医诊断后才显示中医症候添加按钮
|
|
return(
|
|
return(
|
|
<div className={style['diaglist-wrap']}>
|
|
<div className={style['diaglist-wrap']}>
|
|
- {diagList && (diagList.length > 0) && diagList.map((item, index) => {console.log(diagList,item)
|
|
|
|
|
|
+ {diagList && (diagList.length > 0) && diagList.map((item, index) => {
|
|
const {tcmDiag,tcmSyndrome} = item;
|
|
const {tcmDiag,tcmSyndrome} = item;
|
|
return (<div draggable={false} className={`${style['diag-box']} ${setFontColorSize(2,3)} clearfix`} id="diagListBox" key={index} >
|
|
return (<div draggable={false} className={`${style['diag-box']} ${setFontColorSize(2,3)} clearfix`} id="diagListBox" key={index} >
|
|
{index === 0 ? '' : <span className={style['diag-up']} onClick={() => {this.upDiagnostic(index)}}><img className={style["diag-up"]} src={diagUp}/></span>}
|
|
{index === 0 ? '' : <span className={style['diag-up']} onClick={() => {this.upDiagnostic(index)}}><img className={style["diag-up"]} src={diagUp}/></span>}
|
|
@@ -369,15 +368,15 @@ class DiagnosticList extends Component {
|
|
<input type="text" value={tcmSyndrome} onFocus={(e)=>{this.handleFocus()}} onBlur={(e)=>{this.handleBlur(e,item,index)}} onInput={(e)=>this.handleInput(e,index)}/>
|
|
<input type="text" value={tcmSyndrome} onFocus={(e)=>{this.handleFocus()}} onBlur={(e)=>{this.handleBlur(e,item,index)}} onInput={(e)=>this.handleInput(e,index)}/>
|
|
</span>
|
|
</span>
|
|
|
|
|
|
- </span>:<Add showText="添加中医症候" isTcm={isTcm} handleClick={this.handleSymShowSearch} id="addSymDiag" height="50px" />}
|
|
|
|
- <DiagResultSearch
|
|
|
|
|
|
+ </span>:(tcmDiag?<Add showText="添加中医症候" isTcm={isTcm} handleClick={this.handleSymShowSearch} id="addSymDiag" height="50px" />:'')}
|
|
|
|
+ {tcmDiag&&tcmSyndrome?'':<DiagResultSearch
|
|
refreshScroller={refreshScroller}
|
|
refreshScroller={refreshScroller}
|
|
setHighter={setHighter}
|
|
setHighter={setHighter}
|
|
windowHeight={windowHeight}
|
|
windowHeight={windowHeight}
|
|
pageTop={this.state.pageTop}
|
|
pageTop={this.state.pageTop}
|
|
isTcm={isTcm}
|
|
isTcm={isTcm}
|
|
height={150}>
|
|
height={150}>
|
|
- </DiagResultSearch>
|
|
|
|
|
|
+ </DiagResultSearch>}
|
|
{tcmDiag&&tcmSyndrome?<span className={style['treat']}
|
|
{tcmDiag&&tcmSyndrome?<span className={style['treat']}
|
|
onClick={() =>{this.showTreat(item, index)}}>
|
|
onClick={() =>{this.showTreat(item, index)}}>
|
|
<img src={item.hasTreat?singleB:singleL} alt=""/>
|
|
<img src={item.hasTreat?singleB:singleL} alt=""/>
|
|
@@ -399,7 +398,7 @@ class DiagnosticList extends Component {
|
|
cancel={this.cancel}
|
|
cancel={this.cancel}
|
|
close={this.close}
|
|
close={this.close}
|
|
>
|
|
>
|
|
- <div className={style['del-msg']}>是否删除诊断{delItem.name}?</div>
|
|
|
|
|
|
+ <div className={style['del-msg']}>是否删除中医诊断{delItem.tcmDiag}?</div>
|
|
</ConfirmModal>
|
|
</ConfirmModal>
|
|
<Loading show={loading}/>
|
|
<Loading show={loading}/>
|
|
</div>
|
|
</div>
|