|
@@ -31,6 +31,10 @@ class HisList extends Component {
|
|
this.setState({startTime:date});
|
|
this.setState({startTime:date});
|
|
const {handleFilter} = this.props;
|
|
const {handleFilter} = this.props;
|
|
const {endTime} = this.state;
|
|
const {endTime} = this.state;
|
|
|
|
+ this.setState({
|
|
|
|
+ all:false,
|
|
|
|
+ select:[]
|
|
|
|
+ })
|
|
const obj = {
|
|
const obj = {
|
|
startDate:date,
|
|
startDate:date,
|
|
endDate:endTime,
|
|
endDate:endTime,
|
|
@@ -42,6 +46,10 @@ class HisList extends Component {
|
|
this.setState({endTime:date});
|
|
this.setState({endTime:date});
|
|
const {handleFilter} = this.props;
|
|
const {handleFilter} = this.props;
|
|
const {startTime} = this.state;
|
|
const {startTime} = this.state;
|
|
|
|
+ this.setState({
|
|
|
|
+ all:false,
|
|
|
|
+ select:[]
|
|
|
|
+ })
|
|
const obj = {
|
|
const obj = {
|
|
startDate:startTime,
|
|
startDate:startTime,
|
|
endDate:date,
|
|
endDate:date,
|
|
@@ -51,8 +59,12 @@ class HisList extends Component {
|
|
}
|
|
}
|
|
handleFilter(flag){
|
|
handleFilter(flag){
|
|
const {handleFilter} = this.props;
|
|
const {handleFilter} = this.props;
|
|
|
|
+ const {hasSecond} = this.state;
|
|
|
|
+ if(flag == hasSecond){return}
|
|
this.setState({
|
|
this.setState({
|
|
- hasSecond:flag
|
|
|
|
|
|
+ hasSecond:flag,
|
|
|
|
+ all:false,
|
|
|
|
+ select:[]
|
|
})
|
|
})
|
|
const obj = {
|
|
const obj = {
|
|
flag:flag
|
|
flag:flag
|