|
@@ -439,9 +439,11 @@ class ListItems extends Component{
|
|
|
handleConfirm&&handleConfirm(); //确定事件
|
|
|
}
|
|
|
render (){
|
|
|
- const {handleClear,order,parDiv,boxMark,tagType,show} = this.props;
|
|
|
+ const {handleClear,order,parDiv,boxMark,tagType,show,data} = this.props;
|
|
|
+ //推送标签没有推送结果时不显示顺序说明
|
|
|
+ const noPush = tagType===11&&(!data[1].questionDetailList||data[1].questionDetailList.length===0);
|
|
|
return <div className={style["drop-list"]} ref={parDiv} style={this.getStyle()} contentEditable="false" onClick={(e)=>{e.stopPropagation();}}>
|
|
|
- <p className={style['orderTips']}>按{order?'从左到右从上到下':'点击'}顺序成文</p>
|
|
|
+ {noPush?'':<p className={style['orderTips']}>按{order?'从左到右从上到下':'点击'}顺序成文</p>}
|
|
|
{this.getLabels()}
|
|
|
{boxMark==1 && tagType==11 && <div className="search">
|
|
|
<SearchBox show={show} onSelect={this.searchSelect.bind(this)} onRef={(child)=>{this.child = child;}}/>
|
|
@@ -520,6 +522,9 @@ class ListItem extends Component{
|
|
|
width:'6px',
|
|
|
background:'#f1f1f1'};
|
|
|
const barStyle={background:'#777',width:'100%'};
|
|
|
+ if(!datas||datas.length===0){
|
|
|
+ return <li className={style['no-push-data']}>暂无推送</li>
|
|
|
+ }
|
|
|
if(datas&&datas.length>11){
|
|
|
return <ScrollArea speed={0.8}
|
|
|
horizontal={false}
|
|
@@ -547,6 +552,9 @@ class ListItem extends Component{
|
|
|
|
|
|
getMainData(){//主诉添加症状-带搜索框
|
|
|
const {datas,isSpecialPos} = this.props;
|
|
|
+ if(!datas||datas.length===0){
|
|
|
+ return <li className={style['no-push-data']}>暂无推送数据,可通过搜索查找更多内容~ </li>
|
|
|
+ }
|
|
|
return datas&&datas.map((it,i)=>{
|
|
|
return <li onClick={(e)=>this.handleClick(e,it,i)}
|
|
|
className={this.getClass(it.id)}
|