|
@@ -128,7 +128,7 @@
|
|
|
<c:if test="${marker.enable==false}">
|
|
|
<a href="javascript:void(0)" class="toggle-button" data-id="${marker.id}" data-value="true">启用</a>
|
|
|
</c:if>
|
|
|
- <a href="javascript:void(0)" class="task-button" data-id="${marker.id}" onclick="showTaskWin('${marker.id}','${marker.subject.leftCount}');">设置评卷数</a>
|
|
|
+ <a href="javascript:void(0)" class="task-button" data-id="${marker.id}" onclick="showTaskWin('${marker.id}');">设置评卷数</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
@@ -141,7 +141,7 @@
|
|
|
</div>
|
|
|
<div class="pagination">${query}</div>
|
|
|
<script type="text/javascript">
|
|
|
- var markerId ;var leftCount;
|
|
|
+ var markerId ;
|
|
|
$("#btnExport").click(function(){
|
|
|
top.$.jBox.confirm("确认要导出评卷员数据吗?","系统提示",function(v,h,f){
|
|
|
if(v=="ok"){
|
|
@@ -180,16 +180,11 @@ $('.toggle-button').click(function(){
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
-function showTaskWin(obj,obj1){
|
|
|
- if(parseInt(obj1) == 0){
|
|
|
- alert('该科目下任务已全部评完!');
|
|
|
- return false;
|
|
|
- }
|
|
|
+function showTaskWin(obj){
|
|
|
$('.wrong').html('');
|
|
|
$('.task-count').val('');
|
|
|
$('.taskWindow').show();
|
|
|
markerId = obj;
|
|
|
- leftCount = obj1;
|
|
|
}
|
|
|
$('.image-close').click(function () {
|
|
|
$('.taskWindow').hide();
|
|
@@ -202,14 +197,9 @@ $('.btn-info').click(function () {
|
|
|
wrongMessage.html('任务数不能为空!');
|
|
|
return false;
|
|
|
}else {
|
|
|
- if(!/^[0-9]*$/.test(taskCount)){
|
|
|
- wrongMessage.html('请输入数字!');
|
|
|
+ if(!/^[1-9]*$/.test(taskCount)){
|
|
|
+ wrongMessage.html('请输入正整数!');
|
|
|
return false;
|
|
|
- }else {
|
|
|
- if(parseInt(taskCount)>parseInt(leftCount)){
|
|
|
- wrongMessage.html('任务数不能大于剩下未评数:'+leftCount);
|
|
|
- return false;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
$.post('${ctx}/admin/exam-param/marker/setTaskCount', {id: markerId,taskCount:taskCount}, function(result){
|