Parcourir la source

Merge branch 'dev' of http://192.168.1.41:3000/outaozhen/cldV2react into dev

outaozhen il y a 4 ans
Parent
commit
8c22f3f905
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      src/pages/Customer/Client/index.jsx
  2. 2 2
      src/pages/Customer/Company/index.jsx

+ 2 - 2
src/pages/Customer/Client/index.jsx

@@ -450,13 +450,13 @@ const Client = props => {
   }
 
   const handleSearch = value => {
-    tRef.current.reset()
+    tRef.current.reloadAndRest()
     setState({ ...state, params: { ...state.params, search: value } })
   }
 
   const onDistrictChange = value => {
     if (!value) return
-    tRef.current.reset()
+    tRef.current.reloadAndRest()
     const [province = '', city = '', area = ''] = value || []
     setState({ ...state, params: { ...state.params, province, city, area } })
   }

+ 2 - 2
src/pages/Customer/Company/index.jsx

@@ -132,12 +132,12 @@ const Company = props => {
     }
   }
   const handleSearch = value => {
-    tRef.current.reload()
+    tRef.current.reloadAndRest()
     setState({ ...state, params: { ...state.params, search: value } })
   }
   const onDistrictChange = value => {
     if (!value) return
-    tRef.current.reset()
+    tRef.current.reloadAndRest()
     const [province = '', city = '', area = ''] = value
     setState({ ...state, params: { ...state.params, province, city, area } })
   }