payAppeal.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!-- -->
  2. <template>
  3. <div class="m-container">
  4. <h2>
  5. <div class="squrt"></div>课时申诉
  6. </h2>
  7. <div class="m-core">
  8. <el-form :inline="true"
  9. :model="searchForm">
  10. <el-form-item>
  11. <el-input v-model.trim="searchForm.search"
  12. @keyup.enter.native="search"
  13. placeholder></el-input>
  14. </el-form-item>
  15. </el-form>
  16. <div class="tableWrap">
  17. <el-table style="width: 100%"
  18. :header-cell-style="{background:'#EDEEF0',color:'#444'}"
  19. :data="tableList">
  20. <el-table-column align="center"
  21. prop="studentId"
  22. label="分部"></el-table-column>
  23. <el-table-column align="center"
  24. prop="studentId"
  25. label="课程编号"></el-table-column>
  26. <el-table-column align="center"
  27. prop="studentId"
  28. label="课程名称"></el-table-column>
  29. <el-table-column align="center"
  30. prop="studentId"
  31. label="课程时间"></el-table-column>
  32. <el-table-column align="center"
  33. prop="studentId"
  34. label="签到状态"></el-table-column>
  35. <el-table-column align="center"
  36. prop="studentId"
  37. label="签退状态"></el-table-column>
  38. <el-table-column align="center"
  39. prop="studentId"
  40. label="老师名称"></el-table-column>
  41. <el-table-column align="center"
  42. prop="studentId"
  43. label="状态"></el-table-column>
  44. <el-table-column align="center"
  45. prop="studentId"
  46. label="申诉处理者"></el-table-column>
  47. </el-table>
  48. <pagination :total="rules.total"
  49. :page.sync="rules.page"
  50. :limit.sync="rules.limit"
  51. :page-sizes="rules.page_size"
  52. @pagination="getList" />
  53. </div>
  54. </div>
  55. </div>
  56. </template>
  57. <script>
  58. import axios from "axios";
  59. import { getToken } from "@/utils/auth";
  60. import pagination from "@/components/Pagination/index";
  61. import load from "@/utils/loading";
  62. import { getTeacher, getEmployeeOrgan } from "@/api/buildTeam";
  63. export default {
  64. components: { pagination },
  65. data () {
  66. return {
  67. searchForm: {
  68. search: null
  69. },
  70. teacherList: [],
  71. tableList: [],
  72. organList: [],
  73. rules: {
  74. // 分页规则
  75. limit: 10, // 限制显示条数
  76. page: 1, // 当前页
  77. total: 0, // 总条数
  78. page_size: [10, 20, 40, 50] // 选择限制显示条数
  79. },
  80. };
  81. },
  82. //生命周期 - 创建完成(可以访问当前this实例)
  83. created () { },
  84. //生命周期 - 挂载完成(可以访问DOM元素)
  85. mounted () {
  86. getTeacher().then(res => {
  87. if (res.code == 200) {
  88. this.teacherList = res.data;
  89. }
  90. });
  91. getEmployeeOrgan().then(res => {
  92. if (res.code == 200) {
  93. this.organList = res.data;
  94. }
  95. });
  96. // 获取分部
  97. this.init();
  98. },
  99. activated () {
  100. this.init();
  101. },
  102. methods: {
  103. init () {
  104. },
  105. getList () { }
  106. }
  107. };
  108. </script>
  109. <style lang='scss' scoped>
  110. </style>