个人中心-专业三级联查使用新接口

dev
yujialong 3 years ago
parent f29634358d
commit 660e87ced2
  1. 2
      src/utils/api.js
  2. 1
      src/views/setting/Person.vue
  3. 20
      src/views/user/AddUser.vue

@ -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`,// 订单添加

@ -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){

@ -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 => {});
},
//

Loading…
Cancel
Save