12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <template>
- <div id="checkWork">
- <el-row>
- <el-col :span="24" class="info">
- <el-col :span="24" class="top">
- <el-col :span="15" class="title">
- 学生考勤情况
- </el-col>
- <el-col :span="9" class="btn">
- <el-button type="primary" @click="checkClick()">考勤</el-button>
- </el-col>
- </el-col>
- <el-col :span="24" class="main">
- <checkList></checkList>
- </el-col>
- <el-col :span="24" class="foot">
- <footInfo></footInfo>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import checkList from '@/layout/user/checkList.vue';
- import footInfo from '@/layout/index/footInfo.vue';
- import { createNamespacedHelpers, mapGetters } from 'vuex';
- const { mapActions: mapCheck } = createNamespacedHelpers('attendance');
- export default {
- name: 'checkWork',
- props: {},
- components: {
- checkList, //考勤列表
- footInfo, //底部信息
- },
- data: () => ({}),
- created() {
- this.searchInfo();
- },
- computed: {},
- methods: {
- ...mapCheck(['query']),
- async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
- const res = await this.query({ skip, limit, ...info });
- console.log(res.data);
- // this.$set(this, `leaveList`, res.data);
- },
- checkClick() {
- console.log('考勤管理');
- },
- },
- };
- </script>
- <style lang="less" scoped>
- .info {
- width: 100%;
- min-height: 667px;
- position: relative;
- background-color: #edeae8;
- }
- .top {
- height: 50px;
- line-height: 50px;
- margin: 0 0 10px 0;
- background: #fff;
- }
- .top .title {
- padding: 0 15px;
- font-size: 20px;
- }
- .top .btn {
- text-align: right;
- padding: 0 30px;
- }
- .main {
- margin: 0 0 50px 0;
- }
- </style>
|