|
@@ -19,7 +19,7 @@ import ScaleTable from '../ScaleTable';
|
|
|
/***
|
|
|
慢病右侧推送模块规则:
|
|
|
慢病--显示慢病名称以及管理和评估
|
|
|
-普通病--显示主诊断的名称,不显示管理和评估,显示量表按钮
|
|
|
+普通病--不显示管理和评估和量表按钮
|
|
|
明细--量表-计算公式-核心指标
|
|
|
controlType:0-radio 1-checkbox 2-text 3-dropdownlist
|
|
|
**/
|
|
@@ -59,9 +59,17 @@ class ChronicInfo extends React.Component{
|
|
|
}
|
|
|
}
|
|
|
showInfo(id){//显示静态知识
|
|
|
- this.setState({
|
|
|
+ // 静态知识显示在提示信息里(4-18)
|
|
|
+ const {getInfomation} = this.props;
|
|
|
+ const param = {
|
|
|
+ // id:id,
|
|
|
+ id:40738,
|
|
|
+ type:22,
|
|
|
+ }
|
|
|
+ getInfomation&&getInfomation(param);
|
|
|
+ /*this.setState({
|
|
|
infoId:id
|
|
|
- })
|
|
|
+ })*/
|
|
|
}
|
|
|
closeInfo(){//关闭静态知识
|
|
|
this.setState({
|
|
@@ -145,13 +153,13 @@ class ChronicInfo extends React.Component{
|
|
|
<img src={infoPic} className={style["infoPic"]} onClick={this.showInfo.bind(this,v.id)}/>
|
|
|
:
|
|
|
</p>
|
|
|
- <MiniToast title='静态知识'
|
|
|
+ {/*<MiniToast title='静态知识'
|
|
|
icon={allTableIcon}
|
|
|
show={infoId&&infoId==v.id?true:false}
|
|
|
close={this.closeInfo}>
|
|
|
{pureText}
|
|
|
- </MiniToast>
|
|
|
- {v.details.map((it,j)=>{
|
|
|
+ </MiniToast>*/}
|
|
|
+ {v.details&&v.details.map((it,j)=>{
|
|
|
if(it.type==1){
|
|
|
return <p>
|
|
|
<span className={style["listName"]} onClick={this.showTable.bind(this,it.content)}>{'【'+it.content.name+'】'}</span>
|
|
@@ -261,10 +269,10 @@ class ChronicInfo extends React.Component{
|
|
|
<div className={`${style["tips-title"]} ${style["chronic"]}`}>
|
|
|
<div className={style["tips-name"]}>
|
|
|
<img src={chronicPic} />
|
|
|
- <h2>{chronicMagItem&&chronicMagItem.name||'冠状动脉'}</h2>
|
|
|
+ <h2>{chronicMagItem&&chronicMagItem.name||chronicDesease&&chronicDesease.name||'推荐信息'}</h2>
|
|
|
<span className={style["redTips"]}>(页面信息有更新可能影响评估结果)</span>
|
|
|
</div>
|
|
|
- <div className={style["tips-btn"]}>
|
|
|
+ <div className={style["tips-btn"]} style={{display:chronicMagItem&&chronicMagItem.name||chronicDesease&&chronicDesease.name?'block':'none'}}>
|
|
|
<span
|
|
|
className={style["tipsDetails"]}
|
|
|
style={{width:'70px'}}
|
|
@@ -272,9 +280,7 @@ class ChronicInfo extends React.Component{
|
|
|
>
|
|
|
管理和评估
|
|
|
</span>
|
|
|
- {/*<span className={style["tipsDetails"]} onClick={() => this.showTableList(chronicMagItem&&chronicMagItem.id)}>量表
|
|
|
- </span>*/}
|
|
|
- <span className={style["tipsDetails"]} onClick={() => this.showTableList(chronicDesease&&chronicDesease.id)}>量表
|
|
|
+ <span className={style["tipsDetails"]} onClick={() => this.showTableList(chronicDesease&&chronicDesease.id||chronicMagItem&&chronicMagItem.id)}>量表
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|