|
|
|
@ -37,8 +37,9 @@
|
|
|
|
|
<table class="ui very basic center aligned table" id="status_table"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th>是否分享</th> |
|
|
|
|
<th>已分享</th> |
|
|
|
|
<th>编号</th> |
|
|
|
|
<th>提交类型</th> |
|
|
|
|
<th>题目</th> |
|
|
|
|
<th>状态</th> |
|
|
|
|
<th v-if="displayConfig.showScore">分数</th> |
|
|
|
@ -383,32 +384,32 @@ if (token != null) {
|
|
|
|
|
// } |
|
|
|
|
// data.running=false; |
|
|
|
|
if (data && data.ok) { |
|
|
|
|
if (data.roughResult.result === 'Accepted') { |
|
|
|
|
$.ajax({ |
|
|
|
|
url: `/api/pass/${cid}/${pid}/${sid}`, |
|
|
|
|
type: 'GET', |
|
|
|
|
success: function (data) { |
|
|
|
|
}, |
|
|
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) { |
|
|
|
|
alert('练习功能发生故障'); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
$.ajax({ |
|
|
|
|
url: `/api/nopass/${cid}/${pid}/${sid}`, |
|
|
|
|
type: 'GET', |
|
|
|
|
success: function (data) { |
|
|
|
|
}, |
|
|
|
|
error: function (XMLHttpRequest, textStatus, errorThrown) { |
|
|
|
|
alert('练习功能发生故障'); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (data.finished) { |
|
|
|
|
vueApp.roughData.result = data.roughResult; |
|
|
|
|
// if (!data.result) location.reload(true); |
|
|
|
|
vueApp.detailResult = data.result; |
|
|
|
|
vueApp.roughData.running = false; |
|
|
|
|
// if (data.roughResult.result === 'Accepted') { |
|
|
|
|
// $.ajax({ |
|
|
|
|
// url: `/api/pass/${cid}/${pid}/${sid}`, |
|
|
|
|
// type: 'GET', |
|
|
|
|
// success: function (data) { |
|
|
|
|
// }, |
|
|
|
|
// error: function (XMLHttpRequest, textStatus, errorThrown) { |
|
|
|
|
// alert('练习功能发生故障'); |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
// } else { |
|
|
|
|
// $.ajax({ |
|
|
|
|
// url: `/api/nopass/${cid}/${pid}/${sid}`, |
|
|
|
|
// type: 'GET', |
|
|
|
|
// success: function (data) { |
|
|
|
|
// }, |
|
|
|
|
// error: function (XMLHttpRequest, textStatus, errorThrown) { |
|
|
|
|
// alert('练习功能发生故障'); |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
// } |
|
|
|
|
socket.close(); |
|
|
|
|
} else { |
|
|
|
|
if (data.running) { |
|
|
|
|