From 1206b29adb97f98cbd14c1d9c91117c1f432e57e Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期六, 31 十月 2026 11:22:56 +0800
Subject: [PATCH] 考勤打卡功能开发

---
 src/pages/workbench/index.vue |   49 +++++++++++++++++++++++--------------------------
 1 files changed, 23 insertions(+), 26 deletions(-)

diff --git a/src/pages/workbench/index.vue b/src/pages/workbench/index.vue
index c0c6e89..4940a01 100644
--- a/src/pages/workbench/index.vue
+++ b/src/pages/workbench/index.vue
@@ -28,7 +28,6 @@
   const loadError = ref("");
   const activeGroup = ref("鍏ㄩ儴");
   const hiddenAppNames = [
-    "璇峰亣鐢宠",
     "璋冨矖鐢宠",
     "绂昏亴鐢宠",
     "鍔犵彮鐢宠",
@@ -42,7 +41,6 @@
     "MES 棣栭〉",
   ];
   const hiddenComponentPatterns = [
-    /^hrm\/leave\/index$/i,
     /^hrm\/transfer\/index$/i,
     /^hrm\/resignation\/index$/i,
     /^hrm\/overtime\/index$/i,
@@ -215,30 +213,29 @@
 
   const apps = computed(() => {
     const menuApps = flattenMenus(state.menus);
-    // 钃濈窘绾镐笟鏆傛椂闅愯棌鑰冨嫟鎵撳崱锛涙仮澶嶆椂绉婚櫎涓嬮潰鐨勮繃婊わ紝骞舵仮澶� attendance 鍚堝苟閫昏緫銆�
-    const visibleMenuApps = APP_COMPANY.key === "lanyu"
-      ? menuApps.filter(app => app.component !== "hrm/attendance/clock/index")
-      : menuApps;
-    // 鈥滄垜鐨勭敵璇封�濇ā鍧楁殏鏃堕殣钘忥紱鎭㈠鏃跺彇娑堜笅涓�琛屾敞閲婏紝骞跺湪杩斿洖鍊间腑閲嶆柊鍚堝苟 selfServiceApps銆�
-    // const selfServiceApps = getSelfServiceApps(menuApps);
-    // const attendance =
-    //   !isModuleEnabled("鑰冨嫟瑙勫垯") ||
-    //   visibleMenuApps.some(app => app.component === "hrm/attendance/clock/index")
-    //     ? []
-    //     : [{
-    //         id: -6009,
-    //         name: "鑰冨嫟鎵撳崱",
-    //         group: "浜哄姏璧勬簮",
-    //         component: "hrm/attendance/clock/index",
-    //         componentName: "HrmAttendanceClock",
-    //         developed: true,
-    //         tone: "cyan",
-    //         icon: "system",
-    //         shape: "shape-5",
-    //         mark: "mark-9",
-    //       }];
-    // 鎭㈠鍏ュ彛鏃跺皢杩斿洖鍊兼敼涓� visibleMenuApps.concat(attendance)銆�
-    return visibleMenuApps;
+    // 璇峰亣鏄墍鏈夊憳宸ラ兘鍙娇鐢ㄧ殑鑷姪鐢宠锛涙湁鑿滃崟鏉冮檺鏃朵娇鐢ㄦ寮忚彍鍗曪紝娌℃湁鏃惰ˉ鍏呪�滄垜鐨勭敵璇封�濆叆鍙c��
+    const selfServiceApps = getSelfServiceApps(menuApps).filter(
+      item => item.component === "hrm/leave/index"
+    );
+    const attendance =
+      !isModuleEnabled("鑰冨嫟瑙勫垯") ||
+      menuApps.some(app => app.component === "hrm/attendance/clock/index")
+        ? []
+        : [
+            {
+              id: -6009,
+              name: "鑰冨嫟鎵撳崱",
+              group: "浜哄姏璧勬簮",
+              component: "hrm/attendance/clock/index",
+              componentName: "HrmAttendanceClock",
+              developed: true,
+              tone: "cyan",
+              icon: "system",
+              shape: "shape-5",
+              mark: "mark-9",
+            },
+          ];
+    return menuApps.concat(selfServiceApps, attendance);
   });
   const groups = computed(() => [
     "鍏ㄩ儴",

--
Gitblit v1.9.3