checkWork.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <div id="checkWork">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="top">
  6. <el-col :span="15" class="title">
  7. 学生考勤情况
  8. </el-col>
  9. <el-col :span="9" class="btn">
  10. <el-button type="primary" @click="checkClick()">考勤</el-button>
  11. </el-col>
  12. </el-col>
  13. <el-col :span="24" class="main">
  14. <checkList></checkList>
  15. </el-col>
  16. <el-col :span="24" class="foot">
  17. <footInfo></footInfo>
  18. </el-col>
  19. </el-col>
  20. </el-row>
  21. </div>
  22. </template>
  23. <script>
  24. import checkList from '@/layout/user/checkList.vue';
  25. import footInfo from '@/layout/index/footInfo.vue';
  26. import { createNamespacedHelpers, mapGetters } from 'vuex';
  27. const { mapActions: mapCheck } = createNamespacedHelpers('attendance');
  28. export default {
  29. name: 'checkWork',
  30. props: {},
  31. components: {
  32. checkList, //考勤列表
  33. footInfo, //底部信息
  34. },
  35. data: () => ({}),
  36. created() {
  37. this.searchInfo();
  38. },
  39. computed: {},
  40. methods: {
  41. ...mapCheck(['query']),
  42. async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
  43. const res = await this.query({ skip, limit, ...info });
  44. console.log(res.data);
  45. // this.$set(this, `leaveList`, res.data);
  46. },
  47. checkClick() {
  48. console.log('考勤管理');
  49. },
  50. },
  51. };
  52. </script>
  53. <style lang="less" scoped>
  54. .info {
  55. width: 100%;
  56. min-height: 667px;
  57. position: relative;
  58. background-color: #edeae8;
  59. }
  60. .top {
  61. height: 50px;
  62. line-height: 50px;
  63. margin: 0 0 10px 0;
  64. background: #fff;
  65. }
  66. .top .title {
  67. padding: 0 15px;
  68. font-size: 20px;
  69. }
  70. .top .btn {
  71. text-align: right;
  72. padding: 0 30px;
  73. }
  74. .main {
  75. margin: 0 0 50px 0;
  76. }
  77. </style>