瀏覽代碼

需求跳转页码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() {