|
@@ -440,16 +440,23 @@ class ListItems extends Component{
|
|
|
handleSelect&&handleSelect(it); //添加到大数据推送一起选中
|
|
|
handleConfirm&&handleConfirm(); //确定事件
|
|
|
}
|
|
|
+ getPushItemIds(list){ //获取推送症状的id数组,去重用
|
|
|
+ return list&&list.map((it)=>{
|
|
|
+ return it.conceptId;
|
|
|
+ })||[];
|
|
|
+ }
|
|
|
render (){
|
|
|
const {handleClear,order,parDiv,boxMark,tagType,show,data,pos} = this.props;
|
|
|
- //推送标签没有推送结果时不显示顺序说明
|
|
|
const pushUl = data.find((it)=>it.controlType===99);
|
|
|
- const noPush = tagType===11&&(pushUl&&(!pushUl.questionDetailList||pushUl.questionDetailList.length===0));
|
|
|
+ const pushList = pushUl&&pushUl.questionDetailList;
|
|
|
+ //推送标签没有推送结果时不显示顺序说明
|
|
|
+ const noPush = tagType===11&&(!pushList||pushList.length===0);
|
|
|
+ const noSearch = boxMark==1 && tagType==11 && !pos; //非第一病程添加症状标签不显示搜索
|
|
|
return <div className={style["drop-list"]} ref={parDiv} style={this.getStyle()} contentEditable="false" onClick={(e)=>{e.stopPropagation();}}>
|
|
|
{noPush?'':<p className={style['orderTips']}>按{order?'从左到右从上到下':'点击'}顺序成文</p>}
|
|
|
{this.getLabels()}
|
|
|
- {boxMark==1 && tagType==11 && !pos && <div className="search">
|
|
|
- <SearchBox show={show} onSelect={this.searchSelect.bind(this)} onRef={(child)=>{this.child = child;}}/>
|
|
|
+ {noSearch && <div className="search">
|
|
|
+ <SearchBox show={show} pushIds={this.getPushItemIds(pushList)} onSelect={this.searchSelect.bind(this)} onRef={(child)=>{this.child = child;}}/>
|
|
|
</div>}
|
|
|
<div className="oper clearfix">
|
|
|
<span className={style['clear']} onClick={handleClear}>清空选项</span>
|