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