dev01 1 gadu atpakaļ
vecāks
revīzija
d2dc2b4b19
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/pages/project/index.jsx

+ 2 - 2
src/pages/project/index.jsx

@@ -93,7 +93,7 @@ class Project extends Component {
       pageNum: pageNum,
       pageNum: pageNum,
       pageSize: 10,
       pageSize: 10,
       roleType: 0,
       roleType: 0,
-      projectYear: this.state.starts,
+      projectYear: this.state.starts || undefined,
       startTime: this.state.rangeStartMinuteVal || undefined,
       startTime: this.state.rangeStartMinuteVal || undefined,
       endTime: this.state.rangeEndMinuteVal || undefined,
       endTime: this.state.rangeEndMinuteVal || undefined,
       name: this.state.searchType.id == 0 ? this.state.searchValue : undefined,
       name: this.state.searchType.id == 0 ? this.state.searchValue : undefined,
@@ -236,7 +236,7 @@ class Project extends Component {
                       onClick={(e) => {
                       onClick={(e) => {
                         e.stopPropagation();
                         e.stopPropagation();
                         this.setState({
                         this.setState({
-                          starts: ""
+                          starts: undefined
                         }, () => {
                         }, () => {
                           this.getProjectList();
                           this.getProjectList();
                         })
                         })