|
@@ -1,29 +1,50 @@
|
|
<template>
|
|
<template>
|
|
<div id="qingjia">
|
|
<div id="qingjia">
|
|
- <list-frame :title="pageTitle" @query="search" :total="total" :needFilter="false" :returns="toreturn" :needAdd="false"> </list-frame>
|
|
|
|
|
|
+ <listFrame :title="pageTitle" @query="search" :total="total" :needFilter="false" :returns="toreturn" :needAdd="false">
|
|
|
|
+ <leaveInfo :classId="classId" @initTotal="initTotal"></leaveInfo>
|
|
|
|
+ </listFrame>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import _ from 'lodash';
|
|
import _ from 'lodash';
|
|
|
|
+import listFrame from '@frame/layout/admin/list-frame';
|
|
|
|
+import leaveInfo from '@frame/parts/leave';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
const { mapActions: mapLeave } = createNamespacedHelpers('leave');
|
|
const { mapActions: mapLeave } = createNamespacedHelpers('leave');
|
|
export default {
|
|
export default {
|
|
name: 'qingjia',
|
|
name: 'qingjia',
|
|
props: {},
|
|
props: {},
|
|
- components: {},
|
|
|
|
|
|
+ components: { leaveInfo, listFrame },
|
|
data: function() {
|
|
data: function() {
|
|
- return {};
|
|
|
|
|
|
+ return {
|
|
|
|
+ classId: {},
|
|
|
|
+ total: 0,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ this.initId();
|
|
},
|
|
},
|
|
- created() {},
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
+ async initId() {
|
|
|
|
+ this.classId = this.id;
|
|
|
|
+ },
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {},
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {},
|
|
|
|
+ toreturn() {
|
|
|
|
+ window.history.go(-1);
|
|
|
|
+ },
|
|
|
|
+ initTotal(total) {
|
|
|
|
+ this.$set(this, `total`, total);
|
|
|
|
+ },
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
pageTitle() {
|
|
pageTitle() {
|
|
return `${this.$route.meta.title}`;
|
|
return `${this.$route.meta.title}`;
|
|
},
|
|
},
|
|
|
|
+ id() {
|
|
|
|
+ return this.$route.query.id;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
metaInfo() {
|
|
metaInfo() {
|
|
return { title: this.$route.meta.title };
|
|
return { title: this.$route.meta.title };
|