mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
修改为10秒保存一次,考试 时
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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(){
|
||||||
|
|||||||
Reference in New Issue
Block a user