修改为10秒保存一次,考试 时

This commit is contained in:
daihh
2022-08-05 14:55:18 +08:00
parent ba7293b191
commit e4f9066667
2 changed files with 15 additions and 3 deletions

View File

@@ -61,10 +61,20 @@ const delLearning = function(ms_timeline_kid) {
return ajax.post('/b1/system/user/ms-timeline-delete',{ms_timeline_kid}); return ajax.post('/b1/system/user/ms-timeline-delete',{ms_timeline_kid});
} }
/**
* 根据用户的kid获取用户的受众权限
*
* @param {Object} kid
*/
const audience = function(kid) {
return ajax.get('/b1/system/user/audience-by-user?kid='+kid);
}
export default { export default {
myLearning, myLearning,
cmtaskList, cmtaskList,
reportList, reportList,
courseList, courseList,
delLearning delLearning,
audience
} }

View File

@@ -698,7 +698,9 @@ export default {
stopReckon:function(){ stopReckon:function(){
window.clearInterval(this.reckonTimeer) window.clearInterval(this.reckonTimeer)
}, },
// 开始提交答案 /**
* 开始提交答案
*/
startUpdateAnswer:function(){ startUpdateAnswer:function(){
if(this.paperQuestion.length==0){ if(this.paperQuestion.length==0){
return; return;
@@ -709,7 +711,7 @@ export default {
let that = this; let that = this;
this.updateAnswerTimeer =window.setInterval(function(){ this.updateAnswerTimeer =window.setInterval(function(){
that.updateAnswer(); that.updateAnswer();
},60000);//测试时可以修改的变小了 },10000);//测试时可以修改的变小了
}, },
// 停止提交答案 // 停止提交答案
stopUpdateAnswer(){ stopUpdateAnswer(){