From fb4db4ae9b6a7f113ba049f6789e6916c0dcc276 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 12 十月 2026 09:15:08 +0800
Subject: [PATCH] feat(mes): 新增业务码支持并优化追溯查询功能

---
 src/packages/effects/common-ui/src/ui/authentication/login.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/packages/effects/common-ui/src/ui/authentication/login.vue b/src/packages/effects/common-ui/src/ui/authentication/login.vue
index 0f414df..cd38900 100644
--- a/src/packages/effects/common-ui/src/ui/authentication/login.vue
+++ b/src/packages/effects/common-ui/src/ui/authentication/login.vue
@@ -19,6 +19,7 @@
 
 interface Props extends AuthenticationProps {
   formSchema?: VbenFormSchema[];
+  showFieldLabels?: boolean;
 }
 
 defineOptions({
@@ -33,6 +34,7 @@
   qrCodeLoginPath: '/auth/qrcode-login',
   registerPath: '/auth/register',
   showCodeLogin: true,
+  showFieldLabels: false,
   showDocLink: true,
   showForgetPassword: true,
   showQrcodeLogin: true,
@@ -52,10 +54,11 @@
 const [Form, formApi] = useVbenForm(
   reactive({
     commonConfig: {
-      hideLabel: true,
+      hideLabel: computed(() => !props.showFieldLabels),
       hideRequiredMark: true,
     },
     schema: computed(() => props.formSchema),
+    layout: computed(() => props.showFieldLabels ? 'vertical' as const : 'horizontal' as const),
     showDefaultActions: false,
   }),
 );
@@ -152,7 +155,7 @@
         'cursor-wait': loading,
       }"
       :loading="loading"
-      aria-label="login"
+      :aria-label="submitButtonText || $t('common.login')"
       class="h-12 w-full rounded-xl bg-emerald-600 text-base font-semibold tracking-[0.18em] text-white shadow-[0_10px_24px_rgba(5,150,105,0.22)] transition-[background-color,box-shadow] duration-200 hover:bg-emerald-700 hover:shadow-[0_12px_28px_rgba(5,150,105,0.3)] focus-visible:ring-2 focus-visible:ring-emerald-500/50 disabled:cursor-not-allowed disabled:opacity-70"
       @click="handleSubmit"
     >

--
Gitblit v1.9.3