From 5e7ec2238e3cdc66e440d7f839aaa2fe56d61f89 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期五, 30 十月 2026 20:23:30 +0800
Subject: [PATCH] feat(hrm,bi): 移植长辉电力的考勤请假展示与 BI 大屏
---
src/views/hrm/attendance/record/index.vue | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/views/hrm/attendance/record/index.vue b/src/views/hrm/attendance/record/index.vue
index 6aabd6c..7f19806 100644
--- a/src/views/hrm/attendance/record/index.vue
+++ b/src/views/hrm/attendance/record/index.vue
@@ -5,13 +5,13 @@
import { Page, useVbenModal } from '#/packages/effects/common-ui/src';
import { downloadFileFromBlobPart } from '#/packages/utils/src';
-import { Button, message } from 'ant-design-vue';
+import { message, Tag } from 'ant-design-vue';
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import { exportAttendanceRecord, getAttendanceRecordPage } from '#/api/hrm/attendance/record';
import { $t } from '#/locales';
-import { useGridColumns, useGridFormSchema } from './data';
+import { formatLeaveTypeNames, useGridColumns, useGridFormSchema } from './data';
import ClockPanel from './modules/clock-panel.vue';
import ImportForm from './modules/import-form.vue';
@@ -108,6 +108,15 @@
]"
/>
</template>
+ <template #leave="{ row }">
+ <Tag v-if="row.leaveFlag" color="blue">
+ {{ formatLeaveTypeNames(row.leaveTypes) || '璇峰亣' }}
+ <span v-if="Number(row.leaveHours) > 0">
+ {{ Number(row.leaveHours).toFixed(2) }}h
+ </span>
+ </Tag>
+ <span v-else>-</span>
+ </template>
</Grid>
</Page>
</template>
\ No newline at end of file
--
Gitblit v1.9.3