- that.application_list.length

dev_forum
hjm 5 years ago
parent 2904571e36
commit 2950466dce

@ -37,7 +37,7 @@ function buildColumns(that) {
dataIndex: 'name', dataIndex: 'name',
key: 'index', key: 'index',
render: (content, item, index) => { render: (content, item, index) => {
return <a href="javascript:;">{(that.state.page - 1) * 20 + index + 1} </a> return item.isApply == true ? '' : <a href="javascript:;">{(that.state.page - 1) * 20 + index + 1 - that.application_list.length} </a>
} }
} }
// ,{ // ,{
@ -546,6 +546,7 @@ class studentsList extends Component{
const combineArray = teachers.slice(0) const combineArray = teachers.slice(0)
if (page == 1) { if (page == 1) {
this.state.application_list && this.state.application_list.slice(0).reverse().forEach(item => { this.state.application_list && this.state.application_list.slice(0).reverse().forEach(item => {
item.isApply = true
combineArray.unshift(item) combineArray.unshift(item)
}) })
} }

Loading…
Cancel
Save