|
@@ -42,9 +42,6 @@ const PicturesWall = React.createClass({
|
|
previewVisible: false,
|
|
previewVisible: false,
|
|
previewImage: "",
|
|
previewImage: "",
|
|
fileList: [],
|
|
fileList: [],
|
|
- locations: [],
|
|
|
|
- locationSearch:'',
|
|
|
|
- indeterminate:false,
|
|
|
|
};
|
|
};
|
|
},
|
|
},
|
|
getDefaultProps() {
|
|
getDefaultProps() {
|
|
@@ -161,6 +158,9 @@ const AdvertisementList = Form.create()(
|
|
purchaseImg: [],
|
|
purchaseImg: [],
|
|
maximg: "",
|
|
maximg: "",
|
|
timesArr: [],
|
|
timesArr: [],
|
|
|
|
+ locations: [],
|
|
|
|
+ locationSearch:'',
|
|
|
|
+ indeterminate:false,
|
|
pagination: {
|
|
pagination: {
|
|
defaultCurrent: 1,
|
|
defaultCurrent: 1,
|
|
defaultPageSize: 10,
|
|
defaultPageSize: 10,
|
|
@@ -486,7 +486,7 @@ const AdvertisementList = Form.create()(
|
|
id: record ? record.id : this.state.id,
|
|
id: record ? record.id : this.state.id,
|
|
sort: this.state.sortNumber,
|
|
sort: this.state.sortNumber,
|
|
display: display || this.state.display,
|
|
display: display || this.state.display,
|
|
- locations: this.state.locations.join(','),
|
|
|
|
|
|
+ locations: this.state.locations.length === 0 ? undefined : this.state.locations.join(','),
|
|
position: this.state.position,
|
|
position: this.state.position,
|
|
bannerUrl: this.state.bannerUrl
|
|
bannerUrl: this.state.bannerUrl
|
|
? this.state.bannerUrl[0].response.data
|
|
? this.state.bannerUrl[0].response.data
|
|
@@ -500,6 +500,7 @@ const AdvertisementList = Form.create()(
|
|
message.warning(data.error[0].message);
|
|
message.warning(data.error[0].message);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
+ message.success('操作成功')
|
|
this.cancelAdd();
|
|
this.cancelAdd();
|
|
}
|
|
}
|
|
}.bind(this)
|
|
}.bind(this)
|