From 910b2ead53df78a62a06d1bdfc3e05c8c5b5fc65 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期一, 26 十月 2026 11:41:10 +0800
Subject: [PATCH] feat(hrm): 考勤规则支持百度地图选点
---
src/views/system/user/data.ts | 23 ++++++++++++++++-------
1 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/src/views/system/user/data.ts b/src/views/system/user/data.ts
index bd9ece6..83d4077 100644
--- a/src/views/system/user/data.ts
+++ b/src/views/system/user/data.ts
@@ -2,10 +2,10 @@
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { SystemUserApi } from '#/api/system/user';
-import { CommonStatusEnum, DICT_TYPE } from '../../../packages/constants/src';
-import { getDictOptions } from '../../../packages/effects/hooks/src';
-import { $t } from '../../../packages/locales/src';
-import { handleTree } from '../../../packages/utils/src';
+import { CommonStatusEnum, DICT_TYPE } from '@vben/constants';
+import { getDictOptions } from '@vben/hooks';
+import { $t } from '@vben/locales';
+import { handleTree } from '@vben/utils';
import { z } from '#/adapter/form';
import { getDeptList } from '#/api/system/dept';
@@ -32,6 +32,15 @@
placeholder: '璇疯緭鍏ョ敤鎴峰悕绉�',
},
rules: 'required',
+ },
+ {
+ fieldName: 'nickname',
+ label: '鐢ㄦ埛鏄电О',
+ component: 'Input',
+ componentProps: {
+ placeholder: '璇疯緭鍏ョ敤鎴锋樀绉�',
+ allowClear: true,
+ },
},
{
label: '鐢ㄦ埛瀵嗙爜',
@@ -260,11 +269,11 @@
export function useGridFormSchema(): VbenFormSchema[] {
return [
{
- fieldName: 'username',
- label: '鐢ㄦ埛鍚嶇О',
+ fieldName: 'keyword',
+ label: '鐢ㄦ埛鍚嶇О/鏄电О',
component: 'Input',
componentProps: {
- placeholder: '璇疯緭鍏ョ敤鎴峰悕绉�',
+ placeholder: '鎼滅储鍚嶇О鎴栨樀绉�',
allowClear: true,
},
},
--
Gitblit v1.9.3