杨树明 5 years ago
commit 4b5e7c155f

@ -200,7 +200,7 @@ class CommonWorkAppraise extends Component{
<i className="font-14 color-green iconfont icon-fujian mr8" aria-hidden="true"></i>
</a>
<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}
</a>
<span className="color656565 mt2 color-grey-6 font-12 mr8">{item.filesize}</span>

@ -303,7 +303,7 @@ function buildColumns(that, student_works) {
key: 'operation',
dataIndex: 'operation',
render: (operation, record) => (
record.work_status === 0 ? <span style={{ color: '#747A7F' }}>--</span>:
record.work_status === 0 && !isAdmin ? <span style={{ color: '#747A7F' }}>--</span>:
<div>
{/* 0 未提交 */}
{/*<React.Fragment>*/}

@ -633,7 +633,7 @@ render(){
</p>
<div style={{ width:'100%',height:'75px'}} >
<p className=" fl color-black mt25 summaryname">{homework_name}</p>
<p className=" fl color-black mt25 summaryname" title={homework_name}>{homework_name}</p>
<a className="color-grey-6 fr font-16 ml30 mt10 mr20" onClick={this.goback}>返回</a>
</div>

@ -103,7 +103,7 @@ class WorkDetailPageHeader extends Component{
/>
{category && <a className="color-grey-6 fr font-16 ml30 mt5 mr20" onClick={this.goback} style={{ marginRight: '26px'}}>返回</a>}
{category && <a className="color-grey-6 fr font-16 ml30 mt7 mr20" onClick={this.goback} style={{ marginRight: '26px'}}>返回</a>}
{this.props.update_atta &&
<React.Fragment>

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

@ -51,7 +51,7 @@ class CCommentItem extends Component{
})
.then((response) => {
if (response.data.status == 0) {
this.showNotification('撤销成功')
this.props.showNotification('撤销成功')
this.props.replySuccess()
}
})
@ -67,7 +67,7 @@ class CCommentItem extends Component{
let { item, commentIndex }=this.props;
if (!this.state.secondReplyContent || !this.state.secondReplyContent.trim()) {
this.showNotification('内容不能为空')
this.props.showNotification('内容不能为空')
return;
}
if (this.state.show_reply) {
@ -313,7 +313,7 @@ class CCommentItem extends Component{
{ item.is_invalid ? <span className="validate_area fr">失效</span> :
<React.Fragment>
<WordsBtn style="blue" className="fr" onClick={this.state.show_reply ? this.cancelReply : this.showReply}>回复</WordsBtn>
{(isAppealing || isAnonymous) && item.can_appeal && item.appeal_status == 0 && <WordsBtn style="blue" className="fr mr5" onClick={this.state.show_appeal ? this.cancelAppeal : this.showAppeal}>申诉</WordsBtn>}
{(isAppealing || isAnonymous) && item.can_appeal && item.appeal_status == 0 && <WordsBtn style="blue" className="fr mr20" onClick={this.state.show_appeal ? this.cancelAppeal : this.showAppeal}>申诉</WordsBtn>}
</React.Fragment>

@ -33,6 +33,10 @@
.course-message .panel-comment_item .editor__resize {
left: 47%;
}
.course-message .childrenCommentsView .comment_item_cont:first-child {
border-top: 1px solid #e3e3e3;
margin-top: 8px;
}
.course-message .comment_item_cont:last-child {
/* 作品评阅需要 */
border-bottom: none;

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

@ -34,24 +34,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: '角色',

Loading…
Cancel
Save