<template>
	<!-- 考勤详情页 -->
	<p-check-work-detail v-if="key === 'checkWork'" :clockParams="params"></p-check-work-detail>
</template>

<script setup>
  import { ref, onMounted } from 'vue';
	import pCheckWorkDetail from "@/plugins/p-check-work/detail";

  let key = ref(null);
  let params = ref({});

  onMounted(() => {
    key.value = uni.$storage.getStorageSync('pluginKey');
  })

  // 查看当前员工的打卡记录
  function checkClock(data) {
    params.value = data;
    // uni.$storage.setStorageSync('pluginKey', 'checkWork');
    key.value = 'checkWork';
  }
</script>

<style>
</style>
