|
@@ -87,7 +87,7 @@ class AddNewInspect extends React.Component {
|
|
|
if (searchOption&&!this.isBar) {//onMousedown的目标为滚动条时,添加弹窗不关闭
|
|
|
if (searchOption != event.target && searchWrap != event.target && searchWrap != event.target.parentNode && !$.contains(searchOption, event.target)) { // Mark 1
|
|
|
this.setState({ show: false },()=>{
|
|
|
- this.props.setHighter(48)
|
|
|
+ this.props.setHighter(80)
|
|
|
setTimeout(function(){
|
|
|
refreshScroller()&&refreshScroller().scrollBottom();
|
|
|
},100);
|
|
@@ -97,7 +97,7 @@ class AddNewInspect extends React.Component {
|
|
|
if (inspectFill&&!this.isBar) {//onMousedown的目标为滚动条时,子项弹窗不关闭
|
|
|
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(48)
|
|
|
+ this.props.setHighter(80)
|
|
|
}
|
|
|
this.setState({ showFill: false, date: false });
|
|
|
}
|
|
@@ -130,7 +130,7 @@ class AddNewInspect extends React.Component {
|
|
|
}
|
|
|
changeShowFill() {
|
|
|
this.setState({ showFill: false })
|
|
|
- this.props.setHighter(48)
|
|
|
+ this.props.setHighter(80)
|
|
|
}
|
|
|
handleChangeDate(info) {
|
|
|
let date = getCalendarDate(info);
|
|
@@ -142,7 +142,7 @@ class AddNewInspect extends React.Component {
|
|
|
this.setState({ show: !tmpShow, pageTop: getPageCoordinate(e).boxTop })
|
|
|
// e.stopPropagation();
|
|
|
if(tmpShow){
|
|
|
- this.props.setHighter(48)
|
|
|
+ this.props.setHighter(80)
|
|
|
}else{
|
|
|
this.props.detailClick(5)
|
|
|
setPosition(e,"#searchOption",this.props.setHighter)
|
|
@@ -273,22 +273,14 @@ class AddNewInspect extends React.Component {
|
|
|
width:'14px',
|
|
|
background:'#f1f1f1'};
|
|
|
const barStyle={background:'#777',width:'100%'};
|
|
|
- return <ScrollArea speed={0.8}
|
|
|
- horizontal={false}
|
|
|
- stopScrollPropagation={list.length>6?true:false}
|
|
|
- style={{'max-height':'205px'}}
|
|
|
- className={styles["area"]}
|
|
|
- verticalContainerStyle={contStyle}
|
|
|
- verticalScrollbarStyle={barStyle}
|
|
|
- contentClassName="content">
|
|
|
- <ul className={`${styles.searchLiUl} ${styles.searchIsp}`}>
|
|
|
+ return <ul className={`${styles.searchLiUl} ${styles.searchIsp}`} style={{height:'205px',width:'302px',overflow:'auto'}}>
|
|
|
{
|
|
|
list && list.map((item, idx) => {
|
|
|
return <li key={idx}
|
|
|
className={styles.searchLi}
|
|
|
title={item.uniqueName}
|
|
|
onClick={() => {
|
|
|
- this.props.setHighter(48)
|
|
|
+ this.props.setHighter(80)
|
|
|
this.handleSign(item, idx, 'search');
|
|
|
this.setState({ show: false })
|
|
|
}}
|
|
@@ -297,7 +289,7 @@ class AddNewInspect extends React.Component {
|
|
|
</li>
|
|
|
})
|
|
|
}
|
|
|
- </ul></ScrollArea>;
|
|
|
+ </ul>;
|
|
|
}
|
|
|
getCommonList() {//常用列表
|
|
|
const { handleSign, inspectList } = this.props;
|
|
@@ -308,7 +300,7 @@ class AddNewInspect extends React.Component {
|
|
|
className={styles.searchLi}
|
|
|
title={item.name}
|
|
|
onClick={() => {
|
|
|
- this.props.setHighter(48)
|
|
|
+ this.props.setHighter(80)
|
|
|
handleSign(item.questionId, idx, 'common');
|
|
|
this.setState({ show: false })
|
|
|
}}
|