|
|
@@ -21,6 +21,7 @@ import {
|
|
|
import {industry} from '@/industryList';
|
|
|
import {achievementType,achievementCategoryList,maturityList,innovationList,transaction} from '@/dataDic';
|
|
|
import { splitUrl} from '@/tools.js';
|
|
|
+import SpinContainer from "../../SpinContainer";
|
|
|
|
|
|
|
|
|
const KeyWordTagGroup = React.createClass({
|
|
|
@@ -147,7 +148,7 @@ const PicturesWall = React.createClass({
|
|
|
);
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
const DemandDetailForm = Form.create()(React.createClass({
|
|
|
getInitialState() {
|
|
|
return {
|
|
|
@@ -189,7 +190,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
auditStatus:thisData.auditStatus,
|
|
|
pictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
|
|
|
pictureUrlMin: thisData.pictureUrlMin ? splitUrl(thisData.pictureUrlMin, ',', globalConfig.avatarHost + '/upload') : []
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
@@ -346,7 +347,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
return (
|
|
|
<div className='login'>
|
|
|
<Form layout="horizontal" onSubmit={(e)=>{this.handleSubmit(e,0)}} id="demand-form">
|
|
|
- <Spin spinning={this.state.loading}>
|
|
|
+ <SpinContainer spinning={this.state.loading}>
|
|
|
<div className="clearfix">
|
|
|
<FormItem className="half-item" {...formItemLayout} label="标题">
|
|
|
{getFieldDecorator('name', {
|
|
|
@@ -403,7 +404,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
})(
|
|
|
<Select style={{ width: 160 }} placeholder="请选择成果类型"
|
|
|
>
|
|
|
- {
|
|
|
+ {
|
|
|
achievementType.map(function (item) {
|
|
|
return <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
|
|
|
})
|
|
|
@@ -418,7 +419,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
})(
|
|
|
<Select style={{ width: 160 }} placeholder="请选择知识产权类型"
|
|
|
>
|
|
|
- {
|
|
|
+ {
|
|
|
achievementCategoryList.map(function (item) {
|
|
|
return <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
|
|
|
})
|
|
|
@@ -432,7 +433,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
})(
|
|
|
<Select style={{ width: 160 }} placeholder="请选择创新度"
|
|
|
>
|
|
|
- {
|
|
|
+ {
|
|
|
innovationList.map(function (item) {
|
|
|
return <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
|
|
|
})
|
|
|
@@ -446,7 +447,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
})(
|
|
|
<Select style={{ width: 160 }} placeholder="请选择成熟度"
|
|
|
>
|
|
|
- {
|
|
|
+ {
|
|
|
maturityList.map(function (item) {
|
|
|
return <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
|
|
|
})
|
|
|
@@ -460,7 +461,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
})(
|
|
|
<Select style={{ width: 160 }} placeholder="请选择交易形式"
|
|
|
>
|
|
|
- {
|
|
|
+ {
|
|
|
transaction.map(function (item) {
|
|
|
return <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
|
|
|
})
|
|
|
@@ -490,7 +491,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
<div className="clearfix">
|
|
|
<FormItem className="half-item" {...formItemLayout} label="精品成果">
|
|
|
{getFieldDecorator('boutique', {
|
|
|
- initialValue: theData.boutique
|
|
|
+ initialValue: theData.boutique
|
|
|
})(
|
|
|
<Radio.Group>
|
|
|
<Radio value={0}>非精品</Radio>
|
|
|
@@ -512,7 +513,7 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem className="full-item"
|
|
|
+ <FormItem className="full-item"
|
|
|
labelCol={{ span: 3 }}
|
|
|
wrapperCol={{ span: 18 }} label="发布位置">
|
|
|
{getFieldDecorator('publishPages', {
|
|
|
@@ -562,8 +563,8 @@ const DemandDetailForm = Form.create()(React.createClass({
|
|
|
</Button>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- </Spin>
|
|
|
- </Form>
|
|
|
+ </SpinContainer>
|
|
|
+ </Form>
|
|
|
</div>
|
|
|
)
|
|
|
}
|