liting2017 6 years ago
parent
commit
e385e430ac

+ 1 - 2
js/component/account/index/collection.jsx

@@ -145,7 +145,7 @@ class Collection extends Component {
         this.loadDataService(1)
     }
     tabFun(e){
-       this.setState({ nub: e.target.value })
+       this.setState({ nub: e.target.value,current:1})
        switch(e.target.value){
            case '1':
                 this.loadDataService(1)
@@ -227,7 +227,6 @@ class Collection extends Component {
                 </Spin>
                 {this.state.total?<Pagination className="page" pageSize={this.props.nub?4:8} current={this.state.current} total={this.state.total} onChange={this.onShowSizeChange.bind(this)}/>:''}
             </div>
-           
         </div>
 	}
 }

+ 2 - 2
js/component/administration/business/businessCategory.jsx

@@ -342,8 +342,8 @@ const BusinessCategory=Form.create()(React.createClass({
                 message.warning(data.error[0].message);
             };
             this.loadData(this.state.page)
+            this.loadMenu();
         }.bind(this));
-
     },
     editClick() {
         this.state.RowData = {};
@@ -421,7 +421,7 @@ const BusinessCategory=Form.create()(React.createClass({
         this.detailes(record)
     },
     render() {
-    	const FormItem = Form.Item
+    	const FormItem = Form.Item;
         const rowSelection = {
             selectedRowKeys: this.state.selectedRowKeys,
             onChange: (selectedRowKeys, selectedRows) => {