|
@@ -23,7 +23,8 @@ class PushItems extends Component {
|
|
|
|
|
|
this.state = {
|
|
|
moreAssay: false,
|
|
|
- moreCheck: false
|
|
|
+ moreCheck: false,
|
|
|
+ showTableInfo:true
|
|
|
};
|
|
|
|
|
|
this.showMore = this.showMore.bind(this);
|
|
@@ -135,9 +136,11 @@ class PushItems extends Component {
|
|
|
const { hideTipsDetailsModal } = this.props;
|
|
|
hideTipsDetailsModal && hideTipsDetailsModal()
|
|
|
}
|
|
|
- showTableList(item){
|
|
|
- const {chronicMagItem,getTableList} = this.props;
|
|
|
- getTableList(chronicMagItem.id);
|
|
|
+
|
|
|
+ // 量表部分
|
|
|
+ showTableList(item){//量表
|
|
|
+ const {chronicMagItem,getTableList,questionId} = this.props;
|
|
|
+ getTableList(questionId&&questionId.id);
|
|
|
}
|
|
|
confirm(){
|
|
|
const {hideList} = this.props;
|
|
@@ -147,6 +150,40 @@ class PushItems extends Component {
|
|
|
const {hideList} = this.props;
|
|
|
hideList&&hideList();
|
|
|
}
|
|
|
+ showManage(){//管理和评估
|
|
|
+ console.log("点击了管理和评估");
|
|
|
+ }
|
|
|
+ getTableInfo(){//整个量表模块
|
|
|
+ const {tips} = this.props.pushMessage;
|
|
|
+ let info =
|
|
|
+ <div className={style["tips"]} style={{marginBottom:'15px'}}>
|
|
|
+ <div className={style["tips-title"]}>
|
|
|
+ <div className={style["tips-name"]}>
|
|
|
+ <h2>{tips.tagName||'冠状动脉'}</h2>
|
|
|
+ <span className={style["redTips"]}>(页面信息有更新可能影响评估结果)</span>
|
|
|
+ </div>
|
|
|
+ <div className={style["tips-btn"]}>
|
|
|
+ <span
|
|
|
+ className={style["tipsDetails"]}
|
|
|
+ style={{width:'70px'}}
|
|
|
+ onClick={() => this.showManage(tips)}
|
|
|
+ >
|
|
|
+ 管理和评估
|
|
|
+ </span>
|
|
|
+ <span
|
|
|
+ className={style["tipsDetails"]}
|
|
|
+ onClick={() => this.showTableList(tips)}
|
|
|
+ >
|
|
|
+ 量表
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div className={style["content"]}>
|
|
|
+ 这里放置量表列表
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ return info;
|
|
|
+ }
|
|
|
componentDidMount() {
|
|
|
const height = getWindowInnerHeight() - 200;
|
|
|
this.$cont.current.style.height = height + "px";
|
|
@@ -170,7 +207,7 @@ class PushItems extends Component {
|
|
|
tipsDetails
|
|
|
} = this.props.pushMessage;
|
|
|
const { tipsDiscalimer,tableList ,showList} = this.props;
|
|
|
- const { moreAssay, moreCheck } = this.state;
|
|
|
+ const { moreAssay, moreCheck ,showTableInfo} = this.state;
|
|
|
const {
|
|
|
showMore,
|
|
|
closeMore,
|
|
@@ -433,6 +470,7 @@ class PushItems extends Component {
|
|
|
)}
|
|
|
</div>
|
|
|
</div>
|
|
|
+ {showTableInfo?this.getTableInfo():''}
|
|
|
<div className={style["tips"]}>
|
|
|
<h1>
|
|
|
<img src={tipsImg} />
|
|
@@ -449,18 +487,6 @@ class PushItems extends Component {
|
|
|
>
|
|
|
详情
|
|
|
</span>
|
|
|
- <span
|
|
|
- className={style["tips-details"]}
|
|
|
- onClick={() => showTips(tips)}
|
|
|
- >
|
|
|
- 管理和评估
|
|
|
- </span>
|
|
|
- <span
|
|
|
- className={style["tips-details"]}
|
|
|
- onClick={() => showTableList(tips)}
|
|
|
- >
|
|
|
- 量表
|
|
|
- </span>
|
|
|
</div>
|
|
|
{tips.introduceDetailList &&
|
|
|
tips.introduceDetailList.map((item, index) => {
|
|
@@ -499,14 +525,21 @@ class PushItems extends Component {
|
|
|
showTipsDetails = {showTipsDetails}
|
|
|
hideTips = {this.hideTips}
|
|
|
tipsDetails = {tipsDetails}/>}
|
|
|
- <ConfirmModal visible={showList} okText='确定' cancelText='' confirm={this.confirm} close={this.close}>
|
|
|
- {/*<div className={style['confirm-info']}>确定选择“{item.name}”为</div>*/}
|
|
|
- <div>
|
|
|
- {tableList&&tableList.map((v,i)=>{
|
|
|
- return <label><input type="radio" name="chronic" />{v.name}</label>
|
|
|
- })}
|
|
|
- </div>
|
|
|
-
|
|
|
+ {/*<ConfirmModal visible={showList} okText='确定' cancelText='' confirm={this.confirm} close={this.close}>*/}
|
|
|
+ <ConfirmModal
|
|
|
+ visible={showList}
|
|
|
+ noFooter="true"
|
|
|
+ close={this.close}
|
|
|
+ height={300}
|
|
|
+ width={400}>
|
|
|
+ <h2 className={style['toast-title']}>全部量表</h2>
|
|
|
+ <ul className={style['toast-cont']}>
|
|
|
+ {tableList&&tableList.map((v,i)=>{
|
|
|
+ return <li>
|
|
|
+ <a href="#">{'【'+v.name+'】'}</a>
|
|
|
+ </li>
|
|
|
+ })}
|
|
|
+ </ul>
|
|
|
</ConfirmModal>
|
|
|
</div>
|
|
|
);
|