浏览代码

全科病历全选修改

liucf 6 年之前
父节点
当前提交
90a2ba4518
共有 1 个文件被更改,包括 13 次插入1 次删除
  1. 13 1
      src/components/Emergency/HisList/index.jsx

+ 13 - 1
src/components/Emergency/HisList/index.jsx

@@ -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