| | |
| | | |
| | | this.setState({ selectedRowKeys, activeIndex: _activeIndex }) |
| | | |
| | | let selects = [] |
| | | selectedRowKeys.forEach(item => { |
| | | selects.push(this.props.data[item]) |
| | | }) |
| | | let selects = this.props.data.filter((item, _index) => selectedRowKeys.includes(_index)) |
| | | |
| | | // selectedRowKeys.forEach(item => { |
| | | // selects.push(this.props.data[item]) |
| | | // }) |
| | | |
| | | this.props.chgSelectData(selects) |
| | | } |
| | |
| | | this.setState({ selectedRowKeys: newkeys, activeIndex: _index !== '' ? _index : null }) |
| | | } |
| | | |
| | | let selects = [] |
| | | newkeys.forEach(item => { |
| | | selects.push(this.props.data[item]) |
| | | }) |
| | | let selects = this.props.data.filter((item, _index) => newkeys.includes(_index)) |
| | | // newkeys.forEach(item => { |
| | | // selects.push(this.props.data[item]) |
| | | // }) |
| | | |
| | | this.props.chgSelectData(selects) |
| | | } |