|
@@ -217,26 +217,20 @@ const DemandList = React.createClass({
|
|
loading: false,
|
|
loading: false,
|
|
visitModul:false
|
|
visitModul:false
|
|
});
|
|
});
|
|
-// if(this.state.pagination.total%10==1){
|
|
|
|
-// this.loadData((this.state.page)-1);
|
|
|
|
-// }else{
|
|
|
|
this.loadData(this.state.page);
|
|
this.loadData(this.state.page);
|
|
-// }
|
|
|
|
} else {
|
|
} else {
|
|
message.warning(data.error[0].message);
|
|
message.warning(data.error[0].message);
|
|
};
|
|
};
|
|
}.bind(this));
|
|
}.bind(this));
|
|
},
|
|
},
|
|
- //点击整行
|
|
|
|
-// tableRowClick(record, index) {
|
|
|
|
-// this.state.RowData = record;
|
|
|
|
-// this.setState({
|
|
|
|
-// visitModul: true
|
|
|
|
-// });
|
|
|
|
-// },
|
|
|
|
|
|
+
|
|
addClick() {
|
|
addClick() {
|
|
this.state.RowData = {};
|
|
this.state.RowData = {};
|
|
this.setState({
|
|
this.setState({
|
|
|
|
+ newName:'',
|
|
|
|
+ source:undefined,
|
|
|
|
+ money:'',
|
|
|
|
+ durationDay:'',
|
|
visitModul: true
|
|
visitModul: true
|
|
});
|
|
});
|
|
},
|
|
},
|