|
|
|
@ -6,6 +6,8 @@
|
|
|
|
|
<span>姓名:{{ information.name }}</span>
|
|
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
|
|
<span>编号:{{ information.school_id }}</span>
|
|
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
|
|
<span>教师</span>
|
|
|
|
|
<el-container style="height: 500px; border: 1px solid #eee">
|
|
|
|
|
<el-aside width="200px" style="background-color: rgb(238, 241, 246)">
|
|
|
|
|
<el-menu router>
|
|
|
|
@ -41,7 +43,13 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let id = window.location.pathname.split('/')[3];
|
|
|
|
|
axios.get('http://localhost:8181/userDetail/findById/'+id).then(function (resp){
|
|
|
|
|
let type = window.location.pathname.split('/')[2];
|
|
|
|
|
axios.get('http://localhost:8181/user/checkUseridAndType/' + id + '/' + type).then(function (resp) {
|
|
|
|
|
if (resp.data != 'success') {
|
|
|
|
|
_this.$router.push("/NoAuthority")
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
axios.get('http://localhost:8181/userDetail/findById/' + id).then(function (resp) {
|
|
|
|
|
_this.information = resp.data
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|