Commit 5b190f4f authored by zhengke's avatar zhengke

1

parent 1f8be06d
......@@ -105,20 +105,32 @@
onchange(e) {
if(e&&e.detail){
data.current = e.detail.current;
ctx.$refs.myRef[0].clickParent();
if(ctx.$refs.myRef&&ctx.$refs.myRef.length>0){
ctx.$refs.myRef[0].clickParent();
}
if(data.CommonType==3||data.CommonType==4||data.CommonType==5||data.CommonType==6){
this.setPractise();
var Id=0;
if(data.current>=1){
Id = data.dataList[data.current-1].Id;
this.setPractise(Id);
}
if(data.current+1==data.dataList.length){
Id = data.dataList[data.current].Id
this.setPractise(Id);
}
}
}
},
//设置已答题
setPractise(){
if(data.current>=1){
data.setMsg.Id = data.dataList[data.current-1].Id;
SetPracticeReview(data.setMsg).then(res=>{
})
}
setPractise(Id){
// if(data.current>=1){
data.setMsg.Id = Id;
// if(data.current+1==data.dataList.length){
// data.setMsg.Id = data.dataList[data.current].Id;
// }
SetPracticeReview(data.setMsg).then(res=>{
})
},
getList() {
if(data.isShowJx){
......@@ -197,11 +209,11 @@
this.msg.StudentId='';
this.isShowJx=false;
this.getList();
// let _that = this;
// setTimeout(function(){
// let _that = this;
// console.log('111');
// _that.msg.pageSize=1000;
// this.getList();
// _that.getList();
// },2000)
}
if(options.Type==2){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment