소스 검색

需求跳转页码bug修改

liting2017 7 년 전
부모
커밋
50e321a6a2
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      js/component/manageCenter/demand/myTechDemand.jsx

+ 4 - 1
js/component/manageCenter/demand/myTechDemand.jsx

@@ -245,6 +245,9 @@ const DemandList = React.createClass({
                 pageSize: 10,
                 onChange: function (page) {
                     this.loadData(page);
+                    this.setState({
+                    	page:page
+                    });
                 }.bind(this),
                 showTotal: function (total) {
                     return '共' + total + '条数据';
@@ -978,7 +981,7 @@ const DemandList = React.createClass({
     closeDesc(e, s) {
         this.state.showDesc = e;
         if (s) {
-            this.loadData();
+            this.loadData(this.state.page);
         };
     },
     search() {