|
@@ -50,6 +50,7 @@ export default {
|
|
navShow: true,
|
|
navShow: true,
|
|
}),
|
|
}),
|
|
created() {
|
|
created() {
|
|
|
|
+ console.log(this.user);
|
|
this.searchSite();
|
|
this.searchSite();
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -73,6 +74,7 @@ export default {
|
|
// 查询登录用户信息
|
|
// 查询登录用户信息
|
|
async searchSite() {
|
|
async searchSite() {
|
|
// 1:班主任,4:学生
|
|
// 1:班主任,4:学生
|
|
|
|
+ console.log(this.user);
|
|
if (this.user.type === '1') {
|
|
if (this.user.type === '1') {
|
|
const res = await this.directorFetch(this.user.userid);
|
|
const res = await this.directorFetch(this.user.userid);
|
|
const arr = await this.deptFetch(res.data.department);
|
|
const arr = await this.deptFetch(res.data.department);
|
|
@@ -83,7 +85,7 @@ export default {
|
|
this.$set(this, `info`, res.data);
|
|
this.$set(this, `info`, res.data);
|
|
} else if (this.user.type === '3') {
|
|
} else if (this.user.type === '3') {
|
|
const res = await this.teacherfetch(this.user.userid);
|
|
const res = await this.teacherfetch(this.user.userid);
|
|
- console.log(res.data);
|
|
|
|
|
|
+ console.log(res.data);
|
|
this.$set(this, `jiaoshiinfo`, res.data);
|
|
this.$set(this, `jiaoshiinfo`, res.data);
|
|
}
|
|
}
|
|
},
|
|
},
|