|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
import { SearchOption, InspectCommon, Calendar, Notify, ConfirmModal, Add, DelToast } from '@commonComp';
|
|
|
import SlideExcel from './SlideExcel';
|
|
|
import SlideSelect from './SlideSelect';
|
|
|
-import { deepClone, getPageCoordinate, getStatusImg ,getCurrentDate} from '@utils/tools';
|
|
|
+import { deepClone, getPageCoordinate, getStatusImg ,getCurrentDate,setPosition} from '@utils/tools';
|
|
|
import styles from './index.less';
|
|
|
import ScrollArea from 'react-scrollbar';
|
|
|
import store from '@store';
|
|
@@ -90,11 +90,17 @@ class Inspect extends React.Component {
|
|
|
let _closeTil = $('#delTit')[0]; // 弹窗标题
|
|
|
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.setState({ show: false });
|
|
|
}
|
|
|
}
|
|
|
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.setState({ showFill: false, date: false });
|
|
|
}
|
|
|
}
|
|
@@ -117,6 +123,7 @@ class Inspect extends React.Component {
|
|
|
}
|
|
|
changeShowFill() {
|
|
|
this.setState({ showFill: false })
|
|
|
+ this.props.setHighter(0)
|
|
|
}
|
|
|
handleChangeDate(info) {
|
|
|
// let date = info.year+'-'+info.month.toString().padStart(2,'0')+'-'+info.day.toString().padStart(2,'0')
|
|
@@ -127,6 +134,7 @@ class Inspect extends React.Component {
|
|
|
let tmpShow = this.state.show;
|
|
|
this.setState({ show: !tmpShow, pageTop: getPageCoordinate(e).boxTop })
|
|
|
// e.stopPropagation();
|
|
|
+ setPosition(e,"#searchOption",this.props.setHighter)
|
|
|
}
|
|
|
handleFillShow(e, idx) {
|
|
|
let tmpShow = this.state.showFill;
|