Sfoglia il codice sorgente

需求跳转页码bug修改

liting2017 7 anni fa
parent
commit
50e321a6a2
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  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() {