zhangwencui
8 天以前 41acc01d0056630ac11083cf31397f2462acaf4e
src/pages/humanResources/attendance/checkin.vue
@@ -106,10 +106,7 @@
  const todayRecord = ref({});
  // 班次信息
  const workTimeDict = ref({
    startAt: "09:00",
    endAt: "18:00",
  });
  const workTimeDict = ref();
  // 当前时间展示
  const nowTime = ref("");
@@ -129,7 +126,12 @@
    findTodayPersonalAttendanceRecord({}).then(res => {
      if (res.data) {
        todayRecord.value = res.data;
        noNeedCheckIn.value = false;
        // 检查startAt和endAt是否为空,为空则无需打卡
        if (!todayRecord.value.startAt || !todayRecord.value.endAt) {
          noNeedCheckIn.value = true;
        } else {
          noNeedCheckIn.value = false;
        }
      } else {
        // 页面显示“无需打卡”
        todayRecord.value = {};