| | |
| | | :before-close="handleClose" |
| | | > |
| | | <el-table |
| | | height="250" |
| | | :data="learningTable" |
| | | style="width: 100%;"> |
| | | <el-table-column |
| | |
| | | prop="lessonTocal" |
| | | label="总学时" |
| | | > |
| | | <template #default="scope"> |
| | | {{type == 'batch' ? scope.row.batchLessonNum : scope.row.courseLessonNum}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="lessonNum" |
| | |
| | | |
| | | <script > |
| | | import lessonReport from '@/views/onlineEducation/studentSupervision/compontents/lessonReport.vue' |
| | | import { studentDetail } from '@/api/onlineEducation/student' |
| | | import { studentCourseDetail, studentDetail } from '@/api/onlineEducation/student' |
| | | import { listCourse } from '@/api/onlineEducation/course' |
| | | export default { |
| | | name: 'addUser', |
| | |
| | | dialogStatus: '', |
| | | dataForm: {}, |
| | | uuid: '', |
| | | total: 2, |
| | | total: 0, |
| | | type: '', |
| | | queryParams: { |
| | | |
| | | pageIndex: 1, |
| | | pageSize: 10 |
| | | }, |
| | | learningTable: [ |
| | | { |
| | |
| | | methods: { |
| | | getList() { |
| | | this.loading = true; |
| | | studentDetail( this.uuid).then((res) => { |
| | | if (res.code == 200) { |
| | | this.learningTable = res.data |
| | | this.loading = false; |
| | | } |
| | | }) |
| | | if(this.type === 'course'){ |
| | | studentCourseDetail( this.uuid).then((res) => { |
| | | if (res.code == 200) { |
| | | this.learningTable = res.data |
| | | this.loading = false; |
| | | // this.total = res.data.total |
| | | } |
| | | }) |
| | | }else { |
| | | studentDetail( this.uuid).then((res) => { |
| | | if (res.code == 200) { |
| | | this.learningTable = res.data |
| | | this.loading = false; |
| | | // this.total = res.data.total |
| | | } |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | openDialog (data) { |
| | | openDialog (data,type) { |
| | | this.type = type; |
| | | this.uuid = data.uuid; |
| | | this.getList(); |
| | | this.dialogVisible = true; |