|
@@ -2,8 +2,11 @@ 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 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){
|
|
@@ -16,9 +19,13 @@ class ModeChange extends Component {
|
|
|
return hideBtn?'':style['fade'];
|
|
|
}
|
|
|
render(){
|
|
|
- const {closeConfigModal, changeType, confirmType, mode,hideBtn} = this.props;
|
|
|
+ const {closeConfigModal, changeType, confirmType, config0,config1,config2,config3,config4,hideBtn} = this.props;
|
|
|
const domNode = document.getElementById('root');
|
|
|
- const isOpen = +mode===0;
|
|
|
+ const isOpen = +config0!==1;
|
|
|
+ const general = +config1!==1;
|
|
|
+ const ohis = +config2!==1;
|
|
|
+ const fontsize = +config3!==1;
|
|
|
+ const color = +config4!==1;
|
|
|
return ReactDom.createPortal(<React.Fragment>
|
|
|
<div className={style['modal']}>
|
|
|
<div className={style['shade']} onClick={closeConfigModal}></div>
|
|
@@ -27,16 +34,56 @@ class ModeChange extends Component {
|
|
|
<div className={style["oper"]}>
|
|
|
<p className={this.getStyle()}>
|
|
|
<span>开启模板智能推送:</span>
|
|
|
- <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType(isOpen?'1':'0'):null}>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config0',isOpen?'1':'0'):null}>
|
|
|
<img src={isOpen?sopen:sclose} alt=""/>
|
|
|
{isOpen?'开':'关'}
|
|
|
</a>
|
|
|
</p>
|
|
|
+ <p className={this.getStyle()}>
|
|
|
+ <span>开启一般情况默认值:</span>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config1',general?'0':'1'):null}>
|
|
|
+ <img src={general?sclose:sopen} alt=""/>
|
|
|
+ {general?'关':'开'}
|
|
|
+ </a>
|
|
|
+ </p>
|
|
|
+ <p className={this.getStyle()+" "+style['big-marb']}>
|
|
|
+ <span>开启开启其他史默认值:</span>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config2',ohis?'0':'1'):null}>
|
|
|
+ <img src={ohis?sclose:sopen} alt=""/>
|
|
|
+ {ohis?'关':'开'}
|
|
|
+ </a>
|
|
|
+ </p>
|
|
|
+ <p className={this.getStyle()}>
|
|
|
+ <span>默认字体大小:</span>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config3','0'):null}>
|
|
|
+ <img src={fontsize?radio_on:radio_off} alt=""/>
|
|
|
+ 标准
|
|
|
+ </a>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config3','1'):null}>
|
|
|
+ <img src={fontsize?radio_off:radio_on} alt=""/>
|
|
|
+ 增大
|
|
|
+ </a>
|
|
|
+ </p>
|
|
|
+ <p className={this.getStyle()}>
|
|
|
+ <span>默认字体颜色:</span>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config4','0'):null}>
|
|
|
+ <img src={color?radio_on:radio_off} alt=""/>
|
|
|
+ 标准
|
|
|
+ </a>
|
|
|
+ <a className={style['switch']} href="javascript:void(0)" onClick={hideBtn?()=>changeType('config4','1'):null}>
|
|
|
+ <img src={color?radio_off:radio_on} alt=""/>
|
|
|
+ 增黑
|
|
|
+ </a>
|
|
|
+ </p>
|
|
|
</div>
|
|
|
<div className={style["explain"]}>
|
|
|
<p>说明:</p>
|
|
|
- <p>1.该设置只针对问诊模块中的“主诉”、“现病史”、“其他史”功能;</p>
|
|
|
- <p>2.慢病模式下,该模板智能推送的设置功能不可使用。</p>
|
|
|
+ <p>1、智能推送模式只针对问诊模块中的“主诉”、“现病史”、“其他史”展示科室模版功能;</p>
|
|
|
+ <p>2、慢病模式下,该模版智能推送的设置功能不可用;</p>
|
|
|
+ <p>3、一般情况默认值:神清、精神可、胃纳可、睡眠可、二遍无殊、体重无明显减轻;</p>
|
|
|
+ <p>4、其他史默认值:既往史无殊、过敏史无殊、个人史无殊;</p>
|
|
|
+ <p>5、标准字号:</p>
|
|
|
+ <p>6、标准字体颜色:</p>
|
|
|
</div>
|
|
|
{hideBtn?<div className={style['btn']} onClick={confirmType}><button>保存修改</button></div>:<div className={style['btn']} onClick={closeConfigModal}><button> 关闭 </button></div>}
|
|
|
</div>
|