|
@@ -20,7 +20,6 @@ class OtherHistory extends Component{
|
|
|
this.handleClick = this.handleClick.bind(this);
|
|
|
this.handleSearchSelect = this.handleSearchSelect.bind(this);
|
|
|
this.getData = this.getData.bind(this);
|
|
|
- this.handleInput = this.handleInput.bind(this);
|
|
|
}
|
|
|
toggleEditable(){
|
|
|
this.setState({
|
|
@@ -40,12 +39,12 @@ class OtherHistory extends Component{
|
|
|
});
|
|
|
return list;
|
|
|
}
|
|
|
- handleInput(e){ //主诉未填无法输入
|
|
|
+ /*handleInput(e){ console.log(221) //主诉未填无法输入
|
|
|
const {type,hasMain} = this.props;
|
|
|
if(+type===0&&!hasMain){
|
|
|
e.target.innerText='';
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
getData(){
|
|
|
//第一次聚焦其他史时,主诉有数据则获取最近一次其他史记录(没有的话显示初始模板),主诉无数据则显示提示;其他时间其他史模板数据不调接口
|
|
|
const {hasMain,type,setInitData,data,saveText,changeEditClear} = this.props;
|
|
@@ -111,7 +110,7 @@ class OtherHistory extends Component{
|
|
|
hasMain={hasMain}/>;
|
|
|
}
|
|
|
return <div>
|
|
|
- <ItemBox title='其他史' editable={hasData?false:true} isRead={isRead} handleClick={this.handleClick} handleFocus={this.getData} onchange={this.handleInput}>
|
|
|
+ <ItemBox title='其他史' editable={hasData?false:true} isRead={isRead} handleClick={this.handleClick} handleFocus={this.getData}>
|
|
|
{this.getLabels()}
|
|
|
{searchData && searchData.length>0?<SearchDrop data={searchData} show={!totalHide} left={boxLeft} top={boxTop} onSelect={this.handleSearchSelect}></SearchDrop>:''}
|
|
|
</ItemBox>
|