From 6531b52f50f7dc94ac9136d4eb1d3ecec765516e Mon Sep 17 00:00:00 2001
From: zs <zhousong@weben-smart.com>
Date: 周三, 30 4月 2025 17:13:14 +0800
Subject: [PATCH] Merge branch 'master' of http://222.71.245.114:9086/r/HIA24016N_PipeLineDemo

---
 PipeLineLems/web/src/components/Search/Search.tsx |   37 +++++++++++++++++++------------------
 1 files changed, 19 insertions(+), 18 deletions(-)

diff --git a/PipeLineLems/web/src/components/Search/Search.tsx b/PipeLineLems/web/src/components/Search/Search.tsx
index 8c7414b..6559b80 100644
--- a/PipeLineLems/web/src/components/Search/Search.tsx
+++ b/PipeLineLems/web/src/components/Search/Search.tsx
@@ -2,7 +2,9 @@
 import styles from './Search.module.scss'
 import Icon from '../Icon/Icon'
 import { useVModel } from '@vueuse/core'
-import { debounce } from 'lodash'
+import debounce from 'lodash/debounce'
+import { _t, t } from '@/libs/Language/Language'
+
 export default defineComponent({
   name: '鎼滅储杈撳叆',
   props: {
@@ -26,25 +28,24 @@
   emits: ['confirm', 'update:modelValue'],
   setup(props, { attrs, slots, emit }) {
     const innerValue = useVModel(props)
-    return () => {
-      const confirm = (event: KeyboardEvent | string) => {
-        if (
-          typeof event === 'string' ||
-          event.key === 'Enter' ||
-          event.keyCode === 13
-        ) {
-          emit('confirm', innerValue.value)
-          const rf = props.tableRef?.value || props.tableRef
-          if (rf) {
-            rf.getList({
-              [props.field || 'Name']: innerValue.value,
-            })
-          }
+    const confirm = (event: KeyboardEvent | string) => {
+      if (
+        typeof event === 'string' ||
+        event.key === 'Enter' ||
+        event.keyCode === 13
+      ) {
+        emit('confirm', innerValue.value)
+        const rf = props.tableRef?.value || props.tableRef
+        if (rf) {
+          rf.getList({
+            [props.field || 'Name']: innerValue.value,
+          })
         }
       }
+    }
 
-      const fn = debounce(confirm, 100)
-
+    const fn = debounce(confirm, 200)
+    return () => {
       return (
         <div class={styles.inputContent}>
           <el-input
@@ -52,7 +53,7 @@
             class={styles.searchInner}
             // size="small"
             prefix-icon={<Icon icon="s_input" width={12} height={12} />}
-            placeholder={props.placeholder}
+            placeholder={_t(props.placeholder)}
             {...attrs}
             onKeydown={fn}
             onChange={fn}

--
Gitblit v1.9.3