|
@@ -35,10 +35,6 @@ class ChronicInfo extends React.Component{
|
|
|
formulaId:null, //计算公式
|
|
|
optionId:null, //可能结果,
|
|
|
isAssessConfirm:false, //是否点击评估弹窗确定按钮
|
|
|
- tableName:'' , //点击的量表名称
|
|
|
- tableId:null ,//点击的量表id
|
|
|
- parentId:null ,
|
|
|
- parentIndex:null,
|
|
|
radioVal:{}, //可能结果选择内容
|
|
|
possible:{}, //可能结果
|
|
|
formulaParam: {}, //量表计算公式计算入参
|
|
@@ -123,8 +119,8 @@ class ChronicInfo extends React.Component{
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
- showTable(it,parentId,parentIndex){
|
|
|
- const {formulaResult,scaleInfo} = this.props;
|
|
|
+ showTable(it){
|
|
|
+ const {scaleInfo} = this.props;
|
|
|
// 密西根糖尿病周围神经病评分(MDNS), id:40744
|
|
|
const item = {
|
|
|
id:it.id,
|
|
@@ -132,26 +128,17 @@ class ChronicInfo extends React.Component{
|
|
|
};
|
|
|
// 判断:store里已经有该量表就无需重新调接口
|
|
|
if(scaleInfo&&scaleInfo[it.id]){
|
|
|
- this.props.hideList({name:'showTable',value:true});
|
|
|
+ this.props.hideList({name:'showTable',value:true},it);
|
|
|
}else{
|
|
|
this.props.getScaleInfo(item);
|
|
|
}
|
|
|
|
|
|
this.setState({
|
|
|
- tableName:it.name,
|
|
|
- tableId:it.id,
|
|
|
- parentId:parentId,
|
|
|
- parentIndex:parentIndex,
|
|
|
formulaId:null, //关闭计算公式和可能结果弹窗
|
|
|
optionId:null
|
|
|
})
|
|
|
}
|
|
|
closeTable(){
|
|
|
- this.setState({
|
|
|
- tableName:'',
|
|
|
- tableId:null,
|
|
|
- parentId:null,
|
|
|
- })
|
|
|
this.props.hideList({name:'showTable',value:false});
|
|
|
}
|
|
|
showFormula(id){//计算公式
|
|
@@ -440,7 +427,6 @@ class ChronicInfo extends React.Component{
|
|
|
<span className={style['okBtn']} onClick={()=>this.closeTable()}>确定</span>
|
|
|
</div>;
|
|
|
const {chronicMagItem,tableList,chronicDesease,formulaResult,showHide} = this.props;
|
|
|
- const {tableName,tableId,parentId,parentIndex} = this.state;
|
|
|
return <div className={style["tips"]} style={{marginBottom:'15px'}}>
|
|
|
<div className={`${style["tips-title"]} ${style["chronic"]}`}>
|
|
|
<div className={style["tips-name"]}>
|
|
@@ -472,12 +458,12 @@ class ChronicInfo extends React.Component{
|
|
|
</ul>
|
|
|
</ConfirmModal>
|
|
|
{showHide&&showHide.showTable?<ComplexModal onclose={this.closeTable} footer={scaleFooter}
|
|
|
- title={tableName}
|
|
|
+ title={showHide.name}
|
|
|
icon={tableIcon}
|
|
|
top={20}
|
|
|
bottom={20}
|
|
|
width={820}>
|
|
|
- <ScaleTable title={tableName} tableId={tableId} parentId={parentId} parentIndex={parentIndex}></ScaleTable>
|
|
|
+ <ScaleTable title={showHide.name} tableId={showHide.id}></ScaleTable>
|
|
|
</ComplexModal>:''}
|
|
|
</div>
|
|
|
}
|