|
|
|
@ -363,7 +363,7 @@ export default { |
|
|
|
|
]), |
|
|
|
|
getdata() { |
|
|
|
|
this.$get(this.api.userInfo).then(res => { |
|
|
|
|
let userInfo = res.userInfo |
|
|
|
|
let userInfo = res.userInfo || {} |
|
|
|
|
this.form = Object.assign(userInfo,res.userAccount) |
|
|
|
|
this.originAccount = this.form.account |
|
|
|
|
this.archivesList = res.personalFiles |
|
|
|
@ -384,15 +384,15 @@ export default { |
|
|
|
|
this.$set(e, 'schoolName', e.schoolName ? e.schoolName : '') |
|
|
|
|
|
|
|
|
|
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 => {}) |
|
|
|
|
}else{ |
|
|
|
|
this.$set(e, 'ProfessionalClassList', []) |
|
|
|
|
} |
|
|
|
|
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 => {}) |
|
|
|
|
}else{ |
|
|
|
|
this.$set(e, 'ProfessionalList', []) |
|
|
|
@ -487,12 +487,12 @@ export default { |
|
|
|
|
this.setInfo({ |
|
|
|
|
userName: form.userName |
|
|
|
|
}) |
|
|
|
|
util.successMsg('提交成功') |
|
|
|
|
util.successMsg('更新成功') |
|
|
|
|
this.updateTime = 0 |
|
|
|
|
this.$emit('updateStatus',false) |
|
|
|
|
this.getdata() |
|
|
|
|
}else{ |
|
|
|
|
util.errorMsg('提交失败') |
|
|
|
|
util.errorMsg('更新失败') |
|
|
|
|
} |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}, |
|
|
|
@ -525,7 +525,10 @@ export default { |
|
|
|
|
this.concatArch() |
|
|
|
|
}, |
|
|
|
|
delArchive(i) { |
|
|
|
|
const id = this.archivesList[i].personalFileId |
|
|
|
|
id && this.$post(`${this.api.deleteProfile}?personalFileIds=${id}`).then(res => { |
|
|
|
|
this.archivesList.splice(i, 1) |
|
|
|
|
}).catch(err => {}) |
|
|
|
|
}, |
|
|
|
|
bindEmail() { |
|
|
|
|
this.email = this.form.email |
|
|
|
@ -568,8 +571,8 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 获取学科类别 |
|
|
|
|
getSubject(){ |
|
|
|
|
this.$post(this.api.queryCourseDiscipline).then(res => { |
|
|
|
|
this.subjectList = res.result |
|
|
|
|
this.$get(this.api.queryCourseDiscipline).then(res => { |
|
|
|
|
this.subjectList = res.list |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}, |
|
|
|
|
// 清除学科类别 |
|
|
|
@ -610,10 +613,10 @@ export default { |
|
|
|
|
obj = this.subjectList.find(r =>{ |
|
|
|
|
return r.disciplineId === item |
|
|
|
|
}); |
|
|
|
|
this.$post(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 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -621,8 +624,10 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getProfessionalClassData(value){ |
|
|
|
|
this.$post(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 => {}) |
|
|
|
|
}, |
|
|
|
|
// 清除专业类 |
|
|
|
@ -655,7 +660,7 @@ export default { |
|
|
|
|
obj = e.ProfessionalClassList.find(r =>{ |
|
|
|
|
return r.professionalClassId === item |
|
|
|
|
}) |
|
|
|
|
e.ProfessionalList = res.result |
|
|
|
|
e.ProfessionalList = res.list |
|
|
|
|
e.professionalClassName = obj.professionalClassName |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -664,7 +669,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
getProfessionalData(value){ |
|
|
|
|
this.$get(this.api.queryCourseProfessional,{professionalClassId: value}).then(res => { |
|
|
|
|
this.ProfessionalList = res.result |
|
|
|
|
this.ProfessionalList = res.list |
|
|
|
|
}).catch(res => {}) |
|
|
|
|
}, |
|
|
|
|
// 获取专业名称 |
|
|
|
|