mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
提交
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
<el-table-column type="selection"></el-table-column>
|
<el-table-column type="selection"></el-table-column>
|
||||||
<el-table-column label="姓名" prop="name" fixed>
|
<el-table-column label="姓名" prop="name" fixed>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<a @click="handleName(scope.row)">{{scope.row.name}}</a>
|
<span class="previewStyle" @click="handleName(scope.row)">{{scope.row.name}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
|||||||
@@ -315,12 +315,22 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getDetail(this.id)
|
this.getDetail(this.id);
|
||||||
|
// this.getAvatar();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(["userInfo"])
|
...mapGetters(["userInfo"])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getAvatar(){
|
||||||
|
teacherApi.detail().then(res => {
|
||||||
|
if (res.status == 200) {
|
||||||
|
const result = res.result;
|
||||||
|
this.form = result;
|
||||||
|
this.dialogVisible = true;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
exportCourse(row){
|
exportCourse(row){
|
||||||
var eleLink = document.createElement('a');
|
var eleLink = document.createElement('a');
|
||||||
eleLink.download = '教师授课信息';
|
eleLink.download = '教师授课信息';
|
||||||
|
|||||||
Reference in New Issue
Block a user