|
@@ -91,7 +91,7 @@ class Inspect extends React.Component {
|
|
|
if (searchOption) {
|
|
|
if (searchOption != event.target && searchWrap != event.target && searchWrap != event.target.parentNode && !$.contains(searchOption, event.target)) { // Mark 1
|
|
|
if(this.state.show){
|
|
|
- this.props.setHighter(0)
|
|
|
+ this.props.setHighter(10)
|
|
|
}
|
|
|
this.setState({ show: false });
|
|
|
}
|
|
@@ -99,7 +99,7 @@ class Inspect extends React.Component {
|
|
|
if (inspectFill) {
|
|
|
if ($(event.target).attr('id') != "getSureTime"&&event.target.getAttribute('data-flg') != 'current' && inspectFill != event.target && !$.contains(inspectFill, event.target)) { // Mark 1
|
|
|
if(this.state.showFill){
|
|
|
- this.props.setHighter(0)
|
|
|
+ this.props.setHighter(10)
|
|
|
}
|
|
|
this.setState({ showFill: false, date: false });
|
|
|
}
|
|
@@ -123,7 +123,7 @@ class Inspect extends React.Component {
|
|
|
}
|
|
|
changeShowFill() {
|
|
|
this.setState({ showFill: false })
|
|
|
- this.props.setHighter(0)
|
|
|
+ this.props.setHighter(10)
|
|
|
}
|
|
|
handleChangeDate(info) {
|
|
|
// let date = info.year+'-'+info.month.toString().padStart(2,'0')+'-'+info.day.toString().padStart(2,'0')
|
|
@@ -132,6 +132,7 @@ class Inspect extends React.Component {
|
|
|
}
|
|
|
handleSearchShow(e) {
|
|
|
let tmpShow = this.state.show;
|
|
|
+ this.props.handleSomeAction()
|
|
|
this.setState({ show: !tmpShow, pageTop: getPageCoordinate(e).boxTop })
|
|
|
// e.stopPropagation();
|
|
|
setPosition(e,"#searchOption",this.props.setHighter)
|
|
@@ -255,6 +256,7 @@ class Inspect extends React.Component {
|
|
|
className={styles.searchLi}
|
|
|
title={(item.name == item.retrievalName || !item.retrievalName) ? item.name : item.name + '(' + item.retrievalName + ')'}
|
|
|
onClick={() => {
|
|
|
+ this.props.setHighter(10)
|
|
|
handleSign(item.questionId, idx, 'search');
|
|
|
this.setState({ show: false })
|
|
|
}}
|
|
@@ -274,6 +276,7 @@ class Inspect extends React.Component {
|
|
|
className={styles.searchLi}
|
|
|
title={item.name}
|
|
|
onClick={() => {
|
|
|
+ this.props.setHighter(10)
|
|
|
handleSign(item.questionId, idx, 'common');
|
|
|
this.setState({ show: false })
|
|
|
}}
|
|
@@ -403,7 +406,19 @@ class Inspect extends React.Component {
|
|
|
<div style={{ position: "relative", clear: "both", top: "5px" }}>
|
|
|
<Add showText="添加化验项" handleClick={(e) => this.handleSearchShow(e)} id="searchWrap" />
|
|
|
{this.state.show ? <SearchOption windowHeight={windowHeight} height={280} refreshScroller={refreshScroller} pageTop={pageTop} handleChangeValue={handleChangeValue} visible={true}>
|
|
|
- {list && list.length > 0 ? this.getSearchList(list) : (inspectVal == '' ? '' : <p style={{ padding: '5px 30px', color: '#bfbfbf' }}>暂无筛选项</p>)}
|
|
|
+ {list && list.length > 0 ?
|
|
|
+ <ScrollArea speed={0.8}
|
|
|
+ horizontal={false}
|
|
|
+ stopScrollPropagation={true}
|
|
|
+ style={{height:'257px'}}
|
|
|
+ className={styles["area"]}
|
|
|
+ verticalContainerStyle={contStyle}
|
|
|
+ verticalScrollbarStyle={barStyle}
|
|
|
+ contentClassName="content">
|
|
|
+ {
|
|
|
+ this.getSearchList(list)
|
|
|
+ }
|
|
|
+ </ScrollArea> : (inspectVal == '' ? '' : <p style={{ padding: '5px 30px', color: '#bfbfbf' }}>暂无筛选项</p>)}
|
|
|
{
|
|
|
(list && list.length > 0) || (inspectVal != '') || (inspectList&&inspectList.length==0) ? '' : <div>
|
|
|
<p style={{ padding: '5px 30px', color: '#bfbfbf' }}>常用化验项</p>
|