|
@@ -1,21 +1,22 @@
|
|
|
<template>
|
|
|
<div id="attendance">
|
|
|
- <detail-frame title="考勤安排" :returns="toreturn">
|
|
|
- <attendanceInfo :classId="classId"></attendanceInfo>
|
|
|
- </detail-frame>
|
|
|
+ <listFrame :title="pageTitle" @query="search" :total="total" :needFilter="false" :returns="toreturn" :needAdd="false">
|
|
|
+ <attendanceInfo :classId="classId" @initTotal="initTotal"></attendanceInfo>
|
|
|
+ </listFrame>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import attendanceInfo from '@frame/parts/attendance';
|
|
|
-import detailFrame from '@frame/layout/admin/detail-frame';
|
|
|
+import listFrame from '@frame/layout/admin/list-frame';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
export default {
|
|
|
name: 'attendance',
|
|
|
props: {},
|
|
|
- components: { attendanceInfo, detailFrame },
|
|
|
+ components: { attendanceInfo, listFrame },
|
|
|
data: () => ({
|
|
|
classId: {},
|
|
|
+ total: 0,
|
|
|
}),
|
|
|
created() {
|
|
|
this.initId();
|
|
@@ -32,6 +33,9 @@ export default {
|
|
|
toreturn() {
|
|
|
window.history.go(-1);
|
|
|
},
|
|
|
+ initTotal(total) {
|
|
|
+ this.$set(this, `total`, total);
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|