Merge branch 'zcwy_1127_teacher' into master_1202

This commit is contained in:
joshen
2024-12-12 16:46:44 +08:00

View File

@@ -15,12 +15,9 @@
<div style="margin-top:20px;"> <div style="margin-top:20px;">
<el-table :data="pageData" border stripe> <el-table :data="pageData" border stripe>
<el-table-column <el-table-column
label="课程编号" label="课程时间"
prop="index" prop="courseTime"
width="100px"> width="200px">
<template v-slot="scope">
<span>{{scope.$index+1}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="课程名称" label="课程名称"
@@ -28,57 +25,38 @@
width="200px"> width="200px">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="课程日期" label="开课场地"
prop="teachingDate" prop="address"
width="200px"> width="240px">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="内容分类" label="所属课程"
prop="courseTypeName" prop="parentCourse"
width="200px"> width="120px">
</el-table-column>
<el-table-column label="课程类型" prop="type" width="120px">
<template v-slot="scope">
<span>{{
{
"0": "在线课",
"1": "面授课",
"2": "课程开发",
"3": "作业员入模培训",
"4": "其他",
}[scope.row.type+'']
}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="学习总人数" label="所属项目"
prop="studys" prop="parentProject"
width="120px"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="授课时长(分钟)" label="所属路径"
prop="teaching" prop="parentRoute"
width="120px" width="200px"
></el-table-column>
<el-table-column
label="学习总人数"
prop="studentNumber"
width="100px"
></el-table-column>
<el-table-column
label="时长(分钟)"
width="100px"
prop="period"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="评分" label="评分"
prop="score"
width="100px" width="100px"
></el-table-column> prop="score"
<el-table-column label="开课状态" width="100px" prop="courseStatus">
<template v-slot="scope">
<span>{{
{
"0": "未开课",
"1": "已开课",
}[scope.row.courseStatus+'']
}}</span>
</template>
</el-table-column>
<el-table-column
label="备注"
width="200px"
prop="remark"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
@@ -114,23 +92,23 @@
import apiCourse from '../../api/boe/courseRecord.js'; import apiCourse from '../../api/boe/courseRecord.js';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
export default { export default {
data(){ data(){
return { return {
pageData:[], pageData:[],
keyword:'', keyword:'',
pageInfo:{}, pageInfo:{},
} }
}, },
mounted() { mounted() {
this.recordList(1); this.recordList(1);
}, },
computed: { computed: {
...mapGetters(['userInfo']) ...mapGetters(['userInfo'])
}, },
methods: { methods: {
// 导出所有记录 // 导出所有记录
exportFile(){ exportFile(){
@@ -187,16 +165,14 @@ export default {
let req = { let req = {
//     userId:"6B049FAF-C314-7CCF-0D28-0D23F4C42531", //     userId:"6B049FAF-C314-7CCF-0D28-0D23F4C42531",
userId: this.userInfo.sysId, userId: this.userInfo.sysId,
courseName:this.keyword, keyword:this.keyword,
    page:pageIndex,     page:pageIndex,
    pageSize:10     pageSize:10
} }
apiCourse.getListByToken(req).then(res=>{ apiCourse.courseRecordList(req).then(res=>{
console.log(res,'resssssssssssss') if(res.status == 200) {
if(res.code == 200) { this.pageData = res.result.list;
this.pageData = res.data.records; this.pageInfo = res.result.pageInfo;
console.log(this.pageData,'pageData')
this.pageInfo.total = Number(20);
} else { } else {
this.$message({ this.$message({
type: 'error', type: 'error',
@@ -217,14 +193,14 @@ export default {
this.recordList(this.pageInfo.pageIndex); this.recordList(this.pageInfo.pageIndex);
}, },
}, },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.Export{ .Export{
display: flex; display: flex;
padding-top: 10px; padding-top: 10px;
} }
</style> </style>