mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
讲师视频下一步展示问题
This commit is contained in:
@@ -64,16 +64,17 @@ export default {
|
|||||||
getProgress({teacherId:id}).then(res=>{
|
getProgress({teacherId:id}).then(res=>{
|
||||||
this.progressData=res.data
|
this.progressData=res.data
|
||||||
if ( res.data.length>=1 ){
|
if ( res.data.length>=1 ){
|
||||||
res.data.forEach((item,index)=>{
|
const isAll = true;
|
||||||
if (item.progress==100 && index==res.data.length-1){
|
res.data.some(item => {
|
||||||
this.disabled=false
|
if (item.progress != 100) {
|
||||||
}else if (item.progress==100) {
|
this.disabled = true;
|
||||||
}else {
|
isAll = false;
|
||||||
this.disabled=true
|
return true;
|
||||||
return
|
}
|
||||||
|
});
|
||||||
|
if (isAll) {
|
||||||
|
this.disabled = false;
|
||||||
}
|
}
|
||||||
})
|
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user