diff --git a/element-vue/src/components/personalAside.vue b/element-vue/src/components/personalAside.vue new file mode 100644 index 0000000..ccda28b --- /dev/null +++ b/element-vue/src/components/personalAside.vue @@ -0,0 +1,54 @@ + + + + + diff --git a/element-vue/src/components/teacher/navBar.vue b/element-vue/src/components/teacher/navBar.vue index f249284..301ef05 100644 --- a/element-vue/src/components/teacher/navBar.vue +++ b/element-vue/src/components/teacher/navBar.vue @@ -12,45 +12,54 @@ 申请实验室 - 我的申请记录 + 我的申请记录 + 课程管理 我的课表 - + diff --git a/element-vue/src/pages/teacher/index.vue b/element-vue/src/pages/teacher/index.vue index ad98d03..c94055e 100644 --- a/element-vue/src/pages/teacher/index.vue +++ b/element-vue/src/pages/teacher/index.vue @@ -1,6 +1,6 @@ @@ -13,35 +13,44 @@ components: { home }, - data(){ - return{ - homePrarms:[ - { name:'个人中心',func:()=> { - console.log(this.$router) - this.$router.push('/teacher/personal') - }}, - {name:'申请实验室' ,func:()=> { - this.$router.push('/teacher/applyLab')}}, - {name:'我的课表',func:()=> { - this.$router.push('/teacher/myCourse')}} - ] - } + data() { + return { + nickname: '未登录', + homeParams: [ + { + name: '个人中心', func: () => { + console.log(this.$router) + this.$router.push('/teacher/personal') + } + }, + { + name: '申请实验室', func: () => { + this.$router.push('/teacher/applyLab') + } + }, + { + name: '我的课表', func: () => { + this.$router.push('/teacher/myCourse') + } + } + ] + } }, - methods:{ + methods: { async backLogin() { await get('lb/user/logout') await showSuccess("退出成功",this) setTimeout(()=>{ this.$router.push('/login') },1000) - }, goPersonal:function () { this.$router.push('/teacher/personal') } }, - mounted() { - console.log(this.homePrarms) + async mounted() { + this.nickname = await get('lb/user/getUserName') + console.log(this.homeParams) } } diff --git a/element-vue/src/pages/teacher/personal.vue b/element-vue/src/pages/teacher/personal.vue index f397873..353632f 100644 --- a/element-vue/src/pages/teacher/personal.vue +++ b/element-vue/src/pages/teacher/personal.vue @@ -5,33 +5,7 @@ - - - -
- 更换头像(尚未开发) - - - - 我的个人信息 - - - - 站内信(尚未开发) - - - - 系统设置(尚未开发) - - -
-
+
@@ -43,9 +17,10 @@