mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
修改null
This commit is contained in:
@@ -17,7 +17,7 @@ export default {
|
||||
progressData:{},
|
||||
fileBaseUrl:process.env.VUE_APP_BOE_MOBILE_URL,
|
||||
uploadUrl:process.env.VUE_APP_FILE_BASE_URL,
|
||||
disabled:false,
|
||||
disabled:true,
|
||||
statusInfo:'',
|
||||
teacherInfo:'',
|
||||
pid:''
|
||||
@@ -63,16 +63,19 @@ export default {
|
||||
getProgress(id){
|
||||
getProgress({teacherId:id}).then(res=>{
|
||||
this.progressData=res.data
|
||||
if ( res.data==null ||res.data=='' ||res.data=='null' || res.data.length==0){
|
||||
this.disabled=true
|
||||
return
|
||||
if ( res.data.length>=1 ){
|
||||
res.data.forEach((item,index)=>{
|
||||
if (item.progress==100){
|
||||
|
||||
}else if (item.progress==100 && index==res.data.length-1) {
|
||||
this.disabled=false
|
||||
}else {
|
||||
this.disabled=true
|
||||
return
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
res.data.forEach((item,index)=>{
|
||||
if (item.progress!=100){
|
||||
this.disabled=true
|
||||
return
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
getJump(){
|
||||
|
||||
Reference in New Issue
Block a user