dev_forum
hjm 6 years ago
parent 6ab02ed247
commit 2dc44d92fc

@ -200,7 +200,7 @@ class CommonWorkAppraise extends Component{
<i className="font-14 color-green iconfont icon-fujian mr8" aria-hidden="true"></i> <i className="font-14 color-green iconfont icon-fujian mr8" aria-hidden="true"></i>
</a> </a>
<a href={item.url} <a href={item.url}
className="mr12 color9B9B" length="58"> className="mr12 color9B9B" length="58" title={`${item.title && item.title.length > 40 ? item.title : ''}`}>
{item.title} {item.title}
</a> </a>
<span className="color656565 mt2 color-grey-6 font-12 mr8">{item.filesize}</span> <span className="color656565 mt2 color-grey-6 font-12 mr8">{item.filesize}</span>

@ -219,7 +219,10 @@ class commonWork extends Component{
return; return;
} }
this.props.confirm({ this.props.confirm({
content: `是否确认公开?`, content: <div>
<div>设为公开后非课堂成员也可以访问查看</div>
<div>是否确认设为公开</div>
</div>,
onOk: () => { onOk: () => {
let coursesId=this.props.match.params.coursesId; let coursesId=this.props.match.params.coursesId;
const url = `/courses/${coursesId}/homework_commons/set_public.json` const url = `/courses/${coursesId}/homework_commons/set_public.json`

@ -1,6 +1,11 @@
i.iconfont { i.iconfont {
cursor: pointer; cursor: pointer;
} }
.overflowHidden1{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* BASICS */ /* BASICS */
.editormd-preview ol li { .editormd-preview ol li {

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

Loading…
Cancel
Save