From 0ee0065c6af1d007df7b8bff33605a5703bfcf93 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 29 Jan 2026 20:18:00 +0800 Subject: [PATCH 1/4] feat: update default selection settings for current user and department --- .../FormCreate/src/components/useApiSelect.tsx | 11 +---------- .../FormCreate/src/useFormCreateDesigner.ts | 4 ++-- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/components/FormCreate/src/components/useApiSelect.tsx b/src/components/FormCreate/src/components/useApiSelect.tsx index 25e9d70d..847eb077 100644 --- a/src/components/FormCreate/src/components/useApiSelect.tsx +++ b/src/components/FormCreate/src/components/useApiSelect.tsx @@ -89,31 +89,22 @@ export const useApiSelect = (option: ApiSelectProps) => { // 设置默认当前用户(仅当 defaultCurrentUser 为 true 且无预设值时) const setDefaultCurrentUser = () => { - console.log('[UserSelect] setDefaultCurrentUser called, defaultCurrentUser:', props.defaultCurrentUser) - // 仅当组件名为 UserSelect 且 defaultCurrentUser 为 true 时处理 if (option.name !== 'UserSelect' || !props.defaultCurrentUser) { - console.log('[UserSelect] skip - not UserSelect or defaultCurrentUser is false') return } - // 检查是否已有预设值(预设值优先级高于默认当前用户) if (hasValidPresetValue()) { - console.log('[UserSelect] has preset value, skip:', attrs.modelValue) return } - + // 获取当前用户 ID const userStore = useUserStoreWithOut() const user = userStore.getUser const currentUserId = user?.id - - console.log('[UserSelect] current user:', user, 'userId:', currentUserId) - if (currentUserId) { // 根据多选/单选模式设置默认值 const defaultValue = props.multiple ? [currentUserId] : currentUserId - console.log('[UserSelect] setting default value:', defaultValue) emit('update:modelValue', defaultValue) } } diff --git a/src/components/FormCreate/src/useFormCreateDesigner.ts b/src/components/FormCreate/src/useFormCreateDesigner.ts index 5769b4ba..0f528838 100644 --- a/src/components/FormCreate/src/useFormCreateDesigner.ts +++ b/src/components/FormCreate/src/useFormCreateDesigner.ts @@ -58,7 +58,7 @@ export const useFormCreateDesigner = async (designer: Ref) => { type: 'switch', field: 'defaultCurrentUser', title: '默认选中当前用户', - value: true + value: false } ] }) @@ -81,7 +81,7 @@ export const useFormCreateDesigner = async (designer: Ref) => { type: 'switch', field: 'defaultCurrentDept', title: '默认选中当前部门', - value: true + value: false } ] }) From 04a69872113b23126849c2e60b3ff508cdba200d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 29 Jan 2026 23:49:33 +0800 Subject: [PATCH 2/4] =?UTF-8?q?(=E3=80=83'=E2=96=BD'=E3=80=83)=20v2026.01?= =?UTF-8?q?=20=E5=8F=91=E5=B8=83=EF=BC=9A=E5=A4=A7=E5=A4=A7=E5=A4=A7?= =?UTF-8?q?=E5=A4=A7=E5=AE=8C=E5=96=84=20vben5=20=E7=9A=84=20antd=E3=80=81?= =?UTF-8?q?vben=20=E7=89=88=E6=9C=AC=E7=9A=84=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20IoT=20=E5=90=84=E7=A7=8D=E6=8E=A5=E5=85=A5?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1a12256e..8ef3b4ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yudao-ui-admin-vue3", - "version": "2025.12-snapshot", + "version": "2026.01-snapshot", "description": "基于vue3、vite4、element-plus、typesScript", "author": "xingyu", "private": false, From 1678bf6e5781f81dce6ee3690b6a52b9f6a804e7 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 7 Feb 2026 16:42:23 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20=E5=BF=98=E8=AE=B0=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9C=AA=E5=BC=80=E5=90=AF=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E6=97=B6=EF=BC=8C=E9=9A=90=E8=97=8F=20Verify=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E9=81=BF=E5=85=8D=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=20captcha/get=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Login/components/ForgetPasswordForm.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/Login/components/ForgetPasswordForm.vue b/src/views/Login/components/ForgetPasswordForm.vue index f47b2299..f5f41dc8 100644 --- a/src/views/Login/components/ForgetPasswordForm.vue +++ b/src/views/Login/components/ForgetPasswordForm.vue @@ -39,6 +39,7 @@ Date: Sat, 7 Feb 2026 21:07:31 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix(crm):=20=E4=BF=AE=E5=A4=8D=E7=BA=BF?= =?UTF-8?q?=E7=B4=A2=E8=AF=A6=E6=83=85=E9=A1=B5=E8=BD=AC=E5=8C=96=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=8C=89=E9=92=AE=E8=AF=AF=E6=98=BE=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=20https://t.zsxq.com/wq7ix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/crm/clue/detail/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/crm/clue/detail/index.vue b/src/views/crm/clue/detail/index.vue index 4c211e66..4841b083 100644 --- a/src/views/crm/clue/detail/index.vue +++ b/src/views/crm/clue/detail/index.vue @@ -18,7 +18,7 @@ > 转化为客户 - 已转化客户 + 已转化客户