|
@@ -10,7 +10,7 @@ import allTableIcon from '@common/images/all-table.png';
|
|
|
import add from '@common/images/add-result.png';
|
|
|
import added from '@common/images/first.png';
|
|
|
import checkIcon from '@common/images/check.png';
|
|
|
-import {ComplexModal,ConfirmModal,MiniToast, Radio,CheckBtn} from '@commonComp';
|
|
|
+import {ComplexModal,ConfirmModal,MiniToast, Radio,CheckBtn,Footer} from '@commonComp';
|
|
|
import AssessResult from '@containers/AssessResult';
|
|
|
import ScaleTable from '@containers/ScaleTable';
|
|
|
import Notify from '@commonComp/Notify';
|
|
@@ -458,21 +458,21 @@ class ChronicInfo extends React.Component{
|
|
|
}
|
|
|
|
|
|
render(){
|
|
|
- const footer = <div className={style['footer']}>
|
|
|
- <span className={style['print']} onClick={this.onPrint}><img src={printIcon} alt=""/>打印</span>
|
|
|
- <span className={style['okBtn']} onClick={()=>this.handleSaveAssess()}>确定</span>
|
|
|
- </div>;
|
|
|
- const recFooter =<div className={style['footer']}>
|
|
|
- <span className={style['okBtn']} onClick={()=>this.handleSaveRecommend()}>确定</span>
|
|
|
- </div>;
|
|
|
- const scaleFooter = <div className={style['footer']}>
|
|
|
- <span className={style['print']} onClick={this.onPrint}><img src={printIcon} alt=""/>打印</span>
|
|
|
- <span className={style['okBtn']} onClick={()=>this.closeTable()}>确定</span>
|
|
|
- </div>;
|
|
|
+ const footer = <Footer print={true}
|
|
|
+ footText="确定"
|
|
|
+ handlePrint={this.onPrint}
|
|
|
+ handleConfirm={this.handleSaveAssess} />
|
|
|
+ const recFooter = <Footer print={false}
|
|
|
+ footText="确定"
|
|
|
+ handleConfirm={this.handleSaveRecommend}/>
|
|
|
+ const scaleFooter = <Footer print={true}
|
|
|
+ footText="确定"
|
|
|
+ handlePrint={this.onPrint}
|
|
|
+ handleConfirm={this.closeTable}/>
|
|
|
const {chronicMagItem,tableList,saveAssessInfos,chronicDesease,formulaResult,showHide} = this.props;
|
|
|
const {showAssess,isAssessConfirm,tableName,tableId,parentId,parentIndex,isRecommendConfirm,showRecommend,radioVal,possible} = this.state;
|
|
|
- return <div className={style["tips"]} style={{marginBottom:'15px'}}>
|
|
|
- <div className={`${style["tips-title"]} ${style["chronic"]}`}>
|
|
|
+ return <div className={style["tips"]}>
|
|
|
+ <div className={style["tips-title"]}>
|
|
|
<div className={style["tips-name"]}>
|
|
|
<img src={chronicPic} />
|
|
|
<h2>{chronicMagItem&&chronicMagItem.name||chronicDesease&&chronicDesease.name||'病情提示'}</h2>
|