Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_home
SylorHuang 5 years ago
commit 031ecf9cc4

@ -16,7 +16,7 @@ class Cooperative::BaseController < ApplicationController
private
def current_laboratory
@_current_laboratory ||= Laboratory.find_by_subdomain('hut' || request.subdomain)
@_current_laboratory ||= Laboratory.find_by_subdomain(request.subdomain)
end
def current_setting_or_default(name)

@ -246,13 +246,13 @@ class PollDetailTabFirst extends Component{
dataIndex: 'No',
key: 'No',
className:"edu-txt-center",
width:110
width:120
}, {
title: '姓名',
dataIndex: 'name',
key: 'name',
className:"edu-txt-center",
width:160
width:170
}, {
title: '学号',
dataIndex: 'StudentNo',
@ -269,11 +269,11 @@ class PollDetailTabFirst extends Component{
title: '分班',
key: 'classes',
dataIndex: 'classes',
width:160,
width:220,
className:poll_types && poll_types.groups_count > 0 ? "edu-txt-center":"edu-txt-center none",
render:(classes,item,index)=>{
return(
item.classes ? <span>{item.classes}</span> : <span className="color-grey-9">--</span>
item.classes ? <span style={{maxWidth:'208px',display:"block"}} title={item.classes} className="task-hide">{item.classes}</span> : <span className="color-grey-9">--</span>
)
}
}, {
@ -281,7 +281,7 @@ class PollDetailTabFirst extends Component{
dataIndex: 'status',
key: 'status',
className:"edu-txt-center",
width:160,
width:170,
render:(status,item,index)=>{
return(
item.status == 1 ?<span className='color-green'>按时提交</span>:<span></span>
@ -292,7 +292,7 @@ class PollDetailTabFirst extends Component{
dataIndex: 'time',
key: 'time',
className:"edu-txt-center",
width:160,
width:170,
sorter: true,
defaultSortOrder: 'descend',
sortDirections: sortDirections,
@ -395,7 +395,7 @@ class PollDetailTabFirst extends Component{
{/* </div>*/}
{/*}*/}
</div>}
<div className="edu-table edu-back-white minH-560">
<div className="edu-table edu-back-white minH-560 pollResultList">
{
data && data.length > 0 ? <Table columns={columns} dataSource={data} pagination={false}
onChange={this.table1handleChange}></Table> : <NoneData></NoneData>

@ -338,7 +338,9 @@ textarea:read-only{
border:1px solid #FF0000;
border-radius: 5px;
}
.pollResultList .ant-table-thead > tr > th,.pollResultList .ant-table-tbody > tr > td{
padding:15px 6px;
}
/* 试卷 */
.setScoreInput{
width: 60px!important;height: 30px!important;box-sizing: border-box;

Loading…
Cancel
Save