|
@@ -832,7 +832,6 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
};
|
|
};
|
|
this.setState({
|
|
this.setState({
|
|
data: thisData,
|
|
data: thisData,
|
|
-
|
|
|
|
orgDisplay: thisData.ownerType,
|
|
orgDisplay: thisData.ownerType,
|
|
switchValue: Boolean(!thisData.ownerId),
|
|
switchValue: Boolean(!thisData.ownerId),
|
|
radios: thisData.hot == '1' ? true : false,
|
|
radios: thisData.hot == '1' ? true : false,
|
|
@@ -1031,7 +1030,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
//
|
|
//
|
|
ownerId: !this.state.switchValue ? (this.state.dataSourceObj ? this.state.dataSourceObj[values.iOwnerName] : this.state.data.ownerId) : undefined,
|
|
ownerId: !this.state.switchValue ? (this.state.dataSourceObj ? this.state.dataSourceObj[values.iOwnerName] : this.state.data.ownerId) : undefined,
|
|
contacts: !this.state.switchValue ? values.contacts : undefined,
|
|
contacts: !this.state.switchValue ? values.contacts : undefined,
|
|
- ownerType: this.state.ownerType,//this.props.detailApiUrl.indexOf('org') != -1 ? 1 : 0,
|
|
|
|
|
|
+ ownerType: this.state.orgDisplay,//this.props.detailApiUrl.indexOf('org') != -1 ? 1 : 0,
|
|
//自定义
|
|
//自定义
|
|
ownerName: this.state.switchValue ? values.ownerName : undefined,
|
|
ownerName: this.state.switchValue ? values.ownerName : undefined,
|
|
ownerIdNumber: this.state.switchValue ? values.ownerIdNumber : undefined,
|
|
ownerIdNumber: this.state.switchValue ? values.ownerIdNumber : undefined,
|
|
@@ -1095,6 +1094,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
this.state.techPlanFileList = [];
|
|
this.state.techPlanFileList = [];
|
|
this.state.businessPlanFileList = [];
|
|
this.state.businessPlanFileList = [];
|
|
this.props.form.resetFields();
|
|
this.props.form.resetFields();
|
|
|
|
+ this.state.orgDisplay=undefined;
|
|
};
|
|
};
|
|
},
|
|
},
|
|
render() {
|
|
render() {
|
|
@@ -1105,6 +1105,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
labelCol: { span: 8 },
|
|
labelCol: { span: 8 },
|
|
wrapperCol: { span: 14 },
|
|
wrapperCol: { span: 14 },
|
|
};
|
|
};
|
|
|
|
+ console.log(this.state.orgDisplay)
|
|
return (
|
|
return (
|
|
<Form horizontal onSubmit={this.handleSubmit} id="demand-form">
|
|
<Form horizontal onSubmit={this.handleSubmit} id="demand-form">
|
|
<Spin spinning={this.state.loading}>
|
|
<Spin spinning={this.state.loading}>
|
|
@@ -1237,8 +1238,8 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
wrapperCol={{ span: 18 }}
|
|
wrapperCol={{ span: 18 }}
|
|
label="成果类别" >
|
|
label="成果类别" >
|
|
<Select placeholder="选择成果类别" style={{ width: 120 }}
|
|
<Select placeholder="选择成果类别" style={{ width: 120 }}
|
|
- value={this.state.ownerType}
|
|
|
|
- onChange={(e) => { this.setState({ ownerType: e }) }}>
|
|
|
|
|
|
+ value={this.state.orgDisplay}
|
|
|
|
+ onChange={(e) => { this.setState({ orgDisplay: e }) }}>
|
|
<Select.Option value="0" >个人</Select.Option>
|
|
<Select.Option value="0" >个人</Select.Option>
|
|
<Select.Option value="1" >组织</Select.Option>
|
|
<Select.Option value="1" >组织</Select.Option>
|
|
</Select>
|
|
</Select>
|