|
@@ -19,20 +19,20 @@ class ReasonInput extends Component {
|
|
|
this.inputAjax = this.inputAjax.bind(this);
|
|
|
}
|
|
|
|
|
|
- componentWillMount() {
|
|
|
- let reason = this.props.reason
|
|
|
- this.setState({
|
|
|
- reason
|
|
|
- })
|
|
|
- // const data = this.props.data;
|
|
|
- // const backData = this.props.backData;
|
|
|
- // const ajaxData = this.props.ajaxData;
|
|
|
- // Object.assign(backData, ajaxData);
|
|
|
- // // this.sendRequest()
|
|
|
- // this.onOk(data,backData)
|
|
|
- // console.log("222222",this.props);
|
|
|
+ // componentWillMount() {
|
|
|
+ // let reason = this.props.reason
|
|
|
+ // this.setState({
|
|
|
+ // reason
|
|
|
+ // })
|
|
|
+ // // const data = this.props.data;
|
|
|
+ // // const backData = this.props.backData;
|
|
|
+ // // const ajaxData = this.props.ajaxData;
|
|
|
+ // // Object.assign(backData, ajaxData);
|
|
|
+ // // // this.sendRequest()
|
|
|
+ // // this.onOk(data,backData)
|
|
|
+ // // console.log("222222",this.props);
|
|
|
|
|
|
- }
|
|
|
+ // }
|
|
|
|
|
|
// 理由请求
|
|
|
sendRequest(data, backData) {
|
|
@@ -76,9 +76,9 @@ class ReasonInput extends Component {
|
|
|
}.bind(this)
|
|
|
}).done(
|
|
|
function() {
|
|
|
- if (this.props.loadData) {
|
|
|
- this.props.loadData("2");
|
|
|
- }
|
|
|
+ // if (this.props.loadData) {
|
|
|
+ // this.props.loadData("2");
|
|
|
+ // }
|
|
|
}.bind(this)
|
|
|
);
|
|
|
}
|