This is an automated email from the ASF dual-hosted git repository.

dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new f9cb48e905 [INLONG-10350][Dashboard] Fix audit item search failure 
(#10361)
f9cb48e905 is described below

commit f9cb48e9058c288dabf634f84851b2ba6873fe0d
Author: haifxu <[email protected]>
AuthorDate: Wed Jun 5 19:32:22 2024 +0800

    [INLONG-10350][Dashboard] Fix audit item search failure (#10361)
---
 inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx    | 6 ++++--
 inlong-dashboard/src/ui/pages/ModuleAudit/IdModule/config.tsx | 4 ++--
 inlong-dashboard/src/ui/pages/ModuleAudit/IpModule/config.tsx | 4 ++--
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx 
b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx
index 39cd234f9a..c1f6d6a651 100644
--- a/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx
+++ b/inlong-dashboard/src/ui/pages/GroupDetail/Audit/config.tsx
@@ -211,8 +211,10 @@ export const getFormContent = (inlongGroupId, 
initialValues, onSearch, onDataStr
     label: i18n.t('pages.GroupDetail.Audit.Item'),
     name: 'auditIds',
     props: {
+      style: {
+        width: 200,
+      },
       mode: 'multiple',
-      maxTagCount: 3,
       allowClear: true,
       showSearch: true,
       dropdownMatchSelectWidth: false,
@@ -225,7 +227,7 @@ export const getFormContent = (inlongGroupId, 
initialValues, onSearch, onDataStr
         requestParams: {
           formatResult: result =>
             result?.map(item => ({
-              label: item.name,
+              label: item.nameInChinese,
               value: item.auditId,
             })) || [],
         },
diff --git a/inlong-dashboard/src/ui/pages/ModuleAudit/IdModule/config.tsx 
b/inlong-dashboard/src/ui/pages/ModuleAudit/IdModule/config.tsx
index d9dec6fefe..4eed3b4e26 100644
--- a/inlong-dashboard/src/ui/pages/ModuleAudit/IdModule/config.tsx
+++ b/inlong-dashboard/src/ui/pages/ModuleAudit/IdModule/config.tsx
@@ -147,7 +147,7 @@ export const getFormContent = (initialValues, onSearch) => [
         requestParams: {
           formatResult: result =>
             result?.map(item => ({
-              label: item.name,
+              label: item.nameInChinese,
               value: item.auditId,
             })) || [],
         },
@@ -172,7 +172,7 @@ export const getFormContent = (initialValues, onSearch) => [
         requestParams: {
           formatResult: result =>
             result?.map(item => ({
-              label: item.name,
+              label: item.nameInChinese,
               value: item.auditId,
             })) || [],
         },
diff --git a/inlong-dashboard/src/ui/pages/ModuleAudit/IpModule/config.tsx 
b/inlong-dashboard/src/ui/pages/ModuleAudit/IpModule/config.tsx
index f285181670..2c738c7bb1 100644
--- a/inlong-dashboard/src/ui/pages/ModuleAudit/IpModule/config.tsx
+++ b/inlong-dashboard/src/ui/pages/ModuleAudit/IpModule/config.tsx
@@ -101,7 +101,7 @@ export const getFormContent = (initialValues, onSearch) => [
         requestParams: {
           formatResult: result =>
             result?.map(item => ({
-              label: item.name,
+              label: item.nameInChinese,
               value: item.auditId,
             })) || [],
         },
@@ -126,7 +126,7 @@ export const getFormContent = (initialValues, onSearch) => [
         requestParams: {
           formatResult: result =>
             result?.map(item => ({
-              label: item.name,
+              label: item.nameInChinese,
               value: item.auditId,
             })) || [],
         },

Reply via email to