|
@@ -145,7 +145,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
businessPlanFileList: []
|
|
|
};
|
|
|
},
|
|
|
- loadData(id) {
|
|
|
+ loadData(id, detailApiUrl) {
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
});
|
|
@@ -153,7 +153,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + this.props.detailApiUrl,
|
|
|
+ url: globalConfig.context + detailApiUrl,
|
|
|
data: {
|
|
|
id: id
|
|
|
},
|
|
@@ -277,11 +277,11 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
}.bind(this));
|
|
|
},
|
|
|
componentWillMount() {
|
|
|
- this.loadData(this.props.data.id);
|
|
|
+ this.loadData(this.props.data.id, this.props.detailApiUrl);
|
|
|
},
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
if (!this.props.visible && nextProps.visible) {
|
|
|
- this.loadData(nextProps.data.id);
|
|
|
+ this.loadData(nextProps.data.id, nextProps.detailApiUrl);
|
|
|
this.state.textFileList = [];
|
|
|
this.state.techPlanFileList = [];
|
|
|
this.state.businessPlanFileList = [];
|
|
@@ -618,7 +618,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
dataSource: [],
|
|
|
};
|
|
|
},
|
|
|
- loadData(id) {
|
|
|
+ loadData(id, detailApiUrl) {
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
});
|
|
@@ -626,7 +626,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + this.props.detailApiUrl,
|
|
|
+ url: globalConfig.context + detailApiUrl,
|
|
|
data: {
|
|
|
id: id
|
|
|
},
|
|
@@ -839,11 +839,11 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
},
|
|
|
componentWillMount() {
|
|
|
this.state.therottleSearch = throttle(this.handleSearch, 1000, { leading: false }).bind(this);
|
|
|
- this.loadData(this.props.data.id);
|
|
|
+ this.loadData(this.props.data.id, this.props.detailApiUrl);
|
|
|
},
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
if (!this.props.visible && nextProps.visible) {
|
|
|
- this.loadData(nextProps.data.id);
|
|
|
+ this.loadData(nextProps.data.id.nextProps.detailApiUrl);
|
|
|
this.state.textFileList = [];
|
|
|
this.state.techPlanFileList = [];
|
|
|
this.state.businessPlanFileList = [];
|