From 7ed76c420802558bcc1ccbbc278f7345a074eb1b Mon Sep 17 00:00:00 2001 From: wenlele Date: Fri, 24 Jun 2022 10:53:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/sections/equipmentWarehouse/containers/camera.jsx | 5 ++--- .../src/sections/equipmentWarehouse/containers/nvr.jsx | 6 ++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx index 18a4cf0..a940fc3 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx @@ -608,10 +608,10 @@ const CameraHeader = (props) => { }} onClick={() => { api.current.validate().then((v) => { - setearch({ ...v, limit: 10, page: 0 }); + setearch(v); + setQuery({ limit: 10, page: 0 }) searchb.current = { ...v, limit: 10, page: 0 } }); - equipmentGetCamera(); }} > 搜素 @@ -630,7 +630,6 @@ const CameraHeader = (props) => { onClick={() => { api.current.reset(); setearch({}); - equipmentGetCamera(); }} > 重置 diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx index 8a4e556..fba40db 100644 --- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx +++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx @@ -341,7 +341,6 @@ const NvrHeader = (props) => { const remind = localStorage.getItem(USER); console.log(remind) if (!remind) { - console.log(1) setReminder(true) } equipmentGetNvr(); @@ -452,9 +451,9 @@ const NvrHeader = (props) => { }} onClick={() => { api.current.validate().then((v) => { - setearch({ ...v, limit: 10, page: 0 }); + setearch(v); + setQuery({ limit: 10, page: 0 }) }); - equipmentGetNvr(); }} > 搜素 @@ -473,7 +472,6 @@ const NvrHeader = (props) => { onClick={() => { api.current.reset(); setearch({}); - equipmentGetNvr(); }} > 重置