diff --git a/src/utils/api.js b/src/utils/api.js index 550c16a..b771dfb 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -8,7 +8,7 @@ export default { logins: `${host}/users/users/user/login`, //登录 verification: `${host}/users/users/user/captcha`,// 验证码图片 bindPhoneOrEmail: `${host}/users/users/userAccount/bindPhoneOrEmail`,// 绑定手机 - sendPhoneOrEmailCode: `${host} /users/users/userAccount/sendPhoneOrEmailCode`,// 手机验证码 + sendPhoneOrEmailCode: `${host}/users/users/userAccount/sendPhoneOrEmailCode`,// 手机验证码 // 订单管理 orderAdd: `${host}/nakadai/nakadai/order/add`,// 订单添加 diff --git a/src/views/setting/Person.vue b/src/views/setting/Person.vue index b107e42..867b637 100644 --- a/src/views/setting/Person.vue +++ b/src/views/setting/Person.vue @@ -736,7 +736,6 @@ export default { obj = this.subjectList.find(r =>{ return r.disciplineId === item }); - console.log(item); this.$get(this.api.queryCourseProfessionalClass,{disciplineId: item}).then(res => { this.archivesList.map(e =>{ if(e.disciplineId == item){ diff --git a/src/views/user/AddUser.vue b/src/views/user/AddUser.vue index e4783d7..60ad6a1 100644 --- a/src/views/user/AddUser.vue +++ b/src/views/user/AddUser.vue @@ -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 => {}); }, // 获取专业名称