Merge branch 'dev_hjm_a' into dev_aliyun

# Conflicts:
#	public/react/src/modules/forums/MemoDetailMDEditor.js
dev_aliyun_beta
hjm 6 years ago
commit e058451536

@ -108,7 +108,7 @@ function buildColumns(that, student_works, studentData) {
}] }]
if (!niPingAndIsStudent && isAdminOrStudent) { if (!niPingAndIsStudent && isAdminOrStudent) {
columns.push({ columns.push({
width: 88, width: isStudent ? undefined : 88,
title: '学号', title: '学号',
dataIndex: 'student_id', dataIndex: 'student_id',
key: 'student_id', key: 'student_id',
@ -197,7 +197,7 @@ function buildColumns(that, student_works, studentData) {
</span> </span>
)}, )},
}, { }, {
width: 106, width: 106, // isStudent ? undefined : 106 , // 匿评中 只有这几列: 序号 姓名 提交状态 更新时间 匿评评分 操作
title: '更新时间', title: '更新时间',
dataIndex: 'update_time', dataIndex: 'update_time',
key: 'update_time', key: 'update_time',

@ -126,7 +126,9 @@ function buildColumns(that) {
sortOrder: sortedInfo.columnKey === 'graduation_group' && sortedInfo.order, sortOrder: sortedInfo.columnKey === 'graduation_group' && sortedInfo.order,
render: text => ( render: text => (
<span> <span className="overflowHidden1" style={{ maxWidth: '160px'}}
title={`${text && text.length > 10 ? title : ''}`}
>
{text} {text}
</span> </span>
), ),

@ -57,6 +57,7 @@ class MemoDetailMDEditor extends Component {
errorMsg: '' errorMsg: ''
}) })
}) })
commentMDEditor.cm.focus()
}, { }, {
watch: false, watch: false,
dialogLockScreen: false, dialogLockScreen: false,
@ -124,7 +125,7 @@ class MemoDetailMDEditor extends Component {
this.initMDEditor() this.initMDEditor()
} else { } else {
setTimeout(() => { setTimeout(() => {
this.commentMDEditor && this.commentMDEditor.focus() this.commentMDEditor && this.commentMDEditor.cm.focus()
}, 10) }, 10)
} }
} }

Loading…
Cancel
Save