Browse Source

搜索修改

release_0.0.2
wenlele 3 years ago
parent
commit
7ed76c4208
  1. 5
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx
  2. 6
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx

5
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx

@ -608,10 +608,10 @@ const CameraHeader = (props) => {
}} }}
onClick={() => { onClick={() => {
api.current.validate().then((v) => { 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 } searchb.current = { ...v, limit: 10, page: 0 }
}); });
equipmentGetCamera();
}} }}
> >
搜素 搜素
@ -630,7 +630,6 @@ const CameraHeader = (props) => {
onClick={() => { onClick={() => {
api.current.reset(); api.current.reset();
setearch({}); setearch({});
equipmentGetCamera();
}} }}
> >
重置 重置

6
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx

@ -341,7 +341,6 @@ const NvrHeader = (props) => {
const remind = localStorage.getItem(USER); const remind = localStorage.getItem(USER);
console.log(remind) console.log(remind)
if (!remind) { if (!remind) {
console.log(1)
setReminder(true) setReminder(true)
} }
equipmentGetNvr(); equipmentGetNvr();
@ -452,9 +451,9 @@ const NvrHeader = (props) => {
}} }}
onClick={() => { onClick={() => {
api.current.validate().then((v) => { 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={() => { onClick={() => {
api.current.reset(); api.current.reset();
setearch({}); setearch({});
equipmentGetNvr();
}} }}
> >
重置 重置

Loading…
Cancel
Save