diff --git a/src/pages/getColorCard/colorCardList/index.tsx b/src/pages/getColorCard/colorCardList/index.tsx index b5d4bd1..bb8bf02 100644 --- a/src/pages/getColorCard/colorCardList/index.tsx +++ b/src/pages/getColorCard/colorCardList/index.tsx @@ -25,7 +25,7 @@ const ColorCardList = () => { const multipleSelection = useRef([]) // 搜索 const getSearchData = debounce((value: string) => { - console.log('search', value) + setSearchField(prev => ({ ...prev, name: value, page: 1, size: 10 })) }, 300) // 取消 const handleCancel = () => { diff --git a/src/pages/sampleCutting/sampleCuttingList/index.tsx b/src/pages/sampleCutting/sampleCuttingList/index.tsx index 2c550b8..873d6bc 100644 --- a/src/pages/sampleCutting/sampleCuttingList/index.tsx +++ b/src/pages/sampleCutting/sampleCuttingList/index.tsx @@ -52,7 +52,7 @@ const SampleCuttingList = () => { // 搜索 const getSearchData = debounce((value: string) => { console.log('search', value) - setSearchField(val => ({ ...val, product_code_and_name: value })) + setSearchField(val => ({ ...val, product_code_and_name: value, page: 1, size: 10 })) }, 300) // 取消 const handleCancel = () => {