|
@@ -64,6 +64,11 @@ const longleStatusNum = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 刷新
|
|
|
|
|
+const refreshData = () => {
|
|
|
|
|
+ tRef.current.reload()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
|
|
const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
|
|
|
const tRef = useRef()
|
|
const tRef = useRef()
|
|
|
const [selectKeys] = useState([])
|
|
const [selectKeys] = useState([])
|
|
@@ -105,11 +110,6 @@ const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
|
|
|
setState({ ...state, params: { ...state.params, search: value } })
|
|
setState({ ...state, params: { ...state.params, search: value } })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 刷新
|
|
|
|
|
- const refreshData = () => {
|
|
|
|
|
- tRef.current.reload()
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
if (shouldUpdate) {
|
|
if (shouldUpdate) {
|
|
|
tRef.current.reload()
|
|
tRef.current.reload()
|