|
|
|
@ -622,13 +622,13 @@ export default { |
|
|
|
|
personalFileList.map(e =>{ |
|
|
|
|
this.$set(e, 'subjectList', this.subjectList); |
|
|
|
|
if(e.disciplineId){ |
|
|
|
|
this.$post(this.api.queryCourseProfessionalClass,[e.disciplineId]).then(res => { |
|
|
|
|
this.$set(e, 'ProfessionalClassList', res.result); |
|
|
|
|
this.$get(this.api.queryCourseProfessionalClass, { disciplineId: e.disciplineId }).then(res => { |
|
|
|
|
this.$set(e, 'ProfessionalClassList', res.list); |
|
|
|
|
}).catch(res => {}); |
|
|
|
|
} |
|
|
|
|
if(e.professionalClassId){ |
|
|
|
|
this.$get(this.api.queryCourseProfessional,{ professionalClassId: e.professionalClassId }).then(res => { |
|
|
|
|
this.$set(e, 'ProfessionalList', res.result); |
|
|
|
|
this.$set(e, 'ProfessionalList', res.list); |
|
|
|
|
}).catch(res => {}); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -688,7 +688,7 @@ export default { |
|
|
|
|
// 获取学科类别 |
|
|
|
|
getSubject(){ |
|
|
|
|
this.$get(this.api.queryCourseDiscipline).then(res => { |
|
|
|
|
this.subjectList = res.message |
|
|
|
|
this.subjectList = res.list |
|
|
|
|
}).catch(res => {}); |
|
|
|
|
}, |
|
|
|
|
// 清除学科类别 |
|
|
|
@ -729,10 +729,10 @@ export default { |
|
|
|
|
obj = this.subjectList.find(r =>{ |
|
|
|
|
return r.disciplineId === item; |
|
|
|
|
}); |
|
|
|
|
this.$get(this.api.queryCourseProfessionalClass,[item]).then(res => { |
|
|
|
|
this.$get(this.api.queryCourseProfessionalClass,{disciplineId: item}).then(res => { |
|
|
|
|
this.archivesList.map(e =>{ |
|
|
|
|
if(e.disciplineId == item){ |
|
|
|
|
e.ProfessionalClassList = res.result |
|
|
|
|
e.ProfessionalClassList = res.list |
|
|
|
|
e.disciplineName = obj.disciplineName |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -740,8 +740,8 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getProfessionalClassData(value){ |
|
|
|
|
this.$get(this.api.queryCourseProfessionalClass,[value]).then(res => { |
|
|
|
|
this.ProfessionalClassList = res.result |
|
|
|
|
this.$get(this.api.queryCourseProfessionalClass,{disciplineId: value}).then(res => { |
|
|
|
|
this.ProfessionalClassList = res.list |
|
|
|
|
}).catch(res => {}); |
|
|
|
|
}, |
|
|
|
|
// 清除专业类 |
|
|
|
@ -780,7 +780,7 @@ export default { |
|
|
|
|
obj = e.ProfessionalClassList.find(r =>{ |
|
|
|
|
return r.professionalClassId === item; |
|
|
|
|
}); |
|
|
|
|
e.ProfessionalList = res.result |
|
|
|
|
e.ProfessionalList = res.list |
|
|
|
|
e.professionalClassName = obj.professionalClassName |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -789,7 +789,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
getProfessionalData(value){ |
|
|
|
|
this.$get(this.api.queryCourseProfessional,{professionalClassId: value}).then(res => { |
|
|
|
|
this.ProfessionalList = res.result |
|
|
|
|
this.ProfessionalList = res.list |
|
|
|
|
}).catch(res => {}); |
|
|
|
|
}, |
|
|
|
|
// 获取专业名称 |
|
|
|
|