ChapterTable.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <div>
  3. <el-table
  4. :default-expand-all="true"
  5. border
  6. :data="tabledata"
  7. style="width: 100%; border-radius: 4px; overflow: hidden"
  8. :header-cell-style="{
  9. 'background-color': '#D9ECFA',
  10. padding: '8px',
  11. color: '#1565C0',
  12. 'border-right-color': '#1565C0',
  13. 'border-left-color': '#1565C0',
  14. }"
  15. >
  16. <el-table-column label="章" type="expand" width="70px">
  17. <template slot-scope="scope">
  18. <Lesson-table
  19. :tabledata="scope.row.classPeriodSectionList"
  20. ></Lesson-table>
  21. </template>
  22. </el-table-column>
  23. <el-table-column align="center" prop="realName" label="姓名">
  24. </el-table-column>
  25. <el-table-column align="center" prop="typeName" label="章标题">
  26. </el-table-column>
  27. <el-table-column align="center" prop="classHours" label="学时">
  28. </el-table-column>
  29. <el-table-column align="center" label="开始学习时间">
  30. <template slot-scope="scope">
  31. <span>
  32. {{ $methodsTools.onlyForma(scope.row.studyStartTime) }}
  33. </span>
  34. </template>
  35. </el-table-column>
  36. <el-table-column align="center" label="结束学习时间">
  37. <template slot-scope="scope">
  38. <span>
  39. {{ $methodsTools.onlyForma(scope.row.studyEndTime) }}
  40. </span>
  41. </template>
  42. </el-table-column>
  43. <el-table-column align="center" prop="performance" label="测试成绩">
  44. </el-table-column>
  45. </el-table>
  46. </div>
  47. </template>
  48. <script>
  49. import LessonTable from "./LessonTable.vue";
  50. export default {
  51. props: {
  52. tabledata: {
  53. type: Array,
  54. default: () => {
  55. return [];
  56. },
  57. },
  58. },
  59. data() {
  60. return {};
  61. },
  62. components: {
  63. LessonTable,
  64. },
  65. };
  66. </script>
  67. <style>
  68. </style>