🐞 fix(添加色卡列表): 修复无法搜索的问题
This commit is contained in:
parent
37ef094a73
commit
d85021806a
@ -25,7 +25,7 @@ const ColorCardList = () => {
|
|||||||
const multipleSelection = useRef<typeof orderList['list']>([])
|
const multipleSelection = useRef<typeof orderList['list']>([])
|
||||||
// 搜索
|
// 搜索
|
||||||
const getSearchData = debounce((value: string) => {
|
const getSearchData = debounce((value: string) => {
|
||||||
console.log('search', value)
|
setSearchField(prev => ({ ...prev, name: value, page: 1, size: 10 }))
|
||||||
}, 300)
|
}, 300)
|
||||||
// 取消
|
// 取消
|
||||||
const handleCancel = () => {
|
const handleCancel = () => {
|
||||||
|
|||||||
@ -52,7 +52,7 @@ const SampleCuttingList = () => {
|
|||||||
// 搜索
|
// 搜索
|
||||||
const getSearchData = debounce((value: string) => {
|
const getSearchData = debounce((value: string) => {
|
||||||
console.log('search', value)
|
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)
|
}, 300)
|
||||||
// 取消
|
// 取消
|
||||||
const handleCancel = () => {
|
const handleCancel = () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user