|
|
|
@ -33,24 +33,27 @@ function buildColumns(that) {
|
|
|
|
|
const { course_groups } = that.state
|
|
|
|
|
const columns = [{
|
|
|
|
|
title: '序号',
|
|
|
|
|
width: 28,
|
|
|
|
|
// dataIndex: 'name',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
key: 'index',
|
|
|
|
|
render: (content, item, index) => {
|
|
|
|
|
return <a href="javascript:;">{(that.state.page - 1) * 20 + index + 1}</a>
|
|
|
|
|
return <a href="javascript:;">{(that.state.page - 1) * 20 + index + 1} </a>
|
|
|
|
|
}
|
|
|
|
|
},{
|
|
|
|
|
title: '用户ID',
|
|
|
|
|
width: 82,
|
|
|
|
|
width: 120,
|
|
|
|
|
dataIndex: 'login',
|
|
|
|
|
key: 'login'
|
|
|
|
|
key: 'login',
|
|
|
|
|
render: (login, record) => {
|
|
|
|
|
return <span className="overflowHidden1" style={{ maxWidth: '110px'}} title={`${login.length > 8 ? login : ''}`}>{login}</span>
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '姓名',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
|
width: 140,
|
|
|
|
|
width: 120,
|
|
|
|
|
key: 'name',
|
|
|
|
|
render: (name, record) => {
|
|
|
|
|
return <a href={`/login/${record.login}`} target="_blank">{name}</a>
|
|
|
|
|
return <a href={`/login/${record.login}`} target="_blank" className="overflowHidden1" style={{ maxWidth: '110px'}}
|
|
|
|
|
title={`${name.length > 4 ? name : ''}`}>{name}</a>
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: '角色',
|
|
|
|
|