mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 01:46:42 +08:00
教师
This commit is contained in:
@@ -256,13 +256,13 @@
|
||||
},
|
||||
methods:{
|
||||
handleCloseOne() {
|
||||
console.log("1111");
|
||||
// this.teacherDetailsId = '';
|
||||
this.showTeacherDetails = false;
|
||||
},
|
||||
handleName(row) {
|
||||
this.showTeacherDetails = true;
|
||||
this.teacherDetailsId = row.id;
|
||||
// this.teacherDetailsId = row.sysId;
|
||||
this.teacherDetailsId = '13BEBDBD-3D28-244D-648D-0CBD6796717C'
|
||||
},
|
||||
getTeachersystem() {
|
||||
teacherBoeApi.teacherSystem(this.userInfo.sysId).then(res=>{
|
||||
@@ -600,7 +600,7 @@
|
||||
eleLink.download = '教师授课信息';
|
||||
eleLink.style.display = 'none';
|
||||
eleLink.setAttribute('target', '_blank');
|
||||
eleLink.href = `${process.env.VUE_APP_BASE_API}/xboe/m/course/manage/export-teacher-course?teacherId=${row.id}`;
|
||||
eleLink.href = `${process.env.VUE_APP_BASE_API}/xboe/teacher/compose/export/courses?tid=${row.id}&sysId=${row.sysId}&courseType=0,1,3`;
|
||||
document.body.appendChild(eleLink);
|
||||
eleLink.click();
|
||||
document.body.removeChild(eleLink);
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="授课记录" name="second">
|
||||
<div style="display:flex">
|
||||
<div><el-button type="primary">导出授课记录</el-button></div>
|
||||
<div><el-button type="primary" @click="exportCourse()">导出授课记录</el-button></div>
|
||||
<div style="margin: 0 5px"><el-select v-model="records.courseType" placeholder="请选择" clearable @change="getCourseScore()">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
@@ -321,6 +321,16 @@ export default {
|
||||
...mapGetters(["userInfo"])
|
||||
},
|
||||
methods: {
|
||||
exportCourse(row){
|
||||
var eleLink = document.createElement('a');
|
||||
eleLink.download = '教师授课信息';
|
||||
eleLink.style.display = 'none';
|
||||
eleLink.setAttribute('target', '_blank');
|
||||
eleLink.href = `${process.env.VUE_APP_BASE_API}/xboe/teacher/compose/export/courses?teacherId=${this.id}`;
|
||||
document.body.appendChild(eleLink);
|
||||
eleLink.click();
|
||||
document.body.removeChild(eleLink);
|
||||
},
|
||||
recordsDel(row) {
|
||||
this.$confirm('此操作将永久删除该记录, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
@@ -448,14 +458,13 @@ export default {
|
||||
this.records.page = val
|
||||
this.getCourseScore()
|
||||
},
|
||||
getDetail(id) {
|
||||
this.saveLoading = false;
|
||||
this.newOrEdit = "编辑教师";
|
||||
this.allowInput = true;
|
||||
teacherApi.detail(id).then(res => {
|
||||
getDetail() {
|
||||
teacherBoeApi.teacherInfo(this.id).then(res => {
|
||||
if (res.status == 200) {
|
||||
const result = res.result;
|
||||
this.form = result;
|
||||
} else {
|
||||
this.$message.error(res.message);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user