diff --git a/src/views/manage/TeacherList.vue b/src/views/manage/TeacherList.vue index 57e2bf90..5fc5d8c2 100644 --- a/src/views/manage/TeacherList.vue +++ b/src/views/manage/TeacherList.vue @@ -158,12 +158,8 @@ 确 定 - - + + 取 消 diff --git a/src/views/manage/teacherDetails.vue b/src/views/manage/teacherDetails.vue index 20504d32..1c94b6b8 100644 --- a/src/views/manage/teacherDetails.vue +++ b/src/views/manage/teacherDetails.vue @@ -146,28 +146,11 @@ --> - - - - - - - - + + + + + 录播 面授 @@ -327,9 +310,15 @@ export default { }; }, mounted() { - this.getDetail(this.id); this.getAvatar(); }, + watch:{ + id(newVal){ + if(newVal){ + this.getDetail(newVal); + } + } + }, computed: { ...mapGetters(["userInfo"]) }, @@ -496,6 +485,12 @@ export default { }, getDetail() { //应该是自己系统的教师信息呀 + teacherApi.detail(this.newId).then(rs=>{ + if(rs.status==200){ + + } + }); + teacherBoeApi.teacherInfo(this.id).then(res => { if (res.status == 200) { const result = res.result;