|
@@ -10,7 +10,7 @@ import allIcon from '@common/images/all-table.png';
|
|
|
import tableIcon from '@common/images/table.png';
|
|
|
import allTableIcon from '@common/images/all-table.png';
|
|
|
import checkIcon from '@common/images/check.png';
|
|
|
-import {ComplexModal} from '@commonComp';
|
|
|
+import {ComplexModal,ConfirmModal} from '@commonComp';
|
|
|
import AssessResult from '@containers/AssessResult';
|
|
|
import ScaleTable from '../ScaleTable';
|
|
|
|
|
@@ -62,6 +62,12 @@ class ChronicInfo extends React.Component{
|
|
|
})
|
|
|
}
|
|
|
showTable(){
|
|
|
+ // 密西根糖尿病周围神经病评分(MDNS) 为例
|
|
|
+ const item = {
|
|
|
+ id:40744,
|
|
|
+ name:'密西根糖尿病周围神经病评分(MDNS)'
|
|
|
+ }
|
|
|
+ this.props.getScaleInfo(item);
|
|
|
this.setState({
|
|
|
showTable:true
|
|
|
})
|
|
@@ -80,12 +86,13 @@ class ChronicInfo extends React.Component{
|
|
|
const {hideList} = this.props;
|
|
|
hideList&&hideList();
|
|
|
}
|
|
|
+
|
|
|
render(){
|
|
|
const footer = <div className={style['footer']}>
|
|
|
<span className={style['print']}><img src={printIcon} alt=""/>打印</span>
|
|
|
<span className={style['okBtn']}>确定</span>
|
|
|
</div>;
|
|
|
- const {chronicMagItem,showList,tableList} = this.props;
|
|
|
+ const {chronicMagItem,showList,tableList,scaleInfo} = this.props;
|
|
|
const {showInfo,showOption,showTable,showAssess} = this.state;
|
|
|
return <div className={style["tips"]} style={{marginBottom:'15px'}}>
|
|
|
<div className={`${style["tips-title"]} ${style["chronic"]}`}>
|
|
@@ -176,33 +183,31 @@ class ChronicInfo extends React.Component{
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- {showList?<ComplexModal onclose={this.close}
|
|
|
- title='全部量表'
|
|
|
- icon={allTableIcon}
|
|
|
- height={300}
|
|
|
- width={400}>
|
|
|
- <ul className={style['toast-cont']}>
|
|
|
- {tableList&&tableList.map((v,i)=>{
|
|
|
- return <li>
|
|
|
- <span>{'【'+v.name+'】'}</span>
|
|
|
- </li>
|
|
|
- })}
|
|
|
- </ul>
|
|
|
- </ComplexModal>:''}
|
|
|
- {showTable?<ComplexModal onclose={this.closeTable} footer={footer}
|
|
|
+ <ConfirmModal visible={showList} noFooter='true' title='全部量表' close={this.close} titleBg="#DFEAFE" icon={allTableIcon} height={300}>
|
|
|
+ <ul className={style['toast-cont']}>
|
|
|
+ {tableList&&tableList.map((v,i)=>{
|
|
|
+ return <li>
|
|
|
+ <span>{'【'+v.name+'】'}</span>
|
|
|
+ </li>
|
|
|
+ })}
|
|
|
+ </ul>
|
|
|
+ </ConfirmModal>
|
|
|
+ {showTable?<ComplexModal onclose={this.closeTable} footer={footer}
|
|
|
title='密西根糖尿病神经筛查表(MDNS)'
|
|
|
icon={tableIcon}
|
|
|
+ top={20}
|
|
|
+ bottom={20}
|
|
|
width={820}>
|
|
|
- <ScaleTable></ScaleTable>
|
|
|
- </ComplexModal>:''}
|
|
|
- {showAssess?<ComplexModal onclose={this.showAssessFn} footer={footer}
|
|
|
+ <ScaleTable data={scaleInfo}></ScaleTable>
|
|
|
+ </ComplexModal>:''}
|
|
|
+ {showAssess?<ComplexModal onclose={this.showAssessFn} footer={footer}
|
|
|
title='管理和评估'
|
|
|
icon={manageIcon}
|
|
|
top={20}
|
|
|
bottom={20}
|
|
|
width={820}>
|
|
|
- <AssessResult></AssessResult>
|
|
|
- </ComplexModal>:''}
|
|
|
+ <AssessResult></AssessResult>
|
|
|
+ </ComplexModal>:''}
|
|
|
</div>
|
|
|
}
|
|
|
}
|