Commit 5b190f4f authored by zhengke's avatar zhengke

1

parent 1f8be06d
...@@ -105,20 +105,32 @@ ...@@ -105,20 +105,32 @@
onchange(e) { onchange(e) {
if(e&&e.detail){ if(e&&e.detail){
data.current = e.detail.current; 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){ 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(){ setPractise(Id){
if(data.current>=1){ // if(data.current>=1){
data.setMsg.Id = data.dataList[data.current-1].Id; data.setMsg.Id = Id;
SetPracticeReview(data.setMsg).then(res=>{ // if(data.current+1==data.dataList.length){
// data.setMsg.Id = data.dataList[data.current].Id;
}) // }
} SetPracticeReview(data.setMsg).then(res=>{
})
}, },
getList() { getList() {
if(data.isShowJx){ if(data.isShowJx){
...@@ -197,11 +209,11 @@ ...@@ -197,11 +209,11 @@
this.msg.StudentId=''; this.msg.StudentId='';
this.isShowJx=false; this.isShowJx=false;
this.getList(); this.getList();
// let _that = this;
// setTimeout(function(){ // setTimeout(function(){
// let _that = this;
// console.log('111'); // console.log('111');
// _that.msg.pageSize=1000; // _that.msg.pageSize=1000;
// this.getList(); // _that.getList();
// },2000) // },2000)
} }
if(options.Type==2){ 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