leave.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <div id="leave">
  3. <el-table :data="tableData" border style="width: 100%">
  4. <el-table-column align="center" prop="starttime" label="请假开始时间"> </el-table-column>
  5. <el-table-column align="center" prop="endtime" label="请假结束时间"> </el-table-column>
  6. <el-table-column align="center" prop="stuname" label="学生姓名"> </el-table-column>
  7. <el-table-column align="center" prop="reason" label="请假理由"> </el-table-column>
  8. <el-table-column align="center" label="请假类型">
  9. <template slot-scope="scope">
  10. <span>{{ scope.row.type === '0' ? '请假' : '退出' }}</span>
  11. </template>
  12. </el-table-column>
  13. <el-table-column align="center" label="状态">
  14. <template slot-scope="scope">
  15. <span>{{ scope.row.status === '0' ? '审核中' : scope.row.status === '1' ? '审核通过' : scope.row.status === '2' ? '审核拒绝' : '' }}</span>
  16. </template>
  17. </el-table-column>
  18. </el-table>
  19. </div>
  20. </template>
  21. <script>
  22. import { mapState, createNamespacedHelpers } from 'vuex';
  23. export default {
  24. name: 'leave',
  25. props: {
  26. tableData: { type: Array },
  27. },
  28. components: {},
  29. data: () => ({}),
  30. created() {},
  31. computed: {},
  32. methods: {},
  33. };
  34. </script>
  35. <style lang="less" scoped></style>