杨树林 5 years ago
commit 2d7770b119

@ -178,6 +178,7 @@ class CommonWorkItem extends Component{
item.status_time!="" && item.status_time!="" &&
<Tooltip title={ item.status.indexOf('提交中') != -1 ? '提交剩余时间' : <Tooltip title={ item.status.indexOf('提交中') != -1 ? '提交剩余时间' :
item.status.indexOf('补交中') != -1 ? '补交剩余时间' : item.status.indexOf('补交中') != -1 ? '补交剩余时间' :
item.status.indexOf('申诉中') != -1 ? '申诉剩余时间' :
item.status.indexOf('匿评中') != -1 ? '匿评剩余时间' : item.status.indexOf('匿评中') != -1 ? '匿评剩余时间' :
item.status.indexOf('匿评申诉中') != -1 ? '匿评申诉剩余时间' : ''}> item.status.indexOf('匿评申诉中') != -1 ? '匿评申诉剩余时间' : ''}>
<span className="mr20 fl">{item.status_time}</span> <span className="mr20 fl">{item.status_time}</span>

@ -18,11 +18,15 @@ export function RouteHOC(options = {}) {
} }
} }
toCreateProject = () => { toCreateProject = () => {
let url = '/projects/new'
if (window.location.port == 3007) { if (window.location.port == 3007) {
window.location.href = '/testbdweb.educoder.net/projects/new' // window.location.href
} else { url = '/testbdweb.educoder.net/projects/new'
window.location.href = '/projects/new'
} }
window.open(
url,
'_blank' // <- This is what makes it open in a new window.
);
} }
// common_homework group_homework // common_homework group_homework
// 是否是分组作业 // 是否是分组作业

Loading…
Cancel
Save