1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11:24 +08:00

Update employee attendance pop-up on homepage

This commit is contained in:
ggb
2023-06-08 01:25:32 +08:00
parent e7d7faba67
commit 09fb08412e

View File

@@ -13,10 +13,15 @@
</template> </template>
<el-calendar ref="calendar" /> <el-calendar ref="calendar" />
</el-card> </el-card>
<el-dialog v-model="attendanceVisible"> </el-dialog> <el-dialog v-model="attendanceVisible" title="打卡" style="width: 25%">
<edit-one-attendance @setDialogVisible="closeAttendance" />
</el-dialog>
</template> </template>
<script lang="ts"> <script lang="ts">
import EditOneAttendance from '@/components/attendance/EditOneAttendance.vue'
export default { export default {
components: { EditOneAttendance },
data() { data() {
return { return {
attendanceVisible: false attendanceVisible: false
@@ -26,6 +31,9 @@ export default {
showAttendance() { showAttendance() {
this.attendanceVisible = true this.attendanceVisible = true
}, },
closeAttendance() {
this.attendanceVisible = false
},
pushTodo() { pushTodo() {
this.$router.push('/attendance/user') this.$router.push('/attendance/user')
} }