Commit e8d740e5 by yanglang123

修改banner数量为10

parent a61240e7
No preview for this file type
......@@ -276,7 +276,7 @@ class Banner extends Component {
componentWillReceiveProps(nextProps) {
if (this.props != nextProps) {
let { ListBanner = [] } = this.props;
ListBanner.splice(6);
ListBanner.splice(10);
ListBanner = ListBanner.map((itme, index) =>
Object.assign(itme, { index })
);
......@@ -353,7 +353,7 @@ class Banner extends Component {
render() {
const { switchState, inputNum, pcAccessId } = this.state;
let { ListBanner = [] } = this.props;
ListBanner.splice(6);
ListBanner.splice(10);
ListBanner = ListBanner.map((itme, index) =>
Object.assign(itme, { index })
);
......@@ -378,7 +378,7 @@ class Banner extends Component {
},
getCheckboxProps: record => ({
disabled: this.state.selectedRowKeys.length === 6 && this.state.selectedRowKeys.indexOf(record.id) === -1
disabled: this.state.selectedRowKeys.length === 10 && this.state.selectedRowKeys.indexOf(record.id) === -1
}),
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment