zhangwencui
17 小时以前 f7258ebfaa7775f89c727a5356b851030a61ea37
src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
@@ -67,6 +67,11 @@
            {{ getDeptNameById(scope.row.sysDeptId) }}
          </template>
        </el-table-column>
        <el-table-column label="班次">
          <template #default="scope">
            {{ getShiftNameByValue(scope.row.shift) }}
          </template>
        </el-table-column>
        <el-table-column prop="locationName"
                         label="地点名称" />
        <el-table-column prop="longitude"
@@ -137,6 +142,7 @@
    getAttendanceRules,
    deleteAttendanceRule,
  } from "@/api/personnelManagement/attendanceRules.js";
  import { useDict } from "@/utils/dict";
  const { proxy } = getCurrentInstance();
@@ -159,6 +165,8 @@
  // 部门选项
  const deptOptions = ref([]);
  // 获取班次字典值
  const { shifts_list } = useDict("shifts_list");
  // 弹窗控制
  const dialogVisible = ref(false);
@@ -175,6 +183,13 @@
    ).padStart(2, "0")}`;
  };
  // 根据班次值获取班次名称
  const getShiftNameByValue = value => {
    if (!value) return "";
    const shift = shifts_list.value.find(item => item.value === value);
    return shift ? shift.label : value;
  };
  // 获取部门列表
  const fetchDeptOptions = () => {
    deptTreeSelect().then(response => {