|
@@ -311,6 +311,7 @@ const BusinessCategory = Form.create()(
|
|
|
addFirst: 1,
|
|
|
index: undefined,
|
|
|
appIndex: undefined,
|
|
|
+ homeIndex: undefined,
|
|
|
superId: recard.id,
|
|
|
module: recard.module ? recard.module.toString() : 'undefined'
|
|
|
});
|
|
@@ -343,8 +344,9 @@ const BusinessCategory = Form.create()(
|
|
|
dataList.imgUrl = thePictureUrl.length ? thePictureUrl : '';
|
|
|
dataList.oldSuperId = this.state.superId;
|
|
|
dataList.superId = this.state.superNameId;
|
|
|
- dataList.pcIndex =this.state.index,
|
|
|
- dataList.appIndex=this.state.appIndex
|
|
|
+ dataList.pcIndex =this.state.index;
|
|
|
+ dataList.appIndex=this.state.appIndex;
|
|
|
+ dataList.homeIndex=this.state.homeIndex;
|
|
|
}
|
|
|
$.ajax({
|
|
|
method: 'post',
|
|
@@ -411,7 +413,8 @@ const BusinessCategory = Form.create()(
|
|
|
superId: '',
|
|
|
module: '1',
|
|
|
index: undefined,
|
|
|
- appIndex: undefined
|
|
|
+ appIndex: undefined,
|
|
|
+ homeIndex: undefined,
|
|
|
});
|
|
|
},
|
|
|
//新增保存
|
|
@@ -431,7 +434,8 @@ const BusinessCategory = Form.create()(
|
|
|
layer: this.state.addFirst ? this.state.recrdAdd.layer + 1 : '1',
|
|
|
module: this.state.module,
|
|
|
pcIndex : this.state.index,
|
|
|
- appIndex: this.state.appIndex
|
|
|
+ appIndex: this.state.appIndex,
|
|
|
+ homeIndex: this.state.homeIndex
|
|
|
}
|
|
|
}).done(
|
|
|
function(data) {
|
|
@@ -487,6 +491,7 @@ const BusinessCategory = Form.create()(
|
|
|
layer: thisdata.layer,
|
|
|
superNameId: thisdata.superId,
|
|
|
index:thisdata.pcIndex ,
|
|
|
+ homeIndex:thisdata.homeIndex ,
|
|
|
appIndex:thisdata.appIndex,
|
|
|
moduleNumber: thisdata.module ? thisdata.module.toString() : undefined
|
|
|
});
|
|
@@ -724,6 +729,23 @@ const BusinessCategory = Form.create()(
|
|
|
<FormItem
|
|
|
labelCol={{ span: 7 }}
|
|
|
wrapperCol={{ span: 12 }}
|
|
|
+ label="发布到PC首页"
|
|
|
+ >
|
|
|
+ <Radio.Group
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ homeIndex: e.target.value });
|
|
|
+ }}
|
|
|
+ value={this.state.homeIndex}
|
|
|
+ >
|
|
|
+ <Radio value={1}>是</Radio>
|
|
|
+ <Radio value={0}>否</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 7 }}
|
|
|
+ wrapperCol={{ span: 12 }}
|
|
|
label="发布到APP首页"
|
|
|
>
|
|
|
<Radio.Group
|
|
@@ -820,6 +842,19 @@ const BusinessCategory = Form.create()(
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|
|
|
+ <FormItem labelCol={{ span: 7 }} wrapperCol={{ span: 12 }} label="发布到PC首页">
|
|
|
+ <Radio.Group
|
|
|
+ onChange={(e) => {
|
|
|
+ this.setState({ homeIndex: e.target.value });
|
|
|
+ }}
|
|
|
+ value={this.state.homeIndex}
|
|
|
+ >
|
|
|
+ <Radio value={1}>是</Radio>
|
|
|
+ <Radio value={0}>否</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
<FormItem labelCol={{ span: 7 }} wrapperCol={{ span: 12 }} label="发布到APP首页">
|
|
|
<Radio.Group
|
|
|
onChange={(e) => {
|