|
@@ -163,7 +163,7 @@ const NewDetailForm = Form.create()(React.createClass({
|
|
{getFieldDecorator('title', {
|
|
{getFieldDecorator('title', {
|
|
rules: [ { required: true, message: '此项为必填项!' } ],
|
|
rules: [ { required: true, message: '此项为必填项!' } ],
|
|
initialValue: theData.title
|
|
initialValue: theData.title
|
|
- })(<Input placeholder="请输入您的专栏标题" />)}
|
|
|
|
|
|
+ })(<Input placeholder="请输入您的专栏标题" maxLength={40}/>)}
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem className="half-item" {...formItemLayout} label="产品类型">
|
|
<FormItem className="half-item" {...formItemLayout} label="产品类型">
|
|
{getFieldDecorator('category', {
|
|
{getFieldDecorator('category', {
|
|
@@ -183,13 +183,8 @@ const NewDetailForm = Form.create()(React.createClass({
|
|
{getFieldDecorator('source', {
|
|
{getFieldDecorator('source', {
|
|
rules: [ { required: true, message: '此项为必填项!' } ],
|
|
rules: [ { required: true, message: '此项为必填项!' } ],
|
|
initialValue: theData.source
|
|
initialValue: theData.source
|
|
- })(<Input placeholder="请输入来源" />)}
|
|
|
|
|
|
+ })(<Input placeholder="请输入来源" maxLength={45} />)}
|
|
</FormItem>
|
|
</FormItem>
|
|
- {/* <FormItem className="half-item" {...formItemLayout} label="来源链接">
|
|
|
|
- {getFieldDecorator('sourceUrl', {
|
|
|
|
- initialValue: theData.sourceUrl
|
|
|
|
- })(<Input placeholder="请输入来源链接" />)}
|
|
|
|
- </FormItem> */}
|
|
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
<FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label="关键字">
|
|
<FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label="关键字">
|
|
@@ -202,7 +197,10 @@ const NewDetailForm = Form.create()(React.createClass({
|
|
</FormItem>
|
|
</FormItem>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
- <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label="专栏图片">
|
|
|
|
|
|
+ <FormItem labelCol={{ span: 3 }} wrapperCol={{ span: 18 }} label={<span>
|
|
|
|
+ <strong style={{ color: '#f00' }}> * </strong>
|
|
|
|
+ <span>专栏图片</span>
|
|
|
|
+ </span>}>
|
|
<Crop
|
|
<Crop
|
|
getAllImg={(e)=>{this.setState({pictureUrl:e})}}
|
|
getAllImg={(e)=>{this.setState({pictureUrl:e})}}
|
|
number = {1}
|
|
number = {1}
|
|
@@ -218,7 +216,7 @@ const NewDetailForm = Form.create()(React.createClass({
|
|
{getFieldDecorator('summary', {
|
|
{getFieldDecorator('summary', {
|
|
rules: [ { required: true, message: '此项为必填项!' } ],
|
|
rules: [ { required: true, message: '此项为必填项!' } ],
|
|
initialValue: theData.summary
|
|
initialValue: theData.summary
|
|
- })(<Input type="textarea" rows={4} placeholder="输入简介" />)}
|
|
|
|
|
|
+ })(<Input type="textarea" rows={4} maxLength={144} placeholder="输入简介" />)}
|
|
</FormItem>
|
|
</FormItem>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|