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