import React, { Component } from "react"; import style from "./index.less"; import ReactDom from "react-dom"; import close from '@images/icon_close.png'; import sopen from '@images/btn-open.png'; import sclose from '@images/btn-closed.png'; import radio_off from '@images/icon-radio-default.png'; import radio_on from '@images/icon-radio-active.png'; class ModeChange extends Component { constructor(props){ super(props); this.getStyle=this.getStyle.bind(this); } getStyle(flag){ const {hideBtn,config0} = this.props; if(flag===1&&config0!==0){ return style['fade']; } return hideBtn?'':style['fade']; } render(){ const {closeConfigModal, changeType, confirmType, config0,config1,config2,config3,config4,hideBtn} = this.props; const domNode = document.getElementById('root'); const isOpen = config0===0; const general = +config1!==1; const ohis = +config2!==1; const fontsize = +config3!==1; const color = +config4!==1; return ReactDom.createPortal(
设置

选择模式: changeType('config0',0):null}> 智能模板推送 changeType('config0',1):null}> 非智能模板推送 changeType('config0',2):null}> 自由文本输入

开启一般情况默认值: changeType('config1',general?1:0):null}> {general?'关':'开'}

开启其他史默认值: changeType('config2',ohis?1:0):null}> {ohis?'关':'开'}

默认字体大小: changeType('config3',0):null}> 标准 changeType('config3',1):null}> 增大

默认字体颜色: changeType('config4',0):null}> 标准 changeType('config4',1):null}> 增黑

说明:

1、智能推送模式只针对问诊模块中的“主诉”、“现病史”、“其他史”展示科室模版功能;

2、慢病模式下,该模版智能推送的设置功能不可用;

3、一般情况默认值:神清、精神可、胃纳可、睡眠可、二遍无殊、体重无明显减轻;

4、其他史默认值:既往史无殊、过敏史无殊、个人史无殊;

5、病历书写模块,字体大小标准为14px,增大为18px;

6、病历书写模块,字体颜色标准为灰黑色,增黑为全黑色;

{hideBtn?
:
}
,domNode) } } export default ModeChange;