From f7258ebfaa7775f89c727a5356b851030a61ea37 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期五, 06 三月 2026 15:13:43 +0800
Subject: [PATCH] 排班接口对接
---
src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue b/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
index d84a3d0..b55ae56 100644
--- a/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
+++ b/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 => {
--
Gitblit v1.9.3