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